@tamagui/popper 2.7.7 → 3.0.0-beta.643.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"names":["flushSync","useComposedRefs","isWeb","useIsomorphicLayoutEffect","LayoutMeasurementController","View","createStyledContext","getVariableValue","registerLayoutNode","styled","FloatingOverrideContext","arrow","flip","getOverflowAncestors","offset","platform","shift","size","useFloating","getSpace","YStack","startTransition","React","jsx","PopperContextFast","PopperPositionContext","useStyledContext","usePopperContext","Provider","PopperProviderFast","PopperContextSlow","usePopperContextSlow","PopperProviderSlow","PopperProvider","scope","children","context","fns","useRef","current","slowContext","useState","refs","triggerElements","update","a","getReferenceProps","p","onHoverReference","e","onLeaveReference","checkFloating","setupOptions","setupPopper","options","Object","assign","getSideAndAlignFromPlacement","placement","side","align","split","transformOriginMiddleware","name","fn","data","rects","middlewareData","isArrowHidden","centerOffset","arrowWidth","arrowHeight","placedSide","placedAlign","noArrowAlign","start","center","end","arrowXCenter","x","arrowYCenter","y","floating","height","width","tamaguiAutoUpdate","reference","rafId","requestAnimationFrame","cleanups","cancelAnimationFrame","HTMLElement","push","ResizeObserver","lastWidth","lastHeight","ro","entries","entry","length","contentRect","observe","disconnect","ancestors","Element","uniqueAncestors","Set","ancestor","addEventListener","passive","window","removeEventListener","forEach","Popper","props","size$1","strategy","stayInFrame","allowFlip","offset$1","disableRTL","resize","passThrough","open","arrowEl","setArrow","arrowSize","setArrowSize","offsetOptions","floatingStyle","isOpen","middlewareRef","padding","mainAxis","crossAxis","element","apply","availableHeight","availableWidth","maxHeight","maxWidth","floatingChild","firstChild","style","elements","anchorWidth","anchorHeight","contentStyle","setProperty","filter","Boolean","sameScrollView","whileElementsMounted","isRTL","middleware","useMemo","og","getFloatingProps","props2","JSON","stringify","arrowRef","arrowStyle","onArrowSize","hasFloating","transformOrigin","value","PopperAnchor","styleable","PopperAnchor2","forwardedRef","virtualRef","rest","ref","triggerId","useId","useEffect","el","add","delete","setReference","refProps","safeSetReference","useCallback","node","shouldHandleInHover","composedRefs","onMouseEnter","currentTarget","onPointerEnter","nativeEvent","onMouseLeave","PopperContentFrame","variants","unstyled","true","...size","val","tokens","space","borderRadius","radius","PopperContent","forwardRef","PopperContent2","isAnimatePosControlled","animatePosition","enableAnimationForPositionChange","animatePos","isPositioned","updateRef","lastNodeRef","safeSetFloating","isNewNode","setFloating","ourNode","contentRefs","needsMeasure","setNeedsMeasure","hasBeenPositioned","lastGoodPosition","brieflyZero","effectiveX","effectiveY","hide","disableAnimationProp","disableAnimation","setDisableAnimation","frameProps","top","left","position","opacity","transition","animateOnly","animatePresence","floatingProps","transformOriginStyle","disable","direction","PopperArrowFrame","false","borderColor","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","PopperArrowOuterFrame","zIndex","pointerEvents","overflow","alignItems","justifyContent","opposites","right","bottom","PopperArrow","PopperArrow2","propsIn","sizeProp","borderWidth","arrowProps","sizeVal","bounds","Math","max","arrowPositioned","primaryPlacement","innerArrowStyle","isVertical","oppSide","rotate","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],"sources":["Popper.mjs"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createStyledContext, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSpace } from \"@tamagui/get-token\";\nimport { YStack } from \"@tamagui/stacks\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nconst PopperContextFast = createStyledContext({}, \"Popper__\");\nconst PopperPositionContext = createStyledContext;\nconst { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nconst PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nconst { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nconst PopperProvider = ({ scope, children, ...context }) => {\n\tconst fns = React.useRef(context);\n\tfns.current = context;\n\tconst [slowContext] = React.useState(() => ({\n\t\trefs: context.refs,\n\t\ttriggerElements: context.triggerElements,\n\t\tupdate(...a) {\n\t\t\tfns.current.update(...a);\n\t\t},\n\t\tgetReferenceProps(p) {\n\t\t\treturn fns.current.getReferenceProps?.(p);\n\t\t},\n\t\tonHoverReference(e) {\n\t\t\tfns.current.onHoverReference?.(e);\n\t\t},\n\t\tonLeaveReference() {\n\t\t\tfns.current.onLeaveReference?.();\n\t\t}\n\t}));\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst checkFloating = void 0;\nconst setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction getSideAndAlignFromPlacement(placement) {\n\tconst [side, align = \"center\"] = placement.split(\"-\");\n\treturn [side, align];\n}\nconst transformOriginMiddleware = (options) => ({\n\tname: \"transformOrigin\",\n\toptions,\n\tfn(data) {\n\t\tconst { placement, rects, middlewareData } = data;\n\t\tconst isArrowHidden = middlewareData.arrow?.centerOffset !== 0;\n\t\tconst arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n\t\tconst arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\t\tconst [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n\t\tconst noArrowAlign = {\n\t\t\tstart: \"0%\",\n\t\t\tcenter: \"50%\",\n\t\t\tend: \"100%\"\n\t\t}[placedAlign];\n\t\tconst arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n\t\tconst arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\t\tlet x = \"\";\n\t\tlet y = \"\";\n\t\tif (placedSide === \"bottom\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${-arrowHeight}px`;\n\t\t} else if (placedSide === \"top\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${rects.floating.height + arrowHeight}px`;\n\t\t} else if (placedSide === \"right\") {\n\t\t\tx = `${-arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t} else if (placedSide === \"left\") {\n\t\t\tx = `${rects.floating.width + arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t}\n\t\treturn { data: {\n\t\t\tx,\n\t\t\ty\n\t\t} };\n\t}\n});\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tlet rafId = requestAnimationFrame(() => {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tconst cleanups = [() => {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tlet lastWidth = -1;\n\t\tlet lastHeight = -1;\n\t\tconst ro = new ResizeObserver((entries) => {\n\t\t\tconst entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tconst { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(() => ro.disconnect());\n\t}\n\tconst ancestors = [...reference instanceof Element ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tconst uniqueAncestors = [...new Set(ancestors)];\n\tfor (const ancestor of uniqueAncestors) ancestor.addEventListener(\"scroll\", update, { passive: true });\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(() => {\n\t\tfor (const ancestor of uniqueAncestors) ancestor.removeEventListener(\"scroll\", update);\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn () => cleanups.forEach((fn) => fn());\n}\nfunction Popper(props) {\n\tconst { children, size: size$1, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tconst [arrowEl, setArrow] = React.useState(null);\n\tconst [arrowSize, setArrowSize] = React.useState(0);\n\tconst offsetOptions = offset$1 ?? arrowSize;\n\tconst floatingStyle = React.useRef({});\n\tconst isOpen = passThrough ? false : open ?? true;\n\tconst middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...typeof stayInFrame === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tresize ? size({\n\t\t\tpadding: typeof stayInFrame === \"object\" ? stayInFrame.padding : 10,\n\t\t\tapply({ availableHeight, availableWidth }) {\n\t\t\t\tif (passThrough) return;\n\t\t\t\tObject.assign(floatingStyle.current, {\n\t\t\t\t\tmaxHeight: `${availableHeight}px`,\n\t\t\t\t\tmaxWidth: `${availableWidth}px`\n\t\t\t\t});\n\t\t\t\tconst floatingChild = floating.refs.floating.current?.firstChild;\n\t\t\t\tif (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);\n\t\t\t},\n\t\t\t...typeof resize === \"object\" && resize\n\t\t}) : null,\n\t\tsize({ apply({ elements, rects, availableWidth, availableHeight }) {\n\t\t\tconst { width: anchorWidth, height: anchorHeight } = rects.reference;\n\t\t\tconst contentStyle = elements.floating.style;\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-width\", `${availableWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-height\", `${availableHeight}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-width\", `${anchorWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-height\", `${anchorHeight}px`);\n\t\t} }),\n\t\ttransformOriginMiddleware({\n\t\t\tarrowHeight: arrowSize,\n\t\t\tarrowWidth: arrowSize\n\t\t})\n\t].filter(Boolean);\n\tlet floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: disableRTL ?? setupOptions.disableRTL ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tfloating = React.useMemo(() => {\n\t\tconst og = floating.getFloatingProps;\n\t\tif (resize && og) floating.getFloatingProps = (props2) => {\n\t\t\treturn og({\n\t\t\t\t...props2,\n\t\t\t\tstyle: {\n\t\t\t\t\t...props2.style,\n\t\t\t\t\t...floatingStyle.current\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\treturn floating;\n\t}, [floating, resize ? JSON.stringify(resize) : null]);\n\tconst { middlewareData } = floating;\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(() => {\n\t\t\treturn {\n\t\t\t\tsize: size$1,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: middlewareData.checkFloating?.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize$1,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nconst PopperAnchor = YStack.styleable(function PopperAnchor2(props, forwardedRef) {\n\tconst { virtualRef, scope, ...rest } = props;\n\tconst context = usePopperContextSlow(scope);\n\tconst { getReferenceProps, refs, update } = context;\n\tconst ref = React.useRef(null);\n\tconst triggerId = React.useId();\n\tReact.useEffect(() => {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!(ref.current instanceof Element)) return;\n\t\tconst el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn () => {\n\t\t\tcontext.triggerElements?.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(() => {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tconst refProps = getReferenceProps?.({\n\t\t...rest,\n\t\tref\n\t}) || null;\n\tconst safeSetReference = React.useCallback((node) => {\n\t\tstartTransition(() => {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tconst shouldHandleInHover = isWeb && scope;\n\tconst composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: (e) => {\n\t\t\t\tconst el = e.currentTarget ?? ref.current;\n\t\t\t\tif (el instanceof HTMLElement) {\n\t\t\t\t\tflushSync(() => refs.setReference(el));\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\trefProps.onPointerEnter?.(e);\n\t\t\t\t\tcontext.onHoverReference?.(e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: (e) => {\n\t\t\t\tcontext.onLeaveReference?.();\n\t\t\t\trefProps?.onMouseLeave?.(e);\n\t\t\t}\n\t\t}\n\t});\n});\nconst PopperContentFrame = styled(YStack, {\n\tname: \"PopperContent\",\n\tvariants: {\n\t\tunstyled: { true: {} },\n\t\tsize: { \"...size\": (val, { tokens }) => {\n\t\t\treturn {\n\t\t\t\tpadding: tokens.space[val],\n\t\t\t\tborderRadius: tokens.radius[val]\n\t\t\t};\n\t\t} }\n\t}\n});\nconst PopperContent = React.forwardRef(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props || \"enableAnimationForPositionChange\" in props;\n\tconst { scope, animatePosition, enableAnimationForPositionChange, children, passThrough, unstyled, ...rest } = props;\n\tconst animatePos = animatePosition ?? enableAnimationForPositionChange;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, size, isPositioned, transformOrigin, update } = context;\n\tconst updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tconst lastNodeRef = React.useRef(null);\n\tconst safeSetFloating = React.useCallback((node) => {\n\t\tconst isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) updateRef.current?.();\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tconst ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tconst contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tconst [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(() => {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tconst hasBeenPositioned = React.useRef(false);\n\tconst lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tconst brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tconst effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tconst effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tconst hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tconst disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tconst [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(() => {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tconst frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tconst { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tconst transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\tunstyled,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\tsize,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nconst PopperArrowFrame = styled(YStack, {\n\tname: \"PopperArrow\",\n\tvariants: { unstyled: { false: {\n\t\tborderColor: \"$borderColor\",\n\t\tbackgroundColor: \"$background\",\n\t\tposition: \"relative\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nconst PopperArrowOuterFrame = styled(YStack, {\n\tname: \"PopperArrowOuter\",\n\tvariants: { unstyled: { false: {\n\t\tposition: \"absolute\",\n\t\tzIndex: 1e6,\n\t\tpointerEvents: \"none\",\n\t\toverflow: \"hidden\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = React.forwardRef(function PopperArrow2(propsIn, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tconst { scope, animatePosition, transition, ...rest } = propsIn;\n\tconst { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tconst context = usePopperContext(scope);\n\tconst sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSpace(sizeProp ?? context.size, {\n\t\tshift: -2,\n\t\tbounds: [2]\n\t}));\n\tconst size = Math.max(0, +sizeVal);\n\tconst { placement } = context;\n\tconst refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tconst x = context.arrowStyle?.x || 0;\n\tconst y = context.arrowStyle?.y || 0;\n\tconst arrowPositioned = context.arrowStyle != null;\n\tconst primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tconst arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tconst innerArrowStyle = {};\n\tconst isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tconst oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tcontext.onArrowSize?.(size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":"AAAA,SAASA,SAAS,QAAQ,WAAW;AACrC,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,KAAK,EAAEC,yBAAyB,QAAQ,oBAAoB;AACrE,SAASC,2BAA2B,EAAEC,IAAI,EAAEC,mBAAmB,EAAEC,gBAAgB,EAAEC,kBAAkB,EAAEC,MAAM,QAAQ,eAAe;AACpI,SAASC,uBAAuB,EAAEC,KAAK,EAAEC,IAAI,EAAEC,oBAAoB,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAEC,WAAW,QAAQ,mBAAmB;AAC1I,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,GAAG,QAAQ,mBAAmB;AAEvC,MAAMC,iBAAiB,GAAGlB,mBAAmB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;AAC7D,MAAMmB,qBAAqB,GAAGnB,mBAAmB;AACjD,MAAM;EAAEoB,g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AAEG,kBAAkB,EAAEqB,WAAW,EAAE1B,gBAAgB,EAAEI,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"Popper.js","names":[],"sources":["esm/Popper.js"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nconst PopperContextFast = createStyledContext({}, \"Popper__\");\nconst PopperPositionContext = createStyledContext;\nconst { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nconst PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nconst { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nconst PopperProvider = ({ scope, children, ...context }) => {\n\tconst fns = React.useRef(context);\n\tfns.current = context;\n\tconst [slowContext] = React.useState(() => ({\n\t\trefs: context.refs,\n\t\ttriggerElements: context.triggerElements,\n\t\tupdate(...a) {\n\t\t\tfns.current.update(...a);\n\t\t},\n\t\tgetReferenceProps(p) {\n\t\t\treturn fns.current.getReferenceProps?.(p);\n\t\t},\n\t\tonHoverReference(e) {\n\t\t\tfns.current.onHoverReference?.(e);\n\t\t},\n\t\tonLeaveReference() {\n\t\t\tfns.current.onLeaveReference?.();\n\t\t}\n\t}));\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst checkFloating = void 0;\nconst setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction getSideAndAlignFromPlacement(placement) {\n\tconst [side, align = \"center\"] = placement.split(\"-\");\n\treturn [side, align];\n}\nconst transformOriginMiddleware = (options) => ({\n\tname: \"transformOrigin\",\n\toptions,\n\tfn(data) {\n\t\tconst { placement, rects, middlewareData } = data;\n\t\tconst isArrowHidden = middlewareData.arrow?.centerOffset !== 0;\n\t\tconst arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n\t\tconst arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\t\tconst [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n\t\tconst noArrowAlign = {\n\t\t\tstart: \"0%\",\n\t\t\tcenter: \"50%\",\n\t\t\tend: \"100%\"\n\t\t}[placedAlign];\n\t\tconst arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n\t\tconst arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\t\tlet x = \"\";\n\t\tlet y = \"\";\n\t\tif (placedSide === \"bottom\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${-arrowHeight}px`;\n\t\t} else if (placedSide === \"top\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${rects.floating.height + arrowHeight}px`;\n\t\t} else if (placedSide === \"right\") {\n\t\t\tx = `${-arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t} else if (placedSide === \"left\") {\n\t\t\tx = `${rects.floating.width + arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t}\n\t\treturn { data: {\n\t\t\tx,\n\t\t\ty\n\t\t} };\n\t}\n});\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tlet rafId = requestAnimationFrame(() => {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tconst cleanups = [() => {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tlet lastWidth = -1;\n\t\tlet lastHeight = -1;\n\t\tconst ro = new ResizeObserver((entries) => {\n\t\t\tconst entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tconst { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(() => ro.disconnect());\n\t}\n\tconst ancestors = [...reference instanceof Element ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tconst uniqueAncestors = [...new Set(ancestors)];\n\tfor (const ancestor of uniqueAncestors) ancestor.addEventListener(\"scroll\", update, { passive: true });\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(() => {\n\t\tfor (const ancestor of uniqueAncestors) ancestor.removeEventListener(\"scroll\", update);\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn () => cleanups.forEach((fn) => fn());\n}\nfunction Popper(props) {\n\tconst { children, size: size$1, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tconst [arrowEl, setArrow] = React.useState(null);\n\tconst [arrowSize, setArrowSize] = React.useState(0);\n\tconst offsetOptions = offset$1 ?? arrowSize;\n\tconst floatingStyle = React.useRef({});\n\tconst isOpen = passThrough ? false : open ?? true;\n\tconst middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...typeof stayInFrame === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tresize ? size({\n\t\t\tpadding: typeof stayInFrame === \"object\" ? stayInFrame.padding : 10,\n\t\t\tapply({ availableHeight, availableWidth }) {\n\t\t\t\tif (passThrough) return;\n\t\t\t\tObject.assign(floatingStyle.current, {\n\t\t\t\t\tmaxHeight: `${availableHeight}px`,\n\t\t\t\t\tmaxWidth: `${availableWidth}px`\n\t\t\t\t});\n\t\t\t\tconst floatingChild = floating.refs.floating.current?.firstChild;\n\t\t\t\tif (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);\n\t\t\t},\n\t\t\t...typeof resize === \"object\" && resize\n\t\t}) : null,\n\t\tsize({ apply({ elements, rects, availableWidth, availableHeight }) {\n\t\t\tconst { width: anchorWidth, height: anchorHeight } = rects.reference;\n\t\t\tconst contentStyle = elements.floating.style;\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-width\", `${availableWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-height\", `${availableHeight}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-width\", `${anchorWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-height\", `${anchorHeight}px`);\n\t\t} }),\n\t\ttransformOriginMiddleware({\n\t\t\tarrowHeight: arrowSize,\n\t\t\tarrowWidth: arrowSize\n\t\t})\n\t].filter(Boolean);\n\tlet floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: disableRTL ?? setupOptions.disableRTL ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tfloating = React.useMemo(() => {\n\t\tconst og = floating.getFloatingProps;\n\t\tif (resize && og) floating.getFloatingProps = (props2) => {\n\t\t\treturn og({\n\t\t\t\t...props2,\n\t\t\t\tstyle: {\n\t\t\t\t\t...props2.style,\n\t\t\t\t\t...floatingStyle.current\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\treturn floating;\n\t}, [floating, resize ? JSON.stringify(resize) : null]);\n\tconst { middlewareData } = floating;\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(() => {\n\t\t\treturn {\n\t\t\t\tsize: size$1,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: middlewareData.checkFloating?.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize$1,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nconst PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tconst { virtualRef, scope, ...rest } = props;\n\tconst context = usePopperContextSlow(scope);\n\tconst { getReferenceProps, refs, update } = context;\n\tconst ref = React.useRef(null);\n\tconst triggerId = React.useId();\n\tReact.useEffect(() => {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!(ref.current instanceof Element)) return;\n\t\tconst el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn () => {\n\t\t\tcontext.triggerElements?.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(() => {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tconst refProps = getReferenceProps?.({\n\t\t...rest,\n\t\tref\n\t}) || null;\n\tconst safeSetReference = React.useCallback((node) => {\n\t\tstartTransition(() => {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tconst shouldHandleInHover = isWeb && scope;\n\tconst composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: (e) => {\n\t\t\t\tconst el = e.currentTarget ?? ref.current;\n\t\t\t\tif (el instanceof HTMLElement) {\n\t\t\t\t\tflushSync(() => refs.setReference(el));\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\trefProps.onPointerEnter?.(e);\n\t\t\t\t\tcontext.onHoverReference?.(e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: (e) => {\n\t\t\t\tcontext.onLeaveReference?.();\n\t\t\t\trefProps?.onMouseLeave?.(e);\n\t\t\t}\n\t\t}\n\t});\n});\nconst PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nconst PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props;\n\tconst { scope, animatePosition, children, passThrough, ...rest } = props;\n\tconst animatePos = animatePosition;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tconst updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tconst lastNodeRef = React.useRef(null);\n\tconst safeSetFloating = React.useCallback((node) => {\n\t\tconst isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) updateRef.current?.();\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tconst ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tconst contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tconst [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(() => {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tconst hasBeenPositioned = React.useRef(false);\n\tconst lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tconst brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tconst effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tconst effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tconst hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tconst disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tconst [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(() => {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tconst frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tconst { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tconst transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nconst PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nconst PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tconst { scope, animatePosition, transition, ...rest } = propsIn;\n\tconst { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tconst context = usePopperContext(scope);\n\tconst sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size)) * .52 - 11.5;\n\tconst size = Math.max(0, +sizeVal);\n\tconst { placement } = context;\n\tconst refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tconst x = context.arrowStyle?.x || 0;\n\tconst y = context.arrowStyle?.y || 0;\n\tconst arrowPositioned = context.arrowStyle != null;\n\tconst primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tconst arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tconst innerArrowStyle = {};\n\tconst isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tconst oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tcontext.onArrowSize?.(size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;AAUA,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,UAAU;AAC5D,MAAM,wBAAwB;AAC9B,MAAM,EAAE,kBAAkB,kBAAkB,UAAU,uBAAuB;AAC7E,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,cAAc;AAChE,MAAM,EAAE,kBAAkB,sBAAsB,UAAU,uBAAuB;AACjF,MAAM,kBAAkB,EAAE,OAAO,UAAU,GAAG,cAAc;CAC3D,MAAM,MAAM,MAAM,OAAO,OAAO;CAChC,IAAI,UAAU;CACd,MAAM,CAAC,eAAe,MAAM,gBAAgB;EAC3C,MAAM,QAAQ;EACd,iBAAiB,QAAQ;EACzB,OAAO,GAAG,GAAG;GACZ,IAAI,QAAQ,OAAO,GAAG,CAAC;EACxB;EACA,kBAAkB,GAAG;GACpB,OAAO,IAAI,QAAQ,oBAAoB,CAAC;EACzC;EACA,iBAAiB,GAAG;GACnB,IAAI,QAAQ,mBAAmB,CAAC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