"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react");require("@gem-sdk/core"),require("next/link");var l=require("../../../../../video/components/Video.js"),u=require("../../common/classes.js"),s=r.memo(s=>{let{url:t,aspectRatio:o}=s,i=r.useMemo(()=>t.includes("youtu.be")?"youtube":t.includes("vimeo")?"vimeo":"html5",[t]);return e.jsx("div",{className:`gp-w-full gp-h-full ${u.FEATURE_MEDIA_CENTER_CLASSES}`,children:e.jsx(l.default,{setting:{type:i,html5Url:t,youtubeUrl:t,vimeoUrl:t,preload:!0,controls:!0,aspectRatio:o},className:"gp-w-full"})})});exports.default=s;
