dawn-ui-react 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-header.d.ts +1 -1
- package/dist/components/accordion/accordion-item.d.ts +1 -1
- package/dist/components/accordion/accordion-panel.d.ts +1 -1
- package/dist/components/accordion/accordion-subtitle.d.ts +1 -1
- package/dist/components/accordion/accordion-title.d.ts +1 -1
- package/dist/components/accordion/accordion-trigger.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +2 -1
- package/dist/components/alert/alert-actions.d.ts +1 -1
- package/dist/components/alert/alert-content.d.ts +1 -1
- package/dist/components/alert/alert-description.d.ts +1 -1
- package/dist/components/alert/alert-title.d.ts +1 -1
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-close.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-confirm.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-content.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-description.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-footer.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-header.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-popup.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-title.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog-trigger.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-collection.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-content.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-grid-content.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-grid-item.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-group-label.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-group.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-input-group-addon.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-input-group-input.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-input-group.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-item.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-row.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-status.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-trigger.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +1 -1
- package/dist/components/avatar/avatar-badge.d.ts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar-image.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb-ellipsis.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.types.d.ts +1 -1
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/chart/chart-container.d.ts +1 -1
- package/dist/components/chart/chart-legend-content.d.ts +1 -1
- package/dist/components/chart/chart-legend-icon.d.ts +1 -1
- package/dist/components/chart/chart-legend-indicator.d.ts +1 -1
- package/dist/components/chart/chart-legend-label.d.ts +1 -1
- package/dist/components/chart/chart-legend.d.ts +1 -1
- package/dist/components/chart/chart-linear-gradient.d.ts +1 -1
- package/dist/components/chart/chart-tooltip-content.d.ts +2 -1
- package/dist/components/chart/chart-tooltip-icon.d.ts +1 -1
- package/dist/components/chart/chart-tooltip-indicator.d.ts +1 -1
- package/dist/components/chart/chart-tooltip-label.d.ts +1 -1
- package/dist/components/chart/chart-tooltip-name.d.ts +1 -1
- package/dist/components/chart/chart-tooltip-payload.d.ts +2 -1
- package/dist/components/chart/chart-tooltip-value.d.ts +1 -1
- package/dist/components/chart/chart-tooltip.d.ts +1 -1
- package/dist/components/checkbox/checkbox-indicator.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +2 -1
- package/dist/components/code-block/code-block-actions.d.ts +1 -1
- package/dist/components/code-block/code-block-copy.d.ts +2 -1
- package/dist/components/code-block/code-block-download.d.ts +2 -1
- package/dist/components/code-block/code-block-header.d.ts +1 -1
- package/dist/components/code-block/code-block-name.d.ts +1 -1
- package/dist/components/code-block/code-block-select.d.ts +1 -1
- package/dist/components/code-block/code-block-tabs.d.ts +1 -1
- package/dist/components/code-block/code-block-window.d.ts +1 -1
- package/dist/components/code-block/code-block.d.ts +2 -1
- package/dist/components/collapsible/collapsible-panel.d.ts +1 -1
- package/dist/components/collapsible/collapsible-trigger.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/colour-channel-slider/colour-channel-slider.d.ts +2 -0
- package/dist/components/colour-channel-slider/colour-channel-slider.types.d.ts +8 -0
- package/dist/components/colour-channel-slider/colour-channel-slider.utils.d.ts +4 -0
- package/dist/components/colour-channel-slider/index.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-area.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-group.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-hue-slider.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-input.d.ts +3 -0
- package/dist/components/colour-picker/colour-picker-label.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-palette-add.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-palette-limit.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-palette-list.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-palette-swatch.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-row.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker-transparency-slider.d.ts +3 -0
- package/dist/components/colour-picker/colour-picker-value-type.d.ts +2 -0
- package/dist/components/colour-picker/colour-picker.d.ts +4 -0
- package/dist/components/colour-picker/colour-picker.types.d.ts +94 -0
- package/dist/components/colour-picker/index.d.ts +2 -0
- package/dist/components/combobox/combobox-chip.d.ts +1 -1
- package/dist/components/combobox/combobox-chips.d.ts +1 -1
- package/dist/components/combobox/combobox-collection.d.ts +1 -1
- package/dist/components/combobox/combobox-empty.d.ts +1 -1
- package/dist/components/combobox/combobox-group-label.d.ts +1 -1
- package/dist/components/combobox/combobox-group.d.ts +1 -1
- package/dist/components/combobox/combobox-input.d.ts +2 -1
- package/dist/components/combobox/combobox-item.d.ts +1 -1
- package/dist/components/combobox/combobox-list.d.ts +1 -1
- package/dist/components/combobox/combobox-popup.d.ts +1 -1
- package/dist/components/combobox/combobox-status.d.ts +1 -1
- package/dist/components/combobox/combobox-trigger.d.ts +1 -1
- package/dist/components/combobox/combobox-value.d.ts +1 -1
- package/dist/components/combobox/combobox-virtualized-list.d.ts +2 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/context-menu/context-menu-checkbox-item.d.ts +1 -1
- package/dist/components/context-menu/context-menu-group-label.d.ts +1 -1
- package/dist/components/context-menu/context-menu-group.d.ts +1 -1
- package/dist/components/context-menu/context-menu-item.d.ts +1 -1
- package/dist/components/context-menu/context-menu-popup.d.ts +1 -1
- package/dist/components/context-menu/context-menu-radio-group.d.ts +1 -1
- package/dist/components/context-menu/context-menu-radio-item.d.ts +1 -1
- package/dist/components/context-menu/context-menu-separator.d.ts +1 -1
- package/dist/components/context-menu/context-menu-shortcut.d.ts +1 -1
- package/dist/components/context-menu/context-menu-submenu-trigger.d.ts +1 -1
- package/dist/components/context-menu/context-menu-submenu.d.ts +1 -1
- package/dist/components/context-menu/context-menu-trigger.d.ts +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/dialog/dialog-close.d.ts +1 -1
- package/dist/components/dialog/dialog-content.d.ts +1 -1
- package/dist/components/dialog/dialog-description.d.ts +1 -1
- package/dist/components/dialog/dialog-footer.d.ts +1 -1
- package/dist/components/dialog/dialog-header.d.ts +1 -1
- package/dist/components/dialog/dialog-popup.d.ts +1 -1
- package/dist/components/dialog/dialog-title.d.ts +1 -1
- package/dist/components/dialog/dialog-trigger.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dialog/dialog.types.d.ts +1 -0
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/drawer/drawer-close.d.ts +1 -1
- package/dist/components/drawer/drawer-content.d.ts +1 -1
- package/dist/components/drawer/drawer-description.d.ts +1 -1
- package/dist/components/drawer/drawer-header.d.ts +1 -1
- package/dist/components/drawer/drawer-popup.d.ts +1 -1
- package/dist/components/drawer/drawer-provider.d.ts +1 -1
- package/dist/components/drawer/drawer-title.d.ts +1 -1
- package/dist/components/drawer/drawer-trigger.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/dropzone/dropzone-actions.d.ts +2 -0
- package/dist/components/dropzone/dropzone-clear.d.ts +2 -0
- package/dist/components/dropzone/dropzone-confirm.d.ts +2 -0
- package/dist/components/dropzone/dropzone-container.d.ts +2 -0
- package/dist/components/dropzone/dropzone-error.d.ts +2 -0
- package/dist/components/dropzone/dropzone-file-limit.d.ts +2 -0
- package/dist/components/dropzone/dropzone-file-size-limit.d.ts +2 -0
- package/dist/components/dropzone/dropzone-files-header.d.ts +2 -0
- package/dist/components/dropzone/dropzone-files-list.d.ts +2 -0
- package/dist/components/dropzone/dropzone-files-title.d.ts +2 -0
- package/dist/components/dropzone/dropzone-files.d.ts +2 -0
- package/dist/components/dropzone/dropzone-formats.d.ts +2 -0
- package/dist/components/dropzone/dropzone-heading.d.ts +2 -0
- package/dist/components/dropzone/dropzone-icon.d.ts +2 -0
- package/dist/components/dropzone/dropzone-info.d.ts +2 -0
- package/dist/components/dropzone/dropzone-subtitle.d.ts +2 -0
- package/dist/components/dropzone/dropzone-trigger.d.ts +2 -0
- package/dist/components/dropzone/dropzone.d.ts +24 -0
- package/dist/components/dropzone/dropzone.types.d.ts +30 -0
- package/dist/components/dropzone/dropzone.utils.d.ts +3 -0
- package/dist/components/dropzone/index.d.ts +18 -0
- package/dist/components/field/field-checkbox.d.ts +1 -1
- package/dist/components/field/field-description.d.ts +1 -1
- package/dist/components/field/field-errors.d.ts +1 -1
- package/dist/components/field/field-input-group-input.d.ts +1 -1
- package/dist/components/field/field-input-group.d.ts +1 -1
- package/dist/components/field/field-input.d.ts +1 -1
- package/dist/components/field/field-label.d.ts +1 -1
- package/dist/components/field/field-radio-group.d.ts +1 -1
- package/dist/components/field/field-radio.d.ts +1 -1
- package/dist/components/field/field-row.d.ts +2 -0
- package/dist/components/field/field-select.d.ts +1 -1
- package/dist/components/field/field-set.d.ts +1 -1
- package/dist/components/field/field-slider.d.ts +1 -1
- package/dist/components/field/field-switch.d.ts +1 -1
- package/dist/components/field/field-text-area.d.ts +1 -1
- package/dist/components/field/field-toggle.d.ts +1 -1
- package/dist/components/field/field.d.ts +1 -1
- package/dist/components/field/field.types.d.ts +9 -1
- package/dist/components/field/index.d.ts +2 -1
- package/dist/components/form/form-context.d.ts +162 -120
- package/dist/components/form/form-contexts.d.ts +1 -0
- package/dist/components/form/form-errors.d.ts +1 -1
- package/dist/components/form/form-footer.d.ts +2 -0
- package/dist/components/form/form-reset.d.ts +1 -1
- package/dist/components/form/form-set-content.d.ts +2 -0
- package/dist/components/form/form-set-heading.d.ts +2 -0
- package/dist/components/form/form-set.d.ts +2 -0
- package/dist/components/form/form-submit.d.ts +1 -1
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/form/form.types.d.ts +6 -0
- package/dist/components/form/index.d.ts +4 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.types.d.ts +9 -0
- package/dist/components/input-group/input-group-addon.d.ts +1 -1
- package/dist/components/input-group/input-group-input.d.ts +1 -1
- package/dist/components/input-group/input-group.d.ts +1 -1
- package/dist/components/input-group/input-group.types.d.ts +5 -2
- package/dist/components/input-otp/input-otp-separator.d.ts +1 -1
- package/dist/components/input-otp/input-otp-slot.d.ts +1 -1
- package/dist/components/input-otp/input-otp.d.ts +1 -1
- package/dist/components/input-otp/input-otp.types.d.ts +1 -1
- package/dist/components/kbd/kbd-group.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/label/label.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-expand-all.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-footer.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-node.d.ts +2 -1
- package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-search.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-sort.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree.d.ts +2 -1
- package/dist/components/layer-tree/layer-tree.types.d.ts +1 -1
- package/dist/components/menu/menu-checkbox-item.d.ts +1 -1
- package/dist/components/menu/menu-group-label.d.ts +1 -1
- package/dist/components/menu/menu-group.d.ts +1 -1
- package/dist/components/menu/menu-item.d.ts +1 -1
- package/dist/components/menu/menu-popup.d.ts +1 -1
- package/dist/components/menu/menu-radio-group.d.ts +1 -1
- package/dist/components/menu/menu-radio-item.d.ts +1 -1
- package/dist/components/menu/menu-separator.d.ts +1 -1
- package/dist/components/menu/menu-shortcut.d.ts +1 -1
- package/dist/components/menu/menu-submenu-trigger.d.ts +1 -1
- package/dist/components/menu/menu-submenu.d.ts +1 -1
- package/dist/components/menu/menu-trigger.d.ts +1 -1
- package/dist/components/menu/menu.d.ts +1 -1
- package/dist/components/meter/meter-footer.d.ts +1 -1
- package/dist/components/meter/meter-header.d.ts +1 -1
- package/dist/components/meter/meter-indicator.d.ts +1 -1
- package/dist/components/meter/meter-label.d.ts +1 -1
- package/dist/components/meter/meter-subtitle.d.ts +1 -1
- package/dist/components/meter/meter-track.d.ts +1 -1
- package/dist/components/meter/meter-value.d.ts +1 -1
- package/dist/components/meter/meter.d.ts +1 -1
- package/dist/components/nav-bar/index.d.ts +5 -0
- package/dist/components/nav-bar/nav-bar-item-icon.d.ts +2 -0
- package/dist/components/nav-bar/nav-bar-item-label.d.ts +2 -0
- package/dist/components/nav-bar/nav-bar-item.d.ts +2 -0
- package/dist/components/nav-bar/nav-bar.d.ts +2 -0
- package/dist/components/nav-bar/nav-bar.types.d.ts +15 -0
- package/dist/components/navigation-menu/index.d.ts +9 -0
- package/dist/components/navigation-menu/navigation-menu-content.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu-icon.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu-item.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu-link.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu-list.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu-popup.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.d.ts +6 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu.types.d.ts +16 -0
- package/dist/components/number-field/number-field.d.ts +2 -1
- package/dist/components/number-field/number-field.types.d.ts +1 -0
- package/dist/components/popover/popover-button.d.ts +1 -1
- package/dist/components/popover/popover-content.d.ts +1 -1
- package/dist/components/popover/popover-description.d.ts +1 -1
- package/dist/components/popover/popover-header.d.ts +1 -1
- package/dist/components/popover/popover-panel.d.ts +1 -1
- package/dist/components/popover/popover-title.d.ts +1 -1
- package/dist/components/popover/popover-trigger.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/profile/profile-action.d.ts +1 -1
- package/dist/components/profile/profile-content.d.ts +1 -1
- package/dist/components/profile/profile-name.d.ts +1 -1
- package/dist/components/profile/profile-subname.d.ts +1 -1
- package/dist/components/profile/profile.d.ts +1 -1
- package/dist/components/progress/progress-bar.d.ts +1 -1
- package/dist/components/progress/progress-indicator.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/radar-ping/radar-ping.d.ts +1 -1
- package/dist/components/radio-group/radio-group.d.ts +2 -1
- package/dist/components/radio-group/radio.d.ts +1 -1
- package/dist/components/resizeable/resizeable-handle.d.ts +1 -1
- package/dist/components/resizeable/resizeable-panel-group.d.ts +1 -1
- package/dist/components/resizeable/resizeable-panel.d.ts +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/select/select-group-label.d.ts +1 -1
- package/dist/components/select/select-group.d.ts +1 -1
- package/dist/components/select/select-icon.d.ts +1 -1
- package/dist/components/select/select-item.d.ts +1 -1
- package/dist/components/select/select-list.d.ts +1 -1
- package/dist/components/select/select-popup.d.ts +1 -1
- package/dist/components/select/select-trigger.d.ts +1 -1
- package/dist/components/select/select-value.d.ts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/separator/separator.d.ts +1 -1
- package/dist/components/separator/separator.types.d.ts +1 -1
- package/dist/components/sidebar/sidebar-content.d.ts +1 -1
- package/dist/components/sidebar/sidebar-footer.d.ts +1 -1
- package/dist/components/sidebar/sidebar-group-content.d.ts +1 -1
- package/dist/components/sidebar/sidebar-group-label.d.ts +1 -1
- package/dist/components/sidebar/sidebar-group.d.ts +1 -1
- package/dist/components/sidebar/sidebar-header.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu-badge.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu-button.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu-collapsible-panel.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu-collapsible-trigger.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu-collapsible.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu-item.d.ts +1 -1
- package/dist/components/sidebar/sidebar-menu.d.ts +1 -1
- package/dist/components/sidebar/sidebar-provider.d.ts +1 -1
- package/dist/components/sidebar/sidebar-toggle.d.ts +1 -1
- package/dist/components/sidebar/sidebar.d.ts +2 -1
- package/dist/components/sidebar/sidebar.types.d.ts +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +2 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/table/table-body-grid.d.ts +1 -1
- package/dist/components/table/table-body-list.d.ts +1 -1
- package/dist/components/table/table-change-view.d.ts +1 -1
- package/dist/components/table/table-column-toggle.d.ts +1 -1
- package/dist/components/table/table-container.d.ts +1 -1
- package/dist/components/table/table-content.d.ts +1 -1
- package/dist/components/table/table-data-set-select.d.ts +1 -1
- package/dist/components/table/table-data-set-tabs.d.ts +1 -1
- package/dist/components/table/table-filter-form.d.ts +1 -1
- package/dist/components/table/table-filter.d.ts +1 -1
- package/dist/components/table/table-filters.d.ts +1 -1
- package/dist/components/table/table-first-page.d.ts +1 -1
- package/dist/components/table/table-footer.d.ts +1 -1
- package/dist/components/table/table-header.d.ts +1 -1
- package/dist/components/table/table-last-page.d.ts +1 -1
- package/dist/components/table/table-nav.d.ts +1 -1
- package/dist/components/table/table-next-page.d.ts +1 -1
- package/dist/components/table/table-pagination.d.ts +1 -1
- package/dist/components/table/table-paging.d.ts +1 -1
- package/dist/components/table/table-previous-page.d.ts +1 -1
- package/dist/components/table/table-refresh.d.ts +2 -1
- package/dist/components/table/table-row-grid.d.ts +1 -1
- package/dist/components/table/table-row-list.d.ts +1 -1
- package/dist/components/table/table-search.d.ts +2 -1
- package/dist/components/table/table-sort.d.ts +1 -1
- package/dist/components/table/table-toolbar.d.ts +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.types.d.ts +9 -3
- package/dist/components/tabs/tabs-indicator.d.ts +1 -1
- package/dist/components/tabs/tabs-list.d.ts +1 -1
- package/dist/components/tabs/tabs-panel.d.ts +1 -1
- package/dist/components/tabs/tabs-tab.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.types.d.ts +1 -1
- package/dist/components/text-area/text-area.d.ts +2 -1
- package/dist/components/toast/anchored-toast-item.d.ts +1 -1
- package/dist/components/toast/anchored-toasts.d.ts +1 -1
- package/dist/components/toast/stack-toast-item.d.ts +2 -1
- package/dist/components/toast/stack-toasts.d.ts +1 -1
- package/dist/components/toast/toast-provider.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle-group/toggle-group.d.ts +1 -1
- package/dist/components/tooltip/tooltip-context.d.ts +1 -1
- package/dist/components/tooltip/tooltip-trigger.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/dawn-ui-react.js +29409 -21182
- package/dist/dawn-ui-react.umd.cjs +61 -56
- package/dist/styles.css +4 -0
- package/package.json +50 -47
- package/dist/CompositeItem-CH9gluPn.js +0 -45
- package/dist/CompositeListContext-DMNULDos.js +0 -15
- package/dist/FieldItemContext-D1iEutzE.js +0 -9
- package/dist/FormContext-DmYxHG1e.js +0 -26
- package/dist/Input-DXQc6T_w.js +0 -82
- package/dist/LabelableContext-mL6rBiul.js +0 -85
- package/dist/RadioGroupContext-zHzEliyD.js +0 -9
- package/dist/clamp-63kvPeUJ.js +0 -801
- package/dist/cn-BSNuKelt.js +0 -1734
- package/dist/composite-8Z1YCmUf.js +0 -161
- package/dist/composite-DTxBFZq_.js +0 -328
- package/dist/createBaseUIEventDetails-BHkB1IRT.js +0 -36
- package/dist/form-context-CpevRrMx.js +0 -3062
- package/dist/input.types-DDZuq7AK.js +0 -21
- package/dist/label-C57cQsPN.js +0 -50
- package/dist/owner-CZ-bExcn.js +0 -6
- package/dist/serializeValue-DadF0djs.js +0 -12
- package/dist/shadowDom-nxuQhD_O.js +0 -25
- package/dist/useBaseUiId-DJ56dhex.js +0 -25
- package/dist/useCompositeListItem-CuKiOJnK.js +0 -53
- package/dist/useControlled-kefeIBTp.js +0 -48
- package/dist/useLabelableId-Cb5S9nao.js +0 -39
- package/dist/useOpenChangeComplete-D1bYAEWf.js +0 -178
- package/dist/useRegisterFieldControl-I4gdfodR.js +0 -27
- package/dist/visuallyHidden-C0MRt467.js +0 -21
|
@@ -1,3062 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./cn-BSNuKelt.js";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { createContext as r, createElement as i, lazy as a, useCallback as o, useContext as s, useEffect as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
4
|
-
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
-
import { useSyncExternalStoreWithSelector as g } from "use-sync-external-store/shim/with-selector";
|
|
6
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/error.js
|
|
7
|
-
var _;
|
|
8
|
-
process.env.NODE_ENV !== "production" && (_ = /* @__PURE__ */ new Set());
|
|
9
|
-
function ee(...e) {
|
|
10
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11
|
-
let t = e.join(" ");
|
|
12
|
-
_.has(t) || (_.add(t), console.error(`Base UI: ${t}`));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useRefWithInit.js
|
|
17
|
-
var te = {};
|
|
18
|
-
function v(e, t) {
|
|
19
|
-
let r = n.useRef(te);
|
|
20
|
-
return r.current === te && (r.current = e(t)), r;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useStableCallback.js
|
|
24
|
-
var y = n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], ne = y && y !== n.useLayoutEffect ? y : (e) => e();
|
|
25
|
-
function re(e) {
|
|
26
|
-
let t = v(ie).current;
|
|
27
|
-
return t.next = e, ne(t.effect), t.trampoline;
|
|
28
|
-
}
|
|
29
|
-
function ie() {
|
|
30
|
-
let e = {
|
|
31
|
-
next: void 0,
|
|
32
|
-
callback: ae,
|
|
33
|
-
trampoline: (...t) => e.callback?.(...t),
|
|
34
|
-
effect: () => {
|
|
35
|
-
e.callback = e.next;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
return e;
|
|
39
|
-
}
|
|
40
|
-
function ae() {
|
|
41
|
-
if (process.env.NODE_ENV !== "production") throw Error("Base UI: Cannot call an event handler while rendering.");
|
|
42
|
-
}
|
|
43
|
-
var oe = typeof document < "u" ? n.useLayoutEffect : () => {}, se;
|
|
44
|
-
process.env.NODE_ENV !== "production" && (se = /* @__PURE__ */ new Set());
|
|
45
|
-
function ce(...e) {
|
|
46
|
-
if (process.env.NODE_ENV !== "production") {
|
|
47
|
-
let t = e.join(" ");
|
|
48
|
-
se.has(t) || (se.add(t), console.warn(`Base UI: ${t}`));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/formatErrorMessage.js
|
|
53
|
-
function le(e, t) {
|
|
54
|
-
return function(n, ...r) {
|
|
55
|
-
let i = new URL(e);
|
|
56
|
-
return i.searchParams.set("code", n.toString()), r.forEach((e) => i.searchParams.append("args[]", e)), `${t} error #${n}; visit ${i} for the full message.`;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
var ue = le("https://base-ui.com/production-error", "Base UI");
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
62
|
-
function de(e, t, n, r) {
|
|
63
|
-
let i = v(pe).current;
|
|
64
|
-
return me(i, e, t, n, r) && ge(i, [
|
|
65
|
-
e,
|
|
66
|
-
t,
|
|
67
|
-
n,
|
|
68
|
-
r
|
|
69
|
-
]), i.callback;
|
|
70
|
-
}
|
|
71
|
-
function fe(e) {
|
|
72
|
-
let t = v(pe).current;
|
|
73
|
-
return he(t, e) && ge(t, e), t.callback;
|
|
74
|
-
}
|
|
75
|
-
function pe() {
|
|
76
|
-
return {
|
|
77
|
-
callback: null,
|
|
78
|
-
cleanup: null,
|
|
79
|
-
refs: []
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function me(e, t, n, r, i) {
|
|
83
|
-
return e.refs[0] !== t || e.refs[1] !== n || e.refs[2] !== r || e.refs[3] !== i;
|
|
84
|
-
}
|
|
85
|
-
function he(e, t) {
|
|
86
|
-
return e.refs.length !== t.length || e.refs.some((e, n) => e !== t[n]);
|
|
87
|
-
}
|
|
88
|
-
function ge(e, t) {
|
|
89
|
-
if (e.refs = t, t.every((e) => e == null)) {
|
|
90
|
-
e.callback = null;
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
e.callback = (n) => {
|
|
94
|
-
if (e.cleanup &&= (e.cleanup(), null), n != null) {
|
|
95
|
-
let r = Array(t.length).fill(null);
|
|
96
|
-
for (let e = 0; e < t.length; e += 1) {
|
|
97
|
-
let i = t[e];
|
|
98
|
-
if (i != null) switch (typeof i) {
|
|
99
|
-
case "function": {
|
|
100
|
-
let t = i(n);
|
|
101
|
-
typeof t == "function" && (r[e] = t);
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
case "object":
|
|
105
|
-
i.current = n;
|
|
106
|
-
break;
|
|
107
|
-
default:
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
e.cleanup = () => {
|
|
111
|
-
for (let e = 0; e < t.length; e += 1) {
|
|
112
|
-
let n = t[e];
|
|
113
|
-
if (n != null) switch (typeof n) {
|
|
114
|
-
case "function": {
|
|
115
|
-
let t = r[e];
|
|
116
|
-
typeof t == "function" ? t() : n(null);
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
case "object":
|
|
120
|
-
n.current = null;
|
|
121
|
-
break;
|
|
122
|
-
default:
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/reactVersion.js
|
|
131
|
-
var _e = parseInt(n.version, 10);
|
|
132
|
-
function ve(e) {
|
|
133
|
-
return _e >= e;
|
|
134
|
-
}
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
137
|
-
function ye(e) {
|
|
138
|
-
if (!/* @__PURE__ */ n.isValidElement(e)) return null;
|
|
139
|
-
let t = e, r = t.props;
|
|
140
|
-
return (ve(19) ? r?.ref : t.ref) ?? null;
|
|
141
|
-
}
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/mergeObjects.js
|
|
144
|
-
function be(e, t) {
|
|
145
|
-
if (e && !t) return e;
|
|
146
|
-
if (!e && t) return t;
|
|
147
|
-
if (e || t) return {
|
|
148
|
-
...e,
|
|
149
|
-
...t
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/empty.js
|
|
154
|
-
function xe() {}
|
|
155
|
-
var Se = Object.freeze([]), b = Object.freeze({});
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js
|
|
158
|
-
function Ce(e, t) {
|
|
159
|
-
let n = {};
|
|
160
|
-
for (let r in e) {
|
|
161
|
-
let i = e[r];
|
|
162
|
-
if (t?.hasOwnProperty(r)) {
|
|
163
|
-
let e = t[r](i);
|
|
164
|
-
e != null && Object.assign(n, e);
|
|
165
|
-
continue;
|
|
166
|
-
}
|
|
167
|
-
i === !0 ? n[`data-${r.toLowerCase()}`] = "" : i && (n[`data-${r.toLowerCase()}`] = i.toString());
|
|
168
|
-
}
|
|
169
|
-
return n;
|
|
170
|
-
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/resolveClassName.js
|
|
173
|
-
function we(e, t) {
|
|
174
|
-
return typeof e == "function" ? e(t) : e;
|
|
175
|
-
}
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/resolveStyle.js
|
|
178
|
-
function Te(e, t) {
|
|
179
|
-
return typeof e == "function" ? e(t) : e;
|
|
180
|
-
}
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/merge-props/mergeProps.js
|
|
183
|
-
var Ee = {};
|
|
184
|
-
function De(e, t, n, r, i) {
|
|
185
|
-
if (!n && !r && !i && !e) return x(t);
|
|
186
|
-
let a = x(e);
|
|
187
|
-
return t && (a = S(a, t)), n && (a = S(a, n)), r && (a = S(a, r)), i && (a = S(a, i)), a;
|
|
188
|
-
}
|
|
189
|
-
function Oe(e) {
|
|
190
|
-
if (e.length === 0) return Ee;
|
|
191
|
-
if (e.length === 1) return x(e[0]);
|
|
192
|
-
let t = x(e[0]);
|
|
193
|
-
for (let n = 1; n < e.length; n += 1) t = S(t, e[n]);
|
|
194
|
-
return t;
|
|
195
|
-
}
|
|
196
|
-
function x(e) {
|
|
197
|
-
return Me(e) ? { ...Ne(e, Ee) } : ke(e);
|
|
198
|
-
}
|
|
199
|
-
function S(e, t) {
|
|
200
|
-
return Me(t) ? Ne(t, e) : Ae(e, t);
|
|
201
|
-
}
|
|
202
|
-
function ke(e) {
|
|
203
|
-
let t = { ...e };
|
|
204
|
-
for (let e in t) {
|
|
205
|
-
let n = t[e];
|
|
206
|
-
je(e, n) && (t[e] = Fe(n));
|
|
207
|
-
}
|
|
208
|
-
return t;
|
|
209
|
-
}
|
|
210
|
-
function Ae(e, t) {
|
|
211
|
-
if (!t) return e;
|
|
212
|
-
for (let n in t) {
|
|
213
|
-
let r = t[n];
|
|
214
|
-
switch (n) {
|
|
215
|
-
case "style":
|
|
216
|
-
e[n] = be(e.style, r);
|
|
217
|
-
break;
|
|
218
|
-
case "className":
|
|
219
|
-
e[n] = Ie(e.className, r);
|
|
220
|
-
break;
|
|
221
|
-
default: je(n, r) ? e[n] = Pe(e[n], r) : e[n] = r;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
return e;
|
|
225
|
-
}
|
|
226
|
-
function je(e, t) {
|
|
227
|
-
let n = e.charCodeAt(0), r = e.charCodeAt(1), i = e.charCodeAt(2);
|
|
228
|
-
return n === 111 && r === 110 && i >= 65 && i <= 90 && (typeof t == "function" || t === void 0);
|
|
229
|
-
}
|
|
230
|
-
function Me(e) {
|
|
231
|
-
return typeof e == "function";
|
|
232
|
-
}
|
|
233
|
-
function Ne(e, t) {
|
|
234
|
-
return Me(e) ? e(t) : e ?? Ee;
|
|
235
|
-
}
|
|
236
|
-
function Pe(e, t) {
|
|
237
|
-
return t ? e ? (...n) => {
|
|
238
|
-
let r = n[0];
|
|
239
|
-
if (Le(r)) {
|
|
240
|
-
let i = r;
|
|
241
|
-
C(i);
|
|
242
|
-
let a = t(...n);
|
|
243
|
-
return i.baseUIHandlerPrevented || e?.(...n), a;
|
|
244
|
-
}
|
|
245
|
-
let i = t(...n);
|
|
246
|
-
return e?.(...n), i;
|
|
247
|
-
} : Fe(t) : e;
|
|
248
|
-
}
|
|
249
|
-
function Fe(e) {
|
|
250
|
-
return e && ((...t) => {
|
|
251
|
-
let n = t[0];
|
|
252
|
-
return Le(n) && C(n), e(...t);
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
function C(e) {
|
|
256
|
-
return e.preventBaseUIHandler = () => {
|
|
257
|
-
e.baseUIHandlerPrevented = !0;
|
|
258
|
-
}, e;
|
|
259
|
-
}
|
|
260
|
-
function Ie(e, t) {
|
|
261
|
-
return t ? e ? t + " " + e : t : e;
|
|
262
|
-
}
|
|
263
|
-
function Le(e) {
|
|
264
|
-
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
265
|
-
}
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/useRenderElement.js
|
|
268
|
-
function Re(e, t, n = {}) {
|
|
269
|
-
let r = t.render, i = ze(t, n);
|
|
270
|
-
return n.enabled === !1 ? null : We(e, r, i, n.state ?? b);
|
|
271
|
-
}
|
|
272
|
-
function ze(e, t = {}) {
|
|
273
|
-
let { className: n, style: r, render: i } = e, { state: a = b, ref: o, props: s, stateAttributesMapping: c, enabled: l = !0 } = t, u = l ? we(n, a) : void 0, d = l ? Te(r, a) : void 0, f = l ? Ce(a, c) : b, p = l && s ? Be(s) : void 0, m = l ? be(f, p) ?? {} : b;
|
|
274
|
-
return typeof document < "u" && (l ? Array.isArray(o) ? m.ref = fe([
|
|
275
|
-
m.ref,
|
|
276
|
-
ye(i),
|
|
277
|
-
...o
|
|
278
|
-
]) : m.ref = de(m.ref, ye(i), o) : de(null, null)), l ? (u !== void 0 && (m.className = Ie(m.className, u)), d !== void 0 && (m.style = be(m.style, d)), m) : b;
|
|
279
|
-
}
|
|
280
|
-
function Be(e) {
|
|
281
|
-
return Array.isArray(e) ? Oe(e) : De(void 0, e);
|
|
282
|
-
}
|
|
283
|
-
var Ve = Symbol.for("react.lazy"), He = /^[A-Z][A-Za-z0-9$]*$/, Ue = /[a-z]/;
|
|
284
|
-
function We(e, t, r, i) {
|
|
285
|
-
if (t) {
|
|
286
|
-
if (typeof t == "function") return process.env.NODE_ENV !== "production" && Ge(t), t(r, i);
|
|
287
|
-
let e = De(r, t.props);
|
|
288
|
-
e.ref = r.ref;
|
|
289
|
-
let a = t;
|
|
290
|
-
if (a?.$$typeof === Ve && (a = n.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ n.isValidElement(a)) throw Error([
|
|
291
|
-
"Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
|
|
292
|
-
"A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
|
|
293
|
-
"https://base-ui.com/r/invalid-render-prop"
|
|
294
|
-
].join("\n"));
|
|
295
|
-
return /* @__PURE__ */ n.cloneElement(a, e);
|
|
296
|
-
}
|
|
297
|
-
if (e && typeof e == "string") return Ke(e, r);
|
|
298
|
-
throw Error(process.env.NODE_ENV === "production" ? ue(8) : "Base UI: Render element or function are not defined.");
|
|
299
|
-
}
|
|
300
|
-
function Ge(e) {
|
|
301
|
-
let t = e.name;
|
|
302
|
-
t.length !== 0 && He.test(t) && Ue.test(t) && ce(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
303
|
-
}
|
|
304
|
-
function Ke(e, t) {
|
|
305
|
-
return e === "button" ? /* @__PURE__ */ i("button", {
|
|
306
|
-
type: "button",
|
|
307
|
-
...t,
|
|
308
|
-
key: t.key
|
|
309
|
-
}) : e === "img" ? /* @__PURE__ */ i("img", {
|
|
310
|
-
alt: "",
|
|
311
|
-
...t,
|
|
312
|
-
key: t.key
|
|
313
|
-
}) : /* @__PURE__ */ n.createElement(e, t);
|
|
314
|
-
}
|
|
315
|
-
//#endregion
|
|
316
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/safeReact.js
|
|
317
|
-
var qe = { ...n };
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
320
|
-
function Je() {
|
|
321
|
-
return typeof window < "u";
|
|
322
|
-
}
|
|
323
|
-
function Ye(e) {
|
|
324
|
-
return Ze(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
325
|
-
}
|
|
326
|
-
function w(e) {
|
|
327
|
-
var t;
|
|
328
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
329
|
-
}
|
|
330
|
-
function Xe(e) {
|
|
331
|
-
return ((Ze(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
332
|
-
}
|
|
333
|
-
function Ze(e) {
|
|
334
|
-
return Je() ? e instanceof Node || e instanceof w(e).Node : !1;
|
|
335
|
-
}
|
|
336
|
-
function Qe(e) {
|
|
337
|
-
return Je() ? e instanceof Element || e instanceof w(e).Element : !1;
|
|
338
|
-
}
|
|
339
|
-
function $e(e) {
|
|
340
|
-
return Je() ? e instanceof HTMLElement || e instanceof w(e).HTMLElement : !1;
|
|
341
|
-
}
|
|
342
|
-
function et(e) {
|
|
343
|
-
return !Je() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof w(e).ShadowRoot;
|
|
344
|
-
}
|
|
345
|
-
function tt(e) {
|
|
346
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = dt(e);
|
|
347
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
348
|
-
}
|
|
349
|
-
function nt(e) {
|
|
350
|
-
return /^(table|td|th)$/.test(Ye(e));
|
|
351
|
-
}
|
|
352
|
-
function rt(e) {
|
|
353
|
-
try {
|
|
354
|
-
if (e.matches(":popover-open")) return !0;
|
|
355
|
-
} catch {}
|
|
356
|
-
try {
|
|
357
|
-
return e.matches(":modal");
|
|
358
|
-
} catch {
|
|
359
|
-
return !1;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
var it = /transform|translate|scale|rotate|perspective|filter/, at = /paint|layout|strict|content/, T = (e) => !!e && e !== "none", ot;
|
|
363
|
-
function st(e) {
|
|
364
|
-
let t = Qe(e) ? dt(e) : e;
|
|
365
|
-
return T(t.transform) || T(t.translate) || T(t.scale) || T(t.rotate) || T(t.perspective) || !lt() && (T(t.backdropFilter) || T(t.filter)) || it.test(t.willChange || "") || at.test(t.contain || "");
|
|
366
|
-
}
|
|
367
|
-
function ct(e) {
|
|
368
|
-
let t = E(e);
|
|
369
|
-
for (; $e(t) && !ut(t);) {
|
|
370
|
-
if (st(t)) return t;
|
|
371
|
-
if (rt(t)) return null;
|
|
372
|
-
t = E(t);
|
|
373
|
-
}
|
|
374
|
-
return null;
|
|
375
|
-
}
|
|
376
|
-
function lt() {
|
|
377
|
-
return ot ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ot;
|
|
378
|
-
}
|
|
379
|
-
function ut(e) {
|
|
380
|
-
return /^(html|body|#document)$/.test(Ye(e));
|
|
381
|
-
}
|
|
382
|
-
function dt(e) {
|
|
383
|
-
return w(e).getComputedStyle(e);
|
|
384
|
-
}
|
|
385
|
-
function ft(e) {
|
|
386
|
-
return Qe(e) ? {
|
|
387
|
-
scrollLeft: e.scrollLeft,
|
|
388
|
-
scrollTop: e.scrollTop
|
|
389
|
-
} : {
|
|
390
|
-
scrollLeft: e.scrollX,
|
|
391
|
-
scrollTop: e.scrollY
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
function E(e) {
|
|
395
|
-
if (Ye(e) === "html") return e;
|
|
396
|
-
let t = e.assignedSlot || e.parentNode || et(e) && e.host || Xe(e);
|
|
397
|
-
return et(t) ? t.host : t;
|
|
398
|
-
}
|
|
399
|
-
function pt(e) {
|
|
400
|
-
let t = E(e);
|
|
401
|
-
return ut(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : $e(t) && tt(t) ? t : pt(t);
|
|
402
|
-
}
|
|
403
|
-
function mt(e, t, n) {
|
|
404
|
-
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
405
|
-
let r = pt(e), i = r === e.ownerDocument?.body, a = w(r);
|
|
406
|
-
if (i) {
|
|
407
|
-
let e = ht(a);
|
|
408
|
-
return t.concat(a, a.visualViewport || [], tt(r) ? r : [], e && n ? mt(e) : []);
|
|
409
|
-
} else return t.concat(r, mt(r, [], n));
|
|
410
|
-
}
|
|
411
|
-
function ht(e) {
|
|
412
|
-
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
413
|
-
}
|
|
414
|
-
//#endregion
|
|
415
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js
|
|
416
|
-
var gt = /* @__PURE__ */ n.createContext(void 0);
|
|
417
|
-
process.env.NODE_ENV !== "production" && (gt.displayName = "CompositeRootContext");
|
|
418
|
-
function _t(e = !1) {
|
|
419
|
-
let t = n.useContext(gt);
|
|
420
|
-
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? ue(16) : "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");
|
|
421
|
-
return t;
|
|
422
|
-
}
|
|
423
|
-
//#endregion
|
|
424
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js
|
|
425
|
-
function vt(e) {
|
|
426
|
-
let { focusableWhenDisabled: t, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = e, s = i && t !== !1, c = i && t === !1;
|
|
427
|
-
return { props: n.useMemo(() => {
|
|
428
|
-
let e = { onKeyDown(e) {
|
|
429
|
-
r && t && e.key !== "Tab" && e.preventDefault();
|
|
430
|
-
} };
|
|
431
|
-
return i || (e.tabIndex = a, !o && r && (e.tabIndex = t ? a : -1)), (o && (t || s) || !o && r) && (e["aria-disabled"] = r), o && (!t || c) && (e.disabled = r), e;
|
|
432
|
-
}, [
|
|
433
|
-
i,
|
|
434
|
-
r,
|
|
435
|
-
t,
|
|
436
|
-
s,
|
|
437
|
-
c,
|
|
438
|
-
o,
|
|
439
|
-
a
|
|
440
|
-
]) };
|
|
441
|
-
}
|
|
442
|
-
//#endregion
|
|
443
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/use-button/useButton.js
|
|
444
|
-
function yt(e = {}) {
|
|
445
|
-
let { disabled: t = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = e, s = n.useRef(null), c = _t(!0), l = o ?? c !== void 0, { props: u } = vt({
|
|
446
|
-
focusableWhenDisabled: r,
|
|
447
|
-
disabled: t,
|
|
448
|
-
composite: l,
|
|
449
|
-
tabIndex: i,
|
|
450
|
-
isNativeButton: a
|
|
451
|
-
});
|
|
452
|
-
process.env.NODE_ENV !== "production" && n.useEffect(() => {
|
|
453
|
-
if (!s.current) return;
|
|
454
|
-
let e = D(s.current);
|
|
455
|
-
a ? e || ee(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${qe.captureOwnerStack?.() || ""}`) : e && ee(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${qe.captureOwnerStack?.() || ""}`);
|
|
456
|
-
}, [a]);
|
|
457
|
-
let d = n.useCallback(() => {
|
|
458
|
-
let e = s.current;
|
|
459
|
-
D(e) && l && t && u.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
460
|
-
}, [
|
|
461
|
-
t,
|
|
462
|
-
u.disabled,
|
|
463
|
-
l
|
|
464
|
-
]);
|
|
465
|
-
return oe(d, [d]), {
|
|
466
|
-
getButtonProps: n.useCallback((e = {}) => {
|
|
467
|
-
let { onClick: n, onMouseDown: r, onKeyUp: i, onKeyDown: o, onPointerDown: s, ...c } = e;
|
|
468
|
-
return De({
|
|
469
|
-
type: a ? "button" : void 0,
|
|
470
|
-
onClick(e) {
|
|
471
|
-
if (t) {
|
|
472
|
-
e.preventDefault();
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
n?.(e);
|
|
476
|
-
},
|
|
477
|
-
onMouseDown(e) {
|
|
478
|
-
t || r?.(e);
|
|
479
|
-
},
|
|
480
|
-
onKeyDown(e) {
|
|
481
|
-
if (t || (C(e), o?.(e), e.baseUIHandlerPrevented)) return;
|
|
482
|
-
let r = e.target === e.currentTarget, i = e.currentTarget, s = D(i), c = !a && bt(i), u = r && (a ? s : !c), d = e.key === "Enter", f = e.key === " ", p = i.getAttribute("role"), m = p?.startsWith("menuitem") || p === "option" || p === "gridcell";
|
|
483
|
-
if (r && l && f) {
|
|
484
|
-
if (e.defaultPrevented && m) return;
|
|
485
|
-
e.preventDefault(), c || a && s ? (i.click(), e.preventBaseUIHandler()) : u && (n?.(e), e.preventBaseUIHandler());
|
|
486
|
-
return;
|
|
487
|
-
}
|
|
488
|
-
u && (!a && (f || d) && e.preventDefault(), !a && d && n?.(e));
|
|
489
|
-
},
|
|
490
|
-
onKeyUp(e) {
|
|
491
|
-
if (!t) {
|
|
492
|
-
if (C(e), i?.(e), e.target === e.currentTarget && a && l && D(e.currentTarget) && e.key === " ") {
|
|
493
|
-
e.preventDefault();
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
e.baseUIHandlerPrevented || e.target === e.currentTarget && !a && !l && e.key === " " && n?.(e);
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
onPointerDown(e) {
|
|
500
|
-
if (t) {
|
|
501
|
-
e.preventDefault();
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
s?.(e);
|
|
505
|
-
}
|
|
506
|
-
}, a ? void 0 : { role: "button" }, u, c);
|
|
507
|
-
}, [
|
|
508
|
-
t,
|
|
509
|
-
u,
|
|
510
|
-
l,
|
|
511
|
-
a
|
|
512
|
-
]),
|
|
513
|
-
buttonRef: re((e) => {
|
|
514
|
-
s.current = e, d();
|
|
515
|
-
})
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
function D(e) {
|
|
519
|
-
return $e(e) && e.tagName === "BUTTON";
|
|
520
|
-
}
|
|
521
|
-
function bt(e) {
|
|
522
|
-
return !!(e?.tagName === "A" && e?.href);
|
|
523
|
-
}
|
|
524
|
-
//#endregion
|
|
525
|
-
//#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
526
|
-
var xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, St = e, Ct = (e, t) => (n) => {
|
|
527
|
-
if (t?.variants == null) return St(e, n?.class, n?.className);
|
|
528
|
-
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
529
|
-
let t = n?.[e], a = i?.[e];
|
|
530
|
-
if (t === null) return null;
|
|
531
|
-
let o = xt(t) || xt(a);
|
|
532
|
-
return r[e][o];
|
|
533
|
-
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
534
|
-
let [n, r] = t;
|
|
535
|
-
return r === void 0 || (e[n] = r), e;
|
|
536
|
-
}, {});
|
|
537
|
-
return St(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
538
|
-
let { class: n, className: r, ...a } = t;
|
|
539
|
-
return Object.entries(a).every((e) => {
|
|
540
|
-
let [t, n] = e;
|
|
541
|
-
return Array.isArray(n) ? n.includes({
|
|
542
|
-
...i,
|
|
543
|
-
...o
|
|
544
|
-
}[t]) : {
|
|
545
|
-
...i,
|
|
546
|
-
...o
|
|
547
|
-
}[t] === n;
|
|
548
|
-
}) ? [
|
|
549
|
-
...e,
|
|
550
|
-
n,
|
|
551
|
-
r
|
|
552
|
-
] : e;
|
|
553
|
-
}, []), n?.class, n?.className);
|
|
554
|
-
}, wt = Ct("group flex items-center justify-start gap-sm rounded-xl border px-md py-sm transition-all [&>svg]:size-lg", {
|
|
555
|
-
variants: { tone: {
|
|
556
|
-
brand: "border-brand-border bg-brand-container [&_[data-description]]:text-brand-on-container-muted [&_[data-title]]:text-brand-on-container [&_svg]:text-brand-on-container",
|
|
557
|
-
accent: "border-accent-border bg-accent-container [&_[data-description]]:text-accent-on-container-muted [&_[data-title]]:text-accent-on-container [&_svg]:text-accent-on-container",
|
|
558
|
-
neutral: "border-neutral-border bg-neutral-container [&_[data-description]]:text-neutral-on-container-muted [&_[data-title]]:text-neutral-on-container [&_svg]:text-neutral-on-container",
|
|
559
|
-
error: "border-error-border bg-error-container [&_[data-description]]:text-error-on-container-muted [&_[data-title]]:text-error-on-container [&_svg]:text-error-on-container",
|
|
560
|
-
info: "border-info-border bg-info-container [&_[data-description]]:text-info-on-container-muted [&_[data-title]]:text-info-on-container [&_svg]:text-info-on-container",
|
|
561
|
-
success: "border-success-border bg-success-container [&_[data-description]]:text-success-on-container-muted [&_[data-title]]:text-success-on-container [&_svg]:text-success-on-container",
|
|
562
|
-
warning: "border-warning-border bg-warning-container [&_[data-description]]:text-warning-on-container-muted [&_[data-title]]:text-warning-on-container [&_svg]:text-warning-on-container"
|
|
563
|
-
} },
|
|
564
|
-
defaultVariants: { tone: "brand" }
|
|
565
|
-
}), Tt = ({ tone: e, className: n, children: r, ref: i, ...a }) => /* @__PURE__ */ m("div", {
|
|
566
|
-
className: t(wt({
|
|
567
|
-
tone: e,
|
|
568
|
-
className: n
|
|
569
|
-
})),
|
|
570
|
-
ref: i,
|
|
571
|
-
...a,
|
|
572
|
-
children: r
|
|
573
|
-
}), Et = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m("div", {
|
|
574
|
-
className: t("style-text-prose-0", e),
|
|
575
|
-
"data-description": !0,
|
|
576
|
-
ref: r,
|
|
577
|
-
...i,
|
|
578
|
-
children: n
|
|
579
|
-
}), Dt = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m("div", {
|
|
580
|
-
className: t("", e),
|
|
581
|
-
ref: r,
|
|
582
|
-
...i,
|
|
583
|
-
children: n
|
|
584
|
-
}), Ot = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
585
|
-
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } = yt({
|
|
586
|
-
disabled: i,
|
|
587
|
-
focusableWhenDisabled: a,
|
|
588
|
-
native: o
|
|
589
|
-
});
|
|
590
|
-
return Re("button", e, {
|
|
591
|
-
state: { disabled: i },
|
|
592
|
-
ref: [t, u],
|
|
593
|
-
props: [c, l]
|
|
594
|
-
});
|
|
595
|
-
});
|
|
596
|
-
process.env.NODE_ENV !== "production" && (Ot.displayName = "Button");
|
|
597
|
-
//#endregion
|
|
598
|
-
//#region src/components/button/button.types.ts
|
|
599
|
-
var kt = Ct("inline-flex cursor-pointer items-center justify-center rounded-full whitespace-nowrap transition-all select-none disabled:pointer-events-none disabled:opacity-50 [&>svg]:shrink-0", {
|
|
600
|
-
variants: {
|
|
601
|
-
tone: {
|
|
602
|
-
brand: "",
|
|
603
|
-
accent: "",
|
|
604
|
-
neutral: "",
|
|
605
|
-
error: "",
|
|
606
|
-
info: "",
|
|
607
|
-
warning: "",
|
|
608
|
-
success: ""
|
|
609
|
-
},
|
|
610
|
-
variant: {
|
|
611
|
-
fill: "active:scale-[0.98]",
|
|
612
|
-
outline: "border active:scale-[0.98]",
|
|
613
|
-
ghost: "active:scale-[0.98]",
|
|
614
|
-
soft: "border active:scale-[0.98]",
|
|
615
|
-
elevated: "shadow-xs not-active:hover:shadow-md"
|
|
616
|
-
},
|
|
617
|
-
size: {
|
|
618
|
-
large: "h-2xl gap-xs px-md style-text-default-2 [&>svg]:size-md",
|
|
619
|
-
medium: "h-xl gap-2xs px-sm style-text-default-0 [&>svg]:size-sm",
|
|
620
|
-
small: "h-lg gap-3xs px-xs style-text-default--1 [&>svg]:size-xs",
|
|
621
|
-
extraSmall: "h-md gap-3xs px-2xs style-text-default--2 [&>svg]:size-xs",
|
|
622
|
-
iconLarge: "size-2xl p-[0px] [&>svg]:size-md",
|
|
623
|
-
iconMedium: "size-xl p-[0px] [&>svg]:size-sm",
|
|
624
|
-
iconSmall: "size-lg p-[0px] [&>svg]:size-xs",
|
|
625
|
-
iconExtraSmall: "size-md p-[0px] [&>svg]:size-xs"
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
defaultVariants: {
|
|
629
|
-
tone: "brand",
|
|
630
|
-
variant: "fill",
|
|
631
|
-
size: "medium"
|
|
632
|
-
},
|
|
633
|
-
compoundVariants: [
|
|
634
|
-
{
|
|
635
|
-
variant: "fill",
|
|
636
|
-
tone: "brand",
|
|
637
|
-
className: "bg-brand-default text-brand-on-default hover:bg-brand-muted"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
variant: "fill",
|
|
641
|
-
tone: "accent",
|
|
642
|
-
className: "bg-accent-default text-accent-on-default hover:bg-accent-muted"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
variant: "fill",
|
|
646
|
-
tone: "neutral",
|
|
647
|
-
className: "bg-neutral-default text-neutral-on-default hover:bg-neutral-muted"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
variant: "fill",
|
|
651
|
-
tone: "error",
|
|
652
|
-
className: "bg-error-default text-error-on-default hover:bg-error-muted"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
variant: "fill",
|
|
656
|
-
tone: "info",
|
|
657
|
-
className: "bg-info-default text-info-on-default hover:bg-info-muted"
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
variant: "fill",
|
|
661
|
-
tone: "success",
|
|
662
|
-
className: "bg-success-default text-success-on-default hover:bg-success-muted"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
variant: "fill",
|
|
666
|
-
tone: "warning",
|
|
667
|
-
className: "bg-warning-default text-warning-on-default hover:bg-warning-muted"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
variant: "outline",
|
|
671
|
-
tone: "brand",
|
|
672
|
-
className: "border-brand-border text-brand-default hover:bg-brand-subtle hover:text-brand-on-container"
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
variant: "outline",
|
|
676
|
-
tone: "accent",
|
|
677
|
-
className: "border-accent-border text-accent-default hover:bg-accent-subtle hover:text-accent-on-container"
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
variant: "outline",
|
|
681
|
-
tone: "neutral",
|
|
682
|
-
className: "border-neutral-border text-neutral-default hover:bg-neutral-subtle hover:text-neutral-on-container"
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
variant: "outline",
|
|
686
|
-
tone: "error",
|
|
687
|
-
className: "border-error-border text-error-default hover:bg-error-subtle hover:text-error-on-container"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
variant: "outline",
|
|
691
|
-
tone: "info",
|
|
692
|
-
className: "border-info-border text-info-default hover:bg-info-subtle hover:text-info-on-container"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
variant: "outline",
|
|
696
|
-
tone: "success",
|
|
697
|
-
className: "border-success-border text-success-default hover:bg-success-subtle hover:text-success-on-container"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
variant: "outline",
|
|
701
|
-
tone: "warning",
|
|
702
|
-
className: "border-warning-border text-warning-default hover:bg-warning-subtle hover:text-warning-on-container"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
variant: "ghost",
|
|
706
|
-
tone: "brand",
|
|
707
|
-
className: "text-brand-default hover:bg-brand-subtle hover:text-brand-on-container"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
variant: "ghost",
|
|
711
|
-
tone: "accent",
|
|
712
|
-
className: "text-accent-default hover:bg-accent-subtle hover:text-accent-on-container"
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
variant: "ghost",
|
|
716
|
-
tone: "neutral",
|
|
717
|
-
className: "text-neutral-default hover:bg-neutral-subtle hover:text-neutral-on-container"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
variant: "ghost",
|
|
721
|
-
tone: "error",
|
|
722
|
-
className: "text-error-default hover:bg-error-subtle hover:text-error-on-container"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
variant: "ghost",
|
|
726
|
-
tone: "info",
|
|
727
|
-
className: "text-info-default hover:bg-info-subtle hover:text-info-on-container"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
variant: "ghost",
|
|
731
|
-
tone: "success",
|
|
732
|
-
className: "text-success-default hover:bg-success-subtle hover:text-success-on-container"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
variant: "ghost",
|
|
736
|
-
tone: "warning",
|
|
737
|
-
className: "text-warning-default hover:bg-warning-subtle hover:text-warning-on-container"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
variant: "soft",
|
|
741
|
-
tone: "brand",
|
|
742
|
-
className: "border-brand-border bg-brand-container text-brand-on-container hover:border-brand-border-strong hover:bg-brand-container-high"
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
variant: "soft",
|
|
746
|
-
tone: "accent",
|
|
747
|
-
className: "border-accent-border bg-accent-container text-accent-on-container hover:border-accent-border-strong hover:bg-accent-container-high"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
variant: "soft",
|
|
751
|
-
tone: "neutral",
|
|
752
|
-
className: "border-neutral-border bg-neutral-container text-neutral-on-container hover:border-neutral-border-strong hover:bg-neutral-container-high"
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
variant: "soft",
|
|
756
|
-
tone: "error",
|
|
757
|
-
className: "border-error-border bg-error-container text-error-on-container hover:border-error-border-strong hover:bg-error-container-high"
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
variant: "soft",
|
|
761
|
-
tone: "info",
|
|
762
|
-
className: "border-info-border bg-info-container text-info-on-container hover:border-info-border-strong hover:bg-info-container-high"
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
variant: "soft",
|
|
766
|
-
tone: "success",
|
|
767
|
-
className: "border-success-border bg-success-container text-success-on-container hover:border-success-border-strong hover:bg-success-container-high"
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
variant: "soft",
|
|
771
|
-
tone: "warning",
|
|
772
|
-
className: "border-warning-border bg-warning-container text-warning-on-container hover:border-warning-border-strong hover:bg-warning-container-high"
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
variant: "elevated",
|
|
776
|
-
tone: "brand",
|
|
777
|
-
className: "bg-brand-container text-brand-on-container not-active:hover:bg-brand-container-high"
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
variant: "elevated",
|
|
781
|
-
tone: "accent",
|
|
782
|
-
className: "bg-accent-container text-accent-on-container not-active:hover:bg-accent-container-high"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
variant: "elevated",
|
|
786
|
-
tone: "neutral",
|
|
787
|
-
className: "bg-surface-2 text-on-surface not-active:hover:bg-surface-3"
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
variant: "elevated",
|
|
791
|
-
tone: "error",
|
|
792
|
-
className: "bg-error-container text-error-on-container not-active:hover:bg-error-container-high"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
variant: "elevated",
|
|
796
|
-
tone: "info",
|
|
797
|
-
className: "bg-info-container text-info-on-container not-active:hover:bg-info-container-high"
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
variant: "elevated",
|
|
801
|
-
tone: "success",
|
|
802
|
-
className: "bg-success-container text-success-on-container not-active:hover:bg-success-container-high"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
variant: "elevated",
|
|
806
|
-
tone: "warning",
|
|
807
|
-
className: "bg-warning-container text-warning-on-container not-active:hover:bg-warning-container-high"
|
|
808
|
-
}
|
|
809
|
-
]
|
|
810
|
-
}), At = ({ tone: e, variant: n, size: r, className: i, children: a, ...o }) => /* @__PURE__ */ m(Ot, {
|
|
811
|
-
"data-size": r,
|
|
812
|
-
className: t(kt({
|
|
813
|
-
tone: e,
|
|
814
|
-
variant: n,
|
|
815
|
-
size: r,
|
|
816
|
-
className: i
|
|
817
|
-
})),
|
|
818
|
-
...o,
|
|
819
|
-
children: a
|
|
820
|
-
}), jt = /* @__PURE__ */ new Map([
|
|
821
|
-
["bold", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z" }))],
|
|
822
|
-
["duotone", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", {
|
|
823
|
-
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
824
|
-
opacity: "0.2"
|
|
825
|
-
}), /* @__PURE__ */ n.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))],
|
|
826
|
-
["fill", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z" }))],
|
|
827
|
-
["light", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z" }))],
|
|
828
|
-
["regular", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))],
|
|
829
|
-
["thin", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z" }))]
|
|
830
|
-
]), Mt = /* @__PURE__ */ new Map([
|
|
831
|
-
["bold", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))],
|
|
832
|
-
["duotone", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", {
|
|
833
|
-
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
834
|
-
opacity: "0.2"
|
|
835
|
-
}), /* @__PURE__ */ n.createElement("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))],
|
|
836
|
-
["fill", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))],
|
|
837
|
-
["light", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))],
|
|
838
|
-
["regular", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))],
|
|
839
|
-
["thin", /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))]
|
|
840
|
-
]), Nt = r({
|
|
841
|
-
color: "currentColor",
|
|
842
|
-
size: "1em",
|
|
843
|
-
weight: "regular",
|
|
844
|
-
mirrored: !1
|
|
845
|
-
}), Pt = n.forwardRef((e, t) => {
|
|
846
|
-
let { alt: r, color: i, size: a, weight: o, mirrored: s, children: c, weights: l, ...u } = e, { color: d = "currentColor", size: f, weight: p = "regular", mirrored: m = !1, ...h } = n.useContext(Nt);
|
|
847
|
-
return /* @__PURE__ */ n.createElement("svg", {
|
|
848
|
-
ref: t,
|
|
849
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
850
|
-
width: a ?? f,
|
|
851
|
-
height: a ?? f,
|
|
852
|
-
fill: i ?? d,
|
|
853
|
-
viewBox: "0 0 256 256",
|
|
854
|
-
transform: s || m ? "scale(-1, 1)" : void 0,
|
|
855
|
-
...h,
|
|
856
|
-
...u
|
|
857
|
-
}, !!r && /* @__PURE__ */ n.createElement("title", null, r), c, l.get(o ?? p));
|
|
858
|
-
});
|
|
859
|
-
Pt.displayName = "IconBase";
|
|
860
|
-
//#endregion
|
|
861
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/csr/CircleNotch.es.js
|
|
862
|
-
var Ft = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(Pt, {
|
|
863
|
-
ref: t,
|
|
864
|
-
...e,
|
|
865
|
-
weights: jt
|
|
866
|
-
}));
|
|
867
|
-
Ft.displayName = "CircleNotchIcon";
|
|
868
|
-
//#endregion
|
|
869
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/csr/XCircle.es.js
|
|
870
|
-
var It = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(Pt, {
|
|
871
|
-
ref: t,
|
|
872
|
-
...e,
|
|
873
|
-
weights: Mt
|
|
874
|
-
}));
|
|
875
|
-
It.displayName = "XCircleIcon";
|
|
876
|
-
//#endregion
|
|
877
|
-
//#region node_modules/.pnpm/@tanstack+store@0.9.3/node_modules/@tanstack/store/dist/esm/alien.js
|
|
878
|
-
var O = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e))(O || {});
|
|
879
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
880
|
-
function Lt({ update: e, notify: t, unwatched: n }) {
|
|
881
|
-
return {
|
|
882
|
-
link: r,
|
|
883
|
-
unlink: i,
|
|
884
|
-
propagate: a,
|
|
885
|
-
checkDirty: o,
|
|
886
|
-
shallowPropagate: s
|
|
887
|
-
};
|
|
888
|
-
function r(e, t, n) {
|
|
889
|
-
let r = t.depsTail;
|
|
890
|
-
if (r !== void 0 && r.dep === e) return;
|
|
891
|
-
let i = r === void 0 ? t.deps : r.nextDep;
|
|
892
|
-
if (i !== void 0 && i.dep === e) {
|
|
893
|
-
i.version = n, t.depsTail = i;
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
let a = e.subsTail;
|
|
897
|
-
if (a !== void 0 && a.version === n && a.sub === t) return;
|
|
898
|
-
let o = t.depsTail = e.subsTail = {
|
|
899
|
-
version: n,
|
|
900
|
-
dep: e,
|
|
901
|
-
sub: t,
|
|
902
|
-
prevDep: r,
|
|
903
|
-
nextDep: i,
|
|
904
|
-
prevSub: a,
|
|
905
|
-
nextSub: void 0
|
|
906
|
-
};
|
|
907
|
-
i !== void 0 && (i.prevDep = o), r === void 0 ? t.deps = o : r.nextDep = o, a === void 0 ? e.subs = o : a.nextSub = o;
|
|
908
|
-
}
|
|
909
|
-
function i(e, t = e.sub) {
|
|
910
|
-
let r = e.dep, i = e.prevDep, a = e.nextDep, o = e.nextSub, s = e.prevSub;
|
|
911
|
-
return a === void 0 ? t.depsTail = i : a.prevDep = i, i === void 0 ? t.deps = a : i.nextDep = a, o === void 0 ? r.subsTail = s : o.prevSub = s, s === void 0 ? (r.subs = o) === void 0 && n(r) : s.nextSub = o, a;
|
|
912
|
-
}
|
|
913
|
-
function a(e) {
|
|
914
|
-
let n = e.nextSub, r;
|
|
915
|
-
top: do {
|
|
916
|
-
let i = e.sub, a = i.flags;
|
|
917
|
-
if (a & 60 ? a & 12 ? a & 4 ? !(a & 48) && c(e, i) ? (i.flags = a | 40, a &= 1) : a = 0 : i.flags = a & -9 | 32 : a = 0 : i.flags = a | 32, a & 2 && t(i), a & 1) {
|
|
918
|
-
let t = i.subs;
|
|
919
|
-
if (t !== void 0) {
|
|
920
|
-
let i = (e = t).nextSub;
|
|
921
|
-
i !== void 0 && (r = {
|
|
922
|
-
value: n,
|
|
923
|
-
prev: r
|
|
924
|
-
}, n = i);
|
|
925
|
-
continue;
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
if ((e = n) !== void 0) {
|
|
929
|
-
n = e.nextSub;
|
|
930
|
-
continue;
|
|
931
|
-
}
|
|
932
|
-
for (; r !== void 0;) if (e = r.value, r = r.prev, e !== void 0) {
|
|
933
|
-
n = e.nextSub;
|
|
934
|
-
continue top;
|
|
935
|
-
}
|
|
936
|
-
break;
|
|
937
|
-
} while (!0);
|
|
938
|
-
}
|
|
939
|
-
function o(t, n) {
|
|
940
|
-
let r, i = 0, a = !1;
|
|
941
|
-
top: do {
|
|
942
|
-
let o = t.dep, c = o.flags;
|
|
943
|
-
if (n.flags & 16) a = !0;
|
|
944
|
-
else if ((c & 17) == 17) {
|
|
945
|
-
if (e(o)) {
|
|
946
|
-
let e = o.subs;
|
|
947
|
-
e.nextSub !== void 0 && s(e), a = !0;
|
|
948
|
-
}
|
|
949
|
-
} else if ((c & 33) == 33) {
|
|
950
|
-
(t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
|
|
951
|
-
value: t,
|
|
952
|
-
prev: r
|
|
953
|
-
}), t = o.deps, n = o, ++i;
|
|
954
|
-
continue;
|
|
955
|
-
}
|
|
956
|
-
if (!a) {
|
|
957
|
-
let e = t.nextDep;
|
|
958
|
-
if (e !== void 0) {
|
|
959
|
-
t = e;
|
|
960
|
-
continue;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
for (; i--;) {
|
|
964
|
-
let i = n.subs, o = i.nextSub !== void 0;
|
|
965
|
-
if (o ? (t = r.value, r = r.prev) : t = i, a) {
|
|
966
|
-
if (e(n)) {
|
|
967
|
-
o && s(i), n = t.sub;
|
|
968
|
-
continue;
|
|
969
|
-
}
|
|
970
|
-
a = !1;
|
|
971
|
-
} else n.flags &= -33;
|
|
972
|
-
n = t.sub;
|
|
973
|
-
let c = t.nextDep;
|
|
974
|
-
if (c !== void 0) {
|
|
975
|
-
t = c;
|
|
976
|
-
continue top;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
return a;
|
|
980
|
-
} while (!0);
|
|
981
|
-
}
|
|
982
|
-
function s(e) {
|
|
983
|
-
do {
|
|
984
|
-
let n = e.sub, r = n.flags;
|
|
985
|
-
(r & 48) == 32 && (n.flags = r | 16, (r & 6) == 2 && t(n));
|
|
986
|
-
} while ((e = e.nextSub) !== void 0);
|
|
987
|
-
}
|
|
988
|
-
function c(e, t) {
|
|
989
|
-
let n = t.depsTail;
|
|
990
|
-
for (; n !== void 0;) {
|
|
991
|
-
if (n === e) return !0;
|
|
992
|
-
n = n.prevDep;
|
|
993
|
-
}
|
|
994
|
-
return !1;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
//#endregion
|
|
998
|
-
//#region node_modules/.pnpm/@tanstack+store@0.9.3/node_modules/@tanstack/store/dist/esm/atom.js
|
|
999
|
-
function Rt(e, t, n) {
|
|
1000
|
-
let r = typeof e == "object", i = r ? e : void 0;
|
|
1001
|
-
return {
|
|
1002
|
-
next: (r ? e.next : e)?.bind(i),
|
|
1003
|
-
error: (r ? e.error : t)?.bind(i),
|
|
1004
|
-
complete: (r ? e.complete : n)?.bind(i)
|
|
1005
|
-
};
|
|
1006
|
-
}
|
|
1007
|
-
var zt = [], k = 0, { link: Bt, unlink: Vt, propagate: Ht, checkDirty: Ut, shallowPropagate: Wt } = /* @__PURE__ */ Lt({
|
|
1008
|
-
update(e) {
|
|
1009
|
-
return e._update();
|
|
1010
|
-
},
|
|
1011
|
-
notify(e) {
|
|
1012
|
-
zt[Gt++] = e, e.flags &= ~O.Watching;
|
|
1013
|
-
},
|
|
1014
|
-
unwatched(e) {
|
|
1015
|
-
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = O.Mutable | O.Dirty, qt(e));
|
|
1016
|
-
}
|
|
1017
|
-
}), A = 0, Gt = 0, j, Kt = 0;
|
|
1018
|
-
function M(e) {
|
|
1019
|
-
try {
|
|
1020
|
-
++Kt, e();
|
|
1021
|
-
} finally {
|
|
1022
|
-
--Kt || Jt();
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
function qt(e) {
|
|
1026
|
-
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
|
|
1027
|
-
for (; n !== void 0;) n = Vt(n, e);
|
|
1028
|
-
}
|
|
1029
|
-
function Jt() {
|
|
1030
|
-
if (!(Kt > 0)) {
|
|
1031
|
-
for (; A < Gt;) {
|
|
1032
|
-
let e = zt[A];
|
|
1033
|
-
zt[A++] = void 0, e.notify();
|
|
1034
|
-
}
|
|
1035
|
-
A = 0, Gt = 0;
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
function Yt(e, t) {
|
|
1039
|
-
let n = typeof e == "function", r = e, i = {
|
|
1040
|
-
_snapshot: n ? void 0 : e,
|
|
1041
|
-
subs: void 0,
|
|
1042
|
-
subsTail: void 0,
|
|
1043
|
-
deps: void 0,
|
|
1044
|
-
depsTail: void 0,
|
|
1045
|
-
flags: n ? O.None : O.Mutable,
|
|
1046
|
-
get() {
|
|
1047
|
-
return j !== void 0 && Bt(i, j, k), i._snapshot;
|
|
1048
|
-
},
|
|
1049
|
-
subscribe(e) {
|
|
1050
|
-
let t = Rt(e), n = { current: !1 }, r = Xt(() => {
|
|
1051
|
-
i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
|
|
1052
|
-
});
|
|
1053
|
-
return { unsubscribe: () => {
|
|
1054
|
-
r.stop();
|
|
1055
|
-
} };
|
|
1056
|
-
},
|
|
1057
|
-
_update(e) {
|
|
1058
|
-
let a = j, o = t?.compare ?? Object.is;
|
|
1059
|
-
if (n) j = i, ++k, i.depsTail = void 0;
|
|
1060
|
-
else if (e === void 0) return !1;
|
|
1061
|
-
n && (i.flags = O.Mutable | O.RecursedCheck);
|
|
1062
|
-
try {
|
|
1063
|
-
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
|
|
1064
|
-
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
|
|
1065
|
-
} finally {
|
|
1066
|
-
j = a, n && (i.flags &= ~O.RecursedCheck), qt(i);
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
};
|
|
1070
|
-
return n ? (i.flags = O.Mutable | O.Dirty, i.get = function() {
|
|
1071
|
-
let e = i.flags;
|
|
1072
|
-
if (e & O.Dirty || e & O.Pending && Ut(i.deps, i)) {
|
|
1073
|
-
if (i._update()) {
|
|
1074
|
-
let e = i.subs;
|
|
1075
|
-
e !== void 0 && Wt(e);
|
|
1076
|
-
}
|
|
1077
|
-
} else e & O.Pending && (i.flags = e & ~O.Pending);
|
|
1078
|
-
return j !== void 0 && Bt(i, j, k), i._snapshot;
|
|
1079
|
-
}) : i.set = function(e) {
|
|
1080
|
-
if (i._update(e)) {
|
|
1081
|
-
let e = i.subs;
|
|
1082
|
-
e !== void 0 && (Ht(e), Wt(e), Jt());
|
|
1083
|
-
}
|
|
1084
|
-
}, i;
|
|
1085
|
-
}
|
|
1086
|
-
function Xt(e) {
|
|
1087
|
-
let t = () => {
|
|
1088
|
-
let t = j;
|
|
1089
|
-
j = n, ++k, n.depsTail = void 0, n.flags = O.Watching | O.RecursedCheck;
|
|
1090
|
-
try {
|
|
1091
|
-
return e();
|
|
1092
|
-
} finally {
|
|
1093
|
-
j = t, n.flags &= ~O.RecursedCheck, qt(n);
|
|
1094
|
-
}
|
|
1095
|
-
}, n = {
|
|
1096
|
-
deps: void 0,
|
|
1097
|
-
depsTail: void 0,
|
|
1098
|
-
subs: void 0,
|
|
1099
|
-
subsTail: void 0,
|
|
1100
|
-
flags: O.Watching | O.RecursedCheck,
|
|
1101
|
-
notify() {
|
|
1102
|
-
let e = this.flags;
|
|
1103
|
-
e & O.Dirty || e & O.Pending && Ut(this.deps, this) ? t() : this.flags = O.Watching;
|
|
1104
|
-
},
|
|
1105
|
-
stop() {
|
|
1106
|
-
this.flags = O.None, this.depsTail = void 0, qt(this);
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
return t(), n;
|
|
1110
|
-
}
|
|
1111
|
-
//#endregion
|
|
1112
|
-
//#region node_modules/.pnpm/@tanstack+store@0.9.3/node_modules/@tanstack/store/dist/esm/store.js
|
|
1113
|
-
var Zt = class {
|
|
1114
|
-
constructor(e) {
|
|
1115
|
-
this.atom = Yt(e);
|
|
1116
|
-
}
|
|
1117
|
-
setState(e) {
|
|
1118
|
-
this.atom.set(e);
|
|
1119
|
-
}
|
|
1120
|
-
get state() {
|
|
1121
|
-
return this.atom.get();
|
|
1122
|
-
}
|
|
1123
|
-
get() {
|
|
1124
|
-
return this.state;
|
|
1125
|
-
}
|
|
1126
|
-
subscribe(e) {
|
|
1127
|
-
return this.atom.subscribe(Rt(e));
|
|
1128
|
-
}
|
|
1129
|
-
}, Qt = class {
|
|
1130
|
-
constructor(e) {
|
|
1131
|
-
this.atom = Yt(e);
|
|
1132
|
-
}
|
|
1133
|
-
get state() {
|
|
1134
|
-
return this.atom.get();
|
|
1135
|
-
}
|
|
1136
|
-
get() {
|
|
1137
|
-
return this.state;
|
|
1138
|
-
}
|
|
1139
|
-
subscribe(e) {
|
|
1140
|
-
return this.atom.subscribe(Rt(e));
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
|
-
function N(e) {
|
|
1144
|
-
return typeof e == "function" ? new Qt(e) : new Zt(e);
|
|
1145
|
-
}
|
|
1146
|
-
//#endregion
|
|
1147
|
-
//#region node_modules/.pnpm/@tanstack+pacer-lite@0.1.1/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js
|
|
1148
|
-
var $t = class {
|
|
1149
|
-
constructor(e, t) {
|
|
1150
|
-
this.fn = e, this.options = t, this.lastExecutionTime = 0, this.isPending = !1, this.maybeExecute = (...e) => {
|
|
1151
|
-
let t = Date.now() - this.lastExecutionTime;
|
|
1152
|
-
if (this.options.leading && t >= this.options.wait) this.execute(...e);
|
|
1153
|
-
else if (this.lastArgs = e, !this.timeoutId && this.options.trailing) {
|
|
1154
|
-
let e = this.options.wait - t;
|
|
1155
|
-
this.isPending = !0, this.timeoutId = setTimeout(() => {
|
|
1156
|
-
this.lastArgs !== void 0 && this.execute(...this.lastArgs);
|
|
1157
|
-
}, e);
|
|
1158
|
-
}
|
|
1159
|
-
}, this.execute = (...e) => {
|
|
1160
|
-
this.fn(...e), this.options.onExecute?.(e, this), this.lastExecutionTime = Date.now(), this.clearTimeout(), this.lastArgs = void 0, this.isPending = !1;
|
|
1161
|
-
}, this.flush = () => {
|
|
1162
|
-
this.isPending && this.lastArgs && this.execute(...this.lastArgs);
|
|
1163
|
-
}, this.cancel = () => {
|
|
1164
|
-
this.clearTimeout(), this.lastArgs = void 0, this.isPending = !1;
|
|
1165
|
-
}, this.clearTimeout = () => {
|
|
1166
|
-
this.timeoutId &&= (clearTimeout(this.timeoutId), void 0);
|
|
1167
|
-
}, this.options.leading === void 0 && this.options.trailing === void 0 && (this.options.leading = !0, this.options.trailing = !0);
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
|
-
function en(e, t) {
|
|
1171
|
-
return new $t(e, t).maybeExecute;
|
|
1172
|
-
}
|
|
1173
|
-
//#endregion
|
|
1174
|
-
//#region node_modules/.pnpm/@tanstack+devtools-event-client@0.4.3/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js
|
|
1175
|
-
var tn = class {
|
|
1176
|
-
#e = !0;
|
|
1177
|
-
#t;
|
|
1178
|
-
#n;
|
|
1179
|
-
#r;
|
|
1180
|
-
#i;
|
|
1181
|
-
#a;
|
|
1182
|
-
#o;
|
|
1183
|
-
#s;
|
|
1184
|
-
#c = 0;
|
|
1185
|
-
#l = 5;
|
|
1186
|
-
#u = !1;
|
|
1187
|
-
#d = !1;
|
|
1188
|
-
#f = null;
|
|
1189
|
-
#p = () => {
|
|
1190
|
-
this.debugLog("Connected to event bus"), this.#a = !0, this.#u = !1, this.debugLog("Emitting queued events", this.#i), this.#i.forEach((e) => this.emitEventToBus(e)), this.#i = [], this.stopConnectLoop(), this.#n().removeEventListener("tanstack-connect-success", this.#p);
|
|
1191
|
-
};
|
|
1192
|
-
#m = () => {
|
|
1193
|
-
if (this.#c < this.#l) {
|
|
1194
|
-
this.#c++, this.dispatchCustomEvent("tanstack-connect", {});
|
|
1195
|
-
return;
|
|
1196
|
-
}
|
|
1197
|
-
this.#n().removeEventListener("tanstack-connect", this.#m), this.#d = !0, this.debugLog("Max retries reached, giving up on connection"), this.stopConnectLoop();
|
|
1198
|
-
};
|
|
1199
|
-
#h = () => {
|
|
1200
|
-
this.#u || (this.#u = !0, this.#n().addEventListener("tanstack-connect-success", this.#p), this.#m());
|
|
1201
|
-
};
|
|
1202
|
-
constructor({ pluginId: e, debug: t = !1, enabled: n = !0, reconnectEveryMs: r = 300 }) {
|
|
1203
|
-
this.#t = e, this.#e = n, this.#n = this.getGlobalTarget, this.#r = t, this.debugLog(" Initializing event subscription for plugin", this.#t), this.#i = [], this.#a = !1, this.#d = !1, this.#o = null, this.#s = r;
|
|
1204
|
-
}
|
|
1205
|
-
startConnectLoop() {
|
|
1206
|
-
this.#o !== null || this.#a || (this.debugLog(`Starting connect loop (every ${this.#s}ms)`), this.#o = setInterval(this.#m, this.#s));
|
|
1207
|
-
}
|
|
1208
|
-
stopConnectLoop() {
|
|
1209
|
-
this.#u = !1, this.#o !== null && (clearInterval(this.#o), this.#o = null, this.#i = [], this.debugLog("Stopped connect loop"));
|
|
1210
|
-
}
|
|
1211
|
-
debugLog(...e) {
|
|
1212
|
-
this.#r && console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`, ...e);
|
|
1213
|
-
}
|
|
1214
|
-
getGlobalTarget() {
|
|
1215
|
-
if (typeof globalThis < "u" && globalThis.__TANSTACK_EVENT_TARGET__) return this.debugLog("Using global event target"), globalThis.__TANSTACK_EVENT_TARGET__;
|
|
1216
|
-
if (typeof window < "u" && window.addEventListener !== void 0) return this.debugLog("Using window as event target"), window;
|
|
1217
|
-
let e = typeof EventTarget < "u" ? new EventTarget() : void 0;
|
|
1218
|
-
return e === void 0 || e.addEventListener === void 0 ? (this.debugLog("No event mechanism available, running in non-web environment"), {
|
|
1219
|
-
addEventListener: () => {},
|
|
1220
|
-
removeEventListener: () => {},
|
|
1221
|
-
dispatchEvent: () => !1
|
|
1222
|
-
}) : (this.debugLog("Using new EventTarget as fallback"), e);
|
|
1223
|
-
}
|
|
1224
|
-
getPluginId() {
|
|
1225
|
-
return this.#t;
|
|
1226
|
-
}
|
|
1227
|
-
dispatchCustomEventShim(e, t) {
|
|
1228
|
-
try {
|
|
1229
|
-
let n = new Event(e, { detail: t });
|
|
1230
|
-
this.#n().dispatchEvent(n);
|
|
1231
|
-
} catch {
|
|
1232
|
-
this.debugLog("Failed to dispatch shim event");
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
dispatchCustomEvent(e, t) {
|
|
1236
|
-
try {
|
|
1237
|
-
this.#n().dispatchEvent(new CustomEvent(e, { detail: t }));
|
|
1238
|
-
} catch {
|
|
1239
|
-
this.dispatchCustomEventShim(e, t);
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
emitEventToBus(e) {
|
|
1243
|
-
this.debugLog("Emitting event to client bus", e), this.dispatchCustomEvent("tanstack-dispatch-event", e);
|
|
1244
|
-
}
|
|
1245
|
-
createEventPayload(e, t) {
|
|
1246
|
-
return {
|
|
1247
|
-
type: `${this.#t}:${e}`,
|
|
1248
|
-
payload: t,
|
|
1249
|
-
pluginId: this.#t
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
emit(e, t) {
|
|
1253
|
-
if (!this.#e) {
|
|
1254
|
-
this.debugLog("Event bus client is disabled, not emitting event", e, t);
|
|
1255
|
-
return;
|
|
1256
|
-
}
|
|
1257
|
-
if (this.#f && (this.debugLog("Emitting event to internal event target", e, t), this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`, { detail: this.createEventPayload(e, t) }))), this.#d) {
|
|
1258
|
-
this.debugLog("Previously failed to connect, not emitting to bus");
|
|
1259
|
-
return;
|
|
1260
|
-
}
|
|
1261
|
-
if (!this.#a) {
|
|
1262
|
-
this.debugLog("Bus not available, will be pushed as soon as connected"), this.#i.push(this.createEventPayload(e, t)), typeof CustomEvent < "u" && !this.#u && (this.#h(), this.startConnectLoop());
|
|
1263
|
-
return;
|
|
1264
|
-
}
|
|
1265
|
-
return this.emitEventToBus(this.createEventPayload(e, t));
|
|
1266
|
-
}
|
|
1267
|
-
on(e, t, n) {
|
|
1268
|
-
let r = n?.withEventTarget ?? !1, i = `${this.#t}:${e}`;
|
|
1269
|
-
if (r && (this.#f ||= new EventTarget(), this.#f.addEventListener(i, (e) => {
|
|
1270
|
-
t(e.detail);
|
|
1271
|
-
})), !this.#e) return this.debugLog("Event bus client is disabled, not registering event", i), () => {};
|
|
1272
|
-
let a = (e) => {
|
|
1273
|
-
this.debugLog("Received event from bus", e.detail), t(e.detail);
|
|
1274
|
-
};
|
|
1275
|
-
return this.#n().addEventListener(i, a), this.debugLog("Registered event to bus", i), () => {
|
|
1276
|
-
r && this.#f?.removeEventListener(i, a), this.#n().removeEventListener(i, a);
|
|
1277
|
-
};
|
|
1278
|
-
}
|
|
1279
|
-
onAll(e) {
|
|
1280
|
-
if (!this.#e) return this.debugLog("Event bus client is disabled, not registering event"), () => {};
|
|
1281
|
-
let t = (t) => {
|
|
1282
|
-
let n = t.detail;
|
|
1283
|
-
e(n);
|
|
1284
|
-
};
|
|
1285
|
-
return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
|
|
1286
|
-
}
|
|
1287
|
-
onAllPluginEvents(e) {
|
|
1288
|
-
if (!this.#e) return this.debugLog("Event bus client is disabled, not registering event"), () => {};
|
|
1289
|
-
let t = (t) => {
|
|
1290
|
-
let n = t.detail;
|
|
1291
|
-
this.#t && n.pluginId !== this.#t || e(n);
|
|
1292
|
-
};
|
|
1293
|
-
return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
|
|
1294
|
-
}
|
|
1295
|
-
}, P = new class extends tn {
|
|
1296
|
-
constructor() {
|
|
1297
|
-
super({
|
|
1298
|
-
pluginId: "form-devtools",
|
|
1299
|
-
reconnectEveryMs: 1e3
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
}();
|
|
1303
|
-
//#endregion
|
|
1304
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/utils.js
|
|
1305
|
-
function F(e, t) {
|
|
1306
|
-
return typeof e == "function" ? e(t) : e;
|
|
1307
|
-
}
|
|
1308
|
-
function I(e, t) {
|
|
1309
|
-
return z(t).reduce((e, t) => {
|
|
1310
|
-
if (e === null) return null;
|
|
1311
|
-
if (e !== void 0) return e[t];
|
|
1312
|
-
}, e);
|
|
1313
|
-
}
|
|
1314
|
-
function L(e, t, n) {
|
|
1315
|
-
let r = z(t);
|
|
1316
|
-
function i(e) {
|
|
1317
|
-
if (!r.length) return F(n, e);
|
|
1318
|
-
let t = r.shift();
|
|
1319
|
-
if (typeof t == "string" || typeof t == "number" && !Array.isArray(e)) return typeof e == "object" ? (e === null && (e = {}), {
|
|
1320
|
-
...e,
|
|
1321
|
-
[t]: i(e[t])
|
|
1322
|
-
}) : { [t]: i() };
|
|
1323
|
-
if (Array.isArray(e) && typeof t == "number") {
|
|
1324
|
-
let n = e.slice(0, t);
|
|
1325
|
-
return [
|
|
1326
|
-
...n.length ? n : Array(t),
|
|
1327
|
-
i(e[t]),
|
|
1328
|
-
...e.slice(t + 1)
|
|
1329
|
-
];
|
|
1330
|
-
}
|
|
1331
|
-
return [...Array(t), i()];
|
|
1332
|
-
}
|
|
1333
|
-
return i(e);
|
|
1334
|
-
}
|
|
1335
|
-
function nn(e, t) {
|
|
1336
|
-
let n = z(t);
|
|
1337
|
-
function r(e) {
|
|
1338
|
-
if (!e) return;
|
|
1339
|
-
if (n.length === 1) {
|
|
1340
|
-
let t = n[0];
|
|
1341
|
-
if (Array.isArray(e) && typeof t == "number") return e.filter((e, n) => n !== t);
|
|
1342
|
-
let { [t]: r, ...i } = e;
|
|
1343
|
-
return i;
|
|
1344
|
-
}
|
|
1345
|
-
let t = n.shift();
|
|
1346
|
-
if ((typeof t == "string" || typeof t == "number" && !Array.isArray(e)) && typeof e == "object") return {
|
|
1347
|
-
...e,
|
|
1348
|
-
[t]: r(e[t])
|
|
1349
|
-
};
|
|
1350
|
-
if (typeof t == "number" && Array.isArray(e)) {
|
|
1351
|
-
if (t >= e.length) return e;
|
|
1352
|
-
let n = e.slice(0, t);
|
|
1353
|
-
return [
|
|
1354
|
-
...n.length ? n : Array(t),
|
|
1355
|
-
r(e[t]),
|
|
1356
|
-
...e.slice(t + 1)
|
|
1357
|
-
];
|
|
1358
|
-
}
|
|
1359
|
-
throw Error("It seems we have created an infinite loop in deleteBy. ");
|
|
1360
|
-
}
|
|
1361
|
-
return r(e);
|
|
1362
|
-
}
|
|
1363
|
-
var rn = /^(\d+)$/gm, an = /\.(\d+)(?=\.)/gm, on = /^(\d+)\./gm, sn = /\.(\d+$)/gm, cn = /\.{2,}/gm, ln = "__int__", R = `${ln}$1`;
|
|
1364
|
-
function z(e) {
|
|
1365
|
-
if (Array.isArray(e)) return [...e];
|
|
1366
|
-
if (typeof e != "string") throw Error("Path must be a string.");
|
|
1367
|
-
return e.replace(/(^\[)|]/gm, "").replace(/\[/g, ".").replace(rn, R).replace(an, `.${R}.`).replace(on, `${R}.`).replace(sn, `.${R}`).replace(cn, ".").split(".").map((e) => {
|
|
1368
|
-
if (e.startsWith(ln)) {
|
|
1369
|
-
let t = e.substring(7), n = parseInt(t, 10);
|
|
1370
|
-
return String(n) === t ? n : t;
|
|
1371
|
-
}
|
|
1372
|
-
return e;
|
|
1373
|
-
});
|
|
1374
|
-
}
|
|
1375
|
-
function un(e, t) {
|
|
1376
|
-
return e.length === 0 ? t : t.length === 0 ? e : t.startsWith("[") || t.startsWith(".") ? e + t : `${e}.${t}`;
|
|
1377
|
-
}
|
|
1378
|
-
function dn(e) {
|
|
1379
|
-
return !(Array.isArray(e) && e.length === 0);
|
|
1380
|
-
}
|
|
1381
|
-
function fn(e, t) {
|
|
1382
|
-
return t.validationLogic({
|
|
1383
|
-
form: t.form,
|
|
1384
|
-
validators: t.validators,
|
|
1385
|
-
event: {
|
|
1386
|
-
type: e,
|
|
1387
|
-
fieldName: t.fieldName,
|
|
1388
|
-
async: !1
|
|
1389
|
-
},
|
|
1390
|
-
runValidation: (e) => e.validators.filter(Boolean).map((e) => ({
|
|
1391
|
-
cause: e.cause,
|
|
1392
|
-
validate: e.fn
|
|
1393
|
-
}))
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
function pn(e, t) {
|
|
1397
|
-
let { asyncDebounceMs: n } = t, { onBlurAsyncDebounceMs: r, onChangeAsyncDebounceMs: i, onDynamicAsyncDebounceMs: a } = t.validators || {}, o = n ?? 0;
|
|
1398
|
-
return t.validationLogic({
|
|
1399
|
-
form: t.form,
|
|
1400
|
-
validators: t.validators,
|
|
1401
|
-
event: {
|
|
1402
|
-
type: e,
|
|
1403
|
-
fieldName: t.fieldName,
|
|
1404
|
-
async: !0
|
|
1405
|
-
},
|
|
1406
|
-
runValidation: (t) => t.validators.filter(Boolean).map((t) => {
|
|
1407
|
-
let n = t?.cause || e, s = o;
|
|
1408
|
-
switch (n) {
|
|
1409
|
-
case "change":
|
|
1410
|
-
s = i ?? o;
|
|
1411
|
-
break;
|
|
1412
|
-
case "blur":
|
|
1413
|
-
s = r ?? o;
|
|
1414
|
-
break;
|
|
1415
|
-
case "dynamic":
|
|
1416
|
-
s = a ?? o;
|
|
1417
|
-
break;
|
|
1418
|
-
case "submit":
|
|
1419
|
-
s = 0;
|
|
1420
|
-
break;
|
|
1421
|
-
}
|
|
1422
|
-
return e === "submit" && (s = 0), {
|
|
1423
|
-
cause: n,
|
|
1424
|
-
validate: t.fn,
|
|
1425
|
-
debounceMs: s
|
|
1426
|
-
};
|
|
1427
|
-
})
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
var B = (e) => !!e && typeof e == "object" && "fields" in e;
|
|
1431
|
-
function V(e, t) {
|
|
1432
|
-
if (Object.is(e, t)) return !0;
|
|
1433
|
-
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
1434
|
-
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
1435
|
-
if (e instanceof Map && t instanceof Map) {
|
|
1436
|
-
if (e.size !== t.size) return !1;
|
|
1437
|
-
for (let [n, r] of e) if (!t.has(n) || !Object.is(r, t.get(n))) return !1;
|
|
1438
|
-
return !0;
|
|
1439
|
-
}
|
|
1440
|
-
if (e instanceof Set && t instanceof Set) {
|
|
1441
|
-
if (e.size !== t.size) return !1;
|
|
1442
|
-
for (let n of e) if (!t.has(n)) return !1;
|
|
1443
|
-
return !0;
|
|
1444
|
-
}
|
|
1445
|
-
let n = Object.keys(e), r = Object.keys(t);
|
|
1446
|
-
if (n.length !== r.length || n.length === 0 && !Array.isArray(e) && !Array.isArray(t) && (Object.getPrototypeOf(e) !== Object.prototype || Object.getPrototypeOf(t) !== Object.prototype)) return !1;
|
|
1447
|
-
for (let i of n) if (!r.includes(i) || !V(e[i], t[i])) return !1;
|
|
1448
|
-
return !0;
|
|
1449
|
-
}
|
|
1450
|
-
var mn = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previousErrorValue: n }) => e ? {
|
|
1451
|
-
newErrorValue: e,
|
|
1452
|
-
newSource: "form"
|
|
1453
|
-
} : t ? {
|
|
1454
|
-
newErrorValue: void 0,
|
|
1455
|
-
newSource: void 0
|
|
1456
|
-
} : n ? {
|
|
1457
|
-
newErrorValue: n,
|
|
1458
|
-
newSource: "field"
|
|
1459
|
-
} : {
|
|
1460
|
-
newErrorValue: void 0,
|
|
1461
|
-
newSource: void 0
|
|
1462
|
-
}, hn = ({ formLevelError: e, fieldLevelError: t }) => t ? {
|
|
1463
|
-
newErrorValue: t,
|
|
1464
|
-
newSource: "field"
|
|
1465
|
-
} : e ? {
|
|
1466
|
-
newErrorValue: e,
|
|
1467
|
-
newSource: "form"
|
|
1468
|
-
} : {
|
|
1469
|
-
newErrorValue: void 0,
|
|
1470
|
-
newSource: void 0
|
|
1471
|
-
};
|
|
1472
|
-
function H(e, t) {
|
|
1473
|
-
return e == null ? t : {
|
|
1474
|
-
...e,
|
|
1475
|
-
...t
|
|
1476
|
-
};
|
|
1477
|
-
}
|
|
1478
|
-
for (var U = 256, W = [], G; U--;) W[U] = (U + 256).toString(16).substring(1);
|
|
1479
|
-
function gn() {
|
|
1480
|
-
let e = 0, t, n = "";
|
|
1481
|
-
if (!G || U + 16 > 256) {
|
|
1482
|
-
for (G = Array(256), e = 256; e--;) G[e] = 256 * Math.random() | 0;
|
|
1483
|
-
e = 0, U = 0;
|
|
1484
|
-
}
|
|
1485
|
-
for (; e < 16; e++) t = G[U + e], e === 6 ? n += W[t & 15 | 64] : e === 8 ? n += W[t & 63 | 128] : n += W[t], e & 1 && e > 1 && e < 11 && (n += "-");
|
|
1486
|
-
return U++, n;
|
|
1487
|
-
}
|
|
1488
|
-
var _n = en((e) => P.emit("form-state", {
|
|
1489
|
-
id: e.formId,
|
|
1490
|
-
state: e.store.state
|
|
1491
|
-
}), { wait: 300 });
|
|
1492
|
-
function K(e) {
|
|
1493
|
-
if (typeof e != "object" || !e) return e;
|
|
1494
|
-
if (e instanceof Date) return new Date(e.getTime());
|
|
1495
|
-
if (Array.isArray(e)) {
|
|
1496
|
-
let t = [];
|
|
1497
|
-
for (let n = 0; n < e.length; n++) t[n] = K(e[n]);
|
|
1498
|
-
return t;
|
|
1499
|
-
}
|
|
1500
|
-
if (e instanceof Map) {
|
|
1501
|
-
let t = /* @__PURE__ */ new Map();
|
|
1502
|
-
return e.forEach((e, n) => {
|
|
1503
|
-
t.set(n, K(e));
|
|
1504
|
-
}), t;
|
|
1505
|
-
}
|
|
1506
|
-
if (e instanceof Set) {
|
|
1507
|
-
let t = /* @__PURE__ */ new Set();
|
|
1508
|
-
return e.forEach((e) => {
|
|
1509
|
-
t.add(K(e));
|
|
1510
|
-
}), t;
|
|
1511
|
-
}
|
|
1512
|
-
let t = {};
|
|
1513
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = K(e[n]));
|
|
1514
|
-
return t;
|
|
1515
|
-
}
|
|
1516
|
-
//#endregion
|
|
1517
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js
|
|
1518
|
-
var q = (e) => {
|
|
1519
|
-
if (!e.validators) return e.runValidation({
|
|
1520
|
-
validators: [],
|
|
1521
|
-
form: e.form
|
|
1522
|
-
});
|
|
1523
|
-
let t = e.event.async, n = t ? void 0 : {
|
|
1524
|
-
fn: e.validators.onMount,
|
|
1525
|
-
cause: "mount"
|
|
1526
|
-
}, r = {
|
|
1527
|
-
fn: t ? e.validators.onChangeAsync : e.validators.onChange,
|
|
1528
|
-
cause: "change"
|
|
1529
|
-
}, i = {
|
|
1530
|
-
fn: t ? e.validators.onBlurAsync : e.validators.onBlur,
|
|
1531
|
-
cause: "blur"
|
|
1532
|
-
}, a = {
|
|
1533
|
-
fn: t ? e.validators.onSubmitAsync : e.validators.onSubmit,
|
|
1534
|
-
cause: "submit"
|
|
1535
|
-
}, o = t ? void 0 : {
|
|
1536
|
-
fn: () => void 0,
|
|
1537
|
-
cause: "server"
|
|
1538
|
-
};
|
|
1539
|
-
switch (e.event.type) {
|
|
1540
|
-
case "mount": return e.runValidation({
|
|
1541
|
-
validators: [n],
|
|
1542
|
-
form: e.form
|
|
1543
|
-
});
|
|
1544
|
-
case "submit": return e.runValidation({
|
|
1545
|
-
validators: [
|
|
1546
|
-
r,
|
|
1547
|
-
i,
|
|
1548
|
-
a,
|
|
1549
|
-
o
|
|
1550
|
-
],
|
|
1551
|
-
form: e.form
|
|
1552
|
-
});
|
|
1553
|
-
case "server": return e.runValidation({
|
|
1554
|
-
validators: [],
|
|
1555
|
-
form: e.form
|
|
1556
|
-
});
|
|
1557
|
-
case "blur": return e.runValidation({
|
|
1558
|
-
validators: [i, o],
|
|
1559
|
-
form: e.form
|
|
1560
|
-
});
|
|
1561
|
-
case "change": return e.runValidation({
|
|
1562
|
-
validators: [r, o],
|
|
1563
|
-
form: e.form
|
|
1564
|
-
});
|
|
1565
|
-
default: throw Error(`Unknown validation event type: ${e.event.type}`);
|
|
1566
|
-
}
|
|
1567
|
-
};
|
|
1568
|
-
//#endregion
|
|
1569
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js
|
|
1570
|
-
function vn(e, t) {
|
|
1571
|
-
let n = /* @__PURE__ */ new Map();
|
|
1572
|
-
for (let r of e) {
|
|
1573
|
-
let e = r.path ?? [], i = t, a = "";
|
|
1574
|
-
for (let t = 0; t < e.length; t++) {
|
|
1575
|
-
let n = e[t];
|
|
1576
|
-
if (n === void 0) continue;
|
|
1577
|
-
let r = typeof n == "object" ? n.key : n, o = Number(r);
|
|
1578
|
-
Array.isArray(i) && !Number.isNaN(o) ? a += `[${o}]` : a += (t > 0 ? "." : "") + String(r), i = typeof i == "object" && i ? i[r] : void 0;
|
|
1579
|
-
}
|
|
1580
|
-
n.set(a, (n.get(a) ?? []).concat(r));
|
|
1581
|
-
}
|
|
1582
|
-
return Object.fromEntries(n);
|
|
1583
|
-
}
|
|
1584
|
-
var yn = (e, t) => {
|
|
1585
|
-
let n = vn(e, t);
|
|
1586
|
-
return {
|
|
1587
|
-
form: n,
|
|
1588
|
-
fields: n
|
|
1589
|
-
};
|
|
1590
|
-
}, J = {
|
|
1591
|
-
validate({ value: e, validationSource: t }, n) {
|
|
1592
|
-
let r = n["~standard"].validate(e);
|
|
1593
|
-
if (r instanceof Promise) throw Error("async function passed to sync validator");
|
|
1594
|
-
if (r.issues) return t === "field" ? r.issues : yn(r.issues, e);
|
|
1595
|
-
},
|
|
1596
|
-
async validateAsync({ value: e, validationSource: t }, n) {
|
|
1597
|
-
let r = await n["~standard"].validate(e);
|
|
1598
|
-
if (r.issues) return t === "field" ? r.issues : yn(r.issues, e);
|
|
1599
|
-
}
|
|
1600
|
-
}, bn = (e) => !!e && "~standard" in e, Y = {
|
|
1601
|
-
isValidating: !1,
|
|
1602
|
-
isTouched: !1,
|
|
1603
|
-
isBlurred: !1,
|
|
1604
|
-
isDirty: !1,
|
|
1605
|
-
isPristine: !0,
|
|
1606
|
-
isValid: !0,
|
|
1607
|
-
isDefaultValue: !0,
|
|
1608
|
-
errors: [],
|
|
1609
|
-
errorMap: {},
|
|
1610
|
-
errorSourceMap: {},
|
|
1611
|
-
_arrayVersion: 0
|
|
1612
|
-
};
|
|
1613
|
-
function X(e) {
|
|
1614
|
-
function t(t) {
|
|
1615
|
-
let n = e.getFieldMeta(t) ?? Y;
|
|
1616
|
-
e.setFieldMeta(t, {
|
|
1617
|
-
...n,
|
|
1618
|
-
_arrayVersion: (n._arrayVersion || 0) + 1
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
function n(n, r, i) {
|
|
1622
|
-
t(n);
|
|
1623
|
-
let a = s(n, r, "move", i), c = Math.min(r, i), u = Math.max(r, i);
|
|
1624
|
-
for (let e = c; e <= u; e++) a.push(o(n, e));
|
|
1625
|
-
let d = Object.keys(e.fieldInfo).reduce((t, i) => (i.startsWith(o(n, r)) && t.set(i, e.getFieldMeta(i)), t), /* @__PURE__ */ new Map());
|
|
1626
|
-
l(a, r < i ? "up" : "down"), Object.keys(e.fieldInfo).filter((e) => e.startsWith(o(n, i))).forEach((t) => {
|
|
1627
|
-
let a = t.replace(o(n, i), o(n, r)), s = d.get(a);
|
|
1628
|
-
s && e.setFieldMeta(t, s);
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
function r(e, n) {
|
|
1632
|
-
t(e), l(s(e, n, "remove"), "up");
|
|
1633
|
-
}
|
|
1634
|
-
function i(n, r, i) {
|
|
1635
|
-
t(n), s(n, r, "swap", i).forEach((t) => {
|
|
1636
|
-
if (!t.toString().startsWith(o(n, r))) return;
|
|
1637
|
-
let a = t.toString().replace(o(n, r), o(n, i)), [s, c] = [e.getFieldMeta(t), e.getFieldMeta(a)];
|
|
1638
|
-
s && e.setFieldMeta(a, s), c && e.setFieldMeta(t, c);
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
function a(n, r) {
|
|
1642
|
-
t(n);
|
|
1643
|
-
let i = s(n, r, "insert");
|
|
1644
|
-
l(i, "down"), i.forEach((t) => {
|
|
1645
|
-
t.toString().startsWith(o(n, r)) && e.setFieldMeta(t, u());
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
function o(e, t) {
|
|
1649
|
-
return `${e}[${t}]`;
|
|
1650
|
-
}
|
|
1651
|
-
function s(t, n, r, i) {
|
|
1652
|
-
let a = [o(t, n)];
|
|
1653
|
-
switch (r) {
|
|
1654
|
-
case "swap":
|
|
1655
|
-
a.push(o(t, i));
|
|
1656
|
-
break;
|
|
1657
|
-
case "move": {
|
|
1658
|
-
let [e, r] = [Math.min(n, i), Math.max(n, i)];
|
|
1659
|
-
for (let n = e; n <= r; n++) a.push(o(t, n));
|
|
1660
|
-
break;
|
|
1661
|
-
}
|
|
1662
|
-
default: {
|
|
1663
|
-
let r = e.getFieldValue(t), i = Array.isArray(r) ? r.length : 0;
|
|
1664
|
-
for (let e = n + 1; e < i; e++) a.push(o(t, e));
|
|
1665
|
-
break;
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
return Object.keys(e.fieldInfo).filter((e) => a.some((t) => e.startsWith(t)));
|
|
1669
|
-
}
|
|
1670
|
-
function c(e, t) {
|
|
1671
|
-
return e.replace(/\[(\d+)\]/, (e, n) => {
|
|
1672
|
-
let r = parseInt(n, 10);
|
|
1673
|
-
return `[${t === "up" ? r + 1 : Math.max(0, r - 1)}]`;
|
|
1674
|
-
});
|
|
1675
|
-
}
|
|
1676
|
-
function l(t, n) {
|
|
1677
|
-
(n === "up" ? t : [...t].reverse()).forEach((t) => {
|
|
1678
|
-
let r = c(t.toString(), n), i = e.getFieldMeta(r);
|
|
1679
|
-
i ? e.setFieldMeta(t, i) : e.setFieldMeta(t, u());
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
let u = () => Y;
|
|
1683
|
-
return {
|
|
1684
|
-
bumpArrayVersion: t,
|
|
1685
|
-
handleArrayMove: n,
|
|
1686
|
-
handleArrayRemove: r,
|
|
1687
|
-
handleArraySwap: i,
|
|
1688
|
-
handleArrayInsert: a
|
|
1689
|
-
};
|
|
1690
|
-
}
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/FormApi.js
|
|
1693
|
-
function xn(e) {
|
|
1694
|
-
return {
|
|
1695
|
-
values: e.values ?? {},
|
|
1696
|
-
errorMap: e.errorMap ?? {},
|
|
1697
|
-
fieldMetaBase: e.fieldMetaBase ?? {},
|
|
1698
|
-
isSubmitted: e.isSubmitted ?? !1,
|
|
1699
|
-
isSubmitting: e.isSubmitting ?? !1,
|
|
1700
|
-
isValidating: e.isValidating ?? !1,
|
|
1701
|
-
submissionAttempts: e.submissionAttempts ?? 0,
|
|
1702
|
-
isSubmitSuccessful: e.isSubmitSuccessful ?? !1,
|
|
1703
|
-
validationMetaMap: e.validationMetaMap ?? {
|
|
1704
|
-
onChange: void 0,
|
|
1705
|
-
onBlur: void 0,
|
|
1706
|
-
onSubmit: void 0,
|
|
1707
|
-
onMount: void 0,
|
|
1708
|
-
onServer: void 0,
|
|
1709
|
-
onDynamic: void 0
|
|
1710
|
-
}
|
|
1711
|
-
};
|
|
1712
|
-
}
|
|
1713
|
-
var Sn = class {
|
|
1714
|
-
constructor(e) {
|
|
1715
|
-
this.options = {}, this.fieldInfo = {}, this.mount = () => {
|
|
1716
|
-
let e = this.store.subscribe(() => {
|
|
1717
|
-
_n(this);
|
|
1718
|
-
}), t = P.on("request-form-state", (e) => {
|
|
1719
|
-
e.payload.id === this._formId && P.emit("form-api", {
|
|
1720
|
-
id: this._formId,
|
|
1721
|
-
state: this.store.state,
|
|
1722
|
-
options: this.options
|
|
1723
|
-
});
|
|
1724
|
-
}), n = P.on("request-form-reset", (e) => {
|
|
1725
|
-
e.payload.id === this._formId && this.reset();
|
|
1726
|
-
}), r = P.on("request-form-force-submit", (e) => {
|
|
1727
|
-
e.payload.id === this._formId && (this._devtoolsSubmissionOverride = !0, this.handleSubmit(), this._devtoolsSubmissionOverride = !1);
|
|
1728
|
-
}), i = () => {
|
|
1729
|
-
r(), n(), t(), e.unsubscribe(), P.emit("form-unmounted", { id: this._formId });
|
|
1730
|
-
};
|
|
1731
|
-
this.options.listeners?.onMount?.({ formApi: this });
|
|
1732
|
-
let { onMount: a } = this.options.validators || {};
|
|
1733
|
-
return P.emit("form-api", {
|
|
1734
|
-
id: this._formId,
|
|
1735
|
-
state: this.store.state,
|
|
1736
|
-
options: this.options
|
|
1737
|
-
}), a && this.validateSync("mount"), i;
|
|
1738
|
-
}, this.update = (e) => {
|
|
1739
|
-
if (!e) return;
|
|
1740
|
-
let t = this.options;
|
|
1741
|
-
this.options = e;
|
|
1742
|
-
let n = e.defaultValues && !V(e.defaultValues, t.defaultValues) && !this.state.isTouched, r = !V(e.defaultState, t.defaultState) && !this.state.isTouched;
|
|
1743
|
-
!n && !r || (M(() => {
|
|
1744
|
-
this.baseStore.setState(() => xn(Object.assign({}, this.state, r ? e.defaultState : {}, n ? { values: e.defaultValues } : {})));
|
|
1745
|
-
}), P.emit("form-api", {
|
|
1746
|
-
id: this._formId,
|
|
1747
|
-
state: this.store.state,
|
|
1748
|
-
options: this.options
|
|
1749
|
-
}));
|
|
1750
|
-
}, this.reset = (e, t) => {
|
|
1751
|
-
let { fieldMeta: n } = this.state, r = this.resetFieldMeta(n);
|
|
1752
|
-
e && !t?.keepDefaultValues && (this.options = {
|
|
1753
|
-
...this.options,
|
|
1754
|
-
defaultValues: e
|
|
1755
|
-
}), this.baseStore.setState(() => {
|
|
1756
|
-
let t = e ?? this.options.defaultValues ?? this.options.defaultState?.values;
|
|
1757
|
-
return e || Object.values(this.fieldInfo).forEach((e) => {
|
|
1758
|
-
e.instance && e.instance.options.defaultValue !== void 0 && (t = L(t, e.instance.name, e.instance.options.defaultValue));
|
|
1759
|
-
}), xn({
|
|
1760
|
-
...this.options.defaultState,
|
|
1761
|
-
values: t,
|
|
1762
|
-
fieldMetaBase: r
|
|
1763
|
-
});
|
|
1764
|
-
});
|
|
1765
|
-
}, this.validateAllFields = async (e) => {
|
|
1766
|
-
let t = [];
|
|
1767
|
-
return M(() => {
|
|
1768
|
-
Object.values(this.fieldInfo).forEach((n) => {
|
|
1769
|
-
if (!n.instance) return;
|
|
1770
|
-
let r = n.instance;
|
|
1771
|
-
t.push(Promise.resolve().then(() => r.validate(e, { skipFormValidation: !0 }))), n.instance.state.meta.isTouched || n.instance.setMeta((e) => ({
|
|
1772
|
-
...e,
|
|
1773
|
-
isTouched: !0
|
|
1774
|
-
}));
|
|
1775
|
-
});
|
|
1776
|
-
}), (await Promise.all(t)).flat();
|
|
1777
|
-
}, this.validateArrayFieldsStartingFrom = async (e, t, n) => {
|
|
1778
|
-
let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null, a = [`${e}[${t}]`];
|
|
1779
|
-
for (let n = t + 1; n <= (i ?? 0); n++) a.push(`${e}[${n}]`);
|
|
1780
|
-
let o = Object.keys(this.fieldInfo).filter((e) => a.some((t) => e.startsWith(t))), s = [];
|
|
1781
|
-
return M(() => {
|
|
1782
|
-
o.forEach((e) => {
|
|
1783
|
-
s.push(Promise.resolve().then(() => this.validateField(e, n)));
|
|
1784
|
-
});
|
|
1785
|
-
}), (await Promise.all(s)).flat();
|
|
1786
|
-
}, this.validateField = (e, t) => {
|
|
1787
|
-
let n = this.fieldInfo[e]?.instance;
|
|
1788
|
-
if (!n) {
|
|
1789
|
-
let { hasErrored: n } = this.validateSync(t);
|
|
1790
|
-
return n && !this.options.asyncAlways ? this.getFieldMeta(e)?.errors ?? [] : this.validateAsync(t).then(() => this.getFieldMeta(e)?.errors ?? []);
|
|
1791
|
-
}
|
|
1792
|
-
return n.state.meta.isTouched || n.setMeta((e) => ({
|
|
1793
|
-
...e,
|
|
1794
|
-
isTouched: !0
|
|
1795
|
-
})), n.validate(t);
|
|
1796
|
-
}, this.validateSync = (e) => {
|
|
1797
|
-
let t = fn(e, {
|
|
1798
|
-
...this.options,
|
|
1799
|
-
form: this,
|
|
1800
|
-
validationLogic: this.options.validationLogic || q
|
|
1801
|
-
}), n = !1, r = {};
|
|
1802
|
-
return M(() => {
|
|
1803
|
-
for (let e of t) {
|
|
1804
|
-
if (!e.validate) continue;
|
|
1805
|
-
let { formError: t, fieldErrors: i } = Cn(this.runValidator({
|
|
1806
|
-
validate: e.validate,
|
|
1807
|
-
value: {
|
|
1808
|
-
value: this.state.values,
|
|
1809
|
-
formApi: this,
|
|
1810
|
-
validationSource: "form"
|
|
1811
|
-
},
|
|
1812
|
-
type: "validate"
|
|
1813
|
-
})), a = Z(e.cause), o = /* @__PURE__ */ new Set([...Object.keys(this.state.fieldMeta), ...Object.keys(i || {})]);
|
|
1814
|
-
for (let e of o) {
|
|
1815
|
-
if (this.baseStore.state.fieldMetaBase[e] === void 0 && !i?.[e]) continue;
|
|
1816
|
-
let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? Y, o = i?.[e], { newErrorValue: s, newSource: c } = mn({
|
|
1817
|
-
newFormValidatorError: o,
|
|
1818
|
-
isPreviousErrorFromFormValidator: n?.[a] === "form",
|
|
1819
|
-
previousErrorValue: t?.[a]
|
|
1820
|
-
});
|
|
1821
|
-
c === "form" && (r[e] = {
|
|
1822
|
-
...r[e],
|
|
1823
|
-
[a]: o
|
|
1824
|
-
}), t?.[a] !== s && this.setFieldMeta(e, (e = Y) => ({
|
|
1825
|
-
...e,
|
|
1826
|
-
errorMap: {
|
|
1827
|
-
...e.errorMap,
|
|
1828
|
-
[a]: s
|
|
1829
|
-
},
|
|
1830
|
-
errorSourceMap: {
|
|
1831
|
-
...e.errorSourceMap,
|
|
1832
|
-
[a]: c
|
|
1833
|
-
}
|
|
1834
|
-
}));
|
|
1835
|
-
}
|
|
1836
|
-
this.state.errorMap?.[a] !== t && this.baseStore.setState((e) => ({
|
|
1837
|
-
...e,
|
|
1838
|
-
errorMap: {
|
|
1839
|
-
...e.errorMap,
|
|
1840
|
-
[a]: t
|
|
1841
|
-
}
|
|
1842
|
-
})), (t || i) && (n = !0);
|
|
1843
|
-
}
|
|
1844
|
-
let i = Z("submit");
|
|
1845
|
-
this.state.errorMap?.[i] && e !== "submit" && !n && this.baseStore.setState((e) => ({
|
|
1846
|
-
...e,
|
|
1847
|
-
errorMap: {
|
|
1848
|
-
...e.errorMap,
|
|
1849
|
-
[i]: void 0
|
|
1850
|
-
}
|
|
1851
|
-
}));
|
|
1852
|
-
let a = Z("server");
|
|
1853
|
-
this.state.errorMap?.[a] && e !== "server" && !n && this.baseStore.setState((e) => ({
|
|
1854
|
-
...e,
|
|
1855
|
-
errorMap: {
|
|
1856
|
-
...e.errorMap,
|
|
1857
|
-
[a]: void 0
|
|
1858
|
-
}
|
|
1859
|
-
}));
|
|
1860
|
-
}), {
|
|
1861
|
-
hasErrored: n,
|
|
1862
|
-
fieldsErrorMap: r
|
|
1863
|
-
};
|
|
1864
|
-
}, this.validateAsync = async (e) => {
|
|
1865
|
-
let t = pn(e, {
|
|
1866
|
-
...this.options,
|
|
1867
|
-
form: this,
|
|
1868
|
-
validationLogic: this.options.validationLogic || q
|
|
1869
|
-
});
|
|
1870
|
-
this.state.isFormValidating || this.baseStore.setState((e) => ({
|
|
1871
|
-
...e,
|
|
1872
|
-
isFormValidating: !0
|
|
1873
|
-
}));
|
|
1874
|
-
let n = [], r;
|
|
1875
|
-
for (let e of t) {
|
|
1876
|
-
if (!e.validate) continue;
|
|
1877
|
-
let t = Z(e.cause);
|
|
1878
|
-
this.state.validationMetaMap[t]?.lastAbortController.abort();
|
|
1879
|
-
let i = new AbortController();
|
|
1880
|
-
this.state.validationMetaMap[t] = { lastAbortController: i }, n.push(new Promise(async (t) => {
|
|
1881
|
-
let n;
|
|
1882
|
-
try {
|
|
1883
|
-
n = await new Promise((t, n) => {
|
|
1884
|
-
setTimeout(async () => {
|
|
1885
|
-
if (i.signal.aborted) return t(void 0);
|
|
1886
|
-
try {
|
|
1887
|
-
t(await this.runValidator({
|
|
1888
|
-
validate: e.validate,
|
|
1889
|
-
value: {
|
|
1890
|
-
value: this.state.values,
|
|
1891
|
-
formApi: this,
|
|
1892
|
-
validationSource: "form",
|
|
1893
|
-
signal: i.signal
|
|
1894
|
-
},
|
|
1895
|
-
type: "validateAsync"
|
|
1896
|
-
}));
|
|
1897
|
-
} catch (e) {
|
|
1898
|
-
n(e);
|
|
1899
|
-
}
|
|
1900
|
-
}, e.debounceMs);
|
|
1901
|
-
});
|
|
1902
|
-
} catch (e) {
|
|
1903
|
-
n = e;
|
|
1904
|
-
}
|
|
1905
|
-
let { formError: a, fieldErrors: o } = Cn(n);
|
|
1906
|
-
o && (r = r ? {
|
|
1907
|
-
...r,
|
|
1908
|
-
...o
|
|
1909
|
-
} : o);
|
|
1910
|
-
let s = Z(e.cause);
|
|
1911
|
-
for (let e of Object.keys(this.state.fieldMeta)) {
|
|
1912
|
-
if (this.baseStore.state.fieldMetaBase[e] === void 0) continue;
|
|
1913
|
-
let t = this.getFieldMeta(e);
|
|
1914
|
-
if (!t) continue;
|
|
1915
|
-
let { errorMap: n, errorSourceMap: i } = t, a = r?.[e], { newErrorValue: o, newSource: c } = mn({
|
|
1916
|
-
newFormValidatorError: a,
|
|
1917
|
-
isPreviousErrorFromFormValidator: i?.[s] === "form",
|
|
1918
|
-
previousErrorValue: n?.[s]
|
|
1919
|
-
});
|
|
1920
|
-
n?.[s] !== o && this.setFieldMeta(e, (e) => ({
|
|
1921
|
-
...e,
|
|
1922
|
-
errorMap: {
|
|
1923
|
-
...e.errorMap,
|
|
1924
|
-
[s]: o
|
|
1925
|
-
},
|
|
1926
|
-
errorSourceMap: {
|
|
1927
|
-
...e.errorSourceMap,
|
|
1928
|
-
[s]: c
|
|
1929
|
-
}
|
|
1930
|
-
}));
|
|
1931
|
-
}
|
|
1932
|
-
this.baseStore.setState((e) => ({
|
|
1933
|
-
...e,
|
|
1934
|
-
errorMap: {
|
|
1935
|
-
...e.errorMap,
|
|
1936
|
-
[s]: a
|
|
1937
|
-
}
|
|
1938
|
-
})), t(r ? {
|
|
1939
|
-
fieldErrors: r,
|
|
1940
|
-
errorMapKey: s
|
|
1941
|
-
} : void 0);
|
|
1942
|
-
}));
|
|
1943
|
-
}
|
|
1944
|
-
let i = [], a = {};
|
|
1945
|
-
if (n.length) {
|
|
1946
|
-
i = await Promise.all(n);
|
|
1947
|
-
for (let e of i) if (e?.fieldErrors) {
|
|
1948
|
-
let { errorMapKey: t } = e;
|
|
1949
|
-
for (let [n, r] of Object.entries(e.fieldErrors)) a[n] = {
|
|
1950
|
-
...a[n] || {},
|
|
1951
|
-
[t]: r
|
|
1952
|
-
};
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
|
-
return this.baseStore.setState((e) => ({
|
|
1956
|
-
...e,
|
|
1957
|
-
isFormValidating: !1
|
|
1958
|
-
})), a;
|
|
1959
|
-
}, this.validate = (e) => {
|
|
1960
|
-
let { hasErrored: t, fieldsErrorMap: n } = this.validateSync(e);
|
|
1961
|
-
return t && !this.options.asyncAlways ? n : this.validateAsync(e);
|
|
1962
|
-
}, this._handleSubmit = async (e) => {
|
|
1963
|
-
this.baseStore.setState((e) => ({
|
|
1964
|
-
...e,
|
|
1965
|
-
isSubmitted: !1,
|
|
1966
|
-
submissionAttempts: e.submissionAttempts + 1,
|
|
1967
|
-
isSubmitSuccessful: !1
|
|
1968
|
-
})), M(() => {
|
|
1969
|
-
Object.values(this.fieldInfo).forEach((e) => {
|
|
1970
|
-
e.instance && (e.instance.state.meta.isTouched || e.instance.setMeta((e) => ({
|
|
1971
|
-
...e,
|
|
1972
|
-
isTouched: !0
|
|
1973
|
-
})));
|
|
1974
|
-
});
|
|
1975
|
-
});
|
|
1976
|
-
let t = e ?? this.options.onSubmitMeta;
|
|
1977
|
-
if (!this.state.canSubmit && !this._devtoolsSubmissionOverride) {
|
|
1978
|
-
this.options.onSubmitInvalid?.({
|
|
1979
|
-
value: this.state.values,
|
|
1980
|
-
formApi: this,
|
|
1981
|
-
meta: t
|
|
1982
|
-
});
|
|
1983
|
-
return;
|
|
1984
|
-
}
|
|
1985
|
-
this.baseStore.setState((e) => ({
|
|
1986
|
-
...e,
|
|
1987
|
-
isSubmitting: !0
|
|
1988
|
-
}));
|
|
1989
|
-
let n = () => {
|
|
1990
|
-
this.baseStore.setState((e) => ({
|
|
1991
|
-
...e,
|
|
1992
|
-
isSubmitting: !1
|
|
1993
|
-
}));
|
|
1994
|
-
};
|
|
1995
|
-
if (await this.validateAllFields("submit"), !this.state.isFieldsValid) {
|
|
1996
|
-
n(), this.options.onSubmitInvalid?.({
|
|
1997
|
-
value: this.state.values,
|
|
1998
|
-
formApi: this,
|
|
1999
|
-
meta: t
|
|
2000
|
-
}), P.emit("form-submission", {
|
|
2001
|
-
id: this._formId,
|
|
2002
|
-
submissionAttempt: this.state.submissionAttempts,
|
|
2003
|
-
successful: !1,
|
|
2004
|
-
stage: "validateAllFields",
|
|
2005
|
-
errors: Object.values(this.state.fieldMeta).map((e) => e.errors).flat()
|
|
2006
|
-
});
|
|
2007
|
-
return;
|
|
2008
|
-
}
|
|
2009
|
-
if (await this.validate("submit"), !this.state.isValid) {
|
|
2010
|
-
n(), this.options.onSubmitInvalid?.({
|
|
2011
|
-
value: this.state.values,
|
|
2012
|
-
formApi: this,
|
|
2013
|
-
meta: t
|
|
2014
|
-
}), P.emit("form-submission", {
|
|
2015
|
-
id: this._formId,
|
|
2016
|
-
submissionAttempt: this.state.submissionAttempts,
|
|
2017
|
-
successful: !1,
|
|
2018
|
-
stage: "validate",
|
|
2019
|
-
errors: this.state.errors
|
|
2020
|
-
});
|
|
2021
|
-
return;
|
|
2022
|
-
}
|
|
2023
|
-
M(() => {
|
|
2024
|
-
Object.values(this.fieldInfo).forEach((e) => {
|
|
2025
|
-
e.instance?.options.listeners?.onSubmit?.({
|
|
2026
|
-
value: e.instance.state.value,
|
|
2027
|
-
fieldApi: e.instance
|
|
2028
|
-
});
|
|
2029
|
-
});
|
|
2030
|
-
}), this.options.listeners?.onSubmit?.({
|
|
2031
|
-
formApi: this,
|
|
2032
|
-
meta: t
|
|
2033
|
-
});
|
|
2034
|
-
try {
|
|
2035
|
-
await this.options.onSubmit?.({
|
|
2036
|
-
value: this.state.values,
|
|
2037
|
-
formApi: this,
|
|
2038
|
-
meta: t
|
|
2039
|
-
}), M(() => {
|
|
2040
|
-
this.baseStore.setState((e) => ({
|
|
2041
|
-
...e,
|
|
2042
|
-
isSubmitted: !0,
|
|
2043
|
-
isSubmitSuccessful: !0
|
|
2044
|
-
})), P.emit("form-submission", {
|
|
2045
|
-
id: this._formId,
|
|
2046
|
-
submissionAttempt: this.state.submissionAttempts,
|
|
2047
|
-
successful: !0
|
|
2048
|
-
}), n();
|
|
2049
|
-
});
|
|
2050
|
-
} catch (e) {
|
|
2051
|
-
throw this.baseStore.setState((e) => ({
|
|
2052
|
-
...e,
|
|
2053
|
-
isSubmitSuccessful: !1
|
|
2054
|
-
})), P.emit("form-submission", {
|
|
2055
|
-
id: this._formId,
|
|
2056
|
-
submissionAttempt: this.state.submissionAttempts,
|
|
2057
|
-
successful: !1,
|
|
2058
|
-
stage: "inflight",
|
|
2059
|
-
onError: e
|
|
2060
|
-
}), n(), e;
|
|
2061
|
-
}
|
|
2062
|
-
}, this.getFieldValue = (e) => I(this.state.values, e), this.getFieldMeta = (e) => this.state.fieldMeta[e], this.getFieldInfo = (e) => this.fieldInfo[e] ||= {
|
|
2063
|
-
instance: null,
|
|
2064
|
-
validationMetaMap: {
|
|
2065
|
-
onChange: void 0,
|
|
2066
|
-
onBlur: void 0,
|
|
2067
|
-
onSubmit: void 0,
|
|
2068
|
-
onMount: void 0,
|
|
2069
|
-
onServer: void 0,
|
|
2070
|
-
onDynamic: void 0
|
|
2071
|
-
}
|
|
2072
|
-
}, this.setFieldMeta = (e, t) => {
|
|
2073
|
-
this.baseStore.setState((n) => ({
|
|
2074
|
-
...n,
|
|
2075
|
-
fieldMetaBase: {
|
|
2076
|
-
...n.fieldMetaBase,
|
|
2077
|
-
[e]: F(t, n.fieldMetaBase[e])
|
|
2078
|
-
}
|
|
2079
|
-
}));
|
|
2080
|
-
}, this.resetFieldMeta = (e) => Object.keys(e).reduce((e, t) => {
|
|
2081
|
-
let n = t;
|
|
2082
|
-
return e[n] = Y, e;
|
|
2083
|
-
}, {}), this.setFieldValue = (e, t, n) => {
|
|
2084
|
-
let r = n?.dontUpdateMeta ?? !1, i = n?.dontRunListeners ?? !1, a = n?.dontValidate ?? !1;
|
|
2085
|
-
M(() => {
|
|
2086
|
-
r || this.setFieldMeta(e, (e) => ({
|
|
2087
|
-
...e,
|
|
2088
|
-
isTouched: !0,
|
|
2089
|
-
isDirty: !0,
|
|
2090
|
-
errorMap: {
|
|
2091
|
-
...e?.errorMap,
|
|
2092
|
-
onMount: void 0
|
|
2093
|
-
}
|
|
2094
|
-
})), this.baseStore.setState((n) => ({
|
|
2095
|
-
...n,
|
|
2096
|
-
values: L(n.values, e, t)
|
|
2097
|
-
}));
|
|
2098
|
-
}), i || this.getFieldInfo(e).instance?.triggerOnChangeListener(), a || this.validateField(e, "change");
|
|
2099
|
-
}, this.deleteField = (e) => {
|
|
2100
|
-
let t = [...Object.keys(this.fieldInfo).filter((t) => {
|
|
2101
|
-
let n = e.toString();
|
|
2102
|
-
return t !== n && t.startsWith(n);
|
|
2103
|
-
}), e];
|
|
2104
|
-
this.baseStore.setState((e) => {
|
|
2105
|
-
let n = { ...e };
|
|
2106
|
-
return t.forEach((e) => {
|
|
2107
|
-
n.values = nn(n.values, e), delete this.fieldInfo[e], delete n.fieldMetaBase[e];
|
|
2108
|
-
}), n;
|
|
2109
|
-
});
|
|
2110
|
-
}, this.pushFieldValue = (e, t, n) => {
|
|
2111
|
-
this.setFieldValue(e, (e) => [...Array.isArray(e) ? e : [], t], n), X(this).bumpArrayVersion(e);
|
|
2112
|
-
}, this.insertFieldValue = async (e, t, n, r) => {
|
|
2113
|
-
this.setFieldValue(e, (e) => [
|
|
2114
|
-
...e.slice(0, t),
|
|
2115
|
-
n,
|
|
2116
|
-
...e.slice(t)
|
|
2117
|
-
], H(r, { dontValidate: !0 }));
|
|
2118
|
-
let i = r?.dontValidate ?? !1;
|
|
2119
|
-
i || await this.validateField(e, "change"), X(this).handleArrayInsert(e, t), i || await this.validateArrayFieldsStartingFrom(e, t, "change");
|
|
2120
|
-
}, this.replaceFieldValue = async (e, t, n, r) => {
|
|
2121
|
-
this.setFieldValue(e, (e) => e.map((e, r) => r === t ? n : e), H(r, { dontValidate: !0 })), X(this).bumpArrayVersion(e), (r?.dontValidate ?? !1) || (await this.validateField(e, "change"), await this.validateArrayFieldsStartingFrom(e, t, "change"));
|
|
2122
|
-
}, this.removeFieldValue = async (e, t, n) => {
|
|
2123
|
-
let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null;
|
|
2124
|
-
if (this.setFieldValue(e, (e) => e.filter((e, n) => n !== t), H(n, { dontValidate: !0 })), X(this).handleArrayRemove(e, t), i !== null) {
|
|
2125
|
-
let t = `${e}[${i}]`;
|
|
2126
|
-
this.deleteField(t);
|
|
2127
|
-
}
|
|
2128
|
-
(n?.dontValidate ?? !1) || (await this.validateField(e, "change"), await this.validateArrayFieldsStartingFrom(e, t, "change"));
|
|
2129
|
-
}, this.swapFieldValues = (e, t, n, r) => {
|
|
2130
|
-
this.setFieldValue(e, (e) => {
|
|
2131
|
-
let r = e[t], i = e[n];
|
|
2132
|
-
return L(L(e, `${t}`, i), `${n}`, r);
|
|
2133
|
-
}, H(r, { dontValidate: !0 })), X(this).handleArraySwap(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
|
|
2134
|
-
}, this.moveFieldValues = (e, t, n, r) => {
|
|
2135
|
-
this.setFieldValue(e, (e) => {
|
|
2136
|
-
let r = [...e];
|
|
2137
|
-
return r.splice(n, 0, r.splice(t, 1)[0]), r;
|
|
2138
|
-
}, H(r, { dontValidate: !0 })), X(this).handleArrayMove(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
|
|
2139
|
-
}, this.clearFieldValues = (e, t) => {
|
|
2140
|
-
let n = this.getFieldValue(e), r = Array.isArray(n) ? Math.max(n.length - 1, 0) : null;
|
|
2141
|
-
if (this.setFieldValue(e, [], H(t, { dontValidate: !0 })), X(this).bumpArrayVersion(e), r !== null) for (let t = 0; t <= r; t++) {
|
|
2142
|
-
let n = `${e}[${t}]`;
|
|
2143
|
-
this.deleteField(n);
|
|
2144
|
-
}
|
|
2145
|
-
(t?.dontValidate ?? !1) || this.validateField(e, "change");
|
|
2146
|
-
}, this.resetField = (e) => {
|
|
2147
|
-
this.baseStore.setState((t) => {
|
|
2148
|
-
let n = this.getFieldInfo(e).instance?.options.defaultValue, r = I(this.options.defaultValues, e), i = n ?? r;
|
|
2149
|
-
return {
|
|
2150
|
-
...t,
|
|
2151
|
-
fieldMetaBase: {
|
|
2152
|
-
...t.fieldMetaBase,
|
|
2153
|
-
[e]: Y
|
|
2154
|
-
},
|
|
2155
|
-
values: i === void 0 ? t.values : L(t.values, e, i)
|
|
2156
|
-
};
|
|
2157
|
-
});
|
|
2158
|
-
}, this.setErrorMap = (e) => {
|
|
2159
|
-
M(() => {
|
|
2160
|
-
Object.entries(e).forEach(([e, t]) => {
|
|
2161
|
-
let n = e;
|
|
2162
|
-
if (B(t)) {
|
|
2163
|
-
let { formError: e, fieldErrors: r } = Cn(t);
|
|
2164
|
-
for (let e of Object.keys(this.fieldInfo)) this.getFieldMeta(e) && this.setFieldMeta(e, (t) => ({
|
|
2165
|
-
...t,
|
|
2166
|
-
errorMap: {
|
|
2167
|
-
...t.errorMap,
|
|
2168
|
-
[n]: r?.[e]
|
|
2169
|
-
},
|
|
2170
|
-
errorSourceMap: {
|
|
2171
|
-
...t.errorSourceMap,
|
|
2172
|
-
[n]: "form"
|
|
2173
|
-
}
|
|
2174
|
-
}));
|
|
2175
|
-
this.baseStore.setState((t) => ({
|
|
2176
|
-
...t,
|
|
2177
|
-
errorMap: {
|
|
2178
|
-
...t.errorMap,
|
|
2179
|
-
[n]: e
|
|
2180
|
-
}
|
|
2181
|
-
}));
|
|
2182
|
-
} else this.baseStore.setState((e) => ({
|
|
2183
|
-
...e,
|
|
2184
|
-
errorMap: {
|
|
2185
|
-
...e.errorMap,
|
|
2186
|
-
[n]: t
|
|
2187
|
-
}
|
|
2188
|
-
}));
|
|
2189
|
-
});
|
|
2190
|
-
});
|
|
2191
|
-
}, this.getAllErrors = () => ({
|
|
2192
|
-
form: {
|
|
2193
|
-
errors: this.state.errors,
|
|
2194
|
-
errorMap: this.state.errorMap
|
|
2195
|
-
},
|
|
2196
|
-
fields: Object.entries(this.state.fieldMeta).reduce((e, [t, n]) => (Object.keys(n).length && n.errors.length && (e[t] = {
|
|
2197
|
-
errors: n.errors,
|
|
2198
|
-
errorMap: n.errorMap
|
|
2199
|
-
}), e), {})
|
|
2200
|
-
}), this.parseValuesWithSchema = (e) => J.validate({
|
|
2201
|
-
value: this.state.values,
|
|
2202
|
-
validationSource: "form"
|
|
2203
|
-
}, e), this.parseValuesWithSchemaAsync = (e) => J.validateAsync({
|
|
2204
|
-
value: this.state.values,
|
|
2205
|
-
validationSource: "form"
|
|
2206
|
-
}, e), this.timeoutIds = {
|
|
2207
|
-
validations: {},
|
|
2208
|
-
listeners: {},
|
|
2209
|
-
formListeners: {}
|
|
2210
|
-
}, this._formId = e?.formId ?? gn(), this._devtoolsSubmissionOverride = !1;
|
|
2211
|
-
let t = xn({
|
|
2212
|
-
...e?.defaultState,
|
|
2213
|
-
values: e?.defaultValues ?? e?.defaultState?.values
|
|
2214
|
-
});
|
|
2215
|
-
if (e?.transform) {
|
|
2216
|
-
t = e.transform({ state: t }).state;
|
|
2217
|
-
for (let e of Object.keys(t.errorMap)) {
|
|
2218
|
-
let n = t.errorMap[e];
|
|
2219
|
-
if (!(n === void 0 || !B(n))) for (let r of Object.keys(n.fields)) {
|
|
2220
|
-
let i = n.fields[r];
|
|
2221
|
-
if (i === void 0) continue;
|
|
2222
|
-
let a = t.fieldMetaBase[r];
|
|
2223
|
-
t.fieldMetaBase[r] = {
|
|
2224
|
-
isTouched: !1,
|
|
2225
|
-
isValidating: !1,
|
|
2226
|
-
isBlurred: !1,
|
|
2227
|
-
isDirty: !1,
|
|
2228
|
-
_arrayVersion: 0,
|
|
2229
|
-
...a ?? {},
|
|
2230
|
-
errorSourceMap: {
|
|
2231
|
-
...a?.errorSourceMap ?? {},
|
|
2232
|
-
onChange: "form"
|
|
2233
|
-
},
|
|
2234
|
-
errorMap: {
|
|
2235
|
-
...a?.errorMap ?? {},
|
|
2236
|
-
[e]: i
|
|
2237
|
-
}
|
|
2238
|
-
};
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
this.baseStore = N(t);
|
|
2243
|
-
let n;
|
|
2244
|
-
this.fieldMetaDerived = N((e) => {
|
|
2245
|
-
let t = this.baseStore.get(), r = 0, i = {};
|
|
2246
|
-
for (let a of Object.keys(t.fieldMetaBase)) {
|
|
2247
|
-
let o = t.fieldMetaBase[a], s = n?.fieldMetaBase[a], c = e?.[a], l = I(t.values, a), u = c?.errors;
|
|
2248
|
-
if (!s || o.errorMap !== s.errorMap) {
|
|
2249
|
-
u = Object.values(o.errorMap ?? {}).filter((e) => e !== void 0);
|
|
2250
|
-
let e = this.getFieldInfo(a)?.instance;
|
|
2251
|
-
(!e || !e.options.disableErrorFlat) && (u = u.flat(1));
|
|
2252
|
-
}
|
|
2253
|
-
let d = !dn(u), f = !o.isDirty, p = V(l, this.getFieldInfo(a)?.instance?.options.defaultValue ?? I(this.options.defaultValues, a));
|
|
2254
|
-
if (c && c.isPristine === f && c.isValid === d && c.isDefaultValue === p && c.errors === u && o === s) {
|
|
2255
|
-
i[a] = c, r++;
|
|
2256
|
-
continue;
|
|
2257
|
-
}
|
|
2258
|
-
i[a] = {
|
|
2259
|
-
...o,
|
|
2260
|
-
errors: u ?? [],
|
|
2261
|
-
isPristine: f,
|
|
2262
|
-
isValid: d,
|
|
2263
|
-
isDefaultValue: p
|
|
2264
|
-
};
|
|
2265
|
-
}
|
|
2266
|
-
return Object.keys(t.fieldMetaBase).length ? e && r === Object.keys(t.fieldMetaBase).length ? e : (n = this.baseStore.get(), i) : i;
|
|
2267
|
-
});
|
|
2268
|
-
let r;
|
|
2269
|
-
this.store = N((e) => {
|
|
2270
|
-
let t = this.baseStore.get(), n = this.fieldMetaDerived.get(), i = Object.values(n).filter(Boolean), a = i.some((e) => e.isValidating), o = i.every((e) => e.isValid), s = i.some((e) => e.isTouched), c = i.some((e) => e.isBlurred), l = i.every((e) => e.isDefaultValue), u = s && t.errorMap?.onMount, d = i.some((e) => e.isDirty), f = !d, p = !!(t.errorMap?.onMount || i.some((e) => e?.errorMap?.onMount)), m = !!a, h = e?.errors ?? [];
|
|
2271
|
-
(!r || t.errorMap !== r.errorMap) && (h = Object.values(t.errorMap).reduce((e, t) => t === void 0 ? e : t && B(t) ? (e.push(t.form), e) : (e.push(t), e), []));
|
|
2272
|
-
let g = h.length === 0, _ = o && g, ee = this.options.canSubmitWhenInvalid ?? !1, te = t.submissionAttempts === 0 && !s && !p || !m && !t.isSubmitting && _ || ee, v = t.errorMap;
|
|
2273
|
-
if (u && (h = h.filter((e) => e !== t.errorMap.onMount), v = Object.assign(v, { onMount: void 0 })), e && r && e.errorMap === v && e.fieldMeta === this.fieldMetaDerived.state && e.errors === h && e.isFieldsValidating === a && e.isFieldsValid === o && e.isFormValid === g && e.isValid === _ && e.canSubmit === te && e.isTouched === s && e.isBlurred === c && e.isPristine === f && e.isDefaultValue === l && e.isDirty === d && V(r, t)) return e;
|
|
2274
|
-
let y = {
|
|
2275
|
-
...t,
|
|
2276
|
-
errorMap: v,
|
|
2277
|
-
fieldMeta: this.fieldMetaDerived.state,
|
|
2278
|
-
errors: h,
|
|
2279
|
-
isFieldsValidating: a,
|
|
2280
|
-
isFieldsValid: o,
|
|
2281
|
-
isFormValid: g,
|
|
2282
|
-
isValid: _,
|
|
2283
|
-
canSubmit: te,
|
|
2284
|
-
isTouched: s,
|
|
2285
|
-
isBlurred: c,
|
|
2286
|
-
isPristine: f,
|
|
2287
|
-
isDefaultValue: l,
|
|
2288
|
-
isDirty: d
|
|
2289
|
-
};
|
|
2290
|
-
return r = this.baseStore.get(), y;
|
|
2291
|
-
}), this.handleSubmit = this.handleSubmit.bind(this), this.update(e || {});
|
|
2292
|
-
}
|
|
2293
|
-
get state() {
|
|
2294
|
-
return this.store.state;
|
|
2295
|
-
}
|
|
2296
|
-
get formId() {
|
|
2297
|
-
return this._formId;
|
|
2298
|
-
}
|
|
2299
|
-
runValidator(e) {
|
|
2300
|
-
return bn(e.validate) ? J[e.type](e.value, e.validate) : e.validate(e.value);
|
|
2301
|
-
}
|
|
2302
|
-
handleSubmit(e) {
|
|
2303
|
-
return this._handleSubmit(e);
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
|
-
function Cn(e) {
|
|
2307
|
-
return e ? B(e) ? {
|
|
2308
|
-
formError: Cn(e.form).formError,
|
|
2309
|
-
fieldErrors: e.fields
|
|
2310
|
-
} : { formError: e } : { formError: void 0 };
|
|
2311
|
-
}
|
|
2312
|
-
function Z(e) {
|
|
2313
|
-
switch (e) {
|
|
2314
|
-
case "submit": return "onSubmit";
|
|
2315
|
-
case "blur": return "onBlur";
|
|
2316
|
-
case "mount": return "onMount";
|
|
2317
|
-
case "server": return "onServer";
|
|
2318
|
-
case "dynamic": return "onDynamic";
|
|
2319
|
-
default: return "onChange";
|
|
2320
|
-
}
|
|
2321
|
-
}
|
|
2322
|
-
//#endregion
|
|
2323
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/FieldApi.js
|
|
2324
|
-
var wn = class {
|
|
2325
|
-
constructor(e) {
|
|
2326
|
-
this.options = {}, this.mount = () => {
|
|
2327
|
-
this.options.defaultValue !== void 0 && !this.getMeta().isTouched && this.form.setFieldValue(this.name, this.options.defaultValue, { dontUpdateMeta: !0 });
|
|
2328
|
-
let e = this.getInfo();
|
|
2329
|
-
e.instance = this, this.update(this.options);
|
|
2330
|
-
let { onMount: t } = this.options.validators || {};
|
|
2331
|
-
if (t) {
|
|
2332
|
-
let e = this.runValidator({
|
|
2333
|
-
validate: t,
|
|
2334
|
-
value: {
|
|
2335
|
-
value: this.state.value,
|
|
2336
|
-
fieldApi: this,
|
|
2337
|
-
validationSource: "field"
|
|
2338
|
-
},
|
|
2339
|
-
type: "validate"
|
|
2340
|
-
});
|
|
2341
|
-
e && this.setMeta((t) => ({
|
|
2342
|
-
...t,
|
|
2343
|
-
errorMap: {
|
|
2344
|
-
...t?.errorMap,
|
|
2345
|
-
onMount: e
|
|
2346
|
-
},
|
|
2347
|
-
errorSourceMap: {
|
|
2348
|
-
...t?.errorSourceMap,
|
|
2349
|
-
onMount: "field"
|
|
2350
|
-
}
|
|
2351
|
-
}));
|
|
2352
|
-
}
|
|
2353
|
-
return this.options.listeners?.onMount?.({
|
|
2354
|
-
value: this.state.value,
|
|
2355
|
-
fieldApi: this
|
|
2356
|
-
}), () => {
|
|
2357
|
-
for (let [e, t] of Object.entries(this.timeoutIds.validations)) t && (clearTimeout(t), this.timeoutIds.validations[e] = null);
|
|
2358
|
-
for (let [e, t] of Object.entries(this.timeoutIds.listeners)) t && (clearTimeout(t), this.timeoutIds.listeners[e] = null);
|
|
2359
|
-
for (let [e, t] of Object.entries(this.timeoutIds.formListeners)) t && (clearTimeout(t), this.timeoutIds.formListeners[e] = null);
|
|
2360
|
-
let e = this.form.fieldInfo[this.name];
|
|
2361
|
-
if (e && e.instance === this) {
|
|
2362
|
-
for (let [t, n] of Object.entries(e.validationMetaMap)) n?.lastAbortController.abort(), e.validationMetaMap[t] = void 0;
|
|
2363
|
-
this.form.baseStore.setState((e) => ({
|
|
2364
|
-
...e,
|
|
2365
|
-
fieldMetaBase: {
|
|
2366
|
-
...e.fieldMetaBase,
|
|
2367
|
-
[this.name]: {
|
|
2368
|
-
...Y,
|
|
2369
|
-
isTouched: e.fieldMetaBase[this.name]?.isTouched ?? Y.isTouched,
|
|
2370
|
-
isBlurred: e.fieldMetaBase[this.name]?.isBlurred ?? Y.isBlurred,
|
|
2371
|
-
isDirty: e.fieldMetaBase[this.name]?.isDirty ?? Y.isDirty
|
|
2372
|
-
}
|
|
2373
|
-
}
|
|
2374
|
-
})), e.instance = null, this.options.listeners?.onUnmount?.({
|
|
2375
|
-
value: this.state.value,
|
|
2376
|
-
fieldApi: this
|
|
2377
|
-
}), this.form.options.listeners?.onFieldUnmount?.({
|
|
2378
|
-
formApi: this.form,
|
|
2379
|
-
fieldApi: this
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
};
|
|
2383
|
-
}, this.update = (e) => {
|
|
2384
|
-
this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (V(this.form.getFieldValue(this.name), e.defaultValue) || this.form.setFieldValue(this.name, e.defaultValue, {
|
|
2385
|
-
dontUpdateMeta: !0,
|
|
2386
|
-
dontValidate: !0,
|
|
2387
|
-
dontRunListeners: !0
|
|
2388
|
-
})), this.form.getFieldMeta(this.name) || this.form.setFieldMeta(this.name, this.state.meta);
|
|
2389
|
-
}, this.getValue = () => this.form.getFieldValue(this.name), this.setValue = (e, t) => {
|
|
2390
|
-
this.form.setFieldValue(this.name, e, H(t, {
|
|
2391
|
-
dontRunListeners: !0,
|
|
2392
|
-
dontValidate: !0
|
|
2393
|
-
})), t?.dontRunListeners || this.triggerOnChangeListener(), t?.dontValidate || this.validate("change");
|
|
2394
|
-
}, this.getMeta = () => this.store.state.meta, this.setMeta = (e) => this.form.setFieldMeta(this.name, e), this.getInfo = () => this.form.getFieldInfo(this.name), this.pushValue = (e, t) => {
|
|
2395
|
-
this.form.pushFieldValue(this.name, e, H(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
|
|
2396
|
-
}, this.insertValue = (e, t, n) => {
|
|
2397
|
-
this.form.insertFieldValue(this.name, e, t, H(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
|
|
2398
|
-
}, this.replaceValue = (e, t, n) => {
|
|
2399
|
-
this.form.replaceFieldValue(this.name, e, t, H(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
|
|
2400
|
-
}, this.removeValue = (e, t) => {
|
|
2401
|
-
this.form.removeFieldValue(this.name, e, H(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
|
|
2402
|
-
}, this.swapValues = (e, t, n) => {
|
|
2403
|
-
this.form.swapFieldValues(this.name, e, t, H(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
|
|
2404
|
-
}, this.moveValue = (e, t, n) => {
|
|
2405
|
-
this.form.moveFieldValues(this.name, e, t, H(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
|
|
2406
|
-
}, this.clearValues = (e) => {
|
|
2407
|
-
this.form.clearFieldValues(this.name, H(e, { dontRunListeners: !0 })), e?.dontRunListeners || this.triggerOnChangeListener();
|
|
2408
|
-
}, this.getLinkedFields = (e) => {
|
|
2409
|
-
let t = Object.values(this.form.fieldInfo), n = [];
|
|
2410
|
-
for (let r of t) {
|
|
2411
|
-
if (!r.instance) continue;
|
|
2412
|
-
let { onChangeListenTo: t, onBlurListenTo: i } = r.instance.options.validators || {};
|
|
2413
|
-
e === "change" && t?.includes(this.name) && n.push(r.instance), e === "blur" && i?.includes(this.name) && n.push(r.instance);
|
|
2414
|
-
}
|
|
2415
|
-
return n;
|
|
2416
|
-
}, this.validateSync = (e, t) => {
|
|
2417
|
-
let n = fn(e, {
|
|
2418
|
-
...this.options,
|
|
2419
|
-
form: this.form,
|
|
2420
|
-
fieldName: this.name,
|
|
2421
|
-
validationLogic: this.form.options.validationLogic || q
|
|
2422
|
-
}), r = this.getLinkedFields(e).reduce((t, n) => {
|
|
2423
|
-
let r = fn(e, {
|
|
2424
|
-
...n.options,
|
|
2425
|
-
form: n.form,
|
|
2426
|
-
fieldName: n.name,
|
|
2427
|
-
validationLogic: n.form.options.validationLogic || q
|
|
2428
|
-
});
|
|
2429
|
-
return r.forEach((e) => {
|
|
2430
|
-
e.field = n;
|
|
2431
|
-
}), t.concat(r);
|
|
2432
|
-
}, []), i = !1;
|
|
2433
|
-
M(() => {
|
|
2434
|
-
let e = (e, n) => {
|
|
2435
|
-
let r = En(n.cause), a = n.validate ? Tn(e.runValidator({
|
|
2436
|
-
validate: n.validate,
|
|
2437
|
-
value: {
|
|
2438
|
-
value: e.store.state.value,
|
|
2439
|
-
validationSource: "field",
|
|
2440
|
-
fieldApi: e
|
|
2441
|
-
},
|
|
2442
|
-
type: "validate"
|
|
2443
|
-
})) : void 0, o = t[r], { newErrorValue: s, newSource: c } = hn({
|
|
2444
|
-
formLevelError: o,
|
|
2445
|
-
fieldLevelError: a
|
|
2446
|
-
});
|
|
2447
|
-
e.state.meta.errorMap?.[r] !== s && e.setMeta((e) => ({
|
|
2448
|
-
...e,
|
|
2449
|
-
errorMap: {
|
|
2450
|
-
...e.errorMap,
|
|
2451
|
-
[r]: s
|
|
2452
|
-
},
|
|
2453
|
-
errorSourceMap: {
|
|
2454
|
-
...e.errorSourceMap,
|
|
2455
|
-
[r]: c
|
|
2456
|
-
}
|
|
2457
|
-
})), s && (i = !0);
|
|
2458
|
-
};
|
|
2459
|
-
for (let t of n) e(this, t);
|
|
2460
|
-
for (let t of r) t.validate && e(t.field, t);
|
|
2461
|
-
});
|
|
2462
|
-
let a = En("submit");
|
|
2463
|
-
return this.state.meta.errorMap?.[a] && e !== "submit" && !i && this.setMeta((e) => ({
|
|
2464
|
-
...e,
|
|
2465
|
-
errorMap: {
|
|
2466
|
-
...e.errorMap,
|
|
2467
|
-
[a]: void 0
|
|
2468
|
-
},
|
|
2469
|
-
errorSourceMap: {
|
|
2470
|
-
...e.errorSourceMap,
|
|
2471
|
-
[a]: void 0
|
|
2472
|
-
}
|
|
2473
|
-
})), { hasErrored: i };
|
|
2474
|
-
}, this.validateAsync = async (e, t) => {
|
|
2475
|
-
let n = pn(e, {
|
|
2476
|
-
...this.options,
|
|
2477
|
-
form: this.form,
|
|
2478
|
-
fieldName: this.name,
|
|
2479
|
-
validationLogic: this.form.options.validationLogic || q
|
|
2480
|
-
}), r = await t, i = this.getLinkedFields(e), a = i.reduce((t, n) => {
|
|
2481
|
-
let r = pn(e, {
|
|
2482
|
-
...n.options,
|
|
2483
|
-
form: n.form,
|
|
2484
|
-
fieldName: n.name,
|
|
2485
|
-
validationLogic: n.form.options.validationLogic || q
|
|
2486
|
-
});
|
|
2487
|
-
return r.forEach((e) => {
|
|
2488
|
-
e.field = n;
|
|
2489
|
-
}), t.concat(r);
|
|
2490
|
-
}, []), o = [], s = [], c = n.some((e) => e.validate) || a.some((e) => e.validate);
|
|
2491
|
-
if (c) {
|
|
2492
|
-
this.state.meta.isValidating || this.setMeta((e) => ({
|
|
2493
|
-
...e,
|
|
2494
|
-
isValidating: !0
|
|
2495
|
-
}));
|
|
2496
|
-
for (let e of i) e.setMeta((e) => ({
|
|
2497
|
-
...e,
|
|
2498
|
-
isValidating: !0
|
|
2499
|
-
}));
|
|
2500
|
-
}
|
|
2501
|
-
let l = (e, t, n) => {
|
|
2502
|
-
let i = En(t.cause), a = e.getInfo();
|
|
2503
|
-
a.validationMetaMap[i]?.lastAbortController.abort();
|
|
2504
|
-
let o = new AbortController();
|
|
2505
|
-
a.validationMetaMap[i] = { lastAbortController: o }, n.push(new Promise(async (n) => {
|
|
2506
|
-
let a;
|
|
2507
|
-
try {
|
|
2508
|
-
a = await new Promise((n, r) => {
|
|
2509
|
-
e.timeoutIds.validations[t.cause] && clearTimeout(e.timeoutIds.validations[t.cause]), e.timeoutIds.validations[t.cause] = setTimeout(async () => {
|
|
2510
|
-
if (o.signal.aborted) return n(void 0);
|
|
2511
|
-
try {
|
|
2512
|
-
n(await this.runValidator({
|
|
2513
|
-
validate: t.validate,
|
|
2514
|
-
value: {
|
|
2515
|
-
value: e.store.state.value,
|
|
2516
|
-
fieldApi: e,
|
|
2517
|
-
signal: o.signal,
|
|
2518
|
-
validationSource: "field"
|
|
2519
|
-
},
|
|
2520
|
-
type: "validateAsync"
|
|
2521
|
-
}));
|
|
2522
|
-
} catch (e) {
|
|
2523
|
-
r(e);
|
|
2524
|
-
}
|
|
2525
|
-
}, t.debounceMs);
|
|
2526
|
-
});
|
|
2527
|
-
} catch (e) {
|
|
2528
|
-
a = e;
|
|
2529
|
-
}
|
|
2530
|
-
if (o.signal.aborted) return n(void 0);
|
|
2531
|
-
let s = Tn(a), c = r[e.name]?.[i], { newErrorValue: l, newSource: u } = hn({
|
|
2532
|
-
formLevelError: c,
|
|
2533
|
-
fieldLevelError: s
|
|
2534
|
-
});
|
|
2535
|
-
if (e.getInfo().instance !== e) return n(void 0);
|
|
2536
|
-
e.setMeta((e) => ({
|
|
2537
|
-
...e,
|
|
2538
|
-
errorMap: {
|
|
2539
|
-
...e?.errorMap,
|
|
2540
|
-
[i]: l
|
|
2541
|
-
},
|
|
2542
|
-
errorSourceMap: {
|
|
2543
|
-
...e.errorSourceMap,
|
|
2544
|
-
[i]: u
|
|
2545
|
-
}
|
|
2546
|
-
})), n(l);
|
|
2547
|
-
}));
|
|
2548
|
-
};
|
|
2549
|
-
for (let e of n) e.validate && l(this, e, o);
|
|
2550
|
-
for (let e of a) e.validate && l(e.field, e, s);
|
|
2551
|
-
let u = [];
|
|
2552
|
-
if ((o.length || s.length) && (u = await Promise.all(o), await Promise.all(s)), c) {
|
|
2553
|
-
this.setMeta((e) => ({
|
|
2554
|
-
...e,
|
|
2555
|
-
isValidating: !1
|
|
2556
|
-
}));
|
|
2557
|
-
for (let e of i) e.setMeta((e) => ({
|
|
2558
|
-
...e,
|
|
2559
|
-
isValidating: !1
|
|
2560
|
-
}));
|
|
2561
|
-
}
|
|
2562
|
-
return u.filter(Boolean);
|
|
2563
|
-
}, this.validate = (e, t) => {
|
|
2564
|
-
if (!this.state.meta.isTouched) return [];
|
|
2565
|
-
let { fieldsErrorMap: n } = t?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(e), { hasErrored: r } = this.validateSync(e, n[this.name] ?? {});
|
|
2566
|
-
if (r && !this.options.asyncAlways) return this.getInfo().validationMetaMap[En(e)]?.lastAbortController.abort(), this.state.meta.errors;
|
|
2567
|
-
let i = t?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(e);
|
|
2568
|
-
return this.validateAsync(e, i);
|
|
2569
|
-
}, this.handleChange = (e) => {
|
|
2570
|
-
this.setValue(e);
|
|
2571
|
-
}, this.handleBlur = () => {
|
|
2572
|
-
this.state.meta.isTouched || this.setMeta((e) => ({
|
|
2573
|
-
...e,
|
|
2574
|
-
isTouched: !0
|
|
2575
|
-
})), this.state.meta.isBlurred || this.setMeta((e) => ({
|
|
2576
|
-
...e,
|
|
2577
|
-
isBlurred: !0
|
|
2578
|
-
})), this.validate("blur"), this.triggerOnBlurListener();
|
|
2579
|
-
}, this.setErrorMap = (e) => {
|
|
2580
|
-
this.setMeta((t) => ({
|
|
2581
|
-
...t,
|
|
2582
|
-
errorMap: {
|
|
2583
|
-
...t.errorMap,
|
|
2584
|
-
...e
|
|
2585
|
-
}
|
|
2586
|
-
}));
|
|
2587
|
-
}, this.parseValueWithSchema = (e) => J.validate({
|
|
2588
|
-
value: this.state.value,
|
|
2589
|
-
validationSource: "field"
|
|
2590
|
-
}, e), this.parseValueWithSchemaAsync = (e) => J.validateAsync({
|
|
2591
|
-
value: this.state.value,
|
|
2592
|
-
validationSource: "field"
|
|
2593
|
-
}, e), this.triggerOnChangeListener = () => {
|
|
2594
|
-
let e = this.form.options.listeners?.onChangeDebounceMs;
|
|
2595
|
-
e && e > 0 ? (this.timeoutIds.formListeners.change && clearTimeout(this.timeoutIds.formListeners.change), this.timeoutIds.formListeners.change = setTimeout(() => {
|
|
2596
|
-
this.form.options.listeners?.onChange?.({
|
|
2597
|
-
formApi: this.form,
|
|
2598
|
-
fieldApi: this
|
|
2599
|
-
});
|
|
2600
|
-
}, e)) : this.form.options.listeners?.onChange?.({
|
|
2601
|
-
formApi: this.form,
|
|
2602
|
-
fieldApi: this
|
|
2603
|
-
});
|
|
2604
|
-
let t = this.options.listeners?.onChangeDebounceMs;
|
|
2605
|
-
t && t > 0 ? (this.timeoutIds.listeners.change && clearTimeout(this.timeoutIds.listeners.change), this.timeoutIds.listeners.change = setTimeout(() => {
|
|
2606
|
-
this.options.listeners?.onChange?.({
|
|
2607
|
-
value: this.state.value,
|
|
2608
|
-
fieldApi: this
|
|
2609
|
-
});
|
|
2610
|
-
}, t)) : this.options.listeners?.onChange?.({
|
|
2611
|
-
value: this.state.value,
|
|
2612
|
-
fieldApi: this
|
|
2613
|
-
});
|
|
2614
|
-
}, this.form = e.form, this.name = e.name, this.options = e, this.timeoutIds = {
|
|
2615
|
-
validations: {},
|
|
2616
|
-
listeners: {},
|
|
2617
|
-
formListeners: {}
|
|
2618
|
-
}, this.store = N((t) => {
|
|
2619
|
-
this.form.store.get();
|
|
2620
|
-
let n = this.form.getFieldMeta(this.name) ?? {
|
|
2621
|
-
...Y,
|
|
2622
|
-
...e.defaultMeta
|
|
2623
|
-
}, r = this.form.getFieldValue(this.name);
|
|
2624
|
-
return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !V(r, this.options.defaultValue) && (r = this.options.defaultValue), t && t.value === r && t.meta === n ? t : {
|
|
2625
|
-
value: r,
|
|
2626
|
-
meta: n
|
|
2627
|
-
};
|
|
2628
|
-
});
|
|
2629
|
-
}
|
|
2630
|
-
get state() {
|
|
2631
|
-
return this.store.state;
|
|
2632
|
-
}
|
|
2633
|
-
runValidator(e) {
|
|
2634
|
-
return bn(e.validate) ? J[e.type](e.value, e.validate) : e.validate(e.value);
|
|
2635
|
-
}
|
|
2636
|
-
triggerOnBlurListener() {
|
|
2637
|
-
let e = this.form.options.listeners?.onBlurDebounceMs;
|
|
2638
|
-
e && e > 0 ? (this.timeoutIds.formListeners.blur && clearTimeout(this.timeoutIds.formListeners.blur), this.timeoutIds.formListeners.blur = setTimeout(() => {
|
|
2639
|
-
this.form.options.listeners?.onBlur?.({
|
|
2640
|
-
formApi: this.form,
|
|
2641
|
-
fieldApi: this
|
|
2642
|
-
});
|
|
2643
|
-
}, e)) : this.form.options.listeners?.onBlur?.({
|
|
2644
|
-
formApi: this.form,
|
|
2645
|
-
fieldApi: this
|
|
2646
|
-
});
|
|
2647
|
-
let t = this.options.listeners?.onBlurDebounceMs;
|
|
2648
|
-
t && t > 0 ? (this.timeoutIds.listeners.blur && clearTimeout(this.timeoutIds.listeners.blur), this.timeoutIds.listeners.blur = setTimeout(() => {
|
|
2649
|
-
this.options.listeners?.onBlur?.({
|
|
2650
|
-
value: this.state.value,
|
|
2651
|
-
fieldApi: this
|
|
2652
|
-
});
|
|
2653
|
-
}, t)) : this.options.listeners?.onBlur?.({
|
|
2654
|
-
value: this.state.value,
|
|
2655
|
-
fieldApi: this
|
|
2656
|
-
});
|
|
2657
|
-
}
|
|
2658
|
-
};
|
|
2659
|
-
function Tn(e) {
|
|
2660
|
-
if (e) return e;
|
|
2661
|
-
}
|
|
2662
|
-
function En(e) {
|
|
2663
|
-
switch (e) {
|
|
2664
|
-
case "submit": return "onSubmit";
|
|
2665
|
-
case "blur": return "onBlur";
|
|
2666
|
-
case "mount": return "onMount";
|
|
2667
|
-
case "server": return "onServer";
|
|
2668
|
-
case "dynamic": return "onDynamic";
|
|
2669
|
-
default: return "onChange";
|
|
2670
|
-
}
|
|
2671
|
-
}
|
|
2672
|
-
//#endregion
|
|
2673
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/FieldGroupApi.js
|
|
2674
|
-
var Dn = class e {
|
|
2675
|
-
constructor(t) {
|
|
2676
|
-
if (this.getFormFieldName = (e) => {
|
|
2677
|
-
if (typeof this.fieldsMap == "string") return un(this.fieldsMap, e);
|
|
2678
|
-
let t = z(e)[0];
|
|
2679
|
-
if (typeof t != "string") return "";
|
|
2680
|
-
let n = e.slice(t.length), r = this.fieldsMap[t];
|
|
2681
|
-
return un(r, n);
|
|
2682
|
-
}, this.getFormFieldOptions = (e) => {
|
|
2683
|
-
let t = { ...e }, n = t.validators;
|
|
2684
|
-
if (t.name = this.getFormFieldName(e.name), n && (n.onChangeListenTo || n.onBlurListenTo)) {
|
|
2685
|
-
let e = { ...n }, r = (e) => {
|
|
2686
|
-
if (e) return e.map((e) => this.getFormFieldName(e));
|
|
2687
|
-
};
|
|
2688
|
-
e.onChangeListenTo = r(n.onChangeListenTo), e.onBlurListenTo = r(n.onBlurListenTo), t.validators = e;
|
|
2689
|
-
}
|
|
2690
|
-
return t;
|
|
2691
|
-
}, this.mount = () => () => {}, this.validateArrayFieldsStartingFrom = async (e, t, n) => this.form.validateArrayFieldsStartingFrom(this.getFormFieldName(e), t, n), this.validateField = (e, t) => this.form.validateField(this.getFormFieldName(e), t), this.getFieldValue = (e) => this.form.getFieldValue(this.getFormFieldName(e)), this.getFieldMeta = (e) => this.form.getFieldMeta(this.getFormFieldName(e)), this.setFieldMeta = (e, t) => this.form.setFieldMeta(this.getFormFieldName(e), t), this.setFieldValue = (e, t, n) => this.form.setFieldValue(this.getFormFieldName(e), t, n), this.deleteField = (e) => this.form.deleteField(this.getFormFieldName(e)), this.pushFieldValue = (e, t, n) => this.form.pushFieldValue(this.getFormFieldName(e), t, n), this.insertFieldValue = async (e, t, n, r) => this.form.insertFieldValue(this.getFormFieldName(e), t, n, r), this.replaceFieldValue = async (e, t, n, r) => this.form.replaceFieldValue(this.getFormFieldName(e), t, n, r), this.removeFieldValue = async (e, t, n) => this.form.removeFieldValue(this.getFormFieldName(e), t, n), this.swapFieldValues = (e, t, n, r) => this.form.swapFieldValues(this.getFormFieldName(e), t, n, r), this.moveFieldValues = (e, t, n, r) => this.form.moveFieldValues(this.getFormFieldName(e), t, n, r), this.clearFieldValues = (e, t) => this.form.clearFieldValues(this.getFormFieldName(e), t), this.resetField = (e) => this.form.resetField(this.getFormFieldName(e)), this.validateAllFields = (e) => this.form.validateAllFields(e), t.form instanceof e) {
|
|
2692
|
-
let e = t.form;
|
|
2693
|
-
if (this.form = e.form, typeof t.fields == "string") this.fieldsMap = e.getFormFieldName(t.fields);
|
|
2694
|
-
else {
|
|
2695
|
-
let n = { ...t.fields };
|
|
2696
|
-
for (let t in n) n[t] = e.getFormFieldName(n[t]);
|
|
2697
|
-
this.fieldsMap = n;
|
|
2698
|
-
}
|
|
2699
|
-
} else this.form = t.form, this.fieldsMap = t.fields;
|
|
2700
|
-
this.store = N(() => {
|
|
2701
|
-
let e = this.form.store.get(), t;
|
|
2702
|
-
if (typeof this.fieldsMap == "string") t = I(e.values, this.fieldsMap);
|
|
2703
|
-
else {
|
|
2704
|
-
t = {};
|
|
2705
|
-
let n = this.fieldsMap;
|
|
2706
|
-
for (let r in n) t[r] = I(e.values, n[r]);
|
|
2707
|
-
}
|
|
2708
|
-
return { values: t };
|
|
2709
|
-
});
|
|
2710
|
-
}
|
|
2711
|
-
get state() {
|
|
2712
|
-
return this.store.state;
|
|
2713
|
-
}
|
|
2714
|
-
async handleSubmit(e) {
|
|
2715
|
-
return this.form.handleSubmit(e);
|
|
2716
|
-
}
|
|
2717
|
-
};
|
|
2718
|
-
//#endregion
|
|
2719
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.32.0/node_modules/@tanstack/form-core/dist/esm/transform.js
|
|
2720
|
-
function On(e, t) {
|
|
2721
|
-
if (!t) return;
|
|
2722
|
-
let n = Object.assign({}, e, { state: K(e.state) });
|
|
2723
|
-
t(n), n.fieldInfo !== e.fieldInfo && (e.fieldInfo = n.fieldInfo), n.options !== e.options && (e.options = n.options);
|
|
2724
|
-
let r = Object.keys({
|
|
2725
|
-
values: null,
|
|
2726
|
-
validationMetaMap: null,
|
|
2727
|
-
fieldMetaBase: null,
|
|
2728
|
-
isSubmitting: null,
|
|
2729
|
-
isSubmitted: null,
|
|
2730
|
-
isValidating: null,
|
|
2731
|
-
submissionAttempts: null,
|
|
2732
|
-
isSubmitSuccessful: null,
|
|
2733
|
-
_force_re_eval: null
|
|
2734
|
-
}).reduce((t, r) => (e.state[r] !== n.state[r] && (t[r] = n.state[r]), t), {});
|
|
2735
|
-
return M(() => {
|
|
2736
|
-
Object.keys(r).length && e.baseStore.setState((e) => ({
|
|
2737
|
-
...e,
|
|
2738
|
-
...r
|
|
2739
|
-
})), n.state.errorMap !== e.state.errorMap && e.setErrorMap(n.state.errorMap);
|
|
2740
|
-
}), n;
|
|
2741
|
-
}
|
|
2742
|
-
//#endregion
|
|
2743
|
-
//#region node_modules/.pnpm/@tanstack+react-store@0.9.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-store/dist/esm/useStore.js
|
|
2744
|
-
function kn(e, t) {
|
|
2745
|
-
return e === t;
|
|
2746
|
-
}
|
|
2747
|
-
function Q(e, t, n = kn) {
|
|
2748
|
-
let r = o((t) => {
|
|
2749
|
-
if (!e) return () => {};
|
|
2750
|
-
let { unsubscribe: n } = e.subscribe(t);
|
|
2751
|
-
return n;
|
|
2752
|
-
}, [e]), i = o(() => e?.get(), [e]);
|
|
2753
|
-
return g(r, i, i, t, n);
|
|
2754
|
-
}
|
|
2755
|
-
//#endregion
|
|
2756
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
|
|
2757
|
-
var $ = typeof window < "u" ? l : c;
|
|
2758
|
-
//#endregion
|
|
2759
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useField.js
|
|
2760
|
-
function An(e) {
|
|
2761
|
-
let [t, n] = f(() => ({
|
|
2762
|
-
form: e.form,
|
|
2763
|
-
name: e.name
|
|
2764
|
-
})), [r, i] = f(() => new wn({ ...e }));
|
|
2765
|
-
(t.form !== e.form || t.name !== e.name) && (i(new wn({ ...e })), n({
|
|
2766
|
-
form: e.form,
|
|
2767
|
-
name: e.name
|
|
2768
|
-
}));
|
|
2769
|
-
let a = Q(r.store, e.mode === "array" ? (e) => e.meta._arrayVersion || 0 : (e) => e.value), o = Q(r.store, (e) => e.meta.isTouched), s = Q(r.store, (e) => e.meta.isBlurred), c = Q(r.store, (e) => e.meta.isDirty), l = Q(r.store, (e) => e.meta.errorMap), d = Q(r.store, (e) => e.meta.errorSourceMap), p = Q(r.store, (e) => e.meta.isValidating), m = u(() => ({
|
|
2770
|
-
...r,
|
|
2771
|
-
get state() {
|
|
2772
|
-
return {
|
|
2773
|
-
value: e.mode === "array" ? r.state.value : a,
|
|
2774
|
-
get meta() {
|
|
2775
|
-
return {
|
|
2776
|
-
...r.state.meta,
|
|
2777
|
-
isTouched: o,
|
|
2778
|
-
isBlurred: s,
|
|
2779
|
-
isDirty: c,
|
|
2780
|
-
errorMap: l,
|
|
2781
|
-
errorSourceMap: d,
|
|
2782
|
-
isValidating: p
|
|
2783
|
-
};
|
|
2784
|
-
}
|
|
2785
|
-
};
|
|
2786
|
-
}
|
|
2787
|
-
}), [
|
|
2788
|
-
r,
|
|
2789
|
-
e.mode,
|
|
2790
|
-
a,
|
|
2791
|
-
o,
|
|
2792
|
-
s,
|
|
2793
|
-
c,
|
|
2794
|
-
l,
|
|
2795
|
-
d,
|
|
2796
|
-
p
|
|
2797
|
-
]);
|
|
2798
|
-
return $(r.mount, [r]), $(() => {
|
|
2799
|
-
r.update(e);
|
|
2800
|
-
}), m;
|
|
2801
|
-
}
|
|
2802
|
-
var jn = (({ children: e, ...t }) => {
|
|
2803
|
-
let n = An(t);
|
|
2804
|
-
return /* @__PURE__ */ m(p, { children: u(() => F(e, n), [e, n]) });
|
|
2805
|
-
});
|
|
2806
|
-
//#endregion
|
|
2807
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useUUID.js
|
|
2808
|
-
function Mn() {
|
|
2809
|
-
return f(() => gn())[0];
|
|
2810
|
-
}
|
|
2811
|
-
//#endregion
|
|
2812
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useFormId.js
|
|
2813
|
-
var Nn = n, Pn = n.version.split(".")[0] === "17" ? Mn : Nn.useId;
|
|
2814
|
-
//#endregion
|
|
2815
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useForm.js
|
|
2816
|
-
function Fn({ form: e, selector: t = (e) => e, children: n }) {
|
|
2817
|
-
return /* @__PURE__ */ m(p, { children: F(n, Q(e.store, t)) });
|
|
2818
|
-
}
|
|
2819
|
-
function In(e) {
|
|
2820
|
-
let t = Pn(), [n, r] = f(e?.formId), [i, a] = f(() => new Sn({
|
|
2821
|
-
...e,
|
|
2822
|
-
formId: e?.formId ?? t
|
|
2823
|
-
}));
|
|
2824
|
-
if (n !== e?.formId) {
|
|
2825
|
-
let n = e?.formId ?? t;
|
|
2826
|
-
a(new Sn({
|
|
2827
|
-
...e,
|
|
2828
|
-
formId: n
|
|
2829
|
-
})), r(n);
|
|
2830
|
-
}
|
|
2831
|
-
let o = u(() => {
|
|
2832
|
-
let e = {
|
|
2833
|
-
...i,
|
|
2834
|
-
handleSubmit: ((...e) => i._handleSubmit(...e)),
|
|
2835
|
-
get formId() {
|
|
2836
|
-
return i._formId;
|
|
2837
|
-
},
|
|
2838
|
-
get state() {
|
|
2839
|
-
return i.store.state;
|
|
2840
|
-
}
|
|
2841
|
-
};
|
|
2842
|
-
return e.Field = function(e) {
|
|
2843
|
-
return /* @__PURE__ */ m(jn, {
|
|
2844
|
-
...e,
|
|
2845
|
-
form: i
|
|
2846
|
-
});
|
|
2847
|
-
}, e.Subscribe = function(e) {
|
|
2848
|
-
return /* @__PURE__ */ m(Fn, {
|
|
2849
|
-
form: i,
|
|
2850
|
-
selector: e.selector,
|
|
2851
|
-
children: e.children
|
|
2852
|
-
});
|
|
2853
|
-
}, e;
|
|
2854
|
-
}, [i]);
|
|
2855
|
-
$(i.mount, []), $(() => {
|
|
2856
|
-
i.update(e);
|
|
2857
|
-
});
|
|
2858
|
-
let s = d(!1);
|
|
2859
|
-
return $(() => {
|
|
2860
|
-
s.current && e?.transform && On(i, e.transform);
|
|
2861
|
-
}, [i, e?.transform]), $(() => {
|
|
2862
|
-
s.current = !0;
|
|
2863
|
-
}), o;
|
|
2864
|
-
}
|
|
2865
|
-
//#endregion
|
|
2866
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
|
|
2867
|
-
function Ln({ lens: e, selector: t = (e) => e, children: n }) {
|
|
2868
|
-
return /* @__PURE__ */ m(p, { children: F(n, Q(e.store, t)) });
|
|
2869
|
-
}
|
|
2870
|
-
function Rn(e) {
|
|
2871
|
-
let [t] = f(() => {
|
|
2872
|
-
let n = new Dn(e), r = e.form instanceof Dn ? e.form.form : e.form, i = n;
|
|
2873
|
-
return i.AppForm = function(e) {
|
|
2874
|
-
return /* @__PURE__ */ m(r.AppForm, { ...e });
|
|
2875
|
-
}, i.AppField = function(e) {
|
|
2876
|
-
return /* @__PURE__ */ m(r.AppField, { ...t.getFormFieldOptions(e) });
|
|
2877
|
-
}, i.Field = function(e) {
|
|
2878
|
-
return /* @__PURE__ */ m(r.Field, { ...t.getFormFieldOptions(e) });
|
|
2879
|
-
}, i.Subscribe = function(e) {
|
|
2880
|
-
return /* @__PURE__ */ m(Ln, {
|
|
2881
|
-
lens: t,
|
|
2882
|
-
selector: e.selector,
|
|
2883
|
-
children: e.children
|
|
2884
|
-
});
|
|
2885
|
-
}, Object.assign(i, { ...e.formComponents });
|
|
2886
|
-
});
|
|
2887
|
-
return $(t.mount, [t]), t;
|
|
2888
|
-
}
|
|
2889
|
-
//#endregion
|
|
2890
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.32.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/createFormHook.js
|
|
2891
|
-
var zn = r(null), Bn = r(null);
|
|
2892
|
-
function Vn() {
|
|
2893
|
-
let e = s(Bn);
|
|
2894
|
-
if (!e) throw Error("`formContext` only works when within a `formComponent` passed to `createFormHook`");
|
|
2895
|
-
return e;
|
|
2896
|
-
}
|
|
2897
|
-
function Hn() {
|
|
2898
|
-
function e() {
|
|
2899
|
-
let e = s(zn);
|
|
2900
|
-
if (!e) throw Error("`fieldContext` only works when within a `fieldComponent` passed to `createFormHook`");
|
|
2901
|
-
return e;
|
|
2902
|
-
}
|
|
2903
|
-
return {
|
|
2904
|
-
fieldContext: zn,
|
|
2905
|
-
useFieldContext: e,
|
|
2906
|
-
useFormContext: Vn,
|
|
2907
|
-
formContext: Bn
|
|
2908
|
-
};
|
|
2909
|
-
}
|
|
2910
|
-
function Un({ fieldComponents: e, fieldContext: t, formContext: n, formComponents: r }) {
|
|
2911
|
-
function i(i) {
|
|
2912
|
-
let a = In(i), o = u(() => ({ children: e }) => /* @__PURE__ */ m(n.Provider, {
|
|
2913
|
-
value: a,
|
|
2914
|
-
children: e
|
|
2915
|
-
}), [a]), s = u(() => (({ children: n, ...r }) => /* @__PURE__ */ m(a.Field, {
|
|
2916
|
-
...r,
|
|
2917
|
-
children: (r) => /* @__PURE__ */ m(t.Provider, {
|
|
2918
|
-
value: r,
|
|
2919
|
-
children: n(Object.assign(r, e))
|
|
2920
|
-
})
|
|
2921
|
-
})), [a]);
|
|
2922
|
-
return u(() => Object.assign(a, {
|
|
2923
|
-
AppField: s,
|
|
2924
|
-
AppForm: o,
|
|
2925
|
-
...r
|
|
2926
|
-
}), [
|
|
2927
|
-
a,
|
|
2928
|
-
s,
|
|
2929
|
-
o
|
|
2930
|
-
]);
|
|
2931
|
-
}
|
|
2932
|
-
function a({ render: e, props: t }) {
|
|
2933
|
-
return function(n) {
|
|
2934
|
-
return e({
|
|
2935
|
-
...t,
|
|
2936
|
-
...n
|
|
2937
|
-
});
|
|
2938
|
-
};
|
|
2939
|
-
}
|
|
2940
|
-
function o({ render: e, props: t, defaultValues: n }) {
|
|
2941
|
-
return function(i) {
|
|
2942
|
-
let a = Rn(u(() => ({
|
|
2943
|
-
form: i.form,
|
|
2944
|
-
fields: i.fields,
|
|
2945
|
-
defaultValues: n,
|
|
2946
|
-
formComponents: r
|
|
2947
|
-
}), [i.form, i.fields]));
|
|
2948
|
-
return e({
|
|
2949
|
-
...t,
|
|
2950
|
-
...i,
|
|
2951
|
-
group: a
|
|
2952
|
-
});
|
|
2953
|
-
};
|
|
2954
|
-
}
|
|
2955
|
-
function s(e) {
|
|
2956
|
-
return Vn();
|
|
2957
|
-
}
|
|
2958
|
-
function c(i) {
|
|
2959
|
-
return Un({
|
|
2960
|
-
fieldContext: t,
|
|
2961
|
-
formContext: n,
|
|
2962
|
-
fieldComponents: {
|
|
2963
|
-
...e,
|
|
2964
|
-
...i.fieldComponents
|
|
2965
|
-
},
|
|
2966
|
-
formComponents: {
|
|
2967
|
-
...r,
|
|
2968
|
-
...i.formComponents
|
|
2969
|
-
}
|
|
2970
|
-
});
|
|
2971
|
-
}
|
|
2972
|
-
return {
|
|
2973
|
-
useAppForm: i,
|
|
2974
|
-
withForm: a,
|
|
2975
|
-
withFieldGroup: o,
|
|
2976
|
-
useTypedAppFormContext: s,
|
|
2977
|
-
extendForm: c
|
|
2978
|
-
};
|
|
2979
|
-
}
|
|
2980
|
-
//#endregion
|
|
2981
|
-
//#region src/components/form/form-errors.tsx
|
|
2982
|
-
var Wn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ur().Subscribe, {
|
|
2983
|
-
selector: (e) => [e.errors],
|
|
2984
|
-
children: ([a]) => {
|
|
2985
|
-
if (!a || a.length === 0) return null;
|
|
2986
|
-
let o = [];
|
|
2987
|
-
return a.forEach((e) => {
|
|
2988
|
-
if (typeof e == "string") o.push(e);
|
|
2989
|
-
else if (e?.message && typeof e.message == "string") o.push(e.message);
|
|
2990
|
-
else if (typeof e == "object" && e) {
|
|
2991
|
-
let t = (e) => {
|
|
2992
|
-
typeof e == "string" ? o.push(e) : Array.isArray(e) ? e.forEach(t) : typeof e == "object" && e && ("message" in e && typeof e.message == "string" ? o.push(e.message) : Object.values(e).forEach(t));
|
|
2993
|
-
};
|
|
2994
|
-
t(e);
|
|
2995
|
-
}
|
|
2996
|
-
}), /* @__PURE__ */ h(Tt, {
|
|
2997
|
-
className: t("", e),
|
|
2998
|
-
ref: r,
|
|
2999
|
-
tone: "error",
|
|
3000
|
-
...i,
|
|
3001
|
-
children: [/* @__PURE__ */ m(It, { weight: "duotone" }), /* @__PURE__ */ h(Dt, { children: [n, /* @__PURE__ */ m(Et, { children: /* @__PURE__ */ m("ul", { children: o.length > 0 ? o.map((e) => /* @__PURE__ */ m("li", { children: e }, e)) : /* @__PURE__ */ m("li", {
|
|
3002
|
-
className: "style-text-prose--1",
|
|
3003
|
-
children: a.toString()
|
|
3004
|
-
}) }) })] })]
|
|
3005
|
-
});
|
|
3006
|
-
}
|
|
3007
|
-
}), Gn = ({ className: e, children: n, ref: r, ...i }) => {
|
|
3008
|
-
let a = ur(), o = () => {
|
|
3009
|
-
a.reset();
|
|
3010
|
-
};
|
|
3011
|
-
return /* @__PURE__ */ m(a.Subscribe, {
|
|
3012
|
-
selector: (e) => e,
|
|
3013
|
-
children: (a) => /* @__PURE__ */ m(At, {
|
|
3014
|
-
className: t("w-full", e),
|
|
3015
|
-
disabled: !a.values,
|
|
3016
|
-
onClick: o,
|
|
3017
|
-
ref: r,
|
|
3018
|
-
type: "reset",
|
|
3019
|
-
...i,
|
|
3020
|
-
children: n
|
|
3021
|
-
})
|
|
3022
|
-
});
|
|
3023
|
-
}, Kn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ur().Subscribe, {
|
|
3024
|
-
selector: (e) => e,
|
|
3025
|
-
children: (a) => /* @__PURE__ */ m(At, {
|
|
3026
|
-
className: t("w-full", e),
|
|
3027
|
-
disabled: a.isSubmitting || !a.canSubmit,
|
|
3028
|
-
ref: r,
|
|
3029
|
-
type: "submit",
|
|
3030
|
-
...i,
|
|
3031
|
-
children: a.isSubmitting ? /* @__PURE__ */ m(Ft, {
|
|
3032
|
-
className: "animate-spin",
|
|
3033
|
-
weight: "bold"
|
|
3034
|
-
}) : n
|
|
3035
|
-
})
|
|
3036
|
-
}), qn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldErrors }))), Yn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldInput }))), Xn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldInputGroup }))), Zn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldInputGroupInput }))), Qn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldLabel }))), $n = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldSelect }))), er = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldSlider }))), tr = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldCheckbox }))), nr = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldRadio }))), rr = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldRadioGroup }))), ir = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldSwitch }))), ar = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldToggle }))), or = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldSet }))), { fieldContext: sr, useFieldContext: cr, formContext: lr, useFormContext: ur } = Hn(), { useAppForm: dr, withFieldGroup: fr, withForm: pr, useTypedAppFormContext: mr } = Un({
|
|
3037
|
-
fieldContext: sr,
|
|
3038
|
-
fieldComponents: {
|
|
3039
|
-
FieldDescription: qn,
|
|
3040
|
-
FieldErrors: Jn,
|
|
3041
|
-
FieldInput: Yn,
|
|
3042
|
-
FieldInputGroup: Xn,
|
|
3043
|
-
FieldInputGroupInput: Zn,
|
|
3044
|
-
FieldLabel: Qn,
|
|
3045
|
-
FieldSelect: $n,
|
|
3046
|
-
FieldSlider: er,
|
|
3047
|
-
FieldCheckbox: tr,
|
|
3048
|
-
FieldRadio: nr,
|
|
3049
|
-
FieldRadioGroup: rr,
|
|
3050
|
-
FieldSwitch: ir,
|
|
3051
|
-
FieldToggle: ar,
|
|
3052
|
-
FieldSet: or
|
|
3053
|
-
},
|
|
3054
|
-
formContext: lr,
|
|
3055
|
-
formComponents: {
|
|
3056
|
-
FormErrors: Wn,
|
|
3057
|
-
FormReset: Gn,
|
|
3058
|
-
FormSubmit: Kn
|
|
3059
|
-
}
|
|
3060
|
-
});
|
|
3061
|
-
//#endregion
|
|
3062
|
-
export { ee as $, st as A, qe as B, Xe as C, mt as D, ft as E, tt as F, xe as G, De as H, et as I, ue as J, ve as K, nt as L, $e as M, ut as N, E as O, Ze as P, v as Q, rt as R, ct as S, Ye as T, Se as U, Re as V, b as W, oe as X, ce as Y, re as Z, Ct as _, ur as a, _t as b, pr as c, Wn as d, Pt as f, Tt as g, Et as h, cr as i, Qe as j, w as k, Kn as l, Dt as m, lr as n, mr as o, At as p, de as q, dr as r, fr as s, sr as t, Gn as u, yt as v, ht as w, dt as x, gt as y, lt as z };
|