PageSourceSearch

https://s.natemat.pl/static/js/BPhotoOnTopLifestyle.1789991096180.snckiLRa.chunk.js

js natemat.pl collected 2026-09-24 15:21:10 UTC 4,617 bytes, 2 lines download raw bytes

1import{s as n,r as x,j as t,M as v,W as z}from"./Slate__Gallery.1789991096180.sYLdrYst.chunk.js";import{d as j,L as S,e as $,E,a as A,b as B,f as I}from"./block__Bloger.1789991096180.5_LQltd1.chunk.js";import"./StarButton.1789991096180.CzUgIqjt.chunk.js";const _=({media:a,article:o,style:e,withBackground:d,...g})=>{var h,l,m,u;const p=(h=o==null?void 0:o.picture)==null?void 0:h.img,[s,f]=x.useState(200),i=x.useRef(null),k=o.partner?t.jsx(W,{children:o.partner}):null;return x.useEffect(()=>{var c,b;if((c=i==null?void 0:i.current)!=null&&c.clientWidth){const w=(b=i==null?void 0:i.current)==null?void 0:b.clientWidth,y=Math.ceil(w*472/840);y!==s&&f(y)}},[]),t.jsx(P,{className:`photo-on-top style--${e||""} ${d?" style--with-padding":""}`,children:t.jsxs(S,{to:((l=o.settings)==null?void 0:l.link)||o.url,children:[t.jsx(H,{ref:i,size:o.size,children:t.jsxs(T,{size:o.size,children:[t.jsx(v,{media:a,src:p,preserveRatio:!1,aspectRatio:1.78,height:s}),k,(o==null?void 0:o.player)&&t.jsx(L,{boxSize:"xxl"}),(o==null?void 0:o.category)&&((m=o.category)==null?void 0:m.name)&&t.jsx("div",{className:"category",children:t.jsx($,{text:o.category.name,sponsored:!0,showMark:!0,markText:""})})]})}),t.jsxs(r,{children:[t.jsx(M,{className:z(),children:((u=o==null?void 0:o.settings)==null?void 0:u.title_normal)||(o==null?void 0:o.pile_title)||(o==null?void 0:o.title)}),(o==null?void 0:o.lead)&&t.jsx(N,{children:o==null?void 0:o.lead})]})]})})},W=n("span",{display:"block",position:"absolute",left:"0",top:"0",padding:"0px 8px",backgroundColor:"#D8D8D8",color:"#8B8B8B",lineHeight:"16px",fontSize:"11px",zIndex:"4"}),H=n("div",{variants:{size:{lg:{"@bp4":{width:"455px",height:"330px"},"@bp5":{width:"624px",height:"416px"}},md:{"@bp4":{width:"200px"},"@bp5":{width:"408px",height:"272px"}}}},"& a":{textDecoration:"none !important"}}),T=n("div",{position:"relative","& img":{width:"100%",height:"auto",display:"block"},variants:{size:{lg:{},md:{}}},"& .category":{position:"absolute",bottom:"16px",left:"16px",zIndex:"3"}}),r=n("div",{display:"block",color:"$grayscale100",padding:"40px 0 0 0",margin:"0 auto"}),D=n("div",{display:"flex",alignItems:"center",marginTop:"18px",p:{marginTop:"0",marginBottom:"0",marginLeft:"12px",fontSize:"14px",lineHeight:"18px",fontWeight:"800",color:"$grayscale100"}}),P=n("div",{marginBottom:"40px","&.style--red":{[`${r} > span`]:{backgroundColor:"#EA3A3E",color:"white",boxShadow:"2px 0 0 red, -2px 0 0 #EA3A3E"}},"&.style--primary":{[`${r} > span`]:{backgroundColor:"$primary",color:"white",boxShadow:"2px 0 0 red, -2px 0 0 $primary"}},"&.style--black":{[`${r} > span`]:{backgroundColor:"#131212",color:"white",boxShadow:"2px 0 0 #131212, -2px 0 0 #131212"}},"&.style--with-padding":{backgroundColor:"$grayscale0",paddingBottom:"1px",[`${r}`]:{margin:"16px",padding:0,"@bp4":{height:"70px",overflow:"hidden"}},[`${D}`]:{margin:"15px 16px",padding:0}}}),L=n("div",{position:"absolute",zIndex:100,backgroundImage:`url("${j}")`,backgroundPosition:"center",backgroundRepeat:"no-repeat",top:"50%",left:"50%",width:"48px",height:"48px",marginLeft:"-24px",marginTop:"-24px",variants:{boxSize:{xxl:{backgroundSize:"48px"},xs:{backgroundSize:"32px"},xxs:{backgroundSize:"28px"}}}}),M=n("p",{overflow:"hidden",maxHeight:"135px",margin:"0"}),N=n("p",{"& span":{textDecoration:"none"},padding:0,margin:"8px 0 0 0",fontWeight:"600",fontFamily:"$grotesk",lineHeight:"24px",maxHeight:"72px",overflow:"hidden"}),F=a=>{var d,g,p,s;var o=I();const e=a.settings;return e["background-image"]&&e["background-image"],o.title=a.autofill?`Automatyczne wypełnienie: ${e.autofill_category||"podaj kategorię"}`:e.title_normal,o.picture.img=(d=e==null?void 0:e.picture)==null?void 0:d.img,o.url=e.link,o.partner=e.partner,o.label=e.label,o.category={...(e==null?void 0:e.post_category)??{},name:e.category},o.player=parseInt(e.player)===1,o.stats=e.stats?e.stats:{shares:"0",comments:"0"},o.background=e.background,o.lead=e.lead,o.author.show=e.show_author,e.show_author&&(o.author.url=(g=e.author)==null?void 0:g.url,o.author.name=e.author_name||((p=e.author)==null?void 0:p.name),o.author.img=e.author_img?window.MEDIA_DOMAIN+"/"+e.author_img.replace(".",",64,64,0,0."):(s=e.author)==null?void 0:s.img),e.embed&&(o.embed=e.embed),t.jsxs("div",{className:a.classes+" pos-relative",...a.events,"data-tb-region-item":!0,children:[t.jsx(E,{...a,editor:a.autofill?A:B}),t.jsx(_,{article:o,boxSize:a.size,imageHeight:a.imageHeight,media:e.media,style:e.background||a.style,withBackgroun
1d:a.withBackground})]})};export{F as default};
2//# sourceMappingURL=BPhotoOnTopLifestyle.1789991096180.snckiLRa.chunk.js.map

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.