hasting-swatchcart-module 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/assets/SwatchesModule.css +1 -0
  2. package/dist/components/SwatchesModule.js +23440 -24
  3. package/dist/components/Test.js +5 -0
  4. package/dist/lib/components/Test.d.ts +1 -0
  5. package/dist/main.js +0 -1
  6. package/dist/{src/shared/constants/props.js → rootReducer-BqfJd5QI.js} +1913 -3
  7. package/dist/store/LibraryProvider.js +3 -4
  8. package/dist/store/rootReducer.js +2 -10
  9. package/dist/store/store.js +5 -15
  10. package/dist/store-BZ_1BK_I.js +382 -0
  11. package/package.json +1 -1
  12. package/dist/_virtual/_commonjsHelpers.js +0 -6
  13. package/dist/_virtual/index.js +0 -7
  14. package/dist/_virtual/index2.js +0 -7
  15. package/dist/_virtual/index3.js +0 -4
  16. package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
  17. package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
  18. package/dist/_virtual/utilities.js +0 -4
  19. package/dist/_virtual/with-selector.js +0 -5
  20. package/dist/_virtual/with-selector2.js +0 -4
  21. package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
  22. package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
  23. package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
  24. package/dist/assets/styles/index.css +0 -1
  25. package/dist/main.d.ts +0 -1
  26. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  27. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  28. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  29. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  30. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  31. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  32. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  33. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
  34. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  35. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  36. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
  37. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  38. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  39. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  40. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  41. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
  42. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  43. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  44. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  45. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  46. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  47. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  48. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  49. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  50. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  51. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  52. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  53. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
  54. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
  55. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
  56. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  57. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
  58. package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
  59. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
  60. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
  61. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  62. package/dist/node_modules/bail/index.js +0 -7
  63. package/dist/node_modules/clsx/dist/clsx.js +0 -17
  64. package/dist/node_modules/comma-separated-tokens/index.js +0 -20
  65. package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
  66. package/dist/node_modules/devlop/lib/default.js +0 -8
  67. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
  68. package/dist/node_modules/extend/index.js +0 -43
  69. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  70. package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
  71. package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
  72. package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
  73. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
  74. package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
  75. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
  76. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
  77. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
  78. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
  79. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
  80. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
  81. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  82. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  83. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
  84. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
  85. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
  86. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
  87. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
  88. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
  89. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
  90. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
  91. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
  92. package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
  93. package/dist/node_modules/hastscript/lib/create-h.js +0 -112
  94. package/dist/node_modules/hastscript/lib/index.js +0 -8
  95. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
  96. package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
  97. package/dist/node_modules/html-void-elements/index.js +0 -25
  98. package/dist/node_modules/immer/dist/immer.js +0 -467
  99. package/dist/node_modules/inline-style-parser/index.js +0 -93
  100. package/dist/node_modules/is-plain-obj/index.js +0 -9
  101. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
  102. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
  103. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
  104. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
  105. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
  106. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
  107. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
  108. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
  109. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
  110. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
  111. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
  112. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
  113. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
  114. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
  115. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
  116. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
  117. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
  118. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
  119. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
  120. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
  121. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
  122. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
  123. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
  124. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
  125. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
  126. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
  127. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
  128. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
  129. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
  130. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
  131. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
  132. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
  133. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
  134. package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
  135. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
  136. package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
  137. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
  138. package/dist/node_modules/micromark/lib/constructs.js +0 -85
  139. package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
  140. package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
  141. package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
  142. package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
  143. package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
  144. package/dist/node_modules/micromark/lib/parse.js +0 -32
  145. package/dist/node_modules/micromark/lib/postprocess.js +0 -9
  146. package/dist/node_modules/micromark/lib/preprocess.js +0 -39
  147. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
  148. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
  149. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
  150. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
  151. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
  152. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
  153. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
  154. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
  155. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
  156. package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
  157. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
  158. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
  159. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
  160. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
  161. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
  162. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
  163. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
  164. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
  165. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
  166. package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
  167. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
  168. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
  169. package/dist/node_modules/micromark-factory-destination/index.js +0 -31
  170. package/dist/node_modules/micromark-factory-label/index.js +0 -28
  171. package/dist/node_modules/micromark-factory-space/index.js +0 -15
  172. package/dist/node_modules/micromark-factory-title/index.js +0 -26
  173. package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
  174. package/dist/node_modules/micromark-util-character/index.js +0 -39
  175. package/dist/node_modules/micromark-util-chunked/index.js +0 -16
  176. package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
  177. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
  178. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
  179. package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
  180. package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
  181. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
  182. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
  183. package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
  184. package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
  185. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
  186. package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
  187. package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
  188. package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
  189. package/dist/node_modules/parse5/dist/common/html.js +0 -250
  190. package/dist/node_modules/parse5/dist/common/token.js +0 -14
  191. package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
  192. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
  193. package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
  194. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
  195. package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
  196. package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
  197. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
  198. package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
  199. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
  200. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
  201. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  202. package/dist/node_modules/property-information/index.js +0 -12
  203. package/dist/node_modules/property-information/lib/aria.js +0 -61
  204. package/dist/node_modules/property-information/lib/find.js +0 -33
  205. package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
  206. package/dist/node_modules/property-information/lib/html.js +0 -368
  207. package/dist/node_modules/property-information/lib/normalize.js +0 -6
  208. package/dist/node_modules/property-information/lib/svg.js +0 -566
  209. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  210. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  211. package/dist/node_modules/property-information/lib/util/create.js +0 -19
  212. package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
  213. package/dist/node_modules/property-information/lib/util/info.js +0 -28
  214. package/dist/node_modules/property-information/lib/util/merge.js +0 -10
  215. package/dist/node_modules/property-information/lib/util/schema.js +0 -21
  216. package/dist/node_modules/property-information/lib/util/types.js +0 -14
  217. package/dist/node_modules/property-information/lib/xlink.js +0 -19
  218. package/dist/node_modules/property-information/lib/xml.js +0 -11
  219. package/dist/node_modules/property-information/lib/xmlns.js +0 -11
  220. package/dist/node_modules/react-markdown/lib/index.js +0 -102
  221. package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
  222. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  223. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  224. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  225. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  226. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  227. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  228. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  229. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  230. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  231. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  232. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  233. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  234. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  235. package/dist/node_modules/redux/dist/redux.js +0 -258
  236. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
  237. package/dist/node_modules/rehype-raw/lib/index.js +0 -12
  238. package/dist/node_modules/remark-parse/lib/index.js +0 -19
  239. package/dist/node_modules/remark-rehype/lib/index.js +0 -18
  240. package/dist/node_modules/reselect/dist/reselect.js +0 -244
  241. package/dist/node_modules/space-separated-tokens/index.js +0 -11
  242. package/dist/node_modules/style-to-js/cjs/index.js +0 -20
  243. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
  244. package/dist/node_modules/style-to-object/cjs/index.js +0 -28
  245. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
  246. package/dist/node_modules/trim-lines/index.js +0 -28
  247. package/dist/node_modules/trough/lib/index.js +0 -60
  248. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  249. package/dist/node_modules/unified/lib/callable-instance.js +0 -25
  250. package/dist/node_modules/unified/lib/index.js +0 -529
  251. package/dist/node_modules/unist-util-is/lib/index.js +0 -84
  252. package/dist/node_modules/unist-util-position/lib/index.js +0 -23
  253. package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
  254. package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
  255. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
  256. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
  257. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  258. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  259. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  260. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  261. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
  262. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
  263. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
  264. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
  265. package/dist/node_modules/vfile/lib/index.js +0 -406
  266. package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
  267. package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
  268. package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
  269. package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
  270. package/dist/node_modules/vfile-location/lib/index.js +0 -42
  271. package/dist/node_modules/vfile-message/lib/index.js +0 -91
  272. package/dist/node_modules/web-namespaces/index.js +0 -11
  273. package/dist/node_modules/zwitch/index.js +0 -18
  274. package/dist/src/app/assets/images/product_thumb.png.js +0 -4
  275. package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
  276. package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
  277. package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
  278. package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
  279. package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
  280. package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
  281. package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
  282. package/dist/src/app/store/rootReducer.js +0 -12
  283. package/dist/src/app/store/store.js +0 -14
  284. package/dist/src/features/Cart/lib/CartCervices.js +0 -8
  285. package/dist/src/features/Cart/model/cartSlice.js +0 -58
  286. package/dist/src/features/Cart/model/selectors.js +0 -18
  287. package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
  288. package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
  289. package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
  290. package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
  291. package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
  292. package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
  293. package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
  294. package/dist/src/features/DataAdapter/utils/types.js +0 -8
  295. package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
  296. package/dist/src/features/MultiProduct/model/API/api.js +0 -18
  297. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
  298. package/dist/src/features/MultiProduct/model/selectors.js +0 -7
  299. package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
  300. package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
  301. package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
  302. package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
  303. package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
  304. package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
  305. package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
  306. package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
  307. package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
  308. package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
  309. package/dist/src/features/MultiProduct/utils/constants.js +0 -16
  310. package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
  311. package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
  312. package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
  313. package/dist/src/features/swatches/model/selectors.js +0 -12
  314. package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
  315. package/dist/src/features/swatches/model/thunks.js +0 -22
  316. package/dist/src/features/swatches/model/types.js +0 -6
  317. package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
  318. package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
  319. package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
  320. package/dist/src/features/swatches/ui/Filters/index.js +0 -12
  321. package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
  322. package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
  323. package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
  324. package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
  325. package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
  326. package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
  327. package/dist/src/features/swatches/ui/Swatches.js +0 -51
  328. package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
  329. package/dist/src/features/swatches/utils/constants.js +0 -8
  330. package/dist/src/shared/constants/selectedMaterials.js +0 -4
  331. package/dist/src/shared/types/activeTab.js +0 -7
  332. package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
  333. package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
  334. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
  335. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
  336. package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
  337. package/dist/src/shared/ui/Label/Label.js +0 -27
  338. package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
  339. package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
  340. package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
  341. package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
  342. package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
  343. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
  344. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
  345. package/dist/src/shared/ui/Slider/Slider.js +0 -117
  346. package/dist/src/shared/utils/cn.js +0 -8
  347. package/dist/src/shared/utils/uniqueList.js +0 -4
  348. /package/dist/{components → lib/components}/SwatchesModule.d.ts +0 -0
  349. /package/dist/{store → lib/store}/LibraryProvider.d.ts +0 -0
  350. /package/dist/{store → lib/store}/rootReducer.d.ts +0 -0
  351. /package/dist/{store → lib/store}/store.d.ts +0 -0
  352. /package/dist/{store → lib/store}/withStore.d.ts +0 -0
