hasting-swatchcart-module 0.0.7 → 0.0.9
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/assets/SwatchesModule.css +1 -0
- package/dist/components/SwatchesModule.js +23440 -24
- package/dist/components/Test.js +5 -0
- package/dist/lib/components/Test.d.ts +1 -0
- package/dist/main.js +0 -1
- package/dist/{src/shared/constants/props.js → rootReducer-BqfJd5QI.js} +1913 -3
- package/dist/store/LibraryProvider.js +3 -4
- package/dist/store/rootReducer.js +2 -10
- package/dist/store/store.js +5 -15
- package/dist/store-BZ_1BK_I.js +382 -0
- package/package.json +1 -1
- 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/styles/index.css +0 -0
- package/dist/main.d.ts +0 -1
- 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/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/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
- /package/dist/{components → lib/components}/SwatchesModule.d.ts +0 -0
- /package/dist/{store → lib/store}/LibraryProvider.d.ts +0 -0
- /package/dist/{store → lib/store}/rootReducer.d.ts +0 -0
- /package/dist/{store → lib/store}/store.d.ts +0 -0
- /package/dist/{store → lib/store}/withStore.d.ts +0 -0
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
var W = Symbol.for("immer-nothing"), R = Symbol.for("immer-draftable"), u = Symbol.for("immer-state"), Q = process.env.NODE_ENV !== "production" ? [
|
|
2
|
-
// All error codes, starting by 0:
|
|
3
|
-
function(e) {
|
|
4
|
-
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
5
|
-
},
|
|
6
|
-
function(e) {
|
|
7
|
-
return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`;
|
|
8
|
-
},
|
|
9
|
-
"This object has been frozen and should not be mutated",
|
|
10
|
-
function(e) {
|
|
11
|
-
return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + e;
|
|
12
|
-
},
|
|
13
|
-
"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
|
|
14
|
-
"Immer forbids circular references",
|
|
15
|
-
"The first or second argument to `produce` must be a function",
|
|
16
|
-
"The third argument to `produce` must be a function or undefined",
|
|
17
|
-
"First argument to `createDraft` must be a plain object, an array, or an immerable object",
|
|
18
|
-
"First argument to `finishDraft` must be a draft returned by `createDraft`",
|
|
19
|
-
function(e) {
|
|
20
|
-
return `'current' expects a draft, got: ${e}`;
|
|
21
|
-
},
|
|
22
|
-
"Object.defineProperty() cannot be used on an Immer draft",
|
|
23
|
-
"Object.setPrototypeOf() cannot be used on an Immer draft",
|
|
24
|
-
"Immer only supports deleting array indices",
|
|
25
|
-
"Immer only supports setting array indices and the 'length' property",
|
|
26
|
-
function(e) {
|
|
27
|
-
return `'original' expects a draft, got: ${e}`;
|
|
28
|
-
}
|
|
29
|
-
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
30
|
-
// See Patches.ts for additional errors
|
|
31
|
-
] : [];
|
|
32
|
-
function s(e, ...r) {
|
|
33
|
-
if (process.env.NODE_ENV !== "production") {
|
|
34
|
-
const t = Q[e], n = typeof t == "function" ? t.apply(null, r) : t;
|
|
35
|
-
throw new Error(`[Immer] ${n}`);
|
|
36
|
-
}
|
|
37
|
-
throw new Error(
|
|
38
|
-
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
var y = Object.getPrototypeOf;
|
|
42
|
-
function m(e) {
|
|
43
|
-
return !!e && !!e[u];
|
|
44
|
-
}
|
|
45
|
-
function d(e) {
|
|
46
|
-
return e ? B(e) || Array.isArray(e) || !!e[R] || !!e.constructor?.[R] || P(e) || v(e) : !1;
|
|
47
|
-
}
|
|
48
|
-
var Y = Object.prototype.constructor.toString();
|
|
49
|
-
function B(e) {
|
|
50
|
-
if (!e || typeof e != "object")
|
|
51
|
-
return !1;
|
|
52
|
-
const r = y(e);
|
|
53
|
-
if (r === null)
|
|
54
|
-
return !0;
|
|
55
|
-
const t = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
|
56
|
-
return t === Object ? !0 : typeof t == "function" && Function.toString.call(t) === Y;
|
|
57
|
-
}
|
|
58
|
-
function b(e, r) {
|
|
59
|
-
O(e) === 0 ? Reflect.ownKeys(e).forEach((t) => {
|
|
60
|
-
r(t, e[t], e);
|
|
61
|
-
}) : e.forEach((t, n) => r(n, t, e));
|
|
62
|
-
}
|
|
63
|
-
function O(e) {
|
|
64
|
-
const r = e[u];
|
|
65
|
-
return r ? r.type_ : Array.isArray(e) ? 1 : P(e) ? 2 : v(e) ? 3 : 0;
|
|
66
|
-
}
|
|
67
|
-
function E(e, r) {
|
|
68
|
-
return O(e) === 2 ? e.has(r) : Object.prototype.hasOwnProperty.call(e, r);
|
|
69
|
-
}
|
|
70
|
-
function G(e, r, t) {
|
|
71
|
-
const n = O(e);
|
|
72
|
-
n === 2 ? e.set(r, t) : n === 3 ? e.add(t) : e[r] = t;
|
|
73
|
-
}
|
|
74
|
-
function Z(e, r) {
|
|
75
|
-
return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
|
|
76
|
-
}
|
|
77
|
-
function P(e) {
|
|
78
|
-
return e instanceof Map;
|
|
79
|
-
}
|
|
80
|
-
function v(e) {
|
|
81
|
-
return e instanceof Set;
|
|
82
|
-
}
|
|
83
|
-
function l(e) {
|
|
84
|
-
return e.copy_ || e.base_;
|
|
85
|
-
}
|
|
86
|
-
function N(e, r) {
|
|
87
|
-
if (P(e))
|
|
88
|
-
return new Map(e);
|
|
89
|
-
if (v(e))
|
|
90
|
-
return new Set(e);
|
|
91
|
-
if (Array.isArray(e))
|
|
92
|
-
return Array.prototype.slice.call(e);
|
|
93
|
-
const t = B(e);
|
|
94
|
-
if (r === !0 || r === "class_only" && !t) {
|
|
95
|
-
const n = Object.getOwnPropertyDescriptors(e);
|
|
96
|
-
delete n[u];
|
|
97
|
-
let i = Reflect.ownKeys(n);
|
|
98
|
-
for (let o = 0; o < i.length; o++) {
|
|
99
|
-
const c = i[o], f = n[c];
|
|
100
|
-
f.writable === !1 && (f.writable = !0, f.configurable = !0), (f.get || f.set) && (n[c] = {
|
|
101
|
-
configurable: !0,
|
|
102
|
-
writable: !0,
|
|
103
|
-
// could live with !!desc.set as well here...
|
|
104
|
-
enumerable: f.enumerable,
|
|
105
|
-
value: e[c]
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
return Object.create(y(e), n);
|
|
109
|
-
} else {
|
|
110
|
-
const n = y(e);
|
|
111
|
-
if (n !== null && t)
|
|
112
|
-
return { ...e };
|
|
113
|
-
const i = Object.create(n);
|
|
114
|
-
return Object.assign(i, e);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
function T(e, r = !1) {
|
|
118
|
-
return D(e) || m(e) || !d(e) || (O(e) > 1 && Object.defineProperties(e, {
|
|
119
|
-
set: { value: g },
|
|
120
|
-
add: { value: g },
|
|
121
|
-
clear: { value: g },
|
|
122
|
-
delete: { value: g }
|
|
123
|
-
}), Object.freeze(e), r && Object.values(e).forEach((t) => T(t, !0))), e;
|
|
124
|
-
}
|
|
125
|
-
function g() {
|
|
126
|
-
s(2);
|
|
127
|
-
}
|
|
128
|
-
function D(e) {
|
|
129
|
-
return Object.isFrozen(e);
|
|
130
|
-
}
|
|
131
|
-
var L = {};
|
|
132
|
-
function _(e) {
|
|
133
|
-
const r = L[e];
|
|
134
|
-
return r || s(0, e), r;
|
|
135
|
-
}
|
|
136
|
-
var h;
|
|
137
|
-
function U() {
|
|
138
|
-
return h;
|
|
139
|
-
}
|
|
140
|
-
function V(e, r) {
|
|
141
|
-
return {
|
|
142
|
-
drafts_: [],
|
|
143
|
-
parent_: e,
|
|
144
|
-
immer_: r,
|
|
145
|
-
// Whenever the modified draft contains a draft from another scope, we
|
|
146
|
-
// need to prevent auto-freezing so the unowned draft can be finalized.
|
|
147
|
-
canAutoFreeze_: !0,
|
|
148
|
-
unfinalizedDrafts_: 0
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function j(e, r) {
|
|
152
|
-
r && (_("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = r);
|
|
153
|
-
}
|
|
154
|
-
function A(e) {
|
|
155
|
-
I(e), e.drafts_.forEach(ee), e.drafts_ = null;
|
|
156
|
-
}
|
|
157
|
-
function I(e) {
|
|
158
|
-
e === h && (h = e.parent_);
|
|
159
|
-
}
|
|
160
|
-
function x(e) {
|
|
161
|
-
return h = V(h, e);
|
|
162
|
-
}
|
|
163
|
-
function ee(e) {
|
|
164
|
-
const r = e[u];
|
|
165
|
-
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
|
166
|
-
}
|
|
167
|
-
function $(e, r) {
|
|
168
|
-
r.unfinalizedDrafts_ = r.drafts_.length;
|
|
169
|
-
const t = r.drafts_[0];
|
|
170
|
-
return e !== void 0 && e !== t ? (t[u].modified_ && (A(r), s(4)), d(e) && (e = w(r, e), r.parent_ || z(r, e)), r.patches_ && _("Patches").generateReplacementPatches_(
|
|
171
|
-
t[u].base_,
|
|
172
|
-
e,
|
|
173
|
-
r.patches_,
|
|
174
|
-
r.inversePatches_
|
|
175
|
-
)) : e = w(r, t, []), A(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), e !== W ? e : void 0;
|
|
176
|
-
}
|
|
177
|
-
function w(e, r, t) {
|
|
178
|
-
if (D(r))
|
|
179
|
-
return r;
|
|
180
|
-
const n = r[u];
|
|
181
|
-
if (!n)
|
|
182
|
-
return b(
|
|
183
|
-
r,
|
|
184
|
-
(i, o) => K(e, n, r, i, o, t)
|
|
185
|
-
), r;
|
|
186
|
-
if (n.scope_ !== e)
|
|
187
|
-
return r;
|
|
188
|
-
if (!n.modified_)
|
|
189
|
-
return z(e, n.base_, !0), n.base_;
|
|
190
|
-
if (!n.finalized_) {
|
|
191
|
-
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
192
|
-
const i = n.copy_;
|
|
193
|
-
let o = i, c = !1;
|
|
194
|
-
n.type_ === 3 && (o = new Set(i), i.clear(), c = !0), b(
|
|
195
|
-
o,
|
|
196
|
-
(f, a) => K(e, n, i, f, a, t, c)
|
|
197
|
-
), z(e, i, !1), t && e.patches_ && _("Patches").generatePatches_(
|
|
198
|
-
n,
|
|
199
|
-
t,
|
|
200
|
-
e.patches_,
|
|
201
|
-
e.inversePatches_
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
return n.copy_;
|
|
205
|
-
}
|
|
206
|
-
function K(e, r, t, n, i, o, c) {
|
|
207
|
-
if (process.env.NODE_ENV !== "production" && i === t && s(5), m(i)) {
|
|
208
|
-
const f = o && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
209
|
-
!E(r.assigned_, n) ? o.concat(n) : void 0, a = w(e, i, f);
|
|
210
|
-
if (G(t, n, a), m(a))
|
|
211
|
-
e.canAutoFreeze_ = !1;
|
|
212
|
-
else
|
|
213
|
-
return;
|
|
214
|
-
} else c && t.add(i);
|
|
215
|
-
if (d(i) && !D(i)) {
|
|
216
|
-
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
217
|
-
return;
|
|
218
|
-
w(e, i), (!r || !r.scope_.parent_) && typeof n != "symbol" && (P(t) ? t.has(n) : Object.prototype.propertyIsEnumerable.call(t, n)) && z(e, i);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
function z(e, r, t = !1) {
|
|
222
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && T(r, t);
|
|
223
|
-
}
|
|
224
|
-
function re(e, r) {
|
|
225
|
-
const t = Array.isArray(e), n = {
|
|
226
|
-
type_: t ? 1 : 0,
|
|
227
|
-
// Track which produce call this is associated with.
|
|
228
|
-
scope_: r ? r.scope_ : U(),
|
|
229
|
-
// True for both shallow and deep changes.
|
|
230
|
-
modified_: !1,
|
|
231
|
-
// Used during finalization.
|
|
232
|
-
finalized_: !1,
|
|
233
|
-
// Track which properties have been assigned (true) or deleted (false).
|
|
234
|
-
assigned_: {},
|
|
235
|
-
// The parent draft state.
|
|
236
|
-
parent_: r,
|
|
237
|
-
// The base state.
|
|
238
|
-
base_: e,
|
|
239
|
-
// The base proxy.
|
|
240
|
-
draft_: null,
|
|
241
|
-
// set below
|
|
242
|
-
// The base copy with any updated values.
|
|
243
|
-
copy_: null,
|
|
244
|
-
// Called by the `produce` function.
|
|
245
|
-
revoke_: null,
|
|
246
|
-
isManual_: !1
|
|
247
|
-
};
|
|
248
|
-
let i = n, o = M;
|
|
249
|
-
t && (i = [n], o = p);
|
|
250
|
-
const { revoke: c, proxy: f } = Proxy.revocable(i, o);
|
|
251
|
-
return n.draft_ = f, n.revoke_ = c, f;
|
|
252
|
-
}
|
|
253
|
-
var M = {
|
|
254
|
-
get(e, r) {
|
|
255
|
-
if (r === u)
|
|
256
|
-
return e;
|
|
257
|
-
const t = l(e);
|
|
258
|
-
if (!E(t, r))
|
|
259
|
-
return te(e, t, r);
|
|
260
|
-
const n = t[r];
|
|
261
|
-
return e.finalized_ || !d(n) ? n : n === F(e.base_, r) ? (S(e), e.copy_[r] = k(n, e)) : n;
|
|
262
|
-
},
|
|
263
|
-
has(e, r) {
|
|
264
|
-
return r in l(e);
|
|
265
|
-
},
|
|
266
|
-
ownKeys(e) {
|
|
267
|
-
return Reflect.ownKeys(l(e));
|
|
268
|
-
},
|
|
269
|
-
set(e, r, t) {
|
|
270
|
-
const n = H(l(e), r);
|
|
271
|
-
if (n?.set)
|
|
272
|
-
return n.set.call(e.draft_, t), !0;
|
|
273
|
-
if (!e.modified_) {
|
|
274
|
-
const i = F(l(e), r), o = i?.[u];
|
|
275
|
-
if (o && o.base_ === t)
|
|
276
|
-
return e.copy_[r] = t, e.assigned_[r] = !1, !0;
|
|
277
|
-
if (Z(t, i) && (t !== void 0 || E(e.base_, r)))
|
|
278
|
-
return !0;
|
|
279
|
-
S(e), C(e);
|
|
280
|
-
}
|
|
281
|
-
return e.copy_[r] === t && // special case: handle new props with value 'undefined'
|
|
282
|
-
(t !== void 0 || r in e.copy_) || // special case: NaN
|
|
283
|
-
Number.isNaN(t) && Number.isNaN(e.copy_[r]) || (e.copy_[r] = t, e.assigned_[r] = !0), !0;
|
|
284
|
-
},
|
|
285
|
-
deleteProperty(e, r) {
|
|
286
|
-
return F(e.base_, r) !== void 0 || r in e.base_ ? (e.assigned_[r] = !1, S(e), C(e)) : delete e.assigned_[r], e.copy_ && delete e.copy_[r], !0;
|
|
287
|
-
},
|
|
288
|
-
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
289
|
-
// the same guarantee in ES5 mode.
|
|
290
|
-
getOwnPropertyDescriptor(e, r) {
|
|
291
|
-
const t = l(e), n = Reflect.getOwnPropertyDescriptor(t, r);
|
|
292
|
-
return n && {
|
|
293
|
-
writable: !0,
|
|
294
|
-
configurable: e.type_ !== 1 || r !== "length",
|
|
295
|
-
enumerable: n.enumerable,
|
|
296
|
-
value: t[r]
|
|
297
|
-
};
|
|
298
|
-
},
|
|
299
|
-
defineProperty() {
|
|
300
|
-
s(11);
|
|
301
|
-
},
|
|
302
|
-
getPrototypeOf(e) {
|
|
303
|
-
return y(e.base_);
|
|
304
|
-
},
|
|
305
|
-
setPrototypeOf() {
|
|
306
|
-
s(12);
|
|
307
|
-
}
|
|
308
|
-
}, p = {};
|
|
309
|
-
b(M, (e, r) => {
|
|
310
|
-
p[e] = function() {
|
|
311
|
-
return arguments[0] = arguments[0][0], r.apply(this, arguments);
|
|
312
|
-
};
|
|
313
|
-
});
|
|
314
|
-
p.deleteProperty = function(e, r) {
|
|
315
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && s(13), p.set.call(this, e, r, void 0);
|
|
316
|
-
};
|
|
317
|
-
p.set = function(e, r, t) {
|
|
318
|
-
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && s(14), M.set.call(this, e[0], r, t, e[0]);
|
|
319
|
-
};
|
|
320
|
-
function F(e, r) {
|
|
321
|
-
const t = e[u];
|
|
322
|
-
return (t ? l(t) : e)[r];
|
|
323
|
-
}
|
|
324
|
-
function te(e, r, t) {
|
|
325
|
-
const n = H(r, t);
|
|
326
|
-
return n ? "value" in n ? n.value : (
|
|
327
|
-
// This is a very special case, if the prop is a getter defined by the
|
|
328
|
-
// prototype, we should invoke it with the draft as context!
|
|
329
|
-
n.get?.call(e.draft_)
|
|
330
|
-
) : void 0;
|
|
331
|
-
}
|
|
332
|
-
function H(e, r) {
|
|
333
|
-
if (!(r in e))
|
|
334
|
-
return;
|
|
335
|
-
let t = y(e);
|
|
336
|
-
for (; t; ) {
|
|
337
|
-
const n = Object.getOwnPropertyDescriptor(t, r);
|
|
338
|
-
if (n)
|
|
339
|
-
return n;
|
|
340
|
-
t = y(t);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
function C(e) {
|
|
344
|
-
e.modified_ || (e.modified_ = !0, e.parent_ && C(e.parent_));
|
|
345
|
-
}
|
|
346
|
-
function S(e) {
|
|
347
|
-
e.copy_ || (e.copy_ = N(
|
|
348
|
-
e.base_,
|
|
349
|
-
e.scope_.immer_.useStrictShallowCopy_
|
|
350
|
-
));
|
|
351
|
-
}
|
|
352
|
-
var ne = class {
|
|
353
|
-
constructor(e) {
|
|
354
|
-
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, t, n) => {
|
|
355
|
-
if (typeof r == "function" && typeof t != "function") {
|
|
356
|
-
const o = t;
|
|
357
|
-
t = r;
|
|
358
|
-
const c = this;
|
|
359
|
-
return function(a = o, ...q) {
|
|
360
|
-
return c.produce(a, (J) => t.call(this, J, ...q));
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
typeof t != "function" && s(6), n !== void 0 && typeof n != "function" && s(7);
|
|
364
|
-
let i;
|
|
365
|
-
if (d(r)) {
|
|
366
|
-
const o = x(this), c = k(r, void 0);
|
|
367
|
-
let f = !0;
|
|
368
|
-
try {
|
|
369
|
-
i = t(c), f = !1;
|
|
370
|
-
} finally {
|
|
371
|
-
f ? A(o) : I(o);
|
|
372
|
-
}
|
|
373
|
-
return j(o, n), $(i, o);
|
|
374
|
-
} else if (!r || typeof r != "object") {
|
|
375
|
-
if (i = t(r), i === void 0 && (i = r), i === W && (i = void 0), this.autoFreeze_ && T(i, !0), n) {
|
|
376
|
-
const o = [], c = [];
|
|
377
|
-
_("Patches").generateReplacementPatches_(r, i, o, c), n(o, c);
|
|
378
|
-
}
|
|
379
|
-
return i;
|
|
380
|
-
} else
|
|
381
|
-
s(1, r);
|
|
382
|
-
}, this.produceWithPatches = (r, t) => {
|
|
383
|
-
if (typeof r == "function")
|
|
384
|
-
return (c, ...f) => this.produceWithPatches(c, (a) => r(a, ...f));
|
|
385
|
-
let n, i;
|
|
386
|
-
return [this.produce(r, t, (c, f) => {
|
|
387
|
-
n = c, i = f;
|
|
388
|
-
}), n, i];
|
|
389
|
-
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
390
|
-
}
|
|
391
|
-
createDraft(e) {
|
|
392
|
-
d(e) || s(8), m(e) && (e = ie(e));
|
|
393
|
-
const r = x(this), t = k(e, void 0);
|
|
394
|
-
return t[u].isManual_ = !0, I(r), t;
|
|
395
|
-
}
|
|
396
|
-
finishDraft(e, r) {
|
|
397
|
-
const t = e && e[u];
|
|
398
|
-
(!t || !t.isManual_) && s(9);
|
|
399
|
-
const { scope_: n } = t;
|
|
400
|
-
return j(n, r), $(void 0, n);
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Pass true to automatically freeze all copies created by Immer.
|
|
404
|
-
*
|
|
405
|
-
* By default, auto-freezing is enabled.
|
|
406
|
-
*/
|
|
407
|
-
setAutoFreeze(e) {
|
|
408
|
-
this.autoFreeze_ = e;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Pass true to enable strict shallow copy.
|
|
412
|
-
*
|
|
413
|
-
* By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
|
|
414
|
-
*/
|
|
415
|
-
setUseStrictShallowCopy(e) {
|
|
416
|
-
this.useStrictShallowCopy_ = e;
|
|
417
|
-
}
|
|
418
|
-
applyPatches(e, r) {
|
|
419
|
-
let t;
|
|
420
|
-
for (t = r.length - 1; t >= 0; t--) {
|
|
421
|
-
const i = r[t];
|
|
422
|
-
if (i.path.length === 0 && i.op === "replace") {
|
|
423
|
-
e = i.value;
|
|
424
|
-
break;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
t > -1 && (r = r.slice(t + 1));
|
|
428
|
-
const n = _("Patches").applyPatches_;
|
|
429
|
-
return m(e) ? n(e, r) : this.produce(
|
|
430
|
-
e,
|
|
431
|
-
(i) => n(i, r)
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
function k(e, r) {
|
|
436
|
-
const t = P(e) ? _("MapSet").proxyMap_(e, r) : v(e) ? _("MapSet").proxySet_(e, r) : re(e, r);
|
|
437
|
-
return (r ? r.scope_ : U()).drafts_.push(t), t;
|
|
438
|
-
}
|
|
439
|
-
function ie(e) {
|
|
440
|
-
return m(e) || s(10, e), X(e);
|
|
441
|
-
}
|
|
442
|
-
function X(e) {
|
|
443
|
-
if (!d(e) || D(e))
|
|
444
|
-
return e;
|
|
445
|
-
const r = e[u];
|
|
446
|
-
let t;
|
|
447
|
-
if (r) {
|
|
448
|
-
if (!r.modified_)
|
|
449
|
-
return r.base_;
|
|
450
|
-
r.finalized_ = !0, t = N(e, r.scope_.immer_.useStrictShallowCopy_);
|
|
451
|
-
} else
|
|
452
|
-
t = N(e, !0);
|
|
453
|
-
return b(t, (n, i) => {
|
|
454
|
-
G(t, n, X(i));
|
|
455
|
-
}), r && (r.finalized_ = !1), t;
|
|
456
|
-
}
|
|
457
|
-
var oe = new ne(), ce = oe.produce;
|
|
458
|
-
export {
|
|
459
|
-
ne as Immer,
|
|
460
|
-
ie as current,
|
|
461
|
-
T as freeze,
|
|
462
|
-
R as immerable,
|
|
463
|
-
m as isDraft,
|
|
464
|
-
d as isDraftable,
|
|
465
|
-
W as nothing,
|
|
466
|
-
ce as produce
|
|
467
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var v, g;
|
|
2
|
-
function Y() {
|
|
3
|
-
if (g) return v;
|
|
4
|
-
g = 1;
|
|
5
|
-
var E = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, I = /\n/g, P = /^\s*/, w = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, N = /^:\s*/, O = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, S = /^[;\s]*/, d = /^\s+|\s+$/g, G = `
|
|
6
|
-
`, f = "/", s = "*", t = "", X = "comment", L = "declaration";
|
|
7
|
-
v = function(e, c) {
|
|
8
|
-
if (typeof e != "string")
|
|
9
|
-
throw new TypeError("First argument must be a string");
|
|
10
|
-
if (!e) return [];
|
|
11
|
-
c = c || {};
|
|
12
|
-
var o = 1, i = 1;
|
|
13
|
-
function l(n) {
|
|
14
|
-
var r = n.match(I);
|
|
15
|
-
r && (o += r.length);
|
|
16
|
-
var a = n.lastIndexOf(G);
|
|
17
|
-
i = ~a ? n.length - a : i + n.length;
|
|
18
|
-
}
|
|
19
|
-
function m() {
|
|
20
|
-
var n = { line: o, column: i };
|
|
21
|
-
return function(r) {
|
|
22
|
-
return r.position = new p(n), _(), r;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function p(n) {
|
|
26
|
-
this.start = n, this.end = { line: o, column: i }, this.source = c.source;
|
|
27
|
-
}
|
|
28
|
-
p.prototype.content = e;
|
|
29
|
-
function R(n) {
|
|
30
|
-
var r = new Error(
|
|
31
|
-
c.source + ":" + o + ":" + i + ": " + n
|
|
32
|
-
);
|
|
33
|
-
if (r.reason = n, r.filename = c.source, r.line = o, r.column = i, r.source = e, !c.silent) throw r;
|
|
34
|
-
}
|
|
35
|
-
function u(n) {
|
|
36
|
-
var r = n.exec(e);
|
|
37
|
-
if (r) {
|
|
38
|
-
var a = r[0];
|
|
39
|
-
return l(a), e = e.slice(a.length), r;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function _() {
|
|
43
|
-
u(P);
|
|
44
|
-
}
|
|
45
|
-
function A(n) {
|
|
46
|
-
var r;
|
|
47
|
-
for (n = n || []; r = T(); )
|
|
48
|
-
r !== !1 && n.push(r);
|
|
49
|
-
return n;
|
|
50
|
-
}
|
|
51
|
-
function T() {
|
|
52
|
-
var n = m();
|
|
53
|
-
if (!(f != e.charAt(0) || s != e.charAt(1))) {
|
|
54
|
-
for (var r = 2; t != e.charAt(r) && (s != e.charAt(r) || f != e.charAt(r + 1)); )
|
|
55
|
-
++r;
|
|
56
|
-
if (r += 2, t === e.charAt(r - 1))
|
|
57
|
-
return R("End of comment missing");
|
|
58
|
-
var a = e.slice(2, r - 2);
|
|
59
|
-
return i += 2, l(a), e = e.slice(r), i += 2, n({
|
|
60
|
-
type: X,
|
|
61
|
-
comment: a
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function M() {
|
|
66
|
-
var n = m(), r = u(w);
|
|
67
|
-
if (r) {
|
|
68
|
-
if (T(), !u(N)) return R("property missing ':'");
|
|
69
|
-
var a = u(O), W = n({
|
|
70
|
-
type: L,
|
|
71
|
-
property: h(r[0].replace(E, t)),
|
|
72
|
-
value: a ? h(a[0].replace(E, t)) : t
|
|
73
|
-
});
|
|
74
|
-
return u(S), W;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
function C() {
|
|
78
|
-
var n = [];
|
|
79
|
-
A(n);
|
|
80
|
-
for (var r; r = M(); )
|
|
81
|
-
r !== !1 && (n.push(r), A(n));
|
|
82
|
-
return n;
|
|
83
|
-
}
|
|
84
|
-
return _(), C();
|
|
85
|
-
};
|
|
86
|
-
function h(e) {
|
|
87
|
-
return e ? e.replace(d, t) : t;
|
|
88
|
-
}
|
|
89
|
-
return v;
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
Y as __require
|
|
93
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
function e(t) {
|
|
2
|
-
if (typeof t != "object" || t === null)
|
|
3
|
-
return !1;
|
|
4
|
-
const o = Object.getPrototypeOf(t);
|
|
5
|
-
return (o === null || o === Object.prototype || Object.getPrototypeOf(o) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
e as default
|
|
9
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { forwardRef as i, createElement as o } from "react";
|
|
2
|
-
import b from "./defaultAttributes.js";
|
|
3
|
-
import { mergeClasses as d } from "./shared/src/utils.js";
|
|
4
|
-
/**
|
|
5
|
-
* @license lucide-react v0.487.0 - ISC
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the ISC license.
|
|
8
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
const N = i(
|
|
11
|
-
({
|
|
12
|
-
color: m = "currentColor",
|
|
13
|
-
size: r = 24,
|
|
14
|
-
strokeWidth: e = 2,
|
|
15
|
-
absoluteStrokeWidth: a,
|
|
16
|
-
className: s = "",
|
|
17
|
-
children: t,
|
|
18
|
-
iconNode: u,
|
|
19
|
-
...f
|
|
20
|
-
}, l) => o(
|
|
21
|
-
"svg",
|
|
22
|
-
{
|
|
23
|
-
ref: l,
|
|
24
|
-
...b,
|
|
25
|
-
width: r,
|
|
26
|
-
height: r,
|
|
27
|
-
stroke: m,
|
|
28
|
-
strokeWidth: a ? Number(e) * 24 / Number(r) : e,
|
|
29
|
-
className: d("lucide", s),
|
|
30
|
-
...f
|
|
31
|
-
},
|
|
32
|
-
[
|
|
33
|
-
...u.map(([p, c]) => o(p, c)),
|
|
34
|
-
...Array.isArray(t) ? t : [t]
|
|
35
|
-
]
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
export {
|
|
39
|
-
N as default
|
|
40
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { forwardRef as m, createElement as l } from "react";
|
|
2
|
-
import { mergeClasses as d, toKebabCase as f, toPascalCase as r } from "./shared/src/utils.js";
|
|
3
|
-
import n from "./Icon.js";
|
|
4
|
-
/**
|
|
5
|
-
* @license lucide-react v0.487.0 - ISC
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the ISC license.
|
|
8
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
const C = (e, t) => {
|
|
11
|
-
const o = m(
|
|
12
|
-
({ className: a, ...s }, c) => l(n, {
|
|
13
|
-
ref: c,
|
|
14
|
-
iconNode: t,
|
|
15
|
-
className: d(
|
|
16
|
-
`lucide-${f(r(e))}`,
|
|
17
|
-
`lucide-${e}`,
|
|
18
|
-
a
|
|
19
|
-
),
|
|
20
|
-
...s
|
|
21
|
-
})
|
|
22
|
-
);
|
|
23
|
-
return o.displayName = r(e), o;
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
C as default
|
|
27
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license lucide-react v0.487.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
var t = {
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: 24,
|
|
10
|
-
height: 24,
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: 2,
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
t as default
|
|
20
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import c from "../createLucideIcon.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.487.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const e = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], t = c("check", e);
|
|
9
|
-
export {
|
|
10
|
-
e as __iconNode,
|
|
11
|
-
t as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import o from "../createLucideIcon.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.487.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], c = o("chevron-down", e);
|
|
9
|
-
export {
|
|
10
|
-
e as __iconNode,
|
|
11
|
-
c as default
|
|
12
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import e from "../createLucideIcon.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.487.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const o = [
|
|
9
|
-
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
10
|
-
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
11
|
-
], c = e("x", o);
|
|
12
|
-
export {
|
|
13
|
-
o as __iconNode,
|
|
14
|
-
c as default
|
|
15
|
-
};
|