(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-video/app-video"],{"751ce":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var o=function(){var t=this,e=t.$createElement;t._self._c},i=[]},"76e2":function(t,e,n){},"96bc":function(t,e,n){"use strict";n.r(e);var r=n("f409"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},f32d:function(t,e,n){"use strict";var r=n("76e2"),o=n.n(r);o.a},f3d4:function(t,e,n){"use strict";n.r(e);var r=n("751ce"),o=n("96bc");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("f32d");var u,c=n("f0c5"),a=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,"6fa1432b",null,!1,r["a"],u);e["default"]=a.exports},f409:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("0816"));function o(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}function i(t){if(t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var e=o();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var u=r?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=t[i]}return n.default=t,e&&e.set(t,n),n}var u={name:"app-video",data:function(){return{start:!1,fullScreen:!1,maxTop:0}},props:{hasAuto:{type:[Boolean,String,Number],default:function(){return!1}},hasCycle:{type:[Boolean,String,Number],default:function(){return!1}},picUrl:{type:String,default:function(){return""}},url:{type:String,default:function(){return""}},width:{type:String,default:function(){return"750rpx"}},height:{type:String,default:function(){return"422rpx"}}},methods:{fullscreenChange:function(t){this.fullScreen=t.detail.fullScreen},play:function(){var t=this;this.$nextTick().then((function(){t.start=!0})),r.trigger(this.$const.EVENT_VIDEO_END),this.$emit("videoStart",!0),r.on(this.$const.EVENT_VIDEO_END,!0).then((function(){t.start=!1,t.$emit("videoStart",!1)}))},autoPlay:function(){var e=this,n=null;n=t.createSelectorQuery().in(this),n.select("#video").boundingClientRect((function(t){t&&t.top>0&&t.top<500&&e.play()})).exec()},autoEnd:function(){var t=this,e=null;e=this.createSelectorQuery(),e.select(".video").boundingClientRect(),e.selectViewport().scrollOffset(),e.exec((function(e){(e[0].top<=-200||e[0].top>=t.maxTop-57)&&r.trigger(t.$const.EVENT_VIDEO_END)}))},preventD:function(){},error:function(){}},computed:{scrollTop:function(){return this.$store.state.page.scrollTop}},created:function(){this.maxTop=t.getSystemInfoSync().windowHeight},watch:{scrollTop:{handler:function(){this.start&&!this.fullScreen&&this.$utils.throttle(this.autoEnd,500),!this.start&&this.hasAuto&&this.$utils.throttle(this.autoPlay,500)},immediate:!0}}};e.default=u}).call(this,n("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-video/app-video-create-component',
    {
        'components/page-component/app-video/app-video-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("f3d4"))
        })
    },
    [['components/page-component/app-video/app-video-create-component']]
]);
