"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 s=require("../../../../../video/components/Video.js"),l=require("../../common/classes.js"),t=r.memo(t=>{let{url:u,aspectRatio:o,thumbnail:i}=t,c=r.useMemo(()=>u.includes("youtu.be")?"youtube":u.includes("vimeo")?"vimeo":"html5",[u]);return e.jsx("div",{className:`gp-w-full gp-h-full ${l.FEATURE_MEDIA_CENTER_CLASSES}`,children:e.jsx(s.default,{setting:{type:c,html5Url:u,youtubeUrl:u,vimeoUrl:u,preload:!0,controls:!0,aspectRatio:o,poster:i?{src:i}:void 0},className:"gp-w-full"})})});exports.default=t;
