1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8483],{14767:(e,t,l)=>{l.d(t,{Iq:()=>i,Tq:()=>d,Wb:()=>x,bb:()=>r,cn:()=>n,fU:()=>u,nq:()=>c,qH:()=>o});var a=l(11699),s=l(29815);function n(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,s.QP)((0,a.$)(t))}function r(e){let t=e.replace(/\D/g,"");return 0===t.length?"":t.length<=3?t:t.length<=6?"".concat(t.slice(0,3),".").concat(t.slice(3)):t.length<=9?"".concat(t.slice(0,3),".").concat(t.slice(3,6),".").concat(t.slice(6)):"".concat(t.slice(0,3),".").concat(t.slice(3,6),".").concat(t.slice(6,9),"-").concat(t.slice(9,11))}function o(e){let t=e.replace(/\D/g,"");return 0===t.length?"":t.length<3?"(".concat(t):t.length<7?"(".concat(t.slice(0,2),") ").concat(t.slice(2)):t.length<=10?"(".concat(t.slice(0,2),") ").concat(t.slice(2,6),"-").concat(t.slice(6)).replace(/-$/,""):"(".concat(t.slice(0,2),") ").concat(t.slice(2,7),"-").concat(t.slice(7,11)).replace(/-$/,"")}function c(e){let t=e.replace(/\D/g,"");return t.length<=2?t:t.length<=4?"".concat(t.slice(0,2),"/").concat(t.slice(2)):"".concat(t.slice(0,2),"/").concat(t.slice(2,4),"/").concat(t.slice(4,8))}function i(e){let t=e.replace(/\D/g,"");return t.length<=5?t:"".concat(t.slice(0,5),"-").concat(t.slice(5,8))}function u(e){let t=e.replace(/\D/g,"");return t.length<=2?t:t.length<=4?"".concat(t.slice(0,2),":").concat(t.slice(2)):"".concat(t.slice(0,2),":").concat(t.slice(2,4))}function d(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function x(e){let t=e.match(/youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return t[1];try{return new URL(e).searchParams.get("v")}catch(e){return null}}},36068:(e,t,l)=>{l.r(t),l.d(t,{BlogCarouselNext:()=>g,BlogCarouselPrevious:()=>p,Carousel:()=>d,CarouselContent:()=>x,CarouselDots:()=>b,CarouselItem:()=>m,CarouselNext:()=>f,CarouselPrevious:()=>h});var a=l(40771),s=l(36526),n=l(4259),r=l(59129),o=l(14767),c=l(54923);let i=n.createContext(null);function u(){let e=n.useContext(i);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function d(e){let{orientation:t="horizontal",opts:l,setApi:r,plugins:c,className:u,children:d,...x}=e,[m,h]=(0,s.A)({...l,axis:"horizontal"===t?"x":"y"},c),[f,p]=n.useState(!1),[g,v]=n.useState(!1),b=n.useCallback(e=>{e&&(p(e.canScrollPrev()),v(e.canScrollNext()))},[]),w=n.useCallback(()=>{null==h||h.scrollPrev()},[h]),j=n.useCallback(()=>{null==h||h.scrollNext()},[h]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[w,j]);return n.useEffect(()=>{h&&r&&r(h)},[h,r]),n.useEffect(()=>{if(h)return b(h),h.on("reInit",b),h.on("select",b),()=>{null==h||h.off("select",b)}},[h,b]),(0,a.jsx)(i.Provider,{value:{carouselRef:m,api:h,opts:l,orientation:t||((null==l?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:j,canScrollPrev:f,canScrollNext:g},children:(0,a.jsx)("div",{onKeyDownCapture:N,className:(0,o.cn)("relative",u),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...x,children:d})})}function x(e){let{className:t,...l}=e,{carouselRef:s,orientation:n}=u();return(0,a.jsx)("div",{ref:s,className:"h-full overflow-hidden","data-slot":"carousel-content",children:(0,a.jsx)("div",{className:(0,o.cn)("flex","horizontal"===n?"-ml-4":"-mt-4 flex-col",t),...l})})}function m(e){let{className:t,...l}=e,{orientation:s}=u();return(0,a.jsx)("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:(0,o.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===s?"pl-4":"pt-4",t),...l})}function h(e){let{className:t,...l}=e,{scrollPrev:s,canScrollPrev:n}=u();return(0,a.jsxs)("button",{"aria-label":"Previous slide",className:(0,o.cn)("cursor-pointer","absolute h-7 w-7 p-0","text-primary hover:text-primary/80","top-1/2 left-2 -translate-y-1/2","border-none bg-white/50 hover:bg-white/80","focus:ring-0 focus:outline-none","rotate-180 transform",t),onClick:s,...l,children:[(0,a.jsx)(r.I,{id:"svg-simple-arrow",className:"h-4 w-7"}),(0,a.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}function f(e){let{className:t,...l}=e,{scrollNext:s,canScrollNext:n}=u();return(0,a.jsxs)("button",{"aria-label":"Next slide",className:(0,o.cn)("cursor-pointer","absolute h-7 w-7 p-0","text-primary hover:text-primary/80","top-1/2 right-2 -translate-y-1/2","border-none bg-white/50 hover:bg-white/80","focus:ring-0 focus:outline-none",t),disabled:!n,onClick:s,...l,children:[(0,a.jsx)(r.I,{id:"svg-simple-arrow",className:"h-4 w-7"}),(0,a.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}function p(e){let{className:t,...l}=e,{scrollPrev:s}=u();return(0,a.jsx)("button",{"aria-label":"Previous slide",onClick:s,className:(0,o.cn)("absolute top-1/2 left-2 z-30 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-full border border-white text-white hover:opacity-80 md:left-3",t),...l,children:(0,a.jsx)(r.I,{id:"svg-pagination",className:"h-4 w-4"})})}function g(e){let{className:t,...l}=e,{scrollNext:s}=u();return(0,a.jsx)("button",{"aria-label":"Next slide",onClick:s,className:(0,o.cn)("absolute top-1/2 right-2 z-30 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-full border border-white text-white hover:opacity-80 md:right-3",t),...l,children:(0,a.jsx)(r.I,{id:"svg-pagination",className:"h-4 w-4 rotate-180"})})}let v=(0,c.F)("h-3 w-3 cursor-pointer transition-all duration-300",{variants:{variant:{default:"rounded-full",circle:"rounded-full",square:"rounded-sm",pill:"rounded-[60px] h-1 w-5"}},defaultVariants:{variant:"default"}});function b(e){let{className:t,activeDotClass:l="bg-secondary",inactiveDotClass:s="bg-white/40",variant:r="default",disabled:c=!1,...i}=e,{api:d}=u(),[x,m]=n.useState(0),[h,f]=n.useState(0);return(n.useEffect(()=>{if(!d)return;let e=e=>{e&&(f(e.scrollSnapList().length),m(e.selectedScrollSnap()))};return e(d),d.on("select",e),d.on("reInit",e),()=>{d.off("select",e),d.off("reInit",e)}},[d]),c||h<=1)?null:(0,a.jsx)("div",{className:(0,o.cn)("flex items-center justify-center gap-2",t),...i,children:Array.from({length:h},(e,t)=>(0,a.jsx)("button",{type:"button","aria-label":"Ir para slide ".concat(t+1),onClick:()=>null==d?void 0:d.scrollTo(t),className:(0,o.cn)(v({variant:r}),t===x?l:s)},"dot-".concat(t)))})}},58483:(e,t,l)=>{l.d(t,{PostCard:()=>u,default:()=>d});var a=l(40771),s=l(35795),n=l(10647),r=l.n(n),o=l(4259),c=l(36068),i=l(14767);function u(e){var t,l,n,o,c;
1let{post:u,linkBase:d,categories:x,showCategoryBadge:m}=e,h=null==(t=u.categories)?void 0:t[0],f=(null==(l=u.image)?void 0:l.crop)||(null==(n=u.image)?void 0:n.original),p=x.map(e=>e.slug).some(e=>h.slug.includes(e));return(0,a.jsxs)(r(),{href:p?"".concat(u.link):"".concat(d,"/").concat(u.slug),target:p?"_blank":"_self",rel:p?"noopener noreferrer":void 0,className:"group hover:bg-mono/5 border-mono/8 flex flex-col gap-4.25 rounded-lg border bg-white p-5 transition-shadow duration-300 hover:shadow-lg",children:[(0,a.jsx)("div",{className:"relative aspect-360/245 w-full overflow-hidden rounded-[20px]",children:(0,a.jsx)(s.default,{src:f||"/images/system/default_share.jpg",alt:u.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",loading:"lazy"})}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center gap-2",m?"justify-between":"justify-center",(null==h||null==(o=h.name)?void 0:o.length)>20&&"max-sm:flex-col max-sm:items-center"),children:[(0,a.jsxs)("div",{className:"flex min-w-0 shrink-0 items-center gap-1",children:[(0,a.jsx)("span",{className:"text-mono text-xs leading-4.5 whitespace-nowrap",children:"Publicado em:"}),(0,a.jsx)("span",{className:"text-mono text-xs leading-[1.2em] whitespace-nowrap",children:null==(c=u.published_at)?void 0:c.date})]}),m&&h&&(0,a.jsx)("span",{className:(0,i.cn)("border-secondary text-secondary group-hover:bg-secondary shrink-0 rounded-md border px-2.5 py-1 text-[12px] leading-4 font-medium uppercase group-hover:text-white",h.name.length>20&&"max-sm:w-fit"),children:h.name})]}),(0,a.jsx)("div",{className:"flex w-full items-center justify-center px-2.5 py-2.5",children:(0,a.jsx)("h3",{className:"text-mono group-hover:text-primary line-clamp-4 text-center text-base leading-[1.2em] font-bold transition-colors duration-300",children:u.title})})]})]})}function d(e){let{title:t="Not\xedcias",subtitle:l="Brasil e Mundo",posts:n,categories:r=[{name:"Vaticano",slug:"vaticano"},{name:"CNBB",slug:"cnbb"},{name:"Regional",slug:"regional"}],linkBase:i="/noticias",coatOfArmsImage:d="/images/logos/brasao-diocese.png",showCategoryBadge:x=!0}=e,[m,h]=(0,o.useState)([]),f=m.length>0?n.filter(e=>e.categories.some(e=>m.includes(e.slug))):n;return(0,a.jsx)("section",{className:"py-15X w-full",children:(0,a.jsxs)("div",{className:"container mx-auto flex max-w-6xl flex-col gap-5 2xl:max-w-360",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(s.default,{src:d,alt:"Bras\xe3o da Arquidiocese de Joinville",width:60,height:60,className:"shrink-0 object-contain"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 leading-[1.2em] md:flex-row md:items-center",children:[(0,a.jsx)("div",{className:"text-primary text-[28px] font-normal lg:text-[40px]",children:t}),(0,a.jsx)("div",{className:"text-primary text-[28px] font-bold lg:text-[40px]",children:l})]})]}),r.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsx)("span",{className:"text-mono text-xs leading-4.5",children:"Filtrar por:"}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-2.5",children:r.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{var t;return t=e.slug,void h(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"border-secondary cursor-pointer rounded-md border px-2.5 py-1 text-[12px] leading-4 font-medium uppercase transition-colors duration-200 ".concat(m.includes(e.slug)?"bg-secondary text-white":"text-secondary hover:bg-secondary/10"),children:e.name},e.slug))})]})]}),f.length>0?(0,a.jsxs)(c.Carousel,{opts:{align:"start",loop:!1},children:[(0,a.jsx)(c.CarouselContent,{className:"-ml-6 pb-2",children:f.map(e=>(0,a.jsx)(c.CarouselItem,{className:"basis-[85%]X pl-6X sm:basis-1/2 lg:basis-1/3",children:(0,a.jsx)(u,{post:e,linkBase:i,categories:r,showCategoryBadge:x})},e.id))}),(0,a.jsx)(c.CarouselDots,{className:"mt-1",activeDotClass:"bg-secondary",inactiveDotClass:"bg-gray-500/40"})]}):(0,a.jsx)("div",{className:"flex items-center justify-center py-16",children:(0,a.jsx)("p",{className:"text-mono text-base",children:"Nenhuma not\xedcia encontrada."})})]})})}}}]);
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.