@trafilea/afrodita-components 7.13.0 → 7.13.2

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 (76) hide show
  1. package/build/es/components/collection/product/mobile/ProductItemMobile.js +1 -1
  2. package/build/es/components/gallery/ProductGallery.js +1 -1
  3. package/build/es/components/gallery/components/ImageProductSlide/ImageProductSlide.js +1 -1
  4. package/build/es/components/molecules/BenefitsList/BenefitsList.js +1 -1
  5. package/build/es/components/molecules/CouponCard/CouponCard.js +1 -1
  6. package/build/es/components/molecules/LikeButton/LikeButton.js +1 -1
  7. package/build/es/components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.js +1 -1
  8. package/build/es/components/organisms/AutoshipPdpCard/AutoshipPdpCard.js +1 -1
  9. package/build/es/components/organisms/ModalZoom/VideoDisplay.js +2 -0
  10. package/build/es/components/organisms/ModalZoom/VideoDisplay.js.map +1 -0
  11. package/build/es/components/organisms/ModalZoom/ZoomButton.js +2 -0
  12. package/build/es/components/organisms/ModalZoom/ZoomButton.js.map +1 -0
  13. package/build/es/components/organisms/ModalZoom/ZoomModal.js +2 -0
  14. package/build/es/components/organisms/ModalZoom/ZoomModal.js.map +1 -0
  15. package/build/es/components/organisms/ModalZoom/ZoomModalV2.js +2 -0
  16. package/build/es/components/organisms/ModalZoom/ZoomModalV2.js.map +1 -0
  17. package/build/es/components/organisms/ModalZoom/ZoomModalV2.styled.js +2 -0
  18. package/build/es/components/organisms/ModalZoom/index.js +2 -0
  19. package/build/es/components/organisms/ModalZoom/index.js.map +1 -0
  20. package/build/es/components/organisms/ModalZoom/zoomModal.styled.js +2 -0
  21. package/build/es/components/organisms/OfferAtCart/OfferAtCart.js +1 -1
  22. package/build/es/components/organisms/OfferAtCartV2/OfferAtCartV2.js +1 -1
  23. package/build/es/components/organisms/OfferAtCartV4/OfferAtCartV4.js +1 -1
  24. package/build/es/components/organisms/OfferAtPDP/OfferAtPDP.js +1 -1
  25. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ImageProductSlideV3.js +1 -1
  26. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/index.js +1 -1
  27. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js +1 -1
  28. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ImageProductSlide.js +2 -0
  29. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ImageProductSlide.js.map +1 -0
  30. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ImageProductSlide.styled.js +1 -1
  31. package/build/es/components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js +1 -1
  32. package/build/es/components/organisms/TwoCtasAtCart/TwoCtasAtCart.js +1 -1
  33. package/build/es/index.js +1 -1
  34. package/build/index.d.ts +40 -9
  35. package/build/lib/components/collection/product/mobile/ProductItemMobile.js +1 -1
  36. package/build/lib/components/gallery/ProductGallery.js +1 -1
  37. package/build/lib/components/gallery/components/ImageProductSlide/ImageProductSlide.js +1 -1
  38. package/build/lib/components/molecules/BenefitsList/BenefitsList.js +1 -1
  39. package/build/lib/components/molecules/CouponCard/CouponCard.js +1 -1
  40. package/build/lib/components/molecules/LikeButton/LikeButton.js +1 -1
  41. package/build/lib/components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.js +1 -1
  42. package/build/lib/components/organisms/AutoshipPdpCard/AutoshipPdpCard.js +1 -1
  43. package/build/lib/components/organisms/ModalZoom/VideoDisplay.js +2 -0
  44. package/build/lib/components/organisms/ModalZoom/VideoDisplay.js.map +1 -0
  45. package/build/lib/components/organisms/ModalZoom/ZoomButton.js +2 -0
  46. package/build/lib/components/organisms/ModalZoom/ZoomButton.js.map +1 -0
  47. package/build/lib/components/organisms/ModalZoom/ZoomModal.js +2 -0
  48. package/build/lib/components/organisms/ModalZoom/ZoomModal.js.map +1 -0
  49. package/build/lib/components/organisms/ModalZoom/ZoomModalV2.js +2 -0
  50. package/build/lib/components/organisms/ModalZoom/ZoomModalV2.js.map +1 -0
  51. package/build/lib/components/organisms/ModalZoom/ZoomModalV2.styled.js +2 -0
  52. package/build/lib/components/organisms/ModalZoom/index.js +2 -0
  53. package/build/lib/components/organisms/ModalZoom/index.js.map +1 -0
  54. package/build/lib/components/organisms/ModalZoom/zoomModal.styled.js +2 -0
  55. package/build/lib/components/organisms/OfferAtCart/OfferAtCart.js +1 -1
  56. package/build/lib/components/organisms/OfferAtCartV2/OfferAtCartV2.js +1 -1
  57. package/build/lib/components/organisms/OfferAtCartV4/OfferAtCartV4.js +1 -1
  58. package/build/lib/components/organisms/OfferAtPDP/OfferAtPDP.js +1 -1
  59. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ImageProductSlideV3.js +1 -1
  60. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/index.js +1 -1
  61. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js +1 -1
  62. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ImageProductSlide.js +2 -0
  63. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ImageProductSlide.js.map +1 -0
  64. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ImageProductSlide.styled.js +1 -1
  65. package/build/lib/components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js +1 -1
  66. package/build/lib/components/organisms/TwoCtasAtCart/TwoCtasAtCart.js +1 -1
  67. package/build/lib/index.js +1 -1
  68. package/package.json +1 -1
  69. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ZoomModalV2.styled.js +0 -2
  70. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/zoomModal.styled.js +0 -2
  71. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/ZoomModalV2.styled.js +0 -2
  72. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/components/zoomModal.styled.js +0 -2
  73. /package/build/es/components/organisms/{ProductGalleryMobile/ProductGalleryMobileV7/components → ModalZoom}/ZoomModalV2.styled.js.map +0 -0
  74. /package/build/es/components/organisms/{ProductGalleryMobile/ProductGalleryMobileV7/components → ModalZoom}/zoomModal.styled.js.map +0 -0
  75. /package/build/lib/components/organisms/{ProductGalleryMobile/ProductGalleryMobileV7/components → ModalZoom}/ZoomModalV2.styled.js.map +0 -0
  76. /package/build/lib/components/organisms/{ProductGalleryMobile/ProductGalleryMobileV7/components → ModalZoom}/zoomModal.styled.js.map +0 -0
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as r,jsxs as o,Fragment as e}from"react/jsx-runtime";import i from"@ant-design/react-slick";import{useRef as s,useState as l,useEffect as a,useLayoutEffect as m}from"react";import"../../../../PackSelectorV2/PackSelectoV2.js";import"../../../../absorbency-level/AbsorbencyLevel.js";import"../../../../accordion-options/AccordionOptions.js";import"../../../../accordion/Accordion.js";import"../../../../../types/enums.js";import"../../../../../core/theme/Theme.js";import"../../../../../utils/constants/offerAtCart.js";import{debounce as p}from"../../../../../utils/debounce/index.js";import"../../../../../utils/media.js";import"../../../../../utils/mock-content/CancellationFlowAccordion.js";import"../../../../dropdown/variants/simple/SimpleDropdown.js";import"../../../../pricing/clubOffer/ClubOfferTag.js";import"../../../../pricing/discount/styled.js";import"../../../../pricing/styles.js";import"../../../../tooltip/Styled.js";import"../../../../atoms/PriceLabel/PriceLabel.js";import"../../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../../../atoms/Icon/Icon.js";import{Image as d}from"../../../../atoms/Image/Image.js";import"../../../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../../../atoms/Toggle/toggle.styled.js";import"../../../../radio/input/styles.js";import"../../../../autoship/styled.js";import"../../../../autoshipV2/styled.js";import"../../../../before-after/BeforeAfter.js";import"../../../../pricing/priceLabelV3/PriceLabelV3.js";import"../../../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../../../shared/card/Card.js";import"../../../../bundle/minimalistic/styled.js";import"../../../../text/Text.js";import"../../../../bundle/motivator/styled.js";import"../../../../bundle/simple/Simple.js";import"../../../../buynowpaylater/BuyNowPayLater.js";import"../../../../offer-banner/OfferBanner.js";import"../../../../cartProductItem/CloseIcon/CloseButton.js";import"../../../../cartProductItem/Description/Description.js";import"../../../../cartProductItem/Promo/Promo.js";import"../../../../cartProductItem/Title/Title.js";import"../../../../cartProductItem/TrashIcon/styled.js";import"../../../../checkbox/Checkbox.js";import"../../../../collection/grid/WithProductGrid.js";import"@emotion/react/jsx-runtime";import"../../../../SkeletonBox/SkeletonBox.js";import"../../../../club-price-label/ClubPriceLabel.js";import"../../../../strength-bars/StrengthBars.js";import"../../../../pricing/priceLabelV4/PriceLabelV4.js";import"../../../../rating/starList/StarList.js";import"../../../../rating/styles.js";import"../../../../collection/product/mobile/styled.js";import"../../../../icon-button/IconButton.js";import"../../../../tag/variants/product/styled.js";import"../../../../collection/product/truekind/styled.js";import"../../../../color/ColorRadioGroup.js";import"../../../../color/selector/PatternSelector.js";import"../../../../color/styles/ColorPickerwithTootip.styled.js";import"../../../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../../../cta/styled.js";import"../../../../delivery-details/DeliveryDetails.js";import"../../../../delivery-details/Note/Note.js";import"../../../../drawer/style.js";import"../../../../dropdown-list-icons/Styled.js";import"../../../../dropdown/size-dropdown/Styled.js";import"../../../../dropdown/variants/dialog/DropdownDialog.js";import"../../../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../../../input/base/Error.js";import"../../../../shared/select/BaseSelect.js";import"../../../../dropdown/variants/smart/styled.js";import"../../../../filtering/Accordion.js";import"../../../../filtering/FiltersStyled.js";import"../../../../filtering/Tags/Tags.js";import"../../../../fit-guarantee/FitGuarantee.js";import"../../../../fit/FitPredictor.js";import{Video as n}from"../../../../molecules/Video/Video.js";import"../../../../slider/ArrowButton.js";import"../../../../slider/StyledSlider.js";import"../../../../gallery/components/ImageSmallPreview/styled.js";import"../../../../gallery/components/ImagePreviewList/styled.js";import"../../../../gallery/components/ImageProductSlide/styled.js";import"../../../../gallery/styled.js";import"../../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../../../iconsWithTitle/index.js";import"../../../../image-card/ImageCard.js";import"../../../../input/label/Label.js";import"../../../../input/base/Styled.js";import"../../../../input/custom/Custom.js";import"../../../../input/basePlusButton/BasePlusButton.js";import"../../../../input/basePlusIcon/BasePlusIcon.js";import"../../../../modal/Modal.js";import"../../../../motivator-progress-bar/MotivatorProgressBar.js";import"../../../../order-bar/OrderBar.js";import"../../../../packs/selector/PackSelector.js";import"../../../../pagination/styles.js";import"../../../../payment-methods/PaymentMethod.js";import"../../../../product/order/item/SimpleOrderItem.js";import"../../../../progress-bar/ProgressBar.js";import"../../../../quantityPicker/styled.js";import"../../../../radio/RadioPrimary/radioPrimary.js";import"../../../../radio/clubRadioInput/clubRadio.js";import"../../../../review-detail/ReviewDetail.js";import"../../../../review/Review.js";import"../../../../reviews-header/ReviewsHeader.js";import"../../../../scroll-to-top/ScrollToTop.js";import"../../../../search-bar/components/ClearButton/styled.js";import"../../../../search-bar/components/Footer/styled.js";import"../../../../search-bar/components/ProductItem/styled.js";import"../../../../search-bar/components/ResultsPanel/styled.js";import"../../../../search-bar/components/SearchControl/styled.js";import"../../../../search-bar/styled.js";import"../../../../search-navigation/styled.js";import"react-dom";import"../../../../short-banner/ShortBanner.js";import"../../../../size-chart/styled.js";import"../../../../size-table/SizeTable.js";import"../../../../size/guide/SizeFitGuide.js";import"../../../../size/selector/styled.js";import"../../../../tabs/Tab.js";import"../../../../tabs/Tabs.js";import"../../../../tag/Tag.js";import"@emotion/react";import"../../../../textWithImage/index.js";import"../../../../timer/styled.js";import"../../../../toast/Toast.js";import"../../../../totals/total/styled.js";import"../../../../totals/subtotal/Subtotal.js";import"../../../../tracking-progress-v2/TrackingProgressV2.js";import"../../../../tracking-progress/TrackingProgress.js";import"../../../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../../../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../../../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../../../BasicAccordion/BasicAccordion.js";import"../../../CartItemCard/CartItem.js";import"../../../ClubOfferSelector/styled.js";import"../../../ClubOfferSelector2/styled.js";import"../../../JoinClubCard/joinClubCard.js";import"../../../OfferAtCart/styled.js";import"../../../OfferAtCartV2/styled.js";import"../../../OfferAtCartV3/styled.js";import"../../../OfferAtCartV4/styled.js";import"../../../OfferAtPDP/styled.js";import"../../../OfferAtPDP/types.js";import"../../../ProductCard/ProductCardV1/ProductCard.js";import"../../../ProductCard/ProductCardV2/styled.js";import"../../../ProductCard/ProductCardV3/styled.js";import"../../ProductGalleryMobileV1/ProductGalleryMobile.js";import"../../ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../../ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"../../ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../../ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../../ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../../ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../../ProductGalleryMobileV5/styled.js";import"../ColorVariantsGallery/styled.js";import{MainGalleryContainer as c,TopTag as j,BottomTag as u,TopRightTag as y}from"./styled.js";import"../styled.js";import"../../ProductGalleryMobileV7/ProductGalleryMobile.js";import"../../../SizeCharTable/SizeChartTableV2/styled.js";import"../../../SizeCharTable/SizeChartTableV3/styled.js";import"../../../../molecules/ArrowTip/ArrowTip.styled.js";import"../../../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import"../../../SubscriptionPlanSelector/styled.js";import"../../../TwoCtasAtCart/Greeting.styled.js";import"../../../TwoCtasAtCart/Card.styled.js";import"../../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../../../molecules/CouponCard/styled.js";import"../../../../molecules/BenefitsList/styled.js";import"../../../../molecules/HurryUp/styled.js";import"../../../../molecules/Spinner/styled.js";import"../../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../../../molecules/LikeButton/styled.js";import"../../../../molecules/ScarcityTag/ScarcityTag.styled.js";var b={dots:!1,infinite:!1,speed:200,slidesToScroll:1,initialSlide:0},f=function(t){if(!(null==t?void 0:t.current))return 1.1;return(t.current.offsetWidth-15)/312-1e-4},P=function(P){var g,C,h,v=P.contents,S=P.topTag,T=P.topRightTag,V=P.bottomTag,w=P.containerRef,A=s(null),I=s(null),B=l(null!==(g=f(w))&&void 0!==g?g:1),L=B[0],G=B[1],k=null===(C=null==v?void 0:v[0])||void 0===C?void 0:C.key;return a((function(){var t;null===(t=A.current)||void 0===t||t.slickGoTo(0,!0)}),[k]),m((function(){if(null==w?void 0:w.current){var t=p((function(){var t;G(null!==(t=f(w))&&void 0!==t?t:1)}),300);return t(),window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}}),[w,null===(h=null==w?void 0:w.current)||void 0===h?void 0:h.offsetWidth]),r(c,t({ref:I},{children:r(i,t({},b,{slidesToShow:L,ref:A,centerPadding:"80"},{children:v.map((function(i,s){var l,a=null==i?void 0:i.url,m=null!==(l=null==i?void 0:i.isVideo)&&void 0!==l&&l;return r("div",t({"data-testid":"main-gallery-div-content-".concat(s)},{children:m?r(n,{source:a,thumbnail:null==i?void 0:i.thumbnailUrl},void 0):o(e,{children:[r(d,{src:a,alt:i.alt,width:"".concat(312,"px"),loading:"eager"},void 0),r(j,t({"data-testid":"topTag"},{children:S}),void 0),r(u,t({"data-testid":"bottomTag"},{children:V}),void 0),!!T&&r(y,{children:T},void 0)]},void 0)}),i.key)}))}),void 0)}),void 0)};export{P as MainGallery};
1
+ import{__assign as t}from"tslib";import{jsx as r,jsxs as o,Fragment as e}from"react/jsx-runtime";import i from"@ant-design/react-slick";import{useRef as s,useState as l,useEffect as a,useLayoutEffect as m}from"react";import"../../../../PackSelectorV2/PackSelectoV2.js";import"../../../../absorbency-level/AbsorbencyLevel.js";import"../../../../accordion-options/AccordionOptions.js";import"../../../../accordion/Accordion.js";import"../../../../../types/enums.js";import"../../../../../core/theme/Theme.js";import"../../../../../utils/constants/offerAtCart.js";import{debounce as p}from"../../../../../utils/debounce/index.js";import"../../../../../utils/media.js";import"../../../../../utils/mock-content/CancellationFlowAccordion.js";import"../../../../dropdown/variants/simple/SimpleDropdown.js";import"../../../../pricing/clubOffer/ClubOfferTag.js";import"../../../../pricing/discount/styled.js";import"../../../../pricing/styles.js";import"../../../../tooltip/Styled.js";import"../../../../atoms/PriceLabel/PriceLabel.js";import"../../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../../../atoms/Icon/Icon.js";import{Image as d}from"../../../../atoms/Image/Image.js";import"../../../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../../../atoms/Toggle/toggle.styled.js";import"../../../../radio/input/styles.js";import"../../../../autoship/styled.js";import"../../../../autoshipV2/styled.js";import"../../../../before-after/BeforeAfter.js";import"../../../../pricing/priceLabelV3/PriceLabelV3.js";import"../../../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../../../shared/card/Card.js";import"../../../../bundle/minimalistic/styled.js";import"../../../../text/Text.js";import"../../../../bundle/motivator/styled.js";import"../../../../bundle/simple/Simple.js";import"../../../../buynowpaylater/BuyNowPayLater.js";import"../../../../offer-banner/OfferBanner.js";import"../../../../cartProductItem/CloseIcon/CloseButton.js";import"../../../../cartProductItem/Description/Description.js";import"../../../../cartProductItem/Promo/Promo.js";import"../../../../cartProductItem/Title/Title.js";import"../../../../cartProductItem/TrashIcon/styled.js";import"../../../../checkbox/Checkbox.js";import"../../../../collection/grid/WithProductGrid.js";import"@emotion/react/jsx-runtime";import"../../../../SkeletonBox/SkeletonBox.js";import"../../../../club-price-label/ClubPriceLabel.js";import"../../../../strength-bars/StrengthBars.js";import"../../../../pricing/priceLabelV4/PriceLabelV4.js";import"../../../../rating/starList/StarList.js";import"../../../../rating/styles.js";import"../../../../collection/product/mobile/styled.js";import"../../../../icon-button/IconButton.js";import"../../../../tag/variants/product/styled.js";import"../../../../collection/product/truekind/styled.js";import"../../../../color/ColorRadioGroup.js";import"../../../../color/selector/PatternSelector.js";import"../../../../color/styles/ColorPickerwithTootip.styled.js";import"../../../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../../../cta/styled.js";import"../../../../delivery-details/DeliveryDetails.js";import"../../../../delivery-details/Note/Note.js";import"../../../../drawer/style.js";import"../../../../dropdown-list-icons/Styled.js";import"../../../../dropdown/size-dropdown/Styled.js";import"../../../../dropdown/variants/dialog/DropdownDialog.js";import"../../../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../../../input/base/Error.js";import"../../../../shared/select/BaseSelect.js";import"../../../../dropdown/variants/smart/styled.js";import"../../../../filtering/Accordion.js";import"../../../../filtering/FiltersStyled.js";import"../../../../filtering/Tags/Tags.js";import"../../../../fit-guarantee/FitGuarantee.js";import"../../../../fit/FitPredictor.js";import"../../../../modal/Modal.js";import"../../../ModalZoom/zoomModal.styled.js";import"react-zoom-pan-pinch";import"../../../ModalZoom/ZoomModalV2.styled.js";import{Video as n}from"../../../../molecules/Video/Video.js";import"../../../../slider/ArrowButton.js";import"../../../../slider/StyledSlider.js";import"../../../../gallery/components/ImageSmallPreview/styled.js";import"../../../../gallery/components/ImagePreviewList/styled.js";import"../../../../gallery/components/ImageProductSlide/styled.js";import"../../../../gallery/styled.js";import"../../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../../../iconsWithTitle/index.js";import"../../../../image-card/ImageCard.js";import"../../../../input/label/Label.js";import"../../../../input/base/Styled.js";import"../../../../input/custom/Custom.js";import"../../../../input/basePlusButton/BasePlusButton.js";import"../../../../input/basePlusIcon/BasePlusIcon.js";import"../../../../motivator-progress-bar/MotivatorProgressBar.js";import"../../../../order-bar/OrderBar.js";import"../../../../packs/selector/PackSelector.js";import"../../../../pagination/styles.js";import"../../../../payment-methods/PaymentMethod.js";import"../../../../product/order/item/SimpleOrderItem.js";import"../../../../progress-bar/ProgressBar.js";import"../../../../quantityPicker/styled.js";import"../../../../radio/RadioPrimary/radioPrimary.js";import"../../../../radio/clubRadioInput/clubRadio.js";import"../../../../review-detail/ReviewDetail.js";import"../../../../review/Review.js";import"../../../../reviews-header/ReviewsHeader.js";import"../../../../scroll-to-top/ScrollToTop.js";import"../../../../search-bar/components/ClearButton/styled.js";import"../../../../search-bar/components/Footer/styled.js";import"../../../../search-bar/components/ProductItem/styled.js";import"../../../../search-bar/components/ResultsPanel/styled.js";import"../../../../search-bar/components/SearchControl/styled.js";import"../../../../search-bar/styled.js";import"../../../../search-navigation/styled.js";import"react-dom";import"../../../../short-banner/ShortBanner.js";import"../../../../size-chart/styled.js";import"../../../../size-table/SizeTable.js";import"../../../../size/guide/SizeFitGuide.js";import"../../../../size/selector/styled.js";import"../../../../tabs/Tab.js";import"../../../../tabs/Tabs.js";import"../../../../tag/Tag.js";import"@emotion/react";import"../../../../textWithImage/index.js";import"../../../../timer/styled.js";import"../../../../toast/Toast.js";import"../../../../totals/total/styled.js";import"../../../../totals/subtotal/Subtotal.js";import"../../../../tracking-progress-v2/TrackingProgressV2.js";import"../../../../tracking-progress/TrackingProgress.js";import"../../../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../../../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../../../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../../../BasicAccordion/BasicAccordion.js";import"../../../CartItemCard/CartItem.js";import"../../../ClubOfferSelector/styled.js";import"../../../ClubOfferSelector2/styled.js";import"../../../JoinClubCard/joinClubCard.js";import"../../../OfferAtCart/styled.js";import"../../../OfferAtCartV2/styled.js";import"../../../OfferAtCartV3/styled.js";import"../../../OfferAtCartV4/styled.js";import"../../../OfferAtPDP/styled.js";import"../../../OfferAtPDP/types.js";import"../../../ProductCard/ProductCardV1/ProductCard.js";import"../../../ProductCard/ProductCardV2/styled.js";import"../../../ProductCard/ProductCardV3/styled.js";import"../../ProductGalleryMobileV1/ProductGalleryMobile.js";import"../../ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../../ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"../../ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../../ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../../ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../../ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../../ProductGalleryMobileV5/styled.js";import"../ColorVariantsGallery/styled.js";import{MainGalleryContainer as c,TopTag as j,BottomTag as u,TopRightTag as y}from"./styled.js";import"../styled.js";import"../../ProductGalleryMobileV7/ProductGalleryMobile.js";import"../../../SizeCharTable/SizeChartTableV2/styled.js";import"../../../SizeCharTable/SizeChartTableV3/styled.js";import"../../../../molecules/ArrowTip/ArrowTip.styled.js";import"../../../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import"../../../SubscriptionPlanSelector/styled.js";import"../../../TwoCtasAtCart/Greeting.styled.js";import"../../../TwoCtasAtCart/Card.styled.js";import"../../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../../../molecules/CouponCard/styled.js";import"../../../../molecules/BenefitsList/styled.js";import"../../../../molecules/HurryUp/styled.js";import"../../../../molecules/Spinner/styled.js";import"../../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../../../molecules/LikeButton/styled.js";import"../../../../molecules/ScarcityTag/ScarcityTag.styled.js";var b={dots:!1,infinite:!1,speed:200,slidesToScroll:1,initialSlide:0},f=function(t){if(!(null==t?void 0:t.current))return 1.1;return(t.current.offsetWidth-15)/312-1e-4},P=function(P){var g,C,h,v=P.contents,S=P.topTag,T=P.topRightTag,V=P.bottomTag,w=P.containerRef,A=s(null),I=s(null),B=l(null!==(g=f(w))&&void 0!==g?g:1),L=B[0],G=B[1],k=null===(C=null==v?void 0:v[0])||void 0===C?void 0:C.key;return a((function(){var t;null===(t=A.current)||void 0===t||t.slickGoTo(0,!0)}),[k]),m((function(){if(null==w?void 0:w.current){var t=p((function(){var t;G(null!==(t=f(w))&&void 0!==t?t:1)}),300);return t(),window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}}),[w,null===(h=null==w?void 0:w.current)||void 0===h?void 0:h.offsetWidth]),r(c,t({ref:I},{children:r(i,t({},b,{slidesToShow:L,ref:A,centerPadding:"80"},{children:v.map((function(i,s){var l,a=null==i?void 0:i.url,m=null!==(l=null==i?void 0:i.isVideo)&&void 0!==l&&l;return r("div",t({"data-testid":"main-gallery-div-content-".concat(s)},{children:m?r(n,{source:a,thumbnail:null==i?void 0:i.thumbnailUrl},void 0):o(e,{children:[r(d,{src:a,alt:i.alt,width:"".concat(312,"px"),loading:"eager"},void 0),r(j,t({"data-testid":"topTag"},{children:S}),void 0),r(u,t({"data-testid":"bottomTag"},{children:V}),void 0),!!T&&r(y,{children:T},void 0)]},void 0)}),i.key)}))}),void 0)}),void 0)};export{P as MainGallery};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as t}from"tslib";import"react/jsx-runtime";import r from"@emotion/styled";import"react";import"@ant-design/react-slick";import"../../../../types/enums.js";import"../../../../core/theme/Theme.js";import"../../../atoms/Image/styled.js";import"@emotion/react/jsx-runtime";import"../../../cta/styled.js";import"../../../modal/Modal.js";import"../../../pricing/clubOffer/ClubOfferTag.js";import"../../../pricing/discount/styled.js";import"../../../pricing/styles.js";import"../../../tooltip/Styled.js";import"../../../atoms/PriceLabel/PriceLabel.js";import"../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../../atoms/Icon/Icon.js";import"../../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../../atoms/Toggle/toggle.styled.js";import"../../../PackSelectorV2/PackSelectoV2.js";import"../../../absorbency-level/AbsorbencyLevel.js";import"../../../accordion-options/AccordionOptions.js";import"../../../accordion/Accordion.js";import"../../../../utils/constants/offerAtCart.js";import"../../../../utils/media.js";import"../../../../utils/mock-content/CancellationFlowAccordion.js";import"../../../dropdown/variants/simple/SimpleDropdown.js";import"../../../radio/input/styles.js";import"../../../autoship/styled.js";import"../../../autoshipV2/styled.js";import"../../../before-after/BeforeAfter.js";import"../../../pricing/priceLabelV3/PriceLabelV3.js";import"../../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../../shared/card/Card.js";import"../../../bundle/minimalistic/styled.js";import"../../../text/Text.js";import"../../../bundle/motivator/styled.js";import"../../../bundle/simple/Simple.js";import"../../../buynowpaylater/BuyNowPayLater.js";import"../../../offer-banner/OfferBanner.js";import"../../../cartProductItem/CloseIcon/CloseButton.js";import"../../../cartProductItem/Description/Description.js";import"../../../cartProductItem/Promo/Promo.js";import"../../../cartProductItem/Title/Title.js";import"../../../cartProductItem/TrashIcon/styled.js";import"../../../checkbox/Checkbox.js";import"../../../collection/grid/WithProductGrid.js";import"../../../SkeletonBox/SkeletonBox.js";import"../../../club-price-label/ClubPriceLabel.js";import"../../../strength-bars/StrengthBars.js";import"../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../../rating/starList/StarList.js";import"../../../rating/styles.js";import"../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../../molecules/CouponCard/styled.js";import"@emotion/react";import"../../../molecules/ArrowTip/ArrowTip.styled.js";import"../../../molecules/BenefitsList/styled.js";import"../../../timer/styled.js";import"../../../molecules/HurryUp/styled.js";import"../../../molecules/Spinner/styled.js";import"../../../molecules/Video/components/styled.js";import"../../../molecules/Video/styled.js";import"../../../iconsWithTitle/index.js";import"../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../../molecules/LikeButton/styled.js";import"../../../icon-button/IconButton.js";import"../../../molecules/ScarcityTag/ScarcityTag.styled.js";import"../../../pricing/priceLabelV4/PriceLabelV4.js";import"../../../collection/product/mobile/styled.js";import"../../../tag/variants/product/styled.js";import"../../../collection/product/truekind/styled.js";import"../../../color/ColorRadioGroup.js";import"../../../color/selector/PatternSelector.js";import"../../../color/styles/ColorPickerwithTootip.styled.js";import"../../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../../delivery-details/DeliveryDetails.js";import"../../../delivery-details/Note/Note.js";import"../../../drawer/style.js";import"../../../dropdown-list-icons/Styled.js";import"../../../dropdown/size-dropdown/Styled.js";import"../../../dropdown/variants/dialog/DropdownDialog.js";import"../../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../../input/base/Error.js";import"../../../shared/select/BaseSelect.js";import"../../../dropdown/variants/smart/styled.js";import"../../../filtering/Accordion.js";import"../../../filtering/FiltersStyled.js";import"../../../filtering/Tags/Tags.js";import"../../../fit-guarantee/FitGuarantee.js";import"../../../fit/FitPredictor.js";import"../../../slider/ArrowButton.js";import"../../../slider/StyledSlider.js";import"../../../gallery/components/ImageSmallPreview/styled.js";import"../../../gallery/components/ImagePreviewList/styled.js";import"../../../gallery/components/ImageProductSlide/styled.js";import"../../../gallery/styled.js";import"../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../../image-card/ImageCard.js";import"../../../input/label/Label.js";import"../../../input/base/Styled.js";import"../../../input/custom/Custom.js";import"../../../input/basePlusButton/BasePlusButton.js";import"../../../input/basePlusIcon/BasePlusIcon.js";import"../../../motivator-progress-bar/MotivatorProgressBar.js";import"../../../order-bar/OrderBar.js";import"../../../packs/selector/PackSelector.js";import"../../../pagination/styles.js";import"../../../payment-methods/PaymentMethod.js";import"../../../product/order/item/SimpleOrderItem.js";import"../../../progress-bar/ProgressBar.js";import"../../../quantityPicker/styled.js";import"../../../radio/RadioPrimary/radioPrimary.js";import"../../../radio/clubRadioInput/clubRadio.js";import"../../../review-detail/ReviewDetail.js";import"../../../review/Review.js";import"../../../reviews-header/ReviewsHeader.js";import"../../../scroll-to-top/ScrollToTop.js";import"../../../search-bar/components/ClearButton/styled.js";import"../../../search-bar/components/Footer/styled.js";import"../../../search-bar/components/ProductItem/styled.js";import"../../../search-bar/components/ResultsPanel/styled.js";import"../../../search-bar/components/SearchControl/styled.js";import"../../../search-bar/styled.js";import"../../../search-navigation/styled.js";import"react-dom";import"../../../short-banner/ShortBanner.js";import"../../../size-chart/styled.js";import"../../../size-table/SizeTable.js";import"../../../size/guide/SizeFitGuide.js";import"../../../size/selector/styled.js";import"../../../tabs/Tab.js";import"../../../tabs/Tabs.js";import"../../../tag/Tag.js";import"../../../textWithImage/index.js";import"../../../toast/Toast.js";import"../../../totals/total/styled.js";import"../../../totals/subtotal/Subtotal.js";import"../../../tracking-progress-v2/TrackingProgressV2.js";import"../../../tracking-progress/TrackingProgress.js";import"../../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../../BasicAccordion/BasicAccordion.js";import"../../CartItemCard/CartItem.js";import"../../ClubOfferSelector/styled.js";import"../../ClubOfferSelector2/styled.js";import"../../JoinClubCard/joinClubCard.js";import"../../OfferAtCart/styled.js";import"../../OfferAtCartV2/styled.js";import"../../OfferAtCartV3/styled.js";import"../../OfferAtCartV4/styled.js";import"../../OfferAtPDP/styled.js";import"../../OfferAtPDP/types.js";import"../../ProductCard/ProductCardV1/ProductCard.js";import"../../ProductCard/ProductCardV2/styled.js";import"../../ProductCard/ProductCardV3/styled.js";import"../ProductGalleryMobileV1/ProductGalleryMobile.js";import"../ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"../ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../ProductGalleryMobileV5/styled.js";import"../ProductGalleryMobileV6/ColorVariantsGallery/styled.js";import"../ProductGalleryMobileV6/MainGallery/styled.js";import"../ProductGalleryMobileV6/styled.js";import"../../SizeCharTable/SizeChartTableV2/styled.js";import"../../SizeCharTable/SizeChartTableV3/styled.js";import"../../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import"../../SubscriptionPlanSelector/styled.js";import"../../TwoCtasAtCart/Greeting.styled.js";import"../../TwoCtasAtCart/Card.styled.js";import"./components/ImageProductSlide.styled.js";import"./components/zoomModal.styled.js";import"react-zoom-pan-pinch";import"./components/ZoomModalV2.styled.js";var o;r.div(o||(o=t(["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"],["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"])));
1
+ import{__makeTemplateObject as o,__assign as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import t from"@emotion/styled";import{useState as d}from"react";import n from"./components/ImageProductSlide.js";var r,a=t.div(r||(r=o(["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"],["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"]))),l=function(o){var t=o.images,r=o.customClick,l=o.topTag,s=o.bottomTag,m=o.productImageDataTestId,v=o.borderRadiusVariant,p=void 0!==v&&v,c=o.selectedValue,u=o.hasToPreserveOrder,f=void 0!==u&&u,g=o.itemsOnViewport,h=void 0===g?1:g,x=o.videoAutoplay,V=void 0!==x&&x,b=o.hideVideoControls,y=void 0!==b&&b,T=o.videoMuted,C=void 0===T||T,w=o.videoLoop,I=void 0===w||w,O=o.version,j=void 0===O?"v1":O,k=d(0),A=k[0],L=k[1],M=f?null==t?void 0:t[A]:c;return i(a,e({"data-testid":"product-gallery-mobile-v1"},{children:i(n,{contents:t,customClick:r,topTag:l,bottomTag:s,testId:m,borderRadiusVariant:p,selectedValue:M,onChange:function(o){return L(o)},itemsOnViewport:h,videoAutoplay:V,hideVideoControls:y,videoMuted:C,videoLoop:I,version:j},void 0)}),void 0)};export{l as ProductGalleryMobileV7};
2
2
  //# sourceMappingURL=ProductGalleryMobile.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as o}from"tslib";import{jsxs as i,Fragment as t,jsx as r}from"react/jsx-runtime";import e from"@ant-design/react-slick";import{useRef as n,useState as d,useCallback as l,useEffect as a}from"react";import{Image as c}from"../../../../atoms/Image/Image.js";import m from"../../../../cta/primary/ButtonPrimary.js";import"@emotion/react/jsx-runtime";import"../../../../../core/theme/Theme.js";import"../../../../../types/enums.js";import"../../../../cta/styled.js";import{ZoomModalComponent as s}from"../../../ModalZoom/index.js";import{usePreventVerticalScroll as u}from"../../../../../hooks/usePreventVerticalScroll/usePreventVerticalScroll.js";import{Icon as v}from"../../../../icons/index.js";import{stopVideoCommand as f,playVideoCommand as p}from"../../utils/sendCommandToIframe.js";import{Container as h,NavButtonContainer as g,Button as j,TopTagContainer as x,BottomTagContainer as y}from"./ImageProductSlide.styled.js";import{VideoDisplay as k}from"../../../ModalZoom/VideoDisplay.js";import{ZoomButtonComponent as T}from"../../../ModalZoom/ZoomButton.js";var w={dots:!0,infinite:!1,speed:200,slidesToShow:1,slidesToScroll:1,initialSlide:0},V=function(V){var C=V.contents,I=V.customClick,S=void 0!==I&&I,b=V.topTag,A=V.bottomTag,B=V.testId,P=V.borderRadiusVariant,R=V.selectedValue,Z=V.onChange,M=V.version,z=n(null),G=n(null),D=d(!1),L=D[0],q=D[1],E=d(0),F=E[0],H=E[1],J="zoom-modal-".concat(B||"default");u(G);var K=l((function(o){var i;null===(i=z.current)||void 0===i||i.slickGoTo(o)}),[z]);return a((function(){var o;if(R){var i=C.findIndex((function(o){return o.url===R.url}));-1!==i&&(null===(o=z.current)||void 0===o||o.slickGoTo(i))}}),[C,R]),i(t,{children:[S&&r("div",o({style:{display:"flex",marginBottom:"20px",gap:"10px"}},{children:C.map((function(o,i){return r(m,{onClick:function(){return K(i)},text:String(i+1),inline:!0},o.key||"button-".concat(i))}))}),void 0),r(h,o({"data-testid":B,borderRadiusVariant:P,ref:G},{children:r(e,o({afterChange:function(o){var i,t=C[o];(null===(i=null==t?void 0:t.url)||void 0===i?void 0:i.includes("autoplay=1"))?p():f(),H(o),null==Z||Z(o)}},w,{nextArrow:r(g,{children:r(j,{children:r(v.Arrows.ChevronRight,{height:2.125,width:1.25,fill:"#292929"},void 0)},void 0)},void 0),prevArrow:r(g,{children:r(j,{children:r(v.Arrows.ChevronLeft,{height:2.125,width:1.25,fill:"#292929"},void 0)},void 0)},void 0),ref:z,vertical:L,rows:1},{children:C.map((function(e){var n,d=null==e?void 0:e.url,l=null!==(n=null==e?void 0:e.isVideo)&&void 0!==n&&n,a=(e.alt,"100%"),m="510px";return r("div",{children:l?r(k,{content:e},e.key):i(t,{children:[r(c,{src:d,height:m,alt:e.alt,width:a},void 0),b&&r(x,o({borderRadiusVariant:P,"data-testid":"topTag"},{children:b}),void 0),r(y,o({onClick:function(){return q(!0)},"data-testid":"bottomTag"},{children:A}),void 0),r(T,{zoomVersion:M,modalId:"".concat(J)},void 0)]},void 0)},e.key)}))}),void 0)}),void 0),Boolean(M)&&r(s,{version:M,modalId:"".concat(J,"-").concat(M),contents:C,initialSlide:F},void 0)]},void 0)};export{V as default};
2
+ //# sourceMappingURL=ImageProductSlide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageProductSlide.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"tslib";import r from"@emotion/styled";var o,t,e,i,a,d,s;r.div(o||(o=n(["\n ","\n position: relative;\n max-height: 524px;\n overflow: hidden;\n & .slick-dots li.slick-active button:before {\n background-color: ",";\n }\n"],["\n ","\n position: relative;\n max-height: 524px;\n overflow: hidden;\n & .slick-dots li.slick-active button:before {\n background-color: ",";\n }\n"])),(function(n){return n.borderRadiusVariant&&"\n border-radius: 40px;\n "}),(function(n){return n.theme.component.slideNavigation.slideDots.selectedDotColor})),r.div(t||(t=n(["\n position: absolute;\n left: ",";\n top: ",";\n"],["\n position: absolute;\n left: ",";\n top: ",";\n"])),(function(n){return n.borderRadiusVariant?"13px":"0"}),(function(n){return n.borderRadiusVariant?"11px":"0"})),r.div(e||(e=n(["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"],["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"]))),r.div(i||(i=n(["\n position: absolute;\n ","\n right: 0.5rem;\n z-index: 10;\n"],["\n position: absolute;\n ","\n right: 0.5rem;\n z-index: 10;\n"])),(function(n){return n.isMobile?"bottom: 3rem;":"top: 1rem;"})),r.button(a||(a=n(["\n background: rgba(41, 41, 41, 0.5);\n border: none;\n border-radius: 50%;\n padding: 0.75rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s;\n backdrop-filter: blur(4px);\n\n &:hover {\n background: rgba(0, 0, 0, 0.8);\n }\n\n &:active {\n transform: scale(0.95);\n }\n"],["\n background: rgba(41, 41, 41, 0.5);\n border: none;\n border-radius: 50%;\n padding: 0.75rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s;\n backdrop-filter: blur(4px);\n\n &:hover {\n background: rgba(0, 0, 0, 0.8);\n }\n\n &:active {\n transform: scale(0.95);\n }\n"]))),r.div(d||(d=n(["\n height: 40px;\n width: 40px;\n"],["\n height: 40px;\n width: 40px;\n"]))),r.button(s||(s=n(["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"],["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"])));
1
+ import{__makeTemplateObject as n}from"tslib";import r from"@emotion/styled";var o=r.div(i||(i=n(["\n ","\n position: relative;\n max-height: 524px;\n overflow: hidden;\n & .slick-dots li.slick-active button:before {\n background-color: ",";\n }\n"],["\n ","\n position: relative;\n max-height: 524px;\n overflow: hidden;\n & .slick-dots li.slick-active button:before {\n background-color: ",";\n }\n"])),(function(n){return n.borderRadiusVariant&&"\n border-radius: 40px;\n "}),(function(n){return n.theme.component.slideNavigation.slideDots.selectedDotColor})),t=r.div(a||(a=n(["\n position: absolute;\n left: ",";\n top: ",";\n"],["\n position: absolute;\n left: ",";\n top: ",";\n"])),(function(n){return n.borderRadiusVariant?"13px":"0"}),(function(n){return n.borderRadiusVariant?"11px":"0"})),e=r.div(d||(d=n(["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"],["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"])));r.div(s||(s=n(["\n position: absolute;\n ","\n right: 0.5rem;\n z-index: 10;\n"],["\n position: absolute;\n ","\n right: 0.5rem;\n z-index: 10;\n"])),(function(n){return n.isMobile?"bottom: 3rem;":"top: 1rem;"})),r.button(b||(b=n(["\n background: rgba(41, 41, 41, 0.5);\n border: none;\n border-radius: 50%;\n padding: 0.75rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s;\n backdrop-filter: blur(4px);\n\n &:hover {\n background: rgba(0, 0, 0, 0.8);\n }\n\n &:active {\n transform: scale(0.95);\n }\n"],["\n background: rgba(41, 41, 41, 0.5);\n border: none;\n border-radius: 50%;\n padding: 0.75rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s;\n backdrop-filter: blur(4px);\n\n &:hover {\n background: rgba(0, 0, 0, 0.8);\n }\n\n &:active {\n transform: scale(0.95);\n }\n"])));var i,a,d,s,b,p,u,c=r.div(p||(p=n(["\n height: 40px;\n width: 40px;\n"],["\n height: 40px;\n width: 40px;\n"]))),l=r.button(u||(u=n(["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"],["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"])));export{e as BottomTagContainer,l as Button,o as Container,c as NavButtonContainer,t as TopTagContainer};
2
2
  //# sourceMappingURL=ImageProductSlide.styled.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as i,Fragment as r}from"react/jsx-runtime";import{useState as o,useEffect as s,useCallback as l,useMemo as c,Children as a,isValidElement as n,cloneElement as d}from"react";import{ComponentSize as m}from"../../../types/enums.js";import"../../../utils/constants/offerAtCart.js";import{decimalFormat as p}from"../../../utils/decimalParser/decimalParser.js";import"../../../utils/media.js";import"../../../utils/mock-content/CancellationFlowAccordion.js";import{Text as u}from"../../text/Text.js";import{Icon as b}from"../../icons/index.js";import{RadioInput as j}from"../../radio/input/radio.js";import{Tooltip as y}from"../../tooltip/Tooltip.js";import"../../PackSelectorV2/PackSelectoV2.js";import"../../absorbency-level/AbsorbencyLevel.js";import"../../accordion-options/AccordionOptions.js";import"../../accordion/Accordion.js";import"../../../core/theme/Theme.js";import"../../dropdown/variants/simple/SimpleDropdown.js";import"../../autoship/styled.js";import"../../autoshipV2/styled.js";import"../../before-after/BeforeAfter.js";import"../../pricing/clubOffer/ClubOfferTag.js";import"../../pricing/discount/styled.js";import"../../pricing/styles.js";import"../../atoms/PriceLabel/PriceLabel.js";import"../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../atoms/Icon/Icon.js";import"../../atoms/Image/styled.js";import"../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../atoms/Toggle/toggle.styled.js";import"../../pricing/priceLabelV3/PriceLabelV3.js";import"../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../shared/card/Card.js";import"../../bundle/minimalistic/styled.js";import"../../bundle/motivator/styled.js";import"../../bundle/simple/Simple.js";import"../../buynowpaylater/BuyNowPayLater.js";import"../../offer-banner/OfferBanner.js";import"../../cartProductItem/CloseIcon/CloseButton.js";import"../../cartProductItem/Description/Description.js";import"../../cartProductItem/Promo/Promo.js";import"../../cartProductItem/Title/Title.js";import"../../cartProductItem/TrashIcon/styled.js";import"../../checkbox/Checkbox.js";import"../../collection/grid/WithProductGrid.js";import"@emotion/react/jsx-runtime";import"../../SkeletonBox/SkeletonBox.js";import"../../club-price-label/ClubPriceLabel.js";import"../../strength-bars/StrengthBars.js";import"../../pricing/priceLabelV4/PriceLabelV4.js";import"../../rating/starList/StarList.js";import"../../rating/styles.js";import"../../collection/product/mobile/styled.js";import"../../icon-button/IconButton.js";import"../../tag/variants/product/styled.js";import"../../collection/product/truekind/styled.js";import"../../color/ColorRadioGroup.js";import"../../color/selector/PatternSelector.js";import"../../color/styles/ColorPickerwithTootip.styled.js";import"../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../cta/styled.js";import"../../delivery-details/DeliveryDetails.js";import"../../delivery-details/Note/Note.js";import"../../drawer/style.js";import"../../dropdown-list-icons/Styled.js";import"../../dropdown/size-dropdown/Styled.js";import"../../dropdown/variants/dialog/DropdownDialog.js";import"../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../input/base/Error.js";import"../../shared/select/BaseSelect.js";import"../../dropdown/variants/smart/styled.js";import"../../filtering/Accordion.js";import"../../filtering/FiltersStyled.js";import"../../filtering/Tags/Tags.js";import"../../fit-guarantee/FitGuarantee.js";import"../../fit/FitPredictor.js";import"../../molecules/Video/components/styled.js";import"../../molecules/Video/styled.js";import"../../slider/ArrowButton.js";import"../../slider/StyledSlider.js";import"../../gallery/components/ImageSmallPreview/styled.js";import"../../gallery/components/ImagePreviewList/styled.js";import"../../gallery/components/ImageProductSlide/styled.js";import"../../gallery/styled.js";import"../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../iconsWithTitle/index.js";import"../../image-card/ImageCard.js";import"../../input/label/Label.js";import"../../input/base/Styled.js";import"../../input/custom/Custom.js";import"../../input/basePlusButton/BasePlusButton.js";import"../../input/basePlusIcon/BasePlusIcon.js";import"../../modal/Modal.js";import"../../motivator-progress-bar/MotivatorProgressBar.js";import"../../order-bar/OrderBar.js";import"../../packs/selector/PackSelector.js";import"../../pagination/styles.js";import"../../payment-methods/PaymentMethod.js";import"../../product/order/item/SimpleOrderItem.js";import"../../progress-bar/ProgressBar.js";import"../../quantityPicker/styled.js";import"../../radio/RadioPrimary/radioPrimary.js";import"../../radio/clubRadioInput/clubRadio.js";import"../../review-detail/ReviewDetail.js";import"../../review/Review.js";import"../../reviews-header/ReviewsHeader.js";import"../../scroll-to-top/ScrollToTop.js";import"../../search-bar/components/ClearButton/styled.js";import"../../search-bar/components/Footer/styled.js";import"../../search-bar/components/ProductItem/styled.js";import"../../search-bar/components/ResultsPanel/styled.js";import"../../search-bar/components/SearchControl/styled.js";import"../../search-bar/styled.js";import"../../search-navigation/styled.js";import"react-dom";import"../../short-banner/ShortBanner.js";import"../../size-chart/styled.js";import"../../size-table/SizeTable.js";import"../../size/guide/SizeFitGuide.js";import"../../size/selector/styled.js";import"../../tabs/Tab.js";import"../../tabs/Tabs.js";import"../../tag/Tag.js";import"@emotion/react";import"../../textWithImage/index.js";import"../../timer/styled.js";import"../../toast/Toast.js";import"../../totals/total/styled.js";import"../../totals/subtotal/Subtotal.js";import"../../tracking-progress-v2/TrackingProgressV2.js";import"../../tracking-progress/TrackingProgress.js";import"../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../BasicAccordion/BasicAccordion.js";import"../CartItemCard/CartItem.js";import"../ClubOfferSelector/styled.js";import"../ClubOfferSelector2/styled.js";import"../JoinClubCard/joinClubCard.js";import"../OfferAtCart/styled.js";import"../OfferAtCartV2/styled.js";import"../OfferAtCartV3/styled.js";import"../OfferAtCartV4/styled.js";import"../OfferAtPDP/styled.js";import"../OfferAtPDP/types.js";import"../ProductCard/ProductCardV1/ProductCard.js";import"../ProductCard/ProductCardV2/styled.js";import"../ProductCard/ProductCardV3/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js";import"../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"@ant-design/react-slick";import"../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV5/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js";import"../SizeCharTable/SizeChartTableV2/styled.js";import"../SizeCharTable/SizeChartTableV3/styled.js";import"../../molecules/ArrowTip/ArrowTip.styled.js";import"../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import{Container as h,SubscriptionContainer as P,DiscountTag as f,SubscriptionHeader as g,FlexContainer as C,TooltipWrapper as T,StyledPrice as v,BenefitsContainer as k,SinglePurchaseContainer as S}from"./styled.js";import"../TwoCtasAtCart/Greeting.styled.js";import"../TwoCtasAtCart/Card.styled.js";import"../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../molecules/CouponCard/styled.js";import{AutoshipFrequencyDropdown as V}from"../../molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js";import{BenefitsList as G}from"../../molecules/BenefitsList/BenefitsList.js";import"../../molecules/HurryUp/styled.js";import"../../molecules/Spinner/styled.js";import"../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../molecules/LikeButton/styled.js";import"../../molecules/ScarcityTag/ScarcityTag.styled.js";var M=function(M){var A=M.children,w=M.benefits,I=M.tooltip,B=M.pricing,L=M.frequency,z=M.onChange,x=M.className,O=M.discountTagClassName,D=M.closeIcon,F=M.currencySymbol,N=M.discountLabel,R=M.radios,q=M.termsAndConditions,W=o({oneTime:R.oneTime,subscription:R.subscription}),H=W[0],$=W[1];s((function(){$((function(t){return e(e({},t),{oneTime:e(e({},t.oneTime),{checked:!t.oneTime.disabled&&t.oneTime.checked}),subscription:e(e({},t.subscription),{checked:!t.subscription.disabled&&t.subscription.checked})})}))}),[H.oneTime.disabled,H.subscription.disabled]);var E=o(null==L?void 0:L.values[0]),J=E[0],Q=E[1],U=B.listPrice,_=B.discountedPrice,K=B.subscriptionDiscountPercentage,X=Number((_-_*(K/100)).toFixed(2)),Y=Math.floor(U-X),Z=Y/U*100,ee=5*Math.round(Z/5),te=l((function(){return H.subscription.checked?Number((_-_*(K/100)).toFixed(2)):_}),[_,H.subscription.checked,K]),ie=c((function(){return{subscriptionPeriod:J,withSubscription:H.subscription.checked,originalPrice:U,discountedPrice:te()}}),[J,H.subscription.checked,U,te]);s((function(){ie&&z(ie)}),[ie,z]);var re=function(t){var i;"subscription"===(i=t)&&H.subscription.disabled||"oneTime"===i&&H.oneTime.disabled||($((function(i){return e(e({},i),{oneTime:e(e({},i.oneTime),{checked:"oneTime"===t}),subscription:e(e({},i.subscription),{checked:"subscription"===t})})})),"oneTime"===t?Q(void 0):"subscription"===t&&L&&Q(L.values[0]))};return t(h,e({className:x},{children:[t(P,e({highlighted:H.subscription.checked,onClick:function(){return re("subscription")},"data-testid":"subscription-purchase-block",disabled:H.subscription.disabled},{children:[i(f,e({className:O,selected:H.subscription.checked},{children:null!=N?N:"".concat(ee,"% OFF - SAVE ").concat(F).concat(Y.toFixed(2))}),void 0),t(g,e({showBorder:H.subscription.checked},{children:[t(C,e({"data-testid":"subscription-block",onClick:function(){return re("subscription")}},{children:[i(j,{label:R.subscription.label,icon:R.subscription.icon,name:"subscription",id:"subscription",value:"subscription",size:m.Medium,style:{marginRight:"10px"},useV2Style:!0,onChange:function(){$((function(t){return{subscription:e(e({},t.subscription),{checked:!0}),oneTime:e(e({},t.oneTime),{checked:!1})}}))},checked:!H.subscription.disabled&&H.subscription.checked,disabled:H.subscription.disabled},void 0),I&&i(T,{children:i(y,e({position:0,content:I.content,header:I.header,maxWidth:"248px",showCloseIcon:D,closeBtnSize:.7},{children:i(b.Actions.CircleQuestion,{width:1},void 0)}),void 0)},void 0)]}),void 0),i(v,{testId:"subscription",finalPrice:"$".concat(p(Number(X))),disabled:H.subscription.disabled,highlighted:!H.subscription.disabled&&H.subscription.highlighted,size:m.Large,originalPrice:"$".concat(p(Number(U)))},void 0)]}),void 0),H.subscription.checked&&t(r,{children:[i(k,e({disabled:H.subscription.disabled},{children:function(){var t=H.subscription.disabled;if(A){var r=t?{opacity:.5,pointerEvents:"none"}:{};return a.map(A,(function(t){return n(t)?d(t,{style:e(e({},t.props.style),r)}):t}))}return w?i(G,{benefits:w,disabled:t},void 0):null}()}),void 0),q&&i(u,e({variant:"link",underline:!0,href:q.url,size:"regular",target:"_blank"},{children:q.text}),void 0),(null==L?void 0:L.showFrequencyText)&&i(V,{frequency:L,onChange:function(e){Q(H.subscription.checked?e.value:void 0)}},void 0)]},void 0)]}),void 0),t(S,e({"data-testid":"single-purchase-block",highlighted:H.oneTime.checked,disabled:H.oneTime.disabled,onClick:function(){return re("oneTime")}},{children:[i(j,{label:R.oneTime.label,icon:R.oneTime.icon,name:"oneTime",id:"oneTime",value:"oneTime",size:m.Medium,onChange:function(){$((function(t){return{subscription:e(e({},t.subscription),{checked:!1}),oneTime:e(e({},t.oneTime),{checked:!0})}}))},useV2Style:!0,checked:!H.oneTime.disabled&&H.oneTime.checked,disabled:H.oneTime.disabled},void 0),i(v,{testId:"single-purchase",finalPrice:"$".concat(p(Number(_))),disabled:H.oneTime.disabled,highlighted:!H.oneTime.disabled&&H.oneTime.highlighted,size:m.Large,originalPrice:"$".concat(p(Number(U)))},void 0)]}),void 0)]}),void 0)};export{M as SubscriptionPlanSelector};
1
+ import{__assign as e}from"tslib";import{jsxs as t,jsx as i,Fragment as o}from"react/jsx-runtime";import{useState as r,useEffect as s,useCallback as l,useMemo as a,Children as c,isValidElement as d,cloneElement as n}from"react";import{ComponentSize as m}from"../../../types/enums.js";import"../../../utils/constants/offerAtCart.js";import{decimalFormat as p}from"../../../utils/decimalParser/decimalParser.js";import"../../../utils/media.js";import"../../../utils/mock-content/CancellationFlowAccordion.js";import{Text as u}from"../../text/Text.js";import{Icon as b}from"../../icons/index.js";import{RadioInput as j}from"../../radio/input/radio.js";import{Tooltip as y}from"../../tooltip/Tooltip.js";import"../../PackSelectorV2/PackSelectoV2.js";import"../../absorbency-level/AbsorbencyLevel.js";import"../../accordion-options/AccordionOptions.js";import"../../accordion/Accordion.js";import"../../../core/theme/Theme.js";import"../../dropdown/variants/simple/SimpleDropdown.js";import"../../autoship/styled.js";import"../../autoshipV2/styled.js";import"../../before-after/BeforeAfter.js";import"../../pricing/clubOffer/ClubOfferTag.js";import"../../pricing/discount/styled.js";import"../../pricing/styles.js";import"../../atoms/PriceLabel/PriceLabel.js";import"../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../atoms/Icon/Icon.js";import"../../atoms/Image/styled.js";import"../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../atoms/Toggle/toggle.styled.js";import"../../pricing/priceLabelV3/PriceLabelV3.js";import"../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../shared/card/Card.js";import"../../bundle/minimalistic/styled.js";import"../../bundle/motivator/styled.js";import"../../bundle/simple/Simple.js";import"../../buynowpaylater/BuyNowPayLater.js";import"../../offer-banner/OfferBanner.js";import"../../cartProductItem/CloseIcon/CloseButton.js";import"../../cartProductItem/Description/Description.js";import"../../cartProductItem/Promo/Promo.js";import"../../cartProductItem/Title/Title.js";import"../../cartProductItem/TrashIcon/styled.js";import"../../checkbox/Checkbox.js";import"../../collection/grid/WithProductGrid.js";import"@emotion/react/jsx-runtime";import"../../SkeletonBox/SkeletonBox.js";import"../../club-price-label/ClubPriceLabel.js";import"../../strength-bars/StrengthBars.js";import"../../pricing/priceLabelV4/PriceLabelV4.js";import"../../rating/starList/StarList.js";import"../../rating/styles.js";import"../../collection/product/mobile/styled.js";import"../../icon-button/IconButton.js";import"../../tag/variants/product/styled.js";import"../../collection/product/truekind/styled.js";import"../../color/ColorRadioGroup.js";import"../../color/selector/PatternSelector.js";import"../../color/styles/ColorPickerwithTootip.styled.js";import"../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../cta/styled.js";import"../../delivery-details/DeliveryDetails.js";import"../../delivery-details/Note/Note.js";import"../../drawer/style.js";import"../../dropdown-list-icons/Styled.js";import"../../dropdown/size-dropdown/Styled.js";import"../../dropdown/variants/dialog/DropdownDialog.js";import"../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../input/base/Error.js";import"../../shared/select/BaseSelect.js";import"../../dropdown/variants/smart/styled.js";import"../../filtering/Accordion.js";import"../../filtering/FiltersStyled.js";import"../../filtering/Tags/Tags.js";import"../../fit-guarantee/FitGuarantee.js";import"../../fit/FitPredictor.js";import"@ant-design/react-slick";import"../../modal/Modal.js";import"../ModalZoom/zoomModal.styled.js";import"react-zoom-pan-pinch";import"../ModalZoom/ZoomModalV2.styled.js";import"../../molecules/Video/components/styled.js";import"../../molecules/Video/styled.js";import"../../slider/ArrowButton.js";import"../../slider/StyledSlider.js";import"../../gallery/components/ImageSmallPreview/styled.js";import"../../gallery/components/ImagePreviewList/styled.js";import"../../gallery/components/ImageProductSlide/styled.js";import"../../gallery/styled.js";import"../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../iconsWithTitle/index.js";import"../../image-card/ImageCard.js";import"../../input/label/Label.js";import"../../input/base/Styled.js";import"../../input/custom/Custom.js";import"../../input/basePlusButton/BasePlusButton.js";import"../../input/basePlusIcon/BasePlusIcon.js";import"../../motivator-progress-bar/MotivatorProgressBar.js";import"../../order-bar/OrderBar.js";import"../../packs/selector/PackSelector.js";import"../../pagination/styles.js";import"../../payment-methods/PaymentMethod.js";import"../../product/order/item/SimpleOrderItem.js";import"../../progress-bar/ProgressBar.js";import"../../quantityPicker/styled.js";import"../../radio/RadioPrimary/radioPrimary.js";import"../../radio/clubRadioInput/clubRadio.js";import"../../review-detail/ReviewDetail.js";import"../../review/Review.js";import"../../reviews-header/ReviewsHeader.js";import"../../scroll-to-top/ScrollToTop.js";import"../../search-bar/components/ClearButton/styled.js";import"../../search-bar/components/Footer/styled.js";import"../../search-bar/components/ProductItem/styled.js";import"../../search-bar/components/ResultsPanel/styled.js";import"../../search-bar/components/SearchControl/styled.js";import"../../search-bar/styled.js";import"../../search-navigation/styled.js";import"react-dom";import"../../short-banner/ShortBanner.js";import"../../size-chart/styled.js";import"../../size-table/SizeTable.js";import"../../size/guide/SizeFitGuide.js";import"../../size/selector/styled.js";import"../../tabs/Tab.js";import"../../tabs/Tabs.js";import"../../tag/Tag.js";import"@emotion/react";import"../../textWithImage/index.js";import"../../timer/styled.js";import"../../toast/Toast.js";import"../../totals/total/styled.js";import"../../totals/subtotal/Subtotal.js";import"../../tracking-progress-v2/TrackingProgressV2.js";import"../../tracking-progress/TrackingProgress.js";import"../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../BasicAccordion/BasicAccordion.js";import"../CartItemCard/CartItem.js";import"../ClubOfferSelector/styled.js";import"../ClubOfferSelector2/styled.js";import"../JoinClubCard/joinClubCard.js";import"../OfferAtCart/styled.js";import"../OfferAtCartV2/styled.js";import"../OfferAtCartV3/styled.js";import"../OfferAtCartV4/styled.js";import"../OfferAtPDP/styled.js";import"../OfferAtPDP/types.js";import"../ProductCard/ProductCardV1/ProductCard.js";import"../ProductCard/ProductCardV2/styled.js";import"../ProductCard/ProductCardV3/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js";import"../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV5/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js";import"../SizeCharTable/SizeChartTableV2/styled.js";import"../SizeCharTable/SizeChartTableV3/styled.js";import"../../molecules/ArrowTip/ArrowTip.styled.js";import"../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import{Container as h,SubscriptionContainer as P,DiscountTag as f,SubscriptionHeader as g,FlexContainer as C,TooltipWrapper as T,StyledPrice as v,BenefitsContainer as k,SinglePurchaseContainer as S}from"./styled.js";import"../TwoCtasAtCart/Greeting.styled.js";import"../TwoCtasAtCart/Card.styled.js";import"../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../molecules/CouponCard/styled.js";import{AutoshipFrequencyDropdown as V}from"../../molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js";import{BenefitsList as M}from"../../molecules/BenefitsList/BenefitsList.js";import"../../molecules/HurryUp/styled.js";import"../../molecules/Spinner/styled.js";import"../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../molecules/LikeButton/styled.js";import"../../molecules/ScarcityTag/ScarcityTag.styled.js";var G=function(G){var A=G.children,w=G.benefits,I=G.tooltip,B=G.pricing,L=G.frequency,z=G.onChange,x=G.className,O=G.discountTagClassName,D=G.closeIcon,F=G.currencySymbol,N=G.discountLabel,R=G.radios,q=G.termsAndConditions,W=r({oneTime:R.oneTime,subscription:R.subscription}),H=W[0],$=W[1];s((function(){$((function(t){return e(e({},t),{oneTime:e(e({},t.oneTime),{checked:!t.oneTime.disabled&&t.oneTime.checked}),subscription:e(e({},t.subscription),{checked:!t.subscription.disabled&&t.subscription.checked})})}))}),[H.oneTime.disabled,H.subscription.disabled]);var E=r(null==L?void 0:L.values[0]),Z=E[0],J=E[1],Q=B.listPrice,U=B.discountedPrice,_=B.subscriptionDiscountPercentage,K=Number((U-U*(_/100)).toFixed(2)),X=Math.floor(Q-K),Y=X/Q*100,ee=5*Math.round(Y/5),te=l((function(){return H.subscription.checked?Number((U-U*(_/100)).toFixed(2)):U}),[U,H.subscription.checked,_]),ie=a((function(){return{subscriptionPeriod:Z,withSubscription:H.subscription.checked,originalPrice:Q,discountedPrice:te()}}),[Z,H.subscription.checked,Q,te]);s((function(){ie&&z(ie)}),[ie,z]);var oe=function(t){var i;"subscription"===(i=t)&&H.subscription.disabled||"oneTime"===i&&H.oneTime.disabled||($((function(i){return e(e({},i),{oneTime:e(e({},i.oneTime),{checked:"oneTime"===t}),subscription:e(e({},i.subscription),{checked:"subscription"===t})})})),"oneTime"===t?J(void 0):"subscription"===t&&L&&J(L.values[0]))};return t(h,e({className:x},{children:[t(P,e({highlighted:H.subscription.checked,onClick:function(){return oe("subscription")},"data-testid":"subscription-purchase-block",disabled:H.subscription.disabled},{children:[i(f,e({className:O,selected:H.subscription.checked},{children:null!=N?N:"".concat(ee,"% OFF - SAVE ").concat(F).concat(X.toFixed(2))}),void 0),t(g,e({showBorder:H.subscription.checked},{children:[t(C,e({"data-testid":"subscription-block",onClick:function(){return oe("subscription")}},{children:[i(j,{label:R.subscription.label,icon:R.subscription.icon,name:"subscription",id:"subscription",value:"subscription",size:m.Medium,style:{marginRight:"10px"},useV2Style:!0,onChange:function(){$((function(t){return{subscription:e(e({},t.subscription),{checked:!0}),oneTime:e(e({},t.oneTime),{checked:!1})}}))},checked:!H.subscription.disabled&&H.subscription.checked,disabled:H.subscription.disabled},void 0),I&&i(T,{children:i(y,e({position:0,content:I.content,header:I.header,maxWidth:"248px",showCloseIcon:D,closeBtnSize:.7},{children:i(b.Actions.CircleQuestion,{width:1},void 0)}),void 0)},void 0)]}),void 0),i(v,{testId:"subscription",finalPrice:"$".concat(p(Number(K))),disabled:H.subscription.disabled,highlighted:!H.subscription.disabled&&H.subscription.highlighted,size:m.Large,originalPrice:"$".concat(p(Number(Q)))},void 0)]}),void 0),H.subscription.checked&&t(o,{children:[i(k,e({disabled:H.subscription.disabled},{children:function(){var t=H.subscription.disabled;if(A){var o=t?{opacity:.5,pointerEvents:"none"}:{};return c.map(A,(function(t){return d(t)?n(t,{style:e(e({},t.props.style),o)}):t}))}return w?i(M,{benefits:w,disabled:t},void 0):null}()}),void 0),q&&i(u,e({variant:"link",underline:!0,href:q.url,size:"regular",target:"_blank"},{children:q.text}),void 0),(null==L?void 0:L.showFrequencyText)&&i(V,{frequency:L,onChange:function(e){J(H.subscription.checked?e.value:void 0)}},void 0)]},void 0)]}),void 0),t(S,e({"data-testid":"single-purchase-block",highlighted:H.oneTime.checked,disabled:H.oneTime.disabled,onClick:function(){return oe("oneTime")}},{children:[i(j,{label:R.oneTime.label,icon:R.oneTime.icon,name:"oneTime",id:"oneTime",value:"oneTime",size:m.Medium,onChange:function(){$((function(t){return{subscription:e(e({},t.subscription),{checked:!1}),oneTime:e(e({},t.oneTime),{checked:!0})}}))},useV2Style:!0,checked:!H.oneTime.disabled&&H.oneTime.checked,disabled:H.oneTime.disabled},void 0),i(v,{testId:"single-purchase",finalPrice:"$".concat(p(Number(U))),disabled:H.oneTime.disabled,highlighted:!H.oneTime.disabled&&H.oneTime.highlighted,size:m.Large,originalPrice:"$".concat(p(Number(Q)))},void 0)]}),void 0)]}),void 0)};export{G as SubscriptionPlanSelector};
2
2
  //# sourceMappingURL=SubscriptionPlanSelector.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";import e from"../../cta/primary/ButtonPrimary.js";import"@emotion/react/jsx-runtime";import"../../../core/theme/Theme.js";import"../../../types/enums.js";import"../../cta/styled.js";import"../../PackSelectorV2/PackSelectoV2.js";import"../../absorbency-level/AbsorbencyLevel.js";import"../../accordion-options/AccordionOptions.js";import"../../accordion/Accordion.js";import"react";import"../../../utils/constants/offerAtCart.js";import"../../../utils/media.js";import"../../../utils/mock-content/CancellationFlowAccordion.js";import"../../dropdown/variants/simple/SimpleDropdown.js";import"../../pricing/clubOffer/ClubOfferTag.js";import"../../pricing/discount/styled.js";import"../../pricing/styles.js";import"../../tooltip/Styled.js";import"../../atoms/PriceLabel/PriceLabel.js";import"../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../atoms/Icon/Icon.js";import"../../atoms/Image/styled.js";import"../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../atoms/Toggle/toggle.styled.js";import"../../radio/input/styles.js";import"../../autoship/styled.js";import"../../autoshipV2/styled.js";import"../../before-after/BeforeAfter.js";import"../../pricing/priceLabelV3/PriceLabelV3.js";import"../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../shared/card/Card.js";import"../../bundle/minimalistic/styled.js";import"../../text/Text.js";import"../../bundle/motivator/styled.js";import"../../bundle/simple/Simple.js";import"../../buynowpaylater/BuyNowPayLater.js";import"../../offer-banner/OfferBanner.js";import"../../cartProductItem/CloseIcon/CloseButton.js";import"../../cartProductItem/Description/Description.js";import"../../cartProductItem/Promo/Promo.js";import"../../cartProductItem/Title/Title.js";import"../../cartProductItem/TrashIcon/styled.js";import"../../checkbox/Checkbox.js";import"../../collection/grid/WithProductGrid.js";import"../../SkeletonBox/SkeletonBox.js";import"../../club-price-label/ClubPriceLabel.js";import"../../strength-bars/StrengthBars.js";import"../../pricing/priceLabelV4/PriceLabelV4.js";import"../../rating/starList/StarList.js";import"../../rating/styles.js";import"../../collection/product/mobile/styled.js";import"../../icon-button/IconButton.js";import"../../tag/variants/product/styled.js";import"../../collection/product/truekind/styled.js";import"../../color/ColorRadioGroup.js";import"../../color/selector/PatternSelector.js";import"../../color/styles/ColorPickerwithTootip.styled.js";import"../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../delivery-details/DeliveryDetails.js";import"../../delivery-details/Note/Note.js";import"../../drawer/style.js";import"../../dropdown-list-icons/Styled.js";import"../../dropdown/size-dropdown/Styled.js";import"../../dropdown/variants/dialog/DropdownDialog.js";import"../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../input/base/Error.js";import"../../shared/select/BaseSelect.js";import"../../dropdown/variants/smart/styled.js";import"../../filtering/Accordion.js";import"../../filtering/FiltersStyled.js";import"../../filtering/Tags/Tags.js";import"../../fit-guarantee/FitGuarantee.js";import"../../fit/FitPredictor.js";import"../../molecules/Video/components/styled.js";import"../../molecules/Video/styled.js";import"../../slider/ArrowButton.js";import"../../slider/StyledSlider.js";import"../../gallery/components/ImageSmallPreview/styled.js";import"../../gallery/components/ImagePreviewList/styled.js";import"../../gallery/components/ImageProductSlide/styled.js";import"../../gallery/styled.js";import"../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../iconsWithTitle/index.js";import"../../image-card/ImageCard.js";import"../../input/label/Label.js";import"../../input/base/Styled.js";import"../../input/custom/Custom.js";import"../../input/basePlusButton/BasePlusButton.js";import"../../input/basePlusIcon/BasePlusIcon.js";import"../../modal/Modal.js";import"../../motivator-progress-bar/MotivatorProgressBar.js";import"../../order-bar/OrderBar.js";import"../../packs/selector/PackSelector.js";import"../../pagination/styles.js";import"../../payment-methods/PaymentMethod.js";import"../../product/order/item/SimpleOrderItem.js";import"../../progress-bar/ProgressBar.js";import"../../quantityPicker/styled.js";import"../../radio/RadioPrimary/radioPrimary.js";import"../../radio/clubRadioInput/clubRadio.js";import"../../review-detail/ReviewDetail.js";import"../../review/Review.js";import"../../reviews-header/ReviewsHeader.js";import"../../scroll-to-top/ScrollToTop.js";import"../../search-bar/components/ClearButton/styled.js";import"../../search-bar/components/Footer/styled.js";import"../../search-bar/components/ProductItem/styled.js";import"../../search-bar/components/ResultsPanel/styled.js";import"../../search-bar/components/SearchControl/styled.js";import"../../search-bar/styled.js";import"../../search-navigation/styled.js";import"react-dom";import"../../short-banner/ShortBanner.js";import"../../size-chart/styled.js";import"../../size-table/SizeTable.js";import"../../size/guide/SizeFitGuide.js";import"../../size/selector/styled.js";import"../../tabs/Tab.js";import"../../tabs/Tabs.js";import"../../tag/Tag.js";import"@emotion/react";import"../../textWithImage/index.js";import"../../timer/styled.js";import"../../toast/Toast.js";import"../../totals/total/styled.js";import"../../totals/subtotal/Subtotal.js";import"../../tracking-progress-v2/TrackingProgressV2.js";import"../../tracking-progress/TrackingProgress.js";import"../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../BasicAccordion/BasicAccordion.js";import"../CartItemCard/CartItem.js";import"../ClubOfferSelector/styled.js";import"../ClubOfferSelector2/styled.js";import"../JoinClubCard/joinClubCard.js";import"../OfferAtCart/styled.js";import"../OfferAtCartV2/styled.js";import"../OfferAtCartV3/styled.js";import"../OfferAtCartV4/styled.js";import"../OfferAtPDP/styled.js";import"../OfferAtPDP/types.js";import"../ProductCard/ProductCardV1/ProductCard.js";import"../ProductCard/ProductCardV2/styled.js";import"../ProductCard/ProductCardV3/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js";import"../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"@ant-design/react-slick";import"../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV5/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js";import"../SizeCharTable/SizeChartTableV2/styled.js";import"../SizeCharTable/SizeChartTableV3/styled.js";import"../../molecules/ArrowTip/ArrowTip.styled.js";import"../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import"../SubscriptionPlanSelector/styled.js";import"./Greeting.styled.js";import{Container as i,TitleWrapper as s,BodyContainer as l,GridContainer as a,BottomCopyWrapper as m,OutLineButtonContainer as p,SaveLessLinkButton as d,BtnOutlineWrapper as c}from"./Card.styled.js";import{DescriptionItem as n}from"./DescriptionItem.js";import{BottomButtonVersionsTypes as j}from"./types.js";import"../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../molecules/CouponCard/styled.js";import"../../molecules/BenefitsList/styled.js";import"../../molecules/HurryUp/styled.js";import"../../molecules/Spinner/styled.js";import"../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../molecules/LikeButton/styled.js";import{ScarcityTag as y}from"../../molecules/ScarcityTag/ScarcityTag.js";function u(u){var b=u.title,P=u.saveLessButtonAction,C=u.saveLessButtonLabel,f=u.saveMoreButtonAction,g=u.saveMoreButtonLabel,h=u.descriptions,v=u.version,S=u.bottomCopy,V=u.titleBackgroundColor,G=u.scarcityText,T=u.scarcityTextColor;return r(i,t({id:"twoCtasAtCart"},{children:[o(s,t({id:"twoCtasAtCartTitle",backgroundColor:null!=V?V:void 0},{children:b}),void 0),o(e,{onClick:f,text:g,wide:!0},void 0),G&&o(y,{text:G,color:T},void 0),r(l,{children:[o(a,{children:h.map((function(t,r){return o(n,{text:t.text,smallerText:t.smallerText,iconName:null==t?void 0:t.iconName,type:null==t?void 0:t.type,link:null==t?void 0:t.link},"".concat(t.text,"-").concat(r))}))},void 0),S&&o(m,{dangerouslySetInnerHTML:{__html:S}},void 0)]},void 0),o(p,{children:v===j.link?o(d,t({href:"#",onClick:P},{children:C}),void 0):o(c,{wide:!0,onClick:P,text:C},void 0)},void 0)]}),void 0)}export{u as TwoCtasAtCart};
1
+ import{__assign as t}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";import e from"../../cta/primary/ButtonPrimary.js";import"@emotion/react/jsx-runtime";import"../../../core/theme/Theme.js";import"../../../types/enums.js";import"../../cta/styled.js";import"../../PackSelectorV2/PackSelectoV2.js";import"../../absorbency-level/AbsorbencyLevel.js";import"../../accordion-options/AccordionOptions.js";import"../../accordion/Accordion.js";import"react";import"../../../utils/constants/offerAtCart.js";import"../../../utils/media.js";import"../../../utils/mock-content/CancellationFlowAccordion.js";import"../../dropdown/variants/simple/SimpleDropdown.js";import"../../pricing/clubOffer/ClubOfferTag.js";import"../../pricing/discount/styled.js";import"../../pricing/styles.js";import"../../tooltip/Styled.js";import"../../atoms/PriceLabel/PriceLabel.js";import"../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../atoms/HorizontalDivider/HorizontalDivider.js";import"../../atoms/Icon/Icon.js";import"../../atoms/Image/styled.js";import"../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../atoms/Toggle/toggle.styled.js";import"../../radio/input/styles.js";import"../../autoship/styled.js";import"../../autoshipV2/styled.js";import"../../before-after/BeforeAfter.js";import"../../pricing/priceLabelV3/PriceLabelV3.js";import"../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../pricing/priceLabelV6/PriceLabelV6.styled.js";import"../../shared/card/Card.js";import"../../bundle/minimalistic/styled.js";import"../../text/Text.js";import"../../bundle/motivator/styled.js";import"../../bundle/simple/Simple.js";import"../../buynowpaylater/BuyNowPayLater.js";import"../../offer-banner/OfferBanner.js";import"../../cartProductItem/CloseIcon/CloseButton.js";import"../../cartProductItem/Description/Description.js";import"../../cartProductItem/Promo/Promo.js";import"../../cartProductItem/Title/Title.js";import"../../cartProductItem/TrashIcon/styled.js";import"../../checkbox/Checkbox.js";import"../../collection/grid/WithProductGrid.js";import"../../SkeletonBox/SkeletonBox.js";import"../../club-price-label/ClubPriceLabel.js";import"../../strength-bars/StrengthBars.js";import"../../pricing/priceLabelV4/PriceLabelV4.js";import"../../rating/starList/StarList.js";import"../../rating/styles.js";import"../../collection/product/mobile/styled.js";import"../../icon-button/IconButton.js";import"../../tag/variants/product/styled.js";import"../../collection/product/truekind/styled.js";import"../../color/ColorRadioGroup.js";import"../../color/selector/PatternSelector.js";import"../../color/styles/ColorPickerwithTootip.styled.js";import"../../cross-sell/Checkbox/CrossSellCheckbox.js";import"../../delivery-details/DeliveryDetails.js";import"../../delivery-details/Note/Note.js";import"../../drawer/style.js";import"../../dropdown-list-icons/Styled.js";import"../../dropdown/size-dropdown/Styled.js";import"../../dropdown/variants/dialog/DropdownDialog.js";import"../../dropdown/base/BaseDropdown.js";import"@headlessui/react";import"../../input/base/Error.js";import"../../shared/select/BaseSelect.js";import"../../dropdown/variants/smart/styled.js";import"../../filtering/Accordion.js";import"../../filtering/FiltersStyled.js";import"../../filtering/Tags/Tags.js";import"../../fit-guarantee/FitGuarantee.js";import"../../fit/FitPredictor.js";import"@ant-design/react-slick";import"../../modal/Modal.js";import"../ModalZoom/zoomModal.styled.js";import"react-zoom-pan-pinch";import"../ModalZoom/ZoomModalV2.styled.js";import"../../molecules/Video/components/styled.js";import"../../molecules/Video/styled.js";import"../../slider/ArrowButton.js";import"../../slider/StyledSlider.js";import"../../gallery/components/ImageSmallPreview/styled.js";import"../../gallery/components/ImagePreviewList/styled.js";import"../../gallery/components/ImageProductSlide/styled.js";import"../../gallery/styled.js";import"../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js";import"../../iconsWithTitle/index.js";import"../../image-card/ImageCard.js";import"../../input/label/Label.js";import"../../input/base/Styled.js";import"../../input/custom/Custom.js";import"../../input/basePlusButton/BasePlusButton.js";import"../../input/basePlusIcon/BasePlusIcon.js";import"../../motivator-progress-bar/MotivatorProgressBar.js";import"../../order-bar/OrderBar.js";import"../../packs/selector/PackSelector.js";import"../../pagination/styles.js";import"../../payment-methods/PaymentMethod.js";import"../../product/order/item/SimpleOrderItem.js";import"../../progress-bar/ProgressBar.js";import"../../quantityPicker/styled.js";import"../../radio/RadioPrimary/radioPrimary.js";import"../../radio/clubRadioInput/clubRadio.js";import"../../review-detail/ReviewDetail.js";import"../../review/Review.js";import"../../reviews-header/ReviewsHeader.js";import"../../scroll-to-top/ScrollToTop.js";import"../../search-bar/components/ClearButton/styled.js";import"../../search-bar/components/Footer/styled.js";import"../../search-bar/components/ProductItem/styled.js";import"../../search-bar/components/ResultsPanel/styled.js";import"../../search-bar/components/SearchControl/styled.js";import"../../search-bar/styled.js";import"../../search-navigation/styled.js";import"react-dom";import"../../short-banner/ShortBanner.js";import"../../size-chart/styled.js";import"../../size-table/SizeTable.js";import"../../size/guide/SizeFitGuide.js";import"../../size/selector/styled.js";import"../../tabs/Tab.js";import"../../tabs/Tabs.js";import"../../tag/Tag.js";import"@emotion/react";import"../../textWithImage/index.js";import"../../timer/styled.js";import"../../toast/Toast.js";import"../../totals/total/styled.js";import"../../totals/subtotal/Subtotal.js";import"../../tracking-progress-v2/TrackingProgressV2.js";import"../../tracking-progress/TrackingProgress.js";import"../AutoshipOfferCard/AutoshipOfferCardItem.styled.js";import"../AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js";import"../AutoshipPdpCard/AutoshipPdpCard.styled.js";import"../BasicAccordion/BasicAccordion.js";import"../CartItemCard/CartItem.js";import"../ClubOfferSelector/styled.js";import"../ClubOfferSelector2/styled.js";import"../JoinClubCard/joinClubCard.js";import"../OfferAtCart/styled.js";import"../OfferAtCartV2/styled.js";import"../OfferAtCartV3/styled.js";import"../OfferAtCartV4/styled.js";import"../OfferAtPDP/styled.js";import"../OfferAtPDP/types.js";import"../ProductCard/ProductCardV1/ProductCard.js";import"../ProductCard/ProductCardV2/styled.js";import"../ProductCard/ProductCardV3/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js";import"../ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js";import"../ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/ContentGallery/styled.js";import"react-inner-image-zoom";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/MainContent/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/Slider/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV4/GalleryDetailed/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV5/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/ColorVariantsGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV6/styled.js";import"../ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js";import"../SizeCharTable/SizeChartTableV2/styled.js";import"../SizeCharTable/SizeChartTableV3/styled.js";import"../../molecules/ArrowTip/ArrowTip.styled.js";import"../SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js";import"../SubscriptionPlanSelector/styled.js";import"./Greeting.styled.js";import{Container as i,TitleWrapper as s,BodyContainer as l,GridContainer as a,BottomCopyWrapper as m,OutLineButtonContainer as p,SaveLessLinkButton as d,BtnOutlineWrapper as c}from"./Card.styled.js";import{DescriptionItem as n}from"./DescriptionItem.js";import{BottomButtonVersionsTypes as j}from"./types.js";import"../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js";import"../../molecules/CouponCard/styled.js";import"../../molecules/BenefitsList/styled.js";import"../../molecules/HurryUp/styled.js";import"../../molecules/Spinner/styled.js";import"../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js";import"../../molecules/LikeButton/styled.js";import{ScarcityTag as y}from"../../molecules/ScarcityTag/ScarcityTag.js";function u(u){var b=u.title,P=u.saveLessButtonAction,C=u.saveLessButtonLabel,f=u.saveMoreButtonAction,g=u.saveMoreButtonLabel,h=u.descriptions,v=u.version,S=u.bottomCopy,M=u.titleBackgroundColor,V=u.scarcityText,G=u.scarcityTextColor;return r(i,t({id:"twoCtasAtCart"},{children:[o(s,t({id:"twoCtasAtCartTitle",backgroundColor:null!=M?M:void 0},{children:b}),void 0),o(e,{onClick:f,text:g,wide:!0},void 0),V&&o(y,{text:V,color:G},void 0),r(l,{children:[o(a,{children:h.map((function(t,r){return o(n,{text:t.text,smallerText:t.smallerText,iconName:null==t?void 0:t.iconName,type:null==t?void 0:t.type,link:null==t?void 0:t.link},"".concat(t.text,"-").concat(r))}))},void 0),S&&o(m,{dangerouslySetInnerHTML:{__html:S}},void 0)]},void 0),o(p,{children:v===j.link?o(d,t({href:"#",onClick:P},{children:C}),void 0):o(c,{wide:!0,onClick:P,text:C},void 0)},void 0)]}),void 0)}export{u as TwoCtasAtCart};
2
2
  //# sourceMappingURL=TwoCtasAtCart.js.map
package/build/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as PackSelectorV2}from"./components/PackSelectorV2/PackSelectoV2.js";export{AbsorbencyLevel}from"./components/absorbency-level/AbsorbencyLevel.js";export{default as AccordionOptions}from"./components/accordion-options/AccordionOptions.js";export{default as Accordion}from"./components/accordion/Accordion.js";export{default as Autoship}from"./components/autoship/autoShip.js";export{default as AutoshipV2}from"./components/autoshipV2/autoshipV2.js";export{BeforeAfterCard}from"./components/before-after/BeforeAfter.js";export{Bundle}from"./components/bundle/index.js";export{BuyNowPayLater}from"./components/buynowpaylater/BuyNowPayLater.js";export{CartProductItem}from"./components/cartProductItem/index.js";export{Checkbox}from"./components/checkbox/Checkbox.js";export{Collection}from"./components/collection/index.js";export{default as ColorPickerWithTooltip}from"./components/color/ColorPickerWithTooltip.js";export{default as MultiColorPicker}from"./components/color/MultiColorPicker.js";export{default as SingleColorPicker}from"./components/color/SingleColorPicker.js";export{ColorSelector}from"./components/color/selector/ColorSelector.js";export{PatternSelector}from"./components/color/selector/PatternSelector.js";import*as o from"./components/cross-sell/index.js";export{o as CrossSell};export{default as ButtonPrimary}from"./components/cta/primary/ButtonPrimary.js";export{default as ButtonSecondary}from"./components/cta/secondary/ButtonSecondary.js";export{default as ButtonSecondaryOutline}from"./components/cta/secondary/ButtonSecondaryOutline.js";import"tslib";import"@emotion/react/jsx-runtime";export{AssetsProvider,ThemeProvider,ThemeVariables,useTheme,useThemeAssets}from"./core/theme/Theme.js";import"react/jsx-runtime";export{CardSectionType,ComponentPosition,ComponentSize,InputValidationType}from"./types/enums.js";import"./components/cta/styled.js";export{DeliveryDetails}from"./components/delivery-details/DeliveryDetails.js";export{Note}from"./components/delivery-details/Note/Note.js";export{Drawer}from"./components/drawer/Drawer.js";export{DropdownListIcons}from"./components/dropdown-list-icons/DropdownListIcons.js";export{default as SizeDropdown}from"./components/dropdown/size-dropdown/SizeDropdown.js";export{default as DropdownDialog}from"./components/dropdown/variants/dialog/DropdownDialog.js";export{default as FilteringDropdown}from"./components/dropdown/variants/filtering/FilteringDropdown.js";export{default as SimpleDropdown}from"./components/dropdown/variants/simple/SimpleDropdown.js";export{default as SmartDropdown}from"./components/dropdown/variants/smart/SmartDropdown.js";export{Filters}from"./components/filtering/Filters.js";export{Tags as FilteringTags}from"./components/filtering/Tags/Tags.js";export{FitGuarantee}from"./components/fit-guarantee/FitGuarantee.js";export{FitPredictor}from"./components/fit/FitPredictor.js";export{ProductGallery}from"./components/gallery/ProductGallery.js";export{IconButton}from"./components/icon-button/IconButton.js";export{AmazonButton,PaypalButton}from"./components/icon-button/amazonAndPaypal/AmazonPaypalButtons.js";export{Icon}from"./components/icons/index.js";export{IconsWithTitle}from"./components/iconsWithTitle/index.js";export{ImageCardWithDescription}from"./components/image-card/ImageCard.js";export{Input}from"./components/input/index.js";export{Modal,Overlay,modalEvent,useModal,useModalEvent}from"./components/modal/Modal.js";export{MotivatorProgressBar}from"./components/motivator-progress-bar/MotivatorProgressBar.js";export{OfferBanner}from"./components/offer-banner/OfferBanner.js";export{OrderBar}from"./components/order-bar/OrderBar.js";export{default as PackSelector}from"./components/packs/selector/PackSelector.js";export{Pagination}from"./components/pagination/Pagination.js";export{PaginatorBlog}from"./components/pagination/blogPaginator/PaginatorBlog.js";export{PaymentMethod}from"./components/payment-methods/PaymentMethod.js";export{ClubOfferTag}from"./components/pricing/clubOffer/ClubOfferTag.js";export{DiscountTag}from"./components/pricing/discount/DiscountTag.js";export{PriceLabel}from"./components/pricing/price/PriceLabel.js";export{PriceLabelV2}from"./components/pricing/priceLabelV2/PriceLabelV2.js";export{PriceLabelV3}from"./components/pricing/priceLabelV3/PriceLabelV3.js";export{PriceLabelV5}from"./components/pricing/priceLabelV5/PriceLabelV5.js";export{PriceLabelV6}from"./components/pricing/priceLabelV6/PriceLabelV6.js";export{default as SimpleOrderItem}from"./components/product/order/item/SimpleOrderItem.js";export{ProgressBar}from"./components/progress-bar/ProgressBar.js";export{QuantityPicker}from"./components/quantityPicker/QuantityPicker.js";export{RadioPrimary}from"./components/radio/RadioPrimary/radioPrimary.js";export{RadioGroupInput}from"./components/radio/container/group.js";export{ClubRadioGroupInput}from"./components/radio/clubContainer/clubGroup.js";export{RadioInput}from"./components/radio/input/radio.js";export{Rating}from"./components/rating/Rating.js";export{StarList}from"./components/rating/starList/StarList.js";export{default as ReviewDetail}from"./components/review-detail/ReviewDetail.js";export{default as Review}from"./components/review/Review.js";export{default as ReviewsHeader}from"./components/reviews-header/ReviewsHeader.js";export{ScrollToTop}from"./components/scroll-to-top/ScrollToTop.js";export{SearchBar}from"./components/search-bar/SearchBar.js";export{default as SearchNavigation}from"./components/search-navigation/SearchNavigation.js";export{default as Card}from"./components/shared/card/Card.js";export{Portal}from"./components/shared/portal/Portal.js";export{Spacing}from"./components/shared/spacing/Spacing.js";export{ShortBanner}from"./components/short-banner/ShortBanner.js";export{default as SizeChartTable}from"./components/size-chart/SizeChart.js";export{SizeTable}from"./components/size-table/SizeTable.js";export{default as SizeFitGuide}from"./components/size/guide/SizeFitGuide.js";export{default as SizeSelector}from"./components/size/selector/SizeSelector.js";export{default as SliderNavigation}from"./components/slider/SliderNavigation.js";export{StrengthBars}from"./components/strength-bars/StrengthBars.js";export{default as Tab}from"./components/tabs/Tab.js";export{default as Tabs}from"./components/tabs/Tabs.js";export{default as CategoryTag}from"./components/tag/variants/pdp/category/CategoryTag.js";export{default as CategorySquareTag}from"./components/tag/variants/pdp/categorySquare/CategorySquareTag.js";export{default as seasonOfferRoundedTag}from"./components/tag/variants/pdp/season-offer-rounded/SeasonOfferRounded.js";export{default as SeasonOfferTag}from"./components/tag/variants/pdp/season-offer/SeasonOfferTag.js";import"./components/tag/variants/product/styled.js";export{default as TextButton}from"./components/text-button/TextButton.js";export{Text}from"./components/text/Text.js";export{default as TextWithImage}from"./components/textWithImage/index.js";export{Timer}from"./components/timer/Timer.js";export{Toast}from"./components/toast/Toast.js";export{Tooltip}from"./components/tooltip/Tooltip.js";export{Totals}from"./components/totals/index.js";export{default as TrackingProgressV2}from"./components/tracking-progress-v2/TrackingProgressV2.js";export{default as TrackingProgress}from"./components/tracking-progress/TrackingProgress.js";export{AutoshipOfferCard}from"./components/organisms/AutoshipOfferCard/AutoshipOfferCardItem.js";export{AutoshipOfferCardCta}from"./components/organisms/AutoshipOfferCardCta/AutoshipOfferCardItemCta.js";export{AutoshipPdpCard}from"./components/organisms/AutoshipPdpCard/AutoshipPdpCard.js";export{BasicAccordion}from"./components/organisms/BasicAccordion/BasicAccordion.js";export{CartItemCard}from"./components/organisms/CartItemCard/CartItem.js";export{ClubOfferSelector}from"./components/organisms/ClubOfferSelector/clubOfferSelector.js";export{ClubOfferSelector2}from"./components/organisms/ClubOfferSelector2/clubOfferSelector2.js";export{JoinClubCard}from"./components/organisms/JoinClubCard/joinClubCard.js";export{OfferAtCart}from"./components/organisms/OfferAtCart/OfferAtCart.js";export{OfferAtCartV2}from"./components/organisms/OfferAtCartV2/OfferAtCartV2.js";export{OfferAtCartV3}from"./components/organisms/OfferAtCartV3/OfferAtCartV3.js";export{OfferAtCartV4}from"./components/organisms/OfferAtCartV4/OfferAtCartV4.js";export{OfferAtPDP}from"./components/organisms/OfferAtPDP/OfferAtPDP.js";import"./components/organisms/OfferAtPDP/types.js";export{ProductCard}from"./components/organisms/ProductCard/ProductCardV1/ProductCard.js";export{ProductCardV2}from"./components/organisms/ProductCard/ProductCardV2/ProductCardV2.js";export{ProductCardV3}from"./components/organisms/ProductCard/ProductCardV3/ProductCardV3.js";export{ProductGalleryMobile}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js";export{ProductGalleryMobileV2}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js";export{ProductGalleryMobileV3}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js";export{ProductGalleryMobileV4}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV4/ProductGalleryMobileV4.js";export{ProductGalleryMobileV5}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV5/ProductGalleryMobileV5.js";export{ProductGalleryMobileV6}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/ProductGalleryMobileV6.js";import"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js";export{SizeChartTableV2}from"./components/organisms/SizeCharTable/SizeChartTableV2/SizeChartV2.js";export{SizeChartTableV3}from"./components/organisms/SizeCharTable/SizeChartTableV3/SizeChartTableV3.js";export{SizeChartTableV4}from"./components/organisms/SizeCharTable/SizeChartTableV4/SizeChartTableV4.js";export{SubscriptionPlanSelector}from"./components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js";export{GreetingsCard}from"./components/organisms/TwoCtasAtCart/GreetingsCard.js";export{TwoCtasAtCart}from"./components/organisms/TwoCtasAtCart/TwoCtasAtCart.js";export{ClubPriceMemberLabel}from"./components/atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js";export{HorizontalDivider}from"./components/atoms/HorizontalDivider/HorizontalDivider.js";export{Icon as LibIcon}from"./components/atoms/Icon/Icon.js";export{Image}from"./components/atoms/Image/Image.js";import"./components/atoms/PriceLabel/PriceLabel.js";import"./components/atoms/PriceLabelV2/PriceLabelV2.js";export{ToggleComponent}from"./components/atoms/Toggle/toggle.js";import"./components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"./components/molecules/OfferAtCartImage/OfferAtCartImage.styled.js";export{CouponCard}from"./components/molecules/CouponCard/CouponCard.js";export{ArrowTip}from"./components/molecules/ArrowTip/ArrowTip.js";export{AutoshipFrequencyDropdown}from"./components/molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js";export{BenefitsList}from"./components/molecules/BenefitsList/BenefitsList.js";export{HurryUp}from"./components/molecules/HurryUp/HurryUp.js";export{Spinner}from"./components/molecules/Spinner/Spinner.js";export{Video}from"./components/molecules/Video/Video.js";export{IconsWithTitleList}from"./components/molecules/IconsWithTitleList/IconsWithTitleList.js";export{LikeButton}from"./components/molecules/LikeButton/LikeButton.js";import"./components/molecules/ScarcityTag/ScarcityTag.styled.js";export{BeforeAfterVariant,componentSizeMapper}from"./components/before-after/types.js";export{default as createCache}from"@emotion/cache";export{default as styled}from"@emotion/styled";export{CacheProvider,Global,css}from"@emotion/react";export{default as useOnClickOutside}from"./hooks/click-outside.js";export{default as useDeviceType}from"./hooks/useDeviceType/useDeviceType.js";export{useViewportAwarePosition}from"./hooks/useViewportAwarePosition/useViewportAwarePosition.js";export{useWindowDimensions}from"./hooks/WindowDimensions.js";export{buildImageUrl}from"./utils/buildImageUrl/buildImageUrl.js";export{isDangerouslySetInnerHTML}from"./utils/common/index.js";export{benefits,benefitsRawHtml,benefitsRawHtmlV2,sizeOptions,title}from"./utils/constants/offerAtCart.js";export{DateFormat,formatDate}from"./utils/dateFormatter/dateFormatter.js";export{debounce}from"./utils/debounce/index.js";export{decimalFormat}from"./utils/decimalParser/decimalParser.js";export{formatPrice}from"./utils/formatPrice/formatPrice.js";export{getSrcSet}from"./utils/getSrcSet/getSrcSet.js";export{mediaQueries}from"./utils/media.js";export{CancellationFlowAccordionContentPerPartner}from"./utils/mock-content/CancellationFlowAccordion.js";export{simulateMouseClick}from"./utils/simulateClick/simulateClick.js";export{sliceString}from"./utils/sliceString/sliceString.js";export{isEmail,isEmpty,isNumber,isPhoneNumber,isValidDate}from"./utils/validations/validations.js";
1
+ export{default as PackSelectorV2}from"./components/PackSelectorV2/PackSelectoV2.js";export{AbsorbencyLevel}from"./components/absorbency-level/AbsorbencyLevel.js";export{default as AccordionOptions}from"./components/accordion-options/AccordionOptions.js";export{default as Accordion}from"./components/accordion/Accordion.js";export{default as Autoship}from"./components/autoship/autoShip.js";export{default as AutoshipV2}from"./components/autoshipV2/autoshipV2.js";export{BeforeAfterCard}from"./components/before-after/BeforeAfter.js";export{Bundle}from"./components/bundle/index.js";export{BuyNowPayLater}from"./components/buynowpaylater/BuyNowPayLater.js";export{CartProductItem}from"./components/cartProductItem/index.js";export{Checkbox}from"./components/checkbox/Checkbox.js";export{Collection}from"./components/collection/index.js";export{default as ColorPickerWithTooltip}from"./components/color/ColorPickerWithTooltip.js";export{default as MultiColorPicker}from"./components/color/MultiColorPicker.js";export{default as SingleColorPicker}from"./components/color/SingleColorPicker.js";export{ColorSelector}from"./components/color/selector/ColorSelector.js";export{PatternSelector}from"./components/color/selector/PatternSelector.js";import*as o from"./components/cross-sell/index.js";export{o as CrossSell};export{default as ButtonPrimary}from"./components/cta/primary/ButtonPrimary.js";export{default as ButtonSecondary}from"./components/cta/secondary/ButtonSecondary.js";export{default as ButtonSecondaryOutline}from"./components/cta/secondary/ButtonSecondaryOutline.js";import"tslib";import"@emotion/react/jsx-runtime";export{AssetsProvider,ThemeProvider,ThemeVariables,useTheme,useThemeAssets}from"./core/theme/Theme.js";import"react/jsx-runtime";export{CardSectionType,ComponentPosition,ComponentSize,InputValidationType}from"./types/enums.js";import"./components/cta/styled.js";export{DeliveryDetails}from"./components/delivery-details/DeliveryDetails.js";export{Note}from"./components/delivery-details/Note/Note.js";export{Drawer}from"./components/drawer/Drawer.js";export{DropdownListIcons}from"./components/dropdown-list-icons/DropdownListIcons.js";export{default as SizeDropdown}from"./components/dropdown/size-dropdown/SizeDropdown.js";export{default as DropdownDialog}from"./components/dropdown/variants/dialog/DropdownDialog.js";export{default as FilteringDropdown}from"./components/dropdown/variants/filtering/FilteringDropdown.js";export{default as SimpleDropdown}from"./components/dropdown/variants/simple/SimpleDropdown.js";export{default as SmartDropdown}from"./components/dropdown/variants/smart/SmartDropdown.js";export{Filters}from"./components/filtering/Filters.js";export{Tags as FilteringTags}from"./components/filtering/Tags/Tags.js";export{FitGuarantee}from"./components/fit-guarantee/FitGuarantee.js";export{FitPredictor}from"./components/fit/FitPredictor.js";export{ProductGallery}from"./components/gallery/ProductGallery.js";export{IconButton}from"./components/icon-button/IconButton.js";export{AmazonButton,PaypalButton}from"./components/icon-button/amazonAndPaypal/AmazonPaypalButtons.js";export{Icon}from"./components/icons/index.js";export{IconsWithTitle}from"./components/iconsWithTitle/index.js";export{ImageCardWithDescription}from"./components/image-card/ImageCard.js";export{Input}from"./components/input/index.js";export{Modal,Overlay,modalEvent,useModal,useModalEvent}from"./components/modal/Modal.js";export{MotivatorProgressBar}from"./components/motivator-progress-bar/MotivatorProgressBar.js";export{OfferBanner}from"./components/offer-banner/OfferBanner.js";export{OrderBar}from"./components/order-bar/OrderBar.js";export{default as PackSelector}from"./components/packs/selector/PackSelector.js";export{Pagination}from"./components/pagination/Pagination.js";export{PaginatorBlog}from"./components/pagination/blogPaginator/PaginatorBlog.js";export{PaymentMethod}from"./components/payment-methods/PaymentMethod.js";export{ClubOfferTag}from"./components/pricing/clubOffer/ClubOfferTag.js";export{DiscountTag}from"./components/pricing/discount/DiscountTag.js";export{PriceLabel}from"./components/pricing/price/PriceLabel.js";export{PriceLabelV2}from"./components/pricing/priceLabelV2/PriceLabelV2.js";export{PriceLabelV3}from"./components/pricing/priceLabelV3/PriceLabelV3.js";export{PriceLabelV5}from"./components/pricing/priceLabelV5/PriceLabelV5.js";export{PriceLabelV6}from"./components/pricing/priceLabelV6/PriceLabelV6.js";export{default as SimpleOrderItem}from"./components/product/order/item/SimpleOrderItem.js";export{ProgressBar}from"./components/progress-bar/ProgressBar.js";export{QuantityPicker}from"./components/quantityPicker/QuantityPicker.js";export{RadioPrimary}from"./components/radio/RadioPrimary/radioPrimary.js";export{RadioGroupInput}from"./components/radio/container/group.js";export{ClubRadioGroupInput}from"./components/radio/clubContainer/clubGroup.js";export{RadioInput}from"./components/radio/input/radio.js";export{Rating}from"./components/rating/Rating.js";export{StarList}from"./components/rating/starList/StarList.js";export{default as ReviewDetail}from"./components/review-detail/ReviewDetail.js";export{default as Review}from"./components/review/Review.js";export{default as ReviewsHeader}from"./components/reviews-header/ReviewsHeader.js";export{ScrollToTop}from"./components/scroll-to-top/ScrollToTop.js";export{SearchBar}from"./components/search-bar/SearchBar.js";export{default as SearchNavigation}from"./components/search-navigation/SearchNavigation.js";export{default as Card}from"./components/shared/card/Card.js";export{Portal}from"./components/shared/portal/Portal.js";export{Spacing}from"./components/shared/spacing/Spacing.js";export{ShortBanner}from"./components/short-banner/ShortBanner.js";export{default as SizeChartTable}from"./components/size-chart/SizeChart.js";export{SizeTable}from"./components/size-table/SizeTable.js";export{default as SizeFitGuide}from"./components/size/guide/SizeFitGuide.js";export{default as SizeSelector}from"./components/size/selector/SizeSelector.js";export{default as SliderNavigation}from"./components/slider/SliderNavigation.js";export{StrengthBars}from"./components/strength-bars/StrengthBars.js";export{default as Tab}from"./components/tabs/Tab.js";export{default as Tabs}from"./components/tabs/Tabs.js";export{default as CategoryTag}from"./components/tag/variants/pdp/category/CategoryTag.js";export{default as CategorySquareTag}from"./components/tag/variants/pdp/categorySquare/CategorySquareTag.js";export{default as seasonOfferRoundedTag}from"./components/tag/variants/pdp/season-offer-rounded/SeasonOfferRounded.js";export{default as SeasonOfferTag}from"./components/tag/variants/pdp/season-offer/SeasonOfferTag.js";import"./components/tag/variants/product/styled.js";export{default as TextButton}from"./components/text-button/TextButton.js";export{Text}from"./components/text/Text.js";export{default as TextWithImage}from"./components/textWithImage/index.js";export{Timer}from"./components/timer/Timer.js";export{Toast}from"./components/toast/Toast.js";export{Tooltip}from"./components/tooltip/Tooltip.js";export{Totals}from"./components/totals/index.js";export{default as TrackingProgressV2}from"./components/tracking-progress-v2/TrackingProgressV2.js";export{default as TrackingProgress}from"./components/tracking-progress/TrackingProgress.js";export{AutoshipOfferCard}from"./components/organisms/AutoshipOfferCard/AutoshipOfferCardItem.js";export{AutoshipOfferCardCta}from"./components/organisms/AutoshipOfferCardCta/AutoshipOfferCardItemCta.js";export{AutoshipPdpCard}from"./components/organisms/AutoshipPdpCard/AutoshipPdpCard.js";export{BasicAccordion}from"./components/organisms/BasicAccordion/BasicAccordion.js";export{CartItemCard}from"./components/organisms/CartItemCard/CartItem.js";export{ClubOfferSelector}from"./components/organisms/ClubOfferSelector/clubOfferSelector.js";export{ClubOfferSelector2}from"./components/organisms/ClubOfferSelector2/clubOfferSelector2.js";export{JoinClubCard}from"./components/organisms/JoinClubCard/joinClubCard.js";export{ZoomModalComponent}from"./components/organisms/ModalZoom/index.js";export{OfferAtCart}from"./components/organisms/OfferAtCart/OfferAtCart.js";export{OfferAtCartV2}from"./components/organisms/OfferAtCartV2/OfferAtCartV2.js";export{OfferAtCartV3}from"./components/organisms/OfferAtCartV3/OfferAtCartV3.js";export{OfferAtCartV4}from"./components/organisms/OfferAtCartV4/OfferAtCartV4.js";export{OfferAtPDP}from"./components/organisms/OfferAtPDP/OfferAtPDP.js";import"./components/organisms/OfferAtPDP/types.js";export{ProductCard}from"./components/organisms/ProductCard/ProductCardV1/ProductCard.js";export{ProductCardV2}from"./components/organisms/ProductCard/ProductCardV2/ProductCardV2.js";export{ProductCardV3}from"./components/organisms/ProductCard/ProductCardV3/ProductCardV3.js";export{ProductGalleryMobile}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js";export{ProductGalleryMobileV2}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js";export{ProductGalleryMobileV3}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js";export{ProductGalleryMobileV4}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV4/ProductGalleryMobileV4.js";export{ProductGalleryMobileV5}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV5/ProductGalleryMobileV5.js";export{ProductGalleryMobileV6}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/ProductGalleryMobileV6.js";export{ProductGalleryMobileV7}from"./components/organisms/ProductGalleryMobile/ProductGalleryMobileV7/ProductGalleryMobile.js";export{SizeChartTableV2}from"./components/organisms/SizeCharTable/SizeChartTableV2/SizeChartV2.js";export{SizeChartTableV3}from"./components/organisms/SizeCharTable/SizeChartTableV3/SizeChartTableV3.js";export{SizeChartTableV4}from"./components/organisms/SizeCharTable/SizeChartTableV4/SizeChartTableV4.js";export{SubscriptionPlanSelector}from"./components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js";export{GreetingsCard}from"./components/organisms/TwoCtasAtCart/GreetingsCard.js";export{TwoCtasAtCart}from"./components/organisms/TwoCtasAtCart/TwoCtasAtCart.js";export{ClubPriceMemberLabel}from"./components/atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js";export{HorizontalDivider}from"./components/atoms/HorizontalDivider/HorizontalDivider.js";export{Icon as LibIcon}from"./components/atoms/Icon/Icon.js";export{Image}from"./components/atoms/Image/Image.js";import"./components/atoms/PriceLabel/PriceLabel.js";import"./components/atoms/PriceLabelV2/PriceLabelV2.js";export{ToggleComponent}from"./components/atoms/Toggle/toggle.js";import"./components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js";import"./components/molecules/OfferAtCartImage/OfferAtCartImage.styled.js";export{CouponCard}from"./components/molecules/CouponCard/CouponCard.js";export{ArrowTip}from"./components/molecules/ArrowTip/ArrowTip.js";export{AutoshipFrequencyDropdown}from"./components/molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js";export{BenefitsList}from"./components/molecules/BenefitsList/BenefitsList.js";export{HurryUp}from"./components/molecules/HurryUp/HurryUp.js";export{Spinner}from"./components/molecules/Spinner/Spinner.js";export{Video}from"./components/molecules/Video/Video.js";export{IconsWithTitleList}from"./components/molecules/IconsWithTitleList/IconsWithTitleList.js";export{LikeButton}from"./components/molecules/LikeButton/LikeButton.js";import"./components/molecules/ScarcityTag/ScarcityTag.styled.js";export{BeforeAfterVariant,componentSizeMapper}from"./components/before-after/types.js";export{default as createCache}from"@emotion/cache";export{default as styled}from"@emotion/styled";export{CacheProvider,Global,css}from"@emotion/react";export{default as useOnClickOutside}from"./hooks/click-outside.js";export{default as useDeviceType}from"./hooks/useDeviceType/useDeviceType.js";export{useViewportAwarePosition}from"./hooks/useViewportAwarePosition/useViewportAwarePosition.js";export{useWindowDimensions}from"./hooks/WindowDimensions.js";export{buildImageUrl}from"./utils/buildImageUrl/buildImageUrl.js";export{isDangerouslySetInnerHTML}from"./utils/common/index.js";export{benefits,benefitsRawHtml,benefitsRawHtmlV2,sizeOptions,title}from"./utils/constants/offerAtCart.js";export{DateFormat,formatDate}from"./utils/dateFormatter/dateFormatter.js";export{debounce}from"./utils/debounce/index.js";export{decimalFormat}from"./utils/decimalParser/decimalParser.js";export{formatPrice}from"./utils/formatPrice/formatPrice.js";export{getSrcSet}from"./utils/getSrcSet/getSrcSet.js";export{mediaQueries}from"./utils/media.js";export{CancellationFlowAccordionContentPerPartner}from"./utils/mock-content/CancellationFlowAccordion.js";export{simulateMouseClick}from"./utils/simulateClick/simulateClick.js";export{sliceString}from"./utils/sliceString/sliceString.js";export{isEmail,isEmpty,isNumber,isPhoneNumber,isValidDate}from"./utils/validations/validations.js";
2
2
  //# sourceMappingURL=index.js.map
