@cagatayfdn/flora-components 0.0.71 → 0.0.73

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 (179) hide show
  1. package/dist/Accordion.css +1 -0
  2. package/dist/ActionButton.css +1 -0
  3. package/dist/AlertCard.css +1 -0
  4. package/dist/Autocomplete.css +1 -0
  5. package/dist/Button.css +1 -0
  6. package/dist/Card.css +1 -0
  7. package/dist/Checkbox.css +1 -0
  8. package/dist/Config.css +1 -0
  9. package/dist/Confirm.css +1 -0
  10. package/dist/ContentHeader.css +1 -0
  11. package/dist/Datepicker.css +1 -0
  12. package/dist/Divider.css +1 -0
  13. package/dist/DropdownList.css +1 -0
  14. package/dist/ErrorLogModal.css +1 -0
  15. package/dist/FileUpload.css +1 -0
  16. package/dist/FileUpload.module-bCNvwTRa.js +32 -0
  17. package/dist/Heading.css +1 -0
  18. package/dist/InfoBoxList.css +1 -0
  19. package/dist/InfoBoxList.module-C6t2KDOB.js +8 -0
  20. package/dist/InfoDate.css +1 -0
  21. package/dist/InfoText.css +1 -0
  22. package/dist/Input.css +1 -0
  23. package/dist/Label.css +1 -0
  24. package/dist/Legends.css +1 -0
  25. package/dist/Loading.css +1 -0
  26. package/dist/MenuItem-BGZHvTKI.js +53 -0
  27. package/dist/MenuItem.css +1 -0
  28. package/dist/Modal.css +1 -0
  29. package/dist/NoResult.css +1 -0
  30. package/dist/PageWrap.css +1 -0
  31. package/dist/Pager.css +1 -0
  32. package/dist/Panel.css +1 -0
  33. package/dist/Radio.css +1 -0
  34. package/dist/ResultError.css +1 -0
  35. package/dist/ScrollContainer.css +1 -0
  36. package/dist/Select-DcLZCXNo.js +1831 -0
  37. package/dist/Select.css +1 -0
  38. package/dist/Select.module-BVWgPUEN.js +20 -0
  39. package/dist/StatusTypography.css +1 -0
  40. package/dist/Stepper.css +1 -0
  41. package/dist/Switch.css +1 -0
  42. package/dist/Tab.css +1 -0
  43. package/dist/TableHeader-B91BXue0.js +159 -0
  44. package/dist/TableHeader.css +1 -0
  45. package/dist/Textarea.css +1 -0
  46. package/dist/Tooltip.css +1 -0
  47. package/dist/Trans-B4ILpbwK.js +343 -0
  48. package/dist/TypographyText.css +1 -0
  49. package/dist/ValidationError.css +1 -0
  50. package/dist/_commonjsHelpers-CT_km90n.js +30 -0
  51. package/dist/_isArray-CBUZFxFA.js +6 -0
  52. package/dist/_isString-BUpNGP_8.js +6 -0
  53. package/dist/_reduce-DsUCMz4O.js +148 -0
  54. package/dist/assets/icons/icons.js +62 -0
  55. package/dist/assets/images/500_error_2x.gif +0 -0
  56. package/dist/assets/images/oms.png +0 -0
  57. package/dist/components/Accordion/Accordion.js +57 -0
  58. package/dist/components/ActionButton/ActionButton.js +54 -0
  59. package/dist/components/AlertCard/AlertCard.js +29 -0
  60. package/dist/components/AuthUserCan/Permission.js +18 -0
  61. package/dist/components/AuthUserCan/index.js +23 -0
  62. package/dist/components/Autocomplete/Autocomplete.js +87 -0
  63. package/dist/components/Button/Button.js +87 -0
  64. package/dist/components/Card/Card.js +21 -0
  65. package/dist/components/Charts/Bar.js +18 -0
  66. package/dist/components/Charts/Legends.js +21 -0
  67. package/dist/components/Charts/Line.js +18 -0
  68. package/dist/components/Charts/Pie.js +43 -0
  69. package/dist/components/Charts/index.js +31 -0
  70. package/dist/components/Charts/types.js +1 -0
  71. package/dist/components/Charts/utils.js +12 -0
  72. package/dist/components/Checkbox/Checkbox.js +119 -0
  73. package/dist/components/Config/Config.js +32 -0
  74. package/dist/components/Confirm/Confirm.js +52 -0
  75. package/dist/components/ContentHeader/ContentHeader.js +75 -0
  76. package/dist/components/ContentLoader/ContentLoader.js +16 -0
  77. package/dist/components/Countdown/Countdown.js +20 -0
  78. package/dist/components/Datepicker/Datepicker.js +1478 -0
  79. package/dist/components/Divider/Divider.js +26 -0
  80. package/dist/components/Dropdown/DropdownList.js +90 -0
  81. package/dist/components/ErrorLogModal/ErrorLogModal.js +63 -0
  82. package/dist/components/FileUpload/FileUpload.js +237 -0
  83. package/dist/components/FileUpload/ImagePreview.js +19 -0
  84. package/dist/components/FileUpload/LengthCard.js +6 -0
  85. package/dist/components/FileUpload/PreviewModal.js +53 -0
  86. package/dist/components/Grid/Column.js +29 -0
  87. package/dist/components/Grid/Row.js +6 -0
  88. package/dist/components/Heading/Heading.js +22 -0
  89. package/dist/components/Icon/index.js +24 -0
  90. package/dist/components/InfiniteScroll/InfiniteScroll.js +41 -0
  91. package/dist/components/InfoBoxList/InfoBoxList.js +30 -0
  92. package/dist/components/InfoBoxList/helper.js +83 -0
  93. package/dist/components/InfoDate/InfoDate.js +19 -0
  94. package/dist/components/InfoText/InfoText.js +13 -0
  95. package/dist/components/Input/Input.js +140 -0
  96. package/dist/components/Label/Label.js +22 -0
  97. package/dist/components/Loading/Loading.js +62 -0
  98. package/dist/components/Modal/Modal.js +57 -0
  99. package/dist/components/NavigatorCard/index.js +59 -0
  100. package/dist/components/NoResult/NoResult.js +12 -0
  101. package/dist/components/Notification/Notification.js +26 -0
  102. package/dist/components/PageWrapper/PageWrap.js +46 -0
  103. package/dist/components/Pager/Pager.js +103 -0
  104. package/dist/components/Panel/Panel.js +69 -0
  105. package/dist/components/PermaLink/PermaLink.js +34 -0
  106. package/dist/components/Radio/Radio.js +96 -0
  107. package/dist/components/ResultError/ResultError.js +20 -0
  108. package/dist/components/ScrollContainer/ScrollContainer.js +21 -0
  109. package/dist/components/Select/NoData.js +10 -0
  110. package/dist/components/Select/OptionItem.js +19 -0
  111. package/dist/components/Select/Select.js +13 -0
  112. package/dist/components/Sidebar/MenuItem.js +9 -0
  113. package/dist/components/Sidebar/index.js +137 -0
  114. package/dist/components/StatusTypography/StatusTypography.js +51 -0
  115. package/dist/components/Stepper/Stepper.js +72 -0
  116. package/dist/components/Switch/Switch.js +79 -0
  117. package/dist/components/Tab/Tab.js +28 -0
  118. package/dist/components/Table/Table.js +201 -0
  119. package/dist/components/Table/TableHeader.js +14 -0
  120. package/dist/components/Textarea/Textarea.js +95 -0
  121. package/dist/components/Tooltip/Tooltip.js +1548 -0
  122. package/dist/components/TypographyText/TypographyText.js +87 -0
  123. package/dist/components/ValidationError/ValidationError.js +7 -0
  124. package/dist/components/index.js +125 -0
  125. package/dist/defineProperty-DeKy1XT0.js +37 -0
  126. package/dist/enums/appearance.js +14 -0
  127. package/dist/enums/applicationTypeSlug.js +4 -0
  128. package/dist/enums/index.js +27 -0
  129. package/dist/enums/isActiveColor.js +4 -0
  130. package/dist/enums/size.js +4 -0
  131. package/dist/enums/status.js +9 -0
  132. package/dist/equals-PL9KqVQf.js +119 -0
  133. package/dist/flatpickr-CRz1AV0e.js +59 -0
  134. package/dist/hooks/index.js +9 -0
  135. package/dist/hooks/useAauth.js +40 -0
  136. package/dist/hooks/useDisclosure.js +14 -0
  137. package/dist/hooks/useNiceModal.js +13 -0
  138. package/dist/i18nInstance-CiCZbaCK.js +55 -0
  139. package/dist/includes-8YTFrx85.js +46 -0
  140. package/dist/index-BHf7G3IG.js +35 -0
  141. package/dist/index-BJU1K2Aw.js +8003 -0
  142. package/dist/index-C9yacAGx.js +359 -0
  143. package/dist/index-CB61CB0b.js +669 -0
  144. package/dist/index-H7XbDVmH.js +320 -0
  145. package/dist/index-a0GSBrWt.js +364 -0
  146. package/dist/index.css +1 -0
  147. package/dist/index.d.ts +2 -0
  148. package/dist/index.js +181 -0
  149. package/dist/jsx-runtime-BcAkpsdy.js +631 -0
  150. package/dist/keys-B0bo5Q7o.js +67 -0
  151. package/dist/locales/en/index.js +613 -0
  152. package/dist/locales/i18n.js +1417 -0
  153. package/dist/locales/index.js +5 -0
  154. package/dist/locales/tr/index.js +613 -0
  155. package/dist/prodivers.css +6 -0
  156. package/dist/prodivers.js +12 -0
  157. package/dist/react-content-loader.es-CswLCxkm.js +90 -0
  158. package/dist/react-toastify.esm-BUWNP7Nm.js +808 -0
  159. package/dist/types/common/date.js +1 -0
  160. package/dist/types/common/events.js +1 -0
  161. package/dist/types/common/forms.js +1 -0
  162. package/dist/types/common/option.js +1 -0
  163. package/dist/types/index.js +1 -0
  164. package/dist/useTranslation-CnCPcxVj.js +142 -0
  165. package/dist/utils/date.js +413 -0
  166. package/dist/utils/flatpickr.js +4 -0
  167. package/dist/utils/helper.js +1463 -0
  168. package/dist/utils/index.js +21 -0
  169. package/dist/utils/language.js +46 -0
  170. package/dist/utils/validation.js +27 -0
  171. package/dist/utils/yup.js +2921 -0
  172. package/package.json +8 -2
  173. package/dist/index.cjs.js +0 -295
  174. package/dist/index.cjs.js.map +0 -1
  175. package/dist/index.es.js +0 -25008
  176. package/dist/index.es.js.map +0 -1
  177. package/dist/index.umd.js +0 -295
  178. package/dist/index.umd.js.map +0 -1
  179. package/dist/style.css +0 -1
