stone-kit 0.0.877 → 0.0.879

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 (243) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/{src/pages/ButtonsPage/ButtonState/ButtonState.module.scss.js → ButtonState.module-DtW3aevR.js} +1 -4
  3. package/dist/FilterWithSave-Bp6rH8Pe.js +2230 -0
  4. package/dist/Menu-CgCfinVZ.js +513 -0
  5. package/dist/Option-BVIm7wOW.js +83 -0
  6. package/dist/{src/components/NewIcon/assets/PinTrans.svg.js → PinTrans-D6OZq76b.js} +4 -4
  7. package/dist/Router.js +9 -9
  8. package/dist/{src/components/NewIcon/assets/SmallFilter.svg.js → SmallFilter-C-VKnbkP.js} +3 -3
  9. package/dist/components/Button/ui/Button.js +73 -44
  10. package/dist/components/CheckBox/CheckBox.js +46 -35
  11. package/dist/components/CheckBoxNew/CheckBoxNew.js +23 -19
  12. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +31 -24
  13. package/dist/components/DestinationTab/ui/DestinationTab.js +48 -35
  14. package/dist/components/FieldInput/ui/FieldInput.js +10 -7
  15. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +5 -61
  16. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -266
  17. package/dist/components/Flex/ui/Flex.js +61 -26
  18. package/dist/components/FormModal/ui/ModalForm.js +14 -289
  19. package/dist/components/GroupedInput/ui/GroupedInputs.js +6 -5
  20. package/dist/components/Input/ui/Input.js +3307 -74
  21. package/dist/components/Logo/ui/Logo.js +31 -19
  22. package/dist/components/Logo/ui/Logo.types.js +10 -18
  23. package/dist/components/LotCard/hooks/useLotCard.js +11 -125
  24. package/dist/components/LotCard/index.js +2 -2
  25. package/dist/components/LotCard/ui/LotCard.js +9 -150
  26. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +58 -31
  27. package/dist/components/MetroLabel/ui/MetroLabel.js +24 -19
  28. package/dist/components/MetroTag/ui/MetroTag.js +72 -59
  29. package/dist/components/Modal/ui/Modal.js +38 -33
  30. package/dist/components/ModalSuccess/ModalSuccess.js +35 -26
  31. package/dist/components/NewIcon/icons/PinTrans.js +3 -3
  32. package/dist/components/NewIcon/icons/SmallFilter.js +1 -1
  33. package/dist/components/NewIcon/ui/NewIcon.js +301 -141
  34. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +15 -5
  35. package/dist/components/RoundButton/ui/RoundButton.js +60 -42
  36. package/dist/components/Select/ui/Category.js +29 -30
  37. package/dist/components/Select/ui/Option.js +5 -52
  38. package/dist/components/Select/ui/Select.js +23 -24
  39. package/dist/components/SliderNavigation/ui/SliderNavigation.js +28 -27
  40. package/dist/components/SortSelect/hooks/useSortSelect.js +4 -59
  41. package/dist/components/SortSelect/index.js +1 -1
  42. package/dist/components/SortSelect/ui/SortSelect.js +9 -114
  43. package/dist/components/SummarySelect/ui/SummarySelect.js +69 -59
  44. package/dist/components/Switcher/ui/Switcher.js +24 -13
  45. package/dist/components/TabSelect/ui/TabSelect.js +34 -28
  46. package/dist/components/TabSwitcher/index.js +2 -2
  47. package/dist/components/TabSwitcher/ui/TabSwitcher.js +7 -84
  48. package/dist/components/Tag/ui/Tag.js +67 -19
  49. package/dist/components/Text/ui/Text.js +13 -12
  50. package/dist/components/TextArea/TextArea.js +14 -11
  51. package/dist/components/ZoomControls/ui/ZoomControls.js +11 -8
  52. package/dist/components/mobileButton/ui/MobileButton.js +39 -34
  53. package/dist/index-DmANy9jd.js +890 -0
  54. package/dist/{node_modules/classnames/index.js → index-rKuIKazb.js} +15 -12
  55. package/dist/layout/Layout.js +8 -7
  56. package/dist/layout/components/Header/Header.js +44 -41
  57. package/dist/layout/components/Menu.js +6 -111
  58. package/dist/main.js +42 -46
  59. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +1 -1
  60. package/dist/pages/ButtonsPage/Buttons.js +62 -54
  61. package/dist/pages/CheckboxPage/CheckboxPage.js +51 -47
  62. package/dist/pages/FormsPage/FormsPage.js +32 -31
  63. package/dist/pages/HomePage/HomePage.js +4 -3
  64. package/dist/pages/IconsPage/IconsPage.js +10 -12
  65. package/dist/pages/InputPage/InputPage.js +12 -17
  66. package/dist/pages/LogoPage/LogoPage.js +14 -17
  67. package/dist/pages/LotsPage/LotsPage.js +15 -15
  68. package/dist/pages/ModalsPage/ModalPage.js +14 -19
  69. package/dist/pages/SelectPage/SelectPage.js +41 -42
  70. package/dist/pages/TabsPage/TabsPage.js +51 -49
  71. package/dist/pages/TagsPage/TagsPage.js +7 -10
  72. package/dist/stories/Button.js +4 -5
  73. package/dist/stories/Header.js +3 -4
  74. package/dist/stories/Page.js +2 -3
  75. package/dist/style.css +1 -1
  76. package/dist/useSortSelect-CjZXLFOG.js +80 -0
  77. package/package.json +4 -3
  78. package/dist/_virtual/_commonjsHelpers.js +0 -6
  79. package/dist/_virtual/bind.js +0 -4
  80. package/dist/_virtual/index.js +0 -4
  81. package/dist/_virtual/index2.js +0 -4
  82. package/dist/_virtual/index3.js +0 -4
  83. package/dist/_virtual/react-is.development.js +0 -4
  84. package/dist/_virtual/react-is.production.min.js +0 -4
  85. package/dist/node_modules/@remix-run/router/dist/router.js +0 -431
  86. package/dist/node_modules/classnames/bind.js +0 -42
  87. package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -35
  88. package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +0 -31
  89. package/dist/node_modules/imask/esm/controls/html-mask-element.js +0 -48
  90. package/dist/node_modules/imask/esm/controls/input-history.js +0 -30
  91. package/dist/node_modules/imask/esm/controls/input.js +0 -224
  92. package/dist/node_modules/imask/esm/controls/mask-element.js +0 -43
  93. package/dist/node_modules/imask/esm/core/action-details.js +0 -51
  94. package/dist/node_modules/imask/esm/core/change-details.js +0 -36
  95. package/dist/node_modules/imask/esm/core/continuous-tail-details.js +0 -44
  96. package/dist/node_modules/imask/esm/core/holder.js +0 -6
  97. package/dist/node_modules/imask/esm/core/utils.js +0 -80
  98. package/dist/node_modules/imask/esm/index.js +0 -50
  99. package/dist/node_modules/imask/esm/masked/base.js +0 -257
  100. package/dist/node_modules/imask/esm/masked/date.js +0 -118
  101. package/dist/node_modules/imask/esm/masked/dynamic.js +0 -224
  102. package/dist/node_modules/imask/esm/masked/enum.js +0 -70
  103. package/dist/node_modules/imask/esm/masked/factory.js +0 -51
  104. package/dist/node_modules/imask/esm/masked/function.js +0 -23
  105. package/dist/node_modules/imask/esm/masked/number.js +0 -215
  106. package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -110
  107. package/dist/node_modules/imask/esm/masked/pattern/cursor.js +0 -102
  108. package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -103
  109. package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +0 -134
  110. package/dist/node_modules/imask/esm/masked/pattern.js +0 -339
  111. package/dist/node_modules/imask/esm/masked/pipe.js +0 -23
  112. package/dist/node_modules/imask/esm/masked/range.js +0 -82
  113. package/dist/node_modules/imask/esm/masked/regexp.js +0 -21
  114. package/dist/node_modules/imask/esm/masked/repeat.js +0 -106
  115. package/dist/node_modules/object-assign/index.js +0 -55
  116. package/dist/node_modules/prop-types/checkPropTypes.js +0 -55
  117. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -53
  118. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -330
  119. package/dist/node_modules/prop-types/index.js +0 -15
  120. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -11
  121. package/dist/node_modules/prop-types/lib/has.js +0 -7
  122. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
  123. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -79
  124. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
  125. package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -1062
  126. package/dist/node_modules/react-imask/esm/input.js +0 -25
  127. package/dist/node_modules/react-imask/esm/mixin.js +0 -131
  128. package/dist/node_modules/react-router/dist/index.js +0 -486
  129. package/dist/node_modules/react-router-dom/dist/index.js +0 -424
  130. package/dist/src/components/Button/ui/Button.module.scss.js +0 -49
  131. package/dist/src/components/CheckBox/s.module.scss.js +0 -24
  132. package/dist/src/components/CheckBoxNew/s.module.scss.js +0 -13
  133. package/dist/src/components/CheckboxSelect/ui/s.module.scss.js +0 -19
  134. package/dist/src/components/DestinationTab/ui/DestinationTab.module.scss.js +0 -23
  135. package/dist/src/components/FieldInput/ui/FieldInput.module.scss.js +0 -11
  136. package/dist/src/components/FilterWithSave/ui/s.module.scss.js +0 -39
  137. package/dist/src/components/Flex/ui/Flex.module.scss.js +0 -41
  138. package/dist/src/components/FormModal/ui/ModalForm.module.scss.js +0 -31
  139. package/dist/src/components/GroupedInput/ui/GroupedInputs.module.scss.js +0 -7
  140. package/dist/src/components/Input/ui/Input.module.scss.js +0 -43
  141. package/dist/src/components/Logo/assets/LogoBlack.svg.js +0 -4
  142. package/dist/src/components/Logo/assets/LogoDom.svg.js +0 -4
  143. package/dist/src/components/Logo/assets/LogoNewDom.svg.js +0 -4
  144. package/dist/src/components/Logo/assets/LogoNewOffice.svg.js +0 -4
  145. package/dist/src/components/Logo/assets/LogoOffice.svg.js +0 -4
  146. package/dist/src/components/Logo/assets/LogoRealty.svg.js +0 -4
  147. package/dist/src/components/Logo/assets/LogoValue.svg.js +0 -4
  148. package/dist/src/components/Logo/assets/LogoWhite.svg.js +0 -4
  149. package/dist/src/components/Logo/ui/Logo.module.scss.js +0 -29
  150. package/dist/src/components/LotCard/assets/testLot.webp.js +0 -4
  151. package/dist/src/components/LotCard/ui/LotCard.module.scss.js +0 -71
  152. package/dist/src/components/LotCardSkeleton/ui/LotCardSkeleton.module.scss.js +0 -59
  153. package/dist/src/components/MetroLabel/ui/MetroLabel.module.scss.js +0 -15
  154. package/dist/src/components/MetroTag/ui/MetroTag.module.scss.js +0 -31
  155. package/dist/src/components/Modal/ui/Modal.module.scss.js +0 -15
  156. package/dist/src/components/ModalSuccess/styles.module.scss.js +0 -23
  157. package/dist/src/components/NewIcon/assets/ArrowLong.svg.js +0 -10
  158. package/dist/src/components/NewIcon/assets/ArrowShort.svg.js +0 -10
  159. package/dist/src/components/NewIcon/assets/Auto.svg.js +0 -10
  160. package/dist/src/components/NewIcon/assets/Building.svg.js +0 -10
  161. package/dist/src/components/NewIcon/assets/Burger.svg.js +0 -10
  162. package/dist/src/components/NewIcon/assets/BurgerClose.svg.js +0 -10
  163. package/dist/src/components/NewIcon/assets/Call.svg.js +0 -10
  164. package/dist/src/components/NewIcon/assets/Callback.svg.js +0 -10
  165. package/dist/src/components/NewIcon/assets/Case.svg.js +0 -10
  166. package/dist/src/components/NewIcon/assets/Check.svg.js +0 -10
  167. package/dist/src/components/NewIcon/assets/Circle.svg.js +0 -10
  168. package/dist/src/components/NewIcon/assets/Close.svg.js +0 -10
  169. package/dist/src/components/NewIcon/assets/DirectionDown.svg.js +0 -10
  170. package/dist/src/components/NewIcon/assets/Download.svg.js +0 -10
  171. package/dist/src/components/NewIcon/assets/Filter.svg.js +0 -10
  172. package/dist/src/components/NewIcon/assets/Food.svg.js +0 -10
  173. package/dist/src/components/NewIcon/assets/Fullscreen.svg.js +0 -10
  174. package/dist/src/components/NewIcon/assets/Heart.svg.js +0 -10
  175. package/dist/src/components/NewIcon/assets/Layers.svg.js +0 -10
  176. package/dist/src/components/NewIcon/assets/LayersFilled.svg.js +0 -10
  177. package/dist/src/components/NewIcon/assets/Loader.svg.js +0 -10
  178. package/dist/src/components/NewIcon/assets/Lock.svg.js +0 -10
  179. package/dist/src/components/NewIcon/assets/Metro.svg.js +0 -10
  180. package/dist/src/components/NewIcon/assets/Minus.svg.js +0 -10
  181. package/dist/src/components/NewIcon/assets/MinusCheck.svg.js +0 -10
  182. package/dist/src/components/NewIcon/assets/Moon.svg.js +0 -10
  183. package/dist/src/components/NewIcon/assets/Park.svg.js +0 -10
  184. package/dist/src/components/NewIcon/assets/Pedestrian.svg.js +0 -10
  185. package/dist/src/components/NewIcon/assets/Phone.svg.js +0 -10
  186. package/dist/src/components/NewIcon/assets/PhoneFilled.svg.js +0 -10
  187. package/dist/src/components/NewIcon/assets/Pin.svg.js +0 -10
  188. package/dist/src/components/NewIcon/assets/Play.svg.js +0 -10
  189. package/dist/src/components/NewIcon/assets/Play2.svg.js +0 -10
  190. package/dist/src/components/NewIcon/assets/Plus.svg.js +0 -10
  191. package/dist/src/components/NewIcon/assets/Redo.svg.js +0 -10
  192. package/dist/src/components/NewIcon/assets/Ruble.svg.js +0 -10
  193. package/dist/src/components/NewIcon/assets/Search.svg.js +0 -10
  194. package/dist/src/components/NewIcon/assets/SelectChecked.svg.js +0 -10
  195. package/dist/src/components/NewIcon/assets/SelectUnchecked.svg.js +0 -10
  196. package/dist/src/components/NewIcon/assets/Share.svg.js +0 -10
  197. package/dist/src/components/NewIcon/assets/Sport.svg.js +0 -10
  198. package/dist/src/components/NewIcon/assets/SquareMeter.svg.js +0 -10
  199. package/dist/src/components/NewIcon/assets/Star.svg.js +0 -10
  200. package/dist/src/components/NewIcon/assets/StarFilled.svg.js +0 -10
  201. package/dist/src/components/NewIcon/assets/Sun.svg.js +0 -10
  202. package/dist/src/components/NewIcon/assets/Telegram.svg.js +0 -10
  203. package/dist/src/components/NewIcon/assets/Timer.svg.js +0 -10
  204. package/dist/src/components/NewIcon/assets/TwoArrows.svg.js +0 -10
  205. package/dist/src/components/NewIcon/assets/User.svg.js +0 -10
  206. package/dist/src/components/NewIcon/assets/WhatsApp.svg.js +0 -10
  207. package/dist/src/components/NewIcon/assets/WithoutDecor.svg.js +0 -10
  208. package/dist/src/components/NewIcon/assets/arrowRight.svg.js +0 -10
  209. package/dist/src/components/NewIcon/assets/mail.svg.js +0 -10
  210. package/dist/src/components/NewIcon/ui/NewIcon.module.scss.js +0 -4
  211. package/dist/src/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.module.scss.js +0 -25
  212. package/dist/src/components/RoundButton/ui/RoundButton.module.scss.js +0 -29
  213. package/dist/src/components/Select/ui/Select.module.scss.js +0 -52
  214. package/dist/src/components/SliderNavigation/ui/SliderNavigation.module.scss.js +0 -7
  215. package/dist/src/components/SortSelect/ui/SortSelect.module.scss.js +0 -41
  216. package/dist/src/components/SummarySelect/ui/SummarySelect.module.scss.js +0 -25
  217. package/dist/src/components/Switcher/ui/Switcher.module.scss.js +0 -27
  218. package/dist/src/components/TabSelect/ui/TabSelect.module.scss.js +0 -17
  219. package/dist/src/components/TabSwitcher/ui/TabSwitcher.module.scss.js +0 -57
  220. package/dist/src/components/Tag/ui/Tag.module.scss.js +0 -70
  221. package/dist/src/components/Text/ui/Text.module.scss.js +0 -7
  222. package/dist/src/components/TextArea/styles.module.scss.js +0 -9
  223. package/dist/src/components/ZoomControls/ui/ZoomControls.module.scss.js +0 -11
  224. package/dist/src/components/mobileButton/ui/MobileButton.module.scss.js +0 -12
  225. package/dist/src/layout/components/Header/s.module.scss.js +0 -19
  226. package/dist/src/layout/components/Menu.module.scss.js +0 -9
  227. package/dist/src/layout/style.module.scss.js +0 -7
  228. package/dist/src/pages/ButtonsPage/ButtonState/ButtonState.js +0 -18
  229. package/dist/src/pages/ButtonsPage/ButtonsPage.module.scss.js +0 -9
  230. package/dist/src/pages/CheckboxPage/CheckboxPage.module.scss.js +0 -13
  231. package/dist/src/pages/FormsPage/FormsPage.module.scss.js +0 -15
  232. package/dist/src/pages/HomePage/HomePage.module.scss.js +0 -7
  233. package/dist/src/pages/IconsPage/IconsPage.module.scss.js +0 -9
  234. package/dist/src/pages/InputPage/InputPage.module.scss.js +0 -4
  235. package/dist/src/pages/LogoPage/LogoPage.module.scss.js +0 -7
  236. package/dist/src/pages/LotsPage/LotsPage.module.scss.js +0 -13
  237. package/dist/src/pages/ModalsPage/ModalPage.module.scss.js +0 -4
  238. package/dist/src/pages/SelectPage/SelectPage.module.scss.js +0 -11
  239. package/dist/src/pages/TabsPage/TabsPage.module.scss.js +0 -17
  240. package/dist/src/pages/TagsPage/TagsPage.module.scss.js +0 -7
  241. package/dist/src/stories/button.css.js +0 -1
  242. package/dist/src/stories/header.css.js +0 -1
  243. package/dist/src/stories/page.css.js +0 -1
