(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/chengpeng-audio/free-audio"],{1016:function(t,n,e){"use strict";e.r(n);var i=e(1017),r=e(1019);for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e(1021);var o,c=e(34),a=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],o);a.options.__file="components/chengpeng-audio/free-audio.vue",n["default"]=a.exports},1017:function(t,n,e){"use strict";e.r(n);var i=e(1018);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},1018:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return r})),e.d(n,"staticRenderFns",(function(){return o})),e.d(n,"recyclableRender",(function(){return u})),e.d(n,"components",(function(){return i}));var r=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,r=t.url?t.getTime(Math.round(t.currentTime)):null;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i,m0:r}})},u=!1,o=[];r._withStripped=!0},1019:function(t,n,e){"use strict";e.r(n);var i=e(1020),r=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=r.a},1020: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(2)["default"])},1021:function(t,n,e){"use strict";e.r(n);var i=e(1022),r=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=r.a},1022:function(t,n,e){}}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/chengpeng-audio/free-audio.js.map
;(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__('2')['createComponent'](__webpack_require__(1016))
        })
    },
    [['components/chengpeng-audio/free-audio-create-component']]
]);
