1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{1247:function(e,t,s){Promise.resolve().then(s.t.bind(s,8173,23)),Promise.resolve().then(s.t.bind(s,231,23)),Promise.resolve().then(s.bind(s,912)),Promise.resolve().then(s.bind(s,1481)),Promise.resolve().then(s.bind(s,2762)),Promise.resolve().then(s.bind(s,8253)),Promise.resolve().then(s.bind(s,4559)),Promise.resolve().then(s.bind(s,3901)),Promise.resolve().then(s.bind(s,7620)),Promise.resolve().then(s.bind(s,5538))},2762:function(e,t,s){"use strict";s.d(t,{default:function(){return l}});var a=s(7437),n=s(2265),i=s(4839);let r={};function l(e){let{divId:t,slotId:s,size:l,mobile:c,timeout:o,className:d}=e,[m,u]=(0,n.useState)(!0);return((0,n.useEffect)(()=>(window.googletag.cmd.push(function(){let e=window.googletag.defineSlot(s,l,t).addService(window.googletag.pubads());window.googletag.enableServices(),window.googletag.display(t),r[t]=e}),()=>{window.googletag.cmd.push(()=>{r[t]&&(window.googletag.destroySlots([r[t]]),delete r[t])})}),[s,l,t]),(0,n.useEffect)(()=>{if(o){let e=setTimeout(()=>{u(!1)},o);return()=>clearTimeout(e)}},[o]),m)?(0,a.jsx)("div",{className:(0,i.Z)(c?"flex justify-center sm:hidden":"hidden sm:flex sm:justify-center",d),children:(0,a.jsx)("div",{id:t,style:{minWidth:l[0],minHeight:l[1]}})}):(0,a.jsx)(a.Fragment,{})}},8253:function(e,t,s){"use strict";s.d(t,{default:function(){return r}});var a=s(7437);s(2265);var n=s(4839),i=s(2762);function r(e){let{slotId:t,divId:s,size:r,mobile:l,className:c}=e;return(0,a.jsxs)("div",{className:(0,n.Z)(l?"block sm:hidden":"hidden sm:block",c),children:[(0,a.jsx)("div",{className:"text-xs leading-[1.026rem] text-gray-400 mb-2",children:"PUBLICIDADE"}),(0,a.jsx)("div",{className:"bg-gray-100",children:(0,a.jsx)(i.default,{slotId:t,divId:s,size:r,mobile:l})})]})}},4559:function(e,t,s){"use strict";s.d(t,{default:function(){return d}});var a=s(7437),n=s(2265),i=s(9842),r=s(9381),l=s(1907),c=s(2183);let o=e=>{let t={};return e.name||(t.name="Campo obrigat\xf3rio"),e.comment||(t.comment="Campo obrigat\xf3rio"),t};function d(e){let{postId:t,categoryId:s,approved:d=!1}=e,[m,u]=(0,n.useState)([]),[x,h]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!0),[b,g]=(0,n.useState)(!1),[v,j]=(0,n.useState)(!1),y=(0,n.useRef)(null),N=(0,r.TA)({initialValues:{name:"",comment:""},validate:o,onSubmit:e=>{C({...e,postId:t,categoryId:s,active:!0,approved:d,createdAt:new Date().getTime()})}}),w=(0,n.useCallback)(async e=>{let t=(0,i.IO)((0,i.hJ)(c.N,"comments"),(0,i.ar)("postId","==",e),(0,i.ar)("approved","==",!0));u((await (0,i.PL)(t)).docs.map(e=>{let{name:t,comment:s}=e.data();return{id:e.id,name:t,comment:s}})),p(!1)},[]);(0,n.useEffect)(()=>{w(t)},[w,t]);let C=(0,n.useCallback)(async e=>{try{var t;await (null===(t=y.current)||void 0===t?void 0:t.executeAsync()),g(!0);let s=await fetch("https://api.cadaminuto.com.br/site_new/config"),a=await s.json(),n={...e};a.ip&&(n.ip=a.ip),await (0,i.ET)((0,i.hJ)(c.N,"comments"),n),g(!1),N.resetForm(),j(!0)}catch(e){console.log("error",e)}},[]);return(0,a.jsxs)("div",{className:"mb-12",children:[(0,a.jsx)("h3",{className:"text-[1rem] sm:text-[1.5rem] leading-[1.5rem] font-bold mb-[0.875rem] text-secondary",children:"Coment\xe1rios"}),(0,a.jsxs)("div",{className:"text-[0.875rem] mb-4",children:["Os coment\xe1rios s\xe3o de inteira responsabilidade dos autores, n\xe3o representando em qualquer inst\xe2ncia a opini\xe3o do Cada Minuto ou de seus colaboradores. Para maiores informa\xe7\xf5es, leia nossa"," ",(0,a.jsx)("a",{href:"/politica-de-privacidade",className:"text-primary",children:"pol\xedtica de privacidade."})]}),(0,a.jsxs)("form",{onSubmit:N.handleSubmit,children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{htmlFor:"price",className:"block text-sm font-base leading-6 text-secondary",children:"Nome:"}),(0,a.jsx)("div",{className:"relative mt-2 rounded-md shadow-sm",children:(0,a.jsx)("input",{id:"name",name:"name",type:"text",className:"block w-full rounded-md border-0 px-4 py-2 outline-none text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-primary sm:text-sm sm:leading-6",disabled:b,onChange:N.handleChange,value:N.values.name})}),N.touched.name&&N.errors.name?(0,a.jsx)("div",{className:"text-sm text-primary mt-2",children:N.errors.name}):null]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{htmlFor:"price",className:"block text-sm font-base leading-6 text-secondary",children:"Coment\xe1rio:"}),(0,a.jsx)("div",{className:"relative mt-2 rounded-md shadow-sm",children:(0,a.jsx)("textarea",{id:"comment",name:"comment",className:"block w-full rounded-md border-0 px-4 py-2 outline-none text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-primary sm:text-sm sm:leading-6",disabled:b,onChange:N.handleChange,value:N.values.comment})}),N.touched.comment&&N.errors.comment?(0,a.jsx)("div",{className:"text-sm text-primary mt-2",children:N.errors.name}):null]}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("button",{type:"submit",className:"bg-primary text-white px-4 py-2 rounded-lg",disabled:b,children:"Enviar"}),v&&(0,a.jsx)("div",{className:"text-[0.875rem] text-secondary",children:"Coment\xe1rio envi
1ado com sucesso."})]}),(0,a.jsx)(l.Z,{ref:y,size:"invisible",sitekey:"6Lff7nYdAAAAAAsH7PjhIx1YPZToneRMIWw0pjVR"})]}),f&&(0,a.jsx)("p",{className:"mt-4",children:"Carregando coment\xe1rios.."}),!f&&m.length>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-8",children:[null==m?void 0:m.slice(0,x?void 0:5).map(e=>(0,a.jsxs)("article",{className:"p-6 text-base bg-gray-50 rounded-lg",children:[(0,a.jsx)("footer",{className:"flex justify-between items-center mb-2",children:(0,a.jsx)("p",{className:"inline-flex items-center mr-3 text-sm text-gray-900 font-semibold",children:e.name})}),(0,a.jsx)("p",{className:"text-gray-500",children:e.comment})]},e.id)),m.length>5&&(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsxs)("button",{onClick:()=>h(e=>!e),className:"text-[0.688rem] leading-4 rounded-full border-secondary border px-4 py-2 hidden sm:block",children:["Ver ",x?"menos":"mais"]})})]})]})}},6534:function(e,t,s){"use strict";s.d(t,{H:function(){return r},Y:function(){return i}});var a=s(7437),n=s(2265);let i=e=>{let[t,s]=(0,n.useState)(0),[a,i]=(0,n.useState)([]),r=(0,n.useCallback)(t=>{e&&e.scrollTo(t)},[e]),l=(0,n.useCallback)(e=>{i(e.scrollSnapList())},[]),c=(0,n.useCallback)(e=>{s(e.selectedScrollSnap())},[]);return(0,n.useEffect)(()=>{e&&(l(e),c(e),e.on("reInit",l),e.on("reInit",c),e.on("select",c))},[e,l,c]),{selectedIndex:t,scrollSnaps:a,onDotButtonClick:r}},r=e=>{let{children:t,...s}=e;return(0,a.jsx)("button",{type:"button",...s,children:t})}},3901:function(e,t,s){"use strict";s.d(t,{default:function(){return u}});var a=s(7437),n=s(2265),i=s(4300),r=s(6534);let l=e=>{let[t,s]=(0,n.useState)(!0),[a,i]=(0,n.useState)(!0),r=(0,n.useCallback)(()=>{e&&e.scrollPrev()},[e]),l=(0,n.useCallback)(()=>{e&&e.scrollNext()},[e]),c=(0,n.useCallback)(e=>{s(!e.canScrollPrev()),i(!e.canScrollNext())},[]);return(0,n.useEffect)(()=>{e&&(c(e),e.on("reInit",c),e.on("select",c))},[e,c]),{prevBtnDisabled:t,nextBtnDisabled:a,onPrevButtonClick:r,onNextButtonClick:l}},c=e=>{let{children:t,...s}=e;return(0,a.jsxs)("button",{className:"appearance-none bg-transparent flex no-underline cursor-pointer p-0 m-0 w-16 h-16 items-center justify-center disabled:text-gray-300",type:"button",...s,children:[(0,a.jsx)("svg",{className:"w-[35%] height-[35%]",viewBox:"0 0 532 532",children:(0,a.jsx)("path",{fill:"currentColor",d:"M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"})}),t]})},o=e=>{let{children:t,...s}=e;return(0,a.jsxs)("button",{className:"appearance-none bg-transparent flex no-underline cursor-pointer p-0 m-0 w-16 h-16 items-center justify-center disabled:text-gray-300",type:"button",...s,children:[(0,a.jsx)("svg",{className:"w-[35%] height-[35%]",viewBox:"0 0 532 532",children:(0,a.jsx)("path",{fill:"currentColor",d:"M176.34 520.646c-13.793 13.805-36.208 13.805-50.001 0-13.785-13.804-13.785-36.238 0-50.034L330.78 266 126.34 61.391c-13.785-13.805-13.785-36.239 0-50.044 13.793-13.796 36.208-13.796 50.002 0 22.928 22.947 206.395 206.507 229.332 229.454a35.065 35.065 0 0 1 10.326 25.126c0 9.2-3.393 18.26-10.326 25.2-45.865 45.901-206.404 206.564-229.332 229.52Z"})}),t]})};var d=s(7932);let m={align:"start",slidesToScroll:1};function u(e){let{slides:t}=e,[s,n]=(0,i.Z)(m),{selectedIndex:u,scrollSnaps:x,onDotButtonClick:h}=(0,r.Y)(n),{prevBtnDisabled:f,nextBtnDisabled:p,onPrevButtonClick:b,onNextButtonClick:g}=l(n);return(0,a.jsxs)("section",{className:"mx-auto",children:[(0,a.jsx)("div",{className:"overflow-hidden",ref:s,children:(0,a.jsx)("div",{className:"flex gap-x-8 touch-p
1an-y backface-hidden",children:t.map(e=>(0,a.jsx)("div",{className:"min-w-0 flex-[0_0_100%]",children:(0,a.jsx)(d.Z,{src:e.url,description:e.description,sizes:[[364,272],[697,465]],app:e.app,mobileFullWidth:!0,priority:!0})},e.id))})}),(0,a.jsxs)("div",{className:"flex items-center justify-center mb-4",children:[(0,a.jsx)(c,{onClick:b,disabled:f}),(0,a.jsx)(o,{onClick:g,disabled:p})]})]})}},7932:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(7437),n=s(6648),i=s(4839),r=s(7816);function l(e){let{src:t,sizes:s,description:l,className:c,priority:o=!1,mobileFullWidth:d,app:m="cadaminuto"}=e,u=d?"w-full":"w-[".concat(s[0][0],"px]");return(0,a.jsxs)("picture",{className:(0,i.Z)(u,"block relative h-[".concat(s[0][1],"px] sm:w-[").concat(s[1][0],"px] sm:h-[").concat(s[1][1],"px]"),c),children:[(0,a.jsx)("source",{srcSet:(0,r.G)({src:t,width:s[0][0],height:s[0][1],app:m}),media:"(max-width: 600px)"}),(0,a.jsx)(n.default,{src:(0,r.G)({src:t,width:s[1][0],height:s[1][1],app:m}),alt:l,fill:!0,className:"object-cover rounded-lg w-full",priority:o,unoptimized:!0})]})}},7620:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return d}});var a=s(7437),n=s(2265),i=s(9842),r=s(9381),l=s(2183),c=s(1942);let o=e=>{let t={};return e.email?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(e.email).toLowerCase())||(t.email="E-mail inv\xe1lido"):t.email="Campo obrigat\xf3rio",t};function d(){let[e,t]=(0,n.useState)(!1),s=(0,n.useRef)(null),d=(0,r.TA)({initialValues:{email:""},validate:o,onSubmit:e=>m(e)}),m=(0,n.useCallback)(async e=>{try{var a;await (null===(a=s.current)||void 0===a?void 0:a.executeAsync()),t(!0);let n=await fetch("https://api.cadaminuto.com.br/site_new/config"),r=await n.json(),c={...e,createdAt:new Date().getTime()};r.ip&&(c.ip=r.ip),await (0,i.ET)((0,i.hJ)(l.N,"emails"),c),t(!1),d.resetForm(),alert("E-mail cadastrado com sucesso!")}catch(e){console.log("error",e)}},[]);return(0,a.jsx)("div",{className:"h-auto sm:h-[8.75rem] bg-red-50 w-full py-8 sm:py-0",children:(0,a.jsx)("div",{className:"container mx-auto px-6 sm:px-0 h-full",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row justify-center items-center align-middle gap-4 sm:gap-12 h-full",children:[(0,a.jsxs)("div",{className:"flex justify-center items-center align-middle gap-4",children:[(0,a.jsx)("div",{className:"flex flex-shrink-0 justify-center items-center rounded-full bg-red-100 w-[3rem] h-[3rem]",children:(0,a.jsx)(c.uWG,{className:"text-primary w-[1.5rem] h-[1.5rem]"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xl sm:text-2xl font-bold",children:"Newsletter"}),(0,a.jsx)("div",{className:"text-sm text-gray-500",children:"Receba em primeira m\xe3o as not\xedcias mais relevantes."})]})]}),(0,a.jsx)("div",{className:"w-full sm:w-auto",children:(0,a.jsxs)("form",{className:"flex flex-col sm:flex-row",onSubmit:d.handleSubmit,children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{id:"email",name:"email",type:"text",placeholder:"Digite seu e-mail",className:"text-sm rounded-[2rem] px-4 py-2 m-0 sm:mr-2 mb-4 sm:mb-0 w-full sm:w-[16.75rem] h-[2.5rem] outline-none",onChange:d.handleChange,value:d.values.email}),d.errors.email&&d.touched.email&&(0,a.jsx)("div",{className:"absolute text-sm top-[45px] text-primary",children:d.errors.email})]}),(0,a.jsx)("button",{type:"submit",disabled:e,className:"bg-primary text-white px-4 py-2 rounded-full text-base sm:text-sm h-[2.5rem]",children:e?"Enviando..":"Cadastre-se"})]})})]})})})}},5538:function(e,t,s){"use strict";s.d(t,{default:function(){return i}});var a=s(7437),n=s(8184);function i(e){let{data:t}=e;return(0,a.jsxs)("div",{className:"flex gap-2 mb-4 sm:mb-0",children:[(0,a.jsx)(n.N0,{url:t.link,title:t.title,separator:":: ",children:(0,a.jsx)(n.ud,{size:32,round:!0})}),(0,a.jsx)(n.Dk,{url:t.link,quote:t.title,hashtag:"#cadaminuto",children:(0,a.jsx)(n.Vq,{size:32,round:!0})})]})}},2183:function(e,t,s){"use strict";s.d(t,{N:function(){return r}});var a=s(5236),n=s(9842);let i=(0,a.ZF)({apiKey:"AIzaSyCFU3Q2vrA1AG29Po3WGdAb_qdBp96_Z1c",authDomain:"cadaminuto-comments.firebaseapp.com",projectId:"cadaminuto-comments",storageBucket:"cadaminuto-comments.appspot.com",messagingSenderId:"559450761472",appId:"1:559450761472:web:bf4d473a37c5523635abe5",measurementId:"G-XWVFVJMM2P"}),r=(0,n.ad)(i)},7816:function(e,t,s){"use strict";function a(e){let{src:t,width:s,height:a,app:n="cadaminuto",backup:i=!1}
1=e;if("external"===n)return t;let r="rs=w:".concat(s,",h:").concat(a,",i:true,cg:true,ft:cover?cache=true");return"https://img.cadaminuto.com.br/".concat(i?"cadaminuto-backup":n,"/").concat(t,"/:/").concat(r)}s.d(t,{G:function(){return a}})}},function(e){e.O(0,[699,358,231,173,944,332,740,971,23,744],function(){return e(e.s=1247)}),_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.