import{L_ as s}from"./shared-0-C4kdVF7Y.js";import{Ei as e,ki as a}from"./vendor-frame-CwiylG4Y.js";import{nn as i}from"./vendor-all-2-BJdkbLSj.js";import{S as l}from"./shared-frame-DbQbH4Yr.js";var r=a(),d="relative [clip-path:polygon(0_0,calc(100%-16px)_0,100%_16px,100%_100%,0_100%)]";function t(){return(0,r.jsxs)("span",{"aria-hidden":!0,className:"pointer-events-none absolute right-0 top-0 z-[1] h-4 w-4",children:[(0,r.jsx)("span",{className:"absolute inset-0 [filter:drop-shadow(-1px_2px_1px_var(--cds-shadow-color))_drop-shadow(-3px_3px_5px_var(--cds-shadow-color))]",children:(0,r.jsx)("span",{className:"absolute inset-0 rounded-bl-[2px] bg-surface-2 group-hover:bg-surface-1 [clip-path:polygon(0_0,100%_100%,0_100%)]"})}),(0,r.jsx)("span",{className:"absolute inset-0 bg-surface-2 group-hover:bg-surface-1 [clip-path:polygon(15px_14.5px,16.5px_16px,15px_16px)]"}),(0,r.jsx)("span",{className:"absolute inset-0 bg-alpha-2 [clip-path:polygon(0px_-1px,17px_16px,14.59px_16px,0px_1.41px)]"})]})}function c({count:s=6,columns:a="two",variant:d="text",silent:c=!1,dogEar:n=!1,withSourceBadge:o=!1,className:h}){return(0,r.jsxs)("div",{role:c?void 0:"status","aria-hidden":c||void 0,className:h,children:[!c&&(0,r.jsx)("span",{className:"sr-only",children:(0,r.jsx)(i,{defaultMessage:"Loading",id:"iFsDVRnIHW"})}),(0,r.jsx)("div",{"aria-hidden":!0,className:"three"===a?"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3":"grid auto-rows-fr grid-cols-1 gap-3 md:grid-cols-2 md:gap-6",children:Array.from({length:s}).map((s,a)=>"thumbnail"===d?(0,r.jsxs)("div",{className:e("flex flex-col rounded-card shadow-card-ring [--cds-ring-inner:1px] [--cds-ring-outer:0px]",n?"bg-surface-2":"bg-surface-1",n&&"relative [clip-path:polygon(0_0,calc(100%-16px)_0,100%_16px,100%_100%,0_100%)]"),children:[n?(0,r.jsx)(x,{withSourceBadge:o}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-[164px]"}),(0,r.jsx)("div",{className:"mx-px border-t border-alpha-1"}),(0,r.jsxs)("div",{className:"flex flex-col gap-xs p-lg pt-md",children:[(0,r.jsx)("div",{className:"flex h-5 items-center",children:(0,r.jsx)(l,{height:14,width:"70%"})}),(0,r.jsx)("div",{className:"flex h-4 items-center",children:(0,r.jsx)(l,{height:11,width:"50%"})})]})]}),n&&(0,r.jsx)(t,{})]},a):(0,r.jsxs)("div",{className:"flex h-[140px] flex-col gap-md rounded-card bg-surface-1 p-lg shadow-card-ring [--cds-ring-inner:1px] [--cds-ring-outer:0px]",children:[(0,r.jsx)(l,{height:16,width:"60%"}),(0,r.jsxs)("div",{className:"flex flex-grow flex-col gap-xs",children:[(0,r.jsx)(l,{height:12}),(0,r.jsx)(l,{height:12,width:"85%"})]}),(0,r.jsx)(l,{height:10,width:100,className:"mt-auto"})]},a))})]})}function x({withSourceBadge:a}){const i=s("__gb__2387839550"),d=i?"text-caption":"text-footnote",t=(0,r.jsx)("div",{className:"flex h-[1lh] items-center text-body",children:(0,r.jsx)(l,{height:14,width:"70%"})}),c=(0,r.jsx)("div",{className:e("flex h-[1lh] items-center",d),children:(0,r.jsx)(l,{height:11,width:"50%"})});return i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"relative h-[120px]",children:a&&(0,r.jsx)("span",{"data-size":"sm",className:"absolute left-3 top-3 inline-flex h-control-nested w-12 items-center",children:(0,r.jsx)(l,{height:"100%",width:"100%",className:"rounded-chip"})})}),(0,r.jsx)("div",{className:"mx-px border-t border-alpha-1"}),(0,r.jsxs)("div",{className:"flex flex-col gap-xs p-3.5",children:[t,c,(0,r.jsx)("div",{className:"flex h-[1lh] items-center text-caption",children:(0,r.jsx)(l,{height:11,width:"85%"})})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-[120px]"}),(0,r.jsx)("div",{className:"mx-px border-t border-alpha-1"}),(0,r.jsxs)("div",{className:"flex flex-col gap-xs p-3.5",children:[t,c,a&&(0,r.jsx)("div",{children:(0,r.jsx)("span",{"data-size":"sm",className:"inline-flex h-control-nested w-12 items-center align-middle",children:(0,r.jsx)(l,{height:"100%",width:"100%",className:"rounded-chip"})})})]})]})}export{d as n,t as r,c as t};