(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/chengpeng-audio/free-audio"],{"0c7c":function(t,n,e){"use strict";e.r(n);var i=e("a8d8"),u=e("fd34");for(var o in u)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(o);e("96bd");var a=e("828b"),r=Object(a["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports},"783a":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{context:null,currentTime:0,duration:100,status:!1}},props:{url:String,activeColor:{type:String,default:"#0E7EFC"},startPic:String,endPic:String,audioId:[String,Number]},created:function(){var n=this;this.context=t.createInnerAudioContext(),this.context.src=this.url,this.onTimeUpdate(),this.onCanplay(),this.onEnded(),t.$on("stop",(function(t){t&&t!=n.audioId?(n.context.stop(),n.status=!1):t||(n.context.stop(),n.status=!1)}))},methods:{start:function(n){this.status?(this.context.pause(),this.status=!this.status):(t.$emit("stop",n),this.context.play(),this.status=!this.status)},onCanplay:function(){var t=this;this.context.onCanplay((function(){t.context.duration,setTimeout((function(){t.duration=t.context.duration}),1e3)}))},onTimeUpdate:function(){var t=this;this.context.onTimeUpdate((function(){Number.isFinite(t.context.duration)?(t.duration=t.context.duration,t.currentTime=t.context.currentTime):(t.context.currentTime=Number.MAX_SAFE_INTEGER,t.context.currentTime=0)}))},onEnded:function(){var t=this;this.context.onEnded((function(){t.status=!1,t.currentTime=0}))},changeAudio:function(t){var n=this.context.paused;this.context.pause(),this.context.seek(t.detail.value),n||this.context.play()},getTime:function(t){var n=parseInt(t/60),e=t%60;return this.towNum(n)+":"+this.towNum(e)},towNum:function(t){return t>=10?t:"0"+t}}};n.default=e}).call(this,e("df3c")["default"])},"96bd":function(t,n,e){"use strict";var i=e("a3a7"),u=e.n(i);u.a},a3a7:function(t,n,e){},a8d8:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.url?t.duration.toFixed(0):null),i=t.url?t.currentTime.toFixed(0):null,u=t.url?t.getTime(Math.round(t.currentTime)):null;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i,m0:u}})},u=[]},fd34:function(t,n,e){"use strict";e.r(n);var i=e("783a"),u=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=u.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/chengpeng-audio/free-audio-create-component',
    {
        'components/chengpeng-audio/free-audio-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("0c7c"))
        })
    },
    [['components/chengpeng-audio/free-audio-create-component']]
]);
