@soma-vertical-web/multi-lib-sacurai 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (683) hide show
  1. package/cms/ContentTypes/Cart/index.d.ts +3 -0
  2. package/cms/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  3. package/cms/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  4. package/cms/ContentTypes/FlagsAndTags/index.d.ts +3 -0
  5. package/cms/ContentTypes/Footer/Footer.d.ts +3 -0
  6. package/cms/ContentTypes/Header/index.d.ts +3 -0
  7. package/cms/ContentTypes/HelpButton/FormatHelpButtonContent.d.ts +13 -0
  8. package/cms/ContentTypes/HelpButton/HelpButtonContent.d.ts +3 -0
  9. package/cms/ContentTypes/LPCadastro/LPCadastroContent.d.ts +4 -0
  10. package/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
  11. package/cms/ContentTypes/PLP/PLPContent.d.ts +3 -0
  12. package/cms/ContentTypes/PLP/Redirects/Redirects.d.ts +32 -0
  13. package/cms/ContentTypes/Search/SearchContent.d.ts +3 -0
  14. package/cms/ContentTypes/Search/SearchPageContent.d.ts +3 -0
  15. package/cms/ContentTypes/Search/SearchPageScreening.d.ts +3 -0
  16. package/cms/ContentTypes/Tipbar/Tipbar.d.ts +3 -0
  17. package/cms/ContentTypes/Tipbar/TipbarScreening.d.ts +3 -0
  18. package/cms/Factories/common.d.ts +7 -0
  19. package/cms/Factories/contentType.d.ts +9 -0
  20. package/cms/Factories/index.d.ts +2 -0
  21. package/cms/Factories/section.d.ts +7 -0
  22. package/cms/Sections/Banner/Component.d.ts +7 -0
  23. package/cms/Sections/Banner/Composite/Content.d.ts +4 -0
  24. package/cms/Sections/Banner/adapter.d.ts +32 -0
  25. package/cms/Sections/Banner/index.d.ts +8 -0
  26. package/cms/Sections/BannerCarousel/BannerCarousel.d.ts +3 -0
  27. package/cms/Sections/BannerCarousel/Composite/Controllers.d.ts +3 -0
  28. package/cms/Sections/BannerCarousel/index.d.ts +8 -0
  29. package/cms/Sections/BennefitsBar/Component.d.ts +3 -0
  30. package/cms/Sections/BennefitsBar/index.d.ts +8 -0
  31. package/cms/Sections/EmbedLive/Component.d.ts +4 -0
  32. package/cms/Sections/ErrorBoundary/index.d.ts +18 -0
  33. package/cms/Sections/ImageGrid/Component.d.ts +3 -0
  34. package/cms/Sections/Newsletter/Component.d.ts +3 -0
  35. package/cms/Sections/PopupModal/Component.d.ts +4 -0
  36. package/cms/Sections/PopupModal/Composite/FormSection.d.ts +4 -0
  37. package/cms/Sections/PopupModal/Composite/Success.d.ts +4 -0
  38. package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +4 -0
  39. package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +4 -0
  40. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +4 -0
  41. package/cms/Sections/ProductCarousel/request.d.ts +24 -0
  42. package/cms/Sections/SectionZone.d.ts +5 -0
  43. package/cms/Sections/TextAccordion/Component.d.ts +3 -0
  44. package/cms/Sections/TextContent/Component.d.ts +3 -0
  45. package/cms/Sections/TextContent/Composite/Content.d.ts +6 -0
  46. package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  47. package/cms/Sections/TextContent/adapter.d.ts +3 -0
  48. package/cms/Sections/TextContent/index.d.ts +5 -0
  49. package/cms/Sections/_common/Accordion.d.ts +2 -0
  50. package/cms/Sections/_common/BannerItem.d.ts +5 -0
  51. package/cms/Sections/_common/TextStructure.d.ts +17 -0
  52. package/cms/Sections/_common/interfaces.d.ts +8 -0
  53. package/cms/helpers/index.d.ts +11 -0
  54. package/cms/index.d.ts +27 -0
  55. package/cms/server.d.ts +45 -0
  56. package/constants.d.ts +49 -0
  57. package/contexts/contexts/GlobalContext.d.ts +12 -0
  58. package/contexts/contexts/NextContext.d.ts +14 -0
  59. package/contexts/contexts/Session.d.ts +5 -0
  60. package/contexts/contexts/cart/AddToCart.d.ts +6 -0
  61. package/contexts/contexts/cart/Context.d.ts +6 -0
  62. package/contexts/contexts/cart/MiniCartData.d.ts +7 -0
  63. package/contexts/contexts/cart/UIContext.d.ts +6 -0
  64. package/contexts/contexts/cms/FlagsAndTagsContext.d.ts +27 -0
  65. package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
  66. package/contexts/contexts/cms/PLPContentContext.d.ts +4 -0
  67. package/contexts/contexts/events/EventContext.d.ts +6 -0
  68. package/contexts/contexts/header/HeaderCategoryContext.d.ts +7 -0
  69. package/contexts/contexts/header/HeaderContext.d.ts +6 -0
  70. package/contexts/contexts/header/MenuMobileContext.d.ts +7 -0
  71. package/contexts/contexts/header/TipBarContext.d.ts +6 -0
  72. package/contexts/contexts/header/UserMenuContext.d.ts +6 -0
  73. package/contexts/contexts/newsletter/Context.d.ts +6 -0
  74. package/contexts/contexts/pdp/PDPContext.d.ts +6 -0
  75. package/contexts/contexts/pdp/PDPDataContext.d.ts +4 -0
  76. package/contexts/contexts/plp/FilterContext.d.ts +6 -0
  77. package/contexts/contexts/plp/PLPConstants.d.ts +6 -0
  78. package/contexts/contexts/plp/PLPContext.d.ts +6 -0
  79. package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +6 -0
  80. package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
  81. package/contexts/contexts/product-card/ProductCardContext.d.ts +6 -0
  82. package/contexts/contexts/search/Constants.d.ts +6 -0
  83. package/contexts/contexts/search/Facets.d.ts +5 -0
  84. package/contexts/contexts/search/Products.d.ts +5 -0
  85. package/contexts/contexts/search/Root.d.ts +5 -0
  86. package/contexts/contexts/search/Search.d.ts +5 -0
  87. package/contexts/contexts/search/SuggestedTerms.d.ts +5 -0
  88. package/contexts/contexts/search/TopSearches.d.ts +6 -0
  89. package/contexts/hooks/useBackPDC.d.ts +3 -0
  90. package/contexts/hooks/useClipboard.d.ts +4 -0
  91. package/contexts/hooks/useDisableZoom.d.ts +1 -0
  92. package/contexts/hooks/useLocalStorage.d.ts +1 -0
  93. package/contexts/hooks/useMediator.d.ts +1 -0
  94. package/contexts/hooks/useOnClickOutside.d.ts +3 -0
  95. package/contexts/hooks/useOnScreen.d.ts +4 -0
  96. package/contexts/hooks/useOperations.d.ts +19 -0
  97. package/contexts/hooks/useScrollRestoration.d.ts +3 -0
  98. package/contexts/hooks/useScrollRestorationInfinite.d.ts +4 -0
  99. package/contexts/hooks/useSentinel.d.ts +11 -0
  100. package/contexts/hooks/useTouchZoomPan.d.ts +8 -0
  101. package/contexts/index.d.ts +159 -0
  102. package/contexts/store/cart.d.ts +11 -0
  103. package/contexts/store/header.d.ts +24 -0
  104. package/contexts/store/helpers.d.ts +3 -0
  105. package/contexts/store/pdp.d.ts +28 -0
  106. package/contexts/store/plp.d.ts +3 -0
  107. package/contexts/store/wishlist.d.ts +12 -0
  108. package/data/api/DitoIngest/sendDitoEvent.d.ts +3 -0
  109. package/data/api/catalog/index.d.ts +2 -0
  110. package/data/api/catalog/kit/index.d.ts +11 -0
  111. package/data/api/catalog/product/info/index.d.ts +10 -0
  112. package/data/api/catalog/product/similars/index.d.ts +3 -0
  113. package/data/api/checkout/address/index.d.ts +21 -0
  114. package/data/api/checkout/index.d.ts +4 -0
  115. package/data/api/checkout/order-form/attachments/index.d.ts +17 -0
  116. package/data/api/checkout/order-form/attachments/marketing-data/index.d.ts +21 -0
  117. package/data/api/checkout/order-form/attachments/open-text-field/index.d.ts +18 -0
  118. package/data/api/checkout/order-form/coupon/index.d.ts +15 -0
  119. package/data/api/checkout/order-form/custom-data/index.d.ts +17 -0
  120. package/data/api/checkout/order-form/index.d.ts +15 -0
  121. package/data/api/checkout/order-form/items/index.d.ts +23 -0
  122. package/data/api/checkout/order-form/items/remove-all/index.d.ts +13 -0
  123. package/data/api/checkout/order-form/items/update/index.d.ts +25 -0
  124. package/data/api/checkout/order-form/messages/remove-all/index.d.ts +13 -0
  125. package/data/api/checkout/order-form/offerings/index.d.ts +19 -0
  126. package/data/api/checkout/order-form/orderform/index.d.ts +14 -0
  127. package/data/api/checkout/order-form/profile/index.d.ts +25 -0
  128. package/data/api/checkout/order-form/seller-code/index.d.ts +13 -0
  129. package/data/api/checkout/order-form/shipping/index.d.ts +17 -0
  130. package/data/api/checkout/order-form/shipping/update/index.d.ts +36 -0
  131. package/data/api/checkout/region/index.d.ts +33 -0
  132. package/data/api/checkout/simulation/index.d.ts +30 -0
  133. package/data/api/cms/content-type/index.d.ts +3 -0
  134. package/data/api/cms/index.d.ts +12 -0
  135. package/data/api/fetchVtex.d.ts +5 -0
  136. package/data/api/master-data/index.d.ts +3 -0
  137. package/data/api/master-data/masterdata/index.d.ts +26 -0
  138. package/data/api/master-data/search/index.d.ts +61 -0
  139. package/data/api/master-data/update/index.d.ts +29 -0
  140. package/data/api/search/autoCompleteSuggestions/index.d.ts +11 -0
  141. package/data/api/search/crosseling/index.d.ts +91 -0
  142. package/data/api/search/facets/index.d.ts +4 -0
  143. package/data/api/search/index.d.ts +6 -0
  144. package/data/api/search/product/index.d.ts +3 -0
  145. package/data/api/search/searchFetch.d.ts +3 -0
  146. package/data/api/search/suggestedTerms/index.d.ts +12 -0
  147. package/data/api/search/topSearch/index.d.ts +3 -0
  148. package/data/api/wishlist/products/index.d.ts +3 -0
  149. package/data/helpers/cart/index.d.ts +247 -0
  150. package/data/helpers/catalog/index.d.ts +38 -0
  151. package/data/helpers/cms/index.d.ts +10 -0
  152. package/data/helpers/events/index.d.ts +29 -0
  153. package/data/helpers/plp/index.d.ts +85 -0
  154. package/data/helpers/product/generalInfo.d.ts +19 -0
  155. package/data/helpers/product/image.d.ts +17 -0
  156. package/data/helpers/product/index.d.ts +7 -0
  157. package/data/helpers/product/orderSizes.d.ts +3 -0
  158. package/data/helpers/product/price.d.ts +5 -0
  159. package/data/helpers/product/skuInfos.d.ts +21 -0
  160. package/data/helpers/product/thumb.d.ts +3 -0
  161. package/data/helpers/search/facets.d.ts +48 -0
  162. package/data/helpers/search/index.d.ts +12 -0
  163. package/data/helpers/search/product/index.d.ts +279 -0
  164. package/data/helpers/search/product/utils/canonical.d.ts +1 -0
  165. package/data/helpers/search/product/utils/enhanceSku.d.ts +9 -0
  166. package/data/helpers/search/product/utils/images.d.ts +7 -0
  167. package/data/helpers/search/product/utils/productStock.d.ts +7 -0
  168. package/data/helpers/search/product/utils/propertyValue.d.ts +20 -0
  169. package/data/helpers/search/product/utils/sanitizeHtml.d.ts +18 -0
  170. package/data/helpers/search/product/utils/sku.d.ts +5 -0
  171. package/data/helpers/search/product/utils/slugify.d.ts +1 -0
  172. package/data/helpers/search/root.d.ts +11 -0
  173. package/data/helpers/search/search.d.ts +9 -0
  174. package/data/helpers/utils/cms.d.ts +4 -0
  175. package/data/helpers/utils/cookies.d.ts +2 -0
  176. package/data/helpers/utils/debounce.d.ts +1 -0
  177. package/data/helpers/utils/generateSlug.d.ts +1 -0
  178. package/data/helpers/utils/getAltTextFromUrl.d.ts +1 -0
  179. package/data/helpers/utils/getAuthenticatedUser.d.ts +4 -0
  180. package/data/helpers/utils/index.d.ts +8 -0
  181. package/data/helpers/utils/inputValidation.d.ts +7 -0
  182. package/data/helpers/utils/stringToSHA1.d.ts +1 -0
  183. package/data/helpers/utils/throttle.d.ts +1 -0
  184. package/data/helpers/utils/timer.d.ts +2 -0
  185. package/data/index.d.ts +14 -0
  186. package/index-BNgFxeJv.js +4 -0
  187. package/index-CTiZEtIS.mjs +1906 -0
  188. package/index-D_ZsOrBB.mjs +1924 -0
  189. package/index-DlymQH4i.js +4 -0
  190. package/index.d.ts +5 -0
  191. package/index.js +58 -0
  192. package/index.mjs +20192 -0
  193. package/index2.js +1 -0
  194. package/index2.mjs +1729 -0
  195. package/layout/index.d.ts +349 -0
  196. package/layout/team-component/AddToCart/AddToCart.d.ts +37 -0
  197. package/layout/team-component/AddToCart/Composite/Card/Card.d.ts +7 -0
  198. package/layout/team-component/AddToCart/Composite/Card/Content.d.ts +7 -0
  199. package/layout/team-component/AddToCart/Composite/Card/Media.d.ts +7 -0
  200. package/layout/team-component/AddToCart/Composite/Card/Name.d.ts +7 -0
  201. package/layout/team-component/AddToCart/Composite/Card/PriceQuantity.d.ts +7 -0
  202. package/layout/team-component/AddToCart/Composite/Card/StyleSize.d.ts +7 -0
  203. package/layout/team-component/AddToCart/Composite/Layout/Content.d.ts +9 -0
  204. package/layout/team-component/AddToCart/Composite/Layout/Footer.d.ts +9 -0
  205. package/layout/team-component/AddToCart/Composite/Layout/Items.d.ts +9 -0
  206. package/layout/team-component/AddToCart/Composite/Modal.d.ts +7 -0
  207. package/layout/team-component/AddToCart/Composite/Root.d.ts +7 -0
  208. package/layout/team-component/AddToCart/Composite/Tooltip.d.ts +7 -0
  209. package/layout/team-component/AddToCart/helpers.d.ts +5 -0
  210. package/layout/team-component/AddToCart/index.d.ts +7 -0
  211. package/layout/team-component/BackToTop/BackToTop.d.ts +4 -0
  212. package/layout/team-component/BackToTop/index.d.ts +1 -0
  213. package/layout/team-component/BuyPackage/BuyPackage.d.ts +4 -0
  214. package/layout/team-component/BuyPackage/Composite/GroupCart.d.ts +4 -0
  215. package/layout/team-component/BuyPackage/Composite/Header.d.ts +4 -0
  216. package/layout/team-component/BuyPackage/helpers.d.ts +5 -0
  217. package/layout/team-component/BuyPackage/index.d.ts +1 -0
  218. package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
  219. package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
  220. package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
  221. package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
  222. package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
  223. package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
  224. package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
  225. package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
  226. package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
  227. package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
  228. package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
  229. package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
  230. package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
  231. package/layout/team-component/Filter/Filter.d.ts +47 -0
  232. package/layout/team-component/Filter/helpers.d.ts +8 -0
  233. package/layout/team-component/Filter/index.d.ts +2 -0
  234. package/layout/team-component/Footer/Composite/Devices/Column.Desktop.d.ts +4 -0
  235. package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +4 -0
  236. package/layout/team-component/Footer/Composite/Devices/Index.d.ts +4 -0
  237. package/layout/team-component/Footer/Composite/Item.d.ts +4 -0
  238. package/layout/team-component/Footer/Composite/LegalInformation.d.ts +4 -0
  239. package/layout/team-component/Footer/Composite/OtherCollection.d.ts +5 -0
  240. package/layout/team-component/Footer/Composite/Stamps.d.ts +5 -0
  241. package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
  242. package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
  243. package/layout/team-component/Footer/Composite/Wrapper.d.ts +7 -0
  244. package/layout/team-component/Footer/Footer.d.ts +7 -0
  245. package/layout/team-component/Footer/index.d.ts +4 -0
  246. package/layout/team-component/Form/Composite/Content.d.ts +4 -0
  247. package/layout/team-component/Form/Composite/FieldGroup.d.ts +7 -0
  248. package/layout/team-component/Form/Composite/FieldWrapper.d.ts +7 -0
  249. package/layout/team-component/Form/Composite/FormError.d.ts +4 -0
  250. package/layout/team-component/Form/Composite/Success.d.ts +4 -0
  251. package/layout/team-component/Form/Composite/index.d.ts +4 -0
  252. package/layout/team-component/Form/Form.d.ts +11 -0
  253. package/layout/team-component/Form/FormContext.d.ts +5 -0
  254. package/layout/team-component/Form/index.d.ts +1 -0
  255. package/layout/team-component/FreightCalculation/Composite/Freight/DeliveryInfo.d.ts +4 -0
  256. package/layout/team-component/FreightCalculation/Composite/Freight/Option.d.ts +4 -0
  257. package/layout/team-component/FreightCalculation/Composite/Freight/OptionContainer.d.ts +4 -0
  258. package/layout/team-component/FreightCalculation/Composite/Freight/OptionGrid.d.ts +4 -0
  259. package/layout/team-component/FreightCalculation/Composite/PostalCode/Container.d.ts +4 -0
  260. package/layout/team-component/FreightCalculation/Composite/PostalCode/DeliveryInfoBar.d.ts +4 -0
  261. package/layout/team-component/FreightCalculation/Composite/PostalCode/Input.d.ts +4 -0
  262. package/layout/team-component/FreightCalculation/Composite/ShippingFreight.d.ts +4 -0
  263. package/layout/team-component/FreightCalculation/Composite/ShippingFreightContainer.d.ts +4 -0
  264. package/layout/team-component/FreightCalculation/Composite/Tooltip.d.ts +7 -0
  265. package/layout/team-component/FreightCalculation/FreightCalculation.d.ts +4 -0
  266. package/layout/team-component/FreightCalculation/helpers.d.ts +4 -0
  267. package/layout/team-component/FreightCalculation/index.d.ts +1 -0
  268. package/layout/team-component/Header/Composite/Bag.d.ts +7 -0
  269. package/layout/team-component/Header/Composite/Categories.d.ts +5 -0
  270. package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +9 -0
  271. package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +9 -0
  272. package/layout/team-component/Header/Composite/SearchButton.d.ts +2 -0
  273. package/layout/team-component/Header/Composite/SubMenu.d.ts +5 -0
  274. package/layout/team-component/Header/Composite/WishList.d.ts +5 -0
  275. package/layout/team-component/Header/index.d.ts +7 -0
  276. package/layout/team-component/HelpButton/Composite/Body.d.ts +4 -0
  277. package/layout/team-component/HelpButton/Composite/CallToAction.d.ts +7 -0
  278. package/layout/team-component/HelpButton/Composite/Wrapper.d.ts +4 -0
  279. package/layout/team-component/HelpButton/HelpButton.d.ts +4 -0
  280. package/layout/team-component/HelpButton/index.d.ts +1 -0
  281. package/layout/team-component/ImageZoom/Composite/ButtonClose.d.ts +4 -0
  282. package/layout/team-component/ImageZoom/Composite/Common/BlurImage.d.ts +3 -0
  283. package/layout/team-component/ImageZoom/Composite/Desktop/ImageDesktop.d.ts +5 -0
  284. package/layout/team-component/ImageZoom/Composite/Desktop/ImagesThumbs.d.ts +5 -0
  285. package/layout/team-component/ImageZoom/Composite/Desktop/WrapperDesktop.d.ts +4 -0
  286. package/layout/team-component/ImageZoom/Composite/Mobile/Carousel.d.ts +7 -0
  287. package/layout/team-component/ImageZoom/Composite/Mobile/ImageMobile.d.ts +7 -0
  288. package/layout/team-component/ImageZoom/Composite/Mobile/ImageZoom.d.ts +7 -0
  289. package/layout/team-component/ImageZoom/Composite/Mobile/WrapperMobile.d.ts +4 -0
  290. package/layout/team-component/ImageZoom/Composite/Mobile/ZoomPopup.d.ts +7 -0
  291. package/layout/team-component/ImageZoom/ImageZoom.d.ts +7 -0
  292. package/layout/team-component/ImageZoom/index.d.ts +1 -0
  293. package/layout/team-component/Link/Link.d.ts +4 -0
  294. package/layout/team-component/Link/index.d.ts +1 -0
  295. package/layout/team-component/Link/interfaces.d.ts +17 -0
  296. package/layout/team-component/Media/Image.d.ts +4 -0
  297. package/layout/team-component/Media/Video.d.ts +4 -0
  298. package/layout/team-component/Media/index.d.ts +5 -0
  299. package/layout/team-component/Menu/Composite/Common/Thumbnail.d.ts +7 -0
  300. package/layout/team-component/Menu/Composite/Desktop/Categories.d.ts +7 -0
  301. package/layout/team-component/Menu/Composite/Desktop/MenuRoot.d.ts +7 -0
  302. package/layout/team-component/Menu/Composite/Desktop/SubCategories/SubCategories.d.ts +7 -0
  303. package/layout/team-component/Menu/Composite/Mobile/Body/Body.d.ts +7 -0
  304. package/layout/team-component/Menu/Composite/Mobile/Body/Category/Banner.d.ts +7 -0
  305. package/layout/team-component/Menu/Composite/Mobile/Body/Category/Category.d.ts +7 -0
  306. package/layout/team-component/Menu/Composite/Mobile/Body/Category/List.d.ts +7 -0
  307. package/layout/team-component/Menu/Composite/Mobile/Body/Category/SubCategory.d.ts +7 -0
  308. package/layout/team-component/Menu/Composite/Mobile/Body/Category/Title.d.ts +7 -0
  309. package/layout/team-component/Menu/Composite/Mobile/Body/Category/index.d.ts +22 -0
  310. package/layout/team-component/Menu/Composite/Mobile/Header/Header.d.ts +5 -0
  311. package/layout/team-component/Menu/Composite/Mobile/MenuRoot.d.ts +4 -0
  312. package/layout/team-component/Menu/Composite/Mobile/Navigation/Bar.d.ts +5 -0
  313. package/layout/team-component/Menu/Composite/Mobile/Navigation/BarItem.d.ts +7 -0
  314. package/layout/team-component/Menu/MenuDesktop.d.ts +15 -0
  315. package/layout/team-component/Menu/MenuMobile.d.ts +18 -0
  316. package/layout/team-component/Newsletter/Composite/Form.d.ts +7 -0
  317. package/layout/team-component/Newsletter/Composite/FormFields.d.ts +7 -0
  318. package/layout/team-component/Newsletter/Composite/Input.d.ts +7 -0
  319. package/layout/team-component/Newsletter/Composite/SubmitButton.d.ts +8 -0
  320. package/layout/team-component/Newsletter/Composite/Success.d.ts +10 -0
  321. package/layout/team-component/Newsletter/Composite/Terms.d.ts +7 -0
  322. package/layout/team-component/Newsletter/helpers.d.ts +21 -0
  323. package/layout/team-component/Newsletter/index.d.ts +7 -0
  324. package/layout/team-component/Notify/Composite/Controls.d.ts +7 -0
  325. package/layout/team-component/Notify/Composite/Form.d.ts +7 -0
  326. package/layout/team-component/Notify/Composite/Loading.d.ts +7 -0
  327. package/layout/team-component/Notify/Composite/Selector.d.ts +7 -0
  328. package/layout/team-component/Notify/Composite/Status.d.ts +7 -0
  329. package/layout/team-component/Notify/helpers.d.ts +3 -0
  330. package/layout/team-component/Notify/index.d.ts +7 -0
  331. package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +5 -0
  332. package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
  333. package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +5 -0
  334. package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
  335. package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
  336. package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
  337. package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
  338. package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +10 -0
  339. package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
  340. package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
  341. package/layout/team-component/PLPNavigation/index.d.ts +1 -0
  342. package/layout/team-component/ProductCard/Composite/Actions/Actions.d.ts +7 -0
  343. package/layout/team-component/ProductCard/Composite/Actions/BuyButton.d.ts +7 -0
  344. package/layout/team-component/ProductCard/Composite/Actions/Header.d.ts +7 -0
  345. package/layout/team-component/ProductCard/Composite/Media/Media.d.ts +7 -0
  346. package/layout/team-component/ProductCard/Composite/Media/Video.d.ts +7 -0
  347. package/layout/team-component/ProductCard/Composite/OutStock.d.ts +7 -0
  348. package/layout/team-component/ProductCard/Composite/Price.d.ts +7 -0
  349. package/layout/team-component/ProductCard/Composite/Root.d.ts +7 -0
  350. package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector/Item.d.ts +7 -0
  351. package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector/SkuItem.d.ts +7 -0
  352. package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector.d.ts +7 -0
  353. package/layout/team-component/ProductCard/Composite/Selectors/StyleSelector.d.ts +7 -0
  354. package/layout/team-component/ProductCard/Composite/Title.d.ts +7 -0
  355. package/layout/team-component/ProductCard/Composite/Wrapper.d.ts +7 -0
  356. package/layout/team-component/ProductCard/ProductCard.d.ts +51 -0
  357. package/layout/team-component/ProductCard/index.d.ts +1 -0
  358. package/layout/team-component/ProductList/Composite/Banner.d.ts +7 -0
  359. package/layout/team-component/ProductList/Composite/Card/Actions.d.ts +7 -0
  360. package/layout/team-component/ProductList/Composite/Card/Card.d.ts +7 -0
  361. package/layout/team-component/ProductList/Composite/Card/index.d.ts +1 -0
  362. package/layout/team-component/ProductList/Composite/Root.d.ts +7 -0
  363. package/layout/team-component/ProductList/ProductList.d.ts +17 -0
  364. package/layout/team-component/ProductList/helpers.d.ts +13 -0
  365. package/layout/team-component/ProductList/index.d.ts +2 -0
  366. package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
  367. package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
  368. package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
  369. package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
  370. package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
  371. package/layout/team-component/ProductVariationList/index.d.ts +1 -0
  372. package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
  373. package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
  374. package/layout/team-component/Sort/Composite/List.d.ts +4 -0
  375. package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
  376. package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
  377. package/layout/team-component/Sort/Sort.d.ts +7 -0
  378. package/layout/team-component/Sort/index.d.ts +1 -0
  379. package/layout/team-component/Table/Composite/Head.d.ts +4 -0
  380. package/layout/team-component/Table/Composite/Root.d.ts +4 -0
  381. package/layout/team-component/Table/Composite/Rows.d.ts +4 -0
  382. package/layout/team-component/Table/Table.d.ts +6 -0
  383. package/layout/team-component/Table/index.d.ts +1 -0
  384. package/layout/team-component/Timer/index.d.ts +4 -0
  385. package/layout/team-component/TipBar/Composite/Fields/Copy.d.ts +3 -0
  386. package/layout/team-component/TipBar/Composite/Fields/CountDown.d.ts +3 -0
  387. package/layout/team-component/TipBar/Composite/Fields/Coupon.d.ts +3 -0
  388. package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +3 -0
  389. package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +3 -0
  390. package/layout/team-component/TipBar/Composite/Root.d.ts +7 -0
  391. package/layout/team-component/TipBar/Composite/Structure/Carousel.d.ts +9 -0
  392. package/layout/team-component/TipBar/Composite/Structure/Container.d.ts +3 -0
  393. package/layout/team-component/TipBar/Composite/Structure/Item.d.ts +3 -0
  394. package/layout/team-component/TipBar/Composite/Support/CloseBtn.d.ts +3 -0
  395. package/layout/team-component/TipBar/index.d.ts +7 -0
  396. package/layout/team-component/UserMenu/Composite/Content.d.ts +7 -0
  397. package/layout/team-component/UserMenu/Composite/Credits.d.ts +7 -0
  398. package/layout/team-component/UserMenu/Composite/Login.d.ts +10 -0
  399. package/layout/team-component/UserMenu/Composite/Menu.d.ts +7 -0
  400. package/layout/team-component/UserMenu/Composite/Modal.d.ts +7 -0
  401. package/layout/team-component/UserMenu/Composite/Root.d.ts +7 -0
  402. package/layout/team-component/UserMenu/Composite/Tooltip.d.ts +7 -0
  403. package/layout/team-component/UserMenu/UserMenu.d.ts +34 -0
  404. package/layout/team-component/UserMenu/helpers.d.ts +7 -0
  405. package/layout/team-component/UserMenu/index.d.ts +7 -0
  406. package/layout/template/LPCadastro/index.d.ts +3 -0
  407. package/layout/template/MiniCart/Composite/Card/Card.d.ts +7 -0
  408. package/layout/template/MiniCart/Composite/Card/Composite/Actions.d.ts +7 -0
  409. package/layout/template/MiniCart/Composite/Card/Composite/Gift.d.ts +7 -0
  410. package/layout/template/MiniCart/Composite/Card/Composite/Media.d.ts +9 -0
  411. package/layout/template/MiniCart/Composite/Card/Composite/Name.d.ts +10 -0
  412. package/layout/template/MiniCart/Composite/Card/Composite/Price.d.ts +8 -0
  413. package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +7 -0
  414. package/layout/template/MiniCart/Composite/Card/Composite/Stepper.d.ts +7 -0
  415. package/layout/template/MiniCart/Composite/Card/Composite/Style.d.ts +7 -0
  416. package/layout/template/MiniCart/Composite/Card/Composite/Wishlist.d.ts +4 -0
  417. package/layout/template/MiniCart/Composite/Card/helpers.d.ts +8 -0
  418. package/layout/template/MiniCart/Composite/Card/index.d.ts +45 -0
  419. package/layout/template/MiniCart/Composite/Cashback.d.ts +7 -0
  420. package/layout/template/MiniCart/Composite/CouponSeller/CouponSeller.d.ts +7 -0
  421. package/layout/template/MiniCart/Composite/CouponSeller/index.d.ts +1 -0
  422. package/layout/template/MiniCart/Composite/Feedback.d.ts +7 -0
  423. package/layout/template/MiniCart/Composite/Field/Field.d.ts +7 -0
  424. package/layout/template/MiniCart/Composite/Field/Input.d.ts +7 -0
  425. package/layout/template/MiniCart/Composite/Field/index.d.ts +1 -0
  426. package/layout/template/MiniCart/Composite/Modal/Body/Body.d.ts +7 -0
  427. package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/CouponTag.d.ts +9 -0
  428. package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/index.d.ts +1 -0
  429. package/layout/template/MiniCart/Composite/Modal/Body/Promotion/Promotion.d.ts +9 -0
  430. package/layout/template/MiniCart/Composite/Modal/Body/Promotion/helper.d.ts +5 -0
  431. package/layout/template/MiniCart/Composite/Modal/Body/Promotion/index.d.ts +1 -0
  432. package/layout/template/MiniCart/Composite/Modal/Body/index.d.ts +1 -0
  433. package/layout/template/MiniCart/Composite/Modal/Footer/Discount/Discount.d.ts +7 -0
  434. package/layout/template/MiniCart/Composite/Modal/Footer/Discount/index.d.ts +1 -0
  435. package/layout/template/MiniCart/Composite/Modal/Footer/Footer.d.ts +7 -0
  436. package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Items.d.ts +7 -0
  437. package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Totals.d.ts +5 -0
  438. package/layout/template/MiniCart/Composite/Modal/Footer/index.d.ts +1 -0
  439. package/layout/template/MiniCart/Composite/Modal/Header.d.ts +7 -0
  440. package/layout/template/MiniCart/Composite/Notifications/Item/Item.d.ts +7 -0
  441. package/layout/template/MiniCart/Composite/Notifications/Item/index.d.ts +1 -0
  442. package/layout/template/MiniCart/Composite/Notifications/Notifications.d.ts +7 -0
  443. package/layout/template/MiniCart/Composite/Notifications/index.d.ts +1 -0
  444. package/layout/template/MiniCart/Composite/Shipping/Shipping.d.ts +7 -0
  445. package/layout/template/MiniCart/Composite/Shipping/index.d.ts +1 -0
  446. package/layout/template/MiniCart/Composite/TagMessage.d.ts +5 -0
  447. package/layout/template/MiniCart/Composite/Variations/Options.d.ts +17 -0
  448. package/layout/template/MiniCart/Composite/Variations/ProductVariations.d.ts +4 -0
  449. package/layout/template/MiniCart/Composite/Variations/VariationList.d.ts +3 -0
  450. package/layout/template/MiniCart/MiniCart.d.ts +4 -0
  451. package/layout/template/MiniCart/helpers.d.ts +7 -0
  452. package/layout/template/MiniCart/index.d.ts +51 -0
  453. package/layout/template/PDC/Composite/Empty/Empty.d.ts +7 -0
  454. package/layout/template/PDC/Composite/Empty/index.d.ts +1 -0
  455. package/layout/template/PDC/Composite/Filters/Filters.d.ts +5 -0
  456. package/layout/template/PDC/Composite/Filters/helpers.d.ts +4 -0
  457. package/layout/template/PDC/Composite/Filters/index.d.ts +1 -0
  458. package/layout/template/PDC/Composite/Grid/Banners.d.ts +7 -0
  459. package/layout/template/PDC/Composite/Grid/Grid.d.ts +7 -0
  460. package/layout/template/PDC/Composite/Grid/NavigationTotal.d.ts +7 -0
  461. package/layout/template/PDC/Composite/Grid/index.d.ts +1 -0
  462. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +7 -0
  463. package/layout/template/PDC/Composite/InfiniteScroller/Banners/index.d.ts +1 -0
  464. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +5 -0
  465. package/layout/template/PDC/Composite/InfiniteScroller/Loading/Loading.d.ts +7 -0
  466. package/layout/template/PDC/Composite/InfiniteScroller/Loading/index.d.ts +1 -0
  467. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Anchor.d.ts +7 -0
  468. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +7 -0
  469. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +9 -0
  470. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +7 -0
  471. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +7 -0
  472. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +21 -0
  473. package/layout/template/PDC/Composite/InfiniteScroller/index.d.ts +1 -0
  474. package/layout/template/PDC/Composite/Navigation/Navigation.d.ts +5 -0
  475. package/layout/template/PDC/Composite/Navigation/index.d.ts +1 -0
  476. package/layout/template/PDC/Composite/Notification/Notification.d.ts +7 -0
  477. package/layout/template/PDC/Composite/Notification/index.d.ts +1 -0
  478. package/layout/template/PDC/Composite/Pagination/Arrow/Arrow.d.ts +7 -0
  479. package/layout/template/PDC/Composite/Pagination/Arrow/index.d.ts +1 -0
  480. package/layout/template/PDC/Composite/Pagination/Arrow/interfaces.d.ts +8 -0
  481. package/layout/template/PDC/Composite/Pagination/Layout/Layout.d.ts +7 -0
  482. package/layout/template/PDC/Composite/Pagination/Layout/index.d.ts +1 -0
  483. package/layout/template/PDC/Composite/Pagination/PageEllipses/PageEllipses.d.ts +7 -0
  484. package/layout/template/PDC/Composite/Pagination/PageEllipses/index.d.ts +1 -0
  485. package/layout/template/PDC/Composite/Pagination/PageEllipses/interfaces.d.ts +10 -0
  486. package/layout/template/PDC/Composite/Pagination/Pages/Pages.d.ts +7 -0
  487. package/layout/template/PDC/Composite/Pagination/Pages/index.d.ts +1 -0
  488. package/layout/template/PDC/Composite/Pagination/Pages/interfaces.d.ts +7 -0
  489. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +7 -0
  490. package/layout/template/PDC/Composite/Pagination/helpers.d.ts +11 -0
  491. package/layout/template/PDC/Composite/Pagination/index.d.ts +1 -0
  492. package/layout/template/PDC/Composite/Products/Products.d.ts +7 -0
  493. package/layout/template/PDC/Composite/Products/index.d.ts +1 -0
  494. package/layout/template/PDC/Composite/Spinner/index.d.ts +7 -0
  495. package/layout/template/PDC/PDC.d.ts +7 -0
  496. package/layout/template/PDC/index.d.ts +39 -0
  497. package/layout/template/PDP/Composite/BreadCrumb/index.d.ts +7 -0
  498. package/layout/template/PDP/Composite/Containers/Gallery.d.ts +3 -0
  499. package/layout/template/PDP/Composite/Containers/Main.d.ts +3 -0
  500. package/layout/template/PDP/Composite/Containers/PDP.d.ts +3 -0
  501. package/layout/template/PDP/Composite/Containers/Secondary.d.ts +3 -0
  502. package/layout/template/PDP/Composite/Containers/index.d.ts +6 -0
  503. package/layout/template/PDP/Composite/Credits/index.d.ts +7 -0
  504. package/layout/template/PDP/Composite/Gallery/Carousel.d.ts +13 -0
  505. package/layout/template/PDP/Composite/Gallery/Image.d.ts +9 -0
  506. package/layout/template/PDP/Composite/Gallery/Video.d.ts +6 -0
  507. package/layout/template/PDP/Composite/Gallery/Wrapper.d.ts +4 -0
  508. package/layout/template/PDP/Composite/Gallery/index.d.ts +7 -0
  509. package/layout/template/PDP/Composite/Info/Divider.d.ts +4 -0
  510. package/layout/template/PDP/Composite/Info/MainContent/Actions/AddToCart.d.ts +4 -0
  511. package/layout/template/PDP/Composite/Info/MainContent/Actions/AddToCartObserver.d.ts +6 -0
  512. package/layout/template/PDP/Composite/Info/MainContent/Actions/AddToWishlist.d.ts +4 -0
  513. package/layout/template/PDP/Composite/Info/MainContent/Actions/index.d.ts +4 -0
  514. package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/Actions.d.ts +4 -0
  515. package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/index.d.ts +4 -0
  516. package/layout/template/PDP/Composite/Info/MainContent/Header/GoldenTag.d.ts +9 -0
  517. package/layout/template/PDP/Composite/Info/MainContent/Header/index.d.ts +8 -0
  518. package/layout/template/PDP/Composite/Info/MainContent/Links/index.d.ts +4 -0
  519. package/layout/template/PDP/Composite/Info/MainContent/Price/index.d.ts +4 -0
  520. package/layout/template/PDP/Composite/Info/MainContent/ProductMeasurements/index.d.ts +4 -0
  521. package/layout/template/PDP/Composite/Info/MainContent/Root.d.ts +4 -0
  522. package/layout/template/PDP/Composite/Info/MainContent/Similars/AccessibilityInfo.d.ts +2 -0
  523. package/layout/template/PDP/Composite/Info/MainContent/Similars/Items.d.ts +4 -0
  524. package/layout/template/PDP/Composite/Info/MainContent/Similars/ToggleWrapper.d.ts +4 -0
  525. package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +3 -0
  526. package/layout/template/PDP/Composite/Info/MainContent/Sizes/index.d.ts +4 -0
  527. package/layout/template/PDP/Composite/Info/MainContent/SubSectionWrapper.d.ts +4 -0
  528. package/layout/template/PDP/Composite/Info/Root.d.ts +6 -0
  529. package/layout/template/PDP/Composite/Info/SecondaryContent/DescriptionsTabs.d.ts +2 -0
  530. package/layout/template/PDP/Composite/Info/SecondaryContent/Freight.d.ts +4 -0
  531. package/layout/template/PDP/index.d.ts +21 -0
  532. package/layout/template/QuickShop/Composite/Body.d.ts +4 -0
  533. package/layout/template/QuickShop/Composite/Header.d.ts +3 -0
  534. package/layout/template/QuickShop/Composite/Similars.d.ts +7 -0
  535. package/layout/template/QuickShop/index.d.ts +3 -0
  536. package/layout/template/SearchModal/Composite/AutoComplete.d.ts +7 -0
  537. package/layout/template/SearchModal/Composite/Header.d.ts +3 -0
  538. package/layout/template/SearchModal/Composite/Recommendations.d.ts +5 -0
  539. package/layout/template/SearchModal/Composite/Trends.d.ts +4 -0
  540. package/layout/template/SearchModal/SearchModal.d.ts +7 -0
  541. package/layout/template/SearchModal/helpers.d.ts +3 -0
  542. package/layout/template/SearchModal/index.d.ts +1 -0
  543. package/layout/template/SearchResult/Composite/Empty.d.ts +7 -0
  544. package/layout/template/SearchResult/Composite/Grid.d.ts +7 -0
  545. package/layout/template/SearchResult/Composite/GridHeader.d.ts +3 -0
  546. package/layout/template/SearchResult/Composite/Loading.d.ts +7 -0
  547. package/layout/template/SearchResult/Composite/Sort.d.ts +4 -0
  548. package/layout/template/SearchResult/SearchContent.d.ts +4 -0
  549. package/layout/template/SearchResult/SearchResult.d.ts +7 -0
  550. package/layout/template/SearchResult/index.d.ts +1 -0
  551. package/layout/template/WishList/Composite/Feedback.d.ts +11 -0
  552. package/layout/template/WishList/Composite/Grid.d.ts +7 -0
  553. package/layout/template/WishList/Composite/Init.d.ts +11 -0
  554. package/layout/template/WishList/Composite/Toggle.d.ts +7 -0
  555. package/layout/template/WishList/WishList.d.ts +26 -0
  556. package/layout/template/WishList/helpers.d.ts +12 -0
  557. package/layout/template/WishList/index.d.ts +1 -0
  558. package/layout/utils/DraftJsLinkWrapper/index.d.ts +4 -0
  559. package/layout/utils/ErrorBoundary/index.d.ts +17 -0
  560. package/layout/utils/EventCollector/index.d.ts +5 -0
  561. package/layout/utils/ExternalScripts/index.d.ts +5 -0
  562. package/layout/utils/LinkOrNotLink/index.d.ts +4 -0
  563. package/layout/utils/Observer/index.d.ts +4 -0
  564. package/layout/utils/ObserverOrNot/index.d.ts +10 -0
  565. package/layout/utils/ProductShelf/Composite/Card.d.ts +7 -0
  566. package/layout/utils/ProductShelf/Composite/Shelf.d.ts +4 -0
  567. package/layout/utils/ProductShelf/Composite/Title.d.ts +4 -0
  568. package/layout/utils/ProductShelf/index.d.ts +8 -0
  569. package/layout/utils/SessionEvent/index.d.ts +3 -0
  570. package/layout/utils/Skeleton/index.d.ts +2 -0
  571. package/layout/utils/SnackBar/index.d.ts +7 -0
  572. package/package.json +20 -0
  573. package/scripts/helpers/index.d.ts +3 -0
  574. package/scripts/index.d.ts +4 -0
  575. package/server.d.ts +58 -0
  576. package/style.css +1 -0
  577. package/types/cms/ContentTypes/Cart/index.d.ts +46 -0
  578. package/types/cms/ContentTypes/CommonPage/index.d.ts +34 -0
  579. package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +56 -0
  580. package/types/cms/ContentTypes/Footer/index.d.ts +91 -0
  581. package/types/cms/ContentTypes/Header/index.d.ts +62 -0
  582. package/types/cms/ContentTypes/HelpButton/index.d.ts +48 -0
  583. package/types/cms/ContentTypes/LPLojas/index.d.ts +12 -0
  584. package/types/cms/ContentTypes/LookbookPage/index.d.ts +43 -0
  585. package/types/cms/ContentTypes/Multimarcas/index.d.ts +5 -0
  586. package/types/cms/ContentTypes/NotFoundPage/index.d.ts +17 -0
  587. package/types/cms/ContentTypes/PDP/index.d.ts +21 -0
  588. package/types/cms/ContentTypes/PLP/index.d.ts +47 -0
  589. package/types/cms/ContentTypes/PolicyPage/index.d.ts +38 -0
  590. package/types/cms/ContentTypes/PreHome/index.d.ts +21 -0
  591. package/types/cms/ContentTypes/Redirects/index.d.ts +25 -0
  592. package/types/cms/ContentTypes/Search/index.d.ts +31 -0
  593. package/types/cms/ContentTypes/Tipbar/index.d.ts +55 -0
  594. package/types/cms/ContentTypes/Wishlist/index.d.ts +17 -0
  595. package/types/cms/Factories/index.d.ts +69 -0
  596. package/types/cms/Sections/Banner/index.d.ts +50 -0
  597. package/types/cms/Sections/BannerCarousel/index.d.ts +37 -0
  598. package/types/cms/Sections/BennefitsBar/index.d.ts +23 -0
  599. package/types/cms/Sections/EmbedLive/index.d.ts +13 -0
  600. package/types/cms/Sections/HeaderSubmenu/index.d.ts +35 -0
  601. package/types/cms/Sections/ImageGrid/index.d.ts +10 -0
  602. package/types/cms/Sections/ListProductsBanners/index.d.ts +13 -0
  603. package/types/cms/Sections/Newsletter/index.d.ts +26 -0
  604. package/types/cms/Sections/PopupModal/index.d.ts +26 -0
  605. package/types/cms/Sections/ProductCarousel/index.d.ts +84 -0
  606. package/types/cms/Sections/SectionZone/index.d.ts +83 -0
  607. package/types/cms/Sections/TextAccordion/index.d.ts +15 -0
  608. package/types/cms/Sections/TextContent/index.d.ts +35 -0
  609. package/types/cms/Sections/_common/index.d.ts +8 -0
  610. package/types/constants.d.ts +378 -0
  611. package/types/contexts/contexts/cart/index.d.ts +17 -0
  612. package/types/contexts/contexts/cms/FlagsAndTags.d.ts +9 -0
  613. package/types/contexts/contexts/global.d.ts +20 -0
  614. package/types/contexts/contexts/header.d.ts +32 -0
  615. package/types/contexts/contexts/next.d.ts +11 -0
  616. package/types/contexts/contexts/pdp.d.ts +77 -0
  617. package/types/contexts/contexts/plp.d.ts +99 -0
  618. package/types/contexts/contexts/search.d.ts +84 -0
  619. package/types/contexts/contexts/session.d.ts +87 -0
  620. package/types/contexts/hooks/index.d.ts +19 -0
  621. package/types/contexts/store/cart.d.ts +212 -0
  622. package/types/contexts/store/header.d.ts +18 -0
  623. package/types/contexts/store/helpers.d.ts +7 -0
  624. package/types/contexts/store/pdp.d.ts +21 -0
  625. package/types/contexts/store/wishlist.d.ts +17 -0
  626. package/types/data/api/catalog/kit/index.d.ts +0 -0
  627. package/types/data/api/catalog/portal/index.d.ts +26 -0
  628. package/types/data/api/catalog/product/index.d.ts +50 -0
  629. package/types/data/api/checkout/address/index.d.ts +20 -0
  630. package/types/data/api/checkout/order-form/index.d.ts +328 -0
  631. package/types/data/api/checkout/order-form/profile/index.d.ts +17 -0
  632. package/types/data/api/checkout/order-form/shipping/index.d.ts +23 -0
  633. package/types/data/api/checkout/simulation/index.d.ts +64 -0
  634. package/types/data/api/cms/index.d.ts +18 -0
  635. package/types/data/api/dito-ingest/index.d.ts +65 -0
  636. package/types/data/api/index.d.ts +16 -0
  637. package/types/data/api/search/facets/index.d.ts +89 -0
  638. package/types/data/api/search/index.d.ts +149 -0
  639. package/types/data/api/search/product/index.d.ts +70 -0
  640. package/types/data/events/index.d.ts +113 -0
  641. package/types/data/helpers/index.d.ts +42 -0
  642. package/types/global/product/index.d.ts +419 -0
  643. package/types/layout/team-components/AddToCart/index.d.ts +87 -0
  644. package/types/layout/team-components/BackToTop/index.d.ts +11 -0
  645. package/types/layout/team-components/BuyPackage/index.d.ts +61 -0
  646. package/types/layout/team-components/Filter/Item/Price/index.d.ts +6 -0
  647. package/types/layout/team-components/Filter/Item/index.d.ts +29 -0
  648. package/types/layout/team-components/Filter/index.d.ts +76 -0
  649. package/types/layout/team-components/Footer/index.d.ts +61 -0
  650. package/types/layout/team-components/Form/index.d.ts +45 -0
  651. package/types/layout/team-components/FreightCalculation/index.d.ts +284 -0
  652. package/types/layout/team-components/Header/index.d.ts +81 -0
  653. package/types/layout/team-components/HelpButton/index.d.ts +31 -0
  654. package/types/layout/team-components/ImageZoom/index.d.ts +70 -0
  655. package/types/layout/team-components/Media/index.d.ts +12 -0
  656. package/types/layout/team-components/Menu/Desktop/index.d.ts +15 -0
  657. package/types/layout/team-components/Menu/Mobile/Body/Category/index.d.ts +23 -0
  658. package/types/layout/team-components/Menu/Mobile/Body/index.d.ts +3 -0
  659. package/types/layout/team-components/Menu/Mobile/index.d.ts +52 -0
  660. package/types/layout/team-components/Menu/index.d.ts +13 -0
  661. package/types/layout/team-components/Newsletter/index.d.ts +101 -0
  662. package/types/layout/team-components/Notify/index.d.ts +52 -0
  663. package/types/layout/team-components/PLPNavigation/index.d.ts +27 -0
  664. package/types/layout/team-components/PreHome/index.d.ts +6 -0
  665. package/types/layout/team-components/ProductCard/Selectors/index.d.ts +49 -0
  666. package/types/layout/team-components/ProductCard/index.d.ts +86 -0
  667. package/types/layout/team-components/ProductList/index.d.ts +53 -0
  668. package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
  669. package/types/layout/team-components/Sort/index.d.ts +21 -0
  670. package/types/layout/team-components/Table/index.d.ts +22 -0
  671. package/types/layout/team-components/Timer/index.d.ts +15 -0
  672. package/types/layout/team-components/TipBar/index.d.ts +69 -0
  673. package/types/layout/team-components/UserMenu/index.d.ts +57 -0
  674. package/types/layout/templates/LPCadastro/index.d.ts +33 -0
  675. package/types/layout/templates/MiniCart/index.d.ts +198 -0
  676. package/types/layout/templates/Multimarcas/index.d.ts +28 -0
  677. package/types/layout/templates/PDP/index.d.ts +149 -0
  678. package/types/layout/templates/PLP/index.d.ts +124 -0
  679. package/types/layout/templates/QuickShop/index.d.ts +22 -0
  680. package/types/layout/templates/SearchModal/index.d.ts +41 -0
  681. package/types/layout/templates/SearchResult/index.d.ts +44 -0
  682. package/types/layout/templates/Wishlist/index.d.ts +21 -0
  683. package/types/layout/utils/index.d.ts +47 -0
