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:`[email protected]+8b79e4c`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6748f030-c278-4885-9ad5-32e7c7f9fe54`,e._sentryDebugIdIdentifier=`sentry-dbid-6748f030-c278-4885-9ad5-32e7c7f9fe54`)}catch{}})();import{m as e}from"./dist-BIVQWfY9.js";import{t,un as n}from"./environment-CvYCMuy-.js";import{r}from"./coordinates-DctVXkpc.js";import{C as i,b as a}from"./hooks-DVCFokjn.js";import{t as o}from"./userData-BZDlZX8w.js";import{a as s}from"./formatters-Cflo8FZH.js";var c=e(),l=(e,o=n.DefaultSpeedDisplayUnit)=>{let c=e?.motion===i.Moving&&(e?.staleGPS===!0||e?.staleGPS===`true`)?i.Stopped:e?.motion,l=c===i.Moving,u=c===i.Stopped,d=!l&&!u,f=a(e),p=e?.notReporting===!0,m=!!e&&!p&&e.isOnline!==!1&&e.isOnline!==`false`,h=!!e?.isOnline&&m,g=!h,_=Number(e?.speed??0),v=l&&Number.isFinite(_)&&_>0?s(_,n.DefaultSpeedUnit,o):null;return{motion:c,isMoving:l,isStopped:u,isUnknown:d,isActivelyMoving:f,isConnectionOk:m,isOnline:h,isMuted:g,notReporting:p,motionLabel:l?`Moving`:u?`Stopped`:``,friendlySpeed:v,movingSuffix:l&&v?` ${r(e?.azimuth)||``} at ${v}`:``,summaryText:l?v?`Moving at ${v}`:`Moving`:u?`Stopped`:``,statusColor:l?t.colors.success:u?t.colors.danger:t.colors.muted,iconName:l?`dot-circle-solid`:u?`stop-circle-solid`:null}},u=()=>o()?.speedUnits||n.DefaultSpeedDisplayUnit,d=e=>{let t=(0,c.c)(3),n=u(),r;return t[0]!==n||t[1]!==e?(r=l(e,n),t[0]=n,t[1]=e,t[2]=r):r=t[2],r},f=()=>{let e=(0,c.c)(2),t=u(),n;return e[0]===t?n=e[1]:(n=e=>l(e,t),e[0]=t,e[1]=n),n};export{d as n,f as r,l as t}; 2//# sourceMappingURL=useDisplayStatus-CT10NMbz.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.