PageSourceSearch

https://rentaltide.com/assets/TipDetail-hp-GDxId.js

js rentaltide.com collected 2026-09-24 20:30:45 UTC 5,335 bytes, 1 lines download raw bytes

1import{i as f,j as e,N as m,B as N,L as o}from"./index-BBlr5mjY.js";import c from"./Footer-BcvGzZsu.js";import{S as p}from"./SEOHead-Wid-dq_R.js";import{u as y,a as v,b as T,i as w,f as k}from"./tipAnalytics-PwAvR0oZ.js";import{ad as x,ab as R,C as D,aa as L,J as P}from"./vendor-icons-DdDstFZX.js";import{M as $,r as O,a as E}from"./index-CQ5xGYWx.js";const U=()=>{const{slug:l}=f(),{data:t,isLoading:u}=y(),{data:h,isLoading:g,isError:b}=v(l),a=(t??[]).findIndex(j=>j.slug===l),s=a===-1||t==null?void 0:t[a],r=a===-1||t==null?void 0:t[a+1],i=a<=0||t==null?void 0:t[a-1],d=u||g,n=T(s==null?void 0:s.slug);return!d&&(b||!s)?e.jsxs("main",{className:"min-h-screen",children:[e.jsx(p,{title:"Tip Not Found | RentalTide",description:"This weekly tip could not be found.",path:`/tips/${l??""}`}),e.jsx(m,{}),e.jsxs("div",{className:"container mx-auto px-4 sm:px-6 pt-32 pb-24 text-center",children:[e.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Tip not found"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"This tip may have been moved or renamed."}),e.jsx(N,{asChild:!0,children:e.jsx(o,{to:"/tips",children:"Browse all tips"})})]}),e.jsx(c,{})]}):e.jsxs("main",{className:"min-h-screen",children:[s&&e.jsx(p,{title:`${s.title} | RentalTide Weekly Tips`,description:s.blurb,path:`/tips/${s.slug}`,ogType:"article",articlePublishedTime:`${s.date}T12:00:00Z`,articleSection:s.category,articleAuthor:"RentalTide",markdownPath:`/tips/${s.slug}.md`,ogImage:s.poster,schema:[{"@context":"https://schema.org","@type":"Article",headline:s.title,description:s.blurb,datePublished:s.date,articleSection:s.category,author:{"@type":"Organization",name:"RentalTide"},publisher:{"@type":"Organization",name:"RentalTide",logo:{"@type":"ImageObject",url:"https://rentaltide.com/RentalTide_Dark.png"}},mainEntityOfPage:`https://rentaltide.com/tips/${s.slug}`},...s.video?[{"@context":"https://schema.org","@type":"VideoObject",name:s.title,description:s.blurb,thumbnailUrl:s.poster,uploadDate:`${s.date}T12:00:00Z`,contentUrl:s.video,...s.videoDuration?{duration:w(s.videoDuration)}:{},publisher:{"@type":"Organization",name:"RentalTide",logo:{"@type":"ImageObject",url:"https://rentaltide.com/RentalTide_Dark.png"}}}]:[]]}),e.jsx(m,{}),e.jsx("article",{className:"pt-24 pb-16",children:e.jsxs("div",{className:"container mx-auto px-4 sm:px-6 max-w-3xl",children:[e.jsxs(o,{to:"/tips",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors mb-8",children:[e.jsx(x,{className:"w-4 h-4"}),"All weekly tips"]}),d||!s?e.jsxs("div",{className:"space-y-4","aria-hidden":"true",children:[e.jsx("div",{className:"h-10 w-3/4 rounded bg-muted animate-pulse"}),e.jsx("div",{className:"h-4 w-1/3 rounded bg-muted animate-pulse"}),e.jsx("div",{className:"h-64 w-full rounded bg-muted animate-pulse mt-8"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("header",{className:"mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 mb-4 rounded-full bg-primary/10 text-primary text-xs font-medium",children:[e.jsx(R,{className:"w-3 h-3"}),s.category]}),e.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold mb-4",children:s.title}),e.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:s.blurb}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(D,{className:"w-4 h-4"}),e.jsx("time",{dateTime:s.date,children:k(s.date)})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"w-4 h-4"}),s.readTime]})]})]}),s.video?e.jsxs("video",{src:s.video,poster:s.poster,controls:!0,playsInline:!0,preload:"none",onPlay:n.onPlay,onTimeUpdate:n.onTimeUpdate,onEnded:n.onEnded,className:"w-full aspect-video rounded-2xl border border-border mb-8 bg-black",children:["Your browser doesn't support embedded video."," ",e.jsx("a",{href:s.video,children:"Download the clip"})," instead."]}):s.image&&e.jsx("img",{src:s.image,alt:"",loading:"lazy",className:"w-full rounded-2xl border border-border mb-8"}),e.jsx("div",{className:"prose prose-lg max-w-none prose-headings:font-bold prose-h2:text-2xl prose-h2:mt-10 prose-h3:text-xl prose-hr:my-10",children:e.jsx($,{remarkPlugins:[O],rehypePlugins:[E],children:h??""})})]}),(r||i)&&e.jsxs("nav",{className:"mt-16 pt-8 border-t border-border grid sm:grid-cols-2 gap-4",children:[i?e.jsxs(o,{to:`/tips/${i.slug}`,className:"group p-4 rounded-xl border border-border hover:border-primary/30 transition-colors",children:[e.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-1",children:[e.jsx(x,{className:"w-3 h-3"}),"Newer tip"]}),e.jsx("span",{className:"font-semibold group-hover:text-primary transition-colors line-clamp-2",children:i.title})]}):e.jsx("div",{}),r&&e.jsxs(o,{to:`/tips/${r.slug}`,className:"group p-4 rounded-xl border border-border hover:border-primary/30 transition-colors sm:text-right",children:[e.jsxs("span",{className:"flex items-center gap-1 sm:justify-end text-xs text-muted-foreground mb-1",children:["Earlier tip",e.jsx(P,{className:"w-3 h-3"})]}),e.jsx("span",{className:"font-semibold group-hover:text-primary transition-colors line-clamp-2",children:r.title})]})]})]})}),e.jsx(c,{})]})};export{U as default};

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.