@trafilea/afrodita-components 7.24.6 → 7.24.8

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 (42) hide show
  1. package/build/es/components/collection/product/mobile/ProductItemMobile.js +1 -1
  2. package/build/es/components/dropdown/base/BaseDropdownButton.js +1 -1
  3. package/build/es/components/dropdown/base/BaseDropdownOption.js +1 -1
  4. package/build/es/components/icon-button/IconButton.js +1 -1
  5. package/build/es/components/organisms/ProductCard/ProductCardV1/ProductCard.js +1 -1
  6. package/build/es/components/organisms/ProductCard/ProductCardV2/ProductCardV2.js +1 -1
  7. package/build/es/components/organisms/ProductCard/ProductCardV3/ProductCardV3.js +1 -1
  8. package/build/es/components/organisms/ProductCard/utils.js +2 -0
  9. package/build/es/components/organisms/ProductCard/utils.js.map +1 -0
  10. package/build/es/components/pricing/priceLabelV2/PriceLabelTooltip.js +1 -1
  11. package/build/es/components/pricing/priceLabelV2/PriceLabelV2.js +1 -1
  12. package/build/es/components/pricing/priceLabelV3/PriceLabelV3.js +1 -1
  13. package/build/es/components/pricing/priceLabelV4/PriceLabelV4.js +1 -1
  14. package/build/es/components/pricing/priceLabelV5/PriceLabelV5.js +1 -1
  15. package/build/es/components/pricing/priceLabelV6/PriceLabelV6.js +1 -1
  16. package/build/es/components/pricing/priceLabelV6/PriceLabelV6Components.js +1 -1
  17. package/build/es/components/pricing/priceLabelV6/PriceLabelV6Tooltip.js +1 -1
  18. package/build/es/components/quantityPicker/QuantityPicker.js +1 -1
  19. package/build/es/components/tooltip/Styled.js +1 -1
  20. package/build/es/components/tooltip/Tooltip.js +1 -1
  21. package/build/index.d.ts +36 -5
  22. package/build/lib/components/collection/product/mobile/ProductItemMobile.js +1 -1
  23. package/build/lib/components/dropdown/base/BaseDropdownButton.js +1 -1
  24. package/build/lib/components/dropdown/base/BaseDropdownOption.js +1 -1
  25. package/build/lib/components/icon-button/IconButton.js +1 -1
  26. package/build/lib/components/organisms/ProductCard/ProductCardV1/ProductCard.js +1 -1
  27. package/build/lib/components/organisms/ProductCard/ProductCardV2/ProductCardV2.js +1 -1
  28. package/build/lib/components/organisms/ProductCard/ProductCardV3/ProductCardV3.js +1 -1
  29. package/build/lib/components/organisms/ProductCard/utils.js +2 -0
  30. package/build/lib/components/organisms/ProductCard/utils.js.map +1 -0
  31. package/build/lib/components/pricing/priceLabelV2/PriceLabelTooltip.js +1 -1
  32. package/build/lib/components/pricing/priceLabelV2/PriceLabelV2.js +1 -1
  33. package/build/lib/components/pricing/priceLabelV3/PriceLabelV3.js +1 -1
  34. package/build/lib/components/pricing/priceLabelV4/PriceLabelV4.js +1 -1
  35. package/build/lib/components/pricing/priceLabelV5/PriceLabelV5.js +1 -1
  36. package/build/lib/components/pricing/priceLabelV6/PriceLabelV6.js +1 -1
  37. package/build/lib/components/pricing/priceLabelV6/PriceLabelV6Components.js +1 -1
  38. package/build/lib/components/pricing/priceLabelV6/PriceLabelV6Tooltip.js +1 -1
  39. package/build/lib/components/quantityPicker/QuantityPicker.js +1 -1
  40. package/build/lib/components/tooltip/Styled.js +1 -1
  41. package/build/lib/components/tooltip/Tooltip.js +1 -1
  42. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as i,jsx as l}from"react/jsx-runtime";import r,{useState as t,createRef as e,useLayoutEffect as n}from"react";import{useTheme as d}from"../../core/theme/Theme.js";import{useWindowDimensions as c}from"../../hooks/WindowDimensions.js";import{Icon as s}from"../icons/index.js";import{Wrapper as a,TooltipContainer as h,CloseToolTip as u,ContentWrapper as v,TopSection as m,IconContainer as p,Title as f,TooltipText as C}from"./Styled.js";import{getCloseIconRight as b,getTooltipTextMaxWidth as g}from"./utils.js";var w=function(w){var x,k=w.children,y=w.position,I=w.content,T=w.elementContent,W=w.backgroundColor,j=w.borderColor,H=w.showCloseIcon,A=w.align,E=void 0===A?"center":A,F=w.maxWidth,M=w.onClick,S=w.header,D=w.withArrow,N=void 0!==D&&D,_=w.closeBtnSize,z=void 0===_?.5:_,B=d(),K=t(0),L=K[0],R=K[1],q=e(),G=t(0),J=G[0],O=G[1],P=e(),Q=t(!1),U=Q[0],V=Q[1],X=c().isMobile;return n((function(){var o=q.current;R((null==o?void 0:o.offsetWidth)||0)}),[q]),n((function(){var o=P.current;O((null==o?void 0:o.offsetHeight)||0)}),[P]),i(a,o({position:y,disableHover:U,onMouseEnter:function(){return V(U&&!1)},"data-testid":"TooltipWrapper"},{children:[l("div",o({ref:q,onClick:function(){return U&&V(!1)},onKeyDown:function(o){return"Enter"===o.key&&U&&V(!1)},role:"button",tabIndex:0},{children:k}),void 0),i(h,o({position:y,align:E,maxWidth:F,childrenWidth:L,tooltipHeight:J,ref:P,onClick:M,"data-testid":"TooltipContainer",className:"tooltip-container ".concat(U?"hidden":""),borderColor:j||B.colors.shades[200].color,backgroundColor:W||B.colors.shades.white.color,withArrow:N,"data-position":y},{children:[(H||X)&&l(u,o({right:b(y,null==S?void 0:S.iconRight),onClick:function(){return V(!0)}},{children:l(s.Actions.Close,{width:z,height:z,fill:null!==(x=null==S?void 0:S.iconFill)&&void 0!==x?x:B.colors.pallete.secondary.color},void 0)}),void 0),i(v,o({className:"tooltip-wrapper",borderColor:j||B.colors.shades[200].color,backgroundColor:null!=W?W:B.colors.shades.white.color},{children:[S&&i(m,o({"data-testid":"TooltipHeader"},{children:[(null==S?void 0:S.Icon)&&l(p,{children:r.createElement(S.Icon,{testId:"HeaderIcon",fill:(null==S?void 0:S.iconFill)?null==S?void 0:S.iconFill:B.colors.pallete.secondary.color})},void 0),l(f,o({color:(null==S?void 0:S.titleColor)?null==S?void 0:S.titleColor:B.colors.pallete.secondary.color},{children:S.title}),void 0)]}),void 0),I&&(null==I?void 0:I.text)?l(C,{color:(null==I?void 0:I.color)?null==I?void 0:I.color:B.colors.pallete.secondary.color,"data-testid":"TooltipText",dangerouslySetInnerHTML:{__html:I.text},maxWidth:g(y)},void 0):T]}),void 0)]}),void 0)]}),void 0)};export{w as Tooltip};
1
+ import{__assign as o}from"tslib";import{jsxs as i,jsx as e}from"react/jsx-runtime";import l,{useState as r,useRef as t,useLayoutEffect as n}from"react";import{useTheme as d}from"../../core/theme/Theme.js";import{useWindowDimensions as c}from"../../hooks/WindowDimensions.js";import{Icon as a}from"../icons/index.js";import{Wrapper as s,TooltipContainer as u,CloseToolTip as v,ContentWrapper as h,TopSection as p,IconContainer as f,Title as m,TooltipText as b}from"./Styled.js";import{getCloseIconRight as g,getTooltipTextMaxWidth as C}from"./utils.js";var y=0,k=function(k){var w,x,T,I=k.children,W=k.position,j=k.content,D=k.elementContent,E=k.backgroundColor,H=k.borderColor,A=k.showCloseIcon,F=k.align,K=void 0===F?"center":F,M=k.maxWidth,S=k.onClick,B=k.header,L=k.withArrow,N=void 0!==L&&L,_=k.closeBtnSize,z=void 0===_?.5:_,R=k.triggerAriaLabel,V=k.tooltipId,q=k.enableKeyboardToggle,G=void 0!==q&&q,J=d(),O=r(0),P=O[0],Q=O[1],U=t(null),X=t(null),Y=r(0),Z=Y[0],$=Y[1],oo=t(null),io=r(!1),eo=io[0],lo=io[1],ro=r(!1),to=ro[0],no=ro[1],co=t(null);null==co.current&&(co.current=null!=V?V:"afrodita-tooltip-".concat(++y));var ao=c().isMobile;n((function(){var o=X.current;Q((null==o?void 0:o.offsetWidth)||0)}),[]),n((function(){var o=oo.current;$((null==o?void 0:o.offsetHeight)||0)}),[]);return i(s,o({ref:U,position:W,disableHover:eo,onMouseEnter:function(){return lo(eo&&!1)},"data-testid":"TooltipWrapper",onBlur:function(o){var i;if(G){var e=o.relatedTarget;e&&(null===(i=U.current)||void 0===i?void 0:i.contains(e))||no(!1)}}},{children:[e("div",o({ref:X,onClick:function(){return eo&&lo(!1)},onKeyDown:function(o){"Enter"===o.key&&eo&&lo(!1),function(o){if(G)"Enter"===o.key||" "===o.key?(o.preventDefault(),eo&&lo(!1),no((function(o){return!o}))):"Escape"===o.key&&(o.preventDefault(),no(!1))}(o)},role:"button",tabIndex:0,"aria-label":R,"aria-describedby":to&&null!==(w=co.current)&&void 0!==w?w:void 0,"aria-expanded":G?to:void 0},{children:I}),void 0),i(u,o({position:W,align:K,maxWidth:M,childrenWidth:P,tooltipHeight:Z,ref:oo,onClick:S,"data-testid":"TooltipContainer",className:"tooltip-container ".concat(eo?"hidden":""),borderColor:H||J.colors.shades[200].color,backgroundColor:E||J.colors.shades.white.color,withArrow:N,"data-position":W,forceVisible:to,role:"tooltip",id:null!==(x=co.current)&&void 0!==x?x:void 0,"aria-hidden":G?!to:void 0,onKeyDown:function(o){var i;G&&"Escape"===o.key&&(o.preventDefault(),no(!1),null===(i=X.current)||void 0===i||i.focus())}},{children:[(A||ao)&&e(v,o({right:g(W,null==B?void 0:B.iconRight),onClick:function(){lo(!0),no(!1)}},{children:e(a.Actions.Close,{width:z,height:z,fill:null!==(T=null==B?void 0:B.iconFill)&&void 0!==T?T:J.colors.pallete.secondary.color},void 0)}),void 0),i(h,o({className:"tooltip-wrapper",borderColor:H||J.colors.shades[200].color,backgroundColor:null!=E?E:J.colors.shades.white.color},{children:[B&&i(p,o({"data-testid":"TooltipHeader"},{children:[(null==B?void 0:B.Icon)&&e(f,{children:l.createElement(B.Icon,{testId:"HeaderIcon",fill:(null==B?void 0:B.iconFill)?null==B?void 0:B.iconFill:J.colors.pallete.secondary.color})},void 0),e(m,o({color:(null==B?void 0:B.titleColor)?null==B?void 0:B.titleColor:J.colors.pallete.secondary.color},{children:B.title}),void 0)]}),void 0),j&&(null==j?void 0:j.text)?e(b,{color:(null==j?void 0:j.color)?null==j?void 0:j.color:J.colors.pallete.secondary.color,"data-testid":"TooltipText",dangerouslySetInnerHTML:{__html:j.text},maxWidth:C(W)},void 0):D]}),void 0)]}),void 0)]}),void 0)};export{k as Tooltip};
2
2
  //# sourceMappingURL=Tooltip.js.map
