PageSourceSearch

https://cdn.productreview.com.au/assets/public/public-containers-L…stionsPage-ListingQuestionsPage_ed80e716.js

js productreview.com.au collected 2026-09-24 09:03:23 UTC 193,584 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["public-containers-ListingQuestionsPage-ListingQuestionsPage","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:p,...m}=e,h=(0,c.jsxs)(n.Fragment,{children:[!d&&(0,c.jsx)(o.A,{name:u,flexShrink:0}),g]});if(t){const e={children:h,display:d?void 0:"flex",gap:d?void 0:2,...m};return(0,c.jsx)(s.A.Item,{...i,children:p?(0,c.jsx)(a.A,{to:p,...e}):(0,c.jsx)(l.A,{...e})})}const f={children:h,buttonStyle:"link",icon:d?void 0:"left",...m};return p?(0,c.jsx)(a.A,{element:r.A.Link,to:p,...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,p=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:p()}):(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=>p(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),p=i(35447),m=i(32600),h=i(86490),f=i(76015),x=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)(),v=(0,h.A)(f.eP),[A,b]=(0,n.useState)({isLoading:!1,numberOfLikes:r,status:s});return(0,n.useEffect)(()=>{b({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 b(e=>({...e,isLoading:!0,numberOfLikes:"liked"===e.status?e.numberOfLikes-1:e.numberOfLikes+1,status:"liked"===e.status?"empty":"liked"})),o(e).then(()=>{b(e=>({...e,isLoading:!1}))},e=>{throw b(t),e})}).catch(x.O)},isDisabled:A.isLoading,isLiked:"liked"===A.status,tracking:{id:"like_button",gaContext:{action:"liked"===A.status?"unlike":"like",label:v?"authenticated":"unauthenticated"}},...a}),(0,u.jsx)(p.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 b(e=>({...e,isLoading:!0,numberOfLikes:"liked"===e.status?e.numberOfLikes-1:e.numberOfLikes,status:"disliked"===e.status?"empty":"disliked"})),o(e).then(()=>{b(e=>({...e,isLoading:!1}))},e=>{throw b(t),e})}).catch(x.O)},isDisabled:A.isLoading,isDisliked:"disliked"===A.status,tracking:{id:"dislike_button",gaContext:{action:"disliked"===A.status?"undislike":"dislike",label:v?"authenticated":"unauthenticated"}},...a})]})}var v=i(55279),A=i(45756);const b=(0,i(821).Iy)({type:"shared/reaction/REACT",commandName:"Pr.Domain.Reaction.Commands.React"});function y(e,t,i){return{commandName:"Pr.Domain.Reaction.Commands.React",payload:{resourceType:e,resourceId:t,reaction:i}}}var w=i(37743),j=i(42673);function Vote(e){const t=(0,v.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}),p=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(b({resourceType:e.resourceType,resourceId:e.resource.id,reaction:t})).then(()=>l(),e=>{throw g(n),e})},deferredActionType:`like_${e.resourceType}`,getAuthenticationProps:i=>({deferredActionEnvelope:{action:b({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,w.A)(y(e.resourceType,e.resource.id,i),p?{listingBrandId:p}: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))})})})}},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})}},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.BRAND_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,...p}=e,m=(0,o.A)(a.dl),h=(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,...p,children:i})}return t.context.role!==l.Xh.CONSUMER||t.isDeactivated?i:(0,d.jsx)(r.A,{role:"link",onClick:(0,c.A)(h.generate("www.public.consumer_profile",{consumerId:t.id},s.i.ABSOLUTE_URL)),cursor:"pointer",tracking:{id:"link_to_profile"},...p,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:p,hideBadge:m,loading:h="lazy",...f}=e,x=l._y[d],v=l.s6[d],A=l.sq[d];
1return"facebook"===i.type?(0,c.jsxs)(n.h,{display:"inline-block",position:"relative",...f,children:[p&&(0,c.jsx)(r.A,{name:`badge-${p}`,width:x,height:x,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:[p&&(0,c.jsx)(r.A,{name:`badge-${p}`,width:x,height:x,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:[p&&(0,c.jsx)(r.A,{name:`badge-${p}`,width:x,height:x,position:"absolute-bottom-right"}),(0,c.jsx)(s.A,{src:i.externalUrl,height:A,width:A,borderRadius:"circle",alt:u,title:g})]}):m||!p?(0,c.jsx)(o.A,{collection:t,id:i.avatarId,cdnImageHeight:v,cdnImageWidth:v,height:A,width:A,alt:u,title:g,loading:h,fit:"cover",borderRadius:"circle",...f}):(0,c.jsxs)(n.h,{display:"inline-block",position:"relative",...f,children:[(0,c.jsx)(r.A,{name:`badge-${p}`,width:x,height:x,position:"absolute-bottom-right"}),(0,c.jsx)(o.A,{collection:t,id:i.avatarId,cdnImageHeight:v,cdnImageWidth:v,height:A,width:A,alt:u,title:g,loading:h,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}])},20489(e,t,i){i.d(t,{A:()=>Breadcrumbs_Breadcrumbs});var n=i(85906),r=i(78801),s=i.n(r),o=i(19363),a=i(66307),l=i(55156);const c={breadcrumb:"yMqyQA","breadcrumb-item":"CoYBlV",active:"lUQlKl","breadcrumb-link":"OeQiSC"};var d=i(80113),u=i(25343),g=i(35447),p=i(14202);const m=s().bind(c);function Item(e){return(0,p.jsx)(a.A.Item,{display:{xs:e.hideOnMobile?"none":"flex",lg:"flex"},alignItems:"center",paddingLeft:{xs:e.hideOnMobile?2:0,lg:0===e.index?0:2},className:m("breadcrumb-item"),children:(()=>{if(!e.url)return(0,p.jsx)(g.A,{className:m("breadcrumb-link"),children:e.label});const t=e.staticLink?u.A.Static:u.A;return(0,p.jsx)(t,{title:e.title,to:e.url,openNewTab:e.openNewTab,display:"block",textDecorationHover:"underline",textStyle:"link",className:m("breadcrumb-link"),tracking:e.tracking,children:e.hideOnMobile?e.label:(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(g.A,{display:{xs:"inline",lg:"none"},children:e.longLabel||e.label}),(0,p.jsx)(g.A,{display:{xs:"none",lg:"inline"},children:e.label})]})})})()})}const h=s().bind(c);function Breadcrumbs_Breadcrumbs(e){const{showIfOnlyOneItem:t=!1,items:i,openNewTab:r,staticLink:s,...c}=e,u=(0,l.rc)();if(0===i.length)return null;const g=i.filter(e=>!e.onlyForJsonLd);if(0===g.length)return(0,p.jsx)(d.A,{items:i});const m=(()=>{const e=g.filter(e=>!e.hideOnMobile);for(let t=e.length-1;t>=0;t--)if(e[t].url!==u)return e[t];return null})();return(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(d.A,{items:i}),(g.length>1||t)&&(0,p.jsx)(o.h,{element:"nav","aria-label":"breadcrumbs",...c,children:(0,p.jsx)(a.A,{ordered:!0,display:"flex",flexWrap:"wrap",fontSize:"small",paddingLeft:0,className:h("breadcrumb"),children:g.map((e,t)=>(0,p.jsx)(Item,{index:t,hideOnMobile:m?.url!==e.url,label:e.label,longLabel:e.longLabel,title:e.longLabel,url:e.url,staticLink:s,openNewTab:r,tracking:{id:"breadcrumb",gaContext:{label:e.label}}},t))})})]})}},80113(e,t,i){i.d(t,{A:()=>BreadcrumbsJsonLD});var n=i(57448),r=i.n(n),s=i(74954),o=i(14202);function BreadcrumbsJsonLD({items:e}){const t=(0,s.tz)();return 0===e.length?null:(0,o.jsx)("script",{type:"application/ld+json",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:e.filter(e=>e.url).map((e,i)=>{const n=e.longLabel??e.label;return{"@type":"ListItem",position:i+1,name:"string"==typeof n?n:t.formatMessage(n),item:`https://${r().SERVICE__FRONT_PROXY__HOST}${e.url||""}`}})})}})}},1331(e,t,i){i.d(t,{A:()=>s});var n=i(61829),r=i(71526);function s(e,t,i,s){const o=t.parentListings?.length,a=t.categories?.length&&"services"===t.categories[0].hook;let l=[];
1if(t.categories?.length){const r=(0,n.A)(t.categories);l=l.concat(t.categories.filter(e=>"products"!==e.hook&&"services"!==e.hook).filter(e=>!e.tags.includes("too_specific_for_seo")).map((t,n,r)=>{const s=r.length===n+1,o=s&&t.ambiguity&&["concrete","quasi_abstract"].includes(t.ambiguity),a=s&&t.tags.includes("use_singular_name_for_seo");return{url:e.generate("www.public.category_search",{categorySlug:t.slug}),label:i.formatMessage({id:"breadcrumbs.category.label",defaultMessage:"{showBest, select,\n  true  {Best {categoryLongName}}\n  false {{categoryShortName}}\n}"},{categoryLongName:a?t.singularLongName:t.pluralLongName,categoryShortName:a?t.singularShortName:t.pluralShortName,showBest:o}),longLabel:i.formatMessage({id:"breadcrumbs.category.long_label",defaultMessage:"{showBest, select,\n  true  {Best {category}}\n  false {{category}}\n}"},{category:a?t.singularLongName:t.pluralLongName,showBest:o}),onlyForJsonLd:r.length!==n+1&&"abstract"===t.ambiguity}})),a&&t.locations&&r&&(l=l.concat((c=t.locations,c.length>1?[c[1]]:[]).map(t=>({url:e.generate("www.public.category_and_location_search",{categorySlug:r.slug,locationSlug:t.computedLongSlug}),label:t.shortName,longLabel:i.formatMessage({id:"breadcrumbs.category_location.long_label",defaultMessage:"{category} in {location}"},{location:t.shortName,category:r.pluralLongName}),hideOnMobile:!0}))))}var c;if(t.parentListings?.length){const i=t.parentListings[0];l.push({url:e.generate("www.public.listing",{listingSlug:i.slug}),label:(0,r.A)({listing:i,currentListing:t}),longLabel:(0,r.A)({listing:i,currentListing:t})})}return l.push({url:e.generate("www.public.listing",{listingSlug:t.slug}),label:(0,r.A)({listing:t,nameKey:o?"shortName":"fullName"}),longLabel:(0,r.A)({listing:t})}),s&&(l=l.concat(s)),l}},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})]})}},74308(e,t,i){i.d(t,{A:()=>CollapsibleFilter_CollapsibleFilter});var n=i(85906),r=i(78801),s=i.n(r),o=i(19363),a=i(62227);var l=i(14202);const c=s().bind({icon:"R8Mne6",isVisible:"wLef7o"});function CollapsibleFilter_CollapsibleFilter(e){const{ref:t,collapsible:i=!0,defaultCollapsed:r,appContext:s}=e,[d,u]=(0,n.useState)({shouldRenderDomNodes:!i||!r,isVisible:!i||!r});return(0,l.jsxs)(o.h,{appContext:s,children:[e.header?i?(0,l.jsxs)(o.h,{testId:e.testId,ref:t,onClick:()=>u(e=>({...e,isVisible:!e.isVisible,shouldRenderDomNodes:!0})),alignItems:"center",cursor:"pointer",display:"flex",justifyContent:"between",userSelect:"none",tracking:{id:"collapsible_filter.toggle",gaContext:{action:d.isVisible?"hidden":"visible"}},children:[e.header,(0,l.jsx)(a.A,{name:"chevron-right",height:16,width:16,flexShrink:0,textStyle:"muted",className:c("icon",{isVisible:d.isVisible})})]}):e.header:null,d.isVisible&&e.subHeader,d.shouldRenderDomNodes&&(0,l.jsx)(n.Activity,{mode:d.isVisible?"visible":"hidden",children:(0,l.jsx)(o.h,{display:"flex",flexDirection:"column",gap:2,marginTop:e.header||d.isVisible&&e.subHeader?2:void 0,children:e.children})})]})}},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")}},34923(e,t,i){i.d(t,{A:()=>EditorMessage});var n=i(57830),r=i(19363),s=i(23481),o=i(90419),a=i(49329),l=i(14901),c=(i(74954),i(14202));const d={info:"info-light",warning:"warning-light",critical:"danger-light"},u={info:"info-dark",warning:"warning-dark",critical:"danger-dark"},g={info:"info",warning:"warning",critical:"danger"};function EditorMessage(e){const{isInherited:t,message:i,...p}=e;return(0,c.jsx)(s.A,{"data-nosnippet":!0,id:i.id,backgroundColor:d[i.type],full:{xs:!0,sm:!0,md:!0},textStyle:u[i.type],...p,children:(0,c.jsxs)(s.A.Block,{paddingX:3,paddingY:2,position:"relative",textStyle:"dark",trimY:!0,children:[t&&(0,c.jsx)(n.A,{badgeStyle:g[i.type],children:"Inherited"}),(0,c.jsx)(a.A,{source:i.body,componentsAvailable:{Box:r.h,CollapsibleContent:e=>(0,c.jsx)(o.A,{doNotRender:!0,...e}),Paragraph:l.A}})]})})}},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,[p,m]=((0,c.tz)(),(0,n.useState)(r)),h=(0,l.A)();return(0,d.jsx)(o.h,{onClick:()=>m(!1),cursor:p?"pointer":void 0,className:u("videoContainer","ratio",i?`ratio-${i}`:void 0,s),tracking:{id:`video_play.${t}`},...g,children:p?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(a.A,{src:h.generate("cdn.youtube_video_thumbnail",{id:t,size:"hqdefault"}),srcSet:`${h.generate("cdn.youtube_video_thumbnail",{id:t,size:"hqdefault"})} 992w, ${h.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:h.generate("cdn.youtube_video_embed",{id:t,auto
1play: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",...p}=e,[m,h]=(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:()=>h(!1)}),(0,d.jsxs)(o.h,{...p,onClick:()=>h(!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,...p})}},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("://");return(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})}},72214(e,t,i){i.d(t,{A:()=>Main});var n=i(19363),r=i(14202);function Main(e){return(0,r.jsx)(n.h,{display:"flex",doNotRenderIfEmpty:!0,element:"main",flexDirection:"column",...e})}},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"})}},39845(e,t,i){i.d(t,{A:()=>ne});var n=i(85906),r=i(78801),s=i.n(r),o=i(79139),a=i(19363),l=i(53856),c=i(98379),d=i(95405),u=i(46893),g=i(25343),p=i(74702),m=i(2227),h=i(46128),f=i(43800),x=i(4547),v=i(35447),A=i(45919),b=i(94083),y=i(74954),w=i(14202);function WriteAReviewLinkButton(e){const{listing:t,...i}=e;return(0,w.jsx)(b.A,{routeName:"www.public.write_review_form",params:{listingSlug:t.slug},catalogId:t.catalogId,rel:"nofollow",element:A.A.Link,buttonStyle:"primary-dark",tracking:{id:"write_review_button",gaContext:{label:t.slug}},...i,children:"Write a review"})}var j=i(55279),S=i(71526),k=i(71123),C=i(74222),L=i(62227),_=i(39472),N=i(62047),I=i(71975);const P=s().bind(I.A);function ProgressBarStacked(e){return(0,w.jsx)(a.h,{...e,className:P("progress-stacked",e.className)})}var R=i(44021),T=i(41125),M=i(14901),E=i(23978),O=i(86922),q=i(27535);const D={"listingHeader-title":"J4MtjR","listingHeader-award":"Iwt_VY","listingHeader-rating":"FTK8Sr","listingHeader-rating-link":"a1TCh1","listingHeader-rating-label":"OhFVAL","sentimentDistribution-gradientBackgroun
1d":"hR7kZp","listingHeader-imageAndRatingSection":"uQyTK1"},F=s().bind(D),B=(0,n.lazy)(()=>i.e("shared_containers_RatingDetails_RatingDetails_tsx").then(()=>i(39978)));function V(e){return e.toFixed(2)+"%"}function SentimentBar(e){return(0,w.jsx)(a.h,{role:"progressbar","aria-valuenow":e["aria-valuenow"],"aria-label":e["aria-label"],backgroundColor:{positive:"primary",negative:"danger",neutral:"secondary"}[e.sentiment],borderRadius:{positive:"left",negative:"right"}[e.sentiment],style:{"--bs-secondary-rgb":"neutral"===e.sentiment?"156, 163, 175":void 0,outline:"var(--bs-border-width) solid var(--bs-card-bg)",width:e.width}})}function RatingSection({listing:e}){(0,y.tz)();const[t,i]=(0,n.useState)(!1),{negative:r,neutral:s,positive:o}=function(e,t,i){const n=i+t+e;if(0===n)return{negative:{percentage:0,percentageScaled:0,count:0},neutral:{percentage:0,percentageScaled:0,count:0},positive:{percentage:0,percentageScaled:0,count:0}};let r=Math.ceil(t/n*100);const s=r<5?r/2:0;r=s?0:r;let o=Math.ceil(s+e/n*100),a=Math.ceil(s+i/n*100);const l=o>a?1:0;let c=0;for(;a+o+r>100;)c%3==0&&r?r--:c%3===1+l&&o?o--:c%3==2-l&&a&&a--,c++;const d=Math.max(o+r/2,a+r/2),u=d>50?50/d:1;return{negative:{percentage:o,percentageScaled:u*o,count:e},neutral:{percentage:r,percentageScaled:u*r,count:t},positive:{percentage:a,percentageScaled:u*a,count:i}}}(e.statistics.ratingDistribution[0]+e.statistics.ratingDistribution[1],e.statistics.ratingDistribution[2],e.statistics.ratingDistribution[3]+e.statistics.ratingDistribution[4]);return(0,w.jsxs)(n.Fragment,{children:[t&&(0,w.jsx)(_.default,{title:"Listing statistics",content:(0,w.jsx)(B,{listing:e}),bodyProps:{padding:4},resolve:C.A,reject:()=>i(!1)}),(0,w.jsxs)(a.h,{alignSelf:"end",display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",textStyle:"muted",children:[(0,w.jsxs)(a.h,{alignItems:"center",display:"flex",gap:1,children:[(0,w.jsx)(T.A,{level:3,fake:!0,lineHeight:"base",className:F("listingHeader-rating-label"),children:(0,q.A)(e.statistics.rating)}),(0,w.jsx)(R.A,{rating:e.statistics.rating,size:"large",className:F("listingHeader-rating")}
1),(0,w.jsx)(L.A,{name:"chart-bar-square",height:20,width:20,display:"none",marginTop:1})]}),(0,w.jsxs)(M.A,{onClick:()=>i(!0),title:"See statistics",cursor:"pointer",fontSize:"small",lineHeight:"small",stretchedLink:!0,textDecorationHover:"underline",className:F("listingHeader-rating-link"),tracking:{id:"rating_details",gaContext:{label:e.id}},children:[(0,w.jsx)(N.A,{numberOfReviews:e.statistics.numberOfReviews}),(0,w.jsx)(L.A,{name:"chart-bar-square",height:17.5,width:17.5,display:"inline",marginLeft:1})]})]}),(0,w.jsxs)(a.h,{display:"flex",flexDirection:"column",overflow:"hidden",className:F("sentimentDistribution"),style:{rowGap:"0.125rem"},children:[(0,w.jsxs)(T.A,{level:6,fake:!0,alignItems:"baseline",display:"flex",fontSize:"xxsmall",fontWeight:"medium",justifyContent:"between",textStyle:"muted",truncate:!0,children:[(0,w.jsx)(v.A,{flexBasis:100,flexGrow:1,textAlign:"left",children:"Positive"}),(0,w.jsxs)(E.A,{children:[" ","vs"," "]}),(0,w.jsx)(v.A,{flexBasis:100,flexGrow:1,textAlign:"right",children:"Negative"})]}),(0,w.jsxs)(ProgressBarStacked,{borderRadius:!0,justifyContent:"center",className:F("sentimentDistribution-gradientBackground"),style:{"--bs-progress-bg":"transparent","--bs-progress-height":"5px"},children:[o.percentageScaled+s.percentageScaled/2<50&&(0,w.jsx)(a.h,{style:{width:V(50-(o.percentageScaled+s.percentageScaled/2))}}),o.percentage>0&&(0,w.jsx)(SentimentBar,{sentiment:"positive",width:V(o.percentageScaled),"aria-label":"Positive ratings","aria-valuenow":o.percentage}),s.percentage>0&&(0,w.jsx)(SentimentBar,{sentiment:"neutral",width:V(s.percentageScaled),"aria-label":"Neutral ratings","aria-valuenow":s.percentage}),r.percentage>0&&(0,w.jsx)(SentimentBar,{sentiment:"negative",width:V(r.percentageScaled),"aria-label":"Negative ratings","aria-valuenow":r.percentage}),r.percentageScaled+s.percentageScaled/2<50&&(0,w.jsx)(a.h,{style:{width:V(50-(r.percentageScaled+s.percentageScaled/2))}})]}),(0,w.jsxs)(a.h,{display:"flex",fontSize:"small",justifyContent:"between",lineHeight:"small",children:[(0,w.jsx)(O.A,{flexBasis:100,flexGrow:1,nowrap:!0,textAlign:s.percentageScaled?"left":"center",children:(l={roundedPercentage:o.percentage},(0,w.jsxs)(w.Fragment,{children:[l.roundedPercentage,"%"]}))}),s.percentage>0&&(0,w.jsx)(O.A,{flexBasis:100,flexGrow:1,nowrap:!0,textAlign:"center",children:(e=>(0,w.jsxs)(w.Fragment,{children:[e.roundedPercentage,"%"]}))({roundedPercentage:s.percentage})}),(0,w.jsx)(O.A,{flexBasis:100,flexGrow:1,nowrap:!0,textAlign:s.percentageScaled?"right":"center",children:(e=>(0,w.jsxs)(w.Fragment,{children:[e.roundedPercentage,"%"]}))({roundedPercentage:r.percentage})})]})]})]});var l}var W=i(17597),G=i(52696),H=i(5475),z=i(12765),U=i(49329),Q=i(63293),$=i(66307),Y=i(57220),X=i(58222),J=i(57483),K=i(52905),Z=i(21351);function IsManagedBadge({brand:e}){const t=(0,y.tz)(),i=(0,w.jsx)(U.A,{source:(0,Z.A)("The verification process helps ensure replies and interactions come from official representatives of the company. [Learn more](https://support.productreview.com.au/hc/en-us/articles/8208753057167)\n\nBelow are the details we can use for company verification:\n\n- Proof of Identity\n- Contact Information\n- Ownership of Domain Name\n- Bank Account\n\nVerified companies are notified when a new submission is made on a listing.")});return(0,w.jsx)(K.A,{modalOptions:{title:t.formatMessage({id:"is_managed_badge.modal_title",defaultMessage:"{brandName} is a verified company"}
1,{brandName:e.name}),content:i,bodyProps:{padding:3,trimY:!0}},popoverOptions:{content:(0,w.jsx)(a.h,{fontSize:"small",lineHeight:"small",padding:3,trimY:!0,children:i}),placement:"bottom",trigger:"hover"},children:(0,w.jsxs)(v.A,{cursor:"help",nowrap:!0,textStyle:"muted-secondary",children:[(0,w.jsx)(L.A,{name:"check-badge",height:17.5,width:17.5,textStyle:"info",verticalAlign:"text-bottom"}),(0,w.jsx)(n.Fragment,{children:" "}),"Verified"]})})}const ee=s().bind(D),te=(0,n.lazy)(()=>i.e("shared_components_ListingTreeNavigator_ListingTreeNavigator_tsx-_eab20").then(()=>i(58363)));const ie=s().bind(D);function ListingHeader_ListingHeader(e){const t=[],i={flexBasis:{xs:100,sm:"auto",xxl:100},flexGrow:{xs:1,sm:0,xxl:1},nowrap:!0};e.pageViewData.listing.hideContentDueToLegalRequest||t.push((0,w.jsx)(WriteAReviewLinkButton,{listing:e.pageViewData.listing,...i,display:{xs:"inline-block",lg:"none",xxl:"inline-block"},order:{xs:"first",sm:"last",xxl:"first"}},"write_a_review")),e.pageViewData.liveChatSection&&t.push((0,w.jsx)(l.A,{...e.pageViewData.liveChatSection,...i,order:{xs:"unset",sm:5,xxl:"unset"}},"chat_with_brand"));const r={xs:"unset",sm:4,xxl:"unset"},{affiliateLink:s}=e.pageViewData.listing,{hasOffers:A}=e.pageViewData,b=t=>s?(0,w.jsx)(o.A,{affiliateLink:s,categories:e.pageViewData.listing.categories,slug:e.pageViewData.listing.slug,...i,order:t},"affiliate_link"):null,y=t=>A?(0,w.jsx)(m.A,{offers:e.pageViewData.listing.offers,fromLabelProps:{display:{xs:"inline",sm:"none",xxl:"inline"}},...i,order:t},"offers"):null,C=b(),L=y();if(C&&L)t.push((0,w.jsx)(k.A,{...i,order:r,children:[C,L]},"affiliate_link_and_offers"));else{const e=b(r)??y(r);e&&t.push(e)}"typeform"!==e.pageViewData.quoteRequestCollectionStrategy?.type||(0,f.v)(e.pageViewData.quoteRequestCollectionStrategy.context.category)||t.push((0,w.jsx)(h.A,{collectionStrategy:e.pageViewData.quoteRequestCollectionStrategy,listing:e.pageViewData.listing,isServiceProviderTargeted:!0,...i,order:{xs:"unset",sm:3,xxl:"unset"}},"request_a_quote")),e.pageViewData.homeBuildersHomeDesignButtonUrl&&t.push((0,w.jsx)(u.A,{url:e.pageViewData.homeBuildersHomeDesignButtonUrl,...i,order:{xs:"unset",sm:2,xxl:"unset"}},"home_builders_home_design"));const _=(0,j.A)();return(0,w.jsxs)(a.h,{alignItems:{sm:"end"},display:"flex",flexWrap:"wrap",gapX:5,gapY:2,paddingX:3,children:[e.pageViewData.rootListing&&(0,w.jsx)(a.h,{"data-nosnippet":!0,flexBasis:100,flexGrow:1,flexShrink:0,fontSize:"small",lineHeight:"small",negativeMarginBottom:1,textStyle:"dark",children:(0,w.jsxs)(v.A,{position:"relative",children:["Part of ",(0,w.jsx)(g.A.Static,{to:_.generate("www.public.listing",{listingSlug:e.pageViewData.rootListing.slug}),breakWord:!0,headingStyle:5,stretchedLink:!0,textDecorationHover:"underline",textStyle:"link",tracking:{id:"listing_root",gaContext:{label:e.pageViewData.rootListing.slug}},children:(0,S.A)({listing:e.pageViewData.rootListing})}),e.pageViewData.rootListing.statistics.numberOfReviews>0&&(0,w.jsxs)(n.Fragment,{children:[(0,w.jsx)(n.Fragment,{children:" "}),(0,w.jsx)(x.A,{rating:e.pageViewData.rootListing.statistics.rating,numberOfReviews:e.pageViewData.rootListing.statistics.numberOfReviews,display:"inline-flex",nowrap:!0})]})]})}),(0,w.jsxs)(p.A,{display:{xs:"block",md:"flex",xxl:e.pageViewData.showAverageRatingUnderTitle?"block":"flex"},flexBasis:{xs:100,md:"auto",xxl:100},flexGrow:e.pageViewData.showAverageRatingUnderTitle?void 0:1,gap:3,children:[(0,w.jsx)(d.A,{entry:e.pageViewData.listing,medias:e.pageViewData.medias,display:{xs:"none",md:"block",xxl:e.pageViewData.showAverageRatingUnderTitle?"none":"block"},flexShrink:0}),(0,w.jsx)(p.A.Body,{appContext:{namespace:"title"},alignSelf:{xs:"center",xxl:"stretch"},fontSize:"small",lineHeight:"small",textStyle:"muted",className:ie("listingHeader-title"),children:e.titleSection})]}),(0,w.jsxs)(a.h,{alignItems:"center",display:"flex",flexGrow:1,flexWrap:"wrap",gapX:4,gapY:3,justifyContent:{xs:"between",md:e.pageViewData.showAverageRatingUnderTitle?"between":"end"},children:[(0,w.jsxs)(a.h,{alignItems:"end",display:{xs:"flex",md:e.pageViewData.showAverageRatingUnderTitle?"flex":"none"},flexWrap:"wrap",gapX:{xs:3,sm:4,xxl:3},gapY:2,className:ie("listingHeader-imageAndRatingSection"),children:[(0,w.jsx)(d.A,{entry:e.pageViewData.listing,medias:e.pageViewData.medias,display:{xs:"block",md:"none",xxl:"block"},flexShrink:0}),e.pageViewData.showAverageRatingUnderTitle&&(0,w.jsx)(RatingSection,{listing:e.pageViewData.listing})]}),Boolean(t.length||e.navigationItems?.length)&&(0,w.jsxs)(c.A,{flexBasis:{xs:100,sm:"auto",xxl:100},flexGrow:{xs:1,sm:0,xxl:1},flexWrap:"wrap",gap:{xs:2,sm:1,xxl:2},children:[Boolean(e.navigationItems?.length)&&e.navigationItems,t.length>0&&t]})]})]})}ListingHeader_ListingHeader.Title=function Title(e){const t=(0,y.tz)(),{showModal:i}
1=(0,X.A)(),r=(0,j.A)(),s=(0,n.useRef)(null),o=(0,n.useCallback)(()=>{i({title:"Select a listing",content:()=>(0,w.jsx)(te,{listing:e.listing,...e.treeSettings}),bodyProps:{display:"flex",flexDirection:"column",gap:4,padding:4}})},[i,e.treeSettings]);return(0,w.jsxs)(n.Fragment,{children:[(0,w.jsx)(H.A,{links:(()=>{const t=[];if(e.listing.categories)for(const i of e.listing.categories)t.push({label:i.pluralLongName,url:r.generate("www.admin.catalog_category_edit",{categoryId:i.id,catalogId:e.listing.catalogId})});e.listing.brand&&t.push({label:`${e.listing.brand.name} (Brand)`,url:r.generate("www.admin.catalog_brand_edit",{brandId:e.listing.brand.id,catalogId:e.listing.brand.catalogId})}),t.push({label:e.listing.fullName,url:r.generate("www.admin.catalog_entry_edit",{entryId:e.listing.id,catalogId:e.listing.catalogId})});for(const i of e.listing.mostPopularSubListings)t.push({label:i.fullName,url:r.generate("www.admin.catalog_entry_edit",{entryId:i.id,catalogId:i.catalogId})});return t})()}),(0,w.jsxs)(T.A,{ref:s,level:1,headingStyle:2,display:{xs:"inline-block",md:"block"},children:[(()=>{const t=(0,S.A)({listing:e.listing});if(!e.hasTreeOfListings)return t;const i=t.split(" ");return(0,w.jsxs)(v.A,{onClick:o,cursor:"pointer",tracking:{id:"listing_tree_navigation",gaContext:{label:e.listing.slug}},children:[`${i.slice(0,-1).join(" ")} `,(0,w.jsx)(v.A,{caret:"down",nowrap:!0,children:i.slice(-1)})]})})(),(e.subTitle||e.paging&&e.paging.currentPage>1)&&(0,w.jsxs)(E.A,{display:{xxl:"block"},textStyle:"muted",children:[e.subTitle,e.paging&&e.paging.currentPage>1&&(0,w.jsx)(y.sA,{id:"listing_header.title.paging",defaultMessage:" (page {currentPage, number})",values:{currentPage:e.paging.currentPage}})]})]}),(0,w.jsx)(Q.A,{listing:e.listing,destinationPage:"listing_details",children:i=>(0,w.jsxs)(n.Fragment,{children:[e.verifiedCompany&&e.listing.brand?(0,w.jsx)(IsManagedBadge,{brand:e.listing.brand}):null,e.headerAward?(0,w.jsx)(G.A,{...e.headerAward,format:"short",badgeProps:{verticalAlign:"baseline",className:ee("listingHeader-award")}}):null,(()=>{const t=e.externalLink?(0,w.jsx)(g.A.Static,{to:e.externalLink.url,external:!0,textDecorationHover:"underline",textStyle:"link",tracking:{id:"official_website_link",gaContext:{label:e.listing.slug}},children:e.externalLink.label}):null;return e.listing.primarySponsoredListing?.id===e.listing.rootId&&e.listing.primarySponsoredListing?.advertisementSettings?.subtitleAd?.options?(0,w.jsx)(W.A,{spot:"public.listing.header.title.subtitle",sizeMappingKey:"default",pageAdContext:e.pageAdContext,fallback:t}):t})(),(()=>{const{abns:i}=e;return i?.length?(0,w.jsx)(v.A,{display:"inline-block",children:(0,w.jsx)(U.A,{source:t.formatMessage({id:"listing_header.title.australian_business_number",defaultMessage:"<Strong>{abnsLength, plural, one {ABN} other {ABNs}}:</Strong> <AbnList />"},{abnsLength:i.length}),componentsAvailable:{AbnList:(0,J.A)(()=>(0,w.jsx)(z.A.WithTooltip,{items:i,renderExtraItems:(e,t)=>(0,w.jsx)(Y.A,{content:(0,w.jsx)($.A,{unstyled:!0,monoSpaceNumber:!0,textAlign:"left",children:(0,w.jsx)(z.A,{items:e,renderListItem:e=>(0,w.jsx)($.A.Item,{children:e}),renderExtraItems:e=>(0,w.jsx)($.A.Item,{children:(0,w.jsx)(y.sA,{id:"listing_header.title.model_numbers_list.number_of_mnps_not_rendered",defaultMessage:"and {numberOfExtraMPNsNotRen
1dered, number} more",values:{numberOfExtraMPNsNotRendered:e.length}})}),defaultSeparator:null,defaultSeparatorAsLast:!0,truncateAfter:10})}),placement:"top-start",children:(0,w.jsx)(v.A,{cursor:"help",children:t(e)})})})),Strong:(0,J.A)(({children:e})=>(0,w.jsx)(O.A,{fontWeight:"semi-bold",children:e}))},initialParser:"inline"})}):null})(),(()=>{const{mpns:i}=e;return i?.length?(0,w.jsx)(v.A,{display:"inline-block",children:(0,w.jsx)(U.A,{source:t.formatMessage({id:"listing_header.title.model_numbers_list",defaultMessage:"<Strong>{mpnsLength, plural, one {MPN} other {MPNs}}:</Strong> <MpnList />"},{mpnsLength:i.length}),componentsAvailable:{MpnList:(0,J.A)(()=>(0,w.jsx)(z.A.WithTooltip,{items:i,renderExtraItems:(e,t)=>(0,w.jsx)(Y.A,{content:(0,w.jsx)($.A,{unstyled:!0,monoSpaceNumber:!0,textAlign:"left",children:(0,w.jsx)(z.A,{items:e,renderListItem:e=>(0,w.jsx)($.A.Item,{children:e}),renderExtraItems:e=>(0,w.jsx)($.A.Item,{children:(0,w.jsx)(y.sA,{id:"listing_header.title.model_numbers_list.number_of_mnps_not_rendered",defaultMessage:"and {numberOfExtraMPNsNotRen
1dered, number} more",values:{numberOfExtraMPNsNotRendered:e.length}})}),defaultSeparator:null,defaultSeparatorAsLast:!0,truncateAfter:10})}),placement:"top-start",children:(0,w.jsx)(v.A,{cursor:"help",children:t(e)})})})),Strong:(0,J.A)(({children:e})=>(0,w.jsx)(O.A,{fontWeight:"semi-bold",children:e}))},initialParser:"inline"})}):null})(),e.marketAvailabilityStartDateYear?(0,w.jsx)(v.A,{display:"inline-block",children:(0,w.jsx)(U.A,{source:t.formatMessage({id:"listing_header.title.plus_minus_one_year",defaultMessage:"<Strong>Also referred to as:</Strong> {startDateYearIsCurrentYear, select, true {} false {{listingFullName} {previousYear} and }}{listingFullName} {nextYear}."},{startDateYearIsCurrentYear:(new Date).getFullYear()===e.marketAvailabilityStartDateYear,listingFullName:e.listing.fullName,previousYear:(new Date).getFullYear()-1,nextYear:(new Date).getFullYear()+1}),componentsAvailable:{Strong:(0,J.A)(({children:e})=>(0,w.jsx)(O.A,{fontWeight:"semi-bold",children:e}))},initialParser:"inline"})}):null,i]})})]})};const ne=ListingHeader_ListingHeader},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 p=new Set;function ImageLoader(e){const[t,i]=(0,n.useState)({isLoading:p.has(e.src),error:null});return(0,n.useEffect)(()=>{let t;if(p.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})),p.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),h=i(10014),f=i(30145),x=(i(74954),i(46365));var v=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"}),b={next:"absolute-right",prev:"absolute-left"};function MediaGalleryArrow(e){return(0,v.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?b[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,v.jsx)(m.A,{size:"medium",textStyle:"white"}):(0,v.jsx)(a.A,{direction:e.direction,className:A("carousel-arrow")})})}const y="Loading…";function w(){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)(),p=(0,o.A)();function m(t){return(0,x.A)()?a.getCdnImageSrc({width:720,withoutEnlargement:!0,cover:!0,collection:e.collection,id:t.id,v:4}):a.getCdnImageSrc({width:1e3,quality:w(),withoutEnlargement:!0,collection:e.collection,id:t.id})}(0,n.useEffect)(()=>{e.isBuffering||setTimeout(()=>{document.dispatchEvent(new CustomEvent("renderUpdate"))},1)},[t,e.isBuffering]);const b=(0,n.useCallback)(()=>{if(p.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)(()=>
1{if(p.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&&b())},[j,b]);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,v.jsx)(h.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,v.jsxs)(n.Fragment,{children:[(0,v.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,v.jsxs)(n.Fragment,{children:[e.medias.length>1&&(0,v.jsx)(MediaGalleryArrow,{onClick:j,direction:"prev",displayOverMedia:"image"===t.type,isDisabled:t.id===e.medias[0]?.id}),(0,v.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,v.jsx)(ImageLoader,{src:e,children:({isLoading:t,error:i})=>t?y:i?(0,v.jsx)(u.A,{error:i}):(0,v.jsx)(g.A,{src:e,fluid:!0})})}return(0,v.jsxs)(n.Fragment,{children:["cloudflare_stream"===t.source?(0,v.jsx)(c.A,{id:t.id,margin:"auto",position:"absolute-center"}):(0,v.jsx)(d.default,{id:t.id,margin:"auto",position:"absolute-center"}),y]})})()}),e.medias.length>1&&(0,v.jsx)(MediaGalleryArrow,{onClick:b,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})}})}},2227(e,t,i){i.d(t,{A:()=>OffersListButton});var n=i(66668),r=i(4484),s=i(35787),o=i(80579),a=i(23978),l=(i(74954),i(14202));function OffersListButton(e){const{fromLabelProps:t,offers:i,...c}=e,d=(0,n.A)(i,e=>e.price.amount);return d?(0,l.jsx)(s.A,{offers:i,popoverPlacement:"bottom-start",children:e=>(0,l.jsxs)(r.A.Toggle,{buttonStyle:"warning",isActive:e,...c,children:[(0,l.jsx)(a.A,{...t,children:"From "}),(0,l.jsx)(o.A,{amount:d.price.amount/100,currency:d.price.currency,hideCentsIfWhole:!0})]})}):null}},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),p=i(25343),m=i(80579),h=i(41125),f=i(35447),x=i(97075);const v={"offers-table-row":"aB5Co9","offer-name":"iGRg5Q"};var A=i(14202);const b=s().bind(v);function Row(e){const{offer:t,...i}=e;return(0,A.jsxs)(p.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:x.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:b("offer-name"),children:t.name}),(0,A.jsxs)(d.h,{display:"flex",gap:3,marginLeft:"auto",flexShrink:0,children:[(0,A.jsx)(h.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 y=s().bind(v);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:y("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},53301(e,t,i){i.d(t,{A:()=>Pagination_Pagination});var n=i(78801),r=i.n(n),s=i(19363),o=i(45919),a=i(98379),l=i(62227),c=i(25343),d=i(66307),u=i(35447),g=i(74954),p=i(92523);var m=i(14202);function PaginationButton(e){const t={block:!0,children:e.children,monoSpaceNumber:!0,nowrap:!0,className:e.className};if(e.isActive||e.isDisabled)return(0,m.jsx)(o.A,{buttonStyle:e.isActive?"info":void 0,isActive:e.isActive,isDisabled:e.isDisabled,...t});if(e.onSelect){const{onSelect:i}=e;return(0,m.jsx)(o.A.Button,{onClick:t=>i(e.page,t),...t,tracking:e.tracking})}if(e.to){if("fakeLink"===e.as)return(0,m.jsx)(o.A.Button,{...t,onClick:(0,p.A)(e.to)});const i="staticLink"===e.as?c.A.Static:c.A;return(0,m.jsx)(i,{to:e.to,element:o.A.Link,...t,tracking:e.tracking})}return null}const h=r().bind({prev:"ntfasT",next:"kVsAq_",page:"YL2d5r"});function Pagination_Pagination(e){const{activePage:t,generatePath:i,generateTrackingOptions:n,maxButtons:r=5,numberOfPages:f,onSelect:x,responsive:v=!0,showSingleButtonOnFirstPage:A,totalItemCount:b,as:y,...w}=e;function j(e){const t=i?i(e):void 0;return{to:t,tracking:n&&t?n(e,t):{id:"pagination.button",gaContext:{label:String(e)}}}}if(A&&i&&1===t){const{to:e,tracking:i}=j(t+1);if("fakeLink"===y)return(0,m.jsx)(a.A,{justifyContent:"end",...w,children:(0,m.jsxs)(o.A.Button,{buttonStyle:"primary",icon:"right",flexGrow:{xs:1,sm:0},tracking:i,onClick:(0,p.A)(e),children:[A,(0,m.jsx)(l.A,{name:"arrow-right"})]})});const n="staticLink"===y?c.A.Static:c.A;return(0,m.jsx)(a.A,{justifyContent:"end",...w,children:(0,m.jsxs)(n,{to:e,element:o.A.Link,buttonStyle:"primary",icon:"right",flexGrow:{xs:1,sm:0},tracking:i,children:[A,(0,m.jsx)(l.A,{name:"arrow-right"})]})})}function S(e){return(0,m.jsx)(d.A.Item,{display:v?{xs:"none",sm:"block"}:void 0,flexBasis:v?100:void 0,flexGrow:v?1:void 0,children:(0,m.jsx)(PaginationButton,{...j(e),isActive:t===e,page:e,as:y,onSelect:x,className:h("page"),children:(0,m.jsx)(g.Gr,{value:e})})},e)}function k(e){return(0,m.jsx)(d.A.Item,{display:v?{xs:"none",sm:"block"}:void 0,flexShrink:v?0:void 0,children:(0,m.jsx)(o.A,{block:!0,buttonStyle:"link",isDisabled:!0,fontWeight:"bold",textStyle:"body",paddingX:2,children:"…"})},e)}return(0,m.jsxs)(s.h,{display:"flex",flexDirection:v?{xs:"column",md:"row"}:void 0,flexWrap:v?"wrap":void 0,gap:3,justifyContent:"between",...w,children:[(0,m.jsx)(u.A,{alignSelf:"center",fontWeight:"bold",children:(0,m.jsx)(g.sA,{id:"pagination.label",defaultMessage:"{numberOfPages, plural,\n  =0    {No pages}\n  other {Page {activePage, number} of #{hasTotalItemCount, select,\n    true {{totalItemCount, plural,\n      =0    {}\n      =1    { (# item)}\n      other { (# items)}\n    }}\n    false {}\n  }}\n}",values:{activePage:t,hasTotalItemCount:Boolean(b),numberOfPages:f,totalItemCount:b}})}),(0,m.jsxs)(d.A,{unstyled:!0,display:"flex",gap:1,children:[f>0&&(0,m.jsx)(d.A.Item,{flexBasis:v?100:void 0,flexGrow:v?1:0,children:(0,m.jsx)(PaginationButton,{...j(t-1),isDisabled:t<=1,page:t-1,as:y,onSelect:x,className:h("prev"),children:"Prev"})},"prev"),function(){const e=Math.min(r,f),i=[];if(f<=e)for(let e=1;e<=f;e++)i.push(S(e));else{const n=Math.floor((e-2-1)/2);let r,s;r=t+n>f?f-e+2:t-n,r<2&&(r=2),s=r+e-2-1,s>=f&&(r=r-Math.floor(e/2)+Math.floor(1),s=f-1),i.push(S(1)),r>2&&i.push(k("first"));for(let e=r;e<=s;e++)i.push(S(e));f>0&&s<f-1&&i.push(k("last")),f-t<e&&i.push(S(f))}return i}(),f>0&&(0,m.jsx)(d.A.Item,{flexBasis:v?100:void 0,flexGrow:v?1:void 0,children:(0,m.jsx)(PaginationButton,{...j(t+1),isDisabled:t===f,page:t+1,as:y,onSelect:x,className:h("next"),children:"Next"})},"next")]})]})}},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:p,...m}=e,h=(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",...p,className:s()("popover-body",p?.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:h,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:h,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}}
1)}},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,p]=(0,n.useState)(!1),m=(0,n.useCallback)(async()=>{p(!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:()=>{p(!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})}},17349(e,t,i){i.d(t,{A:()=>r});var n=i(61829);function r(e,t){let i;for(let r=0;r<e.length;r++){const s=e[r];s.quoteRequestCoverImageId&&(i=s.quoteRequestCoverImageId);for(let r=0;r<s.tags.length;r++){const o=s.tags[r];if(o.startsWith("enable_quote_system:")){const r=o.split(":")[1],a={category:{...(0,n.A)(e),quoteRequestCoverImageId:s.quoteRequestCoverImageId||i},...t};return"lendi"===r||"cimet"===r||"onlineauto"===r?{type:r,context:a}:{type:"typeform",typeformId:r,context:a}}}}}},47673(e,t,i){i.d(t,{A:()=>r});var n=i(17349);function r(e){if(e.categories)return(0,n.A)(e.categories,{listing:e})}},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}).then(e.onResolve).catch(e.onClose||s.O);var i})}},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),p=i(24082),m=i(16940),h=i(49075),f=i(14202);const x=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)(),v=(0,l.A)(),A=(0,u.A)(p.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:v.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)(x,{onAfterSend:t,recipient:e.recipient,recipientType:e.recipientType}),bodyProps:{padding:4},size:"large",...e.modalOptions}
1).then(e.onResolve).catch(e.onClose||h.O);var i},h.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"})}},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]})]})}},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})}},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)},[]),(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,p=(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,p>m?m:p)),maxHeight:Number.isFinite(o)?24*o:void 0,...a},...g})}},11242(e,t,i){i.d(t,{N7:()=>A,j9:()=>v,GS:()=>R,BI:()=>E,Fu:()=>S,Sc:()=>b,K7:()=>T,wF:()=>DropdownSelect,pX:()=>P,zt:()=>M,J$:()=>w,yL:()=>V,qU:()=>k,sq:()=>q,F1:()=>N,GW:()=>I,dE:()=>B,te:()=>L,l6:()=>C,R:()=>
1j,dJ:()=>F,Ap:()=>_,dO:()=>y,ks:()=>TextInput,mW:()=>D,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,p=void 0===g?"#eee":g,m=e.foregroundOpacity,h=void 0===m?1:m,f=e.gradientRatio,x=void 0===f?2:f,v=e.uniqueKey,A=e.rtl,b=void 0!==A&&A,y=e.speed,w=void 0===y?1.2:y,j=e.style,S=void 0===j?{}:j,k=e.title,C=void 0===k?"Loading...":k,L=e.beforeMask,_=void 0===L?null:L,N=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"]),I=v||Math.random().toString(36).substring(6),P="".concat(I,"-diff"),R="".concat(I,"-animated-diff"),T="".concat(I,"-aria"),M=b?{transform:"scaleX(-1)"}:null,E="".concat(w,"s"),O="".concat(-1*x," 0"),q="".concat(x," 0");return(0,n.createElement)("svg",s({"aria-labelledby":T,role:"img",style:s(s({},S),M)},N),C?(0,n.createElement)("title",{id:T},C):null,_&&(0,n.isValidElement)(_)?_:null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(d,"#").concat(P,")"),style:{fill:"url(".concat(d,"#").concat(R,")")}}),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:P},u),(0,n.createElement)("linearGradient",{id:R,gradientTransform:"translate(".concat(O,")")},(0,n.createElement)("stop",{offset:"0%",stopColor:o,stopOpacity:l}),(0,n.createElement)("stop",{offset:"50%",stopColor:p,stopOpacity:h}),(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(q),dur:E,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"}),(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),p=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)(p.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),h=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,h.A)(n,r),id:i??e.meta.htmlId,form:e.meta.form,className:c()(t,{"is-invalid":e.meta.invalid})})}))}function x(e,t){return(0,r.Ay)(e,{fallback:n.createElement(FieldLoadingPlaceholder),...t})}const v=x({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=x({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}),b=x({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}),y=x({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}),w=x({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=(x({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}),x({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=(x({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}),x({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=x({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}),C=x({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}),L=x({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}),_=(x({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}),x({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}),x({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})),N=x({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}),I=x({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}),P=x({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}),R=x({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}),T=x({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}),M=x({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}),E=x({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=x({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}),q=x({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}),D=x({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}),F=x({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}),B=(x({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}),x({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}),x({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}),x({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}),x({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})),V=(x({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}),x({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}))},60887(e,t,i){function n(e){return"true"===e||"false"!==e&&e}i.d(t,{A:()=>n})},61322(e,t,i){i.d(t,{A:()=>r});var n=i(34496);function r(e){return Array.isArray(e)?(0,n.di)(e).asc():e}},29869(e,t,i){i.d(t,{A:()=>QuestionCollectionStateManager});var n=i(85906),r=i(86490),s=i(45756),o=i(24082),a=i(6863),l=i(16940),c=i(29239);function QuestionCollectionStateManager(e){const t=(0,s.A)(),i=(0,r.A)(o.Jj),d=(0,r.A)(o.mj),[u,g]=(0,n.use
1State)(e.initialCollection),p=(0,n.useCallback)(n=>{const r=(new Date).toISOString();return t.dispatch((0,a.TZ)(n)).then(()=>{const t={id:n.questionId,body:n.body,subject:{type:l.PQ.KNOWN_INTERNAL_ENTRY,entry:e.listing},author:d,submittedAt:r,firstPublishedAt:r,isLiked:!1,isDisliked:!1,numberOfLikes:0,isAuthor:!0,answers:[],visibility:l.J4.PUBLIC,permissions:(0,c.A)(i,{canDelete:!0,canEdit:!0,canShare:!0,canAnswer:!0}),tags:[],approvalStatus:l.Gw.APPROVED};g(e=>[t].concat(e)),e.onSubmit&&e.onSubmit(n)})},[]),m=(0,n.useCallback)(e=>(0,a.TZ)(e),[]);return e.children({collection:u,handleSubmitQuestion:p,getDeferredSubmitQuestionAction:m})}},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}},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}}},18158(e,t,i){i.d(t,{p:()=>r});var n=i(821);function r(e){return{type:(0,n.Em)("public/listing/details/LOAD_LISTING"),promise:(t,{urlGenerator:i})=>t.get(i.generate("api.public.listing.details",{listingSlug:e}))}}},6863(e,t,i){i.d(t,{B1:()=>d,XH:()=>a,Dc:()=>c,Nw:()=>o,UT:()=>r,Jx:()=>l,TZ:()=>s});var n=i(821);function r(e,t,i){return{type:(0,n.Em)("public/listing/questions/LOAD_LISTING_QUESTIONS"),promise:async(n,{urlGenerator:r})=>n.get(r.generate("api.public.listing.questions",{listingSlug:e}),{query:{...t,actor:i}})}}const s=(0,n.Iy)({type:"public/listing/questions/SUBMIT_QUESTION",commandName:"Pr.Domain.ConsumerPlatform.Question.Commands.SubmitNewQuestion"}),o=(0,n.Iy)({type:"public/listing/questions/EDIT_QUESTION",commandName:"Pr.Domain.ConsumerPlatform.Question.Commands.EditQuestion"}),a=(0,n.Iy)({type:"public/listing/questions/DELETE_QUESTION",commandName:"Pr.Domain.ConsumerPlatform.Question.Commands.ChangeQuestionVisibility"}),l=(0,n.Iy)({type:"public/listing/questions/SUBMIT_ANSWER",commandName:"Pr.Domain.ConsumerPlatform.Answer.Commands.SubmitNewAnswer"}),c=(0,n.Iy)({type:"public/listing/questions/EDIT_ANSWER",commandName:"Pr.Domain.ConsumerPlatform.Answer.Commands.EditAnswer"}),d=(0,n.Iy)({type:"public/listing/questions/DELETE_ANSWER",commandName:"Pr.Domain.ConsumerPlatform.Answer.Commands.ChangeAnswerVisibility"})},31094(e,t,i){function n(e){if(Array.isArray(e.collection))return e;const t=[];for(const i of e.collection.items){const{_subjectReference:n,_authorReference:r,answers:s,...o}=i,a=[];for(const t of s){const{_authorReference:i,...n}=t;a.push({author:e.collection.authors[i],...n})}t.push({author:e.collection.authors[r],subject:e.collection.subjects[n],answers:a,...o})}return{...e,collection:t}}i.d(t,{F:()=>n})},20378(e,t,i){i.d(t,{f:()=>r});const n={newest:{sort:"firstPublishedAt",order:"DESC"},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])},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});
1class 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:()=>p,MH:()=>m,DX:()=>EnumView,rJ:()=>l.A,YH:()=>ListMultiChoiceView,pO:()=>MarkdownView,IM:()=>MultilineTextView,L:()=>h,wD:()=>f,jm:()=>x,bt:()=>RatingView,l2:()=>v,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=>{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 p=(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}),h=(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}),x=(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}),v=(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:()=>y,A:()=>w});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)),p=i(55156);function FilterLink(e){const{disabled:t,url:i,...n}=e,r=(0,p.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 h=i(34496);var f=i(78441),x=i(63511),v=i(16691);var A=i(85906);function GenericOptionsCountView(e){const t=[],i=(0,v.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)=>
1e+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 b=i(70009);const y={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,h.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,h.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)=>e+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,h.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,x.A)(t.from)?"":t.from}_${(0,x.A)(t.to)?"":t.to}`,r=e.filter.value===n,o=(0,s.jsx)(FilterLink,{url:e.buildValueFilterPath(r?null:n),disabled:0===(0,v.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,v.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,b.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 w(e){const t=e.aggregationItemViewWidget?.widget;if(t){if(t in y)return y[t];(0,n.A)(`resolveAggregationItemViewWidget(field: ${e.id}): unknown aggregationItemViewWidget "${t}"`,{metadata:{field:e}})}}},60533(e,t,i){i.d(t,{A:()=>N});var n=i(94874),r=i(11242),s=i(60887),o=i(74954),a=i(19363),l=i(74308),c=i(52703),d=i(62227),u=i(49329),g=i(41125),p=i(57220),m=i(2063),h=i(14202);function SpecificationFilterField(e){const{field:t,options:i,subLabel:n,appContext:r,...s}=e;if("PrBooleanCheckboxFilterWidget"===t.filterWidget?.widget){const e=(0,h.jsx)(m.D0,{name:t.id,...s,fontWeight:"semi-bold"});return t.description?(0,h.jsxs)(a.h,{appContext:r,display:"flex",gap:1,children:[e,(0,h.jsx)(p.A,{content:(0,h.jsx)(u.A,{source:t.description,initialParser:"inline"}),ignoreEventsOnContent:!t.description.includes("://"),trackingId:"description",children:(0,h.jsx)(d.A,{name:"question-mark-circle",cursor:"help",height:21,width:17.5,flexShrink:0,textStyle:"muted"})})]}):e}return(0,h.jsx)(l.A,{appContext:r,testId:t.id,collapsible:i?.collapsible??!1,defaultCollapsed:i?.defaultCollapsed,header:i?.hideLabel?void 0:(0,h.jsx)(g.A,{level:5,fake:!0,fontWeight:"semi-bold",children:(0,h.jsx)(c.A,{field:t,iconProps:{height:17.5,width:17.5,textStyle:"muted"}})}),subHeader:n,children:(0,h.jsx)(m.D0,{name:t.id,...s})})}var f=i(92478);var x=i(63511),v=i(61322),A=i(87384),b=i(16691);var y=i(85906),w=i(34496),j=i(44021),S=i(76759);var k=i(83485),C=i(35447);function FilterCount(e){const{count:t,...i}=e;return(0,h.jsx)(C.A,{fontSize:"small",fontWeight:"normal",textStyle:"muted",...i,children:(0,h.jsx)(o.sA,{id:"specifications.filter_view.count",defaultMessage:"({count, number})",values:{count:t}})})}function L(e,t){const{hideFilterChoicesWithNoHits:i,sortFilterChoicesByNumberOfHits:n}=t.properties;let r=e;return i&&(r=r.filter(e=>e.count>0)),n?(0,w.di)(r).desc(e=>e.count):(0,w.di)(r).asc(e=>0===e.count)}const _={PrRefinementListFilterWidget:function PrRefinementListFilterWidget(e){if(0===e.aggregation.counts.length)return null;const t=(0,b.A)(e.aggregation.counts),i=e.field.properties.options.filter(e=>t[e.value]>0);return(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.J$,componentProps:{limitOfCheckedItems:10,options:L(i.map(e=>({value:e.value,label:e.label,count:t[e.value]})),e.field),optionLabelRenderer:t=>(0,h.jsx)(f.A,{label:(0,h.jsx)(A.rJ,{value:t.label,field:e.field}),count:t.count}),expandable:!0,getItemTracking:(e,t)=>({triggerEvent:"onChange",gaContext:{action:t?"uncheck":"check",label:"string"==typeof e.label?e.label:e.value}})},normalize:v.A})},PrSliderFilterWidget:function PrSliderFilterView(e){const{rangeQueryComparator:t="gte",multipleOf:i=1}=e.field.properties||{},n=e.aggregation.min??0,s=e.aggregation.max??100;let o;return"number"==typeof e.value||"string"==typeof e.value?o=Number(e.value):"gte"===t?o=n:"lte"===t&&(o=s),(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.Ap,subLabel:"number"==typeof o?(0,h.jsx)(a.h,{fontSize:"small",lineHeight:"small",children:(0,h.jsx)(A.l2,{field:e.field,value:o})}):void 0,componentProps:{track:"gte"===t?"right":"left",step:i,min:n,max:s,defaultValue:"gte"===t?e.aggregation.min:e.aggregation.max,tipFormatter:t=>(0,h.jsx)(A.rJ,{field:e.field,value:t}),label:e.field.label},normalize:e=>{if(Number.isNaN(Number(e))||!function(e,t,i,n){return"gte"===e&&n<=t||"lte"===e&&n>=i}(t,n,s,e))return e}})},PrRatingsFilterWidget:function PrRatingsFilterWidget(e){return(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.J$,componentProps:{options:(0,w.di)(e.aggregation.ratingDistribution).desc(e=>e.rating).map(t=>({disabled:0===t.count&&!e.value?.includes(String(t.rating)),value:String(t.rating),label:(0,h.jsx)(k.A,{rating:t.rating,size:"small",type:e.field.properties?.ratingType||"circles",label:(0,h.jsx)(FilterCount,{count:t.count})})}))},normalize:v.A})},PrRatingsButtonListFilterWidget:function PrRatingsButtonListFilterWidget(e){return(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.Fu,componentProps:{options:(0,w.di)(e.aggregation.ratingDistribution).desc(e=>e.rating).map(e=>({value:String(e.rating),label:(0,h.jsx)(S.A,{label:(0,h.jsxs)(y.Fragment,{children:[(0,h.jsx)(o.Gr,{value:e.rating}),(0,h.jsx)(y.Fragment,{children:" "}),(0,h.jsx)(j.A.Circle,{size:"xsmall"})]}),count:e.count,alignItems:"center",display:"flex",flexWrap:"wrap",justifyContent:"center"})})),multi:!0,buttonProps:{flexGrow:1,paddingX:1,paddingY:{md:1}}}})},PrBooleanButtonsFilterWidget:function PrBooleanButtonsFilterWidget(e){const{positive:t="Yes",negative:i="No"}=e.field.properties?.labels||{};return(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.BI,componentProps:{buttonProps:{paddingY:{md:1}},labels:{positive:i=>(0,h.jsx)(f.A,{label:t,count:e.aggregation.countsMap.true,style:!0===i?{"--pr-label-count-color":"var(--bs-white)"}:void 0}),negative:t=>(0,h.jsx)(f.A,{label:i,count:e.aggregation.countsMap.false,style:!1===t?{"--pr-label-count-color":"var(--bs-white)"}:void 0})},allowDeselect:!0,disabled:({optionValue:t})=>!0===t?0===e.aggregation.countsMap.true:0===e.aggregation.countsMap.false,getItemTracking:(e,t)=>
1({gaContext:{action:t?"uncheck":"check",label:e}})},normalize:s.A})},PrBooleanCheckboxFilterWidget:function PrBooleanCheckboxFilterWidget(e){return(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.Sc,componentProps:{label:(0,h.jsx)(f.A,{label:e.field.label,count:e.aggregation.countsMap.true}),getItemTracking:e=>({gaContext:{action:e?"uncheck":"check"}}),verticallyCenteredIndicator:!0},normalize:e=>"true"===e||!0===e||"",format:e=>!0===e||"true"===e?"true":!1===e||"false"===e?"false":e})},PrTextRefinementFilterWidget:function PrTextRefinementFilterWidget(e){return 0===e.aggregation.counts.length?null:(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.J$,componentProps:{limitOfCheckedItems:10,options:(0,w.di)(e.aggregation.counts).desc(e=>e.count).map(t=>({value:t.key,label:t.key,count:t.count,disabled:0===t.count&&!e.value?.includes(t.key)})),optionLabelRenderer:t=>(0,h.jsx)(f.A,{label:(0,h.jsx)(A.rJ,{value:t.label,field:e.field}),count:t.count}),expandable:!0,getItemTracking:(e,t)=>({triggerEvent:"onChange",gaContext:{action:t?"uncheck":"check",label:"string"==typeof e.label?e.label:e.value}})},normalize:v.A})},PrRangeFilterWidget:function PrRangeFilterWidget(e){let t=e.aggregation.min??(Array.isArray(e.value)?e.value[0]:void 0)??0,i=e.aggregation.max??(Array.isArray(e.value)?e.value[1]:void 0)??100,n=1;return n=e.field.properties?.multipleOf?e.field.properties.multipleOf:function(e){const t=e.max-e.min;return t<=100?1:t<=1e3?10:t<=1e4?100:t<=1e5?1e3:t<=1e6?1e4:t<=5e7?1e5:1e6}({min:t,max:i}),t=Math.floor(t/n)*n,i=Math.ceil(i/n)*n,(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,component:r.F1,options:e.options,componentProps:{min:t,max:i,step:n,tipFormatter:t=>(0,h.jsx)(A.rJ,{field:e.field,value:t})},subLabel:(0,h.jsx)(a.h,{fontSize:"small",lineHeight:"small",children:(0,h.jsx)(A.jm,{field:e.field,value:(s=e.value,Array.isArray(s)&&2===s.length?e.value:[t,i])})}),normalize:e=>{if(!Array.isArray(e)||!function(e,t,i){return i[0]<=e&&i[1]>=t}(t,i,e))return e}});var s},PrNumericOptionsCheckboxFilterWidget:function PrNumericOptionsCheckboxFilterWidget(e){if(!e.field.properties?.numericOptions)return null;const t=(0,b.A)(e.aggregation.ranges);return(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.J$,componentProps:{limitOfCheckedItems:10,options:e.field.properties.numericOptions.map(i=>{const n=t[i.label],r=`${(0,x.A)(i.from)?"":i.from}_${(0,x.A)(i.to)?"":i.to}`;return{disabled:0===n&&!e.value?.includes(r),value:r,label:(0,h.jsx)(f.A,{label:(0,h.jsx)(A.L,{value:i,field:e.field}),count:n})}}),expandable:!0,getItemTracking:(e,t)=>({triggerEvent:"onChange",gaContext:{action:t?"uncheck":"check",label:"string"==typeof e.label?e.label:e.value}})},normalize:v.A})},PrNumericOptionsRadioFilterWidget:function PrNumericOptionsRadioFilterWidget(e){return e.field.properties?.numericOptions?(0,h.jsx)(SpecificationFilterField,{appContext:e.appContext,field:e.field,options:e.options,component:r.qU,componentProps:{options:e.field.properties.numericOptions.map(t=>{const i=(0,b.A)(e.aggregation.ranges)[t.label];return{value:`${(0,x.A)(t.from)?"":t.from}_${(0,x.A)(t.to)?"":t.to}`,label:(0,h.jsx)(f.A,{label:(0,h.jsx)(A.L,{value:t,field:e.field}),count:i}),disabled:0===i}}),expandable:!0,verticallyCenteredIndicator:!0,getItemTracking:(e,t)=>({triggerEvent:"onChange",gaContext:{action:t?"uncheck":"check",label:"string"==typeof e.label?e.label:e.value}})}}):null}};function N(e){const t=e.filterWidget?.widget;if(t){if(t in _)return _[t];(0,n.A)(`resolveFilterWidget(field: ${e.id}): unknown filterWidget "${t}"`,{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}},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}},92478(e,t,i){i.d(t,{A:()=>FilterLabel});var n=i(76759),r=i(14202);function FilterLabel(e){const{count:t,hideZeroCount:i,label:s,...o}=e;return(0,r.jsx)(n.A,{label:s,count:t,hideCount:i&&0===t,breakWord:!0,...o})}},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)}},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})},27150(e,t,i){function n(e,t,i){return{commandName:"Pr.Domain.ConsumerPlatform.Question.Commands.SubmitNewQuestion",payload:{questionId:t,body:i,subject:e}}}i.d(t,{A:()=>n})},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})},89331(e,t,i){i.d(t,{A:()=>r});var n=i(78026);function r(e){return e.page&&1===Number(e.page)?(0,n.A)(e,"page"):e}},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)"}},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 p=i(14202);function UserGeneratedLink_UserGeneratedLink(e){const{children:t=e.to,to:i}=e,{showModal:m}=(0,l.A)();return i.startsWith("mailto:")?(0,p.jsx)(s.A.Static,{to:i,textDecorationHover:"underline",textStyle:"link",children:t}):i.includes("productreview.com.au")?(0,p.jsx)(s.A.Static,{to:i,openNewTab:!0,rel:"nofollow ugc",textDecorationHover:"underline",textStyle:"link",children:t}):(0,p.jsxs)(a.A,{className:g,onClick:e=>{e.preventDefault(),m({title:!1,hideCloseButton:!0,closeable:!0,bodyProps:{padding:4},content:e=>(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(u.A,{onClick:e,negativeMarginTop:2,negativeMarginRight:2,style:{float:"right"}}),(0,p.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,p.jsx)(o.A,{source:t,componentsAvailable:{Link:()=>(0,p.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,p.jsx)(n.Fragment,{children:" "}),(0,p.jsx)(r.A,{name:"arrow-top-right-on-square",width:16,height:16})]})}var m=i(14901);function h(e,t){switch(e.type){case"text":case"rawText":return e.content;case"link":return(0,p.jsx)(UserGeneratedLink_UserGeneratedLink,{to:e.href,children:e.content},t);case"highlight":case"aspect":return(0,p.jsx)("mark",{children:e.children.map(h)},t);
1case"customNode":return e.node;default:return null}}function TokenRenderer(e){const{paragraphs:t,renderParagraph:i,renderToken:n=h}=e;return t.map((e,r)=>{const s=e.children.map((e,t)=>n(e,t,h)),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,p.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:()=>p,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 p(e){const{paras:t,buf:i}=e.reduce((e,t)=>{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),h=i(85906),f=i(14901),x=i(35447),v=i(74954),A=i(14202);function CollapsibleTokenRenderer(e){const{excerptParagraphs:t,restParagraphs:i,defaultExpanded:n,renderReadMoreButton:r,renderRestForSEO:s,...o}=e,[a,l]=(0,h.useState)(n??!1);(0,v.tz)();(0,h.useEffect)(()=>
1{l(n??!1)},[n]);const c=(0,h.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)(x.A,{nowrap:!0,children:[(0,A.jsx)(h.Fragment,{children:"… "}),(0,A.jsx)(x.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)(h.Fragment,{children:r?r({onClick:c},n):n},"read-more")}]}});return(0,A.jsxs)(h.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="",p="",m=!1,h=!1;const f=e.length-1,x=e.length;for(let v=0;v<x;v++){const x=u[e[v]];if("."===e[v]?m=!0:"@"===e[v]&&(h=!0),x||v===f)if(!m&&!h||v-i<6)i=v+1;else{if(g=x?e.slice(i,v):e.slice(i,v+1),h&&o.test(g)){const e=g.replace(a,"");t.push({type:"email",start:i,end:i+e.length,email:e.replace("mailto:","")})}else if(h&&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}`})}p&&(p=""),i=v+1,g="",m=!1,h=!1}}return t}(e.content);if(0===t.length)return e;const i=[];let p=0;for(const n of t)n.start>p&&i.push({...e,type:"text",start:e.start+p,end:e.start+n.start,content:e.content.slice(p,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}),p=n.end;return p<e.content.length&&i.push({...e,type:"text",start:e.start+p,end:e.end,content:e.content.slice(p)}),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})},5399(e,t,i){i.d(t,{A:()=>r});var n=i(98169);function r(e,t,i={}){if((e=e.replace(/\s+/gm," ").trim()).length<=t)return e;if(i.preserveWholeWords){const i=e.replace(new RegExp(`^(.{1,${t}})\\b.*`,"us"),"$1");return(0,n.A)(i," \t\r\n,.")+"…"}return(0,n.A)(e.substring(0,t)," \t\r\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:()=>h,zo:()=>g,Rp:()=>p,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 p=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 h(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})},6384(e,t,i){i.d(t,{A:()=>ye});var n=i(61829),r=i(35447),s=i(14901),o=i(83115),a=i(74702),l=i(41125),c=i(19363),d=i(37627),u=i(52739),g=i(85906),p=i(78801),m=i.n(p),h=i(55279),f=i(16346),x=i(45756),v=i(74954),A=i(63365),b=i(6863),y=i(92523),w=i(71526),j=i(70553),S=i(5399),k=i(54051),C=i(98379),L=i(45919),_=i(52752),N=i(8410),I=i(73909),P=i(23475),R=i(94083),T=i(62227),M=i(76585),E=i(4484),O=i(73383),q=i(16855),D=i(78721),F=i(14494),B=i(13449),V=i(12960),W=i(26084),G=i(58222),H=i(86490),z=i(24082),U=i(16940),Q=i(82526),$=i(14202);const Y=g.lazy(()=>i.e("shared_components_ShareResource_ShareResource_tsx-_e5560").then(()=>i(96664)));function QuestionActionsMoreItems(e){const{showModal:t}=(0,G.A)(),{showNotification:i}=(0,W.A)(),n=(0,H.A)(z.Ke),r=(0,x.A)(),s=(0,v.tz)(),o=(0,h.A)();return(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(M.A,{type:"submission_permission_role_only",permissionName:"canShare",resource:e.question,yes:()=>(0,$.jsx)(F.A,{onClick:()=>{t({title:"Share question",content:()=>(0,$.jsx)(Y,{url:o.generate("www.public.single_question",{questionId:e.question.id},h.i.ABSOLUTE_URL),twitterMessage:s.formatMessage({id:"public.question.actions.share.modal.twitter_message",defaultMessage:"Have a look at this question for {subject} on @Product_Review"},{subject:(0,Q.A)(e.question.subject)})}),bodyProps:{padding:4}}),e.close()},dropdownItem:!0})}),(0,$.jsx)(M.A,{permissionName:"canEdit",resource:e.question,yes:t=>(0,$.jsx)(q.A,{onClick:()=>{e.onClickEdit(t),e.close()},dropdownItem:!0})}),(0,$.jsx)(M.A,{permissionName:"canDelete",resource:e.question,yes:t=>(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(E.A.Divider,{}),(0,$.jsx)(P.A,{message:"Do you really want to delete this question?",onClick:()=>
1{r.dispatch((0,b.XH)({questionId:e.question.id,visibility:"private",actor:(0,A.$z)(t)})).then(()=>{if(e.onDelete)return e.onDelete()}).catch(()=>{i({message:"Failed to delete question. Please, try again later",level:V.S.ERROR})}),e.close()},children:t=>(0,$.jsx)(O.A,{...t,visibility:e.question.visibility,dropdownItem:!0,dropdownItemProps:{itemStyle:"danger"}})})]})}),!e.question.isAuthor&&(0,$.jsx)(B.A,{listing:e.listing,resourceId:e.question.id,resourceType:"question",onClose:e.close,children:t=>(0,$.jsx)(D.A,{onClick:()=>{t(),e.close()},dropdownItem:!0})}),(n.context.role===U.Xh.STAFF||n.context.role===U.Xh.COMPANY_REPRESENTATIVE)&&(0,$.jsx)(E.A.Item,{children:(0,$.jsxs)(R.A,{routeName:"www.public.single_question",params:{questionId:e.question.id},openNewTab:!0,children:[(0,$.jsx)(T.A,{name:"arrow-top-right-on-square",flexShrink:0})," Open in new tab"]})}),n.context.role===U.Xh.STAFF&&(0,$.jsx)(E.A.Item,{children:(0,$.jsx)(k.A,{routeName:"www.admin.consumer_platform_question_moderation",params:{questionId:e.question.id,catalogId:(0,I.A)(e.question.subject)},display:"flex",gap:2,children:e=>(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(T.A,{name:"arrow-top-right-on-square"}),e]})})})]})}function QuestionActions(e){const t={buttonStyle:"link",buttonSize:"small",noBorder:!0,nowrap:!0,padding:1,textStyle:"muted"};return(0,$.jsx)(C.A,{appContext:{namespace:"actions"},"data-layout":"submission-actions",alignItems:"center",flexShrink:0,gap:1,negativeMargin:1,children:e.isBeingModerated?(0,$.jsx)(k.A,{routeName:"www.admin.consumer_platform_question_moderation",params:{questionId:e.question.id,catalogId:(0,I.A)(e.question.subject)},element:L.A.Link,...t}):(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(N.A,{resource:e.question,resourceType:"question",listing:e.listing,buttonsProps:t}),(0,$.jsx)(_.A,{alwaysOpenModal:!0,iconName:"ellipsis-horizontal",iconOnly:!0,...t,children:t=>(0,$.jsx)(QuestionActionsMoreItems,{question:e.question,listing:e.listing,close:t,onClickEdit:e.onClickEdit,onDelete:e.onDelete})})]})})}var X=i(25419);const J=m().bind({"answers-expand":"pWtmfx"});function ExpandAnswers_ExpandAnswers(e){const t=(0,X.A)();return 0===e.numberOfAnswers?null:(0,$.jsx)(E.A.Toggle,{onClick:i=>{t.current?.emit("meaningfulUserAction"),e.onClick(i)},buttonSize:"small",buttonStyle:"link",alignSelf:"start",fontWeight:"semi-bold",noBorder:!0,padding:0,position:"relative",textDecorationHover:"none",textStyle:"muted-secondary",className:J("answers-expand"),children:(0,$.jsx)(r.A,{stretchedLink:!0,textDecorationHover:"underline",children:(0,$.jsx)(v.sA,{id:"expand_answers.label",defaultMessage:"{numberOfAnswers, plural, =1 {# answer} other {# answers}}",values:{numberOfAnswers:e.numberOfAnswers}})})})}var K=i(52603),Z=i(32600),ee=i(47806),te=i(76015),ie=i(49075);function ne(e,t,i){return{commandName:"Pr.Domain.ConsumerPlatform.Answer.Commands.SubmitNewAnswer",payload:{questionId:e,answerId:t,body:i}}}var re=i(37743),se=i(57623),oe=i(58646),ae=i(99856),le=i(11242),ce=i(2063),de=i(25808);const ue=(0,ce.O3)()({name:"answerForm",validateOnBlur:!1,schemaFactory:new ce.DF(()=>ae.Ik({body:(0,de.mw)()}))})(function AnswerFormForm(e){(0,v.tz)();return(0,ce.jE)(e.control,{expiresInDays:1}),(0,$.jsxs)(oe.A,{onSubmit:e.handleSubmit,display:"flex",flexDirection:"column",gap:2,children:[(0,$.jsx)(ce.D0,{name:"body",component:le.TM,componentProps:{autoFocus:e.autoFocus,minRows:3,placeholder:"Write your answer…",tracking:{triggerEvent:"onFocus"}},required:!0}),e.error&&(0,$.jsx)(se.A,{error:e.error}),(0,$.jsxs)(C.A,{gap:1,children:[!e.hideCancelButton&&(0,$.jsx)(L.A.Button,{onClick:e.onCancel,isLoading:e.submitting,flexBasis:100,flexGrow:1,tracking:{id:"cancel_button"},children:"Cancel"}),(0,$.jsx)(L.A.Submit,{isLoading:e.submitting,flexBasis:100,flexGrow:1,tracking:{id:"submit_button"},children:"Submit"})]})]})});function AnswerForm(e){const t=(0,ee.A)(),[i,n]=(0,g.useState)(Boolean(e.defaultFocused)),r=(0,H.A)(te.eP),s=(0,Z.A)(),o=(0,h.A)(),l=(0,g.useCallback)(async(i,a)=>{try{const l=t();return r?(await e.onSubmit({actor:a,questionId:e.question.id,answerId:l,body:i.body},a),n(!1),null):s({passwordlessAuthenticationSettings:{deferredCommand:(0,re.A)(ne(e.question.id,l,i.body),{listingBrandId:e.listing.brand?.id}),redirectTo:o.generate("www.public.single_question",{questionId:e.question.id})},deferredActionType:"submit_answer",deferredActionEnvelope:{action:e.getDeferredSubmitAnswerAction({questionId:e.question.id,answerId:l,body:i.body}),context:{anchor:`#question-${e.question.id}`}}}).catch(ie.O)}catch(e){if(e instanceof ie.A)return;throw e}},[]);return(0,$.jsx)(K.A,{candidates:e.candidates,label:e=>{return t={candidateLabel:e},(0,$.jsxs)($.Fragment,{children:["Answer as ",t.candidateLabel]});var t},children:({chosenActor:t,dropdown:r})=>t?i?(0,$.jsxs)(a.A,{appContext:{namespace:"answer_form"},gap:2,children:[(0,$.jsx)(d.A,{user:(0,A.b9)(t),size:"xsmall",hideLink:!0}
1),(0,$.jsxs)(a.A.Body,{children:[r,(0,$.jsx)(ue,{...e,name:`${e.question.id}_answerForm`,onCancel:()=>n(!1),onSubmit:e=>l(e,t),autoFocus:!0})]})]}):(0,$.jsx)(L.A.Button,{testId:"answer_form.show",onClick:()=>n(!0),buttonSize:"small",buttonStyle:"link",alignSelf:"start",fontWeight:"semi-bold",negativeMarginY:1,noBorder:!0,paddingY:0,textStyle:"body",children:"Reply"}):null})}var ge=i(23978),pe=i(99043),me=i(96610);const he=m().bind({answer:"n5v4jg","answer-heading":"eFz4Nm","answer-paragraph":"BA9Ypx"});function Answer_Answer(e){(0,v.tz)();const t=(0,x.A)(),i=(0,H.A)(z.Jj),[n,o]=(0,g.useState)(!1),[p,m]=(0,g.useState)(),[h,f]=(0,g.useState)(e.answer.body),[y,w]=(0,g.useState)(!1),{showNotification:S}=(0,W.A)(),L=(0,me.A)({permissionName:"canEdit",resource:{subject:e.question.subject,permissions:e.answer.permissions}}),R=(0,me.A)({permissionName:"canDelete",resource:{subject:e.question.subject,permissions:e.answer.permissions}});(0,g.useEffect)(()=>{f(e.answer.body),n&&o(!1)},[e.answer.body]);const M={buttonSize:"small",buttonStyle:"link",isDisabled:e.isBeingModerated,nowrap:!0,noBorder:!0,padding:1,textStyle:"muted"};return y?(0,$.jsx)(r.A,{id:`answer-${e.answer.id}`,testId:`answer-${e.answer.id}`,element:"div",backgroundColor:"danger-light",borderRadius:!0,fontSize:"small",fontWeight:"bold",paddingX:3,paddingY:2,textStyle:"danger-dark",style:{marginLeft:"calc(var(--pr-answer-avatar-size) + 0.5rem)"},children:"Answer deleted"}):(0,$.jsxs)(g.Fragment,{children:["\n",(0,$.jsxs)(a.A,{id:`answer-${e.answer.id}`,testId:"wrapper",gap:2,className:he("answer","outline-target","submission"),...e.containerProps,children:[(0,$.jsx)(d.A,{user:e.answer.author,size:"xsmall"}),(0,$.jsxs)(a.A.Body,{backgroundColor:e.isHighlighted?"warning-light":void 0,position:"relative",children:[(0,$.jsxs)(l.A,{level:5,fake:!0,alignItems:"start",display:"flex",elevation:1,fontWeight:"medium",gap:2,position:"relative",textStyle:"body",className:he("answer-heading"),children:[(0,$.jsxs)(c.h,{alignSelf:"center",flexGrow:1,children:[(0,$.jsx)(u.A,{author:e.answer.author}),e.answer.author.context.role===U.Xh.COMPANY_REPRESENTATIVE&&(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(g.Fragment,{children:" "}),(0,$.jsx)(T.A,{name:"check-badge",height:18,width:14,textStyle:"info"})]}),e.answer.author.context.role===U.Xh.COMPANY_REPRESENTATIVE&&[U.Xh.CONSUMER,U.Xh.GUEST].includes(i.context.role)&&(0,$.jsx)(pe.A,{author:e.answer.author,children:e=>(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(g.Fragment,{children:"  "}),(0,$.jsxs)(r.A,{onClick:e,cursor:"pointer",fontWeight:"normal",nowrap:!0,position:"relative",textStyle:"muted",title:"Send a private message",tracking:{id:"send_a_private_message"},children:[(0,$.jsx)(r.A,{stretchedLink:!0,textDecorationHover:"underline",children:"DM"}),(0,$.jsx)(g.Fragment,{children:" "}),(0,$.jsx)(T.A,{name:"envelope",height:18,width:16})]})]})}),(0,$.jsx)(g.Fragment,{children:"  "}),(0,$.jsx)(ge.A,{cursor:"help",fontSize:"xsmall",lineHeight:"smallest",nowrap:!0,textStyle:"muted",children:(0,$.jsx)(v.uZ,{value:e.answer.firstPublishedAt,options:{format:"shortest"}})})]}),!n&&(0,$.jsxs)(C.A,{appContext:{namespace:"actions"},"data-layout":"submission-actions",alignItems:"center",flexShrink:0,gap:1,negativeMargin:1,children:[(0,$.jsx)(N.A,{resource:e.answer,resourceType:"answer",listing:e.listing,buttonsProps:M}),(0,$.jsx)(_.A,{alwaysOpenModal:!0,iconName:"ellipsis-horizontal",iconOnly:!0,...M,children:n=>(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(B.A,{listing:e.listing,resourceId:e.answer.id,resourceType:"answer",onClose:n,children:e=>(0,$.jsx)(D.A,{onClick:()=>{e(),n()},dropdownItem:!0})}),L.hasPermission&&(0,$.jsx)(q.A,{onClick:()=>{o(!0),m(L.candidate)},dropdownItem:!0}),R.hasPermission&&(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(E.A.Divider,{}),(0,$.jsx)(P.A,{message:"Do you really want to delete this answer?",onClick:()=>t.dispatch((0,b.B1)({answerId:e.answer.id,visibility:"private",actor:(0,A.$z)(R.candidate)})).then(()=>{w(!0)}).catch(()=>{w(!1),S({message:"Failed to delete answer. Please, try again later.",level:V.S.ERROR})}),onCancel:n,children:t=>(0,$.jsx)(O.A,{...t,visibility:e.answer.visibility,dropdownItem:!0,dropdownItemProps:{itemStyle:"danger"}})})]}),(i.context.role===U.Xh.STAFF||e.isBeingModerated)&&(0,$.jsx)(E.A.Item,{children:(0,$.jsx)(k.A,{routeName:"www.admin.consumer_platform_answer_moderation",params:{answerId:e.answer.id,catalogId:(0,I.A)(e.question.subject)},display:"flex",gap:2,children:e=>(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(T.A,{name:"arrow-top-right-on-square",flexShrink:0}),e]})})})]})})]})]}),n?(0,$.jsx)(ue,{name:e.answer.id,initialValues:{body:h},onCancel:()=>{o(!1),m(void 0)},onSubmit:({body:i})=>t.dispatch((0,b.Dc)({answerId:e.answer.id,questionId:e.question.id,body:i,actor:p?(0,A.$z)(p):void 0})).then(()=>{f(i),o(!1),m(void 0)}).catch(()=>{f(h),o(!1),m(void 0)}),autoFocus:!0}):(()=>{const t=(0,j.linkify)([{type:"text",content:h,start:0,end:h.length}]),i=(e,t,i)=>(0,$.jsx)(s.A,{...e.attributes,breakWord:!0,fontSize:"small",className:he("answer-paragraph"),children:t},i.key);if(h.length>250){const{excerpt:n,rest:r}=(0,j.sliceExcerpt)(t,200),s=(0,j.groupParagraphs)((0,j.inlineTokens)(n)),o=(0,j.groupParagraphs)(r);return(0,$.jsx)(j.CollapsibleTokenRenderer,{excerptParagraphs:s,restParagraphs:o,defaultExpanded:e.defaultExpanded,onExpand:e.onExpand,renderParagraph:i})}return(0,$.jsx)(j.TokenRenderer,{paragraphs:(0,j.groupParagraphs)(t),renderParagraph:i})})()]})]})]})}var fe=i(66201),xe=i(29239);function AnswerCollectionStateManager(e){const t=(0,x.A)(),[i,n]=(0,g.useState)(e.initialCollection);(0,g.useEffect)(()=>{n(e.initialCollection)},[e.initialCollection]);const r=(0,g.useCallback)((i,r)=>{const s={...i,actor:(0,A.$z)(r)},o=(new Date).toISOString();return t.dispatch((0,b.Jx)(s)).then(()=>{const t={author:(0,A.b9)(r),body:i.body,firstPublishedAt:o,id:i.answerId,questionId:i.questionId,isAuthor:!0,isLiked:!1,isDisliked:!1,numberOfLikes:0,permissions:(0,xe.A)(r,{canDelete:!0,canEdit:!0}),submittedAt:o,visibility:U.J4.PUBLIC,approvalStatus:r.isCompanyRepresentative||r.isCatalogManager?U.Gw.APPROVED:U.Gw.PENDING};n(e=>e.concat(t)),e.onSubmit&&e.onSubmit(s)})},[]),s=(0,g.useCallback)(e=>(0,b.Jx)(e),[]);return e.children({collection:i,handleSubmitAnswer:r,getDeferredSubmitAnswerAction:s})}function QuestionAnswersSection(e){const t=(0,H.A)(z.Ke),[i,n]=(0,g.useState)(void 0);return(0,$.jsx)(AnswerCollectionStateManager,{initialCollection:e.question.answers,children:r=>{const s=r.collection.some(e=>e.author.id===t.id),o="number"==typeof i||e.defaultExpanded||e.question.isAuthor||s?1/0:3;return(0,$.jsxs)(c.h,{testId:"answers",display:"flex",flexDirection:"column",gap:3,children:[(0,$.jsx)(fe.A,{items:r.collection,renderItem:(t,r)=>(0,$.jsx)(Answer_Answer,{answer:t,question:e.question,listing:e.listing,onExpand:()=>n(r),defaultExpanded:e.defaultExpanded||"number"==typeof i&&r>=i,isBeingModerated:e.isBeingModerated,isHighlighted:e.highlightedAnswerId===t.id,containerProps:{appContext:{namespace:`answer-${t.id}`}}},t.id),renderToggleButton:({onClick:e,numberOfItemsLeft:t})=>(0,$.jsx)(ExpandAnswers_ExpandAnswers,{onClick:e,numberOfAnswers:t}),onExpand:()=>n(o),defaultNumberOfItemsVisible:o,hideToggleButtonWhenExpanded:!0,resetWhenItemsChange:!1,children:e=>e}),(0,$.jsx)(AnswerForm,{candidates:e.candidates,name:e.question.id,listing:e.listing,question:e.question,onSubmit:r.handleSubmitAnswer,getDeferredSubmitAnswerAction:r.getDeferredSubmitAnswerAction})]})}},e.question.id)}const ve=(0,g.memo)(QuestionAnswersSection),Ae=(0,ce.O3)()({name:"questionForm",schemaFactory:new ce.DF(()=>ae.Ik({body:(0,de.mw)()}))})(function QuestionBodyForm(e){(0,v.tz)();return(0,$.jsxs)(oe.A,{onSubmit:e.handleSubmit,children:[(0,$.jsx)(ce.D0,{name:"body",component:le.TM,componentProps:{autoFocus:!0,minRows:3,placeholder:"Write your question…"},marginBottom:2}),(0,$.jsxs)(C.A,{gap:1,children:[(0,$.jsx)(L.A.Button,{onClick:e.onCancel,isLoading:e.submitting,flexBasis:100,flexGrow:1,tracking:{id:"cancel_button"},children:"Cancel"}),(0,$.jsx)(L.A.Submit,{isDisabled:e.pristine,isLoading:e.submitting,flexBasis:100,flexGrow:1,tracking:{id:"submit_button"},children:"Submit"})]})]})}),be=m().bind({question:"T6zH52","no-indentation-on-mobile":"FmUQmN","question-author":"IheO8X","question_body-paragraphs":"x0KucD"});function Question_Question(e){const{defaultExpanded:t,highlightedAnswerId:i,isBeingModerated:p,listing:m,onDelete:k,question:C,...L}=e,_=(0,x.A)(),N=(0,h.A)(),[I,P]=(0,g.useState)(C.body),[R,T]=(0,g.useState)(!1),[M,E]=(0,g.useState)(!1),[O,q]=(0,g.useState)(),D=(0,g.useMemo)(()=>
1({type:"submission_permission",permissionName:"canAnswer",submission:C,supportsOptimisticAction:!0}),[C]),{candidates:F}=(0,f.A)(D);if((0,g.useEffect)(()=>{P(C.body),M&&E(!1)},[C.body]),(0,g.useEffect)(()=>()=>{E(!1)},[C.body]),R)return(0,$.jsx)(s.A,{italic:!0,padding:4,textStyle:"danger",children:(B={excerpt:`"${(0,S.A)(I,30)}"`},(0,$.jsxs)($.Fragment,{children:["The question ",B.excerpt," has been deleted."]}))});var B;const V=(0,n.A)(C.answers)?.id;return(0,$.jsxs)(g.Fragment,{children:["\n",(0,$.jsxs)(a.A,{id:`question-${C.id}`,testId:"wrapper",...L,gap:2,position:"relative",className:be("question","outline-target","submission",L.className),children:[(0,$.jsx)(d.A,{user:C.author,size:"small"}),(0,$.jsxs)(a.A.Body,{display:"flex",flexDirection:"column",position:"relative",children:[(0,$.jsxs)(l.A,{level:5,fake:!0,alignItems:"start",display:"flex",fontWeight:"medium",marginBottom:1,textStyle:"body",className:be("question-author"),children:[(0,$.jsxs)(c.h,{alignItems:"baseline",display:"flex",flexDirection:{xs:"column",md:"row"},flexGrow:1,gap:{xs:0,md:2},children:[(0,$.jsx)(u.A,{author:C.author,openNewTab:!0}),(0,$.jsxs)(r.A,{fontSize:"xsmall",fontWeight:"normal",textStyle:"muted",children:[(0,$.jsx)(v.uZ,{value:C.firstPublishedAt||C.submittedAt,options:{format:"shortest"},cursor:"help"}),e.question.subject.entry?e.listing.isLeaf&&e.listing.isRoot?null:(0,$.jsxs)(g.Fragment,{children:[(0,$.jsx)(o.A,{}),(0,$.jsx)(r.A,{role:"link",onClick:(0,y.A)(N.generate("www.public.listing_questions",{listingSlug:e.question.subject.entry.slug},h.i.ABSOLUTE_URL)),cursor:"pointer",textDecorationHover:"underline",textStyle:"muted",tracking:{id:"subject_badge"},children:(0,w.A)({listing:e.question.subject.entry,currentListing:e.listing,nameKey:"name"})})]}):null]})]}),!p&&(0,$.jsx)(QuestionActions,{question:C,listing:m,candidates:F,lastAnswerId:V,isBeingModerated:p,onClickEdit:e=>{E(!0),q(e)},onDelete:()=>{k?k():T(!0)}})]}),(0,$.jsxs)(c.h,{display:"flex",flexDirection:"column",gap:3,className:be("no-indentation-on-mobile"),children:[M?(0,$.jsx)(Ae,{name:e.question.id,initialValues:{body:I},onCancel:()=>{E(!1),q(void 0)},onSubmit:({body:e})=>_.dispatch((0,b.Nw)({questionId:C.id,body:e,actor:O?(0,A.$z)(O):void 0})).then(()=>{P(e),E(!1),q(void 0)}).catch(()=>{P(I),E(!1),q(void 0)})}):(()=>{const e=(0,j.linkify)([{type:"text",content:I,start:0,end:I.length}]);return(0,$.jsx)(c.h,{fontSize:"small",className:be("question_body-paragraphs"),children:(0,$.jsx)(j.TokenRenderer,{paragraphs:(0,j.groupParagraphs)(e),renderParagraph:(e,t,{key:i})=>(0,$.jsx)(s.A,{...e.attributes,breakWord:!0,children:t},i)})})})(),(0,$.jsx)(ve,{question:C,listing:m,candidates:F,lastAnswerId:V,defaultExpanded:e.defaultExpanded,highlightedAnswerId:i,isBeingModerated:p})]})]})]})]})}const ye=(0,g.memo)(Question_Question)},42766(e,t,i){i.d(t,{A:()=>InContentAdvertisement_InContentAdvertisement});var n=i(19363),r=i(85906),s=i(78801),o=i.n(s),a=i(48416),l=i(17597),c=i(44989),d=i(86490),u=i(76015);var g=i(14202);const p=o().bind({"in-content-ad-sticky-container":"ZKENz5","in-content-ad":"t4CBNl"});function InContentAdvertisement_InContentAdvertisement(e){const{className:t,...i}=e,s=(0,r.useRef)(null),[o,m]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!e.pageAdContext?.ensureInContentAdsAreNotSticky);(0,r.useEffect)(()=>{f(!e.pageAdContext?.ensureInContentAdsAreNotSticky)},[e.pageAdContext?.ensureInContentAdsAreNotSticky]);const x=(0,r.useContext)(c.A),v=(0,d.A)(u.eP);if(x===c.B.OFF||v)return null;const A={...i.containerProps,"data-sticky":h&&!o?"desktop":void 0,"data-prevent-overlap":!0,alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",overflow:"hidden",className:p("in-content-ad",i.containerProps?.className),style:{...i.containerProps?.style,position:h?"sticky":void 0}};return e.pageAdContext?.ensureInContentAdsAreNotSticky?(0,g.jsx)(l.A,{...i,containerProps:{...A,className:p(A.className,t)}}):(0,g.jsx)(n.h,{className:p({"in-content-ad-sticky-container":h},t),"data-sticky-ad-container":!0,"data-hide-in-iframe":!0,style:{visibility:o?"hidden":void 0},children:(0,g.jsx)(n.h,{ref:s,"data-sticky-ad-height-wrapper":!0,children:(0,g.jsx)(l.A,{...i,onLoad:e=>{m("empty"===e.status),e.type!==a.e.NATIVE&&e.type!==a.e.NATIVE_VIA_DFP||(f(!1),s.current&&(s.current.style.height=""))},containerProps:A})})})}},38494(e,t,i){function n(e){if(e.tags.includes("use_as_canonical"))return e;if(e.parentListings&&e.parentListings.length>0){for(let t=e.parentListings.length-1;t>=0;t--){const i=e.parentListings[t];if(i.tags.includes("use_as_canonical"))return i}return e.parentListings[0]}return e}i.d(t,{A:()=>n})},94539(e,t,i){var n=i(85906),r=i(46677);const s=function(e){const{overriddenPrimarySponsoredListing:t}=(0,n.useContext)(r.d);return(0,n.useMemo)(()=>
1{if(e)return t?{...e,primarySponsoredListing:t}:e},[e?.id,t?.id])};i.d(t,["A",0,s])},78598(e,t,i){i.d(t,{M3:()=>T,ZM:()=>W,VW:()=>F,AB:()=>O,KN:()=>q,X6:()=>B,xL:()=>V,Hb:()=>H,B:()=>z});var n=i(78026),r=i(61829),s=i(31362),o=i(55691),a=i(48361),l=i(34496),c=i(90910),d=i(44989),u=i(50083),g=i(47673),p=i(28402),m=(i(74954),i(20378)),h=i(49853),f=i(28867),x=i(84825),v=i(60533),A=i(82176),b=i(16691),y=i(57814),w=i(69903),j=i(51753),S=i(729),k=i(83570),C=i(1465),L=i(94683),_=i(33963),N=i(54380),I=i(11641),P=i(30983);class R{hostname;pathname;protocol;hash;port;query;constructor(e){if("hostname"in e)this.hostname=e.hostname,this.protocol=e.protocol||"https",this.port=e.port;else{const[t,i]=e.origin.split("://"),[n,r]=i.split(":");this.hostname=n,this.protocol=t,r&&(this.port=Number(r))}this.pathname=e.pathname||"/",this.query=e.query||{},this.hash=e.hash||""}toString(){let e=`${this.protocol}://${this.hostname}`;return this.port&&(e+=`:${this.port}`),e+=this.pathname,this.query&&Object.keys(this.query).length>0&&(e+=`?${(0,I.A)(this.query)}`),`${e}${this.hash}`}toPath(){let e=this.pathname;return this.query&&Object.keys(this.query).length>0&&(e+=`?${(0,I.A)(this.query)}`),e}static fromHref(e){const t=(0,P.A)(e);if(t)return new R({hostname:t.hostname,pathname:t.pathname,protocol:t.protocol.slice(0,-1),port:t.port?Number(t.port):void 0,query:t.query,hash:t.hash});throw new Error(`Url.fromHref: invalid href "${e}"`)}}const T={page:1,limit:35,sortBy:"overview"},M={Q:"quote_request",A:"advertisement",S:"similar_listings",C:"category_link"};function E(e){return R.fromHref(e).hostname.replace(/^www\./,"")}function O(e,t){return!!t.length&&(!!e.entrySpecifications&&t.some(t=>!!t.specificationValues&&Object.keys(t.specificationValues).some(i=>(0,j.Ay)(t.specificationValues?.[i])&&!e.invisibleEntryItemViewSpecifications.includes(i))))}function q(e){return!!e.length&&(!e.some(e=>!(0,s.A)(e.specificationValues))&&e.some(e=>!(0,s.A)(e.legacySpecificationValues)))}function D(e){const t=[];return(new A.A).visitFields(e,e=>{e.itemViewWidget||t.push(e.id)}),t}function F(e){return{entrySpecifications:e.entrySpecifications,reviewSpecifications:e.reviewSpecifications,invisibleEntryItemViewSpecifications:e.entrySpecifications?D(e.entrySpecifications):[]}}function B(e){const t={...e};return(0,N.A)(e.page)&&(t.page=parseInt(e.page,10)),(0,N.A)(e.limit)&&(t.limit=parseInt(e.limit,10)),(0,N.A)(e.rating)&&(t.rating=e.rating.split(",").map(Number)),(0,N.A)(e.hasAttachments)&&(t.hasAttachments="true"===e.hasAttachments),(0,N.A)(e.hasFollowUps)&&(t.hasFollowUps="true"===e.hasFollowUps),(0,N.A)(e.isVerified)&&(t.isVerified="true"===e.isVerified),(0,N.A)(e.spontaneousReviews)&&(t.spontaneousReviews="true"===e.spontaneousReviews),(0,N.A)(e.sortBy)&&e.sortBy in m.h?t.sortBy=e.sortBy:t.aspectId||t.rating||t.hasAttachments||t.hasFollowUps||t.isVerified||t.spontaneousReviews||Object.keys(t).some(p.A)?t.sortBy="newest":t.sortBy="overview",t}function V(e){if(!e.categories)return;if(!e.categories.length)return;const t=e.categories.filter(e=>!e.tags?.includes("too_specific_for_seo"));return t.length>0?(0,r.A)(t):(0,r.A)(e.categories)}function W(e,t,i,n){if(!i?.reviewSpecifications||!n)return[];const r=[];if(n.hasAttachments&&n.hasAttachments.countsMap.true>0&&r.push({field:{id:"hasAttachments",type:"boolean",label:"Has pictures/videos",valueFormWidget:{widget:"PrBooleanButtonsFormWidget"},filterWidget:{widget:"PrBooleanCheckboxFilterWidget"},visibilitySettings:{groups:["guest"]},metadata:{createdAt:"2024-01-01T00:00:00.000Z",lastEditedAt:"2024-01-01T00:00:00.000Z"}},value:t.hasAttachments,aggregation:n.hasAttachments}),n.hasFollowUps&&n.hasFollowUps.countsMap.true>0&&r.push({field:{id:"hasFollowUps",type:"boolean",label:"Has follow-ups",valueFormWidget:{widget:"PrBooleanButtonsFormWidget"},filterWidget:{widget:"PrBooleanCheckboxFilterWidget"},visibilitySettings:{groups:["guest"]},metadata:{createdAt:"2024-01-01T00:00:00.000Z",lastEditedAt:"2024-01-01T00:00:00.000Z"}},value:t.hasFollowUps,aggregation:n.hasFollowUps}),r.push({field:{id:"rating",type:"number",label:"Rating",filterWidget:{widget:"PrRatingsFilterWidget"},valueFormWidget:{widget:"PrStarRatingFormWidget"},visibilitySettings:{groups:["guest"]},metadata:{createdAt:"2024-01-01T00:00:00.000Z",lastEditedAt:"2024-01-01T00:00:00.000Z"},properties:{ratingType:"stars"}},value:t.rating,aggregation:n.ratings}),(new A.A).visitFields(i.reviewSpecifications,e=>{(0,v.A)(e)&&(0,j.Ay)(n[e.id],"aggregated")&&r.push({field:e,value:t[e.id],aggregation:n[e.id]})}),n.isVerified&&n.isVerified.countsMap.true>0&&r.push({field:{id:"isVerified",type:"boolean",label:"Is Verified",valueFormWidget:{widget:"PrBooleanButtonsFormWidget"},filterWidget:{widget:"PrBooleanCheckboxFilterWidget"},visibilitySettings:{groups:["guest"]},metadata:{createdAt:"2024-01-01T00:00:00.000Z",lastEditedAt:"2024-01-01T00:00:00.000Z"}},value:t.isVerified,aggregation:n.isVerified}),n.spontaneousReviews){const e=(0,b.A)(n.spontaneousReviews.counts);return e.true>0&&e.false>0&&r.push({field:{id:"spontaneousReviews",type:"boolean",label:"Spontaneous Reviews",description:"Display unprompted/non-incentivised reviews submitted on ProductReview.com.au.",valueFormWidget:{widget:"PrBooleanButtonsFormWidget"},filterWidget:{widget:"PrBooleanCheckboxFilterWidget"},visibilitySettings:{groups:["guest"]},metadata:{createdAt:"2024-01-01T00:00:00.000Z",lastEditedAt:"2024-01-01T00:00:00.000Z"}},value:t.spontaneousReviews,aggregation:(()=>{const e={type:c.D.BOOLEAN,sumOfCounts:0,countsMap:{true:0,false:0}};for(const t of n.spontaneousReviews.counts)e.sumOfCounts+=t.count,"true"===t.key?e.countsMap.true=t.count:e.countsMap.false=t.count;return e})()}),r}return(0,l.di)(r).desc(e=>e.field.tags?.includes("incentivised_review")?-1:0)}const G=(e,t)=>{const i=e.filter(e=>e.type===t).map(e=>e.value);return i.length?i:void 0};function H({listing:e,distractionLevel:t,pageStatus:i,actor:n},s){const o=(0,r.A)(e?.categories),a=e?V(e):void 0,l=e?e.statistics.numberOfReviews<=1:void 0,c=!!e&&e.statistics.numberOfReviews>T.limit;return{isLoading:i===h.nW.LOADING,listing:e,rootListing:(()=>
1{if(!e)return;if(!e.parentListings)return;const t=e.parentListings.find(t=>t.id===e.rootId);return t||void 0})(),listingHasFewReviews:l,disableLayoutAds:l,listingHasMoreThanOnePageOfReviews:c,hasOffers:e&&e.offers?.length>0,offersSection:(()=>{if(e&&!c&&e.offers?.length)return{offers:e.offers}})(),pageAdContext:{type:"listing_page",areAdsDisabled:e?.categories?.some(e=>e.tags.includes("deactivate_ads")),currentListing:e,sponsoredListing:e?.primarySponsoredListing,noRefreshForDfpAds:o?.tags?.includes("no_refresh_for_dfp_ads"),ensureInContentAdsAreNotSticky:Boolean(e?.primarySponsoredListing)},quoteRequestCollectionStrategy:e?(0,g.A)(e):void 0,hasSponsoredListing:Boolean(e?.primarySponsoredListing),similarListingsSection:(()=>{if(e&&e.similarListings.length&&a&&t>=d.B.LOW)return{category:a,listing:e}})(),liveChatSection:(()=>{if(e?.brand?.liveChatSettings)return{brand:e.brand,settings:e.brand.liveChatSettings}})(),monitoredByBrandSection:(()=>{if(e?.brand?.isManaged&&e?.isManageableByBrandManagers)return{brand:e.brand}})(),manageListingCta:(()=>{if(e&&!e.brand?.isManaged)return{listing:e}})(),externalLink:(()=>{if(!e)return;const t=!e.isDiscontinued&&e.brand?.permissions?.linkToWebsite;return e.affiliateLink?e.officialLink&&t?{url:e.brand?.tags?.includes("subtitle_use_official_link")?e.officialLink:e.affiliateLink,label:E(e.officialLink)}:{url:e.affiliateLink,label:e.officialLink?E(e.officialLink):"Go to website"}:e.officialLink&&t?{url:e.officialLink,label:E(e.officialLink)}:void 0})(),marketAvailabilityStartDateYear:(()=>{if(e&&(0,S.A)(e)&&!1===e.marketAvailability.isStartDateUnknown&&e.marketAvailability.startDate&&!1===e.marketAvailability.isEndDateUnknown&&!e.marketAvailability.endDate)return(0,k.A)(e.marketAvailability.startDate)})(),medias:(()=>{if(!e)return;const t=[];return e.pictures&&e.pictures.length>0&&e.pictures.forEach(e=>t.push({id:e,type:"image"})),e.videos&&e.videos.length>0&&e.videos.forEach(e=>"youtube"!==e.type?null:t.push({id:(0,C.X)(e.url),type:"video"})),t})(),abns:(()=>{if(e?.isLeaf)return G(e.universalIds,"ABN")})(),mpns:(()=>
1{if(e?.isLeaf)return G(e.universalIds,"MPN")})(),hasTreeOfListings:!!e&&(e.mostPopularSubListings.length>0||!!(e.parentListings&&e.parentListings.length>0)),awards:(()=>{if(!e)return;const t=(0,L.A)(s,e.tags);return t.length&&t.some(e=>e.year>=(new Date).getFullYear()-1)?t:void 0})(),headerAward:(()=>{if(e)return(0,_.A)((0,L.A)(s,e.tags))})(),verifiedCompany:!!e&&"internal"===e.type&&!!e.brand?.isManaged&&!!e.isManageableByBrandManagers,disableSidebarAds:!n.isGuest}}function z(e,t){const{intl:i,pageStatus:r,actor:s,distractionLevel:l,listing:g,specifications:p,myReviewsPaginatedCollection:v,reviewsQuery:b,originalPageFromUrl:S,originalPaging:k,aggregatedData:C,isOverviewSortingEnabled:L,collections:_,eagerPromotionTypesPattern:N}=e,I=_.reduce((e,t)=>e+t.paginatedCollection.collection.length,0),P=V(g),R=H(e,t),T=Object.keys((0,n.A)((0,a.A)(b),["limit","page","sortBy"])).length>0,E=W(0,b,p,C.filterAggregations),O=function(e,t){if(e)return t?.aspects.find(t=>t.ids.includes(e))}(b.aspectId,C.aspectsSummary),q=Boolean(b.aspectId),D=E.filter(e=>void 0!==e.value&&null!==e.value||e.aggregation.type!==c.D.RATINGS&&("rating"!==e.field.id&&("isVerified"!==e.field.id&&("spontaneousReviews"!==e.field.id&&(!e.field.tags?.includes("incentivised_review")&&e))))),F=_.map(e=>{let t=0;return{...e,paginatedCollection:{...e.paginatedCollection,collection:e.paginatedCollection.collection.map((i,n)=>{if(e.id!==f.QR.MAIN)return i;let r;return void 0!==i.originalIndexAcrossCollections?0===n&&(r=k.currentPage):((k.currentItemCount+t)%k.itemCountPerPage===0&&(r=Math.floor((k.currentItemCount+t)/k.itemCountPerPage)+k.currentPage),t+=1),r&&e.firstPageWasSkipped&&(r+=1),{...i,pageMarker:r}})},showLoadMoreButton:!(I>=k.totalItemCount)&&!!R.listingHasMoreThanOnePageOfReviews&&!(I>=400)&&!(S>=10)&&e.id!==f.QR.BEST&&e.id!==f.QR.LATEST&&e.id!==f.QR.PINNED&&e.hasMoreItems,showTitle:e.id!==f.QR.BEST&&e.id!==f.QR.LATEST&&e.id!==f.QR.PINNED&&e.id!==f.QR.SHORTS&&_.length>1}});return{...R,categoryForSEO:P,listing:g,specifications:p,awards:void 0,detailsSection:(()=>{const e=g.description?{body:g.description}:void 0,t=g.localBusinessDetails?{listing:g,details:g.localBusinessDetails}:void 0,i=g.isDiscontinued?void 0:g.affiliateLink??g.officialLink,n=g.universalIds&&g.universalIds.length>0?(0,o.A)(g.universalIds,e=>e.type):void 0;return{listing:g,specifications:p,category:P,description:e,localBusinessDetailsSection:t,resolvedOfficialLink:i,universalIdsGroupedByType:n}})(),reviewsSection:(()=>{if(g.hideContentDueToLegalRequest)return;const e=_.find(e=>e.id===f.QR.MAIN);return{reviewsOnPage:I,listing:g,specifications:p,collections:F,mainCollectionSortBy:e?(0,m.f)(e.paginatedCollection.sorting.sort,e.paginatedCollection.sorting.order):void 0,pageAdContext:R.pageAdContext,hasSponsoredListing:R.hasSponsoredListing,isLoading:r===h.nW.LOADING,filtersSection:{activeAspect:O,numberOfUsedFilters:E.filter(e=>(0,j.Ay)(e.value)).length+(q?1:0),isOverviewSortingEnabled:L,initialValues:"overview"!==b.sortBy||L?b:{...b,sortBy:"newest"},pillFilters:D.length>1||"hasAttachments"===D[0]?.field.id||D.some(e=>(0,j.Ay)(e.value))?D:void 0,showOtherFilters:g.statistics.numberOfReviews>1,showListingFilter:T||g.statistics.numberOfReviews>1||g.statistics.numberOfLeaves>1||!g.isRoot?g.statistics.numberOfLeaves>1||!g.isRoot:void 0},areReviewsFiltered:T,aggregatedData:C,originalPageFromUrl:S,totalNumberOfPages:e?.firstPageWasSkipped?k.totalPageCount+1:k.totalPageCount,originalPaging:k,hasActiveSpecificationFilter:(()=>{if(q)return!0;const e=E.map(e=>e.field.id);return Object.keys(b).some(t=>e.includes(t))})(),reviewsSummary:(()=>{if(g.reviewsSummary&&!T)return{summary:g.reviewsSummary,updatedAt:g.reviewsSummaryUpdatedAt}})()}})(),initialPromotionsState:(()=>{const e={spotToPromotionMap:{},collectionToEagerSpots:Object.values(f.QR).reduce((e,t)=>(e[t]=[],e),{})};if(l<d.B.LOW)return e;let t=0;for(const i of F){if(i.id===f.QR.SHORTS){const n=N[t++];if(!n||" "===n)continue;e.collectionToEagerSpots[i.id].push({spot:`before_${i.id}`,type:M[n]});continue}for(const[n,r]of i.paginatedCollection.collection.entries()){if(void 0===r.originalIndexAcrossCollections)continue;const s=N[t++];s&&" "!==s&&e.collectionToEagerSpots[i.id].push({spot:0===n?`before_${i.id}`:`review_before_${r.id}`,type:M[s]})}}return e})(),expertReviewSection:(()=>
1{if(!g.hideContentDueToLegalRequest&&!(S>1)&&g.expertReview)return{expertReview:g.expertReview}})(),buyingGuideSection:(()=>{if(!g.categories)return;if(S>1)return;let e=g.categories.length;for(;e--;){const t=g.categories[e];if(t.buyingGuideArticle)return{categorySlug:t.slug,article:t.buyingGuideArticle}}})(),showcaseSection:(()=>{if(!g.hideContentDueToLegalRequest&&!(S>1)&&g.showcaseMediaCollection&&0!==g.showcaseMediaCollection.length)return{listing:g,showcaseImageCollection:g.showcaseMediaCollection.filter(e=>"image"===e.type)}})(),inDepthReviewSection:(()=>{if(!g.hideContentDueToLegalRequest&&!(S>1)&&g.closestListingInDepthReview)return{articleId:g.closestListingInDepthReview.articleId,listing:{id:g.closestListingInDepthReview.listing.id,slug:g.closestListingInDepthReview.listing.slug,fullName:g.closestListingInDepthReview.listing.fullName}}})(),myReviewsSection:(()=>{if(s.isConsumer&&!(S>1)&&v&&v.collection.length)return{listing:g,reviews:v.collection}})(),editorMessagesSection:(()=>{if(!(S>1)&&g.editorMessages&&g.editorMessages.length)return{messages:g.editorMessages}})(),highlightedReviewAttachmentsSection:(()=>{if(!C.reviewIdsWithHighlightedAttachments?.length)return;if(g.hideContentDueToLegalRequest)return;if(R.listingHasFewReviews)return;if(g.tags?.includes("no_highlighted_attachments"))return;if(g.categories?.some(e=>e.tags.includes("no_highlighted_attachments")))return;const e=(0,u.A)(C.reviewIdsWithHighlightedAttachments,8);return e.length<4?void 0:{highlightedAttachments:e}})(),reviewAggregationsSection:(()=>{if(g.hideContentDueToLegalRequest)return;if(R.listingHasFewReviews)return;if("v2"!==C.searchEngineVersion)return;if(!C.readOnlyAggregations&&!p?.reviewSpecifications?.fields?.length)return;const{readOnlyAggregations:e}=C,t=[];return e&&p?.reviewSpecifications?.fields?.length&&(new A.A).visitFields(p.reviewSpecifications,i=>
1{if(!(0,x.A)(i))return;const n=e[i.id];(0,j.Ay)(n,"aggregated")&&(0,y.A)(i.aggregationItemViewWidget?.widget,n)&&t.push({field:i,aggregation:n,filter:E.find(e=>e.field.id===i.id)})}),{highlightedAggregations:t.length>0?t:void 0}})(),showAverageRatingUnderTitle:!g.hideContentDueToLegalRequest&&0!==g.statistics.numberOfReviews&&0!==g.statistics.rating,monitoredByBrandSection:void 0,disableTopContentAd:!1,disableBottomContentAd:!0,disableTopContentNonNativeAd:!0,homeBuildersHomeDesignButtonUrl:(()=>{if(g?.categories?.some(e=>"home-builders"===e.hook)&&p?.entrySpecifications)return(0,w.A)(p.entrySpecifications,g.specificationValues,"home_builder_home_design_url")})(),showPremiumAdvertisement:!(R.listingHasFewReviews||g.tags.includes("try_fetching_native_ads_through_dfp")||g.brand?.tags.includes("try_fetching_native_ads_through_dfp")||g.categories?.some(e=>e.tags.includes("try_fetching_native_ads_through_dfp"))||R.hasSponsoredListing||S>1),reviewFilters:E}}},77981(e,t,i){i.r(t),i.d(t,{default:()=>Ne});var n=i(61209),r=i(16766),s=i(6384),o=i(99856),a=i(36171),l=i(45919),c=i(23481),d=i(11242),u=i(58646),g=i(57623),p=i(81085),m=i(85906),h=i(4484),f=i(51443),x=i(19107),v=i(35447),A=i(55279),b=i(71526),y=i(14202);const w=(0,m.lazy)(()=>i.e("shared_components_SelectSingleListingTree_SelectSingleListingTree_tsx").then(()=>i(53439)));function LazySelectTree(e){const t=(0,A.A)(),{closeOnSelectingLeaf:i=!0,selectLeavesOnly:n=!0}=e,[r,s]=(0,m.useState)(!1),[o,a]=(0,m.useState)(e.listing);return(0,m.useEffect)(()=>{r?e.onFocus&&e.onFocus():e.onBlur&&e.onBlur()},[r]),(0,m.useEffect)(()=>{a(e.listing)},[e.listing.id]),(0,y.jsx)(h.A,{content:r?(0,y.jsx)(f.A,{path:t.generate("api.public.listing.tree",{catalogId:e.listing.catalogId,listingSlug:e.listing.slug}),children:(t,r,l)=>l?(0,y.jsx)(x.A,{}):r||!t?null:(0,y.jsx)(w,{name:e.name,branches:[t],selectListingId:o?.id,selectLeavesOnly:n,listing:e.listing,onChange:t=>{const r=t.isLeaf&&i||Boolean(n&&e.onChange);r&&e.onChange(t),s(!r),a(t)},onClickButton:()=>{e.onChange&&e.onChange(o),s(!1)}})}):null,dropdownMenuProps:{display:"flex",flexDirection:"column",gap:2,paddingBottom:n?1:3,paddingX:3},fullWidth:!0,isOpen:r,lockPlacement:!0,onChange:e=>{s(e)},onClickOutside:()=>{e.onClose&&o&&e.onClose(o),s(!1)},children:t=>(0,y.jsx)(h.A.Select,{testId:"lazy_select_tree",isActive:t,textStyle:o?void 0:"muted",children:o?(0,y.jsx)(v.A,{testId:"lazy_select_tree_selected_option",breakWord:!0,children:(0,b.A)({listing:o,currentListing:e.listing})}):e.placeholder})})}var j=i(41125),S=i(2063),k=i(32600),C=i(86490),L=i(16346),_=i(47806),N=i(74954),I=i(76015),P=i(16940),R=i(27150),T=i(37743),M=i(25808);function SelectListingId(e){const{componentProps:t}=e;return e.wrap((0,y.jsx)(LazySelectTree,{name:"question-listing",onCh
1ange:t=>e.input.onChange(void 0,t.id),selectLeavesOnly:!1,listing:t.listing}),{labelPointsToCustomElement:!0})}const E=(0,S.O3)()({name:"questionForm",enableReinitialize:!0,resetAfterSubmit:!0,schemaFactory:new S.DF(()=>o.Ik({listingId:o.uR().optional(),body:(0,M.mw)()}))})(function QuestionForm(e){const t=(0,N.tz)(),i=(0,C.A)(I.eP),{candidates:n}=(0,L.A)({type:"can_ask_question"});return(0,S.jE)(e.control,{expiresInDays:1}),(0,y.jsxs)(c.A,{testId:"question-form",full:{xs:!0,sm:!0,md:!0},children:[(0,y.jsx)(p.A,{name:"question-form"}),(0,y.jsx)(c.A.Header,{noBorder:"bottom",paddingBottom:0,paddingX:3,children:(0,y.jsx)(j.A,{level:3,children:(0,y.jsx)(N.sA,{id:"shared.question_form.heading",defaultMessage:"{isBrandManaged, select,\n  true  {Get an answer from our members and {brandName} representatives}\n  false {Get an answer from our members}\n}",values:{isBrandManaged:Boolean(e.listing.brand?.isManaged),brandName:e.listing.brand?.name}})})}),(0,y.jsx)(c.A.Block,{padding:3,children:(0,y.jsxs)(u.A,{onSubmit:e.handleSubmit,display:"flex",flexDirection:"column",gap:3,children:[!(r=e.listing,r.parentListings?.length?r.parentListings[r.parentListings.length-1]:r).isLeaf&&(0,y.jsx)(S.D0,{name:"listingId",label:"Select a listing for your question",component:SelectListingId,componentProps:{listing:e.listing}}),(0,y.jsx)(S.D0,{name:"body",label:"Ask your question",component:d.TM,componentProps:{autoFocus:e.autoFocusBodyField,placeholder:t.formatMessage({id:"shared.question_form.body_field.placeholder",defaultMessage:"Please be aware that your question will be posted to consumers who reviewed {listingFullName}{isBrandManaged, select,\ntrue  { and to {brandName} representatives}\nfalse {}}."},{isBrandManaged:Boolean(e.listing.brand?.isManaged),brandName:e.listing.brand?.name,listingFullName:e.listing.fullName}),disabled:0===n.length}}),0===n.length&&(0,y.jsx)(a.A,{alertStyle:"warning",children:"Only consumers can ask questions"}),e.error&&(0,y.jsx)(g.A,{error:e.error}),(0,y.jsx)(l.A.Submit,{isLoading:e.submitting,tracking:{id:"submit_question",gaContext:{label:i?"authenticated":"unauthenticated"}},children:"Submit your question"})]})})]});var r});function QuestionForm2(e){const t=(0,_.A)(),i=(0,C.A)(I.eP),n=(0,k.A)(),r=(0,A.A)();return(0,y.jsx)(E,{...e,onSubmit:async s=>{const o=t(),a=e.listing.brand?.id,l={type:P.PQ.KNOWN_INTERNAL_ENTRY,entryId:s.listingId??e.listing.id};if(i){return await e.onSubmit({subject:l,questionId:o,body:s.body})}const c={deferredCommand:(0,T.A)((0,R.A)(l,o,s.body),a?{listingBrandId:a}:void 0),redirectTo:r.generate("www.public.single_question",{questionId:o})},d={action:e.getDeferredSubmitQuestionAction({subject:l,questionId:o,body:s.body}),context:{anchor:`#question-${o}`}};return await n({passwordlessAuthenticationSettings:c,deferredActionType:"submit_question",deferredActionEnvelope:d}),e.onSubmit({subject:l,questionId:o,body:s.body})}})}var O=i(53301),q=i(72214),D=i(39845),F=i(25343),B=i(52477),V=i(34923),W=i(20489),G=i(19363),H=i(47467),z=i(78801),U=i.n(z),Q=i(84945),$=i(1331),Y=i(44989),X=i(29869),J=i(89348),K=i(75104),Z=i(24082),ee=i(18158),te=i(6863),ie=i(31094),ne=i(55156),re=i(49853),se=i(23051),oe=i(89331),ae=i(42766),le=i(54128),ce=i(94539),de=i(86934),ue=i(93494),ge=i(3177),pe=i(46501),me=i(71536),he=i(59955),fe=i(30145),xe=i(97075),ve=i(38494);function Ae(e,t){if(t.tags.includes("noindex"))return!1;const{page:i,...n}=e;return!(Object.keys(n).length>0)&&0!==t.statistics.numberOfQuestions}function ListingQuestionsPageMetadata(e){const t=(0,N.tz)(),i=(0,ne.fL)(),n=(0,A.A)(),{getCdnImageSrc:r}=(0,fe.A)(),{currentPage:s,totalPageCount:o}=e.questionsPaginatedCollection.paging,a={listingName:(0,b.A)({listing:e.listing}),space:" ",currentPage:s},l=t.formatMessage({id:"listing_questions.head.meta.title",defaultMessage:"{listingName} Questions{currentPage, plural, =1 {} other {{space}(page #)}}"},a),c=t.formatMessage({id:"listing_questions.head.meta.description",defaultMessage:"Ask questions and read answers about {listingName} on Australia's largest opinion site ProductReview.com.au."},a),d=(0,ve.A)(e.listing);return(0,y.jsx)(he.A,{title:l,meta:(0,me.A)([{name:"robots",content:Ae(i,e.listing)?"index, follow":"noindex, nofollow"},{name:"description",content:c},{property:"og:title",content:l},{property:"og:description",content:c},{property:"og:url",content:n.generate("www.public.listing_questions",{listingSlug:e.listing.slug})},e.listing.pictures&&e.listing.pictures.length>0?{property:"og:image",content:r({id:e.listing.pictures[0],collection:xe.pM.listingPicture,width:1200,height:630})}:null]),link:(0,me.A)([{rel:"canonical",href:(()=>{const t=({listingSlug:e,page:t=1})=>n.generate("www.public.listing_questions",(0,oe.A)({listingSlug:e,page:t}));return s>=1&&e.listing.isRoot?t({listingSlug:e.listing.slug,page:s}):s>=2&&!e.listing.isRoot&&e.listing.parentListings?.[0]?.slug?t({listingSlug:e.listing.parentListings?.[0]?.slug}):t({listingSlug:d.slug})})()},e.listing.isRoot&&s>1?{rel:"prev",href:n.generate("www.public.listing_questions",(0,oe.A)({listingSlug:d.slug,page:s-1}))}:null,e.listing.isRoot&&s<10&&s<o?{rel:"next",href:n.generate("www.public.listing_questions",(0,oe.A)({listingSlug:d.slug,page:s+1}))}:null])})}var be=i(49329),ye=i(99737),we=(i(32475),i(42423)),je=(i(69565),i(84224)),Se=i(1601);function ListingQuestionsPageError({error:e}){(0,N.tz)();return(0,y.jsxs)(je.PE,{disableFixedBottomLayoutAd:!0,disableLayoutAds:!0,children:[(0,y.jsx)(we.A,{code:(0,J.c)(e)?e.status:503}),(0,y.jsx)(ye.A,{marginTop:3,children:(0,y.jsx)(c.A,{full:{xs:!0,sm:!0,md:!0},children:(0,y.jsxs)(c.A.Block,{children:[(0,y.jsx)(be.A,{source:"# Questions not found :(\n\nThis page does not exist or it has been removed.\n\nTo get to where you probably wanted to go, try our search."}),(0,y.jsx)(Se.A,{}),!1]})})})]})}var ke=i(78598);function Ce(e,t){const{listing:i,questionsPaginatedCollection:n}=e,r=(0,ke.Hb)(e,t);return{...r,listing:i,questionsPaginatedCollection:n,relatedQuestionsSection:(()=>
1{if(i.hideContentDueToLegalRequest)return;if(i.isRoot||!i.parentListings)return;const e=[...i.parentListings,i][0],t=e.statistics.numberOfQuestions-i.statistics.numberOfQuestions;return t?{rootListing:e,numberOfRelatedQuestions:t}:void 0})(),monitoredByBrandSection:void 0,questionIndexToPromotionTypeMap:i.hideContentDueToLegalRequest||r.pageAdContext?.areAdsDisabled?{}:{3:{type:"advertisement",spot:"public.listing.questions_page.questions.0.after"},5:{type:"advertisement",spot:"public.listing.questions_page.questions.2.after"},7:{type:"advertisement",spot:"public.listing.questions_page.questions.4.after"}},disableTopContentAd:!1,disableTopContentNonNativeAd:!0,editorMessagesSection:(()=>{if(i.hideContentDueToLegalRequest&&i.editorMessages?.length)return{messages:i.editorMessages}})()}}const Le=U().bind({listingQuestionsPage:"YURIqp","listingQuestionsPage-header":"gkrMQc","listingQuestionsPage-sidebar":"Vw0mlE","in-between-questions-ad":"RRmCeH","listingQuestionsPage-topContentAd":"X9w2B9"}),_e=(e,t)=>{const i=(0,de.A)(e);return t.paging&&(i.page=t.paging.currentPage),(0,se.A)(i)};function ListingQuestionsPageContent({pageViewData:e}){const t=(0,N.tz)(),i=(0,ne.g)(),n=(0,ne.zy)(),o=(0,A.A)();return(0,ue.A)(),(0,y.jsx)(r.A,{pageViewData:e,renderTitle:(0,y.jsx)(ListingQuestionsPageMetadata,{listing:e.listing,questionsPaginatedCollection:e.questionsPaginatedCollection}),impressionTrackingAttributes:_e(e.listing,e.questionsPaginatedCollection),topContentAdClassName:Le("listingQuestionsPage-topContentAd"),children:(0,y.jsxs)(m.Fragment,{children:[(0,y.jsx)(W.A,{items:(0,$.A)(o,e.listing,t,1===e.questionsPaginatedCollection.paging.currentPage?void 0:[{label:"Questions & Answers",url:o.generate("www.public.listing_questions",{listingSlug:e.listing.slug}),hideOnMobile:!0},{label:t.formatMessage({id:"public.listing_questions.header.breadcrumbs.current_page",defaultMessage:"Page {currentPage, number}"},{currentPage:e.questionsPaginatedCollection.paging.currentPage}),hideOnMobile:!0}]),staticLink:!0,marginY:3,className:Le("container-xl")}),(0,y.jsxs)(G.h,{display:"grid",gap:3,className:Le("listingQuestionsPage","container-xl"),children:[(0,y.jsxs)(G.h,{alignSelf:"start",display:"flex",flexDirection:"column",gap:{xxl:3},className:Le("listingQuestionsPage-header"),children:[(0,y.jsx)(c.A,{appContext:{namespace:"questions.header"},full:{xs:!0,sm:!0,md:!0},paddingY:3,children:(0,y.jsx)(D.A,{pageViewData:e,titleSection:(0,y.jsx)(D.A.Title,{listing:e.listing,paging:e.questionsPaginatedCollection.paging,pageAdContext:e.pageAdContext,subTitle:" Questions & Answers",hasTreeOfListings:e.hasTreeOfListings,treeSettings:{resolveStatistics:e=>e.statistics.numberOfQuestions,resolveButton:e=>(0,y.jsx)(F.A.Static,{to:o.generate("www.public.listing_questions",{listingSlug:e.slug}),element:l.A.Link,buttonStyle:"primary",tracking:{id:"tree_navigator.button.show_questions"},children:(0,y.jsx)(N.sA,{id:"public.listing_questions.header.tree_navigator.button.show_questions",defaultMessage:"{numberOfQuestions, plural,\n  =0    {Show no questions}\n  =1    {Show # question}\n  other {Show # questions}\n}",values:{numberOfQuestions:e.statistics.numberOfQuestions}})})},externalLink:e.externalLink,headerAward:e.headerAward,marketAvailabilityStartDateYear:e.marketAvailabilityStartDateYear,abns:e.abns,mpns:e.mpns,verifiedCompany:e.verifiedCompany}),navigationItems:(()=>{if(!e.listing.hideContentDueToLegalRequest)return[(0,y.jsx)(H.A,{target:"#question-form",focusOnScroll:!0,focusTarget:'textarea[form="questionForm"]',element:l.A.Link,flexGrow:{xs:1,sm:0,xxl:1},nowrap:!0,order:{xs:1,sm:0,xxl:1},tracking:{id:"ask_question_button",gaContext:{label:e.listing.slug}},children:"Ask a question"},"ask_a_question")]})()})}),e.similarListingsSection&&(0,y.jsx)(le.A.List,{...e.similarListingsSection,display:{xs:"none",xxl:"block"}}),(0,y.jsx)(pe.A,{activeListing:e.listing,display:{xs:"none",xxl:"block"}})]}),(0,y.jsxs)(q.A,{appContext:{namespace:"questions"},gap:5,children:[e.editorMessagesSection?.messages.map(e=>(0,y.jsx)(V.A,{message:e},e.id)),!e.listing.hideContentDueToLegalRequest&&(0,y.jsx)(X.A,{listing:e.listing,initialCollection:e.questionsPaginatedCollection.collection,onSubmit:()=>(0,K.A)("#questions"),children:t=>{return(0,y.jsxs)(G.h,{display:"flex",flexDirection:"column",gap:3,children:[(0,y.jsxs)(c.A,{full:{xs:!0,sm:!0,md:!0},position:"static",children:[0===t.collection.length?(0,y.jsx)(c.A.Block,{paddingX:3,paddingY:5,testId:"questions_section",children:(0,y.jsx)(B.A,{fontWeight:"normal",marginY:5,textAlign:"center",textStyle:"muted",children:"No questions yet"})}):(0,y.jsx)(c.A.Block,{padding:0,testId:"questions_section",children:t.collection.map((t,i)=>{const n=e.questionIndexToPromotionTypeMap[i];return(0,y.jsxs)(m.Fragment,{children:[0===i&&(0,y.jsx)(p.A,{name:"questions"}),3===i&&(0,y.jsx)(p.A,{name:"fourth-question"}),(0,y.jsx)(s.A,{appContext:{namespace:String(i)},question:t,listing:e.listing,defaultExpanded:!0,padding:3}),"advertisement"===n?.type&&(0,y.jsx)(ae.A,{spot:n.spot,sizeMappingKey:"mainContent",pageAdContext:e.pageAdContext,refreshPolicy:e=>"desktop"===e.deviceType?{timeBasedRefresh:7===i?{}:void 0,userActionRefresh:{minimumViewableTimeInSeconds:30}}:{userActionRefresh:{minimumViewableTimeInSeconds:30}},className:Le("in-between-questions-ad"),containerProps:{padding:3}})]},t.id)})}),(0,y.jsxs)(c.A.Footer,{display:"flex",doNotRenderIfEmpty:!0,flexDirection:"column",gap:3,padding:3,children:[e.questionsPaginatedCollection.paging.totalPageCount>1&&(0,y.jsx)(O.A,{generatePath:e=>o.generate("www.public.listing_questions",{...i,...(0,oe.A)({...n.query,page:e})}),numberOfPages:Math.min(10,e.questionsPaginatedCollection.paging.totalPageCount),activePage:e.questionsPaginatedCollection.paging.currentPage,as:"staticLink"}),e.relatedQuestionsSection&&(0,y.jsx)(F.A,{to:o.generate("www.public.listing_questions",{listingSlug:e.relatedQuestionsSection.rootListing.slug}),element:l.A.Link,display:"block",tracking:{id:"read_all_related_questions"},children:(r={rootListingFullName:e.relatedQuestionsSection.rootListing.fullName},(0,y.jsxs)(y.Fragment,{children:["See all ",r.rootListingFullName," questions"]}))})]})]}),(0,y.jsx)(QuestionForm2,{listing:e.listing,initialValues:{listingId:e.listing.id},autoFocusBodyField:"#question-form"===n.hash,getDeferredSubmitQuestionAction:t.getDeferredSubmitQuestionAction,onSubmit:t.handleSubmitQuestion})]});var r}}),e.similarListingsSection&&(0,y.jsx)(le.A.Slider,{...e.similarListingsSection})]}),e.listing&&(0,y.jsx)(r.A.Sidebar,{pageViewData:e,className:Le("listingQuestionsPage-sidebar")})]})]})})}const Ne=(0,re.ji)([{key:"listingQuestionsPageAsyncDataContainer",preprocess:e=>e.data&&e.data.questionsPaginatedCollection?{...e,data:{...e.data,questionsPaginatedCollection:(0,ie.F)(e.data.questionsPaginatedCollection)}}:e,promise:async({store:e,params:t,location:i,helpers:n})=>{const{listingSlug:r}=t,s=i.query.page?Number(i.query.page):1;try{const[t,n]=await Promise.all([e.dispatch((0,ee.p)(r)),e.dispatch((0,te.UT)(r,i.query
1))]);return{listing:t,questionsPaginatedCollection:n}}catch(e){if(s>1&&(0,J.c)(e)&&e.statusCode===Q.v.NOT_FOUND)throw new re.rd(n.urlGenerator.generate("www.public.listing_questions",t),{type:s>10?"permanent":"temporary"});throw e}}}])(function ListingQuestionsPage_ListingQuestionsPage(e){const t=(0,ce.A)(e.listingQuestionsPageAsyncDataContainer.data?.listing),i=(0,ge.A)({listing:t},"questions_page"),r=(0,A.A)(),s=(0,C.A)(Z.Jj);return e.listingQuestionsPageAsyncDataContainer.status===re.nW.LOADING?(0,y.jsx)(n.A,{}):e.listingQuestionsPageAsyncDataContainer.status!==re.nW.ERROR&&t?(0,y.jsx)(Y.A.Provider,{value:i,children:(0,y.jsx)(ListingQuestionsPageContent,{pageViewData:Ce({distractionLevel:i,listing:t,questionsPaginatedCollection:e.listingQuestionsPageAsyncDataContainer.data.questionsPaginatedCollection,pageStatus:e.listingQuestionsPageAsyncDataContainer.status,actor:s},r)})}):(0,y.jsx)(ListingQuestionsPageError,{error:e.listingQuestionsPageAsyncDataContainer.error})})},46501(e,t,i){i.d(t,{A:()=>RecentlyViewedListings});var n=i(35447),r=i(25343),s=i(41125),o=i(23481),a=i(85906),l=i(2571),c=i(55279),d=i(98161),u=(i(74954),i(76759)),g=i(27535),p=i(71526),m=i(66222),h=i(14202);function RecentlyViewedListings(e){const{activeListing:t,...i}=e,f=(0,d.A)(),{recentlyViewedListings:x}=(0,m.A)(),v=(0,c.A)();if(!f)return;const A=t?.id?x.filter(e=>e.id!==t.id):x;return A.length?(0,h.jsx)(o.A,{appContext:{namespace:"recently_viewed_listings"},...i,children:(0,h.jsxs)(o.A.Block,{display:"flex",flexDirection:"column",gap:2,padding:3,children:[(0,h.jsx)(s.A,{level:3,headingStyle:4,children:"Recently Viewed Listings"}),A.map(e=>(0,h.jsx)(l.A,{component:"RecentlyViewedListing",listing:e,children:(0,h.jsxs)(r.A.Static,{to:v.generate("www.public.listing",{listingSlug:e.slug}),openNewTab:!0,fontSize:"small",lineHeight:"small",marginLeft:2,position:"relative",tracking:{id:"listing",vendors:["ga","influx"],gaContext:{label:e.slug},influxContext:{measurement:"catalog_resource.click",attributes:{targetListingId:e.id,targetBrandId:e.brand?.id,value:1}}},children:[(0,h.jsx)(n.A,{fontWeight:"medium",stretchedLink:!0,textDecorationHover:"underline",textStyle:"link",children:(0,p.A)({listing:e})}),(0,h.jsx)(u.A,{label:Number(e.statistics.rating)>0?(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(a.Fragment,{children:" "}),(0,g.A)(e.statistics.rating)]}):void 0,count:e.statistics.numberOfReviews})]})},e.id))]})}):void 0}},86934(e,t,i){i.d(t,{A:()=>r});var n=i(61829);function r(e){const t={targetListingId:e.id};e.brand&&(t.targetBrandId=e.brand.id);const i=e.categories&&e.categories.length>0?(0,n.A)(e.categories):void 0;i&&(t.targetCategoryId=i.id);const r=e.locations&&e.locations.length>0?(0,n.A)(e.locations):void 0;return r&&(t.targetLocationId=r.id),t}},93494(e,t,i){i.d(t,{A:()=>o});var n=i(85906);function r(e){let t=0,i=e;for(;i;)t+=i.offsetTop,i=i.offsetParent;return t}var s=i(20617);function o(){(0,n.useEffect)(()=>{if("undefined"==typeof IntersectionObserver)return;let e,t;function i(){if(!t)return;const e=document.querySelector("#page-layout");if(!e)return;const i=[...t];if(0!==i.length)for(let t=0;t<i.length;t++){const n=i[t+1],s=i[t].closest("[data-sticky-ad-container]"),o=i[t].closest("[data-sticky-ad-height-wrapper]");if(o&&s)if(n){const e=150;o.style.height=r(n)-r(o)-e+"px"}else o.style.height=e.getBoundingClientRect().bottom-s.getBoundingClientRect().bottom+"px"}}function n(){const n=`[data-prevent-overlap="true"][data-sticky*="${(0,s.A)()}"]`,r=document.querySelectorAll(n);if(!t||!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(r,t)){t=r,e?.disconnect(),e=new IntersectionObserver(i,{threshold:1});for(const t of r)e.observe(t)}}const o=window.setInterval(n,2e3);return n(),document.addEventListener("click",i),()=>{window.clearInterval(o),document.removeEventListener("click",i),e?.disconnect()}},[])}},3177(e,t,i){i.d(t,{A:()=>a});var n=i(85906),r=i(21627),s=i(44989),o=i(18600);function a(e,t){const{cookies:i}=(0,n.useContext)(r.A);if(e.listing&&0===e.listing.statistics.numberOfReviews)return s.B.OFF;if(e.brand?.tags.includes("disable_dfp_ads")||e.category?.tags.includes("disable_dfp_ads")||e.listing?.tags.includes("disable_dfp_ads")||e.listing?.categories?.some(e=>e.tags.includes("disable_dfp_ads"))||e.listing?.brand?.tags.includes("disable_dfp_ads"))return s.B.OFF;const a=e.brand??e.listing?.brand,l=!!(a?.permissions?.distractionFree&&e.listing&&o.wk in i)&&i[o.wk]===e.listing.slug;let c=s.B.HIGH;return"listing_showcases_page"===t||l?c=s.B.OFF:a?.permissions?.lowDistractionLevel&&(c=s.B.LOW),c}},71975(e,t,i){i.d(t,["A",0,{progress:"jq_n4Q","progress-stacked":"ELrh1u","progress-bar":"SRXZtc","progress-bar-striped":"rbvvON","progress-bar-animated":"aTKZaN","progress-bar-stripes":"axbxPh"}])}}]);
2//# sourceMappingURL=public-containers-ListingQuestionsPage-ListingQuestionsPage_ed80e716.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.