{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cron-input",
  "title": "Cron Input",
  "description": "Standard five-field cron expression input with plain-English schedule readout and upcoming run times.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "utils",
    "@drift-ui/use-controllable-state",
    "@drift-ui/shape"
  ],
  "files": [
    {
      "path": "registry/default/ui/cron-input.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { AlertCircle, Calendar, Clock } from \"lucide-react\"\n\nimport { useControllableState } from \"@/registry/default/hooks/use-controllable-state\"\nimport {\n  describeCron,\n  getNextRunTimes,\n  parseCron,\n} from \"@/registry/default/lib/cron-input-utils\"\nimport { cn } from \"@/registry/default/lib/utils\"\n\nexport interface CronInputProps extends Omit<\n  React.ComponentProps<\"div\">,\n  \"defaultValue\" | \"onChange\"\n> {\n  value?: string\n  defaultValue?: string\n  onValueChange?: (value: string) => void\n  placeholder?: string\n  disabled?: boolean\n  readOnly?: boolean\n  showDescription?: boolean\n  showNextRuns?: boolean\n  nextRunsCount?: number\n  nextRunsFrom?: Date\n  formatNextRun?: (date: Date) => string\n  inputProps?: Omit<\n    React.ComponentProps<\"input\">,\n    \"value\" | \"defaultValue\" | \"onChange\" | \"disabled\" | \"readOnly\"\n  >\n}\n\nfunction defaultFormatDate(date: Date): string {\n  const year = date.getFullYear()\n  const month = String(date.getMonth() + 1).padStart(2, \"0\")\n  const day = String(date.getDate()).padStart(2, \"0\")\n  const hours = String(date.getHours()).padStart(2, \"0\")\n  const minutes = String(date.getMinutes()).padStart(2, \"0\")\n\n  const weekdays = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"]\n  const weekday = weekdays[date.getDay()]\n\n  return `${weekday}, ${year}-${month}-${day} ${hours}:${minutes}`\n}\n\nfunction CronInput({\n  value,\n  defaultValue = \"* * * * *\",\n  onValueChange,\n  placeholder = \"* * * * *\",\n  disabled = false,\n  readOnly = false,\n  showDescription = true,\n  showNextRuns = true,\n  nextRunsCount = 5,\n  nextRunsFrom,\n  formatNextRun,\n  inputProps,\n  className,\n  ...props\n}: CronInputProps) {\n  const { value: currentValue, setValue } = useControllableState<string>({\n    value,\n    defaultValue,\n    onChange: onValueChange,\n  })\n\n  const generatedId = React.useId()\n  const inputId = inputProps?.id ?? `cron-input-${generatedId}`\n  const errorId = `cron-error-${generatedId}`\n  const descId = `cron-desc-${generatedId}`\n\n  const parsed = React.useMemo(() => parseCron(currentValue), [currentValue])\n  const description = React.useMemo(\n    () => describeCron(currentValue),\n    [currentValue]\n  )\n\n  const nextRuns = React.useMemo(() => {\n    if (!parsed.isValid || !showNextRuns) return []\n    return getNextRunTimes(currentValue, nextRunsCount, nextRunsFrom)\n  }, [parsed.isValid, showNextRuns, currentValue, nextRunsCount, nextRunsFrom])\n\n  const handleInputChange = React.useCallback(\n    (e: React.ChangeEvent<HTMLInputElement>) => {\n      setValue(e.target.value)\n    },\n    [setValue]\n  )\n\n  const isInvalid = !parsed.isValid\n\n  return (\n    <div\n      data-slot=\"cron-input\"\n      className={cn(\"flex w-full flex-col gap-2 text-sm\", className)}\n      {...props}\n    >\n      <div className=\"relative flex w-full flex-col gap-1.5\">\n        <input\n          {...inputProps}\n          id={inputId}\n          data-slot=\"cron-input-field\"\n          type=\"text\"\n          value={currentValue ?? \"\"}\n          onChange={handleInputChange}\n          placeholder={placeholder}\n          disabled={disabled}\n          readOnly={readOnly}\n          aria-invalid={isInvalid ? \"true\" : undefined}\n          aria-describedby={\n            isInvalid\n              ? errorId\n              : showDescription && description\n                ? descId\n                : undefined\n          }\n          className={cn(\n            \"h-control w-full min-w-0 rounded-control border border-input bg-transparent px-3 py-1 font-mono text-base shadow-control transition-[color,box-shadow] outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30\",\n            \"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50\",\n            isInvalid &&\n              \"border-destructive text-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40\",\n            inputProps?.className\n          )}\n        />\n\n        {isInvalid ? (\n          <div\n            id={errorId}\n            data-slot=\"cron-input-error\"\n            role=\"alert\"\n            className=\"flex items-center gap-1.5 text-xs text-destructive\"\n          >\n            <AlertCircle className=\"size-3.5 shrink-0\" aria-hidden=\"true\" />\n            <span>{parsed.error}</span>\n          </div>\n        ) : showDescription && description ? (\n          <div\n            id={descId}\n            data-slot=\"cron-input-description\"\n            className=\"flex items-center gap-1.5 text-xs text-muted-foreground\"\n          >\n            <Clock\n              className=\"size-3.5 shrink-0 text-muted-foreground\"\n              aria-hidden=\"true\"\n            />\n            <span>{description}</span>\n          </div>\n        ) : null}\n      </div>\n\n      {!isInvalid && showNextRuns && nextRuns.length > 0 && (\n        <div\n          data-slot=\"cron-input-next-runs\"\n          className={cn(\n            \"rounded-control border border-border bg-muted/40 p-3 text-xs text-muted-foreground\",\n            disabled && \"opacity-50\"\n          )}\n        >\n          <div\n            data-slot=\"cron-input-next-runs-header\"\n            className=\"mb-2 flex items-center gap-1.5 font-medium text-foreground\"\n          >\n            <Calendar\n              className=\"size-3.5 shrink-0 text-muted-foreground\"\n              aria-hidden=\"true\"\n            />\n            <span>Upcoming {nextRuns.length} runs</span>\n          </div>\n          <ol data-slot=\"cron-input-runs-list\" className=\"space-y-1 font-mono\">\n            {nextRuns.map((run, index) => (\n              <li key={index} data-slot=\"cron-input-run-item\">\n                {formatNextRun ? formatNextRun(run) : defaultFormatDate(run)}\n              </li>\n            ))}\n          </ol>\n        </div>\n      )}\n    </div>\n  )\n}\n\nexport { CronInput }\n",
      "type": "registry:ui"
    },
    {
      "path": "registry/default/lib/cron-input-utils.ts",
      "content": "export type CronFieldName =\n  \"minute\" | \"hour\" | \"day of month\" | \"month\" | \"day of week\"\n\nexport interface ParseCronResult {\n  isValid: boolean\n  error?: string\n  errorField?: CronFieldName\n  fields?: {\n    minute: number[]\n    hour: number[]\n    dayOfMonth: number[]\n    month: number[]\n    dayOfWeek: number[]\n  }\n  rawFields?: [string, string, string, string, string]\n  isDomRestricted?: boolean\n  isDowRestricted?: boolean\n}\n\nconst MONTH_NAMES: Record<string, number> = {\n  jan: 1,\n  feb: 2,\n  mar: 3,\n  apr: 4,\n  may: 5,\n  jun: 6,\n  jul: 7,\n  aug: 8,\n  sep: 9,\n  oct: 10,\n  nov: 11,\n  dec: 12,\n}\n\nconst WEEKDAY_NAMES: Record<string, number> = {\n  sun: 0,\n  mon: 1,\n  tue: 2,\n  wed: 3,\n  thu: 4,\n  fri: 5,\n  sat: 6,\n}\n\nconst MONTH_FULL_NAMES = [\n  \"\",\n  \"January\",\n  \"February\",\n  \"March\",\n  \"April\",\n  \"May\",\n  \"June\",\n  \"July\",\n  \"August\",\n  \"September\",\n  \"October\",\n  \"November\",\n  \"December\",\n]\n\nconst WEEKDAY_FULL_NAMES = [\n  \"Sunday\",\n  \"Monday\",\n  \"Tuesday\",\n  \"Wednesday\",\n  \"Thursday\",\n  \"Friday\",\n  \"Saturday\",\n]\n\ninterface FieldConfig {\n  name: CronFieldName\n  min: number\n  max: number\n  names?: Record<string, number>\n}\n\nconst FIELD_CONFIGS: FieldConfig[] = [\n  { name: \"minute\", min: 0, max: 59 },\n  { name: \"hour\", min: 0, max: 23 },\n  { name: \"day of month\", min: 1, max: 31 },\n  { name: \"month\", min: 1, max: 12, names: MONTH_NAMES },\n  { name: \"day of week\", min: 0, max: 7, names: WEEKDAY_NAMES },\n]\n\nfunction parseNumber(token: string, config: FieldConfig): number | null {\n  const lower = token.toLowerCase()\n  if (config.names && Object.hasOwn(config.names, lower)) {\n    return config.names[lower]\n  }\n  if (!/^\\d+$/.test(token)) {\n    return null\n  }\n  const num = parseInt(token, 10)\n  if (num < config.min || num > config.max) {\n    return null\n  }\n  return num\n}\n\nfunction parseField(\n  raw: string,\n  config: FieldConfig\n): { values: number[]; error?: string } {\n  if (!raw || raw.trim().length === 0) {\n    return { values: [], error: `Empty ${config.name} field` }\n  }\n\n  const items = raw.split(\",\")\n  const valuesSet = new Set<number>()\n\n  for (const item of items) {\n    const trimmed = item.trim()\n    if (!trimmed) {\n      return { values: [], error: `Invalid list syntax in ${config.name}` }\n    }\n\n    // Check for step: e.g. */15, 1-30/2, 5/10\n    const stepParts = trimmed.split(\"/\")\n    if (stepParts.length > 2) {\n      return {\n        values: [],\n        error: `Invalid step syntax in ${config.name}: \"${trimmed}\"`,\n      }\n    }\n\n    let step = 1\n    if (stepParts.length === 2) {\n      if (!/^\\d+$/.test(stepParts[1])) {\n        return {\n          values: [],\n          error: `Invalid step in ${config.name}: \"${stepParts[1]}\" (must be a positive integer)`,\n        }\n      }\n      step = parseInt(stepParts[1], 10)\n      if (step <= 0) {\n        return {\n          values: [],\n          error: `Invalid step in ${config.name}: step must be greater than 0`,\n        }\n      }\n    }\n\n    const rangePart = stepParts[0]\n\n    if (rangePart === \"*\") {\n      for (let i = config.min; i <= config.max; i += step) {\n        const val = config.name === \"day of week\" && i === 7 ? 0 : i\n        valuesSet.add(val)\n      }\n    } else if (rangePart.includes(\"-\")) {\n      const bounds = rangePart.split(\"-\")\n      if (bounds.length !== 2) {\n        return {\n          values: [],\n          error: `Invalid range syntax in ${config.name}: \"${rangePart}\"`,\n        }\n      }\n      const start = parseNumber(bounds[0], config)\n      const end = parseNumber(bounds[1], config)\n      if (start === null) {\n        return {\n          values: [],\n          error: `Invalid range start in ${config.name}: \"${bounds[0]}\" (expected ${config.min}-${config.max})`,\n        }\n      }\n      if (end === null) {\n        return {\n          values: [],\n          error: `Invalid range end in ${config.name}: \"${bounds[1]}\" (expected ${config.min}-${config.max})`,\n        }\n      }\n      if (start > end) {\n        return {\n          values: [],\n          error: `Invalid range in ${config.name}: \"${rangePart}\" (start must be less than or equal to end)`,\n        }\n      }\n      for (let i = start; i <= end; i += step) {\n        const val = config.name === \"day of week\" && i === 7 ? 0 : i\n        valuesSet.add(val)\n      }\n    } else {\n      // Single value\n      if (stepParts.length === 2) {\n        // e.g. 5/10 means from 5 to max with step\n        const start = parseNumber(rangePart, config)\n        if (start === null) {\n          return {\n            values: [],\n            error: `Invalid value in ${config.name}: \"${rangePart}\" (expected ${config.min}-${config.max})`,\n          }\n        }\n        for (let i = start; i <= config.max; i += step) {\n          const val = config.name === \"day of week\" && i === 7 ? 0 : i\n          valuesSet.add(val)\n        }\n      } else {\n        const val = parseNumber(rangePart, config)\n        if (val === null) {\n          return {\n            values: [],\n            error: `Invalid ${config.name}: \"${rangePart}\" (must be between ${config.min} and ${config.max})`,\n          }\n        }\n        valuesSet.add(config.name === \"day of week\" && val === 7 ? 0 : val)\n      }\n    }\n  }\n\n  const values = Array.from(valuesSet).sort((a, b) => a - b)\n  return { values }\n}\n\n/**\n * Parses and validates a standard 5-field cron expression.\n */\nexport function parseCron(\n  expression: string | undefined | null\n): ParseCronResult {\n  if (\n    !expression ||\n    typeof expression !== \"string\" ||\n    expression.trim().length === 0\n  ) {\n    return {\n      isValid: false,\n      error: \"Cron expression is required\",\n    }\n  }\n\n  const parts = expression.trim().split(/\\s+/)\n  if (parts.length !== 5) {\n    return {\n      isValid: false,\n      error: `Expected 5 fields, found ${parts.length}`,\n    }\n  }\n\n  const [rawMin, rawHour, rawDom, rawMonth, rawDow] = parts as [\n    string,\n    string,\n    string,\n    string,\n    string,\n  ]\n\n  const parsedFields: {\n    minute: number[]\n    hour: number[]\n    dayOfMonth: number[]\n    month: number[]\n    dayOfWeek: number[]\n  } = {\n    minute: [],\n    hour: [],\n    dayOfMonth: [],\n    month: [],\n    dayOfWeek: [],\n  }\n\n  for (let i = 0; i < FIELD_CONFIGS.length; i++) {\n    const config = FIELD_CONFIGS[i]\n    const raw = parts[i]\n    const result = parseField(raw, config)\n    if (result.error) {\n      return {\n        isValid: false,\n        error: result.error,\n        errorField: config.name,\n      }\n    }\n    if (config.name === \"minute\") parsedFields.minute = result.values\n    else if (config.name === \"hour\") parsedFields.hour = result.values\n    else if (config.name === \"day of month\")\n      parsedFields.dayOfMonth = result.values\n    else if (config.name === \"month\") parsedFields.month = result.values\n    else if (config.name === \"day of week\")\n      parsedFields.dayOfWeek = result.values\n  }\n\n  return {\n    isValid: true,\n    fields: parsedFields,\n    rawFields: [rawMin, rawHour, rawDom, rawMonth, rawDow],\n    isDomRestricted: rawDom !== \"*\",\n    isDowRestricted: rawDow !== \"*\",\n  }\n}\n\n/**\n * Checks whether a given Date matches the parsed cron expression,\n * strictly implementing the POSIX day-of-month OR day-of-week rule.\n */\nexport function isCronMatch(parsed: ParseCronResult, date: Date): boolean {\n  if (!parsed.isValid || !parsed.fields) return false\n\n  const month = date.getMonth() + 1\n  if (!parsed.fields.month.includes(month)) return false\n\n  const dom = date.getDate()\n  const dow = date.getDay() // 0 = Sunday, 1 = Monday, ..., 6 = Saturday\n\n  const domMatches = parsed.fields.dayOfMonth.includes(dom)\n  const dowMatches = parsed.fields.dayOfWeek.includes(dow)\n\n  let dayMatches = false\n  if (parsed.isDomRestricted && parsed.isDowRestricted) {\n    // POSIX rule: when both are set, match if EITHER matches\n    dayMatches = domMatches || dowMatches\n  } else if (parsed.isDomRestricted) {\n    dayMatches = domMatches\n  } else if (parsed.isDowRestricted) {\n    dayMatches = dowMatches\n  } else {\n    dayMatches = true\n  }\n\n  if (!dayMatches) return false\n\n  const hour = date.getHours()\n  if (!parsed.fields.hour.includes(hour)) return false\n\n  const minute = date.getMinutes()\n  if (!parsed.fields.minute.includes(minute)) return false\n\n  return true\n}\n\n/**\n * Calculates the next matching run times starting after a reference Date.\n * Takes a `from` date so calculations and tests are deterministic.\n */\nexport function getNextRunTimes(\n  expression: string | undefined | null,\n  count = 5,\n  from: Date = new Date()\n): Date[] {\n  const parsed = parseCron(expression)\n  if (!parsed.isValid || !parsed.fields) return []\n\n  const results: Date[] = []\n  const curr = new Date(from.getTime())\n\n  // Advance to the start of the next minute\n  curr.setSeconds(0, 0)\n  curr.setMinutes(curr.getMinutes() + 1)\n\n  const maxYear = curr.getFullYear() + 100\n\n  while (results.length < count && curr.getFullYear() <= maxYear) {\n    const month = curr.getMonth() + 1\n    if (!parsed.fields.month.includes(month)) {\n      // Jump to 1st of next month at 00:00\n      curr.setDate(1)\n      curr.setHours(0, 0, 0, 0)\n      curr.setMonth(curr.getMonth() + 1)\n      continue\n    }\n\n    const dom = curr.getDate()\n    const dow = curr.getDay()\n    const domMatches = parsed.fields.dayOfMonth.includes(dom)\n    const dowMatches = parsed.fields.dayOfWeek.includes(dow)\n\n    let dayMatches = false\n    if (parsed.isDomRestricted && parsed.isDowRestricted) {\n      dayMatches = domMatches || dowMatches\n    } else if (parsed.isDomRestricted) {\n      dayMatches = domMatches\n    } else if (parsed.isDowRestricted) {\n      dayMatches = dowMatches\n    } else {\n      dayMatches = true\n    }\n\n    if (!dayMatches) {\n      // Jump to start of next day\n      curr.setHours(0, 0, 0, 0)\n      curr.setDate(curr.getDate() + 1)\n      continue\n    }\n\n    const hour = curr.getHours()\n    if (!parsed.fields.hour.includes(hour)) {\n      // Jump to start of next hour\n      curr.setMinutes(0, 0, 0)\n      curr.setHours(curr.getHours() + 1)\n      continue\n    }\n\n    const minute = curr.getMinutes()\n    if (parsed.fields.minute.includes(minute)) {\n      results.push(new Date(curr.getTime()))\n    }\n\n    curr.setMinutes(curr.getMinutes() + 1)\n  }\n\n  return results\n}\n\nfunction padTwo(n: number): string {\n  return n < 10 ? `0${n}` : `${n}`\n}\n\nfunction formatList(items: string[]): string {\n  if (items.length === 0) return \"\"\n  if (items.length === 1) return items[0]\n  if (items.length === 2) return `${items[0]} and ${items[1]}`\n  return `${items.slice(0, -1).join(\", \")}, and ${items[items.length - 1]}`\n}\n\n/**\n * Returns a plain-English description of a cron expression.\n */\nexport function describeCron(expression: string | undefined | null): string {\n  const parsed = parseCron(expression)\n  if (!parsed.isValid || !parsed.rawFields) {\n    return \"\"\n  }\n\n  const [rawMin, rawHour, rawDom, rawMonth, rawDow] = parsed.rawFields\n\n  // Case 1: Every minute\n  if (\n    rawMin === \"*\" &&\n    rawHour === \"*\" &&\n    rawDom === \"*\" &&\n    rawMonth === \"*\" &&\n    rawDow === \"*\"\n  ) {\n    return \"Every minute\"\n  }\n\n  // Case 2: Every N minutes (e.g. */5 * * * *)\n  if (\n    rawMin.startsWith(\"*/\") &&\n    rawHour === \"*\" &&\n    rawDom === \"*\" &&\n    rawMonth === \"*\" &&\n    rawDow === \"*\"\n  ) {\n    const step = rawMin.slice(2)\n    return `Every ${step} minutes`\n  }\n\n  // Case 3: Every hour at a minute (e.g. 0 * * * *)\n  if (\n    !rawMin.includes(\"/\") &&\n    !rawMin.includes(\"-\") &&\n    rawHour === \"*\" &&\n    rawDom === \"*\" &&\n    rawMonth === \"*\" &&\n    rawDow === \"*\"\n  ) {\n    if (rawMin === \"0\") {\n      return \"Every hour, at minute 0\"\n    }\n    return `At minute ${rawMin} of every hour`\n  }\n\n  // Case 4: Every N hours at minute (e.g. 0 */2 * * *)\n  if (\n    rawHour.startsWith(\"*/\") &&\n    rawDom === \"*\" &&\n    rawMonth === \"*\" &&\n    rawDow === \"*\"\n  ) {\n    const step = rawHour.slice(2)\n    if (rawMin.startsWith(\"*/\")) {\n      const minStep = rawMin.slice(2)\n      return `Every ${minStep} minutes, every ${step} hours`\n    }\n    const minText = rawMin === \"0\" ? \"at minute 0\" : `at minute ${rawMin}`\n    return `Every ${step} hours, ${minText}`\n  }\n\n  // Build time description:\n  let timeStr = \"\"\n  const isSpecificTime =\n    !rawMin.includes(\"*\") &&\n    !rawMin.includes(\"/\") &&\n    !rawHour.includes(\"*\") &&\n    !rawHour.includes(\"/\")\n\n  if (isSpecificTime) {\n    const mins = parsed.fields!.minute\n    const hours = parsed.fields!.hour\n    if (mins.length === 1 && hours.length === 1) {\n      timeStr = `At ${padTwo(hours[0])}:${padTwo(mins[0])}`\n    } else {\n      timeStr = `At minute ${rawMin} past hour ${rawHour}`\n    }\n  } else if (rawMin.startsWith(\"*/\")) {\n    const step = rawMin.slice(2)\n    if (rawHour === \"*\") {\n      timeStr = `Every ${step} minutes`\n    } else if (rawHour.startsWith(\"*/\")) {\n      const hStep = rawHour.slice(2)\n      timeStr = `Every ${step} minutes, every ${hStep} hours`\n    } else if (rawHour.includes(\"-\")) {\n      if (rawHour.includes(\"/\")) {\n        const [range, hStep] = rawHour.split(\"/\")\n        const [h1, h2] = range.split(\"-\")\n        timeStr = `Every ${step} minutes, every ${hStep} hours from ${padTwo(parseInt(h1, 10))}:00 through ${padTwo(parseInt(h2, 10))}:59`\n      } else {\n        const [h1, h2] = rawHour.split(\"-\")\n        timeStr = `Every ${step} minutes, ${padTwo(parseInt(h1, 10))}:00 through ${padTwo(parseInt(h2, 10))}:59`\n      }\n    } else {\n      timeStr = `Every ${step} minutes past hour ${rawHour}`\n    }\n  } else if (rawMin === \"0\" && rawHour === \"*\") {\n    timeStr = \"Every hour, at minute 0\"\n  } else if (rawHour === \"*\") {\n    timeStr = `At minute ${rawMin} of every hour`\n  } else {\n    timeStr = `At ${rawHour}:${rawMin}`\n  }\n\n  // Build day description:\n  const dayParts: string[] = []\n\n  // Day of week\n  let dowStr = \"\"\n  if (rawDow !== \"*\") {\n    if (rawDow === \"1-5\") {\n      dowStr = \"Monday through Friday\"\n    } else if (rawDow === \"0,6\" || rawDow === \"6,7\" || rawDow === \"6,0\") {\n      dowStr = \"Saturday and Sunday\"\n    } else {\n      const dayNames = parsed.fields!.dayOfWeek.map(\n        (d) => WEEKDAY_FULL_NAMES[d]\n      )\n      dowStr = `on ${formatList(dayNames)}`\n    }\n  }\n\n  // Day of month\n  let domStr = \"\"\n  if (rawDom !== \"*\") {\n    const domNums = parsed.fields!.dayOfMonth.map((d) => `${d}`)\n    if (domNums.length === 1) {\n      domStr = `on day ${domNums[0]} of the month`\n    } else {\n      domStr = `on day ${formatList(domNums)} of the month`\n    }\n  }\n\n  // Combine day of month and day of week\n  if (domStr && dowStr) {\n    dayParts.push(`${domStr} or ${dowStr}`)\n  } else if (domStr) {\n    dayParts.push(domStr)\n  } else if (dowStr) {\n    dayParts.push(dowStr)\n  }\n\n  // Month\n  if (rawMonth !== \"*\") {\n    const mNames = parsed.fields!.month.map((m) => MONTH_FULL_NAMES[m])\n    dayParts.push(`in ${formatList(mNames)}`)\n  }\n\n  if (dayParts.length > 0) {\n    return `${timeStr}, ${dayParts.join(\", \")}`\n  }\n\n  if (isSpecificTime) {\n    return `${timeStr} every day`\n  }\n\n  return timeStr\n}\n",
      "type": "registry:lib"
    }
  ],
  "type": "registry:ui"
}