PageSourceSearch

https://siteanuncios.com.br/_next/static/chunks/pages/[sitename]/blog/label/[label]-822c214a28ce0b3f.js

js siteanuncios.com.br collected 2026-09-29 01:46:57 UTC 7,518 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[417],{30036:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[sitename]/blog/label/[label]",function(){return n(47040)}])},47040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>i,default:()=>r});var l=n(56482),i=!0;let r=l.A},51386:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var l=n(14232);let i={mobile:480,tablet:768,desktop:1024};function r(e){let[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=()=>{n(window.innerWidth<=i[e])};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t}},56482:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var l=n(37876),i=n(77328),r=n.n(i),o=n(14232),a=n(65422),s=n(59435),d=n(51386),c=n(37916),u=n(9),h=n(78517),m=n(39411),g=n(99316),p=n(62654),f=n(80170),x=n(24119),b=n(77435),v=n(48230),w=n.n(v),j=n(21626);let y=(0,j.Ay)(w()).withConfig({componentId:"sc-c2159655-0"})(["display:flex;flex-direction:column;height:580px;background-color:#fff;text-decoration:none;"]),A=j.Ay.div.withConfig({componentId:"sc-c2159655-1"})(["width:100%;height:50%;background-size:cover;background-position:center;background-repeat:no-repeat;"]),k=j.Ay.div.withConfig({componentId:"sc-c2159655-2"})(["flex:1;height:50%;display:flex;flex-direction:column;justify-content:space-between;padding:30px 40px;color:#312b45;gap:1rem;transition:0.3s ease;overflow:hidden;&:hover{background-color:",";color:",";}"],e=>{var t;let{theme:n}=e;return(null==n||null==(t=n.template)?void 0:t.color_header)||"#1a4baf"},e=>{var t;let{theme:n}=e;return(null==n||null==(t=n.template)?void 0:t.color_header_text)||"#ffffff"}),_=j.Ay.h3.withConfig({componentId:"sc-c2159655-3"})(["font-size:3rem;margin-bottom:0;line-height:1.2;overflow-wrap:break-word;word-break:break-word;min-width:0;@media only screen and (max-width:1280px){font-size:2.5rem;}"]),C=j.Ay.p.withConfig({componentId:"sc-c2159655-4"})(["font-size:1.7rem;"]),I=function(e){var t;let{post:n}=e,{template:i}=(0,s.S)(),{id:r,attributes:o}=null!=n?n:{},{title:a,slug:d,coverUrl:c,blog_labels:u,createdAt:h}=null!=o?o:{},{label:m}=(null==u||null==(t=u.data[0])?void 0:t.attributes)||{},g=(0,x.E)(a,95);return(0,l.jsxs)(y,{...(0,p.Rk)(i,{pathname:"/blog/[slug]/[postid]",query:{slug:d,postid:r}}),children:[(0,l.jsx)(A,{style:{backgroundImage:'url("'.concat(c,'")')}}),(0,l.jsxs)(k,{children:[(0,l.jsxs)("div",{children:[m&&(0,l.jsx)(b.JU,{children:m}),(0,l.jsx)(_,{children:g})]}),(0,l.jsx)(C,{children:(0,f.ts)(h)})]})]})},E=function(e){var t,n;let{post:i}=e,r=(0,d.Q)("tablet"),{template:o}=(0,s.S)(),{id:a,attributes:c}=null!=i?i:{},{title:u,slug:m,description:g,coverUrl:v,createdAt:w}=null!=c?c:{},{name:j,label:y}=(null==(n=c.blog_labels)||null==(t=n.data[0])?void 0:t.attributes)||{},A=(0,x.E)(u,110),k=(0,x.E)(g,r?70:150);return(0,l.jsxs)(b.mc,{...(0,p.Rk)(o,{pathname:"/blog/[slug]/[postid]",query:{slug:m,postid:a}}),children:[(0,l.jsx)(b._V,{style:{backgroundImage:'url("'.concat(v,'")')},children:j&&(0,l.jsx)(b.hh,{children:(0,l.jsx)(h.A,{name:j})})}),(0,l.jsxs)(b.R2,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(b.JU,{children:y}),(0,l.jsx)(b.hE,{children:A}),(0,l.jsx)(b.VY,{children:k})]}),(0,l.jsx)(b.wi,{children:(0,f.ts)(w)})]})]})};var S=n(66423),z=n(77086);let N=j.Ay.div.withConfig({componentId:"sc-31e8af7e-0"})(["display:flex;align-items:center;margin-bottom:2rem;gap:1rem;font-size:4rem;@media only screen and (max-width:","){margin-bottom:0.5rem;font-size:2.5rem;}@media only screen and (max-width:","){margin:10px 0 0;}"],e=>{let{theme:t}=e;return t.breakpoints.tablet},e=>{let{theme:t}=e;return t.breakpoints.mobile}),P=j.Ay.h6.withConfig({componentId:"sc-31e8af7e-1"})(["font-size:inherit;margin-bottom:0;"]),M=j.Ay.div.withConfig({componentId:"sc-31e8af7e-2"})(["padding:10px;padding-top:20px;max-width:",";margin:0 auto;@media only screen and (max-width:","){padding-top:10px;}"],e=>{let{theme:t}=e;return null==t?void 0:t.layout.maxWidth},e=>{let{theme:t}=e;return t.breakpoints.tablet}),R=j.Ay.div.withConfig({componentId:"sc-31e8af7e-3"})(["color:rgba(0,0,0,0.6);font-size:1.4em;font-weight:bold;"]),L=j.Ay.div.withConfig({componentId:"sc-31e8af7e-4"})(["display:grid;grid-template-columns:repeat(3,1fr);gap:3rem;margin-bottom:2rem;"]),O=j.Ay.div.withConfig({componentId:"sc-31e8af7e-5"})(["display:grid;grid-template-columns:repeat(3,1fr);gap:3rem;@media only screen and (max-width:","){grid-template-columns:1fr;}"],e=>{let{theme:t}=e;return t.breakpoints.tablet}),Q=j.Ay.div.withConfig({componentId:"sc-31e8af7e-6"})(["grid-column:span 2;@media only screen and (max-width:","){order:1;}"],e=>{let{theme:t}=e;return t.breakpoints.tablet}),T=j.Ay.div.withConfig({componentId:"sc-31e8af7e-7"})(["grid-column:span 1;@media only screen and (max-width:","){grid-column:span 2;}"],e=>{let{theme:t}=e;return t.breakpoints.tablet}),V=(0,l.jsx)(R,{style:{textAlign:"center"},children:(0,l.jsx)("b",{children:"Oba! Voc\xea viu todos os posts :)"})}),q=function(e){let{label:t}=e,n=(0,d.Q)("tablet"),[i,r]=(0,o.useState)(!0),[p,f]=(0,o.useState)([]),[x,b]=(0,o.useState)(null),[v,w]=(0,o.useState)(!0),{template:j}=(0,s.S)(),{name:y}=j,A=async()=>{let e=await (0,c.getPostsHome)(y,p.length);if(!e.length)return w(!1);f(t=>[...t,...e])},k=(0,o.useCallback)(async()=>{try{let[e,n]=await Promise.all([(0,c.getPostsHome)(y,0),(0,u.d$)(y,{limit:5})]);if(e.length||w(!1),f(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t&&e.length?e.sort((e,n)=>{var l,i,r,o;let a=null!=(r=null==(l=e.attributes.blog_labels)?void 0:l.data)?r:[],s=null!=(o=null==(i=n.attributes.blog_labels)?void 0:i.data)?o:[],d=+!!a.find(e=>e.attributes.name===t);return!!s.find(e=>e.attributes.name===t)-d}):e}(e,t)),null==n?void 0:n.length){let e=Math.floor(Math.random()*n.length);b(n[e])}}finally{r(!1)}},[y,t]),_=p.slice(0,3),C=p.slice(3),R=i||p.length>3,q=t&&p.some(e=>{var n;let l=null==(n=e.attributes.blog_labels)?void 0:n.data;return null==l?void 0:l.some(e=>e.attributes.name===t)});return(0,o.useEffect)(()=>{k()},[k]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.A,{loading:i,posts:p}),(0,l.jsx)(S.A,{children:(0,l.jsxs)(M,{children:[q&&(0,l.jsxs)(N,{children:[(0,l.jsx)(h.A,{name:t}),(0,l.jsx)(P,{children:m.f[t].title})]}
1),n&&(i?(0,l.jsx)(z.A,{count:3,height:125}):null==_?void 0:_.map((e,t)=>(0,l.jsx)(E,{post:e},t))),!n&&(0,l.jsx)(L,{children:i?Array.from({length:3}).map((e,t)=>(0,l.jsx)(z.A,{count:1,height:580},t)):null==_?void 0:_.map((e,t)=>(0,l.jsx)(I,{post:e},t))}),!R&&V,R&&(0,l.jsxs)(O,{children:[(0,l.jsx)(Q,{children:(0,l.jsx)(a.A,{dataLength:p.length,next:A,hasMore:v,loader:(0,l.jsx)(z.A,{}),scrollThreshold:"340px",endMessage:V,children:null==C?void 0:C.map((e,t)=>(0,l.jsx)(E,{post:e},t))})}),(0,l.jsx)(T,{children:(0,l.jsx)(g.A,{loading:i,product:x})})]})]})})]})},B=function(e){let{label:t}=e,{template:n}=(0,s.S)(),i="Blog | ".concat((null==n?void 0:n.title)||(null==n?void 0:n.name));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r(),{children:[(0,l.jsx)("title",{children:i}),(0,l.jsx)("meta",{property:"og:title",content:i})]}),(0,l.jsx)(q,{label:t})]})}},77086:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var l=n(37876),i=n(96010);function r(e){let{children:t}=e;return(0,l.jsx)("div",{style:{borderRadius:"5px",overflow:"hidden",display:"block",marginBottom:"10px"},children:t})}let o=e=>{let{count:t=5,height:n=200}=e;return(0,l.jsx)(i.A,{wrapper:r,height:n,count:t})}}},e=>{e.O(0,[959,254,230,175,6,636,593,792],()=>e(e.s=30036)),_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.