@revolist/ui 4.0.1-rc → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/MIGRATION.md +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +405 -264
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/calendar-DJqiFwFT.js +258 -0
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/choice-chips-yr6Uzmof.js +126 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/color-palette-DMJUChWC.js +92 -0
- package/_chunks/{color-picker-BRv-__AM.js → color-picker-CMWxQlWt.js} +61 -56
- package/_chunks/component-DyWiItBR.js +878 -0
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
- package/_chunks/configurator-actions-DCodxcUw.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-CbOYUakE.js +118 -0
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/controls-DD1qvPfE.js +650 -0
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-XI2cpKI_.js} +21 -21
- package/_chunks/date-time-CGJdC1Qa.js +807 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
- package/_chunks/dialog.parts-CJ3FVxC9.js +131 -0
- package/_chunks/duration-CBJWK82T.js +272 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-B-qtIwx1.js +288 -0
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/framework-mount-Bk4O_T7T.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-C7i5gsKI.js +267 -0
- package/_chunks/native-Blr3byjO.js +32 -0
- package/_chunks/native-control-B9MNibfa.js +649 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-CgbZes5B.js} +89 -89
- package/_chunks/picker-DqpjDC90.js +122 -0
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/popup-C35Isk7p.js +378 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-WDrfiluf.js} +10 -10
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/reorder-list-C4HSda4n.js +59 -0
- package/_chunks/request-trail-SHynDFdM.js +762 -0
- package/_chunks/rich-text-CtjqRvv8.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_chunks/selection-list-tooltips-BtWjpP6M.js +41 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/_dialog.scss +55 -21
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_shared/data-query/index.d.ts +2 -2
- package/_shared/data-query/load-options.d.ts +2 -2
- package/_variables.scss +34 -32
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +2 -2
- package/activity-message.js +16 -16
- package/ai/_chat.scss +227 -0
- package/ai/_style.scss +170 -39
- package/ai/chat.d.ts +65 -0
- package/ai/components.d.ts +35 -6
- package/ai/index.d.ts +3 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +59 -6
- package/ai/prompt-history.d.ts +13 -0
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +83 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +27 -0
- package/ai/translation-context.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -10
- package/assignee/assignee.scss +28 -6
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +86 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +42 -41
- package/badge.d.ts +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +2 -4
- package/brush-range/component.js +19 -19
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +2 -2
- package/buttons/remove-button.js +3 -3
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +3 -2
- package/buttons/svg-button.js +23 -23
- package/calendar/_calendar.scss +27 -26
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +34 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +6 -24
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +4 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +42 -29
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +63 -0
- package/configurator-drop-zone.d.ts +39 -0
- package/configurator-drop-zone.js +66 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-attributes.js +7 -7
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +31 -26
- package/controls.d.ts +23 -11
- package/controls.js +4 -3
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +5 -1
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +2 -2
- package/date-time/field.d.ts +4 -3
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/style.scss +242 -39
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +6 -2
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +53 -53
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +6 -3
- package/distribution-chart/bar-chart.js +10 -6
- package/distribution-chart/chart-frame.d.ts +3 -2
- package/distribution-chart/index.d.ts +2 -2
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +3 -2
- package/dropdown/content.js +1 -141
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/dropdown.types.d.ts +5 -1
- package/dropdown/editor-dropdown.style.scss +54 -16
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.d.ts +6 -1
- package/dropdown/lookup-field.js +42 -41
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -140
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +5 -5
- package/editor-layout/index.js +43 -38
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +40 -2
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/field-reorder.hook.js +32 -32
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -2
- package/filter-controls.js +29 -30
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +17 -22
- package/form-controls/presentation.d.ts +2 -2
- package/form-controls/presentation.js +59 -51
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +106 -100
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/styles.scss +14 -57
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +237 -226
- package/history-controls.d.ts +14 -0
- package/history-controls.js +27 -0
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +2 -2
- package/icons/icon.js +1 -1
- package/legend.d.ts +2 -2
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +14 -13
- package/native-control.js +3 -26
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +49 -45
- package/number-input/index.d.ts +2 -2
- package/number-input/index.js +1 -1
- package/package.json +88 -15
- package/pagination.d.ts +3 -0
- package/pagination.js +50 -40
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +2 -2
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +2 -2
- package/pdf-viewer/status.d.ts +2 -2
- package/pdf-viewer/style.scss +205 -45
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +6 -2
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +2 -2
- package/preact.d.ts +15 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +5 -3
- package/react-control.d.ts +1 -0
- package/react.d.ts +20 -11
- package/react.js +72 -88
- package/reorder-list.d.ts +2 -2
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +68 -66
- package/resource-picker/resource-picker.scss +66 -35
- package/rich-text/engine.d.ts +17 -19
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +11 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +6 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +295 -55
- package/rich-text/syntax.d.ts +5 -2
- package/rich-text/toolbar.d.ts +7 -7
- package/rich-text/translations.d.ts +5 -15
- package/search-input/index.js +12 -12
- package/search-input/native.d.ts +21 -2
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/select.d.ts +22 -0
- package/select.js +1 -0
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +1 -1
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +9 -9
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +130 -34
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +78 -17
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +404 -82
- package/styles/_control.scss +42 -12
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -4
- package/styles/_field-configurator.scss +321 -23
- package/styles/_fields-grid.scss +49 -0
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +376 -116
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/configurator-actions.scss +241 -0
- package/styles/pagination.css +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +38 -2
- package/surfaces.js +37 -134
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +44 -32
- package/svelte.d.ts +1 -1
- package/svelte.js +33 -68
- package/switch/index.js +3 -2
- package/time-grid.d.ts +1 -2
- package/time-grid.js +43 -42
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +91 -74
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +160 -144
- package/vue.js +149 -178
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-palette-BmZ7kH9R.js +0 -94
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/control-tooltip-BCNzQCXE.js +0 -100
- package/_chunks/controls-NEL5tDaz.js +0 -615
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/dropdown-CkGQBm1Q.js +0 -357
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/editor-popup-B7fu_A_T.js +0 -81
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
- package/_chunks/rich-text-2Rla349o.js +0 -477
- package/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -12
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/react-native-select.d.ts +0 -6
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
- package/vue-native-select.d.ts +0 -9
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { c as e, i as t, l as n, n as r, r as i, t as a } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { c as o, i as s, r as c, t as l } from "./hooks.module-CG3gN83z.js";
|
|
3
|
+
import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { i as d, r as f, t as p } from "./top-layer-popup-CNSDdfJV.js";
|
|
5
|
+
import { inheritUiMotion as m } from "../core/motion.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
|
|
7
|
+
function h(e, t) {
|
|
8
|
+
for (var n in t) e[n] = t[n];
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
function g(e, t) {
|
|
12
|
+
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
13
|
+
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
14
|
+
return !1;
|
|
15
|
+
}
|
|
16
|
+
function _(e, t) {
|
|
17
|
+
this.props = e, this.context = t;
|
|
18
|
+
}
|
|
19
|
+
(_.prototype = new a()).isPureReactComponent = !0, _.prototype.shouldComponentUpdate = function(e, t) {
|
|
20
|
+
return g(this.props, e) || g(this.state, t);
|
|
21
|
+
};
|
|
22
|
+
var v = n.__b;
|
|
23
|
+
n.__b = function(e) {
|
|
24
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), v && v(e);
|
|
25
|
+
};
|
|
26
|
+
var y = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
27
|
+
function b(e) {
|
|
28
|
+
function t(t) {
|
|
29
|
+
var n = h({}, t);
|
|
30
|
+
return delete n.ref, e(n, t.ref || null);
|
|
31
|
+
}
|
|
32
|
+
return t.$$typeof = y, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
33
|
+
}
|
|
34
|
+
var x = n.__e;
|
|
35
|
+
n.__e = function(e, t, n, r) {
|
|
36
|
+
if (e.then) {
|
|
37
|
+
for (var i, a = t; a = a.__;) if ((i = a.__c) && i.__c) return t.__e ?? (t.__e = n.__e, t.__k = n.__k), i.__c(e, t);
|
|
38
|
+
}
|
|
39
|
+
x(e, t, n, r);
|
|
40
|
+
};
|
|
41
|
+
var S = n.unmount;
|
|
42
|
+
function C(e, t, n) {
|
|
43
|
+
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(e) {
|
|
44
|
+
typeof e.__c == "function" && e.__c();
|
|
45
|
+
}), e.__c.__H = null), (e = h({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(e) {
|
|
46
|
+
return C(e, t, n);
|
|
47
|
+
})), e;
|
|
48
|
+
}
|
|
49
|
+
function w(e, t, n) {
|
|
50
|
+
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(e) {
|
|
51
|
+
return w(e, t, n);
|
|
52
|
+
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
53
|
+
}
|
|
54
|
+
function T() {
|
|
55
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
56
|
+
}
|
|
57
|
+
function E(e) {
|
|
58
|
+
var t = e.__ && e.__.__c;
|
|
59
|
+
return t && t.__a && t.__a(e);
|
|
60
|
+
}
|
|
61
|
+
function D() {
|
|
62
|
+
this.i = null, this.l = null;
|
|
63
|
+
}
|
|
64
|
+
n.unmount = function(e) {
|
|
65
|
+
var t = e.__c;
|
|
66
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), S && S(e);
|
|
67
|
+
}, (T.prototype = new a()).__c = function(e, t) {
|
|
68
|
+
var n = t.__c, r = this;
|
|
69
|
+
r.o ??= [], r.o.push(n);
|
|
70
|
+
var i = E(r.__v), a = !1, o = function() {
|
|
71
|
+
a || r.__z || (a = !0, n.__R = null, i ? i(c) : c());
|
|
72
|
+
};
|
|
73
|
+
n.__R = o;
|
|
74
|
+
var s = n.__P;
|
|
75
|
+
n.__P = null;
|
|
76
|
+
var c = function() {
|
|
77
|
+
if (!--r.__u) {
|
|
78
|
+
if (r.state.__a) {
|
|
79
|
+
var e = r.state.__a;
|
|
80
|
+
r.__v.__k[0] = w(e, e.__c.__P, e.__c.__O);
|
|
81
|
+
}
|
|
82
|
+
var t;
|
|
83
|
+
for (r.setState({ __a: r.__b = null }); t = r.o.pop();) t.__P = s, t.forceUpdate();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(o, o);
|
|
87
|
+
}, T.prototype.componentWillUnmount = function() {
|
|
88
|
+
this.o = [];
|
|
89
|
+
}, T.prototype.render = function(n, r) {
|
|
90
|
+
if (this.__b) {
|
|
91
|
+
if (this.__v.__k) {
|
|
92
|
+
var i = document.createElement("div"), a = this.__v.__k[0].__c;
|
|
93
|
+
this.__v.__k[0] = C(this.__b, i, a.__O = a.__P);
|
|
94
|
+
}
|
|
95
|
+
this.__b = null;
|
|
96
|
+
}
|
|
97
|
+
var o = r.__a && e(t, null, n.fallback);
|
|
98
|
+
return o && (o.__u &= -33), [e(t, null, r.__a ? null : n.children), o];
|
|
99
|
+
};
|
|
100
|
+
var O = function(e, t, n) {
|
|
101
|
+
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n;) {
|
|
102
|
+
for (; n.length > 3;) n.pop()();
|
|
103
|
+
if (n[1] < n[0]) break;
|
|
104
|
+
e.i = n = n[2];
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
function k(e) {
|
|
108
|
+
return this.getChildContext = function() {
|
|
109
|
+
return e.context;
|
|
110
|
+
}, e.children;
|
|
111
|
+
}
|
|
112
|
+
function A(t) {
|
|
113
|
+
var n = this, r = t.h;
|
|
114
|
+
if (n.componentWillUnmount = function() {
|
|
115
|
+
i(null, n.v), n.v = null, n.h = null;
|
|
116
|
+
}, n.h && n.h !== r && n.componentWillUnmount(), !n.v) {
|
|
117
|
+
for (var a = n.__v; a !== null && !a.__m && a.__ !== null;) a = a.__;
|
|
118
|
+
n.h = r, n.v = {
|
|
119
|
+
nodeType: 1,
|
|
120
|
+
parentNode: r,
|
|
121
|
+
childNodes: [],
|
|
122
|
+
__k: { __m: a.__m },
|
|
123
|
+
contains: function() {
|
|
124
|
+
return !0;
|
|
125
|
+
},
|
|
126
|
+
namespaceURI: r.namespaceURI,
|
|
127
|
+
insertBefore: function(e, t) {
|
|
128
|
+
this.childNodes.push(e), n.h.insertBefore(e, t);
|
|
129
|
+
},
|
|
130
|
+
removeChild: function(e) {
|
|
131
|
+
this.childNodes.splice(this.childNodes.indexOf(e) >>> 1, 1), n.h.removeChild(e);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
i(e(k, { context: n.context }, t.__v), n.v);
|
|
136
|
+
}
|
|
137
|
+
function j(t, n) {
|
|
138
|
+
var r = e(A, {
|
|
139
|
+
__v: t,
|
|
140
|
+
h: n
|
|
141
|
+
});
|
|
142
|
+
return r.containerInfo = n, r;
|
|
143
|
+
}
|
|
144
|
+
(D.prototype = new a()).__a = function(e) {
|
|
145
|
+
var t = this, n = E(t.__v), r = t.l.get(e);
|
|
146
|
+
return r[0]++, function(i) {
|
|
147
|
+
var a = function() {
|
|
148
|
+
t.props.revealOrder ? (r.push(i), O(t, e, r)) : i();
|
|
149
|
+
};
|
|
150
|
+
n ? n(a) : a();
|
|
151
|
+
};
|
|
152
|
+
}, D.prototype.render = function(e) {
|
|
153
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
154
|
+
var t = r(e.children);
|
|
155
|
+
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
156
|
+
for (var n = t.length; n--;) this.l.set(t[n], this.i = [
|
|
157
|
+
1,
|
|
158
|
+
0,
|
|
159
|
+
this.i
|
|
160
|
+
]);
|
|
161
|
+
return e.children;
|
|
162
|
+
}, D.prototype.componentDidUpdate = D.prototype.componentDidMount = function() {
|
|
163
|
+
var e = this;
|
|
164
|
+
this.l.forEach(function(t, n) {
|
|
165
|
+
O(e, n, t);
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
var M = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, N = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, P = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, F = /[A-Z0-9]/g, I = typeof document < "u", L = function(e) {
|
|
169
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
170
|
+
};
|
|
171
|
+
a.prototype.isReactComponent = !0, [
|
|
172
|
+
"componentWillMount",
|
|
173
|
+
"componentWillReceiveProps",
|
|
174
|
+
"componentWillUpdate"
|
|
175
|
+
].forEach(function(e) {
|
|
176
|
+
Object.defineProperty(a.prototype, e, {
|
|
177
|
+
configurable: !0,
|
|
178
|
+
get: function() {
|
|
179
|
+
return this["UNSAFE_" + e];
|
|
180
|
+
},
|
|
181
|
+
set: function(t) {
|
|
182
|
+
Object.defineProperty(this, e, {
|
|
183
|
+
configurable: !0,
|
|
184
|
+
writable: !0,
|
|
185
|
+
value: t
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
var R = n.event;
|
|
191
|
+
n.event = function(e) {
|
|
192
|
+
return R && (e = R(e)), e.persist = function() {}, e.isPropagationStopped = function() {
|
|
193
|
+
return this.cancelBubble;
|
|
194
|
+
}, e.isDefaultPrevented = function() {
|
|
195
|
+
return this.defaultPrevented;
|
|
196
|
+
}, e.nativeEvent = e;
|
|
197
|
+
};
|
|
198
|
+
var z = {
|
|
199
|
+
configurable: !0,
|
|
200
|
+
get: function() {
|
|
201
|
+
return this.class;
|
|
202
|
+
}
|
|
203
|
+
}, B = n.vnode;
|
|
204
|
+
n.vnode = function(e) {
|
|
205
|
+
typeof e.type == "string" && function(e) {
|
|
206
|
+
var t = e.props, n = e.type, i = {}, a = n.indexOf("-") == -1;
|
|
207
|
+
for (var o in t) {
|
|
208
|
+
var s = t[o];
|
|
209
|
+
if (!(o === "value" && "defaultValue" in t && s == null || I && o === "children" && n === "noscript" || o === "class" || o === "className")) {
|
|
210
|
+
var c = o.toLowerCase();
|
|
211
|
+
o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && !0 === s ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? o = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || L(t.type) ? c === "onfocus" ? o = "onfocusin" : c === "onblur" ? o = "onfocusout" : P.test(o) && (o = c) : c = o = "oninput" : a && N.test(o) ? o = o.replace(F, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && i[o = c] && (o = "oninputCapture"), i[o] = s;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
n == "select" && (i.multiple && Array.isArray(i.value) && (i.value = r(t.children).forEach(function(e) {
|
|
215
|
+
e.props.selected = i.value.indexOf(e.props.value) != -1;
|
|
216
|
+
})), i.defaultValue != null && (i.value = r(t.children).forEach(function(e) {
|
|
217
|
+
e.props.selected = i.multiple ? i.defaultValue.indexOf(e.props.value) != -1 : i.defaultValue == e.props.value;
|
|
218
|
+
}))), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", z)) : t.className && (i.class = i.className = t.className), e.props = i;
|
|
219
|
+
}(e), e.$$typeof = M, B && B(e);
|
|
220
|
+
};
|
|
221
|
+
var V = n.__r;
|
|
222
|
+
n.__r = function(e) {
|
|
223
|
+
V && V(e), e.__c;
|
|
224
|
+
};
|
|
225
|
+
var H = n.diffed;
|
|
226
|
+
n.diffed = function(e) {
|
|
227
|
+
H && H(e);
|
|
228
|
+
var t = e.props, n = e.__e;
|
|
229
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
|
|
230
|
+
};
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/dropdown/popup.tsx
|
|
233
|
+
var U = 5, W = 4;
|
|
234
|
+
function G(e, t, n) {
|
|
235
|
+
let r = e.ownerDocument.defaultView;
|
|
236
|
+
if (!r) return {
|
|
237
|
+
top: t,
|
|
238
|
+
left: n,
|
|
239
|
+
scaleX: 1,
|
|
240
|
+
scaleY: 1
|
|
241
|
+
};
|
|
242
|
+
if (r.getComputedStyle(e).position === "fixed") {
|
|
243
|
+
let r = e.currentCSSZoom, i = Number.isFinite(r) && r > 0 ? r : 1;
|
|
244
|
+
return {
|
|
245
|
+
top: t / i,
|
|
246
|
+
left: n / i,
|
|
247
|
+
scaleX: i,
|
|
248
|
+
scaleY: i
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
let i = e.offsetParent, a = e.ownerDocument;
|
|
252
|
+
if (!i || i === a.body || i === a.documentElement) return {
|
|
253
|
+
top: t + r.scrollY,
|
|
254
|
+
left: n + r.scrollX,
|
|
255
|
+
scaleX: 1,
|
|
256
|
+
scaleY: 1
|
|
257
|
+
};
|
|
258
|
+
let o = i.getBoundingClientRect(), s = i, c = s.offsetWidth > 0 ? o.width / s.offsetWidth : 1, l = s.offsetHeight > 0 ? o.height / s.offsetHeight : 1, u = Number.isFinite(c) && c > 0 ? c : 1, d = Number.isFinite(l) && l > 0 ? l : 1;
|
|
259
|
+
return {
|
|
260
|
+
top: (t - o.top) / d - s.clientTop + s.scrollTop,
|
|
261
|
+
left: (n - o.left) / u - s.clientLeft + s.scrollLeft,
|
|
262
|
+
scaleX: u,
|
|
263
|
+
scaleY: d
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
function K({ onPointerRelease: e, triggerRef: t, children: n, portalTarget: r, theme: i, dropdownMenuId: a, popupClassName: h, closeOnClickOutside: g = !1, onClose: _, align: v = "start", matchTriggerWidth: y = !1, maxHeight: b, observePopupResize: x = !0, topLayer: S = !1 }) {
|
|
267
|
+
let C = l(null), [w, T] = s({
|
|
268
|
+
top: 0,
|
|
269
|
+
left: 0,
|
|
270
|
+
display: "none"
|
|
271
|
+
});
|
|
272
|
+
c(() => {
|
|
273
|
+
let e = t.current, n = C.current;
|
|
274
|
+
if (e && n) return m(e, n);
|
|
275
|
+
}, [r, t]), o(() => {
|
|
276
|
+
let e = t.current;
|
|
277
|
+
if (!e) return;
|
|
278
|
+
let n = e.ownerDocument.defaultView ?? window, r = () => {
|
|
279
|
+
let t = C.current;
|
|
280
|
+
if (!t) return;
|
|
281
|
+
let n = e.getBoundingClientRect(), r = G(t, n.bottom + W, n.left);
|
|
282
|
+
T({
|
|
283
|
+
top: r.top,
|
|
284
|
+
left: r.left,
|
|
285
|
+
display: "flex",
|
|
286
|
+
...y ? { width: n.width / r.scaleX } : {}
|
|
287
|
+
});
|
|
288
|
+
}, i = () => {
|
|
289
|
+
let t = C.current;
|
|
290
|
+
if (!t) return;
|
|
291
|
+
let r = e.getBoundingClientRect(), i = t.style.maxHeight;
|
|
292
|
+
t.style.maxHeight = "";
|
|
293
|
+
let a = t.getBoundingClientRect(), o = G(t, 0, 0), s = Math.max(a.height, t.offsetHeight * o.scaleY, t.scrollHeight * o.scaleY);
|
|
294
|
+
t.style.maxHeight = i;
|
|
295
|
+
let c = Math.max(a.width, t.offsetWidth * o.scaleX), l = Math.min(s, typeof b == "number" ? Math.max(0, b * o.scaleY) : Infinity), u = n.innerHeight, d = n.innerWidth, f = Math.max(0, r.top - W - U), p = Math.max(0, u - r.bottom - W - U), m = l > p && f > p, h = Math.min(l, m ? f : p), g = m ? r.top - W - h : r.bottom + W, _ = v === "end" ? r.right - c : r.left;
|
|
296
|
+
g = Math.max(U, Math.min(g, u - U - h)), _ = Math.max(U, Math.min(_, d - c - U));
|
|
297
|
+
let x = G(t, g, _);
|
|
298
|
+
T({
|
|
299
|
+
top: x.top,
|
|
300
|
+
left: x.left,
|
|
301
|
+
display: "flex",
|
|
302
|
+
maxHeight: h / x.scaleY,
|
|
303
|
+
...y ? { width: r.width / x.scaleX } : {}
|
|
304
|
+
});
|
|
305
|
+
}, a = (e) => {
|
|
306
|
+
e.target instanceof n.Node && d(C.current, e.target) || i();
|
|
307
|
+
};
|
|
308
|
+
r();
|
|
309
|
+
let o = n.setTimeout(i, 0);
|
|
310
|
+
n.addEventListener("resize", i), n.addEventListener("scroll", a, !0);
|
|
311
|
+
let s = n.ResizeObserver, c = s ? new s(i) : void 0;
|
|
312
|
+
c?.observe(e);
|
|
313
|
+
let l = e.closest(".rv-dialog__surface, dialog");
|
|
314
|
+
return l && c?.observe(l), x && C.current && c?.observe(C.current), () => {
|
|
315
|
+
n.clearTimeout(o), n.removeEventListener("resize", i), n.removeEventListener("scroll", a, !0), c?.disconnect();
|
|
316
|
+
};
|
|
317
|
+
}, [
|
|
318
|
+
v,
|
|
319
|
+
y,
|
|
320
|
+
b,
|
|
321
|
+
x,
|
|
322
|
+
r,
|
|
323
|
+
t
|
|
324
|
+
]), c(() => {
|
|
325
|
+
let e = C.current;
|
|
326
|
+
if (!S || !e) return;
|
|
327
|
+
let t = f(e);
|
|
328
|
+
return () => {
|
|
329
|
+
p(e, t);
|
|
330
|
+
};
|
|
331
|
+
}, [r, S]), c(() => {
|
|
332
|
+
if (!g || !_) return;
|
|
333
|
+
let e = r?.ownerDocument ?? C.current?.ownerDocument ?? t.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
|
|
334
|
+
if (!e) return;
|
|
335
|
+
let n = (e) => {
|
|
336
|
+
let n = e.target;
|
|
337
|
+
n && (d(C.current, n) || t.current?.contains(n) || _());
|
|
338
|
+
};
|
|
339
|
+
e.addEventListener("mousedown", n);
|
|
340
|
+
let i = (n) => {
|
|
341
|
+
if (n.key !== "Escape" || C.current?.querySelector("[aria-expanded=\"true\"]")) return;
|
|
342
|
+
let r = e.activeElement;
|
|
343
|
+
r && (C.current?.contains(r) || t.current?.contains(r)) && (n.preventDefault(), n.stopPropagation(), _(), t.current?.querySelector("button, input, select")?.focus());
|
|
344
|
+
};
|
|
345
|
+
return e.addEventListener("keydown", i), () => {
|
|
346
|
+
e.removeEventListener("mousedown", n), e.removeEventListener("keydown", i);
|
|
347
|
+
};
|
|
348
|
+
}, [
|
|
349
|
+
g,
|
|
350
|
+
_,
|
|
351
|
+
r,
|
|
352
|
+
t
|
|
353
|
+
]);
|
|
354
|
+
let E = /* @__PURE__ */ u("div", {
|
|
355
|
+
ref: C,
|
|
356
|
+
id: a,
|
|
357
|
+
className: `revo-dropdown-menu ${h || ""}`,
|
|
358
|
+
"data-theme": i ?? "default",
|
|
359
|
+
onMouseUp: e,
|
|
360
|
+
onTouchEnd: e,
|
|
361
|
+
style: {
|
|
362
|
+
top: `${w.top}px`,
|
|
363
|
+
left: `${w.left}px`,
|
|
364
|
+
...S ? {
|
|
365
|
+
right: "auto",
|
|
366
|
+
bottom: "auto",
|
|
367
|
+
margin: "0"
|
|
368
|
+
} : {},
|
|
369
|
+
display: w.display,
|
|
370
|
+
maxHeight: w.maxHeight === void 0 ? void 0 : `${w.maxHeight}px`,
|
|
371
|
+
width: w.width === void 0 ? void 0 : `${w.width}px`
|
|
372
|
+
},
|
|
373
|
+
children: n
|
|
374
|
+
});
|
|
375
|
+
return r ? j(E, r) : E;
|
|
376
|
+
}
|
|
377
|
+
//#endregion
|
|
378
|
+
export { j as n, b as r, K as t };
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/dist/preact.module.js
|
|
2
|
+
var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g = {}, _ = [], v = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, y = Array.isArray;
|
|
3
|
+
function b(e, t) {
|
|
4
|
+
for (var n in t) e[n] = t[n];
|
|
5
|
+
return e;
|
|
6
|
+
}
|
|
7
|
+
function x(e) {
|
|
8
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
9
|
+
}
|
|
10
|
+
function S(t, n, r) {
|
|
11
|
+
var i, a, o, s = {};
|
|
12
|
+
for (o in n) o == "key" ? i = n[o] : o == "ref" ? a = n[o] : s[o] = n[o];
|
|
13
|
+
if (arguments.length > 2 && (s.children = arguments.length > 3 ? e.call(arguments, 2) : r), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) s[o] === void 0 && (s[o] = t.defaultProps[o]);
|
|
14
|
+
return C(t, s, i, a, null);
|
|
15
|
+
}
|
|
16
|
+
function C(e, r, i, a, o) {
|
|
17
|
+
var s = {
|
|
18
|
+
type: e,
|
|
19
|
+
props: r,
|
|
20
|
+
key: i,
|
|
21
|
+
ref: a,
|
|
22
|
+
__k: null,
|
|
23
|
+
__: null,
|
|
24
|
+
__b: 0,
|
|
25
|
+
__e: null,
|
|
26
|
+
__c: null,
|
|
27
|
+
constructor: void 0,
|
|
28
|
+
__v: o ?? ++n,
|
|
29
|
+
__i: -1,
|
|
30
|
+
__u: 0
|
|
31
|
+
};
|
|
32
|
+
return o == null && t.vnode != null && t.vnode(s), s;
|
|
33
|
+
}
|
|
34
|
+
function w(e) {
|
|
35
|
+
return e.children;
|
|
36
|
+
}
|
|
37
|
+
function T(e, t) {
|
|
38
|
+
this.props = e, this.context = t;
|
|
39
|
+
}
|
|
40
|
+
function E(e, t) {
|
|
41
|
+
if (t == null) return e.__ ? E(e.__, e.__i + 1) : null;
|
|
42
|
+
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
43
|
+
return typeof e.type == "function" ? E(e) : null;
|
|
44
|
+
}
|
|
45
|
+
function D(e) {
|
|
46
|
+
if (e.__P && e.__d) {
|
|
47
|
+
var n = e.__v, r = n.__e, i = [], a = [], o = b({}, n);
|
|
48
|
+
o.__v = n.__v + 1, t.vnode && t.vnode(o), z(e.__P, o, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [r] : null, i, r ?? E(n), !!(32 & n.__u), a), o.__v = n.__v, o.__.__k[o.__i] = o, V(i, o, a), n.__e = n.__ = null, o.__e != r && O(o);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function O(e) {
|
|
52
|
+
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
|
|
53
|
+
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
|
|
54
|
+
}), O(e);
|
|
55
|
+
}
|
|
56
|
+
function k(e) {
|
|
57
|
+
(!e.__d && (e.__d = !0) && i.push(e) && !A.__r++ || a != t.debounceRendering) && ((a = t.debounceRendering) || o)(A);
|
|
58
|
+
}
|
|
59
|
+
function A() {
|
|
60
|
+
try {
|
|
61
|
+
for (var e, t = 1; i.length;) i.length > t && i.sort(s), e = i.shift(), t = i.length, D(e);
|
|
62
|
+
} finally {
|
|
63
|
+
i.length = A.__r = 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function j(e, t, n, r, i, a, o, s, c, l, u) {
|
|
67
|
+
var d, f, p, m, h, v, y, b = r && r.__k || _, x = t.length;
|
|
68
|
+
for (c = M(n, t, b, c, x), d = 0; d < x; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && b[p.__i] || g, p.__i = d, v = z(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && W(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), (y = !!(4 & p.__u)) || f.__k === p.__k ? (c = N(p, c, e, y), y && f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : m && (c = m.nextSibling), p.__u &= -7);
|
|
69
|
+
return n.__e = h, c;
|
|
70
|
+
}
|
|
71
|
+
function M(e, t, n, r, i) {
|
|
72
|
+
var a, o, s, c, l, u = n.length, d = u, f = 0;
|
|
73
|
+
for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = C(null, o, null, null, null) : y(o) ? o = e.__k[a] = C(w, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = C(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = F(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
|
|
74
|
+
if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = E(s)), G(s, s));
|
|
75
|
+
return r;
|
|
76
|
+
}
|
|
77
|
+
function N(e, t, n, r) {
|
|
78
|
+
var i, a;
|
|
79
|
+
if (typeof e.type == "function") {
|
|
80
|
+
for (i = e.__k, a = 0; i && a < i.length; a++) i[a] && (i[a].__ = e, t = N(i[a], t, n, r));
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
e.__e != t && (r && (t && e.type && !t.parentNode && (t = E(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
|
|
84
|
+
do
|
|
85
|
+
t &&= t.nextSibling;
|
|
86
|
+
while (t != null && t.nodeType == 8);
|
|
87
|
+
return t;
|
|
88
|
+
}
|
|
89
|
+
function P(e, t) {
|
|
90
|
+
return t ||= [], e == null || typeof e == "boolean" || (y(e) ? e.some(function(e) {
|
|
91
|
+
P(e, t);
|
|
92
|
+
}) : t.push(e)), t;
|
|
93
|
+
}
|
|
94
|
+
function F(e, t, n, r) {
|
|
95
|
+
var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
|
|
96
|
+
if (l === null && s == null || u && s == l.key && c == l.type) return n;
|
|
97
|
+
if (r > +!!u) {
|
|
98
|
+
for (i = n - 1, a = n + 1; i >= 0 || a < t.length;) if ((l = t[o = i >= 0 ? i-- : a++]) != null && !(2 & l.__u) && s == l.key && c == l.type) return o;
|
|
99
|
+
}
|
|
100
|
+
return -1;
|
|
101
|
+
}
|
|
102
|
+
function I(e, t, n) {
|
|
103
|
+
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || v.test(t) ? n : n + "px";
|
|
104
|
+
}
|
|
105
|
+
function L(e, t, n, r, i) {
|
|
106
|
+
var a, o;
|
|
107
|
+
n: if (t == "style") {
|
|
108
|
+
if (typeof n == "string") e.style.cssText = n;
|
|
109
|
+
else {
|
|
110
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || I(e.style, t, "");
|
|
111
|
+
if (n) for (t in n) r && n[t] == r[t] || I(e.style, t, n[t]);
|
|
112
|
+
}
|
|
113
|
+
} else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(d, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[u] = r[u] : (n[u] = f, e.addEventListener(t, a ? m : p, a)) : e.removeEventListener(t, a ? m : p, a);
|
|
114
|
+
else {
|
|
115
|
+
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
116
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
117
|
+
e[t] = n ?? "";
|
|
118
|
+
break n;
|
|
119
|
+
} catch {}
|
|
120
|
+
typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function R(e) {
|
|
124
|
+
return function(n) {
|
|
125
|
+
if (this.l) {
|
|
126
|
+
var r = this.l[n.type + e];
|
|
127
|
+
if (n[l] == null) n[l] = f++;
|
|
128
|
+
else if (n[l] < r[u]) return;
|
|
129
|
+
return r(t.event ? t.event(n) : n);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function z(e, n, r, i, a, o, s, c, l, u) {
|
|
134
|
+
var d, f, p, m, h, g, v, S, C, E, D, O, k, A, M, N = n.type;
|
|
135
|
+
if (n.constructor !== void 0) return null;
|
|
136
|
+
128 & r.__u && (l = !!(32 & r.__u), o = [c = n.__e = r.__e]), (d = t.__b) && d(n);
|
|
137
|
+
n: if (typeof N == "function") try {
|
|
138
|
+
if (S = n.props, C = N.prototype && N.prototype.render, E = (d = N.contextType) && i[d.__c], D = d ? E ? E.props.value : d.__ : i, r.__c ? v = (f = n.__c = r.__c).__ = f.__E : (C ? n.__c = f = new N(S, D) : (n.__c = f = new T(S, D), f.constructor = N, f.render = K), E && E.sub(f), f.state || (f.state = {}), f.__n = i, p = f.__d = !0, f.__h = [], f._sb = []), C && f.__s == null && (f.__s = f.state), C && N.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = b({}, f.__s)), b(f.__s, N.getDerivedStateFromProps(S, f.__s))), m = f.props, h = f.state, f.__v = n, p) C && N.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), C && f.componentDidMount != null && f.__h.push(f.componentDidMount);
|
|
139
|
+
else {
|
|
140
|
+
if (C && N.getDerivedStateFromProps == null && S !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(S, D), n.__v == r.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(S, f.__s, D)) {
|
|
141
|
+
n.__v != r.__v && (f.props = S, f.state = f.__s, f.__d = !1), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
|
|
142
|
+
e && (e.__ = n);
|
|
143
|
+
}), _.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && s.push(f);
|
|
144
|
+
break n;
|
|
145
|
+
}
|
|
146
|
+
f.componentWillUpdate != null && f.componentWillUpdate(S, f.__s, D), C && f.componentDidUpdate != null && f.__h.push(function() {
|
|
147
|
+
f.componentDidUpdate(m, h, g);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
if (f.context = D, f.props = S, f.__P = e, f.__e = !1, O = t.__r, k = 0, C) f.state = f.__s, f.__d = !1, O && O(n), d = f.render(f.props, f.state, f.context), _.push.apply(f.__h, f._sb), f._sb = [];
|
|
151
|
+
else do
|
|
152
|
+
f.__d = !1, O && O(n), d = f.render(f.props, f.state, f.context), f.state = f.__s;
|
|
153
|
+
while (f.__d && ++k < 25);
|
|
154
|
+
f.state = f.__s, f.getChildContext != null && (i = b(b({}, i), f.getChildContext())), C && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), A = d != null && d.type === w && d.key == null ? H(d.props.children) : d, c = j(e, y(A) ? A : [A], n, r, i, a, o, s, c, l, u), f.base = n.__e, n.__u &= -161, f.__h.length && s.push(f), v && (f.__E = f.__ = null);
|
|
155
|
+
} catch (e) {
|
|
156
|
+
if (n.__v = null, l || o != null) {
|
|
157
|
+
if (e.then) {
|
|
158
|
+
for (n.__u |= l ? 160 : 128; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
|
|
159
|
+
o[o.indexOf(c)] = null, n.__e = c;
|
|
160
|
+
} else {
|
|
161
|
+
for (M = o.length; M--;) x(o[M]);
|
|
162
|
+
B(n);
|
|
163
|
+
}
|
|
164
|
+
} else n.__e = r.__e, n.__k = r.__k, e.then || B(n);
|
|
165
|
+
t.__e(e, n, r);
|
|
166
|
+
}
|
|
167
|
+
else o == null && n.__v == r.__v ? (n.__k = r.__k, n.__e = r.__e) : c = n.__e = U(r.__e, n, r, i, a, o, s, l, u);
|
|
168
|
+
return (d = t.diffed) && d(n), 128 & n.__u ? void 0 : c;
|
|
169
|
+
}
|
|
170
|
+
function B(e) {
|
|
171
|
+
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(B));
|
|
172
|
+
}
|
|
173
|
+
function V(e, n, r) {
|
|
174
|
+
for (var i = 0; i < r.length; i++) W(r[i], r[++i], r[++i]);
|
|
175
|
+
t.__c && t.__c(n, e), e.some(function(n) {
|
|
176
|
+
try {
|
|
177
|
+
e = n.__h, n.__h = [], e.some(function(e) {
|
|
178
|
+
e.call(n);
|
|
179
|
+
});
|
|
180
|
+
} catch (e) {
|
|
181
|
+
t.__e(e, n.__v);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function H(e) {
|
|
186
|
+
return typeof e != "object" || !e || e.__b > 0 ? e : y(e) ? e.map(H) : b({}, e);
|
|
187
|
+
}
|
|
188
|
+
function U(n, r, i, a, o, s, c, l, u) {
|
|
189
|
+
var d, f, p, m, h, _, v, b = i.props || g, S = r.props, C = r.type;
|
|
190
|
+
if (C == "svg" ? o = "http://www.w3.org/2000/svg" : C == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o ||= "http://www.w3.org/1999/xhtml", s != null) {
|
|
191
|
+
for (d = 0; d < s.length; d++) if ((h = s[d]) && "setAttribute" in h == !!C && (C ? h.localName == C : h.nodeType == 3)) {
|
|
192
|
+
n = h, s[d] = null;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (n == null) {
|
|
197
|
+
if (C == null) return document.createTextNode(S);
|
|
198
|
+
n = document.createElementNS(o, C, S.is && S), l &&= (t.__m && t.__m(r, s), !1), s = null;
|
|
199
|
+
}
|
|
200
|
+
if (C == null) b === S || l && n.data == S || (n.data = S);
|
|
201
|
+
else {
|
|
202
|
+
if (s &&= e.call(n.childNodes), !l && s != null) for (b = {}, d = 0; d < n.attributes.length; d++) b[(h = n.attributes[d]).name] = h.value;
|
|
203
|
+
for (d in b) h = b[d], d == "dangerouslySetInnerHTML" ? p = h : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || L(n, d, null, h, o);
|
|
204
|
+
for (d in S) h = S[d], d == "children" ? m = h : d == "dangerouslySetInnerHTML" ? f = h : d == "value" ? _ = h : d == "checked" ? v = h : l && typeof h != "function" || b[d] === h || L(n, d, h, b[d], o);
|
|
205
|
+
if (f) l || p && (f.__html == p.__html || f.__html == n.innerHTML) || (n.innerHTML = f.__html), r.__k = [];
|
|
206
|
+
else if (p && (n.innerHTML = ""), j(r.type == "template" ? n.content : n, y(m) ? m : [m], r, i, a, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, c, s ? s[0] : i.__k && E(i, 0), l, u), s != null) for (d = s.length; d--;) x(s[d]);
|
|
207
|
+
l || (d = "value", C == "progress" && _ == null ? n.removeAttribute("value") : _ != null && (_ !== n[d] || C == "progress" && !_ || C == "option" && _ != b[d]) && L(n, d, _, b[d], o), d = "checked", v != null && v != n[d] && L(n, d, v, b[d], o));
|
|
208
|
+
}
|
|
209
|
+
return n;
|
|
210
|
+
}
|
|
211
|
+
function W(e, n, r) {
|
|
212
|
+
try {
|
|
213
|
+
if (typeof e == "function") {
|
|
214
|
+
var i = typeof e.__u == "function";
|
|
215
|
+
i && e.__u(), i && n == null || (e.__u = e(n));
|
|
216
|
+
} else e.current = n;
|
|
217
|
+
} catch (e) {
|
|
218
|
+
t.__e(e, r);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function G(e, n, r) {
|
|
222
|
+
var i, a;
|
|
223
|
+
if (t.unmount && t.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || W(i, null, n)), (i = e.__c) != null) {
|
|
224
|
+
if (i.componentWillUnmount) try {
|
|
225
|
+
i.componentWillUnmount();
|
|
226
|
+
} catch (e) {
|
|
227
|
+
t.__e(e, n);
|
|
228
|
+
}
|
|
229
|
+
i.base = i.__P = null;
|
|
230
|
+
}
|
|
231
|
+
if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && G(i[a], n, r || typeof e.type != "function");
|
|
232
|
+
r || x(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
233
|
+
}
|
|
234
|
+
function K(e, t, n) {
|
|
235
|
+
return this.constructor(e, n);
|
|
236
|
+
}
|
|
237
|
+
function q(n, r, i) {
|
|
238
|
+
var a, o, s, c;
|
|
239
|
+
r == document && (r = document.documentElement), t.__ && t.__(n, r), o = (a = typeof i == "function") ? null : i && i.__k || r.__k, s = [], c = [], z(r, n = (!a && i || r).__k = S(w, null, [n]), o || g, g, r.namespaceURI, !a && i ? [i] : o ? null : r.firstChild ? e.call(r.childNodes) : null, s, !a && i ? i : o ? o.__e : r.firstChild, a, c), V(s, n, c);
|
|
240
|
+
}
|
|
241
|
+
function J(e, t) {
|
|
242
|
+
q(e, t, J);
|
|
243
|
+
}
|
|
244
|
+
function Y(t, n, r) {
|
|
245
|
+
var i, a, o, s, c = b({}, t.props);
|
|
246
|
+
for (o in t.type && t.type.defaultProps && (s = t.type.defaultProps), n) o == "key" ? i = n[o] : o == "ref" ? a = n[o] : c[o] = n[o] === void 0 && s != null ? s[o] : n[o];
|
|
247
|
+
return arguments.length > 2 && (c.children = arguments.length > 3 ? e.call(arguments, 2) : r), C(t.type, c, i || t.key, a || t.ref, null);
|
|
248
|
+
}
|
|
249
|
+
function X(e) {
|
|
250
|
+
function t(e) {
|
|
251
|
+
var n, r;
|
|
252
|
+
return this.getChildContext || (n = /* @__PURE__ */ new Set(), (r = {})[t.__c] = this, this.getChildContext = function() {
|
|
253
|
+
return r;
|
|
254
|
+
}, this.componentWillUnmount = function() {
|
|
255
|
+
n = null;
|
|
256
|
+
}, this.shouldComponentUpdate = function(e) {
|
|
257
|
+
this.props.value != e.value && n.forEach(function(e) {
|
|
258
|
+
e.__e = !0, k(e);
|
|
259
|
+
});
|
|
260
|
+
}, this.sub = function(e) {
|
|
261
|
+
n.add(e);
|
|
262
|
+
var t = e.componentWillUnmount;
|
|
263
|
+
e.componentWillUnmount = function() {
|
|
264
|
+
n && n.delete(e), t && t.call(e);
|
|
265
|
+
};
|
|
266
|
+
}), e.children;
|
|
267
|
+
}
|
|
268
|
+
return t.__c = "__cC" + h++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(e, t) {
|
|
269
|
+
return e.children(t);
|
|
270
|
+
}).contextType = t, t;
|
|
271
|
+
}
|
|
272
|
+
e = _.slice, t = { __e: function(e, t, n, r) {
|
|
273
|
+
for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
|
|
274
|
+
if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
|
|
275
|
+
} catch (t) {
|
|
276
|
+
e = t;
|
|
277
|
+
}
|
|
278
|
+
throw e;
|
|
279
|
+
} }, n = 0, r = function(e) {
|
|
280
|
+
return e != null && e.constructor === void 0;
|
|
281
|
+
}, T.prototype.setState = function(e, t) {
|
|
282
|
+
var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = b({}, this.state);
|
|
283
|
+
typeof e == "function" && (e = e(b({}, n), this.props)), e && b(n, e), e != null && this.__v && (t && this._sb.push(t), k(this));
|
|
284
|
+
}, T.prototype.forceUpdate = function(e) {
|
|
285
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), k(this));
|
|
286
|
+
}, T.prototype.render = w, i = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, s = function(e, t) {
|
|
287
|
+
return e.__v.__b - t.__v.__b;
|
|
288
|
+
}, A.__r = 0, c = Math.random().toString(8), l = "__d" + c, u = "__a" + c, d = /(PointerCapture)$|Capture$/i, f = 0, p = R(!1), m = R(!0), h = 0;
|
|
289
|
+
//#endregion
|
|
290
|
+
export { J as a, S as c, w as i, t as l, P as n, Y as o, q as r, X as s, T as t, r as u };
|