weex-nuke
Version:
基于 Rax 、Weex 的高性能组件体系 ~~
1 lines • 399 kB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("weex-nuke",function(t,o,r){r.exports=e()});else{("undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this)["weex-nuke"]=e()}}(function(){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=67)}([function(e,t){e.exports=require("rax")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(82),n=o(84),i=void 0;i="function"==typeof callNative?r.nativeEnv:n.webEnv,t.default=i,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=o(6),l=function(e){return e&&e.__esModule?e:{default:e}}(o(93));var s="function"==typeof callNative,c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"styleFix",value:function(e){var t={};return e&&(t=(0,a.borderSeperate)(e),t=a.hairLine.fixBorder(t)),t}},{key:"render",value:function(){var e=this.props,t=e.style,o=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["style"]),n=this.styleFix(t),a=r({},o,{style:n});return s?(0,i.createElement)("div",a):(0,i.createElement)("div",r({},this.props,{style:[l.default.initial,n]}))}}]),t}();c.propTypes={style:i.PropTypes.any},c.defaultProps={style:null},c.contextTypes={androidConfigs:i.PropTypes.any,compatibilityConfigs:i.PropTypes.any},t.default=c,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(o(71)),n=a(o(21)),i=a(o(80));function a(e){return e&&e.__esModule?e:{default:e}}t.default={connectStyle:r.default,Theme:n.default,StyleProvider:i.default},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=o(6),l=function(e){return e&&e.__esModule?e:{default:e}}(o(94));var s="function"!=typeof callNative,c=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=o.commonConfigs&&o.commonConfigs.fixedFont,r.fontFamily=o.commonConfigs&&o.commonConfigs.fontFamily,r.optimizeLineHeight=o.commonConfigs&&o.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+(s?"px":"wx"):e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,o=e.onClick,n=e.style,s=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["onPress","onClick","style"]),c={fontSize:"32rem",wordWrap:"break-word"};this.fontFamily&&(c.fontFamily=this.fontFamily);var u=Object.assign(c,n);return delete s.optimizeLineHeight,u=this.fixedFont?(0,a.calcTextSize)(u):u,u=this.optimizeLineHeight?this.calcLineHeight(u):u,(0,i.createElement)(l.default,r({},s,{style:u,onClick:t||o}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*Math.pow(10,-5)*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=o(1),l=u(o(2)),s=u(o(95)),c=u(o(96));function u(e){return e&&e.__esModule?e:{default:e}}var d="android"===a.appInfo.platform.toLowerCase(),p=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.originalStyle=null,r.activeStyle=null,r.rippleEnabled=d&&(e.rippleEnabled||o.androidConfigs&&o.androidConfigs.rippleEnabled),r.touchStart=r.touchStart.bind(r),r.touchEnd=r.touchEnd.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"calculatedStyle",value:function(e){var t={};for(var o in e)t[o+":active"]=e[o];return t}},{key:"findDom",value:function(){return this.dom||(this.dom=(0,i.findDOMNode)(this.refs.touch)),this.dom}},{key:"setStyle",value:function(e){(0,i.setNativeProps)(this.refs.touch,{style:e})}},{key:"touchStart",value:function(e){var t=this.props,o=t.activeStyle,n=t.style,i=t.onTouchStart;this.originalStyle||(this.originalStyle=r({},n)),this.activeStyle||(this.activeStyle=r({},o)),this.setStyle(Object.assign({},n,o)),i&&i(e)}},{key:"touchEnd",value:function(e){var t=this.props,o=t.style,r=t.onTouchEnd;this.setStyle(this.originalStyle||o),r&&r(e)}},{key:"getActiveColor",value:function(e){return e["backgroundColor:active"]||null}},{key:"calcInheritStyle",value:function(e){if(!e)return{};var t={};return c.default.map(function(o){e[o]&&(t[o]=e[o])}),t}},{key:"render",value:function(){var e=this.props,t=e.style,o=(e.rippleEnabled,e.activeStyle),n=e.onPress,c=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["style","rippleEnabled","activeStyle","onPress"]),u=r({},c,{ref:"touch",style:Object.assign({},t,this.calculatedStyle(o)),onClick:n});if(a.isWeex)return this.rippleEnabled&&(u.rippleEnabled=!0),(0,i.createElement)(l.default,u);var d=this.getActiveColor(u.style);if(d&&!this.rippleEnabled&&(u.onTouchStart=this.touchStart,u.onTouchEnd=this.touchEnd),this.rippleEnabled&&n){var p=Object.assign({},{flex:1},this.calcInheritStyle(t));return t&&t.alignItems&&delete u.style.alignItems,(0,i.createElement)(s.default,r({},u,{color:d}),(0,i.createElement)(l.default,{style:p},this.props.children))}return(0,i.createElement)(l.default,u,this.props.children)}}]),t}();p.contextTypes={androidConfigs:i.PropTypes.any,compatibilityConfigs:i.PropTypes.any},p.defaultProps={rippleEnabled:!1,onPress:null},p.propTypes={onPress:i.PropTypes.func,onLongPress:i.PropTypes.func,style:i.PropTypes.any,activeStyle:i.PropTypes.any,rippleEnabled:i.PropTypes.boolean};t.default=p,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(81),n=o(86),i=o(87),a=o(88),l=o(89),s=o(32),c=p(o(90)),u=p(o(91)),d=p(o(92));function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}t.default={calcTextSize:r.calcFixedFont,hairLine:n.hairLine,textKeys:i.textKeys,borderSeperate:s.borderSeperate,bubbleKeys:a.bubbleKeys,fixSmallUnit:l.fixSmallUnit,hex:c,layout:u,rem:d},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=i(o(100));function i(e){return e&&e.__esModule?e:{default:e}}var a=i(o(104)).default;r.isWeex&&(a=n.default),t.default=a,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vLoader=function(){var e=arguments;if(e.length>1&&r.default.iOS)return e[1];return e[0]};var r=function(e){return e&&e.__esModule?e:{default:e}}(o(73))},function(e,t){e.exports=require("@weex-module/dom")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i="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},a=o(0);var l="object"===("undefined"==typeof navigator?"undefined":i(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),s=1,c=1,u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.state={width:s,height:c},o.load=o.load.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),n(t,[{key:"convertToRem",value:function(e){var t=void 0;return t=l?document.documentElement.clientWidth*devicePixelRatio:WXEnvironment.deviceWidth,Math.round(750*e/t)}},{key:"load",value:function(e){var t=void 0,o=void 0;l?e.target&&(t=this.convertToRem(e.target.naturalWidth),o=this.convertToRem(e.target.naturalHeight),e.size={naturalWidth:t,naturalHeight:o}):e.size&&e.size.naturalWidth>0&&e.size.naturalHeight>0&&(t=this.convertToRem(e.size.naturalWidth),o=this.convertToRem(e.size.naturalHeight)),this.props.autoFit&&t&&o&&this.setState({width:t,height:o}),this.props.onLoad&&this.props.onLoad(e)}},{key:"render",value:function(){var e=this.props,t=e.style,o=e.autoFit,n=e.src,i=e.source,u=void 0===i?{}:i,d=e.resizeMode,p=(e.onLoad,e.onPress),f=e.onClick,h=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["style","autoFit","src","source","resizeMode","onLoad","onPress","onClick"]),y=u.uri,b=u.width,m=void 0===b?s:b,v=u.height,g=void 0===v?c:v;if(!n&&!y)return null;var w=void 0;w=l?"img":"image";var x=r({src:n||y,quality:"original",style:r({width:o?this.state.width:m,height:o?this.state.height:g},t),onLoad:this.load},h);(p||f)&&(x.onClick=p||f),x.style.flex&&(x.style.width===s&&delete x.style.width,x.style.height===c&&delete x.style.height);var O=d||x.style.resizeMode;return O&&(l?(delete x.style.flex,x.style.width=x.style.width||"100%",x.style.height=x.style.height||"100%",x.style.objectFit=O):(x.resize=O,x.style.resizeMode=O)),(0,a.createElement)(w,x)}}]),t}();u.propTypes={src:a.PropTypes.string,style:a.PropTypes.object},u.defaultProps={style:{},autoFit:!1},t.default=u,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=o(1),l=u(o(2)),s=u(o(26)),c=u(o(125));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.state={loadmoreretry:0},o.timer=null,o.childrenAll={},o.scrollStartFlag=!1,o.lastScrollEventTriggerTime=0,o.lastScrollContentSize=0,o.lastScrollDistance=0,o.handleScroll=o.handleScroll.bind(o),o.scrollTo=o.scrollTo.bind(o),o.scrollToElement=o.scrollToElement.bind(o),o.resetLoadmore=o.resetLoadmore.bind(o),o.checkScrolling=o.checkScrolling.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"checkScrolling",value:function(){var e=(new Date).getTime();this.lastScrollEventTriggerTime>0&&e-this.lastScrollEventTriggerTime>200&&(this.scrollStartFlag=!1,clearTimeout(this.timer),this.timer=null,this.props.onScrollEnd&&this.props.onScrollEnd())}},{key:"handleScroll",value:function(e){var t=this.props,o=t.onScroll,r=t.onScrollStart,n=t.horizontal,l=t.onEndReached,s=t.onEndReachedThreshold;if(a.isWeb&&(this.scrollStartFlag||(this.scrollStartFlag=!0,r&&r(e)),clearTimeout(this.timer),this.lastScrollEventTriggerTime=(new Date).getTime(),o&&(e.nativeEvent={contentOffset:{x:e.target.scrollLeft,y:e.target.scrollTop}},o&&o(e)),this.timer=setTimeout(this.checkScrolling,200),l)){this.scrollerNode||(this.scrollerNode=(0,i.findDOMNode)(this.refs.scroller),this.scrollerContentNode=(0,i.findDOMNode)(this.refs.contentContainer),this.scrollerNodeSize=n?this.scrollerNode.offsetWidth:this.scrollerNode.offsetHeight);var c=n?this.scrollerNode.scrollWidth:this.scrollerNode.scrollHeight,u=n?this.scrollerNode.scrollLeft:this.scrollerNode.scrollTop,d=c-u-this.scrollerNodeSize<s,p=u>this.lastScrollDistance,f=c!==this.lastScrollContentSize;d&&p&&f&&(this.lastScrollContentSize=c,l(e)),this.lastScrollDistance=u}a.isWeex&&(e.nativeEvent={contentOffset:{x:-e.contentOffset.x,y:-e.contentOffset.y}},o&&o(e))}},{key:"resetLoadmore",value:function(){a.isWeb?(this.lastScrollContentSize=0,this.lastScrollDistance=0):this.refs.scroller.resetLoadmore()}},{key:"scrollTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.horizontal,r=e.x,n=void 0===r?0:r,l=e.y,s=void 0===l?0:l,c=e.animated,u=void 0===c||c,d=e.offset,p=parseInt(t?n:s||(void 0===d?0:d),10);if(a.isWeex){var f=o(9),h=(0,i.findDOMNode)(this.refs.contentContainer);f.scrollToElement(h.ref,{offset:p,animated:u})}else{var y=document.documentElement.clientWidth/750;t?(0,i.findDOMNode)(this.refs.scroller).scrollLeft=y*p:(0,i.findDOMNode)(this.refs.scroller).scrollTop=y*p}}},{key:"scrollToElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.props.horizontal,n=t.offset,l=void 0===n?0:n,s=t.animated,c=void 0===s||s;if(a.isWeex){o(9).scrollToElement((0,i.findDOMNode)(e),{offset:l,animated:c})}else{var u=document.documentElement.clientWidth/750,d=(0,i.findDOMNode)(e);d&&(r?(0,i.findDOMNode)(this.refs.scroller).scrollLeft=d.offsetLeft+u*l:(0,i.findDOMNode)(this.refs.scroller).scrollTop=d.offsetTop+u*l)}}},{key:"splitChildren",value:function(){var e=this.props.children;if(e){var t=[],o=void 0;Array.isArray(e)||(e=[e]),e.forEach(function(e){e&&(e.type&&e.type.displayName===s.default.displayName?o=e:t.push(e))}),this.childrenAll={contents:t,refreshContent:o}}else this.childrenAll={contents:null,refreshContent:null}}},{key:"hideWebScrollBar",value:function(){var e=document.createElement("style");e.id="rax-scrollview-style",document.head.appendChild(e),e.innerHTML=".rax-scrollview::-webkit-scrollbar{display: none;}"}},{key:"render",value:function(){var e=this.props,t=(e.style,e.scrollEventThrottle),o=e.showsHorizontalScrollIndicator,n=e.showsVerticalScrollIndicator,u=e.onEndReached,d=e.onScrollStart,p=e.onScrollEnd,f=e.onScroll,h=(e.children,e.horizontal),y=e.onEndReachedThreshold,b=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["style","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","onEndReached","onScrollStart","onScrollEnd","onScroll","children","horizontal","onEndReachedThreshold"]),m=this.props.showScrollBar;void 0===m&&(m=h?o:n);var v=[h&&c.default.contentContainerHorizontal,this.props.contentContainerStyle];a.isWeex||h||v.push(c.default.containerWebStyle),this.splitChildren();var g=this.childrenAll.contents,w=this.childrenAll.refreshContent,x=(0,i.createElement)(l.default,{ref:"contentContainer",style:v},g),O=h?c.default.horizontal:c.default.vertical,_=Object.assign({},O,a.isWeb?c.default.scrollerWeb:{},this.props.style);if(a.isWeex){var P=r({ref:"scroller",style:_,showScrollbar:m,onLoadmore:u,onScrollStart:d,onScrollEnd:p,onScroll:f?this.handleScroll:null,loadmoreoffset:parseInt(y,10),loadmoreretry:!0,offsetAccuracy:20,scrollDirection:h?"horizontal":"vertical"},b);return(0,i.createElement)("scroller",P,w,x)}var S=this.handleScroll;t&&(S=function(e,t){var o=void 0,r=void 0,n=void 0,i=void 0,a=0;function l(){i=0,a=+new Date,n=e.apply(o,r),o=null,r=null}return function(){o=this,r=arguments;var e=new Date-a;return i||(e>=t?l():i=setTimeout(l,t-e)),n}}(S,t));var k=r({ref:"scroller",style:_,onScroll:S,id:"scroller_rv"},b);return m||this.hideWebScrollBar(),(0,i.createElement)(l.default,r({},k,{className:"rax-scrollview"}),w?(0,i.createElement)(s.default,r({},w.props,{listId:k.id,refreshingTime:100,refreshing:w.props.refreshing})):null,x)}}]),t}();d.propTypes={style:i.PropTypes.any,onScroll:i.PropTypes.func,onScrollStart:i.PropTypes.func,onScrollEnd:i.PropTypes.func,onEndReached:i.PropTypes.func,horizontal:i.PropTypes.boolean,onEndReachedThreshold:i.PropTypes.number,showsHorizontalScrollIndicator:i.PropTypes.boolean,showsVerticalScrollIndicator:i.PropTypes.boolean,contentContainerStyle:i.PropTypes.any,scrollEventThrottle:i.PropTypes.number,children:i.PropTypes.any},d.defaultProps={style:{},contentContainerStyle:{},horizontal:!1,onScroll:null,onScrollStart:null,onScrollEnd:null,onEndReached:function(){},scrollEventThrottle:50,onEndReachedThreshold:500,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0},t.default=d,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=p(o(29)),i=p(o(30)),a=p(o(74)),l=p(o(75)),s=p(o(76)),c=p(o(77)),u=p(o(78)),d=p(o(8));function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}var f=r({},p(o(79)),d,n,i,a,l,s,c,u);f.injectCore=function(e){return Object.assign(f,e)},t.default=f,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=u(o(2)),l=o(1),s=u(o(22)),c=u(o(14));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=!0;return"defaultVisible"in e&&(r=e.defaultVisible),o.state={visible:r,style:r?p.transparent:p.shown},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"componentDidMount",value:function(){this.state.visible&&(this.props.animate?this.doAnimShow():this.show())}},{key:"show",value:function(){this.props.animate?this.setState({visible:!0,style:p.transparent}):(this.setState({visible:!0,style:p.shown}),this.props.onShow&&this.props.onShow())}},{key:"change",value:function(e){this.setState({visible:e.visible||!this.state.visible}),this.props.onVisibleChanged&&this.props.onVisibleChanged(e)}},{key:"componentDidUpdate",value:function(e,t){this.state.visible&&this.props.animate&&this.doAnimShow()}},{key:"doAnimShow",value:function(){var e=this,t=this.props,o=t.effect,r=t.duration,n=(0,i.findDOMNode)(this.maskNode);this.state.visible&&n&&0==this.state.style.opacity&&(0,s.default)(n,p.shown,{timingFunction:o,duration:r},function(){e.setState({style:p.shown}),e.props.onShow&&e.props.onShow()})}},{key:"hide",value:function(){var e=this,t=this.props,o=t.animate,r=t.effect,n=t.duration;if(o){var i=this.maskNode;i&&setTimeout(function(){(0,s.default)(i,p.transparent,{timingFunction:r,duration:n},function(){e.setState({visible:!1}),e.props.onHide&&e.props.onHide()})},10)}else this.setState({visible:!1}),this.props.onHide&&this.props.onHide()}},{key:"maskPress",value:function(e){this.props.maskClosable&&this.hide(),this.props.onMaskPress&&this.props.onMaskPress()}},{key:"emptyEvent",value:function(e){l.isWeb&&e.stopPropagation()}},{key:"getChildren",value:function(){var e=this,t=this.props,o=t.children,r=t.contentStyle,n=void 0===r?{}:r;return o?Array.isArray(o)?1===o.length?(0,i.cloneElement)(o[0],{onClick:function(t){e.emptyEvent(t)}}):(0,i.createElement)(a.default,{style:n,x:"autowrap",onClick:function(t){return e.emptyEvent(t)}},o):(0,i.cloneElement)(o,{onClick:function(t){e.emptyEvent(t)}}):null}},{key:"render",value:function(){var e=this,t=this.state.visible,o=this.props,n=(o.content,o.children,o.style),a=void 0===n?{}:n,s=(o.onVisibleChanged,o.onClick,o.noPress),c=void 0!==s&&s,u=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(o,["content","children","style","onVisibleChanged","onClick","noPress"]);if(l.isWeex){var d=r({},u,{style:["iOS"===l.appInfo.platform?p.maskNativeIOS:{},a],onClick:function(t){return e.maskPress(t)},onVisibleChanged:function(t){return e.change(t)}});return c&&delete d.onClick,t?(0,i.createElement)("mask",r({ref:function(t){e.maskNode=(0,i.findDOMNode)(t)}},d),this.getChildren()):null}return t?(0,i.createElement)("div",r({},u,{ref:function(t){e.maskNode=(0,i.findDOMNode)(t)},style:[p.maskWeb,this.state.style,a],onClick:function(t){return e.maskPress(t)}}),this.getChildren()):null}}]),t}(),p={maskNativeIOS:{position:"absolute",width:750,left:0,top:0,height:Math.round(c.default.get("screen").height/window.devicePixelRatio)+"wx"},maskWeb:{display:"flex",boxSizing:"border-box",flexDirection:"column",alignContent:"flex-start",flexShrink:0,position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:100},transparent:{opacity:0},shown:{opacity:1}};d.propTypes={},d.defaultProps={animate:!0,effect:"ease-in-out",duration:200,contentStyle:{}},t.default=d,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},i=o(1);var a=750,l=64,s=2;function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(i.isWeex){var o="undefined"!=typeof WXEnvironment?WXEnvironment:{};o.deviceHeight=parseInt(o.deviceHeight,10),o.deviceWidth=parseInt(o.deviceWidth,10);var r=parseFloat(o.scale,10)||s;if(e){t={window:{width:(750*o.deviceHeight/o.deviceWidth).toFixed(),scale:r,fontScale:1},screen:{width:o.deviceHeight,height:o.deviceWidth}};var c=52;r>2&&(c=64),t.window.height=(a-c*r*a/o.deviceWidth).toFixed()}else t={window:{width:a,height:((o.deviceHeight-l*r)*a/o.deviceWidth).toFixed(),scale:r,fontScale:1},screen:{width:o.deviceWidth,height:o.deviceHeight}}}else if(i.isWeb){var u=document.documentElement;(t={window:{width:a,height:(u.clientHeight*a/u.clientWidth).toFixed(),scale:window.devicePixelRatio||s,fontScale:1}}).screen=n({},window.screen),t.screen.width=window.screen.width*window.devicePixelRatio,t.screen.height=window.screen.height*window.devicePixelRatio}return t}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"get",value:function(e){return c()[e]}},{key:"getWindowInfo",value:function(e){return c(e).window}},{key:"getScreenInfo",value:function(e){return c(e).screen}}]),e}();t.default=u,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(o(119));t.default={Detection:r.default},e.exports=t.default},function(e,t){e.exports=require("@weex-module/expressionBinding")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(o(121));t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.default)(e);return{"Ep-Tabbar":{wrapContainer:{position:"absolute",top:"-1rem",left:"0rem",bottom:"0rem",width:"750rem",overflow:"hidden"},header:{position:"absolute",flexDirection:"row",width:"750rem",zIndex:"10"},nav:{position:"absolute",width:t["tab-size-width"],height:t["nav-size-height"],backgroundColor:t["normal-bg-color"],zIndex:"10"},navContent:{height:t["nav-size-height"]},tabInner:{position:"relative",width:t["tab-size-width"],height:t["nav-size-height"],flexDirection:"row"},container:{left:"0rem",top:"0rem",width:"750rem"},slider:{position:"absolute",top:"0",left:"0",bottom:"0",width:"750rem"},eachTab:{position:"absolute",top:"0",left:"0",bottom:"0",width:750}}}},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}(o(144)),n=l(o(52)),i=o(149),a=l(o(150));function l(e){return e&&e.__esModule?e:{default:e}}t.default={is:r,Location:window.location,urlHelper:n.default,url:i.HttpUrl,urlHandler:a.default},e.exports=t.default},function(e,t){e.exports=require("@weex-module/navigator")},function(e,t){e.exports=require("@weex-module/modal")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),n=function(e){return e&&e.__esModule?e:{default:e}}(o(12));var i="themeStyle",a="themeCachedStyle",l=void 0;var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this[i]=t,this[i].Core=Object.assign(n.default,this[i].Core),this[a]={}}return r(e,[{key:"createComponentStyle",value:function(e){return this[a][e],this[a][e]}},{key:"getComponentRelavantStyle",value:function(e){}}],[{key:"setDefaultThemeStyle",value:function(t){l=new e(t)}},{key:"getDefaultTheme",value:function(){return l||(l=new e({Core:n.default})),l}}]),e}();t.default=s,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=function(e){return e&&e.__esModule?e:{default:e}}(o(112));function i(e){var t={translateX:"translateX\\(([-+]?\\w+)\\)",translateY:"translateY\\(([-+]?\\w+)\\)",translate:"translate\\(([-+]?\\w+)\\,\\s?([-+]?\\w+)\\)"};for(var o in t){var r=new RegExp(t[o]);if(e.match(r))if("translateX"===o||"translateY"===o){var n=e.match(r);parseInt(n[1],10);e=e.replace(n[1],a(n[1]))}else if("translate"===o){var i=(n=e.match(r))[1],l=n[2];e="translate("+a(i)+","+a(l)+")"}}return e}function a(e){return r.isWeex?parseInt(e,10):parseInt(e,10)*(document.documentElement.clientWidth/750).toString()+"px"}function l(e,t){for(var o=0;o<t.length;o++)if(e===t[o])return!0;return!1}t.default=function(e,t,o,r){for(var s in t)if("transform"===s||"webkitTransform"==s)t[s]=i(t[s]);else if(l(s,["top","left","height","bottom","right","width"])){var c=t[s].match(/(\d+)(rem){0,1}/);t[s]=t[s].replace(c[0],a(c[1]))}(0,n.default)(e,t,o,r)},e.exports=t.default},function(e,t){e.exports=require("@weex-module/animation")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=o(0),i="function"!=typeof callNative;t.default={createEle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2],r=document.createElement(e);return o&&(Array.isArray(o)||(o=[o]),o.forEach(function(e){e&&r.appendChild(e)})),(0,n.setNativeProps)(r,t),r},append:function(e){document.body.appendChild(e)},ready:function(e){if(e&&(callbacks=callbacks||[],callbacks.push(e)),document.body)for(clearInterval(timer),timer=null;callbacks.length;)callbacks.shift()();else timer||(timer=setInterval(bodyReady,16))},getRect:function(e){return new Promise(function(t,a){var l={width:null,height:null,isSuccess:!1};e||a(l);var s=(0,n.findDOMNode)(e);if(s){if(i){var c=s.getBoundingClientRect();t(r({isSuccess:!0},c))}}else try{o(9).getComponentRect(s.ref,function(e){e&&e.size?t(r({isSuccess:!0},e.size)):a(l)})}catch(e){a(l)}})}},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new(function(e){return e&&e.__esModule?e:{default:e}}(o(120)).default);t.default={on:r.on,emit:r.emit,off:r.off},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=o(1),l=function(e){return e&&e.__esModule?e:{default:e}}(o(123));var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"render",value:function(){if(a.isWeex){var e=this.props.refreshing?"show":"hide";return(0,i.createElement)("refresh",r({},this.props,{display:e}))}return(0,i.createElement)(l.default,this.props)}}]),t}();s.displayName="RefreshControl",t.default=s,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n="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},i=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),a=o(0),l=o(1),s=o(136);var c=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.fixedFont=o.commonConfigs&&o.commonConfigs.fixedFont,"fixedFont"in e&&(r.fixedFont=e.fixedFont),r.getRef=r.getRef.bind(r),r.setNativeFormatRule=r.setNativeFormatRule.bind(r),r.inputHandler=r.inputHandler.bind(r),r.returnHandler=r.returnHandler.bind(r),r.changeHandler=r.changeHandler.bind(r),r.focusHandler=r.focusHandler.bind(r),r.blurHandler=r.blurHandler.bind(r),r.focus=r.focus.bind(r),r.blur=r.blur.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),i(t,[{key:"shouldComponentUpdate",value:function(e){return null!==e.value?e.value!==this.props.value||e.readOnly!==this.props.readOnly||e.type!==this.props.type||e.disabled!==this.props.disabled||e.maxLength!==this.props.maxLength||e["data-style"]!==this.props["data-style"]||e.style!==this.props.style||e.placeholder!==this.props.placeholder:n(e.value)!==n(this.props.value)||e.readOnly!==this.props.readOnly||e.type!==this.props.type||e.disabled!==this.props.disabled||e.maxLength!==this.props.maxLength||e.style!==this.props["data-style"]||e.style!==this.props.style||e.placeholder!==this.props.placeholder}},{key:"getValue",value:function(){return l.isWeb?this.refs.input.value:this.refs.input.attr.value}},{key:"getRef",value:function(){return this.refs.input}},{key:"setNativeFormatRule",value:function(e){this.refs.input.setTextFormatter(e)}},{key:"trigger",value:function(e){if("string"==typeof e&&(e=this.props[e]),"function"==typeof e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];return e.apply(this,o)}}},{key:"focusHandler",value:function(e){this.trigger("onFocus",e)}},{key:"focus",value:function(){this.focusInput()}},{key:"focusInput",value:function(){this.refs.input.focus&&this.refs.input.focus()}},{key:"blur",value:function(){this.blurInput()}},{key:"blurInput",value:function(){this.refs.input.blur&&this.refs.input.blur()}},{key:"blurHandler",value:function(e){this.setState({focus:!1}),this.trigger("onBlur",e)}},{key:"returnHandler",value:function(e){l.isWeb?13===e.keyCode&&this.trigger("onReturn",(0,s.genEventObject)(e)):this.trigger("onReturn",e)}},{key:"inputHandler",value:function(e){this.trigger("onInput",(0,s.getText)(e),(0,s.genEventObject)(e))}},{key:"changeHandler",value:function(e){var t=(0,s.getText)(e),o=this.props.maxLength;o&&t&&t.length>o||("value"in this.props&&this.setState({value:t}),this.trigger("onChange",t,(0,s.genEventObject)(e)))}},{key:"render",value:function(){var e=this.props,t=e.value,o=(e.onFocus,e.onInput,e.onBlur,e.readOnly),n=e.disabled,i=e.style,s=e.maxLength,c=e.multiple,d=e.returnKeyType,p=e.autoFocus,f=(e.fixedFont,e.rows),h=e.type,y=e.placeholderColor,b=function(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["value","onFocus","onInput","onBlur","readOnly","disabled","style","maxLength","multiple","returnKeyType","autoFocus","fixedFont","rows","type","placeholderColor"]),m={onChange:this.changeHandler,onInput:this.inputHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,disabled:n,rows:f,returnKeyType:d,maxlength:s,readOnly:o,autofocus:p,placeholderColor:y,style:Object.assign({},u.default,l.isWeb?u.defaultWeb:{},i)};c||(m.type=h),"value"in this.props&&(m.value=t),l.isWeb?(m.onKeyUp=this.returnHandler,["readOnly","autofocus"].map(function(e){e in m&&!m[e]&&delete m[e]})):(m.onReturn=this.returnHandler,m["data-placeholder-color"]=y,c&&!this.props.onReturn&&(delete m.onReturn,delete m.returnKeyType));return c?l.isWeb?(0,a.createElement)("textarea",r({},b,m,{ref:"input"}),m.value):(0,a.createElement)("textarea",r({},b,m,{ref:"input"})):(0,a.createElement)("input",r({},b,m,{ref:"input"}))}}]),t}();c.contextTypes={androidConfigs:a.PropTypes.any},c.defaultProps={rows:2,style:{},readOnly:!1};var u={default:{backgroundColor:"transparent",borderWidth:0,color:"#000000",padding:0,fontSize:24,lineHeight:60},defaultWeb:{width:"100%",boxSizing:"border-box",outline:"none",appearance:"none"}};c.displayName="BaseInput",t.default=c,e.exports=t.default},function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(e){return e&&e.__esModule?e:{default:e}}(o(180));function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}e.exports=function(){var e,t,o,a,l,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=(0,n.default)(s),u=s.Core;return{Picker:(l={mask:{backgroundColor:"rgba(0, 0, 0, .7)"},picker:{position:"fixed",bottom:0,left:0,width:750,backgroundColor:c["background-color"]}},i(l,"picker-toolbar",r({backgroundColor:c["toolbar-background-color"]},u.border(c["toolbar-line-width"],c["toolbar-line-style"],c["toolbar-line-color"],"bottom"),{flexDirection:"row",justifyContent:"center",alignItems:"center",height:c["toolbar-height"]},u.padding(0,c["toolbar-padding-lr"]),{fontSize:c["toolbar-title-font-size"]})),i(l,"picker-cancel",{width:"20%",overflow:"hidden",fontSize:c["toolbar-button-font-size"],textAlign:"left",color:c["toolbar-cancel-color"]}),i(l,"picker-done",{width:"20%",overflow:"hidden",fontSize:c["toolbar-button-font-size"],textAlign:"right",color:c["toolbar-done-color"]}),i(l,"picker-title",{flex:1,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:c["toolbar-title-color"],fontSize:c["toolbar-title-font-size"]}),i(l,"picker-content",{flexDirection:"row",height:c.height}),i(l,"picker-column",(e={position:"relative",width:"100%",height:c.height,flex:1,overflow:"hidden"},i(e,"-webkit-transition","width ease 0.2s"),i(e,"transition","width ease 0.2s"),e)),i(l,"picker-column-mask",(t={position:"absolute",left:0,top:0,height:"100%",width:"100%"},i(t,"background-image","-webkit-linear-gradient(top, hsla(0,0%,100%,.95), hsla(0,0%,100%,.6)), -webkit-linear-gradient(bottom,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6))"),i(t,"background-image","linear-gradient(180deg, hsla(0,0%,100%,.95), hsla(0,0%,100%,.6)), linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6))"),i(t,"background-position","top, bottom"),i(t,"background-size",c["mask-background-size"]),i(t,"background-repeat","no-repeat"),t)),i(l,"picker-column-indicator",(o={position:"absolute",left:0,top:c["indicator-top"],height:c["item-height"],width:"100%"},i(o,"background-image","-webkit-linear-gradient(top, "+c["item-line-color"]+","+c["item-line-color"]+",transparent, transparent), -webkit-linear-gradient(bottom, "+c["item-line-color"]+","+c["item-line-color"]+",transparent, transparent)"),i(o,"background-image","linear-gradient(to bottom, "+c["item-line-color"]+","+c["item-line-color"]+", transparent, transparent), linear-gradient(to top, "+c["item-line-color"]+","+c["item-line-color"]+",transparent, transparent)"),i(o,"background-position","top, bottom"),i(o,"background-size","100% 1px"),i(o,"background-repeat","no-repeat"),o)),i(l,"picker-column-scroll",(a={},i(a,"-webkit-transform","translate3d(0, 0, 0)"),i(a,"transform","translate3d(0, 0, 0)"),a)),i(l,"picker-item",{height:c["item-height"],lineHeight:c["item-height"],textAlign:"center",overflow:"hidden",textOverflow:"ellipsis"}),i(l,"picker-item-text",{color:c["item-text-color"],fontSize:c["item-font-size"]}),i(l,"picker-bottom-button",{justifyContent:"center",alignItems:"center",backgroundColor:c["bottom-button-bg-color"],height:c["bottom-button-height"]}),i(l,"picker-bottom-button-text",{color:c["bottom-button-color"],fontSize:c["bottom-button-font-size"]}),l)}}},function(e,t,o){"use strict";function r(e,t){return e*t}Object.defineProperty(t,"__esModule",{value:!0});var n=(0,o(8).vLoader)(8),i={"size-base":n,"s-0":r(n,0),"s-1":r(n,1),"s-2":r(n,2),"s-3":r(n,3),"s-4":r(n,4),"s-5":r(n,5),"s-6":r(n,6),"s-7":r(n,7),"s-8":r(n,8),"s-9":r(n,9),"s-10":r(n,10),"s-11":r(n,11),"s-12":r(n,12),"s-13":r(n,13),"s-14":r(n,14),"s-15":r(n,15),"s-16":r(n,16),"s-17":r(n,17),"s-18":r(n,18),"s-19":r(n,19),"s-20":r(n,20)};t.default=i,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),n=(0,r.vLoader)("transparent"),i=(0,r.vLoader)("#FFFFFF"),a=(0,r.vLoader)("#000000"),l=(0,r.vLoader)("#E4F0FD"),s=(0,r.vLoader)("#3089DC"),c=(0,r.vLoader)("#1170BC"),u=(0,r.vLoader)("#E6E7EB"),d=(0,r.vLoader)("#DCDEE3"),p=(0,r.vLoader)("#C4C6CF"),f=(0,r.vLoader)("#A0A2AD"),h=(0,r.vLoader)("#F7F8FA"),y=(0,r.vLoader)("#F2F3F7"),b=(0,r.vLoader)("#EBECF0"),m=(0,r.vLoader)("#CCCCCC"),v=(0,r.vLoader)("#999999"),g=(0,r.vLoader)("#666666"),w=(0,r.vLoader)("#333333"),x=(0,r.vLoader)("#222222"),O=(0,r.vLoader)("#FFF3E0"),_=(0,r.vLoader)("#FFA033"),P=(0,r.vLoader)("#ED6F00"),S=(0,r.vLoader)("#FFEBEE"),k=(0,r.vLoader)("#F44336"),T=(0,r.vLoader)("#DB2F23"),C={"color-transparent":n,"color-white":i,"color-black":a,"color-brand1-1":l,"color-brand1-6":s,"color-brand1-9":c,"color-line1-1":u,"color-line1-2":d,"color-line1-3":p,"color-line1-4":f,"color-fill1-1":h,"color-fill1-2":y,"color-fill1-3":b,"color-text1-1":m,"color-text1-2":v,"color-text1-3":g,"color-text1-4":w,"color-text1-5":x,"color-success-1":(0,r.vLoader)("#F1F8E9"),"color-success-2":(0,r.vLoader)("#1DC11D"),"color-success-3":(0,r.vLoader)("#0DA80D"),"color-notice-1":(0,r.vLoader)("#E3F2FD"),"color-notice-2":(0,r.vLoader)("#2196F3"),"color-notice-3":(0,r.vLoader)("#1681D9"),"color-warning-1":O,"color-warning-2":_,"color-warning-3":P,"color-error-1":S,"color-error-2":k,"color-error-3":T,"color-help-1":(0,r.vLoader)("#FDF5FF"),"color-help-2":(0,r.vLoader)("#B921F3"),"color-help-3":(0,r.vLoader)("#A116D9"),"color-link-1":(0,r.vLoader)("#FDF5FF"),"color-link-2":(0,r.vLoader)("#2196F3"),"color-link-3":(0,r.vLoader)("#A116D9"),"color-other-1":(0,r.vLoader)("#FDF5FF")};t.default=C,e.exports=t.default},function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r="undefined"==typeof callNative,n="object"===(void 0===e?"undefined":o(e)),i="function"==typeof callNative||"object"===("undefined"==typeof WXEnvironment?"undefined":o(WXEnvironment))&&"Web"!==WXEnvironment.platform,a="undefined"!=typeof __fbBatchedBridgeConfig;t.isWeb=r,t.isNode=n,t.isWeex=i,t.isReactNative=a,t.appInfo={},t.isQNWeb=!1,t.isQNWeex=!1,t.params={},t.runtimeInfo={}}).call(this,o(83))},function(e,t,o){"use strict";function r(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}Object.defineProperty(t,"__esModule",{value:!0}),t.borderSeperate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["Color","Style","Width"];e.border&&("none"===e.border&&(e.borderWidth=0),delete e.border);return t.map(function(t){if(e.hasOwnProperty("border"+t)){var o,n=(r(o={},"borderTop"+t,e["border"+t]),r(o,"borderLeft"+t,e["border"+t]),r(o,"borderRight"+t,e["border"+t]),r(o,"borderBottom"+t,e["border"+t]),o),i=!1;["Top","Left","Right","Bottom"].map(function(o){e.hasOwnProperty("border"+o+t)&&(i=!0,n["border"+o+t]=e["border"+o+t])}),i&&(delete e["border"+t],e=Object.assign({},n,e))}}),e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=i(o(99));function i(e){return e&&e.__esModule?e:{default:e}}var a=i(o(107)).default;r.isWeex&&(a=n.default),t.default=a,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),i=o(0),a=p(o(4)),l=o(1),s=o(3),c=p(o(7)),u=p(o(5)),d=p(o(37));function p(e){return e&&e.__esModule?e:{default:e}}var f=["color","fontSize","fontStyle","fontWeight","lineHeight"],h=["color","backgroundColor","borderColor"],y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.onPress=o.onPress.bind(o),o.onTextPress=o.onTextPress.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),n(t,[{key:"onPress",value:function(e){this.props.disabled||this.props.onPress(e)}},{key:"onTextPress",value:function(e){this.props.disabled||(l.isWeb&&e.stopPropagation(),this.props.onPress(e))}},{key:"render",value:function(){var e,t=this.props,o=t.size,n=t.shape,l=t.type,s=t.style,d=t.disabled,p=t.block,y=t.loading,b=t.