hasting-swatchcart-module 0.0.41 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +233 -73
- package/dist/assets/index.css +1 -0
- package/dist/cdn/lib/components/SwatchesModule.d.ts +10 -0
- package/dist/cdn/lib/main.d.ts +4 -0
- package/dist/cdn/lib/store/LibraryProvider.d.ts +4 -0
- package/dist/cdn/lib/store/rootReducer.d.ts +11 -0
- package/dist/cdn/lib/store/store.d.ts +25 -0
- package/dist/cdn/lib/store/withStore.d.ts +2 -0
- package/dist/cdn/lib/vite-env.d.ts +1 -0
- package/dist/cdn/main.css +1 -0
- package/dist/cdn/main.js +48652 -0
- package/dist/cdn/src/app/App.d.ts +2 -0
- package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/main.d.ts +1 -0
- package/dist/cdn/src/app/providers/StoreProvider.d.ts +6 -0
- package/dist/cdn/src/app/store/rootReducer.d.ts +11 -0
- package/dist/cdn/src/app/store/store.d.ts +24 -0
- package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +5 -0
- package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +13 -0
- package/dist/cdn/src/features/Cart/model/selectors.d.ts +223 -0
- package/dist/cdn/src/features/Cart/model/types.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +1 -0
- package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +10 -0
- package/dist/cdn/src/features/Cart/ui/CartPrice/CartPrice.d.ts +5 -0
- package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +9 -0
- package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +9 -0
- package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +12 -0
- package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +11 -0
- package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +3 -0
- package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +4 -0
- package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +35 -0
- package/dist/cdn/src/features/MultiProduct/model/types.d.ts +30 -0
- package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/CustomModal/CustomModal.d.ts +8 -0
- package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +8 -0
- package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +2 -0
- package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +11 -0
- package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +7 -0
- package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +11 -0
- package/dist/cdn/src/features/swatches/model/selectors.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +26 -0
- package/dist/cdn/src/features/swatches/model/thunks.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/types.d.ts +137 -0
- package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +5 -0
- package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/MaterialList/index.d.ts +7 -0
- package/dist/cdn/src/features/swatches/ui/MaterialListItem/MaterialListItem.d.ts +4 -0
- package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +6 -0
- package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +8 -0
- package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +11 -0
- package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +5 -0
- package/dist/cdn/src/features/swatches/utils/constants.d.ts +3 -0
- package/dist/cdn/src/features/swatches/utils/types.d.ts +22 -0
- package/dist/cdn/src/shared/constants/props.d.ts +1058 -0
- package/dist/cdn/src/shared/constants/select.d.ts +4 -0
- package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +1 -0
- package/dist/cdn/src/shared/types/activeTab.d.ts +5 -0
- package/dist/cdn/src/shared/types/svg.d.ts +3 -0
- package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +4 -0
- package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +6 -0
- package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +8 -0
- package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +19 -0
- package/dist/cdn/src/shared/ui/Label/Label.d.ts +7 -0
- package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
- package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +8 -0
- package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +20 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +1 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
- package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +11 -0
- package/dist/cdn/src/shared/ui/popover.d.ts +9 -0
- package/dist/cdn/src/shared/utils/cn.d.ts +2 -0
- package/dist/cdn/src/shared/utils/uniqueList.d.ts +1 -0
- package/dist/cdn/vite.svg +1 -0
- package/dist/components/SwatchesModule.d.ts +1 -2
- package/dist/main.cjs +407 -0
- package/dist/main.cjs.map +1 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +63812 -2
- package/dist/main.js.map +1 -0
- package/dist/store/LibraryProvider.d.ts +4 -0
- package/dist/store/rootReducer.d.ts +11 -0
- package/dist/store/store.d.ts +25 -0
- package/dist/store/withStore.d.ts +2 -0
- package/package.json +24 -14
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index2.js +0 -7
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
- package/dist/_virtual/utilities.js +0 -4
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector2.js +0 -4
- package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
- package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
- package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
- package/dist/components/SwatchesModule.js +0 -32
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/bail/index.js +0 -7
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/comma-separated-tokens/index.js +0 -20
- package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
- package/dist/node_modules/devlop/lib/default.js +0 -8
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
- package/dist/node_modules/extend/index.js +0 -43
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
- package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
- package/dist/node_modules/hastscript/lib/create-h.js +0 -112
- package/dist/node_modules/hastscript/lib/index.js +0 -8
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
- package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
- package/dist/node_modules/html-void-elements/index.js +0 -25
- package/dist/node_modules/immer/dist/immer.js +0 -467
- package/dist/node_modules/inline-style-parser/index.js +0 -93
- package/dist/node_modules/is-plain-obj/index.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
- package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
- package/dist/node_modules/micromark/lib/constructs.js +0 -85
- package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
- package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
- package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
- package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
- package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
- package/dist/node_modules/micromark/lib/parse.js +0 -32
- package/dist/node_modules/micromark/lib/postprocess.js +0 -9
- package/dist/node_modules/micromark/lib/preprocess.js +0 -39
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
- package/dist/node_modules/micromark-factory-destination/index.js +0 -31
- package/dist/node_modules/micromark-factory-label/index.js +0 -28
- package/dist/node_modules/micromark-factory-space/index.js +0 -15
- package/dist/node_modules/micromark-factory-title/index.js +0 -26
- package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
- package/dist/node_modules/micromark-util-character/index.js +0 -39
- package/dist/node_modules/micromark-util-chunked/index.js +0 -16
- package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
- package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
- package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
- package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
- package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
- package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
- package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
- package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
- package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
- package/dist/node_modules/parse5/dist/common/html.js +0 -250
- package/dist/node_modules/parse5/dist/common/token.js +0 -14
- package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
- package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
- package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
- package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
- package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
- package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
- package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
- package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
- package/dist/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/property-information/lib/util/create.js +0 -19
- package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
- package/dist/node_modules/property-information/lib/util/info.js +0 -28
- package/dist/node_modules/property-information/lib/util/merge.js +0 -10
- package/dist/node_modules/property-information/lib/util/schema.js +0 -21
- package/dist/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/react-markdown/lib/index.js +0 -102
- package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/redux/dist/redux.js +0 -258
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
- package/dist/node_modules/rehype-raw/lib/index.js +0 -12
- package/dist/node_modules/remark-parse/lib/index.js +0 -19
- package/dist/node_modules/remark-rehype/lib/index.js +0 -18
- package/dist/node_modules/reselect/dist/reselect.js +0 -244
- package/dist/node_modules/space-separated-tokens/index.js +0 -11
- package/dist/node_modules/style-to-js/cjs/index.js +0 -20
- package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
- package/dist/node_modules/style-to-object/cjs/index.js +0 -28
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
- package/dist/node_modules/trim-lines/index.js +0 -28
- package/dist/node_modules/trough/lib/index.js +0 -60
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/unified/lib/callable-instance.js +0 -25
- package/dist/node_modules/unified/lib/index.js +0 -529
- package/dist/node_modules/unist-util-is/lib/index.js +0 -84
- package/dist/node_modules/unist-util-position/lib/index.js +0 -23
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
- package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
- package/dist/node_modules/vfile/lib/index.js +0 -406
- package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
- package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
- package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
- package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
- package/dist/node_modules/vfile-location/lib/index.js +0 -42
- package/dist/node_modules/vfile-message/lib/index.js +0 -91
- package/dist/node_modules/web-namespaces/index.js +0 -11
- package/dist/node_modules/zwitch/index.js +0 -18
- package/dist/src/app/assets/images/product_thumb.png.js +0 -4
- package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
- package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
- package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
- package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
- package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
- package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
- package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
- package/dist/src/app/providers/StoreProvider.js +0 -7
- package/dist/src/app/store/rootReducer.js +0 -12
- package/dist/src/app/store/store.js +0 -14
- package/dist/src/features/Cart/lib/CartCervices.js +0 -8
- package/dist/src/features/Cart/model/cartSlice.js +0 -58
- package/dist/src/features/Cart/model/selectors.js +0 -18
- package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
- package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
- package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
- package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
- package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
- package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
- package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
- package/dist/src/features/DataAdapter/utils/types.js +0 -8
- package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
- package/dist/src/features/MultiProduct/model/API/api.js +0 -18
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
- package/dist/src/features/MultiProduct/model/selectors.js +0 -7
- package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
- package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
- package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
- package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
- package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
- package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
- package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
- package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
- package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
- package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
- package/dist/src/features/MultiProduct/utils/constants.js +0 -16
- package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
- package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
- package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
- package/dist/src/features/swatches/model/selectors.js +0 -12
- package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
- package/dist/src/features/swatches/model/thunks.js +0 -22
- package/dist/src/features/swatches/model/types.js +0 -6
- package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
- package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
- package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
- package/dist/src/features/swatches/ui/Filters/index.js +0 -12
- package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
- package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
- package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
- package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
- package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
- package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
- package/dist/src/features/swatches/ui/Swatches.js +0 -51
- package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
- package/dist/src/features/swatches/utils/constants.js +0 -8
- package/dist/src/shared/constants/props.js +0 -13337
- package/dist/src/shared/constants/selectedMaterials.js +0 -4
- package/dist/src/shared/types/activeTab.js +0 -7
- package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
- package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
- package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
- package/dist/src/shared/ui/Label/Label.js +0 -27
- package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
- package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
- package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
- package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
- package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
- package/dist/src/shared/ui/Slider/Slider.js +0 -117
- package/dist/src/shared/utils/cn.js +0 -8
- package/dist/src/shared/utils/uniqueList.js +0 -4
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import { flushSync as c } from "react-dom";
|
|
3
|
-
import { Virtualizer as f, elementScroll as i, observeElementOffset as m, observeElementRect as d } from "../../../virtual-core/dist/esm/index.js";
|
|
4
|
-
import { defaultKeyExtractor as R, defaultRangeExtractor as g, measureElement as z } from "../../../virtual-core/dist/esm/index.js";
|
|
5
|
-
const a = typeof document < "u" ? r.useLayoutEffect : r.useEffect;
|
|
6
|
-
function p(e) {
|
|
7
|
-
const n = r.useReducer(() => ({}), {})[1], o = {
|
|
8
|
-
...e,
|
|
9
|
-
onChange: (l, u) => {
|
|
10
|
-
var s;
|
|
11
|
-
u ? c(n) : n(), (s = e.onChange) == null || s.call(e, l, u);
|
|
12
|
-
}
|
|
13
|
-
}, [t] = r.useState(
|
|
14
|
-
() => new f(o)
|
|
15
|
-
);
|
|
16
|
-
return t.setOptions(o), a(() => t._didMount(), []), a(() => t._willUpdate()), t;
|
|
17
|
-
}
|
|
18
|
-
function h(e) {
|
|
19
|
-
return p({
|
|
20
|
-
observeElementRect: d,
|
|
21
|
-
observeElementOffset: m,
|
|
22
|
-
scrollToFn: i,
|
|
23
|
-
...e
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
f as Virtualizer,
|
|
28
|
-
R as defaultKeyExtractor,
|
|
29
|
-
g as defaultRangeExtractor,
|
|
30
|
-
i as elementScroll,
|
|
31
|
-
z as measureElement,
|
|
32
|
-
m as observeElementOffset,
|
|
33
|
-
d as observeElementRect,
|
|
34
|
-
h as useVirtualizer
|
|
35
|
-
};
|
|
@@ -1,497 +0,0 @@
|
|
|
1
|
-
import { memo as f, notUndefined as v, approxEqual as M, debounce as z } from "./utils.js";
|
|
2
|
-
const b = (r) => {
|
|
3
|
-
const { offsetWidth: a, offsetHeight: e } = r;
|
|
4
|
-
return { width: a, height: e };
|
|
5
|
-
}, w = (r) => r, I = (r) => {
|
|
6
|
-
const a = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
|
|
7
|
-
for (let t = a; t <= e; t++)
|
|
8
|
-
s.push(t);
|
|
9
|
-
return s;
|
|
10
|
-
}, A = (r, a) => {
|
|
11
|
-
const e = r.scrollElement;
|
|
12
|
-
if (!e)
|
|
13
|
-
return;
|
|
14
|
-
const s = r.targetWindow;
|
|
15
|
-
if (!s)
|
|
16
|
-
return;
|
|
17
|
-
const t = (n) => {
|
|
18
|
-
const { width: o, height: h } = n;
|
|
19
|
-
a({ width: Math.round(o), height: Math.round(h) });
|
|
20
|
-
};
|
|
21
|
-
if (t(b(e)), !s.ResizeObserver)
|
|
22
|
-
return () => {
|
|
23
|
-
};
|
|
24
|
-
const i = new s.ResizeObserver((n) => {
|
|
25
|
-
const o = () => {
|
|
26
|
-
const h = n[0];
|
|
27
|
-
if (h?.borderBoxSize) {
|
|
28
|
-
const c = h.borderBoxSize[0];
|
|
29
|
-
if (c) {
|
|
30
|
-
t({ width: c.inlineSize, height: c.blockSize });
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
t(b(e));
|
|
35
|
-
};
|
|
36
|
-
r.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
|
|
37
|
-
});
|
|
38
|
-
return i.observe(e, { box: "border-box" }), () => {
|
|
39
|
-
i.unobserve(e);
|
|
40
|
-
};
|
|
41
|
-
}, E = {
|
|
42
|
-
passive: !0
|
|
43
|
-
}, S = typeof window > "u" ? !0 : "onscrollend" in window, F = (r, a) => {
|
|
44
|
-
const e = r.scrollElement;
|
|
45
|
-
if (!e)
|
|
46
|
-
return;
|
|
47
|
-
const s = r.targetWindow;
|
|
48
|
-
if (!s)
|
|
49
|
-
return;
|
|
50
|
-
let t = 0;
|
|
51
|
-
const i = r.options.useScrollendEvent && S ? () => {
|
|
52
|
-
} : z(
|
|
53
|
-
s,
|
|
54
|
-
() => {
|
|
55
|
-
a(t, !1);
|
|
56
|
-
},
|
|
57
|
-
r.options.isScrollingResetDelay
|
|
58
|
-
), n = (l) => () => {
|
|
59
|
-
const { horizontal: d, isRtl: u } = r.options;
|
|
60
|
-
t = d ? e.scrollLeft * (u && -1 || 1) : e.scrollTop, i(), a(t, l);
|
|
61
|
-
}, o = n(!0), h = n(!1);
|
|
62
|
-
h(), e.addEventListener("scroll", o, E);
|
|
63
|
-
const c = r.options.useScrollendEvent && S;
|
|
64
|
-
return c && e.addEventListener("scrollend", h, E), () => {
|
|
65
|
-
e.removeEventListener("scroll", o), c && e.removeEventListener("scrollend", h);
|
|
66
|
-
};
|
|
67
|
-
}, C = (r, a, e) => {
|
|
68
|
-
if (a?.borderBoxSize) {
|
|
69
|
-
const s = a.borderBoxSize[0];
|
|
70
|
-
if (s)
|
|
71
|
-
return Math.round(
|
|
72
|
-
s[e.options.horizontal ? "inlineSize" : "blockSize"]
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
return r[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
76
|
-
}, N = (r, {
|
|
77
|
-
adjustments: a = 0,
|
|
78
|
-
behavior: e
|
|
79
|
-
}, s) => {
|
|
80
|
-
var t, i;
|
|
81
|
-
const n = r + a;
|
|
82
|
-
(i = (t = s.scrollElement) == null ? void 0 : t.scrollTo) == null || i.call(t, {
|
|
83
|
-
[s.options.horizontal ? "left" : "top"]: n,
|
|
84
|
-
behavior: e
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
class W {
|
|
88
|
-
constructor(a) {
|
|
89
|
-
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
90
|
-
let e = null;
|
|
91
|
-
const s = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((t) => {
|
|
92
|
-
t.forEach((i) => {
|
|
93
|
-
const n = () => {
|
|
94
|
-
this._measureElement(i.target, i);
|
|
95
|
-
};
|
|
96
|
-
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(n) : n();
|
|
97
|
-
});
|
|
98
|
-
}));
|
|
99
|
-
return {
|
|
100
|
-
disconnect: () => {
|
|
101
|
-
var t;
|
|
102
|
-
(t = s()) == null || t.disconnect(), e = null;
|
|
103
|
-
},
|
|
104
|
-
observe: (t) => {
|
|
105
|
-
var i;
|
|
106
|
-
return (i = s()) == null ? void 0 : i.observe(t, { box: "border-box" });
|
|
107
|
-
},
|
|
108
|
-
unobserve: (t) => {
|
|
109
|
-
var i;
|
|
110
|
-
return (i = s()) == null ? void 0 : i.unobserve(t);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
})(), this.range = null, this.setOptions = (e) => {
|
|
114
|
-
Object.entries(e).forEach(([s, t]) => {
|
|
115
|
-
typeof t > "u" && delete e[s];
|
|
116
|
-
}), this.options = {
|
|
117
|
-
debug: !1,
|
|
118
|
-
initialOffset: 0,
|
|
119
|
-
overscan: 1,
|
|
120
|
-
paddingStart: 0,
|
|
121
|
-
paddingEnd: 0,
|
|
122
|
-
scrollPaddingStart: 0,
|
|
123
|
-
scrollPaddingEnd: 0,
|
|
124
|
-
horizontal: !1,
|
|
125
|
-
getItemKey: w,
|
|
126
|
-
rangeExtractor: I,
|
|
127
|
-
onChange: () => {
|
|
128
|
-
},
|
|
129
|
-
measureElement: C,
|
|
130
|
-
initialRect: { width: 0, height: 0 },
|
|
131
|
-
scrollMargin: 0,
|
|
132
|
-
gap: 0,
|
|
133
|
-
indexAttribute: "data-index",
|
|
134
|
-
initialMeasurementsCache: [],
|
|
135
|
-
lanes: 1,
|
|
136
|
-
isScrollingResetDelay: 150,
|
|
137
|
-
enabled: !0,
|
|
138
|
-
isRtl: !1,
|
|
139
|
-
useScrollendEvent: !1,
|
|
140
|
-
useAnimationFrameWithResizeObserver: !1,
|
|
141
|
-
...e
|
|
142
|
-
};
|
|
143
|
-
}, this.notify = (e) => {
|
|
144
|
-
var s, t;
|
|
145
|
-
(t = (s = this.options).onChange) == null || t.call(s, this, e);
|
|
146
|
-
}, this.maybeNotify = f(
|
|
147
|
-
() => (this.calculateRange(), [
|
|
148
|
-
this.isScrolling,
|
|
149
|
-
this.range ? this.range.startIndex : null,
|
|
150
|
-
this.range ? this.range.endIndex : null
|
|
151
|
-
]),
|
|
152
|
-
(e) => {
|
|
153
|
-
this.notify(e);
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
157
|
-
debug: () => this.options.debug,
|
|
158
|
-
initialDeps: [
|
|
159
|
-
this.isScrolling,
|
|
160
|
-
this.range ? this.range.startIndex : null,
|
|
161
|
-
this.range ? this.range.endIndex : null
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
), this.cleanup = () => {
|
|
165
|
-
this.unsubs.filter(Boolean).forEach((e) => e()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
|
|
166
|
-
}, this._didMount = () => () => {
|
|
167
|
-
this.cleanup();
|
|
168
|
-
}, this._willUpdate = () => {
|
|
169
|
-
var e;
|
|
170
|
-
const s = this.options.enabled ? this.options.getScrollElement() : null;
|
|
171
|
-
if (this.scrollElement !== s) {
|
|
172
|
-
if (this.cleanup(), !s) {
|
|
173
|
-
this.maybeNotify();
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this.scrollElement = s, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((e = this.scrollElement) == null ? void 0 : e.window) ?? null, this.elementsCache.forEach((t) => {
|
|
177
|
-
this.observer.observe(t);
|
|
178
|
-
}), this._scrollToOffset(this.getScrollOffset(), {
|
|
179
|
-
adjustments: void 0,
|
|
180
|
-
behavior: void 0
|
|
181
|
-
}), this.unsubs.push(
|
|
182
|
-
this.options.observeElementRect(this, (t) => {
|
|
183
|
-
this.scrollRect = t, this.maybeNotify();
|
|
184
|
-
})
|
|
185
|
-
), this.unsubs.push(
|
|
186
|
-
this.options.observeElementOffset(this, (t, i) => {
|
|
187
|
-
this.scrollAdjustments = 0, this.scrollDirection = i ? this.getScrollOffset() < t ? "forward" : "backward" : null, this.scrollOffset = t, this.isScrolling = i, this.maybeNotify();
|
|
188
|
-
})
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
}, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e, s) => {
|
|
192
|
-
const t = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
193
|
-
for (let n = s - 1; n >= 0; n--) {
|
|
194
|
-
const o = e[n];
|
|
195
|
-
if (t.has(o.lane))
|
|
196
|
-
continue;
|
|
197
|
-
const h = i.get(
|
|
198
|
-
o.lane
|
|
199
|
-
);
|
|
200
|
-
if (h == null || o.end > h.end ? i.set(o.lane, o) : o.end < h.end && t.set(o.lane, !0), t.size === this.options.lanes)
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
return i.size === this.options.lanes ? Array.from(i.values()).sort((n, o) => n.end === o.end ? n.index - o.index : n.end - o.end)[0] : void 0;
|
|
204
|
-
}, this.getMeasurementOptions = f(
|
|
205
|
-
() => [
|
|
206
|
-
this.options.count,
|
|
207
|
-
this.options.paddingStart,
|
|
208
|
-
this.options.scrollMargin,
|
|
209
|
-
this.options.getItemKey,
|
|
210
|
-
this.options.enabled
|
|
211
|
-
],
|
|
212
|
-
(e, s, t, i, n) => (this.pendingMeasuredCacheIndexes = [], {
|
|
213
|
-
count: e,
|
|
214
|
-
paddingStart: s,
|
|
215
|
-
scrollMargin: t,
|
|
216
|
-
getItemKey: i,
|
|
217
|
-
enabled: n
|
|
218
|
-
}),
|
|
219
|
-
{
|
|
220
|
-
key: !1
|
|
221
|
-
}
|
|
222
|
-
), this.getMeasurements = f(
|
|
223
|
-
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
224
|
-
({ count: e, paddingStart: s, scrollMargin: t, getItemKey: i, enabled: n }, o) => {
|
|
225
|
-
if (!n)
|
|
226
|
-
return this.measurementsCache = [], this.itemSizeCache.clear(), [];
|
|
227
|
-
this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((l) => {
|
|
228
|
-
this.itemSizeCache.set(l.key, l.size);
|
|
229
|
-
}));
|
|
230
|
-
const h = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
231
|
-
this.pendingMeasuredCacheIndexes = [];
|
|
232
|
-
const c = this.measurementsCache.slice(0, h);
|
|
233
|
-
for (let l = h; l < e; l++) {
|
|
234
|
-
const d = i(l), u = this.options.lanes === 1 ? c[l - 1] : this.getFurthestMeasurement(c, l), g = u ? u.end + this.options.gap : s + t, m = o.get(d), p = typeof m == "number" ? m : this.options.estimateSize(l), O = g + p, y = u ? u.lane : l % this.options.lanes;
|
|
235
|
-
c[l] = {
|
|
236
|
-
index: l,
|
|
237
|
-
start: g,
|
|
238
|
-
size: p,
|
|
239
|
-
end: O,
|
|
240
|
-
key: d,
|
|
241
|
-
lane: y
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
return this.measurementsCache = c, c;
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
248
|
-
debug: () => this.options.debug
|
|
249
|
-
}
|
|
250
|
-
), this.calculateRange = f(
|
|
251
|
-
() => [
|
|
252
|
-
this.getMeasurements(),
|
|
253
|
-
this.getSize(),
|
|
254
|
-
this.getScrollOffset(),
|
|
255
|
-
this.options.lanes
|
|
256
|
-
],
|
|
257
|
-
(e, s, t, i) => this.range = e.length > 0 && s > 0 ? R({
|
|
258
|
-
measurements: e,
|
|
259
|
-
outerSize: s,
|
|
260
|
-
scrollOffset: t,
|
|
261
|
-
lanes: i
|
|
262
|
-
}) : null,
|
|
263
|
-
{
|
|
264
|
-
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
265
|
-
debug: () => this.options.debug
|
|
266
|
-
}
|
|
267
|
-
), this.getVirtualIndexes = f(
|
|
268
|
-
() => {
|
|
269
|
-
let e = null, s = null;
|
|
270
|
-
const t = this.calculateRange();
|
|
271
|
-
return t && (e = t.startIndex, s = t.endIndex), this.maybeNotify.updateDeps([this.isScrolling, e, s]), [
|
|
272
|
-
this.options.rangeExtractor,
|
|
273
|
-
this.options.overscan,
|
|
274
|
-
this.options.count,
|
|
275
|
-
e,
|
|
276
|
-
s
|
|
277
|
-
];
|
|
278
|
-
},
|
|
279
|
-
(e, s, t, i, n) => i === null || n === null ? [] : e({
|
|
280
|
-
startIndex: i,
|
|
281
|
-
endIndex: n,
|
|
282
|
-
overscan: s,
|
|
283
|
-
count: t
|
|
284
|
-
}),
|
|
285
|
-
{
|
|
286
|
-
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
287
|
-
debug: () => this.options.debug
|
|
288
|
-
}
|
|
289
|
-
), this.indexFromElement = (e) => {
|
|
290
|
-
const s = this.options.indexAttribute, t = e.getAttribute(s);
|
|
291
|
-
return t ? parseInt(t, 10) : (console.warn(
|
|
292
|
-
`Missing attribute name '${s}={index}' on measured element.`
|
|
293
|
-
), -1);
|
|
294
|
-
}, this._measureElement = (e, s) => {
|
|
295
|
-
const t = this.indexFromElement(e), i = this.measurementsCache[t];
|
|
296
|
-
if (!i)
|
|
297
|
-
return;
|
|
298
|
-
const n = i.key, o = this.elementsCache.get(n);
|
|
299
|
-
o !== e && (o && this.observer.unobserve(o), this.observer.observe(e), this.elementsCache.set(n, e)), e.isConnected && this.resizeItem(t, this.options.measureElement(e, s, this));
|
|
300
|
-
}, this.resizeItem = (e, s) => {
|
|
301
|
-
const t = this.measurementsCache[e];
|
|
302
|
-
if (!t)
|
|
303
|
-
return;
|
|
304
|
-
const i = this.itemSizeCache.get(t.key) ?? t.size, n = s - i;
|
|
305
|
-
n !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(t, n, this) : t.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", n), this._scrollToOffset(this.getScrollOffset(), {
|
|
306
|
-
adjustments: this.scrollAdjustments += n,
|
|
307
|
-
behavior: void 0
|
|
308
|
-
})), this.pendingMeasuredCacheIndexes.push(t.index), this.itemSizeCache = new Map(this.itemSizeCache.set(t.key, s)), this.notify(!1));
|
|
309
|
-
}, this.measureElement = (e) => {
|
|
310
|
-
if (!e) {
|
|
311
|
-
this.elementsCache.forEach((s, t) => {
|
|
312
|
-
s.isConnected || (this.observer.unobserve(s), this.elementsCache.delete(t));
|
|
313
|
-
});
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
this._measureElement(e, void 0);
|
|
317
|
-
}, this.getVirtualItems = f(
|
|
318
|
-
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
319
|
-
(e, s) => {
|
|
320
|
-
const t = [];
|
|
321
|
-
for (let i = 0, n = e.length; i < n; i++) {
|
|
322
|
-
const o = e[i], h = s[o];
|
|
323
|
-
t.push(h);
|
|
324
|
-
}
|
|
325
|
-
return t;
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
329
|
-
debug: () => this.options.debug
|
|
330
|
-
}
|
|
331
|
-
), this.getVirtualItemForOffset = (e) => {
|
|
332
|
-
const s = this.getMeasurements();
|
|
333
|
-
if (s.length !== 0)
|
|
334
|
-
return v(
|
|
335
|
-
s[x(
|
|
336
|
-
0,
|
|
337
|
-
s.length - 1,
|
|
338
|
-
(t) => v(s[t]).start,
|
|
339
|
-
e
|
|
340
|
-
)]
|
|
341
|
-
);
|
|
342
|
-
}, this.getOffsetForAlignment = (e, s, t = 0) => {
|
|
343
|
-
const i = this.getSize(), n = this.getScrollOffset();
|
|
344
|
-
s === "auto" && (s = e >= n + i ? "end" : "start"), s === "center" ? e += (t - i) / 2 : s === "end" && (e -= i);
|
|
345
|
-
const o = this.getTotalSize() + this.options.scrollMargin - i;
|
|
346
|
-
return Math.max(Math.min(o, e), 0);
|
|
347
|
-
}, this.getOffsetForIndex = (e, s = "auto") => {
|
|
348
|
-
e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
349
|
-
const t = this.measurementsCache[e];
|
|
350
|
-
if (!t)
|
|
351
|
-
return;
|
|
352
|
-
const i = this.getSize(), n = this.getScrollOffset();
|
|
353
|
-
if (s === "auto")
|
|
354
|
-
if (t.end >= n + i - this.options.scrollPaddingEnd)
|
|
355
|
-
s = "end";
|
|
356
|
-
else if (t.start <= n + this.options.scrollPaddingStart)
|
|
357
|
-
s = "start";
|
|
358
|
-
else
|
|
359
|
-
return [n, s];
|
|
360
|
-
const o = s === "end" ? t.end + this.options.scrollPaddingEnd : t.start - this.options.scrollPaddingStart;
|
|
361
|
-
return [
|
|
362
|
-
this.getOffsetForAlignment(o, s, t.size),
|
|
363
|
-
s
|
|
364
|
-
];
|
|
365
|
-
}, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (e, { align: s = "start", behavior: t } = {}) => {
|
|
366
|
-
t === "smooth" && this.isDynamicMode() && console.warn(
|
|
367
|
-
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
368
|
-
), this._scrollToOffset(this.getOffsetForAlignment(e, s), {
|
|
369
|
-
adjustments: void 0,
|
|
370
|
-
behavior: t
|
|
371
|
-
});
|
|
372
|
-
}, this.scrollToIndex = (e, { align: s = "auto", behavior: t } = {}) => {
|
|
373
|
-
t === "smooth" && this.isDynamicMode() && console.warn(
|
|
374
|
-
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
375
|
-
), e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
376
|
-
let i = 0;
|
|
377
|
-
const n = 10, o = (c) => {
|
|
378
|
-
if (!this.targetWindow) return;
|
|
379
|
-
const l = this.getOffsetForIndex(e, c);
|
|
380
|
-
if (!l) {
|
|
381
|
-
console.warn("Failed to get offset for index:", e);
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
-
const [d, u] = l;
|
|
385
|
-
this._scrollToOffset(d, { adjustments: void 0, behavior: t }), this.targetWindow.requestAnimationFrame(() => {
|
|
386
|
-
const g = this.getScrollOffset(), m = this.getOffsetForIndex(e, u);
|
|
387
|
-
if (!m) {
|
|
388
|
-
console.warn("Failed to get offset for index:", e);
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
M(m[0], g) || h(u);
|
|
392
|
-
});
|
|
393
|
-
}, h = (c) => {
|
|
394
|
-
this.targetWindow && (i++, i < n ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", i, n), this.targetWindow.requestAnimationFrame(() => o(c))) : console.warn(
|
|
395
|
-
`Failed to scroll to index ${e} after ${n} attempts.`
|
|
396
|
-
));
|
|
397
|
-
};
|
|
398
|
-
o(s);
|
|
399
|
-
}, this.scrollBy = (e, { behavior: s } = {}) => {
|
|
400
|
-
s === "smooth" && this.isDynamicMode() && console.warn(
|
|
401
|
-
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
402
|
-
), this._scrollToOffset(this.getScrollOffset() + e, {
|
|
403
|
-
adjustments: void 0,
|
|
404
|
-
behavior: s
|
|
405
|
-
});
|
|
406
|
-
}, this.getTotalSize = () => {
|
|
407
|
-
var e;
|
|
408
|
-
const s = this.getMeasurements();
|
|
409
|
-
let t;
|
|
410
|
-
if (s.length === 0)
|
|
411
|
-
t = this.options.paddingStart;
|
|
412
|
-
else if (this.options.lanes === 1)
|
|
413
|
-
t = ((e = s[s.length - 1]) == null ? void 0 : e.end) ?? 0;
|
|
414
|
-
else {
|
|
415
|
-
const i = Array(this.options.lanes).fill(null);
|
|
416
|
-
let n = s.length - 1;
|
|
417
|
-
for (; n >= 0 && i.some((o) => o === null); ) {
|
|
418
|
-
const o = s[n];
|
|
419
|
-
i[o.lane] === null && (i[o.lane] = o.end), n--;
|
|
420
|
-
}
|
|
421
|
-
t = Math.max(...i.filter((o) => o !== null));
|
|
422
|
-
}
|
|
423
|
-
return Math.max(
|
|
424
|
-
t - this.options.scrollMargin + this.options.paddingEnd,
|
|
425
|
-
0
|
|
426
|
-
);
|
|
427
|
-
}, this._scrollToOffset = (e, {
|
|
428
|
-
adjustments: s,
|
|
429
|
-
behavior: t
|
|
430
|
-
}) => {
|
|
431
|
-
this.options.scrollToFn(e, { behavior: t, adjustments: s }, this);
|
|
432
|
-
}, this.measure = () => {
|
|
433
|
-
this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
|
|
434
|
-
}, this.setOptions(a);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
const x = (r, a, e, s) => {
|
|
438
|
-
for (; r <= a; ) {
|
|
439
|
-
const t = (r + a) / 2 | 0, i = e(t);
|
|
440
|
-
if (i < s)
|
|
441
|
-
r = t + 1;
|
|
442
|
-
else if (i > s)
|
|
443
|
-
a = t - 1;
|
|
444
|
-
else
|
|
445
|
-
return t;
|
|
446
|
-
}
|
|
447
|
-
return r > 0 ? r - 1 : 0;
|
|
448
|
-
};
|
|
449
|
-
function R({
|
|
450
|
-
measurements: r,
|
|
451
|
-
outerSize: a,
|
|
452
|
-
scrollOffset: e,
|
|
453
|
-
lanes: s
|
|
454
|
-
}) {
|
|
455
|
-
const t = r.length - 1, i = (h) => r[h].start;
|
|
456
|
-
if (r.length <= s)
|
|
457
|
-
return {
|
|
458
|
-
startIndex: 0,
|
|
459
|
-
endIndex: t
|
|
460
|
-
};
|
|
461
|
-
let n = x(
|
|
462
|
-
0,
|
|
463
|
-
t,
|
|
464
|
-
i,
|
|
465
|
-
e
|
|
466
|
-
), o = n;
|
|
467
|
-
if (s === 1)
|
|
468
|
-
for (; o < t && r[o].end < e + a; )
|
|
469
|
-
o++;
|
|
470
|
-
else if (s > 1) {
|
|
471
|
-
const h = Array(s).fill(0);
|
|
472
|
-
for (; o < t && h.some((l) => l < e + a); ) {
|
|
473
|
-
const l = r[o];
|
|
474
|
-
h[l.lane] = l.end, o++;
|
|
475
|
-
}
|
|
476
|
-
const c = Array(s).fill(e + a);
|
|
477
|
-
for (; n >= 0 && c.some((l) => l >= e); ) {
|
|
478
|
-
const l = r[n];
|
|
479
|
-
c[l.lane] = l.start, n--;
|
|
480
|
-
}
|
|
481
|
-
n = Math.max(0, n - n % s), o = Math.min(t, o + (s - 1 - o % s));
|
|
482
|
-
}
|
|
483
|
-
return { startIndex: n, endIndex: o };
|
|
484
|
-
}
|
|
485
|
-
export {
|
|
486
|
-
W as Virtualizer,
|
|
487
|
-
M as approxEqual,
|
|
488
|
-
z as debounce,
|
|
489
|
-
w as defaultKeyExtractor,
|
|
490
|
-
I as defaultRangeExtractor,
|
|
491
|
-
N as elementScroll,
|
|
492
|
-
C as measureElement,
|
|
493
|
-
f as memo,
|
|
494
|
-
v as notUndefined,
|
|
495
|
-
F as observeElementOffset,
|
|
496
|
-
A as observeElementRect
|
|
497
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
function T(n, i, e) {
|
|
2
|
-
let l = e.initialDeps ?? [], t;
|
|
3
|
-
function r() {
|
|
4
|
-
var o, m, h, f;
|
|
5
|
-
let g;
|
|
6
|
-
e.key && ((o = e.debug) != null && o.call(e)) && (g = Date.now());
|
|
7
|
-
const u = n();
|
|
8
|
-
if (!(u.length !== l.length || u.some((c, a) => l[a] !== c)))
|
|
9
|
-
return t;
|
|
10
|
-
l = u;
|
|
11
|
-
let s;
|
|
12
|
-
if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = i(...u), e.key && ((h = e.debug) != null && h.call(e))) {
|
|
13
|
-
const c = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (d, v) => {
|
|
14
|
-
for (d = String(d); d.length < v; )
|
|
15
|
-
d = " " + d;
|
|
16
|
-
return d;
|
|
17
|
-
};
|
|
18
|
-
console.info(
|
|
19
|
-
`%c⏱ ${w(a, 5)} /${w(c, 5)} ms`,
|
|
20
|
-
`
|
|
21
|
-
font-size: .6rem;
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
color: hsl(${Math.max(
|
|
24
|
-
0,
|
|
25
|
-
Math.min(120 - 120 * b, 120)
|
|
26
|
-
)}deg 100% 31%);`,
|
|
27
|
-
e?.key
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
return (f = e?.onChange) == null || f.call(e, t), t;
|
|
31
|
-
}
|
|
32
|
-
return r.updateDeps = (o) => {
|
|
33
|
-
l = o;
|
|
34
|
-
}, r;
|
|
35
|
-
}
|
|
36
|
-
function y(n, i) {
|
|
37
|
-
if (n === void 0)
|
|
38
|
-
throw new Error("Unexpected undefined");
|
|
39
|
-
return n;
|
|
40
|
-
}
|
|
41
|
-
const M = (n, i) => Math.abs(n - i) < 1.01, k = (n, i, e) => {
|
|
42
|
-
let l;
|
|
43
|
-
return function(...t) {
|
|
44
|
-
n.clearTimeout(l), l = n.setTimeout(() => i.apply(this, t), e);
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
M as approxEqual,
|
|
49
|
-
k as debounce,
|
|
50
|
-
T as memo,
|
|
51
|
-
y as notUndefined
|
|
52
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { BIGINT as p, ERROR as I, SET as g, MAP as l, REGEXP as E, DATE as R, OBJECT as i, ARRAY as y, VOID as A, PRIMITIVE as b } from "./types.js";
|
|
2
|
-
const f = typeof self == "object" ? self : globalThis, B = (c, w) => {
|
|
3
|
-
const s = (e, o) => (c.set(o, e), e), a = (e) => {
|
|
4
|
-
if (c.has(e))
|
|
5
|
-
return c.get(e);
|
|
6
|
-
const [o, t] = w[e];
|
|
7
|
-
switch (o) {
|
|
8
|
-
case b:
|
|
9
|
-
case A:
|
|
10
|
-
return s(t, e);
|
|
11
|
-
case y: {
|
|
12
|
-
const r = s([], e);
|
|
13
|
-
for (const n of t)
|
|
14
|
-
r.push(a(n));
|
|
15
|
-
return r;
|
|
16
|
-
}
|
|
17
|
-
case i: {
|
|
18
|
-
const r = s({}, e);
|
|
19
|
-
for (const [n, u] of t)
|
|
20
|
-
r[a(n)] = a(u);
|
|
21
|
-
return r;
|
|
22
|
-
}
|
|
23
|
-
case R:
|
|
24
|
-
return s(new Date(t), e);
|
|
25
|
-
case E: {
|
|
26
|
-
const { source: r, flags: n } = t;
|
|
27
|
-
return s(new RegExp(r, n), e);
|
|
28
|
-
}
|
|
29
|
-
case l: {
|
|
30
|
-
const r = s(/* @__PURE__ */ new Map(), e);
|
|
31
|
-
for (const [n, u] of t)
|
|
32
|
-
r.set(a(n), a(u));
|
|
33
|
-
return r;
|
|
34
|
-
}
|
|
35
|
-
case g: {
|
|
36
|
-
const r = s(/* @__PURE__ */ new Set(), e);
|
|
37
|
-
for (const n of t)
|
|
38
|
-
r.add(a(n));
|
|
39
|
-
return r;
|
|
40
|
-
}
|
|
41
|
-
case I: {
|
|
42
|
-
const { name: r, message: n } = t;
|
|
43
|
-
return s(new f[r](n), e);
|
|
44
|
-
}
|
|
45
|
-
case p:
|
|
46
|
-
return s(BigInt(t), e);
|
|
47
|
-
case "BigInt":
|
|
48
|
-
return s(Object(BigInt(t)), e);
|
|
49
|
-
case "ArrayBuffer":
|
|
50
|
-
return s(new Uint8Array(t).buffer, t);
|
|
51
|
-
case "DataView": {
|
|
52
|
-
const { buffer: r } = new Uint8Array(t);
|
|
53
|
-
return s(new DataView(r), t);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return s(new f[o](t), e);
|
|
57
|
-
};
|
|
58
|
-
return a;
|
|
59
|
-
}, m = (c) => B(/* @__PURE__ */ new Map(), c)(0);
|
|
60
|
-
export {
|
|
61
|
-
m as deserialize
|
|
62
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { deserialize as t } from "./deserialize.js";
|
|
2
|
-
import { serialize as u } from "./serialize.js";
|
|
3
|
-
const s = typeof structuredClone == "function" ? (
|
|
4
|
-
/* c8 ignore start */
|
|
5
|
-
(r, e) => e && ("json" in e || "lossy" in e) ? t(u(r, e)) : structuredClone(r)
|
|
6
|
-
) : (r, e) => t(u(r, e));
|
|
7
|
-
export {
|
|
8
|
-
s as default,
|
|
9
|
-
t as deserialize,
|
|
10
|
-
u as serialize
|
|
11
|
-
};
|