@brumaombra/ui-vintage 0.6.7 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (693) hide show
  1. package/README.md +61 -51
  2. package/module.mjs +75 -0
  3. package/package.json +81 -264
  4. package/src/components/background-grid/BackgroundGrid.vue +5 -0
  5. package/src/components/background-grid/index.ts +2 -0
  6. package/src/components/blog/AllPostsSection.vue +46 -0
  7. package/src/components/blog/BlogFAQSection.vue +71 -0
  8. package/src/components/blog/BlogHeaderSection.vue +35 -0
  9. package/src/components/blog/BlogInfoSection.vue +70 -0
  10. package/src/components/blog/BlogSectionTitle.vue +12 -0
  11. package/src/components/blog/CategoriesList.vue +17 -0
  12. package/src/components/blog/CategoriesSection.vue +14 -0
  13. package/src/components/blog/CategoryCard.vue +34 -0
  14. package/src/components/blog/HeaderCarousel.vue +194 -0
  15. package/src/components/blog/PostCard.vue +56 -0
  16. package/src/components/blog/PostsList.vue +16 -0
  17. package/src/components/blog/SocialShareSidebar.vue +94 -0
  18. package/src/components/blog/TableOfContents.vue +114 -0
  19. package/src/components/blog/index.ts +13 -0
  20. package/src/components/busy-indicator/BusyIndicator.vue +14 -0
  21. package/src/components/busy-indicator/busy-indicator-state.ts +88 -0
  22. package/src/components/busy-indicator/index.ts +3 -0
  23. package/src/components/card-grid/CardGrid.vue +47 -0
  24. package/src/components/card-grid/index.ts +2 -0
  25. package/src/components/chip/Chip.vue +40 -0
  26. package/src/components/chip/index.ts +2 -0
  27. package/src/components/confirm-dialog/ConfirmDialog.vue +60 -0
  28. package/src/components/confirm-dialog/confirm-dialog-state.ts +200 -0
  29. package/src/components/confirm-dialog/index.ts +12 -0
  30. package/src/components/content/BlogList.vue +60 -0
  31. package/src/components/content/BlogTable.vue +56 -0
  32. package/src/components/content/ProseHr.vue +26 -0
  33. package/src/components/content/index.ts +3 -0
  34. package/src/components/dashboard-shell/DashboardShell.vue +205 -0
  35. package/src/components/dashboard-shell/index.ts +2 -0
  36. package/src/components/data-list/DataList.vue +19 -0
  37. package/src/components/data-list/DataListItem.vue +17 -0
  38. package/src/components/data-list/DataListLabel.vue +17 -0
  39. package/src/components/data-list/DataListText.vue +17 -0
  40. package/src/components/data-list/DataListValue.vue +17 -0
  41. package/src/components/data-list/index.ts +5 -0
  42. package/src/components/empty-state-card/EmptyStateCard.vue +54 -0
  43. package/{dist/components/empty-state-card/index.d.ts → src/components/empty-state-card/index.ts} +1 -1
  44. package/src/components/error-page/ErrorPage.vue +118 -0
  45. package/src/components/error-page/index.ts +2 -0
  46. package/src/components/info-card/InfoCard.vue +42 -0
  47. package/src/components/info-card/index.ts +2 -0
  48. package/src/components/landing/index.ts +6 -0
  49. package/src/components/landing/landing-content/LandingContent.vue +17 -0
  50. package/src/components/landing/landing-content/index.ts +2 -0
  51. package/src/components/landing/landing-footer/LandingFooter.vue +151 -0
  52. package/src/components/landing/landing-footer/index.ts +3 -0
  53. package/src/components/landing/landing-navbar/LandingNavbar.vue +48 -0
  54. package/src/components/landing/landing-navbar/index.ts +2 -0
  55. package/src/components/landing/landing-shell/LandingShell.vue +58 -0
  56. package/src/components/landing/landing-shell/index.ts +2 -0
  57. package/src/components/language-flag/LanguageFlag.vue +54 -0
  58. package/src/components/language-flag/flags/ChineseFlag.vue +10 -0
  59. package/src/components/language-flag/flags/EnglishFlag.vue +9 -0
  60. package/src/components/language-flag/flags/FrenchFlag.vue +7 -0
  61. package/src/components/language-flag/flags/GermanFlag.vue +7 -0
  62. package/src/components/language-flag/flags/ItalianFlag.vue +9 -0
  63. package/src/components/language-flag/flags/JapaneseFlag.vue +6 -0
  64. package/src/components/language-flag/flags/PortugueseFlag.vue +59 -0
  65. package/src/components/language-flag/flags/RussianFlag.vue +7 -0
  66. package/src/components/language-flag/flags/SpanishFlag.vue +6 -0
  67. package/{dist/components/language-flag/index.d.ts → src/components/language-flag/index.ts} +1 -1
  68. package/src/components/language-selector/LanguageSelector.vue +154 -0
  69. package/{dist/components/language-selector/index.d.ts → src/components/language-selector/index.ts} +1 -1
  70. package/src/components/load-more-button/LoadMoreButton.vue +44 -0
  71. package/{dist/components/load-more-button/index.d.ts → src/components/load-more-button/index.ts} +1 -1
  72. package/src/components/loading-state-card/LoadingStateCard.vue +43 -0
  73. package/{dist/components/loading-state-card/index.d.ts → src/components/loading-state-card/index.ts} +1 -1
  74. package/src/components/message-dialog/MessageDialog.vue +101 -0
  75. package/src/components/message-dialog/index.ts +11 -0
  76. package/src/components/message-dialog/message-dialog-state.ts +168 -0
  77. package/src/components/message-toast/MessageToast.vue +75 -0
  78. package/src/components/message-toast/index.ts +9 -0
  79. package/src/components/message-toast/message-toast-state.ts +167 -0
  80. package/src/components/page-header/PageHeader.vue +52 -0
  81. package/src/components/page-header/index.ts +2 -0
  82. package/src/components/progress-component/ProgressComponent.vue +45 -0
  83. package/{dist/components/progress-component/index.d.ts → src/components/progress-component/index.ts} +1 -1
  84. package/src/components/single-value-card/SingleValueCard.vue +51 -0
  85. package/{dist/components/single-value-card/index.d.ts → src/components/single-value-card/index.ts} +1 -1
  86. package/src/components/slider-form-component/SliderFormComponent.vue +71 -0
  87. package/src/components/slider-form-component/index.ts +2 -0
  88. package/src/components/switch-form-component/SwitchFormComponent.vue +39 -0
  89. package/src/components/switch-form-component/index.ts +2 -0
  90. package/src/components/text-link/TextLink.vue +33 -0
  91. package/src/components/text-link/index.ts +2 -0
  92. package/src/components/theme-selector/ThemeSelector.vue +129 -0
  93. package/src/components/theme-selector/index.ts +2 -0
  94. package/src/components/ui/alert/Alert.vue +17 -0
  95. package/src/components/ui/alert/AlertDescription.vue +14 -0
  96. package/src/components/ui/alert/AlertTitle.vue +14 -0
  97. package/src/components/ui/alert/index.ts +15 -0
  98. package/src/components/ui/alert-dialog/AlertDialog.vue +15 -0
  99. package/src/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
  100. package/src/components/ui/alert-dialog/AlertDialogCancel.vue +22 -0
  101. package/src/components/ui/alert-dialog/AlertDialogContent.vue +36 -0
  102. package/src/components/ui/alert-dialog/AlertDialogDescription.vue +19 -0
  103. package/src/components/ui/alert-dialog/AlertDialogFooter.vue +18 -0
  104. package/src/components/ui/alert-dialog/AlertDialogHeader.vue +14 -0
  105. package/src/components/ui/alert-dialog/AlertDialogTitle.vue +17 -0
  106. package/src/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
  107. package/src/components/ui/alert-dialog/index.ts +9 -0
  108. package/src/components/ui/badge/Badge.vue +26 -0
  109. package/src/components/ui/badge/index.ts +1 -0
  110. package/src/components/ui/breadcrumb/Breadcrumb.vue +17 -0
  111. package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +24 -0
  112. package/src/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  113. package/src/components/ui/breadcrumb/BreadcrumbLink.vue +21 -0
  114. package/src/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
  115. package/src/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  116. package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +23 -0
  117. package/src/components/ui/breadcrumb/index.ts +7 -0
  118. package/src/components/ui/busy/Busy.vue +45 -0
  119. package/src/components/ui/busy/index.ts +1 -0
  120. package/src/components/ui/button/Button.vue +24 -0
  121. package/src/components/ui/button/index.ts +41 -0
  122. package/src/components/ui/calendar/Calendar.vue +139 -0
  123. package/src/components/ui/calendar/CalendarCell.vue +23 -0
  124. package/src/components/ui/calendar/CalendarCellTrigger.vue +39 -0
  125. package/src/components/ui/calendar/CalendarGrid.vue +23 -0
  126. package/src/components/ui/calendar/CalendarGridBody.vue +15 -0
  127. package/src/components/ui/calendar/CalendarGridHead.vue +16 -0
  128. package/src/components/ui/calendar/CalendarGridRow.vue +22 -0
  129. package/src/components/ui/calendar/CalendarHeadCell.vue +23 -0
  130. package/src/components/ui/calendar/CalendarHeader.vue +23 -0
  131. package/src/components/ui/calendar/CalendarHeading.vue +30 -0
  132. package/src/components/ui/calendar/CalendarNextButton.vue +32 -0
  133. package/src/components/ui/calendar/CalendarPrevButton.vue +32 -0
  134. package/src/components/ui/calendar/index.ts +14 -0
  135. package/src/components/ui/card/Card.vue +31 -0
  136. package/src/components/ui/card/CardAction.vue +14 -0
  137. package/src/components/ui/card/CardContent.vue +14 -0
  138. package/src/components/ui/card/CardDescription.vue +14 -0
  139. package/src/components/ui/card/CardFooter.vue +14 -0
  140. package/src/components/ui/card/CardHeader.vue +14 -0
  141. package/src/components/ui/card/CardText.vue +14 -0
  142. package/src/components/ui/card/CardTitle.vue +14 -0
  143. package/src/components/ui/card/index.ts +8 -0
  144. package/src/components/ui/command/Command.vue +83 -0
  145. package/src/components/ui/command/CommandDialog.vue +31 -0
  146. package/src/components/ui/command/CommandEmpty.vue +27 -0
  147. package/src/components/ui/command/CommandGroup.vue +47 -0
  148. package/src/components/ui/command/CommandInput.vue +31 -0
  149. package/src/components/ui/command/CommandItem.vue +76 -0
  150. package/src/components/ui/command/CommandList.vue +25 -0
  151. package/src/components/ui/command/CommandSeparator.vue +17 -0
  152. package/src/components/ui/command/CommandShortcut.vue +14 -0
  153. package/src/components/ui/command/index.ts +25 -0
  154. package/src/components/ui/date-picker/DatePicker.vue +67 -0
  155. package/src/components/ui/date-picker/index.ts +2 -0
  156. package/src/components/ui/date-time-picker/DateTimePicker.vue +170 -0
  157. package/{dist/components/ui/date-time-picker/index.d.ts → src/components/ui/date-time-picker/index.ts} +2 -2
  158. package/src/components/ui/dialog/Dialog.vue +15 -0
  159. package/src/components/ui/dialog/DialogClose.vue +15 -0
  160. package/src/components/ui/dialog/DialogContent.vue +54 -0
  161. package/src/components/ui/dialog/DialogDescription.vue +19 -0
  162. package/src/components/ui/dialog/DialogFooter.vue +18 -0
  163. package/src/components/ui/dialog/DialogHeader.vue +14 -0
  164. package/src/components/ui/dialog/DialogOverlay.vue +17 -0
  165. package/src/components/ui/dialog/DialogScrollContent.vue +57 -0
  166. package/src/components/ui/dialog/DialogTitle.vue +19 -0
  167. package/src/components/ui/dialog/DialogTrigger.vue +12 -0
  168. package/src/components/ui/dialog/index.ts +10 -0
  169. package/src/components/ui/field/Field.vue +20 -0
  170. package/src/components/ui/field/FieldContent.vue +17 -0
  171. package/src/components/ui/field/FieldDescription.vue +19 -0
  172. package/src/components/ui/field/FieldError.vue +48 -0
  173. package/src/components/ui/field/FieldGroup.vue +17 -0
  174. package/src/components/ui/field/FieldLabel.vue +20 -0
  175. package/src/components/ui/field/FieldLegend.vue +20 -0
  176. package/src/components/ui/field/FieldSeparator.vue +21 -0
  177. package/src/components/ui/field/FieldSet.vue +18 -0
  178. package/src/components/ui/field/FieldTitle.vue +17 -0
  179. package/src/components/ui/field/index.ts +41 -0
  180. package/src/components/ui/input/Input.vue +29 -0
  181. package/src/components/ui/input/index.ts +1 -0
  182. package/src/components/ui/label/Label.vue +21 -0
  183. package/src/components/ui/label/index.ts +1 -0
  184. package/src/components/ui/native-select/NativeSelect.vue +52 -0
  185. package/src/components/ui/native-select/NativeSelectOptGroup.vue +12 -0
  186. package/src/components/ui/native-select/NativeSelectOption.vue +12 -0
  187. package/src/components/ui/native-select/index.ts +3 -0
  188. package/src/components/ui/popover/Popover.vue +15 -0
  189. package/src/components/ui/popover/PopoverAnchor.vue +12 -0
  190. package/src/components/ui/popover/PopoverContent.vue +40 -0
  191. package/src/components/ui/popover/PopoverTrigger.vue +12 -0
  192. package/src/components/ui/popover/index.ts +4 -0
  193. package/src/components/ui/progress/Progress.vue +38 -0
  194. package/src/components/ui/progress/index.ts +1 -0
  195. package/src/components/ui/scroll-area/ScrollArea.vue +33 -0
  196. package/src/components/ui/scroll-area/ScrollBar.vue +32 -0
  197. package/src/components/ui/scroll-area/index.ts +2 -0
  198. package/src/components/ui/select/Select.vue +15 -0
  199. package/src/components/ui/select/SelectContent.vue +50 -0
  200. package/src/components/ui/select/SelectGroup.vue +12 -0
  201. package/src/components/ui/select/SelectItem.vue +50 -0
  202. package/src/components/ui/select/SelectItemContent.vue +40 -0
  203. package/src/components/ui/select/SelectItemText.vue +12 -0
  204. package/src/components/ui/select/SelectLabel.vue +14 -0
  205. package/src/components/ui/select/SelectScrollDownButton.vue +23 -0
  206. package/src/components/ui/select/SelectScrollUpButton.vue +23 -0
  207. package/src/components/ui/select/SelectSeparator.vue +15 -0
  208. package/src/components/ui/select/SelectTrigger.vue +31 -0
  209. package/src/components/ui/select/SelectValue.vue +12 -0
  210. package/src/components/ui/select/SelectValueContent.vue +44 -0
  211. package/src/components/ui/select/index.ts +13 -0
  212. package/src/components/ui/separator/Separator.vue +24 -0
  213. package/src/components/ui/separator/index.ts +1 -0
  214. package/src/components/ui/sheet/Sheet.vue +15 -0
  215. package/src/components/ui/sheet/SheetClose.vue +12 -0
  216. package/src/components/ui/sheet/SheetContent.vue +49 -0
  217. package/src/components/ui/sheet/SheetDescription.vue +17 -0
  218. package/src/components/ui/sheet/SheetFooter.vue +12 -0
  219. package/src/components/ui/sheet/SheetHeader.vue +12 -0
  220. package/src/components/ui/sheet/SheetOverlay.vue +17 -0
  221. package/src/components/ui/sheet/SheetTitle.vue +17 -0
  222. package/src/components/ui/sheet/SheetTrigger.vue +12 -0
  223. package/src/components/ui/sheet/index.ts +8 -0
  224. package/src/components/ui/sidebar/Sidebar.vue +77 -0
  225. package/src/components/ui/sidebar/SidebarContent.vue +14 -0
  226. package/src/components/ui/sidebar/SidebarFooter.vue +14 -0
  227. package/src/components/ui/sidebar/SidebarGroup.vue +14 -0
  228. package/src/components/ui/sidebar/SidebarGroupAction.vue +21 -0
  229. package/src/components/ui/sidebar/SidebarGroupContent.vue +14 -0
  230. package/src/components/ui/sidebar/SidebarGroupLabel.vue +19 -0
  231. package/src/components/ui/sidebar/SidebarHeader.vue +14 -0
  232. package/src/components/ui/sidebar/SidebarInput.vue +18 -0
  233. package/src/components/ui/sidebar/SidebarInset.vue +18 -0
  234. package/src/components/ui/sidebar/SidebarMenu.vue +14 -0
  235. package/src/components/ui/sidebar/SidebarMenuAction.vue +30 -0
  236. package/src/components/ui/sidebar/SidebarMenuBadge.vue +23 -0
  237. package/src/components/ui/sidebar/SidebarMenuButton.vue +44 -0
  238. package/src/components/ui/sidebar/SidebarMenuButtonChild.vue +27 -0
  239. package/src/components/ui/sidebar/SidebarMenuItem.vue +14 -0
  240. package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +20 -0
  241. package/src/components/ui/sidebar/SidebarMenuSub.vue +18 -0
  242. package/src/components/ui/sidebar/SidebarMenuSubButton.vue +28 -0
  243. package/src/components/ui/sidebar/SidebarMenuSubItem.vue +14 -0
  244. package/src/components/ui/sidebar/SidebarProvider.vue +79 -0
  245. package/src/components/ui/sidebar/SidebarRail.vue +25 -0
  246. package/src/components/ui/sidebar/SidebarSeparator.vue +15 -0
  247. package/src/components/ui/sidebar/SidebarTrigger.vue +21 -0
  248. package/src/components/ui/sidebar/index.ts +64 -0
  249. package/src/components/ui/sidebar/utils.ts +19 -0
  250. package/src/components/ui/skeleton/Skeleton.vue +14 -0
  251. package/src/components/ui/skeleton/index.ts +1 -0
  252. package/src/components/ui/slider/Slider.vue +27 -0
  253. package/src/components/ui/slider/index.ts +1 -0
  254. package/src/components/ui/switch/Switch.vue +30 -0
  255. package/src/components/ui/switch/index.ts +1 -0
  256. package/src/components/ui/table/Table.vue +16 -0
  257. package/src/components/ui/table/TableBody.vue +17 -0
  258. package/src/components/ui/table/TableCaption.vue +17 -0
  259. package/src/components/ui/table/TableCell.vue +22 -0
  260. package/src/components/ui/table/TableEmpty.vue +34 -0
  261. package/src/components/ui/table/TableFooter.vue +17 -0
  262. package/src/components/ui/table/TableHead.vue +17 -0
  263. package/src/components/ui/table/TableHeader.vue +17 -0
  264. package/src/components/ui/table/TableRow.vue +17 -0
  265. package/src/components/ui/table/index.ts +9 -0
  266. package/src/components/ui/tabs/Tabs.vue +24 -0
  267. package/src/components/ui/tabs/TabsContent.vue +21 -0
  268. package/src/components/ui/tabs/TabsList.vue +24 -0
  269. package/src/components/ui/tabs/TabsTrigger.vue +26 -0
  270. package/src/components/ui/tabs/index.ts +4 -0
  271. package/src/components/ui/textarea/Textarea.vue +29 -0
  272. package/src/components/ui/textarea/index.ts +1 -0
  273. package/src/components/ui/time-picker/TimePicker.vue +56 -0
  274. package/src/components/ui/time-picker/index.ts +2 -0
  275. package/src/components/ui/tooltip/Tooltip.vue +15 -0
  276. package/src/components/ui/tooltip/TooltipContent.vue +30 -0
  277. package/src/components/ui/tooltip/TooltipProvider.vue +14 -0
  278. package/src/components/ui/tooltip/TooltipTrigger.vue +12 -0
  279. package/src/components/ui/tooltip/index.ts +4 -0
  280. package/{dist/i18n/de.json.d.ts → src/i18n/de.json} +26 -4
  281. package/{dist/i18n/en.json.d.ts → src/i18n/en.json} +26 -4
  282. package/{dist/i18n/es.json.d.ts → src/i18n/es.json} +26 -4
  283. package/{dist/i18n/fr.json.d.ts → src/i18n/fr.json} +26 -4
  284. package/{dist/i18n/it.json.d.ts → src/i18n/it.json} +26 -4
  285. package/{dist/i18n/ja.json.d.ts → src/i18n/ja.json} +26 -4
  286. package/{dist/i18n/pt.json.d.ts → src/i18n/pt.json} +26 -4
  287. package/{dist/i18n/ru.json.d.ts → src/i18n/ru.json} +26 -4
  288. package/{dist/i18n/zh.json.d.ts → src/i18n/zh.json} +26 -4
  289. package/src/lib/color-tokens.ts +51 -0
  290. package/src/lib/i18n.ts +85 -0
  291. package/src/lib/utils.ts +29 -0
  292. package/src/nuxt-components.d.ts +5 -0
  293. package/src/runtime/ui-vintage-i18n-plugin.js +48 -0
  294. package/src/shims-vue.d.ts +5 -0
  295. package/src/styles.css +224 -0
  296. package/dist/AlertDialogTitle.vue_vue_type_script_setup_true_lang-_UW48pv7.js +0 -361
  297. package/dist/BackgroundGrid-BJDDcLzF.js +0 -13
  298. package/dist/Busy-DRHkNObd.js +0 -55
  299. package/dist/BusyIndicator-D-4YHN2L.js +0 -4
  300. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-D4jkKsDX.js +0 -3800
  301. package/dist/Card.vue_vue_type_script_setup_true_lang-DwBhZuSq.js +0 -30
  302. package/dist/CardContent.vue_vue_type_script_setup_true_lang-dBzO0q1t.js +0 -22
  303. package/dist/CardFooter.vue_vue_type_script_setup_true_lang-B5EqgrgN.js +0 -22
  304. package/dist/CardText.vue_vue_type_script_setup_true_lang-CJ66un34.js +0 -22
  305. package/dist/ChineseFlag-CVrOCbRz.js +0 -18
  306. package/dist/Collection-4P3HQ4uU.js +0 -76
  307. package/dist/ConfigProvider-DYO65bNW.js +0 -6
  308. package/dist/ConfirmDialog-Zu4m9TY-.js +0 -4
  309. package/dist/DatePicker.vue_vue_type_script_setup_true_lang-C_bocxOu.js +0 -88
  310. package/dist/DialogClose-DxCTEp0d.js +0 -36
  311. package/dist/DialogPortal-BiMJAKLg.js +0 -36
  312. package/dist/DialogTitle-jKgSCoXM.js +0 -526
  313. package/dist/DialogTitle.vue_vue_type_script_setup_true_lang-B79YbKSf.js +0 -184
  314. package/dist/DialogTrigger-Cb3rLcid.js +0 -52
  315. package/dist/EmptyStateCard.vue_vue_type_script_setup_true_lang-B2-mxoaA.js +0 -59
  316. package/dist/EnglishFlag-BrpG8XMW.js +0 -18
  317. package/dist/FocusScope-mzbqk6Y_.js +0 -448
  318. package/dist/FrenchFlag-CUdQacS3.js +0 -35
  319. package/dist/GermanFlag-Bc1CeEHw.js +0 -35
  320. package/dist/HugeiconsIcon.vue-By2RXWWz.js +0 -111
  321. package/dist/Input.vue_vue_type_script_setup_true_lang-KQETSF2I.js +0 -37
  322. package/dist/ItalianFlag-BAdg13z7.js +0 -34
  323. package/dist/JapaneseFlag-Dnd2ITzZ.js +0 -27
  324. package/dist/Label.vue_vue_type_script_setup_true_lang-BzHEIagR.js +0 -65
  325. package/dist/LandingContent.vue_vue_type_script_setup_true_lang-Wgtl_yeD.js +0 -21
  326. package/dist/LandingFooter.vue_vue_type_script_setup_true_lang-Dxc03HyK.js +0 -159
  327. package/dist/LandingNavbar.vue_vue_type_script_setup_true_lang-DDB1dSjS.js +0 -63
  328. package/dist/LandingShell.vue_vue_type_script_setup_true_lang-B1PnJ78g.js +0 -49
  329. package/dist/LoadMoreButton.vue_vue_type_script_setup_true_lang-DkaLgfxc.js +0 -61
  330. package/dist/LoadingStateCard.vue_vue_type_script_setup_true_lang-BSErG9UN.js +0 -53
  331. package/dist/MessageDialog-ChS4d2qN.js +0 -4
  332. package/dist/MessageToast-DBztWhRL.js +0 -79
  333. package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-CNcUI9Yh.js +0 -75
  334. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-Cf33q_yT.js +0 -801
  335. package/dist/PopperContent-DUJ8a4i0.js +0 -2144
  336. package/dist/PortugueseFlag-DU2jEbaQ.js +0 -19
  337. package/dist/Presence-CTmUEdMR.js +0 -168
  338. package/dist/Primitive-D3IcFg81.js +0 -61
  339. package/dist/Progress.vue_vue_type_script_setup_true_lang-BDJfyW-d.js +0 -188
  340. package/dist/RussianFlag-Cnc4PHmq.js +0 -29
  341. package/dist/Separator-CFm_M4pb.js +0 -87
  342. package/dist/Separator.vue_vue_type_script_setup_true_lang-D9BozdWD.js +0 -29
  343. package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-Ja7-gmXd.js +0 -167
  344. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js +0 -20
  345. package/dist/Slider.vue_vue_type_script_setup_true_lang-CSOSwGGr.js +0 -803
  346. package/dist/SpanishFlag-Dy-C9kGk.js +0 -28
  347. package/dist/Switch.vue_vue_type_script_setup_true_lang-C8mqOepU.js +0 -227
  348. package/dist/Teleport-DTOwRCqx.js +0 -315
  349. package/dist/TimePicker.vue_vue_type_script_setup_true_lang-CwuwDICo.js +0 -51
  350. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-BMdZRPa3.js +0 -1120
  351. package/dist/VisuallyHidden-udQT2Fmo.js +0 -60
  352. package/dist/VisuallyHiddenInput-D5eipDQU.js +0 -142
  353. package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
  354. package/dist/alert-dialog.js +0 -165
  355. package/dist/alert.js +0 -66
  356. package/dist/background-grid.js +0 -5
  357. package/dist/badge.js +0 -33
  358. package/dist/breadcrumb.js +0 -159
  359. package/dist/busy-indicator.js +0 -66
  360. package/dist/busy.js +0 -4
  361. package/dist/button.js +0 -67
  362. package/dist/calendar.js +0 -15
  363. package/dist/card-grid.js +0 -58
  364. package/dist/card.js +0 -84
  365. package/dist/chip.js +0 -47
  366. package/dist/clamp-D5Ye0kJT.js +0 -6
  367. package/dist/color-tokens-D9BviGPK.js +0 -40
  368. package/dist/command.js +0 -1099
  369. package/dist/components/background-grid/BackgroundGrid.vue.d.ts +0 -2
  370. package/dist/components/background-grid/index.d.ts +0 -2
  371. package/dist/components/busy-indicator/BusyIndicator.vue.d.ts +0 -2
  372. package/dist/components/busy-indicator/busy-indicator-state.d.ts +0 -15
  373. package/dist/components/busy-indicator/index.d.ts +0 -3
  374. package/dist/components/card-grid/CardGrid.vue.d.ts +0 -88
  375. package/dist/components/card-grid/index.d.ts +0 -2
  376. package/dist/components/chip/Chip.vue.d.ts +0 -17
  377. package/dist/components/chip/index.d.ts +0 -2
  378. package/dist/components/confirm-dialog/ConfirmDialog.vue.d.ts +0 -2
  379. package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +0 -40
  380. package/dist/components/confirm-dialog/index.d.ts +0 -3
  381. package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +0 -67
  382. package/dist/components/dashboard-shell/index.d.ts +0 -2
  383. package/dist/components/data-list/DataList.vue.d.ts +0 -21
  384. package/dist/components/data-list/DataListItem.vue.d.ts +0 -21
  385. package/dist/components/data-list/DataListLabel.vue.d.ts +0 -21
  386. package/dist/components/data-list/DataListText.vue.d.ts +0 -21
  387. package/dist/components/data-list/DataListValue.vue.d.ts +0 -21
  388. package/dist/components/data-list/index.d.ts +0 -5
  389. package/dist/components/empty-state-card/EmptyStateCard.vue.d.ts +0 -73
  390. package/dist/components/error-page/ErrorPage.vue.d.ts +0 -51
  391. package/dist/components/error-page/index.d.ts +0 -2
  392. package/dist/components/info-card/InfoCard.vue.d.ts +0 -46
  393. package/dist/components/info-card/index.d.ts +0 -2
  394. package/dist/components/landing/index.d.ts +0 -6
  395. package/dist/components/landing/landing-content/LandingContent.vue.d.ts +0 -21
  396. package/dist/components/landing/landing-content/index.d.ts +0 -2
  397. package/dist/components/landing/landing-footer/LandingFooter.vue.d.ts +0 -39
  398. package/dist/components/landing/landing-footer/index.d.ts +0 -3
  399. package/dist/components/landing/landing-navbar/LandingNavbar.vue.d.ts +0 -32
  400. package/dist/components/landing/landing-navbar/index.d.ts +0 -2
  401. package/dist/components/landing/landing-shell/LandingShell.vue.d.ts +0 -31
  402. package/dist/components/landing/landing-shell/index.d.ts +0 -2
  403. package/dist/components/language-flag/LanguageFlag.vue.d.ts +0 -14
  404. package/dist/components/language-flag/flags/ChineseFlag.vue.d.ts +0 -2
  405. package/dist/components/language-flag/flags/EnglishFlag.vue.d.ts +0 -2
  406. package/dist/components/language-flag/flags/FrenchFlag.vue.d.ts +0 -2
  407. package/dist/components/language-flag/flags/GermanFlag.vue.d.ts +0 -2
  408. package/dist/components/language-flag/flags/ItalianFlag.vue.d.ts +0 -2
  409. package/dist/components/language-flag/flags/JapaneseFlag.vue.d.ts +0 -2
  410. package/dist/components/language-flag/flags/PortugueseFlag.vue.d.ts +0 -2
  411. package/dist/components/language-flag/flags/RussianFlag.vue.d.ts +0 -2
  412. package/dist/components/language-flag/flags/SpanishFlag.vue.d.ts +0 -2
  413. package/dist/components/language-selector/LanguageSelector.vue.d.ts +0 -31
  414. package/dist/components/load-more-button/LoadMoreButton.vue.d.ts +0 -36
  415. package/dist/components/loading-state-card/LoadingStateCard.vue.d.ts +0 -55
  416. package/dist/components/message-dialog/MessageDialog.vue.d.ts +0 -2
  417. package/dist/components/message-dialog/index.d.ts +0 -3
  418. package/dist/components/message-dialog/message-dialog-state.d.ts +0 -30
  419. package/dist/components/message-toast/MessageToast.vue.d.ts +0 -2
  420. package/dist/components/message-toast/index.d.ts +0 -2
  421. package/dist/components/message-toast/message-toast-state.d.ts +0 -18
  422. package/dist/components/page-header/PageHeader.vue.d.ts +0 -48
  423. package/dist/components/page-header/index.d.ts +0 -2
  424. package/dist/components/progress-component/ProgressComponent.vue.d.ts +0 -47
  425. package/dist/components/single-value-card/SingleValueCard.vue.d.ts +0 -40
  426. package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +0 -23
  427. package/dist/components/slider-form-component/index.d.ts +0 -2
  428. package/dist/components/switch-form-component/SwitchFormComponent.vue.d.ts +0 -12
  429. package/dist/components/switch-form-component/index.d.ts +0 -2
  430. package/dist/components/text-link/TextLink.vue.d.ts +0 -35
  431. package/dist/components/text-link/index.d.ts +0 -2
  432. package/dist/components/theme-selector/ThemeSelector.vue.d.ts +0 -2
  433. package/dist/components/theme-selector/index.d.ts +0 -2
  434. package/dist/components/ui/alert/Alert.vue.d.ts +0 -23
  435. package/dist/components/ui/alert/AlertDescription.vue.d.ts +0 -21
  436. package/dist/components/ui/alert/AlertTitle.vue.d.ts +0 -21
  437. package/dist/components/ui/alert/index.d.ts +0 -9
  438. package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +0 -25
  439. package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +0 -22
  440. package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +0 -22
  441. package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +0 -36
  442. package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +0 -22
  443. package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +0 -21
  444. package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +0 -21
  445. package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +0 -22
  446. package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -18
  447. package/dist/components/ui/alert-dialog/index.d.ts +0 -9
  448. package/dist/components/ui/badge/Badge.vue.d.ts +0 -16
  449. package/dist/components/ui/badge/index.d.ts +0 -1
  450. package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +0 -21
  451. package/dist/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -21
  452. package/dist/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +0 -21
  453. package/dist/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +0 -24
  454. package/dist/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +0 -21
  455. package/dist/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +0 -21
  456. package/dist/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -21
  457. package/dist/components/ui/breadcrumb/index.d.ts +0 -7
  458. package/dist/components/ui/busy/Busy.vue.d.ts +0 -27
  459. package/dist/components/ui/busy/index.d.ts +0 -1
  460. package/dist/components/ui/button/Button.vue.d.ts +0 -27
  461. package/dist/components/ui/button/index.d.ts +0 -7
  462. package/dist/components/ui/calendar/Calendar.vue.d.ts +0 -44
  463. package/dist/components/ui/calendar/CalendarCell.vue.d.ts +0 -22
  464. package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +0 -24
  465. package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +0 -22
  466. package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +0 -18
  467. package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +0 -22
  468. package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +0 -22
  469. package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +0 -22
  470. package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +0 -22
  471. package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +0 -28
  472. package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +0 -22
  473. package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +0 -22
  474. package/dist/components/ui/calendar/index.d.ts +0 -13
  475. package/dist/components/ui/card/Card.vue.d.ts +0 -24
  476. package/dist/components/ui/card/CardAction.vue.d.ts +0 -21
  477. package/dist/components/ui/card/CardContent.vue.d.ts +0 -21
  478. package/dist/components/ui/card/CardDescription.vue.d.ts +0 -21
  479. package/dist/components/ui/card/CardFooter.vue.d.ts +0 -21
  480. package/dist/components/ui/card/CardHeader.vue.d.ts +0 -21
  481. package/dist/components/ui/card/CardText.vue.d.ts +0 -21
  482. package/dist/components/ui/card/CardTitle.vue.d.ts +0 -21
  483. package/dist/components/ui/card/index.d.ts +0 -8
  484. package/dist/components/ui/command/Command.vue.d.ts +0 -40
  485. package/dist/components/ui/command/CommandDialog.vue.d.ts +0 -32
  486. package/dist/components/ui/command/CommandEmpty.vue.d.ts +0 -22
  487. package/dist/components/ui/command/CommandGroup.vue.d.ts +0 -23
  488. package/dist/components/ui/command/CommandInput.vue.d.ts +0 -7
  489. package/dist/components/ui/command/CommandItem.vue.d.ts +0 -30
  490. package/dist/components/ui/command/CommandList.vue.d.ts +0 -22
  491. package/dist/components/ui/command/CommandSeparator.vue.d.ts +0 -22
  492. package/dist/components/ui/command/CommandShortcut.vue.d.ts +0 -21
  493. package/dist/components/ui/command/index.d.ts +0 -90
  494. package/dist/components/ui/date-picker/DatePicker.vue.d.ts +0 -21
  495. package/dist/components/ui/date-picker/index.d.ts +0 -2
  496. package/dist/components/ui/date-time-picker/DateTimePicker.vue.d.ts +0 -27
  497. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -25
  498. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -18
  499. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -39
  500. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -22
  501. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -21
  502. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -21
  503. package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +0 -22
  504. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -39
  505. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -22
  506. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -18
  507. package/dist/components/ui/dialog/index.d.ts +0 -10
  508. package/dist/components/ui/field/Field.vue.d.ts +0 -23
  509. package/dist/components/ui/field/FieldContent.vue.d.ts +0 -21
  510. package/dist/components/ui/field/FieldDescription.vue.d.ts +0 -21
  511. package/dist/components/ui/field/FieldError.vue.d.ts +0 -24
  512. package/dist/components/ui/field/FieldGroup.vue.d.ts +0 -21
  513. package/dist/components/ui/field/FieldLabel.vue.d.ts +0 -21
  514. package/dist/components/ui/field/FieldLegend.vue.d.ts +0 -22
  515. package/dist/components/ui/field/FieldSeparator.vue.d.ts +0 -21
  516. package/dist/components/ui/field/FieldSet.vue.d.ts +0 -21
  517. package/dist/components/ui/field/FieldTitle.vue.d.ts +0 -21
  518. package/dist/components/ui/field/index.d.ts +0 -15
  519. package/dist/components/ui/input/Input.vue.d.ts +0 -12
  520. package/dist/components/ui/input/index.d.ts +0 -1
  521. package/dist/components/ui/label/Label.vue.d.ts +0 -22
  522. package/dist/components/ui/label/index.d.ts +0 -1
  523. package/dist/components/ui/native-select/NativeSelect.vue.d.ts +0 -27
  524. package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +0 -21
  525. package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +0 -21
  526. package/dist/components/ui/native-select/index.d.ts +0 -3
  527. package/dist/components/ui/popover/Popover.vue.d.ts +0 -25
  528. package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +0 -18
  529. package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -39
  530. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -18
  531. package/dist/components/ui/popover/index.d.ts +0 -4
  532. package/dist/components/ui/progress/Progress.vue.d.ts +0 -9
  533. package/dist/components/ui/progress/index.d.ts +0 -1
  534. package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +0 -22
  535. package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +0 -9
  536. package/dist/components/ui/scroll-area/index.d.ts +0 -2
  537. package/dist/components/ui/select/Select.vue.d.ts +0 -28
  538. package/dist/components/ui/select/SelectContent.vue.d.ts +0 -35
  539. package/dist/components/ui/select/SelectGroup.vue.d.ts +0 -18
  540. package/dist/components/ui/select/SelectItem.vue.d.ts +0 -24
  541. package/dist/components/ui/select/SelectItemContent.vue.d.ts +0 -15
  542. package/dist/components/ui/select/SelectItemText.vue.d.ts +0 -18
  543. package/dist/components/ui/select/SelectLabel.vue.d.ts +0 -22
  544. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -22
  545. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -22
  546. package/dist/components/ui/select/SelectSeparator.vue.d.ts +0 -7
  547. package/dist/components/ui/select/SelectTrigger.vue.d.ts +0 -25
  548. package/dist/components/ui/select/SelectValue.vue.d.ts +0 -18
  549. package/dist/components/ui/select/SelectValueContent.vue.d.ts +0 -16
  550. package/dist/components/ui/select/index.d.ts +0 -13
  551. package/dist/components/ui/separator/Separator.vue.d.ts +0 -10
  552. package/dist/components/ui/separator/index.d.ts +0 -1
  553. package/dist/components/ui/sheet/Sheet.vue.d.ts +0 -25
  554. package/dist/components/ui/sheet/SheetClose.vue.d.ts +0 -18
  555. package/dist/components/ui/sheet/SheetContent.vue.d.ts +0 -39
  556. package/dist/components/ui/sheet/SheetDescription.vue.d.ts +0 -22
  557. package/dist/components/ui/sheet/SheetFooter.vue.d.ts +0 -21
  558. package/dist/components/ui/sheet/SheetHeader.vue.d.ts +0 -21
  559. package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +0 -22
  560. package/dist/components/ui/sheet/SheetTitle.vue.d.ts +0 -22
  561. package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +0 -18
  562. package/dist/components/ui/sheet/index.d.ts +0 -8
  563. package/dist/components/ui/sidebar/Sidebar.vue.d.ts +0 -25
  564. package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +0 -21
  565. package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +0 -21
  566. package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +0 -21
  567. package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +0 -22
  568. package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +0 -21
  569. package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +0 -22
  570. package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +0 -21
  571. package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +0 -21
  572. package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +0 -21
  573. package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +0 -21
  574. package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +0 -25
  575. package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +0 -21
  576. package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +0 -27
  577. package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -30
  578. package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +0 -21
  579. package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -7
  580. package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +0 -21
  581. package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +0 -27
  582. package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +0 -21
  583. package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +0 -32
  584. package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +0 -21
  585. package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +0 -21
  586. package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +0 -6
  587. package/dist/components/ui/sidebar/index.d.ts +0 -38
  588. package/dist/components/ui/sidebar/utils.d.ts +0 -56
  589. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +0 -6
  590. package/dist/components/ui/skeleton/index.d.ts +0 -1
  591. package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
  592. package/dist/components/ui/slider/index.d.ts +0 -1
  593. package/dist/components/ui/switch/Switch.vue.d.ts +0 -29
  594. package/dist/components/ui/switch/index.d.ts +0 -1
  595. package/dist/components/ui/table/Table.vue.d.ts +0 -21
  596. package/dist/components/ui/table/TableBody.vue.d.ts +0 -21
  597. package/dist/components/ui/table/TableCaption.vue.d.ts +0 -21
  598. package/dist/components/ui/table/TableCell.vue.d.ts +0 -21
  599. package/dist/components/ui/table/TableEmpty.vue.d.ts +0 -24
  600. package/dist/components/ui/table/TableFooter.vue.d.ts +0 -21
  601. package/dist/components/ui/table/TableHead.vue.d.ts +0 -21
  602. package/dist/components/ui/table/TableHeader.vue.d.ts +0 -21
  603. package/dist/components/ui/table/TableRow.vue.d.ts +0 -21
  604. package/dist/components/ui/table/index.d.ts +0 -9
  605. package/dist/components/ui/tabs/Tabs.vue.d.ts +0 -28
  606. package/dist/components/ui/tabs/TabsContent.vue.d.ts +0 -22
  607. package/dist/components/ui/tabs/TabsList.vue.d.ts +0 -22
  608. package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +0 -22
  609. package/dist/components/ui/tabs/index.d.ts +0 -4
  610. package/dist/components/ui/textarea/Textarea.vue.d.ts +0 -12
  611. package/dist/components/ui/textarea/index.d.ts +0 -1
  612. package/dist/components/ui/time-picker/TimePicker.vue.d.ts +0 -21
  613. package/dist/components/ui/time-picker/index.d.ts +0 -2
  614. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +0 -24
  615. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +0 -30
  616. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -20
  617. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -18
  618. package/dist/components/ui/tooltip/index.d.ts +0 -4
  619. package/dist/confirm-dialog.js +0 -228
  620. package/dist/createContext-BabAT1K8.js +0 -19
  621. package/dist/dashboard-shell.js +0 -231
  622. package/dist/data-list.js +0 -97
  623. package/dist/date-picker.js +0 -5
  624. package/dist/date-time-picker.js +0 -140
  625. package/dist/dialog.js +0 -147
  626. package/dist/empty-state-card.js +0 -5
  627. package/dist/error-page.js +0 -115
  628. package/dist/field.js +0 -294
  629. package/dist/getActiveElement-Bmy6QsUb.js +0 -9
  630. package/dist/i18n.js +0 -562
  631. package/dist/index-DDJjWaIl.js +0 -363
  632. package/dist/index-Dw56kNV0.js +0 -251
  633. package/dist/index-FpH8cK6B.js +0 -44
  634. package/dist/index.min-CZ9FIOXr.js +0 -23
  635. package/dist/info-card.js +0 -65
  636. package/dist/input.js +0 -4
  637. package/dist/label.js +0 -4
  638. package/dist/landing-content.js +0 -5
  639. package/dist/landing-footer.js +0 -5
  640. package/dist/landing-navbar.js +0 -5
  641. package/dist/landing-shell.js +0 -5
  642. package/dist/landing.js +0 -11
  643. package/dist/language-flag.js +0 -61
  644. package/dist/language-selector.js +0 -169
  645. package/dist/lib/color-tokens.d.ts +0 -6
  646. package/dist/lib/i18n.d.ts +0 -985
  647. package/dist/lib/utils.d.ts +0 -2
  648. package/dist/load-more-button.js +0 -5
  649. package/dist/loading-state-card.js +0 -5
  650. package/dist/message-dialog.js +0 -226
  651. package/dist/message-toast.js +0 -103
  652. package/dist/native-select.js +0 -25
  653. package/dist/nullish-D3tMkl6i.js +0 -6
  654. package/dist/page-header.js +0 -57
  655. package/dist/popover.js +0 -65
  656. package/dist/progress-component.js +0 -51
  657. package/dist/progress.js +0 -4
  658. package/dist/scroll-area.js +0 -1080
  659. package/dist/select.js +0 -2222
  660. package/dist/separator.js +0 -4
  661. package/dist/sheet.js +0 -68
  662. package/dist/sidebar.js +0 -807
  663. package/dist/single-value-card.js +0 -64
  664. package/dist/skeleton.js +0 -4
  665. package/dist/slider-form-component.js +0 -60
  666. package/dist/slider.js +0 -4
  667. package/dist/style.css +0 -5128
  668. package/dist/style.d.ts +0 -0
  669. package/dist/style.js +0 -1
  670. package/dist/switch-form-component.js +0 -40
  671. package/dist/switch.js +0 -4
  672. package/dist/table.js +0 -193
  673. package/dist/tabs.js +0 -658
  674. package/dist/text-link.js +0 -39
  675. package/dist/textarea.js +0 -37
  676. package/dist/theme-selector.js +0 -159
  677. package/dist/time-picker.js +0 -5
  678. package/dist/tooltip.js +0 -32
  679. package/dist/useDirection-B2bMgzzV.js +0 -12
  680. package/dist/useFocusGuards-2C1jyYW5.js +0 -29
  681. package/dist/useFormControl-DZ4LnB9F.js +0 -11
  682. package/dist/useForwardExpose-BcX3VRdS.js +0 -58
  683. package/dist/useForwardPropsEmits-GlUGKcIz.js +0 -47
  684. package/dist/useId-CF6wz41D.js +0 -16
  685. package/dist/useKbd-JjFOu4f7.js +0 -41
  686. package/dist/useNonce-CWj1JlPB.js +0 -12
  687. package/dist/usePrimitiveElement-BCpwlakH.js +0 -16
  688. package/dist/useSize-DUgGY9t1.js +0 -51
  689. package/dist/useTypeahead-4RK0Emcv.js +0 -159
  690. package/dist/utils-Bz4m9VPB.js +0 -3192
  691. package/dist/utils-DbR1EZn-.js +0 -16
  692. package/dist/utils-hdwtyAF3.js +0 -44
  693. package/dist/utils.js +0 -4
