text: !function(e){function t(t){for(var n,o,a=t[0],i=t[1],l=0,s=[];l<a.length;l++)o=a[l],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(t);s.length;)s.shift()()}var n={},r={2:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,o){n=r[e]=[t,o]}));if(t.push(n[2]=a),!global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__)try{var i=JSON.parse('{"asyncComponentFromHttp":"https://raw.githubusercontent.com/Tencent/Hippy/master/static/hippy-react/"}');global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__=i}catch(e){console.error("parse __DYNAMIC_LOAD_CUSTOM_PATH_MAP__ error",e)}var l=function(e){return o.p+""+({0:"asyncComponentFromHttp",1:"asyncComponentFromLocal"}[e]||e)+".ios.js"}(e);if(l&&global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__)if(["https://","http://","//"].some(e=>0===l.indexOf(e))){var c=l.split("/"),s=c[c.length-1],u=s.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+s)}else{var f;u=l.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=r[e];0!==n&&n&&n[1](t),r[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},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.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var c=i;o(o.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("../../packages/hippy-react/dist/index.js")},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/asyncToGenerator.js":function(e,t){function n(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function l(e){n(i,o,a,l,c,"next",e)}function c(e){n(i,o,a,l,c,"throw",e)}l(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/getPrototypeOf.js":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/inherits.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/setPrototypeOf.js");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,o=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js");e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function n(t){return e.exports=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},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){e.exports=n("./node_modules/regenerator-runtime/runtime.js")},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var i=u(n);f&&(i=i.concat(f(n)));for(var l=c(t),p=c(n),y=0;y<i.length;++y){var g=i[y];if(!(a[g]||r&&r[g]||p&&p[g]||l&&l[g])){var b=d(n,g);try{s(t,g,b)}catch(e){}}}}return t}},"./node_modules/mini-create-react-context/dist/esm/index.js":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),i=n("./node_modules/prop-types/index.js"),l=n.n(i),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function s(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=o.a.createContext||function(e,t){var n,o,i,u="__create-react-context-"+((c[i="__global_unique_id__"]=(c[i]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=s(t.props.value),t}Object(a.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[u]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[u]=l.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(a.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},r.getValue=function(){return this.context[u]?this.context[u].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[u]=l.a.object,o),{Provider:f,Consumer:d}};t.a=u}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/path-to-regexp/index.js":function(e,t){e.exports=function e(t,r,o){r=r||[];var a,i=(o=o||{}).strict,l=!1!==o.end,c=o.sensitive?"":"i",s=0,u=r.length,f=0,d=0;if(t instanceof RegExp){for(;a=n.exec(t.source);)r.push({name:d++,optional:!1,offset:a.index});return t}if(Array.isArray(t))return t=t.map((function(t){return e(t,r,o).source})),new RegExp("(?:"+t.join("|")+")",c);t=("^"+t+(i?"":"/"===t[t.length-1]?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,(function(e,t,n,o,a,i,l,c){t=t||"",n=n||"",a=a||"([^\\/"+n+"]+?)",l=l||"",r.push({name:o,optional:!!l,offset:c+s});var u=(l?"":t)+"(?:"+n+(l?t:"")+a+(i?"((?:[\\/"+n+"].+?)?)":"")+")"+l;return s+=u.length-e.length,u})).replace(/\*/g,(function(e,t){for(var n=r.length;n-- >u&&r[n].offset>t;)r[n].offset+=3;return"(.*)"}));for(;a=n.exec(t);){for(var h=0,m=a.index;"\\"===t.charAt(--m);)h++;h%2!=1&&((u+f===r.length||r[u+f].offset>a.index)&&r.splice(u+f,0,{name:d++,optional:!1,offset:a.index}),f++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,c)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict";
  /** @license React v16.13.1
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,h=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,w=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function T(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case h:case l:case s:case c:case p:return e;default:switch(e=e&&e.$$typeof){case f:case m:case b:case g:case u:return e;default:return t}}case i:return t}}}function C(e){return T(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=f,t.ContextProvider=u,t.Element=a,t.ForwardRef=m,t.Fragment=l,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||T(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return T(e)===f},t.isContextProvider=function(e){return T(e)===u},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return T(e)===m},t.isFragment=function(e){return T(e)===l},t.isLazy=function(e){return T(e)===b},t.isMemo=function(e){return T(e)===g},t.isPortal=function(e){return T(e)===i},t.isProfiler=function(e){return T(e)===s},t.isStrictMode=function(e){return T(e)===c},t.isSuspense=function(e){return T(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===h||e===s||e===c||e===p||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===v||e.$$typeof===x||e.$$typeof===S||e.$$typeof===w)},t.typeOf=T},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){(function(e){var t=n("./node_modules/@babel/runtime/helpers/typeof.js"),r=function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return k()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=x(i,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function h(){}function m(){}var p={};c(p,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==n&&r.call(g,a)&&(p=g);var b=m.prototype=d.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,n){var o;this._invoke=function(a,i){function l(){return new n((function(o,l){!function o(a,i,l,c){var s=u(e[a],e,i);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"===t(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):n.resolve(d).then((function(e){f.value=e,l(f)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}(a,i,o,l)}))}return o=o?o.then(l,l):l()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=m,c(b,"constructor",m),c(m,"constructor",h),h.displayName=c(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(v.prototype),c(v.prototype,i,(function(){return this})),e.AsyncIterator=v,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new v(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(b),c(b,l,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./node_modules/webpack/buildin/module.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/module.js")},"./src/main.js":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"Focusable",(function(){return te})),n.d(r,"Image",(function(){return ie})),n.d(r,"ListView",(function(){return we})),n.d(r,"Modal",(function(){return Ee})),n.d(r,"RefreshWrapper",(function(){return Ye})),n.d(r,"PullHeader",(function(){return Ze})),n.d(r,"ScrollView",(function(){return et})),n.d(r,"Text",(function(){return ot})),n.d(r,"TextInput",(function(){return lt})),n.d(r,"View",(function(){return ut})),n.d(r,"ViewPager",(function(){return xt})),n.d(r,"WebView",(function(){return Tt})),n.d(r,"BoxShadow",(function(){return kt})),n.d(r,"WaterfallView",(function(){return It})),n.d(r,"RippleViewAndroid",(function(){return zt}));var o={};n.r(o),n.d(o,"Animation",(function(){return Kt})),n.d(o,"AsyncStorage",(function(){return qt})),n.d(o,"Clipboard",(function(){return Xt})),n.d(o,"NativeEvent",(function(){return $t})),n.d(o,"NetInfo",(function(){return nn})),n.d(o,"TestModule",(function(){return ln})),n.d(o,"WebSocket",(function(){return fn})),n.d(o,"UIManagerModule",(function(){return yn}));var a={};n.r(a),n.d(a,"Slider",(function(){return Tn})),n.d(a,"TabHost",(function(){return kn})),n.d(a,"SetNativeProps",(function(){return In})),n.d(a,"DynamicImport",(function(){return Dn})),n.d(a,"Localization",(function(){return Ln})),n.d(a,"Turbo",(function(){return Wn}));var i=n("../../packages/hippy-react/dist/index.js"),l=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),c=n.n(l),s=n("./node_modules/@babel/runtime/helpers/createClass.js"),u=n.n(s),f=n("./node_modules/@babel/runtime/helpers/inherits.js"),d=n.n(f),h=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),m=n.n(h),p=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),y=n.n(p),g=n("./node_modules/react/index.js"),b=n.n(g),w=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),v=n.n(w),x=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");n("./node_modules/@babel/runtime/helpers/typeof.js");function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e){return"/"===e.charAt(0)}function C(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var E=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&T(e),i=t&&T(t),l=a||i;if(e&&T(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var s=0,u=o.length;u>=0;u--){var f=o[u];"."===f?C(o,u):".."===f?(C(o,u),s++):s&&(C(o,u),s--)}if(!l)for(;s--;s)o.unshift("..");!l||""===o[0]||o[0]&&T(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var k="Invariant failed";function R(e,t){if(!e)throw new Error(k)}function A(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function V(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=S({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=E(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function j(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,i=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,s=I();function u(e){S(y,e),y.length=y.entries.length,s.notifyListeners(y.location,y.action)}function f(){return Math.random().toString(36).substr(2,c)}var d=j(i,0,o.length-1),h=o.map((function(e){return V(e,void 0,"string"==typeof e?f():e.key||f())})),m=A;function p(e){var t=j(y.index+e,0,y.entries.length-1),r=y.entries[t];s.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var y={length:h.length,action:"POP",location:h[d],index:d,entries:h,createHref:m,push:function(e,t){var r=V(e,t,f(),y.location);s.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=V(e,t,f(),y.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))}))},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(e){return void 0===e&&(e=!1),s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return y}var D=n("./node_modules/mini-create-react-context/dist/esm/index.js"),P=n("./node_modules/path-to-regexp/index.js"),_=n.n(P);n("./node_modules/react-is/index.js");function L(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var B=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),M=n.n(B),z=function(e){var t=Object(D.a)();return t.displayName=e,t}("Router"),F=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(x.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return b.a.createElement(z.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(b.a.Component);var W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=O(t.props),t}return Object(x.a)(t,e),t.prototype.render=function(){return b.a.createElement(F,{history:this.history,children:this.props.children})},t}(b.a.Component);b.a.Component;var H={},N=0;function K(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,l=void 0!==i&&i,c=n.sensitive,s=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=H[n]||(H[n]={});if(r[e])return r[e];var o=[],a={regexp:_()(e,o,t),keys:o};return N<1e4&&(r[e]=a,N++),a}(n,{end:a,strict:l,sensitive:s}),o=r.regexp,i=r.keys,c=o.exec(e);if(!c)return null;var u=c[0],f=c.slice(1),d=e===u;return a&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var G=function(e){function t(){return e.apply(this,arguments)||this}return Object(x.a)(t,e),t.prototype.render=function(){var e=this;return b.a.createElement(z.Consumer,null,(function(t){t||R(!1);var n=e.props.location||t.location,r=S({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?K(n.pathname,e.props):t.match}),o=e.props,a=o.children,i=o.component,l=o.render;return Array.isArray(a)&&0===a.length&&(a=null),b.a.createElement(z.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:i?b.a.createElement(i,r):l?l(r):null:"function"==typeof a?a(r):null)}))},t}(b.a.Component);function U(e){return"/"===e.charAt(0)?e:"/"+e}function q(e,t){if(!e)return t;var n=U(e);return 0!==t.pathname.indexOf(n)?t:S({},t,{pathname:t.pathname.substr(n.length)})}function Q(e){return"string"==typeof e?e:A(e)}function Y(e){return function(){R(!1)}}function X(){}b.a.Component;b.a.Component;function J(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=L(t,["wrappedComponentRef"]);return b.a.createElement(z.Consumer,null,(function(t){return t||R(!1),b.a.createElement(e,S({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,M()(n,e)}b.a.useContext;var Z=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),$=n.n(Z);function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var te=function(e){d()(n,e);var t=ee(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={clickindex:0},r}return u()(n,[{key:"onClick",value:function(e){this.setState({clickindex:e})}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.clickindex;return b.a.createElement(i.View,null,b.a.createElement(i.Focusable,{style:{height:80},onClick:function(){return t.onClick(e)},requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},b.a.createElement(i.Text,{style:{color:"white"}},n===e?"我被点击了".concat(e):"没有被点击".concat(e))))}},{key:"render",value:function(){return b.a.createElement(i.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}]),n}(b.a.Component),ne=n.p+"assets/defaultSource.jpg",re=n.p+"assets/hippyLogoWhite.png",oe="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",ae=i.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"}});function ie(){return b.a.createElement(i.ScrollView,{style:ae.container_style},b.a.createElement(i.Text,{style:ae.info_style},"Contain:"),b.a.createElement(i.Image,{style:[ae.image_style],resizeMode:i.Image.resizeMode.cover,defaultSource:ne,source:{uri:oe},onProgress:function(e){console.log("onProgress",e)},onLoadStart:function(){console.log("image onloadStart")},onLoad:function(){console.log("image onLoad")},onError:function(e){console.log("image onError",e)},onLoadEnd:function(){console.log("image onLoadEnd")}}),b.a.createElement(i.Text,{style:ae.info_style},"Cover:"),b.a.createElement(i.Image,{style:[ae.image_style],defaultSource:ne,source:{uri:oe},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Text,{style:ae.info_style},"Center:"),b.a.createElement(i.Image,{style:[ae.image_style],defaultSource:ne,source:{uri:oe},resizeMode:i.Image.resizeMode.center}),b.a.createElement(i.Text,{style:ae.info_style},"CapInsets:"),b.a.createElement(i.Image,{style:[ae.image_style],defaultSource:ne,source:{uri:oe},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Text,{style:ae.info_style},"TintColor:"),b.a.createElement(i.Image,{style:[ae.image_style,{tintColor:"#4c9afa99"}],defaultSource:ne,source:{uri:re},resizeMode:i.Image.resizeMode.center}),b.a.createElement(i.Text,{style:ae.info_style},"Cover GIF:"),b.a.createElement(i.Image,{style:[ae.image_style],resizeMode:i.Image.resizeMode.cover,defaultSource:ne,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoadEnd:function(){console.log("gif onLoadEnd")}}))}var le=n("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),ce=n.n(le),se=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),ue=n.n(se),fe=n("./node_modules/@babel/runtime/regenerator/index.js"),de=n.n(fe);function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var me=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],pe=i.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function ye(e){var t=e.index;return b.a.createElement(i.View,{style:pe.container,onClickCapture:function(e){console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:function(e){return e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1},onClick:function(e){return console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1}},b.a.createElement(i.Text,{numberOfLines:1},"".concat(t,": Style 1 UI")))}function ge(e){var t=e.index;return b.a.createElement(i.View,{style:pe.container},b.a.createElement(i.Text,{numberOfLines:1},"".concat(t,": Style 2 UI")))}function be(e){var t=e.index;return b.a.createElement(i.View,{style:pe.container},b.a.createElement(i.Text,{numberOfLines:1},"".concat(t,": Style 5 UI")))}var we=function(e){d()(r,e);var t,n=he(r);function r(e){var t;return c()(this,r),(t=n.call(this,e)).state={dataSource:me,fetchingDataFlag:!1},t.fetchTimes=0,t.delText="Delete",t.mockFetchData=t.mockFetchData.bind(ue()(t)),t.getRenderRow=t.getRenderRow.bind(ue()(t)),t.onEndReached=t.onEndReached.bind(ue()(t)),t.getRowType=t.getRowType.bind(ue()(t)),t.getRowKey=t.getRowKey.bind(ue()(t)),t.getRowStyle=t.getRowStyle.bind(ue()(t)),t.onDelete=t.onDelete.bind(ue()(t)),t.onAppear=t.onAppear.bind(ue()(t)),t.onDisappear=t.onDisappear.bind(ue()(t)),t.onWillAppear=t.onWillAppear.bind(ue()(t)),t.onWillDisappear=t.onWillDisappear.bind(ue()(t)),t.rowShouldSticky=t.rowShouldSticky.bind(ue()(t)),t}return u()(r,[{key:"onDelete",value:function(e){var t=e.index,n=this.state.dataSource.filter((function(e,n){return t!==n}));this.setState({dataSource:n})}},{key:"onEndReached",value:(t=ce()(de.a.mark((function e(){var t,n,r,o,a;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onAppear",value:function(e){console.log("onAppear",e)}},{key:"onDisappear",value:function(e){console.log("onDisappear",e)}},{key:"onWillAppear",value:function(e){console.log("onWillAppear",e)}},{key:"onWillDisappear",value:function(e){console.log("onWillDisappear",e)}},{key:"rowShouldSticky",value:function(e){return 2===e}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowStyle",value:function(){return{width:100,height:50}}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRenderRow",value:function(e){var t=this.state.dataSource,n=null,r=t[e],o=t.length===e+1;switch(r.style){case 1:n=b.a.createElement(ye,{index:e});break;case 2:n=b.a.createElement(ge,{index:e});break;case 5:n=b.a.createElement(be,{index:e});break;case 100:n=b.a.createElement(i.Text,{style:pe.loading},"Loading now...")}return b.a.createElement(i.View,{style:pe.container,onClickCapture:function(e){console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:function(e){return console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1},onClick:function(e){return console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1}},b.a.createElement(i.View,{style:pe.itemContainer},n),o?null:b.a.createElement(i.View,{style:pe.separatorLine}))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=100?t([]):t(me)}),600)}))}},{key:"render",value:function(){var e=this.state.dataSource;return b.a.createElement(i.ListView,{onTouchDown:function(e){console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:function(e){console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:function(e){return console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0},bounces:!0,overScrollEnabled:!0,horizontal:void 0,style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,delText:this.delText,editable:!0,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear})}}]),r}(b.a.Component);function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var xe="#4c9afa",Se="#4c9afa",Te="white",Ce=i.StyleSheet.create({container:{flex:1,flexDirection:"row",justifyContent:"center"},buttonView:{borderColor:xe,borderWidth:2,borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:xe,textAlign:"center",textAlignVertical:"center"}}),Ee=function(e){d()(n,e);var t=ve(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={visible:!1,press:!1},r.show=r.show.bind(ue()(r)),r.hide=r.hide.bind(ue()(r)),r}return u()(n,[{key:"feedback",value:function(e){this.setState({press:"in"===e})}},{key:"show",value:function(){this.setState({visible:!0})}},{key:"hide",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this,t=this.state,n=t.press,r=t.visible;return b.a.createElement(i.ScrollView,null,b.a.createElement(i.View,{style:Ce.container},b.a.createElement(i.View,{onPressIn:function(){return e.feedback("in")},onPressOut:function(){return e.feedback("out")},onClick:this.show,style:[Ce.buttonView,{borderColor:xe,opacity:n?.5:1}]},b.a.createElement(i.Text,{style:[Ce.buttonText,{color:xe}]},"点击弹出浮层"))),b.a.createElement(i.Modal,{transparent:!0,animationType:"slide_fade",visible:r,onRequestClose:function(){},supportedOrientations:["portrait"],immersionStatusBar:!0},b.a.createElement(i.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},b.a.createElement(i.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:Se,marginTop:300,flexDirection:"row",justifyContent:"center"}},b.a.createElement(i.Text,{style:{color:Te,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}]),n}(b.a.Component),ke="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Re={style:1,itemBean:{title:"非洲总统出行真大牌，美制武装直升机和中国潜艇为其保驾",picList:[ke,ke,ke],subInfo:["三图评论","11评"]}},Ae={style:2,itemBean:{title:"彼得·泰尔：认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ve={style:5,itemBean:{title:"愤怒！美官员扬言：“不让中国拿走南海的岛屿，南海岛礁不属于中国”？",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔  5234播放"]}},Ie=[Ve,Re,Ae,Re,Ae,Re,Ae,Ve,Re],je=n("./node_modules/@babel/runtime/helpers/extends.js"),Oe=n.n(je),De={getScreenWidth:function(){var e=i.Dimensions.get("screen").width,t=i.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray:function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t},isiPhoneX:function(){var e=!1;return"android"===i.Platform.OS||i.Dimensions.get("window").height>=812&&i.PixelRatio.get()>=2&&(e=!0),e}},Pe=(De.getScreenWidth()-24-12)/3,_e=Math.floor(Pe/1.35),Le=i.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:_e,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:Pe,height:_e},title:{fontSize:"android"===i.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function Be(e){var t=e.itemBean,n=t.title,r=t.picList,o=e.itemBean.subInfo,a=null;if(o&&o.length){var l=(o=De.uniqueArray(o)).join(" ");a=b.a.createElement(i.Text,{style:Le.normalText,numberOfLines:1},l)}return b.a.createElement(i.View,Oe()({},e,{style:{collapsable:!1}}),b.a.createElement(i.Text,{style:[Le.title],numberOfLines:2,enableScale:!0},n),b.a.createElement(i.View,{style:Le.imageContainer},b.a.createElement(i.Image,{style:Le.image,source:{uri:r[0]},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Image,{style:[Le.image,{marginLeft:6,marginRight:6}],source:{uri:r[1]},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Image,{style:Le.image,source:{uri:r[2]},resizeMode:i.Image.resizeMode.cover})),a?b.a.createElement(i.View,{style:Le.tagLine},a):null)}var Me=De.getScreenWidth()-24,ze=Math.floor(Me-12)/3,Fe=Math.floor(ze/1.35),We=i.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:Fe},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:ze,height:Fe},image:{width:ze,height:Fe},title:{fontSize:"android"===i.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function He(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=null,r=t.title,o=t.picUrl,a=t.subInfo;if(a&&a.length){var l=(a=De.uniqueArray(a)).join(" ");n=b.a.createElement(i.Text,{style:We.normalText,numberOfLines:1},l)}return b.a.createElement(i.View,Oe()({},e,{style:We.container}),b.a.createElement(i.View,{style:We.leftContainer},b.a.createElement(i.Text,{style:We.title,numberOfLines:2,enableScale:!0},r),n?b.a.createElement(i.View,{style:We.tagLine},n):null),b.a.createElement(i.View,{style:We.imageContainer},b.a.createElement(i.Image,{resizeMode:i.Image.resizeMode.cover,style:We.image,source:{uri:o}})))}var Ne=De.getScreenWidth()-24,Ke=Math.floor(188*Ne/336),Ge=i.StyleSheet.create({text:{fontSize:"android"===i.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ne,height:Ke,alignSelf:"center"},image:{width:Ne,height:Ke},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ue(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=t.title,r=t.picUrl,o=t.subInfo,a=null;if(o&&o.length){var l=(o=De.uniqueArray(o)).join(" ");a=b.a.createElement(i.Text,{style:Ge.normalText,numberOfLines:1},l)}return b.a.createElement(i.View,e,b.a.createElement(i.Text,{style:Ge.text,numberOfLines:2,enableScale:!0},n),b.a.createElement(i.View,{style:Ge.playerView},b.a.createElement(i.Image,{style:Ge.image,source:{uri:r},resizeMode:i.Image.resizeMode.cover})),a?b.a.createElement(i.View,{style:Ge.tagLine},a):null)}function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Qe=i.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}}),Ye=function(e){d()(o,e);var t,n,r=qe(o);function o(e){var t;return c()(this,o),(t=r.call(this,e)).state={dataSource:[],loadingState:"正在加载..."},t.fetchTimes=0,t.mockFetchData=t.mockFetchData.bind(ue()(t)),t.onRefresh=t.onRefresh.bind(ue()(t)),t.getRefresh=t.getRefresh.bind(ue()(t)),t.getRenderRow=t.getRenderRow.bind(ue()(t)),t.onEndReached=t.onEndReached.bind(ue()(t)),t.getRowType=t.getRowType.bind(ue()(t)),t.getRowKey=t.getRowKey.bind(ue()(t)),t}return u()(o,[{key:"componentDidMount",value:(n=ce()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onEndReached",value:(t=ce()(de.a.mark((function e(){var t,n,r,o,a;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onRefresh",value:function(){var e=this;setTimeout(ce()(de.a.mark((function t(){var n;return de.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.mockFetchData();case 2:n=t.sent,e.setState({dataSource:n}),e.refresh.refreshComplected();case 5:case"end":return t.stop()}}),t)}))),1e3)}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,l=r[e],c=r.length===e+1;switch(l.style){case 1:a=b.a.createElement(Be,{itemBean:l.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 2:a=b.a.createElement(He,{itemBean:l.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 5:a=b.a.createElement(Ue,{itemBean:l.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 100:a=b.a.createElement(i.Text,{style:Qe.loading},o)}return b.a.createElement(i.View,{style:Qe.container},b.a.createElement(i.View,{style:Qe.itemContainer},a),c?null:b.a.createElement(i.View,{style:Qe.spliter}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRefresh",value:function(){return b.a.createElement(i.View,{style:{flex:1,height:30}},b.a.createElement(i.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=50?t([]):t(Ie)}),600)}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return b.a.createElement(i.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},b.a.createElement(i.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}]),o}(b.a.Component);function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Je=i.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:60,backgroundColor:"green"},pullContent:{lineHeight:60,color:"white",height:60,textAlign:"center"}}),Ze=function(e){d()(a,e);var t,n,r,o=Xe(a);function a(e){var t;return c()(this,a),(t=o.call(this,e)).state={dataSource:[],pullingText:"继续下拉触发刷新",loadingState:"正在加载..."},t.fetchTimes=0,t.mockFetchData=t.mockFetchData.bind(ue()(t)),t.renderRow=t.renderRow.bind(ue()(t)),t.getRowType=t.getRowType.bind(ue()(t)),t.getRowKey=t.getRowKey.bind(ue()(t)),t.renderPullHeader=t.renderPullHeader.bind(ue()(t)),t.onEndReached=t.onEndReached.bind(ue()(t)),t.onHeaderReleased=t.onHeaderReleased.bind(ue()(t)),t.onHeaderPulling=t.onHeaderPulling.bind(ue()(t)),t}return u()(a,[{key:"componentDidMount",value:(r=ce()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t}),this.listView.collapsePullHeader();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onEndReached",value:(n=ce()(de.a.mark((function e(){var t,n,r,o;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({dataSource:t.concat([{style:100}])}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:(r=t[t.length-1])&&100===r.style&&t.pop(),o=t.concat(n),this.loadMoreDataFlag=!1,this.setState({dataSource:o});case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderReleased",value:(t=ce()(de.a.mark((function e(){var t,n=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({pullingText:"刷新数据中，请稍等，2秒后自动收起"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:this.fetchingDataFlag=!1,this.setState({dataSource:t},(function(){n.listView.collapsePullHeader(),n.fetchTimes=0}));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return t.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Je.pullContent.height?this.setState({pullingText:"松手，即可触发刷新"}):this.setState({pullingText:"继续下拉，触发刷新"}))}},{key:"onClickItem",value:function(e,t){console.log("item: ".concat(e," is clicked.."),t.target.nodeId,t.currentTarget.nodeId)}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){e.fetchTimes+=1;var n=[];return e.fetchTimes<50&&(n=Ie),t(n)}),600)}))}},{key:"renderPullHeader",value:function(){var e=this.state.pullingText;return b.a.createElement(i.View,{style:Je.pullContainer},b.a.createElement(i.Text,{style:Je.pullContent},e))}},{key:"renderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,l=r[e],c=r.length===e+1;switch(l.style){case 1:a=b.a.createElement(Be,{itemBean:l.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 2:a=b.a.createElement(He,{itemBean:l.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 5:a=b.a.createElement(Ue,{itemBean:l.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 100:a=b.a.createElement(i.Text,{style:Je.loading},o)}return b.a.createElement(i.View,{style:Je.container},b.a.createElement(i.View,{style:Je.itemContainer},a),c?null:b.a.createElement(i.View,{style:Je.splitter}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return b.a.createElement(i.ListView,{onClick:function(e){return console.log("ListView",e.target.nodeId,e.currentTarget.nodeId)},ref:function(t){e.listView=t},style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,getRowType:this.getRowType,getRowKey:this.getRowKey,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling})}}]),a}(b.a.Component),$e=i.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function et(){return b.a.createElement(i.ScrollView,null,b.a.createElement(i.View,{style:$e.itemTitle},b.a.createElement(i.Text,null,"Horizontal ScrollView")),b.a.createElement(i.View,null,b.a.createElement(i.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1},b.a.createElement(i.Text,{style:$e.itemStyle},"A"),b.a.createElement(i.Text,{style:$e.itemStyle},"B"),b.a.createElement(i.Text,{style:$e.itemStyle},"C"),b.a.createElement(i.Text,{style:$e.itemStyle},"D"),b.a.createElement(i.Text,{style:$e.itemStyle},"E"),b.a.createElement(i.Text,{style:$e.itemStyle},"F"),b.a.createElement(i.Text,{style:$e.itemStyle},"A"))),b.a.createElement(i.View,{style:$e.itemTitle},b.a.createElement(i.Text,null,"Vertical ScrollView")),b.a.createElement(i.ScrollView,{bounces:!0,horizontal:!1,style:$e.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},b.a.createElement(i.Text,{style:$e.itemStyle},"A"),b.a.createElement(i.Text,{style:$e.itemStyle},"B"),b.a.createElement(i.Text,{style:$e.itemStyle},"C"),b.a.createElement(i.Text,{style:$e.itemStyle},"D"),b.a.createElement(i.Text,{style:$e.itemStyle},"E"),b.a.createElement(i.Text,{style:$e.itemStyle},"F"),b.a.createElement(i.Text,{style:$e.itemStyle},"A")))}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var nt=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",height:100,borderWidth:1,borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},button:{width:100,height:24,borderColor:"blue",borderWidth:1},buttonText:{width:100,lineHeight:24,textAlign:"center"},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}}),rt=0,ot=function(e){d()(n,e);var t=tt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1}},r.incrementFontSize=r.incrementFontSize.bind(ue()(r)),r.decrementFontSize=r.decrementFontSize.bind(ue()(r)),r.androidNestedTextWrapperStyle={height:100,lineHeight:100},r}return u()(n,[{key:"incrementFontSize",value:function(){var e=this.state.fontSize;24!==e&&this.setState({fontSize:e+1})}},{key:"decrementFontSize",value:function(){var e=this.state.fontSize;6!==e&&this.setState({fontSize:e-1})}},{key:"render",value:function(){var e=this,t=this.state,n=t.fontSize,r=t.textShadowColor,o=t.textShadowOffset,a=function(e){return b.a.createElement(i.View,{style:nt.itemTitle},b.a.createElement(i.Text,{style:!0},e))};return b.a.createElement(i.ScrollView,{style:{padding:10}},a("shadow"),b.a.createElement(i.View,{style:[nt.itemContent],onClick:function(){var t="red",n={x:10,y:1};rt%2==1&&(t="grey",n={x:1,y:1}),rt+=1,e.setState({textShadowColor:t,textShadowOffset:n})}},b.a.createElement(i.Text,{style:[nt.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:r}]},"Text shadow is grey with radius 3 and offset 1")),a("color"),b.a.createElement(i.View,{style:[nt.itemContent]},b.a.createElement(i.Text,{style:[nt.normalText,{color:"#242424"}]},"Text color is black"),b.a.createElement(i.Text,{style:[nt.normalText,{color:"blue"}]},"Text color is blue"),b.a.createElement(i.Text,{style:[nt.normalText,{color:"rgb(228,61,36)"}]},"This is red")),a("fontSize"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{style:[nt.normalText,{fontSize:n}]},"Text fontSize is ".concat(n)),b.a.createElement(i.View,{style:nt.button,onClick:this.incrementFontSize},b.a.createElement(i.Text,{style:nt.buttonText},"放大字体")),b.a.createElement(i.View,{style:nt.button,onClick:this.decrementFontSize},b.a.createElement(i.Text,{style:nt.buttonText},"缩小字体"))),a("fontStyle"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{style:[nt.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),b.a.createElement(i.Text,{style:[nt.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),a("numberOfLines"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{numberOfLines:1,style:nt.normalText},"just one line just one line just one line just one line just one line just one line just one line just one line"),b.a.createElement(i.Text,{numberOfLines:2,style:nt.normalText},"just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines")),a("textDecoration"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{numberOfLines:1,style:[nt.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),b.a.createElement(i.Text,{numberOfLines:1,style:[nt.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),a("Nest Text"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{numberOfLines:3},b.a.createElement(i.Text,{numberOfLines:3,style:[nt.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),b.a.createElement(i.Text,{numberOfLines:3,style:nt.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),a("Custom font"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{numberOfLines:1,style:nt.customFont},"Hippy 跨端框架")),a("Text Nested"),b.a.createElement(i.View,{style:nt.itemContent},b.a.createElement(i.Text,{style:"android"===i.Platform.OS?this.androidNestedTextWrapperStyle:{}},b.a.createElement(i.Text,{numberOfLines:1,style:nt.normalText},"后面有张图片"),b.a.createElement(i.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),b.a.createElement(i.Text,{numberOfLines:1,style:nt.customFont},"前面有张图片"))))}}]),n}(b.a.Component);function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var it=i.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},button:{width:200,borderColor:"#4c9afa",borderWidth:1,marginTop:5,marginBottom:5}}),lt=function(e){d()(n,e);var t=at(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={textContent:""},r.changeInputContent=r.changeInputContent.bind(ue()(r)),r.focus=r.focus.bind(ue()(r)),r.blur=r.blur.bind(ue()(r)),r}return u()(n,[{key:"changeInputContent",value:function(){this.setState({textContent:"当前时间毫秒：".concat(Date.now())})}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e=this,t=this.state.textContent,n=function(e){return b.a.createElement(i.View,{style:it.itemTitle},b.a.createElement(i.Text,null,e))};return b.a.createElement(i.ScrollView,{style:it.container_style},n("text"),b.a.createElement(i.TextInput,{ref:function(t){e.input=t},style:it.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:t}),b.a.createElement(i.View,{style:it.button,onClick:this.changeInputContent},b.a.createElement(i.Text,null,"点击改变输入框内容")),b.a.createElement(i.View,{style:it.button,onClick:this.focus},b.a.createElement(i.Text,null,"Focus")),b.a.createElement(i.View,{style:it.button,onClick:this.blur},b.a.createElement(i.Text,null,"Blur")),n("numeric"),b.a.createElement(i.TextInput,{style:it.input_style,keyboardType:"numeric",placeholder:"numeric"}),n("phone-pad"),b.a.createElement(i.TextInput,{style:it.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),n("password"),b.a.createElement(i.TextInput,{style:it.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),n("maxLength"),b.a.createElement(i.TextInput,{caretColor:"yellow",style:it.input_style,placeholder:"maxLength=5",maxLength:5}))}}]),n}(g.Component),ct=n.p+"assets/defaultSource.jpg",st=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function ut(){var e=function(e){return b.a.createElement(i.View,{style:st.itemTitle},b.a.createElement(i.Text,null,e))};return b.a.createElement(i.ScrollView,{style:{padding:10}},e("backgroundColor"),b.a.createElement(i.View,{style:[st.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),b.a.createElement(i.View,{style:[st.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:ct}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},b.a.createElement(i.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),b.a.createElement(i.View,{style:[st.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},b.a.createElement(i.Text,{style:{color:"white"}},"渐变色")),e("border props"),b.a.createElement(i.View,{style:[st.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1}]}),e("flex props"),b.a.createElement(i.View,{style:[st.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},b.a.createElement(i.View,{style:[st.smallRectangle,{backgroundColor:"yellow"}]}),b.a.createElement(i.View,{style:[st.smallRectangle,{backgroundColor:"blue"}]}),b.a.createElement(i.View,{style:[st.smallRectangle,{backgroundColor:"green"}]})))}var ft=i.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),dt="SquarePagerView",ht="TrianglePagerView",mt="CirclePagerView";function pt(e,t){var n=function(t){return b.a.createElement(i.View,{style:ft.pageContainer,key:t},b.a.createElement(i.View,{style:[ft.shapeBase,e],key:"shape"}),b.a.createElement(i.View,{style:ft.mainRec,key:"title"},t?b.a.createElement(i.Text,{style:ft.title},t):null))};return n.displayName=t,n}var yt=pt(ft.square,dt),gt=pt(ft.triangle,ht),bt=pt(ft.circle,mt);function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var vt=i.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}}),xt=function(e){d()(n,e);var t=wt(n);function n(e){var r;return c()(this,n),r=t.call(this,e),$()(ue()(r),"state",{selectedIndex:0}),r.onPageSelected=r.onPageSelected.bind(ue()(r)),r}return u()(n,[{key:"onPageSelected",value:function(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}},{key:"onPageScrollStateChanged",value:function(e){console.log("onPageScrollStateChanged",e)}},{key:"onPageScroll",value:function(e){var t=e.offset,n=e.position;console.log("onPageScroll",t,n)}},{key:"render",value:function(){var e=this,t=this.state.selectedIndex;return b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#ffffff"}},b.a.createElement(i.View,{style:vt.buttonContainer},b.a.createElement(i.View,{style:vt.button,onClick:function(){e.viewpager.setPage(2)}},b.a.createElement(i.Text,{style:vt.buttonText},"动效滑到第3页")),b.a.createElement(i.View,{style:vt.button,onClick:function(){return e.viewpager.setPageWithoutAnimation(0)}},b.a.createElement(i.Text,{style:vt.buttonText},"直接滑到第1页"))),b.a.createElement(i.ViewPager,{ref:function(t){e.viewpager=t},style:vt.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScroll:this.onPageScroll},[yt("squarePager"),gt("TrianglePager"),bt("CirclePager")]),b.a.createElement(i.View,{style:vt.dotContainer},new Array(3).fill(0).map((function(e,n){var r=n===t;return b.a.createElement(i.View,{style:[vt.dot,r?vt.selectDot:null],key:"dot_".concat(n)})}))))}}]),n}(b.a.Component),St=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function Tt(){return b.a.createElement(i.View,{style:{padding:10,flex:1}},b.a.createElement(i.View,{style:St.itemTitle},b.a.createElement(i.Text,null,"WebView 示例")),b.a.createElement(i.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:St.webViewStyle,onLoad:function(e){var t=e.url;return console.log("webview onload",t)},onLoadStart:function(e){var t=e.url;return console.log("webview onLoadStart",t)},onLoadEnd:function(e){var t=e.url;return console.log("webview onLoadEnd",t)}}))}var Ct=i.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),Et=i.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function kt(){return b.a.createElement(i.View,{style:Ct.shadowDemo},"android"===i.Platform.OS?b.a.createElement(i.View,{style:Ct.shadowDemoCubeAndroid},b.a.createElement(i.View,{style:Ct.shadowDemoContentAndroid},b.a.createElement(i.Text,{style:Ct.text},"没有偏移阴影样式"))):b.a.createElement(i.View,{style:Ct.shadowDemoCubeIos},b.a.createElement(i.View,{style:Ct.shadowDemoContentIos},b.a.createElement(i.Text,{style:Ct.text},"没有偏移阴影样式"))),"android"===i.Platform.OS?b.a.createElement(i.View,{style:Et.shadowDemoCubeAndroid},b.a.createElement(i.View,{style:Et.shadowDemoContentAndroid},b.a.createElement(i.Text,{style:Et.text},"偏移阴影样式"))):b.a.createElement(i.View,{style:Et.shadowDemoCubeIos},b.a.createElement(i.View,{style:Et.shadowDemoContentIos},b.a.createElement(i.Text,{style:Et.text},"偏移阴影样式"))))}function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var At=Ie.filter((function(e){return 2!==e.style})),Vt=i.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:60,backgroundColor:"green"},pullContent:{lineHeight:60,color:"white",height:60,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),It=function(e){d()(a,e);var t,n,r,o=Rt(a);function a(e){var t;return c()(this,a),(t=o.call(this,e)).state={dataSource:[],pullingText:"继续下拉触发刷新",loadingState:"正在加载..."},t.numberOfColumns=2,t.columnSpacing=6,t.interItemSpacing=6,t.mockFetchData=t.mockFetchData.bind(ue()(t)),t.renderItem=t.renderItem.bind(ue()(t)),t.getItemType=t.getItemType.bind(ue()(t)),t.getItemKey=t.getItemKey.bind(ue()(t)),t.onEndReached=t.onEndReached.bind(ue()(t)),t.onRefresh=t.onRefresh.bind(ue()(t)),t.getRefresh=t.getRefresh.bind(ue()(t)),t.renderPullFooter=t.renderPullFooter.bind(ue()(t)),t.renderBanner=t.renderBanner.bind(ue()(t)),t.getItemStyle=t.getItemStyle.bind(ue()(t)),t}return u()(a,[{key:"componentDidMount",value:(r=ce()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onEndReached",value:(n=ce()(de.a.mark((function e(){var t,n,r;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({loadingState:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({loadingState:"没有更多数据"}),r=[].concat(v()(t),v()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1;case 18:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"renderPullFooter",value:function(){return 0===this.state.dataSource.length?null:b.a.createElement(i.View,{style:Vt.pullFooter},b.a.createElement(i.Text,{style:{color:"white"}},this.state.loadingState))}},{key:"onRefresh",value:(t=ce()(de.a.mark((function e(){var t=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(ce()(de.a.mark((function e(){var n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.mockFetchData();case 2:n=e.sent,t.setState({dataSource:n}),t.refresh.refreshComplected();case 5:case"end":return e.stop()}}),e)}))),1e3);case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"getRefresh",value:function(){return b.a.createElement(i.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},b.a.createElement(i.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getItemType",value:function(e){return this.state.dataSource[e].style}},{key:"getItemKey",value:function(e){return"row-".concat(e)}},{key:"onItemClick",value:function(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}},{key:"renderBanner",value:function(){return"android"===i.Platform.OS||0===this.state.dataSource.length?null:b.a.createElement(i.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},b.a.createElement(i.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}},{key:"renderItem",value:function(e){var t=this,n=null,r=this.state.dataSource[e];switch(r.style){case 1:n=b.a.createElement(Be,{itemBean:r.itemBean});break;case 2:n=b.a.createElement(He,{itemBean:r.itemBean});break;case 5:n=b.a.createElement(Ue,{itemBean:r.itemBean})}return b.a.createElement(i.View,{onClick:function(){return t.onItemClick(e)},style:Vt.container},b.a.createElement(i.View,{style:Vt.itemContainer},n),b.a.createElement(i.View,{style:Vt.splitter}))}},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){var t=[].concat(v()(At),v()(At));return e(t)}),600)}))}},{key:"getWaterfallContentInset",value:function(){return{top:0,left:5,bottom:0,right:5}}},{key:"getItemStyle",value:function(){var e=this.numberOfColumns,t=this.columnSpacing,n=i.Dimensions.get("screen").width,r=this.getWaterfallContentInset();return{width:(n-r.left-r.right-(e-1)*t)/e}}},{key:"render",value:function(){var e=this,t=this.state.dataSource,n=this.numberOfColumns,r=this.columnSpacing,o=this.interItemSpacing,a=this.getWaterfallContentInset();return b.a.createElement(i.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},b.a.createElement(i.WaterfallView,{ref:function(t){e.listView=t},renderBanner:this.renderBanner,numberOfColumns:n,columnSpacing:r,interItemSpacing:o,numberOfItems:t.length,style:{flex:1},renderItem:this.renderItem,onEndReached:this.onEndReached,getItemType:this.getItemType,getItemKey:this.getItemKey,contentInset:a,getItemStyle:this.getItemStyle,containPullFooter:!0,renderPullFooter:this.renderPullFooter}))}}]),a}(b.a.Component),jt=n.p+"assets/defaultSource.jpg",Ot=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),Dt=n.n(Ot);function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){$()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt={borderless:!1};function Bt(e){var t=Object(g.useState)(0),n=Dt()(t,2),r=n[0],o=n[1],a=Object(g.useState)(0),l=Dt()(a,2),c=l[0],s=l[1],u=Object(g.useRef)(null),f=function(){u.current.setPressed(!1)},d=e.nativeBackgroundAndroid,h=e.style;return b.a.createElement(i.View,{onLayout:function(){i.UIManagerModule.measureInAppWindow(u.current,(function(e){o(e.x),s(e.y)}))},style:h,onTouchDown:function(e){u.current.setHotspot(e.page_x-r,e.page_y-c),u.current.setPressed(!0)},onTouchEnd:f,onTouchCancel:f,ref:u,nativeBackgroundAndroid:_t(_t({},Lt),d)},e.children)}var Mt=i.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:jt,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function zt(){return"ios"===i.Platform.OS?b.a.createElement(i.Text,null,"iOS暂未支持水波纹效果"):b.a.createElement(i.ScrollView,{style:{margin:10,flex:1}},b.a.createElement(i.View,{style:[Mt.imgRectangle,{marginTop:20,backgroundImage:jt,backgroundSize:"cover"}]},b.a.createElement(Bt,{style:[Mt.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},b.a.createElement(i.Text,{style:{color:"white",maxWidth:200}},"外层背景图，内层无边框水波纹，受外层影响始终有边框"))),b.a.createElement(Bt,{style:[Mt.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},b.a.createElement(i.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),b.a.createElement(Bt,{style:[Mt.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},b.a.createElement(i.Text,{style:{color:"#fff"}},"带背景色水波纹")),b.a.createElement(i.View,{style:[Mt.squareRippleWrapper]},b.a.createElement(Bt,{style:[Mt.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},b.a.createElement(i.Text,{style:{color:"white"}},"有边框水波纹，带本地底图效果"))),b.a.createElement(i.View,{style:[Mt.squareRippleWrapper]},b.a.createElement(Bt,{style:[Mt.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},b.a.createElement(i.Text,{style:{color:"black"}},"有边框水波纹，带网络底图效果"))))}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Wt="#4c9afa",Ht="#f44837",Nt=i.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:Ht},showArea:{height:150,marginVertical:10},button:{borderColor:Wt,borderWidth:2,justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:Wt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}}),Kt=function(e){d()(n,e);var t=Ft(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={},r}return u()(n,[{key:"componentWillMount",value:function(){this.horizonAnimation=new i.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new i.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new i.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new i.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new i.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new i.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}},{key:"componentDidMount",value:function(){"web"===i.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef)),this.horizonAnimation.onHippyAnimationStart((function(){console.log("on animation start!!!")})),this.horizonAnimation.onHippyAnimationEnd((function(){console.log("on animation end!!!")})),this.horizonAnimation.onHippyAnimationCancel((function(){console.log("on animation cancel!!!")})),this.horizonAnimation.onHippyAnimationRepeat((function(){console.log("on animation end!!!")}))}},{key:"componentWillUnmount",value:function(){this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy()}},{key:"render",value:function(){var e=this;return b.a.createElement(i.ScrollView,{style:Nt.container},b.a.createElement(i.Text,{style:Nt.title},"水平位移动画"),b.a.createElement(i.View,{style:Nt.buttonContainer},b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.horizonAnimation.start()}},b.a.createElement(i.Text,{style:Nt.buttonText},"开始")),b.a.createElement(i.View,{style:[Nt.button],onClick:function(){e.horizonAnimation.pause()}},b.a.createElement(i.Text,{style:Nt.buttonText},"暂停")),b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.horizonAnimation.resume()}},b.a.createElement(i.Text,{style:Nt.buttonText},"继续")),b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},b.a.createElement(i.Text,{style:Nt.buttonText},"更新"))),b.a.createElement(i.View,{style:Nt.showArea},b.a.createElement(i.View,{ref:function(t){e.horizonRef=t},style:[Nt.square,{transform:[{translateX:this.horizonAnimation}]}]})),b.a.createElement(i.Text,{style:Nt.title},"高度形变动画"),b.a.createElement(i.View,{style:Nt.buttonContainer},b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.verticalAnimation.start()}},b.a.createElement(i.Text,{style:Nt.buttonText},"开始")),b.a.createElement(i.View,{style:[Nt.button],onClick:function(){e.verticalAnimation.pause()}},b.a.createElement(i.Text,{style:Nt.buttonText},"暂停")),b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.verticalAnimation.resume()}},b.a.createElement(i.Text,{style:Nt.buttonText},"继续"))),b.a.createElement(i.View,{style:Nt.showArea},b.a.createElement(i.View,{ref:function(t){e.verticalRef=t},style:[Nt.square,{height:this.verticalAnimation}]})),b.a.createElement(i.Text,{style:Nt.title},"组合形变动画"),b.a.createElement(i.View,{style:Nt.buttonContainer},b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.scaleAnimationSet.start()}},b.a.createElement(i.Text,{style:Nt.buttonText},"开始")),b.a.createElement(i.View,{style:[Nt.button],onClick:function(){e.scaleAnimationSet.pause()}},b.a.createElement(i.Text,{style:Nt.buttonText},"暂停")),b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.scaleAnimationSet.resume()}},b.a.createElement(i.Text,{style:Nt.buttonText},"继续"))),b.a.createElement(i.View,{style:[Nt.showArea,{marginVertical:20}]},b.a.createElement(i.View,{ref:function(t){e.scaleRef=t},style:[Nt.square,{transform:[{scale:this.scaleAnimationSet}]}]})),b.a.createElement(i.Text,{style:Nt.title},"颜色渐变动画（文字渐变仅Android支持）"),b.a.createElement(i.View,{style:Nt.buttonContainer},b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.bgColorAnimationSet.start(),e.txtColorAnimationSet.start()}},b.a.createElement(i.Text,{style:Nt.buttonText},"开始")),b.a.createElement(i.View,{style:[Nt.button],onClick:function(){e.bgColorAnimationSet.pause(),e.txtColorAnimationSet.pause()}},b.a.createElement(i.Text,{style:Nt.buttonText},"暂停")),b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.bgColorAnimationSet.resume(),e.txtColorAnimationSet.resume()}},b.a.createElement(i.Text,{style:Nt.buttonText},"继续"))),b.a.createElement(i.View,{style:[Nt.showArea,{marginVertical:20}]},b.a.createElement(i.View,{ref:function(t){e.bgColorRef=t},style:[Nt.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},b.a.createElement(i.Text,{ref:function(t){e.textColorRef=t},style:[Nt.colorText,{color:"android"===i.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),b.a.createElement(i.Text,{style:Nt.title},"贝塞尔曲线动画"),b.a.createElement(i.View,{style:Nt.buttonContainer},b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.cubicBezierScaleAnimationSet.start()}},b.a.createElement(i.Text,{style:Nt.buttonText},"开始")),b.a.createElement(i.View,{style:[Nt.button],onClick:function(){e.cubicBezierScaleAnimationSet.pause()}},b.a.createElement(i.Text,{style:Nt.buttonText},"暂停")),b.a.createElement(i.View,{style:Nt.button,onClick:function(){e.cubicBezierScaleAnimationSet.resume()}},b.a.createElement(i.Text,{style:Nt.buttonText},"继续"))),b.a.createElement(i.View,{style:[Nt.showArea,{marginVertical:20}]},b.a.createElement(i.View,{ref:function(t){e.cubicBezierScaleRef=t},style:[Nt.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}]),n}(b.a.Component);function Gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ut=i.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}}),qt=function(e){d()(n,e);var t=Gt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={result:""},r.onTextChangeKey=r.onTextChangeKey.bind(ue()(r)),r.onTextChangeValue=r.onTextChangeValue.bind(ue()(r)),r.onClickSet=r.onClickSet.bind(ue()(r)),r.onTextChangeKey=r.onTextChangeKey.bind(ue()(r)),r.onClickGet=r.onClickGet.bind(ue()(r)),r}return u()(n,[{key:"onClickSet",value:function(){var e=this.state,t=e.key,n=e.value;t&&i.AsyncStorage.setItem(t,n)}},{key:"onClickGet",value:function(){var e=this,t=this.state.key;t&&i.AsyncStorage.getItem(t).then((function(t){e.setState({result:t})}))}},{key:"onTextChangeKey",value:function(e){this.setState({key:e})}},{key:"onTextChangeValue",value:function(e){this.setState({value:e})}},{key:"render",value:function(){var e=this.state.result;return b.a.createElement(i.ScrollView,{style:Ut.containerStyle},b.a.createElement(i.View,{style:Ut.viewGroupStyle},b.a.createElement(i.Text,{style:Ut.infoStyle},"Key:"),b.a.createElement(i.TextInput,{style:Ut.inputStyle,onChangeText:this.onTextChangeKey})),b.a.createElement(i.View,{style:Ut.viewGroupStyle},b.a.createElement(i.Text,{style:Ut.infoStyle},"Value:"),b.a.createElement(i.TextInput,{style:Ut.inputStyle,onChangeText:this.onTextChangeValue})),b.a.createElement(i.View,{style:Ut.itemGroupStyle,onClick:this.onClickSet},b.a.createElement(i.Text,{style:Ut.buttonStyle},"Set")),b.a.createElement(i.View,{style:[Ut.viewGroupStyle,{marginTop:60}]},b.a.createElement(i.Text,{style:Ut.infoStyle},"Key:"),b.a.createElement(i.TextInput,{style:Ut.inputStyle,onChangeText:this.onTextChangeKey})),b.a.createElement(i.View,{style:[Ut.viewGroupStyle,{display:"none"}]},b.a.createElement(i.Text,{style:Ut.infoStyle},"Value:"),b.a.createElement(i.Text,{style:[Ut.infoStyle,{width:200}]},e)),b.a.createElement(i.View,{style:Ut.itemGroupStyle,onClick:this.onClickGet},b.a.createElement(i.Text,{style:Ut.buttonStyle},"Get")))}}]),n}(b.a.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Yt=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},defaultText:{marginVertical:4,fontSize:18,lineHeight:24,color:"#242424"},copiedText:{color:"#aaa"},button:{backgroundColor:"#4c9afa",borderRadius:4,height:30,marginVertical:4,paddingHorizontal:6,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"white"}}),Xt=function(e){d()(n,e);var t=Qt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={hasCopied:!1,text:"Winter is coming",clipboardText:"点击上面的按钮"},r}return u()(n,[{key:"render",value:function(){var e=this,t=function(e){return b.a.createElement(i.View,{style:Yt.itemTitle},b.a.createElement(i.Text,null,e))},n=this.state,r=n.hasCopied,o=n.text,a=n.clipboardText,l=r?"   (已复制)   ":"";return b.a.createElement(i.ScrollView,{style:{padding:10}},t("文本复制到剪贴板"),b.a.createElement(i.Text,{style:Yt.defaultText},o),b.a.createElement(i.View,{style:Yt.button,onClick:function(){i.Clipboard.setString(o),e.setState({hasCopied:!0})}},b.a.createElement(i.Text,{style:Yt.buttonText},"点击复制以上文案".concat(l))),t("获取剪贴板内容"),b.a.createElement(i.View,{style:Yt.button,onClick:ce()(de.a.mark((function t(){var n;return de.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.Clipboard.getString();case 3:n=t.sent,e.setState({clipboardText:n}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))},b.a.createElement(i.Text,{style:Yt.buttonText},"点击获取剪贴板内容")),b.a.createElement(i.Text,{style:[Yt.defaultText,Yt.copiedText]},a))}}]),n}(b.a.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Zt=i.StyleSheet.create({text:{fontSize:14,color:"#242424",alignSelf:"center"},container:{flex:1},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:80,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",height:100,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"}}),$t=function(e){d()(n,e);var t=Jt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={infoText:"",infoText2:""},r}return u()(n,[{key:"render",value:function(){var e=this,t=this.state,n=t.infoText,r=t.infoText2;return b.a.createElement(i.ScrollView,{style:Zt.container},b.a.createElement(i.View,{style:Zt.itemTitle,onPress:function(){var t=new i.HippyEventEmitter;e.call=t.addListener("NORMAL_EVENT",(function(t){e.setState({infoText:JSON.stringify(t)})})),Object(i.callNative)("MyEvent","btnClicked")}},b.a.createElement(i.Text,null,"客户端向前端单向通信"),b.a.createElement(i.Text,null,"点此终端会发送NORMAL_EVENT事件"),b.a.createElement(i.Text,null,"事件接收结果：".concat(n))),b.a.createElement(i.View,{style:Zt.itemTitle,onPress:function(){var t=new i.HippyEventEmitter;e.call=t.addListener("COUNT_DOWN",(function(t){e.setState({infoText2:JSON.stringify(t)})})),Object(i.callNative)("MyEvent","addListener","COUNT_DOWN")}},b.a.createElement(i.Text,null,"客户端向前端单向通信的进阶用法"),b.a.createElement(i.Text,null,"点此终端会发送COUNT_DOWN事件"),b.a.createElement(i.Text,null,"事件接收结果：".concat(r))))}}]),n}(b.a.Component);function en(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var tn=i.StyleSheet.create({text:{fontSize:14,color:"#242424",alignSelf:"center"},container:{flex:1,justifyContent:"center"}}),nn=function(e){d()(r,e);var t,n=en(r);function r(e){var t;return c()(this,r),(t=n.call(this,e)).state={infoText:"正在获取.."},t.listener=null,t}return u()(r,[{key:"componentWillMount",value:(t=ce()(de.a.mark((function e(){var t,n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.next=3,i.NetInfo.fetch();case 3:n=e.sent,this.setState({infoText:n}),this.listener=i.NetInfo.addEventListener("change",(function(e){t.setState({infoText:"收到通知: ".concat(e.network_info)})}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"componentDidMount",value:function(){var e=this;this.listener&&i.NetInfo.removeEventListener("change",this.listener),fetch("https://hippyjs.org",{headers:{Refer:"https://hippyjs.org",Cookie:["hippy=cookieTest1","hippy=cookieTest2"]}}).then((function(t){return console.log("成功",t),e.setState({infoText:"成功: ".concat(t.body)}),t})).catch((function(t){e.setState({infoText:"收到错误: ".concat(t)}),console.error("收到错误:",t)})),i.NetworkModule.setCookie("https://hippyjs.org","name=someone;gender=male"),i.NetworkModule.getCookies("https://hippyjs.org").then((function(e){console.log("cookie: ".concat(e))}))}},{key:"render",value:function(){var e=this.state.infoText;return b.a.createElement(i.ScrollView,{style:tn.container},b.a.createElement(i.Text,{style:tn.text},e))}}]),r}(b.a.Component),rn={log:function(e){Object(i.callNative)("TestModule","log",e)},helloNative:function(e){Object(i.callNative)("TestModule","helloNative",e)},helloNativeWithPromise:function(e){return Object(i.callNativeWithPromise)("TestModule","helloNativeWithPromise",e)}};function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var an,ln=function(e){d()(n,e);var t=on(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={hello:"TestModule log"},r}return u()(n,[{key:"componentDidMount",value:function(){var e=this;rn.log("hello i am from js"),rn.helloNative({hello:"i am form js"}),rn.helloNativeWithPromise({hello:"i am form js"}).then((function(t){e.setState({hello:JSON.stringify(t)})}))}},{key:"render",value:function(){var e=this.state.hello;return b.a.createElement(i.Text,{style:{color:"red"}},e)}}]),n}(b.a.Component),cn=i.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),sn="wss://echo.websocket.org",un="Rock it with Hippy WebSocket";var fn=function(){var e=Object(g.useRef)(null),t=Object(g.useRef)(null),n=Object(g.useState)([]),r=Dt()(n,2),o=r[0],a=r[1],l=function(e){a((function(t){return[e].concat(v()(t))}))};return b.a.createElement(i.View,{style:cn.fullScreen},b.a.createElement(i.View,null,b.a.createElement(i.Text,{style:cn.title},"Url:"),b.a.createElement(i.TextInput,{ref:e,value:sn,style:cn.input}),b.a.createElement(i.View,{style:cn.row},b.a.createElement(i.Text,{onClick:function(){e.current.getValue().then((function(e){an&&1===an.readyState&&an.close(),(an=new WebSocket(e)).onopen=function(){return l("[Opened] ".concat(an.url))},an.onclose=function(){return l("[Closed] ".concat(an.url))},an.onerror=function(e){return l("[Error] ".concat(e.reason))},an.onmessage=function(e){return l("[Received] ".concat(e.data))}}))},style:cn.button},"Connect"),b.a.createElement(i.Text,{onClick:function(){return an.close()},style:cn.button},"Disconnect"))),b.a.createElement(i.View,null,b.a.createElement(i.Text,{style:cn.title},"Message:"),b.a.createElement(i.TextInput,{ref:t,value:un,style:cn.input}),b.a.createElement(i.Text,{onClick:function(){return t.current.getValue().then((function(e){l("[Sent] ".concat(e)),an.send(e)}))},style:cn.button},"Send")),b.a.createElement(i.View,null,b.a.createElement(i.Text,{style:cn.title},"Log:"),b.a.createElement(i.ScrollView,{style:cn.fullScreen},o.map((function(e,t){return b.a.createElement(i.Text,{key:t,style:cn.output},e)})))))};function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){$()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mn=i.StyleSheet.create({full:{flex:1},demoContent:{flex:1,height:500},box:{position:"absolute",width:100,height:100,backgroundColor:"#4c9afa",justifyContent:"center",alignItem:"center",borderRadius:5},text:{color:"white",textAlign:"center",textAlignVertical:"middle"},buttonContainer:{alignItems:"center",flexDirection:"row",justifyContent:"space-around",marginVertical:5},button:{height:50,borderColor:"#4c9afa",borderWidth:2,borderRadius:8,justifyContent:"center",alignItem:"center",flexShrink:1,paddingHorizontal:2},buttonText:{height:50,lineHeight:50,fontSize:15,color:"#4c9afa",textAlign:"center",textAlignVertical:"center"},row:{alignItems:"center",flexDirection:"row",justifyContent:"space-around",marginVertical:5},black:{color:"black"}}),pn=function(e,t){var n=Math.ceil(e),r=Math.floor(t);return Math.floor(Math.random()*(r-n+1))+n},yn=function(){var e,t,n=Object(g.useRef)(null);Object(g.useEffect)((function(){var n=i.Dimensions.get("screen");e=n.width,t=n.height}));var r=Object(g.useState)({width:100,height:100,top:10,left:10}),o=Dt()(r,2),a=o[0],l=o[1],c=Object(g.useState)({width:0,height:0,x:0,y:0}),s=Dt()(c,2),u=s[0],f=s[1],d=function(){var e=ce()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.UIManagerModule.measureInWindow(n.current);case 3:t=e.sent,f(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),h=hn(hn({},mn.box),a);return b.a.createElement(i.View,{style:mn.full},b.a.createElement(i.View,{style:mn.demoContent},b.a.createElement(i.View,{ref:n,style:h},b.a.createElement(i.Text,{style:mn.text,numberOfLines:2},"I am the box"))),b.a.createElement(i.View,{style:mn.buttonContainer},b.a.createElement(i.View,{onClick:function(){var n=pn(0,e-100),r=pn(0,t-450),o=pn(80,120);l({left:n,top:r,width:o,height:o})},style:mn.button},b.a.createElement(i.Text,{style:mn.buttonText},"Move the random position")),b.a.createElement(i.View,{onClick:d,style:mn.button},b.a.createElement(i.Text,{style:mn.buttonText},"Measure box in window"))),b.a.createElement(i.View,{style:mn.row},b.a.createElement(i.View,null,b.a.createElement(i.Text,null,"Box style:"),b.a.createElement(i.Text,{style:mn.black},"Width: ".concat(h.width)),b.a.createElement(i.Text,{style:mn.black},"Height: ".concat(h.height)),b.a.createElement(i.Text,{style:mn.black},"Left: ".concat(h.left)),b.a.createElement(i.Text,{style:mn.black},"Top: ".concat(h.top))),b.a.createElement(i.View,null,b.a.createElement(i.Text,null,"measureInWindow output:"),b.a.createElement(i.Text,{style:mn.black},"Width: ".concat(u.width)),b.a.createElement(i.Text,{style:mn.black},"Height: ".concat(u.height)),b.a.createElement(i.Text,{style:mn.black},"X: ".concat(u.x)),b.a.createElement(i.Text,{style:mn.black},"Y: ".concat(u.y)))))};function gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var bn=i.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}}),wn=function(e){d()(n,e);var t=gn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={current:e.current||0},r}return u()(n,[{key:"update",value:function(e){this.state.current!==e&&this.setState({current:e})}},{key:"render",value:function(){for(var e=this.props.count,t=this.state.current,n=[],r=0;r<e;r+=1)t===r?n.push(b.a.createElement(i.View,{style:[bn.style_indicator_item,{backgroundColor:"#2424244c"}],key:r})):n.push(b.a.createElement(i.View,{style:[bn.style_indicator_item,{backgroundColor:"#ffffffaa"}],key:r}));return b.a.createElement(i.View,{style:bn.style_indicator},n)}}]),n}(b.a.Component),vn=function(e){d()(n,e);var t=gn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).imgWidth=e.style.width,r.imgHeight=e.style.height,r.itemCount=e.images.length,r.duration=e.duration,r.touchStartOffset=0,r.touchEndOffset=0,r.scrollOffset=0,r.interval=null,r.currentIndex=0,r.width=0,r.onLayout=r.onLayout.bind(ue()(r)),r.onScroll=r.onScroll.bind(ue()(r)),r.onScrollBeginDrag=r.onScrollBeginDrag.bind(ue()(r)),r.onScrollEndDrag=r.onScrollEndDrag.bind(ue()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){this.duration=this.props.duration,this.doCreateTimer()}},{key:"componentDidUpdate",value:function(){this.duration=this.props.duration,this.doCreateTimer()}},{key:"componentWillUnmount",value:function(){this.doClearTimer()}},{key:"onScroll",value:function(e){var t=this.props.images;if(0!==this.width){var n=e.contentOffset.x;this.scrollOffset=n;var r=Math.round(n/this.width),o=t?b.a.Children.count(t):0;r<0||r>=o||(this.indicator.update(r),this.currentIndex=r)}}},{key:"onScrollBeginDrag",value:function(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}},{key:"onScrollEndDrag",value:function(){this.doCreateTimer()}},{key:"onLayout",value:function(e){this.width=e.layout.width}},{key:"doSwitchPage",value:function(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}},{key:"doCreateTimer",value:function(){var e=this;this.doClearTimer(),this.duration<=0||(this.interval=setInterval((function(){e.doSwitchPage((e.currentIndex+1)%e.itemCount)}),this.duration))}},{key:"doClearTimer",value:function(){this.interval&&clearInterval(this.interval),this.interval=null}},{key:"render",value:function(){for(var e=this,t=this.props.images,n=[],r=0;r<this.itemCount;r+=1)n.push(b.a.createElement(i.Image,{source:{uri:t[r]},style:{width:this.imgWidth,height:this.imgHeight},key:r}));return b.a.createElement(i.View,null,b.a.createElement(i.ScrollView,{horizontal:!0,pagingEnabled:!0,style:{width:this.imgWidth,height:this.imgHeight},onLayout:this.onLayout,onScroll:this.onScroll,onScrollBeginDrag:this.onScrollBeginDrag,onScrollEndDrag:this.onScrollEndDrag,ref:function(t){e.scrollView=t}},n),b.a.createElement(wn,{ref:function(t){e.indicator=t},count:this.itemCount}))}}]),n}(b.a.Component);$()(vn,"defaultProps",{duration:0,currentPage:0,images:[]});var xn=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],Sn=i.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Tn(){return b.a.createElement(i.ScrollView,null,b.a.createElement(i.Text,{style:Sn.infoStyle},"Auto:"),b.a.createElement(vn,{style:Sn.sliderStyle,images:xn,duration:1e3}),b.a.createElement(i.Text,{style:Sn.infoStyle},"Manual:"),b.a.createElement(vn,{style:Sn.sliderStyle,images:xn,duration:0}))}function Cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var En=i.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}}),kn=function(e){d()(n,e);var t=Cn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},r.navScrollView=null,r.viewPager=null,r.onViewPagerChange=r.onViewPagerChange.bind(ue()(r)),r.pressNavItem=r.pressNavItem.bind(ue()(r)),r.scrollSV=r.scrollSV.bind(ue()(r)),r}return u()(n,[{key:"componentDidUpdate",value:function(){this.scrollSV()}},{key:"onViewPagerChange",value:function(e){var t=e.position;this.setState({curIndex:t})}},{key:"scrollSV",value:function(){if(this.navScrollView){var e,t=this.state,n=t.curIndex,r=t.navList.length,o=De.getScreenWidth(),a=o/2/60;e=n<=a||60*r<o?0:n>r-a?60*r-o:60*n-60*a+30,this.navScrollView.scrollTo({x:e,y:0,animated:!0})}}},{key:"pressNavItem",value:function(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}},{key:"renderNav",value:function(){var e=this,t=this.state,n=t.navList,r=t.curIndex;return b.a.createElement(i.View,{style:En.container},b.a.createElement(i.ScrollView,{style:En.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:function(t){e.navScrollView=t}},n.map((function(t,n){return b.a.createElement(i.View,{style:En.navItem,key:"nav_".concat(t),activeOpacity:.5,onClick:function(){return e.pressNavItem(n)}},b.a.createElement(i.Text,{style:[En.navItemText,r===n?En.navItemTextBlue:En.navItemTextNormal],numberOfLines:1},t))}))))}},{key:"render",value:function(){var e=this,t=this.state.navList;return b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),b.a.createElement(i.ViewPager,{ref:function(t){e.viewPager=t},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},t.map((function(e,t){return n.getPage(e,t)}))))}}],[{key:"getPage",value:function(e,t){switch(t%3){case 0:return yt(e);case 1:return bt(e);case 2:return gt(e);default:return null}}}]),n}(b.a.Component);function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var An=i.Dimensions.get("window").width,Vn=i.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:An,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:An,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}}),In=function(e){d()(n,e);var t=Rn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).demon1Point=b.a.createRef(),r.demo1PointDom=null,r.state={demo2Left:0},r.isDemon1Layouted=!1,r.idDemon2Layouted=!1,r.onTouchDown1=r.onTouchDown1.bind(ue()(r)),r.onDemon1Layout=r.onDemon1Layout.bind(ue()(r)),r.onTouchMove1=r.onTouchMove1.bind(ue()(r)),r.onTouchDown2=r.onTouchDown2.bind(ue()(r)),r.onTouchMove2=r.onTouchMove2.bind(ue()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){}},{key:"onDemon1Layout",value:function(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=i.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}},{key:"onTouchDown1",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,An),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchMove1",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,An),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchDown2",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,An),this.setState({demo2Left:n})}},{key:"onTouchMove2",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,An),this.setState({demo2Left:n})}},{key:"render",value:function(){var e=this.state.demo2Left;return b.a.createElement(i.View,{style:Vn.setNativePropsDemo},b.a.createElement(i.Text,null,"setNativeProps实现拖动效果"),b.a.createElement(i.View,{style:Vn.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},b.a.createElement(i.View,{onLayout:this.onDemon1Layout,style:Vn.nativeDemo1Point,ref:this.demon1Point})),b.a.createElement(i.View,{style:Vn.splitter}),b.a.createElement(i.Text,null,"普通渲染实现拖动效果"),b.a.createElement(i.View,{style:Vn.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},b.a.createElement(i.View,{style:[Vn.nativeDemo2Point,{left:e}]})))}}]),n}(b.a.Component);function jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var On=i.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),Dn=function(e){d()(r,e);var t=jn(r);function r(e){var n;return c()(this,r),(n=t.call(this,e)).state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},n.onAsyncComponentLoad=n.onAsyncComponentLoad.bind(ue()(n)),n}return u()(r,[{key:"onAsyncComponentLoad",value:function(){var e=this;console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then((function(t){e.setState({AsyncComponentFromLocal:t.default||t})})).catch((function(e){return console.error("import async local component error",e)})),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then((function(t){e.setState({AsyncComponentFromHttp:t.default||t})})).catch((function(e){return console.error("import async remote component error",e)}))}},{key:"render",value:function(){var e=this.state,t=e.AsyncComponentFromLocal,n=e.AsyncComponentFromHttp;return b.a.createElement(i.View,{style:On.dynamicImportDemo},b.a.createElement(i.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},b.a.createElement(i.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),b.a.createElement(i.View,{style:{marginTop:20}},t?b.a.createElement(t,null):null,n?b.a.createElement(n,null):null))}}]),r}(b.a.Component);function Pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var _n=i.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),Ln=function(e){d()(n,e);var t=Pn(n);function n(){return c()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=i.Platform.Localization||{},t=e.country,n=e.language,r=e.direction;return b.a.createElement(i.View,{style:_n.LocalizationDemo},b.a.createElement(i.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},b.a.createElement(i.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},"国际化相关信息：国家 ".concat(t," | 语言 ").concat(n," | 方向 ").concat(1===r?"RTL":"LTR"))))}}]),n}(b.a.Component),Bn=function(){var e=ce()(de.a.mark((function e(t){return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Mn=function(){return getTurboModule("demoTurbo").getTurboConfig()};function zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Fn=i.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}}),Wn=function(e){d()(r,e);var t,n=zn(r);function r(e){var t;return c()(this,r),(t=n.call(this,e)).state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},t.onTurboFunc=t.onTurboFunc.bind(ue()(t)),t.getRenderRow=t.getRenderRow.bind(ue()(t)),t.getRowKey=t.getRowKey.bind(ue()(t)),t}return u()(r,[{key:"onTurboFunc",value:(t=ce()(de.a.mark((function e(t){var n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nativeWithPromise"!==t){e.next=6;break}return e.next=3,Bn("aaa");case 3:n=e.sent,e.next=7;break;case 6:"getTurboConfig"===t?(this.config=Mn(),n="获取到config对象"):"printTurboConfig"===t?(r=this.config||Mn(),n=getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===t?n=(this.config||Mn()).getInfo():"setInfo"===t?((this.config||Mn()).setInfo("Hello World"),n="设置config信息成功"):n={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[t]();case 7:this.setState({result:n});case 8:case"end":return e.stop()}var r}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"renderResultView",value:function(){return b.a.createElement(i.View,{style:Fn.resultView},b.a.createElement(i.Text,{style:{backgroundColor:"darkseagreen"}},"".concat(this.state.result)))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.funList;return b.a.createElement(i.View,{style:Fn.cellContentView},b.a.createElement(i.View,{style:Fn.funcInfo},b.a.createElement(i.Text,{numberofLines:0},"函数名：",n[e])),b.a.createElement(i.Text,{style:Fn.actionButton,onClick:function(){return t.onTurboFunc(n[e])}},"执行"))}},{key:"getRowKey",value:function(e){return this.state.funList[e]}},{key:"render",value:function(){var e=this.state.funList;return b.a.createElement(i.View,{style:Fn.container},this.renderResultView(),b.a.createElement(i.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}]),r}(b.a.Component);function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){$()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kn=Nn(Nn(Nn({},r),o),a),Gn=[{path:"/View",name:"View 组件",component:Kn.View,meta:{style:1}},{path:"/BoxShadow",name:"BoxShadow 范例",component:Kn.BoxShadow,meta:{style:1}},{path:"/Clipboard",name:"Clipboard 组件",component:Kn.Clipboard,meta:{style:1}},{path:"/Text",name:"Text 组件",component:Kn.Text,meta:{style:1}},{path:"/Image",name:"Image 组件",component:Kn.Image,meta:{style:1}},{path:"/ListView",name:"ListView 组件",component:Kn.ListView,meta:{style:1}},{path:"/WaterfallView",name:"WaterfallView 组件",component:Kn.WaterfallView,meta:{style:1}},{path:"/PullHeader",name:"PullHeader 组件",component:Kn.PullHeader,meta:{style:1}},{path:"/RefreshWrapper",name:"RefreshWrapper 组件",component:Kn.RefreshWrapper,meta:{style:1}},{path:"/ScrollView",name:"ScrollView 组件",component:Kn.ScrollView,meta:{style:1}},{path:"/ViewPager",name:"ViewPager 组件",component:Kn.ViewPager,meta:{style:1}},{path:"/TextInput",name:"TextInput 组件",component:Kn.TextInput,meta:{style:1}},{path:"/Modal",name:"Modal 组件",component:Kn.Modal,meta:{style:1}},{path:"/Slider",name:"Slider 组件",component:Kn.Slider,meta:{style:1}},{path:"/TabHost",name:"TabHost 组件",component:Kn.TabHost,meta:{style:1}},{path:"/WebView",name:"WebView 组件",component:Kn.WebView,meta:{style:1}},{path:"/RippleViewAndroid",name:"RippleViewAndroid 组件",component:Kn.RippleViewAndroid,meta:{style:1}},{path:"/WebSocket",name:"WebSocket 模块",component:Kn.WebSocket,meta:{style:2}},{path:"/Animation",name:"Animation 组件",component:Kn.Animation,meta:{style:2}},{path:"/NetInfo",name:"NetInfo 能力",component:Kn.NetInfo,meta:{style:2}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:Kn.UIManagerModule,meta:{style:2}},{path:"/SetNativeProps",name:"setNativeProps能力",component:Kn.SetNativeProps,meta:{style:2}},{path:"/DynamicImport",name:"DynamicImport 能力",component:Kn.DynamicImport,meta:{style:2}},{path:"/Localization",name:"Localization 信息",component:Kn.Localization,meta:{style:2}},{path:"/Turbo",name:"Turbo",component:Kn.Turbo,meta:{style:2}}],Un="#4c9afa",qn="#fff",Qn=i.StyleSheet.create({container:{height:56,backgroundColor:Un,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{width:24,height:24},headerButton:{height:64,paddingHorizontal:24,alignItems:"center",justifyContent:"center"},title:{fontSize:20,color:qn,lineHeight:24}}),Yn=J((function(e){var t=e.history,n=e.route;return 0===t.index?b.a.createElement(i.View,{style:[Qn.container]},b.a.createElement(i.View,{style:{backgroundColor:Qn.title.backgroundColor,marginLeft:12}},b.a.createElement(i.Text,{numberOfLines:1,style:[Qn.title,{fontWeight:"bold"}]},n.name)),b.a.createElement(i.View,{style:Qn.headerButton},b.a.createElement(i.Text,{numberOfLines:1,style:Qn.title},"ver: ","2.2.1"!==i.default.version?"".concat(i.default.version):"master"))):b.a.createElement(i.View,{style:[Qn.container]},b.a.createElement(i.View,{onClick:function(){return t.goBack()},style:[Qn.headerButton,"ios"===i.Platform.OS?null:{marginLeft:20}]},b.a.createElement(i.Image,{style:Qn.backIcon,source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"}})),b.a.createElement(i.View,{style:Qn.headerButton},b.a.createElement(i.Text,{numberOfLines:1,style:Qn.title},n.name)))}));function Xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Jn="#4c9afa",Zn="#f44837",$n=i.StyleSheet.create({rowContainer:{alignItems:"center"},buttonView:{borderColor:Jn,borderWidth:2,borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:Jn,textAlign:"center",textAlignVertical:"center"}}),er=[{path:"/Gallery",name:"Hippy React 示例",component:J(function(e){d()(n,e);var t=Xn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={pressItem:"",dataSource:v()(Gn)},r.renderRow=r.renderRow.bind(ue()(r)),r.getRowType=r.getRowType.bind(ue()(r)),r.getRowKey=r.getRowKey.bind(ue()(r)),r.clickTo=r.clickTo.bind(ue()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this.props.history;"android"===i.Platform.OS&&i.BackAndroid.addListener((function(){return console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].meta.style}},{key:"getRowKey",value:function(e){return this.state.dataSource[e].path||"".concat(e)}},{key:"feedback",value:function(e){var t=e||"";this.setState({pressItem:t})}},{key:"clickTo",value:function(e){this.props.history.push(e)}},{key:"renderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.pressItem,a=r[e],l=a.meta.style;return b.a.createElement(i.View,{style:$n.rowContainer},b.a.createElement(i.View,{onPressIn:function(){return t.feedback(a.path)},onPressOut:function(){return t.feedback()},onClick:function(){return t.clickTo(a.path)},style:[$n.buttonView,{borderColor:1===l?Jn:Zn,opacity:o===a.path?.5:1}]},b.a.createElement(i.Text,{style:[$n.buttonText,{color:1===l?Jn:Zn}]},a.name)))}},{key:"render",value:function(){var e=this.state.dataSource;return b.a.createElement(i.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey})}}]),n}(g.Component)),meta:{style:1}}].concat(v()(Gn)),tr=function(){return b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#fff"}},b.a.createElement(W,{initialEntries:["/Gallery"]},er.map((function(e){var t=e.component;return b.a.createElement(G,{key:e.path,exact:!0,path:"".concat(e.path)},b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#fff"}},b.a.createElement(Yn,{route:e}),b.a.createElement(t,{meta:e.meta||{}})))}))))},nr=i.StyleSheet.create({stepText:{color:"#242424",marginBottom:12},container:{flex:1,backgroundColor:"#fff",justifyContent:"center",flexDirection:"column",padding:20},button:{width:140,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",marginTop:12,justifyContent:"center"},inputStyle:{width:350,marginTop:30,marginBottom:10,placeholderTextColor:"#aaaaaa",fontSize:16,color:"#242424",height:80,lineHeight:30,borderColor:"#eee",borderWidth:1,borderStyle:"solid"}});function rr(e){var t=e.instanceId,n=Object(g.useRef)(null),r=function(){n.current.blur()};return b.a.createElement(i.ScrollView,{style:nr.container,onClick:r},["安装远程调试依赖： npm i -D @hippy/debug-server-next@latest","修改 webpack 配置，添加远程调试地址","运行 npm run hippy:dev 开始编译，编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试，远程调试支持热更新（HMR）"].map((function(e,t){return b.a.createElement(i.Text,{style:nr.stepText,key:"steps-".concat(t)},t+1,". ",e)})),b.a.createElement(i.TextInput,{ref:n,style:nr.inputStyle,placeholder:"please input bundleUrl",multiline:!0,numberOfLines:4,defaultValue:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"}),b.a.createElement(i.View,{style:nr.buttonContainer},b.a.createElement(i.View,{style:nr.button,onClick:function(){r(),n.current.getValue().then((function(e){e&&Object(i.callNative)("TestModule","remoteDebug",t,e)}))}},b.a.createElement(i.Text,{style:nr.buttonText,numberOfLines:1},"开始"))))}function or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var ar=i.StyleSheet.create({container:{flex:1}}),ir=function(e){d()(n,e);var t=or(n);function n(e){var r;c()(this,n),r=t.call(this,e);var o=i.Dimensions.get("screen"),a=o.width,l=o.height;return r.state={isVertical:a<l},r.onLayout=r.onLayout.bind(ue()(r)),r}return u()(n,[{key:"renderIPhoneStatusBar",value:function(e){var t=this.state.isVertical;return"ios"===i.Platform.OS&&t?b.a.createElement(i.View,{style:[{backgroundColor:e||"#fff"},{height:i.Dimensions.get("screen").statusBarHeight}]}):null}},{key:"onLayout",value:function(e){var t=e.layout,n=t.width,r=t.height;this.setState({isVertical:n<r})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.statusBarColor,r=null;return this.state.isVertical||(r={paddingHorizontal:De.isiPhoneX()?32:0}),b.a.createElement(i.View,{style:[ar.container,r],onLayout:this.onLayout},this.renderIPhoneStatusBar(n),b.a.createElement(i.View,{style:{flex:1}},t))}}]),n}(g.Component);function lr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var cr=i.StyleSheet.create({buttonContainer:{height:48,backgroundColor:"white",flexDirection:"row"},button:{height:48,flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#fff",borderTopWidth:1,borderTopColor:"#eee"},buttonText:{color:"#242424",fontSize:16},blankPage:{flex:1,backgroundColor:"white"}}),sr=function(e){d()(n,e);var t=lr(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={pageIndex:0},r}return u()(n,[{key:"render",value:function(){var e=this,t=this.state.pageIndex,n=this.props.__instanceId__;return b.a.createElement(ir,{statusBarColor:"#4c9afa"},function(){switch(t){case 0:return b.a.createElement(tr,null);case 1:return b.a.createElement(rr,{instanceId:n});default:return b.a.createElement(i.View,{style:cr.blankPage})}}(),b.a.createElement(i.View,{style:cr.buttonContainer},["API","调试"].map((function(n,r){return b.a.createElement(i.View,{key:"button_".concat(r),style:cr.button,onClick:function(){return e.setState({pageIndex:r})}},b.a.createElement(i.Text,{style:[cr.buttonText,r===t?{color:"#4c9afa"}:null],numberOfLines:1},n))}))))}}]),n}(g.Component);new i.Hippy({appName:"Demo",entryPage:sr,bubbles:!1,silent:!1}).start()},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}});