PageSourceSearch

https://zbahis770.com/assets/20261009-201932-format-date-for-ui-CtFiOnQh.js

js zbahis770.com collected 2026-10-10 02:45:42 UTC 1,705 bytes, 1 lines download raw bytes

1import{d as e,r as u}from"./20261009-201932-vendor-dates-C3iSVezX.js";import"./20261009-201932-index-DsjWYDxh.js";import{i as c}from"./20261009-201932-vendor-i18n-qIl5llvk.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="367b0444-7b4c-4679-b56e-62587f165e7a",t._sentryDebugIdIdentifier="sentry-dbid-367b0444-7b4c-4679-b56e-62587f165e7a")}catch{}})();e.extend(u);const w=(t,a=!0,o="-",s=!1)=>{const r=new Date(t),n=(c.language||"en").split("-")[0].toLowerCase();if(e.locale(n),isNaN(r.getTime()))return"date";const d=e(t).format(`D MMM, YYYY ${o} hh:mm A`),l=e(t).format("D, MMM, YYYY");if(s){const m=e(t),f=e();let i="";return e(m).isSame(e(),"day")?i=m.from(f):i=d,i}return a?d:l},h=(t,a)=>{const o=new Date(t),s=(c.language||"en").split("-")[0].toLowerCase();return e.locale(s),isNaN(o.getTime())?"date":e(t).format(a)},D=t=>{const a=e(t);if(!a.isValid())return"date";const o=(c.language||"en").toLowerCase();if(o.startsWith("en")){const s={...e.Ls.en,name:"en-custom",relativeTime:{...e.Ls.en.relativeTime,past:"%s ago",s:"a few seconds",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",M:"1mo",MM:"%dmo",y:"1y",yy:"%dy"}};return a.locale(s).fromNow()}if(o.startsWith("tr")){if(a.isSame(e().subtract(1,"day"),"day"))return"Dün";const s=e,r=s.Ls?.tr||s.Ls.en,n={...r,name:"tr-custom",relativeTime:{...r.relativeTime||{},past:"%s önce",future:"%s sonra",d:"1 gün",dd:"%d gün"}};return a.locale(n).fromNow()}return e.locale(o),a.locale(o).fromNow()},p=(t,a,o)=>e(t).isAfter(e().subtract(a,o));
1export{h as a,p as c,w as f,D as t};

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.