var PROP=""; var NEWS=[]; var CARDLIST=[]; var APIREF="https://mediaroom.seara.com.br"; (this.webpackJsonpjbs = this.webpackJsonpjbs || []).push([ [0], [, , , , , , function(e, t, s) { "use strict"; s.d(t, "a", (function() { return n })), s.d(t, "c", (function() { return i })); var c = s(60), a = s.n(c), n = APIREF, i = localStorage.getItem("lang") ? localStorage.getItem("lang") : "br", r = a.a.create({ baseURL: "".concat(n) }); t.b = r }, function(e, t, s) { "use strict"; s.d(t, "b", (function() { return c })), s.d(t, "a", (function() { return a })), s.d(t, "c", (function() { return n })); var c = function(e) { return e.replaceAll("[#]", "

") }, a = function(e) { var t = e.substr(0, 4), s = e.substr(5, 2); s = parseInt(s) - 1; return "".concat(["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"][s], " de ").concat(t) }, n = function(e) { return e.sort(i) }, i = function(e, t) { return e.data > t.data } }, , , , , , , function(e, t, s) { "use strict"; var c = s(2), a = s(1); t.a = function(e) { var t = e.post, s = e.type, n = e.className, i = Object(c.useRef)(); Object(c.useEffect)((function() { r() })); var r = function() { i.current.setAttribute("style", l()) }, l = function() { if (t.pics && t.pics.length > 0) { var e = t.pics[0].style; if (e) return e } return "" }; return Object(a.jsx)("img", { loading: "lazy", ref: i, src: "".concat(function() { if (t.pics && t.pics.length > 0) return "h" === s ? t.pics[0].pic_h : t.pics[0].pic_v }()), alt: function() { if (t.pics && t.pics.length > 0) return t.pics[0].caption }(), className: n }) } }, , , , , , function(e, t, s) { "use strict"; s.d(t, "a", (function() { return _ })); var c = s(12), a = s(13), n = s(16), i = s(15), r = s(2), l = s.n(r), o = (s(70), s(1)), _ = function(e) { Object(n.a)(s, e); var t = Object(i.a)(s); function s() { return Object(c.a)(this, s), t.apply(this, arguments) } return Object(a.a)(s, [{ key: "render", value: function() { return Object(o.jsx)("footer", { children: Object(o.jsxs)("div", { className: "container", children: [Object(o.jsx)("p", { children: "\xa9 COPYRIGHT 2021. SEARA." }), Object(o.jsx)("p", { children: Object(o.jsx)("b", { children: "MEDIA ROOM" }) })] }) }) } }]), s }(l.a.Component) }, , , , , function(e, t, s) { "use strict"; s(2), s(122), s(58); var c = s(14), a = s(7), n = s(1); t.a = function(e) { return Object(n.jsxs)("div", { className: "newsBox".concat(!0 === e.featured ? " featured" : ""), children: [Object(n.jsx)("div", { className: "borderLeft ".concat((null === e || void 0 === e ? void 0 : e.hasBorder) ? "" : "hide") }), (null === e || void 0 === e ? void 0 : e.hasImage) && Object(n.jsx)(c.a, { post: e.post, className: "newsImg" }), Object(n.jsxs)("div", { className: "newsContent hasImage", children: [Object(n.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(n.jsx)("h2", { className: "newsTitle", children: Object(n.jsx)("span", { children: e.title }) }) }), e.desc && Object(n.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(n.jsx)("h3", { className: "newsDesc", dangerouslySetInnerHTML: { __html: Object(a.b)(e.desc) } }) }), Object(n.jsx)("div", { className: "infoBox", children: Object(n.jsxs)("ul", { children: [e.tags && Object(n.jsx)(n.Fragment, { children: e.tags.length > 0 && Object(n.jsx)("li", { children: Object(n.jsx)("button", { onClick: function() { return window.location.href = "/tag/".concat(e.tags[0]) }, children: e.tags[0] }) }) }), e.cards && Object(n.jsx)(n.Fragment, { children: e.cards.length > 0 && Object(n.jsx)("li", { cust: "CARD0", children: Object(n.jsx)("button", { onClick: function() { return window.location.href = "/card/".concat(e.cards[0]) }, children: e.cards[0] }) }) }), e.date && Object(n.jsx)("li", { children: Object(n.jsx)("p", { children: e.date }) })] }) })] })] }) } }, function(e, t, s) { "use strict"; var c = s(3), a = s(2), n = s(36), i = (s(73), s.p + "static/media/logo.3135ad25.png"), r = s(22), l = s(130), o = s(131), _ = (s(74), s(1)), j = function(e) { return Object(_.jsx)("div", { className: "modal-filter", attr:"MF2", onClick: function(t) { t.target === t.currentTarget && e.onClose() }, children: Object(_.jsxs)("div", { className: "modal-filter-content", children: [Object(_.jsxs)("div", { className: "modal-filter-header", children: [Object(_.jsx)("h3", { children: e.title }), Object(_.jsx)("button", { className: "btn-close", onClick: function() { return e.onClose() }, children: Object(_.jsx)(r.a, {}) })] }), Object(_.jsxs)("div", { className: "modal-filter-body", children: [e.items.length > 0 && Object(_.jsx)(l.a, { children: e.items.map((function(t) { return Object(_.jsx)(o.a, { sm: 4, xs: 12, children: Object(_.jsx)("a", { cust:"A0", href: "/".concat(e.type, "/").concat(t), children: t }) }) })) }), 0 === e.items.length && Object(_.jsx)("p", { children: "Nenhuma item nesse menu." })] })] }) }) }, d = (s(7), s(75), function(e) { var t = Object(a.useState)(""), s = Object(c.a)(t, 2), i = s[0], l = s[1], o = function() { window.location.href = "/search/".concat(i) }; return Object(_.jsx)("div", { className: "modal-filter", attr:"MF3", onClick: function(t) { t.target === t.currentTarget && e.onClose() }, children: Object(_.jsxs)("div", { className: "modal-filter-content", children: [Object(_.jsxs)("div", { className: "modal-filter-header", children: [Object(_.jsx)("h3", { children: e.title }), Object(_.jsx)("button", { className: "btn-close", onClick: function() { return e.onClose() }, children: Object(_.jsx)(r.a, {}) })] }), Object(_.jsx)("div", { className: "modal-filter-body", children: Object(_.jsxs)("div", { className: "box-search", children: [Object(_.jsx)("input", { onKeyDown: function(e) { "Enter" === e.key && o() }, onChange: function(e) { return l(e.target.value) }, value: i, placeholder: "Digite sua busca aqui" }), Object(_.jsx)("button", { type: "button", onClick: o, children: Object(_.jsx)(n.a, {}) })] }) })] }) }) }), b = s(37), h = function(e) { return Object(_.jsx)("div", { className: "modal-filter", attr:"MF4", onClick: function(t) { t.target === t.currentTarget && e.onClose() }, children: Object(_.jsxs)("div", { className: "modal-filter-content", children: [Object(_.jsxs)("div", { className: "modal-filter-header", children: [Object(_.jsx)("h3", { children: e.title }), Object(_.jsx)("button", { className: "btn-close", onClick: function() { return e.onClose() }, children: Object(_.jsx)(r.a, {}) })] }), Object(_.jsx)("div", { className: "modal-filter-body", children: Object(_.jsx)("p", { dangerouslySetInnerHTML: { __html: e.contents } }) })] }) }) }, O = s(6); t.a = function(e) { // console.log("E"); // console.dir(e); var t = e.headers, s = Object(a.useState)(!1), r = Object(c.a)(s, 2), l = r[0], o = r[1], u = Object(a.useState)(!1), x = Object(c.a)(u, 2), m = x[0], p = x[1], g = Object(a.useState)(!1), f = Object(c.a)(g, 2), E = f[0], v = f[1], w = Object(a.useState)(!1), M = Object(c.a)(w, 2), N = M[0], D = M[1], C = Object(a.useState)(""), P = Object(c.a)(C, 2), T = P[0], S = P[1], I = Object(a.useState)([]), k = Object(c.a)(I, 2), L = k[0], B = k[1], R = Object(a.useState)(""), A = Object(c.a)(R, 2), U = A[0], y = A[1], W = Object(a.useState)(""), K = Object(c.a)(W, 2), Y = K[0], F = K[1], q = Object(a.useState)(""), G = Object(c.a)(q, 2), $ = G[0], H = G[1]; Object(a.useEffect)((function() { return J(), document.addEventListener("scroll", V), function() { document.removeEventListener("scroll", V) } }), []); var V = function() { var e = document.querySelector("header"), t = e.classList.contains("fixed"); window.scrollY > 120 ? t || e.classList.add("fixed") : t && e.classList.remove("fixed") }, J = function() { O.b.get("/getposts.php?slice=contato").then((function(e) { console.log(e.data, "posts"), e.data.posts.length > 0 ? H(e.data.posts[0].contents) : H("") })) }; return Object(_.jsxs)(_.Fragment, { children: [N && Object(_.jsx)(h, { title: T, contents: Y, onClose: function() { return D(!1) } }), m && Object(_.jsx)(j, { title: T, items: L, type: U, onClose: function() { return p(!1) } }), E && Object(_.jsx)(d, { title: "Fa\xe7a sua busca", onClose: function() { return v(!1) } }), Object(_.jsx)("header", { children: Object(_.jsxs)("div", { id: "headerBox", className: "container", attr:"C01", children: [Object(_.jsxs)("button", { className: "openMenu", onClick: function() { var e = document.querySelector("body"); e.style.overflow = l ? "auto" : "hidden", o(!l) }, children: [Object(_.jsx)("div", { className: "rowToggle", attr:"R0", }), Object(_.jsx)("div", { className: "rowToggle" }), Object(_.jsx)("div", { className: "rowToggle" })] }), Object(_.jsx)("a", { href: "https://www.seara.com.br", target: "_blank", children: Object(_.jsx)("img", { src: i, alt: "JBS", id: "logo" }) }), Object(_.jsx)("div", { className: "header-col-center", children: Object(_.jsx)(b.b, { to: "/", children: Object(_.jsx)("h4", { children: "Sala de imprensa" }) }) }), Object(_.jsxs)("ul", { id: "mainMenu", className: l ? "show" : "hide", attr:"L0", children: [t.map((function(e, t) { return Object(_.jsx)("li", { children: Object(_.jsx)("a", { href: "#", cust:"A1", onClick: function(t) { return function(e, t) { e.preventDefault(); var s = t.route; console.log("S"); console.dir(s); console.log("ROUTE"); console.dir(t); //ACHTUNG t.cards=[ "Seara", "Seara Gourmet", "Receitas", "Merchandising" ]; debugger; "all" === s && (window.location.href = "/slice/Not\xedcias"), "contact" === s && (S(t.name), F($), D(!0)), "register" === s && (S(t.name), F("

Aguardando conte\xfado.

"), D(!0)), "tag" === s && "tags" in t ? (S(t.name), B(t.tags), y(s), p(!0)) : "tag" === s && (window.location.href = "/".concat(s, "/").concat(t.name)), "card" === s && "cards" in t ? (S(t.name), B(t.cards), y(s), p(!0)) : "card" === s && (window.location.href = "/".concat(s, "/").concat(t.name)), "slice" === s && "slices" in t ? (S(t.name), B(t.slices), y(s), p(!0)) : "slice" === s && (window.location.href = "/".concat(s, "/").concat(t.name)) }(t, e) }, children: e.name }) }, t) })), Object(_.jsx)("li", { children: Object(_.jsx)("a", { href: "#", onClick: function(e) { e.preventDefault(), v(!0) }, children: Object(_.jsx)(n.a, { style: { fontSize: 20 } }) }) })] })] }) })] }) } }, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, s) { "use strict"; s.p }, , , , function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.d(__webpack_exports__, "a", (function() { return SingleNews })); var _Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12), _Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13), _Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16), _Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15), react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2), react__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__), moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27), moment__WEBPACK_IMPORTED_MODULE_5___default = __webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__), react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(130), react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(131), _components_Header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26), _components_Footer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20), _components_News__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(25), _styles_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(126), _styles_css__WEBPACK_IMPORTED_MODULE_11___default = __webpack_require__.n(_styles_css__WEBPACK_IMPORTED_MODULE_11__), _services_api__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6), react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(1), react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13___default = __webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__), SingleNews = function(_React$Component) { Object(_Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__.a)(SingleNews, _React$Component); var _super = Object(_Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__.a)(SingleNews); function SingleNews(props) { var _this; return Object(_Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__.a)(this, SingleNews), _this = _super.call(this, props), _this.getNews = function() { _services_api__WEBPACK_IMPORTED_MODULE_12__.b.get("".concat(_services_api__WEBPACK_IMPORTED_MODULE_12__.a, "/getposts.php?fullurl&slug=").concat(_this.props.match.params.slug)).then((function(res) { var _res$data$posts$; console.log(res); var script = null === (_res$data$posts$ = res.data.posts[0]) || void 0 === _res$data$posts$ ? void 0 : _res$data$posts$.script; script && eval(script), _this.setState({ news: res.data.posts.length > 0 ? res.data.posts[0] : {}, headers: res.data.headers, slices: res.data.slices, loading: !1 }, (function() { return _this.getRelated() })) })) }, _this.getRelated = function() { var e = Object.keys(_this.state.news).length > 0 ? _this.state.news.slice : null; e && _services_api__WEBPACK_IMPORTED_MODULE_12__.b.get("".concat(_services_api__WEBPACK_IMPORTED_MODULE_12__.a, "/getposts").concat("br" === _services_api__WEBPACK_IMPORTED_MODULE_12__.c ? "" : "_en", ".php?s0&slice=").concat(e, "&start=0&end=3")).then((function(e) { _this.setState({ related: e.data.posts }) })) }, _this.state = { loading: !0, headers: [], slices: [], news: {}, related: [] }, _this } return Object(_Users_lucasborelli_www_react_seara_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__.a)(SingleNews, [{ key: "componentDidMount", value: function() { this.getNews() } }, { key: "render", value: function() { return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, { children: !this.state.loading && Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, { children: [Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_Header__WEBPACK_IMPORTED_MODULE_8__.a, { headers: this.state.headers }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div", { className: "container", children: Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div", { className: "content", children: [this.state.news.pics.length > 0 && Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("img", { src: this.state.news.pics[0].pic_h, alt: this.state.news.pics[0].caption, className: "newsSingleImage" }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div", { className: "boxTopNotice", children: this.state.news.shortdate && Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div", { className: "dateNotice", children: Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span", { children: this.state.news.shortdate }) }) }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("h1", { className: "newsSingleTitle", children: this.state.news.title }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("h2", { className: "newsSingleSubtitle", children: this.state.news.description }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div", { className: "newsSingleContent", dangerouslySetInnerHTML: { __html: this.state.news.contents } }), this.state.news.tags && Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, { children: this.state.news.tags.length > 0 && Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div", { className: "singleNewsTags", children: this.state.news.tags.map((function(e) { return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a", { href: "/tag/".concat(e), children: Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span", { children: e }) }) })) }) }), this.state.related.length > 0 && Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("h3", { className: "titleMoreNews", children: "br" === _services_api__WEBPACK_IMPORTED_MODULE_12__.c ? "Mais not\xedcias" : "More news" }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__.a, { children: this.state.related.map((function(e, t) { return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__.a, { sm: 6, xs: 12, children: Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_News__WEBPACK_IMPORTED_MODULE_10__.a, { post: e, title: e.title, desc: e.description, tags: e.tags, slug: e.slug }) }, t) })) })] }) }), Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_Footer__WEBPACK_IMPORTED_MODULE_9__.a, {})] }) }) } }]), SingleNews }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component) }, , , , , function(e, t, s) {}, , function(e, t, s) {}, function(e, t, s) {}, , function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, , , function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) {}, function(e, t, s) { "use strict"; s.r(t); var c = s(2), a = s.n(c), n = s(59), i = s.n(n), r = (s(67), s(68), s(69), s(37)), l = s(5), o = s(20), _ = s(3), j = s(130), d = s(131), b = (s(72), s(26)), h = s(17), O = s(23), u = s.n(O), x = (s(43), s(44), s(31)), m = s(6), p = (s(113), s(1)), g = function(e) { var t = e.posts, s = Object(c.useState)([]), a = Object(_.a)(s, 2), n = a[0], i = a[1]; Object(c.useEffect)((function() { r() }), []); var r = function() { var e = []; t.map((function(t) { t.pics.map((function(t) { e.length < 8 && e.push(t) })) })), i(e) }; return Object(p.jsxs)(p.Fragment, { children: [Object(p.jsx)(j.a, { children: Object(p.jsx)(d.a, { children: Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsx)("ul", { className: "titleCategories", children: Object(p.jsx)("li", { children: "Banco de imagens" }) }), Object(p.jsx)("ul", { className: "titleCategories titleLarger", children: Object(p.jsx)("li", { children: Object(p.jsx)("a", { style: { color: "#ff5300" }, href: "/images/Galeria", children: "Ver mais" }) }) })] }) }) }), Object(p.jsx)("div", { children: Object(p.jsx)(u.a, Object(h.a)(Object(h.a)({}, { dots: !1, infinite: !0, slidesToShow: 4, slidesToScroll: 1, autoplay: !0, speed: 1e3, autoplaySpeed: 2e3, arrows: !0, responsive: [{ breakpoint: 800, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 1 } }] }), {}, { className: "slick-gallery", children: n.map((function(e, t) { return Object(p.jsxs)("div", { className: "sliderGallery", children: [Object(p.jsx)("div", { className: "imgGallery", children: Object(p.jsx)("img", { src: e.pic_v, alt: e.credits }) }), Object(p.jsxs)("div", { className: "contentGallery", children: [Object(p.jsx)("b", { children: "LEGENDA:" }), Object(p.jsx)("p", { children: e.caption }), Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsxs)("div", { className: "item", children: [Object(p.jsx)("b", { children: "CR\xc9DITOS:" }), Object(p.jsx)("p", { children: e.credits })] }), Object(p.jsx)("div", { className: "item", children: Object(p.jsx)("a", { href: e.fullpic_h, target: "_blank", download: !0, children: Object(p.jsx)(x.a, {}) }) })] })] })] }, t) })) })) })] }) }, f = s(38), E = s(24), v = s(14), w = (s.p, s(114), function(e) { var t = e.posts, s = { ig: { url: "https://www.instagram.com/searabrasil", name: "searabrasil", icon: Object(p.jsx)(f.a, {}) }, fb: { url: "https://pt-br.facebook.com/SearaBrasil", name: "SearaBrasil", icon: Object(p.jsx)(E.a, {}) }, tw: { url: "https://twitter.com/seara_brasil", name: "seara_brasil", icon: Object(p.jsx)(E.b, {}) } }, c = function(e) { var t = e.post, c = t.cards.length > 0 ? t.cards[0] : null, a = t.links.length > 0 ? t.links[0].link : "#"; return Object(p.jsxs)("div", { className: "sliderGallery", children: [Object(p.jsx)("div", { className: "imgGallery", children: Object(p.jsx)("a", { href: a, target: "_blank", children: Object(p.jsx)(v.a, { post: t }) }) }), Object(p.jsxs)("div", { className: "contentGallery contentPost", children: [null != c && Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsx)("div", { className: "item", children: Object(p.jsxs)("a", { className: "media-link", href: s[c].url, children: ["@", s[c].name] }) }), Object(p.jsx)("div", { className: "item", children: Object(p.jsx)("a", { href: a, target: "_blank", children: s[c].icon }) })] }), Object(p.jsx)("a", { href: a, className: "media-link", target: "_blank", children: Object(p.jsx)("p", { className: "postText", children: t.description }) })] })] }) }; return Object(p.jsxs)(p.Fragment, { children: [Object(p.jsx)(j.a, { children: Object(p.jsx)(d.a, { children: Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsx)("ul", { className: "titleCategories", children: Object(p.jsx)("li", { children: "M\xeddias sociais" }) }), Object(p.jsxs)("ul", { className: "titleCategories titleLarger", children: [Object(p.jsx)("li", { id: "titleMidias", children: "NOSSAS REDES SOCIAIS" }), Object(p.jsx)("li", { children: Object(p.jsx)("a", { href: s.ig.url, target: "_blank", children: Object(p.jsx)(f.a, {}) }) }), Object(p.jsx)("li", { children: Object(p.jsx)("a", { href: s.fb.url, target: "_blank", children: Object(p.jsx)(E.a, {}) }) }), Object(p.jsx)("li", { children: Object(p.jsx)("a", { href: s.tw.url, target: "_blank", children: Object(p.jsx)(E.b, {}) }) })] })] }) }) }), Object(p.jsx)("div", { children: Object(p.jsx)(u.a, Object(h.a)(Object(h.a)({}, { dots: !1, infinite: !0, slidesToShow: 4, slidesToScroll: 1, autoplay: !1, speed: 1e3, autoplaySpeed: 2e3, arrows: !0, responsive: [{ breakpoint: 800, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 1 } }] }), {}, { children: t.map((function(e, t) { return Object(p.jsx)(c, { post: e }, t) })) })) })] }) }), M = s(12), N = s(13), D = s(16), C = s(15), P = (s.p, s(115), a.a.Component, s(116), s(58), s(7)), T = function(e) { var t = "#"; return e.links.length > 0 && (t = e.links[0].link), Object(p.jsxs)("div", { className: "newsBox", children: [Object(p.jsx)("div", { className: "borderLeft ".concat((null === e || void 0 === e ? void 0 : e.hasBorder) ? "" : "hide") }), e.pics && Object(p.jsx)(p.Fragment, { children: e.pics.length > 0 && Object(p.jsx)(v.a, { post: e.post, className: "newsImg" }) }), Object(p.jsxs)("div", { className: "newsContent hasImage", children: [Object(p.jsx)("a", { href: t, target: "_blank", children: Object(p.jsx)("h2", { className: "newsTitle", children: e.title }) }), e.desc && Object(p.jsx)("a", { href: t, target: "_blank", children: Object(p.jsx)("h3", { className: "newsDesc", dangerouslySetInnerHTML: { __html: Object(P.b)(e.desc) } }) }), Object(p.jsx)("div", { className: "infoBox", children: Object(p.jsxs)("ul", { children: [e.tags && Object(p.jsx)(p.Fragment, { children: e.tags.length > 0 && Object(p.jsx)("li", { children: Object(p.jsx)("button", { onClick: function() { return window.location.href = "/tag/".concat(e.tags[0]) }, children: e.tags[0] }) }) }), e.favicon && e.favicon.length > 0 && Object(p.jsx)("li", { children: Object(p.jsx)("a", { href: t, children: Object(p.jsx)("img", { src: e.favicon[0], alt: e.title, className: "logoMidia" }) }) }), e.date && Object(p.jsx)("li", { children: Object(p.jsx)("p", { children: e.date }) })] }) })] })] }) }, S = (s(117), function(e) { var t = e.posts; return t = t.slice(0, 6), Object(p.jsxs)("div", { id: "inMidia", children: [Object(p.jsx)(j.a, { children: Object(p.jsx)(d.a, { children: Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsx)("ul", { className: "titleCategories", children: Object(p.jsx)("li", { children: "Na M\xeddia" }) }), Object(p.jsx)("ul", { className: "titleCategories titleLarger", children: Object(p.jsx)("li", { children: Object(p.jsx)("a", { href: "/slice/Na M\xeddia", style: { color: "#ff5300" }, children: "VER TODAS" }) }) })] }) }) }), Object(p.jsx)(j.a, { children: t.map((function(e, t) { return Object(p.jsx)(d.a, { md: 4, children: Object(p.jsx)(T, { title: e.title, desc: e.description, links: e.links, favicon: e.favicon }) }, t) })) })] }) }), I = s(45), k = s(27), L = s.n(k), B = (s(119), s(120), s(22)), R = function(e) { return Object(p.jsx)("div", { className: "modal-filter", attr:"MFF0", onClick: function(t) { t.target === t.currentTarget && e.onClose() }, children: Object(p.jsxs)("div", { className: "modal-filter-content", attr:"MF0", children: [Object(p.jsxs)("div", { className: "modal-filter-header", attr:"MFH0", children: [Object(p.jsx)("h3", { children: e.title }), Object(p.jsx)("button", { className: "btn-close", onClick: function() { return e.onClose() }, children: Object(p.jsx)(B.a, {}) })] }), Object(p.jsxs)("div", { className: "modal-filter-body", attr:"MFF1", children: [e.months.length > 0 && Object(p.jsx)(j.a, { children: e.months.map((function(t) { return Object(p.jsx)(d.a, { sm: 4, xs: 12, children: Object(p.jsx)("a", { href: "#", onClick: function(s) { return function(t, s) { t.preventDefault(), e.onChange(s), e.onClose() }(s, t) }, children: Object(P.a)(t) }) }) })) }), 0 === e.months.length && Object(p.jsx)("p", { children: "Nenhuma data com evento" })] })] }) }) }, //'agenda' popup? A = function(e) { var t = e.posts, s = Object(c.useState)(!1), a = Object(_.a)(s, 2), n = a[0], i = a[1], r = Object(c.useState)(L()(new Date).format("YYYY-MM")), l = Object(_.a)(r, 2), o = l[0], b = l[1], O = Object(c.useState)([]), x = Object(_.a)(O, 2), m = x[0], g = x[1], f = Object(c.useState)([]), E = Object(_.a)(f, 2), v = E[0], w = E[1]; Object(c.useEffect)((function() { M() }), [, o]); var M = function() { var e = [], s = [], c = o.substr(0, 4), a = o.substr(5, 2); t.map((function(t) { var n = t.title.substr(3, 2), i = t.title.substr(6, 4); i === c && n === a && e.push(t); var r = "".concat(i, "-").concat(n); s.includes(r) || s.push(r) })), s = Object(P.c)(s), g(e), w(s) }, N = function(e) { b(e) }; return Object(p.jsxs)(p.Fragment, { attr:"FF0", children: [n && Object(p.jsx)(R, { title: "Escolha um m\xeas", months: v, onChange: function(e) { return N(e) }, onClose: function() { return i(!1) } }), Object(p.jsx)(j.a, { attr:"TK0", style: {display:"none" }, children: Object(p.jsx)(d.a, { children: Object(p.jsx)("ul", { className: "titleCategories", children: Object(p.jsx)("li", { children: "Agenda" }) }) }) }), Object(p.jsxs)("div", { className: "contentCalendar", attr:"CC0", style: {display:"none" }, children: [Object(p.jsxs)("div", { className: "dateSchedule", attr:"DD0", children: [Object(p.jsx)("button", { onClick: function() { return N(L()(o, "YYYY-MM").subtract(1, "M").format("YYYY-MM")) }, children: Object(P.a)(L()(o, "YYYY-MM").subtract(1, "M").format("YYYY-MM")) }), Object(p.jsx)("button", { className: "active", children: Object(P.a)(o) }), Object(p.jsx)("button", { onClick: function() { return N(L()(o, "YYYY-MM").add(1, "M").format("YYYY-MM")) }, children: Object(P.a)(L()(o, "YYYY-MM").add(1, "M").format("YYYY-MM")) }), Object(p.jsxs)("button", { className: "showCalendar", onClick: function() { i(!n) }, children: [Object(p.jsx)(I.a, {}), "VER OUTRA DATA"] })] }), Object(p.jsxs)("div", { className: "contentEvents", children: [0 === m.length && Object(p.jsx)("p", { className: "noEvents", children: "Nenhum evento na data selecionada" }), m.length > 0 && Object(p.jsx)(u.a, Object(h.a)(Object(h.a)({}, { dots: !1, infinite: !1, slidesToShow: 6, slidesToScroll: 1, autoplay: !1, speed: 300, autoplaySpeed: 2e3, arrows: !0, adaptiveHeight: !0, responsive: [{ breakpoint: 991, settings: { slidesToShow: 3, slidesToScroll: 1 } }, { breakpoint: 768, settings: { slidesToShow: 2, slidesToScroll: 1 } }] }), {}, { children: m.map((function(e, t) { return Object(p.jsxs)("div", { className: "boxSchedule", children: [Object(p.jsx)("p", { className: "hour", children: e.title }), Object(p.jsx)("p", { className: "subject", children: e.description })] }, t) })) }))] })] })] }) }, U = s.p + "static/media/imprensa.4c7c0973.jpg", y = (s(121), a.a.Component, s(25)), W = (s(123), function(e) { var t = Object(c.useState)(window.innerWidth), s = Object(_.a)(t, 2), a = s[0], n = s[1], i = Object(c.useRef)(); return Object(c.useEffect)((function() { var e = function() { return n(window.innerWidth) }; return window.addEventListener("resize", e), function() { window.removeEventListener("resize", e) } }), []), Object(c.useEffect)((function() { var e = document.querySelector(".sliderRight"), t = e ? e.offsetHeight : 0; t += 20, i.current.style.minHeight = "calc(100% - ".concat(t, "px)") }), [, a]), Object(p.jsxs)("div", { ref: i, className: "newsBoxBigger", children: [(null === e || void 0 === e ? void 0 : e.hasImage) && e.pics.length > 0 && Object(p.jsx)(v.a, { post: e.post, className: "newsImg" }), 0 === e.pics.length && (null === e || void 0 === e ? void 0 : e.contents) && Object(p.jsx)("div", { className: "multimidiaContent", dangerouslySetInnerHTML: { __html: e.contents } }), Object(p.jsxs)("div", { className: "newsContent newsContentBigger hasImage", children: [Object(p.jsx)("div", { className: "borderLeft ".concat((null === e || void 0 === e ? void 0 : e.hasBorder) ? "" : "hide") }), Object(p.jsx)("div", { className: "infoBox", children: Object(p.jsxs)("ul", { children: [e.tags && Object(p.jsx)(p.Fragment, { children: e.tags.length > 0 && Object(p.jsx)("li", { children: Object(p.jsx)("button", { onClick: function() { return window.location.href = "/tag/".concat(e.tags[0]) }, children: e.tags[0] }) }) }), e.cards && Object(p.jsx)(p.Fragment, { children: e.cards.length > 0 && Object(p.jsx)("li", { children: Object(p.jsx)("button", { cust: "C1", onClick: function() { return window.location.href = "/card/".concat(e.cards[0]) }, children: e.cards[0] }) }) }), e.date && Object(p.jsx)("li", { children: Object(p.jsx)("p", { children: e.date }) })] }) }), Object(p.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(p.jsx)("h2", { className: "newsTitle", children: Object(p.jsx)("span", { children: e.title }) }) }), e.desc && Object(p.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(p.jsx)("h3", { className: "newsDesc", dangerouslySetInnerHTML: { __html: Object(P.b)(e.desc) } }) })] })] }) }), K = (s(124), function(e) { return Object(p.jsxs)("div", { className: "newsVertical", children: [e.pics.length > 0 && Object(p.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(p.jsx)(v.a, { post: e.post, className: "newsVerticalImg" }) }), Object(p.jsxs)("div", { className: "newsVerticalContent", children: [Object(p.jsx)("div", { className: "infoBoxVertical", children: Object(p.jsxs)("ul", { children: [e.tags && Object(p.jsx)(p.Fragment, { children: e.tags.length > 0 && Object(p.jsx)("li", { children: Object(p.jsx)("button", { onClick: function() { return window.location.href = "/tag/".concat(e.tags[0]) }, children: e.tags[0] }) }) }), e.cards && Object(p.jsx)(p.Fragment, { children: e.cards.length > 0 && Object(p.jsx)("li", { children: Object(p.jsx)("button", { onClick: function() { return window.location.href = "/card/".concat(e.cards[0]) }, children: e.cards[0] }) }) })] }) }), Object(p.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(p.jsx)("h2", { className: "newsVerticalTitle", children: Object(p.jsx)("span", { children: e.title }) }) }), e.desc && Object(p.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(p.jsx)("h3", { className: "newsVerticalDesc", dangerouslySetInnerHTML: { __html: Object(P.b)(e.desc) } }) })] })] }) }), Y = s(28), F = (s(125), function(e) { var t = { dots: !1, infinite: !0, slidesToShow: 1, slidesToScroll: 1, autoplay: !0, speed: 1e3, autoplaySpeed: 5e3, arrows: !0, prevArrow: Object(p.jsx)(Y.a, {}), nextArrow: Object(p.jsx)(Y.b, {}) }; return Object(p.jsx)(u.a, Object(h.a)(Object(h.a)({}, t), {}, { className: "sliderRight", children: e.posts.map((function(e, t) { return Object(p.jsxs)("div", { className: "contentSlider", children: [Object(p.jsx)("div", { className: "boxSlider", children: Object(p.jsx)("a", { href: "/noticia/".concat(e.slug), children: Object(p.jsx)(v.a, { post: e }) }) }), Object(p.jsx)("div", { className: "newsSlider", children: Object(p.jsx)(y.a, { post: e, featured: !0, hasBorder: !0, title: e.title, desc: e.description, slug: e.slug, cards: e.cards }) })] }, t) })) })) }), q = function() { var e = Object(c.useState)([]), t = Object(_.a)(e, 2), s = t[0], a = t[1], n = Object(c.useState)([]), i = Object(_.a)(n, 2), r = i[0], l = i[1], h = Object(c.useState)([]), O = Object(_.a)(h, 2), u = (O[0], O[1], Object(c.useState)([])), x = Object(_.a)(u, 2), f = (x[0], x[1], Object(c.useState)([])), E = Object(_.a)(f, 2), v = (E[0], E[1]), M = Object(c.useState)([]), N = Object(_.a)(M, 2), D = N[0], C = N[1], P = Object(c.useState)([]), T = Object(_.a)(P, 2), I = T[0], k = T[1], L = Object(c.useState)([]), B = Object(_.a)(L, 2), R = B[0], U = B[1], Y = Object(c.useState)([]), q = Object(_.a)(Y, 2), G = q[0], $ = q[1], H = Object(c.useState)([]), V = Object(_.a)(H, 2), J = V[0], z = V[1], Q = Object(c.useState)([]), X = Object(_.a)(Q, 2), Z = X[0], ee = X[1], te = Object(c.useState)([]), se = Object(_.a)(te, 2), ce = se[0], ae = se[1]; Object(c.useEffect)((function() { ne() }), []); var ne = function() { //outras noticias? m.b.get("/getposts.php?fullurl&iframe&nolinks&orderbydate").then((function(e) { var t = e.data.headers, s = e.data.slices, c = [], n = [], i = [], r = [], o = [], _ = [], j = [], d = []; e.data.posts.map((function(e, t) { console.log("ne map"); console.dir(e.title); console.dir(e.slice); console.dir(t); 1 !== e.firstfold ? "Calendario" !== e.slice ? "Na M\xeddia" !== e.slice ? "Multim\xeddia" !== e.slice ? "Galeria" !== e.slice ? "M\xeddias Sociais" !== e.slice ? "Not\xedcias" !== e.slice && "Not\xedcias - Campanhas" !== e.slice || (console.log("index: ".concat(t, ", title: ").concat(e.title)), n.length < 4 ? n.push(e) : r.length < 4 && r.push(e)) : d.push(e) : o.push(e) : i.push(e) : _.push(e) : j.push(e) : c.push(e) console.log("ne end"); console.dir(t); })), a(t), v(s), k(c), l(n), U(i), $(r), C(o), z(_), ae(j), ee(d) })) }; console.log("outras?"); return Object(p.jsxs)(p.Fragment, { children: [s.length > 0 && Object(p.jsx)(b.a, { headers: s }), Object(p.jsxs)("div", { className: "container", children: [Object(p.jsxs)(j.a, { children: [Object(p.jsxs)(d.a, { lg: 8, children: [I.length > 0 && Object(p.jsx)(F, { posts: I }), R.length > 0 && Object(p.jsx)(W, { post: R[0], mult: R, hasBorder: !0, hasImage: !0, title: R[0].title, desc: R[0].description, slug: R[0].slug, cards: R[0].cards, pics: R[0].pics, contents: R[0].contents })] }), Object(p.jsxs)(d.a, { lg: 4, children: [Object(p.jsx)(j.a, { children: Object(p.jsx)(d.a, { children: Object(p.jsx)("ul", { className: "titleCategories", style: { marginTop: 0, marginBottom: 15 }, children: Object(p.jsx)("li", { children: "Destaques" }) }) }) }), r.map((function(e, t) { return Object(p.jsx)(y.a, { post: e, hasBorder: !0, title: e.title, desc: e.description, slug: e.slug, cards: e.cards }, t) }))] })] }), ce.length > 0 && Object(p.jsx)(j.a, { children: Object(p.jsx)(d.a, { sm: 12, children: Object(p.jsx)(A, { posts: ce }) }) }), Object(p.jsx)(j.a, { children: G.length > 0 && Object(p.jsxs)(d.a, { sm: 12, children: [Object(p.jsx)(j.a, { children: Object(p.jsx)(d.a, { children: Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsx)("ul", { className: "titleCategories", children: Object(p.jsx)("li", { children: "Outras not\xedcias" }) }), Object(p.jsx)("ul", { className: "titleCategories titleLarger", children: Object(p.jsx)("li", { children: Object(p.jsx)("a", { href: "/slice/Not\xedcias", style: { color: "#ff5300" }, children: "VER TODAS" }) }) })] }) }) }), Object(p.jsx)("div", { className: "otherNewsBox", children: Object(p.jsx)(j.a, { children: G.map((function(e, t) { return Object(p.jsx)(d.a, { sm: 3, children: Object(p.jsx)(K, { post: e, hasBorder: !0, title: e.title, slug: e.slug, cards: e.cards, pics: e.pics }) }, t) })) }) })] }) }), J.length > 0 && Object(p.jsx)(S, { posts: J }), Z.length > 0 && Object(p.jsx)(w, { posts: Z }), D.length > 0 && Object(p.jsx)(g, { posts: D })] }), Object(p.jsx)(o.a, {})] }) }, G = s(62), $ = s(33), H = s(39), V = (s(127), function(e) { Object(D.a)(s, e); var t = Object(C.a)(s); function s(e) { var c; return Object(M.a)(this, s), (c = t.call(this, e)).getImages = function() { if (!c.state.getting) { c.setState({ getting: !0 }); var e = 11 * c.state.page + c.state.page, t = e + 11, s = { slice: c.props.match.params.slice, start: e, end: t }, a = Object($.a)(c.state.images); Object(m.b)("/getposts.php?fullurl", { params: s }).then((function(e) { var t = !(e.data.posts.length < 11); e.data.posts.map((function(e) { e.pics.map((function(e) { a.push(e) })) })), c.setState({ loading: !1, getting: !1, images: a, headers: e.data.headers, slices: e.data.slices, hasMore: t, page: c.state.page + 1 }) })) } }, c.state = { loading: !0, getting: !1, page: 0, images: [], prevY: 0, hasMore: !0, headers: [], slices: [] }, c } return Object(N.a)(s, [{ key: "componentDidMount", value: function() { this.getImages() } }, { key: "render", value: function() { return Object(p.jsx)(p.Fragment, { children: !this.state.loading && Object(p.jsxs)(p.Fragment, { children: [Object(p.jsx)(b.a, { headers: this.state.headers, slices: this.state.slices }), Object(p.jsxs)("div", { className: "container page-gallery", children: [Object(p.jsx)("h1", { className: "pageTitle", children: this.props.match.params.slice }), Object(p.jsx)(H.a, { className: "page-gallery-content", dataLength: this.state.images.length, next: this.getImages, hasMore: this.state.hasMore, refreshFunction: this.getImages, pullDownToRefresh: !0, pullDownToRefreshThreshold: 50, children: Object(p.jsx)(j.a, { children: this.state.images.map((function(e, t) { return Object(p.jsx)(d.a, { sm: 4, xs: 12, children: Object(p.jsxs)("div", { className: "sliderGallery", children: [Object(p.jsx)("div", { className: "imgGallery", children: Object(p.jsx)("img", { src: e.pic_v, alt: e.caption }) }), Object(p.jsxs)("div", { className: "contentGallery", children: [Object(p.jsx)("b", { children: "LEGENDA:" }), Object(p.jsx)("p", { children: e.caption }), Object(p.jsxs)("div", { className: "boxFlex", children: [Object(p.jsxs)("div", { className: "item", children: [Object(p.jsx)("b", { children: "CR\xc9DITOS:" }), Object(p.jsx)("p", { children: e.credits })] }), Object(p.jsx)("div", { className: "item", children: Object(p.jsx)("a", { href: e.fullpic_h, target: "_blank", download: !0, children: Object(p.jsx)(x.a, {}) }) })] })] })] }, t) }, t) })) }) })] }), Object(p.jsx)(o.a, {})] }) }) } }]), s }(a.a.Component)), J = (s(128), function(e) { Object(D.a)(s, e); var t = Object(C.a)(s); function s(e) { var c; return Object(M.a)(this, s), (c = t.call(this, e)).getNews = function() { if (!c.state.getting) { c.setState({ getting: !0 }); var e = 11 * c.state.page + c.state.page, t = { start: e, end: e + 11 }; c.props.match.params.value; console.log("AFORE API"); console.dir(c.props.match.params); var sch=".php?s1&slice=not%C3%ADcias%20-"; if (c.props.match.params.param=="card") { sch=".php?sC&card="+encodeURIComponent(c.props.match.params.value)+"&slice="+encodeURIComponent("Notícias"); } else if (c.props.match.params.param=="tag") { sch=".php?sT&tag="+encodeURIComponent(c.props.match.params.value)+"&slice="+encodeURIComponent("Notícias"); } m.b.get("/getposts".concat("br" === m.c ? "" : "_en", sch), { params: t }).then((function(e) { var t = !(e.data.posts.length < 11); c.setState({ loading: !1, getting: !1, news: [].concat(Object($.a)(c.state.news), Object($.a)(e.data.posts)), headers: e.data.headers, slices: e.data.slices, hasMore: t, page: c.state.page + 1 }) })) } }, c.state = { loading: !0, getting: !1, page: 0, news: [], prevY: 0, hasMore: !0, headers: [], slices: [] }, c } return Object(N.a)(s, [{ key: "componentDidMount", value: function() { this.getNews() } }, { key: "render", value: function() { PROP=this.props.match.params; NEWS=this.state.news; console.log("PROP"); console.dir(PROP); console.log("NEWS"); console.dir(NEWS); var nne=[]; for (var ww=0;ww0)&&(fd<1)) continue; try { if (NEWS[ww]['tags'][0]!=PROP.value) { NEWS[ww]['tags'].unshift(PROP.value); } } catch (e) { } // NEWS[ww]['tags']=[]; nne.push(NEWS[ww]); } this.state.news=nne; NEWS=nne; //Clip'em console.log("NEWS2"); console.dir(NEWS); return Object(p.jsx)(p.Fragment, { children: !this.state.loading && Object(p.jsxs)(p.Fragment, { children: [Object(p.jsx)(b.a, { headers: this.state.headers }), Object(p.jsxs)("div", { className: "container", children: [Object(p.jsx)("h1", { className: "pageTitle", children: this.props.match.params.value }), Object(p.jsx)(H.a, { dataLength: this.state.news.length, next: this.getNews, hasMore: this.state.hasMore, refreshFunction: this.getNews, pullDownToRefresh: !0, pullDownToRefreshThreshold: 50, children: Object(p.jsx)(j.a, { children: this.state.news.map((function(e, t) { console.log("MAP"); console.dir(PROP); console.dir(e); console.dir(t); console.dir(d); console.dir(a); //e is post, PROP contains param and value // if ((hit>0)&&(fd<1)) return []; return Object(p.jsxs)(d.a, { sm: 6, xs: 12, children: ["Na M\xeddia" === e.slice && Object(p.jsx)(T, { post: e, title: e.title, desc: e.description, date: e.shortdate, links: e.links, pics: e.pics, hasLogoR7: !0 }), "Na M\xeddia" !== e.slice && Object(p.jsx)(y.a, { post: e, date: e.shortdate, title: e.title, desc: e.description, tags: e.tags, slug: e.slug })] }, t) })) }) })] }), Object(p.jsx)(o.a, {})] }) }) } }]), s }(a.a.Component)), z = function() { return Object(p.jsx)(r.a, { basename: "/", children: Object(p.jsxs)(l.c, { children: [Object(p.jsx)(l.a, { exact: !0, path: "/", component: q }), Object(p.jsx)(l.a, { exact: !0, path: "/noticia/:slug", component: G.a }), Object(p.jsx)(l.a, { exact: !0, path: "/images/:slice", component: V }), Object(p.jsx)(l.a, { exact: !0, path: "/:param/:value", component: J })] }) }) }, Q = function() { return Object(p.jsx)(z, {}) }; i.a.render(Object(p.jsx)(a.a.StrictMode, { children: Object(p.jsx)(Q, {}) }), document.getElementById("root")) }], [ [129, 1, 2] ] ]); //# sourceMappingURL=main.f43a10bc.chunk.js.map