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,223 @@
1
+ import { markdownLineEnding as V } from "../../micromark-util-character/index.js";
2
+ import { push as W, splice as X } from "../../micromark-util-chunked/index.js";
3
+ import { resolveAll as Y } from "../../micromark-util-resolve-all/index.js";
4
+ function re(d, l, o) {
5
+ let n = {
6
+ _bufferIndex: -1,
7
+ _index: 0,
8
+ line: o && o.line || 1,
9
+ column: o && o.column || 1,
10
+ offset: o && o.offset || 0
11
+ };
12
+ const f = {}, u = [];
13
+ let s = [], h = [];
14
+ const S = {
15
+ attempt: m(J),
16
+ check: m(P),
17
+ consume: D,
18
+ enter: G,
19
+ exit: H,
20
+ interrupt: m(P, {
21
+ interrupt: !0
22
+ })
23
+ }, t = {
24
+ code: null,
25
+ containerState: {},
26
+ defineSkip: R,
27
+ events: [],
28
+ now: v,
29
+ parser: d,
30
+ previous: null,
31
+ sliceSerialize: M,
32
+ sliceStream: j,
33
+ write: L
34
+ };
35
+ let O = l.tokenize.call(t, S);
36
+ return l.resolveAll && u.push(l), t;
37
+ function L(e) {
38
+ return s = W(s, e), q(), s[s.length - 1] !== null ? [] : (T(l, 0), t.events = Y(u, t.events, t), t.events);
39
+ }
40
+ function M(e, r) {
41
+ return $(j(e), r);
42
+ }
43
+ function j(e) {
44
+ return Z(s, e);
45
+ }
46
+ function v() {
47
+ const {
48
+ _bufferIndex: e,
49
+ _index: r,
50
+ line: c,
51
+ column: a,
52
+ offset: p
53
+ } = n;
54
+ return {
55
+ _bufferIndex: e,
56
+ _index: r,
57
+ line: c,
58
+ column: a,
59
+ offset: p
60
+ };
61
+ }
62
+ function R(e) {
63
+ f[e.line] = e.column, g();
64
+ }
65
+ function q() {
66
+ let e;
67
+ for (; n._index < s.length; ) {
68
+ const r = s[n._index];
69
+ if (typeof r == "string")
70
+ for (e = n._index, n._bufferIndex < 0 && (n._bufferIndex = 0); n._index === e && n._bufferIndex < r.length; )
71
+ z(r.charCodeAt(n._bufferIndex));
72
+ else
73
+ z(r);
74
+ }
75
+ }
76
+ function z(e) {
77
+ O = O(e);
78
+ }
79
+ function D(e) {
80
+ V(e) ? (n.line++, n.column = 1, n.offset += e === -3 ? 2 : 1, g()) : e !== -1 && (n.column++, n.offset++), n._bufferIndex < 0 ? n._index++ : (n._bufferIndex++, n._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
81
+ // strings.
82
+ /** @type {string} */
83
+ s[n._index].length && (n._bufferIndex = -1, n._index++)), t.previous = e;
84
+ }
85
+ function G(e, r) {
86
+ const c = r || {};
87
+ return c.type = e, c.start = v(), t.events.push(["enter", c, t]), h.push(c), c;
88
+ }
89
+ function H(e) {
90
+ const r = h.pop();
91
+ return r.end = v(), t.events.push(["exit", r, t]), r;
92
+ }
93
+ function J(e, r) {
94
+ T(e, r.from);
95
+ }
96
+ function P(e, r) {
97
+ r.restore();
98
+ }
99
+ function m(e, r) {
100
+ return c;
101
+ function c(a, p, _) {
102
+ let C, k, B, y;
103
+ return Array.isArray(a) ? (
104
+ /* c8 ignore next 1 */
105
+ A(a)
106
+ ) : "tokenize" in a ? (
107
+ // Looks like a construct.
108
+ A([
109
+ /** @type {Construct} */
110
+ a
111
+ ])
112
+ ) : N(a);
113
+ function N(i) {
114
+ return w;
115
+ function w(x) {
116
+ const b = x !== null && i[x], I = x !== null && i.null, U = [
117
+ // To do: add more extension tests.
118
+ /* c8 ignore next 2 */
119
+ ...Array.isArray(b) ? b : b ? [b] : [],
120
+ ...Array.isArray(I) ? I : I ? [I] : []
121
+ ];
122
+ return A(U)(x);
123
+ }
124
+ }
125
+ function A(i) {
126
+ return C = i, k = 0, i.length === 0 ? _ : E(i[k]);
127
+ }
128
+ function E(i) {
129
+ return w;
130
+ function w(x) {
131
+ return y = K(), B = i, i.partial || (t.currentConstruct = i), i.name && t.parser.constructs.disable.null.includes(i.name) ? F() : i.tokenize.call(
132
+ // If we do have fields, create an object w/ `context` as its
133
+ // prototype.
134
+ // This allows a “live binding”, which is needed for `interrupt`.
135
+ r ? Object.assign(Object.create(t), r) : t,
136
+ S,
137
+ Q,
138
+ F
139
+ )(x);
140
+ }
141
+ }
142
+ function Q(i) {
143
+ return e(B, y), p;
144
+ }
145
+ function F(i) {
146
+ return y.restore(), ++k < C.length ? E(C[k]) : _;
147
+ }
148
+ }
149
+ }
150
+ function T(e, r) {
151
+ e.resolveAll && !u.includes(e) && u.push(e), e.resolve && X(t.events, r, t.events.length - r, e.resolve(t.events.slice(r), t)), e.resolveTo && (t.events = e.resolveTo(t.events, t));
152
+ }
153
+ function K() {
154
+ const e = v(), r = t.previous, c = t.currentConstruct, a = t.events.length, p = Array.from(h);
155
+ return {
156
+ from: a,
157
+ restore: _
158
+ };
159
+ function _() {
160
+ n = e, t.previous = r, t.currentConstruct = c, t.events.length = a, h = p, g();
161
+ }
162
+ }
163
+ function g() {
164
+ n.line in f && n.column < 2 && (n.column = f[n.line], n.offset += f[n.line] - 1);
165
+ }
166
+ }
167
+ function Z(d, l) {
168
+ const o = l.start._index, n = l.start._bufferIndex, f = l.end._index, u = l.end._bufferIndex;
169
+ let s;
170
+ if (o === f)
171
+ s = [d[o].slice(n, u)];
172
+ else {
173
+ if (s = d.slice(o, f), n > -1) {
174
+ const h = s[0];
175
+ typeof h == "string" ? s[0] = h.slice(n) : s.shift();
176
+ }
177
+ u > 0 && s.push(d[f].slice(0, u));
178
+ }
179
+ return s;
180
+ }
181
+ function $(d, l) {
182
+ let o = -1;
183
+ const n = [];
184
+ let f;
185
+ for (; ++o < d.length; ) {
186
+ const u = d[o];
187
+ let s;
188
+ if (typeof u == "string")
189
+ s = u;
190
+ else switch (u) {
191
+ case -5: {
192
+ s = "\r";
193
+ break;
194
+ }
195
+ case -4: {
196
+ s = `
197
+ `;
198
+ break;
199
+ }
200
+ case -3: {
201
+ s = `\r
202
+ `;
203
+ break;
204
+ }
205
+ case -2: {
206
+ s = l ? " " : " ";
207
+ break;
208
+ }
209
+ case -1: {
210
+ if (!l && f) continue;
211
+ s = " ";
212
+ break;
213
+ }
214
+ default:
215
+ s = String.fromCharCode(u);
216
+ }
217
+ f = u === -2, n.push(s);
218
+ }
219
+ return n.join("");
220
+ }
221
+ export {
222
+ re as createTokenizer
223
+ };
@@ -0,0 +1,37 @@
1
+ import { factorySpace as l } from "../../../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as m } from "../../../micromark-util-character/index.js";
3
+ const g = {
4
+ tokenize: x
5
+ };
6
+ function x(n) {
7
+ const i = n.attempt(this.parser.constructs.contentInitial, e, p);
8
+ let r;
9
+ return i;
10
+ function e(t) {
11
+ if (t === null) {
12
+ n.consume(t);
13
+ return;
14
+ }
15
+ return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), l(n, i, "linePrefix");
16
+ }
17
+ function p(t) {
18
+ return n.enter("paragraph"), u(t);
19
+ }
20
+ function u(t) {
21
+ const a = n.enter("chunkText", {
22
+ contentType: "text",
23
+ previous: r
24
+ });
25
+ return r && (r.next = a), r = a, o(t);
26
+ }
27
+ function o(t) {
28
+ if (t === null) {
29
+ n.exit("chunkText"), n.exit("paragraph"), n.consume(t);
30
+ return;
31
+ }
32
+ return m(t) ? (n.consume(t), n.exit("chunkText"), u) : (n.consume(t), o);
33
+ }
34
+ }
35
+ export {
36
+ g as content
37
+ };
@@ -0,0 +1,126 @@
1
+ import { factorySpace as I } from "../../../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as N } from "../../../micromark-util-character/index.js";
3
+ import { splice as F } from "../../../micromark-util-chunked/index.js";
4
+ const L = {
5
+ tokenize: T
6
+ }, y = {
7
+ tokenize: E
8
+ };
9
+ function T(i) {
10
+ const e = this, l = [];
11
+ let s = 0, t, a, d;
12
+ return w;
13
+ function w(n) {
14
+ if (s < l.length) {
15
+ const o = l[s];
16
+ return e.containerState = o[1], i.attempt(o[0].continuation, z, p)(n);
17
+ }
18
+ return p(n);
19
+ }
20
+ function z(n) {
21
+ if (s++, e.containerState._closeFlow) {
22
+ e.containerState._closeFlow = void 0, t && x();
23
+ const o = e.events.length;
24
+ let u = o, r;
25
+ for (; u--; )
26
+ if (e.events[u][0] === "exit" && e.events[u][1].type === "chunkFlow") {
27
+ r = e.events[u][1].end;
28
+ break;
29
+ }
30
+ f(s);
31
+ let c = o;
32
+ for (; c < e.events.length; )
33
+ e.events[c][1].end = {
34
+ ...r
35
+ }, c++;
36
+ return F(e.events, u + 1, 0, e.events.slice(o)), e.events.length = c, p(n);
37
+ }
38
+ return w(n);
39
+ }
40
+ function p(n) {
41
+ if (s === l.length) {
42
+ if (!t)
43
+ return m(n);
44
+ if (t.currentConstruct && t.currentConstruct.concrete)
45
+ return v(n);
46
+ e.interrupt = !!(t.currentConstruct && !t._gfmTableDynamicInterruptHack);
47
+ }
48
+ return e.containerState = {}, i.check(y, B, _)(n);
49
+ }
50
+ function B(n) {
51
+ return t && x(), f(s), m(n);
52
+ }
53
+ function _(n) {
54
+ return e.parser.lazy[e.now().line] = s !== l.length, d = e.now().offset, v(n);
55
+ }
56
+ function m(n) {
57
+ return e.containerState = {}, i.attempt(y, b, v)(n);
58
+ }
59
+ function b(n) {
60
+ return s++, l.push([e.currentConstruct, e.containerState]), m(n);
61
+ }
62
+ function v(n) {
63
+ if (n === null) {
64
+ t && x(), f(0), i.consume(n);
65
+ return;
66
+ }
67
+ return t = t || e.parser.flow(e.now()), i.enter("chunkFlow", {
68
+ _tokenizer: t,
69
+ contentType: "flow",
70
+ previous: a
71
+ }), C(n);
72
+ }
73
+ function C(n) {
74
+ if (n === null) {
75
+ g(i.exit("chunkFlow"), !0), f(0), i.consume(n);
76
+ return;
77
+ }
78
+ return N(n) ? (i.consume(n), g(i.exit("chunkFlow")), s = 0, e.interrupt = void 0, w) : (i.consume(n), C);
79
+ }
80
+ function g(n, o) {
81
+ const u = e.sliceStream(n);
82
+ if (o && u.push(null), n.previous = a, a && (a.next = n), a = n, t.defineSkip(n.start), t.write(u), e.parser.lazy[n.start.line]) {
83
+ let r = t.events.length;
84
+ for (; r--; )
85
+ if (
86
+ // The token starts before the line ending…
87
+ t.events[r][1].start.offset < d && // …and either is not ended yet…
88
+ (!t.events[r][1].end || // …or ends after it.
89
+ t.events[r][1].end.offset > d)
90
+ )
91
+ return;
92
+ const c = e.events.length;
93
+ let h = c, k, S;
94
+ for (; h--; )
95
+ if (e.events[h][0] === "exit" && e.events[h][1].type === "chunkFlow") {
96
+ if (k) {
97
+ S = e.events[h][1].end;
98
+ break;
99
+ }
100
+ k = !0;
101
+ }
102
+ for (f(s), r = c; r < e.events.length; )
103
+ e.events[r][1].end = {
104
+ ...S
105
+ }, r++;
106
+ F(e.events, h + 1, 0, e.events.slice(c)), e.events.length = r;
107
+ }
108
+ }
109
+ function f(n) {
110
+ let o = l.length;
111
+ for (; o-- > n; ) {
112
+ const u = l[o];
113
+ e.containerState = u[1], u[0].exit.call(e, i);
114
+ }
115
+ l.length = n;
116
+ }
117
+ function x() {
118
+ t.write([null]), a = void 0, t = void 0, e.containerState._closeFlow = void 0;
119
+ }
120
+ }
121
+ function E(i, e, l) {
122
+ return I(i, i.attempt(this.parser.constructs.document, e, l), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
123
+ }
124
+ export {
125
+ L as document
126
+ };
@@ -0,0 +1,33 @@
1
+ import { factorySpace as l } from "../../../micromark-factory-space/index.js";
2
+ import { blankLine as a } from "../../../micromark-core-commonmark/lib/blank-line.js";
3
+ import { content as e } from "../../../micromark-core-commonmark/lib/content.js";
4
+ const d = {
5
+ tokenize: m
6
+ };
7
+ function m(n) {
8
+ const o = this, i = n.attempt(
9
+ // Try to parse a blank line.
10
+ a,
11
+ u,
12
+ // Try to parse initial flow (essentially, only code).
13
+ n.attempt(this.parser.constructs.flowInitial, r, l(n, n.attempt(this.parser.constructs.flow, r, n.attempt(e, r)), "linePrefix"))
14
+ );
15
+ return i;
16
+ function u(t) {
17
+ if (t === null) {
18
+ n.consume(t);
19
+ return;
20
+ }
21
+ return n.enter("lineEndingBlank"), n.consume(t), n.exit("lineEndingBlank"), o.currentConstruct = void 0, i;
22
+ }
23
+ function r(t) {
24
+ if (t === null) {
25
+ n.consume(t);
26
+ return;
27
+ }
28
+ return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), o.currentConstruct = void 0, i;
29
+ }
30
+ }
31
+ export {
32
+ d as flow
33
+ };
@@ -0,0 +1,95 @@
1
+ const k = {
2
+ resolveAll: g()
3
+ }, m = x("string"), y = x("text");
4
+ function x(r) {
5
+ return {
6
+ resolveAll: g(r === "text" ? p : void 0),
7
+ tokenize: o
8
+ };
9
+ function o(t) {
10
+ const i = this, e = this.parser.constructs[r], n = t.attempt(e, a, f);
11
+ return a;
12
+ function a(l) {
13
+ return u(l) ? n(l) : f(l);
14
+ }
15
+ function f(l) {
16
+ if (l === null) {
17
+ t.consume(l);
18
+ return;
19
+ }
20
+ return t.enter("data"), t.consume(l), s;
21
+ }
22
+ function s(l) {
23
+ return u(l) ? (t.exit("data"), n(l)) : (t.consume(l), s);
24
+ }
25
+ function u(l) {
26
+ if (l === null)
27
+ return !0;
28
+ const c = e[l];
29
+ let d = -1;
30
+ if (c)
31
+ for (; ++d < c.length; ) {
32
+ const h = c[d];
33
+ if (!h.previous || h.previous.call(i, i.previous))
34
+ return !0;
35
+ }
36
+ return !1;
37
+ }
38
+ }
39
+ }
40
+ function g(r) {
41
+ return o;
42
+ function o(t, i) {
43
+ let e = -1, n;
44
+ for (; ++e <= t.length; )
45
+ n === void 0 ? t[e] && t[e][1].type === "data" && (n = e, e++) : (!t[e] || t[e][1].type !== "data") && (e !== n + 2 && (t[n][1].end = t[e - 1][1].end, t.splice(n + 2, e - n - 2), e = n + 2), n = void 0);
46
+ return r ? r(t, i) : t;
47
+ }
48
+ }
49
+ function p(r, o) {
50
+ let t = 0;
51
+ for (; ++t <= r.length; )
52
+ if ((t === r.length || r[t][1].type === "lineEnding") && r[t - 1][1].type === "data") {
53
+ const i = r[t - 1][1], e = o.sliceStream(i);
54
+ let n = e.length, a = -1, f = 0, s;
55
+ for (; n--; ) {
56
+ const u = e[n];
57
+ if (typeof u == "string") {
58
+ for (a = u.length; u.charCodeAt(a - 1) === 32; )
59
+ f++, a--;
60
+ if (a) break;
61
+ a = -1;
62
+ } else if (u === -2)
63
+ s = !0, f++;
64
+ else if (u !== -1) {
65
+ n++;
66
+ break;
67
+ }
68
+ }
69
+ if (o._contentTypeTextTrailing && t === r.length && (f = 0), f) {
70
+ const u = {
71
+ type: t === r.length || s || f < 2 ? "lineSuffix" : "hardBreakTrailing",
72
+ start: {
73
+ _bufferIndex: n ? a : i.start._bufferIndex + a,
74
+ _index: i.start._index + n,
75
+ line: i.end.line,
76
+ column: i.end.column - f,
77
+ offset: i.end.offset - f
78
+ },
79
+ end: {
80
+ ...i.end
81
+ }
82
+ };
83
+ i.end = {
84
+ ...u.start
85
+ }, i.start.offset === i.end.offset ? Object.assign(i, u) : (r.splice(t, 0, ["enter", u, o], ["exit", u, o]), t += 2);
86
+ }
87
+ t++;
88
+ }
89
+ return r;
90
+ }
91
+ export {
92
+ k as resolver,
93
+ m as string,
94
+ y as text
95
+ };
@@ -0,0 +1,32 @@
1
+ import { combineExtensions as c } from "../../micromark-util-combine-extensions/index.js";
2
+ import { content as i } from "./initialize/content.js";
3
+ import { document as m } from "./initialize/document.js";
4
+ import { flow as f } from "./initialize/flow.js";
5
+ import { text as u, string as p } from "./initialize/text.js";
6
+ import * as a from "./constructs.js";
7
+ import { createTokenizer as x } from "./create-tokenizer.js";
8
+ function y(r) {
9
+ const o = {
10
+ constructs: (
11
+ /** @type {FullNormalizedExtension} */
12
+ c([a, ...(r || {}).extensions || []])
13
+ ),
14
+ content: t(i),
15
+ defined: [],
16
+ document: t(m),
17
+ flow: t(f),
18
+ lazy: {},
19
+ string: t(p),
20
+ text: t(u)
21
+ };
22
+ return o;
23
+ function t(n) {
24
+ return e;
25
+ function e(s) {
26
+ return x(o, n, s);
27
+ }
28
+ }
29
+ }
30
+ export {
31
+ y as parse
32
+ };
@@ -0,0 +1,9 @@
1
+ import { subtokenize as r } from "../../micromark-util-subtokenize/index.js";
2
+ function e(o) {
3
+ for (; !r(o); )
4
+ ;
5
+ return o;
6
+ }
7
+ export {
8
+ e as postprocess
9
+ };
@@ -0,0 +1,39 @@
1
+ const u = /[\0\t\n\r]/g;
2
+ function x() {
3
+ let s = 1, c = "", f = !0, r;
4
+ return p;
5
+ function p(e, l, a) {
6
+ const t = [];
7
+ let d, o, n, i, h;
8
+ for (e = c + (typeof e == "string" ? e.toString() : new TextDecoder(l || void 0).decode(e)), n = 0, c = "", f && (e.charCodeAt(0) === 65279 && n++, f = void 0); n < e.length; ) {
9
+ if (u.lastIndex = n, d = u.exec(e), i = d && d.index !== void 0 ? d.index : e.length, h = e.charCodeAt(i), !d) {
10
+ c = e.slice(n);
11
+ break;
12
+ }
13
+ if (h === 10 && n === i && r)
14
+ t.push(-3), r = void 0;
15
+ else
16
+ switch (r && (t.push(-5), r = void 0), n < i && (t.push(e.slice(n, i)), s += i - n), h) {
17
+ case 0: {
18
+ t.push(65533), s++;
19
+ break;
20
+ }
21
+ case 9: {
22
+ for (o = Math.ceil(s / 4) * 4, t.push(-2); s++ < o; ) t.push(-1);
23
+ break;
24
+ }
25
+ case 10: {
26
+ t.push(-4), s = 1;
27
+ break;
28
+ }
29
+ default:
30
+ r = !0, s = 1;
31
+ }
32
+ n = i + 1;
33
+ }
34
+ return a && (r && t.push(-5), c && t.push(c), t.push(null)), t;
35
+ }
36
+ }
37
+ export {
38
+ x as preprocess
39
+ };
@@ -0,0 +1,83 @@
1
+ import { push as d, splice as S } from "../../micromark-util-chunked/index.js";
2
+ import { classifyCharacter as h } from "../../micromark-util-classify-character/index.js";
3
+ import { resolveAll as q } from "../../micromark-util-resolve-all/index.js";
4
+ const z = {
5
+ name: "attention",
6
+ resolveAll: g,
7
+ tokenize: y
8
+ };
9
+ function g(t, i) {
10
+ let e = -1, r, a, l, u, s, n, o, f;
11
+ for (; ++e < t.length; )
12
+ if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
13
+ for (r = e; r--; )
14
+ if (t[r][0] === "exit" && t[r][1].type === "attentionSequence" && t[r][1]._open && // If the markers are the same:
15
+ i.sliceSerialize(t[r][1]).charCodeAt(0) === i.sliceSerialize(t[e][1]).charCodeAt(0)) {
16
+ if ((t[r][1]._close || t[e][1]._open) && (t[e][1].end.offset - t[e][1].start.offset) % 3 && !((t[r][1].end.offset - t[r][1].start.offset + t[e][1].end.offset - t[e][1].start.offset) % 3))
17
+ continue;
18
+ n = t[r][1].end.offset - t[r][1].start.offset > 1 && t[e][1].end.offset - t[e][1].start.offset > 1 ? 2 : 1;
19
+ const p = {
20
+ ...t[r][1].end
21
+ }, c = {
22
+ ...t[e][1].start
23
+ };
24
+ m(p, -n), m(c, n), u = {
25
+ type: n > 1 ? "strongSequence" : "emphasisSequence",
26
+ start: p,
27
+ end: {
28
+ ...t[r][1].end
29
+ }
30
+ }, s = {
31
+ type: n > 1 ? "strongSequence" : "emphasisSequence",
32
+ start: {
33
+ ...t[e][1].start
34
+ },
35
+ end: c
36
+ }, l = {
37
+ type: n > 1 ? "strongText" : "emphasisText",
38
+ start: {
39
+ ...t[r][1].end
40
+ },
41
+ end: {
42
+ ...t[e][1].start
43
+ }
44
+ }, a = {
45
+ type: n > 1 ? "strong" : "emphasis",
46
+ start: {
47
+ ...u.start
48
+ },
49
+ end: {
50
+ ...s.end
51
+ }
52
+ }, t[r][1].end = {
53
+ ...u.start
54
+ }, t[e][1].start = {
55
+ ...s.end
56
+ }, o = [], t[r][1].end.offset - t[r][1].start.offset && (o = d(o, [["enter", t[r][1], i], ["exit", t[r][1], i]])), o = d(o, [["enter", a, i], ["enter", u, i], ["exit", u, i], ["enter", l, i]]), o = d(o, q(i.parser.constructs.insideSpan.null, t.slice(r + 1, e), i)), o = d(o, [["exit", l, i], ["enter", s, i], ["exit", s, i], ["exit", a, i]]), t[e][1].end.offset - t[e][1].start.offset ? (f = 2, o = d(o, [["enter", t[e][1], i], ["exit", t[e][1], i]])) : f = 0, S(t, r - 1, e - r + 3, o), e = r + o.length - f - 2;
57
+ break;
58
+ }
59
+ }
60
+ for (e = -1; ++e < t.length; )
61
+ t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
62
+ return t;
63
+ }
64
+ function y(t, i) {
65
+ const e = this.parser.constructs.attentionMarkers.null, r = this.previous, a = h(r);
66
+ let l;
67
+ return u;
68
+ function u(n) {
69
+ return l = n, t.enter("attentionSequence"), s(n);
70
+ }
71
+ function s(n) {
72
+ if (n === l)
73
+ return t.consume(n), s;
74
+ const o = t.exit("attentionSequence"), f = h(n), p = !f || f === 2 && a || e.includes(n), c = !a || a === 2 && f || e.includes(r);
75
+ return o._open = !!(l === 42 ? p : p && (a || !c)), o._close = !!(l === 42 ? c : c && (f || !p)), i(n);
76
+ }
77
+ }
78
+ function m(t, i) {
79
+ t.column += i, t.offset += i, t._bufferIndex += i;
80
+ }
81
+ export {
82
+ z as attention
83
+ };