@lotte-innovate/ui-component-test 0.1.55 → 0.1.57
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/Typography/Header/index.mjs +1 -1
- package/dist/lib/Typography/Header/index.mjs.map +1 -1
- package/dist/lib/Typography/Text/index.mjs +1 -1
- package/dist/lib/Typography/Text/index.mjs.map +1 -1
- package/dist/lib/components/Accordion/index.d.ts +1 -1
- package/dist/lib/components/Accordion/index.mjs +1 -1
- package/dist/lib/components/Accordion/index.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
- package/dist/lib/components/AspectRatio/index.mjs +1 -1
- package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
- package/dist/lib/components/Avatar/index.mjs +1 -1
- package/dist/lib/components/Avatar/index.mjs.map +1 -1
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Badge/index.mjs.map +1 -1
- package/dist/lib/components/BarChart/index.d.ts +1 -5
- package/dist/lib/components/BarChart/index.mjs +1 -1
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.js +3 -3
- package/dist/lib/components/BubbleChart/index.mjs +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Button/index.mjs +1 -1
- package/dist/lib/components/Button/index.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
- package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
- package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
- package/dist/lib/components/Card/index.mjs +1 -1
- package/dist/lib/components/Card/index.mjs.map +1 -1
- package/dist/lib/components/Checkbox/index.mjs +1 -1
- package/dist/lib/components/Checkbox/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxCard/index.mjs +1 -1
- package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListItem.mjs +1 -1
- package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
- package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListValue.mjs +1 -1
- package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -4
- package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
- package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
- package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
- package/dist/lib/components/IconButton/index.d.ts +2 -2
- package/dist/lib/components/IconButton/index.mjs +1 -1
- package/dist/lib/components/IconButton/index.mjs.map +1 -1
- package/dist/lib/components/Inset/index.mjs +1 -1
- package/dist/lib/components/Inset/index.mjs.map +1 -1
- package/dist/lib/components/Label/index.mjs +1 -1
- package/dist/lib/components/Label/index.mjs.map +1 -1
- package/dist/lib/components/LineChart/index.mjs +1 -1
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
- package/dist/lib/components/PieChart/index.mjs +1 -1
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
- package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -2
- package/dist/lib/components/Progress/index.mjs +1 -1
- package/dist/lib/components/Progress/index.mjs.map +1 -1
- package/dist/lib/components/RadarChart/index.mjs +1 -1
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/Radio/index.mjs +1 -1
- package/dist/lib/components/Radio/index.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
- package/dist/lib/components/Select/index.mjs +1 -1
- package/dist/lib/components/Select/index.mjs.map +1 -1
- package/dist/lib/components/Separator/index.mjs +1 -1
- package/dist/lib/components/Separator/index.mjs.map +1 -1
- package/dist/lib/components/Skeleton/index.mjs +1 -1
- package/dist/lib/components/Skeleton/index.mjs.map +1 -1
- package/dist/lib/components/Slider/index.mjs +1 -1
- package/dist/lib/components/Slider/index.mjs.map +1 -1
- package/dist/lib/components/Spinner/index.mjs +1 -1
- package/dist/lib/components/Spinner/index.mjs.map +1 -1
- package/dist/lib/components/TabNav/index.mjs +1 -1
- package/dist/lib/components/TabNav/index.mjs.map +1 -1
- package/dist/lib/components/Table/index.mjs +1 -1
- package/dist/lib/components/Table/index.mjs.map +1 -1
- package/dist/lib/components/Tabs/index.mjs +1 -1
- package/dist/lib/components/Tabs/index.mjs.map +1 -1
- package/dist/lib/components/TextArea/index.mjs +1 -1
- package/dist/lib/components/TextArea/index.mjs.map +1 -1
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/TextField/index.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
- package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
- package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
- package/dist/lib/components/Toggle/index.mjs +1 -1
- package/dist/lib/components/Toggle/index.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
- package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
- package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
- package/dist/lib/components/Tooltip/index.mjs +1 -1
- package/dist/lib/components/Tooltip/index.mjs.map +1 -1
- package/dist/lib/utils/utils.mjs +1 -1
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -1
- package/dist/node_modules/chart.js/dist/chart.mjs +2 -2
- package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -2
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/index.mjs +0 -2
- package/dist/_virtual/index.mjs.map +0 -1
- package/dist/_virtual/index2.mjs +0 -2
- package/dist/_virtual/index2.mjs.map +0 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +0 -2
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +0 -1
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +0 -8
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +0 -1
- package/dist/node_modules/class-variance-authority/dist/index.mjs +0 -2
- package/dist/node_modules/class-variance-authority/dist/index.mjs.map +0 -1
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +0 -2
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +0 -1
- package/dist/node_modules/classnames/index.mjs +0 -7
- package/dist/node_modules/classnames/index.mjs.map +0 -1
- package/dist/node_modules/clsx/dist/clsx.mjs +0 -2
- package/dist/node_modules/clsx/dist/clsx.mjs.map +0 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs +0 -2
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +0 -1
- package/dist/node_modules/react-chartjs-2/dist/index.mjs +0 -2
- package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +0 -2
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +0 -2
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +0 -2
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +0 -2
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +0 -2
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +0 -2
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.mjs +0 -2
- package/dist/node_modules/tslib/tslib.es6.mjs.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +0 -2
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +0 -2
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +0 -2
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +0 -2
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +0 -2
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +0 -1
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/_virtual/index.mjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/_virtual/index2.mjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=new WeakMap,r=new WeakMap,n={},t=0,a=function(e){return e&&(e.host||a(e.parentNode))},o=function(o,i,u,c){var f=function(e,r){return r.map((function(r){if(e.contains(r))return r;var n=a(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(i,Array.isArray(o)?o:[o]);n[u]||(n[u]=new WeakMap);var l=n[u],s=[],d=new Set,p=new Set(f),h=function(e){e&&!d.has(e)&&(d.add(e),h(e.parentNode))};f.forEach(h);var y=function(n){n&&!p.has(n)&&Array.prototype.forEach.call(n.children,(function(n){if(d.has(n))y(n);else try{var t=n.getAttribute(c),a=null!==t&&"false"!==t,o=(e.get(n)||0)+1,i=(l.get(n)||0)+1;e.set(n,o),l.set(n,i),s.push(n),1===o&&a&&r.set(n,!0),1===i&&n.setAttribute(u,"true"),a||n.setAttribute(c,"true")}catch(e){console.error("aria-hidden: cannot operate on ",n,e)}}))};return y(i),d.clear(),t++,function(){s.forEach((function(n){var t=e.get(n)-1,a=l.get(n)-1;e.set(n,t),l.set(n,a),t||(r.has(n)||n.removeAttribute(c),r.delete(n)),a||n.removeAttribute(u)})),--t||(e=new WeakMap,e=new WeakMap,r=new WeakMap,n={})}},i=function(e,r,n){void 0===n&&(n="data-aria-hidden");var t=Array.from(Array.isArray(e)?e:[e]),a=r||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(t.push.apply(t,Array.from(a.querySelectorAll("[aria-live]"))),o(t,a,n,"aria-hidden")):function(){return null}};export{i as hideOthers};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["counterMap","WeakMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","host","parentNode","applyAttributeToOthers","originalTarget","markerName","controlAttribute","targets","parent","map","target","contains","correctedTarget","console","error","filter","x","Boolean","correctTargets","Array","isArray","markerCounter","hiddenNodes","elementsToKeep","Set","elementsToStop","keep","el","has","add","forEach","deep","prototype","call","children","attr","getAttribute","alreadyHidden","counterValue","get","markerValue","set","push","setAttribute","e","clear","removeAttribute","delete","hideOthers","from","activeParentNode","document","ownerDocument","body","getDefaultParent","apply","querySelectorAll"],"mappings":"AAAA,IAOIA,EAAa,IAAIC,QACjBC,EAAoB,IAAID,QACxBE,EAAY,CAAA,EACZC,EAAY,EACZC,EAAa,SAAUC,GACvB,OAAOA,IAASA,EAAKC,MAAQF,EAAWC,EAAKE,YACjD,EAwBIC,EAAyB,SAAUC,EAAgBF,EAAYG,EAAYC,GAC3E,IAAIC,EAxBa,SAAUC,EAAQD,GACnC,OAAOA,EACFE,KAAI,SAAUC,GACf,GAAIF,EAAOG,SAASD,GAChB,OAAOA,EAEX,IAAIE,EAAkBb,EAAWW,GACjC,OAAIE,GAAmBJ,EAAOG,SAASC,GAC5BA,GAEXC,QAAQC,MAAM,cAAeJ,EAAQ,0BAA2BF,EAAQ,mBACjE,KACf,IACSO,QAAO,SAAUC,GAAK,OAAOC,QAAQD,EAAG,GACjD,CAUkBE,CAAehB,EAAYiB,MAAMC,QAAQhB,GAAkBA,EAAiB,CAACA,IACtFP,EAAUQ,KACXR,EAAUQ,GAAc,IAAIV,SAEhC,IAAI0B,EAAgBxB,EAAUQ,G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a,IAAIC,QACjBC,EAAoB,IAAID,QACxBE,EAAY,CAAA,EAExB,CACA,EAQWmD,EAAa,SAAU5C,EAAgBF,EAAYG,QACvC,IAAfA,IAAyBA,EAAa,oBAC1C,IAAIE,EAAUY,MAAM8B,KAAK9B,MAAMC,QAAQhB,GAAkBA,EAAiB,CAACA,IACvE8C,EAAmBhD,GA9HJ,SAAUE,GAC7B,MAAwB,oBAAb+C,SACA,MAEQhC,MAAMC,QAAQhB,GAAkBA,EAAe,GAAKA,GACnDgD,cAAcC,IACtC,CAwHyCC,CAAiBlD,GACtD,OAAK8C,GAIL3C,EAAQmC,KAAKa,MAAMhD,EAASY,MAAM8B,KAAKC,EAAiBM,iBAAiB,iBAClErD,EAAuBI,EAAS2C,EAAkB7C,EAAY,gBAJ1D,WAAc,OAAO,KAKpC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import{ArcElement as t,PointElement as e,BarElement as r}from"../../chart.js/dist/chart.mjs";import{a4 as n,a0 as a,a as o,d as i,E as l,v as s,Q as u,k as c,F as h,i as d}from"../../chart.js/dist/chunks/helpers.segment.mjs";
|
2
|
-
/*!
|
3
|
-
* chartjs-plugin-datalabels v2.2.0
|
4
|
-
* https://chartjs-plugin-datalabels.netlify.app
|
5
|
-
* (c) 2017-2022 chartjs-plugin-datalabels contributors
|
6
|
-
* Released under the MIT license
|
7
|
-
*/var f=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),x=function(t){var e,r=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?r.unshift.apply(r,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):c(t)||r.unshift(""+e);return r},y=function(t,e,r){var n,a=[].concat(e),o=a.length,i=t.font,l=0;for(t.font=r.string,n=0;n<o;++n)l=Math.max(t.measureText(a[n]).width,l);return t.font=i,{height:o*r.lineHeight,width:l}},v=function(t,e,r){return Math.max(t,Math.min(e,r))},_=function(t,e){var r,n,a,o,i=t.slice(),l=[];for(r=0,a=e.length;r<a;++r)o=e[r],-1===(n=i.indexOf(o))?l.push([o,1]):i.splice(n,1);for(r=0,a=i.length;r<a;++r)l.push([i[r],-1]);return l};function b(t,e){var r=e.x,n=e.y;if(null===r)return{x:0,y:-1};if(null===n)return{x:1,y:0};var a=t.x-r,o=t.y-n,i=Math.sqrt(a*a+o*o);return{x:i?a/i:0,y:i?o/i:-1}}var p=0,g=1,m=2,w=4,M=8;function k(t,e,r){var n=p;return t<r.left?n|=g:t>r.right&&(n|=m),e<r.top?n|=M:e>r.bottom&&(n|=w),n}function S(t,e){var r,n,a=e.anchor,o=t;return e.clamp&&(o=function(t,e){for(var r,n,a,o=t.x0,i=t.y0,l=t.x1,s=t.y1,u=k(o,i,e),c=k(l,s,e);u|c&&!(u&c);)(r=u||c)&M?(n=o+(l-o)*(e.top-i)/(s-i),a=e.top):r&w?(n=o+(l-o)*(e.bottom-i)/(s-i),a=e.bottom):r&m?(a=i+(s-i)*(e.right-o)/(l-o),n=e.right):r&g&&(a=i+(s-i)*(e.left-o)/(l-o),n=e.left),r===u?u=k(o=n,i=a,e):c=k(l=n,s=a,e);return{x0:o,x1:l,y0:i,y1:s}}(o,e.area)),"start"===a?(r=o.x0,n=o.y0):"end"===a?(r=o.x1,n=o.y1):(r=(o.x0+o.x1)/2,n=(o.y0+o.y1)/2),function(t,e,r,n,a){switch(a){case"center":r=n=0;break;case"bottom":r=0,n=1;break;case"right":r=1,n=0;break;case"left":r=-1,n=0;break;case"top":r=0,n=-1;break;case"start":r=-r,n=-n;break;case"end":break;default:a*=Math.PI/180,r=Math.cos(a),n=Math.sin(a)}return{x:t,y:e,vx:r,vy:n}}(r,n,t.vx,t.vy,e.align)}var C=function(t,e){var r=(t.startAngle+t.endAngle)/2,n=Math.cos(r),a=Math.sin(r),o=t.innerRadius,i=t.outerRadius;return S({x0:t.x+n*o,y0:t.y+a*o,x1:t.x+n*i,y1:t.y+a*i,vx:n,vy:a},e)},P=function(t,e){var r=b(t,e.origin),n=r.x*t.options.radius,a=r.y*t.options.radius;return S({x0:t.x-n,y0:t.y-a,x1:t.x+n,y1:t.y+a,vx:r.x,vy:r.y},e)},I=function(t,e){var r=b(t,e.origin),n=t.x,a=t.y,o=0,i=0;return t.horizontal?(n=Math.min(t.x,t.base),o=Math.abs(t.base-t.x)):(a=Math.min(t.y,t.base),i=Math.abs(t.base-t.y)),S({x0:n,y0:a+i,x1:n+o,y1:a,vx:r.x,vy:r.y},e)},$=function(t,e){var r=b(t,e.origin);return S({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:r.x,vy:r.y},e)},A=function(t){return Math.round(t*f)/f};function E(t,e){var r=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!r)return null;if(void 0!==r.xCenter&&void 0!==r.yCenter)return{x:r.xCenter,y:r.yCenter};var n=r.getBasePixel();return t.horizontal?{x:n,y:null}:{x:null,y:n}}function W(t,e,r){var n=r.backgroundColor,a=r.borderColor,o=r.borderWidth;(n||a&&o)&&(t.beginPath(),function(t,e,r,n,a,o){var i=Math.PI/2;if(o){var l=Math.min(o,a/2,n/2),s=e+l,u=r+l,c=e+n-l,h=r+a-l;t.moveTo(e,u),s<c&&u<h?(t.arc(s,u,l,-Math.PI,-i),t.arc(c,u,l,-i,0),t.arc(c,h,l,0,i),t.arc(s,h,l,i,Math.PI)):s<c?(t.moveTo(s,r),t.arc(c,u,l,-i,i),t.arc(s,u,l,i,Math.PI+i)):u<h?(t.arc(s,u,l,-Math.PI,0),t.arc(s,h,l,0,Math.PI)):t.arc(s,u,l,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,r)}else t.rect(e,r,n,a)}(t,A(e.x)+o/2,A(e.y)+o/2,A(e.w)-o,A(e.h)-o,r.borderRadius),t.closePath(),n&&(t.fillStyle=n,t.fill()),a&&o&&(t.strokeStyle=a,t.lineWidth=o,t.lineJoin="miter",t.stroke()))}function B(t,e,r){var n=t.shadowBlur,a=r.stroked,o=A(r.x),i=A(r.y),l=A(r.w);a&&t.strokeText(e,o,i,l),r.filled&&(n&&a&&(t.shadowBlur=0),t.fillText(e,o,i,l),n&&a&&(t.shadowBlur=n))}var R=function(t,e,r,n){var a=this;a._config=t,a._index=n,a._model=null,a._rects=null,a._ctx=e,a._el=r};n(R.prototype,{_modelize:function(n,s,u,c){var h,d=this,f=d._index,x=a(o([u.font,{}],c,f)),v=o([u.color,i.color],c,f);return{align:o([u.align,"center"],c,f),anchor:o([u.anchor,"center"],c,f),area:c.chart.chartArea,backgroundColor:o([u.backgroundColor,null],c,f),borderColor:o([u.borderColor,null],c,f),borderRadius:o([u.borderRadius,0],c,f),borderWidth:o([u.borderWidth,0],c,f),clamp:o([u.clamp,!1],c,f),clip:o([u.clip,!1],c,f),color:v,display:n,font:x,lines:s,offset:o([u.offset,4],c,f),opacity:o([u.opacity,1],c,f),origin:E(d._el,c),padding:l(o([u.padding,4],c,f)),positioner:(h=d._el,h instanceof t?C:h instanceof e?P:h instanceof r?I:$),rotation:o([u.rotation,0],c,f)*(Math.PI/180),size:y(d._ctx,s,x),textAlign:o([u.textAlign,"start"],c,f),textShadowBlur:o([u.textShadowBlur,0],c,f),textShadowColor:o([u.textShadowColor,v],c,f),textStrokeColor:o([u.textStrokeColor,v],c,f),textStrokeWidth:o([u.textStrokeWidth,0],c,f)}},update:function(t){var e,r,n,a=this,i=null,l=null,h=a._index,d=a._config,f=o([d.display,!0],t,h);f&&(e=t.dataset.data[h],r=s(u(d.formatter,[e,t]),e),(n=c(r)?[]:x(r)).length&&(l=function(t){var e=t.borderWidth||0,r=t.padding,n=t.size.height,a=t.size.width,o=-a/2,i=-n/2;return{frame:{x:o-r.left-e,y:i-r.top-e,w:a+r.width+2*e,h:n+r.height+2*e},text:{x:o,y:i,w:a,h:n}}}(i=a._modelize(f,n,d,t)))),a._model=i,a._rects=l},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var r,n=t.ctx,a=this._model,o=this._rects;this.visible()&&(n.save(),a.clip&&(r=a.area,n.beginPath(),n.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),n.clip()),n.globalAlpha=v(0,a.opacity,1),n.translate(A(e.x),A(e.y)),n.rotate(a.rotation),W(n,o.frame,a),function(t,e,r,n){var a,o=n.textAlign,i=n.color,l=!!i,s=n.font,u=e.length,c=n.textStrokeColor,h=n.textStrokeWidth,d=c&&h;if(u&&(l||d))for(r=function(t,e,r){var n=r.lineHeight,a=t.w,o=t.x;return"center"===e?o+=a/2:"end"!==e&&"right"!==e||(o+=a),{h:n,w:a,x:o,y:t.y+n/2}}(r,o,s),t.font=s.string,t.textAlign=o,t.textBaseline="middle",t.shadowBlur=n.textShadowBlur,t.shadowColor=n.textShadowColor,l&&(t.fillStyle=i),d&&(t.lineJoin="round",t.lineWidth=h,t.strokeStyle=c),a=0,u=e.length;a<u;++a)B(t,e[a],{stroked:d,filled:l,w:r.w,x:r.x,y:r.y+r.h*a})}(n,a.lines,o.text,a),n.restore())}});var z=Number.MIN_SAFE_INTEGER||-9007199254740991,D=Number.MAX_SAFE_INTEGER||9007199254740991;function T(t,e,r){var n=Math.cos(r),a=Math.sin(r),o=e.x,i=e.y;return{x:o+n*(t.x-o)-a*(t.y-i),y:i+a*(t.x-o)+n*(t.y-i)}}function j(t,e){var r,n,a,o,i,l=D,s=z,u=e.origin;for(r=0;r<t.length;++r)a=(n=t[r]).x-u.x,o=n.y-u.y,i=e.vx*a+e.vy*o,l=Math.min(l,i),s=Math.max(s,i);return{min:l,max:s}}function N(t,e){var r=e.x-t.x,n=e.y-t.y,a=Math.sqrt(r*r+n*n);return{vx:(e.x-t.x)/a,vy:(e.y-t.y)/a,origin:t,ln:a}}var F=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function H(t,e,r){var n=e.positioner(t,e),a=n.vx,o=n.vy;if(!a&&!o)return{x:n.x,y:n.y};var i=r.w,l=r.h,s=e.rotation,u=Math.abs(i/2*Math.cos(s))+Math.abs(l/2*Math.sin(s)),c=Math.abs(i/2*Math.sin(s))+Math.abs(l/2*Math.cos(s)),h=1/Math.max(Math.abs(a),Math.abs(o));return u*=a*h,c*=o*h,u+=e.offset*a,c+=e.offset*o,{x:n.x+u,y:n.y+c}}n(F.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,r){this._rotation=r,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,r=e._rect;return!((t=T(t,e.center(),-e._rotation)).x<r.x-1||t.y<r.y-1||t.x>r.x+r.w+2||t.y>r.y+r.h+2)},intersects:function(t){var e,r,n,a=this._points(),o=t._points(),i=[N(a[0],a[1]),N(a[0],a[3])];for(this._rotation!==t._rotation&&i.push(N(o[0],o[1]),N(o[0],o[3])),e=0;e<i.length;++e)if(r=j(a,i[e]),n=j(o,i[e]),r.max<n.min||n.max<r.min)return!1;return!0},_points:function(){var t=this,e=t._rect,r=t._rotation,n=t.center();return[T({x:e.x,y:e.y},n,r),T({x:e.x+e.w,y:e.y},n,r),T({x:e.x+e.w,y:e.y+e.h},n,r),T({x:e.x,y:e.y+e.h},n,r)]}});var O={prepare:function(t){var e,r,n,a,o,i=[];for(e=0,n=t.length;e<n;++e)for(r=0,a=t[e].length;r<a;++r)o=t[e][r],i.push(o),o.$layout={_box:new F,_hidable:!1,_visible:!0,_set:e,_idx:o._index};return i.sort((function(t,e){var r=t.$layout,n=e.$layout;return r._idx===n._idx?n._set-r._set:n._idx-r._idx})),this.update(i),i},update:function(t){var e,r,n,a,o,i=!1;for(e=0,r=t.length;e<r;++e)a=(n=t[e]).model(),(o=n.$layout)._hidable=a&&"auto"===a.display,o._visible=n.visible(),i|=o._hidable;i&&function(t){var e,r,n,a,o,i,l;for(e=0,r=t.length;e<r;++e)(a=(n=t[e]).$layout)._visible&&(l=new Proxy(n._el,{get:(t,e)=>t.getProps([e],!0)[e]}),o=n.geometry(),i=H(l,n.model(),o),a._box.update(i,o,n.rotation()));(function(t,e){var r,n,a,o;for(r=t.length-1;r>=0;--r)for(a=t[r].$layout,n=r-1;n>=0&&a._visible;--n)(o=t[n].$layout)._visible&&a._box.intersects(o._box)&&e(a,o)})(t,(function(t,e){var r=t._hidable,n=e._hidable;r&&n||n?e._visible=!1:r&&(t._visible=!1)}))}(t)},lookup:function(t,e){var r,n;for(r=t.length-1;r>=0;--r)if((n=t[r].$layout)&&n._visible&&n._box.contains(e))return t[r];return null},draw:function(t,e){var r,n,a,o,i,l;for(r=0,n=e.length;r<n;++r)(o=(a=e[r]).$layout)._visible&&(i=a.geometry(),l=H(a._el,a.model(),i),o._box.update(l,i,a.rotation()),a.draw(t,l))}},U="$datalabels",X="$default";function q(t,e,r,n){if(e){var a,o=r.$context,i=r.$groups;e[i._set]&&(a=e[i._set][i._key])&&!0===u(a,[o,n])&&(t[U]._dirty=!0,r.update(o))}}function G(t,e){var r,n,a=t[U],o=a._listeners;if(o.enter||o.leave){if("mousemove"===e.type)n=O.lookup(a._labels,e);else if("mouseout"!==e.type)return;r=a._hovered,a._hovered=n,function(t,e,r,n,a){var o,i;(r||n)&&(r?n?r!==n&&(i=o=!0):i=!0:o=!0,i&&q(t,e.leave,r,a),o&&q(t,e.enter,n,a))}(t,o,r,n,e)}}var J={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(c(t))return null;var e,r,n,a=t;if(d(t))if(c(t.label))if(c(t.r))for(a="",n=0,r=(e=Object.keys(t)).length;n<r;++n)a+=(0!==n?", ":"")+e[n]+": "+t[e[n]];else a=t.r;else a=t.label;return""+a},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t[U]={_actives:[]}},beforeUpdate:function(t){var e=t[U];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,r){var a,o,i,l,s,u,c,d,f=e.index,x=t[U],y=x._datasets[f]=[],v=t.isDatasetVisible(f),_=t.data.datasets[f],b=function(t,e){var r,a,o,i=t.datalabels,l=[];return!1===i?null:(!0===i&&(i={}),e=n({},[e,i]),a=e.labels||{},o=Object.keys(a),delete e.labels,o.length?o.forEach((function(t){a[t]&&l.push(n({},[e,a[t],{_key:t}]))})):l.push(e),r=l.reduce((function(t,e){return h(e.listeners||{},(function(r,n){t[n]=t[n]||{},t[n][e._key||X]=r})),delete e.listeners,t}),{}),{labels:l,listeners:r})}(_,r),p=e.meta.data||[],g=t.ctx;for(g.save(),a=0,i=p.length;a<i;++a)if((c=p[a])[U]=[],v&&c&&t.getDataVisibility(a)&&!c.skip)for(o=0,l=b.labels.length;o<l;++o)u=(s=b.labels[o])._key,(d=new R(s,g,c,a)).$groups={_set:f,_key:u||X},d.$context={active:!1,chart:t,dataIndex:a,dataset:_,datasetIndex:f},d.update(d.$context),c[U].push(d),y.push(d);g.restore(),n(x._listeners,b.listeners,{merger:function(t,r,n){r[t]=r[t]||{},r[t][e.index]=n[t],x._listened=!0}})},afterUpdate:function(t){t[U]._labels=O.prepare(t[U]._datasets)},afterDatasetsDraw:function(t){O.draw(t,t[U]._labels)},beforeEvent:function(t,e){if(t[U]._listened){var r=e.event;switch(r.type){case"mousemove":case"mouseout":G(t,r);break;case"click":!function(t,e){var r=t[U],n=r._listeners.click,a=n&&O.lookup(r._labels,e);a&&q(t,n,a,e)}(t,r)}}},afterEvent:function(t){var e,r,n,a,o,i,l,s=t[U],u=s._actives,c=s._actives=t.getActiveElements(),h=_(u,c);for(e=0,r=h.length;e<r;++e)if((o=h[e])[1])for(n=0,a=(l=o[0].element[U]||[]).length;n<a;++n)(i=l[n]).$context.active=1===o[1],i.update(i.$context);(s._dirty||h.length)&&(O.update(s._labels),t.render()),delete s._dirty}};export{J as default};
|
8
|
-
//# sourceMappingURL=chartjs-plugin-datalabels.esm.mjs.map
|
package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"chartjs-plugin-datalabels.esm.mjs","sources":["../../../../node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js"],"sourcesContent":["/*!\n * chartjs-plugin-datalabels v2.2.0\n * https://chartjs-plugin-datalabels.netlify.app\n * (c) 2017-2022 chartjs-plugin-datalabels contributors\n * Released under the MIT license\n */\nimport { isNullOrUndef, merge, toFont, resolve, toPadding, valueOrDefault, callback, isObject, each } from 'chart.js/helpers';\nimport { defaults as defaults$1, ArcElement, PointElement, BarElement } from 'chart.js';\n\nvar devicePixelRatio = (function() {\n if (typeof window !== 'undefined') {\n if (window.devicePixelRatio) {\n return window.devicePixelRatio;\n }\n\n // devicePixelRatio is undefined on IE10\n // https://stackoverflow.com/a/20204180/8837887\n // https://github.com/chartjs/chartjs-plugin-datalabels/issues/85\n var screen = window.screen;\n if (screen) {\n return (screen.deviceXDPI || 1) / (screen.logicalXDPI || 1);\n }\n }\n\n return 1;\n}());\n\nvar utils = {\n // @todo move this in Chart.helpers.toTextLines\n toTextLines: function(inputs) {\n var lines = [];\n var input;\n\n inputs = [].concat(inputs);\n while (inputs.length) {\n input = inputs.pop();\n if (typeof input === 'string') {\n lines.unshift.apply(lines, input.split('\\n'));\n } else if (Array.isArray(input)) {\n inputs.push.apply(inputs, input);\n } else if (!isNullOrUndef(inputs)) {\n lines.unshift('' + input);\n }\n }\n\n return lines;\n },\n\n // @todo move this in Chart.helpers.canvas.textSize\n // @todo cache calls of measureText if font doesn't change?!\n textSize: function(ctx, lines, font) {\n var items = [].concat(lines);\n var ilen = items.length;\n var prev = ctx.font;\n var width = 0;\n var i;\n\n ctx.font = font.string;\n\n for (i = 0; i < ilen; ++i) {\n width = Math.max(ctx.measureText(items[i]).width, width);\n }\n\n ctx.font = prev;\n\n return {\n height: ilen * font.lineHeight,\n width: width\n };\n },\n\n /**\n * Returns value bounded by min and max. This is equivalent to max(min, min(value, max)).\n * @todo move this method in Chart.helpers.bound\n * https://doc.qt.io/qt-5/qtglobal.html#qBound\n */\n bound: function(min, value, max) {\n return Math.max(min, Math.min(value, max));\n },\n\n /**\n * Returns an array of pair [value, state] where state is:\n * * -1: value is only in a0 (removed)\n * * 1: value is only in a1 (added)\n */\n arrayDiff: function(a0, a1) {\n var prev = a0.slice();\n var updates = [];\n var i, j, ilen, v;\n\n for (i = 0, ilen = a1.length; i < ilen; ++i) {\n v = a1[i];\n j = prev.indexOf(v);\n\n if (j === -1) {\n updates.push([v, 1]);\n } else {\n prev.splice(j, 1);\n }\n }\n\n for (i = 0, ilen = prev.length; i < ilen; ++i) {\n updates.push([prev[i], -1]);\n }\n\n return updates;\n },\n\n /**\n * https://github.com/chartjs/chartjs-plugin-datalabels/issues/70\n */\n rasterize: function(v) {\n return Math.round(v * devicePixelRatio) / devicePixelRatio;\n }\n};\n\nfunction orient(point, origin) {\n var x0 = origin.x;\n var y0 = origin.y;\n\n if (x0 === null) {\n return {x: 0, y: -1};\n }\n if (y0 === null) {\n return {x: 1, y: 0};\n }\n\n var dx = point.x - x0;\n var dy = point.y - y0;\n var ln = Math.sqrt(dx * dx + dy * dy);\n\n return {\n x: ln ? dx / ln : 0,\n y: ln ? dy / ln : -1\n };\n}\n\nfunction aligned(x, y, vx, vy, align) {\n switch (align) {\n case 'center':\n vx = vy = 0;\n break;\n case 'bottom':\n vx = 0;\n vy = 1;\n break;\n case 'right':\n vx = 1;\n vy = 0;\n break;\n case 'left':\n vx = -1;\n vy = 0;\n break;\n case 'top':\n vx = 0;\n vy = -1;\n break;\n case 'start':\n vx = -vx;\n vy = -vy;\n break;\n case 'end':\n // keep natural orientation\n break;\n default:\n // clockwise rotation (in degree)\n align *= (Math.PI / 180);\n vx = Math.cos(align);\n vy = Math.sin(align);\n break;\n }\n\n return {\n x: x,\n y: y,\n vx: vx,\n vy: vy\n };\n}\n\n// Line clipping (Cohen–Sutherland algorithm)\n// https://en.wikipedia.org/wiki/Cohen–Sutherland_algorithm\n\nvar R_INSIDE = 0;\nvar R_LEFT = 1;\nvar R_RIGHT = 2;\nvar R_BOTTOM = 4;\nvar R_TOP = 8;\n\nfunction region(x, y, rect) {\n var res = R_INSIDE;\n\n if (x < rect.left) {\n res |= R_LEFT;\n } else if (x > rect.right) {\n res |= R_RIGHT;\n }\n if (y < rect.top) {\n res |= R_TOP;\n } else if (y > rect.bottom) {\n res |= R_BOTTOM;\n }\n\n return res;\n}\n\nfunction clipped(segment, area) {\n var x0 = segment.x0;\n var y0 = segment.y0;\n var x1 = segment.x1;\n var y1 = segment.y1;\n var r0 = region(x0, y0, area);\n var r1 = region(x1, y1, area);\n var r, x, y;\n\n // eslint-disable-next-line no-constant-condition\n while (true) {\n if (!(r0 | r1) || (r0 & r1)) {\n // both points inside or on the same side: no clipping\n break;\n }\n\n // at least one point is outside\n r = r0 || r1;\n\n if (r & R_TOP) {\n x = x0 + (x1 - x0) * (area.top - y0) / (y1 - y0);\n y = area.top;\n } else if (r & R_BOTTOM) {\n x = x0 + (x1 - x0) * (area.bottom - y0) / (y1 - y0);\n y = area.bottom;\n } else if (r & R_RIGHT) {\n y = y0 + (y1 - y0) * (area.right - x0) / (x1 - x0);\n x = area.right;\n } else if (r & R_LEFT) {\n y = y0 + (y1 - y0) * (area.left - x0) / (x1 - x0);\n x = area.left;\n }\n\n if (r === r0) {\n x0 = x;\n y0 = y;\n r0 = region(x0, y0, area);\n } else {\n x1 = x;\n y1 = y;\n r1 = region(x1, y1, area);\n }\n }\n\n return {\n x0: x0,\n x1: x1,\n y0: y0,\n y1: y1\n };\n}\n\nfunction compute$1(range, config) {\n var anchor = config.anchor;\n var segment = range;\n var x, y;\n\n if (config.clamp) {\n segment = clipped(segment, config.area);\n }\n\n if (anchor === 'start') {\n x = segment.x0;\n y = segment.y0;\n } else if (anchor === 'end') {\n x = segment.x1;\n y = segment.y1;\n } else {\n x = (segment.x0 + segment.x1) / 2;\n y = (segment.y0 + segment.y1) / 2;\n }\n\n return aligned(x, y, range.vx, range.vy, config.align);\n}\n\nvar positioners = {\n arc: function(el, config) {\n var angle = (el.startAngle + el.endAngle) / 2;\n var vx = Math.cos(angle);\n var vy = Math.sin(angle);\n var r0 = el.innerRadius;\n var r1 = el.outerRadius;\n\n return compute$1({\n x0: el.x + vx * r0,\n y0: el.y + vy * r0,\n x1: el.x + vx * r1,\n y1: el.y + vy * r1,\n vx: vx,\n vy: vy\n }, config);\n },\n\n point: function(el, config) {\n var v = orient(el, config.origin);\n var rx = v.x * el.options.radius;\n var ry = v.y * el.options.radius;\n\n return compute$1({\n x0: el.x - rx,\n y0: el.y - ry,\n x1: el.x + rx,\n y1: el.y + ry,\n vx: v.x,\n vy: v.y\n }, config);\n },\n\n bar: function(el, config) {\n var v = orient(el, config.origin);\n var x = el.x;\n var y = el.y;\n var sx = 0;\n var sy = 0;\n\n if (el.horizontal) {\n x = Math.min(el.x, el.base);\n sx = Math.abs(el.base - el.x);\n } else {\n y = Math.min(el.y, el.base);\n sy = Math.abs(el.base - el.y);\n }\n\n return compute$1({\n x0: x,\n y0: y + sy,\n x1: x + sx,\n y1: y,\n vx: v.x,\n vy: v.y\n }, config);\n },\n\n fallback: function(el, config) {\n var v = orient(el, config.origin);\n\n return compute$1({\n x0: el.x,\n y0: el.y,\n x1: el.x + (el.width || 0),\n y1: el.y + (el.height || 0),\n vx: v.x,\n vy: v.y\n }, config);\n }\n};\n\nvar rasterize = utils.rasterize;\n\nfunction boundingRects(model) {\n var borderWidth = model.borderWidth || 0;\n var padding = model.padding;\n var th = model.size.height;\n var tw = model.size.width;\n var tx = -tw / 2;\n var ty = -th / 2;\n\n return {\n frame: {\n x: tx - padding.left - borderWidth,\n y: ty - padding.top - borderWidth,\n w: tw + padding.width + borderWidth * 2,\n h: th + padding.height + borderWidth * 2\n },\n text: {\n x: tx,\n y: ty,\n w: tw,\n h: th\n }\n };\n}\n\nfunction getScaleOrigin(el, context) {\n var scale = context.chart.getDatasetMeta(context.datasetIndex).vScale;\n\n if (!scale) {\n return null;\n }\n\n if (scale.xCenter !== undefined && scale.yCenter !== undefined) {\n return {x: scale.xCenter, y: scale.yCenter};\n }\n\n var pixel = scale.getBasePixel();\n return el.horizontal ?\n {x: pixel, y: null} :\n {x: null, y: pixel};\n}\n\nfunction getPositioner(el) {\n if (el instanceof ArcElement) {\n return positioners.arc;\n }\n if (el instanceof PointElement) {\n return positioners.point;\n }\n if (el instanceof BarElement) {\n return positioners.bar;\n }\n return positioners.fallback;\n}\n\nfunction drawRoundedRect(ctx, x, y, w, h, radius) {\n var HALF_PI = Math.PI / 2;\n\n if (radius) {\n var r = Math.min(radius, h / 2, w / 2);\n var left = x + r;\n var top = y + r;\n var right = x + w - r;\n var bottom = y + h - r;\n\n ctx.moveTo(x, top);\n if (left < right && top < bottom) {\n ctx.arc(left, top, r, -Math.PI, -HALF_PI);\n ctx.arc(right, top, r, -HALF_PI, 0);\n ctx.arc(right, bottom, r, 0, HALF_PI);\n ctx.arc(left, bottom, r, HALF_PI, Math.PI);\n } else if (left < right) {\n ctx.moveTo(left, y);\n ctx.arc(right, top, r, -HALF_PI, HALF_PI);\n ctx.arc(left, top, r, HALF_PI, Math.PI + HALF_PI);\n } else if (top < bottom) {\n ctx.arc(left, top, r, -Math.PI, 0);\n ctx.arc(left, bottom, r, 0, Math.PI);\n } else {\n ctx.arc(left, top, r, -Math.PI, Math.PI);\n }\n ctx.closePath();\n ctx.moveTo(x, y);\n } else {\n ctx.rect(x, y, w, h);\n }\n}\n\nfunction drawFrame(ctx, rect, model) {\n var bgColor = model.backgroundColor;\n var borderColor = model.borderColor;\n var borderWidth = model.borderWidth;\n\n if (!bgColor && (!borderColor || !borderWidth)) {\n return;\n }\n\n ctx.beginPath();\n\n drawRoundedRect(\n ctx,\n rasterize(rect.x) + borderWidth / 2,\n rasterize(rect.y) + borderWidth / 2,\n rasterize(rect.w) - borderWidth,\n rasterize(rect.h) - borderWidth,\n model.borderRadius);\n\n ctx.closePath();\n\n if (bgColor) {\n ctx.fillStyle = bgColor;\n ctx.fill();\n }\n\n if (borderColor && borderWidth) {\n ctx.strokeStyle = borderColor;\n ctx.lineWidth = borderWidth;\n ctx.lineJoin = 'miter';\n ctx.stroke();\n }\n}\n\nfunction textGeometry(rect, align, font) {\n var h = font.lineHeight;\n var w = rect.w;\n var x = rect.x;\n var y = rect.y + h / 2;\n\n if (align === 'center') {\n x += w / 2;\n } else if (align === 'end' || align === 'right') {\n x += w;\n }\n\n return {\n h: h,\n w: w,\n x: x,\n y: y\n };\n}\n\nfunction drawTextLine(ctx, text, cfg) {\n var shadow = ctx.shadowBlur;\n var stroked = cfg.stroked;\n var x = rasterize(cfg.x);\n var y = rasterize(cfg.y);\n var w = rasterize(cfg.w);\n\n if (stroked) {\n ctx.strokeText(text, x, y, w);\n }\n\n if (cfg.filled) {\n if (shadow && stroked) {\n // Prevent drawing shadow on both the text stroke and fill, so\n // if the text is stroked, remove the shadow for the text fill.\n ctx.shadowBlur = 0;\n }\n\n ctx.fillText(text, x, y, w);\n\n if (shadow && stroked) {\n ctx.shadowBlur = shadow;\n }\n }\n}\n\nfunction drawText(ctx, lines, rect, model) {\n var align = model.textAlign;\n var color = model.color;\n var filled = !!color;\n var font = model.font;\n var ilen = lines.length;\n var strokeColor = model.textStrokeColor;\n var strokeWidth = model.textStrokeWidth;\n var stroked = strokeColor && strokeWidth;\n var i;\n\n if (!ilen || (!filled && !stroked)) {\n return;\n }\n\n // Adjust coordinates based on text alignment and line height\n rect = textGeometry(rect, align, font);\n\n ctx.font = font.string;\n ctx.textAlign = align;\n ctx.textBaseline = 'middle';\n ctx.shadowBlur = model.textShadowBlur;\n ctx.shadowColor = model.textShadowColor;\n\n if (filled) {\n ctx.fillStyle = color;\n }\n if (stroked) {\n ctx.lineJoin = 'round';\n ctx.lineWidth = strokeWidth;\n ctx.strokeStyle = strokeColor;\n }\n\n for (i = 0, ilen = lines.length; i < ilen; ++i) {\n drawTextLine(ctx, lines[i], {\n stroked: stroked,\n filled: filled,\n w: rect.w,\n x: rect.x,\n y: rect.y + rect.h * i\n });\n }\n}\n\nvar Label = function(config, ctx, el, index) {\n var me = this;\n\n me._config = config;\n me._index = index;\n me._model = null;\n me._rects = null;\n me._ctx = ctx;\n me._el = el;\n};\n\nmerge(Label.prototype, {\n /**\n * @private\n */\n _modelize: function(display, lines, config, context) {\n var me = this;\n var index = me._index;\n var font = toFont(resolve([config.font, {}], context, index));\n var color = resolve([config.color, defaults$1.color], context, index);\n\n return {\n align: resolve([config.align, 'center'], context, index),\n anchor: resolve([config.anchor, 'center'], context, index),\n area: context.chart.chartArea,\n backgroundColor: resolve([config.backgroundColor, null], context, index),\n borderColor: resolve([config.borderColor, null], context, index),\n borderRadius: resolve([config.borderRadius, 0], context, index),\n borderWidth: resolve([config.borderWidth, 0], context, index),\n clamp: resolve([config.clamp, false], context, index),\n clip: resolve([config.clip, false], context, index),\n color: color,\n display: display,\n font: font,\n lines: lines,\n offset: resolve([config.offset, 4], context, index),\n opacity: resolve([config.opacity, 1], context, index),\n origin: getScaleOrigin(me._el, context),\n padding: toPadding(resolve([config.padding, 4], context, index)),\n positioner: getPositioner(me._el),\n rotation: resolve([config.rotation, 0], context, index) * (Math.PI / 180),\n size: utils.textSize(me._ctx, lines, font),\n textAlign: resolve([config.textAlign, 'start'], context, index),\n textShadowBlur: resolve([config.textShadowBlur, 0], context, index),\n textShadowColor: resolve([config.textShadowColor, color], context, index),\n textStrokeColor: resolve([config.textStrokeColor, color], context, index),\n textStrokeWidth: resolve([config.textStrokeWidth, 0], context, index)\n };\n },\n\n update: function(context) {\n var me = this;\n var model = null;\n var rects = null;\n var index = me._index;\n var config = me._config;\n var value, label, lines;\n\n // We first resolve the display option (separately) to avoid computing\n // other options in case the label is hidden (i.e. display: false).\n var display = resolve([config.display, true], context, index);\n\n if (display) {\n value = context.dataset.data[index];\n label = valueOrDefault(callback(config.formatter, [value, context]), value);\n lines = isNullOrUndef(label) ? [] : utils.toTextLines(label);\n\n if (lines.length) {\n model = me._modelize(display, lines, config, context);\n rects = boundingRects(model);\n }\n }\n\n me._model = model;\n me._rects = rects;\n },\n\n geometry: function() {\n return this._rects ? this._rects.frame : {};\n },\n\n rotation: function() {\n return this._model ? this._model.rotation : 0;\n },\n\n visible: function() {\n return this._model && this._model.opacity;\n },\n\n model: function() {\n return this._model;\n },\n\n draw: function(chart, center) {\n var me = this;\n var ctx = chart.ctx;\n var model = me._model;\n var rects = me._rects;\n var area;\n\n if (!this.visible()) {\n return;\n }\n\n ctx.save();\n\n if (model.clip) {\n area = model.area;\n ctx.beginPath();\n ctx.rect(\n area.left,\n area.top,\n area.right - area.left,\n area.bottom - area.top);\n ctx.clip();\n }\n\n ctx.globalAlpha = utils.bound(0, model.opacity, 1);\n ctx.translate(rasterize(center.x), rasterize(center.y));\n ctx.rotate(model.rotation);\n\n drawFrame(ctx, rects.frame, model);\n drawText(ctx, model.lines, rects.text, model);\n\n ctx.restore();\n }\n});\n\nvar MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991; // eslint-disable-line es/no-number-minsafeinteger\nvar MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; // eslint-disable-line es/no-number-maxsafeinteger\n\nfunction rotated(point, center, angle) {\n var cos = Math.cos(angle);\n var sin = Math.sin(angle);\n var cx = center.x;\n var cy = center.y;\n\n return {\n x: cx + cos * (point.x - cx) - sin * (point.y - cy),\n y: cy + sin * (point.x - cx) + cos * (point.y - cy)\n };\n}\n\nfunction projected(points, axis) {\n var min = MAX_INTEGER;\n var max = MIN_INTEGER;\n var origin = axis.origin;\n var i, pt, vx, vy, dp;\n\n for (i = 0; i < points.length; ++i) {\n pt = points[i];\n vx = pt.x - origin.x;\n vy = pt.y - origin.y;\n dp = axis.vx * vx + axis.vy * vy;\n min = Math.min(min, dp);\n max = Math.max(max, dp);\n }\n\n return {\n min: min,\n max: max\n };\n}\n\nfunction toAxis(p0, p1) {\n var vx = p1.x - p0.x;\n var vy = p1.y - p0.y;\n var ln = Math.sqrt(vx * vx + vy * vy);\n\n return {\n vx: (p1.x - p0.x) / ln,\n vy: (p1.y - p0.y) / ln,\n origin: p0,\n ln: ln\n };\n}\n\nvar HitBox = function() {\n this._rotation = 0;\n this._rect = {\n x: 0,\n y: 0,\n w: 0,\n h: 0\n };\n};\n\nmerge(HitBox.prototype, {\n center: function() {\n var r = this._rect;\n return {\n x: r.x + r.w / 2,\n y: r.y + r.h / 2\n };\n },\n\n update: function(center, rect, rotation) {\n this._rotation = rotation;\n this._rect = {\n x: rect.x + center.x,\n y: rect.y + center.y,\n w: rect.w,\n h: rect.h\n };\n },\n\n contains: function(point) {\n var me = this;\n var margin = 1;\n var rect = me._rect;\n\n point = rotated(point, me.center(), -me._rotation);\n\n return !(point.x < rect.x - margin\n || point.y < rect.y - margin\n || point.x > rect.x + rect.w + margin * 2\n || point.y > rect.y + rect.h + margin * 2);\n },\n\n // Separating Axis Theorem\n // https://gamedevelopment.tutsplus.com/tutorials/collision-detection-using-the-separating-axis-theorem--gamedev-169\n intersects: function(other) {\n var r0 = this._points();\n var r1 = other._points();\n var axes = [\n toAxis(r0[0], r0[1]),\n toAxis(r0[0], r0[3])\n ];\n var i, pr0, pr1;\n\n if (this._rotation !== other._rotation) {\n // Only separate with r1 axis if the rotation is different,\n // else it's enough to separate r0 and r1 with r0 axis only!\n axes.push(\n toAxis(r1[0], r1[1]),\n toAxis(r1[0], r1[3])\n );\n }\n\n for (i = 0; i < axes.length; ++i) {\n pr0 = projected(r0, axes[i]);\n pr1 = projected(r1, axes[i]);\n\n if (pr0.max < pr1.min || pr1.max < pr0.min) {\n return false;\n }\n }\n\n return true;\n },\n\n /**\n * @private\n */\n _points: function() {\n var me = this;\n var rect = me._rect;\n var angle = me._rotation;\n var center = me.center();\n\n return [\n rotated({x: rect.x, y: rect.y}, center, angle),\n rotated({x: rect.x + rect.w, y: rect.y}, center, angle),\n rotated({x: rect.x + rect.w, y: rect.y + rect.h}, center, angle),\n rotated({x: rect.x, y: rect.y + rect.h}, center, angle)\n ];\n }\n});\n\nfunction coordinates(el, model, geometry) {\n var point = model.positioner(el, model);\n var vx = point.vx;\n var vy = point.vy;\n\n if (!vx && !vy) {\n // if aligned center, we don't want to offset the center point\n return {x: point.x, y: point.y};\n }\n\n var w = geometry.w;\n var h = geometry.h;\n\n // take in account the label rotation\n var rotation = model.rotation;\n var dx = Math.abs(w / 2 * Math.cos(rotation)) + Math.abs(h / 2 * Math.sin(rotation));\n var dy = Math.abs(w / 2 * Math.sin(rotation)) + Math.abs(h / 2 * Math.cos(rotation));\n\n // scale the unit vector (vx, vy) to get at least dx or dy equal to\n // w or h respectively (else we would calculate the distance to the\n // ellipse inscribed in the bounding rect)\n var vs = 1 / Math.max(Math.abs(vx), Math.abs(vy));\n dx *= vx * vs;\n dy *= vy * vs;\n\n // finally, include the explicit offset\n dx += model.offset * vx;\n dy += model.offset * vy;\n\n return {\n x: point.x + dx,\n y: point.y + dy\n };\n}\n\nfunction collide(labels, collider) {\n var i, j, s0, s1;\n\n // IMPORTANT Iterate in the reverse order since items at the end of the\n // list have an higher weight/priority and thus should be less impacted\n // by the overlapping strategy.\n\n for (i = labels.length - 1; i >= 0; --i) {\n s0 = labels[i].$layout;\n\n for (j = i - 1; j >= 0 && s0._visible; --j) {\n s1 = labels[j].$layout;\n\n if (s1._visible && s0._box.intersects(s1._box)) {\n collider(s0, s1);\n }\n }\n }\n\n return labels;\n}\n\nfunction compute(labels) {\n var i, ilen, label, state, geometry, center, proxy;\n\n // Initialize labels for overlap detection\n for (i = 0, ilen = labels.length; i < ilen; ++i) {\n label = labels[i];\n state = label.$layout;\n\n if (state._visible) {\n // Chart.js 3 removed el._model in favor of getProps(), making harder to\n // abstract reading values in positioners. Also, using string arrays to\n // read values (i.e. var {a,b,c} = el.getProps([\"a\",\"b\",\"c\"])) would make\n // positioners inefficient in the normal case (i.e. not the final values)\n // and the code a bit ugly, so let's use a Proxy instead.\n proxy = new Proxy(label._el, {get: (el, p) => el.getProps([p], true)[p]});\n\n geometry = label.geometry();\n center = coordinates(proxy, label.model(), geometry);\n state._box.update(center, geometry, label.rotation());\n }\n }\n\n // Auto hide overlapping labels\n return collide(labels, function(s0, s1) {\n var h0 = s0._hidable;\n var h1 = s1._hidable;\n\n if ((h0 && h1) || h1) {\n s1._visible = false;\n } else if (h0) {\n s0._visible = false;\n }\n });\n}\n\nvar layout = {\n prepare: function(datasets) {\n var labels = [];\n var i, j, ilen, jlen, label;\n\n for (i = 0, ilen = datasets.length; i < ilen; ++i) {\n for (j = 0, jlen = datasets[i].length; j < jlen; ++j) {\n label = datasets[i][j];\n labels.push(label);\n label.$layout = {\n _box: new HitBox(),\n _hidable: false,\n _visible: true,\n _set: i,\n _idx: label._index\n };\n }\n }\n\n // TODO New `z` option: labels with a higher z-index are drawn\n // of top of the ones with a lower index. Lowest z-index labels\n // are also discarded first when hiding overlapping labels.\n labels.sort(function(a, b) {\n var sa = a.$layout;\n var sb = b.$layout;\n\n return sa._idx === sb._idx\n ? sb._set - sa._set\n : sb._idx - sa._idx;\n });\n\n this.update(labels);\n\n return labels;\n },\n\n update: function(labels) {\n var dirty = false;\n var i, ilen, label, model, state;\n\n for (i = 0, ilen = labels.length; i < ilen; ++i) {\n label = labels[i];\n model = label.model();\n state = label.$layout;\n state._hidable = model && model.display === 'auto';\n state._visible = label.visible();\n dirty |= state._hidable;\n }\n\n if (dirty) {\n compute(labels);\n }\n },\n\n lookup: function(labels, point) {\n var i, state;\n\n // IMPORTANT Iterate in the reverse order since items at the end of\n // the list have an higher z-index, thus should be picked first.\n\n for (i = labels.length - 1; i >= 0; --i) {\n state = labels[i].$layout;\n\n if (state && state._visible && state._box.contains(point)) {\n return labels[i];\n }\n }\n\n return null;\n },\n\n draw: function(chart, labels) {\n var i, ilen, label, state, geometry, center;\n\n for (i = 0, ilen = labels.length; i < ilen; ++i) {\n label = labels[i];\n state = label.$layout;\n\n if (state._visible) {\n geometry = label.geometry();\n center = coordinates(label._el, label.model(), geometry);\n state._box.update(center, geometry, label.rotation());\n label.draw(chart, center);\n }\n }\n }\n};\n\nvar formatter = function(value) {\n if (isNullOrUndef(value)) {\n return null;\n }\n\n var label = value;\n var keys, klen, k;\n if (isObject(value)) {\n if (!isNullOrUndef(value.label)) {\n label = value.label;\n } else if (!isNullOrUndef(value.r)) {\n label = value.r;\n } else {\n label = '';\n keys = Object.keys(value);\n for (k = 0, klen = keys.length; k < klen; ++k) {\n label += (k !== 0 ? ', ' : '') + keys[k] + ': ' + value[keys[k]];\n }\n }\n }\n\n return '' + label;\n};\n\n/**\n * IMPORTANT: make sure to also update tests and TypeScript definition\n * files (`/test/specs/defaults.spec.js` and `/types/options.d.ts`)\n */\n\nvar defaults = {\n align: 'center',\n anchor: 'center',\n backgroundColor: null,\n borderColor: null,\n borderRadius: 0,\n borderWidth: 0,\n clamp: false,\n clip: false,\n color: undefined,\n display: true,\n font: {\n family: undefined,\n lineHeight: 1.2,\n size: undefined,\n style: undefined,\n weight: null\n },\n formatter: formatter,\n labels: undefined,\n listeners: {},\n offset: 4,\n opacity: 1,\n padding: {\n top: 4,\n right: 4,\n bottom: 4,\n left: 4\n },\n rotation: 0,\n textAlign: 'start',\n textStrokeColor: undefined,\n textStrokeWidth: 0,\n textShadowBlur: 0,\n textShadowColor: undefined\n};\n\n/**\n * @see https://github.com/chartjs/Chart.js/issues/4176\n */\n\nvar EXPANDO_KEY = '$datalabels';\nvar DEFAULT_KEY = '$default';\n\nfunction configure(dataset, options) {\n var override = dataset.datalabels;\n var listeners = {};\n var configs = [];\n var labels, keys;\n\n if (override === false) {\n return null;\n }\n if (override === true) {\n override = {};\n }\n\n options = merge({}, [options, override]);\n labels = options.labels || {};\n keys = Object.keys(labels);\n delete options.labels;\n\n if (keys.length) {\n keys.forEach(function(key) {\n if (labels[key]) {\n configs.push(merge({}, [\n options,\n labels[key],\n {_key: key}\n ]));\n }\n });\n } else {\n // Default label if no \"named\" label defined.\n configs.push(options);\n }\n\n // listeners: {<event-type>: {<label-key>: <fn>}}\n listeners = configs.reduce(function(target, config) {\n each(config.listeners || {}, function(fn, event) {\n target[event] = target[event] || {};\n target[event][config._key || DEFAULT_KEY] = fn;\n });\n\n delete config.listeners;\n return target;\n }, {});\n\n return {\n labels: configs,\n listeners: listeners\n };\n}\n\nfunction dispatchEvent(chart, listeners, label, event) {\n if (!listeners) {\n return;\n }\n\n var context = label.$context;\n var groups = label.$groups;\n var callback$1;\n\n if (!listeners[groups._set]) {\n return;\n }\n\n callback$1 = listeners[groups._set][groups._key];\n if (!callback$1) {\n return;\n }\n\n if (callback(callback$1, [context, event]) === true) {\n // Users are allowed to tweak the given context by injecting values that can be\n // used in scriptable options to display labels differently based on the current\n // event (e.g. highlight an hovered label). That's why we update the label with\n // the output context and schedule a new chart render by setting it dirty.\n chart[EXPANDO_KEY]._dirty = true;\n label.update(context);\n }\n}\n\nfunction dispatchMoveEvents(chart, listeners, previous, label, event) {\n var enter, leave;\n\n if (!previous && !label) {\n return;\n }\n\n if (!previous) {\n enter = true;\n } else if (!label) {\n leave = true;\n } else if (previous !== label) {\n leave = enter = true;\n }\n\n if (leave) {\n dispatchEvent(chart, listeners.leave, previous, event);\n }\n if (enter) {\n dispatchEvent(chart, listeners.enter, label, event);\n }\n}\n\nfunction handleMoveEvents(chart, event) {\n var expando = chart[EXPANDO_KEY];\n var listeners = expando._listeners;\n var previous, label;\n\n if (!listeners.enter && !listeners.leave) {\n return;\n }\n\n if (event.type === 'mousemove') {\n label = layout.lookup(expando._labels, event);\n } else if (event.type !== 'mouseout') {\n return;\n }\n\n previous = expando._hovered;\n expando._hovered = label;\n dispatchMoveEvents(chart, listeners, previous, label, event);\n}\n\nfunction handleClickEvents(chart, event) {\n var expando = chart[EXPANDO_KEY];\n var handlers = expando._listeners.click;\n var label = handlers && layout.lookup(expando._labels, event);\n if (label) {\n dispatchEvent(chart, handlers, label, event);\n }\n}\n\nvar plugin = {\n id: 'datalabels',\n\n defaults: defaults,\n\n beforeInit: function(chart) {\n chart[EXPANDO_KEY] = {\n _actives: []\n };\n },\n\n beforeUpdate: function(chart) {\n var expando = chart[EXPANDO_KEY];\n expando._listened = false;\n expando._listeners = {}; // {<event-type>: {<dataset-index>: {<label-key>: <fn>}}}\n expando._datasets = []; // per dataset labels: [Label[]]\n expando._labels = []; // layouted labels: Label[]\n },\n\n afterDatasetUpdate: function(chart, args, options) {\n var datasetIndex = args.index;\n var expando = chart[EXPANDO_KEY];\n var labels = expando._datasets[datasetIndex] = [];\n var visible = chart.isDatasetVisible(datasetIndex);\n var dataset = chart.data.datasets[datasetIndex];\n var config = configure(dataset, options);\n var elements = args.meta.data || [];\n var ctx = chart.ctx;\n var i, j, ilen, jlen, cfg, key, el, label;\n\n ctx.save();\n\n for (i = 0, ilen = elements.length; i < ilen; ++i) {\n el = elements[i];\n el[EXPANDO_KEY] = [];\n\n if (visible && el && chart.getDataVisibility(i) && !el.skip) {\n for (j = 0, jlen = config.labels.length; j < jlen; ++j) {\n cfg = config.labels[j];\n key = cfg._key;\n\n label = new Label(cfg, ctx, el, i);\n label.$groups = {\n _set: datasetIndex,\n _key: key || DEFAULT_KEY\n };\n label.$context = {\n active: false,\n chart: chart,\n dataIndex: i,\n dataset: dataset,\n datasetIndex: datasetIndex\n };\n\n label.update(label.$context);\n el[EXPANDO_KEY].push(label);\n labels.push(label);\n }\n }\n }\n\n ctx.restore();\n\n // Store listeners at the chart level and per event type to optimize\n // cases where no listeners are registered for a specific event.\n merge(expando._listeners, config.listeners, {\n merger: function(event, target, source) {\n target[event] = target[event] || {};\n target[event][args.index] = source[event];\n expando._listened = true;\n }\n });\n },\n\n afterUpdate: function(chart) {\n chart[EXPANDO_KEY]._labels = layout.prepare(chart[EXPANDO_KEY]._datasets);\n },\n\n // Draw labels on top of all dataset elements\n // https://github.com/chartjs/chartjs-plugin-datalabels/issues/29\n // https://github.com/chartjs/chartjs-plugin-datalabels/issues/32\n afterDatasetsDraw: function(chart) {\n layout.draw(chart, chart[EXPANDO_KEY]._labels);\n },\n\n beforeEvent: function(chart, args) {\n // If there is no listener registered for this chart, `listened` will be false,\n // meaning we can immediately ignore the incoming event and avoid useless extra\n // computation for users who don't implement label interactions.\n if (chart[EXPANDO_KEY]._listened) {\n var event = args.event;\n switch (event.type) {\n case 'mousemove':\n case 'mouseout':\n handleMoveEvents(chart, event);\n break;\n case 'click':\n handleClickEvents(chart, event);\n break;\n }\n }\n },\n\n afterEvent: function(chart) {\n var expando = chart[EXPANDO_KEY];\n var previous = expando._actives;\n var actives = expando._actives = chart.getActiveElements();\n var updates = utils.arrayDiff(previous, actives);\n var i, ilen, j, jlen, update, label, labels;\n\n for (i = 0, ilen = updates.length; i < ilen; ++i) {\n update = updates[i];\n if (update[1]) {\n labels = update[0].element[EXPANDO_KEY] || [];\n for (j = 0, jlen = labels.length; j < jlen; ++j) {\n label = labels[j];\n label.$context.active = (update[1] === 1);\n label.update(label.$context);\n }\n }\n }\n\n if (expando._dirty || updates.length) {\n layout.update(expando._labels);\n chart.render();\n }\n\n delete expando._dirty;\n }\n};\n\nexport { plugin as default };\n"],"names":["devicePixelRatio","window","screen","deviceXDPI","logicalXDPI","utils","inputs","input","lines","concat","length","pop","unshift","apply","split","Array","isArray","push","isNullOrUndef","ctx","font","i","items","ilen","prev","width","string","Math","max","measureText","height","lineHeight","min","value","a0","a1","j","v","slice","updates","indexOf","splice","orient","point","origin","x0","x","y0","y","dx","dy","ln","sqrt","R_INSIDE","R_LEFT","R_RIGHT","R_BOTTOM","R_TOP","region","rect","res","left","right","top","bottom","compute$1","range","config","anchor","segment","clamp","area","r","x1","y1","r0","r1","clipped","vx","vy","align","PI","cos","sin","aligned","positioners","el","angle","startAngle","endAngle","innerRadius","outerRadius","rx","options","radius","ry","sx","sy","horizontal","base","abs","rasterize","round","getScaleOrigin","context","scale","chart","getDatasetMeta","datasetIndex","vScale","undefined","xCenter","yCenter","pixel","getBasePixel","drawFrame","model","bgColor","backgroundColor","borderColor","borderWidth","beginPath","w","h","HALF_PI","moveTo","arc","closePath","drawRoundedRect","borderRadius","fillStyle","fill","strokeStyle","lineWidth","lineJoin","stroke","drawTextLine","text","cfg","shadow","shadowBlur","stroked","strokeText","filled","fillText","Label","index","me","this","_config","_index","_model","_rects","_ctx","_el","merge","prototype","_modelize","display","toFont","resolve","color","defaults$1","chartArea","clip","offset","opacity","padding","toPadding","positioner","ArcElement","PointElement","BarElement","rotation","size","textAlign","textShadowBlur","textShadowColor","textStrokeColor","textStrokeWidth","update","label","rects","dataset","data","valueOrDefault","callback","formatter","th","tw","tx","ty","frame","boundingRects","geometry","visible","draw","center","save","globalAlpha","translate","rotate","strokeColor","strokeWidth","textGeometry","textBaseline","shadowColor","drawText","restore","MIN_INTEGER","Number","MIN_SAFE_INTEGER","MAX_INTEGER","MAX_SAFE_INTEGER","rotated","cx","cy","projected","points","axis","pt","dp","toAxis","p0","p1","HitBox","_rotation","_rect","coordinates","vs","contains","margin","intersects","other","pr0","pr1","_points","axes","layout","prepare","datasets","jlen","labels","$layout","_box","_hidable","_visible","_set","_idx","sort","a","b","sa","sb","state","dirty","proxy","Proxy","get","p","getProps","collider","s0","s1","collide","h0","h1","compute","lookup","EXPANDO_KEY","DEFAULT_KEY","dispatchEvent","listeners","event","callback$1","$context","groups","$groups","_key","_dirty","handleMoveEvents","previous","expando","_listeners","enter","leave","type","_labels","_hovered","dispatchMoveEvents","plugin","id","defaults","family","style","weight","keys","klen","k","isObject","Object","beforeInit","_actives","beforeUpdate","_listened","_datasets","afterDatasetUpdate","args","key","isDatasetVisible","override","datalabels","configs","forEach","reduce","target","each","fn","configure","elements","meta","getDataVisibility","skip","active","dataIndex","merger","source","afterUpdate","afterDatasetsDraw","beforeEvent","handlers","click","hand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0":l,n=l,r=(l,r)=>s=>{var t;if(null==(null==r?void 0:r.variants))return n(l,null==s?void 0:s.class,null==s?void 0:s.className);const{variants:o,defaultVariants:u}=r,a=Object.keys(o).map((l=>{const n=null==s?void 0:s[l],r=null==u?void 0:u[l];if(null===n)return null;const t=e(n)||e(r);return o[l][t]})),i=s&&Object.entries(s).reduce(((l,e)=>{let[n,r]=e;return void 0===r||(l[n]=r),l}),{}),c=null==r||null===(t=r.compoundVariants)||void 0===t?void 0:t.reduce(((l,e)=>{let{class:n,className:r,...s}=e;return Object.entries(s).every((l=>{let[e,n]=l;return Array.isArray(n)?n.includes({...u,...i}[e]):{...u,...i}[e]===n}))?[...l,n,r]:l}),[]);return n(l,a,c,null==s?void 0:s.class,null==s?void 0:s.className)};export{r as cva,n as cx};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? \"\".concat(value) : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>{\n return (props)=>{\n var ref;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants , defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{\n let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n};\n\n\n//# sourceMappingURL=index.mjs.map"],"names":["falsyToString","value","concat","cx","clsx","cva","base","config","props","ref","variants","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","getCompoundVariantClassNames","compoundVariants","param1","cvClass","cvClassName","compoundVariantOptions","every","Array","isArray","includes"],"mappings":"0DACA,MAAMA,EAAiBC,GAAyB,kBAAVA,EAAsB,GAAGC,OAAOD,GAAmB,IAAVA,EAAc,IAAMA,EACtFE,EAAKC,EACLC,EAAM,CAACC,EAAMC,IACdC,IACJ,IAAIC,EACJ,GAAyE,OAApEF,aAAuC,EAASA,EAAOG,UAAmB,OAAOP,EAAGG,EAAME,aAAqC,EAASA,EAAMG,MAAOH,aAAqC,EAASA,EAAMI,WAC9M,MAAMF,SAAEA,EAAQG,gBAAGA,GAAqBN,EAClCO,EAAuBC,OAAOC,KAAKN,GAAUO,KAAKC,IACpD,MAAMC,EAAcX,aAAqC,EAASA,EAAMU,GAClEE,EAAqBP,aAAyD,EAASA,EAAgBK,GAC7G,GAAoB,OAAhBC,EAAsB,OAAO,KACjC,MAAME,EAAarB,EAAcmB,IAAgBnB,EAAcoB,GAC/D,OAAOV,EAASQ,GAASG,EAAW,IAElCC,EAAwBd,GAASO,OAAOQ,QAAQf,GAAOgB,QAAO,CAACC,EAAKC,KACtE,IAAKC,EAAK1B,GAASyB,EACnB,YAAcE,IAAV3B,IAGJwB,EAAIE,GAAO1B,GAFAwB,CAGD,GACX,CAAE,GACCI,EAA+BtB,SAAoF,QAAnCE,EAAMF,EAAOuB,wBAAsC,IAARrB,OAArD,EAA+EA,EAAIe,QAAO,CAACC,EAAKM,KACxK,IAAMpB,MAAOqB,EAAUpB,UAAWqB,KAAiBC,GAA2BH,EAC9E,OAAOhB,OAAOQ,QAAQW,GAAwBC,OAAOT,IACjD,IAAKC,EAAK1B,GAASyB,EACnB,OAAOU,MAAMC,QAAQpC,GAASA,EAAMqC,SAAS,IACtCzB,KACAS,GACLK,IAAQ,IACHd,KACAS,GACJK,KAAS1B,CAAK,IAChB,IACEwB,EACHO,EACAC,GACAR,CAAG,GACR,IACH,OAAOtB,EAAGG,EAAMQ,EAAsBe,EAA8BrB,aAAqC,EAASA,EAAMG,MAAOH,aAAqC,EAASA,EAAMI,UAAU"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function e(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}export{e as clsx,e as default};
|
2
|
-
//# sourceMappingURL=clsx.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clsx.mjs","sources":["../../../../../../node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}export function clsx(){for(var e,t,f=0,n=\"\";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","Array","isArray","length","clsx","arguments"],"mappings":"AAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,IAAIC,EAAE,EAAEA,EAAED,EAAEM,OAAOL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,QAAQ,IAAID,KAAKD,EAAEA,EAAEC,KAAKE,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CAAQ,SAASI,IAAO,IAAI,IAAIP,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGD,EAAEM,UAAUF,SAASN,EAAEQ,UAAUN,QAAQD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import{__module as r}from"../../_virtual/index2.mjs";
|
2
|
-
/*!
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
4
|
-
Licensed under the MIT License (MIT), see
|
5
|
-
http://jedwatson.github.io/classnames
|
6
|
-
*/var t;function e(){return t||(t=1,e=r,function(){var r={}.hasOwnProperty;function t(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var s in o)r.call(o,s)&&o[s]&&e.push(s)}}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()),r.exports;var e}r.exports;export{e as __require};
|
7
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","window"],"mappings":";;;;;wCAOC,WAGA,IAAIA,EAAS,CAAE,EAACC,eAGhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,EAEnB,OACU,GAAgB,WAAZJ,EAAsB,CAChC,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,WAAaP,EAAIO,SAASA,WAAWG,SAAS,iBAAkB,CACrGd,EAAQM,KAAKF,EAAIO,YACjB,QACL,CAEI,IAAK,IAAII,KAAOX,EACXP,EAAOmB,KAAKZ,EAAKW,IAAQX,EAAIW,IAChCf,EAAQM,KAAKS,EAGnB,CAxBa,CAyBb,CAEE,OAAOf,EAAQiB,KAAK,IACtB,CAEsCC,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,UAAiBnB,GAOjBsB,OAAOtB,WAAaA,CAEtB,CApDA"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function e(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}export{e as clsx,e as default};
|
2
|
-
//# sourceMappingURL=clsx.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clsx.mjs","sources":["../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","Array","isArray","o","length","clsx","arguments"],"mappings":"AAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,CAAC,IAAIM,EAAEN,EAAEO,OAAO,IAAIN,EAAE,EAAEA,EAAEK,EAAEL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,MAAM,IAAIA,KAAKF,EAAEA,EAAEE,KAAKC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASK,IAAO,IAAI,IAAIR,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGG,EAAEG,UAAUF,OAAOL,EAAEI,EAAEJ,KAAKF,EAAES,UAAUP,MAAMD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce","__webpack_nonce__"],"mappings":"AAIU,IAACA,EAAW,WAIlB,GAAiC,oBAAtBC,kBACP,OAAOA,iBAGf"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import t,{forwardRef as e,useRef as n,useEffect as r}from"react";import{Chart as a,LineController as s,BarController as c,RadarController as u,DoughnutController as o,BubbleController as i,PieController as l}from"../../chart.js/dist/chart.mjs";const d="label";function f(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function p(t,e){t.labels=e}function b(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;const r=[];t.datasets=e.map((e=>{const a=t.datasets.find((t=>t[n]===e[n]));return a&&e.data&&!r.includes(a)?(r.push(a),Object.assign(a,e),a):{...e}}))}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;const n={labels:[],datasets:[]};return p(n,t.labels),b(n,t.datasets,e),n}function h(e,s){const{height:c=150,width:u=300,redraw:o=!1,datasetIdKey:i,type:l,data:d,options:h,plugins:m=[],fallbackContent:j,updateMode:y,...w}=e,O=n(null),v=n(),C=()=>{O.current&&(v.current=new a(O.current,{type:l,data:g(d,i),options:h&&{...h},plugins:m}),f(s,v.current))},E=()=>{f(s,null),v.current&&(v.current.destroy(),v.current=null)};return r((()=>{!o&&v.current&&h&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(v.current,h)}),[o,h]),r((()=>{!o&&v.current&&p(v.current.config.data,d.labels)}),[o,d.labels]),r((()=>{!o&&v.current&&d.datasets&&b(v.current.config.data,d.datasets,i)}),[o,d.datasets]),r((()=>{v.current&&(o?(E(),setTimeout(C)):v.current.update(y))}),[o,h,d.labels,d.datasets,y]),r((()=>{v.current&&(E(),setTimeout(C))}),[l]),r((()=>(C(),()=>E())),[]),t.createElement("canvas",Object.assign({ref:O,role:"img",height:c,width:u},w),j)}const m=e(h);function j(n,r){return a.register(r),e(((e,r)=>t.createElement(m,Object.assign({},e,{ref:r,type:n}))))}const y=j("line",s),w=j("bar",c),O=j("radar",u),v=j("doughnut",o),C=j("bubble",i),E=j("pie",l);export{w as Bar,C as Bubble,m as Chart,v as Doughnut,y as Line,E as Pie,O as Radar};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../node_modules/react-chartjs-2/dist/index.js"],"sourcesContent":["import React, { forwardRef, useRef, useEffect } from 'react';\nimport { Chart as Chart$1, LineController, BarController, RadarController, DoughnutController, PolarAreaController, BubbleController, PieController, ScatterController } from 'chart.js';\n\nconst defaultDatasetIdKey = \"label\";\nfunction reforwardRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}\nfunction setOptions(chart, nextOptions) {\n const options = chart.options;\n if (options && nextOptions) {\n Object.assign(options, nextOptions);\n }\n}\nfunction setLabels(currentData, nextLabels) {\n currentData.labels = nextLabels;\n}\nfunction setDatasets(currentData, nextDatasets) {\n let datasetIdKey = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : defaultDatasetIdKey;\n const addedDatasets = [];\n currentData.datasets = nextDatasets.map((nextDataset)=>{\n // given the new set, find it's current match\n const currentDataset = currentData.datasets.find((dataset)=>dataset[datasetIdKey] === nextDataset[datasetIdKey]);\n // There is no original to update, so simply add new one\n if (!currentDataset || !nextDataset.data || addedDatasets.includes(currentDataset)) {\n return {\n ...nextDataset\n };\n }\n addedDatasets.push(currentDataset);\n Object.assign(currentDataset, nextDataset);\n return currentDataset;\n });\n}\nfunction cloneData(data) {\n let datasetIdKey = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultDatasetIdKey;\n const nextData = {\n labels: [],\n datasets: []\n };\n setLabels(nextData, data.labels);\n setDatasets(nextData, data.datasets, datasetIdKey);\n return nextData;\n}\n/**\n * Get dataset from mouse click event\n * @param chart - Chart.js instance\n * @param event - Mouse click event\n * @returns Dataset\n */ function getDatasetAtEvent(chart, event) {\n return chart.getElementsAtEventForMode(event.nativeEvent, \"dataset\", {\n intersect: true\n }, false);\n}\n/**\n * Get single dataset element from mouse click event\n * @param chart - Chart.js instance\n * @param event - Mouse click event\n * @returns Dataset\n */ function getElementAtEvent(chart, event) {\n return chart.getElementsAtEventForMode(event.nativeEvent, \"nearest\", {\n intersect: true\n }, false);\n}\n/**\n * Get all dataset elements from mouse click event\n * @param chart - Chart.js instance\n * @param event - Mouse click event\n * @returns Dataset\n */ function getElementsAtEvent(chart, event) {\n return chart.getElementsAtEventForMode(event.nativeEvent, \"index\", {\n intersect: true\n }, false);\n}\n\nfunction ChartComponent(props, ref) {\n const { height =150 , width =300 , redraw =false , datasetIdKey , type , data , options , plugins =[] , fallbackContent , updateMode , ...canvasProps } = props;\n const canvasRef = useRef(null);\n const chartRef = useRef();\n const renderChart = ()=>{\n if (!canvasRef.current) return;\n chartRef.current = new Chart$1(canvasRef.current, {\n type,\n data: cloneData(data, datasetIdKey),\n options: options && {\n ...options\n },\n plugins\n });\n reforwardRef(ref, chartRef.current);\n };\n const destroyChart = ()=>{\n reforwardRef(ref, null);\n if (chartRef.current) {\n chartRef.current.destroy();\n chartRef.current = null;\n }\n };\n useEffect(()=>{\n if (!redraw && chartRef.current && options) {\n setOptions(chartRef.current, options);\n }\n }, [\n redraw,\n options\n ]);\n useEffect(()=>{\n if (!redraw && chartRef.current) {\n setLabels(chartRef.current.config.data, data.labels);\n }\n }, [\n redraw,\n data.labels\n ]);\n useEffect(()=>{\n if (!redraw && chartRef.current && data.datasets) {\n setDatasets(chartRef.current.config.data, data.datasets, datasetIdKey);\n }\n }, [\n redraw,\n data.datasets\n ]);\n useEffect(()=>{\n if (!chartRef.current) return;\n if (redraw) {\n destroyChart();\n setTimeout(renderChart);\n } else {\n chartRef.current.update(updateMode);\n }\n }, [\n redraw,\n options,\n data.labels,\n data.datasets,\n updateMode\n ]);\n useEffect(()=>{\n if (!chartRef.current) return;\n destroyChart();\n setTimeout(renderChart);\n }, [\n type\n ]);\n useEffect(()=>{\n renderChart();\n return ()=>destroyChart();\n }, []);\n return /*#__PURE__*/ React.createElement(\"canvas\", Object.assign({\n ref: canvasRef,\n role: \"img\",\n height: height,\n width: width\n }, canvasProps), fallbackContent);\n}\nconst Chart = /*#__PURE__*/ forwardRef(ChartComponent);\n\nfunction createTypedChart(type, registerables) {\n Chart$1.register(registerables);\n return /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ React.createElement(Chart, Object.assign({}, props, {\n ref: ref,\n type: type\n })));\n}\nconst Line = /* #__PURE__ */ createTypedChart(\"line\", LineController);\nconst Bar = /* #__PURE__ */ createTypedChart(\"bar\", BarController);\nconst Radar = /* #__PURE__ */ createTypedChart(\"radar\", RadarController);\nconst Doughnut = /* #__PURE__ */ createTypedChart(\"doughnut\", DoughnutController);\nconst PolarArea = /* #__PURE__ */ createTypedChart(\"polarArea\", PolarAreaController);\nconst Bubble = /* #__PURE__ */ createTypedChart(\"bubble\", BubbleController);\nconst Pie = /* #__PURE__ */ createTypedChart(\"pie\", PieController);\nconst Scatter = /* #__PURE__ */ createTypedChart(\"scatter\", ScatterController);\n\nexport { Bar, Bubble, Chart, Doughnut, Line, Pie, PolarArea, Radar, Scatter, getDatasetAtEvent, getElementAtEvent, getElementsAtEvent };\n//# sourceMappingURL=index.js.map\n"],"names":["defaultDatasetIdKey","reforwardRef","ref","value","current","setLabels","currentData","nextLabels","labels","setDatasets","nextDatasets","datasetIdKey","arguments","length","addedDatasets","datasets","map","nextDataset","currentDataset","find","dataset","data","includes","push","Object","assign","cloneData","nextData","ChartComponent","props","height","width","redraw","type","options","plugins","fallbackContent","updateMode","canvasProps","canvasRef","useRef","chartRef","renderChart","Chart$1","destroyChart","destroy","useEffect","chart","nextOptions","setOptions","config","setTimeout","update","React","createElement","role","Chart","forwardRef","createTypedChart","registerables","register","Line","LineController","Bar","BarController","Radar","RadarController","Doughnut","DoughnutController","B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C,EAAwBP,EAAiB,QAASQ,GAClDC,EAA2BT,EAAiB,WAAYU,GAExDC,EAAyBX,EAAiB,SAAUY,GACpDC,EAAsBb,EAAiB,MAAOc"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__assign as r}from"../../../tslib/tslib.es6.mjs";import*as e from"react";import{RemoveScroll as s}from"./UI.mjs";import a from"./sidecar.mjs";var m=e.forwardRef((function(m,o){return e.createElement(s,r({},m,{ref:o,sideCar:a}))}));m.classNames=s.classNames;var o=m;export{o as default};
|
2
|
-
//# sourceMappingURL=Combination.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Combination.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","forwardRef","props","ref","createElement","RemoveScroll","__assign","sideCar","SideCar","classNames"],"mappings":"qJAIA,IAAIA,EAAoBC,EAAMC,YAAW,SAAUC,EAAOC,GAAO,OAAQH,EAAMI,cAAcC,EAAcC,EAAS,GAAIJ,EAAO,CAAEC,IAAKA,EAAKI,QAASC,IAAa,IACjKT,EAAkBU,WAAaJ,EAAaI,WAC5C,IAAAJ,EAAeN"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__spreadArray as e}from"../../../tslib/tslib.es6.mjs";import*as t from"react";import{RemoveScrollBar as n}from"../../../react-remove-scroll-bar/dist/es2015/component.mjs";import{styleSingleton as r}from"../../../react-style-singleton/dist/es2015/component.mjs";import{nonPassive as c}from"./aggresiveCapture.mjs";import{locationCouldBeScrolled as o,handleScroll as a}from"./handleScroll.mjs";var u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},i=function(e){return[e.deltaX,e.deltaY]},l=function(e){return e&&"current"in e?e.current:e},s=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},f=0,d=[];function m(m){var v=t.useRef([]),p=t.useRef([0,0]),g=t.useRef(),b=t.useState(f++)[0],k=t.useState(r)[0],y=t.useRef(m);t.useEffect((function(){y.current=m}),[m]),t.useEffect((function(){if(m.inert){document.body.classList.add("block-interactivity-".concat(b));var t=e([m.lockRef.current],(m.shards||[]).map(l),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(b))})),function(){document.body.classList.remove("block-interactivity-".concat(b)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(b))}))}}}),[m.inert,m.lockRef.current,m.shards]);var E=t.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!y.current.allowPinchZoom;var n,r=u(e),c=p.current,i="deltaX"in e?e.deltaX:c[0]-r[0],l="deltaY"in e?e.deltaY:c[1]-r[1],s=e.target,f=Math.abs(i)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=o(f,s);if(!d)return!0;if(d?n=f:(n="v"===f?"h":"v",d=o(f,s)),!d)return!1;if(!g.current&&"changedTouches"in e&&(i||l)&&(g.current=n),!n)return!0;var m=g.current||n;return a(m,t,e,"h"===m?i:l,!0)}),[]),C=t.useCallback((function(e){var t=e;if(d.length&&d[d.length-1]===k){var n="deltaY"in t?i(t):u(t),r=v.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,c=n,r[0]===c[0]&&r[1]===c[1]);var r,c}))[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var c=(y.current.shards||[]).map(l).filter(Boolean).filter((function(e){return e.contains(t.target)}));(c.length>0?E(t,c[0]):!y.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),L=t.useCallback((function(e,t,n,r){var c={name:e,delta:t,target:n,should:r,shadowParent:h(n)};v.current.push(c),setTimeout((function(){v.current=v.current.filter((function(e){return e!==c}))}),1)}),[]),w=t.useCallback((function(e){p.current=u(e),g.current=void 0}),[]),R=t.useCallback((function(e){L(e.type,i(e),e.target,E(e,m.lockRef.current))}),[]),S=t.useCallback((function(e){L(e.type,u(e),e.target,E(e,m.lockRef.current))}),[]);t.useEffect((function(){return d.push(k),m.setCallbacks({onScrollCapture:R,onWheelCapture:R,onTouchMoveCapture:S}),document.addEventListener("wheel",C,c),document.addEventListener("touchmove",C,c),document.addEventListener("touchstart",w,c),function(){d=d.filter((function(e){return e!==k})),document.removeEventListener("wheel",C,c),document.removeEventListener("touchmove",C,c),document.removeEventListener("touchstart",w,c)}}),[]);var T=m.removeScrollBar,j=m.inert;return t.createElement(t.Fragment,null,j?t.createElement(k,{styles:s(b)}):null,T?t.createElement(n,{gapMode:m.gapMode}):null)}function h(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}export{m as RemoveScrollSideCar,i as getDeltaXY,u as getTouchXY};
|
2
|
-
//# sourceMappingURL=SideEffect.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SideEffect.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","changedTouches","clientX","clientY","getDeltaXY","deltaX","deltaY","extractRef","ref","current","generateStyle","id","concat","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","useRef","touchStartRef","activeAxis","useState","Style","styleSingleton","lastProps","useEffect","inert","document","body","classList","add","allow_1","__spreadArray","lockRef","shards","map","filter","Boolean","forEach","el","remove","shouldCancelEvent","useCallback","parent","touches","length","allowPinchZoom","currentAxis","touch","touchStart","target","moveDirection","Math","abs","type","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","name","shadowParent","x","y","should","cancelable","preventDefault","shardNodes","node","contains","noIsolation","shouldCancel","getOutermostShadowParent","push","setTimeout","scrollTouchStart","undefined","scrollWheel","scrollTouchMove","setCallbacks","onScrollCapture","onWheelCapture","onTouchMoveCapture","addEventListener","nonPassive","inst","removeEventListener","removeScrollBar","createElement","Fragment","styles","RemoveScrollBar","gapMode","ShadowRoot","host","parentNode"],"mappings":"+YAMU,IAACA,EAAa,SAAUC,GAC9B,MAAO,mBAAoBA,EAAQ,CAACA,EAAMC,eAAe,GAAGC,QAASF,EAAMC,eAAe,GAAGE,SAAW,CAAC,EAAG,EAChH,EACWC,EAAa,SAAUJ,GAAS,MAAO,CAACA,EAAMK,OAAQL,EAAMM,OAAW,EAC9EC,EAAa,SAAUC,GACvB,OAAOA,GAAO,YAAaA,EAAMA,EAAIC,QAAUD,CACnD,EAEIE,EAAgB,SAAUC,GAAM,MAAO,4BAA4BC,OAAOD,EAAI,qDAAqDC,OAAOD,EAAI,4BAA6B,EAC3KE,EAAY,EACZC,EAAY,GACT,SAASC,EAAoBC,GAChC,IAAIC,EAAqBC,EAAMC,OAAO,IAClCC,EAAgBF,EAAMC,OAAO,CAAC,EAAG,IACjCE,EAAaH,EAAMC,SACnBR,EAAKO,EAAMI,SAAST,KAAa,GACjCU,EAAQL,EAAMI,SAASE,GAAgB,GACvCC,EAAYP,EAAMC,OAAOH,GAC7BE,EAAMQ,WAAU,WACZD,EAAUhB,QAAUO,CAC5B,GAAO,CAACA,IACJE,EAAMQ,WAAU,WACZ,GAAIV,EAAMW,MAAO,CACbC,SAASC,KAAKC,UAAUC,IAAI,uBAAuBnB,OAAOD,IAC1D,IAAIqB,EAAUC,EAAc,CAACjB,EAAMkB,QAAQzB,UAAWO,EAAMmB,QAAU,IAAIC,IAAI7B,IAAa,GAAM8B,OAAOC,SAExG,OADAN,EAAQO,SAAQ,SAAUC,GAAM,OAAOA,EAAGV,UAAUC,IAAI,uBAAuBnB,OAAOD,GAAO,IACtF,WACHiB,SAASC,KAAKC,UAAUW,OAAO,uBAAuB7B,OAAOD,IAC7DqB,EAAQO,SAAQ,SAAUC,GAAM,OAAOA,EAAGV,UAAUW,OAAO,uBAAuB7B,OAAOD,GAAO,GAChH,CACS,CAET,GAAO,CAACK,EAAMW,MAAO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1C,EAAOgB,EAAMkB,QAAQzB,SACpG,GAAE,IACHS,EAAMQ,WAAU,WAUZ,OATAZ,EAAUgE,KAAKvD,GACfP,EAAMoE,aAAa,CACfC,gBAAiBH,EACjBI,eAAgBJ,EAChBK,mBAAoBJ,IAExBvD,SAAS4D,iBAAiB,QAAS5B,EAAe6B,GAClD7D,SAAS4D,iBAAiB,YAAa5B,EAAe6B,GACtD7D,SAAS4D,iBAAiB,aAAcR,EAAkBS,GACnD,WACH3E,EAAYA,EAAUuB,QAAO,SAAUqD,GAAQ,OAAOA,IAASnE,CAAM,IACrEK,SAAS+D,oBAAoB,QAAS/B,EAAe6B,GACrD7D,SAAS+D,oBAAoB,YAAa/B,EAAe6B,GACzD7D,SAAS+D,oBAAoB,aAAcX,EAAkBS,EACzE,CACK,GAAE,IACH,IAAIG,EAAkB5E,EAAM4E,gBAAiBjE,EAAQX,EAAMW,MAC3D,OAAQT,EAAM2E,cAAc3E,EAAM4E,SAAU,KACxCnE,EAAQT,EAAM2E,cAActE,EAAO,CAAEwE,OAAQrF,EAAcC,KAAS,KACpEiF,EAAkB1E,EAAM2E,cAAcG,EAAiB,CAAEC,QAASjF,EAAMiF,UAAa,KAC7F,CACA,SAASpB,EAAyBJ,GAE9B,IADA,IAAIP,EAAe,KACH,OAATO,GACCA,aAAgByB,aAChBhC,EAAeO,EAAK0B,KACpB1B,EAAOA,EAAK0B,MAEhB1B,EAAOA,EAAK2B,WAEhB,OAAOlC,CACX"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__rest as e,__assign as r}from"../../../tslib/tslib.es6.mjs";import*as o from"react";import{fullWidthClassName as a,zeroRightClassName as l}from"../../../react-remove-scroll-bar/dist/es2015/constants.mjs";import{effectCar as s}from"./medium.mjs";import{useMergeRefs as t}from"../../../use-callback-ref/dist/es2015/useMergeRef.mjs";var n=function(){},m=o.forwardRef((function(a,l){var m=o.useRef(null),i=o.useState({onScrollCapture:n,onWheelCapture:n,onTouchMoveCapture:n}),c=i[0],d=i[1],f=a.forwardProps,u=a.children,p=a.className,h=a.removeScrollBar,v=a.enabled,b=a.shards,C=a.sideCar,g=a.noIsolation,w=a.inert,P=a.allowPinchZoom,S=a.as,M=void 0===S?"div":S,R=a.gapMode,j=e(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=C,E=t([m,l]),N=r(r({},j),c);return o.createElement(o.Fragment,null,v&&o.createElement(B,{sideCar:s,removeScrollBar:h,shards:b,noIsolation:g,inert:w,setCallbacks:d,allowPinchZoom:!!P,lockRef:m,gapMode:R}),f?o.cloneElement(o.Children.only(u),r(r({},N),{ref:E})):o.createElement(M,r({},N,{className:p,ref:E}),u))}));m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:a,zeroRight:l};export{m as RemoveScroll};
|
2
|
-
//# sourceMappingURL=UI.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UI.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n"],"names":["nothing","RemoveScroll","React","forwardRef","props","parentRef","ref","useRef","_a","useState","onScrollCapture","onWheelCapture","onTouchMoveCapture","callbacks","setCallbacks","forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","_b","as","Container","gapMode","rest","__rest","SideCar","containerRef","useMergeRefs","containerProps","__assign","createElement","Fragment","effectCar","lockRef","cloneElement","Children","only","defaultProps","classNames","fullWidth","fullWidthClassName","zeroRight","zeroRightClassName"],"mappings":"kVAKA,IAAIA,EAAU,WAEd,EAIIC,EAAeC,EAAMC,YAAW,SAAUC,EAAOC,GACjD,IAAIC,EAAMJ,EAAMK,OAAO,MACnBC,EAAKN,EAAMO,SAAS,CACpBC,gBAAiBV,EACjBW,eAAgBX,EAChBY,mBAAoBZ,IACpBa,EAAYL,EAAG,GAAIM,EAAeN,EAAG,GACrCO,EAAeX,EAAMW,aAAcC,EAAWZ,EAAMY,SAAUC,EAAYb,EAAMa,UAAWC,EAAkBd,EAAMc,gBAAiBC,EAAUf,EAAMe,QAASC,EAAShB,EAAMgB,OAAQC,EAAUjB,EAAMiB,QAASC,EAAclB,EAAMkB,YAAaC,EAAQnB,EAAMmB,MAAOC,EAAiBpB,EAAMoB,eAAgBC,EAAKrB,EAAMsB,GAAIC,OAAmB,IAAPF,EAAgB,MAAQA,EAAIG,EAAUxB,EAAMwB,QAASC,EAAOC,EAAO1B,EAAO,CAAC,eAAgB,WAAY,YAAa,kBAAmB,UAAW,SAAU,UAAW,cAAe,QAAS,iBAAkB,KAAM,YAC5hB2B,EAAUV,EACVW,EAAeC,EAAa,CAAC3B,EAAKD,IAClC6B,EAAiBC,EAASA,EAAS,CAAE,EAAEN,GAAOhB,GAClD,OAAQX,EAAMkC,cAAclC,EAAMmC,SAAU,KACxClB,GAAYjB,EAAMkC,cAAcL,EAAS,CAAEV,QAASiB,EAAWpB,gBAAiBA,EAAiBE,OAAQA,EAAQE,YAAaA,EAAaC,MAAOA,EAAOT,aAAcA,EAAcU,iBAAkBA,EAAgBe,QAASjC,EAAKsB,QAASA,IAC9Ob,EAAgBb,EAAMsC,aAAatC,EAAMuC,SAASC,KAAK1B,GAAWmB,EAASA,EAAS,CAAE,EAAED,GAAiB,CAAE5B,IAAK0B,KAAqB9B,EAAMkC,cAAcT,EAAWQ,EAAS,CAAA,EAAID,EAAgB,CAAEjB,UAAWA,EAAWX,IAAK0B,IAAiBhB,GACvP,IACAf,EAAa0C,aAAe,CACxBxB,SAAS,EACTD,iBAAiB,EACjBK,OAAO,GAEXtB,EAAa2C,WAAa,CACtBC,UAAWC,EACXC,UAAWC"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=!1;if("undefined"!=typeof window)try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}var n=!!e&&{passive:!1};export{n as nonPassive};
|
2
|
-
//# sourceMappingURL=aggresiveCapture.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"aggresiveCapture.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","window","options","Object","defineProperty","get","addEventListener","removeEventListener","err","nonPassive","passive"],"mappings":"AAAA,IAAIA,GAAmB,EACvB,GAAsB,oBAAXC,OACP,IACI,IAAIC,EAAUC,OAAOC,eAAe,CAAA,EAAI,UAAW,CAC/CC,IAAK,WAED,OADAL,GAAmB,GACZ,CACV,IAGLC,OAAOK,iBAAiB,OAAQJ,EAASA,GAEzCD,OAAOM,oBAAoB,OAAQL,EAASA,EAC/C,CACD,MAAOM,GACHR,GAAmB,CACtB,CAEK,IAACS,IAAaT,GAAmB,CAAEU,SAAS"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var t=function(t,o){var n=window.getComputedStyle(t);return"hidden"!==n[o]&&!(n.overflowY===n.overflowX&&!function(t){return"TEXTAREA"===t.tagName}(t)&&"visible"===n[o])},o=function(t,o){var r=o.ownerDocument,i=o;do{if("undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),n(t,i)){var u=e(t,i);if(u[1]>u[2])return!0}i=i.parentNode}while(i&&i!==r.body);return!1},n=function(o,n){return"v"===o?function(o){return t(o,"overflowY")}(n):function(o){return t(o,"overflowX")}(n)},e=function(t,o){return"v"===t?[(n=o).scrollTop,n.scrollHeight,n.clientHeight]:function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]}(o);var n},r=function(t,o,r,i,u){var a=function(t,o){return"h"===t&&"rtl"===o?-1:1}(t,window.getComputedStyle(o).direction),c=a*i,d=r.target,f=o.contains(d),l=!1,h=c>0,v=0,w=0;do{var s=e(t,d),p=s[0],g=s[1]-s[2]-a*p;(p||g)&&n(t,d)&&(v+=g,w+=p),d=d instanceof ShadowRoot?d.host:d.parentNode}while(!f&&d!==document.body||f&&(o.contains(d)||o===d));return(h&&(u&&Math.abs(v)<1||!u&&c>v)||!h&&(u&&Math.abs(w)<1||!u&&-c>w))&&(l=!0),l};export{r as handleScroll,o as locationCouldBeScrolled};
|
2
|
-
//# sourceMappingURL=handleScroll.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"handleScroll.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];\n if (s > d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["elementCanBeScrolled","node","overflow","styles","window","getComputedStyle","overflowY","overflowX","tagName","alwaysContainsScroll","locationCouldBeScrolled","axis","ownerDocument","current","ShadowRoot","host","elementCouldBeScrolled","_a","getScrollVariables","parentNode","body","elementCouldBeVScrolled","elementCouldBeHScrolled","scrollTop","scrollHeight","clientHeight","scrollLeft","scrollWidth","clientWidth","getHScrollVariables","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","direction","getDirectionFactor","delta","target","targetInLock","contains","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","elementScroll","document","Math","abs"],"mappings":"AAAA,IAIIA,EAAuB,SAAUC,EAAMC,GACvC,IAAIC,EAASC,OAAOC,iBAAiBJ,GACrC,MAEqB,WAArBE,EAAOD,MAEDC,EAAOG,YAAcH,EAAOI,YAVX,SAAUN,GAEjC,MAAwB,aAAjBA,EAAKO,OAChB,CAOoDC,CAAqBR,IAA8B,YAArBE,EAAOD,GACzF,EAGWQ,EAA0B,SAAUC,EAAMV,GACjD,IAAIW,EAAgBX,EAAKW,cACrBC,EAAUZ,EACd,EAAG,CAMC,GAJ0B,oBAAfa,YAA8BD,aAAmBC,aACxDD,EAAUA,EAAQE,MAEHC,EAAuBL,EAAME,GAC9B,CACd,IAAII,EAAKC,EAAmBP,EAAME,GAClC,GADgDI,EAAG,GAAQA,EAAG,GAE1D,OAAO,CAEd,CACDJ,EAAUA,EAAQM,UACrB,OAAQN,GAAWA,IAAYD,EAAcQ,MAC9C,OAAO,CACX,EAiBIJ,EAAyB,SAAUL,EAAMV,GACzC,MAAgB,MAATU,EAtCmB,SAAUV,GAAQ,OAAOD,EAAqBC,EAAM,aAsCxDoB,CAAwBpB,GArCpB,SAAUA,GAAQ,OAAOD,EAAqBC,EAAM,aAqCxBqB,CAAwBrB,EAClF,EACIiB,EAAqB,SAAUP,EAAMV,GACrC,MAAgB,MAATU,EAlBA,EAFyBM,EAoBUhB,GAnBvBsB,UAA0BN,EAAGO,aAA6BP,EAAGQ,cAO1D,SAAUR,GAEhC,MAAO,CADUA,EAAGS,WAA0BT,EAAGU,YAA2BV,EAAGW,YAMnF,CAKsDC,CAAoB5B,GApBhD,IAAUgB,CAqBpC,EASWa,EAAe,SAAUnB,EAAMoB,EAAWC,EAAOC,EAAaC,GACrE,IAAIC,EATiB,SAAUxB,EAAMyB,GAMrC,MAAgB,MAATzB,GAA8B,QAAdyB,GAAuB,EAAI,CACtD,CAE0BC,CAAmB1B,EAAMP,OAAOC,iBAAiB0B,GAAWK,WAC9EE,EAAQH,EAAkBF,EAE1BM,EAASP,EAAMO,OACfC,EAAeT,EAAUU,SAASF,GAClCG,GAAqB,EACrBC,EAAkBL,EAAQ,EAC1BM,EAAkB,EAClBC,EAAqB,EACzB,EAAG,CACC,IAAI5B,EAAKC,EAAmBP,EAAM4B,GAASO,EAAW7B,EAAG,GACrD8B,EADoE9B,EAAG,GAAeA,EAAG,GACnDkB,EAAkBW,GACxDA,GAAYC,IACR/B,EAAuBL,EAAM4B,KAC7BK,GAAmBG,EACnBF,GAAsBC,GAI1BP,EADAA,aAAkBzB,WACTyB,EAAOxB,KAGPwB,EAAOpB,UAEvB,QAECqB,GAAgBD,IAAWS,SAAS5B,MAEjCoB,IAAiBT,EAAUU,SAASF,IAAWR,IAAcQ,IAUlE,OARII,IACET,GAAgBe,KAAKC,IAAIN,GAAmB,IAAQV,GAAgBI,EAAQM,KAGxED,IACJT,GAAgBe,KAAKC,IAAIL,GAAsB,IAAQX,IAAiBI,EAAQO,MAHlFH,GAAqB,GAMlBA,CACX"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"medium.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"names":["effectCar","createSidecarMedium"],"mappings":"kFACU,IAACA,EAAYC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sidecar.mjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n"],"names":["SideCar","exportSidecar","effectCar","RemoveScrollSideCar"],"mappings":"6KAGA,IAAAA,EAAeC,EAAcC,EAAWC"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as n from"react";import{styleSingleton as t}from"../../../react-style-singleton/dist/es2015/component.mjs";import{noScrollbarsClassName as o,zeroRightClassName as c,fullWidthClassName as a,removedBarSizeVariable as r}from"./constants.mjs";import{getGapWidth as i}from"./utils.mjs";var e=t(),p=function(n,t,i,e){var p=n.left,g=n.top,m=n.right,d=n.gap;return void 0===i&&(i="margin"),"\n .".concat(o," {\n overflow: hidden ").concat(e,";\n padding-right: ").concat(d,"px ").concat(e,";\n }\n body {\n overflow: hidden ").concat(e,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(e,";"),"margin"===i&&"\n padding-left: ".concat(p,"px;\n padding-top: ").concat(g,"px;\n padding-right: ").concat(m,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(d,"px ").concat(e,";\n "),"padding"===i&&"padding-right: ".concat(d,"px ").concat(e,";")].filter(Boolean).join(""),"\n }\n \n .").concat(c," {\n right: ").concat(d,"px ").concat(e,";\n }\n \n .").concat(a," {\n margin-right: ").concat(d,"px ").concat(e,";\n }\n \n .").concat(c," .").concat(c," {\n right: 0 ").concat(e,";\n }\n \n .").concat(a," .").concat(a," {\n margin-right: 0 ").concat(e,";\n }\n \n body {\n ").concat(r,": ").concat(d,"px;\n }\n")},g=function(t){var o=t.noRelative,c=t.noImportant,a=t.gapMode,r=void 0===a?"margin":a,g=n.useMemo((function(){return i(r)}),[r]);return n.createElement(e,{styles:p(g,!o,r,c?"":"!important")})};export{g as RemoveScrollBar};
|
2
|
-
//# sourceMappingURL=component.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"component.mjs","sources":["../../../../../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (props) {\n var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","concat","noScrollbarsClassName","filter","Boolean","join","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","RemoveScrollBar","props","noRelative","noImportant","React","useMemo","getGapWidth","createElement","styles"],"mappings":"gSAIA,IAAIA,EAAQC,IAIRC,EAAY,SAAUC,EAAIC,EAAeC,EAASC,GAClD,IAAIC,EAAOJ,EAAGI,KAAMC,EAAML,EAAGK,IAAKC,EAAQN,EAAGM,MAAOC,EAAMP,EAAGO,IAE7D,YADgB,IAAZL,IAAsBA,EAAU,UAC7B,QAAQM,OAAOC,EAAuB,4BAA4BD,OAAOL,EAAW,yBAAyBK,OAAOD,EAAK,OAAOC,OAAOL,EAAW,2CAA2CK,OAAOL,EAAW,8CAA8CK,OAAO,CACvQP,GAAiB,sBAAsBO,OAAOL,EAAW,KAC7C,WAAZD,GACI,uBAAuBM,OAAOJ,EAAM,0BAA0BI,OAAOH,EAAK,4BAA4BG,OAAOF,EAAO,kEAAkEE,OAAOD,EAAK,OAAOC,OAAOL,EAAW,WACnN,YAAZD,GAAyB,kBAAkBM,OAAOD,EAAK,OAAOC,OAAOL,EAAW,MAE/EO,OAAOC,SACPC,KAAK,IAAK,kBAAkBJ,OAAOK,EAAoB,mBAAmBL,OAAOD,EAAK,OAAOC,OAAOL,EAAW,mBAAmBK,OAAOM,EAAoB,0BAA0BN,OAAOD,EAAK,OAAOC,OAAOL,EAAW,mBAAmBK,OAAOK,EAAoB,MAAML,OAAOK,EAAoB,qBAAqBL,OAAOL,EAAW,mBAAmBK,OAAOM,EAAoB,MAAMN,OAAOM,EAAoB,4BAA4BN,OAAOL,EAAW,8BAA8BK,OAAOO,EAAwB,MAAMP,OAAOD,EAAK,aACviB,EAIWS,EAAkB,SAAUC,GACnC,IAAIC,EAAaD,EAAMC,WAAYC,EAAcF,EAAME,YAAanB,EAAKiB,EAAMf,QAASA,OAAiB,IAAPF,EAAgB,SAAWA,EAMzHO,EAAMa,EAAMC,SAAQ,WAAc,OAAOC,EAAYpB,EAAS,GAAI,CAACA,IACvE,OAAOkB,EAAMG,cAAc1B,EAAO,CAAE2B,OAAQzB,EAAUQ,GAAMW,EAAYhB,EAAUiB,EAA6B,GAAf,eACpG"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,EAAqB,4BACrBC,EAAqB,0BACrBC,EAAwB,0BAKxBC,EAAyB"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var n={left:0,top:0,right:0,gap:0},t=function(n){return parseInt(n||"",10)||0},i=function(i){if(void 0===i&&(i="margin"),"undefined"==typeof window)return n;var d=function(n){var i=window.getComputedStyle(document.body),d=i["padding"===n?"paddingLeft":"marginLeft"],e=i["padding"===n?"paddingTop":"marginTop"],r=i["padding"===n?"paddingRight":"marginRight"];return[t(d),t(e),t(r)]}(i),e=document.documentElement.clientWidth,r=window.innerWidth;return{left:d[0],top:d[1],right:d[2],gap:Math.max(0,r-e+d[2]-d[0])}};export{i as getGapWidth,n as zeroGap};
|
2
|
-
//# sourceMappingURL=utils.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../../../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","left","top","right","gap","parse","x","parseInt","getGapWidth","gapMode","window","offsets","cs","getComputedStyle","document","body","getOffset","documentWidth","documentElement","clientWidth","windowWidth","innerWidth","Math","max"],"mappings":"AAAU,IAACA,EAAU,CACjBC,KAAM,EACNC,IAAK,EACLC,MAAO,EACPC,IAAK,GAELC,EAAQ,SAAUC,GAAK,OAAOC,SAASD,GAAK,GAAI,KAAO,GAQhDE,EAAc,SAAUC,GAE/B,QADgB,IAAZA,IAAsBA,EAAU,UACd,oBAAXC,OACP,OAAOV,EAEX,IAAIW,EAZQ,SAAUF,GACtB,IAAIG,EAAKF,OAAOG,iBAAiBC,SAASC,MACtCd,EAAOW,EAAe,YAAZH,EAAwB,cAAgB,cAClDP,EAAMU,EAAe,YAAZH,EAAwB,aAAe,aAChDN,EAAQS,EAAe,YAAZH,EAAwB,eAAiB,eACxD,MAAO,CAACJ,EAAMJ,GAAOI,EAAMH,GAAMG,EAAMF,GAC3C,CAMkBa,CAAUP,GACpBQ,EAAgBH,SAASI,gBAAgBC,YACzCC,EAAcV,OAAOW,WACzB,MAAO,CACHpB,KAAMU,EAAQ,GACdT,IAAKS,EAAQ,GACbR,MAAOQ,EAAQ,GACfP,IAAKkB,KAAKC,IAAI,EAAGH,EAAcH,EAAgBN,EAAQ,GAAKA,EAAQ,IAE5E"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"component.mjs","sources":["../../../../../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","_a","styles","dynamic"],"mappings":"gDAOU,IAACA,EAAiB,WACxB,IAAIC,EAAWC,IAMf,OALY,SAAUC,GAClB,IAAIC,EAASD,EAAGC,OAAQC,EAAUF,EAAGE,QAErC,OADAJ,EAASG,EAAQC,GACV,IACf,CAEA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"hook.mjs","sources":["../../../../../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React","useEffect","add","remove"],"mappings":"8EAWU,IAACA,EAAqB,WAC5B,IAAIC,EAAQC,IACZ,OAAO,SAAUC,EAAQC,GACrBC,EAAMC,WAAU,WAEZ,OADAL,EAAMM,IAAIJ,GACH,WACHF,EAAMO,QACtB,CACA,GAAW,CAACL,GAAUC,GACtB,CACA"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{getNonce as e}from"../../../get-nonce/dist/es2015/index.mjs";var t=function(){var t=0,n=null;return{add:function(r){var o,d;0==t&&(n=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=e();return n&&t.setAttribute("nonce",n),t}())&&(d=r,(o=n).styleSheet?o.styleSheet.cssText=d:o.appendChild(document.createTextNode(d)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),t++},remove:function(){! --t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}};export{t as stylesheetSingleton};
|
2
|
-
//# sourceMappingURL=singleton.mjs.map
|