package/index2.mjs ADDED
@@ -0,0 +1,1729 @@
1
+ import { jsx as b, jsxs as N, Fragment as L } from "react/jsx-runtime";
2
+ import { y as E, r as j, S as oe, z as ie, A as ce, a as le, w as ue, v as de, B as me, p as pe, k as fe, q as M, C as ge, D as he, E as ye, e as be, F as Ie } from "./index-D_ZsOrBB.mjs";
3
+ import { Utils as D, helpers as _ } from "@soma-vertical-web/core-components";
4
+ import * as n from "yup";
5
+ import Re from "sanitize-html";
6
+ const Ce = async ({
7
+ children: t,
8
+ ClientCartProvider: e,
9
+ ...a
10
+ }) => {
11
+ const { data: r } = await E(
12
+ "mini_cart",
13
+ a
14
+ );
15
+ return /* @__PURE__ */ b(e, { ...r ? Array.isArray(r) ? { data: r[0] } : { data: r } : {}, children: t });
16
+ }, ve = ({
17
+ slug: t,
18
+ data: e,
19
+ SectionZone: a,
20
+ COMMON_PAGE_COLUMN_GAP: r,
21
+ identifyWhoIsFirst: s
22
+ }) => {
23
+ const o = e == null ? void 0 : e.find(
24
+ (d) => {
25
+ var R, p, m, y;
26
+ return ((p = (R = d.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "desktop" && ((y = (m = d.config) == null ? void 0 : m.seo) == null ? void 0 : y.slug) === t;
27
+ }
28
+ ), i = o == null ? void 0 : o.config.responsive.gapCustom, u = o == null ? void 0 : o.config.responsive.gapSections, c = e == null ? void 0 : e.find(
29
+ (d) => {
30
+ var R, p, m, y;
31
+ return ((p = (R = d.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "mobile" && ((y = (m = d.config) == null ? void 0 : m.seo) == null ? void 0 : y.slug) === t;
32
+ }
33
+ ), g = c == null ? void 0 : c.config.responsive.gapCustom, l = c == null ? void 0 : c.config.responsive.gapSections;
34
+ return /* @__PURE__ */ N(L, { children: [
35
+ /* @__PURE__ */ b(
36
+ D.Column,
37
+ {
38
+ gap: i && u ? u : r,
39
+ className: _.classNameConcat(
40
+ j["responsive-desktop-flex"],
41
+ "utils-column-modifier"
42
+ ),
43
+ children: /* @__PURE__ */ b(a, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: s })
44
+ }
45
+ ),
46
+ /* @__PURE__ */ b(
47
+ D.Column,
48
+ {
49
+ gap: g && l ? l : r,
50
+ className: _.classNameConcat(
51
+ j["responsive-mobile-flex"],
52
+ "utils-column-modifier"
53
+ ),
54
+ children: /* @__PURE__ */ b(a, { data: (c == null ? void 0 : c.sections) ?? [], identifyWhoIsFirst: s })
55
+ }
56
+ )
57
+ ] });
58
+ }, Se = async ({
59
+ slug: t,
60
+ SectionZone: e,
61
+ COMMON_PAGE_COLUMN_GAP: a,
62
+ identifyWhoIsFirst: r = !1,
63
+ ...s
64
+ }) => {
65
+ const { data: o } = await E(
66
+ "common_page",
67
+ s
68
+ );
69
+ return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ b(
70
+ ve,
71
+ {
72
+ data: o,
73
+ slug: t,
74
+ SectionZone: e,
75
+ COMMON_PAGE_COLUMN_GAP: a,
76
+ identifyWhoIsFirst: r
77
+ }
78
+ );
79
+ }, Ee = async ({
80
+ children: t,
81
+ ClientFlagsAndTagsProvider: e,
82
+ ...a
83
+ }) => {
84
+ const { data: r } = await E(
85
+ "flags_and_tags",
86
+ a
87
+ );
88
+ return !r || !Array.isArray(r) ? null : /* @__PURE__ */ b(e, { data: r[0], children: t });
89
+ }, Fe = async ({
90
+ className: t,
91
+ PAYMENT_FLAGS_DICTIONARY: e,
92
+ PAYMENT_FLAGS: a,
93
+ LEGAL_INFORMATION_TEXT: r,
94
+ ICONS: s,
95
+ SectionZone: o,
96
+ Footer: i,
97
+ FooterSupport: u,
98
+ hasFooterStamps: c,
99
+ ...g
100
+ }) => {
101
+ var p, m, y, I, O, T, q, f, S, C, F;
102
+ const { data: l } = await E("footer", g), d = Array.isArray(l) && ((p = l[0]) == null ? void 0 : p.type) === "footer" ? l[0] : null, R = {
103
+ ...(m = d == null ? void 0 : d.paymentInfo) == null ? void 0 : m.paymentInfo,
104
+ acceptedFlags: Array.isArray(
105
+ (y = d == null ? void 0 : d.paymentInfo) == null ? void 0 : y.paymentInfo.acceptedFlags
106
+ ) ? (I = d == null ? void 0 : d.paymentInfo) == null ? void 0 : I.paymentInfo.acceptedFlags.filter((v) => !!e[v]).map(
107
+ (v) => e[v]
108
+ ) : []
109
+ };
110
+ return d ? /* @__PURE__ */ b(
111
+ i,
112
+ {
113
+ className: t,
114
+ data: { ...d },
115
+ socialInfo: (O = d.socialMedia) == null ? void 0 : O.socialMedia,
116
+ socialMedias: (q = (T = d.socialMedia) == null ? void 0 : T.socialMedia) == null ? void 0 : q.medias,
117
+ payments: R,
118
+ hasFooterStamps: c,
119
+ adornment: {
120
+ ...(S = (f = d.supportInfo) == null ? void 0 : f.supportInfo) != null && S.content ? {
121
+ bottom: /* @__PURE__ */ b(
122
+ u,
123
+ {
124
+ content: (F = (C = d.supportInfo) == null ? void 0 : C.supportInfo) == null ? void 0 : F.content,
125
+ CONSTANTS: {
126
+ ICONS: s,
127
+ PAYMENT_FLAGS: a,
128
+ PAYMENT_FLAGS_DICTIONARY: e
129
+ }
130
+ }
131
+ )
132
+ } : {},
133
+ ...d.sections.length ? { top: /* @__PURE__ */ b(o, { data: d.sections }) } : {}
134
+ },
135
+ LEGAL_INFORMATION_TEXT: r,
136
+ ICONS: s
137
+ }
138
+ ) : null;
139
+ }, Oe = async ({
140
+ children: t,
141
+ ClientHeaderProvider: e,
142
+ ...a
143
+ }) => {
144
+ var o, i, u, c, g, l;
145
+ const { data: r } = await E(
146
+ "header",
147
+ a
148
+ ), s = Array.isArray(r) ? r[0] : void 0;
149
+ return /* @__PURE__ */ b(
150
+ e,
151
+ {
152
+ headerData: {
153
+ ...((o = s == null ? void 0 : s.layerConfig) == null ? void 0 : o.config) ?? {},
154
+ subMenus: ((i = s == null ? void 0 : s.sections) == null ? void 0 : i.map((d) => d.data)) ?? [],
155
+ categories: ((c = (u = s == null ? void 0 : s.categories) == null ? void 0 : u.categories) == null ? void 0 : c.items) ?? [],
156
+ navigationLinks: ((l = (g = s == null ? void 0 : s.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : l.items) ?? []
157
+ },
158
+ children: t
159
+ }
160
+ );
161
+ }, Te = (t) => {
162
+ var i, u;
163
+ const e = (u = (i = t[0]) == null ? void 0 : i.items) == null ? void 0 : u.items;
164
+ if ((e == null ? void 0 : e.items.length) === 0 || t.length === 0)
165
+ return {
166
+ iconLabel: "",
167
+ label: "",
168
+ content: []
169
+ };
170
+ const a = e == null ? void 0 : e.iconLabel, r = e == null ? void 0 : e.label, s = e == null ? void 0 : e.helpButtonSize, o = e.items.map(
171
+ (c, g) => ({
172
+ type: c.type,
173
+ id: `${g.toString()}-${c.title.toLowerCase()}`,
174
+ title: c.title,
175
+ subtitle: c.subtitle,
176
+ description: c.description,
177
+ buttonLabel: c.buttonLabel,
178
+ buttonHref: c.buttonHref,
179
+ buttonMode: c.buttonMode,
180
+ buttonSize: c.buttonSize,
181
+ buttonIcon: c.buttonIcon
182
+ })
183
+ );
184
+ return {
185
+ iconLabel: a,
186
+ label: r,
187
+ helpButtonSize: s,
188
+ content: o
189
+ };
190
+ }, qe = async ({
191
+ HelpButton: t,
192
+ ICONS: e,
193
+ className: a,
194
+ ...r
195
+ }) => {
196
+ const { data: s } = await E(
197
+ "helpbutton",
198
+ r
199
+ );
200
+ if (!s || !Array.isArray(s) || s.length === 0)
201
+ return null;
202
+ const o = Te(s);
203
+ return /* @__PURE__ */ b(
204
+ t,
205
+ {
206
+ data: o,
207
+ ICONS: e,
208
+ className: a
209
+ }
210
+ );
211
+ }, $e = async ({
212
+ SectionZone: t,
213
+ LPCadastro: e,
214
+ ...a
215
+ }) => {
216
+ var c;
217
+ const { data: r } = await E(
218
+ "lp_cadastro",
219
+ a
220
+ );
221
+ if (!r || !Array.isArray(r) || r.length === 0)
222
+ return null;
223
+ const [s] = r, o = (s == null ? void 0 : s.sections) || [], i = ((c = s == null ? void 0 : s.content) == null ? void 0 : c.conteúdo) || {}, u = s == null ? void 0 : s.sections;
224
+ return /* @__PURE__ */ N(L, { children: [
225
+ /* @__PURE__ */ b(e, { sections: o, content: i }),
226
+ /* @__PURE__ */ b(t, { data: u })
227
+ ] });
228
+ }, Pe = async ({
229
+ children: t,
230
+ productId: e,
231
+ COMMON_PAGE_COLUMN_GAP: a,
232
+ SectionZone: r,
233
+ PDPContentProvider: s,
234
+ ...o
235
+ }) => {
236
+ const { data: i } = await E(
237
+ "product_page",
238
+ o
239
+ );
240
+ return !i || !Array.isArray(i) || i.length === 0 ? null : /* @__PURE__ */ b(
241
+ s,
242
+ {
243
+ data: i[0],
244
+ productId: e,
245
+ COMMON_PAGE_COLUMN_GAP: a,
246
+ SectionZone: r,
247
+ children: t
248
+ }
249
+ );
250
+ }, Ae = {
251
+ "column-modifier": "_column-modifier_1tqap_1"
252
+ }, we = async ({
253
+ className: t,
254
+ children: e,
255
+ slug: a,
256
+ SectionZone: r,
257
+ COMMON_PAGE_COLUMN_GAP_PDC: s,
258
+ PLPContentProvider: o,
259
+ ...i
260
+ }) => {
261
+ const { data: u } = await E(
262
+ "categories_page",
263
+ i
264
+ );
265
+ if (!u || !Array.isArray(u))
266
+ return null;
267
+ const c = u.find(
268
+ (p) => {
269
+ var m, y, I;
270
+ return ((m = p.config) == null ? void 0 : m.seo.slug) === a && ((I = (y = p.config) == null ? void 0 : y.responsive) == null ? void 0 : I.deviceType) === "desktop";
271
+ }
272
+ ), g = u.find(
273
+ (p) => {
274
+ var m, y, I;
275
+ return ((m = p.config) == null ? void 0 : m.seo.slug) === a && ((I = (y = p.config) == null ? void 0 : y.responsive) == null ? void 0 : I.deviceType) === "mobile";
276
+ }
277
+ ), l = u.find(
278
+ (p) => {
279
+ var m, y, I;
280
+ return ((m = p.config) == null ? void 0 : m.seo.slug) === "default" && ((I = (y = p.config) == null ? void 0 : y.responsive) == null ? void 0 : I.deviceType) === "desktop";
281
+ }
282
+ ), d = u.find(
283
+ (p) => {
284
+ var m, y, I;
285
+ return ((m = p.config) == null ? void 0 : m.seo.slug) === "default" && ((I = (y = p.config) == null ? void 0 : y.responsive) == null ? void 0 : I.deviceType) === "mobile";
286
+ }
287
+ ), R = Array.isArray(t) ? t : [t];
288
+ return /* @__PURE__ */ N(L, { children: [
289
+ /* @__PURE__ */ b(
290
+ D.Column,
291
+ {
292
+ className: _.classNameConcat(
293
+ j["responsive-desktop-flex"],
294
+ [Ae["column-modifier"], ...R]
295
+ ),
296
+ style: {
297
+ minHeight: "100vh"
298
+ },
299
+ children: /* @__PURE__ */ b(
300
+ o,
301
+ {
302
+ data: c ?? l,
303
+ device: "desktop",
304
+ SectionZone: r,
305
+ COMMON_PAGE_COLUMN_GAP_PDC: s,
306
+ children: e
307
+ }
308
+ )
309
+ }
310
+ ),
311
+ /* @__PURE__ */ b(D.Column, { className: _.classNameConcat(j["responsive-mobile-flex"], t), children: /* @__PURE__ */ b(
312
+ o,
313
+ {
314
+ data: g ?? d,
315
+ device: "mobile",
316
+ SectionZone: r,
317
+ COMMON_PAGE_COLUMN_GAP_PDC: s,
318
+ children: e
319
+ }
320
+ ) })
321
+ ] });
322
+ }, Ne = async ({ slug: t, ...e }) => {
323
+ var i, u, c;
324
+ const { data: a } = await E(
325
+ "redirect_to_search",
326
+ e
327
+ );
328
+ if (!a || !Array.isArray(a))
329
+ return {
330
+ slug: t,
331
+ query: null,
332
+ redirect: !1
333
+ };
334
+ const r = ((c = (u = (i = a[0]) == null ? void 0 : i.redirectToSearch) == null ? void 0 : u.redirectToSearch) == null ? void 0 : c.paths) ?? [];
335
+ if (!!!r.length)
336
+ return {
337
+ slug: t,
338
+ query: null,
339
+ redirect: !1
340
+ };
341
+ const o = r.find(
342
+ (g) => {
343
+ var l, d;
344
+ return ((l = g.path) == null ? void 0 : l.replace(/\//g, "-").toLowerCase()) === t.replace(/\//g, "-").toLowerCase() || ((d = g.path) == null ? void 0 : d.replace(/\//g, "-").toLowerCase()) === `/${t}`.replace(/\//g, "-").toLowerCase();
345
+ }
346
+ );
347
+ return o ? {
348
+ slug: t,
349
+ query: o == null ? void 0 : o.searchQuery,
350
+ redirect: !0,
351
+ collectionId: o == null ? void 0 : o.collectionId,
352
+ filters: o == null ? void 0 : o.filters,
353
+ sort: o == null ? void 0 : o.sort
354
+ } : {
355
+ slug: t,
356
+ query: null,
357
+ redirect: !1,
358
+ collectionId: null,
359
+ filters: null,
360
+ sort: null
361
+ };
362
+ }, ke = async ({ slug: t, ...e }) => {
363
+ var i, u, c;
364
+ const { data: a } = await E(
365
+ "redirect_to_search",
366
+ e
367
+ );
368
+ if (!a || !Array.isArray(a))
369
+ return null;
370
+ const r = ((c = (u = (i = a[0]) == null ? void 0 : i.redirectToSearch) == null ? void 0 : u.redirectToSearch) == null ? void 0 : c.paths) ?? [];
371
+ if (!!!r.length)
372
+ return null;
373
+ const o = r.find(
374
+ (g) => {
375
+ var l, d;
376
+ return ((l = g.path) == null ? void 0 : l.replace(/\//g, "-").toLowerCase()) === t.replace(/\//g, "-").toLowerCase() || ((d = g.path) == null ? void 0 : d.replace(/\//g, "-").toLowerCase()) === `/${t}`.replace(/\//g, "-").toLowerCase();
377
+ }
378
+ );
379
+ return o ? {
380
+ slug: t,
381
+ title: o.pageTitle,
382
+ description: o.pageDescription
383
+ } : null;
384
+ }, je = async ({
385
+ children: t,
386
+ SectionZone: e,
387
+ className: a,
388
+ ...r
389
+ }) => {
390
+ const { data: s } = await E(
391
+ "search_page",
392
+ r
393
+ );
394
+ return Array.isArray(s) && s.length > 0 ? /* @__PURE__ */ b(
395
+ oe,
396
+ {
397
+ data: s,
398
+ SectionZone: e,
399
+ className: a,
400
+ children: t
401
+ }
402
+ ) : /* @__PURE__ */ b(L, { children: "children" });
403
+ }, De = async ({
404
+ ClientTipbarContent: t,
405
+ ...e
406
+ }) => {
407
+ const { data: a } = await E(
408
+ "tipbar",
409
+ e
410
+ );
411
+ return /* @__PURE__ */ b(t, { data: a });
412
+ }, _e = {
413
+ CommonPageContent: Se,
414
+ CartContent: Ce,
415
+ FlagsAndTagsContent: Ee,
416
+ HeaderContent: Oe,
417
+ TipbarContent: De,
418
+ FooterContent: Fe,
419
+ PLPContent: we,
420
+ PDPContent: Pe,
421
+ getRedirectData: Ne,
422
+ getPLPSynteticMetaData: ke,
423
+ SearchPageContent: je,
424
+ HelpButtonContent: qe,
425
+ LPCadastroContent: $e
426
+ }, gr = { Components: _e }, h = async (t, e = {}) => {
427
+ const { method: a = "GET", body: r, headers: s = {}, priority: o = "auto", cache: i = "default" } = e;
428
+ return fetch(t, {
429
+ method: a,
430
+ headers: {
431
+ ...s,
432
+ Accept: "application/json",
433
+ "Content-Type": "application/json"
434
+ },
435
+ priority: o,
436
+ cache: i,
437
+ ...r ? { body: JSON.stringify(r) } : {}
438
+ // not body in get
439
+ }).then((u) => u.json()).catch((u) => {
440
+ console.error("[ERROR FETCH VTEX]", u);
441
+ });
442
+ }, w = /* @__PURE__ */ new Map();
443
+ async function He(t, e = {}) {
444
+ var a;
445
+ try {
446
+ const { abort: r = !1 } = e, s = new AbortController();
447
+ r && (w.has(t) && ((a = w.get(t)) == null || a.abort(), w.delete(t)), w.set(t, s));
448
+ const o = h(t, {
449
+ ...e,
450
+ ...r ? { signal: s.signal } : {}
451
+ });
452
+ return r && w.delete(t), o;
453
+ } catch (r) {
454
+ if (r.name === "AbortError") {
455
+ console.log(`[REQUEST CANCELLED]: ${t}`);
456
+ return;
457
+ }
458
+ throw console.error(`[ERROR API]: ${r.message}`), r;
459
+ }
460
+ }
461
+ const Be = n.object({
462
+ country: n.string().length(3, "Country code must be 3 characters long").required("Country is required"),
463
+ postalCode: n.string().nullable()
464
+ });
465
+ async function Le({ apiUrl: t, body: e, fetchOptions: a }) {
466
+ if (!e) {
467
+ console.error("[ERROR FETCHING] Body is required");
468
+ return;
469
+ }
470
+ await Be.validate(e);
471
+ const { country: r, postalCode: s } = e;
472
+ return await h(
473
+ `${t}/api/checkout/pub/postal-code/${r}/${s}`,
474
+ {
475
+ method: "POST",
476
+ body: e,
477
+ ...a
478
+ }
479
+ );
480
+ }
481
+ const Ge = n.object({
482
+ orderFormId: n.string().nullable(),
483
+ sellerCode: n.string().nullable(),
484
+ sellerName: n.string().nullable()
485
+ });
486
+ async function Q({
487
+ apiUrl: t,
488
+ body: e,
489
+ fetchOptions: a
490
+ }) {
491
+ if (!e) {
492
+ console.error("[ERROR FETCHING] Body is required");
493
+ return;
494
+ }
495
+ await Ge.validate(e);
496
+ const { orderFormId: r, sellerCode: s, sellerName: o } = e, i = s ? `${s.trim()} - ${o}` : null;
497
+ return h(
498
+ `${t}/api/checkout/pub/orderForm/${r}/attachments/openTextField`,
499
+ {
500
+ method: "POST",
501
+ body: {
502
+ value: i
503
+ },
504
+ ...a
505
+ }
506
+ );
507
+ }
508
+ const Me = n.object({
509
+ orderFormId: n.string().nullable(),
510
+ sellerCode: n.string().nullable(),
511
+ marketingData: n.object()
512
+ });
513
+ async function K({
514
+ apiUrl: t,
515
+ body: e,
516
+ extraData: a = {},
517
+ fetchOptions: r
518
+ }) {
519
+ if (!e) {
520
+ console.error("[ERROR FETCHING] Body is required");
521
+ return;
522
+ }
523
+ await Me.validate(e);
524
+ const { orderFormId: s, sellerCode: o, marketingData: i } = e, u = o ? {
525
+ utmCampaign: o ? o.toUpperCase() : "",
526
+ utmiCampaign: o ? `${a.VENDOR_CODE}` : "semcodigo"
527
+ } : {};
528
+ return h(
529
+ `${t}/api/checkout/pub/orderForm/${s}/attachments/marketingData`,
530
+ {
531
+ method: "POST",
532
+ body: {
533
+ ...i,
534
+ ...u
535
+ },
536
+ ...r
537
+ }
538
+ );
539
+ }
540
+ const Ue = n.object({
541
+ orderFormId: n.string().nullable(),
542
+ sellerCode: n.string().nullable(),
543
+ sellerName: n.string().nullable()
544
+ });
545
+ async function Ve({ apiUrl: t, body: e, fetchOptions: a, extraData: r }) {
546
+ if (!e) {
547
+ console.error("[ERROR FETCHING] Body is required");
548
+ return;
549
+ }
550
+ await Ue.validate(e);
551
+ const s = await Q({ apiUrl: t, body: e, fetchOptions: a });
552
+ return K({
553
+ apiUrl: t,
554
+ body: {
555
+ ...e,
556
+ marketingData: s == null ? void 0 : s.marketingData
557
+ },
558
+ extraData: r,
559
+ fetchOptions: a
560
+ });
561
+ }
562
+ const xe = n.object({
563
+ orderFormId: n.string().nullable(),
564
+ coupon: n.string().nullable()
565
+ });
566
+ async function ze({
567
+ apiUrl: t,
568
+ body: e,
569
+ fetchOptions: a
570
+ }) {
571
+ if (!e) {
572
+ console.error("[ERROR FETCHING] Body is required");
573
+ return;
574
+ }
575
+ await xe.validate(e);
576
+ const { coupon: r = "", orderFormId: s } = e;
577
+ return h(
578
+ `${t}/api/checkout/pub/orderForm/${s}/coupons`,
579
+ {
580
+ method: "POST",
581
+ body: { text: r },
582
+ ...a
583
+ }
584
+ );
585
+ }
586
+ const Qe = n.object({
587
+ appId: n.string().required("App ID is required"),
588
+ orderFormId: n.string().nullable(),
589
+ key: n.array().of(n.string())
590
+ });
591
+ async function Ke({
592
+ apiUrl: t,
593
+ body: e,
594
+ fetchOptions: a
595
+ }) {
596
+ if (!e) {
597
+ console.error("[ERROR FETCHING] Body is required");
598
+ return;
599
+ }
600
+ await Qe.validate(e);
601
+ const { appId: r = "faststore", orderFormId: s, key: o } = e;
602
+ return h(
603
+ `${t}/api/checkout/pub/orderForm/${s}/customData/${r}/${o}`,
604
+ {
605
+ method: "PUT",
606
+ ...a
607
+ }
608
+ );
609
+ }
610
+ const Je = n.object().shape({
611
+ name: n.string().required("Attachment name is required"),
612
+ content: n.object().nullable()
613
+ });
614
+ var x;
615
+ const We = n.object().shape({
616
+ attachments: (x = n.array().of(Je)) == null ? void 0 : x.nullable(),
617
+ id: n.string().required("ID of SKU is required"),
618
+ index: n.number().integer().nullable(),
619
+ quantity: n.number().integer().nullable(),
620
+ seller: n.string().required("Seller is required"),
621
+ price: n.number().integer()
622
+ }), Xe = n.object({
623
+ orderFormId: n.string().required("OrderFormId is required"),
624
+ orderItems: n.array().of(We)
625
+ });
626
+ async function Ye({
627
+ apiUrl: t,
628
+ body: e,
629
+ fetchOptions: a
630
+ }) {
631
+ if (!e) {
632
+ console.error("[ERROR FETCHING] Body is required");
633
+ return;
634
+ }
635
+ await Xe.validate(e);
636
+ const { orderFormId: r, orderItems: s } = e;
637
+ return h(
638
+ `${t}/api/checkout/pub/orderForm/${r}/items`,
639
+ {
640
+ method: "POST",
641
+ body: { orderItems: s },
642
+ ...a
643
+ }
644
+ );
645
+ }
646
+ const Ze = n.object({
647
+ orderFormId: n.string().nullable()
648
+ });
649
+ async function et({
650
+ apiUrl: t,
651
+ body: e,
652
+ fetchOptions: a
653
+ }) {
654
+ if (!e) {
655
+ console.error("[ERROR FETCHING] Body is required");
656
+ return;
657
+ }
658
+ await Ze.validate(e);
659
+ const { orderFormId: r } = e;
660
+ return h(
661
+ `${t}/api/checkout/pub/orderForm/${r}/items/removeAll`,
662
+ {
663
+ method: "POST",
664
+ ...a
665
+ }
666
+ );
667
+ }
668
+ const tt = n.object().shape({
669
+ name: n.string().required("Attachment name is required"),
670
+ content: n.object().nullable()
671
+ });
672
+ var z;
673
+ const rt = n.object().shape({
674
+ attachments: (z = n.array().of(tt)) == null ? void 0 : z.nullable(),
675
+ id: n.string().required("ID of SKU is required"),
676
+ index: n.number().integer().nullable(),
677
+ quantity: n.number().integer().nullable(),
678
+ seller: n.string().required("Seller is required"),
679
+ price: n.number().integer()
680
+ }), at = n.object({
681
+ orderFormId: n.string().nullable(),
682
+ orderItems: n.array().of(rt)
683
+ });
684
+ async function nt({
685
+ apiUrl: t,
686
+ body: e,
687
+ fetchOptions: a
688
+ }) {
689
+ if (!e) {
690
+ console.error("[ERROR FETCHING] Body is required");
691
+ return;
692
+ }
693
+ await at.validate(e);
694
+ const { orderFormId: r, orderItems: s } = e;
695
+ return h(
696
+ `${t}/api/checkout/pub/orderForm/${r}/items/update`,
697
+ {
698
+ method: "POST",
699
+ body: { orderItems: s },
700
+ ...a
701
+ }
702
+ );
703
+ }
704
+ const st = n.object({
705
+ orderFormId: n.string().nullable()
706
+ });
707
+ async function ot({
708
+ apiUrl: t,
709
+ body: e,
710
+ fetchOptions: a
711
+ }) {
712
+ if (!e) {
713
+ console.error("[ERROR FETCHING] Body is required");
714
+ return;
715
+ }
716
+ await st.validate(e);
717
+ const { orderFormId: r } = e;
718
+ return h(
719
+ `${t}/api/checkout/pub/orderForm/${r}/messages/clear`,
720
+ {
721
+ method: "POST",
722
+ ...a
723
+ }
724
+ );
725
+ }
726
+ const it = n.object({
727
+ id: n.string().nullable(),
728
+ // id offering
729
+ itemIndex: n.number().nullable(),
730
+ orderFormId: n.string().nullable(),
731
+ remove: n.boolean().nullable()
732
+ });
733
+ async function ct({ apiUrl: t, body: e, fetchOptions: a }) {
734
+ if (!e) {
735
+ console.error("[ERROR FETCHING] Body is required");
736
+ return;
737
+ }
738
+ await it.validate(e);
739
+ const { itemIndex: r, orderFormId: s, id: o, remove: i } = e, u = i ? `/${o}/remove` : "", c = `${t}/api/checkout/pub/orderForm/${s}/items/${r}/offerings${u}`;
740
+ return h(c, {
741
+ method: "POST",
742
+ body: { id: o },
743
+ ...a
744
+ });
745
+ }
746
+ const lt = n.object({
747
+ orderFormId: n.string().nullable()
748
+ });
749
+ async function ut({
750
+ apiUrl: t,
751
+ body: e,
752
+ fetchOptions: a,
753
+ extraData: r
754
+ }) {
755
+ var i;
756
+ if (!e) {
757
+ console.error("[ERROR FETCHING] Body is required");
758
+ return;
759
+ }
760
+ await lt.validate(e);
761
+ const s = new URLSearchParams({
762
+ refreshOutdatedData: "true"
763
+ }), o = e.orderFormId && ((i = r.orderFormPurchaseId) == null ? void 0 : i.value) !== e.orderFormId ? `${t}/api/checkout/pub/orderForm/${e.orderFormId}?${String(s)}` : `${t}/api/checkout/pub/orderForm`;
764
+ return h(o, { method: "GET", ...a });
765
+ }
766
+ const dt = n.object({
767
+ orderFormId: n.string().nullable(),
768
+ email: n.string().email().required(),
769
+ firstName: n.string().required(),
770
+ lastName: n.string().required(),
771
+ documentType: n.string().required(),
772
+ document: n.string().required(),
773
+ phone: n.string().matches(/^\+\d{1,3}\d{10,11}$/)
774
+ });
775
+ async function mt({
776
+ apiUrl: t,
777
+ body: e,
778
+ fetchOptions: a
779
+ }) {
780
+ if (!e) {
781
+ console.error("[ERROR FETCHING] Body is required");
782
+ return;
783
+ }
784
+ await dt.validate(e);
785
+ const { orderFormId: r, ...s } = e;
786
+ return h(
787
+ `${t}/api/checkout/pub/orderForm/${r}/attachments/clientProfileData`,
788
+ {
789
+ method: "POST",
790
+ body: { ...s },
791
+ ...a
792
+ }
793
+ );
794
+ }
795
+ const pt = n.object({
796
+ sellerCode: n.string().nullable()
797
+ });
798
+ async function ft({
799
+ apiUrl: t,
800
+ body: e,
801
+ extraData: a,
802
+ fetchOptions: r
803
+ }) {
804
+ if (!e) {
805
+ console.error("[ERROR FETCHING] Body is required");
806
+ return;
807
+ }
808
+ await pt.validate(e);
809
+ const { sellerCode: s = "" } = e;
810
+ return h(
811
+ `${t}/api/dataentities/${a.ENTITIES}/search?_fields=${a.FIELDS}&${a.FILTER}=${s}`,
812
+ {
813
+ method: "GET",
814
+ headers: {
815
+ Accept: "application/vnd.vtex.ds.v10+json"
816
+ },
817
+ ...r
818
+ }
819
+ );
820
+ }
821
+ const gt = n.object().shape({
822
+ country: n.string().length(3, "Country code must be 3 characters long").required("Country is required"),
823
+ orderFormId: n.string().nullable(),
824
+ postalCode: n.string().nullable()
825
+ });
826
+ async function ht({
827
+ apiUrl: t,
828
+ body: e,
829
+ fetchOptions: a
830
+ }) {
831
+ if (!e) {
832
+ console.error("[ERROR FETCHING] Body is required");
833
+ return;
834
+ }
835
+ await gt.validate(e);
836
+ const { country: r, orderFormId: s, postalCode: o } = e, i = o ? {
837
+ address: {
838
+ addressType: "residential",
839
+ postalCode: o,
840
+ country: r
841
+ }
842
+ } : {
843
+ logisticsInfo: [],
844
+ clearAddressIfPostalCodeNotFound: !0
845
+ };
846
+ return h(
847
+ `${t}/api/checkout/pub/orderForm/${s}/attachments/shippingData`,
848
+ {
849
+ method: "POST",
850
+ body: i,
851
+ ...a
852
+ }
853
+ );
854
+ }
855
+ const yt = n.object().shape({
856
+ orderFormId: n.string().nullable(),
857
+ options: n.array().of(
858
+ n.object().shape({
859
+ itemIndex: n.number(),
860
+ selectedDeliveryChannel: n.string(),
861
+ selectedSla: n.string()
862
+ })
863
+ ),
864
+ selectedAddresses: n.array().of(
865
+ n.object().shape({
866
+ addressId: n.string().required(),
867
+ addressType: n.string().required(),
868
+ city: n.string().nullable(),
869
+ complement: n.string().nullable(),
870
+ country: n.string().required().length(3),
871
+ geoCoordinates: n.array().of(n.number()).required().min(0),
872
+ isDisposable: n.boolean().required(),
873
+ neighborhood: n.string().nullable(),
874
+ number: n.string().nullable(),
875
+ postalCode: n.string().required(),
876
+ receiverName: n.string().nullable(),
877
+ reference: n.string().nullable(),
878
+ state: n.string().nullable(),
879
+ street: n.string().nullable()
880
+ })
881
+ )
882
+ });
883
+ async function bt({ apiUrl: t, body: e, fetchOptions: a }) {
884
+ if (!e) {
885
+ console.error("[ERROR FETCHING] Body is required");
886
+ return;
887
+ }
888
+ await yt.validate(e);
889
+ const { orderFormId: r, options: s, selectedAddresses: o } = e;
890
+ return h(
891
+ `${t}/api/checkout/pub/orderForm/${r}/attachments/shippingData`,
892
+ {
893
+ method: "POST",
894
+ body: {
895
+ selectedAddresses: o,
896
+ clearAddressIfPostalCodeNotFound: !1,
897
+ logisticsInfo: s
898
+ },
899
+ ...a
900
+ }
901
+ );
902
+ }
903
+ const It = n.object({
904
+ country: n.string().length(3, "Country code must be 3 characters long").required("Country is required"),
905
+ postalCode: n.string().nullable(),
906
+ geoCoordinates: n.object().shape({
907
+ longitude: n.number().required(),
908
+ latitude: n.number().required()
909
+ })
910
+ });
911
+ async function Rt({ apiUrl: t, body: e, fetchOptions: a }) {
912
+ if (!e) {
913
+ console.error("[ERROR FETCHING] Body is required");
914
+ return;
915
+ }
916
+ await It.validate(e);
917
+ const { country: r = "", geoCoordinates: s, postalCode: o = "" } = e, i = new URLSearchParams({ country: String(r) });
918
+ return o ? i.append("postalCode", o) : i.append(
919
+ "geoCoordinates",
920
+ `${s == null ? void 0 : s.longitude};${s == null ? void 0 : s.latitude}`
921
+ ), await h(
922
+ `${t}/api/checkout/pub/regions/?${i.toString()}`,
923
+ {
924
+ method: "GET",
925
+ ...a
926
+ }
927
+ );
928
+ }
929
+ const Ct = n.object({
930
+ id: n.string().required("ID of SKU is required"),
931
+ quantity: n.number().integer().required("Quantity of item is required"),
932
+ seller: n.string()
933
+ }), vt = n.object({
934
+ items: n.array().of(Ct),
935
+ country: n.string().length(3, "Country code must be 3 characters long").required("Country is required"),
936
+ postalCode: n.string().nullable(),
937
+ geoCoordinates: n.array().nullable().of(n.number()).length(2)
938
+ });
939
+ async function St({ apiUrl: t, body: e, fetchOptions: a }) {
940
+ if (!e) {
941
+ console.error("[ERROR FETCHING] Body is required");
942
+ return;
943
+ }
944
+ return await vt.validate(e), h(
945
+ `${t}/api/checkout/pub/orderForms/simulation`,
946
+ {
947
+ method: "POST",
948
+ body: e,
949
+ ...a
950
+ }
951
+ );
952
+ }
953
+ const Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
954
+ __proto__: null,
955
+ getMasterDataSellerCode: ft,
956
+ getOrderForm: ut,
957
+ postOrderFormAddCoupon: ze,
958
+ postOrderFormAttachClientProfileData: mt,
959
+ postOrderFormAttachOrderFormData: Ve,
960
+ postOrderFormAttachShippingData: ht,
961
+ postOrderFormAttachmentsMarketingData: K,
962
+ postOrderFormAttachmentsOpenTextField: Q,
963
+ postOrderFormClearMessages: ot,
964
+ postOrderFormFreightSimulation: St,
965
+ postOrderFormItems: Ye,
966
+ postOrderFormRegion: Rt,
967
+ postOrderFormRemoveAllItems: et,
968
+ postOrderFormUpdateItems: nt,
969
+ postOrderFormUpdateShippingData: bt,
970
+ postOrderformAddress: Le,
971
+ putOrderFormCustomData: Ke,
972
+ updateOrderFormOffering: ct
973
+ }, Symbol.toStringTag, { value: "Module" })), Ft = n.object({
974
+ skuId: n.string()
975
+ });
976
+ async function Ot({ apiUrl: t, body: e, fetchOptions: a }) {
977
+ if (!e) {
978
+ console.error("[ERROR FETCHING] Body is required");
979
+ return;
980
+ }
981
+ await Ft.validate(e);
982
+ const { skuId: r } = e;
983
+ return h(
984
+ `${t}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${r}`,
985
+ {
986
+ ...a
987
+ }
988
+ );
989
+ }
990
+ const Tt = n.object({
991
+ ids: n.array().of(n.string().required("ID are required")).required("IDs are required")
992
+ });
993
+ async function qt({ apiUrl: t, body: e, fetchOptions: a }) {
994
+ if (!e) {
995
+ console.error("[ERROR FETCHING] Body is required");
996
+ return;
997
+ }
998
+ await Tt.validate(e);
999
+ const { ids: r } = e;
1000
+ return h(
1001
+ `${t}/api/catalog_system/pub/products/search?fq=${r.map((s) => `productId:${s}`).join("&fq=")}`,
1002
+ {
1003
+ ...a
1004
+ }
1005
+ );
1006
+ }
1007
+ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1008
+ __proto__: null,
1009
+ getCatalogKitProducts: Ot,
1010
+ getCatalogProducts: qt
1011
+ }, Symbol.toStringTag, { value: "Module" })), Pt = n.object({
1012
+ query: n.string()
1013
+ });
1014
+ async function At({
1015
+ apiUrl: t,
1016
+ body: e,
1017
+ fetchOptions: a
1018
+ }) {
1019
+ if (!e) {
1020
+ console.error("[ERROR FETCHING] Body is required");
1021
+ return;
1022
+ }
1023
+ await Pt.validate(e);
1024
+ const { query: r = "" } = e, s = new URLSearchParams({ query: r });
1025
+ return h(
1026
+ `${t}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${s.toString()}`,
1027
+ {
1028
+ ...a
1029
+ }
1030
+ );
1031
+ }
1032
+ const wt = (t, e) => Re(t, e), Nt = (t) => ({
1033
+ ...t,
1034
+ description: t.description ? wt(t.description) : t.description
1035
+ }), kt = ({
1036
+ offer: t,
1037
+ seller: e,
1038
+ product: a
1039
+ }) => ({
1040
+ ...t,
1041
+ product: a,
1042
+ seller: e
1043
+ }), J = (t, e) => ({
1044
+ ...t,
1045
+ isVariantOf: Nt(e)
1046
+ }), jt = (t) => t ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", k = (t) => t.AvailableQuantity > 0, U = (t) => t.spotPrice ?? 0, Dt = (t) => t.Price ?? 0, W = (t, e) => k(t) && !k(e) ? -1 : !k(t) && k(e) ? 1 : U(t) - U(e), _t = (t, e) => {
1047
+ let a = 0;
1048
+ for (let r = 1; r < t.length; r++)
1049
+ e(t[a], t[r]) > 0 && (a = r);
1050
+ return t[a];
1051
+ }, X = (t) => {
1052
+ const e = t.flatMap(
1053
+ (r) => r.sellers.map((s) => ({
1054
+ offer: s.commertialOffer,
1055
+ sku: r
1056
+ }))
1057
+ ), a = _t(
1058
+ e,
1059
+ ({ offer: r }, { offer: s }) => W(r, s)
1060
+ );
1061
+ return a ? a.sku : t[0];
1062
+ }, Y = (t) => t.map(
1063
+ ({ imageUrl: e, imageText: a, imageLabel: r }) => ({
1064
+ alternateName: a ?? "",
1065
+ url: e.replace("vteximg.com.br", "vtexassets.com"),
1066
+ keywords: r
1067
+ })
1068
+ ), H = {
1069
+ attachment: "ATTACHMENT",
1070
+ specification: "SPECIFICATION",
1071
+ attribute: "ATTRIBUTE"
1072
+ }, Ht = (t) => ({
1073
+ name: t.name,
1074
+ value: t.content,
1075
+ valueReference: H.attachment
1076
+ }), Bt = (t) => ({
1077
+ propertyID: t.id,
1078
+ name: t.name,
1079
+ value: t.value,
1080
+ valueReference: {
1081
+ valueReference: H.attribute,
1082
+ visible: t.visible
1083
+ }
1084
+ }), B = (t, e, a) => {
1085
+ const r = t.flatMap(({ name: i, values: u }) => u ? u.map((c) => ({
1086
+ name: i,
1087
+ value: c,
1088
+ valueReference: H.specification
1089
+ })) : {
1090
+ name: i,
1091
+ value: "",
1092
+ valueReference: H.specification
1093
+ }), s = Array.isArray(a) ? a.map(Ht) : [], o = e ? e.map(Bt) : [];
1094
+ return [
1095
+ ...r,
1096
+ ...s,
1097
+ ...o
1098
+ ];
1099
+ }, V = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", Lt = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", Gt = (t) => {
1100
+ let e = t.slice(0);
1101
+ for (let a = 0; a < V.length; a++)
1102
+ e = e.replace(
1103
+ new RegExp(V.charAt(a), "g"),
1104
+ Lt.charAt(a)
1105
+ );
1106
+ return e;
1107
+ }, Mt = (t) => t.replace(/[·/_,:]/, "-"), Z = (t) => {
1108
+ const a = t.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
1109
+ return Mt(Gt(a)).toLowerCase();
1110
+ }, ee = (t) => `/${t}/p`, te = (t) => {
1111
+ const e = Math.max(
1112
+ ...t.map((r) => r.NumberOfInstallments)
1113
+ ), a = t.find(
1114
+ (r) => r.NumberOfInstallments === e
1115
+ );
1116
+ return {
1117
+ count: (a == null ? void 0 : a.NumberOfInstallments) ?? 0,
1118
+ value: (a == null ? void 0 : a.Value) ?? 0
1119
+ };
1120
+ }, re = (t, e) => {
1121
+ const a = {
1122
+ price: 0,
1123
+ listPrice: 0,
1124
+ sellerDefault: !1
1125
+ }, s = t.map(
1126
+ (o) => kt({
1127
+ offer: o.commertialOffer,
1128
+ seller: o,
1129
+ product: e
1130
+ })
1131
+ ).sort(W).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (a.price = o.Price, a.listPrice = o.ListPrice, a.sellerDefault = !0), {
1132
+ availability: o.AvailableQuantity > 0,
1133
+ listPrice: o.ListPrice,
1134
+ price: Dt(o),
1135
+ priceValidUntil: o.PriceValidUntil,
1136
+ priceCurrency: "BRL",
1137
+ installments: o.Installments,
1138
+ lowPrice: o.spotPrice,
1139
+ quantity: o.AvailableQuantity,
1140
+ seller: {
1141
+ identifier: o.seller.sellerId
1142
+ }
1143
+ }));
1144
+ return {
1145
+ lowPrice: a.sellerDefault ? a.price : s[0].price,
1146
+ highPrice: a.sellerDefault ? a.listPrice : s[0].listPrice,
1147
+ offers: s
1148
+ };
1149
+ }, ae = (t) => {
1150
+ const { attributes: e, itemId: a, name: r, sellers: s, variations: o } = t;
1151
+ return {
1152
+ additionalProperty: B(o, e, []),
1153
+ name: r,
1154
+ offers: {
1155
+ offers: s == null ? void 0 : s.map(({ sellerId: i, commertialOffer: u }) => ({
1156
+ availability: jt(u.AvailableQuantity > 0),
1157
+ listPrice: u.ListPrice,
1158
+ price: u.Price,
1159
+ quantity: u.AvailableQuantity,
1160
+ seller: {
1161
+ identifier: i
1162
+ }
1163
+ }))
1164
+ },
1165
+ sku: a
1166
+ // slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
1167
+ };
1168
+ }, Ut = (t) => {
1169
+ var v;
1170
+ const {
1171
+ attributes: e,
1172
+ referenceId: a,
1173
+ isVariantOf: r,
1174
+ images: s,
1175
+ itemId: o,
1176
+ name: i,
1177
+ sellers: u,
1178
+ videos: c,
1179
+ variations: g
1180
+ } = t, {
1181
+ brand: l,
1182
+ categories: d,
1183
+ categoriesIds: R,
1184
+ description: p,
1185
+ linkText: m,
1186
+ productClusters: y,
1187
+ clusterHighlights: I,
1188
+ productName: O,
1189
+ properties: T,
1190
+ productId: q,
1191
+ productReference: f
1192
+ } = r, S = d.slice().reverse(), C = re(u, t.isVariantOf), F = te(C.offers[0].installments);
1193
+ return {
1194
+ sku: o,
1195
+ gtin: ((v = a == null ? void 0 : a[0]) == null ? void 0 : v.Value) ?? f ?? "",
1196
+ name: O ?? i,
1197
+ description: p,
1198
+ releaseDate: r.releaseDate ?? "",
1199
+ slug: m,
1200
+ video: c[0],
1201
+ categories: d,
1202
+ categoriesIds: R,
1203
+ id: q,
1204
+ brand: { name: l, brandName: l },
1205
+ seo: {
1206
+ description: p,
1207
+ title: O,
1208
+ canonical: ee(m)
1209
+ },
1210
+ cluster: {
1211
+ generals: y,
1212
+ highlights: I
1213
+ },
1214
+ properties: T,
1215
+ availability: { status: C.offers[0].availability },
1216
+ breadcrumbList: {
1217
+ itemListElement: [
1218
+ ...S.map((P, A) => {
1219
+ const $ = P.split("/"), G = $[$.length - 2], se = $.map(Z).join("/");
1220
+ return {
1221
+ name: G,
1222
+ item: se,
1223
+ position: A + 1
1224
+ };
1225
+ }),
1226
+ {
1227
+ name: r.productName,
1228
+ item: m,
1229
+ position: d.length + 1
1230
+ }
1231
+ ],
1232
+ numberOfItems: d.length
1233
+ },
1234
+ image: Y(s),
1235
+ offers: C,
1236
+ additionalProperty: B(g, e, []),
1237
+ isVariantOf: {
1238
+ productGroupID: r.productId,
1239
+ hasVariant: r.items.map((P) => ae(P))
1240
+ },
1241
+ installments: F
1242
+ };
1243
+ }, Vt = (t) => {
1244
+ var F;
1245
+ const {
1246
+ attributes: e,
1247
+ referenceId: a,
1248
+ isVariantOf: r,
1249
+ images: s,
1250
+ itemId: o,
1251
+ name: i,
1252
+ sellers: u,
1253
+ Videos: c,
1254
+ variations: g
1255
+ } = t, {
1256
+ brand: l,
1257
+ categories: d,
1258
+ categoriesIds: R,
1259
+ description: p,
1260
+ linkText: m,
1261
+ productClusters: y,
1262
+ productName: I,
1263
+ Coleção: O,
1264
+ "ID Coleção": T,
1265
+ productId: q
1266
+ } = r, f = d.slice().reverse(), S = re(u, t.isVariantOf), C = te(S.offers[0].installments);
1267
+ return {
1268
+ sku: o,
1269
+ gtin: ((F = a[0]) == null ? void 0 : F.Value) ?? "",
1270
+ name: I ?? i,
1271
+ description: p,
1272
+ releaseDate: r.releaseDate ?? "",
1273
+ slug: m,
1274
+ video: c[0],
1275
+ categories: d,
1276
+ categoriesIds: R,
1277
+ collection: O,
1278
+ collectionId: T,
1279
+ id: q,
1280
+ brand: { name: l, brandName: l },
1281
+ seo: {
1282
+ description: p,
1283
+ title: I,
1284
+ canonical: ee(m)
1285
+ },
1286
+ cluster: {
1287
+ generals: y,
1288
+ highlights: []
1289
+ // TODO: add highlights
1290
+ },
1291
+ availability: { status: S.offers[0].availability },
1292
+ breadcrumbList: {
1293
+ itemListElement: [
1294
+ ...f.map((v, P) => {
1295
+ const A = v.split("/"), $ = A[A.length - 2], G = A.map(Z).join("/");
1296
+ return {
1297
+ name: $,
1298
+ item: G,
1299
+ position: P + 1
1300
+ };
1301
+ }),
1302
+ {
1303
+ name: r.productName,
1304
+ item: m,
1305
+ position: d.length + 1
1306
+ }
1307
+ ],
1308
+ numberOfItems: d.length
1309
+ },
1310
+ image: Y(s),
1311
+ offers: S,
1312
+ additionalProperty: B(g, e, []),
1313
+ isVariantOf: {
1314
+ productGroupID: r.productId,
1315
+ hasVariant: r.items.map((v) => {
1316
+ const { variations: P } = v, A = P.map(($) => ({
1317
+ name: $,
1318
+ values: v[$]
1319
+ }));
1320
+ return {
1321
+ ...ae(v),
1322
+ additionalProperty: B(
1323
+ A,
1324
+ e,
1325
+ []
1326
+ )
1327
+ };
1328
+ })
1329
+ },
1330
+ installments: C
1331
+ };
1332
+ }, xt = n.array().of(n.object({
1333
+ key: n.string().required(),
1334
+ value: n.string().required()
1335
+ })).required("Facets are required");
1336
+ async function zt({ apiUrl: t, body: e, fetchOptions: a }) {
1337
+ if (!e) {
1338
+ console.error("[ERROR FETCHING] Body is required");
1339
+ return;
1340
+ }
1341
+ await xt.validate(e);
1342
+ const r = new URLSearchParams({}), s = e.map(({ key: i, value: u }) => `${i}/${u}`).join("/");
1343
+ ie(e, r);
1344
+ const o = `${t}/api/catalog_system/pub/products/crossselling/${s}`;
1345
+ return h(o, {
1346
+ cache: "no-store",
1347
+ ...a
1348
+ }).then((i) => i.map((c) => {
1349
+ const g = X(c.items);
1350
+ return g && J(g, c);
1351
+ }).filter((c) => !!c).map((c) => ({
1352
+ node: Vt(c)
1353
+ })));
1354
+ }
1355
+ const ne = ({
1356
+ apiUrl: t,
1357
+ body: e,
1358
+ fetchOptions: a,
1359
+ extraData: r
1360
+ }) => {
1361
+ if (!e) {
1362
+ console.error("[ERROR FETCHING] Body is required");
1363
+ return;
1364
+ }
1365
+ const {
1366
+ query: s = "",
1367
+ page: o = 1,
1368
+ count: i,
1369
+ sort: u = "",
1370
+ facets: c = [],
1371
+ type: g,
1372
+ hideUnavailableItems: l = !0,
1373
+ locale: d = ""
1374
+ } = e, R = new URLSearchParams({
1375
+ page: o.toString(),
1376
+ count: (i == null ? void 0 : i.toString()) ?? (r == null ? void 0 : r.ITEMS_PER_PAGE) ?? 24,
1377
+ query: s,
1378
+ sort: u,
1379
+ locale: d
1380
+ });
1381
+ l !== void 0 && R.append("hideUnavailableItems", l.toString());
1382
+ const p = c.map((m) => `${m.key}/${m.value}`).join("/") ?? "";
1383
+ return He(
1384
+ `${t}/api/io/_v/api/intelligent-search/${g}/${p}?${R.toString()}`,
1385
+ {
1386
+ headers: {
1387
+ Accept: "application/json",
1388
+ "content-type": "application/json"
1389
+ },
1390
+ ...a
1391
+ }
1392
+ );
1393
+ };
1394
+ async function Qt({ body: t, extraData: e, ...a }) {
1395
+ if (!t) {
1396
+ console.error("[ERROR FETCHING] Body is required");
1397
+ return;
1398
+ }
1399
+ const r = await ne({
1400
+ body: {
1401
+ ...t,
1402
+ type: "product_search"
1403
+ },
1404
+ extraData: e,
1405
+ ...a
1406
+ }), s = (r == null ? void 0 : r.products.map((u) => {
1407
+ const c = X(u.items);
1408
+ return c && J(c, u);
1409
+ }).filter((u) => !!u)) ?? [], {
1410
+ pagination: o,
1411
+ recordsFiltered: i
1412
+ } = r;
1413
+ return {
1414
+ data: {
1415
+ pagination: {
1416
+ nextPage: o.after.length > 0,
1417
+ previousPage: o.before.length > 0,
1418
+ startCursor: "0",
1419
+ endCursor: i.toString(),
1420
+ count: i,
1421
+ total: o.count
1422
+ },
1423
+ products: s.map((u, c) => ({
1424
+ node: Ut(u),
1425
+ cursor: c.toString()
1426
+ }))
1427
+ }
1428
+ };
1429
+ }
1430
+ async function Kt({ body: t, extraData: e, ...a }) {
1431
+ if (!t) {
1432
+ console.error("[ERROR FETCHING] Body is required");
1433
+ return;
1434
+ }
1435
+ const r = await ne({
1436
+ body: {
1437
+ ...t,
1438
+ type: "facets"
1439
+ },
1440
+ extraData: e,
1441
+ ...a
1442
+ });
1443
+ return !r || !r.facets ? (console.error("[ERROR FETCHING] No facets found"), { data: { facets: [] } }) : {
1444
+ data: {
1445
+ ...r,
1446
+ facets: ce(r, t == null ? void 0 : t.selectedFacets, (t == null ? void 0 : t.query) ?? "")
1447
+ }
1448
+ };
1449
+ }
1450
+ const Jt = n.object({
1451
+ query: n.string().optional(),
1452
+ locale: n.string().optional()
1453
+ });
1454
+ async function Wt({ apiUrl: t, body: e, fetchOptions: a }) {
1455
+ if (!e) {
1456
+ console.error("[ERROR FETCHING] Body is required");
1457
+ return;
1458
+ }
1459
+ await Jt.validate(e);
1460
+ const { query: r = "", locale: s = "default_locale" } = e, o = new URLSearchParams({ query: r, locale: s });
1461
+ return h(
1462
+ `${t}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
1463
+ {
1464
+ ...a
1465
+ }
1466
+ );
1467
+ }
1468
+ async function Xt({ apiUrl: t }) {
1469
+ return h(`${t}/api/io/_v/api/intelligent-search/top_searches`);
1470
+ }
1471
+ const Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1472
+ __proto__: null,
1473
+ getSearchAutoCompleteSuggestions: At,
1474
+ getSearchCrossellingProducts: zt,
1475
+ getSearchFacets: Kt,
1476
+ getSearchProducts: Qt,
1477
+ getSearchSuggestedTerms: Wt,
1478
+ getSearchTopSearchs: Xt
1479
+ }, Symbol.toStringTag, { value: "Module" })), Zt = n.object({
1480
+ masterDataEntity: n.string().nonNullable(),
1481
+ payload: n.object().shape({}).nullable()
1482
+ });
1483
+ async function er({
1484
+ apiUrl: t,
1485
+ body: e,
1486
+ fetchOptions: a
1487
+ }) {
1488
+ if (!e) {
1489
+ console.error("[ERROR FETCHING] Body is required");
1490
+ return;
1491
+ }
1492
+ await Zt.validate(e);
1493
+ const { masterDataEntity: r, payload: s } = e, o = `${t}/api/dataentities/${r}/documents`;
1494
+ return h(o, {
1495
+ method: "POST",
1496
+ body: {
1497
+ payload: s
1498
+ },
1499
+ ...a
1500
+ });
1501
+ }
1502
+ const tr = n.object().shape({
1503
+ _where: n.string().optional(),
1504
+ _fields: n.string().optional(),
1505
+ _sort: n.string().optional(),
1506
+ _from: n.number().integer().min(0).optional(),
1507
+ _to: n.number().integer().min(0).optional(),
1508
+ _keyword: n.string().optional()
1509
+ }), rr = n.object({
1510
+ masterDataEntity: n.string().required(),
1511
+ searchFields: tr,
1512
+ headers: n.object().shape({
1513
+ "REST-Range": n.string().notRequired()
1514
+ })
1515
+ });
1516
+ async function ar({
1517
+ apiUrl: t,
1518
+ body: e,
1519
+ fetchOptions: a
1520
+ }) {
1521
+ if (!e) {
1522
+ console.error("[ERROR FETCHING] Body is required");
1523
+ return;
1524
+ }
1525
+ const r = new URLSearchParams();
1526
+ await rr.validate(e);
1527
+ const { masterDataEntity: s, searchFields: o, headers: i } = e;
1528
+ o && Object.entries(o).forEach(([c, g]) => {
1529
+ r.append(c, String(g));
1530
+ }), "_fields" in o || r == null || r.append("_fields", "_all");
1531
+ const u = `${t}/api/dataentities/${s}/search?${r.toString()}`;
1532
+ return h(u, {
1533
+ headers: {
1534
+ "REST-Range": i["REST-Range"] ?? "resources=0-20"
1535
+ },
1536
+ method: "GET",
1537
+ ...a
1538
+ });
1539
+ }
1540
+ const nr = n.object({
1541
+ dataEntityName: n.string().required(),
1542
+ id: n.string().required(),
1543
+ fieldsToBeUpdated: n.object().shape({})
1544
+ });
1545
+ async function sr({
1546
+ apiUrl: t,
1547
+ body: e,
1548
+ fetchOptions: a
1549
+ }) {
1550
+ if (!e) {
1551
+ console.error("[ERROR FETCHING] Body is required");
1552
+ return;
1553
+ }
1554
+ await nr.validate(e);
1555
+ const { dataEntityName: r, id: s, fieldsToBeUpdated: o } = e, i = `${t}/api/dataentities/${r}/documents/${s}`;
1556
+ return h(i, {
1557
+ body: {
1558
+ fieldsToBeUpdated: o
1559
+ },
1560
+ method: "PATCH",
1561
+ ...a
1562
+ });
1563
+ }
1564
+ const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1565
+ __proto__: null,
1566
+ getSearchMasterdata: ar,
1567
+ patchUpdateMasterdata: sr,
1568
+ postMasterdata: er
1569
+ }, Symbol.toStringTag, { value: "Module" }));
1570
+ async function ir({ body: t, apiUrl: e, extraData: a, fetchOptions: r }) {
1571
+ const { productIds: s } = t;
1572
+ if (!s)
1573
+ return console.error("[ERROR FETCHING] productIds is required"), [];
1574
+ const { NAME_SPLIT_SYMBOL: o } = a;
1575
+ if (!o)
1576
+ return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
1577
+ const i = s.map((l) => typeof l == "string" || typeof l == "number" ? `productId:${l}` : "").join("&fq="), u = await h(
1578
+ `${e}/api/catalog_system/pub/products/search?fq=${i}`,
1579
+ {
1580
+ ...r
1581
+ }
1582
+ ), c = (l) => Object.keys(l).map((d) => ({ id: d, name: l[d] }));
1583
+ return u.map((l, d) => {
1584
+ var q;
1585
+ const { installments: R, price: p, listPrice: m, sizes: y, allSizesAvailable: I } = le({ items: l.items, NAME_SPLIT_SYMBOL: o }), O = I ? !0 : y.some((f) => f.available), T = l.items[0].sellers[0].commertialOffer;
1586
+ return {
1587
+ node: {
1588
+ sku: l.items[0].itemId,
1589
+ gtin: l.productReference,
1590
+ name: l.productName,
1591
+ description: l.description,
1592
+ releaseDate: l.releaseDate,
1593
+ slug: l.linkText,
1594
+ categories: l.categories,
1595
+ categoriesIds: l.categoriesIds,
1596
+ id: l.items[0].itemId,
1597
+ brand: {
1598
+ name: l.brand,
1599
+ brandName: l.brand
1600
+ },
1601
+ seo: {
1602
+ description: l.description,
1603
+ title: l.productName,
1604
+ canonical: `/${l.linkText}/p`
1605
+ },
1606
+ cluster: {
1607
+ generals: c(l.productClusters),
1608
+ highlights: c(l.clusterHighlights)
1609
+ },
1610
+ availability: {
1611
+ status: O
1612
+ },
1613
+ image: l.items[0].images.map(
1614
+ ({
1615
+ imageLabel: f,
1616
+ imageUrl: S
1617
+ }) => ({
1618
+ alternateName: f,
1619
+ url: S,
1620
+ keywords: f
1621
+ })
1622
+ ),
1623
+ offers: {
1624
+ lowPrice: p,
1625
+ highPrice: m,
1626
+ offers: [
1627
+ {
1628
+ availability: O,
1629
+ listPrice: m,
1630
+ price: p,
1631
+ priceValidUntil: T.PriceValidUntil,
1632
+ priceCurrency: "BRL",
1633
+ installments: T.Installments,
1634
+ lowPrice: p,
1635
+ quantity: T.AvailableQuantity,
1636
+ seller: {
1637
+ identifier: l.items[0].sellers[0].sellerId
1638
+ }
1639
+ }
1640
+ ]
1641
+ },
1642
+ additionalProperty: (q = l == null ? void 0 : l.skuSpecifications) == null ? void 0 : q.map((f) => ({
1643
+ name: l == null ? void 0 : l.skuSpecifications[0].field.name,
1644
+ value: f,
1645
+ valueReference: "SPECIFICATION"
1646
+ })),
1647
+ isVariantOf: {
1648
+ productGroupID: l.productId,
1649
+ hasVariant: l.items.map((f) => {
1650
+ var S;
1651
+ return {
1652
+ additionalProperty: f == null ? void 0 : f.variations.map(() => {
1653
+ var C, F, v;
1654
+ return {
1655
+ name: (C = f == null ? void 0 : f.variations) == null ? void 0 : C[0],
1656
+ value: (v = f == null ? void 0 : f[(F = f == null ? void 0 : f.variations) == null ? void 0 : F[0]]) == null ? void 0 : v[0],
1657
+ valueReference: "SPECIFICATION"
1658
+ };
1659
+ }),
1660
+ name: f.name,
1661
+ offers: {
1662
+ offers: (S = f.sellers) == null ? void 0 : S.map(
1663
+ ({ commertialOffer: C, sellerId: F }) => ({
1664
+ availability: "https://schema.org/InStock",
1665
+ listPrice: C.ListPrice,
1666
+ price: C.Price,
1667
+ quantity: C.AvailableQuantity,
1668
+ seller: {
1669
+ identifier: F
1670
+ }
1671
+ })
1672
+ )
1673
+ },
1674
+ sku: f.itemId,
1675
+ slug: `-${f.itemId}`
1676
+ };
1677
+ })
1678
+ },
1679
+ installments: R
1680
+ },
1681
+ cursor: d.toString()
1682
+ };
1683
+ });
1684
+ }
1685
+ const cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1686
+ __proto__: null,
1687
+ getWishlistProducts: ir
1688
+ }, Symbol.toStringTag, { value: "Module" })), lr = {
1689
+ parseSearchState: pe,
1690
+ convertSearchParams: me,
1691
+ filterNonRootFacets: de,
1692
+ filterNonCategorySelected: ue
1693
+ }, ur = async ({ children: t, productId: e, ClientItems: a, PDP_INFO: r, TEXTURE_IMAGE: s, TOGGLE_STYLE_MODIFIER: o }) => {
1694
+ const i = await fe(e, s);
1695
+ return /* @__PURE__ */ N("div", { className: M.similars, children: [
1696
+ /* @__PURE__ */ N("div", { className: M["similars-info"], children: [
1697
+ /* @__PURE__ */ b("span", { className: M["sections-title"], children: r.product.color_title }),
1698
+ t
1699
+ ] }),
1700
+ /* @__PURE__ */ b(a, { productId: e, similars: i, TOGGLE_STYLE_MODIFIER: o })
1701
+ ] });
1702
+ }, hr = {
1703
+ checkout: Et,
1704
+ catalog: $t,
1705
+ cms: ge,
1706
+ search: Yt,
1707
+ masterdata: or,
1708
+ wishlist: {
1709
+ ...cr
1710
+ }
1711
+ }, yr = {
1712
+ catalog: Ie,
1713
+ search: lr,
1714
+ product: be,
1715
+ cms: {
1716
+ ...ye,
1717
+ ...he
1718
+ }
1719
+ }, br = {
1720
+ template: {
1721
+ pdp: { PDPSimilars: ur }
1722
+ }
1723
+ };
1724
+ export {
1725
+ hr as serverAPIs,
1726
+ gr as serverCMS,
1727
+ br as serverComponents,
1728
+ yr as serverHelpers
1729
+ };