text: (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{132:function(e,t,n){"use strict";n.r(t);n(151);var o=n(7),a=n.n(o),i=n(47),c=n.n(i),r=(n(46),n(72),n(73),n(0)),s=n.n(r),l=n(161),u=n(162),g=n.n(u),p=n(148),d=n.n(p),f=n(144),h=n(147),v=n(145),m=n(160),_=n(159).documentToHtmlString,b=n(404),x=[],E=m.createClient({space:"i9ffcls8piwd",accessToken:"0e901bffbe4847589adf6f981bf030c8d6071e5561d8a1ccd54114e98bc63191"});b.keys().forEach(function(e){var t={};t.src=b(e),t.width=4,t.height=3,x.push(t)});var w=function(e){function t(){var t;return(t=e.call(this)||this).state={currentImage:0,data:null},t.closeLightbox=t.closeLightbox.bind(c()(c()(t))),t.openLightbox=t.openLightbox.bind(c()(c()(t))),t.gotoNext=t.gotoNext.bind(c()(c()(t))),t.gotoPrevious=t.gotoPrevious.bind(c()(c()(t))),t}a()(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;E.getEntry("4MykPA3pSoQaUGwGW0q82e").then(function(n){e=_(n.fields.accessoriVino),t.setState({data:e})})},n.openLightbox=function(e,t){this.setState({currentImage:t.index,lightboxIsOpen:!0})},n.closeLightbox=function(){this.setState({currentImage:0,lightboxIsOpen:!1})},n.gotoPrevious=function(){this.setState({currentImage:this.state.currentImage-1})},n.gotoNext=function(){this.setState({currentImage:this.state.currentImage+1})},n.render=function(){var e=this.state.data;return s.a.createElement(f.a,null,s.a.createElement(h.a,null),s.a.createElement("div",{className:"wrapper"},s.a.createElement("div",{className:"container "+d.a.height100},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col"},s.a.createElement("div",{className:d.a.content+" container",dangerouslySetInnerHTML:{__html:e}})),s.a.createElement("div",{className:"container "+d.a.gallery},s.a.createElement(l.a,{photos:x,onClick:this.openLightbox,margin:12}),s.a.createElement(g.a,{images:x,onClose:this.closeLightbox,onClickPrev:this.gotoPrevious,onClickNext:this.gotoNext,currentImage:this.state.currentImage,isOpen:this.state.lightboxIsOpen}))))),s.a.createElement(v.a,null))},t}(s.a.Component);t.default=w},148:function(e,t,n){e.exports={title:"other-module--title--1Lwc_",post:"other-module--post--3Ec0d",content:"other-module--content--No76_",gallery:"other-module--gallery--3WCA1"}},158:function(e,t){},404:function(e,t,n){var o={"./luico-enologia_genova_accessori-conservazione-vino.jpg":405,"./luico-enologia_genova_cantinette.jpg":406,"./luico-enologia_genova_cavatappi.jpg":407,"./luico-enologia_genova_decanter_e_caraffe.jpg":408,"./luico-enologia_genova_strumenti_vino.jpg":409};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id=404},405:function(e,t,n){e.exports=n.p+"static/luico-enologia_genova_accessori-conservazione-vino-e627621294e902bae136d591c25161aa.jpg"},406:function(e,t,n){e.exports=n.p+"static/luico-enologia_genova_cantinette-7e1e4ce601970016726ce0e00b31db4b.jpg"},407:function(e,t,n){e.exports=n.p+"static/luico-enologia_genova_cavatappi-9f90e8feeb68d294f5c73285c3531191.jpg"},408:function(e,t,n){e.exports=n.p+"static/luico-enologia_genova_decanter_e_caraffe-898291d2b98c0d8f1f767c96703055b6.jpg"},409:function(e,t,n){e.exports=n.p+"static/luico-enologia_genova_strumenti_vino-831a3cace8a0d6af199e5e1891fc7501.jpg"}}]);
  //# sourceMappingURL=component---src-pages-accessori-vino-js-3df2d1ac9ebcfccf3c61.js.map