1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[9],{"1D5R":function(e,t,n){"use strict";var a=n("rePB"),r=n("nKUr"),c=n("q1tI"),i=n.n(c),o=n("IP2g"),s=n("wHSu"),l=n("oXlV"),f=n("qGRf"),u=n("o0o1"),d=n.n(u),p=n("HaE+"),m=n("1OyB"),j=n("vuIU"),b=n("Ji7U"),h=n("md7G"),O=n("foSv");function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(O.a)(e);if(t){var r=Object(O.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(h.a)(this,n)}}var g=function(e){Object(b.a)(n,e);var t=v(n);function n(e){var a;return Object(m.a)(this,n),(a=t.call(this,e)).wrapperRef=i.a.createRef(),a}return Object(j.a)(n,[{key:"componentDidMount",value:function(){var e=this;!function(e){var t=document.getElementById("googleMaps");if(!t){var n=document.createElement("script");n.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBGlOqYiEs8oFt4SA-ZwLNiwgv1iikd7To",n.id="googleMaps",document.body.appendChild(n),n.onload=function(){e&&e()}}t&&e&&e()}((function(){e.buildMap()}))}},{key:"buildMap",value:function(){var e=Object(p.a)(d.a.mark((function e(){var t,n,a,r,c,i,o,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitMap();case 2:t=this.props,n=t.lat,a=t.lng,r=t.zoom,c=new window.google.maps.DirectionsRenderer,i={zoom:r?parseInt(r):16,mapTypeId:window.google.maps.MapTypeId.ROADMAP,center:new window.google.maps.LatLng(n,a),disableDefaultUI:!0,mapTypeControl:!1,zoomControl:!0,scrollwheel:!1,zoomControlOptions:{style:window.google.maps.ZoomControlStyle.LARGE,position:window.google.maps.ControlPosition.RIGHT}},o=new window.google.maps.Map(this.wrapperRef.current,i),c.setMap(o),c.setPanel(document.getElementById("directions")),s=new window.google.maps.LatLng(n,a),new window.google.maps.Marker({position:s,map:o,icon:"https://images2.nogueirense.com.br/assets2/map-marker.png"});case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"waitMap",value:function(){var e=Object(p.a)(d.a.mark((function e(){var t,n,a=arguments;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:30,!window.google){e.next=5;break}return e.abrupt("return",!0);case 5:if(0!==t){e.next=9;break}return e.abrupt("return",console.error("Google maps not found"));case 9:return n=2e3,e.next=12,new Promise((function(e){return setTimeout(e,n)}));case 12:return e.abrupt("return",this.waitMap(t-1));case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){return Object(r.jsx)("div",{className:"map-container",children:Object(r.jsx)("div",{className:"embed-responsive embed-responsive-16by9",children:Object(r.jsx)("div",{id:"mapa",className:"embed-responsive-item",ref:this.wrapperRef})})})}}]),n}(i.a.Component);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.post,n=[];return t.acf_info&&(n.push(t.acf_info.capa),n.push(t.acf_info.image2),n.push(t.acf_info.image3),n.push(t.acf_info.image4),n.push(t.acf_info.image5),n.push(t.acf_info.image6),n=n.filter((function(e){return e}))),Object(r.jsxs)("div",{className:"comercio",children:[Object(r.jsx)("div",{className:"page-title",children:Object(r.jsx)("h1",{className:"post-title",children:t.title})}),Object(r.jsxs)("div",{className:"row",children:[Object(r.jsxs)("div",{className:"col-md-6",children:[Object(r.jsx)("div",{className:"description",dangerouslySetInnerHTML:{__html:t.content}}),Object(r.jsxs)("div",{className:"info",children:[t.acf_info&&t.acf_info.endereco2&&Object(r.jsxs)("div",{className:"item location",children:[Object(r.jsx)("span",{className:"icon",children:Object(r.jsx)(o.a,{icon:s.e})}),Object(r.jsx)("p",{dangerouslySetInnerHTML:{__html:t.acf_info.endereco2}})]}),t.acf_info&&t.acf_info.fones&&Object(r.jsxs)("div",{className:"item phone",children:[Object(r.jsx)("span",{className:"icon",children:Object(r.jsx)(o.a,{icon:s.f})}),Object(r.jsx)("p",{dangerouslySetInnerHTML:{__html:t.acf_info.fones}})]}),t.acf_info&&(t.acf_info.site||t.acf_info.email)&&Object(r.jsxs)("div",{className:"item web",children:[Object(r.jsx)("span",{className:"icon",children:Object(r.jsx)(o.a,{icon:s.d})}),Object(r.jsxs)("p",{children:[t.acf_info.site&&Object(r.jsx)("a",{href:"http://".concat(t.acf_info.site),target:"_blank",rel:"noopener noreferrer",children:t.acf_info.site}),t.acf_info.email&&Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("br",{}),Object(r.jsx)("a",{href:"emailto:".concat(t.acf_info.email),target:"_blank",rel:"noopener noreferrer",children:t.acf_info.email})]})]})]})]})]}),Object(r.jsx)("div",{className:"col-md-6",children:n&&Object(r.jsx)("div",{className:"block-slide block",children:Object(r.jsx)("div",{className:"slide",children:Object(r.jsx)(f.a,y(y({},{dots:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0}),{},{children:n.map((function(e,n){return Object(r.jsx)("div",{className:"item",children:Object(r.jsx)("img",{className:"placeholder",src:l.a.imageSlide
1Url(e),alt:t.title})},n)}))}))})})})]}),t.acf_info&&t.acf_info.localizacao&&t.acf_info.localizacao.latitude&&t.acf_info.localizacao.longitude&&Object(r.jsx)(g,{lat:t.acf_info.localizacao.latitude,lng:t.acf_info.localizacao.longitude,zoom:t.acf_info.localizacao.zoom})]})}},"5eGc":function(e,t,n){"use strict";n.r(t),n.d(t,"__N_SSG",(function(){return f}));var a=n("nKUr"),r=(n("q1tI"),n("CafY")),c=n("UkKX"),i=n("1D5R"),o=n("IMem"),s=n("TOBs"),l=n("obyI"),f=!0;t.default=function(e){var t=e.category,n=e.post,f=e.mainMenu;return Object(a.jsx)(r.a,{show_guia:l.SHOW_GUIA,mainMenu:f,children:n?Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(c.a,{post:n,importGoogleMaps:!0}),Object(a.jsx)(i.a,{post:n})]}):Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(c.a,{title:t.name}),Object(a.jsx)(o.a,{posts:t.items,title:t.name,urlLambda:s.a.guiaUrl})]})})}},IMem:function(e,t,n){"use strict";var a=n("nKUr"),r=n("ODXe"),c=n("1OyB"),i=n("vuIU"),o=n("Ji7U"),s=n("md7G"),l=n("foSv"),f=n("q1tI"),u=n.n(f),d=n("UUyv"),p=n("oXlV"),m=n("XikS"),j=n("obyI");function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var h=function(e){Object(o.a)(n,e);var t=b(n);function n(e){var a;return Object(c.a)(this,n),(a=t.call(this,e)).state={filteredPosts:[]},a}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.posts,n=e.categories;if(e.filter){var a=this.getUrlParams(),c=t.filter((function(e){var t=!0;return Object.entries(n).forEach((function(n){var c=Object(r.a)(n,2),i=c[0],o=c[1],s=a[i];if(s){var l=!1;e[o].nodes.forEach((function(e){e.slug==s&&(l=!0)})),l||(t=!1)}})),t}));this.setState({filteredPosts:c})}}},{key:"getUrlParams",value:function(){var e={};return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(t,n,a){e[n]=a})),e}},{key:"render",value:function(){var e,t=this.props,n=t.title,r=t.urlLambda,c=t.filter,i=t.posts;return e=c?this.state.filteredPosts:i,Object(a.jsxs)("div",{className:"row guia-grid",children:[Object(a.jsx)("div",{className:"col-xs-12",children:Object(a.jsx)("h1",{className:"post-title",children:n})}),0===e.length&&Object(a.jsx)("div",{className:"col-xs-12",children:Object(a.jsx)("p",{children:"Nenhum item encontrado com essas especifica\xe7\xf5es."})}),e.map((function(e,t){return Object(a.jsx)(O,{urlLambda:r,post:e,index:t},e.databaseId)}))]})}}]),n}(u.a.Component),O=function(e){var t=e.post,n=e.index,r=e.urlLambda;return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("div",{className:"col-md-3 col-sm-4 col-xs-6",children:Object(a.jsxs)("div",{className:"item",children:[Object(a.jsx)("div",{className:"thumb",children:Object(a.jsx)(m.a,{to:r(t.slug),children:Object(a.jsx)(d.LazyLoadImage,{placeholderSrc:"".concat(j.FRONTEND_BASE_PATH,"/images/placeholder-300x150.png"),src:p.a.imageThumbnailUrl(t),title:t.title,alt:t.title,ratio:"300x150"})})}),Object(a.jsx)("div",{className:"title",children:Object(a.jsx)(m.a,{to:r(t.slug),children:t.title})})]})}),(n+1)%2===0&&Object(a.jsx)("div",{className:"clearfix visible-xs"}),(n+1)%3===0&&Object(a.jsx)("div",{className:"clearfix visible-sm"}),(n+1)%4===0&&Object(a.jsx)("div",{className:"clearfix visible-md visible-lg"})]})};t.a=h},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("BsWD");function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(a=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(s){r=!0,c=s}finally{try{a||null==o.return||o.return()}finally{if(r)throw c}}return n}}(e,t)||Object(a.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]);
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.