!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,r||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}System.register(["./plyr.min-legacy-c4ce36fa.js","./index-legacy-33e7c04a.js"],(function(e,t){"use strict";var n,i,o,l,a,s;return{setters:[function(e){n=e.P},function(e){i=e.d,o=e.p,l=e.g,a=e.at,s=e.h}],execute:function(){var t=document.createElement("style");t.textContent="._video-container_1hxfx_1{position:relative;width:100%;--plyr-color-main: var(--k-primary)}._video-container_1hxfx_1 video{width:100%}._video-container_1hxfx_1 .video-back{position:absolute;left:.53333rem;top:.53333rem;color:#fff;z-index:99;font-size:.64rem;width:.8rem;height:.8rem;background-color:rgba(0,0,0,.5);border-radius:50%;padding:.10667rem .13333rem .10667rem .08rem}._video-container_1hxfx_1 .plyr__poster{background-size:cover}._video-container_1hxfx_1 .plyr__control--overlaid{border:.02667rem solid #fff;background-color:rgba(0,0,0,.2)!important}._video-container_1hxfx_1 .plyr--video .plyr__control:hover{background-color:transparent!important}._video-container_1hxfx_1 ._video_1hxfx_1{position:relative}._loadingVideo_1hxfx_35{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.9);z-index:10}\n",document.head.appendChild(t);var c="_video-container_1hxfx_1",u="_video_1hxfx_1",p="_loadingVideo_1hxfx_35";e("M",i({name:"m-video",props:{setting:{type:Object,default:function(){return{}}},controls:Boolean,height:String,src:{type:String,default:""},poster:{type:String,default:""},styleValue:{type:Object,default:function(){return{}}},preload:{type:String,default:"auto"},currentTime:{type:Boolean,default:!0},playsinline:{type:Boolean,default:!0},preLoading:{type:Boolean,default:!0}},emits:["exitfullscreen","play","ready","enterfullscreen"],data:function(){return{player:null,loading:!0}},mounted:function(){this.loading=this.preLoading,this._init()},methods:{_init:function(){var e=this,t=["play-large","play","progress","captions","fullscreen"];this.currentTime&&t.push("current-time");var i=r(r({controls:t},this.setting),{},{invertTime:!1});o().iPhone&&(i.fullscreen={enabled:!0,fallback:"force",iosNative:!0}),this.player=new n(this.$refs.video,i),this.player.elements.container&&(this.player.elements.container.style.height=this.height||"210px"),"none"===this.preload&&(this.loading=!1),this.player.on("loadedmetadata",(function(){e.loading=!1,e.domPlayVisibility(!1)})),this.player.on("loadeddata",(function(){e.$emit("ready",e.player)})),this.player.on("play",(function(){e.$emit("play",e.player)})),this.player.on("enterfullscreen",(function(){e.$emit("enterfullscreen")})),this.player.on("exitfullscreen",(function(){console.log("exitfullscreen"),e.$emit("exitfullscreen")}))},domPlayVisibility:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(".plyr__controls"),r=document.querySelector(".plyr__control--overlaid");e?(null==t||t.setAttribute("style","display:none"),null==r||r.setAttribute("style","display:none")):(null==t||t.removeAttribute("style"),setTimeout((function(){null==r||r.removeAttribute("style")}),200))},onStop:function(){this.player.stop()},onExitScreen:function(){this.player.fullscreen.active&&this.player.fullscreen.exit()},onPlay:function(){var e;null===(e=this.player)||void 0===e||e.play()}},unmounted:function(){var e;null===(e=this.player)||void 0===e||e.destroy()},render:function(){return l("div",{class:c},[l("video",{ref:"video",class:u,src:this.src,playsinline:this.playsinline,poster:this.poster,preload:this.preload,style:r({},this.styleValue)},null),this.loading&&l("div",{class:p,style:{height:this.height||"210px"}},[l(a,{size:36,color:"#FF8057",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:function(){return[s("加载中...")]}})])])}}))}}}))}();
