"use strict";function _typeof(e){return _typeof="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},_typeof(e)}module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===_typeof(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}({5:function(e,t,r){Component({options:{addGlobalClass:!0,pureDataPattern:/^_/,multipleSlots:!0},properties:{tabs:{type:Array,value:[]},tabClass:{type:String,value:""},containerStyle:{type:String,value:""},swiperClass:{type:String,value:""},swiperStyle:{type:String,value:""},activeClass:{type:String,value:""},tabUnderlineColor:{type:String,value:"#4080FF"},tabActiveTextColor:{type:String,value:"#000000"},tabInactiveTextColor:{type:String,value:"#000000"},tabBackgroundColor:{type:String,value:"#ffffff"},activeTab:{type:Number,value:0},swipeable:{type:Boolean,value:!0},animation:{type:Boolean,value:!0},duration:{type:Number,value:500}},data:{currentView:0},observers:{activeTab:function(e){var t=this.data.tabs.length;if(0!==t){var r=e-1;r<0&&(r=0),r>t-1&&(r=t-1),this.setData({currentView:r})}}},lifetimes:{created:function(){}},methods:{handleTabClick:function(e){var t=e.currentTarget.dataset.index;this.setData({activeTab:t}),this.triggerEvent("tabclick",{index:t})},handleSwiperChange:function(e){var t=e.detail.current;this.setData({activeTab:t}),this.triggerEvent("change",{index:t})}}})}});