hasting-swatchcart-module 0.0.2 → 0.0.3

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.
Files changed (340) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
  6. package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
  7. package/dist/_virtual/utilities.js +4 -0
  8. package/dist/_virtual/with-selector.js +5 -0
  9. package/dist/_virtual/with-selector2.js +4 -0
  10. package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +1 -0
  11. package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +1 -0
  12. package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
  13. package/dist/components/SwatchesModule.js +22 -38896
  14. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  15. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  16. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  17. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  18. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  19. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  20. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  21. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +251 -0
  22. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  23. package/dist/node_modules/@radix-ui/react-context/dist/index.js +68 -0
  24. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +256 -0
  25. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  26. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  27. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  28. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  29. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +231 -0
  30. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  31. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  32. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  33. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  34. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  35. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  36. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  37. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  38. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  39. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
  40. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  41. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +877 -0
  42. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +35 -0
  43. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +497 -0
  44. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  45. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +62 -0
  46. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  47. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +106 -0
  48. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  49. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  50. package/dist/node_modules/bail/index.js +7 -0
  51. package/dist/node_modules/clsx/dist/clsx.js +17 -0
  52. package/dist/node_modules/comma-separated-tokens/index.js +20 -0
  53. package/dist/node_modules/decode-named-character-reference/index.dom.js +14 -0
  54. package/dist/node_modules/devlop/lib/default.js +8 -0
  55. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  56. package/dist/node_modules/extend/index.js +43 -0
  57. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  58. package/dist/node_modules/hast-util-from-parse5/lib/index.js +145 -0
  59. package/dist/node_modules/hast-util-parse-selector/lib/index.js +20 -0
  60. package/dist/node_modules/hast-util-raw/lib/index.js +217 -0
  61. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  62. package/dist/node_modules/hast-util-to-parse5/lib/index.js +118 -0
  63. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +12 -0
  64. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +61 -0
  65. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +33 -0
  66. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +368 -0
  67. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +6 -0
  68. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +566 -0
  69. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  70. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  71. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +22 -0
  72. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +27 -0
  73. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +23 -0
  74. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +11 -0
  75. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +17 -0
  76. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +14 -0
  77. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +19 -0
  78. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +11 -0
  79. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +11 -0
  80. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  81. package/dist/node_modules/hastscript/lib/create-h.js +112 -0
  82. package/dist/node_modules/hastscript/lib/index.js +8 -0
  83. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
  84. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  85. package/dist/node_modules/html-void-elements/index.js +25 -0
  86. package/dist/node_modules/immer/dist/immer.js +467 -0
  87. package/dist/node_modules/inline-style-parser/index.js +93 -0
  88. package/dist/node_modules/is-plain-obj/index.js +9 -0
  89. package/dist/node_modules/lucide-react/dist/esm/Icon.js +40 -0
  90. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +27 -0
  91. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
  92. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +12 -0
  93. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +12 -0
  94. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +15 -0
  95. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +19 -0
  96. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +581 -0
  97. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  98. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  99. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  100. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  101. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  102. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  103. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  104. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  105. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  106. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  107. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  108. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  109. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  110. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  111. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  112. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  113. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  114. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  115. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  116. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  117. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  118. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  119. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  120. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  121. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  122. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  123. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  124. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  125. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  126. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  127. package/dist/node_modules/micromark/lib/create-tokenizer.js +223 -0
  128. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  129. package/dist/node_modules/micromark/lib/initialize/document.js +126 -0
  130. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  131. package/dist/node_modules/micromark/lib/initialize/text.js +95 -0
  132. package/dist/node_modules/micromark/lib/parse.js +32 -0
  133. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  134. package/dist/node_modules/micromark/lib/preprocess.js +39 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +83 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +94 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +43 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  144. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  145. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  146. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  147. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +46 -0
  148. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +144 -0
  149. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  150. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +152 -0
  151. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +22 -0
  152. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +19 -0
  153. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  154. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  155. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +57 -0
  156. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  157. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  158. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  159. package/dist/node_modules/micromark-factory-space/index.js +15 -0
  160. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  161. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  162. package/dist/node_modules/micromark-util-character/index.js +39 -0
  163. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  164. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  165. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  166. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  167. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  168. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  169. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  170. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  171. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  172. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  173. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  174. package/dist/node_modules/parse5/dist/common/doctype.js +98 -0
  175. package/dist/node_modules/parse5/dist/common/error-codes.js +7 -0
  176. package/dist/node_modules/parse5/dist/common/foreign-content.js +210 -0
  177. package/dist/node_modules/parse5/dist/common/html.js +250 -0
  178. package/dist/node_modules/parse5/dist/common/token.js +14 -0
  179. package/dist/node_modules/parse5/dist/common/unicode.js +73 -0
  180. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +84 -0
  181. package/dist/node_modules/parse5/dist/parser/index.js +2271 -0
  182. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +240 -0
  183. package/dist/node_modules/parse5/dist/serializer/index.js +2 -0
  184. package/dist/node_modules/parse5/dist/tokenizer/index.js +1940 -0
  185. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +88 -0
  186. package/dist/node_modules/parse5/dist/tree-adapters/default.js +162 -0
  187. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +38 -0
  188. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +245 -0
  189. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
  190. package/dist/node_modules/property-information/index.js +12 -0
  191. package/dist/node_modules/property-information/lib/aria.js +61 -0
  192. package/dist/node_modules/property-information/lib/find.js +33 -0
  193. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  194. package/dist/node_modules/property-information/lib/html.js +368 -0
  195. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  196. package/dist/node_modules/property-information/lib/svg.js +566 -0
  197. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  198. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  199. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  200. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  201. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  202. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  203. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  204. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  205. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  206. package/dist/node_modules/property-information/lib/xml.js +11 -0
  207. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  208. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  209. package/dist/node_modules/react-redux/dist/react-redux.js +135 -0
  210. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  211. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  212. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  213. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  214. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  215. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  216. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  217. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  218. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  219. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  220. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  221. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  222. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  223. package/dist/node_modules/redux/dist/redux.js +258 -0
  224. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
  225. package/dist/node_modules/rehype-raw/lib/index.js +12 -0
  226. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  227. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  228. package/dist/node_modules/reselect/dist/reselect.js +244 -0
  229. package/dist/node_modules/space-separated-tokens/index.js +11 -0
  230. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  231. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  232. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  233. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2731 -0
  234. package/dist/node_modules/trim-lines/index.js +28 -0
  235. package/dist/node_modules/trough/lib/index.js +60 -0
  236. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  237. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  238. package/dist/node_modules/unified/lib/index.js +529 -0
  239. package/dist/node_modules/unist-util-is/lib/index.js +84 -0
  240. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  241. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  242. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  243. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  244. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  245. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  246. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  247. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  248. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  249. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  250. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
  251. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
  252. package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
  253. package/dist/node_modules/vfile/lib/index.js +406 -0
  254. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  255. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  256. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  257. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  258. package/dist/node_modules/vfile-location/lib/index.js +42 -0
  259. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  260. package/dist/node_modules/web-namespaces/index.js +11 -0
  261. package/dist/node_modules/zwitch/index.js +18 -0
  262. package/dist/src/app/assets/images/product_thumb.png.js +4 -0
  263. package/dist/src/app/assets/svg/ArrowIconSVG.js +25 -0
  264. package/dist/src/app/assets/svg/CheckMarkIconSVG.js +25 -0
  265. package/dist/src/app/assets/svg/CloseIconSVG.js +25 -0
  266. package/dist/src/app/assets/svg/MinusIconSVG.js +24 -0
  267. package/dist/src/app/assets/svg/PlusIconSVG.js +24 -0
  268. package/dist/src/app/assets/svg/SearchIconSVG.js +37 -0
  269. package/dist/src/app/assets/svg/TrashIconSVG.js +24 -0
  270. package/dist/src/app/store/rootReducer.js +12 -0
  271. package/dist/src/app/store/store.js +14 -0
  272. package/dist/src/features/Cart/lib/CartCervices.js +8 -0
  273. package/dist/src/features/Cart/model/cartSlice.js +58 -0
  274. package/dist/src/features/Cart/model/selectors.js +18 -0
  275. package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +53 -0
  276. package/dist/src/features/Cart/ui/CartList/CartList.js +29 -0
  277. package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +41 -0
  278. package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +23 -0
  279. package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +38 -0
  280. package/dist/src/features/Cart/ui/Counter/Counter.js +46 -0
  281. package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +102 -0
  282. package/dist/src/features/DataAdapter/utils/types.js +8 -0
  283. package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +34 -0
  284. package/dist/src/features/MultiProduct/model/API/api.js +18 -0
  285. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +83 -0
  286. package/dist/src/features/MultiProduct/model/selectors.js +7 -0
  287. package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +21 -0
  288. package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +28 -0
  289. package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +27 -0
  290. package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +60 -0
  291. package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +71 -0
  292. package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +19 -0
  293. package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +138 -0
  294. package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +51 -0
  295. package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +55 -0
  296. package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +46 -0
  297. package/dist/src/features/MultiProduct/utils/constants.js +16 -0
  298. package/dist/src/features/MultiProduct/utils/randomList.js +41 -0
  299. package/dist/src/features/swatches/lib/AttributeHelper.js +21 -0
  300. package/dist/src/features/swatches/lib/SwatchesServices.js +54 -0
  301. package/dist/src/features/swatches/model/selectors.js +12 -0
  302. package/dist/src/features/swatches/model/swatchesSlice.js +108 -0
  303. package/dist/src/features/swatches/model/thunks.js +22 -0
  304. package/dist/src/features/swatches/model/types.js +6 -0
  305. package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +45 -0
  306. package/dist/src/features/swatches/ui/Filters/LooksFilter.js +45 -0
  307. package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +47 -0
  308. package/dist/src/features/swatches/ui/Filters/index.js +12 -0
  309. package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +50 -0
  310. package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +45 -0
  311. package/dist/src/features/swatches/ui/MaterialList/index.js +39 -0
  312. package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +51 -0
  313. package/dist/src/features/swatches/ui/ProductElement/index.js +65 -0
  314. package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +62 -0
  315. package/dist/src/features/swatches/ui/Swatches.js +51 -0
  316. package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +67 -0
  317. package/dist/src/features/swatches/utils/constants.js +8 -0
  318. package/dist/src/shared/constants/props.js +13337 -0
  319. package/dist/src/shared/constants/selectedMaterials.js +4 -0
  320. package/dist/src/shared/types/activeTab.js +7 -0
  321. package/dist/src/shared/ui/Checkbox/Checkbox.js +31 -0
  322. package/dist/src/shared/ui/CustomButton/CustomButton.js +16 -0
  323. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +59 -0
  324. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +13 -0
  325. package/dist/src/shared/ui/Dialog/Dialog.js +81 -0
  326. package/dist/src/shared/ui/Label/Label.js +27 -0
  327. package/dist/src/shared/ui/Markdown/MDWithAccordion.js +36 -0
  328. package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +9 -0
  329. package/dist/src/shared/ui/MaterialItem/MaterialItem.js +36 -0
  330. package/dist/src/shared/ui/MultiSelect/MultiSelect.js +150 -0
  331. package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +35 -0
  332. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +37 -0
  333. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +4 -0
  334. package/dist/src/shared/ui/Slider/Slider.js +117 -0
  335. package/dist/src/shared/utils/cn.js +8 -0
  336. package/dist/src/shared/utils/uniqueList.js +4 -0
  337. package/package.json +12 -2
  338. package/dist/assets/SwatchesModule.css +0 -1
  339. /package/dist/{lib/components → components}/SwatchesModule.d.ts +0 -0
  340. /package/dist/{lib/main.d.ts → main.d.ts} +0 -0
