PageSourceSearch

https://couriers.stuart.com/_nuxt/_slug_.31866734.js

js stuart.com collected 2026-10-02 02:17:34 UTC 23,620 bytes, 120 lines download raw bytes

1import{_ as le}from"./index.73274346.js";import{a as X,_ as se}from"./Icon.24c0c5ca.js";import{g as ie,l as ce,u as ue,a as de,b as he}from"./link.703b5080.js";import{c as te,g as oe}from"./_commonjsHelpers.725317a4.js";import{_ as D,o as l,c as u,a as c,b as F,t as j,d as P,e as E,n as G,p as _e,h as pe,P as z,F as W,r as H,f as me,g as ge,x as fe,u as ve,i as Z,j as Y,k as be,l as ee,y as ye,m as Ae,q as we}from"./entry.3543987d.js";import{_ as ke}from"./ArticleCard.3c5cfedd.js";import{i as V,g as xe,s as Se}from"./seo.94ea2798.js";function Te(t,a){for(var e=0;e<a.length;e++){const s=a[e];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const n=Object.getOwnPropertyDescriptor(s,o);n&&Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var ne={exports:{}};(function(t,a){(function(e,s){t.exports=s()})(te,function(){var e;function s(d,i){return e||(e=function(h){for(var A="atchesSelector",g=0,p=["matches","m"+A,"webkitM"+A,"mozM"+A,"msM"+A,"oM"+A];g<p.length;g++){var r=p[g];if(h[r])return r}}(d)),d[e](i)}function o(d,i){for(var h=d;h&&(h.nodeType!==1||!s(h,i));)h=h.parentNode;return h}function n(d){return typeof d=="function"}function m(d,i,h){var A=h.document,g=A.defaultView,p=function(y){if(y.isCollapsed)return!0;var k=y.anchorNode.compareDocumentPosition(y.focusNode);return k?(4&k)>0:y.anchorOffset<y.focusOffset}(g.getSelection()),r=function(y,k){var M,I=y.getClientRects(),L=[].slice.bind(I);if(k){for(var f=1/0,C=I.length;C--;){var _=I[C];if(_.left>f)break;f=_.left}M=L(C+1)}else{for(var x=-1/0,q=0;q<I.length;q++){var S=I[q];if(S.right<x)break;x=S.right}M=L(0,q)}return{top:Math.min.apply(Math,M.map(function(T){return T.top})),bottom:Math.max.apply(Math,M.map(function(T){return T.bottom})),left:M[0].left,right:M[M.length-1].right}}(i,p),B=function(y){var k=y.document.body;return(y.getComputedStyle(k).position==="static"?k.parentNode:k).getBoundingClientRect()}(g),v=d.style;p?v.right=A.documentElement.clientWidth-r.right+B.left+"px":v.left=r.left-B.left+"px",v.width=r.right-r.left+"px",v.height=r.bottom-r.top+"px",v.top=r.top-B.top+"px",v.position="absolute",d.className=h.popoverClass}var $="data-share-via";function O(d){return{createPopover:function(){var i=d.createElement("div");return i.addEventListener("click",function(h){(function(A,g){var p=o(g.target,"["+$+"]");if(p){var r=function(B,v){for(var y=0;y<B.length;y++){var k=B[y];if(k.name===v)return k}}(A,p.getAttribute($));r&&n(r.action)&&r.action(g,p)}})(this.sharers,h)}),i},attachPopover:function(i){d.body.appendChild(i)},removePopover:function(i){var h=i.parentNode;h&&h.removeChild(i)}}}var w,U=function(d,i,h,A){var g=d.shareUrl||d.document.defaultView.location;return"<ul>"+i.map(function(p){return'<li data-share-via="'+p.name+'">'+p.render.call(p,h,A,g)+"</li>"}).join("")+"</ul>"},b=["selectionchange","mouseup","touchend","touchcancel"];return function(d){var i=(Object.assign||function(f,C){if(C&&typeof C=="object")for(var _ in C)f[_]=C[_];return f})({document,selector:"body",sharers:[],popoverClass:"share-this-popover",transformer:function(f){return f.trim().replace(/\s+/g," ")}},d||{}),h=!1,A=!1,g=w,p=w,r=w,B=w;return{init:function(){return!h&&(g=i.document,(p=g.defaultView).getSelection?(b.forEach(v),p.addEventListener("resize",k),B=O(g),h=!0):(console.warn("share-this: Selection API isn't supported"),!1))},destroy:function(){return!(!h||A)&&(b.forEach(y),p.removeEventListener("resize",k),L(),g=w,p=w,A=!0)},reposition:function(){return r&&m(r,I(),i),!!r}};function v(f){g.addEventListener(f,M)}function y(f){g.removeEventListener(f,M)}function k(){r&&m(r,I(),i)}function M(f){var C=f.type;!r!=(C==="selectionchange")&&setTimeout(function(){if(p){var _=I();_?function(x){var q=!r,S=x.toString(),T=i.transformer(S),R=i.sharers.filter((function(Q,K,re){var N=re.active;return n(N)?N(Q,K):N===w||N}).bind(null,T,S));R.length?(q&&(r=B.createPopover()),r.sharers=R,r.innerHTML=U(i,R,T,S),m(r,x,i),q&&(B.attachPopover(r),n(i.onOpen)&&i.onOpen(r,T,S))):r&&L()}(_):L()}},10)}function I(){var f=p.getSelection(),C=f.rangeCount&&f.getRangeAt(0);if(C){var _=function(x,q){var S=x.cloneRange();if(x.collapsed||!q)return S;var T=o(x.startContainer,q);return T?function(R,Q){var K=R.compareDocumentPosition(Q);return!K||(16&K)>0}(T,x.endContainer)||S.setEnd(T,T.childNodes.length):(T=o(x.endContainer,q))?S.setStart(T,0):S.collapse(),S}(C,i.selector);if(!_.collapsed&&_.getClientRects().length)return _}}function L(){r&&(B.removePopover(r),r=w,n(i.onClose)&&i.onClose())}}})})(ne);var Pe=ne.exports;const $e=oe(Pe);var J={exports:{}};(function(t,a){(function(e,s){s(a)})(te,function(e){var s=120;e.action=function(o,n){o.preventDefault(),n.ownerDocument.defaultView.open(n.firstChild.href,"share_via_twitter","height=440,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,width=640").opener=null},e.getShareUrl=function(o,n){return"https://twitter.com/intent/tweet?text="+encodeURIComponent(o)+"&url="+encodeURIComponent(n)},e.getText=function(o){var n=o.trim();return n.length>s-2&&(n=n.slice(0,s-3).trim()+"…"),"“"+n+"”"},e.name="twitter",e.render=function(o,n,m){var $=this.getText(o);return'<a href="'+this.getShareUrl($,m)+'" target="_blank" rel="noopener nofollow noreferrer"><svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 20 20"><path d="M16 3.038c-.59.26-1.22.437-1.885.517.677-.407 1.198-1.05 1.443-1.816-.634.37-1.337.64-2.085.79-.598-.64-1.45-1.04-2.396-1.04-1.812 0-3.282 1.47-3.282 3.28 0 .26.03.51.085.75-2.728-.13-5.147-1.44-6.766-3.42C.83 2.58.67 3.14.67 3.75c0 1.14.58 2.143 1.46 2.732-.538-.017-1.045-.165-1.487-.41v.04c0 1.59 1.13 2.918 2.633 3.22-.276.074-.566.114-.865.114-.21 0-.41-.02-.61-.058.42 1.304 1.63 2.253 3.07 2.28-1.12.88-2.54 1.404-4.07 1.404-.26 0-.52-.015-.78-.045 1.46.93 3.18 1.474 5.04 1.474 6.04 0 9.34-5 9.34-9.33 0-.14 0-.28-.01-.42.64-.46 1.2-1.04 1.64-1.7z" fill="currentcolor"/></svg></a>'}
1,Object.defineProperty(e,"__esModule",{value:!0})})})(J,J.exports);var ae=J.exports;const Be=oe(ae),Ce=Te({__proto__:null,default:Be},[ae]);const qe={props:{content:{type:Object,required:!0}},data(){return{selectionShare:null,pageUrl:"",facebookUrl:"",linkedinUrl:"",twitterUrl:""}},async mounted(){this.pageUrl=window.location.href,this.selectionShare=$e({selector:".article-modules",sharers:[Ce]}),this.selectionShare.init(),this.facebookUrl="https://www.facebook.com/sharer.php?u="+this.pageUrl,this.linkedinUrl="https://www.linkedin.com/shareArticle?mini=true&url="+this.pageUrl+"&title="+this.content.heroTitle+"&summary="+this.content.heroIntro+"&source=Stuart",this.twitterUrl="https://twitter.com/intent/tweet?url="+this.pageUrl+"&text="+this.content.heroTitle},destroyed(){this.selectionShare.destroy()},methods:{copyUrl(){navigator.clipboard.writeText(this.pageUrl),ie.timeline({repeat:!1}).to(this.$refs.copy,{autoAlpha:1,duration:.3,ease:"linear"}).to(this.$refs.copy,{autoAlpha:0,duration:.3,delay:.3,ease:"linear"})}}},Me={class:"blog-social"},je=["href"],Ie=["href"],Le=["href"];function Fe(t,a,e,s,o,n){const m=X;return l(),u("div",Me,[c("a",{href:o.facebookUrl,class:"social-link facebook",target:"_blank",rel:"noopener nofollow noreferrer"},[F(m,{name:"facebook"})],8,je),c("a",{href:o.linkedinUrl,class:"social-link linkedin",target:"_blank",rel:"noopener nofollow noreferrer"},[F(m,{name:"linkedin"})],8,Ie),c("a",{href:o.twitterUrl,class:"social-link twitter",target:"_blank",rel:"noopener nofollow noreferrer"},[F(m,{name:"twitter"})],8,Le),c("button",{onClick:a[0]||(a[0]=(...$)=>n.copyUrl&&n.copyUrl(...$)),duration:"300",type:"button",class:"social-link link"},[F(m,{name:"link"}),c("span",{class:"copy-url",ref:"copy"},j(e.content.shareLegend.linkShareText),513)])])}const Ue=D(qe,[["render",Fe],["__scopeId","data-v-ff9d2add"]]),Ee={props:{content:{type:Object,required:!0}}},De=["innerHTML"];function Oe(t,a,e,s,o,n){return l(),u("div",null,[e.content.content?(l(),u("div",{key:0,innerHTML:e.content.content},null,8,De)):P("",!0)])}const Re=D(Ee,[["render",Oe]]),ze=t=>t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");const Ke={props:{content:{type:Object,required:!0}},computed:{display(){return ze(this.content.display)}}},Ne=["src"],Ve={key:2,class:"blog-caption"};function Qe(t,a,e,s,o,n){const m=se;return l(),u("figure",{class:G(["blog-figure",n.display])},[e.content.image?(l(),E(m,{key:0,image:e.content.image},null,8,["image"])):P("",!0),e.content.giphyLink?(l(),u("img",{key:1,src:e.content.giphyLink},null,8,Ne)):P("",!0),e.content.caption?(l(),u("figcaption",Ve,j(e.content.caption),1)):P("",!0)],2)}const We=D(Ke,[["render",Qe],["__scopeId","data-v-b11d2c78"]]);const He={props:{content:{type:Object,required:!0}},data:()=>({link:"#"}),mounted(){this.link="https://twitter.com/intent/tweet?url="+window.location.href+"&text=“"+this.content.quote+"”"}},Ye=t=>(_e("data-v-3457d275"),t=t(),pe(),t),Ge={class:"wrapper-article-quote"},Je={key:0},Xe=["href"],Ze=Ye(()=>c("svg",{class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 20 20"},[c("path",{d:"M16 3.038c-.59.26-1.22.437-1.885.517.677-.407 1.198-1.05 1.443-1.816-.634.37-1.337.64-2.085.79-.598-.64-1.45-1.04-2.396-1.04-1.812 0-3.282 1.47-3.282 3.28 0 .26.03.51.085.75-2.728-.13-5.147-1.44-6.766-3.42C.83 2.58.67 3.14.67 3.75c0 1.14.58 2.143 1.46 2.732-.538-.017-1.045-.165-1.487-.41v.04c0 1.59 1.13 2.918 2.633 3.22-.276.074-.566.114-.865.114-.21 0-.41-.02-.61-.058.42 1.304 1.63 2.253 3.07 2.28-1.12.88-2.54 1.404-4.07 1.404-.26 0-.52-.015-.78-.045 1.46.93 3.18 1.474 5.04 1.474 6.04 0 9.34-5 9.34-9.33 0-.14 0-.28-.01-.42.64-.46 1.2-1.04 1.64-1.7z",fill:"currentcolor"})],-1)),et=[Ze];function tt(t,a,e,s,o,n){const m=X;return l(),u("div",Ge,[F(m,{class:"quotes",name:"quotes"}),e.content.quote?(l(),u("blockquote",Je,[c("p",null,j(e.content.quote),1)])):P("",!0),c("a",{href:t.link,target:"_blank",rel:"noopener nofollow noreferrer"},et,8,Xe)])}const ot=D(He,[["render",tt],["__scopeId","data-v-3457d275"]]);const nt={props:{content:{type:Object,required:!0}}},at={key:0},rt={class:"quote-content"},lt={key:0,class:"quote-text"};function st(t,a,e,s,o,n){return l(),u("div",null,[e.content.quote?(l(),u("blockquote",at,[c("p",rt,j(e.content.quote),1),e.content.textUnderQuote?(l(),u("span",lt,j(e.content.textUnderQuote),1)):P("",!0)])):P("",!0)])}const it=D(nt,[["render",st],["__scopeId","data-v-36fa142f"]]);const ct={props:{content:{type:Object,required:!0}}},ut={class:"youtube-wrapper"},dt=["src"];function ht(t,a,e,s,o,n){return l(),u("div",ut,[c("iframe",{src:`https://www.youtube.com/embed/${e.content.videoId}`,frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,dt)])}const _t=D(ct,[["render",ht],["__scopeId","data-v-ad9b1e17"]]),pt={props:{data:{required:!0,type:Object}}};function mt(t,a,e,s,o,n){const m=Re,$=We,O=ot,w=it,U=_t;return e.data._modelApiKey.startsWith("article_text_")?(l(),E(m,{key:(t._.provides[z]||t.$route).fullPath,content:e.data.module,class:"module module-artice-text"},null,8,["content"])):e.data._modelApiKey.startsWith("article_image_")?(l(),E($,{key:(t._.provides[z]||t.$route).fullPath,content:e.data.module,class:"module module-artice-image"},null,8,["content"])):e.data._modelApiKey.startsWith("article_quote_")?(l(),E(O,{key:(t._.provides[z]||t.$route).fullPath,content:e.data.module,class:"module module-artice-quote"},null,8,["content"])):e.data._modelApiKey.startsWith("article_blockquote_")?(l(),E(w,{key:(t._.provides[z]||t.$route).fullPath,content:e.data.module,class:"module module-article-blockquote"},null,8,["content"])):e.data._modelApiKey.startsWith("article_youtube_embed_")?(l(),E(U,{key:(t._.provides[z]||t.$route).fullPath,content:e.data.module,class:"module module-artice-text"},null,8,["content"])):P("",!0)}const gt=D(pt,[["render",mt]]);
1const ft={props:{page:{required:!0,type:Object},relatedArticles:{required:!0,type:Array}},data(){return{bigger:0,btnActiveTimeout:null,btnActive:!1,totalSvg:[!0,!0,!0,!0,!0],pouetDisabled:!1,pouetsToSend:0,pouetsTimeout:null,addedPouets:0,actualPouets:0}},computed:{baseUrl(){return this.$config.baseUrl},allPouets(){return this.actualPouets+this.addedPouets}},async mounted(){const t=await $fetch("/.netlify/functions/pouet",{method:"POST",body:{id:this.page.id,func:"get"}}).catch(a=>console.log(a));this.actualPouets=t},methods:{formatDate(t,a){const[{iso:e}]=a.locales.filter(({code:o})=>o===a.locale),s=e.replace("_","-");return new Date(t).toLocaleDateString(s,{year:"numeric",month:"long",day:"numeric"})},getRandDist(t,a){return Math.floor(Math.random()*(a-t+1)+t)},triggerBooms(){let t=-1;this.totalSvg.forEach((a,e)=>{a&&t<0&&(t=e,this.totalSvg[e]=!1)}),!(t<0)&&this.$nextTick(()=>{const a=this.$refs.booms[t].querySelectorAll(".js-boom");a.forEach((e,s)=>{gsap.set(e,{x:0,y:0,scale:this.bigger*.05+1,opacity:1}),gsap.to(e,{duration:.5,x:this.getRandDist(80*(this.bigger*.1+1),200*(this.bigger*.1+1)),y:-this.getRandDist(80*(this.bigger*.1+1),200*(this.bigger*.1+1)),opacity:0,onComplete:()=>{s===a.length-1&&(this.totalSvg[t]=!0)}})})})},pouetBtnAnim(){this.bigger=this.bigger>8?this.bigger:this.bigger+1,this.btnActive=!0,gsap.to(this.$refs.pouetBtn,{duration:.15,scale:1.2*(this.bigger*.015+1),rotation:-10,onComplete:()=>{gsap.to(this.$refs.pouetBtn,{duration:.15,rotation:0})}})},pouetBtnOut(){clearTimeout(this.btnActiveTimeout),this.btnActiveTimeout=setTimeout(()=>{this.btnActive=!1,gsap.to(this.$refs.pouetBtn,{duration:.15,scale:1}),this.bigger=0},350)},poueeet(){this.pouetDisabled||(this.addedPouets=this.addedPouets+1,this.pouetsToSend=this.pouetsToSend+1,this.triggerBooms(),clearTimeout(this.pouetsTimeout),this.pouetsTimeout=setTimeout(()=>{this.pouetDisabled=!0,$fetch("/.netlify/functions/pouet",{method:"POST",body:{id:this.page.id,nb:this.pouetsToSend,func:"set"}}).catch(t=>console.log(t)).then(t=>{this.pouetsToSend=0,this.pouetDisabled=!1})},1e3))}}},vt={class:"blog-hero"},bt={class:"container small article-container"},yt={class:"article-wrapper default-style"},At={class:"social"},wt={class:"blog-sidebar"},kt={class:"article-content"},xt={key:0,class:"article-meta"},St={key:0,class:"article-author"},Tt={key:1,class:"article-published-date"},Pt={class:"article-modules",itemprop:"articleBody"},$t={class:"container small article-container"},Bt={class:"article-social"},Ct={class:"pouet-pouets"},qt={class:"wrapper-pouet-pouets-icon"},Mt=["disabled"],jt={key:0},It=fe('<circle class="js-boom" cx="31.5" cy="30.5" r="7.5" fill="#87FF5C" data-v-08ae9d63></circle><circle class="js-boom" cx="94.5" cy="60.5" r="7.5" fill="#41D1FF" data-v-08ae9d63></circle><circle class="js-boom" cx="62.5" cy="75.5" r="7.5" fill="#FF9458" data-v-08ae9d63></circle><circle class="js-boom" cx="79.5" cy="27.5" r="7.5" fill="#FF6464" data-v-08ae9d63></circle><path class="js-boom" fill="#FFEE57" d="M55.295 11l11.024 4.74-8.295 19.292L47 30.292z" data-v-08ae9d63></path><path class="js-boom" fill="#A660FF" d="M46.295 41l11.024 4.74-8.295 19.292L38 60.292z" data-v-08ae9d63></path><path class="js-boom" fill="#FF9CE3" d="M69.295 41l11.024 4.74-8.295 19.292L61 60.292z" data-v-08ae9d63></path><circle class="js-boom" cx="81.686" cy="52.652" r="7.5" transform="rotate(165 81.686 52.652)" fill="#87FF5C" data-v-08ae9d63></circle><circle class="js-boom" cx="13.068" cy="39.98" r="7.5" transform="rotate(165 13.068 39.98)" fill="#41D1FF" data-v-08ae9d63></circle><circle class="js-boom" cx="40.095" cy="17.209" r="7.5" transform="rotate(165 40.095 17.209)" fill="#FF9458" data-v-08ae9d63></circle><circle class="js-boom" cx="36.098" cy="67.973" r="7.5" transform="rotate(165 36.098 67.973)" fill="#FF6464" data-v-08ae9d63></circle><path class="js-boom" fill="#FFEE57" d="M63.749 77.647l-11.876-1.725 3.02-20.782 11.875 1.725z" data-v-08ae9d63></path><path class="js-boom" fill="#A660FF" d="M64.677 46.34l-11.875-1.726 3.02-20.781 11.875 1.725z" data-v-08ae9d63></path><path class="js-boom" fill="#FF9CE3" d="M42.46 52.292l-11.875-1.725 3.02-20.782L45.48 31.51z" data-v-08ae9d63></path>',14),Lt=[It],Ft={class:"pouet-pouets-txt"},Ut={class:"pouet-pouets-nb"},Et={key:0,class:"article-author-desc",itemprop:"author",itemscope:"",itemtype:"http://schema.org/Person"},Dt=["content"],Ot={class:"author-desc"},Rt={key:0,itemprop:"name",class:"author-name"},zt={key:1,class:"author-bio",itemprop:"description"},Kt={key:1,itemprop:"author",content:"Stuart"},Nt={key:2,class:"related-articles-wrapper"},Vt={key:0,class:"related-article-title"};function Qt(t,a,e,s,o,n){const m=le,$=Ue,O=gt,w=X,U=ke;
1return l(),u("div",null,[c("div",vt,[F(m,{content:e.page},null,8,["content"])]),c("div",bt,[c("div",yt,[c("div",At,[c("div",wt,[F($,{content:e.page,class:"vertical"},null,8,["content"])])]),c("div",kt,[!e.page.hideAuthor&&e.page.author.name&&e.page.authorPreText||e.page.showPublicationDate?(l(),u("div",xt,[!e.page.hideAuthor&&e.page.author.name&&e.page.authorPreText?(l(),u("div",St,j(e.page.authorPreText)+" "+j(e.page.author.name),1)):P("",!0),e.page.showPublicationDate?(l(),u("span",Tt,j(n.formatDate(e.page._publishedAt,t.$i18n)),1)):P("",!0)])):P("",!0),c("div",Pt,[(l(!0),u(W,null,H(e.page.modulesBlog,b=>(l(),E(O,{key:b.id,data:b},null,8,["data"]))),128))])])])]),c("div",$t,[c("div",Bt,[c("div",Ct,[c("span",qt,[c("button",{ref:"pouetBtn",class:G([{active:o.btnActive},"pouet-pouets-icon"]),disabled:o.pouetDisabled,onMousedown:a[0]||(a[0]=(...b)=>n.pouetBtnAnim&&n.pouetBtnAnim(...b)),onMouseup:a[1]||(a[1]=(...b)=>n.pouetBtnOut&&n.pouetBtnOut(...b)),onClick:a[2]||(a[2]=(...b)=>n.poueeet&&n.poueeet(...b))},[F(w,{name:"pouet-pouet"})],42,Mt),o.totalSvg.length>0?(l(),u("div",jt,[(l(!0),u(W,null,H(o.totalSvg,(b,d)=>(l(),u("svg",{ref_for:!0,ref:"booms",key:"booms"+d,class:"booms",viewBox:"0 0 102 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lt))),128))])):P("",!0)]),c("span",Ft,[c("span",Ut,j(n.allPouets),1),me(" "+j(e.page.shareLegend.congratulationLabel),1)])]),F($,{content:e.page,class:"horizontal"},null,8,["content"])]),!e.page.hideAuthor&&e.page.author?(l(),u("div",Et,[c("meta",{content:e.page.author.photo.url,itemprop:"image"},null,8,Dt),c("div",{style:ge({backgroundImage:`url(${e.page.author.photo.url})`}),class:"img"},null,4),c("div",Ot,[e.page.author.name?(l(),u("span",Rt,j(e.page.author.name),1)):P("",!0),e.page.author.description?(l(),u("span",zt,j(e.page.author.description),1)):P("",!0)])])):(l(),u("meta",Kt)),e.relatedArticles.length?(l(),u("div",Nt,[e.page.relatedArticlesTitle?(l(),u("p",Vt,j(e.page.relatedArticlesTitle),1)):P("",!0),c("div",{class:G(["related-articles",{three:e.relatedArticles.length>=3}])},[(l(!0),u(W,null,H(e.relatedArticles,b=>(l(),E(U,{key:b.id,article:b},null,8,["article"]))),128))],2)])):P("",!0)])])}const Wt=D(ft,[["render",Qt],["__scopeId","data-v-08ae9d63"]]),Ht=(t="modulesBlog")=>`${t} {
2        ... on ArticleTextModuleRecord {
3            _modelApiKey
4            id
5            module {
6                content
7            }
8        }
9        ... on ArticleYoutubeEmbedModuleRecord {
10            _modelApiKey
11            id
12            module {
13                videoId
14            }
15        }
16        ... on ArticleImageModuleRecord {
17            _modelApiKey
18            id
19            module {
20                giphyLink
21                image {
22                    ${V}
23                }
24                display
25                caption
26            }
27        }
28        ... on ArticleQuoteModuleRecord {
29            _modelApiKey
30            id
31            module {
32                quote
33            }
34        }
35        ... on ArticleBlockquoteModuleRecord {
36            _modelApiKey
37            id
38            module {
39                quote
40                textUnderQuote
41            }
42        }
43    }`,Yt=`
44    query BlogArticle($slug: String!, $locale: SiteLocale) {
45        ${xe}
46		blogArticle(filter: { slug: { eq: $slug } }, locale: $locale) {
47			_modelApiKey
48            id
49            _publishedAt
50            __typename
51			${Se}
52			slug
53            _allSlugLocales {
54                locale
55                value
56            }
57            category {
58                _modelApiKey
59                id
60                slug
61                name
62                _allSlugLocales {
63                    locale
64                    value
65                }
66            }
67            heroTitle
68            heroIntro
69            heroIllustration {
70                ${V}
71            }
72            hasButton
73            buttonLabel
74            ${ce()}
75            showPublicationDate
76            readingTime
77            shareLegend {
78                title
79                linkShareText
80                congratulationLabel
81            }
82            relatedArticlesTitle
83            author {
84                name
85                description
86                photo {
87                   ${V}
88                }
89            }
90            authorPreText
91            hideAuthor
92            ${Ht()}
93            pouets
94        }
95    }
96`,Gt=`
97    query Category($locale: SiteLocale, $catId: ItemId!, $id: ItemId!) {
98        allBlogArticles(first: 3, locale: $locale, filter: { category: { eq: $catId }, id: { neq: $id }, slug: {exists: true} }) {
99            id
100            _publishedAt
101            thumbnail {
102                ${V}
103            }
104            _modelApiKey
105            slug
106            _allSlugLocales {
107                locale
108                value
109            }
110            heroTitle
111            heroIntro
112            category {
113                _modelApiKey
114                id
115                name
116                slug
117            }
118        }
119    }
120`,ao={__name:"[slug]",async setup(t){let a,e;
120const s=ue(),o=Ae(),n=ve(),m=n.params.slug,$=Z().locale.value;Z().locales.value;const{$seo:O}=we(),w=Y(null),U=Y(null),b=Y(null),{data:d,error:i}=([a,e]=be(async()=>he(m,async()=>{const{data:r,errors:B}=await $fetch(o.public.datoApiUrl,{method:"POST",body:{query:Yt,variables:{locale:$,slug:m}},headers:{Authorization:`Bearer ${o.public.preview?o.public.datoApiToken:o.datoApiToken}`}}).catch(_=>console.log(_));B&&console.error("Errors in the blog article query: ",B);const v=r.blogArticle,y=r._site.globalSeo,{data:k,errors:M}=await $fetch(o.public.datoApiUrl,{method:"POST",body:{query:Gt,variables:{locale:$,catId:v.category.id,id:v.id}},headers:{Authorization:`Bearer ${o.public.preview?o.public.datoApiToken:o.datoApiToken}`}}).catch(_=>console.log(_));M&&console.error("Errors in the related articles query: ",M);const I=k.allBlogArticles,L=[];let f="";f=o.public.baseUrl,v._allSlugLocales.forEach(_=>{let x;const q=ye()["blog/index"][_.locale];if(!q)return;const S=v.category._allSlugLocales.find(T=>T.locale===_.locale).value;_.locale==="en"?(x=f+q+"/"+S+"/"+_.value+"/",L.push({hreflang:"x-default",href:x,rel:"alternate"})):(x=f+"/"+_.locale+q+"/"+S+"/"+_.value+"/",L.push({hreflang:_.locale,href:x,rel:"alternate"}))});const C=O({host:o.public.baseUrl,fullPath:n.fullPath,lang:$,hrefLang:L,seo:v.seo,globalSeo:y,noindex:!1});return{page:v,relatedArticles:I,head:C}},"$mjPlyEFkvb")),a=await a,e(),a);i.value&&console.log(i.value),d.value&&(w.value=d.value.page,U.value=d.value.relatedArticles,b.value=d.value.head),s.setHeaderColor("white"),s.setCustomColorTheme({}),s.setCustomNavbar({});const{_modelApiKey:h,id:A,__typename:g,_allSlugLocales:p}=w.value;return s.setPage({_modelApiKey:h,id:A,__typename:g,_allSlugLocales:p}),de(b),(r,B)=>{const v=Wt;return l(),u("div",null,[F(v,{page:ee(w),relatedArticles:ee(U)},null,8,["page","relatedArticles"])])}}};export{ao 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.