brd-ui-kit 0.1.57 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +2 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/chart-CgVfpT_X.cjs +63 -0
- package/dist/chart-CgVfpT_X.cjs.map +1 -0
- package/dist/chart-D15EtNmb.js +13139 -0
- package/dist/chart-D15EtNmb.js.map +1 -0
- package/dist/components/app-pagination/app-pagination.styles.d.ts +4 -3
- package/dist/components/app-sidebar/app-sidebar.styles.d.ts +5 -4
- package/dist/components/ui/badge/badge.styles.d.ts +3 -2
- package/dist/components/ui/button/button.styles.d.ts +2 -1
- package/dist/components/ui/card/card.styles.d.ts +7 -6
- package/dist/components/ui/combobox/combobox.styles.d.ts +4 -3
- package/dist/components/ui/field/field.styles.d.ts +2 -1
- package/dist/components/ui/icon/icon-dictionary.d.ts +52 -50
- package/dist/components/ui/input/input.styles.d.ts +2 -1
- package/dist/components/ui/input-group/input-group.styles.d.ts +3 -2
- package/dist/components/ui/label/label.d.ts +2 -1
- package/dist/components/ui/navigation-item/navigation-item.styles.d.ts +2 -1
- package/dist/components/ui/navigation-menu/navigation-menu.styles.d.ts +2 -1
- package/dist/components/ui/tabs/tabs.styles.d.ts +3 -2
- package/dist/components/ui/typography/typography.styles.d.ts +2 -1
- package/dist/components-app-pagination-app-pagination.js +97 -0
- package/dist/components-app-pagination-app-pagination.js.map +1 -0
- package/dist/components-app-pagination-app-pagination.styles.js +85 -0
- package/dist/components-app-pagination-app-pagination.styles.js.map +1 -0
- package/dist/components-app-pagination.js +5 -0
- package/dist/components-app-pagination.js.map +1 -0
- package/dist/components-app-sidebar-app-sidebar.js +97 -0
- package/dist/components-app-sidebar-app-sidebar.js.map +1 -0
- package/dist/components-app-sidebar-app-sidebar.styles.js +59 -0
- package/dist/components-app-sidebar-app-sidebar.styles.js.map +1 -0
- package/dist/components-app-sidebar.js +5 -0
- package/dist/components-app-sidebar.js.map +1 -0
- package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +103 -0
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -0
- package/dist/components-avatar-uploader.js +5 -0
- package/dist/components-avatar-uploader.js.map +1 -0
- package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +99 -0
- package/dist/components-basic-avatar-basic-avatar.js.map +1 -0
- package/dist/components-basic-avatar.js +5 -0
- package/dist/components-basic-avatar.js.map +1 -0
- package/dist/components-basic-chart-basic-chart.cjs +3 -1
- package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
- package/dist/components-basic-chart-basic-chart.js +5546 -0
- package/dist/components-basic-chart-basic-chart.js.map +1 -0
- package/dist/components-basic-chart.js +5 -0
- package/dist/components-basic-chart.js.map +1 -0
- package/dist/components-basic-checkbox-basic-checkbox.js +54 -0
- package/dist/components-basic-checkbox-basic-checkbox.js.map +1 -0
- package/dist/components-basic-checkbox.js +5 -0
- package/dist/components-basic-checkbox.js.map +1 -0
- package/dist/components-basic-drawer-basic-drawer.cjs +1 -1
- package/dist/components-basic-drawer-basic-drawer.cjs.map +1 -1
- package/dist/components-basic-drawer-basic-drawer.js +74 -0
- package/dist/components-basic-drawer-basic-drawer.js.map +1 -0
- package/dist/components-basic-drawer.js +5 -0
- package/dist/components-basic-drawer.js.map +1 -0
- package/dist/components-basic-modal-basic-modal.js +56 -0
- package/dist/components-basic-modal-basic-modal.js.map +1 -0
- package/dist/components-basic-modal.js +5 -0
- package/dist/components-basic-modal.js.map +1 -0
- package/dist/components-basic-select-basic-select.js +53 -0
- package/dist/components-basic-select-basic-select.js.map +1 -0
- package/dist/components-basic-select.js +5 -0
- package/dist/components-basic-select.js.map +1 -0
- package/dist/components-basic-table-basic-table.js +1961 -0
- package/dist/components-basic-table-basic-table.js.map +1 -0
- package/dist/components-basic-table.js +5 -0
- package/dist/components-basic-table.js.map +1 -0
- package/dist/components-basic-tooltip-basic-tooltip.js +61 -0
- package/dist/components-basic-tooltip-basic-tooltip.js.map +1 -0
- package/dist/components-basic-tooltip.js +5 -0
- package/dist/components-basic-tooltip.js.map +1 -0
- package/dist/components-files-uploader-files-uploader.cjs +3 -3
- package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
- package/dist/components-files-uploader-files-uploader.js +185 -0
- package/dist/components-files-uploader-files-uploader.js.map +1 -0
- package/dist/components-files-uploader.js +5 -0
- package/dist/components-files-uploader.js.map +1 -0
- package/dist/components-input-field-input-field.js +56 -0
- package/dist/components-input-field-input-field.js.map +1 -0
- package/dist/components-input-field.js +5 -0
- package/dist/components-input-field.js.map +1 -0
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +67 -0
- package/dist/components-input-password-input-password.js.map +1 -0
- package/dist/components-input-password.js +5 -0
- package/dist/components-input-password.js.map +1 -0
- package/dist/components-popover-modal-popover-modal.js +40 -0
- package/dist/components-popover-modal-popover-modal.js.map +1 -0
- package/dist/components-popover-modal.js +5 -0
- package/dist/components-popover-modal.js.map +1 -0
- package/dist/components-radio-button-radio-button.js +74 -0
- package/dist/components-radio-button-radio-button.js.map +1 -0
- package/dist/components-radio-button.js +5 -0
- package/dist/components-radio-button.js.map +1 -0
- package/dist/components-select-field-select-field.js +179 -0
- package/dist/components-select-field-select-field.js.map +1 -0
- package/dist/components-select-field.js +5 -0
- package/dist/components-select-field.js.map +1 -0
- package/dist/components-select-groups-select-groups.js +91 -0
- package/dist/components-select-groups-select-groups.js.map +1 -0
- package/dist/components-select-groups.js +5 -0
- package/dist/components-select-groups.js.map +1 -0
- package/dist/components-textarea-field-textarea-field.js +30 -0
- package/dist/components-textarea-field-textarea-field.js.map +1 -0
- package/dist/components-textarea-field.js +5 -0
- package/dist/components-textarea-field.js.map +1 -0
- package/dist/components-ui-avatar-avatar.js +149 -0
- package/dist/components-ui-avatar-avatar.js.map +1 -0
- package/dist/components-ui-avatar.js +10 -0
- package/dist/components-ui-avatar.js.map +1 -0
- package/dist/components-ui-badge-badge.js +47 -0
- package/dist/components-ui-badge-badge.js.map +1 -0
- package/dist/components-ui-badge-badge.styles.js +53 -0
- package/dist/components-ui-badge-badge.styles.js.map +1 -0
- package/dist/components-ui-badge.js +7 -0
- package/dist/components-ui-badge.js.map +1 -0
- package/dist/components-ui-button-button.js +26 -0
- package/dist/components-ui-button-button.js.map +1 -0
- package/dist/components-ui-button-button.styles.js +58 -0
- package/dist/components-ui-button-button.styles.js.map +1 -0
- package/dist/components-ui-button.js +7 -0
- package/dist/components-ui-button.js.map +1 -0
- package/dist/components-ui-card-card.js +95 -0
- package/dist/components-ui-card-card.js.map +1 -0
- package/dist/components-ui-card-card.styles.js +55 -0
- package/dist/components-ui-card-card.styles.js.map +1 -0
- package/dist/components-ui-card.js +10 -0
- package/dist/components-ui-card.js.map +1 -0
- package/dist/components-ui-chart-chart.cjs +1 -21
- package/dist/components-ui-chart-chart.cjs.map +1 -1
- package/dist/components-ui-chart-chart.js +13 -0
- package/dist/components-ui-chart-chart.js.map +1 -0
- package/dist/components-ui-chart.cjs +1 -1
- package/dist/components-ui-chart.js +10 -0
- package/dist/components-ui-chart.js.map +1 -0
- package/dist/components-ui-checkbox-checkbox.js +26 -0
- package/dist/components-ui-checkbox-checkbox.js.map +1 -0
- package/dist/components-ui-checkbox-checkbox.styles.js +20 -0
- package/dist/components-ui-checkbox-checkbox.styles.js.map +1 -0
- package/dist/components-ui-checkbox.js +5 -0
- package/dist/components-ui-checkbox.js.map +1 -0
- package/dist/components-ui-combobox-combobox.cjs +5 -5
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +7155 -0
- package/dist/components-ui-combobox-combobox.js.map +1 -0
- package/dist/components-ui-combobox-combobox.styles.js +93 -0
- package/dist/components-ui-combobox-combobox.styles.js.map +1 -0
- package/dist/components-ui-combobox.js +20 -0
- package/dist/components-ui-combobox.js.map +1 -0
- package/dist/components-ui-dialog-dialog.js +88 -0
- package/dist/components-ui-dialog-dialog.js.map +1 -0
- package/dist/components-ui-dialog-dialog.styles.js +34 -0
- package/dist/components-ui-dialog-dialog.styles.js.map +1 -0
- package/dist/components-ui-dialog.js +14 -0
- package/dist/components-ui-dialog.js.map +1 -0
- package/dist/components-ui-drawer-drawer.cjs +1 -1
- package/dist/components-ui-drawer-drawer.cjs.map +1 -1
- package/dist/components-ui-drawer-drawer.js +177 -0
- package/dist/components-ui-drawer-drawer.js.map +1 -0
- package/dist/components-ui-drawer.js +14 -0
- package/dist/components-ui-drawer.js.map +1 -0
- package/dist/components-ui-field-field.js +155 -0
- package/dist/components-ui-field-field.js.map +1 -0
- package/dist/components-ui-field-field.styles.js +59 -0
- package/dist/components-ui-field-field.styles.js.map +1 -0
- package/dist/components-ui-field.js +14 -0
- package/dist/components-ui-field.js.map +1 -0
- package/dist/components-ui-icon-icon-dictionary.js +60 -0
- package/dist/components-ui-icon-icon-dictionary.js.map +1 -0
- package/dist/components-ui-icon-icon.js +40 -0
- package/dist/components-ui-icon-icon.js.map +1 -0
- package/dist/components-ui-icon-overrides.js +65 -0
- package/dist/components-ui-icon-overrides.js.map +1 -0
- package/dist/components-ui-icon.js +5 -0
- package/dist/components-ui-icon.js.map +1 -0
- package/dist/components-ui-input-group-input-group.js +129 -0
- package/dist/components-ui-input-group-input-group.js.map +1 -0
- package/dist/components-ui-input-group-input-group.styles.js +43 -0
- package/dist/components-ui-input-group-input-group.styles.js.map +1 -0
- package/dist/components-ui-input-group.js +10 -0
- package/dist/components-ui-input-group.js.map +1 -0
- package/dist/components-ui-input-input.js +18 -0
- package/dist/components-ui-input-input.js.map +1 -0
- package/dist/components-ui-input-input.styles.js +31 -0
- package/dist/components-ui-input-input.styles.js.map +1 -0
- package/dist/components-ui-input.js +5 -0
- package/dist/components-ui-input.js.map +1 -0
- package/dist/components-ui-label-label.js +19 -0
- package/dist/components-ui-label-label.js.map +1 -0
- package/dist/components-ui-label.js +5 -0
- package/dist/components-ui-label.js.map +1 -0
- package/dist/components-ui-navigation-item-navigation-item.js +66 -0
- package/dist/components-ui-navigation-item-navigation-item.js.map +1 -0
- package/dist/components-ui-navigation-item-navigation-item.styles.js +32 -0
- package/dist/components-ui-navigation-item-navigation-item.styles.js.map +1 -0
- package/dist/components-ui-navigation-item.js +5 -0
- package/dist/components-ui-navigation-item.js.map +1 -0
- package/dist/components-ui-navigation-menu-navigation-menu.js +25 -0
- package/dist/components-ui-navigation-menu-navigation-menu.js.map +1 -0
- package/dist/components-ui-navigation-menu-navigation-menu.styles.js +23 -0
- package/dist/components-ui-navigation-menu-navigation-menu.styles.js.map +1 -0
- package/dist/components-ui-navigation-menu.js +5 -0
- package/dist/components-ui-navigation-menu.js.map +1 -0
- package/dist/components-ui-pagination-pagination.js +110 -0
- package/dist/components-ui-pagination-pagination.js.map +1 -0
- package/dist/components-ui-pagination.js +11 -0
- package/dist/components-ui-pagination.js.map +1 -0
- package/dist/components-ui-popover-popover.js +117 -0
- package/dist/components-ui-popover-popover.js.map +1 -0
- package/dist/components-ui-popover-popover.styles.js +13 -0
- package/dist/components-ui-popover-popover.styles.js.map +1 -0
- package/dist/components-ui-popover.js +11 -0
- package/dist/components-ui-popover.js.map +1 -0
- package/dist/components-ui-progress-progress.js +49 -0
- package/dist/components-ui-progress-progress.js.map +1 -0
- package/dist/components-ui-progress.js +5 -0
- package/dist/components-ui-progress.js.map +1 -0
- package/dist/components-ui-radio-group-radio-group.js +29 -0
- package/dist/components-ui-radio-group-radio-group.js.map +1 -0
- package/dist/components-ui-radio-group-radio-group.styles.js +23 -0
- package/dist/components-ui-radio-group-radio-group.styles.js.map +1 -0
- package/dist/components-ui-radio-group.js +6 -0
- package/dist/components-ui-radio-group.js.map +1 -0
- package/dist/components-ui-select-select.js +194 -0
- package/dist/components-ui-select-select.js.map +1 -0
- package/dist/components-ui-select-select.styles.js +43 -0
- package/dist/components-ui-select-select.styles.js.map +1 -0
- package/dist/components-ui-select.js +14 -0
- package/dist/components-ui-select.js.map +1 -0
- package/dist/components-ui-separator-separator.js +29 -0
- package/dist/components-ui-separator-separator.js.map +1 -0
- package/dist/components-ui-separator.js +5 -0
- package/dist/components-ui-separator.js.map +1 -0
- package/dist/components-ui-sonner-sonner.cjs +1 -1
- package/dist/components-ui-sonner-sonner.cjs.map +1 -1
- package/dist/components-ui-sonner-sonner.js +72 -0
- package/dist/components-ui-sonner-sonner.js.map +1 -0
- package/dist/components-ui-sonner-sonner.styles.js +42 -0
- package/dist/components-ui-sonner-sonner.styles.js.map +1 -0
- package/dist/components-ui-sonner.cjs +1 -1
- package/dist/components-ui-sonner.js +7 -0
- package/dist/components-ui-sonner.js.map +1 -0
- package/dist/components-ui-switch-switch.js +19 -0
- package/dist/components-ui-switch-switch.js.map +1 -0
- package/dist/components-ui-switch-switch.styles.js +22 -0
- package/dist/components-ui-switch-switch.styles.js.map +1 -0
- package/dist/components-ui-switch.js +5 -0
- package/dist/components-ui-switch.js.map +1 -0
- package/dist/components-ui-table-table.js +130 -0
- package/dist/components-ui-table-table.js.map +1 -0
- package/dist/components-ui-table.js +12 -0
- package/dist/components-ui-table.js.map +1 -0
- package/dist/components-ui-tabs-tabs.js +62 -0
- package/dist/components-ui-tabs-tabs.js.map +1 -0
- package/dist/components-ui-tabs-tabs.styles.js +64 -0
- package/dist/components-ui-tabs-tabs.styles.js.map +1 -0
- package/dist/components-ui-tabs.js +8 -0
- package/dist/components-ui-tabs.js.map +1 -0
- package/dist/components-ui-textarea-textarea.js +16 -0
- package/dist/components-ui-textarea-textarea.js.map +1 -0
- package/dist/components-ui-textarea-textarea.styles.js +13 -0
- package/dist/components-ui-textarea-textarea.styles.js.map +1 -0
- package/dist/components-ui-textarea.js +5 -0
- package/dist/components-ui-textarea.js.map +1 -0
- package/dist/components-ui-tooltip-tooltip.js +28 -0
- package/dist/components-ui-tooltip-tooltip.js.map +1 -0
- package/dist/components-ui-tooltip-tooltip.styles.js +11 -0
- package/dist/components-ui-tooltip-tooltip.styles.js.map +1 -0
- package/dist/components-ui-tooltip.js +9 -0
- package/dist/components-ui-tooltip.js.map +1 -0
- package/dist/components-ui-typography-typography.js +19 -0
- package/dist/components-ui-typography-typography.js.map +1 -0
- package/dist/components-ui-typography-typography.styles.js +85 -0
- package/dist/components-ui-typography-typography.styles.js.map +1 -0
- package/dist/components-ui-typography.js +9 -0
- package/dist/components-ui-typography.js.map +1 -0
- package/dist/hooks-usePopupControls.js +14 -0
- package/dist/hooks-usePopupControls.js.map +1 -0
- package/dist/index-B5Id-jNC.js +2830 -0
- package/dist/index-B5Id-jNC.js.map +1 -0
- package/dist/index-C4iHL8Gs.js +776 -0
- package/dist/index-C4iHL8Gs.js.map +1 -0
- package/dist/index-C6N9aMq_.js +1038 -0
- package/dist/index-C6N9aMq_.js.map +1 -0
- package/dist/index-D8y9Cogu.cjs +7 -0
- package/dist/index-D8y9Cogu.cjs.map +1 -0
- package/dist/index-DGxwh2Ms.cjs +2 -0
- package/dist/index-DGxwh2Ms.cjs.map +1 -0
- package/dist/index-fTTv8YY8.cjs +4 -0
- package/dist/index-fTTv8YY8.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +194 -0
- package/dist/index.js.map +1 -0
- package/dist/lib-utils.js +16 -0
- package/dist/lib-utils.js.map +1 -0
- package/dist/lodash-FemA_LCk.js +3688 -0
- package/dist/lodash-FemA_LCk.js.map +1 -0
- package/dist/lodash-kqhtUJfz.cjs +21 -0
- package/dist/lodash-kqhtUJfz.cjs.map +1 -0
- package/dist/types-types.js +2 -0
- package/dist/types-types.js.map +1 -0
- package/dist/utils-helpers.js +17 -0
- package/dist/utils-helpers.js.map +1 -0
- package/dist/with-selector-CNcGWQ-h.js +534 -0
- package/dist/with-selector-CNcGWQ-h.js.map +1 -0
- package/dist/with-selector-DSbfqgSY.cjs +8 -0
- package/dist/with-selector-DSbfqgSY.cjs.map +1 -0
- package/package.json +87 -625
- package/.githooks/pre-commit +0 -19
- package/.prettierignore +0 -13
- package/components.json +0 -25
- package/prettier.config.mjs +0 -28
- package/public/vite.svg +0 -1
- package/scripts/generate-exports.js +0 -76
- package/scripts/get-entry-points.ts +0 -102
- package/tsconfig.app.json +0 -40
- package/tsconfig.node.json +0 -26
- package/tsconfig.storybook.json +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const M = (f, t, e) => {
|
|
2
|
+
if (e <= f)
|
|
3
|
+
return Array.from({ length: e }, (i, o) => o + 1);
|
|
4
|
+
const u = Math.floor((f - 2) / 2);
|
|
5
|
+
let s = Math.max(t - u, 2), n = Math.min(t + u, e - 1);
|
|
6
|
+
const r = n - s + 1, p = f - 2;
|
|
7
|
+
r < p && (s === 2 ? n = Math.min(n + (p - r), e - 1) : n === e - 1 && (s = Math.max(s - (p - r), 2)));
|
|
8
|
+
const h = [];
|
|
9
|
+
h.push(1), s > 2 && h.push("ellipsis-start");
|
|
10
|
+
for (let i = s; i <= n; i++)
|
|
11
|
+
h.push(i);
|
|
12
|
+
return n < e - 1 && h.push("ellipsis-end"), e > 1 && h.push(e), h;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
M as getPageNumbers
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=utils-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-helpers.js","sources":["../src/utils/helpers.ts"],"sourcesContent":["export type PageItem = number | \"ellipsis-start\" | \"ellipsis-end\";\n\nexport const getPageNumbers = (\n maxVisible: number,\n current: number,\n total: number,\n): PageItem[] => {\n if (total <= maxVisible) {\n return Array.from({ length: total }, (_, i) => i + 1);\n }\n\n const half = Math.floor((maxVisible - 2) / 2);\n let start = Math.max(current - half, 2);\n let end = Math.min(current + half, total - 1);\n\n const visibleCount = end - start + 1;\n const neededCount = maxVisible - 2;\n\n if (visibleCount < neededCount) {\n if (start === 2) {\n end = Math.min(end + (neededCount - visibleCount), total - 1);\n } else if (end === total - 1) {\n start = Math.max(start - (neededCount - visibleCount), 2);\n }\n }\n\n const pages: PageItem[] = [];\n pages.push(1);\n\n if (start > 2) {\n pages.push(\"ellipsis-start\");\n }\n\n for (let i = start; i <= end; i++) {\n pages.push(i);\n }\n\n if (end < total - 1) {\n pages.push(\"ellipsis-end\");\n }\n\n if (total > 1) {\n pages.push(total);\n }\n\n return pages;\n};\n"],"names":["getPageNumbers","maxVisible","current","total","_","i","half","start","end","visibleCount","neededCount","pages"],"mappings":"AAEO,MAAMA,IAAiB,CAC5BC,GACAC,GACAC,MACe;AACf,MAAIA,KAASF;AACX,WAAO,MAAM,KAAK,EAAE,QAAQE,KAAS,CAACC,GAAGC,MAAMA,IAAI,CAAC;AAGtD,QAAMC,IAAO,KAAK,OAAOL,IAAa,KAAK,CAAC;AAC5C,MAAIM,IAAQ,KAAK,IAAIL,IAAUI,GAAM,CAAC,GAClCE,IAAM,KAAK,IAAIN,IAAUI,GAAMH,IAAQ,CAAC;AAE5C,QAAMM,IAAeD,IAAMD,IAAQ,GAC7BG,IAAcT,IAAa;AAEjC,EAAIQ,IAAeC,MACbH,MAAU,IACZC,IAAM,KAAK,IAAIA,KAAOE,IAAcD,IAAeN,IAAQ,CAAC,IACnDK,MAAQL,IAAQ,MACzBI,IAAQ,KAAK,IAAIA,KAASG,IAAcD,IAAe,CAAC;AAI5D,QAAME,IAAoB,CAAA;AAC1B,EAAAA,EAAM,KAAK,CAAC,GAERJ,IAAQ,KACVI,EAAM,KAAK,gBAAgB;AAG7B,WAAS,IAAIJ,GAAO,KAAKC,GAAK;AAC5B,IAAAG,EAAM,KAAK,CAAC;AAGd,SAAIH,IAAML,IAAQ,KAChBQ,EAAM,KAAK,cAAc,GAGvBR,IAAQ,KACVQ,EAAM,KAAKR,CAAK,GAGXQ;AACT;"}
|
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
import A from "react";
|
|
2
|
+
var $ = (e, n, t) => {
|
|
3
|
+
if (n.length === 1 && n[0] === t) {
|
|
4
|
+
let c = !1;
|
|
5
|
+
try {
|
|
6
|
+
const a = {};
|
|
7
|
+
e(a) === a && (c = !0);
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
if (c) {
|
|
11
|
+
let a;
|
|
12
|
+
try {
|
|
13
|
+
throw new Error();
|
|
14
|
+
} catch (d) {
|
|
15
|
+
({ stack: a } = d);
|
|
16
|
+
}
|
|
17
|
+
console.warn(
|
|
18
|
+
`The result function returned its own inputs without modification. e.g
|
|
19
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
20
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
21
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
|
|
22
|
+
{ stack: a }
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}, P = (e, n, t) => {
|
|
27
|
+
const { memoize: c, memoizeOptions: a } = n, { inputSelectorResults: d, inputSelectorResultsCopy: v } = e, s = c(() => ({}), ...a);
|
|
28
|
+
if (!(s.apply(null, d) === s.apply(null, v))) {
|
|
29
|
+
let o;
|
|
30
|
+
try {
|
|
31
|
+
throw new Error();
|
|
32
|
+
} catch (i) {
|
|
33
|
+
({ stack: o } = i);
|
|
34
|
+
}
|
|
35
|
+
console.warn(
|
|
36
|
+
`An input selector returned a different result when passed same arguments.
|
|
37
|
+
This means your output selector will likely run more frequently than intended.
|
|
38
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
39
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
|
|
40
|
+
{
|
|
41
|
+
arguments: t,
|
|
42
|
+
firstInputs: d,
|
|
43
|
+
secondInputs: v,
|
|
44
|
+
stack: o
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}, Y = {
|
|
49
|
+
inputStabilityCheck: "once",
|
|
50
|
+
identityFunctionCheck: "once"
|
|
51
|
+
}, L = /* @__PURE__ */ Symbol("NOT_FOUND");
|
|
52
|
+
function J(e, n = `expected a function, instead received ${typeof e}`) {
|
|
53
|
+
if (typeof e != "function")
|
|
54
|
+
throw new TypeError(n);
|
|
55
|
+
}
|
|
56
|
+
function Q(e, n = `expected an object, instead received ${typeof e}`) {
|
|
57
|
+
if (typeof e != "object")
|
|
58
|
+
throw new TypeError(n);
|
|
59
|
+
}
|
|
60
|
+
function X(e, n = "expected all items to be functions, instead received the following types: ") {
|
|
61
|
+
if (!e.every((t) => typeof t == "function")) {
|
|
62
|
+
const t = e.map(
|
|
63
|
+
(c) => typeof c == "function" ? `function ${c.name || "unnamed"}()` : typeof c
|
|
64
|
+
).join(", ");
|
|
65
|
+
throw new TypeError(`${n}[${t}]`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var j = (e) => Array.isArray(e) ? e : [e];
|
|
69
|
+
function Z(e) {
|
|
70
|
+
const n = Array.isArray(e[0]) ? e[0] : e;
|
|
71
|
+
return X(
|
|
72
|
+
n,
|
|
73
|
+
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
74
|
+
), n;
|
|
75
|
+
}
|
|
76
|
+
function N(e, n) {
|
|
77
|
+
const t = [], { length: c } = e;
|
|
78
|
+
for (let a = 0; a < c; a++)
|
|
79
|
+
t.push(e[a].apply(null, n));
|
|
80
|
+
return t;
|
|
81
|
+
}
|
|
82
|
+
var ee = (e, n) => {
|
|
83
|
+
const { identityFunctionCheck: t, inputStabilityCheck: c } = {
|
|
84
|
+
...Y,
|
|
85
|
+
...n
|
|
86
|
+
};
|
|
87
|
+
return {
|
|
88
|
+
identityFunctionCheck: {
|
|
89
|
+
shouldRun: t === "always" || t === "once" && e,
|
|
90
|
+
run: $
|
|
91
|
+
},
|
|
92
|
+
inputStabilityCheck: {
|
|
93
|
+
shouldRun: c === "always" || c === "once" && e,
|
|
94
|
+
run: P
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
function te(e) {
|
|
99
|
+
let n;
|
|
100
|
+
return {
|
|
101
|
+
get(t) {
|
|
102
|
+
return n && e(n.key, t) ? n.value : L;
|
|
103
|
+
},
|
|
104
|
+
put(t, c) {
|
|
105
|
+
n = { key: t, value: c };
|
|
106
|
+
},
|
|
107
|
+
getEntries() {
|
|
108
|
+
return n ? [n] : [];
|
|
109
|
+
},
|
|
110
|
+
clear() {
|
|
111
|
+
n = void 0;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function ne(e, n) {
|
|
116
|
+
let t = [];
|
|
117
|
+
function c(s) {
|
|
118
|
+
const y = t.findIndex((o) => n(s, o.key));
|
|
119
|
+
if (y > -1) {
|
|
120
|
+
const o = t[y];
|
|
121
|
+
return y > 0 && (t.splice(y, 1), t.unshift(o)), o.value;
|
|
122
|
+
}
|
|
123
|
+
return L;
|
|
124
|
+
}
|
|
125
|
+
function a(s, y) {
|
|
126
|
+
c(s) === L && (t.unshift({ key: s, value: y }), t.length > e && t.pop());
|
|
127
|
+
}
|
|
128
|
+
function d() {
|
|
129
|
+
return t;
|
|
130
|
+
}
|
|
131
|
+
function v() {
|
|
132
|
+
t = [];
|
|
133
|
+
}
|
|
134
|
+
return { get: c, put: a, getEntries: d, clear: v };
|
|
135
|
+
}
|
|
136
|
+
var re = (e, n) => e === n;
|
|
137
|
+
function oe(e) {
|
|
138
|
+
return function(t, c) {
|
|
139
|
+
if (t === null || c === null || t.length !== c.length)
|
|
140
|
+
return !1;
|
|
141
|
+
const { length: a } = t;
|
|
142
|
+
for (let d = 0; d < a; d++)
|
|
143
|
+
if (!e(t[d], c[d]))
|
|
144
|
+
return !1;
|
|
145
|
+
return !0;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function he(e, n) {
|
|
149
|
+
const t = typeof n == "object" ? n : { equalityCheck: n }, {
|
|
150
|
+
equalityCheck: c = re,
|
|
151
|
+
maxSize: a = 1,
|
|
152
|
+
resultEqualityCheck: d
|
|
153
|
+
} = t, v = oe(c);
|
|
154
|
+
let s = 0;
|
|
155
|
+
const y = a <= 1 ? te(v) : ne(a, v);
|
|
156
|
+
function o() {
|
|
157
|
+
let i = y.get(arguments);
|
|
158
|
+
if (i === L) {
|
|
159
|
+
if (i = e.apply(null, arguments), s++, d) {
|
|
160
|
+
const p = y.getEntries().find(
|
|
161
|
+
(r) => d(r.value, i)
|
|
162
|
+
);
|
|
163
|
+
p && (i = p.value, s !== 0 && s--);
|
|
164
|
+
}
|
|
165
|
+
y.put(arguments, i);
|
|
166
|
+
}
|
|
167
|
+
return i;
|
|
168
|
+
}
|
|
169
|
+
return o.clearCache = () => {
|
|
170
|
+
y.clear(), o.resetResultsCount();
|
|
171
|
+
}, o.resultsCount = () => s, o.resetResultsCount = () => {
|
|
172
|
+
s = 0;
|
|
173
|
+
}, o;
|
|
174
|
+
}
|
|
175
|
+
var ue = class {
|
|
176
|
+
constructor(e) {
|
|
177
|
+
this.value = e;
|
|
178
|
+
}
|
|
179
|
+
deref() {
|
|
180
|
+
return this.value;
|
|
181
|
+
}
|
|
182
|
+
}, ie = typeof WeakRef < "u" ? WeakRef : ue, se = 0, z = 1;
|
|
183
|
+
function w() {
|
|
184
|
+
return {
|
|
185
|
+
s: se,
|
|
186
|
+
v: void 0,
|
|
187
|
+
o: null,
|
|
188
|
+
p: null
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function q(e, n = {}) {
|
|
192
|
+
let t = w();
|
|
193
|
+
const { resultEqualityCheck: c } = n;
|
|
194
|
+
let a, d = 0;
|
|
195
|
+
function v() {
|
|
196
|
+
let s = t;
|
|
197
|
+
const { length: y } = arguments;
|
|
198
|
+
for (let l = 0, p = y; l < p; l++) {
|
|
199
|
+
const r = arguments[l];
|
|
200
|
+
if (typeof r == "function" || typeof r == "object" && r !== null) {
|
|
201
|
+
let u = s.o;
|
|
202
|
+
u === null && (s.o = u = /* @__PURE__ */ new WeakMap());
|
|
203
|
+
const f = u.get(r);
|
|
204
|
+
f === void 0 ? (s = w(), u.set(r, s)) : s = f;
|
|
205
|
+
} else {
|
|
206
|
+
let u = s.p;
|
|
207
|
+
u === null && (s.p = u = /* @__PURE__ */ new Map());
|
|
208
|
+
const f = u.get(r);
|
|
209
|
+
f === void 0 ? (s = w(), u.set(r, s)) : s = f;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const o = s;
|
|
213
|
+
let i;
|
|
214
|
+
if (s.s === z)
|
|
215
|
+
i = s.v;
|
|
216
|
+
else if (i = e.apply(null, arguments), d++, c) {
|
|
217
|
+
const l = a?.deref?.() ?? a;
|
|
218
|
+
l != null && c(l, i) && (i = l, d !== 0 && d--), a = typeof i == "object" && i !== null || typeof i == "function" ? new ie(i) : i;
|
|
219
|
+
}
|
|
220
|
+
return o.s = z, o.v = i, i;
|
|
221
|
+
}
|
|
222
|
+
return v.clearCache = () => {
|
|
223
|
+
t = w(), v.resetResultsCount();
|
|
224
|
+
}, v.resultsCount = () => d, v.resetResultsCount = () => {
|
|
225
|
+
d = 0;
|
|
226
|
+
}, v;
|
|
227
|
+
}
|
|
228
|
+
function ce(e, ...n) {
|
|
229
|
+
const t = typeof e == "function" ? {
|
|
230
|
+
memoize: e,
|
|
231
|
+
memoizeOptions: n
|
|
232
|
+
} : e, c = (...a) => {
|
|
233
|
+
let d = 0, v = 0, s, y = {}, o = a.pop();
|
|
234
|
+
typeof o == "object" && (y = o, o = a.pop()), J(
|
|
235
|
+
o,
|
|
236
|
+
`createSelector expects an output function after the inputs, but received: [${typeof o}]`
|
|
237
|
+
);
|
|
238
|
+
const i = {
|
|
239
|
+
...t,
|
|
240
|
+
...y
|
|
241
|
+
}, {
|
|
242
|
+
memoize: l,
|
|
243
|
+
memoizeOptions: p = [],
|
|
244
|
+
argsMemoize: r = q,
|
|
245
|
+
argsMemoizeOptions: u = [],
|
|
246
|
+
devModeChecks: f = {}
|
|
247
|
+
} = i, m = j(p), S = j(u), E = Z(a), R = l(function() {
|
|
248
|
+
return d++, o.apply(
|
|
249
|
+
null,
|
|
250
|
+
arguments
|
|
251
|
+
);
|
|
252
|
+
}, ...m);
|
|
253
|
+
let O = !0;
|
|
254
|
+
const C = r(function() {
|
|
255
|
+
v++;
|
|
256
|
+
const _ = N(
|
|
257
|
+
E,
|
|
258
|
+
arguments
|
|
259
|
+
);
|
|
260
|
+
if (s = R.apply(null, _), process.env.NODE_ENV !== "production") {
|
|
261
|
+
const { identityFunctionCheck: g, inputStabilityCheck: M } = ee(O, f);
|
|
262
|
+
if (g.shouldRun && g.run(
|
|
263
|
+
o,
|
|
264
|
+
_,
|
|
265
|
+
s
|
|
266
|
+
), M.shouldRun) {
|
|
267
|
+
const U = N(
|
|
268
|
+
E,
|
|
269
|
+
arguments
|
|
270
|
+
);
|
|
271
|
+
M.run(
|
|
272
|
+
{ inputSelectorResults: _, inputSelectorResultsCopy: U },
|
|
273
|
+
{ memoize: l, memoizeOptions: m },
|
|
274
|
+
arguments
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
O && (O = !1);
|
|
278
|
+
}
|
|
279
|
+
return s;
|
|
280
|
+
}, ...S);
|
|
281
|
+
return Object.assign(C, {
|
|
282
|
+
resultFunc: o,
|
|
283
|
+
memoizedResultFunc: R,
|
|
284
|
+
dependencies: E,
|
|
285
|
+
dependencyRecomputations: () => v,
|
|
286
|
+
resetDependencyRecomputations: () => {
|
|
287
|
+
v = 0;
|
|
288
|
+
},
|
|
289
|
+
lastResult: () => s,
|
|
290
|
+
recomputations: () => d,
|
|
291
|
+
resetRecomputations: () => {
|
|
292
|
+
d = 0;
|
|
293
|
+
},
|
|
294
|
+
memoize: l,
|
|
295
|
+
argsMemoize: r
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
return Object.assign(c, {
|
|
299
|
+
withTypes: () => c
|
|
300
|
+
}), c;
|
|
301
|
+
}
|
|
302
|
+
var ae = /* @__PURE__ */ ce(q), le = Object.assign(
|
|
303
|
+
(e, n = ae) => {
|
|
304
|
+
Q(
|
|
305
|
+
e,
|
|
306
|
+
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
307
|
+
);
|
|
308
|
+
const t = Object.keys(e), c = t.map(
|
|
309
|
+
(d) => e[d]
|
|
310
|
+
);
|
|
311
|
+
return n(
|
|
312
|
+
c,
|
|
313
|
+
(...d) => d.reduce((v, s, y) => (v[t[y]] = s, v), {})
|
|
314
|
+
);
|
|
315
|
+
},
|
|
316
|
+
{ withTypes: () => le }
|
|
317
|
+
), b = { exports: {} }, D = {};
|
|
318
|
+
var G;
|
|
319
|
+
function fe() {
|
|
320
|
+
if (G) return D;
|
|
321
|
+
G = 1;
|
|
322
|
+
var e = A;
|
|
323
|
+
function n(l, p) {
|
|
324
|
+
return l === p && (l !== 0 || 1 / l === 1 / p) || l !== l && p !== p;
|
|
325
|
+
}
|
|
326
|
+
var t = typeof Object.is == "function" ? Object.is : n, c = e.useState, a = e.useEffect, d = e.useLayoutEffect, v = e.useDebugValue;
|
|
327
|
+
function s(l, p) {
|
|
328
|
+
var r = p(), u = c({ inst: { value: r, getSnapshot: p } }), f = u[0].inst, m = u[1];
|
|
329
|
+
return d(
|
|
330
|
+
function() {
|
|
331
|
+
f.value = r, f.getSnapshot = p, y(f) && m({ inst: f });
|
|
332
|
+
},
|
|
333
|
+
[l, r, p]
|
|
334
|
+
), a(
|
|
335
|
+
function() {
|
|
336
|
+
return y(f) && m({ inst: f }), l(function() {
|
|
337
|
+
y(f) && m({ inst: f });
|
|
338
|
+
});
|
|
339
|
+
},
|
|
340
|
+
[l]
|
|
341
|
+
), v(r), r;
|
|
342
|
+
}
|
|
343
|
+
function y(l) {
|
|
344
|
+
var p = l.getSnapshot;
|
|
345
|
+
l = l.value;
|
|
346
|
+
try {
|
|
347
|
+
var r = p();
|
|
348
|
+
return !t(l, r);
|
|
349
|
+
} catch {
|
|
350
|
+
return !0;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function o(l, p) {
|
|
354
|
+
return p();
|
|
355
|
+
}
|
|
356
|
+
var i = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : s;
|
|
357
|
+
return D.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : i, D;
|
|
358
|
+
}
|
|
359
|
+
var I = {};
|
|
360
|
+
var W;
|
|
361
|
+
function de() {
|
|
362
|
+
return W || (W = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
363
|
+
function e(r, u) {
|
|
364
|
+
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
365
|
+
}
|
|
366
|
+
function n(r, u) {
|
|
367
|
+
i || a.startTransition === void 0 || (i = !0, console.error(
|
|
368
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
369
|
+
));
|
|
370
|
+
var f = u();
|
|
371
|
+
if (!l) {
|
|
372
|
+
var m = u();
|
|
373
|
+
d(f, m) || (console.error(
|
|
374
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
375
|
+
), l = !0);
|
|
376
|
+
}
|
|
377
|
+
m = v({
|
|
378
|
+
inst: { value: f, getSnapshot: u }
|
|
379
|
+
});
|
|
380
|
+
var S = m[0].inst, E = m[1];
|
|
381
|
+
return y(
|
|
382
|
+
function() {
|
|
383
|
+
S.value = f, S.getSnapshot = u, t(S) && E({ inst: S });
|
|
384
|
+
},
|
|
385
|
+
[r, f, u]
|
|
386
|
+
), s(
|
|
387
|
+
function() {
|
|
388
|
+
return t(S) && E({ inst: S }), r(function() {
|
|
389
|
+
t(S) && E({ inst: S });
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
[r]
|
|
393
|
+
), o(f), f;
|
|
394
|
+
}
|
|
395
|
+
function t(r) {
|
|
396
|
+
var u = r.getSnapshot;
|
|
397
|
+
r = r.value;
|
|
398
|
+
try {
|
|
399
|
+
var f = u();
|
|
400
|
+
return !d(r, f);
|
|
401
|
+
} catch {
|
|
402
|
+
return !0;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function c(r, u) {
|
|
406
|
+
return u();
|
|
407
|
+
}
|
|
408
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
409
|
+
var a = A, d = typeof Object.is == "function" ? Object.is : e, v = a.useState, s = a.useEffect, y = a.useLayoutEffect, o = a.useDebugValue, i = !1, l = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : n;
|
|
410
|
+
I.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
411
|
+
})()), I;
|
|
412
|
+
}
|
|
413
|
+
var x;
|
|
414
|
+
function F() {
|
|
415
|
+
return x || (x = 1, process.env.NODE_ENV === "production" ? b.exports = fe() : b.exports = de()), b.exports;
|
|
416
|
+
}
|
|
417
|
+
var T = { exports: {} }, k = {};
|
|
418
|
+
var K;
|
|
419
|
+
function pe() {
|
|
420
|
+
if (K) return k;
|
|
421
|
+
K = 1;
|
|
422
|
+
var e = A, n = F();
|
|
423
|
+
function t(o, i) {
|
|
424
|
+
return o === i && (o !== 0 || 1 / o === 1 / i) || o !== o && i !== i;
|
|
425
|
+
}
|
|
426
|
+
var c = typeof Object.is == "function" ? Object.is : t, a = n.useSyncExternalStore, d = e.useRef, v = e.useEffect, s = e.useMemo, y = e.useDebugValue;
|
|
427
|
+
return k.useSyncExternalStoreWithSelector = function(o, i, l, p, r) {
|
|
428
|
+
var u = d(null);
|
|
429
|
+
if (u.current === null) {
|
|
430
|
+
var f = { hasValue: !1, value: null };
|
|
431
|
+
u.current = f;
|
|
432
|
+
} else f = u.current;
|
|
433
|
+
u = s(
|
|
434
|
+
function() {
|
|
435
|
+
function S(h) {
|
|
436
|
+
if (!E) {
|
|
437
|
+
if (E = !0, R = h, h = p(h), r !== void 0 && f.hasValue) {
|
|
438
|
+
var _ = f.value;
|
|
439
|
+
if (r(_, h))
|
|
440
|
+
return O = _;
|
|
441
|
+
}
|
|
442
|
+
return O = h;
|
|
443
|
+
}
|
|
444
|
+
if (_ = O, c(R, h)) return _;
|
|
445
|
+
var g = p(h);
|
|
446
|
+
return r !== void 0 && r(_, g) ? (R = h, _) : (R = h, O = g);
|
|
447
|
+
}
|
|
448
|
+
var E = !1, R, O, C = l === void 0 ? null : l;
|
|
449
|
+
return [
|
|
450
|
+
function() {
|
|
451
|
+
return S(i());
|
|
452
|
+
},
|
|
453
|
+
C === null ? void 0 : function() {
|
|
454
|
+
return S(C());
|
|
455
|
+
}
|
|
456
|
+
];
|
|
457
|
+
},
|
|
458
|
+
[i, l, p, r]
|
|
459
|
+
);
|
|
460
|
+
var m = a(o, u[0], u[1]);
|
|
461
|
+
return v(
|
|
462
|
+
function() {
|
|
463
|
+
f.hasValue = !0, f.value = m;
|
|
464
|
+
},
|
|
465
|
+
[m]
|
|
466
|
+
), y(m), m;
|
|
467
|
+
}, k;
|
|
468
|
+
}
|
|
469
|
+
var V = {};
|
|
470
|
+
var B;
|
|
471
|
+
function ye() {
|
|
472
|
+
return B || (B = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
473
|
+
function e(o, i) {
|
|
474
|
+
return o === i && (o !== 0 || 1 / o === 1 / i) || o !== o && i !== i;
|
|
475
|
+
}
|
|
476
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
477
|
+
var n = A, t = F(), c = typeof Object.is == "function" ? Object.is : e, a = t.useSyncExternalStore, d = n.useRef, v = n.useEffect, s = n.useMemo, y = n.useDebugValue;
|
|
478
|
+
V.useSyncExternalStoreWithSelector = function(o, i, l, p, r) {
|
|
479
|
+
var u = d(null);
|
|
480
|
+
if (u.current === null) {
|
|
481
|
+
var f = { hasValue: !1, value: null };
|
|
482
|
+
u.current = f;
|
|
483
|
+
} else f = u.current;
|
|
484
|
+
u = s(
|
|
485
|
+
function() {
|
|
486
|
+
function S(h) {
|
|
487
|
+
if (!E) {
|
|
488
|
+
if (E = !0, R = h, h = p(h), r !== void 0 && f.hasValue) {
|
|
489
|
+
var _ = f.value;
|
|
490
|
+
if (r(_, h))
|
|
491
|
+
return O = _;
|
|
492
|
+
}
|
|
493
|
+
return O = h;
|
|
494
|
+
}
|
|
495
|
+
if (_ = O, c(R, h))
|
|
496
|
+
return _;
|
|
497
|
+
var g = p(h);
|
|
498
|
+
return r !== void 0 && r(_, g) ? (R = h, _) : (R = h, O = g);
|
|
499
|
+
}
|
|
500
|
+
var E = !1, R, O, C = l === void 0 ? null : l;
|
|
501
|
+
return [
|
|
502
|
+
function() {
|
|
503
|
+
return S(i());
|
|
504
|
+
},
|
|
505
|
+
C === null ? void 0 : function() {
|
|
506
|
+
return S(C());
|
|
507
|
+
}
|
|
508
|
+
];
|
|
509
|
+
},
|
|
510
|
+
[i, l, p, r]
|
|
511
|
+
);
|
|
512
|
+
var m = a(o, u[0], u[1]);
|
|
513
|
+
return v(
|
|
514
|
+
function() {
|
|
515
|
+
f.hasValue = !0, f.value = m;
|
|
516
|
+
},
|
|
517
|
+
[m]
|
|
518
|
+
), y(m), m;
|
|
519
|
+
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
520
|
+
})()), V;
|
|
521
|
+
}
|
|
522
|
+
var H;
|
|
523
|
+
function ve() {
|
|
524
|
+
return H || (H = 1, process.env.NODE_ENV === "production" ? T.exports = pe() : T.exports = ye()), T.exports;
|
|
525
|
+
}
|
|
526
|
+
var _e = ve();
|
|
527
|
+
export {
|
|
528
|
+
ce as a,
|
|
529
|
+
ae as c,
|
|
530
|
+
he as l,
|
|
531
|
+
F as r,
|
|
532
|
+
_e as w
|
|
533
|
+
};
|
|
534
|
+
//# sourceMappingURL=with-selector-CNcGWQ-h.js.map
|