@trafilea/afrodita-components 7.1.22 → 7.3.0

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 (68) hide show
  1. package/build/es/components/atoms/PriceLabel/PriceLabel.js +1 -1
  2. package/build/es/components/atoms/PriceLabelV2/PriceLabelV2.js +1 -1
  3. package/build/es/components/autoship/styled.js +1 -1
  4. package/build/es/components/autoshipV2/styled.js +1 -1
  5. package/build/es/components/bundle/minimalistic/Minimalistic.js +1 -1
  6. package/build/es/components/bundle/simple/Simple.js +1 -1
  7. package/build/es/components/collection/product/mobile/ProductItemMobile.js +1 -1
  8. package/build/es/components/collection/product/mobile/styled.js +1 -1
  9. package/build/es/components/collection/product/truekind/ProductItemTK.js +1 -1
  10. package/build/es/components/collection/product/truekind/styled.js +2 -0
  11. package/build/es/components/collection/product/truekind/styled.js.map +1 -0
  12. package/build/es/components/molecules/BenefitsList/BenefitsList.js +1 -1
  13. package/build/es/components/molecules/CouponCard/CouponCard.js +1 -1
  14. package/build/es/components/molecules/LikeButton/LikeButton.js +1 -1
  15. package/build/es/components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.js +1 -1
  16. package/build/es/components/organisms/AutoshipPdpCard/AutoshipPdpCard.js +1 -1
  17. package/build/es/components/organisms/ClubOfferSelector/styled.js +1 -1
  18. package/build/es/components/organisms/ClubOfferSelector2/styled.js +1 -1
  19. package/build/es/components/organisms/OfferAtCart/OfferAtCart.js +1 -1
  20. package/build/es/components/organisms/OfferAtCartV2/OfferAtCartV2.js +1 -1
  21. package/build/es/components/organisms/OfferAtCartV4/OfferAtCartV4.js +1 -1
  22. package/build/es/components/organisms/OfferAtPDP/OfferAtPDP.js +1 -1
  23. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ImageProductSlideV3.js +1 -1
  24. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/index.js +1 -1
  25. package/build/es/components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js +1 -1
  26. package/build/es/components/organisms/SubscriptionPlanSelector/styled.js +1 -1
  27. package/build/es/components/organisms/TwoCtasAtCart/TwoCtasAtCart.js +1 -1
  28. package/build/es/components/pricing/discount/DiscountTag.js +1 -1
  29. package/build/es/components/pricing/discount/styled.js +2 -0
  30. package/build/es/components/pricing/discount/styled.js.map +1 -0
  31. package/build/es/components/product/order/item/SimpleOrderItem.js +1 -1
  32. package/build/es/components/search-bar/SearchBar.js +1 -1
  33. package/build/es/components/search-bar/components/ProductItem/ProductItem.js +1 -1
  34. package/build/index.d.ts +6 -3
  35. package/build/lib/components/atoms/PriceLabel/PriceLabel.js +1 -1
  36. package/build/lib/components/atoms/PriceLabelV2/PriceLabelV2.js +1 -1
  37. package/build/lib/components/autoship/styled.js +1 -1
  38. package/build/lib/components/autoshipV2/styled.js +1 -1
  39. package/build/lib/components/bundle/minimalistic/Minimalistic.js +1 -1
  40. package/build/lib/components/bundle/simple/Simple.js +1 -1
  41. package/build/lib/components/collection/product/mobile/ProductItemMobile.js +1 -1
  42. package/build/lib/components/collection/product/mobile/styled.js +1 -1
  43. package/build/lib/components/collection/product/truekind/ProductItemTK.js +1 -1
  44. package/build/lib/components/collection/product/truekind/styled.js +2 -0
  45. package/build/lib/components/collection/product/truekind/styled.js.map +1 -0
  46. package/build/lib/components/molecules/BenefitsList/BenefitsList.js +1 -1
  47. package/build/lib/components/molecules/CouponCard/CouponCard.js +1 -1
  48. package/build/lib/components/molecules/LikeButton/LikeButton.js +1 -1
  49. package/build/lib/components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.js +1 -1
  50. package/build/lib/components/organisms/AutoshipPdpCard/AutoshipPdpCard.js +1 -1
  51. package/build/lib/components/organisms/ClubOfferSelector/styled.js +1 -1
  52. package/build/lib/components/organisms/ClubOfferSelector2/styled.js +1 -1
  53. package/build/lib/components/organisms/OfferAtCart/OfferAtCart.js +1 -1
  54. package/build/lib/components/organisms/OfferAtCartV2/OfferAtCartV2.js +1 -1
  55. package/build/lib/components/organisms/OfferAtCartV4/OfferAtCartV4.js +1 -1
  56. package/build/lib/components/organisms/OfferAtPDP/OfferAtPDP.js +1 -1
  57. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ImageProductSlideV3.js +1 -1
  58. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/index.js +1 -1
  59. package/build/lib/components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js +1 -1
  60. package/build/lib/components/organisms/SubscriptionPlanSelector/styled.js +1 -1
  61. package/build/lib/components/organisms/TwoCtasAtCart/TwoCtasAtCart.js +1 -1
  62. package/build/lib/components/pricing/discount/DiscountTag.js +1 -1
  63. package/build/lib/components/pricing/discount/styled.js +2 -0
  64. package/build/lib/components/pricing/discount/styled.js.map +1 -0
  65. package/build/lib/components/product/order/item/SimpleOrderItem.js +1 -1
  66. package/build/lib/components/search-bar/SearchBar.js +1 -1
  67. package/build/lib/components/search-bar/components/ProductItem/ProductItem.js +1 -1
  68. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@ant-design/react-slick"),t=require("react");require("../../../../PackSelectorV2/PackSelectoV2.js"),require("../../../../absorbency-level/AbsorbencyLevel.js"),require("../../../../accordion-options/AccordionOptions.js"),require("../../../../accordion/Accordion.js"),require("../../../../../types/enums.js"),require("../../../../../core/theme/Theme.js"),require("../../../../../utils/constants/offerAtCart.js");var s=require("../../../../../utils/debounce/index.js");require("../../../../../utils/media.js"),require("../../../../../utils/mock-content/CancellationFlowAccordion.js"),require("../../../../dropdown/variants/simple/SimpleDropdown.js"),require("../../../../atoms/PriceLabel/PriceLabel.js"),require("../../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../../atoms/Icon/Icon.js");var o=require("../../../../atoms/Image/Image.js");require("../../../../atoms/Toggle/toggle.styled.js"),require("../../../../radio/input/styles.js"),require("../../../../tooltip/Styled.js"),require("../../../../autoship/styled.js"),require("../../../../autoshipV2/styled.js"),require("../../../../before-after/BeforeAfter.js"),require("../../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../../pricing/discount/DiscountTag.js"),require("../../../../pricing/styles.js"),require("../../../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../../../shared/card/Card.js"),require("../../../../bundle/minimalistic/styled.js"),require("../../../../text/Text.js"),require("../../../../bundle/motivator/styled.js"),require("../../../../bundle/simple/Simple.js"),require("../../../../buynowpaylater/BuyNowPayLater.js"),require("../../../../offer-banner/OfferBanner.js"),require("../../../../cartProductItem/CloseIcon/CloseButton.js"),require("../../../../cartProductItem/Description/Description.js"),require("../../../../cartProductItem/Promo/Promo.js"),require("../../../../cartProductItem/Title/Title.js"),require("../../../../cartProductItem/TrashIcon/styled.js"),require("../../../../checkbox/Checkbox.js"),require("@emotion/react/jsx-runtime"),require("../../../../SkeletonBox/SkeletonBox.js"),require("../../../../club-price-label/ClubPriceLabel.js"),require("../../../../strength-bars/StrengthBars.js"),require("../../../../pricing/priceLabelV4/PriceLabelV4.js"),require("../../../../rating/starList/StarList.js"),require("../../../../rating/styles.js"),require("../../../../collection/product/mobile/styled.js"),require("../../../../collection/product/truekind/ProductItemTK.js"),require("../../../../collection/grid/WithProductGrid.js"),require("../../../../color/ColorRadioGroup.js"),require("../../../../color/selector/PatternSelector.js"),require("../../../../color/styles/ColorPickerwithTootip.styled.js"),require("../../../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../../../cta/styled.js"),require("../../../../delivery-details/DeliveryDetails.js"),require("../../../../delivery-details/Note/Note.js"),require("../../../../drawer/Drawer.js"),require("../../../../dropdown-list-icons/Styled.js"),require("../../../../dropdown/size-dropdown/Styled.js"),require("../../../../dropdown/variants/dialog/DropdownDialog.js"),require("../../../../dropdown/base/BaseDropdown.js"),require("../../../../filtering/Accordion.js"),require("../../../../filtering/FiltersStyled.js"),require("../../../../filtering/Tags/Tags.js"),require("../../../../fit-guarantee/FitGuarantee.js"),require("../../../../fit/FitPredictor.js"),require("../../../../slider/ArrowButton.js"),require("../../../../slider/StyledSlider.js"),require("../../../../gallery/components/ImageSmallPreview/styled.js"),require("../../../../gallery/components/ImagePreviewList/styled.js");var l=require("../../../../molecules/Video/Video.js");require("../../../../gallery/components/ImageProductSlide/styled.js"),require("../../../../gallery/styled.js"),require("../../../../icon-button/IconButton.js"),require("../../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../../../iconsWithTitle/index.js"),require("../../../../image-card/ImageCard.js"),require("../../../../input/label/Label.js"),require("../../../../input/base/Error.js"),require("../../../../input/base/Styled.js"),require("../../../../input/custom/Custom.js"),require("../../../../input/basePlusButton/BasePlusButton.js"),require("../../../../input/basePlusIcon/BasePlusIcon.js"),require("../../../../modal/Modal.js"),require("../../../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../../../order-bar/OrderBar.js"),require("../../../../packs/selector/PackSelector.js"),require("../../../../pagination/styles.js"),require("../../../../payment-methods/PaymentMethod.js"),require("../../../../product/order/item/SimpleOrderItem.js"),require("../../../../progress-bar/ProgressBar.js"),require("../../../../quantityPicker/QuantityPicker.js"),require("../../../../radio/RadioPrimary/radioPrimary.js"),require("../../../../radio/clubRadioInput/clubRadio.js"),require("../../../../review-detail/ReviewDetail.js"),require("../../../../review/Review.js"),require("../../../../reviews-header/ReviewsHeader.js"),require("../../../../scroll-to-top/ScrollToTop.js"),require("../../../../search-bar/components/ClearButton/styled.js"),require("../../../../search-bar/components/Footer/styled.js"),require("../../../../search-bar/components/ProductItem/styled.js"),require("../../../../search-bar/components/ResultsPanel/styled.js"),require("../../../../search-bar/components/SearchControl/styled.js"),require("../../../../search-bar/styled.js"),require("../../../../search-navigation/styled.js"),require("react-dom"),require("../../../../short-banner/ShortBanner.js"),require("../../../../size-chart/styled.js"),require("../../../../size-table/SizeTable.js"),require("../../../../size/guide/SizeFitGuide.js"),require("../../../../size/selector/styled.js"),require("../../../../tabs/Tab.js"),require("../../../../tabs/Tabs.js"),require("../../../../tag/Tag.js"),require("@emotion/react"),require("../../../../textWithImage/index.js"),require("../../../../timer/styled.js"),require("../../../../toast/Toast.js"),require("../../../../totals/total/styled.js"),require("../../../../totals/subtotal/Subtotal.js"),require("../../../../tracking-progress-v2/TrackingProgressV2.js"),require("../../../../tracking-progress/TrackingProgress.js"),require("../../../AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../../../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../../../AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../../../BasicAccordion/BasicAccordion.js"),require("../../../CartItemCard/CartItem.js"),require("../../../ClubOfferSelector/styled.js"),require("../../../ClubOfferSelector2/styled.js"),require("../../../JoinClubCard/joinClubCard.js"),require("../../../OfferAtCart/styled.js"),require("../../../OfferAtCartV2/styled.js"),require("../../../OfferAtCartV3/styled.js"),require("../../../OfferAtCartV4/styled.js"),require("../../../OfferAtPDP/styled.js"),require("../../../OfferAtPDP/types.js"),require("../../../ProductCard/ProductCardV1/ProductCard.js"),require("../../../ProductCard/ProductCardV2/styled.js"),require("../../../ProductCard/ProductCardV3/styled.js"),require("../../ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../../ProductGalleryMobileV2/ProductGalleryMobileV2.js"),require("../../ProductGalleryMobileV3/ProductGalleryMobileV3.js"),require("../../ProductGalleryMobileV4/ContentGallery/styled.js"),require("react-inner-image-zoom"),require("../../ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js"),require("../../ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js"),require("../../ProductGalleryMobileV4/GalleryDetailed/styled.js"),require("../../ProductGalleryMobileV5/styled.js"),require("../ColorVariantsGallery/styled.js");var u=require("./styled.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../styled.js"),require("../../../SizeCharTable/SizeChartTableV2/styled.js"),require("../../../SizeCharTable/SizeChartTableV3/styled.js"),require("../../../../molecules/ArrowTip/ArrowTip.styled.js"),require("../../../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js"),require("../../../SubscriptionPlanSelector/styled.js"),require("../../../TwoCtasAtCart/Greeting.styled.js"),require("../../../TwoCtasAtCart/Card.styled.js"),require("../../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../../../molecules/CouponCard/styled.js"),require("../../../../molecules/BenefitsList/styled.js"),require("../../../../molecules/HurryUp/styled.js"),require("../../../../molecules/Spinner/styled.js"),require("../../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js"),require("../../../../molecules/LikeButton/styled.js"),require("../../../../molecules/ScarcityTag/ScarcityTag.styled.js");var d=a(i),n={dots:!1,infinite:!1,speed:200,slidesToScroll:1,initialSlide:0},c=function(e){if(!(null==e?void 0:e.current))return 1.1;return(e.current.offsetWidth-15)/312-1e-4};exports.MainGallery=function(i){var a,j,q,y=i.contents,b=i.topTag,m=i.topRightTag,p=i.bottomTag,f=i.containerRef,g=t.useRef(null),P=t.useRef(null),C=t.useState(null!==(a=c(f))&&void 0!==a?a:1),v=C[0],h=C[1],T=null===(j=null==y?void 0:y[0])||void 0===j?void 0:j.key;return t.useEffect((function(){var e;null===(e=g.current)||void 0===e||e.slickGoTo(0,!0)}),[T]),t.useLayoutEffect((function(){if(null==f?void 0:f.current){var e=s.debounce((function(){var e;h(null!==(e=c(f))&&void 0!==e?e:1)}),300);return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}}),[f,null===(q=null==f?void 0:f.current)||void 0===q?void 0:q.offsetWidth]),r.jsx(u.MainGalleryContainer,e.__assign({ref:P},{children:r.jsx(d.default,e.__assign({},n,{slidesToShow:v,ref:g,centerPadding:"80"},{children:y.map((function(i,t){var s,a=null==i?void 0:i.url,d=null!==(s=null==i?void 0:i.isVideo)&&void 0!==s&&s;return r.jsx("div",e.__assign({"data-testid":"main-gallery-div-content-".concat(t)},{children:d?r.jsx(l.Video,{source:a,thumbnail:null==i?void 0:i.thumbnailUrl},void 0):r.jsxs(r.Fragment,{children:[r.jsx(o.Image,{src:a,alt:i.alt,width:"".concat(312,"px"),loading:"eager"},void 0),r.jsx(u.TopTag,e.__assign({"data-testid":"topTag"},{children:b}),void 0),r.jsx(u.BottomTag,e.__assign({"data-testid":"bottomTag"},{children:p}),void 0),!!m&&r.jsx(u.TopRightTag,{children:m},void 0)]},void 0)}),i.key)}))}),void 0)}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@ant-design/react-slick"),t=require("react");require("../../../../PackSelectorV2/PackSelectoV2.js"),require("../../../../absorbency-level/AbsorbencyLevel.js"),require("../../../../accordion-options/AccordionOptions.js"),require("../../../../accordion/Accordion.js"),require("../../../../../types/enums.js"),require("../../../../../core/theme/Theme.js"),require("../../../../../utils/constants/offerAtCart.js");var s=require("../../../../../utils/debounce/index.js");require("../../../../../utils/media.js"),require("../../../../../utils/mock-content/CancellationFlowAccordion.js"),require("../../../../dropdown/variants/simple/SimpleDropdown.js"),require("../../../../atoms/PriceLabel/PriceLabel.js"),require("../../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../../atoms/Icon/Icon.js");var o=require("../../../../atoms/Image/Image.js");require("../../../../atoms/Toggle/toggle.styled.js"),require("../../../../radio/input/styles.js"),require("../../../../tooltip/Styled.js"),require("../../../../autoship/styled.js"),require("../../../../autoshipV2/styled.js"),require("../../../../before-after/BeforeAfter.js"),require("../../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../../pricing/discount/styled.js"),require("../../../../pricing/styles.js"),require("../../../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../../../shared/card/Card.js"),require("../../../../bundle/minimalistic/styled.js"),require("../../../../text/Text.js"),require("../../../../bundle/motivator/styled.js"),require("../../../../bundle/simple/Simple.js"),require("../../../../buynowpaylater/BuyNowPayLater.js"),require("../../../../offer-banner/OfferBanner.js"),require("../../../../cartProductItem/CloseIcon/CloseButton.js"),require("../../../../cartProductItem/Description/Description.js"),require("../../../../cartProductItem/Promo/Promo.js"),require("../../../../cartProductItem/Title/Title.js"),require("../../../../cartProductItem/TrashIcon/styled.js"),require("../../../../checkbox/Checkbox.js"),require("@emotion/react/jsx-runtime"),require("../../../../SkeletonBox/SkeletonBox.js"),require("../../../../club-price-label/ClubPriceLabel.js"),require("../../../../strength-bars/StrengthBars.js"),require("../../../../pricing/priceLabelV4/PriceLabelV4.js"),require("../../../../rating/starList/StarList.js"),require("../../../../rating/styles.js"),require("../../../../collection/product/mobile/styled.js"),require("../../../../collection/product/truekind/styled.js"),require("../../../../collection/grid/WithProductGrid.js"),require("../../../../color/ColorRadioGroup.js"),require("../../../../color/selector/PatternSelector.js"),require("../../../../color/styles/ColorPickerwithTootip.styled.js"),require("../../../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../../../cta/styled.js"),require("../../../../delivery-details/DeliveryDetails.js"),require("../../../../delivery-details/Note/Note.js"),require("../../../../drawer/Drawer.js"),require("../../../../dropdown-list-icons/Styled.js"),require("../../../../dropdown/size-dropdown/Styled.js"),require("../../../../dropdown/variants/dialog/DropdownDialog.js"),require("../../../../dropdown/base/BaseDropdown.js"),require("../../../../filtering/Accordion.js"),require("../../../../filtering/FiltersStyled.js"),require("../../../../filtering/Tags/Tags.js"),require("../../../../fit-guarantee/FitGuarantee.js"),require("../../../../fit/FitPredictor.js"),require("../../../../slider/ArrowButton.js"),require("../../../../slider/StyledSlider.js"),require("../../../../gallery/components/ImageSmallPreview/styled.js"),require("../../../../gallery/components/ImagePreviewList/styled.js");var l=require("../../../../molecules/Video/Video.js");require("../../../../gallery/components/ImageProductSlide/styled.js"),require("../../../../gallery/styled.js"),require("../../../../icon-button/IconButton.js"),require("../../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../../../iconsWithTitle/index.js"),require("../../../../image-card/ImageCard.js"),require("../../../../input/label/Label.js"),require("../../../../input/base/Error.js"),require("../../../../input/base/Styled.js"),require("../../../../input/custom/Custom.js"),require("../../../../input/basePlusButton/BasePlusButton.js"),require("../../../../input/basePlusIcon/BasePlusIcon.js"),require("../../../../modal/Modal.js"),require("../../../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../../../order-bar/OrderBar.js"),require("../../../../packs/selector/PackSelector.js"),require("../../../../pagination/styles.js"),require("../../../../payment-methods/PaymentMethod.js"),require("../../../../product/order/item/SimpleOrderItem.js"),require("../../../../progress-bar/ProgressBar.js"),require("../../../../quantityPicker/QuantityPicker.js"),require("../../../../radio/RadioPrimary/radioPrimary.js"),require("../../../../radio/clubRadioInput/clubRadio.js"),require("../../../../review-detail/ReviewDetail.js"),require("../../../../review/Review.js"),require("../../../../reviews-header/ReviewsHeader.js"),require("../../../../scroll-to-top/ScrollToTop.js"),require("../../../../search-bar/components/ClearButton/styled.js"),require("../../../../search-bar/components/Footer/styled.js"),require("../../../../search-bar/components/ProductItem/styled.js"),require("../../../../search-bar/components/ResultsPanel/styled.js"),require("../../../../search-bar/components/SearchControl/styled.js"),require("../../../../search-bar/styled.js"),require("../../../../search-navigation/styled.js"),require("react-dom"),require("../../../../short-banner/ShortBanner.js"),require("../../../../size-chart/styled.js"),require("../../../../size-table/SizeTable.js"),require("../../../../size/guide/SizeFitGuide.js"),require("../../../../size/selector/styled.js"),require("../../../../tabs/Tab.js"),require("../../../../tabs/Tabs.js"),require("../../../../tag/Tag.js"),require("@emotion/react"),require("../../../../textWithImage/index.js"),require("../../../../timer/styled.js"),require("../../../../toast/Toast.js"),require("../../../../totals/total/styled.js"),require("../../../../totals/subtotal/Subtotal.js"),require("../../../../tracking-progress-v2/TrackingProgressV2.js"),require("../../../../tracking-progress/TrackingProgress.js"),require("../../../AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../../../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../../../AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../../../BasicAccordion/BasicAccordion.js"),require("../../../CartItemCard/CartItem.js"),require("../../../ClubOfferSelector/styled.js"),require("../../../ClubOfferSelector2/styled.js"),require("../../../JoinClubCard/joinClubCard.js"),require("../../../OfferAtCart/styled.js"),require("../../../OfferAtCartV2/styled.js"),require("../../../OfferAtCartV3/styled.js"),require("../../../OfferAtCartV4/styled.js"),require("../../../OfferAtPDP/styled.js"),require("../../../OfferAtPDP/types.js"),require("../../../ProductCard/ProductCardV1/ProductCard.js"),require("../../../ProductCard/ProductCardV2/styled.js"),require("../../../ProductCard/ProductCardV3/styled.js"),require("../../ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../../ProductGalleryMobileV2/ProductGalleryMobileV2.js"),require("../../ProductGalleryMobileV3/ProductGalleryMobileV3.js"),require("../../ProductGalleryMobileV4/ContentGallery/styled.js"),require("react-inner-image-zoom"),require("../../ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js"),require("../../ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js"),require("../../ProductGalleryMobileV4/GalleryDetailed/styled.js"),require("../../ProductGalleryMobileV5/styled.js"),require("../ColorVariantsGallery/styled.js");var u=require("./styled.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../styled.js"),require("../../../SizeCharTable/SizeChartTableV2/styled.js"),require("../../../SizeCharTable/SizeChartTableV3/styled.js"),require("../../../../molecules/ArrowTip/ArrowTip.styled.js"),require("../../../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js"),require("../../../SubscriptionPlanSelector/styled.js"),require("../../../TwoCtasAtCart/Greeting.styled.js"),require("../../../TwoCtasAtCart/Card.styled.js"),require("../../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../../../molecules/CouponCard/styled.js"),require("../../../../molecules/BenefitsList/styled.js"),require("../../../../molecules/HurryUp/styled.js"),require("../../../../molecules/Spinner/styled.js"),require("../../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js"),require("../../../../molecules/LikeButton/styled.js"),require("../../../../molecules/ScarcityTag/ScarcityTag.styled.js");var d=a(i),n={dots:!1,infinite:!1,speed:200,slidesToScroll:1,initialSlide:0},c=function(e){if(!(null==e?void 0:e.current))return 1.1;return(e.current.offsetWidth-15)/312-1e-4};exports.MainGallery=function(i){var a,j,q,y=i.contents,b=i.topTag,m=i.topRightTag,p=i.bottomTag,f=i.containerRef,g=t.useRef(null),P=t.useRef(null),C=t.useState(null!==(a=c(f))&&void 0!==a?a:1),v=C[0],h=C[1],T=null===(j=null==y?void 0:y[0])||void 0===j?void 0:j.key;return t.useEffect((function(){var e;null===(e=g.current)||void 0===e||e.slickGoTo(0,!0)}),[T]),t.useLayoutEffect((function(){if(null==f?void 0:f.current){var e=s.debounce((function(){var e;h(null!==(e=c(f))&&void 0!==e?e:1)}),300);return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}}),[f,null===(q=null==f?void 0:f.current)||void 0===q?void 0:q.offsetWidth]),r.jsx(u.MainGalleryContainer,e.__assign({ref:P},{children:r.jsx(d.default,e.__assign({},n,{slidesToShow:v,ref:g,centerPadding:"80"},{children:y.map((function(i,t){var s,a=null==i?void 0:i.url,d=null!==(s=null==i?void 0:i.isVideo)&&void 0!==s&&s;return r.jsx("div",e.__assign({"data-testid":"main-gallery-div-content-".concat(t)},{children:d?r.jsx(l.Video,{source:a,thumbnail:null==i?void 0:i.thumbnailUrl},void 0):r.jsxs(r.Fragment,{children:[r.jsx(o.Image,{src:a,alt:i.alt,width:"".concat(312,"px"),loading:"eager"},void 0),r.jsx(u.TopTag,e.__assign({"data-testid":"topTag"},{children:b}),void 0),r.jsx(u.BottomTag,e.__assign({"data-testid":"bottomTag"},{children:p}),void 0),!!m&&r.jsx(u.TopRightTag,{children:m},void 0)]},void 0)}),i.key)}))}),void 0)}),void 0)};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("react"),s=require("../../../types/enums.js");require("../../../utils/constants/offerAtCart.js");var t=require("../../../utils/decimalParser/decimalParser.js");require("../../../utils/media.js"),require("../../../utils/mock-content/CancellationFlowAccordion.js");var o=require("../../text/Text.js"),l=require("../../icons/index.js"),n=require("../../radio/input/radio.js"),a=require("../../tooltip/Tooltip.js");require("../../PackSelectorV2/PackSelectoV2.js"),require("../../absorbency-level/AbsorbencyLevel.js"),require("../../accordion-options/AccordionOptions.js"),require("../../accordion/Accordion.js"),require("../../../core/theme/Theme.js"),require("../../dropdown/variants/simple/SimpleDropdown.js"),require("../../autoship/styled.js"),require("../../autoshipV2/styled.js"),require("../../before-after/BeforeAfter.js"),require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/DiscountTag.js"),require("../../pricing/styles.js"),require("../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../shared/card/Card.js"),require("../../bundle/minimalistic/styled.js"),require("../../bundle/motivator/styled.js"),require("../../bundle/simple/Simple.js"),require("../../buynowpaylater/BuyNowPayLater.js"),require("../../offer-banner/OfferBanner.js"),require("../../cartProductItem/CloseIcon/CloseButton.js"),require("../../cartProductItem/Description/Description.js"),require("../../cartProductItem/Promo/Promo.js"),require("../../cartProductItem/Title/Title.js"),require("../../cartProductItem/TrashIcon/styled.js"),require("../../checkbox/Checkbox.js"),require("@emotion/react/jsx-runtime"),require("../../SkeletonBox/SkeletonBox.js"),require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../atoms/Icon/Icon.js"),require("../../atoms/Image/styled.js"),require("../../atoms/Toggle/toggle.styled.js"),require("../../club-price-label/ClubPriceLabel.js"),require("../../strength-bars/StrengthBars.js"),require("../../pricing/priceLabelV4/PriceLabelV4.js"),require("../../rating/starList/StarList.js"),require("../../rating/styles.js"),require("../../collection/product/mobile/styled.js"),require("../../collection/product/truekind/ProductItemTK.js"),require("../../collection/grid/WithProductGrid.js"),require("../../color/ColorRadioGroup.js"),require("../../color/selector/PatternSelector.js"),require("../../color/styles/ColorPickerwithTootip.styled.js"),require("../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../cta/styled.js"),require("../../delivery-details/DeliveryDetails.js"),require("../../delivery-details/Note/Note.js"),require("../../drawer/Drawer.js"),require("../../dropdown-list-icons/Styled.js"),require("../../dropdown/size-dropdown/Styled.js"),require("../../dropdown/variants/dialog/DropdownDialog.js"),require("../../dropdown/base/BaseDropdown.js"),require("../../filtering/Accordion.js"),require("../../filtering/FiltersStyled.js"),require("../../filtering/Tags/Tags.js"),require("../../fit-guarantee/FitGuarantee.js"),require("../../fit/FitPredictor.js"),require("../../slider/ArrowButton.js"),require("../../slider/StyledSlider.js"),require("../../gallery/components/ImageSmallPreview/styled.js"),require("../../gallery/components/ImagePreviewList/styled.js"),require("../../molecules/Video/components/styled.js"),require("../../molecules/Video/styled.js"),require("../../gallery/components/ImageProductSlide/styled.js"),require("../../gallery/styled.js"),require("../../icon-button/IconButton.js"),require("../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../iconsWithTitle/index.js"),require("../../image-card/ImageCard.js"),require("../../input/label/Label.js"),require("../../input/base/Error.js"),require("../../input/base/Styled.js"),require("../../input/custom/Custom.js"),require("../../input/basePlusButton/BasePlusButton.js"),require("../../input/basePlusIcon/BasePlusIcon.js"),require("../../modal/Modal.js"),require("../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../order-bar/OrderBar.js"),require("../../packs/selector/PackSelector.js"),require("../../pagination/styles.js"),require("../../payment-methods/PaymentMethod.js"),require("../../product/order/item/SimpleOrderItem.js"),require("../../progress-bar/ProgressBar.js"),require("../../quantityPicker/QuantityPicker.js"),require("../../radio/RadioPrimary/radioPrimary.js"),require("../../radio/clubRadioInput/clubRadio.js"),require("../../review-detail/ReviewDetail.js"),require("../../review/Review.js"),require("../../reviews-header/ReviewsHeader.js"),require("../../scroll-to-top/ScrollToTop.js"),require("../../search-bar/components/ClearButton/styled.js"),require("../../search-bar/components/Footer/styled.js"),require("../../search-bar/components/ProductItem/styled.js"),require("../../search-bar/components/ResultsPanel/styled.js"),require("../../search-bar/components/SearchControl/styled.js"),require("../../search-bar/styled.js"),require("../../search-navigation/styled.js"),require("react-dom"),require("../../short-banner/ShortBanner.js"),require("../../size-chart/styled.js"),require("../../size-table/SizeTable.js"),require("../../size/guide/SizeFitGuide.js"),require("../../size/selector/styled.js"),require("../../tabs/Tab.js"),require("../../tabs/Tabs.js"),require("../../tag/Tag.js"),require("@emotion/react"),require("../../textWithImage/index.js"),require("../../timer/styled.js"),require("../../toast/Toast.js"),require("../../totals/total/styled.js"),require("../../totals/subtotal/Subtotal.js"),require("../../tracking-progress-v2/TrackingProgressV2.js"),require("../../tracking-progress/TrackingProgress.js"),require("../AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../BasicAccordion/BasicAccordion.js"),require("../CartItemCard/CartItem.js"),require("../ClubOfferSelector/styled.js"),require("../ClubOfferSelector2/styled.js"),require("../JoinClubCard/joinClubCard.js"),require("../OfferAtCart/styled.js"),require("../OfferAtCartV2/styled.js"),require("../OfferAtCartV3/styled.js"),require("../OfferAtCartV4/styled.js"),require("../OfferAtPDP/styled.js"),require("../OfferAtPDP/types.js"),require("../ProductCard/ProductCardV1/ProductCard.js"),require("../ProductCard/ProductCardV2/styled.js"),require("../ProductCard/ProductCardV3/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js"),require("../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js"),require("@ant-design/react-slick"),require("../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js"),require("react-inner-image-zoom"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV5/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/styled.js"),require("../SizeCharTable/SizeChartTableV2/styled.js"),require("../SizeCharTable/SizeChartTableV3/styled.js"),require("../../molecules/ArrowTip/ArrowTip.styled.js"),require("../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js");var u=require("./styled.js");require("../TwoCtasAtCart/Greeting.styled.js"),require("../TwoCtasAtCart/Card.styled.js"),require("../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../molecules/CouponCard/styled.js");var c=require("../../molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js"),d=require("../../molecules/BenefitsList/BenefitsList.js");require("../../molecules/HurryUp/styled.js"),require("../../molecules/Spinner/styled.js"),require("../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js"),require("../../molecules/LikeButton/styled.js"),require("../../molecules/ScarcityTag/ScarcityTag.styled.js");exports.SubscriptionPlanSelector=function(b){var j=b.children,q=b.benefits,p=b.tooltip,m=b.pricing,y=b.frequency,g=b.onChange,h=b.className,P=b.discountTagClassName,f=b.closeIcon,C=b.currencySymbol,T=b.discountLabel,_=b.radios,v=b.termsAndConditions,S=i.useState({oneTime:_.oneTime,subscription:_.subscription}),k=S[0],x=S[1];i.useEffect((function(){x((function(r){return e.__assign(e.__assign({},r),{oneTime:e.__assign(e.__assign({},r.oneTime),{checked:!r.oneTime.disabled&&r.oneTime.checked}),subscription:e.__assign(e.__assign({},r.subscription),{checked:!r.subscription.disabled&&r.subscription.checked})})}))}),[k.oneTime.disabled,k.subscription.disabled]);var V=i.useState(null==y?void 0:y.values[0]),A=V[0],M=V[1],I=m.listPrice,w=m.discountedPrice,G=m.subscriptionDiscountPercentage,B=Number((w-w*(G/100)).toFixed(2)),L=Math.floor(I-B),z=L/I*100,O=5*Math.round(z/5),D=i.useCallback((function(){return k.subscription.checked?Number((w-w*(G/100)).toFixed(2)):w}),[w,k.subscription.checked,G]),F=i.useMemo((function(){return{subscriptionPeriod:A,withSubscription:k.subscription.checked,originalPrice:I,discountedPrice:D()}}),[A,k.subscription.checked,I,D]);i.useEffect((function(){F&&g(F)}),[F,g]);var N=function(r){var i;"subscription"===(i=r)&&k.subscription.disabled||"oneTime"===i&&k.oneTime.disabled||(x((function(i){return e.__assign(e.__assign({},i),{oneTime:e.__assign(e.__assign({},i.oneTime),{checked:"oneTime"===r}),subscription:e.__assign(e.__assign({},i.subscription),{checked:"subscription"===r})})})),"oneTime"===r?M(void 0):"subscription"===r&&y&&M(y.values[0]))};return r.jsxs(u.Container,e.__assign({className:h},{children:[r.jsxs(u.SubscriptionContainer,e.__assign({highlighted:k.subscription.checked,onClick:function(){return N("subscription")},"data-testid":"subscription-purchase-block",disabled:k.subscription.disabled},{children:[r.jsx(u.DiscountTag,e.__assign({className:P,selected:k.subscription.checked},{children:null!=T?T:"".concat(O,"% OFF - SAVE ").concat(C).concat(L.toFixed(2))}),void 0),r.jsxs(u.SubscriptionHeader,e.__assign({showBorder:k.subscription.checked},{children:[r.jsxs(u.FlexContainer,e.__assign({"data-testid":"subscription-block",onClick:function(){return N("subscription")}},{children:[r.jsx(n.RadioInput,{label:_.subscription.label,icon:_.subscription.icon,name:"subscription",id:"subscription",value:"subscription",size:s.ComponentSize.Medium,style:{marginRight:"10px"},useV2Style:!0,onChange:function(){x((function(r){return{subscription:e.__assign(e.__assign({},r.subscription),{checked:!0}),oneTime:e.__assign(e.__assign({},r.oneTime),{checked:!1})}}))},checked:!k.subscription.disabled&&k.subscription.checked,disabled:k.subscription.disabled},void 0),p&&r.jsx(u.TooltipWrapper,{children:r.jsx(a.Tooltip,e.__assign({position:0,content:p.content,header:p.header,maxWidth:"248px",showCloseIcon:f,closeBtnSize:.7},{children:r.jsx(l.Icon.Actions.CircleQuestion,{width:1},void 0)}),void 0)},void 0)]}),void 0),r.jsx(u.StyledPrice,{testId:"subscription",finalPrice:"$".concat(t.decimalFormat(Number(B))),disabled:k.subscription.disabled,highlighted:!k.subscription.disabled&&k.subscription.highlighted,size:s.ComponentSize.Large,originalPrice:"$".concat(t.decimalFormat(Number(I)))},void 0)]}),void 0),k.subscription.checked&&r.jsxs(r.Fragment,{children:[r.jsx(u.BenefitsContainer,e.__assign({disabled:k.subscription.disabled},{children:function(){var s=k.subscription.disabled;if(j){var t=s?{opacity:.5,pointerEvents:"none"}:{};return i.Children.map(j,(function(r){return i.isValidElement(r)?i.cloneElement(r,{style:e.__assign(e.__assign({},r.props.style),t)}):r}))}return q?r.jsx(d.BenefitsList,{benefits:q,disabled:s},void 0):null}()}),void 0),v&&r.jsx(o.Text,e.__assign({variant:"link",underline:!0,href:v.url,size:"regular",target:"_blank"},{children:v.text}),void 0),(null==y?void 0:y.showFrequencyText)&&r.jsx(c.AutoshipFrequencyDropdown,{frequency:y,onChange:function(e){M(k.subscription.checked?e.value:void 0)}},void 0)]},void 0)]}),void 0),r.jsxs(u.SinglePurchaseContainer,e.__assign({"data-testid":"single-purchase-block",highlighted:k.oneTime.checked,disabled:k.oneTime.disabled,onClick:function(){return N("oneTime")}},{children:[r.jsx(n.RadioInput,{label:_.oneTime.label,icon:_.oneTime.icon,name:"oneTime",id:"oneTime",value:"oneTime",size:s.ComponentSize.Medium,onChange:function(){x((function(r){return{subscription:e.__assign(e.__assign({},r.subscription),{checked:!1}),oneTime:e.__assign(e.__assign({},r.oneTime),{checked:!0})}}))},useV2Style:!0,checked:!k.oneTime.disabled&&k.oneTime.checked,disabled:k.oneTime.disabled},void 0),r.jsx(u.StyledPrice,{testId:"single-purchase",finalPrice:"$".concat(t.decimalFormat(Number(w))),disabled:k.oneTime.disabled,highlighted:!k.oneTime.disabled&&k.oneTime.highlighted,size:s.ComponentSize.Large,originalPrice:"$".concat(t.decimalFormat(Number(I)))},void 0)]}),void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("react"),s=require("../../../types/enums.js");require("../../../utils/constants/offerAtCart.js");var t=require("../../../utils/decimalParser/decimalParser.js");require("../../../utils/media.js"),require("../../../utils/mock-content/CancellationFlowAccordion.js");var o=require("../../text/Text.js"),l=require("../../icons/index.js"),n=require("../../radio/input/radio.js"),a=require("../../tooltip/Tooltip.js");require("../../PackSelectorV2/PackSelectoV2.js"),require("../../absorbency-level/AbsorbencyLevel.js"),require("../../accordion-options/AccordionOptions.js"),require("../../accordion/Accordion.js"),require("../../../core/theme/Theme.js"),require("../../dropdown/variants/simple/SimpleDropdown.js"),require("../../autoship/styled.js"),require("../../autoshipV2/styled.js"),require("../../before-after/BeforeAfter.js"),require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/styled.js"),require("../../pricing/styles.js"),require("../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../shared/card/Card.js"),require("../../bundle/minimalistic/styled.js"),require("../../bundle/motivator/styled.js"),require("../../bundle/simple/Simple.js"),require("../../buynowpaylater/BuyNowPayLater.js"),require("../../offer-banner/OfferBanner.js"),require("../../cartProductItem/CloseIcon/CloseButton.js"),require("../../cartProductItem/Description/Description.js"),require("../../cartProductItem/Promo/Promo.js"),require("../../cartProductItem/Title/Title.js"),require("../../cartProductItem/TrashIcon/styled.js"),require("../../checkbox/Checkbox.js"),require("@emotion/react/jsx-runtime"),require("../../SkeletonBox/SkeletonBox.js"),require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../atoms/Icon/Icon.js"),require("../../atoms/Image/styled.js"),require("../../atoms/Toggle/toggle.styled.js"),require("../../club-price-label/ClubPriceLabel.js"),require("../../strength-bars/StrengthBars.js"),require("../../pricing/priceLabelV4/PriceLabelV4.js"),require("../../rating/starList/StarList.js"),require("../../rating/styles.js"),require("../../collection/product/mobile/styled.js"),require("../../collection/product/truekind/styled.js"),require("../../collection/grid/WithProductGrid.js"),require("../../color/ColorRadioGroup.js"),require("../../color/selector/PatternSelector.js"),require("../../color/styles/ColorPickerwithTootip.styled.js"),require("../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../cta/styled.js"),require("../../delivery-details/DeliveryDetails.js"),require("../../delivery-details/Note/Note.js"),require("../../drawer/Drawer.js"),require("../../dropdown-list-icons/Styled.js"),require("../../dropdown/size-dropdown/Styled.js"),require("../../dropdown/variants/dialog/DropdownDialog.js"),require("../../dropdown/base/BaseDropdown.js"),require("../../filtering/Accordion.js"),require("../../filtering/FiltersStyled.js"),require("../../filtering/Tags/Tags.js"),require("../../fit-guarantee/FitGuarantee.js"),require("../../fit/FitPredictor.js"),require("../../slider/ArrowButton.js"),require("../../slider/StyledSlider.js"),require("../../gallery/components/ImageSmallPreview/styled.js"),require("../../gallery/components/ImagePreviewList/styled.js"),require("../../molecules/Video/components/styled.js"),require("../../molecules/Video/styled.js"),require("../../gallery/components/ImageProductSlide/styled.js"),require("../../gallery/styled.js"),require("../../icon-button/IconButton.js"),require("../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../iconsWithTitle/index.js"),require("../../image-card/ImageCard.js"),require("../../input/label/Label.js"),require("../../input/base/Error.js"),require("../../input/base/Styled.js"),require("../../input/custom/Custom.js"),require("../../input/basePlusButton/BasePlusButton.js"),require("../../input/basePlusIcon/BasePlusIcon.js"),require("../../modal/Modal.js"),require("../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../order-bar/OrderBar.js"),require("../../packs/selector/PackSelector.js"),require("../../pagination/styles.js"),require("../../payment-methods/PaymentMethod.js"),require("../../product/order/item/SimpleOrderItem.js"),require("../../progress-bar/ProgressBar.js"),require("../../quantityPicker/QuantityPicker.js"),require("../../radio/RadioPrimary/radioPrimary.js"),require("../../radio/clubRadioInput/clubRadio.js"),require("../../review-detail/ReviewDetail.js"),require("../../review/Review.js"),require("../../reviews-header/ReviewsHeader.js"),require("../../scroll-to-top/ScrollToTop.js"),require("../../search-bar/components/ClearButton/styled.js"),require("../../search-bar/components/Footer/styled.js"),require("../../search-bar/components/ProductItem/styled.js"),require("../../search-bar/components/ResultsPanel/styled.js"),require("../../search-bar/components/SearchControl/styled.js"),require("../../search-bar/styled.js"),require("../../search-navigation/styled.js"),require("react-dom"),require("../../short-banner/ShortBanner.js"),require("../../size-chart/styled.js"),require("../../size-table/SizeTable.js"),require("../../size/guide/SizeFitGuide.js"),require("../../size/selector/styled.js"),require("../../tabs/Tab.js"),require("../../tabs/Tabs.js"),require("../../tag/Tag.js"),require("@emotion/react"),require("../../textWithImage/index.js"),require("../../timer/styled.js"),require("../../toast/Toast.js"),require("../../totals/total/styled.js"),require("../../totals/subtotal/Subtotal.js"),require("../../tracking-progress-v2/TrackingProgressV2.js"),require("../../tracking-progress/TrackingProgress.js"),require("../AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../BasicAccordion/BasicAccordion.js"),require("../CartItemCard/CartItem.js"),require("../ClubOfferSelector/styled.js"),require("../ClubOfferSelector2/styled.js"),require("../JoinClubCard/joinClubCard.js"),require("../OfferAtCart/styled.js"),require("../OfferAtCartV2/styled.js"),require("../OfferAtCartV3/styled.js"),require("../OfferAtCartV4/styled.js"),require("../OfferAtPDP/styled.js"),require("../OfferAtPDP/types.js"),require("../ProductCard/ProductCardV1/ProductCard.js"),require("../ProductCard/ProductCardV2/styled.js"),require("../ProductCard/ProductCardV3/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js"),require("../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js"),require("@ant-design/react-slick"),require("../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js"),require("react-inner-image-zoom"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV5/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/styled.js"),require("../SizeCharTable/SizeChartTableV2/styled.js"),require("../SizeCharTable/SizeChartTableV3/styled.js"),require("../../molecules/ArrowTip/ArrowTip.styled.js"),require("../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js");var u=require("./styled.js");require("../TwoCtasAtCart/Greeting.styled.js"),require("../TwoCtasAtCart/Card.styled.js"),require("../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../molecules/CouponCard/styled.js");var c=require("../../molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js"),d=require("../../molecules/BenefitsList/BenefitsList.js");require("../../molecules/HurryUp/styled.js"),require("../../molecules/Spinner/styled.js"),require("../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js"),require("../../molecules/LikeButton/styled.js"),require("../../molecules/ScarcityTag/ScarcityTag.styled.js");exports.SubscriptionPlanSelector=function(b){var j=b.children,q=b.benefits,p=b.tooltip,m=b.pricing,y=b.frequency,g=b.onChange,h=b.className,P=b.discountTagClassName,f=b.closeIcon,C=b.currencySymbol,T=b.discountLabel,_=b.radios,v=b.termsAndConditions,S=i.useState({oneTime:_.oneTime,subscription:_.subscription}),k=S[0],x=S[1];i.useEffect((function(){x((function(r){return e.__assign(e.__assign({},r),{oneTime:e.__assign(e.__assign({},r.oneTime),{checked:!r.oneTime.disabled&&r.oneTime.checked}),subscription:e.__assign(e.__assign({},r.subscription),{checked:!r.subscription.disabled&&r.subscription.checked})})}))}),[k.oneTime.disabled,k.subscription.disabled]);var V=i.useState(null==y?void 0:y.values[0]),A=V[0],M=V[1],w=m.listPrice,G=m.discountedPrice,I=m.subscriptionDiscountPercentage,B=Number((G-G*(I/100)).toFixed(2)),L=Math.floor(w-B),z=L/w*100,O=5*Math.round(z/5),D=i.useCallback((function(){return k.subscription.checked?Number((G-G*(I/100)).toFixed(2)):G}),[G,k.subscription.checked,I]),F=i.useMemo((function(){return{subscriptionPeriod:A,withSubscription:k.subscription.checked,originalPrice:w,discountedPrice:D()}}),[A,k.subscription.checked,w,D]);i.useEffect((function(){F&&g(F)}),[F,g]);var N=function(r){var i;"subscription"===(i=r)&&k.subscription.disabled||"oneTime"===i&&k.oneTime.disabled||(x((function(i){return e.__assign(e.__assign({},i),{oneTime:e.__assign(e.__assign({},i.oneTime),{checked:"oneTime"===r}),subscription:e.__assign(e.__assign({},i.subscription),{checked:"subscription"===r})})})),"oneTime"===r?M(void 0):"subscription"===r&&y&&M(y.values[0]))};return r.jsxs(u.Container,e.__assign({className:h},{children:[r.jsxs(u.SubscriptionContainer,e.__assign({highlighted:k.subscription.checked,onClick:function(){return N("subscription")},"data-testid":"subscription-purchase-block",disabled:k.subscription.disabled},{children:[r.jsx(u.DiscountTag,e.__assign({className:P,selected:k.subscription.checked},{children:null!=T?T:"".concat(O,"% OFF - SAVE ").concat(C).concat(L.toFixed(2))}),void 0),r.jsxs(u.SubscriptionHeader,e.__assign({showBorder:k.subscription.checked},{children:[r.jsxs(u.FlexContainer,e.__assign({"data-testid":"subscription-block",onClick:function(){return N("subscription")}},{children:[r.jsx(n.RadioInput,{label:_.subscription.label,icon:_.subscription.icon,name:"subscription",id:"subscription",value:"subscription",size:s.ComponentSize.Medium,style:{marginRight:"10px"},useV2Style:!0,onChange:function(){x((function(r){return{subscription:e.__assign(e.__assign({},r.subscription),{checked:!0}),oneTime:e.__assign(e.__assign({},r.oneTime),{checked:!1})}}))},checked:!k.subscription.disabled&&k.subscription.checked,disabled:k.subscription.disabled},void 0),p&&r.jsx(u.TooltipWrapper,{children:r.jsx(a.Tooltip,e.__assign({position:0,content:p.content,header:p.header,maxWidth:"248px",showCloseIcon:f,closeBtnSize:.7},{children:r.jsx(l.Icon.Actions.CircleQuestion,{width:1},void 0)}),void 0)},void 0)]}),void 0),r.jsx(u.StyledPrice,{testId:"subscription",finalPrice:"$".concat(t.decimalFormat(Number(B))),disabled:k.subscription.disabled,highlighted:!k.subscription.disabled&&k.subscription.highlighted,size:s.ComponentSize.Large,originalPrice:"$".concat(t.decimalFormat(Number(w)))},void 0)]}),void 0),k.subscription.checked&&r.jsxs(r.Fragment,{children:[r.jsx(u.BenefitsContainer,e.__assign({disabled:k.subscription.disabled},{children:function(){var s=k.subscription.disabled;if(j){var t=s?{opacity:.5,pointerEvents:"none"}:{};return i.Children.map(j,(function(r){return i.isValidElement(r)?i.cloneElement(r,{style:e.__assign(e.__assign({},r.props.style),t)}):r}))}return q?r.jsx(d.BenefitsList,{benefits:q,disabled:s},void 0):null}()}),void 0),v&&r.jsx(o.Text,e.__assign({variant:"link",underline:!0,href:v.url,size:"regular",target:"_blank"},{children:v.text}),void 0),(null==y?void 0:y.showFrequencyText)&&r.jsx(c.AutoshipFrequencyDropdown,{frequency:y,onChange:function(e){M(k.subscription.checked?e.value:void 0)}},void 0)]},void 0)]}),void 0),r.jsxs(u.SinglePurchaseContainer,e.__assign({"data-testid":"single-purchase-block",highlighted:k.oneTime.checked,disabled:k.oneTime.disabled,onClick:function(){return N("oneTime")}},{children:[r.jsx(n.RadioInput,{label:_.oneTime.label,icon:_.oneTime.icon,name:"oneTime",id:"oneTime",value:"oneTime",size:s.ComponentSize.Medium,onChange:function(){x((function(r){return{subscription:e.__assign(e.__assign({},r.subscription),{checked:!1}),oneTime:e.__assign(e.__assign({},r.oneTime),{checked:!0})}}))},useV2Style:!0,checked:!k.oneTime.disabled&&k.oneTime.checked,disabled:k.oneTime.disabled},void 0),r.jsx(u.StyledPrice,{testId:"single-purchase",finalPrice:"$".concat(t.decimalFormat(Number(G))),disabled:k.oneTime.disabled,highlighted:!k.oneTime.disabled&&k.oneTime.highlighted,size:s.ComponentSize.Large,originalPrice:"$".concat(t.decimalFormat(Number(w)))},void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=SubscriptionPlanSelector.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("@emotion/styled");require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/DiscountTag.js"),require("react/jsx-runtime"),require("../../../core/theme/Theme.js"),require("react"),require("../../../types/enums.js"),require("../../pricing/styles.js");var r=require("../../pricing/priceLabelV2/PriceLabelV2.js");function o(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js");var t,i,a,c,p,l,d,s,u,b,m=o(e),f=m.default.div(t||(t=n.__makeTemplateObject(["\n display: flex;\n\n ","\n"],["\n display: flex;\n\n ","\n"])),(function(n){return"TheSpaDr"===n.theme.name&&"\n [data-testid='subscription-frequency'] {\n border: 0;\n padding-left: 0 !important;\n padding-right: 32px !important;\n }\n\n [role='listbox']{\n margin-left: -20px;\n }\n "})),x=m.default.div(i||(i=n.__makeTemplateObject(["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ",";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ",";\n"],["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ",";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ",";\n"])),(function(n){var e=n.theme;return n.selected?e.component.autoship.discountTag.backgroundColor:e.colors.shades[350].color}),(function(n){var e=n.theme;return"".concat(e.component.autoship.discountTag.borderRadius," \n ").concat(e.component.autoship.discountTag.borderRadius," 0 0")})),g=m.default.div(a||(a=n.__makeTemplateObject(["\n border-radius: 8px;\n\n border: ",";\n\n ","\n\n & input:checked + div {\n border-color: ",";\n }\n\n & label {\n cursor: pointer;\n }\n"],["\n border-radius: 8px;\n\n border: ",";\n\n ","\n\n & input:checked + div {\n border-color: ",";\n }\n\n & label {\n cursor: pointer;\n }\n"])),(function(n){var e=n.disabled,r=n.highlighted,o=n.theme;return e?"1px solid ".concat(o.colors.shades[200].color):r?function(n){var e=n.name,r=n.colors;return"TheSpaDr"===e?"2px solid ".concat(r.pallete.primary.color):"1.5px solid ".concat(r.shades[700].color)}(o):"1.5px solid ".concat(o.colors.shades[150].color)}),(function(n){return n.disabled?"":"& label {\n font-weight: 700;\n }"}),(function(n){return n.theme.colors.pallete.primary.color})),h=m.default(g)(c||(c=n.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding: 16px;\n\n ","\n"],["\n display: flex;\n justify-content: space-between;\n padding: 16px;\n\n ","\n"])),(function(n){return n.onClick?"cursor: pointer;":""})),v=m.default(g)(p||(p=n.__makeTemplateObject(["\n padding: 16px;\n margin-bottom: 8px;\n position: relative;\n"],["\n padding: 16px;\n margin-bottom: 8px;\n position: relative;\n"]))),j=m.default.div(l||(l=n.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding-bottom: ",";\n margin-bottom: ",";\n cursor: pointer;\n border-bottom: ",";\n\n & input:checked + div {\n border-color: ",";\n }\n"],["\n display: flex;\n justify-content: space-between;\n padding-bottom: ",";\n margin-bottom: ",";\n cursor: pointer;\n border-bottom: ",";\n\n & input:checked + div {\n border-color: ",";\n }\n"])),(function(n){var e=n.showBorder;return void 0===e||e?"10px":""}),(function(n){var e=n.showBorder;return void 0===e||e?"8px":"0"}),(function(n){var e=n.showBorder,r=void 0===e||e,o=n.theme;return r?"1px solid ".concat(o.colors.shades[200].color):"none"}),(function(n){return n.theme.colors.pallete.primary.color})),_=m.default.div(d||(d=n.__makeTemplateObject(["\n margin-bottom: 5px;\n\n p {\n color: ",";\n }\n"],["\n margin-bottom: 5px;\n\n p {\n color: ",";\n }\n"])),(function(n){return n.disabled?"var(--colors-shades-250-color)":"inherit"})),y=m.default(r.PriceLabelV2)(s||(s=n.__makeTemplateObject(["\n div p {\n color: ",";\n }\n"],["\n div p {\n color: ",";\n }\n"])),(function(n){var e=n.disabled,r=n.highlighted,o=n.theme.colors,t=o.shades,i=o.semantic;return e?t[250].color:r?i.urgent.color:t[700].color})),T=m.default.div(u||(u=n.__makeTemplateObject(["\n margin-top: 20px;\n"],["\n margin-top: 20px;\n"]))),k=m.default.div(b||(b=n.__makeTemplateObject(["\n margin: ",";\n"],["\n margin: ",";\n"])),(function(n){return n.theme.component.autoship.tooltip.margin}));exports.BenefitsContainer=_,exports.Container=T,exports.ContainerBase=g,exports.DiscountTag=x,exports.FlexContainer=f,exports.SinglePurchaseContainer=h,exports.StyledPrice=y,exports.SubscriptionContainer=v,exports.SubscriptionHeader=j,exports.TooltipWrapper=k;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("@emotion/styled");require("../../pricing/clubOffer/ClubOfferTag.js"),require("react/jsx-runtime"),require("../../../core/theme/Theme.js"),require("../../../types/enums.js"),require("../../pricing/discount/styled.js"),require("react"),require("../../pricing/styles.js");var r=require("../../pricing/priceLabelV2/PriceLabelV2.js");function o(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js");var t,i,a,c,p,l,d,s,u,b,m=o(e),f=m.default.div(t||(t=n.__makeTemplateObject(["\n display: flex;\n\n ","\n"],["\n display: flex;\n\n ","\n"])),(function(n){return"TheSpaDr"===n.theme.name&&"\n [data-testid='subscription-frequency'] {\n border: 0;\n padding-left: 0 !important;\n padding-right: 32px !important;\n }\n\n [role='listbox']{\n margin-left: -20px;\n }\n "})),x=m.default.div(i||(i=n.__makeTemplateObject(["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ",";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ",";\n"],["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ",";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ",";\n"])),(function(n){var e=n.theme;return n.selected?e.component.autoship.discountTag.backgroundColor:e.colors.shades[350].color}),(function(n){var e=n.theme;return"".concat(e.component.autoship.discountTag.borderRadius," \n ").concat(e.component.autoship.discountTag.borderRadius," 0 0")})),h=m.default.div(a||(a=n.__makeTemplateObject(["\n border-radius: 8px;\n\n border: ",";\n\n ","\n\n & input:checked + div {\n border-color: ",";\n }\n\n & label {\n cursor: pointer;\n }\n"],["\n border-radius: 8px;\n\n border: ",";\n\n ","\n\n & input:checked + div {\n border-color: ",";\n }\n\n & label {\n cursor: pointer;\n }\n"])),(function(n){var e=n.disabled,r=n.highlighted,o=n.theme;return e?"1px solid ".concat(o.colors.shades[200].color):r?function(n){var e=n.name,r=n.colors;return"TheSpaDr"===e?"2px solid ".concat(r.pallete.primary.color):"1.5px solid ".concat(r.shades[700].color)}(o):"1.5px solid ".concat(o.colors.shades[150].color)}),(function(n){return n.disabled?"":"& label {\n font-weight: 700;\n }"}),(function(n){return n.theme.colors.pallete.primary.color})),g=m.default(h)(c||(c=n.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding: 16px;\n\n ","\n"],["\n display: flex;\n justify-content: space-between;\n padding: 16px;\n\n ","\n"])),(function(n){return n.onClick?"cursor: pointer;":""})),v=m.default(h)(p||(p=n.__makeTemplateObject(["\n padding: 16px;\n margin-bottom: 8px;\n position: relative;\n"],["\n padding: 16px;\n margin-bottom: 8px;\n position: relative;\n"]))),j=m.default.div(l||(l=n.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding-bottom: ",";\n margin-bottom: ",";\n cursor: pointer;\n border-bottom: ",";\n\n & input:checked + div {\n border-color: ",";\n }\n"],["\n display: flex;\n justify-content: space-between;\n padding-bottom: ",";\n margin-bottom: ",";\n cursor: pointer;\n border-bottom: ",";\n\n & input:checked + div {\n border-color: ",";\n }\n"])),(function(n){var e=n.showBorder;return void 0===e||e?"10px":""}),(function(n){var e=n.showBorder;return void 0===e||e?"8px":"0"}),(function(n){var e=n.showBorder,r=void 0===e||e,o=n.theme;return r?"1px solid ".concat(o.colors.shades[200].color):"none"}),(function(n){return n.theme.colors.pallete.primary.color})),y=m.default.div(d||(d=n.__makeTemplateObject(["\n margin-bottom: 5px;\n\n p {\n color: ",";\n }\n"],["\n margin-bottom: 5px;\n\n p {\n color: ",";\n }\n"])),(function(n){return n.disabled?"var(--colors-shades-250-color)":"inherit"})),_=m.default(r.PriceLabelV2)(s||(s=n.__makeTemplateObject(["\n div p {\n color: ",";\n }\n"],["\n div p {\n color: ",";\n }\n"])),(function(n){var e=n.disabled,r=n.highlighted,o=n.theme.colors,t=o.shades,i=o.semantic;return e?t[250].color:r?i.urgent.color:t[700].color})),T=m.default.div(u||(u=n.__makeTemplateObject(["\n margin-top: 20px;\n"],["\n margin-top: 20px;\n"]))),k=m.default.div(b||(b=n.__makeTemplateObject(["\n margin: ",";\n"],["\n margin: ",";\n"])),(function(n){return n.theme.component.autoship.tooltip.margin}));exports.BenefitsContainer=y,exports.Container=T,exports.ContainerBase=h,exports.DiscountTag=x,exports.FlexContainer=f,exports.SinglePurchaseContainer=g,exports.StyledPrice=_,exports.SubscriptionContainer=v,exports.SubscriptionHeader=j,exports.TooltipWrapper=k;
2
2
  //# sourceMappingURL=styled.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../../cta/primary/ButtonPrimary.js");require("@emotion/react/jsx-runtime"),require("../../../core/theme/Theme.js"),require("../../../types/enums.js"),require("../../cta/styled.js"),require("../../PackSelectorV2/PackSelectoV2.js"),require("../../absorbency-level/AbsorbencyLevel.js"),require("../../accordion-options/AccordionOptions.js"),require("../../accordion/Accordion.js"),require("react"),require("../../../utils/constants/offerAtCart.js"),require("../../../utils/media.js"),require("../../../utils/mock-content/CancellationFlowAccordion.js"),require("../../dropdown/variants/simple/SimpleDropdown.js"),require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../atoms/Icon/Icon.js"),require("../../atoms/Image/styled.js"),require("../../atoms/Toggle/toggle.styled.js"),require("../../radio/input/styles.js"),require("../../tooltip/Styled.js"),require("../../autoship/styled.js"),require("../../autoshipV2/styled.js"),require("../../before-after/BeforeAfter.js"),require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/DiscountTag.js"),require("../../pricing/styles.js"),require("../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../shared/card/Card.js"),require("../../bundle/minimalistic/styled.js"),require("../../text/Text.js"),require("../../bundle/motivator/styled.js"),require("../../bundle/simple/Simple.js"),require("../../buynowpaylater/BuyNowPayLater.js"),require("../../offer-banner/OfferBanner.js"),require("../../cartProductItem/CloseIcon/CloseButton.js"),require("../../cartProductItem/Description/Description.js"),require("../../cartProductItem/Promo/Promo.js"),require("../../cartProductItem/Title/Title.js"),require("../../cartProductItem/TrashIcon/styled.js"),require("../../checkbox/Checkbox.js"),require("../../SkeletonBox/SkeletonBox.js"),require("../../club-price-label/ClubPriceLabel.js"),require("../../strength-bars/StrengthBars.js"),require("../../pricing/priceLabelV4/PriceLabelV4.js"),require("../../rating/starList/StarList.js"),require("../../rating/styles.js"),require("../../collection/product/mobile/styled.js"),require("../../collection/product/truekind/ProductItemTK.js"),require("../../collection/grid/WithProductGrid.js"),require("../../color/ColorRadioGroup.js"),require("../../color/selector/PatternSelector.js"),require("../../color/styles/ColorPickerwithTootip.styled.js"),require("../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../delivery-details/DeliveryDetails.js"),require("../../delivery-details/Note/Note.js"),require("../../drawer/Drawer.js"),require("../../dropdown-list-icons/Styled.js"),require("../../dropdown/size-dropdown/Styled.js"),require("../../dropdown/variants/dialog/DropdownDialog.js"),require("../../dropdown/base/BaseDropdown.js"),require("../../filtering/Accordion.js"),require("../../filtering/FiltersStyled.js"),require("../../filtering/Tags/Tags.js"),require("../../fit-guarantee/FitGuarantee.js"),require("../../fit/FitPredictor.js"),require("../../slider/ArrowButton.js"),require("../../slider/StyledSlider.js"),require("../../gallery/components/ImageSmallPreview/styled.js"),require("../../gallery/components/ImagePreviewList/styled.js"),require("../../molecules/Video/components/styled.js"),require("../../molecules/Video/styled.js"),require("../../gallery/components/ImageProductSlide/styled.js"),require("../../gallery/styled.js"),require("../../icon-button/IconButton.js"),require("../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../iconsWithTitle/index.js"),require("../../image-card/ImageCard.js"),require("../../input/label/Label.js"),require("../../input/base/Error.js"),require("../../input/base/Styled.js"),require("../../input/custom/Custom.js"),require("../../input/basePlusButton/BasePlusButton.js"),require("../../input/basePlusIcon/BasePlusIcon.js"),require("../../modal/Modal.js"),require("../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../order-bar/OrderBar.js"),require("../../packs/selector/PackSelector.js"),require("../../pagination/styles.js"),require("../../payment-methods/PaymentMethod.js"),require("../../product/order/item/SimpleOrderItem.js"),require("../../progress-bar/ProgressBar.js"),require("../../quantityPicker/QuantityPicker.js"),require("../../radio/RadioPrimary/radioPrimary.js"),require("../../radio/clubRadioInput/clubRadio.js"),require("../../review-detail/ReviewDetail.js"),require("../../review/Review.js"),require("../../reviews-header/ReviewsHeader.js"),require("../../scroll-to-top/ScrollToTop.js"),require("../../search-bar/components/ClearButton/styled.js"),require("../../search-bar/components/Footer/styled.js"),require("../../search-bar/components/ProductItem/styled.js"),require("../../search-bar/components/ResultsPanel/styled.js"),require("../../search-bar/components/SearchControl/styled.js"),require("../../search-bar/styled.js"),require("../../search-navigation/styled.js"),require("react-dom"),require("../../short-banner/ShortBanner.js"),require("../../size-chart/styled.js"),require("../../size-table/SizeTable.js"),require("../../size/guide/SizeFitGuide.js"),require("../../size/selector/styled.js"),require("../../tabs/Tab.js"),require("../../tabs/Tabs.js"),require("../../tag/Tag.js"),require("@emotion/react"),require("../../textWithImage/index.js"),require("../../timer/styled.js"),require("../../toast/Toast.js"),require("../../totals/total/styled.js"),require("../../totals/subtotal/Subtotal.js"),require("../../tracking-progress-v2/TrackingProgressV2.js"),require("../../tracking-progress/TrackingProgress.js"),require("../AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../BasicAccordion/BasicAccordion.js"),require("../CartItemCard/CartItem.js"),require("../ClubOfferSelector/styled.js"),require("../ClubOfferSelector2/styled.js"),require("../JoinClubCard/joinClubCard.js"),require("../OfferAtCart/styled.js"),require("../OfferAtCartV2/styled.js"),require("../OfferAtCartV3/styled.js"),require("../OfferAtCartV4/styled.js"),require("../OfferAtPDP/styled.js"),require("../OfferAtPDP/types.js"),require("../ProductCard/ProductCardV1/ProductCard.js"),require("../ProductCard/ProductCardV2/styled.js"),require("../ProductCard/ProductCardV3/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js"),require("../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js"),require("@ant-design/react-slick"),require("../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js"),require("react-inner-image-zoom"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV5/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/styled.js"),require("../SizeCharTable/SizeChartTableV2/styled.js"),require("../SizeCharTable/SizeChartTableV3/styled.js"),require("../../molecules/ArrowTip/ArrowTip.styled.js"),require("../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js"),require("../SubscriptionPlanSelector/styled.js"),require("./Greeting.styled.js");var t=require("./Card.styled.js"),s=require("./DescriptionItem.js"),o=require("./types.js");require("../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../molecules/CouponCard/styled.js"),require("../../molecules/BenefitsList/styled.js"),require("../../molecules/HurryUp/styled.js"),require("../../molecules/Spinner/styled.js"),require("../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js"),require("../../molecules/LikeButton/styled.js");var l=require("../../molecules/ScarcityTag/ScarcityTag.js");exports.TwoCtasAtCart=function(a){var u=a.title,d=a.saveLessButtonAction,c=a.saveLessButtonLabel,n=a.saveMoreButtonAction,j=a.saveMoreButtonLabel,q=a.descriptions,y=a.version,b=a.bottomCopy,p=a.titleBackgroundColor,m=a.scarcityText,P=a.scarcityTextColor;return r.jsxs(t.Container,e.__assign({id:"twoCtasAtCart"},{children:[r.jsx(t.TitleWrapper,e.__assign({id:"twoCtasAtCartTitle",backgroundColor:null!=p?p:void 0},{children:u}),void 0),r.jsx(i,{onClick:n,text:j,wide:!0},void 0),m&&r.jsx(l.ScarcityTag,{text:m,color:P},void 0),r.jsxs(t.BodyContainer,{children:[r.jsx(t.GridContainer,{children:q.map((function(e,i){return r.jsx(s.DescriptionItem,{text:e.text,smallerText:e.smallerText,iconName:null==e?void 0:e.iconName,type:null==e?void 0:e.type,link:null==e?void 0:e.link},"".concat(e.text,"-").concat(i))}))},void 0),b&&r.jsx(t.BottomCopyWrapper,{dangerouslySetInnerHTML:{__html:b}},void 0)]},void 0),r.jsx(t.OutLineButtonContainer,{children:y===o.BottomButtonVersionsTypes.link?r.jsx(t.SaveLessLinkButton,e.__assign({href:"#",onClick:d},{children:c}),void 0):r.jsx(t.BtnOutlineWrapper,{wide:!0,onClick:d,text:c},void 0)},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../../cta/primary/ButtonPrimary.js");require("@emotion/react/jsx-runtime"),require("../../../core/theme/Theme.js"),require("../../../types/enums.js"),require("../../cta/styled.js"),require("../../PackSelectorV2/PackSelectoV2.js"),require("../../absorbency-level/AbsorbencyLevel.js"),require("../../accordion-options/AccordionOptions.js"),require("../../accordion/Accordion.js"),require("react"),require("../../../utils/constants/offerAtCart.js"),require("../../../utils/media.js"),require("../../../utils/mock-content/CancellationFlowAccordion.js"),require("../../dropdown/variants/simple/SimpleDropdown.js"),require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../atoms/Icon/Icon.js"),require("../../atoms/Image/styled.js"),require("../../atoms/Toggle/toggle.styled.js"),require("../../radio/input/styles.js"),require("../../tooltip/Styled.js"),require("../../autoship/styled.js"),require("../../autoshipV2/styled.js"),require("../../before-after/BeforeAfter.js"),require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/styled.js"),require("../../pricing/styles.js"),require("../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../shared/card/Card.js"),require("../../bundle/minimalistic/styled.js"),require("../../text/Text.js"),require("../../bundle/motivator/styled.js"),require("../../bundle/simple/Simple.js"),require("../../buynowpaylater/BuyNowPayLater.js"),require("../../offer-banner/OfferBanner.js"),require("../../cartProductItem/CloseIcon/CloseButton.js"),require("../../cartProductItem/Description/Description.js"),require("../../cartProductItem/Promo/Promo.js"),require("../../cartProductItem/Title/Title.js"),require("../../cartProductItem/TrashIcon/styled.js"),require("../../checkbox/Checkbox.js"),require("../../SkeletonBox/SkeletonBox.js"),require("../../club-price-label/ClubPriceLabel.js"),require("../../strength-bars/StrengthBars.js"),require("../../pricing/priceLabelV4/PriceLabelV4.js"),require("../../rating/starList/StarList.js"),require("../../rating/styles.js"),require("../../collection/product/mobile/styled.js"),require("../../collection/product/truekind/styled.js"),require("../../collection/grid/WithProductGrid.js"),require("../../color/ColorRadioGroup.js"),require("../../color/selector/PatternSelector.js"),require("../../color/styles/ColorPickerwithTootip.styled.js"),require("../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../delivery-details/DeliveryDetails.js"),require("../../delivery-details/Note/Note.js"),require("../../drawer/Drawer.js"),require("../../dropdown-list-icons/Styled.js"),require("../../dropdown/size-dropdown/Styled.js"),require("../../dropdown/variants/dialog/DropdownDialog.js"),require("../../dropdown/base/BaseDropdown.js"),require("../../filtering/Accordion.js"),require("../../filtering/FiltersStyled.js"),require("../../filtering/Tags/Tags.js"),require("../../fit-guarantee/FitGuarantee.js"),require("../../fit/FitPredictor.js"),require("../../slider/ArrowButton.js"),require("../../slider/StyledSlider.js"),require("../../gallery/components/ImageSmallPreview/styled.js"),require("../../gallery/components/ImagePreviewList/styled.js"),require("../../molecules/Video/components/styled.js"),require("../../molecules/Video/styled.js"),require("../../gallery/components/ImageProductSlide/styled.js"),require("../../gallery/styled.js"),require("../../icon-button/IconButton.js"),require("../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../iconsWithTitle/index.js"),require("../../image-card/ImageCard.js"),require("../../input/label/Label.js"),require("../../input/base/Error.js"),require("../../input/base/Styled.js"),require("../../input/custom/Custom.js"),require("../../input/basePlusButton/BasePlusButton.js"),require("../../input/basePlusIcon/BasePlusIcon.js"),require("../../modal/Modal.js"),require("../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../order-bar/OrderBar.js"),require("../../packs/selector/PackSelector.js"),require("../../pagination/styles.js"),require("../../payment-methods/PaymentMethod.js"),require("../../product/order/item/SimpleOrderItem.js"),require("../../progress-bar/ProgressBar.js"),require("../../quantityPicker/QuantityPicker.js"),require("../../radio/RadioPrimary/radioPrimary.js"),require("../../radio/clubRadioInput/clubRadio.js"),require("../../review-detail/ReviewDetail.js"),require("../../review/Review.js"),require("../../reviews-header/ReviewsHeader.js"),require("../../scroll-to-top/ScrollToTop.js"),require("../../search-bar/components/ClearButton/styled.js"),require("../../search-bar/components/Footer/styled.js"),require("../../search-bar/components/ProductItem/styled.js"),require("../../search-bar/components/ResultsPanel/styled.js"),require("../../search-bar/components/SearchControl/styled.js"),require("../../search-bar/styled.js"),require("../../search-navigation/styled.js"),require("react-dom"),require("../../short-banner/ShortBanner.js"),require("../../size-chart/styled.js"),require("../../size-table/SizeTable.js"),require("../../size/guide/SizeFitGuide.js"),require("../../size/selector/styled.js"),require("../../tabs/Tab.js"),require("../../tabs/Tabs.js"),require("../../tag/Tag.js"),require("@emotion/react"),require("../../textWithImage/index.js"),require("../../timer/styled.js"),require("../../toast/Toast.js"),require("../../totals/total/styled.js"),require("../../totals/subtotal/Subtotal.js"),require("../../tracking-progress-v2/TrackingProgressV2.js"),require("../../tracking-progress/TrackingProgress.js"),require("../AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../BasicAccordion/BasicAccordion.js"),require("../CartItemCard/CartItem.js"),require("../ClubOfferSelector/styled.js"),require("../ClubOfferSelector2/styled.js"),require("../JoinClubCard/joinClubCard.js"),require("../OfferAtCart/styled.js"),require("../OfferAtCartV2/styled.js"),require("../OfferAtCartV3/styled.js"),require("../OfferAtCartV4/styled.js"),require("../OfferAtPDP/styled.js"),require("../OfferAtPDP/types.js"),require("../ProductCard/ProductCardV1/ProductCard.js"),require("../ProductCard/ProductCardV2/styled.js"),require("../ProductCard/ProductCardV3/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js"),require("../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js"),require("@ant-design/react-slick"),require("../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js"),require("react-inner-image-zoom"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV5/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js"),require("../ProductGalleryMobile/ProductGalleryMobileV6/styled.js"),require("../SizeCharTable/SizeChartTableV2/styled.js"),require("../SizeCharTable/SizeChartTableV3/styled.js"),require("../../molecules/ArrowTip/ArrowTip.styled.js"),require("../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js"),require("../SubscriptionPlanSelector/styled.js"),require("./Greeting.styled.js");var t=require("./Card.styled.js"),s=require("./DescriptionItem.js"),o=require("./types.js");require("../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../molecules/CouponCard/styled.js"),require("../../molecules/BenefitsList/styled.js"),require("../../molecules/HurryUp/styled.js"),require("../../molecules/Spinner/styled.js"),require("../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js"),require("../../molecules/LikeButton/styled.js");var l=require("../../molecules/ScarcityTag/ScarcityTag.js");exports.TwoCtasAtCart=function(a){var u=a.title,d=a.saveLessButtonAction,c=a.saveLessButtonLabel,n=a.saveMoreButtonAction,j=a.saveMoreButtonLabel,q=a.descriptions,y=a.version,b=a.bottomCopy,p=a.titleBackgroundColor,m=a.scarcityText,P=a.scarcityTextColor;return r.jsxs(t.Container,e.__assign({id:"twoCtasAtCart"},{children:[r.jsx(t.TitleWrapper,e.__assign({id:"twoCtasAtCartTitle",backgroundColor:null!=p?p:void 0},{children:u}),void 0),r.jsx(i,{onClick:n,text:j,wide:!0},void 0),m&&r.jsx(l.ScarcityTag,{text:m,color:P},void 0),r.jsxs(t.BodyContainer,{children:[r.jsx(t.GridContainer,{children:q.map((function(e,i){return r.jsx(s.DescriptionItem,{text:e.text,smallerText:e.smallerText,iconName:null==e?void 0:e.iconName,type:null==e?void 0:e.type,link:null==e?void 0:e.link},"".concat(e.text,"-").concat(i))}))},void 0),b&&r.jsx(t.BottomCopyWrapper,{dangerouslySetInnerHTML:{__html:b}},void 0)]},void 0),r.jsx(t.OutLineButtonContainer,{children:y===o.BottomButtonVersionsTypes.link?r.jsx(t.SaveLessLinkButton,e.__assign({href:"#",onClick:d},{children:c}),void 0):r.jsx(t.BtnOutlineWrapper,{wide:!0,onClick:d,text:c},void 0)},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=TwoCtasAtCart.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("@emotion/styled"),o=require("../../../core/theme/Theme.js"),r=require("../../../types/enums.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d,l,u=t(i),s=function(e,n,i){var o,t,d;switch(e){case r.ComponentSize.Large:return{borderRadius:n?"18px":"0.375rem",padding:"0 0.75rem",fontSize:(null===(o=null==i?void 0:i.component.pricing.priceLabel.price.discountFontSize)||void 0===o?void 0:o.large)||"0.875rem",lineHeight:"1.125rem",height:"1.75rem"};case r.ComponentSize.Medium:return{borderRadius:n?"18px":"0.25rem",padding:"0 0.5rem",fontSize:(null===(t=null==i?void 0:i.component.pricing.priceLabel.price.discountFontSize)||void 0===t?void 0:t.medium)||"14px",lineHeight:"1rem",height:"1.375rem"};case r.ComponentSize.Small:return{borderRadius:n?"20px":"0.25rem",padding:"0",fontSize:(null===(d=null==i?void 0:i.component.pricing.priceLabel.price.discountFontSize)||void 0===d?void 0:d.small)||"0.625rem",lineHeight:"0.75rem",height:"2rem"}}},c=u.default.div(d||(d=e.__makeTemplateObject(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n padding: ",";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ",";\n height: ",";\n text-align: center;\n cursor: default;\n"],["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n padding: ",";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ",";\n height: ",";\n text-align: center;\n cursor: default;\n"])),(function(e){return e.backgroundColor}),(function(e){return e.borderColor}),(function(e){var n,i=e.size,o=e.bordersRounded;return null===(n=s(i,o))||void 0===n?void 0:n.borderRadius}),(function(e){var n,i=e.size;return null===(n=s(i))||void 0===n?void 0:n.padding}),(function(e){return e.size===r.ComponentSize.Small?"2rem":"unset"}),(function(e){var n,i=e.size;return null===(n=s(i))||void 0===n?void 0:n.height})),a=u.default.h3(l||(l=e.__makeTemplateObject(["\n color: ",";\n font-weight: bold;\n margin: 0;\n font-size: ",";\n line-height: ",";\n"],["\n color: ",";\n font-weight: bold;\n margin: 0;\n font-size: ",";\n line-height: ",";\n"])),(function(e){return e.textColor}),(function(e){var n,i=e.size,o=e.theme;return null===(n=s(i,!1,o))||void 0===n?void 0:n.fontSize}),(function(e){var n,i=e.size;return null===(n=s(i))||void 0===n?void 0:n.lineHeight}));exports.DiscountTag=function(i){var t=i.discount,d=i.offText,l=i.savings,u=i.showSavings,s=void 0!==u&&u,m=i.disabled,f=i.backgroundColor,g=void 0===f?"#fff":f,v=i.borderColor,p=void 0===v?"transparent":v,h=i.textColor,b=void 0===h?"#fff":h,z=i.size,x=void 0===z?r.ComponentSize.Medium:z,S=i.style,C=i.bordersRounded,j=void 0!==C&&C,y=o.useTheme();return n.jsx(c,e.__assign({backgroundColor:m?y.colors.shades[50].color:g,borderColor:m?y.colors.shades[50].color:p,size:x,"data-testid":"discount-container",style:S,bordersRounded:j},{children:n.jsxs(a,e.__assign({textColor:m?y.colors.shades[250].color:b,size:x,style:S,theme:y},{children:[t,"% ",d," ",s&&l&&"- ".concat(l)]}),void 0)}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),s=require("../../../core/theme/Theme.js"),r=require("../../../types/enums.js"),i=require("./styled.js");exports.DiscountTag=function(t){var n=t.discount,d=t.offText,a=t.savings,c=t.showSavings,l=void 0!==c&&c,u=t.disabled,v=t.backgroundColor,h=void 0===v?"#fff":v,f=t.borderColor,_=void 0===f?"transparent":f,b=t.textColor,g=void 0===b?"#fff":b,x=t.size,C=void 0===x?r.ComponentSize.Medium:x,j=t.style,m=t.bordersRounded,p=void 0!==m&&m,y=t.icon,q=s.useTheme();return o.jsxs(i.Container,e.__assign({backgroundColor:u?q.colors.shades[50].color:h,borderColor:u?q.colors.shades[50].color:_,size:C,"data-testid":"discount-container",style:j,bordersRounded:p},{children:[y&&o.jsx(i.IconContainer,{children:y},void 0),o.jsxs(i.H3,e.__assign({textColor:u?q.colors.shades[250].color:g,size:C,style:e.__assign(e.__assign({},j),{whiteSpace:"nowrap"}),theme:q},{children:[n,"% ",d," ",l&&a&&"- ".concat(a)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=DiscountTag.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("@emotion/styled"),i=require("../../../types/enums.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t,o,l,d=r(n),u=function(e,n,r){var t,o,l;switch(e){case i.ComponentSize.Large:return{borderRadius:n?"18px":"0.375rem",padding:"0 0.75rem",fontSize:(null===(t=null==r?void 0:r.component.pricing.priceLabel.price.discountFontSize)||void 0===t?void 0:t.large)||"0.875rem",lineHeight:"1.125rem",height:"1.75rem"};case i.ComponentSize.Medium:return{borderRadius:n?"18px":"0.25rem",padding:"0 0.5rem",fontSize:(null===(o=null==r?void 0:r.component.pricing.priceLabel.price.discountFontSize)||void 0===o?void 0:o.medium)||"14px",lineHeight:"1rem",height:"1.375rem"};case i.ComponentSize.Small:return{borderRadius:n?"20px":"0.25rem",padding:"0",fontSize:(null===(l=null==r?void 0:r.component.pricing.priceLabel.price.discountFontSize)||void 0===l?void 0:l.small)||"0.625rem",lineHeight:"0.75rem",height:"2rem"}}},a=d.default.div(t||(t=e.__makeTemplateObject(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n padding: ",";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ",";\n height: ",";\n text-align: center;\n cursor: default;\n"],["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n padding: ",";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ",";\n height: ",";\n text-align: center;\n cursor: default;\n"])),(function(e){return e.backgroundColor}),(function(e){return e.borderColor}),(function(e){var n,i=e.size,r=e.bordersRounded;return null===(n=u(i,r))||void 0===n?void 0:n.borderRadius}),(function(e){var n,i=e.size;return null===(n=u(i))||void 0===n?void 0:n.padding}),(function(e){return e.size===i.ComponentSize.Small?"2rem":"unset"}),(function(e){var n,i=e.size;return null===(n=u(i))||void 0===n?void 0:n.height})),c=d.default.span(o||(o=e.__makeTemplateObject(["\n margin-right: 4px;\n display: flex;\n align-items: center;\n"],["\n margin-right: 4px;\n display: flex;\n align-items: center;\n"]))),s=d.default.h3(l||(l=e.__makeTemplateObject(["\n color: ",";\n font-weight: bold;\n margin: 0;\n font-size: ",";\n line-height: ",";\n"],["\n color: ",";\n font-weight: bold;\n margin: 0;\n font-size: ",";\n line-height: ",";\n"])),(function(e){return e.textColor}),(function(e){var n,i=e.size,r=e.theme;return null===(n=u(i,!1,r))||void 0===n?void 0:n.fontSize}),(function(e){var n,i=e.size;return null===(n=u(i))||void 0===n?void 0:n.lineHeight}));exports.Container=a,exports.H3=s,exports.IconContainer=c;
2
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),i=require("react/jsx-runtime"),n=require("@emotion/styled"),r=require("../../../../core/theme/Theme.js"),t=require("../../../../utils/media.js"),o=require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js");require("../../../atoms/HorizontalDivider/HorizontalDivider.js");var l=require("../../../atoms/Icon/Icon.js"),a=require("../../../atoms/Image/Image.js");require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("react"),require("../../../atoms/Toggle/toggle.styled.js");var s=require("../../../offer-banner/OfferBanner.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/DiscountTag.js");var c=require("../../../pricing/price/PriceLabel.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../../types/enums.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var u,m,g,p,f,h,b,v=d(n),j=v.default.div(u||(u=e.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 10px 0;\n"],["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 10px 0;\n"]))),x=v.default.div(m||(m=e.__makeTemplateObject(["\n position: relative;\n width: ",";\n img {\n display: block;\n }\n"],["\n position: relative;\n width: ",";\n img {\n display: block;\n }\n"])),"63px"),y=v.default.div(g||(g=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ",";\n width: calc(100% - ",");\n"],["\n display: flex;\n flex-direction: column;\n ",";\n width: calc(100% - ",");\n"])),t.mediaQueries({paddingLeft:["0.938rem","1.875rem"]}),"63px"),_=v.default.h2((function(e){return{fontWeight:600,fontSize:"1rem",lineHeight:"1.5rem",color:e.color,margin:"0.063rem 0"}})),P=v.default.h3((function(e){var i=e.color,n=e.fontSize,r=e.lineHeight;return{fontWeight:e.fontWeight,fontSize:n,lineHeight:r,color:i,margin:e.margin}})),q=v.default.div(p||(p=e.__makeTemplateObject(["\n display: flex;\n ",";\n height: 100%;\n align-items: end;\n margin-top: 0.219rem;\n"],["\n display: flex;\n ",";\n height: 100%;\n align-items: end;\n margin-top: 0.219rem;\n"])),(function(e){var i=e.withTag;return e.theme,i?t.mediaQueries({justifyContent:["space-between","end"],flexDirection:["row","column"]}):"justify-content: end"})),w=v.default.div(f||(f=e.__makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n transform: translate(30%, -30%);\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--colors-shades-300-color);\n color: var(--colors-shades-white-color);\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 24px;\n"],["\n position: absolute;\n right: 0;\n top: 0;\n transform: translate(30%, -30%);\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--colors-shades-300-color);\n color: var(--colors-shades-white-color);\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 24px;\n"]))),L=v.default.span(h||(h=e.__makeTemplateObject(["\n display: block;\n transform: translateY(1px);\n"],["\n display: block;\n transform: translateY(1px);\n"]))),T=v.default.span(b||(b=e.__makeTemplateObject(["\n color: ",";\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n"],["\n color: ",";\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n"])),(function(e){return e.theme.colors.semantic.urgent.color}));module.exports=function(n){var t,d,u,m,g,p,f,h,b=n.title,v=n.className,k=n.subtitle,z=n.midElement,O=n.image,C=n.price,S=n.tag,V=n.quantity,H=n.finalPriceStyle,I=n.isGift,W=n.isClub,D=r.useTheme();return i.jsxs(j,e.__assign({className:v},{children:[i.jsxs(x,{children:[i.jsx(a.Image,{src:O.src,alt:O.alt,width:"4.063rem",height:"5.375rem",objectFit:"cover",objectPosition:"center"},void 0),V?i.jsx(w,e.__assign({"data-testid":"order-item-quantity"},{children:i.jsx(L,{children:V},void 0)}),void 0):null]},void 0),i.jsxs(y,e.__assign({"data-testid":"order-item-description-container",theme:D},{children:[i.jsx(_,e.__assign({color:D.colors.shades[700].color,"data-testid":"product-title"},{children:b}),void 0),k&&i.jsx(P,e.__assign({color:(null===(d=null===(t=D.component.pricing)||void 0===t?void 0:t.subtitle)||void 0===d?void 0:d.color)||D.colors.shades[700].color,fontSize:(null===(m=null===(u=D.component.pricing)||void 0===u?void 0:u.subtitle)||void 0===m?void 0:m.fontSize)||"0.75rem",lineHeight:(null===(p=null===(g=D.component.pricing)||void 0===g?void 0:g.subtitle)||void 0===p?void 0:p.lineHeight)||"1rem",fontWeight:(null===(h=null===(f=D.component.pricing)||void 0===f?void 0:f.subtitle)||void 0===h?void 0:h.fontWeight)||"normal","data-testid":"product-variant-title",margin:"0.5rem 0 0 0"},{children:k}),void 0),z,I&&i.jsx(T,{children:"Limited Time Only"},void 0),i.jsxs(q,e.__assign({"data-testid":"order-item-price-container",withTag:!!S,theme:D},{children:[S&&i.jsx(s.OfferBanner,{discountAppliedText:null==S?void 0:S.text,backgroundColor:null==S?void 0:S.backgroundColor},void 0),I?i.jsx(T,{children:"GIFT"},void 0):W?i.jsx(o.ClubPriceMemberLabel,{finalPrice:C.finalPrice,originalPrice:C.originalPrice,isCollections:!1,isClubOffer:!0,isClub:!0,icon:i.jsx(l.Icon,{name:"other/club_filled",height:"21px",width:"52px"},void 0),style:{gap:8}},void 0):i.jsx(c.PriceLabel,{finalPrice:C.finalPrice,originalPrice:C.originalPrice,color:C.color||D.colors.shades[700].color,size:D.component.pricing.priceLabel.price.size,finalPriceStyle:H,originalPriceStyled:!0},void 0)]}),void 0)]}),void 0)]}),void 0)};
1
+ "use strict";var e=require("tslib"),i=require("react/jsx-runtime"),n=require("@emotion/styled"),r=require("../../../../core/theme/Theme.js"),t=require("../../../../utils/media.js"),o=require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js");require("../../../atoms/HorizontalDivider/HorizontalDivider.js");var l=require("../../../atoms/Icon/Icon.js"),a=require("../../../atoms/Image/Image.js");require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("react"),require("../../../atoms/Toggle/toggle.styled.js");var s=require("../../../offer-banner/OfferBanner.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../../types/enums.js"),require("../../../pricing/discount/styled.js");var c=require("../../../pricing/price/PriceLabel.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var u,m,g,p,f,h,b,v=d(n),j=v.default.div(u||(u=e.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 10px 0;\n"],["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 10px 0;\n"]))),x=v.default.div(m||(m=e.__makeTemplateObject(["\n position: relative;\n width: ",";\n img {\n display: block;\n }\n"],["\n position: relative;\n width: ",";\n img {\n display: block;\n }\n"])),"63px"),y=v.default.div(g||(g=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ",";\n width: calc(100% - ",");\n"],["\n display: flex;\n flex-direction: column;\n ",";\n width: calc(100% - ",");\n"])),t.mediaQueries({paddingLeft:["0.938rem","1.875rem"]}),"63px"),_=v.default.h2((function(e){return{fontWeight:600,fontSize:"1rem",lineHeight:"1.5rem",color:e.color,margin:"0.063rem 0"}})),P=v.default.h3((function(e){var i=e.color,n=e.fontSize,r=e.lineHeight;return{fontWeight:e.fontWeight,fontSize:n,lineHeight:r,color:i,margin:e.margin}})),q=v.default.div(p||(p=e.__makeTemplateObject(["\n display: flex;\n ",";\n height: 100%;\n align-items: end;\n margin-top: 0.219rem;\n"],["\n display: flex;\n ",";\n height: 100%;\n align-items: end;\n margin-top: 0.219rem;\n"])),(function(e){var i=e.withTag;return e.theme,i?t.mediaQueries({justifyContent:["space-between","end"],flexDirection:["row","column"]}):"justify-content: end"})),w=v.default.div(f||(f=e.__makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n transform: translate(30%, -30%);\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--colors-shades-300-color);\n color: var(--colors-shades-white-color);\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 24px;\n"],["\n position: absolute;\n right: 0;\n top: 0;\n transform: translate(30%, -30%);\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--colors-shades-300-color);\n color: var(--colors-shades-white-color);\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 24px;\n"]))),L=v.default.span(h||(h=e.__makeTemplateObject(["\n display: block;\n transform: translateY(1px);\n"],["\n display: block;\n transform: translateY(1px);\n"]))),T=v.default.span(b||(b=e.__makeTemplateObject(["\n color: ",";\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n"],["\n color: ",";\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n"])),(function(e){return e.theme.colors.semantic.urgent.color}));module.exports=function(n){var t,d,u,m,g,p,f,h,b=n.title,v=n.className,k=n.subtitle,z=n.midElement,O=n.image,C=n.price,S=n.tag,V=n.quantity,H=n.finalPriceStyle,I=n.isGift,W=n.isClub,D=r.useTheme();return i.jsxs(j,e.__assign({className:v},{children:[i.jsxs(x,{children:[i.jsx(a.Image,{src:O.src,alt:O.alt,width:"4.063rem",height:"5.375rem",objectFit:"cover",objectPosition:"center"},void 0),V?i.jsx(w,e.__assign({"data-testid":"order-item-quantity"},{children:i.jsx(L,{children:V},void 0)}),void 0):null]},void 0),i.jsxs(y,e.__assign({"data-testid":"order-item-description-container",theme:D},{children:[i.jsx(_,e.__assign({color:D.colors.shades[700].color,"data-testid":"product-title"},{children:b}),void 0),k&&i.jsx(P,e.__assign({color:(null===(d=null===(t=D.component.pricing)||void 0===t?void 0:t.subtitle)||void 0===d?void 0:d.color)||D.colors.shades[700].color,fontSize:(null===(m=null===(u=D.component.pricing)||void 0===u?void 0:u.subtitle)||void 0===m?void 0:m.fontSize)||"0.75rem",lineHeight:(null===(p=null===(g=D.component.pricing)||void 0===g?void 0:g.subtitle)||void 0===p?void 0:p.lineHeight)||"1rem",fontWeight:(null===(h=null===(f=D.component.pricing)||void 0===f?void 0:f.subtitle)||void 0===h?void 0:h.fontWeight)||"normal","data-testid":"product-variant-title",margin:"0.5rem 0 0 0"},{children:k}),void 0),z,I&&i.jsx(T,{children:"Limited Time Only"},void 0),i.jsxs(q,e.__assign({"data-testid":"order-item-price-container",withTag:!!S,theme:D},{children:[S&&i.jsx(s.OfferBanner,{discountAppliedText:null==S?void 0:S.text,backgroundColor:null==S?void 0:S.backgroundColor},void 0),I?i.jsx(T,{children:"GIFT"},void 0):W?i.jsx(o.ClubPriceMemberLabel,{finalPrice:C.finalPrice,originalPrice:C.originalPrice,isCollections:!1,isClubOffer:!0,isClub:!0,icon:i.jsx(l.Icon,{name:"other/club_filled",height:"21px",width:"52px"},void 0),style:{gap:8}},void 0):i.jsx(c.PriceLabel,{finalPrice:C.finalPrice,originalPrice:C.originalPrice,color:C.color||D.colors.shades[700].color,size:D.component.pricing.priceLabel.price.size,finalPriceStyle:H,originalPriceStyled:!0},void 0)]}),void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=SimpleOrderItem.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),o=require("../../hooks/click-outside.js");require("../../types/enums.js");var n=require("../../core/theme/Theme.js");require("../atoms/PriceLabel/PriceLabel.js"),require("../atoms/PriceLabelV2/PriceLabelV2.js"),require("../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../atoms/HorizontalDivider/HorizontalDivider.js"),require("../atoms/Icon/Icon.js"),require("../atoms/Image/styled.js"),require("../atoms/Toggle/toggle.styled.js"),require("./components/ClearButton/styled.js"),require("../text/Text.js"),require("./components/Footer/styled.js"),require("../pricing/clubOffer/ClubOfferTag.js"),require("../pricing/discount/DiscountTag.js"),require("../pricing/styles.js"),require("../pricing/priceLabelV2/PriceLabelV2.js"),require("../pricing/priceLabelV3/PriceLabelV3.js"),require("../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("./components/ProductItem/styled.js");var s=require("./components/ResultsPanel/ResultsPanel.js"),i=require("./components/SearchControl/SearchControl.js"),a=require("./styled.js"),l={selectedOption:void 0,open:!1,term:""},u=function(r,t){switch(t.type){case"UPDATE_TERM":return e.__assign(e.__assign({},r),{term:t.payload.term});case"CLEAR":return e.__assign(e.__assign({},r),{term:"",open:!1});case"TOGGLE_PANEL":return e.__assign(e.__assign({},r),{open:t.payload.open})}};exports.SearchBar=function(c){var p=c.suggestions,d=c.resultOptions,m=c.onChange,g=c.onSearch,h=c.onClose,f=c.resultsPanelDataTestId,j=c.allResults,v=c.initialTerm,q=c.shouldClear,b=void 0!==q&&q,y=c.isBlogSearchBar,_=void 0!==y&&y,L=c.ariaLabel,P=void 0===L?"Search for products":L,C=c.placeholder,T=void 0===C?"Search for products":C,E=c.id,S=void 0===E?"search":E,x=c.autoComplete,R=void 0===x?"off":x,V=n.useTheme();v&&(l.term=v);var D=t.useReducer(u,l),A=D[0],I=D[1],O=t.useRef(null),G=function(){return 0===d.length&&p.length>0&&!A.term};o(O,(function(){return I({type:"TOGGLE_PANEL",payload:{open:!1}})})),t.useEffect((function(){var e=setTimeout((function(){m(A.term)}),500);return function(){return clearTimeout(e)}}),[m,A.term]);var M=d&&d.length>0?d:G()?p:[];return r.jsxs("form",e.__assign({role:"search",onSubmit:function(e){e.cancelable&&e.preventDefault()},ref:O,style:{position:"relative"}},{children:[r.jsxs(a.Container,e.__assign({theme:V},{children:[r.jsx(a.Input,{value:A.term,placeholder:T,onChange:function(e){return I({type:"UPDATE_TERM",payload:{term:e.target.value}})},onFocus:function(){return I({type:"TOGGLE_PANEL",payload:{open:!0}})},id:S,autoComplete:R,theme:V,"aria-label":P,onKeyDown:function(e){"Enter"===e.key&&(e.cancelable&&e.preventDefault(),e.stopPropagation(),g(A.term))}},void 0),r.jsx(i.SearchControl,{showSearchIcon:_,open:A.open,onClose:function(){b?I({type:"CLEAR",payload:{}}):h()},onSearch:function(){return g(A.term)}},void 0)]}),void 0),A.open&&!!M.length&&r.jsx(s.ResultsPanel,{testId:f,options:M,header:G()?"Most popular products":void 0,footer:j?"View all results (".concat(j,")"):void 0,onViewAll:function(){return g(A.term)}},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),o=require("../../hooks/click-outside.js");require("../../types/enums.js");var n=require("../../core/theme/Theme.js");require("../atoms/PriceLabel/PriceLabel.js"),require("../atoms/PriceLabelV2/PriceLabelV2.js"),require("../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../atoms/HorizontalDivider/HorizontalDivider.js"),require("../atoms/Icon/Icon.js"),require("../atoms/Image/styled.js"),require("../atoms/Toggle/toggle.styled.js"),require("./components/ClearButton/styled.js"),require("../text/Text.js"),require("./components/Footer/styled.js"),require("../pricing/clubOffer/ClubOfferTag.js"),require("../pricing/discount/styled.js"),require("../pricing/styles.js"),require("../pricing/priceLabelV2/PriceLabelV2.js"),require("../pricing/priceLabelV3/PriceLabelV3.js"),require("../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("./components/ProductItem/styled.js");var s=require("./components/ResultsPanel/ResultsPanel.js"),i=require("./components/SearchControl/SearchControl.js"),a=require("./styled.js"),l={selectedOption:void 0,open:!1,term:""},u=function(r,t){switch(t.type){case"UPDATE_TERM":return e.__assign(e.__assign({},r),{term:t.payload.term});case"CLEAR":return e.__assign(e.__assign({},r),{term:"",open:!1});case"TOGGLE_PANEL":return e.__assign(e.__assign({},r),{open:t.payload.open})}};exports.SearchBar=function(c){var p=c.suggestions,d=c.resultOptions,m=c.onChange,h=c.onSearch,f=c.onClose,g=c.resultsPanelDataTestId,j=c.allResults,v=c.initialTerm,q=c.shouldClear,y=void 0!==q&&q,b=c.isBlogSearchBar,_=void 0!==b&&b,L=c.ariaLabel,P=void 0===L?"Search for products":L,C=c.placeholder,T=void 0===C?"Search for products":C,E=c.id,S=void 0===E?"search":E,x=c.autoComplete,R=void 0===x?"off":x,V=n.useTheme();v&&(l.term=v);var A=t.useReducer(u,l),D=A[0],I=A[1],O=t.useRef(null),G=function(){return 0===d.length&&p.length>0&&!D.term};o(O,(function(){return I({type:"TOGGLE_PANEL",payload:{open:!1}})})),t.useEffect((function(){var e=setTimeout((function(){m(D.term)}),500);return function(){return clearTimeout(e)}}),[m,D.term]);var M=d&&d.length>0?d:G()?p:[];return r.jsxs("form",e.__assign({role:"search",onSubmit:function(e){e.cancelable&&e.preventDefault()},ref:O,style:{position:"relative"}},{children:[r.jsxs(a.Container,e.__assign({theme:V},{children:[r.jsx(a.Input,{value:D.term,placeholder:T,onChange:function(e){return I({type:"UPDATE_TERM",payload:{term:e.target.value}})},onFocus:function(){return I({type:"TOGGLE_PANEL",payload:{open:!0}})},id:S,autoComplete:R,theme:V,"aria-label":P,onKeyDown:function(e){"Enter"===e.key&&(e.cancelable&&e.preventDefault(),e.stopPropagation(),h(D.term))}},void 0),r.jsx(i.SearchControl,{showSearchIcon:_,open:D.open,onClose:function(){y?I({type:"CLEAR",payload:{}}):f()},onSearch:function(){return h(D.term)}},void 0)]}),void 0),D.open&&!!M.length&&r.jsx(s.ResultsPanel,{testId:g,options:M,header:G()?"Most popular products":void 0,footer:j?"View all results (".concat(j,")"):void 0,onViewAll:function(){return h(D.term)}},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=SearchBar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../../../../core/theme/Theme.js"),s=require("../../../../types/enums.js"),t=require("../../../atoms/Image/Image.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/DiscountTag.js");var c=require("../../../pricing/price/PriceLabel.js");require("../../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var l=require("../../../text/Text.js"),a=require("./styled.js");exports.ProductItem=function(u){var o,n=u.src,d=u.title,p=u.price,j=i.useTheme();return r.jsxs(a.Container,e.__assign({theme:j},{children:[r.jsx(t.Image,{src:n,alt:d,width:"4.063rem",height:"5.375rem"},void 0),r.jsxs(a.Description,{children:[r.jsx(l.Text,{variant:"body",weight:"regular",size:"regular",testId:"search-product-title",dangerouslySetInnerHTML:{__html:d}},void 0),r.jsx(c.PriceLabel,{finalPrice:p,color:null===(o=j.colors.pallete.brickRed)||void 0===o?void 0:o.color,size:s.ComponentSize.Small},void 0)]},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../../../../core/theme/Theme.js"),s=require("../../../../types/enums.js"),t=require("../../../atoms/Image/Image.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js");var c=require("../../../pricing/price/PriceLabel.js");require("../../../pricing/priceLabelV2/PriceLabelV2.js"),require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var l=require("../../../text/Text.js"),a=require("./styled.js");exports.ProductItem=function(u){var o,n=u.src,d=u.title,p=u.price,j=i.useTheme();return r.jsxs(a.Container,e.__assign({theme:j},{children:[r.jsx(t.Image,{src:n,alt:d,width:"4.063rem",height:"5.375rem"},void 0),r.jsxs(a.Description,{children:[r.jsx(l.Text,{variant:"body",weight:"regular",size:"regular",testId:"search-product-title",dangerouslySetInnerHTML:{__html:d}},void 0),r.jsx(c.PriceLabel,{finalPrice:p,color:null===(o=j.colors.pallete.brickRed)||void 0===o?void 0:o.color,size:s.ComponentSize.Small},void 0)]},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ProductItem.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "7.1.22",
6
+ "version": "7.3.0",
7
7
  "private": false,
8
8
  "main": "build/lib/index.js",
9
9
  "style": "build/es/index.css",