{"version":3,"sources":["webpack:///./node_modules/vant/es/tab/index.js","webpack:///./node_modules/vant/es/utils/dom/raf.js","webpack:///./node_modules/vant/es/utils/router.js","webpack:///./node_modules/vant/es/tabs/utils.js","webpack:///./node_modules/vant/es/utils/dom/style.js","webpack:///./node_modules/vant/es/utils/dom/event.js","webpack:///./node_modules/vant/es/mixins/bind-event.js","webpack:///./node_modules/vant/es/utils/constant.js","webpack:///./node_modules/vant/es/utils/dom/scroll.js","webpack:///./node_modules/vant/es/tabs/Title.js","webpack:///./node_modules/vant/es/mixins/touch.js","webpack:///./node_modules/vant/es/tabs/Content.js","webpack:///./node_modules/vant/es/sticky/index.js","webpack:///./node_modules/vant/es/tabs/index.js","webpack:///./node_modules/vant/es/mixins/relation.js","webpack:///./node_modules/vant/es/utils/index.js","webpack:///./node_modules/vant/es/tabs/style/index.js","webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///./node_modules/vant/es/utils/create/bem.js","webpack:///./node_modules/vant/es/utils/format/string.js","webpack:///./node_modules/vant/es/mixins/slots.js","webpack:///./node_modules/vant/es/utils/create/component.js","webpack:///./node_modules/vant/es/utils/deep-assign.js","webpack:///./node_modules/vant/es/locale/lang/zh-CN.js","webpack:///./node_modules/vant/es/locale/index.js","webpack:///./node_modules/vant/es/utils/create/i18n.js","webpack:///./node_modules/vant/es/utils/create/index.js","webpack:///./node_modules/vant/es/tab/style/index.js","webpack:///./node_modules/vant/es/utils/validate/number.js","webpack:///./node_modules/vant/es/utils/format/unit.js"],"names":["_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_utils__WEBPACK_IMPORTED_MODULE_1__","_mixins_relation__WEBPACK_IMPORTED_MODULE_2__","_utils_router__WEBPACK_IMPORTED_MODULE_3__","_createNamespace","Object","createComponent","bem","__webpack_exports__","mixins","props","name","Number","String","title","disabled","Boolean","data","inited","computed","computedName","this","index","isActive","parent","currentName","watch","parent.currentIndex","setLine","mounted","slots","renderTitle","$refs","render","h","shouldRender","lazyRender","Content","push","ref","animated","attrs","role","aria-hidden","class","inactive","directives","value","global","d","raf","___WEBPACK_IMPORTED_MODULE_0__","prev","Date","now","fallback","fn","curr","ms","Math","max","id","setTimeout","root","window","iRaf","requestAnimationFrame","cancelAnimationFrame","clearTimeout","call","route","router","config","to","url","replace","promise","catch","err","location","href","routeProps","scrollLeftTo","el","duration","count","from","scrollLeft","frames","round","animate","isHidden","element","getComputedStyle","display","offsetParent","supportsPassive","utils","opts","defineProperty","get","addEventListener","e","on","target","event","handler","passive","capture","off","removeEventListener","BindEventMixin","bind","binded","unbind","activated","deactivated","beforeDestroy","BORDER","BORDER_TOP_BOTTOM","overflowScrollReg","getScrollEventTarget","rootParent","node","tagName","nodeType","_window$getComputedSt","overflowY","test","_window$getComputedSt2","parentNode","htmlOverflowY","getScrollTop","scrollTop","pageYOffset","setScrollTop","scrollTo","scrollX","getRootScrollTop","document","documentElement","body","setRootScrollTop","getElementTop","getBoundingClientRect","top","create","Title","type","color","ellipsis","scrollable","activeColor","inactiveColor","swipeThreshold","style","isCard","borderColor","backgroundColor","titleColor","flexBasis","methods","onClick","$emit","innerHTML","appendChild","arguments","aria-selected","active","complete","click","van-ellipsis","MIN_DISTANCE","getDirection","x","y","TouchMixin","vue_runtime_esm","extend","direction","touchStart","resetTouchStatus","startX","touches","clientX","startY","clientY","touchMove","touch","deltaX","deltaY","offsetX","abs","offsetY","Content_bem","MIN_SWIPE_DISTANCE","swipeable","currentIndex","transform","transitionDuration","listeners","touchstart","touchmove","touchend","onTouchEnd","touchcancel","renderChildren","$createElement","esm_extends","sticky_createNamespace","sticky_createComponent","sticky_bem","sticky","scroller","$el","onScroll","zIndex","container","offsetTop","default","fixed","height","_this","offsetHeight","topToPageTop","emitScrollEvent","isFixed","bottomToPageTop","distanceToBottom","tabs_createNamespace","tabs_createComponent","tabs_bem","relation","model","prop","background","lineWidth","lineHeight","titleActiveColor","titleInactiveColor","border","position","lineStyle","children","length","navStyle","activeTab","setCurrentIndexByName","$nextTick","scrollIntoView","stickyFixed","ceil","onShow","_this2","_this3","shouldAnimate","titles","width","offsetWidth","left","offsetLeft","unit","borderRadius","matched","filter","tab","defaultIndex","setCurrentIndex","findAvailableTab","shouldEmitChange","diff","_this$children$index","immediate","nav","_this4","params","_ref","_this5","Nav","map","item","refInFor","$router","Wrap","scroll","change","ChildrenMixin","ParentMixin","vue__WEBPACK_IMPORTED_MODULE_0__","flattenVNodes","vnodes","result","traverse","forEach","vnode","_parent","options","_inject","_computed","indexKey","inject","bindRelation","indexOf","concat","sort","a","b","$vnode","provide","isServer","isDef","isObj","prototype","$isServer","undefined","object","path","keys","split","key","_extends","assign","i","source","hasOwnProperty","apply","ELEMENT","MODS","join","symbol","bem_prefix","mods","Array","isArray","ret","createBEM","camelizeRE","camelize","str","_","c","toUpperCase","SlotsMixin","$slots","$scopedSlots","scopedSlot","install","Vue","component","unifySlots","context","scopedSlots","transformFunctionComponent","pure","functional","sfc","deep_assign_hasOwnProperty","assignKey","val","deepAssign","zh_CN","tel","save","confirm","cancel","delete","loading","telEmpty","nameEmpty","confirmDelete","telInvalid","vanContactCard","addText","vanContactList","vanPagination","next","vanPullRefresh","pulling","loosing","vanSubmitBar","label","vanCoupon","valid","unlimited","discount","_discount","condition","_condition","vanCouponCell","tips","_count","vanCouponList","empty","exchange","close","enable","placeholder","vanAddressEdit","area","postal","areaEmpty","addressEmpty","postalEmpty","defaultAddress","telPlaceholder","namePlaceholder","areaPlaceholder","vanAddressEditDetail","vanAddressList","add","proto","defineReactive","util","zh-CN","locale","messages","$vantMessages","$vantLang","use","lang","_this$add","createI18N","prefix","message","_len","args","_key","createNamespace","isNumber","addUnit"],"mappings":"kHAAA,IAAAA,EAAAC,EAAA,QAAAC,EAAAD,EAAA,QAAAE,EAAAF,EAAA,QAAAG,EAAAH,EAAA,QAKAI,EAAuBC,OAAAJ,EAAA,KAAAI,CAAe,OACtCC,EAAAF,EAAA,GACAG,EAAAH,EAAA,GAEeI,EA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AO,SAAA4a,EAAA7X,GACP,sBAAAiF,KAAAjF,GCCO,SAAA8X,EAAA9X,GACP,GAAO1C,OAAA4F,EAAA,KAAA5F,CAAK0C,GAKZ,OADAA,EAAAlC,OAAAkC,GACS6X,EAAQ7X,KAAA,KAAAA,EARjB/C,EAAAiD,EAAAzC,EAAA,sBAAAqa","file":"h5/js/chunk-c7c5fb32.9661f99b.js","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { createNamespace } from '../utils';\nimport { ChildrenMixin } from '../mixins/relation';\nimport { routeProps } from '../utils/router';\n\nvar _createNamespace = createNamespace('tab'),\n createComponent = _createNamespace[0],\n bem = _createNamespace[1];\n\nexport default createComponent({\n mixins: [ChildrenMixin('vanTabs')],\n props: _extends({}, routeProps, {\n name: [Number, String],\n title: String,\n disabled: Boolean\n }),\n data: function data() {\n return {\n inited: false\n };\n },\n computed: {\n computedName: function computedName() {\n return this.name || this.index;\n },\n isActive: function isActive() {\n return this.computedName === this.parent.currentName;\n }\n },\n watch: {\n // eslint-disable-next-line object-shorthand\n 'parent.currentIndex': function parentCurrentIndex() {\n this.inited = this.inited || this.isActive;\n },\n title: function title() {\n this.parent.setLine();\n }\n },\n mounted: function mounted() {\n if (this.slots('title')) {\n this.parent.renderTitle(this.$refs.title, this.index);\n }\n },\n render: function render(h) {\n var slots = this.slots,\n isActive = this.isActive;\n var shouldRender = this.inited || !this.parent.lazyRender;\n var Content = [shouldRender ? slots() : h()];\n\n if (slots('title')) {\n Content.push(h(\"div\", {\n \"ref\": \"title\"\n }, [slots('title')]));\n }\n\n if (this.parent.animated) {\n return h(\"div\", {\n \"attrs\": {\n \"role\": \"tabpanel\",\n \"aria-hidden\": !isActive\n },\n \"class\": bem('pane-wrapper', {\n inactive: !isActive\n })\n }, [h(\"div\", {\n \"class\": bem('pane')\n }, [Content])]);\n }\n\n return h(\"div\", {\n \"directives\": [{\n name: \"show\",\n value: isActive\n }],\n \"attrs\": {\n \"role\": \"tabpanel\"\n },\n \"class\": bem('pane')\n }, [Content]);\n }\n});","/**\n * requestAnimationFrame polyfill\n */\nimport { isServer } from '..';\nvar prev = Date.now();\n/* istanbul ignore next */\n\nfunction fallback(fn) {\n var curr = Date.now();\n var ms = Math.max(0, 16 - (curr - prev));\n var id = setTimeout(fn, ms);\n prev = curr + ms;\n return id;\n}\n/* istanbul ignore next */\n\n\nvar root = isServer ? global : window;\n/* istanbul ignore next */\n\nvar iRaf = root.requestAnimationFrame || fallback;\n/* istanbul ignore next */\n\nvar iCancel = root.cancelAnimationFrame || root.clearTimeout;\nexport function raf(fn) {\n return iRaf.call(root, fn);\n} // double raf for animation\n\nexport function doubleRaf(fn) {\n raf(function () {\n raf(fn);\n });\n}\nexport function cancelRaf(id) {\n iCancel.call(root, id);\n}","/**\n * Vue Router support\n */\nexport function route(router, config) {\n var to = config.to,\n url = config.url,\n replace = config.replace;\n\n if (to && router) {\n var promise = router[replace ? 'replace' : 'push'](to);\n /* istanbul ignore else */\n\n if (promise && promise.catch) {\n promise.catch(function (err) {\n /* istanbul ignore if */\n if (err.name !== 'NavigationDuplicated') {\n throw err;\n }\n });\n }\n } else if (url) {\n replace ? location.replace(url) : location.href = url;\n }\n}\nexport function functionalRoute(context) {\n route(context.parent && context.parent.$router, context.props);\n}\nexport var routeProps = {\n url: String,\n replace: Boolean,\n to: [String, Object]\n};","import { raf } from '../utils/dom/raf';\nexport function scrollLeftTo(el, to, duration) {\n var count = 0;\n var from = el.scrollLeft;\n var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);\n\n function animate() {\n el.scrollLeft += (to - from) / frames;\n\n if (++count < frames) {\n raf(animate);\n }\n }\n\n animate();\n}","export function isHidden(element) {\n return window.getComputedStyle(element).display === 'none' || element.offsetParent === null;\n}","import { isServer } from '..';\n// eslint-disable-next-line import/no-mutable-exports\nexport var supportsPassive = false;\n\nif (!isServer) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', {\n // eslint-disable-next-line getter-return\n get: function get() {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n });\n window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty\n } catch (e) {}\n}\n\nexport function on(target, event, handler, passive) {\n if (passive === void 0) {\n passive = false;\n }\n\n if (!isServer) {\n target.addEventListener(event, handler, supportsPassive ? {\n capture: false,\n passive: passive\n } : false);\n }\n}\nexport function off(target, event, handler) {\n if (!isServer) {\n target.removeEventListener(event, handler);\n }\n}\nexport function stopPropagation(event) {\n event.stopPropagation();\n}\nexport function preventDefault(event, isStopPropagation) {\n /* istanbul ignore else */\n if (typeof event.cancelable !== 'boolean' || event.cancelable) {\n event.preventDefault();\n }\n\n if (isStopPropagation) {\n stopPropagation(event);\n }\n}","/**\n * Bind event when mounted or activated\n */\nimport { on, off } from '../utils/dom/event';\nexport function BindEventMixin(handler) {\n function bind() {\n if (!this.binded) {\n handler.call(this, on, true);\n this.binded = true;\n }\n }\n\n function unbind() {\n if (this.binded) {\n handler.call(this, off, false);\n this.binded = false;\n }\n }\n\n return {\n mounted: bind,\n activated: bind,\n deactivated: unbind,\n beforeDestroy: unbind\n };\n}","// color\nexport var RED = '#ee0a24';\nexport var BLUE = '#1989fa';\nexport var GREEN = '#07c160';\nexport var WHITE = '#fff';\nexport var GRAY = '#c9c9c9';\nexport var GRAY_DARK = '#969799'; // border\n\nexport var BORDER = 'van-hairline';\nexport var BORDER_TOP = BORDER + \"--top\";\nexport var BORDER_LEFT = BORDER + \"--left\";\nexport var BORDER_RIGHT = BORDER + \"--right\";\nexport var BORDER_BOTTOM = BORDER + \"--bottom\";\nexport var BORDER_SURROUND = BORDER + \"--surround\";\nexport var BORDER_TOP_BOTTOM = BORDER + \"--top-bottom\";\nexport var BORDER_UNSET_TOP_BOTTOM = BORDER + \"-unset--top-bottom\";","// get nearest scroll element\n// http://w3help.org/zh-cn/causes/SD9013\n// http://stackoverflow.com/questions/17016740/onscroll-function-is-not-working-for-chrome\nvar overflowScrollReg = /scroll|auto/i;\nexport function getScrollEventTarget(element, rootParent) {\n if (rootParent === void 0) {\n rootParent = window;\n }\n\n var node = element;\n\n while (node && node.tagName !== 'HTML' && node.nodeType === 1 && node !== rootParent) {\n var _window$getComputedSt = window.getComputedStyle(node),\n overflowY = _window$getComputedSt.overflowY;\n\n if (overflowScrollReg.test(overflowY)) {\n if (node.tagName !== 'BODY') {\n return node;\n } // see: https://github.com/youzan/vant/issues/3823\n\n\n var _window$getComputedSt2 = window.getComputedStyle(node.parentNode),\n htmlOverflowY = _window$getComputedSt2.overflowY;\n\n if (overflowScrollReg.test(htmlOverflowY)) {\n return node;\n }\n }\n\n node = node.parentNode;\n }\n\n return rootParent;\n}\nexport function getScrollTop(element) {\n return 'scrollTop' in element ? element.scrollTop : element.pageYOffset;\n}\nexport function setScrollTop(element, value) {\n 'scrollTop' in element ? element.scrollTop = value : element.scrollTo(element.scrollX, value);\n}\nexport function getRootScrollTop() {\n return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\n}\nexport function setRootScrollTop(value) {\n setScrollTop(window, value);\n setScrollTop(document.body, value);\n} // get distance from element top to page top\n\nexport function getElementTop(element) {\n return (element === window ? 0 : element.getBoundingClientRect().top) + getRootScrollTop();\n}\nexport function getVisibleHeight(element) {\n return element === window ? element.innerHeight : element.getBoundingClientRect().height;\n}","import { createNamespace } from '../utils';\nvar bem = createNamespace('tab')[1];\nexport default {\n props: {\n type: String,\n color: String,\n title: String,\n isActive: Boolean,\n ellipsis: Boolean,\n disabled: Boolean,\n scrollable: Boolean,\n activeColor: String,\n inactiveColor: String,\n swipeThreshold: Number\n },\n computed: {\n style: function style() {\n var style = {};\n var color = this.color,\n isActive = this.isActive;\n var isCard = this.type === 'card'; // card theme color\n\n if (color && isCard) {\n style.borderColor = color;\n\n if (!this.disabled) {\n if (isActive) {\n style.backgroundColor = color;\n } else {\n style.color = color;\n }\n }\n }\n\n var titleColor = isActive ? this.activeColor : this.inactiveColor;\n\n if (titleColor) {\n style.color = titleColor;\n }\n\n if (this.scrollable && this.ellipsis) {\n style.flexBasis = 88 / this.swipeThreshold + \"%\";\n }\n\n return style;\n }\n },\n methods: {\n onClick: function onClick() {\n this.$emit('click');\n },\n renderTitle: function renderTitle(el) {\n var title = this.$refs.title;\n title.innerHTML = '';\n title.appendChild(el);\n }\n },\n render: function render() {\n var h = arguments[0];\n return h(\"div\", {\n \"attrs\": {\n \"role\": \"tab\",\n \"aria-selected\": this.isActive\n },\n \"class\": bem({\n active: this.isActive,\n disabled: this.disabled,\n complete: !this.ellipsis\n }),\n \"style\": this.style,\n \"on\": {\n \"click\": this.onClick\n }\n }, [h(\"span\", {\n \"ref\": \"title\",\n \"class\": {\n 'van-ellipsis': this.ellipsis\n }\n }, [this.title])]);\n }\n};","import Vue from 'vue';\nvar MIN_DISTANCE = 10;\n\nfunction getDirection(x, y) {\n if (x > y && x > MIN_DISTANCE) {\n return 'horizontal';\n }\n\n if (y > x && y > MIN_DISTANCE) {\n return 'vertical';\n }\n\n return '';\n}\n\nexport var TouchMixin = Vue.extend({\n data: function data() {\n return {\n direction: ''\n };\n },\n methods: {\n touchStart: function touchStart(event) {\n this.resetTouchStatus();\n this.startX = event.touches[0].clientX;\n this.startY = event.touches[0].clientY;\n },\n touchMove: function touchMove(event) {\n var touch = event.touches[0];\n this.deltaX = touch.clientX - this.startX;\n this.deltaY = touch.clientY - this.startY;\n this.offsetX = Math.abs(this.deltaX);\n this.offsetY = Math.abs(this.deltaY);\n this.direction = this.direction || getDirection(this.offsetX, this.offsetY);\n },\n resetTouchStatus: function resetTouchStatus() {\n this.direction = '';\n this.deltaX = 0;\n this.deltaY = 0;\n this.offsetX = 0;\n this.offsetY = 0;\n }\n }\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { createNamespace } from '../utils';\nimport { TouchMixin } from '../mixins/touch';\n\nvar _createNamespace = createNamespace('tabs'),\n createComponent = _createNamespace[0],\n bem = _createNamespace[1];\n\nvar MIN_SWIPE_DISTANCE = 50;\nexport default createComponent({\n mixins: [TouchMixin],\n props: {\n count: Number,\n duration: Number,\n animated: Boolean,\n swipeable: Boolean,\n currentIndex: Number\n },\n computed: {\n style: function style() {\n if (this.animated) {\n return {\n transform: \"translate3d(\" + -1 * this.currentIndex * 100 + \"%, 0, 0)\",\n transitionDuration: this.duration + \"s\"\n };\n }\n },\n listeners: function listeners() {\n if (this.swipeable) {\n return {\n touchstart: this.touchStart,\n touchmove: this.touchMove,\n touchend: this.onTouchEnd,\n touchcancel: this.onTouchEnd\n };\n }\n }\n },\n methods: {\n // watch swipe touch end\n onTouchEnd: function onTouchEnd() {\n var direction = this.direction,\n deltaX = this.deltaX,\n currentIndex = this.currentIndex;\n /* istanbul ignore else */\n\n if (direction === 'horizontal' && this.offsetX >= MIN_SWIPE_DISTANCE) {\n /* istanbul ignore else */\n if (deltaX > 0 && currentIndex !== 0) {\n this.$emit('change', currentIndex - 1);\n } else if (deltaX < 0 && currentIndex !== this.count - 1) {\n this.$emit('change', currentIndex + 1);\n }\n }\n },\n renderChildren: function renderChildren() {\n var h = this.$createElement;\n\n if (this.animated) {\n return h(\"div\", {\n \"class\": bem('track'),\n \"style\": this.style\n }, [this.slots()]);\n }\n\n return this.slots();\n }\n },\n render: function render() {\n var h = arguments[0];\n return h(\"div\", {\n \"class\": bem('content', {\n animated: this.animated\n }),\n \"on\": _extends({}, this.listeners)\n }, [this.renderChildren()]);\n }\n});","import { createNamespace, isDef } from '../utils';\nimport { BindEventMixin } from '../mixins/bind-event';\nimport { getScrollTop, getElementTop, getScrollEventTarget } from '../utils/dom/scroll';\n\nvar _createNamespace = createNamespace('sticky'),\n createComponent = _createNamespace[0],\n bem = _createNamespace[1];\n\nexport default createComponent({\n mixins: [BindEventMixin(function (bind) {\n if (!this.scroller) {\n this.scroller = getScrollEventTarget(this.$el);\n }\n\n bind(this.scroller, 'scroll', this.onScroll, true);\n this.onScroll();\n })],\n props: {\n zIndex: Number,\n container: null,\n offsetTop: {\n type: Number,\n default: 0\n }\n },\n data: function data() {\n return {\n fixed: false,\n height: 0,\n transform: 0\n };\n },\n computed: {\n style: function style() {\n if (!this.fixed) {\n return;\n }\n\n var style = {};\n\n if (isDef(this.zIndex)) {\n style.zIndex = this.zIndex;\n }\n\n if (this.offsetTop && this.fixed) {\n style.top = this.offsetTop + \"px\";\n }\n\n if (this.transform) {\n style.transform = \"translate3d(0, \" + this.transform + \"px, 0)\";\n }\n\n return style;\n }\n },\n methods: {\n onScroll: function onScroll() {\n var _this = this;\n\n this.height = this.$el.offsetHeight;\n var container = this.container,\n offsetTop = this.offsetTop;\n var scrollTop = getScrollTop(window);\n var topToPageTop = getElementTop(this.$el);\n\n var emitScrollEvent = function emitScrollEvent() {\n _this.$emit('scroll', {\n scrollTop: scrollTop,\n isFixed: _this.fixed\n });\n }; // The sticky component should be kept inside the container element\n\n\n if (container) {\n var bottomToPageTop = topToPageTop + container.offsetHeight;\n\n if (scrollTop + offsetTop + this.height > bottomToPageTop) {\n var distanceToBottom = this.height + scrollTop - bottomToPageTop;\n\n if (distanceToBottom < this.height) {\n this.fixed = true;\n this.transform = -(distanceToBottom + offsetTop);\n } else {\n this.fixed = false;\n }\n\n emitScrollEvent();\n return;\n }\n }\n\n if (scrollTop + offsetTop > topToPageTop) {\n this.fixed = true;\n this.transform = 0;\n } else {\n this.fixed = false;\n }\n\n emitScrollEvent();\n }\n },\n render: function render() {\n var h = arguments[0];\n var fixed = this.fixed;\n var style = {\n height: fixed ? this.height + \"px\" : null\n };\n return h(\"div\", {\n \"style\": style\n }, [h(\"div\", {\n \"class\": bem({\n fixed: fixed\n }),\n \"style\": this.style\n }, [this.slots()])]);\n }\n});","import { createNamespace, isDef, addUnit } from '../utils';\nimport { scrollLeftTo } from './utils';\nimport { route } from '../utils/router';\nimport { isHidden } from '../utils/dom/style';\nimport { ParentMixin } from '../mixins/relation';\nimport { BindEventMixin } from '../mixins/bind-event';\nimport { BORDER_TOP_BOTTOM } from '../utils/constant';\nimport { setRootScrollTop, getElementTop } from '../utils/dom/scroll';\nimport Title from './Title';\nimport Content from './Content';\nimport Sticky from '../sticky';\n\nvar _createNamespace = createNamespace('tabs'),\n createComponent = _createNamespace[0],\n bem = _createNamespace[1];\n\nexport default createComponent({\n mixins: [ParentMixin('vanTabs'), BindEventMixin(function (bind) {\n bind(window, 'resize', this.setLine, true);\n })],\n model: {\n prop: 'active'\n },\n props: {\n color: String,\n sticky: Boolean,\n animated: Boolean,\n swipeable: Boolean,\n background: String,\n lineWidth: [Number, String],\n lineHeight: [Number, String],\n titleActiveColor: String,\n titleInactiveColor: String,\n type: {\n type: String,\n default: 'line'\n },\n active: {\n type: [Number, String],\n default: 0\n },\n border: {\n type: Boolean,\n default: true\n },\n ellipsis: {\n type: Boolean,\n default: true\n },\n duration: {\n type: Number,\n default: 0.3\n },\n offsetTop: {\n type: Number,\n default: 0\n },\n lazyRender: {\n type: Boolean,\n default: true\n },\n swipeThreshold: {\n type: Number,\n default: 4\n }\n },\n data: function data() {\n return {\n position: '',\n currentIndex: null,\n lineStyle: {\n backgroundColor: this.color\n }\n };\n },\n computed: {\n // whether the nav is scrollable\n scrollable: function scrollable() {\n return this.children.length > this.swipeThreshold || !this.ellipsis;\n },\n navStyle: function navStyle() {\n return {\n borderColor: this.color,\n background: this.background\n };\n },\n currentName: function currentName() {\n var activeTab = this.children[this.currentIndex];\n\n if (activeTab) {\n return activeTab.computedName;\n }\n }\n },\n watch: {\n color: 'setLine',\n active: function active(name) {\n if (name !== this.currentName) {\n this.setCurrentIndexByName(name);\n }\n },\n children: function children() {\n var _this = this;\n\n this.setCurrentIndexByName(this.currentName || this.active);\n this.setLine();\n this.$nextTick(function () {\n _this.scrollIntoView(true);\n });\n },\n currentIndex: function currentIndex() {\n this.scrollIntoView();\n this.setLine(); // scroll to correct position\n\n if (this.stickyFixed) {\n setRootScrollTop(Math.ceil(getElementTop(this.$el) - this.offsetTop));\n }\n }\n },\n mounted: function mounted() {\n this.onShow();\n },\n activated: function activated() {\n this.onShow();\n this.setLine();\n },\n methods: {\n onShow: function onShow() {\n var _this2 = this;\n\n this.$nextTick(function () {\n _this2.inited = true;\n\n _this2.scrollIntoView(true);\n });\n },\n // update nav bar style\n setLine: function setLine() {\n var _this3 = this;\n\n var shouldAnimate = this.inited;\n this.$nextTick(function () {\n var titles = _this3.$refs.titles;\n\n if (!titles || !titles[_this3.currentIndex] || _this3.type !== 'line' || isHidden(_this3.$el)) {\n return;\n }\n\n var title = titles[_this3.currentIndex].$el;\n var lineWidth = _this3.lineWidth,\n lineHeight = _this3.lineHeight;\n var width = isDef(lineWidth) ? lineWidth : title.offsetWidth / 2;\n var left = title.offsetLeft + title.offsetWidth / 2;\n var lineStyle = {\n width: addUnit(width),\n backgroundColor: _this3.color,\n transform: \"translateX(\" + left + \"px) translateX(-50%)\"\n };\n\n if (shouldAnimate) {\n lineStyle.transitionDuration = _this3.duration + \"s\";\n }\n\n if (isDef(lineHeight)) {\n var height = addUnit(lineHeight);\n lineStyle.height = height;\n lineStyle.borderRadius = height;\n }\n\n _this3.lineStyle = lineStyle;\n });\n },\n // correct the index of active tab\n setCurrentIndexByName: function setCurrentIndexByName(name) {\n var matched = this.children.filter(function (tab) {\n return tab.computedName === name;\n });\n var defaultIndex = (this.children[0] || {}).index || 0;\n this.setCurrentIndex(matched.length ? matched[0].index : defaultIndex);\n },\n setCurrentIndex: function setCurrentIndex(currentIndex) {\n currentIndex = this.findAvailableTab(currentIndex);\n\n if (isDef(currentIndex) && currentIndex !== this.currentIndex) {\n var shouldEmitChange = this.currentIndex !== null;\n this.currentIndex = currentIndex;\n this.$emit('input', this.currentName);\n\n if (shouldEmitChange) {\n this.$emit('change', this.currentName, this.children[currentIndex].title);\n }\n }\n },\n findAvailableTab: function findAvailableTab(index) {\n var diff = index < this.currentIndex ? -1 : 1;\n\n while (index >= 0 && index < this.children.length) {\n if (!this.children[index].disabled) {\n return index;\n }\n\n index += diff;\n }\n },\n // emit event when clicked\n onClick: function onClick(index) {\n var _this$children$index = this.children[index],\n title = _this$children$index.title,\n disabled = _this$children$index.disabled,\n computedName = _this$children$index.computedName;\n\n if (disabled) {\n this.$emit('disabled', computedName, title);\n } else {\n this.setCurrentIndex(index);\n this.$emit('click', computedName, title);\n }\n },\n // scroll active tab into view\n scrollIntoView: function scrollIntoView(immediate) {\n var titles = this.$refs.titles;\n\n if (!this.scrollable || !titles || !titles[this.currentIndex]) {\n return;\n }\n\n var nav = this.$refs.nav;\n var title = titles[this.currentIndex].$el;\n var to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;\n scrollLeftTo(nav, to, immediate ? 0 : this.duration);\n },\n // render title slot of child tab\n renderTitle: function renderTitle(el, index) {\n var _this4 = this;\n\n this.$nextTick(function () {\n _this4.$refs.titles[index].renderTitle(el);\n });\n },\n onScroll: function onScroll(params) {\n this.stickyFixed = params.isFixed;\n this.$emit('scroll', params);\n }\n },\n render: function render() {\n var _this5 = this,\n _ref;\n\n var h = arguments[0];\n var type = this.type,\n ellipsis = this.ellipsis,\n animated = this.animated,\n scrollable = this.scrollable;\n var Nav = this.children.map(function (item, index) {\n return h(Title, {\n \"ref\": \"titles\",\n \"refInFor\": true,\n \"attrs\": {\n \"type\": type,\n \"title\": item.title,\n \"color\": _this5.color,\n \"isActive\": index === _this5.currentIndex,\n \"ellipsis\": ellipsis,\n \"disabled\": item.disabled,\n \"scrollable\": scrollable,\n \"activeColor\": _this5.titleActiveColor,\n \"inactiveColor\": _this5.titleInactiveColor,\n \"swipeThreshold\": _this5.swipeThreshold\n },\n \"on\": {\n \"click\": function click() {\n _this5.onClick(index);\n\n route(item.$router, item);\n }\n }\n });\n });\n var Wrap = h(\"div\", {\n \"ref\": \"wrap\",\n \"class\": [bem('wrap', {\n scrollable: scrollable\n }), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = type === 'line' && this.border, _ref)]\n }, [h(\"div\", {\n \"ref\": \"nav\",\n \"attrs\": {\n \"role\": \"tablist\"\n },\n \"class\": bem('nav', [type]),\n \"style\": this.navStyle\n }, [this.slots('nav-left'), Nav, type === 'line' && h(\"div\", {\n \"class\": bem('line'),\n \"style\": this.lineStyle\n }), this.slots('nav-right')])]);\n return h(\"div\", {\n \"class\": bem([type])\n }, [this.sticky ? h(Sticky, {\n \"attrs\": {\n \"container\": this.$el,\n \"offsetTop\": this.offsetTop\n },\n \"on\": {\n \"scroll\": this.onScroll\n }\n }, [Wrap]) : Wrap, h(Content, {\n \"attrs\": {\n \"count\": this.children.length,\n \"animated\": animated,\n \"duration\": this.duration,\n \"swipeable\": this.swipeable,\n \"currentIndex\": this.currentIndex\n },\n \"on\": {\n \"change\": this.setCurrentIndex\n }\n }, [this.slots()])]);\n }\n});","import Vue from 'vue';\n\nfunction flattenVNodes(vnodes) {\n var result = [];\n\n function traverse(vnodes) {\n vnodes.forEach(function (vnode) {\n result.push(vnode);\n\n if (vnode.children) {\n traverse(vnode.children);\n }\n });\n }\n\n traverse(vnodes);\n return result;\n}\n\nexport function ChildrenMixin(_parent, options) {\n var _inject, _computed;\n\n if (options === void 0) {\n options = {};\n }\n\n var indexKey = options.indexKey || 'index';\n return Vue.extend({\n inject: (_inject = {}, _inject[_parent] = {\n default: null\n }, _inject),\n computed: (_computed = {\n parent: function parent() {\n return this[_parent];\n }\n }, _computed[indexKey] = function () {\n this.bindRelation();\n return this.parent.children.indexOf(this);\n }, _computed),\n mounted: function mounted() {\n this.bindRelation();\n },\n beforeDestroy: function beforeDestroy() {\n var _this = this;\n\n if (this.parent) {\n this.parent.children = this.parent.children.filter(function (item) {\n return item !== _this;\n });\n }\n },\n methods: {\n bindRelation: function bindRelation() {\n if (!this.parent || this.parent.children.indexOf(this) !== -1) {\n return;\n }\n\n var children = [].concat(this.parent.children, [this]);\n var vnodes = flattenVNodes(this.parent.slots());\n children.sort(function (a, b) {\n return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);\n });\n this.parent.children = children;\n }\n }\n });\n}\nexport function ParentMixin(parent) {\n return {\n provide: function provide() {\n var _ref;\n\n return _ref = {}, _ref[parent] = this, _ref;\n },\n data: function data() {\n return {\n children: []\n };\n }\n };\n}","import Vue from 'vue';\nexport { createNamespace } from './create';\nexport { addUnit } from './format/unit';\nexport var isServer = Vue.prototype.$isServer;\nexport function noop() {}\nexport function isDef(value) {\n return value !== undefined && value !== null;\n}\nexport function isObj(x) {\n var type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n}\nexport function get(object, path) {\n var keys = path.split('.');\n var result = object;\n keys.forEach(function (key) {\n result = isDef(result[key]) ? result[key] : '';\n });\n return result;\n}","import '../../style/base.css';\nimport '../../sticky/index.css';\nimport '../index.css';","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","/**\n * bem helper\n * b() // 'button'\n * b('text') // 'button__text'\n * b({ disabled }) // 'button button--disabled'\n * b('text', { disabled }) // 'button__text button__text--disabled'\n * b(['disabled', 'primary']) // 'button button--disabled button--primary'\n */\nvar ELEMENT = '__';\nvar MODS = '--';\n\nfunction join(name, el, symbol) {\n return el ? name + symbol + el : name;\n}\n\nfunction prefix(name, mods) {\n if (typeof mods === 'string') {\n return join(name, mods, MODS);\n }\n\n if (Array.isArray(mods)) {\n return mods.map(function (item) {\n return prefix(name, item);\n });\n }\n\n var ret = {};\n\n if (mods) {\n Object.keys(mods).forEach(function (key) {\n ret[name + MODS + key] = mods[key];\n });\n }\n\n return ret;\n}\n\nexport function createBEM(name) {\n return function (el, mods) {\n if (el && typeof el !== 'string') {\n mods = el;\n el = '';\n }\n\n el = join(name, el, ELEMENT);\n return mods ? [el, prefix(el, mods)] : el;\n };\n}","var camelizeRE = /-(\\w)/g;\nexport function camelize(str) {\n return str.replace(camelizeRE, function (_, c) {\n return c.toUpperCase();\n });\n}\nexport function padZero(num, targetLength) {\n if (targetLength === void 0) {\n targetLength = 2;\n }\n\n var str = num + '';\n\n while (str.length < targetLength) {\n str = '0' + str;\n }\n\n return str;\n}","/**\n * Use scopedSlots in Vue 2.6+\n * downgrade to slots in lower version\n */\nimport Vue from 'vue';\nexport var SlotsMixin = Vue.extend({\n methods: {\n slots: function slots(name, props) {\n if (name === void 0) {\n name = 'default';\n }\n\n var $slots = this.$slots,\n $scopedSlots = this.$scopedSlots;\n var scopedSlot = $scopedSlots[name];\n\n if (scopedSlot) {\n return scopedSlot(props);\n }\n\n return $slots[name];\n }\n }\n});","/**\n * Create a basic component with common options\n */\nimport '../../locale';\nimport { camelize } from '../format/string';\nimport { SlotsMixin } from '../../mixins/slots';\nimport Vue from 'vue';\n\nfunction install(Vue) {\n var name = this.name;\n Vue.component(name, this);\n Vue.component(camelize(\"-\" + name), this);\n} // unify slots & scopedSlots\n\n\nexport function unifySlots(context) {\n // use data.scopedSlots in lower Vue version\n var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};\n var slots = context.slots();\n Object.keys(slots).forEach(function (key) {\n if (!scopedSlots[key]) {\n scopedSlots[key] = function () {\n return slots[key];\n };\n }\n });\n return scopedSlots;\n} // should be removed after Vue 3\n\nfunction transformFunctionComponent(pure) {\n return {\n functional: true,\n props: pure.props,\n model: pure.model,\n render: function render(h, context) {\n return pure(h, context.props, unifySlots(context), context);\n }\n };\n}\n\nexport function createComponent(name) {\n return function (sfc) {\n if (typeof sfc === 'function') {\n sfc = transformFunctionComponent(sfc);\n }\n\n if (!sfc.functional) {\n sfc.mixins = sfc.mixins || [];\n sfc.mixins.push(SlotsMixin);\n }\n\n sfc.name = name;\n sfc.install = install;\n return sfc;\n };\n}","import { isDef, isObj } from '.';\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction assignKey(to, from, key) {\n var val = from[key];\n\n if (!isDef(val)) {\n return;\n }\n\n if (!hasOwnProperty.call(to, key) || !isObj(val) || typeof val === 'function') {\n to[key] = val;\n } else {\n // eslint-disable-next-line no-use-before-define\n to[key] = deepAssign(Object(to[key]), from[key]);\n }\n}\n\nexport function deepAssign(to, from) {\n Object.keys(from).forEach(function (key) {\n assignKey(to, from, key);\n });\n return to;\n}","export default {\n name: '姓名',\n tel: '电话',\n save: '保存',\n confirm: '确认',\n cancel: '取消',\n delete: '删除',\n complete: '完成',\n loading: '加载中...',\n telEmpty: '请填写电话',\n nameEmpty: '请填写姓名',\n confirmDelete: '确定要删除么',\n telInvalid: '请填写正确的电话',\n vanContactCard: {\n addText: '添加联系人'\n },\n vanContactList: {\n addText: '新建联系人'\n },\n vanPagination: {\n prev: '上一页',\n next: '下一页'\n },\n vanPullRefresh: {\n pulling: '下拉即可刷新...',\n loosing: '释放即可刷新...'\n },\n vanSubmitBar: {\n label: '合计:'\n },\n vanCoupon: {\n valid: '有效期',\n unlimited: '无使用门槛',\n discount: function discount(_discount) {\n return _discount + \"\\u6298\";\n },\n condition: function condition(_condition) {\n return \"\\u6EE1\" + _condition + \"\\u5143\\u53EF\\u7528\";\n }\n },\n vanCouponCell: {\n title: '优惠券',\n tips: '使用优惠',\n count: function count(_count) {\n return _count + \"\\u5F20\\u53EF\\u7528\";\n }\n },\n vanCouponList: {\n empty: '暂无优惠券',\n exchange: '兑换',\n close: '不使用优惠',\n enable: '可使用优惠券',\n disabled: '不可使用优惠券',\n placeholder: '请输入优惠码'\n },\n vanAddressEdit: {\n area: '地区',\n postal: '邮政编码',\n areaEmpty: '请选择地区',\n addressEmpty: '请填写详细地址',\n postalEmpty: '邮政编码格式不正确',\n defaultAddress: '设为默认收货地址',\n telPlaceholder: '收货人手机号',\n namePlaceholder: '收货人姓名',\n areaPlaceholder: '选择省 / 市 / 区'\n },\n vanAddressEditDetail: {\n label: '详细地址',\n placeholder: '街道门牌、楼层房间号等信息'\n },\n vanAddressList: {\n add: '新增地址'\n }\n};","import Vue from 'vue';\nimport { deepAssign } from '../utils/deep-assign';\nimport defaultMessages from './lang/zh-CN';\nvar proto = Vue.prototype;\nvar defineReactive = Vue.util.defineReactive;\ndefineReactive(proto, '$vantLang', 'zh-CN');\ndefineReactive(proto, '$vantMessages', {\n 'zh-CN': defaultMessages\n});\nexport default {\n messages: function messages() {\n return proto.$vantMessages[proto.$vantLang];\n },\n use: function use(lang, messages) {\n var _this$add;\n\n proto.$vantLang = lang;\n this.add((_this$add = {}, _this$add[lang] = messages, _this$add));\n },\n add: function add(messages) {\n if (messages === void 0) {\n messages = {};\n }\n\n deepAssign(proto.$vantMessages, messages);\n }\n};","import { get } from '..';\nimport { camelize } from '../format/string';\nimport locale from '../../locale';\nexport function createI18N(name) {\n var prefix = camelize(name) + '.';\n return function (path) {\n var message = get(locale.messages(), prefix + path) || get(locale.messages(), path);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return typeof message === 'function' ? message.apply(void 0, args) : message;\n };\n}","import { createBEM } from './bem';\nimport { createComponent } from './component';\nimport { createI18N } from './i18n';\nexport function createNamespace(name) {\n name = 'van-' + name;\n return [createComponent(name), createBEM(name), createI18N(name)];\n}","import '../../style/base.css';\nimport '../index.css';","export function isNumber(value) {\n return /^\\d+(\\.\\d+)?$/.test(value);\n}\nexport function isNaN(value) {\n if (Number.isNaN) {\n return Number.isNaN(value);\n } // eslint-disable-next-line no-self-compare\n\n\n return value !== value;\n}","import { isDef } from '..';\nimport { isNumber } from '../validate/number';\nexport function addUnit(value) {\n if (!isDef(value)) {\n return undefined;\n }\n\n value = String(value);\n return isNumber(value) ? value + \"px\" : value;\n}"],"sourceRoot":""}