1"use strict";(self.webpackChunkpiaggiofastforward_com=self.webpackChunkpiaggiofastforward_com||[]).push([[291],{22447:function(e,t,n){n.r(t),n.d(t,{Head:function(){return g}});var a=n(58156),r=n.n(a),i=n(96540),o=n(77539),l=n(81394),c=n(46019),m=n(57773),s=n(34433),u=n(70069);t.default=e=>{var t;let{data:n={}}=e;const{0:a,1:c}=(0,i.useState)(null),g=(0,i.useRef)(null),{storyToRender:p}=(0,u.ms)(null!==(t=n.storyblokEntry)&&void 0!==t?t:null,{slug:"shop"}),{viewWidth:d}=(0,s.k)(),f=(0,i.useMemo)((()=>r()(n,"productColors.nodes",[])),[n]),E=(0,i.useMemo)((()=>{var e,t;return(null!==(e=null===(t=n.productVariants)||void 0===t?void 0:t.nodes)&&void 0!==e?e:[]).map((e=>Object.assign({},e,{content:JSON.parse(e.content)})))}),[n.productVariants]),v=(0,i.useMemo)((()=>({productColors:f,productVariantStories:E})),[f,E]);return(0,u.Es)((()=>{const e=document.getElementById("headerContainerRow");if(!e)return;const t=()=>{const t=e.getBoundingClientRect().height+40,n=g.current,a=n?parseFloat(window.getComputedStyle(n).marginTop):NaN;c(Math.abs(t-a)<1?null:t)};t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}),[d]),i.createElement(i.Fragment,null,i.createElement("div",{ref:g,className:"h-full mb-auto pb-[50px] mt-[90px] sm:mt-[100px]",style:null===a?void 0:{marginTop:a+"px"}},(null==p?void 0:p.content)&&i.createElement(m.GB,{value:v},i.createElement(o.Dp,{blok:p.content}))),i.createElement(l.A,null))};function g(e){var t,n;let{location:a,data:r={}}=e;if(!r.storyblokEntry)return null;const o=JSON.parse(r.storyblokEntry.content),l={title:o.metaDataTitle,description:o.metaDataDescription,image:null===(t=o.metaDataImage)||void 0===t?void 0:t.filename,imageTwitter:null===(n=o.metaDataImageTwitter)||void 0===n?void 0:n.filename,imageAltText:null==o?void 0:o.metaDataImageAltText,location:a,fbDomainVerification:o.metaDataFbDomainVerification};return i.createElement(c.A,l)}},22756:function(e,t,n){var a=n(96540),r=n(64810);const i=e=>{let{title:t,description:n,image:i,imageTwitter:o,imageAltText:l,location:c,productName:m,productRatingValue:s,productReviewCount:u,children:g}=e;const p=(0,r.GR)("1906992151"),{fallbackTitle:d,fallbackDescription:f,siteUrl:E,fallbackImage:v,fallbackImageTwitter:w,fallbackImageAltText:y}=p.site.siteMetadata,h={title:t?t+" - Piaggio Fast Forward":d,description:n||f,image:i||E+"/"+v,url:""+E+((null==c?void 0:c.pathname)||""),imageTwitter:o||E+"/"+w,imageAltText:l||y},b={"@context":"https://schema.org/","@type":"Product",name:m,aggregateRating:{"@type":"AggregateRating",ratingValue:s,reviewCount:u}};return a.createElement(a.Fragment,null,a.createElement("html",{lang:"en"}),a.createElement("title",null,h.title),a.createElement("link",{rel:"canonical",href:h.url}),a.createElement("link",{rel:"shortcut icon",href:"/favicon.ico"}),a.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"description",content:h.description}),a.createElement("meta",{name:"google-site-verification",content:"JlFLQ8nYkiGJ1IZxMa_ioaLssGyfO97BOFUlW8ipW4c"}),a.createElement("meta",{name:"facebook-domain-verification",content:"k3b42g1h51y2hte4pomgn4hg9sd576"}),a.createElement("meta",{name:"referrer",content:"strict-origin-when-cross-origin"}),a.createElement("meta",{property:"og:title",content:h.title,key:"og:title"}),a.createElement("meta",{property:"og:type",content:"website"}),a.createElement("meta",{property:"og:image",content:h.image}),c&&a.createElement("meta",{property:"og:url",content:c.href}),a.createElement("meta",{property:"og:description",content:h.description,key:"ogdesc"}),a.createElement("meta",{property:"og:site_name",content:d,key:"ogsitename"}),a.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),a.createElement("meta",{name:"twitter:site",content:"@piaggiofastfwd"}),a.createElement("meta",{name:"twitter:title",content:h.title}),a.createElement("meta",{name:"twitter:image",content:h.imageTwitter}),a.createElement("meta",{name:"twitter:description",content:h.description}),a.createElement("meta",{name:"twitter:image:alt",content:h.imageAltText}),g,u>0&&a.createElement(r.eF,{type:"application/ld+json"},JSON.stringify(b)))};i.defaultProps={productRatingValue:5,productReviewCount:0},t.A=i},46019:function(e,t,n){var a=n(22756);t.A=a.A}}]); 2//# sourceMappingURL=component---src-pages-shop-tsx-b5e49754ce8df30d395f.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.