@@ -1,406 +0,0 @@
1
- import { minpath as n } from "./minpath.browser.js";
2
- import { minproc as p } from "./minproc.browser.js";
3
- import { urlToPath as u } from "./minurl.browser.js";
4
- import { isUrl as f } from "./minurl.shared.js";
5
- import { VFileMessage as c } from "../../vfile-message/lib/index.js";
6
- const a = (
7
- /** @type {const} */
8
- [
9
- "history",
10
- "path",
11
- "basename",
12
- "stem",
13
- "extname",
14
- "dirname"
15
- ]
16
- );
17
- class E {
18
- /**
19
- * Create a new virtual file.
20
- *
21
- * `options` is treated as:
22
- *
23
- * * `string` or `Uint8Array` — `{value: options}`
24
- * * `URL` — `{path: options}`
25
- * * `VFile` — shallow copies its data over to the new file
26
- * * `object` — all fields are shallow copied over to the new file
27
- *
28
- * Path related fields are set in the following order (least specific to
29
- * most specific): `history`, `path`, `basename`, `stem`, `extname`,
30
- * `dirname`.
31
- *
32
- * You cannot set `dirname` or `extname` without setting either `history`,
33
- * `path`, `basename`, or `stem` too.
34
- *
35
- * @param {Compatible | null | undefined} [value]
36
- * File value.
37
- * @returns
38
- * New instance.
39
- */
40
- constructor(t) {
41
- let e;
42
- t ? f(t) ? e = { path: t } : typeof t == "string" || l(t) ? e = { value: t } : e = t : e = {}, this.cwd = "cwd" in e ? "" : p.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
43
- let r = -1;
44
- for (; ++r < a.length; ) {
45
- const h = a[r];
46
- h in e && e[h] !== void 0 && e[h] !== null && (this[h] = h === "history" ? [...e[h]] : e[h]);
47
- }
48
- let i;
49
- for (i in e)
50
- a.includes(i) || (this[i] = e[i]);
51
- }
52
- /**
53
- * Get the basename (including extname) (example: `'index.min.js'`).
54
- *
55
- * @returns {string | undefined}
56
- * Basename.
57
- */
58
- get basename() {
59
- return typeof this.path == "string" ? n.basename(this.path) : void 0;
60
- }
61
- /**
62
- * Set basename (including extname) (`'index.min.js'`).
63
- *
64
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
65
- * on windows).
66
- * Cannot be nullified (use `file.path = file.dirname` instead).
67
- *
68
- * @param {string} basename
69
- * Basename.
70
- * @returns {undefined}
71
- * Nothing.
72
- */
73
- set basename(t) {
74
- m(t, "basename"), o(t, "basename"), this.path = n.join(this.dirname || "", t);
75
- }
76
- /**
77
- * Get the parent path (example: `'~'`).
78
- *
79
- * @returns {string | undefined}
80
- * Dirname.
81
- */
82
- get dirname() {
83
- return typeof this.path == "string" ? n.dirname(this.path) : void 0;
84
- }
85
- /**
86
- * Set the parent path (example: `'~'`).
87
- *
88
- * Cannot be set if there’s no `path` yet.
89
- *
90
- * @param {string | undefined} dirname
91
- * Dirname.
92
- * @returns {undefined}
93
- * Nothing.
94
- */
95
- set dirname(t) {
96
- d(this.basename, "dirname"), this.path = n.join(t || "", this.basename);
97
- }
98
- /**
99
- * Get the extname (including dot) (example: `'.js'`).
100
- *
101
- * @returns {string | undefined}
102
- * Extname.
103
- */
104
- get extname() {
105
- return typeof this.path == "string" ? n.extname(this.path) : void 0;
106
- }
107
- /**
108
- * Set the extname (including dot) (example: `'.js'`).
109
- *
110
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
111
- * on windows).
112
- * Cannot be set if there’s no `path` yet.
113
- *
114
- * @param {string | undefined} extname
115
- * Extname.
116
- * @returns {undefined}
117
- * Nothing.
118
- */
119
- set extname(t) {
120
- if (o(t, "extname"), d(this.dirname, "extname"), t) {
121
- if (t.codePointAt(0) !== 46)
122
- throw new Error("`extname` must start with `.`");
123
- if (t.includes(".", 1))
124
- throw new Error("`extname` cannot contain multiple dots");
125
- }
126
- this.path = n.join(this.dirname, this.stem + (t || ""));
127
- }
128
- /**
129
- * Get the full path (example: `'~/index.min.js'`).
130
- *
131
- * @returns {string}
132
- * Path.
133
- */
134
- get path() {
135
- return this.history[this.history.length - 1];
136
- }
137
- /**
138
- * Set the full path (example: `'~/index.min.js'`).
139
- *
140
- * Cannot be nullified.
141
- * You can set a file URL (a `URL` object with a `file:` protocol) which will
142
- * be turned into a path with `url.fileURLToPath`.
143
- *
144
- * @param {URL | string} path
145
- * Path.
146
- * @returns {undefined}
147
- * Nothing.
148
- */
149
- set path(t) {
150
- f(t) && (t = u(t)), m(t, "path"), this.path !== t && this.history.push(t);
151
- }
152
- /**
153
- * Get the stem (basename w/o extname) (example: `'index.min'`).
154
- *
155
- * @returns {string | undefined}
156
- * Stem.
157
- */
158
- get stem() {
159
- return typeof this.path == "string" ? n.basename(this.path, this.extname) : void 0;
160
- }
161
- /**
162
- * Set the stem (basename w/o extname) (example: `'index.min'`).
163
- *
164
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
165
- * on windows).
166
- * Cannot be nullified (use `file.path = file.dirname` instead).
167
- *
168
- * @param {string} stem
169
- * Stem.
170
- * @returns {undefined}
171
- * Nothing.
172
- */
173
- set stem(t) {
174
- m(t, "stem"), o(t, "stem"), this.path = n.join(this.dirname || "", t + (this.extname || ""));
175
- }
176
- // Normal prototypal methods.
177
- /**
178
- * Create a fatal message for `reason` associated with the file.
179
- *
180
- * The `fatal` field of the message is set to `true` (error; file not usable)
181
- * and the `file` field is set to the current file path.
182
- * The message is added to the `messages` field on `file`.
183
- *
184
- * > 🪦 **Note**: also has obsolete signatures.
185
- *
186
- * @overload
187
- * @param {string} reason
188
- * @param {MessageOptions | null | undefined} [options]
189
- * @returns {never}
190
- *
191
- * @overload
192
- * @param {string} reason
193
- * @param {Node | NodeLike | null | undefined} parent
194
- * @param {string | null | undefined} [origin]
195
- * @returns {never}
196
- *
197
- * @overload
198
- * @param {string} reason
199
- * @param {Point | Position | null | undefined} place
200
- * @param {string | null | undefined} [origin]
201
- * @returns {never}
202
- *
203
- * @overload
204
- * @param {string} reason
205
- * @param {string | null | undefined} [origin]
206
- * @returns {never}
207
- *
208
- * @overload
209
- * @param {Error | VFileMessage} cause
210
- * @param {Node | NodeLike | null | undefined} parent
211
- * @param {string | null | undefined} [origin]
212
- * @returns {never}
213
- *
214
- * @overload
215
- * @param {Error | VFileMessage} cause
216
- * @param {Point | Position | null | undefined} place
217
- * @param {string | null | undefined} [origin]
218
- * @returns {never}
219
- *
220
- * @overload
221
- * @param {Error | VFileMessage} cause
222
- * @param {string | null | undefined} [origin]
223
- * @returns {never}
224
- *
225
- * @param {Error | VFileMessage | string} causeOrReason
226
- * Reason for message, should use markdown.
227
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
228
- * Configuration (optional).
229
- * @param {string | null | undefined} [origin]
230
- * Place in code where the message originates (example:
231
- * `'my-package:my-rule'` or `'my-rule'`).
232
- * @returns {never}
233
- * Never.
234
- * @throws {VFileMessage}
235
- * Message.
236
- */
237
- fail(t, e, r) {
238
- const i = this.message(t, e, r);
239
- throw i.fatal = !0, i;
240
- }
241
- /**
242
- * Create an info message for `reason` associated with the file.
243
- *
244
- * The `fatal` field of the message is set to `undefined` (info; change
245
- * likely not needed) and the `file` field is set to the current file path.
246
- * The message is added to the `messages` field on `file`.
247
- *
248
- * > 🪦 **Note**: also has obsolete signatures.
249
- *
250
- * @overload
251
- * @param {string} reason
252
- * @param {MessageOptions | null | undefined} [options]
253
- * @returns {VFileMessage}
254
- *
255
- * @overload
256
- * @param {string} reason
257
- * @param {Node | NodeLike | null | undefined} parent
258
- * @param {string | null | undefined} [origin]
259
- * @returns {VFileMessage}
260
- *
261
- * @overload
262
- * @param {string} reason
263
- * @param {Point | Position | null | undefined} place
264
- * @param {string | null | undefined} [origin]
265
- * @returns {VFileMessage}
266
- *
267
- * @overload
268
- * @param {string} reason
269
- * @param {string | null | undefined} [origin]
270
- * @returns {VFileMessage}
271
- *
272
- * @overload
273
- * @param {Error | VFileMessage} cause
274
- * @param {Node | NodeLike | null | undefined} parent
275
- * @param {string | null | undefined} [origin]
276
- * @returns {VFileMessage}
277
- *
278
- * @overload
279
- * @param {Error | VFileMessage} cause
280
- * @param {Point | Position | null | undefined} place
281
- * @param {string | null | undefined} [origin]
282
- * @returns {VFileMessage}
283
- *
284
- * @overload
285
- * @param {Error | VFileMessage} cause
286
- * @param {string | null | undefined} [origin]
287
- * @returns {VFileMessage}
288
- *
289
- * @param {Error | VFileMessage | string} causeOrReason
290
- * Reason for message, should use markdown.
291
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
292
- * Configuration (optional).
293
- * @param {string | null | undefined} [origin]
294
- * Place in code where the message originates (example:
295
- * `'my-package:my-rule'` or `'my-rule'`).
296
- * @returns {VFileMessage}
297
- * Message.
298
- */
299
- info(t, e, r) {
300
- const i = this.message(t, e, r);
301
- return i.fatal = void 0, i;
302
- }
303
- /**
304
- * Create a message for `reason` associated with the file.
305
- *
306
- * The `fatal` field of the message is set to `false` (warning; change may be
307
- * needed) and the `file` field is set to the current file path.
308
- * The message is added to the `messages` field on `file`.
309
- *
310
- * > 🪦 **Note**: also has obsolete signatures.
311
- *
312
- * @overload
313
- * @param {string} reason
314
- * @param {MessageOptions | null | undefined} [options]
315
- * @returns {VFileMessage}
316
- *
317
- * @overload
318
- * @param {string} reason
319
- * @param {Node | NodeLike | null | undefined} parent
320
- * @param {string | null | undefined} [origin]
321
- * @returns {VFileMessage}
322
- *
323
- * @overload
324
- * @param {string} reason
325
- * @param {Point | Position | null | undefined} place
326
- * @param {string | null | undefined} [origin]
327
- * @returns {VFileMessage}
328
- *
329
- * @overload
330
- * @param {string} reason
331
- * @param {string | null | undefined} [origin]
332
- * @returns {VFileMessage}
333
- *
334
- * @overload
335
- * @param {Error | VFileMessage} cause
336
- * @param {Node | NodeLike | null | undefined} parent
337
- * @param {string | null | undefined} [origin]
338
- * @returns {VFileMessage}
339
- *
340
- * @overload
341
- * @param {Error | VFileMessage} cause
342
- * @param {Point | Position | null | undefined} place
343
- * @param {string | null | undefined} [origin]
344
- * @returns {VFileMessage}
345
- *
346
- * @overload
347
- * @param {Error | VFileMessage} cause
348
- * @param {string | null | undefined} [origin]
349
- * @returns {VFileMessage}
350
- *
351
- * @param {Error | VFileMessage | string} causeOrReason
352
- * Reason for message, should use markdown.
353
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
354
- * Configuration (optional).
355
- * @param {string | null | undefined} [origin]
356
- * Place in code where the message originates (example:
357
- * `'my-package:my-rule'` or `'my-rule'`).
358
- * @returns {VFileMessage}
359
- * Message.
360
- */
361
- message(t, e, r) {
362
- const i = new c(
363
- // @ts-expect-error: the overloads are fine.
364
- t,
365
- e,
366
- r
367
- );
368
- return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
369
- }
370
- /**
371
- * Serialize the file.
372
- *
373
- * > **Note**: which encodings are supported depends on the engine.
374
- * > For info on Node.js, see:
375
- * > <https://nodejs.org/api/util.html#whatwg-supported-encodings>.
376
- *
377
- * @param {string | null | undefined} [encoding='utf8']
378
- * Character encoding to understand `value` as when it’s a `Uint8Array`
379
- * (default: `'utf-8'`).
380
- * @returns {string}
381
- * Serialized file.
382
- */
383
- toString(t) {
384
- return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
385
- }
386
- }
387
- function o(s, t) {
388
- if (s && s.includes(n.sep))
389
- throw new Error(
390
- "`" + t + "` cannot be a path: did not expect `" + n.sep + "`"
391
- );
392
- }
393
- function m(s, t) {
394
- if (!s)
395
- throw new Error("`" + t + "` cannot be empty");
396
- }
397
- function d(s, t) {
398
- if (!s)
399
- throw new Error("Setting `" + t + "` requires `path` to be set too");
400
- }
401
- function l(s) {
402
- return !!(s && typeof s == "object" && "byteLength" in s && "byteOffset" in s);
403
- }
404
- export {
405
- E as VFile
406
- };
@@ -1,112 +0,0 @@
1
- const w = { basename: c, dirname: u, extname: g, join: h, sep: "/" };
2
- function c(t, n) {
3
- if (n !== void 0 && typeof n != "string")
4
- throw new TypeError('"ext" argument must be a string');
5
- s(t);
6
- let e = 0, l = -1, i = t.length, f;
7
- if (n === void 0 || n.length === 0 || n.length > t.length) {
8
- for (; i--; )
9
- if (t.codePointAt(i) === 47) {
10
- if (f) {
11
- e = i + 1;
12
- break;
13
- }
14
- } else l < 0 && (f = !0, l = i + 1);
15
- return l < 0 ? "" : t.slice(e, l);
16
- }
17
- if (n === t)
18
- return "";
19
- let o = -1, r = n.length - 1;
20
- for (; i--; )
21
- if (t.codePointAt(i) === 47) {
22
- if (f) {
23
- e = i + 1;
24
- break;
25
- }
26
- } else
27
- o < 0 && (f = !0, o = i + 1), r > -1 && (t.codePointAt(i) === n.codePointAt(r--) ? r < 0 && (l = i) : (r = -1, l = o));
28
- return e === l ? l = o : l < 0 && (l = t.length), t.slice(e, l);
29
- }
30
- function u(t) {
31
- if (s(t), t.length === 0)
32
- return ".";
33
- let n = -1, e = t.length, l;
34
- for (; --e; )
35
- if (t.codePointAt(e) === 47) {
36
- if (l) {
37
- n = e;
38
- break;
39
- }
40
- } else l || (l = !0);
41
- return n < 0 ? t.codePointAt(0) === 47 ? "/" : "." : n === 1 && t.codePointAt(0) === 47 ? "//" : t.slice(0, n);
42
- }
43
- function g(t) {
44
- s(t);
45
- let n = t.length, e = -1, l = 0, i = -1, f = 0, o;
46
- for (; n--; ) {
47
- const r = t.codePointAt(n);
48
- if (r === 47) {
49
- if (o) {
50
- l = n + 1;
51
- break;
52
- }
53
- continue;
54
- }
55
- e < 0 && (o = !0, e = n + 1), r === 46 ? i < 0 ? i = n : f !== 1 && (f = 1) : i > -1 && (f = -1);
56
- }
57
- return i < 0 || e < 0 || // We saw a non-dot character immediately before the dot.
58
- f === 0 || // The (right-most) trimmed path component is exactly `..`.
59
- f === 1 && i === e - 1 && i === l + 1 ? "" : t.slice(i, e);
60
- }
61
- function h(...t) {
62
- let n = -1, e;
63
- for (; ++n < t.length; )
64
- s(t[n]), t[n] && (e = e === void 0 ? t[n] : e + "/" + t[n]);
65
- return e === void 0 ? "." : P(e);
66
- }
67
- function P(t) {
68
- s(t);
69
- const n = t.codePointAt(0) === 47;
70
- let e = A(t, !n);
71
- return e.length === 0 && !n && (e = "."), e.length > 0 && t.codePointAt(t.length - 1) === 47 && (e += "/"), n ? "/" + e : e;
72
- }
73
- function A(t, n) {
74
- let e = "", l = 0, i = -1, f = 0, o = -1, r, d;
75
- for (; ++o <= t.length; ) {
76
- if (o < t.length)
77
- r = t.codePointAt(o);
78
- else {
79
- if (r === 47)
80
- break;
81
- r = 47;
82
- }
83
- if (r === 47) {
84
- if (!(i === o - 1 || f === 1)) if (i !== o - 1 && f === 2) {
85
- if (e.length < 2 || l !== 2 || e.codePointAt(e.length - 1) !== 46 || e.codePointAt(e.length - 2) !== 46) {
86
- if (e.length > 2) {
87
- if (d = e.lastIndexOf("/"), d !== e.length - 1) {
88
- d < 0 ? (e = "", l = 0) : (e = e.slice(0, d), l = e.length - 1 - e.lastIndexOf("/")), i = o, f = 0;
89
- continue;
90
- }
91
- } else if (e.length > 0) {
92
- e = "", l = 0, i = o, f = 0;
93
- continue;
94
- }
95
- }
96
- n && (e = e.length > 0 ? e + "/.." : "..", l = 2);
97
- } else
98
- e.length > 0 ? e += "/" + t.slice(i + 1, o) : e = t.slice(i + 1, o), l = o - i - 1;
99
- i = o, f = 0;
100
- } else r === 46 && f > -1 ? f++ : f = -1;
101
- }
102
- return e;
103
- }
104
- function s(t) {
105
- if (typeof t != "string")
106
- throw new TypeError(
107
- "Path must be a string. Received " + JSON.stringify(t)
108
- );
109
- }
110
- export {
111
- w as minpath
112
- };
@@ -1,7 +0,0 @@
1
- const c = { cwd: n };
2
- function n() {
3
- return "/";
4
- }
5
- export {
6
- c as minproc
7
- };
@@ -1,41 +0,0 @@
1
- import { isUrl as i } from "./minurl.shared.js";
2
- function R(o) {
3
- if (typeof o == "string")
4
- o = new URL(o);
5
- else if (!i(o)) {
6
- const e = new TypeError(
7
- 'The "path" argument must be of type string or an instance of URL. Received `' + o + "`"
8
- );
9
- throw e.code = "ERR_INVALID_ARG_TYPE", e;
10
- }
11
- if (o.protocol !== "file:") {
12
- const e = new TypeError("The URL must be of scheme file");
13
- throw e.code = "ERR_INVALID_URL_SCHEME", e;
14
- }
15
- return c(o);
16
- }
17
- function c(o) {
18
- if (o.hostname !== "") {
19
- const r = new TypeError(
20
- 'File URL host must be "localhost" or empty on darwin'
21
- );
22
- throw r.code = "ERR_INVALID_FILE_URL_HOST", r;
23
- }
24
- const e = o.pathname;
25
- let t = -1;
26
- for (; ++t < e.length; )
27
- if (e.codePointAt(t) === 37 && e.codePointAt(t + 1) === 50) {
28
- const r = e.codePointAt(t + 2);
29
- if (r === 70 || r === 102) {
30
- const n = new TypeError(
31
- "File URL path must not include encoded / characters"
32
- );
33
- throw n.code = "ERR_INVALID_FILE_URL_PATH", n;
34
- }
35
- }
36
- return decodeURIComponent(e);
37
- }
38
- export {
39
- i as isUrl,
40
- R as urlToPath
41
- };
@@ -1,7 +0,0 @@
1
- function n(o) {
2
- return !!(o !== null && typeof o == "object" && "href" in o && o.href && "protocol" in o && o.protocol && // @ts-expect-error: indexing is fine.
3
- o.auth === void 0);
4
- }
5
- export {
6
- n as isUrl
7
- };
@@ -1,42 +0,0 @@
1
- function m(c) {
2
- const l = String(c), e = [];
3
- return { toOffset: s, toPoint: i };
4
- function i(n) {
5
- if (typeof n == "number" && n > -1 && n <= l.length) {
6
- let t = 0;
7
- for (; ; ) {
8
- let r = e[t];
9
- if (r === void 0) {
10
- const u = f(l, e[t - 1]);
11
- r = u === -1 ? l.length + 1 : u + 1, e[t] = r;
12
- }
13
- if (r > n)
14
- return {
15
- line: t + 1,
16
- column: n - (t > 0 ? e[t - 1] : 0) + 1,
17
- offset: n
18
- };
19
- t++;
20
- }
21
- }
22
- }
23
- function s(n) {
24
- if (n && typeof n.line == "number" && typeof n.column == "number" && !Number.isNaN(n.line) && !Number.isNaN(n.column)) {
25
- for (; e.length < n.line; ) {
26
- const r = e[e.length - 1], u = f(l, r), o = u === -1 ? l.length + 1 : u + 1;
27
- if (r === o) break;
28
- e.push(o);
29
- }
30
- const t = (n.line > 1 ? e[n.line - 2] : 0) + n.column - 1;
31
- if (t < e[n.line - 1]) return t;
32
- }
33
- }
34
- }
35
- function f(c, l) {
36
- const e = c.indexOf("\r", l), i = c.indexOf(`
37
- `, l);
38
- return i === -1 ? e : e === -1 || e + 1 === i ? i : e < i ? e : i;
39
- }
40
- export {
41
- m as location
42
- };