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

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 (69) hide show
  1. package/contexts/contexts/GlobalContext.d.ts +1 -1
  2. package/contexts/hooks/useOperations.d.ts +1 -0
  3. package/contexts/index.d.ts +1 -1
  4. package/data/helpers/cart/index.d.ts +10 -0
  5. package/index.js +20 -20
  6. package/index.mjs +4435 -4381
  7. package/package.json +1 -1
  8. package/types/constants.d.ts +1 -0
  9. package/types/contexts/contexts/global.d.ts +1 -0
  10. package/types/contexts/store/cart.d.ts +1 -0
  11. package/types/layout/team-components/Header/index.d.ts +2 -1
  12. package/cms/Sections/Banner/Composite/Slot.d.ts +0 -0
  13. package/cms/Sections/index.d.ts +0 -10
  14. package/cms/api/index.d.ts +0 -11
  15. package/cms/ui/ContentTypes/CommonPage/CommonPage.d.ts +0 -3
  16. package/cms/ui/ContentTypes/CommonPage/DataScreening.d.ts +0 -6
  17. package/cms/ui/ContentTypes/CommonPage/index.d.ts +0 -2
  18. package/cms/ui/ContentTypes/FlagsAndTags/index.d.ts +0 -1
  19. package/cms/ui/ContentTypes/index.d.ts +0 -6
  20. package/cms/ui/Factories/common.d.ts +0 -7
  21. package/cms/ui/Factories/contentType.d.ts +0 -9
  22. package/cms/ui/Factories/index.d.ts +0 -2
  23. package/cms/ui/Factories/section.d.ts +0 -7
  24. package/cms/ui/Sections/Banner/Component.d.ts +0 -7
  25. package/cms/ui/Sections/Banner/Composite/Content.d.ts +0 -4
  26. package/cms/ui/Sections/Banner/Composite/Slot.d.ts +0 -0
  27. package/cms/ui/Sections/Banner/adapter.d.ts +0 -32
  28. package/cms/ui/Sections/Banner/index.d.ts +0 -8
  29. package/cms/ui/Sections/TextContent/Component.d.ts +0 -4
  30. package/cms/ui/Sections/TextContent/Composite/Content.d.ts +0 -3
  31. package/cms/ui/Sections/TextContent/Composite/ContentWrapper.d.ts +0 -3
  32. package/cms/ui/Sections/TextContent/adapter.d.ts +0 -3
  33. package/cms/ui/Sections/TextContent/index.d.ts +0 -8
  34. package/cms/ui/Sections/_common/Accordion.d.ts +0 -2
  35. package/cms/ui/Sections/_common/BannerItem.d.ts +0 -5
  36. package/cms/ui/Sections/_common/TextStructure.d.ts +0 -17
  37. package/cms/ui/Sections/_common/interfaces.d.ts +0 -8
  38. package/cms/ui/Sections/index.d.ts +0 -4
  39. package/data/helpers/product/imageResize.d.ts +0 -8
  40. package/index-B8dtKJc0.mjs +0 -68
  41. package/index-BArDD1Jh.mjs +0 -68
  42. package/index-BCZReEF1.js +0 -4
  43. package/index-BI5_UgNN.mjs +0 -3210
  44. package/index-BK5yScKK.js +0 -1
  45. package/index-BaPdEOcD.js +0 -4
  46. package/index-BcniWgv2.mjs +0 -68
  47. package/index-C3_oOo51.js +0 -1
  48. package/index-C7gBx1Sj.js +0 -4
  49. package/index-CAM8BZOC.mjs +0 -3509
  50. package/index-CG59Ho-O.mjs +0 -3514
  51. package/index-CHaVlwnS.js +0 -1
  52. package/index-CWsS9JhJ.mjs +0 -69
  53. package/index-CqPFy76Q.mjs +0 -3531
  54. package/index-DVeRXseR.js +0 -4
  55. package/index-DXjpbLiy.js +0 -4
  56. package/index-DmJIk8vB.mjs +0 -3210
  57. package/index-Dq-m7diJ.mjs +0 -68
  58. package/index-KIgYoXyH.mjs +0 -3526
  59. package/index-NWyULgUV.js +0 -4
  60. package/index-T-_Ys9t7.mjs +0 -3483
  61. package/index-T1F-4OSy.js +0 -4
  62. package/index-dgE7GGD0.js +0 -4
  63. package/index-fnNrOQ41.js +0 -1
  64. package/index-lWJI65gt.js +0 -1
  65. package/index-tKMO8iJa.mjs +0 -3215
  66. package/layout/team-component/ProductCard/helpers.d.ts +0 -18
  67. package/server-DvV_v1l2.mjs +0 -69
  68. package/server-b0_Jc3E_.js +0 -1
  69. package/types/cms/api/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -62,6 +62,7 @@ export type FREIGHT_CALCULATIONType = {
62
62
  };
63
63
  export type PLP_INFINITE_SCROLLType = boolean;
64
64
  export type MAIN_IMAGEType = string;
65
+ export type MENU_MOB_BTN_SIDEType = 'left' | 'right';
65
66
  export type MENU_INFOType = Record<string, Record<string, string>>;
66
67
  export type MENU_NAVIGATION_BAR_ALLOWEDType = boolean;
67
68
  export type NAME_SPLIT_SYMBOLType = string;
@@ -16,4 +16,5 @@ export interface GlobalContextProps extends PropsWithChildren {
16
16
  export interface GlobalProviderProps extends PropsWithChildren {
17
17
  headerConfigs: HeaderConfigsType;
18
18
  pathname: string;
19
+ searchParams: URLSearchParams;
19
20
  }
@@ -163,6 +163,7 @@ export interface CartStore {
163
163
  addCoupon(coupon: string): Promise<OptionalOrderForm['marketingData'] | boolean>;
164
164
  addItem(item: AddToCart | AddToCart[], options?: CartItemOptionalProps[]): void;
165
165
  addSellerCode(sellerCode: string): Promise<OptionalOrderForm['openTextField'] | boolean>;
166
+ addMarketingData(data: OrderFormMarketingData): Promise<OptionalOrderForm['marketingData'] | boolean>;
166
167
  emptyCart(): void;
167
168
  removeItem(id: string, callback?: (item?: CartItemStore) => void): Promise<boolean | string>;
168
169
  setIsOpen(value: boolean): void;
@@ -2,7 +2,7 @@ import { SolidVariantsType, VariantsType } from '@soma-vertical-web/core-compone
2
2
  import { ComponentType, PropsWithChildren, ReactNode, RefObject } from 'react';
3
3
  import { HeaderCategories, HeaderNavLinks } from '../../../cms/ContentTypes/Header';
4
4
  import { AddToCartProviderProps } from '../../team-components/AddToCart';
5
- import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType } from '../../../constants';
5
+ import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType } from '../../../constants';
6
6
  import { DataSubmenu } from '../../../cms/Sections/HeaderSubmenu';
7
7
 
8
8
  export type HeaderPositionsType = 'absolute' | 'relative';
@@ -16,6 +16,7 @@ type HEADER_CONSTANTS = {
16
16
  MENU_INFO: MENU_INFOType;
17
17
  MENU_NAVIGATION_BAR_ALLOWED: MENU_NAVIGATION_BAR_ALLOWEDType;
18
18
  Z_INDEX_WAR: Z_INDEX_WARType;
19
+ MENU_MOB_BTN_SIDE?: MENU_MOB_BTN_SIDEType;
19
20
  };
20
21
  };
