import"../../node_modules/prop-types/index.js";import e,{useEffect as t}from"react";import{p as r}from"../../_virtual/index.js_commonjs-module";var o=function(r){var o=r.url,n=r.width,a=r.height,i=r.autoPlay,l=r.classes;r.editorMode,t((function(){}),[o]);var p=function(e){if(null==e||""==e)return e;var t=e;return t=(t=t.replace("/watch?v=","/embed/")).replace("https://youtu.be/","https://www.youtube.com/embed/")};return e.createElement("div",{className:"h-100 "+(l||"")},null==o?e.createElement(e.Fragment,null):e.createElement("div",{className:"video-wrapper"},o.indexOf("youtu",0)>=0?e.createElement(e.Fragment,null,e.createElement("iframe",{width:n||"100%",height:a||"376",src:p(o),frameBorder:"0",allow:"accelerometer; "+(!0===i||"true"===i?"autoplay;":"")+" encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})):e.createElement("video",{width:n||"100%",height:a||"100%",loop:!0,controls:!0,autoPlay:i||!0,muted:!0},e.createElement("source",{src:o,type:"video/mp4"}),e.createElement("source",{src:o,type:"video/ogg"}),e.createElement("source",{src:o,type:"video/webm"}),e.createElement("object",{data:o,width:"470",height:"255"}))),e.createElement("style",{jsx:!0},"\n                            .video-wrapper {\n                                position: relative;\n                            }\n\n                            .video-wrapper::after {\n                                content: '';\n                                position: absolute;\n                                background-color: #EFF3F8;\n                                z-index: -1;\n                                border-radius: 5px;\n                                transition: all 0.2s ease;\n                                left: 42px;\n                                top: 42px;\n                                right: 0px;\n                                bottom: -15px;\n                            }\n                        "))};o.propTypes={width:r.exports.string,height:r.exports.string,mediaType:r.exports.string,url:r.exports.string,autoPlay:r.exports.bool};export{o as Video};
//# sourceMappingURL=Video.js.map
