PageSourceSearch

https://www.greenbuilding.news/assets/PostCard-DDx38Cni.js

js greenbuilding.news collected 2026-10-04 06:16:38 UTC 3,626 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9ebaec57-8a02-556c-96d0-d8438aca0436")}catch(e){}}();
3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{t as n}from"./dayjs.min-MGE5IyII.js";import{t as r}from"./useTranslation-BymTnaHx.js";import{n as i}from"./components-B8bHjdou.js";import{t as a}from"./classnames-PxzWHlFm.js";import{t as o}from"./Text-B4PqLHDw.js";import{t as s}from"./LockClosedIcon-nbfIsPgW.js";import{t as c}from"./SparklesIcon-BCz0Vi5N.js";import{t as l}from"./Image-B1Otrzxn.js";import{t as u}from"./relativeTime-y4ag7y6a.js";var d=e(n(),1),f=e(u(),1),p=e(a(),1),m=t(),h=({theme:e,text:t,icon:n})=>(0,m.jsxs)(`div`,{className:`relative mb-1 mt-1 inline-flex items-center space-x-1 overflow-hidden rounded-wt px-2 py-1 text-xs`,children:[(0,m.jsx)(`div`,{className:(0,p.default)(`absolute inset-0`,e===`light`?`bg-wt-primary text-wt-primary opacity-10`:``,e===`dark`?`bg-wt-primary text-wt-text-on-primary`:``)}
3),n,(0,m.jsx)(`span`,{className:`z-10`,children:t})]});d.default.extend(f.default);var g=({publication:e,post:t,titleSize:n,descriptionSize:a,showImage:u,shouldEagerLoad:d=!1,orientation:f=`vertical`,variant:g=`default`,descriptionLines:_,isFeatured:v=!1,renderAuthors:y=!0,theme:b=`content`,className:x})=>{let{t:S}=r();return(0,m.jsxs)(i,{to:`/p/${t.slug}`,prefetch:`none`,className:(0,p.default)(`group relative flex rounded-wt`,f===`vertical`?``:`grid w-full grid-cols-1 transition-all hover:bg-opacity-25 sm:my-6 sm:grid-cols-2`,f===`vertical`?`flex-col`:`flex-row`,!v&&`mb-6 gap-y-0 sm:mb-0`,x,e.web_theme.content_theme===`light`?`hover:bg-slate-100/50`:``,e.web_theme.content_theme===`dark`?`hover:bg-white/5`:``,e.web_theme.content_theme===`secondary`?`hover:bg-white/20`:``),children:[v&&e.web_template.enable_featured_post_badges&&(0,m.jsx)(`div`,{className:`mb-2`,children:(0,m.jsx)(h,{theme:e.web_theme.content_theme,text:S(`posts.featured`),icon:(0,m.jsx)(c,{className:`z-10 h-3.5 w-3.5`})})}),u&&(0,m.jsx)(`div`,{className:(0,p.default)(`z-10 col-span-1 w-full overflow-hidden rounded-wt border`,e.web_theme.content_theme===`light`?`bg-slate-100/50`:``,e.web_theme.content_theme===`dark`?`bg-white/5`:``,e.web_theme.content_theme===`secondary`?`bg-white/20`:``),children:(0,m.jsx)(l,{src:t.image_url,alt:t.web_title,maxWidth:800,loading:d?`eager`:`lazy`,aspectRatio:`social`})}),(0,m.jsxs)(`div`,{className:`z-10 col-span-1 p-4`,children:[t.audience===`premium`&&(0,m.jsx)(h,{theme:e.web_theme.content_theme,text:S(`posts.premium`),icon:(0,m.jsx)(s,{className:`z-10 h-3.5 w-3.5`})}),(0,m.jsx)(o,{as:`h2`,size:n,theme:b,weight:`bold`,className:(0,p.default)(`line-clamp-2 text-wt-text-on-background`,`wt-header-font`,g===`news`?`group-hover:underline`:``),children:t?.web_title}),(0,m.jsx)(o,{size:a,theme:b,className:(0,p.default)(`font-regular mb-2 text-wt-text-on-background opacity-75`,`wt-header-font`,g===`news`?`group-hover:underline`:``,_===2?`line-clamp-2`:`line-clamp-4`),children:t?.web_subtitle}),y&&(0,m.jsxs)(o,{size:`xs`,theme:b,className:(0,p.default)(`mb-4 text-wt-text-on-background no-underline opacity-75`,`wt-header-font`),weight:`regular`,children:[(0,m.jsx)(`span`,{children:t.authors?.map(e=>e.name).join(`, `)}),t.authors?.length>=1&&(0,m.jsx)(`span`,{children:` / `}),(0,m.jsx)(`time`,{dateTime:t.override_scheduled_at})]})]})]})};export{g as t};
4//# sourceMappingURL=PostCard-DDx38Cni.js.map
5//# debugId=9ebaec57-8a02-556c-96d0-d8438aca0436

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.