@trafilea/afrodita-components 7.6.0 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/es/components/atoms/PriceLabel/PriceLabel.js +1 -1
  2. package/build/es/components/atoms/PriceLabelV2/PriceLabelV2.js +1 -1
  3. package/build/es/components/autoship/styled.js +1 -1
  4. package/build/es/components/autoshipV2/styled.js +1 -1
  5. package/build/es/components/bundle/minimalistic/Minimalistic.js +1 -1
  6. package/build/es/components/bundle/simple/Simple.js +1 -1
  7. package/build/es/components/collection/product/mobile/ProductItemMobile.js +1 -1
  8. package/build/es/components/collection/product/truekind/ProductItemTK.js +1 -1
  9. package/build/es/components/dropdown/variants/smart/SmartDropdown.js +2 -0
  10. package/build/es/components/dropdown/variants/smart/SmartDropdown.js.map +1 -0
  11. package/build/es/components/dropdown/variants/smart/SmartDropdownOption.js +2 -0
  12. package/build/es/components/dropdown/variants/smart/SmartDropdownOption.js.map +1 -0
  13. package/build/es/components/dropdown/variants/smart/SmartDropdownOptions.js +2 -0
  14. package/build/es/components/dropdown/variants/smart/SmartDropdownOptions.js.map +1 -0
  15. package/build/es/components/dropdown/variants/smart/styled.js +2 -0
  16. package/build/es/components/dropdown/variants/smart/styled.js.map +1 -0
  17. package/build/es/components/molecules/BenefitsList/BenefitsList.js +1 -1
  18. package/build/es/components/molecules/CouponCard/CouponCard.js +1 -1
  19. package/build/es/components/molecules/LikeButton/LikeButton.js +1 -1
  20. package/build/es/components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.js +1 -1
  21. package/build/es/components/organisms/AutoshipPdpCard/AutoshipPdpCard.js +1 -1
  22. package/build/es/components/organisms/ClubOfferSelector/styled.js +1 -1
  23. package/build/es/components/organisms/ClubOfferSelector2/styled.js +1 -1
  24. package/build/es/components/organisms/OfferAtCart/OfferAtCart.js +1 -1
  25. package/build/es/components/organisms/OfferAtCartV2/OfferAtCartV2.js +1 -1
  26. package/build/es/components/organisms/OfferAtCartV3/OfferAtCartV3.js +1 -1
  27. package/build/es/components/organisms/OfferAtCartV4/OfferAtCartV4.js +1 -1
  28. package/build/es/components/organisms/OfferAtPDP/OfferAtPDP.js +1 -1
  29. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ImageProductSlideV3.js +1 -1
  30. package/build/es/components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/index.js +1 -1
  31. package/build/es/components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js +1 -1
  32. package/build/es/components/organisms/SubscriptionPlanSelector/styled.js +1 -1
  33. package/build/es/components/organisms/TwoCtasAtCart/TwoCtasAtCart.js +1 -1
  34. package/build/es/components/pricing/priceLabelV6/PriceLabelV6.styled.js +2 -0
  35. package/build/es/components/pricing/priceLabelV6/PriceLabelV6.styled.js.map +1 -0
  36. package/build/es/components/product/order/item/SimpleOrderItem.js +1 -1
  37. package/build/es/components/search-bar/SearchBar.js +1 -1
  38. package/build/es/components/search-bar/components/ProductItem/ProductItem.js +1 -1
  39. package/build/es/components/tooltip/Tooltip.js +1 -1
  40. package/build/es/hooks/useViewportAwarePosition/useViewportAwarePosition.js +2 -0
  41. package/build/es/hooks/useViewportAwarePosition/useViewportAwarePosition.js.map +1 -0
  42. package/build/es/index.js +1 -1
  43. package/build/index.d.ts +76 -28
  44. package/build/lib/components/atoms/PriceLabel/PriceLabel.js +1 -1
  45. package/build/lib/components/atoms/PriceLabelV2/PriceLabelV2.js +1 -1
  46. package/build/lib/components/autoship/styled.js +1 -1
  47. package/build/lib/components/autoshipV2/styled.js +1 -1
  48. package/build/lib/components/bundle/minimalistic/Minimalistic.js +1 -1
  49. package/build/lib/components/bundle/simple/Simple.js +1 -1
  50. package/build/lib/components/collection/product/mobile/ProductItemMobile.js +1 -1
  51. package/build/lib/components/collection/product/truekind/ProductItemTK.js +1 -1
  52. package/build/lib/components/dropdown/variants/smart/SmartDropdown.js +2 -0
  53. package/build/lib/components/dropdown/variants/smart/SmartDropdown.js.map +1 -0
  54. package/build/lib/components/dropdown/variants/smart/SmartDropdownOption.js +2 -0
  55. package/build/lib/components/dropdown/variants/smart/SmartDropdownOption.js.map +1 -0
  56. package/build/lib/components/dropdown/variants/smart/SmartDropdownOptions.js +2 -0
  57. package/build/lib/components/dropdown/variants/smart/SmartDropdownOptions.js.map +1 -0
  58. package/build/lib/components/dropdown/variants/smart/styled.js +2 -0
  59. package/build/lib/components/dropdown/variants/smart/styled.js.map +1 -0
  60. package/build/lib/components/molecules/BenefitsList/BenefitsList.js +1 -1
  61. package/build/lib/components/molecules/CouponCard/CouponCard.js +1 -1
  62. package/build/lib/components/molecules/LikeButton/LikeButton.js +1 -1
  63. package/build/lib/components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.js +1 -1
  64. package/build/lib/components/organisms/AutoshipPdpCard/AutoshipPdpCard.js +1 -1
  65. package/build/lib/components/organisms/ClubOfferSelector/styled.js +1 -1
  66. package/build/lib/components/organisms/ClubOfferSelector2/styled.js +1 -1
  67. package/build/lib/components/organisms/OfferAtCart/OfferAtCart.js +1 -1
  68. package/build/lib/components/organisms/OfferAtCartV2/OfferAtCartV2.js +1 -1
  69. package/build/lib/components/organisms/OfferAtCartV3/OfferAtCartV3.js +1 -1
  70. package/build/lib/components/organisms/OfferAtCartV4/OfferAtCartV4.js +1 -1
  71. package/build/lib/components/organisms/OfferAtPDP/OfferAtPDP.js +1 -1
  72. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ImageProductSlideV3.js +1 -1
  73. package/build/lib/components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/MainGallery/index.js +1 -1
  74. package/build/lib/components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js +1 -1
  75. package/build/lib/components/organisms/SubscriptionPlanSelector/styled.js +1 -1
  76. package/build/lib/components/organisms/TwoCtasAtCart/TwoCtasAtCart.js +1 -1
  77. package/build/lib/components/pricing/priceLabelV6/PriceLabelV6.styled.js +2 -0
  78. package/build/lib/components/pricing/priceLabelV6/PriceLabelV6.styled.js.map +1 -0
  79. package/build/lib/components/product/order/item/SimpleOrderItem.js +1 -1
  80. package/build/lib/components/search-bar/SearchBar.js +1 -1
  81. package/build/lib/components/search-bar/components/ProductItem/ProductItem.js +1 -1
  82. package/build/lib/components/tooltip/Tooltip.js +1 -1
  83. package/build/lib/hooks/useViewportAwarePosition/useViewportAwarePosition.js +2 -0
  84. package/build/lib/hooks/useViewportAwarePosition/useViewportAwarePosition.js.map +1 -0
  85. package/build/lib/index.js +1 -1
  86. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),o=require("../../hooks/click-outside.js");require("../../types/enums.js");var n=require("../../core/theme/Theme.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"),require("../atoms/Image/styled.js"),require("../atoms/PriceLabelV2/PriceLabelV2.js"),require("../atoms/Toggle/toggle.styled.js"),require("./components/ClearButton/styled.js"),require("../text/Text.js"),require("./components/Footer/styled.js"),require("../pricing/priceLabelV3/PriceLabelV3.js"),require("../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("./components/ProductItem/styled.js");var s=require("./components/ResultsPanel/ResultsPanel.js"),i=require("./components/SearchControl/SearchControl.js"),a=require("./styled.js"),l={selectedOption:void 0,open:!1,term:""},u=function(r,t){switch(t.type){case"UPDATE_TERM":return e.__assign(e.__assign({},r),{term:t.payload.term});case"CLEAR":return e.__assign(e.__assign({},r),{term:"",open:!1});case"TOGGLE_PANEL":return e.__assign(e.__assign({},r),{open:t.payload.open})}};exports.SearchBar=function(c){var p=c.suggestions,d=c.resultOptions,m=c.onChange,h=c.onSearch,f=c.onClose,g=c.resultsPanelDataTestId,j=c.allResults,v=c.initialTerm,y=c.shouldClear,q=void 0!==y&&y,b=c.isBlogSearchBar,_=void 0!==b&&b,P=c.ariaLabel,C=void 0===P?"Search for products":P,L=c.placeholder,T=void 0===L?"Search for products":L,E=c.id,S=void 0===E?"search":E,x=c.autoComplete,I=void 0===x?"off":x,R=c.onItemClick,A=c.onFocus,D=n.useTheme();v&&(l.term=v);var O=t.useReducer(u,l),V=O[0],G=O[1],M=t.useRef(null),k=function(){return 0===d.length&&p.length>0&&!V.term};o(M,(function(){return G({type:"TOGGLE_PANEL",payload:{open:!1}})})),t.useEffect((function(){var e=setTimeout((function(){m(V.term)}),500);return function(){return clearTimeout(e)}}),[m,V.term]);var w=d&&d.length>0?d:k()?p:[];return r.jsxs("form",e.__assign({role:"search",onSubmit:function(e){e.cancelable&&e.preventDefault()},ref:M,style:{position:"relative"}},{children:[r.jsxs(a.Container,e.__assign({theme:D},{children:[r.jsx(a.Input,{value:V.term,placeholder:T,onChange:function(e){return G({type:"UPDATE_TERM",payload:{term:e.target.value}})},onFocus:function(){G({type:"TOGGLE_PANEL",payload:{open:!0}}),null==A||A()},id:S,autoComplete:I,theme:D,"aria-label":C,onKeyDown:function(e){"Enter"===e.key&&(e.cancelable&&e.preventDefault(),e.stopPropagation(),h(V.term))}},void 0),r.jsx(i.SearchControl,{showSearchIcon:_,open:V.open,onClose:function(){q?G({type:"CLEAR",payload:{}}):f()},onSearch:function(){return h(V.term)}},void 0)]}),void 0),V.open&&!!w.length&&r.jsx(s.ResultsPanel,{testId:g,options:w,header:k()?"Most popular products":void 0,footer:j?"View all results (".concat(j,")"):void 0,onViewAll:function(){return h(V.term)},onItemClick:R},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),o=require("../../hooks/click-outside.js");require("../../types/enums.js");var n=require("../../core/theme/Theme.js");require("../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"),require("../atoms/Image/styled.js"),require("../atoms/PriceLabelV2/PriceLabelV2.js"),require("../atoms/Toggle/toggle.styled.js"),require("./components/ClearButton/styled.js"),require("../text/Text.js"),require("./components/Footer/styled.js"),require("../pricing/priceLabelV3/PriceLabelV3.js"),require("../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../pricing/priceLabelV6/PriceLabelV6.styled.js"),require("./components/ProductItem/styled.js");var s=require("./components/ResultsPanel/ResultsPanel.js"),i=require("./components/SearchControl/SearchControl.js"),a=require("./styled.js"),l={selectedOption:void 0,open:!1,term:""},u=function(r,t){switch(t.type){case"UPDATE_TERM":return e.__assign(e.__assign({},r),{term:t.payload.term});case"CLEAR":return e.__assign(e.__assign({},r),{term:"",open:!1});case"TOGGLE_PANEL":return e.__assign(e.__assign({},r),{open:t.payload.open})}};exports.SearchBar=function(c){var p=c.suggestions,d=c.resultOptions,m=c.onChange,h=c.onSearch,f=c.onClose,g=c.resultsPanelDataTestId,j=c.allResults,v=c.initialTerm,y=c.shouldClear,q=void 0!==y&&y,b=c.isBlogSearchBar,_=void 0!==b&&b,L=c.ariaLabel,P=void 0===L?"Search for products":L,C=c.placeholder,T=void 0===C?"Search for products":C,E=c.id,S=void 0===E?"search":E,x=c.autoComplete,I=void 0===x?"off":x,R=c.onItemClick,V=c.onFocus,A=n.useTheme();v&&(l.term=v);var D=t.useReducer(u,l),O=D[0],G=D[1],M=t.useRef(null),k=function(){return 0===d.length&&p.length>0&&!O.term};o(M,(function(){return G({type:"TOGGLE_PANEL",payload:{open:!1}})})),t.useEffect((function(){var e=setTimeout((function(){m(O.term)}),500);return function(){return clearTimeout(e)}}),[m,O.term]);var w=d&&d.length>0?d:k()?p:[];return r.jsxs("form",e.__assign({role:"search",onSubmit:function(e){e.cancelable&&e.preventDefault()},ref:M,style:{position:"relative"}},{children:[r.jsxs(a.Container,e.__assign({theme:A},{children:[r.jsx(a.Input,{value:O.term,placeholder:T,onChange:function(e){return G({type:"UPDATE_TERM",payload:{term:e.target.value}})},onFocus:function(){G({type:"TOGGLE_PANEL",payload:{open:!0}}),null==V||V()},id:S,autoComplete:I,theme:A,"aria-label":P,onKeyDown:function(e){"Enter"===e.key&&(e.cancelable&&e.preventDefault(),e.stopPropagation(),h(O.term))}},void 0),r.jsx(i.SearchControl,{showSearchIcon:_,open:O.open,onClose:function(){q?G({type:"CLEAR",payload:{}}):f()},onSearch:function(){return h(O.term)}},void 0)]}),void 0),O.open&&!!w.length&&r.jsx(s.ResultsPanel,{testId:g,options:w,header:k()?"Most popular products":void 0,footer:j?"View all results (".concat(j,")"):void 0,onViewAll:function(){return h(O.term)},onItemClick:R},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=SearchBar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../../../../core/theme/Theme.js"),s=require("../../../../types/enums.js"),t=require("../../../atoms/Image/Image.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js");var l=require("../../../pricing/price/PriceLabel.js");require("react"),require("../../../pricing/styles.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js"),require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../../atoms/Toggle/toggle.styled.js"),require("../../../tooltip/Styled.js"),require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js");var o=require("../../../text/Text.js"),a=require("./styled.js");exports.ProductItem=function(c){var u,n=c.src,d=c.title,j=c.price,m=i.useTheme();return r.jsxs(a.Container,e.__assign({theme:m},{children:[r.jsx(t.Image,{src:n,alt:d,width:"4.063rem",height:"5.375rem"},void 0),r.jsxs(a.Description,{children:[r.jsx(o.Text,{variant:"body",weight:"regular",size:"regular",testId:"search-product-title",dangerouslySetInnerHTML:{__html:d}},void 0),r.jsx(l.PriceLabel,{finalPrice:j,color:null===(u=m.colors.pallete.brickRed)||void 0===u?void 0:u.color,size:s.ComponentSize.Small},void 0)]},void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../../../../core/theme/Theme.js"),s=require("../../../../types/enums.js"),t=require("../../../atoms/Image/Image.js");require("../../../pricing/clubOffer/ClubOfferTag.js"),require("../../../pricing/discount/styled.js");var l=require("../../../pricing/price/PriceLabel.js");require("react"),require("../../../pricing/styles.js"),require("../../../atoms/PriceLabel/PriceLabel.js"),require("../../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../../atoms/HorizontalDivider/HorizontalDivider.js"),require("../../../atoms/Icon/Icon.js"),require("../../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../../atoms/Toggle/toggle.styled.js"),require("../../../tooltip/Styled.js"),require("../../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../../pricing/priceLabelV6/PriceLabelV6.styled.js");var a=require("../../../text/Text.js"),c=require("./styled.js");exports.ProductItem=function(o){var u,n=o.src,d=o.title,j=o.price,b=i.useTheme();return r.jsxs(c.Container,e.__assign({theme:b},{children:[r.jsx(t.Image,{src:n,alt:d,width:"4.063rem",height:"5.375rem"},void 0),r.jsxs(c.Description,{children:[r.jsx(a.Text,{variant:"body",weight:"regular",size:"regular",testId:"search-product-title",dangerouslySetInnerHTML:{__html:d}},void 0),r.jsx(l.PriceLabel,{finalPrice:j,color:null===(u=b.colors.pallete.brickRed)||void 0===u?void 0:u.color,size:s.ComponentSize.Small},void 0)]},void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ProductItem.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("tslib"),e=require("react/jsx-runtime"),i=require("react"),t=require("../../core/theme/Theme.js"),l=require("../../hooks/WindowDimensions.js"),n=require("../icons/index.js"),r=require("./Styled.js"),s=require("./utils.js");function c(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var d=c(i);exports.Tooltip=function(c){var a,u=c.children,h=c.position,v=c.content,p=c.elementContent,f=c.backgroundColor,x=c.showCloseIcon,g=c.align,C=void 0===g?"center":g,j=c.maxWidth,T=c.onClick,_=c.header,m=c.withArrow,b=void 0!==m&&m,w=c.closeBtnSize,y=void 0===w?.5:w,W=t.useTheme(),I=i.useState(0),k=I[0],q=I[1],S=i.createRef(),H=i.useState(0),E=H[0],M=H[1],R=i.createRef(),A=i.useState(!1),D=A[0],F=A[1],L=l.useWindowDimensions().isMobile;return i.useLayoutEffect((function(){var o=S.current;q((null==o?void 0:o.offsetWidth)||0)}),[S]),i.useLayoutEffect((function(){var o=R.current;M((null==o?void 0:o.offsetHeight)||0)}),[R]),e.jsxs(r.Wrapper,o.__assign({position:h,disableHover:D,onMouseEnter:function(){return F(D&&!1)},"data-testid":"TooltipWrapper"},{children:[e.jsx("div",o.__assign({ref:S,onClick:function(){return D&&F(!1)},onKeyDown:function(o){return"Enter"===o.key&&D&&F(!1)},role:"button",tabIndex:0},{children:u}),void 0),e.jsxs(r.TooltipContainer,o.__assign({position:h,align:C,maxWidth:j,childrenWidth:k,tooltipHeight:E,ref:R,onClick:T,"data-testid":"TooltipContainer",className:"tooltip-container ".concat(D?"hidden":""),borderColor:W.colors.shades[200].color,backgroundColor:f||W.colors.shades.white.color,withArrow:b,"data-position":h},{children:[(x||L)&&e.jsx(r.CloseToolTip,o.__assign({right:s.getCloseIconRight(h,null==_?void 0:_.iconRight),onClick:function(){return F(!0)}},{children:e.jsx(n.Icon.Actions.Close,{width:y,height:y,fill:null!==(a=null==_?void 0:_.iconFill)&&void 0!==a?a:W.colors.pallete.secondary.color},void 0)}),void 0),e.jsxs(r.ContentWrapper,o.__assign({className:"tooltip-wrapper",borderColor:W.colors.shades[200].color,backgroundColor:null!=f?f:W.colors.shades.white.color},{children:[_&&e.jsxs(r.TopSection,o.__assign({"data-testid":"TooltipHeader"},{children:[(null==_?void 0:_.Icon)&&e.jsx(r.IconContainer,{children:d.default.createElement(_.Icon,{testId:"HeaderIcon",fill:(null==_?void 0:_.iconFill)?null==_?void 0:_.iconFill:W.colors.pallete.secondary.color})},void 0),e.jsx(r.Title,o.__assign({color:(null==_?void 0:_.titleColor)?null==_?void 0:_.titleColor:W.colors.pallete.secondary.color},{children:_.title}),void 0)]}),void 0),v&&(null==v?void 0:v.text)?e.jsx(r.TooltipText,{color:(null==v?void 0:v.color)?null==v?void 0:v.color:W.colors.pallete.secondary.color,"data-testid":"TooltipText",dangerouslySetInnerHTML:{__html:v.text},maxWidth:s.getTooltipTextMaxWidth(h)},void 0):p]}),void 0)]}),void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("tslib"),e=require("react/jsx-runtime"),i=require("react"),t=require("../../core/theme/Theme.js"),r=require("../../hooks/WindowDimensions.js"),l=require("../icons/index.js"),n=require("./Styled.js"),s=require("./utils.js");function d(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var c=d(i);exports.Tooltip=function(d){var a,u=d.children,h=d.position,v=d.content,p=d.elementContent,f=d.backgroundColor,x=d.borderColor,g=d.showCloseIcon,C=d.align,j=void 0===C?"center":C,T=d.maxWidth,_=d.onClick,m=d.header,b=d.withArrow,w=void 0!==b&&b,y=d.closeBtnSize,W=void 0===y?.5:y,I=t.useTheme(),k=i.useState(0),q=k[0],S=k[1],H=i.createRef(),E=i.useState(0),M=E[0],R=E[1],A=i.createRef(),D=i.useState(!1),F=D[0],L=D[1],N=r.useWindowDimensions().isMobile;return i.useLayoutEffect((function(){var o=H.current;S((null==o?void 0:o.offsetWidth)||0)}),[H]),i.useLayoutEffect((function(){var o=A.current;R((null==o?void 0:o.offsetHeight)||0)}),[A]),e.jsxs(n.Wrapper,o.__assign({position:h,disableHover:F,onMouseEnter:function(){return L(F&&!1)},"data-testid":"TooltipWrapper"},{children:[e.jsx("div",o.__assign({ref:H,onClick:function(){return F&&L(!1)},onKeyDown:function(o){return"Enter"===o.key&&F&&L(!1)},role:"button",tabIndex:0},{children:u}),void 0),e.jsxs(n.TooltipContainer,o.__assign({position:h,align:j,maxWidth:T,childrenWidth:q,tooltipHeight:M,ref:A,onClick:_,"data-testid":"TooltipContainer",className:"tooltip-container ".concat(F?"hidden":""),borderColor:x||I.colors.shades[200].color,backgroundColor:f||I.colors.shades.white.color,withArrow:w,"data-position":h},{children:[(g||N)&&e.jsx(n.CloseToolTip,o.__assign({right:s.getCloseIconRight(h,null==m?void 0:m.iconRight),onClick:function(){return L(!0)}},{children:e.jsx(l.Icon.Actions.Close,{width:W,height:W,fill:null!==(a=null==m?void 0:m.iconFill)&&void 0!==a?a:I.colors.pallete.secondary.color},void 0)}),void 0),e.jsxs(n.ContentWrapper,o.__assign({className:"tooltip-wrapper",borderColor:x||I.colors.shades[200].color,backgroundColor:null!=f?f:I.colors.shades.white.color},{children:[m&&e.jsxs(n.TopSection,o.__assign({"data-testid":"TooltipHeader"},{children:[(null==m?void 0:m.Icon)&&e.jsx(n.IconContainer,{children:c.default.createElement(m.Icon,{testId:"HeaderIcon",fill:(null==m?void 0:m.iconFill)?null==m?void 0:m.iconFill:I.colors.pallete.secondary.color})},void 0),e.jsx(n.Title,o.__assign({color:(null==m?void 0:m.titleColor)?null==m?void 0:m.titleColor:I.colors.pallete.secondary.color},{children:m.title}),void 0)]}),void 0),v&&(null==v?void 0:v.text)?e.jsx(n.TooltipText,{color:(null==v?void 0:v.color)?null==v?void 0:v.color:I.colors.pallete.secondary.color,"data-testid":"TooltipText",dangerouslySetInnerHTML:{__html:v.text},maxWidth:s.getTooltipTextMaxWidth(h)},void 0):p]}),void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../utils/debounce/index.js"),i=function(i){var n=i.dropdownRef,o=i.isOpen,r=i.optionsCount,s=i.estimatedOptionHeight,d=void 0===s?40:s,u=i.maxVisibleOptions,a=void 0===u?5:u,c=i.threshold,p=void 0===c?20:c,v=i.debounceTime,w=void 0===v?150:v,l=e.useState({isOpenUpwards:!1,spaceAbove:0,spaceBelow:0}),f=l[0],b=l[1];return e.useEffect((function(){var e=function(){if(o&&n.current){var e=n.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,i=e.top,s=Math.min(r,a)*d+20;b({isOpenUpwards:!(t>=s+p)&&(i>=s+p||i>t),spaceAbove:i,spaceBelow:t})}};e();var i=t.debounce(e,w);return window.addEventListener("resize",i),window.addEventListener("scroll",i,!0),function(){window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0)}}),[o,n,w]),f};exports.default=i,exports.useViewportAwarePosition=i;
2
+ //# sourceMappingURL=useViewportAwarePosition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useViewportAwarePosition.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/PackSelectorV2/PackSelectoV2.js"),r=require("./components/absorbency-level/AbsorbencyLevel.js"),o=require("./components/accordion-options/AccordionOptions.js"),t=require("./components/accordion/Accordion.js"),s=require("./components/autoship/autoShip.js"),i=require("./components/autoshipV2/autoshipV2.js"),n=require("./components/before-after/BeforeAfter.js"),a=require("./components/bundle/index.js"),p=require("./components/buynowpaylater/BuyNowPayLater.js"),c=require("./components/cartProductItem/index.js"),u=require("./components/checkbox/Checkbox.js"),l=require("./components/collection/index.js"),m=require("./components/color/ColorPickerWithTooltip.js"),d=require("./components/color/MultiColorPicker.js"),x=require("./components/color/SingleColorPicker.js"),b=require("./components/cross-sell/index.js"),g=require("./components/cta/primary/ButtonPrimary.js"),P=require("./components/cta/secondary/ButtonSecondary.js"),j=require("./components/cta/secondary/ButtonSecondaryOutline.js");require("tslib"),require("@emotion/react/jsx-runtime");var f=require("./core/theme/Theme.js");require("react/jsx-runtime");var q=require("./types/enums.js");require("./components/cta/styled.js");var C=require("./components/delivery-details/DeliveryDetails.js"),y=require("./components/delivery-details/Note/Note.js"),S=require("./components/drawer/Drawer.js"),T=require("./components/dropdown-list-icons/DropdownListIcons.js"),h=require("./components/dropdown/size-dropdown/SizeDropdown.js"),V=require("./components/dropdown/variants/dialog/DropdownDialog.js"),A=require("./components/dropdown/variants/filtering/FilteringDropdown.js"),O=require("./components/dropdown/variants/simple/SimpleDropdown.js"),v=require("./components/filtering/Filters.js"),B=require("./components/filtering/Tags/Tags.js"),w=require("./components/fit-guarantee/FitGuarantee.js"),I=require("./components/fit/FitPredictor.js"),M=require("./components/gallery/ProductGallery.js"),D=require("./components/icon-button/IconButton.js"),L=require("./components/icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),G=require("./components/icons/index.js"),z=require("./components/iconsWithTitle/index.js"),k=require("./components/image-card/ImageCard.js"),R=require("./components/input/index.js"),F=require("./components/modal/Modal.js"),H=require("./components/motivator-progress-bar/MotivatorProgressBar.js"),W=require("./components/offer-banner/OfferBanner.js"),N=require("./components/order-bar/OrderBar.js"),E=require("./components/packs/selector/PackSelector.js"),U=require("./components/pagination/Pagination.js"),Q=require("./components/pagination/blogPaginator/PaginatorBlog.js"),J=require("./components/payment-methods/PaymentMethod.js"),_=require("./components/color/selector/ColorSelector.js"),K=require("./components/color/selector/PatternSelector.js"),X=require("./components/pricing/clubOffer/ClubOfferTag.js"),Y=require("./components/pricing/discount/DiscountTag.js"),Z=require("./components/pricing/price/PriceLabel.js"),$=require("./components/pricing/priceLabelV2/PriceLabelV2.js"),ee=require("./components/pricing/priceLabelV3/PriceLabelV3.js"),re=require("./components/pricing/priceLabelV5/PriceLabelV5.js"),oe=require("./components/product/order/item/SimpleOrderItem.js"),te=require("./components/progress-bar/ProgressBar.js"),se=require("./components/quantityPicker/QuantityPicker.js"),ie=require("./components/radio/RadioPrimary/radioPrimary.js"),ne=require("./components/radio/container/group.js"),ae=require("./components/radio/clubContainer/clubGroup.js"),pe=require("./components/radio/input/radio.js"),ce=require("./components/rating/Rating.js"),ue=require("./components/rating/starList/StarList.js"),le=require("./components/review-detail/ReviewDetail.js"),me=require("./components/review/Review.js"),de=require("./components/reviews-header/ReviewsHeader.js"),xe=require("./components/scroll-to-top/ScrollToTop.js"),be=require("./components/search-bar/SearchBar.js"),ge=require("./components/search-navigation/SearchNavigation.js"),Pe=require("./components/shared/card/Card.js"),je=require("./components/shared/portal/Portal.js"),fe=require("./components/shared/spacing/Spacing.js"),qe=require("./components/short-banner/ShortBanner.js"),Ce=require("./components/size-chart/SizeChart.js"),ye=require("./components/size-table/SizeTable.js"),Se=require("./components/size/guide/SizeFitGuide.js"),Te=require("./components/size/selector/SizeSelector.js"),he=require("./components/slider/SliderNavigation.js"),Ve=require("./components/strength-bars/StrengthBars.js"),Ae=require("./components/tabs/Tab.js"),Oe=require("./components/tabs/Tabs.js"),ve=require("./components/tag/variants/pdp/category/CategoryTag.js"),Be=require("./components/tag/variants/pdp/categorySquare/CategorySquareTag.js"),we=require("./components/tag/variants/pdp/season-offer/SeasonOfferTag.js"),Ie=require("./components/tag/variants/pdp/season-offer-rounded/SeasonOfferRounded.js"),Me=require("./components/text-button/TextButton.js"),De=require("./components/text/Text.js"),Le=require("./components/textWithImage/index.js"),Ge=require("./components/timer/Timer.js"),ze=require("./components/toast/Toast.js"),ke=require("./components/tooltip/Tooltip.js"),Re=require("./components/totals/index.js"),Fe=require("./components/tracking-progress-v2/TrackingProgressV2.js"),He=require("./components/tracking-progress/TrackingProgress.js"),We=require("./components/organisms/AutoshipOfferCard/AutoshipOfferCardItem.js"),Ne=require("./components/organisms/AutoshipOfferCardCta/AutoshipOfferCardItemCta.js"),Ee=require("./components/organisms/AutoshipPdpCard/AutoshipPdpCard.js"),Ue=require("./components/organisms/BasicAccordion/BasicAccordion.js"),Qe=require("./components/organisms/CartItemCard/CartItem.js"),Je=require("./components/organisms/ClubOfferSelector/clubOfferSelector.js"),_e=require("./components/organisms/ClubOfferSelector2/clubOfferSelector2.js"),Ke=require("./components/organisms/JoinClubCard/joinClubCard.js"),Xe=require("./components/organisms/OfferAtCart/OfferAtCart.js"),Ye=require("./components/organisms/OfferAtCartV2/OfferAtCartV2.js"),Ze=require("./components/organisms/OfferAtCartV3/OfferAtCartV3.js"),$e=require("./components/organisms/OfferAtCartV4/OfferAtCartV4.js"),er=require("./components/organisms/OfferAtPDP/OfferAtPDP.js");require("./components/organisms/OfferAtPDP/types.js");var rr=require("./components/organisms/ProductCard/ProductCardV1/ProductCard.js"),or=require("./components/organisms/ProductCard/ProductCardV2/ProductCardV2.js"),tr=require("./components/organisms/ProductCard/ProductCardV3/ProductCardV3.js"),sr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),ir=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js"),nr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js"),ar=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV4/ProductGalleryMobileV4.js"),pr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV5/ProductGalleryMobileV5.js"),cr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/ProductGalleryMobileV6.js"),ur=require("./components/organisms/SizeCharTable/SizeChartTableV2/SizeChartV2.js"),lr=require("./components/organisms/SizeCharTable/SizeChartTableV3/SizeChartTableV3.js"),mr=require("./components/organisms/SizeCharTable/SizeChartTableV4/SizeChartTableV4.js"),dr=require("./components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js"),xr=require("./components/organisms/TwoCtasAtCart/GreetingsCard.js"),br=require("./components/organisms/TwoCtasAtCart/TwoCtasAtCart.js"),gr=require("./components/atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js"),Pr=require("./components/atoms/HorizontalDivider/HorizontalDivider.js"),jr=require("./components/atoms/Icon/Icon.js"),fr=require("./components/atoms/Image/Image.js");require("./components/atoms/PriceLabel/PriceLabel.js"),require("./components/atoms/PriceLabelV2/PriceLabelV2.js");var qr=require("./components/atoms/Toggle/toggle.js");require("./components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("./components/molecules/OfferAtCartImage/OfferAtCartImage.styled.js");var Cr=require("./components/molecules/CouponCard/CouponCard.js"),yr=require("./components/molecules/ArrowTip/ArrowTip.js"),Sr=require("./components/molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js"),Tr=require("./components/molecules/BenefitsList/BenefitsList.js"),hr=require("./components/molecules/HurryUp/HurryUp.js"),Vr=require("./components/molecules/Spinner/Spinner.js"),Ar=require("./components/molecules/Video/Video.js"),Or=require("./components/molecules/IconsWithTitleList/IconsWithTitleList.js"),vr=require("./components/molecules/LikeButton/LikeButton.js");require("./components/molecules/ScarcityTag/ScarcityTag.styled.js");var Br=require("./components/before-after/types.js"),wr=require("@emotion/cache"),Ir=require("@emotion/styled"),Mr=require("@emotion/react"),Dr=require("./hooks/click-outside.js"),Lr=require("./hooks/WindowDimensions.js"),Gr=require("./hooks/useDeviceType/useDeviceType.js"),zr=require("./utils/buildImageUrl/buildImageUrl.js"),kr=require("./utils/common/index.js"),Rr=require("./utils/constants/offerAtCart.js"),Fr=require("./utils/debounce/index.js"),Hr=require("./utils/decimalParser/decimalParser.js"),Wr=require("./utils/formatPrice/formatPrice.js"),Nr=require("./utils/getSrcSet/getSrcSet.js"),Er=require("./utils/media.js"),Ur=require("./utils/mock-content/CancellationFlowAccordion.js"),Qr=require("./utils/simulateClick/simulateClick.js"),Jr=require("./utils/sliceString/sliceString.js"),_r=require("./utils/validations/validations.js");function Kr(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Xr=Kr(wr),Yr=Kr(Ir);exports.PackSelectorV2=e,exports.AbsorbencyLevel=r.AbsorbencyLevel,exports.AccordionOptions=o,exports.Accordion=t,exports.Autoship=s,exports.AutoshipV2=i,exports.BeforeAfterCard=n.BeforeAfterCard,exports.Bundle=a.Bundle,exports.BuyNowPayLater=p.BuyNowPayLater,exports.CartProductItem=c.CartProductItem,exports.Checkbox=u.Checkbox,exports.Collection=l.Collection,exports.ColorPickerWithTooltip=m,exports.MultiColorPicker=d,exports.SingleColorPicker=x.default,exports.CrossSell=b,exports.ButtonPrimary=g,exports.ButtonSecondary=P,exports.ButtonSecondaryOutline=j,exports.AssetsProvider=f.AssetsProvider,exports.ThemeProvider=f.ThemeProvider,exports.ThemeVariables=f.ThemeVariables,exports.useTheme=f.useTheme,exports.useThemeAssets=f.useThemeAssets,Object.defineProperty(exports,"CardSectionType",{enumerable:!0,get:function(){return q.CardSectionType}}),Object.defineProperty(exports,"ComponentPosition",{enumerable:!0,get:function(){return q.ComponentPosition}}),Object.defineProperty(exports,"ComponentSize",{enumerable:!0,get:function(){return q.ComponentSize}}),Object.defineProperty(exports,"InputValidationType",{enumerable:!0,get:function(){return q.InputValidationType}}),exports.DeliveryDetails=C.DeliveryDetails,exports.Note=y.Note,exports.Drawer=S.Drawer,exports.DropdownListIcons=T.DropdownListIcons,exports.SizeDropdown=h,exports.DropdownDialog=V,exports.FilteringDropdown=A,exports.SimpleDropdown=O,exports.Filters=v.Filters,exports.FilteringTags=B.Tags,exports.FitGuarantee=w.FitGuarantee,exports.FitPredictor=I.FitPredictor,exports.ProductGallery=M.ProductGallery,exports.IconButton=D.IconButton,exports.AmazonButton=L.AmazonButton,exports.PaypalButton=L.PaypalButton,exports.Icon=G.Icon,exports.IconsWithTitle=z.IconsWithTitle,exports.ImageCardWithDescription=k.ImageCardWithDescription,exports.Input=R.Input,exports.Modal=F.Modal,exports.Overlay=F.Overlay,exports.modalEvent=F.modalEvent,exports.useModal=F.useModal,exports.useModalEvent=F.useModalEvent,exports.MotivatorProgressBar=H.MotivatorProgressBar,exports.OfferBanner=W.OfferBanner,exports.OrderBar=N.OrderBar,exports.PackSelector=E,exports.Pagination=U.Pagination,exports.PaginatorBlog=Q.PaginatorBlog,exports.PaymentMethod=J.PaymentMethod,exports.ColorSelector=_.ColorSelector,exports.PatternSelector=K.PatternSelector,exports.ClubOfferTag=X.ClubOfferTag,exports.DiscountTag=Y.DiscountTag,exports.PriceLabel=Z.PriceLabel,exports.PriceLabelV2=$.PriceLabelV2,exports.PriceLabelV3=ee.PriceLabelV3,exports.PriceLabelV5=re.PriceLabelV5,exports.SimpleOrderItem=oe,exports.ProgressBar=te.ProgressBar,exports.QuantityPicker=se.QuantityPicker,exports.RadioPrimary=ie.RadioPrimary,exports.RadioGroupInput=ne.RadioGroupInput,exports.ClubRadioGroupInput=ae.ClubRadioGroupInput,exports.RadioInput=pe.RadioInput,exports.Rating=ce.Rating,exports.StarList=ue.StarList,exports.ReviewDetail=le,exports.Review=me,exports.ReviewsHeader=de,exports.ScrollToTop=xe.ScrollToTop,exports.SearchBar=be.SearchBar,exports.SearchNavigation=ge,exports.Card=Pe,exports.Portal=je.Portal,exports.Spacing=fe.Spacing,exports.ShortBanner=qe.ShortBanner,exports.SizeChartTable=Ce,exports.SizeTable=ye.SizeTable,exports.SizeFitGuide=Se,exports.SizeSelector=Te,exports.SliderNavigation=he,exports.StrengthBars=Ve.StrengthBars,exports.Tab=Ae,exports.Tabs=Oe,exports.CategoryTag=ve,exports.CategorySquareTag=Be,exports.SeasonOfferTag=we,exports.seasonOfferRoundedTag=Ie,exports.TextButton=Me,exports.Text=De.Text,exports.TextWithImage=Le,exports.Timer=Ge.Timer,exports.Toast=ze.Toast,exports.Tooltip=ke.Tooltip,exports.Totals=Re.Totals,exports.TrackingProgressV2=Fe,exports.TrackingProgress=He,exports.AutoshipOfferCard=We.AutoshipOfferCard,exports.AutoshipOfferCardCta=Ne.AutoshipOfferCardCta,exports.AutoshipPdpCard=Ee.AutoshipPdpCard,exports.BasicAccordion=Ue.BasicAccordion,exports.CartItemCard=Qe.CartItemCard,exports.ClubOfferSelector=Je.ClubOfferSelector,exports.ClubOfferSelector2=_e.ClubOfferSelector2,exports.JoinClubCard=Ke.JoinClubCard,exports.OfferAtCart=Xe.OfferAtCart,exports.OfferAtCartV2=Ye.OfferAtCartV2,exports.OfferAtCartV3=Ze.OfferAtCartV3,exports.OfferAtCartV4=$e.OfferAtCartV4,exports.OfferAtPDP=er.OfferAtPDP,exports.ProductCard=rr.ProductCard,exports.ProductCardV2=or.ProductCardV2,exports.ProductCardV3=tr.ProductCardV3,exports.ProductGalleryMobile=sr.ProductGalleryMobile,exports.ProductGalleryMobileV2=ir.ProductGalleryMobileV2,exports.ProductGalleryMobileV3=nr.ProductGalleryMobileV3,exports.ProductGalleryMobileV4=ar.ProductGalleryMobileV4,exports.ProductGalleryMobileV5=pr.ProductGalleryMobileV5,exports.ProductGalleryMobileV6=cr.ProductGalleryMobileV6,exports.SizeChartTableV2=ur.SizeChartTableV2,exports.SizeChartTableV3=lr.SizeChartTableV3,exports.SizeChartTableV4=mr.SizeChartTableV4,exports.SubscriptionPlanSelector=dr.SubscriptionPlanSelector,exports.GreetingsCard=xr.GreetingsCard,exports.TwoCtasAtCart=br.TwoCtasAtCart,exports.ClubPriceMemberLabel=gr.ClubPriceMemberLabel,exports.HorizontalDivider=Pr.HorizontalDivider,exports.LibIcon=jr.Icon,exports.Image=fr.Image,exports.ToggleComponent=qr.ToggleComponent,exports.CouponCard=Cr.CouponCard,exports.ArrowTip=yr.ArrowTip,exports.AutoshipFrequencyDropdown=Sr.AutoshipFrequencyDropdown,exports.BenefitsList=Tr.BenefitsList,exports.HurryUp=hr.HurryUp,exports.Spinner=Vr.Spinner,exports.Video=Ar.Video,exports.IconsWithTitleList=Or.IconsWithTitleList,exports.LikeButton=vr.LikeButton,Object.defineProperty(exports,"BeforeAfterVariant",{enumerable:!0,get:function(){return Br.BeforeAfterVariant}}),exports.componentSizeMapper=Br.componentSizeMapper,Object.defineProperty(exports,"createCache",{enumerable:!0,get:function(){return Xr.default}}),Object.defineProperty(exports,"styled",{enumerable:!0,get:function(){return Yr.default}}),Object.defineProperty(exports,"CacheProvider",{enumerable:!0,get:function(){return Mr.CacheProvider}}),Object.defineProperty(exports,"Global",{enumerable:!0,get:function(){return Mr.Global}}),Object.defineProperty(exports,"css",{enumerable:!0,get:function(){return Mr.css}}),exports.useOnClickOutside=Dr,exports.useWindowDimensions=Lr.useWindowDimensions,exports.useDeviceType=Gr,exports.buildImageUrl=zr.buildImageUrl,exports.isDangerouslySetInnerHTML=kr.isDangerouslySetInnerHTML,exports.benefits=Rr.benefits,exports.benefitsRawHtml=Rr.benefitsRawHtml,exports.benefitsRawHtmlV2=Rr.benefitsRawHtmlV2,exports.sizeOptions=Rr.sizeOptions,exports.title=Rr.title,exports.debounce=Fr.debounce,exports.decimalFormat=Hr.decimalFormat,exports.formatPrice=Wr.formatPrice,exports.getSrcSet=Nr.getSrcSet,exports.mediaQueries=Er.mediaQueries,exports.CancellationFlowAccordionContentPerPartner=Ur.CancellationFlowAccordionContentPerPartner,exports.simulateMouseClick=Qr.simulateMouseClick,exports.sliceString=Jr.sliceString,exports.isEmail=_r.isEmail,exports.isEmpty=_r.isEmpty,exports.isNumber=_r.isNumber,exports.isPhoneNumber=_r.isPhoneNumber,exports.isValidDate=_r.isValidDate;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/PackSelectorV2/PackSelectoV2.js"),r=require("./components/absorbency-level/AbsorbencyLevel.js"),o=require("./components/accordion-options/AccordionOptions.js"),t=require("./components/accordion/Accordion.js"),s=require("./components/autoship/autoShip.js"),i=require("./components/autoshipV2/autoshipV2.js"),n=require("./components/before-after/BeforeAfter.js"),a=require("./components/bundle/index.js"),p=require("./components/buynowpaylater/BuyNowPayLater.js"),c=require("./components/cartProductItem/index.js"),u=require("./components/checkbox/Checkbox.js"),l=require("./components/collection/index.js"),m=require("./components/color/ColorPickerWithTooltip.js"),d=require("./components/color/MultiColorPicker.js"),x=require("./components/color/SingleColorPicker.js"),b=require("./components/color/selector/ColorSelector.js"),P=require("./components/color/selector/PatternSelector.js"),j=require("./components/cross-sell/index.js"),g=require("./components/cta/primary/ButtonPrimary.js"),q=require("./components/cta/secondary/ButtonSecondary.js"),f=require("./components/cta/secondary/ButtonSecondaryOutline.js");require("tslib"),require("@emotion/react/jsx-runtime");var C=require("./core/theme/Theme.js");require("react/jsx-runtime");var y=require("./types/enums.js");require("./components/cta/styled.js");var S=require("./components/delivery-details/DeliveryDetails.js"),T=require("./components/delivery-details/Note/Note.js"),h=require("./components/drawer/Drawer.js"),V=require("./components/dropdown-list-icons/DropdownListIcons.js"),A=require("./components/dropdown/size-dropdown/SizeDropdown.js"),O=require("./components/dropdown/variants/dialog/DropdownDialog.js"),v=require("./components/dropdown/variants/filtering/FilteringDropdown.js"),w=require("./components/dropdown/variants/simple/SimpleDropdown.js"),B=require("./components/dropdown/variants/smart/SmartDropdown.js"),I=require("./components/filtering/Filters.js"),M=require("./components/filtering/Tags/Tags.js"),D=require("./components/fit-guarantee/FitGuarantee.js"),L=require("./components/fit/FitPredictor.js"),G=require("./components/gallery/ProductGallery.js"),z=require("./components/icon-button/IconButton.js"),k=require("./components/icon-button/amazonAndPaypal/AmazonPaypalButtons.js"),R=require("./components/icons/index.js"),F=require("./components/iconsWithTitle/index.js"),H=require("./components/image-card/ImageCard.js"),W=require("./components/input/index.js"),N=require("./components/modal/Modal.js"),E=require("./components/motivator-progress-bar/MotivatorProgressBar.js"),U=require("./components/offer-banner/OfferBanner.js"),Q=require("./components/order-bar/OrderBar.js"),J=require("./components/packs/selector/PackSelector.js"),_=require("./components/pagination/Pagination.js"),K=require("./components/pagination/blogPaginator/PaginatorBlog.js"),X=require("./components/payment-methods/PaymentMethod.js"),Y=require("./components/pricing/clubOffer/ClubOfferTag.js"),Z=require("./components/pricing/discount/DiscountTag.js"),$=require("./components/pricing/price/PriceLabel.js"),ee=require("./components/pricing/priceLabelV2/PriceLabelV2.js"),re=require("./components/pricing/priceLabelV3/PriceLabelV3.js"),oe=require("./components/pricing/priceLabelV5/PriceLabelV5.js"),te=require("./hooks/click-outside.js"),se=require("./hooks/useDeviceType/useDeviceType.js"),ie=require("./hooks/useViewportAwarePosition/useViewportAwarePosition.js"),ne=require("./hooks/WindowDimensions.js");require("./components/pricing/styles.js"),require("./components/pricing/priceLabelV6/PriceLabelV6.styled.js");var ae=require("./components/atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js"),pe=require("./components/atoms/HorizontalDivider/HorizontalDivider.js"),ce=require("./components/atoms/Icon/Icon.js"),ue=require("./components/atoms/Image/Image.js");require("./components/atoms/PriceLabel/PriceLabel.js"),require("./components/atoms/PriceLabelV2/PriceLabelV2.js");var le=require("./components/atoms/Toggle/toggle.js"),me=require("./components/tooltip/Tooltip.js"),de=require("./components/product/order/item/SimpleOrderItem.js"),xe=require("./components/progress-bar/ProgressBar.js"),be=require("./components/quantityPicker/QuantityPicker.js"),Pe=require("./components/radio/RadioPrimary/radioPrimary.js"),je=require("./components/radio/container/group.js"),ge=require("./components/radio/clubContainer/clubGroup.js"),qe=require("./components/radio/input/radio.js"),fe=require("./components/rating/Rating.js"),Ce=require("./components/rating/starList/StarList.js"),ye=require("./components/review-detail/ReviewDetail.js"),Se=require("./components/review/Review.js"),Te=require("./components/reviews-header/ReviewsHeader.js"),he=require("./components/scroll-to-top/ScrollToTop.js"),Ve=require("./components/search-bar/SearchBar.js"),Ae=require("./components/search-navigation/SearchNavigation.js"),Oe=require("./components/shared/card/Card.js"),ve=require("./components/shared/portal/Portal.js"),we=require("./components/shared/spacing/Spacing.js"),Be=require("./components/short-banner/ShortBanner.js"),Ie=require("./components/size-chart/SizeChart.js"),Me=require("./components/size-table/SizeTable.js"),De=require("./components/size/guide/SizeFitGuide.js"),Le=require("./components/size/selector/SizeSelector.js"),Ge=require("./components/slider/SliderNavigation.js"),ze=require("./components/strength-bars/StrengthBars.js"),ke=require("./components/tabs/Tab.js"),Re=require("./components/tabs/Tabs.js"),Fe=require("./components/tag/variants/pdp/category/CategoryTag.js"),He=require("./components/tag/variants/pdp/categorySquare/CategorySquareTag.js"),We=require("./components/tag/variants/pdp/season-offer/SeasonOfferTag.js"),Ne=require("./components/tag/variants/pdp/season-offer-rounded/SeasonOfferRounded.js"),Ee=require("./components/text-button/TextButton.js"),Ue=require("./components/text/Text.js"),Qe=require("./components/textWithImage/index.js"),Je=require("./components/timer/Timer.js"),_e=require("./components/toast/Toast.js"),Ke=require("./components/totals/index.js"),Xe=require("./components/tracking-progress-v2/TrackingProgressV2.js"),Ye=require("./components/tracking-progress/TrackingProgress.js"),Ze=require("./components/organisms/AutoshipOfferCard/AutoshipOfferCardItem.js"),$e=require("./components/organisms/AutoshipOfferCardCta/AutoshipOfferCardItemCta.js"),er=require("./components/organisms/AutoshipPdpCard/AutoshipPdpCard.js"),rr=require("./components/organisms/BasicAccordion/BasicAccordion.js"),or=require("./components/organisms/CartItemCard/CartItem.js"),tr=require("./components/organisms/ClubOfferSelector/clubOfferSelector.js"),sr=require("./components/organisms/ClubOfferSelector2/clubOfferSelector2.js"),ir=require("./components/organisms/JoinClubCard/joinClubCard.js"),nr=require("./components/organisms/OfferAtCart/OfferAtCart.js"),ar=require("./components/organisms/OfferAtCartV2/OfferAtCartV2.js"),pr=require("./components/organisms/OfferAtCartV3/OfferAtCartV3.js"),cr=require("./components/organisms/OfferAtCartV4/OfferAtCartV4.js"),ur=require("./components/organisms/OfferAtPDP/OfferAtPDP.js");require("./components/organisms/OfferAtPDP/types.js");var lr=require("./components/organisms/ProductCard/ProductCardV1/ProductCard.js"),mr=require("./components/organisms/ProductCard/ProductCardV2/ProductCardV2.js"),dr=require("./components/organisms/ProductCard/ProductCardV3/ProductCardV3.js"),xr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV1/ProductGalleryMobile.js"),br=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV2/ProductGalleryMobileV2.js"),Pr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV3/ProductGalleryMobileV3.js"),jr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV4/ProductGalleryMobileV4.js"),gr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV5/ProductGalleryMobileV5.js"),qr=require("./components/organisms/ProductGalleryMobile/ProductGalleryMobileV6/ProductGalleryMobileV6.js"),fr=require("./components/organisms/SizeCharTable/SizeChartTableV2/SizeChartV2.js"),Cr=require("./components/organisms/SizeCharTable/SizeChartTableV3/SizeChartTableV3.js"),yr=require("./components/organisms/SizeCharTable/SizeChartTableV4/SizeChartTableV4.js"),Sr=require("./components/organisms/SubscriptionPlanSelector/SubscriptionPlanSelector.js"),Tr=require("./components/organisms/TwoCtasAtCart/GreetingsCard.js"),hr=require("./components/organisms/TwoCtasAtCart/TwoCtasAtCart.js");require("./components/molecules/OfferAtCartBenefits/OfferAtCartBenefits.styled.js"),require("./components/molecules/OfferAtCartImage/OfferAtCartImage.styled.js");var Vr=require("./components/molecules/CouponCard/CouponCard.js"),Ar=require("./components/molecules/ArrowTip/ArrowTip.js"),Or=require("./components/molecules/AutoshipFrequencyDropdown/AutoshipFrequencyDropdown.js"),vr=require("./components/molecules/BenefitsList/BenefitsList.js"),wr=require("./components/molecules/HurryUp/HurryUp.js"),Br=require("./components/molecules/Spinner/Spinner.js"),Ir=require("./components/molecules/Video/Video.js"),Mr=require("./components/molecules/IconsWithTitleList/IconsWithTitleList.js"),Dr=require("./components/molecules/LikeButton/LikeButton.js");require("./components/molecules/ScarcityTag/ScarcityTag.styled.js");var Lr=require("./components/before-after/types.js"),Gr=require("@emotion/cache"),zr=require("@emotion/styled"),kr=require("@emotion/react"),Rr=require("./utils/buildImageUrl/buildImageUrl.js"),Fr=require("./utils/common/index.js"),Hr=require("./utils/constants/offerAtCart.js"),Wr=require("./utils/debounce/index.js"),Nr=require("./utils/decimalParser/decimalParser.js"),Er=require("./utils/formatPrice/formatPrice.js"),Ur=require("./utils/getSrcSet/getSrcSet.js"),Qr=require("./utils/media.js"),Jr=require("./utils/mock-content/CancellationFlowAccordion.js"),_r=require("./utils/simulateClick/simulateClick.js"),Kr=require("./utils/sliceString/sliceString.js"),Xr=require("./utils/validations/validations.js");function Yr(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Zr=Yr(Gr),$r=Yr(zr);exports.PackSelectorV2=e,exports.AbsorbencyLevel=r.AbsorbencyLevel,exports.AccordionOptions=o,exports.Accordion=t,exports.Autoship=s,exports.AutoshipV2=i,exports.BeforeAfterCard=n.BeforeAfterCard,exports.Bundle=a.Bundle,exports.BuyNowPayLater=p.BuyNowPayLater,exports.CartProductItem=c.CartProductItem,exports.Checkbox=u.Checkbox,exports.Collection=l.Collection,exports.ColorPickerWithTooltip=m,exports.MultiColorPicker=d,exports.SingleColorPicker=x.default,exports.ColorSelector=b.ColorSelector,exports.PatternSelector=P.PatternSelector,exports.CrossSell=j,exports.ButtonPrimary=g,exports.ButtonSecondary=q,exports.ButtonSecondaryOutline=f,exports.AssetsProvider=C.AssetsProvider,exports.ThemeProvider=C.ThemeProvider,exports.ThemeVariables=C.ThemeVariables,exports.useTheme=C.useTheme,exports.useThemeAssets=C.useThemeAssets,Object.defineProperty(exports,"CardSectionType",{enumerable:!0,get:function(){return y.CardSectionType}}),Object.defineProperty(exports,"ComponentPosition",{enumerable:!0,get:function(){return y.ComponentPosition}}),Object.defineProperty(exports,"ComponentSize",{enumerable:!0,get:function(){return y.ComponentSize}}),Object.defineProperty(exports,"InputValidationType",{enumerable:!0,get:function(){return y.InputValidationType}}),exports.DeliveryDetails=S.DeliveryDetails,exports.Note=T.Note,exports.Drawer=h.Drawer,exports.DropdownListIcons=V.DropdownListIcons,exports.SizeDropdown=A,exports.DropdownDialog=O,exports.FilteringDropdown=v,exports.SimpleDropdown=w,exports.SmartDropdown=B,exports.Filters=I.Filters,exports.FilteringTags=M.Tags,exports.FitGuarantee=D.FitGuarantee,exports.FitPredictor=L.FitPredictor,exports.ProductGallery=G.ProductGallery,exports.IconButton=z.IconButton,exports.AmazonButton=k.AmazonButton,exports.PaypalButton=k.PaypalButton,exports.Icon=R.Icon,exports.IconsWithTitle=F.IconsWithTitle,exports.ImageCardWithDescription=H.ImageCardWithDescription,exports.Input=W.Input,exports.Modal=N.Modal,exports.Overlay=N.Overlay,exports.modalEvent=N.modalEvent,exports.useModal=N.useModal,exports.useModalEvent=N.useModalEvent,exports.MotivatorProgressBar=E.MotivatorProgressBar,exports.OfferBanner=U.OfferBanner,exports.OrderBar=Q.OrderBar,exports.PackSelector=J,exports.Pagination=_.Pagination,exports.PaginatorBlog=K.PaginatorBlog,exports.PaymentMethod=X.PaymentMethod,exports.ClubOfferTag=Y.ClubOfferTag,exports.DiscountTag=Z.DiscountTag,exports.PriceLabel=$.PriceLabel,exports.PriceLabelV2=ee.PriceLabelV2,exports.PriceLabelV3=re.PriceLabelV3,exports.PriceLabelV5=oe.PriceLabelV5,exports.useOnClickOutside=te,exports.useDeviceType=se,exports.useViewportAwarePosition=ie.useViewportAwarePosition,exports.useWindowDimensions=ne.useWindowDimensions,exports.ClubPriceMemberLabel=ae.ClubPriceMemberLabel,exports.HorizontalDivider=pe.HorizontalDivider,exports.LibIcon=ce.Icon,exports.Image=ue.Image,exports.ToggleComponent=le.ToggleComponent,exports.Tooltip=me.Tooltip,exports.SimpleOrderItem=de,exports.ProgressBar=xe.ProgressBar,exports.QuantityPicker=be.QuantityPicker,exports.RadioPrimary=Pe.RadioPrimary,exports.RadioGroupInput=je.RadioGroupInput,exports.ClubRadioGroupInput=ge.ClubRadioGroupInput,exports.RadioInput=qe.RadioInput,exports.Rating=fe.Rating,exports.StarList=Ce.StarList,exports.ReviewDetail=ye,exports.Review=Se,exports.ReviewsHeader=Te,exports.ScrollToTop=he.ScrollToTop,exports.SearchBar=Ve.SearchBar,exports.SearchNavigation=Ae,exports.Card=Oe,exports.Portal=ve.Portal,exports.Spacing=we.Spacing,exports.ShortBanner=Be.ShortBanner,exports.SizeChartTable=Ie,exports.SizeTable=Me.SizeTable,exports.SizeFitGuide=De,exports.SizeSelector=Le,exports.SliderNavigation=Ge,exports.StrengthBars=ze.StrengthBars,exports.Tab=ke,exports.Tabs=Re,exports.CategoryTag=Fe,exports.CategorySquareTag=He,exports.SeasonOfferTag=We,exports.seasonOfferRoundedTag=Ne,exports.TextButton=Ee,exports.Text=Ue.Text,exports.TextWithImage=Qe,exports.Timer=Je.Timer,exports.Toast=_e.Toast,exports.Totals=Ke.Totals,exports.TrackingProgressV2=Xe,exports.TrackingProgress=Ye,exports.AutoshipOfferCard=Ze.AutoshipOfferCard,exports.AutoshipOfferCardCta=$e.AutoshipOfferCardCta,exports.AutoshipPdpCard=er.AutoshipPdpCard,exports.BasicAccordion=rr.BasicAccordion,exports.CartItemCard=or.CartItemCard,exports.ClubOfferSelector=tr.ClubOfferSelector,exports.ClubOfferSelector2=sr.ClubOfferSelector2,exports.JoinClubCard=ir.JoinClubCard,exports.OfferAtCart=nr.OfferAtCart,exports.OfferAtCartV2=ar.OfferAtCartV2,exports.OfferAtCartV3=pr.OfferAtCartV3,exports.OfferAtCartV4=cr.OfferAtCartV4,exports.OfferAtPDP=ur.OfferAtPDP,exports.ProductCard=lr.ProductCard,exports.ProductCardV2=mr.ProductCardV2,exports.ProductCardV3=dr.ProductCardV3,exports.ProductGalleryMobile=xr.ProductGalleryMobile,exports.ProductGalleryMobileV2=br.ProductGalleryMobileV2,exports.ProductGalleryMobileV3=Pr.ProductGalleryMobileV3,exports.ProductGalleryMobileV4=jr.ProductGalleryMobileV4,exports.ProductGalleryMobileV5=gr.ProductGalleryMobileV5,exports.ProductGalleryMobileV6=qr.ProductGalleryMobileV6,exports.SizeChartTableV2=fr.SizeChartTableV2,exports.SizeChartTableV3=Cr.SizeChartTableV3,exports.SizeChartTableV4=yr.SizeChartTableV4,exports.SubscriptionPlanSelector=Sr.SubscriptionPlanSelector,exports.GreetingsCard=Tr.GreetingsCard,exports.TwoCtasAtCart=hr.TwoCtasAtCart,exports.CouponCard=Vr.CouponCard,exports.ArrowTip=Ar.ArrowTip,exports.AutoshipFrequencyDropdown=Or.AutoshipFrequencyDropdown,exports.BenefitsList=vr.BenefitsList,exports.HurryUp=wr.HurryUp,exports.Spinner=Br.Spinner,exports.Video=Ir.Video,exports.IconsWithTitleList=Mr.IconsWithTitleList,exports.LikeButton=Dr.LikeButton,Object.defineProperty(exports,"BeforeAfterVariant",{enumerable:!0,get:function(){return Lr.BeforeAfterVariant}}),exports.componentSizeMapper=Lr.componentSizeMapper,Object.defineProperty(exports,"createCache",{enumerable:!0,get:function(){return Zr.default}}),Object.defineProperty(exports,"styled",{enumerable:!0,get:function(){return $r.default}}),Object.defineProperty(exports,"CacheProvider",{enumerable:!0,get:function(){return kr.CacheProvider}}),Object.defineProperty(exports,"Global",{enumerable:!0,get:function(){return kr.Global}}),Object.defineProperty(exports,"css",{enumerable:!0,get:function(){return kr.css}}),exports.buildImageUrl=Rr.buildImageUrl,exports.isDangerouslySetInnerHTML=Fr.isDangerouslySetInnerHTML,exports.benefits=Hr.benefits,exports.benefitsRawHtml=Hr.benefitsRawHtml,exports.benefitsRawHtmlV2=Hr.benefitsRawHtmlV2,exports.sizeOptions=Hr.sizeOptions,exports.title=Hr.title,exports.debounce=Wr.debounce,exports.decimalFormat=Nr.decimalFormat,exports.formatPrice=Er.formatPrice,exports.getSrcSet=Ur.getSrcSet,exports.mediaQueries=Qr.mediaQueries,exports.CancellationFlowAccordionContentPerPartner=Jr.CancellationFlowAccordionContentPerPartner,exports.simulateMouseClick=_r.simulateMouseClick,exports.sliceString=Kr.sliceString,exports.isEmail=Xr.isEmail,exports.isEmpty=Xr.isEmpty,exports.isNumber=Xr.isNumber,exports.isPhoneNumber=Xr.isPhoneNumber,exports.isValidDate=Xr.isValidDate;
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "7.6.0",
6
+ "version": "7.7.0",
7
7
  "private": false,
8
8
  "main": "build/lib/index.js",
9
9
  "style": "build/es/index.css",