@govbr-ds/webcomponents 2.3.0 → 2.5.0
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/README.md +2 -2
- package/cem/custom-elements.json +1764 -1575
- package/cem/webcomponents.html-custom-data.json +194 -163
- package/dist/cjs/br-avatar.cjs.entry.js +3 -3
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/br-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/br-button_2.cjs.entry.js +4 -4
- package/dist/cjs/br-card.cjs.entry.js +3 -3
- package/dist/cjs/br-carousel-page.cjs.entry.js +2 -2
- package/dist/cjs/br-carousel.cjs.entry.js +2 -2
- package/dist/cjs/br-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/br-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/br-checkgroup.cjs.entry.js +1 -1
- package/dist/cjs/br-collapse_2.cjs.entry.js +5 -5
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar.cjs.entry.js +3 -3
- package/dist/cjs/br-crumb.cjs.entry.js +1 -1
- package/dist/cjs/br-date-picker_3.cjs.entry.js +984 -545
- package/dist/cjs/br-datetime-picker.cjs.entry.js +1346 -310
- package/dist/cjs/br-divider.cjs.entry.js +3 -3
- package/dist/cjs/br-dropdown_2.cjs.entry.js +282 -139
- package/dist/cjs/br-footer-category.cjs.entry.js +3 -3
- package/dist/cjs/br-footer-item.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-legal.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-logo.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-social.cjs.entry.js +2 -2
- package/dist/cjs/br-footer.cjs.entry.js +4 -4
- package/dist/cjs/br-header-function.cjs.entry.js +2 -2
- package/dist/cjs/br-header-link.cjs.entry.js +2 -2
- package/dist/cjs/br-header-list.cjs.entry.js +2 -2
- package/dist/cjs/br-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/br-header.cjs.entry.js +2 -2
- package/dist/cjs/br-icon.cjs.entry.js +3 -3
- package/dist/cjs/br-input.cjs.entry.js +64 -10
- package/dist/cjs/br-item.cjs.entry.js +3 -3
- package/dist/cjs/br-link.cjs.entry.js +8 -8
- package/dist/cjs/br-loading.cjs.entry.js +2 -2
- package/dist/cjs/br-magic-button.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-header.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-info.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-link.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-logo.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-social.cjs.entry.js +1 -1
- package/dist/cjs/br-menu.cjs.entry.js +4 -4
- package/dist/cjs/br-modal.cjs.entry.js +1 -1
- package/dist/cjs/br-notification-body.cjs.entry.js +2 -2
- package/dist/cjs/br-notification-header.cjs.entry.js +2 -2
- package/dist/cjs/br-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/br-notification.cjs.entry.js +3 -3
- package/dist/cjs/br-pagination.cjs.entry.js +3 -3
- package/dist/cjs/br-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/br-radio.cjs.entry.js +4 -4
- package/dist/cjs/br-scrim.cjs.entry.js +3 -3
- package/dist/cjs/br-select-input_3.cjs.entry.js +308 -101
- package/dist/cjs/br-sign-in.cjs.entry.js +3 -3
- package/dist/cjs/br-skip-link-item.cjs.entry.js +1 -1
- package/dist/cjs/br-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/br-skiplink-item.cjs.entry.js +2 -2
- package/dist/cjs/br-slider.cjs.entry.js +3 -3
- package/dist/cjs/br-step_2.cjs.entry.js +6 -6
- package/dist/cjs/br-switch.cjs.entry.js +4 -4
- package/dist/cjs/br-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/br-tab.cjs.entry.js +4 -4
- package/dist/cjs/br-table-body.cjs.entry.js +2 -2
- package/dist/cjs/br-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/br-table-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/br-table-header.cjs.entry.js +2 -2
- package/dist/cjs/br-table-row.cjs.entry.js +2 -2
- package/dist/cjs/br-table.cjs.entry.js +2 -2
- package/dist/cjs/br-tag.cjs.entry.js +4 -4
- package/dist/cjs/br-textarea.cjs.entry.js +3 -3
- package/dist/cjs/br-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/br-upload.cjs.entry.js +8 -24
- package/dist/cjs/br-wizard-panel.cjs.entry.js +2 -2
- package/dist/cjs/br-wizard.cjs.entry.js +2 -2
- package/dist/cjs/{datetime-picker-constants-B5pWeOn1.js → datetime-picker-constants-CTf1kVJ1.js} +21 -5
- package/dist/cjs/format-bytes-Cs8SH2w0.js +24 -0
- package/dist/cjs/{iconify-icon-DfODV9bf.js → iconify-icon-LjavbM-D.js} +103 -57
- package/dist/cjs/index-Bc30P_6z.js +14 -14
- package/dist/cjs/{index-C92n55ch.js → index-Caoez3xb.js} +75 -27
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{datetime-picker-props-validation-DmNKSXsy.js → isValid-DgJ-noPS.js} +1 -483
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/select.utils-C38f5Kea.js +62 -0
- package/dist/cjs/{slot-DAllytTj.js → slot-CjaqqX7y.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +21 -21
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +4 -12
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +32 -27
- package/dist/collection/components/breadcrumb/crumb/crumb.js +2 -13
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +21 -21
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +20 -22
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +3 -13
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/carousel/carousel.js +23 -30
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +18 -24
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.js +19 -20
- package/dist/collection/components/checkgroup/checkgroup.js +2 -14
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/collapse/collapse.js +25 -21
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +3 -15
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +3 -14
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +2 -13
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.js +32 -27
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +73 -26
- package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +14 -13
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +474 -321
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input-constants.js +59 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +19 -15
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +370 -218
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.types.js +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker-constants.js +19 -5
- package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +92 -11
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +52 -33
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +917 -368
- package/dist/collection/components/datetime-picker/datetime-picker.utils.js +62 -49
- package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +3 -2
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +145 -92
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/divider/divider.js +15 -19
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +22 -21
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-category/footer-category.js +4 -17
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.js +3 -16
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.js +2 -16
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.js +3 -16
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.js +3 -15
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/footer/footer.js +25 -29
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-function/header-function.js +10 -14
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-link/header-link.js +3 -16
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-list/header-list.js +3 -16
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.js +3 -16
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +30 -27
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +22 -17
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +125 -30
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/item/item.js +18 -22
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +25 -29
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/list/list.js +17 -21
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/loading/loading.js +17 -24
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +13 -20
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-group/menu-group.js +3 -16
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.js +3 -16
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.js +2 -15
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.js +3 -16
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +5 -17
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-list/menu-list.js +2 -15
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.js +2 -15
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.js +2 -15
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +28 -35
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/message/message.js +22 -25
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +18 -21
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.js +3 -13
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.js +3 -14
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.js +3 -16
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/notification/notification.js +20 -29
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +15 -23
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio/radio.js +17 -20
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/radio-group/radio-group.js +20 -20
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +14 -17
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +157 -27
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +269 -80
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +20 -16
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +367 -180
- package/dist/collection/components/select/select.utils.js +26 -7
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +12 -16
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +8 -4
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +5 -15
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/skip-link/skip-link.js +18 -24
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +15 -25
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step-item/step-item.js +5 -15
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/step/step.js +16 -25
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +16 -20
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.js +5 -15
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +22 -29
- package/dist/collection/components/table/table-body/table-body.css +1 -1
- package/dist/collection/components/table/table-body/table-body.js +3 -13
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +3 -12
- package/dist/collection/components/table/table-header/table-header.css +1 -1
- package/dist/collection/components/table/table-header/table-header.js +3 -13
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -13
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table-row/table-row.js +3 -13
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.js +25 -32
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +17 -26
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +14 -22
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +13 -19
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +36 -29
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +3 -13
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/components/wizard/wizard.js +22 -26
- package/dist/collection/pages/components/select/remote-options.js +87 -0
- package/dist/collection/shared/utils/slot.js +1 -1
- package/dist/components/br-avatar.js +1 -1
- package/dist/components/br-breadcrumb-item.js +1 -1
- package/dist/components/br-breadcrumb.js +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-card.js +1 -1
- package/dist/components/br-carousel-page.js +1 -1
- package/dist/components/br-carousel.js +1 -1
- package/dist/components/br-checkbox-group.js +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.js +1 -1
- package/dist/components/br-cookiebar-cookie.js +1 -1
- package/dist/components/br-cookiebar-group.js +1 -1
- package/dist/components/br-cookiebar-header.js +1 -1
- package/dist/components/br-cookiebar-link.js +1 -1
- package/dist/components/br-cookiebar-note-group.js +1 -1
- package/dist/components/br-cookiebar-note.js +1 -1
- package/dist/components/br-cookiebar.js +1 -1
- package/dist/components/br-crumb.js +1 -1
- package/dist/components/br-date-picker.js +1 -1
- package/dist/components/br-datetime-input.js +1 -1
- package/dist/components/br-datetime-picker.js +1 -1
- package/dist/components/br-divider.js +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.js +1 -1
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-footer-legal.js +1 -1
- package/dist/components/br-footer-logo.js +1 -1
- package/dist/components/br-footer-social.js +1 -1
- package/dist/components/br-footer.js +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.js +1 -1
- package/dist/components/br-header-logo.js +1 -1
- package/dist/components/br-header.js +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.js +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-link.js +1 -1
- package/dist/components/br-list.js +1 -1
- package/dist/components/br-loading.js +1 -1
- package/dist/components/br-magic-button.js +1 -1
- package/dist/components/br-menu-group.js +1 -1
- package/dist/components/br-menu-header.js +1 -1
- package/dist/components/br-menu-info.js +1 -1
- package/dist/components/br-menu-item.js +1 -1
- package/dist/components/br-menu-link.js +1 -1
- package/dist/components/br-menu-list.js +1 -1
- package/dist/components/br-menu-logo.js +1 -1
- package/dist/components/br-menu-social.js +1 -1
- package/dist/components/br-menu.js +1 -1
- package/dist/components/br-message.js +1 -1
- package/dist/components/br-modal.js +1 -1
- package/dist/components/br-notification-body.js +1 -1
- package/dist/components/br-notification-header.js +1 -1
- package/dist/components/br-notification-item.js +1 -1
- package/dist/components/br-notification.js +1 -1
- package/dist/components/br-pagination.js +1 -1
- package/dist/components/br-radio-group.js +1 -1
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.js +1 -1
- package/dist/components/br-select-input.js +1 -1
- package/dist/components/br-select-list.js +1 -1
- package/dist/components/br-select-option.js +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/br-sign-in.js +1 -1
- package/dist/components/br-skip-link-item.js +1 -1
- package/dist/components/br-skip-link.js +1 -1
- package/dist/components/br-skiplink-item.js +1 -1
- package/dist/components/br-slider.js +1 -1
- package/dist/components/br-step-item.js +1 -1
- package/dist/components/br-step.js +1 -1
- package/dist/components/br-switch.js +1 -1
- package/dist/components/br-tab-item.js +1 -1
- package/dist/components/br-tab.js +1 -1
- package/dist/components/br-table-body.js +1 -1
- package/dist/components/br-table-cell.js +1 -1
- package/dist/components/br-table-header-cell.js +1 -1
- package/dist/components/br-table-header.js +1 -1
- package/dist/components/br-table-row.js +1 -1
- package/dist/components/br-table.js +1 -1
- package/dist/components/br-tag.js +1 -1
- package/dist/components/br-textarea.js +1 -1
- package/dist/components/br-time-picker.js +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-upload.js +1 -1
- package/dist/components/br-wizard-panel.js +1 -1
- package/dist/components/br-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-448Z5r2f.js +5 -0
- package/dist/{webcomponents/p-5f422a69.entry.js → components/p-AhfgJCUp.js} +1 -1
- package/dist/components/p-AoNL6BaW.js +5 -0
- package/dist/components/p-B468MCYC.js +5 -0
- package/dist/components/p-B7bNfmgh.js +5 -0
- package/dist/components/p-B985Ov_x.js +5 -0
- package/dist/components/p-BOWQIHQA.js +5 -0
- package/dist/components/p-BPQrgCRr.js +5 -0
- package/dist/components/p-BwQT0fOJ.js +5 -0
- package/dist/components/p-CAgbUwsx.js +5 -0
- package/dist/components/p-CFXey8i8.js +5 -0
- package/dist/components/p-CVz_akHx.js +5 -0
- package/dist/components/p-CW8xwk6J.js +5 -0
- package/dist/components/p-CYZVdKeO.js +5 -0
- package/dist/components/p-C_DC6oQW.js +16 -0
- package/dist/components/p-CeWbZN7V.js +5 -0
- package/dist/components/p-CyXVsiz9.js +5 -0
- package/dist/components/p-DDe0tQEO.js +5 -0
- package/dist/components/{p-CZZVc2gK.js → p-DJKZ8ktB.js} +1 -1
- package/dist/components/p-DRsZ9GNg.js +5 -0
- package/dist/components/p-DU54cqCf.js +5 -0
- package/dist/components/p-DVJlmlEX.js +5 -0
- package/dist/components/p-DcMjwTqu.js +5 -0
- package/dist/components/p-Dd1qCWAK.js +5 -0
- package/dist/components/p-Dn36Mj2E.js +5 -0
- package/dist/components/p-DoWy_P8b.js +5 -0
- package/dist/components/p-HbhTnepI.js +5 -0
- package/dist/components/{p-BcqVlof7.js → p-JkJjzmGm.js} +1 -1
- package/dist/components/{p-Nze3Utvd.js → p-Or3FLzbz.js} +1 -1
- package/dist/components/p-SWQlgYWR.js +5 -0
- package/dist/components/p-Zb9nyfTY.js +5 -0
- package/dist/components/p-jvKQA6x7.js +5 -0
- package/dist/components/p-pQb-3jFY.js +5 -0
- package/dist/components/p-qX6sHxOk.js +5 -0
- package/dist/esm/br-avatar.entry.js +3 -3
- package/dist/esm/br-breadcrumb-item.entry.js +1 -1
- package/dist/esm/br-breadcrumb.entry.js +3 -3
- package/dist/esm/br-button_2.entry.js +4 -4
- package/dist/esm/br-card.entry.js +3 -3
- package/dist/esm/br-carousel-page.entry.js +2 -2
- package/dist/esm/br-carousel.entry.js +3 -3
- package/dist/esm/br-checkbox-group.entry.js +3 -3
- package/dist/esm/br-checkbox.entry.js +5 -5
- package/dist/esm/br-checkgroup.entry.js +1 -1
- package/dist/esm/br-collapse_2.entry.js +6 -6
- package/dist/esm/br-cookiebar-cookie.entry.js +2 -2
- package/dist/esm/br-cookiebar-group.entry.js +2 -2
- package/dist/esm/br-cookiebar-header.entry.js +2 -2
- package/dist/esm/br-cookiebar-link.entry.js +2 -2
- package/dist/esm/br-cookiebar-note-group.entry.js +1 -1
- package/dist/esm/br-cookiebar-note.entry.js +2 -2
- package/dist/esm/br-cookiebar.entry.js +4 -4
- package/dist/esm/br-crumb.entry.js +1 -1
- package/dist/esm/br-date-picker_3.entry.js +966 -527
- package/dist/esm/br-datetime-picker.entry.js +1316 -280
- package/dist/esm/br-divider.entry.js +3 -3
- package/dist/esm/br-dropdown_2.entry.js +281 -138
- package/dist/esm/br-footer-category.entry.js +3 -3
- package/dist/esm/br-footer-item.entry.js +2 -2
- package/dist/esm/br-footer-legal.entry.js +2 -2
- package/dist/esm/br-footer-logo.entry.js +2 -2
- package/dist/esm/br-footer-social.entry.js +2 -2
- package/dist/esm/br-footer.entry.js +4 -4
- package/dist/esm/br-header-function.entry.js +2 -2
- package/dist/esm/br-header-link.entry.js +2 -2
- package/dist/esm/br-header-list.entry.js +3 -3
- package/dist/esm/br-header-logo.entry.js +2 -2
- package/dist/esm/br-header.entry.js +2 -2
- package/dist/esm/br-icon.entry.js +3 -3
- package/dist/esm/br-input.entry.js +65 -11
- package/dist/esm/br-item.entry.js +3 -3
- package/dist/esm/br-link.entry.js +8 -8
- package/dist/esm/br-loading.entry.js +2 -2
- package/dist/esm/br-magic-button.entry.js +2 -2
- package/dist/esm/br-menu-group.entry.js +2 -2
- package/dist/esm/br-menu-header.entry.js +2 -2
- package/dist/esm/br-menu-info.entry.js +2 -2
- package/dist/esm/br-menu-item.entry.js +2 -2
- package/dist/esm/br-menu-link.entry.js +2 -2
- package/dist/esm/br-menu-list.entry.js +1 -1
- package/dist/esm/br-menu-logo.entry.js +2 -2
- package/dist/esm/br-menu-social.entry.js +1 -1
- package/dist/esm/br-menu.entry.js +5 -5
- package/dist/esm/br-modal.entry.js +1 -1
- package/dist/esm/br-notification-body.entry.js +2 -2
- package/dist/esm/br-notification-header.entry.js +2 -2
- package/dist/esm/br-notification-item.entry.js +2 -2
- package/dist/esm/br-notification.entry.js +4 -4
- package/dist/esm/br-pagination.entry.js +3 -3
- package/dist/esm/br-radio-group.entry.js +5 -5
- package/dist/esm/br-radio.entry.js +5 -5
- package/dist/esm/br-scrim.entry.js +3 -3
- package/dist/esm/br-select-input_3.entry.js +308 -101
- package/dist/esm/br-sign-in.entry.js +3 -3
- package/dist/esm/br-skip-link-item.entry.js +1 -1
- package/dist/esm/br-skip-link.entry.js +2 -2
- package/dist/esm/br-skiplink-item.entry.js +2 -2
- package/dist/esm/br-slider.entry.js +4 -4
- package/dist/esm/br-step_2.entry.js +6 -6
- package/dist/esm/br-switch.entry.js +5 -5
- package/dist/esm/br-tab-item.entry.js +2 -2
- package/dist/esm/br-tab.entry.js +4 -4
- package/dist/esm/br-table-body.entry.js +2 -2
- package/dist/esm/br-table-cell.entry.js +2 -2
- package/dist/esm/br-table-header-cell.entry.js +2 -2
- package/dist/esm/br-table-header.entry.js +2 -2
- package/dist/esm/br-table-row.entry.js +2 -2
- package/dist/esm/br-table.entry.js +2 -2
- package/dist/esm/br-tag.entry.js +5 -5
- package/dist/esm/br-textarea.entry.js +4 -4
- package/dist/esm/br-tooltip.entry.js +3 -3
- package/dist/esm/br-upload.entry.js +6 -22
- package/dist/esm/br-wizard-panel.entry.js +2 -2
- package/dist/esm/br-wizard.entry.js +2 -2
- package/dist/esm/{datetime-picker-constants-BtRPYRvA.js → datetime-picker-constants-1l4_-FEJ.js} +20 -6
- package/dist/esm/{event-CfuJQ1DY.js → event-6Da1SZ3J.js} +1 -1
- package/dist/esm/format-bytes-B7bNfmgh.js +22 -0
- package/dist/esm/{iconify-icon-D3usVJE2.js → iconify-icon-C_DC6oQW.js} +103 -57
- package/dist/esm/{index-BQPOWxe5.js → index-BQRBKuY0.js} +75 -28
- package/dist/esm/index-ConyRdJe.js +14 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/{datetime-picker-props-validation-BeTcUTnE.js → isValid-wU7S6MI2.js} +2 -477
- package/dist/esm/loader.js +1 -1
- package/dist/esm/select.utils-BYsh2ZdE.js +57 -0
- package/dist/esm/{slot-BIG-yees.js → slot-Bt01zQ7-.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/hydrate/index.js +4459 -3577
- package/dist/hydrate/index.mjs +4459 -3577
- package/dist/types/components/avatar/avatar.d.ts +20 -20
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +3 -11
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +30 -25
- package/dist/types/components/breadcrumb/crumb/crumb.d.ts +1 -12
- package/dist/types/components/button/button.d.ts +20 -20
- package/dist/types/components/card/card.d.ts +19 -21
- package/dist/types/components/carousel/carousel-page/carousel-page.d.ts +2 -12
- package/dist/types/components/carousel/carousel.d.ts +22 -29
- package/dist/types/components/checkbox/checkbox.d.ts +16 -22
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +17 -18
- package/dist/types/components/checkgroup/checkgroup.d.ts +1 -13
- package/dist/types/components/collapse/collapse.d.ts +24 -20
- package/dist/types/components/cookiebar/cookiebar-cookie/cookiebar-cookie.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-group/cookiebar-group.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-header/cookiebar-header.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-link/cookiebar-link.d.ts +2 -14
- package/dist/types/components/cookiebar/cookiebar-note/cookiebar-note.d.ts +2 -13
- package/dist/types/components/cookiebar/cookiebar-note-group/cookiebar-note-group.d.ts +2 -13
- package/dist/types/components/cookiebar/cookiebar.d.ts +30 -25
- package/dist/types/components/datetime-picker/date-picker/date-picker-locale.d.ts +20 -12
- package/dist/types/components/datetime-picker/date-picker/date-picker-props-validation.d.ts +14 -13
- package/dist/types/components/datetime-picker/date-picker/date-picker.d.ts +313 -164
- package/dist/types/components/datetime-picker/datetime-input/datetime-input-constants.d.ts +14 -0
- package/dist/types/components/datetime-picker/datetime-input/datetime-input-props-validation.d.ts +19 -15
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.d.ts +226 -105
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.types.d.ts +36 -0
- package/dist/types/components/datetime-picker/datetime-picker-constants.d.ts +19 -5
- package/dist/types/components/datetime-picker/datetime-picker-form-associated.d.ts +32 -5
- package/dist/types/components/datetime-picker/datetime-picker-props-validation.d.ts +22 -24
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +510 -241
- package/dist/types/components/datetime-picker/datetime-picker.types.d.ts +75 -21
- package/dist/types/components/datetime-picker/datetime-picker.utils.d.ts +53 -47
- package/dist/types/components/datetime-picker/time-picker/time-picker-constants.d.ts +3 -2
- package/dist/types/components/datetime-picker/time-picker/time-picker.d.ts +123 -62
- package/dist/types/components/divider/divider.d.ts +14 -18
- package/dist/types/components/dropdown/dropdown.d.ts +21 -20
- package/dist/types/components/footer/footer-category/footer-category.d.ts +2 -15
- package/dist/types/components/footer/footer-item/footer-item.d.ts +2 -15
- package/dist/types/components/footer/footer-legal/footer-legal.d.ts +1 -15
- package/dist/types/components/footer/footer-logo/footer-logo.d.ts +2 -15
- package/dist/types/components/footer/footer-social/footer-social.d.ts +2 -14
- package/dist/types/components/footer/footer.d.ts +23 -27
- package/dist/types/components/header/header-function/header-function.d.ts +9 -13
- package/dist/types/components/header/header-link/header-link.d.ts +2 -15
- package/dist/types/components/header/header-list/header-list.d.ts +2 -15
- package/dist/types/components/header/header-logo/header-logo.d.ts +2 -15
- package/dist/types/components/header/header.d.ts +29 -26
- package/dist/types/components/icon/icon.d.ts +21 -16
- package/dist/types/components/input/input.d.ts +48 -23
- package/dist/types/components/input/input.types.d.ts +4 -0
- package/dist/types/components/item/item.d.ts +17 -21
- package/dist/types/components/link/link.d.ts +18 -22
- package/dist/types/components/list/list.d.ts +16 -20
- package/dist/types/components/loading/loading.d.ts +16 -23
- package/dist/types/components/magic-button/magic-button.d.ts +12 -19
- package/dist/types/components/menu/menu-group/menu-group.d.ts +2 -15
- package/dist/types/components/menu/menu-header/menu-header.d.ts +2 -15
- package/dist/types/components/menu/menu-info/menu-info.d.ts +1 -14
- package/dist/types/components/menu/menu-item/menu-item.d.ts +2 -15
- package/dist/types/components/menu/menu-link/menu-link.d.ts +4 -16
- package/dist/types/components/menu/menu-list/menu-list.d.ts +2 -15
- package/dist/types/components/menu/menu-logo/menu-logo.d.ts +1 -14
- package/dist/types/components/menu/menu-social/menu-social.d.ts +2 -15
- package/dist/types/components/menu/menu.d.ts +25 -32
- package/dist/types/components/message/message.d.ts +21 -24
- package/dist/types/components/modal/modal.d.ts +18 -21
- package/dist/types/components/notification/notification-body/notification-body.d.ts +2 -12
- package/dist/types/components/notification/notification-header/notification-header.d.ts +2 -13
- package/dist/types/components/notification/notification-item/notification-item.d.ts +2 -15
- package/dist/types/components/notification/notification.d.ts +18 -27
- package/dist/types/components/pagination/pagination.d.ts +13 -21
- package/dist/types/components/radio/radio.d.ts +15 -18
- package/dist/types/components/radio-group/radio-group.d.ts +18 -18
- package/dist/types/components/scrim/scrim.d.ts +12 -15
- package/dist/types/components/select/select-input/select-input.d.ts +20 -12
- package/dist/types/components/select/select-list/select-list.d.ts +27 -14
- package/dist/types/components/select/select-option/select-option.d.ts +6 -10
- package/dist/types/components/select/select.d.ts +75 -87
- package/dist/types/components/select/select.types.d.ts +12 -0
- package/dist/types/components/select/select.utils.d.ts +3 -0
- package/dist/types/components/sign-in/sign-in.d.ts +11 -15
- package/dist/types/components/skip-link/skip-link-item/skip-link-item-alias.d.ts +7 -3
- package/dist/types/components/skip-link/skip-link-item/skip-link-item.d.ts +4 -14
- package/dist/types/components/skip-link/skip-link.d.ts +17 -23
- package/dist/types/components/slider/slider.d.ts +14 -24
- package/dist/types/components/step/step-item/step-item.d.ts +2 -12
- package/dist/types/components/step/step.d.ts +15 -24
- package/dist/types/components/switch/switch.d.ts +14 -18
- package/dist/types/components/tab/tab-item/tab-item.d.ts +4 -14
- package/dist/types/components/tab/tab.d.ts +19 -26
- package/dist/types/components/table/table-body/table-body.d.ts +2 -12
- package/dist/types/components/table/table-cell/table-cell.d.ts +2 -11
- package/dist/types/components/table/table-header/table-header.d.ts +2 -12
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -12
- package/dist/types/components/table/table-row/table-row.d.ts +2 -12
- package/dist/types/components/table/table.d.ts +24 -31
- package/dist/types/components/tag/tag.d.ts +15 -24
- package/dist/types/components/textarea/textarea.d.ts +13 -21
- package/dist/types/components/tooltip/tooltip.d.ts +12 -18
- package/dist/types/components/upload/upload.d.ts +20 -27
- package/dist/types/components/wizard/wizard-panel/wizard-panel.d.ts +2 -12
- package/dist/types/components/wizard/wizard.d.ts +21 -25
- package/dist/types/components.d.ts +3586 -5062
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-031a2256.entry.js +5 -0
- package/dist/webcomponents/p-0602e5b1.entry.js +5 -0
- package/dist/webcomponents/p-079d5f69.entry.js +5 -0
- package/dist/webcomponents/p-087ed5e7.entry.js +5 -0
- package/dist/webcomponents/p-0d5a9ebf.entry.js +5 -0
- package/dist/webcomponents/p-105b4d06.entry.js +5 -0
- package/dist/webcomponents/p-11d4edc5.entry.js +5 -0
- package/dist/webcomponents/p-12dd22af.entry.js +5 -0
- package/dist/webcomponents/p-14aedf0d.entry.js +5 -0
- package/dist/webcomponents/p-152482f9.entry.js +5 -0
- package/dist/webcomponents/p-19b4b1b7.entry.js +5 -0
- package/dist/webcomponents/p-1cd1126e.entry.js +5 -0
- package/dist/webcomponents/{p-BtRPYRvA.js → p-1l4_-FEJ.js} +1 -1
- package/dist/webcomponents/p-21e10074.entry.js +5 -0
- package/dist/webcomponents/p-2271ea84.entry.js +5 -0
- package/dist/webcomponents/p-271b1ede.entry.js +5 -0
- package/dist/webcomponents/p-28f732fc.entry.js +5 -0
- package/dist/webcomponents/{p-c1dafd8d.entry.js → p-2971d38a.entry.js} +1 -1
- package/dist/{components/p-DOJ1vYOl.js → webcomponents/p-2ac48875.entry.js} +1 -1
- package/dist/webcomponents/p-2b1a919c.entry.js +5 -0
- package/dist/webcomponents/p-2da57966.entry.js +5 -0
- package/dist/webcomponents/p-2e81b0b3.entry.js +5 -0
- package/dist/webcomponents/p-2eececed.entry.js +5 -0
- package/dist/webcomponents/{p-513ee754.entry.js → p-2f904c4a.entry.js} +1 -1
- package/dist/webcomponents/p-32414f1c.entry.js +5 -0
- package/dist/webcomponents/{p-5a7c2031.entry.js → p-324afbce.entry.js} +1 -1
- package/dist/webcomponents/p-32ea6342.entry.js +5 -0
- package/dist/webcomponents/p-330ec8ab.entry.js +5 -0
- package/dist/webcomponents/p-374f83b1.entry.js +5 -0
- package/dist/webcomponents/p-3926cc91.entry.js +5 -0
- package/dist/webcomponents/p-39a7826d.entry.js +5 -0
- package/dist/webcomponents/p-3bcc2c58.entry.js +5 -0
- package/dist/webcomponents/p-3c7ce0e4.entry.js +5 -0
- package/dist/webcomponents/p-467842ca.entry.js +5 -0
- package/dist/webcomponents/p-53550e8c.entry.js +5 -0
- package/dist/webcomponents/p-53e71a8a.entry.js +5 -0
- package/dist/webcomponents/p-5528b466.entry.js +5 -0
- package/dist/webcomponents/p-55e0822d.entry.js +5 -0
- package/dist/webcomponents/p-58bacbe1.entry.js +5 -0
- package/dist/webcomponents/p-5a5ed7d8.entry.js +5 -0
- package/dist/webcomponents/p-621f0fa8.entry.js +5 -0
- package/dist/webcomponents/p-6514a75d.entry.js +5 -0
- package/dist/webcomponents/{p-19a38e20.entry.js → p-678b43a6.entry.js} +1 -1
- package/dist/webcomponents/{p-CfuJQ1DY.js → p-6Da1SZ3J.js} +1 -1
- package/dist/webcomponents/p-6b6be415.entry.js +5 -0
- package/dist/webcomponents/{p-0d2ca2f7.entry.js → p-6d58ab4f.entry.js} +1 -1
- package/dist/webcomponents/p-6ff9b26e.entry.js +5 -0
- package/dist/webcomponents/p-84dfbfdd.entry.js +5 -0
- package/dist/webcomponents/{p-d5d2205c.entry.js → p-85c8d060.entry.js} +1 -1
- package/dist/webcomponents/p-913d6f28.entry.js +5 -0
- package/dist/webcomponents/{p-94848046.entry.js → p-975ea5c7.entry.js} +1 -1
- package/dist/webcomponents/p-992167bc.entry.js +5 -0
- package/dist/webcomponents/p-B7bNfmgh.js +5 -0
- package/dist/webcomponents/p-BYsh2ZdE.js +5 -0
- package/dist/webcomponents/p-C_DC6oQW.js +16 -0
- package/dist/webcomponents/{p-DV-iW9Aj.js → p-CpE_G6IZ.js} +1 -1
- package/dist/webcomponents/p-DnwERaeQ.js +5 -0
- package/dist/webcomponents/p-a21872bf.entry.js +5 -0
- package/dist/webcomponents/{p-0b0cf355.entry.js → p-a9f16a65.entry.js} +1 -1
- package/dist/webcomponents/p-b8d4ace3.entry.js +5 -0
- package/dist/webcomponents/{p-6850e98e.entry.js → p-bbcde1ea.entry.js} +1 -1
- package/dist/webcomponents/p-bbf47e78.entry.js +5 -0
- package/dist/webcomponents/p-bf35e506.entry.js +5 -0
- package/dist/webcomponents/{p-b02a7218.entry.js → p-c09af3cd.entry.js} +1 -1
- package/dist/webcomponents/p-c29268b5.entry.js +5 -0
- package/dist/webcomponents/p-c3e61c39.entry.js +5 -0
- package/dist/webcomponents/{p-b16590fc.entry.js → p-c6b2545a.entry.js} +1 -1
- package/dist/webcomponents/{p-b55425b7.entry.js → p-c6f2f17b.entry.js} +1 -1
- package/dist/webcomponents/p-cae39e13.entry.js +5 -0
- package/dist/webcomponents/p-cb1e08b1.entry.js +5 -0
- package/dist/webcomponents/{p-e94a52ac.entry.js → p-cb690a87.entry.js} +1 -1
- package/dist/webcomponents/p-d0be7243.entry.js +5 -0
- package/dist/webcomponents/p-d191c6e3.entry.js +5 -0
- package/dist/webcomponents/p-d205f3fd.entry.js +5 -0
- package/dist/webcomponents/p-d3bd2c40.entry.js +5 -0
- package/dist/webcomponents/{p-61977114.entry.js → p-dbeea64e.entry.js} +1 -1
- package/dist/webcomponents/p-df475129.entry.js +5 -0
- package/dist/webcomponents/p-e0ccf189.entry.js +5 -0
- package/dist/webcomponents/p-e121429a.entry.js +5 -0
- package/dist/webcomponents/p-e4b968b5.entry.js +5 -0
- package/dist/webcomponents/p-e661c024.entry.js +5 -0
- package/dist/webcomponents/p-e6c6f305.entry.js +5 -0
- package/dist/webcomponents/p-e8291be2.entry.js +5 -0
- package/dist/webcomponents/p-eb5806c7.entry.js +5 -0
- package/dist/webcomponents/{p-82759002.entry.js → p-ed3fa8ec.entry.js} +1 -1
- package/dist/webcomponents/p-f9084f16.entry.js +5 -0
- package/dist/webcomponents/{p-4118b878.entry.js → p-fad3aa61.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/collection/pages/components/select/remote.js +0 -33
- package/dist/collection/pages/components/select/virtualized.js +0 -13
- package/dist/components/p-0qmYp77w.js +0 -5
- package/dist/components/p-5c3rNBXh.js +0 -5
- package/dist/components/p-B8oIvH3q.js +0 -5
- package/dist/components/p-BECz8XWJ.js +0 -5
- package/dist/components/p-BM4Ys6hX.js +0 -5
- package/dist/components/p-BXWh9s7p.js +0 -5
- package/dist/components/p-BblZlUp2.js +0 -5
- package/dist/components/p-Bezou5CQ.js +0 -5
- package/dist/components/p-BjeUETWJ.js +0 -5
- package/dist/components/p-Cd6udSDt.js +0 -5
- package/dist/components/p-Ci0_RqAE.js +0 -5
- package/dist/components/p-CuBgClZm.js +0 -5
- package/dist/components/p-D0QYZSoP.js +0 -5
- package/dist/components/p-D3usVJE2.js +0 -16
- package/dist/components/p-D4SWpW6-.js +0 -5
- package/dist/components/p-D579DS7x.js +0 -5
- package/dist/components/p-D8K7rhHd.js +0 -5
- package/dist/components/p-D9nXlCuS.js +0 -5
- package/dist/components/p-DKFO6Q_g.js +0 -5
- package/dist/components/p-DNJSSCNi.js +0 -5
- package/dist/components/p-DYI30IZL.js +0 -5
- package/dist/components/p-DcVldfL0.js +0 -5
- package/dist/components/p-DhvmHPp4.js +0 -5
- package/dist/components/p-DwgiHL0b.js +0 -5
- package/dist/components/p-WxDB6Dk4.js +0 -5
- package/dist/components/p-ZLoeVagg.js +0 -5
- package/dist/components/p-gbYJ9sfc.js +0 -5
- package/dist/components/p-uc8ABlC_.js +0 -5
- package/dist/components/p-v60ypfxD.js +0 -5
- package/dist/webcomponents/p-078bd760.entry.js +0 -5
- package/dist/webcomponents/p-07c2cdff.entry.js +0 -5
- package/dist/webcomponents/p-09817344.entry.js +0 -5
- package/dist/webcomponents/p-0d79ca44.entry.js +0 -5
- package/dist/webcomponents/p-0fe3c47b.entry.js +0 -5
- package/dist/webcomponents/p-116b53c9.entry.js +0 -5
- package/dist/webcomponents/p-1240dae7.entry.js +0 -5
- package/dist/webcomponents/p-14ff5865.entry.js +0 -5
- package/dist/webcomponents/p-15743a02.entry.js +0 -5
- package/dist/webcomponents/p-16cebf49.entry.js +0 -5
- package/dist/webcomponents/p-1884b9d3.entry.js +0 -5
- package/dist/webcomponents/p-1d36c8fa.entry.js +0 -5
- package/dist/webcomponents/p-1fa4b5b2.entry.js +0 -5
- package/dist/webcomponents/p-212c069b.entry.js +0 -5
- package/dist/webcomponents/p-23f37cd6.entry.js +0 -5
- package/dist/webcomponents/p-24502b63.entry.js +0 -5
- package/dist/webcomponents/p-27fb81f3.entry.js +0 -5
- package/dist/webcomponents/p-28844490.entry.js +0 -5
- package/dist/webcomponents/p-2b41bdcc.entry.js +0 -5
- package/dist/webcomponents/p-2cb1e09b.entry.js +0 -5
- package/dist/webcomponents/p-2fcda70b.entry.js +0 -5
- package/dist/webcomponents/p-3378300c.entry.js +0 -5
- package/dist/webcomponents/p-3ae9cf69.entry.js +0 -5
- package/dist/webcomponents/p-3b79cd49.entry.js +0 -5
- package/dist/webcomponents/p-3c1513ec.entry.js +0 -5
- package/dist/webcomponents/p-4534a3c3.entry.js +0 -5
- package/dist/webcomponents/p-48abf568.entry.js +0 -5
- package/dist/webcomponents/p-4e5ea05c.entry.js +0 -5
- package/dist/webcomponents/p-521a1076.entry.js +0 -5
- package/dist/webcomponents/p-59fc52c0.entry.js +0 -5
- package/dist/webcomponents/p-5a9f4ea2.entry.js +0 -5
- package/dist/webcomponents/p-71853dfc.entry.js +0 -5
- package/dist/webcomponents/p-76d51654.entry.js +0 -5
- package/dist/webcomponents/p-77e242f3.entry.js +0 -5
- package/dist/webcomponents/p-7b849472.entry.js +0 -5
- package/dist/webcomponents/p-7dbfb875.entry.js +0 -5
- package/dist/webcomponents/p-7fa7f052.entry.js +0 -5
- package/dist/webcomponents/p-81c65747.entry.js +0 -5
- package/dist/webcomponents/p-91a5329f.entry.js +0 -5
- package/dist/webcomponents/p-966773a9.entry.js +0 -5
- package/dist/webcomponents/p-9abb5a53.entry.js +0 -5
- package/dist/webcomponents/p-9bf2e325.entry.js +0 -5
- package/dist/webcomponents/p-9c943b40.entry.js +0 -5
- package/dist/webcomponents/p-9ec3ca00.entry.js +0 -5
- package/dist/webcomponents/p-B0PbhaxL.js +0 -5
- package/dist/webcomponents/p-D3usVJE2.js +0 -16
- package/dist/webcomponents/p-ad91f149.entry.js +0 -5
- package/dist/webcomponents/p-aeea1f17.entry.js +0 -5
- package/dist/webcomponents/p-c2ca0289.entry.js +0 -5
- package/dist/webcomponents/p-c8af334e.entry.js +0 -5
- package/dist/webcomponents/p-cac49c6a.entry.js +0 -5
- package/dist/webcomponents/p-cb9ebfbe.entry.js +0 -5
- package/dist/webcomponents/p-ce3d689c.entry.js +0 -5
- package/dist/webcomponents/p-d11f95a0.entry.js +0 -5
- package/dist/webcomponents/p-dad03b49.entry.js +0 -5
- package/dist/webcomponents/p-db8e6322.entry.js +0 -5
- package/dist/webcomponents/p-dea8015f.entry.js +0 -5
- package/dist/webcomponents/p-e07e309d.entry.js +0 -5
- package/dist/webcomponents/p-e53d874b.entry.js +0 -5
- package/dist/webcomponents/p-e5540387.entry.js +0 -5
- package/dist/webcomponents/p-e9be4d3f.entry.js +0 -5
- package/dist/webcomponents/p-e9db9381.entry.js +0 -5
- package/dist/webcomponents/p-edca5de1.entry.js +0 -5
- package/dist/webcomponents/p-ee5b9fc9.entry.js +0 -5
- package/dist/webcomponents/p-f4ef8c63.entry.js +0 -5
- /package/dist/components/{p-5z6jgH1D.js → p-BNckUhK6.js} +0 -0
- /package/dist/webcomponents/{p-BIG-yees.js → p-Bt01zQ7-.js} +0 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{p as t,H as i,c as e,h as a,d as r,t as n}from"./p-Jk_KQE5V.js";import{g as o}from"./p-BeJxz5TQ.js";import{a as s,b as l,r as d,e as h}from"./p-DiLI514I.js";import{d as c}from"./p-DhvmHPp4.js";import{d as g}from"./p-BjeUETWJ.js";import{d as p}from"./p-uc8ABlC_.js";import{d as u}from"./p-DcVldfL0.js";import{d as b}from"./p-Nze3Utvd.js";import{d as m}from"./p-ZLoeVagg.js";import{d as v}from"./p-DYI30IZL.js";import{d as f}from"./p-Cd6udSDt.js";import{d as x}from"./p-DNJSSCNi.js";import{d as w}from"./p-D579DS7x.js";import{d as y}from"./p-D0QYZSoP.js";import{d as k}from"./p-gbYJ9sfc.js";import{d as z}from"./p-CuBgClZm.js";import{d as P}from"./p-Ci0_RqAE.js";const C=["dark"],E=["default","contextual"],M=t(class t extends i{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.pageChange=e(this,"pageChange",7),this.brPaginationPageChange=e(this,"brPaginationPageChange",6),this.perPageChange=e(this,"perPageChange",7),this.brPaginationPerPageChange=e(this,"brPaginationPerPageChange",6),this.isSmall=!1,this.goToOptionsReady=!1,this.goToSearchTerm="",this.ellipsisScrollOffsets={},this.ellipsisItemHeight=t.ELLIPSIS_ITEM_HEIGHT_FALLBACK,this.customId=o(),this.total=1,this.current=1,this.previousLabel="Voltar página",this.nextLabel="Página seguinte",this.ellipsisLabel="Abrir ou fechar a lista de paginação",this.density="medium",this.variant="default",this.controlled=!1,this.loading=!1,this.perPage=10,this.perPageOptions=[10,20,30],this.perPageLabel="Exibir",this.goToPageLabel="Página",this.itemsText="itens",this.ellipsisScrollFrame=null,this.pendingEllipsisScrollOffsets={},this.pendingEllipsisFocus=null,this.goToOptionsCache=null,this.pendingGoToResetFrame=null,this.goTo=t=>{if(this.loading)return;const i=this.clampPage(t);i!==this.effectiveCurrent&&(this.controlled||(this.current=i,void 0!==this.currentPage&&(this.currentPage=i)),this.pageChange.emit({page:i}),this.brPaginationPageChange.emit({page:i})),this.queueFocusAfterNavigation()},this.handlePrevClick=t=>{t.preventDefault(),this.effectiveCurrent>1&&this.goTo(this.effectiveCurrent-1)},this.handleNextClick=t=>{t.preventDefault();const i="contextual"===this.effectiveVariant?this.getTotalPages():this.getDefaultTotalPages();this.effectiveCurrent<i&&this.goTo(this.effectiveCurrent+1)},this.handlePageClickFactory=t=>i=>{i.preventDefault(),this.loading||(this.lastInteraction="number",this.goTo(t))},this.handleEllipsisItemClickFactory=t=>()=>{this.loading||(this.lastInteraction="ellipsis",this.goTo(t))},this.handlePageKeyDown=t=>{const i=t.target;if(!i?.matches('button.page[part="page"]')&&!i?.matches('.pagination-ellipsis br-button[slot="trigger"]'))return;const e=this.getVisiblePageButtons(),a=e.indexOf(i);if(-1!==a)switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.focusPageButtonByIndex(a+1);break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.focusPageButtonByIndex(a-1);break;case"Home":t.preventDefault(),this.focusPageButtonByIndex(0);break;case"End":t.preventDefault(),this.focusPageButtonByIndex(e.length-1)}},this.handleEllipsisScrollFactory=(t,i)=>e=>{const a=e.currentTarget;null!==a&&(this.pendingEllipsisScrollOffsets[t]=a.scrollTop,null===this.ellipsisScrollFrame&&(this.ellipsisScrollFrame=requestAnimationFrame((()=>{this.ellipsisScrollFrame=null;const t=this.pendingEllipsisScrollOffsets;this.pendingEllipsisScrollOffsets={},Object.entries(t).forEach((([t,e])=>{this.setEllipsisScrollOffset(t,e,i)}))}))))},this.handleEllipsisItemKeyDownFactory=(t,i)=>e=>{const a=e.currentTarget,r=Number(a?.getAttribute("data-page-index"));if(null!==a&&Number.isInteger(r))return"Escape"===e.key?(e.preventDefault(),e.stopImmediatePropagation(),void this.handleEllipsisEscape(a,t)):void this.handleEllipsisBoundaryNavigation(e,t,i,r)},this.handlePerPageChange=t=>{if(this.loading)return;const i=Number(t.detail);if(!Number.isFinite(i)||i===this.effectivePerPage)return;const e=s(this.el,"perPage",i,1,Number.MAX_SAFE_INTEGER,10);this.controlled||(this.perPage=e,this.current=this.clampPage(this.current));const a={perPage:e};this.perPageChange.emit(a),this.brPaginationPerPageChange.emit(a),this.lastInteraction="perPage",this.queueFocusAfterNavigation()},this.handleGoToPageChange=t=>{if(this.loading)return;const i=Number(t.detail);if(void 0!==this.pendingGoToPage)return;const e=this.clampPage(Number.isFinite(i)?i:this.effectiveCurrent);e!==this.effectiveCurrent&&(this.lastInteraction="goTo",this.pendingGoToPage=e,null!==this.pendingGoToResetFrame&&cancelAnimationFrame(this.pendingGoToResetFrame),this.pendingGoToResetFrame=requestAnimationFrame((()=>{this.pendingGoToResetFrame=null,this.pendingGoToPage=void 0})),this.goTo(e))},this.handleGoToSelectOpened=()=>{this.goToOptionsReady||(this.goToOptionsReady=!0)}}handleTotalChange(){this.goToOptionsCache=null,this.goToOptionsReady=!1,this.resetAllEllipsisScrollOffsets(),this.current=this.clampPage(this.current)}handleTotalPagesChange(t){this.goToOptionsCache=null,this.goToOptionsReady=!1,void 0!==t&&t!==this.total&&(this.total=t)}handleCurrentChange(t){this.resetAllEllipsisScrollOffsets();const i=this.clampPage(t);i!==t&&(this.current=i),void 0!==this.currentPage&&this.currentPage!==i&&(this.currentPage=i)}handleCurrentPageChange(t){void 0!==t&&t!==this.current&&(this.current=t)}handlePerPagePropChange(t){if(this.goToOptionsCache=null,this.goToOptionsReady=!1,"contextual"!==this.effectiveVariant)return;const i=this.effectivePerPage;i===t?this.current=this.clampPage(this.current):this.perPage=i}handleTotalItemsChange(){this.goToOptionsCache=null,this.goToOptionsReady=!1,"contextual"===this.effectiveVariant&&(this.current=this.clampPage(this.current))}handleDensityChange(){this.ellipsisScrollOffsets={},this.pendingEllipsisFocus=null,this.ellipsisItemHeight=this.computeItemHeightForDensity()}connectedCallback(){this.setupMediaQuery()}disconnectedCallback(){this.cleanupMediaQuery(),this.pendingEllipsisFocus=null,null!==this.ellipsisScrollFrame&&(cancelAnimationFrame(this.ellipsisScrollFrame),this.ellipsisScrollFrame=null),null!==this.pendingGoToResetFrame&&(cancelAnimationFrame(this.pendingGoToResetFrame),this.pendingGoToResetFrame=null),this.pendingGoToPage=void 0}componentWillLoad(){void 0!==this.totalPages&&(this.total=this.effectiveTotalPages??this.effectiveTotal),void 0!==this.currentPage&&(this.current=this.effectiveCurrentPage??this.effectiveCurrent),this.current=this.clampPage(this.current)}componentDidLoad(){this.ellipsisItemHeight=this.computeItemHeightForDensity()}componentDidRender(){this.flushPendingEllipsisFocus()}async setPage(t){this.goTo(t)}async goToPage(t){this.goTo(t)}computeItemHeightForDensity(){if("undefined"==typeof window)return t.ELLIPSIS_ITEM_HEIGHT_FALLBACK;const i=getComputedStyle(this.el),e=parseFloat(i.getPropertyValue("--spacing-scale-base")),a=parseFloat(i.getPropertyValue("--font-size-scale-base")),r=parseFloat(i.getPropertyValue("--font-line-height-medium"));return Number.isFinite(e)&&Number.isFinite(a)&&Number.isFinite(r)?Math.ceil(a*r+2*("large"===this.effectiveDensity?3*e:"medium"===this.effectiveDensity?2*e:e)):t.ELLIPSIS_ITEM_HEIGHT_FALLBACK}setupMediaQuery(){if("undefined"==typeof window||"function"!=typeof window.matchMedia)return;const t="(max-width: 575.98px)";this.cleanupMediaQuery();try{this.mqlSmall=window.matchMedia(t),this.isSmall=this.mqlSmall.matches,this.mqlSmallHandler=t=>{this.isSmall=t.matches};const i=this.mqlSmall;"function"==typeof this.mqlSmall.addEventListener?this.mqlSmall.addEventListener("change",this.mqlSmallHandler):"function"==typeof i.addListener&&i.addListener(this.mqlSmallHandler)}catch{console.warn(`Media Query "${t}" is not supported in this browser.`),this.mqlSmall=void 0,this.mqlSmallHandler=void 0,this.isSmall=!1}}cleanupMediaQuery(){if(void 0===this.mqlSmall||void 0===this.mqlSmallHandler)return this.mqlSmall=void 0,void(this.mqlSmallHandler=void 0);if("function"==typeof this.mqlSmall.removeEventListener)this.mqlSmall.removeEventListener("change",this.mqlSmallHandler);else{const t=this.mqlSmall;"function"==typeof t.removeListener&&t.removeListener(this.mqlSmallHandler)}this.mqlSmall=void 0,this.mqlSmallHandler=void 0}getCssClassMap(){const t=this.effectiveDensity;return{"br-pagination":!0,small:"small"===t,large:"large"===t,medium:"medium"===t,"dark-mode":"dark"===this.effectiveColorMode}}get effectiveDensity(){return l(this.el,this.density)}get effectiveColorMode(){return d(this.el,"colorMode",this.colorMode,C,void 0,{allowUndefined:!0})}get effectiveVariant(){return d(this.el,"variant",this.variant,E,"default")}get effectiveTotal(){return s(this.el,"total",this.total,1,Number.MAX_SAFE_INTEGER,1)}get effectiveTotalPages(){return s(this.el,"totalPages",this.totalPages,1,Number.MAX_SAFE_INTEGER,1,{allowUndefined:!0})}get effectiveCurrentPage(){return s(this.el,"currentPage",this.currentPage,1,Number.MAX_SAFE_INTEGER,1,{allowUndefined:!0})}get effectiveTotalItems(){return s(this.el,"totalItems",this.totalItems,0,Number.MAX_SAFE_INTEGER,0,{allowUndefined:!0})??0}get effectivePerPage(){return s(this.el,"perPage",this.perPage,1,Number.MAX_SAFE_INTEGER,10)}get effectivePerPageOptions(){const t=Array.isArray(this.perPageOptions)?this.perPageOptions.map((t=>Number(t))).filter((t=>Number.isInteger(t)&&t>=1)):[],i=[...new Set(t)];return Array.isArray(this.perPageOptions)&&0!==i.length&&i.length===this.perPageOptions.length||h(this.el,"perPageOptions",this.perPageOptions,"Informe uma lista com inteiros positivos, sem valores inválidos ou duplicados.","Aplicando fallback [10, 20, 30] quando nenhuma opção válida for informada e ignorando entradas inválidas."),i.length>0?i:[10,20,30]}getDefaultTotalPages(){return this.effectiveTotalPages??this.effectiveTotal}get effectiveCurrent(){return this.clampPage(s(this.el,"current",this.current,1,Number.MAX_SAFE_INTEGER,1))}clampPage(t){const i="contextual"===this.effectiveVariant?this.getTotalPages():this.getDefaultTotalPages(),e=Math.max(1,s(this.el,"current",t,1,Number.MAX_SAFE_INTEGER,1));return Math.min(e,i)}getVisiblePageButtons(){const t=this.el.shadowRoot;return null===t?[]:Array.from(t.querySelectorAll('button.page[part="page"], .pagination-ellipsis br-button[slot="trigger"]'))}focusPageButtonByIndex(t){const i=this.getVisiblePageButtons();if(0===i.length)return;const e=Math.max(0,Math.min(t,i.length-1)),a=i[e];i.forEach(((t,i)=>{t.tabIndex=i===e?0:-1})),a.focus()}queueFocusAfterNavigation(){("function"==typeof requestAnimationFrame?requestAnimationFrame:t=>setTimeout((()=>t(0)),0))((()=>{if("contextual"!==this.effectiveVariant){if("ellipsis"===this.lastInteraction||"number"===this.lastInteraction){const t=this.getVisiblePageButtons(),i=t.find((t=>"page"===t.getAttribute("aria-current")));null!=i&&(t.forEach((t=>{t.tabIndex=t===i?0:-1})),i.focus())}this.lastInteraction=void 0}else this.lastInteraction=void 0}))}getComputedNavAriaLabel(){if(this.ariaLabel&&(this.ariaLabel+"").trim().length>0)return this.ariaLabel;const t="contextual"===this.effectiveVariant?this.getTotalPages():this.getDefaultTotalPages();return`Paginação: página ${this.effectiveCurrent} de ${t}`}renderPageButton(t){return a("li",{key:t},a("button",{part:"page",class:{page:!0,active:t===this.effectiveCurrent},"aria-label":"Página "+t,"aria-current":t===this.effectiveCurrent?"page":null,type:"button",tabIndex:t===this.effectiveCurrent?0:-1,onClick:this.handlePageClickFactory(t),onKeyDown:this.handlePageKeyDown,disabled:this.loading},t))}getEllipsisRangeKey(t,i,e){return`${t}:${i}:${e}`}resetAllEllipsisScrollOffsets(){this.pendingEllipsisFocus=null,0!==Object.keys(this.ellipsisScrollOffsets).length&&(this.ellipsisScrollOffsets={})}resetEllipsisScrollOffset(t){if(this.pendingEllipsisFocus?.key===t&&(this.pendingEllipsisFocus=null),!(t in this.ellipsisScrollOffsets))return;const i={...this.ellipsisScrollOffsets};delete i[t],this.ellipsisScrollOffsets=i}getEllipsisMetrics(i,e){const a=this.ellipsisItemHeight,r=Math.max(0,e),n=r>t.ELLIPSIS_VISIBLE_ITEMS,o=Math.min(r,t.ELLIPSIS_VISIBLE_ITEMS),s=o*a,l=Math.max(0,r*a-s),d=Math.min(Math.max(0,n?this.ellipsisScrollOffsets[i]??0:0),l);if(0===r)return{shouldVirtualize:n,visibleItems:o,scrollTop:0,renderedStartIndex:0,renderedEndIndex:-1,viewportHeight:s};const h=Math.min(r-1,Math.floor(d/a)),c=n?Math.min(r-1,Math.ceil((d+s)/a)-1):r-1,g=n?Math.max(0,Math.min(r-1,h-t.ELLIPSIS_OVERSCAN)):0;return{shouldVirtualize:n,visibleItems:o,scrollTop:d,renderedStartIndex:g,renderedEndIndex:n?Math.max(g,Math.min(r-1,c+t.ELLIPSIS_OVERSCAN)):r-1,viewportHeight:s}}setEllipsisScrollOffset(i,e,a){const r=void 0===a?1/0:Math.max(0,a*this.ellipsisItemHeight-Math.min(a??0,t.ELLIPSIS_VISIBLE_ITEMS)*this.ellipsisItemHeight),n=Math.min(Math.max(0,e),r);(this.ellipsisScrollOffsets[i]??0)!==n&&(this.ellipsisScrollOffsets={...this.ellipsisScrollOffsets,[i]:n})}getEllipsisListElement(t){return this.el.shadowRoot?.querySelector(`.pagination-ellipsis[data-ellipsis-key="${t}"] br-list`)??null}focusEllipsisItemNow(t,i){const e=this.el.shadowRoot?.querySelector(`.pagination-ellipsis[data-ellipsis-key="${t}"] br-item[data-page-index="${i}"]`);return null!=e&&("setFocus"in e?(e.setFocus(),!0):(e.focus(),!0))}flushPendingEllipsisFocus(){const t=this.pendingEllipsisFocus;if(null===t)return;const i=this.getEllipsisListElement(t.key);null!==i&&(i.scrollTop=t.scrollTop,this.focusEllipsisItemNow(t.key,t.pageIndex)&&(this.pendingEllipsisFocus=null))}ensureEllipsisItemVisible(t,i,e){const{scrollTop:a,viewportHeight:r}=this.getEllipsisMetrics(t,i),n=this.ellipsisItemHeight,o=Math.max(0,i*n-r),s=e*n,l=s+n;let d=a;if(s<a?d=s:l>a+r&&(d=l-r),d=Math.min(Math.max(0,d),o),d!==a)return this.pendingEllipsisFocus={key:t,pageIndex:e,scrollTop:d},void this.setEllipsisScrollOffset(t,d,i);this.focusEllipsisItemNow(t,e)}getEllipsisBoundaryNavigationIndex(t,i,e,a,r,n){if("Home"===t)return 0;if("End"===t)return e-1;if("PageDown"===t)return Math.min(e-1,i+a);if("PageUp"===t)return Math.max(0,i-a);if("ArrowDown"===t){if(i===e-1)return i;if(i+1>n)return i+1}if("ArrowUp"===t){if(0===i)return i;if(i-1<r)return i-1}return null}handleEllipsisEscape(t,i){this.resetEllipsisScrollOffset(i);const e=t.closest("br-dropdown");e?.hide()}handleEllipsisBoundaryNavigation(t,i,e,a){const{visibleItems:r,renderedStartIndex:n,renderedEndIndex:o}=this.getEllipsisMetrics(i,e),s=this.getEllipsisBoundaryNavigationIndex(t.key,a,e,r,n,o);null!==s&&(t.preventDefault(),t.stopImmediatePropagation(),s!==a&&this.ensureEllipsisItemVisible(i,e,s))}renderEllipsis(t,i,e){if(i<t)return null;const r=i-t+1,n=this.getEllipsisRangeKey(e,t,i),{shouldVirtualize:o,renderedStartIndex:s,renderedEndIndex:l,viewportHeight:d}=this.getEllipsisMetrics(n,r),h=[];for(let i=s;i<=l;i++){const e=t+i;h.push(a("br-item",{key:`ellipsis-item-${n}-${e}`,"data-page-index":i,"prop:density":this.effectiveDensity,isButton:!0,role:"menuitem","aria-posinset":i+1,"aria-setsize":r,onBrDidClick:this.handleEllipsisItemClickFactory(e),onKeyDown:this.handleEllipsisItemKeyDownFactory(n,r),"aria-label":"Página "+e},e))}const c=s*this.ellipsisItemHeight,g=Math.max(0,r-l-1)*this.ellipsisItemHeight;return a("li",{class:"pagination-ellipsis",part:"ellipsis",key:"ellipsis-"+n,"data-ellipsis-key":n,"data-ellipsis-position":e},a("br-dropdown",null,a("br-button",{part:"ellipsis",exportparts:"button: ellipsis-button",slot:"trigger",shape:"circle",density:this.effectiveDensity,type:"button","prop:ariaLabel":this.ellipsisLabel,tabIndex:-1,disabled:this.loading,onClick:()=>{this.resetEllipsisScrollOffset(n)},onKeyDown:this.handlePageKeyDown},a("br-icon",{"attr:iconName":"fa6-solid:ellipsis",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.ellipsisLabel)),a("br-list",{class:{"has-scroll":o,"is-virtualized":o},density:this.effectiveDensity,slot:"target",role:"menu","aria-label":`Páginas ocultas de ${t} até ${i}`,"aria-orientation":"vertical",onScroll:o?this.handleEllipsisScrollFactory(n,r):void 0,style:o?{maxHeight:d+"px"}:void 0},o&&c>0?a("div",{class:"pagination-ellipsis-virtual-spacer",role:"presentation","aria-hidden":"true",style:{height:c+"px"}}):null,h,o&&g>0?a("div",{class:"pagination-ellipsis-virtual-spacer",role:"presentation","aria-hidden":"true",style:{height:g+"px"}}):null)))}renderPagesSmall(t,i){const e=[];if(t<=3){for(let i=1;i<=t;i++)e.push(this.renderPageButton(i));return e}return i<=2?(e.push(this.renderPageButton(1)),e.push(this.renderPageButton(2)),e.push(this.renderEllipsis(3,t-1,"start")),e.push(this.renderPageButton(t)),e):i>=t-1?(e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,t-2,"end")),e.push(this.renderPageButton(t-1)),e.push(this.renderPageButton(t)),e):(e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,i-1,"left")),e.push(this.renderPageButton(i)),e.push(this.renderEllipsis(i+1,t-1,"right")),e.push(this.renderPageButton(t)),e)}renderPagesStandard(t,i){const e=[];if(t<=7){for(let i=1;i<=t;i++)e.push(this.renderPageButton(i));return e}if(i<=4){for(let t=1;t<=4;t++)e.push(this.renderPageButton(t));return e.push(this.renderEllipsis(5,t-1,"start")),e.push(this.renderPageButton(t)),e}if(i>=t-3){e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,t-4,"end"));for(let i=t-3;i<=t;i++)e.push(this.renderPageButton(i));return e}e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,i-2,"left"));for(let t=i-1;t<=i+1;t++)e.push(this.renderPageButton(t));return e.push(this.renderEllipsis(i+2,t-1,"right")),e.push(this.renderPageButton(t)),e}renderPages(){const t=this.getDefaultTotalPages(),i=this.effectiveCurrent;return this.isSmall?this.renderPagesSmall(t,i):this.renderPagesStandard(t,i)}renderLoading(){return this.loading?a("span",{part:"loading",class:"pagination-loading",role:"status","aria-live":"polite","aria-label":"Carregando"},a("slot",{name:"loading"},a("br-loading",{size:"small",compact:!0,label:"Carregando"}))):null}getTotalPages(){return Math.max(1,Math.ceil(this.effectiveTotalItems/this.effectivePerPage))}getRangeInfo(){const t=this.effectiveTotalItems,i=this.effectivePerPage,e=this.effectiveCurrent;return 0===t?{start:0,end:0,total:t}:{start:(e-1)*i+1,end:Math.min(e*i,t),total:t}}handleContextualSelectChange(t){const e=t.composedPath().find((t=>t instanceof i&&"BR-SELECT"===t.tagName));if(!(e instanceof i)||"BR-SELECT"!==e.tagName)return;const a=e.parentElement;a?.classList.contains("pagination-per-page")?this.handlePerPageChange(t):a?.classList.contains("pagination-go-to-page")&&this.handleGoToPageChange(t)}renderPerPageDropdown(){return a("br-select",{part:"per-page",exportparts:"container: per-page-container, input: per-page-input, input-container: per-page-input-container, input-field: per-page-input-field, input-label: per-page-input-label, input-action: per-page-input-action, list: per-page-list",label:this.perPageLabel,isInline:!0,inputWidth:"88px",borderless:!0,density:this.effectiveDensity,disabled:this.loading},this.effectivePerPageOptions.map((t=>a("br-select-option",{key:t+"",value:t+"",selected:t===this.effectivePerPage},t))))}renderPerPageSelect(){return a("div",{class:"pagination-per-page",part:"per-page"},this.renderPerPageDropdown())}renderGoToSelect(){const i=this.getTotalPages(),e=i>t.LARGE_PAGE_THRESHOLD,r=Math.max(88,16*(i+"").length+48)+"px";return a("div",{class:"pagination-go-to-page d-none d-sm-flex ml-auto"},a("br-select",{part:"go-to",exportparts:"container: go-to-container, input: go-to-input, input-container: go-to-input-container, input-field: go-to-input-field, input-label: go-to-input-label, input-action: go-to-input-action, list: go-to-list",label:this.goToPageLabel,options:e?this.getWindowedGoToOptions(i,this.goToSearchTerm):this.goToOptionsReady?this.getGoToOptions(i):this.getCurrentGoToOption(i),onOpened:this.handleGoToSelectOpened,onClosed:()=>this.goToSearchTerm="",onBrSelectSearch:t=>this.goToSearchTerm=t.detail.query,value:this.effectiveCurrent+"",isInline:!0,inputWidth:r,density:this.effectiveDensity,"visible-items":7,filterable:!0,searchMode:e?"remote":"local",borderless:!0,disabled:this.loading}))}getWindowedGoToOptions(t,i){const e=Number.parseInt(i.trim(),10),a=Number.isInteger(e)&&e>=1&&e<=t?e:this.effectiveCurrent,r=i.trim()?10:50,n=new Set([1,t]);i.trim()||n.add(Math.min(Math.max(this.effectiveCurrent,1),t));for(let i=a-r;i<=a+r;i++)i>=1&&i<=t&&n.add(i);return i.trim()&&(!Number.isInteger(e)||e<1||e>t)?[]:[...n].sort(((t,i)=>t-i)).map((t=>({value:t+"",label:t+"",selected:t===this.effectiveCurrent})))}getCurrentGoToOption(t){const i=Math.min(Math.max(this.effectiveCurrent,1),t);return[{value:i+"",label:i+"",selected:!0}]}getGoToOptions(t){return null!==this.goToOptionsCache&&this.goToOptionsCache.length===t||(this.goToOptionsCache=Array.from({length:t},((t,i)=>{const e=i+1;return{value:e+"",label:e+""}}))),this.goToOptionsCache}renderContextual(){const{start:t,end:i,total:e}=this.getRangeInfo(),r=this.getTotalPages();return a("nav",{part:"nav",class:this.getCssClassMap(),"aria-busy":this.loading?"true":null,"aria-label":this.getComputedNavAriaLabel(),tabIndex:-1,"data-total":e,"data-current":this.effectiveCurrent,"data-per-page":this.effectivePerPage,id:this.customId},this.renderPerPageSelect(),a("span",{class:"br-divider d-none d-sm-block mx-3"}),a("div",{class:"pagination-information d-none d-sm-flex","aria-live":"polite"},a("slot",{name:"pagination-info"},a("span",{class:"current"},t),"–",a("span",{class:"per-page"},i)," de ",a("span",{class:"total"},e)," ",this.itemsText),this.renderLoading()),this.renderGoToSelect(),a("span",{class:"br-divider d-none d-sm-block mx-3"}),a("div",{class:"pagination-arrows ml-auto ml-sm-0"},a("br-button",{part:"prev-button",exportparts:"button: prev-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-previous-page":!0,"prop:ariaLabel":this.previousLabel,onClick:this.handlePrevClick,disabled:this.loading||this.effectiveCurrent<=1},a("br-icon",{"attr:iconName":"fa6-solid:angle-left",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.previousLabel)),a("br-button",{part:"next-button",exportparts:"button: next-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-next-page":!0,"prop:ariaLabel":this.nextLabel,onClick:this.handleNextClick,disabled:this.loading||this.effectiveCurrent>=r},a("br-icon",{"attr:iconName":"fa6-solid:angle-right",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.nextLabel))),a("span",{class:"visually-hidden","aria-live":"polite"},"Página ",this.effectiveCurrent," de ",r))}render(){if("contextual"===this.effectiveVariant)return a(r,null,this.renderContextual());const t=this.getDefaultTotalPages();return a(r,null,a("nav",{part:"nav",class:this.getCssClassMap(),"aria-busy":this.loading?"true":null,"aria-label":this.getComputedNavAriaLabel(),tabIndex:-1,"data-total":t,"data-current":this.effectiveCurrent,id:this.customId},a("ul",{part:"list"},a("li",null,a("br-button",{part:"prev-button",exportparts:"button: prev-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-previous-page":!0,"prop:ariaLabel":this.previousLabel,onClick:this.handlePrevClick,disabled:this.loading||this.effectiveCurrent<=1},a("br-icon",{"attr:iconName":"fa6-solid:angle-left",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.previousLabel))),this.renderPages(),this.loading?a("li",{part:"loading",class:"pagination-loading"},this.renderLoading()):null,a("li",null,a("br-button",{part:"next-button",exportparts:"button: next-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-next-page":!0,"prop:ariaLabel":this.nextLabel,onClick:this.handleNextClick,disabled:this.loading||this.effectiveCurrent>=t},a("br-icon",{"attr:iconName":"fa6-solid:angle-right",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.nextLabel)))),a("span",{class:"visually-hidden","aria-live":"polite"},"Página ",this.effectiveCurrent," de ",t)))}get el(){return this}static get watchers(){return{total:[{handleTotalChange:0}],totalPages:[{handleTotalPagesChange:0}],current:[{handleCurrentChange:0}],currentPage:[{handleCurrentPageChange:0}],perPage:[{handlePerPagePropChange:0}],totalItems:[{handleTotalItemsChange:0}],density:[{handleDensityChange:0}]}}static get style(){return'*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}pre code,.pre code{display:inline;padding:0}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.br-pagination{--pagination-margin:var(--spacing-scale-base);--pagination-select-width:88px;--pagination-size:var(--pagination-medium);--pagination-small:24px;--pagination-medium:32px;--pagination-large:40px;color:var(--color);display:flex;flex-wrap:wrap;font-weight:var(--font-weight);justify-content:center}.br-pagination ul{align-items:center;display:flex;list-style:none;margin:0;padding:0}.br-pagination li{padding:0}.br-pagination.dark-mode .page{color:var(--color-dark)}.br-pagination.dark-mode .br-select .br-item label{color:var(--color-dark)}.br-pagination .page:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}.br-pagination .page{align-items:center;border:1px solid rgba(0,0,0,0);border-radius:100em;color:var(--interactive);display:inline-flex;justify-content:center;margin:0 calc(var(--pagination-margin)*.5);min-height:var(--pagination-size);min-width:var(--pagination-size);padding:0 var(--spacing-scale-base);white-space:nowrap}.br-pagination .page.active{background:var(--active);color:var(--color-dark);font-weight:var(--font-weight-semi-bold)}.br-pagination .pagination-ellipsis{margin:0 calc(var(--pagination-margin)*.5);position:relative}.br-pagination .pagination-ellipsis .br-button{--button-size:var(--pagination-size)}.br-pagination .pagination-ellipsis .br-list::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}.br-pagination .pagination-ellipsis .br-list::-webkit-scrollbar-track{background:var(--gray-10)}.br-pagination .pagination-ellipsis .br-list::-webkit-scrollbar-thumb{background:var(--gray-30)}.br-pagination .pagination-ellipsis .br-list:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}.br-pagination .pagination-ellipsis .br-list{max-height:220px;min-width:4em;overflow-y:auto;z-index:var(--z-index-layer-1)}.br-pagination.small{--pagination-size:var(--pagination-small)}.br-pagination.medium{--pagination-size:var(--pagination-medium)}.br-pagination.large{--pagination-size:var(--pagination-large)}.br-pagination .pagination-information{align-items:center;display:flex}.br-pagination .pagination-per-page,.br-pagination .pagination-go-to-page{align-items:center;display:flex}.br-pagination .pagination-per-page .br-input,.br-pagination .pagination-go-to-page .br-input{align-items:center;display:flex}.br-pagination .pagination-per-page .br-input label,.br-pagination .pagination-go-to-page .br-input label{font-weight:var(--font-weight-regular);margin-bottom:0;margin-right:var(--spacing-scale-base);padding-bottom:0}.br-pagination .pagination-per-page .br-input input,.br-pagination .pagination-go-to-page .br-input input{--input-size:var(--pagination-medium);padding-left:var(--spacing-scale-base);padding-right:calc(var(--spacing-scale-baseh) + 32px);text-align:right;width:var(--pagination-select-width)}.br-pagination .pagination-per-page .br-input input:not(:focus),.br-pagination .pagination-go-to-page .br-input input:not(:focus){border-color:rgba(0,0,0,0)}.br-pagination .pagination-per-page .br-list,.br-pagination .pagination-go-to-page .br-list{min-width:5em;right:0;width:auto}.br-pagination .pagination-arrows{align-items:center;display:flex}.br-pagination .br-select .br-input .br-button{bottom:auto;margin-top:0;position:absolute;right:var(--spacing-scale-half);top:auto;transform:none}.br-pagination .br-divider{border-right-width:var(--divider-size);border-top:0}.br-pagination.inverted,.br-pagination.dark-mode{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.br-pagination.inverted.inverted .br-input,.br-pagination.inverted.inverted .br-input label,.br-pagination.inverted.dark-mode .br-input,.br-pagination.inverted.dark-mode .br-input label,.br-pagination.dark-mode.inverted .br-input,.br-pagination.dark-mode.inverted .br-input label,.br-pagination.dark-mode.dark-mode .br-input,.br-pagination.dark-mode.dark-mode .br-input label{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}.br-pagination.inverted .page.active,.br-pagination.dark-mode .page.active{--interactive-rgb:var(--active-rgb);background-color:var(--background-light);color:var(--active)}.br-pagination .input-group .input-icon{display:none}.br-divider,hr{--divider-size:var(--surface-width-sm);border-color:var(--border-color);border-style:solid;border-width:0;border-top-width:var(--divider-size);display:block}.br-divider.content,hr.content{align-items:center;border:0;display:flex;justify-content:center}.br-divider.content::after,.br-divider.content::before,hr.content::after,hr.content::before{border-color:var(--border-color);border-style:solid;border-width:0;border-top-width:var(--divider-size);content:"";flex:1}.br-divider.content::after,hr.content::after{margin-left:var(--spacing-scale-base)}.br-divider.content::before,hr.content::before{margin-right:var(--spacing-scale-base)}.br-divider.vertical,hr.vertical{align-self:stretch;border-right-width:var(--divider-size);border-top-width:0}.br-divider.vertical.content,hr.vertical.content{flex-direction:column}.br-divider.vertical.content::after,.br-divider.vertical.content::before,hr.vertical.content::after,hr.vertical.content::before{border-right-width:var(--divider-size);border-top-width:0;margin:0}.br-divider.inverted,.br-divider.dark-mode,hr.inverted,hr.dark-mode{--border-color:var(--pure-0)}.br-divider.dashed,hr.dashed{border-style:dashed}.br-divider.sm,hr.sm{--divider-size:var(--surface-width-sm)}hr{--divider-padding:var(--spacing-scale-2x);margin:var(--divider-padding) 0}:host{display:block}:host .pagination-ellipsis br-list{max-height:none;overflow:visible}:host .pagination-ellipsis br-list.has-scroll{max-height:220px;overflow-y:auto}:host .pagination-ellipsis br-list.has-scroll::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}:host .pagination-ellipsis br-list.has-scroll::-webkit-scrollbar-track{background:var(--gray-10)}:host .pagination-ellipsis br-list.has-scroll::-webkit-scrollbar-thumb{background:var(--gray-30)}:host .pagination-ellipsis br-list.has-scroll:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}:host .pagination-ellipsis .pagination-ellipsis-virtual-spacer{display:block;width:100%}:host .br-pagination button.page:not(.active){background-color:rgba(0,0,0,0)}:host([variant=contextual]) .br-pagination{justify-content:space-between}.pagination-per-page br-select,.pagination-go-to-page br-select{--br-input-margin-bottom:0}.pagination-per-page br-select::part(input-label),.pagination-go-to-page br-select::part(input-label){font-weight:var(--font-weight-regular);margin-bottom:0;margin-right:var(--spacing-scale-base);padding-bottom:0}.pagination-per-page br-select::part(input-field),.pagination-go-to-page br-select::part(input-field){--input-size:var(--pagination-medium);padding-left:var(--spacing-scale-base);padding-right:calc(var(--spacing-scale-baseh) + 32px);text-align:right}:host(:not([variant=contextual])) .br-pagination{justify-content:center}:host([variant=contextual]) .br-pagination ul{justify-content:center;width:100%}:host([color-mode=dark]) br-select{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}:host([color-mode=dark]) br-select::part(label){color:var(--color-dark)}:host([color-mode=dark]) .br-pagination a.page:not(.active),:host([color-mode=dark]) .br-pagination button.page:not(.active){color:var(--color);background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.br-pagination.dark-mode .br-select .br-item label,.br-pagination.dark-mode .page{color:var(--color-dark);background-color:rgba(0,0,0,0)}:host([color-mode=dark]) .br-pagination a.page:not(.active):hover,:host([color-mode=dark]) .br-pagination a.page:not(.active):focus,:host([color-mode=dark]) .br-pagination a.page:not(.active):focus-visible,:host([color-mode=dark]) .br-pagination button.page:not(.active):hover,:host([color-mode=dark]) .br-pagination button.page:not(.active):focus,:host([color-mode=dark]) .br-pagination button.page:not(.active):focus-visible{color:var(--interactive)}.br-pagination .page:focus-visible{outline:var(--focus) var(--focus-style) var(--focus-width);outline-offset:var(--focus-offset)}.pagination-ellipsis br-button::part(button){--button-size:var(--pagination-size)}.pagination-ellipsis br-button:focus-visible{outline:var(--focus) var(--focus-style) var(--focus-width);outline-offset:var(--focus-offset);border-radius:50%}.br-pagination>ul{position:relative}:host([loading]) .br-pagination>ul>li.pagination-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;visibility:visible}:host([loading]) .br-pagination>ul>li.pagination-loading .pagination-loading{display:flex;align-items:center;justify-content:center}:host([loading]) .br-pagination>ul>li:not(.pagination-loading):not(:first-child):not(:last-child){visibility:hidden}.pagination-information{position:relative}.pagination-information .pagination-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([color-mode=dark]) br-select::part(radio-label){color:var(--color-dark)}'}},[257,"br-pagination",{colorMode:[513,"color-mode"],customId:[513,"custom-id"],total:[514],totalPages:[514,"total-pages"],current:[1538],currentPage:[1538,"current-page"],ariaLabel:[513,"aria-label"],previousLabel:[1,"previous-label"],nextLabel:[1,"next-label"],ellipsisLabel:[1,"ellipsis-label"],density:[513],variant:[513],controlled:[516],loading:[516],totalItems:[514,"total-items"],perPage:[1538,"per-page"],perPageOptions:[16],perPageLabel:[1,"per-page-label"],goToPageLabel:[1,"go-to-page-label"],itemsText:[1,"items-text"],isSmall:[32],goToOptionsReady:[32],goToSearchTerm:[32],ellipsisScrollOffsets:[32],ellipsisItemHeight:[32],setPage:[64],goToPage:[64]},[[0,"valueChange","handleContextualSelectChange"]],{total:[{handleTotalChange:0}],totalPages:[{handleTotalPagesChange:0}],current:[{handleCurrentChange:0}],currentPage:[{handleCurrentPageChange:0}],perPage:[{handlePerPagePropChange:0}],totalItems:[{handleTotalItemsChange:0}],density:[{handleDensityChange:0}]}]);M.ELLIPSIS_VISIBLE_ITEMS=4,M.ELLIPSIS_ITEM_HEIGHT_FALLBACK=56,M.ELLIPSIS_OVERSCAN=1,M.LARGE_PAGE_THRESHOLD=1e4;const I=M,j=function(){"undefined"!=typeof customElements&&["br-pagination","br-button","br-checkbox","br-collapse","br-dropdown","br-icon","br-input","br-item","br-list","br-loading","br-message","br-select","br-select-input","br-select-list","br-select-option"].forEach((t=>{switch(t){case"br-pagination":customElements.get(n(t))||customElements.define(n(t),M);break;case"br-button":customElements.get(n(t))||c();break;case"br-checkbox":customElements.get(n(t))||g();break;case"br-collapse":customElements.get(n(t))||p();break;case"br-dropdown":customElements.get(n(t))||u();break;case"br-icon":customElements.get(n(t))||b();break;case"br-input":customElements.get(n(t))||m();break;case"br-item":customElements.get(n(t))||v();break;case"br-list":customElements.get(n(t))||f();break;case"br-loading":customElements.get(n(t))||x();break;case"br-message":customElements.get(n(t))||w();break;case"br-select":customElements.get(n(t))||y();break;case"br-select-input":customElements.get(n(t))||k();break;case"br-select-list":customElements.get(n(t))||z();break;case"br-select-option":customElements.get(n(t))||P()}}))};export{I as BrPagination,j as defineCustomElement}
|
|
5
|
+
import{p as t,H as i,c as e,h as a,d as r,t as n}from"./p-Jk_KQE5V.js";import{g as o}from"./p-BeJxz5TQ.js";import{a as s,b as l,r as d,e as h}from"./p-DiLI514I.js";import{d as c}from"./p-DoWy_P8b.js";import{d as g}from"./p-jvKQA6x7.js";import{d as p}from"./p-Zb9nyfTY.js";import{d as u}from"./p-DcMjwTqu.js";import{d as b}from"./p-HbhTnepI.js";import{d as m}from"./p-Or3FLzbz.js";import{d as v}from"./p-CYZVdKeO.js";import{d as f}from"./p-CFXey8i8.js";import{d as x}from"./p-B468MCYC.js";import{d as w}from"./p-SWQlgYWR.js";import{d as y}from"./p-CAgbUwsx.js";import{d as k}from"./p-DU54cqCf.js";import{d as z}from"./p-Dd1qCWAK.js";import{d as P}from"./p-CyXVsiz9.js";import{d as C}from"./p-BOWQIHQA.js";const M=["dark"],E=["default","contextual"],I=t(class t extends i{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.pageChange=e(this,"pageChange",7),this.brPaginationPageChange=e(this,"brPaginationPageChange",6),this.perPageChange=e(this,"perPageChange",7),this.brPaginationPerPageChange=e(this,"brPaginationPerPageChange",6),this.isSmall=!1,this.goToOptionsReady=!1,this.goToSearchTerm="",this.ellipsisScrollOffsets={},this.ellipsisItemHeight=t.ELLIPSIS_ITEM_HEIGHT_FALLBACK,this.customId=o(),this.total=1,this.current=1,this.previousLabel="Voltar página",this.nextLabel="Página seguinte",this.ellipsisLabel="Abrir ou fechar a lista de paginação",this.density="medium",this.variant="default",this.controlled=!1,this.loading=!1,this.perPage=10,this.perPageOptions=[10,20,30],this.perPageLabel="Exibir",this.goToPageLabel="Página",this.itemsText="itens",this.ellipsisScrollFrame=null,this.pendingEllipsisScrollOffsets={},this.pendingEllipsisFocus=null,this.goToOptionsCache=null,this.pendingGoToResetFrame=null,this.goTo=t=>{if(this.loading)return;const i=this.clampPage(t);i!==this.effectiveCurrent&&(this.controlled||(this.current=i,void 0!==this.currentPage&&(this.currentPage=i)),this.pageChange.emit({page:i}),this.brPaginationPageChange.emit({page:i})),this.queueFocusAfterNavigation()},this.handlePrevClick=t=>{t.preventDefault(),this.effectiveCurrent>1&&this.goTo(this.effectiveCurrent-1)},this.handleNextClick=t=>{t.preventDefault();const i="contextual"===this.effectiveVariant?this.getTotalPages():this.getDefaultTotalPages();this.effectiveCurrent<i&&this.goTo(this.effectiveCurrent+1)},this.handlePageClickFactory=t=>i=>{i.preventDefault(),this.loading||(this.lastInteraction="number",this.goTo(t))},this.handleEllipsisItemClickFactory=t=>()=>{this.loading||(this.lastInteraction="ellipsis",this.goTo(t))},this.handlePageKeyDown=t=>{const i=t.target;if(!i?.matches('button.page[part="page"]')&&!i?.matches('.pagination-ellipsis br-button[slot="trigger"]'))return;const e=this.getVisiblePageButtons(),a=e.indexOf(i);if(-1!==a)switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this.focusPageButtonByIndex(a+1);break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.focusPageButtonByIndex(a-1);break;case"Home":t.preventDefault(),this.focusPageButtonByIndex(0);break;case"End":t.preventDefault(),this.focusPageButtonByIndex(e.length-1)}},this.handleEllipsisScrollFactory=(t,i)=>e=>{const a=e.currentTarget;null!==a&&(this.pendingEllipsisScrollOffsets[t]=a.scrollTop,null===this.ellipsisScrollFrame&&(this.ellipsisScrollFrame=requestAnimationFrame((()=>{this.ellipsisScrollFrame=null;const t=this.pendingEllipsisScrollOffsets;this.pendingEllipsisScrollOffsets={},Object.entries(t).forEach((([t,e])=>{this.setEllipsisScrollOffset(t,e,i)}))}))))},this.handleEllipsisItemKeyDownFactory=(t,i)=>e=>{const a=e.currentTarget,r=Number(a?.getAttribute("data-page-index"));if(null!==a&&Number.isInteger(r))return"Escape"===e.key?(e.preventDefault(),e.stopImmediatePropagation(),void this.handleEllipsisEscape(a,t)):void this.handleEllipsisBoundaryNavigation(e,t,i,r)},this.handlePerPageChange=t=>{if(this.loading)return;const i=Number(t.detail);if(!Number.isFinite(i)||i===this.effectivePerPage)return;const e=s(this.el,"perPage",i,1,Number.MAX_SAFE_INTEGER,10);this.controlled||(this.perPage=e,this.current=this.clampPage(this.current));const a={perPage:e};this.perPageChange.emit(a),this.brPaginationPerPageChange.emit(a),this.lastInteraction="perPage",this.queueFocusAfterNavigation()},this.handleGoToPageChange=t=>{if(this.loading)return;const i=Number(t.detail);if(void 0!==this.pendingGoToPage)return;const e=this.clampPage(Number.isFinite(i)?i:this.effectiveCurrent);e!==this.effectiveCurrent&&(this.lastInteraction="goTo",this.pendingGoToPage=e,null!==this.pendingGoToResetFrame&&cancelAnimationFrame(this.pendingGoToResetFrame),this.pendingGoToResetFrame=requestAnimationFrame((()=>{this.pendingGoToResetFrame=null,this.pendingGoToPage=void 0})),this.goTo(e))},this.handleGoToSelectOpened=()=>{this.goToOptionsReady||(this.goToOptionsReady=!0)}}handleTotalChange(){this.goToOptionsCache=null,this.goToOptionsReady=!1,this.resetAllEllipsisScrollOffsets(),this.current=this.clampPage(this.current)}handleTotalPagesChange(t){this.goToOptionsCache=null,this.goToOptionsReady=!1,void 0!==t&&t!==this.total&&(this.total=t)}handleCurrentChange(t){this.resetAllEllipsisScrollOffsets();const i=this.clampPage(t);i!==t&&(this.current=i),void 0!==this.currentPage&&this.currentPage!==i&&(this.currentPage=i)}handleCurrentPageChange(t){void 0!==t&&t!==this.current&&(this.current=t)}handlePerPagePropChange(t){if(this.goToOptionsCache=null,this.goToOptionsReady=!1,"contextual"!==this.effectiveVariant)return;const i=this.effectivePerPage;i===t?this.current=this.clampPage(this.current):this.perPage=i}handleTotalItemsChange(){this.goToOptionsCache=null,this.goToOptionsReady=!1,"contextual"===this.effectiveVariant&&(this.current=this.clampPage(this.current))}handleDensityChange(){this.ellipsisScrollOffsets={},this.pendingEllipsisFocus=null,this.ellipsisItemHeight=this.computeItemHeightForDensity()}connectedCallback(){this.setupMediaQuery()}disconnectedCallback(){this.cleanupMediaQuery(),this.pendingEllipsisFocus=null,null!==this.ellipsisScrollFrame&&(cancelAnimationFrame(this.ellipsisScrollFrame),this.ellipsisScrollFrame=null),null!==this.pendingGoToResetFrame&&(cancelAnimationFrame(this.pendingGoToResetFrame),this.pendingGoToResetFrame=null),this.pendingGoToPage=void 0}componentWillLoad(){void 0!==this.totalPages&&(this.total=this.effectiveTotalPages??this.effectiveTotal),void 0!==this.currentPage&&(this.current=this.effectiveCurrentPage??this.effectiveCurrent),this.current=this.clampPage(this.current)}componentDidLoad(){this.ellipsisItemHeight=this.computeItemHeightForDensity()}componentDidRender(){this.flushPendingEllipsisFocus()}async setPage(t){this.goTo(t)}async goToPage(t){this.goTo(t)}computeItemHeightForDensity(){if("undefined"==typeof window)return t.ELLIPSIS_ITEM_HEIGHT_FALLBACK;const i=getComputedStyle(this.el),e=parseFloat(i.getPropertyValue("--spacing-scale-base")),a=parseFloat(i.getPropertyValue("--font-size-scale-base")),r=parseFloat(i.getPropertyValue("--font-line-height-medium"));return Number.isFinite(e)&&Number.isFinite(a)&&Number.isFinite(r)?Math.ceil(a*r+2*("large"===this.effectiveDensity?3*e:"medium"===this.effectiveDensity?2*e:e)):t.ELLIPSIS_ITEM_HEIGHT_FALLBACK}setupMediaQuery(){if("undefined"==typeof window||"function"!=typeof window.matchMedia)return;const t="(max-width: 575.98px)";this.cleanupMediaQuery();try{this.mqlSmall=window.matchMedia(t),this.isSmall=this.mqlSmall.matches,this.mqlSmallHandler=t=>{this.isSmall=t.matches};const i=this.mqlSmall;"function"==typeof this.mqlSmall.addEventListener?this.mqlSmall.addEventListener("change",this.mqlSmallHandler):"function"==typeof i.addListener&&i.addListener(this.mqlSmallHandler)}catch{console.warn(`Media Query "${t}" is not supported in this browser.`),this.mqlSmall=void 0,this.mqlSmallHandler=void 0,this.isSmall=!1}}cleanupMediaQuery(){if(void 0===this.mqlSmall||void 0===this.mqlSmallHandler)return this.mqlSmall=void 0,void(this.mqlSmallHandler=void 0);if("function"==typeof this.mqlSmall.removeEventListener)this.mqlSmall.removeEventListener("change",this.mqlSmallHandler);else{const t=this.mqlSmall;"function"==typeof t.removeListener&&t.removeListener(this.mqlSmallHandler)}this.mqlSmall=void 0,this.mqlSmallHandler=void 0}getCssClassMap(){const t=this.effectiveDensity;return{"br-pagination":!0,small:"small"===t,large:"large"===t,medium:"medium"===t,"dark-mode":"dark"===this.effectiveColorMode}}get effectiveDensity(){return l(this.el,this.density)}get effectiveColorMode(){return d(this.el,"colorMode",this.colorMode,M,void 0,{allowUndefined:!0})}get effectiveVariant(){return d(this.el,"variant",this.variant,E,"default")}get effectiveTotal(){return s(this.el,"total",this.total,1,Number.MAX_SAFE_INTEGER,1)}get effectiveTotalPages(){return s(this.el,"totalPages",this.totalPages,1,Number.MAX_SAFE_INTEGER,1,{allowUndefined:!0})}get effectiveCurrentPage(){return s(this.el,"currentPage",this.currentPage,1,Number.MAX_SAFE_INTEGER,1,{allowUndefined:!0})}get effectiveTotalItems(){return s(this.el,"totalItems",this.totalItems,0,Number.MAX_SAFE_INTEGER,0,{allowUndefined:!0})??0}get effectivePerPage(){return s(this.el,"perPage",this.perPage,1,Number.MAX_SAFE_INTEGER,10)}get effectivePerPageOptions(){const t=Array.isArray(this.perPageOptions)?this.perPageOptions.map((t=>Number(t))).filter((t=>Number.isInteger(t)&&t>=1)):[],i=[...new Set(t)];return Array.isArray(this.perPageOptions)&&0!==i.length&&i.length===this.perPageOptions.length||h(this.el,"perPageOptions",this.perPageOptions,"Informe uma lista com inteiros positivos, sem valores inválidos ou duplicados.","Aplicando fallback [10, 20, 30] quando nenhuma opção válida for informada e ignorando entradas inválidas."),i.length>0?i:[10,20,30]}getDefaultTotalPages(){return this.effectiveTotalPages??this.effectiveTotal}get effectiveCurrent(){return this.clampPage(s(this.el,"current",this.current,1,Number.MAX_SAFE_INTEGER,1))}clampPage(t){const i="contextual"===this.effectiveVariant?this.getTotalPages():this.getDefaultTotalPages(),e=Math.max(1,s(this.el,"current",t,1,Number.MAX_SAFE_INTEGER,1));return Math.min(e,i)}getVisiblePageButtons(){const t=this.el.shadowRoot;return null===t?[]:Array.from(t.querySelectorAll('button.page[part="page"], .pagination-ellipsis br-button[slot="trigger"]'))}focusPageButtonByIndex(t){const i=this.getVisiblePageButtons();if(0===i.length)return;const e=Math.max(0,Math.min(t,i.length-1)),a=i[e];i.forEach(((t,i)=>{t.tabIndex=i===e?0:-1})),a.focus()}queueFocusAfterNavigation(){("function"==typeof requestAnimationFrame?requestAnimationFrame:t=>setTimeout((()=>t(0)),0))((()=>{if("contextual"!==this.effectiveVariant){if("ellipsis"===this.lastInteraction||"number"===this.lastInteraction){const t=this.getVisiblePageButtons(),i=t.find((t=>"page"===t.getAttribute("aria-current")));null!=i&&(t.forEach((t=>{t.tabIndex=t===i?0:-1})),i.focus())}this.lastInteraction=void 0}else this.lastInteraction=void 0}))}getComputedNavAriaLabel(){if(this.ariaLabel&&(this.ariaLabel+"").trim().length>0)return this.ariaLabel;const t="contextual"===this.effectiveVariant?this.getTotalPages():this.getDefaultTotalPages();return`Paginação: página ${this.effectiveCurrent} de ${t}`}renderPageButton(t){return a("li",{key:t},a("button",{part:"page",class:{page:!0,active:t===this.effectiveCurrent},"aria-label":"Página "+t,"aria-current":t===this.effectiveCurrent?"page":null,type:"button",tabIndex:t===this.effectiveCurrent?0:-1,onClick:this.handlePageClickFactory(t),onKeyDown:this.handlePageKeyDown,disabled:this.loading},t))}getEllipsisRangeKey(t,i,e){return`${t}:${i}:${e}`}resetAllEllipsisScrollOffsets(){this.pendingEllipsisFocus=null,0!==Object.keys(this.ellipsisScrollOffsets).length&&(this.ellipsisScrollOffsets={})}resetEllipsisScrollOffset(t){if(this.pendingEllipsisFocus?.key===t&&(this.pendingEllipsisFocus=null),!(t in this.ellipsisScrollOffsets))return;const i={...this.ellipsisScrollOffsets};delete i[t],this.ellipsisScrollOffsets=i}getEllipsisMetrics(i,e){const a=this.ellipsisItemHeight,r=Math.max(0,e),n=r>t.ELLIPSIS_VISIBLE_ITEMS,o=Math.min(r,t.ELLIPSIS_VISIBLE_ITEMS),s=o*a,l=Math.max(0,r*a-s),d=Math.min(Math.max(0,n?this.ellipsisScrollOffsets[i]??0:0),l);if(0===r)return{shouldVirtualize:n,visibleItems:o,scrollTop:0,renderedStartIndex:0,renderedEndIndex:-1,viewportHeight:s};const h=Math.min(r-1,Math.floor(d/a)),c=n?Math.min(r-1,Math.ceil((d+s)/a)-1):r-1,g=n?Math.max(0,Math.min(r-1,h-t.ELLIPSIS_OVERSCAN)):0;return{shouldVirtualize:n,visibleItems:o,scrollTop:d,renderedStartIndex:g,renderedEndIndex:n?Math.max(g,Math.min(r-1,c+t.ELLIPSIS_OVERSCAN)):r-1,viewportHeight:s}}setEllipsisScrollOffset(i,e,a){const r=void 0===a?1/0:Math.max(0,a*this.ellipsisItemHeight-Math.min(a??0,t.ELLIPSIS_VISIBLE_ITEMS)*this.ellipsisItemHeight),n=Math.min(Math.max(0,e),r);(this.ellipsisScrollOffsets[i]??0)!==n&&(this.ellipsisScrollOffsets={...this.ellipsisScrollOffsets,[i]:n})}getEllipsisListElement(t){return this.el.shadowRoot?.querySelector(`.pagination-ellipsis[data-ellipsis-key="${t}"] br-list`)??null}focusEllipsisItemNow(t,i){const e=this.el.shadowRoot?.querySelector(`.pagination-ellipsis[data-ellipsis-key="${t}"] br-item[data-page-index="${i}"]`);return null!=e&&("setFocus"in e?(e.setFocus(),!0):(e.focus(),!0))}flushPendingEllipsisFocus(){const t=this.pendingEllipsisFocus;if(null===t)return;const i=this.getEllipsisListElement(t.key);null!==i&&(i.scrollTop=t.scrollTop,this.focusEllipsisItemNow(t.key,t.pageIndex)&&(this.pendingEllipsisFocus=null))}ensureEllipsisItemVisible(t,i,e){const{scrollTop:a,viewportHeight:r}=this.getEllipsisMetrics(t,i),n=this.ellipsisItemHeight,o=Math.max(0,i*n-r),s=e*n,l=s+n;let d=a;if(s<a?d=s:l>a+r&&(d=l-r),d=Math.min(Math.max(0,d),o),d!==a)return this.pendingEllipsisFocus={key:t,pageIndex:e,scrollTop:d},void this.setEllipsisScrollOffset(t,d,i);this.focusEllipsisItemNow(t,e)}getEllipsisBoundaryNavigationIndex(t,i,e,a,r,n){if("Home"===t)return 0;if("End"===t)return e-1;if("PageDown"===t)return Math.min(e-1,i+a);if("PageUp"===t)return Math.max(0,i-a);if("ArrowDown"===t){if(i===e-1)return i;if(i+1>n)return i+1}if("ArrowUp"===t){if(0===i)return i;if(i-1<r)return i-1}return null}handleEllipsisEscape(t,i){this.resetEllipsisScrollOffset(i);const e=t.closest("br-dropdown");e?.hide()}handleEllipsisBoundaryNavigation(t,i,e,a){const{visibleItems:r,renderedStartIndex:n,renderedEndIndex:o}=this.getEllipsisMetrics(i,e),s=this.getEllipsisBoundaryNavigationIndex(t.key,a,e,r,n,o);null!==s&&(t.preventDefault(),t.stopImmediatePropagation(),s!==a&&this.ensureEllipsisItemVisible(i,e,s))}renderEllipsis(t,i,e){if(i<t)return null;const r=i-t+1,n=this.getEllipsisRangeKey(e,t,i),{shouldVirtualize:o,renderedStartIndex:s,renderedEndIndex:l,viewportHeight:d}=this.getEllipsisMetrics(n,r),h=[];for(let i=s;i<=l;i++){const e=t+i;h.push(a("br-item",{key:`ellipsis-item-${n}-${e}`,"data-page-index":i,"prop:density":this.effectiveDensity,isButton:!0,role:"menuitem","aria-posinset":i+1,"aria-setsize":r,onBrDidClick:this.handleEllipsisItemClickFactory(e),onKeyDown:this.handleEllipsisItemKeyDownFactory(n,r),"aria-label":"Página "+e},e))}const c=s*this.ellipsisItemHeight,g=Math.max(0,r-l-1)*this.ellipsisItemHeight;return a("li",{class:"pagination-ellipsis",part:"ellipsis",key:"ellipsis-"+n,"data-ellipsis-key":n,"data-ellipsis-position":e},a("br-dropdown",null,a("br-button",{part:"ellipsis",exportparts:"button: ellipsis-button",slot:"trigger",shape:"circle",density:this.effectiveDensity,type:"button","prop:ariaLabel":this.ellipsisLabel,tabIndex:-1,disabled:this.loading,onClick:()=>{this.resetEllipsisScrollOffset(n)},onKeyDown:this.handlePageKeyDown},a("br-icon",{"attr:iconName":"fa6-solid:ellipsis",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.ellipsisLabel)),a("br-list",{class:{"has-scroll":o,"is-virtualized":o},density:this.effectiveDensity,slot:"target",role:"menu","aria-label":`Páginas ocultas de ${t} até ${i}`,"aria-orientation":"vertical",onScroll:o?this.handleEllipsisScrollFactory(n,r):void 0,style:o?{maxHeight:d+"px"}:void 0},o&&c>0?a("div",{class:"pagination-ellipsis-virtual-spacer",role:"presentation","aria-hidden":"true",style:{height:c+"px"}}):null,h,o&&g>0?a("div",{class:"pagination-ellipsis-virtual-spacer",role:"presentation","aria-hidden":"true",style:{height:g+"px"}}):null)))}renderPagesSmall(t,i){const e=[];if(t<=3){for(let i=1;i<=t;i++)e.push(this.renderPageButton(i));return e}return i<=2?(e.push(this.renderPageButton(1)),e.push(this.renderPageButton(2)),e.push(this.renderEllipsis(3,t-1,"start")),e.push(this.renderPageButton(t)),e):i>=t-1?(e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,t-2,"end")),e.push(this.renderPageButton(t-1)),e.push(this.renderPageButton(t)),e):(e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,i-1,"left")),e.push(this.renderPageButton(i)),e.push(this.renderEllipsis(i+1,t-1,"right")),e.push(this.renderPageButton(t)),e)}renderPagesStandard(t,i){const e=[];if(t<=7){for(let i=1;i<=t;i++)e.push(this.renderPageButton(i));return e}if(i<=4){for(let t=1;t<=4;t++)e.push(this.renderPageButton(t));return e.push(this.renderEllipsis(5,t-1,"start")),e.push(this.renderPageButton(t)),e}if(i>=t-3){e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,t-4,"end"));for(let i=t-3;i<=t;i++)e.push(this.renderPageButton(i));return e}e.push(this.renderPageButton(1)),e.push(this.renderEllipsis(2,i-2,"left"));for(let t=i-1;t<=i+1;t++)e.push(this.renderPageButton(t));return e.push(this.renderEllipsis(i+2,t-1,"right")),e.push(this.renderPageButton(t)),e}renderPages(){const t=this.getDefaultTotalPages(),i=this.effectiveCurrent;return this.isSmall?this.renderPagesSmall(t,i):this.renderPagesStandard(t,i)}renderLoading(){return this.loading?a("span",{part:"loading",class:"pagination-loading",role:"status","aria-live":"polite","aria-label":"Carregando"},a("slot",{name:"loading"},a("br-loading",{size:"small",compact:!0,label:"Carregando"}))):null}getTotalPages(){return Math.max(1,Math.ceil(this.effectiveTotalItems/this.effectivePerPage))}getRangeInfo(){const t=this.effectiveTotalItems,i=this.effectivePerPage,e=this.effectiveCurrent;return 0===t?{start:0,end:0,total:t}:{start:(e-1)*i+1,end:Math.min(e*i,t),total:t}}handleContextualSelectChange(t){const e=t.composedPath().find((t=>t instanceof i&&"BR-SELECT"===t.tagName));if(!(e instanceof i)||"BR-SELECT"!==e.tagName)return;const a=e.parentElement;a?.classList.contains("pagination-per-page")?this.handlePerPageChange(t):a?.classList.contains("pagination-go-to-page")&&this.handleGoToPageChange(t)}renderPerPageDropdown(){return a("br-select",{part:"per-page",exportparts:"container: per-page-container, input: per-page-input, input-container: per-page-input-container, input-field: per-page-input-field, input-label: per-page-input-label, input-action: per-page-input-action, list: per-page-list",label:this.perPageLabel,isInline:!0,inputWidth:"88px",borderless:!0,density:this.effectiveDensity,disabled:this.loading,hideSearchIcon:!0},this.effectivePerPageOptions.map((t=>a("br-select-option",{key:t+"",value:t+"",selected:t===this.effectivePerPage},t))))}renderPerPageSelect(){return a("div",{class:"pagination-per-page",part:"per-page"},this.renderPerPageDropdown())}renderGoToSelect(){const i=this.getTotalPages(),e=i>t.LARGE_PAGE_THRESHOLD,r=Math.max(88,16*(i+"").length+48)+"px";return a("div",{class:"pagination-go-to-page d-none d-sm-flex ml-auto"},a("br-select",{part:"go-to",exportparts:"container: go-to-container, input: go-to-input, input-container: go-to-input-container, input-field: go-to-input-field, input-label: go-to-input-label, input-action: go-to-input-action, list: go-to-list",label:this.goToPageLabel,options:e?this.getWindowedGoToOptions(i,this.goToSearchTerm):this.goToOptionsReady?this.getGoToOptions(i):this.getCurrentGoToOption(i),onOpened:this.handleGoToSelectOpened,onClosed:()=>this.goToSearchTerm="",onBrSelectSearch:t=>this.goToSearchTerm=t.detail.query,value:this.effectiveCurrent+"",isInline:!0,inputWidth:r,density:this.effectiveDensity,"visible-items":7,filterable:!0,searchMode:e?"remote":"local",borderless:!0,disabled:this.loading,hideSearchIcon:!0}))}getWindowedGoToOptions(t,i){const e=Number.parseInt(i.trim(),10),a=Number.isInteger(e)&&e>=1&&e<=t?e:this.effectiveCurrent,r=i.trim()?10:50,n=new Set([1,t]);i.trim()||n.add(Math.min(Math.max(this.effectiveCurrent,1),t));for(let i=a-r;i<=a+r;i++)i>=1&&i<=t&&n.add(i);return i.trim()&&(!Number.isInteger(e)||e<1||e>t)?[]:[...n].sort(((t,i)=>t-i)).map((t=>({value:t+"",label:t+"",selected:t===this.effectiveCurrent})))}getCurrentGoToOption(t){const i=Math.min(Math.max(this.effectiveCurrent,1),t);return[{value:i+"",label:i+"",selected:!0}]}getGoToOptions(t){return null!==this.goToOptionsCache&&this.goToOptionsCache.length===t||(this.goToOptionsCache=Array.from({length:t},((t,i)=>{const e=i+1;return{value:e+"",label:e+""}}))),this.goToOptionsCache}renderContextual(){const{start:t,end:i,total:e}=this.getRangeInfo(),r=this.getTotalPages();return a("nav",{part:"nav",class:this.getCssClassMap(),"aria-busy":this.loading?"true":null,"aria-label":this.getComputedNavAriaLabel(),tabIndex:-1,"data-total":e,"data-current":this.effectiveCurrent,"data-per-page":this.effectivePerPage,id:this.customId},this.renderPerPageSelect(),a("span",{class:"br-divider d-none d-sm-block mx-3"}),a("div",{class:"pagination-information d-none d-sm-flex","aria-live":"polite"},a("slot",{name:"pagination-info"},a("span",{class:"current"},t),"–",a("span",{class:"per-page"},i)," de ",a("span",{class:"total"},e)," ",this.itemsText),this.renderLoading()),this.renderGoToSelect(),a("span",{class:"br-divider d-none d-sm-block mx-3"}),a("div",{class:"pagination-arrows ml-auto ml-sm-0"},a("br-button",{part:"prev-button",exportparts:"button: prev-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-previous-page":!0,"prop:ariaLabel":this.previousLabel,onClick:this.handlePrevClick,disabled:this.loading||this.effectiveCurrent<=1},a("br-icon",{"attr:iconName":"fa6-solid:angle-left",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.previousLabel)),a("br-button",{part:"next-button",exportparts:"button: next-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-next-page":!0,"prop:ariaLabel":this.nextLabel,onClick:this.handleNextClick,disabled:this.loading||this.effectiveCurrent>=r},a("br-icon",{"attr:iconName":"fa6-solid:angle-right",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.nextLabel))),a("span",{class:"visually-hidden","aria-live":"polite"},"Página ",this.effectiveCurrent," de ",r))}render(){if("contextual"===this.effectiveVariant)return a(r,null,this.renderContextual());const t=this.getDefaultTotalPages();return a(r,null,a("nav",{part:"nav",class:this.getCssClassMap(),"aria-busy":this.loading?"true":null,"aria-label":this.getComputedNavAriaLabel(),tabIndex:-1,"data-total":t,"data-current":this.effectiveCurrent,id:this.customId},a("ul",{part:"list"},a("li",null,a("br-button",{part:"prev-button",exportparts:"button: prev-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-previous-page":!0,"prop:ariaLabel":this.previousLabel,onClick:this.handlePrevClick,disabled:this.loading||this.effectiveCurrent<=1},a("br-icon",{"attr:iconName":"fa6-solid:angle-left",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.previousLabel))),this.renderPages(),this.loading?a("li",{part:"loading",class:"pagination-loading"},this.renderLoading()):null,a("li",null,a("br-button",{part:"next-button",exportparts:"button: next-button-inner",shape:"circle",density:this.effectiveDensity,type:"button","data-next-page":!0,"prop:ariaLabel":this.nextLabel,onClick:this.handleNextClick,disabled:this.loading||this.effectiveCurrent>=t},a("br-icon",{"attr:iconName":"fa6-solid:angle-right",width:"16",height:"16","aria-hidden":"true"}),a("span",{class:"visually-hidden"},this.nextLabel)))),a("span",{class:"visually-hidden","aria-live":"polite"},"Página ",this.effectiveCurrent," de ",t)))}get el(){return this}static get watchers(){return{total:[{handleTotalChange:0}],totalPages:[{handleTotalPagesChange:0}],current:[{handleCurrentChange:0}],currentPage:[{handleCurrentPageChange:0}],perPage:[{handlePerPagePropChange:0}],totalItems:[{handleTotalItemsChange:0}],density:[{handleDensityChange:0}]}}static get style(){return'*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.br-pagination{--pagination-margin:var(--spacing-scale-base);--pagination-select-width:88px;--pagination-size:var(--pagination-medium);--pagination-small:24px;--pagination-medium:32px;--pagination-large:40px;color:var(--color);display:flex;flex-wrap:wrap;font-weight:var(--font-weight);justify-content:center}.br-pagination ul{align-items:center;display:flex;list-style:none;margin:0;padding:0}.br-pagination li{padding:0}.br-pagination.dark-mode .page{color:var(--color-dark)}.br-pagination.dark-mode .br-select .br-item label{color:var(--color-dark)}.br-pagination .page:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}.br-pagination .page{align-items:center;border:1px solid rgba(0,0,0,0);border-radius:100em;color:var(--interactive);display:inline-flex;justify-content:center;margin:0 calc(var(--pagination-margin)*.5);min-height:var(--pagination-size);min-width:var(--pagination-size);padding:0 var(--spacing-scale-base);white-space:nowrap}.br-pagination .page.active{background:var(--active);color:var(--color-dark);font-weight:var(--font-weight-semi-bold)}.br-pagination .pagination-ellipsis{margin:0 calc(var(--pagination-margin)*.5);position:relative}.br-pagination .pagination-ellipsis .br-button{--button-size:var(--pagination-size)}.br-pagination .pagination-ellipsis .br-list::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}.br-pagination .pagination-ellipsis .br-list::-webkit-scrollbar-track{background:var(--gray-10)}.br-pagination .pagination-ellipsis .br-list::-webkit-scrollbar-thumb{background:var(--gray-30)}.br-pagination .pagination-ellipsis .br-list:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}.br-pagination .pagination-ellipsis .br-list{max-height:220px;min-width:4em;overflow-y:auto;z-index:var(--z-index-layer-1)}.br-pagination.small{--pagination-size:var(--pagination-small)}.br-pagination.medium{--pagination-size:var(--pagination-medium)}.br-pagination.large{--pagination-size:var(--pagination-large)}.br-pagination .pagination-information{align-items:center;display:flex}.br-pagination .pagination-per-page,.br-pagination .pagination-go-to-page{align-items:center;display:flex}.br-pagination .pagination-per-page .br-input,.br-pagination .pagination-go-to-page .br-input{align-items:center;display:flex}.br-pagination .pagination-per-page .br-input label,.br-pagination .pagination-go-to-page .br-input label{font-weight:var(--font-weight-regular);margin-bottom:0;margin-right:var(--spacing-scale-base);padding-bottom:0}.br-pagination .pagination-per-page .br-input input,.br-pagination .pagination-go-to-page .br-input input{--input-size:var(--pagination-medium);padding-left:var(--spacing-scale-base);padding-right:calc(var(--spacing-scale-baseh) + 32px);text-align:right;width:var(--pagination-select-width)}.br-pagination .pagination-per-page .br-input input:not(:focus),.br-pagination .pagination-go-to-page .br-input input:not(:focus){border-color:rgba(0,0,0,0)}.br-pagination .pagination-per-page .br-list,.br-pagination .pagination-go-to-page .br-list{min-width:5em;right:0;width:auto}.br-pagination .pagination-arrows{align-items:center;display:flex}.br-pagination .br-select .br-input .br-button{bottom:auto;margin-top:0;position:absolute;right:var(--spacing-scale-half);top:auto;transform:none}.br-pagination .br-divider{border-right-width:var(--divider-size);border-top:0}.br-pagination.inverted,.br-pagination.dark-mode{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.br-pagination.inverted.inverted .br-input,.br-pagination.inverted.inverted .br-input label,.br-pagination.inverted.dark-mode .br-input,.br-pagination.inverted.dark-mode .br-input label,.br-pagination.dark-mode.inverted .br-input,.br-pagination.dark-mode.inverted .br-input label,.br-pagination.dark-mode.dark-mode .br-input,.br-pagination.dark-mode.dark-mode .br-input label{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}.br-pagination.inverted .page.active,.br-pagination.dark-mode .page.active{--interactive-rgb:var(--active-rgb);background-color:var(--background-light);color:var(--active)}.br-pagination .input-group .input-icon{display:none}.br-divider,hr{--divider-size:var(--surface-width-sm);border-color:var(--border-color);border-style:solid;border-width:0;border-top-width:var(--divider-size);display:block}.br-divider.content,hr.content{align-items:center;border:0;display:flex;justify-content:center}.br-divider.content::after,.br-divider.content::before,hr.content::after,hr.content::before{border-color:var(--border-color);border-style:solid;border-width:0;border-top-width:var(--divider-size);content:"";flex:1}.br-divider.content::after,hr.content::after{margin-left:var(--spacing-scale-base)}.br-divider.content::before,hr.content::before{margin-right:var(--spacing-scale-base)}.br-divider.vertical,hr.vertical{align-self:stretch;border-right-width:var(--divider-size);border-top-width:0}.br-divider.vertical.content,hr.vertical.content{flex-direction:column}.br-divider.vertical.content::after,.br-divider.vertical.content::before,hr.vertical.content::after,hr.vertical.content::before{border-right-width:var(--divider-size);border-top-width:0;margin:0}.br-divider.inverted,.br-divider.dark-mode,hr.inverted,hr.dark-mode{--border-color:var(--pure-0)}.br-divider.dashed,hr.dashed{border-style:dashed}.br-divider.sm,hr.sm{--divider-size:var(--surface-width-sm)}hr{--divider-padding:var(--spacing-scale-2x);margin:var(--divider-padding) 0}:host{display:block}:host .pagination-ellipsis br-list{max-height:none;overflow:visible}:host .pagination-ellipsis br-list.has-scroll{max-height:220px;overflow-y:auto}:host .pagination-ellipsis br-list.has-scroll::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}:host .pagination-ellipsis br-list.has-scroll::-webkit-scrollbar-track{background:var(--gray-10)}:host .pagination-ellipsis br-list.has-scroll::-webkit-scrollbar-thumb{background:var(--gray-30)}:host .pagination-ellipsis br-list.has-scroll:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}:host .pagination-ellipsis .pagination-ellipsis-virtual-spacer{display:block;width:100%}:host .br-pagination button.page:not(.active){background-color:rgba(0,0,0,0)}:host([variant=contextual]) .br-pagination{justify-content:space-between}.pagination-per-page br-select,.pagination-go-to-page br-select{--br-input-margin-bottom:0}.pagination-per-page br-select::part(input-label),.pagination-go-to-page br-select::part(input-label){font-weight:var(--font-weight-regular);margin-bottom:0;margin-right:var(--spacing-scale-base);padding-bottom:0}.pagination-per-page br-select::part(input-clear),.pagination-go-to-page br-select::part(input-clear){display:none}.pagination-per-page br-select::part(input-field),.pagination-go-to-page br-select::part(input-field){--input-size:var(--pagination-medium);padding-left:var(--spacing-scale-base);padding-right:calc(var(--spacing-scale-baseh) + 32px);text-align:right}:host(:not([variant=contextual])) .br-pagination{justify-content:center}:host([variant=contextual]) .br-pagination ul{justify-content:center;width:100%}:host([color-mode=dark]) br-select{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}:host([color-mode=dark]) br-select::part(label){color:var(--color-dark)}:host([color-mode=dark]) .br-pagination a.page:not(.active),:host([color-mode=dark]) .br-pagination button.page:not(.active){color:var(--color);background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.br-pagination.dark-mode .br-select .br-item label,.br-pagination.dark-mode .page{color:var(--color-dark);background-color:rgba(0,0,0,0)}:host([color-mode=dark]) .br-pagination a.page:not(.active):hover,:host([color-mode=dark]) .br-pagination a.page:not(.active):focus,:host([color-mode=dark]) .br-pagination a.page:not(.active):focus-visible,:host([color-mode=dark]) .br-pagination button.page:not(.active):hover,:host([color-mode=dark]) .br-pagination button.page:not(.active):focus,:host([color-mode=dark]) .br-pagination button.page:not(.active):focus-visible{color:var(--interactive)}.br-pagination .page:focus-visible{outline:var(--focus) var(--focus-style) var(--focus-width);outline-offset:var(--focus-offset)}.pagination-ellipsis br-button::part(button){--button-size:var(--pagination-size)}.pagination-ellipsis br-button:focus-visible{outline:var(--focus) var(--focus-style) var(--focus-width);outline-offset:var(--focus-offset);border-radius:50%}.br-pagination>ul{position:relative}:host([loading]) .br-pagination>ul>li.pagination-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;visibility:visible}:host([loading]) .br-pagination>ul>li.pagination-loading .pagination-loading{display:flex;align-items:center;justify-content:center}:host([loading]) .br-pagination>ul>li:not(.pagination-loading):not(:first-child):not(:last-child){visibility:hidden}.pagination-information{position:relative}.pagination-information .pagination-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([color-mode=dark]) br-select::part(radio-label){color:var(--color-dark)}'}},[257,"br-pagination",{colorMode:[513,"color-mode"],customId:[513,"custom-id"],total:[514],totalPages:[514,"total-pages"],current:[1538],currentPage:[1538,"current-page"],ariaLabel:[513,"aria-label"],previousLabel:[1,"previous-label"],nextLabel:[1,"next-label"],ellipsisLabel:[1,"ellipsis-label"],density:[513],variant:[513],controlled:[516],loading:[516],totalItems:[514,"total-items"],perPage:[1538,"per-page"],perPageOptions:[16],perPageLabel:[1,"per-page-label"],goToPageLabel:[1,"go-to-page-label"],itemsText:[1,"items-text"],isSmall:[32],goToOptionsReady:[32],goToSearchTerm:[32],ellipsisScrollOffsets:[32],ellipsisItemHeight:[32],setPage:[64],goToPage:[64]},[[0,"valueChange","handleContextualSelectChange"]],{total:[{handleTotalChange:0}],totalPages:[{handleTotalPagesChange:0}],current:[{handleCurrentChange:0}],currentPage:[{handleCurrentPageChange:0}],perPage:[{handlePerPagePropChange:0}],totalItems:[{handleTotalItemsChange:0}],density:[{handleDensityChange:0}]}]);I.ELLIPSIS_VISIBLE_ITEMS=4,I.ELLIPSIS_ITEM_HEIGHT_FALLBACK=56,I.ELLIPSIS_OVERSCAN=1,I.LARGE_PAGE_THRESHOLD=1e4;const j=I,T=function(){"undefined"!=typeof customElements&&["br-pagination","br-button","br-checkbox","br-collapse","br-divider","br-dropdown","br-icon","br-input","br-item","br-list","br-loading","br-message","br-select","br-select-input","br-select-list","br-select-option"].forEach((t=>{switch(t){case"br-pagination":customElements.get(n(t))||customElements.define(n(t),I);break;case"br-button":customElements.get(n(t))||c();break;case"br-checkbox":customElements.get(n(t))||g();break;case"br-collapse":customElements.get(n(t))||p();break;case"br-divider":customElements.get(n(t))||u();break;case"br-dropdown":customElements.get(n(t))||b();break;case"br-icon":customElements.get(n(t))||m();break;case"br-input":customElements.get(n(t))||v();break;case"br-item":customElements.get(n(t))||f();break;case"br-list":customElements.get(n(t))||x();break;case"br-loading":customElements.get(n(t))||w();break;case"br-message":customElements.get(n(t))||y();break;case"br-select":customElements.get(n(t))||k();break;case"br-select-input":customElements.get(n(t))||z();break;case"br-select-list":customElements.get(n(t))||P();break;case"br-select-option":customElements.get(n(t))||C()}}))};export{j as BrPagination,T as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{p as t,H as i,c as a,h as e,d as r,t as o}from"./p-Jk_KQE5V.js";import{d as n}from"./p-BC7f6MK8.js";import{r as s,a as l,g as d,f as h,s as c}from"./p-CDTENPaP.js";import{g}from"./p-BeJxz5TQ.js";import{c as u}from"./p-CDtFCbKp.js";import{r as m}from"./p-DiLI514I.js";import{h as p,b}from"./p-5z6jgH1D.js";import{d as f}from"./p-DhvmHPp4.js";import{d as v}from"./p-Nze3Utvd.js";import{d as w}from"./p-D579DS7x.js";const x=["horizontal","vertical"],y=["valid","invalid"],k=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.brRadioGroupValidationChange=a(this,"brRadioGroupValidationChange",6),this.elementInternals=this.attachInternals(),this.formDisabled=!1,this.customValidationMessage="",this.validatorMessage=null,this.isValidating=!1,this.hasFeedbackSlot=!1,this.hasInteracted=!1,this.hasDescriptionSlot=!1,this.hasLabelSlot=!1,this.hasValidationLoadingSlot=!1,this.value=null,this.required=!1,this.disabled=!1,this.orientation="vertical",this.ariaLabel=null,this.customId=g(),this.initialValue=null,this.validationRunId=0,this.syncingChildren=!1,this.checkingValidity=!1,this.ready=!1,this.originalNames=new Map,this.reconciler=u((()=>this.reconcileChildren())),this.handleSlotChange=()=>this.reconciler.schedule()}formDisabledCallback(t){this.formDisabled=t,t&&this.cancelValidation(),this.applyValueToChildren(),this.syncFormState()}formResetCallback(){this.validationRunId++,this.customValidationMessage="",this.validatorMessage=null,this.isValidating=!1,this.clearInteraction(),this.value=this.initialValue,this.applyValueToChildren(),this.syncFormState()}formStateRestoreCallback(t){this.value="string"==typeof t?t:null,this.applyValueToChildren(),this.syncFormState()}componentWillLoad(){const t=this.getChildren().filter((t=>t.checked&&!t.disabled)).at(-1);this.initialValue=this.defaultValue??this.value??(t?this.getRadioValue(t):null),null===this.value&&(this.value=this.initialValue),this.applyValueToChildren(),this.syncFormState()}componentDidLoad(){this.syncNamedSlots();const t=this.el.shadowRoot?.querySelector("slot:not([name])");t?.addEventListener("slotchange",this.handleSlotChange),this.reconcileChildren(),this.ready=!0}connectedCallback(){this.el.shadowRoot?.querySelector("slot:not([name])")?.addEventListener("slotchange",this.handleSlotChange),this.reconcileChildren()}disconnectedCallback(){this.reconciler.cancel();const t=this.el.shadowRoot?.querySelector("slot:not([name])");t?.removeEventListener("slotchange",this.handleSlotChange);for(const t of this.originalNames.keys())this.releaseRadio(t);this.originalNames.clear()}handleValueChange(){this.cancelValidation(),this.applyValueToChildren(),this.syncFormState()}handleNameChange(){this.applyValueToChildren(),this.syncFormState()}handleDisabledChange(t){t&&this.cancelValidation(),this.applyValueToChildren(),this.syncFormState()}handleValidatorChange(){this.cancelValidation(),this.syncFormState()}handleDefaultValueChange(t){this.initialValue=t??null}handleRequiredChange(){this.syncFormState()}handleCustomValidityChange(){this.syncFormState()}handleChildInput(t){this.handleChildFormEvent(t,"input")}handleChildChange(t){this.handleChildFormEvent(t,"change")}handleFocusOut(t){this.isDisabled()||this.isWithinGroup(t.relatedTarget)||this.markAsInteracted()}handleInvalid(){this.checkingValidity||this.isDisabled()||this.markAsInteracted()}handleChildChecked(t){const i=t.target;!this.syncingChildren&&this.getChildren().includes(i)&&i.checked&&!this.isDisabled()&&(this.value=this.getRadioValue(i)??null)}handleChildStateChange(t){const i=t.target;"checked"!==t.detail?.property&&!this.syncingChildren&&this.getChildren().includes(i)&&this.reconciler.schedule()}handleKeyDown(t){const i=t.composedPath().find((t=>"br-radio"===t.tagName?.toLowerCase()));if(!i||this.isDisabled()||!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(t.key))return;const a=this.getChildren().filter((t=>!t.disabled)),e=a.indexOf(i);if(e<0||0===a.length)return;t.preventDefault(),t.stopPropagation();const r=a["Home"===t.key?0:"End"===t.key?a.length-1:["ArrowRight","ArrowDown"].includes(t.key)?(e+1)%a.length:(e-1+a.length)%a.length];r&&(r.checked=!0,this.value=r.value??null,r.setFocus(),n(this.el,"input"),n(this.el,"change"),this.validate())}async checkValidity(){this.checkingValidity=!0;try{return this.elementInternals.checkValidity()}finally{this.checkingValidity=!1}}async reportValidity(){this.markAsInteracted(),this.syncFormState();const t=this.elementInternals.reportValidity();return t||await this.setFocus(),t}async setCustomValidity(t){this.customValidationMessage=t,this.syncFormState()}async validate(){const t=s(this.validator);if(!t||this.isDisabled())return this.checkValidity();const i=++this.validationRunId;this.isValidating=!0,this.validatorMessage=null,this.syncFormState(),this.brRadioGroupValidationChange.emit({validating:!0,valid:null,message:null});const a=await l(t,this.value);if(i!==this.validationRunId)return!1;this.validatorMessage=a,this.isValidating=!1,this.syncFormState();const e=null===a&&await this.checkValidity();return this.brRadioGroupValidationChange.emit({validating:!1,valid:e,message:a}),e}async getValidationState(){return d(this.elementInternals)}async setFocus(){const t=this.getChildren().find((t=>t.checked&&!t.disabled))??this.getChildren().find((t=>!t.disabled));await(t?.setFocus?.())}getChildren(){return Array.from(this.el.children).filter((t=>"br-radio"===t.tagName.toLowerCase()))}getRadioValue(t){return t.value??t.getAttribute("value")??void 0}isDisabled(){return this.disabled||this.formDisabled}isWithinGroup(t){let i=t instanceof Node?t:null;for(;i;){if(i===this.el)return!0;const t=i.getRootNode();i=t instanceof ShadowRoot?t.host:i.parentNode}return!1}markAsInteracted(){this.hasInteracted||(this.hasInteracted=!0)}clearInteraction(){this.hasInteracted=!1}handleChildFormEvent(t,i){const a=t.composedPath().find((t=>"br-radio"===t.tagName?.toLowerCase()));a&&!this.isDisabled()&&(this.ready&&t.isTrusted&&this.markAsInteracted(),t.stopImmediatePropagation(),this.value=a.checked?this.getRadioValue(a)??null:null,n(this.el,i),"change"===i&&this.validate())}syncManagedState(t){const i=t.filter((t=>!t.disabled)),a=i.find((t=>t.checked));if(!this.syncingChildren){this.syncingChildren=!0,t.forEach((t=>{this.manageRadio(t,a,i[0])}));for(const i of this.originalNames.keys())t.includes(i)||(this.releaseRadio(i),this.originalNames.delete(i));this.syncingChildren=!1}}manageRadio(t,i,a){this.originalNames.has(t)||this.originalNames.set(t,t.name),t.name=this.name;const e=this.isDisabled()||t.disabled?-1:i?t===i?0:-1:t===a?0:-1;t.dispatchEvent(new CustomEvent("brRadioGroupState",{detail:{managed:!0,disabled:this.isDisabled(),tabIndex:e,nativeName:this.customId+"-native"}}))}releaseRadio(t){const i=this.originalNames.get(t);void 0===i?t.removeAttribute("name"):t.name=i,t.dispatchEvent(new CustomEvent("brRadioGroupState",{detail:{managed:!1,disabled:!1,tabIndex:0,nativeName:""}}))}syncNamedSlots(){this.hasFeedbackSlot=p(this.el,"feedback"),this.hasDescriptionSlot=p(this.el,"description"),this.hasLabelSlot=p(this.el,"label"),this.hasValidationLoadingSlot=p(this.el,"validation-loading")}applyValueToChildren(){if(this.syncingChildren)return;const t=this.getChildren(),i=null===this.value?void 0:t.find((t=>this.getRadioValue(t)===this.value&&!t.disabled));this.syncingChildren=!0,t.forEach((t=>{t.checked=t===i})),this.syncingChildren=!1,null===this.value||i?this.syncManagedState(t):this.value=null}reconcileChildren(){if(this.syncingChildren)return;this.syncNamedSlots();const t=this.getChildren(),i=t.filter((t=>t.checked&&!t.disabled)),a=null===this.value?void 0:t.find((t=>this.getRadioValue(t)===this.value&&!t.disabled)),e=null===this.value?0===i.length:!!a&&1===i.length&&i[0]===a;if(null!==this.value&&a&&0===i.length)this.applyValueToChildren();else if(e)this.syncManagedState(t),this.syncFormState();else{const t=i.at(-1);this.value=t?this.getRadioValue(t)??null:null}}getValidityMessage(){return this.customValidationMessage||this.validatorMessage||(this.hasInteracted&&this.required&&null===this.value?"Selecione uma opção.":"")}getNativeValidityMessage(){return this.customValidationMessage||this.validatorMessage||(this.required&&null===this.value?"Selecione uma opção.":"")}cancelValidation(){this.validationRunId++,this.isValidating=!1,this.validatorMessage=null}getCssClassMap(){const t=this.isDisabled(),i=this.effectiveState,a=this.effectiveOrientation,e=!t&&("invalid"===i||""!==this.getValidityMessage());return{"br-radio-group":!0,disabled:t,horizontal:"horizontal"===a,vertical:"vertical"===a,valid:!t&&"valid"===i&&!e,invalid:e}}get effectiveOrientation(){return m(this.el,"orientation",this.orientation,x,"vertical")}get effectiveState(){return m(this.el,"feedbackState",this.feedbackState,y,void 0,{allowUndefined:!0})}syncFormState(){const t=this.isDisabled();h(this.elementInternals,{customError:!(t||!this.customValidationMessage&&!this.validatorMessage),valueMissing:!t&&this.required&&null===this.value},this.getNativeValidityMessage(),this.getChildren().find((t=>t.checked&&!t.disabled))??this.getChildren().find((t=>!t.disabled))),t||null===this.value?c(this.elementInternals,null):c(this.elementInternals,this.value,this.value)}renderDefaultFeedback(t,i){return this.hasFeedbackSlot||!t?null:e("br-message",{state:"danger",message:i})}render(){const t=this.customId+"-feedback",i=this.customId+"-description",a=this.customId+"-legend",o=this.getValidityMessage(),n=!this.isDisabled()&&""!==o,s=!this.isDisabled()&&(n||"invalid"===this.effectiveState),l=n||this.hasFeedbackSlot,d=!(!this.label&&!this.hasLabelSlot);return e(r,{key:"248ac32963cb7ba0f4da47479c5f75ea4a4fd823",class:this.getCssClassMap(),"aria-busy":this.isValidating?"true":null,"aria-disabled":this.isDisabled()?"true":null,"aria-invalid":s?"true":null},e("fieldset",{key:"10af8c4e59d75180589e616b52b17057895da18e",part:"group",disabled:this.isDisabled(),"aria-label":d?null:this.ariaLabel,"aria-labelledby":d?a:null,"aria-describedby":this.hasDescriptionSlot?i:null,"aria-errormessage":l?t:null,"aria-invalid":s?"true":null},e("legend",{key:"421c9ebb496ba66ef708a1e104d7772649a16cec",id:a,part:"legend",hidden:!d},e("slot",{key:"f45990b75bcfbeb57d0b599abc1227945bbb8652",name:"label",onSlotchange:t=>this.hasLabelSlot=b(t.currentTarget)},this.label)),e("div",{key:"7bd98f81c2933d1322af6fee0afbd540ae76130a",class:"radio-group-options",part:"options"},e("slot",{key:"c956f5eb203e6de94d836184d60f731a343bd693"})),e("div",{key:"d4d7626b9e910c419ac2be5ae57c2103b2525551",id:i,class:"radio-group-description",part:"description",hidden:!this.hasDescriptionSlot},e("slot",{key:"3372397ff142ea3c56b865cdf2d145d30727f570",name:"description",onSlotchange:t=>this.hasDescriptionSlot=b(t.currentTarget)})),e("div",{key:"3dd970dfa02b0e325fe867661d3cb44f49f88513",id:t,class:"radio-group-feedback",part:"feedback","aria-live":"polite","aria-atomic":"true",hidden:!n&&!this.hasFeedbackSlot},e("slot",{key:"a3041ce32f51721ef4b6bb9be2f59bf6b0b63553",name:"feedback",onSlotchange:t=>this.hasFeedbackSlot=b(t.currentTarget)}),this.renderDefaultFeedback(n,o)),e("div",{key:"513d457c42a99df44779cf011113af84028c8859",part:"validation-loading",hidden:!this.hasValidationLoadingSlot||!this.isValidating},e("slot",{key:"689c16ed0c86c1641806b316cec77e60a97f4987",name:"validation-loading"}))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{value:[{handleValueChange:0}],name:[{handleNameChange:0}],disabled:[{handleDisabledChange:0}],validator:[{handleValidatorChange:0}],defaultValue:[{handleDefaultValueChange:0}],required:[{handleRequiredChange:0}],customValidationMessage:[{handleCustomValidityChange:0}]}}static get style(){return"*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}pre code,.pre code{display:inline;padding:0}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}:host{display:block}fieldset{border:0;margin:0;min-inline-size:0;padding:0}legend{display:block;font:inherit;font-weight:600;margin:0 0 var(--spacing-scale-base);padding:0}.radio-group-options{display:flex}:host([orientation=horizontal]) .radio-group-options{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-scale-2x)}:host([orientation=vertical]) .radio-group-options{flex-direction:column}.radio-group-description,.radio-group-feedback{display:block;margin-block-start:var(--spacing-scale-base)}[hidden]{display:none}"}},[321,"br-radio-group",{name:[513],value:[1537],defaultValue:[513,"default-value"],required:[516],disabled:[516],orientation:[513],label:[513],ariaLabel:[513,"aria-label"],feedbackState:[513,"feedback-state"],validator:[16],customId:[513,"custom-id"],formDisabled:[32],customValidationMessage:[32],validatorMessage:[32],isValidating:[32],hasFeedbackSlot:[32],hasInteracted:[32],hasDescriptionSlot:[32],hasLabelSlot:[32],hasValidationLoadingSlot:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64],validate:[64],getValidationState:[64],setFocus:[64]},[[0,"input","handleChildInput"],[0,"change","handleChildChange"],[0,"focusout","handleFocusOut"],[0,"invalid","handleInvalid"],[0,"brInternalRadioChecked","handleChildChecked"],[0,"brInternalRadioStateChange","handleChildStateChange"],[0,"keydown","handleKeyDown"]],{value:[{handleValueChange:0}],name:[{handleNameChange:0}],disabled:[{handleDisabledChange:0}],validator:[{handleValidatorChange:0}],defaultValue:[{handleDefaultValueChange:0}],required:[{handleRequiredChange:0}],customValidationMessage:[{handleCustomValidityChange:0}]}]),C=k,z=function(){"undefined"!=typeof customElements&&["br-radio-group","br-button","br-icon","br-message"].forEach((t=>{switch(t){case"br-radio-group":customElements.get(o(t))||customElements.define(o(t),k);break;case"br-button":customElements.get(o(t))||f();break;case"br-icon":customElements.get(o(t))||v();break;case"br-message":customElements.get(o(t))||w()}}))};export{C as BrRadioGroup,z as defineCustomElement}
|
|
5
|
+
import{p as t,H as i,c as a,h as e,d as r,t as o}from"./p-Jk_KQE5V.js";import{d as n}from"./p-BC7f6MK8.js";import{r as s,a as l,g as d,f as h,s as c}from"./p-CDTENPaP.js";import{g}from"./p-BeJxz5TQ.js";import{c as u}from"./p-CDtFCbKp.js";import{r as m}from"./p-DiLI514I.js";import{h as p,b}from"./p-BNckUhK6.js";import{d as f}from"./p-DoWy_P8b.js";import{d as v}from"./p-Or3FLzbz.js";import{d as w}from"./p-CAgbUwsx.js";const x=["horizontal","vertical"],y=["valid","invalid"],k=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.brRadioGroupValidationChange=a(this,"brRadioGroupValidationChange",6),this.elementInternals=this.attachInternals(),this.formDisabled=!1,this.customValidationMessage="",this.validatorMessage=null,this.isValidating=!1,this.hasFeedbackSlot=!1,this.hasInteracted=!1,this.hasDescriptionSlot=!1,this.hasLabelSlot=!1,this.hasValidationLoadingSlot=!1,this.value=null,this.required=!1,this.disabled=!1,this.orientation="vertical",this.ariaLabel=null,this.customId=g(),this.initialValue=null,this.validationRunId=0,this.syncingChildren=!1,this.checkingValidity=!1,this.ready=!1,this.originalNames=new Map,this.reconciler=u((()=>this.reconcileChildren())),this.handleSlotChange=()=>this.reconciler.schedule()}formDisabledCallback(t){this.formDisabled=t,t&&this.cancelValidation(),this.applyValueToChildren(),this.syncFormState()}formResetCallback(){this.validationRunId++,this.customValidationMessage="",this.validatorMessage=null,this.isValidating=!1,this.clearInteraction(),this.value=this.initialValue,this.applyValueToChildren(),this.syncFormState()}formStateRestoreCallback(t){this.value="string"==typeof t?t:null,this.applyValueToChildren(),this.syncFormState()}componentWillLoad(){const t=this.getChildren().filter((t=>t.checked&&!t.disabled)).at(-1);this.initialValue=this.defaultValue??this.value??(t?this.getRadioValue(t):null),null===this.value&&(this.value=this.initialValue),this.applyValueToChildren(),this.syncFormState()}componentDidLoad(){this.syncNamedSlots();const t=this.el.shadowRoot?.querySelector("slot:not([name])");t?.addEventListener("slotchange",this.handleSlotChange),this.reconcileChildren(),this.ready=!0}connectedCallback(){this.el.shadowRoot?.querySelector("slot:not([name])")?.addEventListener("slotchange",this.handleSlotChange),this.reconcileChildren()}disconnectedCallback(){this.reconciler.cancel();const t=this.el.shadowRoot?.querySelector("slot:not([name])");t?.removeEventListener("slotchange",this.handleSlotChange);for(const t of this.originalNames.keys())this.releaseRadio(t);this.originalNames.clear()}handleValueChange(){this.cancelValidation(),this.applyValueToChildren(),this.syncFormState()}handleNameChange(){this.applyValueToChildren(),this.syncFormState()}handleDisabledChange(t){t&&this.cancelValidation(),this.applyValueToChildren(),this.syncFormState()}handleValidatorChange(){this.cancelValidation(),this.syncFormState()}handleDefaultValueChange(t){this.initialValue=t??null}handleRequiredChange(){this.syncFormState()}handleCustomValidityChange(){this.syncFormState()}handleChildInput(t){this.handleChildFormEvent(t,"input")}handleChildChange(t){this.handleChildFormEvent(t,"change")}handleFocusOut(t){this.isDisabled()||this.isWithinGroup(t.relatedTarget)||this.markAsInteracted()}handleInvalid(){this.checkingValidity||this.isDisabled()||this.markAsInteracted()}handleChildChecked(t){const i=t.target;!this.syncingChildren&&this.getChildren().includes(i)&&i.checked&&!this.isDisabled()&&(this.value=this.getRadioValue(i)??null)}handleChildStateChange(t){const i=t.target;"checked"!==t.detail?.property&&!this.syncingChildren&&this.getChildren().includes(i)&&this.reconciler.schedule()}handleKeyDown(t){const i=t.composedPath().find((t=>"br-radio"===t.tagName?.toLowerCase()));if(!i||this.isDisabled()||!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(t.key))return;const a=this.getChildren().filter((t=>!t.disabled)),e=a.indexOf(i);if(e<0||0===a.length)return;t.preventDefault(),t.stopPropagation();const r=a["Home"===t.key?0:"End"===t.key?a.length-1:["ArrowRight","ArrowDown"].includes(t.key)?(e+1)%a.length:(e-1+a.length)%a.length];r&&(r.checked=!0,this.value=r.value??null,r.setFocus(),n(this.el,"input"),n(this.el,"change"),this.validate())}async checkValidity(){this.checkingValidity=!0;try{return this.elementInternals.checkValidity()}finally{this.checkingValidity=!1}}async reportValidity(){this.markAsInteracted(),this.syncFormState();const t=this.elementInternals.reportValidity();return t||await this.setFocus(),t}async setCustomValidity(t){this.customValidationMessage=t,this.syncFormState()}async validate(){const t=s(this.validator);if(!t||this.isDisabled())return this.checkValidity();const i=++this.validationRunId;this.isValidating=!0,this.validatorMessage=null,this.syncFormState(),this.brRadioGroupValidationChange.emit({validating:!0,valid:null,message:null});const a=await l(t,this.value);if(i!==this.validationRunId)return!1;this.validatorMessage=a,this.isValidating=!1,this.syncFormState();const e=null===a&&await this.checkValidity();return this.brRadioGroupValidationChange.emit({validating:!1,valid:e,message:a}),e}async getValidationState(){return d(this.elementInternals)}async setFocus(){const t=this.getChildren().find((t=>t.checked&&!t.disabled))??this.getChildren().find((t=>!t.disabled));await(t?.setFocus?.())}getChildren(){return Array.from(this.el.children).filter((t=>"br-radio"===t.tagName.toLowerCase()))}getRadioValue(t){return t.value??t.getAttribute("value")??void 0}isDisabled(){return this.disabled||this.formDisabled}isWithinGroup(t){let i=t instanceof Node?t:null;for(;i;){if(i===this.el)return!0;const t=i.getRootNode();i=t instanceof ShadowRoot?t.host:i.parentNode}return!1}markAsInteracted(){this.hasInteracted||(this.hasInteracted=!0)}clearInteraction(){this.hasInteracted=!1}handleChildFormEvent(t,i){const a=t.composedPath().find((t=>"br-radio"===t.tagName?.toLowerCase()));a&&!this.isDisabled()&&(this.ready&&t.isTrusted&&this.markAsInteracted(),t.stopImmediatePropagation(),this.value=a.checked?this.getRadioValue(a)??null:null,n(this.el,i),"change"===i&&this.validate())}syncManagedState(t){const i=t.filter((t=>!t.disabled)),a=i.find((t=>t.checked));if(!this.syncingChildren){this.syncingChildren=!0,t.forEach((t=>{this.manageRadio(t,a,i[0])}));for(const i of this.originalNames.keys())t.includes(i)||(this.releaseRadio(i),this.originalNames.delete(i));this.syncingChildren=!1}}manageRadio(t,i,a){this.originalNames.has(t)||this.originalNames.set(t,t.name),t.name=this.name;const e=this.isDisabled()||t.disabled?-1:i?t===i?0:-1:t===a?0:-1;t.dispatchEvent(new CustomEvent("brRadioGroupState",{detail:{managed:!0,disabled:this.isDisabled(),tabIndex:e,nativeName:this.customId+"-native"}}))}releaseRadio(t){const i=this.originalNames.get(t);void 0===i?t.removeAttribute("name"):t.name=i,t.dispatchEvent(new CustomEvent("brRadioGroupState",{detail:{managed:!1,disabled:!1,tabIndex:0,nativeName:""}}))}syncNamedSlots(){this.hasFeedbackSlot=p(this.el,"feedback"),this.hasDescriptionSlot=p(this.el,"description"),this.hasLabelSlot=p(this.el,"label"),this.hasValidationLoadingSlot=p(this.el,"validation-loading")}applyValueToChildren(){if(this.syncingChildren)return;const t=this.getChildren(),i=null===this.value?void 0:t.find((t=>this.getRadioValue(t)===this.value&&!t.disabled));this.syncingChildren=!0,t.forEach((t=>{t.checked=t===i})),this.syncingChildren=!1,null===this.value||i?this.syncManagedState(t):this.value=null}reconcileChildren(){if(this.syncingChildren)return;this.syncNamedSlots();const t=this.getChildren(),i=t.filter((t=>t.checked&&!t.disabled)),a=null===this.value?void 0:t.find((t=>this.getRadioValue(t)===this.value&&!t.disabled)),e=null===this.value?0===i.length:!!a&&1===i.length&&i[0]===a;if(null!==this.value&&a&&0===i.length)this.applyValueToChildren();else if(e)this.syncManagedState(t),this.syncFormState();else{const t=i.at(-1);this.value=t?this.getRadioValue(t)??null:null}}getValidityMessage(){return this.customValidationMessage||this.validatorMessage||(this.hasInteracted&&this.required&&null===this.value?"Selecione uma opção.":"")}getNativeValidityMessage(){return this.customValidationMessage||this.validatorMessage||(this.required&&null===this.value?"Selecione uma opção.":"")}cancelValidation(){this.validationRunId++,this.isValidating=!1,this.validatorMessage=null}getCssClassMap(){const t=this.isDisabled(),i=this.effectiveState,a=this.effectiveOrientation,e=!t&&("invalid"===i||""!==this.getValidityMessage());return{"br-radio-group":!0,disabled:t,horizontal:"horizontal"===a,vertical:"vertical"===a,valid:!t&&"valid"===i&&!e,invalid:e}}get effectiveOrientation(){return m(this.el,"orientation",this.orientation,x,"vertical")}get effectiveState(){return m(this.el,"feedbackState",this.feedbackState,y,void 0,{allowUndefined:!0})}syncFormState(){const t=this.isDisabled();h(this.elementInternals,{customError:!(t||!this.customValidationMessage&&!this.validatorMessage),valueMissing:!t&&this.required&&null===this.value},this.getNativeValidityMessage(),this.getChildren().find((t=>t.checked&&!t.disabled))??this.getChildren().find((t=>!t.disabled))),t||null===this.value?c(this.elementInternals,null):c(this.elementInternals,this.value,this.value)}renderDefaultFeedback(t,i){return this.hasFeedbackSlot||!t?null:e("br-message",{state:"danger",message:i})}render(){const t=this.customId+"-feedback",i=this.customId+"-description",a=this.customId+"-legend",o=this.getValidityMessage(),n=!this.isDisabled()&&""!==o,s=!this.isDisabled()&&(n||"invalid"===this.effectiveState),l=n||this.hasFeedbackSlot,d=!(!this.label&&!this.hasLabelSlot);return e(r,{key:"d83a897d172e99d1a973d916ce30ae801436e31f",class:this.getCssClassMap(),"aria-busy":this.isValidating?"true":null,"aria-disabled":this.isDisabled()?"true":null,"aria-invalid":s?"true":null},e("fieldset",{key:"0e9a160909f8017c4356e7a5e0f8f00a6bdbf7fa",part:"group",disabled:this.isDisabled(),"aria-label":d?null:this.ariaLabel,"aria-labelledby":d?a:null,"aria-describedby":this.hasDescriptionSlot?i:null,"aria-errormessage":l?t:null,"aria-invalid":s?"true":null},e("legend",{key:"47c665027622c12ae0d7ac89e925c0cdb0297d1f",id:a,part:"legend",hidden:!d},e("slot",{key:"b7777631f7322886473918812c052453b8f84b5c",name:"label",onSlotchange:t=>this.hasLabelSlot=b(t.currentTarget)},this.label)),e("div",{key:"12d9e8cb0d039d8fd287c7634183e0e9c07bf8f1",class:"radio-group-options",part:"options"},e("slot",{key:"3fec31f7447e25b4f85e8559be1f3dbd1d9285c6"})),e("div",{key:"710a575506e1b43cda27d5a37c1e03831acfe76f",id:i,class:"radio-group-description",part:"description",hidden:!this.hasDescriptionSlot},e("slot",{key:"179f7383c46326457e87b7b799b7ffce871a6167",name:"description",onSlotchange:t=>this.hasDescriptionSlot=b(t.currentTarget)})),e("div",{key:"fd4f3dfc54bfa81a58bf0b6f956888e470d66749",id:t,class:"radio-group-feedback",part:"feedback","aria-live":"polite","aria-atomic":"true",hidden:!n&&!this.hasFeedbackSlot},e("slot",{key:"52d04c089eddab18dababfca2d07f66aa67be06d",name:"feedback",onSlotchange:t=>this.hasFeedbackSlot=b(t.currentTarget)}),this.renderDefaultFeedback(n,o)),e("div",{key:"7e7b86217b75a2086143b0795f4393465069f5e4",part:"validation-loading",hidden:!this.hasValidationLoadingSlot||!this.isValidating},e("slot",{key:"cda63c470da51a83e54c31cd90a15df9fcd20cee",name:"validation-loading"}))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{value:[{handleValueChange:0}],name:[{handleNameChange:0}],disabled:[{handleDisabledChange:0}],validator:[{handleValidatorChange:0}],defaultValue:[{handleDefaultValueChange:0}],required:[{handleRequiredChange:0}],customValidationMessage:[{handleCustomValidityChange:0}]}}static get style(){return"*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}:host{display:block}fieldset{border:0;margin:0;min-inline-size:0;padding:0}legend{display:block;font:inherit;font-weight:600;margin:0 0 var(--spacing-scale-base);padding:0}.radio-group-options{display:flex}:host([orientation=horizontal]) .radio-group-options{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-scale-2x)}:host([orientation=vertical]) .radio-group-options{flex-direction:column}.radio-group-description,.radio-group-feedback{display:block;margin-block-start:var(--spacing-scale-base)}[hidden]{display:none}"}},[321,"br-radio-group",{name:[513],value:[1537],defaultValue:[513,"default-value"],required:[516],disabled:[516],orientation:[513],label:[513],ariaLabel:[513,"aria-label"],feedbackState:[513,"feedback-state"],validator:[16],customId:[513,"custom-id"],formDisabled:[32],customValidationMessage:[32],validatorMessage:[32],isValidating:[32],hasFeedbackSlot:[32],hasInteracted:[32],hasDescriptionSlot:[32],hasLabelSlot:[32],hasValidationLoadingSlot:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64],validate:[64],getValidationState:[64],setFocus:[64]},[[0,"input","handleChildInput"],[0,"change","handleChildChange"],[0,"focusout","handleFocusOut"],[0,"invalid","handleInvalid"],[0,"brInternalRadioChecked","handleChildChecked"],[0,"brInternalRadioStateChange","handleChildStateChange"],[0,"keydown","handleKeyDown"]],{value:[{handleValueChange:0}],name:[{handleNameChange:0}],disabled:[{handleDisabledChange:0}],validator:[{handleValidatorChange:0}],defaultValue:[{handleDefaultValueChange:0}],required:[{handleRequiredChange:0}],customValidationMessage:[{handleCustomValidityChange:0}]}]),C=k,z=function(){"undefined"!=typeof customElements&&["br-radio-group","br-button","br-icon","br-message"].forEach((t=>{switch(t){case"br-radio-group":customElements.get(o(t))||customElements.define(o(t),k);break;case"br-button":customElements.get(o(t))||f();break;case"br-icon":customElements.get(o(t))||v();break;case"br-message":customElements.get(o(t))||w()}}))};export{C as BrRadioGroup,z as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{p as t,H as i,c as e,h as a,d as r,t as o}from"./p-Jk_KQE5V.js";import{r as n,d as s}from"./p-BC7f6MK8.js";import{r as l,a as d,g as c,s as h,d as g,i as b,f as p,c as u}from"./p-CDTENPaP.js";import{g as v}from"./p-BeJxz5TQ.js";import{r as m}from"./p-DiLI514I.js";import{b as f}from"./p-5z6jgH1D.js";import{d as w}from"./p-DhvmHPp4.js";import{d as x}from"./p-Nze3Utvd.js";import{d as k}from"./p-D579DS7x.js";const y=["valid","invalid"],z=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.checkedChange=e(this,"checkedChange",7),this.brRadioValidationChange=e(this,"brRadioValidationChange",7),this.elementInternals=this.attachInternals(),this.formDisabled=!1,this.updateTrigger=0,this.hasFeedbackSlot=!1,this.customValidationMessage="",this.validatorMessage=null,this.isValidating=!1,this.groupManaged=!1,this.groupDisabled=!1,this.groupTabIndex=-1,this.groupNativeName="",this.checked=!1,this.uncheckOnClick=!1,this.uncheckOnDoubleClick=!1,this.disabled=!1,this.required=!1,this.hasHiddenLabel=!1,this.customId=v(),this.validationRunId=0,this.initialChecked=!1,this.onClick=t=>{!this.isDisabled()&&this.uncheckOnClick&&this.checked&&(t.preventDefault(),this.uncheck())},this.onInput=t=>{this.checked=t.target.checked,this.checkedChange.emit(this.checked),n(this.el,t,"input")},this.onChange=t=>{n(this.el,t,"change"),this.isManagedByGroup()||this.validate()}}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){this.customValidationMessage="",this.validatorMessage=null,this.validationRunId++,this.isManagedByGroup()||(this.checked=this.initialChecked),this.syncFormState()}formStateRestoreCallback(t){this.isManagedByGroup()||(this.checked="checked"===t),this.syncFormState()}checkedChanged(){if(this.syncFormState(),this.dispatchInternalStateChange("checked"),this.isManagedByGroup())return void this.el.dispatchEvent(new CustomEvent("brInternalRadioChecked",{bubbles:!0,composed:!0}));const t=this.el.getRootNode();this.checked&&t.querySelectorAll("br-radio").forEach((t=>{t!==this.el&&this.isStandalonePeer(t)&&t.name===this.name&&t.checked&&(t.checked=!1)})),requestAnimationFrame((()=>this.syncGroupTabStops()))}disabledChanged(){this.syncFormState(),this.dispatchInternalStateChange("disabled")}valueChanged(){this.syncFormState(),this.dispatchInternalStateChange("value")}dispatchInternalStateChange(t){this.el?.dispatchEvent(new CustomEvent("brInternalRadioStateChange",{bubbles:!0,composed:!0,detail:{property:t}}))}handleRadioGroupState(t){t.target===this.el&&(this.groupManaged=t.detail.managed,this.groupDisabled=t.detail.disabled,this.groupTabIndex=t.detail.tabIndex,this.groupNativeName=t.detail.managed?t.detail.nativeName??"":"",this.syncFormState())}componentWillLoad(){this.initialChecked=this.checked,this.syncFormState()}componentDidLoad(){this.hasFeedbackSlot=null!==this.el.querySelector('[slot="feedback"]'),this.updateValidity()}componentDidUpdate(){this.updateValidity()}handleCheckedChange(t){const i=t.target;i.customId!==this.customId&&i.name===this.name&&t.detail&&(this.checked&&(this.checked=!1),this.updateTrigger++)}handleKeyDown(t){if(this.isDisabled()||this.isManagedByGroup())return;if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(t.key))return;t.preventDefault();const i=this.el.getRootNode(),e=Array.from(i.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled)),a=e.indexOf(this.el);if(-1===a)return;let r=a;"ArrowRight"===t.key||"ArrowDown"===t.key?r=(a+1)%e.length:"ArrowLeft"===t.key||"ArrowUp"===t.key?r=(a-1+e.length)%e.length:"Home"===t.key?r=0:"End"===t.key&&(r=e.length-1);const o=e[r];o&&(o.checked||o.toggleChecked(),o.setFocus())}async checkValidity(){return this.elementInternals?.checkValidity?.()??!0}async reportValidity(){return this.elementInternals?.reportValidity?.()??!0}async setCustomValidity(t){this.customValidationMessage=t,this.updateValidity()}async validate(){const t=l(this.validator);if(!t||this.isDisabled())return this.checkValidity();const i=++this.validationRunId;this.isValidating=!0,this.validatorMessage=null,this.updateValidity(),this.brRadioValidationChange.emit({validating:!0,valid:null,message:null});const e=await d(t,this.checked);if(i!==this.validationRunId)return!1;this.validatorMessage=e,this.isValidating=!1,this.updateValidity();const a=null===e&&await this.checkValidity();return this.brRadioValidationChange.emit({validating:!1,valid:a,message:e}),a}async getValidationState(){return c(this.elementInternals)}async toggleChecked(){this.isDisabled()||(this.checked=!this.checked)}async setFocus(){const t=this.el.shadowRoot?.querySelector("input");t&&t.focus()}syncFormState(){h(this.elementInternals,this.isManagedByGroup()?null:g(this.checked,this.value),u(this.checked)),this.updateValidity()}isDisabled(){return b(this.disabled||this.groupDisabled,this.formDisabled)}isManagedByGroup(){return this.groupManaged}getNativeName(){const t=this.el.closest("br-radio-group");return t?.customId?t.customId+"-native":this.name}isStandalonePeer(t){return"br-radio-group"!==t.parentElement?.tagName.toLowerCase()}updateValidity(){if(this.isManagedByGroup())return p(this.elementInternals,{},"",this.nativeInput),void this.nativeInput?.removeAttribute("aria-invalid");const t=this.el.getRootNode(),i=Array.from(t.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled)),e=i.some((t=>t.required))&&!i.some((t=>t.checked));p(this.elementInternals,{customError:""!==this.customValidationMessage||!!this.validatorMessage,valueMissing:e},this.customValidationMessage||this.validatorMessage||(e?"Selecione uma opção.":""),this.nativeInput)}getCssClassMap(){const t=this.effectiveState;return{"br-radio":!0,valid:"valid"===t,invalid:"invalid"===t||!!this.customValidationMessage,disabled:this.isDisabled(),"hidden-label":this.labelHidden??this.hasHiddenLabel}}get effectiveState(){return m(this.el,void 0!==this.feedbackState?"feedbackState":"state",this.feedbackState??this.state,y,void 0,{allowUndefined:!0})}handleDoubleClick(){!this.isDisabled()&&!this.uncheckOnClick&&this.uncheckOnDoubleClick&&this.checked&&this.uncheck()}uncheck(){this.checked=!1,this.checkedChange.emit(!1),s(this.el,"input"),s(this.el,"change")}computeTabIndex(){if(this.isDisabled())return-1;if(this.checked)return 0;if(this.isManagedByGroup())return this.groupTabIndex;const t=this.el.getRootNode();if(!t)return 0;const i=Array.from(t.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled));return i.some((t=>t.checked))?-1:i[0]===this.el?0:-1}syncGroupTabStops(){if(this.isManagedByGroup())return;const t=this.el.getRootNode(),i=Array.from(t.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled)),e=i.find((t=>t.checked));i.forEach(((t,i)=>{const a=t.shadowRoot?.querySelector("input");a&&(a.tabIndex=e?t===e?0:-1:0===i?0:-1)}))}render(){return a(r,{key:"593c87451f1364548b183f010b0e4a857606ddcf","aria-disabled":this.isDisabled()?"true":null},a("div",{key:"4680eb3b7b9e60d92b05a050ca71dd3ab0df0d21",class:this.getCssClassMap(),part:"container"},a("input",{key:"4cc880256e8928a222c0acb1703075ca385b1b7e",part:"radio-input",ref:t=>this.nativeInput=t,"aria-label":(this.labelHidden??this.hasHiddenLabel)&&this.label?this.label:null,type:"radio",id:this.customId,name:this.groupNativeName||this.getNativeName(),checked:this.checked,disabled:this.isDisabled(),required:!1,value:this.value,tabIndex:this.computeTabIndex(),onClick:this.onClick,onInput:this.onInput,onChange:this.onChange,"aria-busy":this.isValidating?"true":null,"aria-describedby":this.hasFeedbackSlot||this.customValidationMessage||this.validatorMessage?this.customId+"-feedback":null,"aria-errormessage":this.customValidationMessage||this.validatorMessage||this.hasFeedbackSlot?this.customId+"-feedback":null}),a("label",{key:"e424af10ba938e321779eaf426fc9dfae52d102d",part:"radio-label",htmlFor:this.customId},a("slot",{key:"de783d9e47b7d047f405313b904b730b66bbb911"},this.label))),a("div",{key:"f9e544e3e331dbf079adfa0b06ed7ce3a933f4ac",id:this.customId+"-feedback",part:"feedback",hidden:!this.hasFeedbackSlot&&!this.customValidationMessage&&!this.validatorMessage},a("slot",{key:"997e45acd2ad97857cd9ea303e10d252689392a7",name:"feedback",onSlotchange:t=>this.hasFeedbackSlot=f(t.currentTarget)}),this.hasFeedbackSlot||!this.customValidationMessage&&!this.validatorMessage?null:a("br-message",{state:"danger",message:this.customValidationMessage||this.validatorMessage})))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{checked:[{checkedChanged:0}],disabled:[{disabledChanged:0}],value:[{valueChanged:0}]}}static get style(){return'*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}pre code,.pre code{display:inline;padding:0}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.br-radio{--radio-size:24px;--radio-bullet-size:16px;--radio-bullet-position:calc((var(--radio-size) - var(--radio-bullet-size)) * 0.5);display:block}.br-radio+.br-radio{margin-top:var(--spacing-scale-base)}.br-radio input{opacity:0;position:absolute}.br-radio input+label{cursor:pointer;display:inline-block;margin-bottom:0;min-height:var(--radio-size);min-width:var(--radio-size);padding-left:calc(var(--spacing-scale-base) + var(--radio-size));position:relative}.br-radio input+label::before{background:var(--background);border:1px solid var(--border-color);border-radius:50%;content:"";height:var(--radio-size);left:0;position:absolute;top:-1px;width:var(--radio-size)}.br-radio input+label:empty{padding:0}.br-radio input+label:empty::before{top:0}.br-radio label{font-weight:var(--font-weight-medium)}.br-radio input:checked+label::after{background:var(--selected);border:7px solid var(--selected);border-radius:50%;content:"";height:var(--radio-bullet-size);left:var(--radio-bullet-position);position:absolute;right:0;top:calc(var(--radio-bullet-position) - 1px);width:var(--radio-bullet-size)}.br-radio input:checked+label:empty::after{top:var(--radio-bullet-position)}.br-radio.valid input+label::before,.br-radio[valid] input+label::before{border-color:var(--success)}.br-radio.invalid input+label::before,.br-radio[invalid] input+label::before{border-color:var(--danger)}.br-radio.small input+label,.br-radio[small] input+label{line-height:var(--spacing-scale-2xh);min-height:var(--spacing-scale-2xh)}.br-radio.small input+label::before,.br-radio[small] input+label::before{height:var(--spacing-scale-2xh);width:var(--spacing-scale-2xh)}.br-radio.small input:checked+label::after,.br-radio[small] input:checked+label::after{border-width:4px;height:10px;width:10px}.br-radio input:invalid+label::before{border-color:var(--danger)}.br-radio input:focus-visible:checked+label::before,.br-radio input:focus-visible+label::before,.br-radio input.focus-visible:checked+label::before,.br-radio input.focus-visible+label::before{border-color:var(--focus) !important;box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}.br-radio input:hover:not(:disabled)+label::before{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}.br-radio.inverted,.br-radio.inverted label,.br-radio.dark-mode,.br-radio.dark-mode label{color:var(--color-dark)}input:checked+label::after{background:var(--selected);border:7px solid var(--selected);border-radius:50%;content:"";height:var(--radio-bullet-size);left:var(--radio-bullet-position);position:absolute;right:0;top:calc(var(--radio-bullet-position) - 1px);width:var(--radio-bullet-size)}input:checked+label:empty::after{top:var(--radio-bullet-position)}:host{display:inline-block;margin-bottom:var(--spacing-scale-base)}:host .br-radio.hidden-label label{padding-left:calc(var(--checkbox-size) + var(--surface-width-md)*2);text-indent:-10000px;white-space:nowrap;width:0}'}},[337,"br-radio",{checked:[1540],uncheckOnClick:[516,"uncheck-on-click"],uncheckOnDoubleClick:[516,"uncheck-on-double-click"],disabled:[516],required:[516],validator:[16],state:[513],feedbackState:[513,"feedback-state"],hasHiddenLabel:[516,"has-hidden-label"],labelHidden:[516,"label-hidden"],customId:[513,"custom-id"],name:[513],label:[513],value:[513],formDisabled:[32],updateTrigger:[32],hasFeedbackSlot:[32],customValidationMessage:[32],validatorMessage:[32],isValidating:[32],groupManaged:[32],groupDisabled:[32],groupTabIndex:[32],groupNativeName:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64],validate:[64],getValidationState:[64],toggleChecked:[64],setFocus:[64]},[[0,"brRadioGroupState","handleRadioGroupState"],[0,"keydown","handleKeyDown"],[0,"dblclick","handleDoubleClick"]],{checked:[{checkedChanged:0}],disabled:[{disabledChanged:0}],value:[{valueChanged:0}]}]),C=z,j=function(){"undefined"!=typeof customElements&&["br-radio","br-button","br-icon","br-message"].forEach((t=>{switch(t){case"br-radio":customElements.get(o(t))||customElements.define(o(t),z);break;case"br-button":customElements.get(o(t))||w();break;case"br-icon":customElements.get(o(t))||x();break;case"br-message":customElements.get(o(t))||k()}}))};export{C as BrRadio,j as defineCustomElement}
|
|
5
|
+
import{p as t,H as i,c as e,h as a,d as r,t as o}from"./p-Jk_KQE5V.js";import{r as n,d as s}from"./p-BC7f6MK8.js";import{r as l,a as d,g as c,s as h,d as b,i as g,f as u,c as p}from"./p-CDTENPaP.js";import{g as v}from"./p-BeJxz5TQ.js";import{r as m}from"./p-DiLI514I.js";import{b as f}from"./p-BNckUhK6.js";import{d as w}from"./p-DoWy_P8b.js";import{d as x}from"./p-Or3FLzbz.js";import{d as k}from"./p-CAgbUwsx.js";const y=["valid","invalid"],z=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.checkedChange=e(this,"checkedChange",7),this.brRadioValidationChange=e(this,"brRadioValidationChange",7),this.elementInternals=this.attachInternals(),this.formDisabled=!1,this.updateTrigger=0,this.hasFeedbackSlot=!1,this.customValidationMessage="",this.validatorMessage=null,this.isValidating=!1,this.groupManaged=!1,this.groupDisabled=!1,this.groupTabIndex=-1,this.groupNativeName="",this.checked=!1,this.uncheckOnClick=!1,this.uncheckOnDoubleClick=!1,this.disabled=!1,this.required=!1,this.hasHiddenLabel=!1,this.customId=v(),this.validationRunId=0,this.initialChecked=!1,this.onClick=t=>{!this.isDisabled()&&this.uncheckOnClick&&this.checked&&(t.preventDefault(),this.uncheck())},this.onInput=t=>{this.checked=t.target.checked,this.checkedChange.emit(this.checked),n(this.el,t,"input")},this.onChange=t=>{n(this.el,t,"change"),this.isManagedByGroup()||this.validate()}}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){this.customValidationMessage="",this.validatorMessage=null,this.validationRunId++,this.isManagedByGroup()||(this.checked=this.initialChecked),this.syncFormState()}formStateRestoreCallback(t){this.isManagedByGroup()||(this.checked="checked"===t),this.syncFormState()}checkedChanged(){if(this.syncFormState(),this.dispatchInternalStateChange("checked"),this.isManagedByGroup())return void this.el.dispatchEvent(new CustomEvent("brInternalRadioChecked",{bubbles:!0,composed:!0}));const t=this.el.getRootNode();this.checked&&t.querySelectorAll("br-radio").forEach((t=>{t!==this.el&&this.isStandalonePeer(t)&&t.name===this.name&&t.checked&&(t.checked=!1)})),requestAnimationFrame((()=>this.syncGroupTabStops()))}disabledChanged(){this.syncFormState(),this.dispatchInternalStateChange("disabled")}valueChanged(){this.syncFormState(),this.dispatchInternalStateChange("value")}dispatchInternalStateChange(t){this.el?.dispatchEvent(new CustomEvent("brInternalRadioStateChange",{bubbles:!0,composed:!0,detail:{property:t}}))}handleRadioGroupState(t){t.target===this.el&&(this.groupManaged=t.detail.managed,this.groupDisabled=t.detail.disabled,this.groupTabIndex=t.detail.tabIndex,this.groupNativeName=t.detail.managed?t.detail.nativeName??"":"",this.syncFormState())}componentWillLoad(){this.initialChecked=this.checked,this.syncFormState()}componentDidLoad(){this.hasFeedbackSlot=null!==this.el.querySelector('[slot="feedback"]'),this.updateValidity()}componentDidUpdate(){this.updateValidity()}handleCheckedChange(t){const i=t.target;i.customId!==this.customId&&i.name===this.name&&t.detail&&(this.checked&&(this.checked=!1),this.updateTrigger++)}handleKeyDown(t){if(this.isDisabled()||this.isManagedByGroup())return;if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(t.key))return;t.preventDefault();const i=this.el.getRootNode(),e=Array.from(i.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled)),a=e.indexOf(this.el);if(-1===a)return;let r=a;"ArrowRight"===t.key||"ArrowDown"===t.key?r=(a+1)%e.length:"ArrowLeft"===t.key||"ArrowUp"===t.key?r=(a-1+e.length)%e.length:"Home"===t.key?r=0:"End"===t.key&&(r=e.length-1);const o=e[r];o&&(o.checked||o.toggleChecked(),o.setFocus())}async checkValidity(){return this.elementInternals?.checkValidity?.()??!0}async reportValidity(){return this.elementInternals?.reportValidity?.()??!0}async setCustomValidity(t){this.customValidationMessage=t,this.updateValidity()}async validate(){const t=l(this.validator);if(!t||this.isDisabled())return this.checkValidity();const i=++this.validationRunId;this.isValidating=!0,this.validatorMessage=null,this.updateValidity(),this.brRadioValidationChange.emit({validating:!0,valid:null,message:null});const e=await d(t,this.checked);if(i!==this.validationRunId)return!1;this.validatorMessage=e,this.isValidating=!1,this.updateValidity();const a=null===e&&await this.checkValidity();return this.brRadioValidationChange.emit({validating:!1,valid:a,message:e}),a}async getValidationState(){return c(this.elementInternals)}async toggleChecked(){this.isDisabled()||(this.checked=!this.checked)}async setFocus(){const t=this.el.shadowRoot?.querySelector("input");t&&t.focus()}syncFormState(){h(this.elementInternals,this.isManagedByGroup()?null:b(this.checked,this.value),p(this.checked)),this.updateValidity()}isDisabled(){return g(this.disabled||this.groupDisabled,this.formDisabled)}isManagedByGroup(){return this.groupManaged}getNativeName(){const t=this.el.closest("br-radio-group");return t?.customId?t.customId+"-native":this.name}isStandalonePeer(t){return"br-radio-group"!==t.parentElement?.tagName.toLowerCase()}updateValidity(){if(this.isManagedByGroup())return u(this.elementInternals,{},"",this.nativeInput),void this.nativeInput?.removeAttribute("aria-invalid");const t=this.el.getRootNode(),i=Array.from(t.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled)),e=i.some((t=>t.required))&&!i.some((t=>t.checked));u(this.elementInternals,{customError:""!==this.customValidationMessage||!!this.validatorMessage,valueMissing:e},this.customValidationMessage||this.validatorMessage||(e?"Selecione uma opção.":""),this.nativeInput)}getCssClassMap(){const t=this.effectiveState;return{"br-radio":!0,valid:"valid"===t,invalid:"invalid"===t||!!this.customValidationMessage,disabled:this.isDisabled(),"hidden-label":this.labelHidden??this.hasHiddenLabel}}get effectiveState(){return m(this.el,void 0!==this.feedbackState?"feedbackState":"state",this.feedbackState??this.state,y,void 0,{allowUndefined:!0})}handleDoubleClick(){!this.isDisabled()&&!this.uncheckOnClick&&this.uncheckOnDoubleClick&&this.checked&&this.uncheck()}uncheck(){this.checked=!1,this.checkedChange.emit(!1),s(this.el,"input"),s(this.el,"change")}computeTabIndex(){if(this.isDisabled())return-1;if(this.checked)return 0;if(this.isManagedByGroup())return this.groupTabIndex;const t=this.el.getRootNode();if(!t)return 0;const i=Array.from(t.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled));return i.some((t=>t.checked))?-1:i[0]===this.el?0:-1}syncGroupTabStops(){if(this.isManagedByGroup())return;const t=this.el.getRootNode(),i=Array.from(t.querySelectorAll("br-radio")).filter((t=>this.isStandalonePeer(t)&&t.name===this.name&&!t.disabled)),e=i.find((t=>t.checked));i.forEach(((t,i)=>{const a=t.shadowRoot?.querySelector("input");a&&(a.tabIndex=e?t===e?0:-1:0===i?0:-1)}))}render(){return a(r,{key:"245acd04dfaed7ff515c974b7cf11b2dbd9c3686","aria-disabled":this.isDisabled()?"true":null},a("div",{key:"629b844514a89708fe02fedbeab9c5c368b5db7c",class:this.getCssClassMap(),part:"container"},a("input",{key:"d58ec8e5dea310a72bb16f27ffd4bf4bdaa31ed1",part:"radio-input",ref:t=>this.nativeInput=t,"aria-label":(this.labelHidden??this.hasHiddenLabel)&&this.label?this.label:null,type:"radio",id:this.customId,name:this.groupNativeName||this.getNativeName(),checked:this.checked,disabled:this.isDisabled(),required:!1,value:this.value,tabIndex:this.computeTabIndex(),onClick:this.onClick,onInput:this.onInput,onChange:this.onChange,"aria-busy":this.isValidating?"true":null,"aria-describedby":this.hasFeedbackSlot||this.customValidationMessage||this.validatorMessage?this.customId+"-feedback":null,"aria-errormessage":this.customValidationMessage||this.validatorMessage||this.hasFeedbackSlot?this.customId+"-feedback":null}),a("label",{key:"fa1bf9b09906fb7ccfc1729626a9ed210da58727",part:"radio-label",htmlFor:this.customId},a("slot",{key:"ca40cab634e9a794a87e0c2283e3922b24368118"},this.label))),a("div",{key:"501e02f118696427497f25a55b6779fb276850bb",id:this.customId+"-feedback",part:"feedback",hidden:!this.hasFeedbackSlot&&!this.customValidationMessage&&!this.validatorMessage},a("slot",{key:"48367e29644a3f8f32a6a51429e657fbe7161b54",name:"feedback",onSlotchange:t=>this.hasFeedbackSlot=f(t.currentTarget)}),this.hasFeedbackSlot||!this.customValidationMessage&&!this.validatorMessage?null:a("br-message",{state:"danger",message:this.customValidationMessage||this.validatorMessage})))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{checked:[{checkedChanged:0}],disabled:[{disabledChanged:0}],value:[{valueChanged:0}]}}static get style(){return'*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.br-radio{--radio-size:24px;--radio-bullet-size:16px;--radio-bullet-position:calc((var(--radio-size) - var(--radio-bullet-size)) * 0.5);display:block}.br-radio+.br-radio{margin-top:var(--spacing-scale-base)}.br-radio input{opacity:0;position:absolute}.br-radio input+label{cursor:pointer;display:inline-block;margin-bottom:0;min-height:var(--radio-size);min-width:var(--radio-size);padding-left:calc(var(--spacing-scale-base) + var(--radio-size));position:relative}.br-radio input+label::before{background:var(--background);border:1px solid var(--border-color);border-radius:50%;content:"";height:var(--radio-size);left:0;position:absolute;top:-1px;width:var(--radio-size)}.br-radio input+label:empty{padding:0}.br-radio input+label:empty::before{top:0}.br-radio label{font-weight:var(--font-weight-medium)}.br-radio input:checked+label::after{background:var(--selected);border:7px solid var(--selected);border-radius:50%;content:"";height:var(--radio-bullet-size);left:var(--radio-bullet-position);position:absolute;right:0;top:calc(var(--radio-bullet-position) - 1px);width:var(--radio-bullet-size)}.br-radio input:checked+label:empty::after{top:var(--radio-bullet-position)}.br-radio.valid input+label::before,.br-radio[valid] input+label::before{border-color:var(--success)}.br-radio.invalid input+label::before,.br-radio[invalid] input+label::before{border-color:var(--danger)}.br-radio.small input+label,.br-radio[small] input+label{line-height:var(--spacing-scale-2xh);min-height:var(--spacing-scale-2xh)}.br-radio.small input+label::before,.br-radio[small] input+label::before{height:var(--spacing-scale-2xh);width:var(--spacing-scale-2xh)}.br-radio.small input:checked+label::after,.br-radio[small] input:checked+label::after{border-width:4px;height:10px;width:10px}.br-radio input:invalid+label::before{border-color:var(--danger)}.br-radio input:focus-visible:checked+label::before,.br-radio input:focus-visible+label::before,.br-radio input.focus-visible:checked+label::before,.br-radio input.focus-visible+label::before{border-color:var(--focus) !important;box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}.br-radio input:hover:not(:disabled)+label::before{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}.br-radio.inverted,.br-radio.inverted label,.br-radio.dark-mode,.br-radio.dark-mode label{color:var(--color-dark)}input:checked+label::after{background:var(--selected);border:7px solid var(--selected);border-radius:50%;content:"";height:var(--radio-bullet-size);left:var(--radio-bullet-position);position:absolute;right:0;top:calc(var(--radio-bullet-position) - 1px);width:var(--radio-bullet-size)}input:checked+label:empty::after{top:var(--radio-bullet-position)}:host{display:inline-block;margin-bottom:var(--spacing-scale-base)}:host .br-radio.hidden-label label{padding-left:calc(var(--checkbox-size) + var(--surface-width-md)*2);text-indent:-10000px;white-space:nowrap;width:0}'}},[337,"br-radio",{checked:[1540],uncheckOnClick:[516,"uncheck-on-click"],uncheckOnDoubleClick:[516,"uncheck-on-double-click"],disabled:[516],required:[516],validator:[16],state:[513],feedbackState:[513,"feedback-state"],hasHiddenLabel:[516,"has-hidden-label"],labelHidden:[516,"label-hidden"],customId:[513,"custom-id"],name:[513],label:[513],value:[513],formDisabled:[32],updateTrigger:[32],hasFeedbackSlot:[32],customValidationMessage:[32],validatorMessage:[32],isValidating:[32],groupManaged:[32],groupDisabled:[32],groupTabIndex:[32],groupNativeName:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64],validate:[64],getValidationState:[64],toggleChecked:[64],setFocus:[64]},[[0,"brRadioGroupState","handleRadioGroupState"],[0,"keydown","handleKeyDown"],[0,"dblclick","handleDoubleClick"]],{checked:[{checkedChanged:0}],disabled:[{disabledChanged:0}],value:[{valueChanged:0}]}]),C=z,j=function(){"undefined"!=typeof customElements&&["br-radio","br-button","br-icon","br-message"].forEach((t=>{switch(t){case"br-radio":customElements.get(o(t))||customElements.define(o(t),z);break;case"br-button":customElements.get(o(t))||w();break;case"br-icon":customElements.get(o(t))||x();break;case"br-message":customElements.get(o(t))||k()}}))};export{C as BrRadio,j as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{S as o,d as s}from"./p-
|
|
5
|
+
import{S as o,d as s}from"./p-DJKZ8ktB.js";const t=o,p=s;export{t as BrScrim,p as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{S as
|
|
5
|
+
import{S as o,d as s}from"./p-Dd1qCWAK.js";const p=o,r=s;export{p as BrSelectInput,r as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{S as
|
|
5
|
+
import{S as s,d as o}from"./p-CyXVsiz9.js";const p=s,r=o;export{p as BrSelectList,r as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{S as o,d as s}from"./p-
|
|
5
|
+
import{S as o,d as s}from"./p-BOWQIHQA.js";const p=o,r=s;export{p as BrSelectOption,r as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{S as o,d as s}from"./p-
|
|
5
|
+
import{S as o,d as s}from"./p-DU54cqCf.js";const p=o,r=s;export{p as BrSelect,r as defineCustomElement}
|