@cloudraker/reki 2.6.1 → 2.7.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/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/ai/component-registry.json +1155 -27
- package/ai/component-registry.md +1139 -21
- package/ai/schemas.ts +219 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +539 -5
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +1691 -1405
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/{SankeyChart-jwwpwps4npqzbrvn.js → SankeyChart-gogf860o4u387kjn.js} +2 -2
- package/dist/chunks/{SankeyChart-jwwpwps4npqzbrvn.js.map → SankeyChart-gogf860o4u387kjn.js.map} +1 -1
- package/dist/chunks/actor-display-izds1bhw0yswurqm.js +35 -0
- package/dist/chunks/actor-display-izds1bhw0yswurqm.js.map +1 -0
- package/dist/chunks/address-input-g1la0xqrpg8ic6ak.js +80 -0
- package/dist/chunks/address-input-g1la0xqrpg8ic6ak.js.map +1 -0
- package/dist/chunks/array-display-lu1259ap3qrl847e.js +12 -0
- package/dist/chunks/array-display-lu1259ap3qrl847e.js.map +1 -0
- package/dist/chunks/{autocomplete-f4vetako14h2aqsw.js → autocomplete-htuy5t9ag29qhuwa.js} +4 -4
- package/dist/chunks/{autocomplete-f4vetako14h2aqsw.js.map → autocomplete-htuy5t9ag29qhuwa.js.map} +1 -1
- package/dist/chunks/avatar-g40cun6cn17fcxd4.js +57 -0
- package/dist/chunks/avatar-g40cun6cn17fcxd4.js.map +1 -0
- package/dist/chunks/avatar-group-fpcaziey1yu7226v.js +23 -0
- package/dist/chunks/avatar-group-fpcaziey1yu7226v.js.map +1 -0
- package/dist/chunks/{breadcrumbs-d6149hyct4puz3x4.js → breadcrumbs-mq1utzm0q4u2r5v5.js} +2 -2
- package/dist/chunks/{breadcrumbs-d6149hyct4puz3x4.js.map → breadcrumbs-mq1utzm0q4u2r5v5.js.map} +1 -1
- package/dist/chunks/{button-nc5p1h28cwes0tjw.js → button-fvlz1rzc3s1hpyxs.js} +14 -14
- package/dist/chunks/button-fvlz1rzc3s1hpyxs.js.map +1 -0
- package/dist/chunks/{checkbox-g2661n3eodgoispq.js → checkbox-h3kfhlron3b6sfhv.js} +3 -3
- package/dist/chunks/{checkbox-g2661n3eodgoispq.js.map → checkbox-h3kfhlron3b6sfhv.js.map} +1 -1
- package/dist/chunks/chip-iu7movvthovdurgb.js +69 -0
- package/dist/chunks/chip-iu7movvthovdurgb.js.map +1 -0
- package/dist/chunks/circular-progress-bar-ofg0ps2axad1wsr6.js +60 -0
- package/dist/chunks/circular-progress-bar-ofg0ps2axad1wsr6.js.map +1 -0
- package/dist/chunks/{clipboard-text-g3659lejx2d7i93e.js → clipboard-text-ogue8iq06n1z7q7v.js} +4 -4
- package/dist/chunks/{clipboard-text-g3659lejx2d7i93e.js.map → clipboard-text-ogue8iq06n1z7q7v.js.map} +1 -1
- package/dist/chunks/{collapsible-ndvmgo29s5iqfcor.js → collapsible-ivqat099ene9z3bv.js} +2 -2
- package/dist/chunks/{collapsible-ndvmgo29s5iqfcor.js.map → collapsible-ivqat099ene9z3bv.js.map} +1 -1
- package/dist/chunks/color-sample-h7hspma3rb91go3z.js +32 -0
- package/dist/chunks/color-sample-h7hspma3rb91go3z.js.map +1 -0
- package/dist/chunks/{combobox-i38w67netm8ukw4f.js → combobox-iytvpzp5poljxgek.js} +4 -4
- package/dist/chunks/{combobox-i38w67netm8ukw4f.js.map → combobox-iytvpzp5poljxgek.js.map} +1 -1
- package/dist/chunks/{command-palette-fe5cjfdgsg3t17vq.js → command-palette-k6vrx8ely8rmf4a5.js} +4 -4
- package/dist/chunks/command-palette-k6vrx8ely8rmf4a5.js.map +1 -0
- package/dist/chunks/data-grid-i7kfgm7zr5tj0e0a.js +3110 -0
- package/dist/chunks/data-grid-i7kfgm7zr5tj0e0a.js.map +1 -0
- package/dist/chunks/{dialog-m4go8xof25fospqo.js → dialog-ggx34i6k4eulfvgk.js} +3 -3
- package/dist/chunks/{dialog-m4go8xof25fospqo.js.map → dialog-ggx34i6k4eulfvgk.js.map} +1 -1
- package/dist/chunks/double-text-input-k0i5xnfq6khv01wu.js +39 -0
- package/dist/chunks/double-text-input-k0i5xnfq6khv01wu.js.map +1 -0
- package/dist/chunks/{dropdown-j5uht8mn4z7xc9fc.js → dropdown-bt1lfs2jli0khnex.js} +2 -2
- package/dist/chunks/{dropdown-j5uht8mn4z7xc9fc.js.map → dropdown-bt1lfs2jli0khnex.js.map} +1 -1
- package/dist/chunks/emails-display-nsbqzscr0f9bqimg.js +12 -0
- package/dist/chunks/emails-display-nsbqzscr0f9bqimg.js.map +1 -0
- package/dist/chunks/{empty-kazxr0248zjemw6n.js → empty-dxy8jti5bsxxh905.js} +2 -2
- package/dist/chunks/{empty-kazxr0248zjemw6n.js.map → empty-dxy8jti5bsxxh905.js.map} +1 -1
- package/dist/chunks/expandable-list-bjceh467ocazog53.js +26 -0
- package/dist/chunks/expandable-list-bjceh467ocazog53.js.map +1 -0
- package/dist/chunks/{field-fe5m8z3vbpvtctbe.js → field-b0aywboxuss4rpu7.js} +3 -3
- package/dist/chunks/{field-fe5m8z3vbpvtctbe.js.map → field-b0aywboxuss4rpu7.js.map} +1 -1
- package/dist/chunks/{input-area-ciw85g3fno06t4tw.js → input-area-cuijpofpark5w5qq.js} +4 -4
- package/dist/chunks/{input-area-ciw85g3fno06t4tw.js.map → input-area-cuijpofpark5w5qq.js.map} +1 -1
- package/dist/chunks/{input-i5nefqk213n4z7pr.js → input-eno4q26x68rx3i8q.js} +3 -3
- package/dist/chunks/{input-i5nefqk213n4z7pr.js.map → input-eno4q26x68rx3i8q.js.map} +1 -1
- package/dist/chunks/{input-group-mo7tq7jr19hmgor5.js → input-group-dl9htnza7kq4om4c.js} +5 -5
- package/dist/chunks/{input-group-mo7tq7jr19hmgor5.js.map → input-group-dl9htnza7kq4om4c.js.map} +1 -1
- package/dist/chunks/json-display-fy0t2khc4itn130p.js +31 -0
- package/dist/chunks/json-display-fy0t2khc4itn130p.js.map +1 -0
- package/dist/chunks/{label-fcho4757rbdess0c.js → label-ld57mr4ocdxsf06p.js} +3 -3
- package/dist/chunks/{label-fcho4757rbdess0c.js.map → label-ld57mr4ocdxsf06p.js.map} +1 -1
- package/dist/chunks/{layer-card-kzu48dhzxm3e9p4u.js → layer-card-iuquuc1w3116umfw.js} +2 -2
- package/dist/chunks/{layer-card-kzu48dhzxm3e9p4u.js.map → layer-card-iuquuc1w3116umfw.js.map} +1 -1
- package/dist/chunks/{link-j2gu5dr3nr4i4yf0.js → link-8pn6y27h3m3ud8fl.js} +2 -2
- package/dist/chunks/{link-j2gu5dr3nr4i4yf0.js.map → link-8pn6y27h3m3ud8fl.js.map} +1 -1
- package/dist/chunks/link-chip-cz5v6lw9icmcndzl.js +58 -0
- package/dist/chunks/link-chip-cz5v6lw9icmcndzl.js.map +1 -0
- package/dist/chunks/links-display-dfaehepz86s2wxx1.js +20 -0
- package/dist/chunks/links-display-dfaehepz86s2wxx1.js.map +1 -0
- package/dist/chunks/menu-item-kyqq7o2krghxbpw5.js +178 -0
- package/dist/chunks/menu-item-kyqq7o2krghxbpw5.js.map +1 -0
- package/dist/chunks/{menubar-ir5gbjmsizsddz7g.js → menubar-56kqktsa5a28xyzj.js} +2 -2
- package/dist/chunks/{menubar-ir5gbjmsizsddz7g.js.map → menubar-56kqktsa5a28xyzj.js.map} +1 -1
- package/dist/chunks/{meter-o5yd7ctjf80vvyjx.js → meter-b5rnmibceu4z8i6a.js} +2 -2
- package/dist/chunks/{meter-o5yd7ctjf80vvyjx.js.map → meter-b5rnmibceu4z8i6a.js.map} +1 -1
- package/dist/chunks/notification-counter-hiq85elmcydnhzoo.js +30 -0
- package/dist/chunks/notification-counter-hiq85elmcydnhzoo.js.map +1 -0
- package/dist/chunks/overflowing-text-mm8bkx7voc6h8ra4.js +49 -0
- package/dist/chunks/overflowing-text-mm8bkx7voc6h8ra4.js.map +1 -0
- package/dist/chunks/{pagination-bryw6rohfr7mm3km.js → pagination-iczb9ooenevbxslx.js} +3 -3
- package/dist/chunks/{pagination-bryw6rohfr7mm3km.js.map → pagination-iczb9ooenevbxslx.js.map} +1 -1
- package/dist/chunks/phones-display-cdsrl07dv6obf4eg.js +19 -0
- package/dist/chunks/phones-display-cdsrl07dv6obf4eg.js.map +1 -0
- package/dist/chunks/pill-pfpvgbcnqhtyksz5.js +22 -0
- package/dist/chunks/pill-pfpvgbcnqhtyksz5.js.map +1 -0
- package/dist/chunks/{popover-elxcmvv7mu7m7uk4.js → popover-ldqdlpv6sqvkjume.js} +2 -2
- package/dist/chunks/{popover-elxcmvv7mu7m7uk4.js.map → popover-ldqdlpv6sqvkjume.js.map} +1 -1
- package/dist/chunks/{radio-newyq331uk4lltr6.js → radio-lyeniil3x20cyb8z.js} +2 -2
- package/dist/chunks/{radio-newyq331uk4lltr6.js.map → radio-lyeniil3x20cyb8z.js.map} +1 -1
- package/dist/chunks/rating-yyd4t8e62ast4obo.js +48 -0
- package/dist/chunks/rating-yyd4t8e62ast4obo.js.map +1 -0
- package/dist/chunks/record-board-iapx3cw5rusehrta.js +3395 -0
- package/dist/chunks/record-board-iapx3cw5rusehrta.js.map +1 -0
- package/dist/chunks/{select-h5480mbro0ypxu0b.js → select-hmoccee4zagd34tq.js} +6 -6
- package/dist/chunks/{select-h5480mbro0ypxu0b.js.map → select-hmoccee4zagd34tq.js.map} +1 -1
- package/dist/chunks/{sensitive-input-lqugq6uvx0lkpu0u.js → sensitive-input-nkfx72rduc7aijaf.js} +4 -4
- package/dist/chunks/{sensitive-input-lqugq6uvx0lkpu0u.js.map → sensitive-input-nkfx72rduc7aijaf.js.map} +1 -1
- package/dist/chunks/{sidebar-noz668nhdu2gso12.js → sidebar-gwfibai76tw069d4.js} +34 -33
- package/dist/chunks/sidebar-gwfibai76tw069d4.js.map +1 -0
- package/dist/chunks/status-ot0itdwxloqgahi0.js +29 -0
- package/dist/chunks/status-ot0itdwxloqgahi0.js.map +1 -0
- package/dist/chunks/{surface-cyxme7mlr49l33f8.js → surface-fqmma34ju0agh5pe.js} +2 -2
- package/dist/chunks/{surface-cyxme7mlr49l33f8.js.map → surface-fqmma34ju0agh5pe.js.map} +1 -1
- package/dist/chunks/{switch-bigo96fyjlh7ivbi.js → switch-nhtmn65n5s7gg6vb.js} +3 -3
- package/dist/chunks/{switch-bigo96fyjlh7ivbi.js.map → switch-nhtmn65n5s7gg6vb.js.map} +1 -1
- package/dist/chunks/{table-mwcmwp6a80zvyrxw.js → table-cjj894o3niouq4tg.js} +2 -2
- package/dist/chunks/{table-mwcmwp6a80zvyrxw.js.map → table-cjj894o3niouq4tg.js.map} +1 -1
- package/dist/chunks/{tabs-e4pcjkw94kpe35x0.js → tabs-klj6wapad6fpd9at.js} +14 -16
- package/dist/chunks/tabs-klj6wapad6fpd9at.js.map +1 -0
- package/dist/chunks/tag-h5kwf5eh7dyyvc2c.js +58 -0
- package/dist/chunks/tag-h5kwf5eh7dyyvc2c.js.map +1 -0
- package/dist/chunks/{toast-ivr4097bstjcjotf.js → toast-j47dl441zpxa1yw3.js} +3 -3
- package/dist/chunks/{toast-ivr4097bstjcjotf.js.map → toast-j47dl441zpxa1yw3.js.map} +1 -1
- package/dist/chunks/{tooltip-ncaia8n1lavkyw8n.js → tooltip-bkgxuz77xzg5fooc.js} +2 -2
- package/dist/chunks/{tooltip-ncaia8n1lavkyw8n.js.map → tooltip-bkgxuz77xzg5fooc.js.map} +1 -1
- package/dist/chunks/{vendor-base-ui-bgl9g5nkvqy3tn36.js → vendor-base-ui-djdjrfuoxlb1lubi.js} +2358 -2358
- package/dist/chunks/{vendor-base-ui-bgl9g5nkvqy3tn36.js.map → vendor-base-ui-djdjrfuoxlb1lubi.js.map} +1 -1
- package/dist/code.js +1 -1
- package/dist/components/actor-display.js +6 -0
- package/dist/components/actor-display.js.map +1 -0
- package/dist/components/address-input.js +6 -0
- package/dist/components/address-input.js.map +1 -0
- package/dist/components/array-display.js +6 -0
- package/dist/components/array-display.js.map +1 -0
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/avatar-group.js +6 -0
- package/dist/components/avatar-group.js.map +1 -0
- package/dist/components/avatar.js +6 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +8 -0
- package/dist/components/chip.js.map +1 -0
- package/dist/components/circular-progress-bar.js +6 -0
- package/dist/components/circular-progress-bar.js.map +1 -0
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-sample.js +6 -0
- package/dist/components/color-sample.js.map +1 -0
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/data-grid.js +8 -0
- package/dist/components/data-grid.js.map +1 -0
- package/dist/components/dialog.js +1 -1
- package/dist/components/double-text-input.js +6 -0
- package/dist/components/double-text-input.js.map +1 -0
- package/dist/components/dropdown.js +1 -1
- package/dist/components/emails-display.js +6 -0
- package/dist/components/emails-display.js.map +1 -0
- package/dist/components/empty.js +1 -1
- package/dist/components/expandable-list.js +6 -0
- package/dist/components/expandable-list.js.map +1 -0
- package/dist/components/field.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/json-display.js +6 -0
- package/dist/components/json-display.js.map +1 -0
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link-chip.js +6 -0
- package/dist/components/link-chip.js.map +1 -0
- package/dist/components/link.js +1 -1
- package/dist/components/links-display.js +6 -0
- package/dist/components/links-display.js.map +1 -0
- package/dist/components/menu-item.js +11 -0
- package/dist/components/menu-item.js.map +1 -0
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/notification-counter.js +6 -0
- package/dist/components/notification-counter.js.map +1 -0
- package/dist/components/overflowing-text.js +6 -0
- package/dist/components/overflowing-text.js.map +1 -0
- package/dist/components/pagination.js +1 -1
- package/dist/components/phones-display.js +6 -0
- package/dist/components/phones-display.js.map +1 -0
- package/dist/components/pill.js +6 -0
- package/dist/components/pill.js.map +1 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rating.js +6 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/record-board.js +8 -0
- package/dist/components/record-board.js.map +1 -0
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/status.js +6 -0
- package/dist/components/status.js.map +1 -0
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag.js +10 -0
- package/dist/components/tag.js.map +1 -0
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +378 -253
- package/dist/index.js.map +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/otp-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/scripts/theme-generator/config.d.ts.map +1 -1
- package/dist/scripts/theme-generator/config.js +229 -5
- package/dist/scripts/theme-generator/config.js.map +1 -1
- package/dist/src/components/actor-display/actor-display.d.ts +33 -0
- package/dist/src/components/actor-display/actor-display.d.ts.map +1 -0
- package/dist/src/components/actor-display/index.d.ts +2 -0
- package/dist/src/components/actor-display/index.d.ts.map +1 -0
- package/dist/src/components/address-input/address-input.d.ts +42 -0
- package/dist/src/components/address-input/address-input.d.ts.map +1 -0
- package/dist/src/components/address-input/index.d.ts +2 -0
- package/dist/src/components/address-input/index.d.ts.map +1 -0
- package/dist/src/components/array-display/array-display.d.ts +30 -0
- package/dist/src/components/array-display/array-display.d.ts.map +1 -0
- package/dist/src/components/array-display/index.d.ts +2 -0
- package/dist/src/components/array-display/index.d.ts.map +1 -0
- package/dist/src/components/avatar/avatar.d.ts +80 -0
- package/dist/src/components/avatar/avatar.d.ts.map +1 -0
- package/dist/src/components/avatar/index.d.ts +2 -0
- package/dist/src/components/avatar/index.d.ts.map +1 -0
- package/dist/src/components/avatar-group/avatar-group.d.ts +35 -0
- package/dist/src/components/avatar-group/avatar-group.d.ts.map +1 -0
- package/dist/src/components/avatar-group/index.d.ts +2 -0
- package/dist/src/components/avatar-group/index.d.ts.map +1 -0
- package/dist/src/components/button/button.d.ts +4 -4
- package/dist/src/components/chip/chip.d.ts +78 -0
- package/dist/src/components/chip/chip.d.ts.map +1 -0
- package/dist/src/components/chip/index.d.ts +2 -0
- package/dist/src/components/chip/index.d.ts.map +1 -0
- package/dist/src/components/circular-progress-bar/circular-progress-bar.d.ts +35 -0
- package/dist/src/components/circular-progress-bar/circular-progress-bar.d.ts.map +1 -0
- package/dist/src/components/circular-progress-bar/index.d.ts +2 -0
- package/dist/src/components/circular-progress-bar/index.d.ts.map +1 -0
- package/dist/src/components/color-sample/color-sample.d.ts +56 -0
- package/dist/src/components/color-sample/color-sample.d.ts.map +1 -0
- package/dist/src/components/color-sample/index.d.ts +2 -0
- package/dist/src/components/color-sample/index.d.ts.map +1 -0
- package/dist/src/components/data-grid/data-grid.d.ts +25 -0
- package/dist/src/components/data-grid/data-grid.d.ts.map +1 -0
- package/dist/src/components/data-grid/index.d.ts +3 -0
- package/dist/src/components/data-grid/index.d.ts.map +1 -0
- package/dist/src/components/data-grid/types.d.ts +103 -0
- package/dist/src/components/data-grid/types.d.ts.map +1 -0
- package/dist/src/components/data-grid/use-data-grid-edit.d.ts +34 -0
- package/dist/src/components/data-grid/use-data-grid-edit.d.ts.map +1 -0
- package/dist/src/components/double-text-input/double-text-input.d.ts +47 -0
- package/dist/src/components/double-text-input/double-text-input.d.ts.map +1 -0
- package/dist/src/components/double-text-input/index.d.ts +2 -0
- package/dist/src/components/double-text-input/index.d.ts.map +1 -0
- package/dist/src/components/emails-display/emails-display.d.ts +30 -0
- package/dist/src/components/emails-display/emails-display.d.ts.map +1 -0
- package/dist/src/components/emails-display/index.d.ts +2 -0
- package/dist/src/components/emails-display/index.d.ts.map +1 -0
- package/dist/src/components/expandable-list/expandable-list.d.ts +41 -0
- package/dist/src/components/expandable-list/expandable-list.d.ts.map +1 -0
- package/dist/src/components/expandable-list/index.d.ts +2 -0
- package/dist/src/components/expandable-list/index.d.ts.map +1 -0
- package/dist/src/components/json-display/index.d.ts +2 -0
- package/dist/src/components/json-display/index.d.ts.map +1 -0
- package/dist/src/components/json-display/json-display.d.ts +29 -0
- package/dist/src/components/json-display/json-display.d.ts.map +1 -0
- package/dist/src/components/link-chip/index.d.ts +2 -0
- package/dist/src/components/link-chip/index.d.ts.map +1 -0
- package/dist/src/components/link-chip/link-chip.d.ts +50 -0
- package/dist/src/components/link-chip/link-chip.d.ts.map +1 -0
- package/dist/src/components/links-display/index.d.ts +2 -0
- package/dist/src/components/links-display/index.d.ts.map +1 -0
- package/dist/src/components/links-display/links-display.d.ts +37 -0
- package/dist/src/components/links-display/links-display.d.ts.map +1 -0
- package/dist/src/components/menu-item/index.d.ts +2 -0
- package/dist/src/components/menu-item/index.d.ts.map +1 -0
- package/dist/src/components/menu-item/menu-item.d.ts +104 -0
- package/dist/src/components/menu-item/menu-item.d.ts.map +1 -0
- package/dist/src/components/notification-counter/index.d.ts +2 -0
- package/dist/src/components/notification-counter/index.d.ts.map +1 -0
- package/dist/src/components/notification-counter/notification-counter.d.ts +51 -0
- package/dist/src/components/notification-counter/notification-counter.d.ts.map +1 -0
- package/dist/src/components/overflowing-text/index.d.ts +2 -0
- package/dist/src/components/overflowing-text/index.d.ts.map +1 -0
- package/dist/src/components/overflowing-text/overflowing-text.d.ts +48 -0
- package/dist/src/components/overflowing-text/overflowing-text.d.ts.map +1 -0
- package/dist/src/components/phones-display/index.d.ts +2 -0
- package/dist/src/components/phones-display/index.d.ts.map +1 -0
- package/dist/src/components/phones-display/phones-display.d.ts +31 -0
- package/dist/src/components/phones-display/phones-display.d.ts.map +1 -0
- package/dist/src/components/pill/index.d.ts +2 -0
- package/dist/src/components/pill/index.d.ts.map +1 -0
- package/dist/src/components/pill/pill.d.ts +31 -0
- package/dist/src/components/pill/pill.d.ts.map +1 -0
- package/dist/src/components/rating/index.d.ts +2 -0
- package/dist/src/components/rating/index.d.ts.map +1 -0
- package/dist/src/components/rating/rating.d.ts +37 -0
- package/dist/src/components/rating/rating.d.ts.map +1 -0
- package/dist/src/components/record-board/index.d.ts +2 -0
- package/dist/src/components/record-board/index.d.ts.map +1 -0
- package/dist/src/components/record-board/record-board.d.ts +75 -0
- package/dist/src/components/record-board/record-board.d.ts.map +1 -0
- package/dist/src/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/components/status/index.d.ts +2 -0
- package/dist/src/components/status/index.d.ts.map +1 -0
- package/dist/src/components/status/status.d.ts +52 -0
- package/dist/src/components/status/status.d.ts.map +1 -0
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/tag/index.d.ts +2 -0
- package/dist/src/components/tag/index.d.ts.map +1 -0
- package/dist/src/components/tag/tag.d.ts +153 -0
- package/dist/src/components/tag/tag.d.ts.map +1 -0
- package/dist/src/index.d.ts +25 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/use-is-dark-mode.d.ts +18 -0
- package/dist/src/utils/use-is-dark-mode.d.ts.map +1 -0
- package/dist/styles/reki-standalone.css +1 -1
- package/dist/styles/reki.css +19 -0
- package/dist/styles/theme-fedramp.css +6 -0
- package/dist/styles/theme-reki.css +164 -10
- package/package.json +114 -4
- package/scripts/component-registry/index.ts +6 -11
- package/scripts/extract-demo-examples.ts +323 -0
- package/scripts/generate-stories.ts +205 -0
- package/scripts/theme-generator/config.ts +230 -5
- package/dist/chunks/button-nc5p1h28cwes0tjw.js.map +0 -1
- package/dist/chunks/command-palette-fe5cjfdgsg3t17vq.js.map +0 -1
- package/dist/chunks/sidebar-noz668nhdu2gso12.js.map +0 -1
- package/dist/chunks/tabs-e4pcjkw94kpe35x0.js.map +0 -1
package/dist/chunks/{vendor-base-ui-bgl9g5nkvqy3tn36.js → vendor-base-ui-djdjrfuoxlb1lubi.js}
RENAMED
|
@@ -13432,2496 +13432,2496 @@ const QP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13432
13432
|
Root: $g,
|
|
13433
13433
|
Trigger: Wg
|
|
13434
13434
|
}, Symbol.toStringTag, { value: "Module" })), Iu = /* @__PURE__ */ r.createContext(void 0);
|
|
13435
|
-
process.env.NODE_ENV !== "production" && (Iu.displayName = "
|
|
13436
|
-
function
|
|
13435
|
+
process.env.NODE_ENV !== "production" && (Iu.displayName = "TabsRootContext");
|
|
13436
|
+
function aa() {
|
|
13437
13437
|
const e = r.useContext(Iu);
|
|
13438
13438
|
if (e === void 0)
|
|
13439
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI:
|
|
13439
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : He(64));
|
|
13440
13440
|
return e;
|
|
13441
13441
|
}
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
const s = new Intl.NumberFormat(e, t);
|
|
13451
|
-
return If.set(n, s), s;
|
|
13452
|
-
}
|
|
13453
|
-
function hn(e, t, n) {
|
|
13454
|
-
return e == null ? "" : Br(t, n).format(e);
|
|
13455
|
-
}
|
|
13456
|
-
function Gg(e, t, n) {
|
|
13457
|
-
return hn(e, t, {
|
|
13458
|
-
...n,
|
|
13459
|
-
maximumFractionDigits: 20
|
|
13460
|
-
});
|
|
13461
|
-
}
|
|
13462
|
-
function Kg(e, t, n) {
|
|
13463
|
-
return e == null ? "" : n ? hn(e, t, n) : hn(e / 100, t, {
|
|
13464
|
-
style: "percent"
|
|
13465
|
-
});
|
|
13466
|
-
}
|
|
13467
|
-
const Xg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13442
|
+
let uS = /* @__PURE__ */ (function(e) {
|
|
13443
|
+
return e.activationDirection = "data-activation-direction", e.orientation = "data-orientation", e;
|
|
13444
|
+
})({});
|
|
13445
|
+
const ca = {
|
|
13446
|
+
tabActivationDirection: (e) => ({
|
|
13447
|
+
[uS.activationDirection]: e
|
|
13448
|
+
})
|
|
13449
|
+
}, Gg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13468
13450
|
const {
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13451
|
+
className: o,
|
|
13452
|
+
defaultValue: s = 0,
|
|
13453
|
+
onValueChange: a,
|
|
13454
|
+
orientation: i = "horizontal",
|
|
13455
|
+
render: l,
|
|
13474
13456
|
value: u,
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13457
|
+
style: c,
|
|
13458
|
+
...d
|
|
13459
|
+
} = t, f = t.defaultValue !== void 0, p = r.useRef([]), [g, m] = r.useState(() => /* @__PURE__ */ new Map()), [h, b] = Vt({
|
|
13460
|
+
controlled: u,
|
|
13461
|
+
default: s,
|
|
13462
|
+
name: "Tabs",
|
|
13463
|
+
state: "value"
|
|
13464
|
+
}), v = u !== void 0, [E, y] = r.useState(() => /* @__PURE__ */ new Map()), R = r.useCallback((_) => {
|
|
13465
|
+
if (_ === void 0)
|
|
13466
|
+
return null;
|
|
13467
|
+
for (const [Y, J] of E.entries())
|
|
13468
|
+
if (J != null && _ === (J.value ?? J.index))
|
|
13469
|
+
return Y;
|
|
13470
|
+
return null;
|
|
13471
|
+
}, [E]), [S, x] = r.useState(() => ({
|
|
13472
|
+
previousValue: h,
|
|
13473
|
+
tabActivationDirection: "none"
|
|
13474
|
+
})), {
|
|
13475
|
+
previousValue: C,
|
|
13476
|
+
tabActivationDirection: N
|
|
13477
|
+
} = S;
|
|
13478
|
+
let P = N, O = !1;
|
|
13479
|
+
C !== h && (P = If(C, h, i, E), O = C != null && h != null && R(h) == null);
|
|
13480
|
+
const w = O ? C : h, D = C !== w || N !== P;
|
|
13481
|
+
Ee(() => {
|
|
13482
|
+
D && x({
|
|
13483
|
+
previousValue: w,
|
|
13484
|
+
tabActivationDirection: P
|
|
13485
|
+
});
|
|
13486
|
+
}, [w, D, P]);
|
|
13487
|
+
const M = le((_, Y) => {
|
|
13488
|
+
const J = If(h, _, i, E);
|
|
13489
|
+
Y.activationDirection = J, a?.(_, Y), !Y.isCanceled && b(_);
|
|
13490
|
+
}), F = le((_, Y) => {
|
|
13491
|
+
a?.(_, Re(Y, void 0, void 0, {
|
|
13492
|
+
activationDirection: "none"
|
|
13493
|
+
}));
|
|
13494
|
+
}), I = le((_, Y) => {
|
|
13495
|
+
m((J) => {
|
|
13496
|
+
if (J.get(_) === Y)
|
|
13497
|
+
return J;
|
|
13498
|
+
const Z = new Map(J);
|
|
13499
|
+
return Z.set(_, Y), Z;
|
|
13500
|
+
});
|
|
13501
|
+
}), A = le((_, Y) => {
|
|
13502
|
+
m((J) => {
|
|
13503
|
+
if (!J.has(_) || J.get(_) !== Y)
|
|
13504
|
+
return J;
|
|
13505
|
+
const Z = new Map(J);
|
|
13506
|
+
return Z.delete(_), Z;
|
|
13507
|
+
});
|
|
13508
|
+
}), T = r.useCallback((_) => g.get(_), [g]), V = r.useCallback((_) => {
|
|
13509
|
+
for (const Y of E.values())
|
|
13510
|
+
if (_ === Y?.value)
|
|
13511
|
+
return Y?.id;
|
|
13512
|
+
}, [E]), B = r.useMemo(() => ({
|
|
13513
|
+
getTabElementBySelectedValue: R,
|
|
13514
|
+
getTabIdByPanelValue: V,
|
|
13515
|
+
getTabPanelIdByValue: T,
|
|
13516
|
+
onValueChange: M,
|
|
13517
|
+
orientation: i,
|
|
13518
|
+
registerMountedTabPanel: I,
|
|
13519
|
+
setTabMap: y,
|
|
13520
|
+
unregisterMountedTabPanel: A,
|
|
13521
|
+
tabActivationDirection: P,
|
|
13522
|
+
value: h
|
|
13523
|
+
}), [R, V, T, M, i, I, y, A, P, h]), H = r.useMemo(() => {
|
|
13524
|
+
for (const _ of E.values())
|
|
13525
|
+
if (_ != null && _.value === h)
|
|
13526
|
+
return _;
|
|
13527
|
+
}, [E, h]), W = r.useMemo(() => {
|
|
13528
|
+
for (const _ of E.values())
|
|
13529
|
+
if (_ != null && !_.disabled)
|
|
13530
|
+
return _.value;
|
|
13531
|
+
}, [E]), X = r.useRef(!f), U = r.useRef(f), L = r.useRef(!1);
|
|
13532
|
+
Ee(() => {
|
|
13533
|
+
if (v)
|
|
13534
|
+
return;
|
|
13535
|
+
function _(K, G) {
|
|
13536
|
+
b(K), x((oe) => oe.previousValue === K && oe.tabActivationDirection === "none" ? oe : {
|
|
13537
|
+
previousValue: K,
|
|
13538
|
+
tabActivationDirection: "none"
|
|
13539
|
+
}), F(K, G), X.current = !1;
|
|
13540
|
+
}
|
|
13541
|
+
if (E.size === 0) {
|
|
13542
|
+
if (!L.current || h === null)
|
|
13543
|
+
return;
|
|
13544
|
+
_(null, Ud);
|
|
13545
|
+
return;
|
|
13546
|
+
}
|
|
13547
|
+
L.current = !0;
|
|
13548
|
+
const Y = H?.disabled, J = H == null && h !== null;
|
|
13549
|
+
if (!Y && h === s && (U.current = !1), U.current && Y && h === s)
|
|
13550
|
+
return;
|
|
13551
|
+
const Z = X.current;
|
|
13552
|
+
if (Y || J) {
|
|
13553
|
+
const K = W ?? null;
|
|
13554
|
+
if (h === K) {
|
|
13555
|
+
X.current = !1;
|
|
13556
|
+
return;
|
|
13557
|
+
}
|
|
13558
|
+
let G = Ud;
|
|
13559
|
+
Z ? G = $d : Y && (G = Np), _(K, G);
|
|
13560
|
+
return;
|
|
13561
|
+
}
|
|
13562
|
+
Z && H != null && (F(h, $d), X.current = !1);
|
|
13563
|
+
}, [s, W, v, F, H, b, E, h]);
|
|
13564
|
+
const z = pe("div", t, {
|
|
13565
|
+
state: {
|
|
13566
|
+
orientation: i,
|
|
13567
|
+
tabActivationDirection: P
|
|
13568
|
+
},
|
|
13504
13569
|
ref: n,
|
|
13505
|
-
props:
|
|
13570
|
+
props: d,
|
|
13571
|
+
stateAttributesMapping: ca
|
|
13506
13572
|
});
|
|
13507
13573
|
return /* @__PURE__ */ te(Iu.Provider, {
|
|
13508
|
-
value:
|
|
13509
|
-
children:
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
const jg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13514
|
-
const {
|
|
13515
|
-
render: o,
|
|
13516
|
-
className: s,
|
|
13517
|
-
style: a,
|
|
13518
|
-
...i
|
|
13519
|
-
} = t;
|
|
13520
|
-
return pe("div", t, {
|
|
13521
|
-
ref: n,
|
|
13522
|
-
props: i
|
|
13574
|
+
value: B,
|
|
13575
|
+
children: /* @__PURE__ */ te(oo, {
|
|
13576
|
+
elementsRef: p,
|
|
13577
|
+
children: z
|
|
13578
|
+
})
|
|
13523
13579
|
});
|
|
13524
13580
|
});
|
|
13525
|
-
process.env.NODE_ENV !== "production" && (
|
|
13526
|
-
function
|
|
13527
|
-
|
|
13581
|
+
process.env.NODE_ENV !== "production" && (Gg.displayName = "TabsRoot");
|
|
13582
|
+
function If(e, t, n, o) {
|
|
13583
|
+
if (e == null || t == null)
|
|
13584
|
+
return "none";
|
|
13585
|
+
let s = null, a = null;
|
|
13586
|
+
for (const [u, c] of o.entries()) {
|
|
13587
|
+
if (c == null)
|
|
13588
|
+
continue;
|
|
13589
|
+
const d = c.value ?? c.index;
|
|
13590
|
+
if (e === d && (s = u), t === d && (a = u), s != null && a != null)
|
|
13591
|
+
break;
|
|
13592
|
+
}
|
|
13593
|
+
if (s == null || a == null)
|
|
13594
|
+
return s !== a && (typeof e == "number" || typeof e == "string") && typeof e == typeof t ? n === "horizontal" ? t > e ? "right" : "left" : t > e ? "down" : "up" : "none";
|
|
13595
|
+
const i = s.getBoundingClientRect(), l = a.getBoundingClientRect();
|
|
13596
|
+
if (n === "horizontal") {
|
|
13597
|
+
if (l.left < i.left)
|
|
13598
|
+
return "left";
|
|
13599
|
+
if (l.left > i.left)
|
|
13600
|
+
return "right";
|
|
13601
|
+
} else {
|
|
13602
|
+
if (l.top < i.top)
|
|
13603
|
+
return "up";
|
|
13604
|
+
if (l.top > i.top)
|
|
13605
|
+
return "down";
|
|
13606
|
+
}
|
|
13607
|
+
return "none";
|
|
13528
13608
|
}
|
|
13529
|
-
const
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
props: [{
|
|
13539
|
-
style: {
|
|
13540
|
-
insetInlineStart: 0,
|
|
13541
|
-
height: "inherit",
|
|
13542
|
-
width: `${u}%`
|
|
13543
|
-
}
|
|
13544
|
-
}, i]
|
|
13545
|
-
});
|
|
13546
|
-
});
|
|
13547
|
-
process.env.NODE_ENV !== "production" && (qg.displayName = "MeterIndicator");
|
|
13548
|
-
const Zg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13609
|
+
const Tu = "data-composite-item-active", Ou = /* @__PURE__ */ r.createContext(void 0);
|
|
13610
|
+
process.env.NODE_ENV !== "production" && (Ou.displayName = "TabsListContext");
|
|
13611
|
+
function Kg() {
|
|
13612
|
+
const e = r.useContext(Ou);
|
|
13613
|
+
if (e === void 0)
|
|
13614
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : He(65));
|
|
13615
|
+
return e;
|
|
13616
|
+
}
|
|
13617
|
+
const Xg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13549
13618
|
const {
|
|
13550
13619
|
className: o,
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
} =
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13620
|
+
disabled: s = !1,
|
|
13621
|
+
render: a,
|
|
13622
|
+
value: i,
|
|
13623
|
+
id: l,
|
|
13624
|
+
nativeButton: u = !0,
|
|
13625
|
+
style: c,
|
|
13626
|
+
...d
|
|
13627
|
+
} = t, {
|
|
13628
|
+
value: f,
|
|
13629
|
+
getTabPanelIdByValue: p,
|
|
13630
|
+
orientation: g
|
|
13631
|
+
} = aa(), {
|
|
13632
|
+
activateOnFocus: m,
|
|
13633
|
+
highlightedTabIndex: h,
|
|
13634
|
+
onTabActivation: b,
|
|
13635
|
+
registerTabResizeObserverElement: v,
|
|
13636
|
+
setHighlightedTabIndex: E,
|
|
13637
|
+
tabsListElement: y
|
|
13638
|
+
} = Kg(), R = st(l), S = r.useMemo(() => ({
|
|
13639
|
+
disabled: s,
|
|
13640
|
+
id: R,
|
|
13641
|
+
value: i
|
|
13642
|
+
}), [s, R, i]), {
|
|
13643
|
+
compositeProps: x,
|
|
13644
|
+
compositeRef: C,
|
|
13645
|
+
index: N
|
|
13646
|
+
// hook is used instead of the CompositeItem component
|
|
13647
|
+
// because the index is needed for Tab internals
|
|
13648
|
+
} = Vg({
|
|
13649
|
+
metadata: S
|
|
13650
|
+
}), P = i === f, O = r.useRef(!1), w = r.useRef(null);
|
|
13651
|
+
r.useEffect(() => {
|
|
13652
|
+
const X = w.current;
|
|
13653
|
+
if (X)
|
|
13654
|
+
return v(X);
|
|
13655
|
+
}, [v]), Ee(() => {
|
|
13656
|
+
if (O.current) {
|
|
13657
|
+
O.current = !1;
|
|
13658
|
+
return;
|
|
13659
|
+
}
|
|
13660
|
+
if (!(P && N > -1 && h !== N))
|
|
13661
|
+
return;
|
|
13662
|
+
const X = y;
|
|
13663
|
+
if (X != null) {
|
|
13664
|
+
const U = It($e(X));
|
|
13665
|
+
if (U && Me(X, U))
|
|
13666
|
+
return;
|
|
13667
|
+
}
|
|
13668
|
+
s || E(N);
|
|
13669
|
+
}, [P, N, h, E, s, y]);
|
|
13670
|
+
const {
|
|
13671
|
+
getButtonProps: D,
|
|
13672
|
+
buttonRef: M
|
|
13673
|
+
} = Ct({
|
|
13674
|
+
disabled: s,
|
|
13675
|
+
native: u,
|
|
13676
|
+
focusableWhenDisabled: !0
|
|
13677
|
+
}), F = p(i), I = r.useRef(!1), A = r.useRef(!1);
|
|
13678
|
+
function T(X) {
|
|
13679
|
+
P || s || b(i, Re(ht, X.nativeEvent, void 0, {
|
|
13680
|
+
activationDirection: "none"
|
|
13681
|
+
}));
|
|
13682
|
+
}
|
|
13683
|
+
function V(X) {
|
|
13684
|
+
P || (N > -1 && !s && E(N), !s && m && (!I.current || // keyboard or touch focus
|
|
13685
|
+
I.current && A.current) && b(i, Re(ht, X.nativeEvent, void 0, {
|
|
13686
|
+
activationDirection: "none"
|
|
13687
|
+
})));
|
|
13688
|
+
}
|
|
13689
|
+
function B(X) {
|
|
13690
|
+
if (P || s)
|
|
13691
|
+
return;
|
|
13692
|
+
I.current = !0;
|
|
13693
|
+
function U() {
|
|
13694
|
+
I.current = !1, A.current = !1;
|
|
13695
|
+
}
|
|
13696
|
+
(!X.button || X.button === 0) && (A.current = !0, $e(X.currentTarget).addEventListener("pointerup", U, {
|
|
13697
|
+
once: !0
|
|
13698
|
+
}));
|
|
13699
|
+
}
|
|
13700
|
+
return pe("button", t, {
|
|
13701
|
+
state: {
|
|
13702
|
+
disabled: s,
|
|
13703
|
+
active: P,
|
|
13704
|
+
orientation: g
|
|
13705
|
+
},
|
|
13706
|
+
ref: [n, M, C, w],
|
|
13707
|
+
props: [x, {
|
|
13708
|
+
role: "tab",
|
|
13709
|
+
"aria-controls": F,
|
|
13710
|
+
"aria-selected": P,
|
|
13711
|
+
id: R,
|
|
13712
|
+
onClick: T,
|
|
13713
|
+
onFocus: V,
|
|
13714
|
+
onPointerDown: B,
|
|
13715
|
+
[Tu]: P ? "" : void 0,
|
|
13716
|
+
onKeyDownCapture() {
|
|
13717
|
+
O.current = !0;
|
|
13718
|
+
}
|
|
13719
|
+
}, d, D]
|
|
13565
13720
|
});
|
|
13566
13721
|
});
|
|
13567
|
-
process.env.NODE_ENV !== "production" && (
|
|
13568
|
-
|
|
13722
|
+
process.env.NODE_ENV !== "production" && (Xg.displayName = "TabsTab");
|
|
13723
|
+
function dS() {
|
|
13724
|
+
return lt;
|
|
13725
|
+
}
|
|
13726
|
+
function fS() {
|
|
13727
|
+
return !1;
|
|
13728
|
+
}
|
|
13729
|
+
function pS() {
|
|
13730
|
+
return !0;
|
|
13731
|
+
}
|
|
13732
|
+
function Mu() {
|
|
13733
|
+
return mc.useSyncExternalStore(dS, fS, pS);
|
|
13734
|
+
}
|
|
13735
|
+
const mS = '!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';
|
|
13736
|
+
let Zo = /* @__PURE__ */ (function(e) {
|
|
13737
|
+
return e.activeTabLeft = "--active-tab-left", e.activeTabRight = "--active-tab-right", e.activeTabTop = "--active-tab-top", e.activeTabBottom = "--active-tab-bottom", e.activeTabWidth = "--active-tab-width", e.activeTabHeight = "--active-tab-height", e;
|
|
13738
|
+
})({});
|
|
13739
|
+
const Du = /* @__PURE__ */ r.createContext(void 0);
|
|
13740
|
+
process.env.NODE_ENV !== "production" && (Du.displayName = "CSPContext");
|
|
13741
|
+
const gS = {
|
|
13742
|
+
disableStyleElements: !1
|
|
13743
|
+
};
|
|
13744
|
+
function la() {
|
|
13745
|
+
return r.useContext(Du) ?? gS;
|
|
13746
|
+
}
|
|
13747
|
+
const hS = {
|
|
13748
|
+
...ca,
|
|
13749
|
+
activeTabPosition: () => null,
|
|
13750
|
+
activeTabSize: () => null
|
|
13751
|
+
}, jg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13569
13752
|
const {
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13753
|
+
className: o,
|
|
13754
|
+
render: s,
|
|
13755
|
+
renderBeforeHydration: a = !1,
|
|
13756
|
+
style: i,
|
|
13574
13757
|
...l
|
|
13575
13758
|
} = t, {
|
|
13576
|
-
|
|
13577
|
-
} =
|
|
13578
|
-
|
|
13759
|
+
nonce: u
|
|
13760
|
+
} = la(), {
|
|
13761
|
+
getTabElementBySelectedValue: c,
|
|
13762
|
+
orientation: d,
|
|
13763
|
+
tabActivationDirection: f,
|
|
13764
|
+
value: p
|
|
13765
|
+
} = aa(), {
|
|
13766
|
+
tabsListElement: g,
|
|
13767
|
+
registerIndicatorUpdateListener: m
|
|
13768
|
+
} = Kg(), h = Mu(), b = im();
|
|
13769
|
+
r.useEffect(() => m(b), [m, b]);
|
|
13770
|
+
let v = 0, E = 0, y = 0, R = 0, S = 0, x = 0, C = !1;
|
|
13771
|
+
if (p != null && g != null) {
|
|
13772
|
+
const F = c(p);
|
|
13773
|
+
if (C = !0, F != null) {
|
|
13774
|
+
const {
|
|
13775
|
+
width: I,
|
|
13776
|
+
height: A
|
|
13777
|
+
} = $n(F), {
|
|
13778
|
+
width: T,
|
|
13779
|
+
height: V
|
|
13780
|
+
} = $n(g), B = F.getBoundingClientRect(), H = g.getBoundingClientRect(), W = T > 0 ? H.width / T : 1, X = V > 0 ? H.height / V : 1;
|
|
13781
|
+
if (Math.abs(W) > Number.EPSILON && Math.abs(X) > Number.EPSILON) {
|
|
13782
|
+
const L = B.left - H.left, $ = B.top - H.top;
|
|
13783
|
+
v = L / W + g.scrollLeft - g.clientLeft, y = $ / X + g.scrollTop - g.clientTop;
|
|
13784
|
+
} else
|
|
13785
|
+
v = F.offsetLeft, y = F.offsetTop;
|
|
13786
|
+
S = I, x = A, E = g.scrollWidth - v - S, R = g.scrollHeight - y - x;
|
|
13787
|
+
}
|
|
13788
|
+
}
|
|
13789
|
+
const N = C ? {
|
|
13790
|
+
left: v,
|
|
13791
|
+
right: E,
|
|
13792
|
+
top: y,
|
|
13793
|
+
bottom: R
|
|
13794
|
+
} : null, P = C ? {
|
|
13795
|
+
width: S,
|
|
13796
|
+
height: x
|
|
13797
|
+
} : null, O = C ? {
|
|
13798
|
+
[Zo.activeTabLeft]: `${v}px`,
|
|
13799
|
+
[Zo.activeTabRight]: `${E}px`,
|
|
13800
|
+
[Zo.activeTabTop]: `${y}px`,
|
|
13801
|
+
[Zo.activeTabBottom]: `${R}px`,
|
|
13802
|
+
[Zo.activeTabWidth]: `${S}px`,
|
|
13803
|
+
[Zo.activeTabHeight]: `${x}px`
|
|
13804
|
+
} : void 0, w = C && S > 0 && x > 0, M = pe("span", t, {
|
|
13805
|
+
state: {
|
|
13806
|
+
orientation: d,
|
|
13807
|
+
activeTabPosition: N,
|
|
13808
|
+
activeTabSize: P,
|
|
13809
|
+
tabActivationDirection: f
|
|
13810
|
+
},
|
|
13579
13811
|
ref: n,
|
|
13580
13812
|
props: [{
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13813
|
+
role: "presentation",
|
|
13814
|
+
style: O,
|
|
13815
|
+
hidden: !w
|
|
13816
|
+
// do not display the indicator before the layout is settled
|
|
13817
|
+
}, l, {
|
|
13818
|
+
suppressHydrationWarning: !0
|
|
13819
|
+
}],
|
|
13820
|
+
stateAttributesMapping: hS
|
|
13821
|
+
});
|
|
13822
|
+
return p == null ? null : /* @__PURE__ */ ut(r.Fragment, {
|
|
13823
|
+
children: [M, h && a && /* @__PURE__ */ te("script", {
|
|
13824
|
+
nonce: u,
|
|
13825
|
+
dangerouslySetInnerHTML: {
|
|
13826
|
+
__html: mS
|
|
13827
|
+
},
|
|
13828
|
+
suppressHydrationWarning: !0
|
|
13829
|
+
})]
|
|
13584
13830
|
});
|
|
13585
13831
|
});
|
|
13586
|
-
process.env.NODE_ENV !== "production" && (
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
Track: jg,
|
|
13593
|
-
Value: Zg
|
|
13594
|
-
}, Symbol.toStringTag, { value: "Module" })), Ou = /* @__PURE__ */ r.createContext(null);
|
|
13595
|
-
process.env.NODE_ENV !== "production" && (Ou.displayName = "SelectRootContext");
|
|
13596
|
-
const Mu = /* @__PURE__ */ r.createContext(null);
|
|
13597
|
-
process.env.NODE_ENV !== "production" && (Mu.displayName = "SelectFloatingContext");
|
|
13598
|
-
function xn() {
|
|
13599
|
-
const e = r.useContext(Ou);
|
|
13600
|
-
if (e === null)
|
|
13601
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : He(60));
|
|
13602
|
-
return e;
|
|
13603
|
-
}
|
|
13604
|
-
function Jg() {
|
|
13605
|
-
const e = r.useContext(Mu);
|
|
13606
|
-
if (e === null)
|
|
13607
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : He(61));
|
|
13608
|
-
return e;
|
|
13609
|
-
}
|
|
13610
|
-
const Je = {
|
|
13611
|
-
id: be((e) => e.id),
|
|
13612
|
-
labelId: be((e) => e.labelId),
|
|
13613
|
-
modal: be((e) => e.modal),
|
|
13614
|
-
multiple: be((e) => e.multiple),
|
|
13615
|
-
items: be((e) => e.items),
|
|
13616
|
-
itemToStringLabel: be((e) => e.itemToStringLabel),
|
|
13617
|
-
itemToStringValue: be((e) => e.itemToStringValue),
|
|
13618
|
-
isItemEqualToValue: be((e) => e.isItemEqualToValue),
|
|
13619
|
-
value: be((e) => e.value),
|
|
13620
|
-
hasSelectedValue: be((e) => {
|
|
13621
|
-
const {
|
|
13622
|
-
value: t,
|
|
13623
|
-
multiple: n,
|
|
13624
|
-
itemToStringValue: o
|
|
13625
|
-
} = e;
|
|
13626
|
-
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : kn(t, o) !== "";
|
|
13627
|
-
}),
|
|
13628
|
-
hasNullItemLabel: be((e, t) => t ? eg(e.items) : !1),
|
|
13629
|
-
open: be((e) => e.open),
|
|
13630
|
-
mounted: be((e) => e.mounted),
|
|
13631
|
-
forceMount: be((e) => e.forceMount),
|
|
13632
|
-
transitionStatus: be((e) => e.transitionStatus),
|
|
13633
|
-
openMethod: be((e) => e.openMethod),
|
|
13634
|
-
activeIndex: be((e) => e.activeIndex),
|
|
13635
|
-
selectedIndex: be((e) => e.selectedIndex),
|
|
13636
|
-
isActive: be((e, t) => e.activeIndex === t),
|
|
13637
|
-
isSelected: be((e, t, n) => {
|
|
13638
|
-
const o = e.isItemEqualToValue, s = e.value;
|
|
13639
|
-
return e.multiple ? Array.isArray(s) && s.some((a) => Yn(n, a, o)) : e.selectedIndex === t && e.selectedIndex !== null ? !0 : Yn(n, s, o);
|
|
13640
|
-
}),
|
|
13641
|
-
isSelectedByFocus: be((e, t) => e.selectedIndex === t),
|
|
13642
|
-
popupProps: be((e) => e.popupProps),
|
|
13643
|
-
triggerProps: be((e) => e.triggerProps),
|
|
13644
|
-
triggerElement: be((e) => e.triggerElement),
|
|
13645
|
-
positionerElement: be((e) => e.positionerElement),
|
|
13646
|
-
listElement: be((e) => e.listElement),
|
|
13647
|
-
popupSide: be((e) => e.popupSide),
|
|
13648
|
-
scrollUpArrowVisible: be((e) => e.scrollUpArrowVisible),
|
|
13649
|
-
scrollDownArrowVisible: be((e) => e.scrollDownArrowVisible),
|
|
13650
|
-
hasScrollArrows: be((e) => e.hasScrollArrows)
|
|
13651
|
-
}, An = 1;
|
|
13652
|
-
function Du(e, t) {
|
|
13653
|
-
return Math.max(0, e - t);
|
|
13654
|
-
}
|
|
13655
|
-
function sr(e, t) {
|
|
13656
|
-
if (t <= 0)
|
|
13657
|
-
return 0;
|
|
13658
|
-
const n = dt(e, 0, t), o = n, s = t - n, a = o <= An, i = s <= An;
|
|
13659
|
-
return a && i ? o <= s ? 0 : t : a ? 0 : i ? t : n;
|
|
13660
|
-
}
|
|
13661
|
-
function uS(e) {
|
|
13662
|
-
const {
|
|
13663
|
-
id: t,
|
|
13664
|
-
value: n,
|
|
13665
|
-
defaultValue: o = null,
|
|
13666
|
-
onValueChange: s,
|
|
13667
|
-
open: a,
|
|
13668
|
-
defaultOpen: i = !1,
|
|
13669
|
-
onOpenChange: l,
|
|
13670
|
-
name: u,
|
|
13671
|
-
form: c,
|
|
13672
|
-
autoComplete: d,
|
|
13673
|
-
disabled: f = !1,
|
|
13674
|
-
readOnly: p = !1,
|
|
13675
|
-
required: g = !1,
|
|
13676
|
-
modal: m = !0,
|
|
13677
|
-
actionsRef: h,
|
|
13678
|
-
inputRef: b,
|
|
13679
|
-
onOpenChangeComplete: v,
|
|
13680
|
-
items: E,
|
|
13681
|
-
multiple: y = !1,
|
|
13682
|
-
itemToStringLabel: R,
|
|
13683
|
-
itemToStringValue: S,
|
|
13684
|
-
isItemEqualToValue: x = Zm,
|
|
13685
|
-
highlightItemOnHover: C = !0,
|
|
13686
|
-
children: N
|
|
13687
|
-
} = e, {
|
|
13688
|
-
clearErrors: P
|
|
13689
|
-
} = En(), {
|
|
13690
|
-
setDirty: O,
|
|
13691
|
-
setTouched: w,
|
|
13692
|
-
setFocused: D,
|
|
13693
|
-
shouldValidateOnChange: M,
|
|
13694
|
-
validityData: F,
|
|
13695
|
-
setFilled: I,
|
|
13696
|
-
name: A,
|
|
13697
|
-
disabled: T,
|
|
13698
|
-
validation: V,
|
|
13699
|
-
validationMode: B
|
|
13700
|
-
} = Tt(), H = Xn({
|
|
13701
|
-
id: t
|
|
13702
|
-
}), W = T || f, X = A ?? u, [U, L] = Vt({
|
|
13703
|
-
controlled: n,
|
|
13704
|
-
default: y ? o ?? Kt : o,
|
|
13705
|
-
name: "Select",
|
|
13706
|
-
state: "value"
|
|
13707
|
-
}), [$, z] = Vt({
|
|
13708
|
-
controlled: a,
|
|
13709
|
-
default: i,
|
|
13710
|
-
name: "Select",
|
|
13711
|
-
state: "open"
|
|
13712
|
-
}), _ = r.useRef([]), Y = r.useRef([]), J = r.useRef(null), Z = r.useRef(null), K = r.useRef(0), G = r.useRef(null), oe = r.useRef([]), de = r.useRef(!1), q = r.useRef(!1), se = r.useRef(null), re = r.useRef(null), me = r.useRef({
|
|
13713
|
-
allowSelectedMouseUp: !1,
|
|
13714
|
-
allowUnselectedMouseUp: !1,
|
|
13715
|
-
dragY: 0
|
|
13716
|
-
}), ae = r.useRef(!1), {
|
|
13717
|
-
mounted: ue,
|
|
13718
|
-
setMounted: Q,
|
|
13719
|
-
transitionStatus: ye
|
|
13720
|
-
} = Ut($), {
|
|
13721
|
-
openMethod: ge,
|
|
13722
|
-
triggerProps: ne
|
|
13723
|
-
} = bl($), k = At(() => new Ac({
|
|
13724
|
-
id: H,
|
|
13725
|
-
labelId: void 0,
|
|
13726
|
-
modal: m,
|
|
13727
|
-
multiple: y,
|
|
13728
|
-
itemToStringLabel: R,
|
|
13729
|
-
itemToStringValue: S,
|
|
13730
|
-
isItemEqualToValue: x,
|
|
13731
|
-
value: U,
|
|
13732
|
-
open: $,
|
|
13733
|
-
mounted: ue,
|
|
13734
|
-
transitionStatus: ye,
|
|
13735
|
-
items: E,
|
|
13736
|
-
forceMount: !1,
|
|
13737
|
-
openMethod: null,
|
|
13738
|
-
activeIndex: null,
|
|
13739
|
-
selectedIndex: null,
|
|
13740
|
-
popupProps: {},
|
|
13741
|
-
triggerProps: {},
|
|
13742
|
-
triggerElement: null,
|
|
13743
|
-
positionerElement: null,
|
|
13744
|
-
listElement: null,
|
|
13745
|
-
popupSide: null,
|
|
13746
|
-
scrollUpArrowVisible: !1,
|
|
13747
|
-
scrollDownArrowVisible: !1,
|
|
13748
|
-
hasScrollArrows: !1
|
|
13749
|
-
})).current, j = fe(k, Je.activeIndex), ee = fe(k, Je.selectedIndex), ce = fe(k, Je.triggerElement), Se = fe(k, Je.positionerElement), xe = vm(ge), Ie = ge ?? xe, De = r.useMemo(() => y && Array.isArray(U) && U.length === 0 ? "" : kn(U, S), [y, U, S]), Te = r.useMemo(() => y && Array.isArray(U) ? U.map((Fe) => kn(Fe, S)) : kn(U, S), [y, U, S]), ke = Et(k.state.triggerElement), Pe = le(() => Te);
|
|
13750
|
-
jn(ke, H, U, Pe);
|
|
13751
|
-
const Ge = r.useRef(U), je = y ? Array.isArray(U) && U.length > 0 : U != null;
|
|
13752
|
-
Ee(() => {
|
|
13753
|
-
U !== Ge.current && k.set("forceMount", !0);
|
|
13754
|
-
}, [k, U]), Ee(() => {
|
|
13755
|
-
I(je);
|
|
13756
|
-
}, [je, I]), Ee(function() {
|
|
13757
|
-
const We = oe.current;
|
|
13758
|
-
let Xe;
|
|
13759
|
-
if (y) {
|
|
13760
|
-
const it = Array.isArray(U) ? U : [];
|
|
13761
|
-
if (it.length === 0)
|
|
13762
|
-
Xe = null;
|
|
13763
|
-
else {
|
|
13764
|
-
const rt = it[it.length - 1], Dt = eo(We, rt, x);
|
|
13765
|
-
Xe = Dt === -1 ? null : Dt;
|
|
13766
|
-
}
|
|
13767
|
-
} else {
|
|
13768
|
-
const it = eo(We, U, x);
|
|
13769
|
-
Xe = it === -1 ? null : it;
|
|
13770
|
-
}
|
|
13771
|
-
Xe === null && (re.current = null), !$ && k.set("selectedIndex", Xe);
|
|
13772
|
-
}, [je, y, $, U, oe, x, k, re]), un(U, () => {
|
|
13773
|
-
P(X), O(U !== F.initialValue), M() ? V.commit(U) : V.commit(U, !0);
|
|
13774
|
-
});
|
|
13775
|
-
const Ne = le((Fe, We) => {
|
|
13776
|
-
if (l?.(Fe, We), !We.isCanceled && (z(Fe), !Fe && (We.reason === yn || We.reason === lr) && (w(!0), D(!1), B === "onBlur" && V.commit(U)), !Fe && k.state.activeIndex !== null)) {
|
|
13777
|
-
const Xe = _.current[k.state.activeIndex];
|
|
13778
|
-
queueMicrotask(() => {
|
|
13779
|
-
Xe?.setAttribute("tabindex", "-1");
|
|
13780
|
-
});
|
|
13781
|
-
}
|
|
13782
|
-
}), Ve = le(() => {
|
|
13783
|
-
Q(!1), k.update({
|
|
13784
|
-
activeIndex: null,
|
|
13785
|
-
openMethod: null
|
|
13786
|
-
}), v?.(!1);
|
|
13787
|
-
});
|
|
13788
|
-
Pt({
|
|
13789
|
-
enabled: !h,
|
|
13790
|
-
open: $,
|
|
13791
|
-
ref: J,
|
|
13792
|
-
onComplete() {
|
|
13793
|
-
$ || Ve();
|
|
13794
|
-
}
|
|
13795
|
-
}), r.useImperativeHandle(h, () => ({
|
|
13796
|
-
unmount: Ve
|
|
13797
|
-
}), [Ve]);
|
|
13798
|
-
const Oe = le((Fe, We) => {
|
|
13799
|
-
s?.(Fe, We), !We.isCanceled && L(Fe);
|
|
13800
|
-
}), _e = le(() => {
|
|
13801
|
-
const Fe = k.state.listElement || J.current;
|
|
13802
|
-
if (!Fe)
|
|
13803
|
-
return;
|
|
13804
|
-
const We = Du(Fe.scrollHeight, Fe.clientHeight), Xe = sr(Fe.scrollTop, We), it = Xe > 0, rt = Xe < We;
|
|
13805
|
-
k.state.scrollUpArrowVisible !== it && k.set("scrollUpArrowVisible", it), k.state.scrollDownArrowVisible !== rt && k.set("scrollDownArrowVisible", rt);
|
|
13806
|
-
}), Le = ts({
|
|
13807
|
-
open: $,
|
|
13808
|
-
onOpenChange: Ne,
|
|
13809
|
-
elements: {
|
|
13810
|
-
reference: ce,
|
|
13811
|
-
floating: Se
|
|
13812
|
-
}
|
|
13813
|
-
}), Qe = Eo(Le, {
|
|
13814
|
-
enabled: !p && !W,
|
|
13815
|
-
event: "mousedown"
|
|
13816
|
-
}), Ze = Ro(Le), ze = Bc(Le, {
|
|
13817
|
-
enabled: !p && !W,
|
|
13818
|
-
listRef: _,
|
|
13819
|
-
activeIndex: j,
|
|
13820
|
-
selectedIndex: ee,
|
|
13821
|
-
disabledIndices: Kt,
|
|
13822
|
-
onNavigate(Fe) {
|
|
13823
|
-
Fe === null && !$ || k.set("activeIndex", Fe);
|
|
13824
|
-
},
|
|
13825
|
-
focusItemOnHover: C
|
|
13826
|
-
}), nt = Uc(Le, {
|
|
13827
|
-
enabled: !p && !W && ($ || !y),
|
|
13828
|
-
listRef: Y,
|
|
13829
|
-
activeIndex: j,
|
|
13830
|
-
selectedIndex: ee,
|
|
13831
|
-
onMatch(Fe) {
|
|
13832
|
-
$ ? k.set("activeIndex", Fe) : Oe(oe.current[Fe], Re("none"));
|
|
13833
|
-
},
|
|
13834
|
-
onTyping(Fe) {
|
|
13835
|
-
de.current = Fe;
|
|
13836
|
-
}
|
|
13837
|
-
}), ie = r.useMemo(() => {
|
|
13838
|
-
const Fe = St(nt.reference, ze.reference, Ze.reference, Qe.reference, ne);
|
|
13839
|
-
return H && (Fe.id = H), Fe;
|
|
13840
|
-
}, [Qe.reference, nt.reference, ze.reference, Ze.reference, ne, H]), he = r.useMemo(() => St(Gn, nt.floating, ze.floating, Ze.floating), [nt.floating, ze.floating, Ze.floating]), Ce = ze.item ?? ot;
|
|
13841
|
-
Ho(() => {
|
|
13842
|
-
k.update({
|
|
13843
|
-
popupProps: he,
|
|
13844
|
-
triggerProps: ie
|
|
13845
|
-
});
|
|
13846
|
-
}), Ee(() => {
|
|
13847
|
-
k.update({
|
|
13848
|
-
id: H,
|
|
13849
|
-
modal: m,
|
|
13850
|
-
multiple: y,
|
|
13851
|
-
value: U,
|
|
13852
|
-
open: $,
|
|
13853
|
-
mounted: ue,
|
|
13854
|
-
transitionStatus: ye,
|
|
13855
|
-
popupProps: he,
|
|
13856
|
-
triggerProps: ie,
|
|
13857
|
-
items: E,
|
|
13858
|
-
itemToStringLabel: R,
|
|
13859
|
-
itemToStringValue: S,
|
|
13860
|
-
isItemEqualToValue: x,
|
|
13861
|
-
openMethod: Ie
|
|
13862
|
-
});
|
|
13863
|
-
}, [k, H, m, y, U, $, ue, ye, he, ie, E, R, S, x, Ie]);
|
|
13864
|
-
const Ue = r.useMemo(() => ({
|
|
13865
|
-
store: k,
|
|
13866
|
-
name: X,
|
|
13867
|
-
required: g,
|
|
13868
|
-
disabled: W,
|
|
13869
|
-
readOnly: p,
|
|
13870
|
-
multiple: y,
|
|
13871
|
-
highlightItemOnHover: C,
|
|
13872
|
-
setValue: Oe,
|
|
13873
|
-
setOpen: Ne,
|
|
13874
|
-
listRef: _,
|
|
13875
|
-
popupRef: J,
|
|
13876
|
-
scrollHandlerRef: Z,
|
|
13877
|
-
handleScrollArrowVisibility: _e,
|
|
13878
|
-
scrollArrowsMountedCountRef: K,
|
|
13879
|
-
itemProps: Ce,
|
|
13880
|
-
events: Le.context.events,
|
|
13881
|
-
valueRef: G,
|
|
13882
|
-
valuesRef: oe,
|
|
13883
|
-
labelsRef: Y,
|
|
13884
|
-
typingRef: de,
|
|
13885
|
-
selectionRef: me,
|
|
13886
|
-
firstItemTextRef: se,
|
|
13887
|
-
selectedItemTextRef: re,
|
|
13888
|
-
validation: V,
|
|
13889
|
-
onOpenChangeComplete: v,
|
|
13890
|
-
keyboardActiveRef: q,
|
|
13891
|
-
alignItemWithTriggerActiveRef: ae,
|
|
13892
|
-
initialValueRef: Ge
|
|
13893
|
-
}), [k, X, g, W, p, y, C, Oe, Ne, Ce, Le.context.events, V, v, _e]), ve = Bt(b, V.inputRef), Ae = y && Array.isArray(U) && U.length > 0, Be = y ? void 0 : X, Ke = r.useMemo(() => !y || !Array.isArray(U) || !X ? null : U.map((Fe) => {
|
|
13894
|
-
const We = kn(Fe, S);
|
|
13895
|
-
return /* @__PURE__ */ te("input", {
|
|
13896
|
-
type: "hidden",
|
|
13897
|
-
form: c,
|
|
13898
|
-
name: X,
|
|
13899
|
-
value: We
|
|
13900
|
-
}, We);
|
|
13901
|
-
}), [y, U, c, X, S]);
|
|
13902
|
-
return /* @__PURE__ */ te(Ou.Provider, {
|
|
13903
|
-
value: Ue,
|
|
13904
|
-
children: /* @__PURE__ */ ut(Mu.Provider, {
|
|
13905
|
-
value: Le,
|
|
13906
|
-
children: [N, /* @__PURE__ */ te("input", {
|
|
13907
|
-
...V.getInputValidationProps({
|
|
13908
|
-
onFocus() {
|
|
13909
|
-
k.state.triggerElement?.focus({
|
|
13910
|
-
// Supported in Chrome from 144 (January 2026)
|
|
13911
|
-
focusVisible: !0
|
|
13912
|
-
});
|
|
13913
|
-
},
|
|
13914
|
-
// Handle browser autofill.
|
|
13915
|
-
onChange(Fe) {
|
|
13916
|
-
if (Fe.nativeEvent.defaultPrevented || W || p) {
|
|
13917
|
-
Fe.preventBaseUIHandler?.();
|
|
13918
|
-
return;
|
|
13919
|
-
}
|
|
13920
|
-
const We = Fe.currentTarget.value, Xe = Re(ht, Fe.nativeEvent);
|
|
13921
|
-
function it() {
|
|
13922
|
-
if (y)
|
|
13923
|
-
return;
|
|
13924
|
-
const rt = oe.current.find((Dt) => kn(Dt, S).toLowerCase() === We.toLowerCase() || Wt(Dt, R).toLowerCase() === We.toLowerCase());
|
|
13925
|
-
rt != null && (O(rt !== F.initialValue), Oe(rt, Xe), M() && V.commit(rt));
|
|
13926
|
-
}
|
|
13927
|
-
k.set("forceMount", !0), queueMicrotask(it);
|
|
13928
|
-
}
|
|
13929
|
-
}),
|
|
13930
|
-
id: H && Be == null ? `${H}-hidden-input` : void 0,
|
|
13931
|
-
form: c,
|
|
13932
|
-
name: Be,
|
|
13933
|
-
autoComplete: d,
|
|
13934
|
-
value: De,
|
|
13935
|
-
disabled: W,
|
|
13936
|
-
required: g && !Ae,
|
|
13937
|
-
readOnly: p,
|
|
13938
|
-
ref: ve,
|
|
13939
|
-
style: X ? vo : vn,
|
|
13940
|
-
tabIndex: -1,
|
|
13941
|
-
"aria-hidden": !0,
|
|
13942
|
-
suppressHydrationWarning: !0
|
|
13943
|
-
}), Ke]
|
|
13944
|
-
})
|
|
13945
|
-
});
|
|
13946
|
-
}
|
|
13947
|
-
const eh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13948
|
-
const {
|
|
13949
|
-
render: o,
|
|
13950
|
-
className: s,
|
|
13951
|
-
style: a,
|
|
13952
|
-
...i
|
|
13953
|
-
} = t, l = i;
|
|
13954
|
-
delete l.id;
|
|
13955
|
-
const u = Tt(), {
|
|
13956
|
-
store: c
|
|
13957
|
-
} = xn(), d = fe(c, Je.triggerElement), f = fe(c, Je.id), p = yl(f), g = _i({
|
|
13958
|
-
id: p,
|
|
13959
|
-
fallbackControlId: d?.id ?? f,
|
|
13960
|
-
setLabelId(m) {
|
|
13961
|
-
c.set("labelId", m);
|
|
13962
|
-
}
|
|
13963
|
-
});
|
|
13964
|
-
return pe("div", t, {
|
|
13965
|
-
ref: n,
|
|
13966
|
-
state: u.state,
|
|
13967
|
-
props: [g, i],
|
|
13968
|
-
stateAttributesMapping: kt
|
|
13969
|
-
});
|
|
13970
|
-
});
|
|
13971
|
-
process.env.NODE_ENV !== "production" && (eh.displayName = "SelectLabel");
|
|
13972
|
-
const _s = 2, dS = 400, fS = {
|
|
13973
|
-
...Fo,
|
|
13974
|
-
...kt,
|
|
13975
|
-
popupSide: (e) => e ? {
|
|
13976
|
-
"data-popup-side": e
|
|
13977
|
-
} : null,
|
|
13978
|
-
value: () => null
|
|
13979
|
-
}, th = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
13980
|
-
const {
|
|
13981
|
-
render: o,
|
|
13982
|
-
className: s,
|
|
13983
|
-
id: a,
|
|
13984
|
-
disabled: i = !1,
|
|
13985
|
-
nativeButton: l = !0,
|
|
13986
|
-
style: u,
|
|
13987
|
-
...c
|
|
13988
|
-
} = t, {
|
|
13989
|
-
setTouched: d,
|
|
13990
|
-
setFocused: f,
|
|
13991
|
-
validationMode: p,
|
|
13992
|
-
state: g,
|
|
13993
|
-
disabled: m
|
|
13994
|
-
} = Tt(), {
|
|
13995
|
-
labelId: h
|
|
13996
|
-
} = Ft(), {
|
|
13997
|
-
store: b,
|
|
13998
|
-
setOpen: v,
|
|
13999
|
-
selectionRef: E,
|
|
14000
|
-
validation: y,
|
|
14001
|
-
readOnly: R,
|
|
14002
|
-
required: S,
|
|
14003
|
-
alignItemWithTriggerActiveRef: x,
|
|
14004
|
-
disabled: C,
|
|
14005
|
-
keyboardActiveRef: N
|
|
14006
|
-
} = xn(), P = m || C || i, O = fe(b, Je.open), w = fe(b, Je.mounted), D = fe(b, Je.value), M = fe(b, Je.triggerProps), F = fe(b, Je.positionerElement), I = fe(b, Je.listElement), A = fe(b, Je.popupSide), T = fe(b, Je.id), V = fe(b, Je.labelId), B = fe(b, Je.hasSelectedValue), H = w && F ? A : null, W = a ?? T, X = Ui(h, V);
|
|
14007
|
-
Xn({
|
|
14008
|
-
id: W
|
|
14009
|
-
});
|
|
14010
|
-
const U = Et(F), L = r.useRef(null), {
|
|
14011
|
-
getButtonProps: $,
|
|
14012
|
-
buttonRef: z
|
|
14013
|
-
} = Ct({
|
|
14014
|
-
disabled: P,
|
|
14015
|
-
native: l
|
|
14016
|
-
}), _ = le((de) => {
|
|
14017
|
-
b.set("triggerElement", de);
|
|
14018
|
-
}), Y = Bt(n, L, z, _), J = ft(), Z = ft(), K = ft();
|
|
14019
|
-
r.useEffect(() => {
|
|
14020
|
-
if (O)
|
|
14021
|
-
return K.start(dS, () => {
|
|
14022
|
-
E.current.allowUnselectedMouseUp = !0, E.current.allowSelectedMouseUp = !0;
|
|
14023
|
-
}), () => {
|
|
14024
|
-
K.clear();
|
|
14025
|
-
};
|
|
14026
|
-
E.current = {
|
|
14027
|
-
allowSelectedMouseUp: !1,
|
|
14028
|
-
allowUnselectedMouseUp: !1,
|
|
14029
|
-
dragY: 0
|
|
14030
|
-
}, Z.clear();
|
|
14031
|
-
}, [O, E, Z, K]);
|
|
14032
|
-
const G = St(M, {
|
|
14033
|
-
id: W,
|
|
14034
|
-
role: "combobox",
|
|
14035
|
-
"aria-expanded": O ? "true" : "false",
|
|
14036
|
-
"aria-haspopup": "listbox",
|
|
14037
|
-
"aria-controls": O ? I?.id ?? Qs(F)?.id : void 0,
|
|
14038
|
-
"aria-labelledby": X,
|
|
14039
|
-
"aria-readonly": R || void 0,
|
|
14040
|
-
"aria-required": S || void 0,
|
|
14041
|
-
tabIndex: P ? -1 : 0,
|
|
14042
|
-
ref: Y,
|
|
14043
|
-
onFocus(de) {
|
|
14044
|
-
f(!0), O && x.current && v(!1, Re(ht, de.nativeEvent)), J.start(0, () => {
|
|
14045
|
-
b.set("forceMount", !0);
|
|
14046
|
-
});
|
|
14047
|
-
},
|
|
14048
|
-
onBlur(de) {
|
|
14049
|
-
Me(F, de.relatedTarget) || (d(!0), f(!1), p === "onBlur" && y.commit(D));
|
|
14050
|
-
},
|
|
14051
|
-
onPointerMove() {
|
|
14052
|
-
N.current = !1;
|
|
14053
|
-
},
|
|
14054
|
-
onKeyDown() {
|
|
14055
|
-
N.current = !0;
|
|
14056
|
-
},
|
|
14057
|
-
onMouseDown(de) {
|
|
14058
|
-
if (O)
|
|
14059
|
-
return;
|
|
14060
|
-
const q = $e(de.currentTarget);
|
|
14061
|
-
function se(re) {
|
|
14062
|
-
if (!L.current)
|
|
14063
|
-
return;
|
|
14064
|
-
const me = re.target;
|
|
14065
|
-
if (Me(L.current, me) || Me(U.current, me) || me === L.current)
|
|
14066
|
-
return;
|
|
14067
|
-
const ae = wl(L.current);
|
|
14068
|
-
re.clientX >= ae.left - _s && re.clientX <= ae.right + _s && re.clientY >= ae.top - _s && re.clientY <= ae.bottom + _s || v(!1, Re(Ec, re));
|
|
14069
|
-
}
|
|
14070
|
-
Z.start(0, () => {
|
|
14071
|
-
q.addEventListener("mouseup", se, {
|
|
14072
|
-
once: !0
|
|
14073
|
-
});
|
|
14074
|
-
});
|
|
14075
|
-
}
|
|
14076
|
-
}, y.getValidationProps, c, $);
|
|
14077
|
-
G.role = "combobox";
|
|
14078
|
-
const oe = {
|
|
14079
|
-
...g,
|
|
14080
|
-
open: O,
|
|
14081
|
-
disabled: P,
|
|
14082
|
-
value: D,
|
|
14083
|
-
readOnly: R,
|
|
14084
|
-
popupSide: H,
|
|
14085
|
-
placeholder: !B
|
|
14086
|
-
};
|
|
14087
|
-
return pe("button", t, {
|
|
14088
|
-
ref: [n, L],
|
|
14089
|
-
state: oe,
|
|
14090
|
-
stateAttributesMapping: fS,
|
|
14091
|
-
props: G
|
|
14092
|
-
});
|
|
14093
|
-
});
|
|
14094
|
-
process.env.NODE_ENV !== "production" && (th.displayName = "SelectTrigger");
|
|
14095
|
-
const pS = {
|
|
14096
|
-
value: () => null
|
|
14097
|
-
}, nh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14098
|
-
const {
|
|
14099
|
-
className: o,
|
|
14100
|
-
render: s,
|
|
14101
|
-
children: a,
|
|
14102
|
-
placeholder: i,
|
|
14103
|
-
style: l,
|
|
14104
|
-
...u
|
|
14105
|
-
} = t, {
|
|
14106
|
-
store: c,
|
|
14107
|
-
valueRef: d
|
|
14108
|
-
} = xn(), f = fe(c, Je.value), p = fe(c, Je.items), g = fe(c, Je.itemToStringLabel), m = fe(c, Je.hasSelectedValue), h = !m && i != null && a == null, b = fe(c, Je.hasNullItemLabel, h), v = {
|
|
14109
|
-
value: f,
|
|
14110
|
-
placeholder: !m
|
|
14111
|
-
};
|
|
14112
|
-
let E = null;
|
|
14113
|
-
return typeof a == "function" ? E = a(f) : a != null ? E = a : !m && i != null && !b ? E = i : Array.isArray(f) ? E = tg(f, p, g) : E = ml(f, p, g), pe("span", t, {
|
|
14114
|
-
state: v,
|
|
14115
|
-
ref: [n, d],
|
|
14116
|
-
props: [{
|
|
14117
|
-
children: E
|
|
14118
|
-
}, u],
|
|
14119
|
-
stateAttributesMapping: pS
|
|
14120
|
-
});
|
|
14121
|
-
});
|
|
14122
|
-
process.env.NODE_ENV !== "production" && (nh.displayName = "SelectValue");
|
|
14123
|
-
const oh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14124
|
-
const {
|
|
14125
|
-
render: o,
|
|
14126
|
-
className: s,
|
|
14127
|
-
style: a,
|
|
14128
|
-
...i
|
|
14129
|
-
} = t, {
|
|
14130
|
-
store: l
|
|
14131
|
-
} = xn(), c = {
|
|
14132
|
-
open: fe(l, Je.open)
|
|
14133
|
-
};
|
|
14134
|
-
return pe("span", t, {
|
|
14135
|
-
state: c,
|
|
14136
|
-
ref: n,
|
|
14137
|
-
props: [{
|
|
14138
|
-
"aria-hidden": !0,
|
|
14139
|
-
children: "▼"
|
|
14140
|
-
}, i],
|
|
14141
|
-
stateAttributesMapping: xo
|
|
14142
|
-
});
|
|
14143
|
-
});
|
|
14144
|
-
process.env.NODE_ENV !== "production" && (oh.displayName = "SelectIcon");
|
|
14145
|
-
const rh = /* @__PURE__ */ r.createContext(void 0);
|
|
14146
|
-
process.env.NODE_ENV !== "production" && (rh.displayName = "SelectPortalContext");
|
|
14147
|
-
const sh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14148
|
-
const {
|
|
14149
|
-
store: o
|
|
14150
|
-
} = xn(), s = fe(o, Je.mounted), a = fe(o, Je.forceMount);
|
|
14151
|
-
return s || a ? /* @__PURE__ */ te(rh.Provider, {
|
|
14152
|
-
value: !0,
|
|
14153
|
-
children: /* @__PURE__ */ te($o, {
|
|
14154
|
-
ref: n,
|
|
14155
|
-
...t
|
|
14156
|
-
})
|
|
14157
|
-
}) : null;
|
|
14158
|
-
});
|
|
14159
|
-
process.env.NODE_ENV !== "production" && (sh.displayName = "SelectPortal");
|
|
14160
|
-
const mS = {
|
|
14161
|
-
...Nt,
|
|
14162
|
-
...gt
|
|
14163
|
-
}, ih = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14164
|
-
const {
|
|
14165
|
-
render: o,
|
|
14166
|
-
className: s,
|
|
14167
|
-
style: a,
|
|
14168
|
-
...i
|
|
14169
|
-
} = t, {
|
|
14170
|
-
store: l
|
|
14171
|
-
} = xn(), u = fe(l, Je.open), c = fe(l, Je.mounted), d = fe(l, Je.transitionStatus);
|
|
14172
|
-
return pe("div", t, {
|
|
14173
|
-
state: {
|
|
14174
|
-
open: u,
|
|
14175
|
-
transitionStatus: d
|
|
14176
|
-
},
|
|
14177
|
-
ref: n,
|
|
14178
|
-
props: [{
|
|
14179
|
-
role: "presentation",
|
|
14180
|
-
hidden: !c,
|
|
14181
|
-
style: {
|
|
14182
|
-
userSelect: "none",
|
|
14183
|
-
WebkitUserSelect: "none"
|
|
14184
|
-
}
|
|
14185
|
-
}, i],
|
|
14186
|
-
stateAttributesMapping: mS
|
|
14187
|
-
});
|
|
14188
|
-
});
|
|
14189
|
-
process.env.NODE_ENV !== "production" && (ih.displayName = "SelectBackdrop");
|
|
14190
|
-
const Vu = /* @__PURE__ */ r.createContext(void 0);
|
|
14191
|
-
process.env.NODE_ENV !== "production" && (Vu.displayName = "SelectPositionerContext");
|
|
14192
|
-
function aa() {
|
|
14193
|
-
const e = r.useContext(Vu);
|
|
14194
|
-
if (!e)
|
|
14195
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : He(59));
|
|
14196
|
-
return e;
|
|
14197
|
-
}
|
|
14198
|
-
function li(e, t) {
|
|
14199
|
-
e && Object.assign(e.style, t);
|
|
14200
|
-
}
|
|
14201
|
-
const ah = {
|
|
14202
|
-
position: "relative",
|
|
14203
|
-
maxHeight: "100%",
|
|
14204
|
-
overflowX: "hidden",
|
|
14205
|
-
overflowY: "auto"
|
|
14206
|
-
}, gS = {
|
|
14207
|
-
position: "fixed"
|
|
14208
|
-
}, ch = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14209
|
-
const {
|
|
14210
|
-
anchor: o,
|
|
14211
|
-
positionMethod: s = "absolute",
|
|
14212
|
-
className: a,
|
|
14213
|
-
render: i,
|
|
14214
|
-
side: l = "bottom",
|
|
14215
|
-
align: u = "center",
|
|
14216
|
-
sideOffset: c = 0,
|
|
14217
|
-
alignOffset: d = 0,
|
|
14218
|
-
collisionBoundary: f = "clipping-ancestors",
|
|
14219
|
-
collisionPadding: p,
|
|
14220
|
-
arrowPadding: g = 5,
|
|
14221
|
-
sticky: m = !1,
|
|
14222
|
-
disableAnchorTracking: h,
|
|
14223
|
-
alignItemWithTrigger: b = !0,
|
|
14224
|
-
collisionAvoidance: v = xi,
|
|
14225
|
-
style: E,
|
|
14226
|
-
...y
|
|
14227
|
-
} = t, {
|
|
14228
|
-
store: R,
|
|
14229
|
-
listRef: S,
|
|
14230
|
-
labelsRef: x,
|
|
14231
|
-
alignItemWithTriggerActiveRef: C,
|
|
14232
|
-
selectedItemTextRef: N,
|
|
14233
|
-
valuesRef: P,
|
|
14234
|
-
initialValueRef: O,
|
|
14235
|
-
popupRef: w,
|
|
14236
|
-
setValue: D
|
|
14237
|
-
} = xn(), M = Jg(), F = fe(R, Je.open), I = fe(R, Je.mounted), A = fe(R, Je.modal), T = fe(R, Je.value), V = fe(R, Je.openMethod), B = fe(R, Je.positionerElement), H = fe(R, Je.triggerElement), W = fe(R, Je.isItemEqualToValue), X = fe(R, Je.transitionStatus), U = r.useRef(null), L = r.useRef(null), [$, z] = r.useState(b), _ = I && $ && V !== "touch";
|
|
14238
|
-
!I && $ !== b && z(b), Ee(() => {
|
|
14239
|
-
I || (Je.scrollUpArrowVisible(R.state) && R.set("scrollUpArrowVisible", !1), Je.scrollDownArrowVisible(R.state) && R.set("scrollDownArrowVisible", !1));
|
|
14240
|
-
}, [R, I]), r.useImperativeHandle(C, () => _), Wi((_ || A) && F, V === "touch", B, H);
|
|
14241
|
-
const Y = So({
|
|
14242
|
-
anchor: o,
|
|
14243
|
-
floatingRootContext: M,
|
|
14244
|
-
positionMethod: s,
|
|
14245
|
-
mounted: I,
|
|
14246
|
-
side: l,
|
|
14247
|
-
sideOffset: c,
|
|
14248
|
-
align: u,
|
|
14249
|
-
alignOffset: d,
|
|
14250
|
-
arrowPadding: g,
|
|
14251
|
-
collisionBoundary: f,
|
|
14252
|
-
collisionPadding: p,
|
|
14253
|
-
sticky: m,
|
|
14254
|
-
disableAnchorTracking: h ?? _,
|
|
14255
|
-
collisionAvoidance: v,
|
|
14256
|
-
keepMounted: !0
|
|
14257
|
-
}), J = _ ? "none" : Y.side, Z = _ ? gS : Y.positionerStyles, K = {
|
|
14258
|
-
open: F,
|
|
14259
|
-
side: J,
|
|
14260
|
-
align: Y.align,
|
|
14261
|
-
anchorHidden: Y.anchorHidden
|
|
14262
|
-
};
|
|
14263
|
-
Ee(() => {
|
|
14264
|
-
R.set("popupSide", Y.side);
|
|
14265
|
-
}, [R, Y.side]);
|
|
14266
|
-
const G = le((re) => {
|
|
14267
|
-
R.set("positionerElement", re);
|
|
14268
|
-
}), oe = Co(t, K, {
|
|
14269
|
-
styles: Z,
|
|
14270
|
-
transitionStatus: X,
|
|
14271
|
-
props: y,
|
|
14272
|
-
refs: [n, G],
|
|
14273
|
-
hidden: !I,
|
|
14274
|
-
inert: !F
|
|
14275
|
-
}), de = r.useRef(0), q = le((re) => {
|
|
14276
|
-
if (re.size === 0 && de.current === 0 || P.current.length === 0)
|
|
14277
|
-
return;
|
|
14278
|
-
const me = de.current;
|
|
14279
|
-
if (de.current = re.size, re.size === me)
|
|
14280
|
-
return;
|
|
14281
|
-
const ae = Re(ht);
|
|
14282
|
-
if (me !== 0 && !R.state.multiple && T !== null && eo(P.current, T, W) === -1) {
|
|
14283
|
-
const Q = O.current, ge = Q != null && eo(P.current, Q, W) !== -1 ? Q : null;
|
|
14284
|
-
D(ge, ae), ge === null && (R.set("selectedIndex", null), N.current = null);
|
|
14285
|
-
}
|
|
14286
|
-
if (me !== 0 && R.state.multiple && Array.isArray(T)) {
|
|
14287
|
-
const ue = (ye) => eo(P.current, ye, W) !== -1, Q = T.filter((ye) => ue(ye));
|
|
14288
|
-
(Q.length !== T.length || Q.some((ye) => !Qm(T, ye, W))) && (D(Q, ae), Q.length === 0 && (R.set("selectedIndex", null), N.current = null));
|
|
14289
|
-
}
|
|
14290
|
-
if (F && _) {
|
|
14291
|
-
R.update({
|
|
14292
|
-
scrollUpArrowVisible: !1,
|
|
14293
|
-
scrollDownArrowVisible: !1
|
|
14294
|
-
});
|
|
14295
|
-
const ue = {
|
|
14296
|
-
height: ""
|
|
14297
|
-
};
|
|
14298
|
-
li(B, ue), li(w.current, ue);
|
|
14299
|
-
}
|
|
14300
|
-
}), se = r.useMemo(() => ({
|
|
14301
|
-
...Y,
|
|
14302
|
-
side: J,
|
|
14303
|
-
alignItemWithTriggerActive: _,
|
|
14304
|
-
setControlledAlignItemWithTrigger: z,
|
|
14305
|
-
scrollUpArrowRef: U,
|
|
14306
|
-
scrollDownArrowRef: L
|
|
14307
|
-
}), [Y, J, _, z]);
|
|
14308
|
-
return /* @__PURE__ */ te(oo, {
|
|
14309
|
-
elementsRef: S,
|
|
14310
|
-
labelsRef: x,
|
|
14311
|
-
onMapChange: q,
|
|
14312
|
-
children: /* @__PURE__ */ ut(Vu.Provider, {
|
|
14313
|
-
value: se,
|
|
14314
|
-
children: [I && A && /* @__PURE__ */ te(hr, {
|
|
14315
|
-
inert: Kn(!F),
|
|
14316
|
-
cutout: H
|
|
14317
|
-
}), oe]
|
|
14318
|
-
})
|
|
14319
|
-
});
|
|
14320
|
-
});
|
|
14321
|
-
process.env.NODE_ENV !== "production" && (ch.displayName = "SelectPositioner");
|
|
14322
|
-
const Fs = "base-ui-disable-scrollbar", ir = {
|
|
14323
|
-
className: Fs,
|
|
14324
|
-
getElement(e) {
|
|
14325
|
-
return /* @__PURE__ */ te("style", {
|
|
14326
|
-
nonce: e,
|
|
14327
|
-
href: Fs,
|
|
14328
|
-
precedence: "base-ui:low",
|
|
14329
|
-
children: `.${Fs}{scrollbar-width:none}.${Fs}::-webkit-scrollbar{display:none}`
|
|
14330
|
-
});
|
|
14331
|
-
}
|
|
14332
|
-
};
|
|
14333
|
-
process.env.NODE_ENV !== "production" && (ir.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
14334
|
-
const Au = /* @__PURE__ */ r.createContext(void 0);
|
|
14335
|
-
process.env.NODE_ENV !== "production" && (Au.displayName = "CSPContext");
|
|
14336
|
-
const hS = {
|
|
14337
|
-
disableStyleElements: !1
|
|
14338
|
-
};
|
|
14339
|
-
function ca() {
|
|
14340
|
-
return r.useContext(Au) ?? hS;
|
|
14341
|
-
}
|
|
14342
|
-
const bS = {
|
|
14343
|
-
...Nt,
|
|
13832
|
+
process.env.NODE_ENV !== "production" && (jg.displayName = "TabsIndicator");
|
|
13833
|
+
let bS = (function(e) {
|
|
13834
|
+
return e.index = "data-index", e.activationDirection = "data-activation-direction", e.orientation = "data-orientation", e.hidden = "data-hidden", e[e.startingStyle = Tn.startingStyle] = "startingStyle", e[e.endingStyle = Tn.endingStyle] = "endingStyle", e;
|
|
13835
|
+
})({});
|
|
13836
|
+
const yS = {
|
|
13837
|
+
...ca,
|
|
14344
13838
|
...gt
|
|
14345
|
-
},
|
|
13839
|
+
}, qg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14346
13840
|
const {
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
13841
|
+
className: o,
|
|
13842
|
+
value: s,
|
|
13843
|
+
render: a,
|
|
13844
|
+
keepMounted: i = !1,
|
|
13845
|
+
style: l,
|
|
13846
|
+
...u
|
|
14352
13847
|
} = t, {
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
const se = Of(U), re = Mr(U.getBoundingClientRect().height, "y", se), me = $e(U), ae = getComputedStyle(U), ue = parseFloat(ae.marginTop), Q = parseFloat(ae.marginBottom), ye = Tf(getComputedStyle(c.current)), ge = Math.min(me.documentElement.clientHeight - ue - Q, ye), ne = oe.scrollTop, k = Ls(oe);
|
|
14390
|
-
let j = 0, ee = null, ce = !1, Se = !1;
|
|
14391
|
-
const xe = (ke) => {
|
|
14392
|
-
U.style.height = `${ke}px`;
|
|
14393
|
-
}, Ie = (ke, Pe) => {
|
|
14394
|
-
const Ge = dt(ke, 0, ge - re);
|
|
14395
|
-
Ge > 0 && xe(re + Ge), oe.scrollTop = Pe, ge - (re + Ge) <= An && ($.current = !0), v();
|
|
14396
|
-
}, De = de ? k - ne : ne, Te = Math.min(re + De, ge);
|
|
14397
|
-
if (j = Te, De <= An) {
|
|
14398
|
-
Ie(De, de ? k : 0);
|
|
14399
|
-
return;
|
|
14400
|
-
}
|
|
14401
|
-
if (ge - Te > An)
|
|
14402
|
-
de ? Se = !0 : ee = 0;
|
|
14403
|
-
else if (ce = !0, q && ne < k) {
|
|
14404
|
-
const ke = re + De - ge;
|
|
14405
|
-
ee = ne - (De - ke);
|
|
14406
|
-
}
|
|
14407
|
-
if (j = Math.ceil(j), j !== 0 && xe(j), Se || ee != null) {
|
|
14408
|
-
const ke = Ls(oe), Pe = Se ? ke : dt(ee, 0, ke);
|
|
14409
|
-
Math.abs(oe.scrollTop - Pe) > An && (oe.scrollTop = Pe);
|
|
14410
|
-
}
|
|
14411
|
-
(ce || j >= ge - An) && ($.current = !0), v();
|
|
13848
|
+
value: c,
|
|
13849
|
+
getTabIdByPanelValue: d,
|
|
13850
|
+
orientation: f,
|
|
13851
|
+
tabActivationDirection: p,
|
|
13852
|
+
registerMountedTabPanel: g,
|
|
13853
|
+
unregisterMountedTabPanel: m
|
|
13854
|
+
} = aa(), h = st(), b = r.useMemo(() => ({
|
|
13855
|
+
id: h,
|
|
13856
|
+
value: s
|
|
13857
|
+
}), [h, s]), {
|
|
13858
|
+
ref: v,
|
|
13859
|
+
index: E
|
|
13860
|
+
} = Rn({
|
|
13861
|
+
metadata: b
|
|
13862
|
+
}), y = s === c, {
|
|
13863
|
+
mounted: R,
|
|
13864
|
+
transitionStatus: S,
|
|
13865
|
+
setMounted: x
|
|
13866
|
+
} = Ut(y), C = !R, N = d(s), P = {
|
|
13867
|
+
hidden: C,
|
|
13868
|
+
orientation: f,
|
|
13869
|
+
tabActivationDirection: p,
|
|
13870
|
+
transitionStatus: S
|
|
13871
|
+
}, O = r.useRef(null), w = pe("div", t, {
|
|
13872
|
+
state: P,
|
|
13873
|
+
ref: [n, v, O],
|
|
13874
|
+
props: [{
|
|
13875
|
+
"aria-labelledby": N,
|
|
13876
|
+
hidden: C,
|
|
13877
|
+
id: h,
|
|
13878
|
+
role: "tabpanel",
|
|
13879
|
+
tabIndex: y ? 0 : -1,
|
|
13880
|
+
inert: Kn(!y),
|
|
13881
|
+
[bS.index]: E
|
|
13882
|
+
}, u],
|
|
13883
|
+
stateAttributesMapping: yS
|
|
14412
13884
|
});
|
|
14413
|
-
|
|
14414
|
-
open:
|
|
14415
|
-
ref:
|
|
13885
|
+
return Pt({
|
|
13886
|
+
open: y,
|
|
13887
|
+
ref: O,
|
|
14416
13888
|
onComplete() {
|
|
14417
|
-
|
|
13889
|
+
y || x(!1);
|
|
14418
13890
|
}
|
|
14419
|
-
})
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
13891
|
+
}), Ee(() => {
|
|
13892
|
+
if (!(C && !i) && h != null)
|
|
13893
|
+
return g(s, h), () => {
|
|
13894
|
+
m(s, h);
|
|
13895
|
+
};
|
|
13896
|
+
}, [C, i, s, h, g, m]), i || R ? w : null;
|
|
13897
|
+
});
|
|
13898
|
+
process.env.NODE_ENV !== "production" && (qg.displayName = "TabsPanel");
|
|
13899
|
+
const vS = [];
|
|
13900
|
+
function ES(e) {
|
|
13901
|
+
const {
|
|
13902
|
+
itemSizes: t,
|
|
13903
|
+
cols: n = 1,
|
|
13904
|
+
loopFocus: o = !0,
|
|
13905
|
+
onLoop: s,
|
|
13906
|
+
dense: a = !1,
|
|
13907
|
+
orientation: i = "both",
|
|
13908
|
+
direction: l,
|
|
13909
|
+
highlightedIndex: u,
|
|
13910
|
+
onHighlightedIndexChange: c,
|
|
13911
|
+
rootRef: d,
|
|
13912
|
+
enableHomeAndEndKeys: f = !1,
|
|
13913
|
+
stopEventPropagation: p = !1,
|
|
13914
|
+
disabledIndices: g,
|
|
13915
|
+
modifierKeys: m = vS
|
|
13916
|
+
} = e, [h, b] = r.useState(0), v = n > 1, E = r.useRef(null), y = Bt(E, d), R = r.useRef([]), S = r.useRef(!1), x = u ?? h, C = le((w, D = !1) => {
|
|
13917
|
+
if ((c ?? b)(w), D) {
|
|
13918
|
+
const M = R.current[w];
|
|
13919
|
+
Rf(E.current, M, l, i);
|
|
14447
13920
|
}
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
U.style.left = `${dt(Ve, De, ze - ge.width)}px`, U.style.height = `${Le}px`, U.style.maxHeight = "auto", U.style.marginTop = `${ce}px`, U.style.marginBottom = `${Se}px`, oe.style.height = "100%";
|
|
14465
|
-
const nt = Ls(k), ie = Ze >= nt - An;
|
|
14466
|
-
ie && (Le = Math.min(Pe, ge.height) - (Ze - nt));
|
|
14467
|
-
const he = ye.top < ke || ye.bottom > Pe - ke || Math.ceil(Le) + An < Math.min(j, xe), Ce = (ue.visualViewport?.scale ?? 1) !== 1 && cr;
|
|
14468
|
-
if (he || Ce) {
|
|
14469
|
-
z.current = !0, li(U, _.current), P(!1);
|
|
13921
|
+
}), N = le((w) => {
|
|
13922
|
+
if (w.size === 0 || S.current)
|
|
13923
|
+
return;
|
|
13924
|
+
S.current = !0;
|
|
13925
|
+
const D = Array.from(w.keys()), M = D.find((I) => I?.hasAttribute(Tu)) ?? null, F = M ? D.indexOf(M) : -1;
|
|
13926
|
+
F !== -1 && C(F), Rf(E.current, M, l, i);
|
|
13927
|
+
}), P = le((w, D, M) => s ? s?.(w, D, M, R) : M), O = r.useMemo(() => ({
|
|
13928
|
+
"aria-orientation": i === "both" ? void 0 : i,
|
|
13929
|
+
ref: y,
|
|
13930
|
+
onFocus(w) {
|
|
13931
|
+
const D = E.current, M = ct(w.nativeEvent);
|
|
13932
|
+
!D || M == null || !Ef(M) || M.setSelectionRange(0, M.value.length ?? 0);
|
|
13933
|
+
},
|
|
13934
|
+
onKeyDown(w) {
|
|
13935
|
+
const D = f ? ro : Cg;
|
|
13936
|
+
if (!D.has(w.key) || RS(w, m) || !E.current)
|
|
14470
13937
|
return;
|
|
13938
|
+
const F = l === "rtl", I = F ? Lo : bo, A = {
|
|
13939
|
+
horizontal: I,
|
|
13940
|
+
vertical: fo,
|
|
13941
|
+
both: I
|
|
13942
|
+
}[i], T = F ? bo : Lo, V = {
|
|
13943
|
+
horizontal: T,
|
|
13944
|
+
vertical: Ao,
|
|
13945
|
+
both: T
|
|
13946
|
+
}[i], B = ct(w.nativeEvent);
|
|
13947
|
+
if (B != null && Ef(B) && !ci(B)) {
|
|
13948
|
+
const z = B.selectionStart, _ = B.selectionEnd, Y = B.value ?? "";
|
|
13949
|
+
if (z == null || w.shiftKey || z !== _ || w.key !== V && z < Y.length || w.key !== A && z > 0)
|
|
13950
|
+
return;
|
|
14471
13951
|
}
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
13952
|
+
let H = x;
|
|
13953
|
+
const W = zs(R, g), X = Qa(R, g);
|
|
13954
|
+
if (v) {
|
|
13955
|
+
const z = t || Array.from({
|
|
13956
|
+
length: R.current.length
|
|
13957
|
+
}, () => ({
|
|
13958
|
+
width: 1,
|
|
13959
|
+
height: 1
|
|
13960
|
+
})), _ = Dp(z, n, a), Y = _.findIndex((Z) => Z != null && !Jn(R.current, Z, g)), J = _.reduce((Z, K, G) => K != null && !Jn(R.current, K, g) ? G : Z, -1);
|
|
13961
|
+
H = _[Mp(_.map((Z) => Z != null ? R.current[Z] : null), {
|
|
13962
|
+
event: w,
|
|
13963
|
+
orientation: i,
|
|
13964
|
+
loopFocus: o,
|
|
13965
|
+
onLoop: P,
|
|
13966
|
+
cols: n,
|
|
13967
|
+
// treat undefined (empty grid spaces) as disabled indices so we
|
|
13968
|
+
// don't end up in them
|
|
13969
|
+
disabledIndices: Ap([...g || R.current.map((Z, K) => Jn(R.current, K) ? K : void 0), void 0], _),
|
|
13970
|
+
minIndex: Y,
|
|
13971
|
+
maxIndex: J,
|
|
13972
|
+
prevIndex: Vp(
|
|
13973
|
+
x > X ? W : x,
|
|
13974
|
+
z,
|
|
13975
|
+
_,
|
|
13976
|
+
n,
|
|
13977
|
+
// use a corner matching the edge closest to the direction we're
|
|
13978
|
+
// moving in so we don't end up in the same item. Prefer
|
|
13979
|
+
// top/left over bottom/right.
|
|
13980
|
+
// eslint-disable-next-line no-nested-ternary
|
|
13981
|
+
w.key === fo ? "bl" : w.key === bo ? "tr" : "tl"
|
|
13982
|
+
),
|
|
13983
|
+
rtl: F
|
|
13984
|
+
})];
|
|
14481
13985
|
}
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
id: `${T}-list`
|
|
14503
|
-
},
|
|
14504
|
-
onKeyDown(oe) {
|
|
14505
|
-
h.current = !0, D && ro.has(oe.key) && oe.stopPropagation();
|
|
14506
|
-
},
|
|
14507
|
-
onMouseMove() {
|
|
14508
|
-
h.current = !1;
|
|
14509
|
-
},
|
|
14510
|
-
onScroll(oe) {
|
|
14511
|
-
L || J(oe.currentTarget);
|
|
14512
|
-
},
|
|
14513
|
-
...C && {
|
|
14514
|
-
style: L ? {
|
|
14515
|
-
height: "100%"
|
|
14516
|
-
} : ah
|
|
13986
|
+
const U = {
|
|
13987
|
+
horizontal: [I],
|
|
13988
|
+
vertical: [fo],
|
|
13989
|
+
both: [I, fo]
|
|
13990
|
+
}[i], L = {
|
|
13991
|
+
horizontal: [T],
|
|
13992
|
+
vertical: [Ao],
|
|
13993
|
+
both: [T, Ao]
|
|
13994
|
+
}[i], $ = v ? D : {
|
|
13995
|
+
horizontal: f ? Nx : xg,
|
|
13996
|
+
vertical: f ? Ix : Sg,
|
|
13997
|
+
both: D
|
|
13998
|
+
}[i];
|
|
13999
|
+
f && (w.key === ss ? H = W : w.key === is && (H = X)), H === x && (U.includes(w.key) || L.includes(w.key)) && (o && H === X && U.includes(w.key) ? (H = W, s && (H = s(w, x, H, R))) : o && H === W && L.includes(w.key) ? (H = X, s && (H = s(w, x, H, R))) : H = Gt(R.current, {
|
|
14000
|
+
startingIndex: H,
|
|
14001
|
+
decrement: L.includes(w.key),
|
|
14002
|
+
disabledIndices: g
|
|
14003
|
+
})), H !== x && !Lr(R.current, H) && (p && w.stopPropagation(), $.has(w.key) && w.preventDefault(), C(H, !0), queueMicrotask(() => {
|
|
14004
|
+
R.current[H]?.focus();
|
|
14005
|
+
}));
|
|
14517
14006
|
}
|
|
14518
|
-
},
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14007
|
+
}), [n, a, l, g, R, f, x, v, t, o, s, P, y, m, C, i, p]);
|
|
14008
|
+
return r.useMemo(() => ({
|
|
14009
|
+
props: O,
|
|
14010
|
+
highlightedIndex: x,
|
|
14011
|
+
onHighlightedIndexChange: C,
|
|
14012
|
+
elementsRef: R,
|
|
14013
|
+
disabledIndices: g,
|
|
14014
|
+
onMapChange: N,
|
|
14015
|
+
relayKeyboardEvent: O.onKeyDown
|
|
14016
|
+
}), [O, x, C, R, g, N]);
|
|
14017
|
+
}
|
|
14018
|
+
function RS(e, t) {
|
|
14019
|
+
for (const n of Dx.values())
|
|
14020
|
+
if (!t.includes(n) && e.getModifierState(n))
|
|
14021
|
+
return !0;
|
|
14022
|
+
return !1;
|
|
14023
|
+
}
|
|
14024
|
+
function yo(e) {
|
|
14025
|
+
const {
|
|
14026
|
+
render: t,
|
|
14027
|
+
className: n,
|
|
14028
|
+
style: o,
|
|
14029
|
+
refs: s = Kt,
|
|
14030
|
+
props: a = Kt,
|
|
14031
|
+
state: i = ot,
|
|
14032
|
+
stateAttributesMapping: l,
|
|
14033
|
+
highlightedIndex: u,
|
|
14034
|
+
onHighlightedIndexChange: c,
|
|
14035
|
+
orientation: d,
|
|
14036
|
+
dense: f,
|
|
14037
|
+
itemSizes: p,
|
|
14038
|
+
loopFocus: g,
|
|
14039
|
+
onLoop: m,
|
|
14040
|
+
cols: h,
|
|
14041
|
+
enableHomeAndEndKeys: b,
|
|
14042
|
+
onMapChange: v,
|
|
14043
|
+
stopEventPropagation: E = !0,
|
|
14044
|
+
rootRef: y,
|
|
14045
|
+
disabledIndices: R,
|
|
14046
|
+
modifierKeys: S,
|
|
14047
|
+
highlightItemOnHover: x = !1,
|
|
14048
|
+
tag: C = "div",
|
|
14049
|
+
...N
|
|
14050
|
+
} = e, P = jt(), {
|
|
14051
|
+
props: O,
|
|
14052
|
+
highlightedIndex: w,
|
|
14053
|
+
onHighlightedIndexChange: D,
|
|
14054
|
+
elementsRef: M,
|
|
14055
|
+
onMapChange: F,
|
|
14056
|
+
relayKeyboardEvent: I
|
|
14057
|
+
} = ES({
|
|
14058
|
+
itemSizes: p,
|
|
14059
|
+
cols: h,
|
|
14060
|
+
loopFocus: g,
|
|
14061
|
+
onLoop: m,
|
|
14062
|
+
dense: f,
|
|
14063
|
+
orientation: d,
|
|
14064
|
+
highlightedIndex: u,
|
|
14065
|
+
onHighlightedIndexChange: c,
|
|
14066
|
+
rootRef: y,
|
|
14067
|
+
stopEventPropagation: E,
|
|
14068
|
+
enableHomeAndEndKeys: b,
|
|
14069
|
+
direction: P,
|
|
14070
|
+
disabledIndices: R,
|
|
14071
|
+
modifierKeys: S
|
|
14072
|
+
}), A = pe(C, e, {
|
|
14073
|
+
state: i,
|
|
14074
|
+
ref: s,
|
|
14075
|
+
props: [O, ...a, N],
|
|
14076
|
+
stateAttributesMapping: l
|
|
14077
|
+
}), T = r.useMemo(() => ({
|
|
14078
|
+
highlightedIndex: w,
|
|
14079
|
+
onHighlightedIndexChange: D,
|
|
14080
|
+
highlightItemOnHover: x,
|
|
14081
|
+
relayKeyboardEvent: I
|
|
14082
|
+
}), [w, D, x, I]);
|
|
14083
|
+
return /* @__PURE__ */ te(nl.Provider, {
|
|
14084
|
+
value: T,
|
|
14085
|
+
children: /* @__PURE__ */ te(oo, {
|
|
14086
|
+
elementsRef: M,
|
|
14087
|
+
onMapChange: (V) => {
|
|
14088
|
+
v?.(V), F(V);
|
|
14089
|
+
},
|
|
14090
|
+
children: A
|
|
14091
|
+
})
|
|
14525
14092
|
});
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14093
|
+
}
|
|
14094
|
+
const Zg = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14095
|
+
const {
|
|
14096
|
+
activateOnFocus: o = !1,
|
|
14097
|
+
className: s,
|
|
14098
|
+
loopFocus: a = !0,
|
|
14099
|
+
render: i,
|
|
14100
|
+
style: l,
|
|
14101
|
+
...u
|
|
14102
|
+
} = t, {
|
|
14103
|
+
onValueChange: c,
|
|
14104
|
+
orientation: d,
|
|
14105
|
+
value: f,
|
|
14106
|
+
setTabMap: p,
|
|
14107
|
+
tabActivationDirection: g
|
|
14108
|
+
} = aa(), [m, h] = r.useState(0), [b, v] = r.useState(null), E = r.useRef(/* @__PURE__ */ new Set()), y = r.useRef(/* @__PURE__ */ new Set()), R = r.useRef(null);
|
|
14109
|
+
r.useEffect(() => {
|
|
14110
|
+
if (typeof ResizeObserver > "u")
|
|
14111
|
+
return;
|
|
14112
|
+
const w = new ResizeObserver(() => {
|
|
14113
|
+
E.current.forEach((D) => {
|
|
14114
|
+
D();
|
|
14115
|
+
});
|
|
14116
|
+
});
|
|
14117
|
+
return R.current = w, b && w.observe(b), y.current.forEach((D) => {
|
|
14118
|
+
w.observe(D);
|
|
14119
|
+
}), () => {
|
|
14120
|
+
w.disconnect(), R.current = null;
|
|
14121
|
+
};
|
|
14122
|
+
}, [b]);
|
|
14123
|
+
const S = le((w) => (E.current.add(w), () => {
|
|
14124
|
+
E.current.delete(w);
|
|
14125
|
+
})), x = le((w) => (y.current.add(w), R.current?.observe(w), () => {
|
|
14126
|
+
y.current.delete(w), R.current?.unobserve(w);
|
|
14127
|
+
})), C = le((w, D) => {
|
|
14128
|
+
w !== f && c(w, D);
|
|
14129
|
+
}), N = {
|
|
14130
|
+
orientation: d,
|
|
14131
|
+
tabActivationDirection: g
|
|
14132
|
+
}, P = {
|
|
14133
|
+
"aria-orientation": d === "vertical" ? "vertical" : void 0,
|
|
14134
|
+
role: "tablist"
|
|
14135
|
+
}, O = r.useMemo(() => ({
|
|
14136
|
+
activateOnFocus: o,
|
|
14137
|
+
highlightedTabIndex: m,
|
|
14138
|
+
registerIndicatorUpdateListener: S,
|
|
14139
|
+
registerTabResizeObserverElement: x,
|
|
14140
|
+
onTabActivation: C,
|
|
14141
|
+
setHighlightedTabIndex: h,
|
|
14142
|
+
tabsListElement: b
|
|
14143
|
+
}), [o, m, S, x, C, h, b]);
|
|
14144
|
+
return /* @__PURE__ */ te(Ou.Provider, {
|
|
14145
|
+
value: O,
|
|
14146
|
+
children: /* @__PURE__ */ te(yo, {
|
|
14147
|
+
render: i,
|
|
14148
|
+
className: s,
|
|
14149
|
+
style: l,
|
|
14150
|
+
state: N,
|
|
14151
|
+
refs: [n, v],
|
|
14152
|
+
props: [P, u],
|
|
14153
|
+
stateAttributesMapping: ca,
|
|
14154
|
+
highlightedIndex: m,
|
|
14155
|
+
enableHomeAndEndKeys: !0,
|
|
14156
|
+
loopFocus: a,
|
|
14157
|
+
orientation: d,
|
|
14158
|
+
onHighlightedIndexChange: h,
|
|
14159
|
+
onMapChange: p,
|
|
14160
|
+
disabledIndices: Kt
|
|
14161
|
+
})
|
|
14535
14162
|
});
|
|
14536
14163
|
});
|
|
14537
|
-
process.env.NODE_ENV !== "production" && (
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14164
|
+
process.env.NODE_ENV !== "production" && (Zg.displayName = "TabsList");
|
|
14165
|
+
const JP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14166
|
+
__proto__: null,
|
|
14167
|
+
Indicator: jg,
|
|
14168
|
+
List: Zg,
|
|
14169
|
+
Panel: qg,
|
|
14170
|
+
Root: Gg,
|
|
14171
|
+
Tab: Xg
|
|
14172
|
+
}, Symbol.toStringTag, { value: "Module" })), Vu = /* @__PURE__ */ r.createContext(void 0);
|
|
14173
|
+
process.env.NODE_ENV !== "production" && (Vu.displayName = "MeterRootContext");
|
|
14174
|
+
function Au() {
|
|
14175
|
+
const e = r.useContext(Vu);
|
|
14176
|
+
if (e === void 0)
|
|
14177
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>." : He(38));
|
|
14178
|
+
return e;
|
|
14541
14179
|
}
|
|
14542
|
-
|
|
14543
|
-
|
|
14180
|
+
const Tf = /* @__PURE__ */ new Map();
|
|
14181
|
+
function Br(e, t) {
|
|
14182
|
+
const n = JSON.stringify({
|
|
14183
|
+
locale: e,
|
|
14184
|
+
options: t
|
|
14185
|
+
}), o = Tf.get(n);
|
|
14186
|
+
if (o)
|
|
14187
|
+
return o;
|
|
14188
|
+
const s = new Intl.NumberFormat(e, t);
|
|
14189
|
+
return Tf.set(n, s), s;
|
|
14544
14190
|
}
|
|
14545
|
-
function
|
|
14546
|
-
return
|
|
14191
|
+
function hn(e, t, n) {
|
|
14192
|
+
return e == null ? "" : Br(t, n).format(e);
|
|
14547
14193
|
}
|
|
14548
|
-
function
|
|
14549
|
-
return e
|
|
14194
|
+
function Qg(e, t, n) {
|
|
14195
|
+
return hn(e, t, {
|
|
14196
|
+
...n,
|
|
14197
|
+
maximumFractionDigits: 20
|
|
14198
|
+
});
|
|
14550
14199
|
}
|
|
14551
|
-
function
|
|
14552
|
-
return
|
|
14553
|
-
|
|
14554
|
-
y: Mr(e.y, "y", t),
|
|
14555
|
-
width: Mr(e.width, "x", t),
|
|
14556
|
-
height: Mr(e.height, "y", t)
|
|
14200
|
+
function Jg(e, t, n) {
|
|
14201
|
+
return e == null ? "" : n ? hn(e, t, n) : hn(e / 100, t, {
|
|
14202
|
+
style: "percent"
|
|
14557
14203
|
});
|
|
14558
14204
|
}
|
|
14559
|
-
const
|
|
14560
|
-
function yS(e) {
|
|
14205
|
+
const eh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14561
14206
|
const {
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14207
|
+
format: o,
|
|
14208
|
+
getAriaValueText: s,
|
|
14209
|
+
locale: a,
|
|
14210
|
+
max: i = 100,
|
|
14211
|
+
min: l = 0,
|
|
14212
|
+
value: u,
|
|
14213
|
+
render: c,
|
|
14214
|
+
className: d,
|
|
14215
|
+
children: f,
|
|
14216
|
+
style: p,
|
|
14217
|
+
...g
|
|
14218
|
+
} = t, [m, h] = r.useState(), b = Jg(u, a, o);
|
|
14219
|
+
let v = `${u}%`;
|
|
14220
|
+
s ? v = s(b, u) : o && (v = b);
|
|
14221
|
+
const E = {
|
|
14222
|
+
"aria-labelledby": m,
|
|
14223
|
+
"aria-valuemax": i,
|
|
14224
|
+
"aria-valuemin": l,
|
|
14225
|
+
"aria-valuenow": u,
|
|
14226
|
+
"aria-valuetext": v,
|
|
14227
|
+
role: "meter",
|
|
14228
|
+
children: /* @__PURE__ */ ut(r.Fragment, {
|
|
14229
|
+
children: [f, /* @__PURE__ */ te("span", {
|
|
14230
|
+
role: "presentation",
|
|
14231
|
+
style: vn,
|
|
14232
|
+
children: "x"
|
|
14233
|
+
})]
|
|
14234
|
+
})
|
|
14235
|
+
}, y = r.useMemo(() => ({
|
|
14236
|
+
formattedValue: b,
|
|
14237
|
+
max: i,
|
|
14238
|
+
min: l,
|
|
14239
|
+
setLabelId: h,
|
|
14240
|
+
value: u
|
|
14241
|
+
}), [b, i, l, h, u]), R = pe("div", t, {
|
|
14242
|
+
ref: n,
|
|
14243
|
+
props: [E, g]
|
|
14244
|
+
});
|
|
14245
|
+
return /* @__PURE__ */ te(Vu.Provider, {
|
|
14246
|
+
value: y,
|
|
14247
|
+
children: R
|
|
14248
|
+
});
|
|
14249
|
+
});
|
|
14250
|
+
process.env.NODE_ENV !== "production" && (eh.displayName = "MeterRoot");
|
|
14251
|
+
const th = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14574
14252
|
const {
|
|
14575
14253
|
render: o,
|
|
14576
14254
|
className: s,
|
|
14577
14255
|
style: a,
|
|
14578
14256
|
...i
|
|
14579
|
-
} = t
|
|
14580
|
-
store: l,
|
|
14581
|
-
scrollHandlerRef: u
|
|
14582
|
-
} = xn(), {
|
|
14583
|
-
alignItemWithTriggerActive: c
|
|
14584
|
-
} = aa(), d = fe(l, Je.hasScrollArrows), f = fe(l, Je.openMethod), p = fe(l, Je.multiple), m = {
|
|
14585
|
-
id: `${fe(l, Je.id)}-list`,
|
|
14586
|
-
role: "listbox",
|
|
14587
|
-
"aria-multiselectable": p || void 0,
|
|
14588
|
-
onScroll(b) {
|
|
14589
|
-
u.current?.(b.currentTarget);
|
|
14590
|
-
},
|
|
14591
|
-
...c && {
|
|
14592
|
-
style: ah
|
|
14593
|
-
},
|
|
14594
|
-
className: d && f !== "touch" ? ir.className : void 0
|
|
14595
|
-
}, h = le((b) => {
|
|
14596
|
-
l.set("listElement", b);
|
|
14597
|
-
});
|
|
14257
|
+
} = t;
|
|
14598
14258
|
return pe("div", t, {
|
|
14599
|
-
ref:
|
|
14600
|
-
props:
|
|
14259
|
+
ref: n,
|
|
14260
|
+
props: i
|
|
14601
14261
|
});
|
|
14602
14262
|
});
|
|
14603
|
-
process.env.NODE_ENV !== "production" && (
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
function _u() {
|
|
14607
|
-
const e = r.useContext(ku);
|
|
14608
|
-
if (!e)
|
|
14609
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : He(57));
|
|
14610
|
-
return e;
|
|
14263
|
+
process.env.NODE_ENV !== "production" && (th.displayName = "MeterTrack");
|
|
14264
|
+
function Ur(e, t, n) {
|
|
14265
|
+
return (e - t) * 100 / (n - t);
|
|
14611
14266
|
}
|
|
14612
|
-
const
|
|
14267
|
+
const nh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14613
14268
|
const {
|
|
14614
14269
|
render: o,
|
|
14615
14270
|
className: s,
|
|
14616
14271
|
style: a,
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
}), {
|
|
14627
|
-
store: g,
|
|
14628
|
-
itemProps: m,
|
|
14629
|
-
setOpen: h,
|
|
14630
|
-
setValue: b,
|
|
14631
|
-
selectionRef: v,
|
|
14632
|
-
typingRef: E,
|
|
14633
|
-
valuesRef: y,
|
|
14634
|
-
multiple: R,
|
|
14635
|
-
selectedItemTextRef: S
|
|
14636
|
-
} = xn(), x = fe(g, Je.isActive, p.index), C = fe(g, Je.isSelected, p.index, i), N = fe(g, Je.isSelectedByFocus, p.index), P = fe(g, Je.isItemEqualToValue), O = p.index, w = O !== -1, D = r.useRef(null);
|
|
14637
|
-
Ee(() => {
|
|
14638
|
-
if (!w)
|
|
14639
|
-
return;
|
|
14640
|
-
const L = y.current;
|
|
14641
|
-
return L[O] = i, () => {
|
|
14642
|
-
delete L[O];
|
|
14643
|
-
};
|
|
14644
|
-
}, [w, O, i, y]), Ee(() => {
|
|
14645
|
-
if (!w)
|
|
14646
|
-
return;
|
|
14647
|
-
const L = g.state.value;
|
|
14648
|
-
let $ = L;
|
|
14649
|
-
R && Array.isArray(L) && L.length > 0 && ($ = L[L.length - 1]), $ !== void 0 && Yn(i, $, P) && (g.set("selectedIndex", O), f.current && (S.current = f.current));
|
|
14650
|
-
}, [w, O, R, P, g, i, S]);
|
|
14651
|
-
const M = r.useRef(null), F = r.useRef("mouse"), I = r.useRef(!1), {
|
|
14652
|
-
getButtonProps: A,
|
|
14653
|
-
buttonRef: T
|
|
14654
|
-
} = Ct({
|
|
14655
|
-
disabled: u,
|
|
14656
|
-
focusableWhenDisabled: !0,
|
|
14657
|
-
native: c,
|
|
14658
|
-
composite: !0
|
|
14659
|
-
}), V = {
|
|
14660
|
-
disabled: u,
|
|
14661
|
-
selected: C,
|
|
14662
|
-
highlighted: x
|
|
14663
|
-
};
|
|
14664
|
-
function B(L) {
|
|
14665
|
-
const $ = g.state.value;
|
|
14666
|
-
if (R) {
|
|
14667
|
-
const z = Array.isArray($) ? $ : [], _ = C ? Jm(z, i, P) : [...z, i];
|
|
14668
|
-
b(_, Re(ho, L));
|
|
14669
|
-
} else
|
|
14670
|
-
b(i, Re(ho, L)), h(!1, Re(ho, L));
|
|
14671
|
-
}
|
|
14672
|
-
function H() {
|
|
14673
|
-
v.current.dragY = 0;
|
|
14674
|
-
}
|
|
14675
|
-
const W = {
|
|
14676
|
-
role: "option",
|
|
14677
|
-
"aria-selected": C,
|
|
14678
|
-
tabIndex: x ? 0 : -1,
|
|
14679
|
-
onKeyDown(L) {
|
|
14680
|
-
M.current = L.key, g.set("activeIndex", O), L.key === " " && E.current && L.preventDefault();
|
|
14681
|
-
},
|
|
14682
|
-
onClick(L) {
|
|
14683
|
-
const $ = L.type === "click" && F.current !== "touch", z = L.nativeEvent.pointerType, _ = $ && yc(L.nativeEvent) && // Generic no-pointer `detail === 0` clicks stay tied to highlight state. Virtual
|
|
14684
|
-
// clicks that carry browser pointer data, including an empty string from assistive
|
|
14685
|
-
// technology, can activate unhighlighted items.
|
|
14686
|
-
(z !== void 0 || x), Y = $ && !_ && !I.current;
|
|
14687
|
-
I.current = !1, !(L.type === "keydown" && M.current === null) && (u || L.type === "keydown" && M.current === " " && E.current || Y || (M.current = null, B(L.nativeEvent)));
|
|
14688
|
-
},
|
|
14689
|
-
onPointerEnter(L) {
|
|
14690
|
-
F.current = L.pointerType;
|
|
14691
|
-
},
|
|
14692
|
-
onPointerMove(L) {
|
|
14693
|
-
if (L.pointerType === "mouse" && L.buttons === 1) {
|
|
14694
|
-
const $ = v.current;
|
|
14695
|
-
$.dragY += L.movementY, $.dragY ** 2 >= 64 && ($.allowUnselectedMouseUp = !0);
|
|
14272
|
+
...i
|
|
14273
|
+
} = t, l = Au(), u = Ur(l.value, l.min, l.max);
|
|
14274
|
+
return pe("div", t, {
|
|
14275
|
+
ref: n,
|
|
14276
|
+
props: [{
|
|
14277
|
+
style: {
|
|
14278
|
+
insetInlineStart: 0,
|
|
14279
|
+
height: "inherit",
|
|
14280
|
+
width: `${u}%`
|
|
14696
14281
|
}
|
|
14697
|
-
},
|
|
14698
|
-
onPointerDown(L) {
|
|
14699
|
-
F.current = L.pointerType, I.current = !0, H();
|
|
14700
|
-
},
|
|
14701
|
-
onMouseUp() {
|
|
14702
|
-
if (H(), u || F.current === "touch" || I.current)
|
|
14703
|
-
return;
|
|
14704
|
-
const L = !v.current.allowSelectedMouseUp && C, $ = !v.current.allowUnselectedMouseUp && !C;
|
|
14705
|
-
L || $ || (I.current = !0, D.current?.click(), I.current = !1);
|
|
14706
|
-
}
|
|
14707
|
-
}, X = pe("div", t, {
|
|
14708
|
-
ref: [T, n, p.ref, D],
|
|
14709
|
-
state: V,
|
|
14710
|
-
props: [m, W, d, A]
|
|
14711
|
-
}), U = r.useMemo(() => ({
|
|
14712
|
-
selected: C,
|
|
14713
|
-
index: O,
|
|
14714
|
-
textRef: f,
|
|
14715
|
-
selectedByFocus: N,
|
|
14716
|
-
hasRegistered: w
|
|
14717
|
-
}), [C, O, f, N, w]);
|
|
14718
|
-
return /* @__PURE__ */ te(ku.Provider, {
|
|
14719
|
-
value: U,
|
|
14720
|
-
children: X
|
|
14282
|
+
}, i]
|
|
14721
14283
|
});
|
|
14722
|
-
}));
|
|
14723
|
-
process.env.NODE_ENV !== "production" && (dh.displayName = "SelectItem");
|
|
14724
|
-
const fh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14725
|
-
const o = t.keepMounted ?? !1, {
|
|
14726
|
-
selected: s
|
|
14727
|
-
} = _u();
|
|
14728
|
-
return o || s ? /* @__PURE__ */ te(ph, {
|
|
14729
|
-
...t,
|
|
14730
|
-
ref: n
|
|
14731
|
-
}) : null;
|
|
14732
14284
|
});
|
|
14733
|
-
process.env.NODE_ENV !== "production" && (
|
|
14734
|
-
const
|
|
14285
|
+
process.env.NODE_ENV !== "production" && (nh.displayName = "MeterIndicator");
|
|
14286
|
+
const oh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14735
14287
|
const {
|
|
14736
|
-
render: n,
|
|
14737
14288
|
className: o,
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
selected: l
|
|
14743
|
-
} = _u(), u = r.useRef(null), {
|
|
14744
|
-
transitionStatus: c,
|
|
14745
|
-
setMounted: d
|
|
14746
|
-
} = Ut(l), p = pe("span", e, {
|
|
14747
|
-
ref: [t, u],
|
|
14748
|
-
state: {
|
|
14749
|
-
selected: l,
|
|
14750
|
-
transitionStatus: c
|
|
14751
|
-
},
|
|
14752
|
-
props: [{
|
|
14753
|
-
"aria-hidden": !0,
|
|
14754
|
-
children: "✔️"
|
|
14755
|
-
}, i],
|
|
14756
|
-
stateAttributesMapping: gt
|
|
14757
|
-
});
|
|
14758
|
-
return Pt({
|
|
14759
|
-
open: l,
|
|
14760
|
-
ref: u,
|
|
14761
|
-
onComplete() {
|
|
14762
|
-
l || d(!1);
|
|
14763
|
-
}
|
|
14764
|
-
}), p;
|
|
14765
|
-
}));
|
|
14766
|
-
process.env.NODE_ENV !== "production" && (ph.displayName = "Inner");
|
|
14767
|
-
const mh = /* @__PURE__ */ r.memo(/* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14768
|
-
const {
|
|
14769
|
-
index: o,
|
|
14770
|
-
textRef: s,
|
|
14771
|
-
selectedByFocus: a,
|
|
14772
|
-
hasRegistered: i
|
|
14773
|
-
} = _u(), {
|
|
14774
|
-
firstItemTextRef: l,
|
|
14775
|
-
selectedItemTextRef: u
|
|
14776
|
-
} = xn(), {
|
|
14777
|
-
render: c,
|
|
14778
|
-
className: d,
|
|
14779
|
-
style: f,
|
|
14780
|
-
...p
|
|
14781
|
-
} = t, g = r.useCallback((h) => {
|
|
14782
|
-
h && (i && o === 0 && (l.current = h), i && a && (u.current = h));
|
|
14783
|
-
}, [l, u, o, a, i]);
|
|
14784
|
-
return pe("div", t, {
|
|
14785
|
-
ref: [g, n, s],
|
|
14786
|
-
props: p
|
|
14787
|
-
});
|
|
14788
|
-
}));
|
|
14789
|
-
process.env.NODE_ENV !== "production" && (mh.displayName = "SelectItemText");
|
|
14790
|
-
const vS = {
|
|
14791
|
-
...Nt,
|
|
14792
|
-
...gt
|
|
14793
|
-
}, gh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14794
|
-
const {
|
|
14795
|
-
render: o,
|
|
14796
|
-
className: s,
|
|
14797
|
-
style: a,
|
|
14798
|
-
...i
|
|
14289
|
+
render: s,
|
|
14290
|
+
children: a,
|
|
14291
|
+
style: i,
|
|
14292
|
+
...l
|
|
14799
14293
|
} = t, {
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
arrowStyles: f,
|
|
14806
|
-
arrowUncentered: p,
|
|
14807
|
-
alignItemWithTriggerActive: g
|
|
14808
|
-
} = aa(), h = {
|
|
14809
|
-
open: fe(l, Je.open, !0),
|
|
14810
|
-
side: u,
|
|
14811
|
-
align: c,
|
|
14812
|
-
uncentered: p
|
|
14813
|
-
}, b = pe("div", t, {
|
|
14814
|
-
state: h,
|
|
14815
|
-
ref: [d, n],
|
|
14294
|
+
value: u,
|
|
14295
|
+
formattedValue: c
|
|
14296
|
+
} = Au();
|
|
14297
|
+
return pe("span", t, {
|
|
14298
|
+
ref: n,
|
|
14816
14299
|
props: [{
|
|
14817
|
-
|
|
14818
|
-
"
|
|
14819
|
-
},
|
|
14820
|
-
stateAttributesMapping: vS
|
|
14300
|
+
"aria-hidden": !0,
|
|
14301
|
+
children: typeof a == "function" ? a(c, u) : (c || u) ?? ""
|
|
14302
|
+
}, l]
|
|
14821
14303
|
});
|
|
14822
|
-
return g ? null : b;
|
|
14823
14304
|
});
|
|
14824
|
-
process.env.NODE_ENV !== "production" && (
|
|
14825
|
-
const
|
|
14305
|
+
process.env.NODE_ENV !== "production" && (oh.displayName = "MeterValue");
|
|
14306
|
+
const rh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14826
14307
|
const {
|
|
14827
14308
|
render: o,
|
|
14828
14309
|
className: s,
|
|
14829
14310
|
style: a,
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
handleScrollArrowVisibility: g,
|
|
14838
|
-
scrollArrowsMountedCountRef: m
|
|
14839
|
-
} = xn(), {
|
|
14840
|
-
side: h,
|
|
14841
|
-
scrollDownArrowRef: b,
|
|
14842
|
-
scrollUpArrowRef: v
|
|
14843
|
-
} = aa(), E = c ? Je.scrollUpArrowVisible : Je.scrollDownArrowVisible, y = fe(d, E), R = fe(d, Je.openMethod), S = y && R !== "touch", x = ft(), C = c ? v : b, {
|
|
14844
|
-
transitionStatus: N,
|
|
14845
|
-
setMounted: P
|
|
14846
|
-
} = Ut(S);
|
|
14847
|
-
Ee(() => (m.current += 1, d.state.hasScrollArrows || d.set("hasScrollArrows", !0), () => {
|
|
14848
|
-
m.current = Math.max(0, m.current - 1), m.current === 0 && d.state.hasScrollArrows && d.set("hasScrollArrows", !1);
|
|
14849
|
-
}), [d, m]), Pt({
|
|
14850
|
-
open: S,
|
|
14851
|
-
ref: C,
|
|
14852
|
-
onComplete() {
|
|
14853
|
-
S || P(!1);
|
|
14854
|
-
}
|
|
14855
|
-
});
|
|
14856
|
-
const D = pe("div", t, {
|
|
14857
|
-
ref: [n, C],
|
|
14858
|
-
state: {
|
|
14859
|
-
direction: i,
|
|
14860
|
-
visible: S,
|
|
14861
|
-
side: h,
|
|
14862
|
-
transitionStatus: N
|
|
14863
|
-
},
|
|
14311
|
+
id: i,
|
|
14312
|
+
...l
|
|
14313
|
+
} = t, {
|
|
14314
|
+
setLabelId: u
|
|
14315
|
+
} = Au(), c = Qc(i, u);
|
|
14316
|
+
return pe("span", t, {
|
|
14317
|
+
ref: n,
|
|
14864
14318
|
props: [{
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
position: "absolute"
|
|
14869
|
-
},
|
|
14870
|
-
onMouseMove(F) {
|
|
14871
|
-
if (F.movementX === 0 && F.movementY === 0 || x.isStarted())
|
|
14872
|
-
return;
|
|
14873
|
-
d.set("activeIndex", null);
|
|
14874
|
-
function I() {
|
|
14875
|
-
const A = d.state.listElement ?? f.current;
|
|
14876
|
-
if (!A)
|
|
14877
|
-
return;
|
|
14878
|
-
d.set("activeIndex", null), g();
|
|
14879
|
-
const T = Du(A.scrollHeight, A.clientHeight), V = sr(A.scrollTop, T), B = V === (c ? 0 : T), H = p.current;
|
|
14880
|
-
if (V !== A.scrollTop && (A.scrollTop = V), H.length === 0 && d.set(c ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !B), B) {
|
|
14881
|
-
x.clear();
|
|
14882
|
-
return;
|
|
14883
|
-
}
|
|
14884
|
-
if (H.length > 0) {
|
|
14885
|
-
const W = C.current?.offsetHeight || 0;
|
|
14886
|
-
A.scrollTop = ES(H, c, V, A.clientHeight, W, T);
|
|
14887
|
-
}
|
|
14888
|
-
x.start(40, I);
|
|
14889
|
-
}
|
|
14890
|
-
x.start(40, I);
|
|
14891
|
-
},
|
|
14892
|
-
onMouseLeave() {
|
|
14893
|
-
x.clear();
|
|
14894
|
-
}
|
|
14895
|
-
}, u]
|
|
14319
|
+
id: c,
|
|
14320
|
+
role: "presentation"
|
|
14321
|
+
}, l]
|
|
14896
14322
|
});
|
|
14897
|
-
return S || l ? D : null;
|
|
14898
14323
|
});
|
|
14899
|
-
process.env.NODE_ENV !== "production" && (
|
|
14900
|
-
|
|
14901
|
-
|
|
14902
|
-
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
14908
|
-
|
|
14324
|
+
process.env.NODE_ENV !== "production" && (rh.displayName = "MeterLabel");
|
|
14325
|
+
const eN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14326
|
+
__proto__: null,
|
|
14327
|
+
Indicator: nh,
|
|
14328
|
+
Label: rh,
|
|
14329
|
+
Root: eh,
|
|
14330
|
+
Track: th,
|
|
14331
|
+
Value: oh
|
|
14332
|
+
}, Symbol.toStringTag, { value: "Module" })), ku = /* @__PURE__ */ r.createContext(null);
|
|
14333
|
+
process.env.NODE_ENV !== "production" && (ku.displayName = "SelectRootContext");
|
|
14334
|
+
const _u = /* @__PURE__ */ r.createContext(null);
|
|
14335
|
+
process.env.NODE_ENV !== "production" && (_u.displayName = "SelectFloatingContext");
|
|
14336
|
+
function xn() {
|
|
14337
|
+
const e = r.useContext(ku);
|
|
14338
|
+
if (e === null)
|
|
14339
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : He(60));
|
|
14340
|
+
return e;
|
|
14341
|
+
}
|
|
14342
|
+
function sh() {
|
|
14343
|
+
const e = r.useContext(_u);
|
|
14344
|
+
if (e === null)
|
|
14345
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : He(61));
|
|
14346
|
+
return e;
|
|
14347
|
+
}
|
|
14348
|
+
const Je = {
|
|
14349
|
+
id: be((e) => e.id),
|
|
14350
|
+
labelId: be((e) => e.labelId),
|
|
14351
|
+
modal: be((e) => e.modal),
|
|
14352
|
+
multiple: be((e) => e.multiple),
|
|
14353
|
+
items: be((e) => e.items),
|
|
14354
|
+
itemToStringLabel: be((e) => e.itemToStringLabel),
|
|
14355
|
+
itemToStringValue: be((e) => e.itemToStringValue),
|
|
14356
|
+
isItemEqualToValue: be((e) => e.isItemEqualToValue),
|
|
14357
|
+
value: be((e) => e.value),
|
|
14358
|
+
hasSelectedValue: be((e) => {
|
|
14359
|
+
const {
|
|
14360
|
+
value: t,
|
|
14361
|
+
multiple: n,
|
|
14362
|
+
itemToStringValue: o
|
|
14363
|
+
} = e;
|
|
14364
|
+
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : kn(t, o) !== "";
|
|
14365
|
+
}),
|
|
14366
|
+
hasNullItemLabel: be((e, t) => t ? eg(e.items) : !1),
|
|
14367
|
+
open: be((e) => e.open),
|
|
14368
|
+
mounted: be((e) => e.mounted),
|
|
14369
|
+
forceMount: be((e) => e.forceMount),
|
|
14370
|
+
transitionStatus: be((e) => e.transitionStatus),
|
|
14371
|
+
openMethod: be((e) => e.openMethod),
|
|
14372
|
+
activeIndex: be((e) => e.activeIndex),
|
|
14373
|
+
selectedIndex: be((e) => e.selectedIndex),
|
|
14374
|
+
isActive: be((e, t) => e.activeIndex === t),
|
|
14375
|
+
isSelected: be((e, t, n) => {
|
|
14376
|
+
const o = e.isItemEqualToValue, s = e.value;
|
|
14377
|
+
return e.multiple ? Array.isArray(s) && s.some((a) => Yn(n, a, o)) : e.selectedIndex === t && e.selectedIndex !== null ? !0 : Yn(n, s, o);
|
|
14378
|
+
}),
|
|
14379
|
+
isSelectedByFocus: be((e, t) => e.selectedIndex === t),
|
|
14380
|
+
popupProps: be((e) => e.popupProps),
|
|
14381
|
+
triggerProps: be((e) => e.triggerProps),
|
|
14382
|
+
triggerElement: be((e) => e.triggerElement),
|
|
14383
|
+
positionerElement: be((e) => e.positionerElement),
|
|
14384
|
+
listElement: be((e) => e.listElement),
|
|
14385
|
+
popupSide: be((e) => e.popupSide),
|
|
14386
|
+
scrollUpArrowVisible: be((e) => e.scrollUpArrowVisible),
|
|
14387
|
+
scrollDownArrowVisible: be((e) => e.scrollDownArrowVisible),
|
|
14388
|
+
hasScrollArrows: be((e) => e.hasScrollArrows)
|
|
14389
|
+
}, An = 1;
|
|
14390
|
+
function Fu(e, t) {
|
|
14391
|
+
return Math.max(0, e - t);
|
|
14392
|
+
}
|
|
14393
|
+
function sr(e, t) {
|
|
14394
|
+
if (t <= 0)
|
|
14395
|
+
return 0;
|
|
14396
|
+
const n = dt(e, 0, t), o = n, s = t - n, a = o <= An, i = s <= An;
|
|
14397
|
+
return a && i ? o <= s ? 0 : t : a ? 0 : i ? t : n;
|
|
14398
|
+
}
|
|
14399
|
+
function xS(e) {
|
|
14400
|
+
const {
|
|
14401
|
+
id: t,
|
|
14402
|
+
value: n,
|
|
14403
|
+
defaultValue: o = null,
|
|
14404
|
+
onValueChange: s,
|
|
14405
|
+
open: a,
|
|
14406
|
+
defaultOpen: i = !1,
|
|
14407
|
+
onOpenChange: l,
|
|
14408
|
+
name: u,
|
|
14409
|
+
form: c,
|
|
14410
|
+
autoComplete: d,
|
|
14411
|
+
disabled: f = !1,
|
|
14412
|
+
readOnly: p = !1,
|
|
14413
|
+
required: g = !1,
|
|
14414
|
+
modal: m = !0,
|
|
14415
|
+
actionsRef: h,
|
|
14416
|
+
inputRef: b,
|
|
14417
|
+
onOpenChangeComplete: v,
|
|
14418
|
+
items: E,
|
|
14419
|
+
multiple: y = !1,
|
|
14420
|
+
itemToStringLabel: R,
|
|
14421
|
+
itemToStringValue: S,
|
|
14422
|
+
isItemEqualToValue: x = Zm,
|
|
14423
|
+
highlightItemOnHover: C = !0,
|
|
14424
|
+
children: N
|
|
14425
|
+
} = e, {
|
|
14426
|
+
clearErrors: P
|
|
14427
|
+
} = En(), {
|
|
14428
|
+
setDirty: O,
|
|
14429
|
+
setTouched: w,
|
|
14430
|
+
setFocused: D,
|
|
14431
|
+
shouldValidateOnChange: M,
|
|
14432
|
+
validityData: F,
|
|
14433
|
+
setFilled: I,
|
|
14434
|
+
name: A,
|
|
14435
|
+
disabled: T,
|
|
14436
|
+
validation: V,
|
|
14437
|
+
validationMode: B
|
|
14438
|
+
} = Tt(), H = Xn({
|
|
14439
|
+
id: t
|
|
14440
|
+
}), W = T || f, X = A ?? u, [U, L] = Vt({
|
|
14441
|
+
controlled: n,
|
|
14442
|
+
default: y ? o ?? Kt : o,
|
|
14443
|
+
name: "Select",
|
|
14444
|
+
state: "value"
|
|
14445
|
+
}), [$, z] = Vt({
|
|
14446
|
+
controlled: a,
|
|
14447
|
+
default: i,
|
|
14448
|
+
name: "Select",
|
|
14449
|
+
state: "open"
|
|
14450
|
+
}), _ = r.useRef([]), Y = r.useRef([]), J = r.useRef(null), Z = r.useRef(null), K = r.useRef(0), G = r.useRef(null), oe = r.useRef([]), de = r.useRef(!1), q = r.useRef(!1), se = r.useRef(null), re = r.useRef(null), me = r.useRef({
|
|
14451
|
+
allowSelectedMouseUp: !1,
|
|
14452
|
+
allowUnselectedMouseUp: !1,
|
|
14453
|
+
dragY: 0
|
|
14454
|
+
}), ae = r.useRef(!1), {
|
|
14455
|
+
mounted: ue,
|
|
14456
|
+
setMounted: Q,
|
|
14457
|
+
transitionStatus: ye
|
|
14458
|
+
} = Ut($), {
|
|
14459
|
+
openMethod: ge,
|
|
14460
|
+
triggerProps: ne
|
|
14461
|
+
} = bl($), k = At(() => new Ac({
|
|
14462
|
+
id: H,
|
|
14463
|
+
labelId: void 0,
|
|
14464
|
+
modal: m,
|
|
14465
|
+
multiple: y,
|
|
14466
|
+
itemToStringLabel: R,
|
|
14467
|
+
itemToStringValue: S,
|
|
14468
|
+
isItemEqualToValue: x,
|
|
14469
|
+
value: U,
|
|
14470
|
+
open: $,
|
|
14471
|
+
mounted: ue,
|
|
14472
|
+
transitionStatus: ye,
|
|
14473
|
+
items: E,
|
|
14474
|
+
forceMount: !1,
|
|
14475
|
+
openMethod: null,
|
|
14476
|
+
activeIndex: null,
|
|
14477
|
+
selectedIndex: null,
|
|
14478
|
+
popupProps: {},
|
|
14479
|
+
triggerProps: {},
|
|
14480
|
+
triggerElement: null,
|
|
14481
|
+
positionerElement: null,
|
|
14482
|
+
listElement: null,
|
|
14483
|
+
popupSide: null,
|
|
14484
|
+
scrollUpArrowVisible: !1,
|
|
14485
|
+
scrollDownArrowVisible: !1,
|
|
14486
|
+
hasScrollArrows: !1
|
|
14487
|
+
})).current, j = fe(k, Je.activeIndex), ee = fe(k, Je.selectedIndex), ce = fe(k, Je.triggerElement), Se = fe(k, Je.positionerElement), xe = vm(ge), Ie = ge ?? xe, De = r.useMemo(() => y && Array.isArray(U) && U.length === 0 ? "" : kn(U, S), [y, U, S]), Te = r.useMemo(() => y && Array.isArray(U) ? U.map((Fe) => kn(Fe, S)) : kn(U, S), [y, U, S]), ke = Et(k.state.triggerElement), Pe = le(() => Te);
|
|
14488
|
+
jn(ke, H, U, Pe);
|
|
14489
|
+
const Ge = r.useRef(U), je = y ? Array.isArray(U) && U.length > 0 : U != null;
|
|
14490
|
+
Ee(() => {
|
|
14491
|
+
U !== Ge.current && k.set("forceMount", !0);
|
|
14492
|
+
}, [k, U]), Ee(() => {
|
|
14493
|
+
I(je);
|
|
14494
|
+
}, [je, I]), Ee(function() {
|
|
14495
|
+
const We = oe.current;
|
|
14496
|
+
let Xe;
|
|
14497
|
+
if (y) {
|
|
14498
|
+
const it = Array.isArray(U) ? U : [];
|
|
14499
|
+
if (it.length === 0)
|
|
14500
|
+
Xe = null;
|
|
14501
|
+
else {
|
|
14502
|
+
const rt = it[it.length - 1], Dt = eo(We, rt, x);
|
|
14503
|
+
Xe = Dt === -1 ? null : Dt;
|
|
14909
14504
|
}
|
|
14505
|
+
} else {
|
|
14506
|
+
const it = eo(We, U, x);
|
|
14507
|
+
Xe = it === -1 ? null : it;
|
|
14910
14508
|
}
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
const
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14509
|
+
Xe === null && (re.current = null), !$ && k.set("selectedIndex", Xe);
|
|
14510
|
+
}, [je, y, $, U, oe, x, k, re]), un(U, () => {
|
|
14511
|
+
P(X), O(U !== F.initialValue), M() ? V.commit(U) : V.commit(U, !0);
|
|
14512
|
+
});
|
|
14513
|
+
const Ne = le((Fe, We) => {
|
|
14514
|
+
if (l?.(Fe, We), !We.isCanceled && (z(Fe), !Fe && (We.reason === yn || We.reason === lr) && (w(!0), D(!1), B === "onBlur" && V.commit(U)), !Fe && k.state.activeIndex !== null)) {
|
|
14515
|
+
const Xe = _.current[k.state.activeIndex];
|
|
14516
|
+
queueMicrotask(() => {
|
|
14517
|
+
Xe?.setAttribute("tabindex", "-1");
|
|
14518
|
+
});
|
|
14921
14519
|
}
|
|
14922
|
-
}
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
|
|
14927
|
-
return /* @__PURE__ */ te(Fu, {
|
|
14928
|
-
...t,
|
|
14929
|
-
ref: n,
|
|
14930
|
-
direction: "down"
|
|
14520
|
+
}), Ve = le(() => {
|
|
14521
|
+
Q(!1), k.update({
|
|
14522
|
+
activeIndex: null,
|
|
14523
|
+
openMethod: null
|
|
14524
|
+
}), v?.(!1);
|
|
14931
14525
|
});
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14526
|
+
Pt({
|
|
14527
|
+
enabled: !h,
|
|
14528
|
+
open: $,
|
|
14529
|
+
ref: J,
|
|
14530
|
+
onComplete() {
|
|
14531
|
+
$ || Ve();
|
|
14532
|
+
}
|
|
14533
|
+
}), r.useImperativeHandle(h, () => ({
|
|
14534
|
+
unmount: Ve
|
|
14535
|
+
}), [Ve]);
|
|
14536
|
+
const Oe = le((Fe, We) => {
|
|
14537
|
+
s?.(Fe, We), !We.isCanceled && L(Fe);
|
|
14538
|
+
}), _e = le(() => {
|
|
14539
|
+
const Fe = k.state.listElement || J.current;
|
|
14540
|
+
if (!Fe)
|
|
14541
|
+
return;
|
|
14542
|
+
const We = Fu(Fe.scrollHeight, Fe.clientHeight), Xe = sr(Fe.scrollTop, We), it = Xe > 0, rt = Xe < We;
|
|
14543
|
+
k.state.scrollUpArrowVisible !== it && k.set("scrollUpArrowVisible", it), k.state.scrollDownArrowVisible !== rt && k.set("scrollDownArrowVisible", rt);
|
|
14544
|
+
}), Le = ts({
|
|
14545
|
+
open: $,
|
|
14546
|
+
onOpenChange: Ne,
|
|
14547
|
+
elements: {
|
|
14548
|
+
reference: ce,
|
|
14549
|
+
floating: Se
|
|
14550
|
+
}
|
|
14551
|
+
}), Qe = Eo(Le, {
|
|
14552
|
+
enabled: !p && !W,
|
|
14553
|
+
event: "mousedown"
|
|
14554
|
+
}), Ze = Ro(Le), ze = Bc(Le, {
|
|
14555
|
+
enabled: !p && !W,
|
|
14556
|
+
listRef: _,
|
|
14557
|
+
activeIndex: j,
|
|
14558
|
+
selectedIndex: ee,
|
|
14559
|
+
disabledIndices: Kt,
|
|
14560
|
+
onNavigate(Fe) {
|
|
14561
|
+
Fe === null && !$ || k.set("activeIndex", Fe);
|
|
14562
|
+
},
|
|
14563
|
+
focusItemOnHover: C
|
|
14564
|
+
}), nt = Uc(Le, {
|
|
14565
|
+
enabled: !p && !W && ($ || !y),
|
|
14566
|
+
listRef: Y,
|
|
14567
|
+
activeIndex: j,
|
|
14568
|
+
selectedIndex: ee,
|
|
14569
|
+
onMatch(Fe) {
|
|
14570
|
+
$ ? k.set("activeIndex", Fe) : Oe(oe.current[Fe], Re("none"));
|
|
14571
|
+
},
|
|
14572
|
+
onTyping(Fe) {
|
|
14573
|
+
de.current = Fe;
|
|
14574
|
+
}
|
|
14575
|
+
}), ie = r.useMemo(() => {
|
|
14576
|
+
const Fe = St(nt.reference, ze.reference, Ze.reference, Qe.reference, ne);
|
|
14577
|
+
return H && (Fe.id = H), Fe;
|
|
14578
|
+
}, [Qe.reference, nt.reference, ze.reference, Ze.reference, ne, H]), he = r.useMemo(() => St(Gn, nt.floating, ze.floating, Ze.floating), [nt.floating, ze.floating, Ze.floating]), Ce = ze.item ?? ot;
|
|
14579
|
+
Ho(() => {
|
|
14580
|
+
k.update({
|
|
14581
|
+
popupProps: he,
|
|
14582
|
+
triggerProps: ie
|
|
14583
|
+
});
|
|
14584
|
+
}), Ee(() => {
|
|
14585
|
+
k.update({
|
|
14586
|
+
id: H,
|
|
14587
|
+
modal: m,
|
|
14588
|
+
multiple: y,
|
|
14589
|
+
value: U,
|
|
14590
|
+
open: $,
|
|
14591
|
+
mounted: ue,
|
|
14592
|
+
transitionStatus: ye,
|
|
14593
|
+
popupProps: he,
|
|
14594
|
+
triggerProps: ie,
|
|
14595
|
+
items: E,
|
|
14596
|
+
itemToStringLabel: R,
|
|
14597
|
+
itemToStringValue: S,
|
|
14598
|
+
isItemEqualToValue: x,
|
|
14599
|
+
openMethod: Ie
|
|
14600
|
+
});
|
|
14601
|
+
}, [k, H, m, y, U, $, ue, ye, he, ie, E, R, S, x, Ie]);
|
|
14602
|
+
const Ue = r.useMemo(() => ({
|
|
14603
|
+
store: k,
|
|
14604
|
+
name: X,
|
|
14605
|
+
required: g,
|
|
14606
|
+
disabled: W,
|
|
14607
|
+
readOnly: p,
|
|
14608
|
+
multiple: y,
|
|
14609
|
+
highlightItemOnHover: C,
|
|
14610
|
+
setValue: Oe,
|
|
14611
|
+
setOpen: Ne,
|
|
14612
|
+
listRef: _,
|
|
14613
|
+
popupRef: J,
|
|
14614
|
+
scrollHandlerRef: Z,
|
|
14615
|
+
handleScrollArrowVisibility: _e,
|
|
14616
|
+
scrollArrowsMountedCountRef: K,
|
|
14617
|
+
itemProps: Ce,
|
|
14618
|
+
events: Le.context.events,
|
|
14619
|
+
valueRef: G,
|
|
14620
|
+
valuesRef: oe,
|
|
14621
|
+
labelsRef: Y,
|
|
14622
|
+
typingRef: de,
|
|
14623
|
+
selectionRef: me,
|
|
14624
|
+
firstItemTextRef: se,
|
|
14625
|
+
selectedItemTextRef: re,
|
|
14626
|
+
validation: V,
|
|
14627
|
+
onOpenChangeComplete: v,
|
|
14628
|
+
keyboardActiveRef: q,
|
|
14629
|
+
alignItemWithTriggerActiveRef: ae,
|
|
14630
|
+
initialValueRef: Ge
|
|
14631
|
+
}), [k, X, g, W, p, y, C, Oe, Ne, Ce, Le.context.events, V, v, _e]), ve = Bt(b, V.inputRef), Ae = y && Array.isArray(U) && U.length > 0, Be = y ? void 0 : X, Ke = r.useMemo(() => !y || !Array.isArray(U) || !X ? null : U.map((Fe) => {
|
|
14632
|
+
const We = kn(Fe, S);
|
|
14633
|
+
return /* @__PURE__ */ te("input", {
|
|
14634
|
+
type: "hidden",
|
|
14635
|
+
form: c,
|
|
14636
|
+
name: X,
|
|
14637
|
+
value: We
|
|
14638
|
+
}, We);
|
|
14639
|
+
}), [y, U, c, X, S]);
|
|
14640
|
+
return /* @__PURE__ */ te(ku.Provider, {
|
|
14641
|
+
value: Ue,
|
|
14642
|
+
children: /* @__PURE__ */ ut(_u.Provider, {
|
|
14643
|
+
value: Le,
|
|
14644
|
+
children: [N, /* @__PURE__ */ te("input", {
|
|
14645
|
+
...V.getInputValidationProps({
|
|
14646
|
+
onFocus() {
|
|
14647
|
+
k.state.triggerElement?.focus({
|
|
14648
|
+
// Supported in Chrome from 144 (January 2026)
|
|
14649
|
+
focusVisible: !0
|
|
14650
|
+
});
|
|
14651
|
+
},
|
|
14652
|
+
// Handle browser autofill.
|
|
14653
|
+
onChange(Fe) {
|
|
14654
|
+
if (Fe.nativeEvent.defaultPrevented || W || p) {
|
|
14655
|
+
Fe.preventBaseUIHandler?.();
|
|
14656
|
+
return;
|
|
14657
|
+
}
|
|
14658
|
+
const We = Fe.currentTarget.value, Xe = Re(ht, Fe.nativeEvent);
|
|
14659
|
+
function it() {
|
|
14660
|
+
if (y)
|
|
14661
|
+
return;
|
|
14662
|
+
const rt = oe.current.find((Dt) => kn(Dt, S).toLowerCase() === We.toLowerCase() || Wt(Dt, R).toLowerCase() === We.toLowerCase());
|
|
14663
|
+
rt != null && (O(rt !== F.initialValue), Oe(rt, Xe), M() && V.commit(rt));
|
|
14664
|
+
}
|
|
14665
|
+
k.set("forceMount", !0), queueMicrotask(it);
|
|
14666
|
+
}
|
|
14667
|
+
}),
|
|
14668
|
+
id: H && Be == null ? `${H}-hidden-input` : void 0,
|
|
14669
|
+
form: c,
|
|
14670
|
+
name: Be,
|
|
14671
|
+
autoComplete: d,
|
|
14672
|
+
value: De,
|
|
14673
|
+
disabled: W,
|
|
14674
|
+
required: g && !Ae,
|
|
14675
|
+
readOnly: p,
|
|
14676
|
+
ref: ve,
|
|
14677
|
+
style: X ? vo : vn,
|
|
14678
|
+
tabIndex: -1,
|
|
14679
|
+
"aria-hidden": !0,
|
|
14680
|
+
suppressHydrationWarning: !0
|
|
14681
|
+
}), Ke]
|
|
14682
|
+
})
|
|
14939
14683
|
});
|
|
14940
|
-
});
|
|
14941
|
-
process.env.NODE_ENV !== "production" && (bh.displayName = "SelectScrollUpArrow");
|
|
14942
|
-
const Lu = /* @__PURE__ */ r.createContext(void 0);
|
|
14943
|
-
process.env.NODE_ENV !== "production" && (Lu.displayName = "SelectGroupContext");
|
|
14944
|
-
function RS() {
|
|
14945
|
-
const e = r.useContext(Lu);
|
|
14946
|
-
if (e === void 0)
|
|
14947
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : He(56));
|
|
14948
|
-
return e;
|
|
14949
14684
|
}
|
|
14950
|
-
const
|
|
14685
|
+
const ih = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14951
14686
|
const {
|
|
14952
14687
|
render: o,
|
|
14953
14688
|
className: s,
|
|
14954
14689
|
style: a,
|
|
14955
14690
|
...i
|
|
14956
|
-
} = t,
|
|
14957
|
-
|
|
14958
|
-
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
children: d
|
|
14969
|
-
});
|
|
14970
|
-
});
|
|
14971
|
-
process.env.NODE_ENV !== "production" && (yh.displayName = "SelectGroup");
|
|
14972
|
-
const vh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14973
|
-
const {
|
|
14974
|
-
render: o,
|
|
14975
|
-
className: s,
|
|
14976
|
-
style: a,
|
|
14977
|
-
id: i,
|
|
14978
|
-
...l
|
|
14979
|
-
} = t, {
|
|
14980
|
-
setLabelId: u
|
|
14981
|
-
} = RS(), c = st(i);
|
|
14982
|
-
return Ee(() => {
|
|
14983
|
-
u(c);
|
|
14984
|
-
}, [c, u]), pe("div", t, {
|
|
14691
|
+
} = t, l = i;
|
|
14692
|
+
delete l.id;
|
|
14693
|
+
const u = Tt(), {
|
|
14694
|
+
store: c
|
|
14695
|
+
} = xn(), d = fe(c, Je.triggerElement), f = fe(c, Je.id), p = yl(f), g = _i({
|
|
14696
|
+
id: p,
|
|
14697
|
+
fallbackControlId: d?.id ?? f,
|
|
14698
|
+
setLabelId(m) {
|
|
14699
|
+
c.set("labelId", m);
|
|
14700
|
+
}
|
|
14701
|
+
});
|
|
14702
|
+
return pe("div", t, {
|
|
14985
14703
|
ref: n,
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14704
|
+
state: u.state,
|
|
14705
|
+
props: [g, i],
|
|
14706
|
+
stateAttributesMapping: kt
|
|
14989
14707
|
});
|
|
14990
14708
|
});
|
|
14991
|
-
process.env.NODE_ENV !== "production" && (
|
|
14992
|
-
const
|
|
14993
|
-
|
|
14994
|
-
Arrow: gh,
|
|
14995
|
-
Backdrop: ih,
|
|
14996
|
-
Group: yh,
|
|
14997
|
-
GroupLabel: vh,
|
|
14998
|
-
Icon: oh,
|
|
14999
|
-
Item: dh,
|
|
15000
|
-
ItemIndicator: fh,
|
|
15001
|
-
ItemText: mh,
|
|
15002
|
-
Label: eh,
|
|
15003
|
-
List: uh,
|
|
15004
|
-
Popup: lh,
|
|
15005
|
-
Portal: sh,
|
|
15006
|
-
Positioner: ch,
|
|
15007
|
-
Root: uS,
|
|
15008
|
-
ScrollDownArrow: hh,
|
|
15009
|
-
ScrollUpArrow: bh,
|
|
15010
|
-
Separator: wo,
|
|
15011
|
-
Trigger: th,
|
|
15012
|
-
Value: nh
|
|
15013
|
-
}, Symbol.toStringTag, { value: "Module" })), Hu = /* @__PURE__ */ r.createContext(void 0);
|
|
15014
|
-
process.env.NODE_ENV !== "production" && (Hu.displayName = "SwitchRootContext");
|
|
15015
|
-
function xS() {
|
|
15016
|
-
const e = r.useContext(Hu);
|
|
15017
|
-
if (e === void 0)
|
|
15018
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." : He(63));
|
|
15019
|
-
return e;
|
|
15020
|
-
}
|
|
15021
|
-
let Df = /* @__PURE__ */ (function(e) {
|
|
15022
|
-
return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
15023
|
-
})({});
|
|
15024
|
-
const Eh = {
|
|
14709
|
+
process.env.NODE_ENV !== "production" && (ih.displayName = "SelectLabel");
|
|
14710
|
+
const _s = 2, SS = 400, CS = {
|
|
14711
|
+
...Fo,
|
|
15025
14712
|
...kt,
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
};
|
|
15032
|
-
}
|
|
15033
|
-
}, Rh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14713
|
+
popupSide: (e) => e ? {
|
|
14714
|
+
"data-popup-side": e
|
|
14715
|
+
} : null,
|
|
14716
|
+
value: () => null
|
|
14717
|
+
}, ah = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15034
14718
|
const {
|
|
15035
|
-
|
|
14719
|
+
render: o,
|
|
15036
14720
|
className: s,
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
name: d,
|
|
15043
|
-
nativeButton: f = !1,
|
|
15044
|
-
onCheckedChange: p,
|
|
15045
|
-
readOnly: g = !1,
|
|
15046
|
-
required: m = !1,
|
|
15047
|
-
disabled: h = !1,
|
|
15048
|
-
render: b,
|
|
15049
|
-
uncheckedValue: v,
|
|
15050
|
-
value: E,
|
|
15051
|
-
style: y,
|
|
15052
|
-
...R
|
|
14721
|
+
id: a,
|
|
14722
|
+
disabled: i = !1,
|
|
14723
|
+
nativeButton: l = !0,
|
|
14724
|
+
style: u,
|
|
14725
|
+
...c
|
|
15053
14726
|
} = t, {
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
validityData: P,
|
|
15060
|
-
setFilled: O,
|
|
15061
|
-
setFocused: w,
|
|
15062
|
-
shouldValidateOnChange: D,
|
|
15063
|
-
validationMode: M,
|
|
15064
|
-
disabled: F,
|
|
15065
|
-
name: I,
|
|
15066
|
-
validation: A
|
|
14727
|
+
setTouched: d,
|
|
14728
|
+
setFocused: f,
|
|
14729
|
+
validationMode: p,
|
|
14730
|
+
state: g,
|
|
14731
|
+
disabled: m
|
|
15067
14732
|
} = Tt(), {
|
|
15068
|
-
labelId:
|
|
15069
|
-
} = Ft(),
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
S(B), N(z !== P.initialValue), O(z), D() ? A.commit(z) : A.commit(z, !0);
|
|
14733
|
+
labelId: h
|
|
14734
|
+
} = Ft(), {
|
|
14735
|
+
store: b,
|
|
14736
|
+
setOpen: v,
|
|
14737
|
+
selectionRef: E,
|
|
14738
|
+
validation: y,
|
|
14739
|
+
readOnly: R,
|
|
14740
|
+
required: S,
|
|
14741
|
+
alignItemWithTriggerActiveRef: x,
|
|
14742
|
+
disabled: C,
|
|
14743
|
+
keyboardActiveRef: N
|
|
14744
|
+
} = xn(), P = m || C || i, O = fe(b, Je.open), w = fe(b, Je.mounted), D = fe(b, Je.value), M = fe(b, Je.triggerProps), F = fe(b, Je.positionerElement), I = fe(b, Je.listElement), A = fe(b, Je.popupSide), T = fe(b, Je.id), V = fe(b, Je.labelId), B = fe(b, Je.hasSelectedValue), H = w && F ? A : null, W = a ?? T, X = Ui(h, V);
|
|
14745
|
+
Xn({
|
|
14746
|
+
id: W
|
|
15083
14747
|
});
|
|
15084
|
-
const {
|
|
15085
|
-
getButtonProps:
|
|
15086
|
-
buttonRef:
|
|
14748
|
+
const U = Et(F), L = r.useRef(null), {
|
|
14749
|
+
getButtonProps: $,
|
|
14750
|
+
buttonRef: z
|
|
15087
14751
|
} = Ct({
|
|
15088
|
-
disabled:
|
|
15089
|
-
native:
|
|
15090
|
-
}),
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
|
-
|
|
15098
|
-
|
|
14752
|
+
disabled: P,
|
|
14753
|
+
native: l
|
|
14754
|
+
}), _ = le((de) => {
|
|
14755
|
+
b.set("triggerElement", de);
|
|
14756
|
+
}), Y = Bt(n, L, z, _), J = ft(), Z = ft(), K = ft();
|
|
14757
|
+
r.useEffect(() => {
|
|
14758
|
+
if (O)
|
|
14759
|
+
return K.start(SS, () => {
|
|
14760
|
+
E.current.allowUnselectedMouseUp = !0, E.current.allowSelectedMouseUp = !0;
|
|
14761
|
+
}), () => {
|
|
14762
|
+
K.clear();
|
|
14763
|
+
};
|
|
14764
|
+
E.current = {
|
|
14765
|
+
allowSelectedMouseUp: !1,
|
|
14766
|
+
allowUnselectedMouseUp: !1,
|
|
14767
|
+
dragY: 0
|
|
14768
|
+
}, Z.clear();
|
|
14769
|
+
}, [O, E, Z, K]);
|
|
14770
|
+
const G = St(M, {
|
|
14771
|
+
id: W,
|
|
14772
|
+
role: "combobox",
|
|
14773
|
+
"aria-expanded": O ? "true" : "false",
|
|
14774
|
+
"aria-haspopup": "listbox",
|
|
14775
|
+
"aria-controls": O ? I?.id ?? Qs(F)?.id : void 0,
|
|
14776
|
+
"aria-labelledby": X,
|
|
14777
|
+
"aria-readonly": R || void 0,
|
|
14778
|
+
"aria-required": S || void 0,
|
|
14779
|
+
tabIndex: P ? -1 : 0,
|
|
14780
|
+
ref: Y,
|
|
14781
|
+
onFocus(de) {
|
|
14782
|
+
f(!0), O && x.current && v(!1, Re(ht, de.nativeEvent)), J.start(0, () => {
|
|
14783
|
+
b.set("forceMount", !0);
|
|
14784
|
+
});
|
|
15099
14785
|
},
|
|
15100
|
-
onBlur() {
|
|
15101
|
-
|
|
15102
|
-
!q || V || (C(!0), w(!1), M === "onBlur" && A.commit(q.checked));
|
|
14786
|
+
onBlur(de) {
|
|
14787
|
+
Me(F, de.relatedTarget) || (d(!0), f(!1), p === "onBlur" && y.commit(D));
|
|
15103
14788
|
},
|
|
15104
|
-
|
|
15105
|
-
|
|
14789
|
+
onPointerMove() {
|
|
14790
|
+
N.current = !1;
|
|
14791
|
+
},
|
|
14792
|
+
onKeyDown() {
|
|
14793
|
+
N.current = !0;
|
|
14794
|
+
},
|
|
14795
|
+
onMouseDown(de) {
|
|
14796
|
+
if (O)
|
|
15106
14797
|
return;
|
|
15107
|
-
q.
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
bubbles: !0,
|
|
15111
|
-
shiftKey: q.shiftKey,
|
|
15112
|
-
ctrlKey: q.ctrlKey,
|
|
15113
|
-
altKey: q.altKey,
|
|
15114
|
-
metaKey: q.metaKey
|
|
15115
|
-
}));
|
|
15116
|
-
}
|
|
15117
|
-
}, G = St(
|
|
15118
|
-
{
|
|
15119
|
-
checked: z,
|
|
15120
|
-
disabled: V,
|
|
15121
|
-
form: l,
|
|
15122
|
-
id: $,
|
|
15123
|
-
name: B,
|
|
15124
|
-
required: m,
|
|
15125
|
-
style: B ? vo : vn,
|
|
15126
|
-
tabIndex: -1,
|
|
15127
|
-
type: "checkbox",
|
|
15128
|
-
"aria-hidden": !0,
|
|
15129
|
-
ref: W,
|
|
15130
|
-
onChange(q) {
|
|
15131
|
-
if (q.nativeEvent.defaultPrevented)
|
|
14798
|
+
const q = $e(de.currentTarget);
|
|
14799
|
+
function se(re) {
|
|
14800
|
+
if (!L.current)
|
|
15132
14801
|
return;
|
|
15133
|
-
|
|
15134
|
-
|
|
14802
|
+
const me = re.target;
|
|
14803
|
+
if (Me(L.current, me) || Me(U.current, me) || me === L.current)
|
|
15135
14804
|
return;
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
p?.(se, re), !re.isCanceled && _(se);
|
|
15139
|
-
},
|
|
15140
|
-
onFocus() {
|
|
15141
|
-
X.current?.focus();
|
|
14805
|
+
const ae = wl(L.current);
|
|
14806
|
+
re.clientX >= ae.left - _s && re.clientX <= ae.right + _s && re.clientY >= ae.top - _s && re.clientY <= ae.bottom + _s || v(!1, Re(Ec, re));
|
|
15142
14807
|
}
|
|
15143
|
-
|
|
15144
|
-
|
|
15145
|
-
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15150
|
-
|
|
15151
|
-
|
|
15152
|
-
|
|
15153
|
-
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
|
|
14808
|
+
Z.start(0, () => {
|
|
14809
|
+
q.addEventListener("mouseup", se, {
|
|
14810
|
+
once: !0
|
|
14811
|
+
});
|
|
14812
|
+
});
|
|
14813
|
+
}
|
|
14814
|
+
}, y.getValidationProps, c, $);
|
|
14815
|
+
G.role = "combobox";
|
|
14816
|
+
const oe = {
|
|
14817
|
+
...g,
|
|
14818
|
+
open: O,
|
|
14819
|
+
disabled: P,
|
|
14820
|
+
value: D,
|
|
14821
|
+
readOnly: R,
|
|
14822
|
+
popupSide: H,
|
|
14823
|
+
placeholder: !B
|
|
14824
|
+
};
|
|
14825
|
+
return pe("button", t, {
|
|
14826
|
+
ref: [n, L],
|
|
15157
14827
|
state: oe,
|
|
15158
|
-
|
|
15159
|
-
props:
|
|
15160
|
-
stateAttributesMapping: Eh
|
|
14828
|
+
stateAttributesMapping: CS,
|
|
14829
|
+
props: G
|
|
15161
14830
|
});
|
|
15162
|
-
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
|
|
15172
|
-
|
|
14831
|
+
});
|
|
14832
|
+
process.env.NODE_ENV !== "production" && (ah.displayName = "SelectTrigger");
|
|
14833
|
+
const wS = {
|
|
14834
|
+
value: () => null
|
|
14835
|
+
}, ch = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14836
|
+
const {
|
|
14837
|
+
className: o,
|
|
14838
|
+
render: s,
|
|
14839
|
+
children: a,
|
|
14840
|
+
placeholder: i,
|
|
14841
|
+
style: l,
|
|
14842
|
+
...u
|
|
14843
|
+
} = t, {
|
|
14844
|
+
store: c,
|
|
14845
|
+
valueRef: d
|
|
14846
|
+
} = xn(), f = fe(c, Je.value), p = fe(c, Je.items), g = fe(c, Je.itemToStringLabel), m = fe(c, Je.hasSelectedValue), h = !m && i != null && a == null, b = fe(c, Je.hasNullItemLabel, h), v = {
|
|
14847
|
+
value: f,
|
|
14848
|
+
placeholder: !m
|
|
14849
|
+
};
|
|
14850
|
+
let E = null;
|
|
14851
|
+
return typeof a == "function" ? E = a(f) : a != null ? E = a : !m && i != null && !b ? E = i : Array.isArray(f) ? E = tg(f, p, g) : E = ml(f, p, g), pe("span", t, {
|
|
14852
|
+
state: v,
|
|
14853
|
+
ref: [n, d],
|
|
14854
|
+
props: [{
|
|
14855
|
+
children: E
|
|
14856
|
+
}, u],
|
|
14857
|
+
stateAttributesMapping: wS
|
|
15173
14858
|
});
|
|
15174
14859
|
});
|
|
15175
|
-
process.env.NODE_ENV !== "production" && (
|
|
15176
|
-
const
|
|
14860
|
+
process.env.NODE_ENV !== "production" && (ch.displayName = "SelectValue");
|
|
14861
|
+
const lh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15177
14862
|
const {
|
|
15178
14863
|
render: o,
|
|
15179
14864
|
className: s,
|
|
15180
14865
|
style: a,
|
|
15181
14866
|
...i
|
|
15182
|
-
} = t,
|
|
14867
|
+
} = t, {
|
|
14868
|
+
store: l
|
|
14869
|
+
} = xn(), c = {
|
|
14870
|
+
open: fe(l, Je.open)
|
|
14871
|
+
};
|
|
15183
14872
|
return pe("span", t, {
|
|
15184
|
-
state:
|
|
14873
|
+
state: c,
|
|
15185
14874
|
ref: n,
|
|
15186
|
-
|
|
15187
|
-
|
|
14875
|
+
props: [{
|
|
14876
|
+
"aria-hidden": !0,
|
|
14877
|
+
children: "▼"
|
|
14878
|
+
}, i],
|
|
14879
|
+
stateAttributesMapping: xo
|
|
15188
14880
|
});
|
|
15189
14881
|
});
|
|
15190
|
-
process.env.NODE_ENV !== "production" && (
|
|
15191
|
-
const
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
|
|
15198
|
-
|
|
15199
|
-
|
|
15200
|
-
|
|
14882
|
+
process.env.NODE_ENV !== "production" && (lh.displayName = "SelectIcon");
|
|
14883
|
+
const uh = /* @__PURE__ */ r.createContext(void 0);
|
|
14884
|
+
process.env.NODE_ENV !== "production" && (uh.displayName = "SelectPortalContext");
|
|
14885
|
+
const dh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14886
|
+
const {
|
|
14887
|
+
store: o
|
|
14888
|
+
} = xn(), s = fe(o, Je.mounted), a = fe(o, Je.forceMount);
|
|
14889
|
+
return s || a ? /* @__PURE__ */ te(uh.Provider, {
|
|
14890
|
+
value: !0,
|
|
14891
|
+
children: /* @__PURE__ */ te($o, {
|
|
14892
|
+
ref: n,
|
|
14893
|
+
...t
|
|
14894
|
+
})
|
|
14895
|
+
}) : null;
|
|
14896
|
+
});
|
|
14897
|
+
process.env.NODE_ENV !== "production" && (dh.displayName = "SelectPortal");
|
|
14898
|
+
const PS = {
|
|
14899
|
+
...Nt,
|
|
14900
|
+
...gt
|
|
14901
|
+
}, fh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
14902
|
+
const {
|
|
14903
|
+
render: o,
|
|
14904
|
+
className: s,
|
|
14905
|
+
style: a,
|
|
14906
|
+
...i
|
|
14907
|
+
} = t, {
|
|
14908
|
+
store: l
|
|
14909
|
+
} = xn(), u = fe(l, Je.open), c = fe(l, Je.mounted), d = fe(l, Je.transitionStatus);
|
|
14910
|
+
return pe("div", t, {
|
|
14911
|
+
state: {
|
|
14912
|
+
open: u,
|
|
14913
|
+
transitionStatus: d
|
|
14914
|
+
},
|
|
14915
|
+
ref: n,
|
|
14916
|
+
props: [{
|
|
14917
|
+
role: "presentation",
|
|
14918
|
+
hidden: !c,
|
|
14919
|
+
style: {
|
|
14920
|
+
userSelect: "none",
|
|
14921
|
+
WebkitUserSelect: "none"
|
|
14922
|
+
}
|
|
14923
|
+
}, i],
|
|
14924
|
+
stateAttributesMapping: PS
|
|
14925
|
+
});
|
|
14926
|
+
});
|
|
14927
|
+
process.env.NODE_ENV !== "production" && (fh.displayName = "SelectBackdrop");
|
|
14928
|
+
const Lu = /* @__PURE__ */ r.createContext(void 0);
|
|
14929
|
+
process.env.NODE_ENV !== "production" && (Lu.displayName = "SelectPositionerContext");
|
|
14930
|
+
function ua() {
|
|
14931
|
+
const e = r.useContext(Lu);
|
|
14932
|
+
if (!e)
|
|
14933
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : He(59));
|
|
15201
14934
|
return e;
|
|
15202
14935
|
}
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
}
|
|
15206
|
-
const
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
14936
|
+
function li(e, t) {
|
|
14937
|
+
e && Object.assign(e.style, t);
|
|
14938
|
+
}
|
|
14939
|
+
const ph = {
|
|
14940
|
+
position: "relative",
|
|
14941
|
+
maxHeight: "100%",
|
|
14942
|
+
overflowX: "hidden",
|
|
14943
|
+
overflowY: "auto"
|
|
14944
|
+
}, NS = {
|
|
14945
|
+
position: "fixed"
|
|
14946
|
+
}, mh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15211
14947
|
const {
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
|
|
15240
|
-
|
|
15241
|
-
|
|
14948
|
+
anchor: o,
|
|
14949
|
+
positionMethod: s = "absolute",
|
|
14950
|
+
className: a,
|
|
14951
|
+
render: i,
|
|
14952
|
+
side: l = "bottom",
|
|
14953
|
+
align: u = "center",
|
|
14954
|
+
sideOffset: c = 0,
|
|
14955
|
+
alignOffset: d = 0,
|
|
14956
|
+
collisionBoundary: f = "clipping-ancestors",
|
|
14957
|
+
collisionPadding: p,
|
|
14958
|
+
arrowPadding: g = 5,
|
|
14959
|
+
sticky: m = !1,
|
|
14960
|
+
disableAnchorTracking: h,
|
|
14961
|
+
alignItemWithTrigger: b = !0,
|
|
14962
|
+
collisionAvoidance: v = xi,
|
|
14963
|
+
style: E,
|
|
14964
|
+
...y
|
|
14965
|
+
} = t, {
|
|
14966
|
+
store: R,
|
|
14967
|
+
listRef: S,
|
|
14968
|
+
labelsRef: x,
|
|
14969
|
+
alignItemWithTriggerActiveRef: C,
|
|
14970
|
+
selectedItemTextRef: N,
|
|
14971
|
+
valuesRef: P,
|
|
14972
|
+
initialValueRef: O,
|
|
14973
|
+
popupRef: w,
|
|
14974
|
+
setValue: D
|
|
14975
|
+
} = xn(), M = sh(), F = fe(R, Je.open), I = fe(R, Je.mounted), A = fe(R, Je.modal), T = fe(R, Je.value), V = fe(R, Je.openMethod), B = fe(R, Je.positionerElement), H = fe(R, Je.triggerElement), W = fe(R, Je.isItemEqualToValue), X = fe(R, Je.transitionStatus), U = r.useRef(null), L = r.useRef(null), [$, z] = r.useState(b), _ = I && $ && V !== "touch";
|
|
14976
|
+
!I && $ !== b && z(b), Ee(() => {
|
|
14977
|
+
I || (Je.scrollUpArrowVisible(R.state) && R.set("scrollUpArrowVisible", !1), Je.scrollDownArrowVisible(R.state) && R.set("scrollDownArrowVisible", !1));
|
|
14978
|
+
}, [R, I]), r.useImperativeHandle(C, () => _), Wi((_ || A) && F, V === "touch", B, H);
|
|
14979
|
+
const Y = So({
|
|
14980
|
+
anchor: o,
|
|
14981
|
+
floatingRootContext: M,
|
|
14982
|
+
positionMethod: s,
|
|
14983
|
+
mounted: I,
|
|
14984
|
+
side: l,
|
|
14985
|
+
sideOffset: c,
|
|
14986
|
+
align: u,
|
|
14987
|
+
alignOffset: d,
|
|
14988
|
+
arrowPadding: g,
|
|
14989
|
+
collisionBoundary: f,
|
|
14990
|
+
collisionPadding: p,
|
|
14991
|
+
sticky: m,
|
|
14992
|
+
disableAnchorTracking: h ?? _,
|
|
14993
|
+
collisionAvoidance: v,
|
|
14994
|
+
keepMounted: !0
|
|
14995
|
+
}), J = _ ? "none" : Y.side, Z = _ ? NS : Y.positionerStyles, K = {
|
|
14996
|
+
open: F,
|
|
14997
|
+
side: J,
|
|
14998
|
+
align: Y.align,
|
|
14999
|
+
anchorHidden: Y.anchorHidden
|
|
15000
|
+
};
|
|
15242
15001
|
Ee(() => {
|
|
15243
|
-
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
},
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
const
|
|
15267
|
-
|
|
15002
|
+
R.set("popupSide", Y.side);
|
|
15003
|
+
}, [R, Y.side]);
|
|
15004
|
+
const G = le((re) => {
|
|
15005
|
+
R.set("positionerElement", re);
|
|
15006
|
+
}), oe = Co(t, K, {
|
|
15007
|
+
styles: Z,
|
|
15008
|
+
transitionStatus: X,
|
|
15009
|
+
props: y,
|
|
15010
|
+
refs: [n, G],
|
|
15011
|
+
hidden: !I,
|
|
15012
|
+
inert: !F
|
|
15013
|
+
}), de = r.useRef(0), q = le((re) => {
|
|
15014
|
+
if (re.size === 0 && de.current === 0 || P.current.length === 0)
|
|
15015
|
+
return;
|
|
15016
|
+
const me = de.current;
|
|
15017
|
+
if (de.current = re.size, re.size === me)
|
|
15018
|
+
return;
|
|
15019
|
+
const ae = Re(ht);
|
|
15020
|
+
if (me !== 0 && !R.state.multiple && T !== null && eo(P.current, T, W) === -1) {
|
|
15021
|
+
const Q = O.current, ge = Q != null && eo(P.current, Q, W) !== -1 ? Q : null;
|
|
15022
|
+
D(ge, ae), ge === null && (R.set("selectedIndex", null), N.current = null);
|
|
15023
|
+
}
|
|
15024
|
+
if (me !== 0 && R.state.multiple && Array.isArray(T)) {
|
|
15025
|
+
const ue = (ye) => eo(P.current, ye, W) !== -1, Q = T.filter((ye) => ue(ye));
|
|
15026
|
+
(Q.length !== T.length || Q.some((ye) => !Qm(T, ye, W))) && (D(Q, ae), Q.length === 0 && (R.set("selectedIndex", null), N.current = null));
|
|
15027
|
+
}
|
|
15028
|
+
if (F && _) {
|
|
15029
|
+
R.update({
|
|
15030
|
+
scrollUpArrowVisible: !1,
|
|
15031
|
+
scrollDownArrowVisible: !1
|
|
15032
|
+
});
|
|
15033
|
+
const ue = {
|
|
15034
|
+
height: ""
|
|
15035
|
+
};
|
|
15036
|
+
li(B, ue), li(w.current, ue);
|
|
15037
|
+
}
|
|
15038
|
+
}), se = r.useMemo(() => ({
|
|
15039
|
+
...Y,
|
|
15040
|
+
side: J,
|
|
15041
|
+
alignItemWithTriggerActive: _,
|
|
15042
|
+
setControlledAlignItemWithTrigger: z,
|
|
15043
|
+
scrollUpArrowRef: U,
|
|
15044
|
+
scrollDownArrowRef: L
|
|
15045
|
+
}), [Y, J, _, z]);
|
|
15046
|
+
return /* @__PURE__ */ te(oo, {
|
|
15047
|
+
elementsRef: S,
|
|
15048
|
+
labelsRef: x,
|
|
15049
|
+
onMapChange: q,
|
|
15050
|
+
children: /* @__PURE__ */ ut(Lu.Provider, {
|
|
15051
|
+
value: se,
|
|
15052
|
+
children: [I && A && /* @__PURE__ */ te(hr, {
|
|
15053
|
+
inert: Kn(!F),
|
|
15054
|
+
cutout: H
|
|
15055
|
+
}), oe]
|
|
15056
|
+
})
|
|
15057
|
+
});
|
|
15058
|
+
});
|
|
15059
|
+
process.env.NODE_ENV !== "production" && (mh.displayName = "SelectPositioner");
|
|
15060
|
+
const Fs = "base-ui-disable-scrollbar", ir = {
|
|
15061
|
+
className: Fs,
|
|
15062
|
+
getElement(e) {
|
|
15063
|
+
return /* @__PURE__ */ te("style", {
|
|
15064
|
+
nonce: e,
|
|
15065
|
+
href: Fs,
|
|
15066
|
+
precedence: "base-ui:low",
|
|
15067
|
+
children: `.${Fs}{scrollbar-width:none}.${Fs}::-webkit-scrollbar{display:none}`
|
|
15268
15068
|
});
|
|
15269
|
-
}
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15069
|
+
}
|
|
15070
|
+
};
|
|
15071
|
+
process.env.NODE_ENV !== "production" && (ir.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
15072
|
+
const IS = {
|
|
15073
|
+
...Nt,
|
|
15074
|
+
...gt
|
|
15075
|
+
}, gh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15076
|
+
const {
|
|
15077
|
+
render: o,
|
|
15078
|
+
className: s,
|
|
15079
|
+
style: a,
|
|
15080
|
+
finalFocus: i,
|
|
15081
|
+
...l
|
|
15082
|
+
} = t, {
|
|
15083
|
+
store: u,
|
|
15084
|
+
popupRef: c,
|
|
15085
|
+
onOpenChangeComplete: d,
|
|
15086
|
+
setOpen: f,
|
|
15087
|
+
valueRef: p,
|
|
15088
|
+
firstItemTextRef: g,
|
|
15089
|
+
selectedItemTextRef: m,
|
|
15090
|
+
keyboardActiveRef: h,
|
|
15091
|
+
multiple: b,
|
|
15092
|
+
handleScrollArrowVisibility: v,
|
|
15093
|
+
scrollHandlerRef: E,
|
|
15094
|
+
listRef: y,
|
|
15095
|
+
highlightItemOnHover: R
|
|
15096
|
+
} = xn(), {
|
|
15097
|
+
side: S,
|
|
15098
|
+
align: x,
|
|
15099
|
+
alignItemWithTriggerActive: C,
|
|
15100
|
+
isPositioned: N,
|
|
15101
|
+
setControlledAlignItemWithTrigger: P,
|
|
15102
|
+
scrollDownArrowRef: O,
|
|
15103
|
+
scrollUpArrowRef: w
|
|
15104
|
+
} = ua(), D = so(!0) != null, M = sh(), F = jt(), {
|
|
15105
|
+
nonce: I,
|
|
15106
|
+
disableStyleElements: A
|
|
15107
|
+
} = la(), T = fe(u, Je.id), V = fe(u, Je.open), B = fe(u, Je.mounted), H = fe(u, Je.popupProps), W = fe(u, Je.transitionStatus), X = fe(u, Je.triggerElement), U = fe(u, Je.positionerElement), L = fe(u, Je.listElement), $ = r.useRef(!1), z = r.useRef(!1), _ = r.useRef({}), Y = ln(), J = le((oe) => {
|
|
15108
|
+
if (!U || !c.current || !z.current)
|
|
15109
|
+
return;
|
|
15110
|
+
if ($.current || !C) {
|
|
15111
|
+
v();
|
|
15295
15112
|
return;
|
|
15296
|
-
function _(K, G) {
|
|
15297
|
-
b(K), x((oe) => oe.previousValue === K && oe.tabActivationDirection === "none" ? oe : {
|
|
15298
|
-
previousValue: K,
|
|
15299
|
-
tabActivationDirection: "none"
|
|
15300
|
-
}), F(K, G), X.current = !1;
|
|
15301
15113
|
}
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
|
|
15305
|
-
_(null, Ud);
|
|
15114
|
+
const de = U.style.top === "0px", q = U.style.bottom === "0px";
|
|
15115
|
+
if (!de && !q) {
|
|
15116
|
+
v();
|
|
15306
15117
|
return;
|
|
15307
15118
|
}
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15119
|
+
const se = Mf(U), re = Mr(U.getBoundingClientRect().height, "y", se), me = $e(U), ae = getComputedStyle(U), ue = parseFloat(ae.marginTop), Q = parseFloat(ae.marginBottom), ye = Of(getComputedStyle(c.current)), ge = Math.min(me.documentElement.clientHeight - ue - Q, ye), ne = oe.scrollTop, k = Ls(oe);
|
|
15120
|
+
let j = 0, ee = null, ce = !1, Se = !1;
|
|
15121
|
+
const xe = (ke) => {
|
|
15122
|
+
U.style.height = `${ke}px`;
|
|
15123
|
+
}, Ie = (ke, Pe) => {
|
|
15124
|
+
const Ge = dt(ke, 0, ge - re);
|
|
15125
|
+
Ge > 0 && xe(re + Ge), oe.scrollTop = Pe, ge - (re + Ge) <= An && ($.current = !0), v();
|
|
15126
|
+
}, De = de ? k - ne : ne, Te = Math.min(re + De, ge);
|
|
15127
|
+
if (j = Te, De <= An) {
|
|
15128
|
+
Ie(De, de ? k : 0);
|
|
15311
15129
|
return;
|
|
15312
|
-
|
|
15313
|
-
if (
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15130
|
+
}
|
|
15131
|
+
if (ge - Te > An)
|
|
15132
|
+
de ? Se = !0 : ee = 0;
|
|
15133
|
+
else if (ce = !0, q && ne < k) {
|
|
15134
|
+
const ke = re + De - ge;
|
|
15135
|
+
ee = ne - (De - ke);
|
|
15136
|
+
}
|
|
15137
|
+
if (j = Math.ceil(j), j !== 0 && xe(j), Se || ee != null) {
|
|
15138
|
+
const ke = Ls(oe), Pe = Se ? ke : dt(ee, 0, ke);
|
|
15139
|
+
Math.abs(oe.scrollTop - Pe) > An && (oe.scrollTop = Pe);
|
|
15140
|
+
}
|
|
15141
|
+
(ce || j >= ge - An) && ($.current = !0), v();
|
|
15142
|
+
});
|
|
15143
|
+
r.useImperativeHandle(E, () => J, [J]), Pt({
|
|
15144
|
+
open: V,
|
|
15145
|
+
ref: c,
|
|
15146
|
+
onComplete() {
|
|
15147
|
+
V && d?.(!0);
|
|
15148
|
+
}
|
|
15149
|
+
});
|
|
15150
|
+
const Z = {
|
|
15151
|
+
open: V,
|
|
15152
|
+
transitionStatus: W,
|
|
15153
|
+
side: S,
|
|
15154
|
+
align: x
|
|
15155
|
+
};
|
|
15156
|
+
Ee(() => {
|
|
15157
|
+
!U || !c.current || Object.keys(_.current).length || (_.current = {
|
|
15158
|
+
top: U.style.top || "0",
|
|
15159
|
+
left: U.style.left || "0",
|
|
15160
|
+
right: U.style.right,
|
|
15161
|
+
height: U.style.height,
|
|
15162
|
+
bottom: U.style.bottom,
|
|
15163
|
+
minHeight: U.style.minHeight,
|
|
15164
|
+
maxHeight: U.style.maxHeight,
|
|
15165
|
+
marginTop: U.style.marginTop,
|
|
15166
|
+
marginBottom: U.style.marginBottom
|
|
15167
|
+
});
|
|
15168
|
+
}, [c, U]), Ee(() => {
|
|
15169
|
+
V || C || (z.current = !1, $.current = !1, li(U, _.current));
|
|
15170
|
+
}, [V, C, U, c]), Ee(() => {
|
|
15171
|
+
const oe = c.current;
|
|
15172
|
+
if (!V || !X || !U || !oe || C && !N || u.state.transitionStatus === "ending")
|
|
15173
|
+
return;
|
|
15174
|
+
if (!C) {
|
|
15175
|
+
z.current = !0, Y.request(v), oe.style.removeProperty("--transform-origin");
|
|
15176
|
+
return;
|
|
15177
|
+
}
|
|
15178
|
+
const de = TS(oe);
|
|
15179
|
+
oe.style.removeProperty("--transform-origin");
|
|
15180
|
+
try {
|
|
15181
|
+
let q = m.current;
|
|
15182
|
+
q?.isConnected || (q = !Je.hasSelectedValue(u.state) && g.current?.isConnected ? g.current : null);
|
|
15183
|
+
const se = p.current, re = getComputedStyle(U), me = getComputedStyle(oe), ae = $e(X), ue = bt(U), Q = Mf(X), ye = Hs(X.getBoundingClientRect(), Q), ge = Hs(U.getBoundingClientRect(), Q), ne = ye.height, k = L || oe, j = k.scrollHeight, ee = parseFloat(me.borderBottomWidth), ce = parseFloat(re.marginTop) || 10, Se = parseFloat(re.marginBottom) || 10, xe = parseFloat(re.minHeight) || 100, Ie = Of(me), De = 5, Te = 5, ke = 20, Pe = ae.documentElement.clientHeight - ce - Se, Ge = ae.documentElement.clientWidth, je = Pe - ye.bottom + ne;
|
|
15184
|
+
let Ne, Ve = F === "rtl" ? ye.right - ge.width : ye.left, Oe = 0;
|
|
15185
|
+
if (q && se) {
|
|
15186
|
+
const ve = Hs(se.getBoundingClientRect(), Q);
|
|
15187
|
+
Ne = Hs(q.getBoundingClientRect(), Q), Ve = ge.left + (F === "rtl" ? ve.right - Ne.right : ve.left - Ne.left);
|
|
15188
|
+
const Ae = ve.top - ye.top + ve.height / 2;
|
|
15189
|
+
Oe = Ne.top - ge.top + Ne.height / 2 - Ae;
|
|
15190
|
+
}
|
|
15191
|
+
const _e = je + Oe + Se + ee;
|
|
15192
|
+
let Le = Math.min(Pe, _e);
|
|
15193
|
+
const Qe = Pe - ce - Se, Ze = _e - Le, ze = Ge - Te;
|
|
15194
|
+
U.style.left = `${dt(Ve, De, ze - ge.width)}px`, U.style.height = `${Le}px`, U.style.maxHeight = "auto", U.style.marginTop = `${ce}px`, U.style.marginBottom = `${Se}px`, oe.style.height = "100%";
|
|
15195
|
+
const nt = Ls(k), ie = Ze >= nt - An;
|
|
15196
|
+
ie && (Le = Math.min(Pe, ge.height) - (Ze - nt));
|
|
15197
|
+
const he = ye.top < ke || ye.bottom > Pe - ke || Math.ceil(Le) + An < Math.min(j, xe), Ce = (ue.visualViewport?.scale ?? 1) !== 1 && cr;
|
|
15198
|
+
if (he || Ce) {
|
|
15199
|
+
z.current = !0, li(U, _.current), P(!1);
|
|
15317
15200
|
return;
|
|
15318
15201
|
}
|
|
15319
|
-
|
|
15320
|
-
|
|
15202
|
+
const Ue = Math.max(xe, Le);
|
|
15203
|
+
if (ie) {
|
|
15204
|
+
const ve = Math.max(0, Pe - _e);
|
|
15205
|
+
U.style.top = ge.height >= Qe ? "0" : `${ve}px`, U.style.height = `${Le}px`, k.scrollTop = Ls(k);
|
|
15206
|
+
} else
|
|
15207
|
+
U.style.bottom = "0", k.scrollTop = Ze;
|
|
15208
|
+
if (Ne) {
|
|
15209
|
+
const ve = ge.top, Ae = ge.height, Be = Ne.top + Ne.height / 2, Ke = Ae > 0 ? (Be - ve) / Ae * 100 : 50, Fe = dt(Ke, 0, 100);
|
|
15210
|
+
oe.style.setProperty("--transform-origin", `50% ${Fe}%`);
|
|
15211
|
+
}
|
|
15212
|
+
(Ue === Pe || Le >= Ie) && ($.current = !0), v(), R && u.state.selectedIndex === null && u.state.activeIndex === null && y.current[0] != null && u.set("activeIndex", 0), z.current = !0;
|
|
15213
|
+
} finally {
|
|
15214
|
+
de();
|
|
15215
|
+
}
|
|
15216
|
+
}, [u, V, U, X, p, g, m, c, v, C, P, Y, O, w, L, y, R, F, N]), r.useEffect(() => {
|
|
15217
|
+
if (!C || !U || !V)
|
|
15321
15218
|
return;
|
|
15219
|
+
const oe = bt(U);
|
|
15220
|
+
function de(q) {
|
|
15221
|
+
f(!1, Re(Ov, q));
|
|
15322
15222
|
}
|
|
15323
|
-
|
|
15324
|
-
}, [
|
|
15325
|
-
const
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
|
|
15223
|
+
return qe(oe, "resize", de);
|
|
15224
|
+
}, [f, C, U, V]);
|
|
15225
|
+
const K = {
|
|
15226
|
+
...L ? {
|
|
15227
|
+
role: "presentation",
|
|
15228
|
+
"aria-orientation": void 0
|
|
15229
|
+
} : {
|
|
15230
|
+
role: "listbox",
|
|
15231
|
+
"aria-multiselectable": b || void 0,
|
|
15232
|
+
id: `${T}-list`
|
|
15233
|
+
},
|
|
15234
|
+
onKeyDown(oe) {
|
|
15235
|
+
h.current = !0, D && ro.has(oe.key) && oe.stopPropagation();
|
|
15236
|
+
},
|
|
15237
|
+
onMouseMove() {
|
|
15238
|
+
h.current = !1;
|
|
15239
|
+
},
|
|
15240
|
+
onScroll(oe) {
|
|
15241
|
+
L || J(oe.currentTarget);
|
|
15242
|
+
},
|
|
15243
|
+
...C && {
|
|
15244
|
+
style: L ? {
|
|
15245
|
+
height: "100%"
|
|
15246
|
+
} : ph
|
|
15247
|
+
}
|
|
15248
|
+
}, G = pe("div", t, {
|
|
15249
|
+
ref: [n, c],
|
|
15250
|
+
state: Z,
|
|
15251
|
+
stateAttributesMapping: IS,
|
|
15252
|
+
props: [H, K, Go(W), {
|
|
15253
|
+
className: !L && C ? ir.className : void 0
|
|
15254
|
+
}, l]
|
|
15255
|
+
});
|
|
15256
|
+
return /* @__PURE__ */ ut(r.Fragment, {
|
|
15257
|
+
children: [!A && ir.getElement(I), /* @__PURE__ */ te(pr, {
|
|
15258
|
+
context: M,
|
|
15259
|
+
modal: !1,
|
|
15260
|
+
disabled: !B,
|
|
15261
|
+
returnFocus: i,
|
|
15262
|
+
restoreFocus: !0,
|
|
15263
|
+
children: G
|
|
15264
|
+
})]
|
|
15265
|
+
});
|
|
15266
|
+
});
|
|
15267
|
+
process.env.NODE_ENV !== "production" && (gh.displayName = "SelectPopup");
|
|
15268
|
+
function Of(e) {
|
|
15269
|
+
const t = e.maxHeight || "";
|
|
15270
|
+
return t.endsWith("px") && parseFloat(t) || 1 / 0;
|
|
15271
|
+
}
|
|
15272
|
+
function Ls(e) {
|
|
15273
|
+
return Fu(e.scrollHeight, e.clientHeight);
|
|
15274
|
+
}
|
|
15275
|
+
function Mf(e) {
|
|
15276
|
+
return av.getScale(e);
|
|
15277
|
+
}
|
|
15278
|
+
function Mr(e, t, n) {
|
|
15279
|
+
return e / n[t];
|
|
15280
|
+
}
|
|
15281
|
+
function Hs(e, t) {
|
|
15282
|
+
return cv({
|
|
15283
|
+
x: Mr(e.x, "x", t),
|
|
15284
|
+
y: Mr(e.y, "y", t),
|
|
15285
|
+
width: Mr(e.width, "x", t),
|
|
15286
|
+
height: Mr(e.height, "y", t)
|
|
15287
|
+
});
|
|
15288
|
+
}
|
|
15289
|
+
const Df = [["transform", "none"], ["scale", "1"], ["translate", "0 0"]];
|
|
15290
|
+
function TS(e) {
|
|
15291
|
+
const {
|
|
15292
|
+
style: t
|
|
15293
|
+
} = e, n = {};
|
|
15294
|
+
for (const [o, s] of Df)
|
|
15295
|
+
n[o] = t.getPropertyValue(o), t.setProperty(o, s, "important");
|
|
15296
|
+
return () => {
|
|
15297
|
+
for (const [o] of Df) {
|
|
15298
|
+
const s = n[o];
|
|
15299
|
+
s ? t.setProperty(o, s) : t.removeProperty(o);
|
|
15300
|
+
}
|
|
15301
|
+
};
|
|
15302
|
+
}
|
|
15303
|
+
const hh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15304
|
+
const {
|
|
15305
|
+
render: o,
|
|
15306
|
+
className: s,
|
|
15307
|
+
style: a,
|
|
15308
|
+
...i
|
|
15309
|
+
} = t, {
|
|
15310
|
+
store: l,
|
|
15311
|
+
scrollHandlerRef: u
|
|
15312
|
+
} = xn(), {
|
|
15313
|
+
alignItemWithTriggerActive: c
|
|
15314
|
+
} = ua(), d = fe(l, Je.hasScrollArrows), f = fe(l, Je.openMethod), p = fe(l, Je.multiple), m = {
|
|
15315
|
+
id: `${fe(l, Je.id)}-list`,
|
|
15316
|
+
role: "listbox",
|
|
15317
|
+
"aria-multiselectable": p || void 0,
|
|
15318
|
+
onScroll(b) {
|
|
15319
|
+
u.current?.(b.currentTarget);
|
|
15329
15320
|
},
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15321
|
+
...c && {
|
|
15322
|
+
style: ph
|
|
15323
|
+
},
|
|
15324
|
+
className: d && f !== "touch" ? ir.className : void 0
|
|
15325
|
+
}, h = le((b) => {
|
|
15326
|
+
l.set("listElement", b);
|
|
15333
15327
|
});
|
|
15334
|
-
return
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
elementsRef: p,
|
|
15338
|
-
children: z
|
|
15339
|
-
})
|
|
15328
|
+
return pe("div", t, {
|
|
15329
|
+
ref: [n, h],
|
|
15330
|
+
props: [m, i]
|
|
15340
15331
|
});
|
|
15341
15332
|
});
|
|
15342
|
-
process.env.NODE_ENV !== "production" && (
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
continue;
|
|
15350
|
-
const d = c.value ?? c.index;
|
|
15351
|
-
if (e === d && (s = u), t === d && (a = u), s != null && a != null)
|
|
15352
|
-
break;
|
|
15353
|
-
}
|
|
15354
|
-
if (s == null || a == null)
|
|
15355
|
-
return s !== a && (typeof e == "number" || typeof e == "string") && typeof e == typeof t ? n === "horizontal" ? t > e ? "right" : "left" : t > e ? "down" : "up" : "none";
|
|
15356
|
-
const i = s.getBoundingClientRect(), l = a.getBoundingClientRect();
|
|
15357
|
-
if (n === "horizontal") {
|
|
15358
|
-
if (l.left < i.left)
|
|
15359
|
-
return "left";
|
|
15360
|
-
if (l.left > i.left)
|
|
15361
|
-
return "right";
|
|
15362
|
-
} else {
|
|
15363
|
-
if (l.top < i.top)
|
|
15364
|
-
return "up";
|
|
15365
|
-
if (l.top > i.top)
|
|
15366
|
-
return "down";
|
|
15367
|
-
}
|
|
15368
|
-
return "none";
|
|
15369
|
-
}
|
|
15370
|
-
const Uu = "data-composite-item-active", $u = /* @__PURE__ */ r.createContext(void 0);
|
|
15371
|
-
process.env.NODE_ENV !== "production" && ($u.displayName = "TabsListContext");
|
|
15372
|
-
function Ch() {
|
|
15373
|
-
const e = r.useContext($u);
|
|
15374
|
-
if (e === void 0)
|
|
15375
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : He(65));
|
|
15333
|
+
process.env.NODE_ENV !== "production" && (hh.displayName = "SelectList");
|
|
15334
|
+
const Hu = /* @__PURE__ */ r.createContext(void 0);
|
|
15335
|
+
process.env.NODE_ENV !== "production" && (Hu.displayName = "SelectItemContext");
|
|
15336
|
+
function Bu() {
|
|
15337
|
+
const e = r.useContext(Hu);
|
|
15338
|
+
if (!e)
|
|
15339
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : He(57));
|
|
15376
15340
|
return e;
|
|
15377
15341
|
}
|
|
15378
|
-
const
|
|
15342
|
+
const bh = /* @__PURE__ */ r.memo(/* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15379
15343
|
const {
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
value: i,
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15344
|
+
render: o,
|
|
15345
|
+
className: s,
|
|
15346
|
+
style: a,
|
|
15347
|
+
value: i = null,
|
|
15348
|
+
label: l,
|
|
15349
|
+
disabled: u = !1,
|
|
15350
|
+
nativeButton: c = !1,
|
|
15387
15351
|
...d
|
|
15388
|
-
} = t, {
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
}
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
compositeRef: C,
|
|
15406
|
-
index: N
|
|
15407
|
-
// hook is used instead of the CompositeItem component
|
|
15408
|
-
// because the index is needed for Tab internals
|
|
15409
|
-
} = Vg({
|
|
15410
|
-
metadata: S
|
|
15411
|
-
}), P = i === f, O = r.useRef(!1), w = r.useRef(null);
|
|
15412
|
-
r.useEffect(() => {
|
|
15413
|
-
const X = w.current;
|
|
15414
|
-
if (X)
|
|
15415
|
-
return v(X);
|
|
15416
|
-
}, [v]), Ee(() => {
|
|
15417
|
-
if (O.current) {
|
|
15418
|
-
O.current = !1;
|
|
15352
|
+
} = t, f = r.useRef(null), p = Rn({
|
|
15353
|
+
label: l,
|
|
15354
|
+
textRef: f,
|
|
15355
|
+
indexGuessBehavior: Yi.GuessFromOrder
|
|
15356
|
+
}), {
|
|
15357
|
+
store: g,
|
|
15358
|
+
itemProps: m,
|
|
15359
|
+
setOpen: h,
|
|
15360
|
+
setValue: b,
|
|
15361
|
+
selectionRef: v,
|
|
15362
|
+
typingRef: E,
|
|
15363
|
+
valuesRef: y,
|
|
15364
|
+
multiple: R,
|
|
15365
|
+
selectedItemTextRef: S
|
|
15366
|
+
} = xn(), x = fe(g, Je.isActive, p.index), C = fe(g, Je.isSelected, p.index, i), N = fe(g, Je.isSelectedByFocus, p.index), P = fe(g, Je.isItemEqualToValue), O = p.index, w = O !== -1, D = r.useRef(null);
|
|
15367
|
+
Ee(() => {
|
|
15368
|
+
if (!w)
|
|
15419
15369
|
return;
|
|
15420
|
-
|
|
15421
|
-
|
|
15370
|
+
const L = y.current;
|
|
15371
|
+
return L[O] = i, () => {
|
|
15372
|
+
delete L[O];
|
|
15373
|
+
};
|
|
15374
|
+
}, [w, O, i, y]), Ee(() => {
|
|
15375
|
+
if (!w)
|
|
15422
15376
|
return;
|
|
15423
|
-
const
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15377
|
+
const L = g.state.value;
|
|
15378
|
+
let $ = L;
|
|
15379
|
+
R && Array.isArray(L) && L.length > 0 && ($ = L[L.length - 1]), $ !== void 0 && Yn(i, $, P) && (g.set("selectedIndex", O), f.current && (S.current = f.current));
|
|
15380
|
+
}, [w, O, R, P, g, i, S]);
|
|
15381
|
+
const M = r.useRef(null), F = r.useRef("mouse"), I = r.useRef(!1), {
|
|
15382
|
+
getButtonProps: A,
|
|
15383
|
+
buttonRef: T
|
|
15384
|
+
} = Ct({
|
|
15385
|
+
disabled: u,
|
|
15386
|
+
focusableWhenDisabled: !0,
|
|
15387
|
+
native: c,
|
|
15388
|
+
composite: !0
|
|
15389
|
+
}), V = {
|
|
15390
|
+
disabled: u,
|
|
15391
|
+
selected: C,
|
|
15392
|
+
highlighted: x
|
|
15393
|
+
};
|
|
15394
|
+
function B(L) {
|
|
15395
|
+
const $ = g.state.value;
|
|
15396
|
+
if (R) {
|
|
15397
|
+
const z = Array.isArray($) ? $ : [], _ = C ? Jm(z, i, P) : [...z, i];
|
|
15398
|
+
b(_, Re(ho, L));
|
|
15399
|
+
} else
|
|
15400
|
+
b(i, Re(ho, L)), h(!1, Re(ho, L));
|
|
15401
|
+
}
|
|
15402
|
+
function H() {
|
|
15403
|
+
v.current.dragY = 0;
|
|
15404
|
+
}
|
|
15405
|
+
const W = {
|
|
15406
|
+
role: "option",
|
|
15407
|
+
"aria-selected": C,
|
|
15408
|
+
tabIndex: x ? 0 : -1,
|
|
15409
|
+
onKeyDown(L) {
|
|
15410
|
+
M.current = L.key, g.set("activeIndex", O), L.key === " " && E.current && L.preventDefault();
|
|
15411
|
+
},
|
|
15412
|
+
onClick(L) {
|
|
15413
|
+
const $ = L.type === "click" && F.current !== "touch", z = L.nativeEvent.pointerType, _ = $ && yc(L.nativeEvent) && // Generic no-pointer `detail === 0` clicks stay tied to highlight state. Virtual
|
|
15414
|
+
// clicks that carry browser pointer data, including an empty string from assistive
|
|
15415
|
+
// technology, can activate unhighlighted items.
|
|
15416
|
+
(z !== void 0 || x), Y = $ && !_ && !I.current;
|
|
15417
|
+
I.current = !1, !(L.type === "keydown" && M.current === null) && (u || L.type === "keydown" && M.current === " " && E.current || Y || (M.current = null, B(L.nativeEvent)));
|
|
15418
|
+
},
|
|
15419
|
+
onPointerEnter(L) {
|
|
15420
|
+
F.current = L.pointerType;
|
|
15421
|
+
},
|
|
15422
|
+
onPointerMove(L) {
|
|
15423
|
+
if (L.pointerType === "mouse" && L.buttons === 1) {
|
|
15424
|
+
const $ = v.current;
|
|
15425
|
+
$.dragY += L.movementY, $.dragY ** 2 >= 64 && ($.allowUnselectedMouseUp = !0);
|
|
15426
|
+
}
|
|
15427
|
+
},
|
|
15428
|
+
onPointerDown(L) {
|
|
15429
|
+
F.current = L.pointerType, I.current = !0, H();
|
|
15430
|
+
},
|
|
15431
|
+
onMouseUp() {
|
|
15432
|
+
if (H(), u || F.current === "touch" || I.current)
|
|
15427
15433
|
return;
|
|
15434
|
+
const L = !v.current.allowSelectedMouseUp && C, $ = !v.current.allowUnselectedMouseUp && !C;
|
|
15435
|
+
L || $ || (I.current = !0, D.current?.click(), I.current = !1);
|
|
15428
15436
|
}
|
|
15429
|
-
|
|
15430
|
-
|
|
15437
|
+
}, X = pe("div", t, {
|
|
15438
|
+
ref: [T, n, p.ref, D],
|
|
15439
|
+
state: V,
|
|
15440
|
+
props: [m, W, d, A]
|
|
15441
|
+
}), U = r.useMemo(() => ({
|
|
15442
|
+
selected: C,
|
|
15443
|
+
index: O,
|
|
15444
|
+
textRef: f,
|
|
15445
|
+
selectedByFocus: N,
|
|
15446
|
+
hasRegistered: w
|
|
15447
|
+
}), [C, O, f, N, w]);
|
|
15448
|
+
return /* @__PURE__ */ te(Hu.Provider, {
|
|
15449
|
+
value: U,
|
|
15450
|
+
children: X
|
|
15451
|
+
});
|
|
15452
|
+
}));
|
|
15453
|
+
process.env.NODE_ENV !== "production" && (bh.displayName = "SelectItem");
|
|
15454
|
+
const yh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15455
|
+
const o = t.keepMounted ?? !1, {
|
|
15456
|
+
selected: s
|
|
15457
|
+
} = Bu();
|
|
15458
|
+
return o || s ? /* @__PURE__ */ te(vh, {
|
|
15459
|
+
...t,
|
|
15460
|
+
ref: n
|
|
15461
|
+
}) : null;
|
|
15462
|
+
});
|
|
15463
|
+
process.env.NODE_ENV !== "production" && (yh.displayName = "SelectItemIndicator");
|
|
15464
|
+
const vh = /* @__PURE__ */ r.memo(/* @__PURE__ */ r.forwardRef((e, t) => {
|
|
15465
|
+
const {
|
|
15466
|
+
render: n,
|
|
15467
|
+
className: o,
|
|
15468
|
+
style: s,
|
|
15469
|
+
keepMounted: a,
|
|
15470
|
+
...i
|
|
15471
|
+
} = e, {
|
|
15472
|
+
selected: l
|
|
15473
|
+
} = Bu(), u = r.useRef(null), {
|
|
15474
|
+
transitionStatus: c,
|
|
15475
|
+
setMounted: d
|
|
15476
|
+
} = Ut(l), p = pe("span", e, {
|
|
15477
|
+
ref: [t, u],
|
|
15478
|
+
state: {
|
|
15479
|
+
selected: l,
|
|
15480
|
+
transitionStatus: c
|
|
15481
|
+
},
|
|
15482
|
+
props: [{
|
|
15483
|
+
"aria-hidden": !0,
|
|
15484
|
+
children: "✔️"
|
|
15485
|
+
}, i],
|
|
15486
|
+
stateAttributesMapping: gt
|
|
15487
|
+
});
|
|
15488
|
+
return Pt({
|
|
15489
|
+
open: l,
|
|
15490
|
+
ref: u,
|
|
15491
|
+
onComplete() {
|
|
15492
|
+
l || d(!1);
|
|
15493
|
+
}
|
|
15494
|
+
}), p;
|
|
15495
|
+
}));
|
|
15496
|
+
process.env.NODE_ENV !== "production" && (vh.displayName = "Inner");
|
|
15497
|
+
const Eh = /* @__PURE__ */ r.memo(/* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15431
15498
|
const {
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15454
|
-
|
|
15455
|
-
|
|
15499
|
+
index: o,
|
|
15500
|
+
textRef: s,
|
|
15501
|
+
selectedByFocus: a,
|
|
15502
|
+
hasRegistered: i
|
|
15503
|
+
} = Bu(), {
|
|
15504
|
+
firstItemTextRef: l,
|
|
15505
|
+
selectedItemTextRef: u
|
|
15506
|
+
} = xn(), {
|
|
15507
|
+
render: c,
|
|
15508
|
+
className: d,
|
|
15509
|
+
style: f,
|
|
15510
|
+
...p
|
|
15511
|
+
} = t, g = r.useCallback((h) => {
|
|
15512
|
+
h && (i && o === 0 && (l.current = h), i && a && (u.current = h));
|
|
15513
|
+
}, [l, u, o, a, i]);
|
|
15514
|
+
return pe("div", t, {
|
|
15515
|
+
ref: [g, n, s],
|
|
15516
|
+
props: p
|
|
15517
|
+
});
|
|
15518
|
+
}));
|
|
15519
|
+
process.env.NODE_ENV !== "production" && (Eh.displayName = "SelectItemText");
|
|
15520
|
+
const OS = {
|
|
15521
|
+
...Nt,
|
|
15522
|
+
...gt
|
|
15523
|
+
}, Rh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15524
|
+
const {
|
|
15525
|
+
render: o,
|
|
15526
|
+
className: s,
|
|
15527
|
+
style: a,
|
|
15528
|
+
...i
|
|
15529
|
+
} = t, {
|
|
15530
|
+
store: l
|
|
15531
|
+
} = xn(), {
|
|
15532
|
+
side: u,
|
|
15533
|
+
align: c,
|
|
15534
|
+
arrowRef: d,
|
|
15535
|
+
arrowStyles: f,
|
|
15536
|
+
arrowUncentered: p,
|
|
15537
|
+
alignItemWithTriggerActive: g
|
|
15538
|
+
} = ua(), h = {
|
|
15539
|
+
open: fe(l, Je.open, !0),
|
|
15540
|
+
side: u,
|
|
15541
|
+
align: c,
|
|
15542
|
+
uncentered: p
|
|
15543
|
+
}, b = pe("div", t, {
|
|
15544
|
+
state: h,
|
|
15545
|
+
ref: [d, n],
|
|
15546
|
+
props: [{
|
|
15547
|
+
style: f,
|
|
15548
|
+
"aria-hidden": !0
|
|
15549
|
+
}, i],
|
|
15550
|
+
stateAttributesMapping: OS
|
|
15551
|
+
});
|
|
15552
|
+
return g ? null : b;
|
|
15553
|
+
});
|
|
15554
|
+
process.env.NODE_ENV !== "production" && (Rh.displayName = "SelectArrow");
|
|
15555
|
+
const Uu = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15556
|
+
const {
|
|
15557
|
+
render: o,
|
|
15558
|
+
className: s,
|
|
15559
|
+
style: a,
|
|
15560
|
+
direction: i,
|
|
15561
|
+
keepMounted: l = !1,
|
|
15562
|
+
...u
|
|
15563
|
+
} = t, c = i === "up", {
|
|
15564
|
+
store: d,
|
|
15565
|
+
popupRef: f,
|
|
15566
|
+
listRef: p,
|
|
15567
|
+
handleScrollArrowVisibility: g,
|
|
15568
|
+
scrollArrowsMountedCountRef: m
|
|
15569
|
+
} = xn(), {
|
|
15570
|
+
side: h,
|
|
15571
|
+
scrollDownArrowRef: b,
|
|
15572
|
+
scrollUpArrowRef: v
|
|
15573
|
+
} = ua(), E = c ? Je.scrollUpArrowVisible : Je.scrollDownArrowVisible, y = fe(d, E), R = fe(d, Je.openMethod), S = y && R !== "touch", x = ft(), C = c ? v : b, {
|
|
15574
|
+
transitionStatus: N,
|
|
15575
|
+
setMounted: P
|
|
15576
|
+
} = Ut(S);
|
|
15577
|
+
Ee(() => (m.current += 1, d.state.hasScrollArrows || d.set("hasScrollArrows", !0), () => {
|
|
15578
|
+
m.current = Math.max(0, m.current - 1), m.current === 0 && d.state.hasScrollArrows && d.set("hasScrollArrows", !1);
|
|
15579
|
+
}), [d, m]), Pt({
|
|
15580
|
+
open: S,
|
|
15581
|
+
ref: C,
|
|
15582
|
+
onComplete() {
|
|
15583
|
+
S || P(!1);
|
|
15456
15584
|
}
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
}
|
|
15461
|
-
return pe("button", t, {
|
|
15585
|
+
});
|
|
15586
|
+
const D = pe("div", t, {
|
|
15587
|
+
ref: [n, C],
|
|
15462
15588
|
state: {
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15589
|
+
direction: i,
|
|
15590
|
+
visible: S,
|
|
15591
|
+
side: h,
|
|
15592
|
+
transitionStatus: N
|
|
15466
15593
|
},
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
|
|
15594
|
+
props: [{
|
|
15595
|
+
"aria-hidden": !0,
|
|
15596
|
+
children: c ? "▲" : "▼",
|
|
15597
|
+
style: {
|
|
15598
|
+
position: "absolute"
|
|
15599
|
+
},
|
|
15600
|
+
onMouseMove(F) {
|
|
15601
|
+
if (F.movementX === 0 && F.movementY === 0 || x.isStarted())
|
|
15602
|
+
return;
|
|
15603
|
+
d.set("activeIndex", null);
|
|
15604
|
+
function I() {
|
|
15605
|
+
const A = d.state.listElement ?? f.current;
|
|
15606
|
+
if (!A)
|
|
15607
|
+
return;
|
|
15608
|
+
d.set("activeIndex", null), g();
|
|
15609
|
+
const T = Fu(A.scrollHeight, A.clientHeight), V = sr(A.scrollTop, T), B = V === (c ? 0 : T), H = p.current;
|
|
15610
|
+
if (V !== A.scrollTop && (A.scrollTop = V), H.length === 0 && d.set(c ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !B), B) {
|
|
15611
|
+
x.clear();
|
|
15612
|
+
return;
|
|
15613
|
+
}
|
|
15614
|
+
if (H.length > 0) {
|
|
15615
|
+
const W = C.current?.offsetHeight || 0;
|
|
15616
|
+
A.scrollTop = MS(H, c, V, A.clientHeight, W, T);
|
|
15617
|
+
}
|
|
15618
|
+
x.start(40, I);
|
|
15619
|
+
}
|
|
15620
|
+
x.start(40, I);
|
|
15621
|
+
},
|
|
15622
|
+
onMouseLeave() {
|
|
15623
|
+
x.clear();
|
|
15479
15624
|
}
|
|
15480
|
-
},
|
|
15625
|
+
}, u]
|
|
15481
15626
|
});
|
|
15627
|
+
return S || l ? D : null;
|
|
15482
15628
|
});
|
|
15483
|
-
process.env.NODE_ENV !== "production" && (
|
|
15484
|
-
function
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
return mc.useSyncExternalStore(CS, wS, PS);
|
|
15495
|
-
}
|
|
15496
|
-
const NS = '!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';
|
|
15497
|
-
let Zo = /* @__PURE__ */ (function(e) {
|
|
15498
|
-
return e.activeTabLeft = "--active-tab-left", e.activeTabRight = "--active-tab-right", e.activeTabTop = "--active-tab-top", e.activeTabBottom = "--active-tab-bottom", e.activeTabWidth = "--active-tab-width", e.activeTabHeight = "--active-tab-height", e;
|
|
15499
|
-
})({});
|
|
15500
|
-
const IS = {
|
|
15501
|
-
...ua,
|
|
15502
|
-
activeTabPosition: () => null,
|
|
15503
|
-
activeTabSize: () => null
|
|
15504
|
-
}, Ph = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15505
|
-
const {
|
|
15506
|
-
className: o,
|
|
15507
|
-
render: s,
|
|
15508
|
-
renderBeforeHydration: a = !1,
|
|
15509
|
-
style: i,
|
|
15510
|
-
...l
|
|
15511
|
-
} = t, {
|
|
15512
|
-
nonce: u
|
|
15513
|
-
} = ca(), {
|
|
15514
|
-
getTabElementBySelectedValue: c,
|
|
15515
|
-
orientation: d,
|
|
15516
|
-
tabActivationDirection: f,
|
|
15517
|
-
value: p
|
|
15518
|
-
} = la(), {
|
|
15519
|
-
tabsListElement: g,
|
|
15520
|
-
registerIndicatorUpdateListener: m
|
|
15521
|
-
} = Ch(), h = Wu(), b = im();
|
|
15522
|
-
r.useEffect(() => m(b), [m, b]);
|
|
15523
|
-
let v = 0, E = 0, y = 0, R = 0, S = 0, x = 0, C = !1;
|
|
15524
|
-
if (p != null && g != null) {
|
|
15525
|
-
const F = c(p);
|
|
15526
|
-
if (C = !0, F != null) {
|
|
15527
|
-
const {
|
|
15528
|
-
width: I,
|
|
15529
|
-
height: A
|
|
15530
|
-
} = $n(F), {
|
|
15531
|
-
width: T,
|
|
15532
|
-
height: V
|
|
15533
|
-
} = $n(g), B = F.getBoundingClientRect(), H = g.getBoundingClientRect(), W = T > 0 ? H.width / T : 1, X = V > 0 ? H.height / V : 1;
|
|
15534
|
-
if (Math.abs(W) > Number.EPSILON && Math.abs(X) > Number.EPSILON) {
|
|
15535
|
-
const L = B.left - H.left, $ = B.top - H.top;
|
|
15536
|
-
v = L / W + g.scrollLeft - g.clientLeft, y = $ / X + g.scrollTop - g.clientTop;
|
|
15537
|
-
} else
|
|
15538
|
-
v = F.offsetLeft, y = F.offsetTop;
|
|
15539
|
-
S = I, x = A, E = g.scrollWidth - v - S, R = g.scrollHeight - y - x;
|
|
15629
|
+
process.env.NODE_ENV !== "production" && (Uu.displayName = "SelectScrollArrow");
|
|
15630
|
+
function MS(e, t, n, o, s, a) {
|
|
15631
|
+
if (t) {
|
|
15632
|
+
let d = 0;
|
|
15633
|
+
const f = n + s - An;
|
|
15634
|
+
for (let m = 0; m < e.length; m += 1) {
|
|
15635
|
+
const h = e[m];
|
|
15636
|
+
if (h && h.offsetTop >= f) {
|
|
15637
|
+
d = m;
|
|
15638
|
+
break;
|
|
15639
|
+
}
|
|
15540
15640
|
}
|
|
15641
|
+
const p = Math.max(0, d - 1), g = e[p];
|
|
15642
|
+
return p < d && g ? sr(g.offsetTop - s, a) : 0;
|
|
15541
15643
|
}
|
|
15542
|
-
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
}
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15644
|
+
let i = e.length - 1;
|
|
15645
|
+
const l = n + o - s + An;
|
|
15646
|
+
for (let d = 0; d < e.length; d += 1) {
|
|
15647
|
+
const f = e[d];
|
|
15648
|
+
if (f && f.offsetTop + f.offsetHeight > l) {
|
|
15649
|
+
i = Math.max(0, d - 1);
|
|
15650
|
+
break;
|
|
15651
|
+
}
|
|
15652
|
+
}
|
|
15653
|
+
const u = Math.min(e.length - 1, i + 1), c = e[u];
|
|
15654
|
+
return u > i && c ? sr(c.offsetTop + c.offsetHeight - o + s, a) : a;
|
|
15655
|
+
}
|
|
15656
|
+
const xh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15657
|
+
return /* @__PURE__ */ te(Uu, {
|
|
15658
|
+
...t,
|
|
15659
|
+
ref: n,
|
|
15660
|
+
direction: "down"
|
|
15661
|
+
});
|
|
15662
|
+
});
|
|
15663
|
+
process.env.NODE_ENV !== "production" && (xh.displayName = "SelectScrollDownArrow");
|
|
15664
|
+
const Sh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15665
|
+
return /* @__PURE__ */ te(Uu, {
|
|
15666
|
+
...t,
|
|
15667
|
+
ref: n,
|
|
15668
|
+
direction: "up"
|
|
15669
|
+
});
|
|
15670
|
+
});
|
|
15671
|
+
process.env.NODE_ENV !== "production" && (Sh.displayName = "SelectScrollUpArrow");
|
|
15672
|
+
const $u = /* @__PURE__ */ r.createContext(void 0);
|
|
15673
|
+
process.env.NODE_ENV !== "production" && ($u.displayName = "SelectGroupContext");
|
|
15674
|
+
function DS() {
|
|
15675
|
+
const e = r.useContext($u);
|
|
15676
|
+
if (e === void 0)
|
|
15677
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : He(56));
|
|
15678
|
+
return e;
|
|
15679
|
+
}
|
|
15680
|
+
const Ch = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15681
|
+
const {
|
|
15682
|
+
render: o,
|
|
15683
|
+
className: s,
|
|
15684
|
+
style: a,
|
|
15685
|
+
...i
|
|
15686
|
+
} = t, [l, u] = r.useState(), c = r.useMemo(() => ({
|
|
15687
|
+
labelId: l,
|
|
15688
|
+
setLabelId: u
|
|
15689
|
+
}), [l, u]), d = pe("div", t, {
|
|
15564
15690
|
ref: n,
|
|
15565
15691
|
props: [{
|
|
15566
|
-
role: "
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
// do not display the indicator before the layout is settled
|
|
15570
|
-
}, l, {
|
|
15571
|
-
suppressHydrationWarning: !0
|
|
15572
|
-
}],
|
|
15573
|
-
stateAttributesMapping: IS
|
|
15692
|
+
role: "group",
|
|
15693
|
+
"aria-labelledby": l
|
|
15694
|
+
}, i]
|
|
15574
15695
|
});
|
|
15575
|
-
return
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
dangerouslySetInnerHTML: {
|
|
15579
|
-
__html: NS
|
|
15580
|
-
},
|
|
15581
|
-
suppressHydrationWarning: !0
|
|
15582
|
-
})]
|
|
15696
|
+
return /* @__PURE__ */ te($u.Provider, {
|
|
15697
|
+
value: c,
|
|
15698
|
+
children: d
|
|
15583
15699
|
});
|
|
15584
15700
|
});
|
|
15585
|
-
process.env.NODE_ENV !== "production" && (
|
|
15586
|
-
|
|
15587
|
-
return e.index = "data-index", e.activationDirection = "data-activation-direction", e.orientation = "data-orientation", e.hidden = "data-hidden", e[e.startingStyle = Tn.startingStyle] = "startingStyle", e[e.endingStyle = Tn.endingStyle] = "endingStyle", e;
|
|
15588
|
-
})({});
|
|
15589
|
-
const OS = {
|
|
15590
|
-
...ua,
|
|
15591
|
-
...gt
|
|
15592
|
-
}, Nh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15701
|
+
process.env.NODE_ENV !== "production" && (Ch.displayName = "SelectGroup");
|
|
15702
|
+
const wh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15593
15703
|
const {
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
...u
|
|
15704
|
+
render: o,
|
|
15705
|
+
className: s,
|
|
15706
|
+
style: a,
|
|
15707
|
+
id: i,
|
|
15708
|
+
...l
|
|
15600
15709
|
} = t, {
|
|
15601
|
-
|
|
15602
|
-
|
|
15603
|
-
|
|
15604
|
-
|
|
15605
|
-
|
|
15606
|
-
|
|
15607
|
-
} = la(), h = st(), b = r.useMemo(() => ({
|
|
15608
|
-
id: h,
|
|
15609
|
-
value: s
|
|
15610
|
-
}), [h, s]), {
|
|
15611
|
-
ref: v,
|
|
15612
|
-
index: E
|
|
15613
|
-
} = Rn({
|
|
15614
|
-
metadata: b
|
|
15615
|
-
}), y = s === c, {
|
|
15616
|
-
mounted: R,
|
|
15617
|
-
transitionStatus: S,
|
|
15618
|
-
setMounted: x
|
|
15619
|
-
} = Ut(y), C = !R, N = d(s), P = {
|
|
15620
|
-
hidden: C,
|
|
15621
|
-
orientation: f,
|
|
15622
|
-
tabActivationDirection: p,
|
|
15623
|
-
transitionStatus: S
|
|
15624
|
-
}, O = r.useRef(null), w = pe("div", t, {
|
|
15625
|
-
state: P,
|
|
15626
|
-
ref: [n, v, O],
|
|
15710
|
+
setLabelId: u
|
|
15711
|
+
} = DS(), c = st(i);
|
|
15712
|
+
return Ee(() => {
|
|
15713
|
+
u(c);
|
|
15714
|
+
}, [c, u]), pe("div", t, {
|
|
15715
|
+
ref: n,
|
|
15627
15716
|
props: [{
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
id: h,
|
|
15631
|
-
role: "tabpanel",
|
|
15632
|
-
tabIndex: y ? 0 : -1,
|
|
15633
|
-
inert: Kn(!y),
|
|
15634
|
-
[TS.index]: E
|
|
15635
|
-
}, u],
|
|
15636
|
-
stateAttributesMapping: OS
|
|
15717
|
+
id: c
|
|
15718
|
+
}, l]
|
|
15637
15719
|
});
|
|
15638
|
-
return Pt({
|
|
15639
|
-
open: y,
|
|
15640
|
-
ref: O,
|
|
15641
|
-
onComplete() {
|
|
15642
|
-
y || x(!1);
|
|
15643
|
-
}
|
|
15644
|
-
}), Ee(() => {
|
|
15645
|
-
if (!(C && !i) && h != null)
|
|
15646
|
-
return g(s, h), () => {
|
|
15647
|
-
m(s, h);
|
|
15648
|
-
};
|
|
15649
|
-
}, [C, i, s, h, g, m]), i || R ? w : null;
|
|
15650
15720
|
});
|
|
15651
|
-
process.env.NODE_ENV !== "production" && (
|
|
15652
|
-
const
|
|
15653
|
-
|
|
15721
|
+
process.env.NODE_ENV !== "production" && (wh.displayName = "SelectGroupLabel");
|
|
15722
|
+
const tN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15723
|
+
__proto__: null,
|
|
15724
|
+
Arrow: Rh,
|
|
15725
|
+
Backdrop: fh,
|
|
15726
|
+
Group: Ch,
|
|
15727
|
+
GroupLabel: wh,
|
|
15728
|
+
Icon: lh,
|
|
15729
|
+
Item: bh,
|
|
15730
|
+
ItemIndicator: yh,
|
|
15731
|
+
ItemText: Eh,
|
|
15732
|
+
Label: ih,
|
|
15733
|
+
List: hh,
|
|
15734
|
+
Popup: gh,
|
|
15735
|
+
Portal: dh,
|
|
15736
|
+
Positioner: mh,
|
|
15737
|
+
Root: xS,
|
|
15738
|
+
ScrollDownArrow: xh,
|
|
15739
|
+
ScrollUpArrow: Sh,
|
|
15740
|
+
Separator: wo,
|
|
15741
|
+
Trigger: ah,
|
|
15742
|
+
Value: ch
|
|
15743
|
+
}, Symbol.toStringTag, { value: "Module" })), Wu = /* @__PURE__ */ r.createContext(void 0);
|
|
15744
|
+
process.env.NODE_ENV !== "production" && (Wu.displayName = "SwitchRootContext");
|
|
15745
|
+
function VS() {
|
|
15746
|
+
const e = r.useContext(Wu);
|
|
15747
|
+
if (e === void 0)
|
|
15748
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." : He(63));
|
|
15749
|
+
return e;
|
|
15750
|
+
}
|
|
15751
|
+
let Vf = /* @__PURE__ */ (function(e) {
|
|
15752
|
+
return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
15753
|
+
})({});
|
|
15754
|
+
const Ph = {
|
|
15755
|
+
...kt,
|
|
15756
|
+
checked(e) {
|
|
15757
|
+
return e ? {
|
|
15758
|
+
[Vf.checked]: ""
|
|
15759
|
+
} : {
|
|
15760
|
+
[Vf.unchecked]: ""
|
|
15761
|
+
};
|
|
15762
|
+
}
|
|
15763
|
+
}, Nh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15654
15764
|
const {
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
|
|
15671
|
-
|
|
15672
|
-
|
|
15673
|
-
|
|
15674
|
-
|
|
15675
|
-
|
|
15676
|
-
|
|
15677
|
-
|
|
15678
|
-
|
|
15679
|
-
|
|
15680
|
-
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15686
|
-
|
|
15687
|
-
|
|
15688
|
-
|
|
15689
|
-
|
|
15690
|
-
|
|
15691
|
-
|
|
15692
|
-
|
|
15693
|
-
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
|
|
15708
|
-
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
),
|
|
15736
|
-
rtl: F
|
|
15737
|
-
})];
|
|
15738
|
-
}
|
|
15739
|
-
const U = {
|
|
15740
|
-
horizontal: [I],
|
|
15741
|
-
vertical: [fo],
|
|
15742
|
-
both: [I, fo]
|
|
15743
|
-
}[i], L = {
|
|
15744
|
-
horizontal: [T],
|
|
15745
|
-
vertical: [Ao],
|
|
15746
|
-
both: [T, Ao]
|
|
15747
|
-
}[i], $ = v ? D : {
|
|
15748
|
-
horizontal: f ? Nx : xg,
|
|
15749
|
-
vertical: f ? Ix : Sg,
|
|
15750
|
-
both: D
|
|
15751
|
-
}[i];
|
|
15752
|
-
f && (w.key === ss ? H = W : w.key === is && (H = X)), H === x && (U.includes(w.key) || L.includes(w.key)) && (o && H === X && U.includes(w.key) ? (H = W, s && (H = s(w, x, H, R))) : o && H === W && L.includes(w.key) ? (H = X, s && (H = s(w, x, H, R))) : H = Gt(R.current, {
|
|
15753
|
-
startingIndex: H,
|
|
15754
|
-
decrement: L.includes(w.key),
|
|
15755
|
-
disabledIndices: g
|
|
15756
|
-
})), H !== x && !Lr(R.current, H) && (p && w.stopPropagation(), $.has(w.key) && w.preventDefault(), C(H, !0), queueMicrotask(() => {
|
|
15757
|
-
R.current[H]?.focus();
|
|
15765
|
+
checked: o,
|
|
15766
|
+
className: s,
|
|
15767
|
+
defaultChecked: a,
|
|
15768
|
+
"aria-labelledby": i,
|
|
15769
|
+
form: l,
|
|
15770
|
+
id: u,
|
|
15771
|
+
inputRef: c,
|
|
15772
|
+
name: d,
|
|
15773
|
+
nativeButton: f = !1,
|
|
15774
|
+
onCheckedChange: p,
|
|
15775
|
+
readOnly: g = !1,
|
|
15776
|
+
required: m = !1,
|
|
15777
|
+
disabled: h = !1,
|
|
15778
|
+
render: b,
|
|
15779
|
+
uncheckedValue: v,
|
|
15780
|
+
value: E,
|
|
15781
|
+
style: y,
|
|
15782
|
+
...R
|
|
15783
|
+
} = t, {
|
|
15784
|
+
clearErrors: S
|
|
15785
|
+
} = En(), {
|
|
15786
|
+
state: x,
|
|
15787
|
+
setTouched: C,
|
|
15788
|
+
setDirty: N,
|
|
15789
|
+
validityData: P,
|
|
15790
|
+
setFilled: O,
|
|
15791
|
+
setFocused: w,
|
|
15792
|
+
shouldValidateOnChange: D,
|
|
15793
|
+
validationMode: M,
|
|
15794
|
+
disabled: F,
|
|
15795
|
+
name: I,
|
|
15796
|
+
validation: A
|
|
15797
|
+
} = Tt(), {
|
|
15798
|
+
labelId: T
|
|
15799
|
+
} = Ft(), V = F || h, B = I ?? d, H = r.useRef(null), W = Bt(H, c, A.inputRef), X = r.useRef(null), U = st(), L = Xn({
|
|
15800
|
+
id: u,
|
|
15801
|
+
implicit: !1,
|
|
15802
|
+
controlRef: X
|
|
15803
|
+
}), $ = f ? void 0 : L, [z, _] = Vt({
|
|
15804
|
+
controlled: o,
|
|
15805
|
+
default: !!a,
|
|
15806
|
+
name: "Switch",
|
|
15807
|
+
state: "checked"
|
|
15808
|
+
});
|
|
15809
|
+
jn(X, U, z), Ee(() => {
|
|
15810
|
+
H.current && O(H.current.checked);
|
|
15811
|
+
}, [H, O]), un(z, () => {
|
|
15812
|
+
S(B), N(z !== P.initialValue), O(z), D() ? A.commit(z) : A.commit(z, !0);
|
|
15813
|
+
});
|
|
15814
|
+
const {
|
|
15815
|
+
getButtonProps: Y,
|
|
15816
|
+
buttonRef: J
|
|
15817
|
+
} = Ct({
|
|
15818
|
+
disabled: V,
|
|
15819
|
+
native: f
|
|
15820
|
+
}), Z = ki(i, T, H, !f, $), K = {
|
|
15821
|
+
id: f ? L : U,
|
|
15822
|
+
role: "switch",
|
|
15823
|
+
"aria-checked": z,
|
|
15824
|
+
"aria-readonly": g || void 0,
|
|
15825
|
+
"aria-required": m || void 0,
|
|
15826
|
+
"aria-labelledby": Z,
|
|
15827
|
+
onFocus() {
|
|
15828
|
+
V || w(!0);
|
|
15829
|
+
},
|
|
15830
|
+
onBlur() {
|
|
15831
|
+
const q = H.current;
|
|
15832
|
+
!q || V || (C(!0), w(!1), M === "onBlur" && A.commit(q.checked));
|
|
15833
|
+
},
|
|
15834
|
+
onClick(q) {
|
|
15835
|
+
if (g || V)
|
|
15836
|
+
return;
|
|
15837
|
+
q.preventDefault();
|
|
15838
|
+
const se = H.current;
|
|
15839
|
+
se && se.dispatchEvent(new (bt(se)).PointerEvent("click", {
|
|
15840
|
+
bubbles: !0,
|
|
15841
|
+
shiftKey: q.shiftKey,
|
|
15842
|
+
ctrlKey: q.ctrlKey,
|
|
15843
|
+
altKey: q.altKey,
|
|
15844
|
+
metaKey: q.metaKey
|
|
15758
15845
|
}));
|
|
15759
15846
|
}
|
|
15760
|
-
}
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15765
|
-
|
|
15766
|
-
|
|
15767
|
-
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
refs: s = Kt,
|
|
15783
|
-
props: a = Kt,
|
|
15784
|
-
state: i = ot,
|
|
15785
|
-
stateAttributesMapping: l,
|
|
15786
|
-
highlightedIndex: u,
|
|
15787
|
-
onHighlightedIndexChange: c,
|
|
15788
|
-
orientation: d,
|
|
15789
|
-
dense: f,
|
|
15790
|
-
itemSizes: p,
|
|
15791
|
-
loopFocus: g,
|
|
15792
|
-
onLoop: m,
|
|
15793
|
-
cols: h,
|
|
15794
|
-
enableHomeAndEndKeys: b,
|
|
15795
|
-
onMapChange: v,
|
|
15796
|
-
stopEventPropagation: E = !0,
|
|
15797
|
-
rootRef: y,
|
|
15798
|
-
disabledIndices: R,
|
|
15799
|
-
modifierKeys: S,
|
|
15800
|
-
highlightItemOnHover: x = !1,
|
|
15801
|
-
tag: C = "div",
|
|
15802
|
-
...N
|
|
15803
|
-
} = e, P = jt(), {
|
|
15804
|
-
props: O,
|
|
15805
|
-
highlightedIndex: w,
|
|
15806
|
-
onHighlightedIndexChange: D,
|
|
15807
|
-
elementsRef: M,
|
|
15808
|
-
onMapChange: F,
|
|
15809
|
-
relayKeyboardEvent: I
|
|
15810
|
-
} = DS({
|
|
15811
|
-
itemSizes: p,
|
|
15812
|
-
cols: h,
|
|
15813
|
-
loopFocus: g,
|
|
15814
|
-
onLoop: m,
|
|
15815
|
-
dense: f,
|
|
15816
|
-
orientation: d,
|
|
15817
|
-
highlightedIndex: u,
|
|
15818
|
-
onHighlightedIndexChange: c,
|
|
15819
|
-
rootRef: y,
|
|
15820
|
-
stopEventPropagation: E,
|
|
15821
|
-
enableHomeAndEndKeys: b,
|
|
15822
|
-
direction: P,
|
|
15823
|
-
disabledIndices: R,
|
|
15824
|
-
modifierKeys: S
|
|
15825
|
-
}), A = pe(C, e, {
|
|
15826
|
-
state: i,
|
|
15827
|
-
ref: s,
|
|
15828
|
-
props: [O, ...a, N],
|
|
15829
|
-
stateAttributesMapping: l
|
|
15830
|
-
}), T = r.useMemo(() => ({
|
|
15831
|
-
highlightedIndex: w,
|
|
15832
|
-
onHighlightedIndexChange: D,
|
|
15833
|
-
highlightItemOnHover: x,
|
|
15834
|
-
relayKeyboardEvent: I
|
|
15835
|
-
}), [w, D, x, I]);
|
|
15836
|
-
return /* @__PURE__ */ te(nl.Provider, {
|
|
15837
|
-
value: T,
|
|
15838
|
-
children: /* @__PURE__ */ te(oo, {
|
|
15839
|
-
elementsRef: M,
|
|
15840
|
-
onMapChange: (V) => {
|
|
15841
|
-
v?.(V), F(V);
|
|
15847
|
+
}, G = St(
|
|
15848
|
+
{
|
|
15849
|
+
checked: z,
|
|
15850
|
+
disabled: V,
|
|
15851
|
+
form: l,
|
|
15852
|
+
id: $,
|
|
15853
|
+
name: B,
|
|
15854
|
+
required: m,
|
|
15855
|
+
style: B ? vo : vn,
|
|
15856
|
+
tabIndex: -1,
|
|
15857
|
+
type: "checkbox",
|
|
15858
|
+
"aria-hidden": !0,
|
|
15859
|
+
ref: W,
|
|
15860
|
+
onChange(q) {
|
|
15861
|
+
if (q.nativeEvent.defaultPrevented)
|
|
15862
|
+
return;
|
|
15863
|
+
if (g) {
|
|
15864
|
+
q.preventDefault();
|
|
15865
|
+
return;
|
|
15866
|
+
}
|
|
15867
|
+
const se = q.currentTarget.checked, re = Re(ht, q.nativeEvent);
|
|
15868
|
+
p?.(se, re), !re.isCanceled && _(se);
|
|
15842
15869
|
},
|
|
15843
|
-
|
|
15844
|
-
|
|
15870
|
+
onFocus() {
|
|
15871
|
+
X.current?.focus();
|
|
15872
|
+
}
|
|
15873
|
+
},
|
|
15874
|
+
A.getInputValidationProps,
|
|
15875
|
+
// React <19 sets an empty value if `undefined` is passed explicitly
|
|
15876
|
+
// To avoid this, we only set the value if it's defined
|
|
15877
|
+
E !== void 0 ? {
|
|
15878
|
+
value: E
|
|
15879
|
+
} : ot
|
|
15880
|
+
), oe = r.useMemo(() => ({
|
|
15881
|
+
...x,
|
|
15882
|
+
checked: z,
|
|
15883
|
+
disabled: V,
|
|
15884
|
+
readOnly: g,
|
|
15885
|
+
required: m
|
|
15886
|
+
}), [x, z, V, g, m]), de = pe("span", t, {
|
|
15887
|
+
state: oe,
|
|
15888
|
+
ref: [n, X, J],
|
|
15889
|
+
props: [K, A.getValidationProps, R, Y],
|
|
15890
|
+
stateAttributesMapping: Ph
|
|
15845
15891
|
});
|
|
15846
|
-
|
|
15892
|
+
return /* @__PURE__ */ ut(Wu.Provider, {
|
|
15893
|
+
value: oe,
|
|
15894
|
+
children: [de, !z && B && v !== void 0 && /* @__PURE__ */ te("input", {
|
|
15895
|
+
type: "hidden",
|
|
15896
|
+
form: l,
|
|
15897
|
+
name: B,
|
|
15898
|
+
value: v
|
|
15899
|
+
}), /* @__PURE__ */ te("input", {
|
|
15900
|
+
...G,
|
|
15901
|
+
suppressHydrationWarning: !0
|
|
15902
|
+
})]
|
|
15903
|
+
});
|
|
15904
|
+
});
|
|
15905
|
+
process.env.NODE_ENV !== "production" && (Nh.displayName = "SwitchRoot");
|
|
15847
15906
|
const Ih = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
15848
15907
|
const {
|
|
15849
|
-
|
|
15908
|
+
render: o,
|
|
15850
15909
|
className: s,
|
|
15851
|
-
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
setTabMap: p,
|
|
15860
|
-
tabActivationDirection: g
|
|
15861
|
-
} = la(), [m, h] = r.useState(0), [b, v] = r.useState(null), E = r.useRef(/* @__PURE__ */ new Set()), y = r.useRef(/* @__PURE__ */ new Set()), R = r.useRef(null);
|
|
15862
|
-
r.useEffect(() => {
|
|
15863
|
-
if (typeof ResizeObserver > "u")
|
|
15864
|
-
return;
|
|
15865
|
-
const w = new ResizeObserver(() => {
|
|
15866
|
-
E.current.forEach((D) => {
|
|
15867
|
-
D();
|
|
15868
|
-
});
|
|
15869
|
-
});
|
|
15870
|
-
return R.current = w, b && w.observe(b), y.current.forEach((D) => {
|
|
15871
|
-
w.observe(D);
|
|
15872
|
-
}), () => {
|
|
15873
|
-
w.disconnect(), R.current = null;
|
|
15874
|
-
};
|
|
15875
|
-
}, [b]);
|
|
15876
|
-
const S = le((w) => (E.current.add(w), () => {
|
|
15877
|
-
E.current.delete(w);
|
|
15878
|
-
})), x = le((w) => (y.current.add(w), R.current?.observe(w), () => {
|
|
15879
|
-
y.current.delete(w), R.current?.unobserve(w);
|
|
15880
|
-
})), C = le((w, D) => {
|
|
15881
|
-
w !== f && c(w, D);
|
|
15882
|
-
}), N = {
|
|
15883
|
-
orientation: d,
|
|
15884
|
-
tabActivationDirection: g
|
|
15885
|
-
}, P = {
|
|
15886
|
-
"aria-orientation": d === "vertical" ? "vertical" : void 0,
|
|
15887
|
-
role: "tablist"
|
|
15888
|
-
}, O = r.useMemo(() => ({
|
|
15889
|
-
activateOnFocus: o,
|
|
15890
|
-
highlightedTabIndex: m,
|
|
15891
|
-
registerIndicatorUpdateListener: S,
|
|
15892
|
-
registerTabResizeObserverElement: x,
|
|
15893
|
-
onTabActivation: C,
|
|
15894
|
-
setHighlightedTabIndex: h,
|
|
15895
|
-
tabsListElement: b
|
|
15896
|
-
}), [o, m, S, x, C, h, b]);
|
|
15897
|
-
return /* @__PURE__ */ te($u.Provider, {
|
|
15898
|
-
value: O,
|
|
15899
|
-
children: /* @__PURE__ */ te(yo, {
|
|
15900
|
-
render: i,
|
|
15901
|
-
className: s,
|
|
15902
|
-
style: l,
|
|
15903
|
-
state: N,
|
|
15904
|
-
refs: [n, v],
|
|
15905
|
-
props: [P, u],
|
|
15906
|
-
stateAttributesMapping: ua,
|
|
15907
|
-
highlightedIndex: m,
|
|
15908
|
-
enableHomeAndEndKeys: !0,
|
|
15909
|
-
loopFocus: a,
|
|
15910
|
-
orientation: d,
|
|
15911
|
-
onHighlightedIndexChange: h,
|
|
15912
|
-
onMapChange: p,
|
|
15913
|
-
disabledIndices: Kt
|
|
15914
|
-
})
|
|
15910
|
+
style: a,
|
|
15911
|
+
...i
|
|
15912
|
+
} = t, l = VS();
|
|
15913
|
+
return pe("span", t, {
|
|
15914
|
+
state: l,
|
|
15915
|
+
ref: n,
|
|
15916
|
+
stateAttributesMapping: Ph,
|
|
15917
|
+
props: i
|
|
15915
15918
|
});
|
|
15916
15919
|
});
|
|
15917
|
-
process.env.NODE_ENV !== "production" && (Ih.displayName = "
|
|
15920
|
+
process.env.NODE_ENV !== "production" && (Ih.displayName = "SwitchThumb");
|
|
15918
15921
|
const nN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15919
15922
|
__proto__: null,
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
Panel: Nh,
|
|
15923
|
-
Root: Sh,
|
|
15924
|
-
Tab: wh
|
|
15923
|
+
Root: Nh,
|
|
15924
|
+
Thumb: Ih
|
|
15925
15925
|
}, Symbol.toStringTag, { value: "Module" })), Yu = /* @__PURE__ */ r.createContext(void 0);
|
|
15926
15926
|
process.env.NODE_ENV !== "production" && (Yu.displayName = "PopoverRootContext");
|
|
15927
15927
|
function Hn(e) {
|
|
@@ -16812,7 +16812,7 @@ const Bh = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
16812
16812
|
"aria-required": U || void 0,
|
|
16813
16813
|
"aria-readonly": X || void 0,
|
|
16814
16814
|
"aria-labelledby": oe,
|
|
16815
|
-
[
|
|
16815
|
+
[Tu]: $ ? "" : void 0,
|
|
16816
16816
|
id: f ? K : Z,
|
|
16817
16817
|
onKeyDown(ne) {
|
|
16818
16818
|
ne.key === "Enter" && ne.preventDefault();
|
|
@@ -17067,7 +17067,7 @@ const fa = {
|
|
|
17067
17067
|
} = t, u = aC(a), c = st(), d = ft(), f = ft(), {
|
|
17068
17068
|
nonce: p,
|
|
17069
17069
|
disableStyleElements: g
|
|
17070
|
-
} =
|
|
17070
|
+
} = la(), [m, h] = r.useState(!1), [b, v] = r.useState(!1), [E, y] = r.useState(!1), [R, S] = r.useState(!1), [x, C] = r.useState(!1), [N, P] = r.useState(Ff), [O, w] = r.useState(Ff), [D, M] = r.useState(sC), [F, I] = r.useState(iC), A = r.useRef(null), T = r.useRef(null), V = r.useRef(null), B = r.useRef(null), H = r.useRef(null), W = r.useRef(null), X = r.useRef(null), U = r.useRef(!1), L = r.useRef(0), $ = r.useRef(0), z = r.useRef(0), _ = r.useRef(0), Y = r.useRef("vertical"), J = r.useRef(rC), Z = le((ue) => {
|
|
17071
17071
|
const Q = ue.x - J.current.x, ye = ue.y - J.current.y;
|
|
17072
17072
|
J.current = ue, ye !== 0 && (y(!0), d.start(Bs, () => {
|
|
17073
17073
|
y(!1);
|
|
@@ -18307,7 +18307,7 @@ function uN(e) {
|
|
|
18307
18307
|
nonce: n,
|
|
18308
18308
|
disableStyleElements: o
|
|
18309
18309
|
}), [n, o]);
|
|
18310
|
-
return /* @__PURE__ */ te(
|
|
18310
|
+
return /* @__PURE__ */ te(Du.Provider, {
|
|
18311
18311
|
value: s,
|
|
18312
18312
|
children: t
|
|
18313
18313
|
});
|
|
@@ -21360,7 +21360,7 @@ const $b = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
21360
21360
|
});
|
|
21361
21361
|
process.env.NODE_ENV !== "production" && ($b.displayName = "NumberFieldRoot");
|
|
21362
21362
|
function lp(e, t, n) {
|
|
21363
|
-
return n?.maximumFractionDigits != null || n?.minimumFractionDigits != null ? hn(e, t, n) :
|
|
21363
|
+
return n?.maximumFractionDigits != null || n?.minimumFractionDigits != null ? hn(e, t, n) : Qg(e, t, n);
|
|
21364
21364
|
}
|
|
21365
21365
|
const Wb = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
21366
21366
|
const {
|
|
@@ -21797,7 +21797,7 @@ const jw = {
|
|
|
21797
21797
|
const G = Z?.maximumFractionDigits != null || Z?.minimumFractionDigits != null, oe = Z?.maximumFractionDigits, de = G && typeof oe == "number" ? Number(K.toFixed(oe)) : K, q = Ht(ei, _.nativeEvent), se = O !== de, re = Y || se || J;
|
|
21798
21798
|
A === "onBlur" && W.commit(de), se && (L.current = !0, S(de, Re(ei, _.nativeEvent))), re && w(de, q);
|
|
21799
21799
|
const me = hn(de, N, Z);
|
|
21800
|
-
!(!G && K === O && h ===
|
|
21800
|
+
!(!G && K === O && h === Qg(K, N, Z)) && h !== me && C(me);
|
|
21801
21801
|
},
|
|
21802
21802
|
onChange(_) {
|
|
21803
21803
|
if (_.nativeEvent.defaultPrevented)
|
|
@@ -23071,7 +23071,7 @@ const ly = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
23071
23071
|
} = t, [m, h] = r.useState(), b = Et(o);
|
|
23072
23072
|
let v = "indeterminate";
|
|
23073
23073
|
Number.isFinite(u) && (v = u === i ? "complete" : "progressing");
|
|
23074
|
-
const E =
|
|
23074
|
+
const E = Jg(u, a, b.current), y = r.useMemo(() => ({
|
|
23075
23075
|
status: v
|
|
23076
23076
|
}), [v]), R = {
|
|
23077
23077
|
"aria-labelledby": m,
|
|
@@ -23919,7 +23919,7 @@ const Cy = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
23919
23919
|
...R
|
|
23920
23920
|
} = t, {
|
|
23921
23921
|
nonce: S
|
|
23922
|
-
} =
|
|
23922
|
+
} = la(), x = st(p), {
|
|
23923
23923
|
active: C,
|
|
23924
23924
|
lastUsedThumbIndex: N,
|
|
23925
23925
|
controlRef: P,
|
|
@@ -23957,7 +23957,7 @@ const Cy = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
23957
23957
|
index: Se
|
|
23958
23958
|
} = Rn({
|
|
23959
23959
|
metadata: ee
|
|
23960
|
-
}), xe = q ? g ?? Se : 0, Ie = xe === G.length - 1, De = G[xe], Te = Ur(De, B, V), [ke, Pe] = r.useState(), Ge =
|
|
23960
|
+
}), xe = q ? g ?? Se : 0, Ie = xe === G.length - 1, De = G[xe], Te = Ur(De, B, V), [ke, Pe] = r.useState(), Ge = Mu(), je = N >= 0 && N < G.length ? N : -1, Ne = le(() => {
|
|
23961
23961
|
const he = P.current, Ce = Q.current;
|
|
23962
23962
|
if (!he || !Ce)
|
|
23963
23963
|
return;
|
|
@@ -24154,7 +24154,7 @@ const wy = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
24154
24154
|
renderBeforeHydration: p,
|
|
24155
24155
|
state: g,
|
|
24156
24156
|
values: m
|
|
24157
|
-
} = vr(), h =
|
|
24157
|
+
} = vr(), h = Mu(), b = f === "vertical", v = m.length > 1, E = u ? OP(b, v, l[0], l[1], p, h) : MP(b, v, Ur(m[0], d, c), Ur(m[m.length - 1], d, c));
|
|
24158
24158
|
return pe("div", t, {
|
|
24159
24159
|
state: g,
|
|
24160
24160
|
ref: n,
|
|
@@ -24529,9 +24529,9 @@ export {
|
|
|
24529
24529
|
yC as B,
|
|
24530
24530
|
MR as C,
|
|
24531
24531
|
mR as D,
|
|
24532
|
-
|
|
24532
|
+
nN as E,
|
|
24533
24533
|
ow as F,
|
|
24534
|
-
|
|
24534
|
+
JP as G,
|
|
24535
24535
|
kP as H,
|
|
24536
24536
|
qR as I,
|
|
24537
24537
|
yN as J,
|
|
@@ -24553,7 +24553,7 @@ export {
|
|
|
24553
24553
|
hm as Z,
|
|
24554
24554
|
jR as _,
|
|
24555
24555
|
aN as a,
|
|
24556
|
-
|
|
24556
|
+
th as a$,
|
|
24557
24557
|
Bm as a0,
|
|
24558
24558
|
XR as a1,
|
|
24559
24559
|
Um as a2,
|
|
@@ -24588,9 +24588,9 @@ export {
|
|
|
24588
24588
|
Jc as aV,
|
|
24589
24589
|
qP as aW,
|
|
24590
24590
|
St as aX,
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24591
|
+
eh as aY,
|
|
24592
|
+
rh as aZ,
|
|
24593
|
+
oh as a_,
|
|
24594
24594
|
Il as aa,
|
|
24595
24595
|
JR as ab,
|
|
24596
24596
|
Ol as ac,
|
|
@@ -24618,16 +24618,16 @@ export {
|
|
|
24618
24618
|
ql as ay,
|
|
24619
24619
|
Jl as az,
|
|
24620
24620
|
jP as b,
|
|
24621
|
-
|
|
24622
|
-
|
|
24623
|
-
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
|
|
24628
|
-
|
|
24629
|
-
|
|
24630
|
-
|
|
24621
|
+
nh as b0,
|
|
24622
|
+
xS as b1,
|
|
24623
|
+
ah as b2,
|
|
24624
|
+
ch as b3,
|
|
24625
|
+
lh as b4,
|
|
24626
|
+
dh as b5,
|
|
24627
|
+
mh as b6,
|
|
24628
|
+
gh as b7,
|
|
24629
|
+
hh as b8,
|
|
24630
|
+
ih as b9,
|
|
24631
24631
|
Wh as bA,
|
|
24632
24632
|
zh as bB,
|
|
24633
24633
|
Yh as bC,
|
|
@@ -24636,16 +24636,16 @@ export {
|
|
|
24636
24636
|
Ym as bF,
|
|
24637
24637
|
Gm as bG,
|
|
24638
24638
|
Km as bH,
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24639
|
+
bh as ba,
|
|
24640
|
+
Eh as bb,
|
|
24641
|
+
yh as bc,
|
|
24642
|
+
Ch as bd,
|
|
24643
|
+
wh as be,
|
|
24644
|
+
Nh as bf,
|
|
24645
|
+
Gg as bg,
|
|
24646
|
+
Zg as bh,
|
|
24647
|
+
Xg as bi,
|
|
24648
|
+
jg as bj,
|
|
24649
24649
|
bm as bk,
|
|
24650
24650
|
Fh as bl,
|
|
24651
24651
|
Oh as bm,
|
|
@@ -24675,7 +24675,7 @@ export {
|
|
|
24675
24675
|
YP as m,
|
|
24676
24676
|
WP as n,
|
|
24677
24677
|
ZP as o,
|
|
24678
|
-
|
|
24678
|
+
eN as p,
|
|
24679
24679
|
fN as q,
|
|
24680
24680
|
pN as r,
|
|
24681
24681
|
mN as s,
|
|
@@ -24685,6 +24685,6 @@ export {
|
|
|
24685
24685
|
hN as w,
|
|
24686
24686
|
rN as x,
|
|
24687
24687
|
iN as y,
|
|
24688
|
-
|
|
24688
|
+
tN as z
|
|
24689
24689
|
};
|
|
24690
|
-
//# sourceMappingURL=vendor-base-ui-
|
|
24690
|
+
//# sourceMappingURL=vendor-base-ui-djdjrfuoxlb1lubi.js.map
|