"use strict";var e=require("@gem-sdk/core");function t(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}exports.getArticleVimeoClasses=(p,g)=>{let l="gp-relative gp-bg-cover gp-bg-center gp-lite-vimeo-embed-article",s=e.getResponsiveValueByScreen(g,"desktop"),a=e.getResponsiveValueByScreen(g,"tablet"),o=e.getResponsiveValueByScreen(g,"mobile");return p||s&&"auto"!=s||(l+=" !gp-aspect-video"),p||a&&"auto"!=a||(l+=" tablet:!gp-aspect-video"),p||o&&"auto"!=o||(l+=" mobile:!gp-aspect-video"),{...t(l)}},exports.getArticleYoutubeClasses=(e,p)=>{let g="gp-relative gp-bg-cover gp-bg-center gp-lite-youtube-embed-article";return e||(g+=" gp_lazybg"),p&&(g+=` ${p}`),{...t(g)}},exports.getButtonThumbnailClasses=()=>({...t("gp-absolute gp-left-1/2 gp-top-1/2 gp-flex gp-aspect-[56/32] gp-w-14 -gp-translate-x-1/2 -gp-translate-y-1/2 gp-items-center gp-justify-center gp-rounded gp-bg-black/80 gp-transition-colors hover:gp-bg-[#ef0800]")}),exports.getButtonVimeoClasses=e=>{let p="gp-absolute gp-left-1/2 gp-top-1/2 gp-flex gp-aspect-[56/32] gp-w-14 -gp-translate-x-1/2 -gp-translate-y-1/2 gp-items-center gp-justify-center gp-rounded gp-bg-black/80 gp-transition-colors hover:gp-bg-[#ef0800] gp-z-10 gp-lite-vimeo-embed-button";return e&&(p+="  gp-invisible gp-opacity-0"),{...t(p)}},exports.getButtonYoutubeClasses=e=>{let p="gp-absolute gp-left-1/2 gp-top-1/2 gp-w-[68px] -gp-translate-x-1/2 -gp-translate-y-1/2 gp-lite-youtube-embed-button";return e?p+=" gp-opacity-0":p+=" gp-visible gp-opacity-100",{...t(p)}},exports.getClasses=({className:e,builderProps:p,isInstantLP:g,advancedCssClass:l})=>{let s=`!gp-max-w-none gp-bg-black gp-overflow-hidden [&_>_article]:gp-aspect-[var(--aspect)] tablet:[&_>_article]:gp-aspect-[var(--aspect-tablet,_var(--aspect))] mobile:[&_>_article]:gp-aspect-[var(--aspect-mobile,_var(--aspect-tablet,_var(--aspect)))] ${p?.uid}`;return g||(s+=" gp-relative"),e&&(s+=` ${e}`),l&&(s+=` ${l}`),{...p?.uid&&{[p.uid]:!0},...t(s)}},exports.getFallbackImageClasses=()=>({...t("gp-w-full gp-h-full gp-object-cover")}),exports.getIframeVimeoClasses=()=>({...t("gp-inset-0 gp-w-full gp-bg-black")}),exports.getIframeYoutubeClasses=e=>{let p="gp-inset-0 gp-w-full gp-bg-black  gp-h-full !gp-max-w-none";return e&&(p+=` ${e}`),{...t(p)}},exports.getImageThumbnailClasses=()=>({...t("gp-w-full gp-h-full gp-object-cover")}),exports.getImageVimeoClasses=e=>{let p="gp-h-full gp-w-full gp-relative gp-top-0 gp-left-0 gp-z-9";return e&&(p+="  gp-invisible gp-opacity-0"),{...t(p)}},exports.getImageYoutubeClasses=()=>({...t("gp-invisible gp-w-full gp-h-full gp_lazyforbg")}),exports.getVideoYoutubeClasses=(e,p)=>{let g="gp-w-full";return e&&(g+=` ${e}`),p||(g+=" gp-lazyload-video"),{...t(g)}},exports.getWrapThumbnailClasses=e=>{let p="gp-absolute gp-top-0 gp-left-0  gp-w-full gp-thumbnail-video gp-h-full";return e&&(p+=" gp-hidden"),{...t(p)}},exports.getYoutubeContentClasses=()=>({...t("gp-absolute gp-left-0 gp-top-0 gp-h-full gp-w-full")});
