1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["cozy_desktop_components_productV2_main_ProductContainer_tsx"],{
1"./cozy/data/selectors/PromotionSelectors.tsx":function(e,t,o){"use strict";o.d(t,{uG:function(){return i},NU:function(){return s},qz:function(){return r},Yk:function(){return c},v9:function(){return a},A2:function(){return d},$f:function(){return l},nz:function(){return p},TS:function(){return u},zs:function(){return h},f:function(){return x}});var n=o("./cozy/data/selectors/DataSelectors.tsx");const i=e=>(0,n.Bw)(e).promotionType,s=e=>null!=i(e),r=e=>(0,n.Bw)(e).feedPromotionSpec,c=e=>(0,n.Bw)(e).productPromotionSpec,a=e=>(0,n.Bw)(e).productBannerPromotionSpec,d=e=>(0,n.Bw)(e).splashPromotionSpec,l=e=>Boolean((0,n.Bw)(e).hasAttemptedToLoad),p=e=>{const{rotatingFeedBanners:t}=(0,n.Bw)(e);return t},u=e=>{const t=p(e);return Boolean(t&&t.length>1)},h=e=>(0,n.Bw)(e).fpiCartBannerSpec,x=e=>(0,n.Bw)(e).hasTopPromoModuleSpecs},
1"./cozy/desktop/components/productV2/main/ProductContainer.tsx":function(e,t,o){"use strict";o.d(t,{Z:function(){return go}}),o("./node_modules/core-js/modules/web.dom-collections.iterator.js");var n=o("./node_modules/react/index.js"),i=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/react-router/esm/react-router.js"),r=o("./cozy/coco/components/DotLoader/DotLoader.tsx"),c=o("./cozy/utils/logger/AnalyticsUtil.tsx"),a=o("./cozy/utils/WithRouter.tsx"),d=o("./cozy/utils/URL.tsx"),l=o("./cozy/utils/ads/AdsSource.tsx"),p=o("./cozy/utils/seo/SEOUtils.tsx"),u=o("./cozy/utils/Cookie.tsx"),h=o("./cozy/utils/hooks/UseCallbackOnResize.tsx"),x=o("./cozy/utils/ClientExperimentUtils.tsx"),m=o("./cozy/data/selectors/ProductSelectors.tsx"),g=o("./cozy/data/selectors/ProductDetailPageSelectors.tsx"),_=o("./cozy/data/selectors/BrowserSelectors.tsx"),S=o("./cozy/data/selectors/ProductRatingSelectors.tsx"),y=o("./cozy/data/selectors/UserSelectors.tsx"),C=o("./cozy/data/selectors/AppSelectors.tsx"),f=o("./cozy/data/selectors/ExperimentsSelectors.tsx"),w=o("./cozy/coco/components/DesignSpec/AgeModalSpec.tsx"),R=o("./cozy/data/actions/ProductActions.tsx"),P=o("./cozy/data/actions/UserActions.tsx"),j=o("./cozy/data/actions/ProductDetailPageActions.tsx"),I=o("./cozy/desktop/styles/productV2/ProductContainer.tsx"),T=o("./cozy/desktop/components/productV2/imageSection/ProductImageContainer.tsx"),b=o("./cozy/desktop/components/productV2/purchaseSection/PurchaseContainer.tsx"),v=o("./cozy/coco/components/ProductBadge/ProductBadge.tsx"),E=o("./node_modules/styled-components/dist/styled-components.browser.esm.js"),B=o("./cozy/shared/styles/Mixins.tsx");const D=E.ZP.div.withConfig({displayName:"ProductBannerContainer__Wrapper",componentId:"sc-1quqik6-0"})(["width:100%;padding:0 16px 32px 16px;border-top:3px solid ",";display:flex;flex-direction:column;"],(e=>{let{theme:t}=e;return t.Grey6})),z=E.ZP.div.withConfig({displayName:"ProductBannerContainer__Banner",componentId:"sc-1quqik6-1"})(["display:flex;margin-top:32px;"]),O=E.ZP.div.withConfig({displayName:"ProductBannerContainer__BannerBadgeWrapper",componentId:"sc-1quqik6-2"})(["width:20px;flex-shrink:0;",";"],B.qO),L=E.ZP.div.withConfig({displayName:"ProductBannerContainer__BannerTitleWrapper",componentId:"sc-1quqik6-3"})(["margin-left:12px;"]),A=E.ZP.div.withConfig({displayName:"ProductBannerContainer__BannerTitle",componentId:"sc-1quqik6-4"})(["",";line-height:19px;"],B.zb),k=E.ZP.div.withConfig({displayName:"ProductBannerContainer__BannerMessage",componentId:"sc-1quqik6-5"})(["",";line-height:16px;"],B.Mc);var M=o("./node_modules/react/jsx-runtime.js"),Z=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{productBadges:(0,m.UeI)(e,o)}}))((e=>{let{productBadges:t}=e;return t&&0!==t.length?(0,M.jsx)(D,{children:t.map((e=>(0,M.jsxs)(z,{children:[(0,M.jsx)(O,{children:(0,M.jsx)(v.Z,{badgeType:e.badge_type})}),(0,M.jsxs)(L,{children:[(0,M.jsx)(A,{children:e.badge_title}),(0,M.jsx)(k,{children:e.badge_message})]})]},e.badge_type)))}):null})),U=o("./node_modules/react-router-dom/esm/react-router-dom.js"),N=o("./cozy/data/constants/ProductConstants.tsx"),F=o("./cozy/utils/i18n.tsx"),W=o("./cozy/utils/hooks/UseEventListener.tsx"),H=o("./cozy/utils/Device.tsx"),V=o("./cozy/utils/logger/ReviewConsumptionLogger.tsx"),G=o("./cozy/utils/hooks/UseModal.tsx"),q=o("./cozy/shared/components/product/reviews/ProductReview.tsx"),K=o("./cozy/shared/components/RatioBar.tsx"),Y=o("./cozy/desktop/styles/productV2/ProductReviewContainer.tsx"),$=o("./cozy/shared/styles/product/Reviews.tsx"),Q=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{sizeBars:(0,m.ZgW)(e,o),totalRatings:(0,m.DOk)(e,o)}}))((e=>{let{sizeBars:t,totalRatings:o}=e;return t?(0,M.jsxs)(Y.zQ,{children:[t.map((e=>{let{name:t,ratio:o}=e;return(0,M.jsxs)(Y.PD,{children:[(0,M.jsx)(Y.PN,{children:t}),(0,M.jsx)(K.Z,{ratio:parseFloat(o)})]},t)})),o&&(0,M.jsx)($.Cp,{children:(0,F.bk)(o,"Based on 1 Rating","Based on {%1= number of ratings} Ratings")})]}):null})),X=o("./cozy/desktop/components/productV2/reviewSection/ProductReviewModal.tsx"),J=o("./cozy/data/services/AnalyticsService.tsx"),ee=o("./cozy/routes/RouteGenerators.tsx"),te=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{dimensionTypes:(0,m.Fdo)(e,o),topRatings:(0,m.or)(e,o)}}))((e=>{let{dimensionTypes:t,topRatings:o,pid:i,setOneTimeUGCAnalytic:r,hideViewMoreButton:c,"data-testid":a,isInProjectElephantDesktopShowBucket:p}=e;const u=(0,s.k6)(),h=(0,s.TH)(),x=(0,H.EF)(h),m=(0,n.useRef)(null),[g,_]=(0,n.use
1State)(!1),[S,y]=(0,n.useState)(-1),[C,f,w]=(0,G.Z)();(0,V.aF)();const R=()=>{if(!m||!m.current)return!1;const e=m.current.getBoundingClientRect(),t=e.top,o=e.bottom;return t<window.innerHeight&&o>=0},P=()=>{(0,J.y)("IMPRESSION_REVIEW_PREVIEW_PRODUCT_PAGE"),_(!0)};(0,W.Z)("scroll",(()=>{if(g)return;const e=-1!==S;R()&&!e?(()=>{{const e=window.setTimeout(P,N.dS);y(e)}})():!R()&&e&&(window.clearTimeout(S),y(-1))})),(0,n.useEffect)((()=>{(0,J.y)("IMPRESSION_TOP_PRODUCT_REVIEWS",{product_rating_ids:o&&o.map((e=>e.id)).join(",")})}),[]);const j=(null==t?void 0:t.includes(N.Dv.SIZE))&&(0,M.jsx)(Q,{pid:i}),I=null==o?void 0:o.map((e=>{let{id:t,user:o,rating:n,time:i,comment:s,author_uploads:r,author_reviews:c}=e;return(0,M.jsx)(q.Z,{ratingID:t,profilePicture:o.profile_pic_small,name:o.short_name,ratingScore:n,displayDate:i,comment:s,isWishStar:o.is_wish_star,authorReviews:c,authorUploads:r,signupDate:o.signup_date,countryCode:o.country_code,uid:o.id,reviewPadding:"0"},t)})),T=(0,M.jsx)(U.rU,{to:"".concat((0,ee.pK)(i)).concat(h.search),children:(0,M.jsx)(Y.sn,{children:(0,F.ag)("Show More")})}),b=(0,M.jsx)(Y.sn,{"data-testid":a,onClick:()=>{(0,J.y)("COZY__CLICK_PRODUCT_REVIEWS_SHOW_MORE"),r("CLICK_PRODUCT_RATING_TAB"),f(),(0,l.I)(h)&&(0,d.EE)(u)},children:(0,F.ag)("Show More")}),v=(0,M.jsxs)(Y.h4,{children:[(0,M.jsx)(Y.Dx,{hasLargeRootFont:p,children:(0,F.ag)("Customer Reviews")}),!c&&x&&T,!c&&!x&&b]});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(Y.im,{ref:m,children:[v,j,I]}),C&&(0,M.jsx)(X.Z,{onClose:w,pid:i})]})})),oe=o("./cozy/shared/components/product/productUGCCarousel/ProductUGCRatingsFeedCarousel.tsx"),ne=o("./node_modules/lodash/round.js"),ie=o.n(ne),se=o("./cozy/coco/components/RatingStars/RatingStars.tsx"),re=o("./cozy/data/selectors/MerchantRatingSelectors.tsx");const ce=E.ZP.div.withConfig({displayName:"StoreReviewContainer__Wrapper",componentId:"sc-1tlitaz-0"})(["display:flex;width:100%;border-top:3px solid ",";align-items:center;flex-direction:column;padding:32px 16px;font-size:14px;color:",";"],(e=>{let{theme:t}=e;return t.Grey6}),(e=>{let{theme:t}=e;return t.Grey1})),ae=E.ZP.div.withConfig({displayName:"StoreReviewContainer__TitleSection",componentId:"sc-1tlitaz-1"})(["display:flex;width:100%;"]),de=E.ZP.h2.withConfig({displayName:"StoreReviewContainer__Title",componentId:"sc-1tlitaz-2"})(["flex:1;",";letter-spacing:0.4px;color:",";"],(e=>{let{hasRoothasLargeRootFontont:t}=e;return t?" @media(min-width: 1281px) { ".concat(B.ud," }; \n @media(min-width: 801px) and (max-width: 1280px) { ").concat(B.kh," };\n @media(max-width: 800px) { ").concat(B.EQ," } "):B.Nq}),(e=>{let{theme:t}=e;return t.Grey1})),le=(0,E.ZP)(U.rU).withConfig({displayName:"StoreReviewContainer__DetailText",componentId:"sc-1tlitaz-3"})(["cursor:pointer;",";letter-spacing:0.3px;color:",";"],B.fb,(e=>{let{theme:t}=e;return t.primaryColor})),pe=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreSection",componentId:"sc-1tlitaz-4"})(["",";width:100%;"],B.IF),ue=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreInfoRow",componentId:"sc-1tlitaz-5"})(["",";word-break:break-word;"],B.gq),he=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreInfo",componentId:"sc-1tlitaz-6"})(["display:flex;margin-top:16px;"]),xe=E.ZP.img.withConfig({displayName:"StoreReviewContainer__StorePicture",componentId:"sc-1tlitaz-7"})(["width:40px;height:40px;"]),me=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreDescription",componentId:"sc-1tlitaz-8"})(["display:flex;flex-direction:column;margin-left:16px;"]),ge=(0,E.ZP)(U.rU).withConfig({displayName:"StoreReviewContainer__StoreNameLink",componentId:"sc-1tlitaz-9"})([""," margin-top:3px;color:",";:hover{text-decoration:underline;}"],(e=>{let{hasRootFont:t}=e;return t?B.EQ:B.nf}),(e=>{let{theme:t}=e;return t.Grey1})),_e=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreRatings",componentId:"sc-1tlitaz-10"})(["display:flex;"," flex-wrap:wrap;"],(e=>{let{hasMarginTop:t}=e;return t&&"margin-top: 2px;"})),Se=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreRatingScore",componentId:"sc-1tlitaz-11"})([""," margin-right:4px;height:17px;align-self:center;"],(e=>{let{hasRootFont:t}=e;return t?B.ED:"".concat(B.nf,"; margin-top: 3px;")})),ye=E.ZP.div.withConfig({displayName:"StoreReviewContainer__StoreTotalRating",componentId:"sc-1tlitaz-12"})(["cursor:pointer;",";margin-left:5px;height:17px;color:",";"],(e=>{let{hasRootFont:t}=e;return t?"".concat(B.Dd,"; margin-top: 4px;"):"".concat(B.Mc,"; margin-top: 3px;")}),(e=>{let{theme:t}=e;return t.primaryColor}));var Ce=o("./cozy/desktop/styles/authentication/AuthenticationModal.tsx"),fe=o("./cozy/shared/styles/merchant/BadgedMerchantName.tsx"),we=o("./cozy/shared/components/hoc/WithModalHOC.tsx"),Re=o("./cozy/shared/components/merchant/ContactStoreButton.tsx"),Pe=o("./cozy/desktop/components/productV2/reviewSection/StoreReviewModal.tsx"),je=o("./cozy/shared/assets/icons/AllStarShipperIcon.tsx");const Ie=E.ZP.div.withConfig({displayName:"StarBadgeContainer__Wrapper",componentId:"sc-12v6yh2-0"})(["display:flex;margin-top:16px;height:34px;width:50%;"]),Te=E.ZP.div.withConfig({displayName:"StarBadgeContainer__AllStarBadgeStyle",componentId:"sc-12v6yh2-1"})(["width:24px;height:34px;"]).withComponent(je.Z),be=E.ZP.div.withConfig({displayName:"StarBadgeContainer__AllStarDescription",componentId:"sc-12v6yh2-2"})(["display:flex;flex-direction:column;justify-content:space-between;margin-left:16px;color:",";"],(e=>{let{theme:t}=e;return t.wishDarkYellow})),ve=E.ZP.div.withConfig({displayName:"StarBadgeContainer__AllStarTitle",componentId:"sc-12v6yh2-3"})(["",""],B.nf),Ee=E.ZP.div.withConfig({displayName:"StarBadgeContainer__AllStarDetailText",componentId:"sc-12v6yh2-4"})([""]);var Be=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{merchantBadge:(0,m.V3b)(e,o)}}))((e=>{let{merchantBadge:t}=e;return t&&(0,M.jsxs)(Ie,{children:[(0,M.jsx)(Te,{}),(0,M.jsxs)(be,{children:[(0,M.jsx)(ve,{children:(0,F.ag)("All-star Shipper")}),(0,M.jsx)(Ee,{children:(0,F.ag)("Consistent on-time deliveries")})]})]})})),De=o("./cozy/shared/components/product/merchantOfRecord/MerchantOfRecordContainer.tsx"),ze=o("./cozy/shared/components/wishSellerStandards/PremierMerchantBadgeBanner.tsx");class Oe extends n.Component{constructor(){var e,t;super(...arguments),t=()=>{const{history:e,location:t}=this.props;
1(0,J.y)("COZY__CLICK_PRODUCT_STORE_RATINGS"),this.props.setOneTimeUGCAnalytic("CLICK_STORE_RATING_TAB"),this.props.openModal(),(0,l.I)(t)&&(0,d.EE)(e)},(e="onClickStoreRatings")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t}render(){const{pid:e,mid:t,vid:o,browserHeight:n,storePicture:i,storeName:s,isModalShown:c,closeModal:a,ratingScore:d,ratingCount:l,isMerchantActive:p,productMerchantOfRecordLabel:u,isEUCountry:h,merchantBadgeURL:m,merchantBadgeInfoSpec:g,isInformActEnabled:_}=this.props;if(!s)return(0,M.jsx)(Ce.i,{browserHeight:n,children:(0,M.jsx)(r.Z,{})});const S=(0,x.fU)();return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(ce,{children:[(0,M.jsxs)(ae,{children:[u?(0,M.jsx)(de,{hasRoothasLargeRootFontont:S,children:u}):(0,M.jsx)(de,{hasRoothasLargeRootFontont:S,children:(0,F.ag)("Sold By")}),(0,M.jsx)(le,{to:(0,ee.oW)(t),onClick:()=>{(0,J.y)("CLICK_WEB_VIEW_STORE_BUTTON_IN_SOLD_BY")},children:_?(0,F.et)("Button on PDP to navigate to merchant info page","Merchant info"):(0,F.ag)("View store")})]}),(0,M.jsxs)(pe,{children:[(0,M.jsxs)(ue,{children:[(0,M.jsxs)(he,{children:[(0,M.jsx)(xe,{src:i,alt:s}),(0,M.jsxs)(me,{children:[(0,M.jsxs)(fe.N,{children:[(0,M.jsx)(ge,{to:(0,ee.oW)(t),onClick:()=>{(0,J.y)("CLICK_WEB_MSITE_PDP_MERCHANT_NAME")},hasRootFont:S,children:s}),m&&(0,M.jsx)(fe.m,{src:m,height:"18px",width:"18px"})]}),l>0?(0,M.jsxs)(_e,{hasMarginTop:S,onClick:this.onClickStoreRatings,children:[(0,M.jsx)(Se,{hasRootFont:S,children:ie()(d,1).toLocaleString("en",{useGrouping:!1,minimumFractionDigits:1})}),(0,M.jsx)(se.Z,{ratingScore:d,overrideStyle:{margin:"6px 3px 5px 0",...S?{width:"16px",height:"15px"}:{width:"13px",height:"12px"}}}),(0,M.jsx)(ye,{hasRootFont:S,children:"(".concat(l,")")})]}):(0,M.jsxs)(Y.R$,{overrideMarginTop:"4px",children:[(0,M.jsx)(Y.PS,{children:(0,F.et)("A badge on a product page indicating that merchant is too new to have reviews","New")}),(0,M.jsx)(Y.xx,{children:(0,F.ag)("No merchant ratings yet")})]}),(0,M.jsx)(De.Z,{pid:e})]})]}),(0,M.jsx)(Be,{pid:e})]}),(0,M.jsx)(ze.Z,{badgeInfoSpec:g})]}),(_||h)&&p&&(0,M.jsx)(Re.Z,{merchantID:t,productID:e,variationID:o,overrideStyle:{width:"630px",marginTop:"20px"},onClick:()=>{(0,J.y)("CLICK_PRODUCT_PAGE_CONTACT_STORE_BUTTON")}})]}),c&&(0,M.jsx)(Pe.Z,{onClose:a,mid:t,pid:e})]})}}var Le=(0,i.$j)(((e,t)=>{let{pid:o}=t;const n=(0,m.Crj)(e,o);return{mid:n,ratingSpread:(0,re.Ce)(e,n),storePicture:(0,re.E5)(e,n),storeName:(0,re.We)(e,n),ratingScore:(0,re.Bc)(e,n),ratingCount:(0,re.AO)(e,n),isMerchantActive:(0,re.SS)(e,n),productMerchantOfRecordLabel:(0,m.XSC)(e,o),browserHeight:(0,_.Cr)(e),isEUCountry:(0,y.HM)(e),merchantBadgeURL:(0,m.YK6)(e,o),merchantBadgeInfoSpec:(0,m.uU6)(e,o),isInformActEnabled:(0,f.XE)(e)}}))((0,a.oc)((0,a.VC)((0,we.Z)(Oe)))),Ae=o("./cozy/desktop/styles/productV2/ProductDescriptionContainer.tsx"),ke=o("./cozy/shared/components/product/Prop65CollapsibleWarning.tsx");function Me(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class Ze extends n.Component{constructor(e){super(e),Me(this,"descriptionRef",void 0),Me(this,"onClickShowMore",(()=>{(0,J.y)("COZY__CLICK_PRODUCT_DESCRIPTION_SHOW_MORE")})),Me(this,"onToggleShowDescription",(()=>{(0,J.y)("COZY__CLICK_PRODUCT_DESCRIPTION_SHOW_MORE");const{history:e,location:t}=this.props;if((0,l.I)(t)&&(0,d.EE)(e),this.descriptionRef&&this.state.shouldShowFullDescription){const e=this.descriptionRef.getBoundingClientRect(),t="".concat(e.bottom-e.top,"px");this.setState({descriptionHeight:t},(()=>{this.setState((e=>({shouldShowFullDescription:!e.shouldShowFullDescription})))}))}else this.setState((e=>({shouldShowFullDescription:!e.shouldShowFullDescription})))})),Me(this,"setDescriptionRef",(e=>{this.descriptionRef=e,this.setDescriptionHeight()})),Me(this,"setDescriptionHeight",(()=>{if(this.state.shouldShowFullDescription&&"auto"===this.state.descriptionHeight)return;let e;if(this.state.shouldShowFullDescription){if(!this.descriptionRef)return;{const t=this.descriptionRef.getBoundingClientRect();e="".concat(t.bottom-t.top,"px")}}else e="0px";
1this.state.descriptionHeight!==e&&this.setState({descriptionHeight:e})})),Me(this,"handleTransitionEnd",(e=>{this.descriptionRef&&e.target!==this.descriptionRef.parentNode||this.state.shouldShowFullDescription&&this.setState({descriptionHeight:"auto"})})),this.state={shouldShowFullDescription:!0,descriptionHeight:"0px"}}componentDidUpdate(){this.setDescriptionHeight()}render(){const{description:e,pid:t,"data-testid":o}=this.props,{shouldShowFullDescription:n,descriptionHeight:i}=this.state,s=(0,F.ag)("Description"),r=(0,x.fU)();return(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)(Ae.Lf,{children:[(0,M.jsxs)(Ae.Z,{children:[(0,M.jsx)(Ae.Dx,{hasRoothasLargeRootFontont:r,id:"product-description",tabIndex:-1,children:s}),(0,M.jsx)(Ae.sn,{"data-testid":o,onClick:this.onToggleShowDescription,children:n?(0,F.ag)("Show Less"):(0,F.ag)("Show More")})]}),(0,M.jsx)(Ae.l0,{descriptionHeight:i,shouldShowFullDescription:n,onTransitionEnd:this.handleTransitionEnd,children:(0,M.jsxs)(Ae.NF,{ref:this.setDescriptionRef,hasLineHeight:r,children:[e,(0,M.jsx)(ke.Z,{pid:t})]})})]})})}}var Ue=(0,a.oc)((0,a.VC)((0,i.$j)(((e,t)=>{let{pid:o}=t;return{description:(0,m.nkG)(e,o)}}))(Ze)));function Ne(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class Fe extends n.Component{constructor(e){super(e),Ne(this,"descriptionRef",void 0),Ne(this,"onToggleShowDescription",(()=>{(0,J.y)("COZY__CLICK_PRODUCT_GPSR_INFO_SHOW_MORE");const{history:e,location:t}=this.props;if((0,l.I)(t)&&(0,d.EE)(e),this.descriptionRef&&this.state.shouldShowFullDescription){const e=this.descriptionRef.getBoundingClientRect(),t="".concat(e.bottom-e.top,"px");this.setState({descriptionHeight:t},(()=>{this.setState((e=>({shouldShowFullDescription:!e.shouldShowFullDescription})))}))}else this.setState((e=>({shouldShowFullDescription:!e.shouldShowFullDescription})))})),Ne(this,"setDescriptionRef",(e=>{this.descriptionRef=e,this.setDescriptionHeight()})),Ne(this,"setDescriptionHeight",(()=>{if(this.state.shouldShowFullDescription&&"auto"===this.state.descriptionHeight)return;let e;if(this.state.shouldShowFullDescription){if(!this.descriptionRef)return;{const t=this.descriptionRef.getBoundingClientRect();e="".concat(t.bottom-t.top,"px")}}else e="0px";this.state.descriptionHeight!==e&&this.setState({descriptionHeight:e})})),Ne(this,"handleTransitionEnd",(e=>{this.descriptionRef&&e.target!==this.descriptionRef.parentNode||this.state.shouldShowFullDescription&&this.setState({descriptionHeight:"auto"})})),this.state={shouldShowFullDescription:!0,descriptionHeight:"0px"}}componentDidUpdate(){this.setDescriptionHeight()}render(){const{title:e,description:t,"data-testid":o}=this.props,{shouldShowFullDescription:n,descriptionHeight:i}=this.state,s=(0,x.fU)();return(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)(Ae.Lf,{children:[(0,M.jsxs)(Ae.Z,{children:[(0,M.jsx)(Ae.Dx,{hasRoothasLargeRootFontont:s,children:e}),(0,M.jsx)(Ae.sn,{"data-testid":o,onClick:this.onToggleShowDescription,children:n?(0,F.et)("This is for Show Less","Show Less"):(0,F.et)("This is for Show More","Show More")})]}),(0,M.jsx)(Ae.l0,{descriptionHeight:i,shouldShowFullDescription:n,onTransitionEnd:this.handleTransitionEnd,children:(0,M.jsx)(Ae.NF,{ref:this.setDescriptionRef,hasLineHeight:s,children:t})})]})})}}var We=(0,a.oc)((0,a.VC)((0,i.$j)(((e,t)=>{let{pid:o}=t;return{title:(0,g.ml)(e,o),description:(0,g.yI)(e,o)}}))(Fe))),He=o("./cozy/coco/components/DesignSpec/TextSpec.tsx"),Ve=(0,i.$j)(((e,t)=>{let{pid:o}=t;const n=(0,m.QsX)(e,o);return{referenceTitle:n?(0,m.I$1)(e,o):null,referenceTextSpec:n?(0,m.byo)(e,o):null}}))((e=>{let{referenceTitle:t,referenceTextSpec:o,"data-testid":i}=e;const r=(0,n.useRef)(null),[c,a]=(0,n.useState)(0),[p,u]=(0,n.use
1State)(!1),h=(0,s.k6)(),m=(0,s.TH)();return(0,n.useEffect)((()=>{let e;if(p){if(r&&r.current&&r.current.getBoundingClientRect){const t=r.current.getBoundingClientRect();e=t.bottom-t.top}}else e=0;a(e||0)})),(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)(Ae.Lf,{children:[(0,M.jsxs)(Ae.Z,{children:[(0,M.jsx)(Ae.Dx,{hasRoothasLargeRootFontont:(0,x.fU)(),children:t}),(0,M.jsx)(Ae.sn,{"data-testid":i,onClick:()=>{(0,J.y)("CLICK_PRODUCT_REFERENCE_PRICE_BY_SELLER"),(0,l.I)(m)&&(0,d.EE)(h),u((e=>!e))},children:p?(0,F.ag)("Show Less"):(0,F.ag)("Show More")})]}),(0,M.jsx)(Ae.cp,{descriptionHeight:c,shouldShowFullDescription:p,children:(0,M.jsx)(Ae.NF,{ref:r,children:(0,M.jsx)(He.Z,{textSpec:o})})})]})})})),Ge=o("./cozy/desktop/components/productV2/relatedProducts/WishExpressRelatedProductsRow.tsx"),qe=o("./cozy/desktop/components/productV2/relatedProducts/RelatedProductsContainer.tsx"),Ke=o("./cozy/data/selectors/PromotionSelectors.tsx"),Ye=o("./cozy/data/constants/PromotionConstants.tsx"),$e=o("./cozy/coco/components/PromoCodeButton/PromoCodeButton.tsx"),Qe=o("./cozy/coco/components/PromoCodeButton/PromoCodeButtonConstants.tsx"),Xe=o("./cozy/coco/components/Arrow/Arrow.tsx"),Je=o("./cozy/desktop/styles/promotionBanner/PromotionBanner.tsx");function et(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class tt extends n.Component{constructor(){super(...arguments),et(this,"onClickActionText",(()=>{(0,J.y)("CLICK_WEB_ROTATING_PRODUCT_ACTION_TEXT")})),et(this,"onClickCopyButton",(()=>{(0,J.y)("CLICK_WEB_PRODUCT_PROMO_COPY_BUTTON")}))}componentDidMount(){(0,J.y)("IMPRESSION_WEB_PRODUCT_BANNER")}render(){var e,t,o,n;const{promotionSpec:i}=this.props;return i&&i.product_background_image_url?(0,M.jsxs)(Je.RX,{imageUrl:i.product_background_image_url,children:[(0,M.jsxs)(Je.aG,{color:null===(e=i.subtitle_text_spec)||void 0===e?void 0:e.text_color,isBold:!0,children:[null===(t=i.subtitle_text_spec)||void 0===t?void 0:t.text,i.promo_code&&i.promo_code.text&&(0,M.jsx)($e.Z,{size:Qe.DV.LARGE,promoCode:i.promo_code.text,overrideTextColor:i.promo_code.text_color,overrideBackgroundColor:i.promo_code.background_color,onClickButton:this.onClickCopyButton,overrideStyles:{margin:"0 8px",height:"28px"}})]}),(0,M.jsx)(Je.aG,{color:null===(o=i.subtitle_text_spec_2)||void 0===o?void 0:o.text_color,children:null===(n=i.subtitle_text_spec_2)||void 0===n?void 0:n.text}),i.expiry_text_spec&&(0,M.jsx)(Je.Lg,{color:i.expiry_text_spec.text_color,children:i.expiry_text_spec.text}),i.action_text_spec&&i.filter_id&&(0,M.jsxs)(Je.Hk,{to:(0,ee.pR)(i.filter_id),color:i.action_text_spec.text_color,onClick:this.onClickActionText,children:[i.action_text_spec.text,(0,M.jsx)(Xe.Z,{arrowType:Xe.a.POINTED_ARROW_WITH_TAIL,color:i.action_text_spec.text_color,width:"11px",height:"16px",rotate:180,overrideStyle:{margin:"0 0 0 6px"}})]})]}):null}}var ot=tt,nt=o("./cozy/shared/components/promotionBanner/PromotionBannerContainer.tsx"),it=o("./cozy/shared/styles/promotionBanner/PromotionBanner.tsx"),st=e=>{let{promotionSpec:t,bannerWidth:o,bannerHeight:i=156,overrideStyle:r,logBannerImpression:c,onClickActionText:a}=e;const d=(0,s.k6)();let l;return(0,n.useEffect)((()=>{c&&c()}),[]),t&&(t.filter_id?l=(0,ee.pR)(t.filter_id):t.action_url&&(l=t.action_url)),t?(0,M.jsx)(it.F,{imageUrl:t.product_background_image_url,color:t.text_color,bannerWidth:o,bannerHeight:i,style:{...r},onClick:()=>{l&&d.push(l)},children:(0,M.jsxs)(it.Mb,{source:Ye.uE,children:[t.title&&(0,M.jsx)(He.Z,{textSpec:t.title}),t.subtitle&&(0,M.jsx)(He.Z,{textSpec:t.subtitle}),(0,M.jsxs)(it.eV,{children:[t.expiry_text&&(0,M.jsx)(He.Z,{textSpec:t.expiry_text}),(()=>{if(!l||null==t||!t.action_text)return null;const e=t.action_text.open_new_page;return(0,M.jsx)(it.dw,{children:(0,M.jsxs)(U.rU,{to:l,target:e?"_blank":"",rel:e?"noopener noreferrer":"",onClick:t=>{e&&t.stopPropagation(),a&&a()},children:[(0,M.jsx)(He.Z,{textSpec:t.action_text}),(0,M.jsx)(Xe.Z,{arrowType:Xe.a.POINTED_ARROW_WITH_TAIL,color:t.action_text.text_color,width:"14px",height:"14px",rotate:180,overrideStyle:{margin:"0 0 0 6px"}})]})})})()]})]})}):null},rt=(0,i.$j)((e=>({promotionType:(0,Ke.uG)(e),feedPromotionSpec:(0,Ke.qz)(e),productPromotionSpec:(0,Ke.Yk)(e),productBannerPromotionSpec:(0,Ke.v9)(e)})))((e=>{let{promotionType:t,feedPromotionSpec:o,productPromotionSpec:n,productBannerPromotionSpec:i}=e;const s=()=>{(0,J.y)("IMPRESSION_WEB_PRODUCT_BANNER"),(0,J.y)("IMPRESSION_PROMO_BANNER_PRODUCT_DETAIL",{promo_name:null==n?void 0:n.promo_
1name})},r=()=>{(0,J.y)("CLICK_PROMO_BANNER_PRODUCT_DETAIL",{promo_name:null==n?void 0:n.promo_name})},c=()=>{(0,J.y)("CLICK_PROMO_BANNER_PRODUCT_DETAIL_COPY_BUTTON",{promo_name:null==n?void 0:n.promo_name})};switch(t){case Ye.jT.COUPON:case Ye.jT.NO_COUPON:return null!=i&&i.title?(0,M.jsx)(st,{promotionSpec:i,bannerWidth:"100%",logBannerImpression:s,onClickActionText:r,onClickCopyButton:c}):(0,M.jsx)(nt.Z,{promotionSpec:n,bannerWidth:"100%",source:Ye.uE,logBannerImpression:s,onClickActionText:r,onClickCopyButton:c});case Ye.jT.ROTATING:return(0,M.jsx)(ot,{promotionSpec:o});default:return null}})),ct=o("./cozy/desktop/components/productV2/productShipping/ProductShippingContainer.tsx"),at=o("./cozy/coco/components/Icons/FlagIcon.tsx"),dt=o("./cozy/coco/components/DropdownSelectInput/DropdownSelectInput.tsx"),lt=o("./cozy/coco/components/DropdownSelectInput/DropdownSelectInputConstants.tsx"),pt=o("./cozy/coco/components/Button/Button.tsx"),ut=o("./cozy/data/selectors/ReportListingSelectors.tsx"),ht=o("./cozy/data/actions/ReportListingActions.tsx"),xt=o("./cozy/shared/styles/product/ReportListing.tsx"),mt=o("./cozy/shared/styles/FormElement.tsx"),gt=o("./cozy/data/constants/DataTestIDConstants.tsx"),_t=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{isAuthorizedBrand:(0,m.iFC)(e,o),productIssuesList:(0,ut.Hx)(e),productIssuesListTitle:(0,ut.nx)(e),isProductIssueListLoaded:(0,ut.Gm)(e),isLoadingSpecificIssueView:(0,ut.l3)(e),shouldRenderMobileComponent:(0,_.LG)(e),browserHeight:(0,_.Cr)(e)}}),(e=>({fetchEntryViewSpec:()=>e((0,ht.Vv)()),fetchSpecificIssueViewSpec:(t,o)=>e((0,ht.O2)(t,o))})))((e=>{let{isAuthorizedBrand:t,productIssuesList:o,productIssuesListTitle:i,isProductIssueListLoaded:s,isLoadingSpecificIssueView:c,browserHeight:a,fetchEntryViewSpec:d,fetchSpecificIssueViewSpec:l,onContinue:p,onClose:u}=e;const[h,x]=(0,n.useState)(null),[m,g]=(0,n.useState)(null);return(0,n.useEffect)((()=>{s||d(),(0,J.y)("IMPRESSION_PDP_REPORT_AN_ISSUE")}),[]),(0,M.jsxs)(xt.AB,{children:[(0,M.jsx)(xt.r6,{children:(0,F.ag)("Report listing")}),s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(xt.Kt,{children:i}),(0,M.jsx)(dt.Z,{dataTestId:gt.RU.MAIN_ISSUE_TYPE_DROPDOWN,browserHeight:a,shouldRenderMobileComponent:!1,items:(null==o?void 0:o.map((e=>e.product_issue_string)))||[],placeholder:(0,F.ag)("Select"),onClickEligibleItem:e=>{const t=(null==o?void 0:o[e].product_issue_type)||null;x(t),null!=t&&g(null)},openDirection:lt.no.DOWN,selectedIndex:null==o?void 0:o.findIndex((e=>e.product_issue_type===h)),margin:"0",width:"100%",ariaLabel:i||"",dropdownItemStyle:{justifyContent:"left",padding:"0 12px"},isError:Boolean(m)}),m&&(0,M.jsx)(mt.C9,{children:(0,M.jsx)(mt.Xq,{children:m})}),(0,M.jsxs)(xt.w2,{children:[(0,M.jsx)(pt.ZP,{size:pt.ce.MEDIUM,variant:pt.xq.GHOST,overrideStyle:{marginRight:"12px"},onClick:u,children:(0,F.ag)("Cancel")}),c?(0,M.jsx)(r.Z,{}):(0,M.jsx)(pt.ZP,{size:pt.ce.MEDIUM,onClick:()=>{null==h?g((0,F.ag)("Please select an issue type")):(g(null),l(t,h),p(h))},children:(0,F.ag)("Continue")})]})]}):(0,M.jsx)(r.Z,{overrideStyle:{margin:"auto"}})]})})),St=o("./cozy/shared/components/reportListingSection/ReportListingSpecificIssueView.tsx"),yt=o("./cozy/shared/components/reportListingSection/ReportListingSubmittedView.tsx"),Ct=o("./cozy/shared/components/hoc/BaseModalHOC.tsx"),ft=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{isSpecificIssueViewSpecLoaded:(0,ut.a2)(e),isProductReported:(0,ut.H_)(e,o),isProductLoaded:(0,m.QsX)(e,o)}}))((0,Ct.Z)((e=>{let{pid:t,isSpecificIssueViewSpecLoaded:o,isProductReported:i,isProductLoaded:s,closeModal:c}=e;const[a,d]=(0,n.useState)(null);return(0,n.useEffect)((()=>{(0,J.y)("IMPRESSION_PDP_REPORT_AN_ISSUE")}),[]),s?o&&null!=a&&!i?(0,M.jsx)(St.Z,{pid:t,mainIssueType:a,onClose:c}):i?(0,M.jsx)(yt.Z,{}):(0,M.jsx)(_t,{pid:t,onContinue:e=>{d(e)},onClose:c}):(0,M.jsx)(r.Z,{overrideStyle:{margin:"auto"}})}),{style:{padding:"32px"},showCloseButton:!1})),wt=o("./cozy/shared/components/hoc/WithKeyBoardPressHOC.tsx");const Rt=E.ZP.h2.withConfig({displayName:"BuyerGuaranteeSection__Title",componentId:"sc-1msalnc-0"})(["display:flex;width:100%;"]),Pt=E.ZP.div.withConfig({displayName:"BuyerGuaranteeSection__SectionTitle",componentId:"sc-1msalnc-1"})(["flex:1;"," letter-spacing:0.4px;color:",";display:flex;align-items:center;"],(e=>{let{hasRoothasLargeRootFontont:t}=e;return t?" @media(min-width: 1281px) { ".concat(B.ud," }; \n @media(min-width: 801px) and (max-width: 1280px) { ").concat(B.kh," };\n @media(max-width: 800px) { ").concat(B.EQ," } "):B.Nq}),(e=>{let{theme:t}=e;return t.Grey1})),jt=(0,wt.Z)(E.ZP.div.withConfig({displayName:"BuyerGuaranteeSection__LearnMore",componentId:"sc-1msalnc-2"})(["margin-right:16px;",";cursor:pointer;letter-spacing:0.3px;color:",";"],B.fb,(e=>{let{theme:t}=e;return t.primaryColor})));var It=e=>{let{pid:t,"data-testid":o}=e;const[n,i,s]=(0,G.Z)();return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(xt.ck,{children:[(0,M.jsx)(Rt,{children:(0,M.jsx)(Pt,{children:(0,F.ag)("Report this listing for inaccurate information")})}),(0,M.jsxs)(xt.Jr,{onClick:()=>{(0,J.y)("CLICK_PDP_REPORT_AN_ISSUE"),i()},children:[(0,M.jsx)(at.Z,{overrideStyle:{marginRight:"12px"}}),(0,M.jsx)(jt,{"data-testid":o,children:(0,F.ag)("Report")})]})]}),n&&(0,M.jsx)(ft,{pid:t,onClose:s})]})},Tt=o("./cozy/desktop/components/commonV2/modal/AdminModal.tsx"),bt=o("./cozy/coco/components/Icons/CloseIcon.tsx");const vt=E.ZP.div.withConfig({displayName:"ProductTabBar__Wrapper",componentId:"sc-1s8ea2p-0"})(["background-color:",";height:",";"],(e=>{let{theme:t}=e;return t.white}),(e=>{let{theme:t}=e;return t.productTabBarHeight})),Et=E.ZP.div.withConfig({displayName:"ProductTabBar__MainWrapper",componentId:"sc-1s8ea2p-1"})(["display:flex;margin:auto;flex-direction:column;"]),Bt=E.ZP.div.withConfig({displayName:"ProductTabBar__Container",componentId:"sc-1s8ea2p-2"})(["width:100%;display:flex;justify-content:flex-start;margin:auto;"]),Dt=E.ZP.span.withConfig({displayName:"ProductTabBar__ItemWrapper",componentId:"sc-1s8ea2p-3"})(["position:relative;"]),zt=E.ZP.div.withConfig({displayName:"ProductTabBar__MainTab",componentId:"sc-1s8ea2p-4"})(["height:24px;line-height:24px;display:flex;flex:0 1 auto;align-items:center;padding:0 40px 0 0;cursor:pointer;vertical-align:middle;position:relative;box-sizing:border-box;"]),Ot=E.ZP.h1.withConfig({displayName:"ProductTabBar__TabName",componentId:"sc-1s8ea2p-5"})(["",""],(e=>{let{theme:t,isSelected:o}=e;return"\n height: 24px;\n line-height: 24px;\n display: flex;\n flex: 0 1 auto;
1\n align-items: center;\n cursor: pointer;\n vertical-align: middle;\n position: relative;\n box-sizing: border-box;\n ".concat(o?B.zb:B.fb,";\n color: ").concat(t.Grey1,";\n letter-spacing: 0.3px;\n ")})),Lt=E.ZP.div.withConfig({displayName:"ProductTabBar__MainTabWrapper",componentId:"sc-1s8ea2p-6"})(["",""],(e=>{let{theme:t,isSelected:o}=e;return"\n ".concat(B.qO,"\n flex-direction: column;\n border-bottom: ").concat(o?"".concat(2,"px solid ").concat(t.primaryColor):"none",";\n height: calc(100% + 4px);\n padding: 0 4px;\n\n :hover {\n padding-bottom: ").concat(2,"px;\n border-bottom: ","".concat(2,"px solid ").concat(t.primaryColor),";\n }\n ")})),At=E.ZP.div.withConfig({displayName:"ProductTabBar__ProductTabTooltip",componentId:"sc-1s8ea2p-7"})(["position:absolute;top:calc(100% + 8px);left:-90px;background-color:",";z-index:",";padding:16px;white-space:pre-line;text-align:center;width:252px;"],(e=>{let{theme:t}=e;return t.primaryColor}),(e=>{let{theme:t}=e;return t.zIndexOverlay1})),kt=E.ZP.div.withConfig({displayName:"ProductTabBar__ProductTabTooltipArrow",componentId:"sc-1s8ea2p-8"})(["border-left:solid 1px ",";border-top:solid 1px ",";position:absolute;top:-6px;right:50%;transform:scale(1,0.75) rotate(45deg);width:12px;height:12px;background-color:",";"],(e=>{let{theme:t}=e;return t.Grey5}),(e=>{let{theme:t}=e;return t.Grey5}),(e=>{let{theme:t}=e;return t.primaryColor})),Mt=E.ZP.div.withConfig({displayName:"ProductTabBar__TooltipTitle",componentId:"sc-1s8ea2p-9"})(["",";color:#fff;"],B.nf);var Zt=e=>{let{message:t}=e;return(0,M.jsxs)(At,{children:[(0,M.jsx)(kt,{}),(0,M.jsx)(Mt,{children:t})]})};const Ut=(0,wt.Z)(Dt);var Nt=e=>{let{name:t,"data-testId":o,isSelected:n,showTooltip:i,tooltipMessage:s,onClick:r,onHover:c}=e;return(0,M.jsxs)(Ut,{onClick:r,onMouseOver:c,children:[(0,M.jsx)(zt,{children:(0,M.jsx)(Lt,{isSelected:n,children:(0,M.jsx)(Ot,{"data-testid":o,isSelected:n,children:t})})}),i&&s?(0,M.jsx)(Zt,{message:s}):null]})},Ft=o("./cozy/desktop/styles/productV2/ProductModal.tsx");const Wt=()=>({[N.Te.OVERVIEW]:{name:(0,F.ag)("Overview"),analyticsKey:"CLICK_WEB_PRODUCT_DETAILS_TABBAR_OVERVIEW"},[N.Te.RELATED_PRODUCTS]:{name:(0,F.ag)("Related"),showTooltip:!0,tooltipMessage:(0,F.ag)("Shop products related to this item"),analyticsKey:"CLICK_WEB_PRODUCT_DETAILS_TABBAR_RELATED"}});var Ht=o("./cozy/routes/RouteTesters.tsx"),Vt=e=>{let{hasTooltip:t,onClickTab:o,onClose:i,selectedTab:r,hideTabBar:c}=e;const a=(0,s.TH)(),d=(0,Ht.B0e)(a),[l,p]=(0,n.useState)(Wt()[N.Te.RELATED_PRODUCTS].showTooltip),u=[gt.cU.OVERVIEW_TAB,gt.cU.RELATED_TAB];return(0,M.jsx)(vt,{children:(0,M.jsxs)(Et,{children:[!c&&(0,M.jsx)(Bt,{children:N.u0.map(((e,n)=>{const{name:i,tabID:s,tooltipMessage:c="",analyticsKey:a}={...Wt()[e],tabID:e};return(0,M.jsx)(Nt,{name:i,"data-testId":u[n],showTooltip:t&&l&&s===N.Te.RELATED_PRODUCTS,tooltipMessage:c,onClick:()=>{p(!1),o(s),(0,J.y)(a)},onHover:()=>p(!1),isSelected:r===s},n)}))}),!d&&(0,M.jsx)(Ft.aq,{onClick:i,className:"product-modal-close-button",children:(0,M.jsx)(bt.Z,{overrideStyle:{width:"14px",height:"14px"}})})]})})},Gt=o("./cozy/coco/components/CollapsibleSection/CollapsibleSection.tsx"),qt=o("./cozy/desktop/styles/productV2/ProductPage.tsx"),Kt=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{shippingInformationSpec:(0,m.kD_)(e,o)}}))((e=>{let{shippingInformationSpec:t}=e;if(!t)return null;const o=(0,M.jsx)(He.Z,{textSpec:t.information_spec});return(0,M.jsx)(qt.Y_,{children:(0,M.jsx)(Gt.Z,{title:(0,M.jsx)(He.Z,{textSpec:t.title_spec}),body:o,expandActionText:(0,F.ag)("Show More"),collapseActionText:(0,F.ag)("Show Less")})})})),Yt=o("./cozy/shared/components/freeGift/FreeGiftPromoBanner.tsx"),$t=o("./cozy/shared/components/product/CategoryBreadCrumb.tsx"),Qt=o("./cozy/shared/components/product/returnRefundPolicySection/ReturnRefundPolicyContainer.tsx"),Xt=o("./cozy/shared/components/product/authenticBrandPolicySection/AuthenticBrandPolicyContainer.tsx"),Jt=o("./cozy/desktop/components/productV2/priceDebugging/PriceDebuggingContainer.tsx"),eo=o("./cozy/shared/components/product/ShareButton.tsx"),to=o("./cozy/coco/components/DesignSpec/IconedBannerSpec.tsx"),oo=o("./cozy/desktop/components/productV2/trustSection/TrustSectionModal.tsx"),no=o("./cozy/desktop/styles/productV2/TrustSection.tsx"),io=o("./cozy/shared/styles/product/TrustSection.tsx"),so=(0,i.$j
1)(((e,t)=>{let{pid:o}=t;return{trustSignalTopProductSection:(0,g.vU)(e,o)}}))((e=>{let{trustSignalTopProductSection:t}=e;const[o,n,i]=(0,G.Z)();if(!t)return null;const{title_spec:s,badge_spec_list:r,bottom_sheet_spec:c}=t;return(0,M.jsxs)(no.i,{children:[(0,M.jsx)(He.Z,{textSpec:s,overrideStyle:{fontSize:"24px",lineHeight:"28px",paddingTop:"0",paddingBottom:"12px"}}),(0,M.jsx)(io.Wt,{children:r.map((e=>(0,M.jsx)(to.Z,{iconedBannerSpec:e.badge_spec,overrideStyle:{width:"unset",minWidth:"fit-content",cursor:"pointer"},overrideTitleStyle:{fontSize:"16px",lineHeight:"24px",fontWeight:"500"},onClick:n},e.badge_name)))}),o&&(0,M.jsx)(oo.Z,{onClose:i,bottomSheetSpec:c})]})})),ro=o("./cozy/desktop/components/promotionBanner/PromoBannerContainer.tsx"),co=o("./cozy/mobile/components/promotionBanner/PromoBannerContainer.tsx"),ao=(0,i.$j)(((e,t)=>{let{pid:o}=t;return{specs:(0,m.q$Y)(e,o),shouldRenderMobileComponent:(0,_.LG)(e)}}))((e=>{let{specs:t,bannerWidth:o=0,shouldRenderMobileComponent:n,overrideStyle:i}=e;return t?n?(0,M.jsx)(co.Z,{promoBannerProps:t,bannerWidth:o,overrideStyle:i}):(0,M.jsx)(ro.Z,{promoBannerProps:t,bannerWidth:o,shouldUseWidth:!0,overrideStyle:i}):null})),lo=()=>{const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{try{"object"==typeof window&&(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch{}}),[]),(0,n.useEffect)((()=>{const e=new MutationObserver((e=>{for(const o of e)"attributes"===o.type&&"data-ad-status"==o.attributeName&&"unfilled"==o.target.getAttribute("data-ad-status")&&t(!0)}));return e.observe(document.getElementById("adsenseVertical"),{attributes:!0}),()=>e.disconnect()}),[]),e?null:(0,M.jsxs)(qt.VR,{children:[(0,M.jsx)(qt.VO,{height:"600px",dangerouslySetInnerHTML:{__html:'\n \x3c!-- Vertical Banner --\x3e\n <ins class="adsbygoogle"\n id="adsenseVertical"\n style="display:block"\n data-ad-client="ca-pub-8642523065883054"\n data-ad-slot="9570878111"\n data-ad-format="auto"\n data-full-width-responsive="true"></ins>\n '}}),(0,M.jsx)(qt.zs,{paddingRight:"16px",children:"Sponsored"})]})},po=()=>{const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{try{"object"==typeof window&&(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch{}}),[]),(0,n.useEffect)((()=>{const e=new MutationObserver((e=>{for(const o of e)"attributes"===o.type&&"data-ad-status"==o.attributeName&&"unfilled"==o.target.getAttribute("data-ad-status")&&t(!0)}));return e.observe(document.getElementById("adsenseHorizontal"),{attributes:!0}),()=>e.disconnect()}),[]),e?null:(0,M.jsxs)(qt.VR,{children:[(0,M.jsx)(qt.xP,{height:"84px",dangerouslySetInnerHTML:{__html:'\n \x3c!-- horizontal 648x84 --\x3e\n <ins class="adsbygoogle"\n id="adsenseHorizontal"\n style="display:inline-block;width:648px;height:84px"\n data-ad-client="ca-pub-8642523065883054"\n data-ad-slot="3766164891"></ins>\n '}}),(0,M.jsx)(qt.zs,{children:"Sponsored"})]})},uo=o("./cozy/data/constants/UserConstants.tsx"),ho=o("./cozy/data/constants/AppConstants.tsx"),xo=o("./cozy/data/constants/URLParameterConstants.tsx"),mo=o("./cozy/data/constants/FeedConstants.tsx"),go=(0,a.oc)((0,i.$j)(((e,t)=>{let{pid:o,location:n}=t;const i=(0,m.QsX)(e,o),s=i?(0,m.Qrg)(e,o):null,r=(0,d.re)("vid",n)||"",c=(0,d.re)("source",n)||ho.Yw.UNKNOWN;return{productLoaded:i,hasProductRating:(0,S.rQ)(e,o),productReferenceBySellerText:i?(0,m.byo)(e,o):null,requestID:i?(0,m.BDE)(e,o):null,priceDebugInfo:i?(0,m.zwD)(e,o):null,seenGuiderProductRelatedItemsTooltip1:(0,y.l9)(e,uo.yp.PRODUCT_RELATED_ITEMS_TAB_TOOLTIP_1),seenGuiderProductRelatedItemsTooltip2:(0,y.l9)(e,uo.yp.PRODUCT_RELATED_ITEMS_TAB_TOOLTIP_2),isLoggedIn:(0,y.M7)(e),vid:r||(null==s?void 0:s.variation_id),isPremierMerchantProduct:(0,m.YK6)(e,o),visitorId:(0,y.OP)(e),trafficSource:(0,y.zE)(e),trafficSourceVisitorId:(0,y.Uo)(e),isAppInitialDataLoading:(0,C.fF)(e),isInFlatRateShippingExperiment:(0,f.rM)(e),browserHeight:(0,_.Cr)(e),gpsrInfoTitle:(0,g.ml)(e,o),browserWidth:(0,_.dz)(e),source:c,isFreeGiftProduct:!!o&&(0,m.IIh)(e,o),merchantID:(0,m.Crj)(e,o),productCategory:(0,m.dBp)(e,o),isInWebAdsensePdpShowBucket:(0,f.ot)(e),isInDesktopAdsensePdpPosShow1Bucket:(0,f.Tz)(e),isInDesktopAdsensePdpPosShow2Bucket:(0,f.fX)(e),shouldRequireAgeConsent:(0,m.NGJ)(e,o)}}),((e,t)=>{let{pid:o}=t;return{getFullProductInfo:t=>e((0,R.getFullProductAndPrefetch)(o,t)),setInitialProductValuesAction:()=>e((0,R.setInitialProductValues)(o)),registerGuiderAction:t=>e((0,P.m2)(t)),fetchPdp:()=>e((0,j.b)(o))}}),null,{areStatesEqual:(e,t)=>(0,m.ZWp)(e,t)&&(0,_.h6)(e,t)})((e=>{var t,o;
1let{pid:i,onClose:a,closeWithoutUserInput:m,scrollContainerID:g,shouldShowCategoryBreadcrumb:_=!1,productLoaded:S,hasProductRating:y,productReferenceBySellerText:C,requestID:f,seenGuiderProductRelatedItemsTooltip1:R,seenGuiderProductRelatedItemsTooltip2:P,isLoggedIn:j,vid:v,visitorId:E,trafficSource:B,trafficSourceVisitorId:D,isPremierMerchantProduct:z,isAppInitialDataLoading:O,priceDebugInfo:L,isInFlatRateShippingExperiment:A,browserHeight:k,gpsrInfoTitle:U,browserWidth:F,source:W,isFreeGiftProduct:H,merchantID:V,productCategory:G,isInFeedPageEnhancementShowBucket:q,isInWebAdsensePdpShowBucket:K,isInDesktopAdsensePdpPosShow1Bucket:Y,isInDesktopAdsensePdpPosShow2Bucket:$,getFullProductInfo:Q,setInitialProductValuesAction:X,registerGuiderAction:ee,fetchPdp:ne,shouldRequireAgeConsent:ie}=e;const se=(0,s.k6)(),re=(0,s.TH)(),ce="related"===(0,d.re)(xo.vH,re),ae=(0,n.useRef)(null),de=(0,n.useRef)(null),le=(0,n.useRef)(null),[pe,ue]=(0,n.useState)(0),he=(0,Ht.B0e)(re),xe=(0,x.CC)()&&he,me=(0,x.fU)();(0,h.Z)(le,(()=>{var e;ue((null==le||null===(e=le.current)||void 0===e?void 0:e.offsetHeight)||0)}));
1const[ge,_e]=(0,n.useState)(ce?N.Te.RELATED_PRODUCTS:N.Te.OVERVIEW),[Se,ye]=(0,n.useState)(Boolean("true"===(0,u.ej)("shouldShowPriceDebug"))),[Ce,fe]=(0,n.useState)(!R||!P),we={},Re=(0,p.z$)(null!=E?E:"",ho.UI.PRODUCT_PAGE);(0,n.useEffect)((()=>{(async()=>{X();try{await Q(W===mo.vQ.BLITZ_BUY?{getFullProductInfoOptions:{source:W},shouldForceFetch:!1}:{shouldForceFetch:!1})}catch(e){m&&m()}})(),ne()}),[]),(0,n.useEffect)((()=>{N.Te.OVERVIEW}),[ge,V,G,i]),(0,n.useEffect)((()=>{(0,J.y)("IMPRESSION_PRODUCT_CONTAINER",{product_source:W}),H&&(0,J.y)("IMPRESSION_FREE_GIFT_DELAY_PDP"),he?(0,J.y)("IMPRESSION_PRODUCT_PAGE",{product_source:W,pid:i,page_view_id:Re,traffic_source:B,traffic_source_id:D,source_feed_page_view_id:(0,p.C1)()}):(0,J.y)("IMPRESSION_PRODUCT_MODAL",{product_source:W,pid:i,page_view_id:Re,traffic_source:B,traffic_source_id:D,source_feed_page_view_id:(0,p.C1)()}),(0,d.pP)(xo.vH,se)}),[]),(0,n.useEffect)((()=>(ae.current=window.document.onkeydown,window.document.onkeydown=e=>{ae.current&&ae.current(e),(0,c.uN)(e.code)},()=>{window.document.onkeydown=ae.current})),[]),(0,n.useEffect)((()=>()=>{Ce&&(R?P||ee(uo.yp.PRODUCT_RELATED_ITEMS_TAB_TOOLTIP_2):ee(uo.yp.PRODUCT_RELATED_ITEMS_TAB_TOOLTIP_1))}),[]);const Pe=e=>{e in we||((0,J.y)(e,{product_id:i,request_id:f}),we[e]=!0)},je=e=>{e===N.Te.RELATED_PRODUCTS&&((0,l.I)(re)&&(0,d.EE)(se),R?P||ee(uo.yp.PRODUCT_RELATED_ITEMS_TAB_TOOLTIP_2):ee(uo.yp.PRODUCT_RELATED_ITEMS_TAB_TOOLTIP_1),Ce&&fe(!1)),_e(e)},Ie=xe||ge===N.Te.OVERVIEW,Te=xe?S:ge===N.Te.RELATED_PRODUCTS;if(!S||O&&Te)return(0,M.jsx)(I.iz,{children:(0,M.jsx)(r.Z,{})});const be=q||me,ve=me&&F<ho.mC.medium;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(w.Z,{shouldRequireAgeConsent:ie}),(0,M.jsxs)(I.im,{ref:de,children:[_?(0,M.jsx)(I.F1,{children:O?(0,M.jsx)(r.Z,{}):(0,M.jsx)($t.Z,{pid:i,hasRootFont:me})}):null,(()=>{if(!xe)return O?(0,M.jsx)(I.E5,{children:(0,M.jsx)(r.Z,{})}):(0,M.jsx)(Vt,{selectedTab:ge,hasTooltip:Ce,onClickTab:je,onClose:a,hideTabBar:!1})})(),Ie&&(0,M.jsxs)(I.DD,{children:[(0,M.jsxs)(I.ER,{isInFeedPageEnhancementShowBucket:be,shouldShowStripImagesAtBottom:ve,children:[(0,M.jsx)(T.Z,{pid:i,isInFeedPageEnhancementShowBucket:be,shouldShowStripImagesAtBottom:ve,isOnProductPageRoute:he}),O?(0,M.jsx)(I.jD,{children:(0,M.jsx)(r.Z,{})}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(so,{pid:i}),(0,M.jsx)(Z,{pid:i}),Se&&(0,M.jsx)(Jt.Z,{pid:i,priceDebugInfo:L,showPriceDebug:Se}),!A&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(ct.Z,{pid:i}),(0,M.jsx)(Kt,{pid:i})]}),K&&Y&&(0,M.jsx)(po,{}),z&&(0,M.jsx)(Le,{pid:i,vid:v||"",setOneTimeUGCAnalytic:Pe}),(0,M.jsx)(Yt.Z,{}),(0,M.jsx)(oe.Z,{pid:i,overrideHeaderStyle:me?F>ho.mC.large?{fontSize:"1.5rem"}:F>ho.mC.medium?{fontSize:"1.25rem"}:{fontSize:"1rem"}:void 0}),y&&(0,M.jsx)(te,{pid:i,setOneTimeUGCAnalytic:Pe,"data-testid":gt.Q7.REVIEWS_SHOW_MORE,isInProjectElephantDesktopShowBucket:me}),(0,M.jsx)(Ue,{"data-testid":gt.Q7.SHOW_DESCRIPTION,pid:i}),U&&(0,M.jsx)(We,{"data-testid":gt.Q7.SHOW_GPSR_INFO,pid:i}),K&&$&&(0,M.jsx)(po,{}),null!=C&&(0,M.jsx)(Ve,{"data-testid":gt.Q7.REFERENCE_PRICE_BY_SELLER_SHOW,pid:i}),!z&&(0,M.jsx)(Le,{pid:i,vid:v||"",setOneTimeUGCAnalytic:Pe}),(0,M.jsx)(Xt.Z,{pid:i}),(0,M.jsx)(Qt.Z,{pid:i}),j&&(0,M.jsx)(It,{pid:i,"data-testid":gt.Q7.REPORT_LIST}),(0,M.jsx)(rt,{})]}),!O&&(0,M.jsx)(I.RJ,{hasRight:ve,children:(0,M.jsx)(eo.Z,{"data-testid":gt.Q7.SHARE_BUTTON,pid:i})})]}),(0,M.jsx)(I.b,{isInFeedPageEnhancementShowBucket:be,shouldShowStripImagesAtBottom:ve,children:(0,M.jsxs)(I.iW,{ref:le,top:(null===(t=de.current)||void 0===t?void 0:t.offsetTop)||0,isSticky:(()=>{var e,t;if(!A||xe)return!0;const o=null!==(e=null==de||null===(t=de.current)||void 0===t?void 0:t.offsetTop)&&void 0!==e?e:0;return pe<k-o})(),children:[(0,M.jsx)(b.Z,{pageViewId:Re,pid:i,setOneTimeUGCAnalytic:Pe,isInFeedPageEnhancementShowBucket:be||ve}),K&&(0,M.jsx)(lo,{})]})})]}),(0,M.jsx)(ao,{pid:i,bannerWidth:(null===(o=de.current)||void 0===o?void 0:o.clientWidth)||0,overrideStyle:{marginBottom:"20px"}}),!O&&(0,M.jsxs)(M.Fragment,{children:[Te&&(0,M.jsx)(Ge.Z,{pid:i,showBorderTop:xe}),(0,M.jsx)(qe.Z,{isVisible:Te,pid:i,scrollContainerID:g})]}),(0,M.jsx)(Tt.Z,{pid:i,showPriceDebug:Se,updateShowPriceDebug:e=>{(0,u.d8)("shouldShowPriceDebug",e?"true":"false"),ye(e),e&&!L&&Q(W===mo.vQ.BLITZ_BUY?{getFullProductInfoOptions:{source:W},shouldForceFetch:!0}:{shouldForceFetch:!0})}})]})]})})))},
1"./cozy/shared/components/promotionBanner/PromotionBannerContainer.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),i=o("./cozy/coco/components/Icons/WishLocalIcon.tsx"),s=o("./cozy/coco/components/PromoCodeButton/PromoCodeButton.tsx"),r=o("./cozy/coco/components/PromoCodeButton/PromoCodeButtonConstants.tsx"),c=o("./node_modules/react-router/esm/react-router.js"),a=o("./node_modules/react-router-dom/esm/react-router-dom.js"),d=o("./node_modules/react-redux/es/index.js"),l=o("./cozy/data/actions/AuthenticationActions.tsx"),p=o("./cozy/data/actions/WishSellerStandardsActions.tsx"),u=o("./cozy/data/selectors/UserSelectors.tsx"),h=o("./cozy/utils/URL.tsx"),x=o("./cozy/utils/lottie/Lottie.tsx"),m=o("./cozy/shared/styles/promotionBanner/PromotionBanner.tsx"),g=o("./cozy/routes/RouteGenerators.tsx"),_=o("./cozy/data/constants/FeedConstants.tsx"),S=o("./cozy/data/constants/PromotionConstants.tsx"),y=o("./cozy/data/constants/URLParameterConstants.tsx"),C=o("./cozy/shared/components/promotionBanner/PromotionBannerDetailsModalSwitch.tsx"),f=o("./node_modules/react/jsx-runtime.js");t.Z=(0,d.$j)((e=>({isLoggedIn:(0,u.M7)(e),isUserTemporary:(0,u.am)(e)})),(e=>({attemptedActionRequiringLogin:()=>e((0,l.attemptedActionRequiringLogin)()),setWSSPremierMerchantModalShown:()=>e((0,p.setWSSPremierMerchantModalShown)(!0))})))((e=>{var t,o;let{promotionSpec:d,bannerWidth:l,bannerHeight:p=S.Ul,overrideStyle:u,logBannerImpression:w,onClickActionText:R,onClickCopyButton:P,source:j,isLoggedIn:I,isUserTemporary:T,attemptedActionRequiringLogin:b,setWSSPremierMerchantModalShown:v}=e;const E=(0,c.k6)(),B=Boolean(null==d?void 0:d.animated_banner_url),D=(0,n.useRef)(null);(0,n.useEffect)((()=>{w&&w(),B&&(0,x.m)(D.current,(()=>{}),x.v.STATIC_URL_SOURCES,null==d?void 0:d.animated_banner_url)}),[]);const z=d&&d.filter_id===_.vQ.PICKUP;let O;d&&(d.filter_id?O=(0,g.pR)(d.filter_id):d.action_url&&(O=d.action_url));const L=(e,t,o)=>{window.open(e,t,o)};return d?(0,f.jsxs)(m.F,{imageUrl:j===S.uE&&d.product_background_image_url?d.product_background_image_url:d.background_image_url,backgroundColor:d.background_color,color:d.text_color,bannerWidth:l,bannerHeight:p,style:{...u},onClick:()=>{var e;if(I||T||((0,h.pP)(y.PP,E,{replaceURL:!1}),b()),!O)return;const t=null==d||null===(e=d.action_text)||void 0===e?void 0:e.open_in_new_window_attributes;t?L(O,t.name,t.specs):E.push(O)},children:[B&&(0,f.jsx)(m.K1,{ref:D,bannerWidth:l,bannerHeight:p}),(0,f.jsxs)(m.Mb,{isWishbluePickup:z,hasAnimation:B,hasCouponCode:Boolean(d.promo_code),source:j,children:[d.title&&(0,f.jsxs)(m.Jw,{color:d.title.text_color,fontSize:d.title.text_size&&"".concat(d.title.text_size,"px"),fontWeight:d.title.text_bold?700:400,paddingBottom:d.title.padding_bottom&&"".concat(d.title.padding_bottom,"px"),paddingLeft:d.title.padding_left&&"".concat(d.title.padding_left,"px"),paddingRight:d.title.padding_right&&"".concat(d.title.padding_right,"px"),paddingTop:d.title.padding_top&&"".concat(d.title.padding_top,"px"),gravity:null===(t=d.title)||void 0===t?void 0:t.gravity,children:[z&&(0,f.jsx)(i.Z,{overrideStyle:{width:"12px",height:"12px",display:"inline-flex",color:d.text_color,margin:"2px 10px 0 0"}}),d.title.text]}),d.subtitle&&(0,f.jsxs)(m.JT,{color:d.subtitle.text_color,fontSize:d.subtitle.text_size&&"".concat(d.subtitle.text_size,"px"),fontWeight:d.subtitle.text_bold?700:400,paddingBottom:d.subtitle.padding_bottom&&"".concat(d.subtitle.padding_bottom,"px"),paddingLeft:d.subtitle.padding_left&&"".concat(d.subtitle.padding_left,"px"),paddingRight:d.subtitle.padding_right&&"".concat(d.subtitle.padding_right,"px"),paddingTop:d.subtitle.padding_top&&"".concat(d.subtitle.padding_top,"px"),gravity:null===(o=d.subtitle)||void 0===o?void 0:o.gravity,children:[d.subtitle.text,d.promo_code&&d.promo_code.text&&(0,f.jsx)(s.Z,{size:r.DV.LARGE,promoCode:d.promo_code.text,overrideTextColor:d.promo_code.text_color,overrideBackgroundColor:d.promo_code.background_color,onClickButton:P,overrideStyles:{margin:"0 8px"},overrideFontBold:d.promo_code.text_bold})]}),(0,f.jsxs)(m.eV,{children:[d.expiry_text&&(0,f.jsx)(m.VC,{color:d.expiry_text.text_color,fontSize:d.expiry_text.text_size&&"".concat(d.expiry_text.text_size,"px"),fontWeight:d.expiry_text.text_bold?700:400,children:d.expiry_text.text}),(()=>{if(null==d||!d.action_text)return null;const e=d.action_text,t=e.text_size?"".concat(e.text_size,"px"):"",o=e.text_bold?700:600,n=null==e?void 0:e.text_color,i=null==e?void 0:e.background_color,s=null==e?void 0:e.gravity,r=e.padding_bottom?"".concat(e.padding_bottom,"px"):"",c=e.padding_left?"".concat(e.padding_left,"px"):"",l=e.padding_right?"".concat(e.padding_right,"px"):"",p=e.padding_top?"".concat(e.padding_top,"px"):"",u=e=>{var a;
1return(0,f.jsx)(m.dw,{fontSize:t,fontWeight:o,color:n,backgroundColor:i,gravity:s,paddingbottom:r,paddingleft:c,paddingright:l,paddingtop:p,onClick:e,children:null===(a=d.action_text)||void 0===a?void 0:a.text})};return O?(0,f.jsx)(a.rU,{to:e.open_in_new_window_attributes?"":O,target:e.open_new_page?"_blank":"",rel:e.open_new_page?"noopener noreferrer":"",onClick:()=>{R&&R();const t=e.open_in_new_window_attributes;t&&L(O,t.name,t.specs)},children:u()}):null!=d&&d.action_id?(0,f.jsxs)(f.Fragment,{children:[u((()=>{R&&R(),d.action_id===S.Wy&&v()})),(0,f.jsx)(C.Z,{actionID:d.action_id})]}):null})(),d.disclaimer_text&&!d.expiry_text&&(0,f.jsx)(m.xG,{color:d.disclaimer_text.text_color,fontSize:d.disclaimer_text.text_size&&"".concat(d.disclaimer_text.text_size,"px"),fontWeight:d.disclaimer_text.text_bold?700:400,children:d.disclaimer_text.text})]})]})]}):null}))},
1"./cozy/shared/components/promotionBanner/PromotionBannerDetailsModalSwitch.tsx":function(e,t,o){"use strict";var n=o("./cozy/data/constants/PromotionConstants.tsx"),i=o("./cozy/shared/components/wishSellerStandards/PremierMerchantInfoModalSwitch.tsx"),s=o("./node_modules/react/jsx-runtime.js");t.Z=e=>{let{actionID:t}=e;return t&&t===n.Wy?(0,s.jsx)(i.Z,{}):null}},
1"./cozy/shared/components/reportListingSection/ReportListingSpecificIssueView.tsx":function(e,t,o){"use strict";o("./node_modules/core-js/modules/web.dom-collections.iterator.js");var n=o("./node_modules/react/index.js"),i=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/react-router/esm/react-router.js"),r=o("./cozy/coco/components/DesignSpec/TextSpec.tsx"),c=o("./cozy/coco/components/DropdownSelectInput/DropdownSelectInput.tsx"),a=o("./cozy/coco/components/DropdownSelectInput/DropdownSelectInputConstants.tsx"),d=o("./cozy/coco/components/DotLoader/DotLoader.tsx"),l=o("./cozy/coco/components/Button/Button.tsx"),p=o("./cozy/data/selectors/BrowserSelectors.tsx"),u=o("./cozy/data/selectors/ReportListingSelectors.tsx"),h=o("./cozy/data/actions/ReportListingActions.tsx"),x=o("./cozy/shared/styles/product/ReportListing.tsx"),m=o("./cozy/shared/styles/FormElement.tsx"),g=o("./cozy/utils/i18n.tsx"),_=o("./cozy/utils/WishAssistantWindowManager.tsx"),S=o("./cozy/data/constants/DataTestIDConstants.tsx"),y=o("./cozy/routes/Routes.tsx"),C=o("./cozy/data/services/AnalyticsService.tsx"),f=o("./node_modules/react/jsx-runtime.js");t.Z=(0,i.$j)((e=>({specificIssueViewSpec:(0,u.Ly)(e),productIssuesListTitle:(0,u.nx)(e),isProductIssueListLoaded:(0,u.Gm)(e),isSubmittingReport:(0,u.qf)(e),shouldRenderMobileComponent:(0,p.LG)(e),browserHeight:(0,p.Cr)(e)})),(e=>({submitIssue:(t,o,n)=>e((0,h.WV)(t,o,n))})))((e=>{var t,o,i;let{pid:p,specificIssueViewSpec:u,productIssuesListTitle:h,isSubmittingReport:w,submitIssue:R,browserHeight:P,mainIssueType:j,onClose:I,shouldRenderMobileComponent:T}=e;const b=(0,s.k6)(),[v,E]=(0,n.useState)(null),[B,D]=(0,n.useState)(null);(0,n.useEffect)((()=>{(0,C.y)("IMPRESSION_PDP_REPORT_AN_ISSUE_PAGE")}),[]);const z=()=>{null==v?D((0,g.ag)("Please select an issue type")):((0,C.y)("CLICK_PDP_REPORT_AN_ISSUE_SUBMIT"),D(null),R(j,v,p))},O=null==u||null===(t=u.whats_wrong)||void 0===t?void 0:t.options,L=(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(x.XS,{children:(0,g.ag)("For help with an order or your account, please contact {%1=the link with text. e.g. Customer Service}.",(0,f.jsx)(x.UC,{onClick:()=>{T?b.push(y._sJ):(0,_.xw)()},children:(0,g.ag)("Customer Service")}))}),(0,f.jsx)(r.Z,{overrideStyle:{margin:"24px 0 12px 0"},textSpec:null==u||null===(o=u.whats_wrong)||void 0===o?void 0:o.title}),(0,f.jsx)(c.Z,{dataTestId:S.RU.SPECIFIC_ISSUE_TYPE_DROPDOWN,browserHeight:P,shouldRenderMobileComponent:!1,items:(null==O?void 0:O.map((e=>e.name)))||[],placeholder:(null==u||null===(i=u.whats_wrong)||void 0===i?void 0:i.hint)||(0,g.ag)("Select"),onClickEligibleItem:e=>{const t=(null==O?void 0:O[e].type)||null;E(t),null!=t&&D(null)},openDirection:a.no.DOWN,selectedIndex:null==O?void 0:O.findIndex((e=>e.type===v)),margin:"0",width:"100%",ariaLabel:h||"",dropdownItemStyle:{justifyContent:"left",padding:"0 12px"},isError:Boolean(B)}),B&&(0,f.jsx)(m.C9,{children:(0,f.jsx)(m.Xq,{children:B})})]}),A=T?(0,f.jsx)(x.CA,{children:w?(0,f.jsx)(d.Z,{}):(0,f.jsx)(l.ZP,{stretch:!0,size:l.ce.MEDIUM,onClick:z,overrideStyle:{padding:"0"},children:(0,g.ag)("Report")})}):(0,f.jsxs)(x.w2,{children:[(0,f.jsx)(l.ZP,{size:l.ce.MEDIUM,variant:l.xq.GHOST,overrideStyle:{marginRight:"12px"},onClick:I,children:(0,g.ag)("Cancel")}),w?(0,f.jsx)(d.Z,{}):(0,f.jsx)(l.ZP,{size:l.ce.MEDIUM,onClick:z,children:(0,g.ag)("Report")})]});return T?(0,f.jsxs)(x.bB,{children:[L,A]}):(0,f.jsxs)(x.AB,{children:[(0,f.jsx)(x.r6,{children:(0,g.ag)("Report listing")}),L,A]})}))},
1"./cozy/shared/components/reportListingSection/ReportListingSubmittedView.tsx":function(e,t,o){"use strict";o.d(t,{Z:function(){return u}});var n=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=o("./node_modules/react/jsx-runtime.js"),r=e=>{let{overrideStyle:t={}}=e;const o=(0,i.Fg)();return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 168 66",style:{width:"168px",height:"66px",...t},children:[(0,s.jsx)("defs",{}),(0,s.jsx)("mask",{id:"paper-plane-icon-a",width:"168",height:"66",x:"0",y:"0",maskUnits:"userSpaceOnUse",children:(0,s.jsx)("path",{fill:o.white,d:"M0 0h168v66H0z"})}),(0,s.jsxs)("g",{mask:"url(#paper-plane-icon-a)",children:[(0,s.jsx)("path",{stroke:"url(#paper-plane-icon-paint0_linear)",strokeDasharray:"3 3",d:"M100.11 41.857s-4.166 2.29-10.898 3.68c-8.055 1.663-19.879 5.436-24.625-.6-2.53-3.609-1.865-10.664 1.892-13.461 3.443-2.683 13.326-.085 12.521 9.882-.573 5.77-4.975 10.33-9.639 15.774-10.976 9.919-33.984 9.092-51.4.85C.546 49.737 4.958 49.903 4.958 49.903"}),(0,s.jsx)("path",{fill:"#64C0E4",fillRule:"evenodd",d:"M104.07 23.213l2.913 18.145 14.445-13.184-17.358-4.961z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#1E97C6",fillRule:"evenodd",d:"M106.983 41.358l2.031-16.497-4.944-1.648",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#91DCF9",fillRule:"evenodd",d:"M91 17.361L151.856 0l-20.603 35.21L91 17.362z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#1E97C6",fillRule:"evenodd",d:"M104.07 23.213L151.856 0l-42.842 25.378-4.944-2.165z",clipRule:"evenodd"})]}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paper-plane-icon-paint0_linear",x1:"5.941",x2:"68.227",y1:"75.756",y2:"16.4",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:o.white}),(0,s.jsx)("stop",{offset:"1",stopColor:"#91DCF9"})]})})]})},c=o("./cozy/coco/components/Button/Button.tsx"),a=o("./cozy/data/selectors/BrowserSelectors.tsx"),d=o("./cozy/shared/styles/product/ReportListing.tsx"),l=o("./cozy/utils/i18n.tsx"),p=o("./cozy/routes/Routes.tsx"),u=(0,n.$j)((e=>({shouldRenderMobileComponent:(0,a.LG)(e)})))((e=>{let{shouldRenderMobileComponent:t}=e;return(0,s.jsxs)(d.Pd,{children:[(0,s.jsx)(r,{overrideStyle:{marginBottom:"24px"}}),(0,s.jsx)(d.r6,{children:(0,l.ag)("Thank you for letting us know")}),(0,s.jsx)(d.XS,{isCentered:!0,children:(0,l.ag)("This listing will be investigated. Your valuable feedback helps us improve the shopping experience for all.")}),(0,s.jsx)(c.ZP,{bold:!0,stretch:t,size:c.ce.MEDIUM,to:p.Mym,overrideStyle:{marginTop:"24px",padding:t?"0":"0 16px"},children:(0,l.ag)("Continue Shopping")})]})}))}
1}]); 2//# sourceMappingURL=cozy_desktop_components_productV2_main_ProductContainer_tsx.3cd191b2c190214539db.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.