/*! For license information please see index.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/mountainPeak/index"],{"./node_modules/@antmjs/vantui/es/sidebar-item/index.js":function(e,s,n){var t=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@swc/helpers/esm/_object_spread.js"),o=n("./node_modules/@swc/helpers/esm/_object_spread_props.js"),i=n("./node_modules/@swc/helpers/esm/_object_without_properties.js"),l=n("webpack/container/remote/react/jsx-runtime"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),d=n("webpack/container/remote/react"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/info/index.js");s.default=function SidebarItem(e){var s=e.dot,n=e.badge,m=e.index,p=e.renderTitle,j=e.setChildren,f=e.setAction,b=e.onClick,_=e.onChange,v=e.info,h=e.title,x=e.disabled,k=e.className,w=e.style,g=(0,i._)(e,["dot","badge","index","renderTitle","setChildren","setAction","onClick","onChange","info","title","disabled","className","style"]),C=(0,d.useState)(),y=(0,t.default)(C,2),N=y[0],P=y[1],T=(0,d.useCallback)((function(e){return P(e)}),[]);(0,d.useEffect)((function(){null==j||j(m,{setActive:T,selected:N})}),[T,m,j,N]);var A=(0,d.useCallback)((function(){x||f(m).then((function(){null==_||_({detail:m}),null==b||b(m)}))}),[x,m,_,b,f]);return(0,l.jsx)(r.View,(0,o._)((0,a._)({className:c.bem("sidebar-item",{selected:N,disabled:x})+" "+(N?"active-class":"")+" "+(x?"disabled-class":"")+" custom-class "+k,hoverClass:"van-sidebar-item--hover",hoverStayTime:70,onClick:A,style:c.style([w])},g),{children:(0,l.jsx)(r.View,{className:"van-sidebar-item__text",children:(0,l.jsxs)(l.Fragment,{children:[(null!=n||null!==v||s)&&(0,l.jsx)(u.default,{dot:s,info:null!=n?n:v}),h?(0,l.jsx)(r.View,{children:h}):p]})})}))}},"./node_modules/@antmjs/vantui/es/sidebar/index.js":function(e,s,n){var t=n("./node_modules/@swc/helpers/esm/_object_spread.js"),a=n("./node_modules/@swc/helpers/esm/_object_spread_props.js"),o=n("./node_modules/@swc/helpers/esm/_object_without_properties.js"),i=n("webpack/container/remote/react/jsx-runtime"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),r=n("webpack/container/remote/react"),d=n("./node_modules/@antmjs/vantui/es/wxs/utils.js");s.default=function Sidebar(e){var s=e.activeKey,n=e.onChange,c=e.className,u=e.children,m=e.style,p=(0,o._)(e,["activeKey","onChange","className","children","style"]),j=(0,r.useRef)([]),f=(0,r.useCallback)((function(e){var s=j.current;return s&&s.length?(s.forEach((function(e){e.setActive(!1)})),s[e]&&s[e].setActive(!0),Promise.resolve()):Promise.resolve()}),[]);(0,r.useEffect)((function(){f(s)}),[f,s]);var b=(0,r.useCallback)((function(e,s){j.current[e]=s}),[]),_=(0,r.useMemo)((function(){var e=[];return u&&Array.isArray(u)&&u.forEach((function(s,t){e.push((0,r.cloneElement)(s,{key:t,setChildren:b,index:t,setAction:f,onChange:n}))})),e}),[u,n,f,b]);return(0,i.jsx)(l.View,(0,a._)((0,t._)({style:d.style([m]),className:"van-sidebar  ".concat(c)},p),{children:_}))}},"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/mountainPeak/index.tsx":function(e,s,n){var t=n("./node_modules/@antmjs/vantui/es/sidebar/index.js"),a=n("./node_modules/@antmjs/vantui/es/sidebar-item/index.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("webpack/container/remote/react"),r=n("./src/utils/index.ts"),d=n("webpack/container/remote/react/jsx-runtime");s.default=function mountainPeak(){var e,s=(0,l.useState)([]),n=(0,o.default)(s,2),c=n[0],u=n[1],m=(0,l.useState)(0),p=(0,o.default)(m,2),j=p[0],f=p[1];(0,l.useEffect)((function(){}),[]);return(0,l.useEffect)((function(){var e={tableName:"mountains",okFun:function okFun(e){var s;console.log("res--",e),u(null!==(s=null==e?void 0:e.data)&&void 0!==s?s:[])}};(0,r.getTable)(e)}),[]),(0,d.jsxs)(i.View,{className:"peakContent",children:[(0,d.jsx)(t.default,{activeKey:0,className:"peak_Sidebar",onChange:function onChange(e){console.log("e",e),f(null==e?void 0:e.detail)},children:(null!=c?c:[]).map((function(e){return(0,d.jsx)(a.default,{title:null==e?void 0:e.sideTitle,className:"peak_Sidebar"})}))}),(0,d.jsx)(i.View,{onClick:function onClick(){},children:(0,d.jsx)(i.RichText,{nodes:null==c||null===(e=c[j])||void 0===e?void 0:e.richText})})]})}},"./src/pages/mountainPeak/index.tsx":function(e,s,n){var t=n("webpack/container/remote/@tarojs/runtime"),a=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/mountainPeak/index.tsx");Page((0,t.createPageConfig)(a.default,"pages/mountainPeak/index",{root:{cn:[]}},{navigationBarTitleText:"山峰介绍"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return s="./src/pages/mountainPeak/index.tsx",e(e.s=s);var s}));e.O()}]);