1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea3568f6-5497-4598-9847-b5aad91276a9",e._sentryDebugIdIdentifier="sentry-dbid-ea3568f6-5497-4598-9847-b5aad91276a9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8101],{188:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(54568),l=n(35035);let i=(0,n(46840).I)(l.ox,{name:"StickyMobileBox","$platform-web":{position:"sticky",top:0,zIndex:1e3}}),s=e=>{let{center:t,title:n,left:s,right:o,pt:a}=e,d=null!=n;return(0,r.jsxs)(i,{alignItems:"center",bc:"$background",px:"$screen",pt:a,position:"relative",children:[d?(0,r.jsx)(l.dE,{position:"absolute",left:0,right:0,alignItems:"center",justifyContent:"center",pointerEvents:"none",height:"100%",children:(0,r.jsx)(l.Lb,{tag:"h2",textAlign:"center",numberOfLines:1,width:s||o?"70%":"100%",mx:"auto",children:n})}):null,(0,r.jsxs)(l.k1,{width:"100%",alignItems:"center",gap:"$1",height:64,children:[s?(0,r.jsx)(l.k1,{flexShrink:0,width:"auto",justifyContent:"flex-start",alignItems:"center",children:s}):null,d?null:(0,r.jsx)(l.dE,{flex:1,minWidth:0,alignItems:"center",justifyContent:"center",children:t}),o?(0,r.jsx)(l.k1,{flexShrink:0,width:"auto",justifyContent:"flex-end",alignItems:"center",ml:"auto",children:o}):null]})]})}},19385:(e,t,n)=>{"use strict";n.d(t,{ItemPageContent:()=>e4});var r=n(54568),l=n(15114),i=n(98887),s=n(69110),o=n(7620);let a=(0,o.memo)(e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.637 1.681C8.405 1.206 9.391 1 10.5 1a1 1 0 0 1 .868.504c.839 1.468 1.815 2.477 2.824 3.52l.316.327c.978 1.017 1.968 2.108 2.664 3.649H21a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4.42l-7.79 1.246A5 5 0 0 1 3 17.31v-3.116l-.831-2.079C1.38 10.144 2.829 8 4.953 8h2.519a10 10 0 0 1-.765-1.368c-.431-.949-.64-1.9-.508-2.78a3.02 3.02 0 0 1 1.438-2.17M17.5 19H20v-8h-2.5zm-2-8.818c-.544-1.395-1.393-2.362-2.434-3.445l-.318-.329c-.894-.923-1.903-1.964-2.8-3.384-.585.054-.992.193-1.257.357-.309.192-.465.437-.515.767-.055.37.017.919.352 1.658.331.73.894 1.586 1.725 2.536A1 1 0 0 1 9.5 10H4.953a1 1 0 0 0-.927 1.371l.902 2.258A1 1 0 0 1 5 14v3.31a3 3 0 0 0 3.474 2.961l7.026-1.124z",clipRule:"evenodd"})}));var d=n(7947),c=n(58797),u=n(35035),h=n(73459),p=n(4935),g=n(55004),E=n(80442),R=n(61623),x=n(87290),m=n(20169),O=n(94535),S=n(56435),f=n(27736);let I={from:"",to:""},v=e=>{let{slug:t,selectedDates:n,quantity:r=1}=e,{api:l}=(0,m.useApi)(),i=((e,t)=>{var n;return(0,S.j)({queryKey:["product-price",t.slug,t.selectedDates.from,t.selectedDates.to,t.country,null!=(n=t.quantity)?n:1],queryFn:()=>e.productListing.getPrice({slug:t.slug,selectedDates:t.selectedDates,country:t.country,quantity:t.quantity})})})(l,{slug:t,selectedDates:null!=n?n:I,country:(0,O.usePreferencesContext)(e=>e.viewMarketCountry),quantity:r});return(0,f.useQuery)({...i,enabled:!!n})};var T=n(59430);let C=e=>{var t;let{slug:n,ownerName:l,isUnpublished:i,unavailableDates:s,minimumRentalDays:m,isMyProduct:O,isRedirecting:S,stockLevel:f,submitOrderRequest:I}=e,C=(0,h.WD)(),j=(0,d.useSearchContext)(e=>e.setSelectedDates),{enabled:_}=(0,E.u)(g.T.quantitySelection),[P,b]=(0,o.useState)(1),{from:y,to:L,setSelectedDates:N,selectedDates:A}=(e=>{let{unavailableDates:t,minimumRentalDays:n}=e,{selectedDates:r}=(0,d.useSearchContext)(),[l,i]=(0,o.useState)(r);(0,o.useEffect)(()=>{i(r)},[r]);let s=(0,o.useMemo)(()=>t.map(e=>{let{date:t}=e;return new c.L(t)}),[t]),{from:a,to:u}=(0,o.useMemo)(()=>{if(!l)return{from:null,to:null};let e=new c.L(l.from).rangeBetween(new c.L(l.to)),t=e.length,r=s.every(t=>e.every(e=>!e.isSame(t)));return t<n||t>x.qH||!r?{from:l.from,to:null}:l},[l,s,n]);return{from:a,to:u,setSelectedDates:i,selectedDates:l}})({unavailableDates:s,minimumRentalDays:m}),w=y&&L?{from:y,to:L}:null;(0,o.useEffect)(()=>{b(1)},[y,L]);let{data:D,isLoading:$}=(0,R.L)({slug:n,from:y,to:L}),k=null!=(t=null==D?void 0:D.availableStock)?t:1,M=void 0===f?k>1:f>1&&k>1,H=_&&!!w&&($?void 0===f||f>1:M),U=_&&!w&&void 0!==f&&f>1,W=Math.max(1,Math.min(P,k)),{data:F,isLoading:z,error:B}=v({slug:n,selectedDates:w,quantity:H?W:1}),G=(0,o.useMemo)(()=>
1{if(!A||!F)return null;let e=new c.L(A.from).daysBetween(new c.L(A.to))+1,t=1===e?C("PRODUCT.RENT_DAYS.TRUE"):C("PRODUCT.RENT_DAYS.FALSE"),n=C("PRODUCT.RENT_DAYS.FOR"),r="".concat(n," ").concat(e," ").concat(t);return{price:F.label,information:"".concat(r," (").concat(F.orderFeeLabel,")")}},[F,A,C]),V=i||!F||z,q=(0,o.useMemo)(()=>y&&L?{from:y,to:L}:null,[y,L]),Y=(0,o.useCallback)(()=>{j(q),I(q,H?W:1)},[W,q,j,H,I]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.if,{unavailableDates:s,minRentalDays:m,selectedDates:A,onSelectedDates:N}),H?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.wv,{}),(0,r.jsx)(u.dE,{gap:"$0.5",children:$?(0,r.jsx)(u.y$,{size:"small"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.W8,{children:[C("PRODUCT.QUANTITY_STEPPER.LABEL")," (",C("PRODUCT.AVAILABLE_STOCK",{count:k}),")"]}),(0,r.jsx)(T.V,{value:W,min:1,max:k,onChange:b})]})})]}):null,U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.wv,{}),(0,r.jsx)(u.W8,{children:C("PRODUCT.AVAILABLE_STOCK",{count:f})})]}):null,(0,r.jsx)(u.wv,{}),(0,r.jsxs)(u.dE,{gap:"$1",children:[z?(0,r.jsx)(u.y$,{size:"small"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Lb,{margin:"0",textAlign:"center",tag:"h2","data-testid":"booking-price",children:G?G.price:C("PRODUCT.SELECT_PERIOD")}),G?(0,r.jsx)(u.W8,{textAlign:"center","data-testid":"booking-price-information",children:G.information}):null]}),B?(0,r.jsx)(u.fz,{textAlign:"center",color:"$error",children:B.message}):null]}),(0,r.jsx)(u.dE,{gap:"$1",children:O?(0,r.jsx)(u.W8,{small:!0,color:"$muted",textAlign:"center",children:C("PRODUCT.OWN_LISTING_NOT_BOOKABLE")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.$n,{loading:S,disabled:V||S,label:C("PRODUCT.SEND_ORDER_REQUEST"),onPress:Y,size:"large"}),i?(0,r.jsx)(u.W8,{small:!0,color:"$muted",textAlign:"center",children:C("PRODUCT.UNPUBLISHED")}):null]})}),O?null:(0,r.jsxs)(u.k1,{gap:"$1",alignItems:"center",maxWidth:280,mx:"auto",children:[(0,r.jsx)(u.hh,{size:20,Icon:a,color:"$information"}),(0,r.jsx)(u.W8,{small:!0,color:"$information",children:C("PRODUCT.FINEPRINT",{vendorName:l})})]})]})};var j=n(23843),_=n(31362),P=n(15080);let b=e=>{let{open:t,onOpenChange:n,children:l}=e,{setFlowIntent:i,unsetFlowIntent:s}=(0,P.F)(),a=(0,h.WD)();return(0,o.useEffect)(()=>{t?i(j.t9.ORDER):s()},[i,t,s]),(0,r.jsx)(_.w,{safeAreaInsets:{bottom:!1},modalKey:"select_period_modal",title:a("PRODUCT.SELECT_PERIOD"),open:t,fullScreenOnMobile:!0,onOpenChange:n,userCanClose:!0,children:(0,r.jsx)(r.Fragment,{children:l})})};var y=n(97144),L=n(63942),N=n(84672);let A=e=>{let{category:t,categoryRating:n,linkProps:l}=e,i=(0,h.WD)(),[s,a]=(0,o.useState)(!0);return s?(0,r.jsxs)(L.Z,{flexDirection:"column",width:"100%",padding:"$2",borderRadius:"$2",position:"relative",children:[(0,r.jsx)(u.az,{position:"absolute",top:0,p:"$2",right:0,width:"auto",onPress:()=>a(!1),children:(0,r.jsx)(u.hh,{Icon:y.A,size:12,color:"$foreground"})}),(0,r.jsx)(u.fz,{my:"$0.5",color:"$foregroundLight",marginTop:"$2",children:i("PRODUCT.CATEGORY_REVIEWS_BANNER.TITLE",{category:t,rating:n})}),(0,r.jsxs)(u.az,{flexDirection:"row",alignItems:"center",gap:"$1",justifyContent:"space-between",children:[(0,r.jsx)(N.Z,{withAllHearts:!0,rating:n}),(0,r.jsx)(u.fz,{link:!0,tag:"a",...l,children:i("PRODUCT.CATEGORY_REVIEWS_BANNER.VIEW_MORE")})]})]}):null},w=e=>{let{text:t,link:n,onPress:l}=e;return(0,r.jsxs)(u.fz,{type:"body",whiteSpace:"pre-line",onPress:l,cursor:l?"pointer":void 0,children:[t,n?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(u.L9,{link:!0,children:n})]}):null]})};var D=n(35920);let $=(0,o.memo)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:[(0,r.jsx)("path",{fill:"currentColor",d:"M11 7a1 1 0 0 1 1 1v2h2a1 1 0 1 1 0 2h-2v2a1 1 0 1 1-2 0v-2H8a1 1 0 1 1 0-2h2V8a1 1 0 0 1 1-1"}),(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 21a9.96 9.96 0 0 0 6.329-2.257l3.964 3.964a1 1 0 0 0 1.414-1.414l-3.964-3.964A9.96 9.96 0 0 0 21 11c0-5.523-4.477-10-10-10S1 5.477 1 11s4.477 10 10 10m0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16",clipRule:"evenodd"})]}));var k=n(5603),M=n(98973),H=n(56629),U=n(46840),W=n(46236);function F(e){let{src:t,alt:n,initialSize:l,onDisplay:i,onPress:s,children:o}=e;return(0,r.jsx)(k.i,{src:t,priority:!0,width:"100%",aspectRatio:4/3,overflow:"hidden",borderRadius:"$2",$mobile:{borderTopLeftRadius:0,borderTopRightRadius:0},initialSize:l,onImageDisplay:i,contentFit:"cover",cursor:s?"pointer":void 0,onPress:s,alt:n,children:o})}let z=(0,U.I)(u.dE,{name:"Gallery",position:"relative"}
1),B=(0,U.I)(u.k1,{name:"Thumbnails",bottom:"$3",left:"$3",right:"$3",gap:"$1.5",width:"auto",$desktop:{gap:"$2",left:"$4",right:"$4",bottom:"$4"},flexWrap:"wrap-reverse",position:"absolute",justifyContent:"flex-start",flexDirection:"row-reverse",flexShrink:1}),G=(0,o.memo)(function(e){let{images:t,currentImage:n,setCurrentImage:l,productName:i}=e,s=(0,W.Qf)(),a=(0,H.Y)(s.desktop?"$3":"$2"),d=(0,H.Y)(s.desktop?"$3":"$2"),c=(0,o.useMemo)(()=>[...t].reverse(),[t]);return(0,r.jsx)(B,{children:c.map((e,t)=>{let s=i?"".concat(i," ").concat(t+1):"".concat(t+1);return(0,r.jsx)(k.i,{src:e.thumbnailUrl,onPress:t=>{t.stopPropagation(),l(e)},imageStyle:{borderRadius:a},zIndex:0,width:"$6",height:"$6",$desktop:{width:60,height:60},borderRadius:a,cursor:"pointer",position:"relative",alt:s,children:e!==n?(0,r.jsx)(u.k1,{width:"100%",height:"100%",position:"absolute",borderRadius:a,justifyContent:"center",alignItems:"center",children:(0,r.jsx)(u.hh,{width:d,height:d,Icon:$,color:"$surface"})}):null},e.id)})})}),V=(0,o.memo)((0,o.forwardRef)((e,t)=>{let{images:n,productName:l,heroInitialSize:i,onHeroDisplay:s}=e;(0,o.useImperativeHandle)(t,()=>({openImageViewer(){u(!0)}}));let[a,d]=(0,o.useState)(n[0]),[c,u]=(0,o.useState)(!1),h=(0,o.useMemo)(()=>n.map(e=>({uri:e.fullSizeUrl})),[n]),p=(0,o.useMemo)(()=>{let e=n.findIndex(e=>e.id===(null==a?void 0:a.id));return -1===e?0:e},[a,n]);if(!a)return null;let g=l?"".concat(l," 1"):"1";return(0,r.jsx)(z,{children:(0,r.jsxs)(F,{src:a.fullSizeUrl,alt:g,initialSize:i,onDisplay:s,onPress:()=>u(!0),children:[(0,r.jsx)(M.a,{initialIndex:p,show:c,setShow:u,images:h}),n.length>1?(0,r.jsx)(G,{images:n,currentImage:a,setCurrentImage:d,productName:l}):null]})})}));V.displayName="Gallery";let q="linear-gradient(to bottom, #000 calc(100% - ".concat(32,"px), transparent 100%)"),Y=e=>{let{text:t}=e,n=(0,h.WD)(),[l,i]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=d.current;if(!e||l)return;let t=()=>a(e.scrollHeight>e.clientHeight+1);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[t,l]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.fz,{ref:d,type:"body",whiteSpace:"pre-line",numberOfLines:l?void 0:8,style:s&&!l?{maskImage:q,WebkitMaskImage:q}:void 0,children:t}),s?(0,r.jsx)(u.k1,{tag:"button",onPress:()=>i(e=>!e),cursor:"pointer","aria-expanded":l,type:"button",width:"auto",alignSelf:"flex-start",alignItems:"center",minHeight:44,focusVisibleStyle:{outlineWidth:2,outlineStyle:"solid",outlineColor:"$primary",outlineOffset:2},children:(0,r.jsx)(u.L9,{color:"$primary",bold:!0,hoverStyle:{color:"$secondaryDark"},children:n(l?"GLOBAL.READ_LESS":"GLOBAL.READ_MORE")})}):null]})};var Q=n(46535),K=n(56801),Z=n(8726),J=n(43346);let X=(0,o.memo)(e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0M2 12c0-2.401.846-4.605 2.257-6.329l2.852 2.853A5.97 5.97 0 0 0 6 12c0 1.296.41 2.496 1.11 3.477l-2.853 2.852A9.96 9.96 0 0 1 2 12m3.671 7.743A9.96 9.96 0 0 0 12 22a9.96 9.96 0 0 0 6.329-2.257l-2.853-2.852A5.97 5.97 0 0 1 12 18a5.97 5.97 0 0 1-3.476-1.11zM8.523 7.109 5.671 4.257A9.96 9.96 0 0 1 12 2c2.401 0 4.605.846 6.329 2.257L15.477 7.11A5.97 5.97 0 0 0 12 6c-1.296 0-2.496.41-3.477 1.11m11.22 11.22A9.96 9.96 0 0 0 22 12a9.96 9.96 0 0 0-2.257-6.329l-2.852 2.853C17.589 9.504 18 10.704 18 12s-.41 2.496-1.11 3.477zM8 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0",clipRule:"evenodd"})}));var ee=n(87562),et=n(87818),en=n(88187),er=n(51762),el=n(5495);let ei=e=>{var t;let{productListing:n,contextualCancellationTerms:l}=e,{product:a,location:d,labels:c}=n,{owner:p,category:g,stats:E}=a,{showArticle:R}=(0,i.B)(),x=(0,er.cq)(),m=(0,h.WD)(),O=(0,o.useCallback)(()=>{R(s.PF.INSURANCE_RENTER)},[R]);if(!p)return null;let{vendor:S}=p,f=(null==E?void 0:E.averageRating)||0,I=p.rating||f,v=x.linkProps(el.JZ.ownerProfile({slug:S.slug})),T="".concat(S.responseRatePercentage).concat(m("PRODUCT.RESPONSE_RATE"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.k1,{marginBottom:"$1",gap:"$2",alignItems:"center",children:[p.profileImage&&(0,r.jsx)(et.p,{...v,size:60,url:p.profileImage.thumbnailUrl,focusOnFace:!0}),(0,r.jsxs)(u.dE,{flexShrink:1,flexGrow:1,gap:"$0.5",children:[(0,r.jsxs)(u.fz,{fontSize:"$5",children:[m("PRODUCT.VENDOR"),(0,r.jsxs)(u.L9,{link:!0,bold:!0,tag:"a",...v,children:[" ",
1S.name]})]}),I>0&&(0,r.jsxs)(u.k1,{gap:"$1",alignItems:"center",children:[(0,r.jsx)(N.Z,{rating:I,withAllHearts:!0}),(0,r.jsxs)(u.W8,{children:[I,"/5"]})]})]})]}),p.badges.superlender&&(0,r.jsx)(es,{Icon:Q.A,iconColor:"$blue-500",text:m("BADGES.SUPERLENDER")}),S.verificationLabel&&(0,r.jsx)(es,{Icon:ee.A,iconColor:"$success",text:S.verificationLabel}),S.responseTimeText&&!p.isSnoozedRightNow&&(0,r.jsx)(es,{Icon:Z.A,text:"".concat(m("PRODUCT.RESPONSE_TIME")," ").concat(S.responseTimeText)}),S.responseRatePercentage?(0,r.jsx)(es,{Icon:K.A,text:T}):null,l?(0,r.jsx)(en.s,{cancellationTerms:l,gap:"$2"}):(null==(t=d.bestLocation)?void 0:t.name)?(0,r.jsx)(es,{Icon:J.A,text:d.bestLocation.name,extraText:(null==c?void 0:c.distance)?c.distance:void 0}):null,(null==g?void 0:g.insuranceInfo)&&(0,r.jsx)(es,{Icon:X,text:g.insuranceInfo,onPress:O,linkText:m("GLOBAL.READ_MORE")})]})},es=e=>{let{Icon:t,iconColor:n="$foreground",text:l,extraText:i,linkText:s,onPress:o}=e;return(0,r.jsxs)(u.k1,{gap:"$1",alignItems:"center",children:[(0,r.jsx)(u.hh,{Icon:t,width:(0,H.Y)("$2.5"),height:(0,H.Y)("$2.5"),color:n}),(0,r.jsxs)(u.fz,{flexWrap:"wrap",flex:1,type:"body",onPress:o,cursor:o?"pointer":void 0,children:[l,i&&(0,r.jsx)(u.L9,{bold:!0,children:" ".concat(i)}),s&&(0,r.jsx)(u.L9,{link:!0,children:" ".concat(s)})]})]})};var eo=n(3957),ea=n(36382),ed=n(73235),ec=n(29216);let eu=eo.A.select({web:ed.xo,default:ed.kc}),eh=e=>{let{coordinates:t}=e,[n,l]=(0,o.useState)(0),i=(0,o.useMemo)(()=>{let[e,n]=t;return 2===t.length&&"number"==typeof e&&"number"==typeof n?{longitude:e,latitude:n}:null},[t]),s=e=>{let{width:t,height:n}=e.nativeEvent.layout;l(.8*Math.min(t,n))};if(!i)return null;let a=(0,ec.jO)(i.longitude,i.latitude,eu);return(0,r.jsx)(ea.c,{params:{lat:i.latitude,lng:i.longitude},children:e=>{let{openPicker:t}=e;return(0,r.jsxs)(u.dE,{position:"relative",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",onLayout:s,onPress:t,children:[(0,r.jsx)(u._V,{src:a,width:500,height:500,contentFit:"cover",style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}}),(0,r.jsx)(ep,{size:n})]})}})},ep=e=>{let{size:t}=e;return(0,r.jsx)(u.dE,{position:"absolute",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(u.dE,{aspectRatio:1,backgroundColor:"$mapOverlay",borderRadius:1e6,zIndex:1,cursor:"pointer",style:{width:t,height:t}})})};var eg=n(46024),eE=n(55425);let eR=e=>{let{rating:t,reviewCount:n,locationName:l,distance:i}=e,s=(0,h.WD)(),a=(0,O.usePreferencesContext)(e=>e.language),d=(0,o.useMemo)(()=>new Intl.NumberFormat(a,{minimumFractionDigits:1,maximumFractionDigits:1}).format(t),[a,t]),c=t>0&&n>0,p=[n>0?s(1===n?"PRODUCT.REVIEW_COUNT_ONE":"PRODUCT.REVIEW_COUNT_OTHER",{count:n}):null,l?[l,i].filter(Boolean).join(", "):null].filter(e=>!!e);if(!c&&0===p.length)return null;let g=p.join(" \xb7 ");return(0,r.jsxs)(u.k1,{alignItems:"center",flexWrap:"nowrap",gap:6,children:[c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.hh,{Icon:eE.A,width:14,height:14,color:"$red-500",flexShrink:0}),(0,r.jsx)(u.L9,{bold:!0,fontSize:"$1",flexShrink:0,children:d})]}):null,g?(0,r.jsx)(u.W8,{numberOfLines:1,flexShrink:1,minWidth:0,children:c?"\xb7 ".concat(g):g}):null]})};function ex(e){let{breadcrumbs:t,title:n,rating:l,reviewCount:i,locationName:s,distance:o,children:a}=e;return(0,r.jsxs)(u.dE,{gap:"$2",children:[(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(eg.B,{items:t}),(0,r.jsx)(u.Lb,{tag:"h1",$desktop:{fontSize:"$6",lineHeight:"$6"},children:n}),(0,r.jsx)(eR,{rating:null!=l?l:0,reviewCount:null!=i?i:0,locationName:null!=s?s:null,distance:null!=o?o:null})]}),a]})}var em=n(80469);let eO=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{api:n}=(0,m.useApi)(),r=(0,O.usePreferencesContext)(e=>e.viewMarketCountry);return(0,f.useQuery)({...(0,S.j)({queryKey:["productListingByVendorId",e,r],queryFn:()=>n.productListing.find({vendorId:e},{country:r})}),...t})},eS=(0,o.memo)(function(e){let{currentProductListingId:t,vendor:n}=e,{id:l,name:i,slug:s}=n,a=(0,d.useSearchContext)(e=>e.selectedDates),c=(0,er.cq)(),p=(0,h.WD)(),{data:g}=eO(l),E=(0,o.useMemo)(()=>(null==g?void 0:g.productListings.filter(e=>e.id!==t))||[],[g,t]);return 0===E.length?null:(0,r.jsxs)(u.dE,{gap:"$1",$desktop:{gap:"$2"},children:[(0,r.jsxs)(u.Lb,{tag:"h2",px:"$screen",children:[p("PRODUCT.MORE_FROM_VENDOR")," ",(0,r.jsx)(u.L9,{link:!0,tag:"a",...c.linkProps(el.JZ.ownerProfile({slug:s})),children:i})]}),(0,r.jsx)(em.C,{productListings:E,selectedDates:a})]})});var ef=n(26588);let eI=e=>{let{prices:t,minimumRentalDays:n}=e,l=(0,h.WD)();return(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(u.iK,{textAlign:"center",mb:0,children:l("PRODUCT.PRICE_TAB_INFO")}),(0,r.jsxs)(u.fz,{type:"small",textAlign:"center",children:[l("FANCY_PRODUCT_INFO.ADDITIONAL_PRICES_SUB"),n&&n>1&&" ".concat(l("PRODUCTBOOKING.MINIMUM_DAYS_INFO",{minimumRentalDays:n}))]}),(0,r.jsx)(u.k1,{gap:"$2",justifyContent:"center",children:t.map(e=>(0,r.jsx)(ef.p,{title:e.label,subtitle:"".concat(e.days," ").concat(1===e.days?l("PRODUCT.RENT_DAYS.TRUE"):l("PRODUCT.RENT_DAYS.FALSE")),label:"",flexBasis:1},e.days))})]})};var ev=n(60872);let eT=function(e){let{categoryId:t,position:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{api:l}=(0,m.useApi)(),i=(0,O.usePreferencesContext)(e=>e.viewMarketCountry);return(0,f.useQuery)({...(0,S.j)({queryKey:["productListingByCategoryId",t,null==n?void 0:n.longitude,null==n?void 0:n.latitude,i],queryFn:()=>l.productListing.find({categoryId:t,position:n||void 0},{country:i})}),...r})},eC=e=>{let{category:t,currentProductListingId:n,position:l}=e,{id:i,name:s,slug:a}=t,{categoryLinkProps:c}=(0,ev.m)(),p=(0,h.WD)(),g=(0,d.useSearchContext)(e=>e.selectedDates),{data:E}=eT({categoryId:i,position:l||null}),R=(0,o.useMemo)(()=>(null==E?void 0:E.productListings.filter(e=>e.id!==n))||[],[E,n]);return 0===R.length?null:(0,r.jsxs)(u.dE,{gap:"$1",$desktop:{gap:"$2"},children:[(0,r.jsxs)(u.Lb,{tag:"h2",px:"$screen",children:[p("PRODUCT.MORE_FROM_CATEGORY")," ",(0,r.jsx)(u.L9,{link:!0,tag:"a",...c({slug:a,name:s,selectedDates:g}),children:s})]}),(0,r.jsx)(em.C,{productListings:R,selectedDates:g})]})};var ej=n(96966),e_=n(74602),eP=n(4106),eb=n(22778),ey=n(42025),eL=n(56092),eN=n(23730),eA=n(61819),ew=n(83631),eD=n(20408),e$=function(e){return e.OFF_PLATFORM="off_platform",e.INAPPROPRIATE="inappropriate",e.MISLEADING="misleading",e.PROHIBITED="prohibited",e.SCAM="scam",e.DUPLICATE="duplicate",e.WRONG_CATEGORY="wrong_category",e.STOLEN_CONTENT="stolen_content",e.OTHER="other",e}({});let ek=e=>{let{productListingId:t,reportMutation:n,onSuccess:l}=e,i=(0,h.WD)(),s=(0,e_.d)(),a=(0,ew.mN)({defaultValues:{reason:"",notes:""},mode:"onChange"}),{control:d,reset:c,getValues:p,watch:g,trigger:E}=a,{isValid:R}=(0,ew.lN)({control:d}),x=g("reason"),m=(0,o.useMemo)(()=>[{id:e$.OFF_PLATFORM,title:i("CENSORSHIP.REPORT_LISTING_REASONS.OFF_PLATFORM.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.OFF_PLATFORM.DESCRIPTION")},{id:e$.INAPPROPRIATE,title:i("CENSORSHIP.REPORT_LISTING_REASONS.INAPPROPRIATE.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.INAPPROPRIATE.DESCRIPTION")},{id:e$.MISLEADING,title:i("CENSORSHIP.REPORT_LISTING_REASONS.MISLEADING.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.MISLEADING.DESCRIPTION")},{id:e$.PROHIBITED,title:i("CENSORSHIP.REPORT_LISTING_REASONS.PROHIBITED.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.PROHIBITED.DESCRIPTION")},{id:e$.SCAM,title:i("CENSORSHIP.REPORT_LISTING_REASONS.SCAM.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.SCAM.DESCRIPTION")},{id:e$.DUPLICATE,title:i("CENSORSHIP.REPORT_LISTING_REASONS.DUPL
1ICATE.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.DUPLICATE.DESCRIPTION")},{id:e$.WRONG_CATEGORY,title:i("CENSORSHIP.REPORT_LISTING_REASONS.WRONG_CATEGORY.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.WRONG_CATEGORY.DESCRIPTION")},{id:e$.STOLEN_CONTENT,title:i("CENSORSHIP.REPORT_LISTING_REASONS.STOLEN_CONTENT.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.STOLEN_CONTENT.DESCRIPTION")},{id:e$.OTHER,title:i("CENSORSHIP.REPORT_LISTING_REASONS.OTHER.TITLE"),description:i("CENSORSHIP.REPORT_LISTING_REASONS.OTHER.DESCRIPTION")}],[i]),O=(0,o.useCallback)(e=>{var r;if(n.isPending)return;let o=(null!=(r=e.notes)?r:"").trim();n.mutate({productListingId:t,reason:e.reason,notes:o.length>0?o:void 0},{onSuccess:()=>{l(),c({reason:"",notes:""})},onError:e=>(0,eD.z)(e,{toast:s,translate:i})})},[l,t,n,c,s,i]),S=i("CENSORSHIP.REPORT_LISTING.SELECT_REASON")+":",f=i("CENSORSHIP.REPORT"),I=i("CENSORSHIP.REPORT_LISTING_REASONS.OTHER.PLACEHOLDER"),v=i("CENSORSHIP.REPORT_LISTING_REASONS.OFF_PLATFORM.PLACEHOLDER"),T=i("CENSORSHIP.ADDITIONAL_DETAILS_PLACEHOLDER_OPTIONAL"),C=x===e$.OFF_PLATFORM?v:x===e$.OTHER?I:T;return(0,r.jsx)(ew.Op,{...a,children:(0,r.jsxs)(eA.lV,{flexDirection:"column",gap:"$3",onSubmit:a.handleSubmit(O),children:[(0,r.jsx)(u.fz,{children:S}),(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(ew.xI,{name:"reason",control:d,rules:{required:i("CENSORSHIP.REPORT_LISTING.SELECT_REASON")},render:e=>{var t;let{field:n,fieldState:l}=e;return(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(eN.z,{selected:n.value?n.value:"__UNSELECTED__",onChange:e=>{n.onChange(e),E("notes")},items:m.map(e=>({value:e.id,label:(0,r.jsxs)(u.dE,{flex:1,children:[(0,r.jsx)(u.fz,{fontWeight:"bold",mb:"$0.5",children:e.title}),(0,r.jsx)(u.fz,{type:"small",color:"$muted",children:e.description})]})}))}),(null==(t=l.error)?void 0:t.message)&&(0,r.jsx)(u.fz,{type:"small",color:"$destructive",children:l.error.message})]})}}),(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(u.fz,{children:i("CENSORSHIP.ADDITIONAL_DETAILS_LABEL")}),(0,r.jsx)(ew.xI,{name:"notes",control:d,rules:{validate:e=>{let t=p("reason");return t!==e$.OTHER&&t!==e$.OFF_PLATFORM||(null!=e?e:"").trim().length>0||i("CENSORSHIP.REPORT_LISTING.PROVIDE_REASON")}},render:e=>{var t,l;let{field:i,fieldState:s}=e;return(0,r.jsx)(eL.p,{name:"notes",value:null!=(l=i.value)?l:"",onChange:i.onChange,onBlur:i.onBlur,placeholder:C,error:null==(t=s.error)?void 0:t.message,disabled:n.isPending})}})]})]}),(0,r.jsx)(eA.lV.Trigger,{asChild:!0,disabled:!R,children:(0,r.jsx)(u.$n,{mt:"$1",type:"primary",label:f,loading:n.isPending,disabled:!R})})]})})},eM=e=>{let{open:t,onOpenChange:n,modalTitle:l,productListingId:i,reportMutation:s,onReportSuccess:o}=e;return(0,r.jsx)(ey.a,{modalKey:"report_listing",title:l,userCanClose:!0,open:t,safeAreaInsets:{bottom:!1},onOpenChange:n,fullScreenOnMobile:!0,children:(0,r.jsx)(u.dE,{flex:1,overflow:"scroll",children:(0,r.jsx)(u.dE,{px:"$screen",gap:"$3",children:t?(0,r.jsx)(ek,{productListingId:i,reportMutation:s,onSuccess:o}):null})})})},eH=e=>{let{productListingId:t}=e,[n,l]=(0,o.useState)(!1),[i,s]=(0,o.useState)(!1),a=(0,h.WD)(),d=(0,e_.d)(),{isLoggedIn:c}=(0,m.useApi)(),p=(0,eb.e)(),g=(0,o.useCallback)(()=>{l(!0),s(!1)},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.k1,{onPress:()=>{if(!n){if(!c)return void d.show({title:a("CENSORSHIP.REPORT_SUBMIT_ERROR.LOGIN_TITLE"),description:a("CENSORSHIP.REPORT_SUBMIT_ERROR.LOGIN_MESSAGE"),type:"destructive"});s(!0)}},flexDirection:"row",alignItems:"center",children:[(0,r.jsx)(u.dE,{width:20,children:p.isPending?(0,r.jsx)(eP.A,{}):(0,r.jsx)(u.hh,{color:"$muted",Icon:ej.A,width:14,height:12})}),(0,r.jsx)(u.fz,{type:"small",$gtMd:{type:"details"},ml:"$0.5",mb:0,cursor:n?"default":"pointer",children:n?a("CENSORSHIP.REPORT_LISTING.REPORTED"):a("CENSORSHIP.REPORT_LISTING.REPORT")})]}),(0,r.jsx)(eM,{open:i,onOpenChange:s,modalTitle:a("CENSORSHIP.REPORT_LISTING.MODAL_TITLE"),productListingId:t,reportMutation:p,onReportSuccess:g})]})};var eU=n(52187);let eW=e=>{let{open:t,onOpenChange:n,children:l}=e,{setFlowIntent:i,unsetFlowIntent:s}=(0,P.F)(),a=(0,h.WD)();return(0,o.useEffect)(()=>{t?i(j.t9.ORDER):s()},[i,s,t]),(0,r.jsx)(_.w,{fullScreenOnMobile:!0,modalKey:"send_chat_button",open:t,onOpenChange:n,userCanClose:!0,title:a("PRODUCT.CONTACT_VENDOR"),minWidth:(0,H.Y)("$desktopModalMaxWidth"),children:(0,r.jsx)(r.Fragment,{children:t?l:null})})};var eF=n(92022),ez=n(2791),eB=n(74671),eG=n(80881),eV=n(4868),eq=n(77855),eY=n(80602),eQ=n(43548),eK=n(188),eZ=n(93977),eJ=n(92826),eX=n(37681);let e0=(0,o.memo)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:[(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.65,d:"M13.493 19.072c.586.285 1.23.431 1.882.428A4.64 4.64 0 0 0 18.75 18a5.51 5.51 0 0 0 4.5 1.5M11.134 8.477l
1-.767 14.761M4.288 23.25 9.234 7.855M9.234 7.855l8.276 2.709a.752.752 0 0 0 .975-.861 4.73 4.73 0 0 0-3.6-4.015c-3.75-.75-5.25 1.5-5.25 1.5l-.4.667"}),(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.65,d:"M9.234 7.855 1.7 9.9a.75.75 0 0 1-.934-.874 4.75 4.75 0 0 1 3.616-4.088c2.182-.437 4.273 0 5.528 1.925M14.078 5.568l3.1-3.117a.747.747 0 0 0-.208-1.211 4.87 4.87 0 0 0-5.088.51c-1.7 1.273-1.5 3.938-1.5 3.938v.769"}),(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.65,d:"m5.679 4.785-1.95-2.117a.748.748 0 0 1 .393-1.242c.827-.16 1.668-.24 2.51-.238A5.08 5.08 0 0 1 10.6 3.76M.75 23.25h22.5"})]})),e1=(0,U.I)(u.dE,{name:"VacationMode",backgroundColor:"$destructive",paddingTop:"$2",paddingBottom:"$2",paddingHorizontal:"$2",borderRadius:"$1"}),e2=(0,U.I)(u.fz,{color:"$background",$desktop:{type:"details"}}),e5=e1.styleable(e=>{let{label:t,...n}=e,l=(0,h.WD)();return(0,r.jsxs)(e1,{...n,gap:"$1",children:[(0,r.jsxs)(u.k1,{children:[(0,r.jsx)(u.dE,{mr:"$1.5",width:20,justifyContent:"center",children:(0,r.jsx)(u.hh,{Icon:e0,size:20})}),(0,r.jsx)(u.Lb,{tag:"h2",color:"$background",children:l("PRODUCT.VACATION_MODE.HEADER")})]}),(0,r.jsx)(e2,{children:t})]})});function e4(e){let{slug:t}=e,{data:n,isError:l,error:i}=(0,eG.$)(t);if(l)throw i;return n?(0,r.jsx)(e6,{productListing:n,slug:t}):null}function e6(e){var t,n,a,c,p,g,E,R,x,S,f,I,T,_,P,y,N,$,k,M,H,U,W,F;let{productListing:z,slug:B}=e,{product:G,location:q}=z,{category:Q=null}=G,K=(0,h.WD)(),Z=(0,er.cq)(),{data:J}=(0,l.Jd)(),X=(0,O.usePreferencesContext)(e=>e.language),ee=(0,d.useSearchContext)(e=>e.location),et=(0,d.useSearchContext)(e=>e.selectedDates),en=((e,t)=>{let n=(0,er.cq)(),{categoryLinkProps:r}=(0,ev.m)(),l=(0,h.WD)();return(0,o.useMemo)(()=>{if(!e)return[];let i=[{label:l("BREADCRUMBS.ALL_CATEGORIES"),linkProps:n.linkProps(el.JZ.categories())},...e.breadcrumbs.filter(e=>e.showInNavigation).map(e=>({label:e.name,linkProps:r({slug:e.slug,name:e.name,selectedDates:t})}))||[]];return e.showInNavigation&&i.push({label:e.name,linkProps:r({slug:e.slug,name:e.name,selectedDates:t})}),i},[e,r,n,t,l])})(Q,et),es=(0,o.useMemo)(()=>q?"number"==typeof q.zipLatitude&&"number"==typeof q.zipLongitude?[q.zipLongitude,q.zipLatitude]:q.bestLocation?q.bestLocation.position.coordinates:null:null,[q]),eo=null==J?void 0:J.customer.id,ea=!!eo&&(null==(t=G.owner)?void 0:t.id)===eo,{showArticle:ed}=(0,i.B)(),ec=(0,o.useCallback)(()=>{ed(s.PF.CANCELLATION)},[ed]),eu=null!=(P=null==(n=G.owner)?void 0:n.vendor.name)?P:void 0,ep=null!=eu?eu:K("PRODUCT.VENDOR_NAME_FALLBACK"),{data:eg}=v({slug:B,selectedDates:et}),[eE,eR]=(0,o.useState)(!1),em=(0,o.useCallback)(e=>eR(e),[]),eO=(0,o.useCallback)(()=>eR(!0),[]),ef=(e=>{let{productReviewCount:t,vendorOtherReviewCount:n,categoryReviewCount:r}=e;return!(t>0||n>0)&&r>0})({productReviewCount:G.reviews.length,vendorOtherReviewCount:G.vendorOtherReviews.length,categoryReviewCount:null!=(y=null==(c=G.category)||null==(a=c.reviews)?void 0:a.numberOfProductReviews)?y:0}),eT=(e=>{let{isSnoozedRightNow:t,ownerStatusText:n,ownerName:r}=e;return t&&n&&r?"".concat(r," ").concat(n):null})({isSnoozedRightNow:!!(null==(p=G.owner)?void 0:p.isSnoozedRightNow),ownerStatusText:null==(g=G.owner)?void 0:g.vendor.statusText,ownerName:null==(E=G.owner)?void 0:E.vendor.name}),{setItemData:ej}=(0,eY._)();(e=>{let{priceRangeLabel:t,priceLabel:n,handleBookingPress:r,selectedDates:l,language:i,isLenderOnVacation:s,isMyProduct:a,isPublished:d,setItemData:c}=e,u=(0,h.WD)(),p=(e=>{let{selectedDates:t,language:n}=e,r=(0,h.WD)(),l=(0,eq.Y)(t,n)||void 0;return l?l+(0,eq.b)(t,r):void 0})({selectedDates:l,language:i}),g=(0,o.useMemo)(()=>d?a?{type:"ownListing",label:u("PRODUCT.OWN_LISTING")}:s?{type:"vacation",label:u("PRODUCT.VACATION_MODE.HEADER")}:void 0:{type:"unavailable",label:u("PRODUCT.UNPUBLISHED")},[s,a,d,u]),E=l?n||void 0:t||void 0;(0,o.useEffect)(()=>{c({priceLabel:E,onButtonPress:r,dateString:p,notice:g})},[E,p,r,g,c])})({priceRangeLabel:null==z||null==(R=z.product.priceRange)?void 0:R.label,priceLabel:(null==eg?void 0:eg.label)||"",handleBookingPress:eO,selectedDates:et,language:X,isLenderOnVacation:!!eT,isMyProduct:ea,isPublished:null==(N=G.isPublished)||N,setItemData:ej});let e_=(e=>{let{isPublished:t,name:n}=e,r=(0,h.WD)();return"".concat(t?n:"".concat(r("PRODUCT.UNPUBLISHED"),": ").concat(n))})({isPublished:!!G.isPublished,name:G.name}),[eP,eb]=(0,o.useState)(!1),[ey,eL]=(0,o.useState)(!1),{onSubmit:eN,isSubmitting:eA}=(0,eV.Q)({productListingId:z.id,onAccessFailure:()=>eL(!1)}),ew=(0,o.useCallback)(e=>{Z.push(el.JZ.rental({orderId:e,isInitialRequest:!0}))},[Z]),{isRedirecting:eD,submitOrderRequest:e$}=(e=>{let{productListingId:t,onOrderRequestSuccess:n}=e,r=(0,ez.v)({type:j.Bu.REQUEST}),{api:l}=(0,m.useApi)(),[i,s]=(0,o.useState)(!1),a=(0,eB.l)();return{isRedirecting:i,submitOrderRequest:(0,o.useCallback)(async(e,i)=>{if(e)try{let o={productListingId:t,selectedDates:e,...i>1?{quantity:i}:{}},a=async()=>{s(!0);let e=await l.order.create(o);(0,eF.s)({eventName:"Order created",parameters:{type:"request"}}),null==n||n(e.id)};await r(a,()=>{s(!1)})}catch(e){a(e)}finally{s(!1)}},[l.order,r,a,n,t])}})({productListingId:z.id,onOrderRequestSuccess:ew});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.az,{display:"none",$mobile:{display:"contents"},children:(0,r.jsx)(eX.M,{isOpen:eP,onClose:()=>eb(!1)})}),(0,r.jsx)(eK.p,{left:(0,r.jsx)(eQ.oq,{}),center:(0,r.jsx)(eJ.j,{placeholder:K("SEARCH.FILTER_PLACEHOLDER"),onPress:()=>eb(!0)})}),(0,r.jsxs)(u.dE,{maxWidth:"1280px",flex:1,mx:"auto",gap:"$3",$desktop:{gap:"$4"},pb:"$4",children:[(0,r.jsxs)(u.az,{flex:1,flexDirection:"column",$desktop:{flexDirection:"row",gap:"$4"},gap:"$2",children:[(0,r.jsxs)(u.dE,{flex:1,gap:"$2",children:[(0,r.jsxs)(u.dE,{position:"relative",$desktop:{px:"$screen"},children:[(0,r.jsx)(u.k1,{p:"$2",position:"absolute",top:0,gap:"$2",alignItems:"center",justifyContent:"flex-end",$desktop:{dis
1play:"none"},children:(0,r.jsx)(D.Qt,{productListingId:z.id})}),(0,r.jsx)(V,{images:G.images||[],productName:G.name},G.id)]}),(0,r.jsxs)(u.dE,{gap:"$3",$desktop:{gap:"$4"},px:"$screen",children:[(0,r.jsxs)(u.dE,{gap:"$1",$desktop:{gap:"$2"},children:[(0,r.jsx)(ex,{breadcrumbs:en,title:e_,rating:null!=($=null==(x=G.stats)?void 0:x.averageRating)?$:0,reviewCount:G.reviews.length,locationName:null!=(k=null==(S=q.bestLocation)?void 0:S.name)?k:null,distance:null!=(M=null==(f=z.labels)?void 0:f.distance)?M:null}),(0,r.jsxs)(u.dE,{gap:"$1",$desktop:{display:"none"},children:[eT?(0,r.jsx)(e5,{label:eT}):null,G.category&&ef?(0,r.jsx)(A,{category:G.category.name,categoryRating:(null==(I=G.category.reviews)?void 0:I.averageProductRating)||0,linkProps:Z.linkProps(el.JZ.category({slug:G.category.slug,selectedDates:et}))}):null]}),(0,r.jsxs)(L.Z,{flexDirection:"column",overflow:"hidden",$desktop:{flexDirection:"row"},children:[(0,r.jsxs)(u.dE,{flex:1,padding:"$4",gap:"$2",children:[(0,r.jsx)(u.dE,{gap:"$1",children:(0,r.jsx)(ei,{productListing:z,contextualCancellationTerms:null!=(H=null==eg?void 0:eg.contextualCancellationTerms)?H:null})}),!ea&&(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsxs)(u.dE,{gap:"$0.5",marginTop:"$1",$desktop:{display:"none"},children:[(0,r.jsx)(u.$n,{type:"primary",size:"small",label:K("PRODUCT.SEND_ORDER_REQUEST"),onPress:eO,disabled:!G.isPublished}),!G.isPublished&&(0,r.jsx)(u.W8,{small:!0,color:"$muted",children:K("PRODUCT.UNPUBLISHED")})]}),(0,r.jsx)(u.$n,{type:"secondary",size:"small",label:K("PRODUCT.CONTACT_VENDOR"),onPress:()=>{eL(!0)}}),(0,r.jsx)(eW,{open:ey,onOpenChange:eL,children:(0,r.jsx)(u.dE,{px:"$screen",flex:1,minHeight:0,width:"100%",overflow:"scroll",children:(0,r.jsx)(eU.H,{productName:G.name,otherPartsName:null!=(U=null==(T=z.product.owner)?void 0:T.vendor.name)?U:"",onSubmit:eN,isSubmitting:eA})})})]})]}),es?(0,r.jsx)(u.dE,{display:"none",$desktop:{display:"flex",width:"33%",maxWidth:"300px"},children:(0,r.jsx)(eh,{coordinates:es})}):null]})]}),G.description&&(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(u.Lb,{tag:"h2",children:K("ORDER.PRODUCT_TAB_INFO")}),(0,r.jsx)(Y,{text:G.description})]}),G.cancellationTermsText&&(0,r.jsxs)(u.dE,{gap:"$1",children:[(0,r.jsx)(u.Lb,{tag:"h2",children:K("PRODUCT.PRODUCT_TAB_TERMS")}),(0,r.jsx)(w,{text:G.cancellationTermsText,onPress:ec,link:K("GLOBAL.READ_MORE")})]}),es?(0,r.jsxs)(u.dE,{gap:"$1",display:"flex",$desktop:{display:"none"},children:[(0,r.jsx)(u.Lb,{tag:"h2",children:K("PRODUCT.APPROXIMATE_LOCATION")}),(0,r.jsx)(u.az,{width:"100%",aspectRatio:1.5,borderRadius:"$4",overflow:"hidden",children:(0,r.jsx)(eh,{coordinates:es})}),(0,r.jsx)(u.fz,{type:"body",color:"$muted",children:K("PRODUCT.EXACT_LOCATION_AFTER_BOOKING")})]}):null,G.reviews.length>0?(0,r.jsxs)(u.dE,{gap:"$1",$desktop:{gap:"$2"},children:[(0,r.jsx)(u.Lb,{tag:"h2",children:K("PRODUCTREVIEWS.HEADING")}),(0,r.jsx)(eZ.j,{reviews:G.reviews||[],canReply:ea,selectedDates:et})]}):null,G.vendorOtherReviews.length>0&&eu?(0,r.jsxs)(u.dE,{gap:"$1",$desktop:{gap:"$2"},children:[(0,r.jsx)(u.Lb,{tag:"h2",children:K(G.reviews.length>0?"PRODUCTREVIEWS.VENDOR_OTHER_REVIEWS_HEADING":"PRODUCTREVIEWS.VENDOR_REVIEWS_HEADING",{vendorName:eu})}),(0,r.jsx)(eZ.j,{reviews:G.vendorOtherReviews||[],canReply:!1,selectedDates:et})]}):null]})]}),(0,r.jsxs)(u.dE,{gap:"$2",display:"none",$desktop:{display:"flex",width:"360px",pr:"$screen"},"$platform-web":{alignSelf:"flex-start",position:"sticky",top:16},$smHeight:{position:"relative",top:0},children:[eT?(0,r.jsx)(e5,{label:eT}):null,G.category&&ef?(0,r.jsx)(A,{category:G.category.name,categoryRating:(null==(_=G.category.reviews)?void 0:_.averageProductRating)||0,linkProps:Z.linkProps(el.JZ.category({slug:G.category.slug,selectedDates:et}))}):null,(0,r.jsx)(L.Z,{padding:"$2",gap:"$2",children:(0,r.jsx)(C,{slug:B,isMyProduct:ea,ownerName:ep,isUnpublished:!G.isPublished,unavailableDates:G.unavailableDates,minimumRentalDays:null!=(W=G.minimumRentalDays)?W:1,stockLevel:G.stockLevel,isRedirecting:eD,submitOrderRequest:e$})}),G.prices?(0,r.jsx)(eI,{prices:G.prices,minimumRentalDays:G.minimumRentalDays}):null]})]}),G.owner?(0,r.jsx)(eS,{currentProductListingId:z.id,vendor:G.owner.vendor}):null,Q?(0,r.jsx)(eC,{currentProductListingId:z.id,category:Q,position:null==ee?void 0:ee.position}):null,(0,r.jsx)(u.dE,{px:"$screen",children:(0,r.jsx)(eH,{productListingId:z.id})})]}),(0,r.jsx)(b,{open:eE,onOpenChange:em,children:(0,r.jsx)(u.dE,{flex:1,padding:"$screen",gap:"$2",width:"100%",minHeight:0,"$platform-web":{overflowY:"auto"},children:(0,r.jsx)(C,{slug:B,isMyProduct:ea,ownerName:ep,isUnpublished:!G.isPublished,unavailableDates:G.unavailableDates,minimumRentalDays:null!=(F=G.minimumRentalDays)?F:1,stockLevel:G.stockLevel,isRedirecting:eD,submitOrderRequest:e$})})})]})}},20408:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(83672),l=n(78179);function i(e,t){let{toast:n,translate:i}=t;return e instanceof r.v3?void n.show({title:i("CENSORSHIP.REPORT_SUB
1MIT_ERROR.LOGIN_TITLE"),description:i("CENSORSHIP.REPORT_SUBMIT_ERROR.LOGIN_MESSAGE"),type:"destructive"}):e instanceof r.hD&&e.messagesToUser?void n.show({title:e.messagesToUser.title,description:e.messagesToUser.msg,type:"destructive"}):void((0,l.C)(e),n.show({title:i("GENERIC_ERROR.TITLE"),description:i("GENERIC_ERROR.MSG"),type:"destructive"}))}},22778:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(20169),l=n(81562);let i=()=>{let{api:e}=(0,r.useApi)();return(0,l.useMutation)({mutationFn:t=>{let{userId:n,productListingId:r,reason:l,notes:i}=t;return e.censorship.report({userId:n,productListingId:r,reason:l,notes:i})}})}},31362:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(54568),l=n(23843),i=n(44119),s=n(42025),o=n(73459),a=n(7620),d=n(15080);let c=e=>{let{flowIntent:t,unsetFlowIntent:n}=(0,d.F)(),c=(0,o.WD)(),[u,h]=(0,a.useState)(!1),p=(0,a.useCallback)(()=>{h(!0)},[]),g=(0,a.useCallback)(e=>{h(!1),e.onOpenChange(!1),n()},[n]),E=(0,a.useCallback)((e,t)=>{if(!t)return void p();e.onOpenChange(t)},[p]),R=(0,a.useMemo)(()=>t===l.t9.ORDER?{...e,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.F,{title:c("FLOW_INTENT.ORDER.ALERT.TITLE"),description:c("FLOW_INTENT.ORDER.ALERT.CONTENT"),show:u,onDismiss:()=>h(!1),dismissLabel:c("FLOW_INTENT.ORDER.ALERT.CONTINUE"),actions:[{text:c("FLOW_INTENT.ORDER.ALERT.CANCEL"),onPress:()=>g(e)}]}),e.children]}),onOpenChange:t=>E(e,t)}:e,[t,e,c,u,g,E]);return(0,r.jsx)(s.a,{...R})}},37681:(e,t,n)=>{"use strict";n.d(t,{M:()=>m});var r=n(54568),l=n(42025),i=n(73459),s=n(7620),o=n(35035),a=n(21921),d=n(56629),c=n(7996),u=n(81919),h=n(63134),p=n(78536),g=n(81410),E=n(67496),R=n(56368);function x(e){let{closeModal:t,categorySlug:n,categoryId:l,categoryName:x,locationSlug:m,initialQuery:O}=e,S=(0,i.WD)(),{fieldProps:f,autocompleteProps:I,showAutoComplete:v,searchScope:T,setSearchScope:C,isInCategory:j}=function(e){let{closeModal:t,categorySlug:n,categoryId:r,locationSlug:l,initialQuery:i}=e,o=!!n,[a,d]=(0,s.useState)(o?"category":"global"),c=(0,R.T)("category"===a?r:void 0),{handleSubmit:u,handleSelectSuggestion:h}=(0,E.T)({categorySlug:n,locationSlug:l,searchScope:a,onBeforeNavigate:t,addToHistoryOnSubmit:!0});return{...(0,g.u)({initialQuery:i,autocomplete:c,onSubmit:u,onSelectSuggestion:h,enableClickOutside:!1}),searchScope:a,setSearchScope:d,isInCategory:o}}({closeModal:t,categorySlug:n,categoryId:l,locationSlug:m,initialQuery:O}),_=(0,u.E)(f.value,I,{hintWhenEmpty:j});return(0,r.jsxs)(o.dE,{flex:1,children:[(0,r.jsxs)(o.dE,{px:"$screen",gap:"$1",paddingBottom:"$0.5",children:[(0,r.jsx)(o.k1,{children:(0,r.jsx)(h.L,{...f,height:48,autoFocus:!0,showSubmitButton:!1,placeholder:"category"===T?S("SEARCH.WITHIN_CATEGORY",{categoryName:null!=x?x:""}):S("SEARCH.FILTER_PLACEHOLDER"),variant:"muted"})}),j&&(0,r.jsx)(a.i,{rounded:!0,size:"small",flexWrap:"nowrap",equalItems:!0,selected:T,onChange:e=>C(e),items:[{label:S("SEARCH.SEARCH_CATEGORY"),value:"category"},{label:S("SEARCH.SEARCH_GLOBAL"),value:"global"}]})]}),(0,r.jsx)(o.BM,{flex:1,px:"$screen",keyboardShouldPersistTaps:"handled",contentContainerStyle:{gap:(0,d.Y)("$2")},children:v?(0,r.jsx)(o.dE,{children:(0,r.jsx)(c.j,{..._,onSelect:I.onSelect,categoryTitle:S("SEARCH.CATEGORY_SUGGESTION"),searchTitle:S("SEARCH.SEARCH_FOR"),historyTitle:S("SEARCH.RECENT_SEARCHES"),minLengthHint:S("SEARCH.QUERY_TOO_SHORT",{minLength:p.$})})}):null})]})}let m=e=>{let{isOpen:t,onClose:n,categorySlug:o,categoryId:a,categoryName:d,locationSlug:c,initialQuery:u}=e,h=(0,i.WD)(),p=(0,s.useCallback)(()=>n(),[n]);return(0,r.jsx)(l.a,{open:t,onOpenChange:e=>{e||n()},fullScreenOnMobile:!0,userCanClose:!0,modalKey:"search_mobile_modal",title:h("SEARCH.SEARCH_LABEL"),disableAnimation:!0,children:t?(0,r.jsx)(x,{closeModal:p,categorySlug:o,categoryId:a,categoryName:d,locationSlug:c,initialQuery:u}):null})}},37775:(e,t,n)=>{Promise.resolve().then(n.bind(n,19385)),Promise.resolve().then(n.bind(n,20169)),Promise.resolve().then(n.bind(n,11961)),Promise.resolve().then(n.bind(n,27241)),Promise.resolve().then(n.bind(n,98720)),Promise.resolve().then(n.bind(n,80681)),Promise.resolve().then(n.bind(n,13431)),Promise.resolve().then(n.bind(n,4869)),Promise.resolve().then(n.bind(n,32944)),Promise.resolve().then(n.bind(n,50564)),Promise.resolve().then(n.bind(n,10736)),Promise.resolve().then(n.bind(n,81562)),Promise.resolve().then(n.bind(n,79428)),Promise.resolve().then(n.bind(n,82942)),Promise.resolve().then(n.bind(n,27736)),Promise.resolve().then(n.bind(n,53472)),Promise.resolve().then(n.bind(n,45420)),Promise.resolve().then(n.bind(n,77084)),Promise.resolve().then(n.t.bind(n,45165,23))},38621:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(12155),l=n(7620);let i=()=>{let e=(0,r.z)(e=>e.setErrorOpts);return(0,l.useCallback)(t=>{let{title:n,description:r}=t;return new Promise(t=>{e({title:n,description:r,onClose:e=>{t(null!=e?e:{shouldRetry:!1})}})})},[e])}},45278:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(54568);let l=(0,n(7620).memo)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:16,fill:"none",viewBox:"0 0 17 16",...e,children:[(0,r.jsx)("g",{clipPath:"url(#a)",children:(0,r.jsx)("path",{fill:"currentColor",d:"M.314 8a1 1 0 0 0 1 1h5.833a.167.167 0 0 1 .167.167V15a1 1 0 0 0 2 0V9.167A.167.167 0 0 1 9.48 9h5.834a1 1 0 1 0 0-2H9.48a.167.167 0 0 1-.166-.167V1a1 1 0 0 0-2 0v5.833A.167.167 0 0 1 7.147 7H1.314a1 1 0 0 0-1 1"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"a",children:(0,r.jsx)("path",{fill:"currentColor",d:"M.314 0h16v16h-16z"})})})]}))}
1,55004:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var r=function(e){return e.test="test",e.quantitySelection="quantitySelection",e.aiCategorySuggestion="aiCategorySuggestion",e}({})},56801:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(54568);let l=(0,n(7620).memo)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:[(0,r.jsx)("path",{fill:"currentColor",d:"M7.5 12a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M13.5 10.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M16.5 12a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"}),(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C7.39 1 4.53 2.02 2.874 3.902 1.236 5.763 1 8.228 1 10.5c0 2.277.242 4.656 1.408 6.477 1.163 1.817 3.121 2.904 6.085 3.014l1.907 2.542a2 2 0 0 0 3.2 0l1.907-2.542c2.964-.11 4.922-1.197 6.085-3.014C22.758 15.156 23 12.777 23 10.5c0-2.272-.236-4.737-1.874-6.598C19.469 2.019 16.61 1 12 1m-9 9.5c0-2.228.264-4.013 1.376-5.277C5.469 3.981 7.61 3 12 3c4.39 0 6.53.98 7.624 2.223C20.736 6.487 21 8.273 21 10.5c0 2.223-.258 4.094-1.092 5.398C19.136 17.104 17.75 18 15 18a1 1 0 0 0-.8.4L12 21.333 9.8 18.4A1 1 0 0 0 9 18c-2.75 0-4.136-.896-4.908-2.102C3.258 14.594 3 12.723 3 10.5",clipRule:"evenodd"})]}))},60872:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(7620),l=n(51762),i=n(5495),s=n(63614),o=n(99046);let a=()=>{let e=(0,l.cq)(),{prefetchCategory:t,prefetchListings:n}=(0,o.x)();return(0,r.useMemo)(()=>{let r=(e,r)=>{let{slug:l,name:i,locationSlug:o,q:a}=e;return{...r,onPressIn:()=>{(0,s.HB)(l,{name:i}),t({slug:l,locationSlug:o})},onPress:e=>{n({slug:l,q:a}),r.onPress(e)}}},l=e=>{let{slug:t,selectedDates:n,locationSlug:r,q:l}=e;return i.JZ.category({slug:t,selectedDates:n,locationSlug:r,q:l})};return{categoryLinkProps:t=>r(t,e.linkProps(l(t))),categoryUrlStateLinkProps:t=>r(t,e.urlStateLinkProps(l(t)))}},[e,t,n])}},62590:(e,t,n)=>{"use strict";n.d(t,{sc:()=>o,yk:()=>h,J3:()=>d,VO:()=>u,$:()=>a}),n(23843);var r=n(95207),l=n(72646),i=n(7620),s=n(27742);let o=()=>Promise.resolve(navigator.onLine),a=()=>{let[e,t]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{t(navigator.onLine);let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}},[]),e},d=e=>{let t=()=>{e()};return window.addEventListener("online",t),()=>{window.removeEventListener("online",t)}},c=(0,r.h)("hygglo:app-state:device-info");function u(){var e;let t=null==(e=(0,l.H4)()[0])?void 0:e.timeZone;if(!t)throw Error("Timezone is not defined");return t}function h(e,t){c("onAppStateChange subscribing for targetState: ".concat(e));let n=s.A.addEventListener("change",n=>{n===e&&(c("onAppStateChange callback triggered for targetState: ".concat(e)),t())});return()=>{c("onAppStateChange unsubscribe targetState: ".concat(e)),n.remove()}}},63134:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(54568),l=n(33598),i=n(35035),s=n(56092);let o=(0,n(7620).forwardRef)((e,t)=>{let{autoFocus:n,height:o=64,value:a,onChangeText:d,onFocus:c,onSubmitEditing:u,onSubmitPress:h,showSubmitButton:p=!0,submitLabel:g,submitDisabled:E,placeholder:R,error:x,disabled:m,variant:O,pointerEvents:S}=e;return(0,r.jsx)(s.p,{autoFocus:n,onChange:d,onFocus:c,onSubmitEditing:u,rounded:!0,ref:t,returnKeyType:"done",value:a,muted:"muted"===O,contentPadding:p?{paddingRight:"$1"}:void 0,Prefix:(0,r.jsx)(i.hh,{Icon:l.A,marginRight:"$1",size:20,color:"$foreground"}),Suffix:p?(0,r.jsx)(i.$n,{label:g,type:"primaryAccent",height:o-.25*o,rounded:!0,onPress:h,px:"$3",py:"$0.5",disabled:m||E}):void 0,autoCapitalize:"none",autoCorrect:!1,fixedHeight:o,placeholder:R,spellCheck:!1,disabled:m,error:x,pointerEvents:S})});o.displayName="SearchField"},69110:(e,t,n)=>{"use strict";n.d(t,{PF:()=>r,fp:()=>i,wm:()=>l});var r=function(e){return e.INSURANCE_OWNER="insurance_owner",e.INSURANCE_RENTER="insurance_renter",e.HOW_IT_WORKS_IN_SHORT="how_it_works_in_short",e.VALUATION="valuation",e.CANCELLATION="cancellation",e.LOCATIONS_OWNER="locations_owner",e.PAYOUTS="payouts",e.VP_VERIFIED="vp_verified",e.VP_CUSTOMER_SUPPORT="vp_customer_support",e.VP_FAST_REPLIES="vp_fast_replies",e.VP_EARNINGS="vp_earnings",e.VP_CHEAP="vp_cheap",e.VP_CLOSE_TO_YOU="vp_close_to_you",e.VP_TIME_THAT_SUITS_YOU="vp_time_that_suits_you",e.VP_GOOD_FOR_ENVIRONMENT="vp_good_for_environment",e.VP_COST_OF_USAGE="vp_cost_of_usage",e.VP_NO_RESTRICTIONS="vp_no_restrictions",e.CHAT_MESSAGE_HIDDEN="chat_message_hidden",e}({});let l=e=>i[e.articleType],i={insurance_owner:0x9f17df,insurance_renter:0x9f7337,how_it_works_in_short:0x9eece5,valuation:0x9f3d94,cancellation:0x9f3d53,locations_owner:0x9f8887,payouts:0x9f4c8f,vp_verified:0x9f88b6,vp_customer_support:0x9f8903,vp_fast_replies:0x9f8927,vp_earnings:0x9eff0a,vp_cheap:0x9f8947,vp_close_to_you:0x9f8f04,vp_time_that_suits_you:0x9f8f35,vp_good_for_environment:0x9f8f54,vp_cost_of_usage:0x9f8f83,vp_no_restrictions:0x9f3eb3,chat_message_hidden:0xe26ba7}},72179:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,tA:()=>u});var r=n(20169),l=n(70930),i=n(56435),s=n(27736),o=n(4869),a=n(7620);let d=()=>["featureFlagOverrides"],c="featureFlagOverrides",u=()=>{let e=(0,o.useQueryClient)(),{data:t}=(0,s.useQuery)({queryKey:d(),queryFn:async()=>{let e=await l.I.getItem(c);return e&&"object"==typeof e?e:null},staleTime:1/0,gcTime:1/0}),n=(0,a.useCallback)(async(t,n)=>{let r=e.getQueryData(d()),i=r?{...r,[t]:n}:{[t]:n};await l.I.setItem(c,i),e.setQueryData(d(),i)},[e]);return{featureOverrides:t||null,setFeatureFlagOverride:n,clearOverride:(0,a.useCallback)(async t=>{let n=e.getQueryData(d());if(n){let r={...n};delete r[t],await l.I.setItem(c,r),e.setQueryData(d(),r)}},[e]),clearAllOverrides:(0,a.useCallback)(async()=>{await l.I.removeItem(c),e.setQueryData(d(),null)},[e])}},h=()=>{let e=(()=>{let{api:e}=(0,r.useApi)();return(0,s.useQuery)({...(0,i.j)({queryKey:["featureFlags"],queryFn:()=>e.featureFlags.getFeatureFlags(),staleTime:18e5}),retry:3,retryDelay:e=>Math.min(1e3*2**e,6e4)})})(),{featureOverrides:t}=u(),n=(0,a.useMemo)(()=>t&&0!==Object.keys(t).length?e.data?{...e.data,...t}:t:e.data,[e.data,t]);return{...e,data:n}}},73361:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});let r=(0,n(7620).createContext)(void 0)},75692:(e,t,n)=>{"use strict";n.d(t,{p:()=>S});var r=n(54568),l=n(36083),i=n(35035),s=n(56092),o=n(42025),a=n(87818),d=n(73459),c=n(46840),u=n(61819),h=n(7620),p=n(51762),g=n(5495),E=n(20169),R=n(4869),x=n(81562),m=n(80881);let O=(0,c.I)(i.dE,{name:"Review",padding:"$2",flexDirection:"row",gap:"$1.5",backgroundColor:"$surface",borderRadius:"$3",$desktop:{padding:"$3",borderRadius:"$4",gap:"$2"}}),S=e=>{let{reviewId:t,author:n,authorImage:s,productName:c,rating:u,relativeLabel:E,text:R,productListingSlug:x,canReply:m,reply:S,selectedDates:I}=e,v=(0,d.WD)(),T=(0,p.cq)(),[C,j]=(0,h.useState)(!1),_=T.linkProps(g.JZ.item({slug:x,selectedDates:I}));return(0,r.jsxs)(O,{children:[s?(0,r.jsx)(a.p,{url:s,size:48,focusOnFace:!0}):(0,r.jsx)(i.hh,{width:48,height:48,flexShrink:0,iconSize:{width:36,height:36},Icon:l.A}),(0,r.jsxs)(i.dE,{flex:1,children:[(0,r.jsxs)(i.fz,{children:[(0,r.jsxs)(i.L9,{bold:!0,children:[n," "]}),(0,r.jsxs)(i.L9,{textTransform:"lowercase",children:[v("PRODUCT_REVIEWS.RENT_OUT")," "]}),x?(0,r.jsx)(i.Mz,{..._,bold:!0,color:"$primary",children:c}):(0,r.jsx)(i.L9,{color:"$colorSubtle",children:c})]}),(0,r.jsx)(i.eM,{rating:u,my:"$0.5"}),(0,r.jsx)(i.W8,{small:!0,children:E}),R?(0,r.jsx)(i.fz,{mb:0,mt:"$1.5",type:"body",color:"$foreground",children:R}):null,S?(0,r.jsxs)(i.az,{flexDirection:"column",flex:1,children:[(0,r.jsx)(i.wv,{my:"$2"}),(0,r.jsxs)(i.az,{pl:"$2",flexDirection:"column",gap:"$0.5",children:[(0,r.jsx)(i.iK,{children:v("PRODUCT_REVIEWS.REPLY_FROM_LENDER")}),(0,r.jsx)(i.fz,{type:"body",color:"$foreground",children:S})]})]}
1):m?(0,r.jsxs)(i.az,{flexDirection:"column",alignItems:"flex-end",children:[(0,r.jsx)(i.wv,{my:"$2",width:"100%"}),(0,r.jsx)(i.$n,{label:v("PRODUCT_REVIEWS.REPLY_BUTTON"),type:"background",size:"xsmall",onPress:()=>j(!0)}),(0,r.jsx)(o.a,{modalKey:"reply_review",title:v("PRODUCT_REVIEWS.REPLY_TO_REVIEW"),userCanClose:!0,open:C,safeAreaInsets:{bottom:!1},fullScreenOnMobile:!0,onOpenChange:j,minWidth:400,maxWidth:600,children:C?(0,r.jsx)(i.az,{width:"100%",px:"$2",flex:1,children:(0,r.jsx)(f,{reviewId:t,onSuccess:()=>j(!1),productListingSlug:x})}):null})]}):null]})]})},f=e=>{let{reviewId:t,onSuccess:n,productListingSlug:l}=e,o=(0,d.WD)(),[a,c]=(0,h.useState)(""),{mutate:p,isPending:g,error:O}=(e=>{let{reviewId:t,productListingSlug:n,onSuccess:r,onError:l}=e,{api:i}=(0,E.useApi)(),s=(0,R.useQueryClient)();return(0,x.useMutation)({mutationFn:e=>{let{reply:n}=e;return i.review.replyToReview({reviewId:t,reply:n})},onSuccess:()=>{n&&s.invalidateQueries({queryKey:(0,m.w)(i,n).queryKey}),s.invalidateQueries({queryKey:["ownerReviews"]}),null==r||r()},onError:l})})({productListingSlug:l,reviewId:t,onSuccess:n});return(0,r.jsxs)(u.lV,{onSubmit:()=>{p({reply:a})},flex:1,w:"100%",gap:"$1.5",children:[(0,r.jsx)(s.p,{name:"reply",value:a,onChange:e=>c(e),multiline:!0,numberOfLines:4,fixedHeight:!0}),(0,r.jsx)(i.W8,{mx:"auto",textAlign:"center",children:o("PRODUCT_REVIEWS.REPLY_TO_REVIEW_DESCRIPTION")}),(0,r.jsx)(u.lV.Trigger,{asChild:!0,children:(0,r.jsx)(i.$n,{type:"primary",label:o("PRODUCT_REVIEWS.REPLY_BUTTON"),loading:g})}),O?(0,r.jsx)(i.W8,{mx:"auto",textAlign:"center",color:"$destructive",children:o("PRODUCT_REVIEWS.REPLY_TO_REVIEW_ERROR")}):null]})}},80442:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(7620),l=n(72179);let i=e=>{let{data:t,isLoading:n}=(0,l.h)();return(0,r.useMemo)(()=>({enabled:(null==t?void 0:t[e])===!0,isLoading:n}),[t,e,n])}},80469:(e,t,n)=>{"use strict";n.d(t,{C:()=>g});var r=n(54568),l=n(35035),i=n(56629),s=n(46236),o=n(25848),a=n(94684),d=n(7620),c=n(51762),u=n(5495),h=n(94406),p=n(58162);let g=(0,d.memo)(function(e){let{productListings:t,selectedDates:n=null,itemWidth:g,compact:E=!1,...R}=e,x=(0,c.cq)(),{width:m}=(0,a.v)(),O=(0,s.Qf)(),S=(0,d.useMemo)(()=>{if(void 0!==g)return g;if(E&&O.mobile){let e=(0,i.Y)("$3");return Math.floor((m-2*(0,i.Y)("$screen")-e)/2.1)}return h._},[g,E,m,O.mobile]);return t?(0,r.jsx)(o.B,{width:"auto",horizontal:!0,pagingEnabled:!1,snapToInterval:S+(0,i.Y)("$3"),snapToAlignment:"start",decelerationRate:"fast",showsHorizontalScrollIndicator:!1,...R,children:(0,r.jsx)(l.k1,{width:"auto",flexWrap:"nowrap",gap:"$3",px:"$screen",children:t.map(e=>(0,r.jsx)(p._,{linkProps:{...x.linkProps(u.JZ.item({slug:e.slug,selectedDates:n}))},productListing:e,width:S},e.slug))})}):null})},80602:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(7620),l=n(73361);let i=()=>{let e=(0,r.useContext)(l.x);if(!e)throw Error("Mobile menu context is not initialized");return e}},80881:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,w:()=>s});var r=n(20169),l=n(56435),i=n(27736);let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,l.j)({enabled:!!t,queryKey:["productListing",t],queryFn:()=>e.productListing.get(t),staleTime:3e4,...n})},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{api:n}=(0,r.useApi)();return(0,i.useQuery)(s(n,e,t))}},92826:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(54568),l=n(33598),i=n(35035);let s=(0,n(46840).I)(i.k1,{tag:"button",flex:1,minWidth:0,height:40,alignItems:"center",paddingHorizontal:14,borderWidth:1,borderStyle:"solid",borderColor:"$border",borderRadius:100,backgroundColor:"$surface",cursor:"pointer",focusVisibleStyle:{borderColor:"$primary"},variants:{onPrimary:{true:{backgroundColor:"$white",borderColor:"transparent",focusVisibleStyle:{borderColor:"$foreground"}}}}});function o(e){let{placeholder:t,value:n,onPress:o,onPrimary:a}=e,d=null!=n&&""!==n,c=a?"$black":"$foreground";return(0,r.jsxs)(s,{type:"button",onPrimary:a,onPress:o,children:[(0,r.jsx)(i.hh,{Icon:l.A,size:20,color:c,marginRight:"$1"}),(0,r.jsx)(i.az,{flex:1,minWidth:0,children:(0,r.jsx)(i.L9,{fontSize:15,lineHeight:24,textAlign:"left",numberOfLines:1,ellipsizeMode:"tail",color:d?c:"$placeholder",children:d?n:t})})]})}},93977:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(54568),l=n(35035),i=n(73459),s=n(7620),o=n(75692);let a=e=>{let{canReply:t,reviews:n=[],selectedDates:a}
1=e,d=(0,i.WD)(),[c,u]=(0,s.useState)(3);return 0===n.length?(0,r.jsx)(l.fz,{color:"$colorSubtle",children:d("REVIEWS.NO_REVIEWS")}):(0,r.jsxs)(l.dE,{gap:"$1.5",children:[n.slice(0,c).map(e=>{var n,l;let{id:i,author:{shortName:s,profileImage:d},productListing:c,product:u,rating:h,relativeLabel:p,text:g,reply:E}=e;return(0,r.jsx)(o.p,{productListingSlug:null!=(n=null==c?void 0:c.slug)?n:"",reviewId:i,author:s,authorImage:null!=(l=null==d?void 0:d.thumbnailUrl)?l:null,productName:u.name,rating:h,relativeLabel:p,text:g,reply:E,canReply:t,selectedDates:a},"".concat(s,"-").concat(i))}),n.length>c?(0,r.jsx)(l.$n,{type:"surface",label:d("PRODUCT_REVIEWS.SHOW_MORE"),onPress:()=>u(c+3)}):null]})}},96966:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(54568);let l=(0,n(7620).memo)(e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M21.707 3.293A1 1 0 0 1 22 4v10a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1H6v8h1a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2h1V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1h7a1 1 0 0 1 .707.293M12 3H6v8h7a1 1 0 0 1 1 1v1h6V5h-7a1 1 0 0 1-1-1z",clipRule:"evenodd"})}))},97144:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(54568);let l=(0,n(7620).memo)(e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m1 13 6-6m0 0 6-6M7 7l6 6M7 7 1 1"})}))},98887:(e,t,n)=>{"use strict";n.d(t,{F:()=>m,B:()=>f});var r=n(54568),l=n(78179),i=n(91186),s=n(7620),o=n(90663),a=n(8947),d=n(94535),c=n(23843),u=n(46236);function h(){let e=(0,u.Qf)(),t=(0,a.ag)(e=>e.clientInfo),n=(0,a.ag)(e=>e.coreBaseUrl),r=(0,d.usePreferencesContext)(e=>e.viewMarketCountry),l=(0,d.usePreferencesContext)(e=>e.language),i=!e.desktop,o=n===c.J5.PRODUCTION;return(0,s.useMemo)(()=>({hideDefaultLauncher:i,languageOverride:l,isProduction:o,customAttributes:{country:r,appName:t.versionString}}),[i,l,o,r,t.versionString])}var p=n(54289),g=n(15114);function E(){let{data:e}=(0,g.Jd)();return(0,s.useMemo)(()=>{if(!e||"native"===p.jN)return null;let{firstName:t,lastName:n,email:r,id:l,phoneNumberNormalized:i}=e.customer,s="".concat(t," ").concat(n),o=function(e,t){switch(e){case"web":return t.hmac;case"ios":return t.hmacIos;case"android":return t.hmacAndroid}}(p.jN,e.customer);return o?{name:s,email:r,userHash:o,userId:String(l),phone:null!=i?i:void 0}:null},[e])}var R=n(69110);function x(e){return e===c.bA.DARK?"dark":"light"}let m=e=>{let{children:t}=e,n=E(),l=h(),i=l.isProduction?"mcsnl4c5":"pud3l2tx";return(0,r.jsxs)(o.F,{appId:i,autoBoot:!0,autoBootProps:{...l,...null!=n?n:{}},children:[(0,r.jsx)(S,{}),t]},i)};function O(e){let{Intercom:t}=window;if("function"==typeof t)try{t("update",{theme_mode:e})}catch(t){(0,l.C)(t instanceof Error?t:Error(String(t)),{tags:{component:"Intercom",action:"applyIntercomWebThemeMode"},extra:{themeMode:e}})}}function S(){let{update:e,shutdown:t,boot:n}=(0,o.B)(),r=E(),a=h(),d=(0,i.D)(),c=(0,s.useRef)(d);c.current=d;let u=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(r){try{e({...r,...a}),O(x(c.current)),u.current=!0}catch(e){(0,l.C)(e,{tags:{component:"Intercom",action:"updateIdentified"}})}return}if(u.current){try{t(),n(a),O(x(c.current)),u.current=!1}catch(e){(0,l.C)(e,{tags:{component:"Intercom",action:"logoutBoot"}})}return}try{e(a),O(x(c.current))}catch(e){(0,l.C)(e,{tags:{component:"Intercom",action:"updateAnonymous"}})}},[n,a,t,e,r]),(0,s.useEffect)(()=>{O(x(d))},[d]),null}let f=()=>{let{showArticle:e,showSpace:t,showNewMessage:n}=(0,o.B)();return(0,s.useMemo)(()=>({showHelpCenter(){t("help")},showMessages(){t("messages")},showArticle(t){e((0,R.wm)({articleType:t}))},startNewChat(e){n(e)}}),[t,e,n])}}},e=>{e.O(0,[371,9249,4564,9112,2311,100,4201,6339,4762,6913,8679,5035,2530,240,8162,9843,1589,587,9095,7358],()=>e(e.s=37775)),_N_E=e.O()}]);
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.