1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[680],{3564:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});n(7294);var r=n(9163).ZP.div.withConfig({displayName:"styles__Content",componentId:"sc-9s2kpe-0"})(["height:100vh;display:flex;justify-content:center;align-items:center;h2{margin-top:auto;margin-bottom:auto;text-transform:uppercase;}"]),o=n(5893),i=function(){return(0,o.jsx)(r,{children:(0,o.jsx)("h2",{children:"Conte\xfado em constru\xe7\xe3o"})})}},7581:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(266),o=n(809),i=n.n(o),a=n(7294),c=n(1163),s=n(9163).ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1m1pyv4-0"})(["display:flex;align-items:center;justify-content:center;margin-top:2rem;margin-bottom:2rem;button{background-color:transparent;border:2px solid #545454;border-radius:999px;cursor:pointer;color:#545454;margin:0 auto;padding:4px 1rem;transition:background-color 0.3s,color 0.3s;&:hover{background-color:#545454;color:#fff;}}span{font-size:1.2rem;color:inherit;text-transform:uppercase;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;}"]),u=n(5893),f=function(e){var t=e.title,n=void 0===t?"Ver mais":t,o=e.onRequest,f=e.loadingTitle,l=void 0===f?"Carregando...":f,p=e.redirectTo,d=(0,c.useRouter)(),m=(0,a.useState)(2),h=m[0],g=m[1],x=(0,a.useState)(!1),y=x[0],b=x[1],v=(0,a.useCallback)((0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=4;break}return e.next=3,d.push(p);case 3:return e.abrupt("return");case 4:if(o){e.next=6;break}return e.abrupt("return");case 6:try{b(!0),o({page:h}),g((function(e){return e+1}))}finally{b(!1)}case 7:case"end":return e.stop()}}),e)}))),[o,h,p,d]);return(0,u.jsx)(s,{children:(0,u.jsx)("button",{type:"button",onClick:v,children:(0,u.jsx)("span",{children:y?l:n})})})},l=a.memo(f)},5186:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return h}});var r=n(3789),o=n(266),i=n(809),a=n.n(i),c=n(7294),s=n(131),u=n(7001),f=n(3564),l=n(9374),p=n(7581),d=n(6368),m=n(5893),h=!0;t.default=function(e){var t=e.comerciais,n=e.nextPage,i=(0,c.useState)(t),h=i[0],g=i[1],x=(0,c.useState)(!!n),y=x[0],b=x[1],v=(0,s.YD)(),_=v.ref,C=(v.inView,(0,s.YD)({triggerOnce:!0})),w=C.ref,j=(C.inView,(0,c.useCallback)(function(){var e=(0,o.Z)(a().mark((function e(t){var n,o,i,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.page,e.next=3,fetch("".concat(d.H,"/comerciais?order=ORDEM_COMERCIAL&page=").concat(n,"&filter=").concat((0,d.h)("comerciais")));case 3:return o=e.sent,e.next=6,o.json();case 6:i=e.sent,c=i.results,g((function(e){return[].concat((0,r.Z)(e),(0,r.Z)(c))})),b(!!i.next_page);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]));return(0,c.useEffect)((function(){g(t)}),[t]),(0,m.jsx)(u.Z,{children:h?(0,m.jsxs)(m.Fragment,{children:[h.map((function(e,t){return(0,m.jsxs)(m.Fragment,{children:[0===t&&(0,m.jsx)("div",{ref:_,className:"top",style:{height:"10px"}}),2===t&&(0,m.jsx)("div",{ref:w,id:"sentinela",style:{height:"10px"}},Date.now()),(0,m.jsx)(l.m,{videoSrc:e.TEASER_COMERCIAL,page:"comerciais",slug:"comerciais/".concat(e.SLUG_COMERCIAL),author:e.SUBTITULO_COMERCIAL,title:e.TITULO_COMERCIAL},e.COD_COMERCIAL)]})})),y&&(0,m.jsx)(p.Z,{onRequest:j})]}):(0,m.jsx)(f.d,{})})}},1144:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/comerciais",function(){return n(5186)}])},3789:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6586);var o=n(6988);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[774,874,30,809,310,685,888,179],(function(){return t=1144,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.