1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["AdBadge-tsx","SearchResultAd","shared-components-EmbedYoutubeVideo-EmbedYoutubeVideo"],{90910(e,t,i){i.d(t,{D:()=>n});var n=(e=>(e.RATINGS="ratings",e.CUMULATIVE_RATINGS="cumulative_ratings",e.BOOLEAN="boolean",e.TERMS="terms",e.NESTED_TERMS="nested_terms",e.RANGE="range",e.STATS="stats",e.NUMERIC_OPTIONS="numeric_options",e.DATE_HISTOGRAM="date_histogram",e.FILTERS="filters",e.BRANDS="brands",e.UNKNOWN="unknown",e.ASPECTS="aspects",e.UNIQUE="unique",e.MIN_MAX="min_max",e))(n||{})},93578(e,t,i){i.d(t,{A:()=>ActionButtonBase});var n=i(85906),r=i(45919),s=i(4484),o=i(62227),a=i(25343),l=i(35447),c=i(14202);function ActionButtonBase(e){const{dropdownItem:t,dropdownItemProps:i,hideIcon:d,iconName:u,label:g,to:h,...m}=e,p=(0,c.jsxs)(n.Fragment,{children:[!d&&(0,c.jsx)(o.A,{name:u,flexShrink:0}),g]});if(t){const e={children:p,display:d?void 0:"flex",gap:d?void 0:2,...m};return(0,c.jsx)(s.A.Item,{...i,children:h?(0,c.jsx)(a.A,{to:h,...e}):(0,c.jsx)(l.A,{...e})})}const f={children:p,buttonStyle:"link",icon:d?void 0:"left",...m};return h?(0,c.jsx)(a.A,{element:r.A.Link,to:h,...f}):(0,c.jsx)(r.A,{...f})}},73383(e,t,i){i.d(t,{A:()=>ChangeVisibility});var n=i(74954),r=i(93578),s=i(14202);const o={public:"trash",private:"trash-arrow-up"};function ChangeVisibility(e){const{visibility:t,...i}=e;return(0,s.jsx)(r.A,{iconName:o[t],label:(0,s.jsx)(n.sA,{id:"shared.action_button.change_visibility",defaultMessage:"{visibility, select, public {Delete} private {Restore}}",values:{visibility:t}}),tracking:{id:"change_visibility"},...i})}},16855(e,t,i){i.d(t,{A:()=>EditButton});i(74954);var n=i(93578),r=i(14202);function EditButton(e){return(0,r.jsx)(n.A,{iconName:"pencil",label:"Edit",tracking:{id:"edit_button"},...e})}},52752(e,t,i){i.d(t,{A:()=>More});var n=i(19363),r=i(45919),s=i(62227),o=i(49739),a=i(52905),l=i(35447),c=(i(74954),i(14202));function More(e){const{alwaysOpenModal:t=!1,iconName:i="ellipsis-horizontal-circle",iconOnly:d=!0,children:u,...g}=e,h=e=>(0,c.jsxs)(r.A,{buttonStyle:"link",icon:d||"left",isActive:e,tracking:{id:"more_button"},...g,children:[(0,c.jsx)(s.A,{name:i}),(0,c.jsx)(l.A,{display:{xs:"none",sm:"inline"},srOnly:d,children:"More"})]}),m={title:"Moreâ¦",content:e=>"function"==typeof u?u(e):u,bodyProps:{paddingY:2}};return t?(0,c.jsx)(o.A,{namespace:null,...m,children:h()}):(0,c.jsx)(a.A,{modalOptions:m,popoverOptions:{content:e=>(0,c.jsx)(n.h,{marginY:1,children:"function"==typeof u?u(e):u})},children:e=>h(e)})}},78721(e,t,i){i.d(t,{A:()=>Report});i(74954);var n=i(93578),r=i(14202);function Report(e){return(0,r.jsx)(n.A,{iconName:"flag",label:"Report",tracking:{id:"report_button"},...e})}},14494(e,t,i){i.d(t,{A:()=>Share});i(74954);var n=i(93578),r=i(14202);function Share(e){return(0,r.jsx)(n.A,{iconName:"arrow-up-tray",label:"Share",tracking:{id:"share_button"},...e})}},8410(e,t,i){i.d(t,{A:()=>Vote});var n=i(85906),r=i(79400),s=i.n(r),o=i(19363),a=i(45919),l=i(88367),c=i(62227),d=i(74954),u=i(14202);function Dislike(e){const{isDisliked:t,...i}=e,n=(0,d.tz)().formatMessage({id:"shared.action_button.dislike.title",defaultMessage:"{isDisliked, select, true {Undo dislike} false {Dislike}}"},{isDisliked:t});return(0,u.jsx)(a.A.Button,{buttonStyle:"link",textStyle:"muted",title:n,"aria-label":n,monoSpaceNumber:!0,...i,children:(0,u.jsx)(c.A,{name:t?"fat-arrow-down-solid":"fat-arrow-down-outline",color:t?"#006bb8":void 0})})}function Like(e){const{isLiked:t,...i}=e,n=(0,d.tz)().formatMessage({id:"shared.action_button.like.title",defaultMessage:"{isLiked, select, true {Undo like} false {Like}}"},{isLiked:t});return(0,u.jsx)(a.A.Button,{buttonStyle:"link",textStyle:"muted",title:n,"aria-label":n,...i,children:(0,u.jsx)(c.A,{name:t?"fat-arrow-up-solid":"fat-arrow-up-outline",color:t?"#006bb8":void 0})})}var g=i(71123),h=i(35447),m=i(32600),p=i(86490),f=i(76015),v=i(49075);function RestrictedLikeButton(e){const{deferredActionType:t,getAuthenticationProps:i,initialNumberOfLikes:r,initialStatus:s,onChange:o,buttonsProps:a,...l}
1=e,c=(0,m.A)(),x=(0,p.A)(f.eP),[A,y]=(0,n.useState)({isLoading:!1,numberOfLikes:r,status:s});return(0,n.useEffect)(()=>{y({isLoading:!1,numberOfLikes:r,status:s})},[s,r]),(0,u.jsxs)(g.A,{"data-show-likes":A.numberOfLikes>1||"empty"!==A.status,alignItems:"center",fontWeight:"semi-bold",...l,children:[(0,u.jsx)(Like,{onClick:()=>{const e="liked"===A.status?"no_like":"like";return c({...i(e),deferredActionType:t}).then(()=>{const t=A;return y(e=>({...e,isLoading:!0,numberOfLikes:"liked"===e.status?e.numberOfLikes-1:e.numberOfLikes+1,status:"liked"===e.status?"empty":"liked"})),o(e).then(()=>{y(e=>({...e,isLoading:!1}))},e=>{throw y(t),e})}).catch(v.O)},isDisabled:A.isLoading,isLiked:"liked"===A.status,tracking:{id:"like_button",gaContext:{action:"liked"===A.status?"unlike":"like",label:x?"authenticated":"unauthenticated"}},...a}),(0,u.jsx)(h.A,{monoSpaceNumber:!0,children:(0,u.jsx)(d.Gr,{value:A.numberOfLikes})}),(0,u.jsx)(Dislike,{onClick:()=>{const e="disliked"===A.status?"no_dislike":"dislike";return c({...i(e),deferredActionType:t}).then(()=>{const t=A;return y(e=>({...e,isLoading:!0,numberOfLikes:"liked"===e.status?e.numberOfLikes-1:e.numberOfLikes,status:"disliked"===e.status?"empty":"disliked"})),o(e).then(()=>{y(e=>({...e,isLoading:!1}))},e=>{throw y(t),e})}).catch(v.O)},isDisabled:A.isLoading,isDisliked:"disliked"===A.status,tracking:{id:"dislike_button",gaContext:{action:"disliked"===A.status?"undislike":"dislike",label:x?"authenticated":"unauthenticated"}},...a})]})}var x=i(55279),A=i(45756);const y=(0,i(821).Iy)({type:"shared/reaction/REACT",commandName:"Pr.Domain.Reaction.Commands.React"});function w(e,t,i){return{commandName:"Pr.Domain.Reaction.Commands.React",payload:{resourceType:e,resourceId:t,reaction:i}}}var b=i(37743),j=i(42673);function Vote(e){const t=(0,x.A)(),i=(0,A.A)(),r=e.resource.isLiked?"liked":e.resource.isDisliked?"disliked":"empty",[c,g]=(0,n.useState)({hasBeenOpenedAtLeastOnce:!1,isPopoverOpen:!1,numberOfLikes:e.resource.numberOfLikes,status:r}),h=e.listing?.brand?.id;return(0,u.jsx)(l.A,{content:(n,a,l)=>(0,u.jsx)(o.h,{ref:n,...(0,j.A)(a,{style:{display:c.isPopoverOpen?void 0:"none"},className:s()("bs-popover-auto","popover")}),children:(0,u.jsx)(RestrictedLikeButton,{onChange:t=>{const n=c;return g(e=>{const i=(()=>{switch(t){case"like":return 1;case"no_like":return-1;default:return"liked"===e.status?-1:0}})();return{...e,isPopoverOpen:!1,numberOfLikes:Math.max(0,e.numberOfLikes+i),status:"like"===t?"liked":"dislike"===t?"disliked":"empty",hasLikedOrDisliked:"like"===t||"dislike"===t}}),i.dispatch(y({resourceType:e.resourceType,resourceId:e.resource.id,reaction:t})).then(()=>l(),e=>{throw g(n),e})},deferredActionType:`like_${e.resourceType}`,getAuthenticationProps:i=>({deferredActionEnvelope:{action:y({resourceType:e.resourceType,resourceId:e.resource.id,reaction:i}),context:{anchor:(()=>{if("answer"===e.resourceType){return`#question-${e.resource.questionId}`}return`#${e.resourceType}-${e.resource.id}`})()}},passwordlessAuthenticationSettings:{deferredCommand:(0,b.A)(w(e.resourceType,e.resource.id,i),h?{listingBrandId:h}:void 0),redirectTo:(()=>{switch(e.resourceType){case"answer":const i=e.resource;return t.generate("www.public.single_question",{questionId:i.questionId});case"question":const n=e.resource;return t.generate("www.public.single_question",{questionId:n.id});case"review":const r=e.resource;return t.generate("www.public.single_review",{reviewId:r.id});default:return""}})()}}),initialStatus:r,initialNumberOfLikes:e.resource.numberOfLikes,buttonsProps:e.buttonsProps,margin:1})}),onChange:()=>{},onClose:()=>g(e=>({...e,isPopoverOpen:!1})),onOpen:()=>g(e=>({...e,isPopoverOpen:!0})),isOpen:c.hasBeenOpenedAtLeastOnce,children:t=>(0,u.jsx)(a.A.Button,{"data-show-likes":e.resource.isLiked||e.resource.isDisliked||c.hasLikedOrDisliked||c.numberOfLikes>1,"data-show-popover":c.isPopoverOpen,...(0,j.A)({ref:t,onClick:()=>g(e=>({...e,hasBeenOpenedAtLeastOnce:!0,isPopoverOpen:!e.isPopoverOpen})),tracking:{id:"vote_button"}},e.buttonsProps),children:(0,u.jsx)(d.sA,{id:"shared.action_button.vote.button.label",defaultMessage:"{numberOfLikes, plural, =0 {Vote} other {Vote (#)}}",values:{numberOfLikes:c.numberOfLikes}})})})}},52603(e,t,i){i.d(t,{A:()=>ActorSelectorDropdown});var n=i(85906),r=i(4484),s=i(35447),o=i(16940),a=i(14202);function l(e){return e.context.facet===o.sj.BRAND_MANAGER&&e.context.brand?e.context.brand.name:e.context.facet===o.sj.CATALOG_MANAGER&&e.context.externalCatalog?e.context.externalCatalog.name:e.displayName}
1function ActorSelectorDropdown(e){const[t,i]=(0,n.useState)(e.candidates.length>0?e.candidates[0]:void 0);return e.candidates.length<2||!t?e.children({chosenActor:t,dropdown:null}):e.children({chosenActor:t,dropdown:(0,a.jsx)(r.A,{content:n=>e.candidates.map(e=>(0,a.jsx)(r.A.Item,{onClick:()=>{i(e),n()},isActive:t.id===e.id&&t.context.role===e.context.role&&t.context.facet===e.context.facet,children:(0,a.jsx)(s.A,{keep:!0,children:l(e)})},`${e.id}-${e.context.role}-${e.context.facet}`)),children:(0,a.jsx)(r.A.Toggle,{buttonSize:"small",buttonStyle:"link",children:e.label(l(t))})})})}},25115(e,t,i){i.r(t),i.d(t,{default:()=>AdBadge});var n=i(57830),r=i(57220),s=(i(74954),i(14202));function AdBadge(e){return(0,s.jsx)(r.A,{content:"This is a sponsored ad. Please note that advertising companies do not influence our review procedures.",innerProps:{fontSize:"small",lineHeight:"small"},placement:"top-end",children:(0,s.jsx)(n.A,{badgeStyle:"light",cursor:"help",flexShrink:0,fontWeight:"normal",textTransform:"capitalize",...e,children:"Ad"})})}},64507(e,t,i){i.r(t),i.d(t,{default:()=>SearchResultAd});var n=i(54212),r=i(2571),s=i(14202);function SearchResultAd(e){return(0,s.jsx)(r.A,{component:"SearchResultAd",listing:e.listing,customContext:e.trackingContext,children:(0,s.jsx)(n.A,{listing:e.listing,category:e.category,featuredReviewBody:e.advertisementSettings?.featuredReviewBody,quoteRequestCollectionStrategy:e.quoteRequestCollectionStrategy,isSponsored:!0,activeTab:"none",tracking:{vendors:["ga","influx"],influxContext:{attributes:{targetClickRouteName:"listing"},measurement:"catalog_resource.click"}},className:"enable-container-query"})})}},79139(e,t,i){i.d(t,{A:()=>AffiliateLinkButton});var n=i(45919),r=i(25343),s=(i(74954),i(14202));function AffiliateLinkButton(e){const{affiliateLink:t,categories:i,slug:o,ref:a,...l}=e;if(!t||!i||0===i.length)return null;const c=(d=i.map(e=>e.hook)).includes("services")?d.includes("shops")?"Buy now":d.includes("comparison-websites")?"Compare now":"Go to site":d.includes("products")?"Buy now":void 0;var d;return c?(0,s.jsx)(r.A.Static,{ref:a,to:t,openNewTab:!0,element:n.A.Link,buttonStyle:"warning",nowrap:!0,tracking:{id:"affiliate_link_button",gaContext:{label:o}},...l,children:c}):null}},47467(e,t,i){i.d(t,{A:()=>AnchorLink});var n=i(35447),r=i(2298),s=i(75104),o=i(14202);function AnchorLink(e){const{element:t="a",children:i,target:a,focusOnScroll:l,focusTarget:c,onClick:d,...u}=e;return(0,o.jsx)(n.A,{element:t,href:a,onClick:e=>{e.preventDefault(),r.A.emit("lazyContentRenderingWasRequested"),setTimeout(()=>{(0,s.A)(a,{onFinish:()=>{if(l){const e=document.querySelector(c||a);e&&e.focus()}history.pushState(null,"anchor-link",a)}})},10),d&&d(e)},...u,children:i})}},17055(e,t,i){i.d(t,{A:()=>ae});var n=i(85906),r=i(34084),s=i(19363),o=i(14202);function Accordion(e){return(0,o.jsx)(s.h,{marginBottom:4,...e})}var a=i(78801),l=i.n(a);const c={"accordion-item":"OvDkm1","accordion-item-body":"IymihC",isExpanded:"eF5dt9"},d=(0,n.createContext)({isExpanded:!1,toggle:()=>{}});d.displayName="AccordionItemContext";const u=d,g=l().bind(c);function AccordionItem(e){const[t,i]=(0,n.useState)(e.isExpanded||!1),r=(0,n.useCallback)(()=>{i(e=>!e)},[i]),a=(0,n.useMemo)(()=>({isExpanded:t,toggle:r}),[t,r]);return(0,o.jsx)(u.Provider,{value:a,children:(0,o.jsx)(s.h,{className:g("accordion-item"),children:e.children})})}const h=l().bind(c);function AccordionItemBody({children:e}){const{isExpanded:t}=(0,n.useContext)(u);return(0,o.jsx)(s.h,{overflow:"hidden",className:h("accordion-item-body",{isExpanded:t}),children:e})}var m=i(62227),p=i(41125);function AccordionItemHeading({children:e}){const{toggle:t,isExpanded:i}=(0,n.useContext)(u);return(0,o.jsxs)(p.A,{onClick:t,level:4,alignItems:"center",cursor:"pointer",display:"flex",fontWeight:"normal",gap:2,paddingY:3,textStyle:"link",children:[(0,o.jsx)(m.A,{name:i?"minus":"plus",flexShrink:0}),e]})}var f=i(17597),v=i(36171),x=i(45714),A=i(45919),y=i(23481),w=i(90419),b=i(32475),j=i(42891),S=i(77637),k=i(59955),R=i(85816),C=i(39646),T=i(25343),I=i(49329);const N=l().bind({note:"gY865U","note-info":"ZDjbmT","note-danger":"TdHShn","note-success":"HGF
1Hcp","note-warning":"lVSW1a"});function Note_Note(e){const{noteStyle:t,className:i,...n}=e;return(0,o.jsx)(s.h,{marginBottom:4,padding:3,trimY:!0,className:N({note:!0},t&&`note-${t}`,i),...n})}var _=i(62047),P=i(76339);i(74954);function ProsAndConsList(e){const{prosAndCons:{cons:t,pros:i},renderHeader:n=!0,size:r,useMarkdown:s,...a}=e,l=!!t?.length,c=!!i?.length;return l||c?(0,o.jsxs)(S.A,{fontSize:e.size,gutter:4,numberOfColumns:{xs:1,md:l&&c?2:1},...a,children:[c&&(0,o.jsxs)(j.A,{size:1,display:"flex",flexDirection:"column",gap:2,children:[n&&(0,o.jsx)(p.A,{level:4,fake:!0,textStyle:"success",children:"Pros"}),e.prosAndCons.pros?.map((t,i)=>(0,o.jsx)(P.A,{size:e.size,type:"pro",content:t,useMarkdown:e.useMarkdown},i))]}),l&&(0,o.jsxs)(j.A,{size:1,display:"flex",flexDirection:"column",gap:2,children:[n&&(0,o.jsx)(p.A,{level:4,fake:!0,textStyle:"danger",children:"Cons"}),e.prosAndCons.cons?.map((t,i)=>(0,o.jsx)(P.A,{size:e.size,type:"con",content:t,useMarkdown:e.useMarkdown},i))]})]}):null}var E=i(94083),L=i(44021),M=i(83485),O=i(10790),D=i(52477),V=i(14901),W=i(35447),F=i(55279),B=i(73442);const z=new Map;var q=i(86490),U=i(63197),H=i(57483);var G=i(24082),Y=i(16940),$=i(27535),X=i(71526),K=i(42673),Q=i(97075);const J="vNOpVj",Z="EYPT5v",ee="Jxv1vJ",te=(0,r.Ay)({resolved:{},chunkName:()=>"shared-components-LazySearchResults-LazySearchResults",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("shared-components-LazySearchResults-LazySearchResults").then(()=>i(47211)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>47211}),ie=(0,r.Ay)({resolved:{},chunkName:()=>"shared-components-LazyListingsComparisonTable-LazyListingsComparisonTable",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("shared-components-LazyListingsComparisonTable-LazyListingsComparisonTable").then(()=>i(32583)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>32583}),ne=(0,r.Ay)({resolved:{},chunkName:()=>"shared-components-LazyDisqusWidget-LazyDisqusWidget",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("shared-components-LazyDisqusWidget-LazyDisqusWidget").then(()=>i(37587)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>37587}),re=(0,r.Ay)({resolved:{},chunkName:()=>"shared-components-Typeform-Typeform",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("shared-components-Typeform-Typeform").then(()=>i(80381)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>80381}),se=(0,r.Ay)({resolved:{},chunkName:()=>"shared-components-ImageZoom-ImageZoom",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("shared-components-ImageZoom-ImageZoom").then(()=>i(16571)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>16571}),oe=(0,r.Ay)({resolved:{},chunkName:()=>"shared-components-EmbedYoutubeVideo-EmbedYoutubeVideo",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("shared-components-EmbedYoutubeVideo-EmbedYoutubeVideo").then(()=>i(17241)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>17241});function ListingSnippet(e){const t=(0,F.A)(),i=function(e,t,i,r={}){const s=(0,B.A)(),{debounceFor:o=500,...a}
1=r,l=o,[c,d]=(0,n.useState)({status:"loading"});return(0,n.useEffect)(()=>{function n(e,t){d(e?{status:"error",error:e}:t?{status:"success",response:t}:{status:"error",error:new Error("Unexpected empty response")})}let r=z.get(e);return r||(r={values:new Set,subscribers:new Set},z.set(e,r)),r.values.add(t),r.subscribers.add(n),r.timeoutId&&clearTimeout(r.timeoutId),r.timeoutId=setTimeout(()=>{s.get(i(Array.from(r.values.values())),{...a,cancelToken:r.cancelToken}).then(e=>{for(const t of r.subscribers)t(void 0,e)}).catch(e=>{for(const t of r.subscribers)t(e)}).finally(()=>{z.delete(e)})},l),()=>{r.values.delete(t),r.subscribers.delete(n),0===r.subscribers.size&&(r.cancelToken?.cancel(),r.timeoutId&&clearTimeout(r.timeoutId),z.delete(e))}},[e,t]),c}("article-listing-snippets",e.listingSlug,function(e){return t.generate("api.public.listing.search",{listingSlugs:e,catalogId:"au",limit:50})});if("loading"===i.status||"error"===i.status)return null;const r=i.response.find(t=>t.slug===e.listingSlug);return r?(0,o.jsxs)(s.h,{alignItems:"center",display:"flex",flexDirection:"column",gap:1,position:"relative",children:[(0,o.jsx)(x.A,{entry:r,size:"medium"}),(0,o.jsx)(E.A,{routeName:"www.public.listing",params:{listingSlug:e.listingSlug},openNewTab:!0,breakWord:!0,headingStyle:4,stretchedLink:!0,textAlign:"center",textDecorationHover:"underline",textStyle:"link",children:(0,X.A)({listing:r})}),(0,o.jsx)(M.A,{rating:r.statistics.rating,size:"xsmall",label:(0,o.jsx)(_.A,{numberOfReviews:r.statistics.numberOfReviews}),fontSize:"small",textStyle:"muted"})]}):null}function ListingSnippetWithPrice({listingSlug:e,storeName:t,itemUrl:i}){return(0,o.jsxs)(s.h,{textAlign:"center",children:[(0,o.jsx)(ListingSnippet,{listingSlug:e}),(0,o.jsxs)(s.h,{alignItems:"center",display:"flex",flexDirection:"column",marginTop:2,position:"relative",children:[(0,o.jsx)(T.A.Static,{to:i,openNewTab:!0,element:A.A.Link,buttonSize:"small",buttonStyle:"warning",stretchedLink:!0,children:"Check Price"}),(0,o.jsx)(W.A,{fontSize:"small",fontWeight:"bold",textStyle:"primary",children:t})]})]})}function ArticleMarkdown_RatingWithLabel({children:e,label:t,rating:i,size:n,...r}){return e?(0,o.jsx)(M.A,{display:"inline-flex",...r,element:W.A,rating:i,size:n,label:(0,o.jsx)(W.A,{keep:!0,children:e})}):t?(0,o.jsx)(M.A,{display:"inline-flex",...r,element:W.A,rating:i,size:n,label:t}):(0,o.jsx)(M.A,{display:"inline-flex",...r,element:W.A,rating:i,size:n,label:(0,$.A)(i)})}function VisibleTo(e){const t=(0,q.A)(G.Jj);return t.context.role!==Y.Xh.ACCOUNTANT&&e.roles.includes(t.context.role)?e.children:null}const Pro=({children:e})=>(0,o.jsx)(P.A,{type:"pro",content:e}),Con=({children:e})=>(0,o.jsx)(P.A,{type:"con",content:e});function Stack(e){const{space:t,spaceX:i,spaceY:n,...r}=e;return(0,o.jsx)(s.h,{display:"flex",doNotRenderIfEmpty:!0,flexDirection:"column",gap:t,gapX:i,gapY:n,removeChildMargins:!0,...r})}function ArticleMarkdown_ArticleMarkdown(e){const{componentsAvailable:t,...i}=e,{logger:r}=(0,n.useContext)(U.A);return(0,o.jsx)(I.A,{...i,componentsAvailable:{Accordion,AccordionItem,AccordionItemBody,AccordionItemHeading,Advert
1isement:e=>(0,o.jsx)(f.A,{spot:"public.article.main",sizeMappingKey:e.size||"layout",...e}),Alert:({alertStyle:e,...t})=>(0,o.jsx)(v.A,{alertStyle:"critical"===e?"danger":e,marginBottom:4,...t}),ArticleImage:e=>{const{maxHeight:t=300,zoomable:i,...n}=e,r=(0,o.jsx)(C.A,{collection:Q.pM.articleImage,fluid:!0,withoutEnlargement:!0,cdnImageHeight:t,...n});return i?(0,o.jsx)(se,{children:r}):r},Box:s.h,BuyingGuideImage:e=>{const{maxHeight:t,maxWidth:i,zoomable:n,...r}=e,s=(0,o.jsx)(C.A,{collection:Q.pM.buyingGuide,fluid:!0,withoutEnlargement:!0,cdnImageHeight:t,cdnImageWidth:i,...r});return n?(0,o.jsx)(se,{children:s}):s},Card:e=>(0,o.jsx)(y.A,{marginBottom:3,...e}),CardBlock:e=>(0,o.jsx)(y.A.Block,{trimY:!0,...e}),CategoryLink:(0,H.A)(({slug:e,...t})=>(0,o.jsx)(E.A,{routeName:"www.public.category_search",params:{categorySlug:e,...t.params},openNewTab:!0,textDecorationHover:"underline",textStyle:"link",...t})),Centre:e=>(0,o.jsx)(Stack,{alignItems:"center",textAlign:"center",...e}),CallToAction:(0,H.A)(({url:e,...t})=>e?(0,o.jsx)(T.A.Static,{to:e,openNewTab:!0,element:A.A.Link,buttonStyle:"primary",display:{xs:"block",md:"inline-block"},...t}):(0,o.jsx)(A.A,{buttonStyle:"primary",display:{xs:"block",md:"inline-block"},...t})),Col:j.A,CollapsibleContent:e=>(0,o.jsx)(w.A,{...e}),Comments:({id:e,...t})=>(0,o.jsx)(ne,{shortname:e,...t}),Con:(0,H.A)(Con),Details:e=>(0,o.jsx)(s.h,{element:"details",marginBottom:4,...e}),Divider:b.A,EmbedYoutubeVideo:e=>(0,o.jsx)(oe,{...e,useLightweightPlaceholder:!0}),Figcaption:e=>(0,o.jsx)(W.A,{element:"figcaption",fontSize:"small",...e}),Figure:e=>(0,o.jsx)("figure",{...e}),FloatingElementsContainer:e=>(0,o.jsx)(s.h,{trimY:!0,...(0,K.A)(e,{className:ee})}),FloatingLeftContainer:e=>(0,o.jsx)(s.h,{trimY:!0,...(0,K.A)(e,{className:J})}),FloatingRightContainer:e=>(0,o.jsx)(s.h,{trimY:!0,...(0,K.A)(e,{className:Z})}),Heading:p.A,Image:e=>{const{zoomable:t,...i}=e,n=(0,o.jsx)(R.A,{loading:"lazy",...i});return t?(0,o.jsx)(se,{children:n}):n},Instagram:e=>(0,o.jsx)("iframe",{src:`https://instagram.com/p/${e.id}/embed`,allowFullScreen:!0,height:e.height,width:e.width}),JsonLd:(a=e=>(0,o.jsx)("script",{type:"application/ld+json",suppressHydrationWarning:!0,...e}),{component:a,parser:"raw"}),Lead:e=>(0,o.jsx)(D.A,{marginBottom:4,...e}),Link:T.A,ListingsComparisonTable:e=>(0,o.jsx)(ie,{...e}),ListingLink:(0,H.A)(({slug:e,...t})=>(0,o.jsx)(E.A,{routeName:"www.public.listing",params:{listingSlug:e,...t.params},openNewTab:!0,textDecorationHover:"underline",textStyle:"link",...t})),ListingSnippet:e=>(0,o.jsx)(ListingSnippet,{...e}),ListingSnippetWithPrice:e=>(0,o.jsx)(ListingSnippetWithPrice,{...e}),Note:Note_Note,Paragraph:V.A,Pro:(0,H.A)(Pro),ProsAndCons:({children:e})=>{const t=[],i=[];return n.Children.map(e,e=>{e.type===Pro?t.push(e.props.children):e.type===Con&&i.push(e.props.children)}),(0,o.jsx)(ProsAndConsList,{prosAndCons:{pros:t,cons:i},marginBottom:4})},PublicLink:(0,H.A)(({routeName:e,...t})=>(0,o.jsx)(E.A,{routeName:e,openNewTab:!0,textDecorationHover:"underline",textStyle:"link",...t})),Rating:e=>(0,o.jsx)(L.A,{display:"inline-flex",element:W.A,...e}),RatingWithLabel:ArticleMarkdown_RatingWithLabel,Row:S.A,SearchResults:e=>(0,o.jsx)(te,{disableComparison:!0,...e}),Seo:({title:e})=>(0,o.jsx)(k.A,{title:e}),Spacer:({size:e})=>(0,o.jsx)(s.h,{paddingY:e||4}),Stack,Summary:(0,H.A)(e=>(0,o.jsx)("summary",{...e})),Table:O.A,TableBody:e=>(0,o.jsx)(O.A.Body,{...e}),TableCell:e=>(0,o.jsx)(O.A.Cell,{...e}),TableFooter:e=>(0,o.jsx)(O.A.Footer,{...e}),TableHeader:e=>(0,o.jsx)(O.A.Header,{...e}),TableHeaderCell:e=>(0,o.jsx)(O.A.Cell,{header:!0,...e}),TableRow:e=>(0,o.jsx)(O.A.Row,{...e}),Text:(0,H.A)(e=>(0,o.jsx)(W.A,{...e})),TextAccent:(0,H.A)(e=>(0,o.jsx)(W.A,{textStyle:"dark",...e})),TextMuted:(0,H.A)(e=>(0,o.jsx)(W.A,{textStyle:"muted",...e})),TextPrimary:(0,H.A)(e=>(0,o.jsx)(W.A,{textStyle:"primary",...e})),Typeform:re,VisibleTo,...t}});var a}const ae=(0,n.memo)(ArticleMarkdown_ArticleMarkdown)},41448(e,t,i){i.d(t,{A:()=>AttachmentThumbnail_AttachmentThumbnail});var n=i(85906),r=i(78801),s=i.n(r),o=i(19363),a=i(62227),l=i(39646),c=i(35447);var d=i(36922),u=i(14202);const g=s().bind({"video-attachment-container":"lAR4lO","play-icon":"x2Zz9P",blur:"aZOUpc"});
1function AttachmentThumbnail_AttachmentThumbnail(e){const t={height:e.height,width:e.width,alt:"Thumbnail",fit:"cover",loading:e.loading};if("video"===e.attachment.type)return(0,u.jsxs)(o.h,{className:g("video-attachment-container"),children:[(0,u.jsx)(a.A,{name:"play",className:g("play-icon")}),(0,u.jsx)(d.A,{attachment:e.attachment,responsiveSizes:e.responsiveSizes,className:g({blur:e.blur}),style:e.style,...t})]});const i=(0,u.jsx)(l.A,{collection:e.collection,id:e.attachment.id,...t,cdnImageHeight:e.cdnImageHeight,cdnImageWidth:e.cdnImageWidth,cdnVersion:e.cdnVersion,withoutEnlargement:e.withoutEnlargement,responsiveSizes:e.responsiveSizes,className:g({blur:e.blur}),style:e.style});return e.overlay?(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)(c.A,{alignItems:"center",backgroundColor:"overlay",display:"flex",headingStyle:4,justifyContent:"center",margin:"auto",padding:2,position:"absolute-bottom",textStyle:"white",children:e.overlay}),i]}):i}},36922(e,t,i){i.d(t,{A:()=>VideoAttachmentThumbnail});var n=i(33803),r=i(19363),s=i(62227),o=i(85816),a=i(55279),l=i(42673),c=i(14202);const d={height:180,width:320};function VideoAttachmentThumbnail(e){const{attachment:t,usePlaceholder:i,responsiveSizes:u,...g}=e,h=(0,a.A)();function m(e,i){if("cloudflare_stream"===t.source){const n=new URL(h.generate("cdn.cloudflare_stream_thumbnail",{id:t.id,width:e,fit:"fill"})),r=new URL(h.generate("cdn.cloudflare_stream_thumbnail",{id:t.id,width:2*e,fit:"fill"}));return i&&(n.searchParams.set("height",i.toString()),r.searchParams.set("height",(2*i).toString())),{src:n.toString(),srcSet:`${r.toString()} 2x`}}return(i??e)>=180?{src:h.generate("cdn.youtube_video_thumbnail",{id:t.id,size:"mqdefault"})}:{src:h.generate("cdn.youtube_video_thumbnail",{id:t.id,size:"default"}),srcSet:h.generate("cdn.youtube_video_thumbnail",{id:t.id,size:"mqdefault"})+" 2x"}}return i?(0,c.jsx)(r.h,{style:{width:g.width,height:g.height},display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"secondary",borderRadius:!0,children:(0,c.jsx)(s.A,{name:"play"})}):u?(0,c.jsx)(o.A,{alt:"Thumbnail",...g,responsiveSizes:(0,n.A)(u,e=>({width:e.width,height:e.height,...m(e.width,e.height)}))}):(0,c.jsx)(o.A,{alt:"Thumbnail",...m(d.width,d.height),...(0,l.A)(g,{onMouseEnter:e=>{"cloudflare_stream"===t.source&&(e.currentTarget.setAttribute("data-original-src",e.currentTarget.getAttribute("src")??""),e.currentTarget.setAttribute("data-original-srcset",e.currentTarget.getAttribute("srcset")??""),e.currentTarget.setAttribute("src",h.generate("cdn.cloudflare_stream_thumbnail_gif",{id:t.id,width:d.width,height:d.height,fit:"fill",duration:"5s"})),e.currentTarget.removeAttribute("srcset"))},onMouseLeave:e=>{"cloudflare_stream"===t.source&&(e.currentTarget.setAttribute("src",e.currentTarget.getAttribute("data-original-src")??""),e.currentTarget.setAttribute("srcset",e.currentTarget.getAttribute("data-original-srcset")??""))},style:{objectPosition:"50% 50%"}})})}},55599(e,t,i){i.d(t,{A:()=>AttachmentsCarousel});var n=i(85906),r=i(41448),s=i(36383),o=i(66307),a=i(74954),l=i(14202);function AttachmentsCarousel(e){const{attachments:t,collection:i,numberOfThumbnails:c,blur:d,onClickAttachment:u,getAttachmentStyle:g,...h}=e,[m,p]=(0,n.useState)(null);if(0===t.length)return null;const f=[...t.filter(e=>"video"===e.type),...t.filter(e=>"image"===e.type)],v=f.slice(0,c),x=t.length-v.length;return(0,l.jsxs)(n.Fragment,{children:[null!==m&&(0,l.jsx)(s.A,{collection:i,medias:f,initialIndex:m,onClose:()=>p(null)}),(0,l.jsx)(o.A,{unstyled:!0,...h,children:v.map((e,t)=>(0,l.jsx)(o.A.Item,{onClick:()=>{u?u(e):p(t)},cursor:"zoom-in",overflow:"hidden",position:"relative",tracking:{id:"thumbnail",gaContext:{label:String(t+1)}},children:(0,l.jsx)(r.A,{attachment:e,collection:i,loading:"lazy",overlay:x>0&&v.length===t+1?(0,l.jsx)(a.sA,{id:"attachments_carousel.thumbnail.overlay_count",defaultMessage:"+{invisibleAttachmentsCount, number}",values:{invisibleAttachmentsCount:x}}):void 0,style:g?.(e,t),cdnImageWidth:720,cdnVersion:4,withoutEnlargement:!0,blur:d})},t))})]})}},52739(e,t,i){i.d(t,{A:()=>AuthorDisplayName});var n=i(98703),r=(i(74954),i(16940)),s=i(14202);function AuthorDisplayName(e){const{author:t,...i}=e;return t.context.role===r.Xh.CONSUMER?(0,s.jsx)(n.A,{author:t,cursor:"pointer",textDecorationHover:"underline",...i,children:t.displayName}):t.context.role===r.Xh.COMPANY_REPRESENTATIVE?t.context.facet===r.sj.BRA
1ND_MANAGER&&t.context.brand?t.context.brand.name:t.context.facet===r.sj.CATALOG_MANAGER&&t.context.externalCatalog?t.context.externalCatalog.name:t.displayName:t.context.role===r.Xh.STAFF?"ProductReview Staff":null}},98703(e,t,i){i.d(t,{A:()=>AuthorLink});var n=i(25343),r=i(35447),s=i(55279),o=i(86490),a=i(59091),l=i(16940),c=i(92523),d=i(14202);function AuthorLink(e){const{author:t,children:i,destinationApp:u="public",openNewTab:g,...h}=e,m=(0,o.A)(a.dl),p=(0,s.A)();if("admin"===u){const e=n.A.Static;return(0,d.jsx)(e,{to:`/admin/${m}/users/${t.id}/moderation`,openNewTab:g,...h,children:i})}return t.context.role!==l.Xh.CONSUMER||t.isDeactivated?i:(0,d.jsx)(r.A,{role:"link",onClick:(0,c.A)(p.generate("www.public.consumer_profile",{consumerId:t.id},s.i.ABSOLUTE_URL)),cursor:"pointer",tracking:{id:"link_to_profile"},...h,children:i})}},37627(e,t,i){i.d(t,{A:()=>Avatar});var n=i(98703),r=i(8628),s=i(16940),o=i(97075),a=i(60183),l=i(14202);function Avatar(e){function t(t){if(e.user.context.role===s.Xh.COMPANY_REPRESENTATIVE){if(e.user.context.facet===s.sj.BRAND_MANAGER&&e.user.context.brand){const i=e.user.context.brand;let n=o.pM.brandManagerAvatar,s="placeholder";return i.brandManagerAvatarId?(n=o.pM.brandManagerAvatar,s=i.brandManagerAvatarId):i.logoId&&(n=o.pM.brandLogo,s=i.logoId),(0,l.jsx)(r.A,{...t,s3Collection:n,avatar:{avatarId:s,type:"s3"},hideBadge:e.hideBadge,size:e.size,alt:i.name,title:i.name,loading:e.loading})}if(e.user.context.facet===s.sj.CATALOG_MANAGER&&e.user.context.externalCatalog){const{externalCatalog:i}=e.user.context;if(i.brand)return(0,l.jsx)(r.A,{...t,s3Collection:o.pM.brandManagerAvatar,avatar:{avatarId:i.brand.brandManagerAvatarId||"placeholder",type:"s3"},hideBadge:e.hideBadge,size:e.size,alt:i.name,title:i.name,loading:e.loading})}}return e.user.context.role===s.Xh.STAFF?(0,l.jsx)(r.A,{...t,s3Collection:o.pM.avatar,avatar:{avatarId:"placeholder",type:"s3"},size:e.size,alt:"ProductReview.com.au",title:"ProductReview.com.au",loading:e.loading}):e.user.isDeactivated?(0,l.jsx)(r.A,{...t,s3Collection:o.pM.avatar,avatar:{avatarId:"placeholder",type:"s3"},size:e.size,alt:e.user.displayName,title:e.user.displayName,loading:e.loading}):(0,l.jsx)(r.A,{...t,s3Collection:o.pM.avatar,avatar:e.user.avatar,badge:(()=>{const t=a.ay.find(t=>t.test(e.user));return t?.badge})(),hideBadge:e.hideBadge,size:e.size,alt:e.user.displayName,title:e.user.displayName,loading:e.loading})}return e.hideLink||e.user.isDeactivated||e.user.context.role!==s.Xh.CONSUMER?t({flexShrink:0,ref:e.ref}):(0,l.jsx)(n.A,{ref:e.ref,author:e.user,destinationApp:e.linkDestinationApp,flexShrink:0,children:t()})}},8628(e,t,i){i.d(t,{A:()=>AvatarImage});var n=i(19363),r=i(62227),s=i(85816),o=i(39646),a=i(97075),l=i(60183),c=i(14202);function AvatarImage(e){const{s3Collection:t=a.pM.avatar,avatar:i,size:d,alt:u,title:g,badge:h,hideBadge:m,loading:p="lazy",...f}=e,v=l._y[d],x=l.s6[d],A=l.sq[d];return"facebook"===i.type?(0,c.jsxs)(n.h,{display:"inline-block",position:"relative",...f,children:[h&&(0,c.jsx)(r.A,{name:`badge-${h}`,width:v,height:v,position:"absolute-bottom-right"}),(0,c.jsx)(s.A,{src:`https://graph.facebook.com/${i.facebookId}/picture?width=${A}&height=${A}`,height:A,width:A,borderRadius:"circle",alt:u,title:g})]}):"google"===i.type?(0,c.jsxs)(n.h,{display:"inline-block",position:"relative",...f,children:[h&&(0,c.jsx)(r.A,{name:`badge-${h}`,width:v,height:v,position:"absolute-bottom-right"}),(0,c.jsx)(s.A,{src:i.googleAvatarUrl,height:A,width:A,borderRadius:"circle",alt:u,title:g})]}):"external_url"===i.type?(0,c.jsxs)(n.h,{display:"inline-block",position:"relative",...f,children:[h&&(0,c.jsx)(r.A,{name:`badge-${h}`,width:v,height:v,position:"absolute-bottom-right"}),(0,c.jsx)(s.A,{src:i.externalUrl,height:A,width:A,borderRadius:"circle",alt:u,title:g})]}):m||!h?(0,c.jsx)(o.A,{collection:t,id:i.avatarId,cdnImageHeight:x,cdnImageWidth:x,height:A,width:A,alt:u,title:g,loading:p,fit:"cover",borderRadius:"circle",...f}):(0,c.jsxs)(n.h,{display:"inline-block",position:"relative",...f,children:[(0,c.jsx)(r.A,{name:`badge-${h}`,width:v,height:v,position:"absolute-bottom-right"}
1),(0,c.jsx)(o.A,{collection:t,id:i.avatarId,cdnImageHeight:x,cdnImageWidth:x,height:A,width:A,alt:u,title:g,loading:p,fit:"cover",borderRadius:"circle"})]})}},60183(e,t,i){i.d(t,["_y",0,{xsmall:12,small:16,medium:20,large:24,review:20},"ay",0,[{badge:"facebook",test:e=>"consumer"===e.context.role&&e.isLinkedWithFacebook},{badge:"google",test:e=>"consumer"===e.context.role&&e.isLinkedWithGoogle}],"s6",0,{xsmall:80,small:80,medium:80,large:80,review:80},"sq",0,{xsmall:24,small:32,medium:48,large:80,review:40}])},26730(e,t,i){i.d(t,{A:()=>PromisifiedButton});var n=i(85906),r=i(19738),s=i(45919),o=i(12732);i(74954);var a=i(49075),l=i(12960),c=i(26084),d=i(14202);const u="Error! Try again",g="Done!";function PromisifiedButton(e){const{onClick:t,onSuccess:i,onError:h,reactToError:m,reactToSuccess:p,errorLabel:f=u,successLabel:v=g,isReadOnly:x,showSuccessMessageForMs:A=3e3,...y}=e,{callback:w,isLoading:b,error:j,response:S}=function(e){const[t,i]=(0,n.useState)({isLoading:!1,error:null}),r=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1})),{...t,callback:async(...t)=>{try{const s=e(...t);if((n=s)&&"function"==typeof n.then){i({isLoading:!0});const e=await s;return r.current&&i({response:e,isLoading:!1}),e}return console.error(`useAsyncCallback(fn, ...args): fn did not return a promise. fn: ${e.toString()}`),s}catch(e){throw r.current&&i({isLoading:!1,error:e}),e}var n}}}(t),{showNotification:k}=(0,c.A)(),[R,C]=(0,n.useState)(!1),T=j&&!(j instanceof r.AL)&&!(j instanceof a.A);return(0,n.useEffect)(()=>{void 0!==S&&(p&&C(!0),i&&i(S))},[S]),(0,n.useEffect)(()=>{let e;return R&&(e=window.setTimeout(()=>{C(!1)},A)),()=>{e&&clearTimeout(e)}},[R]),(0,n.useEffect)(()=>{T&&(h?h(j):m&&k({message:(0,d.jsx)(o.A,{error:j}),level:l.S.ERROR}))},[j]),(0,d.jsx)(s.A.Button,{...y,onClick:x?void 0:w,buttonStyle:T&&m?"danger":y.buttonStyle,isDisabled:y.isDisabled||b,isLoading:b,children:R?v:T&&m?f:y.children})}},71123(e,t,i){i.d(t,{A:()=>ButtonGroup});var n=i(79400),r=i.n(n),s=i(19363),o=i(14202);function ButtonGroup(e){const{pill:t,className:i,...n}=e;return(0,o.jsx)(s.h,{role:"group",display:"inline-flex",className:r()({"btn-group--pill":t},"btn-group",i),...n})}},90419(e,t,i){i.d(t,{A:()=>CollapsibleContent});var n=i(85906),r=i(35447),s=(i(74954),i(14202));function CollapsibleContent(e){const{children:t,doNotRender:i=!1,expandLinkLabel:o="Read Moreâ¦"}
1=e,[a,l]=(0,n.useState)(!1),c={onClick:()=>l(!a),children:o,cursor:"pointer",textDecorationHover:"underline",textStyle:"link"};return i?a?t:(0,s.jsx)(r.A,{stretchedLink:!0,...c}):(0,s.jsxs)(n.Fragment,{children:[!a&&(0,s.jsx)(r.A,{...c,caret:"down",display:"block",marginBottom:4}),(0,s.jsx)(n.Activity,{mode:a?"visible":"hidden",children:t})]})}},70009(e,t,i){i.d(t,{A:()=>s});var n=i(85906),r=i(87855);function s(){const e=(0,n.useContext)(r.A);if(e)return e;throw new Error("useCollator: make sure it is inside a CollatorContext")}},83996(e,t,i){i.d(t,{A:()=>CopyToClipboard});var n,r,s=i(85906),o=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,g=((e,t,i)=>(i=null!=e?o(d(e)):{},((e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of c(t))u.call(e,r)||r===i||a(e,r,{get:()=>t[r],enumerable:!(n=l(t,r))||n.enumerable});return e})(!t&&e&&e.__esModule?i:a(i,"default",{value:e,enumerable:!0}),e)))((n={"node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,i=[],n=0;n<e.rangeCount;n++)i.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||i.forEac
1h(function(t){e.addRange(t)}),t&&t.focus()}}}},function(){return r||(0,n[c(n)[0]])((r={exports:{}}).exports,r),r.exports})(),1).default;async function h(e,t){if(!t.format&&!t.onCopy)return await navigator.clipboard.writeText(e),!0;var i=function(e,t){var i={};return i["text/plain"]=new Blob([e],{type:"text/plain"}),t&&"text/plain"!==t&&(i[t]=new Blob([e],{type:t})),new ClipboardItem(i)}(e,t.format);return t.onCopy&&(i=t.onCopy(i)||i),await navigator.clipboard.write([i]),!0}function m(e,t){var i=g(),n=document.createRange(),r=document.getSelection(),s=function(e,t){var i=document.createElement("span");return i.textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",function(i){i.stopPropagation(),t.format&&(i.preventDefault(),i.clipboardData&&i.clipboardData.setData(t.format,e)),t.onCopy&&i.clipboardData&&t.onCopy(i.clipboardData)}),i}(e,t),o=function(){let e=document.activeElement;for(;e;){if("DIALOG"===e.tagName&&e.open)return e;e=e.parentElement}return null}()||document.fullscreenElement||document.body,a=!1;try{if(o.appendChild(s),n.selectNodeContents(s),r.removeAllRanges(),r.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}finally{"function"==typeof r.removeRange?r.removeRange(n):r.removeAllRanges(),o.removeChild(s),i()}return a}var p=async function(e,t={}){var i=t.debug||!1;if(window.isSecureContext&&navigator.clipboard)try{return await h(e,t)}catch(e){i&&console.error("unable to copy using navigator.clipboard: ",e),i&&console.warn("falling back to execCommand")}
1else i&&!window.isSecureContext&&console.warn("copy-to-clipboard: navigator.clipboard requires a secure context (HTTPS/localhost). Falling back to execCommand.");try{return m(e,t)}catch(r){if(i&&console.error("unable to copy using execCommand: ",r),i&&console.error("falling back to prompt"),t.fallbackToPrompt){var n=function(e){var t=((navigator.userAgentData?/mac/i.test(navigator.userAgentData.platform):/mac os x/i.test(navigator.userAgent))?"â":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter");window.prompt(n,e)}}return!1};function CopyToClipboard(e){const{text:t,onCopy:i,options:n,children:r,...o}=e,[a,l]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e;return a&&(e=window.setTimeout(()=>{l(!1)},3e3)),()=>{e&&clearTimeout(e)}},[a]);const c=async()=>{const e="function"==typeof t?t():t,r=await p(e,n);i?.(e,r),l(!0)};if("function"==typeof r)return r({isCopied:a,onClick:c});const d=s.Children.only(r);return(0,s.cloneElement)(d,{...o,onClick:async e=>{await c(),d?.props&&"function"==typeof d.props.onClick&&d.props.onClick(e)}})}},55315(e,t,i){i.d(t,{A:()=>EmbedCloudflareStreamVideo});var n=i(19363),r=i(55279),s=i(14202);function EmbedCloudflareStreamVideo(e){const{id:t,...i}=e,o=(0,r.A)();return(0,s.jsx)(n.h,{...i,element:"iframe",src:o.generate("cdn.cloudflare_stream_video_embed",{id:t,autoplay:!0}),allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;",allowFullScreen:!0,frameBorder:"0",height:"100%",title:"Video",tracking:{id:`cloudflare_stream_video_play.${t}`},width:"100%"})}},17241(e,t,i){i.r(t),i.d(t,{default:()=>EmbedYoutubeVideo_EmbedYoutubeVideo});var n=i(85906),r=i(78801),s=i.n(r),o=i(19363),a=i(85816),l=i(55279),c=i(74954);var d=i(14202);const u=s().bind({ratio:"UF5YJ2","ratio-1x1":"TVYyVr","ratio-4x3":"lFU3Am","ratio-16x9":"P_XlHX","ratio-21x9":"OdOUK2","playButton-background":"RKQu2E",videoContainer:"B1qAjJ"});function EmbedYoutubeVideo_EmbedYoutubeVideo(e){const{id:t,ratio:i="16x9",useLightweightPlaceholder:r=!1,className:s,...g}=e,[h,m]=((0,c.tz)(),(0,n.useState)(r)),p=(0,l.A)();return(0,d.jsx)(o.h,{onClick:()=>m(!1),cursor:h?"pointer":void 0,className:u("videoContainer","ratio",i?`ratio-${i}`:void 0,s),tracking:{id:`video_play.${t}`},...g,children:h?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(a.A,{src:p.generate("cdn.youtube_video_thumbnail",{id:t,size:"hqdefault"}),srcSet:`${p.generate("cdn.youtube_video_thumbnail",{id:t,size:"hqdefault"})} 992w, ${p.generate("cdn.youtube_video_thumbnail",{id:t,size:"maxresdefault"})}`,alt:"Youtube Video Thumbnail",fit:"cover"}),(0,d.jsx)(o.h,{title:"Play video","aria-hidden":!0,alignItems:"center",display:"flex",justifyContent:"center",children:(0,d.jsxs)("svg",{viewBox:"0 0 68 48",height:"48",width:"68",children:[(0,d.jsx)("path",{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00",className:u("playButton-background")}),(0,d.jsx)("path",{d:"M 45,24 27,14 27,34",fill:"#fff"})]})})]}):(0,d.jsx)("iframe",{title:"Youtube Video",width:"100%",height:"100%",src:p.generate("cdn.youtube_video_embed",{id:t,autoplay:1}),frameBorder:"0",allowFullScreen:!0,allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"})})}},95405(e,t,i){i.d(t,{A:()=>EntryPictureWithMediaGallery});var n=i(85906),r=i(45714),s=i(57830),o=i(19363),a=i(62227),l=i(36383),c=i(97075),d=i(14202);function EntryPictureWithMediaGallery(e){const{entry:t,medias:i,showCount:u=!0,loading:g="eager",...h}=e,[m,p]=(0,n.useState)(!1),f={entry:t,fluid:!1,htmlId:"listing-header-main-picture",size:"xsmall",loading:g};return i?.length?(0,d.jsxs)(n.Fragment,{children:[m&&(0,d.jsx)(l.A,{collection:c.pM.listingPicture,medias:i,initialIndex:0,onClose:()=>p(!1)}),(0,d.jsxs)(o.h,{...h,onClick:()=>p(!0),cursor:"zoom-in",position:"relative",tracking:{id:"image",gaContext:{label:t.slug}},children:[u&&i.length>1?(0,d.jsx)(s.A.Count,{count:i.length,badgeStyle:"dark",negativeMargin:1,position:"absolute-bottom-right"}):(0,d.jsx)(a.A,{name:"zoom",height:12,width:12,backgroundColor:"white",borderRadius:"top-left",position:"absolute-bottom-right"}),(0,d.jsx)(r.A,{...f})]})]}):(0,d.jsx)(r.A,{...f,...h})}},52703(e,t,i){i.d(t,{A:()=>EntrySpecificationLabel});var n=i(62227),r=i(49329),s=i(57220),o=i(26707),a=i(14202);function EntrySpecificationLabel(e){const{field:{label:t,description:i},iconProps:l}=e;if(i){const e=i.includes("://");
1return(0,a.jsx)(o.A,{string:t,icon:(0,a.jsx)(s.A,{content:(0,a.jsx)(r.A,{source:i,initialParser:"inline"}),ignoreEventsOnContent:!e,trackingId:"description",children:(0,a.jsx)(n.A,{name:"question-mark-circle",cursor:"help",...l})})})}return t}},5475(e,t,i){i.d(t,{A:()=>FloatingAdminLinksDropdown});var n=i(45919),r=i(4484),s=i(62227),o=i(25343),a=i(86490),l=(i(74954),i(24082)),c=i(16940),d=i(14202);function FloatingAdminLinksDropdown(e){return(0,a.A)(l.Ke).context.role!==c.Xh.STAFF||0===e.links.length?null:(0,d.jsx)(r.A,{content:t=>e.links.map(e=>(0,d.jsx)(r.A.Item,{children:(0,d.jsx)(o.A.Static,{openNewTab:!0,to:e.url,onClick:()=>{t()},children:e.label||"Go to admin"})},e.url)),children:(0,d.jsx)(n.A,{buttonStyle:"link",icon:!0,position:"absolute-top-right",elevation:2,textStyle:"danger",title:"Admin links",style:{background:"rgba(255, 255, 255, 0.6)",border:"1px dotted rgba(0, 0, 0, 0.1)"},...e.buttonProps,children:(0,d.jsx)(s.A,{name:"ellipsis-horizontal"})})})}},57623(e,t,i){i.d(t,{A:()=>GenericFormErrorMessage});var n=i(36171),r=i(12732),s=i(2063),o=i(49075),a=i(14202);function GenericFormErrorMessage(e){const{error:t,form:i,...l}=e,{control:c}=(0,s.xW)();return t instanceof o.A?null:(0,a.jsx)(n.A,{"data-form-error-for":i??c?.name,alertStyle:"danger",...l,children:(0,a.jsx)(r.A,{error:t})})}},54051(e,t,i){i.d(t,{A:()=>GoToAdminLink});var n=i(25343),r=i(55279),s=(i(74954),i(14202));const o="Go to admin";function GoToAdminLink(e){const t=(0,r.A)(),{withLinkStyle:i,routeName:a,params:l,children:c,...d}=e;let u=o;return"function"==typeof c&&(u=c(o)),(0,s.jsx)(n.A.Static,{to:t.generate(a,l),openNewTab:!0,textDecorationHover:i?"underline":void 0,textStyle:i?"link":void 0,...d,children:u})}},76585(e,t,i){i.d(t,{A:()=>HasPermission});var n=i(96610);function HasPermission(e){const{yes:t,no:i,...r}=e,s=(0,n.A)(r);return s.hasPermission?"function"==typeof t?t(s.candidate):null:"function"==typeof i?i():null}},46893(e,t,i){i.d(t,{A:()=>HomeBuildersHomeDesignButton});var n=i(45919),r=i(25343),s=(i(74954),i(14202));function HomeBuildersHomeDesignButton(e){const{url:t,...i}=e;return(0,s.jsx)(r.A.Static,{to:t,external:!0,element:n.A.Link,tracking:{id:"home_design_button"},...i,children:"See home designs"})}},68271(e,t,i){var n=i(74222);const r=i(85906).createContext({itemType:"(unknown)",limit:0,isLimitReached:!0,selectedItems:[],addToComparison:n.A,removeFromComparison:n.A,removeAllFromComparison:n.A,compare:n.A,isModalOpen:!1,openComparisonModal:n.A,openComparisonModalWithItems:n.A,closeComparisonModal:n.A});r.displayName="ItemsComparisonContext";const s=r;i.d(t,["A",0,s])},64307(e,t,i){i.d(t,{A:()=>LegacySpecificationValueFormatted});var n=i(12765),r=i(74954),s=i(14202);function LegacySpecificationValueFormatted({legacyValue:e}){if("date"===e.inputType&&"string"==typeof e.value)return(0,s.jsx)(r.XU,{value:e.value,options:{month:"short",year:"numeric"}});if("boolean"===e.inputType)return(0,s.jsx)(r.sA,{id:"legacy_specification_value_formatted.boolean",defaultMessage:"{value, select, yes {Yes} no {No}}",values:{value:e.value?"yes":"no"}});if(Array.isArray(e.value))return(0,s.jsx)(n.A,{items:e.value,truncateAfter:1/0});const t=e.customChoice||e.value;if(e.categoryAttribute){const{valuePrefix:i,valueSuffix:n}=e.categoryAttribute;return`${i||""}${t}${n||""}`}return t}},53613(e,t,i){i.d(t,{A:()=>ListingReviewAttachmentsFromCollectionsModal});var n=i(1477),r=i(36383),s=i(21230),o=i(14202);function ListingReviewAttachmentsFromCollectionsModal(e){const t=[];let i=0;for(const n of e.collections)for(const r of n.paginatedCollection.collection)for(const n of r.attachments)n.id===e.initialSelectedAttachmentId&&(i=t.length),t.push({...n,review:r});return 0===t.length?null:(0,o.jsx)(r.A,{collection:s.pM.reviewAttachment,medias:t,disableCircularNavigation:!0,onClose:e.onClose,initialIndex:i,renderSidebar:t=>(0,o.jsx)(n.A,{attachment:t,reviewSpecifications:e.reviewSpecifications,listing:e.listing})})}},1477(e,t,i){i.d(t,{A:()=>ListingAttachmentsModalSidebarReview_ListingAttachmentsModalSidebarReview});
1var n=i(85906),r=i(78801),s=i.n(r),o=i(17597),a=i(56703),l=i(19363),c=i(19107),d=i(58223),u=i(39604);var g=i(14202);const h=s().bind({"review-container":"iZCf7Q","with-optimistic-height":"RFsH26"});function ListingAttachmentsModalSidebarReview_ListingAttachmentsModalSidebarReview(e){const{advertisingIntensity:t}=(0,n.useContext)(a.A);return(0,g.jsxs)(l.h,{display:"flex",flexDirection:"column",flexShrink:0,overflowY:"auto",paddingTop:{xs:3,lg:5},className:h("enable-container-query","review-container",{"with-optimistic-height":!t.hasSponsoredListing}),children:[e.attachment.review?(0,g.jsx)(d.A,{review:e.attachment.review,partitionedSpecifications:(0,u.t)(e.reviewSpecifications,e.attachment.review.specificationValues,e.attachment.review.resolvedReferences),listing:e.listing,defaultExpanded:!0,forceOneColumnLayout:!0,showAttachments:!1,showCommentsSection:!1,containerProps:{flexGrow:1,marginTop:{lg:5}}},e.attachment.review.id):(0,g.jsx)(c.A,{}),(0,g.jsx)(o.A,{spot:"public.media_gallery",deviceTypes:["desktop"],refreshPolicy:{timeBasedRefresh:{},userActionRefresh:{minimumViewableTimeInSeconds:30}},sizeMappingKey:"mediaGallerySidebar",containerProps:{alignItems:"center",backgroundColor:"white",display:{xs:"none",lg:"flex"},elevation:0,flexDirection:"column",flexShrink:0,justifyContent:"center",paddingY:{xs:3,lg:4},position:"sticky-bottom"}})]})}},32252(e,t,i){i.d(t,{A:()=>ListingReviewHighlightedAttachments});var n=i(85906),r=i(47467),s=i(41448),o=i(37225),a=i(66307),l=(i(74954),i(97075)),c=i(2385),d=i(78441),u=i(36383),g=i(45756),h=i(22287),m=i(28842),p=i(1477);var f=i(14202);function ListingReviewHighlightedAttachmentsModal(e){const{dispatch:t}=(0,g.A)(),[i,r]=(0,n.useState)(()=>e.initialAttachments),s=(0,n.useRef)(!1),[o,a]=(0,n.useState)(!1),[v,x]=(0,n.useState)(1),[A,y]=(0,n.useState)(1),[w,b]=(0,n.useState)(e.reviewSpecifications),[j,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{s.current=!0},[]),(0,n.useEffect)(()=>{e.reviewSpecifications||t((0,m.N)(e.listing.slug)).then(e=>{b(e.reviewSpecifications)})},[e.listing.id]),(0,n.useEffect)(()=>{a(!0),t((0,h.h9)(e.listing.slug,{page:v,prependHighlightedAttachments:1===v})).then(e=>{a(!1),1===v&&S(!0),s.current&&(y(e.paging.totalPageCount),r(t=>{const i=(0,d.A)(e.collection,e=>e.id),n=[];for(const e of t)if(e.review)n.push(e);else if(e.reviewId in i)for(const t of i[e.reviewId].attachments)n.push({...t,review:i[e.reviewId],reviewId:e.reviewId});return(0,c.A)(n.concat(function(e){const t=[];for(let i=0;i<e.length;i++){const n=e[i];if(n.attachments)for(let e=0;e<n.attachments.length;e++){const i=n.attachments[e];t.push({...i,reviewId:n.id,review:n})}}return t}(e.collection)),e=>e.id)}))},()=>{a(!1)})},[v]);const k=(0,n.useCallback)(e=>{!o&&e>=i.length-2&&v<A&&x(e=>e+1)},[v,A,i]);return(0,f.jsx)(u.A,{collection:l.pM.reviewAttachment,medias:i,hasFirstPageBeenLoaded:j,onClose:e.onClose,onNext:k,areAllAttachmentsLoaded:v===A&&!o,initialIndex:i.findIndex(t=>t.id===e.initialHighlightedAttachmentId),isBuffering:o,renderSidebar:t=>(0,f.jsx)(p.A,{attachment:t,reviewSpecifications:w,listing:e.listing})})}function ListingReviewHighlightedAttachments(e){const{highlightedReviewAttachmentsSection:t,listing:i,reviewSpecifications:c,imageLoading:d,disableGallery:u=!1,...g}
1=e,[h,m]=(0,n.useState)(!1),[p,v]=(0,n.useState)(),x=[];for(const e of t.highlightedAttachments)x.push({...e.attachment,reviewId:e.reviewId});return(0,f.jsxs)(n.Fragment,{children:[h&&(0,f.jsx)(ListingReviewHighlightedAttachmentsModal,{listing:i,reviewSpecifications:c,initialAttachments:x,initialHighlightedAttachmentId:p,onClose:()=>m(!1)}),(0,f.jsxs)(a.A,{unstyled:!0,"data-number-of-attachments":t.highlightedAttachments.length,display:"grid",gap:1,position:"relative",style:{"--pr-number-of-attachments":t.highlightedAttachments.length},...g,children:[u&&(0,f.jsx)(a.A.Item,{position:"absolute-center",children:(0,f.jsx)(r.A,{target:"#review-with-attachments",stretchedLink:!0,tracking:{id:"anchor_to_reviews_with_attachments_section"}})}),t.highlightedAttachments.map((e,i)=>{const n=(()=>{if(!u)return{onClick:()=>{v(e.attachment.id),m(!0)},cursor:"zoom-in",tracking:{id:`picture.${i}`}}})();return(0,f.jsx)(a.A.Item,{overflow:"hidden",position:"relative",...n,children:(0,f.jsx)(s.A,{attachment:e.attachment,collection:l.pM.reviewAttachment,loading:d??"lazy",height:"100%",width:"100%",cdnImageWidth:720,withoutEnlargement:!0,cdnVersion:4,overlay:i+1===t.highlightedAttachments.length?"See all":void 0,style:{objectPosition:(()=>{if("image"===e.attachment.type&&e.attachment.metadata&&e.attachment.metadata.focalBox)return(0,o.k)(e.attachment.metadata.width,e.attachment.metadata.height,96/78,78,e.attachment.metadata.focalBox)})()}})},e.attachment.id)})]})]})}},50083(e,t,i){function n(e,t){if(0===e.length)return[];const i={};let n=0;for(const t of e)for(const e of t.highlightedAttachments)i[t.reviewId]||(i[t.reviewId]=[]),i[t.reviewId].push({reviewId:t.reviewId,attachment:e}),n+=1;const r=Object.keys(i),s={};let o=0;for(;o<t&&o<n;)for(const e of r){const n=i[e]?.shift();if(n&&(s[e]||(s[e]=[]),s[e].push(n),o+=1,o>=t))break}const a=[];for(const e in s)a.push(...s[e]);return a}i.d(t,{A:()=>n})},36383(e,t,i){i.d(t,{A:()=>MediaGallery_MediaGallery});var n=i(85906),r=i(78801),s=i.n(r),o=i(25419),a=i(78327),l=i(19363),c=i(55315),d=i(17241),u=i(12732),g=i(85816);const h=new Set;function ImageLoader(e){const[t,i]=(0,n.useState)({isLoading:h.has(e.src),error:null});return(0,n.useEffect)(()=>{let t;if(h.has(e.src))i({isLoading:!1,error:null});else if(t=new window.Image,t.src=e.src,i({isLoading:!t.complete,error:null}),!t.complete)return t.onload=()=>{i(e=>({...e,error:null,isLoading:!1})),h.add(e.src)},t.onerror=()=>{i(e=>({...e,error:new Error("Failed to load image"),isLoading:!1}))},()=>{t&&(t.onload=null,t.onerror=null)}},[e.src]),e.children(t)}var m=i(57259),p=i(10014),f=i(30145),v=(i(74954),i(46365));var x=i(14202);const A=s().bind({"carousel-container":"UVyaRN","carousel-container--sidebar":"xLicJF","carousel-arrow-container":"kOucWb","carousel-arrow-container--disabled":"XwKJUb","carousel-arrow-contaienr--takeover":"wYJli5","carousel-arrow":"bJIYf9"}),y={next:"absolute-right",prev:"absolute-left"};function MediaGalleryArrow(e){return(0,x.jsx)(l.h,{cursor:"pointer",display:"flex",elevation:e.displayOverMedia?1:void 0,flexDirection:"column",flexShrink:0,justifyContent:"center",alignItems:"prev"===e.direction?"start":"end",padding:{xs:3,md:4},position:e.displayOverMedia?y[e.direction]:void 0,className:A({"carousel-arrow-container":!0,"carousel-arrow-container--disabled":e.isDisabled,"carousel-arrow-contaienr--takeover":e.displayOverMedia}),onClick:e.onClick,children:e.isLoading?(0,x.jsx)(m.A,{size:"medium",textStyle:"white"}):(0,x.jsx)(a.A,{direction:e.direction,className:A("carousel-arrow")})})}const w="Loadingâ¦";function b(){if(navigator.connection){if("4g"===navigator.connection.effectiveType){if(navigator.connection.downlink>=10)return 90;if(navigator.connection.downlink>=5)return 80}return 70}return 80}function MediaGallery_MediaGallery(e){const[t,i]=(0,n.useState)(null),r=(0,n.useRef)(!1),s=(0,n.useRef)(null),a=(0,f.A)(),h=(0,o.A)();function m(t){return(0,v.A)()?a.getCdnImageSrc({width:720,withoutEnlargement:!0,cover:!0,collection:e.collection,id:t.id,v:4}):a.getCdnImageSrc({width:1e3,quality:b(),withoutEnlargement:!0,collection:e.collection,id:t.id})}(0,n.useEffect)(()=>{e.isBuffering||setTimeout(()=>{document.dispatchEvent(new CustomEvent("renderUpdate"))},1)},[t,e.isBuffering]);const y=(0,n.useCallback)(()=>
1{if(h.current?.emit("meaningfulUserAction"),t){const n=e.medias.findIndex(e=>e.id===t.id);if(n===e.medias.length-1&&!e.isBuffering){if(e.disableCircularNavigation)return;return void i(e.medias[0])}n<e.medias.length-1&&i(e.medias[n+1]),e.onNext&&e.onNext(n+1)}},[e.medias,t,e.isBuffering]),j=(0,n.useCallback)(()=>{if(h.current?.emit("meaningfulUserAction"),t){const n=e.medias.findIndex(e=>e.id===t.id);if(0===n){if(e.disableCircularNavigation)return;return void(void 0!==e.areAllAttachmentsLoaded&&!0!==e.areAllAttachmentsLoaded||(i(e.medias[e.medias.length-1]),e.onPrev&&e.onPrev(e.medias.length-1)))}i(e.medias[n-1]),e.onPrev&&e.onPrev(n-1)}},[e.medias,t,e.areAllAttachmentsLoaded]),S=(0,n.useCallback)(e=>{e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||("ArrowLeft"===e.code?j():"ArrowRight"===e.code&&y())},[j,y]);return(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1})),(0,n.useEffect)(()=>(document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}),[S]),(0,n.useEffect)(()=>{e.medias.length>0&&("number"==typeof e.initialIndex&&e.initialIndex in e.medias?i(e.medias[e.initialIndex]):i(e.medias[0]))},[e.hasFirstPageBeenLoaded,e.initialIndex]),(0,n.useEffect)(()=>{if(!t)return;let i=0;for(let n=e.medias.findIndex(e=>e.id===t.id)+1;n<e.medias.length&&!(i>=3);n++){const t=e.medias[n];if("image"===t.type){(new window.Image).src=m(t),i++}}},[t]),(0,x.jsx)(p.A,{size:"fullscreen",isAdFriendlyModal:!0,reject:()=>e.onClose(),resolve:()=>e.onClose(),headerProps:{noBorder:!0,padding:{xs:2,md:4},paddingLeft:{xs:3,md:4},shadow:"small"},bodyProps:{display:"flex",flexDirection:{xs:"column",lg:"row"}},pullToClose:{directions:(()=>{const t=["down"];return e.renderSidebar||t.push("up"),1===e.medias.length&&t.push("left","right"),t})(),sensivity:"high"},content:()=>(0,x.jsxs)(n.Fragment,{children:[(0,x.jsx)(l.h,{className:A("carousel-container",e.renderSidebar&&"carousel-container--sidebar"),onClick:t=>{e.medias.length>1||e.renderSidebar||t.target===s.current&&e.onClose()},children:t&&(0,x.jsxs)(n.Fragment,{children:[e.medias.length>1&&(0,x.jsx)(MediaGalleryArrow,{onClick:j,direction:"prev",displayOverMedia:"image"===t.type,isDisabled:t.id===e.medias[0]?.id}),(0,x.jsx)(l.h,{ref:s,alignItems:"center",display:"flex",flexGrow:1,justifyContent:"center",overflow:"hidden",position:"relative",style:{transition:"0.25s"},children:(()=>{if("image"===t.type){const e=m(t);return(0,x.jsx)(ImageLoader,{src:e,children:({isLoading:t,error:i})=>t?w:i?(0,x.jsx)(u.A,{error:i}):(0,x.jsx)(g.A,{src:e,fluid:!0})})}return(0,x.jsxs)(n.Fragment,{children:["cloudflare_stream"===t.source?(0,x.jsx)(c.A,{id:t.id,margin:"auto",position:"absolute-center"}):(0,x.jsx)(d.default,{id:t.id,margin:"auto",position:"absolute-center"}),w]})})()}),e.medias.length>1&&(0,x.jsx)(MediaGalleryArrow,{onClick:y,direction:"next",displayOverMedia:"image"===t.type,isLoading:e.isBuffering,isDisabled:e.disableCircularNavigation&&t.id===e.medias[e.medias.length-1]?.id})]})}),t&&e.renderSidebar&&e.renderSidebar(t)]})})}},49739(e,t,i){i.d(t,{A:()=>ModalTrigger});var n=i(85906),r=i(10014),s=i(14202);function ModalTrigger(e){const{children:t,isOpen:i=!1,onChange:o,...a}=e,[l,c]=(0,n.useState)(i),d=()=>{c(!1),o&&o(!1)};return(0,n.useEffect)(()=>{c(i||!1)},[i]),(0,s.jsxs)(n.Fragment,{children:[(0,n.cloneElement)(t,{onClick:e=>{e.preventDefault(),"function"==typeof t.props.onClick&&t.props.onClick(e),c(!0),o&&o(!0)}}),l&&(0,s.jsx)(r.A,{...a,resolve:d,reject:d})]})}},62047(e,t,i){i.d(t,{A:()=>NumberOfReviews});var n=i(35447),r=i(74954),s=i(14202);function NumberOfReviews(e){return(0,s.jsx)(r.sA,{id:"number_of_reviews",defaultMessage:"{numberOfReviews, plural,\n =0 {No reviews yet}\n =1 {{formattedNumberOfReviews} review}\n other {{formattedNumberOfReviews} reviews}\n}",values:{numberOfReviews:e.numberOfReviews,formattedNumberOfReviews:e.numberProps?(0,s.jsx)(n.A,{...e.numberProps,children:(0,s.jsx)(r.Gr,{value:e.numberOfReviews})}):(0,s.jsx)(r.Gr,{value:e.numberOfReviews})}})}},35787(e,t,i){i.d(t,{A:()=>OffersResponsivePopover});var n=i(19363),r=i(64521),s=i(52905),o=(i(74954),i(14202));function OffersResponsivePopover(e){const{popoverPlacement:t="bottom"}=e,i=(0,o.jsx)(r.A,{offers:e.offers});return(0,o.jsx)(s.A,{modalOptions:{title:"Offers",content:i,headerProps:{padding:2,paddingLeft:4}},popoverOptions:{content:(0,o.jsx)(n.h,{overflowY:"auto",style:{borderRadius:"var(--bs-popover-inner-border-radius)",maxHeight:240,minWidth:"calc(var(--bs-popover-max-width) - var(--bs-popover-border-width) * 2)"},children:i}),minWidthEqualsToReference:!0,placement:t,trigger:"click"},children:t=>e.children(t)})}},64521(e,t,i){i.d(t,{A:()=>OffersTable_OffersTable});var n=i(85906),r=i(78801),s=i.n(r),o=i(4484),a=i(66307),l=i(74954),c=i(45714),d=i(19363),u=i(62227),g=i(39646),h=i(25343),m=i(80579),p=i(41125),f=i(35447),v=i(97075);const x={"offers-table-row":"aB5Co9","offer-name":"iGRg5Q"};var A=i(14202);const y=s().bind(x);function Row(e){const{offer:t,...i}=e;return(0,A.jsxs)(h.A.Static,{to:t.url,external:!0,alignItems:"center",display:"flex",gapX:3,position:"relative",...i,children:["known"===t.partner.type&&t.partner.entry?(0,A.jsx)(c.A,{entry:t.partner.entry,size:"xsmall",flexShrink:0}):t.partner.logoId?(0,A.jsx)(g.A,{collection:v.pM.partnerLogo,id:t.partner.logoId,alt:t.partner.name,height:48,width:96,flexShrink:0}):null,(0,A.jsx)(f.A,{flexGrow:1,flexShrink:1,fontSize:"small",textStyle:"muted",className:y("offer-name"),children:t.name}),(0,A.jsxs)(d.h,{display:"flex",gap:3,marginLeft:"auto",flexShrink:0,children:[(0,A.jsx)(p.A,{level:4,fake:!0,stretchedLink:!0,textAlign:"right",textDecorationHover:"underline",children:(0,A.jsx)(m.A,{amount:t.price.amount/100,currency:t.price.currency,hideCentsIfWhole:!0})}
1),(0,A.jsx)(u.A,{name:"chevron-right",height:16,width:16,alignSelf:"center",flexShrink:0,textStyle:"muted"})]})]},t.id)}const w=s().bind(x);function OffersTable_OffersTable(e){const{defaultNumberOfOffersVisible:t=1/0,offers:i}=e,r=i.length,[s,c]=(0,n.useState)(t>r);if(0===r)return null;const d=s?r:t,u=r-d;return(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(a.A,{appContext:{namespace:"offers_table"},unstyled:!0,className:"enable-container-query",children:i.slice(0,d).map((e,t)=>(0,A.jsx)(a.A.Item,{children:(0,A.jsx)(Row,{offer:e,backgroundColor:t%2?"body":void 0,padding:2,paddingRight:3,className:w("offers-table-row"),tracking:{id:"offer",gaContext:{label:e.url}}})},e.id))}),!s&&(0,A.jsx)(o.A.Toggle,{onClick:()=>c(!0),block:!0,buttonSize:"small",buttonStyle:"warning",marginTop:1,tracking:{id:"offers_table.see_all_offers"},children:(0,A.jsx)(l.sA,{id:"offers_table.see_all_offers",defaultMessage:"{numberOfOffersHidden, plural,\n =0 {No more offers}\n =1 {See # more offer}\n other {See # more offers}\n}",values:{numberOfOffersHidden:u}})})]})}OffersTable_OffersTable.Row=Row},40299(e,t,i){i.d(t,{A:()=>Popover});var n=i(85906),r=i(79400),s=i.n(r),o=i(19363),a=i(88367),l=i(73469),c=i(42673),d=i(14202);function Popover(e){const{content:t,placement:i="top",trackingId:r,trigger:u="click",children:g,bodyProps:h,...m}=e,p=(e,i,n)=>(0,d.jsx)(o.h,{ref:e,...(0,c.A)(i,{className:s()("bs-popover-auto","popover")}),children:(0,d.jsx)(o.h,{appContext:r?{namespace:`${r}.popover`}:void 0,overflow:"hidden",...h,className:s()("popover-body",h?.className),children:"function"==typeof t?t(n,n):t})});return r?(0,d.jsx)(l.A,{id:`${r}.popover`,triggerEvent:"onOpen",children:e=>(0,d.jsx)(l.A,{id:r,triggerEvent:"onClose",children:t=>(0,d.jsx)(a.A,{content:p,placement:i,trigger:u,...(0,c.A)((0,c.A)(m,t),e),children:(e,t,i)=>{const r="function"==typeof g?g(i):g;return(0,n.cloneElement)(r,(0,c.A)({ref:e},(0,c.A)(r.props,t)))}})})}):(0,d.jsx)(a.A,{content:p,placement:i,trigger:u,...m,children:(e,t,i)=>{const r="function"==typeof g?g(i):g;return(0,n.cloneElement)(r,(0,c.A)({ref:e},(0,c.A)(r.props,t)))}})}},52905(e,t,i){i.d(t,{A:()=>ResponsivePopover});var n=i(49739),r=i(40299),s=i(3921),o=i(14202);function ResponsivePopover(e){return(0,s.A)()?(0,o.jsx)(n.A,{...e.modalOptions,children:"function"==typeof e.children?e.children():e.children}):(0,o.jsx)(r.A,{...e.popoverOptions,children:t=>"function"==typeof e.children?e.children(t):e.children})}},80579(e,t,i){i.d(t,{A:()=>Price});var n=i(74954),r=i(14202);function Price(e){const{amount:t,currency:i,isInCents:s=!1,hideCentsIfWhole:o}=e;let a=Number(t),l=2;return s&&(a/=100),o&&a%1==0&&(l=0),(0,r.jsx)(n.Gr,{value:a,options:{style:"currency",currency:i,minimumFractionDigits:l,maximumFractionDigits:2}})}},76339(e,t,i){i.d(t,{A:()=>ProsAndConsItem});var n=i(19363),r=i(62227),s=i(49329),o=i(14202);function ProsAndConsItem(e){const{size:t="medium",type:i,content:a,useMarkdown:l,...c}=e,d={small:17.5,medium:24}[t],u={small:1.5,medium:2}[t];return(0,o.jsxs)(n.h,{fontSize:t,...c,children:[(0,o.jsx)(r.A,{name:{con:"x-circle",pro:"check-circle"}[i],textStyle:{con:"danger",pro:"success"}[i],height:d,width:d,flexShrink:0,style:{transform:`translateX(-${u}px)`}}),l?(0,o.jsx)(s.A,{source:a,initialParser:"inline"}):a]})}},46128(e,t,i){i.d(t,{A:()=>TypeformQuoteRequestCallToActionButton});var n=i(85906),r=i(45919),s=i(10656),o=(i(74954),i(14202));function TypeformQuoteRequestCallToActionButton(e){const{collectionStrategy:t,listing:i,hiddenValues:a,isServiceProviderTargeted:l,label:c="Get a quote",...d}=e,u=(0,s.A)(),[g,h]=(0,n.useState)(!1),m=(0,n.useCallback)(async()=>{h(!0);(await u.makePopup({formId:t.typeformId,hiddenValues:{...a,component:"Button",listing_id:i?.id,listing_fullname:i?.fullName,is_service_provider_targeted:String(l),service_provider_status:i?.brand?.isManaged?"active":"inactive"}},{onReady:()=>{h(!1)},onSubmit:()=>{window.TrackingUtils&&window.TrackingUtils.triggerGaEvent({category:"request_quote_cta.button",action:"form_submitted"})}})).open()},[t]);return(0,o.jsx)(r.A.Button,{onClick:m,buttonStyle:"primary-light",isLoading:g,tracking:{id:"request_quote_cta",gaContext:{label:t.typeformId,dimensions:{component:"TypeformQuoteRequestCallToActionButton"}}},...d,children:c})}},83485(e,t,i){i.d(t,{A:()=>RatingWithLabel});var n=i(44021),r=i(14202);function RatingWithLabel(e){const{label:t,rating:i,size:s="medium",type:o="stars",...a}=e;return(0,r.jsx)(n.A,{rating:i,size:s,type:o,alignItems:"center",flexWrap:"wrap",gapX:{xxsmall:1,xsmall:1,small:1,medium:1,large:2}[s],...a,children:t})}},13449(e,t,i){i.d(t,{A:()=>ReportAction});var n=i(85906),r=i(58222),s=(i(74954),i(49075)),o=i(14202);const a=n.lazy(()=>i.e("shared_containers_modals_FlagReportModal_index_tsx").then(()=>i(50204)));function ReportAction(e){const{showModal:t}=(0,r.A)();return e.children(()=>{return t({title:(i={resourceType:e.resourceType},(0,o.jsxs)(o.Fragment,{children:["Report ",i.resourceType]})),content:t=>(0,o.jsx)(a,{onReport:t,onClose:async()=>{await t(),e.onClose?.()},listing:e.listing,resourceId:e.resourceId,resourceType:e.resourceType}),size:"large",...e.modalOptions}
1).then(e.onResolve).catch(e.onClose||s.O);var i})}},72542(e,t,i){i.d(t,{A:()=>gt});var n=i(31362),r=i(85906),s=i(78801),o=i.n(s),a=i(36171),l=i(55599),c=i(19363),d=i(85743),u=i(49329),g=i(55279),h=i(74954),m=i(14202);function ReviewRejectedMessage(e){const t=(0,h.tz)(),i=(0,g.A)();return(0,m.jsx)(a.A,{alertStyle:"warning",...e,children:(0,m.jsx)(u.A,{source:t.formatMessage({id:"public.review_rejected_message",defaultMessage:"Make sure your review is complying with both [ProductReview]({productReviewGuidelinesUrl}) and [ACCC]({accGuidelinesUrl}) guidelines. You can always edit it and submit it again."},{productReviewGuidelinesUrl:i.generate("www.public.posting_guidelines"),accGuidelinesUrl:"https://www.accc.gov.au/media-release/accc-releases-guidance-about-online-product-reviews"}),initialParser:"inline"})})}var p=i(86490),f=i(16346),v=i(24082),x=i(16940),A=i(21230),y=i(98379),w=i(17319),b=i(37627),j=i(62227),S=i(25343),k=i(12765),R=i(74702),C=i(83485),T=i(86922),I=i(35447),N=i(57220),_=i(92523),P=i(71526),E=i(78317),L=i(52752),M=i(8410),O=i(19107);const D=(0,r.lazy)(()=>Promise.resolve().then(()=>i(17319)));function ReviewActions(e){const t={buttonSize:"small",buttonStyle:"link",flexShrink:0,nowrap:!0,noBorder:!0,padding:1,textStyle:"muted"};return(0,m.jsxs)(y.A,{appContext:{namespace:"actions"},"data-layout":"submission-actions",alignItems:"center",alignSelf:"end",flexShrink:0,gap:1,negativeMargin:1,position:"absolute",textStyle:"muted",children:[(0,m.jsx)(M.A,{resource:e.review,resourceType:"review",listing:e.listing,buttonsProps:t}),e.showReviewActionsItems&&(0,m.jsx)(L.A,{alwaysOpenModal:!0,icon:!1,iconName:"ellipsis-horizontal",iconOnly:!0,...t,children:t=>(0,m.jsx)(r.Suspense,{fallback:(0,m.jsx)(O.A,{}),children:(0,m.jsx)(D,{review:e.review,listing:e.listing,onDelete:e.onDelete,onRestore:e.onRestore,close:t,buttonProps:{dropdownItem:!0}})})})]})}var V=i(52739),W=i(41125),F=i(23978),B=i(34719);const z=o().bind(E.A);function ReviewAuthorDisplayName(e){const{author:t,disableLinkToProfilePage:i}=e,n=(0,B.A)(t.locationName,t.legacyLocationName,1),s=t.statistics.numberOfReviews+t.statistics.numberOfComments+t.statistics.numberOfQuestions+t.statistics.numberOfAnswers;return(0,m.jsxs)(W.A,{level:5,fake:!0,fontWeight:"normal",lineHeight:"base",textStyle:"muted",truncate:!0,className:z("review-author-displayname"),children:[i?(0,m.jsx)(I.A,{fontWeight:"medium",textStyle:"body",nowrap:!0,children:t.displayName}):(0,m.jsx)(V.A,{author:t,openNewTab:!0,fontWeight:"medium",textStyle:"body",nowrap:!0}),(n||s>1)&&(0,m.jsxs)(F.A,{fontSize:"xsmall",truncate:!0,children:[n&&(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(r.Fragment,{children:"â"}),n]}),s>1&&(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(r.Fragment,{children:"â"}),(0,m.jsx)(h.sA,{id:"public.review.author.number_of_submissions",defaultMessage:"{numberOfSubmissions, number} posts",values:{numberOfSubmissions:s}})]})]})]})}const q=o().bind(E.A);function ReviewAuthor(e){const{disableLinkToProfilePage:t,listing:i,pinned:n,review:s,reviewMarkedAsIncentivisedByAuthor:o,showActions:a=!0,showReviewActionsItems:l=!0,showAmbassadorReview:c=!0,showApprovalStatus:d,showAuthor:p=!0,showAvatar:f=!0,showBestReview:v,showInMediation:A=!0,showSelectedReview:y=!0,showSubjectLink:w=!0,showVerifiedReview:E=!0,showVisibilityStatus:L,subjectNameKey:M,onDelete:O,onRestore:D}=e,V=((0,h.tz)(),(0,g.A)());return(0,m.jsxs)(R.A,{appContext:{namespace:"author"},gap:2,position:"relative",className:q("review-author"),children:[p&&f&&(0,m.jsx)(b.A,{user:s.author,size:"review",hideLink:t}),(0,m.jsxs)(R.A.Body,{style:{minWidth:0},children:[p&&(0,m.jsx)(ReviewAuthorDisplayName,{author:s.author,disableLinkToProfilePage:t}),(0,m.jsx)(C.A,{rating:s.rating,size:"xsmall",label:(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(r.Fragment,{children:"Â "}),(0,m.jsx)(k.A,{items:[d&&s.approvalStatus&&(0,m.jsx)(T.A,{backgroundColor:{[x.Gw.APPROVED]:"success-light",[x.Gw.PENDING]:"warning-light",[x.Gw.REJECTED]:"body"}[s.approvalStatus],borderRadius:!0,fontWeight:"semi-bold",paddingX:1,textStyle:{[x.Gw.APPROVED]:"success-dark",[x.Gw.PENDING]:"warning-dark",[x.Gw.REJECTED]:"muted"}[s.approvalStatus],children:(0,m.jsx)(h.sA,{id:"review.author.submission_status.label",defaultMessage:"{approvalStatus, select,\n pending {Pending}\n approved {Approved}\n rejected {Not Published}\n}",values:{approvalStatus:s.approvalStatus}})}),A&&s.isMediationPending&&(0,m.jsx)(T.A,{backgroundColor:"warning-light",borderRadius:!0,fontWeight:"semi-bold",paddingX:1,textStyle:"warning-dark",children:"In Mediation"}),L&&s.visibility&&(0,m.jsx)(T.A,{backgroundColor:{[x.J4.PRIVATE]:"danger-light",[x.J4.PUBLIC]:"success-light"}[s.visibility],borderRadius:!0,fontWeight:"semi-bold",paddingX:1,textStyle:{[x.J4.PRIVATE]:"danger-dark",[x.J4.PUBLIC]:"success-dark"}[s.visibility],children:(0,m.jsx)(h.sA,{id:"review.author.visibility_status.public.label",defaultMessage:"{visibility, select,\n public {Published}\n private {{isAuthor, select, true {Deleted by you} false {Deleted by the author}}}\n}",values:{visibility:s.visibility,isAuthor:s.isAuthor}})}),(0,m.jsx)(h.uZ,{value:s.firstPublishedAt||s.submittedAt,options:{format:"shortest"}},"review_date"),o&&(0,m.jsx)(N.A,{content:(0,m.jsx)(u.A,{source:"ProductReview has strict policies for incentivised reviews (compliant with ACCC guidelines) and verifies that companies offer incentives equally for both positive and negative reviews. [Learn more](https://support.productreview.com.au/hc/en-us/articles/360001254656).",initialParser:"inline"}),ignoreEventsOnContent:!1,children:(0,m.jsxs)(I.A,{cursor:"help",nowrap:!0,children:[(0,m.jsx)(j.A,{name:"gift",height:18,width:16}),(0,m.jsx)(r.Fragment,{children:"Â "}),"Fair Incentive"]})}),(()=>{const e=(0,m.jsxs)(I.A,{cursor:"help",nowrap:!0,children:[(0,m.jsx)(j.A,{name:"check-circle",height:18,width:16}),(0,m.jsx)(r.Fragment,{children:"Â "}),"Verified"]});return E&&s.isVerified?(0,m.jsx)(N.A,{content:"Evidence has been provided about the experience with the product or company.",children:e}):s.subject.type!==x.PQ.KNOWN_EXTERNAL_ENTRY&&s.subject.type!==x.PQ.UNKNOWN_EXTERNAL_ENTRY||!s.subject.externalCatalog?s.wasSolicitedByBrand?(0,m.jsx)(N.A,{content:(e=>(0,m.jsxs)(m.Fragment,{children:[e.brandNameOrSubjectName," uses tools provided by ProductReview to encourage their customers to write genuine reviews."]}))({brandNameOrSubjectName:s.subject.entry?.brand?.name||s.subject.entry?.fullName}),children:e}):null:(0,m.jsx)(N.A,{content:(t={externalCatalog:s.subject.externalCatalog.name},(0,m.jsxs)(m.Fragment,{children:["Collected in partnership with ",t.externalCatalog]})),children:e});var t})(),n&&i?(0,m.jsx)(N.A,{content:(0,m.jsx)(h.sA,{id:"review.author.pinned_review.tooltip",defaultMessage:"{hasBrand, select, true {Review pinned by {brandName}} false {Review pinned}}",values:{brandName:i.brand?.name,hasBrand:Boolean(i.brand)}}),children:(0,m.jsxs)(I.A,{cursor:"help",children:[(0,m.jsx)(j.A,{name:"pin",height:18,width:14,viewBox:"2 0 14 18"}),"Pinned"]})}):null,v&&(0,m.jsxs)(I.A,{children:[(0,m.jsx)(j.A,{name:"fire",height:18,width:16}),(0,m.jsx)(r.Fragment,{children:"Â "}),"Top Review"]}),c&&s.tags?.includes("by_ambassador")&&(0,m.jsxs)(S.A.Static,{to:"https://support.productreview.com.au/hc/en-us/articles/4401822024847",external:!0,position:"relative",children:[(0,m.jsx)(j.A,{name:"megaphone",height:18,width:16}),(0,m.jsx)(r.Fragment,{children:"Â "}),(0,m.jsx)(I.A,{stretchedLink:!0,textDecorationHover:"underline",children:"Ambassador Review"})]}),y&&s.tags?.includes("selected_review")&&(0,m.jsx)(N.A,{content:"Informative and well written reviews are hand picked by ProductReview staff.",children:(0,m.jsxs)(I.A,{cursor:"help",children:[(0,m.jsx)(j.A,{name:"star-outline",height:18,width:16}),(0,m.jsx)(r.Fragment,{children:"Â "}),"Selected Review"]})}),(()=>{if(!w)return null;if(!s.subject.entry)return null;if(i?.isLeaf&&i?.isRoot)return null;let e=(0,P.A)({listing:s.subject.entry,currentListing:i,nameKey:M||(s.subject.entry.level<=1?"shortName":"name")}
1);return e=e.split(" (")[0],(0,m.jsxs)(I.A,{role:"link",onClick:(0,_.A)(V.generate("www.public.listing",{listingSlug:s.subject.entry.slug},g.i.ABSOLUTE_URL)),cursor:"pointer",position:"relative",textStyle:"muted",truncate:!0,tracking:{id:"subject_badge"},children:[(0,m.jsx)(j.A,{name:"tag",height:18,width:16}),(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(I.A,{stretchedLink:!0,textDecorationHover:"underline",children:e})]})})()].filter(Boolean),defaultSeparator:(0,m.jsx)(r.Fragment,{children:"â"}),defaultSeparatorAsLast:!0,truncateAfter:1/0})]}),alignItems:"start",fontSize:"xsmall",gapX:void 0,textStyle:"muted",className:q("review-author-rating")})]}),a&&(0,m.jsx)(ReviewActions,{review:s,listing:i,onDelete:O,onRestore:D,showReviewActionsItems:l})]})}var U=i(98169),H=i(14901),G=i(32584),Y=i(81250),$=i(8246),X=i(70553),K=i(83115);function ReviewReadMoreButton(e){const t=(0,h.tz)();if(e.disableExpansion)return(0,m.jsx)(r.Fragment,{children:"â¦"});const i=e.showExpandComments&&e.review.comments&&e.review.comments.length?(0,m.jsxs)(I.A,{children:[(0,m.jsx)(j.A,{name:"chat-bubble-left",height:18,width:18}),(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(h.Gr,{value:e.review.comments.length})]}):null,n={onClick:e.onClick,role:"button",caret:"down",cursor:"pointer",stretchedLink:!0,textDecorationHover:"underline"};return e.showExpandSpecifications&&!e.isTruncated?(0,m.jsxs)(I.A,{nowrap:!0,children:[(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsxs)(I.A,{...n,title:"Click to show details",textStyle:"muted",children:["Show details",i&&(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(K.A,{}),i]})]})]}):e.showExpandComments?e.isTruncated?(0,m.jsxs)(I.A,{nowrap:!0,children:[(0,m.jsx)(r.Fragment,{children:"â¦Â "}),(0,m.jsxs)(I.A,{...n,title:"Click to read more",textStyle:"link",children:["Read more",i&&(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(K.A,{}),i]})]})]}):(0,m.jsxs)(I.A,{nowrap:!0,children:[(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(I.A,{...n,title:t.formatMessage({id:"review.body.show_replies.title",defaultMessage:"Click to show {numberOfComments, plural, =1 {reply} other {# replies}}"},{numberOfComments:e.review.comments.length}),textStyle:"muted",children:(0,m.jsx)(h.sA,{id:"review.body.show_replies.label",defaultMessage:"{numberOfComments, plural, =1 {Show reply} other {Show # replies}}",values:{numberOfComments:e.review.comments.length}})})]}):e.isTruncated?e.defaultReadMoreButton:null}const Q=o().bind(E.A);(0,h.YK)({clickToExpandParagraph:{id:"review.paragraph.click_to_expand",defaultMessage:"Click to expand"}});function J(e){return{type:"highlight",start:e.start,end:e.end,attributes:{},children:[e]}}function Z(e,t){return{type:"aspect",start:t.start,end:t.end,children:[e],aspectDistinctId:t.data.aspectDistinctId}}const ee=(e,t,i)=>(0,m.jsx)(H.A,{...e.attributes,breakWord:!0,children:t},i.key),te=(e,t,i)=>"aspect"===e.type||"highlight"===e.type?(0,m.jsx)("mark",{className:Q("mark"),children:e.children.map(i)},e.start):i(e,t);function ReviewBody(e){const{review:t,aspectsByDistinctId:i,isExpanded:n,inlineExcerpt:r,truncateAfter:s,truncateTo:o,showExpandComments:a,showExpandSpecifications:l,disableExpansion:d,onExpand:u}=e,g=(0,G.A)();(0,h.tz)();function p(){u();const e=(0,Y.K)(g.trails);window.TrackingUtils?.triggerGaEvent({...e,category:`${e.category}.read_more`,action:"onExpand",label:t.id});const i=(0,$.K)(g.trails);window.TrackingUtils?.triggerInfluxEvent({measurement:"review.read_more.click",attributes:{...i.attributes,reviewId:t.id,value:1}})}return(0,m.jsx)(c.h,{position:"relative",className:Q("review-body-paragraphs"),children:(()=>{const e=(0,X.preprocessElasticSearchHighlights)(t.body);let c,u=[{type:"text",content:e.text,start:0,end:e.text.length}];if(t.title){const e=(0,X.preprocessElasticSearchHighlights)(`${(0,U.A)(t.title," .")} â `);c=e.highlightRanges.length?(0,X.applyRanges)([{type:"text",start:0,end:e.text.length,content:e.text}],e.highlightRanges,J):[{type:"customNode",node:(0,m.jsx)("em",{children:e.text},"title")}]}let g=!1;if(e.highlightRanges.length)u=(0,X.applyRanges)(u,e.highlightRanges,J),g=!0;else if(i&&t.highlightedAspectParts?.length){const e=t.highlightedAspectParts.filter(e=>e.aspectDistinctId in i).map(e=>({start:e.index,end:e.index+e.length,data:{aspectDistinctId:e.aspectDistinctId,sentimentRating:e.sentimentRating,excerptStart:e.index,excerptEnd:e.index+e.length}}));u=(0,X.applyRanges)(u,e,Z),g=!0}if(g&&!n){c&&u.unshift(...c);let e=(0,X.groupParagraphs)(u),t=!1;return e=e.flatMap((e,i)=>e.children.some(e=>"highlight"===e.type||"aspect"===e.type)?(t=!1,e):t?[]:(t=!0,{type:"paragraph",children:[{type:"customNode",node:(0,m.jsx)(I.A,{onClick:e=>{const t=e.currentTarget.parentElement?.previousElementSibling?.querySelector("mark");if(!(t instanceof HTMLElement))return p();p()},cursor:"pointer",textDecorationHover:"underline",title:"Click to expand",children:"(â¦)"},i)}]})),(0,m.jsx)(X.TokenRenderer,{paragraphs:e,renderParagraph:ee,renderToken:te})}if(t.body.length>s){const{excerpt:e,rest:i}=(0,X.sliceExcerpt)(u,o);return c&&e.unshift(...c),(0,m.jsx)(X.CollapsibleTokenRenderer,{excerptParagraphs:(0,X.groupParagraphs)(r?(0,X.inlineTokens)(e):e),restParagraphs:(0,X.groupParagraphs)(i),renderParagraph:ee,renderToken:te,renderReadMoreButton:(e,i)=>
1(0,m.jsx)(ReviewReadMoreButton,{...e,review:t,defaultReadMoreButton:i,disableExpansion:d,isTruncated:!0,showExpandComments:a,showExpandSpecifications:l}),renderRestForSEO:!0,defaultExpanded:n,onExpand:p})}return c&&u.unshift(...c),n||u.push({type:"customNode",node:(0,m.jsx)(ReviewReadMoreButton,{review:t,disableExpansion:d,showExpandComments:a,showExpandSpecifications:l,onClick:p},"read-more")}),(0,m.jsx)(X.TokenRenderer,{paragraphs:(0,X.groupParagraphs)(r?(0,X.inlineTokens)(u):u),renderParagraph:ee,renderToken:te})})()})}var ie=i(73383),ne=i(16855),re=i(78721),se=i(99856),oe=i(45919),ae=i(11242),le=i(58646),ce=i(57623),de=i(2063),ue=i(25808);const ge=(0,de.O3)()({name:"commentForm",validateOnBlur:!1,schemaFactory:new de.DF(()=>se.Ik({body:(0,ue.mw)()}))})(function CommentFormForm(e){return(0,de.jE)(e.control,{expiresInDays:1}),(0,m.jsxs)(le.A,{onSubmit:e.handleSubmit,display:"flex",flexDirection:"column",gap:2,children:[(0,m.jsx)(de.D0,{name:"body",component:ae.TM,componentProps:{autoFocus:e.autoFocus,minRows:3,placeholder:e.placeholder,tracking:{triggerEvent:"onFocus"}},required:!0}),e.error&&(0,m.jsx)(ce.A,{error:e.error}),(0,m.jsxs)(y.A,{gap:1,children:[!e.hideCancelButton&&(0,m.jsx)(oe.A.Button,{onClick:e.onCancel,isLoading:e.submitting,flexBasis:100,flexGrow:1,tracking:{id:"cancel_button"},children:"Cancel"}),(0,m.jsx)(oe.A.Submit,{isLoading:e.submitting,flexBasis:100,flexGrow:1,tracking:{id:"submit_button"},children:"Submit"})]})]})});var he=i(4484),me=i(54051),pe=i(13449),fe=i(99043),ve=i(23475),xe=i(99009),Ae=i(12960),ye=i(26084),we=i(96610),be=i(45756),je=i(63365),Se=i(22287),ke=i(73909);const Re=o().bind({comment:"PYLbfd","comment-paragraph":"bFCqWH"}),Comment_renderParagraph=(e,t,i)=>(0,m.jsx)(H.A,{...e.attributes,breakWord:!0,display:i.isFirst?"inline":void 0,elevation:0,className:Re("comment-paragraph"),children:t},i.key);function Comment_Comment(e){(0,h.tz)();const t=(0,be.A)(),i=(0,p.A)(v.Jj),[n,s]=(0,r.useState)(!1),[o,a]=(0,r.useState)(),[l,d]=(0,r.useState)(e.comment.body),[u,g]=(0,r.useState)(!1),{showNotification:f}=(0,ye.A)(),A=(0,we.A)({permissionName:"canEdit",resource:{subject:e.review.subject,permissions:e.comment.permissions}}),y=(0,we.A)({permissionName:"canDelete",resource:{subject:e.review.subject,permissions:e.comment.permissions}});return(0,r.useEffect)(()=>{d(e.comment.body),n&&s(!1)},[e.comment.body]),u?(0,m.jsx)(c.h,{id:`comment-${e.comment.id}`,testId:`comment-${e.comment.id}`,backgroundColor:"danger-light",borderRadius:!0,fontSize:"small",fontWeight:"bold",paddingX:3,paddingY:2,textStyle:"danger-dark",children:"Comment deleted"}):(0,m.jsxs)(r.Fragment,{children:["\n",(0,m.jsxs)(c.h,{appContext:{namespace:`comment-${e.comment.id}`},id:`comment-${e.comment.id}`,testId:"wrapper",fontSize:"small",position:"relative",className:Re("comment","outline-target","submission"),children:[(0,m.jsx)(b.A,{user:e.comment.author,size:"xsmall"}),(0,m.jsx)(c.h,{backgroundColor:e.isHighlighted?"warning-light":void 0,position:"relative",children:n?(0,m.jsx)(ge,{name:e.comment.id,initialValues:{body:l},onCancel:()=>{s(!1),a(void 0)},onSubmit:({body:i})=>t.dispatch((0,Se.QA)({commentId:e.comment.id,body:i,reviewId:e.review.id,actor:o?(0,je.$z)(o):void 0})).then(()=>{d(i),s(!1),a(void 0)}).catch(()=>{d(l),s(!1),a(void 0)}),autoFocus:!0}):(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(xe.A,{namespace:"actions",children:(0,m.jsx)(L.A,{"data-layout":"submission-actions",alwaysOpenModal:!0,iconName:"ellipsis-horizontal",iconOnly:!0,buttonSize:"small",buttonStyle:"link",isDisabled:e.isBeingModerated,noBorder:!0,textStyle:"muted",negativeMargin:1,padding:1,elevation:1,position:"relative",children:n=>(0,m.jsxs)(r.Fragment,{children:[!e.comment.isAuthor&&(0,m.jsx)(pe.A,{listing:e.listing,resourceId:e.comment.id,resourceType:"comment",onClose:n,children:e=>(0,m.jsx)(re.A,{onClick:()=>{e(),n()},dropdownItem:!0})}),A.hasPermission&&(0,m.jsx)(ne.A,{onClick:()=>{s(!0),a(A.candidate)},dropdownItem:!0}),y.hasPermission&&(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(he.A.Divider,{}),(0,m.jsx)(ve.A,{message:"Do you really want to delete this comment?",onClick:()=>t.dispatch((0,Se.Mc)({commentId:e.comment.id,reviewId:e.review.id,visibility:"private",actor:(0,je.$z)(y.candidate)})).then(()=>{n(),g(!0)}).catch(()=>{g(!1),f({message:"Failed to delete comment. Please, try again later.",level:Ae.S.ERROR})}),onCancel:n,children:t=>(0,m.jsx)(ie.A,{...t,visibility:e.comment.visibility,dropdownItem:!0,dropdownItemProps:{itemStyle:"danger"}})})]}),(i.context.role===x.Xh.STAFF||e.isBeingModerated)&&(0,m.jsx)(he.A.Item,{children:(0,m.jsx)(me.A,{routeName:"www.admin.consumer_platform_comment_moderation",params:{commentId:e.comment.id,catalogId:(0,ke.A)(e.review.subject)},display:"flex",gap:2,children:e=>(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(j.A,{name:"arrow-top-right-on-square",flexShrink:0}),e]})})})]})})}),(0,m.jsx)(I.A,{elevation:1,fontWeight:"medium",position:"relative",children:(()=>{const t=e.comment.author.context.role!==x.Xh.COMPANY_REPRESENTATIVE?(0,m.jsx)(V.A,{author:e.comment.author,title:"Visit profile"}):(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(V.A,{author:e.comment.author}),(0,m.jsx)(r.Fragment,{children:"Â "}
1),(0,m.jsx)(j.A,{name:"check-badge",height:18,width:14,textStyle:"info",verticalAlign:"top"})]});return e.comment.author.context.role!==x.Xh.COMPANY_REPRESENTATIVE?t:[x.Xh.CONSUMER,x.Xh.GUEST].includes(i.context.role)?(0,m.jsx)(fe.A,{author:e.comment.author,children:e=>(0,m.jsx)(I.A,{onClick:e,cursor:"pointer",textDecorationHover:"underline",title:"Send a private message",children:t})}):t})()}),(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(F.A,{cursor:"help",fontSize:"xsmall",nowrap:!0,textStyle:"muted",children:(0,m.jsx)(h.uZ,{value:e.comment.firstPublishedAt,options:{format:"shortest"}})}),(0,m.jsx)(r.Fragment,{children:"  "}),(()=>{const t=(0,X.linkify)([{type:"text",content:l,start:0,end:l.length}]),i=e.comment.author.context.role===x.Xh.COMPANY_REPRESENTATIVE?120-(e.comment.author.context.brand?.name.length??0):150,n=e.comment.author.context.role===x.Xh.COMPANY_REPRESENTATIVE?65-(e.comment.author.context.brand?.name.length??0):100;if(l.length>i){const{excerpt:i,rest:s}=(0,X.sliceExcerpt)(t,n),o=(0,X.groupParagraphs)((0,X.inlineTokens)(i)),a=(0,X.groupParagraphs)(s);return(0,m.jsx)(X.CollapsibleTokenRenderer,{excerptParagraphs:o,restParagraphs:a,defaultExpanded:e.defaultExpanded,onExpand:e.onExpand,renderParagraph:Comment_renderParagraph,renderReadMoreButton:t=>(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(r.Fragment,{children:"â¦Â "}),(0,m.jsx)(I.A,{...t,role:"button",caret:"down",cursor:"pointer",nowrap:!0,stretchedLink:!0,textDecorationHover:"underline",textStyle:"link",children:"Read more"}),Boolean(e.numberOfCollapsedComments)&&(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(h.sA,{id:"comment.body.expand_comments",defaultMessage:"(+{numberOfCollapsedComments, plural, =1 {# reply} other {# replies}})",values:{numberOfCollapsedComments:e.numberOfCollapsedComments}})]})]})})}return(0,m.jsx)(X.TokenRenderer,{paragraphs:(0,X.groupParagraphs)(t),renderParagraph:Comment_renderParagraph})})()]})})]})]})}var Ce=i(52603),Te=i(5306),Ie=i(32600),Ne=i(47806),_e=i(49075);const Pe=o().bind({"comment-form-textarea":"g2cfcx"});function CommentForm_CommentForm(e){(0,h.tz)();const t=(0,Ne.A)(),[i,n]=(0,r.useState)(Boolean(e.defaultFocused)),s=(0,p.A)(v.Jj),o=(0,Ie.A)(),a=(0,r.useCallback)(()=>{n(!1)},[]),l=(0,r.useCallback)(()=>{n(!0)},[]),c="Add a comment";return(0,m.jsx)(Ce.A,{candidates:e.candidates,label:e=>{return t={candidateLabel:e},(0,m.jsxs)(m.Fragment,{children:["Comment as ",t.candidateLabel]});var t},children:({chosenActor:d,dropdown:u})=>d?(0,m.jsxs)(R.A,{appContext:{namespace:"comment_form"},gap:2,children:["guest"!==s.context.role&&(0,m.jsx)(b.A,{user:(0,je.b9)(d),size:"xsmall",hideLink:!0}),(0,m.jsxs)(R.A.Body,{children:[i?(0,m.jsxs)(r.Fragment,{children:[u,(0,m.jsx)(ge,{name:e.name,placeholder:c,autoFocus:!0,onCancel:a,onSubmit:i=>o().then(()=>e.onSubmit({reviewId:e.review.id,commentId:t(),body:i.body},d),_e.O).then(()=>{n(!1)})})]}):(0,m.jsx)(Te.A,{onFocus:l,placeholder:c,readOnly:!0,size:"small",paddingX:2,className:Pe("comment-form-textarea")}),(()=>{if(!e.review.isAuthor)return;if(!e.firstCompanyRepresentativeCommentAuthor)return;const t=e.firstCompanyRepresentativeCommentAuthor;return(0,m.jsx)(fe.A,{author:t,children:e=>{return(0,m.jsx)(I.A,{onClick:e,cursor:"pointer",display:"inline-block",marginTop:i?4:1,textDecorationHover:"underline",textStyle:"link",children:(n={companyRepresentativeDisplayName:t.context.facet===x.sj.BRAND_MANAGER&&t.context.brand?t.context.brand.name:t.context.facet===x.sj.CATALOG_MANAGER&&t.context.externalCatalog?t.context.externalCatalog.name:t.displayName},(0,m.jsxs)(m.Fragment,{children:["Send a private message to ",n.companyRepresentativeDisplayName," instead"]}))});var n}})})()]})]}):null})}var Ee=i(31046);const Le=o().bind({timeToReply:"xOd4T2"});function TimeToReplyHeader_TimeToReplyHeader(e){const t=(0,Ee.i2)(new Date(e.repliedAt),new Date(e.relativeTo)),i=(0,Ee.xb)(t),n=(0,Ee.aW)(t,i);return(0,m.jsx)(I.A,{fontSize:"small",italic:!0,textStyle:"muted",className:Le("timeToReply"),children:(r={respondedWithinTimeAmount:n,respondedWithinTimeUnit:n>1?(0,Ee.uQ)(i):i},(0,m.jsxs)(m.Fragment,{children:["Took ",r.respondedWithinTimeAmount," ",r.respondedWithinTimeUnit," to reply (only shown to you)"]}))});var r}var Me=i(29239);function CommentCollectionStateManager(e){const t=(0,be.A)(),[i,n]=(0,r.useState)(e.initialCollection);(0,r.useEffect)(()=>{n(e.initialCollection)},[e.initialCollection]);const s=(0,r.useCallback)((i,r)=>{const s={...i,actor:(0,je.$z)(r)},o=(new Date).toISOString();return t.dispatch((0,Se.cC)(s)).then(()=>{const t={author:(0,je.b9)(r),body:i.body,firstPublishedAt:o,id:i.commentId,reviewId:i.reviewId,isAuthor:!0,isLiked:!1,isDisliked:!1,numberOfLikes:0,permissions:(0,Me.A)(r,{canDelete:!0,canEdit:!0}),submittedAt:o,visibility:x.J4.PUBLIC};n(e=>e.concat(t)),e.onSubmit&&e.onSubmit(s)})},[]);return e.children({collection:i,handleSubmitComment:s})}function ReviewCommentsSection(e){const[t,i]=(0,r.useState)(void 0);return(0,m.jsx)(CommentCollectionStateManager,{initialCollection:e.review.comments,children:n=>{if(0===n.collection.length&&!e.showCommentForm)return null;const s="number"==typeof t||e.defaultExpanded||e.candidates.length>0?1/0:1,o=n.collection.find(e=>e.author.context.role===x.Xh.COMPANY_REPRESENTATIVE);return(0,m.jsxs)(r.Fragment,{children:[e.review.permissions.company_representative?.canComment&&o&&(0,m.jsx)(TimeToReplyHeader_TimeToReplyHeader,{repliedAt:o.firstPublishedAt,relativeTo:e.review.firstPublishedAt}),n.collection.slice(0,s).map((r,o)=>(0,m.jsx)(Comment_Comment,{comment:r,review:e.review,listing:e.listing,onExpand:()=>i(o),defaultExpanded:e.defaultExpanded||"number"==typeof t&&o>=t,isBeingModerated:e.isBeingModerated,isHighlighted:e.highlightedCommentId===r.id,numberOfCollapsedComments:s===1/0?0:n.collection.length-s},r.id)),e.showCommentForm&&(0,m.jsx)(CommentForm_CommentForm,{name:e.review.id,candidates:e.candidates,review:e.review,onSubmit:n.handleSubmitComment,firstCompanyRepresentativeCommentAuthor:o?.author})]})}},e.review.id)}const Oe=(0,r.memo)(ReviewCommentsSection),De=o().bind(E.A);function ReviewFollowUp(e){const t=(t,i,{key:n,isFirst:s,isLast:o})=>(0,m.jsxs)(H.A,{children:[s&&(0,m.jsxs)(I.A,{nowrap:!0,fontSize:"xsmall",textStyle:"muted",children:[(0,m.jsx)(j.A,{name:"follow-up",height:16,width:16,verticalAlign:"text-bottom",style:{margin:-1}}),(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(I.A,{fontSize:"xxsmall",fontWeight:"semi-bold",textTransform:"uppercase",children:"Follow-up"}),(0,m.jsx)(r.Fragment,{children:" "}),(0,m.jsx)(h.uZ,{value:e.followUp.submittedAt,options:{format:"shortest"}}),(0,m.jsx)(K.A,{})]}),i]},n);return(0,m.jsx)(c.h,{breakWord:!0,position:"relative",className:De("review-followUp-paragraphs"),children:(()=>{const i=[{type:"text",content:e.followUp.body,start:0,end:e.followUp.body.length}];if(!e.defaultExpanded&&e.followUp.body.length>e.truncateBodyAfter){const{excerpt:n,rest:r}=(0,X.sliceExcerpt)(i,e.truncateBodyTo);return(0,m.jsx)(X.CollapsibleTokenRenderer,{excerptParagraphs:(0,X.groupParagraphs)((0,X.inlineTokens)(n)),restParagraphs:(0,X.groupParagraphs)(r),renderParagraph:t,onExpand:e.onExpand})}return(0,m.jsx)(X.TokenRenderer,{paragraphs:(0,X.groupParagraphs)((0,X.inlineTokens)(i)),renderParagraph:t})})()})}var Ve=i(64307),We=i(66307);const Fe=o().bind(E.A);function LegacyReviewSpecificationValues({values:e}){return(0,m.jsx)(We.A,{unstyled:!0,display:"flex",flexWrap:"wrap",children:e.map(e=>(0,m.jsxs)(We.A.Item,{className:Fe("review-specifications-middot"),children:[`${e.name}: `,(0,m.jsx)(I.A,{fontWeight:"semi-bold",children:(0,m.jsx)(Ve.A,{legacyValue:e})})]},e.name))})}var Be=i(71536),ze=i(71491),qe=i(97679),Ue=i(87505);const He=o().bind(E.A);function ReviewSpecificationValues(e){const t=function t(i){const n=i.map((i,n)=>
1{if("group"===i.type){const e=t(i.groupField.fields);return(0,m.jsxs)(We.A.Item,{marginTop:2,textStyle:"muted",children:[i.groupField.label,e&&(0,m.jsx)(We.A,{unstyled:!0,textStyle:"body",children:e})]},n)}const r=(0,Ue.Ay)(i.field,"review");return r?(0,m.jsxs)(We.A.Item,{display:"inline",className:He("review-specifications-middot"),children:[(0,m.jsx)(qe.A,{field:i.field,hideDescription:!0,iconProps:{height:18,width:16}}),": ",(0,m.jsx)(I.A,{fontWeight:"semi-bold",children:(0,m.jsx)(r,{field:i.field,value:i.value,resolvedReferences:e.resolvedReferences,context:"review"})})]},n):null});return(0,Be.A)(n)}(e.otherSpecifications);return 0===t.length?null:(0,m.jsx)(ze.A,{children:(0,m.jsx)(We.A,{unstyled:!0,children:t})})}var Ge=i(80579);function TransactionDetails({transactionDetails:e}){const t=(0,g.A)();if(!e)return null;const{purchasedAt:i,purchaseStore:n,purchasePrice:r}=e,s={hasAny:!1,hasPurchaseAt:!1,hasPurchaseStore:!1,hasPurchasePrice:!1,datePurchase:void 0,storePurchase:void 0,pricePurchase:void 0};if(i){const[e,t,n]=i.split("-");s.hasPurchaseAt=!!i,s.datePurchase=(0,m.jsx)(h.XU,{value:new Date(Number(e),Number(t)-1,Number(n)),options:{month:"short",year:"numeric"},fontWeight:"semi-bold"})}return n&&(s.hasPurchaseStore=!0,s.storePurchase=n.slug?(0,m.jsx)(I.A,{role:"link",onClick:(0,_.A)(t.generate("www.public.listing",{listingSlug:n.slug})),cursor:"pointer",fontWeight:"semi-bold",textDecorationHover:"underline",textStyle:"link",tracking:{id:"store",gaContext:{label:n.slug}},children:n.fullName}):(0,m.jsx)(I.A,{fontWeight:"semi-bold",children:n.label})),r?.amount&&(s.hasPurchasePrice=!0,s.pricePurchase=(0,m.jsx)(I.A,{fontWeight:"semi-bold",children:(0,m.jsx)(Ge.A,{currency:r.currency,amount:r.amount,hideCentsIfWhole:!0})})),Object.keys(s).some(e=>s[e])?(0,m.jsx)(H.A,{appContext:{namespace:"transaction_details"},children:(0,m.jsx)(h.sA,{id:"review.transaction_details",defaultMessage:"Purchased{hasPurchaseAt, select, true {{space}in {datePurchase}} other {}}{hasPurchaseStore, select, true {{space}at {storePurchase}} other {}}{hasPurchasePrice, select, true {{space}for {pricePurchase}} other {}}.",values:{...s,space:" "}})}):null}const Ye=o().bind(E.A);function $e(e,t){return t.fields.map(e=>(0,m.jsx)(C.A,{rating:e.value,size:"xxsmall",type:"circles",label:(0,m.jsx)(I.A,{flexGrow:1,truncate:!0,children:(0,m.jsx)(qe.A,{field:e.field,hideDescription:!0,iconProps:{height:18,width:16}})}),flexWrap:"nowrap",gap:2,textStyle:"muted-secondary",className:Ye("review-specifications-rating")},e.field.id))}function GroupLabel({isExpandable:e,isExpanded:t,label:i,onClick:n}){return(0,m.jsx)(I.A,{...e&&{onClick:n,caret:t?"up":"down",cursor:"pointer",textDecorationHover:"underline"},fontWeight:"semi-bold",textStyle:"muted-secondary",children:i})}function ReviewSpecifications(e){const t=[];return e.partitionedSpecifications&&((0,n.A)(e.partitionedSpecifications.transactionDetails)||t.push((0,m.jsx)(TransactionDetails,{transactionDetails:e.partitionedSpecifications.transactionDetails},"transaction-details")),(0,n.A)(e.partitionedSpecifications.otherSpecifications)||t.push((0,m.jsx)(ReviewSpecificationValues,{otherSpecifications:e.partitionedSpecifications.otherSpecifications,resolvedReferences:e.review.resolvedReferences},"other-specifications"))),0===t.length?e.review.legacySpecificationValues?0===e.review.legacySpecificationValues.length?null:(0,m.jsx)(LegacyReviewSpecificationValues,{values:e.review.legacySpecificationValues}):null:1===t.length?t:(0,m.jsx)(c.h,{display:"flex",flexDirection:"column",gap:1,children:t})}ReviewSpecifications.Ratings=function ReviewSpecificationsRatings(e){const[t,i]=(0,r.useState)(0);return 1===e.ratingGroups.length?$e(0,e.ratingGroups[0]):(()=>{if(e.defaultExpanded)return e.ratingGroups;const t=[],i=[];return e.ratingGroups.forEach(e=>{e.groupField&&e.fields.length>1?t.push(e):i.push(e)}),[...i,...t]})().map((n,r)=>{const s=n.groupField&&(e.defaultExpanded||1!==n.fields.length)?{type:"custom_group",name:n.groupField.label}:{type:"none"};return"none"===s.type?$e(0,n):e.defaultExpanded?(0,m.jsxs)(c.h,{marginTop:0===r?void 0:1,children:[(0,m.jsx)(GroupLabel,{label:s.name,isExpandable:!1}),$e(0,n)]},r):(0,m.jsxs)(c.h,{marginTop:0===r?void 0:1,children:[(0,m.jsx)(GroupLabel,{label:s.name,onClick:()=>i(r),isExpandable:e.ratingGroups.length>1,isExpanded:t===r}),t===r&&$e(0,n)]},r)})};var Xe=i(23481);const Ke=o().bind(E.A);function SubmissionFootnote({note:e}){return(0,m.jsxs)(Xe.A,{breakWord:!0,fontSize:"small",marginTop:2,className:Ke("review-footnote"),children:[(0,m.jsxs)(Xe.A.Header,{backgroundColor:"body",display:"flex",fontSize:"xsmall",fontWeight:"bold",gap:1,noBorder:!0,padding:2,textStyle:"dark",children:[(0,m.jsx)(j.A,{name:"user-group",height:18,width:18,textStyle:"primary"}),"ProductReview added context"]}),(0,m.jsx)(Xe.A.Block,{padding:2,children:(0,m.jsx)(u.A,{source:e.body,initialParser:"inline"})})]})}var Qe=i(78327),Je=i(23821),Ze=i(26730),et=i(58222),tt=i(64144),it=i(59091),nt=i(71167);const rt=(0,de.We)({name:"newSuggestedFollowUpQuestionForm",schemaFactory:new de.DF(()=>se.Ik({body:(0,ue.mw)(se.Yj().min(10).max(100))}
1)),validateOnBlur:!1})(function NewSuggestedFollowUpQuestionForm(e){(0,h.tz)();const t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t.current?.focus()},[]),(0,m.jsxs)(le.A,{onSubmit:e.handleSubmit,display:"flex",flexDirection:"column",gap:4,children:[(0,m.jsx)(de.D0,{name:"body",component:ae.ks,componentProps:{ref:t,placeholder:"Type your question"},required:!0}),(0,m.jsx)(e.control.FormValueSelector,{fieldName:"body",children:t=>(0,m.jsx)(oe.A.Submit,{isLoading:e.submitting,tracking:{id:"suggested_follow_up_questions.new.submit",gaContext:{label:t}},children:"Submit"})})]})}),st=o().bind(E.A);function SuggestedFollowUpQuestions(e){const t=(0,be.A)(),i=(0,p.A)(it.dl),{showModal:n}=(0,et.A)(),r=(0,tt.Ay)("public.suggestedFollowUpQuestionsIds",{version:1,maxAge:86400}),s=r.watch({defaultValue:[],disableSyncing:!0}),o={buttonSize:"small",buttonStyle:"light",pill:!0,alignSelf:"center",flexGrow:1,flexShrink:0,padding:1,className:st("review-followUp-questions-slider-item")};return(0,m.jsx)(c.h,{"data-layout":"review-followUp-questions",order:"last",className:st("review-followUp-questions"),children:(0,m.jsx)(Je.A,{items:[(0,m.jsx)(W.A,{level:5,fake:!0,alignSelf:"center",fontWeight:"medium",marginRight:1,nowrap:!0,children:"Ask the reviewer"},"heading"),...e.questions.map(n=>{const a=s.includes(n.id);return(0,m.jsx)(Ze.A,{onClick:async()=>{await t.dispatch((0,nt.Cs)({catalogId:i,reviewId:e.review.id,questionId:n.id})),r.setValue(e=>e?e?.concat(n.id):[n.id])},...o,className:st(o.className,{"review-followUp-question--voted":a}),isDisabled:a,paddingX:3,tracking:{id:"suggested_follow_up_questions.vote",gaContext:{label:e.review.id}},children:n.body},n.id)}),(0,m.jsx)(oe.A.Button,{onClick:()=>{var r;n({title:(r={reviewAuthorDisplayName:e.reviewAuthorDisplayName},(0,m.jsxs)(m.Fragment,{children:["Ask ",r.reviewAuthorDisplayName]})),content:n=>(0,m.jsx)(rt,{onSubmit:async n=>{await t.dispatch((0,nt.dS)({catalogId:i,reviewId:e.review.id,body:n.body}))},onSubmitSuccess:n}),bodyProps:{display:"flex",flexDirection:"column",gap:4,padding:4}}).catch(_e.O)},...o,paddingX:3,tracking:{id:"suggested_follow_up_questions.new_question",gaContext:{label:e.review.id}},children:"New"},"new_question")],arrowNextRenderer:({onClick:e,isDisabled:t,hasScrolling:i})=>i?(0,m.jsx)(Qe.A,{onClick:e,"data-slider-arrow-prev":!0,direction:"next",isDisabled:t,...o,className:st("review-followUp-questions-slider-arrow")}):null,arrowPrevRenderer:({onClick:e,isDisabled:t,hasScrolling:i})=>i?(0,m.jsx)(Qe.A,{onClick:e,"data-slider-arrow-next":!0,direction:"prev",isDisabled:t,...o,className:st("review-followUp-questions-slider-arrow")}):null,sliderProps:{position:"relative",className:st("review-followUp-questions-slider")},scrollerProps:{gap:1,className:st("review-followUp-questions-scroller")}})})}var ot=i(37225);const at=346,lt=250;function ct(e,t){const i=e-4;return 0===t?{width:2*i/3,height:lt}:{width:i/3,height:123}}function dt(e){if("mobile"===e.viewport)return"tiles"===e.layout||"single_row_medium"===e.layout||e.attachmentsCount>=3?ct(393,e.thumbnailIndex):e.attachmentsCount<=1?{width:393,height:lt}:{width:194.5,height:lt};switch(e.layout){case"tiles":return ct(at,e.thumbnailIndex);case"two_rows_large":return{width:171,height:lt};case"single_row_xlarge":return{width:at,height:lt};case"single_row_medium":return{width:338/3,height:140};case"single_row_large":return{width:342/Math.max(e.attachmentsCount,1),height:140};default:throw new Error(`Unexpected review attachment layout: ${String(e.layout)}`)}}const ut=o().bind(E.A);function Review_Review(e){const t=(0,p.A)(v.Ke),{showActions:i=!0,showApprovalStatus:s=e.review.approvalStatus!==x.Gw.APPROVED&&!e.review.isMediationPending,showAttachments:o=!0,showCommentsSection:u=!0,showSpecificationRatings:g=!0}=e,b=i&&!e.review.tags.includes("removed_due_to_legal_threats"),j=!!e.review.attachments?.length&&o,S=!!e.partitionedSpecifications&&0!==e.partitionedSpecifications.numberOfRatingFields&&g,k=(0,r.useMemo)(()=>({type:"submission_permission",permissionName:"canComment",submission:e.review}),[e.review]),{candidates:R}=(0,f.A)(k),[C,T]=(0,r.useState)(Boolean(e.defaultExpanded)),I=Boolean(u&&(e.defaultExpanded||R.length>0||e.review.rating<4)),[N,_]=(0,r.useState)(I),[P,E]=(0,r.useState)(Boolean(e.defaultExpanded)),[L,M]=(0,r.useState)(Boolean(e.defaultExpanded)),O=j&&!e.forceOneColumnLayout,[D,V]=(0,r.useState)(void 0),W=!(0,n.A)(e.review.legacySpecificationValues)||!(0,n.A)(e.partitionedSpecifications?.otherSpecifications)||!(0,n.A)(e.partitionedSpecifications?.transactionDetail
1s),F=(()=>{if(S&&e.partitionedSpecifications)return e.forceOneColumnLayout||O?"below":e.partitionedSpecifications.numberOfRatingFields>2?"second-column":"below"})(),B=O||"second-column"===F,z=e.multilineTextProps?.truncateAfter??500,q=e.multilineTextProps?.truncateTo??350;return(0,r.useEffect)(()=>{M(Boolean(e.defaultExpanded))},[e.defaultExpanded]),(0,m.jsxs)(r.Fragment,{children:["\n",(0,m.jsx)(c.h,{id:`review-${e.review.id}`,ref:e.ref,testId:e.testId,tracking:e.tracking,...e.containerProps,className:ut("review","outline-target","submission",e.containerProps?.className),children:e.review.tags.includes("removed_due_to_legal_threats")?(0,m.jsx)(a.A,{alertStyle:"danger",children:(U={author:e.review.author.displayName,date:(0,m.jsx)(h.XU,{value:e.review.firstPublishedAt||e.review.submittedAt,options:{day:"numeric",month:"long",year:"numeric"}})},(0,m.jsxs)(m.Fragment,{children:["The following review dated ",U.date," posted by ",U.author,", which was broadly negative, has been removed in order to protect the reviewer's and ProductReview.com.au's interests following a legal request on behalf of the company."]}))}):(0,m.jsxs)(r.Fragment,{children:[e.pinned||e.review.isMediationCompleted?null:e.review.authorSeeksMediation&&e.review.isAuthor&&e.review.mediationThreadId?(0,m.jsx)(d.A,{review:{id:e.review.id,mediationThreadId:e.review.mediationThreadId},marginBottom:3}):null,e.review.approvalStatus===x.Gw.REJECTED&&(0,m.jsx)(ReviewRejectedMessage,{marginBottom:3}),(0,m.jsxs)(c.h,{ref:e.ref,fontSize:"small",className:ut("review-body",{"review-body--2cols":B}),children:[(()=>{if(!j)return null;const t=(()=>{if(e.forceOneColumnLayout)return"single_row_medium";if(e.review.body.length>200){if(e.review.attachments.length>=3)return"tiles";if(2===e.review.attachments.length)return"two_rows_large";if(1===e.review.attachments.length)return"single_row_xlarge"}return e.review.attachments.length>=3?"single_row_medium":"single_row_large"})(),i=O?3:5,n=Math.min(e.review.attachments.length,i),r=e.forceOneColumnLayout?{display:"flex",flexWrap:"wrap"}:{display:"grid",justifyContent:"end",style:{"--pr-attachments-count":n},"data-attachments-count":n};return(0,m.jsx)(l.A,{attachments:e.review.attachments,collection:A.pM.reviewAttachment,numberOfThumbnails:i,blur:e.review.tags.includes("blur_attachments"),gap:1,order:2,className:ut("review-body-attachments",{[`layout-${t}`]:!0}),getAttachmentStyle:(e,i)=>{if("image"!==e.type)return;if(!e.metadata)return;if(!e.metadata.focalBox)return;const r=dt({layout:t,attachmentsCount:n,thumbnailIndex:i,viewport:"desktop"}),s=dt({layout:t,attachmentsCount:n,thumbnailIndex:i,viewport:"mobile"});return{"--pr-attachment-object-position":(0,ot.k)(e.metadata.width,e.metadata.height,r.width/r.height,r.height,e.metadata.focalBox),"--pr-attachment-mobile-object-position":(0,ot.k)(e.metadata.width,e.metadata.height,s.width/s.height,s.height,e.metadata.focalBox)}},onClickAttachment:e.onClickAttachment,...r})})(),(0,m.jsx)(ReviewAuthor,{review:e.review,reviewMarkedAsIncentivisedByAuthor:e.partitionedSpecifications?.wasReviewIncentivised,listing:e.listing,onDelete:e.onDelete,onRestore:e.onRestore,disableLinkToProfilePage:e.disableLinkToAuthorProfilePage,pinned:e.pinned,showActions:b,showReviewActionsItems:!e.showReviewActionsItemsAsButtons,showAuthor:e.showAuthor,showAvatar:e.showAvatar,showApprovalStatus:s,showBestReview:e.showBestReviewBadge,showSubjectLink:e.showSubjectLink,showVisibilityStatus:e.review.visibility!==x.J4.PUBLIC,subjectNameKey:e.subjectNameKey}),"second-column"===F&&(0,m.jsx)(c.h,{display:"flex",flexDirection:"column",order:1,className:ut("review-body-ratings"),children:(0,m.jsx)(ReviewSpecifications.Ratings,{ratingGroups:e.partitionedSpecifications.ratingGroups,reviewRating:e.review.rating,defaultExpanded:e.defaultExpanded})}),(0,m.jsx)(ReviewBody,{review:e.review,isExpanded:L,aspectsByDistinctId:e.aspectsByDistinctId,truncateTo:q-100*(e.review.followUps?.length||0),truncateAfter:z-100*(e.review.followUps?.length||0),inlineExcerpt:e.multilineTextProps?.inlineExcerpt??!0,disableExpansion:e.disableExpansion,showExpandComments:!N&&(e.review.comments.length>0||R.length>0),showExpandSpecifications:!C&&(W||"below"===F),onExpand:()=>{M(!0),_(!0),T(!0),!L&&e.review.body.length>z&&e.review.rating>3&&1===e.review.comments.length&&e.review.comments[0].author.context.role===x.Xh.COMPANY_REPRESENTATIVE||E(!0),e.onExpand?.()}}),e.review.followUps?0===e.review.followUps.length?null:e.review.followUps.map((t,i)=>(0,m.jsx)(ReviewFollowUp,{review:e.review,followUp:t,defaultExpanded:L||"number"==typeof D&&i>=D,truncateBodyAfter:z-100*i,truncateBodyTo:q-100*i,onExpand:()=>{E(!0),V(i)}},t.id)):null,C?(0,m.jsxs)(r.Fragment,{children:[W&&(0,m.jsx)(ReviewSpecifications,{review:e.review,partitionedSpecifications:e.partitionedSpecifications}),"below"===F&&(0,m.jsx)(c.h,{...e.partitionedSpecifications.numberOfRatingFields>2?{display:"flex",flexDirection:"column"}:{display:"flex",flexWrap:"wrap",gapX:3},children:(0,m.jsx)(ReviewSpecifications.Ratings,{ratingGroups:e.partitionedSpecifications.ratingGroups,reviewRating:e.review.rating,defaultExpanded:e.defaultExpanded})})]}):null,N?0===e.review.comments.length&&0===R.length?null:(0,m.jsx)(c.h,{testId:"comments",order:2,className:ut("review-comments"),children:(0,m.jsx)(Oe,{review:e.review,listing:e.listing,candidates:R,onExpand:e.onExpandComments,defaultExpanded:P,highlightedCommentId:e.highlightedCommentId,isBeingModerated:e.isBeingModerated,showCommentForm:b})}):null]}),e.review.isAuthor?null:e.review.suggestedFollowUpQuestions?.length&&[x.Xh.CONSUMER,x.Xh.GUEST,x.Xh.STAFF].includes(t.context.role)?e.review.body.length>z&&!L?null:(0,m.jsx)(SuggestedFollowUpQuestions,{review:e.review,questions:e.review.suggestedFollowUpQuestions,reviewAuthorDisplayName:e.review.author.displayName}):null,e.review.footnote&&(0,m.jsx)(SubmissionFootnote,{note:e.review.footnote}),b&&e.showReviewActionsItemsAsButtons&&(0,m.jsx)(y.A,{flexWrap:"wrap",gap:1,marginTop:3,className:ut("review-actions-toolbar"),children:(0,m.jsx)(w.default,{review:e.review,listing:e.listing,onDelete:e.onDelete,onRestore:e.onRestore,hideSingleReviewPageLink:!0,buttonProps:{buttonSize:"small",buttonStyle:"light",pill:!0}})})]})})]});var U}const gt=(0,r.memo)(Review_Review,function(e,t){return e.review.id===t.review.id&&e.defaultExpanded===t.defaultExpanded&&e.disableExpansion===t.disableExpansion&&e.forceOneColumnLayout===t.forceOneColumnLayout&&e.pinned===t.pinned&&e.showActions===t.showActions&&e.showAttachments===t.showAttachments&&e.showAvatar===t.showAvatar&&e.showBestReviewBadge===t.showBestReviewBadge&&e.showCommentsSection===t.showCommentsSection&&e.showSelectedReview===t.showSelectedReview&&e.showSpecificationRatings===t.showSpecificationRatings&&e.showSubjectLink===t.showSubjectLink&&e.subjectNameKey===t.subjectNameKey&&e.listing?.id===t.listing?.id&&e.multilineTextProps===t.multilineTextProps})},17319(e,t,i){i.r(t),i.d(t,{default:()=>ReviewActionsItems});var n=i(85906),r=i(93578),s=i(73383),o=i(16855),a=i(78721),l=i(14494),c=i(74954),d=i(14202);
1function Statistics(e){return(0,d.jsx)(r.A,{iconName:"chart-bar-square",label:"Statistics",tracking:{id:"statistics_button"},...e})}var u=i(83996),g=i(4484),h=i(76585),m=i(49329),p=i(13449),f=i(23475),v=i(12960),x=i(26084),A=i(55279),y=i(58222),w=i(86490),b=i(45756),j=i(24082),S=i(76015),k=i(22287),R=i(16940),C=i(73909),T=i(82526);const I=n.lazy(()=>i.e("shared_containers_modals_ReviewStatisticsModal_tsx").then(()=>i(42299))),N=n.lazy(()=>i.e("shared_components_ShareResource_ShareResource_tsx-_e5561").then(()=>i(96664)));function ReviewActionsItems(e){const t=(0,c.tz)(),i=(0,b.A)(),_=(0,w.A)(j.Ke),P=(0,w.A)(S.wz),{showModal:E}=(0,y.A)(),{showNotification:L}=(0,x.A)(),M=(0,A.A)(),O=(()=>{if(_.context.role!==R.Xh.COMPANY_REPRESENTATIVE)return;if(e.review.approvalStatus!==R.Gw.APPROVED)return;if(e.review.visibility!==R.J4.PUBLIC)return;if(e.review.subject.type===R.PQ.ARCHIVED_ENTRY)return;const t=[],i=[],n=e.review.subject.entry?.brand;if(P.brands)for(const e of P.brands){i.push(e.id);for(const i of e.externalCatalogs)t.push(i.id)}if(e.review.subject.type===R.PQ.KNOWN_EXTERNAL_ENTRY||e.review.subject.type===R.PQ.UNKNOWN_EXTERNAL_ENTRY){const r=e.review.subject.externalCatalog,s=t.includes(r.id);let o;if(n&&i.includes(n.id)?o=n:r.brand&&i.includes(r.brand.id)&&(o=r.brand),o&&s)return M.generate("www.bm.marketing_tools_generate_social_media_creative",{catalogId:(0,C.A)(e.review.subject),externalCatalogSlug:r.slug,brandSlug:o.slug,reviewId:e.review.id})}return n&&i.includes(n.id)?M.generate("www.bm.marketing_tools_generate_social_media_creative",{catalogId:(0,C.A)(e.review.subject),externalCatalogSlug:"productreview",brandSlug:n.slug,reviewId:e.review.id}):void 0})(),D=[];return _.context.role!==R.Xh.CONSUMER&&_.context.role!==R.Xh.GUEST||e.review.isAuthor||!e.listing||e.listing.brand?.isManaged||D.push((0,d.jsx)(r.A,{to:M.generate("www.public.businesses.brand_management",e.listing.brand?{brand:e.listing.brand.slug}:{listingName:e.listing.fullName,listingSlug:e.listing.slug},A.i.ABSOLUTE_URL),iconName:"chat-bubble-left-right",label:"Respond as a Brand Manager",openNewTab:!0,tracking:{id:"respond_as_bm"},...e.buttonProps},"respond_as_bm")),_.context.role!==R.Xh.COMPANY_REPRESENTATIVE&&_.context.role!==R.Xh.STAFF||(D.push((0,d.jsx)(u.A,{onCopy:()=>{L({message:"ID copied!",level:v.S.SUCCESS}),e.close?.()},text:e.review.id,children:(0,d.jsx)(r.A,{iconName:"clipboard",label:"Copy review ID",...e.buttonProps})},"copy_review_id")),e.hideSingleReviewPageLink||D.push((0,d.jsx)(r.A,{to:M.generate("www.public.single_review",{reviewId:e.review.id},A.i.ABSOLUTE_URL),openNewTab:!0,iconName:"arrow-top-right-on-square",label:"Open in new tab",...e.buttonProps},"single_review_page_link"))),O&&D.push((0,d.jsx)(r.A,{to:O,iconName:"megaphone",label:"Creative for social media",openNewTab:!0,tracking:{id:"social_media_creative"},...e.buttonProps},"social_media_creative")),_.context.role===R.Xh.STAFF&&D.push((0,d.jsx)(r.A,{to:M.generate("www.admin.consumer_platform_review_moderation",{reviewId:e.review.id,catalogId:(0,C.A)(e.review.subject)},A.i.ABSOLUTE_URL),openNewTab:!0,iconName:"arrow-top-right-on-square",label:"Go to admin",...e.buttonProps},"go_to_admin_link")),(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(h.A,{type:"submission_permission_role_only",permissionName:"canShare",resource:e.review,yes:()=>(0,d.jsx)(l.A,{onClick:()=>{E({title:"Share review",content:(0,d.jsx)(N,{url:M.generate("www.public.single_review",{reviewId:e.review.id},A.i.ABSOLUTE_URL),twitterMessage:t.formatMessage({id:"public.review.actions.share_modal.twitter_message",defaultMessage:"Have a look at this review {hasSubject, select, true {for {subject} } false {}}on @Product_Review"},{hasSubject:String(Boolean((0,T.A)(e.review.subject))),subject:(0,T.A)(e.review.subject)})}),bodyProps:{padding:4}}),e.close?.()},...e.buttonProps})}),(0,d.jsx)(h.A,{permissionName:"canSeeStatistics",resource:e.review,yes:()=>(0,d.jsx)(Statistics,{onClick:()=>{E({title:"Review Statistics",content:(0,d.jsx)(I,{review:e.review,hideNumberOfReadMoreClicks:!0}),bodyProps:{padding:4}}),e.close?.()},...e.buttonProps})}),!e.review.isAuthor&&!e.review.isMediationPending&&_.context.role!==R.Xh.STAFF&&(0,d.jsx)(p.A,{listing:e.listing,resourceId:e.review.id,resourceType:"review",onClose:e.close,children:t=>(0,d.jsx)(a.A,{onClick:()=>{t(),e.close?.()},...e.buttonProps})}
1),(0,d.jsx)(h.A,{permissionName:"canEdit",resource:e.review,yes:()=>(0,d.jsx)(o.A,{to:M.generate("www.public.edit_review",{reviewId:e.review.id},A.i.ABSOLUTE_URL),...e.buttonProps})}),(0,d.jsx)(h.A,{permissionName:"canDelete",resource:e.review,yes:()=>{const r={textStyle:e.review.visibility===R.J4.PUBLIC?"danger":void 0,visibility:e.review.visibility,...e.buttonProps};return(0,d.jsxs)(n.Fragment,{children:[e.buttonProps?.dropdownItem&&(0,d.jsx)(g.A.Divider,{}),e.review.visibility===R.J4.PRIVATE?(0,d.jsx)(s.A,{onClick:async()=>{await i.dispatch((0,k.VM)({reviewId:e.review.id,visibility:"public"})),e.close?.(),e.onRestore&&e.onRestore(e.review)},...r}):(0,d.jsx)(f.A,{title:"Delete this review?",message:(0,d.jsx)(m.A,{source:t.formatMessage({id:"public.review.actions.delete_review_confirmation.message",defaultMessage:"{isMediationPending, select,\n true {Do you really want to delete this review? Doing so will also **complete the mediation process**.}\n false {Do you really want to delete this review? Only you will be able to see this review.}\n}"},{isMediationPending:Boolean(e.review.isMediationPending)}),initialParser:"inline"}),onClick:async()=>{if(await i.dispatch((0,k.VM)({reviewId:e.review.id,visibility:"private"})),e.close?.(),e.onDelete)return e.onDelete(e.review)},children:e=>(0,d.jsx)(s.A,{...e,...r})})]})}}),D.length>0&&(0,d.jsxs)(n.Fragment,{children:[e.buttonProps?.dropdownItem&&(0,d.jsx)(g.A.Divider,{}),D]})]})}},37225(e,t,i){function n(e,t,i){return Math.min(i,Math.max(t,e))}function r(e,t,i,r,s){const o=Math.max(i/e,r/t),a=e*o,l=t*o,c=Math.max(0,a-i),d=Math.max(0,l-r),u=s.x*o,g=s.y*o,h=s.width*o,m=s.height*o,p=e>=t;function f(e,t,i,r,s,o){const a=t+i-r,l=t,c=Math.max(0,a),d=Math.min(s,l);return c<=d?n(e,c,d):n(null!==o?o:e,0,s)}const v=g+m/2;let x;x=m<=r?v-r/2:p?g:v-r/2;const A=f(h<=i?u+h/2-i/2:u,u,h,i,c,null),y=f(x,g,m,r,d,!p&&m>r?g:null),w=0===d?50:y/d*100;return`${n(0===c?50:A/c*100,0,100).toFixed(2)}% ${n(w,0,100).toFixed(2)}%`}function s(e,t,i,n,s){return r(e,t,n*i,n,s)}i.d(t,{H:()=>r,k:()=>s})},85743(e,t,i){i.d(t,{A:()=>ReviewMediation});var n=i(45919),r=i(26730),s=i(98379),o=i(23481),a=i(25343),l=i(49329),c=i(41125),d=i(14901),u=i(55279),g=i(45756),h=i(74954),m=i(57483),p=i(22287),f=i(55156),v=i(14202);function ReviewMediation(e){const{omitHeader:t,review:i,...x}=e,{mediationThreadId:A}=i,y=((0,h.tz)(),(0,f.Zp)()),w=(0,g.A)(),b=(0,u.A)();return(0,v.jsx)(o.A,{role:"alert",backgroundColor:"light",...x,children:(0,v.jsxs)(o.A.Block,{padding:3,children:[!t&&A&&(0,v.jsx)(c.A,{level:4,headingStyle:5,marginBottom:1,children:(0,v.jsx)(l.A,{source:"Review in mediation. <LinkToDiscussion>See discussion</LinkToDiscussion>",componentsAvailable:{LinkToDiscussion:(0,m.A)(({children:e})=>(0,v.jsx)(a.A.Static,{to:b.generate("www.public.messages_inbox_thread",{threadId:A}),openNewTab:!0,fontWeight:"normal",textDecorationHover:"underline",textStyle:"link",children:e}))},initialParser:"inline"})}),(0,v.jsx)(d.A,{marginBottom:2,children:"Once your issue has been resolved, please update your review. You can, for example, include additional details about the service you received and your experience during the mediation process."}),(0,v.jsxs)(s.A,{flexDirection:{xs:"column",sm:"row"},gap:1,children:[(0,v.jsx)(a.A,{to:b.generate("www.public.edit_review",{reviewId:i.id}),element:n.A.Link,buttonSize:"small",buttonStyle:"primary",children:"Update your review"}),(0,v.jsx)(r.A,{onClick:()=>w.dispatch((0,p.eC)({reviewId:i.id})).then(()=>y(b.generate("www.public.single_review",{reviewId:i.id,fromAction:"complete_mediation"}))),reactToError:!0,buttonSize:"small",children:"Publish your review"})]})]})})}},97679(e,t,i){i.d(t,{A:()=>ReviewSpecificationLabel_ReviewSpecificationLabel});var n=i(85906),r=i(78801),s=i.n(r),o=i(62227),a=i(49329),l=i(35447),c=i(57220),d=i(26707),u=i(74954);var g=i(14202);const h=s().bind({sup:"_OqB4K"});function ReviewSpecificationLabel_ReviewSpecificationLabel(e){const{visibilitySettings:t={groups:[]}}=e.field,i=(0,u.tz)(),r=t.groups.includes("guest"),s=e.preferPlural&&e.field.pluralLabel?e.field.pluralLabel:e.field.label;return e.field.description&&!e.hideDescription||!r?(0,g.jsx)(d.A,{str
1ing:s,icon:(0,g.jsxs)(n.Fragment,{children:[e.field.description&&!e.hideDescription&&(0,g.jsx)(c.A,{content:(0,g.jsx)(a.A,{source:e.field.description,initialParser:"inline"}),trackingId:"description",children:(0,g.jsx)(l.A,{element:"sup",cursor:"help",fontWeight:"bold",stretchedLink:!0,className:h("sup"),children:"?"})}),!r&&(0,g.jsx)(c.A,{content:i.formatMessage({id:"review_specification_label.visibility_tooltip",defaultMessage:"{isVisibleToBrandManager, select,\n true {Only visible to the brand manager.}\n false {Only visible to ProductReview staff.}\n}"},{isVisibleToBrandManager:t.groups.includes("brand_manager")}),children:(0,g.jsx)(o.A,{name:"eye",cursor:"help",marginLeft:e.field.description?1:void 0,...e.iconProps})})]})}):s}},81134(e,t,i){i.d(t,{A:()=>ReviewsAiSummary_ReviewsAiSummary});var n=i(85906),r=i(78801),s=i.n(r),o=i(76339),a=i(19363),l=i(45919),c=i(62227),d=i(49329),u=(i(74954),i(57483));var g=i(14202);const h=s().bind({reviewsAiSummary:"kucwCz",expanded:"yoJpym"});function ReviewsAiSummary_ReviewsAiSummary(e){const[t,i]=(0,n.useState)(!0),[r,s]=(0,n.useState)(!1),m=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{s(!1);const t=m.current;if(!t)return void i(!1);const n=()=>i(t.scrollHeight>e.collapsedHeight+1);n();const r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()},[e.summary]),(0,g.jsxs)(a.h,{ref:m,fontSize:"small",lineHeight:"small",overflow:"hidden",position:"relative",className:h("reviewsAiSummary",{expanded:r}),style:{"--pr-reviews-summary-collapsed-height":`${e.collapsedHeight}px`},children:[(0,g.jsx)(a.h,{trimY:!0,children:(0,g.jsx)(d.A,{source:e.summary,componentsAvailable:{Box:a.h,Pros:({children:e})=>(0,g.jsx)(a.h,{display:"flex",flexDirection:"column",gap:2,marginBottom:4,marginTop:2,children:e}),Pro:(0,u.A)(({children:e})=>(0,g.jsx)(o.A,{type:"pro",size:"small",content:e})),Cons:({children:e})=>(0,g.jsx)(a.h,{display:"flex",flexDirection:"column",gap:2,marginBottom:4,marginTop:2,children:e}),Con:(0,u.A)(({children:e})=>(0,g.jsx)(o.A,{type:"con",size:"small",content:e}))}})}),t&&!r&&(0,g.jsxs)(l.A.Button,{onClick:()=>s(!0),buttonSize:"small",buttonStyle:"light",icon:"right",borderRadius:"pill",elevation:1,position:"absolute-bottom-center",children:["Show more",(0,g.jsx)(c.A,{name:"chevron-up-down"})]})]})}},54212(e,t,i){i.d(t,{A:()=>SearchResultListing_SearchResultListing});var n=i(18299),r=i(85906),s=i(78801),o=i.n(s),a=i(25115),l=i(79139),c=i(45714),d=i(52696),u=i(19363),g=i(45919),h=i(98379),m=i(23481),p=i(32475),f=i(4484),v=i(95405),x=i(5475),A=i(95791),y=i(46893),w=i(62227),b=i(6023),j=i(68271),S=i(25343),k=i(32252),R=i(49329),C=i(74702),T=i(49739),I=i(35787),N=i(80579),_=i(46128),P=i(43800),E=i(4547),L=i(71491),M=i(14202);function SpecificationValuesList(e){const{listOfSpecificationsWidgetAndLabel:t,listRenderer:i}=e;return(0,M.jsx)(L.A,{children:i(t)})}var O=i(63293),D=i(41125),V=i(66307),W=i(14901),F=i(35447),B=i(55279),z=i(74954),q=i(71526),U=i(17055),H=i(19107),G=i(61825);function LazySearchListingDescription(e){const t=(0,B.A)(),{isLoading:i,response:n}=(0,G.A)(t.generate("api.public.listing.description",e));return i?(0,M.jsx)(H.A,{}):n?.description?(0,M.jsx)(U.A,{source:n.description}):(0,M.jsx)(F.A,{textStyle:"muted",italic:!0,textAlign:"center",children:"No description found"})}var Y=i(25419),$=i(26730),X=i(12732),K=i(53613),Q=i(81134),J=i(57220),Z=i(58223),ee=i(12960),te=i(26084),ie=i(45756),ne=i(10711),re=i(22287),se=i(53654),oe=i(28867),ae=i(60884),le=i(46365),ce=i(39604);const de=o().bind({"reviews-tab-content-button":"WQ6xTd",expanded:"fyIFYa","reviews-tab-content-sticky-header":"j6e_E6","reviews-tab-content-reviews":"uPs_jv","reviews-tab-content-review":"vWaaw8","reviews-tab-content-first-review":"AwnyPM","reviews-tab-content-reviewsAiSummary":"Sx8ud2"}),ue=[{key:"overview",sorting:{sort:"overview",order:"DESC"}},{key:"newest",sorting:{sort:"firstPublishedAt",order:"DESC"}},{key:"ratingHighest",sorting:{sort:"rating",order:"DESC"}},{key:"ratingLowest",sorting:{sort:"rating",order:"ASC"}}];function ge(e){return(0,M.jsx)(z.sA,{id:"public.search.result.listing.reviews_tab.sort_by.label",defaultMessage:"{sortByKey, select,\n overview {Smart ordering}\n newest {Newest}
1\n ratingHighest {Rating highest}\n ratingLowest {Rating lowest}\n}",values:{sortByKey:e}})}function ReviewsTabContent_ReviewsTabContent(e){const t=(0,Y.A)(),i=(0,r.useRef)(void 0),n=(0,r.useRef)(void 0),s=(0,r.useRef)(null),o=(0,r.useRef)(null),a=(0,r.useRef)(!1),l=((0,z.tz)(),(0,ie.A)()),{showNotification:c}=(0,te.A)(),[d,g]=(0,r.useState)(!1),[p,v]=(0,r.useState)({isOpen:!1}),x=(0,r.useRef)(void 0),A=(0,r.useMemo)(()=>new ae.A(async(t,i,n,r)=>{if("overview"===r.sort){if(1===i){const t=await l.dispatch((0,re.mM)(e.listing.slug,{limit:35,page:i,extraCollections:"all",withAggregations:!1})),n=(0,se.N)(t),r={collection:[],paging:t.paging,sorting:{sort:"overview",order:"DESC"}};for(const e of n)if(e.id!==oe.QR.SHORTS)for(const t of e.paginatedCollection.collection)r.collection.push({...t,_collectionId:oe.QR.MAIN});x.current=r;const s=r.collection.slice(0,6);return{...r,collection:s,paging:{...r.paging,currentItemCount:s.length,totalPageCount:Math.ceil(r.paging.totalItemCount/6),itemCountPerPage:6}}}const t=x.current;if(!t)throw new Error("No cached overview response");const r=6*(i-1),s=6*i;if(r>=t.collection.length)return l.dispatch((0,re.cK)(e.listing.slug,{limit:n,page:i-Math.ceil(t.collection.length/6),mainCollection:oe.QR.MAIN,withAggregations:!1,extraCollections:"all"})).then(e=>({...e,sorting:{sort:"overview",order:"DESC"}}));const o=t.collection.slice(r,s);return{...t,collection:o,paging:{...t.paging,currentItemCount:o.length,totalPageCount:Math.ceil(t.paging.totalItemCount/6),itemCountPerPage:6}}}return l.dispatch((0,re.cK)(e.listing.slug,{...r,limit:n,page:i,mainCollection:oe.QR.MAIN,withAggregations:!1}))},[{id:oe.QR.MAIN,label:"Reviews",firstPageWasSkipped:!1,overlappingItemCount:0,paginatedCollection:{collection:e.featuredReview?[{...e.featuredReview,_collectionId:oe.QR.MAIN}]:[],paging:{currentPage:0,itemCountPerPage:6,totalItemCount:e.listing.statistics.numberOfReviews,totalPageCount:Math.ceil(e.listing.statistics.numberOfReviews/6),currentItemCount:e.featuredReview?1:0},sorting:{sort:"overview",order:"DESC"}}}]),[e.listing.id,l]),y=A.watch(),b=y[0],j=ue.find(e=>e.sorting.sort===b.paginatedCollection.sorting.sort&&e.sorting.order===b.paginatedCollection.sorting.order);(0,r.useEffect)(()=>{e.enableStickyResultHeader&&(a.current=e.enableStickyResultHeader.includes((0,le.A)()?"mobile":"desktop"))},[]),(0,ne.A)(n,({isVisible:e})=>{a.current&&s.current&&(s.current.style.visibility=e?"hidden":"visible")},{topOffset:"100%"});const S={buttonSize:"small",paddingX:3,paddingY:1};return(0,M.jsxs)(r.Fragment,{children:[p.isOpen&&(0,M.jsx)(K.A,{listing:e.listing,reviewSpecifications:e.reviewSpecifications,collections:y,initialSelectedAttachmentId:p.initialSelectedAttachmentId,onClose:()=>v({isOpen:!1})}),(0,M.jsx)(u.h,{ref:n,order:"last",position:"relative",style:{top:"calc((var(--pr-sticky-topbar-height) + var(--pr-sticky-filters-height) + var(--pr-sticky-ad-height)) * -1)"}}),d&&e.stickyHeaderSection&&(0,M.jsx)(u.h,{ref:s,elevation:1,position:"sticky-top",alignItems:"start",alignSelf:"start",backgroundColor:"white",display:"flex",flexWrap:"wrap",gap:2,justifyContent:"between",negativeMarginX:3,padding:3,shadow:"small",className:de("reviews-tab-content-sticky-header"),style:{visibility:"hidden"},children:e.stickyHeaderSection}),(0,M.jsxs)(u.h,{ref:o,"data-layout":"reviews",marginBottom:b.hasMoreItems?void 0:3,marginTop:3,negativeMarginX:3,className:de("enable-container-query","reviews-tab-content-reviews"),children:[b.paginatedCollection.collection.length>0&&b.paginatedCollection.collection.map((t,i)=>{const n=(0,ce.t)(e.reviewSpecifications,t.specificationValues,t.resolvedReferences,{filterOutRatingSpecsWithValue:t.rating});return(0,M.jsxs)(r.Fragment,{children:[(()=>{if(1===i&&e.reviewsAiSummary)return(0,M.jsxs)(m.A,{marginX:"auto",marginY:3,className:de("reviews-tab-content-reviewsAiSummary"),children:[(0,M.jsx)(m.A.Header,{noBorder:!0,padding:3,paddingBottom:0,children:(0,M.jsxs)(D.A,{level:3,headingStyle:4,children:[(0,M.jsx)(w.A,{name:"sparkles",height:20,width:20,textStyle:"primary"}),(0,M.jsx)(r.Fragment,{children:"Â "}),"AI reviews summary",e.reviewsAiSummary.updatedAt&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"Â "}),(0,M.jsx)(J.A,{content:(0,M.jsx)(z.sA,{id:"public.listing.reviews.ai_summary.heading.tooltip",defaultMessage:"This summary was generated using AI and was last updated on {updatedAt, date, long}",values:{updatedAt:e.reviewsAiSummary.updatedAt}}),innerProps:{lineHeight:"small"},placement:"right",children:(0,M.jsx)(w.A,{name:"information-circle",height:20,width:18,cursor:"help",textStyle:"muted-secondary"})})]})]})}),(0,M.jsx)(m.A.Block,{padding:3,children:(0,M.jsx)(Q.A,{summary:e.reviewsAiSummary.summary,collapsedHeight:240})})]})})(),(0,M.jsx)(Z.A,{listing:e.listing,review:t,partitionedSpecifications:n,multilineTextProps:0===i?{truncateTo:150,truncateAfter:250,inlineExcerpt:!0}:{inlineExcerpt:!0},onClickAttachment:e=>{v({isOpen:!0,reviewId:t.id,initialSelectedAttachmentId:e.id})},showActions:0===i?!e.hideFirstReviewActions:void 0,showAmbassad
1orReview:0!==i,showAttachments:0!==i,showAvatar:0!==i,showSelectedReview:0!==i,showSpecificationRatings:!(0===i||t.body.length<300||0===n.ratingGroups.length||n.ratingGroups.every(e=>e.fields.every(e=>e.value===t.rating))),showSubjectLink:0!==i||e.featuredReview?.id!==t.id,onExpand:()=>{if(b.hasMoreItems&&!d)try{A.loadMoreItems(oe.QR.MAIN),g(!0)}catch{}},onExpandComments:()=>{if(b.hasMoreItems&&!d)try{A.loadMoreItems(oe.QR.MAIN),g(!0)}catch{}},containerProps:{marginBottom:d?5:void 0,marginTop:0===i?void 0:5,className:de("reviews-tab-content-review",{"reviews-tab-content-first-review":0===i})}})]},t.id)}),b.hasMoreItems&&(0,M.jsxs)(h.A,{alignItems:"center",gap:1,justifyContent:"center",marginBottom:d?5:void 0,marginTop:(()=>{if(0!==b.paginatedCollection.collection.length)return d?5:2})(),children:[(0,M.jsxs)($.A,{ref:i,onClick:async()=>{await A.loadMoreItems(oe.QR.MAIN),g(!0),t.current?.emit("meaningfulUserAction")},reactToError:!0,buttonStyle:"primary-light",fontWeight:"semi-bold",textStyle:"dark",...S,tracking:{id:"reviews.load_more"},className:de("reviews-tab-content-button",{expanded:d}),children:[(0,M.jsx)(w.A,{name:"plus",height:21,width:16,style:{"--icon-stroke-width":"2.5px"}}),(0,M.jsx)(r.Fragment,{children:"Â "}),(0,M.jsx)(z.sA,{id:"public.search.result.listing.reviews_tab.load_more",defaultMessage:"{numberOfReviewsVisible, plural, =0 {Load reviews} other {Load more reviews}}",values:{numberOfReviewsVisible:b.paginatedCollection.collection.length}})]}),d&&(0,M.jsx)(f.A,{content:e=>ue.map(t=>(0,M.jsx)(f.A.Item,{onClick:async()=>{e();try{await A.loadMoreItems(oe.QR.MAIN,t.sorting),g(!0)}catch(e){c({message:(0,M.jsx)(X.A,{error:e}),level:ee.S.ERROR,position:ee.H.BOTTOM})}},isActive:j.key===t.key,children:(0,M.jsx)(F.A,{children:ge(t.key)})},t.key)),children:e=>(0,M.jsx)(f.A.Toggle,{...S,buttonStyle:null,isActive:e,title:"Sort by",fontWeight:"medium",className:de("reviews-tab-content-button",{expanded:d}),children:ge(j.key)})})]})]})]})}var he=i(66668),me=i(49378),pe=i(63200),fe=i(50083),ve=i(71536),xe=i(52703),Ae=i(94874),ye=i(84825);function we(e){const t=e.aggregationListItemViewWidget?.widget;if(t){if(t in ye.o)return ye.o[t];(0,Ae.A)(`resolveAggregationListItemViewWidget(field: ${e.id}): unknown aggregationListItemViewWidget "${t}"`,{metadata:{field:e}})}}var be=i(87384);const je={PrNumberViewWidget:be.rJ,PrNumberRangeViewWidget:be.jm,PrRatingViewWidget:be.bt,PrUniqueChoiceViewWidget:be.DX,PrMultiChoiceViewWidget:be.DX,PrMultiChoiceListViewWidget:be.YH,PrTextViewWidget:be.rJ,PrMultilineTextViewWidget:be.IM,PrMarkdownTextViewWidget:be.pO,PrNumericOptionsViewWidget:be.wD,PrDateViewWidget:be.MH,PrTimeViewWidget:be.Dx,PrDateTimeViewWidget:be.bJ,PrBooleanViewWidget:be.i5,PrAddressViewWidget:be.MY};var Se=i(57814),ke=i(51753);function Re(e){const{specificationFields:t,aggregationType:i,isSearchPageResult:n}=e,r=t.map(t=>{const{field:r,value:s}=t;let o,a;if(!(0,ke.Ay)(s,i))return null;if("aggregated"===i){const t=we(r);if(t){if(!(0,Se.A)(r.aggregationListItemViewWidget?.widget,s))return null;o=(0,M.jsx)(t,{field:r,aggregation:s,context:{useCase:n?"searchPageResult":void 0},specificationResourceType:e.specificationResourceType}),a=r.aggregationListItemViewWidget?.widget}}else{const e=function(e){const t=e.listItemViewWidget?.widget;if(t){if(t in je)return je[t];(0,Ae.A)(`resolveListItemViewWidget(field: ${e.id}): unknown listItemViewWidget "${t}"`,{metadata:{field:e}})}}(r);e&&(o=(0,M.jsx)(e,{field:r,value:s}),a=r.listItemViewWidget?.widget)}if(!o||!a)return null;return{label:(0,M.jsx)(xe.A,{field:{label:r.pluralLabel||r.label,description:r.description},iconProps:{height:17.5,width:16,textStyle:"muted",verticalAlign:"top",elevation:1,position:"relative"}},r.id),widget:o,widgetName:a,value:s}}),s=(0,ve.A)(r);if(0!==s.length)return s}var Ce=i(82176),Te=i(55930),Ie=i(97852),Ne=i(69903),_e=i(16940),Pe=i(1465),Ee=i(94683),Le=i(33963),Me=i(31362);function Oe(e,t,i={}){const n=[],r=[],s=[];if(!e||0===e.fields.length||(0,Me.A)(i))return{otherSpecifications:n,highlightedSpecifications:r,recommendedRetailPriceSpecifications:s};return(new Ce.A).visitFields(e,e=>{const o=i[e.id];(0,ke.Ay)(o,t)&&(e.tags?.includes("recommended_retail_price")?s.push({f
1ield:e,value:o}):e.tags?.includes("search_result_highlight")||e.tags?.includes("main_selling_point")?r.push({field:e,value:o}):e.tags?.includes("home_builder_home_design_url")||n.push({field:e,value:o}))}),{otherSpecifications:n,highlightedSpecifications:r,recommendedRetailPriceSpecifications:s}}const De=new Ce.A;const Ve=o().bind({"search-result":"Qk0iat",attachments:"fj4rlT","bottom-bleed":"dWyozO",monetization:"zIVsM7","top-bleed":"FfOjwG","highlighted-specs":"TGCZRj","toggle-summary":"rqWQFF"});function We(e){return(0,M.jsx)(SpecificationValuesList,{listOfSpecificationsWidgetAndLabel:e,listRenderer:e=>{const[t,i]=(0,n.A)(e,e=>"PrAggregationAverageRatingViewWidget"===e.widgetName);return(0,M.jsxs)(V.A,{unstyled:!0,breakWord:!0,columns:1===e.length?void 0:{sm:2},fontSize:"small",gapX:3,lineHeight:"small",textStyle:"dark",children:[t.map((e,t)=>(0,M.jsxs)(V.A.Item,{display:"flex",gap:2,justifyContent:"between",marginTop:t>0?1:void 0,children:[(0,M.jsx)(F.A,{textStyle:"muted-secondary",truncate:!0,children:e.label}),e.widget]},"ratings"+t)),i.map((e,i)=>(0,M.jsxs)(V.A.Item,{marginTop:t.length+i>0?1:void 0,children:[(0,M.jsx)(F.A,{marginRight:2,textStyle:"muted-secondary",children:e.label}),e.widget]},"others"+i))]})}})}function SearchResultListing_SearchResultListing(e){const t=(0,B.A)(),[i,n]=(0,r.useState)(!1),{activeTab:s,category:o,disableComparison:L,isSponsored:U=!1,quoteRequestCollectionStrategy:H,listing:G,tracking:Y,featuredReviewBody:$,imageLoading:X,...K}=e,Q=function(e){const{category:t,listing:i,disableComparison:n,isSponsored:r}=e,s=(0,B.A)(),o=Boolean(!r&&i.affiliateLink&&i.categories&&i.categories.length>0&&("services"===i.categories[0].hook||"products"===i.categories[0].hook)),a=i.tags?.includes("hide_content_due_to_legal_request"),l=[];if(t?.specifications?.review&&i.reviewSpecificationValuesAggregation){const e=(0,Ie.A)(i.reviewSpecificationValuesAggregation);De.visitFields(t.specifications.review,t=>{(0,ke.Ay)(e[t.id],"aggregated")&&we(t)&&l.push({field:t,value:e[t.id]})})}const c=t?.specifications?.entry||{allFieldIds:[],fields:[]},d=i.isLeaf?Oe(c,"non_aggregated",i.specifications):Oe(c,"aggregated",(0,Ie.A)(i.specificationValuesAggregation||{})),u=Re({specificationResourceType:Te.W.ENTRY,specificationFields:d.otherSpecifications,aggregationType:i.isLeaf?"non_aggregated":"aggregated",isSearchPageResult:!0}),g=Re({specificationResourceType:Te.W.ENTRY,specificationFields:d.recommendedRetailPriceSpecifications,aggregationType:i.isLeaf?"non_aggregated":"aggregated",isSearchPageResult:!0}),h=Re({specificationResourceType:Te.W.ENTRY,specificationFields:d.highlightedSpecifications,aggregationType:i.isLeaf?"non_aggregated":"aggregated",isSearchPageResult:!0}),m=Re({specificationResourceType:Te.W.REVIEW,specificationFields:l,aggregationType:"aggregated",isSearchPageResult:!0}),p=(()=>
1{if(!a&&!i.tags?.includes("hide_attachments")&&!i.categories?.some(e=>e.tags.includes("no_highlighted_attachments"))&&i.reviewSpecificationValuesAggregation?.reviewIdsWithHighlightedAttachments&&i.statistics.numberOfReviews>1){const e=(0,fe.A)(i.reviewSpecificationValuesAggregation.reviewIdsWithHighlightedAttachments,4);if(e.length>=3)return{highlightedAttachments:e}}})(),f=(()=>{if(p||h&&0!==h.length)return!g||i.offers&&0!==i.offers.length?h:g.concat(h??[])})();return{showAffiliateLinkButton:o,showCompareCheckbox:Boolean(!n&&t?.tags.includes("enable_comparison")&&"abstract"!==t.ambiguity),hideContentDueToLegalRequest:a,listOfEntrySpecificationsWidgetAndLabel:u,listOfHighlightedSpecificationsWidgetAndLabel:f,listOfReviewSpecificationsWidgetAndLabel:m,partitionedEntrySpecifications:d,homeBuildersHomeDesignButtonUrl:"home-builders"===t?.hook&&t?.specifications?.entry?(0,Ne.A)(t.specifications.entry,i.specifications,"home_builder_home_design_url"):void 0,categories:(()=>{if(i.categories&&t&&!t.isLeaf){const e=(0,me.A)(i.categories,e=>e.level);if(e)return i.categories.filter(t=>t.level===e.level)}})(),offersSection:(()=>{if(i.offers&&i.offers.length>0)return{allOffers:i.offers,offerWithLowestPrice:(0,he.A)(i.offers,e=>e.price.amount)};if(!g||0===g.length)return;if(f&&f.length>0)return;const e=g[0];return(0,pe.A)(e.value)&&"number"==typeof e.value.min?{rrp:e.value.min}:"number"!=typeof e.value&&Number.isNaN(Number(e.value))?void 0:{rrp:Number(e.value)}})(),highlightedReviewAttachmentsSection:p,award:(0,Le.A)((0,Ee.A)(s,i.tags)),adminLinks:(()=>{const e=[];return i.brand&&e.push({label:`${i.brand.name} (Brand)`,url:s.generate("www.admin.catalog_brand_edit",{catalogId:i.brand.catalogId,brandId:i.brand.id})}),e.push({url:s.generate("www.admin.catalog_entry_edit",{catalogId:i.catalogId,entryId:i.id})}),e})(),reviewSection:(()=>{if(!a&&!r)return i.featuredReview?{featuredReview:{...i.featuredReview,subject:{type:_e.PQ.KNOWN_INTERNAL_ENTRY,entry:{catalogId:i.catalogId,id:i.id,fullName:i.fullName,name:i.name,shortName:i.shortName,isArchived:!1,isDiscontinued:i.isDiscontinued,marketAvailability:i.marketAvailability,brand:i.brand,level:1,manuals:[],pictures:[],rootId:i.listingRoot?.id??i.id,slug:i.slug,statistics:i.statistics,superseders:[],tags:i.tags,universalIds:[],isManageableByBrandManagers:i.isManageableByBrandManagers}}},reviewSpecifications:t?.specifications?.review||void 0,enableStickyResultHeader:e.quoteRequestCollectionStrategy?["desktop"]:["mobile","desktop"],reviewsAiSummary:i.reviewsSummary?{summary:i.reviewsSummary,updatedAt:i.reviewsSummaryUpdatedAt}:void 0}:void 0})(),summarySection:a?u||i.shortDescription&&!r?{listOfEntrySpecificationsWidgetAndLabel:u,shortDescription:i.shortDescription}:void 0:m||u||i.shortDescription&&!r?{listOfReviewSpecificationsWidgetAndLabel:m,listOfEntrySpecificationsWidgetAndLabel:u,shortDescription:i.shortDescription}:void 0,medias:(()=>{const e=[];if(i.pictures&&i.pictures.length>0)for(const t of i.pictures)e.push({id:t,type:"image"});if(i.videos&&i.videos.length>0)for(const t of i.videos)"youtube"===t.type&&e.push({id:(0,Pe.X)(t.url),type:"video",source:"youtube"});return e})()}}({listing:G,category:o,isSponsored:U,disableComparison:L,quoteRequestCollectionStrategy:H});let J,Z=!0;U||(G.superseders?.length?(Z=!1,J=(0,M.jsxs)(F.A,{position:"relative",children:["Replaced by ",G.superseders.slice(0,1).map(e=>(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(S.A.Static,{to:t.generate("www.public.listing",{listingSlug:e.slug}),breakWord:!0,headingStyle:5,stretchedLink:!0,textDecorationHover:"underline",textStyle:"body",children:(0,q.A)({listing:e,currentListing:G})}),e.statistics?.numberOfReviews&&e.statistics?.numberOfReviews>0&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"Â "}),(0,M.jsx)(E.A,{rating:e.statistics?.rating,numberOfReviews:e.statistics?.numberOfReviews,display:"inline-flex"})]})]},e.id))]})):G.listingRoot&&(Z=!1,J=(0,M.jsxs)(F.A,{position:"relative",children:["Part of ",(0,M.jsx)(S.A.Static,{to:t.generate("www.public.listing",{listingSlug:G.listingRoot.slug}),breakWord:!0,headingStyle:5,stretchedLink:!0,textDecorationHover:"underline",textStyle:"body",tracking:{id:"listing_root",gaContext:{label:G.listingRoot.slug}},children:(0,q.A)({listing:G.listingRoot})}),G.listingRoot.statistics.numberOfReviews>0&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"Â "}
1),(0,M.jsx)(E.A,{rating:G.listingRoot.statistics.rating,numberOfReviews:G.listingRoot.statistics.numberOfReviews,display:"inline-flex"})]})]})));const ee=[];let te;var ie;Q.award&&ee.push((0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"Â "}),(0,M.jsx)(d.A,{year:Q.award.year,state:Q.award.state,format:"short"})]},"award")),G.isDiscontinued&&ee.push((0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"Â "}),(0,M.jsx)(b.A,{})]},"isDiscontinued")),U&&$&&(te=(0,M.jsx)(W.A,{"data-layout":"primary-content","data-nosnippet":!0,fontSize:"small",lineHeight:"small",truncate:2,children:(ie={label:(0,M.jsx)(F.A,{textStyle:"muted",children:(0,M.jsx)(z.sA,{id:"public.search.result.listing.body.label",defaultMessage:"{isSponsored, select, true {Featured} false {Latest}} review: ",values:{isSponsored:U}})}),body:(0,M.jsx)(F.A,{breakWord:!0,italic:!0,children:$})},(0,M.jsxs)(M.Fragment,{children:[ie.label,ie.body]}))})),!U&&Q.listOfHighlightedSpecificationsWidgetAndLabel&&(te=(0,M.jsx)(SpecificationValuesList,{listOfSpecificationsWidgetAndLabel:Q.listOfHighlightedSpecificationsWidgetAndLabel,listRenderer:e=>(0,M.jsx)(V.A,{unstyled:!0,"data-layout":"primary-content","data-number-of-specs":e.length,fontSize:"small",gapX:3,lineHeight:"small",className:Ve("highlighted-specs"),children:e.map((e,t)=>e.widget?(0,M.jsxs)(V.A.Item,{fontWeight:"medium",children:[(0,M.jsx)(F.A,{fontWeight:"normal",marginRight:2,textStyle:"muted",children:e.label}),e.widget]},t):null)})}));const ne=[];if(Q.offersSection){const{allOffers:e,offerWithLowestPrice:t,rrp:i}=Q.offersSection;e&&t?ne.push((0,M.jsxs)(u.h,{alignItems:"center",display:"flex",flexWrap:"wrap",gapX:4,gapY:2,children:[(0,M.jsxs)(S.A.Static,{to:t.url,external:!0,rel:U?"sponsored":void 0,fontSize:"xsmall",fontWeight:"bold",lineHeight:"small",nowrap:!0,position:"relative",tracking:{id:"offers.lowest_offer"},children:[(0,M.jsx)(D.A,{level:3,fake:!0,fontWeight:"semi-bold",stretchedLink:!0,textDecorationHover:"underline",children:(0,M.jsx)(N.A,{amount:t.price.amount/100,currency:t.price.currency,hideCentsIfWhole:!0})}),(0,M.jsx)(F.A,{display:"block",textStyle:"primary",children:t.partner.name})]}),1===e.length?(0,M.jsx)(S.A.Static,{to:e[0].url,element:g.A.Link,external:!0,buttonSize:"small",buttonStyle:"warning",tracking:{id:"offers.button"},children:"Go to offer"}):(0,M.jsx)(I.A,{offers:e,popoverPlacement:"bottom-end",children:e=>(0,M.jsx)(f.A.Toggle,{buttonSize:"small",buttonStyle:"warning",isActive:e,tracking:{id:"offers.button"},children:"All offers"},"offers-dropdown")})]},"offers")):i&&ne.push((0,M.jsxs)(u.h,{fontSize:"xsmall",fontWeight:"bold",lineHeight:"small",children:[(0,M.jsx)(D.A,{level:3,fake:!0,fontWeight:"semi-bold",children:(0,M.jsx)(N.A,{amount:i,currency:"AUD",hideCentsIfWhole:!0})}),(0,M.jsx)(F.A,{display:"block",textStyle:"primary",children:"RRP"})]},"rrp"))}const re=[];Q.showAffiliateLinkButton&&re.push((0,M.jsx)(l.A,{affiliateLink:G.affiliateLink,categories:G.categories,slug:G.slug,buttonSize:"small"},"affiliate-link")),"typeform"!==H?.type||(0,P.v)(H.context.category)||re.push((0,M.jsx)(_.A,{collectionStrategy:H,listing:e.listing,isServiceProviderTargeted:!0,buttonSize:"small"},"quote-request-call-to-action")),Q.homeBuildersHomeDesignButtonUrl&&re.push((0,M.jsx)(y.A,{url:Q.homeBuildersHomeDesignButtonUrl,buttonSize:"small"},"home-builders-home-design")),re.length>0?ne.push((0,M.jsx)(h.A,{children:re},"button-toolbar-actions")):U&&ne.push((0,M.jsx)(S.A.Static,{to:t.generate("www.public.listing",{listingSlug:G.slug}),rel:U?"sponsored":void 0,element:g.A.Link,buttonSize:"small",buttonStyle:"warning",nowrap:!0,tracking:Y,children:"Read reviews"},"sponsord-read-reviews-link"));const se=[];Q.summarySection&&(Q.summarySection.shortDescription&&se.push((0,M.jsx)(u.h,{"data-nosnippet":!0,fontSize:"small",lineHeight:"small",trimY:!0,children:(0,M.jsx)(R.A,{source:Q.summarySection.shortDescription})},"short-description")),Q.summarySection.listOfReviewSpecificationsWidgetAndLabel&&se.push(We(Q.summarySection.listOfReviewSpecificationsWidgetAndLabel)),Q.summarySection.listOfEntrySpecificationsWidgetAndLabel&&se.push(We(Q.summarySection.listOfEntrySpecificationsWidgetAndLabel)));const oe=[];Q.highlightedReviewAttachmentsSection&&oe.push((0,M.jsx)(k.A,{"data-layout":0===oe.length?"secondary-content":void 0,listing:G,highlightedReviewAttachmentsSection:Q.highlightedReviewAttachmentsSection,imageLoading:X,elevation:1,className:Ve("attachments",{"bottom-bleed":0===ne.length&&Q.reviewSection&&!i,"top-bleed":Z})},"attachments")),ne.length>0&&oe.push((0,M.jsx)(u.h,{"data-layout":"secondary-content",alignItems:"center",display:"flex",elevation:1,gap:1,className:Ve("monetization",{"bottom-bleed":Boolean(Q.reviewSection)}),children:ne},"monetization"));const ae=!i&&oe.length>1,le=ae?u.h:r.Fragment,ce=ae?{"data-layout":"secondary-content",display:"flex",flexDirection:"column-reverse",gap:2}:void 0,de=0===G.statistics.numberOfReviews?"No reviews":(0,M.jsx)(E.A,{numberOfReviews:G.statistics.numberOfReviews,rating:G.statistics.rating,size:"small",fontSize:"large",fontWeight:"bold",lineHeight:"smallest",textStyle:"dark"});return(0,M.jsxs)(m.A,{testId:"search_result_listing",full:{xs:!0,sm:!0,md:!0}
1,...K,children:[U&&(0,M.jsx)(a.default,{elevation:2,margin:3,position:"absolute-top-left"}),(0,M.jsx)(x.A,{links:Q.adminLinks}),J&&(0,M.jsx)(m.A.Header,{fontSize:"small",fontWeight:"medium",lineHeight:"small",noBorder:"bottom",padding:{xs:3,lg:2},paddingBottom:0,textStyle:"body",children:J}),(0,M.jsxs)(m.A.Block,{display:"grid",padding:3,paddingBottom:Q.reviewSection?0:void 0,position:"relative",className:Ve("search-result"),children:[(0,M.jsxs)(C.A,{gap:2,marginBottom:te&&!i?2:void 0,negativeMarginLeft:{lg:1},negativeMarginTop:{lg:1},children:[G.isProduct?(0,M.jsx)(v.A,{entry:G,medias:Q.medias,showCount:!1,flexShrink:0,loading:X}):(0,M.jsx)(S.A.Static,{to:t.generate("www.public.listing",{listingSlug:G.slug}),rel:U?"sponsored":void 0,flexShrink:0,tracking:Y,children:(0,M.jsx)(c.A,{entry:G,size:"xsmall",loading:X})}),(0,M.jsxs)(C.A.Body,{children:[(0,M.jsxs)(D.A,{level:3,headingStyle:4,children:[(0,M.jsx)(S.A.Static,{to:t.generate("www.public.listing",{listingSlug:G.slug}),rel:U?"sponsored":void 0,breakWord:!0,textDecorationHover:"underline",textStyle:"link",tracking:Y,children:(0,q.A)({listing:G})}),ee]}),(0,M.jsxs)(u.h,{alignItems:"center",display:"flex",doNotRenderIfEmpty:!0,flexWrap:"wrap",fontSize:"small",lineHeight:"small",marginTop:1,textStyle:"muted",children:[!Q.hideContentDueToLegalRequest&&de,Q.showCompareCheckbox&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"â"}),(0,M.jsx)(j.A.Consumer,{children:({addToComparison:e,removeFromComparison:t,selectedItems:i})=>(0,M.jsx)(A.A,{id:`addToComparison.${G.id}`,onChange:i=>{i.target.checked?e("listing",{id:G.id,slug:G.slug,fullName:G.fullName,pictureId:G.pictureId,categoryIds:G.categories?.map(e=>e.value)}):t(G.id)},checked:i.some(e=>e.id===G.id),getItemTracking:e=>({id:"add_to_comparison_checkbox",triggerEvent:"onChange",gaContext:{label:e?"uncheck":"check"}}),labelProps:{paddingLeft:1},wrapperProps:{alignItems:"center"},marginTop:0,children:"Compare"})})]}),(se.length>0||G.hasDescription)&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(r.Fragment,{children:"â"}),(0,M.jsxs)(F.A,{onClick:()=>n(!i),cursor:"pointer",display:"flex",fontWeight:"semi-bold",nowrap:!0,position:"relative",textStyle:"black",className:Ve("toggle-summary"),tracking:{id:"toggle_summary",gaContext:{action:i?"close":"open"}},children:[(0,M.jsx)(w.A,{name:i?"minus":"plus",height:18,width:18,backgroundColor:i?"info":void 0,borderRadius:"pill",textStyle:i?"white":void 0,style:{"--icon-stroke-width":"2.5px"}}),(0,M.jsx)(F.A,{stretchedLink:!0,textDecorationHover:"underline",userSelect:"none",children:"Summary"})]})]})]}),G.isManageableByBrandManagers&&(0,M.jsx)(O.A,{listing:G,destinationPage:"listing_details",fontSize:"small"})]})]}),i&&(se.length>0||G.hasDescription)&&(0,M.jsxs)(u.h,{"data-layout":"summary",backgroundColor:"light",borderRadius:!0,marginY:3,padding:3,overflow:"hidden",children:[se.map((e,t)=>(0,M.jsxs)(r.Fragment,{children:[t>0&&(0,M.jsx)(p.A,{marginY:3}),e]},t)),G.hasDescription&&(0,M.jsx)(T.A,{title:G.fullName,content:(0,M.jsx)(LazySearchListingDescription,{catalogId:G.catalogId,listingSlug:G.slug}),bodyProps:{padding:4,trimY:!0},size:"large",children:(0,M.jsxs)(g.A,{buttonSize:"small",buttonStyle:"link",block:!0,icon:"left",backgroundColor:"transparent",fontWeight:"medium",marginTop:se.length>1?2:void 0,tracking:{id:"more_info_button"},children:[(0,M.jsx)(w.A,{name:"information-circle"}),"More details"]})})]}),te,(0,M.jsx)(le,{...ce,children:oe}),Q.reviewSection&&(0,M.jsx)(ReviewsTabContent_ReviewsTabContent,{reviewsAiSummary:Q.reviewSection.reviewsAiSummary,featuredReview:Q.reviewSection.featuredReview,reviewSpecifications:Q.reviewSection.reviewSpecifications,listing:G,hideFirstReviewActions:oe.length>0,enableStickyResultHeader:Q.reviewSection.enableStickyResultHeader,stickyHeaderSection:(0,M.jsxs)(r.Fragment,{children:[(0,M.jsxs)(C.A,{gap:2,position:"relative",children:[(0,M.jsx)(c.A,{entry:G,size:"xsmall"}),(0,M.jsxs)(C.A.Body,{children:[(0,M.jsxs)(D.A,{level:3,headingStyle:4,children:[(0,M.jsx)(S.A.Static,{to:t.generate("www.public.listing",{listingSlug:G.slug}),breakWord:!0,stretchedLink:!0,textDecorationHover:"underline",textStyle:"link",tracking:Y,children:(0,q.A)({listing:G})}),ee]}),!Q.hideContentDueToLegalRequest&&(0,M.jsx)(u.h,{alignItems:"center",display:"flex",flexWrap:"wrap",fontSize:"small",lineHeight:"small",marginTop:1,textStyle:"muted",children:de})]})]}),ne]})})]})]})}},62897(e,t,i){i.d(t,{A:()=>SendPrivateMessageAction});var n=i(85906),r=i(45919),s=i(62227),o=i(25343),a=i(49329),l=i(55279),c=i(32600),d=i(58222),u=i(86490),g=i(74954),h=i(24082),m=i(16940),p=i(49075),f=i(14202);const v=n.lazy(()=>i.e("shared_containers_modals_PrivateMessageModal_tsx").then(()=>i(24859)));function SendPrivateMessageAction(e){const{showModal:t}=(0,d.A)(),i=(0,c.A)(),x=(0,l.A)(),A=(0,u.A)(h.Ke);return e.children(()=>i().then(()=>{return t({title:(i={recipientName:e.recipient.displayName},(0,f.jsxs)(f.Fragment,{children:["Send a private message to ",i.recipientName]})),content:t=>A.context.role===m.Xh.CONSUMER&&!1===e.canSendPrivateMessage?(0,f.jsxs)(n.Fragment,{children:[(0,f.jsx)(g.sA,{id:"public.send_private_message.no_approved_reviews",defaultMessage:"You need to have at least one review published to be able to send private messages. Please review a service or product you have recently used/purchased.",returnType:"string",children:e=>(0,f.jsx)(a.A,{source:e})}),(0,f.jsxs)(o.A.Static,{to:x.generate("www.public.write_review_search",{collectionMethod:{solicitorType:"productreview",internalGroupIdentifier:"send_private_message"}}),openNewTab:!0,element:r.A.Link,buttonStyle:"link",alignItems:"center",display:"inline-flex",gap:1,tracking:{id:"public.send_private_message.no_approved_reviews.write_a_review"},children:["Go to the write review page",(0,f.jsx)(s.A,{name:"arrow-top-right-on-square",style:{height:20,width:20}})]})]}):(0,f.jsx)(v,{onAfterSend:t,recipient:e.recipient,recipientType:e.recipientType}),bodyProps:{padding:4},size:"large",...e.modalOptions}
1).then(e.onResolve).catch(e.onClose||p.O);var i},p.O))}},99043(e,t,i){i.d(t,{A:()=>SendPrivateMessageToCompanyRepresentative});var n=i(62897),r=i(35447),s=i(12960),o=i(26084),a=i(55279),l=(i(74954),i(55156)),c=i(16940),d=i(14202);function SendPrivateMessageToCompanyRepresentative(e){const{showNotification:t}=(0,o.A)(),i=(0,a.A)(),u=(0,l.Zp)();if(e.author.context.role!==c.Xh.COMPANY_REPRESENTATIVE)return null;const g=e.author.context.facet===c.sj.BRAND_MANAGER&&e.author.context.brand?e.author.context.brand:e.author.context.facet===c.sj.CATALOG_MANAGER&&e.author.context.externalCatalog?.brand?e.author.context.externalCatalog.brand:void 0;return g?(0,d.jsx)(n.A,{recipient:{id:g.id,displayName:g.name},recipientType:c.sj.BRAND_MANAGER,onResolve:()=>{t({level:s.S.SUCCESS,title:"Message sent!",message:(0,d.jsx)(r.A,{textDecoration:"underline",children:"Go to your inbox"}),autoDismiss:30,onClick:()=>{u(i.generate("www.public.messages_inbox"))}})},children:t=>e.children(t)}):null}},63293(e,t,i){i.d(t,{A:()=>SuggestAnEditForBrandManagerLink});var n=i(78783),r=i(86490),s=i(76015),o=i(14202);function SuggestAnEditForBrandManagerLink(e){const t=(0,r.A)(s.wz),{children:i,listing:a,...l}=e;let c=null;return a.brand&&a.isManageableByBrandManagers&&t.brands?.some(e=>e.id===a.brand?.id)&&(c=(0,o.jsx)(n.A,{listing:a,...l})),i?i(c):c}},78783(e,t,i){i.d(t,{A:()=>SuggestAnEditLink});var n=i(25343),r=i(55279),s=(i(74954),i(14202));function SuggestAnEditLink(e){const{listing:t,destinationPage:i,...o}=e,a=(0,r.A)();return(0,s.jsx)(n.A.Static,{to:"listing_details"===i?a.generate("www.bm.catalog.listings.details",{catalogId:t.catalogId,externalCatalogSlug:"productreview",brandSlug:t.brand.slug,listingId:t.id}):a.generate("www.bm.help_contact",{type:"suggest_listing_edit",brandId:t.brand.id,listingName:t.fullName}),openNewTab:!0,textDecorationHover:"underline",textStyle:"link",nowrap:!0,...o,children:"Suggest an edit"})}},58223(e,t,i){i.d(t,{A:()=>TrackedReview});var n=i(72542),r=i(58020),s=i(14202);function TrackedReview(e){return(0,s.jsx)(r.A,{id:"review",vendors:["influx"],influxContext:{measurement:"review.impression",attributes:{reviewId:e.review.id}},onlyOnce:!0,children:t=>(0,s.jsx)(n.A,{...e,tracking:t})})}},23475(e,t,i){i.d(t,{A:()=>WithConfirmation});var n=i(58222),r=(i(74954),i(49075));function WithConfirmation(e){const{cancelLabel:t,confirmLabel:i,children:s,message:o="Do you really want to proceed?",onClick:a,title:l,...c}=e,{showConfirm:d}=(0,n.A)();return s({...c,onClick:(...n)=>d(o,{cancelLabel:t,confirmLabel:i,title:l}).then(()=>a(...n),t=>e.onCancel?e.onCancel():(0,r.O)(t)),title:l})}},26707(e,t,i){i.d(t,{A:()=>WrapLastWordAndIcon});var n=i(85906),r=i(35447),s=i(14202);function WrapLastWordAndIcon(e){const t=String(e.string).split(" ");return(0,s.jsxs)(n.Fragment,{children:[`${t.slice(0,-1).join(" ")} `,(0,s.jsxs)(r.A,{nowrap:!0,children:[t.slice(-1)," ",e.icon]})]})}},95791(e,t,i){i.d(t,{A:()=>Checkbox});var n=i(79400),r=i.n(n),s=i(19363),o=i(72810),a=i(14202);function Checkbox(e){const{children:t,getItemTracking:i,inline:n,labelProps:l,verticallyCenteredIndicator:c,wrapperProps:d,className:u,...g}=e;return t?(0,a.jsxs)(s.h,{alignItems:c?"center":"start",display:n?"inline-flex":"flex",...d,children:[(0,a.jsx)(s.h,{element:"input",type:"checkbox",cursor:e.disabled?"not-allowed":"pointer",flexShrink:0,marginTop:c?0:void 0,className:r()(u,"form-check-input"),tracking:i?i(e.checked):void 0,...g,value:null===g.value?void 0:g.value}),(0,a.jsx)(o.A,{htmlFor:e.id,cursor:e.disabled?"not-allowed":"pointer",flexGrow:1,overflowX:"hidden",paddingLeft:2,className:r()("form-check-label"),...l,children:t})]}):(0,a.jsx)(s.h,{element:"input",type:"checkbox",cursor:e.disabled?"not-allowed":"pointer",className:r()(u,"form-check-input"),tracking:i?i(e.checked):void 0,...g,value:null===g.value?void 0:g.value})}},58646(e,t,i){i.d(t,{A:()=>Form});var n=i(85906),r=i(6718),s=i(19363),o=i(14202);function Form(e){const{autocomplete:t=!0,noValidate:i=!0,...a}=e,l=(0,n.useContext)(r.A);return(0,o.jsx)(s.h,{element:"form",autoComplete:t?"on":"off",method:"POST",noValidate:i,id:l?.control?.name,...a})}},72810(e,t,i){i.d(t,{A:()=>Label});var n=i(35447),r=i(14202);function Label(e){const{...t}=e;return(0,r.jsx)(n.A,{element:"label",...t})}},69694(e,t,i){i.d(t,{A:()=>Textarea});var n=i(79400),r=i.n(n),s=i(19363),o=i(85906),a=i(42673),l=i(14202);function TextareaAutosize(e){const{autoFocus:t,...i}=e,n=(0,o.useRef)(null),r=(0,o.useRef)(void 0),s=(0,o.useRef)(null),c=e.value??e.defaultValue;return(0,o.useEffect)(()=>{const e=n.current;if(!e)return;const t=null==c?"":String(c),i=r.current,o=void 0===i||t.length<i.length;return r.current=t,null!=s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{s.current=null,function(e,{shrink:t}){if(e.scrollHeight)t?(e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`):e.scrollHeight>e.clientHeight&&(e.style.height=`${e.scrollHeight+2}px`)}(e,{shrink:o})}),()=>{null!=s.current&&(cancelAnimationFrame(s.current),s.current=null)}},[c]),(0,o.useEffect)(()=>{t&&setTimeout(()=>{n.current?.focus(),n.current?.setSelectionRange(n.current.value.length,n.current.value.length)}
1,1)},[]),(0,l.jsx)("textarea",{...(0,a.A)({ref:n},i)})}const c={small:"sm",large:"lg",xlarge:"xl"};function d(e){return`calc(0.75em + ${1.5*e}em + 2px)`}function Textarea(e){const{value:t,size:i,minRows:n=4,maxRows:o=10,style:a,className:u,...g}=e,h=(t||"").split("\n").length,m=Math.max(n,o);return(0,l.jsx)(s.h,{element:TextareaAutosize,value:t||"",maxLength:65e3,rows:n,className:r()("form-control",i&&`form-control-${c[i]}`,u),style:{height:d(Math.max(n,h>m?m:h)),maxHeight:Number.isFinite(o)?24*o:void 0,...a},...g})}},11242(e,t,i){i.d(t,{N7:()=>A,j9:()=>x,GS:()=>P,BI:()=>M,Fu:()=>S,Sc:()=>y,K7:()=>E,wF:()=>DropdownSelect,pX:()=>_,zt:()=>L,J$:()=>b,yL:()=>B,qU:()=>k,sq:()=>D,F1:()=>I,GW:()=>N,dE:()=>F,te:()=>C,l6:()=>R,R:()=>j,dJ:()=>W,Ap:()=>T,dO:()=>w,ks:()=>TextInput,mW:()=>V,TM:()=>Textarea_Textarea,AG:()=>O});var n=i(85906),r=i(34084),s=function(){return s=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)};var SVG=function(e){var t=e.animate,i=void 0===t||t,r=e.backgroundColor,o=void 0===r?"#f5f6f7":r,a=e.backgroundOpacity,l=void 0===a?1:a,c=e.baseUrl,d=void 0===c?"":c,u=e.children,g=e.foregroundColor,h=void 0===g?"#eee":g,m=e.foregroundOpacity,p=void 0===m?1:m,f=e.gradientRatio,v=void 0===f?2:f,x=e.uniqueKey,A=e.rtl,y=void 0!==A&&A,w=e.speed,b=void 0===w?1.2:w,j=e.style,S=void 0===j?{}:j,k=e.title,R=void 0===k?"Loading...":k,C=e.beforeMask,T=void 0===C?null:C,I=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),N=x||Math.random().toString(36).substring(6),_="".concat(N,"-diff"),P="".concat(N,"-animated-diff"),E="".concat(N,"-aria"),L=y?{transform:"scaleX(-1)"}:null,M="".concat(b,"s"),O="".concat(-1*v," 0"),D="".concat(v," 0");return(0,n.createElement)("svg",s({"aria-labelledby":E,role:"img",style:s(s({},S),L)},I),R?(0,n.createElement)("title",{id:E},R):null,T&&(0,n.isValidElement)(T)?T:null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(d,"#").concat(_,")"),style:{fill:"url(".concat(d,"#").concat(P,")")}}),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:_},u),(0,n.createElement)("linearGradient",{id:P,gradientTransform:"translate(".concat(O,")")},(0,n.createElement)("stop",{offset:"0%",stopColor:o,stopOpacity:l}),(0,n.createElement)("stop",{offset:"50%",stopColor:h,stopOpacity:p}),(0,n.createElement)("stop",{offset:"100%",stopColor:o,stopOpacity:l}),i&&(0,n.createElement)("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(O,"; 0 0; ").concat(D),dur:M,repeatCount:"indefinite"}))))},ContentLoader=function(e){return e.children?(0,n.createElement)(SVG,s({},e)):(0,n.createElement)(ReactContentLoaderFacebook,s({},e))},ReactContentLoaderFacebook=function(e){return(0,n.createElement)(ContentLoader,s({viewBox:"0 0 476 124"},e),(0,n.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,n.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};const o=ContentLoader;var a=i(14202);function FieldLoadingPlaceholder(){return(0,a.jsxs)(o,{speed:2,width:300,height:84,viewBox:"0 0 300 84",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",uniqueKey:(0,n.useId)(),children:[(0,a.jsx)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"200",height:"11"}),(0,a.jsx)("rect",{x:"127",y:"48",rx:"3",ry:"3",width:"53",height:"11"}
1),(0,a.jsx)("rect",{x:"187",y:"48",rx:"3",ry:"3",width:"72",height:"11"}),(0,a.jsx)("rect",{x:"18",y:"48",rx:"3",ry:"3",width:"100",height:"11"}),(0,a.jsx)("rect",{x:"18",y:"23",rx:"3",ry:"3",width:"140",height:"11"}),(0,a.jsx)("rect",{x:"166",y:"23",rx:"3",ry:"3",width:"120",height:"11"})]})}var l=i(79400),c=i.n(l),d=i(5306),u=i(36389);function TextInput(e){const{currency:t,prefix:i,hidePrefix:n,suffix:r,hideSuffix:s,className:o,id:l,...g}=e.componentProps??{};return e.wrap((0,a.jsx)(u.A,{currency:t,prefix:i,hidePrefix:n,suffix:r,hideSuffix:s,children:(0,a.jsx)(d.A,{...e.input,...g,id:l??e.meta.htmlId,form:e.meta.form,className:c()(o,{"is-invalid":e.meta.invalid}),testId:"text_input"})}))}var g=i(4484),h=i(35447);i(74954);function DropdownSelect(e){const{dropdownToggleProps:t,...i}=e.componentProps,{label:n,...r}=t,s=e.componentProps.options.find(t=>t.value===e.input.value);return e.wrap((0,a.jsx)(g.A,{content:t=>e.componentProps.options.map(i=>(0,a.jsx)(g.A.Item,{testId:String(i.value),isActive:e.input.value===i.value,onClick:()=>{e.input.onChange(void 0,i.value),t()},tracking:e.componentProps.getItemTracking?e.componentProps.getItemTracking(i):void 0,children:(0,a.jsx)(h.A,{children:i.label})},i.value)),...i,children:t=>(0,a.jsx)(g.A.Toggle,{isActive:t,testId:"toggle",...r,id:e.meta.htmlId,children:n(s?s.label:"Select")})}),{labelPointsToCustomElement:!0})}var m=i(18579),p=i(42673),f=i(69694);function Textarea_Textarea(e){const{className:t,id:i,...n}=e.componentProps??{};return e.wrap((0,a.jsx)(m.A,{testId:"textarea",children:r=>(0,a.jsx)(f.A,{...e.input,...(0,p.A)(n,r),id:i??e.meta.htmlId,form:e.meta.form,className:c()(t,{"is-invalid":e.meta.invalid})})}))}function v(e,t){return(0,r.Ay)(e,{fallback:n.createElement(FieldLoadingPlaceholder),...t})}const x=v({resolved:{},chunkName:()=>"fields-AutoComplete",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-AutoComplete").then(()=>i(25325)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>25325}),A=v({resolved:{},chunkName:()=>"fields-AsyncAutoComplete",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-AsyncAutoComplete").then(()=>i(87233)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>87233}),y=v({resolved:{},chunkName:()=>"fields-CheckboxInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-CheckboxInput").then(()=>i(87496)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>87496}),w=v({resolved:{},chunkName:()=>"fields-Switch",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-Switch").then(()=>i(19493)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>19493}),b=v({resolved:{},chunkName:()=>"fields-MultiCheckbox",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-MultiCheckbox").then(()=>i(15514)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>15514}),j=(v({resolved:{},chunkName:()=>"fields-DatePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-DatePicker").then(()=>i(47842)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>47842}),v({resolved:{},chunkName:()=>"fields-SimpleDatePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-SimpleDatePicker").then(()=>i(15937)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>15937})),S=(v({resolved:{},chunkName:()=>"fields-DateRangePicker-DateRangePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-DateRangePicker-DateRangePicker").then(()=>i(72422)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>72422}),v({resolved:{},chunkName:()=>"fields-ButtonList",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-ButtonList").then(()=>
1i(52657)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>52657})),k=v({resolved:{},chunkName:()=>"fields-RadioList",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-RadioList").then(()=>i(46096)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>46096}),R=v({resolved:{},chunkName:()=>"fields-Select",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-Select").then(()=>i(47357)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>47357}),C=v({resolved:{},chunkName:()=>"fields-RichTextarea",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-RichTextarea").then(()=>i(60472)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>60472}),T=(v({resolved:{},chunkName:()=>"fields-CodeEditorTextarea",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-CodeEditorTextarea").then(()=>i(94609)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>94609}),v({resolved:{},chunkName:()=>"fields-MaskedInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-MaskedInput").then(()=>i(87316)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>87316}),v({resolved:{},chunkName:()=>"fields-Slider-Slider",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-Slider-Slider").then(()=>i(38034)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>38034})),I=v({resolved:{},chunkName:()=>"fields-Slider-RangeSlider",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-Slider-RangeSlider").then(()=>i(30953)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>30953}),N=v({resolved:{},chunkName:()=>"fields-Rating",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-Rating").then(()=>i(33032)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>33032}),_=v({resolved:{},chunkName:()=>"fields-EmailSuggestion",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-EmailSuggestion").then(()=>i(65112)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>65112}),P=v({resolved:{},chunkName:()=>"fields-AvatarInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-AvatarInput").then(()=>i(61524)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>61524}),E=v({resolved:{},chunkName:()=>"fields-DateTimePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-DateTimePicker").then(()=>i(35288)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>35288}),L=v({resolved:{},chunkName:()=>"fields-GoogleMapsAutocomplete-GoogleMapsAutocomplete",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-GoogleMapsAutocomplete-GoogleMapsAutocomplete").then(()=>i(43460)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>43460}),M=v({resolved:{},chunkName:()=>"fields-BooleanInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-BooleanInput").then(()=>i(42577)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>42577}),O=v({resolved:{},chunkName:()=>"fields-TimePicker-TimePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-TimePicker-TimePicker").then(()=>i(60828)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>60828}),D=v({resolved:{},chunkName:()=>"fields-RangeInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-RangeInput").then(()=>i(56584)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>56584}),V=v({resolved:{},chunkName:()=>"fields-TextWithOptions",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-TextWithOptions").then(()=>i(24648)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>24648}),W=v({resolved:{},chunkName:()=>"fields-SingleDocumentUploadInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-SingleDocumentUploadInput").then(()=>i(27848)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>27848}),F=(v({resolved:{},chunkName:()=>"fields-SingleImageUploaderInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-SingleImageUploaderInput").then(()=>i(49962)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>49962}),v({resolved:{},chunkName:()=>"fields-TriStateInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-TriStateInput").then(()=>i(73647)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>73647}),v({resolved:{},chunkName:()=>"fields-DatePivotPicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-DatePivotPicker").then(()=>i(45979)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>45979}),v({resolved:{},chunkName:()=>"fields-ColorPicker-ColorPicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-ColorPicker-ColorPicker").then(()=>i(21302)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>21302}),v({resolved:{},chunkName:()=>"fields-ResourceSelect",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-ResourceSelect").then(()=>i(83565)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>83565})),B=(v({resolved:{},chunkName:()=>"fields-MarkdownEditor",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-MarkdownEditor").then(()=>i(63668)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>63668}),v({resolved:{},chunkName:()=>"fields-PhoneNumberInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("fields-PhoneNumberInput").then(()=>i(87504)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>87504}))},36389(e,t,i){i.d(t,{A:()=>CurrencySuffixPrefixWrapper});var n=i(79400),r=i.n(n),s=i(19363),o=i(35447),a=i(14202);function InputGroup(e){const{className:t,...i}=e;return(0,a.jsx)(s.h,{className:r()("input-group",t),...i})}InputGroup.Addon=function InputGroupAddon(e){const{className:t,...i}=e;return(0,a.jsx)(o.A,{className:r()("input-group-text",t),...i})},InputGroup.Button=function InputGroupButton(e){const{className:t,...i}=e;return(0,a.jsx)(s.h,{className:r()("input-group-btn",t),...i})};const l=InputGroup,c={AUD:"$",USD:"$",EUR:"â¬"};function CurrencySuffixPrefixWrapper(e){const t=e.prefix&&!e.hidePrefix,i=e.suffix&&!e.hideSuffix;return e.currency||t||i?(0,a.jsxs)(l,{flexWrap:"nowrap",children:[t&&(0,a.jsx)(l.Addon,{children:e.prefix}),e.currency&&(0,a.jsx)(l.Addon,{children:c[e.currency]}),e.children,i&&(0,a.jsx)(l.Addon,{children:e.suffix})]}):e.children}},6980(e,t,i){i.r(t);i.d(t,["C",0,e=>({...e,value:e.id,label:e.computedLongName}),"f",0,e=>({...e,value:e.id,label:e.fullName})])},34719(e,t,i){i.d(t,{A:()=>r});const n=(e,t)=>e.split(",").slice(-t).join(",").trim().replace(/, (Australia|AU)$/,"");function r(e,t,i=3){return e?n(e,i):t?n(t,i):null}},90849(e,t,i){function n(e){return e?e.replace(/[^a-zA-Z0-9 ]/g,"").trim().split(/\s+/).length:0}i.d(t,{A:()=>n})},28402(e,t,i){i.d(t,{A:()=>r});const n=/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/i;function r(e){return 36===e?.length&&n.test(e)}},96610(e,t,i){i.d(t,{A:()=>s});var n=i(85906),r=i(16346);function s(e){const{permissionName:t,resource:i,type:s="submission_permission"}=e,o=(0,n.useMemo)(()=>({type:s,permissionName:t,submission:i,isStrict:!0}),[s,t,i]),{candidates:a}=(0,r.A)(o);return a.length>0?{hasPermission:!0,candidate:a[0]}:{hasPermission:!1}}},22287(e,t,i){i.d(t,{Mc:()=>p,VM:()=>u,eC:()=>g,QA:()=>m,cK:()=>l,h9:()=>d,mM:()=>a,$P:()=>c,cC:()=>h});var n=i(821);var r=i(20378),s=i(53654);function o(e){const{sortBy:t,sort:i,order:n,rating:s,...o}=e;let a={...o};return t?a={...a,...r.h[t]}:i&&n&&(a.sort=i,a.order=n),"string"==typeof s?a.rating=s:Array.isArray(s)&&(a.rating=s.join(",")),a}function a(e,t){return{type:(0,n.Em)("public/listing/reviews/LOAD_LISTING_REVIEWS"),promise:(i,{urlGenerator:n})=>i.get(n.generate("api.public.listing.reviews",{listingSlug:e}),{query:o(t)})}}function l(e,t){return{type:(0,n.Em)("public/listing/reviews/LOAD_DENORMALIZED_LISTING_REVIEWS_COLLECTION"),promise:(i,{urlGenerator:n})=>i.get(n.generate("api.public.listing.reviews",{listingSlug:e}),{query:o(t)}).then(e=>(0,s.N)(e)[0].paginatedCollection)}}function c(e,t){return{type:(0,n.Em)("public/listing/reviews/LOAD_LISTING_REVIEWS_FILTER_AGGREGATIONS"),promise:(i,{urlGenerator:n})=>i.get(n.generate("api.public.listing.reviews.filter_aggregations",{listingSlug:e}),{query:t})}}function d(e,t){return a(e,{...t,hasAttachments:!0,withAggregations:!1,limit:10,normalize:"no",sorting:[{sort:"rating",order:"DESC"},{sort:"firstPublishedAt",order:"DESC"}]})}const u=(0,n.Iy)({type:"public/listing/reviews/CHANGE_REVIEW_VISIBILITY",commandName:"Pr.Domain.ConsumerPlatform.Review.Commands.ChangeReviewVisibility"}),g=(0,n.Iy)({type:"public/listing/reviews/COMPLETE_REVIEW_MEDIATION",commandName:"Pr.Domain.ConsumerPlatform.Review.Commands.CompleteReviewMediation"}),h=(0,n.Iy)({type:"public/listing/reviews/SUBMIT_COMMENT",commandName:"Pr.Domain.ConsumerPlatform.Comment.Commands.SubmitNewComment"}),m=(0,n.Iy)({type:"public/listing/reviews/EDIT_COMMENT",commandName:"Pr.Domain.ConsumerPlatform.Comment.Commands.EditComment"}),p=(0,n.Iy)({type:"public/listing/reviews/CHANGE_COMMENT_VISIBILITY",commandName:"Pr.Domain.ConsumerPlatform.Comment.Commands.ChangeCommentVisibility"})},20378(e,t,i){i.d(t,{f:()=>r});const n={newest:{sort:"firstPublishedAt",order:"DESC"}
1,ratingHighest:{sort:"rating",order:"DESC"},ratingLowest:{sort:"rating",order:"ASC"},mostLiked:{sort:"numberOfLikes",order:"DESC"}};function r(e,t){return"overview"===e?"overview":Object.keys(n).find(i=>n[i].sort===e&&n[i].order===t)}i.d(t,["h",0,n])},53654(e,t,i){i.d(t,{L:()=>s,N:()=>o});var n=i(28402),r=i(28867);function s(e){return Object.keys(e).some(e=>!!["q","aspectId","hasAttachments","hasFollowUps","ratings","isVerified","spontaneousReviews"].includes(e)||!!(0,n.A)(e))}function o(e,t){if(Array.isArray(e.collection))return e;if(0===e.collection.items.length)return[{id:r.QR.MAIN,label:"Main",paginatedCollection:{collection:[],paging:e.paging,sorting:e.sorting},firstPageWasSkipped:!1,overlappingItemCount:0}];const i={};let n=0;for(const s of e.collection.items){const{_collectionId:o=r.QR.MAIN,_subjectReference:a,_authorReference:l,comments:c,...d}=s,u=e.collectionDefinitionMap?.[o]??{label:"Main",paging:e.paging,sorting:e.sorting,firstPageWasSkipped:!1,overlappingItemCount:0};if(!u)continue;const g=[];for(const t of c){const{_authorReference:i,...n}=t;g.push({author:e.collection.authors[i],...n})}i[o]||(i[o]={id:o,label:u.label,paginatedCollection:{collection:[],paging:u.paging,sorting:u.sorting},firstPageWasSkipped:u.firstPageWasSkipped,overlappingItemCount:u.overlappingItemCount}),i[o].paginatedCollection.collection.push({author:e.collection.authors[l],subject:e.collection.subjects[a],comments:g,originalIndexAcrossCollections:t?.withOriginalIndexAcrossCollections?n++:void 0,_collectionId:o,...d})}return Object.values(i)}},28842(e,t,i){i.d(t,{N:()=>r});var n=i(821);function r(e){return{type:(0,n.Em)("public/listing/specifications/LOAD_LISTING_SPECIFICATIONS"),promise:(t,{urlGenerator:i})=>t.get(i.generate("api.public.listing.specifications",{listingSlug:e}))}}},71167(e,t,i){i.d(t,{B0:()=>r,dS:()=>s,Cs:()=>o});var n=i(821);const r=(0,n.Iy)({type:"public/reviewFollowUp/CREATE_REVIEW_FOLLOW_UP",commandName:"Pr.Domain.ConsumerPlatform.Review.Commands.SubmitReviewFollowUp"}),s=(0,n.Iy)({type:"public/reviewFollowUp/SUGGEST_REVIEW_FOLLOW_UP_QUESTION",commandName:"Pr.Domain.ConsumerPlatform.Review.Commands.SuggestReviewFollowUpQuestion"}),o=(0,n.Iy)({type:"public/reviewFollowUp/VOTE_FOR_REVIEW_FOLLOW_UP_QUESTION",commandName:"Pr.Domain.ConsumerPlatform.Review.Commands.VoteForReviewFollowUpQuestion"})},28867(e,t,i){i.d(t,{Ci:()=>r,QR:()=>n});var n=(e=>(e.MAIN="main",e.LATEST="latest",e.IN_DEPTH="inDepth",e.WITH_ATTACHMENTS="withAttachments",e.SHORTS="shorts",e.POSITIVE="positive",e.NEGATIVE="negative",e.MOST_LIKED="mostLiked",e.PINNED="pinned",e.BEST="best",e.WITH_ASPECTS="withAspects",e.LATEST_FOLLOW_UPS="latestFollowUps",e))(n||{});var r=(e=>(e.STATIC="static_search_page",e.DEFAULT="default",e))(r||{})},82176(e,t,i){i.d(t,{A:()=>n});class n{iterate(e,t,i=[]){"group"!==e.type?"facet_reference"!==e.type?t(e,i):e.facet&&e.facet.fields.forEach((e,n)=>{this.iterate(e,t,i.concat(["facet","fields",n]))}):e.fields.forEach((e,n)=>{this.iterate(e,t,i.concat(["fields",n]))})}visitFields(e,t){e.fields.forEach((e,i)=>{this.iterate(e,t,[i])})}}},78115(e,t,i){i.d(t,{A:()=>FormattedValueView});var n=i(85906),r=i(80579),s=i(35447),o=i(74954),a=i(14202);function TruncateTextIfTooLong(e){const[t,i]=(0,n.useState)(!1);return"string"==typeof e.value?!t&&e.value.length>60?(0,a.jsx)(s.A,{breakWord:!0,onClick:()=>i(!0),cursor:"pointer",position:"relative",children:(r={text:e.value.slice(0,60).trim(),expand:(0,a.jsx)(s.A,{textStyle:"link",stretchedLink:!0,textDecorationHover:"underline",children:"Expand"})},(0,a.jsxs)(a.Fragment,{children:[r.text,"... ",r.expand]}))}):(0,a.jsx)(s.A,{breakWord:!0,children:e.value}):e.value;var r}function FormattedValueView(e){let t="review"===e.context&&"text"===e.field?.type?(0,a.jsx)(TruncateTextIfTooLong,{value:e.value}):e.value;if(e.field&&["number","number_range","text"].includes(e.field.type)){const{properties:i,type:s}=e.field;if(i)return"number"!==s&&"number_range"!==s||(t=i.currency?(0,a.jsx)(r.A,{amount:e.value,currency:i.currency,isInCents:i.isInCents,hideCentsIfWhole:!0}):(0,a.jsx)(o.Gr,{value:e.value,options:{minimumFractionDigits:i.numberOfDecimals,maximumFractionDigits:i.numberOfDecimals}})),(0,a.jsxs)(n.Fragment,{children:[i.prefix&&!e.hidePrefix&&i.prefix,t,i.suffix&&!e.hideSuffix&&i.suffix]})}return t}},87384(e,t,i){i.d(t,{MY:()=>AddressView,i5:()=>BooleanView,bJ:()=>h,MH:()=>m,DX:()=>EnumView,rJ:()=>l.A,YH:()=>ListMultiChoiceView,pO:()=>MarkdownView,IM:()=>MultilineTextView,L:()=>p,wD:()=>f,jm:()=>v,bt:()=>RatingView,l2:()=>x,Dx:()=>A});var n=i(34084);function AddressView(e){return e.value.label}var r=i(74954),s=i(14202);function BooleanView(e){const{positive:t="Yes",negative:i="No"}=e.field.properties?.labels||{};return(0,s.jsx)(r.sA,{id:"specifications.boolean_view",defaultMessage:"{value, select,\n true {{trueLabel}}\n false {{falseLabel}}\n}",values:{value:String(e.value),trueLabel:t,falseLabel:i}})}var o=i(87855),a=i(12765);function EnumView(e){if("unique_choice"===e.field.type||"string"==typeof e.value){const t=e.field.properties.options.find(t=>t.value===e.value);return t?t.label:null}if("multi_choice"===e.field.type&&Array.isArray(e.value)){const t=[];return e.value.forEach(i=>
1{const n=e.field.properties.options.find(e=>e.value===i);n&&t.push(n.label)}),(0,s.jsx)(o.A.Consumer,{children:e=>(0,s.jsx)(a.A,{truncateAfter:1/0,items:t.sort((t,i)=>e.compare(t,i))})})}return null}var l=i(78115),c=i(70009),d=i(66307);function ListMultiChoiceView(e){const t=(0,c.A)(),i=[];return e.value.forEach(t=>{const n=e.field.properties.options.find(e=>e.value===t);n&&i.push(n.label)}),0===i.length?null:(0,s.jsx)(d.A,{paddingLeft:0,style:{listStylePosition:"inside",listStyleType:"disc"},children:i.sort((e,i)=>t.compare(e,i)).map((e,t)=>(0,s.jsx)(d.A.Item,{children:e},t))})}var u=i(49329);function MarkdownView(e){return(0,s.jsx)(u.A,{source:e.value,initialParser:"review"===e.context?"inline":e.initialParser,renderCompactLists:!0})}var g=i(14901);function MultilineTextView(e){return(0,s.jsx)(g.A,{marginBottom:4,style:{whiteSpace:"pre-line"},children:e.value})}function RatingView(e){const{max:t,numberOfDecimals:i,prefix:n,suffix:o}=e.field.properties||{};return a={rating:(0,s.jsx)(r.Gr,{value:e.value,options:{minimumFractionDigits:i,maximumFractionDigits:i}}),maximumRating:(0,s.jsx)(r.Gr,{value:t||5,options:{minimumFractionDigits:i,maximumFractionDigits:i}}),prefix:!e.hidePrefix&&n,suffix:!e.hideSuffix&&o},(0,s.jsxs)(s.Fragment,{children:[a.prefix,a.rating,"/",a.maximumRating,a.suffix]});var a}const h=(0,n.Ay)({resolved:{},chunkName:()=>"DateTimeView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("DateTimeView").then(()=>i(50115)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>50115}),m=(0,n.Ay)({resolved:{},chunkName:()=>"DateView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("DateView").then(()=>i(39708)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>39708}),p=(0,n.Ay)({resolved:{},chunkName:()=>"NumericalRefinementFilterViewLabel",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("NumericalRefinementFilterViewLabel").then(()=>i(35193)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>35193}),f=(0,n.Ay)({resolved:{},chunkName:()=>"NumericalRefinementItemViewLabel",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("NumericalRefinementItemViewLabel").then(()=>i(20720)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>20720}),v=(0,n.Ay)({resolved:{},chunkName:()=>"RangeView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("RangeView").then(()=>i(92771)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>92771}),x=(0,n.Ay)({resolved:{},chunkName:()=>"SliderView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("SliderView").then(()=>i(82835)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>82835}),A=(0,n.Ay)({resolved:{},chunkName:()=>"TimeView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e("TimeView").then(()=>i(19239)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return i(t)},resolve:()=>19239})},84825(e,t,i){i.d(t,{o:()=>w,A:()=>b});var n=i(94874),r=i(87384),s=i(14202);var o=i(83485),a=i(55930),l=i(27535),c=i(76759);var d=i(12765),u=i(83115),g=(i(74954),i(35447)),h=i(55156);function FilterLink(e){const{disabled:t,url:i,...n}=e,r=(0,h.Zp)();return t||!i?n.children:(0,s.jsx)(g.A,{onClick:()=>r(i),role:"link",cursor:"pointer",textDecorationHover:"underline",textStyle:"link",...n})}var m=i(66307);function GenericTextListAggregationView(e){const{component:t}=e;return 1===e.textList.length?(0,s.jsx)(t,{field:e.field,value:e.textList[0],...e.componentProps}):(0,s.jsx)(m.A,{paddingLeft:0,style:{listStylePosition:"inside",listStyleType:"disc"},children:e.textList.map((i,n)=>(0,s.jsx)(m.A.Item,{children:(0,s.jsx)(t,{field:e.field,value:i,...e.componentProps})},n))})}function MinMaxNumberView(e){return e.value[0]===e.value[1]?(0,s.jsx)(r.rJ,{field:e.field,value:e.value[0]}):(0,s.jsx)(r.jm,{field:e.field,value:e.value})}function MinMaxNumericOptionsView(e){return e.value[0]===e.value[1]?(0,s.jsx)(r.wD,{field:e.field,value:e.value[0]}):(t={min:(0,s.jsx)(r.wD,{field:e.field,value:e.value[0]}),max:(0,s.jsx)(r.wD,{field:e.field,value:e.value[1]})},(0,s.jsxs)(s.Fragment,{children:[t.min," - ",t.max]}));var t}function MinMaxRatingView(e){return e.value[0]===e.value[1]?(0,s.jsx)(r.bt,{field:e.field,value:e.value[0]}):(t={min:(0,s.jsx)(r.bt,{field:e.field,value:e.value[0],hidePrefix:"to_only"===e.field.properties?.prefixVisibility,hideSuffix:"to_only"===e.field.properties?.suffixVisibility}),max:(0,s.jsx)(r.bt,{field:e.field,value:e.value[1],hidePrefix:"from_only"===e.field.properties?.prefixVisibility,hideSuffix:"from_only"===e.field.properties?.suffixVisibility})},(0,s.jsxs)(s.Fragment,{children:[t.min," - ",t.max]}));var t}function MinOnlyNumberView(e){return(0,s.jsx)(r.rJ,{field:e.field,value:e.value})}var p=i(34496);var f=i(78441),v=i(63511),x=i(16691);var A=i(85906);
1function GenericOptionsCountView(e){const t=[],i=(0,x.A)(e.filter?.aggregation.counts??[]);for(let i=0;i<e.field.properties.options.length;i++){const n=e.field.properties.options[i],o=e.aggregation.counts.find(e=>e.key===n.value);o&&t.push({...n,label:(0,s.jsx)(r.DX,{field:e.field,value:n.value}),count:o.count,percentage:o.count/e.aggregation.counts.reduce((e,t)=>e+t.count,0)})}if(0===t.length)return null;const n=(t,i)=>{if(e.buildValueFilterPath)return void 0===t?e.buildValueFilterPath([i]):"string"==typeof t?t===i?e.buildValueFilterPath(null):e.buildValueFilterPath([t,i]):Array.isArray(t)?t.includes(i)?e.buildValueFilterPath(t.filter(e=>e!==i)):e.buildValueFilterPath(t.concat(i)):void 0};return e.renderAsLocalisedTextList?(0,s.jsx)(d.A,{items:t,renderListItem:t=>{const r=e.filter?.value?.includes(t.value),o=e.filter?(0,s.jsx)(FilterLink,{url:n(e.filter.value,t.value),disabled:0===i[t.value],stretchedLink:!0,tracking:{id:`filterable_link.${e.filter.field.id}`,gaContext:{action:r?"deselect":"select"}},children:t.label}):t.label;return e.renderCount?(0,s.jsx)(c.A,{label:o,count:t.count,format:"compact",hideCount:e.filter?.value&&!r,fontWeight:r?"bold":void 0,position:"relative"}):o},truncateAfter:1/0}):(0,s.jsx)(m.A,{unstyled:!0,children:t.map((t,r)=>{const o=e.filter?.value?.includes(t.value),a=e.filter?(0,s.jsx)(FilterLink,{url:n(e.filter.value,t.value),disabled:0===i[t.value],stretchedLink:!0,tracking:{id:`filterable_link.${e.filter.field.id}`,gaContext:{action:o?"deselect":"select"}},children:t.label}):t.label;return(0,s.jsxs)(A.Fragment,{children:[0!==r&&(0,s.jsx)(m.A.Item,{display:{xs:"none",xxl:"inline"},children:(0,s.jsx)(u.A,{})}),(0,s.jsx)(m.A.Item,{display:{xxl:"inline"},children:e.renderCount?(0,s.jsx)(c.A,{label:a,count:t.count,format:"compact",hideCount:e.filter?.value&&!o,fontWeight:o?"bold":void 0,position:"relative"}):a})]},r)})})}var y=i(70009);const w={PrAggregationMinMaxNumberViewWidget:function MinMaxNumberAggregationView(e){if(void 0===e.aggregation.min||void 0===e.aggregation.max)return null;const t=(0,s.jsx)(MinMaxNumberView,{field:e.field,value:[e.aggregation.min,e.aggregation.max]});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:e.aggregation.count,format:"compact"}):t},PrAggregationMinOnlyNumberViewWidget:function MinOnlyNumberAggregationView(e){const t=(0,s.jsx)(MinOnlyNumberView,{field:e.field,value:e.aggregation.min??0});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:e.aggregation.count,format:"compact"}):t},PrAggregationAverageNumberViewWidget:function AverageNumberAggregationView(e){return(0,s.jsx)(r.rJ,{field:e.field,value:e.aggregation.avg})},PrAggregationAverageRatingViewWidget:function AverageRatingView(e){const t=e.aggregation.avg??0,i=(0,l.A)(t);return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(o.A,{rating:i,size:"searchPageResult"===e.context?.useCase?"xsmall":"xxsmall",type:"circles",label:(0,s.jsx)(c.A,{label:i,count:e.aggregation.count,format:"compact",monoSpaceNumber:!0}),flexShrink:0,flexWrap:"nowrap",style:e.aggregationCountLongestLength?{flexBasis:`calc(70px + 0.25rem + ${e.aggregationCountLongestLength+4}ch)`}:void 0}):(0,s.jsx)(r.bt,{field:e.field,value:t})},PrAggregationMinMaxRatingViewWidget:function MinMaxRatingView_MinMaxRatingView(e){if(void 0===e.aggregation.min||void 0===e.aggregation.max)return null;const t=(0,s.jsx)(MinMaxRatingView,{field:e.field,value:[e.aggregation.min,e.aggregation.max]});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:e.aggregation.count,format:"compact"}):t},PrAggregationNumberTextListViewWidget:function NumberTextListView(e){const t=(0,s.jsx)(d.A,{items:(0,p.di)(e.aggregation.counts.map(e=>Number(e.key))).asc(),renderListItem:t=>(0,s.jsx)(r.rJ,{field:e.field,value:t}),truncateAfter:1/0});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:e.aggregation.counts.reduce((e,t)=>e+t.count,0),format:"compact"}):t},PrAggregationRatingTextListViewWidget:function RatingTextListView(e){const t=(0,s.jsx)(d.A,{items:(0,p.di)(e.aggregation.counts.map(e=>Number(e.key))).asc(),renderListItem:t=>(0,s.jsx)(r.bt,{field:e.field,value:t}),truncateAfter:1/0});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:e.aggregation.counts.reduce((e,t)=>
1e+t.count,0),format:"compact"}):t},PrAggregationNumericOptionsTextListViewWidget:function NumericOptionsTextListView(e){if(!e.field.properties?.numericOptions)return null;const{numericOptions:t}=e.field.properties;return(0,s.jsx)(d.A,{items:(0,p.di)(e.aggregation.ranges.map(e=>(0,f.A)(t,e=>e.label)[e.key])).desc(e=>e.label),renderListItem:t=>{const i=(0,s.jsx)(r.L,{field:e.field,value:t});if(e.filter&&e.buildValueFilterPath){const n=`${(0,v.A)(t.from)?"":t.from}_${(0,v.A)(t.to)?"":t.to}`,r=e.filter.value===n,o=(0,s.jsx)(FilterLink,{url:e.buildValueFilterPath(r?null:n),disabled:0===(0,x.A)(e.filter?.aggregation.ranges??[])[t.label],stretchedLink:!0,tracking:{id:`filterable_link.${e.filter.field.id}`,gaContext:{action:r?"deselect":"select"}},children:i});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:o,count:(0,x.A)(e.aggregation.ranges)[t.label],format:"compact",hideCount:void 0!==e.filter.value&&!r,fontWeight:r?"bold":void 0,position:"relative"}):o}return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:i,count:e.aggregation.sumOfCounts,format:"compact"}):i},truncateAfter:1/0})},PrAggregationMinMaxNumericOptionsViewWidget:function MinMaxNumericOptionsView_MinMaxNumericOptionsView(e){if(void 0===e.aggregation.min||void 0===e.aggregation.max)return null;const t=(0,s.jsx)(MinMaxNumericOptionsView,{field:e.field,value:[e.aggregation.min,e.aggregation.max]});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:e.aggregation.count,format:"compact"}):t},PrAggregationMinMaxRangeViewWidget:function MinMaxNumberRangeView(e){const t=(0,s.jsx)(r.jm,{field:e.field,value:[e.aggregation.min??0,e.aggregation.max??0]});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:t,count:Math.floor(e.aggregation.count/2),format:"compact"}):t},PrAggregationMinMaxDateViewWidget:function MinMaxDateAggregationView(e){return e.aggregation.min===e.aggregation.max?(0,s.jsx)(r.MH,{field:e.field,value:e.aggregation.min}):(t={min:(0,s.jsx)(r.MH,{field:e.field,value:e.aggregation.min}),max:(0,s.jsx)(r.MH,{field:e.field,value:e.aggregation.max})},(0,s.jsxs)(s.Fragment,{children:[t.min," - ",t.max]}));var t},PrAggregationMinMaxDateTimeViewWidget:function MinMaxDateTimeAggregationView(e){return e.aggregation.min===e.aggregation.max?(0,s.jsx)(r.bJ,{value:e.aggregation.min}):(t={min:(0,s.jsx)(r.bJ,{value:e.aggregation.min}),max:(0,s.jsx)(r.bJ,{value:e.aggregation.max})},(0,s.jsxs)(s.Fragment,{children:[t.min," - ",t.max]}));var t},PrAggregationMinMaxTimeViewWidget:function MinMaxTimeAggregationView(e){return e.aggregation.min===e.aggregation.max?(0,s.jsx)(r.Dx,{field:e.field,value:e.aggregation.min}):(t={min:(0,s.jsx)(r.Dx,{field:e.field,value:e.aggregation.min}),max:(0,s.jsx)(r.Dx,{field:e.field,value:e.aggregation.max})},(0,s.jsxs)(s.Fragment,{children:[t.min," - ",t.max]}));var t},PrAggregationBooleanViewWidget:function BooleanAggregationView(e){if(e.specificationResourceType===a.W.ENTRY){const t=[];return e.aggregation.countsMap.true>0&&t.push(!0),e.aggregation.countsMap.false>0&&t.push(!1),2===t.length?"Either":(0,s.jsx)(r.i5,{...e,value:t[0]})}const t=(0,s.jsx)(r.i5,{field:e.field,value:!0}),i=(0,s.jsx)(r.i5,{field:e.field,value:!1}),n=e.filter&&e.buildValueFilterPath?(0,s.jsx)(c.A,{label:(0,s.jsx)(FilterLink,{url:e.buildValueFilterPath("true"===e.filter.value?null:"true"),disabled:0===e.filter.aggregation.countsMap.true,stretchedLink:!0,tracking:{id:`filterable_link.${e.filter.field.id}`,gaContext:{action:"true"===e.filter.value?"deselect":"select"}},children:t}),count:e.aggregation.countsMap.true,format:"compact",hideCount:"false"===e.filter.value,fontWeight:"true"===e.filter.value?"bold":void 0,position:"relative"}):(0,s.jsx)(c.A,{label:t,count:e.aggregation.countsMap.true,format:"compact"}),o=e.filter&&e.buildValueFilterPath?(0,s.jsx)(c.A,{label:(0,s.jsx)(FilterLink,{url:e.buildValueFilterPath("false"===e.filter.value?null:"false"),disabled:0===e.filter.aggregation.countsMap.false,stretchedLink:!0,tracking:{id:`filterable_link.${e.filter.field.id}`,gaContext:{action:"false"===e.filter.value?"deselect":"select"}},children:i}),count:e.aggregation.countsMap.false,format:"compact",hideCount:"true"===e.filter.value,fontWeight:"false"===e.filter.value?"bold":void 0,position:"relative"}):(0,s.jsx)(c.A,{label:i,count:e.aggregation.countsMap.false,format:"compact"});return(0,s.jsx)(d.A,{items:[n,o],defaultSeparator:(0,s.jsx)(u.A,{}),defaultSeparatorAsLast:!0,truncateAfter:1/0})},PrAggregationUniqueAddressViewWidget:function UniqueAddressAggregationView(e){return e.aggregation.values.length>1?(0,s.jsx)(m.A,{paddingLeft:0,style:{listStylePosition:"inside",listStyleType:"disc"},children:e.aggregation.values.map(t=>(0,s.jsx)(m.A.Item,{children:(0,s.jsx)(r.MY,{field:e.field,value:t})},t.placeId))}):(0,s.jsx)(r.MY,{field:e.field,value:e.aggregation.values[0]})},PrAggregationOptionTextListViewWidget:function OptionTextListAggregationView(e){return(0,s.jsx)(GenericOptionsCountView,{...e,renderAsLocalisedTextList:!0,renderCount:e.specificationResourceType===a.W.REVIEW})},PrAggregationOptionListViewWidget:function OptionListView(e){return(0,s.jsx)(GenericOptionsCountView,{...e,renderCount:e.specificationResourceType===a.W.REVIEW})},PrAggregationUniqueMultiChoiceOptionListViewWidget:function UniqueMultiChoiceOptionListAggregationView(e){return 0===e.aggregation.values.length?null:1===e.aggregation.values.length?(0,s.jsx)(r.DX,{field:e.field,value:e.aggregation.values[0]}):(0,s.jsx)(m.A,{paddingLeft:0,style:{listStylePosition:"inside",listStyleType:"disc"},children:e.aggregation.values.map((t,i)=>(0,s.jsx)(m.A.Item,{children:(0,s.jsx)(r.DX,{field:e.field,value:t})},i))})},PrAggregationTextViewWidget:function TextAggregationView(e){const t=(0,y.A)(),i=(0,s.jsx)(d.A,{items:[...e.aggregation.counts].sort((e,i)=>t.compare(e.key,i.key)).map(e=>e.key),renderListItem:t=>(0,s.jsx)(r.rJ,{field:e.field,value:t}),truncateAfter:1/0});return e.specificationResourceType===a.W.REVIEW?(0,s.jsx)(c.A,{label:i,count:e.aggregation.counts.reduce((e,t)=>
1e+t.count,0),format:"compact"}):i},PrAggregationMultilineTextViewWidget:function MultilineTextAggregationView(e){return(0,s.jsx)(GenericTextListAggregationView,{field:e.field,textList:e.aggregation.counts.map(e=>e.key),component:r.IM})},PrAggregationMarkdownTextViewWidget:function MarkdownTextAggregationView(e){return(0,s.jsx)(GenericTextListAggregationView,{field:e.field,textList:e.aggregation.counts.map(e=>e.key),component:r.pO,componentProps:{initialParser:"inline"}})}};function b(e){const t=e.aggregationItemViewWidget?.widget;if(t){if(t in w)return w[t];(0,n.A)(`resolveAggregationItemViewWidget(field: ${e.id}): unknown aggregationItemViewWidget "${t}"`,{metadata:{field:e}})}}},87505(e,t,i){i.d(t,{Ay:()=>u});var n=i(94874),r=i(87384),s=i(44021),o=i(14202);var a=i(6980),l={};i.r(l),i.d(l,{entry:()=>a.f,location:()=>a.C});const c={PrNumberViewWidget:r.rJ,PrNumberRangeViewWidget:r.jm,PrRatingViewWidget:function PrRatingViewWidget(e){return"review"===e.context?(0,o.jsx)(s.A,{rating:e.value,size:"xxsmall",type:"circles"}):(0,o.jsx)(r.bt,{field:e.field,value:e.value})},PrUniqueChoiceViewWidget:r.DX,PrMultiChoiceViewWidget:r.DX,PrMultiChoiceListViewWidget:r.YH,PrTextViewWidget:r.rJ,PrMultilineTextViewWidget:r.IM,PrMarkdownTextViewWidget:r.pO,PrNumericOptionsViewWidget:r.wD,PrDateViewWidget:r.MH,PrTimeViewWidget:r.Dx,PrDateTimeViewWidget:r.bJ,PrBooleanViewWidget:r.i5,PrResourceReferenceViewWidget:function PrResourceReferenceViewWidget(e){if("resource"===e.value.type)return e.value.value||null;if(e.resolvedReferences&&e.value.value in e.resolvedReferences){return(0,l[e.field.properties.resourceType])(e.resolvedReferences[e.value.value]).label}return null},PrAddressViewWidget:r.MY},d={...c,PrMultiChoiceListViewWidget:r.DX,PrMultilineTextViewWidget:r.rJ};function u(e,t){const i=e.itemViewWidget?.widget;if(i){if("entry"===t&&i in c)return c[i];if("review"===t&&i in d)return d[i];(0,n.A)(`resolveItemViewWidget(field: ${e.id}): unknown itemViewWidget "${i}"`,{metadata:{field:e}})}}},55930(e,t,i){i.d(t,{W:()=>n});var n=(e=>(e.ENTRY="entry",e.REVIEW="review",e))(n||{})},16691(e,t,i){function n(e){return e.reduce((e,t)=>({...e,[t.key]:t.count}),{})}i.d(t,{A:()=>n})},57814(e,t,i){i.d(t,{A:()=>r});const n={PrAggregationBooleanViewWidget:"boolean",PrAggregationAverageNumberViewWidget:"stats",PrAggregationAverageRatingViewWidget:"stats",PrAggregationMinMaxNumberViewWidget:"stats",PrAggregationMinOnlyNumberViewWidget:"stats",PrAggregationMinMaxRatingViewWidget:"stats",PrAggregationMinMaxNumericOptionsViewWidget:"stats",PrAggregationNumericOptionsTextListViewWidget:"numeric_options",PrAggregationMinMaxRangeViewWidget:"stats",PrAggregationTextViewWidget:"terms",PrAggregationOptionTextListViewWidget:"terms",PrAggregationOptionListViewWidget:"terms",PrAggregationMarkdownTextViewWidget:"terms",PrAggregationMultilineTextViewWidget:"terms",PrAggregationNumberTextListViewWidget:"terms",PrAggregationRatingTextListViewWidget:"terms",PrAggregationMinMaxDateViewWidget:"min_max",PrAggregationMinMaxDateTimeViewWidget:"min_max",PrAggregationMinMaxTimeViewWidget:"min_max",PrAggregationUniqueMultiChoiceOptionListViewWidget:"unique",PrAggregationUniqueAddressViewWidget:"unique"};function r(e,t){return!!e&&n[e]===t.type}},97852(e,t,i){i.d(t,{A:()=>s});var n=i(90910);function r(e){if(t=e,!Array.isArray(t)||"string"!=typeof t[0])return e;var t;if(e[0]===n.D.STATS){const[t,i,n,r,s,o]=e;return{type:t,count:i,min:n,max:r,avg:s,sum:o}}if(e[0]===n.D.RATINGS){const[t,i,n,r,s,o,a,l]=e;return{type:t,sumOfCounts:i,averageRating:n,ratingDistribution:[{rating:1,count:r},{rating:2,count:s},{rating:3,count:o},{rating:4,count:a},{rating:5,count:l}]}}if(e[0]===n.D.BOOLEAN){const[t,...i]=e;return{type:t,sumOfCounts:i[0],countsMap:{true:i[1],false:i[2]}}}if(e[0]===n.D.TERMS){const[t,...i]=e;return{type:t,counts:i.map(([e,t])=>({key:e,count:t}))}}if(e[0]===n.D.BRANDS){const[t,...i]=e;return{type:t,items:i}}if(e[0]===n.D.NESTED_TERMS){const[t,i,n]=e;return{type:t,sumOfCounts:i,countsMap:n}}if(e[0]===n.D.RANGE){const[t,i,...n]=e;return{type:t,sumOfCounts:i,ranges:n.map(([e,t])=>({key:e,count:t}))}}if(e[0]===n.D.CUMULATIVE_RATINGS){const[t,i,n,r,s]=e;return{type:t,ranges:[{rating:1,count:i},{rating:2,count:n},{rating:3,count:r},{rating:4,count:s}]}}if(e[0]===n.D.NUMERIC_OPTIONS){const[t,i,...n]=e;return{type:t,sumOfCounts:i,ranges:n.map(([e,t])=>({key:e,count:t}))}}if(e[0]===n.D.DATE_HISTOGRAM){const[t,i,n,r]=e;return{type:t,sumOfCounts:i,from:n,to:r}}if(e[0]===n.D.UNIQUE){const[t,...i]=e;return{type:t,values:i}}if(e[0]===n.D.MIN_MAX){const[t,i,n]=e;return{type:t,min:i,max:n}}if(e[0]===n.D.FILTERS){const[t,...i]=e;return{type:t,counts:i.map(([e,t])=>({key:e,count:t}))}}if(e[0]===n.D.UNKNOWN){const[t,i]=e;return{type:t,...i}}return e}function s(e){const t={};for(const i in e)t[i]=r(e[i]);return t}},69903(e,t,i){i.d(t,{A:()=>r});var n=i(82176);function r(e,t,i){if(!t)return;let r;return(new n.A).visitFields(e,e=>{e.tags?.includes(i)&&(r=e.id)}),r&&t[r]}},51753(e,t,i){i.d(t,{Ay:()=>r});var n=i(90910);function r(e,t="non_aggregated"){return"aggregated"===t?function(e){return!(!e||!e.type)&&(e.type===n.D.MIN_MAX?void 0!==e.min&&void 0!==e.max:e.type===n.D.TERMS?e.counts.length>0:e.type===n.D.BOOLEAN?e.sumOfCounts>0:e.type===n.D.UNIQUE?e.values.length>0:e.type===n.D.STATS?e.count>0:e.type===n.D.RATINGS||e.type===n.D.NUMERIC_OPTIONS?e.sumOfCounts>0:(console.warn(`isAggregatedValueDefined(value): unknown value.type "${e.type}"`),!0))}(e):"aggregated_filter"===t?!(!(i=e)||!i.type)&&(i.type===n.D.STATS?i.count>0&&i.min!==i.max:i.type===n.D.RATINGS?i.sumOfCounts>0:i.type===n.D.CUMULATIVE_RATINGS?i.ranges.reduce((e,t)=>
1e+t.count,0)>0:i.type===n.D.TERMS||i.type===n.D.FILTERS?i.counts.length>0:i.type===n.D.BOOLEAN?i.countsMap.true>0&&i.countsMap.false>0:i.type===n.D.RANGE||i.type===n.D.NESTED_TERMS||i.type===n.D.NUMERIC_OPTIONS?i.sumOfCounts>0:i.type===n.D.UNIQUE?i.values.length>0:i.type===n.D.MIN_MAX&&i.min!==i.max):function(e){return Array.isArray(e)?e.length>0:""!==e&&null!=e}(e);var i}},66668(e,t,i){i.d(t,{A:()=>r});var n=i(22551);function r(e,t){if(e)return e.reduce((e,i)=>void 0===e||"function"==typeof t&&t(i)<t(e)||"string"==typeof t&&(0,n.A)(i,t)<(0,n.A)(e,t)?i:e,void 0)}},18299(e,t,i){function n(e,t){const i=[[],[]];for(let n=0;n<e.length;n++){const r=e[n];i[t(r)?0:1].push(r)}return i}i.d(t,{A:()=>n})},29239(e,t,i){function n(e,t){const i={[e.context.role]:t};return e.context.facet&&(i[e.context.facet]=t),i}i.d(t,{A:()=>n})},60884(e,t,i){i.d(t,{A:()=>a,a:()=>DataAlreadyLoadedError});var n=i(85906),r=i(20975),s=i(46698),o=i(89348);class DataAlreadyLoadedError extends r.A{}class a{constructor(e,t,i){this.fetchFunction=e,this.fetchFunction=e,this.setCollections(t),this.lazyPageSize=i}state;lazyPageSize;eventEmitter=new s.A;getCollectionContainerById(e){return this.state.find(t=>t.id===e)}computeSortKey(e,t){return`${e}_${t}`}getSortKey(e){const t=this.getCollectionContainerById(e);if(!t)return;const{sort:i,order:n}=t.paginatedCollection.sorting;return this.computeSortKey(i,n)}getAllExistingIds(){const e=new Set;for(const t of this.state)for(const i of t.paginatedCollection.collection)e.add(i.id);return e}async loadMoreItems(e,t,i=1){const n=this.getCollectionContainerById(e);if(!n)return[];if(!n.hasMoreItems)throw new DataAlreadyLoadedError("All data has been already loaded");try{t&&(n.paginatedCollection.sorting=t);const r=this.getSortKey(e);if(!r)return[];const s=n.paginatedCollection.sorting,o=this.getLazyLoadingPageForSort(e,s.sort,s.order)+1,a=await this.fetchFunction(e,o,this.getLazyPageSize(e),s),l=this.getAllExistingIds(),c=a.collection.filter(e=>!l.has(e.id)),d=[...n.paginatedCollection.collection,...c],u=this.getOffset(e)+a.paging.currentItemCount;if(n.offsetBySortKey.set(r,u),n.currentOffset=u,n.hasMoreItems=u<a.paging.totalItemCount&&a.paging.currentPage<a.paging.totalPageCount,0===c.length){if(i>=2)throw new DataAlreadyLoadedError("All data has been already loaded");return this.loadMoreItems(e,s,i+1)}return n.paginatedCollection={...a,collection:d},c}catch(e){if(e instanceof o.A&&404===e.status)return n.hasMoreItems=!1,[];throw e}finally{this.eventEmitter.emit("update")}}getOffset(e){const t=this.getSortKey(e);return t?this.getCollectionContainerById(e)?.offsetBySortKey.get(t)??0:0}getLazyLoadingPageForSort(e,t,i){const n=this.getCollectionContainerById(e)?.offsetBySortKey.get(`${t}_${i}`);return n?Math.floor((n+1)/this.getLazyPageSize(e)):0}getLazyPageSize(e){if(this.lazyPageSize)return this.lazyPageSize;const t=this.getCollectionContainerById(e);return t?Math.min(10,t.paginatedCollection.paging.itemCountPerPage):10}setCollections(e){this.state=[];for(const t of e){const{sorting:i,paging:n}=t.paginatedCollection,r=new Map;let s=0;s=n.currentPage>1?(n.currentPage-1)*n.itemCountPerPage+n.currentItemCount:1===e.length?n.currentItemCount:0,r.set(this.computeSortKey(i.sort,i.order),s),this.state.push({...t,hasMoreItems:n.currentItemCount+t.overlappingItemCount<n.totalItemCount&&n.currentPage<n.totalPageCount,offsetBySortKey:r,currentOffset:s})}this.eventEmitter.emit("update")}setFetchFunction(e){this.fetchFunction=e}getState(){return this.state}watch(){const[,e]=(0,n.useState)(0);return(0,n.useEffect)(()=>{function t(){e(e=>e+1)}return this.eventEmitter.on("update",t),()=>{this.eventEmitter.off("update",t)}},[]),this.state}}},1465(e,t,i){function n(e){const t=e.split(/(vi\/|v%3D|v=|\/v\/|youtu\.be\/|\/embed\/)/);return void 0!==t[2]?t[2].split(/[^0-9a-z_-]/i)[0]:t[0]}i.d(t,{X:()=>n})},63511(e,t,i){function n(e){return null==e}i.d(t,{A:()=>n})},65461(e,t,i){function n(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}i.d(t,{A:()=>n})},37743(e,t,i){i.d(t,{A:()=>l});var n=i(81866),r=i(23819),s=i(31362),o=i(23051),a=i(65461);function l(e,t,i,l){const c={...e,commandId:(0,n.A)(),metadata:{...(0,r.A)(),...i}};return function(e){if((0,a.A)(e)){const t=(0,o.A)(e);return!(0,s.A)(t)}return null!=e&&""!==e}(t)&&(c.commandContext=t),l&&(c.preCommand=l),c}},78441(e,t,i){function n(e,t){return Array.isArray(e)?e.reduce((e,i)=>(e[t(i)]=i,e),{}):{}}i.d(t,{A:()=>n})},73909(e,t,i){i.d(t,{A:()=>r});var n=i(16940);function r(e){if(e.type===n.PQ.ARCHIVED_ENTRY)throw new Error("resolveCatalogIdFromSubject(subject): cannot get catalogId from an unknown subject");return e.type===n.PQ.KNOWN_INTERNAL_ENTRY?e.entry.catalogId:e.type===n.PQ.KNOWN_EXTERNAL_ENTRY?e.externalEntry.catalogId:e.type===n.PQ.UNKNOWN_INTERNAL_ENTRY?e.unknownEntry.catalogId:e.unknownExternalEntry.catalogId}},82526(e,t,i){i.d(t,{A:()=>r});var n=i(16940);function r(e){if(e.type===n.PQ.KNOWN_INTERNAL_ENTRY)return e.entry.fullName;if(e.type===n.PQ.UNKNOWN_INTERNAL_ENTRY)return e.unknownEntry.entryName;if(e.type===n.PQ.KNOWN_EXTERNAL_ENTRY)return e.externalEntry.name||e.externalEntry.externalId;if(e.type===n.PQ.UNKNOWN_EXTERNAL_ENTRY){if(e.externalEntry)return e.externalEntry.name||e.externalEntry.externalId;if(e.unknownExternalEntry.externalEntryName)return e.unknownExternalEntry.externalEntryName}return"(Unknown item)"}},39604(e,t,i){i.d(t,{t:()=>c});var n=i(18299),r=i(31362),s=i(34496),o=i(51753);function a(e,t){return!!(0,o.Ay)(t)&&!!e.itemViewWidget}function l(e){return"number"===e.type&&"PrRatingViewWidget"===e.itemViewWidget?.widget}function c(e,t,i,o){const c={main:{index:0,fields:[]}},d=[],u={};let g=!1;if(!e||0===e.fields.length||!t||(0,r.A)(t))return{ratingGroups:[],numberOfRatingFields:0,transactionDetail
1s:u,wasReviewIncentivised:g,otherSpecifications:d};let h=0;return e.fields.forEach(e=>{if("group"===e.type){const i=[];for(const n of e.fields)"group"!==n.type&&a(n,t[n.id])&&(l(n)&&t[n.id]!==o?.filterOutRatingSpecsWithValue&&(h+=1),i.push(n));const[r,s]=(0,n.A)(i,l);return r.length>0&&(c[e.label]={index:Object.keys(c).length,groupField:e,fields:r.filter(e=>t[e.id]!==o?.filterOutRatingSpecsWithValue).map(e=>({field:e,value:t[e.id]}))}),void(s.length>0&&d.push({type:"group",groupField:{...e,fields:s.map(e=>({type:"field",field:e,value:t[e.id]}))}}))}const r=t[e.id];if(a(e,r))if(e.tags?.includes("incentivised_review"))g=r;else if("number"===e.type&&e.tags?.includes("transaction_details.purchase_price"))u.purchasePrice={amount:r,currency:e.properties?.currency||"AUD"};else if("date"===e.type&&e.tags?.includes("transaction_details.purchase_date"))u.purchasedAt=r;else{if("resource_reference"===e.type&&e.tags?.includes("transaction_details.purchase_location")){const e=r?.type;if("reference"===e){const e=i?.[r.value];e&&(u.purchaseStore=e)}else"resource"===e&&(u.purchaseStore=r);return}l(e)?r!==o?.filterOutRatingSpecsWithValue&&(c.main.fields.push({field:e,value:r}),h+=1):d.push({type:"field",field:e,value:r})}}),{ratingGroups:(0,s.di)(Object.values(c).filter(e=>e.fields.length>0)).asc(e=>e.index),numberOfRatingFields:h,transactionDetails:u,wasReviewIncentivised:g,otherSpecifications:d}}},69685(e,t,i){i.d(t,{A:()=>TokenRenderer});var n=i(85906),r=i(62227),s=i(25343),o=i(49329),a=i(35447),l=i(58222),c=i(74954),d=i(49075),u=i(36762);const g="IYRlwz";var h=i(14202);function UserGeneratedLink_UserGeneratedLink(e){const{children:t=e.to,to:i}=e,{showModal:m}=(0,l.A)();return i.startsWith("mailto:")?(0,h.jsx)(s.A.Static,{to:i,textDecorationHover:"underline",textStyle:"link",children:t}):i.includes("productreview.com.au")?(0,h.jsx)(s.A.Static,{to:i,openNewTab:!0,rel:"nofollow ugc",textDecorationHover:"underline",textStyle:"link",children:t}):(0,h.jsxs)(a.A,{className:g,onClick:e=>{e.preventDefault(),m({title:!1,hideCloseButton:!0,closeable:!0,bodyProps:{padding:4},content:e=>(0,h.jsxs)(n.Fragment,{children:[(0,h.jsx)(u.A,{onClick:e,negativeMarginTop:2,negativeMarginRight:2,style:{float:"right"}}),(0,h.jsx)(c.sA,{id:"shared.user_generated_link.warning",defaultMessage:"You are now leaving ProductReview.com.au.<br>\nClick the link to continue to:\n\n<Link />\n ",returnType:"string",children:t=>(0,h.jsx)(o.A,{source:t,componentsAvailable:{Link:()=>(0,h.jsx)(s.A.Static,{to:i,openNewTab:!0,onClick:e,breakWord:!0,textDecorationHover:"underline",textStyle:"link",children:i})}})})]})}).catch(d.O)},children:["external link",(0,h.jsx)(n.Fragment,{children:"Â "}),(0,h.jsx)(r.A,{name:"arrow-top-right-on-square",width:16,height:16})]})}var m=i(14901);function p(e,t){switch(e.type){case"text":case"rawText":return e.content;case"link":return(0,h.jsx)(UserGeneratedLink_UserGeneratedLink,{to:e.href,children:e.content},t);case"highlight":case"aspect":return(0,h.jsx)("mark",{children:e.children.map(p)},t);case"customNode":return e.node;default:return null}}function TokenRenderer(e){const{paragraphs:t,renderParagraph:i,renderToken:n=p}=e;return t.map((e,r)=>{const s=e.children.map((e,t)=>n(e,t,p)),o=0===r,a=r===t.length-1,l=(()=>{const t=e.children[0];return t&&"start"in t?t.start:r})();return i?i(e,s,{key:l,isFirst:o,isLast:a}):(0,h.jsx)(m.A,{marginBottom:a?void 0:4,...e.attributes,children:s},l)})}},70553(e,t,i){function n(e,t,i){return function e(n){return n.flatMap(n=>{if("children"in n)return[{...n,children:e(n.children)}];if("text"!==n.type)return[n];const r=t.filter(e=>e.end>n.start&&e.start<n.end);if(0===r.length)return[n];const s=r.flatMap(e=>[e.start,e.end]),o=function(e,t,i){const n=[...i].sort((e,t)=>e-t),r=Array.from(new Set([0,...n.map(e=>e-t),e.length])),s=[];for(let i=0;i+1<r.length;i++){const n=r[i],o=r[i+1],a=e.slice(n,o);a.length>0&&s.push({slice:a,start:t+n,end:t+o})}return s}(n.content,n.start,s);return o.map(e=>{const t=r.find(t=>e.start>=t.start&&e.end<=t.end);return t?i({type:"text",content:e.slice,start:e.start,end:e.end},t):{type:"text",content:e.slice,start:e.start,end:e.end}})})}(e)}i.d(t,{CollapsibleTokenRenderer:()=>CollapsibleTokenRenderer,TokenRenderer:()=>m.A,applyRanges:()=>n,groupParagraphs:()=>h,inlineTokens:()=>u,linkify:()=>r.A,preprocessElasticSearchHighlights:()=>l,sliceExcerpt:()=>d});var r=i(59607);const s="__HIGHLIGHT_START__",o="__HIGHLIGHT_END__",a=new RegExp(`${s}(.*?)${o}`,"g");function l(e){const t=[];let i,n=0;for(;null!==(i=a.exec(e));){const e=i.index-n,r=e+i[1].length;t.push({start:e,end:r}),n+=36}return{text:e.replace(a,"$1"),highlightRanges:t}}function c(e){return/\s/.test(e)}function d(e,t){const i=[],n=[];let r=0,s=!1;for(const o of e){if(s){n.push(o);continue}if("text"!==o.type){i.push(o);continue}const e=o.content,a=t-r;if(e.length<=a)i.push(o),r+=e.length;else{const t=e.slice(0,a);let r,l=-1;for(let e=t.length-1;e>=0;e--)if(c(t[e])){l=e;break}if(l>0)r=l;else{const t=e.slice(a).split("").findIndex(c);r=t>=0?a+t:e.length}const d=e.slice(0,r);d&&i.push({type:"text",content:d,start:o.start,end:o.start+d.length});const u=e.slice(d.length);u&&n.push({type:"text",content:u,start:o.start+d.length,end:o.end}),s=!0}}return{excerpt:i,rest:n}}function u(e){return e.map(e=>"text"===e.type?{...e,content:e.content.replace(/\n/g," ")}:e)}const g=/(?:\r\n|\r|\n){2,}/g;function h(e){const{paras:t,buf:i}=e.reduce((e,t)=>
1{if("text"===t.type){let i,n=0;for(;i=g.exec(t.content);){const r=i.index;r>n&&e.buf.push({...t,content:t.content.slice(n,r),start:t.start+n,end:t.start+r}),e.paras.push({type:"paragraph",children:e.buf}),e.buf=[],n=r+i[0].length}n<t.content.length&&e.buf.push({...t,content:t.content.slice(n),start:t.start+n,end:t.end})}else e.buf.push(t);return e},{paras:[],buf:[]});return i.length&&t.push({type:"paragraph",children:i}),t}var m=i(69685),p=i(85906),f=i(14901),v=i(35447),x=i(74954),A=i(14202);function CollapsibleTokenRenderer(e){const{excerptParagraphs:t,restParagraphs:i,defaultExpanded:n,renderReadMoreButton:r,renderRestForSEO:s,...o}=e,[a,l]=(0,p.useState)(n??!1);(0,x.tz)();(0,p.useEffect)(()=>{l(n??!1)},[n]);const c=(0,p.useCallback)(()=>{l(!0),e.onExpand?.()},[l,e.onExpand]);if(!a&&t.length>0&&i.length>0){const e=t.map((e,i)=>{if(i<t.length-1)return e;const n=(0,A.jsxs)(v.A,{nowrap:!0,children:[(0,A.jsx)(p.Fragment,{children:"â¦Â "}),(0,A.jsx)(v.A,{onClick:c,testId:"read-more-button",role:"button",title:"Click to read more",caret:"down",stretchedLink:!0,textDecorationHover:"underline",textStyle:"link",children:"Read more"},"read-more")]});return{...e,children:[...e.children,{type:"customNode",start:e.children.length,end:e.children.length,node:(0,A.jsx)(p.Fragment,{children:r?r({onClick:c},n):n},"read-more")}]}});return(0,A.jsxs)(p.Fragment,{children:[(0,A.jsx)(m.A,{paragraphs:e,...o}),s&&(0,A.jsx)(m.A,{paragraphs:i,renderParagraph:(e,t,{key:i})=>(0,A.jsx)(f.A,{display:"none",children:t},i)})]})}const d=[];if(t.length>0&&d.push(...t),i.length>0)for(const[e,t]of i.entries())if(0===e&&d.length>0){d[d.length-1].children.push(...t.children)}else d.push(t);return(0,A.jsx)(m.A,{paragraphs:d,...o})}},59607(e,t,i){i.d(t,{A:()=>g});const n=/^[a-z0-9-]{2,}(\.|:\/\/)[a-z0-9-]{2,}/i,r=/[.]{2,}/,s=/[a-z0-9-.+]{2,}@[a-z0-9.]{2,}/i,o=/mailto:[a-z0-9-.+]{2,}@[a-z0-9.]{2,}/i,a=/([!?:.,])$/,l=/https?:\/\//i,c=/(http|www|#|\/|\?)/i,d=/[a-z0-9-]\.[A-Z0-9-]/,u={"\n":!0,"\r":!0,"\f":!0,"\t":!0,"\v":!0," ":!0,"Â
":!0,"\ufeff":!0,"Â ":!0,"á":!0,"á ":!0,"â":!0,"â":!0,"â":!0,"â":!0,"â":!0,"â
":!0,"â":!0,"â":!0,"â":!0,"â":!0,"â":!0,"â":!0,"\u2028":!0,"\u2029":!0,"â¯":!0,"â":!0,"ã":!0};function g(e){return 0===e.length?e:e.flatMap(e=>{if("children"in e)return{...e,children:g(e.children)};if("text"!==e.type)return e;const t=function(e){const t=[];let i=0,g="",h="",m=!1,p=!1;const f=e.length-1,v=e.length;for(let x=0;x<v;x++){const v=u[e[x]];if("."===e[x]?m=!0:"@"===e[x]&&(p=!0),v||x===f)if(!m&&!p||x-i<6)i=x+1;else{if(g=v?e.slice(i,x):e.slice(i,x+1),p&&o.test(g)){const e=g.replace(a,"");t.push({type:"email",start:i,end:i+e.length,email:e.replace("mailto:","")})}else if(p&&s.test(g)){const e=g.replace(a,"");t.push({type:"email",start:i,end:i+e.length,email:e})}else if(m&&n.test(g)&&!d.test(g)&&!r.test(g)&&c.test(g)){const e=g.replace(a,"");t.push({type:"url",start:i,end:i+e.length,label:e,url:l.test(e)?e:`https://${e}`})}h&&(h=""),i=x+1,g="",m=!1,p=!1}}return t}(e.content);if(0===t.length)return e;const i=[];let h=0;for(const n of t)n.start>h&&i.push({...e,type:"text",start:e.start+h,end:e.start+n.start,content:e.content.slice(h,n.start)}),"email"===n.type?i.push({type:"link",start:e.start+n.start,end:e.start+n.end,href:`mailto:${n.email}`,content:n.email}):i.push({type:"link",start:e.start+n.start,end:e.start+n.end,href:n.url,content:n.label}),h=n.end;return h<e.content.length&&i.push({...e,type:"text",start:e.start+h,end:e.end,content:e.content.slice(h)}),i})}},98169(e,t,i){function n(e,t=" \t\r\n"){for(;~t.indexOf(e[0]);)e=e.slice(1);for(;~t.indexOf(e[e.length-1]);)e=e.slice(0,-1);return e}i.d(t,{A:()=>n})},50020(e,t,i){function n(e){if(e.length<3)return!1;const[t,i,...n]=e.split("@");return!(!t||!i||n.length>0)&&(!!/^[\w-](?:[\w.\-+]*[\w-])?$/.test(t)&&(!i.includes("..")&&!!/^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i)))}i.d(t,{A:()=>n})},25808(e,t,i){i.d(t,{nl:()=>c,Nx:()=>p,zo:()=>g,Rp:()=>h,Zk:()=>m,vy:()=>d,mw:()=>u});var n=i(99856),r=i(63936);var s=i(90849),o=i(74954);var a=i(50020),l=i(47905);const c=(0,o.YK)({required:{id:"form.errors.required",defaultMessage:"Required"},invalidEmail:{id:"form.errors.is_email",defaultMessage:"Please provide a valid email address"},invalidNumber:{id:"form.errors.is_number",defaultMessage:"Value must be a number"},invalidURL:{id:"form.errors.is_url",defaultMessage:"Please provide a valid URL"},invalidFullURL:{id:"form.errors.is_full_url",defaultMessage:"Please provide a valid URL (including http/https)"},invalidMinWords:{id:"form.errors.min_words_count",defaultMessage:"Text must have at least {minWords, plural, =1 {# word} other {# words}}"},invalidISBN:{id:"form.errors.is_isbn",defaultMessage:"Value should be a valid ISBN code"},invalidYouTubeURL:{id:"form.errors.is_valid_youtube_url",defaultMessage:"Must be a valid YouTube URL"},invalidUniqueArray:{id:"form.errors.is_string_list_of_uuid",defaultMessage:"List must contain unique values"},invalidHook:{id:"form.errors.is_hook",defaultMessage:"Hook should only contain lowercase letters, numbers and hyphens (no spaces)"},invalidHexColor:{id:"form.errors.is_hex_color",defaultMessage:"Invalid color. Please a use a hexadecimal value (for ex: #000000)"}
1,invalidDateRangeBetween:{id:"form.errors.is_date_range_between",defaultMessage:"Should be between {0, date, long} and {1, date, long} (inclusive)"},minDate:{id:"form.errors.min_date",defaultMessage:"Should be at least {minDate, date, medium}"},flatArrayError:{id:"form.errors.flat_array_error",defaultMessage:"{message} (position {position})"}});function d(e){return n.vk(e=>null===e||"string"==typeof e&&""===e.trim()?void 0:e,e.optional())}function u(e){const t={abort:!0,message:c.required.defaultMessage};return!e||e instanceof n.ND?n.L5().refine(e=>null!=e&&("string"!=typeof e||e.trim().length>0),t).pipe(e||n.Yj()):e instanceof n.n?n.L5().refine(e=>null!=e&&(!Array.isArray(e)||e.length>0),t).pipe(e):e instanceof n.rS?n.L5().refine(e=>null!=e&&("number"!=typeof e||!Number.isNaN(e)),t).pipe(e):e instanceof n.WF?n.L5().refine(e=>null!=e,t).pipe(e):e instanceof n.bv?n.L5().refine(e=>null!=e&&("object"!=typeof e||Object.keys(e).length>0),t).pipe(e):n.L5().refine(e=>null!=e&&("number"==typeof e?!Number.isNaN(e):"boolean"==typeof e||("string"==typeof e?e.trim().length>0:Array.isArray(e)?e.length>0:"object"!=typeof e||Object.keys(e).length>0)),t).pipe(e)}function g(e){const t=n.vk(e=>{if("string"==typeof e){const t=e.trim();if(""===t)return;return function(e){const t=e.includes(","),i=e.includes(".");if(t&&i)return e.lastIndexOf(",")>e.lastIndexOf(".")?e.replace(/\./g,"").replace(",","."):e.replace(/,/g,"");return t?/,\d{3}$/.test(e)&&!/,\d{1,2}$/.test(e)?e.replace(/,/g,""):e.replace(",","."):e}(t)}return e},n.Yj().or(n.ai()).pipe((i={message:c.invalidNumber.defaultMessage},r.qG(n.rS,i))));var i;return e?t.pipe(e):t}const h=n.Yj().refine(a.A,{message:c.invalidEmail.defaultMessage}),m=(n.Yj().refine(e=>(0,l.A)(e),{message:c.invalidURL.defaultMessage}),n.Yj().refine(function(e){return(0,l.A)(e,{requireProtocol:!0})},{message:c.invalidFullURL.defaultMessage}));function p(e){return n.Yj().refine(t=>(0,s.A)(t)>=e,{message:c.invalidMinWords.defaultMessage,params:{minWords:e}})}n.Yj().refine(e=>function(e){const t=e.replace(/[^\dX]/g,"");return/^[\d-X]+$/.test(e.trim())&&t.length>=10&&t.length<=13}(e),{message:c.invalidISBN.defaultMessage}),n.Yj().regex(/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/i,{message:c.invalidYouTubeURL.defaultMessage});n.Yj().regex(/^[a-z0-9][-a-z0-9]*$/,{message:c.invalidHook.defaultMessage}),n.Yj().regex(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,{message:c.invalidHexColor.defaultMessage})},78317(e,t,i){i.d(t,["A",0,{review:"RswdXm","review-short":"bW_DYf","review-short--truncated":"aHB19Y","review-author":"Ob1y25","review-author-displayname":"AywsYo","review-author-rating":"_34VUuM","review-body":"CbLMMq","review-body--2cols":"vkaeXe","review-body-paragraphs":"f7voFe","review-body-attachments":"wuOfCa","layout-tiles":"W80Q6z","layout-single_row_medium":"modYct","layout-two_rows_large":"m18vTr","layout-single_row_large":"c5JkeX","layout-single_row_xlarge":"srEn2B","review-specifications-middot":"GKPWFV","review-comments":"OJCPdX","review-followUp-paragraphs":"HdZTtV","review-body-ratings":"aHkHlA","review-specifications-rating":"mEsM3D","review-followUp-questions":"T9CDNT","review-followUp-questions-slider":"lkwqhw","review-followUp-questions-scroller":"MTm1YA","review-followUp-questions-slider-arrow":"cNqFnk","review-followUp-questions-slider-item":"XbbFeX","review-followUp-question--voted":"H41txs","review-footnote":"RN4J6m","review-actions-toolbar":"HWs5Uf"}])}}]); 2//# sourceMappingURL=SearchResultAd_37d05128.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.