PageSourceSearch

https://insolvency-insider.co.uk/assets/PostCardv3-C5or4sKe.js

js insolvency-insider.co.uk collected 2026-10-02 19:24:19 UTC 8,340 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]="c8da70dc-6292-5d62-a195-42a2c954f89a")}catch(e){}}();
3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{t as n}from"./dayjs.min-MGE5IyII.js";import{V as r}from"./dist-CAHjj65Z.js";import{t as i}from"./useTranslation-BymTnaHx.js";import{n as a}from"./components-B8bHjdou.js";import{t as o}from"./classnames-PxzWHlFm.js";import{t as s}from"./Typography-DJfjxaJy.js";import{i as c,t as l}from"./useWebThemeContext-BJu9VsBR.js";import{n as u,t as d}from"./LockClosedIcon-nbfIsPgW.js";import{t as f}from"./Image-B1Otrzxn.js";import{t as p}from"./getNormalizedCategory-BviP1vmp.js";var m=e(r());function h({title:e,titleId:t,...n},r){return m.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?m.createElement(`title`,{id:t},e):null,m.createElement(`path`,{fillRule:`evenodd`,d:`M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97-1.94.284-3.916.455-5.922.505a.39.39 0 0 0-.266.112L8.78 21.53A.75.75 0 0 1 7.5 21v-3.955a48.842 48.842 0 0 1-2.652-.316c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97Z`,clipRule:`evenodd`}))}var g=m.forwardRef(h),_=e(o(),1),v=t(),y=({alt:e,url:t,bgColor:n})=>(0,v.jsx)(`div`,{className:`h-7 w-7 rounded-full`,children:(0,v.jsx)(`img`,{className:`inline-block h-7 w-7 rounded-full`,src:t,alt:e,style:{border:`1px solid ${n||`#ffffff`}`}})}),b=({authors:e,font:t,color:n,bgColor:r,fallbackName:i,showAuthorImage:o})=>{if(!e||!Array.isArray(e))return null;let c=e.length,l=c>1;return(0,v.jsxs)(a,{to:`/authors`,prefetch:`intent`,className:`group flex flex-col items-start space-x-0 space-y-1 sm:flex-row sm:items-center sm:space-x-2 sm:space-y-0`,children:[o&&(0,v.jsx)(`div`,{className:`flex -space-x-1.5 overflow-hidden`,children:e.map(e=>(0,v.jsx)(y,{alt:e.name,url:e.profile_picture.url,bgColor:r},e.id))}),c>0?(0,v.jsx)(`div`,{className:`flex items-center`,children:(0,v.jsx)(s,{as:`span`,size:`xs`,weight:`semibold`,color:n,className:`group-hover:underline`,fontFamily:t,fontFamilyv2:t,children:l?`${e[0].name}, +${e.length-1}`:e[0].name})}):(0,v.jsx)(s,{as:`span`,size:`xs`,weight:`semibold`,color:n,fontFamily:t,fontFamilyv2:t,children:i})]})},x=e(n(),1),S=e=>{let t=(0,x.default)().diff(e,`hour`);return t<=1?`${t||1} hour ago`:t<24?`${t} hours ago`:e.locale(`en`).format(`MMM DD, YYYY`)},C=({timestamp:e,readTime:t,fontFamily:n,color:r})=>(0,v.jsxs)(`div`,{className:`flex items-center space-x-1`,children:[(0,v.jsx)(s,{as:`span`,size:`xs`,weight:`light`,className:`!text-xs text-gray-600`,fontFamily:n,fontFamilyv2:n,color:r,children:(0,v.jsx)(`time`,{dateTime:e,children:S((0,x.default)(e))})}),t&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`div`,{children:(0,v.jsx)(`div`,{className:`h-1 w-1 rounded-full`,style:{backgroundColor:r}})}),(0,v.jsx)(s,{as:`span`,size:`xs`,weight:`light`,className:`!text-xs text-gray-600`,fontFamily:n,fontFamilyv2:n,color:r,children:t})]})]}),w=({alt:e,radiusClass:t,src:n,hasRadiusApplied:r})=>(0,v.jsx)(`div`,{className:(0,_.default)(`w-full`,r&&`${t} overflow-hidden`),children:(0,v.jsx)(f,{src:n,alt:e,maxWidth:800,loading:`eager`,aspectRatio:`social`})}),T=({count:e,children:t,className:n,color:r,fontFamily:i})=>(0,v.jsxs)(s,{size:`sm`,as:`span`,fontFamily:i,fontFamilyv2:i,className:(0,_.default)(n,`flex items-center space-x-0.5`),color:r,weight:`regular`,children:[t,e>0?(0,v.jsx)(`span`,{className:`text-xs font-bold`,children:e}):null]}),E=({post:e,color:t})=>{let n=e?.likes?.length||0,r=e?.comment_count||0;return(0,v.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,v.jsx)(T,{count:n,color:t,children:(0,v.jsx)(u,{className:`h-4 w-4`})}),e.comments_enabled&&(0,v.jsx)(T,{count:r,color:t,children:(0,v.jsx)(g,{className:`h-4 w-4`})})]})},D=({slug:e,children:t,className:n})=>(0,v.jsx)(a,{to:`/p/${e}`,prefetch:`intent`,className:(0,_.default)(n),children:t}),O=({color:e,fontFamily:t,bgColor:n})=>{let{t:r}=i(),{classes:a}=l();return(0,v.jsxs)(`div`,{className:(0,_.default)(a.radius,`flex w-fit items-center space-x-1 rounded px-2 py-1`),style:{backgroundColor:n},children:[(0,v.jsx)(d,{style:{color:e},className:`h-3 w-3`}),(0,v.jsx)(s,{as:`span`,size:`sm`,fontFamily:t,fontFamilyv2:t,weight:`light`,color:e,children:r(`posts.premium`)})]})}
3,k=({tag:e,bgColor:t,font:n,textColor:r,to:i,text:o,radiusClass:c})=>(0,v.jsxs)(`div`,{className:`relative`,children:[(0,v.jsx)(a,{to:i,style:{backgroundColor:t,opacity:.8},className:(0,_.default)(c,`w-fit cursor-pointer px-4 py-2 text-xs text-white transition-all hover:bg-sky-950`),children:(0,v.jsx)(s,{as:`span`,size:`xs`,fontFamily:n,fontFamilyv2:n,className:`whitespace-nowrap text-xs font-medium text-gray-50 opacity-0`,color:r,children:(0,v.jsx)(`span`,{className:`whitespace-nowrap pb-1 text-xs font-medium`,children:o})})}),(0,v.jsx)(s,{as:`span`,size:`xs`,fontFamily:n,fontFamilyv2:n,className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform pt-[1px] text-xs font-medium text-gray-50 sm:pt-0`,color:r,children:(0,v.jsx)(`span`,{className:`whitespace-nowrap pb-1 text-xs font-medium`,children:o})})]}),A=({tags:e,cardStyles:t,className:n})=>{let{classes:r}=l(),i=e.length,a=i>1,{font:o,tags_bg_color:s,tags_text_color:c}=t,u=i-1,d=(0,m.useMemo)(()=>a?e.slice(0,1):e,[a,e]);return(0,v.jsxs)(`div`,{className:(0,_.default)(`flex items-center gap-1`,n),children:[d.map(e=>(0,v.jsx)(k,{to:`/t/${p(e.display)}`,bgColor:s,font:o,textColor:c,text:e.display,radiusClass:r.radius},e.id)),a&&(0,v.jsx)(k,{to:`/t/${p(e[1].display)}`,bgColor:s,font:o,textColor:c,text:`+${u}`,radiusClass:r.radius})]})},j=({title:e,subtitle:t})=>(0,v.jsxs)(`div`,{className:`cursor-pointer space-y-1`,children:[(0,v.jsx)(s,{as:`h2`,size:e?.size||`2xl`,weight:`semibold`,className:`line-clamp-2 hover:underline sm:line-clamp-3`,fontFamily:e.fontFamily,fontFamilyv2:e.fontFamily,color:e.color,children:e.text}),t.text&&(0,v.jsx)(s,{as:`p`,size:t?.size||`md`,weight:`light`,className:`line-clamp-2 sm:line-clamp-3`,fontFamily:t.fontFamily,fontFamilyv2:t.fontFamily,color:t.color,children:t.text})]}),M=({post:e,cardStyles:t,orientation:n=`vertical`})=>{let r=e.audience===`premium`,i=c[t?.border_radius||`none`],a=n===`vertical`,o=n===`horizontal`;return(0,v.jsxs)(`div`,{suppressHydrationWarning:!0,className:(0,_.default)(`transparent h-full cursor-pointer overflow-hidden`,i,o&&`flex flex-col md:flex-row md:items-center items-start max-w-4xl`,a&&`flex flex-col`,t?.border_color&&`border`),style:{backgroundColor:t?.bg_color,borderColor:t?.border_color},children:[(0,v.jsxs)(`div`,{className:(0,_.default)(`relative w-full`,o&&`max-w-sm`),children:[t?.tags_enabled&&(0,v.jsx)(A,{tags:e.content_tags,cardStyles:t,className:`absolute left-4 top-4 z-10`}),(0,v.jsx)(D,{slug:e.slug,children:(0,v.jsx)(w,{alt:e.web_title,radiusClass:i,hasRadiusApplied:t?.is_image_radius_applied,src:e.image_url})})]}),(0,v.jsx)(`div`,{className:`w-full p-3`,children:(0,v.jsxs)(`div`,{className:`space-y-3`,children:[(0,v.jsx)(D,{slug:e.slug,children:(0,v.jsxs)(`div`,{className:`space-y-2`,children:[(0,v.jsxs)(`div`,{className:`flex flex-wrap-reverse items-center justify-between`,children:[t.timefields_enabled&&(0,v.jsx)(C,{fontFamily:t.font,color:t.timestamp_text_color,timestamp:e.override_scheduled_at}),t.likes_comments_enabled&&(0,v.jsx)(E,{post:e,color:t.likes_comments_color})]}),r&&(0,v.jsx)(O,{fontFamily:t.font,bgColor:t.premium_bg_color,color:t.premium_text_color}),(0,v.jsx)(j,{title:{size:o?`lg`:`xl`,text:e.web_title,fontFamily:t.heading_font_family,color:t.heading_font_color},subtitle:{size:o?`sm`:`md`,text:e?.web_subtitle||``,fontFamily:t.description_font_family,color:t.description_font_color}})]})}),(0,v.jsx)(b,{authors:e.authors,color:t.authors_text_color,bgColor:t.bg_color,font:t.font,showAuthorImage:t.show_author_image})]})})]})};export{D as a,b as c,O as i,j as n,w as o,A as r,C as s,M as t};
4//# sourceMappingURL=PostCardv3-C5or4sKe.js.map
5//# debugId=c8da70dc-6292-5d62-a195-42a2c954f89a

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.