UNPKG

@freshworks/crayons

Version:
1 lines 1.95 kB
System.register(["./p-05d88764.system.js","./p-6fb516eb.system.js"],(function(e){"use strict";var t,o,a,n;return{setters:[function(e){t=e.f;o=e.l;a=e.m},function(e){n=e.b}],execute:function(){var s={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}};var r=function e(t,o,a){var n;var r=s[t];if(typeof r==="string"){n=r}else if(o===1){n=r.one}else{n=r.other.replace("{{count}}",o.toString())}if(a!==null&&a!==void 0&&a.addSuffix){if(a.comparison&&a.comparison>0){return"in "+n}else{return n+" ago"}}return n};var u={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"};var h={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var m={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var i={date:n({formats:u,defaultWidth:"full"}),time:n({formats:h,defaultWidth:"full"}),dateTime:n({formats:m,defaultWidth:"full"})};var l=e("default",{code:"en-CA",formatDistance:r,formatLong:i,formatRelative:t,localize:o,match:a,options:{weekStartsOn:0,firstWeekContainsDate:1}})}}}));