UNPKG

@volvo-cars/css

Version:
3 lines 6 kB
var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var g=(o,t)=>{for(var f in t)i(o,f,{get:t[f],enumerable:!0})},k=(o,t,f,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of h(t))!y.call(o,s)&&s!==f&&i(o,s,{get:()=>t[s],enumerable:!(e=d(t,s))||e.enumerable});return o};var F=o=>k(i({},"__esModule",{value:!0}),o);var L={};g(L,{links:()=>U});module.exports=F(L);var l="QGZvbnQtZmFjZXtmb250LWZhbWlseTpWb2x2byBOb3Z1bTtmb250LXdlaWdodDozMDA7c3JjOnVybChodHRwczovL3d3dy52b2x2b2NhcnMuY29tL3N0YXRpYy9zaGFyZWQvZm9udHMvdm9sdm8tbm92dW0vdm9sdm8tbm92dW0tZ3JlZWstc2VtaS1saWdodC53b2ZmMilmb3JtYXQoIndvZmYyIik7Zm9udC1kaXNwbGF5OnN3YXA7dW5pY29kZS1yYW5nZTpVKzM3MC0zRkZ9QGZvbnQtZmFjZXtmb250LWZhbWlseTpWb2x2byBOb3Z1bTtmb250LXdlaWdodDozMDA7c3JjOnVybChodHRwczovL3d3dy52b2x2b2NhcnMuY29tL3N0YXRpYy9zaGFyZWQvZm9udHMvdm9sdm8tbm92dW0vdm9sdm8tbm92dW0tY3lyaWxsaWMtc2VtaS1saWdodC53b2ZmMilmb3JtYXQoIndvZmYyIik7Zm9udC1kaXNwbGF5OnN3YXA7dW5pY29kZS1yYW5nZTpVKzQ/P31AZm9udC1mYWNle2ZvbnQtZmFtaWx5OlZvbHZvIE5vdnVtO2ZvbnQtd2VpZ2h0OjMwMDtzcmM6dXJsKGh0dHBzOi8vd3d3LnZvbHZvY2Fycy5jb20vc3RhdGljL3NoYXJlZC9mb250cy92b2x2by1ub3Z1bS92b2x2by1ub3Z1bS1zZW1pLWxpZ2h0LndvZmYyKWZvcm1hdCgid29mZjIiKTtmb250LW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dm8tYnJvYWQvdm9sdm8tYnJvYWQtbGF0aW4tcmVzdC53b2ZmMilmb3JtYXQoIndvZmYyIik7Zm9udC1kaXNwbGF5OnN3YXA7dW5pY29kZS1yYW5nZTpVKzIwLTM2RixVKzUzMC1GQjAyfQ==";var c={"font-face.css":"css/v1/font-face.05a7ed4c.css","tokens.css":"css/v1/tokens.a3299985.css","styles.css":"css/v1/styles.831ef042.css","styles_md.css":"css/v1/styles_md.ff85772e.css","styles_xl.css":"css/v1/styles_xl.477cb2f4.css","styles_hover.css":"css/v1/styles_hover.3fbd1ade.css"};var v="https://www.volvocars.com/static/shared/pkg/";function m({fonts:o=!0,tokens:t=!0}={}){return([f])=>f==="font-face.css"?o:f.endsWith("tokens.css")?t:!0}var N={hover:"(hover: hover)",md:"(min-width: 30rem)",lg:"(min-width: 64rem)",xl:"(min-width: 100rem)"},w=N;function u(o){let t=o.split("_").pop()?.replace(".css","");return w[t]}var U=({base:o=v,filter:t}={})=>{o&&typeof o!="string"&&(o=o.href),typeof o=="string"&&o!==""&&!o.endsWith("/")&&(o+="/");let f=Object.entries(c).filter(m(t)).flatMap(([e,s])=>{let r={href:o+s,rel:"stylesheet",crossOrigin:"anonymous"},n=u(e);n&&(r.media=n);let a={...r,rel:"preload",as:"style"};return r["data-volvo-css-name"]=e,e==="font-face.css"&&t?.preload!==!1?{...r,href:`data:text/css;base64,${l}`}:t?.preload===!1?r:[a,r]}).sort((e,s)=>e.rel==="preload"&&s.rel==="preload"?0:e.rel==="preload"?-1:1);return f.toString=function(){let s="";for(let r of this){let n=Object.entries(r).map(([a,p])=>`${a}="${p}"`).join(" ");s+=`<link ${n} /> `}return s},f};0&&(module.exports={links}); //# sourceMappingURL=links.server.cjs.map