1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8497e7db-5d87-4b12-ae3b-682e0e8da057",e._sentryDebugIdIdentifier="sentry-dbid-8497e7db-5d87-4b12-ae3b-682e0e8da057")}catch(e){}}();import{a as e}from"./rolldown-runtime-BBzOAo5_.js";import{t}from"./react-DuV36FPs.js";import{G as n}from"./index-CRc22cjs.js";var a=e(t()),o={timeZoneName:"short"},r=()=>{const e=n().language.locale,t=e.startsWith("en")?void 0:e.replace("_","-"),r=(0,a.useCallback)((e=>{const t={year:"numeric",month:"numeric",day:"numeric"};if("month-day"===e)return{month:"long",day:"numeric"};if("timeonly"!==e&&"time"!==e&&"time-medium-date"!==e)return t;const n={hour:"numeric",minute:"numeric",hour12:!1,...o};return"timeonly"===e?n:("time-medium-date"===e&&(t.month="short"),{...t,...n})}),[]),i=(0,a.useCallback)(((e,n=null)=>{if(null===e)return null;if(void 0!==window.Intl)return new Intl.DateTimeFormat(t,r(n)).format(new Date(e));{const t=new Date(e);return"time"===n||"time-medium-date"===n?t.toLocaleString():"timeonly"===n?t.toLocaleTimeString():t.toLocaleDateString()}}),[r,t]);return{formatDate:i,formatDateRange:(0,a.useCallback)(((e,n,a=null)=>{if(void 0!==window.Intl&&window.Intl.DateTimeFormat.prototype.formatRange){const r="time"===a||"time-medium-date"===a;let i={dateStyle:"long"};"time"===a?i={dateStyle:"long",timeStyle:"short"}:"time-medium-date"===a&&(i={dateStyle:"medium",timeStyle:"short"});let m=new Intl.DateTimeFormat(t,o).formatToParts(new Date(n)).find((e=>"timeZoneName"===e.type)).value;return new Intl.DateTimeFormat(t,i).formatRange(new Date(e),new Date(n))+(r?` ${m}`:"")}{const t=new Date(e).toDateString()===new Date(n).toDateString()?"timeonly":a;return`${i(e,a)}â${i(n,t)}`}}),[t,i])}};export{r as t}; 2//# sourceMappingURL=useDateDisplay-CpNnMNz1.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.