@@ -1,3800 +0,0 @@
1
- import { ref, computed, watch, defineComponent, toRefs, onMounted, openBlock, createBlock, unref, withCtx, renderSlot, createElementVNode, toDisplayString, withKeys, withModifiers, createTextVNode, nextTick, mergeProps, normalizeProps, guardReactiveProps, toRaw, createElementBlock, Fragment, createVNode, renderList, isRef } from "vue";
2
- import { a as useVModel, i as createReusableTemplate } from "./index-Dw56kNV0.js";
3
- import { u as useForwardPropsEmits, a as useForwardProps } from "./useForwardPropsEmits-GlUGKcIz.js";
4
- import { c as cn } from "./utils-Bz4m9VPB.js";
5
- import { _ as _sfc_main$c, a as _sfc_main$d } from "./NativeSelectOption.vue_vue_type_script_setup_true_lang-CNcUI9Yh.js";
6
- import { r as reactiveOmit } from "./index-DDJjWaIl.js";
7
- import { buttonVariants } from "./button.js";
8
- import { N as Nn, m as mn } from "./index.min-CZ9FIOXr.js";
9
- import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
10
- import { P as Primitive } from "./Primitive-D3IcFg81.js";
11
- import { u as useKbd } from "./useKbd-JjFOu4f7.js";
12
- import { u as usePrimitiveElement } from "./usePrimitiveElement-BCpwlakH.js";
13
- import { c as createContext } from "./createContext-BabAT1K8.js";
14
- import { u as useDirection } from "./useDirection-B2bMgzzV.js";
15
- import { i as injectConfigProviderContext } from "./ConfigProvider-DYO65bNW.js";
16
- function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
17
- return amount - numerator * Math.floor(amount / numerator);
18
- }
19
- const $3b62074eb05584b2$var$EPOCH = 1721426;
20
- function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
21
- year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
22
- let y1 = year - 1;
23
- let monthOffset = -2;
24
- if (month <= 2) monthOffset = 0;
25
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
26
- return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
27
- }
28
- function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
29
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
30
- }
31
- function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
32
- return era === "BC" ? 1 - year : year;
33
- }
34
- function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
35
- let era = "AD";
36
- if (year <= 0) {
37
- era = "BC";
38
- year = 1 - year;
39
- }
40
- return [
41
- era,
42
- year
43
- ];
44
- }
45
- const $3b62074eb05584b2$var$daysInMonth = {
46
- standard: [
47
- 31,
48
- 28,
49
- 31,
50
- 30,
51
- 31,
52
- 30,
53
- 31,
54
- 31,
55
- 30,
56
- 31,
57
- 30,
58
- 31
59
- ],
60
- leapyear: [
61
- 31,
62
- 29,
63
- 31,
64
- 30,
65
- 31,
66
- 30,
67
- 31,
68
- 31,
69
- 30,
70
- 31,
71
- 30,
72
- 31
73
- ]
74
- };
75
- class $3b62074eb05584b2$export$80ee6245ec4f29ec {
76
- fromJulianDay(jd) {
77
- let jd0 = jd;
78
- let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;
79
- let quadricent = Math.floor(depoch / 146097);
80
- let dqc = $2b4dce13dd5a17fa$export$842a2cf37af977e1(depoch, 146097);
81
- let cent = Math.floor(dqc / 36524);
82
- let dcent = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dqc, 36524);
83
- let quad = Math.floor(dcent / 1461);
84
- let dquad = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dcent, 1461);
85
- let yindex = Math.floor(dquad / 365);
86
- let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);
87
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
88
- let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
89
- let leapAdj = 2;
90
- if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
91
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
92
- let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
93
- let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
94
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
95
- }
96
- toJulianDay(date) {
97
- return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
98
- }
99
- getDaysInMonth(date) {
100
- return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
101
- }
102
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
103
- getMonthsInYear(date) {
104
- return 12;
105
- }
106
- getDaysInYear(date) {
107
- return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
108
- }
109
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
110
- getYearsInEra(date) {
111
- return 9999;
112
- }
113
- getEras() {
114
- return [
115
- "BC",
116
- "AD"
117
- ];
118
- }
119
- isInverseEra(date) {
120
- return date.era === "BC";
121
- }
122
- balanceDate(date) {
123
- if (date.year <= 0) {
124
- date.era = date.era === "BC" ? "AD" : "BC";
125
- date.year = 1 - date.year;
126
- }
127
- }
128
- constructor() {
129
- this.identifier = "gregory";
130
- }
131
- }
132
- const $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {
133
- "001": 1,
134
- AD: 1,
135
- AE: 6,
136
- AF: 6,
137
- AI: 1,
138
- AL: 1,
139
- AM: 1,
140
- AN: 1,
141
- AR: 1,
142
- AT: 1,
143
- AU: 1,
144
- AX: 1,
145
- AZ: 1,
146
- BA: 1,
147
- BE: 1,
148
- BG: 1,
149
- BH: 6,
150
- BM: 1,
151
- BN: 1,
152
- BY: 1,
153
- CH: 1,
154
- CL: 1,
155
- CM: 1,
156
- CN: 1,
157
- CR: 1,
158
- CY: 1,
159
- CZ: 1,
160
- DE: 1,
161
- DJ: 6,
162
- DK: 1,
163
- DZ: 6,
164
- EC: 1,
165
- EE: 1,
166
- EG: 6,
167
- ES: 1,
168
- FI: 1,
169
- FJ: 1,
170
- FO: 1,
171
- FR: 1,
172
- GB: 1,
173
- GE: 1,
174
- GF: 1,
175
- GP: 1,
176
- GR: 1,
177
- HR: 1,
178
- HU: 1,
179
- IE: 1,
180
- IQ: 6,
181
- IR: 6,
182
- IS: 1,
183
- IT: 1,
184
- JO: 6,
185
- KG: 1,
186
- KW: 6,
187
- KZ: 1,
188
- LB: 1,
189
- LI: 1,
190
- LK: 1,
191
- LT: 1,
192
- LU: 1,
193
- LV: 1,
194
- LY: 6,
195
- MC: 1,
196
- MD: 1,
197
- ME: 1,
198
- MK: 1,
199
- MN: 1,
200
- MQ: 1,
201
- MV: 5,
202
- MY: 1,
203
- NL: 1,
204
- NO: 1,
205
- NZ: 1,
206
- OM: 6,
207
- PL: 1,
208
- QA: 6,
209
- RE: 1,
210
- RO: 1,
211
- RS: 1,
212
- RU: 1,
213
- SD: 6,
214
- SE: 1,
215
- SI: 1,
216
- SK: 1,
217
- SM: 1,
218
- SY: 6,
219
- TJ: 1,
220
- TM: 1,
221
- TR: 1,
222
- UA: 1,
223
- UY: 1,
224
- UZ: 1,
225
- VA: 1,
226
- VN: 1,
227
- XK: 1
228
- };
229
- function $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {
230
- b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
231
- return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
232
- }
233
- function $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {
234
- b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
235
- a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);
236
- b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);
237
- return a.era === b.era && a.year === b.year && a.month === b.month;
238
- }
239
- function $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {
240
- return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b);
241
- }
242
- function $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(a, b) {
243
- return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b);
244
- }
245
- function $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {
246
- var _a_isEqual, _b_isEqual;
247
- var _a_isEqual1, _ref;
248
- return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;
249
- }
250
- function $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {
251
- return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));
252
- }
253
- const $14e0f24ef4ac5c92$var$DAY_MAP = {
254
- sun: 0,
255
- mon: 1,
256
- tue: 2,
257
- wed: 3,
258
- thu: 4,
259
- fri: 5,
260
- sat: 6
261
- };
262
- function $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {
263
- let julian = date.calendar.toJulianDay(date);
264
- let weekStart = firstDayOfWeek ? $14e0f24ef4ac5c92$var$DAY_MAP[firstDayOfWeek] : $14e0f24ef4ac5c92$var$getWeekStart(locale);
265
- let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;
266
- if (dayOfWeek < 0) dayOfWeek += 7;
267
- return dayOfWeek;
268
- }
269
- function $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {
270
- return $11d87f3f76e88657$export$1b96692a1ba042ac(Date.now(), timeZone);
271
- }
272
- function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {
273
- return $11d87f3f76e88657$export$93522d1a439f3617($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));
274
- }
275
- function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {
276
- return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
277
- }
278
- function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
279
- return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
280
- }
281
- function $14e0f24ef4ac5c92$var$timeToMs(a) {
282
- return a.hour * 36e5 + a.minute * 6e4 + a.second * 1e3 + a.millisecond;
283
- }
284
- let $14e0f24ef4ac5c92$var$localTimeZone = null;
285
- function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
286
- if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
287
- return $14e0f24ef4ac5c92$var$localTimeZone;
288
- }
289
- function $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {
290
- return date.subtract({
291
- days: date.day - 1
292
- });
293
- }
294
- function $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {
295
- return date.add({
296
- days: date.calendar.getDaysInMonth(date) - date.day
297
- });
298
- }
299
- function $14e0f24ef4ac5c92$export$f91e89d3d0406102(date) {
300
- return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date.subtract({
301
- months: date.month - 1
302
- }));
303
- }
304
- const $14e0f24ef4ac5c92$var$cachedRegions = /* @__PURE__ */ new Map();
305
- const $14e0f24ef4ac5c92$var$cachedWeekInfo = /* @__PURE__ */ new Map();
306
- function $14e0f24ef4ac5c92$var$getRegion(locale) {
307
- if (Intl.Locale) {
308
- let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);
309
- if (!region) {
310
- region = new Intl.Locale(locale).maximize().region;
311
- if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);
312
- }
313
- return region;
314
- }
315
- let part = locale.split("-")[1];
316
- return part === "u" ? void 0 : part;
317
- }
318
- function $14e0f24ef4ac5c92$var$getWeekStart(locale) {
319
- let weekInfo = $14e0f24ef4ac5c92$var$cachedWeekInfo.get(locale);
320
- if (!weekInfo) {
321
- if (Intl.Locale) {
322
- let localeInst = new Intl.Locale(locale);
323
- if ("getWeekInfo" in localeInst) {
324
- weekInfo = localeInst.getWeekInfo();
325
- if (weekInfo) {
326
- $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);
327
- return weekInfo.firstDay;
328
- }
329
- }
330
- }
331
- let region = $14e0f24ef4ac5c92$var$getRegion(locale);
332
- if (locale.includes("-fw-")) {
333
- let day = locale.split("-fw-")[1].split("-")[0];
334
- if (day === "mon") weekInfo = {
335
- firstDay: 1
336
- };
337
- else if (day === "tue") weekInfo = {
338
- firstDay: 2
339
- };
340
- else if (day === "wed") weekInfo = {
341
- firstDay: 3
342
- };
343
- else if (day === "thu") weekInfo = {
344
- firstDay: 4
345
- };
346
- else if (day === "fri") weekInfo = {
347
- firstDay: 5
348
- };
349
- else if (day === "sat") weekInfo = {
350
- firstDay: 6
351
- };
352
- else weekInfo = {
353
- firstDay: 0
354
- };
355
- } else if (locale.includes("-ca-iso8601")) weekInfo = {
356
- firstDay: 1
357
- };
358
- else weekInfo = {
359
- firstDay: region ? $2fe286d2fb449abb$export$7a5acbd77d414bd9[region] || 0 : 0
360
- };
361
- $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);
362
- }
363
- return weekInfo.firstDay;
364
- }
365
- function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
366
- date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
367
- let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
368
- return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
369
- }
370
- function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
371
- let date = /* @__PURE__ */ new Date();
372
- date.setUTCHours(hour, minute, second, millisecond);
373
- date.setUTCFullYear(year, month - 1, day);
374
- return date.getTime();
375
- }
376
- function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
377
- if (timeZone === "UTC") return 0;
378
- if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
379
- let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
380
- let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
381
- return utc - Math.floor(ms / 1e3) * 1e3;
382
- }
383
- const $11d87f3f76e88657$var$formattersByTimeZone = /* @__PURE__ */ new Map();
384
- function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
385
- let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);
386
- if (!formatter) {
387
- formatter = new Intl.DateTimeFormat("en-US", {
388
- timeZone,
389
- hour12: false,
390
- era: "short",
391
- year: "numeric",
392
- month: "numeric",
393
- day: "numeric",
394
- hour: "numeric",
395
- minute: "numeric",
396
- second: "numeric"
397
- });
398
- $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);
399
- }
400
- let parts = formatter.formatToParts(new Date(ms));
401
- let namedParts = {};
402
- for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
403
- return {
404
- // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
405
- year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
406
- month: +namedParts.month,
407
- day: +namedParts.day,
408
- hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
409
- minute: +namedParts.minute,
410
- second: +namedParts.second
411
- };
412
- }
413
- const $11d87f3f76e88657$var$DAYMILLIS = 864e5;
414
- function $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {
415
- let found = earlier === later ? [
416
- earlier
417
- ] : [
418
- earlier,
419
- later
420
- ];
421
- return found.filter((absolute) => $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));
422
- }
423
- function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
424
- let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);
425
- return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
426
- }
427
- function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
428
- let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
429
- if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
430
- if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
431
- dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
432
- let date2 = /* @__PURE__ */ new Date();
433
- let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(dateTime.era, dateTime.year);
434
- date2.setFullYear(year, dateTime.month - 1, dateTime.day);
435
- date2.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
436
- return date2.getTime();
437
- }
438
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
439
- let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
440
- let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
441
- let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
442
- if (valid.length === 1) return valid[0];
443
- if (valid.length > 1) switch (disambiguation) {
444
- case "compatible":
445
- case "earlier":
446
- return valid[0];
447
- case "later":
448
- return valid[valid.length - 1];
449
- case "reject":
450
- throw new RangeError("Multiple possible absolute times found");
451
- }
452
- switch (disambiguation) {
453
- case "earlier":
454
- return Math.min(ms - offsetBefore, ms - offsetAfter);
455
- case "compatible":
456
- case "later":
457
- return Math.max(ms - offsetBefore, ms - offsetAfter);
458
- case "reject":
459
- throw new RangeError("No such absolute time found");
460
- }
461
- }
462
- function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
463
- return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
464
- }
465
- function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
466
- let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
467
- let date = new Date(ms + offset);
468
- let year = date.getUTCFullYear();
469
- let month = date.getUTCMonth() + 1;
470
- let day = date.getUTCDate();
471
- let hour = date.getUTCHours();
472
- let minute = date.getUTCMinutes();
473
- let second = date.getUTCSeconds();
474
- let millisecond = date.getUTCMilliseconds();
475
- return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
476
- }
477
- function $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) {
478
- return $11d87f3f76e88657$export$1b96692a1ba042ac(date.getTime(), timeZone);
479
- }
480
- function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
481
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
482
- }
483
- function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
484
- let hour = 0, minute = 0, second = 0, millisecond = 0;
485
- if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
486
- else if ("hour" in date && !time) return date;
487
- if (time) ({ hour, minute, second, millisecond } = time);
488
- return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
489
- }
490
- function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
491
- if ($14e0f24ef4ac5c92$export$dbc69fd56b53d5e(date.calendar, calendar)) return date;
492
- let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
493
- let copy = date.copy();
494
- copy.calendar = calendar;
495
- copy.era = calendarDate.era;
496
- copy.year = calendarDate.year;
497
- copy.month = calendarDate.month;
498
- copy.day = calendarDate.day;
499
- $735220c2d4774dd3$export$c4e2ecac49351ef2(copy);
500
- return copy;
501
- }
502
- function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
503
- if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
504
- if (date.timeZone === timeZone) return date;
505
- return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
506
- }
507
- let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
508
- return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);
509
- }
510
- function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
511
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
512
- return new Date(ms);
513
- }
514
- function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
515
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
516
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
517
- }
518
- const $735220c2d4774dd3$var$ONE_HOUR = 36e5;
519
- function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
520
- let mutableDate = date.copy();
521
- let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
522
- $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
523
- if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
524
- mutableDate.month += duration.months || 0;
525
- $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
526
- $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
527
- mutableDate.day += (duration.weeks || 0) * 7;
528
- mutableDate.day += duration.days || 0;
529
- mutableDate.day += days;
530
- $735220c2d4774dd3$var$balanceDay(mutableDate);
531
- if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
532
- if (mutableDate.year < 1) {
533
- mutableDate.year = 1;
534
- mutableDate.month = 1;
535
- mutableDate.day = 1;
536
- }
537
- let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
538
- if (mutableDate.year > maxYear) {
539
- var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;
540
- let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);
541
- mutableDate.year = maxYear;
542
- mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
543
- mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
544
- }
545
- if (mutableDate.month < 1) {
546
- mutableDate.month = 1;
547
- mutableDate.day = 1;
548
- }
549
- let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
550
- if (mutableDate.month > maxMonth) {
551
- mutableDate.month = maxMonth;
552
- mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
553
- }
554
- mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
555
- return mutableDate;
556
- }
557
- function $735220c2d4774dd3$var$addYears(date, years) {
558
- var _date_calendar_isInverseEra, _date_calendar;
559
- if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;
560
- date.year += years;
561
- }
562
- function $735220c2d4774dd3$var$balanceYearMonth(date) {
563
- while (date.month < 1) {
564
- $735220c2d4774dd3$var$addYears(date, -1);
565
- date.month += date.calendar.getMonthsInYear(date);
566
- }
567
- let monthsInYear = 0;
568
- while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
569
- date.month -= monthsInYear;
570
- $735220c2d4774dd3$var$addYears(date, 1);
571
- }
572
- }
573
- function $735220c2d4774dd3$var$balanceDay(date) {
574
- while (date.day < 1) {
575
- date.month--;
576
- $735220c2d4774dd3$var$balanceYearMonth(date);
577
- date.day += date.calendar.getDaysInMonth(date);
578
- }
579
- while (date.day > date.calendar.getDaysInMonth(date)) {
580
- date.day -= date.calendar.getDaysInMonth(date);
581
- date.month++;
582
- $735220c2d4774dd3$var$balanceYearMonth(date);
583
- }
584
- }
585
- function $735220c2d4774dd3$var$constrainMonthDay(date) {
586
- date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
587
- date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
588
- }
589
- function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
590
- if (date.calendar.constrainDate) date.calendar.constrainDate(date);
591
- date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
592
- $735220c2d4774dd3$var$constrainMonthDay(date);
593
- }
594
- function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
595
- let inverseDuration = {};
596
- for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
597
- return inverseDuration;
598
- }
599
- function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
600
- return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
601
- }
602
- function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
603
- let mutableDate = date.copy();
604
- if (fields.era != null) mutableDate.era = fields.era;
605
- if (fields.year != null) mutableDate.year = fields.year;
606
- if (fields.month != null) mutableDate.month = fields.month;
607
- if (fields.day != null) mutableDate.day = fields.day;
608
- $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
609
- return mutableDate;
610
- }
611
- function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
612
- let mutableValue = value.copy();
613
- if (fields.hour != null) mutableValue.hour = fields.hour;
614
- if (fields.minute != null) mutableValue.minute = fields.minute;
615
- if (fields.second != null) mutableValue.second = fields.second;
616
- if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
617
- $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
618
- return mutableValue;
619
- }
620
- function $735220c2d4774dd3$var$balanceTime(time) {
621
- time.second += Math.floor(time.millisecond / 1e3);
622
- time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1e3);
623
- time.minute += Math.floor(time.second / 60);
624
- time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
625
- time.hour += Math.floor(time.minute / 60);
626
- time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
627
- let days = Math.floor(time.hour / 24);
628
- time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
629
- return days;
630
- }
631
- function $735220c2d4774dd3$export$7555de1e070510cb(time) {
632
- time.millisecond = Math.max(0, Math.min(time.millisecond, 1e3));
633
- time.second = Math.max(0, Math.min(time.second, 59));
634
- time.minute = Math.max(0, Math.min(time.minute, 59));
635
- time.hour = Math.max(0, Math.min(time.hour, 23));
636
- }
637
- function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
638
- let result = a % b;
639
- if (result < 0) result += b;
640
- return result;
641
- }
642
- function $735220c2d4774dd3$var$addTimeFields(time, duration) {
643
- time.hour += duration.hours || 0;
644
- time.minute += duration.minutes || 0;
645
- time.second += duration.seconds || 0;
646
- time.millisecond += duration.milliseconds || 0;
647
- return $735220c2d4774dd3$var$balanceTime(time);
648
- }
649
- function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {
650
- let mutable = value.copy();
651
- switch (field) {
652
- case "era": {
653
- let eras = value.calendar.getEras();
654
- let eraIndex = eras.indexOf(value.era);
655
- if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
656
- eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
657
- mutable.era = eras[eraIndex];
658
- $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
659
- break;
660
- }
661
- case "year":
662
- var _mutable_calendar_isInverseEra, _mutable_calendar;
663
- if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;
664
- mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
665
- if (mutable.year === -Infinity) mutable.year = 1;
666
- if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
667
- break;
668
- case "month":
669
- mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
670
- break;
671
- case "day":
672
- mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
673
- break;
674
- default:
675
- throw new Error("Unsupported field " + field);
676
- }
677
- if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
678
- $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
679
- return mutable;
680
- }
681
- function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
682
- let mutable = value.copy();
683
- switch (field) {
684
- case "hour": {
685
- let hours = value.hour;
686
- let min = 0;
687
- let max = 23;
688
- if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
689
- let isPM = hours >= 12;
690
- min = isPM ? 12 : 0;
691
- max = isPM ? 23 : 11;
692
- }
693
- mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
694
- break;
695
- }
696
- case "minute":
697
- mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
698
- break;
699
- case "second":
700
- mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
701
- break;
702
- case "millisecond":
703
- mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
704
- break;
705
- default:
706
- throw new Error("Unsupported field " + field);
707
- }
708
- return mutable;
709
- }
710
- function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
711
- if (round) {
712
- value += Math.sign(amount);
713
- if (value < min) value = max;
714
- let div = Math.abs(amount);
715
- if (amount > 0) value = Math.ceil(value / div) * div;
716
- else value = Math.floor(value / div) * div;
717
- if (value > max) value = min;
718
- } else {
719
- value += amount;
720
- if (value < min) value = max - (min - value - 1);
721
- else if (value > max) value = min + (value - max - 1);
722
- }
723
- return value;
724
- }
725
- function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
726
- let ms;
727
- if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {
728
- let res2 = $735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(dateTime), {
729
- years: duration.years,
730
- months: duration.months,
731
- weeks: duration.weeks,
732
- days: duration.days
733
- });
734
- ms = $11d87f3f76e88657$export$5107c82f94518f5c(res2, dateTime.timeZone);
735
- } else
736
- ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
737
- ms += duration.milliseconds || 0;
738
- ms += (duration.seconds || 0) * 1e3;
739
- ms += (duration.minutes || 0) * 6e4;
740
- ms += (duration.hours || 0) * 36e5;
741
- let res = $11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone);
742
- return $11d87f3f76e88657$export$b4a036af3fc0b032(res, dateTime.calendar);
743
- }
744
- function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
745
- return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
746
- }
747
- function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
748
- switch (field) {
749
- case "hour": {
750
- let min = 0;
751
- let max = 23;
752
- if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
753
- let isPM = dateTime.hour >= 12;
754
- min = isPM ? 12 : 0;
755
- max = isPM ? 23 : 11;
756
- }
757
- let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
758
- let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
759
- hour: min
760
- }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
761
- let minAbsolute = [
762
- $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "earlier"),
763
- $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
764
- ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
765
- let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
766
- hour: max
767
- }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
768
- let maxAbsolute = [
769
- $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
770
- $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "later")
771
- ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === maxDate.day).pop();
772
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
773
- let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
774
- let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
775
- ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;
776
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
777
- }
778
- case "minute":
779
- case "second":
780
- case "millisecond":
781
- return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
782
- case "era":
783
- case "year":
784
- case "month":
785
- case "day": {
786
- let res = $735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(dateTime), field, amount, options);
787
- let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone);
788
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
789
- }
790
- default:
791
- throw new Error("Unsupported field " + field);
792
- }
793
- }
794
- function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
795
- let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
796
- let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
797
- if (res.compare(plainDateTime) === 0) return dateTime;
798
- let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
799
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
800
- }
801
- function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
802
- return `${String(time.hour).padStart(2, "0")}:${String(time.minute).padStart(2, "0")}:${String(time.second).padStart(2, "0")}${time.millisecond ? String(time.millisecond / 1e3).slice(1) : ""}`;
803
- }
804
- function $fae977aafc393c5c$export$60dfd74aa96791bd(date) {
805
- let gregorianDate = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
806
- let year;
807
- if (gregorianDate.era === "BC") year = gregorianDate.year === 1 ? "0000" : "-" + String(Math.abs(1 - gregorianDate.year)).padStart(6, "00");
808
- else year = String(gregorianDate.year).padStart(4, "0");
809
- return `${year}-${String(gregorianDate.month).padStart(2, "0")}-${String(gregorianDate.day).padStart(2, "0")}`;
810
- }
811
- function $fae977aafc393c5c$export$4223de14708adc63(date) {
812
- return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
813
- }
814
- function $fae977aafc393c5c$var$offsetToString(offset) {
815
- let sign = Math.sign(offset) < 0 ? "-" : "+";
816
- offset = Math.abs(offset);
817
- let offsetHours = Math.floor(offset / 36e5);
818
- let offsetMinutes = Math.floor(offset % 36e5 / 6e4);
819
- let offsetSeconds = Math.floor(offset % 36e5 % 6e4 / 1e3);
820
- let stringOffset = `${sign}${String(offsetHours).padStart(2, "0")}:${String(offsetMinutes).padStart(2, "0")}`;
821
- if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, "0")}`;
822
- return stringOffset;
823
- }
824
- function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
825
- return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
826
- }
827
- function _check_private_redeclaration(obj, privateCollection) {
828
- if (privateCollection.has(obj)) {
829
- throw new TypeError("Cannot initialize the same private elements twice on an object");
830
- }
831
- }
832
- function _class_private_field_init(obj, privateMap, value) {
833
- _check_private_redeclaration(obj, privateMap);
834
- privateMap.set(obj, value);
835
- }
836
- function $35ea8db9cb2ccb90$var$shiftArgs(args) {
837
- let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
838
- let era;
839
- if (typeof args[0] === "string") era = args.shift();
840
- else {
841
- let eras = calendar.getEras();
842
- era = eras[eras.length - 1];
843
- }
844
- let year = args.shift();
845
- let month = args.shift();
846
- let day = args.shift();
847
- return [
848
- calendar,
849
- era,
850
- year,
851
- month,
852
- day
853
- ];
854
- }
855
- var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
856
- class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
857
- /** Returns a copy of this date. */
858
- copy() {
859
- if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
860
- else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
861
- }
862
- /** Returns a new `CalendarDate` with the given duration added to it. */
863
- add(duration) {
864
- return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
865
- }
866
- /** Returns a new `CalendarDate` with the given duration subtracted from it. */
867
- subtract(duration) {
868
- return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
869
- }
870
- /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
871
- set(fields) {
872
- return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this, fields);
873
- }
874
- /**
875
- * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
876
- * When the resulting value reaches the limits of the field, it wraps around.
877
- */
878
- cycle(field, amount, options) {
879
- return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
880
- }
881
- /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
882
- toDate(timeZone) {
883
- return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone);
884
- }
885
- /** Converts the date to an ISO 8601 formatted string. */
886
- toString() {
887
- return $fae977aafc393c5c$export$60dfd74aa96791bd(this);
888
- }
889
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
890
- compare(b) {
891
- return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
892
- }
893
- constructor(...args) {
894
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type, {
895
- writable: true,
896
- value: void 0
897
- });
898
- let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
899
- this.calendar = calendar;
900
- this.era = era;
901
- this.year = year;
902
- this.month = month;
903
- this.day = day;
904
- $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
905
- }
906
- }
907
- var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
908
- class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
909
- /** Returns a copy of this date. */
910
- copy() {
911
- if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
912
- else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
913
- }
914
- /** Returns a new `CalendarDateTime` with the given duration added to it. */
915
- add(duration) {
916
- return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
917
- }
918
- /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
919
- subtract(duration) {
920
- return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
921
- }
922
- /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
923
- set(fields) {
924
- return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this, fields), fields);
925
- }
926
- /**
927
- * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
928
- * When the resulting value reaches the limits of the field, it wraps around.
929
- */
930
- cycle(field, amount, options) {
931
- switch (field) {
932
- case "era":
933
- case "year":
934
- case "month":
935
- case "day":
936
- return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
937
- default:
938
- return $735220c2d4774dd3$export$dd02b3e0007dfe28(this, field, amount, options);
939
- }
940
- }
941
- /** Converts the date to a native JavaScript Date object in the given time zone. */
942
- toDate(timeZone, disambiguation) {
943
- return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone, disambiguation);
944
- }
945
- /** Converts the date to an ISO 8601 formatted string. */
946
- toString() {
947
- return $fae977aafc393c5c$export$4223de14708adc63(this);
948
- }
949
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
950
- compare(b) {
951
- let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
952
- if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
953
- return res;
954
- }
955
- constructor(...args) {
956
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type2, {
957
- writable: true,
958
- value: void 0
959
- });
960
- let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
961
- this.calendar = calendar;
962
- this.era = era;
963
- this.year = year;
964
- this.month = month;
965
- this.day = day;
966
- this.hour = args.shift() || 0;
967
- this.minute = args.shift() || 0;
968
- this.second = args.shift() || 0;
969
- this.millisecond = args.shift() || 0;
970
- $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
971
- }
972
- }
973
- var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
974
- class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
975
- /** Returns a copy of this date. */
976
- copy() {
977
- if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
978
- else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
979
- }
980
- /** Returns a new `ZonedDateTime` with the given duration added to it. */
981
- add(duration) {
982
- return $735220c2d4774dd3$export$96b1d28349274637(this, duration);
983
- }
984
- /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
985
- subtract(duration) {
986
- return $735220c2d4774dd3$export$6814caac34ca03c7(this, duration);
987
- }
988
- /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
989
- set(fields, disambiguation) {
990
- return $735220c2d4774dd3$export$31b5430eb18be4f8(this, fields, disambiguation);
991
- }
992
- /**
993
- * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
994
- * When the resulting value reaches the limits of the field, it wraps around.
995
- */
996
- cycle(field, amount, options) {
997
- return $735220c2d4774dd3$export$9a297d111fc86b79(this, field, amount, options);
998
- }
999
- /** Converts the date to a native JavaScript Date object. */
1000
- toDate() {
1001
- return $11d87f3f76e88657$export$83aac07b4c37b25(this);
1002
- }
1003
- /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
1004
- toString() {
1005
- return $fae977aafc393c5c$export$bf79f1ebf4b18792(this);
1006
- }
1007
- /** Converts the date to an ISO 8601 formatted string in UTC. */
1008
- toAbsoluteString() {
1009
- return this.toDate().toISOString();
1010
- }
1011
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
1012
- compare(b) {
1013
- return this.toDate().getTime() - $11d87f3f76e88657$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
1014
- }
1015
- constructor(...args) {
1016
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type3, {
1017
- writable: true,
1018
- value: void 0
1019
- });
1020
- let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
1021
- let timeZone = args.shift();
1022
- let offset = args.shift();
1023
- this.calendar = calendar;
1024
- this.era = era;
1025
- this.year = year;
1026
- this.month = month;
1027
- this.day = day;
1028
- this.timeZone = timeZone;
1029
- this.offset = offset;
1030
- this.hour = args.shift() || 0;
1031
- this.minute = args.shift() || 0;
1032
- this.second = args.shift() || 0;
1033
- this.millisecond = args.shift() || 0;
1034
- $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
1035
- }
1036
- }
1037
- const $62225008020f0a13$var$ERA_START_DATES = [
1038
- [
1039
- 1868,
1040
- 9,
1041
- 8
1042
- ],
1043
- [
1044
- 1912,
1045
- 7,
1046
- 30
1047
- ],
1048
- [
1049
- 1926,
1050
- 12,
1051
- 25
1052
- ],
1053
- [
1054
- 1989,
1055
- 1,
1056
- 8
1057
- ],
1058
- [
1059
- 2019,
1060
- 5,
1061
- 1
1062
- ]
1063
- ];
1064
- const $62225008020f0a13$var$ERA_END_DATES = [
1065
- [
1066
- 1912,
1067
- 7,
1068
- 29
1069
- ],
1070
- [
1071
- 1926,
1072
- 12,
1073
- 24
1074
- ],
1075
- [
1076
- 1989,
1077
- 1,
1078
- 7
1079
- ],
1080
- [
1081
- 2019,
1082
- 4,
1083
- 30
1084
- ]
1085
- ];
1086
- const $62225008020f0a13$var$ERA_ADDENDS = [
1087
- 1867,
1088
- 1911,
1089
- 1925,
1090
- 1988,
1091
- 2018
1092
- ];
1093
- const $62225008020f0a13$var$ERA_NAMES = [
1094
- "meiji",
1095
- "taisho",
1096
- "showa",
1097
- "heisei",
1098
- "reiwa"
1099
- ];
1100
- function $62225008020f0a13$var$findEraFromGregorianDate(date) {
1101
- const idx = $62225008020f0a13$var$ERA_START_DATES.findIndex(([year, month, day]) => {
1102
- if (date.year < year) return true;
1103
- if (date.year === year && date.month < month) return true;
1104
- if (date.year === year && date.month === month && date.day < day) return true;
1105
- return false;
1106
- });
1107
- if (idx === -1) return $62225008020f0a13$var$ERA_START_DATES.length - 1;
1108
- if (idx === 0) return 0;
1109
- return idx - 1;
1110
- }
1111
- function $62225008020f0a13$var$toGregorian(date) {
1112
- let eraAddend = $62225008020f0a13$var$ERA_ADDENDS[$62225008020f0a13$var$ERA_NAMES.indexOf(date.era)];
1113
- if (!eraAddend) throw new Error("Unknown era: " + date.era);
1114
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(date.year + eraAddend, date.month, date.day);
1115
- }
1116
- class $62225008020f0a13$export$b746ab2b60cdffbf extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1117
- fromJulianDay(jd) {
1118
- let date = super.fromJulianDay(jd);
1119
- let era = $62225008020f0a13$var$findEraFromGregorianDate(date);
1120
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, $62225008020f0a13$var$ERA_NAMES[era], date.year - $62225008020f0a13$var$ERA_ADDENDS[era], date.month, date.day);
1121
- }
1122
- toJulianDay(date) {
1123
- return super.toJulianDay($62225008020f0a13$var$toGregorian(date));
1124
- }
1125
- balanceDate(date) {
1126
- let gregorianDate = $62225008020f0a13$var$toGregorian(date);
1127
- let era = $62225008020f0a13$var$findEraFromGregorianDate(gregorianDate);
1128
- if ($62225008020f0a13$var$ERA_NAMES[era] !== date.era) {
1129
- date.era = $62225008020f0a13$var$ERA_NAMES[era];
1130
- date.year = gregorianDate.year - $62225008020f0a13$var$ERA_ADDENDS[era];
1131
- }
1132
- this.constrainDate(date);
1133
- }
1134
- constrainDate(date) {
1135
- let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1136
- let end = $62225008020f0a13$var$ERA_END_DATES[idx];
1137
- if (end != null) {
1138
- let [endYear, endMonth, endDay] = end;
1139
- let maxYear = endYear - $62225008020f0a13$var$ERA_ADDENDS[idx];
1140
- date.year = Math.max(1, Math.min(maxYear, date.year));
1141
- if (date.year === maxYear) {
1142
- date.month = Math.min(endMonth, date.month);
1143
- if (date.month === endMonth) date.day = Math.min(endDay, date.day);
1144
- }
1145
- }
1146
- if (date.year === 1 && idx >= 0) {
1147
- let [, startMonth, startDay] = $62225008020f0a13$var$ERA_START_DATES[idx];
1148
- date.month = Math.max(startMonth, date.month);
1149
- if (date.month === startMonth) date.day = Math.max(startDay, date.day);
1150
- }
1151
- }
1152
- getEras() {
1153
- return $62225008020f0a13$var$ERA_NAMES;
1154
- }
1155
- getYearsInEra(date) {
1156
- let era = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1157
- let cur = $62225008020f0a13$var$ERA_START_DATES[era];
1158
- let next = $62225008020f0a13$var$ERA_START_DATES[era + 1];
1159
- if (next == null)
1160
- return 9999 - cur[0] + 1;
1161
- let years = next[0] - cur[0];
1162
- if (date.month < next[1] || date.month === next[1] && date.day < next[2]) years++;
1163
- return years;
1164
- }
1165
- getDaysInMonth(date) {
1166
- return super.getDaysInMonth($62225008020f0a13$var$toGregorian(date));
1167
- }
1168
- getMinimumMonthInYear(date) {
1169
- let start = $62225008020f0a13$var$getMinimums(date);
1170
- return start ? start[1] : 1;
1171
- }
1172
- getMinimumDayInMonth(date) {
1173
- let start = $62225008020f0a13$var$getMinimums(date);
1174
- return start && date.month === start[1] ? start[2] : 1;
1175
- }
1176
- constructor(...args) {
1177
- super(...args), this.identifier = "japanese";
1178
- }
1179
- }
1180
- function $62225008020f0a13$var$getMinimums(date) {
1181
- if (date.year === 1) {
1182
- let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1183
- return $62225008020f0a13$var$ERA_START_DATES[idx];
1184
- }
1185
- }
1186
- const $8d73d47422ca7302$var$BUDDHIST_ERA_START = -543;
1187
- class $8d73d47422ca7302$export$42d20a78301dee44 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1188
- fromJulianDay(jd) {
1189
- let gregorianDate = super.fromJulianDay(jd);
1190
- let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(gregorianDate.era, gregorianDate.year);
1191
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year - $8d73d47422ca7302$var$BUDDHIST_ERA_START, gregorianDate.month, gregorianDate.day);
1192
- }
1193
- toJulianDay(date) {
1194
- return super.toJulianDay($8d73d47422ca7302$var$toGregorian(date));
1195
- }
1196
- getEras() {
1197
- return [
1198
- "BE"
1199
- ];
1200
- }
1201
- getDaysInMonth(date) {
1202
- return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(date));
1203
- }
1204
- balanceDate() {
1205
- }
1206
- constructor(...args) {
1207
- super(...args), this.identifier = "buddhist";
1208
- }
1209
- }
1210
- function $8d73d47422ca7302$var$toGregorian(date) {
1211
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(date.year + $8d73d47422ca7302$var$BUDDHIST_ERA_START);
1212
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1213
- }
1214
- const $5f31bd6f0c8940b2$var$TAIWAN_ERA_START = 1911;
1215
- function $5f31bd6f0c8940b2$var$gregorianYear(date) {
1216
- return date.era === "minguo" ? date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START : 1 - date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1217
- }
1218
- function $5f31bd6f0c8940b2$var$gregorianToTaiwan(year) {
1219
- let y = year - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1220
- if (y > 0) return [
1221
- "minguo",
1222
- y
1223
- ];
1224
- else return [
1225
- "before_minguo",
1226
- 1 - y
1227
- ];
1228
- }
1229
- class $5f31bd6f0c8940b2$export$65e01080afcb0799 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1230
- fromJulianDay(jd) {
1231
- let date = super.fromJulianDay(jd);
1232
- let extendedYear = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
1233
- let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan(extendedYear);
1234
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, date.month, date.day);
1235
- }
1236
- toJulianDay(date) {
1237
- return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(date));
1238
- }
1239
- getEras() {
1240
- return [
1241
- "before_minguo",
1242
- "minguo"
1243
- ];
1244
- }
1245
- balanceDate(date) {
1246
- let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(date));
1247
- date.era = era;
1248
- date.year = year;
1249
- }
1250
- isInverseEra(date) {
1251
- return date.era === "before_minguo";
1252
- }
1253
- getDaysInMonth(date) {
1254
- return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(date));
1255
- }
1256
- getYearsInEra(date) {
1257
- return date.era === "before_minguo" ? 9999 : 9999 - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1258
- }
1259
- constructor(...args) {
1260
- super(...args), this.identifier = "roc";
1261
- }
1262
- }
1263
- function $5f31bd6f0c8940b2$var$toGregorian(date) {
1264
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c($5f31bd6f0c8940b2$var$gregorianYear(date));
1265
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1266
- }
1267
- const $f3ed2e4472ae7e25$var$PERSIAN_EPOCH = 1948320;
1268
- const $f3ed2e4472ae7e25$var$MONTH_START = [
1269
- 0,
1270
- 31,
1271
- 62,
1272
- 93,
1273
- 124,
1274
- 155,
1275
- 186,
1276
- 216,
1277
- 246,
1278
- 276,
1279
- 306,
1280
- 336
1281
- // Esfand
1282
- ];
1283
- class $f3ed2e4472ae7e25$export$37fccdbfd14c5939 {
1284
- fromJulianDay(jd) {
1285
- let daysSinceEpoch = jd - $f3ed2e4472ae7e25$var$PERSIAN_EPOCH;
1286
- let year = 1 + Math.floor((33 * daysSinceEpoch + 3) / 12053);
1287
- let farvardin1 = 365 * (year - 1) + Math.floor((8 * year + 21) / 33);
1288
- let dayOfYear = daysSinceEpoch - farvardin1;
1289
- let month = dayOfYear < 216 ? Math.floor(dayOfYear / 31) : Math.floor((dayOfYear - 6) / 30);
1290
- let day = dayOfYear - $f3ed2e4472ae7e25$var$MONTH_START[month] + 1;
1291
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month + 1, day);
1292
- }
1293
- toJulianDay(date) {
1294
- let jd = $f3ed2e4472ae7e25$var$PERSIAN_EPOCH - 1 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);
1295
- jd += $f3ed2e4472ae7e25$var$MONTH_START[date.month - 1];
1296
- jd += date.day;
1297
- return jd;
1298
- }
1299
- getMonthsInYear() {
1300
- return 12;
1301
- }
1302
- getDaysInMonth(date) {
1303
- if (date.month <= 6) return 31;
1304
- if (date.month <= 11) return 30;
1305
- let isLeapYear = $2b4dce13dd5a17fa$export$842a2cf37af977e1(25 * date.year + 11, 33) < 8;
1306
- return isLeapYear ? 30 : 29;
1307
- }
1308
- getEras() {
1309
- return [
1310
- "AP"
1311
- ];
1312
- }
1313
- getYearsInEra() {
1314
- return 9377;
1315
- }
1316
- constructor() {
1317
- this.identifier = "persian";
1318
- }
1319
- }
1320
- const $82c358003bdda0a8$var$INDIAN_ERA_START = 78;
1321
- const $82c358003bdda0a8$var$INDIAN_YEAR_START = 80;
1322
- class $82c358003bdda0a8$export$39f31c639fa15726 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1323
- fromJulianDay(jd) {
1324
- let date = super.fromJulianDay(jd);
1325
- let indianYear = date.year - $82c358003bdda0a8$var$INDIAN_ERA_START;
1326
- let yDay = jd - $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, 1, 1);
1327
- let leapMonth;
1328
- if (yDay < $82c358003bdda0a8$var$INDIAN_YEAR_START) {
1329
- indianYear--;
1330
- leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year - 1) ? 31 : 30;
1331
- yDay += leapMonth + 155 + 90 + 10;
1332
- } else {
1333
- leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 31 : 30;
1334
- yDay -= $82c358003bdda0a8$var$INDIAN_YEAR_START;
1335
- }
1336
- let indianMonth;
1337
- let indianDay;
1338
- if (yDay < leapMonth) {
1339
- indianMonth = 1;
1340
- indianDay = yDay + 1;
1341
- } else {
1342
- let mDay = yDay - leapMonth;
1343
- if (mDay < 155) {
1344
- indianMonth = Math.floor(mDay / 31) + 2;
1345
- indianDay = mDay % 31 + 1;
1346
- } else {
1347
- mDay -= 155;
1348
- indianMonth = Math.floor(mDay / 30) + 7;
1349
- indianDay = mDay % 30 + 1;
1350
- }
1351
- }
1352
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, indianYear, indianMonth, indianDay);
1353
- }
1354
- toJulianDay(date) {
1355
- let extendedYear = date.year + $82c358003bdda0a8$var$INDIAN_ERA_START;
1356
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
1357
- let leapMonth;
1358
- let jd;
1359
- if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) {
1360
- leapMonth = 31;
1361
- jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 21);
1362
- } else {
1363
- leapMonth = 30;
1364
- jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 22);
1365
- }
1366
- if (date.month === 1) return jd + date.day - 1;
1367
- jd += leapMonth + Math.min(date.month - 2, 5) * 31;
1368
- if (date.month >= 8) jd += (date.month - 7) * 30;
1369
- jd += date.day - 1;
1370
- return jd;
1371
- }
1372
- getDaysInMonth(date) {
1373
- if (date.month === 1 && $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year + $82c358003bdda0a8$var$INDIAN_ERA_START)) return 31;
1374
- if (date.month >= 2 && date.month <= 6) return 31;
1375
- return 30;
1376
- }
1377
- getYearsInEra() {
1378
- return 9919;
1379
- }
1380
- getEras() {
1381
- return [
1382
- "saka"
1383
- ];
1384
- }
1385
- balanceDate() {
1386
- }
1387
- constructor(...args) {
1388
- super(...args), this.identifier = "indian";
1389
- }
1390
- }
1391
- const $f2f3e0e3a817edbd$var$CIVIL_EPOC = 1948440;
1392
- const $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC = 1948439;
1393
- const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START = 1300;
1394
- const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END = 1600;
1395
- const $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS = 460322;
1396
- function $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, day) {
1397
- return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 + Math.floor((3 + 11 * year) / 30) + epoch - 1;
1398
- }
1399
- function $f2f3e0e3a817edbd$var$julianDayToIslamic(calendar, epoch, jd) {
1400
- let year = Math.floor((30 * (jd - epoch) + 10646) / 10631);
1401
- let month = Math.min(12, Math.ceil((jd - (29 + $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
1402
- let day = jd - $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, 1) + 1;
1403
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(calendar, year, month, day);
1404
- }
1405
- function $f2f3e0e3a817edbd$var$isLeapYear(year) {
1406
- return (14 + 11 * year) % 30 < 11;
1407
- }
1408
- class $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1409
- fromJulianDay(jd) {
1410
- return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$CIVIL_EPOC, jd);
1411
- }
1412
- toJulianDay(date) {
1413
- return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$CIVIL_EPOC, date.year, date.month, date.day);
1414
- }
1415
- getDaysInMonth(date) {
1416
- let length = 29 + date.month % 2;
1417
- if (date.month === 12 && $f2f3e0e3a817edbd$var$isLeapYear(date.year)) length++;
1418
- return length;
1419
- }
1420
- getMonthsInYear() {
1421
- return 12;
1422
- }
1423
- getDaysInYear(date) {
1424
- return $f2f3e0e3a817edbd$var$isLeapYear(date.year) ? 355 : 354;
1425
- }
1426
- getYearsInEra() {
1427
- return 9665;
1428
- }
1429
- getEras() {
1430
- return [
1431
- "AH"
1432
- ];
1433
- }
1434
- constructor() {
1435
- this.identifier = "islamic-civil";
1436
- }
1437
- }
1438
- class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1439
- fromJulianDay(jd) {
1440
- return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, jd);
1441
- }
1442
- toJulianDay(date) {
1443
- return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);
1444
- }
1445
- constructor(...args) {
1446
- super(...args), this.identifier = "islamic-tbla";
1447
- }
1448
- }
1449
- const $f2f3e0e3a817edbd$var$UMALQURA_DATA = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1450
- let $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH;
1451
- let $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE;
1452
- function $f2f3e0e3a817edbd$var$umalquraYearStart(year) {
1453
- return $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS + $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1454
- }
1455
- function $f2f3e0e3a817edbd$var$umalquraMonthLength(year, month) {
1456
- let idx = year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START;
1457
- let mask = 1 << 11 - (month - 1);
1458
- if (($f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;
1459
- else return 30;
1460
- }
1461
- function $f2f3e0e3a817edbd$var$umalquraMonthStart(year, month) {
1462
- let day = $f2f3e0e3a817edbd$var$umalquraYearStart(year);
1463
- for (let i = 1; i < month; i++) day += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1464
- return day;
1465
- }
1466
- function $f2f3e0e3a817edbd$var$umalquraYearLength(year) {
1467
- return $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year + 1 - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1468
- }
1469
- class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1470
- fromJulianDay(jd) {
1471
- let days = jd - $f2f3e0e3a817edbd$var$CIVIL_EPOC;
1472
- let startDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_START);
1473
- let endDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END);
1474
- if (days < startDays || days > endDays) return super.fromJulianDay(jd);
1475
- else {
1476
- let y = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START - 1;
1477
- let m = 1;
1478
- let d = 1;
1479
- while (d > 0) {
1480
- y++;
1481
- d = days - $f2f3e0e3a817edbd$var$umalquraYearStart(y) + 1;
1482
- let yearLength = $f2f3e0e3a817edbd$var$umalquraYearLength(y);
1483
- if (d === yearLength) {
1484
- m = 12;
1485
- break;
1486
- } else if (d < yearLength) {
1487
- let monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1488
- m = 1;
1489
- while (d > monthLength) {
1490
- d -= monthLength;
1491
- m++;
1492
- monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1493
- }
1494
- break;
1495
- }
1496
- }
1497
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, y, m, days - $f2f3e0e3a817edbd$var$umalquraMonthStart(y, m) + 1);
1498
- }
1499
- }
1500
- toJulianDay(date) {
1501
- if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.toJulianDay(date);
1502
- return $f2f3e0e3a817edbd$var$CIVIL_EPOC + $f2f3e0e3a817edbd$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);
1503
- }
1504
- getDaysInMonth(date) {
1505
- if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);
1506
- return $f2f3e0e3a817edbd$var$umalquraMonthLength(date.year, date.month);
1507
- }
1508
- getDaysInYear(date) {
1509
- if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);
1510
- return $f2f3e0e3a817edbd$var$umalquraYearLength(date.year);
1511
- }
1512
- constructor() {
1513
- super(), this.identifier = "islamic-umalqura";
1514
- if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c) => c.charCodeAt(0)).buffer);
1515
- if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) {
1516
- $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START + 1);
1517
- let yearStart = 0;
1518
- for (let year = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START; year <= $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END; year++) {
1519
- $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] = yearStart;
1520
- for (let i = 1; i <= 12; i++) yearStart += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1521
- }
1522
- }
1523
- }
1524
- }
1525
- const $7c5f6fbf42389787$var$HEBREW_EPOCH = 347997;
1526
- const $7c5f6fbf42389787$var$HOUR_PARTS = 1080;
1527
- const $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS;
1528
- const $7c5f6fbf42389787$var$MONTH_DAYS = 29;
1529
- const $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793;
1530
- const $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;
1531
- function $7c5f6fbf42389787$var$isLeapYear(year) {
1532
- return $2b4dce13dd5a17fa$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
1533
- }
1534
- function $7c5f6fbf42389787$var$hebrewDelay1(year) {
1535
- let months = Math.floor((235 * year - 234) / 19);
1536
- let parts = 12084 + 13753 * months;
1537
- let day = months * 29 + Math.floor(parts / 25920);
1538
- if ($2b4dce13dd5a17fa$export$842a2cf37af977e1(3 * (day + 1), 7) < 3) day += 1;
1539
- return day;
1540
- }
1541
- function $7c5f6fbf42389787$var$hebrewDelay2(year) {
1542
- let last = $7c5f6fbf42389787$var$hebrewDelay1(year - 1);
1543
- let present = $7c5f6fbf42389787$var$hebrewDelay1(year);
1544
- let next = $7c5f6fbf42389787$var$hebrewDelay1(year + 1);
1545
- if (next - present === 356) return 2;
1546
- if (present - last === 382) return 1;
1547
- return 0;
1548
- }
1549
- function $7c5f6fbf42389787$var$startOfYear(year) {
1550
- return $7c5f6fbf42389787$var$hebrewDelay1(year) + $7c5f6fbf42389787$var$hebrewDelay2(year);
1551
- }
1552
- function $7c5f6fbf42389787$var$getDaysInYear(year) {
1553
- return $7c5f6fbf42389787$var$startOfYear(year + 1) - $7c5f6fbf42389787$var$startOfYear(year);
1554
- }
1555
- function $7c5f6fbf42389787$var$getYearType(year) {
1556
- let yearLength = $7c5f6fbf42389787$var$getDaysInYear(year);
1557
- if (yearLength > 380) yearLength -= 30;
1558
- switch (yearLength) {
1559
- case 353:
1560
- return 0;
1561
- case 354:
1562
- return 1;
1563
- case 355:
1564
- return 2;
1565
- }
1566
- }
1567
- function $7c5f6fbf42389787$var$getDaysInMonth(year, month) {
1568
- if (month >= 6 && !$7c5f6fbf42389787$var$isLeapYear(year)) month++;
1569
- if (month === 4 || month === 7 || month === 9 || month === 11 || month === 13) return 29;
1570
- let yearType = $7c5f6fbf42389787$var$getYearType(year);
1571
- if (month === 2) return yearType === 2 ? 30 : 29;
1572
- if (month === 3) return yearType === 0 ? 29 : 30;
1573
- if (month === 6) return $7c5f6fbf42389787$var$isLeapYear(year) ? 30 : 0;
1574
- return 30;
1575
- }
1576
- class $7c5f6fbf42389787$export$ca405048b8fb5af {
1577
- fromJulianDay(jd) {
1578
- let d = jd - $7c5f6fbf42389787$var$HEBREW_EPOCH;
1579
- let m = d * $7c5f6fbf42389787$var$DAY_PARTS / $7c5f6fbf42389787$var$MONTH_PARTS;
1580
- let year = Math.floor((19 * m + 234) / 235) + 1;
1581
- let ys = $7c5f6fbf42389787$var$startOfYear(year);
1582
- let dayOfYear = Math.floor(d - ys);
1583
- while (dayOfYear < 1) {
1584
- year--;
1585
- ys = $7c5f6fbf42389787$var$startOfYear(year);
1586
- dayOfYear = Math.floor(d - ys);
1587
- }
1588
- let month = 1;
1589
- let monthStart = 0;
1590
- while (monthStart < dayOfYear) {
1591
- monthStart += $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1592
- month++;
1593
- }
1594
- month--;
1595
- monthStart -= $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1596
- let day = dayOfYear - monthStart;
1597
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month, day);
1598
- }
1599
- toJulianDay(date) {
1600
- let jd = $7c5f6fbf42389787$var$startOfYear(date.year);
1601
- for (let month = 1; month < date.month; month++) jd += $7c5f6fbf42389787$var$getDaysInMonth(date.year, month);
1602
- return jd + date.day + $7c5f6fbf42389787$var$HEBREW_EPOCH;
1603
- }
1604
- getDaysInMonth(date) {
1605
- return $7c5f6fbf42389787$var$getDaysInMonth(date.year, date.month);
1606
- }
1607
- getMonthsInYear(date) {
1608
- return $7c5f6fbf42389787$var$isLeapYear(date.year) ? 13 : 12;
1609
- }
1610
- getDaysInYear(date) {
1611
- return $7c5f6fbf42389787$var$getDaysInYear(date.year);
1612
- }
1613
- getYearsInEra() {
1614
- return 9999;
1615
- }
1616
- getEras() {
1617
- return [
1618
- "AM"
1619
- ];
1620
- }
1621
- balanceYearMonth(date, previousDate) {
1622
- if (previousDate.year !== date.year) {
1623
- if ($7c5f6fbf42389787$var$isLeapYear(previousDate.year) && !$7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;
1624
- else if (!$7c5f6fbf42389787$var$isLeapYear(previousDate.year) && $7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;
1625
- }
1626
- }
1627
- constructor() {
1628
- this.identifier = "hebrew";
1629
- }
1630
- }
1631
- const $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH = 1723856;
1632
- const $b956b2d7a6cf451f$var$COPTIC_EPOCH = 1824665;
1633
- const $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA = 5500;
1634
- function $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, day) {
1635
- return epoch + 365 * year + Math.floor(year / 4) + 30 * (month - 1) + day - 1;
1636
- }
1637
- function $b956b2d7a6cf451f$var$julianDayToCE(epoch, jd) {
1638
- let year = Math.floor(4 * (jd - epoch) / 1461);
1639
- let month = 1 + Math.floor((jd - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, 1, 1)) / 30);
1640
- let day = jd + 1 - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, 1);
1641
- return [
1642
- year,
1643
- month,
1644
- day
1645
- ];
1646
- }
1647
- function $b956b2d7a6cf451f$var$getLeapDay(year) {
1648
- return Math.floor(year % 4 / 3);
1649
- }
1650
- function $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {
1651
- if (month % 13 !== 0)
1652
- return 30;
1653
- else
1654
- return $b956b2d7a6cf451f$var$getLeapDay(year) + 5;
1655
- }
1656
- class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1657
- fromJulianDay(jd) {
1658
- let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1659
- let era = "AM";
1660
- if (year <= 0) {
1661
- era = "AA";
1662
- year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1663
- }
1664
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1665
- }
1666
- toJulianDay(date) {
1667
- let year = date.year;
1668
- if (date.era === "AA") year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1669
- return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
1670
- }
1671
- getDaysInMonth(date) {
1672
- return $b956b2d7a6cf451f$var$getDaysInMonth(date.year, date.month);
1673
- }
1674
- getMonthsInYear() {
1675
- return 13;
1676
- }
1677
- getDaysInYear(date) {
1678
- return 365 + $b956b2d7a6cf451f$var$getLeapDay(date.year);
1679
- }
1680
- getYearsInEra(date) {
1681
- return date.era === "AA" ? 9999 : 9991;
1682
- }
1683
- getEras() {
1684
- return [
1685
- "AA",
1686
- "AM"
1687
- ];
1688
- }
1689
- constructor() {
1690
- this.identifier = "ethiopic";
1691
- }
1692
- }
1693
- class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1694
- fromJulianDay(jd) {
1695
- let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1696
- year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1697
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, "AA", year, month, day);
1698
- }
1699
- getEras() {
1700
- return [
1701
- "AA"
1702
- ];
1703
- }
1704
- getYearsInEra() {
1705
- return 9999;
1706
- }
1707
- constructor(...args) {
1708
- super(...args), this.identifier = "ethioaa";
1709
- }
1710
- }
1711
- class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1712
- fromJulianDay(jd) {
1713
- let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);
1714
- let era = "CE";
1715
- if (year <= 0) {
1716
- era = "BCE";
1717
- year = 1 - year;
1718
- }
1719
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1720
- }
1721
- toJulianDay(date) {
1722
- let year = date.year;
1723
- if (date.era === "BCE") year = 1 - year;
1724
- return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);
1725
- }
1726
- getDaysInMonth(date) {
1727
- let year = date.year;
1728
- if (date.era === "BCE") year = 1 - year;
1729
- return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);
1730
- }
1731
- isInverseEra(date) {
1732
- return date.era === "BCE";
1733
- }
1734
- balanceDate(date) {
1735
- if (date.year <= 0) {
1736
- date.era = date.era === "BCE" ? "CE" : "BCE";
1737
- date.year = 1 - date.year;
1738
- }
1739
- }
1740
- getEras() {
1741
- return [
1742
- "BCE",
1743
- "CE"
1744
- ];
1745
- }
1746
- getYearsInEra(date) {
1747
- return date.era === "BCE" ? 9999 : 9715;
1748
- }
1749
- constructor(...args) {
1750
- super(...args), this.identifier = "coptic";
1751
- }
1752
- }
1753
- function $64244302c3013299$export$dd0bbc9b26defe37(name) {
1754
- switch (name) {
1755
- case "buddhist":
1756
- return new $8d73d47422ca7302$export$42d20a78301dee44();
1757
- case "ethiopic":
1758
- return new $b956b2d7a6cf451f$export$26ba6eab5e20cd7d();
1759
- case "ethioaa":
1760
- return new $b956b2d7a6cf451f$export$d72e0c37005a4914();
1761
- case "coptic":
1762
- return new $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1();
1763
- case "hebrew":
1764
- return new $7c5f6fbf42389787$export$ca405048b8fb5af();
1765
- case "indian":
1766
- return new $82c358003bdda0a8$export$39f31c639fa15726();
1767
- case "islamic-civil":
1768
- return new $f2f3e0e3a817edbd$export$2066795aadd37bfc();
1769
- case "islamic-tbla":
1770
- return new $f2f3e0e3a817edbd$export$37f0887f2f9d22f7();
1771
- case "islamic-umalqura":
1772
- return new $f2f3e0e3a817edbd$export$5baab4758c231076();
1773
- case "japanese":
1774
- return new $62225008020f0a13$export$b746ab2b60cdffbf();
1775
- case "persian":
1776
- return new $f3ed2e4472ae7e25$export$37fccdbfd14c5939();
1777
- case "roc":
1778
- return new $5f31bd6f0c8940b2$export$65e01080afcb0799();
1779
- case "gregory":
1780
- default:
1781
- return new $3b62074eb05584b2$export$80ee6245ec4f29ec();
1782
- }
1783
- }
1784
- let $fb18d541ea1ad717$var$formatterCache = /* @__PURE__ */ new Map();
1785
- class $fb18d541ea1ad717$export$ad991b66133851cf {
1786
- /** Formats a date as a string according to the locale and format options passed to the constructor. */
1787
- format(value) {
1788
- return this.formatter.format(value);
1789
- }
1790
- /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
1791
- formatToParts(value) {
1792
- return this.formatter.formatToParts(value);
1793
- }
1794
- /** Formats a date range as a string. */
1795
- formatRange(start, end) {
1796
- if (typeof this.formatter.formatRange === "function")
1797
- return this.formatter.formatRange(start, end);
1798
- if (end < start) throw new RangeError("End date must be >= start date");
1799
- return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;
1800
- }
1801
- /** Formats a date range as an array of parts. */
1802
- formatRangeToParts(start, end) {
1803
- if (typeof this.formatter.formatRangeToParts === "function")
1804
- return this.formatter.formatRangeToParts(start, end);
1805
- if (end < start) throw new RangeError("End date must be >= start date");
1806
- let startParts = this.formatter.formatToParts(start);
1807
- let endParts = this.formatter.formatToParts(end);
1808
- return [
1809
- ...startParts.map((p) => ({
1810
- ...p,
1811
- source: "startRange"
1812
- })),
1813
- {
1814
- type: "literal",
1815
- value: " – ",
1816
- source: "shared"
1817
- },
1818
- ...endParts.map((p) => ({
1819
- ...p,
1820
- source: "endRange"
1821
- }))
1822
- ];
1823
- }
1824
- /** Returns the resolved formatting options based on the values passed to the constructor. */
1825
- resolvedOptions() {
1826
- let resolvedOptions = this.formatter.resolvedOptions();
1827
- if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {
1828
- if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
1829
- resolvedOptions.hourCycle = this.resolvedHourCycle;
1830
- resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
1831
- }
1832
- if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
1833
- return resolvedOptions;
1834
- }
1835
- constructor(locale, options = {}) {
1836
- this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);
1837
- this.options = options;
1838
- }
1839
- }
1840
- const $fb18d541ea1ad717$var$hour12Preferences = {
1841
- true: {
1842
- // Only Japanese uses the h11 style for 12 hour time. All others use h12.
1843
- ja: "h11"
1844
- },
1845
- false: {}
1846
- };
1847
- function $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {
1848
- if (typeof options.hour12 === "boolean" && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {
1849
- options = {
1850
- ...options
1851
- };
1852
- let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
1853
- let defaultHourCycle = options.hour12 ? "h12" : "h23";
1854
- options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
1855
- delete options.hour12;
1856
- }
1857
- let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
1858
- if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);
1859
- let numberFormatter = new Intl.DateTimeFormat(locale, options);
1860
- $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);
1861
- return numberFormatter;
1862
- }
1863
- let $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;
1864
- function $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {
1865
- if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
1866
- hour: "numeric",
1867
- hour12: false
1868
- }).format(new Date(2020, 2, 3, 0)) === "24";
1869
- return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;
1870
- }
1871
- let $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;
1872
- function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {
1873
- if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
1874
- hour: "numeric",
1875
- hour12: false
1876
- }).resolvedOptions().hourCycle === "h12";
1877
- return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;
1878
- }
1879
- function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
1880
- if (!options.timeStyle && !options.hour) return void 0;
1881
- locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
1882
- locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
1883
- let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {
1884
- ...options,
1885
- timeZone: void 0
1886
- // use local timezone
1887
- });
1888
- let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === "hour").value, 10);
1889
- let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === "hour").value, 10);
1890
- if (min === 0 && max === 23) return "h23";
1891
- if (min === 24 && max === 23) return "h24";
1892
- if (min === 0 && max === 11) return "h11";
1893
- if (min === 12 && max === 11) return "h12";
1894
- throw new Error("Unexpected hour cycle result");
1895
- }
1896
- function toDate(dateValue, tz = $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) {
1897
- if (isZonedDateTime(dateValue)) return dateValue.toDate();
1898
- else return dateValue.toDate(tz);
1899
- }
1900
- function isCalendarDateTime(dateValue) {
1901
- return dateValue instanceof $35ea8db9cb2ccb90$export$ca871e8dbb80966f;
1902
- }
1903
- function isZonedDateTime(dateValue) {
1904
- return dateValue instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea;
1905
- }
1906
- function hasTime(dateValue) {
1907
- return isCalendarDateTime(dateValue) || isZonedDateTime(dateValue);
1908
- }
1909
- function getDaysInMonth(date) {
1910
- if (date instanceof Date) {
1911
- const year = date.getFullYear();
1912
- const month = date.getMonth() + 1;
1913
- return new Date(year, month, 0).getDate();
1914
- } else return date.set({ day: 100 }).day;
1915
- }
1916
- function isBefore(dateToCompare, referenceDate) {
1917
- return dateToCompare.compare(referenceDate) < 0;
1918
- }
1919
- function isAfter(dateToCompare, referenceDate) {
1920
- return dateToCompare.compare(referenceDate) > 0;
1921
- }
1922
- function getLastFirstDayOfWeek(date, firstDayOfWeek, locale) {
1923
- const day = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, "sun");
1924
- if (firstDayOfWeek > day) return date.subtract({ days: day + 7 - firstDayOfWeek });
1925
- if (firstDayOfWeek === day) return date;
1926
- return date.subtract({ days: day - firstDayOfWeek });
1927
- }
1928
- function getNextLastDayOfWeek(date, firstDayOfWeek, locale) {
1929
- const day = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, "sun");
1930
- const lastDayOfWeek = firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;
1931
- if (day === lastDayOfWeek) return date;
1932
- if (day > lastDayOfWeek) return date.add({ days: 7 - day + lastDayOfWeek });
1933
- return date.add({ days: lastDayOfWeek - day });
1934
- }
1935
- function getDefaultDate(props) {
1936
- const { defaultValue, defaultPlaceholder, granularity = "day", locale = "en" } = props;
1937
- if (Array.isArray(defaultValue) && defaultValue.length) return defaultValue.at(-1).copy();
1938
- if (defaultValue && !Array.isArray(defaultValue)) return defaultValue.copy();
1939
- if (defaultPlaceholder) return defaultPlaceholder.copy();
1940
- const date = /* @__PURE__ */ new Date();
1941
- const year = date.getFullYear();
1942
- const month = date.getMonth() + 1;
1943
- const day = date.getDate();
1944
- const calendarDateTimeGranularities = [
1945
- "hour",
1946
- "minute",
1947
- "second"
1948
- ];
1949
- const defaultFormatter = new $fb18d541ea1ad717$export$ad991b66133851cf(locale);
1950
- const calendar = $64244302c3013299$export$dd0bbc9b26defe37(defaultFormatter.resolvedOptions().calendar);
1951
- if (calendarDateTimeGranularities.includes(granularity ?? "day")) return $11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(year, month, day, 0, 0, 0), calendar);
1952
- return $11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$99faa760c7908e4f(year, month, day), calendar);
1953
- }
1954
- function chunk(arr, size) {
1955
- const result = [];
1956
- for (let i = 0; i < arr.length; i += size) result.push(arr.slice(i, i + size));
1957
- return result;
1958
- }
1959
- function handleCalendarInitialFocus(calendar) {
1960
- const selectedDay = calendar.querySelector("[data-selected]");
1961
- if (selectedDay) return selectedDay.focus();
1962
- const today = calendar.querySelector("[data-today]");
1963
- if (today) return today.focus();
1964
- const firstDay = calendar.querySelector("[data-reka-calendar-day]");
1965
- if (firstDay) return firstDay.focus();
1966
- }
1967
- function getDaysBetween(start, end) {
1968
- const days = [];
1969
- let dCurrent = start.add({ days: 1 });
1970
- const dEnd = end;
1971
- while (dCurrent.compare(dEnd) < 0) {
1972
- days.push(dCurrent);
1973
- dCurrent = dCurrent.add({ days: 1 });
1974
- }
1975
- return days;
1976
- }
1977
- function createMonth(props) {
1978
- const { dateObj, weekStartsOn, fixedWeeks, locale } = props;
1979
- const daysInMonth = getDaysInMonth(dateObj);
1980
- const datesArray = Array.from({ length: daysInMonth }, (_, i) => dateObj.set({ day: i + 1 }));
1981
- const firstDayOfMonth = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(dateObj);
1982
- const lastDayOfMonth = $14e0f24ef4ac5c92$export$a2258d9c4118825c(dateObj);
1983
- const lastSunday = getLastFirstDayOfWeek(firstDayOfMonth, weekStartsOn, locale);
1984
- const nextSaturday = getNextLastDayOfWeek(lastDayOfMonth, weekStartsOn, locale);
1985
- const lastMonthDays = getDaysBetween(lastSunday.subtract({ days: 1 }), firstDayOfMonth);
1986
- const nextMonthDays = getDaysBetween(lastDayOfMonth, nextSaturday.add({ days: 1 }));
1987
- const totalDays = lastMonthDays.length + datesArray.length + nextMonthDays.length;
1988
- if (fixedWeeks && totalDays < 42) {
1989
- const extraDays = 42 - totalDays;
1990
- let startFrom = nextMonthDays[nextMonthDays.length - 1];
1991
- if (!startFrom) startFrom = $14e0f24ef4ac5c92$export$a2258d9c4118825c(dateObj);
1992
- const extraDaysArray = Array.from({ length: extraDays }, (_, i) => {
1993
- const incr = i + 1;
1994
- return startFrom.add({ days: incr });
1995
- });
1996
- nextMonthDays.push(...extraDaysArray);
1997
- }
1998
- const allDays = lastMonthDays.concat(datesArray, nextMonthDays);
1999
- const weeks = chunk(allDays, 7);
2000
- return {
2001
- value: dateObj,
2002
- cells: allDays,
2003
- rows: weeks
2004
- };
2005
- }
2006
- function createYear(props) {
2007
- const { dateObj, numberOfMonths = 1, pagedNavigation = false } = props;
2008
- if (numberOfMonths && pagedNavigation) {
2009
- const monthsArray$1 = Array.from({ length: Math.floor(12 / numberOfMonths) }, (_, i) => $14e0f24ef4ac5c92$export$a5a3b454ada2268e(dateObj.set({ month: i * numberOfMonths + 1 })));
2010
- return monthsArray$1;
2011
- }
2012
- const monthsArray = Array.from({ length: 12 }, (_, i) => $14e0f24ef4ac5c92$export$a5a3b454ada2268e(dateObj.set({ month: i + 1 })));
2013
- return monthsArray;
2014
- }
2015
- function createMonths(props) {
2016
- const { numberOfMonths, dateObj, ...monthProps } = props;
2017
- const months = [];
2018
- if (!numberOfMonths || numberOfMonths === 1) {
2019
- months.push(createMonth({
2020
- ...monthProps,
2021
- dateObj
2022
- }));
2023
- return months;
2024
- }
2025
- months.push(createMonth({
2026
- ...monthProps,
2027
- dateObj
2028
- }));
2029
- for (let i = 1; i < numberOfMonths; i++) {
2030
- const nextMonth = dateObj.add({ months: i });
2031
- months.push(createMonth({
2032
- ...monthProps,
2033
- dateObj: nextMonth
2034
- }));
2035
- }
2036
- return months;
2037
- }
2038
- function createYearRange({ start, end }) {
2039
- const years = [];
2040
- if (!start || !end) return years;
2041
- let current = $14e0f24ef4ac5c92$export$f91e89d3d0406102(start);
2042
- while (current.compare(end) <= 0) {
2043
- years.push(current);
2044
- current = $14e0f24ef4ac5c92$export$f91e89d3d0406102(current.add({ years: 1 }));
2045
- }
2046
- return years;
2047
- }
2048
- function getWeekStartsOn(locale) {
2049
- const monday = new $35ea8db9cb2ccb90$export$99faa760c7908e4f(2025, 1, 6);
2050
- const dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(monday, locale);
2051
- return (1 - dayOfWeek + 7) % 7;
2052
- }
2053
- function useDateFormatter(initialLocale, opts = {}) {
2054
- const locale = ref(initialLocale);
2055
- function getLocale() {
2056
- return locale.value;
2057
- }
2058
- function setLocale(newLocale) {
2059
- locale.value = newLocale;
2060
- }
2061
- function custom(date, options) {
2062
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2063
- ...opts,
2064
- ...options
2065
- }).format(date);
2066
- }
2067
- function selectedDate(date, includeTime = true) {
2068
- if (hasTime(date) && includeTime) return custom(toDate(date), {
2069
- dateStyle: "long",
2070
- timeStyle: "long"
2071
- });
2072
- else return custom(toDate(date), { dateStyle: "long" });
2073
- }
2074
- function fullMonthAndYear(date, options = {}) {
2075
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2076
- ...opts,
2077
- month: "long",
2078
- year: "numeric",
2079
- ...options
2080
- }).format(date);
2081
- }
2082
- function fullMonth(date, options = {}) {
2083
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2084
- ...opts,
2085
- month: "long",
2086
- ...options
2087
- }).format(date);
2088
- }
2089
- function getMonths() {
2090
- const defaultDate = $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2());
2091
- const months = [
2092
- 1,
2093
- 2,
2094
- 3,
2095
- 4,
2096
- 5,
2097
- 6,
2098
- 7,
2099
- 8,
2100
- 9,
2101
- 10,
2102
- 11,
2103
- 12
2104
- ];
2105
- return months.map((item) => ({
2106
- label: fullMonth(toDate(defaultDate.set({ month: item }))),
2107
- value: item
2108
- }));
2109
- }
2110
- function fullYear(date, options = {}) {
2111
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2112
- ...opts,
2113
- year: "numeric",
2114
- ...options
2115
- }).format(date);
2116
- }
2117
- function toParts(date, options) {
2118
- if (isZonedDateTime(date)) return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2119
- ...opts,
2120
- ...options,
2121
- timeZone: date.timeZone
2122
- }).formatToParts(toDate(date));
2123
- else return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2124
- ...opts,
2125
- ...options
2126
- }).formatToParts(toDate(date));
2127
- }
2128
- function dayOfWeek(date, length = "narrow") {
2129
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2130
- ...opts,
2131
- weekday: length
2132
- }).format(date);
2133
- }
2134
- function dayPeriod(date) {
2135
- var _a;
2136
- const parts = new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2137
- ...opts,
2138
- hour: "numeric",
2139
- minute: "numeric"
2140
- }).formatToParts(date);
2141
- const value = (_a = parts.find((p) => p.type === "dayPeriod")) == null ? void 0 : _a.value;
2142
- if (value === "PM" || value === "pm" || value === "p.m.") return "PM";
2143
- return "AM";
2144
- }
2145
- const defaultPartOptions = {
2146
- year: "numeric",
2147
- month: "numeric",
2148
- day: "numeric",
2149
- hour: "numeric",
2150
- minute: "numeric",
2151
- second: "numeric"
2152
- };
2153
- function part(dateObj, type, options = {}) {
2154
- const opts$1 = {
2155
- ...defaultPartOptions,
2156
- ...options
2157
- };
2158
- const parts = toParts(dateObj, opts$1);
2159
- const part$1 = parts.find((p) => p.type === type);
2160
- return part$1 ? part$1.value : "";
2161
- }
2162
- return {
2163
- setLocale,
2164
- getLocale,
2165
- fullMonth,
2166
- fullYear,
2167
- fullMonthAndYear,
2168
- toParts,
2169
- custom,
2170
- part,
2171
- dayPeriod,
2172
- selectedDate,
2173
- dayOfWeek,
2174
- getMonths
2175
- };
2176
- }
2177
- function useLocale(locale) {
2178
- const context = injectConfigProviderContext({ locale: ref("en") });
2179
- return computed(() => {
2180
- var _a;
2181
- return (locale == null ? void 0 : locale.value) || ((_a = context.locale) == null ? void 0 : _a.value) || "en";
2182
- });
2183
- }
2184
- function useCalendarState(props) {
2185
- function isDateSelected(dateObj) {
2186
- if (Array.isArray(props.date.value)) return props.date.value.some((d) => $14e0f24ef4ac5c92$export$ea39ec197993aef0(d, dateObj));
2187
- else if (!props.date.value) return false;
2188
- else return $14e0f24ef4ac5c92$export$ea39ec197993aef0(props.date.value, dateObj);
2189
- }
2190
- const isInvalid = computed(() => {
2191
- var _a, _b, _c, _d;
2192
- if (Array.isArray(props.date.value)) {
2193
- if (!props.date.value.length) return false;
2194
- for (const dateObj of props.date.value) {
2195
- if ((_a = props.isDateDisabled) == null ? void 0 : _a.call(props, dateObj)) return true;
2196
- if ((_b = props.isDateUnavailable) == null ? void 0 : _b.call(props, dateObj)) return true;
2197
- }
2198
- } else {
2199
- if (!props.date.value) return false;
2200
- if ((_c = props.isDateDisabled) == null ? void 0 : _c.call(props, props.date.value)) return true;
2201
- if ((_d = props.isDateUnavailable) == null ? void 0 : _d.call(props, props.date.value)) return true;
2202
- }
2203
- return false;
2204
- });
2205
- const hasSelectedDate = computed(() => {
2206
- return Array.isArray(props.date.value) ? props.date.value.length > 0 : !!props.date.value;
2207
- });
2208
- const isSelectedDateDisabled = computed(() => {
2209
- var _a;
2210
- if (Array.isArray(props.date.value)) {
2211
- if (!props.date.value.length) return false;
2212
- return props.date.value.some((dateObj) => {
2213
- var _a2;
2214
- return (_a2 = props.isDateDisabled) == null ? void 0 : _a2.call(props, dateObj);
2215
- });
2216
- }
2217
- if (!props.date.value) return false;
2218
- return !!((_a = props.isDateDisabled) == null ? void 0 : _a.call(props, props.date.value));
2219
- });
2220
- return {
2221
- isDateSelected,
2222
- isInvalid,
2223
- hasSelectedDate,
2224
- isSelectedDateDisabled
2225
- };
2226
- }
2227
- function handleNextDisabled(lastPeriodInView, nextPageFunc) {
2228
- const firstPeriodOfNextPage = nextPageFunc(lastPeriodInView);
2229
- const diff = firstPeriodOfNextPage.compare(lastPeriodInView);
2230
- const duration = {};
2231
- if (diff >= 7) duration.day = 1;
2232
- if (diff >= getDaysInMonth(lastPeriodInView)) duration.month = 1;
2233
- return firstPeriodOfNextPage.set({ ...duration });
2234
- }
2235
- function handlePrevDisabled(firstPeriodInView, prevPageFunc) {
2236
- const lastPeriodOfPrevPage = prevPageFunc(firstPeriodInView);
2237
- const diff = firstPeriodInView.compare(lastPeriodOfPrevPage);
2238
- const duration = {};
2239
- if (diff >= 7) duration.day = 35;
2240
- if (diff >= getDaysInMonth(firstPeriodInView)) duration.month = 13;
2241
- return lastPeriodOfPrevPage.set({ ...duration });
2242
- }
2243
- function handleNextPage(date, nextPageFunc) {
2244
- return nextPageFunc(date);
2245
- }
2246
- function handlePrevPage(date, prevPageFunc) {
2247
- return prevPageFunc(date);
2248
- }
2249
- function useCalendar(props) {
2250
- const formatter = useDateFormatter(props.locale.value);
2251
- const headingFormatOptions = computed(() => {
2252
- const options = { calendar: props.placeholder.value.calendar.identifier };
2253
- if (props.placeholder.value.calendar.identifier === "gregory" && props.placeholder.value.era === "BC") options.era = "short";
2254
- return options;
2255
- });
2256
- const grid = ref(createMonths({
2257
- dateObj: props.placeholder.value,
2258
- weekStartsOn: props.weekStartsOn.value,
2259
- locale: props.locale.value,
2260
- fixedWeeks: props.fixedWeeks.value,
2261
- numberOfMonths: props.numberOfMonths.value
2262
- }));
2263
- const visibleView = computed(() => {
2264
- return grid.value.map((month) => month.value);
2265
- });
2266
- function isOutsideVisibleView(date) {
2267
- return !visibleView.value.some((month) => $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(date, month));
2268
- }
2269
- const isNextButtonDisabled = (nextPageFunc) => {
2270
- if (!props.maxValue.value || !grid.value.length) return false;
2271
- if (props.disabled.value) return true;
2272
- const lastPeriodInView = grid.value[grid.value.length - 1].value;
2273
- if (!nextPageFunc && !props.nextPage.value) {
2274
- const firstPeriodOfNextPage$1 = lastPeriodInView.add({ months: 1 }).set({ day: 1 });
2275
- return isAfter(firstPeriodOfNextPage$1, props.maxValue.value);
2276
- }
2277
- const firstPeriodOfNextPage = handleNextDisabled(lastPeriodInView, nextPageFunc || props.nextPage.value);
2278
- return isAfter(firstPeriodOfNextPage, props.maxValue.value);
2279
- };
2280
- const isPrevButtonDisabled = (prevPageFunc) => {
2281
- if (!props.minValue.value || !grid.value.length) return false;
2282
- if (props.disabled.value) return true;
2283
- const firstPeriodInView = grid.value[0].value;
2284
- if (!prevPageFunc && !props.prevPage.value) {
2285
- const lastPeriodOfPrevPage$1 = firstPeriodInView.subtract({ months: 1 }).set({ day: 35 });
2286
- return isBefore(lastPeriodOfPrevPage$1, props.minValue.value);
2287
- }
2288
- const lastPeriodOfPrevPage = handlePrevDisabled(firstPeriodInView, prevPageFunc || props.prevPage.value);
2289
- return isBefore(lastPeriodOfPrevPage, props.minValue.value);
2290
- };
2291
- function isDateDisabled(dateObj) {
2292
- var _a;
2293
- if (((_a = props.isDateDisabled) == null ? void 0 : _a.call(props, dateObj)) || props.disabled.value) return true;
2294
- if (props.maxValue.value && isAfter(dateObj, props.maxValue.value)) return true;
2295
- if (props.minValue.value && isBefore(dateObj, props.minValue.value)) return true;
2296
- return false;
2297
- }
2298
- const isDateUnavailable = (date) => {
2299
- var _a;
2300
- if ((_a = props.isDateUnavailable) == null ? void 0 : _a.call(props, date)) return true;
2301
- return false;
2302
- };
2303
- const weekdays = computed(() => {
2304
- if (!grid.value.length) return [];
2305
- return grid.value[0].rows[0].map((date) => {
2306
- return formatter.dayOfWeek(toDate(date), props.weekdayFormat.value);
2307
- });
2308
- });
2309
- const nextPage = (nextPageFunc) => {
2310
- const firstDate = grid.value[0].value;
2311
- if (!nextPageFunc && !props.nextPage.value) {
2312
- const newDate$1 = firstDate.add({ months: props.pagedNavigation.value ? props.numberOfMonths.value : 1 });
2313
- const newGrid$1 = createMonths({
2314
- dateObj: newDate$1,
2315
- weekStartsOn: props.weekStartsOn.value,
2316
- locale: props.locale.value,
2317
- fixedWeeks: props.fixedWeeks.value,
2318
- numberOfMonths: props.numberOfMonths.value
2319
- });
2320
- grid.value = newGrid$1;
2321
- props.placeholder.value = newGrid$1[0].value.set({ day: 1 });
2322
- return;
2323
- }
2324
- const newDate = handleNextPage(firstDate, nextPageFunc || props.nextPage.value);
2325
- const newGrid = createMonths({
2326
- dateObj: newDate,
2327
- weekStartsOn: props.weekStartsOn.value,
2328
- locale: props.locale.value,
2329
- fixedWeeks: props.fixedWeeks.value,
2330
- numberOfMonths: props.numberOfMonths.value
2331
- });
2332
- grid.value = newGrid;
2333
- const duration = {};
2334
- if (!nextPageFunc) {
2335
- const diff = newGrid[0].value.compare(firstDate);
2336
- if (diff >= getDaysInMonth(firstDate)) duration.day = 1;
2337
- if (diff >= 365) duration.month = 1;
2338
- }
2339
- props.placeholder.value = newGrid[0].value.set({ ...duration });
2340
- };
2341
- const prevPage = (prevPageFunc) => {
2342
- const firstDate = grid.value[0].value;
2343
- if (!prevPageFunc && !props.prevPage.value) {
2344
- const newDate$1 = firstDate.subtract({ months: props.pagedNavigation.value ? props.numberOfMonths.value : 1 });
2345
- const newGrid$1 = createMonths({
2346
- dateObj: newDate$1,
2347
- weekStartsOn: props.weekStartsOn.value,
2348
- locale: props.locale.value,
2349
- fixedWeeks: props.fixedWeeks.value,
2350
- numberOfMonths: props.numberOfMonths.value
2351
- });
2352
- grid.value = newGrid$1;
2353
- props.placeholder.value = newGrid$1[0].value.set({ day: 1 });
2354
- return;
2355
- }
2356
- const newDate = handlePrevPage(firstDate, prevPageFunc || props.prevPage.value);
2357
- const newGrid = createMonths({
2358
- dateObj: newDate,
2359
- weekStartsOn: props.weekStartsOn.value,
2360
- locale: props.locale.value,
2361
- fixedWeeks: props.fixedWeeks.value,
2362
- numberOfMonths: props.numberOfMonths.value
2363
- });
2364
- grid.value = newGrid;
2365
- const duration = {};
2366
- if (!prevPageFunc) {
2367
- const diff = firstDate.compare(newGrid[0].value);
2368
- if (diff >= getDaysInMonth(firstDate)) duration.day = 1;
2369
- if (diff >= 365) duration.month = 1;
2370
- }
2371
- props.placeholder.value = newGrid[0].value.set({ ...duration });
2372
- };
2373
- watch(props.placeholder, (value) => {
2374
- if (visibleView.value.some((month) => $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(month, value))) return;
2375
- grid.value = createMonths({
2376
- dateObj: value,
2377
- weekStartsOn: props.weekStartsOn.value,
2378
- locale: props.locale.value,
2379
- fixedWeeks: props.fixedWeeks.value,
2380
- numberOfMonths: props.numberOfMonths.value
2381
- });
2382
- });
2383
- watch([
2384
- props.locale,
2385
- props.weekStartsOn,
2386
- props.fixedWeeks,
2387
- props.numberOfMonths
2388
- ], () => {
2389
- grid.value = createMonths({
2390
- dateObj: props.placeholder.value,
2391
- weekStartsOn: props.weekStartsOn.value,
2392
- locale: props.locale.value,
2393
- fixedWeeks: props.fixedWeeks.value,
2394
- numberOfMonths: props.numberOfMonths.value
2395
- });
2396
- });
2397
- const headingValue = computed(() => {
2398
- if (!grid.value.length) return "";
2399
- if (props.locale.value !== formatter.getLocale()) formatter.setLocale(props.locale.value);
2400
- if (grid.value.length === 1) {
2401
- const month = grid.value[0].value;
2402
- return `${formatter.fullMonthAndYear(toDate(month), headingFormatOptions.value)}`;
2403
- }
2404
- const startMonth = toDate(grid.value[0].value);
2405
- const endMonth = toDate(grid.value[grid.value.length - 1].value);
2406
- const startMonthName = formatter.fullMonth(startMonth, headingFormatOptions.value);
2407
- const endMonthName = formatter.fullMonth(endMonth, headingFormatOptions.value);
2408
- const startMonthYear = formatter.fullYear(startMonth, headingFormatOptions.value);
2409
- const endMonthYear = formatter.fullYear(endMonth, headingFormatOptions.value);
2410
- const content = startMonthYear === endMonthYear ? `${startMonthName} - ${endMonthName} ${endMonthYear}` : `${startMonthName} ${startMonthYear} - ${endMonthName} ${endMonthYear}`;
2411
- return content;
2412
- });
2413
- const fullCalendarLabel = computed(() => `${props.calendarLabel.value ?? "Event Date"}, ${headingValue.value}`);
2414
- const isPlaceholderFocusable = computed(() => {
2415
- return !(isDateDisabled(props.placeholder.value) || isDateUnavailable(props.placeholder.value) || isOutsideVisibleView(props.placeholder.value));
2416
- });
2417
- const firstFocusableDate = computed(() => {
2418
- for (const month of grid.value) {
2419
- if (props.minValue.value && isBefore(month.value, props.minValue.value)) continue;
2420
- const daysInMonth = getDaysInMonth(month.value);
2421
- const startDay = props.minValue.value && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(props.minValue.value, month.value) ? props.minValue.value.day : 1;
2422
- for (let day = startDay; day <= daysInMonth; day++) {
2423
- const date = month.value.set({ day });
2424
- if (isDateDisabled(date) || isDateUnavailable(date)) continue;
2425
- return date;
2426
- }
2427
- }
2428
- });
2429
- return {
2430
- isDateDisabled,
2431
- isDateUnavailable,
2432
- isNextButtonDisabled,
2433
- isPrevButtonDisabled,
2434
- grid,
2435
- weekdays,
2436
- visibleView,
2437
- isOutsideVisibleView,
2438
- formatter,
2439
- nextPage,
2440
- prevPage,
2441
- headingValue,
2442
- fullCalendarLabel,
2443
- isPlaceholderFocusable,
2444
- firstFocusableDate
2445
- };
2446
- }
2447
- const _hoisted_1$1 = { style: {
2448
- "border": "0px",
2449
- "clip": "rect(0px, 0px, 0px, 0px)",
2450
- "clip-path": "inset(50%)",
2451
- "height": "1px",
2452
- "margin": "-1px",
2453
- "overflow": "hidden",
2454
- "padding": "0px",
2455
- "position": "absolute",
2456
- "white-space": "nowrap",
2457
- "width": "1px"
2458
- } };
2459
- const _hoisted_2$1 = {
2460
- role: "heading",
2461
- "aria-level": "2"
2462
- };
2463
- const [injectCalendarRootContext, provideCalendarRootContext] = createContext("CalendarRoot");
2464
- var CalendarRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2465
- __name: "CalendarRoot",
2466
- props: {
2467
- defaultValue: {
2468
- type: null,
2469
- required: false,
2470
- default: void 0
2471
- },
2472
- defaultPlaceholder: {
2473
- type: null,
2474
- required: false
2475
- },
2476
- placeholder: {
2477
- type: null,
2478
- required: false,
2479
- default: void 0
2480
- },
2481
- pagedNavigation: {
2482
- type: Boolean,
2483
- required: false,
2484
- default: false
2485
- },
2486
- preventDeselect: {
2487
- type: Boolean,
2488
- required: false,
2489
- default: false
2490
- },
2491
- weekStartsOn: {
2492
- type: Number,
2493
- required: false
2494
- },
2495
- weekdayFormat: {
2496
- type: String,
2497
- required: false,
2498
- default: "narrow"
2499
- },
2500
- calendarLabel: {
2501
- type: String,
2502
- required: false
2503
- },
2504
- fixedWeeks: {
2505
- type: Boolean,
2506
- required: false,
2507
- default: false
2508
- },
2509
- maxValue: {
2510
- type: null,
2511
- required: false
2512
- },
2513
- minValue: {
2514
- type: null,
2515
- required: false
2516
- },
2517
- locale: {
2518
- type: String,
2519
- required: false
2520
- },
2521
- numberOfMonths: {
2522
- type: Number,
2523
- required: false,
2524
- default: 1
2525
- },
2526
- disabled: {
2527
- type: Boolean,
2528
- required: false,
2529
- default: false
2530
- },
2531
- readonly: {
2532
- type: Boolean,
2533
- required: false,
2534
- default: false
2535
- },
2536
- initialFocus: {
2537
- type: Boolean,
2538
- required: false,
2539
- default: false
2540
- },
2541
- isDateDisabled: {
2542
- type: Function,
2543
- required: false,
2544
- default: void 0
2545
- },
2546
- isDateUnavailable: {
2547
- type: Function,
2548
- required: false,
2549
- default: void 0
2550
- },
2551
- dir: {
2552
- type: String,
2553
- required: false
2554
- },
2555
- nextPage: {
2556
- type: Function,
2557
- required: false
2558
- },
2559
- prevPage: {
2560
- type: Function,
2561
- required: false
2562
- },
2563
- modelValue: {
2564
- type: null,
2565
- required: false
2566
- },
2567
- multiple: {
2568
- type: Boolean,
2569
- required: false,
2570
- default: false
2571
- },
2572
- disableDaysOutsideCurrentView: {
2573
- type: Boolean,
2574
- required: false,
2575
- default: false
2576
- },
2577
- asChild: {
2578
- type: Boolean,
2579
- required: false
2580
- },
2581
- as: {
2582
- type: null,
2583
- required: false,
2584
- default: "div"
2585
- }
2586
- },
2587
- emits: ["update:modelValue", "update:placeholder"],
2588
- setup(__props, { emit: __emit }) {
2589
- const props = __props;
2590
- const emits = __emit;
2591
- const { disabled, readonly, initialFocus, pagedNavigation, weekdayFormat, fixedWeeks, multiple, minValue, maxValue, numberOfMonths, preventDeselect, isDateDisabled: propsIsDateDisabled, isDateUnavailable: propsIsDateUnavailable, calendarLabel, defaultValue, nextPage: propsNextPage, prevPage: propsPrevPage, dir: propDir, locale: propLocale, disableDaysOutsideCurrentView } = toRefs(props);
2592
- const { primitiveElement, currentElement: parentElement } = usePrimitiveElement();
2593
- const locale = useLocale(propLocale);
2594
- const dir = useDirection(propDir);
2595
- const weekStartsOn = computed(() => props.weekStartsOn ?? getWeekStartsOn(locale.value));
2596
- const modelValue = useVModel(props, "modelValue", emits, {
2597
- defaultValue: defaultValue.value,
2598
- passive: props.modelValue === void 0
2599
- });
2600
- const defaultDate = getDefaultDate({
2601
- defaultPlaceholder: props.placeholder,
2602
- defaultValue: modelValue.value,
2603
- locale: props.locale
2604
- });
2605
- const placeholder = useVModel(props, "placeholder", emits, {
2606
- defaultValue: props.defaultPlaceholder ?? defaultDate.copy(),
2607
- passive: props.placeholder === void 0
2608
- });
2609
- function onPlaceholderChange(value) {
2610
- placeholder.value = value.copy();
2611
- }
2612
- const { fullCalendarLabel, headingValue, isDateDisabled, isDateUnavailable, isNextButtonDisabled, isPrevButtonDisabled, weekdays, isOutsideVisibleView, nextPage, prevPage, formatter, grid, isPlaceholderFocusable, firstFocusableDate } = useCalendar({
2613
- locale,
2614
- placeholder,
2615
- weekStartsOn,
2616
- fixedWeeks,
2617
- numberOfMonths,
2618
- minValue,
2619
- maxValue,
2620
- disabled,
2621
- weekdayFormat,
2622
- pagedNavigation,
2623
- isDateDisabled: propsIsDateDisabled.value,
2624
- isDateUnavailable: propsIsDateUnavailable.value,
2625
- calendarLabel,
2626
- nextPage: propsNextPage,
2627
- prevPage: propsPrevPage
2628
- });
2629
- const { isInvalid, isDateSelected, hasSelectedDate, isSelectedDateDisabled } = useCalendarState({
2630
- date: modelValue,
2631
- isDateDisabled,
2632
- isDateUnavailable
2633
- });
2634
- watch(modelValue, (_modelValue) => {
2635
- if (Array.isArray(_modelValue) && _modelValue.length) {
2636
- const lastValue = _modelValue[_modelValue.length - 1];
2637
- if (lastValue && !$14e0f24ef4ac5c92$export$91b62ebf2ba703ee(placeholder.value, lastValue)) onPlaceholderChange(lastValue);
2638
- } else if (!Array.isArray(_modelValue) && _modelValue && !$14e0f24ef4ac5c92$export$91b62ebf2ba703ee(placeholder.value, _modelValue)) onPlaceholderChange(_modelValue);
2639
- });
2640
- function onDateChange(value) {
2641
- if (!multiple.value) {
2642
- if (!modelValue.value) {
2643
- modelValue.value = value.copy();
2644
- return;
2645
- }
2646
- if (!preventDeselect.value && $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(modelValue.value, value)) {
2647
- placeholder.value = value.copy();
2648
- modelValue.value = void 0;
2649
- } else modelValue.value = value.copy();
2650
- } else if (!modelValue.value) modelValue.value = [value.copy()];
2651
- else if (Array.isArray(modelValue.value)) {
2652
- const index = modelValue.value.findIndex((date) => $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, value));
2653
- if (index === -1) modelValue.value = [...modelValue.value, value];
2654
- else if (!preventDeselect.value) {
2655
- const next = modelValue.value.filter((date) => !$14e0f24ef4ac5c92$export$ea39ec197993aef0(date, value));
2656
- if (!next.length) {
2657
- placeholder.value = value.copy();
2658
- modelValue.value = void 0;
2659
- return;
2660
- }
2661
- modelValue.value = next.map((date) => date.copy());
2662
- }
2663
- }
2664
- }
2665
- onMounted(() => {
2666
- if (initialFocus.value) handleCalendarInitialFocus(parentElement.value);
2667
- });
2668
- provideCalendarRootContext({
2669
- isDateUnavailable,
2670
- dir,
2671
- isDateDisabled,
2672
- locale,
2673
- formatter,
2674
- modelValue,
2675
- placeholder,
2676
- disabled,
2677
- initialFocus,
2678
- pagedNavigation,
2679
- grid,
2680
- weekDays: weekdays,
2681
- weekStartsOn,
2682
- weekdayFormat,
2683
- fixedWeeks,
2684
- multiple,
2685
- numberOfMonths,
2686
- readonly,
2687
- preventDeselect,
2688
- fullCalendarLabel,
2689
- headingValue,
2690
- isInvalid,
2691
- isDateSelected,
2692
- isNextButtonDisabled,
2693
- isPrevButtonDisabled,
2694
- isOutsideVisibleView,
2695
- nextPage,
2696
- prevPage,
2697
- parentElement,
2698
- onPlaceholderChange,
2699
- onDateChange,
2700
- disableDaysOutsideCurrentView,
2701
- minValue,
2702
- maxValue,
2703
- isPlaceholderFocusable,
2704
- firstFocusableDate,
2705
- hasSelectedDate,
2706
- isSelectedDateDisabled
2707
- });
2708
- return (_ctx, _cache) => {
2709
- return openBlock(), createBlock(unref(Primitive), {
2710
- ref_key: "primitiveElement",
2711
- ref: primitiveElement,
2712
- as: _ctx.as,
2713
- "as-child": _ctx.asChild,
2714
- "aria-label": unref(fullCalendarLabel),
2715
- "data-readonly": unref(readonly) ? "" : void 0,
2716
- "data-disabled": unref(disabled) ? "" : void 0,
2717
- "data-invalid": unref(isInvalid) ? "" : void 0,
2718
- dir: unref(dir)
2719
- }, {
2720
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
2721
- date: unref(placeholder),
2722
- grid: unref(grid),
2723
- weekDays: unref(weekdays),
2724
- weekStartsOn: weekStartsOn.value,
2725
- locale: unref(locale),
2726
- fixedWeeks: unref(fixedWeeks),
2727
- modelValue: unref(modelValue)
2728
- }), createElementVNode("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, toDisplayString(unref(fullCalendarLabel)), 1)])]),
2729
- _: 3
2730
- }, 8, [
2731
- "as",
2732
- "as-child",
2733
- "aria-label",
2734
- "data-readonly",
2735
- "data-disabled",
2736
- "data-invalid",
2737
- "dir"
2738
- ]);
2739
- };
2740
- }
2741
- });
2742
- var CalendarRoot_default = CalendarRoot_vue_vue_type_script_setup_true_lang_default;
2743
- var CalendarCell_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2744
- __name: "CalendarCell",
2745
- props: {
2746
- date: {
2747
- type: null,
2748
- required: true
2749
- },
2750
- asChild: {
2751
- type: Boolean,
2752
- required: false
2753
- },
2754
- as: {
2755
- type: null,
2756
- required: false,
2757
- default: "td"
2758
- }
2759
- },
2760
- setup(__props) {
2761
- const rootContext = injectCalendarRootContext();
2762
- return (_ctx, _cache) => {
2763
- var _a, _b;
2764
- return openBlock(), createBlock(unref(Primitive), {
2765
- as: _ctx.as,
2766
- "as-child": _ctx.asChild,
2767
- role: "gridcell",
2768
- "aria-selected": unref(rootContext).isDateSelected(_ctx.date) ? true : void 0,
2769
- "aria-disabled": unref(rootContext).isDateDisabled(_ctx.date) || ((_b = (_a = unref(rootContext)).isDateUnavailable) == null ? void 0 : _b.call(_a, _ctx.date)) || unref(rootContext).disableDaysOutsideCurrentView.value,
2770
- "data-disabled": unref(rootContext).isDateDisabled(_ctx.date) || unref(rootContext).disableDaysOutsideCurrentView.value ? "" : void 0
2771
- }, {
2772
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
2773
- _: 3
2774
- }, 8, [
2775
- "as",
2776
- "as-child",
2777
- "aria-selected",
2778
- "aria-disabled",
2779
- "data-disabled"
2780
- ]);
2781
- };
2782
- }
2783
- });
2784
- var CalendarCell_default = CalendarCell_vue_vue_type_script_setup_true_lang_default;
2785
- var CalendarCellTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2786
- __name: "CalendarCellTrigger",
2787
- props: {
2788
- day: {
2789
- type: null,
2790
- required: true
2791
- },
2792
- month: {
2793
- type: null,
2794
- required: true
2795
- },
2796
- asChild: {
2797
- type: Boolean,
2798
- required: false
2799
- },
2800
- as: {
2801
- type: null,
2802
- required: false,
2803
- default: "div"
2804
- }
2805
- },
2806
- setup(__props) {
2807
- const props = __props;
2808
- const kbd = useKbd();
2809
- const rootContext = injectCalendarRootContext();
2810
- const { primitiveElement } = usePrimitiveElement();
2811
- const dayValue = computed(() => props.day.day.toLocaleString(rootContext.locale.value));
2812
- const labelText = computed(() => {
2813
- return rootContext.formatter.custom(toDate(props.day), {
2814
- weekday: "long",
2815
- month: "long",
2816
- day: "numeric",
2817
- year: "numeric"
2818
- });
2819
- });
2820
- const isUnavailable = computed(() => {
2821
- var _a;
2822
- return ((_a = rootContext.isDateUnavailable) == null ? void 0 : _a.call(rootContext, props.day)) ?? false;
2823
- });
2824
- const isDateToday = computed(() => {
2825
- return $14e0f24ef4ac5c92$export$629b0a497aa65267(props.day, $14e0f24ef4ac5c92$export$aa8b41735afcabd2());
2826
- });
2827
- const isOutsideView = computed(() => {
2828
- return !$14e0f24ef4ac5c92$export$a18c89cbd24170ff(props.day, props.month);
2829
- });
2830
- const isOutsideVisibleView = computed(() => rootContext.isOutsideVisibleView(props.day));
2831
- const isDisabled = computed(() => rootContext.isDateDisabled(props.day) || rootContext.disableDaysOutsideCurrentView.value && isOutsideView.value);
2832
- const isFocusedDate = computed(() => {
2833
- if (isOutsideView.value || isDisabled.value) return false;
2834
- if (!rootContext.disabled.value && rootContext.isPlaceholderFocusable.value && $14e0f24ef4ac5c92$export$ea39ec197993aef0(props.day, rootContext.placeholder.value)) return true;
2835
- if ((!rootContext.hasSelectedDate.value || rootContext.isSelectedDateDisabled.value) && !rootContext.isPlaceholderFocusable.value) return rootContext.firstFocusableDate.value && $14e0f24ef4ac5c92$export$ea39ec197993aef0(props.day, rootContext.firstFocusableDate.value);
2836
- return false;
2837
- });
2838
- const isSelectedDate = computed(() => rootContext.isDateSelected(props.day));
2839
- function changeDate(date) {
2840
- var _a;
2841
- if (rootContext.readonly.value) return;
2842
- if (rootContext.isDateDisabled(date) || ((_a = rootContext.isDateUnavailable) == null ? void 0 : _a.call(rootContext, date))) return;
2843
- rootContext.onDateChange(date);
2844
- }
2845
- function handleClick() {
2846
- if (isDisabled.value) return;
2847
- changeDate(props.day);
2848
- }
2849
- function handleArrowKey(e) {
2850
- if (isDisabled.value) return;
2851
- e.preventDefault();
2852
- e.stopPropagation();
2853
- const parentElement = rootContext.parentElement.value;
2854
- const indexIncrementation = 7;
2855
- const sign = rootContext.dir.value === "rtl" ? -1 : 1;
2856
- switch (e.code) {
2857
- case kbd.ARROW_RIGHT:
2858
- shiftFocus(props.day, sign);
2859
- break;
2860
- case kbd.ARROW_LEFT:
2861
- shiftFocus(props.day, -sign);
2862
- break;
2863
- case kbd.ARROW_UP:
2864
- shiftFocus(props.day, -indexIncrementation);
2865
- break;
2866
- case kbd.ARROW_DOWN:
2867
- shiftFocus(props.day, indexIncrementation);
2868
- break;
2869
- case kbd.ENTER:
2870
- case kbd.SPACE_CODE:
2871
- changeDate(props.day);
2872
- }
2873
- function shiftFocus(day, add) {
2874
- const candidateDayValue = day.add({ days: add });
2875
- if (rootContext.minValue.value && candidateDayValue.compare(rootContext.minValue.value) < 0 || rootContext.maxValue.value && candidateDayValue.compare(rootContext.maxValue.value) > 0) return;
2876
- const candidateDay = parentElement.querySelector(`[data-value='${candidateDayValue.toString()}']:not([data-outside-view])`);
2877
- if (!candidateDay) {
2878
- if (add > 0) {
2879
- if (rootContext.isNextButtonDisabled()) return;
2880
- rootContext.nextPage();
2881
- } else {
2882
- if (rootContext.isPrevButtonDisabled()) return;
2883
- rootContext.prevPage();
2884
- }
2885
- nextTick(() => {
2886
- shiftFocus(day, add);
2887
- });
2888
- return;
2889
- }
2890
- if (candidateDay && candidateDay.hasAttribute("data-disabled")) return shiftFocus(candidateDayValue, add);
2891
- rootContext.onPlaceholderChange(candidateDayValue);
2892
- candidateDay == null ? void 0 : candidateDay.focus();
2893
- }
2894
- }
2895
- return (_ctx, _cache) => {
2896
- return openBlock(), createBlock(unref(Primitive), {
2897
- ref_key: "primitiveElement",
2898
- ref: primitiveElement,
2899
- as: props.as,
2900
- "as-child": props.asChild,
2901
- role: "button",
2902
- "aria-label": labelText.value,
2903
- "data-reka-calendar-cell-trigger": "",
2904
- "aria-disabled": isDisabled.value || isUnavailable.value ? true : void 0,
2905
- "data-selected": isSelectedDate.value ? true : void 0,
2906
- "data-value": _ctx.day.toString(),
2907
- "data-disabled": isDisabled.value ? "" : void 0,
2908
- "data-unavailable": isUnavailable.value ? "" : void 0,
2909
- "data-today": isDateToday.value ? "" : void 0,
2910
- "data-outside-view": isOutsideView.value ? "" : void 0,
2911
- "data-outside-visible-view": isOutsideVisibleView.value ? "" : void 0,
2912
- "data-focused": isFocusedDate.value ? "" : void 0,
2913
- tabindex: isFocusedDate.value ? 0 : isOutsideView.value || isDisabled.value ? void 0 : -1,
2914
- onClick: handleClick,
2915
- onKeydown: [withKeys(handleArrowKey, [
2916
- "up",
2917
- "down",
2918
- "left",
2919
- "right",
2920
- "space",
2921
- "enter"
2922
- ]), _cache[0] || (_cache[0] = withKeys(withModifiers(() => {
2923
- }, ["prevent"]), ["enter"]))]
2924
- }, {
2925
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
2926
- dayValue: dayValue.value,
2927
- disabled: isDisabled.value,
2928
- today: isDateToday.value,
2929
- selected: isSelectedDate.value,
2930
- outsideView: isOutsideView.value,
2931
- outsideVisibleView: isOutsideVisibleView.value,
2932
- unavailable: isUnavailable.value
2933
- }, () => [createTextVNode(toDisplayString(dayValue.value), 1)])]),
2934
- _: 3
2935
- }, 8, [
2936
- "as",
2937
- "as-child",
2938
- "aria-label",
2939
- "aria-disabled",
2940
- "data-selected",
2941
- "data-value",
2942
- "data-disabled",
2943
- "data-unavailable",
2944
- "data-today",
2945
- "data-outside-view",
2946
- "data-outside-visible-view",
2947
- "data-focused",
2948
- "tabindex"
2949
- ]);
2950
- };
2951
- }
2952
- });
2953
- var CalendarCellTrigger_default = CalendarCellTrigger_vue_vue_type_script_setup_true_lang_default;
2954
- var CalendarGrid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2955
- __name: "CalendarGrid",
2956
- props: {
2957
- asChild: {
2958
- type: Boolean,
2959
- required: false
2960
- },
2961
- as: {
2962
- type: null,
2963
- required: false,
2964
- default: "table"
2965
- }
2966
- },
2967
- setup(__props) {
2968
- const props = __props;
2969
- const rootContext = injectCalendarRootContext();
2970
- const disabled = computed(() => rootContext.disabled.value ? true : void 0);
2971
- const readonly = computed(() => rootContext.readonly.value ? true : void 0);
2972
- return (_ctx, _cache) => {
2973
- return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
2974
- tabindex: "-1",
2975
- role: "application",
2976
- "aria-readonly": readonly.value,
2977
- "aria-disabled": disabled.value,
2978
- "data-readonly": readonly.value && "",
2979
- "data-disabled": disabled.value && ""
2980
- }), {
2981
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
2982
- _: 3
2983
- }, 16, [
2984
- "aria-readonly",
2985
- "aria-disabled",
2986
- "data-readonly",
2987
- "data-disabled"
2988
- ]);
2989
- };
2990
- }
2991
- });
2992
- var CalendarGrid_default = CalendarGrid_vue_vue_type_script_setup_true_lang_default;
2993
- var CalendarGridBody_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2994
- __name: "CalendarGridBody",
2995
- props: {
2996
- asChild: {
2997
- type: Boolean,
2998
- required: false
2999
- },
3000
- as: {
3001
- type: null,
3002
- required: false,
3003
- default: "tbody"
3004
- }
3005
- },
3006
- setup(__props) {
3007
- const props = __props;
3008
- return (_ctx, _cache) => {
3009
- return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3010
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3011
- _: 3
3012
- }, 16);
3013
- };
3014
- }
3015
- });
3016
- var CalendarGridBody_default = CalendarGridBody_vue_vue_type_script_setup_true_lang_default;
3017
- var CalendarGridHead_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3018
- __name: "CalendarGridHead",
3019
- props: {
3020
- asChild: {
3021
- type: Boolean,
3022
- required: false
3023
- },
3024
- as: {
3025
- type: null,
3026
- required: false,
3027
- default: "thead"
3028
- }
3029
- },
3030
- setup(__props) {
3031
- const props = __props;
3032
- return (_ctx, _cache) => {
3033
- return openBlock(), createBlock(unref(Primitive), mergeProps(props, { "aria-hidden": "true" }), {
3034
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3035
- _: 3
3036
- }, 16);
3037
- };
3038
- }
3039
- });
3040
- var CalendarGridHead_default = CalendarGridHead_vue_vue_type_script_setup_true_lang_default;
3041
- var CalendarGridRow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3042
- __name: "CalendarGridRow",
3043
- props: {
3044
- asChild: {
3045
- type: Boolean,
3046
- required: false
3047
- },
3048
- as: {
3049
- type: null,
3050
- required: false,
3051
- default: "tr"
3052
- }
3053
- },
3054
- setup(__props) {
3055
- const props = __props;
3056
- return (_ctx, _cache) => {
3057
- return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3058
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3059
- _: 3
3060
- }, 16);
3061
- };
3062
- }
3063
- });
3064
- var CalendarGridRow_default = CalendarGridRow_vue_vue_type_script_setup_true_lang_default;
3065
- var CalendarHeadCell_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3066
- __name: "CalendarHeadCell",
3067
- props: {
3068
- asChild: {
3069
- type: Boolean,
3070
- required: false
3071
- },
3072
- as: {
3073
- type: null,
3074
- required: false,
3075
- default: "th"
3076
- }
3077
- },
3078
- setup(__props) {
3079
- const props = __props;
3080
- return (_ctx, _cache) => {
3081
- return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3082
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3083
- _: 3
3084
- }, 16);
3085
- };
3086
- }
3087
- });
3088
- var CalendarHeadCell_default = CalendarHeadCell_vue_vue_type_script_setup_true_lang_default;
3089
- var CalendarHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3090
- __name: "CalendarHeader",
3091
- props: {
3092
- asChild: {
3093
- type: Boolean,
3094
- required: false
3095
- },
3096
- as: {
3097
- type: null,
3098
- required: false,
3099
- default: "div"
3100
- }
3101
- },
3102
- setup(__props) {
3103
- const props = __props;
3104
- return (_ctx, _cache) => {
3105
- return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3106
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3107
- _: 3
3108
- }, 16);
3109
- };
3110
- }
3111
- });
3112
- var CalendarHeader_default = CalendarHeader_vue_vue_type_script_setup_true_lang_default;
3113
- var CalendarHeading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3114
- __name: "CalendarHeading",
3115
- props: {
3116
- asChild: {
3117
- type: Boolean,
3118
- required: false
3119
- },
3120
- as: {
3121
- type: null,
3122
- required: false,
3123
- default: "div"
3124
- }
3125
- },
3126
- setup(__props) {
3127
- const props = __props;
3128
- const rootContext = injectCalendarRootContext();
3129
- return (_ctx, _cache) => {
3130
- return openBlock(), createBlock(unref(Primitive), mergeProps(props, { "data-disabled": unref(rootContext).disabled.value ? "" : void 0 }), {
3131
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", { headingValue: unref(rootContext).headingValue.value }, () => [createTextVNode(toDisplayString(unref(rootContext).headingValue.value), 1)])]),
3132
- _: 3
3133
- }, 16, ["data-disabled"]);
3134
- };
3135
- }
3136
- });
3137
- var CalendarHeading_default = CalendarHeading_vue_vue_type_script_setup_true_lang_default;
3138
- var CalendarNext_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3139
- __name: "CalendarNext",
3140
- props: {
3141
- nextPage: {
3142
- type: Function,
3143
- required: false
3144
- },
3145
- asChild: {
3146
- type: Boolean,
3147
- required: false
3148
- },
3149
- as: {
3150
- type: null,
3151
- required: false,
3152
- default: "button"
3153
- }
3154
- },
3155
- setup(__props) {
3156
- const props = __props;
3157
- const disabled = computed(() => rootContext.disabled.value || rootContext.isNextButtonDisabled(props.nextPage));
3158
- const rootContext = injectCalendarRootContext();
3159
- function handleClick() {
3160
- if (disabled.value) return;
3161
- rootContext.nextPage(props.nextPage);
3162
- }
3163
- return (_ctx, _cache) => {
3164
- return openBlock(), createBlock(unref(Primitive), {
3165
- as: props.as,
3166
- "as-child": props.asChild,
3167
- "aria-label": "Next page",
3168
- type: props.as === "button" ? "button" : void 0,
3169
- "aria-disabled": disabled.value || void 0,
3170
- "data-disabled": disabled.value || void 0,
3171
- disabled: disabled.value,
3172
- onClick: handleClick
3173
- }, {
3174
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", { disabled: disabled.value }, () => [_cache[0] || (_cache[0] = createTextVNode(" Next page "))])]),
3175
- _: 3
3176
- }, 8, [
3177
- "as",
3178
- "as-child",
3179
- "type",
3180
- "aria-disabled",
3181
- "data-disabled",
3182
- "disabled"
3183
- ]);
3184
- };
3185
- }
3186
- });
3187
- var CalendarNext_default = CalendarNext_vue_vue_type_script_setup_true_lang_default;
3188
- var CalendarPrev_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3189
- __name: "CalendarPrev",
3190
- props: {
3191
- prevPage: {
3192
- type: Function,
3193
- required: false
3194
- },
3195
- asChild: {
3196
- type: Boolean,
3197
- required: false
3198
- },
3199
- as: {
3200
- type: null,
3201
- required: false,
3202
- default: "button"
3203
- }
3204
- },
3205
- setup(__props) {
3206
- const props = __props;
3207
- const disabled = computed(() => rootContext.disabled.value || rootContext.isPrevButtonDisabled(props.prevPage));
3208
- const rootContext = injectCalendarRootContext();
3209
- function handleClick() {
3210
- if (disabled.value) return;
3211
- rootContext.prevPage(props.prevPage);
3212
- }
3213
- return (_ctx, _cache) => {
3214
- return openBlock(), createBlock(unref(Primitive), {
3215
- "aria-label": "Previous page",
3216
- as: props.as,
3217
- "as-child": props.asChild,
3218
- type: props.as === "button" ? "button" : void 0,
3219
- "aria-disabled": disabled.value || void 0,
3220
- "data-disabled": disabled.value || void 0,
3221
- disabled: disabled.value,
3222
- onClick: handleClick
3223
- }, {
3224
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", { disabled: disabled.value }, () => [_cache[0] || (_cache[0] = createTextVNode(" Prev page "))])]),
3225
- _: 3
3226
- }, 8, [
3227
- "as",
3228
- "as-child",
3229
- "type",
3230
- "aria-disabled",
3231
- "data-disabled",
3232
- "disabled"
3233
- ]);
3234
- };
3235
- }
3236
- });
3237
- var CalendarPrev_default = CalendarPrev_vue_vue_type_script_setup_true_lang_default;
3238
- const _hoisted_1 = { class: "**:data-[slot=native-select-icon]:right-1" };
3239
- const _hoisted_2 = { class: "relative h-10 rounded border border-(--border-light) bg-(--button-secondary-light) transition-all duration-300 ease-in-out hover:border-(--border-hover-light) focus-within:border-(--border-hover-light) dark:border-(--border-dark) dark:bg-(--button-secondary-dark) dark:hover:border-(--border-hover-dark) dark:focus-within:border-(--border-hover-dark)" };
3240
- const _hoisted_3 = { class: "absolute inset-0 z-10 flex h-full items-center text-sm pl-2 pointer-events-none" };
3241
- const _hoisted_4 = { class: "**:data-[slot=native-select-icon]:right-1" };
3242
- const _hoisted_5 = { class: "relative h-10 rounded border border-(--border-light) bg-(--button-secondary-light) transition-all duration-300 ease-in-out hover:border-(--border-hover-light) focus-within:border-(--border-hover-light) dark:border-(--border-dark) dark:bg-(--button-secondary-dark) dark:hover:border-(--border-hover-dark) dark:focus-within:border-(--border-hover-dark)" };
3243
- const _hoisted_6 = { class: "absolute inset-0 z-10 flex h-full items-center text-sm pl-2 pointer-events-none" };
3244
- const _hoisted_7 = { class: "flex items-center gap-1 absolute top-0 inset-x-0 justify-between" };
3245
- const _hoisted_8 = {
3246
- key: 0,
3247
- class: "flex items-center justify-center gap-1"
3248
- };
3249
- const _hoisted_9 = {
3250
- key: 1,
3251
- class: "flex items-center justify-center gap-1"
3252
- };
3253
- const _hoisted_10 = {
3254
- key: 2,
3255
- class: "flex items-center justify-center gap-1"
3256
- };
3257
- const _hoisted_11 = { class: "flex flex-col gap-y-4 mt-4 sm:flex-row sm:gap-x-4 sm:gap-y-0" };
3258
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3259
- __name: "Calendar",
3260
- props: {
3261
- defaultValue: {},
3262
- defaultPlaceholder: {},
3263
- placeholder: {},
3264
- pagedNavigation: { type: Boolean },
3265
- preventDeselect: { type: Boolean },
3266
- weekStartsOn: {},
3267
- weekdayFormat: {},
3268
- calendarLabel: {},
3269
- fixedWeeks: { type: Boolean },
3270
- maxValue: {},
3271
- minValue: {},
3272
- locale: {},
3273
- numberOfMonths: {},
3274
- disabled: { type: Boolean },
3275
- readonly: { type: Boolean },
3276
- initialFocus: { type: Boolean },
3277
- isDateDisabled: {},
3278
- isDateUnavailable: {},
3279
- dir: {},
3280
- nextPage: {},
3281
- prevPage: {},
3282
- modelValue: { default: void 0 },
3283
- multiple: { type: Boolean },
3284
- disableDaysOutsideCurrentView: { type: Boolean },
3285
- asChild: { type: Boolean },
3286
- as: {},
3287
- class: {},
3288
- layout: { default: void 0 },
3289
- yearRange: {}
3290
- },
3291
- emits: ["update:modelValue", "update:placeholder"],
3292
- setup(__props, { emit: __emit }) {
3293
- const props = __props;
3294
- const emits = __emit;
3295
- const delegatedProps = reactiveOmit(props, "class", "layout", "placeholder");
3296
- const placeholder = useVModel(props, "placeholder", emits, {
3297
- passive: true,
3298
- defaultValue: props.defaultPlaceholder ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())
3299
- });
3300
- const formatter = useDateFormatter(props.locale ?? "en");
3301
- const yearRange = computed(() => {
3302
- return props.yearRange ?? createYearRange({
3303
- start: (props == null ? void 0 : props.minValue) ?? (toRaw(props.placeholder) ?? props.defaultPlaceholder ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())).cycle("year", -100),
3304
- end: (props == null ? void 0 : props.maxValue) ?? (toRaw(props.placeholder) ?? props.defaultPlaceholder ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())).cycle("year", 10)
3305
- });
3306
- });
3307
- const [DefineMonthTemplate, ReuseMonthTemplate] = createReusableTemplate();
3308
- const [DefineYearTemplate, ReuseYearTemplate] = createReusableTemplate();
3309
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
3310
- return (_ctx, _cache) => {
3311
- return openBlock(), createElementBlock(Fragment, null, [
3312
- createVNode(unref(DefineMonthTemplate), null, {
3313
- default: withCtx(({ date }) => [
3314
- createElementVNode("div", _hoisted_1, [
3315
- createElementVNode("div", _hoisted_2, [
3316
- createElementVNode("div", _hoisted_3, toDisplayString(unref(formatter).custom(unref(toDate)(date), { month: "short" })), 1),
3317
- createVNode(unref(_sfc_main$c), {
3318
- class: "relative z-20 h-full min-h-0 w-[92px] rounded-none border-0 bg-transparent pl-2 pr-6 text-xs font-semibold text-transparent shadow-none transition-all duration-300 ease-in-out outline-none ring-0 focus-visible:border-0 focus-visible:ring-0 dark:bg-transparent sm:text-sm",
3319
- "model-value": date.month,
3320
- onChange: _cache[0] || (_cache[0] = (e) => {
3321
- var _a;
3322
- placeholder.value = unref(placeholder).set({
3323
- month: Number((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value)
3324
- });
3325
- })
3326
- }, {
3327
- default: withCtx(() => [
3328
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(createYear)({ dateObj: date }), (month) => {
3329
- return openBlock(), createBlock(unref(_sfc_main$d), {
3330
- key: month.toString(),
3331
- value: month.month,
3332
- selected: date.month === month.month
3333
- }, {
3334
- default: withCtx(() => [
3335
- createTextVNode(toDisplayString(unref(formatter).custom(unref(toDate)(month), { month: "short" })), 1)
3336
- ]),
3337
- _: 2
3338
- }, 1032, ["value", "selected"]);
3339
- }), 128))
3340
- ]),
3341
- _: 2
3342
- }, 1032, ["model-value"])
3343
- ])
3344
- ])
3345
- ]),
3346
- _: 1
3347
- }),
3348
- createVNode(unref(DefineYearTemplate), null, {
3349
- default: withCtx(({ date }) => [
3350
- createElementVNode("div", _hoisted_4, [
3351
- createElementVNode("div", _hoisted_5, [
3352
- createElementVNode("div", _hoisted_6, toDisplayString(unref(formatter).custom(unref(toDate)(date), { year: "numeric" })), 1),
3353
- createVNode(unref(_sfc_main$c), {
3354
- class: "relative z-20 h-full min-h-0 w-[96px] rounded-none border-0 bg-transparent pl-2 pr-6 text-xs font-semibold text-transparent shadow-none transition-all duration-300 ease-in-out outline-none ring-0 focus-visible:border-0 focus-visible:ring-0 dark:bg-transparent sm:text-sm",
3355
- "model-value": date.year,
3356
- onChange: _cache[1] || (_cache[1] = (e) => {
3357
- var _a;
3358
- placeholder.value = unref(placeholder).set({
3359
- year: Number((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value)
3360
- });
3361
- })
3362
- }, {
3363
- default: withCtx(() => [
3364
- (openBlock(true), createElementBlock(Fragment, null, renderList(yearRange.value, (year) => {
3365
- return openBlock(), createBlock(unref(_sfc_main$d), {
3366
- key: year.toString(),
3367
- value: year.year,
3368
- selected: date.year === year.year
3369
- }, {
3370
- default: withCtx(() => [
3371
- createTextVNode(toDisplayString(unref(formatter).custom(unref(toDate)(year), { year: "numeric" })), 1)
3372
- ]),
3373
- _: 2
3374
- }, 1032, ["value", "selected"]);
3375
- }), 128))
3376
- ]),
3377
- _: 2
3378
- }, 1032, ["model-value"])
3379
- ])
3380
- ])
3381
- ]),
3382
- _: 1
3383
- }),
3384
- createVNode(unref(CalendarRoot_default), mergeProps(unref(forwarded), {
3385
- placeholder: unref(placeholder),
3386
- "onUpdate:placeholder": _cache[2] || (_cache[2] = ($event) => isRef(placeholder) ? placeholder.value = $event : null),
3387
- "data-slot": "calendar",
3388
- class: unref(cn)("p-3", props.class)
3389
- }), {
3390
- default: withCtx(({ grid, weekDays, date }) => [
3391
- createVNode(unref(_sfc_main$3), { class: "pt-0" }, {
3392
- default: withCtx(() => [
3393
- createElementVNode("nav", _hoisted_7, [
3394
- createVNode(unref(_sfc_main), null, {
3395
- default: withCtx(() => [
3396
- renderSlot(_ctx.$slots, "calendar-prev-icon")
3397
- ]),
3398
- _: 3
3399
- }),
3400
- createVNode(unref(_sfc_main$1), null, {
3401
- default: withCtx(() => [
3402
- renderSlot(_ctx.$slots, "calendar-next-icon")
3403
- ]),
3404
- _: 3
3405
- })
3406
- ]),
3407
- renderSlot(_ctx.$slots, "calendar-heading", {
3408
- date,
3409
- month: unref(ReuseMonthTemplate),
3410
- year: unref(ReuseYearTemplate)
3411
- }, () => [
3412
- _ctx.layout === "month-and-year" ? (openBlock(), createElementBlock("div", _hoisted_8, [
3413
- createVNode(unref(ReuseMonthTemplate), { date }, null, 8, ["date"]),
3414
- createVNode(unref(ReuseYearTemplate), { date }, null, 8, ["date"])
3415
- ])) : _ctx.layout === "month-only" ? (openBlock(), createElementBlock("div", _hoisted_9, [
3416
- createVNode(unref(ReuseMonthTemplate), { date }, null, 8, ["date"]),
3417
- createTextVNode(" " + toDisplayString(unref(formatter).custom(unref(toDate)(date), { year: "numeric" })), 1)
3418
- ])) : _ctx.layout === "year-only" ? (openBlock(), createElementBlock("div", _hoisted_10, [
3419
- createTextVNode(toDisplayString(unref(formatter).custom(unref(toDate)(date), { month: "short" })) + " ", 1),
3420
- createVNode(unref(ReuseYearTemplate), { date }, null, 8, ["date"])
3421
- ])) : (openBlock(), createBlock(unref(_sfc_main$2), { key: 3 }))
3422
- ])
3423
- ]),
3424
- _: 2
3425
- }, 1024),
3426
- createElementVNode("div", _hoisted_11, [
3427
- (openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
3428
- return openBlock(), createBlock(unref(_sfc_main$8), {
3429
- key: month.value.toString()
3430
- }, {
3431
- default: withCtx(() => [
3432
- createVNode(unref(_sfc_main$6), null, {
3433
- default: withCtx(() => [
3434
- createVNode(unref(_sfc_main$5), null, {
3435
- default: withCtx(() => [
3436
- (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
3437
- return openBlock(), createBlock(unref(_sfc_main$4), { key: day }, {
3438
- default: withCtx(() => [
3439
- createTextVNode(toDisplayString(day), 1)
3440
- ]),
3441
- _: 2
3442
- }, 1024);
3443
- }), 128))
3444
- ]),
3445
- _: 2
3446
- }, 1024)
3447
- ]),
3448
- _: 2
3449
- }, 1024),
3450
- createVNode(unref(_sfc_main$7), null, {
3451
- default: withCtx(() => [
3452
- (openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
3453
- return openBlock(), createBlock(unref(_sfc_main$5), {
3454
- key: `weekDate-${index}`,
3455
- class: "mt-2 w-full"
3456
- }, {
3457
- default: withCtx(() => [
3458
- (openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
3459
- return openBlock(), createBlock(unref(_sfc_main$a), {
3460
- key: weekDate.toString(),
3461
- date: weekDate
3462
- }, {
3463
- default: withCtx(() => [
3464
- createVNode(unref(_sfc_main$9), {
3465
- day: weekDate,
3466
- month: month.value
3467
- }, null, 8, ["day", "month"])
3468
- ]),
3469
- _: 2
3470
- }, 1032, ["date"]);
3471
- }), 128))
3472
- ]),
3473
- _: 2
3474
- }, 1024);
3475
- }), 128))
3476
- ]),
3477
- _: 2
3478
- }, 1024)
3479
- ]),
3480
- _: 2
3481
- }, 1024);
3482
- }), 128))
3483
- ])
3484
- ]),
3485
- _: 3
3486
- }, 16, ["placeholder", "class"])
3487
- ], 64);
3488
- };
3489
- }
3490
- });
3491
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3492
- __name: "CalendarCell",
3493
- props: {
3494
- date: {},
3495
- asChild: { type: Boolean },
3496
- as: {},
3497
- class: {}
3498
- },
3499
- setup(__props) {
3500
- const props = __props;
3501
- const delegatedProps = reactiveOmit(props, "class");
3502
- const forwardedProps = useForwardProps(delegatedProps);
3503
- return (_ctx, _cache) => {
3504
- return openBlock(), createBlock(unref(CalendarCell_default), mergeProps({
3505
- "data-slot": "calendar-cell",
3506
- class: unref(cn)("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 flex-1 [&:has([data-selected])]:rounded-md", props.class)
3507
- }, unref(forwardedProps)), {
3508
- default: withCtx(() => [
3509
- renderSlot(_ctx.$slots, "default")
3510
- ]),
3511
- _: 3
3512
- }, 16, ["class"]);
3513
- };
3514
- }
3515
- });
3516
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3517
- __name: "CalendarCellTrigger",
3518
- props: {
3519
- day: {},
3520
- month: {},
3521
- asChild: { type: Boolean },
3522
- as: { default: "button" },
3523
- class: {}
3524
- },
3525
- setup(__props) {
3526
- const props = __props;
3527
- const delegatedProps = reactiveOmit(props, "class");
3528
- const forwardedProps = useForwardProps(delegatedProps);
3529
- return (_ctx, _cache) => {
3530
- return openBlock(), createBlock(unref(CalendarCellTrigger_default), mergeProps({
3531
- "data-slot": "calendar-cell-trigger",
3532
- class: unref(cn)(
3533
- unref(buttonVariants)({ variant: "ghost" }),
3534
- "size-8 p-0 font-normal aria-selected:opacity-100 cursor-default",
3535
- "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
3536
- // Selected
3537
- "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:opacity-100 [&[data-selected]:hover]:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground",
3538
- // Disabled
3539
- "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
3540
- // Unavailable
3541
- "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
3542
- // Outside months
3543
- "data-[outside-view]:text-muted-foreground",
3544
- props.class
3545
- )
3546
- }, unref(forwardedProps)), {
3547
- default: withCtx(() => [
3548
- renderSlot(_ctx.$slots, "default")
3549
- ]),
3550
- _: 3
3551
- }, 16, ["class"]);
3552
- };
3553
- }
3554
- });
3555
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3556
- __name: "CalendarGrid",
3557
- props: {
3558
- asChild: { type: Boolean },
3559
- as: {},
3560
- class: {}
3561
- },
3562
- setup(__props) {
3563
- const props = __props;
3564
- const delegatedProps = reactiveOmit(props, "class");
3565
- const forwardedProps = useForwardProps(delegatedProps);
3566
- return (_ctx, _cache) => {
3567
- return openBlock(), createBlock(unref(CalendarGrid_default), mergeProps({
3568
- "data-slot": "calendar-grid",
3569
- class: unref(cn)("w-full border-collapse space-x-1", props.class)
3570
- }, unref(forwardedProps)), {
3571
- default: withCtx(() => [
3572
- renderSlot(_ctx.$slots, "default")
3573
- ]),
3574
- _: 3
3575
- }, 16, ["class"]);
3576
- };
3577
- }
3578
- });
3579
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3580
- __name: "CalendarGridBody",
3581
- props: {
3582
- asChild: { type: Boolean },
3583
- as: {}
3584
- },
3585
- setup(__props) {
3586
- const props = __props;
3587
- return (_ctx, _cache) => {
3588
- return openBlock(), createBlock(unref(CalendarGridBody_default), mergeProps({ "data-slot": "calendar-grid-body" }, props), {
3589
- default: withCtx(() => [
3590
- renderSlot(_ctx.$slots, "default")
3591
- ]),
3592
- _: 3
3593
- }, 16);
3594
- };
3595
- }
3596
- });
3597
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3598
- __name: "CalendarGridHead",
3599
- props: {
3600
- asChild: { type: Boolean },
3601
- as: {},
3602
- class: {}
3603
- },
3604
- setup(__props) {
3605
- const props = __props;
3606
- return (_ctx, _cache) => {
3607
- return openBlock(), createBlock(unref(CalendarGridHead_default), mergeProps({ "data-slot": "calendar-grid-head" }, props), {
3608
- default: withCtx(() => [
3609
- renderSlot(_ctx.$slots, "default")
3610
- ]),
3611
- _: 3
3612
- }, 16);
3613
- };
3614
- }
3615
- });
3616
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3617
- __name: "CalendarGridRow",
3618
- props: {
3619
- asChild: { type: Boolean },
3620
- as: {},
3621
- class: {}
3622
- },
3623
- setup(__props) {
3624
- const props = __props;
3625
- const delegatedProps = reactiveOmit(props, "class");
3626
- const forwardedProps = useForwardProps(delegatedProps);
3627
- return (_ctx, _cache) => {
3628
- return openBlock(), createBlock(unref(CalendarGridRow_default), mergeProps({
3629
- "data-slot": "calendar-grid-row",
3630
- class: unref(cn)("flex", props.class)
3631
- }, unref(forwardedProps)), {
3632
- default: withCtx(() => [
3633
- renderSlot(_ctx.$slots, "default")
3634
- ]),
3635
- _: 3
3636
- }, 16, ["class"]);
3637
- };
3638
- }
3639
- });
3640
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3641
- __name: "CalendarHeadCell",
3642
- props: {
3643
- asChild: { type: Boolean },
3644
- as: {},
3645
- class: {}
3646
- },
3647
- setup(__props) {
3648
- const props = __props;
3649
- const delegatedProps = reactiveOmit(props, "class");
3650
- const forwardedProps = useForwardProps(delegatedProps);
3651
- return (_ctx, _cache) => {
3652
- return openBlock(), createBlock(unref(CalendarHeadCell_default), mergeProps({
3653
- "data-slot": "calendar-head-cell",
3654
- class: unref(cn)("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem]", props.class)
3655
- }, unref(forwardedProps)), {
3656
- default: withCtx(() => [
3657
- renderSlot(_ctx.$slots, "default")
3658
- ]),
3659
- _: 3
3660
- }, 16, ["class"]);
3661
- };
3662
- }
3663
- });
3664
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3665
- __name: "CalendarHeader",
3666
- props: {
3667
- asChild: { type: Boolean },
3668
- as: {},
3669
- class: {}
3670
- },
3671
- setup(__props) {
3672
- const props = __props;
3673
- const delegatedProps = reactiveOmit(props, "class");
3674
- const forwardedProps = useForwardProps(delegatedProps);
3675
- return (_ctx, _cache) => {
3676
- return openBlock(), createBlock(unref(CalendarHeader_default), mergeProps({
3677
- "data-slot": "calendar-header",
3678
- class: unref(cn)("flex justify-center pt-1 relative items-center w-full px-8", props.class)
3679
- }, unref(forwardedProps)), {
3680
- default: withCtx(() => [
3681
- renderSlot(_ctx.$slots, "default")
3682
- ]),
3683
- _: 3
3684
- }, 16, ["class"]);
3685
- };
3686
- }
3687
- });
3688
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3689
- __name: "CalendarHeading",
3690
- props: {
3691
- asChild: { type: Boolean },
3692
- as: {},
3693
- class: {}
3694
- },
3695
- setup(__props) {
3696
- const props = __props;
3697
- const delegatedProps = reactiveOmit(props, "class");
3698
- const forwardedProps = useForwardProps(delegatedProps);
3699
- return (_ctx, _cache) => {
3700
- return openBlock(), createBlock(unref(CalendarHeading_default), mergeProps({
3701
- "data-slot": "calendar-heading",
3702
- class: unref(cn)("text-sm font-semibold", props.class)
3703
- }, unref(forwardedProps)), {
3704
- default: withCtx(({ headingValue }) => [
3705
- renderSlot(_ctx.$slots, "default", { headingValue }, () => [
3706
- createTextVNode(toDisplayString(headingValue), 1)
3707
- ])
3708
- ]),
3709
- _: 3
3710
- }, 16, ["class"]);
3711
- };
3712
- }
3713
- });
3714
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3715
- __name: "CalendarNextButton",
3716
- props: {
3717
- nextPage: { type: Function },
3718
- asChild: { type: Boolean },
3719
- as: {},
3720
- class: {}
3721
- },
3722
- setup(__props) {
3723
- const props = __props;
3724
- const delegatedProps = reactiveOmit(props, "class");
3725
- const forwardedProps = useForwardProps(delegatedProps);
3726
- return (_ctx, _cache) => {
3727
- return openBlock(), createBlock(unref(CalendarNext_default), mergeProps({
3728
- "data-slot": "calendar-next-button",
3729
- class: unref(cn)(
3730
- unref(buttonVariants)({ variant: "secondary" }),
3731
- "size-7 min-h-10 bg-transparent p-0 text-(--text-secondary-light) hover:text-(--text-primary-light) dark:text-(--text-secondary-dark) dark:hover:text-(--text-primary-dark)",
3732
- props.class
3733
- )
3734
- }, unref(forwardedProps)), {
3735
- default: withCtx(() => [
3736
- renderSlot(_ctx.$slots, "default", {}, () => [
3737
- createVNode(unref(HugeiconsIcon), {
3738
- icon: unref(Nn),
3739
- class: "size-4"
3740
- }, null, 8, ["icon"])
3741
- ])
3742
- ]),
3743
- _: 3
3744
- }, 16, ["class"]);
3745
- };
3746
- }
3747
- });
3748
- const _sfc_main = /* @__PURE__ */ defineComponent({
3749
- __name: "CalendarPrevButton",
3750
- props: {
3751
- prevPage: { type: Function },
3752
- asChild: { type: Boolean },
3753
- as: {},
3754
- class: {}
3755
- },
3756
- setup(__props) {
3757
- const props = __props;
3758
- const delegatedProps = reactiveOmit(props, "class");
3759
- const forwardedProps = useForwardProps(delegatedProps);
3760
- return (_ctx, _cache) => {
3761
- return openBlock(), createBlock(unref(CalendarPrev_default), mergeProps({
3762
- "data-slot": "calendar-prev-button",
3763
- class: unref(cn)(
3764
- unref(buttonVariants)({ variant: "secondary" }),
3765
- "size-7 min-h-10 bg-transparent p-0 text-(--text-secondary-light) hover:text-(--text-primary-light) dark:text-(--text-secondary-dark) dark:hover:text-(--text-primary-dark)",
3766
- props.class
3767
- )
3768
- }, unref(forwardedProps)), {
3769
- default: withCtx(() => [
3770
- renderSlot(_ctx.$slots, "default", {}, () => [
3771
- createVNode(unref(HugeiconsIcon), {
3772
- icon: unref(mn),
3773
- class: "size-4"
3774
- }, null, 8, ["icon"])
3775
- ])
3776
- ]),
3777
- _: 3
3778
- }, 16, ["class"]);
3779
- };
3780
- }
3781
- });
3782
- export {
3783
- $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3 as $,
3784
- _sfc_main$b as _,
3785
- _sfc_main$a as a,
3786
- _sfc_main$9 as b,
3787
- _sfc_main$8 as c,
3788
- _sfc_main$7 as d,
3789
- _sfc_main$6 as e,
3790
- _sfc_main$5 as f,
3791
- _sfc_main$4 as g,
3792
- _sfc_main$3 as h,
3793
- _sfc_main$2 as i,
3794
- _sfc_main$1 as j,
3795
- _sfc_main as k,
3796
- $14e0f24ef4ac5c92$export$aa8b41735afcabd2 as l,
3797
- $fb18d541ea1ad717$export$ad991b66133851cf as m,
3798
- $11d87f3f76e88657$export$93522d1a439f3617 as n,
3799
- $11d87f3f76e88657$export$e57ff100d91bd4b9 as o
3800
- };