@manafishrov/ui 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Locale.js.map +1 -1
- package/dist/Theme.js.map +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialog.js.map +1 -1
- package/dist/components/AspectRatio.js +1 -1
- package/dist/components/AspectRatio.js.map +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/Avatar.js.map +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Badge.js.map +1 -1
- package/dist/components/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb.js.map +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.js +1 -1
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Carousel.js +1 -1
- package/dist/components/Carousel.js.map +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/Collapsible.js.map +1 -1
- package/dist/components/Combobox.js +1 -1
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/Empty.js +1 -1
- package/dist/components/Empty.js.map +1 -1
- package/dist/components/Field.js +1 -1
- package/dist/components/Field.js.map +1 -1
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/HoverCard.js.map +1 -1
- package/dist/components/InputGroup.js +1 -1
- package/dist/components/InputGroup.js.map +1 -1
- package/dist/components/Item.js +1 -1
- package/dist/components/Item.js.map +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Kbd.js.map +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/Link.js.map +1 -1
- package/dist/components/Menu.js +1 -1
- package/dist/components/Menu.js.map +1 -1
- package/dist/components/MenuCombobox.js +1 -1
- package/dist/components/MenuCombobox.js.map +1 -1
- package/dist/components/MenuComboboxList.js +1 -1
- package/dist/components/MenuComboboxList.js.map +1 -1
- package/dist/components/NavigationMenu.js +1 -1
- package/dist/components/NavigationMenu.js.map +1 -1
- package/dist/components/NumberInput.js +1 -1
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Pagination.js.map +1 -1
- package/dist/components/PasswordInput.js +1 -1
- package/dist/components/PasswordInput.js.map +1 -1
- package/dist/components/PinInput.js +1 -1
- package/dist/components/PinInput.js.map +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/Popover.js.map +1 -1
- package/dist/components/Progress.js +1 -1
- package/dist/components/Progress.js.map +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/RadioGroup.js.map +1 -1
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/ScrollArea.js.map +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Separator.js.map +1 -1
- package/dist/components/Sheet.js +1 -1
- package/dist/components/Sheet.js.map +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Skeleton.js.map +1 -1
- package/dist/components/Slider.js +1 -1
- package/dist/components/Slider.js.map +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Spinner.js.map +1 -1
- package/dist/components/Splitter.js +1 -1
- package/dist/components/Splitter.js.map +1 -1
- package/dist/components/Swap.js +1 -1
- package/dist/components/Swap.js.map +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Switch.js.map +1 -1
- package/dist/components/Table.js +1 -1
- package/dist/components/Table.js.map +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Tabs.js.map +1 -1
- package/dist/components/TagsInput.js +1 -1
- package/dist/components/TagsInput.js.map +1 -1
- package/dist/components/TextInput.js +1 -1
- package/dist/components/TextInput.js.map +1 -1
- package/dist/components/Toggle.js +1 -1
- package/dist/components/Toggle.js.map +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/components/TreeView.js +1 -1
- package/dist/components/TreeView.js.map +1 -1
- package/dist/components/Typography.js +1 -1
- package/dist/components/Typography.js.map +1 -1
- package/dist/components/form/AutoSubmit.js.map +1 -1
- package/dist/components/form/CheckboxField.js.map +1 -1
- package/dist/components/form/ComboboxField.js.map +1 -1
- package/dist/components/form/DatePickerField.js.map +1 -1
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/NumberInputField.js.map +1 -1
- package/dist/components/form/PasswordInputField.js.map +1 -1
- package/dist/components/form/PinInputField.js.map +1 -1
- package/dist/components/form/RadioGroupField.js.map +1 -1
- package/dist/components/form/SelectField.js.map +1 -1
- package/dist/components/form/SliderField.js.map +1 -1
- package/dist/components/form/SubmitButton.js.map +1 -1
- package/dist/components/form/SwitchField.js.map +1 -1
- package/dist/components/form/TagsInputField.js.map +1 -1
- package/dist/components/form/TextInputField.js.map +1 -1
- package/dist/components/form/TextareaField.js.map +1 -1
- package/dist/components/form/WithTrailingAddon.js.map +1 -1
- package/dist/components/form/context.js.map +1 -1
- package/dist/components/marquee/Marquee.js +1 -1
- package/dist/components/marquee/Marquee.js.map +1 -1
- package/dist/components/sidebar/Sidebar.js.map +1 -1
- package/dist/components/sidebar/SidebarDesktop.js +1 -1
- package/dist/components/sidebar/SidebarDesktop.js.map +1 -1
- package/dist/components/sidebar/SidebarMenu.js +1 -1
- package/dist/components/sidebar/SidebarMenu.js.map +1 -1
- package/dist/components/sidebar/SidebarMobile.js.map +1 -1
- package/dist/components/sidebar/SidebarProvider.js +1 -1
- package/dist/components/sidebar/SidebarProvider.js.map +1 -1
- package/dist/components/sidebar/SidebarSubComponents.js +1 -1
- package/dist/components/sidebar/SidebarSubComponents.js.map +1 -1
- package/dist/components/sidebar/context.js.map +1 -1
- package/dist/components/sidebar/utils.js.map +1 -1
- package/dist/components/toaster/Toaster.js +1 -1
- package/dist/components/toaster/Toaster.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/24WXBTEA.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/262SJY3P.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/4YNGVMW2.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/5BSMJBO7.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/5J7JGW74.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/6P2AQNUE.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/6RYEOZRI.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/6WEDGJKQ.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/7IUG3E2V.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/7ZWSMUDG.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/ABFLCPUB.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/ACLCLMIV.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/AIK4SKXT.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/B4FK2JQ2.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/BRHQTJMC.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/BYLUEJKC.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/DK7UDQTF.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/EFII6TXL.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/EQKTJ63X.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/F42QOCL3.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/FDUCX4MC.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/GSOOONDM.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/GYKEGNPI.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/HDGILMRT.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/HOPBYFHD.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/HTXRJPTK.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/I3BRAHCM.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/ID6CMWIA.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/IFPK7RSD.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/JCNWK3IN.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/JFFM62IG.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/KGOB2IMX.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/KNU3M6A2.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/LXG74MYL.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/M2R7NELL.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/MGY733CD.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/MLPK6MO2.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/MPLFL3UT.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/MU5CM6ZP.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/NCE6DH5U.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/NEU4F4NG.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/OEGORBLT.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/OWH3LOUE.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/PT2CJE3O.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/Q2RBVNEH.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/T7EGRNRO.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/T7LMRH7K.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/TD72MSSI.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/TG3BV4FJ.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/TPTP4FRI.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/TZS2RB5A.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/UFYZ7HLU.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/UZJJWJQM.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/VNMGX67M.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/VQPWR4W5.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/WZBYH43M.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/XRMLYMEN.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/XVU3GCCX.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/YEENL2YA.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/YW4KS3S5.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/chunk/ZOCG4ZHL.js.map +1 -1
- package/dist/node_modules/.bun/@ark-ui_solid@5.36.2_ac9bd97bed21f560/node_modules/@ark-ui/solid/dist/components/navigation-menu/index.js.map +1 -1
- package/dist/node_modules/.bun/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -1
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/CalendarDate.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/DateFormatter.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/GregorianCalendar.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/conversion.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/manipulation.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/queries.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/string.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/utils.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_date@3.12.0/node_modules/@internationalized/date/dist/weekStartData.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_number@3.6.5/node_modules/@internationalized/number/dist/NumberFormatter.js.map +1 -1
- package/dist/node_modules/.bun/@internationalized_number@3.6.5/node_modules/@internationalized/number/dist/NumberParser.js.map +1 -1
- package/dist/node_modules/.bun/@solid-primitives_keyed@1.5.3_ac9bd97bed21f560/node_modules/@solid-primitives/keyed/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@swc_helpers@0.5.21/node_modules/@swc/helpers/esm/_check_private_redeclaration.js.map +1 -1
- package/dist/node_modules/.bun/@swc_helpers@0.5.21/node_modules/@swc/helpers/esm/_class_private_field_init.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_accordion@1.40.0/node_modules/@zag-js/accordion/dist/accordion.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_accordion@1.40.0/node_modules/@zag-js/accordion/dist/accordion.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_accordion@1.40.0/node_modules/@zag-js/accordion/dist/accordion.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_accordion@1.40.0/node_modules/@zag-js/accordion/dist/accordion.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_anatomy@1.40.0/node_modules/@zag-js/anatomy/dist/create-anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.40.0/node_modules/@zag-js/angle-slider/dist/angle-slider.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.40.0/node_modules/@zag-js/angle-slider/dist/angle-slider.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.40.0/node_modules/@zag-js/angle-slider/dist/angle-slider.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.40.0/node_modules/@zag-js/angle-slider/dist/angle-slider.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.40.0/node_modules/@zag-js/angle-slider/dist/angle-slider.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_aria-hidden@1.40.0/node_modules/@zag-js/aria-hidden/dist/aria-hidden.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_aria-hidden@1.40.0/node_modules/@zag-js/aria-hidden/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_aria-hidden@1.40.0/node_modules/@zag-js/aria-hidden/dist/walk-tree-outside.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_async-list@1.40.0/node_modules/@zag-js/async-list/dist/async-list.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_async-list@1.40.0/node_modules/@zag-js/async-list/dist/async-list.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_auto-resize@1.40.0/node_modules/@zag-js/auto-resize/dist/autoresize-input.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_auto-resize@1.40.0/node_modules/@zag-js/auto-resize/dist/autoresize-textarea.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_auto-resize@1.40.0/node_modules/@zag-js/auto-resize/dist/visual-style.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_avatar@1.40.0/node_modules/@zag-js/avatar/dist/avatar.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_avatar@1.40.0/node_modules/@zag-js/avatar/dist/avatar.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_avatar@1.40.0/node_modules/@zag-js/avatar/dist/avatar.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_avatar@1.40.0/node_modules/@zag-js/avatar/dist/avatar.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_carousel@1.40.0/node_modules/@zag-js/carousel/dist/carousel.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_carousel@1.40.0/node_modules/@zag-js/carousel/dist/carousel.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_carousel@1.40.0/node_modules/@zag-js/carousel/dist/carousel.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_carousel@1.40.0/node_modules/@zag-js/carousel/dist/carousel.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_checkbox@1.40.0/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_checkbox@1.40.0/node_modules/@zag-js/checkbox/dist/checkbox.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_checkbox@1.40.0/node_modules/@zag-js/checkbox/dist/checkbox.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_checkbox@1.40.0/node_modules/@zag-js/checkbox/dist/checkbox.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collapsible@1.40.0/node_modules/@zag-js/collapsible/dist/collapsible.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collapsible@1.40.0/node_modules/@zag-js/collapsible/dist/collapsible.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collapsible@1.40.0/node_modules/@zag-js/collapsible/dist/collapsible.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collapsible@1.40.0/node_modules/@zag-js/collapsible/dist/collapsible.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collection@1.40.0/node_modules/@zag-js/collection/dist/chunk-QZ7TP4HQ.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collection@1.40.0/node_modules/@zag-js/collection/dist/grid-collection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collection@1.40.0/node_modules/@zag-js/collection/dist/list-collection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collection@1.40.0/node_modules/@zag-js/collection/dist/selection-map.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collection@1.40.0/node_modules/@zag-js/collection/dist/tree-collection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_collection@1.40.0/node_modules/@zag-js/collection/dist/tree-visit.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_combobox@1.40.0/node_modules/@zag-js/combobox/dist/combobox.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_combobox@1.40.0/node_modules/@zag-js/combobox/dist/combobox.collection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_combobox@1.40.0/node_modules/@zag-js/combobox/dist/combobox.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_combobox@1.40.0/node_modules/@zag-js/combobox/dist/combobox.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_combobox@1.40.0/node_modules/@zag-js/combobox/dist/combobox.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_core@1.40.0/node_modules/@zag-js/core/dist/create-machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_core@1.40.0/node_modules/@zag-js/core/dist/memo.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_core@1.40.0/node_modules/@zag-js/core/dist/merge-props.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_core@1.40.0/node_modules/@zag-js/core/dist/scope.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_core@1.40.0/node_modules/@zag-js/core/dist/state.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_core@1.40.0/node_modules/@zag-js/core/dist/types.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-picker@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-picker@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-picker/dist/date-picker.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-picker@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-picker/dist/date-picker.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-picker@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-picker/dist/date-picker.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-picker@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-picker/dist/date-picker.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/align.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/assertion.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/constrain.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/date-month.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/date-year.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/duration.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/format.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/formatter.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/get-era-format.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/mutation.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/pagination.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/parse-date.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_date-utils@1.40.0_aeb2169bf4678342/node_modules/@zag-js/date-utils/dist/preset.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dialog@1.40.0/node_modules/@zag-js/dialog/dist/dialog.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dialog@1.40.0/node_modules/@zag-js/dialog/dist/dialog.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dialog@1.40.0/node_modules/@zag-js/dialog/dist/dialog.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dialog@1.40.0/node_modules/@zag-js/dialog/dist/dialog.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dismissable@1.40.0/node_modules/@zag-js/dismissable/dist/dismissable-layer.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dismissable@1.40.0/node_modules/@zag-js/dismissable/dist/escape-keydown.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dismissable@1.40.0/node_modules/@zag-js/dismissable/dist/layer-stack.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dismissable@1.40.0/node_modules/@zag-js/dismissable/dist/pointer-event-outside.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/caret.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/computed-style.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/controller.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/event.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/form.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/initial-focus.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/mutation-observer.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/navigate.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/node.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/overflow.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/platform.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/pointer-lock.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/pointer-move.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/press.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/proxy-tab-focus.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/query.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/raf.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/resize-observer.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/scale.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/searchable.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/set.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/shared.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/tabbable.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/text-selection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/typeahead.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/visually-hidden.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.40.0/node_modules/@zag-js/dom-query/dist/wait-for.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_file-utils@1.40.0/node_modules/@zag-js/file-utils/dist/download-file.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_focus-trap@1.40.0/node_modules/@zag-js/focus-trap/dist/chunk-QZ7TP4HQ.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_focus-trap@1.40.0/node_modules/@zag-js/focus-trap/dist/focus-trap.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_focus-trap@1.40.0/node_modules/@zag-js/focus-trap/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_focus-visible@1.40.0/node_modules/@zag-js/focus-visible/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_highlight-word@1.40.0/node_modules/@zag-js/highlight-word/dist/escape-regex.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_highlight-word@1.40.0/node_modules/@zag-js/highlight-word/dist/highlight-first.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_highlight-word@1.40.0/node_modules/@zag-js/highlight-word/dist/highlight-multiple.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_highlight-word@1.40.0/node_modules/@zag-js/highlight-word/dist/highlight.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_highlight-word@1.40.0/node_modules/@zag-js/highlight-word/dist/normalize-span.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_hover-card@1.40.0/node_modules/@zag-js/hover-card/dist/hover-card.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_hover-card@1.40.0/node_modules/@zag-js/hover-card/dist/hover-card.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_hover-card@1.40.0/node_modules/@zag-js/hover-card/dist/hover-card.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_hover-card@1.40.0/node_modules/@zag-js/hover-card/dist/hover-card.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_i18n-utils@1.40.0/node_modules/@zag-js/i18n-utils/dist/cache.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_i18n-utils@1.40.0/node_modules/@zag-js/i18n-utils/dist/format-bytes.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_i18n-utils@1.40.0/node_modules/@zag-js/i18n-utils/dist/format-number.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_i18n-utils@1.40.0/node_modules/@zag-js/i18n-utils/dist/format-relative-time.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_i18n-utils@1.40.0/node_modules/@zag-js/i18n-utils/dist/format-time.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_i18n-utils@1.40.0/node_modules/@zag-js/i18n-utils/dist/is-rtl.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_interact-outside@1.40.0/node_modules/@zag-js/interact-outside/dist/frame-utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_interact-outside@1.40.0/node_modules/@zag-js/interact-outside/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_json-tree-utils@1.40.0/node_modules/@zag-js/json-tree-utils/dist/accessibility.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_json-tree-utils@1.40.0/node_modules/@zag-js/json-tree-utils/dist/data-type.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_json-tree-utils@1.40.0/node_modules/@zag-js/json-tree-utils/dist/json-to-tree.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_json-tree-utils@1.40.0/node_modules/@zag-js/json-tree-utils/dist/node-conversion.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_json-tree-utils@1.40.0/node_modules/@zag-js/json-tree-utils/dist/shared.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_live-region@1.40.0/node_modules/@zag-js/live-region/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_marquee@1.40.0/node_modules/@zag-js/marquee/dist/marquee.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_marquee@1.40.0/node_modules/@zag-js/marquee/dist/marquee.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_marquee@1.40.0/node_modules/@zag-js/marquee/dist/marquee.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_marquee@1.40.0/node_modules/@zag-js/marquee/dist/marquee.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_marquee@1.40.0/node_modules/@zag-js/marquee/dist/marquee.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.40.0/node_modules/@zag-js/menu/dist/menu.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.40.0/node_modules/@zag-js/menu/dist/menu.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.40.0/node_modules/@zag-js/menu/dist/menu.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.40.0/node_modules/@zag-js/menu/dist/menu.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.40.0/node_modules/@zag-js/menu/dist/menu.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.40.0/node_modules/@zag-js/navigation-menu/dist/navigation-menu.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.40.0/node_modules/@zag-js/navigation-menu/dist/navigation-menu.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.40.0/node_modules/@zag-js/navigation-menu/dist/navigation-menu.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.40.0/node_modules/@zag-js/navigation-menu/dist/navigation-menu.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.40.0/node_modules/@zag-js/navigation-menu/dist/navigation-menu.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.40.0/node_modules/@zag-js/number-input/dist/cursor.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.40.0/node_modules/@zag-js/number-input/dist/number-input.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.40.0/node_modules/@zag-js/number-input/dist/number-input.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.40.0/node_modules/@zag-js/number-input/dist/number-input.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.40.0/node_modules/@zag-js/number-input/dist/number-input.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.40.0/node_modules/@zag-js/number-input/dist/number-input.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pagination@1.40.0/node_modules/@zag-js/pagination/dist/pagination.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pagination@1.40.0/node_modules/@zag-js/pagination/dist/pagination.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pagination@1.40.0/node_modules/@zag-js/pagination/dist/pagination.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pagination@1.40.0/node_modules/@zag-js/pagination/dist/pagination.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pagination@1.40.0/node_modules/@zag-js/pagination/dist/pagination.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_password-input@1.40.0/node_modules/@zag-js/password-input/dist/password-input.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_password-input@1.40.0/node_modules/@zag-js/password-input/dist/password-input.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_password-input@1.40.0/node_modules/@zag-js/password-input/dist/password-input.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_password-input@1.40.0/node_modules/@zag-js/password-input/dist/password-input.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pin-input@1.40.0/node_modules/@zag-js/pin-input/dist/pin-input.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pin-input@1.40.0/node_modules/@zag-js/pin-input/dist/pin-input.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pin-input@1.40.0/node_modules/@zag-js/pin-input/dist/pin-input.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pin-input@1.40.0/node_modules/@zag-js/pin-input/dist/pin-input.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_pin-input@1.40.0/node_modules/@zag-js/pin-input/dist/pin-input.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popover@1.40.0/node_modules/@zag-js/popover/dist/popover.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popover@1.40.0/node_modules/@zag-js/popover/dist/popover.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popover@1.40.0/node_modules/@zag-js/popover/dist/popover.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popover@1.40.0/node_modules/@zag-js/popover/dist/popover.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popper@1.40.0/node_modules/@zag-js/popper/dist/get-anchor.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popper@1.40.0/node_modules/@zag-js/popper/dist/get-placement.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popper@1.40.0/node_modules/@zag-js/popper/dist/get-styles.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popper@1.40.0/node_modules/@zag-js/popper/dist/middleware.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_popper@1.40.0/node_modules/@zag-js/popper/dist/placement.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_presence@1.40.0/node_modules/@zag-js/presence/dist/presence.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_presence@1.40.0/node_modules/@zag-js/presence/dist/presence.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_progress@1.40.0/node_modules/@zag-js/progress/dist/progress.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_progress@1.40.0/node_modules/@zag-js/progress/dist/progress.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_progress@1.40.0/node_modules/@zag-js/progress/dist/progress.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_radio-group@1.40.0/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_radio-group@1.40.0/node_modules/@zag-js/radio-group/dist/radio-group.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_radio-group@1.40.0/node_modules/@zag-js/radio-group/dist/radio-group.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_radio-group@1.40.0/node_modules/@zag-js/radio-group/dist/radio-group.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_rect-utils@1.40.0/node_modules/@zag-js/rect-utils/dist/angle.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_rect-utils@1.40.0/node_modules/@zag-js/rect-utils/dist/polygon.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_rect-utils@1.40.0/node_modules/@zag-js/rect-utils/dist/rect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_remove-scroll@1.40.0/node_modules/@zag-js/remove-scroll/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/chunk-QZ7TP4HQ.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/scroll-area.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/scroll-area.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/scroll-area.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/scroll-area.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/scroll-offset.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/scroll-progress.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/scroll-sides.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/scroll-to-edge.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/scroll-to.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/smooth-scroll.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-area@1.40.0/node_modules/@zag-js/scroll-area/dist/utils/timeout.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_scroll-snap@1.40.0/node_modules/@zag-js/scroll-snap/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.40.0/node_modules/@zag-js/select/dist/select.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.40.0/node_modules/@zag-js/select/dist/select.collection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.40.0/node_modules/@zag-js/select/dist/select.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.40.0/node_modules/@zag-js/select/dist/select.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.40.0/node_modules/@zag-js/select/dist/select.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_slider@1.40.0/node_modules/@zag-js/slider/dist/slider.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_slider@1.40.0/node_modules/@zag-js/slider/dist/slider.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_slider@1.40.0/node_modules/@zag-js/slider/dist/slider.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_slider@1.40.0/node_modules/@zag-js/slider/dist/slider.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_slider@1.40.0/node_modules/@zag-js/slider/dist/slider.style.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_slider@1.40.0/node_modules/@zag-js/slider/dist/slider.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_solid@1.40.0_ac9bd97bed21f560/node_modules/@zag-js/solid/dist/bindable.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_solid@1.40.0_ac9bd97bed21f560/node_modules/@zag-js/solid/dist/machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_solid@1.40.0_ac9bd97bed21f560/node_modules/@zag-js/solid/dist/merge-props.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_solid@1.40.0_ac9bd97bed21f560/node_modules/@zag-js/solid/dist/normalize-props.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_solid@1.40.0_ac9bd97bed21f560/node_modules/@zag-js/solid/dist/refs.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_solid@1.40.0_ac9bd97bed21f560/node_modules/@zag-js/solid/dist/track.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/chunk-QZ7TP4HQ.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/aria.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/fuzzy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/intersects.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/panel.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/registry.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/resize-by-delta.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/resize-panel.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/stacking-order.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/validate-sizes.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_switch@1.40.0/node_modules/@zag-js/switch/dist/switch.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_switch@1.40.0/node_modules/@zag-js/switch/dist/switch.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_switch@1.40.0/node_modules/@zag-js/switch/dist/switch.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_switch@1.40.0/node_modules/@zag-js/switch/dist/switch.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tabs@1.40.0/node_modules/@zag-js/tabs/dist/tabs.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tabs@1.40.0/node_modules/@zag-js/tabs/dist/tabs.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tabs@1.40.0/node_modules/@zag-js/tabs/dist/tabs.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tabs@1.40.0/node_modules/@zag-js/tabs/dist/tabs.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tags-input@1.40.0/node_modules/@zag-js/tags-input/dist/tags-input.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tags-input@1.40.0/node_modules/@zag-js/tags-input/dist/tags-input.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tags-input@1.40.0/node_modules/@zag-js/tags-input/dist/tags-input.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tags-input@1.40.0/node_modules/@zag-js/tags-input/dist/tags-input.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast-group.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast-group.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast.store.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toast@1.40.0/node_modules/@zag-js/toast/dist/toast.utils.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle-group@1.40.0/node_modules/@zag-js/toggle-group/dist/toggle-group.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle-group@1.40.0/node_modules/@zag-js/toggle-group/dist/toggle-group.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle-group@1.40.0/node_modules/@zag-js/toggle-group/dist/toggle-group.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle-group@1.40.0/node_modules/@zag-js/toggle-group/dist/toggle-group.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle@1.40.0/node_modules/@zag-js/toggle/dist/toggle.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle@1.40.0/node_modules/@zag-js/toggle/dist/toggle.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_toggle@1.40.0/node_modules/@zag-js/toggle/dist/toggle.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tooltip@1.40.0/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tooltip@1.40.0/node_modules/@zag-js/tooltip/dist/tooltip.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tooltip@1.40.0/node_modules/@zag-js/tooltip/dist/tooltip.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tooltip@1.40.0/node_modules/@zag-js/tooltip/dist/tooltip.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tooltip@1.40.0/node_modules/@zag-js/tooltip/dist/tooltip.store.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/tree-view.anatomy.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/tree-view.collection.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/tree-view.connect.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/tree-view.dom.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/tree-view.machine.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/utils/checked-state.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/utils/expand-branch.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_tree-view@1.40.0/node_modules/@zag-js/tree-view/dist/utils/visit-skip.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_types@1.40.0/node_modules/@zag-js/types/dist/prop-types.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/array.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/chunk-MXGZDBDQ.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/equal.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/functions.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/guard.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/number.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/object.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/store.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/timers.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_utils@1.40.0/node_modules/@zag-js/utils/dist/warning.js.map +1 -1
- package/dist/node_modules/.bun/{tailwind-merge@3.5.0 → tailwind-merge@3.6.0}/node_modules/tailwind-merge/dist/bundle-mjs.js +353 -311
- package/dist/node_modules/.bun/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/node_modules/.bun/{tailwind-variants@3.2.2_2349c4e1b625a44d → tailwind-variants@3.2.2_8d1ea3a475e79781}/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +1 -1
- package/dist/node_modules/.bun/{tailwind-variants@3.2.2_2349c4e1b625a44d → tailwind-variants@3.2.2_8d1ea3a475e79781}/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js.map +1 -1
- package/dist/node_modules/.bun/{tailwind-variants@3.2.2_2349c4e1b625a44d → tailwind-variants@3.2.2_8d1ea3a475e79781}/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +1 -1
- package/dist/node_modules/.bun/{tailwind-variants@3.2.2_2349c4e1b625a44d → tailwind-variants@3.2.2_8d1ea3a475e79781}/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js.map +1 -1
- package/dist/node_modules/.bun/{tailwind-variants@3.2.2_2349c4e1b625a44d → tailwind-variants@3.2.2_8d1ea3a475e79781}/node_modules/tailwind-variants/dist/index.js +2 -2
- package/dist/node_modules/.bun/{tailwind-variants@3.2.2_2349c4e1b625a44d → tailwind-variants@3.2.2_8d1ea3a475e79781}/node_modules/tailwind-variants/dist/index.js.map +1 -1
- package/dist/paraglide/messages/ui_breadcrumb_label.js.map +1 -1
- package/dist/paraglide/messages/ui_carousel_next.js.map +1 -1
- package/dist/paraglide/messages/ui_carousel_previous.js.map +1 -1
- package/dist/paraglide/messages/ui_common_close.js.map +1 -1
- package/dist/paraglide/messages/ui_common_loading.js.map +1 -1
- package/dist/paraglide/messages/ui_common_more.js.map +1 -1
- package/dist/paraglide/messages/ui_pagination_more.js.map +1 -1
- package/dist/paraglide/messages/ui_pagination_next.js.map +1 -1
- package/dist/paraglide/messages/ui_pagination_previous.js.map +1 -1
- package/dist/paraglide/messages/ui_sidebar_description.js.map +1 -1
- package/dist/paraglide/messages/ui_sidebar_title.js.map +1 -1
- package/dist/paraglide/messages/ui_sidebar_toggle.js.map +1 -1
- package/dist/paraglide/messages/ui_skeleton_loading.js.map +1 -1
- package/dist/paraglide/runtime.js.map +1 -1
- package/dist/primitives/createMediaQuery.js.map +1 -1
- package/dist/primitives/selectTriggerRef.js.map +1 -1
- package/package.json +4 -4
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/machine.mjs"],"sourcesContent":["// src/machine.ts\nimport {\n createScope,\n findTransition,\n getExitEnterStates,\n hasTag,\n INIT_STATE,\n MachineStatus,\n matchesState,\n resolveStateValue\n} from \"@zag-js/core\";\nimport { compact, isFunction, isString, toArray, warn, ensure } from \"@zag-js/utils\";\nimport { createMemo, mergeProps, onCleanup, onMount, untrack } from \"solid-js\";\nimport { createBindable } from \"./bindable.mjs\";\nimport { createRefs } from \"./refs.mjs\";\nimport { createTrack } from \"./track.mjs\";\nfunction useMachine(machine, userProps = {}) {\n const scope = createMemo(() => {\n const { id, ids, getRootNode } = access(userProps);\n return createScope({ id, ids, getRootNode });\n });\n const debug = (...args) => {\n if (machine.debug) console.log(...args);\n };\n const props = createMemo(\n () => machine.props?.({\n props: compact(access(userProps)),\n scope: scope()\n }) ?? access(userProps)\n );\n const prop = createProp(props);\n const context = machine.context?.({\n prop,\n bindable: createBindable,\n get scope() {\n return scope();\n },\n flush,\n getContext() {\n return ctx;\n },\n getComputed() {\n return computed;\n },\n getRefs() {\n return refs;\n },\n getEvent() {\n return getEvent();\n }\n });\n const ctx = {\n get(key) {\n return context?.[key].get();\n },\n set(key, value) {\n context?.[key].set(value);\n },\n initial(key) {\n return context?.[key].initial;\n },\n hash(key) {\n const current = context?.[key].get();\n return context?.[key].hash(current);\n }\n };\n const effects = { current: /* @__PURE__ */ new Map() };\n const transitionRef = { current: null };\n const previousEventRef = { current: null };\n const eventRef = { current: { type: \"\" } };\n const getEvent = () => mergeProps(eventRef.current, {\n current() {\n return eventRef.current;\n },\n previous() {\n return previousEventRef.current;\n }\n });\n const getState = () => mergeProps(state, {\n matches(...values) {\n const current = state.get();\n return values.some((value) => matchesState(current, value));\n },\n hasTag(tag) {\n const current = state.get();\n return hasTag(machine, current, tag);\n }\n });\n const refs = createRefs(machine.refs?.({ prop, context: ctx }) ?? {});\n const getParams = () => ({\n state: getState(),\n context: ctx,\n event: getEvent(),\n prop,\n send,\n action,\n guard,\n track: createTrack,\n refs,\n computed,\n flush,\n get scope() {\n return scope();\n },\n choose\n });\n const action = (keys) => {\n const strs = isFunction(keys) ? keys(getParams()) : keys;\n if (!strs) return;\n const fns = strs.map((s) => {\n const fn = machine.implementations?.actions?.[s];\n if (!fn) warn(`[zag-js] No implementation found for action \"${JSON.stringify(s)}\"`);\n return fn;\n });\n for (const fn of fns) {\n fn?.(getParams());\n }\n };\n const guard = (str) => {\n if (isFunction(str)) return str(getParams());\n return machine.implementations?.guards?.[str](getParams());\n };\n const effect = (keys) => {\n const strs = isFunction(keys) ? keys(getParams()) : keys;\n if (!strs) return;\n const fns = strs.map((s) => {\n const fn = machine.implementations?.effects?.[s];\n if (!fn) warn(`[zag-js] No implementation found for effect \"${JSON.stringify(s)}\"`);\n return fn;\n });\n const cleanups = [];\n for (const fn of fns) {\n const cleanup = fn?.(getParams());\n if (cleanup) cleanups.push(cleanup);\n }\n return () => cleanups.forEach((fn) => fn?.());\n };\n const choose = (transitions) => {\n return toArray(transitions).find((t) => {\n let result = !t.guard;\n if (isString(t.guard)) result = !!guard(t.guard);\n else if (isFunction(t.guard)) result = t.guard(getParams());\n return result;\n });\n };\n const computed = (key) => {\n ensure(machine.computed, () => `[zag-js] No computed object found on machine`);\n const fn = machine.computed[key];\n return fn({\n context: ctx,\n event: eventRef.current,\n prop,\n refs,\n scope: scope(),\n computed\n });\n };\n const state = createBindable(() => ({\n defaultValue: resolveStateValue(machine, machine.initialState({ prop })),\n onChange(nextState, prevState) {\n const { exiting, entering } = getExitEnterStates(machine, prevState, nextState, transitionRef.current?.reenter);\n exiting.forEach((item) => {\n const exitEffects = effects.current.get(item.path);\n exitEffects?.();\n effects.current.delete(item.path);\n });\n exiting.forEach((item) => {\n action(item.state?.exit);\n });\n action(transitionRef.current?.actions);\n entering.forEach((item) => {\n const cleanup = effect(item.state?.effects);\n if (cleanup) effects.current.set(item.path, cleanup);\n });\n if (prevState === INIT_STATE) {\n action(machine.entry);\n const cleanup = effect(machine.effects);\n if (cleanup) effects.current.set(INIT_STATE, cleanup);\n }\n entering.forEach((item) => {\n action(item.state?.entry);\n });\n }\n }));\n let status = MachineStatus.NotStarted;\n onMount(() => {\n const started = status === MachineStatus.Started;\n status = MachineStatus.Started;\n debug(started ? \"rehydrating...\" : \"initializing...\");\n state.invoke(state.initial, INIT_STATE);\n });\n onCleanup(() => {\n debug(\"unmounting...\");\n status = MachineStatus.Stopped;\n const fns = effects.current;\n fns.forEach((fn) => fn?.());\n effects.current = /* @__PURE__ */ new Map();\n transitionRef.current = null;\n action(machine.exit);\n });\n const send = (event) => {\n queueMicrotask(() => {\n if (status !== MachineStatus.Started) return;\n previousEventRef.current = eventRef.current;\n eventRef.current = event;\n let currentState = untrack(() => state.get());\n const { transitions, source } = findTransition(machine, currentState, event.type);\n const transition = choose(transitions);\n if (!transition) return;\n transitionRef.current = transition;\n const target = resolveStateValue(machine, transition.target ?? currentState, source);\n debug(\"transition\", event.type, transition.target || currentState, `(${transition.actions})`);\n const changed = target !== currentState;\n if (changed) {\n state.set(target);\n } else if (transition.reenter) {\n state.invoke(currentState, currentState);\n } else {\n action(transition.actions);\n }\n });\n };\n machine.watch?.(getParams());\n return {\n state: getState(),\n send,\n context: ctx,\n prop,\n get scope() {\n return scope();\n },\n refs,\n computed,\n event: getEvent(),\n getStatus: () => status\n };\n}\nfunction flush(fn) {\n fn();\n}\nfunction access(value) {\n return isFunction(value) ? value() : value;\n}\nfunction createProp(value) {\n return function get(key) {\n return value()[key];\n };\n}\nexport {\n useMachine\n};\n"],"x_google_ignoreList":[0],"m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F,QAAgB;EAOd,AANA,EAAM,gBAAgB,EACtB,IAAS,EAAc,SAEvB,EADoB,QAChB,SAAS,MAAO,KAAM,CAAC,EAC3B,EAAQ,0BAA0B,IAAI,KAAK,EAC3C,EAAc,UAAU,MACxB,EAAO,EAAQ,KAAK;GACpB;CACF,IAAM,KAAQ,MAAU;EACtB,qBAAqB;GACnB,IAAI,MAAW,EAAc,SAAS;GAEtC,AADA,EAAiB,UAAU,EAAS,SACpC,EAAS,UAAU;GACnB,IAAI,IAAe,QAAc,EAAM,KAAK,CAAC,EACvC,EAAE,gBAAa,cAAW,EAAe,GAAS,GAAc,EAAM,KAAK,EAC3E,IAAa,EAAO,EAAY;GACtC,IAAI,CAAC,GAAY;GACjB,EAAc,UAAU;GACxB,IAAM,IAAS,EAAkB,GAAS,EAAW,UAAU,GAAc,EAAO;GAGpF,AAFA,EAAM,cAAc,EAAM,MAAM,EAAW,UAAU,GAAc,IAAI,EAAW,QAAQ,GAAG,EAC7E,MAAW,IAGhB,EAAW,UACpB,EAAM,OAAO,GAAc,EAAa,GAExC,EAAO,EAAW,QAAQ,GAJ1B,EAAM,IAAI,EAAO;IAMnB;;CAGJ,OADA,EAAQ,QAAQ,GAAW,CAAC,EACrB;EACL,OAAO,GAAU;EACjB;EACA,SAAS;EACT;EACA,IAAI,QAAQ;GACV,OAAO,GAAO;;EAEhB;EACA;EACA,OAAO,GAAU;EACjB,iBAAiB;EAClB;;AAEH,SAAS,EAAM,GAAI;CACjB,GAAI;;AAEN,SAAS,EAAO,GAAO;CACrB,OAAO,EAAW,EAAM,GAAG,GAAO,GAAG;;AAEvC,SAAS,EAAW,GAAO;CACzB,OAAO,SAAa,GAAK;EACvB,OAAO,GAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"machine.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/machine.mjs"],"sourcesContent":["// src/machine.ts\nimport {\n createScope,\n findTransition,\n getExitEnterStates,\n hasTag,\n INIT_STATE,\n MachineStatus,\n matchesState,\n resolveStateValue\n} from \"@zag-js/core\";\nimport { compact, isFunction, isString, toArray, warn, ensure } from \"@zag-js/utils\";\nimport { createMemo, mergeProps, onCleanup, onMount, untrack } from \"solid-js\";\nimport { createBindable } from \"./bindable.mjs\";\nimport { createRefs } from \"./refs.mjs\";\nimport { createTrack } from \"./track.mjs\";\nfunction useMachine(machine, userProps = {}) {\n const scope = createMemo(() => {\n const { id, ids, getRootNode } = access(userProps);\n return createScope({ id, ids, getRootNode });\n });\n const debug = (...args) => {\n if (machine.debug) console.log(...args);\n };\n const props = createMemo(\n () => machine.props?.({\n props: compact(access(userProps)),\n scope: scope()\n }) ?? access(userProps)\n );\n const prop = createProp(props);\n const context = machine.context?.({\n prop,\n bindable: createBindable,\n get scope() {\n return scope();\n },\n flush,\n getContext() {\n return ctx;\n },\n getComputed() {\n return computed;\n },\n getRefs() {\n return refs;\n },\n getEvent() {\n return getEvent();\n }\n });\n const ctx = {\n get(key) {\n return context?.[key].get();\n },\n set(key, value) {\n context?.[key].set(value);\n },\n initial(key) {\n return context?.[key].initial;\n },\n hash(key) {\n const current = context?.[key].get();\n return context?.[key].hash(current);\n }\n };\n const effects = { current: /* @__PURE__ */ new Map() };\n const transitionRef = { current: null };\n const previousEventRef = { current: null };\n const eventRef = { current: { type: \"\" } };\n const getEvent = () => mergeProps(eventRef.current, {\n current() {\n return eventRef.current;\n },\n previous() {\n return previousEventRef.current;\n }\n });\n const getState = () => mergeProps(state, {\n matches(...values) {\n const current = state.get();\n return values.some((value) => matchesState(current, value));\n },\n hasTag(tag) {\n const current = state.get();\n return hasTag(machine, current, tag);\n }\n });\n const refs = createRefs(machine.refs?.({ prop, context: ctx }) ?? {});\n const getParams = () => ({\n state: getState(),\n context: ctx,\n event: getEvent(),\n prop,\n send,\n action,\n guard,\n track: createTrack,\n refs,\n computed,\n flush,\n get scope() {\n return scope();\n },\n choose\n });\n const action = (keys) => {\n const strs = isFunction(keys) ? keys(getParams()) : keys;\n if (!strs) return;\n const fns = strs.map((s) => {\n const fn = machine.implementations?.actions?.[s];\n if (!fn) warn(`[zag-js] No implementation found for action \"${JSON.stringify(s)}\"`);\n return fn;\n });\n for (const fn of fns) {\n fn?.(getParams());\n }\n };\n const guard = (str) => {\n if (isFunction(str)) return str(getParams());\n return machine.implementations?.guards?.[str](getParams());\n };\n const effect = (keys) => {\n const strs = isFunction(keys) ? keys(getParams()) : keys;\n if (!strs) return;\n const fns = strs.map((s) => {\n const fn = machine.implementations?.effects?.[s];\n if (!fn) warn(`[zag-js] No implementation found for effect \"${JSON.stringify(s)}\"`);\n return fn;\n });\n const cleanups = [];\n for (const fn of fns) {\n const cleanup = fn?.(getParams());\n if (cleanup) cleanups.push(cleanup);\n }\n return () => cleanups.forEach((fn) => fn?.());\n };\n const choose = (transitions) => {\n return toArray(transitions).find((t) => {\n let result = !t.guard;\n if (isString(t.guard)) result = !!guard(t.guard);\n else if (isFunction(t.guard)) result = t.guard(getParams());\n return result;\n });\n };\n const computed = (key) => {\n ensure(machine.computed, () => `[zag-js] No computed object found on machine`);\n const fn = machine.computed[key];\n return fn({\n context: ctx,\n event: eventRef.current,\n prop,\n refs,\n scope: scope(),\n computed\n });\n };\n const state = createBindable(() => ({\n defaultValue: resolveStateValue(machine, machine.initialState({ prop })),\n onChange(nextState, prevState) {\n const { exiting, entering } = getExitEnterStates(machine, prevState, nextState, transitionRef.current?.reenter);\n exiting.forEach((item) => {\n const exitEffects = effects.current.get(item.path);\n exitEffects?.();\n effects.current.delete(item.path);\n });\n exiting.forEach((item) => {\n action(item.state?.exit);\n });\n action(transitionRef.current?.actions);\n entering.forEach((item) => {\n const cleanup = effect(item.state?.effects);\n if (cleanup) effects.current.set(item.path, cleanup);\n });\n if (prevState === INIT_STATE) {\n action(machine.entry);\n const cleanup = effect(machine.effects);\n if (cleanup) effects.current.set(INIT_STATE, cleanup);\n }\n entering.forEach((item) => {\n action(item.state?.entry);\n });\n }\n }));\n let status = MachineStatus.NotStarted;\n onMount(() => {\n const started = status === MachineStatus.Started;\n status = MachineStatus.Started;\n debug(started ? \"rehydrating...\" : \"initializing...\");\n state.invoke(state.initial, INIT_STATE);\n });\n onCleanup(() => {\n debug(\"unmounting...\");\n status = MachineStatus.Stopped;\n const fns = effects.current;\n fns.forEach((fn) => fn?.());\n effects.current = /* @__PURE__ */ new Map();\n transitionRef.current = null;\n action(machine.exit);\n });\n const send = (event) => {\n queueMicrotask(() => {\n if (status !== MachineStatus.Started) return;\n previousEventRef.current = eventRef.current;\n eventRef.current = event;\n let currentState = untrack(() => state.get());\n const { transitions, source } = findTransition(machine, currentState, event.type);\n const transition = choose(transitions);\n if (!transition) return;\n transitionRef.current = transition;\n const target = resolveStateValue(machine, transition.target ?? currentState, source);\n debug(\"transition\", event.type, transition.target || currentState, `(${transition.actions})`);\n const changed = target !== currentState;\n if (changed) {\n state.set(target);\n } else if (transition.reenter) {\n state.invoke(currentState, currentState);\n } else {\n action(transition.actions);\n }\n });\n };\n machine.watch?.(getParams());\n return {\n state: getState(),\n send,\n context: ctx,\n prop,\n get scope() {\n return scope();\n },\n refs,\n computed,\n event: getEvent(),\n getStatus: () => status\n };\n}\nfunction flush(fn) {\n fn();\n}\nfunction access(value) {\n return isFunction(value) ? value() : value;\n}\nfunction createProp(value) {\n return function get(key) {\n return value()[key];\n };\n}\nexport {\n useMachine\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAgBA,SAAS,EAAW,GAAS,IAAY,CAAC,GAAG;CAC3C,IAAM,IAAQ,QAAiB;EAC7B,IAAM,EAAE,OAAI,QAAK,mBAAgB,EAAO,CAAS;EACjD,OAAO,EAAY;GAAE;GAAI;GAAK;EAAY,CAAC;CAC7C,CAAC,GACK,KAAS,GAAG,MAAS;EACzB,AAAI,EAAQ,SAAO,QAAQ,IAAI,GAAG,CAAI;CACxC,GAOM,IAAO,EANC,QACN,EAAQ,QAAQ;EACpB,OAAO,EA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AAqB;GACnB,IAAI,MAAW,EAAc,SAAS;GAEtC,AADA,EAAiB,UAAU,EAAS,SACpC,EAAS,UAAU;GACnB,IAAI,IAAe,QAAc,EAAM,IAAI,CAAC,GACtC,EAAE,gBAAa,cAAW,EAAe,GAAS,GAAc,EAAM,IAAI,GAC1E,IAAa,EAAO,CAAW;GACrC,IAAI,CAAC,GAAY;GACjB,EAAc,UAAU;GACxB,IAAM,IAAS,EAAkB,GAAS,EAAW,UAAU,GAAc,CAAM;GAGnF,AAFA,EAAM,cAAc,EAAM,MAAM,EAAW,UAAU,GAAc,IAAI,EAAW,QAAQ,EAAE,GAC5E,MAAW,IAGhB,EAAW,UACpB,EAAM,OAAO,GAAc,CAAY,IAEvC,EAAO,EAAW,OAAO,IAJzB,EAAM,IAAI,CAAM;EAMpB,CAAC;CACH;CAEA,OADA,EAAQ,QAAQ,EAAU,CAAC,GACpB;EACL,OAAO,EAAS;EAChB;EACA,SAAS;EACT;EACA,IAAI,QAAQ;GACV,OAAO,EAAM;EACf;EACA;EACA;EACA,OAAO,EAAS;EAChB,iBAAiB;CACnB;AACF;AACA,SAAS,EAAM,GAAI;CACjB,EAAG;AACL;AACA,SAAS,EAAO,GAAO;CACrB,OAAO,EAAW,CAAK,IAAI,EAAM,IAAI;AACvC;AACA,SAAS,EAAW,GAAO;CACzB,OAAO,SAAa,GAAK;EACvB,OAAO,EAAM,EAAE;CACjB;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-props.js","names":["zagMergeProps"],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/merge-props.mjs"],"sourcesContent":["// src/merge-props.ts\nimport { mergeProps as zagMergeProps } from \"@zag-js/core\";\nfunction mergeProps(...sources) {\n const target = {};\n for (let i = 0; i < sources.length; i++) {\n let source = sources[i];\n if (typeof source === \"function\") source = source();\n if (source) {\n const descriptors = Object.getOwnPropertyDescriptors(source);\n for (const key in descriptors) {\n if (key in target) continue;\n Object.defineProperty(target, key, {\n enumerable: true,\n get() {\n let e = {};\n if (key === \"style\" || key === \"class\" || key === \"className\" || key.startsWith(\"on\")) {\n for (let i2 = 0; i2 < sources.length; i2++) {\n let s = sources[i2];\n if (typeof s === \"function\") s = s();\n e = zagMergeProps(e, { [key]: (s || {})[key] });\n }\n return e[key];\n }\n for (let i2 = sources.length - 1; i2 >= 0; i2--) {\n let v, s = sources[i2];\n if (typeof s === \"function\") s = s();\n v = (s || {})[key];\n if (v !== void 0) return v;\n }\n }\n });\n }\n }\n }\n return target;\n}\nexport {\n mergeProps\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAW,GAAG,GAAS;CAC9B,IAAM,IAAS,
|
|
1
|
+
{"version":3,"file":"merge-props.js","names":["zagMergeProps"],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/merge-props.mjs"],"sourcesContent":["// src/merge-props.ts\nimport { mergeProps as zagMergeProps } from \"@zag-js/core\";\nfunction mergeProps(...sources) {\n const target = {};\n for (let i = 0; i < sources.length; i++) {\n let source = sources[i];\n if (typeof source === \"function\") source = source();\n if (source) {\n const descriptors = Object.getOwnPropertyDescriptors(source);\n for (const key in descriptors) {\n if (key in target) continue;\n Object.defineProperty(target, key, {\n enumerable: true,\n get() {\n let e = {};\n if (key === \"style\" || key === \"class\" || key === \"className\" || key.startsWith(\"on\")) {\n for (let i2 = 0; i2 < sources.length; i2++) {\n let s = sources[i2];\n if (typeof s === \"function\") s = s();\n e = zagMergeProps(e, { [key]: (s || {})[key] });\n }\n return e[key];\n }\n for (let i2 = sources.length - 1; i2 >= 0; i2--) {\n let v, s = sources[i2];\n if (typeof s === \"function\") s = s();\n v = (s || {})[key];\n if (v !== void 0) return v;\n }\n }\n });\n }\n }\n }\n return target;\n}\nexport {\n mergeProps\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAW,GAAG,GAAS;CAC9B,IAAM,IAAS,CAAC;CAChB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAQ,QAAQ,KAAK;EACvC,IAAI,IAAS,EAAQ;EAErB,IADI,OAAO,KAAW,eAAY,IAAS,EAAO,IAC9C,GAAQ;GACV,IAAM,IAAc,OAAO,0BAA0B,CAAM;GAC3D,KAAK,IAAM,KAAO,GACZ,KAAO,KACX,OAAO,eAAe,GAAQ,GAAK;IACjC,YAAY;IACZ,MAAM;KACJ,IAAI,IAAI,CAAC;KACT,IAAI,MAAQ,WAAW,MAAQ,WAAW,MAAQ,eAAe,EAAI,WAAW,IAAI,GAAG;MACrF,KAAK,IAAI,IAAK,GAAG,IAAK,EAAQ,QAAQ,KAAM;OAC1C,IAAI,IAAI,EAAQ;OAEhB,AADI,OAAO,KAAM,eAAY,IAAI,EAAE,IACnC,IAAIA,EAAc,GAAG,GAAG,KAAO,KAAK,CAAC,GAAG,GAAK,CAAC;MAChD;MACA,OAAO,EAAE;KACX;KACA,KAAK,IAAI,IAAK,EAAQ,SAAS,GAAG,KAAM,GAAG,KAAM;MAC/C,IAAI,GAAG,IAAI,EAAQ;MAGnB,IAFI,OAAO,KAAM,eAAY,IAAI,EAAE,IACnC,KAAK,KAAK,CAAC,GAAG,IACV,MAAM,KAAK,GAAG,OAAO;KAC3B;IACF;GACF,CAAC;EAEL;CACF;CACA,OAAO;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-props.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/normalize-props.mjs"],"sourcesContent":["// src/normalize-props.ts\nimport { createNormalizer } from \"@zag-js/types\";\nimport { isNumber, isObject, isString } from \"@zag-js/utils\";\nvar eventMap = {\n onFocus: \"onFocusIn\",\n onBlur: \"onFocusOut\",\n onDoubleClick: \"onDblClick\",\n onChange: \"onInput\",\n defaultChecked: \"checked\",\n defaultValue: \"value\",\n htmlFor: \"for\",\n className: \"class\"\n};\nvar format = (v) => v.startsWith(\"--\") ? v : hyphenateStyleName(v);\nfunction toSolidProp(prop) {\n return prop in eventMap ? eventMap[prop] : prop;\n}\nvar normalizeProps = createNormalizer((props) => {\n const normalized = {};\n for (const key in props) {\n const value = props[key];\n if (key === \"readOnly\" && value === false) {\n continue;\n }\n if (key === \"style\" && isObject(value)) {\n normalized[\"style\"] = cssify(value);\n continue;\n }\n if (key === \"children\") {\n if (isString(value)) {\n normalized[\"textContent\"] = value;\n }\n continue;\n }\n normalized[toSolidProp(key)] = value;\n }\n return normalized;\n});\nfunction cssify(style) {\n let css = {};\n for (const property in style) {\n const value = style[property];\n if (!isString(value) && !isNumber(value)) continue;\n css[format(property)] = value;\n }\n return css;\n}\nvar uppercasePattern = /[A-Z]/g;\nvar msPattern = /^ms-/;\nfunction toHyphenLower(match) {\n return \"-\" + match.toLowerCase();\n}\nvar cache = {};\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) return cache[name];\n const hName = name.replace(uppercasePattern, toHyphenLower);\n return cache[name] = msPattern.test(hName) ? \"-\" + hName : hName;\n}\nexport {\n normalizeProps\n};\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAI,IAAW;CACb,SAAS;CACT,QAAQ;CACR,eAAe;CACf,UAAU;CACV,gBAAgB;CAChB,cAAc;CACd,SAAS;CACT,WAAW;
|
|
1
|
+
{"version":3,"file":"normalize-props.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/normalize-props.mjs"],"sourcesContent":["// src/normalize-props.ts\nimport { createNormalizer } from \"@zag-js/types\";\nimport { isNumber, isObject, isString } from \"@zag-js/utils\";\nvar eventMap = {\n onFocus: \"onFocusIn\",\n onBlur: \"onFocusOut\",\n onDoubleClick: \"onDblClick\",\n onChange: \"onInput\",\n defaultChecked: \"checked\",\n defaultValue: \"value\",\n htmlFor: \"for\",\n className: \"class\"\n};\nvar format = (v) => v.startsWith(\"--\") ? v : hyphenateStyleName(v);\nfunction toSolidProp(prop) {\n return prop in eventMap ? eventMap[prop] : prop;\n}\nvar normalizeProps = createNormalizer((props) => {\n const normalized = {};\n for (const key in props) {\n const value = props[key];\n if (key === \"readOnly\" && value === false) {\n continue;\n }\n if (key === \"style\" && isObject(value)) {\n normalized[\"style\"] = cssify(value);\n continue;\n }\n if (key === \"children\") {\n if (isString(value)) {\n normalized[\"textContent\"] = value;\n }\n continue;\n }\n normalized[toSolidProp(key)] = value;\n }\n return normalized;\n});\nfunction cssify(style) {\n let css = {};\n for (const property in style) {\n const value = style[property];\n if (!isString(value) && !isNumber(value)) continue;\n css[format(property)] = value;\n }\n return css;\n}\nvar uppercasePattern = /[A-Z]/g;\nvar msPattern = /^ms-/;\nfunction toHyphenLower(match) {\n return \"-\" + match.toLowerCase();\n}\nvar cache = {};\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) return cache[name];\n const hName = name.replace(uppercasePattern, toHyphenLower);\n return cache[name] = msPattern.test(hName) ? \"-\" + hName : hName;\n}\nexport {\n normalizeProps\n};\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAI,IAAW;CACb,SAAS;CACT,QAAQ;CACR,eAAe;CACf,UAAU;CACV,gBAAgB;CAChB,cAAc;CACd,SAAS;CACT,WAAW;AACb,GACI,KAAU,MAAM,EAAE,WAAW,IAAI,IAAI,IAAI,EAAmB,CAAC;AACjE,SAAS,EAAY,GAAM;CACzB,OAAO,KAAQ,IAAW,EAAS,KAAQ;AAC7C;AACA,IAAI,IAAiB,GAAkB,MAAU;CAC/C,IAAM,IAAa,CAAC;CACpB,KAAK,IAAM,KAAO,GAAO;EACvB,IAAM,IAAQ,EAAM;EAChB,YAAQ,cAAc,MAAU,KAGpC;OAAI,MAAQ,WAAW,EAAS,CAAK,GAAG;IACtC,EAAW,QAAW,EAAO,CAAK;IAClC;GACF;GACA,IAAI,MAAQ,YAAY;IACtB,AAAI,EAAS,CAAK,MAChB,EAAW,cAAiB;IAE9B;GACF;GACA,EAAW,EAAY,CAAG,KAAK;EAP/B;CAQF;CACA,OAAO;AACT,CAAC;AACD,SAAS,EAAO,GAAO;CACrB,IAAI,IAAM,CAAC;CACX,KAAK,IAAM,KAAY,GAAO;EAC5B,IAAM,IAAQ,EAAM;EAChB,CAAC,EAAS,CAAK,KAAK,CAAC,EAAS,CAAK,MACvC,EAAI,EAAO,CAAQ,KAAK;CAC1B;CACA,OAAO;AACT;AACA,IAAI,IAAmB,UACnB,IAAY;AAChB,SAAS,EAAc,GAAO;CAC5B,OAAO,MAAM,EAAM,YAAY;AACjC;AACA,IAAI,IAAQ,CAAC;AACb,SAAS,EAAmB,GAAM;CAChC,IAAI,EAAM,eAAe,CAAI,GAAG,OAAO,EAAM;CAC7C,IAAM,IAAQ,EAAK,QAAQ,GAAkB,CAAa;CAC1D,OAAO,EAAM,KAAQ,EAAU,KAAK,CAAK,IAAI,MAAM,IAAQ;AAC7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refs.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/refs.mjs"],"sourcesContent":["// src/refs.ts\nfunction createRefs(refs) {\n const ref = { current: refs };\n return {\n get(key) {\n return ref.current[key];\n },\n set(key, value) {\n ref.current[key] = value;\n }\n };\n}\nexport {\n createRefs\n};\n"],"x_google_ignoreList":[0],"mappings":";AACA,SAAS,EAAW,GAAM;CACxB,IAAM,IAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"refs.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/refs.mjs"],"sourcesContent":["// src/refs.ts\nfunction createRefs(refs) {\n const ref = { current: refs };\n return {\n get(key) {\n return ref.current[key];\n },\n set(key, value) {\n ref.current[key] = value;\n }\n };\n}\nexport {\n createRefs\n};\n"],"x_google_ignoreList":[0],"mappings":";AACA,SAAS,EAAW,GAAM;CACxB,IAAM,IAAM,EAAE,SAAS,EAAK;CAC5B,OAAO;EACL,IAAI,GAAK;GACP,OAAO,EAAI,QAAQ;EACrB;EACA,IAAI,GAAK,GAAO;GACd,EAAI,QAAQ,KAAO;EACrB;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"track.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/track.mjs"],"sourcesContent":["// src/track.ts\nimport { isEqual, isFunction } from \"@zag-js/utils\";\nimport { createEffect } from \"solid-js\";\nfunction access(v) {\n if (isFunction(v)) return v();\n return v;\n}\nvar createTrack = (deps, effect) => {\n let prevDeps = [];\n let isFirstRun = true;\n createEffect(() => {\n if (isFirstRun) {\n prevDeps = deps.map((d) => access(d));\n isFirstRun = false;\n return;\n }\n let changed = false;\n for (let i = 0; i < deps.length; i++) {\n if (!isEqual(prevDeps[i], access(deps[i]))) {\n changed = true;\n break;\n }\n }\n if (changed) {\n prevDeps = deps.map((d) => access(d));\n effect();\n }\n });\n};\nexport {\n createTrack\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,SAAS,EAAO,GAAG;CAEjB,OADI,EAAW,
|
|
1
|
+
{"version":3,"file":"track.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+solid@1.40.0+ac9bd97bed21f560/node_modules/@zag-js/solid/dist/track.mjs"],"sourcesContent":["// src/track.ts\nimport { isEqual, isFunction } from \"@zag-js/utils\";\nimport { createEffect } from \"solid-js\";\nfunction access(v) {\n if (isFunction(v)) return v();\n return v;\n}\nvar createTrack = (deps, effect) => {\n let prevDeps = [];\n let isFirstRun = true;\n createEffect(() => {\n if (isFirstRun) {\n prevDeps = deps.map((d) => access(d));\n isFirstRun = false;\n return;\n }\n let changed = false;\n for (let i = 0; i < deps.length; i++) {\n if (!isEqual(prevDeps[i], access(deps[i]))) {\n changed = true;\n break;\n }\n }\n if (changed) {\n prevDeps = deps.map((d) => access(d));\n effect();\n }\n });\n};\nexport {\n createTrack\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,SAAS,EAAO,GAAG;CAEjB,OADI,EAAW,CAAC,IAAU,EAAE,IACrB;AACT;AACA,IAAI,KAAe,GAAM,MAAW;CAClC,IAAI,IAAW,CAAC,GACZ,IAAa;CACjB,QAAmB;EACjB,IAAI,GAAY;GAEd,AADA,IAAW,EAAK,KAAK,MAAM,EAAO,CAAC,CAAC,GACpC,IAAa;GACb;EACF;EACA,IAAI,IAAU;EACd,KAAK,IAAI,IAAI,GAAG,IAAI,EAAK,QAAQ,KAC/B,IAAI,CAAC,EAAQ,EAAS,IAAI,EAAO,EAAK,EAAE,CAAC,GAAG;GAC1C,IAAU;GACV;EACF;EAEF,AAAI,MACF,IAAW,EAAK,KAAK,MAAM,EAAO,CAAC,CAAC,GACpC,EAAO;CAEX,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-QZ7TP4HQ.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/chunk-QZ7TP4HQ.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n\nexport {\n __publicField\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAY,OAAO,gBACnB,KAAmB,GAAK,GAAK,MAAU,KAAO,IAAM,EAAU,GAAK,GAAK;CAAE,YAAY;CAAM,cAAc;CAAM,UAAU;CAAM;
|
|
1
|
+
{"version":3,"file":"chunk-QZ7TP4HQ.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/chunk-QZ7TP4HQ.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n\nexport {\n __publicField\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAY,OAAO,gBACnB,KAAmB,GAAK,GAAK,MAAU,KAAO,IAAM,EAAU,GAAK,GAAK;CAAE,YAAY;CAAM,cAAc;CAAM,UAAU;CAAM;AAAM,CAAC,IAAI,EAAI,KAAO,GACtJ,KAAiB,GAAK,GAAK,MAAU,EAAgB,GAAK,OAAO,KAAQ,WAAsB,IAAX,IAAM,IAAU,CAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitter.anatomy.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.anatomy.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.anatomy.ts\nimport { createAnatomy } from \"@zag-js/anatomy\";\nvar anatomy = createAnatomy(\"splitter\").parts(\"root\", \"panel\", \"resizeTrigger\", \"resizeTriggerIndicator\");\nvar parts = anatomy.build();\nexport {\n anatomy,\n parts\n};\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAI,IADU,EAAc,
|
|
1
|
+
{"version":3,"file":"splitter.anatomy.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.anatomy.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.anatomy.ts\nimport { createAnatomy } from \"@zag-js/anatomy\";\nvar anatomy = createAnatomy(\"splitter\").parts(\"root\", \"panel\", \"resizeTrigger\", \"resizeTriggerIndicator\");\nvar parts = anatomy.build();\nexport {\n anatomy,\n parts\n};\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAI,IADU,EAAc,UAAU,EAAE,MAAM,QAAQ,SAAS,iBAAiB,wBACpE,EAAQ,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitter.connect.js","names":["dom.getRootId","dom.getPanelId","dom.getResizeTriggerId"],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.connect.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.connect.ts\nimport { dataAttr, getEventKey, getEventPoint, isLeftClick } from \"@zag-js/dom-query\";\nimport { ensure } from \"@zag-js/utils\";\nimport { parts } from \"./splitter.anatomy.mjs\";\nimport * as dom from \"./splitter.dom.mjs\";\nimport { getAriaValue } from \"./utils/aria.mjs\";\nimport { fuzzyCompareNumbers, fuzzyNumbersEqual } from \"./utils/fuzzy.mjs\";\nimport { findPanelIndex, getPanelById, getPanelFlexBoxStyle, getPanelLayout, panelDataHelper } from \"./utils/panel.mjs\";\nfunction connect(service, normalize) {\n const { state, send, prop, computed, context, scope } = service;\n const horizontal = computed(\"horizontal\");\n const dragging = state.matches(\"dragging\");\n const registry = prop(\"registry\");\n const orientation = prop(\"orientation\");\n const getPanelStyle = (id) => {\n const panels = prop(\"panels\");\n const panelIndex = panels.findIndex((panel) => panel.id === id);\n const defaultSize = context.initial(\"size\")[panelIndex];\n const dragState = context.get(\"dragState\");\n return getPanelFlexBoxStyle({\n defaultSize,\n dragState,\n sizes: context.get(\"size\"),\n panels,\n panelIndex\n });\n };\n const getResizeTriggerState = (props) => {\n const { id, disabled } = props;\n const dragging2 = context.get(\"dragState\")?.resizeTriggerId === id;\n const focused = dragging2 || context.get(\"keyboardState\")?.resizeTriggerId === id;\n return {\n dragging: dragging2,\n focused,\n disabled: !!disabled\n };\n };\n return {\n dragging,\n orientation,\n getPanels() {\n return prop(\"panels\");\n },\n getPanelById(id) {\n return getPanelById(prop(\"panels\"), id);\n },\n getItems() {\n return prop(\"panels\").flatMap((panel, index, arr) => {\n const nextPanel = arr[index + 1];\n if (panel && nextPanel) {\n return [\n { type: \"panel\", id: panel.id },\n { type: \"handle\", id: `${panel.id}:${nextPanel.id}` }\n ];\n }\n return [{ type: \"panel\", id: panel.id }];\n });\n },\n getSizes() {\n return context.get(\"size\");\n },\n setSizes(size) {\n send({ type: \"SIZE.SET\", size });\n },\n resetSizes() {\n send({ type: \"SIZE.SET\", size: context.initial(\"size\") });\n },\n collapsePanel(id) {\n send({ type: \"PANEL.COLLAPSE\", id });\n },\n expandPanel(id, minSize) {\n send({ type: \"PANEL.EXPAND\", id, minSize });\n },\n resizePanel(id, unsafePanelSize) {\n send({ type: \"PANEL.RESIZE\", id, size: unsafePanelSize });\n },\n getPanelSize(id) {\n const panels = prop(\"panels\");\n const size = context.get(\"size\");\n const panelData = getPanelById(panels, id);\n const { panelSize } = panelDataHelper(panels, panelData, size);\n ensure(panelSize, () => `Panel size not found for panel \"${panelData.id}\"`);\n return panelSize;\n },\n isPanelCollapsed(id) {\n const panels = prop(\"panels\");\n const size = context.get(\"size\");\n const panelData = getPanelById(panels, id);\n const { collapsedSize = 0, collapsible, panelSize } = panelDataHelper(panels, panelData, size);\n ensure(panelSize, () => `Panel size not found for panel \"${panelData.id}\"`);\n return collapsible === true && fuzzyNumbersEqual(panelSize, collapsedSize);\n },\n isPanelExpanded(id) {\n const panels = prop(\"panels\");\n const size = context.get(\"size\");\n const panelData = getPanelById(panels, id);\n const { collapsedSize = 0, collapsible, panelSize } = panelDataHelper(panels, panelData, size);\n ensure(panelSize, () => `Panel size not found for panel \"${panelData.id}\"`);\n return !collapsible || fuzzyCompareNumbers(panelSize, collapsedSize) > 0;\n },\n getLayout() {\n return getPanelLayout(prop(\"panels\"));\n },\n getRootProps() {\n return normalize.element({\n ...parts.root.attrs,\n \"data-orientation\": orientation,\n \"data-dragging\": dataAttr(dragging),\n id: dom.getRootId(scope),\n dir: prop(\"dir\"),\n style: {\n display: \"flex\",\n flexDirection: horizontal ? \"row\" : \"column\",\n height: \"100%\",\n width: \"100%\",\n overflow: \"hidden\"\n }\n });\n },\n getPanelProps(props) {\n const { id } = props;\n return normalize.element({\n ...parts.panel.attrs,\n \"data-orientation\": orientation,\n \"data-dragging\": dataAttr(dragging),\n dir: prop(\"dir\"),\n \"data-id\": id,\n \"data-index\": findPanelIndex(prop(\"panels\"), id),\n id: dom.getPanelId(scope, id),\n \"data-ownedby\": dom.getRootId(scope),\n style: getPanelStyle(id)\n });\n },\n getResizeTriggerState,\n getResizeTriggerIndicator(props) {\n const triggerState = getResizeTriggerState(props);\n return normalize.element({\n ...parts.resizeTriggerIndicator.attrs,\n \"data-orientation\": orientation,\n \"data-focus\": dataAttr(triggerState.focused),\n \"data-dragging\": dataAttr(triggerState.dragging),\n \"data-disabled\": dataAttr(triggerState.disabled),\n \"data-ownedby\": dom.getRootId(scope)\n });\n },\n getResizeTriggerProps(props) {\n const { id } = props;\n const triggerState = getResizeTriggerState(props);\n const aria = getAriaValue(context.get(\"size\"), prop(\"panels\"), id);\n return normalize.element({\n ...parts.resizeTrigger.attrs,\n dir: prop(\"dir\"),\n id: dom.getResizeTriggerId(scope, id),\n role: \"separator\",\n \"data-id\": id,\n \"data-ownedby\": dom.getRootId(scope),\n tabIndex: triggerState.disabled ? void 0 : 0,\n \"aria-valuenow\": aria.valueNow,\n \"aria-valuemin\": aria.valueMin,\n \"aria-valuemax\": aria.valueMax,\n \"data-orientation\": orientation,\n \"aria-orientation\": orientation,\n \"aria-controls\": `${dom.getPanelId(scope, aria.beforeId)} ${dom.getPanelId(scope, aria.afterId)}`,\n \"data-focus\": dataAttr(triggerState.focused),\n \"data-dragging\": dataAttr(triggerState.dragging),\n \"data-disabled\": dataAttr(triggerState.disabled),\n style: {\n touchAction: \"none\",\n userSelect: \"none\",\n WebkitUserSelect: \"none\",\n flex: \"0 0 auto\",\n pointerEvents: triggerState.disabled ? \"none\" : triggerState.dragging && !triggerState.focused ? \"none\" : void 0,\n cursor: triggerState.disabled || registry ? void 0 : horizontal ? \"col-resize\" : \"row-resize\",\n [horizontal ? \"minHeight\" : \"minWidth\"]: \"0\"\n },\n onPointerDown(event) {\n if (!isLeftClick(event)) return;\n if (triggerState.disabled) {\n event.preventDefault();\n return;\n }\n if (registry) {\n return;\n }\n const point = getEventPoint(event);\n send({ type: \"POINTER_DOWN\", id, point });\n event.currentTarget.setPointerCapture(event.pointerId);\n event.preventDefault();\n event.stopPropagation();\n },\n onPointerUp(event) {\n if (triggerState.disabled) return;\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n },\n onPointerOver() {\n if (triggerState.disabled || registry) return;\n send({ type: \"POINTER_OVER\", id });\n },\n onPointerLeave() {\n if (triggerState.disabled || registry) return;\n send({ type: \"POINTER_LEAVE\", id });\n },\n onBlur() {\n if (triggerState.disabled) return;\n send({ type: \"BLUR\" });\n },\n onFocus() {\n if (triggerState.disabled) return;\n send({ type: \"FOCUS\", id });\n },\n onKeyDown(event) {\n if (event.defaultPrevented) return;\n if (triggerState.disabled) return;\n const keyboardResizeBy = prop(\"keyboardResizeBy\");\n let delta = 0;\n if (event.shiftKey) {\n delta = 10;\n } else if (keyboardResizeBy != null) {\n delta = keyboardResizeBy;\n } else {\n delta = 1;\n }\n const keyMap = {\n Enter() {\n send({ type: \"ENTER\", id });\n },\n ArrowUp() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? 0 : -delta });\n },\n ArrowDown() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? 0 : delta });\n },\n ArrowLeft() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? -delta : 0 });\n },\n ArrowRight() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? delta : 0 });\n },\n Home() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: -100 });\n },\n End() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: 100 });\n },\n F6() {\n send({ type: \"FOCUS.CYCLE\", id, shiftKey: event.shiftKey });\n }\n };\n const key = getEventKey(event, {\n dir: prop(\"dir\"),\n orientation\n });\n const exec = keyMap[key];\n if (exec) {\n exec(event);\n event.preventDefault();\n }\n }\n });\n }\n };\n}\nexport {\n connect\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAUA,SAAS,EAAQ,GAAS,GAAW;CACnC,IAAM,EAAE,UAAO,SAAM,SAAM,aAAU,YAAS,aAAU,GAClD,IAAa,EAAS,aAAa,EACnC,IAAW,EAAM,QAAQ,WAAW,EACpC,IAAW,EAAK,WAAW,EAC3B,IAAc,EAAK,cAAc,EACjC,KAAiB,MAAO;EAC5B,IAAM,IAAS,EAAK,SAAS,EACvB,IAAa,EAAO,WAAW,MAAU,EAAM,OAAO,EAAG,EACzD,IAAc,EAAQ,QAAQ,OAAO,CAAC;EAE5C,OAAO,EAAqB;GAC1B;GACA,WAHgB,EAAQ,IAAI,YAGnB;GACT,OAAO,EAAQ,IAAI,OAAO;GAC1B;GACA;GACD,CAAC;IAEE,KAAyB,MAAU;EACvC,IAAM,EAAE,OAAI,gBAAa,GACnB,IAAY,EAAQ,IAAI,YAAY,EAAE,oBAAoB;EAEhE,OAAO;GACL,UAAU;GACV,SAHc,KAAa,EAAQ,IAAI,gBAAgB,EAAE,oBAAoB;GAI7E,UAAU,CAAC,CAAC;GACb;;CAEH,OAAO;EACL;EACA;EACA,YAAY;GACV,OAAO,EAAK,SAAS;;EAEvB,aAAa,GAAI;GACf,OAAO,EAAa,EAAK,SAAS,EAAE,EAAG;;EAEzC,WAAW;GACT,OAAO,EAAK,SAAS,CAAC,SAAS,GAAO,GAAO,MAAQ;IACnD,IAAM,IAAY,EAAI,IAAQ;IAO9B,OANI,KAAS,IACJ,CACL;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f,IADI,EAAM,oBACN,EAAa,UAAU;KAC3B,IAAM,IAAmB,EAAK,mBAAmB,EAC7C,IAAQ;KACZ,AAGE,IAHE,EAAM,WACA,KACC,KAGD;KAgCV,IAAM,IAAO;MA7BX,QAAQ;OACN,EAAK;QAAE,MAAM;QAAS;QAAI,CAAC;;MAE7B,UAAU;OACR,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO,IAAa,IAAI,CAAC;QAAO,CAAC;;MAErE,YAAY;OACV,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO,IAAa,IAAI;QAAO,CAAC;;MAEpE,YAAY;OACV,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO,IAAa,CAAC,IAAQ;QAAG,CAAC;;MAErE,aAAa;OACX,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO,IAAa,IAAQ;QAAG,CAAC;;MAEpE,OAAO;OACL,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO;QAAM,CAAC;;MAElD,MAAM;OACJ,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO;QAAK,CAAC;;MAEjD,KAAK;OACH,EAAK;QAAE,MAAM;QAAe;QAAI,UAAU,EAAM;QAAU,CAAC;;MAO5C,CAJP,EAAY,GAAO;MAC7B,KAAK,EAAK,MAAM;MAChB;MACD,CACsB;KACvB,AAAI,MACF,EAAK,EAAM,EACX,EAAM,gBAAgB;;IAG3B,CAAC;;EAEL"}
|
|
1
|
+
{"version":3,"file":"splitter.connect.js","names":["dom.getRootId","dom.getPanelId","dom.getResizeTriggerId"],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.connect.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.connect.ts\nimport { dataAttr, getEventKey, getEventPoint, isLeftClick } from \"@zag-js/dom-query\";\nimport { ensure } from \"@zag-js/utils\";\nimport { parts } from \"./splitter.anatomy.mjs\";\nimport * as dom from \"./splitter.dom.mjs\";\nimport { getAriaValue } from \"./utils/aria.mjs\";\nimport { fuzzyCompareNumbers, fuzzyNumbersEqual } from \"./utils/fuzzy.mjs\";\nimport { findPanelIndex, getPanelById, getPanelFlexBoxStyle, getPanelLayout, panelDataHelper } from \"./utils/panel.mjs\";\nfunction connect(service, normalize) {\n const { state, send, prop, computed, context, scope } = service;\n const horizontal = computed(\"horizontal\");\n const dragging = state.matches(\"dragging\");\n const registry = prop(\"registry\");\n const orientation = prop(\"orientation\");\n const getPanelStyle = (id) => {\n const panels = prop(\"panels\");\n const panelIndex = panels.findIndex((panel) => panel.id === id);\n const defaultSize = context.initial(\"size\")[panelIndex];\n const dragState = context.get(\"dragState\");\n return getPanelFlexBoxStyle({\n defaultSize,\n dragState,\n sizes: context.get(\"size\"),\n panels,\n panelIndex\n });\n };\n const getResizeTriggerState = (props) => {\n const { id, disabled } = props;\n const dragging2 = context.get(\"dragState\")?.resizeTriggerId === id;\n const focused = dragging2 || context.get(\"keyboardState\")?.resizeTriggerId === id;\n return {\n dragging: dragging2,\n focused,\n disabled: !!disabled\n };\n };\n return {\n dragging,\n orientation,\n getPanels() {\n return prop(\"panels\");\n },\n getPanelById(id) {\n return getPanelById(prop(\"panels\"), id);\n },\n getItems() {\n return prop(\"panels\").flatMap((panel, index, arr) => {\n const nextPanel = arr[index + 1];\n if (panel && nextPanel) {\n return [\n { type: \"panel\", id: panel.id },\n { type: \"handle\", id: `${panel.id}:${nextPanel.id}` }\n ];\n }\n return [{ type: \"panel\", id: panel.id }];\n });\n },\n getSizes() {\n return context.get(\"size\");\n },\n setSizes(size) {\n send({ type: \"SIZE.SET\", size });\n },\n resetSizes() {\n send({ type: \"SIZE.SET\", size: context.initial(\"size\") });\n },\n collapsePanel(id) {\n send({ type: \"PANEL.COLLAPSE\", id });\n },\n expandPanel(id, minSize) {\n send({ type: \"PANEL.EXPAND\", id, minSize });\n },\n resizePanel(id, unsafePanelSize) {\n send({ type: \"PANEL.RESIZE\", id, size: unsafePanelSize });\n },\n getPanelSize(id) {\n const panels = prop(\"panels\");\n const size = context.get(\"size\");\n const panelData = getPanelById(panels, id);\n const { panelSize } = panelDataHelper(panels, panelData, size);\n ensure(panelSize, () => `Panel size not found for panel \"${panelData.id}\"`);\n return panelSize;\n },\n isPanelCollapsed(id) {\n const panels = prop(\"panels\");\n const size = context.get(\"size\");\n const panelData = getPanelById(panels, id);\n const { collapsedSize = 0, collapsible, panelSize } = panelDataHelper(panels, panelData, size);\n ensure(panelSize, () => `Panel size not found for panel \"${panelData.id}\"`);\n return collapsible === true && fuzzyNumbersEqual(panelSize, collapsedSize);\n },\n isPanelExpanded(id) {\n const panels = prop(\"panels\");\n const size = context.get(\"size\");\n const panelData = getPanelById(panels, id);\n const { collapsedSize = 0, collapsible, panelSize } = panelDataHelper(panels, panelData, size);\n ensure(panelSize, () => `Panel size not found for panel \"${panelData.id}\"`);\n return !collapsible || fuzzyCompareNumbers(panelSize, collapsedSize) > 0;\n },\n getLayout() {\n return getPanelLayout(prop(\"panels\"));\n },\n getRootProps() {\n return normalize.element({\n ...parts.root.attrs,\n \"data-orientation\": orientation,\n \"data-dragging\": dataAttr(dragging),\n id: dom.getRootId(scope),\n dir: prop(\"dir\"),\n style: {\n display: \"flex\",\n flexDirection: horizontal ? \"row\" : \"column\",\n height: \"100%\",\n width: \"100%\",\n overflow: \"hidden\"\n }\n });\n },\n getPanelProps(props) {\n const { id } = props;\n return normalize.element({\n ...parts.panel.attrs,\n \"data-orientation\": orientation,\n \"data-dragging\": dataAttr(dragging),\n dir: prop(\"dir\"),\n \"data-id\": id,\n \"data-index\": findPanelIndex(prop(\"panels\"), id),\n id: dom.getPanelId(scope, id),\n \"data-ownedby\": dom.getRootId(scope),\n style: getPanelStyle(id)\n });\n },\n getResizeTriggerState,\n getResizeTriggerIndicator(props) {\n const triggerState = getResizeTriggerState(props);\n return normalize.element({\n ...parts.resizeTriggerIndicator.attrs,\n \"data-orientation\": orientation,\n \"data-focus\": dataAttr(triggerState.focused),\n \"data-dragging\": dataAttr(triggerState.dragging),\n \"data-disabled\": dataAttr(triggerState.disabled),\n \"data-ownedby\": dom.getRootId(scope)\n });\n },\n getResizeTriggerProps(props) {\n const { id } = props;\n const triggerState = getResizeTriggerState(props);\n const aria = getAriaValue(context.get(\"size\"), prop(\"panels\"), id);\n return normalize.element({\n ...parts.resizeTrigger.attrs,\n dir: prop(\"dir\"),\n id: dom.getResizeTriggerId(scope, id),\n role: \"separator\",\n \"data-id\": id,\n \"data-ownedby\": dom.getRootId(scope),\n tabIndex: triggerState.disabled ? void 0 : 0,\n \"aria-valuenow\": aria.valueNow,\n \"aria-valuemin\": aria.valueMin,\n \"aria-valuemax\": aria.valueMax,\n \"data-orientation\": orientation,\n \"aria-orientation\": orientation,\n \"aria-controls\": `${dom.getPanelId(scope, aria.beforeId)} ${dom.getPanelId(scope, aria.afterId)}`,\n \"data-focus\": dataAttr(triggerState.focused),\n \"data-dragging\": dataAttr(triggerState.dragging),\n \"data-disabled\": dataAttr(triggerState.disabled),\n style: {\n touchAction: \"none\",\n userSelect: \"none\",\n WebkitUserSelect: \"none\",\n flex: \"0 0 auto\",\n pointerEvents: triggerState.disabled ? \"none\" : triggerState.dragging && !triggerState.focused ? \"none\" : void 0,\n cursor: triggerState.disabled || registry ? void 0 : horizontal ? \"col-resize\" : \"row-resize\",\n [horizontal ? \"minHeight\" : \"minWidth\"]: \"0\"\n },\n onPointerDown(event) {\n if (!isLeftClick(event)) return;\n if (triggerState.disabled) {\n event.preventDefault();\n return;\n }\n if (registry) {\n return;\n }\n const point = getEventPoint(event);\n send({ type: \"POINTER_DOWN\", id, point });\n event.currentTarget.setPointerCapture(event.pointerId);\n event.preventDefault();\n event.stopPropagation();\n },\n onPointerUp(event) {\n if (triggerState.disabled) return;\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n },\n onPointerOver() {\n if (triggerState.disabled || registry) return;\n send({ type: \"POINTER_OVER\", id });\n },\n onPointerLeave() {\n if (triggerState.disabled || registry) return;\n send({ type: \"POINTER_LEAVE\", id });\n },\n onBlur() {\n if (triggerState.disabled) return;\n send({ type: \"BLUR\" });\n },\n onFocus() {\n if (triggerState.disabled) return;\n send({ type: \"FOCUS\", id });\n },\n onKeyDown(event) {\n if (event.defaultPrevented) return;\n if (triggerState.disabled) return;\n const keyboardResizeBy = prop(\"keyboardResizeBy\");\n let delta = 0;\n if (event.shiftKey) {\n delta = 10;\n } else if (keyboardResizeBy != null) {\n delta = keyboardResizeBy;\n } else {\n delta = 1;\n }\n const keyMap = {\n Enter() {\n send({ type: \"ENTER\", id });\n },\n ArrowUp() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? 0 : -delta });\n },\n ArrowDown() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? 0 : delta });\n },\n ArrowLeft() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? -delta : 0 });\n },\n ArrowRight() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: horizontal ? delta : 0 });\n },\n Home() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: -100 });\n },\n End() {\n send({ type: \"KEYBOARD_MOVE\", id, delta: 100 });\n },\n F6() {\n send({ type: \"FOCUS.CYCLE\", id, shiftKey: event.shiftKey });\n }\n };\n const key = getEventKey(event, {\n dir: prop(\"dir\"),\n orientation\n });\n const exec = keyMap[key];\n if (exec) {\n exec(event);\n event.preventDefault();\n }\n }\n });\n }\n };\n}\nexport {\n connect\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAUA,SAAS,EAAQ,GAAS,GAAW;CACnC,IAAM,EAAE,UAAO,SAAM,SAAM,aAAU,YAAS,aAAU,GAClD,IAAa,EAAS,YAAY,GAClC,IAAW,EAAM,QAAQ,UAAU,GACnC,IAAW,EAAK,UAAU,GAC1B,IAAc,EAAK,aAAa,GAChC,KAAiB,MAAO;EAC5B,IAAM,IAAS,EAAK,QAAQ,GACtB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AiB;QAAI,OAAO,IAAa,IAAQ;OAAE,CAAC;MACnE;MACA,OAAO;OACL,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO;OAAK,CAAC;MACjD;MACA,MAAM;OACJ,EAAK;QAAE,MAAM;QAAiB;QAAI,OAAO;OAAI,CAAC;MAChD;MACA,KAAK;OACH,EAAK;QAAE,MAAM;QAAe;QAAI,UAAU,EAAM;OAAS,CAAC;MAC5D;KAMgB,EAJN,EAAY,GAAO;MAC7B,KAAK,EAAK,KAAK;MACf;KACF,CACsB;KACtB,AAAI,MACF,EAAK,CAAK,GACV,EAAM,eAAe;IAEzB;GACF,CAAC;EACH;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitter.dom.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.dom.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.dom.ts\nimport { queryAll } from \"@zag-js/dom-query\";\nvar getRootId = (ctx) => ctx.ids?.root ?? `splitter:${ctx.id}`;\nvar getResizeTriggerId = (ctx, id) => ctx.ids?.resizeTrigger?.(id) ?? `splitter:${ctx.id}:splitter:${id}`;\nvar getLabelId = (ctx) => ctx.ids?.label ?? `splitter:${ctx.id}:label`;\nvar getPanelId = (ctx, id) => ctx.ids?.panel?.(id) ?? `splitter:${ctx.id}:panel:${id}`;\nvar getPanelEls = (ctx) => queryAll(getRootEl(ctx), `[data-part=panel][data-ownedby=${getRootId(ctx)}]`);\nvar getGlobalCursorId = (ctx) => `splitter:${ctx.id}:global-cursor`;\nvar getRootEl = (ctx) => ctx.getById(getRootId(ctx));\nvar getResizeTriggerEl = (ctx, id) => ctx.getById(getResizeTriggerId(ctx, id));\nvar getPanelEl = (ctx, id) => ctx.getById(getPanelId(ctx, id));\nvar getCursor = (state, x) => {\n let cursor = x ? \"col-resize\" : \"row-resize\";\n if (state.isAtMin) cursor = x ? \"e-resize\" : \"s-resize\";\n if (state.isAtMax) cursor = x ? \"w-resize\" : \"n-resize\";\n return cursor;\n};\nvar getResizeTriggerEls = (ctx) => {\n return queryAll(getRootEl(ctx), `[role=separator][data-ownedby='${CSS.escape(getRootId(ctx))}']`);\n};\nvar getGlobalCursorEl = (ctx) => {\n return ctx.getDoc().getElementById(getGlobalCursorId(ctx));\n};\nvar setupGlobalCursor = (ctx, state, x, nonce) => {\n const styleEl = getGlobalCursorEl(ctx);\n const textContent = `* { cursor: ${getCursor(state, x)} !important; }`;\n if (styleEl) {\n styleEl.textContent = textContent;\n } else {\n const style = ctx.getDoc().createElement(\"style\");\n if (nonce) style.nonce = nonce;\n style.id = getGlobalCursorId(ctx);\n style.textContent = textContent;\n ctx.getDoc().head.appendChild(style);\n }\n};\nvar removeGlobalCursor = (ctx) => {\n const styleEl = getGlobalCursorEl(ctx);\n styleEl?.remove();\n};\nexport {\n getCursor,\n getGlobalCursorEl,\n getGlobalCursorId,\n getLabelId,\n getPanelEl,\n getPanelEls,\n getPanelId,\n getResizeTriggerEl,\n getResizeTriggerEls,\n getResizeTriggerId,\n getRootEl,\n getRootId,\n removeGlobalCursor,\n setupGlobalCursor\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAIA,IAAI,KAAa,MAAQ,EAAI,KAAK,QAAQ,YAAY,EAAI,MACtD,KAAsB,GAAK,MAAO,EAAI,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"splitter.dom.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.dom.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.dom.ts\nimport { queryAll } from \"@zag-js/dom-query\";\nvar getRootId = (ctx) => ctx.ids?.root ?? `splitter:${ctx.id}`;\nvar getResizeTriggerId = (ctx, id) => ctx.ids?.resizeTrigger?.(id) ?? `splitter:${ctx.id}:splitter:${id}`;\nvar getLabelId = (ctx) => ctx.ids?.label ?? `splitter:${ctx.id}:label`;\nvar getPanelId = (ctx, id) => ctx.ids?.panel?.(id) ?? `splitter:${ctx.id}:panel:${id}`;\nvar getPanelEls = (ctx) => queryAll(getRootEl(ctx), `[data-part=panel][data-ownedby=${getRootId(ctx)}]`);\nvar getGlobalCursorId = (ctx) => `splitter:${ctx.id}:global-cursor`;\nvar getRootEl = (ctx) => ctx.getById(getRootId(ctx));\nvar getResizeTriggerEl = (ctx, id) => ctx.getById(getResizeTriggerId(ctx, id));\nvar getPanelEl = (ctx, id) => ctx.getById(getPanelId(ctx, id));\nvar getCursor = (state, x) => {\n let cursor = x ? \"col-resize\" : \"row-resize\";\n if (state.isAtMin) cursor = x ? \"e-resize\" : \"s-resize\";\n if (state.isAtMax) cursor = x ? \"w-resize\" : \"n-resize\";\n return cursor;\n};\nvar getResizeTriggerEls = (ctx) => {\n return queryAll(getRootEl(ctx), `[role=separator][data-ownedby='${CSS.escape(getRootId(ctx))}']`);\n};\nvar getGlobalCursorEl = (ctx) => {\n return ctx.getDoc().getElementById(getGlobalCursorId(ctx));\n};\nvar setupGlobalCursor = (ctx, state, x, nonce) => {\n const styleEl = getGlobalCursorEl(ctx);\n const textContent = `* { cursor: ${getCursor(state, x)} !important; }`;\n if (styleEl) {\n styleEl.textContent = textContent;\n } else {\n const style = ctx.getDoc().createElement(\"style\");\n if (nonce) style.nonce = nonce;\n style.id = getGlobalCursorId(ctx);\n style.textContent = textContent;\n ctx.getDoc().head.appendChild(style);\n }\n};\nvar removeGlobalCursor = (ctx) => {\n const styleEl = getGlobalCursorEl(ctx);\n styleEl?.remove();\n};\nexport {\n getCursor,\n getGlobalCursorEl,\n getGlobalCursorId,\n getLabelId,\n getPanelEl,\n getPanelEls,\n getPanelId,\n getResizeTriggerEl,\n getResizeTriggerEls,\n getResizeTriggerId,\n getRootEl,\n getRootId,\n removeGlobalCursor,\n setupGlobalCursor\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAIA,IAAI,KAAa,MAAQ,EAAI,KAAK,QAAQ,YAAY,EAAI,MACtD,KAAsB,GAAK,MAAO,EAAI,KAAK,gBAAgB,CAAE,KAAK,YAAY,EAAI,GAAG,YAAY,KAEjG,KAAc,GAAK,MAAO,EAAI,KAAK,QAAQ,CAAE,KAAK,YAAY,EAAI,GAAG,SAAS,KAE9E,KAAqB,MAAQ,YAAY,EAAI,GAAG,iBAChD,KAAa,MAAQ,EAAI,QAAQ,EAAU,CAAG,CAAC,GAC/C,KAAsB,GAAK,MAAO,EAAI,QAAQ,EAAmB,GAAK,CAAE,CAAC,GAEzE,KAAa,GAAO,MAAM;CAC5B,IAAI,IAAS,IAAI,eAAe;CAGhC,OAFI,EAAM,YAAS,IAAS,IAAI,aAAa,aACzC,EAAM,YAAS,IAAS,IAAI,aAAa,aACtC;AACT,GACI,KAAuB,MAClB,EAAS,EAAU,CAAG,GAAG,kCAAkC,IAAI,OAAO,EAAU,CAAG,CAAC,EAAE,GAAG,GAE9F,KAAqB,MAChB,EAAI,OAAO,EAAE,eAAe,EAAkB,CAAG,CAAC,GAEvD,KAAqB,GAAK,GAAO,GAAG,MAAU;CAChD,IAAM,IAAU,EAAkB,CAAG,GAC/B,IAAc,eAAe,EAAU,GAAO,CAAC,EAAE;CACvD,IAAI,GACF,EAAQ,cAAc;MACjB;EACL,IAAM,IAAQ,EAAI,OAAO,EAAE,cAAc,OAAO;EAIhD,AAHI,MAAO,EAAM,QAAQ,IACzB,EAAM,KAAK,EAAkB,CAAG,GAChC,EAAM,cAAc,GACpB,EAAI,OAAO,EAAE,KAAK,YAAY,CAAK;CACrC;AACF,GACI,KAAsB,MAAQ;CAEhC,EADkC,CAC5B,GAAG,OAAO;AAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitter.machine.js","names":["dom.getResizeTriggerEls","dom.getResizeTriggerId","dom.getRootEl","dom.getResizeTriggerEl"],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.machine.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.machine.ts\nimport { createMachine } from \"@zag-js/core\";\nimport { observeChildren, trackPointerMove } from \"@zag-js/dom-query\";\nimport { ensure, ensureProps, isEqual, next, prev, setRafTimeout } from \"@zag-js/utils\";\nimport * as dom from \"./splitter.dom.mjs\";\nimport { getAriaValue } from \"./utils/aria.mjs\";\nimport { fuzzyNumbersEqual, fuzzySizeEqual } from \"./utils/fuzzy.mjs\";\nimport {\n findPanelDataIndex,\n getPanelById,\n getPanelLayout,\n getUnsafeDefaultSize,\n panelDataHelper,\n serializePanels,\n sortPanels\n} from \"./utils/panel.mjs\";\nimport { resizeByDelta } from \"./utils/resize-by-delta.mjs\";\nimport { validateSizes } from \"./utils/validate-sizes.mjs\";\nvar machine = createMachine({\n props({ props }) {\n ensureProps(props, [\"panels\"]);\n return {\n orientation: \"horizontal\",\n defaultSize: [],\n dir: \"ltr\",\n ...props,\n panels: sortPanels(props.panels)\n };\n },\n initialState() {\n return \"idle\";\n },\n context({ prop, bindable, getContext, getRefs }) {\n return {\n size: bindable(() => ({\n value: prop(\"size\"),\n defaultValue: prop(\"defaultSize\"),\n isEqual(a, b) {\n return b != null && fuzzySizeEqual(a, b);\n },\n onChange(value) {\n const ctx = getContext();\n const refs = getRefs();\n const sizesBeforeCollapse = refs.get(\"panelSizeBeforeCollapse\");\n const expandToSizes = Object.fromEntries(sizesBeforeCollapse.entries());\n const resizeTriggerId = ctx.get(\"dragState\")?.resizeTriggerId ?? null;\n const layout = getPanelLayout(prop(\"panels\"));\n prop(\"onResize\")?.({\n size: value,\n layout,\n resizeTriggerId,\n expandToSizes\n });\n }\n })),\n dragState: bindable(() => ({\n defaultValue: null\n })),\n keyboardState: bindable(() => ({\n defaultValue: null\n }))\n };\n },\n watch({ track, action, prop }) {\n track([() => serializePanels(prop(\"panels\"))], () => {\n action([\"syncSize\"]);\n });\n },\n refs() {\n return {\n panelSizeBeforeCollapse: /* @__PURE__ */ new Map(),\n prevDelta: 0,\n panelIdToLastNotifiedSizeMap: /* @__PURE__ */ new Map()\n };\n },\n computed: {\n horizontal({ prop }) {\n return prop(\"orientation\") === \"horizontal\";\n }\n },\n on: {\n \"SIZE.SET\": {\n actions: [\"setSize\"]\n },\n \"PANEL.COLLAPSE\": {\n actions: [\"collapsePanel\"]\n },\n \"PANEL.EXPAND\": {\n actions: [\"expandPanel\"]\n },\n \"PANEL.RESIZE\": {\n actions: [\"resizePanel\"]\n }\n },\n entry: [\"syncSize\"],\n exit: [\"clearGlobalCursor\"],\n effects: [\"trackResizeHandles\"],\n states: {\n idle: {\n entry: [\"clearDraggingState\", \"clearKeyboardState\"],\n on: {\n POINTER_OVER: {\n target: \"hover:temp\",\n actions: [\"setKeyboardState\"]\n },\n FOCUS: {\n target: \"focused\",\n actions: [\"setKeyboardState\"]\n },\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n }\n }\n },\n \"hover:temp\": {\n effects: [\"waitForHoverDelay\"],\n on: {\n HOVER_DELAY: {\n target: \"hover\"\n },\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n },\n POINTER_LEAVE: {\n target: \"idle\"\n }\n }\n },\n hover: {\n tags: [\"focus\"],\n on: {\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n },\n POINTER_LEAVE: {\n target: \"idle\"\n }\n }\n },\n focused: {\n tags: [\"focus\"],\n on: {\n BLUR: {\n target: \"idle\"\n },\n ENTER: {\n actions: [\"collapseOrExpandPanel\"]\n },\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n },\n KEYBOARD_MOVE: {\n actions: [\"invokeOnResizeStart\", \"setKeyboardValue\", \"invokeOnResizeEnd\"]\n },\n \"FOCUS.CYCLE\": {\n actions: [\"focusNextResizeTrigger\"]\n }\n }\n },\n dragging: {\n tags: [\"focus\"],\n effects: [\"trackPointerMove\"],\n entry: [\"invokeOnResizeStart\"],\n on: {\n POINTER_MOVE: {\n actions: [\"setPointerValue\", \"setGlobalCursor\"]\n },\n POINTER_UP: {\n target: \"idle\",\n actions: [\"invokeOnResizeEnd\", \"clearGlobalCursor\"]\n }\n }\n }\n },\n implementations: {\n effects: {\n trackResizeHandles: ({ prop, scope, send }) => {\n const registry = prop(\"registry\");\n if (!registry) return;\n let cleanups = [];\n const exec = () => {\n cleanups.forEach((fn) => fn());\n cleanups = dom.getResizeTriggerEls(scope).map((resizeTriggerEl) => {\n const id = resizeTriggerEl.dataset.id;\n if (!id) return;\n return registry.register({\n id: dom.getResizeTriggerId(scope, id),\n element: resizeTriggerEl,\n orientation: prop(\"orientation\"),\n onActivate(point) {\n send({ type: \"POINTER_DOWN\", id, point });\n },\n onDeactivate() {\n send({ type: \"POINTER_UP\" });\n }\n });\n }).filter(Boolean);\n };\n exec();\n const observeCleanup = observeChildren(dom.getRootEl(scope), {\n callback: exec\n });\n return () => {\n cleanups.forEach((fn) => fn());\n observeCleanup?.();\n };\n },\n waitForHoverDelay: ({ send }) => {\n return setRafTimeout(() => {\n send({ type: \"HOVER_DELAY\" });\n }, 250);\n },\n trackPointerMove: ({ scope, send }) => {\n const doc = scope.getDoc();\n return trackPointerMove(doc, {\n onPointerMove(info) {\n send({ type: \"POINTER_MOVE\", point: info.point });\n },\n onPointerUp() {\n send({ type: \"POINTER_UP\" });\n }\n });\n }\n },\n actions: {\n setSize(params) {\n const { context, event, prop } = params;\n const unsafeSize = event.size;\n const prevSize = context.get(\"size\");\n const panels = prop(\"panels\");\n const safeSize = validateSizes({\n size: unsafeSize,\n panels\n });\n if (!isEqual(prevSize, safeSize)) {\n setSize(params, safeSize);\n }\n },\n syncSize({ context, prop }) {\n const panels = prop(\"panels\");\n let prevSize = context.get(\"size\");\n let unsafeSize = null;\n if (prevSize.length === 0) {\n unsafeSize = getUnsafeDefaultSize({\n panels,\n size: context.initial(\"size\")\n });\n }\n const nextSize = validateSizes({\n size: unsafeSize ?? prevSize,\n panels\n });\n if (!isEqual(prevSize, nextSize)) {\n context.set(\"size\", nextSize);\n }\n },\n setDraggingState({ context, event, prop, scope }) {\n const orientation = prop(\"orientation\");\n const size = context.get(\"size\");\n const resizeTriggerId = event.id;\n const panelGroupEl = dom.getRootEl(scope);\n if (!panelGroupEl) return;\n const handleElement = dom.getResizeTriggerEl(scope, resizeTriggerId);\n ensure(handleElement, () => `Drag handle element not found for id \"${resizeTriggerId}\"`);\n const initialCursorPosition = orientation === \"horizontal\" ? event.point.x : event.point.y;\n context.set(\"dragState\", {\n resizeTriggerId: event.id,\n resizeTriggerRect: handleElement.getBoundingClientRect(),\n initialCursorPosition,\n initialSize: size\n });\n },\n clearDraggingState({ context }) {\n context.set(\"dragState\", null);\n },\n setKeyboardState({ context, event }) {\n context.set(\"keyboardState\", {\n resizeTriggerId: event.id\n });\n },\n clearKeyboardState({ context }) {\n context.set(\"keyboardState\", null);\n },\n collapsePanel(params) {\n const { context, prop, event, refs } = params;\n const prevSize = context.get(\"size\");\n const panels = prop(\"panels\");\n const panel = panels.find((panel2) => panel2.id === event.id);\n ensure(panel, () => `Panel data not found for id \"${event.id}\"`);\n if (panel.collapsible) {\n const { collapsedSize = 0, panelSize, pivotIndices } = panelDataHelper(panels, panel, prevSize);\n ensure(panelSize, () => `Panel size not found for panel \"${panel.id}\"`);\n if (!fuzzyNumbersEqual(panelSize, collapsedSize)) {\n refs.get(\"panelSizeBeforeCollapse\").set(panel.id, panelSize);\n const isLastPanel = findPanelDataIndex(panels, panel) === panels.length - 1;\n const delta = isLastPanel ? panelSize - collapsedSize : collapsedSize - panelSize;\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"imperative-api\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n }\n }\n },\n expandPanel(params) {\n const { context, prop, event, refs } = params;\n const panels = prop(\"panels\");\n const prevSize = context.get(\"size\");\n const panel = panels.find((panel2) => panel2.id === event.id);\n ensure(panel, () => `Panel data not found for id \"${event.id}\"`);\n if (panel.collapsible) {\n const {\n collapsedSize = 0,\n panelSize = 0,\n minSize: minSizeFromProps = 0,\n pivotIndices\n } = panelDataHelper(panels, panel, prevSize);\n const minSize = event.minSize ?? minSizeFromProps;\n if (fuzzyNumbersEqual(panelSize, collapsedSize)) {\n const prevPanelSize = refs.get(\"panelSizeBeforeCollapse\").get(panel.id);\n const baseSize = prevPanelSize != null && prevPanelSize >= minSize ? prevPanelSize : minSize;\n const isLastPanel = findPanelDataIndex(panels, panel) === panels.length - 1;\n const delta = isLastPanel ? panelSize - baseSize : baseSize - panelSize;\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"imperative-api\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n }\n }\n },\n resizePanel(params) {\n const { context, prop, event } = params;\n const prevSize = context.get(\"size\");\n const panels = prop(\"panels\");\n const panel = getPanelById(panels, event.id);\n const unsafePanelSize = event.size;\n const { panelSize, pivotIndices } = panelDataHelper(panels, panel, prevSize);\n ensure(panelSize, () => `Panel size not found for panel \"${panel.id}\"`);\n const isLastPanel = findPanelDataIndex(panels, panel) === panels.length - 1;\n const delta = isLastPanel ? panelSize - unsafePanelSize : unsafePanelSize - panelSize;\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"imperative-api\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n },\n setPointerValue(params) {\n const { context, event, prop, scope } = params;\n const dragState = context.get(\"dragState\");\n if (!dragState) return;\n const { resizeTriggerId, initialSize, initialCursorPosition } = dragState;\n const panels = prop(\"panels\");\n const panelGroupElement = dom.getRootEl(scope);\n ensure(panelGroupElement, () => `Panel group element not found`);\n const pivotIndices = resizeTriggerId.split(\":\").map((id) => panels.findIndex((panel) => panel.id === id));\n const horizontal = prop(\"orientation\") === \"horizontal\";\n const cursorPosition = horizontal ? event.point.x : event.point.y;\n const groupRect = panelGroupElement.getBoundingClientRect();\n const groupSizeInPixels = horizontal ? groupRect.width : groupRect.height;\n const offsetPixels = cursorPosition - initialCursorPosition;\n const offsetPercentage = offsetPixels / groupSizeInPixels * 100;\n const prevSize = context.get(\"size\");\n const nextSize = resizeByDelta({\n delta: offsetPercentage,\n initialSize: initialSize ?? prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"mouse-or-touch\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n },\n setKeyboardValue(params) {\n const { context, event, prop } = params;\n const panelDataArray = prop(\"panels\");\n const resizeTriggerId = event.id;\n const delta = event.delta;\n const pivotIndices = resizeTriggerId.split(\":\").map((id) => panelDataArray.findIndex((panelData) => panelData.id === id));\n const prevSize = context.get(\"size\");\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels: panelDataArray,\n pivotIndices,\n prevSize,\n trigger: \"keyboard\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n },\n invokeOnResizeEnd({ context, prop }) {\n queueMicrotask(() => {\n const dragState = context.get(\"dragState\");\n prop(\"onResizeEnd\")?.({\n size: context.get(\"size\"),\n resizeTriggerId: dragState?.resizeTriggerId ?? null\n });\n });\n },\n invokeOnResizeStart({ prop }) {\n queueMicrotask(() => {\n prop(\"onResizeStart\")?.();\n });\n },\n collapseOrExpandPanel(params) {\n const { context, prop } = params;\n const panelDataArray = prop(\"panels\");\n const sizes = context.get(\"size\");\n const resizeTriggerId = context.get(\"keyboardState\")?.resizeTriggerId;\n const [idBefore, idAfter] = resizeTriggerId?.split(\":\") ?? [];\n const index = panelDataArray.findIndex((panelData2) => panelData2.id === idBefore);\n if (index === -1) return;\n const panelData = panelDataArray[index];\n ensure(panelData, () => `No panel data found for index ${index}`);\n const size = sizes[index];\n const { collapsedSize = 0, collapsible, minSize = 0 } = panelData;\n if (size != null && collapsible) {\n const pivotIndices = [idBefore, idAfter].map(\n (id) => panelDataArray.findIndex((panelData2) => panelData2.id === id)\n );\n const nextSize = resizeByDelta({\n delta: fuzzyNumbersEqual(size, collapsedSize) ? minSize - collapsedSize : collapsedSize - size,\n initialSize: context.initial(\"size\"),\n panels: panelDataArray,\n pivotIndices,\n prevSize: sizes,\n trigger: \"keyboard\"\n });\n if (!isEqual(sizes, nextSize)) {\n setSize(params, nextSize);\n }\n }\n },\n setGlobalCursor({ context, scope, prop }) {\n const registry = prop(\"registry\");\n if (registry) return;\n const dragState = context.get(\"dragState\");\n if (!dragState) return;\n const panels = prop(\"panels\");\n const horizontal = prop(\"orientation\") === \"horizontal\";\n const [idBefore] = dragState.resizeTriggerId.split(\":\");\n const indexBefore = panels.findIndex((panel2) => panel2.id === idBefore);\n const panel = panels[indexBefore];\n const size = context.get(\"size\");\n const aria = getAriaValue(size, panels, dragState.resizeTriggerId);\n const isAtMin = fuzzyNumbersEqual(aria.valueNow, aria.valueMin) || fuzzyNumbersEqual(aria.valueNow, panel.collapsedSize);\n const isAtMax = fuzzyNumbersEqual(aria.valueNow, aria.valueMax);\n const cursorState = { isAtMin, isAtMax };\n dom.setupGlobalCursor(scope, cursorState, horizontal, prop(\"nonce\"));\n },\n clearGlobalCursor({ scope }) {\n dom.removeGlobalCursor(scope);\n },\n focusNextResizeTrigger({ event, scope }) {\n const resizeTriggers = dom.getResizeTriggerEls(scope);\n const index = resizeTriggers.findIndex((el) => el.dataset.id === event.id);\n const handleEl = event.shiftKey ? prev(resizeTriggers, index) : next(resizeTriggers, index);\n handleEl?.focus();\n }\n }\n }\n});\nfunction setSize(params, sizes) {\n const { refs, prop, context } = params;\n const panelsArray = prop(\"panels\");\n const onCollapse = prop(\"onCollapse\");\n const onExpand = prop(\"onExpand\");\n const onResizeStart = prop(\"onResizeStart\");\n const onResizeEnd = prop(\"onResizeEnd\");\n const panelIdToLastNotifiedSizeMap = refs.get(\"panelIdToLastNotifiedSizeMap\");\n const dragState = context.get(\"dragState\");\n const keyboardState = context.get(\"keyboardState\");\n const isProgrammatic = dragState === null && keyboardState === null;\n if (isProgrammatic && onResizeStart) {\n queueMicrotask(() => {\n onResizeStart();\n });\n }\n context.set(\"size\", sizes);\n sizes.forEach((size, index) => {\n const panelData = panelsArray[index];\n ensure(panelData, () => `Panel data not found for index ${index}`);\n const { collapsedSize = 0, collapsible, id: panelId } = panelData;\n const lastNotifiedSize = panelIdToLastNotifiedSizeMap.get(panelId);\n if (lastNotifiedSize == null || size !== lastNotifiedSize) {\n panelIdToLastNotifiedSizeMap.set(panelId, size);\n if (collapsible && (onCollapse || onExpand)) {\n if ((lastNotifiedSize == null || fuzzyNumbersEqual(lastNotifiedSize, collapsedSize)) && !fuzzyNumbersEqual(size, collapsedSize)) {\n onExpand?.({ panelId, size });\n }\n if (onCollapse && (lastNotifiedSize == null || !fuzzyNumbersEqual(lastNotifiedSize, collapsedSize)) && fuzzyNumbersEqual(size, collapsedSize)) {\n onCollapse?.({ panelId, size });\n }\n }\n }\n });\n if (isProgrammatic && onResizeEnd) {\n queueMicrotask(() => {\n onResizeEnd({\n size: sizes,\n resizeTriggerId: null\n // Programmatic changes don't have a resize trigger\n });\n });\n }\n}\nexport {\n machine\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;AAoBA,IAAI,IAAU,EAAc;CAC1B,MAAM,EAAE,YAAS;EAEf,OADA,EAAY,GAAO,CAAC,SAAS,CAAC,EACvB;GACL,aAAa;GACb,aAAa,EAAE;GACf,KAAK;GACL,GAAG;GACH,QAAQ,EAAW,EAAM,OAAO;GACjC;;CAEH,eAAe;EACb,OAAO;;CAET,QAAQ,EAAE,SAAM,aAAU,eAAY,cAAW;EAC/C,OAAO;GACL,MAAM,SAAgB;IACpB,OAAO,EAAK,OAAO;IACnB,cAAc,EAAK,cAAc;IACjC,QAAQ,GAAG,GAAG;KACZ,OAAO,KAAK,QAAQ,EA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AAkB,GAAM,EAAc,IAC3I,IAAa;GAAE;GAAS;GAAM,CAAC;GAIrC,EACE,KAAkB,KACpB,qBAAqB;EACnB,EAAY;GACV,MAAM;GACN,iBAAiB;GAElB,CAAC;GACF"}
|
|
1
|
+
{"version":3,"file":"splitter.machine.js","names":["dom.getResizeTriggerEls","dom.getResizeTriggerId","dom.getRootEl","dom.getResizeTriggerEl"],"sources":["../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/splitter.machine.mjs"],"sourcesContent":["import \"./chunk-QZ7TP4HQ.mjs\";\n\n// src/splitter.machine.ts\nimport { createMachine } from \"@zag-js/core\";\nimport { observeChildren, trackPointerMove } from \"@zag-js/dom-query\";\nimport { ensure, ensureProps, isEqual, next, prev, setRafTimeout } from \"@zag-js/utils\";\nimport * as dom from \"./splitter.dom.mjs\";\nimport { getAriaValue } from \"./utils/aria.mjs\";\nimport { fuzzyNumbersEqual, fuzzySizeEqual } from \"./utils/fuzzy.mjs\";\nimport {\n findPanelDataIndex,\n getPanelById,\n getPanelLayout,\n getUnsafeDefaultSize,\n panelDataHelper,\n serializePanels,\n sortPanels\n} from \"./utils/panel.mjs\";\nimport { resizeByDelta } from \"./utils/resize-by-delta.mjs\";\nimport { validateSizes } from \"./utils/validate-sizes.mjs\";\nvar machine = createMachine({\n props({ props }) {\n ensureProps(props, [\"panels\"]);\n return {\n orientation: \"horizontal\",\n defaultSize: [],\n dir: \"ltr\",\n ...props,\n panels: sortPanels(props.panels)\n };\n },\n initialState() {\n return \"idle\";\n },\n context({ prop, bindable, getContext, getRefs }) {\n return {\n size: bindable(() => ({\n value: prop(\"size\"),\n defaultValue: prop(\"defaultSize\"),\n isEqual(a, b) {\n return b != null && fuzzySizeEqual(a, b);\n },\n onChange(value) {\n const ctx = getContext();\n const refs = getRefs();\n const sizesBeforeCollapse = refs.get(\"panelSizeBeforeCollapse\");\n const expandToSizes = Object.fromEntries(sizesBeforeCollapse.entries());\n const resizeTriggerId = ctx.get(\"dragState\")?.resizeTriggerId ?? null;\n const layout = getPanelLayout(prop(\"panels\"));\n prop(\"onResize\")?.({\n size: value,\n layout,\n resizeTriggerId,\n expandToSizes\n });\n }\n })),\n dragState: bindable(() => ({\n defaultValue: null\n })),\n keyboardState: bindable(() => ({\n defaultValue: null\n }))\n };\n },\n watch({ track, action, prop }) {\n track([() => serializePanels(prop(\"panels\"))], () => {\n action([\"syncSize\"]);\n });\n },\n refs() {\n return {\n panelSizeBeforeCollapse: /* @__PURE__ */ new Map(),\n prevDelta: 0,\n panelIdToLastNotifiedSizeMap: /* @__PURE__ */ new Map()\n };\n },\n computed: {\n horizontal({ prop }) {\n return prop(\"orientation\") === \"horizontal\";\n }\n },\n on: {\n \"SIZE.SET\": {\n actions: [\"setSize\"]\n },\n \"PANEL.COLLAPSE\": {\n actions: [\"collapsePanel\"]\n },\n \"PANEL.EXPAND\": {\n actions: [\"expandPanel\"]\n },\n \"PANEL.RESIZE\": {\n actions: [\"resizePanel\"]\n }\n },\n entry: [\"syncSize\"],\n exit: [\"clearGlobalCursor\"],\n effects: [\"trackResizeHandles\"],\n states: {\n idle: {\n entry: [\"clearDraggingState\", \"clearKeyboardState\"],\n on: {\n POINTER_OVER: {\n target: \"hover:temp\",\n actions: [\"setKeyboardState\"]\n },\n FOCUS: {\n target: \"focused\",\n actions: [\"setKeyboardState\"]\n },\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n }\n }\n },\n \"hover:temp\": {\n effects: [\"waitForHoverDelay\"],\n on: {\n HOVER_DELAY: {\n target: \"hover\"\n },\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n },\n POINTER_LEAVE: {\n target: \"idle\"\n }\n }\n },\n hover: {\n tags: [\"focus\"],\n on: {\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n },\n POINTER_LEAVE: {\n target: \"idle\"\n }\n }\n },\n focused: {\n tags: [\"focus\"],\n on: {\n BLUR: {\n target: \"idle\"\n },\n ENTER: {\n actions: [\"collapseOrExpandPanel\"]\n },\n POINTER_DOWN: {\n target: \"dragging\",\n actions: [\"setDraggingState\"]\n },\n KEYBOARD_MOVE: {\n actions: [\"invokeOnResizeStart\", \"setKeyboardValue\", \"invokeOnResizeEnd\"]\n },\n \"FOCUS.CYCLE\": {\n actions: [\"focusNextResizeTrigger\"]\n }\n }\n },\n dragging: {\n tags: [\"focus\"],\n effects: [\"trackPointerMove\"],\n entry: [\"invokeOnResizeStart\"],\n on: {\n POINTER_MOVE: {\n actions: [\"setPointerValue\", \"setGlobalCursor\"]\n },\n POINTER_UP: {\n target: \"idle\",\n actions: [\"invokeOnResizeEnd\", \"clearGlobalCursor\"]\n }\n }\n }\n },\n implementations: {\n effects: {\n trackResizeHandles: ({ prop, scope, send }) => {\n const registry = prop(\"registry\");\n if (!registry) return;\n let cleanups = [];\n const exec = () => {\n cleanups.forEach((fn) => fn());\n cleanups = dom.getResizeTriggerEls(scope).map((resizeTriggerEl) => {\n const id = resizeTriggerEl.dataset.id;\n if (!id) return;\n return registry.register({\n id: dom.getResizeTriggerId(scope, id),\n element: resizeTriggerEl,\n orientation: prop(\"orientation\"),\n onActivate(point) {\n send({ type: \"POINTER_DOWN\", id, point });\n },\n onDeactivate() {\n send({ type: \"POINTER_UP\" });\n }\n });\n }).filter(Boolean);\n };\n exec();\n const observeCleanup = observeChildren(dom.getRootEl(scope), {\n callback: exec\n });\n return () => {\n cleanups.forEach((fn) => fn());\n observeCleanup?.();\n };\n },\n waitForHoverDelay: ({ send }) => {\n return setRafTimeout(() => {\n send({ type: \"HOVER_DELAY\" });\n }, 250);\n },\n trackPointerMove: ({ scope, send }) => {\n const doc = scope.getDoc();\n return trackPointerMove(doc, {\n onPointerMove(info) {\n send({ type: \"POINTER_MOVE\", point: info.point });\n },\n onPointerUp() {\n send({ type: \"POINTER_UP\" });\n }\n });\n }\n },\n actions: {\n setSize(params) {\n const { context, event, prop } = params;\n const unsafeSize = event.size;\n const prevSize = context.get(\"size\");\n const panels = prop(\"panels\");\n const safeSize = validateSizes({\n size: unsafeSize,\n panels\n });\n if (!isEqual(prevSize, safeSize)) {\n setSize(params, safeSize);\n }\n },\n syncSize({ context, prop }) {\n const panels = prop(\"panels\");\n let prevSize = context.get(\"size\");\n let unsafeSize = null;\n if (prevSize.length === 0) {\n unsafeSize = getUnsafeDefaultSize({\n panels,\n size: context.initial(\"size\")\n });\n }\n const nextSize = validateSizes({\n size: unsafeSize ?? prevSize,\n panels\n });\n if (!isEqual(prevSize, nextSize)) {\n context.set(\"size\", nextSize);\n }\n },\n setDraggingState({ context, event, prop, scope }) {\n const orientation = prop(\"orientation\");\n const size = context.get(\"size\");\n const resizeTriggerId = event.id;\n const panelGroupEl = dom.getRootEl(scope);\n if (!panelGroupEl) return;\n const handleElement = dom.getResizeTriggerEl(scope, resizeTriggerId);\n ensure(handleElement, () => `Drag handle element not found for id \"${resizeTriggerId}\"`);\n const initialCursorPosition = orientation === \"horizontal\" ? event.point.x : event.point.y;\n context.set(\"dragState\", {\n resizeTriggerId: event.id,\n resizeTriggerRect: handleElement.getBoundingClientRect(),\n initialCursorPosition,\n initialSize: size\n });\n },\n clearDraggingState({ context }) {\n context.set(\"dragState\", null);\n },\n setKeyboardState({ context, event }) {\n context.set(\"keyboardState\", {\n resizeTriggerId: event.id\n });\n },\n clearKeyboardState({ context }) {\n context.set(\"keyboardState\", null);\n },\n collapsePanel(params) {\n const { context, prop, event, refs } = params;\n const prevSize = context.get(\"size\");\n const panels = prop(\"panels\");\n const panel = panels.find((panel2) => panel2.id === event.id);\n ensure(panel, () => `Panel data not found for id \"${event.id}\"`);\n if (panel.collapsible) {\n const { collapsedSize = 0, panelSize, pivotIndices } = panelDataHelper(panels, panel, prevSize);\n ensure(panelSize, () => `Panel size not found for panel \"${panel.id}\"`);\n if (!fuzzyNumbersEqual(panelSize, collapsedSize)) {\n refs.get(\"panelSizeBeforeCollapse\").set(panel.id, panelSize);\n const isLastPanel = findPanelDataIndex(panels, panel) === panels.length - 1;\n const delta = isLastPanel ? panelSize - collapsedSize : collapsedSize - panelSize;\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"imperative-api\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n }\n }\n },\n expandPanel(params) {\n const { context, prop, event, refs } = params;\n const panels = prop(\"panels\");\n const prevSize = context.get(\"size\");\n const panel = panels.find((panel2) => panel2.id === event.id);\n ensure(panel, () => `Panel data not found for id \"${event.id}\"`);\n if (panel.collapsible) {\n const {\n collapsedSize = 0,\n panelSize = 0,\n minSize: minSizeFromProps = 0,\n pivotIndices\n } = panelDataHelper(panels, panel, prevSize);\n const minSize = event.minSize ?? minSizeFromProps;\n if (fuzzyNumbersEqual(panelSize, collapsedSize)) {\n const prevPanelSize = refs.get(\"panelSizeBeforeCollapse\").get(panel.id);\n const baseSize = prevPanelSize != null && prevPanelSize >= minSize ? prevPanelSize : minSize;\n const isLastPanel = findPanelDataIndex(panels, panel) === panels.length - 1;\n const delta = isLastPanel ? panelSize - baseSize : baseSize - panelSize;\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"imperative-api\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n }\n }\n },\n resizePanel(params) {\n const { context, prop, event } = params;\n const prevSize = context.get(\"size\");\n const panels = prop(\"panels\");\n const panel = getPanelById(panels, event.id);\n const unsafePanelSize = event.size;\n const { panelSize, pivotIndices } = panelDataHelper(panels, panel, prevSize);\n ensure(panelSize, () => `Panel size not found for panel \"${panel.id}\"`);\n const isLastPanel = findPanelDataIndex(panels, panel) === panels.length - 1;\n const delta = isLastPanel ? panelSize - unsafePanelSize : unsafePanelSize - panelSize;\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"imperative-api\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n },\n setPointerValue(params) {\n const { context, event, prop, scope } = params;\n const dragState = context.get(\"dragState\");\n if (!dragState) return;\n const { resizeTriggerId, initialSize, initialCursorPosition } = dragState;\n const panels = prop(\"panels\");\n const panelGroupElement = dom.getRootEl(scope);\n ensure(panelGroupElement, () => `Panel group element not found`);\n const pivotIndices = resizeTriggerId.split(\":\").map((id) => panels.findIndex((panel) => panel.id === id));\n const horizontal = prop(\"orientation\") === \"horizontal\";\n const cursorPosition = horizontal ? event.point.x : event.point.y;\n const groupRect = panelGroupElement.getBoundingClientRect();\n const groupSizeInPixels = horizontal ? groupRect.width : groupRect.height;\n const offsetPixels = cursorPosition - initialCursorPosition;\n const offsetPercentage = offsetPixels / groupSizeInPixels * 100;\n const prevSize = context.get(\"size\");\n const nextSize = resizeByDelta({\n delta: offsetPercentage,\n initialSize: initialSize ?? prevSize,\n panels,\n pivotIndices,\n prevSize,\n trigger: \"mouse-or-touch\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n },\n setKeyboardValue(params) {\n const { context, event, prop } = params;\n const panelDataArray = prop(\"panels\");\n const resizeTriggerId = event.id;\n const delta = event.delta;\n const pivotIndices = resizeTriggerId.split(\":\").map((id) => panelDataArray.findIndex((panelData) => panelData.id === id));\n const prevSize = context.get(\"size\");\n const nextSize = resizeByDelta({\n delta,\n initialSize: prevSize,\n panels: panelDataArray,\n pivotIndices,\n prevSize,\n trigger: \"keyboard\"\n });\n if (!isEqual(prevSize, nextSize)) {\n setSize(params, nextSize);\n }\n },\n invokeOnResizeEnd({ context, prop }) {\n queueMicrotask(() => {\n const dragState = context.get(\"dragState\");\n prop(\"onResizeEnd\")?.({\n size: context.get(\"size\"),\n resizeTriggerId: dragState?.resizeTriggerId ?? null\n });\n });\n },\n invokeOnResizeStart({ prop }) {\n queueMicrotask(() => {\n prop(\"onResizeStart\")?.();\n });\n },\n collapseOrExpandPanel(params) {\n const { context, prop } = params;\n const panelDataArray = prop(\"panels\");\n const sizes = context.get(\"size\");\n const resizeTriggerId = context.get(\"keyboardState\")?.resizeTriggerId;\n const [idBefore, idAfter] = resizeTriggerId?.split(\":\") ?? [];\n const index = panelDataArray.findIndex((panelData2) => panelData2.id === idBefore);\n if (index === -1) return;\n const panelData = panelDataArray[index];\n ensure(panelData, () => `No panel data found for index ${index}`);\n const size = sizes[index];\n const { collapsedSize = 0, collapsible, minSize = 0 } = panelData;\n if (size != null && collapsible) {\n const pivotIndices = [idBefore, idAfter].map(\n (id) => panelDataArray.findIndex((panelData2) => panelData2.id === id)\n );\n const nextSize = resizeByDelta({\n delta: fuzzyNumbersEqual(size, collapsedSize) ? minSize - collapsedSize : collapsedSize - size,\n initialSize: context.initial(\"size\"),\n panels: panelDataArray,\n pivotIndices,\n prevSize: sizes,\n trigger: \"keyboard\"\n });\n if (!isEqual(sizes, nextSize)) {\n setSize(params, nextSize);\n }\n }\n },\n setGlobalCursor({ context, scope, prop }) {\n const registry = prop(\"registry\");\n if (registry) return;\n const dragState = context.get(\"dragState\");\n if (!dragState) return;\n const panels = prop(\"panels\");\n const horizontal = prop(\"orientation\") === \"horizontal\";\n const [idBefore] = dragState.resizeTriggerId.split(\":\");\n const indexBefore = panels.findIndex((panel2) => panel2.id === idBefore);\n const panel = panels[indexBefore];\n const size = context.get(\"size\");\n const aria = getAriaValue(size, panels, dragState.resizeTriggerId);\n const isAtMin = fuzzyNumbersEqual(aria.valueNow, aria.valueMin) || fuzzyNumbersEqual(aria.valueNow, panel.collapsedSize);\n const isAtMax = fuzzyNumbersEqual(aria.valueNow, aria.valueMax);\n const cursorState = { isAtMin, isAtMax };\n dom.setupGlobalCursor(scope, cursorState, horizontal, prop(\"nonce\"));\n },\n clearGlobalCursor({ scope }) {\n dom.removeGlobalCursor(scope);\n },\n focusNextResizeTrigger({ event, scope }) {\n const resizeTriggers = dom.getResizeTriggerEls(scope);\n const index = resizeTriggers.findIndex((el) => el.dataset.id === event.id);\n const handleEl = event.shiftKey ? prev(resizeTriggers, index) : next(resizeTriggers, index);\n handleEl?.focus();\n }\n }\n }\n});\nfunction setSize(params, sizes) {\n const { refs, prop, context } = params;\n const panelsArray = prop(\"panels\");\n const onCollapse = prop(\"onCollapse\");\n const onExpand = prop(\"onExpand\");\n const onResizeStart = prop(\"onResizeStart\");\n const onResizeEnd = prop(\"onResizeEnd\");\n const panelIdToLastNotifiedSizeMap = refs.get(\"panelIdToLastNotifiedSizeMap\");\n const dragState = context.get(\"dragState\");\n const keyboardState = context.get(\"keyboardState\");\n const isProgrammatic = dragState === null && keyboardState === null;\n if (isProgrammatic && onResizeStart) {\n queueMicrotask(() => {\n onResizeStart();\n });\n }\n context.set(\"size\", sizes);\n sizes.forEach((size, index) => {\n const panelData = panelsArray[index];\n ensure(panelData, () => `Panel data not found for index ${index}`);\n const { collapsedSize = 0, collapsible, id: panelId } = panelData;\n const lastNotifiedSize = panelIdToLastNotifiedSizeMap.get(panelId);\n if (lastNotifiedSize == null || size !== lastNotifiedSize) {\n panelIdToLastNotifiedSizeMap.set(panelId, size);\n if (collapsible && (onCollapse || onExpand)) {\n if ((lastNotifiedSize == null || fuzzyNumbersEqual(lastNotifiedSize, collapsedSize)) && !fuzzyNumbersEqual(size, collapsedSize)) {\n onExpand?.({ panelId, size });\n }\n if (onCollapse && (lastNotifiedSize == null || !fuzzyNumbersEqual(lastNotifiedSize, collapsedSize)) && fuzzyNumbersEqual(size, collapsedSize)) {\n onCollapse?.({ panelId, size });\n }\n }\n }\n });\n if (isProgrammatic && onResizeEnd) {\n queueMicrotask(() => {\n onResizeEnd({\n size: sizes,\n resizeTriggerId: null\n // Programmatic changes don't have a resize trigger\n });\n });\n }\n}\nexport {\n machine\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;AAoBA,IAAI,IAAU,EAAc;CAC1B,MAAM,EAAE,YAAS;EAEf,OADA,EAAY,GAAO,CAAC,QAAQ,CAAC,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AI,QAAQ,CAAK,GACzB,EAAM,SAAS,GAAM,MAAU;EAC7B,IAAM,IAAY,EAAY;EAC9B,EAAO,SAAiB,kCAAkC,GAAO;EACjE,IAAM,EAAE,mBAAgB,GAAG,gBAAa,IAAI,MAAY,GAClD,IAAmB,EAA6B,IAAI,CAAO;EACjE,CAAI,KAAoB,QAAQ,MAAS,OACvC,EAA6B,IAAI,GAAS,CAAI,GAC1C,MAAgB,KAAc,QAC3B,KAAoB,QAAQ,EAAkB,GAAkB,CAAa,MAAM,CAAC,EAAkB,GAAM,CAAa,KAC5H,IAAW;GAAE;GAAS;EAAK,CAAC,GAE1B,MAAe,KAAoB,QAAQ,CAAC,EAAkB,GAAkB,CAAa,MAAM,EAAkB,GAAM,CAAa,KAC1I,IAAa;GAAE;GAAS;EAAK,CAAC;CAItC,CAAC,GACG,KAAkB,KACpB,qBAAqB;EACnB,EAAY;GACV,MAAM;GACN,iBAAiB;EAEnB,CAAC;CACH,CAAC;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aria.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/aria.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/aria.ts\nimport { ensure } from \"@zag-js/utils\";\nfunction calculateAriaValues({\n size,\n panels,\n pivotIndices\n}) {\n let currentMinSize = 0;\n let currentMaxSize = 100;\n let totalMinSize = 0;\n let totalMaxSize = 0;\n const firstIndex = pivotIndices[0];\n ensure(firstIndex, () => \"No pivot index found\");\n panels.forEach((panel, index) => {\n const { maxSize = 100, minSize = 0 } = panel;\n if (index === firstIndex) {\n currentMinSize = minSize;\n currentMaxSize = maxSize;\n } else {\n totalMinSize += minSize;\n totalMaxSize += maxSize;\n }\n });\n const valueMax = Math.min(currentMaxSize, 100 - totalMinSize);\n const valueMin = Math.max(currentMinSize, 100 - totalMaxSize);\n const valueNow = size[firstIndex];\n return {\n valueMax,\n valueMin,\n valueNow\n };\n}\nfunction getAriaValue(size, panels, handleId) {\n const [beforeId, afterId] = handleId.split(\":\");\n const beforeIndex = panels.findIndex((panel) => panel.id === beforeId);\n const afterIndex = panels.findIndex((panel) => panel.id === afterId);\n const { valueMax, valueMin, valueNow } = calculateAriaValues({\n size,\n panels,\n pivotIndices: [beforeIndex, afterIndex]\n });\n return {\n beforeId,\n afterId,\n valueMax: Math.round(valueMax),\n valueMin: Math.round(valueMin),\n valueNow: valueNow != null ? Math.round(valueNow) : void 0\n };\n}\nexport {\n calculateAriaValues,\n getAriaValue\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAIA,SAAS,EAAoB,EAC3B,SACA,WACA,mBACC;CACD,IAAI,IAAiB,GACjB,IAAiB,KACjB,IAAe,GACf,IAAe,GACb,IAAa,EAAa;CAehC,OAdA,EAAO,SAAkB,
|
|
1
|
+
{"version":3,"file":"aria.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/aria.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/aria.ts\nimport { ensure } from \"@zag-js/utils\";\nfunction calculateAriaValues({\n size,\n panels,\n pivotIndices\n}) {\n let currentMinSize = 0;\n let currentMaxSize = 100;\n let totalMinSize = 0;\n let totalMaxSize = 0;\n const firstIndex = pivotIndices[0];\n ensure(firstIndex, () => \"No pivot index found\");\n panels.forEach((panel, index) => {\n const { maxSize = 100, minSize = 0 } = panel;\n if (index === firstIndex) {\n currentMinSize = minSize;\n currentMaxSize = maxSize;\n } else {\n totalMinSize += minSize;\n totalMaxSize += maxSize;\n }\n });\n const valueMax = Math.min(currentMaxSize, 100 - totalMinSize);\n const valueMin = Math.max(currentMinSize, 100 - totalMaxSize);\n const valueNow = size[firstIndex];\n return {\n valueMax,\n valueMin,\n valueNow\n };\n}\nfunction getAriaValue(size, panels, handleId) {\n const [beforeId, afterId] = handleId.split(\":\");\n const beforeIndex = panels.findIndex((panel) => panel.id === beforeId);\n const afterIndex = panels.findIndex((panel) => panel.id === afterId);\n const { valueMax, valueMin, valueNow } = calculateAriaValues({\n size,\n panels,\n pivotIndices: [beforeIndex, afterIndex]\n });\n return {\n beforeId,\n afterId,\n valueMax: Math.round(valueMax),\n valueMin: Math.round(valueMin),\n valueNow: valueNow != null ? Math.round(valueNow) : void 0\n };\n}\nexport {\n calculateAriaValues,\n getAriaValue\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAIA,SAAS,EAAoB,EAC3B,SACA,WACA,mBACC;CACD,IAAI,IAAiB,GACjB,IAAiB,KACjB,IAAe,GACf,IAAe,GACb,IAAa,EAAa;CAehC,OAdA,EAAO,SAAkB,sBAAsB,GAC/C,EAAO,SAAS,GAAO,MAAU;EAC/B,IAAM,EAAE,aAAU,KAAK,aAAU,MAAM;EACvC,AAAI,MAAU,KACZ,IAAiB,GACjB,IAAiB,MAEjB,KAAgB,GAChB,KAAgB;CAEpB,CAAC,GAIM;EACL,UAJe,KAAK,IAAI,GAAgB,MAAM,CAIvC;EACP,UAJe,KAAK,IAAI,GAAgB,MAAM,CAIvC;EACP,UAJe,EAAK;CAKtB;AACF;AACA,SAAS,EAAa,GAAM,GAAQ,GAAU;CAC5C,IAAM,CAAC,GAAU,KAAW,EAAS,MAAM,GAAG,GAGxC,EAAE,aAAU,aAAU,gBAAa,EAAoB;EAC3D;EACA;EACA,cAAc,CALI,EAAO,WAAW,MAAU,EAAM,OAAO,CAKlC,GAJR,EAAO,WAAW,MAAU,EAAM,OAAO,CAIrB,CAAC;CACxC,CAAC;CACD,OAAO;EACL;EACA;EACA,UAAU,KAAK,MAAM,CAAQ;EAC7B,UAAU,KAAK,MAAM,CAAQ;EAC7B,UAAU,KAAY,OAA8B,KAAK,IAA5B,KAAK,MAAM,CAAQ;CAClD;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fuzzy.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/fuzzy.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/fuzzy.ts\nvar PRECISION = 10;\nfunction fuzzyCompareNumbers(actual, expected, fractionDigits = PRECISION) {\n if (actual.toFixed(fractionDigits) === expected.toFixed(fractionDigits)) {\n return 0;\n } else {\n return actual > expected ? 1 : -1;\n }\n}\nfunction fuzzyNumbersEqual(actual, expected, fractionDigits = PRECISION) {\n if (actual == null || expected == null) return false;\n return fuzzyCompareNumbers(actual, expected, fractionDigits) === 0;\n}\nfunction fuzzySizeEqual(actual, expected, fractionDigits) {\n if (actual.length !== expected.length) {\n return false;\n }\n for (let index = 0; index < actual.length; index++) {\n const actualSize = actual[index];\n const expectedSize = expected[index];\n if (!fuzzyNumbersEqual(actualSize, expectedSize, fractionDigits)) {\n return false;\n }\n }\n return true;\n}\nexport {\n PRECISION,\n fuzzyCompareNumbers,\n fuzzyNumbersEqual,\n fuzzySizeEqual\n};\n"],"x_google_ignoreList":[0],"mappings":"AAIA,SAAS,EAAoB,GAAQ,GAAU,IAAA,IAA4B;CAIvE,OAHE,EAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"fuzzy.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/fuzzy.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/fuzzy.ts\nvar PRECISION = 10;\nfunction fuzzyCompareNumbers(actual, expected, fractionDigits = PRECISION) {\n if (actual.toFixed(fractionDigits) === expected.toFixed(fractionDigits)) {\n return 0;\n } else {\n return actual > expected ? 1 : -1;\n }\n}\nfunction fuzzyNumbersEqual(actual, expected, fractionDigits = PRECISION) {\n if (actual == null || expected == null) return false;\n return fuzzyCompareNumbers(actual, expected, fractionDigits) === 0;\n}\nfunction fuzzySizeEqual(actual, expected, fractionDigits) {\n if (actual.length !== expected.length) {\n return false;\n }\n for (let index = 0; index < actual.length; index++) {\n const actualSize = actual[index];\n const expectedSize = expected[index];\n if (!fuzzyNumbersEqual(actualSize, expectedSize, fractionDigits)) {\n return false;\n }\n }\n return true;\n}\nexport {\n PRECISION,\n fuzzyCompareNumbers,\n fuzzyNumbersEqual,\n fuzzySizeEqual\n};\n"],"x_google_ignoreList":[0],"mappings":"AAIA,SAAS,EAAoB,GAAQ,GAAU,IAAA,IAA4B;CAIvE,OAHE,EAAO,QAAQ,CAAc,MAAM,EAAS,QAAQ,CAAc,IAC7D,IAEA,IAAS,IAAW,IAAI;AAEnC;AACA,SAAS,EAAkB,GAAQ,GAAU,IAAA,IAA4B;CAEvE,OADI,KAAU,QAAQ,KAAY,OAAa,KACxC,EAAoB,GAAQ,GAAU,CAAc,MAAM;AACnE;AACA,SAAS,EAAe,GAAQ,GAAU,GAAgB;CACxD,IAAI,EAAO,WAAW,EAAS,QAC7B,OAAO;CAET,KAAK,IAAI,IAAQ,GAAG,IAAQ,EAAO,QAAQ,KAAS;EAClD,IAAM,IAAa,EAAO,IACpB,IAAe,EAAS;EAC9B,IAAI,CAAC,EAAkB,GAAY,GAAc,CAAc,GAC7D,OAAO;CAEX;CACA,OAAO;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersects.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/intersects.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/intersects.ts\nfunction intersects(r1, r2, strict = false) {\n if (strict) {\n return r1.x < r2.x + r2.width && r1.x + r1.width > r2.x && r1.y < r2.y + r2.height && r1.y + r1.height > r2.y;\n }\n return r1.x <= r2.x + r2.width && r1.x + r1.width >= r2.x && r1.y <= r2.y + r2.height && r1.y + r1.height >= r2.y;\n}\nfunction toRect(r) {\n return { x: r.x, y: r.y, width: r.width, height: r.height };\n}\nexport {\n intersects,\n toRect\n};\n"],"x_google_ignoreList":[0],"mappings":";AAGA,SAAS,EAAW,GAAI,GAAI,IAAS,IAAO;CAI1C,OAHI,IACK,EAAG,IAAI,EAAG,IAAI,EAAG,SAAS,EAAG,IAAI,EAAG,QAAQ,EAAG,KAAK,EAAG,IAAI,EAAG,IAAI,EAAG,UAAU,EAAG,IAAI,EAAG,SAAS,EAAG,IAEvG,EAAG,KAAK,EAAG,IAAI,EAAG,SAAS,EAAG,IAAI,EAAG,SAAS,EAAG,KAAK,EAAG,KAAK,EAAG,IAAI,EAAG,UAAU,EAAG,IAAI,EAAG,UAAU,EAAG
|
|
1
|
+
{"version":3,"file":"intersects.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/intersects.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/intersects.ts\nfunction intersects(r1, r2, strict = false) {\n if (strict) {\n return r1.x < r2.x + r2.width && r1.x + r1.width > r2.x && r1.y < r2.y + r2.height && r1.y + r1.height > r2.y;\n }\n return r1.x <= r2.x + r2.width && r1.x + r1.width >= r2.x && r1.y <= r2.y + r2.height && r1.y + r1.height >= r2.y;\n}\nfunction toRect(r) {\n return { x: r.x, y: r.y, width: r.width, height: r.height };\n}\nexport {\n intersects,\n toRect\n};\n"],"x_google_ignoreList":[0],"mappings":";AAGA,SAAS,EAAW,GAAI,GAAI,IAAS,IAAO;CAI1C,OAHI,IACK,EAAG,IAAI,EAAG,IAAI,EAAG,SAAS,EAAG,IAAI,EAAG,QAAQ,EAAG,KAAK,EAAG,IAAI,EAAG,IAAI,EAAG,UAAU,EAAG,IAAI,EAAG,SAAS,EAAG,IAEvG,EAAG,KAAK,EAAG,IAAI,EAAG,SAAS,EAAG,IAAI,EAAG,SAAS,EAAG,KAAK,EAAG,KAAK,EAAG,IAAI,EAAG,UAAU,EAAG,IAAI,EAAG,UAAU,EAAG;AAClH;AACA,SAAS,EAAO,GAAG;CACjB,OAAO;EAAE,GAAG,EAAE;EAAG,GAAG,EAAE;EAAG,OAAO,EAAE;EAAO,QAAQ,EAAE;CAAO;AAC5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/panel.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/panel.ts\nimport { ensure } from \"@zag-js/utils\";\nfunction getPanelById(panels, id) {\n const panel = panels.find((panel2) => panel2.id === id);\n ensure(panel, () => `Panel data not found for id \"${id}\"`);\n return panel;\n}\nfunction findPanelDataIndex(panels, panel) {\n return panels.findIndex((prevPanel) => prevPanel === panel || prevPanel.id === panel.id);\n}\nfunction findPanelIndex(panels, id) {\n return panels.findIndex((panel) => panel.id === id);\n}\nfunction panelDataHelper(panels, panel, sizes) {\n const index = findPanelIndex(panels, panel.id);\n const pivotIndices = index === panels.length - 1 ? [index - 1, index] : [index, index + 1];\n const panelSize = sizes[index];\n return { ...panel, panelSize, pivotIndices };\n}\nfunction sortPanels(panels) {\n return panels.sort((panelA, panelB) => {\n const orderA = panelA.order;\n const orderB = panelB.order;\n if (orderA == null && orderB == null) {\n return 0;\n } else if (orderA == null) {\n return -1;\n } else if (orderB == null) {\n return 1;\n } else {\n return orderA - orderB;\n }\n });\n}\nfunction getPanelLayout(panels) {\n return panels.map((panel) => panel.id).sort().join(\":\");\n}\nfunction serializePanels(panels) {\n const keys = panels.map((panel) => panel.id);\n const sortedKeys = keys.sort();\n const serialized = sortedKeys.map((key) => {\n const panel = panels.find((panel2) => panel2.id === key);\n return JSON.stringify(panel);\n });\n return serialized.join(\",\");\n}\nfunction getPanelFlexBoxStyle({\n defaultSize,\n dragState,\n sizes,\n panels,\n panelIndex,\n precision = 3\n}) {\n const size = sizes[panelIndex];\n let flexGrow;\n if (size == null) {\n flexGrow = defaultSize != void 0 ? defaultSize.toPrecision(precision) : \"1\";\n } else if (panels.length === 1) {\n flexGrow = \"1\";\n } else {\n flexGrow = size.toPrecision(precision);\n }\n return {\n flexBasis: 0,\n flexGrow,\n flexShrink: 1,\n // Without this, Panel sizes may be unintentionally overridden by their content\n overflow: \"hidden\",\n // Disable pointer events inside of a panel during resize\n // This avoid edge cases like nested iframes\n pointerEvents: dragState !== null ? \"none\" : void 0\n };\n}\nfunction getUnsafeDefaultSize({ panels, size: sizes }) {\n const finalSizes = Array(panels.length);\n let numPanelsWithSizes = 0;\n let remainingSize = 100;\n for (let index = 0; index < panels.length; index++) {\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n const defaultSize = sizes[index];\n if (defaultSize != null) {\n numPanelsWithSizes++;\n finalSizes[index] = defaultSize;\n remainingSize -= defaultSize;\n }\n }\n for (let index = 0; index < panels.length; index++) {\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n const defaultSize = sizes[index];\n if (defaultSize != null) {\n continue;\n }\n const numRemainingPanels = panels.length - numPanelsWithSizes;\n const size = remainingSize / numRemainingPanels;\n numPanelsWithSizes++;\n finalSizes[index] = size;\n remainingSize -= size;\n }\n return finalSizes;\n}\nexport {\n findPanelDataIndex,\n findPanelIndex,\n getPanelById,\n getPanelFlexBoxStyle,\n getPanelLayout,\n getUnsafeDefaultSize,\n panelDataHelper,\n serializePanels,\n sortPanels\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAIA,SAAS,EAAa,GAAQ,GAAI;CAChC,IAAM,IAAQ,EAAO,MAAM,MAAW,EAAO,OAAO,
|
|
1
|
+
{"version":3,"file":"panel.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/panel.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/panel.ts\nimport { ensure } from \"@zag-js/utils\";\nfunction getPanelById(panels, id) {\n const panel = panels.find((panel2) => panel2.id === id);\n ensure(panel, () => `Panel data not found for id \"${id}\"`);\n return panel;\n}\nfunction findPanelDataIndex(panels, panel) {\n return panels.findIndex((prevPanel) => prevPanel === panel || prevPanel.id === panel.id);\n}\nfunction findPanelIndex(panels, id) {\n return panels.findIndex((panel) => panel.id === id);\n}\nfunction panelDataHelper(panels, panel, sizes) {\n const index = findPanelIndex(panels, panel.id);\n const pivotIndices = index === panels.length - 1 ? [index - 1, index] : [index, index + 1];\n const panelSize = sizes[index];\n return { ...panel, panelSize, pivotIndices };\n}\nfunction sortPanels(panels) {\n return panels.sort((panelA, panelB) => {\n const orderA = panelA.order;\n const orderB = panelB.order;\n if (orderA == null && orderB == null) {\n return 0;\n } else if (orderA == null) {\n return -1;\n } else if (orderB == null) {\n return 1;\n } else {\n return orderA - orderB;\n }\n });\n}\nfunction getPanelLayout(panels) {\n return panels.map((panel) => panel.id).sort().join(\":\");\n}\nfunction serializePanels(panels) {\n const keys = panels.map((panel) => panel.id);\n const sortedKeys = keys.sort();\n const serialized = sortedKeys.map((key) => {\n const panel = panels.find((panel2) => panel2.id === key);\n return JSON.stringify(panel);\n });\n return serialized.join(\",\");\n}\nfunction getPanelFlexBoxStyle({\n defaultSize,\n dragState,\n sizes,\n panels,\n panelIndex,\n precision = 3\n}) {\n const size = sizes[panelIndex];\n let flexGrow;\n if (size == null) {\n flexGrow = defaultSize != void 0 ? defaultSize.toPrecision(precision) : \"1\";\n } else if (panels.length === 1) {\n flexGrow = \"1\";\n } else {\n flexGrow = size.toPrecision(precision);\n }\n return {\n flexBasis: 0,\n flexGrow,\n flexShrink: 1,\n // Without this, Panel sizes may be unintentionally overridden by their content\n overflow: \"hidden\",\n // Disable pointer events inside of a panel during resize\n // This avoid edge cases like nested iframes\n pointerEvents: dragState !== null ? \"none\" : void 0\n };\n}\nfunction getUnsafeDefaultSize({ panels, size: sizes }) {\n const finalSizes = Array(panels.length);\n let numPanelsWithSizes = 0;\n let remainingSize = 100;\n for (let index = 0; index < panels.length; index++) {\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n const defaultSize = sizes[index];\n if (defaultSize != null) {\n numPanelsWithSizes++;\n finalSizes[index] = defaultSize;\n remainingSize -= defaultSize;\n }\n }\n for (let index = 0; index < panels.length; index++) {\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n const defaultSize = sizes[index];\n if (defaultSize != null) {\n continue;\n }\n const numRemainingPanels = panels.length - numPanelsWithSizes;\n const size = remainingSize / numRemainingPanels;\n numPanelsWithSizes++;\n finalSizes[index] = size;\n remainingSize -= size;\n }\n return finalSizes;\n}\nexport {\n findPanelDataIndex,\n findPanelIndex,\n getPanelById,\n getPanelFlexBoxStyle,\n getPanelLayout,\n getUnsafeDefaultSize,\n panelDataHelper,\n serializePanels,\n sortPanels\n};\n"],"x_google_ignoreList":[0],"mappings":";;AAIA,SAAS,EAAa,GAAQ,GAAI;CAChC,IAAM,IAAQ,EAAO,MAAM,MAAW,EAAO,OAAO,CAAE;CAEtD,OADA,EAAO,SAAa,gCAAgC,EAAG,EAAE,GAClD;AACT;AACA,SAAS,EAAmB,GAAQ,GAAO;CACzC,OAAO,EAAO,WAAW,MAAc,MAAc,KAAS,EAAU,OAAO,EAAM,EAAE;AACzF;AACA,SAAS,EAAe,GAAQ,GAAI;CAClC,OAAO,EAAO,WAAW,MAAU,EAAM,OAAO,CAAE;AACpD;AACA,SAAS,EAAgB,GAAQ,GAAO,GAAO;CAC7C,IAAM,IAAQ,EAAe,GAAQ,EAAM,EAAE,GACvC,IAAe,MAAU,EAAO,SAAS,IAAI,CAAC,IAAQ,GAAG,CAAK,IAAI,CAAC,GAAO,IAAQ,CAAC,GACnF,IAAY,EAAM;CACxB,OAAO;EAAE,GAAG;EAAO;EAAW;CAAa;AAC7C;AACA,SAAS,EAAW,GAAQ;CAC1B,OAAO,EAAO,MAAM,GAAQ,MAAW;EACrC,IAAM,IAAS,EAAO,OAChB,I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C,IAAO,IAAgB;EAG7B,AAFA,KACA,EAAW,KAAS,GACpB,KAAiB;CACnB;CACA,OAAO;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/registry.mjs"],"sourcesContent":["import {\n __publicField\n} from \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/registry.ts\nimport { contains, getDocument, getParentElement } from \"@zag-js/dom-query\";\nimport { intersects, toRect } from \"./intersects.mjs\";\nimport { compareStackingOrder } from \"./stacking-order.mjs\";\nvar SplitterRegistry = class {\n constructor(options = {}) {\n __publicField(this, \"handles\", /* @__PURE__ */ new Map());\n __publicField(this, \"state\", {\n activeHandleIds: /* @__PURE__ */ new Set(),\n isPointerDown: false\n });\n __publicField(this, \"listenerAttached\", false);\n __publicField(this, \"options\");\n __publicField(this, \"handlePointerMove\", (event) => {\n if (this.state.isPointerDown) return;\n const pointerType = this.getPointerType(event);\n const intersecting = this.findHitHandles(event.clientX, event.clientY, pointerType);\n const newActiveIds = new Set(intersecting.map((h) => h.id));\n const changed = newActiveIds.size !== this.state.activeHandleIds.size || [...newActiveIds].some((id) => !this.state.activeHandleIds.has(id));\n if (changed) {\n this.state.activeHandleIds = newActiveIds;\n this.updateCursor(intersecting);\n }\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const pointerType = this.getPointerType(event);\n const intersecting = this.findIntersectingHandles(event.clientX, event.clientY, pointerType, event.target);\n if (intersecting.length > 0) {\n this.state.isPointerDown = true;\n this.state.activeHandleIds = new Set(intersecting.map((h) => h.id));\n const point = { x: event.clientX, y: event.clientY };\n intersecting.forEach((handle) => {\n handle.onActivate(point);\n });\n this.updateCursor(intersecting);\n }\n });\n __publicField(this, \"handlePointerUp\", (_event) => {\n if (this.state.isPointerDown) {\n this.state.isPointerDown = false;\n this.handles.forEach((handle) => {\n if (this.state.activeHandleIds.has(handle.id)) {\n handle.onDeactivate();\n }\n });\n this.state.activeHandleIds.clear();\n this.clearGlobalCursor();\n }\n });\n __publicField(this, \"globalCursorId\", \"splitter-registry-cursor\");\n this.options = {\n nonce: options.nonce ?? \"\",\n hitAreaMargins: {\n coarse: options.hitAreaMargins?.coarse ?? 15,\n fine: options.hitAreaMargins?.fine ?? 5\n }\n };\n }\n register(data) {\n this.handles.set(data.id, data);\n this.attachGlobalListeners();\n return () => {\n this.handles.delete(data.id);\n this.state.activeHandleIds.delete(data.id);\n if (this.handles.size === 0) {\n this.detachGlobalListeners();\n }\n };\n }\n attachGlobalListeners() {\n if (this.listenerAttached) return;\n this.doc.addEventListener(\"pointermove\", this.handlePointerMove, true);\n this.doc.addEventListener(\"pointerdown\", this.handlePointerDown, true);\n this.doc.addEventListener(\"pointerup\", this.handlePointerUp, true);\n this.listenerAttached = true;\n }\n detachGlobalListeners() {\n if (!this.listenerAttached) return;\n this.doc.removeEventListener(\"pointermove\", this.handlePointerMove, true);\n this.doc.removeEventListener(\"pointerdown\", this.handlePointerDown, true);\n this.doc.removeEventListener(\"pointerup\", this.handlePointerUp, true);\n this.listenerAttached = false;\n }\n getPointerType(event) {\n return event.pointerType === \"touch\" || event.pointerType === \"pen\" ? \"coarse\" : \"fine\";\n }\n get doc() {\n const firstHandle = this.handles.values().next().value;\n return getDocument(firstHandle?.element);\n }\n /**\n * Fast hit-test: only checks pointer proximity to handles (no stacking order).\n * Used for pointermove cursor feedback.\n */\n findHitHandles(x, y, pointerType) {\n const intersecting = [];\n const margin = this.options.hitAreaMargins[pointerType];\n this.handles.forEach((handle) => {\n const rect = handle.element.getBoundingClientRect();\n const hit = x >= rect.left - margin && x <= rect.right + margin && y >= rect.top - margin && y <= rect.bottom + margin;\n if (hit) intersecting.push(handle);\n });\n return intersecting;\n }\n /**\n * Full intersection check: hit-test + stacking order verification.\n * Used for pointerdown activation where correctness matters.\n */\n findIntersectingHandles(x, y, pointerType, eventTarget) {\n const hits = this.findHitHandles(x, y, pointerType);\n const targetElement = eventTarget instanceof HTMLElement || eventTarget instanceof SVGElement ? eventTarget : null;\n if (!targetElement || !contains(this.doc, targetElement)) return hits;\n return hits.filter((handle) => {\n const dragHandleElement = handle.element;\n if (targetElement === dragHandleElement || contains(dragHandleElement, targetElement) || contains(targetElement, dragHandleElement)) {\n return true;\n }\n try {\n if (compareStackingOrder(targetElement, dragHandleElement) > 0) {\n const dragHandleRect = dragHandleElement.getBoundingClientRect();\n let currentElement = targetElement;\n while (currentElement) {\n if (currentElement.contains(dragHandleElement)) break;\n const currentRect = currentElement.getBoundingClientRect();\n if (intersects(toRect(currentRect), toRect(dragHandleRect), true)) {\n return false;\n }\n currentElement = getParentElement(currentElement);\n }\n }\n } catch {\n }\n return true;\n });\n }\n updateCursor(intersecting) {\n if (intersecting.length === 0) {\n this.clearGlobalCursor();\n return;\n }\n const hasHorizontal = intersecting.some((h) => h.orientation === \"horizontal\");\n const hasVertical = intersecting.some((h) => h.orientation === \"vertical\");\n let cursor = \"default\";\n if (hasHorizontal && hasVertical) {\n cursor = \"move\";\n } else if (hasHorizontal) {\n cursor = \"ew-resize\";\n } else if (hasVertical) {\n cursor = \"ns-resize\";\n }\n this.setGlobalCursor(cursor);\n }\n setGlobalCursor(cursor) {\n const doc = this.doc;\n let styleEl = doc.getElementById(this.globalCursorId);\n const textContent = `* { cursor: ${cursor} !important; }`;\n if (styleEl) {\n styleEl.textContent = textContent;\n } else {\n styleEl = doc.createElement(\"style\");\n styleEl.id = this.globalCursorId;\n styleEl.textContent = textContent;\n if (this.options.nonce) {\n styleEl.nonce = this.options.nonce;\n }\n doc.head.appendChild(styleEl);\n }\n }\n clearGlobalCursor() {\n const styleEl = this.doc.getElementById(this.globalCursorId);\n styleEl?.remove();\n }\n};\nvar registry = (opts = {}) => new SplitterRegistry(opts);\nexport {\n SplitterRegistry,\n registry\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAQA,IAAI,IAAmB,MAAM;CAC3B,YAAY,IAA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BAClB,EAAQ,cAAc,GAClB,KAAK,QAAQ,UACf,EAAQ,QAAQ,KAAK,QAAQ,QAE/B,EAAI,KAAK,YAAY,EAAQ;;CAGjC,oBAAoB;EAElB,KADqB,IAAI,eAAe,KAAK,eACtC,EAAE,QAAQ;;GAGjB,KAAY,IAAO,EAAE,KAAK,IAAI,EAAiB,EAAK"}
|
|
1
|
+
{"version":3,"file":"registry.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/registry.mjs"],"sourcesContent":["import {\n __publicField\n} from \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/registry.ts\nimport { contains, getDocument, getParentElement } from \"@zag-js/dom-query\";\nimport { intersects, toRect } from \"./intersects.mjs\";\nimport { compareStackingOrder } from \"./stacking-order.mjs\";\nvar SplitterRegistry = class {\n constructor(options = {}) {\n __publicField(this, \"handles\", /* @__PURE__ */ new Map());\n __publicField(this, \"state\", {\n activeHandleIds: /* @__PURE__ */ new Set(),\n isPointerDown: false\n });\n __publicField(this, \"listenerAttached\", false);\n __publicField(this, \"options\");\n __publicField(this, \"handlePointerMove\", (event) => {\n if (this.state.isPointerDown) return;\n const pointerType = this.getPointerType(event);\n const intersecting = this.findHitHandles(event.clientX, event.clientY, pointerType);\n const newActiveIds = new Set(intersecting.map((h) => h.id));\n const changed = newActiveIds.size !== this.state.activeHandleIds.size || [...newActiveIds].some((id) => !this.state.activeHandleIds.has(id));\n if (changed) {\n this.state.activeHandleIds = newActiveIds;\n this.updateCursor(intersecting);\n }\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const pointerType = this.getPointerType(event);\n const intersecting = this.findIntersectingHandles(event.clientX, event.clientY, pointerType, event.target);\n if (intersecting.length > 0) {\n this.state.isPointerDown = true;\n this.state.activeHandleIds = new Set(intersecting.map((h) => h.id));\n const point = { x: event.clientX, y: event.clientY };\n intersecting.forEach((handle) => {\n handle.onActivate(point);\n });\n this.updateCursor(intersecting);\n }\n });\n __publicField(this, \"handlePointerUp\", (_event) => {\n if (this.state.isPointerDown) {\n this.state.isPointerDown = false;\n this.handles.forEach((handle) => {\n if (this.state.activeHandleIds.has(handle.id)) {\n handle.onDeactivate();\n }\n });\n this.state.activeHandleIds.clear();\n this.clearGlobalCursor();\n }\n });\n __publicField(this, \"globalCursorId\", \"splitter-registry-cursor\");\n this.options = {\n nonce: options.nonce ?? \"\",\n hitAreaMargins: {\n coarse: options.hitAreaMargins?.coarse ?? 15,\n fine: options.hitAreaMargins?.fine ?? 5\n }\n };\n }\n register(data) {\n this.handles.set(data.id, data);\n this.attachGlobalListeners();\n return () => {\n this.handles.delete(data.id);\n this.state.activeHandleIds.delete(data.id);\n if (this.handles.size === 0) {\n this.detachGlobalListeners();\n }\n };\n }\n attachGlobalListeners() {\n if (this.listenerAttached) return;\n this.doc.addEventListener(\"pointermove\", this.handlePointerMove, true);\n this.doc.addEventListener(\"pointerdown\", this.handlePointerDown, true);\n this.doc.addEventListener(\"pointerup\", this.handlePointerUp, true);\n this.listenerAttached = true;\n }\n detachGlobalListeners() {\n if (!this.listenerAttached) return;\n this.doc.removeEventListener(\"pointermove\", this.handlePointerMove, true);\n this.doc.removeEventListener(\"pointerdown\", this.handlePointerDown, true);\n this.doc.removeEventListener(\"pointerup\", this.handlePointerUp, true);\n this.listenerAttached = false;\n }\n getPointerType(event) {\n return event.pointerType === \"touch\" || event.pointerType === \"pen\" ? \"coarse\" : \"fine\";\n }\n get doc() {\n const firstHandle = this.handles.values().next().value;\n return getDocument(firstHandle?.element);\n }\n /**\n * Fast hit-test: only checks pointer proximity to handles (no stacking order).\n * Used for pointermove cursor feedback.\n */\n findHitHandles(x, y, pointerType) {\n const intersecting = [];\n const margin = this.options.hitAreaMargins[pointerType];\n this.handles.forEach((handle) => {\n const rect = handle.element.getBoundingClientRect();\n const hit = x >= rect.left - margin && x <= rect.right + margin && y >= rect.top - margin && y <= rect.bottom + margin;\n if (hit) intersecting.push(handle);\n });\n return intersecting;\n }\n /**\n * Full intersection check: hit-test + stacking order verification.\n * Used for pointerdown activation where correctness matters.\n */\n findIntersectingHandles(x, y, pointerType, eventTarget) {\n const hits = this.findHitHandles(x, y, pointerType);\n const targetElement = eventTarget instanceof HTMLElement || eventTarget instanceof SVGElement ? eventTarget : null;\n if (!targetElement || !contains(this.doc, targetElement)) return hits;\n return hits.filter((handle) => {\n const dragHandleElement = handle.element;\n if (targetElement === dragHandleElement || contains(dragHandleElement, targetElement) || contains(targetElement, dragHandleElement)) {\n return true;\n }\n try {\n if (compareStackingOrder(targetElement, dragHandleElement) > 0) {\n const dragHandleRect = dragHandleElement.getBoundingClientRect();\n let currentElement = targetElement;\n while (currentElement) {\n if (currentElement.contains(dragHandleElement)) break;\n const currentRect = currentElement.getBoundingClientRect();\n if (intersects(toRect(currentRect), toRect(dragHandleRect), true)) {\n return false;\n }\n currentElement = getParentElement(currentElement);\n }\n }\n } catch {\n }\n return true;\n });\n }\n updateCursor(intersecting) {\n if (intersecting.length === 0) {\n this.clearGlobalCursor();\n return;\n }\n const hasHorizontal = intersecting.some((h) => h.orientation === \"horizontal\");\n const hasVertical = intersecting.some((h) => h.orientation === \"vertical\");\n let cursor = \"default\";\n if (hasHorizontal && hasVertical) {\n cursor = \"move\";\n } else if (hasHorizontal) {\n cursor = \"ew-resize\";\n } else if (hasVertical) {\n cursor = \"ns-resize\";\n }\n this.setGlobalCursor(cursor);\n }\n setGlobalCursor(cursor) {\n const doc = this.doc;\n let styleEl = doc.getElementById(this.globalCursorId);\n const textContent = `* { cursor: ${cursor} !important; }`;\n if (styleEl) {\n styleEl.textContent = textContent;\n } else {\n styleEl = doc.createElement(\"style\");\n styleEl.id = this.globalCursorId;\n styleEl.textContent = textContent;\n if (this.options.nonce) {\n styleEl.nonce = this.options.nonce;\n }\n doc.head.appendChild(styleEl);\n }\n }\n clearGlobalCursor() {\n const styleEl = this.doc.getElementById(this.globalCursorId);\n styleEl?.remove();\n }\n};\nvar registry = (opts = {}) =>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AM;CAC7B;CACA,gBAAgB,GAAQ;EACtB,IAAM,IAAM,KAAK,KACb,IAAU,EAAI,eAAe,KAAK,cAAc,GAC9C,IAAc,eAAe,EAAO;EAC1C,AAAI,IACF,EAAQ,cAAc,KAEtB,IAAU,EAAI,cAAc,OAAO,GACnC,EAAQ,KAAK,KAAK,gBAClB,EAAQ,cAAc,GAClB,KAAK,QAAQ,UACf,EAAQ,QAAQ,KAAK,QAAQ,QAE/B,EAAI,KAAK,YAAY,CAAO;CAEhC;CACA,oBAAoB;EAElB,KADqB,IAAI,eAAe,KAAK,cACvC,GAAG,OAAO;CAClB;AACF,GACI,KAAY,IAAO,CAAC,MAAM,IAAI,EAAiB,CAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize-by-delta.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/resize-by-delta.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/resize-by-delta.ts\nimport { ensure } from \"@zag-js/utils\";\nimport { fuzzyCompareNumbers, fuzzySizeEqual, fuzzyNumbersEqual } from \"./fuzzy.mjs\";\nimport { resizePanel } from \"./resize-panel.mjs\";\nfunction resizeByDelta(props) {\n let { delta, initialSize, panels, pivotIndices, prevSize, trigger } = props;\n if (fuzzyNumbersEqual(delta, 0)) {\n return initialSize;\n }\n const nextSize = [...initialSize];\n const [firstPivotIndex, secondPivotIndex] = pivotIndices;\n ensure(firstPivotIndex, () => \"Invalid first pivot index\");\n ensure(secondPivotIndex, () => \"Invalid second pivot index\");\n let deltaApplied = 0;\n {\n if (trigger === \"keyboard\") {\n {\n const index = delta < 0 ? secondPivotIndex : firstPivotIndex;\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n const { collapsedSize = 0, collapsible, minSize = 0 } = panel;\n if (collapsible) {\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n if (fuzzyNumbersEqual(prevSize2, collapsedSize)) {\n const localDelta = minSize - prevSize2;\n if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) {\n delta = delta < 0 ? 0 - localDelta : localDelta;\n }\n }\n }\n }\n {\n const index = delta < 0 ? firstPivotIndex : secondPivotIndex;\n const panel = panels[index];\n ensure(panel, () => `No panel data found for index ${index}`);\n const { collapsedSize = 0, collapsible, minSize = 0 } = panel;\n if (collapsible) {\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n if (fuzzyNumbersEqual(prevSize2, minSize)) {\n const localDelta = prevSize2 - collapsedSize;\n if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) {\n delta = delta < 0 ? 0 - localDelta : localDelta;\n }\n }\n }\n }\n }\n }\n {\n const increment = delta < 0 ? 1 : -1;\n let index = delta < 0 ? secondPivotIndex : firstPivotIndex;\n let maxAvailableDelta = 0;\n while (true) {\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n const maxSafeSize = resizePanel({\n panels,\n index,\n size: 100\n });\n const delta2 = maxSafeSize - prevSize2;\n maxAvailableDelta += delta2;\n index += increment;\n if (index < 0 || index >= panels.length) {\n break;\n }\n }\n const minAbsDelta = Math.min(Math.abs(delta), Math.abs(maxAvailableDelta));\n delta = delta < 0 ? 0 - minAbsDelta : minAbsDelta;\n }\n {\n const pivotIndex = delta < 0 ? firstPivotIndex : secondPivotIndex;\n let index = pivotIndex;\n while (index >= 0 && index < panels.length) {\n const deltaRemaining = Math.abs(delta) - Math.abs(deltaApplied);\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n const unsafeSize = prevSize2 - deltaRemaining;\n const safeSize = resizePanel({ panels, index, size: unsafeSize });\n if (!fuzzyNumbersEqual(prevSize2, safeSize)) {\n deltaApplied += prevSize2 - safeSize;\n nextSize[index] = safeSize;\n if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), void 0, {\n numeric: true\n }) >= 0) {\n break;\n }\n }\n if (delta < 0) {\n index--;\n } else {\n index++;\n }\n }\n }\n if (fuzzySizeEqual(prevSize, nextSize)) {\n return prevSize;\n }\n {\n const pivotIndex = delta < 0 ? secondPivotIndex : firstPivotIndex;\n const prevSize2 = initialSize[pivotIndex];\n ensure(prevSize2, () => `Previous size not found for panel index ${pivotIndex}`);\n const unsafeSize = prevSize2 + deltaApplied;\n const safeSize = resizePanel({ panels, index: pivotIndex, size: unsafeSize });\n nextSize[pivotIndex] = safeSize;\n if (!fuzzyNumbersEqual(safeSize, unsafeSize)) {\n let deltaRemaining = unsafeSize - safeSize;\n const pivotIndex2 = delta < 0 ? secondPivotIndex : firstPivotIndex;\n let index = pivotIndex2;\n while (index >= 0 && index < panels.length) {\n const prevSize3 = nextSize[index];\n ensure(prevSize3, () => `Previous size not found for panel index ${index}`);\n const unsafeSize2 = prevSize3 + deltaRemaining;\n const safeSize2 = resizePanel({ panels, index, size: unsafeSize2 });\n if (!fuzzyNumbersEqual(prevSize3, safeSize2)) {\n deltaRemaining -= safeSize2 - prevSize3;\n nextSize[index] = safeSize2;\n }\n if (fuzzyNumbersEqual(deltaRemaining, 0)) {\n break;\n }\n if (delta > 0) {\n index--;\n } else {\n index++;\n }\n }\n }\n }\n const totalSize = nextSize.reduce((total, size) => size + total, 0);\n if (!fuzzyNumbersEqual(totalSize, 100)) {\n return prevSize;\n }\n return nextSize;\n}\nexport {\n resizeByDelta\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,SAAS,EAAc,GAAO;CAC5B,IAAI,EAAE,UAAO,gBAAa,WAAQ,iBAAc,aAAU,eAAY;CACtE,IAAI,EAAkB,GAAO,
|
|
1
|
+
{"version":3,"file":"resize-by-delta.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/resize-by-delta.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/resize-by-delta.ts\nimport { ensure } from \"@zag-js/utils\";\nimport { fuzzyCompareNumbers, fuzzySizeEqual, fuzzyNumbersEqual } from \"./fuzzy.mjs\";\nimport { resizePanel } from \"./resize-panel.mjs\";\nfunction resizeByDelta(props) {\n let { delta, initialSize, panels, pivotIndices, prevSize, trigger } = props;\n if (fuzzyNumbersEqual(delta, 0)) {\n return initialSize;\n }\n const nextSize = [...initialSize];\n const [firstPivotIndex, secondPivotIndex] = pivotIndices;\n ensure(firstPivotIndex, () => \"Invalid first pivot index\");\n ensure(secondPivotIndex, () => \"Invalid second pivot index\");\n let deltaApplied = 0;\n {\n if (trigger === \"keyboard\") {\n {\n const index = delta < 0 ? secondPivotIndex : firstPivotIndex;\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n const { collapsedSize = 0, collapsible, minSize = 0 } = panel;\n if (collapsible) {\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n if (fuzzyNumbersEqual(prevSize2, collapsedSize)) {\n const localDelta = minSize - prevSize2;\n if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) {\n delta = delta < 0 ? 0 - localDelta : localDelta;\n }\n }\n }\n }\n {\n const index = delta < 0 ? firstPivotIndex : secondPivotIndex;\n const panel = panels[index];\n ensure(panel, () => `No panel data found for index ${index}`);\n const { collapsedSize = 0, collapsible, minSize = 0 } = panel;\n if (collapsible) {\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n if (fuzzyNumbersEqual(prevSize2, minSize)) {\n const localDelta = prevSize2 - collapsedSize;\n if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) {\n delta = delta < 0 ? 0 - localDelta : localDelta;\n }\n }\n }\n }\n }\n }\n {\n const increment = delta < 0 ? 1 : -1;\n let index = delta < 0 ? secondPivotIndex : firstPivotIndex;\n let maxAvailableDelta = 0;\n while (true) {\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n const maxSafeSize = resizePanel({\n panels,\n index,\n size: 100\n });\n const delta2 = maxSafeSize - prevSize2;\n maxAvailableDelta += delta2;\n index += increment;\n if (index < 0 || index >= panels.length) {\n break;\n }\n }\n const minAbsDelta = Math.min(Math.abs(delta), Math.abs(maxAvailableDelta));\n delta = delta < 0 ? 0 - minAbsDelta : minAbsDelta;\n }\n {\n const pivotIndex = delta < 0 ? firstPivotIndex : secondPivotIndex;\n let index = pivotIndex;\n while (index >= 0 && index < panels.length) {\n const deltaRemaining = Math.abs(delta) - Math.abs(deltaApplied);\n const prevSize2 = initialSize[index];\n ensure(prevSize2, () => `Previous size not found for panel index ${index}`);\n const unsafeSize = prevSize2 - deltaRemaining;\n const safeSize = resizePanel({ panels, index, size: unsafeSize });\n if (!fuzzyNumbersEqual(prevSize2, safeSize)) {\n deltaApplied += prevSize2 - safeSize;\n nextSize[index] = safeSize;\n if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), void 0, {\n numeric: true\n }) >= 0) {\n break;\n }\n }\n if (delta < 0) {\n index--;\n } else {\n index++;\n }\n }\n }\n if (fuzzySizeEqual(prevSize, nextSize)) {\n return prevSize;\n }\n {\n const pivotIndex = delta < 0 ? secondPivotIndex : firstPivotIndex;\n const prevSize2 = initialSize[pivotIndex];\n ensure(prevSize2, () => `Previous size not found for panel index ${pivotIndex}`);\n const unsafeSize = prevSize2 + deltaApplied;\n const safeSize = resizePanel({ panels, index: pivotIndex, size: unsafeSize });\n nextSize[pivotIndex] = safeSize;\n if (!fuzzyNumbersEqual(safeSize, unsafeSize)) {\n let deltaRemaining = unsafeSize - safeSize;\n const pivotIndex2 = delta < 0 ? secondPivotIndex : firstPivotIndex;\n let index = pivotIndex2;\n while (index >= 0 && index < panels.length) {\n const prevSize3 = nextSize[index];\n ensure(prevSize3, () => `Previous size not found for panel index ${index}`);\n const unsafeSize2 = prevSize3 + deltaRemaining;\n const safeSize2 = resizePanel({ panels, index, size: unsafeSize2 });\n if (!fuzzyNumbersEqual(prevSize3, safeSize2)) {\n deltaRemaining -= safeSize2 - prevSize3;\n nextSize[index] = safeSize2;\n }\n if (fuzzyNumbersEqual(deltaRemaining, 0)) {\n break;\n }\n if (delta > 0) {\n index--;\n } else {\n index++;\n }\n }\n }\n }\n const totalSize = nextSize.reduce((total, size) => size + total, 0);\n if (!fuzzyNumbersEqual(totalSize, 100)) {\n return prevSize;\n }\n return nextSize;\n}\nexport {\n resizeByDelta\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,SAAS,EAAc,GAAO;CAC5B,IAAI,EAAE,UAAO,gBAAa,WAAQ,iBAAc,aAAU,eAAY;CACtE,IAAI,EAAkB,GAAO,CAAC,GAC5B,OAAO;CAET,IAAM,IAAW,CAAC,GAAG,CAAW,GAC1B,CAAC,GAAiB,KAAoB;CAE5C,AADA,EAAO,SAAuB,2BAA2B,GACzD,EAAO,SAAwB,4BAA4B;CAC3D,IAAI,IAAe;CAEjB,IAAI,MAAY,YAAY;EAC1B;GACE,IAAM,IAAQ,IAAQ,IAAI,IAAmB,GACvC,IAAQ,EAAO;GACrB,EAAO,SAAa,kCAAkC,GAAO;GAC7D,IAAM,EAAE,mBAAgB,GAAG,gBAAa,aAAU,MAAM;GACxD,IAAI,GAAa;IACf,IAAM,IAAY,EAAY;IAE9B,IADA,EAAO,SAAiB,2CAA2C,GAAO,GACtE,EAAkB,GAAW,CAAa,GAAG;KAC/C,IAAM,IAAa,IAAU;KAC7B,AAAI,EAAoB,GAAY,KAAK,IAAI,CAAK,CAAC,IAAI,MACrD,IAAQ,IAAQ,IAAI,IAAI,IAAa;IAEzC;GACF;EACF;EACA;GACE,IAAM,IAAQ,IAAQ,IAAI,IAAkB,GACtC,IAAQ,EAAO;GACrB,EAAO,SAAa,iCAAiC,GAAO;GAC5D,IAAM,EAAE,mBAAgB,GAAG,gBAAa,aAAU,MAAM;GACx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ACnC,OAAO;CAET;EACE,IAAM,IAAa,IAAQ,IAAI,IAAmB,GAC5C,IAAY,EAAY;EAC9B,EAAO,SAAiB,2CAA2C,GAAY;EAC/E,IAAM,IAAa,IAAY,GACzB,IAAW,EAAY;GAAE;GAAQ,OAAO;GAAY,MAAM;EAAW,CAAC;EAE5E,IADA,EAAS,KAAc,GACnB,CAAC,EAAkB,GAAU,CAAU,GAAG;GAC5C,IAAI,IAAiB,IAAa,GAE9B,IADgB,IAAQ,IAAI,IAAmB;GAEnD,OAAO,KAAS,KAAK,IAAQ,EAAO,SAAQ;IAC1C,IAAM,IAAY,EAAS;IAC3B,EAAO,SAAiB,2CAA2C,GAAO;IAC1E,IAAM,IAAc,IAAY,GAC1B,IAAY,EAAY;KAAE;KAAQ;KAAO,MAAM;IAAY,CAAC;IAKlE,IAJK,EAAkB,GAAW,CAAS,MACzC,KAAkB,IAAY,GAC9B,EAAS,KAAS,IAEhB,EAAkB,GAAgB,CAAC,GACrC;IAEF,AAAI,IAAQ,IACV,MAEA;GAEJ;EACF;CACF;CAKA,OAHK,EADa,EAAS,QAAQ,GAAO,MAAS,IAAO,GAAO,CAClC,GAAG,GAAG,IAG9B,IAFE;AAGX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize-panel.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/resize-panel.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/resize-panel.ts\nimport { ensure } from \"@zag-js/utils\";\nimport { fuzzyCompareNumbers, PRECISION } from \"./fuzzy.mjs\";\nfunction resizePanel({ panels, index, size }) {\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n let { collapsedSize = 0, collapsible, maxSize = 100, minSize = 0 } = panel;\n if (fuzzyCompareNumbers(size, minSize) < 0) {\n if (collapsible) {\n const halfwayPoint = (collapsedSize + minSize) / 2;\n if (fuzzyCompareNumbers(size, halfwayPoint) < 0) {\n size = collapsedSize;\n } else {\n size = minSize;\n }\n } else {\n size = minSize;\n }\n }\n size = Math.min(maxSize, size);\n size = parseFloat(size.toFixed(PRECISION));\n return size;\n}\nexport {\n resizePanel\n};\n"],"x_google_ignoreList":[0],"mappings":";;;AAKA,SAAS,EAAY,EAAE,WAAQ,UAAO,WAAQ;CAC5C,IAAM,IAAQ,EAAO;CACrB,EAAO,SAAa,kCAAkC,
|
|
1
|
+
{"version":3,"file":"resize-panel.js","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/@zag-js+splitter@1.40.0/node_modules/@zag-js/splitter/dist/utils/resize-panel.mjs"],"sourcesContent":["import \"../chunk-QZ7TP4HQ.mjs\";\n\n// src/utils/resize-panel.ts\nimport { ensure } from \"@zag-js/utils\";\nimport { fuzzyCompareNumbers, PRECISION } from \"./fuzzy.mjs\";\nfunction resizePanel({ panels, index, size }) {\n const panel = panels[index];\n ensure(panel, () => `Panel data not found for index ${index}`);\n let { collapsedSize = 0, collapsible, maxSize = 100, minSize = 0 } = panel;\n if (fuzzyCompareNumbers(size, minSize) < 0) {\n if (collapsible) {\n const halfwayPoint = (collapsedSize + minSize) / 2;\n if (fuzzyCompareNumbers(size, halfwayPoint) < 0) {\n size = collapsedSize;\n } else {\n size = minSize;\n }\n } else {\n size = minSize;\n }\n }\n size = Math.min(maxSize, size);\n size = parseFloat(size.toFixed(PRECISION));\n return size;\n}\nexport {\n resizePanel\n};\n"],"x_google_ignoreList":[0],"mappings":";;;AAKA,SAAS,EAAY,EAAE,WAAQ,UAAO,WAAQ;CAC5C,IAAM,IAAQ,EAAO;CACrB,EAAO,SAAa,kCAAkC,GAAO;CAC7D,IAAI,EAAE,mBAAgB,GAAG,gBAAa,aAAU,KAAK,aAAU,MAAM;CACrE,IAAI,EAAoB,GAAM,CAAO,IAAI,GACvC,IAAI,GAAa;EACf,IAAM,KAAgB,IAAgB,KAAW;EACjD,AAGE,IAHE,EAAoB,GAAM,CAAY,IAAI,IACrC,IAEA;CAEX,OACE,IAAO;CAKX,OAFA,IAAO,KAAK,IAAI,GAAS,CAAI,GAC7B,IAAO,WAAW,EAAK,QAAA,EAAiB,CAAC,GAClC;AACT"}
|