@fuf-stack/pixels 1.13.2 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.mts +18 -18
- package/dist/Accordion/Accordion.d.mts.map +1 -1
- package/dist/Accordion/Accordion.mjs +3 -2
- package/dist/Accordion/Accordion.mjs.map +1 -1
- package/dist/Alert/Alert.d.mts +52 -52
- package/dist/Alert/Alert.d.mts.map +1 -1
- package/dist/Alert/Alert.mjs +5 -3
- package/dist/Alert/Alert.mjs.map +1 -1
- package/dist/Avatar/Avatar.d.mts +14 -14
- package/dist/Avatar/Avatar.d.mts.map +1 -1
- package/dist/Avatar/Avatar.mjs +3 -1
- package/dist/Avatar/Avatar.mjs.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.mts +2 -2
- package/dist/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/Badge/Badge.d.mts +3 -3
- package/dist/Badge/Badge.d.mts.map +1 -1
- package/dist/Badge/Badge.mjs +3 -1
- package/dist/Badge/Badge.mjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.mts +27 -27
- package/dist/Breadcrumb/Breadcrumb.d.mts.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.mjs +2 -1
- package/dist/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/Button/Button.d.mts +2 -2
- package/dist/Button/Button.d.mts.map +1 -1
- package/dist/Button/Button.mjs +11 -10
- package/dist/Button/Button.mjs.map +1 -1
- package/dist/Card/Card.d.mts +14 -14
- package/dist/Card/Card.d.mts.map +1 -1
- package/dist/Card/Card.mjs +2 -1
- package/dist/Card/Card.mjs.map +1 -1
- package/dist/Drawer/Drawer.d.mts +21 -21
- package/dist/Drawer/Drawer.d.mts.map +1 -1
- package/dist/Drawer/Drawer.mjs +3 -1
- package/dist/Drawer/Drawer.mjs.map +1 -1
- package/dist/Json/Json.d.mts +2 -2
- package/dist/Json/Json.d.mts.map +1 -1
- package/dist/Json/jsonParser.mjs +9 -4
- package/dist/Json/jsonParser.mjs.map +1 -1
- package/dist/Label/Label.d.mts +55 -55
- package/dist/Label/Label.d.mts.map +1 -1
- package/dist/Label/Label.mjs +3 -2
- package/dist/Label/Label.mjs.map +1 -1
- package/dist/Menu/Menu.d.mts +16 -16
- package/dist/Menu/Menu.d.mts.map +1 -1
- package/dist/Menu/Menu.mjs +2 -1
- package/dist/Menu/Menu.mjs.map +1 -1
- package/dist/Modal/Modal.d.mts +8 -8
- package/dist/Modal/Modal.d.mts.map +1 -1
- package/dist/Modal/Modal.mjs +3 -1
- package/dist/Modal/Modal.mjs.map +1 -1
- package/dist/Modal/modalStore.d.mts +4 -5
- package/dist/Modal/modalStore.d.mts.map +1 -1
- package/dist/Popover/Popover.d.mts +25 -25
- package/dist/Popover/Popover.d.mts.map +1 -1
- package/dist/Popover/Popover.mjs +2 -1
- package/dist/Popover/Popover.mjs.map +1 -1
- package/dist/Progress/Progress.d.mts +30 -30
- package/dist/Progress/Progress.d.mts.map +1 -1
- package/dist/Progress/Progress.mjs +2 -1
- package/dist/Progress/Progress.mjs.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.mts +32 -32
- package/dist/ProgressCircular/ProgressCircular.d.mts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.mjs +6 -6
- package/dist/ProgressCircular/ProgressCircular.mjs.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.d.mts +2 -2
- package/dist/ScrollShadow/ScrollShadow.d.mts.map +1 -1
- package/dist/SearchInput/SearchInput.d.mts +4 -4
- package/dist/SearchInput/SearchInput.d.mts.map +1 -1
- package/dist/SearchInput/SearchInput.mjs +2 -1
- package/dist/SearchInput/SearchInput.mjs.map +1 -1
- package/dist/Table/Table.d.mts +12 -12
- package/dist/Table/Table.d.mts.map +1 -1
- package/dist/Table/Table.mjs +3 -1
- package/dist/Table/Table.mjs.map +1 -1
- package/dist/Tabs/Tabs.d.mts +5 -5
- package/dist/Tabs/Tabs.d.mts.map +1 -1
- package/dist/Tabs/Tabs.mjs +3 -1
- package/dist/Tabs/Tabs.mjs.map +1 -1
- package/dist/Toast/Toaster.d.mts +2 -2
- package/dist/Toast/Toaster.d.mts.map +1 -1
- package/dist/Toast/toast.d.mts +3 -3
- package/dist/Toast/toast.d.mts.map +1 -1
- package/dist/Tooltip/Tooltip.d.mts +17 -17
- package/dist/Tooltip/Tooltip.d.mts.map +1 -1
- package/dist/Tooltip/Tooltip.mjs +2 -1
- package/dist/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +1 -1
- package/dist/hooks/useDebounce/useDebounce.d.mts +1 -2
- package/dist/hooks/useDebounce/useDebounce.d.mts.map +1 -1
- package/dist/hooks/useDebounce/useDebounce.mjs +8 -6
- package/dist/hooks/useDebounce/useDebounce.mjs.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.mts +1 -2
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.mts.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.mjs.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.d.mts +1 -2
- package/dist/hooks/useLocalStorage/useLocalStorage.d.mts.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.mjs +2 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs +8 -7
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs +11 -8
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedClose.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Value.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfo.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Ellipsis.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/KeyName.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Row.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Expands.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Section.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/ShowTools.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Symbols.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Types.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/symbol/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/types/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs +6 -3
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.d.mts +3 -4
- package/dist/utils/createWithSuspense/createWithSuspense.d.mts.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.mjs +20 -19
- package/dist/utils/createWithSuspense/createWithSuspense.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.mjs","names":["Tooltip","HeroTooltip","ScrollShadow"],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { TooltipPlacement as HeroTooltipPlacement } from '@heroui/tooltip';\nimport type { ReactNode } from 'react';\n\nimport { Tooltip as HeroTooltip } from '@heroui/tooltip';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// tooltip variants\nexport const tooltipVariants = tv({\n slots: {\n base: '',\n body: 'w-full px-4 py-2',\n content: 'flex max-h-[80vh] flex-col p-0',\n divider: 'm-0 w-full border-divider p-0',\n footer: 'w-full px-4 py-2',\n footerWrapper: 'w-full',\n header: 'w-full px-4 pb-1 pt-2 font-semibold',\n headerWrapper: 'w-full',\n trigger: 'cursor-pointer',\n },\n variants: {\n size: {\n xs: {\n // base: 'max-w-xs',\n body: 'max-w-xs',\n footer: 'max-w-xs',\n header: 'max-w-xs',\n },\n sm: {\n // base: 'max-w-sm',\n body: 'max-w-sm',\n footer: 'max-w-sm',\n header: 'max-w-sm',\n },\n md: {\n // base: 'max-w-md',\n body: 'max-w-md',\n footer: 'max-w-md',\n header: 'max-w-md',\n },\n lg: {\n // base: 'max-w-lg',\n body: 'max-w-lg',\n footer: 'max-w-lg',\n header: 'max-w-lg',\n },\n xl: {\n // base: 'max-w-xl',\n body: 'max-w-xl',\n footer: 'max-w-xl',\n header: 'max-w-xl',\n },\n '2xl': {\n // base: 'max-w-2xl',\n body: 'max-w-2xl',\n footer: 'max-w-2xl',\n header: 'max-w-2xl',\n },\n '3xl': {\n // base: 'max-w-3xl',\n body: 'max-w-3xl',\n footer: 'max-w-3xl',\n header: 'max-w-3xl',\n },\n full: { base: '' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof tooltipVariants>;\ntype ClassName = TVClassName<typeof tooltipVariants>;\n\nexport type TooltipPlacement = HeroTooltipPlacement;\n\nexport interface TooltipProps extends VariantProps {\n /** trigger child components */\n children: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** delay in milliseconds before the tooltip opens. */\n closeDelay?: number;\n /** placement padding in px */\n containerPadding?: number;\n /** content displayed in the tooltip */\n content: ReactNode;\n /** open overlay initially when uncontrolled */\n defaultOpen?: boolean;\n /** delay in milliseconds before the tooltip opens. */\n delay?: number;\n /** tooltip footer */\n footer?: ReactNode;\n /** tooltip header */\n header?: ReactNode;\n /** handler that is called when the overlay's open state changes */\n onOpenChange?: (isOpen: boolean) => void;\n /** placement if the tooltip */\n placement?: TooltipPlacement;\n /** size of the tooltip */\n size?: VariantProps['size'];\n}\n\n/**\n * Tooltip component based on [HeroUI Tooltip](https://www.heroui.com//docs/components/tooltip)\n */\nconst Tooltip = ({\n children,\n className: _className = undefined,\n closeDelay = 500,\n containerPadding = 0,\n content,\n defaultOpen = false,\n delay = 0,\n footer = undefined,\n header = undefined,\n onOpenChange = undefined,\n placement = 'top',\n size = 'full',\n}: TooltipProps) => {\n // classNames from slots\n const variants = tooltipVariants({ size });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTooltip\n classNames={classNames}\n closeDelay={closeDelay}\n containerPadding={containerPadding}\n content={\n <div>\n {header ? (\n <div className={classNames.headerWrapper}>\n <div className={classNames.header}>{header}</div>\n <hr className={classNames.divider} />\n </div>\n ) : null}\n <ScrollShadow className={classNames.body}>{content}</ScrollShadow>\n {footer ? (\n <div className={classNames.footerWrapper}>\n <hr className={classNames.divider} />\n <div className={classNames.footer}>{footer}</div>\n </div>\n ) : null}\n </div>\n }\n defaultOpen={defaultOpen}\n delay={delay}\n onClick={(e) => {\n e.preventDefault();\n }}\n onOpenChange={onOpenChange}\n placement={placement}\n shouldFlip\n showArrow\n >\n <span className={classNames.trigger}>{children}</span>\n </HeroTooltip>\n );\n};\n\nexport default Tooltip;\n"],"mappings":";;;;;AAWA,MAAa,kBAAkB,GAAG;CAChC,OAAO;EACL,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,QAAQ;EACR,eAAe;EACf,QAAQ;EACR,eAAe;EACf,SAAS;CACX;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GAEL,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GAEL,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,MAAM,EAAE,MAAM,GAAG;CACnB,EACF;AACF,CAAC;;;;AAqCD,MAAMA,aAAW,EACf,UACA,WAAW,aAAa,KAAA,GACxB,aAAa,KACb,mBAAmB,GACnB,SACA,cAAc,OACd,QAAQ,GACR,SAAS,KAAA,GACT,SAAS,KAAA,GACT,eAAe,KAAA,GACf,YAAY,OACZ,OAAO,aACW;
|
|
1
|
+
{"version":3,"file":"Tooltip.mjs","names":["Tooltip","HeroTooltip","ScrollShadow"],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { TooltipPlacement as HeroTooltipPlacement } from '@heroui/tooltip';\nimport type { ReactNode } from 'react';\n\nimport { Tooltip as HeroTooltip } from '@heroui/tooltip';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// tooltip variants\nexport const tooltipVariants = tv({\n slots: {\n base: '',\n body: 'w-full px-4 py-2',\n content: 'flex max-h-[80vh] flex-col p-0',\n divider: 'm-0 w-full border-divider p-0',\n footer: 'w-full px-4 py-2',\n footerWrapper: 'w-full',\n header: 'w-full px-4 pb-1 pt-2 font-semibold',\n headerWrapper: 'w-full',\n trigger: 'cursor-pointer',\n },\n variants: {\n size: {\n xs: {\n // base: 'max-w-xs',\n body: 'max-w-xs',\n footer: 'max-w-xs',\n header: 'max-w-xs',\n },\n sm: {\n // base: 'max-w-sm',\n body: 'max-w-sm',\n footer: 'max-w-sm',\n header: 'max-w-sm',\n },\n md: {\n // base: 'max-w-md',\n body: 'max-w-md',\n footer: 'max-w-md',\n header: 'max-w-md',\n },\n lg: {\n // base: 'max-w-lg',\n body: 'max-w-lg',\n footer: 'max-w-lg',\n header: 'max-w-lg',\n },\n xl: {\n // base: 'max-w-xl',\n body: 'max-w-xl',\n footer: 'max-w-xl',\n header: 'max-w-xl',\n },\n '2xl': {\n // base: 'max-w-2xl',\n body: 'max-w-2xl',\n footer: 'max-w-2xl',\n header: 'max-w-2xl',\n },\n '3xl': {\n // base: 'max-w-3xl',\n body: 'max-w-3xl',\n footer: 'max-w-3xl',\n header: 'max-w-3xl',\n },\n full: { base: '' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof tooltipVariants>;\ntype ClassName = TVClassName<typeof tooltipVariants>;\n\nexport type TooltipPlacement = HeroTooltipPlacement;\n\nexport interface TooltipProps extends VariantProps {\n /** trigger child components */\n children: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** delay in milliseconds before the tooltip opens. */\n closeDelay?: number;\n /** placement padding in px */\n containerPadding?: number;\n /** content displayed in the tooltip */\n content: ReactNode;\n /** open overlay initially when uncontrolled */\n defaultOpen?: boolean;\n /** delay in milliseconds before the tooltip opens. */\n delay?: number;\n /** tooltip footer */\n footer?: ReactNode;\n /** tooltip header */\n header?: ReactNode;\n /** handler that is called when the overlay's open state changes */\n onOpenChange?: (isOpen: boolean) => void;\n /** placement if the tooltip */\n placement?: TooltipPlacement;\n /** size of the tooltip */\n size?: VariantProps['size'];\n}\n\n/**\n * Tooltip component based on [HeroUI Tooltip](https://www.heroui.com//docs/components/tooltip)\n */\nconst Tooltip = ({\n children,\n className: _className = undefined,\n closeDelay = 500,\n containerPadding = 0,\n content,\n defaultOpen = false,\n delay = 0,\n footer = undefined,\n header = undefined,\n onOpenChange = undefined,\n placement = 'top',\n size = 'full',\n}: TooltipProps) => {\n // classNames from slots\n const variants = tooltipVariants({ size });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTooltip\n classNames={classNames}\n closeDelay={closeDelay}\n containerPadding={containerPadding}\n content={\n <div>\n {header ? (\n <div className={classNames.headerWrapper}>\n <div className={classNames.header}>{header}</div>\n <hr className={classNames.divider} />\n </div>\n ) : null}\n <ScrollShadow className={classNames.body}>{content}</ScrollShadow>\n {footer ? (\n <div className={classNames.footerWrapper}>\n <hr className={classNames.divider} />\n <div className={classNames.footer}>{footer}</div>\n </div>\n ) : null}\n </div>\n }\n defaultOpen={defaultOpen}\n delay={delay}\n onClick={(e) => {\n e.preventDefault();\n }}\n onOpenChange={onOpenChange}\n placement={placement}\n shouldFlip\n showArrow\n >\n <span className={classNames.trigger}>{children}</span>\n </HeroTooltip>\n );\n};\n\nexport default Tooltip;\n"],"mappings":";;;;;AAWA,MAAa,kBAAkB,GAAG;CAChC,OAAO;EACL,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,QAAQ;EACR,eAAe;EACf,QAAQ;EACR,eAAe;EACf,SAAS;CACX;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GAEL,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GAEL,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,MAAM,EAAE,MAAM,GAAG;CACnB,EACF;AACF,CAAC;;;;AAqCD,MAAMA,aAAW,EACf,UACA,WAAW,aAAa,KAAA,GACxB,aAAa,KACb,mBAAmB,GACnB,SACA,cAAc,OACd,QAAQ,GACR,SAAS,KAAA,GACT,SAAS,KAAA,GACT,eAAe,KAAA,GACf,YAAY,OACZ,OAAO,aACW;CAElB,MAAM,WAAW,gBAAgB,EAAE,KAAK,CAAC;CACzC,MAAM,aAAa,qBAAqB,UAAU,YAAY,MAAM;CAEpE,OACE,oBAACC,SAAD;EACc;EACA;EACM;EAClB,SACE,qBAAC,OAAD,EAAA,UAAA;GACG,SACC,qBAAC,OAAD;IAAK,WAAW,WAAW;IAA3B,UAAA,CACE,oBAAC,OAAD;KAAK,WAAW,WAAW;KAAS,UAAA;IAAY,CAAA,GAChD,oBAAC,MAAD,EAAI,WAAW,WAAW,QAAU,CAAA,CACjC;GACH,CAAA,IAAA;GACJ,oBAACC,sBAAD;IAAc,WAAW,WAAW;IAAO,UAAA;GAAsB,CAAA;GAChE,SACC,qBAAC,OAAD;IAAK,WAAW,WAAW;IAA3B,UAAA,CACE,oBAAC,MAAD,EAAI,WAAW,WAAW,QAAU,CAAA,GACpC,oBAAC,OAAD;KAAK,WAAW,WAAW;KAAS,UAAA;IAAY,CAAA,CAC7C;GACH,CAAA,IAAA;EACD,EAAA,CAAA;EAEM;EACN;EACP,UAAU,MAAM;GACd,EAAE,eAAe;EACnB;EACc;EACH;EACX,YAAA;EACA,WAAA;EAEA,UAAA,oBAAC,QAAD;GAAM,WAAW,WAAW;GAAU;EAAe,CAAA;CAC1C,CAAA;AAEjB"}
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* @param delay - Delay in milliseconds
|
|
6
6
|
* @returns The debounced value
|
|
7
7
|
*/
|
|
8
|
-
declare const useDebounce: <Value>(value: Value, delay: number) => Value;
|
|
8
|
+
export declare const useDebounce: <Value>(value: Value, delay: number) => Value;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { useDebounce };
|
|
11
10
|
//# sourceMappingURL=useDebounce.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebounce.d.mts","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"useDebounce.d.mts","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"mappings":";;;;;;;qBAYa,cAAe,OAAO,OAAO,OAAO,kBAAa"}
|
|
@@ -8,6 +8,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
8
8
|
* @returns The debounced value
|
|
9
9
|
*/
|
|
10
10
|
const useDebounce = (value, delay) => {
|
|
11
|
+
const skipDebounce = isTestEnvironment();
|
|
11
12
|
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
12
13
|
const isMountedRef = useRef(true);
|
|
13
14
|
useEffect(() => {
|
|
@@ -17,18 +18,19 @@ const useDebounce = (value, delay) => {
|
|
|
17
18
|
};
|
|
18
19
|
}, []);
|
|
19
20
|
useEffect(() => {
|
|
20
|
-
if (
|
|
21
|
-
setDebouncedValue(value);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
21
|
+
if (skipDebounce) return;
|
|
24
22
|
const handler = setTimeout(() => {
|
|
25
23
|
if (isMountedRef.current) setDebouncedValue(value);
|
|
26
24
|
}, delay);
|
|
27
25
|
return () => {
|
|
28
26
|
clearTimeout(handler);
|
|
29
27
|
};
|
|
30
|
-
}, [
|
|
31
|
-
|
|
28
|
+
}, [
|
|
29
|
+
value,
|
|
30
|
+
delay,
|
|
31
|
+
skipDebounce
|
|
32
|
+
]);
|
|
33
|
+
return skipDebounce ? value : debouncedValue;
|
|
32
34
|
};
|
|
33
35
|
//#endregion
|
|
34
36
|
export { useDebounce };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebounce.mjs","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { isTestEnvironment } from '@fuf-stack/pixel-utils';\n\n/**\n * Hook that debounces a value\n * @param value - The value to debounce\n * @param delay - Delay in milliseconds\n * @returns The debounced value\n */\nexport const useDebounce = <Value>(value: Value, delay: number) => {\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n // Track if component is mounted to prevent setState on unmounted component\n const isMountedRef = useRef(true);\n\n useEffect(() => {\n // Mark as mounted\n isMountedRef.current = true;\n return () => {\n // Mark as unmounted on cleanup\n isMountedRef.current = false;\n };\n }, []);\n\n useEffect(\n () => {\n // In test environments, skip debouncing for immediate snapshots\n if (
|
|
1
|
+
{"version":3,"file":"useDebounce.mjs","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { isTestEnvironment } from '@fuf-stack/pixel-utils';\n\n/**\n * Hook that debounces a value\n * @param value - The value to debounce\n * @param delay - Delay in milliseconds\n * @returns The debounced value\n */\nexport const useDebounce = <Value>(value: Value, delay: number) => {\n const skipDebounce = isTestEnvironment();\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n // Track if component is mounted to prevent setState on unmounted component\n const isMountedRef = useRef(true);\n\n useEffect(() => {\n // Mark as mounted\n isMountedRef.current = true;\n return () => {\n // Mark as unmounted on cleanup\n isMountedRef.current = false;\n };\n }, []);\n\n useEffect(\n () => {\n // In test environments, skip debouncing for immediate snapshots\n if (skipDebounce) {\n return undefined;\n }\n\n // Update debounced value after delay\n const handler = setTimeout(() => {\n // Only update state if component is still mounted\n if (isMountedRef.current) {\n setDebouncedValue(value);\n }\n }, delay);\n\n // Cancel the timeout if value changes (also on delay change or unmount)\n // This is how we prevent debounced value from updating if value is changed ...\n // .. within the delay period. Timeout gets cleared and restarted.\n return () => {\n clearTimeout(handler);\n };\n },\n [value, delay, skipDebounce], // Only re-call effect if value or delay changes\n );\n\n return skipDebounce ? value : debouncedValue;\n};\n"],"mappings":";;;;;;;;;AAYA,MAAa,eAAsB,OAAc,UAAkB;CACjE,MAAM,eAAe,kBAAkB;CAEvC,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,KAAK;CAE1D,MAAM,eAAe,OAAO,IAAI;CAEhC,gBAAgB;EAEd,aAAa,UAAU;EACvB,aAAa;GAEX,aAAa,UAAU;EACzB;CACF,GAAG,CAAC,CAAC;CAEL,gBACQ;EAEJ,IAAI,cACF;EAIF,MAAM,UAAU,iBAAiB;GAE/B,IAAI,aAAa,SACf,kBAAkB,KAAK;EAE3B,GAAG,KAAK;EAKR,aAAa;GACX,aAAa,OAAO;EACtB;CACF,GACA;EAAC;EAAO;EAAO;CAAY,CAC7B;CAEA,OAAO,eAAe,QAAQ;AAChC"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @returns {boolean} - True on initial render, false afterward
|
|
6
6
|
*/
|
|
7
|
-
declare const useIsInitialRenderCycle: () => boolean;
|
|
7
|
+
export declare const useIsInitialRenderCycle: () => boolean;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { useIsInitialRenderCycle };
|
|
10
9
|
//# sourceMappingURL=useIsInitialRenderCycle.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsInitialRenderCycle.d.mts","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"useIsInitialRenderCycle.d.mts","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"mappings":";;;;;;qBASa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsInitialRenderCycle.mjs","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef } from 'react';\n\n/**\n * A hook that returns true on initial render and false afterward.\n *\n * @returns {boolean} - True on initial render, false afterward\n */\nexport const useIsInitialRenderCycle = (): boolean => {\n // Use ref to avoid re-renders\n const isInitialRender = useRef(true);\n\n // Update ref after first render\n useEffect(() => {\n // Set to false after component mounts\n isInitialRender.current = false;\n\n // No cleanup needed for this effect\n }, []);\n\n return isInitialRender.current;\n};\n"],"mappings":";;;;;;;AASA,MAAa,gCAAyC;CAEpD,MAAM,kBAAkB,OAAO,IAAI;CAGnC,gBAAgB;EAEd,gBAAgB,UAAU;CAG5B,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useIsInitialRenderCycle.mjs","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef } from 'react';\n\n/**\n * A hook that returns true on initial render and false afterward.\n *\n * @returns {boolean} - True on initial render, false afterward\n */\nexport const useIsInitialRenderCycle = (): boolean => {\n // Use ref to avoid re-renders\n const isInitialRender = useRef(true);\n\n // Update ref after first render\n useEffect(() => {\n // Set to false after component mounts\n isInitialRender.current = false;\n\n // No cleanup needed for this effect\n }, []);\n\n // Reading this mount marker is the purpose of the hook; it never drives a\n // mutation during render and changes only after the initial commit.\n // eslint-disable-next-line react-hooks/refs\n return isInitialRender.current;\n};\n"],"mappings":";;;;;;;AASA,MAAa,gCAAyC;CAEpD,MAAM,kBAAkB,OAAO,IAAI;CAGnC,gBAAgB;EAEd,gBAAgB,UAAU;CAG5B,GAAG,CAAC,CAAC;CAKL,OAAO,gBAAgB;AACzB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from "react";
|
|
2
2
|
//#region src/hooks/useLocalStorage/useLocalStorage.d.ts
|
|
3
|
-
declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
|
|
3
|
+
export declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
|
|
4
4
|
//#endregion
|
|
5
|
-
export { useLocalStorage };
|
|
6
5
|
//# sourceMappingURL=useLocalStorage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.d.mts","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useLocalStorage.d.mts","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"mappings":";;qBAMa,kBAAmB,GAC9B,aACA,cAAc,WAAW,QACvB,GAAG,SAAS,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.mjs","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { useEffect, useState } from 'react';\n\nexport const useLocalStorage = <T>(\n key: string,\n initialValue: T | (() => T),\n): [T, Dispatch<SetStateAction<T>>] => {\n // Get from local storage then\n // parse stored json or return initialValue\n const readValue = (): T => {\n // Helper to resolve initial value (handle function or direct value)\n const resolveInitialValue = (): T => {\n return typeof initialValue === 'function'\n ? (initialValue as () => T)()\n : initialValue;\n };\n\n // Prevent build error \"window is undefined\" but keep keep working\n if (typeof window === 'undefined') {\n return resolveInitialValue();\n }\n\n try {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n const item = window.localStorage.getItem(key);\n if (item) {\n return JSON.parse(item) as T;\n }\n return resolveInitialValue();\n } catch (error) {\n console.warn(`Error reading localStorage key \"${key}\":`, error);\n return resolveInitialValue();\n }\n };\n\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState<T>(readValue);\n\n // Return a wrapped version of useState's setter function that ...\n // ... persists the new value to localStorage.\n const setValue: Dispatch<SetStateAction<T>> = (value) => {\n // Prevent build error \"window is undefined\" but keeps working\n if (typeof window === 'undefined') {\n console.warn(\n `Tried setting localStorage key \"${key}\" even though environment is not a client`,\n );\n return;\n }\n\n try {\n // Allow value to be a function so we have the same API as useState\n const newValue = value instanceof Function ? value(storedValue) : value;\n\n // Save to local storage\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n window.localStorage.setItem(key, JSON.stringify(newValue));\n\n // Save state\n setStoredValue(newValue);\n\n // We dispatch a custom event so every useLocalStorage hook are notified\n window.dispatchEvent(new Event('local-storage'));\n } catch (error) {\n console.warn(`Error setting localStorage key \"${key}\":`, error);\n }\n };\n\n useEffect(() => {\n setStoredValue(readValue());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n // Skip event listeners in SSR environment\n if (typeof window === 'undefined') {\n return undefined;\n }\n\n const handleStorageChange = () => {\n setStoredValue(readValue());\n };\n\n // this only works for other documents, not the current one\n window.addEventListener('storage', handleStorageChange);\n\n // this is a custom event, triggered in writeValueToLocalStorage\n window.addEventListener('local-storage', handleStorageChange);\n\n return () => {\n window.removeEventListener('storage', handleStorageChange);\n window.removeEventListener('local-storage', handleStorageChange);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return [storedValue, setValue];\n};\n"],"mappings":";;AAMA,MAAa,mBACX,KACA,iBACqC;CAGrC,MAAM,kBAAqB;EAEzB,MAAM,4BAA+B;GACnC,OAAO,OAAO,iBAAiB,aAC1B,aAAyB,IAC1B;EACN;EAGA,IAAI,OAAO,WAAW,aACpB,OAAO,oBAAoB;EAG7B,IAAI;GAEF,MAAM,OAAO,OAAO,aAAa,QAAQ,GAAG;GAC5C,IAAI,MACF,OAAO,KAAK,MAAM,IAAI;GAExB,OAAO,oBAAoB;EAC7B,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;GAC9D,OAAO,oBAAoB;EAC7B;CACF;CAIA,MAAM,CAAC,aAAa,kBAAkB,SAAY,SAAS;CAI3D,MAAM,YAAyC,UAAU;EAEvD,IAAI,OAAO,WAAW,aAAa;GACjC,QAAQ,KACN,mCAAmC,IAAI,0CACzC;GACA;EACF;EAEA,IAAI;GAEF,MAAM,WAAW,iBAAiB,WAAW,MAAM,WAAW,IAAI;GAIlE,OAAO,aAAa,QAAQ,KAAK,KAAK,UAAU,QAAQ,CAAC;GAGzD,eAAe,QAAQ;GAGvB,OAAO,cAAc,IAAI,MAAM,eAAe,CAAC;EACjD,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;EAChE;CACF;CAEA,gBAAgB;
|
|
1
|
+
{"version":3,"file":"useLocalStorage.mjs","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { useEffect, useState } from 'react';\n\nexport const useLocalStorage = <T>(\n key: string,\n initialValue: T | (() => T),\n): [T, Dispatch<SetStateAction<T>>] => {\n // Get from local storage then\n // parse stored json or return initialValue\n const readValue = (): T => {\n // Helper to resolve initial value (handle function or direct value)\n const resolveInitialValue = (): T => {\n return typeof initialValue === 'function'\n ? (initialValue as () => T)()\n : initialValue;\n };\n\n // Prevent build error \"window is undefined\" but keep keep working\n if (typeof window === 'undefined') {\n return resolveInitialValue();\n }\n\n try {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n const item = window.localStorage.getItem(key);\n if (item) {\n return JSON.parse(item) as T;\n }\n return resolveInitialValue();\n } catch (error) {\n console.warn(`Error reading localStorage key \"${key}\":`, error);\n return resolveInitialValue();\n }\n };\n\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState<T>(readValue);\n\n // Return a wrapped version of useState's setter function that ...\n // ... persists the new value to localStorage.\n const setValue: Dispatch<SetStateAction<T>> = (value) => {\n // Prevent build error \"window is undefined\" but keeps working\n if (typeof window === 'undefined') {\n console.warn(\n `Tried setting localStorage key \"${key}\" even though environment is not a client`,\n );\n return;\n }\n\n try {\n // Allow value to be a function so we have the same API as useState\n const newValue = value instanceof Function ? value(storedValue) : value;\n\n // Save to local storage\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n window.localStorage.setItem(key, JSON.stringify(newValue));\n\n // Save state\n setStoredValue(newValue);\n\n // We dispatch a custom event so every useLocalStorage hook are notified\n window.dispatchEvent(new Event('local-storage'));\n } catch (error) {\n console.warn(`Error setting localStorage key \"${key}\":`, error);\n }\n };\n\n useEffect(() => {\n // Re-read after mounting so changes made between initialization and the\n // first committed render are reflected before listeners take over.\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setStoredValue(readValue());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n // Skip event listeners in SSR environment\n if (typeof window === 'undefined') {\n return undefined;\n }\n\n const handleStorageChange = () => {\n setStoredValue(readValue());\n };\n\n // this only works for other documents, not the current one\n window.addEventListener('storage', handleStorageChange);\n\n // this is a custom event, triggered in writeValueToLocalStorage\n window.addEventListener('local-storage', handleStorageChange);\n\n return () => {\n window.removeEventListener('storage', handleStorageChange);\n window.removeEventListener('local-storage', handleStorageChange);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return [storedValue, setValue];\n};\n"],"mappings":";;AAMA,MAAa,mBACX,KACA,iBACqC;CAGrC,MAAM,kBAAqB;EAEzB,MAAM,4BAA+B;GACnC,OAAO,OAAO,iBAAiB,aAC1B,aAAyB,IAC1B;EACN;EAGA,IAAI,OAAO,WAAW,aACpB,OAAO,oBAAoB;EAG7B,IAAI;GAEF,MAAM,OAAO,OAAO,aAAa,QAAQ,GAAG;GAC5C,IAAI,MACF,OAAO,KAAK,MAAM,IAAI;GAExB,OAAO,oBAAoB;EAC7B,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;GAC9D,OAAO,oBAAoB;EAC7B;CACF;CAIA,MAAM,CAAC,aAAa,kBAAkB,SAAY,SAAS;CAI3D,MAAM,YAAyC,UAAU;EAEvD,IAAI,OAAO,WAAW,aAAa;GACjC,QAAQ,KACN,mCAAmC,IAAI,0CACzC;GACA;EACF;EAEA,IAAI;GAEF,MAAM,WAAW,iBAAiB,WAAW,MAAM,WAAW,IAAI;GAIlE,OAAO,aAAa,QAAQ,KAAK,KAAK,UAAU,QAAQ,CAAC;GAGzD,eAAe,QAAQ;GAGvB,OAAO,cAAc,IAAI,MAAM,eAAe,CAAC;EACjD,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;EAChE;CACF;CAEA,gBAAgB;EAId,eAAe,UAAU,CAAC;CAE5B,GAAG,CAAC,CAAC;CAEL,gBAAgB;EAEd,IAAI,OAAO,WAAW,aACpB;EAGF,MAAM,4BAA4B;GAChC,eAAe,UAAU,CAAC;EAC5B;EAGA,OAAO,iBAAiB,WAAW,mBAAmB;EAGtD,OAAO,iBAAiB,iBAAiB,mBAAmB;EAE5D,aAAa;GACX,OAAO,oBAAoB,WAAW,mBAAmB;GACzD,OAAO,oBAAoB,iBAAiB,mBAAmB;EACjE;CAEF,GAAG,CAAC,CAAC;CAEL,OAAO,CAAC,aAAa,QAAQ;AAC/B"}
|
|
@@ -30,8 +30,9 @@ var Container = /*#__PURE__*/ forwardRef((props, ref) => {
|
|
|
30
30
|
var _props$level = props.level, level = _props$level === void 0 ? 1 : _props$level, value = props.value, initialValue = props.initialValue, keys = props.keys, keyName = props.keyName, elmProps = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded);
|
|
31
31
|
var dispatch = useShowToolsDispatch();
|
|
32
32
|
var subkeyid = useIdCompat();
|
|
33
|
+
var defaultClassNames = [className, "w-rjv-inner"].filter(Boolean).join(" ");
|
|
33
34
|
return /*#__PURE__*/ jsxs("div", (0, import_extends.default)({
|
|
34
|
-
className:
|
|
35
|
+
className: defaultClassNames,
|
|
35
36
|
ref
|
|
36
37
|
}, elmProps, {
|
|
37
38
|
onMouseEnter: () => dispatch({ [subkeyid]: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"parentValue\", \"keyid\", \"level\", \"value\", \"initialValue\", \"keys\", \"keyName\"];\nimport React, { forwardRef } from 'react';\nimport { NestedClose } from \"./comps/NestedClose.js\";\nimport { NestedOpen } from \"./comps/NestedOpen.js\";\nimport { KeyValues } from \"./comps/KeyValues.js\";\nimport { useIdCompat } from \"./comps/useIdCompat.js\";\nimport { useShowToolsDispatch } from \"./store/ShowTools.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var Container = /*#__PURE__*/forwardRef((props, ref) => {\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n children = props.children,\n parentValue = props.parentValue,\n keyid = props.keyid,\n _props$level = props.level,\n level = _props$level === void 0 ? 1 : _props$level,\n value = props.value,\n initialValue = props.initialValue,\n keys = props.keys,\n keyName = props.keyName,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var defaultClassNames = [className, 'w-rjv-inner'].filter(Boolean).join(' ');\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n className: defaultClassNames,\n ref: ref\n }, elmProps, reset, {\n children: [/*#__PURE__*/_jsx(NestedOpen, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName,\n initialValue: initialValue\n }), /*#__PURE__*/_jsx(KeyValues, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(NestedClose, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n })]\n }));\n});\nContainer.displayName = 'JVR.Container';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAa;CAAY;CAAe;CAAS;CAAS;CAAS;CAAgB;CAAQ;AAAS;AAQrH,IAAW,YAAyB,0BAAY,OAAO,QAAQ;CAC7D,IAAI,mBAAmB,MAAM,WAC3B,YAAY,qBAAqB,KAAK,IAAI,KAAK;CACpC,MAAM;CAFnB,IAGE,cAAc,MAAM;CACZ,MAAM;CAJhB,IAKE,eAAe,MAAM,OACrB,QAAQ,iBAAiB,KAAK,IAAI,IAAI,cACtC,QAAQ,MAAM,OACd,eAAe,MAAM,cACrB,OAAO,MAAM,MACb,UAAU,MAAM,SAChB,YAAA,
|
|
1
|
+
{"version":3,"file":"Container.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"parentValue\", \"keyid\", \"level\", \"value\", \"initialValue\", \"keys\", \"keyName\"];\nimport React, { forwardRef } from 'react';\nimport { NestedClose } from \"./comps/NestedClose.js\";\nimport { NestedOpen } from \"./comps/NestedOpen.js\";\nimport { KeyValues } from \"./comps/KeyValues.js\";\nimport { useIdCompat } from \"./comps/useIdCompat.js\";\nimport { useShowToolsDispatch } from \"./store/ShowTools.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var Container = /*#__PURE__*/forwardRef((props, ref) => {\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n children = props.children,\n parentValue = props.parentValue,\n keyid = props.keyid,\n _props$level = props.level,\n level = _props$level === void 0 ? 1 : _props$level,\n value = props.value,\n initialValue = props.initialValue,\n keys = props.keys,\n keyName = props.keyName,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var defaultClassNames = [className, 'w-rjv-inner'].filter(Boolean).join(' ');\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n className: defaultClassNames,\n ref: ref\n }, elmProps, reset, {\n children: [/*#__PURE__*/_jsx(NestedOpen, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName,\n initialValue: initialValue\n }), /*#__PURE__*/_jsx(KeyValues, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(NestedClose, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n })]\n }));\n});\nContainer.displayName = 'JVR.Container';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAa;CAAY;CAAe;CAAS;CAAS;CAAS;CAAgB;CAAQ;AAAS;AAQrH,IAAW,YAAyB,0BAAY,OAAO,QAAQ;CAC7D,IAAI,mBAAmB,MAAM,WAC3B,YAAY,qBAAqB,KAAK,IAAI,KAAK;CACpC,MAAM;CAFnB,IAGE,cAAc,MAAM;CACZ,MAAM;CAJhB,IAKE,eAAe,MAAM,OACrB,QAAQ,iBAAiB,KAAK,IAAI,IAAI,cACtC,QAAQ,MAAM,OACd,eAAe,MAAM,cACrB,OAAO,MAAM,MACb,UAAU,MAAM,SAChB,YAAA,GAAWA,oCAAAA,QAAAA,CAA8B,OAAO,SAAS;CAC3D,IAAI,WAAW,qBAAqB;CACpC,IAAI,WAAW,YAAY;CAC3B,IAAI,oBAAoB,CAAC,WAAW,aAAa,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;CAS3E,OAAoB,mBAAM,QAAA,GAAOC,eAAAA,QAAAA,CAAS;EACxC,WAAW;EACN;CACP,GAAG,UAAU;EAVX,oBAAoB,SAAS,GAC1B,WAAW,KACd,CAAC;EACD,oBAAoB,SAAS,GAC1B,WAAW,MACd,CAAC;CAKc,GAAG,EAClB,UAAU;EAAc,kBAAK,YAAY;GACvC,WAAW;GACJ;GACA;GACD;GACO;GACJ;GACK;EAChB,CAAC;EAAgB,kBAAK,WAAW;GAC/B,WAAW;GACJ;GACA;GACD;GACO;GACJ;EACX,CAAC;EAAgB,kBAAK,aAAa;GACjC,WAAW;GACJ;GACA;GACD;GACO;GACJ;EACX,CAAC;CAAC,EACJ,CAAC,CAAC;AACJ,CAAC;AACD,UAAU,cAAc"}
|
|
@@ -9,16 +9,17 @@ var import_objectWithoutPropertiesLoose = /* @__PURE__ */ __toESM(require_object
|
|
|
9
9
|
var _excluded = ["style"];
|
|
10
10
|
function TriangleArrow(props) {
|
|
11
11
|
var style = props.style, reset = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded);
|
|
12
|
+
var defaultStyle = (0, import_extends.default)({
|
|
13
|
+
cursor: "pointer",
|
|
14
|
+
height: "1em",
|
|
15
|
+
width: "1em",
|
|
16
|
+
userSelect: "none",
|
|
17
|
+
display: "inline-flex"
|
|
18
|
+
}, style);
|
|
12
19
|
return /*#__PURE__*/ jsx("svg", (0, import_extends.default)({
|
|
13
20
|
viewBox: "0 0 24 24",
|
|
14
21
|
fill: "var(--w-rjv-arrow-color, currentColor)",
|
|
15
|
-
style:
|
|
16
|
-
cursor: "pointer",
|
|
17
|
-
height: "1em",
|
|
18
|
-
width: "1em",
|
|
19
|
-
userSelect: "none",
|
|
20
|
-
display: "inline-flex"
|
|
21
|
-
}, style)
|
|
22
|
+
style: defaultStyle
|
|
22
23
|
}, reset, { children: /*#__PURE__*/ jsx("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }) }));
|
|
23
24
|
}
|
|
24
25
|
TriangleArrow.displayName = "JVR.TriangleArrow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriangleArrow.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function TriangleArrow(props) {\n var style = props.style,\n reset = _objectWithoutPropertiesLoose(props, _excluded);\n var defaultStyle = _extends({\n cursor: 'pointer',\n height: '1em',\n width: '1em',\n userSelect: 'none',\n display: 'inline-flex'\n }, style);\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"var(--w-rjv-arrow-color, currentColor)\",\n style: defaultStyle\n }, reset, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n })\n }));\n}\nTriangleArrow.displayName = 'JVR.TriangleArrow';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAEA,IAAI,YAAY,CAAC,OAAO;AAGxB,SAAgB,cAAc,OAAO;CACnC,IAAI,QAAQ,MAAM,OAChB,SAAA,
|
|
1
|
+
{"version":3,"file":"TriangleArrow.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function TriangleArrow(props) {\n var style = props.style,\n reset = _objectWithoutPropertiesLoose(props, _excluded);\n var defaultStyle = _extends({\n cursor: 'pointer',\n height: '1em',\n width: '1em',\n userSelect: 'none',\n display: 'inline-flex'\n }, style);\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"var(--w-rjv-arrow-color, currentColor)\",\n style: defaultStyle\n }, reset, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n })\n }));\n}\nTriangleArrow.displayName = 'JVR.TriangleArrow';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAEA,IAAI,YAAY,CAAC,OAAO;AAGxB,SAAgB,cAAc,OAAO;CACnC,IAAI,QAAQ,MAAM,OAChB,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,OAAO,SAAS;CACxD,IAAI,gBAAA,GAAeC,eAAAA,QAAAA,CAAS;EAC1B,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,SAAS;CACX,GAAG,KAAK;CACR,OAAoB,kBAAK,QAAA,GAAOA,eAAAA,QAAAA,CAAS;EACvC,SAAS;EACT,MAAM;EACN,OAAO;CACT,GAAG,OAAO,EACR,UAAuB,kBAAK,QAAQ,EAClC,GAAG,+CACL,CAAC,EACH,CAAC,CAAC;AACJ;AACA,cAAc,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copied.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"keyName\", \"value\", \"parentValue\", \"expandKey\", \"keys\", \"beforeCopy\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useState } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useShowToolsStore } from \"../store/ShowTools.js\";\nimport { bigIntToString } from \"../types/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Copied = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n expandKey = props.expandKey,\n keys = props.keys,\n beforeCopy = props.beforeCopy,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n onCopied = _useStore.onCopied,\n enableClipboard = _useStore.enableClipboard,\n globalBeforeCopy = _useStore.beforeCopy;\n var showTools = useShowToolsStore();\n var isShowTools = showTools[expandKey];\n var _useState = useState(false),\n copied = _useState[0],\n setCopied = _useState[1];\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Copi = _useSectionStore.Copied,\n Comp = _useSectionStore$Copi === void 0 ? {} : _useSectionStore$Copi;\n var sectionBeforeCopy = Comp == null ? void 0 : Comp.beforeCopy;\n if (enableClipboard === false || !isShowTools) return null;\n var click = event => {\n event.stopPropagation();\n var copyText = '';\n if (typeof value === 'number' && value === Infinity) {\n copyText = 'Infinity';\n } else if (typeof value === 'number' && isNaN(value)) {\n copyText = 'NaN';\n } else if (typeof value === 'bigint') {\n copyText = bigIntToString(value);\n } else if (value instanceof Date) {\n copyText = value.toLocaleString();\n } else {\n copyText = JSON.stringify(value, (_, v) => typeof v === 'bigint' ? bigIntToString(v) : v, 2);\n }\n\n // Apply beforeCopy transformation if provided\n // Priority: component prop > section prop > global prop\n var finalBeforeCopy = beforeCopy || sectionBeforeCopy || globalBeforeCopy;\n if (finalBeforeCopy && typeof finalBeforeCopy === 'function') {\n copyText = finalBeforeCopy(copyText, keyName, value, parentValue, expandKey, keys);\n }\n onCopied && onCopied(copyText, value);\n setCopied(true);\n var _clipboard = navigator.clipboard || {\n writeText(text) {\n return new Promise((reslove, reject) => {\n var textarea = document.createElement('textarea');\n textarea.style.position = 'absolute';\n textarea.style.opacity = '0';\n textarea.style.left = '-99999999px';\n textarea.value = text;\n document.body.appendChild(textarea);\n textarea.select();\n if (!document.execCommand('copy')) {\n reject();\n } else {\n reslove();\n }\n textarea.remove();\n });\n }\n };\n _clipboard.writeText(copyText).then(() => {\n var timer = setTimeout(() => {\n setCopied(false);\n clearTimeout(timer);\n }, 3000);\n }).catch(error => {});\n };\n var svgProps = {\n style: {\n display: 'inline-flex'\n },\n fill: copied ? 'var(--w-rjv-copied-success-color, #28a745)' : 'var(--w-rjv-copied-color, currentColor)',\n onClick: click\n };\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n var elmProps = _extends({}, reset, other, svgProps, {\n style: _extends({}, reset.style, other.style, svgProps.style)\n });\n var isRender = render && typeof render === 'function';\n var child = isRender && render(_extends({}, elmProps, {\n 'data-copied': copied\n }), {\n value,\n keyName,\n keys,\n parentValue\n });\n if (child) return child;\n if (copied) {\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n }\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n};\nCopied.displayName = 'JVR.Copied';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAW;CAAS;CAAe;CAAa;CAAQ;AAAY;AACnF,IAAA,aAAa,CAAC,MAAM,QAAQ;AAO9B,IAAW,UAAS,UAAS;CAC3B,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,cAAc,MAAM,aACpB,YAAY,MAAM,WAClB,OAAO,MAAM,MACb,aAAa,MAAM,YACnB,SAAA,
|
|
1
|
+
{"version":3,"file":"Copied.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"keyName\", \"value\", \"parentValue\", \"expandKey\", \"keys\", \"beforeCopy\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useState } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useShowToolsStore } from \"../store/ShowTools.js\";\nimport { bigIntToString } from \"../types/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Copied = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n expandKey = props.expandKey,\n keys = props.keys,\n beforeCopy = props.beforeCopy,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n onCopied = _useStore.onCopied,\n enableClipboard = _useStore.enableClipboard,\n globalBeforeCopy = _useStore.beforeCopy;\n var showTools = useShowToolsStore();\n var isShowTools = showTools[expandKey];\n var _useState = useState(false),\n copied = _useState[0],\n setCopied = _useState[1];\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Copi = _useSectionStore.Copied,\n Comp = _useSectionStore$Copi === void 0 ? {} : _useSectionStore$Copi;\n var sectionBeforeCopy = Comp == null ? void 0 : Comp.beforeCopy;\n if (enableClipboard === false || !isShowTools) return null;\n var click = event => {\n event.stopPropagation();\n var copyText = '';\n if (typeof value === 'number' && value === Infinity) {\n copyText = 'Infinity';\n } else if (typeof value === 'number' && isNaN(value)) {\n copyText = 'NaN';\n } else if (typeof value === 'bigint') {\n copyText = bigIntToString(value);\n } else if (value instanceof Date) {\n copyText = value.toLocaleString();\n } else {\n copyText = JSON.stringify(value, (_, v) => typeof v === 'bigint' ? bigIntToString(v) : v, 2);\n }\n\n // Apply beforeCopy transformation if provided\n // Priority: component prop > section prop > global prop\n var finalBeforeCopy = beforeCopy || sectionBeforeCopy || globalBeforeCopy;\n if (finalBeforeCopy && typeof finalBeforeCopy === 'function') {\n copyText = finalBeforeCopy(copyText, keyName, value, parentValue, expandKey, keys);\n }\n onCopied && onCopied(copyText, value);\n setCopied(true);\n var _clipboard = navigator.clipboard || {\n writeText(text) {\n return new Promise((reslove, reject) => {\n var textarea = document.createElement('textarea');\n textarea.style.position = 'absolute';\n textarea.style.opacity = '0';\n textarea.style.left = '-99999999px';\n textarea.value = text;\n document.body.appendChild(textarea);\n textarea.select();\n if (!document.execCommand('copy')) {\n reject();\n } else {\n reslove();\n }\n textarea.remove();\n });\n }\n };\n _clipboard.writeText(copyText).then(() => {\n var timer = setTimeout(() => {\n setCopied(false);\n clearTimeout(timer);\n }, 3000);\n }).catch(error => {});\n };\n var svgProps = {\n style: {\n display: 'inline-flex'\n },\n fill: copied ? 'var(--w-rjv-copied-success-color, #28a745)' : 'var(--w-rjv-copied-color, currentColor)',\n onClick: click\n };\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n var elmProps = _extends({}, reset, other, svgProps, {\n style: _extends({}, reset.style, other.style, svgProps.style)\n });\n var isRender = render && typeof render === 'function';\n var child = isRender && render(_extends({}, elmProps, {\n 'data-copied': copied\n }), {\n value,\n keyName,\n keys,\n parentValue\n });\n if (child) return child;\n if (copied) {\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n }\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n};\nCopied.displayName = 'JVR.Copied';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAW;CAAS;CAAe;CAAa;CAAQ;AAAY;AACnF,IAAA,aAAa,CAAC,MAAM,QAAQ;AAO9B,IAAW,UAAS,UAAS;CAC3B,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,cAAc,MAAM,aACpB,YAAY,MAAM,WAClB,OAAO,MAAM,MACb,aAAa,MAAM,YACnB,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,OAAO,SAAS;CACxD,IAAI,YAAY,SAAS,GACvB,WA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ACW,UAAU,QAAQ,CAAC,CAAC,WAAW;GACxC,IAAI,QAAQ,iBAAiB;IAC3B,UAAU,KAAK;IACf,aAAa,KAAK;GACpB,GAAG,GAAI;EACT,CAAC,CAAC,CAAC,OAAM,UAAS,CAAC,CAAC;CACtB;CACA,IAAI,WAAW;EACb,OAAO,EACL,SAAS,cACX;EACA,MAAM,SAAS,+CAA+C;EAC9D,SAAS;CACX;CACS,KAAK;CAAd,IACE,SAAS,KAAK,QACd,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,MAAM,UAAU;CACxD,IAAI,YAAA,GAAWC,eAAAA,QAAAA,CAAS,CAAC,GAAG,OAAO,OAAO,UAAU,EAClD,QAAA,GAAOA,eAAAA,QAAAA,CAAS,CAAC,GAAG,MAAM,OAAO,MAAM,OAAO,SAAS,KAAK,EAC9D,CAAC;CAED,IAAI,QADW,UAAU,OAAO,WAAW,cACnB,QAAA,GAAOA,eAAAA,QAAAA,CAAS,CAAC,GAAG,UAAU,EACpD,eAAe,OACjB,CAAC,GAAG;EACF;EACA;EACA;EACA;CACF,CAAC;CACD,IAAI,OAAO,OAAO;CAClB,IAAI,QACF,OAAoB,kBAAK,QAAA,GAAOA,eAAAA,QAAAA,CAAS,EACvC,SAAS,YACX,GAAG,UAAU,EACX,UAAuB,kBAAK,QAAQ,EAClC,GAAG,qxBACL,CAAC,EACH,CAAC,CAAC;CAEJ,OAAoB,kBAAK,QAAA,GAAOA,eAAAA,QAAAA,CAAS,EACvC,SAAS,YACX,GAAG,UAAU,EACX,UAAuB,kBAAK,QAAQ,EAClC,GAAG,4nBACL,CAAC,EACH,CAAC,CAAC;AACJ;AACA,OAAO,cAAc"}
|
|
@@ -104,14 +104,17 @@ var KeyValuesItem = (props) => {
|
|
|
104
104
|
var isMyMap = value instanceof Map;
|
|
105
105
|
var isDate = value instanceof Date;
|
|
106
106
|
var isUrl = value instanceof URL;
|
|
107
|
-
if (value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl || isMyArray || isMySet || isMyMap)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
if (value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl || isMyArray || isMySet || isMyMap) {
|
|
108
|
+
var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;
|
|
109
|
+
return /*#__PURE__*/ jsx(Container, {
|
|
110
|
+
keyName,
|
|
111
|
+
value: myValue,
|
|
112
|
+
parentValue,
|
|
113
|
+
initialValue: value,
|
|
114
|
+
keys,
|
|
115
|
+
level: level + 1
|
|
116
|
+
});
|
|
117
|
+
}
|
|
115
118
|
return /*#__PURE__*/ jsxs(RowComp, (0, import_extends.default)({
|
|
116
119
|
className: "w-rjv-line",
|
|
117
120
|
value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValues.mjs","names":["Fragment"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { Fragment, useRef } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useExpandsStore } from \"../store/Expands.js\";\nimport { useShowToolsDispatch } from \"../store/ShowTools.js\";\nimport { Value } from \"./Value.js\";\nimport { KeyNameComp } from \"../section/KeyName.js\";\nimport { RowComp } from \"../section/Row.js\";\nimport { Container } from \"../Container.js\";\nimport { Quote, Colon } from \"../symbol/index.js\";\nimport { useHighlight } from \"../utils/useHighlight.js\";\nimport { Copied } from \"../comps/Copied.js\";\nimport { useIdCompat } from \"../comps/useIdCompat.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var KeyValues = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n value = props.value,\n _props$expandKey = props.expandKey,\n expandKey = _props$expandKey === void 0 ? '' : _props$expandKey,\n level = props.level,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys,\n parentValue = props.parentValue;\n var expands = useExpandsStore();\n var _useStore = useStore(),\n objectSortKeys = _useStore.objectSortKeys,\n indentWidth = _useStore.indentWidth,\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (shouldExpandNodeInitially && collapsed === false) {\n if (expands[expandKey] === undefined && !shouldExpand) {\n return null;\n }\n } else {\n if (expands[expandKey] === undefined && shouldExpand) {\n return null;\n }\n }\n if (isExpanded) {\n return null;\n }\n var isMyArray = Array.isArray(value);\n // object\n var entries = isMyArray ? Object.entries(value).map(m => [Number(m[0]), m[1]]) : Object.entries(value);\n if (objectSortKeys) {\n entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {\n var a = _ref[0];\n var b = _ref2[0];\n return typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : 0;\n }) : entries.sort((_ref3, _ref4) => {\n var a = _ref3[0],\n valA = _ref3[1];\n var b = _ref4[0],\n valB = _ref4[1];\n return typeof a === 'string' && typeof b === 'string' ? objectSortKeys(a, b, valA, valB) : 0;\n });\n }\n var style = {\n borderLeft: 'var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)',\n paddingLeft: indentWidth,\n marginLeft: 6\n };\n return /*#__PURE__*/_jsx(\"div\", {\n className: \"w-rjv-wrap\",\n style: style,\n children: entries.map((_ref5, idx) => {\n var key = _ref5[0],\n val = _ref5[1];\n return /*#__PURE__*/_jsx(KeyValuesItem, {\n parentValue: value,\n keyName: key,\n keys: [...keys, key],\n value: val,\n level: level\n }, idx);\n })\n });\n};\nKeyValues.displayName = 'JVR.KeyValues';\nexport var KayName = props => {\n var keyName = props.keyName,\n parentValue = props.parentValue,\n keys = props.keys,\n value = props.value;\n var _useStore2 = useStore(),\n highlightUpdates = _useStore2.highlightUpdates;\n var isNumber = typeof keyName === 'number';\n var highlightContainer = useRef(null);\n useHighlight({\n value,\n highlightUpdates,\n highlightContainer\n });\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n return /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsxs(\"span\", {\n ref: highlightContainer,\n children: [/*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"left\"\n }, compProps)), /*#__PURE__*/_jsx(KeyNameComp, _extends({}, compProps, {\n children: keyName\n })), /*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"right\"\n }, compProps))]\n }), /*#__PURE__*/_jsx(Colon, _extends({}, compProps))]\n });\n};\nKayName.displayName = 'JVR.KayName';\nexport var KeyValuesItem = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n _props$level = props.level,\n level = _props$level === void 0 ? 0 : _props$level,\n _props$keys2 = props.keys,\n keys = _props$keys2 === void 0 ? [] : _props$keys2;\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var isMyArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n var isMyMap = value instanceof Map;\n var isDate = value instanceof Date;\n var isUrl = value instanceof URL;\n var isMyObject = value && typeof value === 'object' && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl;\n var isNested = isMyObject || isMyArray || isMySet || isMyMap;\n if (isNested) {\n var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;\n return /*#__PURE__*/_jsx(Container, {\n keyName: keyName,\n value: myValue,\n parentValue: parentValue,\n initialValue: value,\n keys: keys,\n level: level + 1\n });\n }\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(RowComp, _extends({\n className: \"w-rjv-line\",\n value: value,\n keyName: keyName,\n keys: keys,\n parentValue: parentValue\n }, reset, {\n children: [/*#__PURE__*/_jsx(KayName, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue\n }), /*#__PURE__*/_jsx(Value, {\n keyName: keyName,\n value: value,\n keys: keys\n }), /*#__PURE__*/_jsx(Copied, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue,\n expandKey: subkeyid\n })]\n }));\n};\nKeyValuesItem.displayName = 'JVR.KeyValuesItem';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;AAcA,IAAW,aAAY,UAAS;CAC9B,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,mBAAmB,MAAM,WACzB,YAAY,qBAAqB,KAAK,IAAI,KAAK,kBAC/C,QAAQ,MAAM,OACd,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI,aACrC,cAAc,MAAM;CACtB,IAAI,UAAU,gBAAgB;CAC9B,IAAI,YAAY,SAAS,GACvB,iBAAiB,UAAU,gBAC3B,cAAc,UAAU,aACxB,YAAY,UAAU,WACtB,4BAA4B,UAAU;CACxC,IAAI,kBAAkB,OAAO,cAAc,YAAY,YAAY,OAAO,cAAc,WAAW,QAAQ,YAAY;CACvH,IAAI,cAAc,qBAAqB,QAAQ,eAAe,OAAO,qBAAqB,4BAA4B,QAAQ;CAC9H,IAAI,eAAe,6BAA6B,0BAA0B,CAAC,YAAY;EACrF;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,IAAI,6BAA6B,cAAc,OACzC;MAAA,QAAQ,eAAe,KAAA,KAAa,CAAC,cACvC,OA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EACA;EACA;EACA;CACF;CACA,OAAoB,mBAAMA,YAAU,EAClC,UAAU,CAAc,mBAAM,QAAQ;EACpC,KAAK;EACL,UAAU;GAAc,kBAAK,QAAA,
|
|
1
|
+
{"version":3,"file":"KeyValues.mjs","names":["Fragment","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { Fragment, useRef } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useExpandsStore } from \"../store/Expands.js\";\nimport { useShowToolsDispatch } from \"../store/ShowTools.js\";\nimport { Value } from \"./Value.js\";\nimport { KeyNameComp } from \"../section/KeyName.js\";\nimport { RowComp } from \"../section/Row.js\";\nimport { Container } from \"../Container.js\";\nimport { Quote, Colon } from \"../symbol/index.js\";\nimport { useHighlight } from \"../utils/useHighlight.js\";\nimport { Copied } from \"../comps/Copied.js\";\nimport { useIdCompat } from \"../comps/useIdCompat.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var KeyValues = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n value = props.value,\n _props$expandKey = props.expandKey,\n expandKey = _props$expandKey === void 0 ? '' : _props$expandKey,\n level = props.level,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys,\n parentValue = props.parentValue;\n var expands = useExpandsStore();\n var _useStore = useStore(),\n objectSortKeys = _useStore.objectSortKeys,\n indentWidth = _useStore.indentWidth,\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (shouldExpandNodeInitially && collapsed === false) {\n if (expands[expandKey] === undefined && !shouldExpand) {\n return null;\n }\n } else {\n if (expands[expandKey] === undefined && shouldExpand) {\n return null;\n }\n }\n if (isExpanded) {\n return null;\n }\n var isMyArray = Array.isArray(value);\n // object\n var entries = isMyArray ? Object.entries(value).map(m => [Number(m[0]), m[1]]) : Object.entries(value);\n if (objectSortKeys) {\n entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {\n var a = _ref[0];\n var b = _ref2[0];\n return typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : 0;\n }) : entries.sort((_ref3, _ref4) => {\n var a = _ref3[0],\n valA = _ref3[1];\n var b = _ref4[0],\n valB = _ref4[1];\n return typeof a === 'string' && typeof b === 'string' ? objectSortKeys(a, b, valA, valB) : 0;\n });\n }\n var style = {\n borderLeft: 'var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)',\n paddingLeft: indentWidth,\n marginLeft: 6\n };\n return /*#__PURE__*/_jsx(\"div\", {\n className: \"w-rjv-wrap\",\n style: style,\n children: entries.map((_ref5, idx) => {\n var key = _ref5[0],\n val = _ref5[1];\n return /*#__PURE__*/_jsx(KeyValuesItem, {\n parentValue: value,\n keyName: key,\n keys: [...keys, key],\n value: val,\n level: level\n }, idx);\n })\n });\n};\nKeyValues.displayName = 'JVR.KeyValues';\nexport var KayName = props => {\n var keyName = props.keyName,\n parentValue = props.parentValue,\n keys = props.keys,\n value = props.value;\n var _useStore2 = useStore(),\n highlightUpdates = _useStore2.highlightUpdates;\n var isNumber = typeof keyName === 'number';\n var highlightContainer = useRef(null);\n useHighlight({\n value,\n highlightUpdates,\n highlightContainer\n });\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n return /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsxs(\"span\", {\n ref: highlightContainer,\n children: [/*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"left\"\n }, compProps)), /*#__PURE__*/_jsx(KeyNameComp, _extends({}, compProps, {\n children: keyName\n })), /*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"right\"\n }, compProps))]\n }), /*#__PURE__*/_jsx(Colon, _extends({}, compProps))]\n });\n};\nKayName.displayName = 'JVR.KayName';\nexport var KeyValuesItem = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n _props$level = props.level,\n level = _props$level === void 0 ? 0 : _props$level,\n _props$keys2 = props.keys,\n keys = _props$keys2 === void 0 ? [] : _props$keys2;\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var isMyArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n var isMyMap = value instanceof Map;\n var isDate = value instanceof Date;\n var isUrl = value instanceof URL;\n var isMyObject = value && typeof value === 'object' && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl;\n var isNested = isMyObject || isMyArray || isMySet || isMyMap;\n if (isNested) {\n var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;\n return /*#__PURE__*/_jsx(Container, {\n keyName: keyName,\n value: myValue,\n parentValue: parentValue,\n initialValue: value,\n keys: keys,\n level: level + 1\n });\n }\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(RowComp, _extends({\n className: \"w-rjv-line\",\n value: value,\n keyName: keyName,\n keys: keys,\n parentValue: parentValue\n }, reset, {\n children: [/*#__PURE__*/_jsx(KayName, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue\n }), /*#__PURE__*/_jsx(Value, {\n keyName: keyName,\n value: value,\n keys: keys\n }), /*#__PURE__*/_jsx(Copied, {\n keyName: keyName,\n value: value,\n keys: keys,\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
{"version":3,"file":"NestedClose.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { useStore } from \"../store.js\";\nimport { useExpandsStore } from \"../store/Expands.js\";\nimport { BracketsClose } from \"../symbol/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var NestedClose = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n value = props.value,\n expandKey = props.expandKey,\n parentValue = props.parentValue,\n level = props.level,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys;\n var expands = useExpandsStore();\n var _useStore = useStore(),\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (shouldExpandNodeInitially && collapsed === false) {\n if (expands[expandKey] === undefined && !shouldExpand) {\n return null;\n }\n } else {\n if (expands[expandKey] === undefined && shouldExpand) {\n return null;\n }\n }\n var len = Object.keys(value).length;\n if (isExpanded || len === 0) {\n return null;\n }\n var style = {\n paddingLeft: 4\n };\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n var isArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n return /*#__PURE__*/_jsx(\"div\", {\n style: style,\n children: /*#__PURE__*/_jsx(BracketsClose, _extends({\n isBrackets: isArray || isMySet\n }, compProps, {\n isVisiable: true\n }))\n });\n};\nNestedClose.displayName = 'JVR.NestedClose';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAKA,IAAW,eAAc,UAAS;CAChC,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,YAAY,MAAM,WAClB,cAAc,MAAM,aACpB,QAAQ,MAAM,OACd,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI;CACvC,IAAI,UAAU,gBAAgB;CAC9B,IAAI,YAAY,SAAS,GACvB,YAAY,UAAU,WACtB,4BAA4B,UAAU;CACxC,IAAI,kBAAkB,OAAO,cAAc,YAAY,YAAY,OAAO,cAAc,WAAW,QAAQ,YAAY;CACvH,IAAI,cAAc,qBAAqB,QAAQ,eAAe,OAAO,qBAAqB,4BAA4B,QAAQ;CAC9H,IAAI,eAAe,6BAA6B,0BAA0B,CAAC,YAAY;EACrF;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,IAAI,6BAA6B,cAAc,OACzC;MAAA,QAAQ,eAAe,KAAA,KAAa,CAAC,cACvC,OAAO;CAAA,OAGT,IAAI,QAAQ,eAAe,KAAA,KAAa,cACtC,OAAO;CAGX,IAAI,MAAM,OAAO,KAAK,KAAK,CAAC,CAAC;CAC7B,IAAI,cAAc,QAAQ,GACxB,OAAO;CAET,IAAI,QAAQ,EACV,aAAa,EACf;CACA,IAAI,YAAY;EACd;EACA;EACA;EACA;CACF;CACA,IAAI,UAAU,MAAM,QAAQ,KAAK;CACjC,IAAI,UAAU,iBAAiB;CAC/B,OAAoB,kBAAK,OAAO;EACvB;EACP,UAAuB,kBAAK,gBAAA,
|
|
1
|
+
{"version":3,"file":"NestedClose.mjs","names":["_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { useStore } from \"../store.js\";\nimport { useExpandsStore } from \"../store/Expands.js\";\nimport { BracketsClose } from \"../symbol/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var NestedClose = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n value = props.value,\n expandKey = props.expandKey,\n parentValue = props.parentValue,\n level = props.level,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys;\n var expands = useExpandsStore();\n var _useStore = useStore(),\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (shouldExpandNodeInitially && collapsed === false) {\n if (expands[expandKey] === undefined && !shouldExpand) {\n return null;\n }\n } else {\n if (expands[expandKey] === undefined && shouldExpand) {\n return null;\n }\n }\n var len = Object.keys(value).length;\n if (isExpanded || len === 0) {\n return null;\n }\n var style = {\n paddingLeft: 4\n };\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n var isArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n return /*#__PURE__*/_jsx(\"div\", {\n style: style,\n children: /*#__PURE__*/_jsx(BracketsClose, _extends({\n isBrackets: isArray || isMySet\n }, compProps, {\n isVisiable: true\n }))\n });\n};\nNestedClose.displayName = 'JVR.NestedClose';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAKA,IAAW,eAAc,UAAS;CAChC,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,YAAY,MAAM,WAClB,cAAc,MAAM,aACpB,QAAQ,MAAM,OACd,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI;CACvC,IAAI,UAAU,gBAAgB;CAC9B,IAAI,YAAY,SAAS,GACvB,YAAY,UAAU,WACtB,4BAA4B,UAAU;CACxC,IAAI,kBAAkB,OAAO,cAAc,YAAY,YAAY,OAAO,cAAc,WAAW,QAAQ,YAAY;CACvH,IAAI,cAAc,qBAAqB,QAAQ,eAAe,OAAO,qBAAqB,4BAA4B,QAAQ;CAC9H,IAAI,eAAe,6BAA6B,0BAA0B,CAAC,YAAY;EACrF;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,IAAI,6BAA6B,cAAc,OACzC;MAAA,QAAQ,eAAe,KAAA,KAAa,CAAC,cACvC,OAAO;CAAA,OAGT,IAAI,QAAQ,eAAe,KAAA,KAAa,cACtC,OAAO;CAGX,IAAI,MAAM,OAAO,KAAK,KAAK,CAAC,CAAC;CAC7B,IAAI,cAAc,QAAQ,GACxB,OAAO;CAET,IAAI,QAAQ,EACV,aAAa,EACf;CACA,IAAI,YAAY;EACd;EACA;EACA;EACA;CACF;CACA,IAAI,UAAU,MAAM,QAAQ,KAAK;CACjC,IAAI,UAAU,iBAAiB;CAC/B,OAAoB,kBAAK,OAAO;EACvB;EACP,UAAuB,kBAAK,gBAAA,GAAeA,eAAAA,QAAAA,CAAS,EAClD,YAAY,WAAW,QACzB,GAAG,WAAW,EACZ,YAAY,KACd,CAAC,CAAC;CACJ,CAAC;AACH;AACA,YAAY,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedOpen.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { KayName } from \"./KeyValues.js\";\nimport { useExpandsStore, useExpandsDispatch } from \"../store/Expands.js\";\nimport { useStore } from \"../store.js\";\nimport { Copied } from \"./Copied.js\";\nimport { CountInfoExtraComps } from \"../section/CountInfoExtra.js\";\nimport { CountInfoComp } from \"../section/CountInfo.js\";\nimport { Arrow, BracketsOpen, BracketsClose } from \"../symbol/index.js\";\nimport { EllipsisComp } from \"../section/Ellipsis.js\";\nimport { SetComp, MapComp } from \"../types/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var NestedOpen = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n expandKey = props.expandKey,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys,\n initialValue = props.initialValue,\n value = props.value,\n parentValue = props.parentValue,\n level = props.level;\n var expands = useExpandsStore();\n var dispatchExpands = useExpandsDispatch();\n var _useStore = useStore(),\n onExpand = _useStore.onExpand,\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (expands[expandKey] === undefined && shouldExpandNodeInitially) {\n isExpanded = !shouldExpand;\n }\n var click = () => {\n var opt = {\n expand: !isExpanded,\n value,\n keyid: expandKey,\n keyName\n };\n onExpand && onExpand(opt);\n dispatchExpands({\n [expandKey]: opt.expand\n });\n };\n var style = {\n display: 'inline-flex',\n alignItems: 'center'\n };\n var arrowStyle = {\n transform: \"rotate(\" + (!isExpanded ? '0' : '-90') + \"deg)\",\n transition: 'all 0.3s'\n };\n var len = Object.keys(value).length;\n var isObject = typeof value === 'object';\n var isArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n var showArrow = len !== 0 && (isArray || isMySet || isObject);\n var reset = {\n style\n };\n if (showArrow) {\n reset.onClick = click;\n }\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n return /*#__PURE__*/_jsxs(\"span\", _extends({}, reset, {\n children: [showArrow && /*#__PURE__*/_jsx(Arrow, _extends({\n style: arrowStyle,\n expandKey: expandKey\n }, compProps)), (keyName || typeof keyName === 'number') && /*#__PURE__*/_jsx(KayName, _extends({}, compProps)), /*#__PURE__*/_jsx(SetComp, {\n value: initialValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(MapComp, {\n value: initialValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(BracketsOpen, _extends({\n isBrackets: isArray || isMySet\n }, compProps)), /*#__PURE__*/_jsx(EllipsisComp, {\n keyName: keyName,\n value: value,\n isExpanded: isExpanded\n }), /*#__PURE__*/_jsx(BracketsClose, _extends({\n isVisiable: isExpanded || !showArrow,\n isBrackets: isArray || isMySet\n }, compProps)), /*#__PURE__*/_jsx(CountInfoComp, {\n value: value,\n keyName: keyName\n }), /*#__PURE__*/_jsx(CountInfoExtraComps, {\n value: value,\n keyName: keyName\n }), /*#__PURE__*/_jsx(Copied, {\n keyName: keyName,\n value: value,\n expandKey: expandKey,\n parentValue: parentValue,\n keys: keys\n })]\n }));\n};\nNestedOpen.displayName = 'JVR.NestedOpen';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;AAWA,IAAW,cAAa,UAAS;CAC/B,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,YAAY,MAAM,WAClB,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI,aACrC,eAAe,MAAM,cACrB,QAAQ,MAAM,OACd,cAAc,MAAM,aACpB,QAAQ,MAAM;CAChB,IAAI,UAAU,gBAAgB;CAC9B,IAAI,kBAAkB,mBAAmB;CACzC,IAAI,YAAY,SAAS,GACvB,WAAW,UAAU,UACrB,YAAY,UAAU,WACtB,4BAA4B,UAAU;CACxC,IAAI,kBAAkB,OAAO,cAAc,YAAY,YAAY,OAAO,cAAc,WAAW,QAAQ,YAAY;CACvH,IAAI,cAAc,qBAAqB,QAAQ,eAAe,OAAO,qBAAqB,4BAA4B,QAAQ;CAC9H,IAAI,eAAe,6BAA6B,0BAA0B,CAAC,YAAY;EACrF;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,IAAI,QAAQ,eAAe,KAAA,KAAa,2BACtC,aAAa,CAAC;CAEhB,IAAI,cAAc;EAChB,IAAI,MAAM;GACR,QAAQ,CAAC;GACT;GACA,OAAO;GACP;EACF;EACA,YAAY,SAAS,GAAG;EACxB,gBAAgB,GACb,YAAY,IAAI,OACnB,CAAC;CACH;CACA,IAAI,QAAQ;EACV,SAAS;EACT,YAAY;CACd;CACA,IAAI,aAAa;EACf,WAAW,aAAa,CAAC,aAAa,MAAM,SAAS;EACrD,YAAY;CACd;CACA,IAAI,MAAM,OAAO,KAAK,KAAK,CAAC,CAAC;CAC7B,IAAI,WAAW,OAAO,UAAU;CAChC,IAAI,UAAU,MAAM,QAAQ,KAAK;CACjC,IAAI,UAAU,iBAAiB;CAC/B,IAAI,YAAY,QAAQ,MAAM,WAAW,WAAW;CACpD,IAAI,QAAQ,EACV,MACF;CACA,IAAI,WACF,MAAM,UAAU;CAElB,IAAI,YAAY;EACd;EACA;EACA;EACA;CACF;CACA,OAAoB,mBAAM,SAAA,
|
|
1
|
+
{"version":3,"file":"NestedOpen.mjs","names":["_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { KayName } from \"./KeyValues.js\";\nimport { useExpandsStore, useExpandsDispatch } from \"../store/Expands.js\";\nimport { useStore } from \"../store.js\";\nimport { Copied } from \"./Copied.js\";\nimport { CountInfoExtraComps } from \"../section/CountInfoExtra.js\";\nimport { CountInfoComp } from \"../section/CountInfo.js\";\nimport { Arrow, BracketsOpen, BracketsClose } from \"../symbol/index.js\";\nimport { EllipsisComp } from \"../section/Ellipsis.js\";\nimport { SetComp, MapComp } from \"../types/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var NestedOpen = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n expandKey = props.expandKey,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys,\n initialValue = props.initialValue,\n value = props.value,\n parentValue = props.parentValue,\n level = props.level;\n var expands = useExpandsStore();\n var dispatchExpands = useExpandsDispatch();\n var _useStore = useStore(),\n onExpand = _useStore.onExpand,\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (expands[expandKey] === undefined && shouldExpandNodeInitially) {\n isExpanded = !shouldExpand;\n }\n var click = () => {\n var opt = {\n expand: !isExpanded,\n value,\n keyid: expandKey,\n keyName\n };\n onExpand && onExpand(opt);\n dispatchExpands({\n [expandKey]: opt.expand\n });\n };\n var style = {\n display: 'inline-flex',\n alignItems: 'center'\n };\n var arrowStyle = {\n transform: \"rotate(\" + (!isExpanded ? '0' : '-90') + \"deg)\",\n transition: 'all 0.3s'\n };\n var len = Object.keys(value).length;\n var isObject = typeof value === 'object';\n var isArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n var showArrow = len !== 0 && (isArray || isMySet || isObject);\n var reset = {\n style\n };\n if (showArrow) {\n reset.onClick = click;\n }\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n return /*#__PURE__*/_jsxs(\"span\", _extends({}, reset, {\n children: [showArrow && /*#__PURE__*/_jsx(Arrow, _extends({\n style: arrowStyle,\n expandKey: expandKey\n }, compProps)), (keyName || typeof keyName === 'number') && /*#__PURE__*/_jsx(KayName, _extends({}, compProps)), /*#__PURE__*/_jsx(SetComp, {\n value: initialValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(MapComp, {\n value: initialValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(BracketsOpen, _extends({\n isBrackets: isArray || isMySet\n }, compProps)), /*#__PURE__*/_jsx(EllipsisComp, {\n keyName: keyName,\n value: value,\n isExpanded: isExpanded\n }), /*#__PURE__*/_jsx(BracketsClose, _extends({\n isVisiable: isExpanded || !showArrow,\n isBrackets: isArray || isMySet\n }, compProps)), /*#__PURE__*/_jsx(CountInfoComp, {\n value: value,\n keyName: keyName\n }), /*#__PURE__*/_jsx(CountInfoExtraComps, {\n value: value,\n keyName: keyName\n }), /*#__PURE__*/_jsx(Copied, {\n keyName: keyName,\n value: value,\n expandKey: expandKey,\n parentValue: parentValue,\n keys: keys\n })]\n }));\n};\nNestedOpen.displayName = 'JVR.NestedOpen';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;AAWA,IAAW,cAAa,UAAS;CAC/B,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,YAAY,MAAM,WAClB,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI,aACrC,eAAe,MAAM,cACrB,QAAQ,MAAM,OACd,cAAc,MAAM,aACpB,QAAQ,MAAM;CAChB,IAAI,UAAU,gBAAgB;CAC9B,IAAI,kBAAkB,mBAAmB;CACzC,IAAI,YAAY,SAAS,GACvB,WAAW,UAAU,UACrB,YAAY,UAAU,WACtB,4BAA4B,UAAU;CACxC,IAAI,kBAAkB,OAAO,cAAc,YAAY,YAAY,OAAO,cAAc,WAAW,QAAQ,YAAY;CACvH,IAAI,cAAc,qBAAqB,QAAQ,eAAe,OAAO,qBAAqB,4BAA4B,QAAQ;CAC9H,IAAI,eAAe,6BAA6B,0BAA0B,CAAC,YAAY;EACrF;EACA;EACA;EACA;EAC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,GAAG,SAAS,CAAC;EAAgB,kBAAK,eAAe;GACxC;GACE;EACX,CAAC;EAAgB,kBAAK,qBAAqB;GAClC;GACE;EACX,CAAC;EAAgB,kBAAK,QAAQ;GACnB;GACF;GACI;GACE;GACP;EACR,CAAC;CAAC,EACJ,CAAC,CAAC;AACJ;AACA,WAAW,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Value.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { TypeString, TypeTrue, TypeNull, TypeFalse, TypeFloat, TypeBigint, TypeInt, TypeDate, TypeUndefined, TypeNan, TypeUrl } from \"../types/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var isFloat = n => Number(n) === n && n % 1 !== 0 || isNaN(n);\nexport var Value = props => {\n var value = props.value,\n keyName = props.keyName,\n keys = props.keys;\n var reset = {\n keyName,\n keys\n };\n if (value instanceof URL) {\n return /*#__PURE__*/_jsx(TypeUrl, _extends({}, reset, {\n children: value\n }));\n }\n if (typeof value === 'string') {\n return /*#__PURE__*/_jsx(TypeString, _extends({}, reset, {\n children: value\n }));\n }\n if (value === true) {\n return /*#__PURE__*/_jsx(TypeTrue, _extends({}, reset, {\n children: value\n }));\n }\n if (value === false) {\n return /*#__PURE__*/_jsx(TypeFalse, _extends({}, reset, {\n children: value\n }));\n }\n if (value === null) {\n return /*#__PURE__*/_jsx(TypeNull, _extends({}, reset, {\n children: value\n }));\n }\n if (value === undefined) {\n return /*#__PURE__*/_jsx(TypeUndefined, _extends({}, reset, {\n children: value\n }));\n }\n if (value instanceof Date) {\n return /*#__PURE__*/_jsx(TypeDate, _extends({}, reset, {\n children: value\n }));\n }\n if (typeof value === 'number' && isNaN(value)) {\n return /*#__PURE__*/_jsx(TypeNan, _extends({}, reset, {\n children: value\n }));\n } else if (typeof value === 'number' && isFloat(value)) {\n return /*#__PURE__*/_jsx(TypeFloat, _extends({}, reset, {\n children: value\n }));\n } else if (typeof value === 'bigint') {\n return /*#__PURE__*/_jsx(TypeBigint, _extends({}, reset, {\n children: value\n }));\n } else if (typeof value === 'number') {\n return /*#__PURE__*/_jsx(TypeInt, _extends({}, reset, {\n children: value\n }));\n }\n return null;\n};\nValue.displayName = 'JVR.Value';"],"x_google_ignoreList":[0],"mappings":";;;;;;AAGA,IAAW,WAAU,MAAK,OAAO,CAAC,MAAM,KAAK,IAAI,MAAM,KAAK,MAAM,CAAC;AACnE,IAAW,SAAQ,UAAS;CAC1B,IAAI,QAAQ,MAAM;CAGlB,IAAI,QAAQ;EACV,SAHU,MAAM;EAIhB,MAHO,MAAM;CAIf;CACA,IAAI,iBAAiB,KACnB,OAAoB,kBAAK,UAAA,
|
|
1
|
+
{"version":3,"file":"Value.mjs","names":["_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Value.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { TypeString, TypeTrue, TypeNull, TypeFalse, TypeFloat, TypeBigint, TypeInt, TypeDate, TypeUndefined, TypeNan, TypeUrl } from \"../types/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var isFloat = n => Number(n) === n && n % 1 !== 0 || isNaN(n);\nexport var Value = props => {\n var value = props.value,\n keyName = props.keyName,\n keys = props.keys;\n var reset = {\n keyName,\n keys\n };\n if (value instanceof URL) {\n return /*#__PURE__*/_jsx(TypeUrl, _extends({}, reset, {\n children: value\n }));\n }\n if (typeof value === 'string') {\n return /*#__PURE__*/_jsx(TypeString, _extends({}, reset, {\n children: value\n }));\n }\n if (value === true) {\n return /*#__PURE__*/_jsx(TypeTrue, _extends({}, reset, {\n children: value\n }));\n }\n if (value === false) {\n return /*#__PURE__*/_jsx(TypeFalse, _extends({}, reset, {\n children: value\n }));\n }\n if (value === null) {\n return /*#__PURE__*/_jsx(TypeNull, _extends({}, reset, {\n children: value\n }));\n }\n if (value === undefined) {\n return /*#__PURE__*/_jsx(TypeUndefined, _extends({}, reset, {\n children: value\n }));\n }\n if (value instanceof Date) {\n return /*#__PURE__*/_jsx(TypeDate, _extends({}, reset, {\n children: value\n }));\n }\n if (typeof value === 'number' && isNaN(value)) {\n return /*#__PURE__*/_jsx(TypeNan, _extends({}, reset, {\n children: value\n }));\n } else if (typeof value === 'number' && isFloat(value)) {\n return /*#__PURE__*/_jsx(TypeFloat, _extends({}, reset, {\n children: value\n }));\n } else if (typeof value === 'bigint') {\n return /*#__PURE__*/_jsx(TypeBigint, _extends({}, reset, {\n children: value\n }));\n } else if (typeof value === 'number') {\n return /*#__PURE__*/_jsx(TypeInt, _extends({}, reset, {\n children: value\n }));\n }\n return null;\n};\nValue.displayName = 'JVR.Value';"],"x_google_ignoreList":[0],"mappings":";;;;;;AAGA,IAAW,WAAU,MAAK,OAAO,CAAC,MAAM,KAAK,IAAI,MAAM,KAAK,MAAM,CAAC;AACnE,IAAW,SAAQ,UAAS;CAC1B,IAAI,QAAQ,MAAM;CAGlB,IAAI,QAAQ;EACV,SAHU,MAAM;EAIhB,MAHO,MAAM;CAIf;CACA,IAAI,iBAAiB,KACnB,OAAoB,kBAAK,UAAA,GAASA,eAAAA,QAAAA,CAAS,CAAC,GAAG,OAAO,EACpD,UAAU,MACZ,CAAC,CAAC;CAEJ,IAAI,OAAO,UAAU,UACnB,OAAoB,kBAAK,aAAA,GAAYA,eAAAA,QAAAA,CAAS,CAAC,GAAG,OAAO,EACvD,UAAU,MACZ,CAAC,CAAC;CAEJ,IAAI,UAAU,MACZ,OAAoB,kBAAK,WAAA,GAAUA,eAAAA,QAAAA,CAAS,CAAC,GAAG,OAAO,EACrD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7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"style\", \"value\", \"children\", \"collapsed\", \"shouldExpandNodeInitially\", \"indentWidth\", \"displayObjectSize\", \"shortenTextAfterLength\", \"stringEllipsis\", \"highlightUpdates\", \"enableClipboard\", \"displayDataTypes\", \"objectSortKeys\", \"onExpand\", \"onCopied\", \"beforeCopy\"];\nimport { forwardRef } from 'react';\nimport { Provider } from \"./store.js\";\nimport { Container } from \"./Container.js\";\nimport { BraceLeft } from \"./symbol/BraceLeft.js\";\nimport { BraceRight } from \"./symbol/BraceRight.js\";\nimport { BracketsLeft } from \"./symbol/BracketsLeft.js\";\nimport { BracketsRight } from \"./symbol/BracketsRight.js\";\nimport { Arrow } from \"./symbol/Arrow.js\";\nimport { Colon } from \"./symbol/Colon.js\";\nimport { Quote } from \"./symbol/Quote.js\";\nimport { ValueQuote } from \"./symbol/ValueQuote.js\";\nimport { Bigint } from \"./types/Bigint.js\";\nimport { Date } from \"./types/Date.js\";\nimport { False } from \"./types/False.js\";\nimport { Float } from \"./types/Float.js\";\nimport { Int } from \"./types/Int.js\";\nimport { Map } from \"./types/Map.js\";\nimport { Nan } from \"./types/Nan.js\";\nimport { Null } from \"./types/Null.js\";\nimport { Set } from \"./types/Set.js\";\nimport { StringText } from \"./types/String.js\";\nimport { True } from \"./types/True.js\";\nimport { Undefined } from \"./types/Undefined.js\";\nimport { Url } from \"./types/Url.js\";\nimport { Copied } from \"./section/Copied.js\";\nimport { CountInfo } from \"./section/CountInfo.js\";\nimport { CountInfoExtra } from \"./section/CountInfoExtra.js\";\nimport { Ellipsis } from \"./section/Ellipsis.js\";\nimport { KeyName } from \"./section/KeyName.js\";\nimport { Row } from \"./section/Row.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport * from \"./store.js\";\nexport * from \"./store/Expands.js\";\nexport * from \"./store/ShowTools.js\";\nexport * from \"./store/Symbols.js\";\nexport * from \"./store/Types.js\";\nexport * from \"./symbol/index.js\";\nvar JsonView = /*#__PURE__*/forwardRef((props, ref) => {\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n style = props.style,\n value = props.value,\n children = props.children,\n _props$collapsed = props.collapsed,\n collapsed = _props$collapsed === void 0 ? false : _props$collapsed,\n shouldExpandNodeInitially = props.shouldExpandNodeInitially,\n _props$indentWidth = props.indentWidth,\n indentWidth = _props$indentWidth === void 0 ? 15 : _props$indentWidth,\n _props$displayObjectS = props.displayObjectSize,\n displayObjectSize = _props$displayObjectS === void 0 ? true : _props$displayObjectS,\n _props$shortenTextAft = props.shortenTextAfterLength,\n shortenTextAfterLength = _props$shortenTextAft === void 0 ? 30 : _props$shortenTextAft,\n stringEllipsis = props.stringEllipsis,\n _props$highlightUpdat = props.highlightUpdates,\n highlightUpdates = _props$highlightUpdat === void 0 ? true : _props$highlightUpdat,\n _props$enableClipboar = props.enableClipboard,\n enableClipboard = _props$enableClipboar === void 0 ? true : _props$enableClipboar,\n _props$displayDataTyp = props.displayDataTypes,\n displayDataTypes = _props$displayDataTyp === void 0 ? true : _props$displayDataTyp,\n _props$objectSortKeys = props.objectSortKeys,\n objectSortKeys = _props$objectSortKeys === void 0 ? false : _props$objectSortKeys,\n onExpand = props.onExpand,\n onCopied = props.onCopied,\n beforeCopy = props.beforeCopy,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var defaultStyle = _extends({\n lineHeight: 1.4,\n fontFamily: 'var(--w-rjv-font-family, Menlo, monospace)',\n color: 'var(--w-rjv-color, #002b36)',\n backgroundColor: 'var(--w-rjv-background-color, #00000000)',\n fontSize: 13\n }, style);\n var cls = ['w-json-view-container', 'w-rjv', className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsxs(Provider, {\n initialState: {\n value,\n objectSortKeys,\n indentWidth,\n shouldExpandNodeInitially: collapsed === false ? shouldExpandNodeInitially : undefined,\n displayObjectSize,\n collapsed,\n enableClipboard,\n shortenTextAfterLength,\n stringEllipsis,\n highlightUpdates,\n onCopied,\n onExpand,\n beforeCopy\n },\n initialTypes: {\n displayDataTypes\n },\n children: [/*#__PURE__*/_jsx(Container, _extends({\n value: value\n }, elmProps, {\n ref: ref,\n className: cls,\n style: defaultStyle\n })), children]\n });\n});\nJsonView.Bigint = Bigint;\nJsonView.Date = Date;\nJsonView.False = False;\nJsonView.Float = Float;\nJsonView.Int = Int;\nJsonView.Map = Map;\nJsonView.Nan = Nan;\nJsonView.Null = Null;\nJsonView.Set = Set;\nJsonView.String = StringText;\nJsonView.True = True;\nJsonView.Undefined = Undefined;\nJsonView.Url = Url;\nJsonView.ValueQuote = ValueQuote;\nJsonView.Arrow = Arrow;\nJsonView.Colon = Colon;\nJsonView.Quote = Quote;\nJsonView.Ellipsis = Ellipsis;\nJsonView.BraceLeft = BraceLeft;\nJsonView.BraceRight = BraceRight;\nJsonView.BracketsLeft = BracketsLeft;\nJsonView.BracketsRight = BracketsRight;\nJsonView.Copied = Copied;\nJsonView.CountInfo = CountInfo;\nJsonView.CountInfoExtra = CountInfoExtra;\nJsonView.KeyName = KeyName;\nJsonView.Row = Row;\nJsonView.displayName = 'JVR.JsonView';\n\n// Named exports for better import flexibility\nexport { JsonView };\n// Named exports for type components\nexport { Bigint, Date as JsonDate, False, Float, Int, Map as JsonMap, Nan, Null, Set as JsonSet, StringText as JsonString, True, Undefined, Url };\n\n// Named exports for symbol components\nexport { BraceLeft, BraceRight, BracketsLeft, BracketsRight, Arrow, Colon, Quote, ValueQuote };\n\n// Named exports for section components\nexport { Copied, CountInfo, CountInfoExtra, Ellipsis, KeyName, Row };\nexport default JsonView;"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAa;CAAS;CAAS;CAAY;CAAa;CAA6B;CAAe;CAAqB;CAA0B;CAAkB;CAAoB;CAAmB;CAAoB;CAAkB;CAAY;CAAY;AAAY;AAsCvS,IAAI,WAAwB,0BAAY,OAAO,QAAQ;CACrD,IAAI,mBAAmB,MAAM,WAC3B,YAAY,qBAAqB,KAAK,IAAI,KAAK,kBAC/C,QAAQ,MAAM,OACd,QAAQ,MAAM,OACd,WAAW,MAAM,UACjB,mBAAmB,MAAM,WACzB,YAAY,qBAAqB,KAAK,IAAI,QAAQ,kBAClD,4BAA4B,MAAM,2BAClC,qBAAqB,MAAM,aAC3B,cAAc,uBAAuB,KAAK,IAAI,KAAK,oBACnD,wBAAwB,MAAM,mBAC9B,oBAAoB,0BAA0B,KAAK,IAAI,OAAO,uBAC9D,wBAAwB,MAAM,wBAC9B,yBAAyB,0BAA0B,KAAK,IAAI,KAAK,uBACjE,iBAAiB,MAAM,gBACvB,wBAAwB,MAAM,kBAC9B,mBAAmB,0BAA0B,KAAK,IAAI,OAAO,uBAC7D,wBAAwB,MAAM,iBAC9B,kBAAkB,0BAA0B,KAAK,IAAI,OAAO,uBAC5D,wBAAwB,MAAM,kBAC9B,mBAAmB,0BAA0B,KAAK,IAAI,OAAO,uBAC7D,wBAAwB,MAAM,gBAC9B,iBAAiB,0BAA0B,KAAK,IAAI,QAAQ,uBAC5D,WAAW,MAAM,UACjB,WAAW,MAAM,UACjB,aAAa,MAAM,YACnB,YAAA,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"style\", \"value\", \"children\", \"collapsed\", \"shouldExpandNodeInitially\", \"indentWidth\", \"displayObjectSize\", \"shortenTextAfterLength\", \"stringEllipsis\", \"highlightUpdates\", \"enableClipboard\", \"displayDataTypes\", \"objectSortKeys\", \"onExpand\", \"onCopied\", \"beforeCopy\"];\nimport { forwardRef } from 'react';\nimport { Provider } from \"./store.js\";\nimport { Container } from \"./Container.js\";\nimport { BraceLeft } from \"./symbol/BraceLeft.js\";\nimport { BraceRight } from \"./symbol/BraceRight.js\";\nimport { BracketsLeft } from \"./symbol/BracketsLeft.js\";\nimport { BracketsRight } from \"./symbol/BracketsRight.js\";\nimport { Arrow } from \"./symbol/Arrow.js\";\nimport { Colon } from \"./symbol/Colon.js\";\nimport { Quote } from \"./symbol/Quote.js\";\nimport { ValueQuote } from \"./symbol/ValueQuote.js\";\nimport { Bigint } from \"./types/Bigint.js\";\nimport { Date } from \"./types/Date.js\";\nimport { False } from \"./types/False.js\";\nimport { Float } from \"./types/Float.js\";\nimport { Int } from \"./types/Int.js\";\nimport { Map } from \"./types/Map.js\";\nimport { Nan } from \"./types/Nan.js\";\nimport { Null } from \"./types/Null.js\";\nimport { Set } from \"./types/Set.js\";\nimport { StringText } from \"./types/String.js\";\nimport { True } from \"./types/True.js\";\nimport { Undefined } from \"./types/Undefined.js\";\nimport { Url } from \"./types/Url.js\";\nimport { Copied } from \"./section/Copied.js\";\nimport { CountInfo } from \"./section/CountInfo.js\";\nimport { CountInfoExtra } from \"./section/CountInfoExtra.js\";\nimport { Ellipsis } from \"./section/Ellipsis.js\";\nimport { KeyName } from \"./section/KeyName.js\";\nimport { Row } from \"./section/Row.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport * from \"./store.js\";\nexport * from \"./store/Expands.js\";\nexport * from \"./store/ShowTools.js\";\nexport * from \"./store/Symbols.js\";\nexport * from \"./store/Types.js\";\nexport * from \"./symbol/index.js\";\nvar JsonView = /*#__PURE__*/forwardRef((props, ref) => {\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n style = props.style,\n value = props.value,\n children = props.children,\n _props$collapsed = props.collapsed,\n collapsed = _props$collapsed === void 0 ? false : _props$collapsed,\n shouldExpandNodeInitially = props.shouldExpandNodeInitially,\n _props$indentWidth = props.indentWidth,\n indentWidth = _props$indentWidth === void 0 ? 15 : _props$indentWidth,\n _props$displayObjectS = props.displayObjectSize,\n displayObjectSize = _props$displayObjectS === void 0 ? true : _props$displayObjectS,\n _props$shortenTextAft = props.shortenTextAfterLength,\n shortenTextAfterLength = _props$shortenTextAft === void 0 ? 30 : _props$shortenTextAft,\n stringEllipsis = props.stringEllipsis,\n _props$highlightUpdat = props.highlightUpdates,\n highlightUpdates = _props$highlightUpdat === void 0 ? true : _props$highlightUpdat,\n _props$enableClipboar = props.enableClipboard,\n enableClipboard = _props$enableClipboar === void 0 ? true : _props$enableClipboar,\n _props$displayDataTyp = props.displayDataTypes,\n displayDataTypes = _props$displayDataTyp === void 0 ? true : _props$displayDataTyp,\n _props$objectSortKeys = props.objectSortKeys,\n objectSortKeys = _props$objectSortKeys === void 0 ? false : _props$objectSortKeys,\n onExpand = props.onExpand,\n onCopied = props.onCopied,\n beforeCopy = props.beforeCopy,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var defaultStyle = _extends({\n lineHeight: 1.4,\n fontFamily: 'var(--w-rjv-font-family, Menlo, monospace)',\n color: 'var(--w-rjv-color, #002b36)',\n backgroundColor: 'var(--w-rjv-background-color, #00000000)',\n fontSize: 13\n }, style);\n var cls = ['w-json-view-container', 'w-rjv', className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsxs(Provider, {\n initialState: {\n value,\n objectSortKeys,\n indentWidth,\n shouldExpandNodeInitially: collapsed === false ? shouldExpandNodeInitially : undefined,\n displayObjectSize,\n collapsed,\n enableClipboard,\n shortenTextAfterLength,\n stringEllipsis,\n highlightUpdates,\n onCopied,\n onExpand,\n beforeCopy\n },\n initialTypes: {\n displayDataTypes\n },\n children: [/*#__PURE__*/_jsx(Container, _extends({\n value: value\n }, elmProps, {\n ref: ref,\n className: cls,\n style: defaultStyle\n })), children]\n });\n});\nJsonView.Bigint = Bigint;\nJsonView.Date = Date;\nJsonView.False = False;\nJsonView.Float = Float;\nJsonView.Int = Int;\nJsonView.Map = Map;\nJsonView.Nan = Nan;\nJsonView.Null = Null;\nJsonView.Set = Set;\nJsonView.String = StringText;\nJsonView.True = True;\nJsonView.Undefined = Undefined;\nJsonView.Url = Url;\nJsonView.ValueQuote = ValueQuote;\nJsonView.Arrow = Arrow;\nJsonView.Colon = Colon;\nJsonView.Quote = Quote;\nJsonView.Ellipsis = Ellipsis;\nJsonView.BraceLeft = BraceLeft;\nJsonView.BraceRight = BraceRight;\nJsonView.BracketsLeft = BracketsLeft;\nJsonView.BracketsRight = BracketsRight;\nJsonView.Copied = Copied;\nJsonView.CountInfo = CountInfo;\nJsonView.CountInfoExtra = CountInfoExtra;\nJsonView.KeyName = KeyName;\nJsonView.Row = Row;\nJsonView.displayName = 'JVR.JsonView';\n\n// Named exports for better import flexibility\nexport { JsonView };\n// Named exports for type components\nexport { Bigint, Date as JsonDate, False, Float, Int, Map as JsonMap, Nan, Null, Set as JsonSet, StringText as JsonString, True, Undefined, Url };\n\n// Named exports for symbol components\nexport { BraceLeft, BraceRight, BracketsLeft, BracketsRight, Arrow, Colon, Quote, ValueQuote };\n\n// Named exports for section components\nexport { Copied, CountInfo, CountInfoExtra, Ellipsis, KeyName, Row };\nexport default JsonView;"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAa;CAAS;CAAS;CAAY;CAAa;CAA6B;CAAe;CAAqB;CAA0B;CAAkB;CAAoB;CAAmB;CAAoB;CAAkB;CAAY;CAAY;AAAY;AAsCvS,IAAI,WAAwB,0BAAY,OAAO,QAAQ;CACrD,IAAI,mBAAmB,MAAM,WAC3B,YAAY,qBAAqB,KAAK,IAAI,K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CAAC,CAAC,GAAG,QAAQ;CACf,CAAC;AACH,CAAC;AACD,SAAS,SAAS;AAClB,SAAS,OAAO;AAChB,SAAS,QAAQ;AACjB,SAAS,QAAQ;AACjB,SAAS,MAAM;AACf,SAAS,MAAM;AACf,SAAS,MAAM;AACf,SAAS,OAAO;AAChB,SAAS,MAAM;AACf,SAAS,SAAS;AAClB,SAAS,OAAO;AAChB,SAAS,YAAY;AACrB,SAAS,MAAM;AACf,SAAS,aAAa;AACtB,SAAS,QAAQ;AACjB,SAAS,QAAQ;AACjB,SAAS,QAAQ;AACjB,SAAS,WAAW;AACpB,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,SAAS;AAClB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU;AACnB,SAAS,MAAM;AACf,SAAS,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountInfo.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfo.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"value\", \"keyName\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useSectionRender } from \"../utils/useRender.js\";\nimport { useStore } from \"../store.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var CountInfo = props => {\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Coun = _useSectionStore.CountInfo,\n Comp = _useSectionStore$Coun === void 0 ? {} : _useSectionStore$Coun;\n useSectionRender(Comp, props, 'CountInfo');\n return null;\n};\nCountInfo.displayName = 'JVR.CountInfo';\nexport var CountInfoComp = props => {\n var _props$value = props.value,\n value = _props$value === void 0 ? {} : _props$value,\n keyName = props.keyName,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n displayObjectSize = _useStore.displayObjectSize;\n var _useSectionStore2 = useSectionStore(),\n _useSectionStore2$Cou = _useSectionStore2.CountInfo,\n Comp = _useSectionStore2$Cou === void 0 ? {} : _useSectionStore2$Cou;\n if (!displayObjectSize) return null;\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n var Elm = as || 'span';\n reset.style = _extends({}, reset.style, props.style);\n var len = Object.keys(value).length;\n if (!reset.children) {\n reset.children = len + \" item\" + (len === 1 ? '' : 's');\n }\n var elmProps = _extends({}, reset, other);\n var isRender = render && typeof render === 'function';\n var child = isRender && render(_extends({}, elmProps, {\n 'data-length': len\n }), {\n value,\n keyName\n });\n if (child) return child;\n return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));\n};\nCountInfoComp.displayName = 'JVR.CountInfoComp';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAEA,IAAI,YAAY,CAAC,SAAS,SAAS;AACjC,IAAA,aAAa,CAAC,MAAM,QAAQ;AAK9B,IAAW,aAAY,UAAS;CAC9B,IACE,wBADqB,gBACkB,CAAC,CAAC;CAE3C,iBADS,0BAA0B,KAAK,IAAI,CAAC,IAAI,uBAC1B,OAAO,WAAW;CACzC,OAAO;AACT;AACA,UAAU,cAAc;AACxB,IAAW,iBAAgB,UAAS;CAClC,IAAI,eAAe,MAAM,OACvB,QAAQ,iBAAiB,KAAK,IAAI,CAAC,IAAI,cACvC,UAAU,MAAM,SAChB,SAAA,
|
|
1
|
+
{"version":3,"file":"CountInfo.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfo.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"value\", \"keyName\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useSectionRender } from \"../utils/useRender.js\";\nimport { useStore } from \"../store.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var CountInfo = props => {\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Coun = _useSectionStore.CountInfo,\n Comp = _useSectionStore$Coun === void 0 ? {} : _useSectionStore$Coun;\n useSectionRender(Comp, props, 'CountInfo');\n return null;\n};\nCountInfo.displayName = 'JVR.CountInfo';\nexport var CountInfoComp = props => {\n var _props$value = props.value,\n value = _props$value === void 0 ? {} : _props$value,\n keyName = props.keyName,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n displayObjectSize = _useStore.displayObjectSize;\n var _useSectionStore2 = useSectionStore(),\n _useSectionStore2$Cou = _useSectionStore2.CountInfo,\n Comp = _useSectionStore2$Cou === void 0 ? {} : _useSectionStore2$Cou;\n if (!displayObjectSize) return null;\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n var Elm = as || 'span';\n reset.style = _extends({}, reset.style, props.style);\n var len = Object.keys(value).length;\n if (!reset.children) {\n reset.children = len + \" item\" + (len === 1 ? '' : 's');\n }\n var elmProps = _extends({}, reset, other);\n var isRender = render && typeof render === 'function';\n var child = isRender && render(_extends({}, elmProps, {\n 'data-length': len\n }), {\n value,\n keyName\n });\n if (child) return child;\n return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));\n};\nCountInfoComp.displayName = 'JVR.CountInfoComp';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAEA,IAAI,YAAY,CAAC,SAAS,SAAS;AACjC,IAAA,aAAa,CAAC,MAAM,QAAQ;AAK9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.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"value\", \"keyName\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useSectionRender } from \"../utils/useRender.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var CountInfoExtra = props => {\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Coun = _useSectionStore.CountInfoExtra,\n Comp = _useSectionStore$Coun === void 0 ? {} : _useSectionStore$Coun;\n useSectionRender(Comp, props, 'CountInfoExtra');\n return null;\n};\nCountInfoExtra.displayName = 'JVR.CountInfoExtra';\nexport var CountInfoExtraComps = props => {\n var _props$value = props.value,\n value = _props$value === void 0 ? {} : _props$value,\n keyName = props.keyName,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useSectionStore2 = useSectionStore(),\n _useSectionStore2$Cou = _useSectionStore2.CountInfoExtra,\n Comp = _useSectionStore2$Cou === void 0 ? {} : _useSectionStore2$Cou;\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n if (!render && !reset.children) return null;\n var Elm = as || 'span';\n var isRender = render && typeof render === 'function';\n var elmProps = _extends({}, reset, other);\n var child = isRender && render(elmProps, {\n value,\n keyName\n });\n if (child) return child;\n return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));\n};\nCountInfoExtraComps.displayName = 'JVR.CountInfoExtraComps';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAEA,IAAI,YAAY,CAAC,SAAS,SAAS;AACjC,IAAA,aAAa,CAAC,MAAM,QAAQ;AAI9B,IAAW,kBAAiB,UAAS;CACnC,IACE,wBADqB,gBACkB,CAAC,CAAC;CAE3C,iBADS,0BAA0B,KAAK,IAAI,CAAC,IAAI,uBAC1B,OAAO,gBAAgB;CAC9C,OAAO;AACT;AACA,eAAe,cAAc;AAC7B,IAAW,uBAAsB,UAAS;CACxC,IAAI,eAAe,MAAM,OACvB,QAAQ,iBAAiB,KAAK,IAAI,CAAC,IAAI,cACvC,UAAU,MAAM,SAChB,SAAA,
|
|
1
|
+
{"version":3,"file":"CountInfoExtra.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"value\", \"keyName\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useSectionRender } from \"../utils/useRender.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var CountInfoExtra = props => {\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Coun = _useSectionStore.CountInfoExtra,\n Comp = _useSectionStore$Coun === void 0 ? {} : _useSectionStore$Coun;\n useSectionRender(Comp, props, 'CountInfoExtra');\n return null;\n};\nCountInfoExtra.displayName = 'JVR.CountInfoExtra';\nexport var CountInfoExtraComps = props => {\n var _props$value = props.value,\n value = _props$value === void 0 ? {} : _props$value,\n keyName = props.keyName,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useSectionStore2 = useSectionStore(),\n _useSectionStore2$Cou = _useSectionStore2.CountInfoExtra,\n Comp = _useSectionStore2$Cou === void 0 ? {} : _useSectionStore2$Cou;\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n if (!render && !reset.children) return null;\n var Elm = as || 'span';\n var isRender = render && typeof render === 'function';\n var elmProps = _extends({}, reset, other);\n var child = isRender && render(elmProps, {\n value,\n keyName\n });\n if (child) return child;\n return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));\n};\nCountInfoExtraComps.displayName = 'JVR.CountInfoExtraComps';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAEA,IAAI,YAAY,CAAC,SAAS,SAAS;AACjC,IAAA,aAAa,CAAC,MAAM,QAAQ;AAI9B,IAAW,kBAAiB,UAAS;CACnC,IACE,wBADqB,gBACkB,CAAC,CAAC;CAE3C,iBADS,0BAA0B,KAAK,IAAI,CAAC,IAAI,uBAC1B,OAAO,gBAAgB;CAC9C,OAAO;AACT;AACA,eAAe,cAAc;AAC7B,IAAW,uBAAsB,UAAS;CACxC,IAAI,eAAe,MAAM,OACvB,QAAQ,iBAAiB,KAAK,IAAI,CAAC,IAAI,cACvC,UAAU,MAAM,SAChB,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,OAAO,SAAS;CACxD,IACE,wBADsB,gBACkB,CAAC,CAAC,gBAC1C,OAAO,0BAA0B,KAAK,IAAI,CAAC,IAAI;CACjD,IAAI,KAAK,KAAK,IACZ,SAAS,KAAK,QACd,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,MAAM,UAAU;CACxD,IAAI,CAAC,UAAU,CAAC,MAAM,UAAU,OAAO;CACvC,IAAI,MAAM,MAAM;CAChB,IAAI,WAAW,UAAU,OAAO,WAAW;CAC3C,IAAI,YAAA,GAAWC,eAAAA,QAAAA,CAAS,CAAC,GAAG,OAAO,KAAK;CACxC,IAAI,QAAQ,YAAY,OAAO,UAAU;EACvC;EACA;CACF,CAAC;CACD,IAAI,OAAO,OAAO;CAClB,OAAoB,kBAAK,MAAA,GAAKA,eAAAA,QAAAA,CAAS,CAAC,GAAG,QAAQ,CAAC;AACtD;AACA,oBAAoB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ellipsis.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"as\", \"render\"];\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useSectionRender } from \"../utils/useRender.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Ellipsis = props => {\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Elli = _useSectionStore.Ellipsis,\n Comp = _useSectionStore$Elli === void 0 ? {} : _useSectionStore$Elli;\n useSectionRender(Comp, props, 'Ellipsis');\n return null;\n};\nEllipsis.displayName = 'JVR.Ellipsis';\nexport var EllipsisComp = _ref => {\n var isExpanded = _ref.isExpanded,\n value = _ref.value,\n keyName = _ref.keyName;\n var _useSectionStore2 = useSectionStore(),\n _useSectionStore2$Ell = _useSectionStore2.Ellipsis,\n Comp = _useSectionStore2$Ell === void 0 ? {} : _useSectionStore2$Ell;\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded);\n var Elm = as || 'span';\n var child = render && typeof render === 'function' && render(_extends({}, reset, {\n 'data-expanded': isExpanded\n }), {\n value,\n keyName\n });\n if (child) return child;\n if (!isExpanded || typeof value === 'object' && Object.keys(value).length == 0) return null;\n return /*#__PURE__*/_jsx(Elm, _extends({}, reset));\n};\nEllipsisComp.displayName = 'JVR.EllipsisComp';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAEA,IAAI,YAAY,CAAC,MAAM,QAAQ;AAI/B,IAAW,YAAW,UAAS;CAC7B,IACE,wBADqB,gBACkB,CAAC,CAAC;CAE3C,iBADS,0BAA0B,KAAK,IAAI,CAAC,IAAI,uBAC1B,OAAO,UAAU;CACxC,OAAO;AACT;AACA,SAAS,cAAc;AACvB,IAAW,gBAAe,SAAQ;CAChC,IAAI,aAAa,KAAK,YACpB,QAAQ,KAAK,OACb,UAAU,KAAK;CACjB,IACE,wBADsB,gBACkB,CAAC,CAAC,UAC1C,OAAO,0BAA0B,KAAK,IAAI,CAAC,IAAI;CACjD,IAAI,KAAK,KAAK,IACZ,SAAS,KAAK,QACd,SAAA,
|
|
1
|
+
{"version":3,"file":"Ellipsis.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"as\", \"render\"];\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useSectionRender } from \"../utils/useRender.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Ellipsis = props => {\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Elli = _useSectionStore.Ellipsis,\n Comp = _useSectionStore$Elli === void 0 ? {} : _useSectionStore$Elli;\n useSectionRender(Comp, props, 'Ellipsis');\n return null;\n};\nEllipsis.displayName = 'JVR.Ellipsis';\nexport var EllipsisComp = _ref => {\n var isExpanded = _ref.isExpanded,\n value = _ref.value,\n keyName = _ref.keyName;\n var _useSectionStore2 = useSectionStore(),\n _useSectionStore2$Ell = _useSectionStore2.Ellipsis,\n Comp = _useSectionStore2$Ell === void 0 ? {} : _useSectionStore2$Ell;\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded);\n var Elm = as || 'span';\n var child = render && typeof render === 'function' && render(_extends({}, reset, {\n 'data-expanded': isExpanded\n }), {\n value,\n keyName\n });\n if (child) return child;\n if (!isExpanded || typeof value === 'object' && Object.keys(value).length == 0) return null;\n return /*#__PURE__*/_jsx(Elm, _extends({}, reset));\n};\nEllipsisComp.displayName = 'JVR.EllipsisComp';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAEA,IAAI,YAAY,CAAC,MAAM,QAAQ;AAI/B,IAAW,YAAW,UAAS;CAC7B,IACE,wBADqB,gBACkB,CAAC,CAAC;CAE3C,iBADS,0BAA0B,KAAK,IAAI,CAAC,IAAI,uBAC1B,OAAO,UAAU;CACxC,OAAO;AACT;AACA,SAAS,cAAc;AACvB,IAAW,gBAAe,SAAQ;CAChC,IAAI,aAAa,KAAK,YACpB,QAAQ,KAAK,OACb,UAAU,KAAK;CACjB,IACE,wBADsB,gBACkB,CAAC,CAAC,UAC1C,OAAO,0BAA0B,KAAK,IAAI,CAAC,IAAI;CACjD,IAAI,KAAK,KAAK,IACZ,SAAS,KAAK,QACd,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,MAAM,SAAS;CACvD,IAAI,MAAM,MAAM;CAChB,IAAI,QAAQ,UAAU,OAAO,WAAW,cAAc,QAAA,GAAOC,eAAAA,QAAAA,CAAS,CAAC,GAAG,OAAO,EAC/E,iBAAiB,WACnB,CAAC,GAAG;EACF;EACA;CACF,CAAC;CACD,IAAI,OAAO,OAAO;CAClB,IAAI,CAAC,cAAc,OAAO,UAAU,YAAY,OAAO,KAAK,KAAK,CAAC,CAAC,UAAU,GAAG,OAAO;CACvF,OAAoB,kBAAK,MAAA,GAAKA,eAAAA,QAAAA,CAAS,CAAC,GAAG,KAAK,CAAC;AACnD;AACA,aAAa,cAAc"}
|