Files
gitlab-instance-0a899031_ci…/dist/pages/home/index.js
2022-11-20 13:26:48 +08:00

2 lines
51 KiB
JavaScript

/*! For license information please see index.js.LICENSE.txt */
(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/dialog/dialog.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@antmjs/vantui/es/dialog/events.js");function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a={show:!1,title:"",width:null,theme:"default",message:"",overlay:!0,className:"",asyncClose:!1,transition:"scale",messageAlign:"",overlayStyle:"",confirmButtonText:"确认",cancelButtonText:"取消",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1,confirmButtonOpenType:""};t.default={defaultOptions:_objectSpread({},a),alert:function alert(e){var t=new Promise((function(e){(0,r.on)("confirm",(function confirmFn(){(0,r.off)("confirm",confirmFn),e("confirm")})),(0,r.on)("cancel",(function cancelFn(){(0,r.off)("cancel",cancelFn),e("cancel")}))})),n="round-button"===(null==e?void 0:e.theme)?{confirmButtonColor:"#FFFFFF",cancelButtonColor:"#FFFFFF"}:{};return(0,r.trigger)("alert",_objectSpread(_objectSpread(_objectSpread(_objectSpread({},this.defaultOptions),e),n),{},{show:!0})),t},confirm:function confirm(e){return this.alert(_objectSpread(_objectSpread({},e),{},{showCancelButton:!0}))},close:function close(){(0,r.off)("confirm"),(0,r.off)("cancel"),(0,r.trigger)("close")},stopLoading:function stopLoading(){(0,r.trigger)("stopLoading")},setDefaultOptions:function setDefaultOptions(e){this.defaultOptions=_objectSpread(_objectSpread({},this.defaultOptions),e)},resetDefaultOptions:function resetDefaultOptions(){this.defaultOptions=_objectSpread({},a)}}},"./node_modules/@antmjs/vantui/es/dialog/events.js":function(e,t,n){"use strict";n.d(t,{on:function(){return on},off:function(){return off},trigger:function(){return trigger}});var o=n("webpack/container/remote/@tarojs/taro"),r=new o.Events;function trigger(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.trigger.apply(r,[e].concat(n))}function on(e,t){return r.on(e,t)}function off(e,t){return r.off(e,t)}},"./node_modules/@antmjs/vantui/es/dialog/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("webpack/container/remote/react"),c=n("webpack/container/remote/@tarojs/taro"),l=n("./node_modules/@antmjs/vantui/es/common/utils.js"),u=n("./node_modules/@antmjs/vantui/es/goods-action-button/index.js"),d=n("./node_modules/@antmjs/vantui/es/goods-action/index.js"),m=n("./node_modules/@antmjs/vantui/es/button/index.js"),f=n("./node_modules/@antmjs/vantui/es/popup/index.js"),p=n("./node_modules/@antmjs/vantui/es/dialog/events.js"),j=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),b=n("./node_modules/@antmjs/vantui/es/dialog/dialog.js"),h=n("webpack/container/remote/react/jsx-runtime"),v=["show","overlay","theme","zIndex","width","overlayStyle","closeOnClickOverlay","message","title","messageAlign","showCancelButton","cancelButtonColor","confirmButtonColor","cancelButtonText","showConfirmButton","confirmButtonOpenType","sessionFrom","sendMessageTitle","sendMessagePath","sendMessageImg","showMessageCard","appParameter","confirmButtonText","renderTitle","onClose","onConfirm","onCancel","beforeClose","asyncClose","children","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dialog(e){var t=(0,s.useState)({}),n=(0,a.default)(t,2),o=n[0],b=n[1],g=o.show,y=o.overlay,w=void 0===y||y,_=o.theme,x=void 0===_?"default":_,O=o.zIndex,S=o.width,C=o.overlayStyle,k=o.closeOnClickOverlay,P=o.message,N=o.title,T=o.messageAlign,D=o.showCancelButton,E=o.cancelButtonColor,I=o.confirmButtonColor,A=o.cancelButtonText,F=void 0===A?"取消":A,V=o.showConfirmButton,B=void 0===V||V,M=o.confirmButtonOpenType,z=o.sessionFrom,K=o.sendMessageTitle,L=o.sendMessagePath,q=o.sendMessageImg,R=o.showMessageCard,X=o.appParameter,W=o.confirmButtonText,Y=void 0===W?"确认":W,H=o.renderTitle,G=o.onClose,U=o.onConfirm,J=o.onCancel,Q=o.beforeClose,$=o.asyncClose,Z=o.children,ee=o.style,te=o.className,ne=(0,r.default)(o,v),oe=(0,s.useState)(!1),re=(0,a.default)(oe,2),ae=re[0],ie=re[1],se=(0,s.useState)(!1),ce=(0,a.default)(se,2),le=ce[0],ue=ce[1],de=(0,s.useState)(g),me=(0,a.default)(de,2),fe=me[0],pe=me[1],je=(0,s.useCallback)((function(e){pe(!1),(0,c.nextTick)((function(){null==G||G({detail:e})}))}),[G]),be=(0,s.useCallback)((function(){je("overlay")}),[je]),he=(0,s.useCallback)((function(){ie(!1),ue(!1)}),[]),ve=(0,s.useCallback)((function(e){"confirm"===e?(null==U||U({detail:{action:e,dialog:{dialog:null}}}),(0,p.trigger)("confirm")):"cancel"===e?(null==J||J({detail:{action:e,dialog:{dialog:null}}}),(0,p.trigger)("cancel")):(0,p.trigger)("cancel"),$||Q?("confirm"===e?ie(!0):ue(!0),Q&&(0,l.toPromise)(Q(e)).then((function(t){t?(je(e),he()):he()})).catch((function(){he()}))):je(e)}),[je,he,$,Q,J,U]),ge=(0,s.useCallback)((function(){ve("confirm")}),[ve]),ye=(0,s.useCallback)((function(){ve("cancel")}),[ve]);return(0,s.useEffect)((function(){b(_objectSpread(_objectSpread({},o),e)),e.show||he()}),[e]),(0,s.useEffect)((function(){pe(o.show)}),[o.show]),(0,s.useEffect)((function(){if(e.id){var t=function alertFn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.selector&&e.id!==t.selector.replace(/^#/,"")||(b(_objectSpread({},t)),pe(!!t.show))},n=function stopLoadingFn(){he()},o=function closeFn(){je("close")};return(0,p.on)("alert",t),(0,p.on)("close",o),(0,p.on)("stopLoading",n),function(){(0,p.off)("alert",t),(0,p.off)("close",o),(0,p.off)("stopLoading",n)}}}),[je,he,o,e.id]),(0,s.useEffect)((function(){return function(){(0,p.off)("confirm"),(0,p.off)("cancel"),(0,p.off)("alert"),(0,p.off)("close"),(0,p.off)("stopLoading")}}),[]),(0,h.jsxs)(f.default,{show:fe,zIndex:O,overlay:w,className:"van-dialog van-dialog--"+x+" "+"".concat(te||""),style:j.style(["width: "+j.addUnit(S)+";",ee]),overlayStyle:C,closeOnClickOverlay:k,onClose:be,children:[(N||H)&&(0,h.jsx)(i.View,{className:j.bem("dialog__header",{isolated:!(P||H)}),children:H||N&&(0,h.jsx)(h.Fragment,{children:N})}),Z||P&&(0,h.jsx)(i.View,{className:j.bem("dialog__message",[x,T,{hasTitle:N}]),children:(0,h.jsx)(i.Text,{className:"van-dialog__message-text",children:P})}),"round-button"===x?(0,h.jsxs)(d.default,{className:"van-dialog__footer--round-button",children:[D&&(0,h.jsx)(u.default,{loading:le,className:"van-dialog__button van-hairline--right van-dialog__cancel",style:E?{color:E}:{},onClick:ye,children:F}),B&&(0,h.jsx)(u.default,_objectSpread(_objectSpread({className:"van-dialog__button van-dialog__confirm",style:I?{color:I}:{},loading:ae,openType:M,sessionFrom:z,sendMessageTitle:K,sendMessagePath:L,sendMessageImg:q,appParameter:X,onClick:ge},ne),{},{children:Y}))]}):(0,h.jsxs)(i.View,{className:"van-hairline--top van-dialog__footer",children:[D&&(0,h.jsx)(m.default,{size:"large",loading:le,className:"van-dialog__button van-dialog__cancel",style:E?{color:E}:{},onClick:ye,children:F}),B&&(0,h.jsx)(m.default,_objectSpread(_objectSpread({size:"large",className:"van-dialog__button van-dialog__confirm ".concat(D?"van-hairline--left":""),loading:ae,style:I?{color:I}:{},openType:M,sessionFrom:z,sendMessageTitle:K,sendMessagePath:L,sendMessageImg:q,showMessageCard:R,appParameter:X,onClick:ge},ne),{},{children:Y}))]})]})}Dialog.alert=function(e){return b.default.alert(e)},Dialog.confirm=function(e){return b.default.confirm(e)},Dialog.close=function(){b.default.close()},Dialog.stopLoading=function(){b.default.stopLoading()},Dialog.setDefaultOptions=function(e){b.default.setDefaultOptions(e)},Dialog.resetDefaultOptions=function(){b.default.resetDefaultOptions()},t.default=Dialog},"./node_modules/@antmjs/vantui/es/field/index.js":function(e,t,n){"use strict";n.d(t,{Field:function(){return Field}});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/@tarojs/taro"),i=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/cell/index.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(n("./node_modules/@antmjs/vantui/es/utils/index.js"),n("./node_modules/@antmjs/vantui/es/field/wxs.js")),m=n("webpack/container/remote/react/jsx-runtime");n("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=0;function Field(e){var t=(0,i.useRef)({focused:!1}),n=(0,i.useState)({showClear:!1,unitag:"van-field"}),o=(0,r.default)(n,2),p=o[0],j=o[1],b=(0,i.useState)(""),h=(0,r.default)(b,2),v=h[0],g=h[1],y=p.showClear,w=e.size,_=e.leftIcon,x=e.center,O=e.border,S=void 0===O||O,C=e.isLink,k=e.required,P=e.clickable,N=e.className,T=e.titleWidth,D=void 0===T?"6.2em":T,E=e.style,I=e.arrowDirection,A=e.label,F=e.disabled,V=e.type,B=void 0===V?"text":V,M=e.inputAlign,z=e.clearIcon,K=void 0===z?"clear":z,L=e.rightIcon,q=e.icon,R=e.iconClass,X=e.value,W=e.maxlength,Y=e.showWordLimit,H=e.errorMessageAlign,G=e.error,U=e.errorMessage,J=e.fixed,Q=e.focus,$=e.cursor,Z=void 0===$?-1:$,ee=e.autoFocus,te=e.readonly,ne=e.placeholder,oe=e.placeholderStyle,re=e.autosize,ae=e.cursorSpacing,ie=void 0===ae?50:ae,se=e.adjustPosition,ce=void 0===se||se,le=e.showConfirmBar,ue=void 0===le||le,de=e.holdKeyboard,me=e.selectionEnd,fe=void 0===me?-1:me,pe=e.selectionStart,je=void 0===pe?-1:pe,be=e.alwaysEmbed,he=e.disableDefaultPadding,ve=void 0===he||he,ge=e.confirmType,ye=e.confirmHold,we=e.password,_e=e.clearable,xe=e.clearTrigger,Oe=void 0===xe?"focus":xe,Se=e.renderLeftIcon,Ce=e.renderTitle,ke=e.renderInput,Pe=e.renderRightIcon,Ne=e.renderIcon,Te=e.renderButton,De=e.onChange,Ee=e.onFocus,Ie=e.onBlur,Ae=e.onClear,Fe=e.onConfirm,Ve=e.onInput,Be=e.onClickInput,Me=e.onClickIcon,ze=e.onLineChange,Ke=e.onKeyboardHeightChange;(0,i.useEffect)((function(){j((function(e){return _objectSpread(_objectSpread({},e),{},{unitag:"van-field_uni_".concat(f++)})}))}),[]);var Le=function emitChange(e){e=e||{detail:{value:""}},Object.defineProperty(e,"detail",{value:e.detail.value}),g(e.detail||""),(0,a.nextTick)((function(){null==Ve||Ve(e),null==De||De(e)}))},qe=function setShowClear(e){var n=!1;if(_e&&!te){var o=!!e,r="always"===Oe||"focus"===Oe&&t.current.focused;n=o&&r}j((function(e){return _objectSpread(_objectSpread({},e),{},{showClear:n})}))},Re=function _input(e){var t=(e.detail||{}).value;qe(void 0===t?"":t),Le(e)},Xe=function _focus(e){t.current.focused=!0,setTimeout((function(){qe(v)})),Object.defineProperty(e,"detail",{value:e.detail.value}),null==Ee||Ee(e)},We=function _blur(e){t.current.focused=!1,qe(v),Object.defineProperty(e,"detail",{value:e.detail.value}),null==Ie||Ie(e)},Ye=function _confirm(e){var t=(e.detail||{}).value;qe(void 0===t?"":t),Object.defineProperty(e,"detail",{value:e.detail.value}),null==Fe||Fe(e)};return(0,i.useEffect)((function(){qe(v)}),[te,_e]),(0,i.useEffect)((function(){g(null!=X?X:"")}),[X]),(0,i.useEffect)((function(){0}),[v]),(0,m.jsxs)(l.Cell,{size:w,icon:_,center:x,border:S,isLink:C,required:k,clickable:P,titleWidth:D,titleStyle:{marginRight:"12px"},style:E,arrowDirection:I,className:"van-field "+"".concat(N||""),renderIcon:(0,m.jsx)(m.Fragment,{children:Se}),renderTitle:(0,m.jsx)(m.Fragment,{children:A?(0,m.jsx)(s.View,{className:"label-class "+c.bem("field__label",{disabled:F}),children:A}):Ce}),children:[(0,m.jsxs)(s.View,{className:c.bem("field__body",[B]),children:[(0,m.jsx)(s.View,{className:c.bem("field__control",[M,"custom"]),onClick:Be,children:ke}),"textarea"===B?(0,m.jsx)(s.Textarea,{className:c.bem("field__control",[M,B,{disabled:F,error:G}])+" input-class ".concat(re?"autosize":""," ").concat(p.unitag)+"".concat(""),fixed:J,focus:Q,cursor:Z,value:v,autoFocus:ee,disabled:F||te,maxlength:W,placeholder:ne,placeholderStyle:oe,placeholderClass:c.bem("field__placeholder",{error:G,disabled:F}),nativeProps:re?{rows:1}:{},autoHeight:!!re,style:d.inputStyle(re),cursorSpacing:ie,adjustPosition:ce,showConfirmBar:ue,holdKeyboard:de,selectionEnd:fe,selectionStart:je,disableDefaultPadding:ve,onInput:Re,onClick:Be,onBlur:We,onFocus:Xe,onConfirm:Ye,onLineChange:ze,onKeyboardHeightChange:Ke}):(0,m.jsx)(s.Input,{className:c.bem("field__control",[M,{disabled:F,error:G}])+" input-class",type:B,focus:Q,cursor:Z,value:v,autoFocus:ee,disabled:F||te,maxlength:W,placeholder:ne,placeholderStyle:oe,placeholderClass:c.bem("field__placeholder",{error:G}),confirmType:ge,confirmHold:ye,holdKeyboard:de,cursorSpacing:ie,adjustPosition:ce,selectionEnd:fe,selectionStart:je,alwaysEmbed:be,password:we||"password"===B,onInput:Re,onClick:Be,onBlur:We,onFocus:Xe,onConfirm:Ye,onKeyboardHeightChange:Ke}),y&&(0,m.jsx)(u.Icon,{name:K,className:"van-field__clear-root van-field__icon-root",onTouchStart:function _clear(){g(""),qe(""),(0,a.nextTick)((function(){Le(),null==Ae||Ae()}))}}),(0,m.jsxs)(s.View,{className:"van-field__icon-container",onClick:Me,children:[(L||q)&&(0,m.jsx)(u.Icon,{name:L||q,className:"van-field__icon-root "+R+" right-icon-class"}),Pe,Ne]}),(0,m.jsx)(s.View,{className:"van-field__button",children:Te})]}),Y&&W&&(0,m.jsxs)(s.View,{className:"van-field__word-limit",children:[(0,m.jsx)(s.View,{className:c.bem("field__word-num",{full:v.length>=W}),children:v.length>=W?W:v.length}),"/"+W]}),U&&(0,m.jsx)(s.View,{className:c.bem("field__error-message",[H,{disabled:F,error:G}]),children:U})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,t,n){"use strict";n.d(t,{inputStyle:function(){return inputStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function inputStyle(e){return e&&"Object"===e.constructor.name?(0,o.style)({"min-height":(0,r.addUnit)(e.minHeight),"max-height":(0,r.addUnit)(e.maxHeight)}):""}},"./node_modules/@antmjs/vantui/es/goods-action-button/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/button/index.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["text","url","linkType","plain","type","style","isFirst","isLast","onClick","children","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoodsActionButton(e){var t=e.text,n=e.url,o=e.linkType,d=e.plain,m=e.type,f=void 0===m?"danger":m,p=e.style,j=e.isFirst,b=e.isLast,h=e.onClick,v=e.children,g=e.className,y=(0,r.default)(e,u),w=(0,a.useCallback)((function(e){null==h||h(e),n&&(0,c.jumpLink)(n,o)}),[o,h,n]);return(0,l.jsxs)(i.default,_objectSpread(_objectSpread({type:f,plain:d,hairline:d,className:s.bem("goods-action-button",[f,{first:j,last:b,plain:d}])+" van-goods-action-button__inner ".concat(g||""),style:p,onClick:w},y),{},{children:[t,v]}))}GoodsActionButton.displayName="GoodsActionButton",t.default=GoodsActionButton},"./node_modules/@antmjs/vantui/es/goods-action/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("./node_modules/rc-util/lib/Children/toArray.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["safeAreaInsetBottom","style","children","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function GoodsAction(e){var t=e.safeAreaInsetBottom,n=void 0===t||t,r=e.style,d=e.children,m=e.className,f=(0,o.default)(e,u),p=function parseTabList(e){return(0,s.default)(e).map((function(e){return(0,a.isValidElement)(e)?_objectSpread(_objectSpread({key:void 0!==e.key?String(e.key):void 0},e.props),{},{node:e}):null})).filter((function(e){return e}))}(d),j=p.map((function(e,t){var n,o,r,i,s,c,l,u,d="GoodsActionButton"===(null===(n=e.node)||void 0===n||null===(o=n.type)||void 0===o?void 0:o.displayName),m="GoodsActionButton"===(null===(r=p[t-1])||void 0===r||null===(i=r.node)||void 0===i||null===(s=i.type)||void 0===s?void 0:s.displayName),f="GoodsActionButton"===(null===(c=p[t+1])||void 0===c||null===(l=c.node)||void 0===l||null===(u=l.type)||void 0===u?void 0:u.displayName);return(0,a.cloneElement)(e.node,{key:t,index:t,isFirst:!m&&d,isLast:!f&&d})}));return(0,l.jsx)(i.View,_objectSpread(_objectSpread({className:" "+c.bem("goods-action",{safe:n})+" ".concat(m||""),style:r},f),{},{children:j}))}},"./node_modules/@antmjs/vantui/es/grid-item/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("webpack/container/remote/react"),s=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/icon/index.js"),u=n("./node_modules/@antmjs/vantui/es/grid-item/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),m=["icon","iconColor","iconPrefix","dot","info","badge","text","setChildrenInstance","parentInstance","index","url","linkType","style","className"];t.default=function GridItem(e){var t=e.icon,n=e.iconColor,f=e.iconPrefix,p=void 0===f?"van-icon":f,j=e.dot,b=e.info,h=e.badge,v=e.text,g=e.setChildrenInstance,y=e.parentInstance,w=e.index,_=e.url,x=e.linkType,O=e.style,S=e.className,C=(0,r.default)(e,m),k=(0,i.useState)({}),P=(0,o.default)(k,2),N=P[0],T=P[1];(0,i.useEffect)((function(){g(w,{updateStyle:D})}),[w,g]),(0,i.useEffect)((function(){D()}),[y.columnNum]);var D=(0,i.useCallback)((function(){var e=y.columnNum,t=y.border,n=y.square,o=y.gutter,r=y.clickable,a=y.center,i=y.direction,s=y.reverse,c=y.iconSize;T({center:a,border:t,square:n,gutter:o,clickable:r,direction:i,reverse:s,iconSize:c,index:w,columnNum:e})}),[y,w]);return(0,d.jsx)(a.View,{className:" "+c.bem("grid-item",{square:null==N?void 0:N.square})+" "+S,style:c.style([u.wrapperStyle({square:null==N?void 0:N.square,gutter:null==N?void 0:N.gutter,columnNum:null==N?void 0:N.columnNum,index:null==N?void 0:N.index}),O]),onClick:function onClick(e){var t;_&&(0,s.jumpLink)(_,x),null==C||null===(t=C.onClick)||void 0===t||t.call(C,e)},children:(0,d.jsx)(a.View,{className:"content-class "+c.bem("grid-item__content",[null==N?void 0:N.direction,{center:null==N?void 0:N.center,square:null==N?void 0:N.square,reverse:null==N?void 0:N.reverse,clickable:null==N?void 0:N.clickable,surround:(null==N?void 0:N.border)&&(null==N?void 0:N.gutter)}])+" "+(null!=N&&N.border?"van-hairline--surround":""),style:u.contentStyle({square:null==N?void 0:N.square,gutter:null==N?void 0:N.gutter}),children:C.children||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.View,{className:"van-grid-item__icon icon-class",children:t?(0,d.jsx)(l.default,{name:t,color:n,classPrefix:p,dot:j,info:h||b,size:null==N?void 0:N.iconSize}):N.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:v?(0,d.jsx)(a.Text,{children:v}):N.renderText})]})})})}},"./node_modules/@antmjs/vantui/es/grid-item/wxs.js":function(e,t,n){"use strict";n.d(t,{wrapperStyle:function(){return wrapperStyle},contentStyle:function(){return contentStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function wrapperStyle(e){var t=100/e.columnNum+"%";return(0,o.style)({width:t,"padding-top":e.square?t:null,"padding-right":(0,r.addUnit)(e.gutter),"margin-top":e.index>=e.columnNum&&!e.square?(0,r.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,o.style)({right:(0,r.addUnit)(e.gutter),bottom:(0,r.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),l=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,u=e.clickable,d=e.columnNum,m=void 0===d?4:d,f=e.center,p=void 0===f||f,j=e.border,b=void 0===j||j,h=e.direction,v=e.iconSize,g=void 0===v?"48":v,y=e.square,w=e.reverse,_=void 0!==w&&w,x=e.className,O=void 0===x?"":x,S=e.style,C=void 0===S?{}:S,k=(0,o.default)(e,l),P=(0,a.useRef)([]),N=(0,a.useCallback)((function(){P.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){N()}),[N]);var T=(0,a.useCallback)((function(e,t){P.current[e]=t}),[]),D=(0,a.useMemo)((function(){var e=[];return k.children&&Array.isArray(k.children)&&k.children.forEach((function(t,o){e.push((0,a.cloneElement)(t,{setChildrenInstance:T,key:o,index:o,parentInstance:{columnNum:m,border:b,square:y,gutter:n,clickable:u,center:p,direction:h,reverse:_,iconSize:g}}))})),e}),[k.children,m]);return(0,c.jsx)(r.View,{className:"van-grid "+(b&&!n?"van-hairline--top":"")+" "+O,style:i.style([s.rootStyle({gutter:n}),C]),children:D})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,o.style)({"padding-left":(0,r.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/container/remote/@tarojs/taro"),s=n("webpack/container/remote/react"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),m=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),f=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=0;t.default=function NoticeBar(e){var t=(0,s.useState)({ready:!1,show:!0,animationData:{actions:[]},unitag:0}),n=(0,a.default)(t,2),o=n[0],b=n[1],h={animation:null,resetAnimation:null,timer:null,wrapWidth:void 0,contentWidth:void 0,duration:void 0},v=(0,s.useRef)(h),g=e.text,y=void 0===g?"":g,w=e.mode,_=void 0===w?"":w,x=e.url,O=void 0===x?"":x,S=e.openType,C=void 0===S?"navigate":S,k=e.delay,P=void 0===k?1:k,N=e.speed,T=void 0===N?60:N,D=e.scrollable,E=void 0===D?null:D,I=e.leftIcon,A=void 0===I?"":I,F=e.color,V=void 0===F?"#ed6a0c":F,B=e.backgroundColor,M=void 0===B?"#fffbe8":B,z=e.background,K=e.wrapable,L=e.renderLeftIcon,q=e.renderRightIcon,R=e.onClick,X=e.onClose,W=e.style,Y=e.className,H=e.children,G=(0,r.default)(e,p);(0,s.useEffect)((function(){b((function(e){return _objectSpread(_objectSpread({},e),{},{unitag:j++})}))}),[]),(0,i.useReady)((function(){v.current.resetAnimation=(0,i.createAnimation)({duration:0,timingFunction:"linear"}),b((function(e){return _objectSpread(_objectSpread({},e),{},{ready:!0})}))})),(0,s.useEffect)((function(){v.current.resetAnimation=(0,i.createAnimation)({duration:0,timingFunction:"linear"}),b((function(e){return _objectSpread(_objectSpread({},e),{},{ready:!0})}))}),[]),(0,s.useEffect)((function(){return y&&o.ready&&J(),function(){v.current.timer&&clearTimeout(v.current.timer)}}),[y,T,o.ready]);var U=(0,s.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v.current.timer&&clearTimeout(v.current.timer),v.current.timer=null,b((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:v.current.resetAnimation.translateX(e?0:v.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){b((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:v.current.animation.translateX(-v.current.contentWidth).step().export()})}))}))}),10),v.current.timer=setTimeout((function(){U()}),v.current.duration)}),[]),J=(0,s.useCallback)((function(){(0,u.requestAnimationFrame)((function(){Promise.all([(0,u.getRect)(null,".van-notice-bar__content_".concat(o.unitag)),(0,u.getRect)(null,".van-notice-bar__wrap_".concat(o.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==E&&(0,i.nextTick)((function(){(E||n.width<=t.width)&&(v.current.wrapWidth=n.width,v.current.contentWidth=t.width,v.current.duration=(n.width+t.width)/T*1e3,v.current.animation=(0,i.createAnimation)({duration:v.current.duration,timingFunction:"linear",delay:P}),U(!0))}))}))}))}),[o.unitag,E,T,P,U]),Q=(0,s.useCallback)((function(e){"closeable"===_&&(v.current.timer&&clearTimeout(v.current.timer),v.current.timer=null,b((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==X||X(e))}),[_,X]);return o.show&&(0,f.jsxs)(c.View,_objectSpread(_objectSpread({className:l.bem("notice-bar",{withicon:_,wrapable:K})+" ".concat(Y||""),style:l.style([m.rootStyle({color:V,backgroundColor:M,background:z}),W])},G),{},{onClick:R,children:[A?(0,f.jsx)(d.default,{name:A,className:"van-notice-bar__left-icon"}):L,(0,f.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,f.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==E||K?"":"van-ellipsis"),animation:o.animationData,children:[y,!y&&H]})}),"closeable"===_?(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:Q}):"link"===_?(0,f.jsx)(c.Navigator,{url:O,openType:C,children:(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):q]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,o.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/search/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/field/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),d=["value","defaultValue","label","focus","error","disabled","readonly","inputAlign","showAction","leftIcon","rightIcon","placeholder","placeholderStyle","actionText","background","maxlength","shape","clearable","clearTrigger","clearIcon","renderLabel","renderLeftIcon","renderRightIcon","renderAction","onFocus","onBlur","onChange","onClear","onClickInput","onSearch","onCancel","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function Search(e){var t=e.value,n=e.defaultValue,o=void 0===n?"":n,m=e.label,f=e.focus,p=e.error,j=e.disabled,b=e.readonly,h=e.inputAlign,v=e.showAction,g=e.leftIcon,y=void 0===g?"search":g,w=e.rightIcon,_=e.placeholder,x=e.placeholderStyle,O=e.actionText,S=void 0===O?"取消":O,C=e.background,k=void 0===C?"#ffffff":C,P=e.maxlength,N=void 0===P?-1:P,T=e.shape,D=void 0===T?"square":T,E=e.clearable,I=void 0===E||E,A=e.clearTrigger,F=void 0===A?"focus":A,V=e.clearIcon,B=void 0===V?"clear":V,M=e.renderLabel,z=e.renderLeftIcon,K=e.renderRightIcon,L=e.renderAction,q=e.onFocus,R=e.onBlur,X=e.onChange,W=e.onClear,Y=e.onClickInput,H=e.onSearch,G=e.onCancel,U=e.style,J=e.className,Q=(0,a.default)(e,d),$=(0,i.useMemo)((function(){return void 0===t}),[t]),Z=(0,i.useState)($?o:t),ee=(0,r.default)(Z,2),te=ee[0],ne=ee[1];(0,i.useEffect)((function(){$||ne(t)}),[$,t]);var oe=$?te:t;return(0,u.jsxs)(s.View,_objectSpread(_objectSpread({className:"".concat(c.bem("search",{withaction:v||!!L})," ").concat(J),style:c.style([{background:k},U])},Q),{},{children:[(0,u.jsxs)(s.View,{className:c.bem("search__content",[D]),children:[m?(0,u.jsx)(s.View,{className:"van-search__label",children:m}):M,(0,u.jsx)(l.Field,{type:"text",leftIcon:z?"":y,rightIcon:K?"":w,focus:f,error:p,border:!1,confirmType:"search",className:"van-search__field field-class",value:oe,disabled:j,readonly:b,clearable:I,clearTrigger:F,clearIcon:B,maxlength:N,inputAlign:h,placeholder:_,"placeholder-style":x,renderLeftIcon:z,renderRightIcon:K,style:"padding: 5px 10px 5px 0; background-color: transparent;",onBlur:R,onFocus:q,onChange:function _change(e){$&&ne(e.detail),null==X||X(e)},onConfirm:H,onClear:W,onClickInput:Y})]}),(v||L)&&(0,u.jsx)(s.View,{className:"van-search__action",hoverClass:"van-search__action--hover",hoverStayTime:70,children:L||(0,u.jsx)(s.View,{onClick:function _cancel(e){setTimeout((function(){ne(""),null==G||G(),Object.defineProperty(e,"detail",{value:""}),null==X||X(e)}),200)},className:"cancel-class",children:S})})]}))}},"./node_modules/@antmjs/vantui/es/swiper-item/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("webpack/container/remote/react"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("./node_modules/@antmjs/vantui/es/swiper/context.js"),s=n("webpack/container/remote/react/jsx-runtime");function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={direction:"horizontal",className:""};t.default=function SwiperItem(e){var t=_objectSpread(_objectSpread({},c),e),n=t.children,o=t.direction,l=t.size,u=t.className,d=(0,r.useContext)(i.DataContext);return(0,s.jsx)(a.View,{className:"van-swiper-item ".concat(u),style:function style(){var style={},e=(null==d?void 0:d.propSwiper.direction)||o,t=(null==d?void 0:d.size)||l;return t&&(style["horizontal"===e?"width":"height"]="".concat(t,"px")),style}(),children:n})}},"./node_modules/@antmjs/vantui/es/swiper/context.js":function(e,t,n){"use strict";n.d(t,{DataContext:function(){return r}});var o=n("webpack/container/remote/react"),r=(0,o.createContext)({})},"./node_modules/@antmjs/vantui/es/swiper/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@antmjs/vantui/es/swiper/swiper.js");t.default=o.default},"./node_modules/@antmjs/vantui/es/swiper/swiper.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),c=n("./node_modules/@babel/runtime/regenerator/index.js"),l=n.n(c),u=n("webpack/container/remote/react"),d=n("./node_modules/classnames/index.js"),m=n.n(d),f=n("webpack/container/remote/@tarojs/taro"),p=n.n(f),j=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),b=n("./node_modules/@antmjs/vantui/es/swiper/context.js"),h=n("webpack/container/remote/react/jsx-runtime"),v=n("webpack/container/remote/@tarojs/runtime").window,g=["children","direction","className","pageContent","onChange","initPage","paginationColor","paginationVisible","touchable","isPreventDefault","isStopPropagation","autoPlay","isCenter","style"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y={width:"object"===(void 0===v?"undefined":(0,s.default)(v))?v.innerWidth:375,height:0,duration:500,initPage:0,autoPlay:0,direction:"horizontal",paginationColor:"#fff",paginationVisible:!1,loop:!0,touchable:!0,isPreventDefault:!0,isStopPropagation:!0,isCenter:!1,className:""},w=function Swiper(e,t){var n,s,c=_objectSpread(_objectSpread({},y),e),d=c.children,w=c.direction,_=c.className,x=c.pageContent,O=(c.onChange,c.initPage,c.paginationColor,c.paginationVisible,c.touchable,c.isPreventDefault,c.isStopPropagation,c.autoPlay,c.isCenter),S=c.style,C=(0,a.default)(c,g),k=(0,u.useRef)(null),P=(0,u.useRef)(null),N=(0,u.useRef)({moving:!1,autoplayTimer:null,width:0,height:0,offset:0,size:0}),T=(0,u.useState)(Math.random().toString(36).slice(-8)),D=(0,r.default)(T,1)[0],E="vertical"===w,I=(0,u.useState)(null),A=(0,r.default)(I,2),F=A[0],V=A[1],B=(0,u.useState)(0),M=(0,r.default)(B,2),z=M[0],K=M[1],L=(0,u.useState)(0),q=(0,r.default)(L,2),R=q[0],X=q[1],W=(0,u.useState)(0),Y=(0,r.default)(W,2),H=Y[0],G=Y[1],U=(0,u.useState)(0),J=(0,r.default)(U,2),Q=J[0],$=J[1],Z=(0,u.useState)([]),ee=(0,r.default)(Z,2),te=ee[0],ne=ee[1],oe=(0,u.useState)(!1),re=(0,r.default)(oe,2),ae=re[0],ie=re[1],se=E?H:R,ce=(0,u.useState)({startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,stateDirection:"",delta:0,touchTime:0}),le=(0,r.default)(ce,1)[0],ue=(0,u.useMemo)((function(){var e=0;return{childs:u.Children.map(c.children,(function(t){return(0,u.isValidElement)(t)?(e++,t):null})),childCount:e}}),[c.children]),de=ue.childs,me=ue.childCount,fe=me*Number(se),pe={propSwiper:c,size:se},je=F?(E?null==F?void 0:F.height:null==F?void 0:F.width)-Number(se)*me:0,be=function stopAutoPlay(){clearTimeout(N.current.autoplayTimer),N.current.autoplayTimer=null},he=function autoplay(){c.autoPlay<=0||me<=1||(be(),N.current.autoplayTimer=setTimeout((function(){ye(),autoplay()}),Number(c.autoPlay)))},ve=function resettPosition(){N.current.moving=!0,z<=-1&&_e({pace:me}),z>=me&&_e({pace:-me})},ge=function prev(){ve(),ke(),Se((function(){Se((function(){N.current.moving=!1,_e({pace:-1,isEmit:!0})}))}))},ye=function next(){ve(),ke(),Se((function(){Se((function(){N.current.moving=!1,_e({pace:1,isEmit:!0})}))}))},we=function to(e){ve(),ke(),Se((function(){Se((function(){var t;N.current.moving=!1,t=c.loop&&me===e?0===z?0:e:e%me,_e({pace:t-z,isEmit:!0})}))}))},_e=function move(e){var t=e.pace,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o,a=e.isEmit,i=void 0!==a&&a;if(!(me<=1)){var s=xe(n),l=Oe(s,r);if(c.loop){if(Array.isArray(d)&&d[0]&&l!==je){var u=l<je;te[0]=u?fe:0}if(Array.isArray(d)&&d[me-1]&&0!==l){var m=l>0;te[me-1]=m?-fe:0}ne(te)}i&&z!==s&&c.onChange&&c.onChange((s+me)%me),z=s,K(s),$(l),Ne(l)}},xe=function getActive(e){if(e){var t=z+e;return c.loop?Ce(t,-1,me):Ce(t,0,me-1)}return z},Oe=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(se);c.loop||(n=Math.min(n,-je));var o=t-n;return c.loop||(o=Ce(o,je,0)),o},Se=function requestFrame(e){v.requestAnimationFrame.call(v,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},ke=function touchReset(){le.startX=0,le.startY=0,le.deltaX=0,le.deltaY=0,le.offsetX=0,le.offsetY=0,le.delta=0,le.stateDirection="",le.touchTime=0},Pe=m()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",E),n)),Ne=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=P.current,n=0;if(O){var o=E?H:R,r=E?(null==F?void 0:F.height)-o:(null==F?void 0:F.width)-o;n=e+(z!==me-1||c.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(N.current.moving?0:c.duration,"ms"),t.style[E?"height":"width"]="".concat(Number(se)*me,"px"),t.style[E?"width":"height"]="".concat(E?R:H,"px"),t.style.transform="translate3D".concat(E?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){N.current.activePagination=(z+me)%me}),[z]);var Te=function queryRect(e){return new Promise((function(t){var n=(0,f.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},De=function(){var e=(0,o.default)(l().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return l().wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+c.initPage,s.next=3,Te(k.current);case 3:t=s.sent,n=Math.max(Math.min(me-1,e),0),o=c.width?+c.width:null==t?void 0:t.width,r=c.height?+c.height:null==t?void 0:t.height,se=E?r:o,fe=me*Number(se),a=Oe(n),N.current.moving=!0,ae&&(N.current.moving=!1),V(t),K(n),X(o),G(r),$(a),ie(!0);case 18:case"end":return s.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){ae&&Ne()}),[E,R,H,Q,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){be(),he()}),[d]),(0,u.useEffect)((function(){De()}),[c.initPage]),(0,u.useEffect)((function(){return function(){be()}}),[]),(0,f.useReady)((function(){De(),p().nextTick((function(){setTimeout((function(){be(),he()}),16)}))}));var Ee=function itemStyle(e){var t={},n=c.direction||w,o=se;o&&(t["horizontal"===n?"width":"height"]="".concat(o,"px"));var r=te[e];return r&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(r,"px,0,0)"):"(0,".concat(r,"px,0)"))),t};return(0,u.useImperativeHandle)(t,(function(){return{to:we,next:ye,prev:ge}})),(0,h.jsx)(b.DataContext.Provider,{value:pe,children:(0,h.jsxs)(j.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(_),ref:k},C),{},{id:"container-"+D,onTouchStart:function onTouchStart(e){c.isPreventDefault&&e.preventDefault(),c.isStopPropagation&&e.stopPropagation(),c.touchable&&(!function touchStart(e){var t,n;ke(),le.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,le.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),le.touchTime=Date.now(),be(),ve())},onTouchMove:function onTouchMove(e){c.touchable&&N.current.moving&&(!function touchMove(e){var t,n;le.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-le.startX,le.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-le.startY,le.offsetX=Math.abs(le.deltaX),le.offsetY=Math.abs(le.deltaY),le.delta=E?le.deltaY:le.deltaX,le.stateDirection||(le.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(le.offsetX,le.offsetY))}(e),le.stateDirection===c.direction&&_e({offset:le.delta}))},onTouchEnd:function onTouchEnd(){if(c.touchable&&N.current.moving){var e=le.delta/(Date.now()-le.touchTime),t=Math.abs(e)>.3||Math.abs(le.delta)>+(se/2).toFixed(2),n=0;if(N.current.moving=!1,t&&le.stateDirection===c.direction){var o=E?le.offsetY:le.offsetX;n=c.loop?o>0?le.delta>0?-1:1:0:-Math[le.delta>0?"ceil":"floor"](le.delta/se),_e({pace:n,isEmit:!0})}else le.delta?_e({pace:0}):Ne();he()}},catchMove:E,style:_objectSpread(_objectSpread({},S),{},{height:H}),children:[(0,h.jsxs)(j.View,{className:Pe,ref:P,children:[u.Children.map(de,(function(e,t){return(0,h.jsx)(j.View,{className:"van-swiper-item-wrapper",style:Ee(t),children:e},t)})),(0,h.jsx)(j.View,{className:"van-swiper-item-wrapper",style:Ee(0),children:de&&de.length?de[0]:""})]}),c.paginationVisible&&!("pageContent"in c)?(0,h.jsx)(j.View,{className:m()((s={},(0,i.default)(s,"van-swiper__pagination",!0),(0,i.default)(s,"van-swiper__pagination-vertical",E),s)),children:u.Children.map(de,(function(e,t){var n;return(0,h.jsx)(j.Text,{style:(z+me)%me===t?{backgroundColor:c.paginationColor}:void 0,className:m()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(z+me)%me===t),n))},t)}))}):(0,h.jsx)(j.View,{children:x})]}))})},_=(0,u.forwardRef)(w);t.default=_},"./node_modules/@antmjs/vantui/es/utils/index.js":function(e,t,n){"use strict";n.d(t,{resizeTextarea:function(){return resizeTextarea}});n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n("webpack/container/remote/react"),n("webpack/container/remote/@tarojs/taro");var o=n("./node_modules/@antmjs/vantui/es/utils/type.js"),r=n("webpack/container/remote/@tarojs/runtime").window,a=n("webpack/container/remote/@tarojs/runtime").document;function setScrollTop(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function resizeTextarea(e,t){var n=function getRootScrollTop(){return r.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop||0}();e.style.height="auto",e.style.lineHeight="inherit",e.rows=1;var i=e.scrollHeight;if(console.info(i),(0,o.isObject)(t)){var s=t.maxHeight,c=t.minHeight;void 0!==s&&(i=Math.min(i,"number"==typeof s?s:Number(s.replace("px","")))),void 0!==c&&(i=Math.max(i,"number"==typeof c?c:Number(c.replace("px",""))))}i&&(e.style.height="".concat(i,"px"),function setRootScrollTop(e){setScrollTop(r,e),setScrollTop(a.body,e)}(n))}},"./node_modules/@antmjs/vantui/es/utils/type.js":function(e,t,n){"use strict";function isString(e){return"[object String]"===toString.call(e)}function isNumber(e){return"[object Number]"===toString.call(e)}function isObject(e){return"[object Object]"===toString.call(e)}n.d(t,{isString:function(){return isString},isNumber:function(){return isNumber},isObject:function(){return isObject}})},"./node_modules/classnames/index.js":function(e,t,n){var o,r=n("webpack/container/remote/@tarojs/runtime").window,a=n("./node_modules/@babel/runtime/helpers/typeof.js").default;!function(){"use strict";var i={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=a(n);if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var r=classNames.apply(null,n);r&&e.push(r)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)i.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(classNames.default=classNames,e.exports=classNames):"object"===a(n.amdO)&&n.amdO?void 0===(o=function(){return classNames}.apply(t,[]))||(e.exports=o):r.classNames=classNames}()},"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/home/index.tsx":function(e,t,n){"use strict";var o=n("./node_modules/@antmjs/vantui/es/grid/index.js"),r=n("./node_modules/@antmjs/vantui/es/grid-item/index.js"),a=n("./node_modules/@antmjs/vantui/es/toast/index.js"),i=n("./node_modules/@antmjs/vantui/es/swiper/index.js"),s=n("./node_modules/@antmjs/vantui/es/swiper-item/index.js"),c=n("./node_modules/@antmjs/vantui/es/image/index.js"),l=n("./node_modules/@antmjs/vantui/es/search/index.js"),u=n("./node_modules/@antmjs/vantui/es/notice-bar/index.js"),d=n("./node_modules/@antmjs/vantui/es/dialog/index.js"),m=n("./node_modules/@antmjs/vantui/es/tag/index.js"),f=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),p=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),j=n("webpack/container/remote/react"),b=n.n(j),h=n("webpack/container/remote/@tarojs/taro"),v=n.n(h),g=n("./src/pages/components/TabbarCom/index.tsx"),y=n("./src/pages/components/ActiveCard/index.tsx"),w=n("webpack/container/remote/react/jsx-runtime");t.default=function Home(){var e=b().useState(0),t=(0,f.default)(e,2),n=t[0],h=(t[1],b().useState(0)),_=(0,f.default)(h,2),x=(_[0],_[1],b().useState(!1)),O=(0,f.default)(x,2),S=O[0],C=O[1],k=b().useState(""),P=(0,f.default)(k,2);P[0],P[1];return(0,j.useEffect)((function(){v().showShareMenu({withShareTicket:!0}),v().updateShareMenu({withShareTicket:!0,success:function success(){}})}),[]),(0,w.jsxs)(p.View,{className:"homeContent",children:[(0,w.jsx)(p.View,{children:(0,w.jsx)(d.default,{id:"vanDialog3",showConfirmButton:!1,showCancelButton:!1,show:S,onClose:function onClose(){return C(!1)},children:(0,w.jsx)(p.View,{className:"tagArr",children:[{city:"深圳",color:""},{city:"北京",color:"#8c8c8c"},{city:"上海",color:"#8c8c8c"},{city:"广州",color:"#8c8c8c"},{city:"武汉",color:"#8c8c8c"},{city:"杭州",color:"#8c8c8c"},{city:"成都",color:"#8c8c8c"}].map((function(e){return(0,w.jsx)(m.default,{plain:!0,type:"primary",color:null==e?void 0:e.color,size:"large",style:{marginRight:"30px",marginBottom:"10px"},children:null==e?void 0:e.city})}))})})}),(0,w.jsx)(u.default,{leftIcon:"volume-o",text:"疫情期间,请留意各个景区的开放时间"}),(0,w.jsxs)(p.View,{className:"topHome",children:[(0,w.jsx)(p.View,{onClick:function onClick(){return C(!0)},children:(0,w.jsx)(m.default,{plain:!0,type:"primary",size:"large",children:"深圳"})}),(0,w.jsx)(p.View,{children:(0,w.jsx)(l.default,{placeholder:"请输入搜索关键词",style:{width:"320px"}})})]}),(0,w.jsx)(p.View,{className:"demo-box",children:(0,w.jsx)(i.default,{height:180,paginationColor:"#426543",autoPlay:"3000",initPage:n,paginationVisible:!0,onChange:function onChange(e){},children:["cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg","cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"].map((function(e,t){return(0,w.jsx)(s.default,{children:(0,w.jsx)(c.default,{src:e,fit:"cover",width:"100%",height:"200px"})},"swiper#demo1".concat(t))}))})}),(0,w.jsxs)(o.default,{children:[(0,w.jsx)(r.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:function onClick(){a.default.success({message:"打卡成功",selector:"#vanToast-demo2"})}}),(0,w.jsx)(r.default,{icon:"like",className:"iconStyle",text:"十峰",onClick:function onClick(){v().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,w.jsx)(r.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){v().navigateTo({url:"/pages/activityList/index"})}}),(0,w.jsx)(r.default,{icon:"manager",className:"iconStyle",text:"招募",onClick:function onClick(){v().navigateTo({url:"/pages/formSubmit/index"})}})]}),[1,2,3,4].splice(0,2).map((function(e){return(0,w.jsx)(p.View,{onClick:function onClick(){console.log("Card"),v().navigateTo({url:"/pages/activityList/components/details/index"})},children:(0,w.jsx)(y.default,{})})})),(0,w.jsx)(a.default,{id:"vanToast-demo2"}),(0,w.jsx)(g.default,{active:0})]})}},"./src/pages/home/index.tsx":function(e,t,n){"use strict";var o=n("webpack/container/remote/@tarojs/runtime"),r=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/home/index.tsx");Page((0,o.createPageConfig)(r.default,"pages/home/index",{root:{cn:[]}},{navigationBarTitleText:"首页"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]);