"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");function r(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}exports.getArticleVimeoStyle=(e,s)=>{let l={backgroundImage:`url(${s})`,...t.makeStyleResponsiveRatio("aspect",e)};return r(l)},exports.getArticleYoutubeStyle=(e,t)=>{let s={...e};return t&&(s={"background-image":`url(${t})`,...s}),r(s)},exports.getFallBackImageStyle=t=>{let s={...e.makeStyleResponsive("aspect",t)};return r(s)},exports.getHtml5Style=t=>{let s={...e.makeStyleResponsive("aspect",t)};return r(s)},exports.getIframeVimeoStyle=t=>{let s={...e.makeStyleResponsive("aspect",t),position:"absolute",height:"100%",width:"100%"};return r(s)},exports.getIframeYoutubeStyle=e=>{let t={...e,position:"absolute",height:"100%",width:"100%"};return r(t)},exports.getPreloadImageStyle=()=>r({"--op":0,"--z":-1,display:"none",width:"100%",height:"auto"}),exports.getStyle=(t,s)=>{let{aspectRatio:l}=t||{},o={...s,...e.makeStyleResponsive("aspect",l)};return r(o)},exports.getVimeoStyle=t=>{let s={...e.makeStyleResponsive("aspect",t)};return r(s)},exports.getYoutubeStyle=t=>{let s={...e.makeStyleResponsive("aspect",t)};return r(s)};
