UNPKG

@volvo-cars/css

Version:
3 lines 582 B
import{a as e,b as p,c as f,d as m}from"./chunk-G3C4LGWM.js";import"./chunk-BBIFT7L4.js";var g=({base:t=p,filter:c}={})=>{t&&typeof t!="string"&&(t=t.href),typeof t=="string"&&t!==""&&!t.endsWith("/")&&(t+="/");let s=Object.entries(e).filter(f(c)).map(([i,r])=>{let n={rel:"stylesheet",href:t+r,"data-volvo-css-name":i,crossOrigin:"anonymous"},o=m(i);return o&&(n.media=o),n});return s.toString=function(){let r="";for(let n of this){let o=Object.entries(n).map(([l,k])=>`${l}="${k}"`).join(" ");r+=`<link ${o} /> `}return r},s};export{g as links}; //# sourceMappingURL=links.js.map