weex-nuke
Version:
基于 Rax 、Weex 的高性能组件体系 ~~
3 lines • 167 kB
JavaScript
// {"framework" : "Rax"}
define("demos/search-bar",function(require){!function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="/",__webpack_require__(0)}([function(module,exports,__webpack_require__){"use strict";function _defaults(obj,defaults){for(var keys=Object.getOwnPropertyNames(defaults),i=0;i<keys.length;i++){var key=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void 0===obj[key]&&Object.defineProperty(obj,key,value)}return obj}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!==("undefined"==typeof call?"undefined":_typeof(call))&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof superClass?"undefined":_typeof(superClass)));subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):_defaults(subClass,superClass))}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_rax=__webpack_require__(1),_nukeSearchBar=__webpack_require__(177),_nukeSearchBar2=_interopRequireDefault(_nukeSearchBar),_nukeThemeProvider=__webpack_require__(39),_nukeDemoHelper=__webpack_require__(63),App=function(_Component){function NukeDemoIndex(){_classCallCheck(this,NukeDemoIndex);var _this=_possibleConstructorReturn(this,(NukeDemoIndex.__proto__||Object.getPrototypeOf(NukeDemoIndex)).call(this));return _this.state={showSearchButton:!0,value2:""},_this}return _inherits(NukeDemoIndex,_Component),_createClass(NukeDemoIndex,[{key:"render",value:function(){return(0,_rax.createElement)(_nukeThemeProvider.StyleProvider,{style:(0,_nukeDemoHelper.decodeVar)(this.props.variable)},(0,_rax.createElement)(_nukeDemoHelper.DemoContainer,null,(0,_rax.createElement)(_nukeDemoHelper.DemoSection,{title:"normal"},(0,_rax.createElement)(_nukeDemoHelper.Demo,null,(0,_rax.createElement)(_nukeDemoHelper.DemoItem,null,(0,_rax.createElement)(_nukeSearchBar2["default"],{style:styles.wrap,placeholder:"输入搜索关键词"})))),(0,_rax.createElement)(_nukeDemoHelper.DemoSection,{title:"无按钮"},(0,_rax.createElement)(_nukeDemoHelper.Demo,null,(0,_rax.createElement)(_nukeDemoHelper.DemoItem,null,(0,_rax.createElement)(_nukeSearchBar2["default"],{placeholder:"Search",style:styles.wrap,showSearchButton:!1}))))))}}]),NukeDemoIndex}(_rax.Component),styles={wrap:{backgroundColor:"#EBECF0"}};window.renderDemo=function(lang,variable){(0,_rax.render)((0,_rax.createElement)(App,{variable:variable}))},renderDemo("en-us",window.THEME_VARIABLE),(0,_nukeDemoHelper.initDemo)("search-bar")},function(module,exports){module.exports=require("rax")},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!==("undefined"==typeof call?"undefined":_typeof(call))&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof superClass?"undefined":_typeof(superClass)));subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_rax=__webpack_require__(1),_nukeHelper=__webpack_require__(3),_styles=__webpack_require__(18),_styles2=_interopRequireDefault(_styles),isWeex="function"==typeof callNative,View=function(_Component){function View(){return _classCallCheck(this,View),_possibleConstructorReturn(this,(View.__proto__||Object.getPrototypeOf(View)).apply(this,arguments))}return _inherits(View,_Component),_createClass(View,[{key:"styleFix",value:function(style){var result={};return style&&(result=(0,_nukeHelper.borderSeperate)(style),result=_nukeHelper.hairLine.fixBorder(result)),result}},{key:"render",value:function(){var _props=this.props,style=_props.style,others=_objectWithoutProperties(_props,["style"]),fixedStyle=this.styleFix(style),nativeProps=_extends({},others,{style:fixedStyle});return isWeex?(0,_rax.createElement)("div",nativeProps):(0,_rax.createElement)("div",_extends({},this.props,{style:[_styles2["default"].initial,fixedStyle]}))}}]),View}(_rax.Component);View.propTypes={style:_rax.PropTypes.any},View.defaultProps={style:null},View.contextTypes={androidConfigs:_rax.PropTypes.any,compatibilityConfigs:_rax.PropTypes.any},exports["default"]=View,module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj["default"]=obj,newObj}Object.defineProperty(exports,"__esModule",{value:!0});var _calcFixedFont=__webpack_require__(4),_hairLine=__webpack_require__(10),_textKeys=__webpack_require__(12),_bubbleKeys=__webpack_require__(13),_fixSmallUnit=__webpack_require__(14),_borderSeperate=__webpack_require__(11),_hex=__webpack_require__(15),hex=_interopRequireWildcard(_hex),_layout=__webpack_require__(16),layout=_interopRequireWildcard(_layout),_rem=__webpack_require__(17),rem=_interopRequireWildcard(_rem);exports["default"]={calcTextSize:_calcFixedFont.calcFixedFont,hairLine:_hairLine.hairLine,textKeys:_textKeys.textKeys,borderSeperate:_borderSeperate.borderSeperate,bubbleKeys:_bubbleKeys.bubbleKeys,fixSmallUnit:_fixSmallUnit.fixSmallUnit,hex:hex,layout:layout,rem:rem},module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function fitPad(style){var result=_extends({},style),fontSize=style.fontSize;return("string"==typeof fontSize&&fontSize.indexOf("rem")>0||"number"==typeof fontSize)&&(fontSize=parseInt(fontSize,10)),"string"==typeof fontSize&&fontSize.indexOf("px")>0&&(fontSize=2*parseInt(fontSize,10)),result.fontSize=fontSize,result}function calcFixedFont(style){var fixedFont=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],shouldFitPad=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!style||!style.fontSize||!fixedFont)return style;if(isIpad&&shouldFitPad)return fitPad(style);var result=_extends({},style),fontSize=style.fontSize;return("string"==typeof fontSize&&fontSize.indexOf("rem")>0||"number"==typeof fontSize)&&(fontSize=Math.floor(parseInt(fontSize,10)/2)),"string"==typeof fontSize&&fontSize.indexOf("px")>0&&(fontSize=parseInt(fontSize,10)),result.fontSize=fontSize+(_nukeEnv.isWeb?"px":"wx"),result}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target};exports.calcFixedFont=calcFixedFont;var _nukeEnv=__webpack_require__(5),isIpad=void 0;if(_nukeEnv.isWeb)isIpad=navigator.userAgent.indexOf("iPad")>-1;else{var env="string"!=typeof WXEnvironment?WXEnvironment:{};isIpad="ios"===env.platform.toLowerCase()&&env.deviceModel.toLowerCase().indexOf("ipad")>-1}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _native=__webpack_require__(6),_web=__webpack_require__(8),isWeex="function"==typeof callNative,Entry=void 0;Entry=isWeex?_native.nativeEnv:_web.webEnv,exports["default"]=Entry,module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj["default"]=obj,newObj}var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0}),exports.nativeEnv=void 0;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)},_env=__webpack_require__(7),env=_interopRequireWildcard(_env),nativeEnv=Object.assign({},env),appInfo="",params={},runtimeInfo={},WeexEnv="undefined"!=typeof window&&window.hasOwnProperty("__weex_env__")?Object.assign({},window.__weex_env__):"undefined"!=typeof WXEnvironment?Object.assign({},WXEnvironment):{};"QN"===WeexEnv.appName&&(nativeEnv.isQNWeb=!1,nativeEnv.isQNWeex=!0),appInfo=Object.assign({},WeexEnv),params="undefined"!=typeof __weex_data__?__weex_data__:{},runtimeInfo="undefined"!=typeof __weex_options__?__weex_options__:{},runtimeInfo.weex&&"object"===_typeof(runtimeInfo.weex.config)&&(runtimeInfo=_extends({},runtimeInfo,runtimeInfo.weex.config)),nativeEnv.appInfo=appInfo,nativeEnv.params=params,nativeEnv.runtimeInfo=runtimeInfo,exports.nativeEnv=nativeEnv},function(module,exports){(function(global){"use strict";var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)},isWeb="undefined"==typeof callNative,isNode="object"===("undefined"==typeof global?"undefined":_typeof(global)),isWeex="function"==typeof callNative||"object"===("undefined"==typeof WXEnvironment?"undefined":_typeof(WXEnvironment))&&"Web"!==WXEnvironment.platform,isReactNative="undefined"!=typeof __fbBatchedBridgeConfig,appInfo={},params={},runtimeInfo={};exports.isWeb=isWeb,exports.isNode=isNode,exports.isWeex=isWeex,exports.isReactNative=isReactNative,exports.appInfo=appInfo,exports.isQNWeb=!1,exports.isQNWeex=!1,exports.params=params,exports.runtimeInfo=runtimeInfo}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj["default"]=obj,newObj}Object.defineProperty(exports,"__esModule",{value:!0}),exports.webEnv=void 0;var _miniUaParser=__webpack_require__(9),_env=__webpack_require__(7),env=_interopRequireWildcard(_env),webEnv=Object.assign({},env),userAgent="";try{userAgent=navigator.userAgent.toLowerCase()}catch(e){}var appInfo="",params={},runtimeInfo={},parsedUA=(new _miniUaParser.UAParser).getResult();appInfo={platform:parsedUA.os.name||"",osVersion:parsedUA.os.version||"",isInAliApp:/AliApp/i.test(userAgent),deviceModel:parsedUA.device.model,isWindVane:/WindVane/i.test(userAgent)};var appVersion=void 0,appName=void 0;if(appInfo.isInAliApp){try{var matchResult=userAgent.match(/AliApp\(([a-z-A-Z]{1,20})\/(\d+(\.\d+){0,3})?\)/i);matchResult&&matchResult.length>=3&&(appName=matchResult[1],appVersion=matchResult[2])}catch(e){}appName&&(appInfo.appName=appName),appVersion&&(appInfo.appVersion=appVersion)}if("QN"===appInfo.appName&&(webEnv.isQNWeb=!0,webEnv.isQNWeex=!1),window.location.search){var searchString=window.location.search.substring(1),i=void 0,val=void 0,paramsArr=searchString.split("&");for(i=0;i<paramsArr.length;i+=1)val=paramsArr[i].split("="),params[val[0]]=decodeURIComponent(val[1])}webEnv.appInfo=appInfo,webEnv.params=params,webEnv.runtimeInfo=runtimeInfo,webEnv.UAParser=_miniUaParser.UAParser,exports.webEnv=webEnv},function(module,exports){"use strict";var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)},EMPTY="",UNKNOWN="?",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION="version",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",util={extend:function(regexes,extensions){var margedRegexes={};for(var i in regexes)extensions[i]&&extensions[i].length%2===0?margedRegexes[i]=extensions[i].concat(regexes[i]):margedRegexes[i]=regexes[i];return margedRegexes},has:function(str1,str2){return"string"==typeof str1&&str2.toLowerCase().indexOf(str1.toLowerCase())!==-1},lowerize:function(str){return str.toLowerCase()},major:function(version){return"string"==typeof version?version.replace(/[^\d.]/g,"").split(".")[0]:void 0},trim:function(str){return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},mapper={rgx:function(ua,arrays){for(var i=0,j=void 0,k=void 0,p=void 0,q=void 0,matches=void 0,match=void 0;i<arrays.length&&!matches;){var regex=arrays[i],props=arrays[i+1];for(j=k=0;j<regex.length&&!matches;)if(matches=regex[j++].exec(ua),matches&&"undefined"!=typeof props)for(p=0;p<props.length;p++)match=matches[++k],q=props[p],"object"===("undefined"==typeof q?"undefined":_typeof(q))&&q.length>0?2==q.length?"function"==typeof q[1]?this[q[0]]=q[1].call(this,match):this[q[0]]=q[1]:3==q.length?"function"!=typeof q[1]||q[1].exec&&q[1].test?this[q[0]]=match?match.replace(q[1],q[2]):void 0:this[q[0]]=match?q[1].call(this,match,q[2]):void 0:4===q.length&&(this[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):void 0):this[q]=match||void 0;i+=2}},str:function(_str,map){for(var i in map)if("object"===_typeof(map[i])&&map[i].length>0){for(var j=0;j<map[i].length;j++)if(util.has(map[i][j],_str))return i===UNKNOWN?void 0:i}else if(util.has(map[i],_str))return i===UNKNOWN?void 0:i;return _str}},regexes={browser:[[/(opera\smini)\/([\w.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w.-]+)/i,/(opera).+version\/([\w.]+)/i,/(opera)[\/\s]+([\w.]+)/i],[NAME,VERSION],[/(opios)[\/\s]+([\w.]+)/i],[[NAME,"Opera Mini"],VERSION],[/\s(opr)\/([\w.]+)/i],[[NAME,"Opera"],VERSION],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[NAME,"UCBrowser"],VERSION],[/(micromessenger)\/([\w\.]+)/i],[[NAME,"WeChat"],VERSION],[/(QQ)\/([\d\.]+)/i],[NAME,VERSION],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[NAME,VERSION],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[VERSION,[NAME,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[VERSION,[NAME,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[VERSION,[NAME,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 WebView"],VERSION],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[NAME,/(.+(?:g|us))(.+)/,"$1 $2"],VERSION],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[VERSION,[NAME,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[[NAME,"Dolphin"],VERSION],[/(dolfin)\/([\w\.]+)/i],[[NAME,"Chrome"],VERSION],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[NAME,"Opera Coast"],VERSION],[/(coast)\/([\w\.]+)/i],[VERSION,[NAME,"Firefox"]],[/fxios\/([\w\.-]+)/i],[VERSION,[NAME,"Mobile Safari"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[VERSION,NAME],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[[NAME,"GSA"],VERSION],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[NAME,"Netscape"],VERSION],[/(navigator|netscape)\/([\w\.-]+)/i],[NAME,VERSION],[/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/applecoremedia\/[\w\.]+ \((ipad)/],[MODEL,[VENDOR,"Apple"],[TYPE,TABLET]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[MODEL,VENDOR,[TYPE,MOBILE]],[/\((ip[honed|\s\w*]+);/i],[MODEL,[VENDOR,"Apple"],[TYPE,MOBILE]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[VENDOR,"Sony"],[MODEL,"Xperia Tablet"],[TYPE,TABLET]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[MODEL,[VENDOR,"Sony"],[TYPE,CONSOLE]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[VENDOR,MODEL,[TYPE,TABLET]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/(nexus\s9)/i],[MODEL,[VENDOR,"HTC"],[TYPE,TABLET]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[MODEL,[VENDOR,"Huawei"],[TYPE,MOBILE]],[/(microsoft);\s(lumia[\s\w]+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[[VENDOR,util.trim],[MODEL,util.trim],[TYPE,SMARTTV]],[/\(dtv[\);].+(aquos)/i],[MODEL,[VENDOR,"Sharp"],[TYPE,SMARTTV]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[VENDOR,"Samsung"],MODEL,[TYPE,TABLET]],[/smart-tv.+(samsung)/i],[VENDOR,[TYPE,SMARTTV],MODEL],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[VENDOR,"Samsung"],MODEL,[TYPE,MOBILE]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[VENDOR,"Nokia"],MODEL,[TYPE,MOBILE]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],[MODEL,[VENDOR,"LG"],[TYPE,MOBILE]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[MODEL,[VENDOR,"Lenovo"],[TYPE,TABLET]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/crkey/i],[[MODEL,"Chromecast"],[VENDOR,"Google"]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w?)?[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[MODEL,/_/g," "],[VENDOR,"Xiaomi"],[TYPE,MOBILE]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+)?)\s+build/i],[[MODEL,/_/g," "],[VENDOR,"Xiaomi"],[TYPE,TABLET]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[MODEL,[VENDOR,"Meizu"],[TYPE,TABLET]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[MODEL,[VENDOR,"OnePlus"],[TYPE,MOBILE]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[[VENDOR,"ZTE"],MODEL,[TYPE,TABLET]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[TYPE,util.lowerize],VENDOR,MODEL]],os:[[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i],[NAME,VERSION],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[NAME,"Chromium OS"],VERSION],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[VERSION,/_/g,"."],[NAME,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[NAME],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[NAME,"Mac OS"],[VERSION,/_/g,"."]]]},UAParser=function UAParser(uastring,extensions){if("object"===("undefined"==typeof uastring?"undefined":_typeof(uastring))&&(extensions=uastring,uastring=void 0),!(this instanceof UAParser))return new UAParser(uastring,extensions).getResult();var ua=uastring||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:EMPTY),rgxmap=extensions?util.extend(regexes,extensions):regexes;return this.getBrowser=function(){var browser={name:void 0,version:void 0};return mapper.rgx.call(browser,ua,rgxmap.browser),browser.major=util.major(browser.version),browser},this.getDevice=function(){var device={vendor:void 0,model:void 0,type:void 0};return mapper.rgx.call(device,ua,rgxmap.device),device},this.getOS=function(){var os={name:void 0,version:void 0};return mapper.rgx.call(os,ua,rgxmap.os),os},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),os:this.getOS(),device:this.getDevice()}},this.getUA=function(){return ua},this.setUA=function(uastring){return ua=uastring,this},this};UAParser.VERSION="0.7.17",UAParser.BROWSER={NAME:NAME,MAJOR:"major",VERSION:VERSION},UAParser.DEVICE={MODEL:MODEL,VENDOR:VENDOR,TYPE:TYPE,CONSOLE:CONSOLE,MOBILE:MOBILE,SMARTTV:SMARTTV,TABLET:TABLET,WEARABLE:"wearable",EMBEDDED:"embedded"},UAParser.OS={NAME:NAME,VERSION:VERSION},exports.UAParser=UAParser},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hairLine=void 0;var _nukeEnv=__webpack_require__(5),_borderSeperate=__webpack_require__(11),hairLine={};hairLine.detect=function(){var hairLineFlag=void 0;if(!_nukeEnv.isWeb)return!0;if(window.OffsetHeightForRxBorder)hairLineFlag=window.OffsetHeightForRxBorder;else if(window&&window.devicePixelRatio&&window.devicePixelRatio>=2){var testElem=document.createElement("div");testElem.style.border=".5px solid transparent",testElem.style.height=0,testElem.style.boxSizing="content-box",document.body.appendChild(testElem),hairLineFlag=1===testElem.offsetHeight,window.OffsetHeightForRxBorder=hairLineFlag,document.body.removeChild(testElem)}return hairLineFlag},hairLine.fixBorder=function(style){if(!_nukeEnv.isWeb)return style;var borderWidthHair=hairLine.detect()?"0.5px":"1px";return style=(0,_borderSeperate.borderSeperate)(style,["Width"]),["Top","Left","Right","Bottom"].map(function(direction){style["border"+direction+"Width"]&&1===parseFloat(style["border"+direction+"Width"],10)&&(style["border"+direction+"Width"]=borderWidthHair)}),style.borderWidth&&1===parseFloat(style.borderWidth,10)&&(style.borderWidth=borderWidthHair),style},exports.hairLine=hairLine},function(module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function borderSeperate(style){var attrs=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["Color","Style","Width"];return style.border&&("none"===style.border&&(style.borderWidth=0),delete style.border),attrs.map(function(attr){if(style.hasOwnProperty("border"+attr)){var _attrObj,attrObj=(_attrObj={},_defineProperty(_attrObj,"borderTop"+attr,style["border"+attr]),_defineProperty(_attrObj,"borderLeft"+attr,style["border"+attr]),_defineProperty(_attrObj,"borderRight"+attr,style["border"+attr]),_defineProperty(_attrObj,"borderBottom"+attr,style["border"+attr]),_attrObj),deleteFlag=!1;["Top","Left","Right","Bottom"].map(function(direction){style.hasOwnProperty("border"+direction+attr)&&(deleteFlag=!0,attrObj["border"+direction+attr]=style["border"+direction+attr])}),deleteFlag&&(delete style["border"+attr],style=Object.assign({},attrObj,style))}}),style}Object.defineProperty(exports,"__esModule",{value:!0}),exports.borderSeperate=borderSeperate},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.textKeys=["color","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration"]},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.bubbleKeys=["display","justifyContent","alignItems","flexDirection","overflow","backgroundColor","visibility","outline","transition","zoom","flexWrap","position","zIndex","flex","width","height"]},function(module,exports,__webpack_require__){"use strict";function fixSmallUnit(unit){"object"===("undefined"==typeof unit?"undefined":_typeof(unit))&&"raw"in unit&&(unit=unit.raw);var num=parseInt(unit,10);return num>6?unit:""+Math.floor(num/2).toString()+(_nukeEnv.isWeb?"px":"wx")}var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)};exports.fixSmallUnit=fixSmallUnit;var _nukeEnv=__webpack_require__(5)},function(module,exports){"use strict";function valueToObj(obj){return Object.keys(obj).forEach(function(name){"object"===_typeof(obj[name])&&(obj[name]={name:name,raw:obj[name]})}),obj}function hexToRgb(hex,opacity){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;hex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b});var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);return result?{r:parseInt(result[1],16),g:parseInt(result[2],16),b:parseInt(result[3],16)}:null}function rgba(hex,opacity){"object"===("undefined"==typeof hex?"undefined":_typeof(hex))&&"raw"in hex&&(hex=hex.raw),"object"===("undefined"==typeof opacity?"undefined":_typeof(opacity))&&"raw"in opacity&&(opacity=opacity.raw);var result=exports.hexToRgb(hex);return result?"rgba("+result.r+","+result.g+","+result.b+","+opacity+")":null}var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)};exports.valueToObj=valueToObj,exports.hexToRgb=hexToRgb,exports.rgba=rgba},function(module,exports){"use strict";function alignCenter(){return{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.alignCenter=alignCenter},function(module,exports,__webpack_require__){"use strict";function caculateRemToPx(rem){var defaultWidth=arguments.length>1&&void 0!==arguments[1]?arguments[1]:750;if("object"===("undefined"==typeof rem?"undefined":_typeof(rem))&&"raw"in rem&&(rem=rem.raw),_nukeEnv.isWeex)return rem;rem=exports.removeRemUnit(rem);var defaultPixUnit=document.documentElement.clientWidth/defaultWidth,num=Math.round(parseFloat(rem)*defaultPixUnit);return num%2===0?num+"px":num-1+"px"}function removeRemUnit(rem){return rem=String(rem),rem.replace("rem","")}var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)};exports.caculateRemToPx=caculateRemToPx,exports.removeRemUnit=removeRemUnit;var _nukeEnv=__webpack_require__(5)},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]={initial:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"flex",flexDirection:"column",alignContent:"flex-start",flexShrink:0}},module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!==("undefined"==typeof call?"undefined":_typeof(call))&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof superClass?"undefined":_typeof(superClass)));subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass);
}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_rax=__webpack_require__(1),_nukeHelper=__webpack_require__(3),_text=__webpack_require__(20),_text2=_interopRequireDefault(_text),defaultLineHeightOptimizer=function(fontSize){return Math.ceil(9.24*Math.pow(10,-5)*Math.pow(fontSize,2)+1.492*fontSize+2.174)},isWeb="function"!=typeof callNative,Text=function(_Component){function Text(props,context){_classCallCheck(this,Text);var _this=_possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).call(this));return _this.fixedFont=context.commonConfigs&&context.commonConfigs.fixedFont,_this.fontFamily=context.commonConfigs&&context.commonConfigs.fontFamily,_this.optimizeLineHeight=context.commonConfigs&&context.commonConfigs.optimizeLineHeight,"fixedFont"in props&&(_this.fixedFont=props.fixedFont),"optimizeLineHeight"in props&&(_this.optimizeLineHeight=props.optimizeLineHeight),_this}return _inherits(Text,_Component),_createClass(Text,[{key:"calcLineHeight",value:function(style){var lineHeightOptimizer=this.props.lineHeightOptimizer,fontSize=parseInt(style.fontSize,10),lineHeight=lineHeightOptimizer(fontSize);return lineHeight&&!style.lineHeight&&(this.fixedFont&&"number"==typeof lineHeight?style.lineHeight=lineHeight+(isWeb?"px":"wx"):style.lineHeight=lineHeight),style}},{key:"render",value:function(){var _props=this.props,onPress=_props.onPress,onClick=_props.onClick,style=_props.style,others=_objectWithoutProperties(_props,["onPress","onClick","style"]),defaultStyle={fontSize:"32rem",wordWrap:"break-word"};this.fontFamily&&(defaultStyle.fontFamily=this.fontFamily);var textStyle=Object.assign(defaultStyle,style);return delete others.optimizeLineHeight,textStyle=this.fixedFont?(0,_nukeHelper.calcTextSize)(textStyle):textStyle,textStyle=this.optimizeLineHeight?this.calcLineHeight(textStyle):textStyle,(0,_rax.createElement)(_text2["default"],_extends({},others,{style:textStyle,onClick:onPress||onClick}))}}]),Text}(_rax.Component);Text.contextTypes={androidConfigs:_rax.PropTypes.any,commonConfigs:_rax.PropTypes.any},Text.propTypes={optimizeLineHeight:_rax.PropTypes["boolean"],fixedFont:_rax.PropTypes["boolean"],style:_rax.PropTypes.any,onPress:_rax.PropTypes.func,onClick:_rax.PropTypes.func,lineHeightOptimizer:_rax.PropTypes.func},Text.defaultProps={style:{},lineHeightOptimizer:defaultLineHeightOptimizer},exports["default"]=Text,module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!==("undefined"==typeof call?"undefined":_typeof2(call))&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof superClass?"undefined":_typeof2(superClass)));subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}function transformChild(child,instance){var ChildComponent=child.type,props=child.props,children=props.children;if("function"==typeof ChildComponent){var childInstance=new ChildComponent;return childInstance.props=props,children&&(childInstance.props.children=transformChildren(children,instance)),childInstance.context=instance.getChildContext(),childInstance.render()}return child}function transformChildren(children,instance){var elements=[];Array.isArray(children)||(children=[children]);for(var i=0;i<children.length;i++){var child=children[i];"string"==typeof child?elements.push(child):"object"===("undefined"==typeof child?"undefined":_typeof(child))&&elements.push(transformChild(child,instance))}return elements}var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _class,_temp2,_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return"undefined"==typeof obj?"undefined":_typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":"undefined"==typeof obj?"undefined":_typeof2(obj)},_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_rax=__webpack_require__(1),isWeex="function"==typeof callNative,Text=(_temp2=_class=function(_Component){function Text(){var _ref,_temp,_this,_ret;_classCallCheck(this,Text);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _temp=_this=_possibleConstructorReturn(this,(_ref=Text.__proto__||Object.getPrototypeOf(Text)).call.apply(_ref,[this].concat(args))),_this.renderText=function(){var props=_this.props,nativeProps=_extends({},props,{style:props.style||{}}),textString="";if(null!=props.children&&(textString=Array.isArray(props.children)?props.children.join(""):props.children.toString()),_this.context.isInAParentText)return(0,_rax.createElement)("span",nativeProps,textString);if(props.onPress&&(nativeProps.onClick=props.onPress),isWeex)return props.numberOfLines&&(nativeProps.style.lines=props.numberOfLines),nativeProps.value=textString,(0,_rax.createElement)("text",nativeProps);var styleProps=_extends({},styles.text,nativeProps.style),numberOfLines=props.numberOfLines;return numberOfLines&&(1===parseInt(numberOfLines)?styleProps.whiteSpace="nowrap":(styleProps.display="-webkit-box",styleProps.webkitBoxOrient="vertical",styleProps.webkitLineClamp=String(numberOfLines)),styleProps.overflow="hidden"),(0,_rax.createElement)("span",_extends({},nativeProps,{style:styleProps}),textString)},_this.renderRichText=function(){var props=_this.props,children=props.children,nativeProps=_extends({},props,{style:props.style||{}}),styleProps=_extends({},styles.richtext,nativeProps.style);return isWeex&&(children=transformChildren(children,_this)),(0,_rax.createElement)("p",_extends({},nativeProps,{style:styleProps}),children)},_ret=_temp,_possibleConstructorReturn(_this,_ret)}return _inherits(Text,_Component),_createClass(Text,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var props=this.props,children=props.children;Array.isArray(children)||(children=[children]);for(var nested=!1,i=0;i<children.length;i++){var child=children[i];if(child&&"object"===("undefined"==typeof child?"undefined":_typeof(child))){nested=!0;break}}return nested?this.renderRichText():this.renderText()}}]),Text}(_rax.Component),_class.propTypes={},_class.contextTypes={isInAParentText:_rax.PropTypes.bool},_class.childContextTypes={isInAParentText:_rax.PropTypes.bool},_temp2),styles={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};exports["default"]=Text,module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!==("undefined"==typeof call?"undefined":_typeof(call))&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof superClass?"undefined":_typeof(superClass)));subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_rax=__webpack_require__(1),_nukeEnv=__webpack_require__(5),_nukeView=__webpack_require__(2),_nukeView2=_interopRequireDefault(_nukeView),_ripples=__webpack_require__(22),_ripples2=_interopRequireDefault(_ripples),_inherit=__webpack_require__(23),_inherit2=_interopRequireDefault(_inherit),isAndroid="android"===_nukeEnv.appInfo.platform.toLowerCase(),Touchable=function(_Component){function Touchable(props,context){_classCallCheck(this,Touchable);var _this=_possibleConstructorReturn(this,(Touchable.__proto__||Object.getPrototypeOf(Touchable)).call(this,props));return _this.originalStyle=null,_this.activeStyle=null,_this.rippleEnabled=isAndroid&&(props.rippleEnabled||context.androidConfigs&&context.androidConfigs.rippleEnabled),_this.touchStart=_this.touchStart.bind(_this),_this.touchEnd=_this.touchEnd.bind(_this),_this}return _inherits(Touchable,_Component),_createClass(Touchable,[{key:"calculatedStyle",value:function(activeStyle){var obj={};for(var k in activeStyle)obj[k+":active"]=activeStyle[k];return obj}},{key:"findDom",value:function(){return this.dom||(this.dom=(0,_rax.findDOMNode)(this.refs.touch)),this.dom}},{key:"setStyle",value:function(styleData){(0,_rax.setNativeProps)(this.refs.touch,{style:styleData})}},{key:"touchStart",value:function(e){var _props=this.props,activeStyle=_props.activeStyle,style=_props.style,onTouchStart=_props.onTouchStart;this.originalStyle||(this.originalStyle=_extends({},style)),this.activeStyle||(this.activeStyle=_extends({},activeStyle)),this.setStyle(Object.assign({},style,activeStyle)),onTouchStart&&onTouchStart(e)}},{key:"touchEnd",value:function(e){var _props2=this.props,style=_props2.style,onTouchEnd=_props2.onTouchEnd;this.setStyle(this.originalStyle||style),onTouchEnd&&onTouchEnd(e)}},{key:"getActiveColor",value:function(style){return style["backgroundColor:active"]||null}},{key:"calcInheritStyle",value:function(customStyles){if(!customStyles)return{};var insideStyle={};return _inherit2["default"].map(function(item){customStyles[item]&&(insideStyle[item]=customStyles[item])}),insideStyle}},{key:"render",value:function(){var _props3=this.props,style=_props3.style,activeStyle=(_props3.rippleEnabled,_props3.activeStyle),onPress=_props3.onPress,others=_objectWithoutProperties(_props3,["style","rippleEnabled","activeStyle","onPress"]),nativeProps=_extends({},others,{ref:"touch",style:Object.assign({},style,this.calculatedStyle(activeStyle)),onClick:onPress});if(_nukeEnv.isWeex)return this.rippleEnabled&&(nativeProps.rippleEnabled=!0),(0,_rax.createElement)(_nukeView2["default"],nativeProps);var activeColor=this.getActiveColor(nativeProps.style);if(activeColor&&!this.rippleEnabled&&(nativeProps.onTouchStart=this.touchStart,nativeProps.onTouchEnd=this.touchEnd),this.rippleEnabled&&onPress){var insideStyle=Object.assign({},{flex:1},this.calcInheritStyle(style));return style&&style.alignItems&&delete nativeProps.style.alignItems,(0,_rax.createElement)(_ripples2["default"],_extends({},nativeProps,{color:activeColor}),(0,_rax.createElement)(_nukeView2["default"],{style:insideStyle},this.props.children))}return(0,_rax.createElement)(_nukeView2["default"],nativeProps,this.props.children)}}]),Touchable}(_rax.Component);Touchable.contextTypes={androidConfigs:_rax.PropTypes.any,compatibilityConfigs:_rax.PropTypes.any},Touchable.defaultProps={rippleEnabled:!1,onPress:null},Touchable.propTypes={onPress:_rax.PropTypes.func,onLongPress:_rax.PropTypes.func,style:_rax.PropTypes.any,activeStyle:_rax.PropTypes.any,rippleEnabled:_rax.PropTypes["boolean"]};exports["default"]=Touchable,module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!==("undefined"==typeof call?"undefined":_typeof(call))&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof superClass?"undefined":_typeof(superClass)));subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_rax=__webpack_require__(1),rippleStyle={position:"absolute",borderRadius:"50%",opacity:0,width:35,height:35,transform:"translate(-50%, -50%)",pointerEvents:"none"},wrapStyle={position:"relative",display:"flex",flexDirection:"column",overflow:"hidden"},Ripples=function(_PureComponent){function Ripples(props,context){_classCallCheck(this,Ripples);var _this=_possibleConstructorReturn(this,(Ripples.__proto__||Object.getPrototypeOf(Ripples)).call(this,props));return _this.handleClick=function(ev){ev.stopPropagation&&ev.stopPropagation();var _this$props=_this.props,onClick=_this$props.onClick,color=_this$props.color,during=_this$props.during,pageX=ev.pageX,pageY=ev.pageY,_ev$currentTarget=ev.currentTarget,offsetLeft=_ev$currentTarget.offsetLeft,offsetTop=_ev$currentTarget.offsetTop,offsetWidth=_ev$currentTarget.offsetWidth,offsetHeight=_ev$currentTarget.offsetHeight,left=pageX-offsetLeft,top=pageY-offsetTop;_this.setState({rippleStyle:{top:top,left:left,opacity:1,backgroundColor:color}}),setTimeout(function(){var size=Math.max(offsetWidth,offsetHeight);_this.se