1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[549,884,5910],{18847:(e,l,t)=>{e.exports=t(52496)},50549:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>i});var s=t(37876),a=t(15311),r=t(87856);let n=r.Ay.div.withConfig({componentId:"sc-a7bf8421-0"})(["&.active{animation:spin 2s infinite linear;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"]),o=r.Ay.button.withConfig({componentId:"sc-a7bf8421-1"})(["background:var(--bs-white);border:1px solid var(--bs-gray);color:var(--bs-gray);border-radius:4px;height:50px;padding:0 24px;outline-style:none !important;font-size:11px;font-weight:bold;letter-spacing:-1%;text-transform:uppercase;transition:background-color 0.2s;margin-bottom:10px;&:disabled{opacity:0.5;pointer-events:none;}&:hover{background:rgba(var(--bs-gray-rgb),0.8);color:var(--bs-white);}"]);function i(e){let{label:l="Carregar Mais",loading:t=!1,visible:r=!0,callBack:i}=e;return(0,s.jsx)(s.Fragment,{children:r&&(0,s.jsx)(o,{type:"button",onClick:()=>i(),disabled:t,children:(0,s.jsx)(n,{className:t?"active":"",children:t?(0,s.jsx)(a.deV,{fontSize:"24px"}):l})})})}},50797:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/busca",function(){return t(66465)}])},50884:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>i});var s=t(37876),a=t(14232),r=t(49127),n=t(79857);let o=t(87856).Ay.div.withConfig({componentId:"sc-bffd4931-0"})([".dropdown-toggle{&::after{display:none;}}"]);function i(e){let{id:l,data:t,callBack:i,active:d=0}=e,[c,u]=(0,a.useState)(t[d]),m=(0,a.useCallback)(e=>{u(e),i(e)},[i]);return(0,s.jsxs)(o,{className:"d-lg-flex align-items-center",children:[(0,s.jsx)("div",{className:"d-none d-lg-flex me-1",children:(0,s.jsx)("p",{className:"mb-0 text-gray",children:"Ordenar por"})}),(0,s.jsxs)(r.A,{children:[(0,s.jsx)(r.A.Toggle,{variant:"success",className:"p-0",id:l,children:(0,s.jsxs)("div",{className:"d-none d-lg-flex align-items-center",children:[(0,s.jsx)("span",{className:"d-block me-2 text-primary",children:c.label}),(0,s.jsx)(n.yd,{})]})}),(0,s.jsx)(r.A.Menu,{className:"dropdown-items",children:t.map((e,l)=>(0,s.jsx)(r.A.Item,{onClick:()=>m(e),"data-order-by":e.orderBy,"data-order":e.order,children:e.label},"".concat(l,"-").concat(e.order)))})]})]})}},52496:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),!function(e,l){for(var t in l)Object.defineProperty(e,t,{enumerable:!0,get:l[t]})}(l,{default:function(){return o},noSSR:function(){return n}});let s=t(72687);t(37876),t(14232);let a=s._(t(90295));function r(e){return{default:(null==e?void 0:e.default)||e}}function n(e,l){return delete l.webpack,delete l.modules,e(l)}function o(e,l){let t=a.default,s={loading:e=>{let{error:l,isLoading:t,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let o=(s={...s,...l}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?t({...s,loader:()=>null!=o?o().then(r):Promise.resolve(r(()=>null))}):(delete s.webpack,delete s.modules,n(t,s))}("function"==typeof l.default||"object"==typeof l.default&&null!==l.default)&&void 0===l.default.__esModule&&(Object.defineProperty(l.default,"__esModule",{value:!0}),Object.assign(l.default,l),e.exports=l.default)},66465:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>w,default:()=>k});var s=t(37876),a=t(59997),r=t(14232),n=t(89099),o=t(48230),i=t.n(o),d=t(24146),c=t(87856);let u=c.Ay.button.withConfig({componentId:"sc-70c4ffe0-0"})(["background:transparent;color:var(--bs-gray);border:none;outline:none;padding-right:20px;"]),m=function(e){let{changed:l,link:t,callBack:a}=e;return l?(0,s.jsx)(u,{type:"button",onClick:a,children:(0,s.jsx)(d.lr4,{size:20})}):(0,s.jsx)(i(),{legacyBehavior:!0,href:t,passHref:!0,children:(0,s.jsx)(u,{type:"button",children:(0,s.jsx)(d.ZYA,{size:20})})})},f=c.Ay.input.withConfig({componentId:"sc-8429fbe8-0"})(["border:1px solid var(--bs-gray-lighter);border-radius:5px;&:focus{border:1px solid var(--bs-blue-light);outline:none;}"]),h=function(){let e=(0,n.useRouter)(),[l,t]=(0,r.useState)(""),a=(0,r.useCallback)(async e=>{t(e.target.value)},[]),o=(0,r.useCallback)(s=>
1{+l.length>=3&&(e.push({pathname:"/busca",query:{s:l}}),t("")),s.preventDefault()},[e,l]),i=(0,r.useCallback)(()=>{t("")},[]);return(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 col-lg-6 offset-lg-2",children:(0,s.jsxs)("div",{className:"pt-32",children:[(0,s.jsx)("h2",{className:"fw-900 mb-3",children:"Buscar"}),(0,s.jsxs)("form",{className:"position-relative",onSubmit:o,children:[(0,s.jsx)(f,{type:"text",className:"w-100",onChange:a,value:l}),(0,s.jsx)("div",{className:"position-absolute top-50 translate-middle-y end-0",children:(0,s.jsx)(m,{callBack:i,changed:l.length>0,link:"/busca?s=".concat(l)})})]})]})})})})})};var p=t(7108);let b=function(e){let{found:l,term:t}=e;return""===t?(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row py-3",children:(0,s.jsx)("div",{className:"col-12 col-lg-6 offset-lg-2",children:(0,s.jsx)(p.K,{children:(0,s.jsx)("div",{className:"animationContainer",children:(0,s.jsx)("div",{className:"animation"})})})})})})}):(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row py-3",children:(0,s.jsx)("div",{className:"col-12 col-lg-6 offset-lg-2",children:(0,s.jsx)("p",{className:"text-gray",children:"".concat(l," resultados para ").concat(t)})})})})})};var g=t(20143),x=t(50884),v=t(15621),j=t(50549),y=t(30287);let _=[{label:"Mais Relevantes",orderBy:"relevance",order:"DESC"},{label:"Mais Recentes",orderBy:"date",order:"DESC"},{label:"Mais Antigos",orderBy:"date",order:"ASC"}],N=function(e){let{data:l,max_pages:t,term:a,ads:n}=e,[o,i]=(0,r.useState)(null),[d,c]=(0,r.useState)([]),[u,m]=(0,r.useState)(l),[f,h]=(0,r.useState)(!1),[p,b]=(0,r.useState)(2),[N,w]=(0,r.useState)(0);(0,r.useEffect)(()=>{l&&(m(l.slice(0,6)),c(l.slice(6)),w(t))},[l,t]),(0,r.useEffect)(()=>{async function e(){h(!0),await g.A.get("/search?s=".concat(a),{params:{page:1,posts_per_page:12,orderby:(null==o?void 0:o.orderBy)||"",order:(null==o?void 0:o.order)||""}}).then(e=>{let l=(null==e?void 0:e.data.posts)||[];m(l.slice(0,6)),c(l.slice(6)),b(1)}).catch(e=>console.error(e)),h(!1)}o&&e()},[o,a]);let k=(0,r.useCallback)(async()=>{let e=p+1;h(!0),await g.A.get("/search?s=".concat(a),{params:{page:e,posts_per_page:6,orderby:(null==o?void 0:o.orderBy)||"",order:(null==o?void 0:o.order)||""}}).then(l=>{let t=(null==l?void 0:l.data.posts)||[];c(e=>[...e,...t]),b(e)}).catch(e=>console.error(e)),h(!1)},[p,o,a]);return""===a?(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("div",{className:"row pb-3",children:(0,s.jsx)("div",{className:"col-12 col-lg-9 offset-lg-2",children:(0,s.jsx)(x.default,{data:_,callBack:i,id:"select-order-by"})})}),(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 col-lg-8 offset-lg-2",children:(0,s.jsx)("div",{className:"row gy-5 gy-lg-32",children:[1,2,3,4,5].map((e,l)=>(0,s.jsx)("div",{className:"col-12 border-bottom px-lg-32 pb-32",children:(0,s.jsx)(v.default,{post:null})},l))})})})]}),(0,s.jsx)(y.default,{ad:n.ads.billboard_topo,id:"banner-0"}),(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 col-lg-8 offset-lg-2",children:(0,s.jsx)("div",{className:"row gy-5 gy-lg-32",children:[1,2,3,4,5].map((e,l)=>(0,s.jsx)("div",{className:"col-12 border-bottom px-lg-32 pb-32",children:(0,s.jsx)(v.default,{post:null})},l))})})}),(0,s.jsx)("div",{className:"row justify-content-center my-5 my-lg-6",children:(0,s.jsx)("div",{className:"col-auto",children:(0,s.jsx)(j.default,{visible:p<N,loading:!0,callBack:k})})})]})]}):(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("div",{className:"row pb-3",children:(0,s.jsx)("div",{className:"col-12 col-lg-9 offset-lg-2",children:(0,s.jsx)(x.default,{data:_,callBack:i,id:"select-order-by"})})}),(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 col-lg-8 offset-lg-2",children:(0,s.jsx)("div",{className:"row gy-5 gy-lg-32",children:null==u?void 0:u.map(e=>(0,s.jsx)("div",{className:"col-12 border-bottom px-lg-32 pb-32",children:(0,s.jsx)(v.default,{post:e})},e.ID))})})})]}),(0,s.jsx)(y.default,{ad:n.ads.billboard_topo,id:"banner-0"}),(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 col-lg-8 offset-lg-2",children:(0,s.jsx)("div",{className:"row gy-5 gy-lg-32",children:null==d?void 0:d.map(e=>(0,s.jsx)("div",{className:"col-12 border-bottom px-lg-32 pb-32",children:(0,s.jsx)(v.default,{post:e})},e.ID))})})}),(0,s.jsx)("div",{className:"row justify-content-center my-5 my-lg-6",children:(0,s.jsx)("div",{className:"col-auto",children:(0,s.jsx)(j.default,{visible:p<N,loading:f,callBack:k})})})]})]})};var w=!0;function k(e){var l;let{data:t,ads:r}=e;return(0,s.jsxs)(a.default,{seoData:null,ads:Object.values(r.ads),fallback:!1,children:[(0,s.jsx)(h,{}),(0,s.jsx)(b,{found:(null==t?void 0:t.found_posts)||0,term:(null==t||null==(l=t.query)?void 0:l.s)||""}),(0,s.jsx)(N,{data:(null==t?void 0:t.posts)||[],max_pages:(null==t?void 0:t.max_num_pages)&&(null==t?void 0:t.max_num_pages)+2||0,term:(null==t?void 0:t.query.s)||"",ads:r})]})}},86581:(e,l,t)=>{"use strict";
1Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"LoadableContext",{enumerable:!0,get:function(){return s}});let s=t(72687)._(t(14232)).default.createContext(null)},90295:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return m}});let s=t(72687)._(t(14232)),a=t(86581),r=[],n=[],o=!1;function i(e){let l=e(),t={loading:!0,loaded:null,error:null};return t.promise=l.then(e=>(t.loading=!1,t.loaded=e,e)).catch(e=>{throw t.loading=!1,t.error=e,e}),t}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:l}=this;e.loading&&("number"==typeof l.delay&&(0===l.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},l.delay)),"number"==typeof l.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},l.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,l){this._loadFn=e,this._opts=l,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,l){let t=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},l),r=null;function i(){if(!r){let l=new d(e,t);r={getCurrentValue:l.getCurrentValue.bind(l),subscribe:l.subscribe.bind(l),retry:l.retry.bind(l),promise:l.promise.bind(l)}}return r.promise()}if(!o){let e=t.webpack&&1?t.webpack():t.modules;e&&n.push(l=>{for(let t of e)if(l.includes(t))return i()})}function c(e,l){i();let n=s.default.useContext(a.LoadableContext);n&&Array.isArray(t.modules)&&t.modules.forEach(e=>{n(e)});let o=s.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return s.default.useImperativeHandle(l,()=>({retry:r.retry}),[]),s.default.useMemo(()=>{var l;return o.loading||o.error?s.default.createElement(t.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?s.default.createElement((l=o.loaded)&&l.default?l.default:l,e):null},[e,o])}return c.preload=()=>i(),c.displayName="LoadableComponent",s.default.forwardRef(c)}(i,e)}function u(e,l){let t=[];for(;e.length;){let s=e.pop();t.push(s(l))}return Promise.all(t).then(()=>{if(e.length)return u(e,l)})}c.preloadAll=()=>new Promise((e,l)=>{u(r).then(e,l)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(l=>{let t=()=>(o=!0,l());u(n,e).then(t,t)})),window.__NEXT_PRELOADREADY=c.preloadReady;let m=c}},e=>{e.O(0,[1163,1287,8230,9127,584,8183,297,5621,636,6593,8792],()=>e(e.s=50797)),_N_E=e.O()}]);
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.