chunk-eb773252.7b456bae.js.map 48 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/vant/es/tab/index.js","webpack:///./node_modules/vant/es/utils/dom/raf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///./node_modules/vant/es/tabs/utils.js","webpack:///./node_modules/vant/es/utils/dom/event.js","webpack:///./node_modules/vant/es/mixins/touch.js","webpack:///./node_modules/vant/es/mixins/bind-event.js","webpack:///./node_modules/vant/es/utils/dom/scroll.js","webpack:///./node_modules/vant/es/tabs/index.js","webpack:///./node_modules/vant/es/mixins/relation.js","webpack:///./node_modules/vant/es/utils/use/bem.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/format/string.js","webpack:///./node_modules/vant/es/mixins/slots.js","webpack:///./node_modules/vant/es/utils/use/sfc.js","webpack:///./node_modules/vant/es/utils/use/i18n.js","webpack:///./node_modules/vant/es/utils/use/index.js","webpack:///./node_modules/vant/es/utils/validate/number.js","webpack:///./node_modules/vant/es/utils/format/unit.js","webpack:///./node_modules/vant/es/utils/index.js","webpack:///./node_modules/vant/es/tabs/style/index.js","webpack:///./node_modules/vant/es/tab/style/index.js"],"names":["_utils__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_mixins_relation__WEBPACK_IMPORTED_MODULE_1__","_use","Object","sfc","bem","__webpack_exports__","mixins","props","title","String","disabled","Boolean","data","inited","computed","selected","this","index","parent","curActive","watch","parent.curActive","setLine","mounted","slots","renderTitle","$refs","render","h","shouldRender","lazyRender","Content","push","ref","animated","attrs","role","aria-hidden","class","inactive","directives","name","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","_extends","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","apply","scrollLeftTo","el","to","duration","count","from","scrollLeft","frames","round","animate","supportsPassive","utils","opts","defineProperty","get","addEventListener","e","on","event","handler","passive","capture","off","removeEventListener","MIN_DISTANCE","getDirection","x","y","TouchMixin","direction","methods","touchStart","resetTouchStatus","startX","touches","clientX","startY","clientY","touchMove","touch","deltaX","deltaY","offsetX","abs","offsetY","BindEventMixin","bind","binded","unbind","activated","deactivated","beforeDestroy","getScrollEventTarget","element","rootParent","node","tagName","nodeType","_window$getComputedSt","getComputedStyle","overflowY","parentNode","getScrollTop","scrollTop","pageYOffset","setScrollTop","scrollTo","scrollX","getElementTop","getBoundingClientRect","top","tabBem","relation","isBind","bindScrollEvent","model","prop","color","sticky","offsetTop","Number","swipeable","background","lineWidth","lineHeight","titleActiveColor","titleInactiveColor","border","type","default","ellipsis","active","swipeThreshold","scrollEvent","position","lineStyle","backgroundColor","scrollable","children","wrapStyle","bottom","navStyle","borderColor","trackStyle","transform","transitionDuration","val","correctActive","scrollIntoView","$el","onShow","_this","$nextTick","scrollEl","onScroll","onTouchEnd","minSwipeDistance","setCurActive","elTopToPageTop","elBottomToPageTop","offsetHeight","wrap","scrollParams","isFixed","$emit","_this2","shouldAnimate","tabs","tab","width","offsetWidth","left","offsetLeft","height","borderRadius","exist","some","defaultActive","findAvailableTab","reverse","diff","onClick","_this$children$index","immediate","nav","_this3","replaceChild","getTabStyle","item","style","isCard","titleColor","flexBasis","contentListeners","_this4","Nav","map","refInFor","aria-selected","complete","click","van-ellipsis","touchstart","touchmove","touchend","touchcancel","van-hairline--top-bottom","ChildrenMixin","_parent","options","_inject","_computed","indexKey","inject","bindRelation","indexOf","created","filter","vnodeIndex","$vnode","splice","ParentMixin","provide","_ref","ELEMENT","MODS","join","symbol","bem_prefix","mods","Array","isArray","ret","keys","forEach","useBEM","deep_assign_hasOwnProperty","assignKey","isDef","isObj","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","vue_runtime_esm","defineReactive","util","zh-CN","locale","messages","$vantMessages","$vantLang","use","lang","_this$add","camelizeRE","camelize","str","replace","_","c","toUpperCase","SlotsMixin","$slots","$scopedSlots","arrayProp","numberProp","defaultProps","install","Vue","component","unifySlots","context","scopedSlots","transformFunctionComponent","pure","functional","useSFC","useI18N","prefix","path","message","_len","args","_key","isNumber","test","suffixPx","isServer","$isServer","undefined","object","split","result"],"mappings":"kHAAA,IAAAA,EAAAC,EAAA,QAAAC,EAAAD,EAAA,QAIAE,EAAWC,OAAAJ,EAAA,KAAAI,CAAG,OACdC,EAAAF,EAAA,GACAG,EAAAH,EAAA,GAEeI,EAAA,KAAAF,EAAA,CACfG,OAAA,CAAWJ,OAAAF,EAAA,KAAAE,CAAa,YACxBK,MAAA,CACAC,MAAAC,OACAC,SAAAC,SAEAC,KAAA,WACA,OACAC,QAAA,IAGAC,SAAA,CACAC,SAAA,WACA,OAAAC,KAAAC,QAAAD,KAAAE,OAAAC,YAGAC,MAAA,CACAC,mBAAA,WACAL,KAAAH,OAAAG,KAAAH,QAAAG,KAAAD,UAEAP,MAAA,WACAQ,KAAAE,OAAAI,YAGAC,QAAA,WACAP,KAAAQ,MAAA,UACAR,KAAAE,OAAAO,YAAAT,KAAAU,MAAAlB,MAAAQ,KAAAC,QAGAU,OAAA,SAAAC,GACA,IAAAJ,EAAAR,KAAAQ,MACAT,EAAAC,KAAAD,SACAc,EAAAb,KAAAH,SAAAG,KAAAE,OAAAY,WACAC,EAAA,CAAAF,EAAAL,IAAAI,KAQA,OANAJ,EAAA,UACAO,EAAAC,KAAAJ,EAAA,OACAK,IAAA,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AwU,EAAAvU,GACP,sBAAAwU,KAAAxU,GCCO,SAAAyU,EAAAzU,GACP,GAAOwO,EAAKxO,GAKZ,OADAA,EAAAjC,OAAAiC,GACSuU,EAAQvU,KAAA,KAAAA,ECRjB3C,EAAA6C,EAAAvC,EAAA,sBAAA+W,IAAArX,EAAA6C,EAAAvC,EAAA,sBAAA6Q,IAAAnR,EAAA6C,EAAAvC,EAAA,sBAAA8Q,IAAApR,EAAA6C,EAAAvC,EAAA,sBAAAqF,IAAA3F,EAAA6C,EAAAvC,EAAA,sBAAA2U,IAAAjV,EAAA6C,EAAAvC,EAAA,sBAAA8W,IAGO,IAAAC,EAAe5C,EAAA,WAAG/P,UAAA4S,UAElB,SAAAnG,EAAAxO,GACP,YAAA4U,IAAA5U,GAAA,OAAAA,EAEO,SAAAyO,EAAA7K,GACP,IAAA8D,SAAA9D,EACA,cAAAA,IAAA,WAAA8D,GAAA,aAAAA,GAEO,SAAA1E,EAAA6R,EAAAX,GACP,IAAA/F,EAAA+F,EAAAY,MAAA,KACAC,EAAAF,EAIA,OAHA1G,EAAAC,QAAA,SAAAtM,GACAiT,EAAAvG,EAAAuG,EAAAjT,IAAAiT,EAAAjT,GAAA,KAEAiT,6DClBA1X,EAAA,QAAAA,EAAA,2CCAAA,EAAA,QAAAA,EAAA","file":"h5/js/chunk-eb773252.7b456bae.js","sourcesContent":["/* eslint-disable object-shorthand */\nimport { use } from '../utils';\nimport { ChildrenMixin } from '../mixins/relation';\n\nvar _use = use('tab'),\n sfc = _use[0],\n bem = _use[1];\n\nexport default sfc({\n mixins: [ChildrenMixin('vanTabs')],\n props: {\n title: String,\n disabled: Boolean\n },\n data: function data() {\n return {\n inited: false\n };\n },\n computed: {\n selected: function selected() {\n return this.index === this.parent.curActive;\n }\n },\n watch: {\n 'parent.curActive': function parentCurActive() {\n this.inited = this.inited || this.selected;\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 selected = this.selected;\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\": !selected\n },\n \"class\": bem('pane-wrapper', {\n inactive: !selected\n })\n }, [h(\"div\", {\n \"class\": bem('pane')\n }, [Content])]);\n }\n\n return h(\"div\", {\n \"directives\": [{\n name: \"show\",\n value: selected\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}\nexport function cancelRaf(id) {\n iCancel.call(root, id);\n}","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}","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}","/* eslint-disable no-empty */\n\n/* eslint-disable getter-return */\n\n/* eslint-disable import/no-mutable-exports */\nimport { isServer } from '..';\nexport var supportsPassive = false;\n\nif (!isServer) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', {\n get: function get() {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n });\n window.addEventListener('test-passive', null, opts);\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}","var 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 = {\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 { 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}","// 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\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.tagName !== 'BODY' && node.nodeType === 1 && node !== rootParent) {\n var _window$getComputedSt = window.getComputedStyle(node),\n overflowY = _window$getComputedSt.overflowY;\n\n if (overflowY === 'scroll' || overflowY === 'auto') {\n return node;\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} // get distance from element top to page top\n\nexport function getElementTop(element) {\n return (element === window ? 0 : element.getBoundingClientRect().top) + getScrollTop(window);\n}\nexport function getVisibleHeight(element) {\n return element === window ? element.innerHeight : element.getBoundingClientRect().height;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { use, isDef, suffixPx } from '../utils';\nimport { scrollLeftTo } from './utils';\nimport { on, off } from '../utils/dom/event';\nimport { TouchMixin } from '../mixins/touch';\nimport { ParentMixin } from '../mixins/relation';\nimport { BindEventMixin } from '../mixins/bind-event';\nimport { setScrollTop, getScrollTop, getElementTop, getScrollEventTarget } from '../utils/dom/scroll';\n\nvar _use = use('tabs'),\n sfc = _use[0],\n bem = _use[1];\n\nvar tabBem = use('tab')[1];\nexport default sfc({\n mixins: [TouchMixin, ParentMixin('vanTabs'), BindEventMixin(function (bind, isBind) {\n this.bindScrollEvent(isBind);\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 offsetTop: Number,\n swipeable: Boolean,\n background: String,\n lineWidth: [Number, String],\n lineHeight: [Number, String],\n titleActiveColor: String,\n titleInactiveColor: String,\n border: {\n type: Boolean,\n \"default\": true\n },\n ellipsis: {\n type: Boolean,\n \"default\": true\n },\n lazyRender: {\n type: Boolean,\n \"default\": true\n },\n active: {\n type: [Number, String],\n \"default\": 0\n },\n type: {\n type: String,\n \"default\": 'line'\n },\n duration: {\n type: Number,\n \"default\": 0.3\n },\n swipeThreshold: {\n type: Number,\n \"default\": 4\n }\n },\n data: function data() {\n this.scrollEvent = false;\n return {\n position: '',\n curActive: 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 wrapStyle: function wrapStyle() {\n switch (this.position) {\n case 'top':\n return {\n top: this.offsetTop + 'px',\n position: 'fixed'\n };\n\n case 'bottom':\n return {\n top: 'auto',\n bottom: 0\n };\n\n default:\n return null;\n }\n },\n navStyle: function navStyle() {\n return {\n borderColor: this.color,\n background: this.background\n };\n },\n trackStyle: function trackStyle() {\n if (this.animated) {\n return {\n transform: \"translate3d(\" + -1 * this.curActive * 100 + \"%, 0, 0)\",\n transitionDuration: this.duration + \"s\"\n };\n }\n }\n },\n watch: {\n active: function active(val) {\n if (val !== this.curActive) {\n this.correctActive(val);\n }\n },\n color: function color() {\n this.setLine();\n },\n children: function children() {\n this.correctActive(this.curActive || this.active);\n this.scrollIntoView();\n this.setLine();\n },\n curActive: function curActive() {\n this.scrollIntoView();\n this.setLine(); // scroll to correct position\n\n if (this.position === 'top' || this.position === 'bottom') {\n setScrollTop(window, getElementTop(this.$el) - this.offsetTop);\n }\n },\n sticky: function sticky(val) {\n this.bindScrollEvent(val);\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 _this = this;\n\n this.$nextTick(function () {\n _this.inited = true;\n\n _this.scrollIntoView(true);\n });\n },\n bindScrollEvent: function bindScrollEvent(isBind) {\n var sticky = this.sticky && isBind;\n\n if (this.scrollEvent !== sticky) {\n this.scrollEvent = sticky;\n this.scrollEl = this.scrollEl || getScrollEventTarget(this.$el);\n (sticky ? on : off)(this.scrollEl, 'scroll', this.onScroll, true);\n this.onScroll();\n }\n },\n // watch swipe touch end\n onTouchEnd: function onTouchEnd() {\n var direction = this.direction,\n deltaX = this.deltaX,\n curActive = this.curActive;\n var minSwipeDistance = 50;\n /* istanbul ignore else */\n\n if (direction === 'horizontal' && this.offsetX >= minSwipeDistance) {\n /* istanbul ignore else */\n if (deltaX > 0 && curActive !== 0) {\n this.setCurActive(curActive - 1);\n } else if (deltaX < 0 && curActive !== this.children.length - 1) {\n this.setCurActive(curActive + 1);\n }\n }\n },\n // adjust tab position\n onScroll: function onScroll() {\n var scrollTop = getScrollTop(window) + this.offsetTop;\n var elTopToPageTop = getElementTop(this.$el);\n var elBottomToPageTop = elTopToPageTop + this.$el.offsetHeight - this.$refs.wrap.offsetHeight;\n\n if (scrollTop > elBottomToPageTop) {\n this.position = 'bottom';\n } else if (scrollTop > elTopToPageTop) {\n this.position = 'top';\n } else {\n this.position = '';\n }\n\n var scrollParams = {\n scrollTop: scrollTop,\n isFixed: this.position === 'top'\n };\n this.$emit('scroll', scrollParams);\n },\n // update nav bar style\n setLine: function setLine() {\n var _this2 = this;\n\n var shouldAnimate = this.inited;\n this.$nextTick(function () {\n var tabs = _this2.$refs.tabs;\n\n if (!tabs || !tabs[_this2.curActive] || _this2.type !== 'line') {\n return;\n }\n\n var tab = tabs[_this2.curActive];\n var lineWidth = _this2.lineWidth,\n lineHeight = _this2.lineHeight;\n var width = isDef(lineWidth) ? lineWidth : tab.offsetWidth / 2;\n var left = tab.offsetLeft + tab.offsetWidth / 2;\n var lineStyle = {\n width: suffixPx(width),\n backgroundColor: _this2.color,\n transform: \"translateX(\" + left + \"px) translateX(-50%)\"\n };\n\n if (shouldAnimate) {\n lineStyle.transitionDuration = _this2.duration + \"s\";\n }\n\n if (isDef(lineHeight)) {\n var height = suffixPx(lineHeight);\n lineStyle.height = height;\n lineStyle.borderRadius = height;\n }\n\n _this2.lineStyle = lineStyle;\n });\n },\n // correct the value of active\n correctActive: function correctActive(active) {\n active = +active;\n var exist = this.children.some(function (tab) {\n return tab.index === active;\n });\n var defaultActive = (this.children[0] || {}).index || 0;\n this.setCurActive(exist ? active : defaultActive);\n },\n setCurActive: function setCurActive(active) {\n active = this.findAvailableTab(active, active < this.curActive);\n\n if (isDef(active) && active !== this.curActive) {\n this.$emit('input', active);\n\n if (this.curActive !== null) {\n this.$emit('change', active, this.children[active].title);\n }\n\n this.curActive = active;\n }\n },\n findAvailableTab: function findAvailableTab(active, reverse) {\n var diff = reverse ? -1 : 1;\n var index = active;\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\n if (disabled) {\n this.$emit('disabled', index, title);\n } else {\n this.setCurActive(index);\n this.$emit('click', index, title);\n }\n },\n // scroll active tab into view\n scrollIntoView: function scrollIntoView(immediate) {\n var tabs = this.$refs.tabs;\n\n if (!this.scrollable || !tabs || !tabs[this.curActive]) {\n return;\n }\n\n var nav = this.$refs.nav;\n var active = tabs[this.curActive];\n var to = active.offsetLeft - (nav.offsetWidth - active.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 _this3 = this;\n\n this.$nextTick(function () {\n var title = _this3.$refs.title[index];\n title.parentNode.replaceChild(el, title);\n });\n },\n getTabStyle: function getTabStyle(item, index) {\n var style = {};\n var color = this.color;\n var active = index === this.curActive;\n var isCard = this.type === 'card'; // theme color\n\n if (color) {\n if (!item.disabled && isCard && !active) {\n style.color = color;\n }\n\n if (!item.disabled && isCard && active) {\n style.backgroundColor = color;\n }\n\n if (isCard) {\n style.borderColor = color;\n }\n }\n\n var titleColor = active ? this.titleActiveColor : this.titleInactiveColor;\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 render: function render(h) {\n var _this4 = this;\n\n var type = this.type,\n ellipsis = this.ellipsis,\n animated = this.animated,\n scrollable = this.scrollable;\n var Nav = this.children.map(function (tab, index) {\n return h(\"div\", {\n \"ref\": \"tabs\",\n \"refInFor\": true,\n \"attrs\": {\n \"role\": \"tab\",\n \"aria-selected\": index === _this4.curActive\n },\n \"class\": tabBem({\n active: index === _this4.curActive,\n disabled: tab.disabled,\n complete: !ellipsis\n }),\n \"style\": _this4.getTabStyle(tab, index),\n \"on\": {\n \"click\": function click() {\n _this4.onClick(index);\n }\n }\n }, [h(\"span\", {\n \"ref\": \"title\",\n \"refInFor\": true,\n \"class\": {\n 'van-ellipsis': ellipsis\n }\n }, [tab.title])]);\n });\n var contentListeners;\n\n if (this.swipeable) {\n contentListeners = {\n touchstart: this.touchStart,\n touchmove: this.touchMove,\n touchend: this.onTouchEnd,\n touchcancel: this.onTouchEnd\n };\n }\n\n return h(\"div\", {\n \"class\": bem([type])\n }, [h(\"div\", {\n \"ref\": \"wrap\",\n \"style\": this.wrapStyle,\n \"class\": [bem('wrap', {\n scrollable: scrollable\n }), {\n 'van-hairline--top-bottom': type === 'line' && this.border\n }]\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'), type === 'line' && h(\"div\", {\n \"class\": bem('line'),\n \"style\": this.lineStyle\n }), Nav, this.slots('nav-right')])]), h(\"div\", {\n \"class\": bem('content', {\n animated: animated\n }),\n \"on\": _extends({}, contentListeners)\n }, [animated ? h(\"div\", {\n \"class\": bem('track'),\n \"style\": this.trackStyle\n }, [this.slots()]) : this.slots()])]);\n }\n});","export 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 {\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 created: function created() {\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) {\n return;\n }\n\n var children = this.parent.children;\n\n if (children.indexOf(this) === -1) {\n var vnodeIndex = this.parent.slots().indexOf(this.$vnode);\n\n if (vnodeIndex === -1) {\n children.push(this);\n } else {\n children.splice(vnodeIndex, 0, this);\n }\n }\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}","/**\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 useBEM(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}","/* eslint-disable no-use-before-define */\nimport { 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 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};","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) {\n return (num < 10 ? '0' : '') + num;\n}","/**\n * Use scopedSlots in Vue 2.6+\n * downgrade to slots in lower version\n */\nexport var SlotsMixin = {\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\n if ($scopedSlots[name]) {\n return $scopedSlots[name](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';\nvar arrayProp = {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n};\nvar numberProp = {\n type: Number,\n \"default\": 0\n};\n\nfunction defaultProps(props) {\n Object.keys(props).forEach(function (key) {\n if (props[key] === Array) {\n props[key] = arrayProp;\n } else if (props[key] === Number) {\n props[key] = numberProp;\n }\n });\n}\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 useSFC(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 if (sfc.props) {\n defaultProps(sfc.props);\n }\n\n sfc.name = name;\n sfc.install = install;\n return sfc;\n };\n}","import { get } from '..';\nimport { camelize } from '../format/string';\nimport locale from '../../locale';\nexport function useI18N(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 { useBEM } from './bem';\nimport { useSFC } from './sfc';\nimport { useI18N } from './i18n';\nexport function use(name) {\n name = 'van-' + name;\n return [useSFC(name), useBEM(name), useI18N(name)];\n}","export function isNumber(value) {\n return /^\\d+(\\.\\d+)?$/.test(value);\n}","import { isDef } from '..';\nimport { isNumber } from '../validate/number';\nexport function suffixPx(value) {\n if (!isDef(value)) {\n return undefined;\n }\n\n value = String(value);\n return isNumber(value) ? value + \"px\" : value;\n}","import Vue from 'vue';\nexport { use } from './use';\nexport { suffixPx } 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 '../index.css';","import '../../style/base.css';\nimport '../index.css';"],"sourceRoot":""}