diff --git a/_expo/static/js/web/AppEntry-db8c51d4b8448d70d653acf9a3601a29.js b/_expo/static/js/web/AppEntry-4c0794ab6a9b987d0335199eb02646b7.js similarity index 99% rename from _expo/static/js/web/AppEntry-db8c51d4b8448d70d653acf9a3601a29.js rename to _expo/static/js/web/AppEntry-4c0794ab6a9b987d0335199eb02646b7.js index 1904acb..32549a8 100644 --- a/_expo/static/js/web/AppEntry-db8c51d4b8448d70d653acf9a3601a29.js +++ b/_expo/static/js/web/AppEntry-4c0794ab6a9b987d0335199eb02646b7.js @@ -840,9 +840,9 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule", __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[1]),u=n(r(d[2])),o=r(d[3]),l=r(d[4]);const c={code:"function SinglePageTsx1(){const{currentIndex}=this.__closure;return currentIndex.value;}"},s={code:"function SinglePageTsx2(value){const{lazy,load,index,lazyPreloadNumber,runOnJS,setLoad}=this.__closure;if(!lazy)return;if(!!load)return;const canLoad=index>=value-lazyPreloadNumber&&index<=value+lazyPreloadNumber;if(!canLoad)return;runOnJS(setLoad)(canLoad);}"};e.default=n=>{const{children:_,contentSize:f,currentIndex:x,index:y,lazy:v,lazyPreloadNumber:z,pageMargin:h,isHorizontal:S}=n,[P,b]=(0,t.useState)((()=>!v||y>=x.value-z&&y<=x.value+z));(0,o.useAnimatedReaction)((function(){const n=()=>x.value;return n.__closure={currentIndex:x},n.__workletHash=7278216050509,n.__initData=c,n})(),(function(){const n=function(n){if(!v)return;if(P)return;const t=y>=n-z&&y<=n+z;t&&(0,o.runOnJS)(b)(t)};return n.__closure={lazy:v,load:P,index:y,lazyPreloadNumber:z,runOnJS:o.runOnJS,setLoad:b},n.__workletHash=0xb618e7f2246,n.__initData=s,n})());const L=0===y?0:h,O=(0,t.useMemo)((()=>S?{width:f,marginLeft:L}:{height:f,marginTop:L}),[S]);return _?(0,l.jsx)(u.default,{style:O,children:P?_:null}):(0,l.jsx)(u.default,{style:O})}}),763,[1,14,282,304,392]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useVerifyProps=void 0;var l=t(r(d[1])),o=t(r(d[2]));const{width:n}=o.default.get('window');e.useVerifyProps=t=>{const{tabs:o,tabBarflex:s,tabScrollEnabled:b,spacing:c,showSeparator:h,separatorComponent:w,hideSlider:S,sliderComponent:u,defaultSliderStyle:p,tabBarItemStyle:y,tabBarItemTitleStyle:f,activeTextColor:P,inactiveTextColor:T,children:C,scrollEnabled:B,bounces:E,gestureBack:v,onTabPress:x,onPageScroll:I,onPageScrollStateChanged:V,onPageSelected:_,initialIndex:j,style:O,tabStyle:k,pageStyle:A}=t;if(!Array.isArray(o))throw new Error('TabBar tabs must be array');if(o.length<=0)throw new Error("TabBar tabs can't be empty");const q=l.default.Children.count(C);if(0===q)throw new Error('PageView must be contains at least one chid');if(q!==o.length)throw new Error('TabView tabs length must be equal children');let M=n;if(O&&O.width){if('number'!=typeof O.width)throw new Error('TabView width only support number');M=O.width}const z={tabs:o,tabBarflex:s,tabScrollEnabled:b,spacing:c,showSeparator:h,separatorComponent:w,hideSlider:S,sliderComponent:u,defaultSliderStyle:p,tabBarItemStyle:y,tabBarItemTitleStyle:f,activeTextColor:P,inactiveTextColor:T,style:Object.assign({width:M},k),initialTab:j};return{pageProps:{scrollEnabled:B,bounces:E,gestureBack:v,style:Object.assign({flex:1,width:M},A),initialPage:j},tabProps:z,style:O,children:C,onTabPress:x,onPageScroll:I,onPageScrollStateChanged:V,onPageSelected:_}}}),764,[1,14,267]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Nested=void 0,Object.defineProperty(e,"NestedRefresh",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"NestedTabView",{enumerable:!0,get:function(){return l.default}});var n=t(r(d[1])),l=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),s=r(d[5]);e.Nested={ScrollView:t=>{const l=n.default.ScrollView;return(0,s.jsx)(o.default,Object.assign({ScrollableComponent:l},t))},FlatList:t=>{const l=n.default.FlatList;return(0,s.jsx)(o.default,Object.assign({ScrollableComponent:l},t))}}}),765,[1,304,766,772,773,392]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=S(_r(d[1])),r=e(_r(d[2])),a=e(_r(d[3])),n=S(_r(d[4])),s=_r(d[5]),i=_r(d[6]),l=_r(d[7]),u=_r(d[8]),o=_r(d[9]),c=_r(d[10]),f=_r(d[11]),h=e(_r(d[12])),_=_r(d[13]);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,r&&r.set(e,a),a}const T={code:"function NestedTabViewTsx1(){const{integralY,refreshStatus,RefreshStatus}=this.__closure;return!(integralY.value===0&&refreshStatus.value===RefreshStatus.Idle);}"},I={code:"function NestedTabViewTsx2(){const{isRefreshing}=this.__closure;return isRefreshing.value;}"},R={code:"function NestedTabViewTsx3(isRefreshing){const{pageRef}=this.__closure;var _pageRef;(_pageRef=pageRef)===null||_pageRef===void 0||(_pageRef=_pageRef.current)===null||_pageRef===void 0||_pageRef.setScrollEnabled(!isRefreshing);}"},x={code:"function NestedTabViewTsx4(){const{sharedTranslate}=this.__closure;return sharedTranslate.value;}"},w={code:"function NestedTabViewTsx5(value){const{onNestedScroll,runOnJS}=this.__closure;onNestedScroll&&runOnJS(onNestedScroll)(value);}"},Y={code:"function NestedTabViewTsx6(){const{refreshStatus,RefreshStatus}=this.__closure;refreshStatus.value=RefreshStatus.Idle;}"},H={code:"function NestedTabViewTsx7(){const{cancelAnimation,headerY,sharedTranslate}=this.__closure;cancelAnimation(headerY);cancelAnimation(sharedTranslate);}"},b={code:"function NestedTabViewTsx8(_,stateManager){const{stopAnimation,sharedTranslate,integralY}=this.__closure;stopAnimation();if(sharedTranslate.value>0){console.log('\u624b\u52bf\u89e6\u53d1\u5931\u8d25',{sharedTranslate:sharedTranslate.value,integralY:integralY.value});stateManager.fail();}}"},p={code:"function NestedTabViewTsx9(){const{integralYOffset,integralY}=this.__closure;integralYOffset.value=integralY.value;}"},y={code:"function NestedTabViewTsx10({translationY:translationY}){const{needRefresh,integralYOffset,sharedTranslate,integralY,refreshing,triggerHeight,refreshStatus,RefreshStatus}=this.__closure;if(!needRefresh)return;const temp=translationY+integralYOffset.value;if(temp>0){if(sharedTranslate.value>0){sharedTranslate.value=0;}integralY.value=temp;if(!refreshing){if(Math.abs(integralY.value)>=triggerHeight){refreshStatus.value=RefreshStatus.Reached;}else{refreshStatus.value=RefreshStatus.Pulling;}}}else{}}"},N={code:"function NestedTabViewTsx11(){const{needRefresh,integralY,refreshing,triggerHeight,withTiming,RESET_TIMING_EASING,refreshStatus,RefreshStatus,runOnJS,handleRefresh}=this.__closure;if(!needRefresh)return;if(integralY.value<0)return;if(refreshing){if(integralY.value>=triggerHeight){integralY.value=withTiming(triggerHeight,{easing:RESET_TIMING_EASING});}else{const dest=integralY.value<=triggerHeight/2?0:triggerHeight;integralY.value=withTiming(dest,{easing:RESET_TIMING_EASING},function(){if(dest===0){refreshStatus.value=RefreshStatus.Idle;}});}}else{if(integralY.value>=triggerHeight){runOnJS(handleRefresh)();}else{integralY.value=withTiming(0,{easing:RESET_TIMING_EASING},function(){refreshStatus.value=RefreshStatus.Idle;});}}}"},E={code:"function NestedTabViewTsx12(){const{dest,refreshStatus,RefreshStatus}=this.__closure;if(dest===0){refreshStatus.value=RefreshStatus.Idle;}}"},D={code:"function NestedTabViewTsx13(){const{refreshStatus,RefreshStatus}=this.__closure;refreshStatus.value=RefreshStatus.Idle;}"},V={code:"function NestedTabViewTsx14(){const{interpolate,sharedTranslate,headerHeight,stickyHeight,Extrapolation}=this.__closure;return interpolate(sharedTranslate.value,[0,headerHeight-stickyHeight],[0,-headerHeight+stickyHeight],Extrapolation.CLAMP);}"},O={code:"function NestedTabViewTsx15(){const{headerStyleInter}=this.__closure;return{transform:[{translateY:headerStyleInter.value},{scale:1}]};}"},k={code:"function NestedTabViewTsx16(){const{interpolate,integralY,HEIGHT}=this.__closure;return{transform:[{translateY:interpolate(integralY.value,[0,HEIGHT],[0,HEIGHT/2])}]};}"},G={code:"function NestedTabViewTsx17(){const{mscrollTo,childInfo,currentIdx}=this.__closure;var _childInfo$currentIdx,_childInfo$currentIdx2;mscrollTo((_childInfo$currentIdx=childInfo[currentIdx.value])===null||_childInfo$currentIdx===void 0?void 0:_childInfo$currentIdx.scrollRef,0,((_childInfo$currentIdx2=childInfo[currentIdx.value])===null||_childInfo$currentIdx2===void 0?void 0:_childInfo$currentIdx2.scrollValue.value)+0.1,false);}"},P={code:"function NestedTabViewTsx18(){const{headerY}=this.__closure;return headerY.value;}"},A={code:"function NestedTabViewTsx19(){const{isHeaderDecay,mscrollTo,childInfo,currentIdx,headerY}=this.__closure;if(isHeaderDecay.value){var _childInfo$currentIdx;mscrollTo((_childInfo$currentIdx=childInfo[currentIdx.value])===null||_childInfo$currentIdx===void 0?void 0:_childInfo$currentIdx.scrollRef,0,headerY.value,false);}}"},M={code:"function NestedTabViewTsx20(_,stateManager){const{stopScrolling,isRefreshing}=this.__closure;stopScrolling();if(isRefreshing){stateManager.fail();}}"},j={code:"function NestedTabViewTsx21(){const{headerYOffset}=this.__closure;headerYOffset.value=0;}"},C={code:"function NestedTabViewTsx22({translationY:translationY}){const{isHeaderDecay,headerYOffset,childInfo,currentIdx,headerY}=this.__closure;if(!isHeaderDecay.value){var _childInfo$currentIdx;headerYOffset.value=(_childInfo$currentIdx=childInfo[currentIdx.value])===null||_childInfo$currentIdx===void 0?void 0:_childInfo$currentIdx.scrollValue.value;isHeaderDecay.value=true;}headerY.value=-translationY+headerYOffset.value;}"},$={code:"function NestedTabViewTsx23({velocityY:velocityY}){const{headerYOffset,headerY,withDecay,isHeaderDecay}=this.__closure;headerYOffset.value=0;headerY.value=withDecay({velocity:-velocityY},function(){isHeaderDecay.value=false;});}"},J={code:"function NestedTabViewTsx24(){const{isHeaderDecay}=this.__closure;isHeaderDecay.value=false;}"},W=(0,t.forwardRef)(((e,r)=>{const{renderHeader:v,stickyHeight:S=0,children:W,initialIndex:L=0,style:z,tabProps:U,pageProps:X,triggerHeight:q=200,refreshing:F=!1,refreshControl:K,onRefresh:Q,onNestedScroll:Z,onTabPress:ee,onPageSelected:te,onPageScroll:re,onPageScrollStateChanged:ae}=(0,u.useVerifyProps)(e),{height:ne}=(0,a.default)(),se=(0,t.useRef)(null),ie=(0,t.useRef)(null),le=(0,n.useSharedValue)(0),ue=(0,n.useSharedValue)(0),oe=(0,t.useRef)(),ce=(0,n.useSharedValue)(!1),fe=(0,n.useSharedValue)(0),de=(0,n.useSharedValue)(0),he=(0,t.useRef)(),ge=(0,n.useSharedValue)(L),ve=(0,n.useSharedValue)(0),[Se,Te]=(0,t.useState)(0),Ie=(0,n.useSharedValue)(c.RefreshStatus.Idle),Re=(0,n.useDerivedValue)((function(){const e=function(){return!(0===fe.value&&Ie.value===c.RefreshStatus.Idle)};return e.__closure={integralY:fe,refreshStatus:Ie,RefreshStatus:c.RefreshStatus},e.__workletHash=0xb6cd6958c2c,e.__initData=T,e})(),[Ie,fe]),xe=(0,t.useMemo)((()=>!!K),[K]);(0,n.useAnimatedReaction)((function(){const e=()=>Re.value;return e.__closure={isRefreshing:Re},e.__workletHash=0xbec71244f30,e.__initData=I,e})(),(function(){const e=function(e){se?.current?.setScrollEnabled(!e)};return e.__closure={pageRef:se},e.__workletHash=0xa2da1adddfe,e.__initData=R,e})()),(0,n.useAnimatedReaction)((function(){const e=()=>ve.value;return e.__closure={sharedTranslate:ve},e.__workletHash=0x92864006e96,e.__initData=x,e})(),(function(){const e=function(e){Z&&(0,n.runOnJS)(Z)(e)};return e.__closure={onNestedScroll:Z,runOnJS:n.runOnJS},e.__workletHash=0xe5b8f2379d5,e.__initData=w,e})()),(0,t.useEffect)((()=>{xe&&(F?(Ie.value=c.RefreshStatus.Holding,fe.value=(0,n.withTiming)(q,{easing:c.RESET_TIMING_EASING})):Ie.value!==c.RefreshStatus.Idle&&(Ie.value=c.RefreshStatus.Done,fe.value=(0,n.withDelay)(500,(0,n.withTiming)(0,{easing:c.RESET_TIMING_EASING},(function(){const e=function(){Ie.value=c.RefreshStatus.Idle};return e.__closure={refreshStatus:Ie,RefreshStatus:c.RefreshStatus},e.__workletHash=5368070118213,e.__initData=Y,e})()))))}),[F,xe]);const we=()=>{Q&&Q()},{isReady:Ye,childInfo:He,childNativeRefs:be,registerNativeRef:pe,registerChildInfo:ye}=(0,u.useNestRegister)(se,ie),Ne=e=>{if(!(0,f.isInteger)(e))throw new Error('index type must be Integer');if(e<0||e>=U.tabs.length)throw new Error('setPage can only handle index [0, pageSize - 1]');se.current&&se.current?.setPage(e)},Ee=(0,t.useCallback)((()=>ge.value||0),[]),me=(0,t.useCallback)((e=>{(0,o.mscrollTo)(He[ge.value]?.scrollRef,0,e,!0)}),[He,ge]);console.log('\u662f\u5426\u51c6\u5907\u5b8c\u6bd5',{isReady:Ye});const De=(0,t.useCallback)((e=>{Se!==e.nativeEvent.layout.height&&Te(e.nativeEvent.layout.height)}),[Se]),Ve=(function(){const e=function(){(0,n.cancelAnimation)(le),(0,n.cancelAnimation)(ve)};return e.__closure={cancelAnimation:n.cancelAnimation,headerY:le,sharedTranslate:ve},e.__workletHash=5947454115729,e.__initData=H,e})(),Oe=s.Gesture.Pan().withRef(he).activeOffsetX([-500,500]).activeOffsetY([-10,10]).simultaneousWithExternalGesture(...be,oe).onTouchesDown((function(){const e=function(e,t){Ve(),ve.value>0&&(console.log('\u624b\u52bf\u89e6\u53d1\u5931\u8d25',{sharedTranslate:ve.value,integralY:fe.value}),t.fail())};return e.__closure={stopAnimation:Ve,sharedTranslate:ve,integralY:fe},e.__workletHash=0x99e0e6865b3,e.__initData=b,e})()).onBegin((function(){const e=function(){de.value=fe.value};return e.__closure={integralYOffset:de,integralY:fe},e.__workletHash=0xcb75e9096c5,e.__initData=p,e})()).onUpdate((function(){const e=function({translationY:e}){if(!xe)return;const t=e+de.value;t>0&&(ve.value>0&&(ve.value=0),fe.value=t,F||(Math.abs(fe.value)>=q?Ie.value=c.RefreshStatus.Reached:Ie.value=c.RefreshStatus.Pulling))};return e.__closure={needRefresh:xe,integralYOffset:de,sharedTranslate:ve,integralY:fe,refreshing:F,triggerHeight:q,refreshStatus:Ie,RefreshStatus:c.RefreshStatus},e.__workletHash=0xad3cf80ec56,e.__initData=y,e})()).onEnd((function(){const e=function(){if(xe&&!(fe.value<0))if(F)if(fe.value>=q)fe.value=(0,n.withTiming)(q,{easing:c.RESET_TIMING_EASING});else{const e=fe.value<=q/2?0:q;fe.value=(0,n.withTiming)(e,{easing:c.RESET_TIMING_EASING},(function(){const t=function(){0===e&&(Ie.value=c.RefreshStatus.Idle)};return t.__closure={dest:e,refreshStatus:Ie,RefreshStatus:c.RefreshStatus},t.__workletHash=3039733583897,t.__initData=E,t})())}else fe.value>=q?(0,n.runOnJS)(we)():fe.value=(0,n.withTiming)(0,{easing:c.RESET_TIMING_EASING},(function(){const e=function(){Ie.value=c.RefreshStatus.Idle};return e.__closure={refreshStatus:Ie,RefreshStatus:c.RefreshStatus},e.__workletHash=0xbf8cbf0ca71,e.__initData=D,e})())};return e.__closure={needRefresh:xe,integralY:fe,refreshing:F,triggerHeight:q,withTiming:n.withTiming,RESET_TIMING_EASING:c.RESET_TIMING_EASING,refreshStatus:Ie,RefreshStatus:c.RefreshStatus,runOnJS:n.runOnJS,handleRefresh:we},e.__workletHash=0xbde9fd42bc1,e.__initData=N,e})()),ke=(0,n.useDerivedValue)((function(){const e=function(){return(0,n.interpolate)(ve.value,[0,Se-S],[0,-Se+S],n.Extrapolation.CLAMP)};return e.__closure={interpolate:n.interpolate,sharedTranslate:ve,headerHeight:Se,stickyHeight:S,Extrapolation:n.Extrapolation},e.__workletHash=0xd1d2bce62bc,e.__initData=V,e})(),[fe,Se]),Ge=(0,n.useAnimatedStyle)((function(){const e=function(){return{transform:[{translateY:ke.value},{scale:1}]}};return e.__closure={headerStyleInter:ke},e.__workletHash=7105245885226,e.__initData=O,e})()),Pe=(0,n.useAnimatedStyle)((function(){const e=function(){return{transform:[{translateY:(0,n.interpolate)(fe.value,[0,ne],[0,ne/2])}]}};return e.__closure={interpolate:n.interpolate,integralY:fe,HEIGHT:ne},e.__workletHash=9713031734195,e.__initData=k,e})()),Ae=(function(){const e=function(){(0,o.mscrollTo)(He[ge.value]?.scrollRef,0,He[ge.value]?.scrollValue.value+.1,!1)};return e.__closure={mscrollTo:o.mscrollTo,childInfo:He,currentIdx:ge},e.__workletHash=0xe9a2449e61b,e.__initData=G,e})();(0,n.useAnimatedReaction)((function(){const e=()=>le.value;return e.__closure={headerY:le},e.__workletHash=5086981554603,e.__initData=P,e})(),(function(){const e=function(){ce.value&&(0,o.mscrollTo)(He[ge.value]?.scrollRef,0,le.value,!1)};return e.__closure={isHeaderDecay:ce,mscrollTo:o.mscrollTo,childInfo:He,currentIdx:ge,headerY:le},e.__workletHash=7241251876480,e.__initData=A,e})());const Me=s.Gesture.Pan().activeOffsetY([-10,10]).withRef(oe).simultaneousWithExternalGesture(he).onTouchesDown((function(){const e=function(e,t){Ae(),Re&&t.fail()};return e.__closure={stopScrolling:Ae,isRefreshing:Re},e.__workletHash=1403163941967,e.__initData=M,e})()).onBegin((function(){const e=function(){ue.value=0};return e.__closure={headerYOffset:ue},e.__workletHash=0xd8cfebb5bc6,e.__initData=j,e})()).onUpdate((function(){const e=function({translationY:e}){ce.value||(ue.value=He[ge.value]?.scrollValue.value,ce.value=!0),le.value=-e+ue.value};return e.__closure={isHeaderDecay:ce,headerYOffset:ue,childInfo:He,currentIdx:ge,headerY:le},e.__workletHash=0xe3721a8ada4,e.__initData=C,e})()).onEnd((function(){const e=function({velocityY:e}){ue.value=0,le.value=(0,n.withDecay)({velocity:-e},(function(){const e=function(){ce.value=!1};return e.__closure={isHeaderDecay:ce},e.__workletHash=0xd117f948bce,e.__initData=J,e})())};return e.__closure={headerYOffset:ue,headerY:le,withDecay:n.withDecay,isHeaderDecay:ce},e.__workletHash=4327066196713,e.__initData=$,e})());return(0,t.useImperativeHandle)(r,(()=>({getCurrentPage:Ee,setPage:Ne,scrollTo:me}))),(0,_.jsxs)(u.NestedContext.Provider,{value:{sharedTranslate:ve,currentIdx:ge,headerHeight:Se,stickyHeight:S,refreshStatus:Ie,integralY:fe},children:[(0,_.jsx)(s.GestureDetector,{gesture:Oe,children:(0,_.jsxs)(n.default.View,{style:[z,Pe],children:[(0,_.jsx)(l.PageView,Object.assign({},Object.assign({},X),{ref:se,orientation:'horizontal',onPageSelected:e=>{ie.current&&ie.current?.keepScrollViewMiddle(e),te&&te(e),ge.value=e},onPageScroll:e=>{ie.current&&ie.current?.syncCurrentIndex(e),re&&re(e)},onPageScrollStateChanged:e=>{ae&&ae(e)},children:t.default.Children.map(W,((e,r)=>{const a={registerNativeRef:pe,registerChildInfo:ye,nestedIndex:r};return t.default.cloneElement(e,a)}))})),(0,_.jsx)(s.GestureDetector,{gesture:Me,children:(0,_.jsxs)(n.default.View,{onLayout:De,style:[B.headerContainer,Ge],children:[v&&v(),(0,_.jsx)(i.TabBar,Object.assign({},Object.assign({},U),{ref:ie,onTabPress:e=>{se.current&&se.current?.setPage(e),ee&&ee(e)}}))]})})]})}),(0,_.jsx)(h.default,{scrollOffset:fe,refreshStatus:Ie,triggerHeight:q,children:K&&K()})]})}));W.displayName='NestedTabView';const B=r.default.create({headerContainer:{position:'absolute',left:0,right:0,width:'100%'}});_e.default=W}),766,[1,14,27,767,304,214,751,759,768,769,770,757,771,392]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=T(_r(d[1])),r=e(_r(d[2])),a=e(_r(d[3])),n=T(_r(d[4])),s=_r(d[5]),i=_r(d[6]),l=_r(d[7]),u=_r(d[8]),o=_r(d[9]),c=_r(d[10]),f=_r(d[11]),h=e(_r(d[12])),_=_r(d[13]);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function T(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,r&&r.set(e,a),a}const S={code:"function NestedTabViewTsx1(){const{integralY,refreshStatus,RefreshStatus}=this.__closure;return!(integralY.value===0&&refreshStatus.value===RefreshStatus.Idle);}"},I={code:"function NestedTabViewTsx2(){const{isRefreshing}=this.__closure;return isRefreshing.value;}"},R={code:"function NestedTabViewTsx3(isRefreshing){const{pageRef}=this.__closure;var _pageRef;(_pageRef=pageRef)===null||_pageRef===void 0||(_pageRef=_pageRef.current)===null||_pageRef===void 0||_pageRef.setScrollEnabled(!isRefreshing);}"},w={code:"function NestedTabViewTsx4(){const{sharedTranslate}=this.__closure;return sharedTranslate.value;}"},x={code:"function NestedTabViewTsx5(value){const{onNestedScroll,runOnJS}=this.__closure;onNestedScroll&&runOnJS(onNestedScroll)(value);}"},Y={code:"function NestedTabViewTsx6(){const{refreshStatus,RefreshStatus}=this.__closure;refreshStatus.value=RefreshStatus.Idle;}"},H={code:"function NestedTabViewTsx7(){const{cancelAnimation,headerY,sharedTranslate}=this.__closure;cancelAnimation(headerY);cancelAnimation(sharedTranslate);}"},p={code:"function NestedTabViewTsx8(_,stateManager){const{stopAnimation,sharedTranslate,integralY}=this.__closure;stopAnimation();if(sharedTranslate.value>0){console.log('\u624b\u52bf\u89e6\u53d1\u5931\u8d25',{sharedTranslate:sharedTranslate.value,integralY:integralY.value});stateManager.fail();}}"},b={code:"function NestedTabViewTsx9(){const{integralYOffset,integralY}=this.__closure;integralYOffset.value=integralY.value;}"},y={code:"function NestedTabViewTsx10({translationY:translationY}){const{needRefresh,integralYOffset,sharedTranslate,integralY,refreshing,triggerHeight,refreshStatus,RefreshStatus}=this.__closure;if(!needRefresh)return;const temp=translationY+integralYOffset.value;if(temp>0){if(sharedTranslate.value>0){sharedTranslate.value=0;}integralY.value=temp;if(!refreshing){if(Math.abs(integralY.value)>=triggerHeight){refreshStatus.value=RefreshStatus.Reached;}else{refreshStatus.value=RefreshStatus.Pulling;}}}else{}}"},N={code:"function NestedTabViewTsx11(){const{needRefresh,integralY,refreshing,waitForRefresh,withTiming,RESET_TIMING_EASING,triggerHeight,refreshStatus,RefreshStatus,runOnJS,handleRefresh}=this.__closure;if(!needRefresh)return;if(integralY.value<0)return;if(refreshing){if(!waitForRefresh){integralY.value=withTiming(0,{easing:RESET_TIMING_EASING});}else{if(integralY.value>=triggerHeight){integralY.value=withTiming(triggerHeight,{easing:RESET_TIMING_EASING});}else{const dest=integralY.value<=triggerHeight/2?0:triggerHeight;integralY.value=withTiming(dest,{easing:RESET_TIMING_EASING},function(){if(dest===0){refreshStatus.value=RefreshStatus.Idle;}});}}}else{if(integralY.value>=triggerHeight){runOnJS(handleRefresh)();}else{integralY.value=withTiming(0,{easing:RESET_TIMING_EASING},function(){refreshStatus.value=RefreshStatus.Idle;});}}}"},E={code:"function NestedTabViewTsx12(){const{dest,refreshStatus,RefreshStatus}=this.__closure;if(dest===0){refreshStatus.value=RefreshStatus.Idle;}}"},D={code:"function NestedTabViewTsx13(){const{refreshStatus,RefreshStatus}=this.__closure;refreshStatus.value=RefreshStatus.Idle;}"},V={code:"function NestedTabViewTsx14(){const{interpolate,sharedTranslate,headerHeight,stickyHeight,Extrapolation}=this.__closure;return interpolate(sharedTranslate.value,[0,headerHeight-stickyHeight],[0,-headerHeight+stickyHeight],Extrapolation.CLAMP);}"},O={code:"function NestedTabViewTsx15(){const{headerStyleInter}=this.__closure;return{transform:[{translateY:headerStyleInter.value}]};}"},k={code:"function NestedTabViewTsx16(){const{refreshAnimateType,interpolate,integralY,HEIGHT}=this.__closure;return{transform:[{translateY:refreshAnimateType==='pull'?interpolate(integralY.value,[0,HEIGHT],[0,HEIGHT/2]):0}]};}"},G={code:"function NestedTabViewTsx17(){const{mscrollTo,childInfo,currentIdx}=this.__closure;var _childInfo$currentIdx,_childInfo$currentIdx2;mscrollTo((_childInfo$currentIdx=childInfo[currentIdx.value])===null||_childInfo$currentIdx===void 0?void 0:_childInfo$currentIdx.scrollRef,0,((_childInfo$currentIdx2=childInfo[currentIdx.value])===null||_childInfo$currentIdx2===void 0?void 0:_childInfo$currentIdx2.scrollValue.value)+0.1,false);}"},A={code:"function NestedTabViewTsx18(){const{headerY}=this.__closure;return headerY.value;}"},P={code:"function NestedTabViewTsx19(){const{isHeaderDecay,mscrollTo,childInfo,currentIdx,headerY}=this.__closure;if(isHeaderDecay.value){var _childInfo$currentIdx;mscrollTo((_childInfo$currentIdx=childInfo[currentIdx.value])===null||_childInfo$currentIdx===void 0?void 0:_childInfo$currentIdx.scrollRef,0,headerY.value,false);}}"},M={code:"function NestedTabViewTsx20(_,stateManager){const{stopScrolling,isRefreshing}=this.__closure;stopScrolling();if(isRefreshing.value){stateManager.fail();}}"},j={code:"function NestedTabViewTsx21(){const{headerYOffset}=this.__closure;headerYOffset.value=0;}"},C={code:"function NestedTabViewTsx22({translationY:translationY}){const{isHeaderDecay,headerYOffset,childInfo,currentIdx,headerY}=this.__closure;if(!isHeaderDecay.value){var _childInfo$currentIdx;headerYOffset.value=(_childInfo$currentIdx=childInfo[currentIdx.value])===null||_childInfo$currentIdx===void 0?void 0:_childInfo$currentIdx.scrollValue.value;isHeaderDecay.value=true;}headerY.value=-translationY+headerYOffset.value;}"},$={code:"function NestedTabViewTsx23({velocityY:velocityY}){const{headerYOffset,headerY,withDecay,isHeaderDecay}=this.__closure;headerYOffset.value=0;headerY.value=withDecay({velocity:-velocityY},function(){isHeaderDecay.value=false;});}"},J={code:"function NestedTabViewTsx24(){const{isHeaderDecay}=this.__closure;isHeaderDecay.value=false;}"},W=(0,t.forwardRef)(((e,r)=>{const{renderHeader:v,stickyHeight:T=0,children:W,initialIndex:B=0,style:L,tabProps:z,pageProps:U,triggerHeight:X=200,refreshing:q=!1,refreshControl:K,refreshAnimateType:Q="pull",needRefresh:Z=!1,waitForRefresh:ee=!0,onRefresh:te,onNestedScroll:re,onTabPress:ae,onPageSelected:ne,onPageScroll:se,onPageScrollStateChanged:ie}=(0,u.useVerifyProps)(e),{height:le}=(0,a.default)(),ue=(0,t.useRef)(null),oe=(0,t.useRef)(null),ce=(0,n.useSharedValue)(0),fe=(0,n.useSharedValue)(0),he=(0,t.useRef)(),de=(0,n.useSharedValue)(!1),ge=(0,n.useSharedValue)(0),ve=(0,n.useSharedValue)(0),Te=(0,t.useRef)(),Se=(0,n.useSharedValue)(B),Ie=(0,n.useSharedValue)(0),[Re,we]=(0,t.useState)(0),xe=(0,n.useSharedValue)(c.RefreshStatus.Idle),Ye=(0,n.useDerivedValue)((function(){const e=function(){return!(0===ge.value&&xe.value===c.RefreshStatus.Idle)};return e.__closure={integralY:ge,refreshStatus:xe,RefreshStatus:c.RefreshStatus},e.__workletHash=0xb6cd6958c2c,e.__initData=S,e})(),[xe,ge]);(0,n.useAnimatedReaction)((function(){const e=()=>Ye.value;return e.__closure={isRefreshing:Ye},e.__workletHash=0xbec71244f30,e.__initData=I,e})(),(function(){const e=function(e){ue?.current?.setScrollEnabled(!e)};return e.__closure={pageRef:ue},e.__workletHash=0xa2da1adddfe,e.__initData=R,e})()),(0,n.useAnimatedReaction)((function(){const e=()=>Ie.value;return e.__closure={sharedTranslate:Ie},e.__workletHash=0x92864006e96,e.__initData=w,e})(),(function(){const e=function(e){re&&(0,n.runOnJS)(re)(e)};return e.__closure={onNestedScroll:re,runOnJS:n.runOnJS},e.__workletHash=0xe5b8f2379d5,e.__initData=x,e})()),(0,t.useEffect)((()=>{if(Z)if(q){xe.value=c.RefreshStatus.Holding;const e=ee?X:0;ge.value=(0,n.withTiming)(e,{easing:c.RESET_TIMING_EASING})}else xe.value!==c.RefreshStatus.Idle&&(xe.value=c.RefreshStatus.Done,ee?ge.value=(0,n.withDelay)(500,(0,n.withTiming)(0,{easing:c.RESET_TIMING_EASING},(function(){const e=function(){xe.value=c.RefreshStatus.Idle};return e.__closure={refreshStatus:xe,RefreshStatus:c.RefreshStatus},e.__workletHash=5368070118213,e.__initData=Y,e})())):xe.value=c.RefreshStatus.Idle)}),[q,Z,ee]);const He=()=>{te&&te()},{isReady:pe,childInfo:be,childNativeRefs:ye,registerNativeRef:Ne,registerChildInfo:Ee}=(0,u.useNestRegister)(ue,oe),me=e=>{if(!(0,f.isInteger)(e))throw new Error('index type must be Integer');if(e<0||e>=z.tabs.length)throw new Error('setPage can only handle index [0, pageSize - 1]');ue.current&&ue.current?.setPage(e)},De=(0,t.useCallback)((()=>Se.value||0),[]),Ve=(0,t.useCallback)((e=>{(0,o.mscrollTo)(be[Se.value]?.scrollRef,0,e,!0)}),[be,Se]);console.log('\u662f\u5426\u51c6\u5907\u5b8c\u6bd5',{isReady:pe});const Oe=(0,t.useCallback)((e=>{Re!==e.nativeEvent.layout.height&&we(e.nativeEvent.layout.height)}),[Re]),ke=(function(){const e=function(){(0,n.cancelAnimation)(ce),(0,n.cancelAnimation)(Ie)};return e.__closure={cancelAnimation:n.cancelAnimation,headerY:ce,sharedTranslate:Ie},e.__workletHash=5947454115729,e.__initData=H,e})(),Ge=s.Gesture.Pan().withRef(Te).activeOffsetX([-500,500]).activeOffsetY([-10,10]).simultaneousWithExternalGesture(...ye,he).onTouchesDown((function(){const e=function(e,t){ke(),Ie.value>0&&(console.log('\u624b\u52bf\u89e6\u53d1\u5931\u8d25',{sharedTranslate:Ie.value,integralY:ge.value}),t.fail())};return e.__closure={stopAnimation:ke,sharedTranslate:Ie,integralY:ge},e.__workletHash=0x99e0e6865b3,e.__initData=p,e})()).onBegin((function(){const e=function(){ve.value=ge.value};return e.__closure={integralYOffset:ve,integralY:ge},e.__workletHash=0xcb75e9096c5,e.__initData=b,e})()).onUpdate((function(){const e=function({translationY:e}){if(!Z)return;const t=e+ve.value;t>0&&(Ie.value>0&&(Ie.value=0),ge.value=t,q||(Math.abs(ge.value)>=X?xe.value=c.RefreshStatus.Reached:xe.value=c.RefreshStatus.Pulling))};return e.__closure={needRefresh:Z,integralYOffset:ve,sharedTranslate:Ie,integralY:ge,refreshing:q,triggerHeight:X,refreshStatus:xe,RefreshStatus:c.RefreshStatus},e.__workletHash=0xad3cf80ec56,e.__initData=y,e})()).onEnd((function(){const e=function(){if(Z&&!(ge.value<0))if(q)if(ee)if(ge.value>=X)ge.value=(0,n.withTiming)(X,{easing:c.RESET_TIMING_EASING});else{const e=ge.value<=X/2?0:X;ge.value=(0,n.withTiming)(e,{easing:c.RESET_TIMING_EASING},(function(){const t=function(){0===e&&(xe.value=c.RefreshStatus.Idle)};return t.__closure={dest:e,refreshStatus:xe,RefreshStatus:c.RefreshStatus},t.__workletHash=3039733583897,t.__initData=E,t})())}else ge.value=(0,n.withTiming)(0,{easing:c.RESET_TIMING_EASING});else ge.value>=X?(0,n.runOnJS)(He)():ge.value=(0,n.withTiming)(0,{easing:c.RESET_TIMING_EASING},(function(){const e=function(){xe.value=c.RefreshStatus.Idle};return e.__closure={refreshStatus:xe,RefreshStatus:c.RefreshStatus},e.__workletHash=0xbf8cbf0ca71,e.__initData=D,e})())};return e.__closure={needRefresh:Z,integralY:ge,refreshing:q,waitForRefresh:ee,withTiming:n.withTiming,RESET_TIMING_EASING:c.RESET_TIMING_EASING,triggerHeight:X,refreshStatus:xe,RefreshStatus:c.RefreshStatus,runOnJS:n.runOnJS,handleRefresh:He},e.__workletHash=0xb3f56b7a5ff,e.__initData=N,e})()),Ae=(0,n.useDerivedValue)((function(){const e=function(){return(0,n.interpolate)(Ie.value,[0,Re-T],[0,-Re+T],n.Extrapolation.CLAMP)};return e.__closure={interpolate:n.interpolate,sharedTranslate:Ie,headerHeight:Re,stickyHeight:T,Extrapolation:n.Extrapolation},e.__workletHash=0xd1d2bce62bc,e.__initData=V,e})(),[ge,Re]),Pe=(0,n.useAnimatedStyle)((function(){const e=function(){return{transform:[{translateY:Ae.value}]}};return e.__closure={headerStyleInter:Ae},e.__workletHash=0xeac5c0d71d3,e.__initData=O,e})()),Me=(0,n.useAnimatedStyle)((function(){const e=function(){return{transform:[{translateY:'pull'===Q?(0,n.interpolate)(ge.value,[0,le],[0,le/2]):0}]}};return e.__closure={refreshAnimateType:Q,interpolate:n.interpolate,integralY:ge,HEIGHT:le},e.__workletHash=3936140606930,e.__initData=k,e})()),je=(function(){const e=function(){(0,o.mscrollTo)(be[Se.value]?.scrollRef,0,be[Se.value]?.scrollValue.value+.1,!1)};return e.__closure={mscrollTo:o.mscrollTo,childInfo:be,currentIdx:Se},e.__workletHash=0xe9a2449e61b,e.__initData=G,e})();(0,n.useAnimatedReaction)((function(){const e=()=>ce.value;return e.__closure={headerY:ce},e.__workletHash=5086981554603,e.__initData=A,e})(),(function(){const e=function(){de.value&&(0,o.mscrollTo)(be[Se.value]?.scrollRef,0,ce.value,!1)};return e.__closure={isHeaderDecay:de,mscrollTo:o.mscrollTo,childInfo:be,currentIdx:Se,headerY:ce},e.__workletHash=7241251876480,e.__initData=P,e})());const Ce=s.Gesture.Pan().activeOffsetY([-10,10]).withRef(he).simultaneousWithExternalGesture(Te).onTouchesDown((function(){const e=function(e,t){je(),Ye.value&&t.fail()};return e.__closure={stopScrolling:je,isRefreshing:Ye},e.__workletHash=0xf99890749aa,e.__initData=M,e})()).onBegin((function(){const e=function(){fe.value=0};return e.__closure={headerYOffset:fe},e.__workletHash=0xd8cfebb5bc6,e.__initData=j,e})()).onUpdate((function(){const e=function({translationY:e}){de.value||(fe.value=be[Se.value]?.scrollValue.value,de.value=!0),ce.value=-e+fe.value};return e.__closure={isHeaderDecay:de,headerYOffset:fe,childInfo:be,currentIdx:Se,headerY:ce},e.__workletHash=0xe3721a8ada4,e.__initData=C,e})()).onEnd((function(){const e=function({velocityY:e}){fe.value=0,ce.value=(0,n.withDecay)({velocity:-e},(function(){const e=function(){de.value=!1};return e.__closure={isHeaderDecay:de},e.__workletHash=0xd117f948bce,e.__initData=J,e})())};return e.__closure={headerYOffset:fe,headerY:ce,withDecay:n.withDecay,isHeaderDecay:de},e.__workletHash=4327066196713,e.__initData=$,e})());return(0,t.useImperativeHandle)(r,(()=>({getCurrentPage:De,setPage:me,scrollTo:Ve}))),(0,_.jsxs)(u.NestedContext.Provider,{value:{sharedTranslate:Ie,currentIdx:Se,headerHeight:Re,stickyHeight:T,refreshStatus:xe,integralY:ge},children:[(0,_.jsx)(s.GestureDetector,{gesture:Ge,children:(0,_.jsxs)(n.default.View,{style:[L,Me],children:[(0,_.jsx)(l.PageView,Object.assign({},Object.assign({},U),{ref:ue,orientation:'horizontal',onPageSelected:e=>{oe.current&&oe.current?.keepScrollViewMiddle(e),ne&&ne(e),Se.value=e},onPageScroll:e=>{oe.current&&oe.current?.syncCurrentIndex(e),se&&se(e)},onPageScrollStateChanged:e=>{ie&&ie(e)},children:t.default.Children.map(W,((e,r)=>{const a={registerNativeRef:Ne,registerChildInfo:Ee,nestedIndex:r};return t.default.cloneElement(e,a)}))})),(0,_.jsx)(s.GestureDetector,{gesture:Ce,children:(0,_.jsxs)(n.default.View,{onLayout:Oe,style:[F.headerContainer,Pe],children:[v&&v(),(0,_.jsx)(i.TabBar,Object.assign({},Object.assign({},z),{ref:oe,onTabPress:e=>{ue.current&&ue.current?.setPage(e),ae&&ae(e)}}))]})})]})}),(0,_.jsx)(h.default,{scrollOffset:ge,refreshStatus:xe,triggerHeight:X,children:Z&&K&&K()})]})}));W.displayName='NestedTabView';const F=r.default.create({headerContainer:{position:'absolute',left:0,right:0,width:'100%'}});_e.default=W}),766,[1,14,27,767,304,214,751,759,768,769,770,757,771,392]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,u.useState)((()=>n.default.get('window'))),f=t[0],l=t[1];return(0,u.useEffect)((()=>{function t(t){var n=t.window;null!=n&&l(n)}return n.default.addEventListener('change',t),l(n.default.get('window')),()=>{n.default.removeEventListener('change',t)}}),[]),f};var n=t(r(d[1])),u=r(d[2])}),767,[1,267,14]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.useVerifyProps=_e.useRefreshController=_e.useNested=_e.useNestRegister=_e.RefreshControllerContext=_e.NestedContext=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(o,l,s):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.useNestRegister=(e,r)=>{const[n,o]=(0,t.useState)({}),[a,l]=(0,t.useState)([]),s=(0,t.useMemo)((()=>Object.keys(n).length>0&&a.length>0&&null!==e?.current&&null!==r?.current),[n,a]),i=(0,t.useCallback)((e=>{if(!e)return;const t=a?.find((t=>t.current===e.current));t||l((t=>[...t,e]))}),[a]),c=(0,t.useCallback)(((e,t,r)=>{o((n=>Object.assign({},n,{[e]:{scrollValue:t,scrollRef:r}})))}),[]);return{registerNativeRef:i,childNativeRefs:a,registerChildInfo:c,childInfo:n,isReady:s}};const o=_e.NestedContext=(0,t.createContext)({});_e.useNested=()=>{const e=(0,t.useContext)(o);if(!e)throw new Error('component must wrapper by NestedContext');return e};const{width:a}=r.default.get('window');_e.useVerifyProps=e=>{const{tabs:r,tabBarflex:n,tabScrollEnabled:o,spacing:l,showSeparator:s,separatorComponent:i,hideSlider:c,sliderComponent:u,defaultSliderStyle:f,tabBarItemStyle:h,tabBarItemTitleStyle:b,activeTextColor:p,inactiveTextColor:w,tabStyle:y,scrollEnabled:C,bounces:S,gestureBack:P,pageStyle:x,onTabPress:v,onPageScroll:R,onPageScrollStateChanged:T,onPageSelected:O,initialIndex:E,style:N,renderHeader:j,stickyHeight:k,triggerHeight:B,refreshing:_,refreshControl:I,onRefresh:H,onNestedScroll:M,children:V}=e;if(!Array.isArray(r))throw new Error('TabBar tabs must be array');if(r.length<=0)throw new Error("TabBar tabs can't be empty");const W=t.default.Children.count(V);if(0===W)throw new Error('PageView must be contains at least one chid');if(W!==r.length)throw new Error('TabView tabs length must be equal children');let A=a;if(N&&N.width){if('number'!=typeof N.width)throw new Error('TabView width only support number');A=N.width}const D={tabs:r,tabBarflex:n,tabScrollEnabled:o,spacing:l,showSeparator:s,separatorComponent:i,hideSlider:c,sliderComponent:u,defaultSliderStyle:f,tabBarItemStyle:h,tabBarItemTitleStyle:b,activeTextColor:p,inactiveTextColor:w,style:Object.assign({width:A},y),initialTab:E};return{pageProps:{scrollEnabled:C,bounces:S,gestureBack:P,style:Object.assign({flex:1,width:A},x),initialPage:E},tabProps:D,style:N,children:V,renderHeader:j,stickyHeight:k,initialIndex:E,triggerHeight:B,refreshing:_,refreshControl:I,onRefresh:H,onNestedScroll:M,onTabPress:v,onPageScroll:R,onPageScrollStateChanged:T,onPageSelected:O}};const l=_e.RefreshControllerContext=(0,t.createContext)({});_e.useRefreshController=()=>{const e=(0,t.useContext)(l);if(!e)throw new Error('component must wrapper by RefreshControllerContext');return e}}),768,[1,14,267]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.useVerifyProps=_e.useRefreshController=_e.useNested=_e.useNestRegister=_e.RefreshControllerContext=_e.NestedContext=void 0;var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(n,l,s):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=e(_r(d[3]));const o=["tabs","tabBarflex","tabScrollEnabled","spacing","showSeparator","separatorComponent","hideSlider","sliderComponent","defaultSliderStyle","tabBarItemStyle","tabBarItemTitleStyle","activeTextColor","inactiveTextColor","tabStyle","scrollEnabled","bounces","gestureBack","pageStyle","onTabPress","onPageScroll","onPageScrollStateChanged","onPageSelected","initialIndex","style","children"];function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}_e.useNestRegister=(e,t)=>{const[n,o]=(0,r.useState)({}),[a,l]=(0,r.useState)([]),s=(0,r.useMemo)((()=>Object.keys(n).length>0&&a.length>0&&null!==e?.current&&null!==t?.current),[n,a]),i=(0,r.useCallback)((e=>{if(!e)return;const t=a?.find((t=>t.current===e.current));t||l((t=>[...t,e]))}),[a]),c=(0,r.useCallback)(((e,t,r)=>{o((n=>Object.assign({},n,{[e]:{scrollValue:t,scrollRef:r}})))}),[]);return{registerNativeRef:i,childNativeRefs:a,registerChildInfo:c,childInfo:n,isReady:s}};const l=_e.NestedContext=(0,r.createContext)({});_e.useNested=()=>{const e=(0,r.useContext)(l);if(!e)throw new Error('component must wrapper by NestedContext');return e};const{width:s}=n.default.get('window');_e.useVerifyProps=e=>{const{tabs:n,tabBarflex:a,tabScrollEnabled:l,spacing:i,showSeparator:c,separatorComponent:u,hideSlider:b,sliderComponent:f,defaultSliderStyle:p,tabBarItemStyle:h,tabBarItemTitleStyle:y,activeTextColor:S,inactiveTextColor:w,tabStyle:C,scrollEnabled:P,bounces:x,gestureBack:v,pageStyle:T,onTabPress:B,onPageScroll:E,onPageScrollStateChanged:O,onPageSelected:j,initialIndex:I=0,style:R,children:_}=e,k=(0,t.default)(e,o);if(!Array.isArray(n))throw new Error('TabBar tabs must be array');if(n.length<=0)throw new Error("TabBar tabs can't be empty");const N=r.default.Children.count(_);if(0===N)throw new Error('PageView must be contains at least one chid');if(N!==n.length)throw new Error('TabView tabs length must be equal children');let M=s;if(R&&R.width){if('number'!=typeof R.width)throw new Error('TabView width only support number');M=R.width}const V={tabs:n,tabBarflex:a,tabScrollEnabled:l,spacing:i,showSeparator:c,separatorComponent:u,hideSlider:b,sliderComponent:f,defaultSliderStyle:p,tabBarItemStyle:h,tabBarItemTitleStyle:y,activeTextColor:S,inactiveTextColor:w,style:Object.assign({width:M},C),initialTab:I},W={scrollEnabled:P,bounces:x,gestureBack:v,style:Object.assign({flex:1,width:M},T),initialPage:I};return Object.assign({pageProps:W,tabProps:V,style:R,children:_,initialIndex:I,onTabPress:B,onPageScroll:E,onPageScrollStateChanged:O,onPageSelected:j},k)};const i=_e.RefreshControllerContext=(0,r.createContext)({});_e.useRefreshController=()=>{const e=(0,r.useContext)(i);if(!e)throw new Error('component must wrapper by RefreshControllerContext');return e}}),768,[1,28,14,267]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.mscrollTo=e.mergeProps=void 0;var o=r(d[0]);const t={code:"function utilTs1(animatedRef,x,y,animated){const{scrollTo}=this.__closure;if(!animatedRef)return;scrollTo(animatedRef,x,y,animated);}"};e.mscrollTo=(function(){const n=function(t,n,s,l){t&&(0,o.scrollTo)(t,n,s,l)};return n.__closure={scrollTo:o.scrollTo},n.__workletHash=8646436350630,n.__initData=t,n})();e.mergeProps=(o,t)=>(o.style=Object.assign({},o.style),o.contentContainerStyle=Object.assign({},o.contentContainerStyle,{paddingTop:t}),o.scrollIndicatorInsets=Object.assign({},o.scrollIndicatorInsets,{top:t}),o)}),769,[304]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.RefreshStatus=e.RESET_TIMING_EASING=void 0;var n=r(d[0]);e.RefreshStatus=(function(n){return n[n.Idle=0]="Idle",n[n.Pulling=1]="Pulling",n[n.Reached=2]="Reached",n[n.Holding=3]="Holding",n[n.Done=4]="Done",n})({});e.RESET_TIMING_EASING=n.Easing.bezier(.33,1,.68,1)}),770,[304]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;e(_r(d[1]));var t=e(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(n,l,a):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]),o=_r(d[5]);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}const l={code:"function RefreshControllerTsx1(){const{interpolate,scrollOffset,HEIGHT,triggerHeight}=this.__closure;return{height:interpolate(scrollOffset.value,[0,HEIGHT],[0,HEIGHT/2]),opacity:interpolate(scrollOffset.value,[0,triggerHeight/3,triggerHeight],[0,0,1])};}"};_e.default=e=>{const{scrollOffset:i,refreshStatus:a,triggerHeight:u,children:f}=e,{height:s}=(0,t.default)(),c=(0,r.useAnimatedStyle)((function(){const e=function(){return{height:(0,r.interpolate)(i.value,[0,s],[0,s/2]),opacity:(0,r.interpolate)(i.value,[0,u/3,u],[0,0,1])}};return e.__closure={interpolate:r.interpolate,scrollOffset:i,HEIGHT:s,triggerHeight:u},e.__workletHash=2502408569855,e.__initData=l,e})(),[]);return(0,o.jsx)(n.RefreshControllerContext.Provider,{value:{scrollOffset:i,refreshStatus:a,triggerHeight:u},children:(0,o.jsx)(r.default.View,{style:[{position:'absolute',top:0,left:0,right:0,width:'100%',backgroundColor:'pink',height:0,justifyContent:'center',alignItems:'center'},c],children:f})})}}),771,[1,14,767,304,768,392]); @@ -926,7 +926,7 @@ __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esMo __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;e(_r(d[1]));var t=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),i=e(_r(d[5])),l=_r(d[6]),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(a,l,s):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a})(_r(d[7])),r=_r(d[8]),o=_r(d[9]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const{width:c}=t.default.get('window'),f=[-c,-100,0],h={code:"function SwipeActionExampleTsx1(){const{offset,translateX}=this.__closure;offset.value=translateX.value;}"},v={code:"function SwipeActionExampleTsx2({translationX:translationX}){const{offset,translateX}=this.__closure;if(offset.value+translationX>0)return;translateX.value=offset.value+translationX;}"},_={code:"function SwipeActionExampleTsx3({velocityX:velocityX}){const{snapPoint,translateX,snapPoints,withTiming,canDelete,width,height}=this.__closure;const dest=snapPoint(translateX.value,velocityX,snapPoints);if(dest===0){translateX.value=withTiming(0);canDelete.value=false;}else if(dest===-100){translateX.value=withTiming(dest);canDelete.value=true;}else if(dest===-width&&canDelete.value){translateX.value=withTiming(dest);height.value=withTiming(0);canDelete.value=false;}else{translateX.value=withTiming(-100);canDelete.value=true;}}"},w={code:"function SwipeActionExampleTsx4(){const{height,translateX}=this.__closure;return{height:height.value,transform:[{translateX:translateX.value}]};}"},p={code:"function SwipeActionExampleTsx5(){const{translateX}=this.__closure;return{width:Math.abs(translateX.value)*0.5};}"},X={code:"function SwipeActionExampleTsx6(){const{translateX}=this.__closure;return{width:Math.abs(translateX.value)};}"},y=a.default.create({container:{flex:1},item:{width:c,marginTop:1,height:50,backgroundColor:'white'},silder:{position:'absolute',right:0,top:0,bottom:0,backgroundColor:'orange',height:50,justifyContent:'center',alignContent:'center'},silder2:{position:'absolute',right:0,top:0,bottom:0,backgroundColor:'red',height:50,justifyContent:'center',alignContent:'center'},cancel:{color:'white'}});_e.default=e=>{const{}=e,t=(0,s.useSharedValue)(0),a=(0,s.useSharedValue)(0),u=(0,s.useSharedValue)(!1),x=(0,s.useSharedValue)(50),T=l.Gesture.Pan().onBegin((function(){const e=function(){a.value=t.value};return e.__closure={offset:a,translateX:t},e.__workletHash=9920281696564,e.__initData=h,e})()).onUpdate((function(){const e=function({translationX:e}){a.value+e>0||(t.value=a.value+e)};return e.__closure={offset:a,translateX:t},e.__workletHash=8135861066194,e.__initData=v,e})()).onEnd((function(){const e=function({velocityX:e}){const n=(0,r.snapPoint)(t.value,e,f);0===n?(t.value=(0,s.withTiming)(0),u.value=!1):-100===n?(t.value=(0,s.withTiming)(n),u.value=!0):n===-c&&u.value?(t.value=(0,s.withTiming)(n),x.value=(0,s.withTiming)(0),u.value=!1):(t.value=(0,s.withTiming)(-100),u.value=!0)};return e.__closure={snapPoint:r.snapPoint,translateX:t,snapPoints:f,withTiming:s.withTiming,canDelete:u,width:c,height:x},e.__workletHash=2527636924478,e.__initData=_,e})()),b=(0,s.useAnimatedStyle)((function(){const e=function(){return{height:x.value,transform:[{translateX:t.value}]}};return e.__closure={height:x,translateX:t},e.__workletHash=0xfc09f15f0db,e.__initData=w,e})()),j=(0,s.useAnimatedStyle)((function(){const e=function(){return{width:.5*Math.abs(t.value)}};return e.__closure={translateX:t},e.__workletHash=3203685522074,e.__initData=p,e})()),P=(0,s.useAnimatedStyle)((function(){const e=function(){return{width:Math.abs(t.value)}};return e.__closure={translateX:t},e.__workletHash=1473559614648,e.__initData=X,e})());return(0,o.jsxs)(n.default,{style:y.container,children:[(0,o.jsx)(n.default,{style:y.item}),(0,o.jsx)(l.GestureDetector,{gesture:T,children:(0,o.jsxs)(n.default,{style:{overflow:'hidden'},children:[(0,o.jsx)(s.default.View,{style:[y.item,b],children:(0,o.jsx)(i.default,{children:"contentcontentcontentcontentcontent"})}),(0,o.jsx)(s.default.View,{style:[y.silder2,P],children:(0,o.jsx)(i.default,{numberOfLines:1,style:[y.cancel],onPress:()=>{t.value=(0,s.withTiming)(-c),x.value=(0,s.withTiming)(0)},children:"\u5220\u9664"})}),(0,o.jsx)(s.default.View,{style:[y.silder,j],children:(0,o.jsx)(i.default,{numberOfLines:1,style:[y.cancel],onPress:()=>{t.value=(0,s.withTiming)(0),u.value=!1},children:"\u53d6\u6d88"})})]})}),(0,o.jsx)(n.default,{style:y.item})]})}}),849,[1,14,267,282,27,87,214,304,603,392]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(o,l,i):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o})(_r(d[1])),n=e(_r(d[2])),o=e(_r(d[3])),r=e(_r(d[4])),l=e(_r(d[5])),i=_r(d[6]),a=_r(d[7]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const{width:f,height:s}=r.default.get('window');let c=0;const p=o.default.create({container:{flex:1},item1:{width:f,height:500,backgroundColor:'pink',justifyContent:'center',alignItems:'center'},title:{fontSize:30}});_e.default=e=>{const{}=e,[o,r]=(0,t.useState)(new Array(3).fill(0)),[u,f]=(0,t.useState)(!1);return(0,a.jsx)(i.RefreshScrollView,{refreshing:u,refreshComponent:()=>(0,a.jsx)(i.NormalControl,{position:"top"}),loadComponent:()=>(0,a.jsx)(i.NormalControl,{position:"bottom"}),onRefresh:()=>{f(!0),console.log('\u4e0b\u62c9\u5237\u65b0'),setTimeout((()=>{c=Math.floor(100*Math.random()),f(!1)}),2e3)},handleOnLoadMore:()=>{f(!0),console.log('\u4e0a\u62c9\u52a0\u8f7d'),setTimeout((()=>{const e=o.length+1;r(new Array(e).fill(0)),f(!1)}),2e3)},children:o.map(((e,t)=>{const o=1&t?'orange':'pink';return(0,a.jsx)(n.default,{style:[p.item1,{backgroundColor:o}],children:(0,a.jsx)(l.default,{style:p.title,children:t+c})},t)}))})}}),850,[1,14,282,27,267,87,603,392]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(r(d[1]));var l=t(r(d[2])),n=t(r(d[3])),s=t(r(d[4])),c=r(d[5]),u=r(d[6]);const f=['tab1','tab2','this is tab3','tab5','11','tab8','ta11'],o=n.default.create({container:{flex:1}});e.default=t=>{const{}=t;return(0,u.jsx)(l.default,{style:o.container,children:(0,u.jsx)(c.TabView,{tabs:f,tabBarflex:"equal-width",children:f.map(((t,n)=>(0,u.jsxs)(l.default,{style:{flex:1,backgroundColor:'pink'},children:[(0,u.jsx)(s.default,{children:t}),(0,u.jsx)(s.default,{children:t})]},n)))})})}}),851,[1,14,282,27,87,603,392]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=l?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),l=_r(d[4]),o=_r(d[5]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}_e.default=e=>{const{}=e,s=(0,t.useRef)(),[a,i]=(0,t.useState)(!1);(0,t.useEffect)((()=>{}),[]);return(0,o.jsxs)(l.NestedTabView,{ref:s,style:{flex:1},stickyHeight:55,renderHeader:()=>(0,o.jsxs)(r.default,{style:{backgroundColor:'lightblue',height:200,justifyContent:'center',alignItems:'center'},children:[(0,o.jsx)(n.default,{children:"Header"}),(0,o.jsx)(n.default,{style:{fontSize:20},onPress:()=>{console.log(s.current?.getCurrentPage())},children:"get.current"}),(0,o.jsx)(n.default,{style:{fontSize:20},onPress:()=>{s.current?.setPage(2)},children:"setPage"}),(0,o.jsx)(n.default,{style:{fontSize:20},onPress:()=>{s.current?.scrollTo(100)},children:"scrollTo"})]}),tabs:['tab1','tab2','\u7b2c\u4e09\u4e2atabs'],tabBarflex:'equal-width',refreshing:a,refreshControl:()=>(0,o.jsx)(l.NestedRefresh,{}),onRefresh:()=>{console.log('\u4e0b\u62c9\u5237\u65b0\u5f00\u59cb'),i(!0);setTimeout((()=>{console.log('\u4e0b\u62c9\u5237\u65b0\u7ed3\u675f'),i(!1)}),2e3)},onNestedScroll:e=>{console.log(e)},children:[(0,o.jsx)(l.Nested.ScrollView,{contentContainerStyle:{backgroundColor:'orange'},children:new Array(80).fill(0).map(((e,t)=>(0,o.jsx)(n.default,{style:{margin:10,fontSize:20},children:'ScrollView'+t},t)))}),(0,o.jsx)(l.Nested.FlatList,{data:new Array(80).fill(0),renderItem:({item:e,index:t})=>(0,o.jsx)(n.default,{style:{margin:10,fontSize:20},children:'flatlist'+t},t)}),(0,o.jsx)(l.Nested.ScrollView,{children:new Array(80).fill(0).map(((e,t)=>(0,o.jsx)(n.default,{style:{margin:10,fontSize:20},children:'ScrollView'+t},t)))})]})}}),852,[1,14,282,87,603,392]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=l?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),l=_r(d[4]),o=_r(d[5]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}_e.default=e=>{const{}=e,s=(0,t.useRef)(),[a,i]=(0,t.useState)(!1);(0,t.useEffect)((()=>{}),[]);return(0,o.jsxs)(l.NestedTabView,{ref:s,style:{flex:1},stickyHeight:55,renderHeader:()=>(0,o.jsxs)(r.default,{style:{backgroundColor:'lightblue',height:200,justifyContent:'center',alignItems:'center'},children:[(0,o.jsx)(n.default,{children:"Header"}),(0,o.jsx)(n.default,{style:{fontSize:20},onPress:()=>{console.log(s.current?.getCurrentPage())},children:"get.current"}),(0,o.jsx)(n.default,{style:{fontSize:20},onPress:()=>{s.current?.setPage(2)},children:"setPage"}),(0,o.jsx)(n.default,{style:{fontSize:20},onPress:()=>{s.current?.scrollTo(100)},children:"scrollTo"})]}),tabs:['tab1','tab2','\u7b2c\u4e09\u4e2atabs'],tabBarflex:'equal-width',refreshing:a,refreshControl:()=>(0,o.jsx)(l.NestedRefresh,{}),onRefresh:()=>{console.log('\u4e0b\u62c9\u5237\u65b0\u5f00\u59cb'),i(!0);setTimeout((()=>{console.log('\u4e0b\u62c9\u5237\u65b0\u7ed3\u675f'),i(!1)}),2e3)},onNestedScroll:e=>{console.log(e)},needRefresh:!0,children:[(0,o.jsx)(l.Nested.ScrollView,{contentContainerStyle:{backgroundColor:'orange'},children:new Array(80).fill(0).map(((e,t)=>(0,o.jsx)(n.default,{style:{margin:10,fontSize:20},children:'ScrollView'+t},t)))}),(0,o.jsx)(l.Nested.FlatList,{data:new Array(80).fill(0),renderItem:({item:e,index:t})=>(0,o.jsx)(n.default,{style:{margin:10,fontSize:20},children:'flatlist'+t},t)}),(0,o.jsx)(l.Nested.ScrollView,{children:new Array(80).fill(0).map(((e,t)=>(0,o.jsx)(n.default,{style:{margin:10,fontSize:20},children:'ScrollView'+t},t)))})]})}}),852,[1,14,282,87,603,392]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var l=o(t);if(l&&l.has(e))return l.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=n?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,l&&l.set(e,r),r})(_r(d[1])),l=e(_r(d[2])),r=e(_r(d[3])),n=e(_r(d[4])),a=e(_r(d[5])),s=_r(d[6]),u=_r(d[7]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(o=function(e){return e?l:t})(e)}const i=['page1','page2','page3','page4','page5','page6'],c=['pink','orange','lightblue','pink','orange','lightblue'],{width:f}=a.default.get('window'),y=r.default.create({pagerView:{height:200},textStyle:{fontSize:20,marginVertical:5}});_e.default=e=>{const{}=e,r=(0,t.useRef)(null),a=(0,t.useRef)(null),[o,x]=(0,t.useState)('idle'),[h,p]=(0,t.useState)(0),[P,S]=(0,t.useState)(),[j,b]=(0,t.useState)(!0);return(0,u.jsxs)(l.default,{style:{flex:1},children:[(0,u.jsxs)(n.default,{style:y.textStyle,children:["PageView\u72b6\u6001:",o]}),(0,u.jsxs)(n.default,{style:y.textStyle,children:["\u5f53\u524d\u9875\u9762:",h]}),(0,u.jsxs)(n.default,{style:y.textStyle,children:["\u5f53\u524d\u504f\u79fb\u91cf:",P]}),(0,u.jsxs)(n.default,{style:y.textStyle,children:["\u5f53\u524d\u662f\u5426\u53ef\u4ee5\u6eda\u52a8:",j?'true':'false']}),(0,u.jsx)(s.PageView,{ref:r,style:y.pagerView,initialPage:h,onPageSelected:e=>{p(e)},onPageScrollStateChanged:e=>{x(e)},onPageScroll:e=>{S(e)},scrollEnabled:!0,bounces:!0,lazy:!0,lazyPreloadNumber:1,children:i.map(((e,t)=>(0,u.jsxs)(l.default,{style:{flex:1,backgroundColor:c[t],justifyContent:'center',alignItems:'center'},children:[(0,u.jsxs)(n.default,{style:y.textStyle,children:["page ",t]}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{r.current&&r.current?.setPage(2)},children:"go page 3"}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{r.current&&r.current?.setPageWithoutAnimation(2)},children:"go page 3 widthout animate"}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{const e=r.current&&r.current?.getCurrentPage();console.log(e)},children:"getCurrentPage"}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{r.current&&r.current?.setScrollEnabled(!j),b(!j)},children:"scrollEnabled"})]},e)))}),(0,u.jsx)(n.default,{style:y.textStyle,children:"\u7eb5\u5411\u6eda\u52a8"}),(0,u.jsx)(s.PageView,{ref:a,style:{width:f,height:200},initialPage:0,onPageSelected:e=>{},onPageScrollStateChanged:e=>{},onPageScroll:e=>{},scrollEnabled:!0,orientation:"vertical",children:i.map(((e,t)=>(0,u.jsxs)(l.default,{style:{flex:1,backgroundColor:c[t],justifyContent:'center',alignItems:'center'},children:[(0,u.jsxs)(n.default,{style:y.textStyle,children:["page2 ",t]}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{a.current&&a.current?.setPage(2)},children:"go page 3"}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{a.current&&a.current?.setPageWithoutAnimation(2)},children:"go page 3 widthout animate"}),(0,u.jsx)(n.default,{style:y.textStyle,onPress:()=>{const e=a.current&&a.current?.getCurrentPage();console.log(e)},children:"getCurrentPage"})]},'ref2'+e)))})]})}}),853,[1,14,282,27,87,267,603,392]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(r(d[1]));var o=t(r(d[2])),l=r(d[3]),b=r(d[4]);const s=['tab1','tab2','this is tab3','tab5','11','tab8','ta11'],n=['tab1','tab2'],h=['tab1','tab2','this is tab3'],u=['tab1','tab2','this is tab3','tab5','11','tab8','ta11'];e.default=t=>{const{}=t;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.TabBar,{tabs:s,spacing:20,showSeparator:!0,separatorComponent:()=>(0,b.jsx)(o.default,{style:{height:18,width:4,backgroundColor:'#000'}}),tabBarItemStyle:{height:50,borderRadius:25,paddingHorizontal:30,paddingVertical:10,backgroundColor:'orange'}}),(0,b.jsx)(l.TabBar,{tabs:n,tabBarflex:"equal-width",scrollEnabled:!1,spacing:30,showSeparator:!0,separatorComponent:()=>(0,b.jsx)(o.default,{style:{height:18,width:30,backgroundColor:'blue'}}),sliderComponent:()=>(0,b.jsx)(o.default,{style:{width:5,height:5,borderRadius:5,backgroundColor:'blue'}}),style:{height:80}}),(0,b.jsx)(l.TabBar,{tabs:h,spacing:18,tabBarflex:"equal-width",hideSlider:!0,tabBarItemTitleStyle:{fontSize:20,color:'grey',fontWeight:'bold'},activeTextColor:"red",inactiveTextColor:"green",tabBarItemStyle:{backgroundColor:'pink'}}),(0,b.jsx)(l.TabBar,{style:{width:300},tabs:u,initialTab:3,defaultSliderStyle:{width:50,height:4,borderRadius:4}})]})}}),854,[1,14,282,603,392]); __r(0); \ No newline at end of file diff --git a/index.html b/index.html index 2de20a1..214239c 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,6 @@
- +