package/build/index.d.ts CHANGED
@@ -3422,6 +3422,7 @@ declare type ProductGalleryProps = {
3422
3422
  videoInPreview?: boolean;
3423
3423
  hideVideoControls?: boolean;
3424
3424
  alwaysPlayInPreview?: boolean;
3425
+ zoomVersion?: string;
3425
3426
  };
3426
3427
  declare const ProductGallery: FC<ProductGalleryProps>;
3427
3428
 
@@ -4481,6 +4482,18 @@ declare type JoinClubProps = {
4481
4482
 
4482
4483
  declare const JoinClubCard: React.FC<JoinClubProps>;
4483
4484
 
4485
+ declare type ZoomModalProps = {
4486
+ modalId: string;
4487
+ contents: ContentType$1[];
4488
+ initialSlide?: number;
4489
+ title?: string;
4490
+ };
4491
+
4492
+ declare type ZoomModalComponentProps = ZoomModalProps & {
4493
+ version: 'v1' | 'v2';
4494
+ };
4495
+ declare const ZoomModalComponent: ({ version, ...props }: ZoomModalComponentProps) => JSX.Element;
4496
+
4484
4497
  declare type SizeOptionProps = {
4485
4498
  key: string;
4486
4499
  label: string;
@@ -4605,7 +4618,7 @@ interface ProductCardV3Props extends ProductItemProps {
4605
4618
  }
4606
4619
  declare const ProductCardV3: FC<ProductCardV3Props>;
4607
4620
 
4608
- interface ProductGalleryMobileProps$3 {
4621
+ interface ProductGalleryMobileProps$4 {
4609
4622
  images: ContentType[];
4610
4623
  customClick?: boolean;
4611
4624
  topTag?: JSX.Element;
@@ -4621,9 +4634,9 @@ interface ProductGalleryMobileProps$3 {
4621
4634
  videoMuted?: boolean;
4622
4635
  videoLoop?: boolean;
4623
4636
  }
4624
- declare const ProductGalleryMobile: react__default.FC<ProductGalleryMobileProps$3>;
4637
+ declare const ProductGalleryMobile: react__default.FC<ProductGalleryMobileProps$4>;
4625
4638
 
4626
- interface ProductGalleryMobileProps$2 {
4639
+ interface ProductGalleryMobileProps$3 {
4627
4640
  images: ContentType[];
4628
4641
  selectedValue?: ContentType;
4629
4642
  topTag?: JSX.Element;
@@ -4632,9 +4645,9 @@ interface ProductGalleryMobileProps$2 {
4632
4645
  slideDotsDataTestId?: string;
4633
4646
  borderRadiusVariant?: boolean;
4634
4647
  }
4635
- declare const ProductGalleryMobileV2: React.FC<ProductGalleryMobileProps$2>;
4648
+ declare const ProductGalleryMobileV2: React.FC<ProductGalleryMobileProps$3>;
4636
4649
 
4637
- interface ProductGalleryMobileProps$1 {
4650
+ interface ProductGalleryMobileProps$2 {
4638
4651
  images: ContentType$1[];
4639
4652
  customClick?: boolean;
4640
4653
  topTag?: JSX.Element;
@@ -4643,7 +4656,7 @@ interface ProductGalleryMobileProps$1 {
4643
4656
  borderRadiusVariant?: boolean;
4644
4657
  selectedValue?: ContentType$1;
4645
4658
  }
4646
- declare const ProductGalleryMobileV3: react__default.FC<ProductGalleryMobileProps$1>;
4659
+ declare const ProductGalleryMobileV3: react__default.FC<ProductGalleryMobileProps$2>;
4647
4660
 
4648
4661
  declare type IImage = {
4649
4662
  key: string;
@@ -4689,7 +4702,7 @@ declare type Responsive = {
4689
4702
  };
4690
4703
  };
4691
4704
 
4692
- declare type ProductGalleryMobileProps = {
4705
+ declare type ProductGalleryMobileProps$1 = {
4693
4706
  images: ContentType[];
4694
4707
  topTag?: JSX.Element;
4695
4708
  bottomTag?: JSX.Element;
@@ -4698,7 +4711,7 @@ declare type ProductGalleryMobileProps = {
4698
4711
  thumbnailSettings?: ThumbnailSettings;
4699
4712
  isRatioSquare?: boolean;
4700
4713
  };
4701
- declare const ProductGalleryMobileV5: react__default.FC<ProductGalleryMobileProps>;
4714
+ declare const ProductGalleryMobileV5: react__default.FC<ProductGalleryMobileProps$1>;
4702
4715
 
4703
4716
  declare type ProductGalleryMobileV6Props = {
4704
4717
  images: ContentType[];
@@ -4710,6 +4723,24 @@ declare type ProductGalleryMobileV6Props = {
4710
4723
  };
4711
4724
  declare const ProductGalleryMobileV6: FC<ProductGalleryMobileV6Props>;
4712
4725
 
4726
+ interface ProductGalleryMobileProps {
4727
+ images: ContentType[];
4728
+ customClick?: boolean;
4729
+ topTag?: JSX.Element;
4730
+ bottomTag?: JSX.Element;
4731
+ productImageDataTestId?: string;
4732
+ borderRadiusVariant?: boolean;
4733
+ selectedValue?: ContentType;
4734
+ hasToPreserveOrder?: boolean;
4735
+ itemsOnViewport?: number;
4736
+ videoAutoplay?: boolean;
4737
+ hideVideoControls?: boolean;
4738
+ videoMuted?: boolean;
4739
+ videoLoop?: boolean;
4740
+ version?: string;
4741
+ }
4742
+ declare const ProductGalleryMobileV7: react__default.FC<ProductGalleryMobileProps>;
4743
+
4713
4744
  interface TableProps$1 {
4714
4745
  headers: string[];
4715
4746
  data: string[][];
@@ -4934,4 +4965,4 @@ declare const isNumber: (value: string) => boolean;
4934
4965
  declare const isPhoneNumber: (value: string) => boolean;
4935
4966
  declare const isValidDate: (value: string) => boolean;
4936
4967
 
4937
- export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, ArrowTip, AssetsProvider, Autoship, AutoshipFrequency, AutoshipFrequencyDropdown, AutoshipOfferCard, AutoshipOfferCardCta, AutoshipPdpCard, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, BenefitsList, BenefitsListProps, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferSelector2, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerOption, ColorPickerWithTooltip, ColorSelector, ColorsState, CommonProps, ComponentPosition, ComponentSize, ContentType, CouponCard, index_d as CrossSell, DateFormat, DateFormatType, DeliveryDetails, DeviceType, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, GreetingsCard, HorizontalDivider, HorizontalDividerProps, HurryUp, HurryUpProps, ISubscriptionFrequencyDropdown, Icon, IconButton, IconName, IconProps, IconWithOpacityProps, IconsWithTitle, IconsWithTitleList, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, JoinClubCard, Icon$1 as LibIcon, IconProps$1 as LibIconProps, LikeButton, LikeButtonColors, LikeButtonProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferAtCart, OfferAtCartBenefitProps, OfferAtCartProps, OfferAtCartV2, OfferAtCartV3, OfferAtCartV4, OfferAtPDP, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PatternSelector, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, PriceLabelV5, PriceLabelV6, PriceType, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProductGalleryMobileV5, ProductGalleryMobileV6, ProgressBar, QuantityPicker, RadioConfig, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, RadiosConfig, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SelectorOnChangeProps, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeChartTableV3, SizeChartTableV4, SizeDropdown, SizeFitGuide, SizeOption, SizeOptionProps, SizeSelector, SizeTable, SliderNavigation, SmartDropdown, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, SubscriptionPlanSelector, SubscriptionPlanSelectorProps, SubscriptionPlanSelectorRadios, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Toast, ToggleComponent, Tooltip, TooltipContent, TooltipHeader, TooltipType, Totals, TrackingProgress, TrackingProgressV2, TwoCtasAtCart, Video, VideoProps, WithBenefits, WithChildren, WithTestId, benefits, benefitsRawHtml, benefitsRawHtmlV2, buildImageUrl, componentSizeMapper, debounce, decimalFormat, formatDate, formatPrice, getSrcSet, imageVideoProps, isDangerouslySetInnerHTML, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sizeOptions, sliceString, title, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useViewportAwarePosition, useWindowDimensions };
4968
+ export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, ArrowTip, AssetsProvider, Autoship, AutoshipFrequency, AutoshipFrequencyDropdown, AutoshipOfferCard, AutoshipOfferCardCta, AutoshipPdpCard, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, BenefitsList, BenefitsListProps, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferSelector2, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerOption, ColorPickerWithTooltip, ColorSelector, ColorsState, CommonProps, ComponentPosition, ComponentSize, ContentType, CouponCard, index_d as CrossSell, DateFormat, DateFormatType, DeliveryDetails, DeviceType, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, GreetingsCard, HorizontalDivider, HorizontalDividerProps, HurryUp, HurryUpProps, ISubscriptionFrequencyDropdown, Icon, IconButton, IconName, IconProps, IconWithOpacityProps, IconsWithTitle, IconsWithTitleList, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, JoinClubCard, Icon$1 as LibIcon, IconProps$1 as LibIconProps, LikeButton, LikeButtonColors, LikeButtonProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferAtCart, OfferAtCartBenefitProps, OfferAtCartProps, OfferAtCartV2, OfferAtCartV3, OfferAtCartV4, OfferAtPDP, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PatternSelector, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, PriceLabelV5, PriceLabelV6, PriceType, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProductGalleryMobileV5, ProductGalleryMobileV6, ProductGalleryMobileV7, ProgressBar, QuantityPicker, RadioConfig, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, RadiosConfig, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SelectorOnChangeProps, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeChartTableV3, SizeChartTableV4, SizeDropdown, SizeFitGuide, SizeOption, SizeOptionProps, SizeSelector, SizeTable, SliderNavigation, SmartDropdown, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, SubscriptionPlanSelector, SubscriptionPlanSelectorProps, SubscriptionPlanSelectorRadios, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Toast, ToggleComponent, Tooltip, TooltipContent, TooltipHeader, TooltipType, Totals, TrackingProgress, TrackingProgressV2, TwoCtasAtCart, Video, VideoProps, WithBenefits, WithChildren, WithTestId, ZoomModalComponent, benefits, benefitsRawHtml, benefitsRawHtmlV2, buildImageUrl, componentSizeMapper, debounce, decimalFormat, formatDate, formatPrice, getSrcSet, imageVideoProps, isDangerouslySetInnerHTML, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sizeOptions, sliceString, title, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useViewportAwarePosition, useWindowDimensions };