2026-09-02 09:53:35 +00:00
// Module ID: 16182
// Function ID: 16183
2026-07-20 16:05:17 +00:00
// Name: PreviewItem
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 5389, 16106, 16107, 21, 4478, 15845, 4217, 4927, 7805, 4204, 4197, 709, 16115, 16137, 4105, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 16182 (PreviewItem)
import isIterable from "isIterable" /* 4105 */ ;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */ ;
2026-09-02 09:53:35 +00:00
import { GuildsNodeType } from "insertUnsortedGuilds" /* 5389 */ ;
import closure_5 from "withEqualityFn" /* 16106 */ ;
import { GUILD_ITEM_INSET_LEFT } from "GUILD_ITEM_SIZE" /* 16107 */ ;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */ ;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */ ;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1 ;
2026-07-20 16:05:17 +00:00
function PreviewItem ( dragRegion ) {
dragRegion = dragRegion . dragRegion ;
const draggedHeight = dragRegion . draggedHeight ;
( { draggedNode , dropComplete } = dragRegion ) ;
const gestureState = dragRegion . gestureState ;
const listInsets = dragRegion . listInsets ;
const overNode = dragRegion . overNode ;
const overState = dragRegion . overState ;
const scrollPosition = dragRegion . scrollPosition ;
const windowSize = dragRegion . windowSize ;
const dropPosition = dragRegion . dropPosition ;
2026-07-29 08:29:29 +00:00
let derivedValue ;
let derivedValue1 ;
2026-08-12 06:57:52 +00:00
let tmp = windowSize ( ) ;
let obj = dragRegion ( dropComplete [ 6 ] ) ;
2026-08-03 11:20:01 +00:00
const isHomeDrawerEnabled = obj . useIsHomeDrawerEnabled ( ) ;
2026-08-24 06:08:38 +00:00
obj1 = dragRegion ( dropComplete [ 7 ] ) ;
2026-07-23 10:11:24 +00:00
let fn = function x() {
2026-07-20 16:05:17 +00:00
const value = scrollPosition . get ( ) ;
let num = 0 ;
if ( value < dragRegion . get ( ) . min ) {
num = dragRegion . get ( ) . min - scrollPosition . get ( ) ;
}
return Math . max ( num , listInsets . get ( ) . start ) ;
} ;
fn . __closure = { scrollPosition , dragRegion , listInsets } ;
fn . __workletHash = 17436881889698 ;
2026-08-12 06:57:52 +00:00
fn . __initData = derivedValue1 ;
2026-08-03 11:20:01 +00:00
derivedValue = obj1 . useDerivedValue ( fn ) ;
2026-08-12 06:57:52 +00:00
class E {
constructor ( ) {
obj = scrollPosition ;
tmp2 = windowSize ;
obj2 = listInsets ;
value = scrollPosition . get ( ) ;
obj3 = dragRegion ;
sum = value + ( windowSize - listInsets . get ( ) . end ) ;
if ( sum > dragRegion . get ( ) . max ) {
tmp6 = draggedHeight ;
diff = obj3 . get ( ) . max - draggedHeight ;
diff1 = diff - obj . get ( ) ;
tmp4 = draggedHeight ;
} else {
tmp4 = draggedHeight ;
diff1 = tmp2 - obj2 . get ( ) . end - draggedHeight ;
}
return Math . min ( diff1 , tmp2 - obj2 . get ( ) . end - tmp4 ) ;
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
}
E . __closure = { scrollPosition , windowSize , listInsets , dragRegion , draggedHeight } ;
E . __workletHash = 4371355784 ;
E . __initData = closure_12 ;
derivedValue1 = dragRegion ( dropComplete [ 7 ] ) . useDerivedValue ( E ) ;
const obj3 = dragRegion ( dropComplete [ 7 ] ) ;
2026-08-03 11:20:01 +00:00
const tmp2 = dragRegion ;
const tmp3 = dropComplete ;
2026-08-12 06:57:52 +00:00
class T {
2026-07-20 16:05:17 +00:00
constructor ( ) {
2026-07-29 08:29:29 +00:00
tmp = dropPosition ;
2026-07-20 16:05:17 +00:00
if ( null != dropPosition ) {
tmp5 = scrollPosition ;
2026-07-29 08:29:29 +00:00
diff = tmp - scrollPosition . get ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp2 = gestureState ;
tmp3 = draggedHeight ;
2026-07-20 16:05:17 +00:00
num = 2 ;
diff = gestureState . get ( ) . absoluteY - draggedHeight / 2 ;
}
if ( null != gestureState . get ( ) . mode ) {
2026-07-29 08:29:29 +00:00
if ( null == tmp ) {
tmp8 = globalThis ;
2026-07-20 16:05:17 +00:00
_Math = Math ;
_Math2 = Math ;
2026-08-24 06:08:38 +00:00
tmp9 = closure_10 ;
tmp11 = closure_11 ;
bound = Math . max ( diff , closure_10 . get ( ) ) ;
bound1 = Math . min ( bound , closure_11 . get ( ) ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { top : null } ;
tmp12 = dragRegion ;
tmp13 = dropComplete ;
2026-08-12 06:57:52 +00:00
obj2 = dragRegion ( dropComplete [ 8 ] ) ;
2026-08-24 06:08:38 +00:00
tmp14 = closure_10 ;
2026-07-20 16:05:17 +00:00
fn = function t ( arg0 ) {
let tmp = arg0 ;
if ( arg0 ) {
2026-07-29 08:29:29 +00:00
tmp = null != closure_9 ;
2026-07-20 16:05:17 +00:00
}
if ( tmp ) {
2026-08-24 06:08:38 +00:00
closure_1_0 ( closure_1_2 [ 7 ] ) . runOnJS ( closure_2 ) ( ) ;
const obj = closure_1_0 ( closure_1_2 [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-29 08:29:29 +00:00
obj = { dropPosition : null , runOnJS : null , dropComplete : null } ;
obj [ 0 ] = tmp ;
2026-08-12 06:57:52 +00:00
obj [ 1 ] = dragRegion ( dropComplete [ 7 ] ) . runOnJS ;
2026-07-29 08:29:29 +00:00
tmp15 = dropComplete ;
obj [ 2 ] = dropComplete ;
2026-07-20 16:05:17 +00:00
fn . __closure = obj ;
2026-07-29 08:29:29 +00:00
num2 = 12640145939434 ;
2026-07-20 16:05:17 +00:00
fn . __workletHash = 12640145939434 ;
2026-08-24 06:08:38 +00:00
tmp16 = closure_1_14 ;
fn . __initData = closure_1_14 ;
2026-07-20 16:05:17 +00:00
str = "animate-always" ;
2026-07-29 08:29:29 +00:00
tmp17 = obj2 ;
tmp18 = bound1 ;
tmp19 = fn ;
2026-08-24 06:08:38 +00:00
obj [ 0 ] = obj2 . withSpring ( bound1 , closure_10 , "animate-always" , fn ) ;
2026-07-20 16:05:17 +00:00
return obj ;
}
2026-07-29 08:29:29 +00:00
tmp6 = - draggedHeight ;
bound1 = Math . max ( tmp6 , Math . min ( diff , windowSize ) ) ;
2026-07-20 16:05:17 +00:00
return ;
}
}
2026-08-12 06:57:52 +00:00
obj = { dropPosition , scrollPosition , gestureState , draggedHeight , minY : derivedValue , maxY : derivedValue1 , windowSize , withSpring : dragRegion ( dropComplete [ 8 ] ) . withSpring , DRAG_SPRING_PHYSICS : derivedValue , runOnJS : dragRegion ( dropComplete [ 7 ] ) . runOnJS , dropComplete } ;
T . __closure = obj ;
T . __workletHash = 5676492640532 ;
T . __initData = closure_13 ;
2026-07-23 10:11:24 +00:00
let items = [ overState , overNode ] ;
2026-08-12 06:57:52 +00:00
const animatedStyle = dragRegion ( dropComplete [ 7 ] ) . useAnimatedStyle ( T ) ;
2026-07-20 16:05:17 +00:00
const memo = gestureState . useMemo ( ( ) = > {
if ( "convert-after" === overState ) {
if ( null != overNode ) {
2026-09-02 09:53:35 +00:00
const obj = { type : null , id : - 1 , parentId : "PX_16" , name : "Array" , color : "paddingHorizontal" , expanded : true , children : true } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = listInsets . FOLDER ;
const items = [ tmp2 ] ;
obj [ 6 ] = items ;
2026-07-20 16:05:17 +00:00
return obj ;
}
}
} , items ) ;
const items1 = [ tmp . dragPreview , , ] ;
let dragPreviewHome = null ;
2026-08-12 06:57:52 +00:00
const obj4 = dragRegion ( dropComplete [ 7 ] ) ;
2026-08-03 11:20:01 +00:00
if ( isHomeDrawerEnabled ) {
2026-07-20 16:05:17 +00:00
dragPreviewHome = tmp . dragPreviewHome ;
}
2026-07-29 08:29:29 +00:00
obj = { style : items1 , nativeID : "guilds-bar-drag-preview" , children : null } ;
2026-07-20 16:05:17 +00:00
items1 [ 1 ] = dragPreviewHome ;
items1 [ 2 ] = animatedStyle ;
2026-07-29 08:29:29 +00:00
obj1 = { renderItem : renderAnimatedItemPreview , items : null , getItemKey : null } ;
2026-07-20 16:05:17 +00:00
if ( null != memo ) {
draggedNode = memo ;
}
const items2 = [ draggedNode ] ;
2026-07-29 08:29:29 +00:00
obj1 [ 1 ] = items2 ;
obj1 [ 2 ] = getItemPreviewKey ;
2026-08-12 06:57:52 +00:00
obj [ 2 ] = scrollPosition ( tmp2 ( tmp3 [ 10 ] ) . TransitionGroup , obj1 ) ;
return scrollPosition ( draggedHeight ( dropComplete [ 9 ] ) , obj ) ;
2026-07-20 16:05:17 +00:00
}
function getItemPreviewKey ( id ) {
return "" + id . id ;
}
function renderAnimatedItemPreview ( arg0 , node , transitionState , cleanUp ) {
return < AnimatedItemPreview key = { arg0 } node = { arg1 } transitionState = { arg2 } cleanUp = { arg3 } / > ;
}
function AnimatedItemPreview ( cleanUp ) {
( { node , transitionState } = cleanUp ) ;
cleanUp = cleanUp . cleanUp ;
2026-07-23 10:11:24 +00:00
let sharedValue ;
2026-08-24 06:08:38 +00:00
importAllResult = undefined ;
2026-08-12 06:57:52 +00:00
let obj = transitionState ( sharedValue [ 11 ] ) ;
2026-07-23 10:11:24 +00:00
let tmp = callback2 ( ) ;
2026-08-24 06:08:38 +00:00
obj1 = transitionState ( sharedValue [ 6 ] ) ;
2026-08-12 06:57:52 +00:00
let isHomeDrawerEnabled = obj1 . useIsHomeDrawerEnabled ( ) ;
let obj2 = transitionState ( sharedValue [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
let num = 1 ;
2026-08-12 06:57:52 +00:00
if ( transitionState === transitionState ( sharedValue [ 10 ] ) . TransitionStates . ENTERED ) {
2026-07-20 16:05:17 +00:00
num = 0 ;
}
2026-08-12 06:57:52 +00:00
sharedValue = obj2 . useSharedValue ( num ) ;
importAllResult = tmp9 ;
2026-08-03 11:20:01 +00:00
if ( isHomeDrawerEnabled ) {
2026-08-12 06:57:52 +00:00
isHomeDrawerEnabled = ! tmp9 ;
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
const tmp5 = callback3 ( GUILD_ITEM_INSET_LEFT + obj . useToken ( cleanUp ( sharedValue [ 12 ] ) . modules . mobile . GUILD_BAR_ITEM_SIZE ) / 2 ) ;
const tmp8 = GuildsNodeType ;
let fn = function _() {
2026-07-20 16:05:17 +00:00
const value = sharedValue . get ( ) ;
let num = 1 ;
2026-08-24 06:08:38 +00:00
if ( closure_3 ) {
2026-07-20 16:05:17 +00:00
let num3 = 0.3 ;
if ( num === value ) {
num3 = num ;
}
let num2 = num3 ;
2026-07-29 08:29:29 +00:00
let obj = tmp2 ;
2026-07-20 16:05:17 +00:00
} else {
num2 = 0.33 ;
if ( num === value ) {
num2 = num ;
}
2026-07-29 08:29:29 +00:00
obj = tmp2 ;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
if ( ! closure_3 ) {
2026-07-29 08:29:29 +00:00
if ( num !== obj . get ( ) ) {
obj = { translateX : 10 , translateY : - 10 } ;
2026-07-20 16:05:17 +00:00
}
let num4 = num ;
( { translateX , translateY } = obj ) ;
2026-07-29 08:29:29 +00:00
if ( tmp ) {
2026-07-20 16:05:17 +00:00
num4 = 0 ;
}
2026-07-29 08:29:29 +00:00
obj = { zIndex : null , transform : null , opacity : null } ;
obj [ 0 ] = num4 ;
2026-08-24 06:08:38 +00:00
obj1 = { translateY : null } ;
2026-08-12 06:57:52 +00:00
let obj4 = transitionState ( sharedValue [ 8 ] ) ;
2026-08-24 06:08:38 +00:00
obj1 [ 0 ] = obj4 . withSpring ( translateY , closure_1_10 , "animate-always" ) ;
2026-07-29 08:29:29 +00:00
const items = [ obj1 , , ] ;
const obj2 = { translateX : null } ;
2026-08-24 06:08:38 +00:00
obj2 [ 0 ] = transitionState ( sharedValue [ 8 ] ) . withSpring ( translateX , closure_1_10 , "animate-always" ) ;
2026-07-29 08:29:29 +00:00
items [ 1 ] = obj2 ;
const obj3 = { scale : null } ;
2026-08-12 06:57:52 +00:00
const obj9 = transitionState ( sharedValue [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
const fn = function t ( arg0 ) {
let tmp = arg0 ;
if ( arg0 ) {
2026-08-24 06:08:38 +00:00
tmp = closure_0 === closure_1_0 ( closure_1_2 [ 10 ] ) . TransitionStates . YEETED ;
2026-07-20 16:05:17 +00:00
}
if ( tmp ) {
2026-07-29 08:29:29 +00:00
tmp = closure_3 ;
2026-07-20 16:05:17 +00:00
}
if ( tmp ) {
2026-08-24 06:08:38 +00:00
closure_1_0 ( closure_1_2 [ 7 ] ) . runOnJS ( closure_1 ) ( ) ;
const obj = closure_1_0 ( closure_1_2 [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-29 08:29:29 +00:00
obj4 = { transitionState : null , TransitionStates : null , isFolder : null , runOnJS : null , cleanUp : null } ;
obj4 [ 0 ] = transitionState ;
2026-08-12 06:57:52 +00:00
obj4 [ 1 ] = transitionState ( sharedValue [ 10 ] ) . TransitionStates ;
2026-07-29 08:29:29 +00:00
obj4 [ 2 ] = tmp ;
2026-08-12 06:57:52 +00:00
obj4 [ 3 ] = transitionState ( sharedValue [ 7 ] ) . runOnJS ;
2026-07-29 08:29:29 +00:00
obj4 [ 4 ] = cleanUp ;
fn . __closure = obj4 ;
2026-07-20 16:05:17 +00:00
fn . __workletHash = 9409925192880 ;
2026-08-24 06:08:38 +00:00
fn . __initData = closure_1_19 ;
obj3 [ 0 ] = obj9 . withSpring ( num2 , closure_1_10 , "animate-always" , fn ) ;
2026-07-29 08:29:29 +00:00
items [ 2 ] = obj3 ;
obj [ 1 ] = items ;
2026-08-12 06:57:52 +00:00
const obj7 = transitionState ( sharedValue [ 8 ] ) ;
2026-08-24 06:08:38 +00:00
const tmp6 = closure_1_10 ;
2026-07-29 08:29:29 +00:00
if ( tmp ) {
num = obj . get ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
obj [ 2 ] = transitionState ( sharedValue [ 8 ] ) . withSpring ( num , tmp6 , "animate-always" ) ;
2026-07-20 16:05:17 +00:00
return obj ;
}
2026-07-23 10:11:24 +00:00
obj = { translateX : 0 , translateY : 0 } ;
2026-07-20 16:05:17 +00:00
} ;
2026-08-12 06:57:52 +00:00
obj = { isFolder : tmp9 , visible : sharedValue , withSpring : tmp2 ( tmp3 [ 8 ] ) . withSpring , DRAG_SPRING_PHYSICS : closure_10 , transitionState , TransitionStates : tmp2 ( tmp3 [ 10 ] ) . TransitionStates , runOnJS : tmp2 ( tmp3 [ 7 ] ) . runOnJS , cleanUp } ;
2026-07-20 16:05:17 +00:00
fn . __closure = obj ;
fn . __workletHash = 13465198693221 ;
2026-08-12 06:57:52 +00:00
fn . __initData = closure_18 ;
const animatedStyle = transitionState ( sharedValue [ 7 ] ) . useAnimatedStyle ( fn ) ;
2026-07-20 16:05:17 +00:00
const effect = importAllResult . useEffect ( ( ) = > {
let num = 1 ;
2026-08-12 06:57:52 +00:00
if ( transitionState === transitionState ( sharedValue [ 10 ] ) . TransitionStates . YEETED ) {
2026-07-20 16:05:17 +00:00
num = 0 ;
}
const result = sharedValue . set ( num ) ;
} ) ;
2026-07-23 10:11:24 +00:00
let items = [ tmp . animatedPreviewStyle , , ] ;
2026-07-20 16:05:17 +00:00
let prop = null ;
2026-08-12 06:57:52 +00:00
let tmp4Result = tmp4 ( tmp3 [ 9 ] ) ;
if ( isHomeDrawerEnabled ) {
prop = tmp5 . animatedPreviewStyleHome ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style : items , children : null } ;
2026-07-20 16:05:17 +00:00
items [ 1 ] = prop ;
items [ 2 ] = animatedStyle ;
2026-08-12 06:57:52 +00:00
if ( node . type === tmp8 . FOLDER ) {
2026-08-03 11:20:01 +00:00
obj1 = { id : null , expanded : null , color : null , name : null , childNodes : null , isDragPreview : true , hideExpandedChildren : null } ;
2026-08-12 06:57:52 +00:00
( { id : obj8 [ 0 ] , expanded : obj8 [ 1 ] , color : obj8 [ 2 ] , name : obj8 [ 3 ] , children : obj8 [ 4 ] } = node ) ;
obj1 [ 6 ] = ! isHomeDrawerEnabled ;
let tmp12Result = tmp12 ( tmp4 ( tmp3 [ 13 ] ) , obj1 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-08-12 06:57:52 +00:00
obj2 = { guildId : null , isDragPreview : true , hideExpandedChildren : null } ;
2026-07-29 08:29:29 +00:00
obj2 [ 0 ] = node . id ;
2026-08-12 06:57:52 +00:00
let tmp16 = ! isHomeDrawerEnabled ;
tmp4Result = tmp4 ( tmp3 [ 14 ] ) ;
if ( isHomeDrawerEnabled ) {
tmp16 = transitionState === tmp2 ( tmp3 [ 10 ] ) . TransitionStates . YEETED ;
}
obj2 [ 2 ] = tmp16 ;
tmp12Result = tmp12 ( tmp4Result , obj2 ) ;
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
obj [ 1 ] = tmp12Result ;
return < tmp4Result style = { items } > { null } < / tmp4Result > ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c3 = importAllResult ;
2026-08-12 06:57:52 +00:00
let closure_8 = createCacheKey . createStyles ( { dragPreview : { position : "absolute" , left : 0 } , animatedPreviewStyle : { position : "absolute" } , dragPreviewHome : { right : 0 } } ) ;
let closure_9 = createCacheKey . createStyles ( ( arg0 ) = > {
const transformOrigin = [ arg0 , "50%" , 0 ] ;
return { animatedPreviewStyleHome : { left : 0 , right : 0 , transformOrigin } } ;
} ) ;
let closure_10 = { mass : 0.5 , damping : 80 , stiffness : 320 } ;
let closure_11 = { code : "function GuildsBarDragPreviewTsx1(){const{scrollPosition,dragRegion,listInsets}=this.__closure;return Math.max(scrollPosition.get()<dragRegion.get().min?dragRegion.get().min-scrollPosition.get():0,listInsets.get().start);}" } ;
let closure_12 = { code : "function GuildsBarDragPreviewTsx2(){const{scrollPosition,windowSize,listInsets,dragRegion,draggedHeight}=this.__closure;return Math.min(scrollPosition.get()+(windowSize-listInsets.get().end)>dragRegion.get().max?dragRegion.get().max-draggedHeight-scrollPosition.get():windowSize-listInsets.get().end-draggedHeight,windowSize-listInsets.get().end-draggedHeight);}" } ;
let closure_13 = { code : "function GuildsBarDragPreviewTsx3(){const{dropPosition,scrollPosition,gestureState,draggedHeight,minY,maxY,windowSize,withSpring,DRAG_SPRING_PHYSICS,runOnJS,dropComplete}=this.__closure;let translateY=function(){if(dropPosition!=null){return dropPosition-scrollPosition.get();}return gestureState.get().absoluteY-draggedHeight/2;}();if(gestureState.get().mode!=null&&dropPosition==null){translateY=Math.min(Math.max(translateY,minY.get()),maxY.get());}else{translateY=Math.max(-draggedHeight,Math.min(translateY,windowSize));}return{top:withSpring(translateY,DRAG_SPRING_PHYSICS,'animate-always',function(finished){if(finished&&dropPosition!=null){runOnJS(dropComplete)();}})};}" } ;
let closure_14 = { code : "function GuildsBarDragPreviewTsx4(finished){const{dropPosition,runOnJS,dropComplete}=this.__closure;if(finished&&dropPosition!=null){runOnJS(dropComplete)();}}" } ;
let closure_18 = { code : "function GuildsBarDragPreviewTsx5(){const{isFolder,visible,withSpring,DRAG_SPRING_PHYSICS,transitionState,TransitionStates,runOnJS,cleanUp}=this.__closure;const targetScale=function(){if(isFolder){return visible.get()===1?1:0.3;}return visible.get()===1?1:0.33;}();const{translateX:translateX,translateY:translateY}=function(){if(isFolder){return{translateX:0,translateY:0};}if(visible.get()===1){return{translateX:0,translateY:0};}return{translateX:10,translateY:-10};}();return{zIndex:isFolder?0:1,transform:[{translateY:withSpring(translateY,DRAG_SPRING_PHYSICS,'animate-always')},{translateX:withSpring(translateX,DRAG_SPRING_PHYSICS,'animate-always')},{scale:withSpring(targetScale,DRAG_SPRING_PHYSICS,'animate-always',function(finished){if(finished&&transitionState===TransitionStates.YEETED&&isFolder){runOnJS(cleanUp)();}})}],opacity:withSpring(isFolder?visible.get():1,DRAG_SPRING_PHYSICS,'animate-always')};}" } ;
let closure_19 = { code : "function GuildsBarDragPreviewTsx6(finished){const{transitionState,TransitionStates,isFolder,runOnJS,cleanUp}=this.__closure;if(finished&&transitionState===TransitionStates.YEETED&&isFolder){runOnJS(cleanUp)();}}" } ;
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult . memo ( function GuildsBarDragPreview() {
const tmp = callback ( ( arg0 ) = > {
( { dragSpecs , overSpecs , gestureState , scrollPosition , dragRegion , windowSize , dropComplete , listInsets , dropSpecs } = arg0 ) ;
if ( null != dropSpecs ) {
const overState = dropSpecs . overState ;
2026-07-29 08:29:29 +00:00
let obj = { draggedNode : null , draggedHeight : null , overState : null , overNode : null , dropPosition : null , gestureState : null , scrollPosition : null , dragRegion : null , windowSize : null , dropComplete : null , listInsets : null } ;
( { dragNode : obj2 [ 0 ] , itemSize : obj2 [ 1 ] } = dropSpecs ) ;
obj [ 2 ] = overState ;
2026-07-20 16:05:17 +00:00
let overNode ;
if ( overState . startsWith ( "convert" ) ) {
overNode = dropSpecs . overNode ;
}
2026-07-29 08:29:29 +00:00
obj [ 3 ] = overNode ;
obj [ 4 ] = dropSpecs . dropPosition ;
obj [ 5 ] = gestureState ;
obj [ 6 ] = scrollPosition ;
obj [ 7 ] = dragRegion ;
obj [ 8 ] = windowSize ;
obj [ 9 ] = dropComplete ;
obj [ 10 ] = listInsets ;
2026-07-20 16:05:17 +00:00
return obj ;
} else {
if ( null != dragSpecs ) {
if ( null != overSpecs ) {
const state = overSpecs . state ;
2026-09-02 09:53:35 +00:00
obj = { draggedNode : null , draggedHeight : null , overState : null , overNode : null , dropPosition : "o" , gestureState : true , scrollPosition : "light-content" , dragRegion : null , windowSize : "PAYPAL_POPUP_OPEN_FAILED" , dropComplete : "PayPal popup failed to open, make sure to tokenize in response to a user action." , listInsets : "text-md/semibold" } ;
2026-07-29 08:29:29 +00:00
( { node : obj [ 0 ] , itemSize : obj [ 1 ] } = dragSpecs ) ;
obj [ 2 ] = state ;
2026-07-20 16:05:17 +00:00
let node ;
if ( state . startsWith ( "convert" ) ) {
node = overSpecs . node ;
}
2026-07-29 08:29:29 +00:00
obj [ 3 ] = node ;
obj [ 5 ] = gestureState ;
obj [ 6 ] = scrollPosition ;
obj [ 7 ] = dragRegion ;
obj [ 8 ] = windowSize ;
obj [ 9 ] = dropComplete ;
obj [ 10 ] = listInsets ;
2026-07-20 16:05:17 +00:00
return obj ;
}
}
return null ;
}
2026-08-24 06:08:38 +00:00
} , isIterable . shallow ) ;
2026-07-20 16:05:17 +00:00
let tmp2 = null ;
if ( null != tmp ) {
2026-07-23 10:11:24 +00:00
let obj = { } ;
2026-07-20 16:05:17 +00:00
const merged = Object . assign ( tmp ) ;
2026-07-23 10:11:24 +00:00
tmp2 = < PreviewItem / > ;
2026-07-20 16:05:17 +00:00
}
return tmp2 ;
} ) ;
2026-08-24 06:08:38 +00:00
let result = require ( "set" ) . fileFinishedImporting ( "modules/guilds_bar/native/GuildsBarDragPreview.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default memoResult ;