_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[62],{"0t3j":function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[model]/[variant]/buy",function(){return t("8d6N")}])},"8d6N":function(e,i,t){"use strict";t.r(i),t.d(i,"__N_SSP",(function(){return f}));var o=t("MX0m"),n=t.n(o),r=t("q1tI"),a=t.n(r),l=t("g4pe"),c=t.n(l),p=(t("20a2"),t("W2TS")),s=t("7pfN"),d=(t("QyaR"),t("nthW")),u=t("to7k"),m=(t("6FLb"),t("ep1F")),g=a.a.createElement,f=!0;i.default=function(e){var i,t,o=e.products,l=e.reqHost,f=(e.query,Object(r.useState)(null===(i=o[0])||void 0===i?void 0:i.variant)[0]),v=Object(r.useState)(null===(t=o[0])||void 0===t?void 0:t.model)[0],y=Object(r.useState)(!0),w=y[0],h=y[1];return Object(r.useEffect)((function(){0==o.length&&(window.location.href="/"),setTimeout((function(){h(!1)}),1e3)}),[o]),g(a.a.Fragment,null,g(c.a,null,g("title",{className:"jsx-4104420036"},"Buy Vespa ",null===v||void 0===v?void 0:v.name," ",null===f||void 0===f?void 0:f.name," \u2014 Official Vespa Society Thailand"),g("meta",{name:"title",content:"Buy Vespa ".concat(null===v||void 0===v?void 0:v.name," ").concat(null===f||void 0===f?void 0:f.name," \u2014 Official Vespa Society Thailand"),className:"jsx-4104420036"}),g("meta",{name:"description",content:null===f||void 0===f?void 0:f.description,className:"jsx-4104420036"}),g("meta",{property:"og:type",content:"article",className:"jsx-4104420036"}),g("meta",{property:"og:title",content:"Buy Vespa ".concat(null===v||void 0===v?void 0:v.name," ").concat(null===f||void 0===f?void 0:f.name," \u2014 Official Vespa Society Thailand"),className:"jsx-4104420036"}),g("meta",{property:"og:url",content:"".concat(l,"/").concat(null===v||void 0===v?void 0:v.slug,"/").concat(null===f||void 0===f?void 0:f.slug,"/buy"),className:"jsx-4104420036"}),g("meta",{property:"og:description",content:null===f||void 0===f?void 0:f.description,className:"jsx-4104420036"}),g("meta",{property:"og:image",content:null===f||void 0===f?void 0:f.image_og_url,className:"jsx-4104420036"})),w&&g(m.a,null),g(d.b,null,g(p.a,null),g("main",{role:"main",className:"jsx-4104420036 main"},g("section",{className:"jsx-4104420036 section section-buyingchoice"},o.length>0&&g(u.a,{products:o}))),g(s.a,null)),g(n.a,{id:"4104420036"},[".buying-choice-grid{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-column-gap:20px;grid-row-gap:20px;margin-bottom:100px;}",".buying-choice-grid .col{position:relative;}",".figure-display{position:-webkit-sticky;position:sticky;top:80px;width:100%;}",".figure-preview{position:absolute;top:0;bottom:0;left:0;right:0;background-repeat:no-repeat;background-size:contain;background-position:center;-webkit-transition:all 300ms ease;transition:all 300ms ease;}",'.figure-preview:after{display:block;content:" ";padding-bottom:90%;}',".figure-remark{font-size:12px;line-height:1.38em;color:var(--color-grey);margin:0 auto;margin-top:2em;width:100%;}",".figure-delivery-time{display:block;position:relative;width:100%;margin:0 auto;}",".figure-delivery-time h4.title{position:relative;font-size:21px;line-height:1.22em;font-weight:500;margin:0 auto;margin-top:2em;}",".figure-delivery-estimated{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-column-gap:20px;margin-top:2em;}",".figure-delivery-estimated .col{position:relative;display:block;}",".figure-delivery-estimated .text{font-size:12px;line-height:1.44em;display:block;color:var(--color-grey);}",".figure-delivery-estimated .text.text-title{font-weight:500;color:var(--color-dark);margin-bottom:1em;}",".section-introduction{position:relative;display:block;margin-bottom:4em;}",'.section-introduction h1{display:block;font-family:"Vinyl";font-style:oblique;font-weight:400;line-height:1em;color:var(--color-sky);margin-bottom:0.5em;}',".section-introduction .paragraph{font-size:15px;line-height:1.68em;display:block;}",".section-model-option{position:relative;display:block;}",".model-option{display:block;position:relative;margin:4em 0;}",".model-option h2{font-size:24px;line-height:1.22em;margin-bottom:0.5em;}",".model-option-wrapper{display:block;position:relative;}",".model-option-wrapper input{display:none;}",".ui-pin-wrapper{min-height:200px;display:block;position:relative;}","@media only screen and (max-width:1024px){.section-introduction .paragraph{font-size:15px;}.model-option-color .model-option-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}}","@media only screen and (max-width:768px){.figure-display{margin:auto;}.buying-choice-grid{grid-template-columns:1fr;grid-row-gap:40px;}.col-view-figure{position:-webkit-sticky !important;position:sticky !important;padding-top:20px;z-index:99;left:0;top:60px;width:100%;background:var(--color-white-light);}}","@media only screen and (max-width:440px){.buying-choice-grid{grid-template-columns:1fr;grid-template-rows:auto;grid-row-gap:80px;}.figure-remark{text-align:center;}.figure-delivery-time h4.title{text-align:center;}.section-introduction .paragraph{font-size:15px;}}"]))}},cpVT:function(e,i,t){"use strict";function o(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}t.d(i,"a",(function(){return o}))},p46w:function(e,i,t){var o,n;!function(r){if(void 0===(n="function"===typeof(o=r)?o.call(i,t,i,e):o)||(e.exports=n),!0,e.exports=r(),!!0){var a=window.Cookies,l=window.Cookies=r();l.noConflict=function(){return window.Cookies=a,l}}}((function(){function e(){for(var e=0,i={};e