{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"kurang dari 1 detik\",\n    other: \"kurang dari {{count}} detik\"\n  },\n  xSeconds: {\n    one: \"1 detik\",\n    other: \"{{count}} detik\"\n  },\n  halfAMinute: \"setengah menit\",\n  lessThanXMinutes: {\n    one: \"kurang dari 1 menit\",\n    other: \"kurang dari {{count}} menit\"\n  },\n  xMinutes: {\n    one: \"1 menit\",\n    other: \"{{count}} menit\"\n  },\n  aboutXHours: {\n    one: \"sekitar 1 jam\",\n    other: \"sekitar {{count}} jam\"\n  },\n  xHours: {\n    one: \"1 jam\",\n    other: \"{{count}} jam\"\n  },\n  xDays: {\n    one: \"1 hari\",\n    other: \"{{count}} hari\"\n  },\n  aboutXWeeks: {\n    one: \"sekitar 1 minggu\",\n    other: \"sekitar {{count}} minggu\"\n  },\n  xWeeks: {\n    one: \"1 minggu\",\n    other: \"{{count}} minggu\"\n  },\n  aboutXMonths: {\n    one: \"sekitar 1 bulan\",\n    other: \"sekitar {{count}} bulan\"\n  },\n  xMonths: {\n    one: \"1 bulan\",\n    other: \"{{count}} bulan\"\n  },\n  aboutXYears: {\n    one: \"sekitar 1 tahun\",\n    other: \"sekitar {{count}} tahun\"\n  },\n  xYears: {\n    one: \"1 tahun\",\n    other: \"{{count}} tahun\"\n  },\n  overXYears: {\n    one: \"lebih dari 1 tahun\",\n    other: \"lebih dari {{count}} tahun\"\n  },\n  almostXYears: {\n    one: \"hampir 1 tahun\",\n    other: \"hampir {{count}} tahun\"\n  }\n};\nexport const formatDistance = (token, count, options) => {\n  let result;\n  const tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === \"string\") {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", count.toString());\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"dalam waktu \" + result;\n    } else {\n      return result + \" yang lalu\";\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}