home.js
24.4 KB
webpackJsonp([2],{390:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=v(n(449)),o=v(n(47)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n(450),n(48);var i=n(0),u=v(i),s=(n(13),v(n(5)),n(79)),c=v(n(161)),f=n(14),d=n(146),p=n(138),m=v(n(456));function v(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var C=function(e){function t(){return y(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,i.Component),l(t,[{key:"render",value:function(){return u.default.createElement("div",null,u.default.createElement(m.default,r({title:"优惠券使用说明"},this.props,{rightContent:[u.default.createElement(o.default,{key:"0",onClick:this.props.onClose,type:"ellipsis"})]})),u.default.createElement("div",{className:"coupon-description nav-content"},u.default.createElement("div",null,"1.V券不可叠加使用,每张订单限用一张;"),u.default.createElement("div",null,"2.V券金额大于订单应付金额时,差额不予退回;"),u.default.createElement("div",null,"3.运费券按券面值仅可抵减订单运费,不可叠加使用,每张订单 限用一张,不设找零(运费券金额大于订单运费时,差额不予退 回)。运费券可与V券同时使用;"),u.default.createElement("div",null,"4.V券与运费券仅可在有效期期内使用。")))}}]),t}(),_=function(e){function t(e){y(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.showModal=function(e){return function(t){t.preventDefault(),n.setState(h({},e,!0))}},n.onClose=function(e){return function(){n.setState(h({},e,!1))}},n.state={allModal:!0},n}return g(t,i.Component),l(t,[{key:"componentWillMount",value:function(){f.storage.get("cart")&&this.props.dispatch((0,p.repalceTempProduct)(f.storage.get("cart"))),f.storage.get("userInfo")&&this.props.dispatch((0,d.updataUserInfo)(f.storage.get("userInfo")))}},{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentWillReceiveProps",value:function(e){}},{key:"render",value:function(){var e=this,t=this.props.location.pathname;return"/"==t||"/home"==t||"/myinfo"==t||"/classification"==t||"/shopcart"==t?u.default.createElement("div",{className:"app-root"},u.default.createElement("div",{className:"vb-content"},this.props.children),u.default.createElement(c.default,this.props)):"/activity"==t||"/activity/address"==t||"/eidtaddress"==t||"/share"==t||"/myCommission/withdraw"==t?u.default.createElement("div",{className:"app-root"},u.default.createElement("div",{className:"vb-content"},this.props.children)):u.default.createElement("div",{className:"app-root",style:{height:document.documentElement.clientHeight}},u.default.createElement(m.default,r({title:this.props.navBartitle.title},this.props,{rightContent:"/coupon"==t?[u.default.createElement(o.default,{key:"0",onClick:this.showModal("modal"),type:"ellipsis"})]:[]})),u.default.createElement("div",{className:"vb-content"},this.props.children),"/coupon"==t?u.default.createElement(a.default,{popup:!0,visible:this.state.modal,maskClosable:!1,onClose:this.onClose("modal"),animationType:"slide-down",footer:[{text:"关闭",onPress:function(){e.onClose("modal")()}}]},u.default.createElement(C,r({},this.props,{onClose:this.onClose("modal")}))):"")}}]),t}();t.default=(0,s.connect)(function(e){return{navBartitle:e.navBartitle}})(_)},392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o,r=v(n(134)),l=v(n(81)),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n(135),n(82);var u=n(0),s=v(u),c=n(13),f=v(n(5)),d=n(79),p=n(162),m=n(80);function v(e){return e&&e.__esModule?e:{default:e}}n(595);var h=(o=a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={phone:"",password:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),i(t,[{key:"componentWillMount",value:function(){this.props.dispatch((0,m.changeNavbarTitle)("品牌特卖"))}},{key:"componentDidMount",value:function(){this.props.dispatch((0,p.getbrandSale)())}},{key:"render",value:function(){return s.default.createElement("div",{className:"brand-sale"},s.default.createElement("div",{style:{height:document.documentElement.clientHeight-100,overflow:"auto"}},this.props.brandsale.data.map(function(e,t){return s.default.createElement(c.Link,{to:"/activityProduct?id="+e.imCampaignCategoryId+"&name="+e.name,key:t},s.default.createElement(r.default,null,s.default.createElement(l.default,null),s.default.createElement("img",{src:e.imageUrl})))})))}}]),t}(),a.propTypes={},a.defaultProps={},a.contextTypes={router:f.default.object.isRequired},o);t.default=(0,d.connect)(function(e){return{brandsale:e.brandsale}})(h)},449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(453)),o=i(n(464)),r=i(n(465)),l=i(n(466));function i(e){return e&&e.__esModule?e:{default:e}}a.default.alert=o.default,a.default.prompt=r.default,a.default.operation=l.default,t.default=a.default,e.exports=t.default},450:function(e,t,n){"use strict";n(11),n(467)},453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=m(n(6)),o=m(n(12)),r=m(n(1)),l=m(n(4)),i=m(n(2)),u=m(n(3)),s=m(n(0)),c=m(n(459)),f=m(n(7)),d=n(463),p=m(n(37));function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&(n[a[o]]=e[a[o]])}return n},h=function(e){function t(){return(0,r.default)(this,t),(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"renderFooterButton",value:function(e,t,n){var a={};if(e.style&&"string"==typeof(a=e.style)){a={cancel:{},default:{},destructive:{color:"red"}}[a]||{}}return s.default.createElement(p.default,{activeClassName:t+"-button-active",key:n},s.default.createElement("a",{className:t+"-button",role:"button",style:a,onClick:function(t){t.preventDefault(),e.onPress&&e.onPress()}},e.text||"Button"))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls,l=n.className,i=n.wrapClassName,u=n.transitionName,d=n.maskTransitionName,p=n.style,m=n.platform,h=n.footer,y=void 0===h?[]:h,b=n.operation,g=n.animated,C=n.transparent,_=n.popup,E=n.animationType,k=v(n,["prefixCls","className","wrapClassName","transitionName","maskTransitionName","style","platform","footer","operation","animated","transparent","popup","animationType"]),N=(0,f.default)(r+"-button-group-"+(2!==y.length||b?"v":"h"),r+"-button-group-"+(b?"operation":"normal")),P=y.length?s.default.createElement("div",{className:N,role:"group"},y.map(function(e,n){return t.renderFooterButton(e,r,n)})):null,w=void 0,O=void 0;g&&(w=O=C?"am-fade":"am-slide-up",_&&(w="slide-up"===E?"am-slide-up":"am-slide-down",O="am-fade"));var x=(0,f.default)(i,(0,o.default)({},r+"-wrap-popup",_)),j=(0,f.default)(l,(e={},(0,o.default)(e,r+"-transparent",C),(0,o.default)(e,r+"-popup",_),(0,o.default)(e,r+"-popup-"+E,_&&E),(0,o.default)(e,r+"-android","android"===m),e));return s.default.createElement(c.default,(0,a.default)({},k,{prefixCls:r,className:j,wrapClassName:x,transitionName:u||w,maskTransitionName:d||O,style:p,footer:P}))}}]),t}(d.ModalComponent);t.default=h,h.defaultProps={prefixCls:"am-modal",transparent:!1,popup:!1,animationType:"slide-down",animated:!0,style:{},onShow:function(){},footer:[],closable:!1,operation:!1,platform:"ios"},e.exports=t.default},455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e;){if(n.call(e,t))return e;e=e.parentElement}return null},e.exports=t.default},456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o,r=f(n(477)),l=f(n(47)),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n(478),n(48);var u=n(0),s=f(u),c=(n(13),f(n(5)));function f(e){return e&&e.__esModule?e:{default:e}}n(480);var d=(o=a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),i(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.title,a=t.isShowLeftContent,o=t.leftClick;a=void 0==a||a;var i=this.props.location.pathname;return s.default.createElement("div",{className:"vb-nav-bar"},s.default.createElement(r.default,{icon:a?s.default.createElement(l.default,{type:"left"}):"",leftContent:a?"返回":"",mode:"light",onLeftClick:function(){a&&("function"!=typeof o?"newshelves"===i||"explosionRecom"===i||"brandsale"===i||"activityProduct"===i?setTimeout(function(){e.props.router.push("/home")},300):setTimeout(function(){e.props.router.goBack()},300):o())},rightContent:this.props.rightContent},n))}}]),t}(),a.propTypes={title:c.default.string,rightContent:c.default.array},a.contextTypes={router:c.default.object.isRequired},a.defaultProps={title:"",rightContent:[]},o);t.default=d},459:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),o=n.n(a),r=n(1),l=n.n(r),i=n(4),u=n.n(i),s=n(2),c=n.n(s),f=n(3),d=n.n(f),p=n(0),m=n.n(p),v=n(33),h=n.n(v),y=n(461);var b=!!h.a.createPortal,g=function(e){function t(){l()(this,t);var e=c()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.saveRef=function(t){b&&(e._component=t)},e.getComponent=function(t){var n=o()({},e.props);return["visible","onAnimateLeave"].forEach(function(e){n.hasOwnProperty(e)&&delete n[e]}),m.a.createElement(y.a,o()({},n,{visible:t,onAnimateLeave:e.removeContainer,ref:e.saveRef}))},e.removeContainer=function(){e.container&&(b||h.a.unmountComponentAtNode(e.container),e.container.parentNode.removeChild(e.container),e.container=null)},e.getContainer=function(){if(!e.container){var t=document.createElement("div"),n=e.props.prefixCls+"-container-"+(new Date).getTime();t.setAttribute("id",n),document.body.appendChild(t),e.container=t}return e.container},e}return d()(t,e),u()(t,[{key:"componentDidMount",value:function(){this.props.visible&&this.componentDidUpdate()}},{key:"shouldComponentUpdate",value:function(e){var t=e.visible;return!(!this.props.visible&&!t)}},{key:"componentWillUnmount",value:function(){this.props.visible?b?this.removeContainer():this.renderDialog(!1):this.removeContainer()}},{key:"componentDidUpdate",value:function(){b||this.renderDialog(this.props.visible)}},{key:"renderDialog",value:function(e){h.a.unstable_renderSubtreeIntoContainer(this,this.getComponent(e),this.getContainer())}},{key:"render",value:function(){var e=this.props.visible;return b&&(e||this._component)?h.a.createPortal(this.getComponent(e),this.getContainer()):null}}]),t}(m.a.Component);t.default=g,g.defaultProps={visible:!1,prefixCls:"rmc-dialog",onClose:function(){}}},461:function(e,t,n){"use strict";var a=n(6),o=n.n(a),r=n(1),l=n.n(r),i=n(4),u=n.n(i),s=n(2),c=n.n(s),f=n(3),d=n.n(f),p=n(0),m=n.n(p),v=n(145),h=n(462);function y(){}var b=function(e){function t(){l()(this,t);var e=c()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.getDialogElement=function(){var t=e.props,n=t.closable,a=t.prefixCls,o=void 0;t.footer&&(o=m.a.createElement("div",{className:a+"-footer",ref:function(t){return e.footerRef=t}},t.footer));var r=void 0;t.title&&(r=m.a.createElement("div",{className:a+"-header",ref:function(t){return e.headerRef=t}},m.a.createElement("div",{className:a+"-title"},t.title)));var l=void 0;n&&(l=m.a.createElement("button",{onClick:e.close,"aria-label":"Close",className:a+"-close"},m.a.createElement("span",{className:a+"-close-x"})));var i=e.getTransitionName(),u=m.a.createElement(h.a,{key:"dialog-element",role:"document",ref:function(t){return e.dialogRef=t},style:t.style||{},className:a+" "+(t.className||""),visible:t.visible},m.a.createElement("div",{className:a+"-content"},l,r,m.a.createElement("div",{className:a+"-body",style:t.bodyStyle,ref:function(t){return e.bodyRef=t}},t.children),o));return m.a.createElement(v.a,{key:"dialog",showProp:"visible",onAppear:e.onAnimateAppear,onLeave:e.onAnimateLeave,transitionName:i,component:"",transitionAppear:!0},u)},e.onAnimateAppear=function(){document.body.style.overflow="hidden"},e.onAnimateLeave=function(){document.body.style.overflow="",e.wrapRef&&(e.wrapRef.style.display="none"),e.props.onAnimateLeave&&e.props.onAnimateLeave(),e.props.afterClose&&e.props.afterClose()},e.close=function(t){e.props.onClose&&e.props.onClose(t)},e.onMaskClick=function(t){t.target===t.currentTarget&&e.close(t)},e}return d()(t,e),u()(t,[{key:"componentWillUnmount",value:function(){document.body.style.overflow="",this.wrapRef&&(this.wrapRef.style.display="none")}},{key:"getZIndexStyle",value:function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e}},{key:"getWrapStyle",value:function(){var e=this.props.wrapStyle||{};return o()({},this.getZIndexStyle(),e)}},{key:"getMaskStyle",value:function(){var e=this.props.maskStyle||{};return o()({},this.getZIndexStyle(),e)}},{key:"getMaskTransitionName",value:function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t}},{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName,n=e.animation;return!t&&n&&(t=e.prefixCls+"-"+n),t}},{key:"getMaskElement",value:function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=m.a.createElement(h.a,{style:this.getMaskStyle(),key:"mask-element",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=m.a.createElement(v.a,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,a=t.maskClosable,r=this.getWrapStyle();return t.visible&&(r.display=null),m.a.createElement("div",null,this.getMaskElement(),m.a.createElement("div",o()({className:n+"-wrap "+(t.wrapClassName||""),ref:function(t){return e.wrapRef=t},onClick:a?this.onMaskClick:void 0,role:"dialog","aria-labelledby":t.title,style:r},t.wrapProps),this.getDialogElement()))}}]),t}(m.a.Component);t.a=b,b.defaultProps={afterClose:y,className:"",mask:!0,visible:!1,closable:!0,maskClosable:!0,prefixCls:"rmc-dialog",onClose:y}},462:function(e,t,n){"use strict";var a=n(6),o=n.n(a),r=n(1),l=n.n(r),i=n(4),u=n.n(i),s=n(2),c=n.n(s),f=n(3),d=n.n(f),p=n(0),m=n.n(p),v=function(e){function t(){return l()(this,t),c()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d()(t,e),u()(t,[{key:"shouldComponentUpdate",value:function(e){return!!e.hiddenClassName||!!e.visible}},{key:"render",value:function(){var e=this.props.className;this.props.hiddenClassName&&!this.props.visible&&(e+=" "+this.props.hiddenClassName);var t=o()({},this.props);return delete t.hiddenClassName,delete t.visible,t.className=e,m.a.createElement("div",o()({},t))}}]),t}(m.a.Component);t.a=v},463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalComponent=void 0;var a=i(n(1)),o=i(n(2)),r=i(n(3)),l=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}t.ModalComponent=function(e){function t(){return(0,a.default)(this,t),(0,o.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,r.default)(t,e),t}(l.default.Component)},464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[{text:"确定"}],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ios",u=!1;if(!e&&!t)return{close:function(){}};var s=document.createElement("div");function c(){o.default.unmountComponentAtNode(s),s&&s.parentNode&&s.parentNode.removeChild(s)}document.body.appendChild(s);var f=n.map(function(e){var t=e.onPress||function(){};return e.onPress=function(){if(!u){var e=t();e&&e.then?e.then(function(){u=!0,c()}).catch(function(){}):(u=!0,c())}},e}),d="am-modal";return o.default.render(a.default.createElement(r.default,{visible:!0,transparent:!0,title:e,transitionName:"am-zoom",closable:!1,maskClosable:!1,footer:f,maskTransitionName:"am-fade",platform:i,wrapProps:{onTouchStart:function(e){/iPhone|iPod|iPad/i.test(navigator.userAgent)&&((0,l.default)(e.target,"."+d+"-footer")||e.preventDefault())}}},a.default.createElement("div",{className:d+"-alert-content"},t)),s),{close:c}};var a=i(n(0)),o=i(n(33)),r=i(n(453)),l=i(n(455));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},465:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"default",u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:["",""],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"ios",f=!1;if(u="string"==typeof u?u:"number"==typeof u?""+u:"",!n)return{close:function(){}};var d="am-modal",p={text:u};function m(e){var t=e.target,n=t.getAttribute("type");p[n]=t.value}var v=void 0,h=function(e){setTimeout(function(){e&&e.focus()},500)};switch(i){case"login-password":v=a.default.createElement("div",{className:d+"-input-container"},a.default.createElement("div",{className:d+"-input"},a.default.createElement("label",null,a.default.createElement("input",{type:"text",defaultValue:p.text,ref:function(e){return h(e)},onChange:m,placeholder:s[0]}))),a.default.createElement("div",{className:d+"-input"},a.default.createElement("label",null,a.default.createElement("input",{type:"password",defaultValue:p.password,onChange:m,placeholder:s[1]}))));break;case"secure-text":v=a.default.createElement("div",{className:d+"-input-container"},a.default.createElement("div",{className:d+"-input"},a.default.createElement("label",null,a.default.createElement("input",{type:"password",defaultValue:p.password,ref:function(e){return h(e)},onChange:m,placeholder:s[0]}))));break;case"default":default:v=a.default.createElement("div",{className:d+"-input-container"},a.default.createElement("div",{className:d+"-input"},a.default.createElement("label",null,a.default.createElement("input",{type:"text",defaultValue:p.text,ref:function(e){return h(e)},onChange:m,placeholder:s[0]}))))}var y=a.default.createElement("div",null,t,v),b=document.createElement("div");function g(){o.default.unmountComponentAtNode(b),b&&b.parentNode&&b.parentNode.removeChild(b)}function C(e){if("function"==typeof e){var t=p.text,n=void 0===t?"":t,a=p.password,o=void 0===a?"":a,r="login-password"===i?[n,o]:"secure-text"===i?[o]:[n];return e.apply(void 0,r)}}document.body.appendChild(b);var _=void 0;_="function"==typeof n?[{text:"取消"},{text:"确定",onPress:function(){C(n)}}]:n.map(function(e){return{text:e.text,onPress:function(){return C(e.onPress)}}});var E=_.map(function(e){var t=e.onPress||function(){};return e.onPress=function(){if(!f){var e=t();e&&e.then?e.then(function(){f=!0,g()}).catch(function(){}):(f=!0,g())}},e});return o.default.render(a.default.createElement(r.default,{visible:!0,transparent:!0,prefixCls:d,title:e,closable:!1,maskClosable:!1,transitionName:"am-zoom",footer:E,maskTransitionName:"am-fade",platform:c,wrapProps:{onTouchStart:function(e){/iPhone|iPod|iPad/i.test(navigator.userAgent)&&((0,l.default)(e.target,"."+d+"-content")||e.preventDefault())}}},a.default.createElement("div",{className:d+"-propmt-content"},y)),b),{close:g}};var a=i(n(0)),o=i(n(33)),r=i(n(453)),l=i(n(455));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},466:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{text:"确定"}],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ios",n=!1,i=document.createElement("div");function u(){o.default.unmountComponentAtNode(i),i&&i.parentNode&&i.parentNode.removeChild(i)}document.body.appendChild(i);var s=e.map(function(e){var t=e.onPress||function(){};return e.onPress=function(){if(!n){var e=t();e&&e.then?e.then(function(){n=!0,u()}).catch(function(){}):(n=!0,u())}},e});return o.default.render(a.default.createElement(r.default,{visible:!0,operation:!0,transparent:!0,prefixCls:"am-modal",transitionName:"am-zoom",closable:!1,maskClosable:!0,onClose:u,footer:s,maskTransitionName:"am-fade",className:"am-modal-operation",platform:t,wrapProps:{onTouchStart:function(e){/iPhone|iPod|iPad/i.test(navigator.userAgent)&&((0,l.default)(e.target,".am-modal-footer")||e.preventDefault())}}}),i),{close:u}};var a=i(n(0)),o=i(n(33)),r=i(n(453)),l=i(n(455));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},467:function(e,t){},477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(n(6)),o=c(n(1)),r=c(n(4)),l=c(n(2)),i=c(n(3)),u=c(n(0)),s=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&(n[a[o]]=e[a[o]])}return n},d=function(e){function t(){return(0,o.default)(this,t),(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,i.default)(t,e),(0,r.default)(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,o=e.children,r=e.mode,l=e.icon,i=e.onLeftClick,c=e.leftContent,d=e.rightContent,p=f(e,["prefixCls","className","children","mode","icon","onLeftClick","leftContent","rightContent"]);return u.default.createElement("div",(0,a.default)({},p,{className:(0,s.default)(n,t,t+"-"+r)}),u.default.createElement("div",{className:t+"-left",role:"button",onClick:i},l?u.default.createElement("span",{className:t+"-left-icon","aria-hidden":"true"},l):null,c),u.default.createElement("div",{className:t+"-title"},o),u.default.createElement("div",{className:t+"-right"},d))}}]),t}(u.default.Component);t.default=d,d.defaultProps={prefixCls:"am-navbar",mode:"dark",onLeftClick:function(){}},e.exports=t.default},478:function(e,t,n){"use strict";n(11),n(479)},479:function(e,t){},480:function(e,t){},595:function(e,t){}});