import{Va as u,zg as e}from"./chunk-PXFCSR5K.js";import{i as l}from"./chunk-DOSG2ZAB.js";var v=(()=>{let t=class t{transform(o){let n=new Date(o),a=Math.trunc((Date.now()-n.getTime())/1e3),r=Math.trunc(a/31536e3);return r>=1?e("{interval, plural, =1 {p\u0159ed 1 rokem} other {p\u0159ed {interval} lety}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 year} other {in {interval} years}}",{interval:-r}):(r=Math.trunc(a/2419200),r>=12?"p\u0159ed 1 rokem":r<=-12?"in 1 year":r>=1?e("{interval, plural, =1 {p\u0159ed 1 m\u011Bs\xEDcem} other {p\u0159ed {interval} m\u011Bs\xEDci}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 month} other {in {interval} months}}",{interval:-r}):(r=Math.trunc(a/604800),r>=4?"p\u0159ed 1 m\u011Bs\xEDcem":r<=-4?"1 month from now":r>=1?e("{interval, plural, =1 {p\u0159ed 1 t\xFDdnem} other {p\u0159ed {interval} t\xFDdny}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 week} other {in {interval} weeks}}",{interval:-r}):(r=Math.trunc(a/86400),r>=1?e("{interval, plural, =1 {p\u0159ed 1 dnem} other {p\u0159ed {interval} dny}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 day} other {in {interval} days}}",{interval:-r}):(r=Math.trunc(a/3600),r>=1?e("{interval, plural, =1 {p\u0159ed 1 hodinou} other {p\u0159ed {interval} hodinami}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 hour} other {in {interval} hours}}",{interval:-r}):(r=Math.trunc(a/60),r>=1?"p\u0159ed "+r+" min. ":r<=-1?"in "+-r+" min":"pr\xE1v\u011B te\u010F")))));}};l(t,"\u0275fac",function(n){return new(n||t)();}),l(t,"\u0275pipe",u({name:"myFromNow",type:t,pure:!0}));let i=t;return i;})();export{v as a};/**i18n:c65a26d1e9dd8b923403d49a4dccad76e3fa3313ede414d8a3b16d3f73c99bce*///# sourceMappingURL=chunk-3MBJGBFW.js.map