(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6679],{10824:function(e,t,r){Promise.resolve().then(r.bind(r,53311)),Promise.resolve().then(r.t.bind(r,89210,23)),Promise.resolve().then(r.t.bind(r,45369,23)),Promise.resolve().then(r.t.bind(r,99970,23)),Promise.resolve().then(r.bind(r,45710)),Promise.resolve().then(r.t.bind(r,17681,23)),Promise.resolve().then(r.bind(r,91840)),Promise.resolve().then(r.bind(r,79248)),Promise.resolve().then(r.bind(r,37899)),Promise.resolve().then(r.bind(r,8078)),Promise.resolve().then(r.t.bind(r,90413,23)),Promise.resolve().then(r.t.bind(r,68326,23)),Promise.resolve().then(r.t.bind(r,19167,23))},53311:function(e,t,r){"use strict";r.r(t);var n=r(26705),l=r(61396),s=r.n(l),i=r(62067),a=r.n(i),o=r(20955),c=r(91440),u=r(38145);let formatDate=e=>a()(e).format("MMM D, YYYY"),getTagTitle=e=>{switch(e.toString().toLowerCase()){case"camping accessories":case"tent & awnings":case"energy system":case"vanlife events":return"Review";default:return e}},getEntryUrl=e=>{let t=e.title.replace(/ /g,"_");return null!=e.alternateLink?e.alternateLink:"/journal/".concat(t)};t.default=e=>{let{entries:t}=e,r=(0,o.useRef)(null),l=(0,o.useRef)(null),[i,a]=(0,o.useState)(!1),[d,h]=(0,o.useState)(!1),[f,C]=(0,o.useState)(0);(0,o.useEffect)(()=>{l.current&&C(l.current.offsetWidth)},[t]),(0,o.useEffect)(()=>{handleScroll()},[f]);let handleScroll=()=>{if(r.current){let{scrollLeft:e,scrollWidth:t,clientWidth:n}=r.current;a(e>0),h(e<t-n)}},singleEntryCard=e=>(0,n.jsxs)(s(),{href:getEntryUrl(e),className:"flex-none shrink-0 min-w-64 w-[20vw] max-w-96 rounded-lg aspect-[4/5] bg-stone-200 text-white p-4 flex flex-col justify-between hover:bg-stone-300 transition-all snap-start",style:{background:e.thumbnail.fields.file.url?"linear-gradient(\n                    180deg,\n                    rgba(0, 0, 0, 0) 0%,\n                    rgba(0, 0, 0, 0.1) 60%,\n                    rgba(0, 0, 0, 0.4) 80%,\n                    rgba(0, 0, 0, 0.8) 100%\n                  ),\n                  linear-gradient(\n                    180deg,\n                    rgba(255, 253, 248, 0) 10%,\n                    rgba(255, 253, 248, 0.1) 60%,\n                    rgba(237, 110, 80, 0.3) 100%\n                  ),\n                  url(".concat(e.thumbnail.fields.file.url,") no-repeat center center"):void 0,backgroundSize:"cover"},role:"img","aria-label":e.thumbnail.fields.file.url?"".concat(e.thumbnail.fields.description):void 0,children:[(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"blog-tag px-3 py-[6px] rounded-full text-sm font-medium leading-[140%]",style:{backgroundColor:e.tag[0].fields.color?e.tag[0].fields.color:void 0},children:getTagTitle(e.tag[0].fields.title)})}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-2xl leading-7 font-bold font-[sangbleu-versailles] leading-tighter",children:e.title}),(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:e.author.fields.username}),(0,n.jsx)("span",{children:formatDate(e.date)})]})]})]},e.id);return(0,n.jsxs)("div",{className:"relative",children:[i&&(0,n.jsx)("div",{className:"hidden absolute h-full top-0 -left-8 md:flex flex-col justify-center",children:(0,n.jsx)("button",{className:"__button __white",onClick:()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.scrollBy({left:-f,behavior:"smooth"})},children:(0,n.jsx)(c.Z,{})})}),(0,n.jsx)("div",{ref:r,onScroll:handleScroll,className:"flex overflow-x-auto scrollbar-hide gap-4 snap-x snap-mandatory",style:{scrollSnapType:"x mandatory"},children:null==t?void 0:t.map((e,t)=>(0,n.jsx)("div",{ref:0===t?l:null,children:singleEntryCard(e)},e.id))}),d&&(0,n.jsx)("div",{className:"hidden absolute h-full top-0 -right-8 md:flex flex-col justify-center",children:(0,n.jsx)("button",{className:"__button __white",onClick:()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.scrollBy({left:f,behavior:"smooth"})},children:(0,n.jsx)(u.Z,{})})})]})}},34073:function(e,t,r){"use strict";var n=r(20955);t.Z=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"app-share",viewBox:"0 0 24 24"},e),n.createElement("path",{id:"app-share-path",d:"M18.5133 15.0005C17.7504 15.0049 17.0097 15.2576 16.4033 15.7205L16.4133 15.7105C16.2669 15.8235 16.0917 15.8928 15.9077 15.9105C15.7237 15.9282 15.5384 15.8935 15.3733 15.8105L8.95327 12.6005C8.98908 12.4024 9.00914 12.2018 9.01327 12.0005C9.00914 11.7992 8.98908 11.5986 8.95327 11.4005L15.3733 8.1905C15.5384 8.10749 15.7237 8.07283 15.9077 8.09053C16.0917 8.10822 16.2669 8.17754 16.4133 8.2905L16.4033 8.2805C17.032 8.75445 17.8025 9.00201 18.5896 8.98298C19.3768 8.96396 20.1344 8.67948 20.7395 8.17571C21.3446 7.67194 21.7617 6.97846 21.9231 6.20781C22.0845 5.43716 21.9807 4.63458 21.6286 3.93033C21.2765 3.22609 20.6967 2.66151 19.9833 2.32824C19.27 1.99497 18.4649 1.91256 17.6988 2.0944C16.9327 2.27623 16.2506 2.71163 15.7631 3.32993C15.2756 3.94822 15.0114 4.71313 15.0133 5.5005C15.0133 5.5205 15.0233 5.5405 15.0233 5.5605L15.0133 5.5505C15.0123 5.7312 14.9602 5.90792 14.8628 6.06015C14.7655 6.21238 14.6269 6.33387 14.4633 6.4105L8.66327 9.3105C8.49632 9.39333 8.30954 9.42786 8.12401 9.41019C7.93848 9.39252 7.76158 9.32335 7.61327 9.2105C7.17052 8.87514 6.65431 8.64997 6.10731 8.55359C5.56032 8.45722 4.99824 8.4924 4.46753 8.65625C3.93683 8.82009 3.45273 9.10789 3.05527 9.49585C2.6578 9.88381 2.35837 10.3608 2.18173 10.8874C2.00508 11.414 1.9563 11.975 2.0394 12.5242C2.12251 13.0734 2.33512 13.5949 2.65966 14.0456C2.9842 14.4963 3.41135 14.8634 3.90581 15.1164C4.40027 15.3693 4.94784 15.501 5.50327 15.5005C6.26253 15.5026 7.00108 15.2529 7.60327 14.7905C7.75158 14.6776 7.92848 14.6085 8.11401 14.5908C8.29954 14.5731 8.48632 14.6077 8.65327 14.6905L14.4533 17.5905C14.6177 17.666 14.757 17.7873 14.8545 17.9397C14.9521 18.0922 15.0037 18.2695 15.0033 18.4505L15.0133 18.4405C15.0133 18.4605 15.0033 18.4805 15.0033 18.5005C15.0033 19.1923 15.2083 19.8686 15.5924 20.444C15.9766 21.0193 16.5226 21.4679 17.1616 21.7331C17.8005 21.9983 18.5038 22.0682 19.1824 21.934C19.8611 21.7997 20.4847 21.4674 20.9746 20.9789C21.4645 20.4904 21.7986 19.8677 21.9348 19.1894C22.071 18.5111 22.0031 17.8077 21.7397 17.168C21.4763 16.5283 21.0293 15.981 20.455 15.5952C19.8808 15.2094 19.2051 15.0025 18.5133 15.0005ZM18.5133 4.0005C18.8099 4.0005 19.0999 4.08847 19.3466 4.25329C19.5933 4.41812 19.7856 4.65238 19.8991 4.92647C20.0126 5.20056 20.0423 5.50216 19.9844 5.79313C19.9266 6.0841 19.7837 6.35138 19.5739 6.56116C19.3641 6.77094 19.0969 6.9138 18.8059 6.97168C18.5149 7.02955 18.2133 6.99985 17.9392 6.88632C17.6652 6.77279 17.4309 6.58053 17.2661 6.33385C17.1012 6.08718 17.0133 5.79717 17.0133 5.5005C17.0133 5.10267 17.1713 4.72114 17.4526 4.43984C17.7339 4.15853 18.1154 4.0005 18.5133 4.0005ZM5.51327 13.5005C5.21659 13.5005 4.92658 13.4125 4.67991 13.2477C4.43324 13.0829 4.24098 12.8486 4.12745 12.5745C4.01392 12.3004 3.98421 11.9988 4.04209 11.7079C4.09997 11.4169 4.24283 11.1496 4.45261 10.9398C4.66238 10.7301 4.92966 10.5872 5.22063 10.5293C5.5116 10.4714 5.8132 10.5011 6.08729 10.6147C6.36138 10.7282 6.59565 10.9205 6.76047 11.1671C6.92529 11.4138 7.01327 11.7038 7.01327 12.0005C7.01327 12.3983 6.85523 12.7799 6.57393 13.0612C6.29262 13.3425 5.91109 13.5005 5.51327 13.5005ZM18.5133 20.0005C18.2166 20.0005 17.9266 19.9125 17.6799 19.7477C17.4332 19.5829 17.241 19.3486 17.1274 19.0745C17.0139 18.8004 16.9842 18.4988 17.0421 18.2079C17.1 17.9169 17.2428 17.6496 17.4526 17.4398C17.6624 17.2301 17.9297 17.0872 18.2206 17.0293C18.5116 16.9714 18.8132 17.0011 19.0873 17.1147C19.3614 17.2282 19.5956 17.4205 19.7605 17.6671C19.9253 17.9138 20.0133 18.2038 20.0133 18.5005C20.0133 18.8983 19.8552 19.2799 19.5739 19.5612C19.2926 19.8425 18.9111 20.0005 18.5133 20.0005Z"}))},79248:function(e,t,r){"use strict";r.r(t);var n=r(26705);r(20955);var l=r(74275),s=r.n(l);r(10276);var i=r(34073);let ShareFallback=e=>{var t,r,l;return(0,n.jsxs)("div",{className:"flex flex-col items-center __".concat(null!==(t=e.cssPrefix)&&void 0!==t?t:"default","-share-block"),children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{className:"__".concat(null!==(r=e.cssPrefix)&&void 0!==r?r:"default","-share-icon")})}),(0,n.jsx)("div",{className:"__".concat(null!==(l=e.cssPrefix)&&void 0!==l?l:"default","-share-text"),children:e.text})]})};ShareFallback.propTypes={text:s().string.isRequired,cssPrefix:s().string},t.default=ShareFallback},37899:function(e,t,r){"use strict";r.r(t);var n=r(26705),l=r(20955),s=r(74275),i=r.n(s);r(10276);var a=r(60825),o=r(34073);let Share=e=>{let t=(0,a.Ev)(),[r]=(0,l.useState)(e.cssPrefix||"default");return(0,n.jsxs)("button",{onClick:()=>{navigator.share?navigator.share({title:"Vanlifezone – ".concat(e.title),text:e.title||"Share this link",url:e.url}).then(()=>console.log("Successful share")).catch(e=>console.log("Error sharing:",e)):navigator.clipboard?navigator.clipboard.writeText(e.url).then(()=>{alert("The link was copied to your clipboard.")}).catch(e=>{console.error("Could not copy text: ",e)}):console.log("URL to share: ",e.url)},className:"flex flex-col items-center w-12 h-12 __".concat(r,"-share-block"),style:{justifyContent:e.showShareText?"space-between":"center"},children:[(0,n.jsx)(o.Z,{className:"__".concat(r,"-share-icon")}),e.showShareText&&(0,n.jsx)("div",{className:"__".concat(r,"-share-text"),children:t("app.actions.share")})]})};Share.propTypes={url:i().string.isRequired,title:i().string.isRequired,showShareText:i().bool,cssPrefix:i().string},t.default=Share},19167:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{suspense:function(){return suspense},NoSSR:function(){return NoSSR}});let n=r(11283);function suspense(){let e=Error(n.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=n.NEXT_DYNAMIC_NO_SSR_CODE,e}function NoSSR(e){let{children:t}=e;return t}},99970:function(){},89210:function(){},45369:function(){},17681:function(){},10276:function(){},54402:function(e,t,r){"use strict";r.d(t,{Z:function(){return createReactComponent}});var n=r(20955),l={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.2.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */let createReactComponent=(e,t,r,s)=>{let i=(0,n.forwardRef)(({color:r="currentColor",size:i=24,stroke:a=2,className:o,children:c,...u},d)=>(0,n.createElement)("svg",{ref:d,...l[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${t}`,o].join(" "),..."filled"===e?{fill:r}:{strokeWidth:a,stroke:r},...u},[...s.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${r}`,i}},91440:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
 * @license @tabler/icons-react v3.2.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var n=(0,r(54402).Z)("outline","arrow-left","IconArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]])},38145:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
 * @license @tabler/icons-react v3.2.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var n=(0,r(54402).Z)("outline","arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])}},function(e){e.O(0,[6990,5042,1396,413,8702,5710,825,4121,5290,1744],function(){return e(e.s=10824)}),_N_E=e.O()}]);