package/build/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as react from 'react';
3
- import react__default, { FC, ReactNode, ComponentType, CSSProperties, ElementType, SVGProps, ReactElement, ReactFragment, DetailedHTMLProps, VideoHTMLAttributes, MouseEvent as MouseEvent$1, AriaAttributes, HTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
3
+ import react__default, { FC, ReactNode, ComponentType, CSSProperties, ElementType, SVGProps, ReactElement, ReactFragment, DetailedHTMLProps, VideoHTMLAttributes, MouseEvent as MouseEvent$1, KeyboardEvent, AriaAttributes, HTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
4
4
  import { ComponentSize as ComponentSize$1 } from 'src/types/enums';
5
5
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
6
6
  import { TextProps as TextProps$1 } from 'src/components/text/Text';
@@ -1389,7 +1389,7 @@ declare type ImageStyleProps = {
1389
1389
  };
1390
1390
 
1391
1391
  declare type ImgAttributes = React.ImgHTMLAttributes<HTMLImageElement>;
1392
- declare type InheritedAttributes = Pick<ImgAttributes, 'sizes' | 'srcSet' | 'className' | 'loading' | 'decoding'>;
1392
+ declare type InheritedAttributes = Pick<ImgAttributes, 'sizes' | 'srcSet' | 'className' | 'loading' | 'decoding' | 'aria-hidden'>;
1393
1393
  declare type ImageProps = InheritedAttributes & ImageStyleProps & {
1394
1394
  src: string;
1395
1395
  alt: string;
@@ -1475,6 +1475,7 @@ declare type Props$4 = PriceLabelProps & {
1475
1475
  tooltipText?: string;
1476
1476
  tooltipIcon?: IconName$1;
1477
1477
  tooltipPosition?: ComponentPosition;
1478
+ tooltipAriaLabel?: string;
1478
1479
  hasVerticalLayout?: boolean;
1479
1480
  hasHorizontalLayout?: boolean;
1480
1481
  isMobile?: boolean;
@@ -1497,6 +1498,8 @@ interface PriceLabelV5Props {
1497
1498
  finalPriceStyle?: react__default.CSSProperties;
1498
1499
  originalPriceUnderlined?: boolean;
1499
1500
  testId?: string;
1501
+ finalPriceAriaLabel?: string;
1502
+ originalPriceAriaLabel?: string;
1500
1503
  }
1501
1504
  declare const PriceLabelV5: react__default.FC<PriceLabelV5Props>;
1502
1505
 
@@ -1508,6 +1511,7 @@ declare type Props$2 = PriceLabelProps & {
1508
1511
  tooltipText?: string;
1509
1512
  tooltipIcon?: IconName$1;
1510
1513
  tooltipPosition?: ComponentPosition;
1514
+ tooltipAriaLabel?: string;
1511
1515
  hasHorizontalLayout?: boolean;
1512
1516
  isMobile?: boolean;
1513
1517
  };
@@ -3086,7 +3090,12 @@ interface ProductItemSmallMobileProps extends ProductItemProps {
3086
3090
  topTag?: JSX.Element;
3087
3091
  bottomTag?: JSX.Element;
3088
3092
  onClick?: () => void;
3089
- onClickBottomButton?: (e: MouseEvent$1<HTMLDivElement, MouseEvent>) => void;
3093
+ onClickBottomButton?: (e: MouseEvent$1<HTMLDivElement, MouseEvent> | KeyboardEvent<HTMLDivElement>) => void;
3094
+ quickViewAriaLabel?: string;
3095
+ sellingFastAriaLabel?: string;
3096
+ quickViewAriaHidden?: boolean;
3097
+ sellingFastAriaHidden?: boolean;
3098
+ sellingFast?: boolean;
3090
3099
  priceDisplayType?: 'default' | 'styled' | 'styled-2' | 'hidden';
3091
3100
  priceAtBottom?: boolean;
3092
3101
  ratingOnTop?: boolean;
@@ -3142,6 +3151,10 @@ interface ProductItemSmallMobileProps extends ProductItemProps {
3142
3151
  tooltipText?: string;
3143
3152
  tooltipIcon?: IconName;
3144
3153
  tooltipPosition?: ComponentPosition;
3154
+ finalPriceAriaLabel?: string;
3155
+ originalPriceAriaLabel?: string;
3156
+ discountAriaLabel?: string;
3157
+ tooltipAriaLabel?: string;
3145
3158
  }
3146
3159
 
3147
3160
  declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: react__default.FC<P>, data: ProductItemProps[]): {
@@ -3498,6 +3511,7 @@ interface IconButtonProps {
3498
3511
  };
3499
3512
  disabled?: boolean;
3500
3513
  onClick?: (event: MouseEvent$1<HTMLDivElement, MouseEvent>) => void;
3514
+ onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
3501
3515
  size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
3502
3516
  dataTestId?: string;
3503
3517
  hasText?: boolean;
@@ -3506,6 +3520,10 @@ interface IconButtonProps {
3506
3520
  width?: string;
3507
3521
  border?: string;
3508
3522
  inline?: boolean;
3523
+ role?: React.AriaRole;
3524
+ tabIndex?: number;
3525
+ 'aria-label'?: string;
3526
+ 'aria-hidden'?: boolean;
3509
3527
  }
3510
3528
  declare const IconButton: FC<IconButtonProps>;
3511
3529
 
@@ -3783,8 +3801,9 @@ declare type QuantityPickerProps = {
3783
3801
  increaseAriaLabel?: string;
3784
3802
  decreaseAriaLabel?: string;
3785
3803
  quantityAriaLabel?: string;
3804
+ groupAriaDescribedBy?: string;
3786
3805
  } & (QuantityPickerPropsControlled | QuantityPickerPropsUncontrolled);
3787
- declare const QuantityPicker: ({ initialValue, maxValue, value, testId, onChange, isOutlined, increaseIcon, decreaseIcon, increaseAriaLabel, decreaseAriaLabel, quantityAriaLabel, }: QuantityPickerProps) => JSX.Element;
3806
+ declare const QuantityPicker: ({ initialValue, maxValue, value, testId, onChange, isOutlined, increaseIcon, decreaseIcon, increaseAriaLabel, decreaseAriaLabel, quantityAriaLabel, groupAriaDescribedBy, }: QuantityPickerProps) => JSX.Element;
3788
3807
 
3789
3808
  interface RadioProps$1 {
3790
3809
  name: string;
@@ -4351,8 +4370,11 @@ interface TooltipProps {
4351
4370
  onClick?: () => void;
4352
4371
  withArrow?: boolean;
4353
4372
  closeBtnSize?: number;
4373
+ triggerAriaLabel?: string;
4374
+ tooltipId?: string;
4375
+ enableKeyboardToggle?: boolean;
4354
4376
  }
4355
- declare const Tooltip: ({ children, position, content, elementContent, backgroundColor, borderColor, showCloseIcon, align, maxWidth, onClick, header, withArrow, closeBtnSize, }: TooltipProps) => JSX.Element;
4377
+ declare const Tooltip: ({ children, position, content, elementContent, backgroundColor, borderColor, showCloseIcon, align, maxWidth, onClick, header, withArrow, closeBtnSize, triggerAriaLabel, tooltipId, enableKeyboardToggle, }: TooltipProps) => JSX.Element;
4356
4378
 
4357
4379
  declare type SubtotalOption = {
4358
4380
  label: string;
@@ -4661,6 +4683,10 @@ interface ProductCardV2Props extends ProductItemProps {
4661
4683
  bottomTag?: JSX.Element;
4662
4684
  onClick?: () => void;
4663
4685
  onClickEye?: () => void;
4686
+ quickViewAriaLabel?: string;
4687
+ sellingFastAriaLabel?: string;
4688
+ quickViewAriaHidden?: boolean;
4689
+ sellingFastAriaHidden?: boolean;
4664
4690
  priceDisplayType?: 'default' | 'styled';
4665
4691
  priceAtBottom?: boolean;
4666
4692
  priceLoading?: boolean;
@@ -4680,6 +4706,11 @@ interface ProductCardV3Props extends ProductItemProps {
4680
4706
  bottomTag?: JSX.Element;
4681
4707
  onClick?: () => void;
4682
4708
  onClickEye?: () => void;
4709
+ quickViewAriaLabel?: string;
4710
+ sellingFastAriaLabel?: string;
4711
+ quickViewAriaHidden?: boolean;
4712
+ sellingFastAriaHidden?: boolean;
4713
+ sellingFast?: boolean;
4683
4714
  priceDisplayType?: 'default' | 'styled';
4684
4715
  priceAtBottom?: boolean;
4685
4716
  priceLoading?: boolean;
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),i=require("@emotion/react/jsx-runtime"),r=require("react"),o=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js");require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var t=require("../../../atoms/Image/Image.js");require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("react/jsx-runtime"),require("../../../atoms/Toggle/toggle.styled.js");var l=require("../../../buynowpaylater/BuyNowPayLater.js"),n=require("../../../club-price-label/ClubPriceLabel.js"),a=require("../../../shared/spacing/Spacing.js"),d=require("../../../strength-bars/StrengthBars.js"),c=require("../../../../core/theme/Theme.js"),u=require("../../../../hooks/WindowDimensions.js");require("../../../../utils/constants/offerAtCart.js");var g=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var j=require("../../../../types/enums.js");require("../../../PackSelectorV2/PackSelectoV2.js"),require("../../../absorbency-level/AbsorbencyLevel.js"),require("../../../accordion-options/AccordionOptions.js"),require("../../../accordion/Accordion.js"),require("../../../dropdown/variants/simple/SimpleDropdown.js");var m=require("../../../icons/index.js");require("../../../radio/input/styles.js"),require("../../../tooltip/Styled.js"),require("../../../autoship/styled.js"),require("../../../autoshipV2/styled.js"),require("../../../before-after/BeforeAfter.js"),require("../../../pricing/clubOffer/ClubOfferTag.js");var p=require("../../../pricing/discount/DiscountTag.js"),v=require("../../../pricing/price/PriceLabel.js"),q=require("../../../pricing/priceLabelV2/PriceLabelV2.js");require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var h=require("../../../pricing/priceLabelV6/PriceLabelV6.js");require("../../../shared/card/Card.js"),require("../../../bundle/minimalistic/styled.js"),require("../../../text/Text.js"),require("../../../bundle/motivator/styled.js"),require("../../../bundle/simple/Simple.js"),require("../../../offer-banner/OfferBanner.js"),require("../../../cartProductItem/CloseIcon/CloseButton.js"),require("../../../cartProductItem/Description/Description.js"),require("../../../cartProductItem/Promo/Promo.js"),require("../../../cartProductItem/Title/Title.js"),require("../../../cartProductItem/TrashIcon/styled.js"),require("../../../checkbox/Checkbox.js"),require("../../grid/WithProductGrid.js");var y=require("../../../pricing/priceLabelV4/PriceLabelV4.js"),b=require("../../../rating/Rating.js"),P=require("./constants.js"),f=require("./styled.js"),S=require("../../../pricing/styles.js"),C=require("../../../icon-button/IconButton.js");require("../../../tag/variants/product/styled.js"),require("../truekind/styled.js"),require("../../../color/ColorRadioGroup.js"),require("../../../color/selector/PatternSelector.js"),require("../../../color/styles/ColorPickerwithTootip.styled.js"),require("../../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../../cta/styled.js"),require("../../../delivery-details/DeliveryDetails.js"),require("../../../delivery-details/Note/Note.js"),require("../../../drawer/style.js"),require("../../../dropdown-list-icons/Styled.js"),require("../../../dropdown/size-dropdown/Styled.js"),require("../../../dropdown/variants/dialog/DropdownDialog.js"),require("../../../dropdown/base/BaseDropdown.js"),require("@headlessui/react"),require("../../../input/base/Error.js"),require("../../../shared/select/BaseSelect.js"),require("../../../dropdown/variants/smart/styled.js"),require("../../../filtering/Accordion.js"),require("../../../filtering/FiltersStyled.js"),require("../../../filtering/Tags/Tags.js"),require("../../../fit-guarantee/FitGuarantee.js"),require("../../../fit/FitPredictor.js"),require("@ant-design/react-slick"),require("react-zoom-pan-pinch"),require("../../../modal/Modal.js"),require("../../../organisms/ModalZoom/zoomModal.styled.js"),require("../../../organisms/ModalZoom/ZoomModalV2.styled.js"),require("../../../molecules/Video/components/styled.js"),require("../../../molecules/Video/styled.js"),require("../../../slider/ArrowButton.js"),require("../../../slider/StyledSlider.js"),require("../../../gallery/components/ImageSmallPreview/styled.js"),require("../../../gallery/components/ImagePreviewList/styled.js"),require("../../../gallery/components/ImageProductSlide/styled.js"),require("../../../gallery/styled.js"),require("../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../../iconsWithTitle/index.js"),require("../../../image-card/ImageCard.js"),require("../../../input/label/Label.js"),require("../../../input/base/Styled.js"),require("../../../input/custom/Custom.js"),require("../../../input/basePlusButton/BasePlusButton.js"),require("../../../input/basePlusIcon/BasePlusIcon.js"),require("../../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../../order-bar/OrderBar.js"),require("../../../packs/selector/PackSelector.js"),require("../../../pagination/styles.js"),require("../../../payment-methods/PaymentMethod.js"),require("../../../product/order/item/SimpleOrderItem.js"),require("../../../progress-bar/ProgressBar.js"),require("../../../quantityPicker/styled.js"),require("../../../radio/RadioPrimary/radioPrimary.js"),require("../../../radio/clubRadioInput/clubRadio.js"),require("../../../rating/starList/StarList.js"),require("../../../review-detail/ReviewDetail.js"),require("../../../review/Review.js"),require("../../../reviews-header/ReviewsHeader.js"),require("../../../scroll-to-top/ScrollToTop.js"),require("../../../search-bar/components/ClearButton/styled.js"),require("../../../search-bar/components/Footer/styled.js"),require("../../../search-bar/components/ProductItem/styled.js"),require("../../../search-bar/components/ResultsPanel/styled.js"),require("../../../search-bar/components/SearchControl/styled.js"),require("../../../search-bar/styled.js"),require("../../../search-navigation/styled.js"),require("react-dom"),require("../../../short-banner/ShortBanner.js"),require("../../../size-chart/styled.js"),require("../../../size-table/SizeTable.js"),require("../../../size/guide/SizeFitGuide.js"),require("../../../size/selector/styled.js"),require("../../../tabs/Tab.js"),require("../../../tabs/Tabs.js"),require("../../../tag/Tag.js"),require("@emotion/react"),require("../../../textWithImage/index.js"),require("../../../timer/styled.js"),require("../../../toast/Toast.js"),require("../../../totals/total/styled.js"),require("../../../totals/subtotal/Subtotal.js"),require("../../../tracking-progress-v2/TrackingProgressV2.js"),require("../../../tracking-progress/TrackingProgress.js"),require("../../../organisms/AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../../../organisms/AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../../../organisms/AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../../../organisms/BasicAccordion/BasicAccordion.js"),require("../../../organisms/CartItemCard/CartItem.js"),require("../../../organisms/ClubOfferSelector/styled.js"),require("../../../organisms/ClubOfferSelector2/styled.js"),require("../../../organisms/JoinClubCard/joinClubCard.js"),require("../../../organisms/OfferAtCart/styled.js"),require("../../../organisms/OfferAtCartV2/styled.js"),require("../../../organisms/OfferAtCartV3/styled.js"),require("../../../organisms/OfferAtCartV4/styled.js"),require("../../../organisms/OfferAtPDP/styled.js"),require("../../../organisms/OfferAtPDP/types.js"),require("../../../organisms/ProductCard/ProductCardV1/ProductCard.js"),require("../../../organisms/ProductCard/ProductCardV2/styled.js"),require("../../../organisms/ProductCard/ProductCardV3/styled.js"),require("../../../organisms/ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../../../organisms/SizeCharTable/SizeChartTableV2/styled.js"),require("../../../organisms/SizeCharTable/SizeChartTableV3/styled.js"),require("../../../molecules/ArrowTip/ArrowTip.styled.js"),require("../../../organisms/SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js"),require("../../../organisms/SubscriptionPlanSelector/styled.js"),require("../../../organisms/TwoCtasAtCart/Greeting.styled.js"),require("../../../organisms/TwoCtasAtCart/Card.styled.js"),require("../../../timerV2/styled.js"),require("../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../../molecules/CouponCard/styled.js"),require("../../../molecules/BenefitsList/styled.js"),require("../../../molecules/HurryUp/styled.js"),require("../../../molecules/Spinner/styled.js"),require("../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js");var x=require("../../../molecules/LikeButton/LikeButton.js");require("../../../molecules/ScarcityTag/ScarcityTag.styled.js");module.exports=function(z){var w,T,L,I,k,B,V,A,D,_,O,M=z.title,F=z.image,R=z.imageHover,N=z.price,W=z.rating,E=z.hideRating,G=void 0!==E&&E,H=z.size,Y=z.alignName,Z=void 0===Y?"center":Y,J=z.url,K=z.className,Q=z.topTag,U=z.bottomTag,X=z.onClick,$=z.priceDisplayType,ee=void 0===$?"default":$,ie=z.priceAtBottom,re=z.ratingOnTop,oe=z.priceLoading,se=z.noFollow,te=void 0!==se&&se,le=z.colorPicker,ne=void 0===le?{display:!1,position:"top",component:void 0,componentContainerProps:{position:"absolute",top:"4px",right:"4px",padding:"0px",boxSizing:"border-box",zIndex:1}}:le,ae=z.isBNPL,de=void 0===ae?{displayBNPL:!1,installments:4,installmentPrice:"",iconFolder:"PDP",iconName:"Klarna",showLogo:!0,iconColor:"#292929",fontSize:"12px"}:ae,ce=z.hasStrength,ue=void 0===ce?{strength:-1,description:""}:ce,ge=z.clubPrice,je=void 0===ge?"":ge,me=z.showClubPriceLabel,pe=void 0!==me&&me,ve=z.isRatingLoading,qe=z.version,he=void 0===qe?1:qe,ye=z.showDiscountPercentageTag,be=void 0!==ye&&ye,Pe=z.discountTagLoading,fe=z.discountTag,Se=z.isOnViewport,Ce=void 0!==Se&&Se,xe=z.hasDefaultSize,ze=void 0!==xe&&xe,we=z.clubOffer,Te=z.likeBtn,Le=z.onClickBottomButton,Ie=z.showDecimals,ke=void 0===Ie||Ie,Be=z.showDivider,Ve=void 0!==Be&&Be,Ae=z.invertPriceDirection,De=void 0!==Ae&&Ae,_e=z.priceAndReviewInOneLine,Oe=void 0!==_e&&_e,Me=z.priceAndDiscountTagInOneLine,Fe=void 0!==Me&&Me,Re=z.tooltipText,Ne=z.tooltipIcon,We=z.tooltipPosition,Ee=c.useTheme(),Ge=f.getStylesBySize(H),He=u.useWindowDimensions().isMobile,Ye=r.useMemo((function(){var e;return(e={},e[j.ComponentSize.Large]=8,e[j.ComponentSize.Medium]=4,e[j.ComponentSize.Small]=2,e)[H]}),[H]),Ze=be?fe:void 0,Je=function(r){var o,t,l,n,a,d;if(void 0===r&&(r=he),"hidden"===ee)return null;switch(r){case 4:return"styled"===ee?i.jsx(y.PriceLabelV4,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v4",clubStyle:pe,clubPrice:je,styledPrice:!0,finalPriceStyle:pe?He?{fontSize:"12px",fontWeight:700,color:null===(t=Ee.colors.pallete.brickRed)||void 0===t?void 0:t.color}:{fontSize:"16px",fontWeight:700,color:null===(o=Ee.colors.pallete.brickRed)||void 0===o?void 0:o.color}:void 0},void 0):i.jsx(y.PriceLabelV4,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v4",clubStyle:pe,clubPrice:je,finalPriceStyle:pe?He?{fontSize:"12px",fontWeight:700,color:null===(n=Ee.colors.pallete.brickRed)||void 0===n?void 0:n.color}:{fontSize:"16px",fontWeight:700,color:null===(l=Ee.colors.pallete.brickRed)||void 0===l?void 0:l.color}:void 0},void 0);case 5:return i.jsx(f.ClubOfferPriceLabelWrapper,e.__assign({style:null==we?void 0:we.wrapperStyle},{children:i.jsx(s.ClubPriceMemberLabel,{isClub:!0,isPDP:!0,finalPrice:null===(a=null==we?void 0:we.price)||void 0===a?void 0:a.finalPrice,originalPrice:null===(d=null==we?void 0:we.price)||void 0===d?void 0:d.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v4",clubStyle:pe,icon:null==we?void 0:we.clubOfferIcon,isCollections:null==we?void 0:we.isCollections},void 0)}),void 0);case 6:return i.jsx(h.PriceLabelV6,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v6",showDecimals:ke,tooltipText:Re,tooltipIcon:Ne,tooltipPosition:We,isMobile:He,savingsDisplay:be,discount:Ze},void 0);default:return"styled"===ee?i.jsx(q.PriceLabelV2,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Large,testId:"volume-discount",showDecimals:ke},void 0):i.jsx(v.PriceLabel,{invertDirection:De,finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount",clubStyle:pe,finalPriceStyle:pe?He?{fontSize:"12px",fontWeight:700}:{fontSize:"16px",fontWeight:700}:void 0},void 0)}},Ke=function(){return G||!W.reviews&&!W.rating?i.jsx(i.Fragment,{},void 0):ve?i.jsx(o,{height:"20px",width:"80px"},void 0):i.jsx(b.Rating,{size:H===j.ComponentSize.Large?j.ComponentSize.Small:j.ComponentSize.XSmall,rating:W.rating,reviews:null==W?void 0:W.reviews,reviewsText:"",wrapWithParenthesis:!0},void 0)},Qe=r.useState(null!==(w=null==Te?void 0:Te.isLiked)&&void 0!==w&&w),Ue=Qe[0],Xe=Qe[1],$e=r.useState(null!==(T=null==Te?void 0:Te.likes)&&void 0!==T?T:0),ei=$e[0],ii=$e[1],ri=Fe?f.InlineContainer:r.Fragment;return i.jsxs(f.ProdCardContainer,e.__assign({className:K,"data-testid":"product-card-container-div"},{children:["corner"===ne.position&&i.jsx(f.CornerContainer,e.__assign({},ne.componentContainerProps,{children:ne.component}),void 0),i.jsxs(f.Container,e.__assign({as:J?"a":"div",href:J,rel:te?"nofollow":"",className:"picContainer",onClick:X},{children:[!!Te&&i.jsx(x.LikeButton,{isLiked:Ue,likes:ei,onClick:function(e){e.stopPropagation(),ii(Ue?function(e){return e-1}:function(e){return e+1}),Xe((function(e){return!e})),null==Te||Te.onClick(e)},colors:{background:{active:null!==(k=null===(I=null===(L=Te.colors)||void 0===L?void 0:L.background)||void 0===I?void 0:I.active)&&void 0!==k?k:Ee.colors.shades.white.color,hover:null!==(O=null!==(A=null===(V=null===(B=Te.colors)||void 0===B?void 0:B.background)||void 0===V?void 0:V.hover)&&void 0!==A?A:null===(_=null===(D=Te.colors)||void 0===D?void 0:D.background)||void 0===_?void 0:_.active)&&void 0!==O?O:Ee.colors.shades.white.color}}},void 0),Q||U?i.jsxs(f.ImageContainer,e.__assign({width:null==Ge?void 0:Ge.width,height:null==Ge?void 0:Ge.height,"data-testid":"tags-image-container"},{children:[i.jsx(t.Image,{src:F.src,srcSet:g.getSrcSet(F.src,180,360,720,960),alt:F.alt,width:ze?null==Ge?void 0:Ge.width:"100%",height:ze?null==Ge?void 0:Ge.height:"100%",loading:Ce?"eager":"lazy",decoding:Ce?"sync":"async",borderRadius:P.STYLES_BY_THEME[Ee.name].image.borderRadius},void 0),i.jsx(f.TopTagContainer,e.__assign({style:{width:ne.display?"100%":"inherit"}},{children:Q}),void 0),i.jsx(f.BottomTagContainer,e.__assign({style:{width:ne.display?"100%":"inherit"}},{children:U}),void 0)]}),void 0):i.jsx(t.Image,{src:F.src,srcSet:g.getSrcSet(F.src,180,360,720,960),alt:F.alt,width:null==Ge?void 0:Ge.width,height:null==Ge?void 0:Ge.height,loading:Ce?"eager":"lazy",decoding:Ce?"sync":"async",borderRadius:P.STYLES_BY_THEME[Ee.name].image.borderRadius},void 0),R?i.jsx(f.ImageHoverContainer,{className:"hover__image",src:R.src,srcSet:g.getSrcSet(R.src,180,360,720,960),loading:"lazy",decoding:"async",alt:R.alt,width:null==Ge?void 0:Ge.width,height:null==Ge?void 0:Ge.height},void 0):null]}),void 0),ne.display&&"top"===ne.position&&i.jsxs(i.Fragment,{children:[i.jsx(a.Spacing,{size:Ye},void 0),ne.component]},void 0),re&&i.jsxs(i.Fragment,{children:[i.jsx(a.Spacing,{size:Ye},void 0),i.jsx(a.Spacing,{size:Ye},void 0),i.jsx(Ke,{},void 0)]},void 0),i.jsxs(f.Container,e.__assign({as:J?"a":"div",href:J,rel:te?"nofollow":"",onClick:X,className:"textContainer",style:{alignItems:pe?"flex-start":"center"}},{children:[i.jsx(a.Spacing,{size:Ye},void 0),i.jsx(f.Title,e.__assign({theme:Ee,align:pe?"left":Z,"data-testid":"product-card-title"},{children:M}),void 0),i.jsx(a.Spacing,{size:Ye},void 0),Ve&&i.jsxs(i.Fragment,{children:[i.jsx(f.Divider,{theme:Ee},void 0),i.jsx(a.Spacing,{size:Ye},void 0)]},void 0),ue&&-1!==ue.strength&&i.jsxs(i.Fragment,{children:[i.jsx(d.StrengthBars,{barsFilled:ue.strength,supportText:ue.description},void 0),i.jsx(a.Spacing,{size:10},void 0)]},void 0),ie&&!re?i.jsxs(i.Fragment,{children:[i.jsx(Ke,{},void 0),i.jsx(a.Spacing,{size:Ye},void 0),i.jsxs(f.MarginTopContainer,e.__assign({style:{marginTop:(null==we?void 0:we.isClubOffer)?0:8}},{children:[oe?i.jsx(o,{height:"20px",width:"140px"},void 0):Je(),(null==we?void 0:we.isClubOffer)&&Je(5)]}),void 0)]},void 0):i.jsxs(i.Fragment,{children:[i.jsxs(ri,{children:[oe?i.jsx(o,{height:"20px",width:"140px"},void 0):Oe&&!re?i.jsxs(f.OneLineInfoWrapper,{children:[Je(),i.jsx(Ke,{},void 0)]},void 0):i.jsxs(i.Fragment,{children:[!(null==we?void 0:we.isClubMember)&&Je(),(null==we?void 0:we.isClubOffer)&&Je(5),i.jsx(l.BuyNowPayLater,{displayBNPL:null==de?void 0:de.displayBNPL,installments:(null==de?void 0:de.installments)||0,installmentPrice:(null==de?void 0:de.installmentPrice)||"",iconFolder:null==de?void 0:de.iconFolder,iconName:(null==de?void 0:de.iconName)||"",showLogo:null==de?void 0:de.showLogo,iconColor:null==de?void 0:de.iconColor,fontSize:null==de?void 0:de.fontSize},void 0)]},void 0),pe&&i.jsx(n.ClubPriceLabel,{clubPrice:je},void 0),6!==he&&(Pe?i.jsx(o,{height:"22px",width:"75px"},void 0):be&&i.jsx(S.TagContainer,e.__assign({size:j.ComponentSize.Small},{children:fe&&i.jsx(p.DiscountTag,e.__assign({},fe,{size:j.ComponentSize.Medium,style:{letterSpacing:"-0.05rem"}}),void 0)}),void 0))]},void 0),i.jsx(a.Spacing,{size:Ye},void 0),!re&&!Oe&&i.jsx(Ke,{},void 0)]},void 0),!!Le&&i.jsxs(i.Fragment,{children:[i.jsx(a.Spacing,{size:Ye},void 0),i.jsx(a.Spacing,{size:Ye},void 0),i.jsxs(C.IconButton,e.__assign({size:j.ComponentSize.Small,width:"100%",onClick:function(e){e.preventDefault(),e.stopPropagation(),null==Le||Le(e)},backgroundColor:{active:"transparent",hover:"transparent"},hasText:!0,rounded:!1,border:"1px solid #D1D1D1"},{children:[i.jsx(m.Icon.Custom.Eye,{fill:"black",width:"16px",height:"16px"},void 0),i.jsx("span",e.__assign({style:{color:"black",fontSize:"14px"}},{children:"Quick View"}),void 0)]}),void 0)]},void 0)]}),void 0),ne.display&&"bottom"===ne.position&&i.jsxs(i.Fragment,{children:[i.jsx(a.Spacing,{size:Ye},void 0),ne.component]},void 0)]}),void 0)};
1
+ "use strict";var e=require("tslib"),i=require("@emotion/react/jsx-runtime"),r=require("react"),o=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js");require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var t=require("../../../atoms/Image/Image.js");require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("react/jsx-runtime"),require("../../../atoms/Toggle/toggle.styled.js");var l=require("../../../buynowpaylater/BuyNowPayLater.js"),a=require("../../../club-price-label/ClubPriceLabel.js"),n=require("../../../shared/spacing/Spacing.js"),d=require("../../../strength-bars/StrengthBars.js"),c=require("../../../../core/theme/Theme.js"),u=require("../../../../hooks/WindowDimensions.js");require("../../../../utils/constants/offerAtCart.js");var g=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var j=require("../../../../types/enums.js");require("../../../PackSelectorV2/PackSelectoV2.js"),require("../../../absorbency-level/AbsorbencyLevel.js"),require("../../../accordion-options/AccordionOptions.js"),require("../../../accordion/Accordion.js"),require("../../../dropdown/variants/simple/SimpleDropdown.js");var p=require("../../../icons/index.js");require("../../../radio/input/styles.js"),require("../../../tooltip/Styled.js"),require("../../../autoship/styled.js"),require("../../../autoshipV2/styled.js"),require("../../../before-after/BeforeAfter.js"),require("../../../pricing/clubOffer/ClubOfferTag.js");var v=require("../../../pricing/discount/DiscountTag.js"),m=require("../../../pricing/price/PriceLabel.js"),q=require("../../../pricing/priceLabelV2/PriceLabelV2.js");require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var b=require("../../../pricing/priceLabelV6/PriceLabelV6.js");require("../../../shared/card/Card.js"),require("../../../bundle/minimalistic/styled.js"),require("../../../text/Text.js"),require("../../../bundle/motivator/styled.js"),require("../../../bundle/simple/Simple.js"),require("../../../offer-banner/OfferBanner.js"),require("../../../cartProductItem/CloseIcon/CloseButton.js"),require("../../../cartProductItem/Description/Description.js"),require("../../../cartProductItem/Promo/Promo.js"),require("../../../cartProductItem/Title/Title.js"),require("../../../cartProductItem/TrashIcon/styled.js"),require("../../../checkbox/Checkbox.js"),require("../../grid/WithProductGrid.js");var h=require("../../../pricing/priceLabelV4/PriceLabelV4.js"),y=require("../../../rating/Rating.js"),P=require("./constants.js"),f=require("./styled.js"),S=require("../../../pricing/styles.js"),C=require("../../../icon-button/IconButton.js");require("../../../tag/variants/product/styled.js"),require("../truekind/styled.js"),require("../../../color/ColorRadioGroup.js"),require("../../../color/selector/PatternSelector.js"),require("../../../color/styles/ColorPickerwithTootip.styled.js"),require("../../../cross-sell/Checkbox/CrossSellCheckbox.js"),require("../../../cta/styled.js"),require("../../../delivery-details/DeliveryDetails.js"),require("../../../delivery-details/Note/Note.js"),require("../../../drawer/style.js"),require("../../../dropdown-list-icons/Styled.js"),require("../../../dropdown/size-dropdown/Styled.js"),require("../../../dropdown/variants/dialog/DropdownDialog.js"),require("../../../dropdown/base/BaseDropdown.js"),require("@headlessui/react"),require("../../../input/base/Error.js"),require("../../../shared/select/BaseSelect.js"),require("../../../dropdown/variants/smart/styled.js"),require("../../../filtering/Accordion.js"),require("../../../filtering/FiltersStyled.js"),require("../../../filtering/Tags/Tags.js"),require("../../../fit-guarantee/FitGuarantee.js"),require("../../../fit/FitPredictor.js"),require("@ant-design/react-slick"),require("react-zoom-pan-pinch"),require("../../../modal/Modal.js"),require("../../../organisms/ModalZoom/zoomModal.styled.js"),require("../../../organisms/ModalZoom/ZoomModalV2.styled.js"),require("../../../molecules/Video/components/styled.js"),require("../../../molecules/Video/styled.js"),require("../../../slider/ArrowButton.js"),require("../../../slider/StyledSlider.js"),require("../../../gallery/components/ImageSmallPreview/styled.js"),require("../../../gallery/components/ImagePreviewList/styled.js"),require("../../../gallery/components/ImageProductSlide/styled.js"),require("../../../gallery/styled.js"),require("../../../icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),require("../../../iconsWithTitle/index.js"),require("../../../image-card/ImageCard.js"),require("../../../input/label/Label.js"),require("../../../input/base/Styled.js"),require("../../../input/custom/Custom.js"),require("../../../input/basePlusButton/BasePlusButton.js"),require("../../../input/basePlusIcon/BasePlusIcon.js"),require("../../../motivator-progress-bar/MotivatorProgressBar.js"),require("../../../order-bar/OrderBar.js"),require("../../../packs/selector/PackSelector.js"),require("../../../pagination/styles.js"),require("../../../payment-methods/PaymentMethod.js"),require("../../../product/order/item/SimpleOrderItem.js"),require("../../../progress-bar/ProgressBar.js"),require("../../../quantityPicker/styled.js"),require("../../../radio/RadioPrimary/radioPrimary.js"),require("../../../radio/clubRadioInput/clubRadio.js"),require("../../../rating/starList/StarList.js"),require("../../../review-detail/ReviewDetail.js"),require("../../../review/Review.js"),require("../../../reviews-header/ReviewsHeader.js"),require("../../../scroll-to-top/ScrollToTop.js"),require("../../../search-bar/components/ClearButton/styled.js"),require("../../../search-bar/components/Footer/styled.js"),require("../../../search-bar/components/ProductItem/styled.js"),require("../../../search-bar/components/ResultsPanel/styled.js"),require("../../../search-bar/components/SearchControl/styled.js"),require("../../../search-bar/styled.js"),require("../../../search-navigation/styled.js"),require("react-dom"),require("../../../short-banner/ShortBanner.js"),require("../../../size-chart/styled.js"),require("../../../size-table/SizeTable.js"),require("../../../size/guide/SizeFitGuide.js"),require("../../../size/selector/styled.js"),require("../../../tabs/Tab.js"),require("../../../tabs/Tabs.js"),require("../../../tag/Tag.js"),require("@emotion/react"),require("../../../textWithImage/index.js"),require("../../../timer/styled.js"),require("../../../toast/Toast.js"),require("../../../totals/total/styled.js"),require("../../../totals/subtotal/Subtotal.js"),require("../../../tracking-progress-v2/TrackingProgressV2.js"),require("../../../tracking-progress/TrackingProgress.js"),require("../../../organisms/AutoshipOfferCard/AutoshipOfferCardItem.styled.js"),require("../../../organisms/AutoshipOfferCardCta/AutoshipOfferCardItem.styled.js"),require("../../../organisms/AutoshipPdpCard/AutoshipPdpCard.styled.js"),require("../../../organisms/BasicAccordion/BasicAccordion.js"),require("../../../organisms/CartItemCard/CartItem.js"),require("../../../organisms/ClubOfferSelector/styled.js"),require("../../../organisms/ClubOfferSelector2/styled.js"),require("../../../organisms/JoinClubCard/joinClubCard.js"),require("../../../organisms/OfferAtCart/styled.js"),require("../../../organisms/OfferAtCartV2/styled.js"),require("../../../organisms/OfferAtCartV3/styled.js"),require("../../../organisms/OfferAtCartV4/styled.js"),require("../../../organisms/OfferAtPDP/styled.js"),require("../../../organisms/OfferAtPDP/types.js"),require("../../../organisms/ProductCard/ProductCardV1/ProductCard.js"),require("../../../organisms/ProductCard/ProductCardV2/styled.js"),require("../../../organisms/ProductCard/ProductCardV3/styled.js"),require("../../../organisms/ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),require("../../../organisms/SizeCharTable/SizeChartTableV2/styled.js"),require("../../../organisms/SizeCharTable/SizeChartTableV3/styled.js"),require("../../../molecules/ArrowTip/ArrowTip.styled.js"),require("../../../organisms/SizeCharTable/SizeChartTableV4/SizeChartTableV4.styled.js"),require("../../../organisms/SubscriptionPlanSelector/styled.js"),require("../../../organisms/TwoCtasAtCart/Greeting.styled.js"),require("../../../organisms/TwoCtasAtCart/Card.styled.js"),require("../../../timerV2/styled.js"),require("../../../molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("../../../molecules/OfferAtCartImage/OfferAtCartImage.styled.js"),require("../../../molecules/CouponCard/styled.js"),require("../../../molecules/BenefitsList/styled.js"),require("../../../molecules/HurryUp/styled.js"),require("../../../molecules/Spinner/styled.js"),require("../../../molecules/IconsWithTitleList/IconsWithTitleList.styled.js");var x=require("../../../molecules/LikeButton/LikeButton.js");require("../../../molecules/ScarcityTag/ScarcityTag.styled.js");module.exports=function(L){var w,z,T,A,I,k,B,V,D,_,O,M=L.title,F=L.image,R=L.imageHover,N=L.price,W=L.rating,H=L.hideRating,E=void 0!==H&&H,G=L.size,Y=L.alignName,Z=void 0===Y?"center":Y,K=L.url,J=L.className,Q=L.topTag,U=L.bottomTag,X=L.onClick,$=L.priceDisplayType,ee=void 0===$?"default":$,ie=L.priceAtBottom,re=L.ratingOnTop,oe=L.priceLoading,se=L.noFollow,te=void 0!==se&&se,le=L.colorPicker,ae=void 0===le?{display:!1,position:"top",component:void 0,componentContainerProps:{position:"absolute",top:"4px",right:"4px",padding:"0px",boxSizing:"border-box",zIndex:1}}:le,ne=L.isBNPL,de=void 0===ne?{displayBNPL:!1,installments:4,installmentPrice:"",iconFolder:"PDP",iconName:"Klarna",showLogo:!0,iconColor:"#292929",fontSize:"12px"}:ne,ce=L.hasStrength,ue=void 0===ce?{strength:-1,description:""}:ce,ge=L.clubPrice,je=void 0===ge?"":ge,pe=L.showClubPriceLabel,ve=void 0!==pe&&pe,me=L.isRatingLoading,qe=L.version,be=void 0===qe?1:qe,he=L.showDiscountPercentageTag,ye=void 0!==he&&he,Pe=L.discountTagLoading,fe=L.discountTag,Se=L.isOnViewport,Ce=void 0!==Se&&Se,xe=L.hasDefaultSize,Le=void 0!==xe&&xe,we=L.clubOffer,ze=L.likeBtn,Te=L.onClickBottomButton,Ae=L.showDecimals,Ie=void 0===Ae||Ae,ke=L.showDivider,Be=void 0!==ke&&ke,Ve=L.invertPriceDirection,De=void 0!==Ve&&Ve,_e=L.priceAndReviewInOneLine,Oe=void 0!==_e&&_e,Me=L.priceAndDiscountTagInOneLine,Fe=void 0!==Me&&Me,Re=L.tooltipText,Ne=L.tooltipIcon,We=L.tooltipPosition,He=L.finalPriceAriaLabel,Ee=L.originalPriceAriaLabel,Ge=L.discountAriaLabel,Ye=L.tooltipAriaLabel,Ze=L.quickViewAriaLabel,Ke=L.sellingFastAriaLabel,Je=L.quickViewAriaHidden,Qe=L.sellingFastAriaHidden,Ue=L.sellingFast,Xe=c.useTheme(),$e=f.getStylesBySize(G),ei=u.useWindowDimensions().isMobile,ii=r.useMemo((function(){var e;return(e={},e[j.ComponentSize.Large]=8,e[j.ComponentSize.Medium]=4,e[j.ComponentSize.Small]=2,e)[G]}),[G]),ri=ye?fe:void 0,oi=function(r){var o,t,l,a,n,d;if(void 0===r&&(r=be),"hidden"===ee)return null;switch(r){case 4:return"styled"===ee?i.jsx(h.PriceLabelV4,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v4",clubStyle:ve,clubPrice:je,styledPrice:!0,finalPriceAriaLabel:He,originalPriceAriaLabel:Ee,discountAriaLabel:Ge,finalPriceStyle:ve?ei?{fontSize:"12px",fontWeight:700,color:null===(t=Xe.colors.pallete.brickRed)||void 0===t?void 0:t.color}:{fontSize:"16px",fontWeight:700,color:null===(o=Xe.colors.pallete.brickRed)||void 0===o?void 0:o.color}:void 0},void 0):i.jsx(h.PriceLabelV4,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v4",clubStyle:ve,clubPrice:je,finalPriceAriaLabel:He,originalPriceAriaLabel:Ee,discountAriaLabel:Ge,finalPriceStyle:ve?ei?{fontSize:"12px",fontWeight:700,color:null===(a=Xe.colors.pallete.brickRed)||void 0===a?void 0:a.color}:{fontSize:"16px",fontWeight:700,color:null===(l=Xe.colors.pallete.brickRed)||void 0===l?void 0:l.color}:void 0},void 0);case 5:return i.jsx(f.ClubOfferPriceLabelWrapper,e.__assign({style:null==we?void 0:we.wrapperStyle},{children:i.jsx(s.ClubPriceMemberLabel,{isClub:!0,isPDP:!0,finalPrice:null===(n=null==we?void 0:we.price)||void 0===n?void 0:n.finalPrice,originalPrice:null===(d=null==we?void 0:we.price)||void 0===d?void 0:d.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v4",clubStyle:ve,icon:null==we?void 0:we.clubOfferIcon,isCollections:null==we?void 0:we.isCollections},void 0)}),void 0);case 6:return i.jsx(b.PriceLabelV6,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount-v6",showDecimals:Ie,tooltipText:Re,tooltipIcon:Ne,tooltipPosition:We,tooltipAriaLabel:Ye,isMobile:ei,savingsDisplay:ye,discount:ri,finalPriceAriaLabel:He,originalPriceAriaLabel:Ee,discountAriaLabel:Ge},void 0);default:return"styled"===ee?i.jsx(q.PriceLabelV2,{finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Large,testId:"volume-discount",showDecimals:Ie,finalPriceAriaLabel:He,originalPriceAriaLabel:Ee,discountAriaLabel:Ge,tooltipAriaLabel:Ye},void 0):i.jsx(m.PriceLabel,{invertDirection:De,finalPrice:N.finalPrice,originalPrice:N.originalPrice,finalPriceStyled:!1,color:N.color,size:j.ComponentSize.Medium,testId:"volume-discount",clubStyle:ve,finalPriceAriaLabel:He,originalPriceAriaLabel:Ee,discountAriaLabel:Ge,finalPriceStyle:ve?ei?{fontSize:"12px",fontWeight:700}:{fontSize:"16px",fontWeight:700}:void 0},void 0)}},si=function(){return E||!W.reviews&&!W.rating?i.jsx(i.Fragment,{},void 0):me?i.jsx(o,{height:"20px",width:"80px"},void 0):i.jsx(y.Rating,{size:G===j.ComponentSize.Large?j.ComponentSize.Small:j.ComponentSize.XSmall,rating:W.rating,reviews:null==W?void 0:W.reviews,reviewsText:"",wrapWithParenthesis:!0},void 0)},ti=r.useState(null!==(w=null==ze?void 0:ze.isLiked)&&void 0!==w&&w),li=ti[0],ai=ti[1],ni=r.useState(null!==(z=null==ze?void 0:ze.likes)&&void 0!==z?z:0),di=ni[0],ci=ni[1],ui=Fe?f.InlineContainer:r.Fragment;return i.jsxs(f.ProdCardContainer,e.__assign({className:J,"data-testid":"product-card-container-div"},{children:["corner"===ae.position&&i.jsx(f.CornerContainer,e.__assign({},ae.componentContainerProps,{children:ae.component}),void 0),i.jsxs(f.Container,e.__assign({as:K?"a":"div",href:K,rel:te?"nofollow":"",className:"picContainer",onClick:X},{children:[!!ze&&i.jsx(x.LikeButton,{isLiked:li,likes:di,onClick:function(e){e.stopPropagation(),ci(li?function(e){return e-1}:function(e){return e+1}),ai((function(e){return!e})),null==ze||ze.onClick(e)},colors:{background:{active:null!==(I=null===(A=null===(T=ze.colors)||void 0===T?void 0:T.background)||void 0===A?void 0:A.active)&&void 0!==I?I:Xe.colors.shades.white.color,hover:null!==(O=null!==(V=null===(B=null===(k=ze.colors)||void 0===k?void 0:k.background)||void 0===B?void 0:B.hover)&&void 0!==V?V:null===(_=null===(D=ze.colors)||void 0===D?void 0:D.background)||void 0===_?void 0:_.active)&&void 0!==O?O:Xe.colors.shades.white.color}}},void 0),Q||U?i.jsxs(f.ImageContainer,e.__assign({width:null==$e?void 0:$e.width,height:null==$e?void 0:$e.height,"data-testid":"tags-image-container"},{children:[i.jsx(t.Image,{src:F.src,srcSet:g.getSrcSet(F.src,180,360,720,960),alt:F.alt,width:Le?null==$e?void 0:$e.width:"100%",height:Le?null==$e?void 0:$e.height:"100%",loading:Ce?"eager":"lazy",decoding:Ce?"sync":"async",borderRadius:P.STYLES_BY_THEME[Xe.name].image.borderRadius},void 0),i.jsx(f.TopTagContainer,e.__assign({style:{width:ae.display?"100%":"inherit"}},{children:Q}),void 0),i.jsx(f.BottomTagContainer,e.__assign({style:{width:ae.display?"100%":"inherit"}},{children:U}),void 0)]}),void 0):i.jsx(t.Image,{src:F.src,srcSet:g.getSrcSet(F.src,180,360,720,960),alt:F.alt,width:null==$e?void 0:$e.width,height:null==$e?void 0:$e.height,loading:Ce?"eager":"lazy",decoding:Ce?"sync":"async",borderRadius:P.STYLES_BY_THEME[Xe.name].image.borderRadius},void 0),R?i.jsx(f.ImageHoverContainer,{className:"hover__image",src:R.src,srcSet:g.getSrcSet(R.src,180,360,720,960),loading:"lazy",decoding:"async",alt:R.alt,width:null==$e?void 0:$e.width,height:null==$e?void 0:$e.height},void 0):null]}),void 0),ae.display&&"top"===ae.position&&i.jsxs(i.Fragment,{children:[i.jsx(n.Spacing,{size:ii},void 0),ae.component]},void 0),re&&i.jsxs(i.Fragment,{children:[i.jsx(n.Spacing,{size:ii},void 0),i.jsx(n.Spacing,{size:ii},void 0),i.jsx(si,{},void 0)]},void 0),i.jsxs(f.Container,e.__assign({as:K?"a":"div",href:K,rel:te?"nofollow":"",onClick:X,className:"textContainer",style:{alignItems:ve?"flex-start":"center"}},{children:[i.jsx(n.Spacing,{size:ii},void 0),i.jsx(f.Title,e.__assign({theme:Xe,align:ve?"left":Z,"data-testid":"product-card-title"},{children:M}),void 0),i.jsx(n.Spacing,{size:ii},void 0),Be&&i.jsxs(i.Fragment,{children:[i.jsx(f.Divider,{theme:Xe},void 0),i.jsx(n.Spacing,{size:ii},void 0)]},void 0),ue&&-1!==ue.strength&&i.jsxs(i.Fragment,{children:[i.jsx(d.StrengthBars,{barsFilled:ue.strength,supportText:ue.description},void 0),i.jsx(n.Spacing,{size:10},void 0)]},void 0),ie&&!re?i.jsxs(i.Fragment,{children:[i.jsx(si,{},void 0),i.jsx(n.Spacing,{size:ii},void 0),i.jsxs(f.MarginTopContainer,e.__assign({style:{marginTop:(null==we?void 0:we.isClubOffer)?0:8}},{children:[oe?i.jsx(o,{height:"20px",width:"140px"},void 0):oi(),(null==we?void 0:we.isClubOffer)&&oi(5)]}),void 0)]},void 0):i.jsxs(i.Fragment,{children:[i.jsxs(ui,{children:[oe?i.jsx(o,{height:"20px",width:"140px"},void 0):Oe&&!re?i.jsxs(f.OneLineInfoWrapper,{children:[oi(),i.jsx(si,{},void 0)]},void 0):i.jsxs(i.Fragment,{children:[!(null==we?void 0:we.isClubMember)&&oi(),(null==we?void 0:we.isClubOffer)&&oi(5),i.jsx(l.BuyNowPayLater,{displayBNPL:null==de?void 0:de.displayBNPL,installments:(null==de?void 0:de.installments)||0,installmentPrice:(null==de?void 0:de.installmentPrice)||"",iconFolder:null==de?void 0:de.iconFolder,iconName:(null==de?void 0:de.iconName)||"",showLogo:null==de?void 0:de.showLogo,iconColor:null==de?void 0:de.iconColor,fontSize:null==de?void 0:de.fontSize},void 0)]},void 0),ve&&i.jsx(a.ClubPriceLabel,{clubPrice:je},void 0),6!==be&&(Pe?i.jsx(o,{height:"22px",width:"75px"},void 0):ye&&i.jsx(S.TagContainer,e.__assign({size:j.ComponentSize.Small},{children:fe&&i.jsx(v.DiscountTag,e.__assign({},fe,{size:j.ComponentSize.Medium,style:{letterSpacing:"-0.05rem"}}),void 0)}),void 0)),Ue&&i.jsx(t.Image,{src:"https://cdn.shopify.com/s/files/1/2679/8624/files/selling-fast-copy.png?v=1712665121",alt:Ke||Qe?null!=Ke?Ke:"":"selling-fast-copy","aria-hidden":!(!Qe||Ke)||void 0,width:"77px",height:"22px"},void 0)]},void 0),i.jsx(n.Spacing,{size:ii},void 0),!re&&!Oe&&i.jsx(si,{},void 0)]},void 0),!!Te&&i.jsxs(i.Fragment,{children:[i.jsx(n.Spacing,{size:ii},void 0),i.jsx(n.Spacing,{size:ii},void 0),i.jsxs(C.IconButton,e.__assign({size:j.ComponentSize.Small,width:"100%",onClick:function(e){e.preventDefault(),e.stopPropagation(),null==Te||Te(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),null==Te||Te(e))},backgroundColor:{active:"transparent",hover:"transparent"},hasText:!0,rounded:!1,border:"1px solid #D1D1D1",role:"button",tabIndex:Je&&!Ze?-1:0,"aria-label":Ze,"aria-hidden":!(!Je||Ze)||void 0},{children:[i.jsx(p.Icon.Custom.Eye,{fill:"black",width:"16px",height:"16px"},void 0),i.jsx("span",e.__assign({style:{color:"black",fontSize:"14px"}},{children:"Quick View"}),void 0)]}),void 0)]},void 0)]}),void 0),ae.display&&"bottom"===ae.position&&i.jsxs(i.Fragment,{children:[i.jsx(n.Spacing,{size:ii},void 0),ae.component]},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ProductItemMobile.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),o=require("@emotion/react/jsx-runtime"),n=require("@emotion/styled"),r=require("react"),t=require("../../../core/theme/Theme.js"),i=require("../../shared/select/BaseSelect.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d,l=s(n),a=s(r),c=l.default.button((function(e){var o=e.theme,n=e.wide,r=e.isSortOrFilter;return{border:"0.063rem solid ".concat(r?o.colors.shades[100].color:o.colors.shades[200].color),boxSizing:"border-box",borderRadius:o.component.dropdown.borderRadius,display:"flex",flexDirection:"row",alignItems:"center",background:r?o.colors.shades[10].color:o.colors.shades.white.color,cursor:"pointer",fontWeight:600,fontSize:o.component.dropdown.fontSize,padding:o.component.dropdown.padding,fontFamily:o.fonts.config[0].family,color:o.component.dropdown.color,fill:o.component.dropdown.fill,width:n?"100%":"auto",height:n?"100%":"auto",justifyContent:n?"space-between":"center",svg:{marginLeft:"0.75rem"},"&:disabled":{borderColor:o.colors.shades[200].color,color:o.colors.shades[250].color,cursor:"not-allowed",backgroundColor:o.colors.shades.white.color,"*":{color:o.colors.shades[250].color,fill:o.colors.shades[250].color,cursor:"not-allowed"}}}})),h=l.default.span(d||(d=e.__makeTemplateObject(["\n [data-testid='CloseIcon'] {\n display: none;\n }\n ","\n"],["\n [data-testid='CloseIcon'] {\n display: none;\n }\n ","\n"])),(function(e){return e.open&&'\n [data-testid="CloseIcon"] {\n display: block;\n }\n [data-testid="OpenIcon"] {\n display: none;\n }\n'})),u=a.default.memo((function(n){var s=n.OpenIcon,d=n.CloseIcon,l=n.label,a=n.wide,u=n.children,f=n.isSortOrFilter,p=n.testId,m=t.useTheme();return o.jsx(i.Button,e.__assign({as:r.Fragment},{children:function(n){var r=n.open;return o.jsxs(c,e.__assign({theme:m,wide:a,"data-testid":p,isSortOrFilter:f},{children:[l?o.jsxs("div",e.__assign({css:{display:"flex",flexDirection:"column",alignItems:"flex-start",whiteSpace:"nowrap",overflowX:"hidden"}},{children:[o.jsx("div",e.__assign({css:{fontSize:"0.75rem",fontWeight:400,margin:"0.125rem 0"}},{children:l}),void 0),u]}),void 0):o.jsx(o.Fragment,{children:u},void 0),o.jsxs(h,e.__assign({open:r},{children:[o.jsx(d,{testId:"CloseIcon",height:.875,width:.875,fill:"inherit"},void 0),o.jsx(s,{testId:"OpenIcon",height:.875,width:.875,fill:"inherit"},void 0)]}),void 0)]}),void 0)}}),void 0)}));module.exports=u;
1
+ "use strict";var e=require("tslib"),o=require("@emotion/react/jsx-runtime"),n=require("@emotion/styled"),r=require("react"),t=require("../../../core/theme/Theme.js"),i=require("../../shared/select/BaseSelect.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,d=s(n),c=s(r),a=d.default.button((function(e){var o=e.theme,n=e.wide,r=e.isSortOrFilter;return{border:"0.063rem solid ".concat(r?o.colors.shades[100].color:o.colors.shades[200].color),boxSizing:"border-box",borderRadius:o.component.dropdown.borderRadius,display:"flex",flexDirection:"row",alignItems:"center",background:r?o.colors.shades[10].color:o.colors.shades.white.color,cursor:"pointer",fontWeight:600,fontSize:o.component.dropdown.fontSize,padding:o.component.dropdown.padding,fontFamily:o.fonts.config[0].family,color:o.component.dropdown.color,fill:o.component.dropdown.fill,width:n?"100%":"auto",height:n?"100%":"auto",justifyContent:n?"space-between":"center",svg:{marginLeft:"0.75rem"},"&:disabled":{borderColor:o.colors.shades[200].color,color:o.colors.shades[250].color,cursor:"not-allowed",backgroundColor:o.colors.shades.white.color,"*":{color:o.colors.shades[250].color,fill:o.colors.shades[250].color,cursor:"not-allowed"}},"&:focus-visible":{outline:"0.125rem solid ".concat(o.colors.pallete.secondary.color),outlineOffset:"0.125rem"}}})),u=d.default.span(l||(l=e.__makeTemplateObject(["\n [data-testid='CloseIcon'] {\n display: none;\n }\n ","\n"],["\n [data-testid='CloseIcon'] {\n display: none;\n }\n ","\n"])),(function(e){return e.open&&'\n [data-testid="CloseIcon"] {\n display: block;\n }\n [data-testid="OpenIcon"] {\n display: none;\n }\n'})),h=c.default.memo((function(n){var s=n.OpenIcon,l=n.CloseIcon,d=n.label,c=n.wide,h=n.children,f=n.isSortOrFilter,m=n.testId,p=t.useTheme();return o.jsx(i.Button,e.__assign({as:r.Fragment},{children:function(n){var r=n.open;return o.jsxs(a,e.__assign({theme:p,wide:c,"data-testid":m,isSortOrFilter:f},{children:[d?o.jsxs("div",e.__assign({css:{display:"flex",flexDirection:"column",alignItems:"flex-start",whiteSpace:"nowrap",overflowX:"hidden"}},{children:[o.jsx("div",e.__assign({css:{fontSize:"0.75rem",fontWeight:400,margin:"0.125rem 0"}},{children:d}),void 0),h]}),void 0):o.jsx(o.Fragment,{children:h},void 0),o.jsxs(u,e.__assign({open:r},{children:[o.jsx(l,{testId:"CloseIcon",height:.875,width:.875,fill:"inherit"},void 0),o.jsx(s,{testId:"OpenIcon",height:.875,width:.875,fill:"inherit"},void 0)]}),void 0)]}),void 0)}}),void 0)}));module.exports=h;
2
2
  //# sourceMappingURL=BaseDropdownButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),r=require("react/jsx-runtime"),o=require("@emotion/styled"),t=require("react"),i=require("../../../core/theme/Theme.js"),n=require("../../../types/enums.js"),s=require("../../checkbox/Checkbox.js"),a=require("../../shared/select/BaseSelect.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(o).default.li((function(e){var r=e.theme,o=e.selected,t=e.active;return{listStyleType:"none",display:"flex",flexDirection:"row",alignItems:e.hasImage?"center":"flex-start",margin:0,cursor:"pointer",padding:r.component.dropdown.optionPadding,justifyContent:"flex-start",borderRadius:r.component.dropdown.options.borderRadiusV2||"inherit",width:"100%",boxSizing:"border-box",fontWeight:o?600:"inherit",backgroundColor:t?r.component.dropdown.options.backgroundColor||r.colors.shades[10].color:"inherit"}}));module.exports=function(o){var d=o.value,l=o.disabled,u=o.children,h=o.hasCheckbox,m=void 0!==h&&h,p=o.isSelected,g=o.hasImage,v=void 0!==g&&g,x=i.useTheme();return r.jsx(a.Option,e.__assign({value:d,disabled:l,as:t.Fragment},{children:function(o){var t=o.selected,i=o.active;return r.jsxs(c,e.__assign({theme:x,selected:p||t,active:i,hasImage:v},{children:[m&&r.jsx(s.Checkbox,{checked:p||t,text:"",id:d.key,onChange:console.log,size:n.ComponentSize.Small,variant:"primary"},void 0),u]}),void 0)}}),void 0)};
1
+ "use strict";var e=require("tslib"),o=require("react/jsx-runtime"),r=require("@emotion/styled"),t=require("react"),i=require("../../../core/theme/Theme.js"),n=require("../../../types/enums.js"),s=require("../../checkbox/Checkbox.js"),a=require("../../shared/select/BaseSelect.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(r).default.li((function(e){var o=e.theme,r=e.selected,t=e.active;return{listStyleType:"none",display:"flex",flexDirection:"row",alignItems:e.hasImage?"center":"flex-start",margin:0,cursor:"pointer",padding:o.component.dropdown.optionPadding,justifyContent:"flex-start",borderRadius:o.component.dropdown.options.borderRadiusV2||"inherit",width:"100%",boxSizing:"border-box",fontWeight:r?600:"inherit",backgroundColor:t?o.component.dropdown.options.backgroundColor||o.colors.shades[10].color:"inherit","&:focus-visible":{outline:"0.125rem solid ".concat(o.colors.pallete.secondary.color),outlineOffset:"-0.125rem"}}}));module.exports=function(r){var d=r.value,l=r.disabled,u=r.children,h=r.hasCheckbox,m=void 0!==h&&h,p=r.isSelected,f=r.hasImage,v=void 0!==f&&f,b=i.useTheme();return o.jsx(a.Option,e.__assign({value:d,disabled:l,as:t.Fragment},{children:function(r){var t=r.selected,i=r.active;return o.jsxs(c,e.__assign({theme:b,selected:p||t,active:i,hasImage:v},{children:[m&&o.jsx(s.Checkbox,{checked:p||t,text:"",id:d.key,onChange:console.log,size:n.ComponentSize.Small,variant:"primary"},void 0),u]}),void 0)}}),void 0)};
2
2
  //# sourceMappingURL=BaseDropdownOption.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),o=require("react/jsx-runtime"),e=require("@emotion/styled"),r=require("../../core/theme/Theme.js"),i=require("../../types/enums.js");function t(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var d,a=function(n){switch(n){case i.ComponentSize.Large:return{widthHeight:"4.25rem",margin:"0.938rem"};case i.ComponentSize.Medium:return{widthHeight:"2.5rem",margin:"0.625rem"};case i.ComponentSize.Small:return{widthHeight:"1.5rem",margin:"0.375rem"}}},u=t(e).default.div(d||(d=n.__makeTemplateObject(["\n background-color: ",";\n width: ",";\n height: ",";\n border: ",";\n border-radius: ",";\n display: ",";\n justify-content: center;\n align-items: center;\n transition: background-color 0.1s ease;\n box-shadow: ",";\n padding: ",";\n gap: ",";\n\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n\n &.disabled {\n background-color: ",";\n cursor: not-allowed;\n\n svg path {\n fill: ",";\n }\n }\n"],["\n background-color: ",";\n width: ",";\n height: ",";\n border: ",";\n border-radius: ",";\n display: ",";\n justify-content: center;\n align-items: center;\n transition: background-color 0.1s ease;\n box-shadow: ",";\n padding: ",";\n gap: ",";\n\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n\n &.disabled {\n background-color: ",";\n cursor: not-allowed;\n\n svg path {\n fill: ",";\n }\n }\n"])),(function(n){return n.backgroundColor}),(function(n){var o,e=n.width,r=n.size;return n.hasText?null!=e?e:"auto":null===(o=a(r))||void 0===o?void 0:o.widthHeight}),(function(n){var o,e=n.size;return null===(o=a(e))||void 0===o?void 0:o.widthHeight}),(function(n){return n.border}),(function(n){var o=n.hasText,e=n.rounded;return o?e?"24px":"0.5rem":e?"50%":"0.5rem"}),(function(n){return n.inline?"inline-flex":"flex"}),(function(n){var o=n.boxShadow;return null!=o?o:"none"}),(function(n){var o,e=n.size;return null===(o=a(e))||void 0===o?void 0:o.margin}),(function(n){return n.hasText?"4px":"0"}),(function(n){return n.hoverBackgroundColor}),(function(n){return n.disabledColor}),(function(n){return n.disabledIconColor}));exports.IconButton=function(e){var t,d,a=e.children,l=e.disabled,c=e.size,s=void 0===c?i.ComponentSize.Medium:c,h=e.onClick,b=e.backgroundColor,g=e.dataTestId,v=void 0===g?"Container":g,m=e.hasText,f=void 0!==m&&m,p=e.boxShadow,k=e.rounded,w=void 0===k||k,x=e.width,C=e.border,y=e.inline,j=void 0!==y&&y,z=r.useTheme();return o.jsx(u,n.__assign({border:C,width:x,className:l?"disabled":"",backgroundColor:null!==(t=null==b?void 0:b.active)&&void 0!==t?t:z.component.button.primary.active.backgroundColor,hoverBackgroundColor:null!==(d=null==b?void 0:b.hover)&&void 0!==d?d:z.component.button.secondary.active.backgroundColor,disabledColor:z.colors.shades[50].color,disabledIconColor:z.colors.shades[200].color,size:s,"data-testid":v,onClick:l?function(){}:h,hasText:f,boxShadow:p,rounded:w,inline:j},{children:a}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),o=require("@emotion/styled"),r=require("../../core/theme/Theme.js"),i=require("../../types/enums.js");function t(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var d,a=function(n){switch(n){case i.ComponentSize.Large:return{widthHeight:"4.25rem",margin:"0.938rem"};case i.ComponentSize.Medium:return{widthHeight:"2.5rem",margin:"0.625rem"};case i.ComponentSize.Small:return{widthHeight:"1.5rem",margin:"0.375rem"}}},l=t(o).default.div(d||(d=n.__makeTemplateObject(["\n background-color: ",";\n width: ",";\n height: ",";\n border: ",";\n border-radius: ",";\n display: ",";\n justify-content: center;\n align-items: center;\n transition: background-color 0.1s ease;\n box-shadow: ",";\n padding: ",";\n gap: ",";\n\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n\n &.disabled {\n background-color: ",";\n cursor: not-allowed;\n\n svg path {\n fill: ",";\n }\n }\n"],["\n background-color: ",";\n width: ",";\n height: ",";\n border: ",";\n border-radius: ",";\n display: ",";\n justify-content: center;\n align-items: center;\n transition: background-color 0.1s ease;\n box-shadow: ",";\n padding: ",";\n gap: ",";\n\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n\n &.disabled {\n background-color: ",";\n cursor: not-allowed;\n\n svg path {\n fill: ",";\n }\n }\n"])),(function(n){return n.backgroundColor}),(function(n){var e,o=n.width,r=n.size;return n.hasText?null!=o?o:"auto":null===(e=a(r))||void 0===e?void 0:e.widthHeight}),(function(n){var e,o=n.size;return null===(e=a(o))||void 0===e?void 0:e.widthHeight}),(function(n){return n.border}),(function(n){var e=n.hasText,o=n.rounded;return e?o?"24px":"0.5rem":o?"50%":"0.5rem"}),(function(n){return n.inline?"inline-flex":"flex"}),(function(n){var e=n.boxShadow;return null!=e?e:"none"}),(function(n){var e,o=n.size;return null===(e=a(o))||void 0===e?void 0:e.margin}),(function(n){return n.hasText?"4px":"0"}),(function(n){return n.hoverBackgroundColor}),(function(n){return n.disabledColor}),(function(n){return n.disabledIconColor}));exports.IconButton=function(o){var t,d,a=o.children,u=o.disabled,c=o.size,s=void 0===c?i.ComponentSize.Medium:c,h=o.onClick,b=o.onKeyDown,v=o.backgroundColor,g=o.dataTestId,m=void 0===g?"Container":g,f=o.hasText,p=void 0!==f&&f,w=o.boxShadow,x=o.rounded,k=void 0===x||x,C=o.width,y=o.border,j=o.inline,z=void 0!==j&&j,T=o.role,S=o.tabIndex,I=o["aria-label"],_=o["aria-hidden"],q=r.useTheme();return e.jsx(l,n.__assign({border:y,width:C,className:u?"disabled":"",backgroundColor:null!==(t=null==v?void 0:v.active)&&void 0!==t?t:q.component.button.primary.active.backgroundColor,hoverBackgroundColor:null!==(d=null==v?void 0:v.hover)&&void 0!==d?d:q.component.button.secondary.active.backgroundColor,disabledColor:q.colors.shades[50].color,disabledIconColor:q.colors.shades[200].color,size:s,"data-testid":m,onClick:u?function(){}:h,onKeyDown:u?void 0:b,hasText:p,boxShadow:w,rounded:k,inline:z,role:T,tabIndex:S,"aria-label":I,"aria-hidden":_},{children:a}),void 0)};
2
2
  //# sourceMappingURL=IconButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("@emotion/styled"),r=require("react"),s=require("../../../SkeletonBox/SkeletonBox.js"),n=require("../../../../core/theme/Theme.js"),a=require("../../../../types/enums.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js"),require("../../../pricing/styles.js"),require("../../../tooltip/Styled.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var o=require("../../../atoms/Image/Image.js");require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../../atoms/Toggle/toggle.styled.js");var l=require("../../../shared/spacing/Spacing.js");require("../../../../utils/constants/offerAtCart.js");var d=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var c=require("./PriceLabelDisplay.js"),u=require("./RatingDisplay.js"),g=require("./styled.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m,p=h(t).default.div(m||(m=e.__makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n width: ",";\n z-index: 1;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n width: ",";\n z-index: 1;\n"])),(function(e){return e.style.width}));exports.ProductCard=function(t){var h=t.title,m=t.image,j=t.imageHover,v=t.price,x=t.rating,S=t.ratingPos,q=t.size,C=t.alignName,b=void 0===C?"center":C,f=t.url,w=t.className,y=t.topTag,_=t.bottomTag,z=t.onClick,L=t.priceLoading,P=t.noFollow,T=void 0!==P&&P,I=t.isRatingLoading,k=t.discountTag,D=n.useTheme(),M=function(e){switch(e){case a.ComponentSize.Small:return{width:"167px",height:"223px"};case a.ComponentSize.Large:return{width:"262px",height:"350px"};case a.ComponentSize.Medium:default:return{width:"205px",height:"274px"}}}(q),N=r.useMemo((function(){var e;return(e={},e[a.ComponentSize.Large]=8,e[a.ComponentSize.Medium]=4,e[a.ComponentSize.Small]=2,e)[q]}),[q]);return i.jsxs(g.ProdCardContainer,e.__assign({className:w,"data-testid":"product-card-container-div"},{children:[i.jsxs(g.Container,e.__assign({as:f?"a":"div",href:f,rel:T?"nofollow":"",className:"picContainer",onClick:z},{children:[y||_?i.jsxs(g.ImageContainer,e.__assign({width:null==M?void 0:M.width,height:null==M?void 0:M.height,"data-testid":"tags-image-container"},{children:[i.jsx(o.Image,{src:m.src,srcSet:d.getSrcSet(m.src,180,360,720,960),alt:m.alt,width:"100%",height:"100%"},void 0),i.jsx(p,e.__assign({style:{width:"inherit"}},{children:y}),void 0),i.jsx(g.BottomTagContainer,e.__assign({style:{width:"inherit"}},{children:_}),void 0)]}),void 0):i.jsx(o.Image,{src:m.src,srcSet:d.getSrcSet(m.src,180,360,720,960),alt:m.alt,width:null==M?void 0:M.width,height:null==M?void 0:M.height},void 0),j?i.jsx(g.ImageHoverContainer,{className:"hover__image",src:j.src,srcSet:d.getSrcSet(j.src,180,360,720,960),loading:"lazy",alt:j.alt,width:null==M?void 0:M.width,height:null==M?void 0:M.height},void 0):null]}),void 0),i.jsxs(g.Container,e.__assign({as:f?"a":"div",href:f,rel:T?"nofollow":"",onClick:z,className:"textContainer",style:{alignItems:"".concat(q===a.ComponentSize.Small?"start":"center")}},{children:[i.jsx(l.Spacing,{size:N},void 0),"bottom"!==S&&i.jsx(u.RatingDisplay,{rating:x,size:q,isRatingLoading:I},void 0),i.jsx(l.Spacing,{size:N},void 0),i.jsx(g.Title,e.__assign({theme:D,align:b},{children:h}),void 0),i.jsx(l.Spacing,{size:N},void 0),L?i.jsx(s,{height:"20px",width:"140px"},void 0):i.jsx(c.PriceLabelDisplay,{price:v,discountTag:k},void 0),i.jsx(l.Spacing,{size:N},void 0),"bottom"===S&&i.jsx(u.RatingDisplay,{rating:x,size:q,isRatingLoading:I},void 0)]}),void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("@emotion/styled"),r=require("react"),a=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../../core/theme/Theme.js"),n=require("../../../../types/enums.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js"),require("../../../pricing/styles.js"),require("../../../tooltip/Styled.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var o=require("../../../atoms/Image/Image.js");require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../../atoms/Toggle/toggle.styled.js");var l=require("../../../shared/spacing/Spacing.js");require("../../../../utils/constants/offerAtCart.js");var d=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var c=require("../utils.js"),g=require("./PriceLabelDisplay.js"),u=require("./RatingDisplay.js"),m=require("./styled.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v,p=h(t).default.div(v||(v=e.__makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n width: ",";\n z-index: 1;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n width: ",";\n z-index: 1;\n"])),(function(e){return e.style.width}));exports.ProductCard=function(t){var h=t.title,v=t.image,j=t.imageHover,x=t.price,S=t.rating,q=t.ratingPos,C=t.size,b=t.alignName,f=void 0===b?"center":b,w=t.url,y=t.className,_=t.topTag,z=t.bottomTag,L=t.onClick,P=t.priceLoading,T=t.noFollow,I=void 0!==T&&T,A=t.isRatingLoading,H=t.discountTag,k=s.useTheme(),D=function(e){switch(e){case n.ComponentSize.Small:return{width:"167px",height:"223px"};case n.ComponentSize.Large:return{width:"262px",height:"350px"};case n.ComponentSize.Medium:default:return{width:"205px",height:"274px"}}}(C),M=c.getProductCardImageAlts({imageAlt:v.alt,imageHoverAlt:null==j?void 0:j.alt,title:h}),N=M.imageAlt,R=M.imageHoverAlt,O=M.imageAriaHidden,B=M.imageHoverAriaHidden,F=r.useMemo((function(){var e;return(e={},e[n.ComponentSize.Large]=8,e[n.ComponentSize.Medium]=4,e[n.ComponentSize.Small]=2,e)[C]}),[C]);return i.jsxs(m.ProdCardContainer,e.__assign({className:y,"data-testid":"product-card-container-div"},{children:[i.jsxs(m.Container,e.__assign({as:w?"a":"div",href:w,rel:I?"nofollow":"",className:"picContainer",onClick:L},{children:[_||z?i.jsxs(m.ImageContainer,e.__assign({width:null==D?void 0:D.width,height:null==D?void 0:D.height,"data-testid":"tags-image-container"},{children:[i.jsx(o.Image,{src:v.src,srcSet:d.getSrcSet(v.src,180,360,720,960),alt:N,"aria-hidden":O,width:"100%",height:"100%"},void 0),i.jsx(p,e.__assign({style:{width:"inherit"}},{children:_}),void 0),i.jsx(m.BottomTagContainer,e.__assign({style:{width:"inherit"}},{children:z}),void 0)]}),void 0):i.jsx(o.Image,{src:v.src,srcSet:d.getSrcSet(v.src,180,360,720,960),alt:N,"aria-hidden":O,width:null==D?void 0:D.width,height:null==D?void 0:D.height},void 0),j?i.jsx(m.ImageHoverContainer,{className:"hover__image",src:j.src,srcSet:d.getSrcSet(j.src,180,360,720,960),loading:"lazy",alt:R,"aria-hidden":B,width:null==D?void 0:D.width,height:null==D?void 0:D.height},void 0):null]}),void 0),i.jsxs(m.Container,e.__assign({as:w?"a":"div",href:w,rel:I?"nofollow":"",onClick:L,className:"textContainer",style:{alignItems:"".concat(C===n.ComponentSize.Small?"start":"center")}},{children:[i.jsx(l.Spacing,{size:F},void 0),"bottom"!==q&&i.jsx(u.RatingDisplay,{rating:S,size:C,isRatingLoading:A},void 0),i.jsx(l.Spacing,{size:F},void 0),i.jsx(m.Title,e.__assign({theme:k,align:f},{children:h}),void 0),i.jsx(l.Spacing,{size:F},void 0),P?i.jsx(a,{height:"20px",width:"140px"},void 0):i.jsx(g.PriceLabelDisplay,{price:x,discountTag:H},void 0),i.jsx(l.Spacing,{size:F},void 0),"bottom"===q&&i.jsx(u.RatingDisplay,{rating:S,size:C,isRatingLoading:A},void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ProductCard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),r=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../shared/spacing/Spacing.js"),n=require("../../../../core/theme/Theme.js");require("../../../../utils/constants/offerAtCart.js");var a=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var o=require("../../../../types/enums.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js"),require("../../../pricing/styles.js"),require("../../../tooltip/Styled.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var l=require("../../../atoms/Image/Image.js"),c=require("../../../atoms/PriceLabelV2/PriceLabelV2.js");require("../../../atoms/Toggle/toggle.styled.js");var d=require("../../../rating/Rating.js"),g=require("../../../text/Text.js"),u=require("./styled.js");exports.ProductCardV2=function(h){var p=h.title,v=h.image,x=h.imageHover,m=h.price,j=h.rating,S=h.size,f=h.alignName,C=void 0===f?"center":f,w=h.url,y=h.className,q=h.topTag,_=h.bottomTag,b=h.onClick,z=h.onClickEye,P=h.priceLoading,L=h.noFollow,T=void 0!==L&&L,k=h.isRatingLoading,I=h.colorsCopy,M=h.discountTag,N=h.sellingFast,D=n.useTheme(),F=function(e){switch(e){case o.ComponentSize.Medium:return{width:"205px",height:"371px"};case o.ComponentSize.Small:return{width:"183px",height:"223px"};case o.ComponentSize.Large:return{width:"262px",height:"350px"};default:return{width:"205px",height:"274px"}}}(S),H=t.useMemo((function(){var e;return(e={},e[o.ComponentSize.Large]=8,e[o.ComponentSize.Medium]=4,e[o.ComponentSize.Small]=2,e)[S]}),[S]);return i.jsxs(u.ProdCardContainer,e.__assign({className:y,"data-testid":"product-card-container-div"},{children:[i.jsxs(u.Container,e.__assign({as:w?"a":"div",href:w,rel:T?"nofollow":"",className:"picContainer",onClick:b},{children:[q||_?i.jsxs(u.ImageContainer,e.__assign({width:null==F?void 0:F.width,height:null==F?void 0:F.height,"data-testid":"tags-image-container"},{children:[i.jsx(l.Image,{src:v.src,srcSet:a.getSrcSet(v.src,180,360,720,960),alt:v.alt,width:"100%",height:"100%"},void 0),i.jsx(u.TopTagContainer,e.__assign({style:{width:"inherit"}},{children:q}),void 0),i.jsx(u.BottomTagContainer,e.__assign({"data-testid":"bottom-tag-container",style:{width:"inherit"}},{children:_}),void 0)]}),void 0):i.jsx(l.Image,{src:v.src,srcSet:a.getSrcSet(v.src,180,360,720,960),alt:v.alt,width:null==F?void 0:F.width,height:null==F?void 0:F.height},void 0),x?i.jsx(u.ImageHoverContainer,{className:"hover__image",src:x.src,srcSet:a.getSrcSet(x.src,180,360,720,960),loading:"lazy",alt:x.alt,width:null==F?void 0:F.width,height:null==F?void 0:F.height},void 0):null]}),void 0),i.jsxs(u.Container,e.__assign({as:w?"a":"div",href:w,rel:T?"nofollow":"",onClick:b,className:"textContainer"},{children:[i.jsx(s.Spacing,{size:H},void 0),i.jsx(s.Spacing,{size:H},void 0),i.jsx(s.Spacing,{size:H},void 0),i.jsx(g.Text,e.__assign({variant:"link",underline:!0},{children:I}),void 0),i.jsx(s.Spacing,{size:H},void 0),i.jsx(s.Spacing,{size:H},void 0),i.jsx((function(){return k?i.jsx(r,{height:"20px",width:"80px"},void 0):j.reviews?i.jsx(d.Rating,{size:S===o.ComponentSize.Large?o.ComponentSize.Small:o.ComponentSize.XSmall,rating:j.rating,reviews:j.reviews,reviewsText:"",wrapWithParenthesis:!0},void 0):i.jsx(i.Fragment,{},void 0)}),{},void 0),i.jsx(s.Spacing,{size:H},void 0),i.jsx(u.Title,e.__assign({theme:D,align:C},{children:p}),void 0),i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:"5px",margin:"3px 0 5px -5px"}},{children:[M&&i.jsx(u.DiscountLabel,e.__assign({style:{marginLeft:"5px"}},{children:M}),void 0),N&&i.jsx(l.Image,{src:"https://cdn.shopify.com/s/files/1/2679/8624/files/selling-fast-copy.png?v=1712665121",alt:"selling-fast-copy",width:"77px",height:"22px"},void 0)]}),void 0),P?i.jsx(r,{height:"20px",width:"140px"},void 0):i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",marginLeft:"-5px"}},{children:[i.jsx(c.PriceLabelV2,{finalPrice:m.finalPrice,originalPrice:m.originalPrice,finalPriceStyled:!1,color:m.color,size:o.ComponentSize.Small,testId:"volume-discount",clubStyle:!1},void 0),i.jsx("button",e.__assign({"data-testid":"quick-eye-button",style:{marginLeft:"30px",backgroundColor:"transparent",border:"none",cursor:"pointer"},onClick:function(e){e.stopPropagation(),e.preventDefault(),z&&z()}},{children:i.jsx(l.Image,{alt:"quick-view-eye",src:"https://cdn.shopify.com/s/files/1/0242/7086/4465/files/quick-view-eye.png?v=1712256686",width:"28px",height:"28px",borderRadius:"1px"},void 0)}),void 0)]}),void 0)]}),void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),r=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../shared/spacing/Spacing.js"),a=require("../../../../core/theme/Theme.js");require("../../../../utils/constants/offerAtCart.js");var n=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var o=require("../../../../types/enums.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js"),require("../../../pricing/styles.js"),require("../../../tooltip/Styled.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var l=require("../../../atoms/Image/Image.js"),d=require("../../../atoms/PriceLabelV2/PriceLabelV2.js");require("../../../atoms/Toggle/toggle.styled.js");var c=require("../../../rating/Rating.js"),g=require("../../../text/Text.js"),u=require("../utils.js"),h=require("./styled.js");exports.ProductCardV2=function(p){var v,m=p.title,x=p.image,j=p.imageHover,S=p.price,f=p.rating,C=p.size,w=p.alignName,q=void 0===w?"center":w,b=p.url,y=p.className,_=p.topTag,z=p.bottomTag,L=p.onClick,P=p.onClickEye,k=p.priceLoading,I=p.noFollow,T=void 0!==I&&I,A=p.isRatingLoading,H=p.colorsCopy,F=p.discountTag,M=p.sellingFast,N=p.quickViewAriaLabel,V=p.sellingFastAriaLabel,D=p.quickViewAriaHidden,R=p.sellingFastAriaHidden,B=a.useTheme(),O=function(e){switch(e){case o.ComponentSize.Medium:return{width:"205px",height:"371px"};case o.ComponentSize.Small:return{width:"183px",height:"223px"};case o.ComponentSize.Large:return{width:"262px",height:"350px"};default:return{width:"205px",height:"274px"}}}(C),E=u.getProductCardImageAlts({imageAlt:x.alt,imageHoverAlt:null==j?void 0:j.alt,title:m}),W=E.imageAlt,X=E.imageHoverAlt,G=E.imageAriaHidden,J=E.imageHoverAriaHidden,K=t.useMemo((function(){var e;return(e={},e[o.ComponentSize.Large]=8,e[o.ComponentSize.Medium]=4,e[o.ComponentSize.Small]=2,e)[C]}),[C]);return i.jsxs(h.ProdCardContainer,e.__assign({className:y,"data-testid":"product-card-container-div"},{children:[i.jsxs(h.Container,e.__assign({as:b?"a":"div",href:b,rel:T?"nofollow":"",className:"picContainer",onClick:L},{children:[_||z?i.jsxs(h.ImageContainer,e.__assign({width:null==O?void 0:O.width,height:null==O?void 0:O.height,"data-testid":"tags-image-container"},{children:[i.jsx(l.Image,{src:x.src,srcSet:n.getSrcSet(x.src,180,360,720,960),alt:W,"aria-hidden":G,width:"100%",height:"100%"},void 0),i.jsx(h.TopTagContainer,e.__assign({style:{width:"inherit"}},{children:_}),void 0),i.jsx(h.BottomTagContainer,e.__assign({"data-testid":"bottom-tag-container",style:{width:"inherit"}},{children:z}),void 0)]}),void 0):i.jsx(l.Image,{src:x.src,srcSet:n.getSrcSet(x.src,180,360,720,960),alt:W,"aria-hidden":G,width:null==O?void 0:O.width,height:null==O?void 0:O.height},void 0),j?i.jsx(h.ImageHoverContainer,{className:"hover__image",src:j.src,srcSet:n.getSrcSet(j.src,180,360,720,960),loading:"lazy",alt:X,"aria-hidden":J,width:null==O?void 0:O.width,height:null==O?void 0:O.height},void 0):null]}),void 0),i.jsxs(h.Container,e.__assign({as:b?"a":"div",href:b,rel:T?"nofollow":"",onClick:L,className:"textContainer"},{children:[i.jsx(s.Spacing,{size:K},void 0),i.jsx(s.Spacing,{size:K},void 0),i.jsx(s.Spacing,{size:K},void 0),i.jsx(g.Text,e.__assign({variant:"link",underline:!0},{children:H}),void 0),i.jsx(s.Spacing,{size:K},void 0),i.jsx(s.Spacing,{size:K},void 0),i.jsx((function(){return A?i.jsx(r,{height:"20px",width:"80px"},void 0):f.reviews?i.jsx(c.Rating,{size:C===o.ComponentSize.Large?o.ComponentSize.Small:o.ComponentSize.XSmall,rating:f.rating,reviews:f.reviews,reviewsText:"",wrapWithParenthesis:!0},void 0):i.jsx(i.Fragment,{},void 0)}),{},void 0),i.jsx(s.Spacing,{size:K},void 0),i.jsx(h.Title,e.__assign({theme:B,align:q},{children:m}),void 0),i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:"5px",margin:"3px 0 5px -5px"}},{children:[F&&i.jsx(h.DiscountLabel,e.__assign({style:{marginLeft:"5px"}},{children:F}),void 0),M&&i.jsx(l.Image,{src:"https://cdn.shopify.com/s/files/1/2679/8624/files/selling-fast-copy.png?v=1712665121",alt:V||R?null!=V?V:"":"selling-fast-copy","aria-hidden":!(!R||V)||void 0,width:"77px",height:"22px"},void 0)]}),void 0),k?i.jsx(r,{height:"20px",width:"140px"},void 0):(v=!(!D||N)||void 0,i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",marginLeft:"-5px"}},{children:[i.jsx(d.PriceLabelV2,{finalPrice:S.finalPrice,originalPrice:S.originalPrice,finalPriceStyled:!1,color:S.color,size:o.ComponentSize.Small,testId:"volume-discount",clubStyle:!1},void 0),i.jsx("button",e.__assign({"data-testid":"quick-eye-button",style:{marginLeft:"30px",backgroundColor:"transparent",border:"none",cursor:"pointer"},"aria-label":N,"aria-hidden":v,tabIndex:v?-1:void 0,onClick:function(e){e.stopPropagation(),e.preventDefault(),P&&P()}},{children:i.jsx(l.Image,{alt:N?"":"quick-view-eye","aria-hidden":!!N||void 0,src:"https://cdn.shopify.com/s/files/1/0242/7086/4465/files/quick-view-eye.png?v=1712256686",width:"28px",height:"28px",borderRadius:"1px"},void 0)}),void 0)]}),void 0))]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ProductCardV2.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("react"),t=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../shared/spacing/Spacing.js"),n=require("../../../../core/theme/Theme.js");require("../../../../utils/constants/offerAtCart.js");var o=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var a=require("../../../../types/enums.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js"),require("../../../pricing/styles.js"),require("../../../tooltip/Styled.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var l=require("../../../atoms/Image/Image.js"),c=require("../../../atoms/PriceLabelV2/PriceLabelV2.js");require("../../../atoms/Toggle/toggle.styled.js");var d=require("../../../rating/Rating.js"),u=require("../../../text/Text.js"),g=require("./styled.js");exports.ProductCardV3=function(p){var v=p.title,x=p.image;p.imageHover;var m=p.price,h=p.rating,j=p.size,S=p.alignName,f=void 0===S?"center":S,C=p.url,q=p.className;p.topTag,p.bottomTag;var y=p.onClick,b=p.onClickEye,w=p.priceLoading,z=p.noFollow,_=void 0!==z&&z,P=p.isRatingLoading,L=p.colorsCopy,k=p.discountTag,T=n.useTheme(),I=function(e){switch(e){case a.ComponentSize.Medium:return{width:"205px",height:"274px"};case a.ComponentSize.Small:return{width:"93px",height:"124px"};case a.ComponentSize.Large:return{width:"262px",height:"350px"};default:return{width:"205px",height:"274px"}}}(j),M=r.useMemo((function(){var e;return(e={},e[a.ComponentSize.Large]=8,e[a.ComponentSize.Medium]=4,e[a.ComponentSize.Small]=2,e)[j]}),[j]);return i.jsxs(g.ProdCardContainer,e.__assign({className:q,"data-testid":"product-card-container-div"},{children:[i.jsx(g.Container,e.__assign({"data-testid":"first-image-div",as:C?"a":"div",href:C,rel:_?"nofollow":"",className:"picContainer",onClick:y,style:{marginRight:"-90px"}},{children:i.jsx(l.Image,{src:x.src,srcSet:o.getSrcSet(x.src,180,360,720,960),alt:x.alt,width:null==I?void 0:I.width,height:null==I?void 0:I.height},void 0)}),void 0),i.jsxs(g.Container,e.__assign({as:C?"a":"div",href:C,rel:_?"nofollow":"",onClick:y,className:"textContainer"},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between"}},{children:[i.jsx(g.Title,e.__assign({theme:T,align:f,style:{fontSize:"14px"}},{children:v}),void 0),i.jsx("button",e.__assign({"data-testid":"quick-eye-button",style:{margin:"5x 0 0 45px",backgroundColor:"transparent",border:"none",cursor:"pointer"},onClick:function(e){e.stopPropagation(),e.preventDefault(),b&&b()}},{children:i.jsx(l.Image,{alt:"quick-view-eye",src:"https://cdn.shopify.com/s/files/1/0242/7086/4465/files/quick-view-eye.png?v=1712256686",width:"32px",height:"32px",borderRadius:"1px"},void 0)}),void 0)]}),void 0),i.jsx(u.Text,e.__assign({variant:"link",underline:!0,style:{fontSize:"12px"}},{children:L}),void 0),i.jsx(s.Spacing,{size:M},void 0),w?i.jsx(t,{height:"20px",width:"140px"},void 0):i.jsx("div",e.__assign({style:{display:"flex"}},{children:i.jsx(c.PriceLabelV2,{finalPrice:m.finalPrice,originalPrice:m.originalPrice,finalPriceStyled:!1,color:m.color,size:a.ComponentSize.Small,testId:"volume-discount",clubStyle:!1},void 0)}),void 0),i.jsx(s.Spacing,{size:M},void 0),i.jsx(g.DiscountLabel,e.__assign({style:{marginLeft:"5px"}},{children:k}),void 0),i.jsx(s.Spacing,{size:M},void 0),i.jsx(s.Spacing,{size:M},void 0),i.jsx(s.Spacing,{size:M},void 0),i.jsx((function(){return P?i.jsx(t,{height:"20px",width:"80px"},void 0):h.reviews?i.jsx(d.Rating,{size:j===a.ComponentSize.Large?a.ComponentSize.Small:a.ComponentSize.XSmall,rating:h.rating,reviews:h.reviews,reviewsText:"",wrapWithParenthesis:!0},void 0):i.jsx(i.Fragment,{},void 0)}),{},void 0)]}),void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("react"),t=require("../../../SkeletonBox/SkeletonBox.js"),s=require("../../../shared/spacing/Spacing.js"),a=require("../../../../core/theme/Theme.js");require("../../../../utils/constants/offerAtCart.js");var n=require("../../../../utils/getSrcSet/getSrcSet.js");require("../../../../utils/media.js"),require("../../../../utils/mock-content/CancellationFlowAccordion.js");var o=require("../../../../types/enums.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js"),require("../../../pricing/styles.js"),require("../../../tooltip/Styled.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js");var l=require("../../../atoms/Image/Image.js"),d=require("../../../atoms/PriceLabelV2/PriceLabelV2.js");require("../../../atoms/Toggle/toggle.styled.js");var c=require("../../../rating/Rating.js"),g=require("../../../text/Text.js"),u=require("../utils.js"),p=require("./styled.js");exports.ProductCardV3=function(v){var x=v.title,m=v.image;v.imageHover;var h=v.price,j=v.rating,f=v.size,S=v.alignName,q=void 0===S?"center":S,y=v.url,C=v.className;v.topTag,v.bottomTag;var b=v.onClick,w=v.onClickEye,z=v.priceLoading,_=v.noFollow,P=void 0!==_&&_,L=v.isRatingLoading,k=v.colorsCopy,I=v.discountTag,T=v.quickViewAriaLabel,A=v.sellingFastAriaLabel,F=v.quickViewAriaHidden,H=v.sellingFastAriaHidden,M=v.sellingFast,V=a.useTheme(),N=function(e){switch(e){case o.ComponentSize.Medium:return{width:"205px",height:"274px"};case o.ComponentSize.Small:return{width:"93px",height:"124px"};case o.ComponentSize.Large:return{width:"262px",height:"350px"};default:return{width:"205px",height:"274px"}}}(f),R=u.getProductCardImageAlts({imageAlt:m.alt,title:x}),D=R.imageAlt,O=R.imageAriaHidden,B=!(!F||T)||void 0,E=r.useMemo((function(){var e;return(e={},e[o.ComponentSize.Large]=8,e[o.ComponentSize.Medium]=4,e[o.ComponentSize.Small]=2,e)[f]}),[f]);return i.jsxs(p.ProdCardContainer,e.__assign({className:C,"data-testid":"product-card-container-div"},{children:[i.jsx(p.Container,e.__assign({"data-testid":"first-image-div",as:y?"a":"div",href:y,rel:P?"nofollow":"",className:"picContainer",onClick:b,style:{marginRight:"-90px"}},{children:i.jsx(l.Image,{src:m.src,srcSet:n.getSrcSet(m.src,180,360,720,960),alt:D,"aria-hidden":O,width:null==N?void 0:N.width,height:null==N?void 0:N.height},void 0)}),void 0),i.jsxs(p.Container,e.__assign({as:y?"a":"div",href:y,rel:P?"nofollow":"",onClick:b,className:"textContainer"},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between"}},{children:[i.jsx(p.Title,e.__assign({theme:V,align:q,style:{fontSize:"14px"}},{children:x}),void 0),i.jsx("button",e.__assign({"data-testid":"quick-eye-button",style:{margin:"5x 0 0 45px",backgroundColor:"transparent",border:"none",cursor:"pointer"},"aria-label":T,"aria-hidden":B,tabIndex:B?-1:void 0,onClick:function(e){e.stopPropagation(),e.preventDefault(),w&&w()}},{children:i.jsx(l.Image,{alt:T?"":"quick-view-eye","aria-hidden":!!T||void 0,src:"https://cdn.shopify.com/s/files/1/0242/7086/4465/files/quick-view-eye.png?v=1712256686",width:"32px",height:"32px",borderRadius:"1px"},void 0)}),void 0)]}),void 0),i.jsx(g.Text,e.__assign({variant:"link",underline:!0,style:{fontSize:"12px"}},{children:k}),void 0),i.jsx(s.Spacing,{size:E},void 0),z?i.jsx(t,{height:"20px",width:"140px"},void 0):i.jsx("div",e.__assign({style:{display:"flex"}},{children:i.jsx(d.PriceLabelV2,{finalPrice:h.finalPrice,originalPrice:h.originalPrice,finalPriceStyled:!1,color:h.color,size:o.ComponentSize.Small,testId:"volume-discount",clubStyle:!1},void 0)}),void 0),i.jsx(s.Spacing,{size:E},void 0),(I||M)&&i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"5px"}},{children:[I&&i.jsx(p.DiscountLabel,e.__assign({style:{marginLeft:"5px"}},{children:I}),void 0),M&&i.jsx(l.Image,{src:"https://cdn.shopify.com/s/files/1/2679/8624/files/selling-fast-copy.png?v=1712665121",alt:A||H?null!=A?A:"":"selling-fast-copy","aria-hidden":!(!H||A)||void 0,width:"77px",height:"22px"},void 0)]}),void 0),i.jsx(s.Spacing,{size:E},void 0),i.jsx(s.Spacing,{size:E},void 0),i.jsx(s.Spacing,{size:E},void 0),i.jsx((function(){return L?i.jsx(t,{height:"20px",width:"80px"},void 0):j.reviews?i.jsx(c.Rating,{size:f===o.ComponentSize.Large?o.ComponentSize.Small:o.ComponentSize.XSmall,rating:j.rating,reviews:j.reviews,reviewsText:"",wrapWithParenthesis:!0},void 0):i.jsx(i.Fragment,{},void 0)}),{},void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ProductCardV3.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.getProductCardImageAlts=function(e){var t=e.imageAlt,i=e.imageHoverAlt,r=e.title,a=t||r||"",o=null!=i?i:a;return{imageAlt:a,imageHoverAlt:o,imageAriaHidden:""===a||void 0,imageHoverAriaHidden:""===o||void 0}};
2
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),i=require("../../../core/theme/Theme.js"),t=require("../../../types/enums.js");require("react"),require("../clubOffer/ClubOfferTag.js"),require("../discount/styled.js");var r=require("../styles.js"),s=require("../../tooltip/Tooltip.js");require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js");var l=require("../../atoms/Icon/Icon.js");require("../../atoms/Image/styled.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/Toggle/toggle.styled.js");exports.PriceLabelTooltip=function(a){var n=a.tooltipText,c=a.tooltipIcon,u=a.tooltipPosition,d=a.isMobile,j=i.useTheme();return o.jsx(r.TooltipContainer,e.__assign({"data-testid":"tooltip-container"},{children:o.jsx(s.Tooltip,e.__assign({showCloseIcon:!0,withArrow:!0,content:{text:n},position:null!=u?u:t.ComponentPosition.BottomRight,closeBtnSize:.7,"data-testid":"tooltip"},{children:o.jsx(l.Icon,{name:null!=c?c:"actions/circle_info",fill:j.colors.shades[500].color,testId:"tooltip-icon",showTooltipTitle:d},void 0)}),void 0)}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),i=require("../../../core/theme/Theme.js"),t=require("../../../types/enums.js");require("react"),require("../clubOffer/ClubOfferTag.js"),require("../discount/styled.js");var r=require("../styles.js"),s=require("../../tooltip/Tooltip.js");require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js");var l=require("../../atoms/Icon/Icon.js");require("../../atoms/Image/styled.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/Toggle/toggle.styled.js");exports.PriceLabelTooltip=function(a){var n=a.tooltipText,u=a.tooltipIcon,c=a.tooltipPosition,d=a.isMobile,b=a.tooltipAriaLabel,p=i.useTheme(),j=null!=b?b:n;return o.jsx(r.TooltipContainer,e.__assign({"data-testid":"tooltip-container"},{children:o.jsx(s.Tooltip,e.__assign({showCloseIcon:!0,withArrow:!0,content:{text:n},position:null!=c?c:t.ComponentPosition.BottomRight,closeBtnSize:.7,"data-testid":"tooltip",triggerAriaLabel:j,enableKeyboardToggle:!0},{children:o.jsx(l.Icon,{name:null!=u?u:"actions/circle_info",fill:p.colors.shades[500].color,testId:"tooltip-icon",showTooltipTitle:d},void 0)}),void 0)}),void 0)};
2
2
  //# sourceMappingURL=PriceLabelTooltip.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),o=require("../../../core/theme/Theme.js");require("react");var r=require("../../../hooks/WindowDimensions.js"),a=require("../../../utils/getCurrencySymbol/getCurrencySimbol.js"),s=require("../../../types/enums.js"),t=require("../clubOffer/ClubOfferTag.js"),n=require("../discount/DiscountTag.js"),l=require("../price/PriceLabel.js"),c=require("../priceLabelV6/utils/priceLabelAria.js"),d=require("../styles.js"),u=require("./PriceLabelTooltip.js"),p=function(o){var r,a=o.testId,t=o.priceCommonProps,n=o.size,c=o.currencySymbol,u=o.finalPriceArray,p=o.productFinalPrice,m=o.showDecimals,b=o.pricePerItem,v=o.theme,y=o.isHorizontalLayout,g=void 0!==y&&y,f=o.isVerticalLayout,P=void 0!==f&&f,S=o.ariaLabel,x=g?i.__assign(i.__assign({},t),{size:s.ComponentSize.Small,style:{fontSize:"14px"}}):t,z=P?i.__assign(i.__assign({},t),{size:s.ComponentSize.Small,style:{fontSize:"16px"}}):t,L=g?x:P?z:t;return e.jsxs(d.FinalPriceStyledContainer,i.__assign({"data-testid":l.getTestId(a,"final-product-price"),"aria-label":S},{children:[e.jsx(d.Price,i.__assign({margin:!0,finalPriceStyledSmall:!g&&!P},L,{size:g||P?s.ComponentSize.Small:n,"aria-hidden":"true"},{children:c}),void 0),e.jsx(d.Price,i.__assign({finalPriceStyled:!g&&!P},L,{size:g||P?s.ComponentSize.Small:n,"aria-hidden":"true"},{children:u[0]?u[0]:null===(r="".concat(p))||void 0===r?void 0:r.split(c)[1]}),void 0),m&&e.jsxs(d.Price,i.__assign({finalPriceStyledSmall:!g&&!P,style:g?{fontSize:"14px"}:P?{fontSize:"16px"}:{marginTop:"-6px"}},L,{size:g||P?s.ComponentSize.Small:n,"aria-hidden":"true"},{children:[(g||P)&&".",u[1]?u[1]:"00"]}),void 0),b&&e.jsx(d.Price,i.__assign({size:s.ComponentSize.Small,color:v.colors.pallete.secondary.color,"aria-hidden":"true"},{children:"/each"}),void 0)]}),void 0)},m=function(o){var r=o.isDiscount,a=o.discount,t=o.bordersRounded,l=o.savingsDisplay,c=o.currencySymbol,u=o.savetoString,p=o.isHorizontalLayout,m=void 0!==p&&p,b=o.ariaLabel;return r?e.jsx(d.TagContainer,i.__assign({size:s.ComponentSize.Small},{children:a&&e.jsx(n.DiscountTag,i.__assign({},a,{size:s.ComponentSize.Medium,style:i.__assign({letterSpacing:"-0.05rem"},m&&{fontSize:"12px"}),bordersRounded:t,savings:l?"Save ".concat(c).concat(u):void 0,ariaLabel:b}),void 0)}),void 0):null},b=function(o){var r=o.isClubOffer,a=o.clubOffer;return r?e.jsx(d.TagContainer,i.__assign({size:s.ComponentSize.Medium},{children:a&&e.jsx(t.ClubOfferTag,i.__assign({},a,{size:s.ComponentSize.Small,style:{borderRadius:"8px",width:"107px",height:"28px",alignItems:"center",padding:"3px 8px 3px 8px",fontSize:"14px",lineHeight:"22px"}}),void 0)}),void 0):null};exports.PriceLabelV2=function(t){var n=t.finalPrice,v=t.originalPrice,y=t.discount,g=t.clubOffer,f=t.color,P=t.testId,S=t.originalPriceStyled,x=void 0!==S&&S,z=t.originalPriceUnderlined,L=void 0===z||z,h=t.size,j=void 0===h?s.ComponentSize.Small:h,_=t.bordersRounded,C=void 0!==_&&_,D=t.savingsDisplay,T=void 0===D||D,I=t.pricePerItem,O=t.hasRoundedSavings,A=void 0===O||O,V=t.showDecimals,q=void 0===V||V,w=t.tooltipText,H=t.tooltipIcon,R=t.tooltipPosition,M=t.hasVerticalLayout,F=void 0!==M&&M,N=t.hasHorizontalLayout,U=void 0!==N&&N,W=t.isMobile,k=void 0!==W&&W,$=t.finalPriceAriaLabel,B=t.originalPriceAriaLabel,E=t.discountAriaLabel,G=i.__rest(t,["finalPrice","originalPrice","discount","clubOffer","color","testId","originalPriceStyled","originalPriceUnderlined","size","bordersRounded","savingsDisplay","pricePerItem","hasRoundedSavings","showDecimals","tooltipText","tooltipIcon","tooltipPosition","hasVerticalLayout","hasHorizontalLayout","isMobile","finalPriceAriaLabel","originalPriceAriaLabel","discountAriaLabel"]),J=o.useTheme(),K=r.useWindowDimensions().isMobile,Q=I||n,X=v!==Q,Y=v&&X,Z=!(!y||!X),ii=!(!g||!X),ei="$";"string"==typeof Q&&(ei=a.getCurrencySymbol(Q));var oi,ri,ai="string"==typeof Q&&Q.includes(".")&&Q.includes(ei)?Q.split(ei)[1].split("."):["",""],si={size:s.ComponentSize.Small,color:ii?"var(--colors-pallete-wine-color)":f||J.colors.pallete.secondary.color,weight:700};"string"==typeof v&&"string"==typeof Q?(oi=Number(v.replace(ei,"")),ri=Number(Q.replace(ei,""))):(oi="number"==typeof v?v:0,ri="number"==typeof Q?Q:0);var ti=oi-ri;if(A){var ni=Number((ti-Math.floor(ti)).toFixed(2));ni>=.01&&ni<.5?ti=Math.floor(ti)+0:ni>=.51&&ni<1&&(ti=Math.floor(ti)+.5)}var li=ti.toFixed(2),ci=c.getPriceLabelAriaTexts({productFinalPrice:Q,originalPrice:v,currencySymbol:ei,isOriginalPrice:!!Y,finalPriceAriaLabel:$,originalPriceAriaLabel:B}),di=ci.computedFinalPriceLabel,ui=ci.computedOriginalPriceLabel,pi=function(){return e.jsx(d.Price,i.__assign({size:x?j:s.ComponentSize.Small,color:J.component.pricing.priceLabel.price.originalPriceColor||J.colors.shades[300].color,margin:!F,underlined:L,"data-testid":l.getTestId(P,"original-product-price"),"data-nosnippet":!0,style:U?{fontSize:"12px"}:void 0,"aria-label":ui},{children:v}),void 0)};return F?e.jsxs(d.VerticalContainer,i.__assign({},G,{id:"priceLabelV2"},{children:[w&&e.jsx(u.PriceLabelTooltip,{tooltipText:w,tooltipIcon:H,tooltipPosition:R,isMobile:null!=k?k:K},void 0),Y&&e.jsx(pi,{},void 0),e.jsxs(d.PriceDiscountRow,{children:[e.jsx(m,{isDiscount:Z,discount:y,bordersRounded:C,savingsDisplay:T,currencySymbol:ei,savetoString:li,isHorizontalLayout:U,ariaLabel:E},void 0),e.jsx(b,{isClubOffer:ii,clubOffer:g},void 0),e.jsx(p,{testId:P,priceCommonProps:si,size:j,currencySymbol:ei,finalPriceArray:ai,productFinalPrice:Q,showDecimals:q,pricePerItem:I,theme:J,isHorizontalLayout:U,isVerticalLayout:F,ariaLabel:di},void 0)]},void 0)]}),void 0):U?e.jsx(d.HorizontalVariantContainer,i.__assign({},G,{id:"priceLabelV2"},{children:e.jsxs(d.HorizontalVariantRow,{children:[w&&e.jsx(u.PriceLabelTooltip,{tooltipText:w,tooltipIcon:H,tooltipPosition:R},void 0),e.jsx(p,{testId:P,priceCommonProps:si,size:j,currencySymbol:ei,finalPriceArray:ai,productFinalPrice:Q,showDecimals:q,pricePerItem:I,theme:J,isHorizontalLayout:U,isVerticalLayout:F,ariaLabel:di},void 0),Y&&e.jsx(pi,{},void 0),e.jsx(m,{isDiscount:Z,discount:y,bordersRounded:C,savingsDisplay:T,currencySymbol:ei,savetoString:li,isHorizontalLayout:U,ariaLabel:E},void 0),e.jsx(b,{isClubOffer:ii,clubOffer:g},void 0)]},void 0)}),void 0):e.jsxs(d.Container,i.__assign({},G,{id:"priceLabelV2"},{children:[w&&e.jsx(u.PriceLabelTooltip,{tooltipText:w,tooltipIcon:H,tooltipPosition:R},void 0),Y&&e.jsx(pi,{},void 0),e.jsx(p,{testId:P,priceCommonProps:si,size:j,currencySymbol:ei,finalPriceArray:ai,productFinalPrice:Q,showDecimals:q,pricePerItem:I,theme:J,isHorizontalLayout:U,isVerticalLayout:F,ariaLabel:di},void 0),e.jsx(m,{isDiscount:Z,discount:y,bordersRounded:C,savingsDisplay:T,currencySymbol:ei,savetoString:li,isHorizontalLayout:U,ariaLabel:E},void 0),e.jsx(b,{isClubOffer:ii,clubOffer:g},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),o=require("../../../core/theme/Theme.js");require("react");var r=require("../../../hooks/WindowDimensions.js"),a=require("../../../utils/getCurrencySymbol/getCurrencySimbol.js"),t=require("../../../types/enums.js"),l=require("../clubOffer/ClubOfferTag.js"),s=require("../discount/DiscountTag.js"),n=require("../price/PriceLabel.js"),c=require("../priceLabelV6/utils/priceLabelAria.js"),d=require("../styles.js"),u=require("./PriceLabelTooltip.js"),p=function(o){var r,a=o.testId,l=o.priceCommonProps,s=o.size,c=o.currencySymbol,u=o.finalPriceArray,p=o.productFinalPrice,m=o.showDecimals,b=o.pricePerItem,v=o.theme,y=o.isHorizontalLayout,g=void 0!==y&&y,f=o.isVerticalLayout,P=void 0!==f&&f,S=o.ariaLabel,x=g?i.__assign(i.__assign({},l),{size:t.ComponentSize.Small,style:{fontSize:"14px"}}):l,L=P?i.__assign(i.__assign({},l),{size:t.ComponentSize.Small,style:{fontSize:"16px"}}):l,z=g?x:P?L:l;return e.jsxs(d.FinalPriceStyledContainer,i.__assign({"data-testid":n.getTestId(a,"final-product-price"),"aria-label":S},{children:[e.jsx(d.Price,i.__assign({margin:!0,finalPriceStyledSmall:!g&&!P},z,{size:g||P?t.ComponentSize.Small:s,"aria-hidden":"true"},{children:c}),void 0),e.jsx(d.Price,i.__assign({finalPriceStyled:!g&&!P},z,{size:g||P?t.ComponentSize.Small:s,"aria-hidden":"true"},{children:u[0]?u[0]:null===(r="".concat(p))||void 0===r?void 0:r.split(c)[1]}),void 0),m&&e.jsxs(d.Price,i.__assign({finalPriceStyledSmall:!g&&!P,style:g?{fontSize:"14px"}:P?{fontSize:"16px"}:{marginTop:"-6px"}},z,{size:g||P?t.ComponentSize.Small:s,"aria-hidden":"true"},{children:[(g||P)&&".",u[1]?u[1]:"00"]}),void 0),b&&e.jsx(d.Price,i.__assign({size:t.ComponentSize.Small,color:v.colors.pallete.secondary.color,"aria-hidden":"true"},{children:"/each"}),void 0)]}),void 0)},m=function(o){var r=o.isDiscount,a=o.discount,l=o.bordersRounded,n=o.savingsDisplay,c=o.currencySymbol,u=o.savetoString,p=o.isHorizontalLayout,m=void 0!==p&&p,b=o.ariaLabel;return r?e.jsx(d.TagContainer,i.__assign({size:t.ComponentSize.Small},{children:a&&e.jsx(s.DiscountTag,i.__assign({},a,{size:t.ComponentSize.Medium,style:i.__assign({letterSpacing:"-0.05rem"},m&&{fontSize:"12px"}),bordersRounded:l,savings:n?"Save ".concat(c).concat(u):void 0,ariaLabel:b}),void 0)}),void 0):null},b=function(o){var r=o.isClubOffer,a=o.clubOffer;return r?e.jsx(d.TagContainer,i.__assign({size:t.ComponentSize.Medium},{children:a&&e.jsx(l.ClubOfferTag,i.__assign({},a,{size:t.ComponentSize.Small,style:{borderRadius:"8px",width:"107px",height:"28px",alignItems:"center",padding:"3px 8px 3px 8px",fontSize:"14px",lineHeight:"22px"}}),void 0)}),void 0):null};exports.PriceLabelV2=function(l){var s=l.finalPrice,v=l.originalPrice,y=l.discount,g=l.clubOffer,f=l.color,P=l.testId,S=l.originalPriceStyled,x=void 0!==S&&S,L=l.originalPriceUnderlined,z=void 0===L||L,h=l.size,j=void 0===h?t.ComponentSize.Small:h,_=l.bordersRounded,C=void 0!==_&&_,D=l.savingsDisplay,T=void 0===D||D,I=l.pricePerItem,A=l.hasRoundedSavings,O=void 0===A||A,V=l.showDecimals,q=void 0===V||V,w=l.tooltipText,H=l.tooltipIcon,R=l.tooltipPosition,M=l.tooltipAriaLabel,F=l.hasVerticalLayout,N=void 0!==F&&F,U=l.hasHorizontalLayout,W=void 0!==U&&U,k=l.isMobile,$=void 0!==k&&k,B=l.finalPriceAriaLabel,E=l.originalPriceAriaLabel,G=l.discountAriaLabel,J=i.__rest(l,["finalPrice","originalPrice","discount","clubOffer","color","testId","originalPriceStyled","originalPriceUnderlined","size","bordersRounded","savingsDisplay","pricePerItem","hasRoundedSavings","showDecimals","tooltipText","tooltipIcon","tooltipPosition","tooltipAriaLabel","hasVerticalLayout","hasHorizontalLayout","isMobile","finalPriceAriaLabel","originalPriceAriaLabel","discountAriaLabel"]),K=o.useTheme(),Q=r.useWindowDimensions().isMobile,X=I||s,Y=v!==X,Z=v&&Y,ii=!(!y||!Y),ei=!(!g||!Y),oi="$";"string"==typeof X&&(oi=a.getCurrencySymbol(X));var ri,ai,ti="string"==typeof X&&X.includes(".")&&X.includes(oi)?X.split(oi)[1].split("."):["",""],li={size:t.ComponentSize.Small,color:ei?"var(--colors-pallete-wine-color)":f||K.colors.pallete.secondary.color,weight:700};"string"==typeof v&&"string"==typeof X?(ri=Number(v.replace(oi,"")),ai=Number(X.replace(oi,""))):(ri="number"==typeof v?v:0,ai="number"==typeof X?X:0);var si=ri-ai;if(O){var ni=Number((si-Math.floor(si)).toFixed(2));ni>=.01&&ni<.5?si=Math.floor(si)+0:ni>=.51&&ni<1&&(si=Math.floor(si)+.5)}var ci=si.toFixed(2),di=c.getPriceLabelAriaTexts({productFinalPrice:X,originalPrice:v,currencySymbol:oi,isOriginalPrice:!!Z,finalPriceAriaLabel:B,originalPriceAriaLabel:E}),ui=di.computedFinalPriceLabel,pi=di.computedOriginalPriceLabel,mi=function(){return e.jsx(d.Price,i.__assign({size:x?j:t.ComponentSize.Small,color:K.component.pricing.priceLabel.price.originalPriceColor||K.colors.shades[300].color,margin:!N,underlined:z,"data-testid":n.getTestId(P,"original-product-price"),"data-nosnippet":!0,style:W?{fontSize:"12px"}:void 0,"aria-label":pi},{children:v}),void 0)};return N?e.jsxs(d.VerticalContainer,i.__assign({},J,{id:"priceLabelV2"},{children:[w&&e.jsx(u.PriceLabelTooltip,{tooltipText:w,tooltipIcon:H,tooltipPosition:R,isMobile:null!=$?$:Q,tooltipAriaLabel:M},void 0),Z&&e.jsx(mi,{},void 0),e.jsxs(d.PriceDiscountRow,{children:[e.jsx(m,{isDiscount:ii,discount:y,bordersRounded:C,savingsDisplay:T,currencySymbol:oi,savetoString:ci,isHorizontalLayout:W,ariaLabel:G},void 0),e.jsx(b,{isClubOffer:ei,clubOffer:g},void 0),e.jsx(p,{testId:P,priceCommonProps:li,size:j,currencySymbol:oi,finalPriceArray:ti,productFinalPrice:X,showDecimals:q,pricePerItem:I,theme:K,isHorizontalLayout:W,isVerticalLayout:N,ariaLabel:ui},void 0)]},void 0)]}),void 0):W?e.jsx(d.HorizontalVariantContainer,i.__assign({},J,{id:"priceLabelV2"},{children:e.jsxs(d.HorizontalVariantRow,{children:[w&&e.jsx(u.PriceLabelTooltip,{tooltipText:w,tooltipIcon:H,tooltipPosition:R,tooltipAriaLabel:M},void 0),e.jsx(p,{testId:P,priceCommonProps:li,size:j,currencySymbol:oi,finalPriceArray:ti,productFinalPrice:X,showDecimals:q,pricePerItem:I,theme:K,isHorizontalLayout:W,isVerticalLayout:N,ariaLabel:ui},void 0),Z&&e.jsx(mi,{},void 0),e.jsx(m,{isDiscount:ii,discount:y,bordersRounded:C,savingsDisplay:T,currencySymbol:oi,savetoString:ci,isHorizontalLayout:W,ariaLabel:G},void 0),e.jsx(b,{isClubOffer:ei,clubOffer:g},void 0)]},void 0)}),void 0):e.jsxs(d.Container,i.__assign({},J,{id:"priceLabelV2"},{children:[w&&e.jsx(u.PriceLabelTooltip,{tooltipText:w,tooltipIcon:H,tooltipPosition:R,tooltipAriaLabel:M},void 0),Z&&e.jsx(mi,{},void 0),e.jsx(p,{testId:P,priceCommonProps:li,size:j,currencySymbol:oi,finalPriceArray:ti,productFinalPrice:X,showDecimals:q,pricePerItem:I,theme:K,isHorizontalLayout:W,isVerticalLayout:N,ariaLabel:ui},void 0),e.jsx(m,{isDiscount:ii,discount:y,bordersRounded:C,savingsDisplay:T,currencySymbol:oi,savetoString:ci,isHorizontalLayout:W,ariaLabel:G},void 0),e.jsx(b,{isClubOffer:ei,clubOffer:g},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=PriceLabelV2.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("@emotion/styled"),r=require("../../../core/theme/Theme.js"),s=require("../../../utils/getCurrencySymbol/getCurrencySimbol.js"),t=require("../../../types/enums.js"),o=require("../clubOffer/ClubOfferTag.js"),l=require("../discount/DiscountTag.js"),a=require("../price/PriceLabel.js"),d=require("../styles.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p,u,g,m=c(n),f=m.default.div(p||(p=e.__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"]))),v=m.default.div(u||(u=e.__makeTemplateObject(["\n display: column;\n align-items: center;\n"],["\n display: column;\n align-items: center;\n"]))),_=m.default.div(g||(g=e.__makeTemplateObject(["\n display: flex;\n padding-left: 0.5rem;\n"],["\n display: flex;\n padding-left: 0.5rem;\n"])));exports.PriceLabelV3=function(n){var c,p=n.finalPrice,u=n.originalPrice,g=n.discount,m=n.clubOffer,x=n.color,y=n.testId,h=n.originalPriceStyled,j=void 0!==h&&h,b=n.originalPriceUnderlined,S=void 0===b||b,P=n.size,z=void 0===P?t.ComponentSize.Small:P,C=n.bordersRounded,T=void 0!==C&&C,q=n.savingsDisplay,O=void 0===q||q,w=n.itemsQuantity,I=n.packUnitPrice,M=e.__rest(n,["finalPrice","originalPrice","discount","clubOffer","color","testId","originalPriceStyled","originalPriceUnderlined","size","bordersRounded","savingsDisplay","itemsQuantity","packUnitPrice"]),k=r.useTheme(),D=u!==p,R=u&&D,U=g&&D,L=m&&D,N="$";"string"==typeof p&&(N=s.getCurrencySymbol(p));var F,Q,V="string"==typeof p&&p.includes(".")&&p.includes(N)?p.split(N)[1].split("."):["",""],A={size:t.ComponentSize.Small,color:L?"var(--colors-pallete-wine-color)":null!=x?x:k.colors.pallete.secondary.color,weight:700};"string"==typeof u&&"string"==typeof p?(F=Number(u.replace(N,"")),Q=Number(p.replace(N,""))):(F="number"==typeof u?u:0,Q="number"==typeof p?p:0);var B=F-Q,E=Number((B-Math.floor(B)).toFixed(2));E>=.01&&E<.5?B=Math.floor(B)+0:E>=.51&&E<1&&(B=Math.floor(B)+.5);var H=B.toFixed(2);return i.jsxs(v,e.__assign({},M,{children:[i.jsx(d.Container,e.__assign({style:{paddingBottom:"0.5rem"}},{children:R&&i.jsx((function(){return i.jsx(d.Price,e.__assign({size:j?z:t.ComponentSize.Small,color:k.component.pricing.priceLabel.price.originalPriceColor||k.colors.shades[300].color,margin:!0,underlined:S,"data-testid":a.getTestId(y,"original-product-price"),"data-nosnippet":!0},{children:u}),void 0)}),{},void 0)}),void 0),i.jsxs(d.Container,{children:[i.jsxs(f,e.__assign({"data-testid":a.getTestId(y,"final-product-price")},{children:[i.jsx(d.Price,e.__assign({margin:!0,finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},A,{size:z},{children:N}),void 0),i.jsx(d.Price,e.__assign({finalPriceStyled:!0},A,{size:z},{children:V[0]?V[0]:null===(c="".concat(p))||void 0===c?void 0:c.split(N)[1]}),void 0),i.jsx(d.Price,e.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},A,{size:z},{children:V[1]?V[1]:"00"}),void 0)]}),void 0),i.jsx((function(){return!w||w<2?null:i.jsxs(_,e.__assign({"data-testid":a.getTestId(y,"each-one-price")},{children:[i.jsxs(d.Price,e.__assign({},A,{weight:600},{children:["(",I]}),void 0),i.jsx(d.Price,e.__assign({},A,{weight:400},{children:"/each"}),void 0),i.jsx(d.Price,e.__assign({},A,{weight:600},{children:")"}),void 0)]}),void 0)}),{},void 0),U&&i.jsx(d.TagContainer,e.__assign({size:t.ComponentSize.Small},{children:g&&i.jsx(l.DiscountTag,e.__assign({},g,{size:t.ComponentSize.Medium,style:{letterSpacing:"-0.05rem"},bordersRounded:T,savings:O?"SAVE ".concat(N).concat(H):void 0,showSavings:!0}),void 0)}),void 0),L&&i.jsx(d.TagContainer,e.__assign({size:t.ComponentSize.Medium},{children:m&&i.jsx(o.ClubOfferTag,e.__assign({},m,{size:t.ComponentSize.Small,style:{borderRadius:"8px",width:"107px",height:"28px",alignItems:"center",padding:"3px 8px 3px 8px",fontSize:"14px",lineHeight:"22px"}}),void 0)}),void 0)]},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("@emotion/styled"),n=require("../../../core/theme/Theme.js"),a=require("../../../utils/getCurrencySymbol/getCurrencySimbol.js"),l=require("../../../types/enums.js"),t=require("../clubOffer/ClubOfferTag.js"),s=require("../discount/DiscountTag.js"),o=require("../price/PriceLabel.js"),d=require("../priceLabelV6/utils/priceLabelAria.js"),c=require("../styles.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p,g,m,f=u(r),b=f.default.div(p||(p=e.__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"]))),v=f.default.div(g||(g=e.__makeTemplateObject(["\n display: column;\n align-items: center;\n"],["\n display: column;\n align-items: center;\n"]))),_=f.default.div(m||(m=e.__makeTemplateObject(["\n display: flex;\n padding-left: 0.5rem;\n"],["\n display: flex;\n padding-left: 0.5rem;\n"])));exports.PriceLabelV3=function(r){var u,p=r.finalPrice,g=r.originalPrice,m=r.discount,f=r.clubOffer,x=r.color,y=r.testId,P=r.originalPriceStyled,h=void 0!==P&&P,j=r.originalPriceUnderlined,S=void 0===j||j,z=r.size,C=void 0===z?l.ComponentSize.Small:z,L=r.bordersRounded,T=void 0!==L&&L,q=r.savingsDisplay,A=void 0===q||q,O=r.itemsQuantity,w=r.packUnitPrice,I=r.finalPriceAriaLabel,M=r.originalPriceAriaLabel,k=r.discountAriaLabel,D=e.__rest(r,["finalPrice","originalPrice","discount","clubOffer","color","testId","originalPriceStyled","originalPriceUnderlined","size","bordersRounded","savingsDisplay","itemsQuantity","packUnitPrice","finalPriceAriaLabel","originalPriceAriaLabel","discountAriaLabel"]),F=n.useTheme(),R=g!==p,U=g&&R,N=m&&R,V=f&&R,Q="$";"string"==typeof p&&(Q=a.getCurrencySymbol(p));var B,E,H="string"==typeof p&&p.includes(".")&&p.includes(Q)?p.split(Q)[1].split("."):["",""],$={size:l.ComponentSize.Small,color:V?"var(--colors-pallete-wine-color)":null!=x?x:F.colors.pallete.secondary.color,weight:700};"string"==typeof g&&"string"==typeof p?(B=Number(g.replace(Q,"")),E=Number(p.replace(Q,""))):(B="number"==typeof g?g:0,E="number"==typeof p?p:0);var G=B-E,J=Number((G-Math.floor(G)).toFixed(2));J>=.01&&J<.5?G=Math.floor(G)+0:J>=.51&&J<1&&(G=Math.floor(G)+.5);var K=G.toFixed(2),W=d.getPriceLabelAriaTexts({productFinalPrice:p,originalPrice:g,currencySymbol:Q,isOriginalPrice:!!U,finalPriceAriaLabel:I,originalPriceAriaLabel:M}),X=W.computedFinalPriceLabel,Y=W.computedOriginalPriceLabel;return i.jsxs(v,e.__assign({},D,{children:[i.jsx(c.Container,e.__assign({style:{paddingBottom:"0.5rem"}},{children:U&&i.jsx((function(){return i.jsx(c.Price,e.__assign({size:h?C:l.ComponentSize.Small,color:F.component.pricing.priceLabel.price.originalPriceColor||F.colors.shades[300].color,margin:!0,underlined:S,"data-testid":o.getTestId(y,"original-product-price"),"data-nosnippet":!0,"aria-label":Y},{children:g}),void 0)}),{},void 0)}),void 0),i.jsxs(c.Container,{children:[i.jsxs(b,e.__assign({"data-testid":o.getTestId(y,"final-product-price"),"aria-label":X},{children:[i.jsx(c.Price,e.__assign({margin:!0,finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},$,{size:C,"aria-hidden":"true"},{children:Q}),void 0),i.jsx(c.Price,e.__assign({finalPriceStyled:!0},$,{size:C,"aria-hidden":"true"},{children:H[0]?H[0]:null===(u="".concat(p))||void 0===u?void 0:u.split(Q)[1]}),void 0),i.jsx(c.Price,e.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},$,{size:C,"aria-hidden":"true"},{children:H[1]?H[1]:"00"}),void 0)]}),void 0),i.jsx((function(){return!O||O<2?null:i.jsxs(_,e.__assign({"data-testid":o.getTestId(y,"each-one-price")},{children:[i.jsxs(c.Price,e.__assign({},$,{weight:600},{children:["(",w]}),void 0),i.jsx(c.Price,e.__assign({},$,{weight:400},{children:"/each"}),void 0),i.jsx(c.Price,e.__assign({},$,{weight:600},{children:")"}),void 0)]}),void 0)}),{},void 0),N&&i.jsx(c.TagContainer,e.__assign({size:l.ComponentSize.Small},{children:m&&i.jsx(s.DiscountTag,e.__assign({},m,{size:l.ComponentSize.Medium,style:{letterSpacing:"-0.05rem"},bordersRounded:T,savings:A?"SAVE ".concat(Q).concat(K):void 0,showSavings:!0,ariaLabel:k}),void 0)}),void 0),V&&i.jsx(c.TagContainer,e.__assign({size:l.ComponentSize.Medium},{children:f&&i.jsx(t.ClubOfferTag,e.__assign({},f,{size:l.ComponentSize.Small,style:{borderRadius:"8px",width:"107px",height:"28px",alignItems:"center",padding:"3px 8px 3px 8px",fontSize:"14px",lineHeight:"22px"}}),void 0)}),void 0)]},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=PriceLabelV3.js.map