@@ -0,0 +1,877 @@
1
+ import { isAction as P, isPlainObject as q, combineReducers as Z, applyMiddleware as ee, compose as A, createStore as te } from "../../../redux/dist/redux.js";
2
+ import { __DO_NOT_USE__ActionTypes as Ue } from "../../../redux/dist/redux.js";
3
+ import { produce as B, isDraftable as W, isDraft as re } from "../../../immer/dist/immer.js";
4
+ import { current as Ge, freeze as Xe } from "../../../immer/dist/immer.js";
5
+ import { thunk as ne, withExtraArgument as oe } from "../../../redux-thunk/dist/redux-thunk.js";
6
+ var ie = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
7
+ if (arguments.length !== 0)
8
+ return typeof arguments[0] == "object" ? A : A.apply(null, arguments);
9
+ }, F = (e) => e && typeof e.match == "function";
10
+ function k(e, t) {
11
+ function n(...r) {
12
+ if (t) {
13
+ let s = t(...r);
14
+ if (!s)
15
+ throw new Error(process.env.NODE_ENV === "production" ? w(0) : "prepareAction did not return an object");
16
+ return {
17
+ type: e,
18
+ payload: s.payload,
19
+ ..."meta" in s && {
20
+ meta: s.meta
21
+ },
22
+ ..."error" in s && {
23
+ error: s.error
24
+ }
25
+ };
26
+ }
27
+ return {
28
+ type: e,
29
+ payload: r[0]
30
+ };
31
+ }
32
+ return n.toString = () => `${e}`, n.type = e, n.match = (r) => P(r) && r.type === e, n;
33
+ }
34
+ function ae(e) {
35
+ return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
36
+ F(e);
37
+ }
38
+ function se(e) {
39
+ const t = e ? `${e}`.split("/") : [], n = t[t.length - 1] || "actionCreator";
40
+ return `Detected an action creator with type "${e || "unknown"}" being dispatched.
41
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`;
42
+ }
43
+ function ce(e = {}) {
44
+ if (process.env.NODE_ENV === "production")
45
+ return () => (n) => (r) => n(r);
46
+ const {
47
+ isActionCreator: t = ae
48
+ } = e;
49
+ return () => (n) => (r) => (t(r) && console.warn(se(r.type)), n(r));
50
+ }
51
+ function U(e, t) {
52
+ let n = 0;
53
+ return {
54
+ measureTime(r) {
55
+ const s = Date.now();
56
+ try {
57
+ return r();
58
+ } finally {
59
+ const c = Date.now();
60
+ n += c - s;
61
+ }
62
+ },
63
+ warnIfExceeded() {
64
+ n > e && console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
65
+ If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
66
+ It is disabled in production builds, so you don't need to worry about that.`);
67
+ }
68
+ };
69
+ }
70
+ var L = class C extends Array {
71
+ constructor(...t) {
72
+ super(...t), Object.setPrototypeOf(this, C.prototype);
73
+ }
74
+ static get [Symbol.species]() {
75
+ return C;
76
+ }
77
+ concat(...t) {
78
+ return super.concat.apply(this, t);
79
+ }
80
+ prepend(...t) {
81
+ return t.length === 1 && Array.isArray(t[0]) ? new C(...t[0].concat(this)) : new C(...t.concat(this));
82
+ }
83
+ };
84
+ function x(e) {
85
+ return W(e) ? B(e, () => {
86
+ }) : e;
87
+ }
88
+ function V(e, t, n) {
89
+ return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
90
+ }
91
+ function ue(e) {
92
+ return typeof e != "object" || e == null || Object.isFrozen(e);
93
+ }
94
+ function de(e, t, n) {
95
+ const r = G(e, t, n);
96
+ return {
97
+ detectMutations() {
98
+ return X(e, t, r, n);
99
+ }
100
+ };
101
+ }
102
+ function G(e, t = [], n, r = "", s = /* @__PURE__ */ new Set()) {
103
+ const c = {
104
+ value: n
105
+ };
106
+ if (!e(n) && !s.has(n)) {
107
+ s.add(n), c.children = {};
108
+ for (const i in n) {
109
+ const u = r ? r + "." + i : i;
110
+ t.length && t.indexOf(u) !== -1 || (c.children[i] = G(e, t, n[i], u));
111
+ }
112
+ }
113
+ return c;
114
+ }
115
+ function X(e, t = [], n, r, s = !1, c = "") {
116
+ const i = n ? n.value : void 0, u = i === r;
117
+ if (s && !u && !Number.isNaN(r))
118
+ return {
119
+ wasMutated: !0,
120
+ path: c
121
+ };
122
+ if (e(i) || e(r))
123
+ return {
124
+ wasMutated: !1
125
+ };
126
+ const a = {};
127
+ for (let o in n.children)
128
+ a[o] = !0;
129
+ for (let o in r)
130
+ a[o] = !0;
131
+ const d = t.length > 0;
132
+ for (let o in a) {
133
+ const l = c ? c + "." + o : o;
134
+ if (d && t.some((m) => m instanceof RegExp ? m.test(l) : l === m))
135
+ continue;
136
+ const p = X(e, t, n.children[o], r[o], u, l);
137
+ if (p.wasMutated)
138
+ return p;
139
+ }
140
+ return {
141
+ wasMutated: !1
142
+ };
143
+ }
144
+ function le(e = {}) {
145
+ if (process.env.NODE_ENV === "production")
146
+ return () => (t) => (n) => t(n);
147
+ {
148
+ let t = function(u, a, d, o) {
149
+ return JSON.stringify(u, n(a, o), d);
150
+ }, n = function(u, a) {
151
+ let d = [], o = [];
152
+ return a || (a = function(l, p) {
153
+ return d[0] === p ? "[Circular ~]" : "[Circular ~." + o.slice(0, d.indexOf(p)).join(".") + "]";
154
+ }), function(l, p) {
155
+ if (d.length > 0) {
156
+ var f = d.indexOf(this);
157
+ ~f ? d.splice(f + 1) : d.push(this), ~f ? o.splice(f, 1 / 0, l) : o.push(l), ~d.indexOf(p) && (p = a.call(this, l, p));
158
+ } else d.push(p);
159
+ return u == null ? p : u.call(this, l, p);
160
+ };
161
+ }, {
162
+ isImmutable: r = ue,
163
+ ignoredPaths: s,
164
+ warnAfter: c = 32
165
+ } = e;
166
+ const i = de.bind(null, r, s);
167
+ return ({
168
+ getState: u
169
+ }) => {
170
+ let a = u(), d = i(a), o;
171
+ return (l) => (p) => {
172
+ const f = U(c, "ImmutableStateInvariantMiddleware");
173
+ f.measureTime(() => {
174
+ if (a = u(), o = d.detectMutations(), d = i(a), o.wasMutated)
175
+ throw new Error(process.env.NODE_ENV === "production" ? w(19) : `A state mutation was detected between dispatches, in the path '${o.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
176
+ });
177
+ const m = l(p);
178
+ return f.measureTime(() => {
179
+ if (a = u(), o = d.detectMutations(), d = i(a), o.wasMutated)
180
+ throw new Error(process.env.NODE_ENV === "production" ? w(20) : `A state mutation was detected inside a dispatch, in the path: ${o.path || ""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
181
+ }), f.warnIfExceeded(), m;
182
+ };
183
+ };
184
+ }
185
+ }
186
+ function H(e) {
187
+ const t = typeof e;
188
+ return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || q(e);
189
+ }
190
+ function j(e, t = "", n = H, r, s = [], c) {
191
+ let i;
192
+ if (!n(e))
193
+ return {
194
+ keyPath: t || "<root>",
195
+ value: e
196
+ };
197
+ if (typeof e != "object" || e === null || c?.has(e)) return !1;
198
+ const u = r != null ? r(e) : Object.entries(e), a = s.length > 0;
199
+ for (const [d, o] of u) {
200
+ const l = t ? t + "." + d : d;
201
+ if (!(a && s.some((f) => f instanceof RegExp ? f.test(l) : l === f))) {
202
+ if (!n(o))
203
+ return {
204
+ keyPath: l,
205
+ value: o
206
+ };
207
+ if (typeof o == "object" && (i = j(o, l, n, r, s, c), i))
208
+ return i;
209
+ }
210
+ }
211
+ return c && Q(e) && c.add(e), !1;
212
+ }
213
+ function Q(e) {
214
+ if (!Object.isFrozen(e)) return !1;
215
+ for (const t of Object.values(e))
216
+ if (!(typeof t != "object" || t === null) && !Q(t))
217
+ return !1;
218
+ return !0;
219
+ }
220
+ function fe(e = {}) {
221
+ if (process.env.NODE_ENV === "production")
222
+ return () => (t) => (n) => t(n);
223
+ {
224
+ const {
225
+ isSerializable: t = H,
226
+ getEntries: n,
227
+ ignoredActions: r = [],
228
+ ignoredActionPaths: s = ["meta.arg", "meta.baseQueryMeta"],
229
+ ignoredPaths: c = [],
230
+ warnAfter: i = 32,
231
+ ignoreState: u = !1,
232
+ ignoreActions: a = !1,
233
+ disableCache: d = !1
234
+ } = e, o = !d && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
235
+ return (l) => (p) => (f) => {
236
+ if (!P(f))
237
+ return p(f);
238
+ const m = p(f), g = U(i, "SerializableStateInvariantMiddleware");
239
+ return !a && !(r.length && r.indexOf(f.type) !== -1) && g.measureTime(() => {
240
+ const D = j(f, "", t, n, s, o);
241
+ if (D) {
242
+ const {
243
+ keyPath: v,
244
+ value: _
245
+ } = D;
246
+ console.error(`A non-serializable value was detected in an action, in the path: \`${v}\`. Value:`, _, `
247
+ Take a look at the logic that dispatched this action: `, f, `
248
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
249
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
250
+ }
251
+ }), u || (g.measureTime(() => {
252
+ const D = l.getState(), v = j(D, "", t, n, c, o);
253
+ if (v) {
254
+ const {
255
+ keyPath: _,
256
+ value: h
257
+ } = v;
258
+ console.error(`A non-serializable value was detected in the state, in the path: \`${_}\`. Value:`, h, `
259
+ Take a look at the reducer(s) handling this action type: ${f.type}.
260
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
261
+ }
262
+ }), g.warnIfExceeded()), m;
263
+ };
264
+ }
265
+ }
266
+ function M(e) {
267
+ return typeof e == "boolean";
268
+ }
269
+ var pe = () => function(t) {
270
+ const {
271
+ thunk: n = !0,
272
+ immutableCheck: r = !0,
273
+ serializableCheck: s = !0,
274
+ actionCreatorCheck: c = !0
275
+ } = t ?? {};
276
+ let i = new L();
277
+ if (n && (M(n) ? i.push(ne) : i.push(oe(n.extraArgument))), process.env.NODE_ENV !== "production") {
278
+ if (r) {
279
+ let u = {};
280
+ M(r) || (u = r), i.unshift(le(u));
281
+ }
282
+ if (s) {
283
+ let u = {};
284
+ M(s) || (u = s), i.push(fe(u));
285
+ }
286
+ if (c) {
287
+ let u = {};
288
+ M(c) || (u = c), i.unshift(ce(u));
289
+ }
290
+ }
291
+ return i;
292
+ }, he = "RTK_autoBatch", I = (e) => (t) => {
293
+ setTimeout(t, e);
294
+ }, we = (e = {
295
+ type: "raf"
296
+ }) => (t) => (...n) => {
297
+ const r = t(...n);
298
+ let s = !0, c = !1, i = !1;
299
+ const u = /* @__PURE__ */ new Set(), a = e.type === "tick" ? queueMicrotask : e.type === "raf" ? (
300
+ // requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.
301
+ typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : I(10)
302
+ ) : e.type === "callback" ? e.queueNotification : I(e.timeout), d = () => {
303
+ i = !1, c && (c = !1, u.forEach((o) => o()));
304
+ };
305
+ return Object.assign({}, r, {
306
+ // Override the base `store.subscribe` method to keep original listeners
307
+ // from running if we're delaying notifications
308
+ subscribe(o) {
309
+ const l = () => s && o(), p = r.subscribe(l);
310
+ return u.add(o), () => {
311
+ p(), u.delete(o);
312
+ };
313
+ },
314
+ // Override the base `store.dispatch` method so that we can check actions
315
+ // for the `shouldAutoBatch` flag and determine if batching is active
316
+ dispatch(o) {
317
+ try {
318
+ return s = !o?.meta?.[he], c = !s, c && (i || (i = !0, a(d))), r.dispatch(o);
319
+ } finally {
320
+ s = !0;
321
+ }
322
+ }
323
+ });
324
+ }, Ee = (e) => function(n) {
325
+ const {
326
+ autoBatch: r = !0
327
+ } = n ?? {};
328
+ let s = new L(e);
329
+ return r && s.push(we(typeof r == "object" ? r : void 0)), s;
330
+ };
331
+ function Pe(e) {
332
+ const t = pe(), {
333
+ reducer: n = void 0,
334
+ middleware: r,
335
+ devTools: s = !0,
336
+ duplicateMiddlewareCheck: c = !0,
337
+ preloadedState: i = void 0,
338
+ enhancers: u = void 0
339
+ } = e || {};
340
+ let a;
341
+ if (typeof n == "function")
342
+ a = n;
343
+ else if (q(n))
344
+ a = Z(n);
345
+ else
346
+ throw new Error(process.env.NODE_ENV === "production" ? w(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
347
+ if (process.env.NODE_ENV !== "production" && r && typeof r != "function")
348
+ throw new Error(process.env.NODE_ENV === "production" ? w(2) : "`middleware` field must be a callback");
349
+ let d;
350
+ if (typeof r == "function") {
351
+ if (d = r(t), process.env.NODE_ENV !== "production" && !Array.isArray(d))
352
+ throw new Error(process.env.NODE_ENV === "production" ? w(3) : "when using a middleware builder function, an array of middleware must be returned");
353
+ } else
354
+ d = t();
355
+ if (process.env.NODE_ENV !== "production" && d.some((g) => typeof g != "function"))
356
+ throw new Error(process.env.NODE_ENV === "production" ? w(4) : "each middleware provided to configureStore must be a function");
357
+ if (process.env.NODE_ENV !== "production" && c) {
358
+ let g = /* @__PURE__ */ new Set();
359
+ d.forEach((D) => {
360
+ if (g.has(D))
361
+ throw new Error(process.env.NODE_ENV === "production" ? w(42) : "Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");
362
+ g.add(D);
363
+ });
364
+ }
365
+ let o = A;
366
+ s && (o = ie({
367
+ // Enable capture of stack traces for dispatched Redux actions
368
+ trace: process.env.NODE_ENV !== "production",
369
+ ...typeof s == "object" && s
370
+ }));
371
+ const l = ee(...d), p = Ee(l);
372
+ if (process.env.NODE_ENV !== "production" && u && typeof u != "function")
373
+ throw new Error(process.env.NODE_ENV === "production" ? w(5) : "`enhancers` field must be a callback");
374
+ let f = typeof u == "function" ? u(p) : p();
375
+ if (process.env.NODE_ENV !== "production" && !Array.isArray(f))
376
+ throw new Error(process.env.NODE_ENV === "production" ? w(6) : "`enhancers` callback must return an array");
377
+ if (process.env.NODE_ENV !== "production" && f.some((g) => typeof g != "function"))
378
+ throw new Error(process.env.NODE_ENV === "production" ? w(7) : "each enhancer provided to configureStore must be a function");
379
+ process.env.NODE_ENV !== "production" && d.length && !f.includes(l) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
380
+ const m = o(...f);
381
+ return te(a, i, m);
382
+ }
383
+ function Y(e) {
384
+ const t = {}, n = [];
385
+ let r;
386
+ const s = {
387
+ addCase(c, i) {
388
+ if (process.env.NODE_ENV !== "production") {
389
+ if (n.length > 0)
390
+ throw new Error(process.env.NODE_ENV === "production" ? w(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
391
+ if (r)
392
+ throw new Error(process.env.NODE_ENV === "production" ? w(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
393
+ }
394
+ const u = typeof c == "string" ? c : c.type;
395
+ if (!u)
396
+ throw new Error(process.env.NODE_ENV === "production" ? w(28) : "`builder.addCase` cannot be called with an empty action type");
397
+ if (u in t)
398
+ throw new Error(process.env.NODE_ENV === "production" ? w(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${u}'`);
399
+ return t[u] = i, s;
400
+ },
401
+ addAsyncThunk(c, i) {
402
+ if (process.env.NODE_ENV !== "production" && r)
403
+ throw new Error(process.env.NODE_ENV === "production" ? w(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
404
+ return i.pending && (t[c.pending.type] = i.pending), i.rejected && (t[c.rejected.type] = i.rejected), i.fulfilled && (t[c.fulfilled.type] = i.fulfilled), i.settled && n.push({
405
+ matcher: c.settled,
406
+ reducer: i.settled
407
+ }), s;
408
+ },
409
+ addMatcher(c, i) {
410
+ if (process.env.NODE_ENV !== "production" && r)
411
+ throw new Error(process.env.NODE_ENV === "production" ? w(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
412
+ return n.push({
413
+ matcher: c,
414
+ reducer: i
415
+ }), s;
416
+ },
417
+ addDefaultCase(c) {
418
+ if (process.env.NODE_ENV !== "production" && r)
419
+ throw new Error(process.env.NODE_ENV === "production" ? w(31) : "`builder.addDefaultCase` can only be called once");
420
+ return r = c, s;
421
+ }
422
+ };
423
+ return e(s), [t, n, r];
424
+ }
425
+ function me(e) {
426
+ return typeof e == "function";
427
+ }
428
+ function ye(e, t) {
429
+ if (process.env.NODE_ENV !== "production" && typeof t == "object")
430
+ throw new Error(process.env.NODE_ENV === "production" ? w(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
431
+ let [n, r, s] = Y(t), c;
432
+ if (me(e))
433
+ c = () => x(e());
434
+ else {
435
+ const u = x(e);
436
+ c = () => u;
437
+ }
438
+ function i(u = c(), a) {
439
+ let d = [n[a.type], ...r.filter(({
440
+ matcher: o
441
+ }) => o(a)).map(({
442
+ reducer: o
443
+ }) => o)];
444
+ return d.filter((o) => !!o).length === 0 && (d = [s]), d.reduce((o, l) => {
445
+ if (l)
446
+ if (re(o)) {
447
+ const f = l(o, a);
448
+ return f === void 0 ? o : f;
449
+ } else {
450
+ if (W(o))
451
+ return B(o, (p) => l(p, a));
452
+ {
453
+ const p = l(o, a);
454
+ if (p === void 0) {
455
+ if (o === null)
456
+ return o;
457
+ throw Error("A case reducer on a non-draftable value must not return undefined");
458
+ }
459
+ return p;
460
+ }
461
+ }
462
+ return o;
463
+ }, u);
464
+ }
465
+ return i.getInitialState = c, i;
466
+ }
467
+ var be = (e, t) => F(e) ? e.match(t) : e(t);
468
+ function Ne(...e) {
469
+ return (t) => e.some((n) => be(n, t));
470
+ }
471
+ var ge = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", De = (e = 21) => {
472
+ let t = "", n = e;
473
+ for (; n--; )
474
+ t += ge[Math.random() * 64 | 0];
475
+ return t;
476
+ }, ve = ["name", "message", "stack", "code"], T = class {
477
+ constructor(e, t) {
478
+ this.payload = e, this.meta = t;
479
+ }
480
+ /*
481
+ type-only property to distinguish between RejectWithValue and FulfillWithMeta
482
+ does not exist at runtime
483
+ */
484
+ _type;
485
+ }, z = class {
486
+ constructor(e, t) {
487
+ this.payload = e, this.meta = t;
488
+ }
489
+ /*
490
+ type-only property to distinguish between RejectWithValue and FulfillWithMeta
491
+ does not exist at runtime
492
+ */
493
+ _type;
494
+ }, Oe = (e) => {
495
+ if (typeof e == "object" && e !== null) {
496
+ const t = {};
497
+ for (const n of ve)
498
+ typeof e[n] == "string" && (t[n] = e[n]);
499
+ return t;
500
+ }
501
+ return {
502
+ message: String(e)
503
+ };
504
+ }, $ = "External signal was aborted", qe = /* @__PURE__ */ (() => {
505
+ function e(t, n, r) {
506
+ const s = k(t + "/fulfilled", (a, d, o, l) => ({
507
+ payload: a,
508
+ meta: {
509
+ ...l || {},
510
+ arg: o,
511
+ requestId: d,
512
+ requestStatus: "fulfilled"
513
+ }
514
+ })), c = k(t + "/pending", (a, d, o) => ({
515
+ payload: void 0,
516
+ meta: {
517
+ ...o || {},
518
+ arg: d,
519
+ requestId: a,
520
+ requestStatus: "pending"
521
+ }
522
+ })), i = k(t + "/rejected", (a, d, o, l, p) => ({
523
+ payload: l,
524
+ error: (r && r.serializeError || Oe)(a || "Rejected"),
525
+ meta: {
526
+ ...p || {},
527
+ arg: o,
528
+ requestId: d,
529
+ rejectedWithValue: !!l,
530
+ requestStatus: "rejected",
531
+ aborted: a?.name === "AbortError",
532
+ condition: a?.name === "ConditionError"
533
+ }
534
+ }));
535
+ function u(a, {
536
+ signal: d
537
+ } = {}) {
538
+ return (o, l, p) => {
539
+ const f = r?.idGenerator ? r.idGenerator(a) : De(), m = new AbortController();
540
+ let g, D;
541
+ function v(h) {
542
+ D = h, m.abort();
543
+ }
544
+ d && (d.aborted ? v($) : d.addEventListener("abort", () => v($), {
545
+ once: !0
546
+ }));
547
+ const _ = (async function() {
548
+ let h;
549
+ try {
550
+ let E = r?.condition?.(a, {
551
+ getState: l,
552
+ extra: p
553
+ });
554
+ if (Ce(E) && (E = await E), E === !1 || m.signal.aborted)
555
+ throw {
556
+ name: "ConditionError",
557
+ message: "Aborted due to condition callback returning false."
558
+ };
559
+ const O = new Promise((b, N) => {
560
+ g = () => {
561
+ N({
562
+ name: "AbortError",
563
+ message: D || "Aborted"
564
+ });
565
+ }, m.signal.addEventListener("abort", g);
566
+ });
567
+ o(c(f, a, r?.getPendingMeta?.({
568
+ requestId: f,
569
+ arg: a
570
+ }, {
571
+ getState: l,
572
+ extra: p
573
+ }))), h = await Promise.race([O, Promise.resolve(n(a, {
574
+ dispatch: o,
575
+ getState: l,
576
+ extra: p,
577
+ requestId: f,
578
+ signal: m.signal,
579
+ abort: v,
580
+ rejectWithValue: (b, N) => new T(b, N),
581
+ fulfillWithValue: (b, N) => new z(b, N)
582
+ })).then((b) => {
583
+ if (b instanceof T)
584
+ throw b;
585
+ return b instanceof z ? s(b.payload, f, a, b.meta) : s(b, f, a);
586
+ })]);
587
+ } catch (E) {
588
+ h = E instanceof T ? i(null, f, a, E.payload, E.meta) : i(E, f, a);
589
+ } finally {
590
+ g && m.signal.removeEventListener("abort", g);
591
+ }
592
+ return r && !r.dispatchConditionRejection && i.match(h) && h.meta.condition || o(h), h;
593
+ })();
594
+ return Object.assign(_, {
595
+ abort: v,
596
+ requestId: f,
597
+ arg: a,
598
+ unwrap() {
599
+ return _.then(_e);
600
+ }
601
+ });
602
+ };
603
+ }
604
+ return Object.assign(u, {
605
+ pending: c,
606
+ rejected: i,
607
+ fulfilled: s,
608
+ settled: Ne(i, s),
609
+ typePrefix: t
610
+ });
611
+ }
612
+ return e.withTypes = () => e, e;
613
+ })();
614
+ function _e(e) {
615
+ if (e.meta && e.meta.rejectedWithValue)
616
+ throw e.payload;
617
+ if (e.error)
618
+ throw e.error;
619
+ return e.payload;
620
+ }
621
+ function Ce(e) {
622
+ return e !== null && typeof e == "object" && typeof e.then == "function";
623
+ }
624
+ var ke = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
625
+ function Ve(e, t) {
626
+ return `${e}/${t}`;
627
+ }
628
+ function Me({
629
+ creators: e
630
+ } = {}) {
631
+ const t = e?.asyncThunk?.[ke];
632
+ return function(r) {
633
+ const {
634
+ name: s,
635
+ reducerPath: c = s
636
+ } = r;
637
+ if (!s)
638
+ throw new Error(process.env.NODE_ENV === "production" ? w(11) : "`name` is a required option for createSlice");
639
+ typeof process < "u" && process.env.NODE_ENV === "development" && r.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
640
+ const i = (typeof r.reducers == "function" ? r.reducers(Te()) : r.reducers) || {}, u = Object.keys(i), a = {
641
+ sliceCaseReducersByName: {},
642
+ sliceCaseReducersByType: {},
643
+ actionCreators: {},
644
+ sliceMatchers: []
645
+ }, d = {
646
+ addCase(h, y) {
647
+ const E = typeof h == "string" ? h : h.type;
648
+ if (!E)
649
+ throw new Error(process.env.NODE_ENV === "production" ? w(12) : "`context.addCase` cannot be called with an empty action type");
650
+ if (E in a.sliceCaseReducersByType)
651
+ throw new Error(process.env.NODE_ENV === "production" ? w(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + E);
652
+ return a.sliceCaseReducersByType[E] = y, d;
653
+ },
654
+ addMatcher(h, y) {
655
+ return a.sliceMatchers.push({
656
+ matcher: h,
657
+ reducer: y
658
+ }), d;
659
+ },
660
+ exposeAction(h, y) {
661
+ return a.actionCreators[h] = y, d;
662
+ },
663
+ exposeCaseReducer(h, y) {
664
+ return a.sliceCaseReducersByName[h] = y, d;
665
+ }
666
+ };
667
+ u.forEach((h) => {
668
+ const y = i[h], E = {
669
+ reducerName: h,
670
+ type: Ve(s, h),
671
+ createNotation: typeof r.reducers == "function"
672
+ };
673
+ je(y) ? xe(E, y, d, t) : Ae(E, y, d);
674
+ });
675
+ function o() {
676
+ if (process.env.NODE_ENV !== "production" && typeof r.extraReducers == "object")
677
+ throw new Error(process.env.NODE_ENV === "production" ? w(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
678
+ const [h = {}, y = [], E = void 0] = typeof r.extraReducers == "function" ? Y(r.extraReducers) : [r.extraReducers], O = {
679
+ ...h,
680
+ ...a.sliceCaseReducersByType
681
+ };
682
+ return ye(r.initialState, (b) => {
683
+ for (let N in O)
684
+ b.addCase(N, O[N]);
685
+ for (let N of a.sliceMatchers)
686
+ b.addMatcher(N.matcher, N.reducer);
687
+ for (let N of y)
688
+ b.addMatcher(N.matcher, N.reducer);
689
+ E && b.addDefaultCase(E);
690
+ });
691
+ }
692
+ const l = (h) => h, p = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new WeakMap();
693
+ let m;
694
+ function g(h, y) {
695
+ return m || (m = o()), m(h, y);
696
+ }
697
+ function D() {
698
+ return m || (m = o()), m.getInitialState();
699
+ }
700
+ function v(h, y = !1) {
701
+ function E(b) {
702
+ let N = b[h];
703
+ if (typeof N > "u") {
704
+ if (y)
705
+ N = V(f, E, D);
706
+ else if (process.env.NODE_ENV !== "production")
707
+ throw new Error(process.env.NODE_ENV === "production" ? w(15) : "selectSlice returned undefined for an uninjected slice reducer");
708
+ }
709
+ return N;
710
+ }
711
+ function O(b = l) {
712
+ const N = V(p, y, () => /* @__PURE__ */ new WeakMap());
713
+ return V(N, b, () => {
714
+ const R = {};
715
+ for (const [J, K] of Object.entries(r.selectors ?? {}))
716
+ R[J] = Se(K, b, () => V(f, b, D), y);
717
+ return R;
718
+ });
719
+ }
720
+ return {
721
+ reducerPath: h,
722
+ getSelectors: O,
723
+ get selectors() {
724
+ return O(E);
725
+ },
726
+ selectSlice: E
727
+ };
728
+ }
729
+ const _ = {
730
+ name: s,
731
+ reducer: g,
732
+ actions: a.actionCreators,
733
+ caseReducers: a.sliceCaseReducersByName,
734
+ getInitialState: D,
735
+ ...v(c),
736
+ injectInto(h, {
737
+ reducerPath: y,
738
+ ...E
739
+ } = {}) {
740
+ const O = y ?? c;
741
+ return h.inject({
742
+ reducerPath: O,
743
+ reducer: g
744
+ }, E), {
745
+ ..._,
746
+ ...v(O, !0)
747
+ };
748
+ }
749
+ };
750
+ return _;
751
+ };
752
+ }
753
+ function Se(e, t, n, r) {
754
+ function s(c, ...i) {
755
+ let u = t(c);
756
+ if (typeof u > "u") {
757
+ if (r)
758
+ u = n();
759
+ else if (process.env.NODE_ENV !== "production")
760
+ throw new Error(process.env.NODE_ENV === "production" ? w(16) : "selectState returned undefined for an uninjected slice reducer");
761
+ }
762
+ return e(u, ...i);
763
+ }
764
+ return s.unwrapped = e, s;
765
+ }
766
+ var Be = /* @__PURE__ */ Me();
767
+ function Te() {
768
+ function e(t, n) {
769
+ return {
770
+ _reducerDefinitionType: "asyncThunk",
771
+ payloadCreator: t,
772
+ ...n
773
+ };
774
+ }
775
+ return e.withTypes = () => e, {
776
+ reducer(t) {
777
+ return Object.assign({
778
+ // hack so the wrapping function has the same name as the original
779
+ // we need to create a wrapper so the `reducerDefinitionType` is not assigned to the original
780
+ [t.name](...n) {
781
+ return t(...n);
782
+ }
783
+ }[t.name], {
784
+ _reducerDefinitionType: "reducer"
785
+ /* reducer */
786
+ });
787
+ },
788
+ preparedReducer(t, n) {
789
+ return {
790
+ _reducerDefinitionType: "reducerWithPrepare",
791
+ prepare: t,
792
+ reducer: n
793
+ };
794
+ },
795
+ asyncThunk: e
796
+ };
797
+ }
798
+ function Ae({
799
+ type: e,
800
+ reducerName: t,
801
+ createNotation: n
802
+ }, r, s) {
803
+ let c, i;
804
+ if ("reducer" in r) {
805
+ if (n && !Re(r))
806
+ throw new Error(process.env.NODE_ENV === "production" ? w(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
807
+ c = r.reducer, i = r.prepare;
808
+ } else
809
+ c = r;
810
+ s.addCase(e, c).exposeCaseReducer(t, c).exposeAction(t, i ? k(e, i) : k(e));
811
+ }
812
+ function je(e) {
813
+ return e._reducerDefinitionType === "asyncThunk";
814
+ }
815
+ function Re(e) {
816
+ return e._reducerDefinitionType === "reducerWithPrepare";
817
+ }
818
+ function xe({
819
+ type: e,
820
+ reducerName: t
821
+ }, n, r, s) {
822
+ if (!s)
823
+ throw new Error(process.env.NODE_ENV === "production" ? w(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
824
+ const {
825
+ payloadCreator: c,
826
+ fulfilled: i,
827
+ pending: u,
828
+ rejected: a,
829
+ settled: d,
830
+ options: o
831
+ } = n, l = s(e, c, o);
832
+ r.exposeAction(t, l), i && r.addCase(l.fulfilled, i), u && r.addCase(l.pending, u), a && r.addCase(l.rejected, a), d && r.addMatcher(l.settled, d), r.exposeCaseReducer(t, {
833
+ fulfilled: i || S,
834
+ pending: u || S,
835
+ rejected: a || S,
836
+ settled: d || S
837
+ });
838
+ }
839
+ function S() {
840
+ }
841
+ function w(e) {
842
+ return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
843
+ }
844
+ export {
845
+ he as SHOULD_AUTOBATCH,
846
+ L as Tuple,
847
+ Ue as __DO_NOT_USE__ActionTypes,
848
+ ee as applyMiddleware,
849
+ we as autoBatchEnhancer,
850
+ Me as buildCreateSlice,
851
+ Z as combineReducers,
852
+ A as compose,
853
+ Pe as configureStore,
854
+ k as createAction,
855
+ ce as createActionCreatorInvariantMiddleware,
856
+ qe as createAsyncThunk,
857
+ le as createImmutableStateInvariantMiddleware,
858
+ B as createNextState,
859
+ ye as createReducer,
860
+ fe as createSerializableStateInvariantMiddleware,
861
+ Be as createSlice,
862
+ te as createStore,
863
+ Ge as current,
864
+ j as findNonSerializableValue,
865
+ w as formatProdErrorMessage,
866
+ Xe as freeze,
867
+ P as isAction,
868
+ ae as isActionCreator,
869
+ Ne as isAnyOf,
870
+ re as isDraft,
871
+ ue as isImmutableDefault,
872
+ H as isPlain,
873
+ q as isPlainObject,
874
+ Oe as miniSerializeError,
875
+ De as nanoid,
876
+ _e as unwrapResult
877
+ };