"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),system=require("@gem-sdk/system");const DEFAULT_CLASS="feature-video gp-w-full gp-h-full gp-relative",DEFAULT_ALLOW="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",Video=({src:e,alt:t,style:r,autoplay:s,controls:a,aspectRatio:c,allowfullscreen:l,frameborder:o="0",allow:i=DEFAULT_ALLOW,className:p=DEFAULT_CLASS})=>{let m=()=>({[p]:!0}),u=()=>({...core.makeStyleResponsive("aspect",c)}),y=()=>({src:e,alt:t,allow:i,frameborder:o,...r,...s?{autoplay:s}:{},...a?{controls:a}:{},...l?{allowfullscreen:l}:{}}),d=system.createAttr(y()),L=system.createStyle(u()),A=system.createClass(m());return core.template`
    <iframe
      ${{...d}}
      style="${L}"
      class="${A}"
    >
    </iframe>
  `};exports.default=Video;
