PageSourceSearch

https://teamchile.cl/wp-content/plugins/ncmaz-frontend/dist/assets/SectionMagazine7-8f2b7f74.js

js teamchile.cl collected 2026-10-04 01:37:29 UTC 5,932 bytes, 1 lines download raw bytes

1import{r as E,j as e}from"./main-ddd0c633.js";import{a as D,C as V}from"./Card10Skeleton-04fc52f5.js";import{N as a}from"./NcImage-e3ba1726.js";import{C as T}from"./CategoryBadgeList-31b20c1f.js";import{g as G,P as _}from"./PostFeaturedMedia-bad22a7c.js";import{C as H}from"./CardAuthor2-15e0d04f.js";import F from"./PostCardDropdownShare-ccc9f48b.js";import{S as f}from"./index-65fcb3fb.js";import"./Avatar-143135aa.js";import"./contants-3c5f400b.js";import"./contantsCommon-3b0e63b7.js";import"./getImageSizesBySizeName-22c25ac1.js";import"./formatDate-dfe39bf7.js";import"./PostCardLikeAction-19ce9496.js";import"./Badge-de52e4ff.js";import"./NextPrev-3ae69e47.js";import"./twFocusClass-d0735f61.js";import"./PostTypeFeaturedIcon-de9a22d3.js";import"./useIntersectionObserver-6996c7ec.js";import"./index-92c4f05c.js";import"./ButtonPlayMusicRunningContainer-7662ae40.js";import"./LoadingVideo-2d668f61.js";import"./NcDropDown-f29ae41e.js";import"./menu-a2bfb547.js";import"./use-is-mounted-5022ad3a.js";import"./transition-af80e3a6.js";import"./SocialShareItem-7a0724c5.js";const N=({className:r="h-full",post:l,galleryType:i=1})=>{var v;const{title:c,link:h,categories:b,postFormats:g,ncmazGalleryImgs:w,author:C,date:y,ncPostMetaData:M}=l,s=G(w),[k,j]=E.useState(!1),U=()=>{var t,o,n,d,m,u,x,p;return s?e.jsxs("div",{className:"w-full h-full grid grid-cols-1 grid-rows-2 gap-2",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-2 ",children:[e.jsx(a,{containerClassName:"relative col-span-2",className:"absolute inset-0 object-cover w-full h-full",src:(t=s[0])==null?void 0:t.sourceUrl,srcSet:(o=s[0])==null?void 0:o.srcSet}),e.jsx(a,{containerClassName:"relative",className:"absolute inset-0 object-cover w-full h-full",src:(n=s[1])==null?void 0:n.sourceUrl,srcSet:(d=s[1])==null?void 0:d.srcSet,imageSizes:"MEDIUM"})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 ",children:[e.jsx(a,{containerClassName:"relative",className:"absolute inset-0 object-cover w-full h-full",src:(m=s[2])==null?void 0:m.sourceUrl,srcSet:(u=s[2])==null?void 0:u.srcSet,imageSizes:"MEDIUM"}),e.jsx(a,{containerClassName:"relative col-span-2",className:"absolute inset-0 object-cover w-full h-full",src:(x=s[3])==null?void 0:x.sourceUrl,srcSet:(p=s[3])==null?void 0:p.srcSet})]})]}):null},I=()=>{var t,o,n,d,m,u,x,p;return s?e.jsxs("div",{className:"w-full h-full grid grid-cols-3 gap-2",children:[e.jsx("div",{className:"grid ",children:e.jsx(a,{containerClassName:"relative",className:"absolute inset-0 object-cover w-full h-full",src:(t=s[0])==null?void 0:t.sourceUrl,srcSet:(o=s[0])==null?void 0:o.srcSet})}),e.jsxs("div",{className:"grid grid-rows-2 gap-2",children:[e.jsx(a,{containerClassName:"relative",className:"absolute inset-0 object-cover w-full h-full",src:(n=s[1])==null?void 0:n.sourceUrl,srcSet:(d=s[1])==null?void 0:d.srcSet,imageSizes:"MEDIUM"}),e.jsx(a,{containerClassName:"relative",className:"absolute inset-0 object-cover w-full h-full",src:(m=s[2])==null?void 0:m.sourceUrl,srcSet:(u=s[2])==null?void 0:u.srcSet,imageSizes:"MEDIUM"})]}),e.jsx("div",{className:"grid ",children:e.jsx(a,{containerClassName:"relative",className:"absolute inset-0 object-cover w-full h-full",src:(x=s[3])==null?void 0:x.sourceUrl,srcSet:(p=s[3])==null?void 0:p.srcSet})})]}):null},z=()=>{var t;return((t=g==null?void 0:g.edges[0])==null?void 0:t.node.slug)!=="post-format-gallery"||!(s!=null&&s.length)?e.jsx("div",{children:e.jsx(_,{post:l,isHover:k})}):e.jsx("div",{children:i===1?I():U()})};return e.jsxs("div",{className:`nc-Card10V3 group relative flex flex-col ${r}`,"data-nc-id":"Card10V3",onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:[e.jsxs("div",{className:"block group rounded-3xl flex-shrink-0 relative w-full aspect-w-16 aspect-h-9 overflow-hidden z-0",children:[z(),e.jsx("a",{href:h,className:"absolute inset-0 bg-neutral-900 bg-opacity-20 opacity-0 group-hover:opacity-100 transition-opacity"})]}),e.jsxs("div",{className:"absolute top-3 inset-x-3 flex justify-between items-start space-x-4",children:[e.jsx(T,{categories:b}),e.jsx(F,{panelMenusClass:"w-52 right-0 top-0 origin-top-right",href:l.link,image:(v=l.featuredImage)==null?void 0:v.node.sourceUrl})]}),e.jsxs("div",{className:"space-y-2.5 mt-4 px-4 flex flex-col",children:[e.jsx("h3",{className:"nc-card-title block sm:text-lg font-semibold text-neutral-900 dark:text-neutral-100 ",children:e.jsx("a",{className:"line-clamp-2",href:h,title:c,dangerouslySetInnerHTML:{__html:c||""}})}),e.jsx(H,{className:"mt-3",author:C,hoverReadingTime:!1,date:y,readingTimeShortcode:M.readingTimeShortcode})]})]})},S=({className:r="h-full"})=>e.jsxs("div",{className:`nc-Card10V3Skeleton group relative flex flex-col ${r}`,"data-nc-id":"Card10V3Skeleton",children:[e.jsx("div",{className:"block group rounded-3xl flex-shrink-0 relative w-full aspect-w-16 aspect-h-16 sm:aspect-h-9 overflow-hidden",children:e.jsx(a,{src:"."})}),e.jsx("div",{className:"absolute top-3 inset-x-3 flex justify-between items-start space-x-4",children:e.jsx(f,{width:"30%"})}),e.jsxs("div",{className:"space-y-2.5 mt-4 px-4",children:[e.jsx("h3",{className:"nc-card-title block sm:text-lg font-semibold text-neutral-900 dark:text-neutral-100 ",children:e.jsx(f,{width:"80%"})}),e.jsx(f,{width:"40%"}),e.jsx("div",{className:"opacity-0",children:"aa"})]})]}),ue=({listPosts:r,isLoading:l})=>e.jsxs("div",{className:"SectionMagazine7 grid grid-cols-1 gap-x-2.5 gap-y-4 sm:gap-6 2xl:gap-8",children:[e.jsxs("div",{className:"grid gap-x-2.5 gap-y-4 sm:gap-6 2xl:gap-8 grid-cols-1 lg:grid-cols-2",children:[l?e.jsx(S,{}):r[0]?e.jsx(N,{post:r[0].node}):null,l?e.jsx(S,{}):r[1]?e.jsx(N,{galleryType:2,post:r[1].node}):null]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-2.5 gap-y-4 sm:gap-6 2xl:gap-8 mt-3",children:l?[1,1,1,1].map((i,c)=>e.jsx(D,{},c)):r.filter((i,c)=>c>1).map(i=>e.jsx(V,{post:i.node},i.node.id))})]});
1export{ue as default};

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.