@@ -1,431 +0,0 @@
1
- /**
2
- * @remix-run/router v1.19.0
3
- *
4
- * Copyright (c) Remix Software Inc.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- function S() {
12
- return S = Object.assign ? Object.assign.bind() : function(e) {
13
- for (var t = 1; t < arguments.length; t++) {
14
- var n = arguments[t];
15
- for (var a in n)
16
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
17
- }
18
- return e;
19
- }, S.apply(this, arguments);
20
- }
21
- var v;
22
- (function(e) {
23
- e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
24
- })(v || (v = {}));
25
- const I = "popstate";
26
- function oe(e) {
27
- e === void 0 && (e = {});
28
- function t(a, r) {
29
- let {
30
- pathname: i,
31
- search: o,
32
- hash: s
33
- } = a.location;
34
- return B(
35
- "",
36
- {
37
- pathname: i,
38
- search: o,
39
- hash: s
40
- },
41
- // state defaults to `null` because `window.history.state` does
42
- r.state && r.state.usr || null,
43
- r.state && r.state.key || "default"
44
- );
45
- }
46
- function n(a, r) {
47
- return typeof r == "string" ? r : C(r);
48
- }
49
- return _(t, n, null, e);
50
- }
51
- function y(e, t) {
52
- if (e === !1 || e === null || typeof e > "u")
53
- throw new Error(t);
54
- }
55
- function b(e, t) {
56
- if (!e) {
57
- typeof console < "u" && console.warn(t);
58
- try {
59
- throw new Error(t);
60
- } catch {
61
- }
62
- }
63
- }
64
- function H() {
65
- return Math.random().toString(36).substr(2, 8);
66
- }
67
- function O(e, t) {
68
- return {
69
- usr: e.state,
70
- key: e.key,
71
- idx: t
72
- };
73
- }
74
- function B(e, t, n, a) {
75
- return n === void 0 && (n = null), S({
76
- pathname: typeof e == "string" ? e : e.pathname,
77
- search: "",
78
- hash: ""
79
- }, typeof t == "string" ? E(t) : t, {
80
- state: n,
81
- // TODO: This could be cleaned up. push/replace should probably just take
82
- // full Locations now and avoid the need to run through this flow at all
83
- // But that's a pretty big refactor to the current test suite so going to
84
- // keep as is for the time being and just let any incoming keys take precedence
85
- key: t && t.key || a || H()
86
- });
87
- }
88
- function C(e) {
89
- let {
90
- pathname: t = "/",
91
- search: n = "",
92
- hash: a = ""
93
- } = e;
94
- return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), a && a !== "#" && (t += a.charAt(0) === "#" ? a : "#" + a), t;
95
- }
96
- function E(e) {
97
- let t = {};
98
- if (e) {
99
- let n = e.indexOf("#");
100
- n >= 0 && (t.hash = e.substr(n), e = e.substr(0, n));
101
- let a = e.indexOf("?");
102
- a >= 0 && (t.search = e.substr(a), e = e.substr(0, a)), e && (t.pathname = e);
103
- }
104
- return t;
105
- }
106
- function _(e, t, n, a) {
107
- a === void 0 && (a = {});
108
- let {
109
- window: r = document.defaultView,
110
- v5Compat: i = !1
111
- } = a, o = r.history, s = v.Pop, l = null, c = f();
112
- c == null && (c = 0, o.replaceState(S({}, o.state, {
113
- idx: c
114
- }), ""));
115
- function f() {
116
- return (o.state || {
117
- idx: null
118
- }).idx;
119
- }
120
- function u() {
121
- s = v.Pop;
122
- let h = f(), d = h == null ? null : h - c;
123
- c = h, l && l({
124
- action: s,
125
- location: m.location,
126
- delta: d
127
- });
128
- }
129
- function p(h, d) {
130
- s = v.Push;
131
- let g = B(m.location, h, d);
132
- c = f() + 1;
133
- let $ = O(g, c), P = m.createHref(g);
134
- try {
135
- o.pushState($, "", P);
136
- } catch (W) {
137
- if (W instanceof DOMException && W.name === "DataCloneError")
138
- throw W;
139
- r.location.assign(P);
140
- }
141
- i && l && l({
142
- action: s,
143
- location: m.location,
144
- delta: 1
145
- });
146
- }
147
- function R(h, d) {
148
- s = v.Replace;
149
- let g = B(m.location, h, d);
150
- c = f();
151
- let $ = O(g, c), P = m.createHref(g);
152
- o.replaceState($, "", P), i && l && l({
153
- action: s,
154
- location: m.location,
155
- delta: 0
156
- });
157
- }
158
- function w(h) {
159
- let d = r.location.origin !== "null" ? r.location.origin : r.location.href, g = typeof h == "string" ? h : C(h);
160
- return g = g.replace(/ $/, "%20"), y(d, "No window.location.(origin|href) available to create URL for href: " + g), new URL(g, d);
161
- }
162
- let m = {
163
- get action() {
164
- return s;
165
- },
166
- get location() {
167
- return e(r, o);
168
- },
169
- listen(h) {
170
- if (l)
171
- throw new Error("A history only accepts one active listener");
172
- return r.addEventListener(I, u), l = h, () => {
173
- r.removeEventListener(I, u), l = null;
174
- };
175
- },
176
- createHref(h) {
177
- return t(r, h);
178
- },
179
- createURL: w,
180
- encodeLocation(h) {
181
- let d = w(h);
182
- return {
183
- pathname: d.pathname,
184
- search: d.search,
185
- hash: d.hash
186
- };
187
- },
188
- push: p,
189
- replace: R,
190
- go(h) {
191
- return o.go(h);
192
- }
193
- };
194
- return m;
195
- }
196
- var U;
197
- (function(e) {
198
- e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
199
- })(U || (U = {}));
200
- function ce(e, t, n) {
201
- return n === void 0 && (n = "/"), F(e, t, n, !1);
202
- }
203
- function F(e, t, n, a) {
204
- let r = typeof t == "string" ? E(t) : t, i = ee(r.pathname || "/", n);
205
- if (i == null)
206
- return null;
207
- let o = A(e);
208
- V(o);
209
- let s = null;
210
- for (let l = 0; s == null && l < o.length; ++l) {
211
- let c = Z(i);
212
- s = X(o[l], c, a);
213
- }
214
- return s;
215
- }
216
- function A(e, t, n, a) {
217
- t === void 0 && (t = []), n === void 0 && (n = []), a === void 0 && (a = "");
218
- let r = (i, o, s) => {
219
- let l = {
220
- relativePath: s === void 0 ? i.path || "" : s,
221
- caseSensitive: i.caseSensitive === !0,
222
- childrenIndex: o,
223
- route: i
224
- };
225
- l.relativePath.startsWith("/") && (y(l.relativePath.startsWith(a), 'Absolute route path "' + l.relativePath + '" nested under path ' + ('"' + a + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), l.relativePath = l.relativePath.slice(a.length));
226
- let c = x([a, l.relativePath]), f = n.concat(l);
227
- i.children && i.children.length > 0 && (y(
228
- // Our types know better, but runtime JS may not!
229
- // @ts-expect-error
230
- i.index !== !0,
231
- "Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
232
- ), A(i.children, t, f, c)), !(i.path == null && !i.index) && t.push({
233
- path: c,
234
- score: K(c, i.index),
235
- routesMeta: f
236
- });
237
- };
238
- return e.forEach((i, o) => {
239
- var s;
240
- if (i.path === "" || !((s = i.path) != null && s.includes("?")))
241
- r(i, o);
242
- else
243
- for (let l of N(i.path))
244
- r(i, o, l);
245
- }), t;
246
- }
247
- function N(e) {
248
- let t = e.split("/");
249
- if (t.length === 0)
250
- return [];
251
- let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
252
- if (a.length === 0)
253
- return r ? [i, ""] : [i];
254
- let o = N(a.join("/")), s = [];
255
- return s.push(...o.map((l) => l === "" ? i : [i, l].join("/"))), r && s.push(...o), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
256
- }
257
- function V(e) {
258
- e.sort((t, n) => t.score !== n.score ? n.score - t.score : Q(t.routesMeta.map((a) => a.childrenIndex), n.routesMeta.map((a) => a.childrenIndex)));
259
- }
260
- const k = /^:[\w-]+$/, z = 3, q = 2, D = 1, G = 10, J = -2, j = (e) => e === "*";
261
- function K(e, t) {
262
- let n = e.split("/"), a = n.length;
263
- return n.some(j) && (a += J), t && (a += q), n.filter((r) => !j(r)).reduce((r, i) => r + (k.test(i) ? z : i === "" ? D : G), a);
264
- }
265
- function Q(e, t) {
266
- return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
267
- // If two routes are siblings, we should try to match the earlier sibling
268
- // first. This allows people to have fine-grained control over the matching
269
- // behavior by simply putting routes with identical paths in the order they
270
- // want them tried.
271
- e[e.length - 1] - t[t.length - 1]
272
- ) : (
273
- // Otherwise, it doesn't really make sense to rank non-siblings by index,
274
- // so they sort equally.
275
- 0
276
- );
277
- }
278
- function X(e, t, n) {
279
- let {
280
- routesMeta: a
281
- } = e, r = {}, i = "/", o = [];
282
- for (let s = 0; s < a.length; ++s) {
283
- let l = a[s], c = s === a.length - 1, f = i === "/" ? t : t.slice(i.length) || "/", u = M({
284
- path: l.relativePath,
285
- caseSensitive: l.caseSensitive,
286
- end: c
287
- }, f), p = l.route;
288
- if (!u && c && n && !a[a.length - 1].route.index && (u = M({
289
- path: l.relativePath,
290
- caseSensitive: l.caseSensitive,
291
- end: !1
292
- }, f)), !u)
293
- return null;
294
- Object.assign(r, u.params), o.push({
295
- // TODO: Can this as be avoided?
296
- params: r,
297
- pathname: x([i, u.pathname]),
298
- pathnameBase: re(x([i, u.pathnameBase])),
299
- route: p
300
- }), u.pathnameBase !== "/" && (i = x([i, u.pathnameBase]));
301
- }
302
- return o;
303
- }
304
- function M(e, t) {
305
- typeof e == "string" && (e = {
306
- path: e,
307
- caseSensitive: !1,
308
- end: !0
309
- });
310
- let [n, a] = Y(e.path, e.caseSensitive, e.end), r = t.match(n);
311
- if (!r)
312
- return null;
313
- let i = r[0], o = i.replace(/(.)\/+$/, "$1"), s = r.slice(1);
314
- return {
315
- params: a.reduce((c, f, u) => {
316
- let {
317
- paramName: p,
318
- isOptional: R
319
- } = f;
320
- if (p === "*") {
321
- let m = s[u] || "";
322
- o = i.slice(0, i.length - m.length).replace(/(.)\/+$/, "$1");
323
- }
324
- const w = s[u];
325
- return R && !w ? c[p] = void 0 : c[p] = (w || "").replace(/%2F/g, "/"), c;
326
- }, {}),
327
- pathname: i,
328
- pathnameBase: o,
329
- pattern: e
330
- };
331
- }
332
- function Y(e, t, n) {
333
- t === void 0 && (t = !1), n === void 0 && (n = !0), b(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
334
- let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, s, l) => (a.push({
335
- paramName: s,
336
- isOptional: l != null
337
- }), l ? "/?([^\\/]+)?" : "/([^\\/]+)"));
338
- return e.endsWith("*") ? (a.push({
339
- paramName: "*"
340
- }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
341
- }
342
- function Z(e) {
343
- try {
344
- return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
345
- } catch (t) {
346
- return b(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
347
- }
348
- }
349
- function ee(e, t) {
350
- if (t === "/")
351
- return e;
352
- if (!e.toLowerCase().startsWith(t.toLowerCase()))
353
- return null;
354
- let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
355
- return a && a !== "/" ? null : e.slice(n) || "/";
356
- }
357
- function te(e, t) {
358
- t === void 0 && (t = "/");
359
- let {
360
- pathname: n,
361
- search: a = "",
362
- hash: r = ""
363
- } = typeof e == "string" ? E(e) : e;
364
- return {
365
- pathname: n ? n.startsWith("/") ? n : ne(n, t) : t,
366
- search: ie(a),
367
- hash: le(r)
368
- };
369
- }
370
- function ne(e, t) {
371
- let n = t.replace(/\/+$/, "").split("/");
372
- return e.split("/").forEach((r) => {
373
- r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
374
- }), n.length > 1 ? n.join("/") : "/";
375
- }
376
- function L(e, t, n, a) {
377
- return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(a) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
378
- }
379
- function ae(e) {
380
- return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
381
- }
382
- function he(e, t) {
383
- let n = ae(e);
384
- return t ? n.map((a, r) => r === n.length - 1 ? a.pathname : a.pathnameBase) : n.map((a) => a.pathnameBase);
385
- }
386
- function ue(e, t, n, a) {
387
- a === void 0 && (a = !1);
388
- let r;
389
- typeof e == "string" ? r = E(e) : (r = S({}, e), y(!r.pathname || !r.pathname.includes("?"), L("?", "pathname", "search", r)), y(!r.pathname || !r.pathname.includes("#"), L("#", "pathname", "hash", r)), y(!r.search || !r.search.includes("#"), L("#", "search", "hash", r)));
390
- let i = e === "" || r.pathname === "", o = i ? "/" : r.pathname, s;
391
- if (o == null)
392
- s = n;
393
- else {
394
- let u = t.length - 1;
395
- if (!a && o.startsWith("..")) {
396
- let p = o.split("/");
397
- for (; p[0] === ".."; )
398
- p.shift(), u -= 1;
399
- r.pathname = p.join("/");
400
- }
401
- s = u >= 0 ? t[u] : "/";
402
- }
403
- let l = te(r, s), c = o && o !== "/" && o.endsWith("/"), f = (i || o === ".") && n.endsWith("/");
404
- return !l.pathname.endsWith("/") && (c || f) && (l.pathname += "/"), l;
405
- }
406
- const x = (e) => e.join("/").replace(/\/\/+/g, "/"), re = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), ie = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, le = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
407
- function fe(e) {
408
- return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
409
- }
410
- const T = ["post", "put", "patch", "delete"];
411
- new Set(T);
412
- const se = ["get", ...T];
413
- new Set(se);
414
- export {
415
- v as Action,
416
- Z as UNSAFE_decodePath,
417
- he as UNSAFE_getResolveToMatches,
418
- y as UNSAFE_invariant,
419
- b as UNSAFE_warning,
420
- oe as createBrowserHistory,
421
- C as createPath,
422
- fe as isRouteErrorResponse,
423
- x as joinPaths,
424
- M as matchPath,
425
- ce as matchRoutes,
426
- re as normalizePathname,
427
- E as parsePath,
428
- te as resolvePath,
429
- ue as resolveTo,
430
- ee as stripBasename
431
- };
@@ -1,42 +0,0 @@
1
- import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as o } from "../../_virtual/bind.js";
3
- /*!
4
- Copyright (c) 2018 Jed Watson.
5
- Licensed under the MIT License (MIT), see
6
- http://jedwatson.github.io/classnames
7
- */
8
- (function(e) {
9
- (function() {
10
- var f = {}.hasOwnProperty;
11
- function s() {
12
- for (var t = "", r = 0; r < arguments.length; r++) {
13
- var n = arguments[r];
14
- n && (t = i(t, p.call(this, n)));
15
- }
16
- return t;
17
- }
18
- function p(t) {
19
- if (typeof t == "string" || typeof t == "number")
20
- return this && this[t] || t;
21
- if (typeof t != "object")
22
- return "";
23
- if (Array.isArray(t))
24
- return s.apply(this, t);
25
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
26
- return t.toString();
27
- var r = "";
28
- for (var n in t)
29
- f.call(t, n) && t[n] && (r = i(r, this && this[n] || n));
30
- return r;
31
- }
32
- function i(t, r) {
33
- return r ? t ? t + " " + r : t + r : t;
34
- }
35
- e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
36
- })();
37
- })(o);
38
- var c = o.exports;
39
- const m = /* @__PURE__ */ u(c);
40
- export {
41
- m as default
42
- };
@@ -1,35 +0,0 @@
1
- import i from "./html-mask-element.js";
2
- import l from "../core/holder.js";
3
- import "./mask-element.js";
4
- class r extends i {
5
- /** Returns HTMLElement selection start */
6
- get _unsafeSelectionStart() {
7
- const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
8
- return n == null || e == null || e < n ? e : n;
9
- }
10
- /** Returns HTMLElement selection end */
11
- get _unsafeSelectionEnd() {
12
- const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
13
- return n == null || e == null || e > n ? e : n;
14
- }
15
- /** Sets HTMLElement selection */
16
- _unsafeSelect(o, t) {
17
- if (!this.rootElement.createRange)
18
- return;
19
- const e = this.rootElement.createRange();
20
- e.setStart(this.input.firstChild || this.input, o), e.setEnd(this.input.lastChild || this.input, t);
21
- const n = this.rootElement, s = n.getSelection && n.getSelection();
22
- s && (s.removeAllRanges(), s.addRange(e));
23
- }
24
- /** HTMLElement value */
25
- get value() {
26
- return this.input.textContent || "";
27
- }
28
- set value(o) {
29
- this.input.textContent = o;
30
- }
31
- }
32
- l.HTMLContenteditableMaskElement = r;
33
- export {
34
- r as default
35
- };
@@ -1,31 +0,0 @@
1
- import e from "./html-mask-element.js";
2
- import s from "../core/holder.js";
3
- import "./mask-element.js";
4
- class r extends e {
5
- /** InputElement to use mask on */
6
- constructor(t) {
7
- super(t), this.input = t;
8
- }
9
- /** Returns InputElement selection start */
10
- get _unsafeSelectionStart() {
11
- return this.input.selectionStart != null ? this.input.selectionStart : this.value.length;
12
- }
13
- /** Returns InputElement selection end */
14
- get _unsafeSelectionEnd() {
15
- return this.input.selectionEnd;
16
- }
17
- /** Sets InputElement selection */
18
- _unsafeSelect(t, n) {
19
- this.input.setSelectionRange(t, n);
20
- }
21
- get value() {
22
- return this.input.value;
23
- }
24
- set value(t) {
25
- this.input.value = t;
26
- }
27
- }
28
- s.HTMLMaskElement = e;
29
- export {
30
- r as default
31
- };
@@ -1,48 +0,0 @@
1
- import s from "./mask-element.js";
2
- import o from "../core/holder.js";
3
- const e = 90, r = 89;
4
- class h extends s {
5
- /** HTMLElement to use mask on */
6
- constructor(t) {
7
- super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
8
- }
9
- get rootElement() {
10
- var t, n, i;
11
- return (t = (n = (i = this.input).getRootNode) == null ? void 0 : n.call(i)) != null ? t : document;
12
- }
13
- /** Is element in focus */
14
- get isActive() {
15
- return this.input === this.rootElement.activeElement;
16
- }
17
- /** Binds HTMLElement events to mask internal events */
18
- bindEvents(t) {
19
- this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
20
- }
21
- _onKeydown(t) {
22
- if (this._handlers.redo && (t.keyCode === e && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === r && t.ctrlKey))
23
- return t.preventDefault(), this._handlers.redo(t);
24
- if (this._handlers.undo && t.keyCode === e && (t.metaKey || t.ctrlKey))
25
- return t.preventDefault(), this._handlers.undo(t);
26
- t.isComposing || this._handlers.selectionChange(t);
27
- }
28
- _onBeforeinput(t) {
29
- if (t.inputType === "historyUndo" && this._handlers.undo)
30
- return t.preventDefault(), this._handlers.undo(t);
31
- if (t.inputType === "historyRedo" && this._handlers.redo)
32
- return t.preventDefault(), this._handlers.redo(t);
33
- }
34
- _onCompositionEnd(t) {
35
- this._handlers.input(t);
36
- }
37
- _onInput(t) {
38
- t.isComposing || this._handlers.input(t);
39
- }
40
- /** Unbinds HTMLElement events to mask internal events */
41
- unbindEvents() {
42
- this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
43
- }
44
- }
45
- o.HTMLMaskElement = h;
46
- export {
47
- h as default
48
- };
@@ -1,30 +0,0 @@
1
- class s {
2
- constructor() {
3
- this.states = [], this.currentIndex = 0;
4
- }
5
- get currentState() {
6
- return this.states[this.currentIndex];
7
- }
8
- get isEmpty() {
9
- return this.states.length === 0;
10
- }
11
- push(t) {
12
- this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > s.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
13
- }
14
- go(t) {
15
- return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
16
- }
17
- undo() {
18
- return this.go(-1);
19
- }
20
- redo() {
21
- return this.go(1);
22
- }
23
- clear() {
24
- this.states.length = 0, this.currentIndex = 0;
25
- }
26
- }
27
- s.MAX_LENGTH = 100;
28
- export {
29
- s as default
30
- };