1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{7801:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return n(7971)}])},7971:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return k},default:function(){return S}});var a=n(5893),i=n(7172),o=n(6871),r=n(3790),l=n(6536),s=n(8329),c=n(92),d=n(7879),x=n(8491),u=n(5675),h=n.n(u),m=n(7516);function g(e){let{slug:t,title:n,thumbnail_url:i,thumbnail_alt:o,author:r,summary:l,datePublication:u,timeRead:g}=e;return(0,a.jsxs)(s.k,{w:"100%",direction:{base:"column",md:"row"},gap:"6",boxShadow:"xl",borderRadius:"xl",borderWidth:"1px",borderColor:"gray.200",padding:"4",children:[(0,a.jsx)(s.k,{flex:"1",children:(0,a.jsx)(h(),{src:i,alt:o||"Image",width:200,height:200,quality:100,priority:!0,style:{minHeight:"200px",minWidth:"200px",height:"200px",width:"200px",maxHeight:"200px",maxWidth:"200px",borderRadius:"0.75rem",margin:"0 auto",objectFit:"cover",objectPosition:"center"}})}),(0,a.jsxs)(s.k,{w:"100%",direction:"column",gap:"2",padding:"1",children:[(0,a.jsx)(c.x,{as:"h1",fontSize:{base:"2xl",md:"3xl",lg:"4xl",xl:"4xl"},fontWeight:"bold",color:"gray.700",children:n}),(0,a.jsx)(c.x,{as:"p",fontSize:{base:"sm",md:"sm",lg:"md",xl:"md"},fontWeight:"normal",color:"gray.600",display:"inline-block",height:"100px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"break-spaces",textAlign:"justify",position:"relative",_after:{content:"''",display:"block",position:"absolute",width:"100%",height:"72px",bottom:"0",left:"0",zIndex:5,background:"linear-gradient(0deg, whitesmoke, transparent)"},children:l}),(0,a.jsxs)(s.k,{w:"100%",justifyContent:"space-between",alignItems:"center",gap:{base:"4",md:"0"},direction:{base:"column",md:"row"},children:[(0,a.jsx)(s.k,{gap:"2",children:(0,a.jsx)(c.x,{as:"span",fontSize:"small",fontWeight:"normal",alignItems:"baseline",color:"gray.500",children:(0,a.jsxs)(s.k,{gap:"2",alignItems:"center",flexWrap:"wrap",direction:{base:"column",md:"row"},children:[(0,a.jsxs)(s.k,{alignItems:"center",gap:"1",color:"gray.600",children:[(0,a.jsx)(m.EDj,{style:{color:"#4A5568"}})," Escrito por ",r," | "]}),(0,a.jsxs)(s.k,{alignItems:"center",gap:"1",color:"gray.600",children:[(0,a.jsx)(m.R1q,{style:{color:"#4A5568"}})," Publicado em"," ",u," | "]}),(0,a.jsxs)(s.k,{alignItems:"center",gap:"1",color:"gray.600",children:[(0,a.jsx)(m.YFw,{style:{color:"#4A5568"}})," "," ".concat(g," min")]})]})})}),(0,a.jsx)(s.k,{w:"auto",children:(0,a.jsx)(d.r,{href:"blog/post/".concat(t),children:(0,a.jsx)(x.z,{variant:"outline",size:"md",color:"brand.500",borderColor:"brand.500",leftIcon:(0,a.jsx)(m.lsl,{}),transition:"ease-in-out",transitionDuration:"180ms",_hover:{bg:"brand.500",color:"whitesmoke"},children:"Leia mais"})})})]})]})]})}var p=n(6323),b=n(7294);function f(e){let{posts:t,next_page:n,fn_next_page:i}=e,[o,r]=(0,b.useState)(t);return(0,b.useEffect)(()=>{r(t)},[t]),(0,a.jsx)("section",{id:"blog-posts",children:(0,a.jsx)(s.k,{minW:"100vw",minH:"100vh",maxH:"max-content",overflowX:"hidden",children:(0,a.jsx)(s.k,{className:"container",py:"20",px:"6",children:(0,a.jsxs)(p.K,{direction:"column",gap:"8",w:"100%",children:[(0,a.jsxs)(c.x,{as:"h1",fontSize:{base:"4xl",md:"5xl",lg:"6xl",xl:"6xl"},fontWeight:900,color:"gray.700",display:"flex",gap:"4",alignItems:"center",children:[(0,a.jsx)(m.n2B,{style:{width:"4rem",height:"4rem",color:"#ff0000"}}),"Blog"]}),(0,a.jsx)(s.k,{direction:"column",gap:"4",children:o.map(e=>(0,a.jsx)(g,{slug:e.slug,thumbnail_url:"".concat(e.thumbnail_url,"?t=").concat(new Date().getTime()),thumbnail_alt:e.thumbnail_alt,title:e.title,summary:e.summary,author:e.author,datePublication:e.updatedAt,timeRead:e.timeReadContent},e.slug))}),null!==n?(0,a.jsx)(s.k,{w:"100%",justifyContent:"center",children:(0,a.jsx)(x.z,{variant:"solid",color:"white",bgGradient:"linear(to-b, brand.500, brand.700)",boxShadow:"xl",transition:"all ease-in-out",transitionDuration:"220ms",_hover:{filter:"brightness(0.9)"},onClick:i,children:"Carregar mais"})}):null]})})})})}var j=n(6905);let v=j.eI("https://blog-rede-inova-drogarias.cdn.prismic.io/api/v2",{accessToken:"MC5aR1lSbHhBQUFDQUFvbmxl.Ve-_vS9yC--_vV4i
1IT_vv70677-9UD4m77-9ZX7vv71IW2Hvv73vv73vv73vv73vv71e77-9cu-_vQ"});var w=n(720),_=n(9008),y=n.n(_),k=!0;function S(e){let[t,n]=(0,b.useState)([]),[s,c]=(0,b.useState)(null),[d,x]=(0,b.useState)(1);async function u(){let e=[],t=await v.get({fetch:["publication.title","publication.content"],pageSize:10,page:d+1});t.results.forEach(n=>{let a=(0,w.S)(n.data.content),i=function(e){let t=e.split(" ").length;return Math.ceil(t/200)}(a);e.push({slug:n.uid,thumbnail_url:n.data.thumbnail.url,thumbnail_alt:n.data.thumbnail.alt,title:(0,w.S)(n.data.title),content:(0,w.S)(n.data.content),author:n.data.author,summary:n.data.summary,timeReadContent:i,updatedAt:new Date(n.last_publication_date).toLocaleString("pt-BR",{day:"2-digit",month:"long",year:"numeric"}),next_page:t.next_page})}),n(t=>[...t,...e]),c(t.next_page),x(t.page)}return(0,b.useEffect)(()=>{n(e.posts),c(e.next_page),x(e.page)},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y(),{children:[(0,a.jsx)("title",{children:"Rede Inova Drogarias - Blog"}),(0,a.jsx)("meta",{name:"description",content:"Conhe\xe7a mais conte\xfado para voc\xea farmac\xeautico."}),(0,a.jsx)("meta",{property:"og:description",content:"Encontre aqui o melhor conte\xfado para voc\xea farmaceutico"}),(0,a.jsx)("meta",{property:"og:title",content:"Blog"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,a.jsxs)("main",{children:[(0,a.jsx)(r.$,{}),(0,a.jsx)(l.n,{children:(0,a.jsx)(f,{posts:t,next_page:s,fn_next_page:u})}),(0,a.jsx)(o.$,{}),(0,a.jsx)(i.t,{})]})]})}}},function(e){e.O(0,[445,874,329,981,237,774,888,179],function(){return e(e.s=7801)}),_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.