1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1294,7851],{13884:(e,t,o)=>{"use strict";o.r(t),o.d(t,{__N_SSP:()=>V,default:()=>A});var a=o(37876),i=o(14232),l=o(89099),n=o(61656);let r=/(?:youtu\.be\/|\/embed\/|\/shorts\/|\/v\/|[?&]v=)([\w-]{11})(?![\w-])/,c=e=>{var t;if(!e||"Video"!==e.mediaType||!e.mediaUrl)return null;let o=null==(t=e.mediaUrl.match(r))?void 0:t[1];return o?"https://img.youtube.com/vi/".concat(o,"/hqdefault.jpg"):null};var m=o(48218),s=o(55649),d=o.n(s),p=o(28395),_=o(86258),u=o(51096),g=o(33490),h=o.n(g);let x=e=>{let{allMedia:t,campground:o,reviews:n}=e,r=(0,p.yg)(),{query:{category:c,id:m,review:s,campground:g},asPath:x}=(0,l.useRouter)(),y=(0,p.FK)();(0,i.useEffect)(()=>{y.length||r({type:"media",mediaItems:t,campground:o,redirectOnClose:c?"/camping/".concat(d()(o.regionName),"/").concat(o.slug,"/gallery/").concat(c):s&&g?"".concat(x.split("/media")[0]):x.match("/gallery/")?"/camping/".concat(d()(o.regionName),"/").concat(o.slug,"/gallery"):"/camping/".concat(d()(o.regionName),"/").concat(o.slug),reviews:n})},[m,t,o,y.length,r,c,n,x,s,g]);let v=t.find(e=>e.id===m);if(!v)return(0,a.jsx)(a.Fragment,{});let{mediaUrl:b,mediaType:V,caption:A}=v;return(0,a.jsx)("div",{className:h().gallery,children:b&&("Photo"===V||"Video"===V)&&(0,a.jsxs)(a.Fragment,{children:["Photo"===V&&(0,a.jsx)(_.A,{className:h()["gallery__masonry-thumbn
1ail"],src:b,sizes:"400px",alt:A||""}),"Video"===V&&(0,a.jsx)(u.A,{className:h()["gallery__masonry-thumbnail"],youtubeUrl:b,alt:A||""})]})})};var y=o(26661);let v=e=>{var t,o;let{mediaItem:i,campground:l,description:n,canonicalUrl:r,review:m}=e,s=c(i);if(!s||!i.createdAt)return null;let d=null==(t=i.author)?void 0:t.name,p=(0,y.UQ)(l,!1),_=(null==m||null==(o=m.author)?void 0:o.name)||d;(null==m?void 0:m.rating)&&_&&(p.review={"@type":"Review",name:m.title||void 0,reviewBody:m.body||void 0,datePublished:m.createdAt,author:{"@type":"Person",name:_},reviewRating:{"@type":"Rating",ratingValue:m.rating,bestRating:5,worstRating:1}});let u={"@context":"https://schema.org","@type":"VideoObject",name:i.caption||"Camper-submitted video of ".concat(l.name," in ").concat(l.regionName),description:n,thumbnailUrl:s,uploadDate:i.createdAt,embedUrl:i.mediaUrl,url:r,publisher:{"@type":"Organization",name:"TheDyrt",logo:{"@type":"ImageObject",url:"https://assets.thedyrt.com/next/public/apple-touch-icon.png"}},contentLocation:p};return d&&(u.author={"@type":"Person",name:d}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(u).replace(/</g,"\\u003c")}},"VideoObject")},b="https://thedyrt.com";var V=!0;let A=e=>{var t;let{campground:o,allMedia:i,reviews:r,mediaItem:s}=e,{query:d}=(0,l.useRouter)(),p="Video"===s.mediaType,_=p?null==o?void 0:o.photoUrl:s.mediaUrl||(null==o?void 0:o.photoUrl),u=null==(t=s.author)?void 0:t.name,g=p?"".concat(u?"".concat(u,"'s"):"Camper-submitted"," video of ").concat(o.name," in ").concat(o.regionName,". Explore photos and reviews of campsite experiences, nature, and real adventures."):"View camper-submitted photos of ".concat(o.name," in ").concat(o.regionName,". Explore pictures of campsite photos, nature, and real experiences."),h=p?"".concat(u?"".concat(u,"'s "):"","Video of ").concat(o.name,", ").concat(o.regionName," | The Dyrt"):"Photos of ".concat(o.name,", ").concat(o.regionName," | The Dyrt"),y=p?"".concat(b,"/camping/").concat(d.region,"/").concat(d.campground,"/media/").concat(d.id):"".concat(b,"/camping/").concat(d.region,"/").concat(d.campground,"/gallery"),V=c(s)||_&&(0,n.g7)(_,{width:1200,height:630,fit:"crop"})||void 0;return(0,a.jsxs)(a.Fragment,{children:[p&&(0,a.jsx)(v,{mediaItem:s,campground:o,description:g,canonicalUrl:y,review:r.find(e=>{let{id:t}=e;return t===s.reviewId})}),(0,a.jsx)(m.A,{pageTitle:h,socialDescription:g,socialImage:V,noIndex:!p,canonicalUrl:y,content:(0,a.jsx)(x,{allMedia:i||[],campground:o,reviews:r})})]})}},33490:()=>{},47909:(e,t,o)=>{"use strict";o.r(t),o.d(t,{__N_SSP:()=>i,default:()=>a.default});var a=o(13884),i=!0},51096:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var a=o(37876);o(14232);var i=o(45457),l=o(86258),n=o(75444),r=o.n(n);let c=e=>{let{className:t="",youtubeUrl:o,lazyLoad:n=!1,alt:c,width:m,height:s}=e,d=o?"https://img.youtube.com/vi/".concat(o.split("/").pop(),"/hqdefault.jpg"):null;return d?(0,a.jsxs)("div",{className:r().thumb,children:[(0,a.jsx)("img",{src:d,className:t,alt:c,width:m,height:s,"aria-label":c,loading:n?"lazy":void 0}),(0,a.jsx)("div",{className:r().thumb__play,children:(0,a.jsx)("img",{src:"".concat(i.K,"/assets/images/play_btn.svg"),className:r().thumb__icon,alt:"Play button icon",loading:n?"lazy":void 0})})]}):(0,a.jsx)(l.A,{src:null,alt:"placeholder",options:{width:m,height:s,fit:"crop",crop:"smart"},className:t})}},75444:e=>{e.exports={"m-t-2xs":"AppVideo_m-t-2xs__L0w0j","m-t-xs":"AppVideo_m-t-xs__s6ULd","m-t-sm":"AppVideo_m-t-sm__9OGly","m-t-md":"AppVideo_m-t-md__4S2zI","m-t-lg":"AppVideo_m-t-lg__ZoXhx","m-t-xl":"AppVideo_m-t-xl__N2l_w","m-t-xl--desktop":"AppVideo_m-t-xl--desktop__qdqwM","m-t-2xl":"AppVideo_m-t-2xl__YmOri","m-t-3xl":"AppVideo_m-t-3xl__xhfl2","m-t-4xl":"AppVideo_m-t-4xl__21ENI","m-b-sm":"AppVideo_m-b-sm__VDG58","m-b-md":"AppVideo_m-b-md__0RwWO","m-b-lg":"AppVideo_m-b-lg__AeEis","m-b-xl":"AppVideo_m-b-xl__5HwyK","m-b-3xl":"AppVideo_m-b-3xl__by9OK","m-r-xl":"AppVideo_m-r-xl__LG2MF","m-l-sm":"AppVideo_m-l-sm__bqw6F",video:"AppVideo_video__lkMmh",thumb:"AppVideo_thumb__8de3l",thumb__play:"AppVideo_thumb__play__rrDsI",thumb__icon:"AppVideo_thumb__icon__eemy_","rotate-three-sixty":"AppVideo_rotate-three-sixty__Y60Eg","slide-in-to-left":"AppVideo_slide-in-to-left__y82NF","slide-out-to-left":"AppVideo_slide-out-to-left__Uob2x","slide-in-to-right":"AppVideo_slide-in-to-right__vEQFn","slide-out-to-right":"AppVideo_slide-out-to-right__RNMqY"}},99857:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/camping/[region]/[campground]/reviews/[review]/media/[id]",function(){return o(47909)}])}},e=>{e.O(0,[9469,4587,2867,9548,6215,7967,2113,6661,636,6593,8792],()=>e(e.s=99857)),_N_E=e.O()}]); 2//# sourceMappingURL=[id]-4b11a994d5931810.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.