freemium-ui 2.0.76 → 2.0.78
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/lib/index.cjs.js +889 -886
- package/lib/index.d.ts +2 -0
- package/lib/index.js +886 -883
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/storybook-static/10982.5573c8a3.iframe.bundle.js +0 -1
- package/storybook-static/13628.5e173ea7.iframe.bundle.js +0 -1
- package/storybook-static/15438.c1d29359.iframe.bundle.js +0 -1
- package/storybook-static/15626.96551e4f.iframe.bundle.js +0 -1
- package/storybook-static/16115.1187570b.iframe.bundle.js +0 -2
- package/storybook-static/16115.1187570b.iframe.bundle.js.LICENSE.txt +0 -27
- package/storybook-static/16507.c368971f.iframe.bundle.js +0 -1
- package/storybook-static/18791.827f9fe4.iframe.bundle.js +0 -1
- package/storybook-static/18934.4c800f5c.iframe.bundle.js +0 -1
- package/storybook-static/21294.5e64dc0b.iframe.bundle.js +0 -1
- package/storybook-static/28431.3e36b042.iframe.bundle.js +0 -2
- package/storybook-static/28431.3e36b042.iframe.bundle.js.LICENSE.txt +0 -6
- package/storybook-static/32496.468e6106.iframe.bundle.js +0 -1
- package/storybook-static/33939.37b863a8.iframe.bundle.js +0 -1
- package/storybook-static/37364.8f7900b8.iframe.bundle.js +0 -1
- package/storybook-static/4553.28484ba3.iframe.bundle.js +0 -1
- package/storybook-static/46882.a2730068.iframe.bundle.js +0 -1
- package/storybook-static/50714.0243a4d2.iframe.bundle.js +0 -2
- package/storybook-static/50714.0243a4d2.iframe.bundle.js.LICENSE.txt +0 -21
- package/storybook-static/51759.073d9ad1.iframe.bundle.js +0 -402
- package/storybook-static/51759.073d9ad1.iframe.bundle.js.LICENSE.txt +0 -58
- package/storybook-static/51759.073d9ad1.iframe.bundle.js.map +0 -1
- package/storybook-static/60270.391b87ac.iframe.bundle.js +0 -1
- package/storybook-static/61022.7abe9c16.iframe.bundle.js +0 -2
- package/storybook-static/61022.7abe9c16.iframe.bundle.js.LICENSE.txt +0 -9
- package/storybook-static/61521.fc2ce091.iframe.bundle.js +0 -1
- package/storybook-static/6376.ce3b3ca9.iframe.bundle.js +0 -1
- package/storybook-static/64591.e8b8f5aa.iframe.bundle.js +0 -1
- package/storybook-static/71958.441f3c3e.iframe.bundle.js +0 -95
- package/storybook-static/71958.441f3c3e.iframe.bundle.js.LICENSE.txt +0 -16
- package/storybook-static/71958.441f3c3e.iframe.bundle.js.map +0 -1
- package/storybook-static/78761.e0e907f8.iframe.bundle.js +0 -1
- package/storybook-static/82315.e5158d52.iframe.bundle.js +0 -2
- package/storybook-static/82315.e5158d52.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/86489.7830e6ab.iframe.bundle.js +0 -1
- package/storybook-static/92461.62148736.iframe.bundle.js +0 -1
- package/storybook-static/97959.197f47c6.iframe.bundle.js +0 -1
- package/storybook-static/blueprint-icons-16px-paths.38052fbc.iframe.bundle.js +0 -1
- package/storybook-static/blueprint-icons-20px-paths.554b9b57.iframe.bundle.js +0 -1
- package/storybook-static/blueprint-icons-all-paths-loader.0b72f8ce.iframe.bundle.js +0 -1
- package/storybook-static/blueprint-icons-all-paths.c882bcfa.iframe.bundle.js +0 -1
- package/storybook-static/blueprint-icons-split-paths-by-size-loader.e0d8c710.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-_lib-buildFormatLongFn-index-js.b5f004c5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-_lib-buildLocalizeFn-index-js.63452bcf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-_lib-buildMatchFn-index-js.49a463b8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-_lib-buildMatchPatternFn-index-js.44d99fc7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-af-_lib-formatDistance-index-js.9b7380dd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-af-_lib-formatLong-index-js.35d49687.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-af-_lib-formatRelative-index-js.47d323cf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-af-_lib-localize-index-js.f75d12e9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-af-_lib-match-index-js.0a71f1ce.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-af-index-js.32d99396.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-DZ-_lib-formatDistance-index-js.dec6db6a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-DZ-_lib-formatLong-index-js.6fe7afbf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-DZ-_lib-formatRelative-index-js.bb933be2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-DZ-_lib-localize-index-js.92222e1a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-DZ-_lib-match-index-js.f87badde.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-DZ-index-js.196f46bc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-EG-_lib-formatDistance-index-js.540fad85.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-EG-_lib-formatLong-index-js.26b05dfa.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-EG-_lib-formatRelative-index-js.40a00d2e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-EG-_lib-localize-index-js.5f268ea1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-EG-_lib-match-index-js.346c34fa.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-EG-index-js.dac787de.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-MA-_lib-formatDistance-index-js.9f8c1339.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-MA-_lib-formatLong-index-js.88a3135b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-MA-_lib-formatRelative-index-js.00a35cdf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-MA-_lib-localize-index-js.757cdf49.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-MA-_lib-match-index-js.71cfe88f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-MA-index-js.773a51d1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-SA-_lib-formatDistance-index-js.237d9f78.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-SA-_lib-formatLong-index-js.bb2d2ca2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-SA-_lib-formatRelative-index-js.1a79cfcf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-SA-_lib-localize-index-js.3987a4b7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-SA-_lib-match-index-js.20926714.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-SA-index-js.0b6d9f73.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-TN-_lib-formatDistance-index-js.c3e6ff7c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-TN-_lib-formatLong-index-js.a08d6ea3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-TN-_lib-formatRelative-index-js.f29390ef.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-TN-_lib-localize-index-js.2298338d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-TN-_lib-match-index-js.fe68f975.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-TN-index-js.05a48e53.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-_lib-formatDistance-index-js.35454f0f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-_lib-formatLong-index-js.0e12372f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-_lib-formatRelative-index-js.c2f857dd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-_lib-localize-index-js.3d8cdbf3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-_lib-match-index-js.e4ebe398.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ar-index-js.a549e08d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-az-_lib-formatDistance-index-js.fda80132.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-az-_lib-formatLong-index-js.26a61d92.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-az-_lib-formatRelative-index-js.4ed14664.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-az-_lib-localize-index-js.1bc77dc2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-az-_lib-match-index-js.2109d5d9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-az-index-js.3f9d3132.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-_lib-formatDistance-index-js.a0087658.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-_lib-formatLong-index-js.93e42c85.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-_lib-formatRelative-index-js.3d19ebb6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-_lib-localize-index-js.951bf416.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-_lib-match-index-js.32809281.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-index-js.2f4bf1d3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-tarask-_lib-formatDistance-index-js.aa513f20.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-tarask-_lib-formatLong-index-js.bc8c0d36.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-tarask-_lib-formatRelative-index-js.006b5e97.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-tarask-_lib-localize-index-js.62801336.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-tarask-_lib-match-index-js.e13819fb.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-be-tarask-index-js.d900de86.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bg-_lib-formatDistance-index-js.6060f17e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bg-_lib-formatLong-index-js.48545b02.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bg-_lib-formatRelative-index-js.9d34ba39.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bg-_lib-localize-index-js.aefa283d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bg-_lib-match-index-js.aa5391b1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bg-index-js.ac2ef82a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bn-_lib-formatDistance-index-js.86cf3ba1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bn-_lib-formatLong-index-js.f1d7a3ab.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bn-_lib-formatRelative-index-js.52de17d2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bn-_lib-localize-index-js.6f2d7224.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bn-_lib-match-index-js.cf6fddc7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bn-index-js.5fb8a962.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bs-_lib-formatDistance-index-js.6973340f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bs-_lib-formatLong-index-js.a1dbddcc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bs-_lib-formatRelative-index-js.5894cb79.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bs-_lib-localize-index-js.061bbf05.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bs-_lib-match-index-js.e7a572c7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-bs-index-js.e3f5efa9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ca-_lib-formatDistance-index-js.73678670.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ca-_lib-formatLong-index-js.6b5b1f1f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ca-_lib-formatRelative-index-js.ece44cc2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ca-_lib-localize-index-js.50502607.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ca-_lib-match-index-js.27250918.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ca-index-js.2ada1c93.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cs-_lib-formatDistance-index-js.45e33575.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cs-_lib-formatLong-index-js.bdcbe5d6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cs-_lib-formatRelative-index-js.d51b80e4.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cs-_lib-localize-index-js.1fd94262.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cs-_lib-match-index-js.16ee8fae.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cs-index-js.5fd79d0f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cy-_lib-formatDistance-index-js.d3ca037b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cy-_lib-formatLong-index-js.0c7a8094.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cy-_lib-formatRelative-index-js.831e096e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cy-_lib-localize-index-js.c62d47e5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cy-_lib-match-index-js.26c7d467.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-cy-index-js.a67ac946.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-da-_lib-formatDistance-index-js.0a273bd9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-da-_lib-formatLong-index-js.5d1d88ec.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-da-_lib-formatRelative-index-js.0f93db08.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-da-_lib-localize-index-js.e57cb51e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-da-_lib-match-index-js.c6db6f13.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-da-index-js.132b81e3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-AT-_lib-localize-index-js.7c1442c0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-AT-index-js.c998bd49.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-_lib-formatDistance-index-js.b928b722.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-_lib-formatLong-index-js.11972ef6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-_lib-formatRelative-index-js.c2f2e85f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-_lib-localize-index-js.0cf789f9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-_lib-match-index-js.10e0d647.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-de-index-js.4ac2a88a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-el-_lib-formatDistance-index-js.f59c79de.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-el-_lib-formatLong-index-js.bf074020.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-el-_lib-formatRelative-index-js.4e6fde5a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-el-_lib-localize-index-js.218fcd93.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-el-_lib-match-index-js.7c815f38.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-el-index-js.3437a704.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-AU-_lib-formatLong-index-js.2b980072.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-AU-index-js.96a740ac.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-CA-_lib-formatDistance-index-js.b718a84e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-CA-_lib-formatLong-index-js.18eaba9c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-CA-index-js.e5d76a21.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-GB-_lib-formatLong-index-js.48788985.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-GB-index-js.78699b1c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-IE-index-js.4809d70d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-IN-_lib-formatLong-index-js.ef539caf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-IN-index-js.1616688f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-NZ-_lib-formatLong-index-js.0be775c4.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-NZ-index-js.b1497c32.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-US-_lib-formatDistance-index-js.0dfb63ce.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-US-_lib-formatLong-index-js.6292cc90.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-US-_lib-formatRelative-index-js.2a7f19a6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-US-_lib-localize-index-js.c726f2fc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-US-_lib-match-index-js.a2200bf8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-US-index-js.94f30754.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-ZA-_lib-formatLong-index-js.229b9ccd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-en-ZA-index-js.6c456079.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eo-_lib-formatDistance-index-js.3fa72489.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eo-_lib-formatLong-index-js.d3c3a4d7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eo-_lib-formatRelative-index-js.9ae204a5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eo-_lib-localize-index-js.62427998.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eo-_lib-match-index-js.7b6cdae6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eo-index-js.45bb9969.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-es-_lib-formatDistance-index-js.637f75a3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-es-_lib-formatLong-index-js.15d7a04a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-es-_lib-formatRelative-index-js.a3420b3e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-es-_lib-localize-index-js.5ea74f8c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-es-_lib-match-index-js.bcbe5c3c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-es-index-js.e36b3373.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-et-_lib-formatDistance-index-js.f5bc1cfb.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-et-_lib-formatLong-index-js.95c7f19c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-et-_lib-formatRelative-index-js.6e95bf84.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-et-_lib-localize-index-js.2a3d1d60.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-et-_lib-match-index-js.fad2d0c8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-et-index-js.da29b17f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eu-_lib-formatDistance-index-js.3cc2ce44.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eu-_lib-formatLong-index-js.d19d7eca.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eu-_lib-formatRelative-index-js.444db26c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eu-_lib-localize-index-js.e597140d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eu-_lib-match-index-js.da2d0639.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-eu-index-js.40966230.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fa-IR-_lib-formatDistance-index-js.0856a37e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fa-IR-_lib-formatLong-index-js.83565ec1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fa-IR-_lib-formatRelative-index-js.cbdfad44.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fa-IR-_lib-localize-index-js.005dc40d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fa-IR-_lib-match-index-js.19e9139a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fa-IR-index-js.a8109e7e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fi-_lib-formatDistance-index-js.0ec53c96.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fi-_lib-formatLong-index-js.cead2844.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fi-_lib-formatRelative-index-js.ee02cb02.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fi-_lib-localize-index-js.6297ac92.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fi-_lib-match-index-js.13882696.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fi-index-js.8c04d3d5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-CA-_lib-formatLong-index-js.c2315953.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-CA-index-js.a0c3045c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-CH-_lib-formatLong-index-js.1a08749b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-CH-_lib-formatRelative-index-js.bc7c9b80.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-CH-index-js.aabe4693.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-_lib-formatDistance-index-js.921104e1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-_lib-formatLong-index-js.7a394a54.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-_lib-formatRelative-index-js.283d2f9b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-_lib-localize-index-js.0a858f29.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-_lib-match-index-js.4054a249.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fr-index-js.f9d3a3b3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fy-_lib-formatDistance-index-js.6138a1f0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fy-_lib-formatLong-index-js.9cda8ad3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fy-_lib-formatRelative-index-js.c444e339.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fy-_lib-localize-index-js.857d882a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fy-_lib-match-index-js.386bfd3a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-fy-index-js.f4400105.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gd-_lib-formatDistance-index-js.57cab404.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gd-_lib-formatLong-index-js.cc210de1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gd-_lib-formatRelative-index-js.8073bd51.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gd-_lib-localize-index-js.a70b6f9c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gd-_lib-match-index-js.9ab7800c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gd-index-js.6e339cd2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gl-_lib-formatDistance-index-js.ab1924f8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gl-_lib-formatLong-index-js.a3fcf9bf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gl-_lib-formatRelative-index-js.060766a6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gl-_lib-localize-index-js.9ab52a13.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gl-_lib-match-index-js.328988f0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gl-index-js.ccc22c13.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gu-_lib-formatDistance-index-js.2aafd61d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gu-_lib-formatLong-index-js.b2bd399a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gu-_lib-formatRelative-index-js.3a74177f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gu-_lib-localize-index-js.11d7ba76.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gu-_lib-match-index-js.b826da95.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-gu-index-js.ae6cc2f2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-he-_lib-formatDistance-index-js.c8eb12a5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-he-_lib-formatLong-index-js.bf0c9886.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-he-_lib-formatRelative-index-js.40939879.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-he-_lib-localize-index-js.1728860b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-he-_lib-match-index-js.f002b4c0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-he-index-js.986336cf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hi-_lib-formatDistance-index-js.8935af01.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hi-_lib-formatLong-index-js.4c37d77b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hi-_lib-formatRelative-index-js.52ba8b17.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hi-_lib-localize-index-js.d03c358b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hi-_lib-match-index-js.0064a3bf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hi-index-js.e076151f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hr-_lib-formatDistance-index-js.5529da92.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hr-_lib-formatLong-index-js.b9649ec0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hr-_lib-formatRelative-index-js.7f15f64b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hr-_lib-localize-index-js.ba8879c9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hr-_lib-match-index-js.0c3bfde2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hr-index-js.ed51205e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ht-_lib-formatDistance-index-js.07f9d79b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ht-_lib-formatLong-index-js.6102a628.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ht-_lib-formatRelative-index-js.452e17ac.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ht-_lib-localize-index-js.5f7d5a5c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ht-_lib-match-index-js.14234c59.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ht-index-js.b3d87887.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hu-_lib-formatDistance-index-js.b50e8e9c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hu-_lib-formatLong-index-js.3d29d1ee.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hu-_lib-formatRelative-index-js.18dd0717.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hu-_lib-localize-index-js.4136990b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hu-_lib-match-index-js.b8420344.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hu-index-js.37cd9507.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hy-_lib-formatDistance-index-js.9d7c3e53.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hy-_lib-formatLong-index-js.18508a15.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hy-_lib-formatRelative-index-js.45e64760.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hy-_lib-localize-index-js.393b8e3d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hy-_lib-match-index-js.2f0e7282.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-hy-index-js.7e3684ae.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-id-_lib-formatDistance-index-js.af36c6de.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-id-_lib-formatLong-index-js.d308baa2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-id-_lib-formatRelative-index-js.c674f365.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-id-_lib-localize-index-js.b7a3cb16.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-id-_lib-match-index-js.511acbe8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-id-index-js.c8ad6cce.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-is-_lib-formatDistance-index-js.2453eeff.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-is-_lib-formatLong-index-js.a45da584.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-is-_lib-formatRelative-index-js.99e8f39e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-is-_lib-localize-index-js.cc88629a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-is-_lib-match-index-js.a9f59ba3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-is-index-js.7e706d5b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-CH-_lib-formatLong-index-js.4a372293.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-CH-index-js.bc42fa5e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-_lib-formatDistance-index-js.5ec58a40.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-_lib-formatLong-index-js.3559253a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-_lib-formatRelative-index-js.1495df51.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-_lib-localize-index-js.0d74b03a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-_lib-match-index-js.84114424.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-it-index-js.64ac1324.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-Hira-_lib-formatDistance-index-js.3d860d15.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-Hira-_lib-formatLong-index-js.2693c3c0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-Hira-_lib-formatRelative-index-js.220a480a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-Hira-_lib-localize-index-js.14f24012.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-Hira-_lib-match-index-js.fae1c9ac.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-Hira-index-js.3860caaa.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-_lib-formatDistance-index-js.1fafd4d5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-_lib-formatLong-index-js.27cf42f7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-_lib-formatRelative-index-js.e654af71.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-_lib-localize-index-js.1ab80acb.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-_lib-match-index-js.b90347ca.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ja-index-js.f242cfe4.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ka-_lib-formatDistance-index-js.332bf6d0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ka-_lib-formatLong-index-js.7ca78576.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ka-_lib-formatRelative-index-js.3171f839.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ka-_lib-localize-index-js.7a2c5a79.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ka-_lib-match-index-js.d8cc4d5a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ka-index-js.dc7e9fdc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kk-_lib-formatDistance-index-js.aa267b6e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kk-_lib-formatLong-index-js.aabd1a08.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kk-_lib-formatRelative-index-js.fbce6862.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kk-_lib-localize-index-js.e3dbccf1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kk-_lib-match-index-js.628fda02.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kk-index-js.cb97105d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-km-_lib-formatDistance-index-js.2f2a82ce.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-km-_lib-formatLong-index-js.c2bd8d35.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-km-_lib-formatRelative-index-js.5fa0ef24.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-km-_lib-localize-index-js.9d07e20c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-km-_lib-match-index-js.a0603d16.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-km-index-js.c7339a7e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kn-_lib-formatDistance-index-js.176f8c7f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kn-_lib-formatLong-index-js.0051bed0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kn-_lib-formatRelative-index-js.7e34b4ef.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kn-_lib-localize-index-js.dcb4b974.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kn-_lib-match-index-js.42025269.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-kn-index-js.c84facfc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ko-_lib-formatDistance-index-js.668d15a9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ko-_lib-formatLong-index-js.c971a177.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ko-_lib-formatRelative-index-js.4fc5f4f8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ko-_lib-localize-index-js.ec418f1c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ko-_lib-match-index-js.3e42393c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ko-index-js.922ce2c5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lb-_lib-formatDistance-index-js.882341db.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lb-_lib-formatLong-index-js.a76524ec.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lb-_lib-formatRelative-index-js.5c5eb276.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lb-_lib-localize-index-js.cbddb157.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lb-_lib-match-index-js.fbe555d7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lb-index-js.9443a4fa.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lt-_lib-formatDistance-index-js.5f073e7d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lt-_lib-formatLong-index-js.13ff7859.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lt-_lib-formatRelative-index-js.e78ba72c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lt-_lib-localize-index-js.7bca7bab.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lt-_lib-match-index-js.5aa166af.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lt-index-js.3e730a31.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lv-_lib-formatDistance-index-js.b94ae0f0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lv-_lib-formatLong-index-js.10ca51bc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lv-_lib-formatRelative-index-js.d0943087.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lv-_lib-localize-index-js.939fa6c6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lv-_lib-match-index-js.f65ed066.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-lv-index-js.b33fde47.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mk-_lib-formatDistance-index-js.9a952818.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mk-_lib-formatLong-index-js.0cb518f5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mk-_lib-formatRelative-index-js.619b2c3c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mk-_lib-localize-index-js.e69b1542.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mk-_lib-match-index-js.d97cdb49.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mk-index-js.eaa2701b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mn-_lib-formatDistance-index-js.b1c44007.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mn-_lib-formatLong-index-js.9df4cafe.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mn-_lib-formatRelative-index-js.5304bddc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mn-_lib-localize-index-js.f8496117.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mn-_lib-match-index-js.ac1f8084.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mn-index-js.f3739587.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ms-_lib-formatDistance-index-js.f806969a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ms-_lib-formatLong-index-js.3edbd6fa.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ms-_lib-formatRelative-index-js.c849a368.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ms-_lib-localize-index-js.f6291835.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ms-_lib-match-index-js.2eb44880.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ms-index-js.f427c84e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mt-_lib-formatDistance-index-js.8a035641.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mt-_lib-formatLong-index-js.7ce0f35a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mt-_lib-formatRelative-index-js.bb9f27fd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mt-_lib-localize-index-js.61c52618.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mt-_lib-match-index-js.4a48eb6d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-mt-index-js.80506e2a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nb-_lib-formatDistance-index-js.87e11314.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nb-_lib-formatLong-index-js.b8a63d87.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nb-_lib-formatRelative-index-js.d746ade3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nb-_lib-localize-index-js.3c202b46.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nb-_lib-match-index-js.7dabab7c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nb-index-js.75f6b114.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-BE-_lib-formatDistance-index-js.4b0b0a60.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-BE-_lib-formatLong-index-js.b86e3401.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-BE-_lib-formatRelative-index-js.3d938853.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-BE-_lib-localize-index-js.c214ec40.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-BE-_lib-match-index-js.a6a31ec2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-BE-index-js.f2a22dd3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-_lib-formatDistance-index-js.576f41b9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-_lib-formatLong-index-js.f4963cb6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-_lib-formatRelative-index-js.3c06dafc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-_lib-localize-index-js.074cb514.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-_lib-match-index-js.200f8c51.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nl-index-js.2c33efba.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nn-_lib-formatDistance-index-js.28adfb35.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nn-_lib-formatLong-index-js.0e5f55dd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nn-_lib-formatRelative-index-js.58e7412f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nn-_lib-localize-index-js.8d75e25c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nn-_lib-match-index-js.22ec3382.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-nn-index-js.3e99f9de.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-oc-_lib-formatDistance-index-js.b17c2f76.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-oc-_lib-formatLong-index-js.9a5da6e5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-oc-_lib-formatRelative-index-js.cf8e64c8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-oc-_lib-localize-index-js.cda5f8d8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-oc-_lib-match-index-js.9e1fec79.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-oc-index-js.bb110558.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pl-_lib-formatDistance-index-js.9910bde6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pl-_lib-formatLong-index-js.71a342d1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pl-_lib-formatRelative-index-js.b134bde4.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pl-_lib-localize-index-js.178a9a5a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pl-_lib-match-index-js.c546a590.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pl-index-js.36a347de.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-BR-_lib-formatDistance-index-js.a226915f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-BR-_lib-formatLong-index-js.62ac5478.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-BR-_lib-formatRelative-index-js.64696671.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-BR-_lib-localize-index-js.191da36a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-BR-_lib-match-index-js.8e94f4c2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-BR-index-js.399afeda.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-_lib-formatDistance-index-js.50bbbd60.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-_lib-formatLong-index-js.64e622e8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-_lib-formatRelative-index-js.960b9739.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-_lib-localize-index-js.48d2e03a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-_lib-match-index-js.861f00f7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-pt-index-js.1a7e3089.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ro-_lib-formatDistance-index-js.2a736bd9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ro-_lib-formatLong-index-js.cd43dd8f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ro-_lib-formatRelative-index-js.aa8b5e1f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ro-_lib-localize-index-js.1da11622.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ro-_lib-match-index-js.e337f0bd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ro-index-js.14975501.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ru-_lib-formatDistance-index-js.b99139a5.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ru-_lib-formatLong-index-js.9f41c252.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ru-_lib-formatRelative-index-js.1abc06dd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ru-_lib-localize-index-js.a8ec7892.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ru-_lib-match-index-js.40ae7bf2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ru-index-js.45279c30.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sk-_lib-formatDistance-index-js.20c7fbcc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sk-_lib-formatLong-index-js.cae23f02.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sk-_lib-formatRelative-index-js.d48ddef7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sk-_lib-localize-index-js.49f2d06e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sk-_lib-match-index-js.8138cd2f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sk-index-js.16ca6718.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sl-_lib-formatDistance-index-js.e7e9bbad.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sl-_lib-formatLong-index-js.25261487.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sl-_lib-formatRelative-index-js.9aff538e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sl-_lib-localize-index-js.d5709dc3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sl-_lib-match-index-js.bd245526.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sl-index-js.607c7acd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sq-_lib-formatDistance-index-js.40d77e92.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sq-_lib-formatLong-index-js.41d05b29.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sq-_lib-formatRelative-index-js.4fc97419.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sq-_lib-localize-index-js.cf01cda7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sq-_lib-match-index-js.b148d43a.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sq-index-js.8f5f0a5d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-Latn-_lib-formatDistance-index-js.012c9f1e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-Latn-_lib-formatLong-index-js.1e2feb1c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-Latn-_lib-formatRelative-index-js.d11369cc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-Latn-_lib-localize-index-js.aa6161ee.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-Latn-_lib-match-index-js.b1a07c46.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-Latn-index-js.6e5e37dc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-_lib-formatDistance-index-js.e7bd61b8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-_lib-formatLong-index-js.2c3404a1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-_lib-formatRelative-index-js.aa2bbc3e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-_lib-localize-index-js.07a02b14.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-_lib-match-index-js.e4eac673.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sr-index-js.5095edab.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sv-_lib-formatDistance-index-js.3639b336.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sv-_lib-formatLong-index-js.4becf3d6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sv-_lib-formatRelative-index-js.2f34ac09.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sv-_lib-localize-index-js.01a7d373.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sv-_lib-match-index-js.5c2ac191.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-sv-index-js.a8990d39.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ta-_lib-formatDistance-index-js.57a291d8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ta-_lib-formatLong-index-js.8e82530d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ta-_lib-formatRelative-index-js.eacb6546.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ta-_lib-localize-index-js.42c89456.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ta-_lib-match-index-js.a34c9433.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ta-index-js.cdffc81c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-te-_lib-formatDistance-index-js.a534dc69.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-te-_lib-formatLong-index-js.6dca8b98.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-te-_lib-formatRelative-index-js.0fecf89b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-te-_lib-localize-index-js.55c33db3.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-te-_lib-match-index-js.66bc887b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-te-index-js.d745a2a2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-th-_lib-formatDistance-index-js.ae46c3fe.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-th-_lib-formatLong-index-js.74aa9157.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-th-_lib-formatRelative-index-js.5c5ed6ee.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-th-_lib-localize-index-js.02889cde.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-th-_lib-match-index-js.c8f43009.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-th-index-js.fa836877.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-tr-_lib-formatDistance-index-js.cc8dd80f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-tr-_lib-formatLong-index-js.60d43d59.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-tr-_lib-formatRelative-index-js.852470b2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-tr-_lib-localize-index-js.715d9550.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-tr-_lib-match-index-js.1aca5e99.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-tr-index-js.71e970ef.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ug-_lib-formatDistance-index-js.378ed9a0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ug-_lib-formatLong-index-js.b52f552b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ug-_lib-formatRelative-index-js.6e84dcfd.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ug-_lib-localize-index-js.b7bf2136.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ug-_lib-match-index-js.799a4cd4.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-ug-index-js.0090da9b.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uk-_lib-formatDistance-index-js.e8825442.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uk-_lib-formatLong-index-js.55fdfc4e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uk-_lib-formatRelative-index-js.59dfe5a2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uk-_lib-localize-index-js.30533093.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uk-_lib-match-index-js.81991b17.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uk-index-js.b0707aab.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-Cyrl-_lib-formatDistance-index-js.957af278.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-Cyrl-_lib-formatLong-index-js.acf9b732.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-Cyrl-_lib-formatRelative-index-js.350569fb.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-Cyrl-_lib-localize-index-js.57ca0dbc.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-Cyrl-_lib-match-index-js.39062c93.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-Cyrl-index-js.3e11e6db.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-_lib-formatDistance-index-js.bfa21682.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-_lib-formatLong-index-js.c228ca84.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-_lib-formatRelative-index-js.77d1bac9.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-_lib-localize-index-js.459f4c48.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-_lib-match-index-js.215bc1cf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-uz-index-js.e0af17f8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-vi-_lib-formatDistance-index-js.ea0f9d5d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-vi-_lib-formatLong-index-js.bd326a6f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-vi-_lib-formatRelative-index-js.388817ff.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-vi-_lib-localize-index-js.f4ecc82f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-vi-_lib-match-index-js.26c42c6d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-vi-index-js.56880239.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-CN-_lib-formatDistance-index-js.ae4ff4c8.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-CN-_lib-formatLong-index-js.989f4faf.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-CN-_lib-formatRelative-index-js.06a505e6.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-CN-_lib-localize-index-js.5075d542.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-CN-_lib-match-index-js.c9f1b6b7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-CN-index-js.e324bd8f.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-HK-_lib-formatDistance-index-js.532c9bf1.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-HK-_lib-formatLong-index-js.b3894294.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-HK-_lib-formatRelative-index-js.7468ac2e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-HK-_lib-localize-index-js.d865ece2.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-HK-_lib-match-index-js.4921715e.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-HK-index-js.29d14130.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-TW-_lib-formatDistance-index-js.e2eb6fd7.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-TW-_lib-formatLong-index-js.b978f75c.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-TW-_lib-formatRelative-index-js.1d544d80.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-TW-_lib-localize-index-js.1995f7e0.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-TW-_lib-match-index-js.bc70ce4d.iframe.bundle.js +0 -1
- package/storybook-static/date-fns-locale-zh-TW-index-js.f3b3dc76.iframe.bundle.js +0 -1
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -511
- package/storybook-static/index.html +0 -181
- package/storybook-static/index.json +0 -1
- package/storybook-static/main.0a2bca81.iframe.bundle.js +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/robots.txt +0 -3
- package/storybook-static/runtime~main.b4048d19.iframe.bundle.js +0 -1
- package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js +0 -412
- package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +0 -234
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/links-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +0 -129
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -995
- package/storybook-static/sb-manager/globals-runtime.js +0 -53525
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -11884
- package/storybook-static/sb-preview/globals.js +0 -33
- package/storybook-static/sb-preview/runtime.js +0 -9485
- package/storybook-static/stories-Accordion-stories.62ad369c.iframe.bundle.js +0 -1
- package/storybook-static/stories-Alert-stories.56a824df.iframe.bundle.js +0 -1
- package/storybook-static/stories-AutoComplete-stories.8e4fe693.iframe.bundle.js +0 -1
- package/storybook-static/stories-BoxedRadio-stories.d0bbb23d.iframe.bundle.js +0 -1
- package/storybook-static/stories-Button-stories.2ffbf123.iframe.bundle.js +0 -1
- package/storybook-static/stories-ButtonDropdown-stories.1a220291.iframe.bundle.js +0 -1
- package/storybook-static/stories-Checkbox-stories.91622acc.iframe.bundle.js +0 -1
- package/storybook-static/stories-Colors-mdx.a4d8c6dc.iframe.bundle.js +0 -1
- package/storybook-static/stories-Confirmation-stories.03968f5d.iframe.bundle.js +0 -1
- package/storybook-static/stories-DatePicker-stories.fcb0ade4.iframe.bundle.js +0 -1
- package/storybook-static/stories-DateRangePicker-stories.01f3e3fc.iframe.bundle.js +0 -1
- package/storybook-static/stories-DateTimePicker-stories.d41eee2d.iframe.bundle.js +0 -1
- package/storybook-static/stories-DateTimeRangePicker-stories.c62aa45e.iframe.bundle.js +0 -1
- package/storybook-static/stories-Drawer-stories.fc669d5f.iframe.bundle.js +0 -1
- package/storybook-static/stories-Dropdown-stories.18ddeaaf.iframe.bundle.js +0 -1
- package/storybook-static/stories-Input-stories.b3b16ad8.iframe.bundle.js +0 -1
- package/storybook-static/stories-Loader-stories.4abb90aa.iframe.bundle.js +0 -1
- package/storybook-static/stories-Menu-stories.ffa097b6.iframe.bundle.js +0 -1
- package/storybook-static/stories-Modal-stories.20fadbea.iframe.bundle.js +0 -1
- package/storybook-static/stories-MultiSelectDropdown-stories.e7e2014b.iframe.bundle.js +0 -1
- package/storybook-static/stories-Palette-mdx.fcfc170d.iframe.bundle.js +0 -1
- package/storybook-static/stories-Popover-stories.51ef97cf.iframe.bundle.js +0 -1
- package/storybook-static/stories-QuillEditor-stories.9f9f0371.iframe.bundle.js +0 -1
- package/storybook-static/stories-Radio-stories.00c015c1.iframe.bundle.js +0 -1
- package/storybook-static/stories-RadioGroup-stories.800b50db.iframe.bundle.js +0 -1
- package/storybook-static/stories-Reorder-stories.9aeb1c83.iframe.bundle.js +0 -1
- package/storybook-static/stories-Table-stories.07cffb32.iframe.bundle.js +0 -1
- package/storybook-static/stories-Tabs-stories.4257dd3d.iframe.bundle.js +0 -1
- package/storybook-static/stories-Tag-stories.dde85193.iframe.bundle.js +0 -1
- package/storybook-static/stories-TextArea-stories.2791db35.iframe.bundle.js +0 -1
- package/storybook-static/stories-TimePicker-stories.b0bd6351.iframe.bundle.js +0 -1
- package/storybook-static/stories-Toast-stories.9213bc14.iframe.bundle.js +0 -1
- package/storybook-static/stories-Toggle-stories.1b1da7df.iframe.bundle.js +0 -1
- package/storybook-static/stories-Tooltip-stories.ca538a76.iframe.bundle.js +0 -1
- package/storybook-static/stories-Typography-mdx.bb2eab85.iframe.bundle.js +0 -1
- package/storybook-static/stories-Typography-stories.0eaf1222.iframe.bundle.js +0 -1
- package/storybook-static/stories-WorkspaceTable-stories.d46582ac.iframe.bundle.js +0 -1
package/lib/index.cjs.js
CHANGED
|
@@ -4762,15 +4762,15 @@ $isHilighted:P===r,$isSelected:L===n,key:o,...F({item:n,index:r})
|
|
|
4762
4762
|
},e.createElement(tm,{className:"SelectItemText"},t),n&&e.createElement(rm,{
|
|
4763
4763
|
className:"SelectItemIndicator"},e.createElement(so,{fill:a.colors.common.accent
|
|
4764
4764
|
})))})),sb=t=>{
|
|
4765
|
-
const{isOpen:n,trigger:r,closeMenuCallback:o,idAccessor:a="id",nameAccessor:i="name",onSelect:l,itemComponent:c,showArrow:s=!1,options:u=[],value:d,side:
|
|
4765
|
+
const{isOpen:n,trigger:r,closeMenuCallback:o,idAccessor:a="id",nameAccessor:i="name",onSelect:l,itemComponent:c,showArrow:s=!1,options:u=[],value:d,disableMenu:h=!1,side:f="bottom",align:p="center",sideOffset:m=4,alignOffset:v,arrowPadding:g,avoidCollisions:y}=t,b=cr()
|
|
4766
4766
|
;return e.createElement(Yv,{open:n,onOpenChange:e=>{e||o?.()}
|
|
4767
|
-
},e.createElement(Wv,{asChild:!0
|
|
4767
|
+
},e.createElement(Wv,{asChild:!0,disabled:h
|
|
4768
4768
|
},e.createElement(No,null,r)),e.createElement(Gv,null,e.createElement(Zv,{
|
|
4769
|
-
side:
|
|
4769
|
+
side:f,sideOffset:m,align:p,alignOffset:v,arrowPadding:g,avoidCollisions:y,
|
|
4770
4770
|
className:"DropdownMenuContent"},u.map((t=>c?c(t,{disabled:t?.disabled,
|
|
4771
4771
|
className:"DropdownMenuItem",key:t?.[a],onSelect:()=>l?.(t),
|
|
4772
4772
|
isSelected:d?.[a]===t?.[a]}):e.createElement(Xv,{id:t?.[a],disabled:t?.disabled,
|
|
4773
|
-
dir:
|
|
4773
|
+
dir:b.direction,className:"DropdownMenuItem",key:t?.[a],onSelect:()=>l?.(t),
|
|
4774
4774
|
$isSelected:d?.[a]===t?.[a]},t?.[i]))),s&&e.createElement(Kv,{
|
|
4775
4775
|
className:"DropdownMenuArrow"}))))},ub={"top-center":{from:{left:"50%",
|
|
4776
4776
|
top:"16px",y:"-8px",x:"-50%"},enter:{left:"50%",top:"16px",y:"0",x:"-50%"},
|
|
@@ -6894,9 +6894,9 @@ console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}
|
|
|
6894
6894
|
function vz(e){return Ce(this,void 0,void 0,(function(){var t,n
|
|
6895
6895
|
;return ze(this,(function(r){switch(r.label){case 0:
|
|
6896
6896
|
return t=e.loader,"function"!=typeof(n=void 0===t?yz.defaultLoader:t)?[3,1]:[2,n]
|
|
6897
|
-
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return
|
|
6897
|
+
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return hG
|
|
6898
6898
|
}))];case 2:return[2,r.sent().allPathsLoader];case 3:
|
|
6899
|
-
return[4,Promise.resolve().then((function(){return
|
|
6899
|
+
return[4,Promise.resolve().then((function(){return fG}))];case 4:
|
|
6900
6900
|
return[2,r.sent().splitPathsBySizeLoader]}}))}))}var gz=function(){function e(){
|
|
6901
6901
|
this.defaultLoader="split-by-size",
|
|
6902
6902
|
this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
|
|
@@ -12595,13 +12595,17 @@ r.relativeTimeThreshold=ai,r.calendarFormat=$r,r.prototype=sa,r.HTML5_FMT={
|
|
|
12595
12595
|
DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",
|
|
12596
12596
|
DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",
|
|
12597
12597
|
TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
12598
|
-
},r}()}(FN);var $N=He(FN.exports)
|
|
12598
|
+
},r}()}(FN);var $N=He(FN.exports)
|
|
12599
|
+
;const BN=()=>Math.random().toString(32).slice(2,10),jN="fui:debug",UN=(()=>{
|
|
12600
|
+
if("undefined"==typeof window||!window||"undefined"==typeof localStorage||!localStorage)return{}
|
|
12601
|
+
;const e=localStorage.getItem(jN);return JSON.parse(e??"{}")})(),YN=(e,t)=>{
|
|
12602
|
+
UN.log&&console.log(`${jN}:${e}`,t)},WN=yr.div`
|
|
12599
12603
|
direction: ${({theme:e})=>e.direction};
|
|
12600
|
-
`,
|
|
12604
|
+
`,GN=yr.div`
|
|
12601
12605
|
display: flex;
|
|
12602
12606
|
align-items: center;
|
|
12603
12607
|
gap: 4px;
|
|
12604
|
-
`,
|
|
12608
|
+
`,KN=yr(pm)`
|
|
12605
12609
|
width: 24px;
|
|
12606
12610
|
&::-webkit-outer-spin-button,
|
|
12607
12611
|
&::-webkit-inner-spin-button {
|
|
@@ -12622,7 +12626,7 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
12622
12626
|
line-height: 14px;
|
|
12623
12627
|
color: ${({theme:e})=>e.colors.text.link};
|
|
12624
12628
|
height: 32px;
|
|
12625
|
-
`;const
|
|
12629
|
+
`;const qN=yr.div`
|
|
12626
12630
|
background: ${({theme:e})=>e.colors.fill.base};
|
|
12627
12631
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
12628
12632
|
border-bottom: none;
|
|
@@ -12633,9 +12637,9 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
12633
12637
|
display: flex;
|
|
12634
12638
|
justify-content: end;
|
|
12635
12639
|
gap: 8px;
|
|
12636
|
-
`,
|
|
12640
|
+
`,ZN=yr.div`
|
|
12637
12641
|
direction: ${({theme:e})=>e.direction};
|
|
12638
|
-
`,
|
|
12642
|
+
`,XN=wr`
|
|
12639
12643
|
.bp5-date-range-input {
|
|
12640
12644
|
display: flex;
|
|
12641
12645
|
gap: 4px;
|
|
@@ -13018,34 +13022,34 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
13018
13022
|
border-radius: 0px 4px 4px 0px;
|
|
13019
13023
|
}
|
|
13020
13024
|
}
|
|
13021
|
-
`,
|
|
13025
|
+
`,JN={january:"Jan",february:"Feb",march:"Mar",april:"Apr",may:"May",june:"Jun",
|
|
13022
13026
|
july:"Jul",august:"Aug",september:"Sep",october:"Oct",november:"Nov",
|
|
13023
|
-
december:"Dec"},
|
|
13027
|
+
december:"Dec"},QN=t=>{const n=t.children.map((e=>({key:e.key,id:e.props.value,
|
|
13024
13028
|
name:e.props.children}))),r=document?.querySelector('div[class="bp5-portal"]')
|
|
13025
13029
|
;switch(t.name){case"months":case"years":return e.createElement(ab,{showTick:!1,
|
|
13026
13030
|
items:n,matchButtonWidth:!1,
|
|
13027
|
-
itemToString:(e,n)=>"list-item"===n?e?.name??"":"months"===t.name&&e?.name?
|
|
13031
|
+
itemToString:(e,n)=>"list-item"===n?e?.name??"":"months"===t.name&&e?.name?JN?.[e?.name?.toString().toLowerCase()]:e?.name??"",
|
|
13028
13032
|
portalContainer:r,type:"button",disabled:!!t.disabled,
|
|
13029
13033
|
defaultSelectedItem:n.find((e=>e.id===t.value))??null,style:t.style,
|
|
13030
13034
|
className:`${t.className??""} bp-custom-dropdown bp-custom-dropdown-${t.name??""}`.trim(),
|
|
13031
13035
|
onChange:e=>{t?.onChange?.({target:{value:e?.id}})}})}
|
|
13032
|
-
return e.createElement(ab,{itemToString:()=>"",type:"button"})},
|
|
13036
|
+
return e.createElement(ab,{itemToString:()=>"",type:"button"})},eF=t=>{
|
|
13033
13037
|
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m,useTime:v,...g}=t,y=document.querySelector('div[role="dialog"].DialogContent'),b=cr(),w=e.useRef(m??null),[C,z]=e.useState(m??null),[M,x]=e.useState()
|
|
13034
|
-
;return e.useEffect((()=>{
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
})
|
|
13038
|
+
;return e.useEffect((()=>(window.addEventListener("popstate",(()=>{
|
|
13039
|
+
YN("DateRangePicker",{action:"Closing",useTime:v}),x(!1),setTimeout((()=>{
|
|
13040
|
+
x(void 0)}),0)})),()=>{document.body.removeEventListener("popstate",(()=>{}))
|
|
13041
|
+
})),[]),e.createElement(ZN,{
|
|
13038
13042
|
id:`${v?"datetime":"date"}-picker-container-${s??""}`.trim(),"aria-invalid":i,
|
|
13039
13043
|
dir:b.direction},a&&e.createElement(Do,{htmlFor:t.id,className:"input-label"
|
|
13040
|
-
},a,a&&o&&e.createElement(Lo,null,"*")),e.createElement(
|
|
13044
|
+
},a,a&&o&&e.createElement(Lo,null,"*")),e.createElement(XN,{$isErrored:i,
|
|
13041
13045
|
disabled:t.disabled}),e.createElement(CM,null,e.createElement(gN,{
|
|
13042
13046
|
canClearSelection:!0,closeOnSelection:!1,disabled:h,locale:l||"en-US",
|
|
13043
13047
|
maxDate:$N(new Date).add(10,"years").toDate(),
|
|
13044
13048
|
minDate:$N(new Date).subtract(100,"years").toDate(),fill:!0,
|
|
13045
13049
|
highlightCurrentDay:!0,inputProps:{placeholder:n||f,name:r,id:s,
|
|
13046
13050
|
"aria-disabled":h},dayPickerProps:{disabled:h,dir:b.direction,components:{
|
|
13047
|
-
Dropdown:t=>e.createElement(
|
|
13048
|
-
footerElement:u||d?e.createElement(
|
|
13051
|
+
Dropdown:t=>e.createElement(QN,{...t,disabled:h})}},showActionsBar:!1,
|
|
13052
|
+
footerElement:u||d?e.createElement(qN,null,u&&e.createElement(xm,{
|
|
13049
13053
|
variant:"secondary",disabled:h,onClick:()=>{z(m??null),x(!1),setTimeout((()=>{
|
|
13050
13054
|
x(void 0)}),0)}},u),d&&e.createElement(xm,{disabled:(m??null)===C,onClick:()=>{
|
|
13051
13055
|
g.onChange?.(C,!0),w.current=C,x(!1),setTimeout((()=>{x(void 0)}),0)}
|
|
@@ -13056,16 +13060,16 @@ portalContainer:p??(y||void 0),...void 0!==M?{isOpen:M}:{}},
|
|
|
13056
13060
|
parseDate:e=>e?$N(e).toDate():new Date,formatDate:e=>e?$N(e).format(f):"",...v?{
|
|
13057
13061
|
timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
|
|
13058
13062
|
showTimezoneSelect:!1,disableTimezoneSelect:!0}:{},...g,onChange:e=>{z(e)},
|
|
13059
|
-
value:C??""})),i&&c&&e.createElement(lm,null,c))},
|
|
13063
|
+
value:C??""})),i&&c&&e.createElement(lm,null,c))},tF=t=>{
|
|
13060
13064
|
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",language:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m,useTime:v,...g}=t,y=document.querySelector('div[role="dialog"].DialogContent'),b=cr(),w=e.useRef(m??[null,null]),[C,z]=e.useState(m??[null,null]),[M,x]=e.useState()
|
|
13061
|
-
;return e.useEffect((()=>{
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
})
|
|
13065
|
+
;return e.useEffect((()=>(window.addEventListener("popstate",(()=>{
|
|
13066
|
+
YN("DateRangePicker",{action:"Closing",useTime:v}),x(!1),setTimeout((()=>{
|
|
13067
|
+
x(void 0)}),0)})),()=>{document.body.removeEventListener("popstate",(()=>{}))
|
|
13068
|
+
})),[]),e.createElement(ZN,{
|
|
13065
13069
|
id:`${v?"datetime":"date"}-range-picker-container-${c??""}`.trim(),
|
|
13066
13070
|
"aria-invalid":i,dir:b.direction},a&&e.createElement(Do,{htmlFor:t.id,
|
|
13067
13071
|
className:"input-label"
|
|
13068
|
-
},a,a&&o&&e.createElement(Lo,null,"*")),e.createElement(
|
|
13072
|
+
},a,a&&o&&e.createElement(Lo,null,"*")),e.createElement(XN,{
|
|
13069
13073
|
$inputLength:f.length-(v?1:0),$isErrored:i,disabled:t.disabled
|
|
13070
13074
|
}),e.createElement(CM,null,e.createElement(IN,{closeOnSelection:!1,
|
|
13071
13075
|
locale:h||"en-US",maxDate:$N(new Date).add(10,"years").toDate(),
|
|
@@ -13073,8 +13077,8 @@ minDate:$N(new Date).subtract(100,"years").toDate(),fill:!0,
|
|
|
13073
13077
|
highlightCurrentDay:!0,shortcuts:!1,startInputProps:{placeholder:n||f,name:r,
|
|
13074
13078
|
id:"start-date-picker-input","aria-disabled":s},endInputProps:{placeholder:n||f,
|
|
13075
13079
|
name:r,id:"end-date-picker-input","aria-disabled":s},dayPickerProps:{disabled:s,
|
|
13076
|
-
dir:b.direction,components:{Dropdown:t=>e.createElement(
|
|
13077
|
-
footerElement:u||d?e.createElement(
|
|
13080
|
+
dir:b.direction,components:{Dropdown:t=>e.createElement(QN,{...t,disabled:s})}},
|
|
13081
|
+
footerElement:u||d?e.createElement(qN,null,u&&e.createElement(xm,{
|
|
13078
13082
|
variant:"secondary",disabled:s,onClick:()=>{
|
|
13079
13083
|
z(m??[null,null]),x(!1),setTimeout((()=>{x(void 0)}),0)}
|
|
13080
13084
|
},u),d&&e.createElement(xm,{
|
|
@@ -13087,23 +13091,23 @@ w.current?.[0]?.toISOString()===C?.[0]?.toISOString()&&w.current?.[1]?.toISOStri
|
|
|
13087
13091
|
w.current=C)},portalContainer:p??(y||void 0),...void 0!==M?{isOpen:M}:{}},
|
|
13088
13092
|
parseDate:e=>e?$N(e).toDate():new Date,formatDate:e=>e?$N(e).format(f):"",...v?{
|
|
13089
13093
|
timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1}}:{},
|
|
13090
|
-
...g,onChange:e=>{z(e)},value:C})),i&&l&&e.createElement(lm,null,l))},
|
|
13094
|
+
...g,onChange:e=>{z(e)},value:C})),i&&l&&e.createElement(lm,null,l))},nF=[{
|
|
13091
13095
|
id:"AM",name:"AM"},{id:"PM",name:"PM"
|
|
13092
|
-
}],
|
|
13093
|
-
const{__scopePopover:r,...o}=t,i=
|
|
13096
|
+
}],rF="Popover",[oF,aF]=i(rF,[bh]),iF=bh(),[lF,cF]=oF(rF),sF=e.forwardRef(((t,n)=>{
|
|
13097
|
+
const{__scopePopover:r,...o}=t,i=cF("PopoverTrigger",r),l=iF(r),c=s(n,i.triggerRef),u=e.createElement(b.button,a({
|
|
13094
13098
|
type:"button","aria-haspopup":"dialog","aria-expanded":i.open,
|
|
13095
|
-
"aria-controls":i.contentId,"data-state":
|
|
13099
|
+
"aria-controls":i.contentId,"data-state":yF(i.open)},o,{ref:c,
|
|
13096
13100
|
onClick:v(t.onClick,i.onOpenToggle)}))
|
|
13097
13101
|
;return i.hasCustomAnchor?u:e.createElement(Th,a({asChild:!0},l),u)
|
|
13098
|
-
})),
|
|
13099
|
-
}),
|
|
13100
|
-
const r=
|
|
13102
|
+
})),uF="PopoverPortal",[dF,hF]=oF(uF,{forceMount:void 0
|
|
13103
|
+
}),fF="PopoverContent",pF=e.forwardRef(((t,n)=>{
|
|
13104
|
+
const r=hF(fF,t.__scopePopover),{forceMount:o=r.forceMount,...i}=t,l=cF(fF,t.__scopePopover)
|
|
13101
13105
|
;return e.createElement(z,{present:o||l.open
|
|
13102
|
-
},l.modal?e.createElement(
|
|
13103
|
-
})))})),
|
|
13104
|
-
const r=
|
|
13106
|
+
},l.modal?e.createElement(mF,a({},i,{ref:n})):e.createElement(vF,a({},i,{ref:n
|
|
13107
|
+
})))})),mF=e.forwardRef(((t,n)=>{
|
|
13108
|
+
const r=cF(fF,t.__scopePopover),o=e.useRef(null),i=s(n,o),l=e.useRef(!1)
|
|
13105
13109
|
;return e.useEffect((()=>{const e=o.current;if(e)return Gh(e)
|
|
13106
|
-
}),[]),e.createElement(Hf,{as:u,allowPinchZoom:!0},e.createElement(
|
|
13110
|
+
}),[]),e.createElement(Hf,{as:u,allowPinchZoom:!0},e.createElement(gF,a({},t,{
|
|
13107
13111
|
ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,
|
|
13108
13112
|
onCloseAutoFocus:v(t.onCloseAutoFocus,(e=>{var t
|
|
13109
13113
|
;e.preventDefault(),l.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()
|
|
@@ -13111,9 +13115,9 @@ onCloseAutoFocus:v(t.onCloseAutoFocus,(e=>{var t
|
|
|
13111
13115
|
const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n
|
|
13112
13116
|
;l.current=r}),{checkForDefaultPrevented:!1}),
|
|
13113
13117
|
onFocusOutside:v(t.onFocusOutside,(e=>e.preventDefault()),{
|
|
13114
|
-
checkForDefaultPrevented:!1})})))})),
|
|
13115
|
-
const r=
|
|
13116
|
-
;return e.createElement(
|
|
13118
|
+
checkForDefaultPrevented:!1})})))})),vF=e.forwardRef(((t,n)=>{
|
|
13119
|
+
const r=cF(fF,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1)
|
|
13120
|
+
;return e.createElement(gF,a({},t,{ref:n,trapFocus:!1,
|
|
13117
13121
|
disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,a
|
|
13118
13122
|
;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),
|
|
13119
13123
|
e.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),
|
|
@@ -13123,35 +13127,35 @@ e.defaultPrevented||(o.current=!0,
|
|
|
13123
13127
|
"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const l=e.target
|
|
13124
13128
|
;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&e.preventDefault(),
|
|
13125
13129
|
"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}}))
|
|
13126
|
-
})),
|
|
13127
|
-
const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,...f}=t,p=
|
|
13130
|
+
})),gF=e.forwardRef(((t,n)=>{
|
|
13131
|
+
const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,...f}=t,p=cF(fF,r),m=iF(r)
|
|
13128
13132
|
;return Fu(),e.createElement(Yu,{asChild:!0,loop:!0,trapped:o,
|
|
13129
13133
|
onMountAutoFocus:i,onUnmountAutoFocus:l},e.createElement(ku,{asChild:!0,
|
|
13130
13134
|
disableOutsidePointerEvents:c,onInteractOutside:h,onEscapeKeyDown:s,
|
|
13131
13135
|
onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1)
|
|
13132
|
-
},e.createElement(Rh,a({"data-state":
|
|
13136
|
+
},e.createElement(Rh,a({"data-state":yF(p.open),role:"dialog",id:p.contentId
|
|
13133
13137
|
},m,f,{ref:n,style:{...f.style,
|
|
13134
13138
|
"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)",
|
|
13135
13139
|
"--radix-popover-content-available-width":"var(--radix-popper-available-width)",
|
|
13136
13140
|
"--radix-popover-content-available-height":"var(--radix-popper-available-height)",
|
|
13137
13141
|
"--radix-popover-trigger-width":"var(--radix-popper-anchor-width)",
|
|
13138
13142
|
"--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}))
|
|
13139
|
-
;function
|
|
13140
|
-
const{__scopePopover:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=t,c=
|
|
13143
|
+
;function yF(e){return e?"open":"closed"}const bF=t=>{
|
|
13144
|
+
const{__scopePopover:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=t,c=iF(n),s=e.useRef(null),[u,d]=e.useState(!1),[h=!1,f]=y({
|
|
13141
13145
|
prop:o,defaultProp:a,onChange:i})
|
|
13142
|
-
;return e.createElement(kh,c,e.createElement(
|
|
13146
|
+
;return e.createElement(kh,c,e.createElement(lF,{scope:n,contentId:S(),
|
|
13143
13147
|
triggerRef:s,open:h,onOpenChange:f,
|
|
13144
13148
|
onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:u,
|
|
13145
13149
|
onCustomAnchorAdd:e.useCallback((()=>d(!0)),[]),
|
|
13146
|
-
onCustomAnchorRemove:e.useCallback((()=>d(!1)),[]),modal:l},r))},
|
|
13147
|
-
const{__scopePopover:n,forceMount:r,children:o,container:a}=t,i=
|
|
13148
|
-
;return e.createElement(
|
|
13150
|
+
onCustomAnchorRemove:e.useCallback((()=>d(!1)),[]),modal:l},r))},wF=sF,CF=t=>{
|
|
13151
|
+
const{__scopePopover:n,forceMount:r,children:o,container:a}=t,i=cF(uF,n)
|
|
13152
|
+
;return e.createElement(dF,{scope:n,forceMount:r},e.createElement(z,{
|
|
13149
13153
|
present:r||i.open},e.createElement(Ih,{asChild:!0,container:a},o)))
|
|
13150
|
-
},
|
|
13154
|
+
},zF=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=cF("PopoverClose",r)
|
|
13151
13155
|
;return e.createElement(b.button,a({type:"button"},o,{ref:n,
|
|
13152
|
-
onClick:v(t.onClick,(()=>i.onOpenChange(!1)))}))})),
|
|
13153
|
-
const{__scopePopover:r,...o}=t,i=
|
|
13154
|
-
}))})),
|
|
13156
|
+
onClick:v(t.onClick,(()=>i.onOpenChange(!1)))}))})),MF=e.forwardRef(((t,n)=>{
|
|
13157
|
+
const{__scopePopover:r,...o}=t,i=iF(r);return e.createElement(Ph,a({},i,o,{ref:n
|
|
13158
|
+
}))})),xF=yr(pF)`
|
|
13155
13159
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
13156
13160
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
13157
13161
|
border-radius: 8px;
|
|
@@ -13180,25 +13184,25 @@ const{__scopePopover:r,...o}=t,i=nF(r);return e.createElement(Ph,a({},i,o,{ref:n
|
|
|
13180
13184
|
${({theme:e})=>"dark"===e.mode&&mr`
|
|
13181
13185
|
border: 1px solid ${e.colors.border.light};
|
|
13182
13186
|
`}
|
|
13183
|
-
`,
|
|
13187
|
+
`,EF=yr(MF)`
|
|
13184
13188
|
fill: ${({theme:e})=>e.colors.fill.surface};
|
|
13185
|
-
`,
|
|
13189
|
+
`,SF=yr(bF)``,_F=yr(wF)``,HF=yr(CF)``,DF=yr(zF)``,AF=({children:t,trigger:n,arrow:r,hoverOutToClose:o,align:a,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,popoverContentProps:h,popoverRootProps:f,anchorOrigin:p})=>{
|
|
13186
13190
|
const[m,v]=e.useState(!1),g=s??("bottom"===p?.vertical&&p.horizontal?"bottom":void 0)??("top"===p?.vertical&&p.horizontal?"top":void 0)??("center"===p?.vertical&&"left"===p.horizontal?"left":void 0)??("center"===p?.vertical&&"right"===p.horizontal?"right":void 0)??"bottom",y=cr()
|
|
13187
|
-
;return e.createElement(
|
|
13188
|
-
},c?e.createElement(e.Fragment,null,n):e.createElement(
|
|
13191
|
+
;return e.createElement(SF,{open:m,onOpenChange:e=>{v(e)},...f
|
|
13192
|
+
},c?e.createElement(e.Fragment,null,n):e.createElement(_F,{dir:y.direction,
|
|
13189
13193
|
asChild:!0,className:"PopoverTrigger",disabled:u},e.createElement(No,{
|
|
13190
13194
|
className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
|
|
13191
|
-
},n)),e.createElement(
|
|
13195
|
+
},n)),e.createElement(HF,null,e.createElement(xF,{forceMount:!0,
|
|
13192
13196
|
className:"PopoverContent","data-popover-content":!0,dir:y.direction,
|
|
13193
13197
|
onMouseLeave:()=>{o&&(v(!1),d?.())},onInteractOutside:()=>{v(!1),d?.()},side:g,
|
|
13194
|
-
align:a,sideOffset:8,avoidCollisions:l,...h},t,r&&e.createElement(
|
|
13195
|
-
},
|
|
13198
|
+
align:a,sideOffset:8,avoidCollisions:l,...h},t,r&&e.createElement(EF,null))))
|
|
13199
|
+
},LF=yr.div`
|
|
13196
13200
|
direction: ${({theme:e})=>e.direction};
|
|
13197
|
-
`,
|
|
13201
|
+
`,VF=yr(wg)`
|
|
13198
13202
|
display: flex;
|
|
13199
13203
|
flex-direction: column;
|
|
13200
13204
|
gap: 4px;
|
|
13201
|
-
`,
|
|
13205
|
+
`,kF=yr(zg)`
|
|
13202
13206
|
display: flex;
|
|
13203
13207
|
align-items: center;
|
|
13204
13208
|
justify-content: center;
|
|
@@ -13213,7 +13217,7 @@ align:a,sideOffset:8,avoidCollisions:l,...h},t,r&&e.createElement(CF,null))))
|
|
|
13213
13217
|
border-radius: 50%;
|
|
13214
13218
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.common.black:e.colors.common.white};
|
|
13215
13219
|
}
|
|
13216
|
-
`,
|
|
13220
|
+
`,TF=yr(Cg)`
|
|
13217
13221
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.common.black:e.colors.common.white};
|
|
13218
13222
|
width: 14px;
|
|
13219
13223
|
height: 14px;
|
|
@@ -13235,74 +13239,74 @@ align:a,sideOffset:8,avoidCollisions:l,...h},t,r&&e.createElement(CF,null))))
|
|
|
13235
13239
|
&:hover:not([data-disabled]) {
|
|
13236
13240
|
box-shadow: 0 0 0 3px ${({theme:e})=>e.colors.border.hover}30;
|
|
13237
13241
|
}
|
|
13238
|
-
`,
|
|
13242
|
+
`,RF=yr.div`
|
|
13239
13243
|
display: flex;
|
|
13240
13244
|
align-items: center;
|
|
13241
13245
|
direction: ${({theme:e})=>e.direction};
|
|
13242
13246
|
`
|
|
13243
|
-
;const
|
|
13244
|
-
;function
|
|
13245
|
-
;return"[object Window]"===t||"[object global]"===t}function
|
|
13246
|
-
return"nodeType"in e}function
|
|
13247
|
-
;return e?
|
|
13248
|
-
}function
|
|
13249
|
-
return!
|
|
13250
|
-
return e instanceof
|
|
13251
|
-
return e?
|
|
13252
|
-
}const
|
|
13253
|
-
;return
|
|
13247
|
+
;const PF="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement
|
|
13248
|
+
;function IF(e){const t=Object.prototype.toString.call(e)
|
|
13249
|
+
;return"[object Window]"===t||"[object global]"===t}function OF(e){
|
|
13250
|
+
return"nodeType"in e}function NF(e){var t,n
|
|
13251
|
+
;return e?IF(e)?e:OF(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window
|
|
13252
|
+
}function FF(e){const{Document:t}=NF(e);return e instanceof t}function $F(e){
|
|
13253
|
+
return!IF(e)&&e instanceof NF(e).HTMLElement}function BF(e){
|
|
13254
|
+
return e instanceof NF(e).SVGElement}function jF(e){
|
|
13255
|
+
return e?IF(e)?e.document:OF(e)?FF(e)?e:$F(e)||BF(e)?e.ownerDocument:document:document:document
|
|
13256
|
+
}const UF=PF?e.useLayoutEffect:e.useEffect;function YF(t){const n=e.useRef(t)
|
|
13257
|
+
;return UF((()=>{n.current=t})),e.useCallback((function(){
|
|
13254
13258
|
for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]
|
|
13255
|
-
;return null==n.current?void 0:n.current(...t)}),[])}function
|
|
13256
|
-
void 0===n&&(n=[t]);const r=e.useRef(t);return
|
|
13257
|
-
r.current!==t&&(r.current=t)}),n),r}function
|
|
13259
|
+
;return null==n.current?void 0:n.current(...t)}),[])}function WF(t,n){
|
|
13260
|
+
void 0===n&&(n=[t]);const r=e.useRef(t);return UF((()=>{
|
|
13261
|
+
r.current!==t&&(r.current=t)}),n),r}function GF(t,n){const r=e.useRef()
|
|
13258
13262
|
;return e.useMemo((()=>{const e=t(r.current);return r.current=e,e}),[...n])}
|
|
13259
|
-
function
|
|
13263
|
+
function KF(t){const n=YF(t),r=e.useRef(null),o=e.useCallback((e=>{
|
|
13260
13264
|
e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,o]}
|
|
13261
|
-
function
|
|
13262
|
-
}),[t]),n.current}let
|
|
13263
|
-
if(n)return n;const e=null==
|
|
13264
|
-
function
|
|
13265
|
+
function qF(t){const n=e.useRef();return e.useEffect((()=>{n.current=t
|
|
13266
|
+
}),[t]),n.current}let ZF={};function XF(t,n){return e.useMemo((()=>{
|
|
13267
|
+
if(n)return n;const e=null==ZF[t]?0:ZF[t]+1;return ZF[t]=e,t+"-"+e}),[t,n])}
|
|
13268
|
+
function JF(e){return function(t){
|
|
13265
13269
|
for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o]
|
|
13266
13270
|
;return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){
|
|
13267
|
-
const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const
|
|
13268
|
-
;function
|
|
13269
|
-
;return t&&e instanceof t}function
|
|
13270
|
-
;const{TouchEvent:t}=
|
|
13271
|
+
const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const QF=JF(1),e$=JF(-1)
|
|
13272
|
+
;function t$(e){if(!e)return!1;const{KeyboardEvent:t}=NF(e.target)
|
|
13273
|
+
;return t&&e instanceof t}function n$(e){if(function(e){if(!e)return!1
|
|
13274
|
+
;const{TouchEvent:t}=NF(e.target);return t&&e instanceof t}(e)){
|
|
13271
13275
|
if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{
|
|
13272
13276
|
x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){
|
|
13273
13277
|
const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}
|
|
13274
13278
|
return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,
|
|
13275
|
-
y:e.clientY}:null}const
|
|
13279
|
+
y:e.clientY}:null}const r$=Object.freeze({Translate:{toString(e){if(!e)return
|
|
13276
13280
|
;const{x:t,y:n}=e
|
|
13277
13281
|
;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},
|
|
13278
13282
|
Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e
|
|
13279
13283
|
;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){
|
|
13280
|
-
if(e)return[
|
|
13284
|
+
if(e)return[r$.Translate.toString(e),r$.Scale.toString(e)].join(" ")}},
|
|
13281
13285
|
Transition:{toString(e){let{property:t,duration:n,easing:r}=e
|
|
13282
13286
|
;return t+" "+n+"ms "+r}}
|
|
13283
|
-
}),
|
|
13284
|
-
;function
|
|
13285
|
-
display:"none"};function
|
|
13286
|
-
;return e.createElement("div",{id:n,style:
|
|
13287
|
+
}),o$="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]"
|
|
13288
|
+
;function a$(e){return e.matches(o$)?e:e.querySelector(o$)}const i$={
|
|
13289
|
+
display:"none"};function l$(t){let{id:n,value:r}=t
|
|
13290
|
+
;return e.createElement("div",{id:n,style:i$},r)}function c$(t){
|
|
13287
13291
|
let{id:n,announcement:r,ariaLiveType:o="assertive"}=t
|
|
13288
13292
|
;return e.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,
|
|
13289
13293
|
margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",
|
|
13290
13294
|
clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,
|
|
13291
|
-
"aria-atomic":!0},r)}const
|
|
13295
|
+
"aria-atomic":!0},r)}const s$=e.createContext(null);const u$={
|
|
13292
13296
|
draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "
|
|
13293
|
-
},
|
|
13297
|
+
},d$={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."
|
|
13294
13298
|
},onDragOver(e){let{active:t,over:n}=e
|
|
13295
13299
|
;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."
|
|
13296
13300
|
},onDragEnd(e){let{active:t,over:n}=e
|
|
13297
13301
|
;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."
|
|
13298
13302
|
},onDragCancel(e){let{active:t}=e
|
|
13299
13303
|
;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}}
|
|
13300
|
-
;function
|
|
13301
|
-
let{announcements:r=
|
|
13304
|
+
;function h$(n){
|
|
13305
|
+
let{announcements:r=d$,container:o,hiddenTextDescribedById:a,screenReaderInstructions:i=u$}=n
|
|
13302
13306
|
;const{announce:l,announcement:c}=function(){const[t,n]=e.useState("");return{
|
|
13303
13307
|
announce:e.useCallback((e=>{null!=e&&n(e)}),[]),announcement:t}
|
|
13304
|
-
}(),s=
|
|
13305
|
-
function(t){const n=e.useContext(
|
|
13308
|
+
}(),s=XF("DndLiveRegion"),[u,d]=e.useState(!1);if(e.useEffect((()=>{d(!0)}),[]),
|
|
13309
|
+
function(t){const n=e.useContext(s$);e.useEffect((()=>{
|
|
13306
13310
|
if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>")
|
|
13307
13311
|
;return n(t)}),[t,n])}(e.useMemo((()=>({onDragStart(e){let{active:t}=e
|
|
13308
13312
|
;l(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e
|
|
@@ -13311,42 +13315,42 @@ let{active:t,over:n}=e;l(r.onDragOver({active:t,over:n}))},onDragEnd(e){
|
|
|
13311
13315
|
let{active:t,over:n}=e;l(r.onDragEnd({active:t,over:n}))},onDragCancel(e){
|
|
13312
13316
|
let{active:t,over:n}=e;l(r.onDragCancel({active:t,over:n}))}
|
|
13313
13317
|
})),[l,r])),!u)return null
|
|
13314
|
-
;const h=e.createElement(e.Fragment,null,e.createElement(
|
|
13315
|
-
value:i.draggable}),e.createElement(
|
|
13316
|
-
;return o?t.createPortal(h,o):h}var
|
|
13318
|
+
;const h=e.createElement(e.Fragment,null,e.createElement(l$,{id:a,
|
|
13319
|
+
value:i.draggable}),e.createElement(c$,{id:s,announcement:c}))
|
|
13320
|
+
;return o?t.createPortal(h,o):h}var f$;function p$(){}function m$(t,n){
|
|
13317
13321
|
return e.useMemo((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}!function(e){
|
|
13318
13322
|
e.DragStart="dragStart",
|
|
13319
13323
|
e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",
|
|
13320
13324
|
e.DragOver="dragOver",
|
|
13321
13325
|
e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",
|
|
13322
|
-
e.UnregisterDroppable="unregisterDroppable"}(
|
|
13323
|
-
;const
|
|
13324
|
-
return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function
|
|
13325
|
-
let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function
|
|
13326
|
-
let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function
|
|
13326
|
+
e.UnregisterDroppable="unregisterDroppable"}(f$||(f$={}))
|
|
13327
|
+
;const v$=Object.freeze({x:0,y:0});function g$(e,t){
|
|
13328
|
+
return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y$(e,t){
|
|
13329
|
+
let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function b$(e,t){
|
|
13330
|
+
let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function w$(e){
|
|
13327
13331
|
let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{
|
|
13328
|
-
x:t+o,y:n+r}]}function
|
|
13329
|
-
;return t?n[t]:n}function
|
|
13332
|
+
x:t+o,y:n+r}]}function C$(e,t){if(!e||0===e.length)return null;const[n]=e
|
|
13333
|
+
;return t?n[t]:n}function z$(e,t,n){
|
|
13330
13334
|
return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,
|
|
13331
|
-
y:n+.5*e.height}}const
|
|
13335
|
+
y:n+.5*e.height}}const M$=e=>{
|
|
13332
13336
|
let{collisionRect:t,droppableRects:n,droppableContainers:r}=e
|
|
13333
|
-
;const o=
|
|
13334
|
-
;if(r){const n=
|
|
13335
|
-
return a.sort(
|
|
13337
|
+
;const o=z$(t,t.left,t.top),a=[];for(const e of r){const{id:t}=e,r=n.get(t)
|
|
13338
|
+
;if(r){const n=g$(z$(r),o);a.push({id:t,data:{droppableContainer:e,value:n}})}}
|
|
13339
|
+
return a.sort(y$)};function x$(e,t){
|
|
13336
13340
|
const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=o-r,l=a-n
|
|
13337
13341
|
;if(r<o&&n<a){const n=t.width*t.height,r=e.width*e.height,o=i*l
|
|
13338
|
-
;return Number((o/(n+r-o)).toFixed(4))}return 0}const
|
|
13342
|
+
;return Number((o/(n+r-o)).toFixed(4))}return 0}const E$=e=>{
|
|
13339
13343
|
let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[]
|
|
13340
|
-
;for(const e of r){const{id:r}=e,a=n.get(r);if(a){const n=
|
|
13341
|
-
id:r,data:{droppableContainer:e,value:n}})}}return o.sort(
|
|
13342
|
-
return e&&t?{x:e.left-t.left,y:e.top-t.top}:
|
|
13344
|
+
;for(const e of r){const{id:r}=e,a=n.get(r);if(a){const n=x$(a,t);n>0&&o.push({
|
|
13345
|
+
id:r,data:{droppableContainer:e,value:n}})}}return o.sort(b$)};function S$(e,t){
|
|
13346
|
+
return e&&t?{x:e.left-t.left,y:e.top-t.top}:v$}function _$(e){
|
|
13343
13347
|
return function(t){
|
|
13344
13348
|
for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o]
|
|
13345
13349
|
;return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,
|
|
13346
|
-
left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const
|
|
13347
|
-
ignoreTransform:!1};function
|
|
13350
|
+
left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const H$=_$(1);const D$={
|
|
13351
|
+
ignoreTransform:!1};function A$(e,t){void 0===t&&(t=D$)
|
|
13348
13352
|
;let n=e.getBoundingClientRect();if(t.ignoreTransform){
|
|
13349
|
-
const{transform:t,transformOrigin:r}=
|
|
13353
|
+
const{transform:t,transformOrigin:r}=NF(e).getComputedStyle(e)
|
|
13350
13354
|
;t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){
|
|
13351
13355
|
const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],
|
|
13352
13356
|
scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /)
|
|
@@ -13355,116 +13359,116 @@ scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /)
|
|
|
13355
13359
|
;const{scaleX:o,scaleY:a,x:i,y:l}=r,c=e.left-i-(1-o)*parseFloat(n),s=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=a?e.height/a:e.height
|
|
13356
13360
|
;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c}}(n,t,r))}
|
|
13357
13361
|
const{top:r,left:o,width:a,height:i,bottom:l,right:c}=n;return{top:r,left:o,
|
|
13358
|
-
width:a,height:i,bottom:l,right:c}}function
|
|
13359
|
-
ignoreTransform:!0})}function
|
|
13362
|
+
width:a,height:i,bottom:l,right:c}}function L$(e){return A$(e,{
|
|
13363
|
+
ignoreTransform:!0})}function V$(e,t){const n=[];return e?function r(o){
|
|
13360
13364
|
if(null!=t&&n.length>=t)return n;if(!o)return n
|
|
13361
|
-
;if(
|
|
13362
|
-
n;if(
|
|
13363
|
-
;const a=
|
|
13364
|
-
void 0===t&&(t=
|
|
13365
|
+
;if(FF(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),
|
|
13366
|
+
n;if(!$F(o)||BF(o))return n;if(n.includes(o))return n
|
|
13367
|
+
;const a=NF(e).getComputedStyle(o);return o!==e&&function(e,t){
|
|
13368
|
+
void 0===t&&(t=NF(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/
|
|
13365
13369
|
;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e]
|
|
13366
13370
|
;return"string"==typeof r&&n.test(r)}))}(o,a)&&n.push(o),function(e,t){
|
|
13367
|
-
return void 0===t&&(t=
|
|
13368
|
-
}(o,a)?n:r(o.parentNode)}(e):n}function
|
|
13369
|
-
;return null!=t?t:null}function
|
|
13370
|
-
return
|
|
13371
|
-
}function
|
|
13372
|
-
return
|
|
13373
|
-
;function
|
|
13374
|
-
const t={x:0,y:0},n=
|
|
13371
|
+
return void 0===t&&(t=NF(e).getComputedStyle(e)),"fixed"===t.position
|
|
13372
|
+
}(o,a)?n:r(o.parentNode)}(e):n}function k$(e){const[t]=V$(e,1)
|
|
13373
|
+
;return null!=t?t:null}function T$(e){
|
|
13374
|
+
return PF&&e?IF(e)?e:OF(e)?FF(e)||e===jF(e).scrollingElement?window:$F(e)?e:null:null:null
|
|
13375
|
+
}function R$(e){return IF(e)?e.scrollX:e.scrollLeft}function P$(e){
|
|
13376
|
+
return IF(e)?e.scrollY:e.scrollTop}function I$(e){return{x:R$(e),y:P$(e)}}var O$
|
|
13377
|
+
;function N$(e){return!(!PF||!e)&&e===document.scrollingElement}function F$(e){
|
|
13378
|
+
const t={x:0,y:0},n=N$(e)?{height:window.innerHeight,width:window.innerWidth}:{
|
|
13375
13379
|
height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,
|
|
13376
13380
|
y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,
|
|
13377
13381
|
isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,
|
|
13378
13382
|
maxScroll:r,minScroll:t}}!function(e){
|
|
13379
|
-
e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(
|
|
13380
|
-
x:.2,y:.2};function
|
|
13381
|
-
;void 0===r&&(r=10),void 0===o&&(o
|
|
13382
|
-
;const{isTop:s,isBottom:u,isLeft:d,isRight:h}=
|
|
13383
|
+
e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(O$||(O$={}));const $$={
|
|
13384
|
+
x:.2,y:.2};function B$(e,t,n,r,o){let{top:a,left:i,right:l,bottom:c}=n
|
|
13385
|
+
;void 0===r&&(r=10),void 0===o&&(o=$$)
|
|
13386
|
+
;const{isTop:s,isBottom:u,isLeft:d,isRight:h}=F$(e),f={x:0,y:0},p={x:0,y:0
|
|
13383
13387
|
},m=t.height*o.y,v=t.width*o.x
|
|
13384
|
-
;return!s&&a<=t.top+m?(f.y=
|
|
13388
|
+
;return!s&&a<=t.top+m?(f.y=O$.Backward,p.y=r*Math.abs((t.top+m-a)/m)):!u&&c>=t.bottom-m&&(f.y=O$.Forward,
|
|
13385
13389
|
p.y=r*Math.abs((t.bottom-m-c)/m)),
|
|
13386
|
-
!h&&l>=t.right-v?(f.x=
|
|
13387
|
-
p.x=r*Math.abs((t.left+v-i)/v)),{direction:f,speed:p}}function
|
|
13390
|
+
!h&&l>=t.right-v?(f.x=O$.Forward,p.x=r*Math.abs((t.right-v-l)/v)):!d&&i<=t.left+v&&(f.x=O$.Backward,
|
|
13391
|
+
p.x=r*Math.abs((t.left+v-i)/v)),{direction:f,speed:p}}function j$(e){
|
|
13388
13392
|
if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window
|
|
13389
13393
|
;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}
|
|
13390
13394
|
const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,
|
|
13391
13395
|
left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}
|
|
13392
|
-
function
|
|
13393
|
-
const
|
|
13394
|
-
}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+
|
|
13395
|
-
;class
|
|
13396
|
+
function U$(e){return e.reduce(((e,t)=>QF(e,I$(t))),v$)}
|
|
13397
|
+
const Y$=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+R$(t)),0)
|
|
13398
|
+
}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+P$(t)),0)}]]
|
|
13399
|
+
;class W${constructor(e,t){
|
|
13396
13400
|
this.rect=void 0,this.width=void 0,this.height=void 0,
|
|
13397
13401
|
this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0
|
|
13398
|
-
;const n=
|
|
13399
|
-
;for(const[e,t,o]of
|
|
13402
|
+
;const n=V$(t),r=U$(n);this.rect={...e},this.width=e.width,this.height=e.height
|
|
13403
|
+
;for(const[e,t,o]of Y$)for(const a of t)Object.defineProperty(this,a,{get:()=>{
|
|
13400
13404
|
const t=o(n),i=r[e]-t;return this.rect[a]+i},enumerable:!0})
|
|
13401
|
-
;Object.defineProperty(this,"rect",{enumerable:!1})}}class
|
|
13405
|
+
;Object.defineProperty(this,"rect",{enumerable:!1})}}class G${constructor(e){
|
|
13402
13406
|
this.target=void 0,this.listeners=[],this.removeAll=()=>{
|
|
13403
13407
|
this.listeners.forEach((e=>{var t
|
|
13404
13408
|
;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))
|
|
13405
13409
|
},this.target=e}add(e,t,n){var r
|
|
13406
13410
|
;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}
|
|
13407
|
-
function
|
|
13411
|
+
function K$(e,t){const n=Math.abs(e.x),r=Math.abs(e.y)
|
|
13408
13412
|
;return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y
|
|
13409
|
-
}var
|
|
13413
|
+
}var q$,Z$;function X$(e){e.preventDefault()}function J$(e){e.stopPropagation()}
|
|
13410
13414
|
!function(e){
|
|
13411
13415
|
e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",
|
|
13412
13416
|
e.Resize="resize",
|
|
13413
13417
|
e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"
|
|
13414
|
-
}(
|
|
13418
|
+
}(q$||(q$={})),function(e){
|
|
13415
13419
|
e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",
|
|
13416
|
-
e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(
|
|
13417
|
-
;const
|
|
13418
|
-
},
|
|
13419
|
-
...n,x:n.x+25};case
|
|
13420
|
-
y:n.y+25};case
|
|
13420
|
+
e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Z$||(Z$={}))
|
|
13421
|
+
;const Q$={start:[Z$.Space,Z$.Enter],cancel:[Z$.Esc],end:[Z$.Space,Z$.Enter]
|
|
13422
|
+
},eB=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Z$.Right:return{
|
|
13423
|
+
...n,x:n.x+25};case Z$.Left:return{...n,x:n.x-25};case Z$.Down:return{...n,
|
|
13424
|
+
y:n.y+25};case Z$.Up:return{...n,y:n.y-25}}};class tB{constructor(e){
|
|
13421
13425
|
this.props=void 0,
|
|
13422
13426
|
this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,
|
|
13423
13427
|
this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,
|
|
13424
|
-
this.listeners=new
|
|
13425
|
-
this.windowListeners=new
|
|
13428
|
+
this.listeners=new G$(jF(t)),
|
|
13429
|
+
this.windowListeners=new G$(NF(t)),this.handleKeyDown=this.handleKeyDown.bind(this),
|
|
13426
13430
|
this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){
|
|
13427
13431
|
this.handleStart(),
|
|
13428
|
-
this.windowListeners.add(
|
|
13429
|
-
setTimeout((()=>this.listeners.add(
|
|
13432
|
+
this.windowListeners.add(q$.Resize,this.handleCancel),this.windowListeners.add(q$.VisibilityChange,this.handleCancel),
|
|
13433
|
+
setTimeout((()=>this.listeners.add(q$.Keydown,this.handleKeyDown)))}
|
|
13430
13434
|
handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current
|
|
13431
|
-
;n&&function(e,t){if(void 0===t&&(t=
|
|
13435
|
+
;n&&function(e,t){if(void 0===t&&(t=A$),!e)return
|
|
13432
13436
|
;const{top:n,left:r,bottom:o,right:a}=t(e)
|
|
13433
|
-
;
|
|
13434
|
-
block:"center",inline:"center"})}(n),t(
|
|
13435
|
-
const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=
|
|
13437
|
+
;k$(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({
|
|
13438
|
+
block:"center",inline:"center"})}(n),t(v$)}handleKeyDown(e){if(t$(e)){
|
|
13439
|
+
const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=Q$,coordinateGetter:a=eB,scrollBehavior:i="smooth"}=r,{code:l}=e
|
|
13436
13440
|
;if(o.end.includes(l))return void this.handleEnd(e)
|
|
13437
13441
|
;if(o.cancel.includes(l))return void this.handleCancel(e)
|
|
13438
|
-
;const{collisionRect:c}=n.current,s=c?{x:c.left,y:c.top}:
|
|
13442
|
+
;const{collisionRect:c}=n.current,s=c?{x:c.left,y:c.top}:v$
|
|
13439
13443
|
;this.referenceCoordinates||(this.referenceCoordinates=s);const u=a(e,{active:t,
|
|
13440
|
-
context:n.current,currentCoordinates:s});if(u){const t=
|
|
13444
|
+
context:n.current,currentCoordinates:s});if(u){const t=e$(u,s),r={x:0,y:0
|
|
13441
13445
|
},{scrollableAncestors:o}=n.current;for(const n of o){
|
|
13442
|
-
const o=e.code,{isTop:a,isRight:l,isLeft:c,isBottom:s,maxScroll:d,minScroll:h}=
|
|
13443
|
-
x:Math.min(o===
|
|
13444
|
-
y:Math.min(o===
|
|
13445
|
-
},m=o===
|
|
13446
|
+
const o=e.code,{isTop:a,isRight:l,isLeft:c,isBottom:s,maxScroll:d,minScroll:h}=F$(n),f=j$(n),p={
|
|
13447
|
+
x:Math.min(o===Z$.Right?f.right-f.width/2:f.right,Math.max(o===Z$.Right?f.left:f.left+f.width/2,u.x)),
|
|
13448
|
+
y:Math.min(o===Z$.Down?f.bottom-f.height/2:f.bottom,Math.max(o===Z$.Down?f.top:f.top+f.height/2,u.y))
|
|
13449
|
+
},m=o===Z$.Right&&!l||o===Z$.Left&&!c,v=o===Z$.Down&&!s||o===Z$.Up&&!a
|
|
13446
13450
|
;if(m&&p.x!==u.x){
|
|
13447
|
-
const e=n.scrollLeft+t.x,a=o===
|
|
13451
|
+
const e=n.scrollLeft+t.x,a=o===Z$.Right&&e<=d.x||o===Z$.Left&&e>=h.x
|
|
13448
13452
|
;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i})
|
|
13449
|
-
;r.x=a?n.scrollLeft-e:o===
|
|
13453
|
+
;r.x=a?n.scrollLeft-e:o===Z$.Right?n.scrollLeft-d.x:n.scrollLeft-h.x,
|
|
13450
13454
|
r.x&&n.scrollBy({left:-r.x,behavior:i});break}if(v&&p.y!==u.y){
|
|
13451
|
-
const e=n.scrollTop+t.y,a=o===
|
|
13455
|
+
const e=n.scrollTop+t.y,a=o===Z$.Down&&e<=d.y||o===Z$.Up&&e>=h.y
|
|
13452
13456
|
;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i})
|
|
13453
|
-
;r.y=a?n.scrollTop-e:o===
|
|
13457
|
+
;r.y=a?n.scrollTop-e:o===Z$.Down?n.scrollTop-d.y:n.scrollTop-h.y,
|
|
13454
13458
|
r.y&&n.scrollBy({top:-r.y,behavior:i});break}}
|
|
13455
|
-
this.handleMove(e,
|
|
13459
|
+
this.handleMove(e,QF(e$(u,this.referenceCoordinates),r))}}}handleMove(e,t){
|
|
13456
13460
|
const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){
|
|
13457
13461
|
const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){
|
|
13458
13462
|
const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){
|
|
13459
|
-
this.listeners.removeAll(),this.windowListeners.removeAll()}}function
|
|
13460
|
-
return Boolean(e&&"distance"in e)}function
|
|
13461
|
-
|
|
13462
|
-
let{keyboardCodes:r=
|
|
13463
|
+
this.listeners.removeAll(),this.windowListeners.removeAll()}}function nB(e){
|
|
13464
|
+
return Boolean(e&&"distance"in e)}function rB(e){return Boolean(e&&"delay"in e)}
|
|
13465
|
+
tB.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{
|
|
13466
|
+
let{keyboardCodes:r=Q$,onActivation:o}=t,{active:a}=n
|
|
13463
13467
|
;const{code:i}=e.nativeEvent;if(r.start.includes(i)){
|
|
13464
13468
|
const t=a.activatorNode.current
|
|
13465
13469
|
;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent
|
|
13466
|
-
}),!0)}return!1}}];class
|
|
13467
|
-
const{EventTarget:t}=
|
|
13470
|
+
}),!0)}return!1}}];class oB{constructor(e,t,n){var r;void 0===n&&(n=function(e){
|
|
13471
|
+
const{EventTarget:t}=NF(e);return e instanceof t?e:jF(e)
|
|
13468
13472
|
}(e.event.target)),this.props=void 0,
|
|
13469
13473
|
this.events=void 0,this.autoScrollEnabled=!0,
|
|
13470
13474
|
this.document=void 0,this.activated=!1,
|
|
@@ -13472,9 +13476,9 @@ this.initialCoordinates=void 0,this.timeoutId=null,
|
|
|
13472
13476
|
this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,
|
|
13473
13477
|
this.props=e,this.events=t;const{event:o}=e,{target:a}=o
|
|
13474
13478
|
;this.props=e,this.events=t,
|
|
13475
|
-
this.document=
|
|
13476
|
-
this.listeners=new
|
|
13477
|
-
this.windowListeners=new
|
|
13479
|
+
this.document=jF(a),this.documentListeners=new G$(this.document),
|
|
13480
|
+
this.listeners=new G$(n),
|
|
13481
|
+
this.windowListeners=new G$(NF(a)),this.initialCoordinates=null!=(r=n$(o))?r:v$,
|
|
13478
13482
|
this.handleStart=this.handleStart.bind(this),
|
|
13479
13483
|
this.handleMove=this.handleMove.bind(this),
|
|
13480
13484
|
this.handleEnd=this.handleEnd.bind(this),
|
|
@@ -13485,184 +13489,184 @@ attach(){
|
|
|
13485
13489
|
const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this
|
|
13486
13490
|
;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1
|
|
13487
13491
|
}),this.listeners.add(e.end.name,this.handleEnd),
|
|
13488
|
-
this.windowListeners.add(
|
|
13489
|
-
this.windowListeners.add(
|
|
13490
|
-
this.windowListeners.add(
|
|
13491
|
-
this.windowListeners.add(
|
|
13492
|
-
this.documentListeners.add(
|
|
13492
|
+
this.windowListeners.add(q$.Resize,this.handleCancel),
|
|
13493
|
+
this.windowListeners.add(q$.DragStart,X$),
|
|
13494
|
+
this.windowListeners.add(q$.VisibilityChange,this.handleCancel),
|
|
13495
|
+
this.windowListeners.add(q$.ContextMenu,X$),
|
|
13496
|
+
this.documentListeners.add(q$.Keydown,this.handleKeydown),t){if(null!=n&&n({
|
|
13493
13497
|
event:this.props.event,activeNode:this.props.activeNode,
|
|
13494
13498
|
options:this.props.options}))return this.handleStart()
|
|
13495
|
-
;if(
|
|
13496
|
-
;if(
|
|
13499
|
+
;if(rB(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))
|
|
13500
|
+
;if(nB(t))return}this.handleStart()}detach(){
|
|
13497
13501
|
this.listeners.removeAll(),this.windowListeners.removeAll(),
|
|
13498
13502
|
setTimeout(this.documentListeners.removeAll,50),
|
|
13499
13503
|
null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}
|
|
13500
13504
|
handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props
|
|
13501
|
-
;e&&(this.activated=!0,this.documentListeners.add(
|
|
13505
|
+
;e&&(this.activated=!0,this.documentListeners.add(q$.Click,J$,{capture:!0
|
|
13502
13506
|
}),this.removeTextSelection(),
|
|
13503
|
-
this.documentListeners.add(
|
|
13507
|
+
this.documentListeners.add(q$.SelectionChange,this.removeTextSelection),t(e))}
|
|
13504
13508
|
handleMove(e){var t
|
|
13505
13509
|
;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:i}}=o
|
|
13506
|
-
;if(!r)return;const l=null!=(t=
|
|
13507
|
-
if(null!=i.tolerance&&
|
|
13508
|
-
;if(
|
|
13509
|
-
return
|
|
13510
|
+
;if(!r)return;const l=null!=(t=n$(e))?t:v$,c=e$(r,l);if(!n&&i){if(nB(i)){
|
|
13511
|
+
if(null!=i.tolerance&&K$(c,i.tolerance))return this.handleCancel()
|
|
13512
|
+
;if(K$(c,i.distance))return this.handleStart()}
|
|
13513
|
+
return rB(i)&&K$(c,i.tolerance)?this.handleCancel():void 0}
|
|
13510
13514
|
e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onEnd:e}=this.props
|
|
13511
13515
|
;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()
|
|
13512
|
-
}handleKeydown(e){e.code===
|
|
13513
|
-
var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const
|
|
13514
|
-
move:{name:"pointermove"},end:{name:"pointerup"}};class
|
|
13515
|
-
constructor(e){const{event:t}=e,n=
|
|
13516
|
+
}handleKeydown(e){e.code===Z$.Esc&&this.handleCancel()}removeTextSelection(){
|
|
13517
|
+
var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const aB={
|
|
13518
|
+
move:{name:"pointermove"},end:{name:"pointerup"}};class iB extends oB{
|
|
13519
|
+
constructor(e){const{event:t}=e,n=jF(t.target);super(e,aB,n)}}iB.activators=[{
|
|
13516
13520
|
eventName:"onPointerDown",handler:(e,t)=>{
|
|
13517
13521
|
let{nativeEvent:n}=e,{onActivation:r}=t
|
|
13518
|
-
;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const
|
|
13519
|
-
move:{name:"mousemove"},end:{name:"mouseup"}};var
|
|
13520
|
-
e[e.RightClick=2]="RightClick"}(
|
|
13521
|
-
super(e,
|
|
13522
|
+
;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const lB={
|
|
13523
|
+
move:{name:"mousemove"},end:{name:"mouseup"}};var cB;!function(e){
|
|
13524
|
+
e[e.RightClick=2]="RightClick"}(cB||(cB={}));class sB extends oB{constructor(e){
|
|
13525
|
+
super(e,lB,jF(e.event.target))}}sB.activators=[{eventName:"onMouseDown",
|
|
13522
13526
|
handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t
|
|
13523
|
-
;return n.button!==
|
|
13524
|
-
name:"touchmove"},end:{name:"touchend"}};class
|
|
13525
|
-
super(e,
|
|
13526
|
-
capture:!1,passive:!1}),function(){window.removeEventListener(
|
|
13527
|
-
;function e(){}}}var
|
|
13528
|
-
let{acceleration:n,activator:r=
|
|
13529
|
-
;const p=function(e){let{delta:t,disabled:n}=e;const r=
|
|
13530
|
-
if(n||!r||!e)return
|
|
13531
|
-
;return{x:{[
|
|
13532
|
-
[
|
|
13533
|
-
[
|
|
13527
|
+
;return n.button!==cB.RightClick&&(null==r||r({event:n}),!0)}}];const uB={move:{
|
|
13528
|
+
name:"touchmove"},end:{name:"touchend"}};class dB extends oB{constructor(e){
|
|
13529
|
+
super(e,uB)}static setup(){return window.addEventListener(uB.move.name,e,{
|
|
13530
|
+
capture:!1,passive:!1}),function(){window.removeEventListener(uB.move.name,e)}
|
|
13531
|
+
;function e(){}}}var hB,fB;function pB(t){
|
|
13532
|
+
let{acceleration:n,activator:r=hB.Pointer,canScroll:o,draggingRect:a,enabled:i,interval:l=5,order:c=fB.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:d,delta:h,threshold:f}=t
|
|
13533
|
+
;const p=function(e){let{delta:t,disabled:n}=e;const r=qF(t);return GF((e=>{
|
|
13534
|
+
if(n||!r||!e)return mB;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)}
|
|
13535
|
+
;return{x:{[O$.Backward]:e.x[O$.Backward]||-1===o.x,
|
|
13536
|
+
[O$.Forward]:e.x[O$.Forward]||1===o.x},y:{
|
|
13537
|
+
[O$.Backward]:e.y[O$.Backward]||-1===o.y,[O$.Forward]:e.y[O$.Forward]||1===o.y}}
|
|
13534
13538
|
}),[n,t,r])}({delta:h,disabled:!i}),[m,v]=function(){const t=e.useRef(null)
|
|
13535
13539
|
;return[e.useCallback(((e,n)=>{t.current=setInterval(e,n)
|
|
13536
13540
|
}),[]),e.useCallback((()=>{
|
|
13537
13541
|
null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]
|
|
13538
13542
|
}(),g=e.useRef({x:0,y:0}),y=e.useRef({x:0,y:0}),b=e.useMemo((()=>{switch(r){
|
|
13539
|
-
case
|
|
13540
|
-
;case
|
|
13543
|
+
case hB.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null
|
|
13544
|
+
;case hB.DraggableRect:return a}
|
|
13541
13545
|
}),[r,a,s]),w=e.useRef(null),C=e.useCallback((()=>{const e=w.current
|
|
13542
13546
|
;if(!e)return;const t=g.current.x*y.current.x,n=g.current.y*y.current.y
|
|
13543
13547
|
;e.scrollBy(t,n)
|
|
13544
|
-
}),[]),z=e.useMemo((()=>c===
|
|
13548
|
+
}),[]),z=e.useMemo((()=>c===fB.TreeOrder?[...u].reverse():u),[c,u])
|
|
13545
13549
|
;e.useEffect((()=>{if(i&&u.length&&b){for(const e of z){
|
|
13546
13550
|
if(!1===(null==o?void 0:o(e)))continue;const t=u.indexOf(e),r=d[t]
|
|
13547
|
-
;if(!r)continue;const{direction:a,speed:i}=
|
|
13551
|
+
;if(!r)continue;const{direction:a,speed:i}=B$(e,r,b,n,f)
|
|
13548
13552
|
;for(const e of["x","y"])p[e][a[e]]||(i[e]=0,a[e]=0);if(i.x>0||i.y>0)return v(),
|
|
13549
13553
|
w.current=e,m(C,l),g.current=i,void(y.current=a)}g.current={x:0,y:0},y.current={
|
|
13550
13554
|
x:0,y:0},v()}else v()
|
|
13551
13555
|
}),[n,C,o,v,i,l,JSON.stringify(b),JSON.stringify(p),m,u,z,d,JSON.stringify(f)])}
|
|
13552
|
-
|
|
13556
|
+
dB.activators=[{eventName:"onTouchStart",handler:(e,t)=>{
|
|
13553
13557
|
let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n
|
|
13554
13558
|
;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){
|
|
13555
13559
|
e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"
|
|
13556
|
-
}(
|
|
13560
|
+
}(hB||(hB={})),function(e){
|
|
13557
13561
|
e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"
|
|
13558
|
-
}(
|
|
13559
|
-
[
|
|
13562
|
+
}(fB||(fB={}));const mB={x:{[O$.Backward]:!1,[O$.Forward]:!1},y:{
|
|
13563
|
+
[O$.Backward]:!1,[O$.Forward]:!1}};var vB,gB;!function(e){
|
|
13560
13564
|
e[e.Always=0]="Always",
|
|
13561
13565
|
e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"
|
|
13562
|
-
}(
|
|
13563
|
-
;const
|
|
13564
|
-
return
|
|
13565
|
-
let{callback:n,disabled:r}=t;const o
|
|
13566
|
+
}(vB||(vB={})),function(e){e.Optimized="optimized"}(gB||(gB={}))
|
|
13567
|
+
;const yB=new Map;function bB(e,t){
|
|
13568
|
+
return GF((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function wB(t){
|
|
13569
|
+
let{callback:n,disabled:r}=t;const o=YF(n),a=e.useMemo((()=>{
|
|
13566
13570
|
if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return
|
|
13567
13571
|
;const{ResizeObserver:e}=window;return new e(o)}),[r])
|
|
13568
13572
|
;return e.useEffect((()=>()=>null==a?void 0:a.disconnect()),[a]),a}
|
|
13569
|
-
function
|
|
13573
|
+
function CB(e){return new W$(A$(e),e)}function zB(t,n,r){void 0===n&&(n=CB)
|
|
13570
13574
|
;const[o,a]=e.useReducer((function(e){if(!t)return null;var o
|
|
13571
13575
|
;if(!1===t.isConnected)return null!=(o=null!=e?e:r)?o:null;const a=n(t)
|
|
13572
13576
|
;if(JSON.stringify(e)===JSON.stringify(a))return e;return a
|
|
13573
13577
|
}),null),i=function(t){let{callback:n,disabled:r}=t
|
|
13574
|
-
;const o
|
|
13578
|
+
;const o=YF(n),a=e.useMemo((()=>{
|
|
13575
13579
|
if(r||"undefined"==typeof window||void 0===window.MutationObserver)return
|
|
13576
13580
|
;const{MutationObserver:e}=window;return new e(o)}),[o,r])
|
|
13577
13581
|
;return e.useEffect((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({
|
|
13578
13582
|
callback(e){if(t)for(const n of e){const{type:e,target:r}=n
|
|
13579
13583
|
;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){a();break}}}
|
|
13580
|
-
}),l=
|
|
13584
|
+
}),l=wB({callback:a});return UF((()=>{
|
|
13581
13585
|
a(),t?(null==l||l.observe(t),null==i||i.observe(document.body,{childList:!0,
|
|
13582
13586
|
subtree:!0})):(null==l||l.disconnect(),null==i||i.disconnect())}),[t]),o}
|
|
13583
|
-
const
|
|
13584
|
-
;return e.useEffect((()=>{r.current=null}),n),e.useEffect((()=>{const e=t!==
|
|
13587
|
+
const MB=[];function xB(t,n){void 0===n&&(n=[]);const r=e.useRef(null)
|
|
13588
|
+
;return e.useEffect((()=>{r.current=null}),n),e.useEffect((()=>{const e=t!==v$
|
|
13585
13589
|
;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)
|
|
13586
|
-
}),[t]),r.current?
|
|
13590
|
+
}),[t]),r.current?e$(t,r.current):v$}function EB(t){
|
|
13587
13591
|
return e.useMemo((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{
|
|
13588
|
-
top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const
|
|
13589
|
-
;function
|
|
13592
|
+
top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const SB=[]
|
|
13593
|
+
;function _B(t){let{measure:n}=t
|
|
13590
13594
|
;const[r,o]=e.useState(null),a=e.useCallback((e=>{
|
|
13591
|
-
for(const{target:t}of e)if(
|
|
13592
|
-
width:r.width,height:r.height}:r}));break}}),[n]),i=
|
|
13595
|
+
for(const{target:t}of e)if($F(t)){o((e=>{const r=n(t);return e?{...e,
|
|
13596
|
+
width:r.width,height:r.height}:r}));break}}),[n]),i=wB({callback:a
|
|
13593
13597
|
}),l=e.useCallback((e=>{const t=function(e){if(!e)return null
|
|
13594
|
-
;if(e.children.length>1)return e;const t=e.children[0];return
|
|
13598
|
+
;if(e.children.length>1)return e;const t=e.children[0];return $F(t)?t:e}(e)
|
|
13595
13599
|
;null==i||i.disconnect(),t&&(null==i||i.observe(t)),o(t?n(t):null)
|
|
13596
|
-
}),[n,i]),[c,s]=
|
|
13597
|
-
})),[r,c,s])}const
|
|
13598
|
-
current:{}},
|
|
13599
|
-
strategy:
|
|
13600
|
-
;class
|
|
13600
|
+
}),[n,i]),[c,s]=KF(l);return e.useMemo((()=>({nodeRef:c,rect:r,setRef:s
|
|
13601
|
+
})),[r,c,s])}const HB=[{sensor:iB,options:{}},{sensor:tB,options:{}}],DB={
|
|
13602
|
+
current:{}},AB={draggable:{measure:L$},droppable:{measure:L$,
|
|
13603
|
+
strategy:vB.WhileDragging,frequency:gB.Optimized},dragOverlay:{measure:A$}}
|
|
13604
|
+
;class LB extends Map{get(e){var t
|
|
13601
13605
|
;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){
|
|
13602
13606
|
return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{
|
|
13603
13607
|
let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n
|
|
13604
13608
|
;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}
|
|
13605
|
-
const
|
|
13609
|
+
const VB={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,
|
|
13606
13610
|
collisions:null,containerNodeRect:null,draggableNodes:new Map,
|
|
13607
|
-
droppableRects:new Map,droppableContainers:new
|
|
13608
|
-
nodeRef:{current:null},rect:null,setRef:
|
|
13609
|
-
scrollableAncestorRects:[],measuringConfiguration:
|
|
13610
|
-
measureDroppableContainers:
|
|
13611
|
+
droppableRects:new Map,droppableContainers:new LB,over:null,dragOverlay:{
|
|
13612
|
+
nodeRef:{current:null},rect:null,setRef:p$},scrollableAncestors:[],
|
|
13613
|
+
scrollableAncestorRects:[],measuringConfiguration:AB,
|
|
13614
|
+
measureDroppableContainers:p$,windowRect:null,measuringScheduled:!1},kB={
|
|
13611
13615
|
activatorEvent:null,activators:[],active:null,activeNodeRect:null,
|
|
13612
|
-
ariaDescribedById:{draggable:""},dispatch:
|
|
13613
|
-
measureDroppableContainers:
|
|
13614
|
-
;function
|
|
13615
|
-
nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new
|
|
13616
|
-
function
|
|
13616
|
+
ariaDescribedById:{draggable:""},dispatch:p$,draggableNodes:new Map,over:null,
|
|
13617
|
+
measureDroppableContainers:p$},TB=e.createContext(kB),RB=e.createContext(VB)
|
|
13618
|
+
;function PB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},
|
|
13619
|
+
nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new LB}}}
|
|
13620
|
+
function IB(e,t){switch(t.type){case f$.DragStart:return{...e,draggable:{
|
|
13617
13621
|
...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}}
|
|
13618
|
-
;case
|
|
13622
|
+
;case f$.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,
|
|
13619
13623
|
translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,
|
|
13620
|
-
y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case
|
|
13621
|
-
case
|
|
13622
|
-
initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case
|
|
13623
|
-
const{element:n}=t,{id:r}=n,o=new
|
|
13624
|
-
...e,droppable:{...e.droppable,containers:o}}}case
|
|
13624
|
+
y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case f$.DragEnd:
|
|
13625
|
+
case f$.DragCancel:return{...e,draggable:{...e.draggable,active:null,
|
|
13626
|
+
initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case f$.RegisterDroppable:{
|
|
13627
|
+
const{element:n}=t,{id:r}=n,o=new LB(e.droppable.containers);return o.set(r,n),{
|
|
13628
|
+
...e,droppable:{...e.droppable,containers:o}}}case f$.SetDroppableDisabled:{
|
|
13625
13629
|
const{id:n,key:r,disabled:o}=t,a=e.droppable.containers.get(n)
|
|
13626
|
-
;if(!a||r!==a.key)return e;const i=new
|
|
13630
|
+
;if(!a||r!==a.key)return e;const i=new LB(e.droppable.containers)
|
|
13627
13631
|
;return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}
|
|
13628
|
-
}}case
|
|
13632
|
+
}}case f$.UnregisterDroppable:{
|
|
13629
13633
|
const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e
|
|
13630
|
-
;const a=new
|
|
13631
|
-
...e.droppable,containers:a}}}default:return e}}function
|
|
13632
|
-
;const{active:r,activatorEvent:o,draggableNodes:a}=e.useContext(
|
|
13633
|
-
;return e.useEffect((()=>{if(!n&&!o&&i&&null!=l){if(!
|
|
13634
|
+
;const a=new LB(e.droppable.containers);return a.delete(n),{...e,droppable:{
|
|
13635
|
+
...e.droppable,containers:a}}}default:return e}}function OB(t){let{disabled:n}=t
|
|
13636
|
+
;const{active:r,activatorEvent:o,draggableNodes:a}=e.useContext(TB),i=qF(o),l=qF(null==r?void 0:r.id)
|
|
13637
|
+
;return e.useEffect((()=>{if(!n&&!o&&i&&null!=l){if(!t$(i))return
|
|
13634
13638
|
;if(document.activeElement===i.target)return;const e=a.get(l);if(!e)return
|
|
13635
13639
|
;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return
|
|
13636
13640
|
;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue
|
|
13637
|
-
;const t=
|
|
13638
|
-
const
|
|
13641
|
+
;const t=a$(e);if(t){t.focus();break}}}))}}),[o,n,a,l,i]),null}
|
|
13642
|
+
const NB=e.createContext({...v$,scaleX:1,scaleY:1});var FB;!function(e){
|
|
13639
13643
|
e[e.Uninitialized=0]="Uninitialized",
|
|
13640
13644
|
e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"
|
|
13641
|
-
}(
|
|
13642
|
-
;let{id:l,accessibility:c,autoScroll:s=!0,children:u,sensors:d=
|
|
13643
|
-
;const v=e.useReducer(
|
|
13645
|
+
}(FB||(FB={}));const $B=e.memo((function(n){var r,o,a,i
|
|
13646
|
+
;let{id:l,accessibility:c,autoScroll:s=!0,children:u,sensors:d=HB,collisionDetection:h=E$,measuring:f,modifiers:p,...m}=n
|
|
13647
|
+
;const v=e.useReducer(IB,void 0,PB),[g,y]=v,[b,w]=function(){
|
|
13644
13648
|
const[t]=e.useState((()=>new Set)),n=e.useCallback((e=>(t.add(e),
|
|
13645
13649
|
()=>t.delete(e))),[t]);return[e.useCallback((e=>{let{type:n,event:r}=e
|
|
13646
13650
|
;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]),n]
|
|
13647
|
-
}(),[C,z]=e.useState(
|
|
13651
|
+
}(),[C,z]=e.useState(FB.Uninitialized),M=C===FB.Initialized,{draggable:{active:x,nodes:E,translate:S},droppable:{containers:_}}=g,H=x?E.get(x):null,D=e.useRef({
|
|
13648
13652
|
initial:null,translated:null}),A=e.useMemo((()=>{var e;return null!=x?{id:x,
|
|
13649
|
-
data:null!=(e=null==H?void 0:H.data)?e:
|
|
13650
|
-
}),[x,H]),L=e.useRef(null),[V,k]=e.useState(null),[T,R]=e.useState(null),P=
|
|
13651
|
-
return e.useMemo((()=>({draggable:{...
|
|
13652
|
-
},droppable:{...
|
|
13653
|
-
...
|
|
13653
|
+
data:null!=(e=null==H?void 0:H.data)?e:DB,rect:D}:null
|
|
13654
|
+
}),[x,H]),L=e.useRef(null),[V,k]=e.useState(null),[T,R]=e.useState(null),P=WF(m,Object.values(m)),I=XF("DndDescribedBy",l),O=e.useMemo((()=>_.getEnabled()),[_]),N=function(t){
|
|
13655
|
+
return e.useMemo((()=>({draggable:{...AB.draggable,...null==t?void 0:t.draggable
|
|
13656
|
+
},droppable:{...AB.droppable,...null==t?void 0:t.droppable},dragOverlay:{
|
|
13657
|
+
...AB.dragOverlay,...null==t?void 0:t.dragOverlay}
|
|
13654
13658
|
})),[null==t?void 0:t.draggable,null==t?void 0:t.droppable,null==t?void 0:t.dragOverlay])
|
|
13655
13659
|
}(f),{droppableRects:F,measureDroppableContainers:$,measuringScheduled:B}=function(t,n){
|
|
13656
13660
|
let{dragging:r,dependencies:o,config:a}=n
|
|
13657
13661
|
;const[i,l]=e.useState(null),{frequency:c,measure:s,strategy:u}=a,d=e.useRef(t),h=function(){
|
|
13658
|
-
switch(u){case
|
|
13659
|
-
return!r}}(),f=
|
|
13662
|
+
switch(u){case vB.Always:return!1;case vB.BeforeDragging:return r;default:
|
|
13663
|
+
return!r}}(),f=WF(h),p=e.useCallback((function(e){
|
|
13660
13664
|
void 0===e&&(e=[]),f.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))
|
|
13661
|
-
}),[f]),m=e.useRef(null),v=
|
|
13662
|
-
;if(!e||e===
|
|
13665
|
+
}),[f]),m=e.useRef(null),v=GF((e=>{if(h&&!r)return yB
|
|
13666
|
+
;if(!e||e===yB||d.current!==t||null!=i){const e=new Map;for(let n of t){
|
|
13663
13667
|
if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){
|
|
13664
13668
|
e.set(n.id,n.rect.current);continue}
|
|
13665
|
-
const t=n.node.current,r=t?new
|
|
13669
|
+
const t=n.node.current,r=t?new W$(s(t),t):null;n.rect.current=r,r&&e.set(n.id,r)
|
|
13666
13670
|
}return e}return e}),[t,i,r,h,s]);return e.useEffect((()=>{d.current=t
|
|
13667
13671
|
}),[t]),e.useEffect((()=>{h||p()}),[r,h]),e.useEffect((()=>{
|
|
13668
13672
|
i&&i.length>0&&l(null)}),[JSON.stringify(i)]),e.useEffect((()=>{
|
|
@@ -13670,74 +13674,74 @@ h||"number"!=typeof c||null!==m.current||(m.current=setTimeout((()=>{
|
|
|
13670
13674
|
p(),m.current=null}),c))}),[c,h,p,...o]),{droppableRects:v,
|
|
13671
13675
|
measureDroppableContainers:p,measuringScheduled:null!=i}}(O,{dragging:M,
|
|
13672
13676
|
dependencies:[S.x,S.y],config:N.droppable}),j=function(e,t){
|
|
13673
|
-
const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return
|
|
13677
|
+
const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return GF((e=>{var n
|
|
13674
13678
|
;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])
|
|
13675
|
-
}(E,x),U=e.useMemo((()=>T?
|
|
13679
|
+
}(E,x),U=e.useMemo((()=>T?n$(T):null),[T]),Y=function(){
|
|
13676
13680
|
const e=!1===(null==V?void 0:V.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=M&&!e&&!t
|
|
13677
13681
|
;if("object"==typeof s)return{...s,enabled:n};return{enabled:n}
|
|
13678
|
-
}(),W=function(e,t){return
|
|
13682
|
+
}(),W=function(e,t){return bB(e,t)}(j,N.draggable.measure);!function(t){
|
|
13679
13683
|
let{activeNode:n,measure:r,initialRect:o,config:a=!0}=t
|
|
13680
|
-
;const i=e.useRef(!1),{x:l,y:c}="boolean"==typeof a?{x:a,y:a}:a;
|
|
13684
|
+
;const i=e.useRef(!1),{x:l,y:c}="boolean"==typeof a?{x:a,y:a}:a;UF((()=>{
|
|
13681
13685
|
if(!l&&!c||!n)return void(i.current=!1);if(i.current||!o)return
|
|
13682
13686
|
;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return
|
|
13683
|
-
;const t=
|
|
13687
|
+
;const t=S$(r(e),o)
|
|
13684
13688
|
;if(l||(t.x=0),c||(t.y=0),i.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){
|
|
13685
|
-
const n=
|
|
13689
|
+
const n=k$(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,l,c,o,r])}({
|
|
13686
13690
|
activeNode:x?E.get(x):null,config:Y.layoutShiftCompensation,initialRect:W,
|
|
13687
13691
|
measure:N.draggable.measure})
|
|
13688
|
-
;const G=
|
|
13692
|
+
;const G=zB(j,N.draggable.measure,W),K=zB(j?j.parentElement:null),q=e.useRef({
|
|
13689
13693
|
activatorEvent:null,active:null,activeNode:j,collisionRect:null,collisions:null,
|
|
13690
13694
|
droppableRects:F,draggableNodes:E,draggingNode:null,draggingNodeRect:null,
|
|
13691
13695
|
droppableContainers:_,over:null,scrollableAncestors:[],
|
|
13692
13696
|
scrollAdjustedTranslate:null
|
|
13693
|
-
}),Z=_.getNodeFor(null==(r=q.current.over)?void 0:r.id),X=
|
|
13697
|
+
}),Z=_.getNodeFor(null==(r=q.current.over)?void 0:r.id),X=_B({
|
|
13694
13698
|
measure:N.dragOverlay.measure
|
|
13695
|
-
}),J=null!=(o=X.nodeRef.current)?o:j,Q=M?null!=(a=X.rect)?a:G:null,ee=Boolean(X.nodeRef.current&&X.rect),te=
|
|
13696
|
-
;var ne;const re=
|
|
13697
|
-
const n=e.useRef(t),r=
|
|
13699
|
+
}),J=null!=(o=X.nodeRef.current)?o:j,Q=M?null!=(a=X.rect)?a:G:null,ee=Boolean(X.nodeRef.current&&X.rect),te=S$(ne=ee?null:G,bB(ne))
|
|
13700
|
+
;var ne;const re=EB(J?NF(J):null),oe=function(t){
|
|
13701
|
+
const n=e.useRef(t),r=GF((e=>t?e&&e!==MB&&t&&n.current&&t.parentNode===n.current.parentNode?e:V$(t):MB),[t])
|
|
13698
13702
|
;return e.useEffect((()=>{n.current=t}),[t]),r
|
|
13699
|
-
}(M?null!=Z?Z:j:null),ae=function(t,n){void 0===n&&(n=
|
|
13700
|
-
;const[r]=t,o=
|
|
13701
|
-
return t.length?t.map((e=>
|
|
13702
|
-
;return t.length>0&&a===
|
|
13703
|
+
}(M?null!=Z?Z:j:null),ae=function(t,n){void 0===n&&(n=A$)
|
|
13704
|
+
;const[r]=t,o=EB(r?NF(r):null),[a,i]=e.useReducer((function(){
|
|
13705
|
+
return t.length?t.map((e=>N$(e)?o:new W$(n(e),e))):SB}),SB),l=wB({callback:i})
|
|
13706
|
+
;return t.length>0&&a===SB&&i(),UF((()=>{
|
|
13703
13707
|
t.length?t.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),
|
|
13704
13708
|
i())}),[t]),a}(oe),ie=function(e,t){let{transform:n,...r}=t
|
|
13705
13709
|
;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(p,{
|
|
13706
13710
|
transform:{x:S.x-te.x,y:S.y-te.y,scaleX:1,scaleY:1},activatorEvent:T,active:A,
|
|
13707
13711
|
activeNodeRect:G,containerNodeRect:K,draggingNodeRect:Q,over:q.current.over,
|
|
13708
13712
|
overlayNodeRect:X.rect,scrollableAncestors:oe,scrollableAncestorRects:ae,
|
|
13709
|
-
windowRect:re}),le=U?
|
|
13713
|
+
windowRect:re}),le=U?QF(U,S):null,ce=function(t){
|
|
13710
13714
|
const[n,r]=e.useState(null),o=e.useRef(t),a=e.useCallback((e=>{
|
|
13711
|
-
const t=
|
|
13715
|
+
const t=T$(e.target);t&&r((e=>e?(e.set(t,I$(t)),new Map(e)):null))}),[])
|
|
13712
13716
|
;return e.useEffect((()=>{const e=o.current;if(t!==e){n(e);const i=t.map((e=>{
|
|
13713
|
-
const t=
|
|
13714
|
-
}),[t,
|
|
13717
|
+
const t=T$(e);return t?(t.addEventListener("scroll",a,{passive:!0
|
|
13718
|
+
}),[t,I$(t)]):null})).filter((e=>null!=e))
|
|
13715
13719
|
;r(i.length?new Map(i):null),o.current=t}return()=>{n(t),n(e)};function n(e){
|
|
13716
|
-
e.forEach((e=>{const t=
|
|
13720
|
+
e.forEach((e=>{const t=T$(e);null==t||t.removeEventListener("scroll",a)}))}
|
|
13717
13721
|
}),[a,t]),
|
|
13718
|
-
e.useMemo((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>
|
|
13719
|
-
}(oe),se=
|
|
13722
|
+
e.useMemo((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>QF(e,t)),v$):U$(t):v$),[t,n])
|
|
13723
|
+
}(oe),se=xB(ce),ue=xB(ce,[G]),de=QF(ie,se),he=Q?H$(Q,ie):null,fe=A&&he?h({
|
|
13720
13724
|
active:A,collisionRect:he,droppableRects:F,droppableContainers:O,
|
|
13721
13725
|
pointerCoordinates:le
|
|
13722
|
-
}):null,pe=
|
|
13726
|
+
}):null,pe=C$(fe,"id"),[me,ve]=e.useState(null),ge=function(e,t,n){return{...e,
|
|
13723
13727
|
scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}
|
|
13724
|
-
}(ee?ie:
|
|
13728
|
+
}(ee?ie:QF(ie,ue),null!=(i=null==me?void 0:me.rect)?i:null,G),ye=e.useCallback(((e,n)=>{
|
|
13725
13729
|
let{sensor:r,options:o}=n;if(null==L.current)return;const a=E.get(L.current)
|
|
13726
13730
|
;if(!a)return;const i=e.nativeEvent,l=new r({active:L.current,activeNode:a,
|
|
13727
13731
|
event:i,options:o,context:q,onStart(e){const n=L.current;if(null==n)return
|
|
13728
13732
|
;const r=E.get(n);if(!r)return;const{onDragStart:o}=P.current,a={active:{id:n,
|
|
13729
13733
|
data:r.data,rect:D}};t.unstable_batchedUpdates((()=>{
|
|
13730
|
-
null==o||o(a),z(
|
|
13731
|
-
active:n}),b({type:"onDragStart",event:a})}))},onMove(e){y({type:
|
|
13732
|
-
coordinates:e})},onEnd:c(
|
|
13734
|
+
null==o||o(a),z(FB.Initializing),y({type:f$.DragStart,initialCoordinates:e,
|
|
13735
|
+
active:n}),b({type:"onDragStart",event:a})}))},onMove(e){y({type:f$.DragMove,
|
|
13736
|
+
coordinates:e})},onEnd:c(f$.DragEnd),onCancel:c(f$.DragCancel)});function c(e){
|
|
13733
13737
|
return async function(){
|
|
13734
13738
|
const{active:n,collisions:r,over:o,scrollAdjustedTranslate:a}=q.current
|
|
13735
13739
|
;let l=null;if(n&&a){const{cancelDrop:t}=P.current;if(l={activatorEvent:i,
|
|
13736
|
-
active:n,collisions:r,delta:a,over:o},e===
|
|
13737
|
-
await Promise.resolve(t(l))&&(e=
|
|
13740
|
+
active:n,collisions:r,delta:a,over:o},e===f$.DragEnd&&"function"==typeof t){
|
|
13741
|
+
await Promise.resolve(t(l))&&(e=f$.DragCancel)}}
|
|
13738
13742
|
L.current=null,t.unstable_batchedUpdates((()=>{y({type:e
|
|
13739
|
-
}),z(
|
|
13740
|
-
;const t=e===
|
|
13743
|
+
}),z(FB.Uninitialized),ve(null),k(null),R(null)
|
|
13744
|
+
;const t=e===f$.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=P.current[t]
|
|
13741
13745
|
;null==e||e(l),b({type:t,event:l})}}))}}t.unstable_batchedUpdates((()=>{
|
|
13742
13746
|
k(l),R(e.nativeEvent)}))}),[E]),be=e.useCallback(((e,t)=>(n,r)=>{
|
|
13743
13747
|
const o=n.nativeEvent,a=E.get(r)
|
|
@@ -13746,10 +13750,10 @@ const o=n.nativeEvent,a=E.get(r)
|
|
|
13746
13750
|
}),[E,ye]),we=function(t,n){return e.useMemo((()=>t.reduce(((e,t)=>{
|
|
13747
13751
|
const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,
|
|
13748
13752
|
handler:n(e.handler,t)})))]}),[])),[t,n])}(d,be);!function(t){e.useEffect((()=>{
|
|
13749
|
-
if(!
|
|
13753
|
+
if(!PF)return;const e=t.map((e=>{let{sensor:t}=e
|
|
13750
13754
|
;return null==t.setup?void 0:t.setup()}));return()=>{
|
|
13751
13755
|
for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))
|
|
13752
|
-
}(d),
|
|
13756
|
+
}(d),UF((()=>{G&&C===FB.Initializing&&z(FB.Initialized)
|
|
13753
13757
|
}),[G,C]),e.useEffect((()=>{
|
|
13754
13758
|
const{onDragMove:e}=P.current,{active:n,activatorEvent:r,collisions:o,over:a}=q.current
|
|
13755
13759
|
;if(!n||!r)return;const i={active:n,activatorEvent:r,collisions:o,delta:{x:de.x,
|
|
@@ -13761,11 +13765,11 @@ const{active:e,activatorEvent:n,collisions:r,droppableContainers:o,scrollAdjuste
|
|
|
13761
13765
|
rect:l.rect.current,data:l.data,disabled:l.disabled}:null,s={active:e,
|
|
13762
13766
|
activatorEvent:n,collisions:r,delta:{x:a.x,y:a.y},over:c}
|
|
13763
13767
|
;t.unstable_batchedUpdates((()=>{ve(c),null==i||i(s),b({type:"onDragOver",
|
|
13764
|
-
event:s})}))}),[pe]),
|
|
13768
|
+
event:s})}))}),[pe]),UF((()=>{q.current={activatorEvent:T,active:A,activeNode:j,
|
|
13765
13769
|
collisionRect:he,collisions:fe,droppableRects:F,draggableNodes:E,draggingNode:J,
|
|
13766
13770
|
draggingNodeRect:Q,droppableContainers:_,over:me,scrollableAncestors:oe,
|
|
13767
13771
|
scrollAdjustedTranslate:de},D.current={initial:Q,translated:he}
|
|
13768
|
-
}),[A,j,fe,he,E,J,Q,F,_,me,oe,de]),
|
|
13772
|
+
}),[A,j,fe,he,E,J,Q,F,_,me,oe,de]),pB({...Y,delta:S,draggingRect:he,
|
|
13769
13773
|
pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:ae})
|
|
13770
13774
|
;const Ce=e.useMemo((()=>({active:A,activeNode:j,activeNodeRect:G,
|
|
13771
13775
|
activatorEvent:T,collisions:fe,containerNodeRect:K,dragOverlay:X,
|
|
@@ -13775,65 +13779,65 @@ measuringConfiguration:N,measuringScheduled:B,windowRect:re
|
|
|
13775
13779
|
})),[A,j,G,T,fe,K,X,E,_,F,me,$,oe,ae,N,B,re]),ze=e.useMemo((()=>({
|
|
13776
13780
|
activatorEvent:T,activators:we,active:A,activeNodeRect:G,ariaDescribedById:{
|
|
13777
13781
|
draggable:I},dispatch:y,draggableNodes:E,over:me,measureDroppableContainers:$
|
|
13778
|
-
})),[T,we,A,G,y,I,E,me,$]);return e.createElement(
|
|
13779
|
-
},e.createElement(
|
|
13780
|
-
},e.createElement(
|
|
13781
|
-
disabled:!1===(null==c?void 0:c.restoreFocus)})),e.createElement(
|
|
13782
|
+
})),[T,we,A,G,y,I,E,me,$]);return e.createElement(s$.Provider,{value:w
|
|
13783
|
+
},e.createElement(TB.Provider,{value:ze},e.createElement(RB.Provider,{value:Ce
|
|
13784
|
+
},e.createElement(NB.Provider,{value:ge},u)),e.createElement(OB,{
|
|
13785
|
+
disabled:!1===(null==c?void 0:c.restoreFocus)})),e.createElement(h$,{...c,
|
|
13782
13786
|
hiddenTextDescribedById:I}))
|
|
13783
|
-
})),
|
|
13787
|
+
})),BB=e.createContext(null),jB="button",UB="Droppable";function YB(t){
|
|
13784
13788
|
let{id:n,data:r,disabled:o=!1,attributes:a}=t
|
|
13785
|
-
;const i=
|
|
13789
|
+
;const i=XF(UB),{activators:l,activatorEvent:c,active:s,activeNodeRect:u,ariaDescribedById:d,draggableNodes:h,over:f}=e.useContext(TB),{role:p=jB,roleDescription:m="draggable",tabIndex:v=0}=null!=a?a:{},g=(null==s?void 0:s.id)===n,y=e.useContext(g?NB:BB),[b,w]=KF(),[C,z]=KF(),M=function(t,n){
|
|
13786
13790
|
return e.useMemo((()=>t.reduce(((e,t)=>{let{eventName:r,handler:o}=t
|
|
13787
|
-
;return e[r]=e=>{o(e,n)},e}),{})),[t,n])}(l,n),x=
|
|
13791
|
+
;return e[r]=e=>{o(e,n)},e}),{})),[t,n])}(l,n),x=WF(r);UF((()=>(h.set(n,{id:n,
|
|
13788
13792
|
key:i,node:b,activatorNode:C,data:x}),()=>{const e=h.get(n)
|
|
13789
13793
|
;e&&e.key===i&&h.delete(n)})),[h,n]);return{active:s,activatorEvent:c,
|
|
13790
13794
|
activeNodeRect:u,attributes:e.useMemo((()=>({role:p,tabIndex:v,
|
|
13791
|
-
"aria-disabled":o,"aria-pressed":!(!g||p!==
|
|
13795
|
+
"aria-disabled":o,"aria-pressed":!(!g||p!==jB)||void 0,"aria-roledescription":m,
|
|
13792
13796
|
"aria-describedby":d.draggable})),[o,p,v,g,m,d.draggable]),isDragging:g,
|
|
13793
13797
|
listeners:o?void 0:M,node:b,over:f,setNodeRef:w,setActivatorNodeRef:z,
|
|
13794
|
-
transform:y}}const
|
|
13798
|
+
transform:y}}const WB="Droppable",GB={timeout:25};function KB(e,t,n){const r={
|
|
13795
13799
|
...e}
|
|
13796
13800
|
;return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),
|
|
13797
13801
|
t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),
|
|
13798
|
-
r}const
|
|
13799
|
-
;const o=r[0];return t&&o?
|
|
13800
|
-
}},
|
|
13801
|
-
;return n&&r?
|
|
13802
|
-
;return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function
|
|
13802
|
+
r}const qB=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e
|
|
13803
|
+
;const o=r[0];return t&&o?KB(n,t,o):n},ZB=e=>{let{transform:t}=e;return{...t,x:0
|
|
13804
|
+
}},XB=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e
|
|
13805
|
+
;return n&&r?KB(t,n,r):t};function JB(e,t,n){const r=e.slice()
|
|
13806
|
+
;return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function QB(e,t){
|
|
13803
13807
|
return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e
|
|
13804
|
-
}),Array(e.length))}function
|
|
13805
|
-
let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const a=
|
|
13808
|
+
}),Array(e.length))}function ej(e){return null!==e&&e>=0}const tj=e=>{
|
|
13809
|
+
let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const a=JB(t,r,n),i=t[o],l=a[o]
|
|
13806
13810
|
;return l&&i?{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,
|
|
13807
|
-
scaleY:l.height/i.height}:null},
|
|
13811
|
+
scaleY:l.height/i.height}:null},nj={scaleX:1,scaleY:1},rj=e=>{var t
|
|
13808
13812
|
;let{activeIndex:n,activeNodeRect:r,index:o,rects:a,overIndex:i}=e
|
|
13809
13813
|
;const l=null!=(t=a[n])?t:r;if(!l)return null;if(o===n){const e=a[i];return e?{
|
|
13810
|
-
x:0,y:n<i?e.top+e.height-(l.top+l.height):e.top-l.top,...
|
|
13814
|
+
x:0,y:n<i?e.top+e.height-(l.top+l.height):e.top-l.top,...nj}:null}
|
|
13811
13815
|
const c=function(e,t,n){const r=e[t],o=e[t-1],a=e[t+1];if(!r)return 0
|
|
13812
13816
|
;if(n<t)return o?r.top-(o.top+o.height):a?a.top-(r.top+r.height):0
|
|
13813
13817
|
;return a?a.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(a,o,n)
|
|
13814
|
-
;return o>n&&o<=i?{x:0,y:-l.height-c,...
|
|
13815
|
-
x:0,y:0,...
|
|
13816
|
-
containerId:
|
|
13817
|
-
sortedRects:[],strategy:
|
|
13818
|
-
;function
|
|
13819
|
-
;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:d}=e.useContext(
|
|
13818
|
+
;return o>n&&o<=i?{x:0,y:-l.height-c,...nj}:o<n&&o>=i?{x:0,y:l.height+c,...nj}:{
|
|
13819
|
+
x:0,y:0,...nj}};const oj="Sortable",aj=e.createContext({activeIndex:-1,
|
|
13820
|
+
containerId:oj,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,
|
|
13821
|
+
sortedRects:[],strategy:tj,disabled:{draggable:!1,droppable:!1}})
|
|
13822
|
+
;function ij(t){let{children:n,id:r,items:o,strategy:a=tj,disabled:i=!1}=t
|
|
13823
|
+
;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:d}=e.useContext(RB),h=XF(oj,r),f=Boolean(null!==c.rect),p=e.useMemo((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),m=null!=l,v=l?p.indexOf(l.id):-1,g=u?p.indexOf(u.id):-1,y=e.useRef(p),b=!function(e,t){
|
|
13820
13824
|
if(e===t)return!0;if(e.length!==t.length)return!1
|
|
13821
13825
|
;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0
|
|
13822
13826
|
}(p,y.current),w=-1!==g&&-1===v||b,C=function(e){return"boolean"==typeof e?{
|
|
13823
|
-
draggable:e,droppable:e}:e}(i);
|
|
13827
|
+
draggable:e,droppable:e}:e}(i);UF((()=>{b&&m&&d(p)
|
|
13824
13828
|
}),[b,p,m,d]),e.useEffect((()=>{y.current=p}),[p]);const z=e.useMemo((()=>({
|
|
13825
13829
|
activeIndex:v,containerId:h,disabled:C,disableTransforms:w,items:p,overIndex:g,
|
|
13826
|
-
useDragOverlay:f,sortedRects:
|
|
13830
|
+
useDragOverlay:f,sortedRects:QB(p,s),strategy:a
|
|
13827
13831
|
})),[v,h,C.draggable,C.droppable,w,p,g,s,f,a])
|
|
13828
|
-
;return e.createElement(
|
|
13829
|
-
let{id:t,items:n,activeIndex:r,overIndex:o}=e;return
|
|
13830
|
-
},
|
|
13832
|
+
;return e.createElement(aj.Provider,{value:z},n)}const lj=e=>{
|
|
13833
|
+
let{id:t,items:n,activeIndex:r,overIndex:o}=e;return JB(n,r,o).indexOf(t)
|
|
13834
|
+
},cj=e=>{
|
|
13831
13835
|
let{containerId:t,isSorting:n,wasDragging:r,index:o,items:a,newIndex:i,previousItems:l,previousContainerId:c,transition:s}=e
|
|
13832
|
-
;return!(!s||!r)&&((l===a||o!==i)&&(!!n||i!==o&&t===c))},
|
|
13833
|
-
easing:"ease"},
|
|
13834
|
-
easing:"linear"}),
|
|
13835
|
-
let{animateLayoutChanges:n=
|
|
13836
|
-
;const{items:d,containerId:h,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:v,overIndex:g,useDragOverlay:y,strategy:b}=e.useContext(
|
|
13836
|
+
;return!(!s||!r)&&((l===a||o!==i)&&(!!n||i!==o&&t===c))},sj={duration:200,
|
|
13837
|
+
easing:"ease"},uj="transform",dj=r$.Transition.toString({property:uj,duration:0,
|
|
13838
|
+
easing:"linear"}),hj={roleDescription:"sortable"};function fj(t){
|
|
13839
|
+
let{animateLayoutChanges:n=cj,attributes:r,disabled:o,data:a,getNewIndex:i=lj,id:l,strategy:c,resizeObserverConfig:s,transition:u=sj}=t
|
|
13840
|
+
;const{items:d,containerId:h,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:v,overIndex:g,useDragOverlay:y,strategy:b}=e.useContext(aj),w=function(e,t){
|
|
13837
13841
|
var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{
|
|
13838
13842
|
draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,
|
|
13839
13843
|
droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}
|
|
@@ -13841,38 +13845,38 @@ droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}
|
|
|
13841
13845
|
},...a
|
|
13842
13846
|
})),[h,a,C,d]),M=e.useMemo((()=>d.slice(d.indexOf(l))),[d,l]),{rect:x,node:E,isOver:S,setNodeRef:_}=function(t){
|
|
13843
13847
|
let{data:n,disabled:r=!1,id:o,resizeObserverConfig:a}=t
|
|
13844
|
-
;const i=
|
|
13848
|
+
;const i=XF(WB),{active:l,dispatch:c,over:s,measureDroppableContainers:u}=e.useContext(TB),d=e.useRef({
|
|
13845
13849
|
disabled:r
|
|
13846
13850
|
}),h=e.useRef(!1),f=e.useRef(null),p=e.useRef(null),{disabled:m,updateMeasurementsFor:v,timeout:g}={
|
|
13847
|
-
...
|
|
13851
|
+
...GB,...a},y=WF(null!=v?v:o),b=wB({callback:e.useCallback((()=>{
|
|
13848
13852
|
h.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{
|
|
13849
13853
|
u(Array.isArray(y.current)?y.current:[y.current]),p.current=null
|
|
13850
13854
|
}),g)):h.current=!0}),[g]),disabled:m||!l}),w=e.useCallback(((e,t)=>{
|
|
13851
|
-
b&&(t&&(b.unobserve(t),h.current=!1),e&&b.observe(e))}),[b]),[C,z]=
|
|
13855
|
+
b&&(t&&(b.unobserve(t),h.current=!1),e&&b.observe(e))}),[b]),[C,z]=KF(w),M=WF(n)
|
|
13852
13856
|
;return e.useEffect((()=>{
|
|
13853
13857
|
b&&C.current&&(b.disconnect(),h.current=!1,b.observe(C.current))
|
|
13854
|
-
}),[C,b]),
|
|
13855
|
-
node:C,rect:f,data:M}}),()=>c({type:
|
|
13858
|
+
}),[C,b]),UF((()=>(c({type:f$.RegisterDroppable,element:{id:o,key:i,disabled:r,
|
|
13859
|
+
node:C,rect:f,data:M}}),()=>c({type:f$.UnregisterDroppable,key:i,id:o
|
|
13856
13860
|
}))),[o]),e.useEffect((()=>{r!==d.current.disabled&&(c({
|
|
13857
|
-
type:
|
|
13861
|
+
type:f$.SetDroppableDisabled,id:o,key:i,disabled:r}),d.current.disabled=r)
|
|
13858
13862
|
}),[o,i,r,c]),{active:l,rect:f,isOver:(null==s?void 0:s.id)===o,node:C,over:s,
|
|
13859
13863
|
setNodeRef:z}}({id:l,data:z,disabled:w.droppable,resizeObserverConfig:{
|
|
13860
13864
|
updateMeasurementsFor:M,...s}
|
|
13861
|
-
}),{active:H,activatorEvent:D,activeNodeRect:A,attributes:L,setNodeRef:V,listeners:k,isDragging:T,over:R,setActivatorNodeRef:P,transform:I}
|
|
13862
|
-
id:l,data:z,attributes:{...
|
|
13865
|
+
}),{active:H,activatorEvent:D,activeNodeRect:A,attributes:L,setNodeRef:V,listeners:k,isDragging:T,over:R,setActivatorNodeRef:P,transform:I}=YB({
|
|
13866
|
+
id:l,data:z,attributes:{...hj,...r},disabled:w.draggable}),O=function(){
|
|
13863
13867
|
for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r]
|
|
13864
13868
|
;return e.useMemo((()=>e=>{n.forEach((t=>t(e)))}),n)
|
|
13865
|
-
}(_,V),N=Boolean(H),F=N&&!m&&
|
|
13869
|
+
}(_,V),N=Boolean(H),F=N&&!m&&ej(f)&&ej(g),$=!y&&T,B=$&&F?I:null,j=F?null!=B?B:(null!=c?c:b)({
|
|
13866
13870
|
rects:v,activeNodeRect:A,activeIndex:f,overIndex:g,index:C
|
|
13867
|
-
}):null,U=
|
|
13871
|
+
}):null,U=ej(f)&&ej(g)?i({id:l,items:d,activeIndex:f,overIndex:g
|
|
13868
13872
|
}):C,Y=null==H?void 0:H.id,W=e.useRef({activeId:Y,items:d,newIndex:U,
|
|
13869
13873
|
containerId:h}),G=d!==W.current.items,K=n({active:H,containerId:h,isDragging:T,
|
|
13870
13874
|
isSorting:N,id:l,index:C,items:d,newIndex:W.current.newIndex,
|
|
13871
13875
|
previousItems:W.current.items,previousContainerId:W.current.containerId,
|
|
13872
13876
|
transition:u,wasDragging:null!=W.current.activeId}),q=function(t){
|
|
13873
13877
|
let{disabled:n,index:r,node:o,rect:a}=t
|
|
13874
|
-
;const[i,l]=e.useState(null),c=e.useRef(r);return
|
|
13875
|
-
if(!n&&r!==c.current&&o.current){const e=a.current;if(e){const t=
|
|
13878
|
+
;const[i,l]=e.useState(null),c=e.useRef(r);return UF((()=>{
|
|
13879
|
+
if(!n&&r!==c.current&&o.current){const e=a.current;if(e){const t=A$(o.current,{
|
|
13876
13880
|
ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,
|
|
13877
13881
|
scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==c.current&&(c.current=r)
|
|
13878
13882
|
}),[n,r,o,a]),e.useEffect((()=>{i&&l(null)}),[i]),i}({disabled:!K,index:C,
|
|
@@ -13887,32 +13891,32 @@ if(Y===W.current.activeId)return
|
|
|
13887
13891
|
items:d,isOver:S,isSorting:N,isDragging:T,listeners:k,node:E,overIndex:g,over:R,
|
|
13888
13892
|
setNodeRef:O,setActivatorNodeRef:P,setDroppableNodeRef:_,setDraggableNodeRef:V,
|
|
13889
13893
|
transform:null!=q?q:j,transition:function(){
|
|
13890
|
-
if(q||G&&W.current.newIndex===C)return
|
|
13891
|
-
;if(N||K)return
|
|
13892
|
-
function
|
|
13894
|
+
if(q||G&&W.current.newIndex===C)return dj;if($&&!t$(D)||!u)return
|
|
13895
|
+
;if(N||K)return r$.Transition.toString({...u,property:uj});return}()}}
|
|
13896
|
+
function pj(e){if(!e)return!1;const t=e.data.current
|
|
13893
13897
|
;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)
|
|
13894
|
-
}const
|
|
13898
|
+
}const mj=[Z$.Down,Z$.Right,Z$.Up,Z$.Left],vj=(e,t)=>{
|
|
13895
13899
|
let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:a,over:i,scrollableAncestors:l}}=t
|
|
13896
|
-
;if(
|
|
13900
|
+
;if(mj.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[]
|
|
13897
13901
|
;a.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return
|
|
13898
|
-
;const a=o.get(n.id);if(a)switch(e.code){case
|
|
13899
|
-
;break;case
|
|
13900
|
-
r.left>a.left&&t.push(n);break;case
|
|
13902
|
+
;const a=o.get(n.id);if(a)switch(e.code){case Z$.Down:r.top<a.top&&t.push(n)
|
|
13903
|
+
;break;case Z$.Up:r.top>a.top&&t.push(n);break;case Z$.Left:
|
|
13904
|
+
r.left>a.left&&t.push(n);break;case Z$.Right:r.left<a.left&&t.push(n)}}))
|
|
13901
13905
|
;const c=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e
|
|
13902
|
-
;const o=
|
|
13903
|
-
const n=
|
|
13904
|
-
;a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(
|
|
13906
|
+
;const o=w$(t),a=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){
|
|
13907
|
+
const n=w$(r),i=o.reduce(((e,t,r)=>e+g$(n[r],t)),0),l=Number((i/4).toFixed(4))
|
|
13908
|
+
;a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(y$)})({
|
|
13905
13909
|
active:n,collisionRect:r,droppableRects:o,droppableContainers:t,
|
|
13906
|
-
pointerCoordinates:null});let s=
|
|
13910
|
+
pointerCoordinates:null});let s=C$(c,"id")
|
|
13907
13911
|
;if(s===(null==i?void 0:i.id)&&c.length>1&&(s=c[1].id),null!=s){
|
|
13908
13912
|
const e=a.get(n.id),t=a.get(s),i=t?o.get(t.id):null,c=null==t?void 0:t.node.current
|
|
13909
|
-
;if(c&&i&&e&&t){const n=
|
|
13910
|
-
if(!
|
|
13913
|
+
;if(c&&i&&e&&t){const n=V$(c).some(((e,t)=>l[t]!==e)),o=gj(e,t),a=function(e,t){
|
|
13914
|
+
if(!pj(e)||!pj(t))return!1;if(!gj(e,t))return!1
|
|
13911
13915
|
;return e.data.current.sortable.index<t.data.current.sortable.index
|
|
13912
13916
|
}(e,t),s=n||!o?{x:0,y:0}:{x:a?r.width-i.width:0,y:a?r.height-i.height:0},u={
|
|
13913
|
-
x:i.left,y:i.top};return s.x&&s.y?u:
|
|
13914
|
-
return!(!
|
|
13915
|
-
}var
|
|
13917
|
+
x:i.left,y:i.top};return s.x&&s.y?u:e$(u,s)}}}};function gj(e,t){
|
|
13918
|
+
return!(!pj(e)||!pj(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId
|
|
13919
|
+
}var yj={exports:{}};!function(e,t){(function(){
|
|
13916
13920
|
var n,r="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",i=16,l=32,c=64,s=128,u=256,d=1/0,h=9007199254740991,f=NaN,p=4294967295,m=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",l],["partialRight",c],["rearg",u]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",C="[object Function]",z="[object GeneratorFunction]",M="[object Map]",x="[object Number]",E="[object Object]",S="[object Promise]",_="[object RegExp]",H="[object Set]",D="[object String]",A="[object Symbol]",L="[object WeakMap]",V="[object ArrayBuffer]",k="[object DataView]",T="[object Float32Array]",R="[object Float64Array]",P="[object Int8Array]",I="[object Int16Array]",O="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",j=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),q=RegExp(G.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),oe=/^\s+/,ae=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,ze="\\ud800-\\udfff",Me="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",He="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Le="["+ze+"]",Ve="["+De+"]",ke="["+Me+"]",Te="\\d+",Re="["+xe+"]",Pe="["+Ee+"]",Ie="[^"+ze+De+Te+xe+Ee+Se+"]",Oe="\\ud83c[\\udffb-\\udfff]",Ne="[^"+ze+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Se+"]",je="\\u200d",Ue="(?:"+Pe+"|"+Ie+")",Ye="(?:"+Be+"|"+Ie+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+ke+"|"+Oe+")"+"?",qe="["+He+"]?",Ze=qe+Ke+("(?:"+je+"(?:"+[Ne,Fe,$e].join("|")+")"+qe+Ke+")*"),Xe="(?:"+[Re,Fe,$e].join("|")+")"+Ze,Je="(?:"+[Ne+ke+"?",ke,Fe,$e,Le].join("|")+")",Qe=RegExp(Ae,"g"),et=RegExp(ke,"g"),tt=RegExp(Oe+"(?="+Oe+")|"+Je+Ze,"g"),nt=RegExp([Be+"?"+Pe+"+"+We+"(?="+[Ve,Be,"$"].join("|")+")",Ye+"+"+Ge+"(?="+[Ve,Be+Ue,"$"].join("|")+")",Be+"?"+Ue+"+"+We,Be+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Xe].join("|"),"g"),rt=RegExp("["+je+ze+Me+He+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,lt={}
|
|
13917
13921
|
;lt[T]=lt[R]=lt[P]=lt[I]=lt[O]=lt[N]=lt[F]=lt[$]=lt[B]=!0,
|
|
13918
13922
|
lt[v]=lt[g]=lt[V]=lt[y]=lt[k]=lt[b]=lt[w]=lt[C]=lt[M]=lt[x]=lt[E]=lt[_]=lt[H]=lt[D]=lt[L]=!1
|
|
@@ -14923,10 +14927,9 @@ func:fi,args:[ei],thisArg:n}),new jn(t,this.__chain__)}return this.thru(ei)
|
|
|
14923
14927
|
return mo(this.__wrapped__,this.__actions__)
|
|
14924
14928
|
},Fn.prototype.first=Fn.prototype.head,Xe&&(Fn.prototype[Xe]=function(){
|
|
14925
14929
|
return this}),Fn}();vt?((vt.exports=gn)._=gn,mt._=gn):pt._=gn}).call(_e)
|
|
14926
|
-
}(
|
|
14927
|
-
;const vj=()=>Math.random().toString(32).slice(2,10),gj=yr.div`
|
|
14930
|
+
}(yj,yj.exports);var bj=yj.exports;const wj=yr.div`
|
|
14928
14931
|
direction: ${({theme:e})=>e.direction};
|
|
14929
|
-
`,
|
|
14932
|
+
`,Cj=yr.div`
|
|
14930
14933
|
display: flex;
|
|
14931
14934
|
align-items: center;
|
|
14932
14935
|
border-radius: 4px;
|
|
@@ -14941,7 +14944,7 @@ return this}),Fn}();vt?((vt.exports=gn)._=gn,mt._=gn):pt._=gn}).call(_e)
|
|
|
14941
14944
|
flex: 1;
|
|
14942
14945
|
}
|
|
14943
14946
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
14944
|
-
`,
|
|
14947
|
+
`,zj=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
14945
14948
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
14946
14949
|
},e.createElement("path",{
|
|
14947
14950
|
d:"M4.83981 4.47195C4.33683 4.47519 3.88173 4.17426 3.68775 3.71019C3.49378 3.24611 3.59936 2.71083 3.95502 2.35517C4.31068 1.9995 4.84597 1.89392 5.31004 2.0879C5.77412 2.28188 6.07504 2.73698 6.07181 3.23995C6.07181 3.92037 5.52022 4.47195 4.83981 4.47195Z",
|
|
@@ -14955,28 +14958,28 @@ fill:t.fill??"currentcolor"}),e.createElement("path",{
|
|
|
14955
14958
|
d:"M4.83981 14.0719C4.33683 14.0752 3.88173 13.7742 3.68775 13.3102C3.49378 12.8461 3.59936 12.3108 3.95502 11.9551C4.31068 11.5995 4.84597 11.4939 5.31004 11.6879C5.77412 11.8819 6.07504 12.337 6.07181 12.8399C6.07181 13.5203 5.52022 14.0719 4.83981 14.0719Z",
|
|
14956
14959
|
fill:t.fill??"currentcolor"}),e.createElement("path",{
|
|
14957
14960
|
d:"M11.2397 14.0719C10.7367 14.0752 10.2816 13.7742 10.0877 13.3102C9.89368 12.8461 9.99926 12.3108 10.3549 11.9551C10.7106 11.5995 11.2459 11.4939 11.7099 11.6879C12.174 11.8819 12.4749 12.337 12.4717 12.8399C12.4717 13.5203 11.9201 14.0719 11.2397 14.0719Z",
|
|
14958
|
-
fill:t.fill??"currentcolor"})))),
|
|
14961
|
+
fill:t.fill??"currentcolor"})))),Mj=t=>{
|
|
14959
14962
|
const{items:n,customRender:r,onReorder:o,customFilter:a=(()=>!0),className:i,showDragger:l=!0,disabled:c=!1}=t,[s,u]=e.useState([]),d=function(){
|
|
14960
14963
|
for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r]
|
|
14961
14964
|
;return e.useMemo((()=>[...n].filter((e=>null!=e))),[...n])
|
|
14962
|
-
}(
|
|
14963
|
-
n&&
|
|
14964
|
-
className:i||""},e.createElement(
|
|
14965
|
+
}(m$(sB),m$(dB),m$(tB,{coordinateGetter:vj}));return e.useEffect((()=>{
|
|
14966
|
+
n&&bj.isArray(n)&&u(n.map((e=>({id:BN(),data:e}))))}),[n]),e.createElement(wj,{
|
|
14967
|
+
className:i||""},e.createElement($B,{sensors:d,collisionDetection:M$,
|
|
14965
14968
|
onDragEnd:e=>{const{active:t,over:r}=e;if(t.id!==r?.id){
|
|
14966
|
-
const e=s.map((e=>e.id)),a=e.indexOf(t.id.toString()),i=e.indexOf(r?.id.toString()||""),l=
|
|
14967
|
-
;u(l),o&&o([...c])}},modifiers:[
|
|
14968
|
-
strategy:
|
|
14969
|
+
const e=s.map((e=>e.id)),a=e.indexOf(t.id.toString()),i=e.indexOf(r?.id.toString()||""),l=JB(s,a,i),c=JB(n,a,i)
|
|
14970
|
+
;u(l),o&&o([...c])}},modifiers:[ZB,XB,qB]},e.createElement(ij,{items:s,
|
|
14971
|
+
strategy:rj},s.filter((e=>a(e.data))).map(((t,n)=>e.createElement(xj,{
|
|
14969
14972
|
customRender:r,item:t.data,disabled:c,itemIndex:n,showDragger:l,
|
|
14970
|
-
key:t.data.id.toString(),id:t.id}))))))},
|
|
14971
|
-
const n=cr(),{id:r,item:o,itemIndex:a,customRender:i,showDragger:l,disabled:c,key:s}=t,{attributes:u,listeners:d,setNodeRef:h,transform:f,transition:p}=
|
|
14972
|
-
id:r}),m={transform:
|
|
14973
|
-
;return e.createElement(
|
|
14973
|
+
key:t.data.id.toString(),id:t.id}))))))},xj=t=>{
|
|
14974
|
+
const n=cr(),{id:r,item:o,itemIndex:a,customRender:i,showDragger:l,disabled:c,key:s}=t,{attributes:u,listeners:d,setNodeRef:h,transform:f,transition:p}=fj({
|
|
14975
|
+
id:r}),m={transform:r$.Translate.toString(f),transition:p}
|
|
14976
|
+
;return e.createElement(Cj,{disabled:c,className:"ReorderItemContainer",ref:h,
|
|
14974
14977
|
style:m,...u,key:s},l&&e.createElement(Vo,{className:"ItemDragger",disabled:c,
|
|
14975
|
-
...c?{}:d},e.createElement(
|
|
14978
|
+
...c?{}:d},e.createElement(zj,{fill:n.colors.text.primary
|
|
14976
14979
|
})),e.createElement("div",{className:"CustomItem",...l?{}:d},i(o,a,d)))}
|
|
14977
|
-
;function
|
|
14978
|
-
t.setState((t=>({...t,[e]:
|
|
14979
|
-
return e instanceof Function}function
|
|
14980
|
+
;function Ej(e,t){return"function"==typeof e?e(t):e}function Sj(e,t){return n=>{
|
|
14981
|
+
t.setState((t=>({...t,[e]:Ej(n,t[e])})))}}function _j(e){
|
|
14982
|
+
return e instanceof Function}function Hj(e,t,n){let r,o=[];return a=>{let i
|
|
14980
14983
|
;n.key&&n.debug&&(i=Date.now())
|
|
14981
14984
|
;const l=e(a),c=l.length!==o.length||l.some(((e,t)=>o[t]!==e));if(!c)return r
|
|
14982
14985
|
;let s
|
|
@@ -14985,51 +14988,51 @@ n.key&&n.debug&&null!=n&&n.debug()){
|
|
|
14985
14988
|
const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,o=(e,t)=>{
|
|
14986
14989
|
for(e=String(e);e.length<t;)e=" "+e;return e}
|
|
14987
14990
|
;console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)
|
|
14988
|
-
}return r}}function
|
|
14991
|
+
}return r}}function Dj(e,t,n,r){return{debug:()=>{var n
|
|
14989
14992
|
;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},
|
|
14990
|
-
key:"development"===process.env.NODE_ENV&&n,onChange:r}}const
|
|
14991
|
-
;function
|
|
14993
|
+
key:"development"===process.env.NODE_ENV&&n,onChange:r}}const Aj="debugHeaders"
|
|
14994
|
+
;function Lj(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,
|
|
14992
14995
|
index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,
|
|
14993
14996
|
depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,
|
|
14994
14997
|
getLeafHeaders:()=>{const e=[],t=n=>{
|
|
14995
14998
|
n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e
|
|
14996
14999
|
},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{
|
|
14997
|
-
null==t.createHeader||t.createHeader(o,e)})),o}const
|
|
14998
|
-
e.getHeaderGroups=
|
|
15000
|
+
null==t.createHeader||t.createHeader(o,e)})),o}const Vj={createTable:e=>{
|
|
15001
|
+
e.getHeaderGroups=Hj((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{
|
|
14999
15002
|
var a,i
|
|
15000
15003
|
;const l=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[],c=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))))
|
|
15001
|
-
;return
|
|
15002
|
-
}),
|
|
15003
|
-
|
|
15004
|
-
e.getLeftHeaderGroups=
|
|
15004
|
+
;return kj(t,[...l,...s,...c],e)
|
|
15005
|
+
}),Dj(e.options,Aj,"getHeaderGroups")),e.getCenterHeaderGroups=Hj((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>(n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),
|
|
15006
|
+
kj(t,n,e,"center"))),Dj(e.options,Aj,"getCenterHeaderGroups")),
|
|
15007
|
+
e.getLeftHeaderGroups=Hj((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{
|
|
15005
15008
|
var o
|
|
15006
|
-
;return
|
|
15007
|
-
}),
|
|
15008
|
-
e.getRightHeaderGroups=
|
|
15009
|
+
;return kj(t,null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")
|
|
15010
|
+
}),Dj(e.options,Aj,"getLeftHeaderGroups")),
|
|
15011
|
+
e.getRightHeaderGroups=Hj((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{
|
|
15009
15012
|
var o
|
|
15010
|
-
;return
|
|
15011
|
-
}),
|
|
15012
|
-
e.getFooterGroups=
|
|
15013
|
-
e.getLeftFooterGroups=
|
|
15014
|
-
e.getCenterFooterGroups=
|
|
15015
|
-
e.getRightFooterGroups=
|
|
15016
|
-
e.getFlatHeaders=
|
|
15017
|
-
e.getLeftFlatHeaders=
|
|
15018
|
-
e.getCenterFlatHeaders=
|
|
15019
|
-
e.getRightFlatHeaders=
|
|
15020
|
-
e.getCenterLeafHeaders=
|
|
15013
|
+
;return kj(t,null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")
|
|
15014
|
+
}),Dj(e.options,Aj,"getRightHeaderGroups")),
|
|
15015
|
+
e.getFooterGroups=Hj((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),Dj(e.options,Aj,"getFooterGroups")),
|
|
15016
|
+
e.getLeftFooterGroups=Hj((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),Dj(e.options,Aj,"getLeftFooterGroups")),
|
|
15017
|
+
e.getCenterFooterGroups=Hj((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),Dj(e.options,Aj,"getCenterFooterGroups")),
|
|
15018
|
+
e.getRightFooterGroups=Hj((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),Dj(e.options,Aj,"getRightFooterGroups")),
|
|
15019
|
+
e.getFlatHeaders=Hj((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Dj(e.options,Aj,"getFlatHeaders")),
|
|
15020
|
+
e.getLeftFlatHeaders=Hj((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Dj(e.options,Aj,"getLeftFlatHeaders")),
|
|
15021
|
+
e.getCenterFlatHeaders=Hj((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Dj(e.options,Aj,"getCenterFlatHeaders")),
|
|
15022
|
+
e.getRightFlatHeaders=Hj((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Dj(e.options,Aj,"getRightFlatHeaders")),
|
|
15023
|
+
e.getCenterLeafHeaders=Hj((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{
|
|
15021
15024
|
var t;return!(null!=(t=e.subHeaders)&&t.length)
|
|
15022
|
-
}))),
|
|
15023
|
-
e.getLeftLeafHeaders=
|
|
15025
|
+
}))),Dj(e.options,Aj,"getCenterLeafHeaders")),
|
|
15026
|
+
e.getLeftLeafHeaders=Hj((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
|
|
15024
15027
|
;return!(null!=(t=e.subHeaders)&&t.length)
|
|
15025
|
-
}))),
|
|
15026
|
-
e.getRightLeafHeaders=
|
|
15028
|
+
}))),Dj(e.options,Aj,"getLeftLeafHeaders")),
|
|
15029
|
+
e.getRightLeafHeaders=Hj((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
|
|
15027
15030
|
;return!(null!=(t=e.subHeaders)&&t.length)
|
|
15028
|
-
}))),
|
|
15029
|
-
e.getLeafHeaders=
|
|
15031
|
+
}))),Dj(e.options,Aj,"getRightLeafHeaders")),
|
|
15032
|
+
e.getLeafHeaders=Hj((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{
|
|
15030
15033
|
var r,o,a,i,l,c
|
|
15031
15034
|
;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(l=null==(c=n[0])?void 0:c.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()
|
|
15032
|
-
}),
|
|
15035
|
+
}),Dj(e.options,Aj,"getLeafHeaders"))}};function kj(e,t,n,r){var o,a;let i=0
|
|
15033
15036
|
;const l=function(e,t){
|
|
15034
15037
|
void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{
|
|
15035
15038
|
var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let c=[]
|
|
@@ -15037,18 +15040,18 @@ var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let c=[]
|
|
|
15037
15040
|
headers:[]},a=[];e.forEach((e=>{const i=[...a].reverse()[0];let l,c=!1
|
|
15038
15041
|
;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,
|
|
15039
15042
|
c=!0),i&&(null==i?void 0:i.column)===l)i.subHeaders.push(e);else{
|
|
15040
|
-
const o=
|
|
15043
|
+
const o=Lj(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),
|
|
15041
15044
|
isPlaceholder:c,placeholderId:c?`${a.filter((e=>e.column===l)).length}`:void 0,
|
|
15042
15045
|
depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}
|
|
15043
15046
|
o.headers.push(e),e.headerGroup=o})),c.push(o),t>0&&s(a,t-1)
|
|
15044
|
-
},u=t.map(((e,t)=>
|
|
15047
|
+
},u=t.map(((e,t)=>Lj(n,e,{depth:i,index:t})));s(u,i-1),c.reverse();const d=e=>{
|
|
15045
15048
|
const t=e.filter((e=>e.column.getIsVisible()));return t.map((e=>{
|
|
15046
15049
|
let t=0,n=0,r=[0]
|
|
15047
15050
|
;e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{
|
|
15048
15051
|
let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1
|
|
15049
15052
|
;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}))}
|
|
15050
15053
|
;return d(null!=(o=null==(a=c[0])?void 0:a.headers)?o:[]),c}
|
|
15051
|
-
const
|
|
15054
|
+
const Tj=(e,t,n,r,o,a,i)=>{let l={id:t,index:r,original:n,depth:o,parentId:i,
|
|
15052
15055
|
_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{
|
|
15053
15056
|
if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t]
|
|
15054
15057
|
;const n=e.getColumn(t)
|
|
@@ -15066,19 +15069,19 @@ e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n
|
|
|
15066
15069
|
getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{
|
|
15067
15070
|
let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}
|
|
15068
15071
|
return e.reverse()},
|
|
15069
|
-
getAllCells:
|
|
15072
|
+
getAllCells:Hj((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){
|
|
15070
15073
|
const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),
|
|
15071
15074
|
renderValue:()=>{var t
|
|
15072
15075
|
;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},
|
|
15073
|
-
getContext:
|
|
15076
|
+
getContext:Hj((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,
|
|
15074
15077
|
getValue:r.getValue,renderValue:r.renderValue
|
|
15075
|
-
})),
|
|
15078
|
+
})),Dj(e.options,"debugCells","cell.getContext"))}
|
|
15076
15079
|
;return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)
|
|
15077
|
-
}),{}),o}(e,l,t,t.id)))),
|
|
15078
|
-
_getAllCellsByColumnId:
|
|
15079
|
-
e)),{})),
|
|
15080
|
+
}),{}),o}(e,l,t,t.id)))),Dj(e.options,"debugRows","getAllCells")),
|
|
15081
|
+
_getAllCellsByColumnId:Hj((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,
|
|
15082
|
+
e)),{})),Dj(e.options,"debugRows","getAllCellsByColumnId"))}
|
|
15080
15083
|
;for(let t=0;t<e._features.length;t++){const n=e._features[t]
|
|
15081
|
-
;null==n||null==n.createRow||n.createRow(l,e)}return l},
|
|
15084
|
+
;null==n||null==n.createRow||n.createRow(l,e)}return l},Rj={
|
|
15082
15085
|
createColumn:(e,t)=>{
|
|
15083
15086
|
e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),
|
|
15084
15087
|
e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),
|
|
@@ -15086,36 +15089,36 @@ e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFaceted
|
|
|
15086
15089
|
e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,
|
|
15087
15090
|
e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),
|
|
15088
15091
|
e.getFacetedMinMaxValues=()=>{
|
|
15089
|
-
if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},
|
|
15092
|
+
if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Pj=(e,t,n)=>{
|
|
15090
15093
|
var r;const o=n.toLowerCase()
|
|
15091
15094
|
;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))
|
|
15092
|
-
};
|
|
15095
|
+
};Pj.autoRemove=e=>Wj(e);const Ij=(e,t,n)=>{var r
|
|
15093
15096
|
;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))
|
|
15094
|
-
};
|
|
15097
|
+
};Ij.autoRemove=e=>Wj(e);const Oj=(e,t,n)=>{var r
|
|
15095
15098
|
;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())
|
|
15096
|
-
};
|
|
15099
|
+
};Oj.autoRemove=e=>Wj(e);const Nj=(e,t,n)=>{var r
|
|
15097
15100
|
;return null==(r=e.getValue(t))?void 0:r.includes(n)}
|
|
15098
|
-
;
|
|
15101
|
+
;Nj.autoRemove=e=>Wj(e)||!(null!=e&&e.length);const Fj=(e,t,n)=>!n.some((n=>{
|
|
15099
15102
|
var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}))
|
|
15100
|
-
;
|
|
15103
|
+
;Fj.autoRemove=e=>Wj(e)||!(null!=e&&e.length);const $j=(e,t,n)=>n.some((n=>{
|
|
15101
15104
|
var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}))
|
|
15102
|
-
|
|
15103
|
-
;const
|
|
15104
|
-
;const
|
|
15105
|
-
let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o}
|
|
15105
|
+
;$j.autoRemove=e=>Wj(e)||!(null!=e&&e.length)
|
|
15106
|
+
;const Bj=(e,t,n)=>e.getValue(t)===n;Bj.autoRemove=e=>Wj(e)
|
|
15107
|
+
;const jj=(e,t,n)=>e.getValue(t)==n;jj.autoRemove=e=>Wj(e);const Uj=(e,t,n)=>{
|
|
15108
|
+
let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};Uj.resolveFilterValue=e=>{
|
|
15106
15109
|
let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o
|
|
15107
15110
|
;if(a>i){const e=a;a=i,i=e}return[a,i]
|
|
15108
|
-
}
|
|
15109
|
-
includesStringSensitive:
|
|
15110
|
-
arrIncludesSome
|
|
15111
|
-
return null==e||""===e}const
|
|
15111
|
+
},Uj.autoRemove=e=>Wj(e)||Wj(e[0])&&Wj(e[1]);const Yj={includesString:Pj,
|
|
15112
|
+
includesStringSensitive:Ij,equalsString:Oj,arrIncludes:Nj,arrIncludesAll:Fj,
|
|
15113
|
+
arrIncludesSome:$j,equals:Bj,weakEquals:jj,inNumberRange:Uj};function Wj(e){
|
|
15114
|
+
return null==e||""===e}const Gj={getDefaultColumnDef:()=>({filterFn:"auto"}),
|
|
15112
15115
|
getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({
|
|
15113
|
-
onColumnFiltersChange:
|
|
15116
|
+
onColumnFiltersChange:Sj("columnFilters",e),filterFromLeafRows:!1,
|
|
15114
15117
|
maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{
|
|
15115
15118
|
const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id)
|
|
15116
|
-
;return"string"==typeof r?
|
|
15119
|
+
;return"string"==typeof r?Yj.includesString:"number"==typeof r?Yj.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Yj.equals:Array.isArray(r)?Yj.arrIncludes:Yj.weakEquals
|
|
15117
15120
|
},e.getFilterFn=()=>{var n,r
|
|
15118
|
-
;return
|
|
15121
|
+
;return _j(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Yj[e.columnDef.filterFn]
|
|
15119
15122
|
},e.getCanFilter=()=>{var n,r,o
|
|
15120
15123
|
;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn
|
|
15121
15124
|
},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n
|
|
@@ -15123,24 +15126,24 @@ const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id)
|
|
|
15123
15126
|
},e.getFilterIndex=()=>{var n,r
|
|
15124
15127
|
;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1
|
|
15125
15128
|
},e.setFilterValue=n=>{t.setColumnFilters((t=>{
|
|
15126
|
-
const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),a=
|
|
15129
|
+
const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),a=Ej(n,o?o.value:void 0)
|
|
15127
15130
|
;var i
|
|
15128
|
-
;if(
|
|
15131
|
+
;if(Kj(r,a,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[]
|
|
15129
15132
|
;const l={id:e.id,value:a};var c
|
|
15130
15133
|
;return o?null!=(c=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?c:[]:null!=t&&t.length?[...t,l]:[l]
|
|
15131
15134
|
}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},
|
|
15132
15135
|
createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns()
|
|
15133
15136
|
;null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{
|
|
15134
|
-
var r;return null==(r=
|
|
15135
|
-
const t=n.find((t=>t.id===e.id));if(t){if(
|
|
15137
|
+
var r;return null==(r=Ej(t,e))?void 0:r.filter((e=>{
|
|
15138
|
+
const t=n.find((t=>t.id===e.id));if(t){if(Kj(t.getFilterFn(),e.value,t))return!1
|
|
15136
15139
|
}return!0}))}))},e.resetColumnFilters=t=>{var n,r
|
|
15137
15140
|
;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])
|
|
15138
15141
|
},
|
|
15139
15142
|
e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),
|
|
15140
15143
|
e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())
|
|
15141
|
-
}};function
|
|
15144
|
+
}};function Kj(e,t,n){
|
|
15142
15145
|
return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t
|
|
15143
|
-
}const
|
|
15146
|
+
}const qj={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e)
|
|
15144
15147
|
;return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r
|
|
15145
15148
|
;return n.forEach((t=>{const n=t.getValue(e)
|
|
15146
15149
|
;null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r
|
|
@@ -15157,10 +15160,10 @@ if(!t.length)return;const n=t.map((t=>t.getValue(e)))
|
|
|
15157
15160
|
;return n.length%2!=0?a[o]:(a[o-1]+a[o])/2},
|
|
15158
15161
|
unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),
|
|
15159
15162
|
uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length
|
|
15160
|
-
},
|
|
15163
|
+
},Zj={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n
|
|
15161
15164
|
;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null
|
|
15162
15165
|
},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),
|
|
15163
|
-
getDefaultOptions:e=>({onGroupingChange:
|
|
15166
|
+
getDefaultOptions:e=>({onGroupingChange:Sj("grouping",e),
|
|
15164
15167
|
groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{
|
|
15165
15168
|
t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))
|
|
15166
15169
|
},e.getCanGroup=()=>{var n,r
|
|
@@ -15172,9 +15175,9 @@ t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?
|
|
|
15172
15175
|
},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{
|
|
15173
15176
|
t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{
|
|
15174
15177
|
const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id)
|
|
15175
|
-
;return"number"==typeof r?
|
|
15178
|
+
;return"number"==typeof r?qj.sum:"[object Date]"===Object.prototype.toString.call(r)?qj.extent:void 0
|
|
15176
15179
|
},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error
|
|
15177
|
-
;return
|
|
15180
|
+
;return _j(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:qj[e.columnDef.aggregationFn]
|
|
15178
15181
|
}},createTable:e=>{
|
|
15179
15182
|
e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),
|
|
15180
15183
|
e.resetGrouping=t=>{var n,r
|
|
@@ -15193,25 +15196,25 @@ e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,
|
|
|
15193
15196
|
e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),
|
|
15194
15197
|
e.getIsAggregated=()=>{var t
|
|
15195
15198
|
;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)
|
|
15196
|
-
}}};const
|
|
15197
|
-
onColumnOrderChange:
|
|
15198
|
-
e.getIndex=
|
|
15199
|
-
e.getIsFirstColumn=n=>{var r;return(null==(r=
|
|
15200
|
-
},e.getIsLastColumn=n=>{var r;const o=
|
|
15199
|
+
}}};const Xj={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({
|
|
15200
|
+
onColumnOrderChange:Sj("columnOrder",e)}),createColumn:(e,t)=>{
|
|
15201
|
+
e.getIndex=Hj((e=>[oU(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),Dj(t.options,"debugColumns","getIndex")),
|
|
15202
|
+
e.getIsFirstColumn=n=>{var r;return(null==(r=oU(t,n)[0])?void 0:r.id)===e.id
|
|
15203
|
+
},e.getIsLastColumn=n=>{var r;const o=oU(t,n)
|
|
15201
15204
|
;return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{
|
|
15202
15205
|
e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),
|
|
15203
15206
|
e.resetColumnOrder=t=>{var n
|
|
15204
15207
|
;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])
|
|
15205
|
-
},e._getOrderColumnsFn=
|
|
15208
|
+
},e._getOrderColumnsFn=Hj((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{
|
|
15206
15209
|
let o=[];if(null!=e&&e.length){const t=[...e],n=[...r]
|
|
15207
15210
|
;for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e))
|
|
15208
15211
|
;r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){
|
|
15209
15212
|
if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)))
|
|
15210
15213
|
;if("remove"===n)return r
|
|
15211
15214
|
;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]
|
|
15212
|
-
}(o,t,n)}),
|
|
15215
|
+
}(o,t,n)}),Dj(e.options,"debugTable","_getOrderColumnsFn"))}},Jj={
|
|
15213
15216
|
getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),
|
|
15214
|
-
getDefaultOptions:e=>({onColumnPinningChange:
|
|
15217
|
+
getDefaultOptions:e=>({onColumnPinningChange:Sj("columnPinning",e)}),
|
|
15215
15218
|
createColumn:(e,t)=>{e.pin=n=>{
|
|
15216
15219
|
const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
|
|
15217
15220
|
;t.setColumnPinning((e=>{var t,o,a,i,l,c;return"right"===n?{
|
|
@@ -15231,14 +15234,14 @@ const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPi
|
|
|
15231
15234
|
;const o=e.getIsPinned()
|
|
15232
15235
|
;return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0
|
|
15233
15236
|
}},createRow:(e,t)=>{
|
|
15234
|
-
e.getCenterVisibleCells=
|
|
15237
|
+
e.getCenterVisibleCells=Hj((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{
|
|
15235
15238
|
const r=[...null!=t?t:[],...null!=n?n:[]]
|
|
15236
15239
|
;return e.filter((e=>!r.includes(e.column.id)))
|
|
15237
|
-
}),
|
|
15238
|
-
e.getLeftVisibleCells=
|
|
15240
|
+
}),Dj(t.options,"debugRows","getCenterVisibleCells")),
|
|
15241
|
+
e.getLeftVisibleCells=Hj((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({
|
|
15239
15242
|
...e,position:"left"
|
|
15240
|
-
})))),
|
|
15241
|
-
...e,position:"right"})))),
|
|
15243
|
+
})))),Dj(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Hj((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({
|
|
15244
|
+
...e,position:"right"})))),Dj(t.options,"debugRows","getRightVisibleCells"))},
|
|
15242
15245
|
createTable:e=>{
|
|
15243
15246
|
e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),
|
|
15244
15247
|
e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]
|
|
@@ -15247,23 +15250,23 @@ e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]
|
|
|
15247
15250
|
;var o,a
|
|
15248
15251
|
;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))
|
|
15249
15252
|
},
|
|
15250
|
-
e.getLeftLeafColumns=
|
|
15251
|
-
e.getRightLeafColumns=
|
|
15252
|
-
e.getCenterLeafColumns=
|
|
15253
|
+
e.getLeftLeafColumns=Hj((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),Dj(e.options,"debugColumns","getLeftLeafColumns")),
|
|
15254
|
+
e.getRightLeafColumns=Hj((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),Dj(e.options,"debugColumns","getRightLeafColumns")),
|
|
15255
|
+
e.getCenterLeafColumns=Hj((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{
|
|
15253
15256
|
const r=[...null!=t?t:[],...null!=n?n:[]]
|
|
15254
15257
|
;return e.filter((e=>!r.includes(e.id)))
|
|
15255
|
-
}),
|
|
15256
|
-
minSize:20,maxSize:Number.MAX_SAFE_INTEGER},
|
|
15258
|
+
}),Dj(e.options,"debugColumns","getCenterLeafColumns"))}},Qj={size:150,
|
|
15259
|
+
minSize:20,maxSize:Number.MAX_SAFE_INTEGER},eU={getDefaultColumnDef:()=>Qj,
|
|
15257
15260
|
getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,
|
|
15258
15261
|
startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,
|
|
15259
15262
|
columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",
|
|
15260
|
-
columnResizeDirection:"ltr",onColumnSizingChange:
|
|
15261
|
-
onColumnSizingInfoChange:
|
|
15263
|
+
columnResizeDirection:"ltr",onColumnSizingChange:Sj("columnSizing",e),
|
|
15264
|
+
onColumnSizingInfoChange:Sj("columnSizingInfo",e)}),createColumn:(e,t)=>{
|
|
15262
15265
|
e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id]
|
|
15263
|
-
;return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:
|
|
15266
|
+
;return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Qj.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:Qj.size),null!=(o=e.columnDef.maxSize)?o:Qj.maxSize)
|
|
15264
15267
|
},
|
|
15265
|
-
e.getStart=
|
|
15266
|
-
e.getAfter=
|
|
15268
|
+
e.getStart=Hj((e=>[e,oU(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),Dj(t.options,"debugColumns","getStart")),
|
|
15269
|
+
e.getAfter=Hj((e=>[e,oU(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),Dj(t.options,"debugColumns","getAfter")),
|
|
15267
15270
|
e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))
|
|
15268
15271
|
},e.getCanResize=()=>{var n,r
|
|
15269
15272
|
;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)
|
|
@@ -15275,8 +15278,8 @@ const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}
|
|
|
15275
15278
|
return 0},e.getResizeHandler=n=>{
|
|
15276
15279
|
const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{
|
|
15277
15280
|
if(!r||!o)return
|
|
15278
|
-
;if(null==a.persist||a.persist(),
|
|
15279
|
-
;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],c=
|
|
15281
|
+
;if(null==a.persist||a.persist(),nU(a)&&a.touches&&a.touches.length>1)return
|
|
15282
|
+
;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],c=nU(a)?Math.round(a.touches[0].clientX):a.clientX,s={},u=(e,n)=>{
|
|
15280
15283
|
"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o
|
|
15281
15284
|
;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,l=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999)
|
|
15282
15285
|
;return e.columnSizingStart.forEach((e=>{let[t,n]=e
|
|
@@ -15296,11 +15299,11 @@ e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t
|
|
|
15296
15299
|
null==f||f.removeEventListener("touchend",m.upHandler),
|
|
15297
15300
|
e.cancelable&&(e.preventDefault(),
|
|
15298
15301
|
e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}
|
|
15299
|
-
},v=!!function(){if("boolean"==typeof
|
|
15302
|
+
},v=!!function(){if("boolean"==typeof tU)return tU;let e=!1;try{const t={
|
|
15300
15303
|
get passive(){return e=!0,!1}},n=()=>{}
|
|
15301
15304
|
;window.addEventListener("test",n,t),window.removeEventListener("test",n)
|
|
15302
|
-
}catch(t){e=!1}return
|
|
15303
|
-
;
|
|
15305
|
+
}catch(t){e=!1}return tU=e,tU}()&&{passive:!1}
|
|
15306
|
+
;nU(a)?(null==f||f.addEventListener("touchmove",m.moveHandler,v),
|
|
15304
15307
|
null==f||f.addEventListener("touchend",m.upHandler,v)):(null==f||f.addEventListener("mousemove",p.moveHandler,v),
|
|
15305
15308
|
null==f||f.addEventListener("mouseup",p.upHandler,v)),
|
|
15306
15309
|
t.setColumnSizingInfo((e=>({...e,startOffset:c,startSize:i,deltaOffset:0,
|
|
@@ -15322,9 +15325,9 @@ isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n
|
|
|
15322
15325
|
;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0
|
|
15323
15326
|
},e.getRightTotalSize=()=>{var t,n
|
|
15324
15327
|
;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0
|
|
15325
|
-
}}};let
|
|
15328
|
+
}}};let tU=null;function nU(e){return"touchstart"===e.type}const rU={
|
|
15326
15329
|
getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({
|
|
15327
|
-
onColumnVisibilityChange:
|
|
15330
|
+
onColumnVisibilityChange:Sj("columnVisibility",e)}),createColumn:(e,t)=>{
|
|
15328
15331
|
e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,
|
|
15329
15332
|
[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r
|
|
15330
15333
|
;const o=e.columns
|
|
@@ -15334,10 +15337,10 @@ e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,
|
|
|
15334
15337
|
},e.getToggleVisibilityHandler=()=>t=>{
|
|
15335
15338
|
null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},
|
|
15336
15339
|
createRow:(e,t)=>{
|
|
15337
|
-
e._getAllVisibleCells=
|
|
15338
|
-
e.getVisibleCells=
|
|
15340
|
+
e._getAllVisibleCells=Hj((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),Dj(t.options,"debugRows","_getAllVisibleCells")),
|
|
15341
|
+
e.getVisibleCells=Hj((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),Dj(t.options,"debugRows","getVisibleCells"))
|
|
15339
15342
|
},createTable:e=>{
|
|
15340
|
-
const t=(t,n)=>
|
|
15343
|
+
const t=(t,n)=>Hj((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),Dj(e.options,"debugColumns",t))
|
|
15341
15344
|
;e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),
|
|
15342
15345
|
e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),
|
|
15343
15346
|
e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),
|
|
@@ -15354,25 +15357,25 @@ e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,
|
|
|
15354
15357
|
e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),
|
|
15355
15358
|
e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n
|
|
15356
15359
|
;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}
|
|
15357
|
-
;function
|
|
15360
|
+
;function oU(e,t){
|
|
15358
15361
|
return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()
|
|
15359
|
-
}const
|
|
15360
|
-
getDefaultOptions:e=>({onGlobalFilterChange:
|
|
15362
|
+
}const aU={getInitialState:e=>({globalFilter:void 0,...e}),
|
|
15363
|
+
getDefaultOptions:e=>({onGlobalFilterChange:Sj("globalFilter",e),
|
|
15361
15364
|
globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n
|
|
15362
15365
|
;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue()
|
|
15363
15366
|
;return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{
|
|
15364
15367
|
e.getCanGlobalFilter=()=>{var n,r,o,a
|
|
15365
15368
|
;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn
|
|
15366
15369
|
}},createTable:e=>{
|
|
15367
|
-
e.getGlobalAutoFilterFn=()=>
|
|
15370
|
+
e.getGlobalAutoFilterFn=()=>Yj.includesString,e.getGlobalFilterFn=()=>{var t,n
|
|
15368
15371
|
;const{globalFilterFn:r}=e.options
|
|
15369
|
-
;return
|
|
15372
|
+
;return _j(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Yj[r]
|
|
15370
15373
|
},e.setGlobalFilter=t=>{
|
|
15371
15374
|
null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)
|
|
15372
15375
|
},e.resetGlobalFilter=t=>{
|
|
15373
|
-
e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},
|
|
15376
|
+
e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},iU={
|
|
15374
15377
|
getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({
|
|
15375
|
-
onExpandedChange:
|
|
15378
|
+
onExpandedChange:Sj("expanded",e),paginateExpandedRows:!0}),createTable:e=>{
|
|
15376
15379
|
let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){
|
|
15377
15380
|
if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){
|
|
15378
15381
|
if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{
|
|
@@ -15407,8 +15410,8 @@ const{[e.id]:t,...n}=i;return n}return r}))},e.getIsExpanded=()=>{var n
|
|
|
15407
15410
|
},e.getIsAllParentsExpanded=()=>{let n=!0,r=e
|
|
15408
15411
|
;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n
|
|
15409
15412
|
},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{
|
|
15410
|
-
t&&e.toggleExpanded()}}}},
|
|
15411
|
-
},...e}),getDefaultOptions:e=>({onRowPinningChange:
|
|
15413
|
+
t&&e.toggleExpanded()}}}},lU={getInitialState:e=>({rowPinning:{top:[],bottom:[]
|
|
15414
|
+
},...e}),getDefaultOptions:e=>({onRowPinningChange:Sj("rowPinning",e)}),
|
|
15412
15415
|
createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map((e=>{let{id:t}=e
|
|
15413
15416
|
;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t
|
|
15414
15417
|
})):[],l=new Set([...i,e.id,...a]);t.setRowPinning((e=>{var t,r,o,a,i,c
|
|
@@ -15433,18 +15436,18 @@ e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]
|
|
|
15433
15436
|
e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a
|
|
15434
15437
|
;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))
|
|
15435
15438
|
},
|
|
15436
|
-
e._getPinnedRows=
|
|
15439
|
+
e._getPinnedRows=Hj((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{
|
|
15437
15440
|
var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{
|
|
15438
15441
|
const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null
|
|
15439
15442
|
})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({
|
|
15440
15443
|
...e,position:r})))
|
|
15441
|
-
}),
|
|
15444
|
+
}),Dj(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),
|
|
15442
15445
|
e.getBottomRows=()=>e._getPinnedRows("bottom"),
|
|
15443
|
-
e.getCenterRows=
|
|
15446
|
+
e.getCenterRows=Hj((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{
|
|
15444
15447
|
const r=new Set([...null!=t?t:[],...null!=n?n:[]])
|
|
15445
|
-
;return e.filter((e=>!r.has(e.id)))}),
|
|
15446
|
-
}},
|
|
15447
|
-
onRowSelectionChange:
|
|
15448
|
+
;return e.filter((e=>!r.has(e.id)))}),Dj(e.options,"debugRows","getCenterRows"))
|
|
15449
|
+
}},cU={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({
|
|
15450
|
+
onRowSelectionChange:Sj("rowSelection",e),enableRowSelection:!0,
|
|
15448
15451
|
enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{
|
|
15449
15452
|
e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),
|
|
15450
15453
|
e.resetRowSelection=t=>{var n
|
|
@@ -15455,17 +15458,17 @@ t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n
|
|
|
15455
15458
|
e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))
|
|
15456
15459
|
},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{
|
|
15457
15460
|
const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n}
|
|
15458
|
-
;return e.getRowModel().rows.forEach((t=>{
|
|
15461
|
+
;return e.getRowModel().rows.forEach((t=>{sU(o,t.id,r,!0,e)})),o
|
|
15459
15462
|
})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),
|
|
15460
|
-
e.getSelectedRowModel=
|
|
15463
|
+
e.getSelectedRowModel=Hj((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?uU(e,n):{
|
|
15461
15464
|
rows:[],flatRows:[],rowsById:{}
|
|
15462
|
-
}),
|
|
15463
|
-
e.getFilteredSelectedRowModel=
|
|
15465
|
+
}),Dj(e.options,"debugTable","getSelectedRowModel")),
|
|
15466
|
+
e.getFilteredSelectedRowModel=Hj((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?uU(e,n):{
|
|
15464
15467
|
rows:[],flatRows:[],rowsById:{}
|
|
15465
|
-
}),
|
|
15466
|
-
e.getGroupedSelectedRowModel=
|
|
15468
|
+
}),Dj(e.options,"debugTable","getFilteredSelectedRowModel")),
|
|
15469
|
+
e.getGroupedSelectedRowModel=Hj((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?uU(e,n):{
|
|
15467
15470
|
rows:[],flatRows:[],rowsById:{}
|
|
15468
|
-
}),
|
|
15471
|
+
}),Dj(e.options,"debugTable","getGroupedSelectedRowModel")),
|
|
15469
15472
|
e.getIsAllRowsSelected=()=>{
|
|
15470
15473
|
const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState()
|
|
15471
15474
|
;let r=Boolean(t.length&&Object.keys(n).length)
|
|
@@ -15484,11 +15487,11 @@ e.toggleAllRowsSelected(t.target.checked)
|
|
|
15484
15487
|
e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{
|
|
15485
15488
|
e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((a=>{var i
|
|
15486
15489
|
;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const l={...a}
|
|
15487
|
-
;return
|
|
15488
|
-
},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return
|
|
15490
|
+
;return sU(l,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),l}))
|
|
15491
|
+
},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return dU(e,n)
|
|
15489
15492
|
},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState()
|
|
15490
|
-
;return"some"===
|
|
15491
|
-
const{rowSelection:n}=t.getState();return"all"===
|
|
15493
|
+
;return"some"===hU(e,n)},e.getIsAllSubRowsSelected=()=>{
|
|
15494
|
+
const{rowSelection:n}=t.getState();return"all"===hU(e,n)},e.getCanSelect=()=>{
|
|
15492
15495
|
var n
|
|
15493
15496
|
;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n
|
|
15494
15497
|
},e.getCanSelectSubRows=()=>{var n
|
|
@@ -15496,48 +15499,48 @@ var n
|
|
|
15496
15499
|
},e.getCanMultiSelect=()=>{var n
|
|
15497
15500
|
;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n
|
|
15498
15501
|
},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r
|
|
15499
|
-
;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},
|
|
15502
|
+
;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},sU=(e,t,n,r,o)=>{
|
|
15500
15503
|
var a;const i=o.getRow(t,!0)
|
|
15501
15504
|
;n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),
|
|
15502
15505
|
i.getCanSelect()&&(e[t]=!0)):delete e[t],
|
|
15503
|
-
r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>
|
|
15504
|
-
};function
|
|
15505
|
-
return e.map((e=>{var t;const i=
|
|
15506
|
+
r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>sU(e,t.id,n,r,o)))
|
|
15507
|
+
};function uU(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){
|
|
15508
|
+
return e.map((e=>{var t;const i=dU(e,n)
|
|
15506
15509
|
;if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,
|
|
15507
15510
|
subRows:a(e.subRows)}),i)return e})).filter(Boolean)};return{rows:a(t.rows),
|
|
15508
|
-
flatRows:r,rowsById:o}}function
|
|
15509
|
-
function
|
|
15511
|
+
flatRows:r,rowsById:o}}function dU(e,t){var n;return null!=(n=t[e.id])&&n}
|
|
15512
|
+
function hU(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1
|
|
15510
15513
|
;let o=!0,a=!1;return e.subRows.forEach((e=>{
|
|
15511
|
-
if((!a||o)&&(e.getCanSelect()&&(
|
|
15512
|
-
e.subRows&&e.subRows.length)){const n=
|
|
15514
|
+
if((!a||o)&&(e.getCanSelect()&&(dU(e,t)?a=!0:o=!1),
|
|
15515
|
+
e.subRows&&e.subRows.length)){const n=hU(e,t)
|
|
15513
15516
|
;"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}})),o?"all":!!a&&"some"}
|
|
15514
|
-
const
|
|
15517
|
+
const fU=/([0-9]+)/gm;function pU(e,t){return e===t?0:e>t?1:-1}function mU(e){
|
|
15515
15518
|
return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""
|
|
15516
|
-
}function
|
|
15517
|
-
const n=e.split(
|
|
15519
|
+
}function vU(e,t){
|
|
15520
|
+
const n=e.split(fU).filter(Boolean),r=t.split(fU).filter(Boolean)
|
|
15518
15521
|
;for(;n.length&&r.length;){
|
|
15519
15522
|
const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort()
|
|
15520
15523
|
;if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{
|
|
15521
15524
|
if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}
|
|
15522
|
-
return n.length-r.length}const
|
|
15523
|
-
alphanumeric:(e,t,n)=>
|
|
15524
|
-
alphanumericCaseSensitive:(e,t,n)=>
|
|
15525
|
-
text:(e,t,n)=>
|
|
15526
|
-
textCaseSensitive:(e,t,n)=>
|
|
15525
|
+
return n.length-r.length}const gU={
|
|
15526
|
+
alphanumeric:(e,t,n)=>vU(mU(e.getValue(n)).toLowerCase(),mU(t.getValue(n)).toLowerCase()),
|
|
15527
|
+
alphanumericCaseSensitive:(e,t,n)=>vU(mU(e.getValue(n)),mU(t.getValue(n))),
|
|
15528
|
+
text:(e,t,n)=>pU(mU(e.getValue(n)).toLowerCase(),mU(t.getValue(n)).toLowerCase()),
|
|
15529
|
+
textCaseSensitive:(e,t,n)=>pU(mU(e.getValue(n)),mU(t.getValue(n))),
|
|
15527
15530
|
datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},
|
|
15528
|
-
basic:(e,t,n)=>
|
|
15531
|
+
basic:(e,t,n)=>pU(e.getValue(n),t.getValue(n))},yU={getInitialState:e=>({
|
|
15529
15532
|
sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),
|
|
15530
|
-
getDefaultOptions:e=>({onSortingChange:
|
|
15533
|
+
getDefaultOptions:e=>({onSortingChange:Sj("sorting",e),
|
|
15531
15534
|
isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{
|
|
15532
15535
|
const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){
|
|
15533
15536
|
const n=null==t?void 0:t.getValue(e.id)
|
|
15534
|
-
;if("[object Date]"===Object.prototype.toString.call(n))return
|
|
15535
|
-
;if("string"==typeof n&&(r=!0,n.split(
|
|
15536
|
-
return r?
|
|
15537
|
+
;if("[object Date]"===Object.prototype.toString.call(n))return gU.datetime
|
|
15538
|
+
;if("string"==typeof n&&(r=!0,n.split(fU).length>1))return gU.alphanumeric}
|
|
15539
|
+
return r?gU.text:gU.basic},e.getAutoSortDir=()=>{
|
|
15537
15540
|
const n=t.getFilteredRowModel().flatRows[0]
|
|
15538
15541
|
;return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"
|
|
15539
15542
|
},e.getSortingFn=()=>{var n,r;if(!e)throw new Error
|
|
15540
|
-
;return
|
|
15543
|
+
;return _j(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:gU[e.columnDef.sortingFn]
|
|
15541
15544
|
},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n
|
|
15542
15545
|
;t.setSorting((i=>{
|
|
15543
15546
|
const l=null==i?void 0:i.find((t=>t.id===e.id)),c=null==i?void 0:i.findIndex((t=>t.id===e.id))
|
|
@@ -15571,7 +15574,7 @@ e.resetSorting=t=>{var n,r
|
|
|
15571
15574
|
},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),
|
|
15572
15575
|
e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),
|
|
15573
15576
|
e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())
|
|
15574
|
-
}},
|
|
15577
|
+
}},bU=[Vj,rU,Xj,Jj,Rj,Gj,{createTable:e=>{
|
|
15575
15578
|
e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),
|
|
15576
15579
|
e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),
|
|
15577
15580
|
e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),
|
|
@@ -15579,17 +15582,17 @@ e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalF
|
|
|
15579
15582
|
e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),
|
|
15580
15583
|
e.getGlobalFacetedMinMaxValues=()=>{
|
|
15581
15584
|
if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}
|
|
15582
|
-
},
|
|
15585
|
+
},aU,yU,Zj,iU,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,
|
|
15583
15586
|
...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({
|
|
15584
|
-
onPaginationChange:
|
|
15587
|
+
onPaginationChange:Sj("pagination",e)}),createTable:e=>{let t=!1,n=!1
|
|
15585
15588
|
;e._autoResetPageIndex=()=>{var r,o;if(t){
|
|
15586
15589
|
if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){
|
|
15587
15590
|
if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{
|
|
15588
15591
|
t=!0}))
|
|
15589
|
-
},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>
|
|
15592
|
+
},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Ej(t,e))),
|
|
15590
15593
|
e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10
|
|
15591
15594
|
}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})
|
|
15592
|
-
},e.setPageIndex=t=>{e.setPagination((n=>{let r=
|
|
15595
|
+
},e.setPageIndex=t=>{e.setPagination((n=>{let r=Ej(t,n.pageIndex)
|
|
15593
15596
|
;const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
|
|
15594
15597
|
;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{
|
|
15595
15598
|
var n,r
|
|
@@ -15597,13 +15600,13 @@ var n,r
|
|
|
15597
15600
|
},e.resetPageSize=t=>{var n,r
|
|
15598
15601
|
;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)
|
|
15599
15602
|
},e.setPageSize=t=>{e.setPagination((e=>{
|
|
15600
|
-
const n=Math.max(1,
|
|
15603
|
+
const n=Math.max(1,Ej(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n)
|
|
15601
15604
|
;return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{
|
|
15602
|
-
var r;let o=
|
|
15605
|
+
var r;let o=Ej(t,null!=(r=e.options.pageCount)?r:-1)
|
|
15603
15606
|
;return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}
|
|
15604
|
-
})),e.getPageOptions=
|
|
15607
|
+
})),e.getPageOptions=Hj((()=>[e.getPageCount()]),(e=>{let t=[]
|
|
15605
15608
|
;return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t
|
|
15606
|
-
}),
|
|
15609
|
+
}),Dj(e.options,"debugTable","getPageOptions")),
|
|
15607
15610
|
e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,
|
|
15608
15611
|
e.getCanNextPage=()=>{
|
|
15609
15612
|
const{pageIndex:t}=e.getState().pagination,n=e.getPageCount()
|
|
@@ -15618,16 +15621,16 @@ e.getPageCount=()=>{var t
|
|
|
15618
15621
|
;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)
|
|
15619
15622
|
},e.getRowCount=()=>{var t
|
|
15620
15623
|
;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}
|
|
15621
|
-
}},
|
|
15624
|
+
}},lU,cU,eU];function wU(e){var t,n
|
|
15622
15625
|
;"production"!==process.env.NODE_ENV&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
|
|
15623
|
-
;const r=[...
|
|
15626
|
+
;const r=[...bU,...null!=(t=e._features)?t:[]];let o={_features:r}
|
|
15624
15627
|
;const a=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{})
|
|
15625
15628
|
;let i={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t
|
|
15626
15629
|
;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}))
|
|
15627
15630
|
;const l=[];let c=!1;const s={_features:r,options:{...a,...e},initialState:i,
|
|
15628
15631
|
_queue:e=>{l.push(e),c||(c=!0,Promise.resolve().then((()=>{
|
|
15629
15632
|
for(;l.length;)l.shift()();c=!1})).catch((e=>setTimeout((()=>{throw e})))))},
|
|
15630
|
-
reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=
|
|
15633
|
+
reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Ej(e,o.options)
|
|
15631
15634
|
;o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e
|
|
15632
15635
|
})(t)},getState:()=>o.options.state,setState:e=>{
|
|
15633
15636
|
null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{
|
|
@@ -15640,15 +15643,15 @@ let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e]
|
|
|
15640
15643
|
;if(!n&&(n=o.getCoreRowModel().rowsById[e],!n)){
|
|
15641
15644
|
if("production"!==process.env.NODE_ENV)throw new Error(`getRow could not find row with ID: ${e}`)
|
|
15642
15645
|
;throw new Error}return n},
|
|
15643
|
-
_getDefaultColumnDef:
|
|
15646
|
+
_getDefaultColumnDef:Hj((()=>[o.options.defaultColumn]),(e=>{var t
|
|
15644
15647
|
;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
|
|
15645
15648
|
;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n
|
|
15646
15649
|
;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null
|
|
15647
15650
|
},
|
|
15648
15651
|
...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),
|
|
15649
|
-
...e}}),
|
|
15652
|
+
...e}}),Dj(e,"debugColumns","_getDefaultColumnDef")),
|
|
15650
15653
|
_getColumnDefs:()=>o.options.columns,
|
|
15651
|
-
getAllColumns:
|
|
15654
|
+
getAllColumns:Hj((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,r){
|
|
15652
15655
|
return void 0===r&&(r=0),e.map((e=>{const a=function(e,t,n,r){var o,a;const i={
|
|
15653
15656
|
...e._getDefaultColumnDef(),...t},l=i.accessorKey
|
|
15654
15657
|
;let c,s=null!=(o=null!=(a=i.id)?a:l?l.replace(".","_"):void 0)?o:"string"==typeof i.header?i.header:void 0
|
|
@@ -15658,46 +15661,46 @@ return void 0===r&&(r=0),e.map((e=>{const a=function(e,t,n,r){var o,a;const i={
|
|
|
15658
15661
|
}return t}:e=>e[i.accessorKey]),!s){
|
|
15659
15662
|
if("production"!==process.env.NODE_ENV)throw new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header")
|
|
15660
15663
|
;throw new Error}let u={id:`${String(s)}`,accessorFn:c,parent:r,depth:n,
|
|
15661
|
-
columnDef:i,columns:[],getFlatColumns:
|
|
15664
|
+
columnDef:i,columns:[],getFlatColumns:Hj((()=>[!0]),(()=>{var e
|
|
15662
15665
|
;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]
|
|
15663
|
-
}),
|
|
15664
|
-
getLeafColumns:
|
|
15666
|
+
}),Dj(e.options,"debugColumns","column.getFlatColumns")),
|
|
15667
|
+
getLeafColumns:Hj((()=>[e._getOrderColumnsFn()]),(e=>{var t
|
|
15665
15668
|
;if(null!=(t=u.columns)&&t.length){
|
|
15666
15669
|
let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]
|
|
15667
|
-
}),
|
|
15670
|
+
}),Dj(e.options,"debugColumns","column.getLeafColumns"))}
|
|
15668
15671
|
;for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u
|
|
15669
15672
|
}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a}))}
|
|
15670
|
-
;return t(e)}),
|
|
15671
|
-
getAllFlatColumns:
|
|
15672
|
-
_getAllFlatColumnsById:
|
|
15673
|
-
e)),{})),
|
|
15674
|
-
getAllLeafColumns:
|
|
15673
|
+
;return t(e)}),Dj(e,"debugColumns","getAllColumns")),
|
|
15674
|
+
getAllFlatColumns:Hj((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),Dj(e,"debugColumns","getAllFlatColumns")),
|
|
15675
|
+
_getAllFlatColumnsById:Hj((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,
|
|
15676
|
+
e)),{})),Dj(e,"debugColumns","getAllFlatColumnsById")),
|
|
15677
|
+
getAllLeafColumns:Hj((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>{
|
|
15675
15678
|
let n=e.flatMap((e=>e.getLeafColumns()));return t(n)
|
|
15676
|
-
}),
|
|
15679
|
+
}),Dj(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{
|
|
15677
15680
|
const t=o._getAllFlatColumnsById()[e]
|
|
15678
15681
|
;return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),
|
|
15679
15682
|
t}};Object.assign(o,s);for(let e=0;e<o._features.length;e++){
|
|
15680
15683
|
const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
15681
|
-
function
|
|
15684
|
+
function CU(){return e=>Hj((()=>[e.options.data]),(t=>{const n={rows:[],
|
|
15682
15685
|
flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[]
|
|
15683
15686
|
;for(let c=0;c<t.length;c++){
|
|
15684
|
-
const s=
|
|
15687
|
+
const s=Tj(e,e._getRowId(t[c],c,a),t[c],c,o,void 0,null==a?void 0:a.id);var l
|
|
15685
15688
|
;if(n.flatRows.push(s),
|
|
15686
15689
|
n.rowsById[s.id]=s,i.push(s),e.options.getSubRows)s.originalSubRows=e.options.getSubRows(t[c],c),
|
|
15687
15690
|
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s))}
|
|
15688
15691
|
return i};return n.rows=r(t),n
|
|
15689
|
-
}),
|
|
15690
|
-
function
|
|
15692
|
+
}),Dj(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex())))}
|
|
15693
|
+
function zU(e,t){return e?function(e){return"function"==typeof e&&(()=>{
|
|
15691
15694
|
const t=Object.getPrototypeOf(e)
|
|
15692
15695
|
;return t.prototype&&t.prototype.isReactComponent})()
|
|
15693
15696
|
}(n=e)||"function"==typeof n||function(e){
|
|
15694
15697
|
return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)
|
|
15695
|
-
}(n)?r.createElement(e,t):e:null;var n}function
|
|
15698
|
+
}(n)?r.createElement(e,t):e:null;var n}function MU(e){const t={state:{},
|
|
15696
15699
|
onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({
|
|
15697
|
-
current:
|
|
15700
|
+
current:wU(t)}))),[o,a]=r.useState((()=>n.current.initialState))
|
|
15698
15701
|
;return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},
|
|
15699
15702
|
onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}
|
|
15700
|
-
const
|
|
15703
|
+
const xU=yr.div`
|
|
15701
15704
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15702
15705
|
direction: ${({theme:e})=>e.direction};
|
|
15703
15706
|
display: flex;
|
|
@@ -15717,22 +15720,22 @@ const CU=yr.div`
|
|
|
15717
15720
|
.PopoverContent {
|
|
15718
15721
|
padding: 0;
|
|
15719
15722
|
}
|
|
15720
|
-
`,
|
|
15723
|
+
`,EU=yr((t=>e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
15721
15724
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
15722
15725
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
15723
15726
|
d:"M4.16 2H11.84C13.0329 2 14 2.96706 14 4.16V11.84C14 12.4129 13.7724 12.9623 13.3674 13.3674C12.9623 13.7724 12.4129 14 11.84 14H4.16C3.58713 14 3.03773 13.7724 2.63265 13.3674C2.22757 12.9623 2 12.4129 2 11.84V4.16C2 2.96706 2.96706 2 4.16 2ZM3.12 4.16V11.84C3.12 12.4144 3.58562 12.88 4.16 12.88H9.93599V3.12H4.16C3.88417 3.12 3.61964 3.22957 3.4246 3.42461C3.22957 3.61965 3.12 3.88417 3.12 4.16ZM11.84 12.88H11.04V3.12H11.84C12.1158 3.12 12.3804 3.22957 12.5754 3.42461C12.7704 3.61965 12.88 3.88417 12.88 4.16V11.84C12.88 12.4144 12.4144 12.88 11.84 12.88ZM5.74401 10.168C5.8945 10.168 6.03866 10.1075 6.14401 10L7.712 8.4C7.92739 8.17682 7.92739 7.82317 7.712 7.6L6.15201 6C5.93109 5.77908 5.57292 5.77908 5.35201 6C5.13109 6.22091 5.13109 6.57908 5.35201 6.8L6.52001 8L5.35201 9.2C5.13236 9.42144 5.13236 9.77856 5.35201 10C5.45436 10.107 5.59592 10.1677 5.74401 10.168Z",
|
|
15724
15727
|
fill:t.fill}))))`
|
|
15725
15728
|
transition: all 0.3s ease-in-out;
|
|
15726
|
-
`,
|
|
15729
|
+
`,SU=yr(no)`
|
|
15727
15730
|
transform: ${({theme:e})=>"rtl"===e.direction?"rotate(90deg)":"rotate(270deg)"};
|
|
15728
|
-
`,
|
|
15731
|
+
`,_U=yr(no)`
|
|
15729
15732
|
transform: ${({theme:e})=>"rtl"===e.direction?"rotate(270deg)":"rotate(90deg)"};
|
|
15730
|
-
`,
|
|
15733
|
+
`,HU=yr.div`
|
|
15731
15734
|
display: flex;
|
|
15732
15735
|
flex: 1;
|
|
15733
15736
|
overflow: auto;
|
|
15734
15737
|
direction: ${({theme:e})=>e.direction};
|
|
15735
|
-
`,
|
|
15738
|
+
`,DU=yr.div`
|
|
15736
15739
|
flex: 1;
|
|
15737
15740
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.fill.surface:e.colors.fill.medium};
|
|
15738
15741
|
direction: ${({theme:e})=>e.direction};
|
|
@@ -15741,7 +15744,7 @@ fill:t.fill}))))`
|
|
|
15741
15744
|
display: flex;
|
|
15742
15745
|
width: 100%;
|
|
15743
15746
|
flex-direction: column;
|
|
15744
|
-
`,
|
|
15747
|
+
`,AU=yr.div`
|
|
15745
15748
|
display: flex;
|
|
15746
15749
|
gap: 12px;
|
|
15747
15750
|
justify-content: space-between;
|
|
@@ -15754,7 +15757,7 @@ fill:t.fill}))))`
|
|
|
15754
15757
|
${({theme:e})=>"dark"===e.mode?e.colors.border.light:e.colors.border.normal};
|
|
15755
15758
|
box-shadow: ${({theme:e})=>xo(e.colors.shadow,.08)} 0px 2px 4px
|
|
15756
15759
|
0px;
|
|
15757
|
-
`,
|
|
15760
|
+
`,LU=yr.div`
|
|
15758
15761
|
direction: ${({theme:e})=>e.direction};
|
|
15759
15762
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.fill.medium:e.colors.fill.base};
|
|
15760
15763
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
@@ -15763,7 +15766,7 @@ fill:t.fill}))))`
|
|
|
15763
15766
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
15764
15767
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
15765
15768
|
animation-name: ${Pr};
|
|
15766
|
-
`,
|
|
15769
|
+
`,VU=yr.div``,kU=yr.div``,TU=yr.div``,RU=yr.div`
|
|
15767
15770
|
display: flex;
|
|
15768
15771
|
align-items: center;
|
|
15769
15772
|
gap: 10px;
|
|
@@ -15789,7 +15792,7 @@ fill:t.fill}))))`
|
|
|
15789
15792
|
font-size: 14px;
|
|
15790
15793
|
font-weight: 400;
|
|
15791
15794
|
}
|
|
15792
|
-
`,
|
|
15795
|
+
`,PU=yr.div`
|
|
15793
15796
|
display: flex;
|
|
15794
15797
|
gap: 8px;
|
|
15795
15798
|
align-items: center;
|
|
@@ -15801,10 +15804,10 @@ fill:t.fill}))))`
|
|
|
15801
15804
|
place-content: center;
|
|
15802
15805
|
padding: 0;
|
|
15803
15806
|
}
|
|
15804
|
-
`,
|
|
15807
|
+
`,IU=yr.div`
|
|
15805
15808
|
overflow: auto;
|
|
15806
15809
|
flex: 1;
|
|
15807
|
-
`,
|
|
15810
|
+
`,OU=yr.table`
|
|
15808
15811
|
border-spacing: 0px;
|
|
15809
15812
|
border-collapse: collapse;
|
|
15810
15813
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -15813,9 +15816,9 @@ fill:t.fill}))))`
|
|
|
15813
15816
|
margin: 0;
|
|
15814
15817
|
direction: ${({theme:e})=>e.direction};
|
|
15815
15818
|
position: relative;
|
|
15816
|
-
`,
|
|
15819
|
+
`,NU=yr.thead``,FU=yr.tbody`
|
|
15817
15820
|
position: relative;
|
|
15818
|
-
|
|
15821
|
+
`,$U=yr.tfoot``,BU=yr.tr`
|
|
15819
15822
|
&:hover {
|
|
15820
15823
|
transition: 0.2s ease;
|
|
15821
15824
|
background-color: ${({theme:e})=>e.colors.fill.medium};
|
|
@@ -15829,7 +15832,7 @@ fill:t.fill}))))`
|
|
|
15829
15832
|
border-bottom-width: 3px;
|
|
15830
15833
|
}
|
|
15831
15834
|
`}
|
|
15832
|
-
`,
|
|
15835
|
+
`,jU=yr.div`
|
|
15833
15836
|
position: absolute;
|
|
15834
15837
|
width: 100%;
|
|
15835
15838
|
height: 100%;
|
|
@@ -15839,7 +15842,7 @@ fill:t.fill}))))`
|
|
|
15839
15842
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
15840
15843
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
15841
15844
|
animation-name: ${Sr};
|
|
15842
|
-
|
|
15845
|
+
`,UU=yr.th`
|
|
15843
15846
|
padding: 16px;
|
|
15844
15847
|
font-size: 12px;
|
|
15845
15848
|
line-height: 16px;
|
|
@@ -15872,7 +15875,7 @@ fill:t.fill}))))`
|
|
|
15872
15875
|
border-right: 3px solid ${({theme:e})=>e.colors.border.light};
|
|
15873
15876
|
}
|
|
15874
15877
|
`}
|
|
15875
|
-
`,
|
|
15878
|
+
`,YU=yr.td`
|
|
15876
15879
|
padding: 12px;
|
|
15877
15880
|
margin: 0;
|
|
15878
15881
|
font-size: 14px;
|
|
@@ -15895,19 +15898,19 @@ fill:t.fill}))))`
|
|
|
15895
15898
|
border-right: 3px solid ${e.colors.border.light};
|
|
15896
15899
|
}
|
|
15897
15900
|
`}
|
|
15898
|
-
`,
|
|
15901
|
+
`,WU=yr.div`
|
|
15899
15902
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15900
|
-
`,
|
|
15903
|
+
`,GU=yr.div`
|
|
15901
15904
|
padding: 24px;
|
|
15902
15905
|
display: flex;
|
|
15903
15906
|
justify-content: space-between;
|
|
15904
15907
|
align-items: center;
|
|
15905
|
-
`,
|
|
15908
|
+
`,KU=yr.div`
|
|
15906
15909
|
padding: 0 24px;
|
|
15907
15910
|
display: flex;
|
|
15908
15911
|
gap: 16px;
|
|
15909
15912
|
height: 256px;
|
|
15910
|
-
`,
|
|
15913
|
+
`,qU=yr.div`
|
|
15911
15914
|
background: ${({theme:e})=>e.colors.fill.medium};
|
|
15912
15915
|
border-radius: 4px 4px 0px 0px;
|
|
15913
15916
|
padding: 8px 8px 0 8px;
|
|
@@ -15921,11 +15924,11 @@ fill:t.fill}))))`
|
|
|
15921
15924
|
margin-bottom: 8px;
|
|
15922
15925
|
}
|
|
15923
15926
|
}
|
|
15924
|
-
`,
|
|
15927
|
+
`,ZU=yr.div`
|
|
15925
15928
|
display: flex;
|
|
15926
15929
|
gap: 8px;
|
|
15927
15930
|
flex-direction: column;
|
|
15928
|
-
`,
|
|
15931
|
+
`,XU=yr.div`
|
|
15929
15932
|
display: flex;
|
|
15930
15933
|
gap: 12px;
|
|
15931
15934
|
flex-direction: column;
|
|
@@ -15939,13 +15942,13 @@ fill:t.fill}))))`
|
|
|
15939
15942
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
15940
15943
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
15941
15944
|
}
|
|
15942
|
-
`,
|
|
15945
|
+
`,JU=yr.div`
|
|
15943
15946
|
background-color: ${({theme:e})=>e.colors.fill.base};
|
|
15944
15947
|
display: flex;
|
|
15945
15948
|
padding: 16px;
|
|
15946
15949
|
gap: 8px;
|
|
15947
15950
|
justify-content: flex-end;
|
|
15948
|
-
`,
|
|
15951
|
+
`,QU=yr.div`
|
|
15949
15952
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15950
15953
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
15951
15954
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
@@ -15959,7 +15962,7 @@ fill:t.fill}))))`
|
|
|
15959
15962
|
display: flex;
|
|
15960
15963
|
justify-content: space-between;
|
|
15961
15964
|
gap: 8px;
|
|
15962
|
-
`,
|
|
15965
|
+
`,eY=yr.div`
|
|
15963
15966
|
display: flex;
|
|
15964
15967
|
align-items: center;
|
|
15965
15968
|
width: fit-content;
|
|
@@ -15980,17 +15983,17 @@ fill:t.fill}))))`
|
|
|
15980
15983
|
color: ${e.colors.text.link};
|
|
15981
15984
|
`}
|
|
15982
15985
|
}
|
|
15983
|
-
`,
|
|
15986
|
+
`,tY=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
15984
15987
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"
|
|
15985
15988
|
},e.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
15986
15989
|
"fill-opacity":"0.01"}),e.createElement("path",{
|
|
15987
15990
|
d:"M7.99999 10.62C7.84999 10.62 7.68999 10.56 7.57999 10.44L3.53999 6.41001C3.30999 6.18001 3.30999 5.80001 3.53999 5.56001C3.76999 5.33001 4.14999 5.33001 4.38999 5.56001L7.99999 9.17001L11.61 5.56001C11.84 5.33001 12.23 5.33001 12.46 5.56001C12.69 5.79001 12.69 6.17001 12.46 6.41001L8.41999 10.44C8.29999 10.56 8.14999 10.62 7.99999 10.62Z",
|
|
15988
|
-
fill:"currentcolor"})))),
|
|
15991
|
+
fill:"currentcolor"})))),nY=e.forwardRef(((t,n)=>e.createElement("svg",{
|
|
15989
15992
|
width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",
|
|
15990
15993
|
xmlns:"http://www.w3.org/2000/svg",...t,ref:n},e.createElement("path",{
|
|
15991
15994
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
15992
15995
|
d:"M17.0975 18.4944C17.6301 18.1751 17.8085 17.4835 17.5071 16.9414L17.17 16.335C16.9678 15.9711 16.9704 15.528 17.1769 15.1666C17.3793 14.8126 17.7558 14.5941 18.1635 14.5941H18.8694C19.4997 14.5941 20 14.0745 20 13.4461V10.7544C20 10.1259 19.4997 9.6063 18.8694 9.6063H18.3369C17.8687 9.6063 17.4377 9.3511 17.2126 8.94057C16.9773 8.51146 16.9788 7.9916 17.2166 7.56386L17.4998 7.05431C17.8012 6.51212 17.6228 5.82059 17.0903 5.50125L14.8604 4.16415C14.3128 3.83576 13.6107 4.03115 13.301 4.58826L12.9716 5.18081C12.7696 5.54419 12.3864 5.7694 11.9706 5.76906C11.5542 5.76871 11.1707 5.54291 10.9685 5.17902L10.6376 4.58392C10.3279 4.02681 9.62586 3.83142 9.07821 4.15981L6.83388 5.50559C6.30131 5.82493 6.1229 6.51646 6.4243 7.05865L6.7111 7.57457C6.94768 8.00015 6.94938 8.51734 6.7156 8.94446C6.49224 9.35254 6.06407 9.6063 5.59885 9.6063H5.13055C4.50031 9.6063 4 10.1259 4 10.7544V13.4461C4 14.0745 4.50031 14.5941 5.13055 14.5941H5.76345C6.17421 14.5941 6.55354 14.814 6.75763 15.1705C6.96571 15.5339 6.96853 15.9797 6.76506 16.3457L6.43154 16.9457C6.13014 17.4879 6.30855 18.1794 6.84112 18.4988L9.07097 19.8358C9.61862 20.1642 10.3207 19.9689 10.6304 19.4117L10.9598 18.8192C11.1618 18.4558 11.545 18.2306 11.9608 18.2309C12.3771 18.2313 12.7606 18.4571 12.9629 18.821L13.2937 19.4161C13.6034 19.9732 14.3055 20.1686 14.8532 19.8402L17.0975 18.4944ZM16.003 14.4957C15.5617 15.2679 15.5561 16.2146 15.9882 16.9919L16.2347 17.4353L14.3634 18.5574L14.1447 18.1641C13.7041 17.3715 12.8688 16.8796 11.9619 16.8789C11.0548 16.8781 10.2187 17.3695 9.778 18.1623L9.56078 18.553L7.70395 17.4396L7.94686 17.0026C8.38037 16.2228 8.37437 15.273 7.93103 14.4987C7.48605 13.7215 6.65902 13.2421 5.76345 13.2421H5.35211V10.9584H5.59885C6.55817 10.9584 7.4411 10.4351 7.90168 9.59361C8.35835 8.75926 8.35503 7.74898 7.8929 6.91765L7.69671 6.56473L9.56802 5.44263L9.78666 5.83594C10.2273 6.62855 11.0626 7.12037 11.9695 7.12113C12.8766 7.12188 13.7127 6.63053 14.1534 5.83772L14.3706 5.44697L16.2274 6.56039L16.0348 6.90695C15.5713 7.74077 15.5683 8.75417 16.027 9.59065C16.4895 10.4341 17.375 10.9584 18.3369 10.9584H18.6479V13.2421H18.1635C17.2706 13.2421 16.4461 13.7205 16.003 14.4957ZM11.9657 15.3927C10.1384 15.3927 8.66702 13.8685 8.66702 12C8.66702 10.1315 10.1384 8.60732 11.9657 8.60732C13.7929 8.60732 15.2644 10.1315 15.2644 12C15.2644 13.8685 13.7929 15.3927 11.9657 15.3927ZM13.9123 12C13.9123 13.1322 13.0353 14.0406 11.9657 14.0406C10.8961 14.0406 10.0191 13.1322 10.0191 12C10.0191 10.8678 10.8961 9.95939 11.9657 9.95939C13.0353 9.95939 13.9123 10.8678 13.9123 12Z",
|
|
15993
|
-
fill:t.fill})))),
|
|
15996
|
+
fill:t.fill})))),rY=e.forwardRef(((t,n)=>{const r=cr()
|
|
15994
15997
|
;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
15995
15998
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
15996
15999
|
},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -15999,36 +16002,36 @@ fill:r.colors.text.primary}),e.createElement("mask",{id:"mask0_3930_5537",
|
|
|
15999
16002
|
style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
|
|
16000
16003
|
height:"16"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
16001
16004
|
d:"M2.58355 11.1378C4.81252 13.3668 8.33651 13.5074 10.7134 11.5548L14.1832 15.0246C14.4164 15.2578 14.7939 15.2586 15.0262 15.0262C15.2586 14.7939 15.2578 14.4164 15.0246 14.1832L11.5548 10.7134C13.5074 8.33651 13.3668 4.81252 11.1378 2.58355C8.76634 0.212068 4.92894 0.204542 2.56674 2.56674C0.204542 4.92894 0.212068 8.76634 2.58355 11.1378ZM3.42481 10.2966C1.51985 8.39167 1.5138 5.30917 3.41131 3.41166C5.30881 1.51416 8.39131 1.52021 10.2963 3.42517C12.2012 5.33013 12.2073 8.41263 10.3098 10.3101C8.41228 12.2076 5.32977 12.2016 3.42481 10.2966Z"
|
|
16002
|
-
})))})),
|
|
16005
|
+
})))})),oY=["rowMenuOptions","select"],aY=({table:t})=>{
|
|
16003
16006
|
const n=cr(),[r,o]=e.useState({}),[a,i]=e.useState([]),l=t.getAllColumns(),c=t.getState(),s=e.useCallback((()=>{
|
|
16004
16007
|
const e={};l.forEach((t=>{e[t.id]=t
|
|
16005
16008
|
})),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
|
|
16006
16009
|
}),[c.columnOrder,l,i]);return e.useEffect((()=>{o(c.columnVisibility),s()
|
|
16007
16010
|
}),[c.columnVisibility,s]),
|
|
16008
|
-
e.createElement(
|
|
16011
|
+
e.createElement(WU,null,e.createElement(GU,null,e.createElement(Yo,{
|
|
16009
16012
|
weight:"semi-bold"},"Customize columns"),e.createElement(xm,{variant:"link",
|
|
16010
16013
|
onClick:()=>{const e={};t.getAllColumns().forEach((t=>{e[t.id]=t.getIsVisible()
|
|
16011
16014
|
})),o(e),s()}
|
|
16012
|
-
},"Reset")),e.createElement(
|
|
16013
|
-
startAdornment:e.createElement(
|
|
16015
|
+
},"Reset")),e.createElement(KU,null,e.createElement(ZU,null,e.createElement(pm,{
|
|
16016
|
+
startAdornment:e.createElement(rY,{viewBox:"0 0 18px 18px"}),
|
|
16014
16017
|
placeholder:"Search columns"}),e.createElement(Yo,{weight:"semi-bold"
|
|
16015
|
-
},"Choose columns"),e.createElement(
|
|
16018
|
+
},"Choose columns"),e.createElement(XU,null,t.getAllColumns().filter((e=>!oY.includes(e.id))).map((n=>e.createElement(Yg,{
|
|
16016
16019
|
key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
|
|
16017
16020
|
onCheckedChange:e=>{const r=t.getAllColumns().find((e=>e.id===n.id));o((t=>({
|
|
16018
16021
|
...t,[n.id]:!0===e
|
|
16019
16022
|
}))),i((t=>!0===e?[...t,...r?[r]:[]]:t.filter((e=>e.id!==n.id))))}
|
|
16020
|
-
}))))),e.createElement(
|
|
16021
|
-
},`Selected columns (${a.length})`),e.createElement(
|
|
16023
|
+
}))))),e.createElement(qU,null,e.createElement(Yo,{weight:"semi-bold"
|
|
16024
|
+
},`Selected columns (${a.length})`),e.createElement(Mj,{
|
|
16022
16025
|
className:"ReorderContainer",onReorder:e=>{i(e)},
|
|
16023
|
-
customFilter:e=>!
|
|
16026
|
+
customFilter:e=>!oY.includes(e.id??""),customRender:t=>e.createElement(QU,{
|
|
16024
16027
|
key:t.id
|
|
16025
16028
|
},e.createElement("div",null,t?.columnDef?.header?.toString()??""),e.createElement(Vo,{
|
|
16026
16029
|
onClick:()=>{o((e=>({...e,[t.id]:!1}))),i((e=>e.filter((e=>e.id!==t.id))))}
|
|
16027
16030
|
},e.createElement(ro,{fill:n.colors.text.primary}))),items:a
|
|
16028
|
-
}))),e.createElement(
|
|
16031
|
+
}))),e.createElement(JU,null,e.createElement(DF,{asChild:!0
|
|
16029
16032
|
},e.createElement(xm,{variant:"secondary"},"Cancel")),e.createElement(xm,{
|
|
16030
16033
|
onClick:()=>{t.setColumnOrder(a.map((e=>e.id))),t.setColumnVisibility(r)}
|
|
16031
|
-
},"Update")))},
|
|
16034
|
+
},"Update")))},iY=t=>{
|
|
16032
16035
|
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=t,s=cr()
|
|
16033
16036
|
;return e.createElement(Yv,null,e.createElement(Wv,{asChild:!0,disabled:i
|
|
16034
16037
|
},e.createElement(No,null,n)),e.createElement(Gv,null,e.createElement(Zv,{
|
|
@@ -16038,18 +16041,18 @@ side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
|
|
|
16038
16041
|
className:"DropdownMenuItem",key:t?.[r],onSelect:()=>{const e=c??[];e[n]=t?.[r],
|
|
16039
16042
|
a?.(e)}},t?.[o],c?.[n]===t?.[r]&&e.createElement(so,{fill:s.colors.common.accent
|
|
16040
16043
|
})))),e.createElement(qv,{className:"DropdownMenuSeparator"})))))))
|
|
16041
|
-
},
|
|
16044
|
+
},lY="Tabs",[cY,sY]=i(lY,[km]),uY=km(),[dY,hY]=cY(lY),fY=e.forwardRef(((t,n)=>{
|
|
16042
16045
|
const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:s,activationMode:u="automatic",...d}=t,h=B(s),[f,p]=y({
|
|
16043
|
-
prop:o,onChange:i,defaultProp:l});return e.createElement(
|
|
16046
|
+
prop:o,onChange:i,defaultProp:l});return e.createElement(dY,{scope:r,baseId:S(),
|
|
16044
16047
|
value:f,onValueChange:p,orientation:c,dir:h,activationMode:u
|
|
16045
16048
|
},e.createElement(b.div,a({dir:h,"data-orientation":c},d,{ref:n})))}))
|
|
16046
|
-
;function
|
|
16047
|
-
return`${e}-content-${t}`}const
|
|
16048
|
-
const{__scopeTabs:r,loop:o=!0,...i}=t,l=
|
|
16049
|
+
;function pY(e,t){return`${e}-trigger-${t}`}function mY(e,t){
|
|
16050
|
+
return`${e}-content-${t}`}const vY=e.forwardRef(((t,n)=>{
|
|
16051
|
+
const{__scopeTabs:r,loop:o=!0,...i}=t,l=hY("TabsList",r),c=uY(r)
|
|
16049
16052
|
;return e.createElement($m,a({asChild:!0},c,{orientation:l.orientation,
|
|
16050
16053
|
dir:l.dir,loop:o}),e.createElement(b.div,a({role:"tablist",
|
|
16051
|
-
"aria-orientation":l.orientation},i,{ref:n})))})),
|
|
16052
|
-
const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=
|
|
16054
|
+
"aria-orientation":l.orientation},i,{ref:n})))})),gY=e.forwardRef(((t,n)=>{
|
|
16055
|
+
const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=hY("TabsTrigger",r),s=uY(r),u=pY(c.baseId,o),d=mY(c.baseId,o),h=o===c.value
|
|
16053
16056
|
;return e.createElement(Bm,a({asChild:!0},s,{focusable:!i,active:h
|
|
16054
16057
|
}),e.createElement(b.button,a({type:"button",role:"tab","aria-selected":h,
|
|
16055
16058
|
"aria-controls":d,"data-state":h?"active":"inactive",
|
|
@@ -16058,21 +16061,21 @@ onMouseDown:v(t.onMouseDown,(e=>{
|
|
|
16058
16061
|
i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(o)})),
|
|
16059
16062
|
onKeyDown:v(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(o)
|
|
16060
16063
|
})),onFocus:v(t.onFocus,(()=>{const e="manual"!==c.activationMode
|
|
16061
|
-
;h||i||!e||c.onValueChange(o)}))})))})),
|
|
16062
|
-
const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=
|
|
16064
|
+
;h||i||!e||c.onValueChange(o)}))})))})),yY=e.forwardRef(((t,n)=>{
|
|
16065
|
+
const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=hY("TabsContent",r),u=pY(s.baseId,o),d=mY(s.baseId,o),h=o===s.value,f=e.useRef(h)
|
|
16063
16066
|
;return e.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1))
|
|
16064
16067
|
;return()=>cancelAnimationFrame(e)}),[]),e.createElement(z,{present:i||h
|
|
16065
16068
|
},(({present:r})=>e.createElement(b.div,a({"data-state":h?"active":"inactive",
|
|
16066
16069
|
"data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,
|
|
16067
16070
|
id:d,tabIndex:0},c,{ref:n,style:{...t.style,
|
|
16068
16071
|
animationDuration:f.current?"0s":void 0}}),r&&l)))
|
|
16069
|
-
})),
|
|
16072
|
+
})),bY=yr(fY)``,wY=yr(yY)``,CY=yr(vY)`
|
|
16070
16073
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
16071
16074
|
display: flex;
|
|
16072
16075
|
flex-wrap: nowrap;
|
|
16073
16076
|
gap: 12px;
|
|
16074
16077
|
direction: ${({theme:e})=>e.direction};
|
|
16075
|
-
`,
|
|
16078
|
+
`,zY=yr(gY)`
|
|
16076
16079
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16077
16080
|
direction: ${({theme:e})=>e.direction};
|
|
16078
16081
|
background-color: unset;
|
|
@@ -16100,35 +16103,35 @@ animationDuration:f.current?"0s":void 0}}),r&&l)))
|
|
|
16100
16103
|
color: ${({theme:e})=>e.colors.text.disabled};
|
|
16101
16104
|
cursor: not-allowed;
|
|
16102
16105
|
}
|
|
16103
|
-
`;var
|
|
16106
|
+
`;var MY=wr`
|
|
16104
16107
|
* {
|
|
16105
16108
|
box-sizing: border-box;
|
|
16106
16109
|
/* direction: ${({theme:e})=>e.direction}; */
|
|
16107
16110
|
}
|
|
16108
|
-
`;const
|
|
16111
|
+
`;const xY=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
|
|
16109
16112
|
n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
16110
|
-
}),[]),{isBrowser:t,isServer:!t}},
|
|
16113
|
+
}),[]),{isBrowser:t,isServer:!t}},EY=e=>{const t=document.createElement("div")
|
|
16111
16114
|
;return t.setAttribute("id",e),t
|
|
16112
|
-
},
|
|
16115
|
+
},SY="ToastProvider",[_Y,HY,DY]=m("Toast"),[AY,LY]=i("Toast",[DY]),[VY,kY]=AY(SY),TY=t=>{
|
|
16113
16116
|
const{__scopeToast:n,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:l}=t,[c,s]=e.useState(null),[u,d]=e.useState(0),h=e.useRef(!1),f=e.useRef(!1)
|
|
16114
|
-
;return e.createElement(
|
|
16117
|
+
;return e.createElement(_Y.Provider,{scope:n},e.createElement(VY,{scope:n,
|
|
16115
16118
|
label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:c,
|
|
16116
16119
|
onViewportChange:s,onToastAdd:e.useCallback((()=>d((e=>e+1))),[]),
|
|
16117
16120
|
onToastRemove:e.useCallback((()=>d((e=>e-1))),[]),
|
|
16118
|
-
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f},l))};
|
|
16121
|
+
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f},l))};TY.propTypes={
|
|
16119
16122
|
label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
|
|
16120
|
-
return new Error(`Invalid prop \`label\` supplied to \`${
|
|
16123
|
+
return new Error(`Invalid prop \`label\` supplied to \`${SY}\`. Expected non-empty \`string\`.`)
|
|
16121
16124
|
}return null}}
|
|
16122
|
-
;const
|
|
16123
|
-
const{__scopeToast:r,hotkey:o=
|
|
16125
|
+
;const RY=["F8"],PY="toast.viewportPause",IY="toast.viewportResume",OY=e.forwardRef(((t,n)=>{
|
|
16126
|
+
const{__scopeToast:r,hotkey:o=RY,label:i="Notifications ({hotkey})",...l}=t,c=kY("ToastViewport",r),u=HY(r),d=e.useRef(null),h=e.useRef(null),f=e.useRef(null),p=e.useRef(null),m=s(n,p,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0
|
|
16124
16127
|
;e.useEffect((()=>{const e=e=>{var t;const n=o.every((t=>e[t]||e.code===t))
|
|
16125
16128
|
;n&&(null===(t=p.current)||void 0===t||t.focus())}
|
|
16126
16129
|
;return document.addEventListener("keydown",e),
|
|
16127
16130
|
()=>document.removeEventListener("keydown",e)}),[o]),e.useEffect((()=>{
|
|
16128
16131
|
const e=d.current,t=p.current;if(g&&e&&t){const n=()=>{
|
|
16129
|
-
if(!c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16132
|
+
if(!c.isClosePausedRef.current){const e=new CustomEvent(PY)
|
|
16130
16133
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{
|
|
16131
|
-
if(c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16134
|
+
if(c.isClosePausedRef.current){const e=new CustomEvent(IY)
|
|
16132
16135
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{
|
|
16133
16136
|
!e.contains(t.relatedTarget)&&r()},a=()=>{
|
|
16134
16137
|
e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
|
|
@@ -16140,7 +16143,7 @@ e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),
|
|
|
16140
16143
|
e.removeEventListener("pointerleave",a),
|
|
16141
16144
|
window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
|
|
16142
16145
|
}),[g,c.isClosePausedRef]);const y=e.useCallback((({tabbingDirection:e})=>{
|
|
16143
|
-
const t=u().map((t=>{const n=t.ref.current,r=[n,...
|
|
16146
|
+
const t=u().map((t=>{const n=t.ref.current,r=[n,...QY(n)]
|
|
16144
16147
|
;return"forwards"===e?r:r.reverse()}))
|
|
16145
16148
|
;return("forwards"===e?t.reverse():t).flat()}),[u]);return e.useEffect((()=>{
|
|
16146
16149
|
const e=p.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
@@ -16148,23 +16151,23 @@ const e=p.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
16148
16151
|
;if(t.target===e&&i)return void(null===(r=h.current)||void 0===r||r.focus())
|
|
16149
16152
|
;const l=y({tabbingDirection:i?"backwards":"forwards"
|
|
16150
16153
|
}),c=l.findIndex((e=>e===n));var o,a
|
|
16151
|
-
;if(
|
|
16154
|
+
;if(eW(l.slice(c+1)))t.preventDefault();else i?null===(o=h.current)||void 0===o||o.focus():null===(a=f.current)||void 0===a||a.focus()
|
|
16152
16155
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
16153
16156
|
}}),[u,y]),e.createElement(Ou,{ref:d,role:"region",
|
|
16154
16157
|
"aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{
|
|
16155
|
-
pointerEvents:g?void 0:"none"}},g&&e.createElement(
|
|
16156
|
-
onFocusFromOutsideViewport:()=>{
|
|
16157
|
-
}),e.createElement(
|
|
16158
|
-
ref:m}))),g&&e.createElement(
|
|
16159
|
-
tabbingDirection:"backwards"}))}}))})),
|
|
16160
|
-
const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=
|
|
16158
|
+
pointerEvents:g?void 0:"none"}},g&&e.createElement(NY,{ref:h,
|
|
16159
|
+
onFocusFromOutsideViewport:()=>{eW(y({tabbingDirection:"forwards"}))}
|
|
16160
|
+
}),e.createElement(_Y.Slot,{scope:r},e.createElement(b.ol,a({tabIndex:-1},l,{
|
|
16161
|
+
ref:m}))),g&&e.createElement(NY,{ref:f,onFocusFromOutsideViewport:()=>{eW(y({
|
|
16162
|
+
tabbingDirection:"backwards"}))}}))})),NY=e.forwardRef(((t,n)=>{
|
|
16163
|
+
const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=kY("ToastFocusProxy",r)
|
|
16161
16164
|
;return e.createElement(Nh,a({"aria-hidden":!0,tabIndex:0},i,{ref:n,style:{
|
|
16162
16165
|
position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget
|
|
16163
16166
|
;!(null!==(t=l.viewport)&&void 0!==t&&t.contains(n))&&o()}}))
|
|
16164
|
-
})),
|
|
16167
|
+
})),FY="Toast",$Y=e.forwardRef(((t,n)=>{
|
|
16165
16168
|
const{forceMount:r,open:o,defaultOpen:i,onOpenChange:l,...c}=t,[s=!0,u]=y({
|
|
16166
16169
|
prop:o,defaultProp:i,onChange:l});return e.createElement(z,{present:r||s
|
|
16167
|
-
},e.createElement(
|
|
16170
|
+
},e.createElement(UY,a({open:s},c,{ref:n,onClose:()=>u(!1),onPause:g(t.onPause),
|
|
16168
16171
|
onResume:g(t.onResume),onSwipeStart:v(t.onSwipeStart,(e=>{
|
|
16169
16172
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
16170
16173
|
onSwipeMove:v(t.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta
|
|
@@ -16183,8 +16186,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
|
16183
16186
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
16184
16187
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
16185
16188
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),u(!1)}))
|
|
16186
|
-
})))})),[
|
|
16187
|
-
const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=
|
|
16189
|
+
})))})),[BY,jY]=AY(FY,{onClose(){}}),UY=e.forwardRef(((n,r)=>{
|
|
16190
|
+
const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=kY(FY,o),[M,x]=e.useState(null),E=s(r,(e=>x(e))),S=e.useRef(null),_=e.useRef(null),H=l||z.duration,D=e.useRef(0),A=e.useRef(H),L=e.useRef(0),{onToastAdd:V,onToastRemove:k}=z,T=g((()=>{
|
|
16188
16191
|
var e
|
|
16189
16192
|
;(null==M?void 0:M.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
|
|
16190
16193
|
u()})),R=e.useCallback((e=>{
|
|
@@ -16193,15 +16196,15 @@ L.current=window.setTimeout(T,e))}),[T]);e.useEffect((()=>{const e=z.viewport
|
|
|
16193
16196
|
;if(e){const t=()=>{R(A.current),null==f||f()},n=()=>{
|
|
16194
16197
|
const e=(new Date).getTime()-D.current
|
|
16195
16198
|
;A.current=A.current-e,window.clearTimeout(L.current),null==h||h()}
|
|
16196
|
-
;return e.addEventListener(
|
|
16197
|
-
e.removeEventListener(
|
|
16199
|
+
;return e.addEventListener(PY,n),e.addEventListener(IY,t),()=>{
|
|
16200
|
+
e.removeEventListener(PY,n),e.removeEventListener(IY,t)}}
|
|
16198
16201
|
}),[z.viewport,H,h,f,R]),e.useEffect((()=>{c&&!z.isClosePausedRef.current&&R(H)
|
|
16199
16202
|
}),[c,H,z.isClosePausedRef,R]),e.useEffect((()=>(V(),()=>k())),[V,k])
|
|
16200
|
-
;const P=e.useMemo((()=>M?
|
|
16201
|
-
;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(
|
|
16203
|
+
;const P=e.useMemo((()=>M?ZY(M):null),[M])
|
|
16204
|
+
;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(YY,{
|
|
16202
16205
|
__scopeToast:o,role:"status","aria-live":"foreground"===i?"assertive":"polite",
|
|
16203
|
-
"aria-atomic":!0},P),e.createElement(
|
|
16204
|
-
},t.createPortal(e.createElement(
|
|
16206
|
+
"aria-atomic":!0},P),e.createElement(BY,{scope:o,onClose:T
|
|
16207
|
+
},t.createPortal(e.createElement(_Y.ItemSlot,{scope:o},e.createElement(Iu,{
|
|
16205
16208
|
asChild:!0,onEscapeKeyDown:v(d,(()=>{
|
|
16206
16209
|
z.isFocusedToastEscapeKeyDownRef.current||T(),
|
|
16207
16210
|
z.isFocusedToastEscapeKeyDownRef.current=!1}))},e.createElement(b.li,a({
|
|
@@ -16214,59 +16217,59 @@ T()))})),onPointerDown:v(n.onPointerDown,(e=>{0===e.button&&(S.current={
|
|
|
16214
16217
|
x:e.clientX,y:e.clientY})})),onPointerMove:v(n.onPointerMove,(e=>{
|
|
16215
16218
|
if(!S.current)return
|
|
16216
16219
|
;const t=e.clientX-S.current.x,n=e.clientY-S.current.y,r=Boolean(_.current),o=["left","right"].includes(z.swipeDirection),a=["left","up"].includes(z.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,l=o?0:a(0,n),c="touch"===e.pointerType?10:2,s={
|
|
16217
|
-
x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,
|
|
16218
|
-
discrete:!1})):
|
|
16220
|
+
x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,XY("toast.swipeMove",m,u,{
|
|
16221
|
+
discrete:!1})):JY(s,z.swipeDirection,c)?(_.current=s,XY("toast.swipeStart",p,u,{
|
|
16219
16222
|
discrete:!1
|
|
16220
16223
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(S.current=null)
|
|
16221
16224
|
})),onPointerUp:v(n.onPointerUp,(e=>{const t=_.current,n=e.target
|
|
16222
16225
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
16223
16226
|
_.current=null,S.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
16224
|
-
delta:t};
|
|
16225
|
-
discrete:!0}):
|
|
16227
|
+
delta:t};JY(t,z.swipeDirection,z.swipeThreshold)?XY("toast.swipeEnd",w,r,{
|
|
16228
|
+
discrete:!0}):XY("toast.swipeCancel",y,r,{discrete:!0
|
|
16226
16229
|
}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
|
|
16227
|
-
})))),z.viewport))):null}))
|
|
16230
|
+
})))),z.viewport))):null}));UY.propTypes={type(e){
|
|
16228
16231
|
if(e.type&&!["foreground","background"].includes(e.type)){
|
|
16229
|
-
return new Error(`Invalid prop \`type\` supplied to \`${
|
|
16230
|
-
}return null}};const
|
|
16231
|
-
const{__scopeToast:n,children:r,...o}=t,a=
|
|
16232
|
+
return new Error(`Invalid prop \`type\` supplied to \`${FY}\`. Expected \`foreground | background\`.`)
|
|
16233
|
+
}return null}};const YY=t=>{
|
|
16234
|
+
const{__scopeToast:n,children:r,...o}=t,a=kY(FY,n),[i,l]=e.useState(!1),[c,s]=e.useState(!1)
|
|
16232
16235
|
;return function(e=(()=>{})){const t=g(e);C((()=>{let e=0,n=0
|
|
16233
16236
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
16234
16237
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
16235
16238
|
}((()=>l(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
16236
16239
|
;return()=>window.clearTimeout(e)}),[]),c?null:e.createElement(Ih,{asChild:!0
|
|
16237
16240
|
},e.createElement(Nh,o,i&&e.createElement(e.Fragment,null,a.label," ",r)))
|
|
16238
|
-
},
|
|
16239
|
-
;return e.createElement(b.div,a({},o,{ref:n}))})),
|
|
16240
|
-
const{altText:r,...o}=t;return r?e.createElement(
|
|
16241
|
-
},e.createElement(
|
|
16241
|
+
},WY=e.forwardRef(((t,n)=>{const{__scopeToast:r,...o}=t
|
|
16242
|
+
;return e.createElement(b.div,a({},o,{ref:n}))})),GY=e.forwardRef(((t,n)=>{
|
|
16243
|
+
const{altText:r,...o}=t;return r?e.createElement(qY,{altText:r,asChild:!0
|
|
16244
|
+
},e.createElement(KY,a({},o,{ref:n}))):null}));GY.propTypes={
|
|
16242
16245
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
16243
|
-
};const
|
|
16244
|
-
const{__scopeToast:r,...o}=t,i=
|
|
16246
|
+
};const KY=e.forwardRef(((t,n)=>{
|
|
16247
|
+
const{__scopeToast:r,...o}=t,i=jY("ToastClose",r);return e.createElement(qY,{
|
|
16245
16248
|
asChild:!0},e.createElement(b.button,a({type:"button"},o,{ref:n,
|
|
16246
|
-
onClick:v(t.onClick,i.onClose)})))})),
|
|
16249
|
+
onClick:v(t.onClick,i.onClose)})))})),qY=e.forwardRef(((t,n)=>{
|
|
16247
16250
|
const{__scopeToast:r,altText:o,...i}=t;return e.createElement(b.div,a({
|
|
16248
16251
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0
|
|
16249
|
-
},i,{ref:n}))}));function
|
|
16252
|
+
},i,{ref:n}))}));function ZY(e){const t=[]
|
|
16250
16253
|
;return Array.from(e.childNodes).forEach((e=>{
|
|
16251
16254
|
if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
|
|
16252
16255
|
return e.nodeType===e.ELEMENT_NODE}(e)){
|
|
16253
16256
|
const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
|
|
16254
16257
|
;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
|
|
16255
|
-
}else t.push(...
|
|
16258
|
+
}else t.push(...ZY(e))}})),t}function XY(e,t,n,{discrete:r}){
|
|
16256
16259
|
const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,
|
|
16257
16260
|
cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0
|
|
16258
|
-
}),r?w(o,a):o.dispatchEvent(a)}const
|
|
16261
|
+
}),r?w(o,a):o.dispatchEvent(a)}const JY=(e,t,n=0)=>{
|
|
16259
16262
|
const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o
|
|
16260
|
-
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function
|
|
16263
|
+
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function QY(e){
|
|
16261
16264
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
16262
16265
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
16263
16266
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
16264
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
16267
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function eW(e){
|
|
16265
16268
|
const t=document.activeElement
|
|
16266
16269
|
;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
|
|
16267
|
-
const
|
|
16270
|
+
const tW=OY,nW=$Y,rW=WY,oW=GY,aW=yr(TY)``;yr.div`
|
|
16268
16271
|
border-top: 4px solid;
|
|
16269
|
-
`;const
|
|
16272
|
+
`;const iW=yr(nW)`
|
|
16270
16273
|
direction: ${({theme:e})=>e.direction};
|
|
16271
16274
|
&[data-state='open']:nth-last-of-type(1) {
|
|
16272
16275
|
z-index: ${({theme:e})=>(e.zIndex.snackbar||Eo.snackbar)-1};
|
|
@@ -16313,7 +16316,7 @@ const JY=RY,QY=OY,eW=jY,tW=UY,nW=yr(LY)``;yr.div`
|
|
|
16313
16316
|
|
|
16314
16317
|
width: 400px;
|
|
16315
16318
|
transition: all 0.3s ease-in-out;
|
|
16316
|
-
`,
|
|
16319
|
+
`,lW=yr(rW)`
|
|
16317
16320
|
text-align: ${({theme:e})=>"ltr"===e.direction?"left":"right"};
|
|
16318
16321
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16319
16322
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -16321,7 +16324,7 @@ const JY=RY,QY=OY,eW=jY,tW=UY,nW=yr(LY)``;yr.div`
|
|
|
16321
16324
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16322
16325
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
16323
16326
|
flex: 1;
|
|
16324
|
-
`,
|
|
16327
|
+
`,cW=yr(oW)``,sW=yr(tW)`
|
|
16325
16328
|
position: fixed;
|
|
16326
16329
|
top: 16px;
|
|
16327
16330
|
display: flex;
|
|
@@ -16353,13 +16356,13 @@ const JY=RY,QY=OY,eW=jY,tW=UY,nW=yr(LY)``;yr.div`
|
|
|
16353
16356
|
animation-play-state: paused;
|
|
16354
16357
|
}
|
|
16355
16358
|
}
|
|
16356
|
-
`,
|
|
16359
|
+
`,uW=yr.div`
|
|
16357
16360
|
direction: ${({theme:e})=>e.direction};
|
|
16358
16361
|
display: flex;
|
|
16359
16362
|
align-items: center;
|
|
16360
16363
|
padding: 16px;
|
|
16361
16364
|
gap: 8px;
|
|
16362
|
-
`,
|
|
16365
|
+
`,dW=yr.div`
|
|
16363
16366
|
height: 4px;
|
|
16364
16367
|
background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
16365
16368
|
border-radius: 4px 4px 0 0;
|
|
@@ -16370,18 +16373,18 @@ const JY=RY,QY=OY,eW=jY,tW=UY,nW=yr(LY)``;yr.div`
|
|
|
16370
16373
|
${"focus"===t?"running":"paused"};
|
|
16371
16374
|
will-change: width;
|
|
16372
16375
|
`}
|
|
16373
|
-
`,
|
|
16374
|
-
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}}),
|
|
16376
|
+
`,hW=e.createContext({toasts:[],windowState:"focus",retainOnHover:!0,
|
|
16377
|
+
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}}),fW=t=>{const n=cr()
|
|
16375
16378
|
;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
16376
16379
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16377
16380
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16378
16381
|
d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0ZM8 14.6C4.35492 14.6 1.4 11.6451 1.4 8C1.4 4.35492 4.35492 1.4 8 1.4C11.6451 1.4 14.6 4.35492 14.6 8C14.5945 11.6428 11.6428 14.5945 8 14.6ZM9 8L10.82 6.17L10.83 6.18C11.1061 5.90386 11.1061 5.45614 10.83 5.18C10.5539 4.90386 10.1061 4.90386 9.83 5.18L8 7L6.18 5.17C5.90386 4.89386 5.45614 4.89386 5.18 5.17C4.90386 5.44614 4.90386 5.89386 5.18 6.17L7 8L5.17 9.82C4.89386 10.0961 4.89386 10.5439 5.17 10.82C5.44614 11.0961 5.89386 11.0961 6.17 10.82L8 9L9.83 10.83C10.1061 11.1061 10.5539 11.1061 10.83 10.83C11.1061 10.5539 11.1061 10.1061 10.83 9.83L9 8Z",
|
|
16379
|
-
fill:n.colors.text.semantic.error}))},
|
|
16382
|
+
fill:n.colors.text.semantic.error}))},pW=t=>{const n=cr()
|
|
16380
16383
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
16381
16384
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16382
16385
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16383
16386
|
d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84286 12.1217 2 10 2ZM9.99999 16.6C6.35491 16.6 3.39999 13.6451 3.39999 10C3.39999 6.35493 6.35491 3.40001 9.99999 3.40001C13.6451 3.40001 16.6 6.35493 16.6 10C16.5945 13.6428 13.6428 16.5945 9.99999 16.6ZM14.0045 7.83C14.0045 7.64099 13.927 7.46025 13.79 7.33C13.5144 7.06199 13.0756 7.06199 12.8 7.33L9 11.18L7.21 9.41C7.03137 9.23136 6.771 9.1616 6.52699 9.22698C6.28297 9.29237 6.09237 9.48297 6.02699 9.72698C5.9616 9.971 6.03137 10.2314 6.21 10.41L8.45 12.67C8.7268 12.9446 9.1732 12.9446 9.45 12.67L13.79 8.33C13.927 8.19974 14.0045 8.01901 14.0045 7.83Z",
|
|
16384
|
-
fill:n.colors.text.semantic.success}))},
|
|
16387
|
+
fill:n.colors.text.semantic.success}))},mW=t=>{const n=cr()
|
|
16385
16388
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
16386
16389
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16387
16390
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -16390,54 +16393,54 @@ fill:n.colors.text.semantic.warning}),e.createElement("path",{
|
|
|
16390
16393
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16391
16394
|
d:"M9 12.8668C9 12.3145 9.44771 11.8668 10 11.8668C10.5523 11.8668 11 12.3145 11 12.8668C11 13.4191 10.5523 13.8668 10 13.8668C9.44771 13.8668 9 13.4191 9 12.8668ZM9.99951 10.9268C10.387 10.9268 10.7012 10.6127 10.7012 10.2252V6.48847C10.7012 6.10096 10.387 5.78681 9.99951 5.78681C9.612 5.78681 9.29785 6.10096 9.29785 6.48847V10.2252C9.29785 10.6127 9.612 10.9268 9.99951 10.9268Z",
|
|
16392
16395
|
fill:n.colors.text.semantic.warning}))
|
|
16393
|
-
},
|
|
16394
|
-
const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:f}=e.useContext(
|
|
16396
|
+
},vW=({index:t,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
|
|
16397
|
+
const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:f}=e.useContext(hW)??{},p=e.useRef(null),[m,v]=e.useState(!1)
|
|
16395
16398
|
;e.useEffect((()=>{const e=window.setTimeout((()=>{
|
|
16396
16399
|
o||m&&f||h||u((e=>e.filter((e=>e.id!==r))))}),l);return()=>clearTimeout(e)
|
|
16397
|
-
}),[l,o,r,u,m,f,h]);const g={success:e.createElement(
|
|
16398
|
-
fill:s.colors.text.semantic.success}),warning:e.createElement(
|
|
16399
|
-
fill:s.colors.text.semantic.warning}),error:e.createElement(
|
|
16400
|
+
}),[l,o,r,u,m,f,h]);const g={success:e.createElement(pW,{
|
|
16401
|
+
fill:s.colors.text.semantic.success}),warning:e.createElement(mW,{
|
|
16402
|
+
fill:s.colors.text.semantic.warning}),error:e.createElement(fW,{
|
|
16400
16403
|
fill:s.colors.text.semantic.error}),info:e.createElement(io,{
|
|
16401
16404
|
fill:s.colors.text.semantic.info})}
|
|
16402
|
-
;return e.createElement(e.Fragment,null,e.createElement(
|
|
16405
|
+
;return e.createElement(e.Fragment,null,e.createElement(iW,{role:"alert",
|
|
16403
16406
|
"aria-live":"polite",ref:p,toastType:c,dir:s.direction,style:o||!i?{
|
|
16404
16407
|
borderTop:"none"}:void 0,toastIndex:t,
|
|
16405
16408
|
className:`ToastRoot Toast-${r??""}`.trim(),duration:o?1/0:l,
|
|
16406
16409
|
onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16407
|
-
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(
|
|
16410
|
+
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(dW,{
|
|
16408
16411
|
className:"ToastProgress",windowState:d,toastType:c,delay:!o&&i?l:"none"
|
|
16409
|
-
}),e.createElement(
|
|
16410
|
-
},a),e.createElement(
|
|
16412
|
+
}),e.createElement(uW,null,n??g[c],e.createElement(lW,{className:"ToastTitle"
|
|
16413
|
+
},a),e.createElement(cW,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
16411
16414
|
"aria-label":"Close"},e.createElement(No,null,e.createElement(ro,{
|
|
16412
|
-
fill:s.colors.text.primary}))))))},
|
|
16413
|
-
const n=`ui-${t}`,{isBrowser:r}=
|
|
16414
|
-
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||
|
|
16415
|
+
fill:s.colors.text.primary}))))))},gW=()=>{const n=((t=BN())=>{
|
|
16416
|
+
const n=`ui-${t}`,{isBrowser:r}=xY(),[o,a]=e.useState(r?EY(n):null)
|
|
16417
|
+
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||EY(n)
|
|
16415
16418
|
;e||document.body.appendChild(t),a(t)}),[]),o
|
|
16416
|
-
})("toast"),{toasts:r}=e.useContext(
|
|
16417
|
-
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(
|
|
16418
|
-
swipeDirection:"up"},r.map(((t,n)=>e.createElement(
|
|
16419
|
-
index:n}))),e.createElement(
|
|
16420
|
-
},
|
|
16419
|
+
})("toast"),{toasts:r}=e.useContext(hW)??{}
|
|
16420
|
+
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(aW,{
|
|
16421
|
+
swipeDirection:"up"},r.map(((t,n)=>e.createElement(vW,{key:`Toast-${t.id}`,...t,
|
|
16422
|
+
index:n}))),e.createElement(sW,{className:"ToastViewport"}))),n):null
|
|
16423
|
+
},yW=({children:t,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
|
|
16421
16424
|
const[o,a]=e.useState("focus"),[i,l]=e.useState([]),c=e.useCallback((e=>{
|
|
16422
|
-
l((t=>[{...e,id:
|
|
16425
|
+
l((t=>[{...e,id:BN(),state:"open"},...t]))}),[]),s=e.useCallback((e=>{
|
|
16423
16426
|
l((t=>e(t)))}),[]),u=e.useMemo((()=>({toasts:i,addToast:c,windowState:o,
|
|
16424
16427
|
updateToasts:s,retainOnWindowBlur:r,retainOnHover:n})),[i,c,o,s,n,r])
|
|
16425
16428
|
;return e.useEffect((()=>(window.addEventListener&&r&&(window.addEventListener("focus",(()=>{
|
|
16426
16429
|
a("focus")}),!1),window.addEventListener("blur",(()=>{a("blur")}),!1)),()=>{
|
|
16427
16430
|
r&&(window.removeEventListener("focus",(()=>{})),
|
|
16428
16431
|
window.removeEventListener("blur",(()=>{})))
|
|
16429
|
-
})),[r]),e.createElement(
|
|
16430
|
-
},
|
|
16432
|
+
})),[r]),e.createElement(hW.Provider,{value:u},e.createElement(gW,null),t)
|
|
16433
|
+
},bW="Switch",[wW,CW]=i(bW),[zW,MW]=wW(bW),xW=e.forwardRef(((t,n)=>{
|
|
16431
16434
|
const{__scopeSwitch:r,name:o,checked:i,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:h,...f}=t,[p,m]=e.useState(null),g=s(n,(e=>m(e))),w=e.useRef(!1),C=!p||Boolean(p.closest("form")),[z=!1,M]=y({
|
|
16432
|
-
prop:i,defaultProp:l,onChange:h});return e.createElement(
|
|
16435
|
+
prop:i,defaultProp:l,onChange:h});return e.createElement(zW,{scope:r,checked:z,
|
|
16433
16436
|
disabled:u},e.createElement(b.button,a({type:"button",role:"switch",
|
|
16434
|
-
"aria-checked":z,"aria-required":c,"data-state":
|
|
16437
|
+
"aria-checked":z,"aria-required":c,"data-state":SW(z),
|
|
16435
16438
|
"data-disabled":u?"":void 0,disabled:u,value:d},f,{ref:g,
|
|
16436
16439
|
onClick:v(t.onClick,(e=>{
|
|
16437
16440
|
M((e=>!e)),C&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())
|
|
16438
|
-
}))})),C&&e.createElement(
|
|
16441
|
+
}))})),C&&e.createElement(EW,{control:p,bubbles:!w.current,name:o,value:d,
|
|
16439
16442
|
checked:z,required:c,disabled:u,style:{transform:"translateX(-100%)"}}))
|
|
16440
|
-
})),
|
|
16443
|
+
})),EW=t=>{
|
|
16441
16444
|
const{control:n,checked:r,bubbles:o=!0,...i}=t,l=e.useRef(null),c=Oh(r),s=vh(n)
|
|
16442
16445
|
;return e.useEffect((()=>{
|
|
16443
16446
|
const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
@@ -16445,21 +16448,21 @@ const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDes
|
|
|
16445
16448
|
;n.call(e,r),e.dispatchEvent(t)}}),[c,r,o]),e.createElement("input",a({
|
|
16446
16449
|
type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:l,style:{
|
|
16447
16450
|
...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))}
|
|
16448
|
-
;function
|
|
16449
|
-
const{__scopeSwitch:r,...o}=t,i=
|
|
16450
|
-
;return e.createElement(b.span,a({"data-state":
|
|
16451
|
-
"data-disabled":i.disabled?"":void 0},o,{ref:n}))})),
|
|
16451
|
+
;function SW(e){return e?"checked":"unchecked"}const _W=e.forwardRef(((t,n)=>{
|
|
16452
|
+
const{__scopeSwitch:r,...o}=t,i=MW("SwitchThumb",r)
|
|
16453
|
+
;return e.createElement(b.span,a({"data-state":SW(i.checked),
|
|
16454
|
+
"data-disabled":i.disabled?"":void 0},o,{ref:n}))})),HW={sm:{width:28,height:12,
|
|
16452
16455
|
thumb:16,offTransform:[-2,-2],onTransform:[14,-2]},md:{width:36,height:16,
|
|
16453
16456
|
thumb:20,offTransform:[-2,-2],onTransform:[18,-2]},lg:{width:44,height:20,
|
|
16454
|
-
thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},
|
|
16457
|
+
thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},DW=yr(xW)`
|
|
16455
16458
|
margin: 0;
|
|
16456
16459
|
padding: 0;
|
|
16457
16460
|
outline: 0;
|
|
16458
16461
|
border: none;
|
|
16459
16462
|
position: relative;
|
|
16460
|
-
width: ${({size:e})=>
|
|
16461
|
-
height: ${({size:e})=>
|
|
16462
|
-
border-radius: ${({size:e})=>
|
|
16463
|
+
width: ${({size:e})=>HW[e].width}px;
|
|
16464
|
+
height: ${({size:e})=>HW[e].height}px;
|
|
16465
|
+
border-radius: ${({size:e})=>HW[e].height/2}px;
|
|
16463
16466
|
direction: ltr !important;
|
|
16464
16467
|
&[data-disabled] {
|
|
16465
16468
|
opacity: 0.5;
|
|
@@ -16480,17 +16483,17 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},SW=yr(CW)`
|
|
|
16480
16483
|
}
|
|
16481
16484
|
}
|
|
16482
16485
|
}
|
|
16483
|
-
`,
|
|
16486
|
+
`,AW=yr(_W)`
|
|
16484
16487
|
display: grid;
|
|
16485
16488
|
place-content: center;
|
|
16486
|
-
width: ${({size:e})=>
|
|
16487
|
-
height: ${({size:e})=>
|
|
16489
|
+
width: ${({size:e})=>HW[e].thumb}px;
|
|
16490
|
+
height: ${({size:e})=>HW[e].thumb}px;
|
|
16488
16491
|
border-radius: 50%;
|
|
16489
16492
|
direction: ltr !important;
|
|
16490
16493
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
16491
16494
|
transition: transform 100ms;
|
|
16492
16495
|
transform: translate(
|
|
16493
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
16496
|
+
${({theme:e,size:t})=>("ltr"===e.direction?HW[t].offTransform:HW[t].onTransform).map((e=>`${e}px`)).join(",")}
|
|
16494
16497
|
) !important;
|
|
16495
16498
|
will-change: transform;
|
|
16496
16499
|
overflow: hidden;
|
|
@@ -16512,17 +16515,17 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},SW=yr(CW)`
|
|
|
16512
16515
|
}
|
|
16513
16516
|
&[data-state='checked'] {
|
|
16514
16517
|
transform: translate(
|
|
16515
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
16518
|
+
${({theme:e,size:t})=>("ltr"===e.direction?HW[t].onTransform:HW[t].offTransform).map((e=>`${e}px`)).join(",")}
|
|
16516
16519
|
) !important;
|
|
16517
16520
|
border: 1px solid ${({theme:e})=>e.colors.common.accent};
|
|
16518
16521
|
svg.toggle-off {
|
|
16519
16522
|
display: none;
|
|
16520
16523
|
}
|
|
16521
16524
|
}
|
|
16522
|
-
`,
|
|
16523
|
-
},
|
|
16524
|
-
},[
|
|
16525
|
-
const{__scopeTooltip:r,...o}=t,i=
|
|
16525
|
+
`,LW={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,height:7.16}
|
|
16526
|
+
},VW={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,height:8}
|
|
16527
|
+
},[kW,TW]=i("Tooltip",[bh]),RW=bh(),PW=700,IW="tooltip.open",[OW,NW]=kW("TooltipProvider"),FW="Tooltip",[$W,BW]=kW(FW),jW="TooltipTrigger",UW=e.forwardRef(((t,n)=>{
|
|
16528
|
+
const{__scopeTooltip:r,...o}=t,i=BW(jW,r),l=NW(jW,r),c=RW(r),u=s(n,e.useRef(null),i.onTriggerChange),d=e.useRef(!1),h=e.useRef(!1),f=e.useCallback((()=>d.current=!1),[])
|
|
16526
16529
|
;return e.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),
|
|
16527
16530
|
e.createElement(Th,a({asChild:!0},c),e.createElement(b.button,a({
|
|
16528
16531
|
"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{
|
|
@@ -16532,13 +16535,13 @@ h.current=!0))})),onPointerLeave:v(t.onPointerLeave,(()=>{
|
|
|
16532
16535
|
i.onTriggerLeave(),h.current=!1})),onPointerDown:v(t.onPointerDown,(()=>{
|
|
16533
16536
|
d.current=!0,document.addEventListener("pointerup",f,{once:!0})})),
|
|
16534
16537
|
onFocus:v(t.onFocus,(()=>{d.current||i.onOpen()})),onBlur:v(t.onBlur,i.onClose),
|
|
16535
|
-
onClick:v(t.onClick,i.onClose)})))})),
|
|
16536
|
-
forceMount:void 0}),
|
|
16537
|
-
const r=
|
|
16538
|
+
onClick:v(t.onClick,i.onClose)})))})),YW="TooltipPortal",[WW,GW]=kW(YW,{
|
|
16539
|
+
forceMount:void 0}),KW="TooltipContent",qW=e.forwardRef(((t,n)=>{
|
|
16540
|
+
const r=GW(KW,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=t,c=BW(KW,t.__scopeTooltip)
|
|
16538
16541
|
;return e.createElement(z,{present:o||c.open
|
|
16539
|
-
},c.disableHoverableContent?e.createElement(
|
|
16540
|
-
})):e.createElement(
|
|
16541
|
-
const r=
|
|
16542
|
+
},c.disableHoverableContent?e.createElement(QW,a({side:i},l,{ref:n
|
|
16543
|
+
})):e.createElement(ZW,a({side:i},l,{ref:n})))})),ZW=e.forwardRef(((t,n)=>{
|
|
16544
|
+
const r=BW(KW,t.__scopeTooltip),o=NW(KW,t.__scopeTooltip),i=e.useRef(null),l=s(n,i),[c,u]=e.useState(null),{trigger:d,onClose:h}=r,f=i.current,{onPointerInTransitChange:p}=o,m=e.useCallback((()=>{
|
|
16542
16545
|
u(null),p(!1)}),[p]),v=e.useCallback(((e,t)=>{const n=e.currentTarget,r={
|
|
16543
16546
|
x:e.clientX,y:e.clientY},o=function(e,t){
|
|
16544
16547
|
const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x)
|
|
@@ -16575,11 +16578,11 @@ const i=t[e].x,l=t[e].y,c=t[a].x,s=t[a].y
|
|
|
16575
16578
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}(n,c);r?m():o&&(m(),h())}
|
|
16576
16579
|
;return document.addEventListener("pointermove",e),
|
|
16577
16580
|
()=>document.removeEventListener("pointermove",e)}
|
|
16578
|
-
}),[d,f,c,h,m]),e.createElement(
|
|
16579
|
-
isInside:!1}),
|
|
16580
|
-
const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=
|
|
16581
|
-
;return e.useEffect((()=>(document.addEventListener(
|
|
16582
|
-
()=>document.removeEventListener(
|
|
16581
|
+
}),[d,f,c,h,m]),e.createElement(QW,a({},t,{ref:l}))})),[XW,JW]=kW(FW,{
|
|
16582
|
+
isInside:!1}),QW=e.forwardRef(((t,n)=>{
|
|
16583
|
+
const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=BW(KW,r),d=RW(r),{onClose:f}=u
|
|
16584
|
+
;return e.useEffect((()=>(document.addEventListener(IW,f),
|
|
16585
|
+
()=>document.removeEventListener(IW,f))),[f]),e.useEffect((()=>{if(u.trigger){
|
|
16583
16586
|
const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&f()}
|
|
16584
16587
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
16585
16588
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
@@ -16592,19 +16595,19 @@ style:{...s.style,
|
|
|
16592
16595
|
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
|
|
16593
16596
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
16594
16597
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
16595
|
-
}),e.createElement(h,null,o),e.createElement(
|
|
16596
|
-
},e.createElement(Fh,{id:u.contentId,role:"tooltip"},i||o))))}));const
|
|
16597
|
-
const{__scopeTooltip:n,delayDuration:r=
|
|
16598
|
+
}),e.createElement(h,null,o),e.createElement(XW,{scope:r,isInside:!0
|
|
16599
|
+
},e.createElement(Fh,{id:u.contentId,role:"tooltip"},i||o))))}));const eG=t=>{
|
|
16600
|
+
const{__scopeTooltip:n,delayDuration:r=PW,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
|
|
16598
16601
|
;return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)
|
|
16599
|
-
}),[]),e.createElement(
|
|
16602
|
+
}),[]),e.createElement(OW,{scope:n,isOpenDelayed:l,delayDuration:r,
|
|
16600
16603
|
onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),
|
|
16601
16604
|
onClose:e.useCallback((()=>{
|
|
16602
16605
|
window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)
|
|
16603
16606
|
}),[o]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{
|
|
16604
|
-
s.current=e}),[]),disableHoverableContent:a},i)},
|
|
16605
|
-
const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=
|
|
16607
|
+
s.current=e}),[]),disableHoverableContent:a},i)},tG=t=>{
|
|
16608
|
+
const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=NW(FW,t.__scopeTooltip),u=RW(n),[d,h]=e.useState(null),f=S(),p=e.useRef(0),m=null!=l?l:s.disableHoverableContent,v=null!=c?c:s.delayDuration,g=e.useRef(!1),[b=!1,w]=y({
|
|
16606
16609
|
prop:o,defaultProp:a,onChange:e=>{
|
|
16607
|
-
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(
|
|
16610
|
+
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(IW))):s.onClose(),
|
|
16608
16611
|
null==i||i(e)}
|
|
16609
16612
|
}),C=e.useMemo((()=>b?g.current?"delayed-open":"instant-open":"closed"),[b]),z=e.useCallback((()=>{
|
|
16610
16613
|
window.clearTimeout(p.current),g.current=!1,w(!0)}),[w]),M=e.useCallback((()=>{
|
|
@@ -16612,19 +16615,19 @@ window.clearTimeout(p.current),w(!1)}),[w]),x=e.useCallback((()=>{
|
|
|
16612
16615
|
window.clearTimeout(p.current),p.current=window.setTimeout((()=>{
|
|
16613
16616
|
g.current=!0,w(!0)}),v)}),[v,w])
|
|
16614
16617
|
;return e.useEffect((()=>()=>window.clearTimeout(p.current)),[]),
|
|
16615
|
-
e.createElement(kh,u,e.createElement(
|
|
16618
|
+
e.createElement(kh,u,e.createElement($W,{scope:n,contentId:f,open:b,
|
|
16616
16619
|
stateAttribute:C,trigger:d,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{
|
|
16617
16620
|
s.isOpenDelayed?x():z()}),[s.isOpenDelayed,x,z]),
|
|
16618
16621
|
onTriggerLeave:e.useCallback((()=>{m?M():window.clearTimeout(p.current)
|
|
16619
|
-
}),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},
|
|
16620
|
-
const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=
|
|
16621
|
-
;return e.createElement(
|
|
16622
|
+
}),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},nG=UW,rG=t=>{
|
|
16623
|
+
const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=BW(YW,n)
|
|
16624
|
+
;return e.createElement(WW,{scope:n,forceMount:r},e.createElement(z,{
|
|
16622
16625
|
present:r||i.open},e.createElement(Ih,{asChild:!0,container:a},o)))
|
|
16623
|
-
},
|
|
16624
|
-
;return
|
|
16626
|
+
},oG=qW,aG=yr(e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=RW(r)
|
|
16627
|
+
;return JW("TooltipArrow",r).isInside?null:e.createElement(Ph,a({},i,o,{ref:n}))
|
|
16625
16628
|
})))`
|
|
16626
16629
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
16627
|
-
`,
|
|
16630
|
+
`,iG=yr(oG)`
|
|
16628
16631
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16629
16632
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
16630
16633
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
@@ -16656,9 +16659,9 @@ present:r||i.open},e.createElement(Ih,{asChild:!0,container:a},o)))
|
|
|
16656
16659
|
&[data-state='closed'] {
|
|
16657
16660
|
animation-name: ${xr};
|
|
16658
16661
|
}
|
|
16659
|
-
`,
|
|
16662
|
+
`,lG=yr(eG)``,cG=yr(tG)``,sG=yr(nG)`
|
|
16660
16663
|
color: inherit;
|
|
16661
|
-
`,
|
|
16664
|
+
`,uG=yr(rG)``;var dG=wr`
|
|
16662
16665
|
|
|
16663
16666
|
div:has( > div[data-tooltip-content]){
|
|
16664
16667
|
z-index: ${({theme:e})=>e.zIndex.tooltip||Eo.tooltip} !important;
|
|
@@ -16668,10 +16671,10 @@ div:has( > div[data-popover-content]){
|
|
|
16668
16671
|
z-index: ${({theme:e})=>e.zIndex.popover||Eo.popover} !important;
|
|
16669
16672
|
}
|
|
16670
16673
|
|
|
16671
|
-
`,
|
|
16674
|
+
`,hG=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
|
|
16672
16675
|
return Ce(void 0,void 0,void 0,(function(){return ze(this,(function(n){
|
|
16673
16676
|
switch(n.label){case 0:return[4,Promise.resolve().then((function(){return lz}))]
|
|
16674
|
-
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),
|
|
16677
|
+
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),fG=Object.freeze({
|
|
16675
16678
|
__proto__:null,splitPathsBySizeLoader:function(e,t){
|
|
16676
16679
|
return Ce(void 0,void 0,void 0,(function(){var n,r;return ze(this,(function(o){
|
|
16677
16680
|
switch(o.label){case 0:
|
|
@@ -16784,10 +16787,10 @@ e.preventDefault(),a?.("button",e)},"aria-label":i},i)),u&&e.createElement(Yy,{
|
|
|
16784
16787
|
asChild:!0},e.createElement(xm,{variant:"primary","aria-disabled":s,disabled:s,
|
|
16785
16788
|
onClick:e=>{e.preventDefault(),o?.(e)},"aria-label":u},u))))))
|
|
16786
16789
|
},exports.CrossIcon=ro,
|
|
16787
|
-
exports.DatePicker=
|
|
16788
|
-
const{displayFormat:n="YYYY-MM-DD hh:mm A",...r}=t;return e.createElement(
|
|
16790
|
+
exports.DatePicker=eF,exports.DateRangePicker=tF,exports.DateTimePicker=t=>{
|
|
16791
|
+
const{displayFormat:n="YYYY-MM-DD hh:mm A",...r}=t;return e.createElement(eF,{
|
|
16789
16792
|
...r,displayFormat:n,useTime:!0})},exports.DateTimeRangePicker=t=>{
|
|
16790
|
-
const{displayFormat:n="YYYY-MM-DD hh:mm A",...r}=t;return e.createElement(
|
|
16793
|
+
const{displayFormat:n="YYYY-MM-DD hh:mm A",...r}=t;return e.createElement(tF,{
|
|
16791
16794
|
...r,displayFormat:n,useTime:!0})
|
|
16792
16795
|
},exports.Drawer=({isOpen:t,children:n,hideDismissIcon:r,customClass:o="",size:a="default",isFullHeight:i=!0,placement:l="right",clickOutToClose:c=!1,onDismiss:s})=>{
|
|
16793
16796
|
const u=cr(),d="rtl"===u.direction?"right"===l?"left":"right":l
|
|
@@ -16801,7 +16804,7 @@ fill:u.colors.text.inverse}))),n)))
|
|
|
16801
16804
|
},exports.Dropdown=ab,exports.DropdownInputItem=$p,
|
|
16802
16805
|
exports.DropdownItem=cb,exports.DropdownMenuItem=Xv,
|
|
16803
16806
|
exports.ErrorIcon=oo,exports.Freddy=ao,
|
|
16804
|
-
exports.FreemiumUIGlobalStyles=
|
|
16807
|
+
exports.FreemiumUIGlobalStyles=dG,exports.FreshLink=ko,
|
|
16805
16808
|
exports.IconButton=Vo,exports.InfoIcon=io,
|
|
16806
16809
|
exports.Input=pm,exports.InputLabel=Ao,
|
|
16807
16810
|
exports.Loader=wm,exports.Menu=sb,exports.Minus=lo,
|
|
@@ -16862,33 +16865,33 @@ const o="string"==typeof n?`${n}${r}`.trim():`${n?.[t]??""}${r}`.trim(),a=j.map(
|
|
|
16862
16865
|
item:n,index:r,dir:O.direction})
|
|
16863
16866
|
},A?A(n):e.createElement(e.Fragment,null,u?.(n)??"",a&&e.createElement(so,{
|
|
16864
16867
|
fill:O.colors.common.accent})))})))),S&&H&&e.createElement(lm,null,H))
|
|
16865
|
-
},exports.Popover=
|
|
16866
|
-
exports.PopoverClose=
|
|
16867
|
-
const u=cr();return e.createElement(
|
|
16868
|
+
},exports.Popover=AF,
|
|
16869
|
+
exports.PopoverClose=DF,exports.PopoverTrigger=_F,exports.Radio=({checked:t,className:n,disabled:r,id:o,isRequired:a,label:i,name:l,readOnly:c,...s})=>{
|
|
16870
|
+
const u=cr();return e.createElement(VF,{
|
|
16868
16871
|
className:`RadioGroupRoot ${n??""}`.trim(),id:o,name:l,
|
|
16869
16872
|
"aria-label":i||"Radio button",value:t?"default":"",required:a,disabled:r,
|
|
16870
16873
|
"aria-readonly":c,dir:u.direction,...s
|
|
16871
|
-
},e.createElement(
|
|
16874
|
+
},e.createElement(RF,null,e.createElement(TF,{checked:t,"aria-checked":t,
|
|
16872
16875
|
className:"RadioGroupItem",disabled:r,"aria-readonly":c,value:"default",
|
|
16873
|
-
id:"default"},e.createElement(
|
|
16876
|
+
id:"default"},e.createElement(kF,{className:"RadioGroupIndicator"
|
|
16874
16877
|
})),i&&e.createElement(Ao,{className:"RadioLabel",disabled:r,"aria-readonly":c,
|
|
16875
16878
|
"aria-label":i,htmlFor:o},i,i&&a&&e.createElement(Lo,null,"*"))))
|
|
16876
16879
|
},exports.RadioGroup=({options:t,defaultValue:n,idAccessor:r="id",nameAccessor:o="name",onChange:a,className:i,id:l,isErrored:c,errorText:s,disabled:u,isRequired:d,label:h,readOnly:f,value:p,...m})=>{
|
|
16877
|
-
const v=cr();return e.createElement(
|
|
16880
|
+
const v=cr();return e.createElement(LF,null,h&&e.createElement(Do,{id:l,
|
|
16878
16881
|
className:"input-label"
|
|
16879
|
-
},h,h&&d&&e.createElement(Lo,null,"*")),e.createElement(
|
|
16882
|
+
},h,h&&d&&e.createElement(Lo,null,"*")),e.createElement(VF,{defaultValue:n,
|
|
16880
16883
|
value:p,onValueChange:e=>{f||u||a?.(e)},"aria-readonly":f,id:l,
|
|
16881
16884
|
"aria-label":h||"Radio Group","aria-labelledby":h?l:void 0,
|
|
16882
16885
|
className:`RadioGroupRoot ${i??""}`.trim(),dir:v.direction,...m
|
|
16883
|
-
},t?.map((t=>e.createElement(
|
|
16884
|
-
},e.createElement(
|
|
16885
|
-
value:t?.[r],id:t?.[r],"aria-label":t?.[o]},e.createElement(
|
|
16886
|
+
},t?.map((t=>e.createElement(RF,{key:t?.[r],className:"RadioContainer"
|
|
16887
|
+
},e.createElement(TF,{className:"RadioGroupItem",disabled:t.disabled,
|
|
16888
|
+
value:t?.[r],id:t?.[r],"aria-label":t?.[o]},e.createElement(kF,{
|
|
16886
16889
|
className:"RadioGroupIndicator"})),e.createElement(Ao,{className:"RadioLabel",
|
|
16887
16890
|
disabled:t.disabled,htmlFor:t?.[r]
|
|
16888
16891
|
},t?.[o]))))),c&&s&&e.createElement(lm,null,s))
|
|
16889
16892
|
},exports.RadixMenuItem=jv,exports.RadixSelectItem=Vp,
|
|
16890
|
-
exports.Reorder=
|
|
16891
|
-
exports.SortDropdown=
|
|
16893
|
+
exports.Reorder=Mj,exports.RequiredIndicator=Lo,
|
|
16894
|
+
exports.SortDropdown=iY,exports.StyledLabel=Do,exports.Table=t=>{
|
|
16892
16895
|
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,actionComponent:u,headerComponent:d,editColumnComponent:h,filterComponent:f,hideTableOnEmpty:p,hideTopPagination:m,hideFilters:v,isFilterOpenByDefault:g=!0,sortingHeading:y,showTableOnLoading:b,hideLoaderOnTopPagination:w,hideActions:C,count:z,pageIndex:M=0,pageSize:x=20,enablePreviousPage:E,enableNextPage:S,hideColumnSettings:_=!0,hideBottomPagination:H,rowMenuOptions:D,onPreviousPageClick:A,enableSorting:L,sortingValues:V,sortingOptions:k,onSortingOptionSelect:T,onNextPageClick:R,disableRowSelect:P,hideSelectAllInTable:I,onSelectAllRows:O,onRowSelect:N,onMenuOptionSelect:F,onRowClick:$,columnOrder:B,setColumnOrder:j,setHiddenColumns:U,hiddenColumns:Y,selectedRowIds:W={},isDisableSortDropdown:G,setSelectedRowIds:K,dataKey:q="id",cellPropGetter:Z,setPageIndex:X,rowPropGetter:J,translationTexts:Q}=t,ee=cr(),[te,ne]=e.useState(!!g),re={
|
|
16893
16896
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
16894
16897
|
display:e=>e,group:e=>e},oe=-1===z||void 0===z,ae=e.useMemo((()=>[...P?[]:[{
|
|
@@ -16911,8 +16914,8 @@ onSelect:e=>{e.id&&F?.(e.id,t.original)},side:"bottom",
|
|
|
16911
16914
|
align:"rtl"===ee.direction?"start":"end"})
|
|
16912
16915
|
}]:[]]),[r,P,I,ee.colors.text.primary]),ie=e.useMemo((()=>{const e={}
|
|
16913
16916
|
;return r.forEach((t=>{e[t.id]=!(Y??[]).includes(t.id)})),e
|
|
16914
|
-
}),[r,Y]),le=e.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),ce=
|
|
16915
|
-
columns:ae,getRowId:e=>e?.[q]??"id",getCoreRowModel:
|
|
16917
|
+
}),[r,Y]),le=e.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),ce=MU({data:n,
|
|
16918
|
+
columns:ae,getRowId:e=>e?.[q]??"id",getCoreRowModel:CU(),state:{columnOrder:B,
|
|
16916
16919
|
columnVisibility:ie,rowSelection:W,pagination:le},initialState:{columnPinning:{
|
|
16917
16920
|
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=le
|
|
16918
16921
|
;t="function"==typeof e?e(le):e,X?.(t.pageIndex)},onColumnVisibilityChange:e=>{
|
|
@@ -16921,44 +16924,44 @@ onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,j?.(t)},
|
|
|
16921
16924
|
onRowSelectionChange:e=>{let t=W;t="function"==typeof e?e(W):e,K?.(t)},
|
|
16922
16925
|
enableRowSelection:!0,manualPagination:!0,rowCount:oe?-1:z
|
|
16923
16926
|
}),{getPageCount:se,getRowModel:ue,getState:de,getCanNextPage:he,getCanPreviousPage:fe,getPageOptions:pe,previousPage:me,setPageIndex:ve,nextPage:ge,lastPage:ye,firstPage:be}=ce,{rows:we}=ue(),{pagination:{pageIndex:Ce,pageSize:ze}}=de(),Me=Ce*ze+(Ce<se()-1?ze:we.length),xe=ce.getAllColumns().filter((e=>e.getIsVisible())).length+(P?0:1)+(D?1:0),Ee=k?.[0].find((e=>e.id===V?.[0]))?.name
|
|
16924
|
-
;return e.createElement(
|
|
16927
|
+
;return e.createElement(xU,{className:"TableContainer"},!C&&e.createElement(AU,{
|
|
16925
16928
|
className:"table-actions"
|
|
16926
|
-
},u&&e.createElement(e.Fragment,null,u),e.createElement(
|
|
16927
|
-
className:"table-header-component"},d??null),e.createElement(
|
|
16929
|
+
},u&&e.createElement(e.Fragment,null,u),e.createElement(kU,{
|
|
16930
|
+
className:"table-header-component"},d??null),e.createElement(RU,{
|
|
16928
16931
|
className:"table-header-dropdown-pagination"},L&&e.createElement("div",{
|
|
16929
16932
|
className:"table-heading-dropdown"},e.createElement("div",{
|
|
16930
|
-
className:"table-sorting-heading"},`${y}:`)," ",e.createElement(
|
|
16933
|
+
className:"table-sorting-heading"},`${y}:`)," ",e.createElement(iY,{
|
|
16931
16934
|
trigger:e.createElement("div",{className:"table-sorting-value-continer"
|
|
16932
|
-
},e.createElement("div",null,Ee),e.createElement(
|
|
16935
|
+
},e.createElement("div",null,Ee),e.createElement(tY,{fill:"currentcolor"})),
|
|
16933
16936
|
isDisableSortDropdown:!!G,options:k||[],value:V,onSelect:e=>{T?.(e??[])}
|
|
16934
|
-
})),e.createElement(
|
|
16935
|
-
},h??null),e.createElement(
|
|
16937
|
+
})),e.createElement(TU,{className:"table-edit-column-component"
|
|
16938
|
+
},h??null),e.createElement(PU,{className:"pagination-actions"
|
|
16936
16939
|
},!m&&e.createElement(e.Fragment,null,e.createElement(Yo,{variant:"primary",
|
|
16937
16940
|
className:"pagination-text"},i&&!w?e.createElement(wm,{size:"small"
|
|
16938
16941
|
}):e.createElement(e.Fragment,null,n.length>0?`${Ce*ze+1} - ${Me} ${Q?.of||"of"} ${oe?""+(we.length>0?`${Q?.many||"Many"}`:"-"):z??we.length??"-"}`:null)),e.createElement(xm,{
|
|
16939
16942
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
16940
|
-
A?.(),oe||me()},disabled:oe?!E:!fe()||i||l},e.createElement(
|
|
16943
|
+
A?.(),oe||me()},disabled:oe?!E:!fe()||i||l},e.createElement(SU,{
|
|
16941
16944
|
fill:ee.colors.text.primary})),e.createElement(xm,{variant:"secondary",
|
|
16942
16945
|
className:"table-pagination-button",onClick:()=>{R?.(),oe||ge()},
|
|
16943
|
-
disabled:oe?!S:!he()||i||l},e.createElement(
|
|
16946
|
+
disabled:oe?!S:!he()||i||l},e.createElement(_U,{fill:ee.colors.text.primary
|
|
16944
16947
|
}))),!v&&e.createElement(xm,{variant:"secondary",
|
|
16945
16948
|
className:"table-pagination-button filter-toggle",onClick:()=>ne(!te)
|
|
16946
|
-
},e.createElement(
|
|
16947
|
-
fill:"currentcolor"}))))),e.createElement(
|
|
16949
|
+
},e.createElement(EU,{style:{transform:te?"rotateY(180deg)":"rotateY(0deg)"},
|
|
16950
|
+
fill:"currentcolor"}))))),e.createElement(HU,null,e.createElement(DU,{
|
|
16948
16951
|
className:"table-wrapper"
|
|
16949
|
-
},a&&e.createElement(
|
|
16950
|
-
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(
|
|
16951
|
-
fill:"currentcolor"})},e.createElement(
|
|
16952
|
-
})),e.createElement(
|
|
16953
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
16954
|
-
},t.isPlaceholder?null:
|
|
16952
|
+
},a&&e.createElement(VU,null,a),i&&!b?e.createElement(e.Fragment,null,s):e.createElement(e.Fragment,null,0===we.length&&p?e.createElement(e.Fragment,null,c):e.createElement(IU,null,e.createElement(OU,null,!_&&e.createElement(AF,{
|
|
16953
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(nY,{
|
|
16954
|
+
fill:"currentcolor"})},e.createElement(aY,{table:ce
|
|
16955
|
+
})),e.createElement(NU,null,ce.getHeaderGroups().map((t=>e.createElement(BU,{
|
|
16956
|
+
key:t.id},t.headers.map((t=>e.createElement(UU,{key:t.id
|
|
16957
|
+
},t.isPlaceholder?null:zU(t.column.columnDef.header,t.getContext())))))))),e.createElement(FU,null,l&&!i&&e.createElement(jU,null,e.createElement(wm,null)),we.map((t=>e.createElement(BU,{
|
|
16955
16958
|
key:t.id,$isSelected:t.getIsSelected(),...J?.(t.original)
|
|
16956
|
-
},t.getVisibleCells().map((n=>e.createElement(
|
|
16959
|
+
},t.getVisibleCells().map((n=>e.createElement(YU,{key:n.id,onClick:()=>{
|
|
16957
16960
|
$?.(t.original,n.column.columnDef)},...Z?.(n)
|
|
16958
|
-
},
|
|
16959
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
16960
|
-
},t.isPlaceholder?null:
|
|
16961
|
-
colSpan:xe},e.createElement(
|
|
16961
|
+
},zU(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement($U,null,ce.getFooterGroups().map((t=>e.createElement(BU,{
|
|
16962
|
+
key:t.id},t.headers.map((t=>e.createElement(UU,{key:t.id
|
|
16963
|
+
},t.isPlaceholder?null:zU(t.column.columnDef.footer,t.getContext())))))))),!H&&e.createElement($U,null,e.createElement(BU,null,e.createElement(UU,{
|
|
16964
|
+
colSpan:xe},e.createElement(eY,{className:"table-pagination"
|
|
16962
16965
|
},e.createElement(xm,{variant:"secondary",onClick:()=>{be()},
|
|
16963
16966
|
disabled:!fe()||i||l},"<<"),e.createElement(xm,{variant:"secondary",
|
|
16964
16967
|
onClick:()=>{me()},disabled:!fe()||i||l
|
|
@@ -16974,19 +16977,19 @@ onClick:()=>{ve?.(Math.ceil(n.length/ze)-1)},disabled:i||l
|
|
|
16974
16977
|
},Math.ceil(n.length/ze))),e.createElement(xm,{variant:"secondary",onClick:()=>{
|
|
16975
16978
|
ge()},disabled:!he()||i||l},">"),e.createElement(xm,{variant:"secondary",
|
|
16976
16979
|
onClick:()=>{ye()},disabled:!he()||i||l
|
|
16977
|
-
},">>"))))))))),!v&&te&&f&&e.createElement(
|
|
16980
|
+
},">>"))))))))),!v&&te&&f&&e.createElement(LU,null,f)))
|
|
16978
16981
|
},exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:o="disabled",onChange:a,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
|
|
16979
|
-
const u=cr();return e.createElement(
|
|
16980
|
-
defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(
|
|
16981
|
-
className:"TabsList","aria-label":l},t.map((t=>e.createElement(
|
|
16982
|
+
const u=cr();return e.createElement(bY,{className:"TabsRoot",value:s,
|
|
16983
|
+
defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(CY,{
|
|
16984
|
+
className:"TabsList","aria-label":l},t.map((t=>e.createElement(zY,{
|
|
16982
16985
|
className:"TabsTrigger",value:t?.[n],key:t?.[n],disabled:t?.[o]
|
|
16983
|
-
},t?.[r])))),t.map((t=>e.createElement(
|
|
16986
|
+
},t?.[r])))),t.map((t=>e.createElement(wY,{className:"TabsContent",value:t?.[n],
|
|
16984
16987
|
key:t?.[n]},c?c(t):null))))
|
|
16985
|
-
},exports.TabsContent=
|
|
16986
|
-
exports.TabsTrigger=
|
|
16988
|
+
},exports.TabsContent=wY,exports.TabsList=CY,exports.TabsRoot=bY,
|
|
16989
|
+
exports.TabsTrigger=zY,
|
|
16987
16990
|
exports.Tag=Lb,exports.TextArea=mm,exports.ThemeProvider=t=>e.createElement(sr,{
|
|
16988
16991
|
theme:t.theme
|
|
16989
|
-
},e.createElement(
|
|
16992
|
+
},e.createElement(MY,null),e.createElement(yW,null,t.children)),exports.Themes=Ho,
|
|
16990
16993
|
exports.TickIcon=so,exports.TimePicker=t=>{
|
|
16991
16994
|
const{isRequired:n,label:r,isErrored:o,errorText:a,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u="",onChange:d}=t,h=cr(),[f,p]=e.useState(["","","","",""])
|
|
16992
16995
|
;e.useEffect((()=>{if(u){
|
|
@@ -17003,28 +17006,28 @@ switch(t){case"hours":
|
|
|
17003
17006
|
return e.length>2||s&&(Number(e)>12||Number(e)<0)||!s&&(Number(e)>23||Number(e)<0)
|
|
17004
17007
|
;case"minutes":case"seconds":return e.length>2||Number(e)>59||Number(e)<0
|
|
17005
17008
|
;case"milliseconds":return e.length>3||Number(e)>999||Number(e)<0}}
|
|
17006
|
-
;return e.createElement(
|
|
17009
|
+
;return e.createElement(WN,{id:`datetime-picker-container-${i??""}`.trim()
|
|
17007
17010
|
},r&&e.createElement(Do,{htmlFor:t.id,className:"input-label"
|
|
17008
|
-
},r,r&&n&&e.createElement(Lo,null,"*")),e.createElement(
|
|
17011
|
+
},r,r&&n&&e.createElement(Lo,null,"*")),e.createElement(GN,null,e.createElement(KN,{
|
|
17009
17012
|
className:"time-picker-input picker-hours",type:"number",
|
|
17010
17013
|
placeholder:s?"hh":"HH",disabled:l,dir:h.direction,min:s?1:0,max:s?12:23,
|
|
17011
17014
|
value:f[0],onChange:e=>{
|
|
17012
17015
|
v(e.target.value,"hours")||p((t=>[e.target.value,t[1],t[2],t[3],t[4]]))},
|
|
17013
17016
|
onBlur:e=>{const t=Number(e.target.value);m("hours",t<10?`0${t}`:t.toString())},
|
|
17014
17017
|
isErrored:o,"aria-invalid":o
|
|
17015
|
-
}),e.createElement("span",null,":"),e.createElement(
|
|
17018
|
+
}),e.createElement("span",null,":"),e.createElement(KN,{
|
|
17016
17019
|
className:"time-picker-input picker-minutes",type:"number",placeholder:"mm",
|
|
17017
17020
|
disabled:l,dir:h.direction,min:0,max:59,value:f[1],onChange:e=>{
|
|
17018
17021
|
v(e.target.value,"minutes")||p((t=>[t[0],e.target.value,t[2],t[3],t[4]]))},
|
|
17019
17022
|
onBlur:e=>{const t=Number(e.target.value);m("minutes",t<10?`0${t}`:t.toString())
|
|
17020
17023
|
},isErrored:o,"aria-invalid":o
|
|
17021
|
-
}),("millisecond"===c||"second"===c)&&e.createElement(e.Fragment,null,e.createElement("span",null,":"),e.createElement(
|
|
17024
|
+
}),("millisecond"===c||"second"===c)&&e.createElement(e.Fragment,null,e.createElement("span",null,":"),e.createElement(KN,{
|
|
17022
17025
|
className:"time-picker-input picker-seconds",type:"number",placeholder:"ss",
|
|
17023
17026
|
disabled:l,dir:h.direction,min:0,max:59,value:f[2],onChange:e=>{
|
|
17024
17027
|
v(e.target.value,"seconds")||p((t=>[t[0],t[1],e.target.value,t[3],t[4]]))},
|
|
17025
17028
|
onBlur:e=>{const t=Number(e.target.value);m("seconds",t<10?`0${t}`:t.toString())
|
|
17026
17029
|
},isErrored:o,"aria-invalid":o
|
|
17027
|
-
})),"millisecond"===c&&e.createElement(e.Fragment,null,e.createElement("span",null,":"),e.createElement(
|
|
17030
|
+
})),"millisecond"===c&&e.createElement(e.Fragment,null,e.createElement("span",null,":"),e.createElement(KN,{
|
|
17028
17031
|
className:"time-picker-input picker-milliseconds",type:"number",
|
|
17029
17032
|
placeholder:"SSS",disabled:l,dir:h.direction,min:0,max:999,value:f[3],
|
|
17030
17033
|
onChange:e=>{
|
|
@@ -17033,103 +17036,103 @@ onBlur:e=>{const t=Number(e.target.value.slice(0,3))
|
|
|
17033
17036
|
;m("milliseconds",t<10?`00${t}`:t<100?`0${t}`:t.toString())},isErrored:o,
|
|
17034
17037
|
"aria-invalid":o})),s&&e.createElement(ab,{itemToString:e=>e?.name??"",
|
|
17035
17038
|
placeholder:"--",style:{marginLeft:"4px"},showTick:!1,
|
|
17036
|
-
defaultSelectedItem:u?
|
|
17037
|
-
itemIdentifier:"id",items:
|
|
17039
|
+
defaultSelectedItem:u?nF.find((e=>e.id===f[4]))??null:null,width:"65px",
|
|
17040
|
+
itemIdentifier:"id",items:nF,onChange:e=>{m("AMPM","AM"===e?.id?"AM":"PM")}})))
|
|
17038
17041
|
},
|
|
17039
|
-
exports.ToastProvider=
|
|
17040
|
-
const s=cr();return e.createElement(
|
|
17041
|
-
required:a,"aria-required":a,size:i,...c},e.createElement(
|
|
17042
|
+
exports.ToastProvider=yW,exports.Toggle=({handleChange:t,hasIcon:n=!1,on:r,isErrored:o,isRequired:a,size:i="md",thumbProps:l,...c})=>{
|
|
17043
|
+
const s=cr();return e.createElement(DW,{checked:r,onCheckedChange:e=>{t?.(e)},
|
|
17044
|
+
required:a,"aria-required":a,size:i,...c},e.createElement(AW,{...l,size:i
|
|
17042
17045
|
},n&&e.createElement(so,{fill:s.colors.common.accent,className:"toggle-on",
|
|
17043
|
-
...
|
|
17044
|
-
className:"toggle-off",...
|
|
17046
|
+
...LW[i]}),n&&e.createElement(ro,{fill:s.colors.text.primary,
|
|
17047
|
+
className:"toggle-off",...VW[i]})))
|
|
17045
17048
|
},exports.Tooltip=({position:t="bottom",label:n,html:r,style:o={},children:a,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
17046
|
-
const h=cr(),[f="bottom",p="center"]=t.split("-");return e.createElement(
|
|
17047
|
-
delayDuration:c,...u},e.createElement(
|
|
17048
|
-
},e.createElement(
|
|
17049
|
+
const h=cr(),[f="bottom",p="center"]=t.split("-");return e.createElement(lG,{
|
|
17050
|
+
delayDuration:c,...u},e.createElement(cG,{...d,open:!l&&void 0
|
|
17051
|
+
},e.createElement(sG,{className:"TooltipTrigger",asChild:!0,
|
|
17049
17052
|
"aria-label":"string"==typeof a?a:"TooltipTrigger",type:"button"
|
|
17050
17053
|
},e.createElement(No,{className:i,type:"button"
|
|
17051
|
-
},a)),e.createElement(
|
|
17054
|
+
},a)),e.createElement(uG,null,e.createElement(iG,{forceMount:!0,
|
|
17052
17055
|
"data-tooltip-content":!0,className:"TooltipContent",style:o,sideOffset:5,
|
|
17053
17056
|
"aria-disabled":l,"aria-live":"polite",side:f,align:p,dir:h.direction
|
|
17054
|
-
},r?e.createElement(e.Fragment,null,r):e.createElement(e.Fragment,null,n??""),s&&e.createElement(
|
|
17057
|
+
},r?e.createElement(e.Fragment,null,r):e.createElement(e.Fragment,null,n??""),s&&e.createElement(aG,null)))))
|
|
17055
17058
|
},
|
|
17056
17059
|
exports.TriggerButtonWrapper=No,exports.Typography=Yo,exports.Warning=uo,exports.WorkspaceTable=t=>{
|
|
17057
|
-
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,headerComponent:u,filterComponent:d,hideTableOnEmpty:h,hideTopPagination:f,hideFilters:p,isFilterOpenByDefault:m=!0,showTableOnLoading:v,hideLoaderOnTopPagination:g,showWorkspaceActions:y,count:b,isWSOpen:w=!0,pageIndex:C=0,pageSize:z=20,enablePreviousPage:M,enableNextPage:x,hideColumnSettings:E=!0,hideBottomPagination:S,rowMenuOptions:_,onPreviousPageClick:H,
|
|
17060
|
+
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,headerComponent:u,filterComponent:d,hideTableOnEmpty:h,hideTopPagination:f,hideFilters:p,isFilterOpenByDefault:m=!0,showTableOnLoading:v,hideLoaderOnTopPagination:g,showWorkspaceActions:y,count:b,isWSOpen:w=!0,pageIndex:C=0,pageSize:z=20,enablePreviousPage:M,enableNextPage:x,hideColumnSettings:E=!0,hideBottomPagination:S,rowMenuOptions:_,onPreviousPageClick:H,isDisableActionMenu:D=!1,onNextPageClick:A,disableRowSelect:L,hideSelectAllInTable:V,onSelectAllRows:k,onRowSelect:T,onMenuOptionSelect:R,onRowClick:P,columnOrder:I,setColumnOrder:O,setHiddenColumns:N,hiddenColumns:F,selectedRowIds:$={},isDisableSortDropdown:B,setSelectedRowIds:j,dataKey:U="id",cellPropGetter:Y,setPageIndex:W,rowPropGetter:G,translationTexts:K}=t,q=cr(),[Z,X]=e.useState(!!m),J={
|
|
17058
17061
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
17059
|
-
display:e=>e,group:e=>e},
|
|
17060
|
-
id:"select",header:({table:t})=>
|
|
17062
|
+
display:e=>e,group:e=>e},Q=-1===b||void 0===b,ee=e.useMemo((()=>[...L?[]:[{
|
|
17063
|
+
id:"select",header:({table:t})=>V?e.createElement("div",{
|
|
17061
17064
|
className:"table-checkbox-header"}):e.createElement(Yg,{
|
|
17062
17065
|
className:"table-checkbox",
|
|
17063
17066
|
checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
|
|
17064
17067
|
indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
|
|
17065
|
-
t.toggleAllPageRowsSelected(!0===e),
|
|
17068
|
+
t.toggleAllPageRowsSelected(!0===e),k?.(!0===e)}}),
|
|
17066
17069
|
cell:({row:t})=>e.createElement(Yg,{className:"table-checkbox",
|
|
17067
17070
|
checked:t.getIsSelected(),disabled:!t.getCanSelect(),
|
|
17068
17071
|
indeterminate:t.getIsSomeSelected(),onCheckedChange:e=>{
|
|
17069
|
-
t.toggleSelected(!0===e),
|
|
17070
|
-
}],...r.map((e=>
|
|
17072
|
+
t.toggleSelected(!0===e),T?.(t.original,!0===e)}})
|
|
17073
|
+
}],...r.map((e=>J.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
17071
17074
|
cell:t=>e.accessorFn(t.row.original)}))),..._?[{id:"rowMenuOptions",
|
|
17072
17075
|
header:()=>e.createElement("div",{id:"more-actions-header"}),
|
|
17073
17076
|
cell:({row:t})=>e.createElement(sb,{trigger:e.createElement(co,{
|
|
17074
|
-
className:"more-actions",fill:"currentcolor"}),
|
|
17075
|
-
onSelect:e=>{e.id&&
|
|
17076
|
-
align:"rtl"===
|
|
17077
|
-
}]:[]]),[r,
|
|
17078
|
-
;return r.forEach((t=>{e[t.id]=!(
|
|
17079
|
-
}),[r,
|
|
17080
|
-
columns:
|
|
17081
|
-
columnVisibility:
|
|
17082
|
-
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=
|
|
17083
|
-
;t="function"==typeof e?e(
|
|
17084
|
-
let t=
|
|
17085
|
-
onColumnOrderChange:e=>{let t=
|
|
17086
|
-
onRowSelectionChange:e=>{let t
|
|
17087
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
17088
|
-
}),{getPageCount:
|
|
17089
|
-
;return e.createElement(
|
|
17090
|
-
className:"table-actions"},e.createElement(
|
|
17091
|
-
className:"table-header-component"},u??null),!!w&&e.createElement(
|
|
17092
|
-
className:"table-header-dropdown-pagination"},e.createElement(
|
|
17077
|
+
className:"more-actions",fill:"currentcolor"}),disableMenu:D,
|
|
17078
|
+
options:_(t.original)||[],onSelect:e=>{e.id&&R?.(e.id,t.original)},
|
|
17079
|
+
side:"bottom",align:"rtl"===q.direction?"start":"end"})
|
|
17080
|
+
}]:[]]),[r,L,V,q.colors.text.primary]),te=e.useMemo((()=>{const e={}
|
|
17081
|
+
;return r.forEach((t=>{e[t.id]=!(F??[]).includes(t.id)})),e
|
|
17082
|
+
}),[r,F]),ne=e.useMemo((()=>({pageIndex:C,pageSize:z})),[z,C]),re=MU({data:n,
|
|
17083
|
+
columns:ee,getRowId:e=>e?.[U]??"id",getCoreRowModel:CU(),state:{columnOrder:I,
|
|
17084
|
+
columnVisibility:te,rowSelection:$,pagination:ne},initialState:{columnPinning:{
|
|
17085
|
+
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=ne
|
|
17086
|
+
;t="function"==typeof e?e(ne):e,W?.(t.pageIndex)},onColumnVisibilityChange:e=>{
|
|
17087
|
+
let t=te;t="function"==typeof e?e(te):e,N?.(Object.keys(t).filter((e=>!t[e])))},
|
|
17088
|
+
onColumnOrderChange:e=>{let t=I??[];t="function"==typeof e?e(I??[]):e,O?.(t)},
|
|
17089
|
+
onRowSelectionChange:e=>{let t=$;t="function"==typeof e?e($):e,j?.(t)},
|
|
17090
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:Q?-1:b
|
|
17091
|
+
}),{getPageCount:oe,getRowModel:ae,getState:ie,getCanNextPage:le,getCanPreviousPage:ce,getPageOptions:se,previousPage:ue,setPageIndex:de,nextPage:he,lastPage:fe,firstPage:pe}=re,{rows:me}=ae(),{pagination:{pageIndex:ve,pageSize:ge}}=ie(),ye=ve*ge+(ve<oe()-1?ge:me.length),be=re.getAllColumns().filter((e=>e.getIsVisible())).length+(L?0:1)+(_?1:0)
|
|
17092
|
+
;return e.createElement(xU,{className:"TableContainer"},y&&e.createElement(AU,{
|
|
17093
|
+
className:"table-actions"},e.createElement(kU,{
|
|
17094
|
+
className:"table-header-component"},u??null),!!w&&e.createElement(RU,{
|
|
17095
|
+
className:"table-header-dropdown-pagination"},e.createElement(PU,{
|
|
17093
17096
|
className:"pagination-actions"
|
|
17094
17097
|
},!f&&e.createElement(e.Fragment,null,e.createElement(Yo,{variant:"primary",
|
|
17095
17098
|
className:"pagination-text"},i&&!g?e.createElement(wm,{size:"small"
|
|
17096
|
-
}):e.createElement(e.Fragment,null,n.length>0?`${
|
|
17099
|
+
}):e.createElement(e.Fragment,null,n.length>0?`${ve*ge+1} - ${ye} ${K?.of||"of"} ${Q?""+(me.length>0?`${K?.many||"Many"}`:"-"):b??me.length??"-"}`:null)),e.createElement(xm,{
|
|
17097
17100
|
variant:"secondary",className:"table-pagination-button",onClick:e=>{
|
|
17098
|
-
H?.(),
|
|
17099
|
-
fill:
|
|
17100
|
-
className:"table-pagination-button",onClick:e=>{
|
|
17101
|
-
disabled:
|
|
17102
|
-
})))))),!!w&&e.createElement(
|
|
17101
|
+
H?.(),Q||ue()},disabled:Q?!M:!ce()||i||l},e.createElement(SU,{
|
|
17102
|
+
fill:q.colors.text.primary})),e.createElement(xm,{variant:"secondary",
|
|
17103
|
+
className:"table-pagination-button",onClick:e=>{A?.(),Q||he()},
|
|
17104
|
+
disabled:Q?!x:!le()||i||l},e.createElement(_U,{fill:q.colors.text.primary
|
|
17105
|
+
})))))),!!w&&e.createElement(HU,null,e.createElement(DU,{
|
|
17103
17106
|
className:"table-wrapper"
|
|
17104
|
-
},a&&e.createElement(
|
|
17105
|
-
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(
|
|
17106
|
-
fill:"currentcolor"})},e.createElement(
|
|
17107
|
-
})),e.createElement(
|
|
17108
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
17109
|
-
},t.isPlaceholder?null:
|
|
17110
|
-
key:t.id,$isSelected:t.getIsSelected(),...
|
|
17111
|
-
},t.getVisibleCells().map((n=>e.createElement(
|
|
17112
|
-
|
|
17113
|
-
},
|
|
17114
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
17115
|
-
},t.isPlaceholder?null:
|
|
17116
|
-
colSpan:
|
|
17117
|
-
},e.createElement(xm,{variant:"secondary",onClick:()=>{
|
|
17118
|
-
disabled:!
|
|
17119
|
-
onClick:()=>{
|
|
17120
|
-
},"<"),
|
|
17121
|
-
variant:"secondary",onClick:()=>{
|
|
17122
|
-
},"1"),
|
|
17123
|
-
},"...")),
|
|
17124
|
-
key:t,variant:"secondary",className:
|
|
17107
|
+
},a&&e.createElement(VU,null,a),i&&!v?e.createElement(e.Fragment,null,s):e.createElement(e.Fragment,null,0===me.length&&h?e.createElement(e.Fragment,null,c):e.createElement(IU,null,e.createElement(OU,null,!E&&e.createElement(AF,{
|
|
17108
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(nY,{
|
|
17109
|
+
fill:"currentcolor"})},e.createElement(aY,{table:re
|
|
17110
|
+
})),e.createElement(NU,null,re.getHeaderGroups().map((t=>e.createElement(BU,{
|
|
17111
|
+
key:t.id},t.headers.map((t=>e.createElement(UU,{key:t.id
|
|
17112
|
+
},t.isPlaceholder?null:zU(t.column.columnDef.header,t.getContext())))))))),e.createElement(FU,null,l&&!i&&e.createElement(jU,null,e.createElement(wm,null)),me.map((t=>e.createElement(BU,{
|
|
17113
|
+
key:t.id,$isSelected:t.getIsSelected(),...G?.(t.original)
|
|
17114
|
+
},t.getVisibleCells().map((n=>e.createElement(YU,{key:n.id,onClick:()=>{
|
|
17115
|
+
P?.(t.original,n.column.columnDef)},...Y?.(n)
|
|
17116
|
+
},zU(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement($U,null,re.getFooterGroups().map((t=>e.createElement(BU,{
|
|
17117
|
+
key:t.id},t.headers.map((t=>e.createElement(UU,{key:t.id
|
|
17118
|
+
},t.isPlaceholder?null:zU(t.column.columnDef.footer,t.getContext())))))))),!S&&e.createElement($U,null,e.createElement(BU,null,e.createElement(UU,{
|
|
17119
|
+
colSpan:be},e.createElement(eY,{className:"table-pagination"
|
|
17120
|
+
},e.createElement(xm,{variant:"secondary",onClick:()=>{pe()},
|
|
17121
|
+
disabled:!ce()||i||l},"<<"),e.createElement(xm,{variant:"secondary",
|
|
17122
|
+
onClick:()=>{ue()},disabled:!ce()||i||l
|
|
17123
|
+
},"<"),ve+1>2&&e.createElement(e.Fragment,null,e.createElement(xm,{
|
|
17124
|
+
variant:"secondary",onClick:()=>{pe()},disabled:i||l
|
|
17125
|
+
},"1"),ve+1-3!=0&&e.createElement(xm,{variant:"secondary",disabled:!0
|
|
17126
|
+
},"...")),se().map((t=>[t-2,t-1,t,t+1,t+2].includes(ve+1)&&e.createElement(xm,{
|
|
17127
|
+
key:t,variant:"secondary",className:ve+1===t+1?"active":"",onClick:()=>{de?.(t)
|
|
17125
17128
|
},disabled:i||l
|
|
17126
|
-
},t+1))),
|
|
17129
|
+
},t+1))),ve+2<Math.ceil(n.length/ge)-2&&e.createElement(e.Fragment,null,ve+2+3!==Math.ceil(n.length/ge)&&e.createElement(xm,{
|
|
17127
17130
|
variant:"secondary",disabled:!0},"..."),e.createElement(xm,{variant:"secondary",
|
|
17128
|
-
onClick:()=>{
|
|
17129
|
-
},Math.ceil(n.length/
|
|
17130
|
-
|
|
17131
|
-
onClick:()=>{
|
|
17132
|
-
},">>"))))))))),!p&&
|
|
17131
|
+
onClick:()=>{de?.(Math.ceil(n.length/ge)-1)},disabled:i||l
|
|
17132
|
+
},Math.ceil(n.length/ge))),e.createElement(xm,{variant:"secondary",onClick:()=>{
|
|
17133
|
+
he()},disabled:!le()||i||l},">"),e.createElement(xm,{variant:"secondary",
|
|
17134
|
+
onClick:()=>{fe()},disabled:!le()||i||l
|
|
17135
|
+
},">>"))))))))),!p&&Z&&d&&e.createElement(LU,null,d)))
|
|
17133
17136
|
},exports.dialogContentMixin=$o,
|
|
17134
17137
|
exports.dialogOverlayMixin=Fo,exports.useToasts=()=>{
|
|
17135
|
-
const{toasts:t,addToast:n}=e.useContext(
|
|
17138
|
+
const{toasts:t,addToast:n}=e.useContext(hW)??{};return[t,n]};
|