21
22
  export interface HeaderContextProps extends HeaderProviderProps {
File without changes
@@ -1,10 +0,0 @@
1
- import { generateBannerSection } from './Banner';
2
- import { generateBennefitsBarSection } from './BennefitsBar';
3
- import { generateTextContentSection } from './TextContent';
4
-
5
- declare const Sections: {
6
- generateBannerSection: typeof generateBannerSection;
7
- generateTextContentSection: typeof generateTextContentSection;
8
- generateBennefitsBarSection: typeof generateBennefitsBarSection;
9
- };
10
- export default Sections;
@@ -1,11 +0,0 @@
1
- import { GetContentTypeProps } from '../../types/cms/api';
2
-
3
- export declare function getContentType<T>({ contentType, cookies, CMS_PROJECT_NAME, api, }: GetContentTypeProps): Promise<{
4
- status: number;
5
- data: T[];
6
- error?: undefined;
7
- } | {
8
- status: string;
9
- data: never[];
10
- error: unknown;
11
- }>;
@@ -1,3 +0,0 @@
1
- import { CommonPageContentProps } from '../../../../types/cms/ContentTypes/CommonPage';
2
-
3
- export declare const CommonPageContent: ({ slug, SectionZone, COMMON_PAGE_COLUMN_GAP, ...props }: CommonPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
@@ -1,6 +0,0 @@
1
- import { DataScreeningProps } from '../../../../types/cms/ContentTypes/CommonPage';
2
-
3
- /**
4
- * TODO: remove SectionZone as props
5
- */
6
- export declare const DataScreening: ({ slug, data, SectionZone, COMMON_PAGE_COLUMN_GAP }: DataScreeningProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- declare const _default: import('../../../../types/cms/Factories').IContentType;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare function generateFlagsAndTagsContentType(ICONS: Record<string, string>): import('../../../../types/cms/Factories').IContentType;
@@ -1,6 +0,0 @@
1
- import { generateFlagsAndTagsContentType } from './FlagsAndTags';
2
-
3
- export declare const ContentTypes: {
4
- generateFlagsAndTags: typeof generateFlagsAndTagsContentType;
5
- commonPage: import('../../../types/cms/Factories').IContentType;
6
- };
@@ -1,7 +0,0 @@
1
- import { Property, Widget, JSONWidget } from '../../../types/cms/Factories';
2
-
3
- declare const Common: {
4
- property: (props: Property) => Property;
5
- widget: (props: Widget) => JSONWidget;
6
- };
7
- export default Common;
@@ -1,9 +0,0 @@
1
- import { Schema, Configuration, ConfigurationSchemaSet, IContentType } from '../../../types/cms/Factories';
2
-
3
- declare const ContentType: {
4
- base: (props: IContentType) => IContentType;
5
- configurationSchemaSet: (props: ConfigurationSchemaSet) => ConfigurationSchemaSet;
6
- configuration: (props: Configuration) => Configuration;
7
- schema: (props: Schema) => Schema;
8
- };
9
- export default ContentType;
@@ -1,2 +0,0 @@
1
- export { default as ContentType } from './contentType';
2
- export { default as Common } from './common';
@@ -1,7 +0,0 @@
1
- import { ISection, Schema } from '../../../types/cms/Factories';
2
-
3
- declare const Section: {
4
- schema: (props: Schema) => Schema;
5
- base: (props: ISection) => ISection;
6
- };
7
- export default Section;
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- import { BannerSectionType, IBannerSectionTypeComponent } from '../../../../types/cms/Sections/Banner';
3
-
4
- export declare const BannerSection: ({ data, className, priority, creative, ...props }: IBannerSectionTypeComponent & {
5
- imgStyles?: HTMLAttributes<HTMLImageElement>["style"];
6
- } & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
7
- export declare const SingleBannerSection: (data: BannerSectionType) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- import { BannerContentProps } from '../../../../../types/cms/Sections/Banner';
3
-
4
- export declare const BannerContent: ({ data, videoUrl, priority, videoRef, ...props }: BannerContentProps & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
File without changes
@@ -1,32 +0,0 @@
1
- import { ContentAlignment, Position } from '../../../../types/cms/Sections/Banner';
2
-
3
- export declare const positionAdapter: (position: Position) => {
4
- verticalAlignment: string;
5
- horizontalAlignment: string;
6
- } | {
7
- verticalAlignment: string;
8
- horizontalAlignment: string;
9
- } | {
10
- verticalAlignment: string;
11
- horizontalAlignment: string;
12
- } | {
13
- verticalAlignment: string;
14
- horizontalAlignment: string;
15
- } | {
16
- verticalAlignment: string;
17
- horizontalAlignment: string;
18
- } | {
19
- verticalAlignment: string;
20
- horizontalAlignment: string;
21
- } | {
22
- verticalAlignment: string;
23
- horizontalAlignment: string;
24
- } | {
25
- verticalAlignment: string;
26
- horizontalAlignment: string;
27
- } | {
28
- verticalAlignment: string;
29
- horizontalAlignment: string;
30
- };
31
- export declare const alignmentAdapter: (alignment: ContentAlignment) => string;
32
- export declare const colorModeAdapter: (colorMode: "Padr\u00E3o(preto)" | "Invertido(branco)") => string;
@@ -1,8 +0,0 @@
1
- import { ICONSType } from '../../../../types/constants';
2
-
3
- export declare function generateBannerSection({ ICONS }: {
4
- ICONS: ICONSType;
5
- }): import('../../../../types/cms/Factories').ISection;
6
- export declare const Component: {
7
- Banner: (data: import('../../../../types/cms/Sections/Banner').BannerSectionType) => import("react/jsx-runtime").JSX.Element;
8
- };
@@ -1,4 +0,0 @@
1
- import { TextContentSectionProps } from '../../../../types/cms/Sections/TextContent';
2
-
3
- export declare const TextContentSection: ({ data, }: TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
4
- export default TextContentSection;
@@ -1,3 +0,0 @@
1
- import { ContentProps } from '../../../../../types/cms/Sections/TextContent/index';
2
-
3
- export declare const Content: ({ expanded, content }: ContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { TextContentProps } from '../../../../../types/cms/Sections/TextContent';
2
-
3
- export declare const TextContent: ({ data, }: TextContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ContentAlignment } from '../../../../types/cms/Sections/TextContent';
2
-
3
- export declare const alignmentAdapter: (alignment: ContentAlignment) => string;
@@ -1,8 +0,0 @@
1
- import { ICONSType } from '../../../../types/constants';
2
-
3
- export declare function generateTextContentSection({ ICONS }: {
4
- ICONS: ICONSType;
5
- }): import('../../../../types/cms/Factories').ISection;
6
- export declare const Component: {
7
- TextContent: ({ data, }: import('../../../../types/cms/Sections/TextContent').TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
8
- };
@@ -1,2 +0,0 @@
1
- export declare const AccordionItemFragment: import('../../../../types/cms/Factories').Property;
2
- export declare const AccordionListFragment: import('../../../../types/cms/Factories').Property;
@@ -1,5 +0,0 @@
1
- import { ICONSType } from '../../../../types/constants';
2
-
3
- export declare function generateBannerItemFragment({ ICONS }: {
4
- ICONS: ICONSType;
5
- }): import('../../../../types/cms/Factories').Property;
@@ -1,17 +0,0 @@
1
- import { ICONSType } from '../../../../types/constants';
2
-
3
- export declare function generateTextStructureFragment({ ICONS }: {
4
- ICONS: ICONSType;
5
- }): {
6
- borderTop: import('../../../../types/cms/Factories').Property;
7
- textStructure: import('../../../../types/cms/Factories').Property;
8
- textStructureReduced: import('../../../../types/cms/Factories').Property;
9
- textStructureMode: import('../../../../types/cms/Factories').Property;
10
- textStructureButtonSize: import('../../../../types/cms/Factories').Property;
11
- enableIcon: import('../../../../types/cms/Factories').Property;
12
- textStructureButtonIcon: import('../../../../types/cms/Factories').Property;
13
- textStructureButtonLabel: import('../../../../types/cms/Factories').Property;
14
- textStructureButtonHref: import('../../../../types/cms/Factories').Property;
15
- showTextStructureExpander: import('../../../../types/cms/Factories').Property;
16
- textStructureAlignment: import('../../../../types/cms/Factories').Property;
17
- };
@@ -1,8 +0,0 @@
1
- export interface IAccordion {
2
- title: string;
3
- subtitle: string;
4
- text: string;
5
- }
6
- export interface IAccordionList {
7
- accordions: IAccordion[];
8
- }
@@ -1,4 +0,0 @@
1
- import { generateBannerSection } from './Banner';
2
-
3
- declare const Sections: (typeof generateBannerSection)[];
4
- export default Sections;
@@ -1,8 +0,0 @@
1
- export declare const resizingImg: (url: string, imageResize: {
2
- width: number;
3
- height: number;
4
- }) => string;
5
- export declare const updatedResizedImg: (url: string, imageResize: {
6
- width: number;
7
- height: number;
8
- }) => string;
@@ -1,68 +0,0 @@
1
- async function g({
2
- contentType: a,
3
- documents: s,
4
- cookies: c,
5
- CMS_PROJECT_NAME: d,
6
- storeId: i
7
- }) {
8
- var o;
9
- const t = JSON.parse(
10
- ((o = c().get("cms_preview_data")) == null ? void 0 : o.value) ?? "{}"
11
- );
12
- if (t && (t == null ? void 0 : t.contentType) === a) {
13
- const u = t.documentId && t.documentId.length ? `/${t.documentId}` : "", l = t != null && t.versionId && (t != null && t.versionId.length) ? `?versionId=${t == null ? void 0 : t.versionId}` : "", r = await (await fetch(
14
- `https://${i}.myvtex.com/_v/cms/api/${d}/${a}${u}${l}`,
15
- { cache: "no-store" }
16
- )).json(), e = s.filter(
17
- (n) => r.id !== n.documentId
18
- );
19
- return e.unshift(r), e;
20
- }
21
- return s;
22
- }
23
- async function m({
24
- contentType: a,
25
- cookies: s,
26
- CMS_PROJECT_NAME: c,
27
- storeId: d
28
- }) {
29
- var h, r;
30
- const i = JSON.parse(
31
- ((h = s().get("cms_preview_data")) == null ? void 0 : h.value) ?? "{}"
32
- ), t = [];
33
- let o = 1, u = 0, l = !0;
34
- try {
35
- do {
36
- const n = await (await fetch(
37
- `https://${d}.myvtex.com/_v/cms/api/${c}/${a}?page=${o}`
38
- )).json();
39
- o === 1 && (u = n.totalItems), (r = n == null ? void 0 : n.data) != null && r.length && t.push(...n.data), l = n.hasNextPage, o++;
40
- } while (l && t.length < u);
41
- if (i.previewMode && t.length) {
42
- const e = await g({
43
- contentType: a,
44
- documents: t,
45
- cookies: s,
46
- CMS_PROJECT_NAME: c,
47
- storeId: d
48
- });
49
- return {
50
- status: e.length > 0 ? 200 : 404,
51
- data: e ?? []
52
- };
53
- }
54
- return {
55
- status: t.length ? 200 : 404,
56
- data: t
57
- };
58
- } catch (e) {
59
- return { status: "error", data: [], error: e };
60
- }
61
- }
62
- const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63
- __proto__: null,
64
- getContentType: m
65
- }, Symbol.toStringTag, { value: "Module" }));
66
- export {
67
- p as c
68
- };
@@ -1,68 +0,0 @@
1
- async function g({
2
- contentType: s,
3
- documents: a,
4
- cookies: d,
5
- CMS_PROJECT_NAME: c,
6
- api: i
7
- }) {
8
- var o;
9
- const t = JSON.parse(
10
- ((o = d().get("cms_preview_data")) == null ? void 0 : o.value) ?? "{}"
11
- );
12
- if (t && (t == null ? void 0 : t.contentType) === s) {
13
- const u = t.documentId && t.documentId.length ? `/${t.documentId}` : "", l = t != null && t.versionId && (t != null && t.versionId.length) ? `?versionId=${t == null ? void 0 : t.versionId}` : "", r = await (await fetch(
14
- `https://${i.storeId}.myvtex.com/_v/cms/api/${c}/${s}${u}${l}`,
15
- { cache: "no-store" }
16
- )).json(), e = a.filter(
17
- (n) => r.id !== n.documentId
18
- );
19
- return e.unshift(r), e;
20
- }
21
- return a;
22
- }
23
- async function m({
24
- contentType: s,
25
- cookies: a,
26
- CMS_PROJECT_NAME: d,
27
- api: c
28
- }) {
29
- var h, r;
30
- const i = JSON.parse(
31
- ((h = a().get("cms_preview_data")) == null ? void 0 : h.value) ?? "{}"
32
- ), t = [];
33
- let o = 1, u = 0, l = !0;
34
- try {
35
- do {
36
- const n = await (await fetch(
37
- `https://${c.storeId}.myvtex.com/_v/cms/api/${d}/${s}?page=${o}`
38
- )).json();
39
- o === 1 && (u = n.totalItems), (r = n == null ? void 0 : n.data) != null && r.length && t.push(...n.data), l = n.hasNextPage, o++;
40
- } while (l && t.length < u);
41
- if (i.previewMode && t.length) {
42
- const e = await g({
43
- contentType: s,
44
- documents: t,
45
- cookies: a,
46
- CMS_PROJECT_NAME: d,
47
- api: c
48
- });
49
- return {
50
- status: e.length > 0 ? 200 : 404,
51
- data: e ?? []
52
- };
53
- }
54
- return {
55
- status: t.length ? 200 : 404,
56
- data: t
57
- };
58
- } catch (e) {
59
- return { status: "error", data: [], error: e };
60
- }
61
- }
62
- const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63
- __proto__: null,
64
- getContentType: m
65
- }, Symbol.toStringTag, { value: "Module" }));
66
- export {
67
- p as c
68
- };
package/index-BCZReEF1.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";const V=require("draft-js"),N=require("react"),y=require("react/jsx-runtime"),I=require("@soma-vertical-web/core-components"),ee=require("@soma-vertical-web/foundations"),yt=require("@date-fns/tz"),ir=(e,t)=>{const[n,r]=e.split(t);return{name:n.trim(),size:r?r.trim():""}},it=(e,t)=>{if(!e)return{};const[n,r]=e.split(t);return{color:n==null?void 0:n.trim(),size:r==null?void 0:r.trim()}},Ar=(e,t="tamanho")=>{if(e.additionalProperty){const[n]=e.additionalProperty;return n!=null&&n.name?n.name.toLocaleLowerCase()===t?n.value:e.name:""}return e.name},Lr=e=>e.replace(/\//g,""),K=({event:e,data:t})=>{const n=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&n.push({ecommerce:null}),n.push({...e&&{event:`custom_${e}`},...t})},C={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:n,commonData:r,customData:o,promotionInfo:i,itemList:u,outsideEcommerceData:a}=e,{availableSizes:s,sizes:l,price:d}=r,f={...n==="view_item"?{currency:C.configs.currency,value:d,grade_disponivel:s??(l?ar(l):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:d,currency:C.configs.currency}:{}},c=se({data:r,customData:{...o,...u,...i},configs:C.configs});K({event:n,data:{...a,ecommerce:{...u,...f,items:[c]}}}),typeof t=="function"&&t(c,f)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:n,itemList:r,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const u=t.map(({node:a},s)=>se({data:{...a},customData:{...n,index:s,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:r},configs:C.configs}));K({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:r,items:u}}})},skuEvents:e=>{const{event:t,commonData:{products:n},customData:r,supportData:{selectedSkus:o,price:i},promotionInfo:u,itemList:a,outsideEcommerceData:s}=e;let l=0;const d=n.map(f=>{var p,h,v,x,S,m,E,b,R;const c=o==null?void 0:o.find(w=>(f.productId??f.id)===w.productId);let g={...u,...a};if(c){const w=ur(),T=cr(w,c);T&&(g={...g,...T}),t==="add_to_cart"&&(u||a)&&Ze({persistedData:w,type:"add",sku:(c==null?void 0:c.id)??(c==null?void 0:c.sku),newData:{promotionInfo:u,itemList:a}}),t==="remove_from_cart"&&Ze({persistedData:w,type:"remove",sku:(c==null?void 0:c.id)??(c==null?void 0:c.sku)})}l+=f.price??((v=(h=(p=c==null?void 0:c.offers)==null?void 0:p.offers)==null?void 0:h[0])==null?void 0:v.price)??0;const _=(c==null?void 0:c.size)??it((c==null?void 0:c.skuName)??(c==null?void 0:c.name)??((x=f.itemOffered)==null?void 0:x.skuName),C.configs.NAME_SPLIT_SYMBOL).size;return se({data:f,customData:{...r,...g??{...u,...a},item_sku:(c==null?void 0:c.id)??(c==null?void 0:c.sku)??((S=f.itemOffered)==null?void 0:S.sku),quantity:(r==null?void 0:r.quantity)??f.quantity??1,item_variant2:_,seller_id:(c==null?void 0:c.sellerId)??(c==null?void 0:c.seller)??((R=(b=(E=(m=c==null?void 0:c.offers)==null?void 0:m.offers)==null?void 0:E[0])==null?void 0:b.seller)==null?void 0:R.identifier)??f.seller},configs:C.configs})});K({event:t,data:{...s,ecommerce:{value:i??l,currency:C.configs.currency,items:d}}})},filterEvent:e=>{var u;const{commonData:t,customData:n,outsideEcommerceData:r}=e,o={},i={};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:a,value:s})=>{var f;const l=((f=C.configs.PLP_FILTERS.find(c=>c.key===a))==null?void 0:f.eventLabel)??a,d=(o==null?void 0:o[l])||[];l==="price_range"&&s.replace(":","-"),o[l]=[...d,s]}),Object.keys(o).forEach(a=>i[a]=o[a].join(", "))),K({event:"filter",data:{...r,...i,...n}})},viewCartEvent:e=>{var d,f,c,g,_,p,h,v,x,S;const{commonData:t,outsideEcommerceData:n}=e,{cartStore:r}=t;if(!r)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},u=r.items.map(m=>{const{promotionInfo:E,itemList:b}=i[m.id]??{};return se({data:{...m,price:m.price/100,listPrice:m.listPrice/100},customData:{...E,...b,item_sku:m.id??m.itemOffered.sku,quantity:m.quantity??1},configs:C.configs})}),a=(((d=r.totalizers.find(m=>m.name==="Total dos Itens"))==null?void 0:d.value)??0)/100,s=(((f=r.totalizers.find(m=>m.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,l=((c=r.marketingData)==null?void 0:c.utmiCampaign)==="codigodavendedora"?(g=r.marketingData)==null?void 0:g.utmCampaign:(p=String((_=r.openTextField)==null?void 0:_.value))==null?void 0:p.split(" - ")[0];K({event:"view_cart",data:{...n,ecommerce:{currency:C.configs.currency,value:a+s,total_discount:Math.abs(s),cep_preenchido:!!((v=(h=r.shippingData)==null?void 0:h.address)!=null&&v.postalCode),...l?{seller_coupon_name:l}:{},...((x=r.marketingData)==null?void 0:x.coupon)&&{sale_coupon_name:(S=r.marketingData)==null?void 0:S.coupon},subtotal:a,items:u}}})},readyEvents:e=>{const{event:t,readyData:n}=e;K({event:t,data:{...n}})}},ar=e=>e.reduce((t,n)=>(n.available&&t.push(n.value),t),[]).toString(),Mr=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(C.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},se=({data:e,customData:t,configs:n})=>({...qr(e,n==null?void 0:n.MAIN_IMAGE),...Dr(e),...kr(e),...zr(e),...t}),sr=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},ur=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},cr=(e,t)=>e==null?void 0:e[t],Ze=({persistedData:e,type:t,sku:n,newData:r})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[n]:r}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[n]:r}));return}e&&t==="remove"&&(delete e[n],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},qr=(e,t="1")=>{var i,u,a,s,l,d,f,c,g,_,p;const n=e.productReference??e.gtin??e.productRefId,r=e.image??((u=(i=e.items)==null?void 0:i[0])==null?void 0:u.images)??((a=e.itemOffered)==null?void 0:a.image),o=r==null?void 0:r.find(h=>h.alternateName===t||h.imageLabel===t||h.keywords===t);return{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),item_ref:/_\d$/.test(n)?n.slice(0,-2):n,item_name:e.productTitle??e.productName??e.name??ir((c=e.itemOffered)==null?void 0:c.name,C.configs.NAME_SPLIT_SYMBOL).name,item_brand:((g=e.brand)==null?void 0:g.brandName)??((_=e.brand)==null?void 0:_.name)??e.brand??((p=e.itemOffered)==null?void 0:p.brand.name),item_url:`${C.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},_t=e=>Array.isArray(e)?e.reduce((t,n)=>(n.length>t.length&&(t=n),t),""):e,Dr=e=>{var l,d;const{categories:t,categoriesIds:n}=e,r=t??((l=e.itemOffered)==null?void 0:l.categories),o=n??((d=e.itemOffered)==null?void 0:d.categoriesIds),i=_t(r),u=_t(o),a=i.slice(1,-1).split("/"),s=u.slice(1,-1).split("/");return{item_category:a[0].toLowerCase().includes(C.configs.categoryOff)?"Bazar":"Coleção",...a[1]&&{item_category2:a[1]},...a.length>2&&{item_category3:a[a.length-1]},item_category_id:s[s.length-1],...s.length>1&&{item_parent_category_id:s[s.length-2]}}},kr=e=>{var o,i,u,a,s,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((a=(u=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:u[0])==null?void 0:a.name)??((l=(s=e.items)==null?void 0:s[0])==null?void 0:l.name),{color:n,size:r}=it(t,C.configs.NAME_SPLIT_SYMBOL);return{item_variant:n,...e.itemOffered&&{item_variant2:r}}},zr=e=>{var s,l;const{price:t,listPrice:n,installments:r}=e,o=t??((s=e.offers)==null?void 0:s.lowPrice)??0,i=n??((l=e.offers)==null?void 0:l.highPrice)??0,u=i?i-o:0,a=u%1===0?u:Number(u.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:a},...r&&{installments:r==null?void 0:r.count,installment_value:r==null?void 0:r.value},item_currency:C.configs.currency}},lr=()=>{const[e,t]=sr(),[n,r]=e.split("-"),o=n.includes("shop")||n.includes("sale")?n:"";return{page_category:o&&r?r:"",page_departament:o,id:t,name:e}},Fr=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:C,findDataInPersistedData:cr,getAvailablesSizes:ar,getCategories:Mr,getPageCategoryAndDepartmentFromSlug:lr,getPersistedData:ur,getProductListInfoFromHead:sr,pushDatalayer:K,updatePersistedData:Ze},Symbol.toStringTag,{value:"Module"})),fr=N.createContext({}),Ur=({children:e,evtFunctionsConfigs:t})=>{const n=N.useRef({}),r=N.useRef(null),o=N.useRef(null),i=N.useRef({}),u=N.useRef({trigger:!1,index:0}),a=({functionKey:d,data:f,callBack:c,timeout:g=100})=>{window.dataLayer||(window.dataLayer=[]),C.configs=t;try{typeof C[d]=="function"&&setTimeout(()=>{var _;f.promotionInfo=n.current,(_=o.current)!=null&&_.item_list_name&&(f.itemList=o.current),C[d](f,c)},g)}catch(_){K({event:"error_event",data:{error_message:(_==null?void 0:_.message)??_}})}},s=({content:d})=>{a({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:d.replace("::",":")}}})},l=({updatePromotionRef:d,promotion:f,index:c})=>{d&&(n.current={...f}),a({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...f,...c!==void 0&&{index:c}}}}})};return y.jsx(fr.Provider,{value:{sendDataLayerEvent:a,triggerSelectItemEventRef:u,promotionEventRef:n,currentLocalRef:r,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:s,handleSelectPromotionEvent:l},children:e})},at=()=>N.useContext(fr),dr=N.createContext({}),Br=({children:e,...t})=>y.jsx(dr.Provider,{value:{...t},children:e}),st=()=>N.useContext(dr),pr=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,oe=(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),$r=e=>e,Wr=e=>e,Vr=e=>e,Hr=e=>e,z={base:Hr,configurationSchemaSet:Vr,configuration:Wr,schema:$r},Kr=e=>e,Gr=e=>({...e.uiWidget?{"ui:widget":e.uiWidget}:{},...e.uiObjectFieldTemplate?{"ui:ObjectFieldTemplate":e.uiObjectFieldTemplate}:{}}),P={property:Kr,widget:Gr},Xr=Object.freeze(Object.defineProperty({__proto__:null,Common:P,ContentType:z},Symbol.toStringTag,{value:"Module"}));function Yr(e){const t={value:P.property({type:"string",title:"Label da flag a ser mostrado"}),textColor:P.property({type:"string",title:"Cor do texto"}),tagColor:P.property({type:"string",title:"Cor de fundo da tag"}),enableIcon:P.property({type:"boolean",title:"Ativar ícone"}),icon:P.property({type:"string",title:"Ícone",enum:Object.values(e),enumNames:Object.keys(e)}),iconColor:P.property({type:"string",title:"Cor do Ícone"})};return z.base({id:"flags_and_tags",name:"Flags And Tags",scopes:["flags_and_tags"],configurationSchemaSets:[z.configurationSchemaSet({name:"config",configurations:[{name:"commercial",schema:z.schema({title:"Items - Commercial",description:"Flags e Tags comerciais em Produtos",type:"object",properties:{items:{title:"Flags e Tags",type:"array",items:P.property({title:"Flags e Tags",type:"object",properties:{key:P.property({type:"string",title:"chave (id do cluster)"}),...t}})}}})},{name:"institucional",schema:z.schema({title:"Items - Institucional",description:"Flags e Tags comerciais em Produtos",type:"object",properties:{items:{title:"Flags e Tags",type:"array",items:P.property({title:"Flags e Tags",type:"object",properties:{key:P.property({type:"string",title:"chave (id do cluster)"}),...t}})}}})},{name:"flag_cart",schema:z.schema({title:"Flags Sacola",description:"Flags da Sacola",type:"object",properties:{flagHeader:P.property({type:"object",title:"Flag exibida abaixo do Header da Sacola",properties:t}),flagTotal:{title:"Flag exibida ao lado do Total da Sacola",type:"string"}}})},{name:"flag_pdp",schema:z.schema({title:"Flag PDP",description:"Flag Cashback PDP",type:"object",properties:t})}]})]})}const Qr=z.base({id:"common_page",name:"Common Page",scopes:["common_page"],configurationSchemaSets:[z.configurationSchemaSet({name:"config",configurations:[{name:"seo",schema:z.schema({title:"SEO",description:"Search Engine Optimization options",type:"object",widget:P.widget({uiObjectFieldTemplate:"GoogleSeoPreview"}),required:["slug","title","description"],properties:{slug:{title:"Path",type:"string",default:"/"},title:{title:"Default page title",description:"Display this title when no other title is available",type:"string",default:"FastStore Starter"},description:{title:"Meta tag description",type:"string",default:"A beautifully designed store"},canonical:{title:"Canonical url for the page",type:"string"}}})},{name:"responsive",schema:z.schema({title:"Responsive",description:"Configurações de responsivo",type:"object",widget:P.widget({uiObjectFieldTemplate:"GoogleSeoPreview"}),properties:{deviceType:P.property({title:"Tipo de dispositivo",type:"string",enum:["desktop","mobile"],enumNames:["desktop","mobile"]}),gapCustom:P.property({title:"Modificar espaçamento",description:"O espaçamento padrão entre as seções é de 64px",type:"boolean"}),gapSections:P.property({title:"Espaçamento entre seções",description:'Marque a opção "Modificar espaçamento" para ativar/desativar o espaçamento selecionado',type:"string",enum:["8px","16px","32px","128px"],enumNames:["8px","16px","32px","128px"],default:"32px"})}})}]})]}),Jr={generateFlagsAndTags:Yr,commonPage:Qr};function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var et={exports:{}},te={};te._=te._interop_require_default=Zr;function Zr(e){return e&&e.__esModule?e:{default:e}}var ue={exports:{}},Oe={},vt;function gr(){return vt||(vt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,a){for(var s in a)Object.defineProperty(u,s,{enumerable:!0,get:a[s]})}t(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function n(u){const a={};return u.forEach((s,l)=>{typeof a[l]>"u"?a[l]=s:Array.isArray(a[l])?a[l].push(s):a[l]=[a[l],s]}),a}function r(u){return typeof u=="string"||typeof u=="number"&&!isNaN(u)||typeof u=="boolean"?String(u):""}function o(u){const a=new URLSearchParams;return Object.entries(u).forEach(s=>{let[l,d]=s;Array.isArray(d)?d.forEach(f=>a.append(l,r(f))):a.set(l,r(d))}),a}function i(u){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return s.forEach(d=>{Array.from(d.keys()).forEach(f=>u.delete(f)),d.forEach((f,c)=>u.append(c,f))}),u}}(Oe)),Oe}var je={},ve={};function hr(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(hr=function(r){return r?n:t})(e)}ve._=ve._interop_require_wildcard=en;function en(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=hr(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var bt;function yr(){return bt||(bt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var d in l)Object.defineProperty(s,d,{enumerable:!0,get:l[d]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return u},formatWithValidation:function(){return a}});const r=ve._(gr()),o=/https?|ftp|gopher|file/;function i(s){let{auth:l,hostname:d}=s,f=s.protocol||"",c=s.pathname||"",g=s.hash||"",_=s.query||"",p=!1;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)),_&&typeof _=="object"&&(_=String(r.urlQueryToSearchParams(_)));let h=s.search||_&&"?"+_||"";return f&&!f.endsWith(":")&&(f+=":"),s.slashes||(!f||o.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}const u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(s){return process.env.NODE_ENV==="development"&&s!==null&&typeof s=="object"&&Object.keys(s).forEach(l=>{u.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(s)}}(je)),je}var Te={},Pt;function tn(){return Pt||(Pt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const o={};return Object.keys(n).forEach(i=>{r.includes(i)||(o[i]=n[i])}),o}}(Te)),Te}var Ie={},Rt;function Pe(){return Rt||(Rt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,E){for(var b in E)Object.defineProperty(m,b,{enumerable:!0,get:E[b]})}t(e,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return u},getURL:function(){return a},getDisplayName:function(){return s},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return f},SP:function(){return c},ST:function(){return g},DecodeError:function(){return _},NormalizeError:function(){return p},PageNotFoundError:function(){return h},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return x},stringifyError:function(){return S}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(m){let E=!1,b;return function(){for(var R=arguments.length,w=new Array(R),T=0;T<R;T++)w[T]=arguments[T];return E||(E=!0,b=m(...w)),b}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=m=>o.test(m);function u(){const{protocol:m,hostname:E,port:b}=window.location;return m+"//"+E+(b?":"+b:"")}function a(){const{href:m}=window.location,E=u();return m.substring(E.length)}function s(m){return typeof m=="string"?m:m.displayName||m.name||"Unknown"}function l(m){return m.finished||m.headersSent}function d(m){const E=m.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?"?"+E.slice(1).join("?"):"")}async function f(m,E){if(process.env.NODE_ENV!=="production"){var b;if((b=m.prototype)!=null&&b.getInitialProps){const T='"'+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.';throw new Error(T)}}const R=E.res||E.ctx&&E.ctx.res;if(!m.getInitialProps)return E.ctx&&E.Component?{pageProps:await f(E.Component,E.ctx)}:{};const w=await m.getInitialProps(E);if(R&&l(R))return w;if(!w){const T='"'+s(m)+'.getInitialProps()" should resolve to an object. But found "'+w+'" instead.';throw new Error(T)}return process.env.NODE_ENV!=="production"&&Object.keys(w).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"),w}const c=typeof performance<"u",g=c&&["mark","measure","getEntriesByName"].every(m=>typeof performance[m]=="function");class _ extends Error{}class p extends Error{}class h extends Error{constructor(E){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+E}}class v extends Error{constructor(E,b){super(),this.message="Failed to load static file for page: "+E+" "+b}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(m){return JSON.stringify({message:m.message,stack:m.stack})}}(Ie)),Ie}var ce={exports:{}},Ne={},St;function _r(){return St||(St=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(Ne)),Ne}var Ce={},Et;function ut(){return Et||(Et=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),o=n.indexOf("?"),i=o>-1&&(r<0||o<r);return i||r>-1?{pathname:n.substring(0,i?o:r),query:i?n.substring(o,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}}(Ce)),Ce}var wt;function Re(){return wt||(wt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const n=_r(),r=ut(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:u,query:a,hash:s}=(0,r.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(u)?""+(0,n.removeTrailingSlash)(u)+a+s:u.endsWith("/")?""+u+a+s:u+"/"+a+s:""+(0,n.removeTrailingSlash)(u)+a+s};(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)}(ce,ce.exports)),ce.exports}var Ae={},le={exports:{}},Le={},xt;function vr(){return xt||(xt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=ut();function n(r,o){if(typeof r!="string")return!1;const{pathname:i}=(0,t.parsePath)(r);return i===o||i.startsWith(o+"/")}}(Le)),Le}var Ot;function rn(){return Ot||(Ot=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const n=vr(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,n.pathHasPrefix)(i,r)}(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)}(le,le.exports)),le.exports}var jt;function br(){return jt||(jt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=Pe(),n=rn();function r(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),u=new URL(o,i);return u.origin===i&&(0,n.hasBasePath)(u.pathname)}catch{return!1}}}(Ae)),Ae}var Me={},qe={},Tt;function nn(){return Tt||(Tt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const u=i.map(a=>this.children.get(a)._smoosh(""+o+a+"/")).reduce((a,s)=>[...a,...s],[]);if(this.slugName!==null&&u.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const a=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+a+'" and "'+a+"[[..."+this.optionalRestSlugName+']]").');u.unshift(a)}return this.restSlugName!==null&&u.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&u.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),u}_insert(o,i,u){if(o.length===0){this.placeholder=!1;return}if(u)throw new Error("Catch-all must be the last part of the URL.");let a=o[0];if(a.startsWith("[")&&a.endsWith("]")){let d=function(f,c){if(f!==null&&f!==c)throw new Error("You cannot use different slug names for the same dynamic path ('"+f+"' !== '"+c+"').");i.forEach(g=>{if(g===c)throw new Error('You cannot have the same slug name "'+c+'" repeat within a single dynamic path');if(g.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+g+'" and "'+c+'" differ only by non-word symbols within a single dynamic path')}),i.push(c)},s=a.slice(1,-1),l=!1;if(s.startsWith("[")&&s.endsWith("]")&&(s=s.slice(1,-1),l=!0),s.startsWith("...")&&(s=s.substring(3),u=!0),s.startsWith("[")||s.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+s+"').");if(s.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+s+"').");if(u)if(l){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');d(this.optionalRestSlugName,s),this.optionalRestSlugName=s,a="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');d(this.restSlugName,s),this.restSlugName=s,a="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');d(this.slugName,s),this.slugName=s,a="[]"}}this.children.has(a)||this.children.set(a,new t),this.children.get(a)._insert(o.slice(1),i,u)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(r){const o=new t;return r.forEach(i=>o.insert(i)),o.smoosh()}}(qe)),qe}var De={},It;function on(){return It||(It=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=/\/\[[^/]+?\](?=\/|$)/;function n(r){return t.test(r)}}(De)),De}var Nt;function an(){return Nt||(Nt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var u in i)Object.defineProperty(o,u,{enumerable:!0,get:i[u]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=nn(),r=on()}(Me)),Me}var ke={},ze={},Ct;function sn(){return Ct||(Ct=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=Pe();function n(r){let{re:o,groups:i}=r;return u=>{const a=o.exec(u);if(!a)return!1;const s=d=>{try{return decodeURIComponent(d)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(d=>{const f=i[d],c=a[f.pos];c!==void 0&&(l[d]=~c.indexOf("/")?c.split("/").map(g=>s(g)):f.repeat?[s(c)]:s(c))}),l}}}(ze)),ze}var Fe={},Ue={},Be={},$e={},At;function un(){return At||(At=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}($e)),$e}var We={},Lt;function cn(){return Lt||(Lt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(n){return n[0]==="("&&n.endsWith(")")}}(We)),We}var Mt;function ln(){return Mt||(Mt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,a){for(var s in a)Object.defineProperty(u,s,{enumerable:!0,get:a[s]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const n=un(),r=cn();function o(u){return(0,n.ensureLeadingSlash)(u.split("/").reduce((a,s,l,d)=>!s||(0,r.isGroupSegment)(s)||s[0]==="@"||(s==="page"||s==="route")&&l===d.length-1?a:a+"/"+s,""))}function i(u,a){return a?u.replace(/\.rsc($|\?)/,"$1"):u}}(Be)),Be}var qt;function fn(){return qt||(qt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,a){for(var s in a)Object.defineProperty(u,s,{enumerable:!0,get:a[s]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const n=ln(),r=["(..)(..)","(.)","(..)","(...)"];function o(u){return u.split("/").find(a=>r.find(s=>a.startsWith(s)))!==void 0}function i(u){let a,s,l;for(const d of u.split("/"))if(s=r.find(f=>d.startsWith(f)),s){[a,l]=u.split(s,2);break}if(!a||!s||!l)throw new Error(`Invalid interception route: ${u}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(a=(0,n.normalizeAppPath)(a),s){case"(.)":a==="/"?l=`/${l}`:l=a+"/"+l;break;case"(..)":if(a==="/")throw new Error(`Invalid interception route: ${u}. Cannot use (..) marker at the root level, use (.) instead.`);l=a.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const d=a.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${u}. Cannot use (..)(..) marker at the root level or one level up.`);l=d.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:a,interceptedRoute:l}}}(Ue)),Ue}var Ve={},Dt;function dn(){return Dt||(Dt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(o){return t.test(o)?o.replace(n,"\\$&"):o}}(Ve)),Ve}var kt;function pn(){return kt||(kt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,h){for(var v in h)Object.defineProperty(p,v,{enumerable:!0,get:h[v]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return g},getNamedMiddlewareRegex:function(){return _}});const n=fn(),r=dn(),o=_r(),i="nxtP",u="nxtI";function a(p){const h=p.startsWith("[")&&p.endsWith("]");h&&(p=p.slice(1,-1));const v=p.startsWith("...");return v&&(p=p.slice(3)),{key:p,repeat:v,optional:h}}function s(p){const h=(0,o.removeTrailingSlash)(p).slice(1).split("/"),v={};let x=1;return{parameterizedRoute:h.map(S=>{const m=n.INTERCEPTION_ROUTE_MARKERS.find(b=>S.startsWith(b)),E=S.match(/\[((?:\[.*\])|.+)\]/);if(m&&E){const{key:b,optional:R,repeat:w}=a(E[1]);return v[b]={pos:x++,repeat:w,optional:R},"/"+(0,r.escapeStringRegexp)(m)+"([^/]+?)"}else if(E){const{key:b,repeat:R,optional:w}=a(E[1]);return v[b]={pos:x++,repeat:R,optional:w},R?w?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,r.escapeStringRegexp)(S)}).join(""),groups:v}}function l(p){const{parameterizedRoute:h,groups:v}=s(p);return{re:new RegExp("^"+h+"(?:/)?$"),groups:v}}function d(){let p=0;return()=>{let h="",v=++p;for(;v>0;)h+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return h}}function f(p){let{getSafeRouteKey:h,segment:v,routeKeys:x,keyPrefix:S}=p;const{key:m,optional:E,repeat:b}=a(v);let R=m.replace(/\W/g,"");S&&(R=""+S+R);let w=!1;return(R.length===0||R.length>30)&&(w=!0),isNaN(parseInt(R.slice(0,1)))||(w=!0),w&&(R=h()),S?x[R]=""+S+m:x[R]=""+m,b?E?"(?:/(?<"+R+">.+?))?":"/(?<"+R+">.+?)":"/(?<"+R+">[^/]+?)"}function c(p,h){const v=(0,o.removeTrailingSlash)(p).slice(1).split("/"),x=d(),S={};return{namedParameterizedRoute:v.map(m=>{const E=n.INTERCEPTION_ROUTE_MARKERS.some(R=>m.startsWith(R)),b=m.match(/\[((?:\[.*\])|.+)\]/);return E&&b?f({getSafeRouteKey:x,segment:b[1],routeKeys:S,keyPrefix:h?u:void 0}):b?f({getSafeRouteKey:x,segment:b[1],routeKeys:S,keyPrefix:h?i:void 0}):"/"+(0,r.escapeStringRegexp)(m)}).join(""),routeKeys:S}}function g(p,h){const v=c(p,h);return{...l(p),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function _(p,h){const{parameterizedRoute:v}=s(p),{catchAll:x=!0}=h;if(v==="/")return{namedRegex:"^/"+(x?".*":"")+"$"};const{namedParameterizedRoute:S}=c(p,!1);let m=x?"(?:(/.*)?)":"";return{namedRegex:"^"+S+m+"$"}}}(Fe)),Fe}var zt;function mn(){return zt||(zt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=sn(),n=pn();function r(o,i,u){let a="";const s=(0,n.getRouteRegex)(o),l=s.groups,d=(i!==o?(0,t.getRouteMatcher)(s)(i):"")||u;a=o;const f=Object.keys(l);return f.every(c=>{let g=d[c]||"";const{repeat:_,optional:p}=l[c];let h="["+(_?"...":"")+c+"]";return p&&(h=(g?"":"/")+"["+h+"]"),_&&!Array.isArray(g)&&(g=[g]),(p||c in d)&&(a=a.replace(h,_?g.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(g))||"/")})||(a=""),{params:f,result:a}}}(ke)),ke}var Ft;function gn(){return Ft||(Ft=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const n=gr(),r=yr(),o=tn(),i=Pe(),u=Re(),a=br(),s=an(),l=mn();function d(f,c,g){let _,p=typeof c=="string"?c:(0,r.formatWithValidation)(c);const h=p.match(/^[a-zA-Z]{1,}:\/\//),v=h?p.slice(h[0].length):p;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+f.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,i.normalizeRepeatedSlashes)(v);p=(h?h[0]:"")+S}if(!(0,a.isLocalURL)(p))return g?[p]:p;try{_=new URL(p.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{_=new URL("/","http://n")}try{const S=new URL(p,_);S.pathname=(0,u.normalizePathTrailingSlash)(S.pathname);let m="";if((0,s.isDynamicRoute)(S.pathname)&&S.searchParams&&g){const b=(0,n.searchParamsToUrlQuery)(S.searchParams),{result:R,params:w}=(0,l.interpolateAs)(S.pathname,S.pathname,b);R&&(m=(0,r.formatWithValidation)({pathname:R,hash:S.hash,query:(0,o.omit)(b,w)}))}const E=S.origin===_.origin?S.href.slice(S.origin.length):S.href;return g?[E,m||E]:E}catch{return g?[p]:p}}(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)}(ue,ue.exports)),ue.exports}var fe={exports:{}},He={},Ke={},Ut;function Pr(){return Ut||(Ut=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=ut();function n(r,o){if(!r.startsWith("/")||!o)return r;const{pathname:i,query:u,hash:a}=(0,t.parsePath)(r);return""+o+i+u+a}}(Ke)),Ke}var Bt;function hn(){return Bt||(Bt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=Pr(),n=vr();function r(o,i,u,a){if(!i||i===u)return o;const s=o.toLowerCase();return!a&&((0,n.pathHasPrefix)(s,"/api")||(0,n.pathHasPrefix)(s,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(He)),He}var $t;function yn(){return $t||($t=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=Re(),r=function(o){for(var i=arguments.length,u=new Array(i>1?i-1:0),a=1;a<i;a++)u[a-1]=arguments[a];return process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(hn().addLocale(o,...u)):o};(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)}(fe,fe.exports)),fe.exports}var Ge={},Wt;function _n(){return Wt||(Wt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});const r=te._(N).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="RouterContext")}(Ge)),Ge}var Xe={},Vt;function vn(){return Vt||(Vt=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,d){for(var f in d)Object.defineProperty(l,f,{enumerable:!0,get:d[f]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return a},TemplateContext:function(){return s}});const r=te._(N);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=r.default.createContext(null),u=r.default.createContext(null),a=r.default.createContext(null),s=r.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",u.displayName="LayoutRouterContext",a.displayName="GlobalLayoutRouterContext",s.displayName="TemplateContext")}(Xe)),Xe}var de={exports:{}},pe={exports:{}},Ht;function Rr(){return Ht||(Ht=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(i,u){for(var a in u)Object.defineProperty(i,a,{enumerable:!0,get:u[a]})}n(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return o}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let u=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-u))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(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)}(pe,pe.exports)),pe.exports}var Kt;function bn(){return Kt||(Kt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const n=N,r=Rr(),o=typeof IntersectionObserver=="function",i=new Map,u=[];function a(d){const f={root:d.root||null,margin:d.rootMargin||""},c=u.find(h=>h.root===f.root&&h.margin===f.margin);let g;if(c&&(g=i.get(c),g))return g;const _=new Map,p=new IntersectionObserver(h=>{h.forEach(v=>{const x=_.get(v.target),S=v.isIntersecting||v.intersectionRatio>0;x&&S&&x(S)})},d);return g={id:f,observer:p,elements:_},u.push(f),i.set(f,g),g}function s(d,f,c){const{id:g,observer:_,elements:p}=a(c);return p.set(d,f),_.observe(d),function(){if(p.delete(d),_.unobserve(d),p.size===0){_.disconnect(),i.delete(g);const v=u.findIndex(x=>x.root===g.root&&x.margin===g.margin);v>-1&&u.splice(v,1)}}}function l(d){let{rootRef:f,rootMargin:c,disabled:g}=d;const _=g||!o,[p,h]=(0,n.useState)(!1),v=(0,n.useRef)(null),x=(0,n.useCallback)(m=>{v.current=m},[]);(0,n.useEffect)(()=>{if(o){if(_||p)return;const m=v.current;if(m&&m.tagName)return s(m,b=>b&&h(b),{root:f==null?void 0:f.current,rootMargin:c})}else if(!p){const m=(0,r.requestIdleCallback)(()=>h(!0));return()=>(0,r.cancelIdleCallback)(m)}},[_,c,f,p,v.current]);const S=(0,n.useCallback)(()=>{h(!1)},[]);return[x,p,S]}(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)}(de,de.exports)),de.exports}var me={exports:{}},ge={exports:{}},Ye={},Gt;function Pn(){return Gt||(Gt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,r){let o;const i=n.split("/");return(r||[]).some(u=>i[1]&&i[1].toLowerCase()===u.toLowerCase()?(o=u,i.splice(1,1),n=i.join("/")||"/",!0):!1),{pathname:n,detectedLocale:o}}}(Ye)),Ye}var Xt;function Rn(){return Xt||(Xt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(r,o)=>process.env.__NEXT_I18N_SUPPORT?Pn().normalizeLocalePath(r,o):{pathname:r,detectedLocale:void 0};(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)}(ge,ge.exports)),ge.exports}var he={exports:{}},Qe={},Yt;function Sn(){return Yt||(Yt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,o){if(n){o&&(o=o.toLowerCase());for(const a of n){var i,u;const s=(i=a.domain)==null?void 0:i.split(":")[0].toLowerCase();if(r===s||o===a.defaultLocale.toLowerCase()||(u=a.locales)!=null&&u.some(l=>l.toLowerCase()===o))return a}}}}(Qe)),Qe}var Qt;function En(){return Qt||(Qt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Sn().detectDomainLocale(...o)};(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)}(he,he.exports)),he.exports}var Jt;function wn(){return Jt||(Jt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const n=Re(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,u,a,s){if(process.env.__NEXT_I18N_SUPPORT){const l=Rn().normalizeLocalePath,d=En().detectDomainLocale,f=u||l(i,a).detectedLocale,c=d(s,void 0,f);if(c){const g="http"+(c.http?"":"s")+"://",_=f===c.defaultLocale?"":"/"+f;return""+g+c.domain+(0,n.normalizePathTrailingSlash)(""+r+_+i)}return!1}else return!1}(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)}(me,me.exports)),me.exports}var ye={exports:{}},Zt;function xn(){return Zt||(Zt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const n=Pr(),r=Re(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(u,a){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!a?u:(0,n.addPathPrefix)(u,o))}(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)}(ye,ye.exports)),ye.exports}var _e={exports:{}},er;function On(){return er||(er=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,c){for(var g in c)Object.defineProperty(f,g,{enumerable:!0,get:c[g]})}n(t,{PrefetchKind:function(){return d},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return u},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return s},ACTION_SERVER_ACTION:function(){return l}});const r="refresh",o="navigate",i="restore",u="server-patch",a="prefetch",s="fast-refresh",l="server-action";var d;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(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)}(_e,_e.exports)),_e.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});const r=te._(N),o=gn(),i=br(),u=yr(),a=Pe(),s=yn(),l=_n(),d=vn(),f=bn(),c=wn(),g=xn(),_=On(),p=new Set;function h(b,R,w,T,L,D){if(typeof window>"u"||!D&&!(0,i.isLocalURL)(R))return;if(!T.bypassPrefetchedCheck){const H=typeof T.locale<"u"?T.locale:"locale"in b?b.locale:void 0,G=R+"%"+w+"%"+H;if(p.has(G))return;p.add(G)}const X=D?b.prefetch(R,L):b.prefetch(R,w,T);Promise.resolve(X).catch(H=>{if(process.env.NODE_ENV!=="production")throw H})}function v(b){const w=b.currentTarget.getAttribute("target");return w&&w!=="_self"||b.metaKey||b.ctrlKey||b.shiftKey||b.altKey||b.nativeEvent&&b.nativeEvent.which===2}function x(b,R,w,T,L,D,X,H,G,Ee){const{nodeName:we}=b.currentTarget;if(we.toUpperCase()==="A"&&(v(b)||!G&&!(0,i.isLocalURL)(w)))return;b.preventDefault();const F=()=>{const Y=X??!0;"beforePopState"in R?R[L?"replace":"push"](w,T,{shallow:D,locale:H,scroll:Y}):R[L?"replace":"push"](T||w,{forceOptimisticNavigation:!Ee,scroll:Y})};G?r.default.startTransition(F):F()}function S(b){return typeof b=="string"?b:(0,u.formatUrl)(b)}const E=r.default.forwardRef(function(R,w){let T;const{href:L,as:D,children:X,prefetch:H=null,passHref:G,replace:Ee,shallow:we,scroll:ct,locale:F,onClick:Y,onMouseEnter:xe,onTouchStart:lt,legacyBehavior:k=!1,...Ir}=R;T=X,k&&(typeof T=="string"||typeof T=="number")&&(T=r.default.createElement("a",null,T));const A=r.default.useContext(l.RouterContext),Nr=r.default.useContext(d.AppRouterContext),U=A??Nr,B=!A,re=H!==!1,ie=H===null?_.PrefetchKind.AUTO:_.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let O=function(j){return new Error("Failed prop type: The prop `"+j.key+"` expects a "+j.expected+" in `<Link>`, but got `"+j.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(j=>{if(j==="href"&&(R[j]==null||typeof R[j]!="string"&&typeof R[j]!="object"))throw O({key:j,expected:"`string` or `object`",actual:R[j]===null?"null":typeof R[j]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(j=>{const W=typeof R[j];if(j==="as"){if(R[j]&&W!=="string"&&W!=="object")throw O({key:j,expected:"`string` or `object`",actual:W})}else if(j==="locale"){if(R[j]&&W!=="string")throw O({key:j,expected:"`string`",actual:W})}else if(j==="onClick"||j==="onMouseEnter"||j==="onTouchStart"){if(R[j]&&W!=="function")throw O({key:j,expected:"`function`",actual:W})}else if((j==="replace"||j==="scroll"||j==="shallow"||j==="passHref"||j==="prefetch"||j==="legacyBehavior")&&R[j]!=null&&W!=="boolean")throw O({key:j,expected:"`boolean`",actual:W})});const ht=r.default.useRef(!1);R.prefetch&&!ht.current&&!B&&(ht.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"))}if(process.env.NODE_ENV!=="production"&&B&&!D){let O;if(typeof L=="string"?O=L:typeof L=="object"&&typeof L.pathname=="string"&&(O=L.pathname),O&&O.split("/").some(J=>J.startsWith("[")&&J.endsWith("]")))throw new Error("Dynamic href `"+O+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:$,as:q}=r.default.useMemo(()=>{if(!A){const J=S(L);return{href:J,as:D?S(D):J}}const[O,ne]=(0,o.resolveHref)(A,L,!0);return{href:O,as:D?(0,o.resolveHref)(A,D):ne||O}},[A,L,D]),ft=r.default.useRef($),dt=r.default.useRef(q);let M;if(k)if(process.env.NODE_ENV==="development"){Y&&console.warn('"onClick" was passed to <Link> with `href` of `'+L+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),xe&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+L+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{M=r.default.Children.only(T)}catch{throw T?new Error("Multiple children were passed to <Link> with `href` of `"+L+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+L+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else M=r.default.Children.only(T);else if(process.env.NODE_ENV==="development"&&(T==null?void 0:T.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const Q=k?M&&typeof M=="object"&&M.ref:w,[pt,mt,gt]=(0,f.useIntersection)({rootMargin:"200px"}),Cr=r.default.useCallback(O=>{(dt.current!==q||ft.current!==$)&&(gt(),dt.current=q,ft.current=$),pt(O),Q&&(typeof Q=="function"?Q(O):typeof Q=="object"&&(Q.current=O))},[q,Q,$,gt,pt]);r.default.useEffect(()=>{process.env.NODE_ENV==="production"&&U&&(!mt||!re||h(U,$,q,{locale:F},{kind:ie},B))},[q,$,mt,F,re,A==null?void 0:A.locale,U,B,ie]);const ae={ref:Cr,onClick(O){if(process.env.NODE_ENV!=="production"&&!O)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!k&&typeof Y=="function"&&Y(O),k&&M.props&&typeof M.props.onClick=="function"&&M.props.onClick(O),U&&(O.defaultPrevented||x(O,U,$,q,Ee,we,ct,F,B,re))},onMouseEnter(O){!k&&typeof xe=="function"&&xe(O),k&&M.props&&typeof M.props.onMouseEnter=="function"&&M.props.onMouseEnter(O),U&&((!re||process.env.NODE_ENV==="development")&&B||h(U,$,q,{locale:F,priority:!0,bypassPrefetchedCheck:!0},{kind:ie},B))},onTouchStart(O){!k&&typeof lt=="function"&&lt(O),k&&M.props&&typeof M.props.onTouchStart=="function"&&M.props.onTouchStart(O),U&&(!re&&B||h(U,$,q,{locale:F,priority:!0,bypassPrefetchedCheck:!0},{kind:ie},B))}};if((0,a.isAbsoluteUrl)(q))ae.href=q;else if(!k||G||M.type==="a"&&!("href"in M.props)){const O=typeof F<"u"?F:A==null?void 0:A.locale,ne=(A==null?void 0:A.isLocaleDomain)&&(0,c.getDomainLocale)(q,O,A==null?void 0:A.locales,A==null?void 0:A.domainLocales);ae.href=ne||(0,g.addBasePath)((0,s.addLocale)(q,O,A==null?void 0:A.defaultLocale))}return k?r.default.cloneElement(M,ae):r.default.createElement("a",{...Ir,...ae},T)});(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)})(et,et.exports);var jn=et.exports,Tn=jn;const Se=mr(Tn),In=e=>{const t=e.getBlocksAsArray(),n=[];return t.forEach(r=>{const o=r.getType(),i=r.getText();let u;const a=r.getInlineStyleAt(0).toArray();a.length>0&&(u=a.map(l=>{switch(l){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const s={type:"p",text:i,...u&&{styleText:u}};switch(o){case"header-one":s.type="h1";break;case"header-two":s.type="h2";break;case"header-three":s.type="h3";break;case"unordered-list-item":s.type="li";break;case"ordered-list-item":s.type="li";break;case"blockquote":s.type="blockquote";break;case"code-block":s.type="pre";break;default:s.type="p"}n.push(s)}),n},Nn=(e,t,n)=>{e.findEntityRanges(r=>{const o=r.getEntity();return o===null?!1:n.getEntity(o).getType()==="LINK"},t)},tt=e=>{const t=new V.CompositeDecorator([{strategy:Nn,component:Se}]),n=V.convertFromRaw(e);return V.EditorState.createWithContent(n,t)},Cn=e=>V.convertFromRaw(e),rt=V.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),An=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:tt,EXTENDED_BLOCK_RENDER_MAP:rt,GET_CONTENT_STATE:Cn,convertDraftToHTML:In},Symbol.toStringTag,{value:"Module"})),nt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Sr=({slug:e,data:t,SectionZone:n,COMMON_PAGE_COLUMN_GAP:r})=>{const o=t==null?void 0:t.find(d=>{var f,c,g,_;return((c=(f=d.config)==null?void 0:f.responsive)==null?void 0:c.deviceType)==="desktop"&&((_=(g=d.config)==null?void 0:g.seo)==null?void 0:_.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,u=o==null?void 0:o.config.responsive.gapSections,a=t==null?void 0:t.find(d=>{var f,c,g,_;return((c=(f=d.config)==null?void 0:f.responsive)==null?void 0:c.deviceType)==="mobile"&&((_=(g=d.config)==null?void 0:g.seo)==null?void 0:_.slug)===e}),s=a==null?void 0:a.config.responsive.gapCustom,l=a==null?void 0:a.config.responsive.gapSections;return y.jsxs(y.Fragment,{children:[y.jsx(I.Utils.Column,{gap:i&&u?u:r,className:I.helpers.classNameConcat(nt["responsive-desktop-flex"],"utils-column-modifier"),children:y.jsx(n,{data:(o==null?void 0:o.sections)??[]})}),y.jsx(I.Utils.Column,{gap:s&&l?l:r,className:I.helpers.classNameConcat(nt["responsive-mobile-flex"],"utils-column-modifier"),children:y.jsx(n,{data:(a==null?void 0:a.sections)??[]})})]})};async function Ln({contentType:e,documents:t,NextCookies:n,CMS_PROJECT_NAME:r,storeId:o}){var u;const i=JSON.parse(((u=n().get("cms_preview_data"))==null?void 0:u.value)??"{}");if(i&&(i==null?void 0:i.contentType)===e){const a=i.documentId&&i.documentId.length?`/${i.documentId}`:"",s=i!=null&&i.versionId&&(i!=null&&i.versionId.length)?`?versionId=${i==null?void 0:i.versionId}`:"",d=await(await fetch(`https://${o}.myvtex.com/_v/cms/api/${r}/${e}${a}${s}`,{cache:"no-store"})).json(),f=t.filter(c=>d.id!==c.documentId);return f.unshift(d),f}return t}async function Er({contentType:e,NextCookies:t,CMS_PROJECT_NAME:n,storeId:r}){var l,d;const o=JSON.parse(((l=t().get("cms_preview_data"))==null?void 0:l.value)??"{}"),i=[];let u=1,a=0,s=!0;try{do{const c=await(await fetch(`https://${r}.myvtex.com/_v/cms/api/${n}/${e}?page=${u}`)).json();u===1&&(a=c.totalItems),(d=c==null?void 0:c.data)!=null&&d.length&&i.push(...c.data),s=c.hasNextPage,u++}while(s&&i.length<a);if(o.previewMode&&i.length){const f=await Ln({contentType:e,documents:i,NextCookies:t,CMS_PROJECT_NAME:n,storeId:r});return{status:f.length>0?200:404,data:f??[]}}return{status:i.length?200:404,data:i}}catch(f){return{status:"error",data:[],error:f}}}const Mn=Object.freeze(Object.defineProperty({__proto__:null,getContentType:Er},Symbol.toStringTag,{value:"Module"})),qn=async({slug:e,SectionZone:t,COMMON_PAGE_COLUMN_GAP:n,...r})=>{const{data:o}=await Er({contentType:"common_page",...r});return y.jsx(Sr,{data:o,slug:e,SectionZone:t,COMMON_PAGE_COLUMN_GAP:n})},Z=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Dn=({expanded:e,content:t})=>y.jsxs("details",{open:e,children:[t.textStructureReduced?y.jsx("summary",{onClick:n=>n.preventDefault(),children:y.jsx(V.Editor,{editorKey:"draft-editor-1",blockRenderMap:rt,editorState:t!=null&&t.textStructureReduced?tt(JSON.parse(t.textStructureReduced)):V.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):y.jsx(y.Fragment,{}),t.showTextStructureExpander&&t.textStructure?y.jsx(y.Fragment,{children:y.jsx(V.Editor,{editorKey:"draft-editor-1",blockRenderMap:rt,editorState:t.textStructure?tt(JSON.parse(t.textStructure)):V.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):y.jsx(y.Fragment,{})]}),kn={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},zn="_textContentWrapper_1bigo_5",tr={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:zn},Fn="_link_w24h0_1",Un="_wrapper_w24h0_98",Bn="_text_w24h0_106",Je={link:Fn,wrapper:Un,text:Bn},wr=({children:e,adornments:t,className:n,disableUnderline:r,href:o,mode:i,size:u,title:a,onClick:s,disablePadding:l,...d})=>{const f=I.helpers.ValidateProp({fieldTypes:ee.SizesSmallExtended,property:u,fallback:"medium"}),c=I.helpers.ValidateProp({fieldTypes:ee.Mode,property:i,fallback:"default"});return y.jsx(Se,{...d,className:I.helpers.classNameConcat(Je.link,n),href:o&&o.length>0?o:"#","data-size":f,"data-variant":c,title:a||"NextLink","data-disable-underline":r??!1,"data-disable-padding":l??!0,children:y.jsxs("div",{className:Je.wrapper,onClick:s,children:[t==null?void 0:t.start,y.jsx("p",{className:Je.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},$n=({data:e})=>{var r;const[t,n]=N.useState(!1);return y.jsx(I.TextStructure.Root,{layoutProps:{textRow:{alignContent:Z(e.textStructureAlignment),alignItems:Z(e.textStructureAlignment)},columnWrapper:{alignContent:Z(e.textStructureAlignment),alignItems:Z(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?y.jsx(I.Button,{variant:"tertiary",adornment:{end:y.jsx(I.Icon,{name:t?"arrow-up":"arrow-down"})},onClick:()=>n(o=>!o),size:"small",children:t?"Ver Menos":"Ver Mais"}):y.jsx(y.Fragment,{})},children:y.jsxs(I.Utils.Column,{className:tr.textContentWrapper,style:{alignItems:Z(e.textStructureAlignment)},children:[y.jsx(I.TextStructure.DivWrapper,{style:{textAlign:Z(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:kn["draftjs-text-modifier"],children:e.textStructureReduced?y.jsx(Dn,{content:e,expanded:t}):y.jsx(y.Fragment,{})}),e.textStructureButtonLabel?y.jsx(wr,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:tr["link-modifier"],adornments:(r=e.textStructureButtonIcon)!=null&&r.length&&e.enableIcon?{end:y.jsx(I.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):y.jsx(y.Fragment,{})]})})},Wn=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],rr=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Vn="_image_lypfr_1",Hn={image:Vn},Kn=({alt:e,className:t,objectFit:n,...r})=>{const{nextimage:o}=st();return y.jsx(o,{quality:90,...r,alt:e??"",className:I.helpers.classNameConcat(Hn.image,t),"data-object-fit":n??"cover"})},Gn=({videoRef:e,...t})=>y.jsx("video",{...t,ref:e,children:y.jsx("track",{kind:"captions"})}),xr={Image:Kn,Video:Gn},ot=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...r})=>{const[o,i]=N.useState(pr(new yt.TZDate(Date.now(),n),new yt.TZDate(e,n))),[u,a]=N.useState(!1);N.useEffect(()=>{u||a(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,u]);const s=oe(o,"days");return u&&o>0?y.jsxs(I.Timer.Root,{...r,children:[s?y.jsxs(y.Fragment,{children:[y.jsx(I.Timer.Digit,{label:"dias",value:s}),y.jsx(I.Timer.Separator,{})]}):null,y.jsx(I.Timer.Digit,{label:"horas",value:oe(o,"hours")}),y.jsx(I.Timer.Separator,{}),y.jsx(I.Timer.Digit,{label:"min",value:oe(o,"minutes")}),y.jsx(I.Timer.Separator,{}),y.jsx(I.Timer.Digit,{label:"segs",value:oe(o),suppressHydrationWarning:!0})]}):y.jsx(y.Fragment,{})},nr={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},or=({data:e,videoUrl:t,priority:n,videoRef:r,...o})=>{const{video:i,image:u,imageHref:a,imageOpacity:s,altImage:l,backgroundColor:d,position:f,contentAlignment:c,showTimer:g,contentOrder:_,timerMode:p,timerEnd:h,timerInit:v,textStructure:x,textStructureReduced:S}=e.banner,m=(a==null?void 0:a.trim())||(u==null?void 0:u.trim())||null,{nextimage:E}=st();return y.jsxs(I.Banner.Container,{...o,children:[y.jsxs(I.Banner.ImageWrapper,{className:nr["banner-image-wrapper-modifier"],style:s?{background:d}:void 0,children:[i&&y.jsx(xr.Video,{videoRef:r,src:t,autoPlay:n,loop:!0,playsInline:!0,muted:!0}),m&&!(i!=null&&i.length)&&y.jsx(E,{src:m,width:"1920",height:"1080",alt:l??u??"",...n?{priority:n}:{},style:s?{opacity:"0"}:void 0}),!u&&!(i!=null&&i.length)&&y.jsx("div",{style:{background:d}})]}),g||S||x?y.jsx(I.Banner.Slot,{...Wn(f??"centro"),className:nr["content-modifier"],style:{textAlign:rr(c)},children:y.jsxs(I.Utils.Column,{gap:"16px",alignItems:rr(c),children:[g&&_==="timer-first"&&y.jsx(ot,{mode:p??"default",size:"small",dateEnd:h?new Date(h):new Date,dateInit:v?new Date(v):new Date}),y.jsx($n,{data:e.banner}),g&&_!=="timer-first"&&y.jsx(ot,{mode:p??"default",size:"small",dateEnd:h?new Date(h):new Date,dateInit:v?new Date(v):new Date})]})}):y.jsx(y.Fragment,{})]})},Xn={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Yn(e,t,n){const[r,o]=N.useState(!1),{threshold:i}=n||{};return N.useEffect(()=>{if(!e.current)return()=>{};let u=null;const a=new IntersectionObserver(([s])=>{if(n!=null&&n.delay){u&&clearTimeout(u),u=setTimeout(()=>{o(s.isIntersecting),t&&s.isIntersecting&&a.unobserve(e.current)},n.delay);return}o(s.isIntersecting),t&&s.isIntersecting&&a.unobserve(e.current)},{threshold:i||1});return a.observe(e.current),()=>{a.disconnect()}},[e]),r}const Or=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:r,stopOnIntersection:o=!0,className:i,...u})=>{const a=N.useRef(null),s=Yn(a,o,n),{sendDataLayerEvent:l}=at();return N.useEffect(()=>{s&&(typeof r=="function"&&r(),t&&l({...t}))},[s]),y.jsx("div",{...u,ref:a,className:I.helpers.classNameConcat(Xn["observer-wrapper"],i),children:e})},jr=({data:e,className:t,priority:n,creative:r,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:u}=at(),{banner:{promotion_name:a},index:s,componentIndex:l}=e,d=typeof s=="number"?`:${s+1}`:"",f={creative_name:r,creative_slot:`${r}-${u.current}:${l+1}${d}`,promotion_id:e.banner.href,promotion_name:a},c=N.useRef(null),g=N.useMemo(()=>{var p;if((p=e.banner.video)!=null&&p.includes("player.vimeo")){const h=e.banner.video.split("?")[1],v=h==null?void 0:h.split("&"),x=v==null?void 0:v.filter(m=>m.includes("loc")||m.includes("signature")||m.includes("user_id")),S=x==null?void 0:x.join("&");return`${e.banner.video.split("?")[0]}?${S}`}return e.banner.video},[e]),_=()=>{var p;(p=c.current)!=null&&p.paused&&c.current.play()};return y.jsx(Or,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...f,index:s}}}},observerOptions:{delay:100,...g&&{threshold:.1}},...g&&{callBackWhenVisible:_},children:e.banner.href?y.jsx(Se,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:f,index:s})},children:y.jsx(or,{data:e,videoUrl:g,priority:n,videoRef:c,...o})}):y.jsx(or,{data:e,videoUrl:g,priority:n,videoRef:c,...o})})},Qn=e=>y.jsx(jr,{...e}),Jn=e=>e,Zn=e=>e,be={schema:Jn,base:Zn};function Tr({ICONS:e}){return{borderTop:P.property({title:"Esconder borda superior",type:"boolean"}),textStructure:P.property({title:'Texto complementar (caso queira o "ver mais")',type:"string",widget:P.widget({uiWidget:"draftjs-rich-text"})}),textStructureReduced:P.property({title:"Texto inicial",type:"string",widget:P.widget({uiWidget:"draftjs-rich-text"})}),textStructureMode:P.property({title:"cor da estrutura de texto",type:"string",enumNames:["Padrão(preto)","Invertido(branco)"],enum:["default","inverse"]}),textStructureButtonSize:P.property({title:"Tamanho botão estrutura de texto",type:"string",enumNames:ee.SizesSmallExtended,enum:ee.SizesSmallExtended}),enableIcon:P.property({type:"boolean",title:"Ativar ícone"}),textStructureButtonIcon:P.property({title:"Icone botão estrutura de texto",type:"string",enum:Object.values(e),enumNames:Object.keys(e)}),textStructureButtonLabel:P.property({title:"Label botão estrutura de texto",type:"string"}),textStructureButtonHref:P.property({title:"Url botão estrutura texto",type:"string"}),showTextStructureExpander:P.property({title:'Mostrar botão "ver mais" (Caso ja tenha um texto reduzido)',type:"boolean"}),textStructureAlignment:P.property({title:"alinhamento do texto",type:"string",enumNames:["centro","esquerda","direita"],enum:["centro","esquerda","direita"]})}}function eo({ICONS:e}){return P.property({type:"object",title:"Item",properties:{title:P.property({type:"object",title:"Item"}),creative_name:P.property({type:"string",title:"creative name ex: carrossel home, ex2: stories"}),creative_slot:P.property({type:"string",title:"creative slot ex: carrossel-home: 1"}),promotion_id:P.property({type:"string",title:"promotion id ex: /animale: ex2: /new-collection?O=OrderByScoreDESC"}),promotion_name:P.property({type:"string",title:"promotion name ex: special-gift-for-you"}),href:P.property({type:"string",title:"Link"}),image:P.property({type:"string",title:"Imagem upload",description:"Upload de imagens ou seleção de imagens já existentes.",widget:P.widget({uiWidget:"media-gallery"})}),imageHref:P.property({type:"string",title:"Imagem via link",description:"Informe um link de imagem apenas se não for usar o upload da VTEX. Os dois não podem ser usados juntos."}),imageOpacity:P.property({title:"Deixar imagem transparente",type:"boolean"}),headerVariant:P.property({title:"cor do header no banner principal (se Banner Carousel na home)",type:"string",enumNames:["Padrão(preto)","Invertido(branco)"],enum:["transparent-black","transparent-white"]}),video:P.property({type:"string",title:"Video",widget:P.widget({uiWidget:"media-gallery"})}),altImage:P.property({type:"string",title:"Alt Image"}),isHeroBanner:P.property({title:"é hero banner",type:"boolean"}),backgroundColor:P.property({title:"Cor de fundo ex: #ffffff",type:"string"}),position:P.property({title:"Posição do conteudo na imagem",type:"string",enumNames:["superior-esquerda","superior-centro","superior-direita","centro","centro-esquerda","centro-direita","inferior-esquerda","inferior-centro","inferior-direita"],enum:["superior-esquerda","superior-centro","superior-direita","centro","centro-esquerda","centro-direita","inferior-esquerda","inferior-centro","inferior-direita"]}),showTimer:P.property({title:"mostrar relogio",type:"boolean"}),timerInit:P.property({title:"relogio inicio",type:"string",widget:{"ui:widget":"date-time"}}),timerEnd:P.property({title:"relogio Fim",type:"string",widget:{"ui:widget":"date-time"}}),timerMode:P.property({title:"cor do relogio",type:"string",enumNames:["Padrão(preto)","Invertido(branco)"],enum:["default","inverse"]}),timerSize:P.property({title:"tamanho do relogio",type:"string",enumNames:ee.SizesSmallExtended,enum:ee.SizesSmallExtended}),contentAlignment:P.property({title:"alinhamento do conteúdo",type:"string",enumNames:["centro","esquerda","direita"],enum:["centro","esquerda","direita"]}),contentOrder:P.property({title:"ordem do conteúdo",type:"string",enumNames:["relógio primeiro","estrutura de texto primeiro"],enum:["timer-first","text-structure-first"]}),...Tr({ICONS:e})}})}function to({ICONS:e}){return be.base({name:"Banner",id:"banner",href:"",requiredScopes:["common_page","categories_page","wishlist_page","search_page","prehome"],schema:be.schema({title:"Banner",description:"Banners Único para pagina",type:"object",properties:{banner:eo({ICONS:e})}})})}const ro={Banner:Qn};function no({ICONS:e}){return be.base({name:"TextContent",id:"text_content",requiredScopes:["common_page","product_page","categories_page","wishlist_page","search_page","policy_tab"],schema:be.schema({title:"TextStructure",description:"Estrutura de texto",type:"object",properties:{...Tr({ICONS:e})}})})}const oo=[to,no],io={Banner:ro,BannerSection:jr,DataScreening:Sr},ao={CommonPageContent:qn},so={Components:io,ContentTypes:Jr,Factories:Xr,Sections:oo,helpers:An},uo={Components:ao};exports.EventProvider=Ur;exports.Link=Se;exports.Link$1=wr;exports.Media=xr;exports.NextProvider=Br;exports.ObserverWrapper=Or;exports.Timer=ot;exports._interop_require_default=te;exports._interop_require_wildcard=ve;exports.clientCMS=so;exports.cmsApi=Mn;exports.events=Fr;exports.getColorAndSizeFromSkuName=it;exports.getDaysHoursMinutesSeconds=oe;exports.getDefaultExportFromCjs=mr;exports.getMilliSeconds=pr;exports.getPageCategoryAndDepartmentFromSlug=lr;exports.getSKUName=Ar;exports.removeSlashes=Lr;exports.requireRequestIdleCallback=Rr;exports.responsive=nt;exports.serverCMS=uo;exports.splitNameAndSizeFromFullName=ir;exports.useEventContext=at;exports.useNextContext=st;