@@ -0,0 +1,359 @@
1
+ import * as m from "react";
2
+ import "react-dom";
3
+ import { u as D, a as I, D as Y, N as F, s as E, i as S, m as W, w as j, b as J, c as Q, d as Z, e as A, f as $, R as ee, j as te } from "./index-a0GSBrWt.js";
4
+ /**
5
+ * React Router DOM v6.22.0
6
+ *
7
+ * Copyright (c) Remix Software Inc.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE.md file in the root directory of this source tree.
11
+ *
12
+ * @license MIT
13
+ */
14
+ function N() {
15
+ return N = Object.assign ? Object.assign.bind() : function(e) {
16
+ for (var n = 1; n < arguments.length; n++) {
17
+ var r = arguments[n];
18
+ for (var a in r)
19
+ Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
20
+ }
21
+ return e;
22
+ }, N.apply(this, arguments);
23
+ }
24
+ function K(e, n) {
25
+ if (e == null)
26
+ return {};
27
+ var r = {}, a = Object.keys(e), t, i;
28
+ for (i = 0; i < a.length; i++)
29
+ t = a[i], !(n.indexOf(t) >= 0) && (r[t] = e[t]);
30
+ return r;
31
+ }
32
+ const _ = "get", L = "application/x-www-form-urlencoded";
33
+ function P(e) {
34
+ return e != null && typeof e.tagName == "string";
35
+ }
36
+ function ne(e) {
37
+ return P(e) && e.tagName.toLowerCase() === "button";
38
+ }
39
+ function re(e) {
40
+ return P(e) && e.tagName.toLowerCase() === "form";
41
+ }
42
+ function ae(e) {
43
+ return P(e) && e.tagName.toLowerCase() === "input";
44
+ }
45
+ function ie(e) {
46
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
47
+ }
48
+ function oe(e, n) {
49
+ return e.button === 0 && // Ignore everything but left clicks
50
+ (!n || n === "_self") && // Let browser handle "target=_blank" etc.
51
+ !ie(e);
52
+ }
53
+ let R = null;
54
+ function le() {
55
+ if (R === null)
56
+ try {
57
+ new FormData(
58
+ document.createElement("form"),
59
+ // @ts-expect-error if FormData supports the submitter parameter, this will throw
60
+ 0
61
+ ), R = !1;
62
+ } catch {
63
+ R = !0;
64
+ }
65
+ return R;
66
+ }
67
+ const se = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
68
+ function k(e) {
69
+ return e != null && !se.has(e) ? (process.env.NODE_ENV !== "production" && j(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + L + '"')), null) : e;
70
+ }
71
+ function ue(e, n) {
72
+ let r, a, t, i, o;
73
+ if (re(e)) {
74
+ let s = e.getAttribute("action");
75
+ a = s ? E(s, n) : null, r = e.getAttribute("method") || _, t = k(e.getAttribute("enctype")) || L, i = new FormData(e);
76
+ } else if (ne(e) || ae(e) && (e.type === "submit" || e.type === "image")) {
77
+ let s = e.form;
78
+ if (s == null)
79
+ throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
80
+ let u = e.getAttribute("formaction") || s.getAttribute("action");
81
+ if (a = u ? E(u, n) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") || _, t = k(e.getAttribute("formenctype")) || k(s.getAttribute("enctype")) || L, i = new FormData(s, e), !le()) {
82
+ let {
83
+ name: l,
84
+ type: p,
85
+ value: v
86
+ } = e;
87
+ if (p === "image") {
88
+ let h = l ? l + "." : "";
89
+ i.append(h + "x", "0"), i.append(h + "y", "0");
90
+ } else
91
+ l && i.append(l, v);
92
+ }
93
+ } else {
94
+ if (P(e))
95
+ throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
96
+ r = _, a = null, t = L, o = e;
97
+ }
98
+ return i && t === "text/plain" && (o = i, i = void 0), {
99
+ action: a,
100
+ method: r.toLowerCase(),
101
+ encType: t,
102
+ formData: i,
103
+ body: o
104
+ };
105
+ }
106
+ const ce = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], fe = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], me = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], de = "6";
107
+ try {
108
+ window.__reactRouterVersion = de;
109
+ } catch {
110
+ }
111
+ const z = /* @__PURE__ */ m.createContext({
112
+ isTransitioning: !1
113
+ });
114
+ process.env.NODE_ENV !== "production" && (z.displayName = "ViewTransition");
115
+ const pe = /* @__PURE__ */ m.createContext(/* @__PURE__ */ new Map());
116
+ process.env.NODE_ENV !== "production" && (pe.displayName = "Fetchers");
117
+ process.env.NODE_ENV;
118
+ const he = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ve = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, q = /* @__PURE__ */ m.forwardRef(function(n, r) {
119
+ let {
120
+ onClick: a,
121
+ relative: t,
122
+ reloadDocument: i,
123
+ replace: o,
124
+ state: s,
125
+ target: u,
126
+ to: l,
127
+ preventScrollReset: p,
128
+ unstable_viewTransition: v
129
+ } = n, h = K(n, ce), {
130
+ basename: x
131
+ } = m.useContext(F), b, w = !1;
132
+ if (typeof l == "string" && ve.test(l) && (b = l, he))
133
+ try {
134
+ let d = new URL(window.location.href), f = l.startsWith("//") ? new URL(d.protocol + l) : new URL(l), C = E(f.pathname, x);
135
+ f.origin === d.origin && C != null ? l = C + f.search + f.hash : w = !0;
136
+ } catch {
137
+ process.env.NODE_ENV !== "production" && j(!1, '<Link to="' + l + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
138
+ }
139
+ let y = J(l, {
140
+ relative: t
141
+ }), g = ge(l, {
142
+ replace: o,
143
+ state: s,
144
+ target: u,
145
+ preventScrollReset: p,
146
+ relative: t,
147
+ unstable_viewTransition: v
148
+ });
149
+ function c(d) {
150
+ a && a(d), d.defaultPrevented || g(d);
151
+ }
152
+ return (
153
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
154
+ /* @__PURE__ */ m.createElement("a", N({}, h, {
155
+ href: b || y,
156
+ onClick: w || i ? a : c,
157
+ ref: r,
158
+ target: u
159
+ }))
160
+ );
161
+ });
162
+ process.env.NODE_ENV !== "production" && (q.displayName = "Link");
163
+ const be = /* @__PURE__ */ m.forwardRef(function(n, r) {
164
+ let {
165
+ "aria-current": a = "page",
166
+ caseSensitive: t = !1,
167
+ className: i = "",
168
+ end: o = !1,
169
+ style: s,
170
+ to: u,
171
+ unstable_viewTransition: l,
172
+ children: p
173
+ } = n, v = K(n, fe), h = D(u, {
174
+ relative: v.relative
175
+ }), x = I(), b = m.useContext(Y), {
176
+ navigator: w,
177
+ basename: y
178
+ } = m.useContext(F), g = b != null && // Conditional usage is OK here because the usage of a data router is static
179
+ // eslint-disable-next-line react-hooks/rules-of-hooks
180
+ Re(h) && l === !0, c = w.encodeLocation ? w.encodeLocation(h).pathname : h.pathname, d = x.pathname, f = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
181
+ t || (d = d.toLowerCase(), f = f ? f.toLowerCase() : null, c = c.toLowerCase()), f && y && (f = E(f, y) || f);
182
+ const C = c !== "/" && c.endsWith("/") ? c.length - 1 : c.length;
183
+ let O = d === c || !o && d.startsWith(c) && d.charAt(C) === "/", M = f != null && (f === c || !o && f.startsWith(c) && f.charAt(c.length) === "/"), V = {
184
+ isActive: O,
185
+ isPending: M,
186
+ isTransitioning: g
187
+ }, H = O ? a : void 0, U;
188
+ typeof i == "function" ? U = i(V) : U = [i, O ? "active" : null, M ? "pending" : null, g ? "transitioning" : null].filter(Boolean).join(" ");
189
+ let X = typeof s == "function" ? s(V) : s;
190
+ return /* @__PURE__ */ m.createElement(q, N({}, v, {
191
+ "aria-current": H,
192
+ className: U,
193
+ ref: r,
194
+ style: X,
195
+ to: u,
196
+ unstable_viewTransition: l
197
+ }), typeof p == "function" ? p(V) : p);
198
+ });
199
+ process.env.NODE_ENV !== "production" && (be.displayName = "NavLink");
200
+ const we = /* @__PURE__ */ m.forwardRef((e, n) => {
201
+ let {
202
+ fetcherKey: r,
203
+ navigate: a,
204
+ reloadDocument: t,
205
+ replace: i,
206
+ state: o,
207
+ method: s = _,
208
+ action: u,
209
+ onSubmit: l,
210
+ relative: p,
211
+ preventScrollReset: v,
212
+ unstable_viewTransition: h
213
+ } = e, x = K(e, me), b = xe(), w = Ce(u, {
214
+ relative: p
215
+ }), y = s.toLowerCase() === "get" ? "get" : "post", g = (c) => {
216
+ if (l && l(c), c.defaultPrevented)
217
+ return;
218
+ c.preventDefault();
219
+ let d = c.nativeEvent.submitter, f = (d == null ? void 0 : d.getAttribute("formmethod")) || s;
220
+ b(d || c.currentTarget, {
221
+ fetcherKey: r,
222
+ method: f,
223
+ navigate: a,
224
+ replace: i,
225
+ state: o,
226
+ relative: p,
227
+ preventScrollReset: v,
228
+ unstable_viewTransition: h
229
+ });
230
+ };
231
+ return /* @__PURE__ */ m.createElement("form", N({
232
+ ref: n,
233
+ method: y,
234
+ action: w,
235
+ onSubmit: t ? l : g
236
+ }, x));
237
+ });
238
+ process.env.NODE_ENV !== "production" && (we.displayName = "Form");
239
+ process.env.NODE_ENV;
240
+ var T;
241
+ (function(e) {
242
+ e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
243
+ })(T || (T = {}));
244
+ var B;
245
+ (function(e) {
246
+ e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
247
+ })(B || (B = {}));
248
+ function ye(e) {
249
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
250
+ }
251
+ function G(e) {
252
+ let n = m.useContext(Q);
253
+ return n || (process.env.NODE_ENV !== "production" ? S(!1, ye(e)) : S(!1)), n;
254
+ }
255
+ function ge(e, n) {
256
+ let {
257
+ target: r,
258
+ replace: a,
259
+ state: t,
260
+ preventScrollReset: i,
261
+ relative: o,
262
+ unstable_viewTransition: s
263
+ } = n === void 0 ? {} : n, u = Z(), l = I(), p = D(e, {
264
+ relative: o
265
+ });
266
+ return m.useCallback((v) => {
267
+ if (oe(v, r)) {
268
+ v.preventDefault();
269
+ let h = a !== void 0 ? a : A(l) === A(p);
270
+ u(e, {
271
+ replace: h,
272
+ state: t,
273
+ preventScrollReset: i,
274
+ relative: o,
275
+ unstable_viewTransition: s
276
+ });
277
+ }
278
+ }, [l, u, p, a, t, r, e, i, o, s]);
279
+ }
280
+ function Ee() {
281
+ if (typeof document > "u")
282
+ throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
283
+ }
284
+ let Se = 0, Ne = () => "__" + String(++Se) + "__";
285
+ function xe() {
286
+ let {
287
+ router: e
288
+ } = G(T.UseSubmit), {
289
+ basename: n
290
+ } = m.useContext(F), r = $();
291
+ return m.useCallback(function(a, t) {
292
+ t === void 0 && (t = {}), Ee();
293
+ let {
294
+ action: i,
295
+ method: o,
296
+ encType: s,
297
+ formData: u,
298
+ body: l
299
+ } = ue(a, n);
300
+ if (t.navigate === !1) {
301
+ let p = t.fetcherKey || Ne();
302
+ e.fetch(p, r, t.action || i, {
303
+ preventScrollReset: t.preventScrollReset,
304
+ formData: u,
305
+ body: l,
306
+ formMethod: t.method || o,
307
+ formEncType: t.encType || s,
308
+ unstable_flushSync: t.unstable_flushSync
309
+ });
310
+ } else
311
+ e.navigate(t.action || i, {
312
+ preventScrollReset: t.preventScrollReset,
313
+ formData: u,
314
+ body: l,
315
+ formMethod: t.method || o,
316
+ formEncType: t.encType || s,
317
+ replace: t.replace,
318
+ state: t.state,
319
+ fromRouteId: r,
320
+ unstable_flushSync: t.unstable_flushSync,
321
+ unstable_viewTransition: t.unstable_viewTransition
322
+ });
323
+ }, [e, n, r]);
324
+ }
325
+ function Ce(e, n) {
326
+ let {
327
+ relative: r
328
+ } = n === void 0 ? {} : n, {
329
+ basename: a
330
+ } = m.useContext(F), t = m.useContext(ee);
331
+ t || (process.env.NODE_ENV !== "production" ? S(!1, "useFormAction must be used inside a RouteContext") : S(!1));
332
+ let [i] = t.matches.slice(-1), o = N({}, D(e || ".", {
333
+ relative: r
334
+ })), s = I();
335
+ if (e == null) {
336
+ o.search = s.search;
337
+ let u = new URLSearchParams(o.search);
338
+ u.has("index") && u.get("index") === "" && (u.delete("index"), o.search = u.toString() ? "?" + u.toString() : "");
339
+ }
340
+ return (!e || e === ".") && i.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (o.pathname = o.pathname === "/" ? a : te([a, o.pathname])), A(o);
341
+ }
342
+ function Re(e, n) {
343
+ n === void 0 && (n = {});
344
+ let r = m.useContext(z);
345
+ r == null && (process.env.NODE_ENV !== "production" ? S(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : S(!1));
346
+ let {
347
+ basename: a
348
+ } = G(T.useViewTransitionState), t = D(e, {
349
+ relative: n.relative
350
+ });
351
+ if (!r.isTransitioning)
352
+ return !1;
353
+ let i = E(r.currentLocation.pathname, a) || r.currentLocation.pathname, o = E(r.nextLocation.pathname, a) || r.nextLocation.pathname;
354
+ return W(t.pathname, o) != null || W(t.pathname, i) != null;
355
+ }
356
+ export {
357
+ q as L,
358
+ be as N
359
+ };