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["webpack://_N_E/./node_modules/react-tiny-popover/dist/ArrowContainer.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/Popover.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/PopoverPortal.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/useArrowContainer.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/useElementRef.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/useMemoizedArray.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/usePopover.js","webpack://_N_E/./node_modules/react-tiny-popover/dist/util.js"],"sourcesContent":["\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ArrowContainer = void 0;\nvar jsx_runtime_1 = require(\"react/jsx-runtime\");\nvar react_1 = require(\"react\");\nvar useArrowContainer_1 = require(\"./useArrowContainer\");\nvar ArrowContainer = function (_a) {\n    var childRect = _a.childRect, popoverRect = _a.popoverRect, position = _a.position, arrowColor = _a.arrowColor, arrowSize = _a.arrowSize, arrowClassName = _a.arrowClassName, externalArrowStyle = _a.arrowStyle, className = _a.className, children = _a.children, externalArrowContainerStyle = _a.style;\n    var _b = useArrowContainer_1.useArrowContainer({\n        childRect: childRect,\n        popoverRect: popoverRect,\n        position: position,\n        arrowColor: arrowColor,\n        arrowSize: arrowSize,\n    }), arrowContainerStyle = _b.arrowContainerStyle, arrowStyle = _b.arrowStyle;\n    var mergedContainerStyle = react_1.useMemo(function () { return (__assign(__assign({}, arrowContainerStyle), externalArrowContainerStyle)); }, [arrowContainerStyle, externalArrowContainerStyle]);\n    var mergedArrowStyle = react_1.useMemo(function () { return (__assign(__assign({}, arrowStyle), externalArrowStyle)); }, [arrowStyle, externalArrowStyle]);\n    return (jsx_runtime_1.jsxs(\"div\", __assign({ className: className, style: mergedContainerStyle }, { children: [jsx_runtime_1.jsx(\"div\", { style: mergedArrowStyle, className: arrowClassName }, void 0), children] }), void 0));\n};\nexports.ArrowContainer = ArrowContainer;\n//# sourceMappingURL=ArrowContainer.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Popover = exports.usePopover = exports.ArrowContainer = exports.useArrowContainer = void 0;\nvar jsx_runtime_1 = require(\"react/jsx-runtime\");\nvar react_1 = require(\"react\");\nvar PopoverPortal_1 = require(\"./PopoverPortal\");\nvar util_1 = require(\"./util\");\nvar usePopover_1 = require(\"./usePopover\");\nObject.defineProperty(exports, \"usePopover\", { enumerable: true, get: function () { return usePopover_1.usePopover; } });\nvar useMemoizedArray_1 = require(\"./useMemoizedArray\");\nvar useArrowContainer_1 = require(\"./useArrowContainer\");\nObject.defineProperty(exports, \"useArrowContainer\", { enumerable: true, get: function () { return useArrowContainer_1.useArrowContainer; } });\nvar ArrowContainer_1 = require(\"./ArrowContainer\");\nObject.defineProperty(exports, \"ArrowContainer\", { enumerable: true, get: function () { return ArrowContainer_1.ArrowContainer; } });\nvar DEFAULT_POSITIONS = ['top', 'left', 'right', 'bottom'];\nvar PopoverInternal = react_1.forwardRef(function (_a, externalRef) {\n    var isOpen = _a.isOpen, children = _a.children, content = _a.content, _b = _a.positions, externalPositions = _b === void 0 ? DEFAULT_POSITIONS : _b, _c = _a.align, align = _c === void 0 ? 'center' : _c, _d = _a.padding, padding = _d === void 0 ? 0 : _d, _e = _a.reposition, reposition = _e === void 0 ? true : _e, _f = _a.parentElement, parentElement = _f === void 0 ? window.document.body : _f, _g = _a.boundaryElement, boundaryElement = _g === void 0 ? parentElement : _g, _h = _a.containerClassName, containerClassName = _h === void 0 ? 'react-tiny-popover-container' : _h, containerStyle = _a.containerStyle, contentLocation = _a.contentLocation, _j = _a.boundaryInset, boundaryInset = _j === void 0 ? 0 : _j, onClickOutside = _a.onClickOutside, _k = _a.clickOutsideCapture, clickOutsideCapture = _k === void 0 ? false : _k;\n    var positions = useMemoizedArray_1.useMemoizedArray(externalPositions);\n    // TODO: factor prevs out into a custom prevs hook\n    var prevIsOpen = react_1.useRef(false);\n    var prevPositions = react_1.useRef();\n    var prevContentLocation = react_1.useRef();\n    var prevReposition = react_1.useRef(reposition);\n    var childRef = react_1.useRef();\n    var _l = react_1.useState({\n        align: align,\n        nudgedLeft: 0,\n        nudgedTop: 0,\n        position: positions[0],\n        padding: padding,\n        childRect: util_1.EMPTY_CLIENT_RECT,\n        popoverRect: util_1.EMPTY_CLIENT_RECT,\n        parentRect: util_1.EMPTY_CLIENT_RECT,\n        boundaryRect: util_1.EMPTY_CLIENT_RECT,\n        boundaryInset: boundaryInset,\n        violations: util_1.EMPTY_CLIENT_RECT,\n        hasViolations: false,\n    }), popoverState = _l[0], setPopoverState = _l[1];\n    var onPositionPopover = react_1.useCallback(function (popoverState) { return setPopoverState(popoverState); }, []);\n    var _m = usePopover_1.usePopover({\n        isOpen: isOpen,\n        childRef: childRef,\n        containerClassName: containerClassName,\n        parentElement: parentElement,\n        boundaryElement: boundaryElement,\n        contentLocation: contentLocation,\n        positions: positions,\n        align: align,\n        padding: padding,\n        boundaryInset: boundaryInset,\n        reposition: reposition,\n        onPositionPopover: onPositionPopover,\n    }), positionPopover = _m.positionPopover, popoverRef = _m.popoverRef, scoutRef = _m.scoutRef;\n    react_1.useLayoutEffect(function () {\n        var shouldUpdate = true;\n        var updatePopover = function () {\n            var _a, _b;\n            if (isOpen && shouldUpdate) {\n                var childRect = (_a = childRef === null || childRef === void 0 ? void 0 : childRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();\n                var popoverRect = (_b = popoverRef === null || popoverRef === void 0 ? void 0 : popoverRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();\n                if (childRect != null &&\n                    popoverRect != null &&\n                    (!util_1.rectsAreEqual(childRect, {\n                        top: popoverState.childRect.top,\n                        left: popoverState.childRect.left,\n                        width: popoverState.childRect.width,\n                        height: popoverState.childRect.height,\n                        bottom: popoverState.childRect.top + popoverState.childRect.height,\n                        right: popoverState.childRect.left + popoverState.childRect.width,\n                    }) ||\n                        popoverRect.width !== popoverState.popoverRect.width ||\n                        popoverRect.height !== popoverState.popoverRect.height ||\n                        popoverState.padding !== padding ||\n                        popoverState.align !== align ||\n                        positions !== prevPositions.current ||\n                        contentLocation !== prevContentLocation.current ||\n                        reposition !== prevReposition.current)) {\n                    positionPopover();\n                }\n                // TODO: factor prev checks out into the custom prevs hook\n                if (positions !== prevPositions.current) {\n                    prevPositions.current = positions;\n                }\n                if (contentLocation !== prevContentLocation.current) {\n                    prevContentLocation.current = contentLocation;\n                }\n                if (reposition !== prevReposition.current) {\n                    prevReposition.current = reposition;\n                }\n                if (shouldUpdate) {\n                    window.requestAnimationFrame(updatePopover);\n                }\n            }\n            prevIsOpen.current = isOpen;\n        };\n        window.requestAnimationFrame(updatePopover);\n        return function () {\n            shouldUpdate = false;\n        };\n    }, [\n        align,\n        contentLocation,\n        isOpen,\n        padding,\n        popoverRef,\n        popoverState.align,\n        popoverState.childRect.height,\n        popoverState.childRect.left,\n        popoverState.childRect.top,\n        popoverState.childRect.width,\n        popoverState.padding,\n        popoverState.popoverRect.height,\n        popoverState.popoverRect.width,\n        positionPopover,\n        positions,\n        reposition,\n    ]);\n    react_1.useEffect(function () {\n        var popoverElement = popoverRef.current;\n        Object.assign(popoverElement.style, containerStyle);\n        return function () {\n            Object.keys(containerStyle !== null && containerStyle !== void 0 ? containerStyle : {}).forEach(function (key) {\n                return delete popoverElement.style[key];\n            });\n        };\n    }, [containerStyle, isOpen, popoverRef]);\n    var handleOnClickOutside = react_1.useCallback(function (e) {\n        var _a, _b;\n        if (isOpen &&\n            !((_a = popoverRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) &&\n            !((_b = childRef.current) === null || _b === void 0 ? void 0 : _b.contains(e.target))) {\n            onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside(e);\n        }\n    }, [isOpen, onClickOutside, popoverRef]);\n    var handleWindowResize = react_1.useCallback(function () {\n        if (childRef.current) {\n            window.requestAnimationFrame(function () { return positionPopover(); });\n        }\n    }, [positionPopover]);\n    react_1.useEffect(function () {\n        var body = parentElement.ownerDocument.body;\n        body.addEventListener('click', handleOnClickOutside, clickOutsideCapture);\n        body.addEventListener('contextmenu', handleOnClickOutside, clickOutsideCapture);\n        body.addEventListener('resize', handleWindowResize);\n        return function () {\n            body.removeEventListener('click', handleOnClickOutside, clickOutsideCapture);\n            body.removeEventListener('contextmenu', handleOnClickOutside, clickOutsideCapture);\n            body.removeEventListener('resize', handleWindowResize);\n        };\n    }, [clickOutsideCapture, handleOnClickOutside, handleWindowResize, parentElement]);\n    var handleRef = react_1.useCallback(function (node) {\n        childRef.current = node;\n        if (externalRef != null) {\n            if (typeof externalRef === 'object') {\n                externalRef.current = node;\n            }\n            else if (typeof externalRef === 'function') {\n                externalRef(node);\n            }\n        }\n    }, [externalRef]);\n    var renderChild = function () {\n        return react_1.cloneElement(children, {\n            ref: handleRef,\n        });\n    };\n    var renderPopover = function () {\n        if (!isOpen)\n            return null;\n        return (jsx_runtime_1.jsx(PopoverPortal_1.PopoverPortal, __assign({ element: popoverRef.current, scoutElement: scoutRef.current, container: parentElement }, { children: typeof content === 'function' ? content(popoverState) : content }), void 0));\n    };\n    return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [renderChild(), renderPopover()] }, void 0));\n});\nexports.Popover = react_1.forwardRef(function (props, ref) {\n    if (typeof window === 'undefined')\n        return props.children;\n    return jsx_runtime_1.jsx(PopoverInternal, __assign({}, props, { ref: ref }), void 0);\n});\n//# sourceMappingURL=Popover.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PopoverPortal = void 0;\nvar react_1 = require(\"react\");\nvar react_dom_1 = require(\"react-dom\");\nvar PopoverPortal = function (_a) {\n    var container = _a.container, element = _a.element, scoutElement = _a.scoutElement, children = _a.children;\n    react_1.useLayoutEffect(function () {\n        container.appendChild(element);\n        container.appendChild(scoutElement);\n        return function () {\n            container.removeChild(element);\n            container.removeChild(scoutElement);\n        };\n    }, [container, element, scoutElement]);\n    return react_dom_1.createPortal(children, element);\n};\nexports.PopoverPortal = PopoverPortal;\n//# sourceMappingURL=PopoverPortal.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useArrowContainer = void 0;\nvar react_1 = require(\"react\");\nvar useArrowContainer = function (_a) {\n    var childRect = _a.childRect, popoverRect = _a.popoverRect, position = _a.position, arrowSize = _a.arrowSize, arrowColor = _a.arrowColor;\n    var arrowContainerStyle = react_1.useMemo(function () {\n        return ({\n            padding: arrowSize,\n        });\n    }, [arrowSize]);\n    var arrowStyle = react_1.useMemo(function () {\n        return (__assign({ position: 'absolute' }, (function () {\n            var arrowWidth = arrowSize * 2;\n            var top = childRect.top - popoverRect.top + childRect.height / 2 - arrowWidth / 2;\n            var left = childRect.left - popoverRect.left + childRect.width / 2 - arrowWidth / 2;\n            var lowerBound = arrowSize;\n            var leftUpperBound = popoverRect.width - arrowSize;\n            var topUpperBound = popoverRect.height - arrowSize;\n            left = left < lowerBound ? lowerBound : left;\n            left = left + arrowWidth > leftUpperBound ? leftUpperBound - arrowWidth : left;\n            top = top < lowerBound ? lowerBound : top;\n            top = top + arrowWidth > topUpperBound ? topUpperBound - arrowWidth : top;\n            top = Number.isNaN(top) ? 0 : top;\n            left = Number.isNaN(left) ? 0 : left;\n            switch (position) {\n                case 'right':\n                    return {\n                        borderTop: arrowSize + \"px solid transparent\",\n                        borderBottom: arrowSize + \"px solid transparent\",\n                        borderRight: arrowSize + \"px solid \" + arrowColor,\n                        left: 0,\n                        top: top,\n                    };\n                case 'left':\n                    return {\n                        borderTop: arrowSize + \"px solid transparent\",\n                        borderBottom: arrowSize + \"px solid transparent\",\n                        borderLeft: arrowSize + \"px solid \" + arrowColor,\n                        right: 0,\n                        top: top,\n                    };\n                case 'bottom':\n                    return {\n                        borderLeft: arrowSize + \"px solid transparent\",\n                        borderRight: arrowSize + \"px solid transparent\",\n                        borderBottom: arrowSize + \"px solid \" + arrowColor,\n                        top: 0,\n                        left: left,\n                    };\n                case 'top':\n                    return {\n                        borderLeft: arrowSize + \"px solid transparent\",\n                        borderRight: arrowSize + \"px solid transparent\",\n                        borderTop: arrowSize + \"px solid \" + arrowColor,\n                        bottom: 0,\n                        left: left,\n                    };\n                default:\n                    return {\n                        display: 'hidden',\n                    };\n            }\n        })()));\n    }, [\n        arrowColor,\n        arrowSize,\n        childRect.height,\n        childRect.left,\n        childRect.top,\n        childRect.width,\n        popoverRect.height,\n        popoverRect.left,\n        popoverRect.top,\n        popoverRect.width,\n        position,\n    ]);\n    return {\n        arrowContainerStyle: arrowContainerStyle,\n        arrowStyle: arrowStyle,\n    };\n};\nexports.useArrowContainer = useArrowContainer;\n//# sourceMappingURL=useArrowContainer.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useElementRef = void 0;\nvar react_1 = require(\"react\");\nvar util_1 = require(\"./util\");\nvar useElementRef = function (containerClassName, containerStyle) {\n    var ref = react_1.useRef();\n    var element = react_1.useMemo(function () { return util_1.createContainer(containerStyle, containerClassName); }, [containerClassName, containerStyle]);\n    ref.current = element;\n    return ref;\n};\nexports.useElementRef = useElementRef;\n//# sourceMappingURL=useElementRef.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useMemoizedArray = void 0;\nvar react_1 = require(\"react\");\nvar useMemoizedArray = function (externalArray) {\n    var prevArrayRef = react_1.useRef(externalArray);\n    var array = react_1.useMemo(function () {\n        if (prevArrayRef.current === externalArray)\n            return prevArrayRef.current;\n        if (prevArrayRef.current.length !== externalArray.length) {\n            prevArrayRef.current = externalArray;\n            return externalArray;\n        }\n        for (var i = 0; i < externalArray.length; i += 1) {\n            if (externalArray[i] !== prevArrayRef.current[i]) {\n                prevArrayRef.current = externalArray;\n                return externalArray;\n            }\n        }\n        return prevArrayRef.current;\n    }, [externalArray]);\n    return array;\n};\nexports.useMemoizedArray = useMemoizedArray;\n//# sourceMappingURL=useMemoizedArray.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.usePopover = void 0;\nvar react_1 = require(\"react\");\nvar util_1 = require(\"./util\");\nvar useElementRef_1 = require(\"./useElementRef\");\nvar POPOVER_STYLE = {\n    position: 'fixed',\n    overflow: 'visible',\n    top: '0px',\n    left: '0px',\n};\nvar SCOUT_STYLE = {\n    position: 'fixed',\n    top: '0px',\n    left: '0px',\n    width: '0px',\n    height: '0px',\n    visibility: 'hidden',\n};\nvar usePopover = function (_a) {\n    var isOpen = _a.isOpen, childRef = _a.childRef, positions = _a.positions, containerClassName = _a.containerClassName, parentElement = _a.parentElement, contentLocation = _a.contentLocation, align = _a.align, padding = _a.padding, reposition = _a.reposition, boundaryInset = _a.boundaryInset, boundaryElement = _a.boundaryElement, onPositionPopover = _a.onPositionPopover;\n    var popoverRef = useElementRef_1.useElementRef(containerClassName, POPOVER_STYLE);\n    var scoutRef = useElementRef_1.useElementRef('react-tiny-popover-scout', SCOUT_STYLE);\n    var positionPopover = react_1.useCallback(function (_a) {\n        var _b, _c;\n        var _d = _a === void 0 ? {} : _a, _e = _d.positionIndex, positionIndex = _e === void 0 ? 0 : _e, _f = _d.parentRect, parentRect = _f === void 0 ? parentElement.getBoundingClientRect() : _f, _g = _d.childRect, childRect = _g === void 0 ? (_b = childRef === null || childRef === void 0 ? void 0 : childRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect() : _g, _h = _d.scoutRect, scoutRect = _h === void 0 ? (_c = scoutRef === null || scoutRef === void 0 ? void 0 : scoutRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect() : _h, _j = _d.popoverRect, popoverRect = _j === void 0 ? popoverRef.current.getBoundingClientRect() : _j, _k = _d.boundaryRect, boundaryRect = _k === void 0 ? boundaryElement === parentElement\n            ? parentRect\n            : boundaryElement.getBoundingClientRect() : _k;\n        if (!childRect || !parentRect || !isOpen) {\n            return;\n        }\n        if (contentLocation) {\n            var _l = typeof contentLocation === 'function'\n                ? contentLocation({\n                    childRect: childRect,\n                    popoverRect: popoverRect,\n                    parentRect: parentRect,\n                    boundaryRect: boundaryRect,\n                    padding: padding,\n                    nudgedTop: 0,\n                    nudgedLeft: 0,\n                    boundaryInset: boundaryInset,\n                    violations: util_1.EMPTY_CLIENT_RECT,\n                    hasViolations: false,\n                })\n                : contentLocation, inputTop = _l.top, inputLeft = _l.left;\n            var left_1 = Math.round(parentRect.left + inputLeft - scoutRect.left);\n            var top_1 = Math.round(parentRect.top + inputTop - scoutRect.top);\n            popoverRef.current.style.transform = \"translate(\" + left_1 + \"px, \" + top_1 + \"px)\";\n            onPositionPopover({\n                childRect: childRect,\n                popoverRect: popoverRect,\n                parentRect: parentRect,\n                boundaryRect: boundaryRect,\n                padding: padding,\n                nudgedTop: 0,\n                nudgedLeft: 0,\n                boundaryInset: boundaryInset,\n                violations: util_1.EMPTY_CLIENT_RECT,\n                hasViolations: false,\n            });\n            return;\n        }\n        var isExhausted = positionIndex === positions.length;\n        var position = isExhausted ? positions[0] : positions[positionIndex];\n        var _m = util_1.getNewPopoverRect({\n            childRect: childRect,\n            popoverRect: popoverRect,\n            boundaryRect: boundaryRect,\n            position: position,\n            align: align,\n            padding: padding,\n            reposition: reposition,\n        }, boundaryInset), rect = _m.rect, boundaryViolation = _m.boundaryViolation;\n        if (boundaryViolation && reposition && !isExhausted) {\n            positionPopover({\n                positionIndex: positionIndex + 1,\n                childRect: childRect,\n                popoverRect: popoverRect,\n                parentRect: parentRect,\n                boundaryRect: boundaryRect,\n            });\n            return;\n        }\n        var top = rect.top, left = rect.left, width = rect.width, height = rect.height;\n        var shouldNudge = reposition && !isExhausted;\n        var _o = util_1.getNudgedPopoverRect(rect, boundaryRect, boundaryInset), nudgedLeft = _o.left, nudgedTop = _o.top;\n        var finalTop = top;\n        var finalLeft = left;\n        if (shouldNudge) {\n            finalTop = nudgedTop;\n            finalLeft = nudgedLeft;\n        }\n        finalTop = Math.round(finalTop - scoutRect.top);\n        finalLeft = Math.round(finalLeft - scoutRect.left);\n        popoverRef.current.style.transform = \"translate(\" + finalLeft + \"px, \" + finalTop + \"px)\";\n        var potentialViolations = {\n            top: boundaryRect.top + boundaryInset - finalTop,\n            left: boundaryRect.left + boundaryInset - finalLeft,\n            right: finalLeft + width - boundaryRect.right + boundaryInset,\n            bottom: finalTop + height - boundaryRect.bottom + boundaryInset,\n        };\n        onPositionPopover({\n            childRect: childRect,\n            popoverRect: {\n                top: finalTop,\n                left: finalLeft,\n                width: width,\n                height: height,\n                right: finalLeft + width,\n                bottom: finalTop + height,\n            },\n            parentRect: parentRect,\n            boundaryRect: boundaryRect,\n            position: position,\n            align: align,\n            padding: padding,\n            nudgedTop: nudgedTop - top,\n            nudgedLeft: nudgedLeft - left,\n            boundaryInset: boundaryInset,\n            violations: {\n                top: potentialViolations.top <= 0 ? 0 : potentialViolations.top,\n                left: potentialViolations.left <= 0 ? 0 : potentialViolations.left,\n                right: potentialViolations.right <= 0 ? 0 : potentialViolations.right,\n                bottom: potentialViolations.bottom <= 0 ? 0 : potentialViolations.bottom,\n            },\n            hasViolations: potentialViolations.top > 0 ||\n                potentialViolations.left > 0 ||\n                potentialViolations.right > 0 ||\n                potentialViolations.bottom > 0,\n        });\n    }, [\n        parentElement,\n        childRef,\n        scoutRef,\n        popoverRef,\n        boundaryElement,\n        isOpen,\n        contentLocation,\n        positions,\n        align,\n        padding,\n        reposition,\n        boundaryInset,\n        onPositionPopover,\n    ]);\n    return {\n        positionPopover: positionPopover,\n        popoverRef: popoverRef,\n        scoutRef: scoutRef,\n    };\n};\nexports.usePopover = usePopover;\n//# sourceMappingURL=usePopover.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getNudgedPopoverRect = exports.getNewPopoverRect = exports.popoverRectForPosition = exports.createContainer = exports.rectsAreEqual = exports.EMPTY_CLIENT_RECT = void 0;\nexports.EMPTY_CLIENT_RECT = {\n    top: 0,\n    left: 0,\n    bottom: 0,\n    height: 0,\n    right: 0,\n    width: 0,\n};\nvar rectsAreEqual = function (rectA, rectB) {\n    return rectA === rectB ||\n        ((rectA === null || rectA === void 0 ? void 0 : rectA.bottom) === (rectB === null || rectB === void 0 ? void 0 : rectB.bottom) &&\n            (rectA === null || rectA === void 0 ? void 0 : rectA.height) === (rectB === null || rectB === void 0 ? void 0 : rectB.height) &&\n            (rectA === null || rectA === void 0 ? void 0 : rectA.left) === (rectB === null || rectB === void 0 ? void 0 : rectB.left) &&\n            (rectA === null || rectA === void 0 ? void 0 : rectA.right) === (rectB === null || rectB === void 0 ? void 0 : rectB.right) &&\n            (rectA === null || rectA === void 0 ? void 0 : rectA.top) === (rectB === null || rectB === void 0 ? void 0 : rectB.top) &&\n            (rectA === null || rectA === void 0 ? void 0 : rectA.width) === (rectB === null || rectB === void 0 ? void 0 : rectB.width));\n};\nexports.rectsAreEqual = rectsAreEqual;\nvar createContainer = function (containerStyle, containerClassName) {\n    var container = window.document.createElement('div');\n    if (containerClassName)\n        container.className = containerClassName;\n    Object.assign(container.style, containerStyle);\n    return container;\n};\nexports.createContainer = createContainer;\nvar popoverRectForPosition = function (position, childRect, popoverRect, padding, align) {\n    var targetMidX = childRect.left + childRect.width / 2;\n    var targetMidY = childRect.top + childRect.height / 2;\n    var width = popoverRect.width, height = popoverRect.height;\n    var top;\n    var left;\n    switch (position) {\n        case 'left':\n            top = targetMidY - height / 2;\n            left = childRect.left - padding - width;\n            if (align === 'start') {\n                top = childRect.top;\n            }\n            if (align === 'end') {\n                top = childRect.bottom - height;\n            }\n            break;\n        case 'bottom':\n            top = childRect.bottom + padding;\n            left = targetMidX - width / 2;\n            if (align === 'start') {\n                left = childRect.left;\n            }\n            if (align === 'end') {\n                left = childRect.right - width;\n            }\n            break;\n        case 'right':\n            top = targetMidY - height / 2;\n            left = childRect.right + padding;\n            if (align === 'start') {\n                top = childRect.top;\n            }\n            if (align === 'end') {\n                top = childRect.bottom - height;\n            }\n            break;\n        default:\n            top = childRect.top - height - padding;\n            left = targetMidX - width / 2;\n            if (align === 'start') {\n                left = childRect.left;\n            }\n            if (align === 'end') {\n                left = childRect.right - width;\n            }\n            break;\n    }\n    return { top: top, left: left, width: width, height: height, right: left + width, bottom: top + height };\n};\nexports.popoverRectForPosition = popoverRectForPosition;\nvar getNewPopoverRect = function (_a, boundaryInset) {\n    var position = _a.position, align = _a.align, childRect = _a.childRect, popoverRect = _a.popoverRect, boundaryRect = _a.boundaryRect, padding = _a.padding, reposition = _a.reposition;\n    var rect = exports.popoverRectForPosition(position, childRect, popoverRect, padding, align);\n    var boundaryViolation = reposition &&\n        ((position === 'top' && rect.top < boundaryRect.top + boundaryInset) ||\n            (position === 'left' && rect.left < boundaryRect.left + boundaryInset) ||\n            (position === 'right' && rect.right > boundaryRect.right - boundaryInset) ||\n            (position === 'bottom' && rect.bottom > boundaryRect.bottom - boundaryInset));\n    return {\n        rect: rect,\n        boundaryViolation: boundaryViolation,\n    };\n};\nexports.getNewPopoverRect = getNewPopoverRect;\nvar getNudgedPopoverRect = function (popoverRect, boundaryRect, boundaryInset) {\n    var topBoundary = boundaryRect.top + boundaryInset;\n    var leftBoundary = boundaryRect.left + boundaryInset;\n    var rightBoundary = boundaryRect.right - boundaryInset;\n    var bottomBoundary = boundaryRect.bottom - boundaryInset;\n    var top = popoverRect.top < topBoundary ? topBoundary : popoverRect.top;\n    top = top + popoverRect.height > bottomBoundary ? bottomBoundary - popoverRect.height : top;\n    var left = popoverRect.left < leftBoundary ? leftBoundary : popoverRect.left;\n    left = left + popoverRect.width > rightBoundary ? rightBoundary - popoverRect.width : left;\n    return {\n        top: top,\n        left: left,\n        width: popoverRect.width,\n        height: popoverRect.height,\n        right: left + popoverRect.width,\n        bottom: top + popoverRect.height,\n    };\n};\nexports.getNudgedPopoverRect = getNudgedPopoverRect;\n//# sourceMappingURL=util.js.map"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","defineProperty","exports","value","ArrowContainer","jsx_runtime_1","__webpack_require__","react_1","useArrowContainer_1","_a","childRect","popoverRect","position","arrowColor","arrowSize","arrowClassName","externalArrowStyle","arrowStyle","className","children","externalArrowContainerStyle","style","_b","useArrowContainer","arrowContainerStyle","mergedContainerStyle","useMemo","mergedArrowStyle","jsxs","jsx","Popover","usePopover","PopoverPortal_1","util_1","usePopover_1","enumerable","get","useMemoizedArray_1","ArrowContainer_1","DEFAULT_POSITIONS","PopoverInternal","forwardRef","externalRef","isOpen","content","positions","_c","align","_d","padding","_e","reposition","_f","parentElement","window","document","body","_g","boundaryElement","_h","containerClassName","containerStyle","contentLocation","_j","boundaryInset","onClickOutside","_k","clickOutsideCapture","useMemoizedArray","prevIsOpen","useRef","prevPositions","prevContentLocation","prevReposition","childRef","_l","useState","nudgedLeft","nudgedTop","EMPTY_CLIENT_RECT","parentRect","boundaryRect","violations","hasViolations","popoverState","setPopoverState","onPositionPopover","useCallback","_m","positionPopover","popoverRef","scoutRef","useLayoutEffect","shouldUpdate","updatePopover","current","getBoundingClientRect","rectsAreEqual","top","left","width","height","bottom","right","requestAnimationFrame","useEffect","popoverElement","keys","forEach","key","handleOnClickOutside","e","contains","target","handleWindowResize","ownerDocument","addEventListener","removeEventListener","handleRef","node","Fragment","cloneElement","ref","PopoverPortal","element","scoutElement","container","props","react_dom_1","appendChild","removeChild","createPortal","arrowWidth","leftUpperBound","topUpperBound","Number","isNaN","borderTop","borderBottom","borderRight","borderLeft","display","useElementRef","createContainer","externalArray","prevArrayRef","useElementRef_1","POPOVER_STYLE","overflow","SCOUT_STYLE","visibility","positionIndex","scoutRect","inputTop","inputLeft","left_1","Math","round","top_1","transform","isExhausted","getNewPopoverRect","rect","boundaryViolation","shouldNudge","_o","getNudgedPopoverRect","finalTop","finalLeft","potentialViolations","popoverRectForPosition","rectA","rectB","createElement","targetMidX","targetMidY","topBoundary","leftBoundary","rightBoundary","bottomBoundary"],"sourceRoot":""}