PageSourceSearch

https://seedlang.com/assets/get-floating-position-DmCEfFwv.js

js seedlang.com collected 2026-09-25 20:51:41 UTC 2,397 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`82e4baa6c68c429597a8dcf8c86fc75e13a47707`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ed6dfbde-5def-44cd-9b84-5d973c710548`,e._sentryDebugIdIdentifier=`sentry-dbid-ed6dfbde-5def-44cd-9b84-5d973c710548`)}catch{}})();import"./chunk-BYEayUvb.js";import{t as e}from"./react-C0i5OX_v.js";import{t}from"./jsx-runtime-DU0S17m4.js";import{x as n}from"./floating-ui.react-BPYJxQ6r.js";e();function r(e){return e?.props?.ref}function i(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function a(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var o={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function s({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:s,arrowX:c,arrowY:l,dir:u}){let[d,f=`center`]=e.split(`-`),p={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[o[d]]:r},m=-t/2;return d===`left`?{...p,...i(f,l,n,s),right:m,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:d===`right`?{...p,...i(f,l,n,s),left:m,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:d===`top`?{...p,...a(f,c,n,s,u),bottom:m,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:d===`bottom`?{...p,...a(f,c,n,s,u),top:m,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}var c=t();function l({position:e,arrowSize:t,arrowOffset:r,arrowRadius:i,arrowPosition:a,visible:o,arrowX:l,arrowY:u,style:d,...f}){let{dir:p}=n();return o?(0,c.jsx)(`div`,{...f,style:{...d,...s({position:e,arrowSize:t,arrowOffset:r,arrowRadius:i,arrowPosition:a,dir:p,arrowX:l,arrowY:u})}}):null}l.displayName=`@mantine/core/FloatingArrow`;function u(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}export{l as n,r,u as t};
2//# sourceMappingURL=get-floating-position-DmCEfFwv.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.