@m4l/graphics 0.1.50 → 0.1.52

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.
@@ -0,0 +1,4 @@
1
+ import "@mui/material/styles";
2
+ import "@mui/material";
3
+ import "@m4l/styles";
4
+ import "react/jsx-runtime";
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ResponsiveContainerProviderProps } from './types';
3
+ declare const ResponsiveContainerContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").ResponsiveContainerStateWithActions>, "setState"> & {
4
+ setState<A extends string | {
5
+ type: unknown;
6
+ }>(partial: import("./types").ResponsiveContainerStateWithActions | Partial<import("./types").ResponsiveContainerStateWithActions> | ((state: import("./types").ResponsiveContainerStateWithActions) => import("./types").ResponsiveContainerStateWithActions | Partial<import("./types").ResponsiveContainerStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
7
+ }, "setState"> & {
8
+ setState(nextStateOrUpdater: import("./types").ResponsiveContainerStateWithActions | Partial<import("./types").ResponsiveContainerStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").ResponsiveContainerStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
9
+ type: unknown;
10
+ } | undefined): void;
11
+ }) | null>;
12
+ declare const ResponsiveContainerProvider: (props: ResponsiveContainerProviderProps) => import("react").JSX.Element;
13
+ export { ResponsiveContainerProvider, ResponsiveContainerContext };
@@ -0,0 +1,11 @@
1
+ import { InitialResponsiveContainerProps, ResponsiveContainerStateWithActions } from './types';
2
+ export declare const createResponsiveContainerStore: (initProps: InitialResponsiveContainerProps) => Omit<Omit<import("zustand").StoreApi<ResponsiveContainerStateWithActions>, "setState"> & {
3
+ setState<A extends string | {
4
+ type: unknown;
5
+ }>(partial: ResponsiveContainerStateWithActions | Partial<ResponsiveContainerStateWithActions> | ((state: ResponsiveContainerStateWithActions) => ResponsiveContainerStateWithActions | Partial<ResponsiveContainerStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
6
+ }, "setState"> & {
7
+ setState(nextStateOrUpdater: ResponsiveContainerStateWithActions | Partial<ResponsiveContainerStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<ResponsiveContainerStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
8
+ type: unknown;
9
+ } | undefined): void;
10
+ };
11
+ export declare type ResponsiveContainerStore = ReturnType<typeof createResponsiveContainerStore>;
@@ -4,8 +4,8 @@ export declare type BreakPointsType = Record<BreakpointType, number>;
4
4
  export interface ResponsiveRelativeContextProps {
5
5
  breakPoint: BreakpointType;
6
6
  }
7
- export interface ResponsiveRelativeProviderProps {
8
- observedDivRef: React.RefObject<HTMLElement>;
7
+ export interface ResponsiveContainerProviderProps {
8
+ observedDivRef: Element | Text | null;
9
9
  children: React.ReactNode;
10
10
  }
11
11
  export declare type CurrentState = {
@@ -14,13 +14,15 @@ export declare type CurrentState = {
14
14
  mounted: boolean;
15
15
  breakpoint: BreakpointType;
16
16
  };
17
- export interface ResponsiveRelativeState {
17
+ export interface ResponsiveContainerState {
18
18
  breakPoint: BreakpointType;
19
+ isUpSm: boolean;
20
+ isXs: boolean;
19
21
  }
20
- export interface InitialResponsiveRelativeProps extends Pick<ResponsiveRelativeState, 'breakPoint'> {
22
+ export interface InitialResponsiveContainerProps extends Pick<ResponsiveContainerState, 'breakPoint' | 'isUpSm' | 'isXs'> {
21
23
  }
22
- export interface ResponsiveRelativeStateWithActions extends ResponsiveRelativeState {
23
- responsiveRelativeActions: {
24
+ export interface ResponsiveContainerStateWithActions extends ResponsiveContainerState {
25
+ responsiveContainerActions: {
24
26
  setBreakpoint: (breakPoint: BreakpointType) => void;
25
27
  };
26
28
  }
@@ -0,0 +1,76 @@
1
+ import "./FormatterContext/index.92336f4c.js";
2
+ import "./LocalesContext/index.53f0b702.js";
3
+ import { createContext as d, useRef as p, useMemo as v, useLayoutEffect as f } from "react";
4
+ import { c as u, d as R, i as g, l as h } from "../node_modules.dbab0abd.js";
5
+ import { jsx as x } from "react/jsx-runtime";
6
+ import "date-fns/locale/en-US";
7
+ import "./HostThemeContext/index.4291ba89.js";
8
+ const m = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, S = (c) => {
9
+ const a = {
10
+ ...c
11
+ };
12
+ return u(
13
+ R(
14
+ g((r, t) => ({
15
+ ...a,
16
+ responsiveContainerActions: {
17
+ setBreakpoint: (e) => {
18
+ r(
19
+ (i) => {
20
+ console.log("current breakpoint", e), i.breakPoint = e, i.isUpSm = e !== "xs" && e !== "sm", i.isXs = e == "xs";
21
+ }
22
+ );
23
+ }
24
+ }
25
+ })),
26
+ { name: "Responsive Relative Store" }
27
+ )
28
+ );
29
+ }, b = d(null), A = (c) => {
30
+ const {
31
+ children: a,
32
+ observedDivRef: r
33
+ } = c, t = p();
34
+ t.current || (t.current = S({
35
+ breakPoint: "md",
36
+ isUpSm: !1,
37
+ isXs: !1
38
+ }));
39
+ const e = () => {
40
+ const o = r;
41
+ if (o instanceof HTMLElement && o.clientWidth) {
42
+ const s = Object.keys(m);
43
+ for (let n = 0; n < s.length; n++) {
44
+ const l = s[n];
45
+ if (o.clientWidth <= m[l]) {
46
+ t.current?.getState().responsiveContainerActions.setBreakpoint(l);
47
+ break;
48
+ }
49
+ }
50
+ console.log("node.clientWidth", o.clientWidth), console.log("onResizeMemo", t.current?.getState().breakPoint);
51
+ }
52
+ }, i = v(() => h.exports.throttle(e, 200, {
53
+ leading: !1,
54
+ trailing: !0
55
+ }), [e]);
56
+ return f(() => {
57
+ const o = () => {
58
+ i();
59
+ }, s = r;
60
+ if (s && s instanceof Element) {
61
+ const n = new ResizeObserver((l) => {
62
+ o();
63
+ });
64
+ return n.observe(s), () => {
65
+ n.disconnect();
66
+ };
67
+ }
68
+ }, [r]), /* @__PURE__ */ x(b.Provider, {
69
+ value: t.current,
70
+ children: a
71
+ });
72
+ };
73
+ export {
74
+ b as R,
75
+ A as a
76
+ };
@@ -1,7 +1,8 @@
1
1
  export * from './FormatterContext';
2
2
  export type { Formatters, DateFormatter, NumberFormatter, CurrencyFormatter, } from './FormatterContext/types';
3
3
  export * from './LocalesContext';
4
- export * from './ResponsiveRelativeContext';
4
+ export * from './ResponsiveContainerContext';
5
+ export type { BreakpointType } from './ResponsiveContainerContext/types';
5
6
  export type { NetworkLocaleType, LocaleType } from './LocalesContext/types';
6
7
  export { getLocaleFromNetwork } from './LocalesContext/helper';
7
8
  export * from './HostThemeContext';
@@ -0,0 +1,49 @@
1
+ import { useRef as r, useEffect as n, useState as f, useContext as i, useLayoutEffect as c } from "react";
2
+ import { H as m } from "../contexts/HostThemeContext/index.4291ba89.js";
3
+ import "../contexts/FormatterContext/index.92336f4c.js";
4
+ import "../contexts/LocalesContext/index.53f0b702.js";
5
+ import "../contexts/index.921576cc.js";
6
+ import "@m4l/styles";
7
+ function b() {
8
+ const e = r(!0);
9
+ return n(
10
+ () => () => {
11
+ e.current = !1;
12
+ },
13
+ []
14
+ ), e;
15
+ }
16
+ function h(e) {
17
+ const [o, t] = f(!1), s = e || 100;
18
+ return n(() => (window.onscroll = () => {
19
+ window.pageYOffset > s ? t(!0) : t(!1);
20
+ }, () => {
21
+ window.onscroll = null;
22
+ }), [s]), o;
23
+ }
24
+ const v = () => {
25
+ const e = i(m);
26
+ if (!e)
27
+ throw new Error("useHostTheme context must be use inside HostThemeProvider");
28
+ return e;
29
+ };
30
+ function x(e) {
31
+ const o = r(null);
32
+ return c(() => {
33
+ const t = o?.current;
34
+ if (!t)
35
+ return;
36
+ const s = new ResizeObserver((u) => {
37
+ e(t, u[0]);
38
+ });
39
+ return s.observe(t), () => {
40
+ s.disconnect();
41
+ };
42
+ }, [e, o.current]), o;
43
+ }
44
+ export {
45
+ h as a,
46
+ v as b,
47
+ x as c,
48
+ b as u
49
+ };
package/hooks/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { useFirstRender } from './useFirstRender';
2
2
  export { useFormatter } from './useFormatter';
3
3
  export { useIsMountedRef } from './useIsMountedRef';
4
4
  export { useLocales } from './useLocales';
5
- export { useResponsiveRelativeStore } from './useResponsiveRelative';
5
+ export { useResponsiveContainerStore } from './useResponsiveContainer';
6
6
  export { useOffSetTop } from './useOffSetTop';
7
7
  export { useHostTheme } from './useHostTheme';
8
8
  export { useResizeObserver } from './useResizeObserver';
@@ -1,3 +1,3 @@
1
- import { RefObject } from 'react';
2
- export declare function useResizeObserver<T extends HTMLElement>(callback: (target: T, entry: ResizeObserverEntry) => void, ref: RefObject<T>): void;
1
+ /// <reference types="react" />
2
+ export declare function useResizeObserver<T extends HTMLElement>(callback: (target: T, entry: ResizeObserverEntry) => void): import("react").RefObject<T>;
3
3
  export default useResizeObserver;
@@ -0,0 +1,17 @@
1
+ import { useContext as t } from "react";
2
+ import { u as r } from "../../node_modules.dbab0abd.js";
3
+ import { R as n } from "../../contexts/index.921576cc.js";
4
+ import { useResponsive as i } from "@m4l/styles";
5
+ function f(e, s) {
6
+ const o = t(n);
7
+ if (!o)
8
+ throw new Error("useAreasStore context must be use inside AreasContext");
9
+ return r(o, e, s);
10
+ }
11
+ function c() {
12
+ return i("up", "sm");
13
+ }
14
+ export {
15
+ c as a,
16
+ f as u
17
+ };
@@ -0,0 +1,2 @@
1
+ import { ResponsiveContainerStateWithActions } from '../../contexts/ResponsiveContainerContext/types';
2
+ export declare function useResponsiveContainerStore<T>(selector: (state: ResponsiveContainerStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
package/index.js CHANGED
@@ -1,38 +1,38 @@
1
1
  import { G as l } from "./components/GlobalStyle/index.fff91e86.js";
2
- import { L as R, a as d, g as c } from "./contexts/LocalesContext/index.53f0b702.js";
3
- import { F, a as L } from "./contexts/FormatterContext/index.92336f4c.js";
4
- import { R as g, a as h } from "./contexts/ResponsiveRelativeContext/index.b1f839dc.js";
2
+ import { F as C, a as R } from "./contexts/FormatterContext/index.92336f4c.js";
3
+ import { L as c, a as F, g as L } from "./contexts/LocalesContext/index.53f0b702.js";
4
+ import { R as g, a as h } from "./contexts/index.921576cc.js";
5
5
  import { H as T, a as b } from "./contexts/HostThemeContext/index.4291ba89.js";
6
6
  import { u as k } from "./hooks/useFirstRender/index.1e9b02fb.js";
7
7
  import { u as z } from "./hooks/useFormatter/index.57ac8cca.js";
8
- import { c as O, a as y, b as A, u as D } from "./hooks/index.9e1fde8c.js";
8
+ import { b as O, u as y, a as A, c as D } from "./hooks/index.66afb19b.js";
9
9
  import { u as I } from "./hooks/useLocales/index.d5a80aff.js";
10
- import { a as N, u as W } from "./hooks/useResponsive/index.d90a6b52.js";
10
+ import { u as N, a as W } from "./hooks/useResponsive/index.c9515afc.js";
11
11
  import { C as q, g as B } from "./utils/index.6909c662.js";
12
12
  import "@mui/material/styles";
13
13
  import "@mui/material";
14
14
  import "@m4l/styles";
15
15
  import "react/jsx-runtime";
16
16
  import "react";
17
+ import "@m4l/core";
17
18
  import "@mui/x-date-pickers/AdapterDateFns";
18
19
  import "@mui/x-date-pickers";
19
- import "@m4l/core";
20
20
  import "date-fns/locale/en-US";
21
- import "./node_modules.56b5d6e3.js";
21
+ import "./node_modules.dbab0abd.js";
22
22
  import "./commonjs.e3daa2e5.js";
23
23
  export {
24
24
  q as Capitalize,
25
- F as FormatterContext,
26
- L as FormatterProvider,
25
+ C as FormatterContext,
26
+ R as FormatterProvider,
27
27
  l as GlobalStyles,
28
28
  T as HostThemeContext,
29
29
  b as HostThemeProvider,
30
- R as LocalesContext,
31
- d as LocalesProvider,
32
- g as ResponsiveRelativeContext,
33
- h as ResponsiveRelativeProvider,
30
+ c as LocalesContext,
31
+ F as LocalesProvider,
32
+ g as ResponsiveContainerContext,
33
+ h as ResponsiveContainerProvider,
34
34
  B as getAnchorElPositionWindow,
35
- c as getLocaleFromNetwork,
35
+ L as getLocaleFromNetwork,
36
36
  k as useFirstRender,
37
37
  z as useFormatter,
38
38
  O as useHostTheme,
@@ -40,6 +40,6 @@ export {
40
40
  I as useLocales,
41
41
  A as useOffSetTop,
42
42
  D as useResizeObserver,
43
- N as useResponsiveDesktop,
44
- W as useResponsiveRelativeStore
43
+ N as useResponsiveContainerStore,
44
+ W as useResponsiveDesktop
45
45
  };
@@ -1,278 +1,6 @@
1
- import br, { useDebugValue as fd } from "react";
2
- import { g as od, c as bt } from "./commonjs.e3daa2e5.js";
3
- const ko = (a) => {
4
- let c;
5
- const u = /* @__PURE__ */ new Set(), _ = (W, U) => {
6
- const x = typeof W == "function" ? W(c) : W;
7
- if (!Object.is(x, c)) {
8
- const I = c;
9
- c = U ?? typeof x != "object" ? x : Object.assign({}, c, x), u.forEach((D) => D(c, I));
10
- }
11
- }, v = () => c, R = { setState: _, getState: v, subscribe: (W) => (u.add(W), () => u.delete(W)), destroy: () => {
12
- ({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 } && "production") !== "production" && console.warn(
13
- "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
14
- ), u.clear();
15
- } };
16
- return c = a(_, v, R), R;
17
- }, Pd = (a) => a ? ko(a) : ko;
18
- var pa = { exports: {} }, Xi = {}, Qi = { exports: {} }, ki = {};
19
- /**
20
- * @license React
21
- * use-sync-external-store-shim.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */
28
- var jo;
29
- function ad() {
30
- if (jo)
31
- return ki;
32
- jo = 1;
33
- var a = br;
34
- function c(I, D) {
35
- return I === D && (I !== 0 || 1 / I === 1 / D) || I !== I && D !== D;
36
- }
37
- var u = typeof Object.is == "function" ? Object.is : c, _ = a.useState, v = a.useEffect, A = a.useLayoutEffect, b = a.useDebugValue;
38
- function R(I, D) {
39
- var N = D(), X = _({ inst: { value: N, getSnapshot: D } }), T = X[0].inst, M = X[1];
40
- return A(function() {
41
- T.value = N, T.getSnapshot = D, W(T) && M({ inst: T });
42
- }, [I, N, D]), v(function() {
43
- return W(T) && M({ inst: T }), I(function() {
44
- W(T) && M({ inst: T });
45
- });
46
- }, [I]), b(N), N;
47
- }
48
- function W(I) {
49
- var D = I.getSnapshot;
50
- I = I.value;
51
- try {
52
- var N = D();
53
- return !u(I, N);
54
- } catch {
55
- return !0;
56
- }
57
- }
58
- function U(I, D) {
59
- return D();
60
- }
61
- var x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? U : R;
62
- return ki.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : x, ki;
63
- }
64
- var ji = {};
65
- /**
66
- * @license React
67
- * use-sync-external-store-shim.development.js
68
- *
69
- * Copyright (c) Facebook, Inc. and its affiliates.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE file in the root directory of this source tree.
73
- */
74
- var na;
75
- function sd() {
76
- return na || (na = 1, process.env.NODE_ENV !== "production" && function() {
77
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
78
- var a = br, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
79
- function u(G) {
80
- {
81
- for (var z = arguments.length, k = new Array(z > 1 ? z - 1 : 0), Z = 1; Z < z; Z++)
82
- k[Z - 1] = arguments[Z];
83
- _("error", G, k);
84
- }
85
- }
86
- function _(G, z, k) {
87
- {
88
- var Z = c.ReactDebugCurrentFrame, en = Z.getStackAddendum();
89
- en !== "" && (z += "%s", k = k.concat([en]));
90
- var _n = k.map(function(dn) {
91
- return String(dn);
92
- });
93
- _n.unshift("Warning: " + z), Function.prototype.apply.call(console[G], console, _n);
94
- }
95
- }
96
- function v(G, z) {
97
- return G === z && (G !== 0 || 1 / G === 1 / z) || G !== G && z !== z;
98
- }
99
- var A = typeof Object.is == "function" ? Object.is : v, b = a.useState, R = a.useEffect, W = a.useLayoutEffect, U = a.useDebugValue, x = !1, I = !1;
100
- function D(G, z, k) {
101
- x || a.startTransition !== void 0 && (x = !0, u("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
102
- var Z = z();
103
- if (!I) {
104
- var en = z();
105
- A(Z, en) || (u("The result of getSnapshot should be cached to avoid an infinite loop"), I = !0);
106
- }
107
- var _n = b({
108
- inst: {
109
- value: Z,
110
- getSnapshot: z
111
- }
112
- }), dn = _n[0].inst, Oe = _n[1];
113
- return W(function() {
114
- dn.value = Z, dn.getSnapshot = z, N(dn) && Oe({
115
- inst: dn
116
- });
117
- }, [G, Z, z]), R(function() {
118
- N(dn) && Oe({
119
- inst: dn
120
- });
121
- var tt = function() {
122
- N(dn) && Oe({
123
- inst: dn
124
- });
125
- };
126
- return G(tt);
127
- }, [G]), U(Z), Z;
128
- }
129
- function N(G) {
130
- var z = G.getSnapshot, k = G.value;
131
- try {
132
- var Z = z();
133
- return !A(k, Z);
134
- } catch {
135
- return !0;
136
- }
137
- }
138
- function X(G, z, k) {
139
- return z();
140
- }
141
- var T = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", M = !T, F = M ? X : D, un = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : F;
142
- ji.useSyncExternalStore = un, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
143
- }()), ji;
144
- }
145
- var ea;
146
- function ga() {
147
- return ea || (ea = 1, function(a) {
148
- process.env.NODE_ENV === "production" ? a.exports = ad() : a.exports = sd();
149
- }(Qi)), Qi.exports;
150
- }
151
- /**
152
- * @license React
153
- * use-sync-external-store-shim/with-selector.production.min.js
154
- *
155
- * Copyright (c) Facebook, Inc. and its affiliates.
156
- *
157
- * This source code is licensed under the MIT license found in the
158
- * LICENSE file in the root directory of this source tree.
159
- */
160
- var ta;
161
- function ld() {
162
- if (ta)
163
- return Xi;
164
- ta = 1;
165
- var a = br, c = ga();
166
- function u(U, x) {
167
- return U === x && (U !== 0 || 1 / U === 1 / x) || U !== U && x !== x;
168
- }
169
- var _ = typeof Object.is == "function" ? Object.is : u, v = c.useSyncExternalStore, A = a.useRef, b = a.useEffect, R = a.useMemo, W = a.useDebugValue;
170
- return Xi.useSyncExternalStoreWithSelector = function(U, x, I, D, N) {
171
- var X = A(null);
172
- if (X.current === null) {
173
- var T = { hasValue: !1, value: null };
174
- X.current = T;
175
- } else
176
- T = X.current;
177
- X = R(function() {
178
- function F(Z) {
179
- if (!un) {
180
- if (un = !0, G = Z, Z = D(Z), N !== void 0 && T.hasValue) {
181
- var en = T.value;
182
- if (N(en, Z))
183
- return z = en;
184
- }
185
- return z = Z;
186
- }
187
- if (en = z, _(G, Z))
188
- return en;
189
- var _n = D(Z);
190
- return N !== void 0 && N(en, _n) ? en : (G = Z, z = _n);
191
- }
192
- var un = !1, G, z, k = I === void 0 ? null : I;
193
- return [function() {
194
- return F(x());
195
- }, k === null ? void 0 : function() {
196
- return F(k());
197
- }];
198
- }, [x, I, D, N]);
199
- var M = v(U, X[0], X[1]);
200
- return b(function() {
201
- T.hasValue = !0, T.value = M;
202
- }, [M]), W(M), M;
203
- }, Xi;
204
- }
205
- var nu = {};
206
- /**
207
- * @license React
208
- * use-sync-external-store-shim/with-selector.development.js
209
- *
210
- * Copyright (c) Facebook, Inc. and its affiliates.
211
- *
212
- * This source code is licensed under the MIT license found in the
213
- * LICENSE file in the root directory of this source tree.
214
- */
215
- var ra;
216
- function cd() {
217
- return ra || (ra = 1, process.env.NODE_ENV !== "production" && function() {
218
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
219
- var a = br, c = ga();
220
- function u(x, I) {
221
- return x === I && (x !== 0 || 1 / x === 1 / I) || x !== x && I !== I;
222
- }
223
- var _ = typeof Object.is == "function" ? Object.is : u, v = c.useSyncExternalStore, A = a.useRef, b = a.useEffect, R = a.useMemo, W = a.useDebugValue;
224
- function U(x, I, D, N, X) {
225
- var T = A(null), M;
226
- T.current === null ? (M = {
227
- hasValue: !1,
228
- value: null
229
- }, T.current = M) : M = T.current;
230
- var F = R(function() {
231
- var k = !1, Z, en, _n = function(Ae) {
232
- if (!k) {
233
- k = !0, Z = Ae;
234
- var rt = N(Ae);
235
- if (X !== void 0 && M.hasValue) {
236
- var Be = M.value;
237
- if (X(Be, rt))
238
- return en = Be, Be;
239
- }
240
- return en = rt, rt;
241
- }
242
- var Ir = Z, it = en;
243
- if (_(Ir, Ae))
244
- return it;
245
- var $n = N(Ae);
246
- return X !== void 0 && X(it, $n) ? it : (Z = Ae, en = $n, $n);
247
- }, dn = D === void 0 ? null : D, Oe = function() {
248
- return _n(I());
249
- }, tt = dn === null ? void 0 : function() {
250
- return _n(dn());
251
- };
252
- return [Oe, tt];
253
- }, [I, D, N, X]), un = F[0], G = F[1], z = v(x, un, G);
254
- return b(function() {
255
- M.hasValue = !0, M.value = z;
256
- }, [z]), W(z), z;
257
- }
258
- nu.useSyncExternalStoreWithSelector = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
259
- }()), nu;
260
- }
261
- (function(a) {
262
- process.env.NODE_ENV === "production" ? a.exports = ld() : a.exports = cd();
263
- })(pa);
264
- const hd = /* @__PURE__ */ od(pa.exports), { useSyncExternalStoreWithSelector: pd } = hd;
265
- function Dd(a, c = a.getState, u) {
266
- const _ = pd(
267
- a.subscribe,
268
- a.getState,
269
- a.getServerState || a.getState,
270
- c,
271
- u
272
- );
273
- return fd(_), _;
274
- }
275
- var ia = { exports: {} };
1
+ import { c as bt, g as fd } from "./commonjs.e3daa2e5.js";
2
+ import br, { useDebugValue as od } from "react";
3
+ var ko = { exports: {} };
276
4
  /**
277
5
  * @license
278
6
  * Lodash <https://lodash.com/>
@@ -3805,105 +3533,377 @@ function print() { __p += __j.call(arguments, '') }
3805
3533
  function ud(n, e) {
3806
3534
  return n && n.length ? kr(n, L(e, 2)) : 0;
3807
3535
  }
3808
- return f.after = bp, f.ary = bo, f.assign = gg, f.assignIn = Ho, f.assignInWith = xr, f.assignWith = _g, f.at = dg, f.before = Io, f.bind = Ui, f.bindAll = m_, f.bindKey = To, f.castArray = Fp, f.chain = Ao, f.chunk = Zc, f.compact = Jc, f.concat = Xc, f.cond = x_, f.conforms = O_, f.constant = qi, f.countBy = ip, f.create = vg, f.curry = Lo, f.curryRight = Co, f.debounce = Po, f.defaults = yg, f.defaultsDeep = wg, f.defer = Ip, f.delay = Tp, f.difference = Qc, f.differenceBy = kc, f.differenceWith = jc, f.drop = nh, f.dropRight = eh, f.dropRightWhile = th, f.dropWhile = rh, f.fill = ih, f.filter = fp, f.flatMap = sp, f.flatMapDeep = lp, f.flatMapDepth = cp, f.flatten = So, f.flattenDeep = uh, f.flattenDepth = fh, f.flip = Lp, f.flow = E_, f.flowRight = R_, f.fromPairs = oh, f.functions = Rg, f.functionsIn = bg, f.groupBy = hp, f.initial = sh, f.intersection = lh, f.intersectionBy = ch, f.intersectionWith = hh, f.invert = Tg, f.invertBy = Lg, f.invokeMap = gp, f.iteratee = $i, f.keyBy = _p, f.keys = gn, f.keysIn = bn, f.map = dr, f.mapKeys = Pg, f.mapValues = Dg, f.matches = b_, f.matchesProperty = I_, f.memoize = yr, f.merge = Wg, f.mergeWith = Ko, f.method = T_, f.methodOf = L_, f.mixin = Yi, f.negate = wr, f.nthArg = P_, f.omit = Mg, f.omitBy = Bg, f.once = Cp, f.orderBy = dp, f.over = D_, f.overArgs = Pp, f.overEvery = W_, f.overSome = M_, f.partial = Ni, f.partialRight = Do, f.partition = vp, f.pick = Ug, f.pickBy = zo, f.property = Xo, f.propertyOf = B_, f.pull = dh, f.pullAll = xo, f.pullAllBy = vh, f.pullAllWith = yh, f.pullAt = wh, f.range = U_, f.rangeRight = N_, f.rearg = Dp, f.reject = Sp, f.remove = Sh, f.rest = Wp, f.reverse = Mi, f.sampleSize = xp, f.set = Fg, f.setWith = Gg, f.shuffle = Op, f.slice = mh, f.sortBy = Rp, f.sortedUniq = Ih, f.sortedUniqBy = Th, f.split = s_, f.spread = Mp, f.tail = Lh, f.take = Ch, f.takeRight = Ph, f.takeRightWhile = Dh, f.takeWhile = Wh, f.tap = Jh, f.throttle = Bp, f.thru = _r, f.toArray = No, f.toPairs = qo, f.toPairsIn = $o, f.toPath = z_, f.toPlainObject = Go, f.transform = Hg, f.unary = Up, f.union = Mh, f.unionBy = Bh, f.unionWith = Uh, f.uniq = Nh, f.uniqBy = Fh, f.uniqWith = Gh, f.unset = Kg, f.unzip = Bi, f.unzipWith = Oo, f.update = zg, f.updateWith = qg, f.values = ke, f.valuesIn = $g, f.without = Hh, f.words = Zo, f.wrap = Np, f.xor = Kh, f.xorBy = zh, f.xorWith = qh, f.zip = $h, f.zipObject = Yh, f.zipObjectDeep = Vh, f.zipWith = Zh, f.entries = qo, f.entriesIn = $o, f.extend = Ho, f.extendWith = xr, Yi(f, f), f.add = $_, f.attempt = Jo, f.camelCase = Jg, f.capitalize = Yo, f.ceil = Y_, f.clamp = Yg, f.clone = Gp, f.cloneDeep = Kp, f.cloneDeepWith = zp, f.cloneWith = Hp, f.conformsTo = qp, f.deburr = Vo, f.defaultTo = A_, f.divide = V_, f.endsWith = Xg, f.eq = Xn, f.escape = Qg, f.escapeRegExp = kg, f.every = up, f.find = op, f.findIndex = yo, f.findKey = Sg, f.findLast = ap, f.findLastIndex = wo, f.findLastKey = mg, f.floor = Z_, f.forEach = Eo, f.forEachRight = Ro, f.forIn = xg, f.forInRight = Og, f.forOwn = Ag, f.forOwnRight = Eg, f.get = Hi, f.gt = $p, f.gte = Yp, f.has = Ig, f.hasIn = Ki, f.head = mo, f.identity = In, f.includes = pp, f.indexOf = ah, f.inRange = Vg, f.invoke = Cg, f.isArguments = De, f.isArray = H, f.isArrayBuffer = Vp, f.isArrayLike = Rn, f.isArrayLikeObject = ln, f.isBoolean = Zp, f.isBuffer = xe, f.isDate = Jp, f.isElement = Xp, f.isEmpty = Qp, f.isEqual = kp, f.isEqualWith = jp, f.isError = Fi, f.isFinite = ng, f.isFunction = le, f.isInteger = Wo, f.isLength = Sr, f.isMap = Mo, f.isMatch = eg, f.isMatchWith = tg, f.isNaN = rg, f.isNative = ig, f.isNil = fg, f.isNull = ug, f.isNumber = Bo, f.isObject = an, f.isObjectLike = sn, f.isPlainObject = Rt, f.isRegExp = Gi, f.isSafeInteger = og, f.isSet = Uo, f.isString = mr, f.isSymbol = Pn, f.isTypedArray = Qe, f.isUndefined = ag, f.isWeakMap = sg, f.isWeakSet = lg, f.join = ph, f.kebabCase = jg, f.last = zn, f.lastIndexOf = gh, f.lowerCase = n_, f.lowerFirst = e_, f.lt = cg, f.lte = hg, f.max = J_, f.maxBy = X_, f.mean = Q_, f.meanBy = k_, f.min = j_, f.minBy = nd, f.stubArray = Zi, f.stubFalse = Ji, f.stubObject = F_, f.stubString = G_, f.stubTrue = H_, f.multiply = ed, f.nth = _h, f.noConflict = C_, f.noop = Vi, f.now = vr, f.pad = t_, f.padEnd = r_, f.padStart = i_, f.parseInt = u_, f.random = Zg, f.reduce = yp, f.reduceRight = wp, f.repeat = f_, f.replace = o_, f.result = Ng, f.round = td, f.runInContext = h, f.sample = mp, f.size = Ap, f.snakeCase = a_, f.some = Ep, f.sortedIndex = xh, f.sortedIndexBy = Oh, f.sortedIndexOf = Ah, f.sortedLastIndex = Eh, f.sortedLastIndexBy = Rh, f.sortedLastIndexOf = bh, f.startCase = l_, f.startsWith = c_, f.subtract = rd, f.sum = id, f.sumBy = ud, f.template = h_, f.times = K_, f.toFinite = ce, f.toInteger = K, f.toLength = Fo, f.toLower = p_, f.toNumber = qn, f.toSafeInteger = pg, f.toString = j, f.toUpper = g_, f.trim = __, f.trimEnd = d_, f.trimStart = v_, f.truncate = y_, f.unescape = w_, f.uniqueId = q_, f.upperCase = S_, f.upperFirst = zi, f.each = Eo, f.eachRight = Ro, f.first = mo, Yi(f, function() {
3809
- var n = {};
3810
- return jn(f, function(e, t) {
3811
- nn.call(f.prototype, t) || (n[t] = e);
3812
- }), n;
3813
- }(), { chain: !1 }), f.VERSION = _, Nn(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(n) {
3814
- f[n].placeholder = f;
3815
- }), Nn(["drop", "take"], function(n, e) {
3816
- V.prototype[n] = function(t) {
3817
- t = t === u ? 1 : pn(K(t), 0);
3818
- var r = this.__filtered__ && !e ? new V(this) : this.clone();
3819
- return r.__filtered__ ? r.__takeCount__ = Sn(t, r.__takeCount__) : r.__views__.push({
3820
- size: Sn(t, kn),
3821
- type: n + (r.__dir__ < 0 ? "Right" : "")
3822
- }), r;
3823
- }, V.prototype[n + "Right"] = function(t) {
3824
- return this.reverse()[n](t).reverse();
3825
- };
3826
- }), Nn(["filter", "map", "takeWhile"], function(n, e) {
3827
- var t = e + 1, r = t == Be || t == it;
3828
- V.prototype[n] = function(i) {
3829
- var o = this.clone();
3830
- return o.__iteratees__.push({
3831
- iteratee: L(i, 3),
3832
- type: t
3833
- }), o.__filtered__ = o.__filtered__ || r, o;
3834
- };
3835
- }), Nn(["head", "last"], function(n, e) {
3836
- var t = "take" + (e ? "Right" : "");
3837
- V.prototype[n] = function() {
3838
- return this[t](1).value()[0];
3839
- };
3840
- }), Nn(["initial", "tail"], function(n, e) {
3841
- var t = "drop" + (e ? "" : "Right");
3842
- V.prototype[n] = function() {
3843
- return this.__filtered__ ? new V(this) : this[t](1);
3844
- };
3845
- }), V.prototype.compact = function() {
3846
- return this.filter(In);
3847
- }, V.prototype.find = function(n) {
3848
- return this.filter(n).head();
3849
- }, V.prototype.findLast = function(n) {
3850
- return this.reverse().find(n);
3851
- }, V.prototype.invokeMap = $(function(n, e) {
3852
- return typeof n == "function" ? new V(this) : this.map(function(t) {
3853
- return St(t, n, e);
3536
+ return f.after = bp, f.ary = bo, f.assign = gg, f.assignIn = Ho, f.assignInWith = xr, f.assignWith = _g, f.at = dg, f.before = Io, f.bind = Ui, f.bindAll = m_, f.bindKey = To, f.castArray = Fp, f.chain = Ao, f.chunk = Zc, f.compact = Jc, f.concat = Xc, f.cond = x_, f.conforms = O_, f.constant = qi, f.countBy = ip, f.create = vg, f.curry = Lo, f.curryRight = Co, f.debounce = Po, f.defaults = yg, f.defaultsDeep = wg, f.defer = Ip, f.delay = Tp, f.difference = Qc, f.differenceBy = kc, f.differenceWith = jc, f.drop = nh, f.dropRight = eh, f.dropRightWhile = th, f.dropWhile = rh, f.fill = ih, f.filter = fp, f.flatMap = sp, f.flatMapDeep = lp, f.flatMapDepth = cp, f.flatten = So, f.flattenDeep = uh, f.flattenDepth = fh, f.flip = Lp, f.flow = E_, f.flowRight = R_, f.fromPairs = oh, f.functions = Rg, f.functionsIn = bg, f.groupBy = hp, f.initial = sh, f.intersection = lh, f.intersectionBy = ch, f.intersectionWith = hh, f.invert = Tg, f.invertBy = Lg, f.invokeMap = gp, f.iteratee = $i, f.keyBy = _p, f.keys = gn, f.keysIn = bn, f.map = dr, f.mapKeys = Pg, f.mapValues = Dg, f.matches = b_, f.matchesProperty = I_, f.memoize = yr, f.merge = Wg, f.mergeWith = Ko, f.method = T_, f.methodOf = L_, f.mixin = Yi, f.negate = wr, f.nthArg = P_, f.omit = Mg, f.omitBy = Bg, f.once = Cp, f.orderBy = dp, f.over = D_, f.overArgs = Pp, f.overEvery = W_, f.overSome = M_, f.partial = Ni, f.partialRight = Do, f.partition = vp, f.pick = Ug, f.pickBy = zo, f.property = Xo, f.propertyOf = B_, f.pull = dh, f.pullAll = xo, f.pullAllBy = vh, f.pullAllWith = yh, f.pullAt = wh, f.range = U_, f.rangeRight = N_, f.rearg = Dp, f.reject = Sp, f.remove = Sh, f.rest = Wp, f.reverse = Mi, f.sampleSize = xp, f.set = Fg, f.setWith = Gg, f.shuffle = Op, f.slice = mh, f.sortBy = Rp, f.sortedUniq = Ih, f.sortedUniqBy = Th, f.split = s_, f.spread = Mp, f.tail = Lh, f.take = Ch, f.takeRight = Ph, f.takeRightWhile = Dh, f.takeWhile = Wh, f.tap = Jh, f.throttle = Bp, f.thru = _r, f.toArray = No, f.toPairs = qo, f.toPairsIn = $o, f.toPath = z_, f.toPlainObject = Go, f.transform = Hg, f.unary = Up, f.union = Mh, f.unionBy = Bh, f.unionWith = Uh, f.uniq = Nh, f.uniqBy = Fh, f.uniqWith = Gh, f.unset = Kg, f.unzip = Bi, f.unzipWith = Oo, f.update = zg, f.updateWith = qg, f.values = ke, f.valuesIn = $g, f.without = Hh, f.words = Zo, f.wrap = Np, f.xor = Kh, f.xorBy = zh, f.xorWith = qh, f.zip = $h, f.zipObject = Yh, f.zipObjectDeep = Vh, f.zipWith = Zh, f.entries = qo, f.entriesIn = $o, f.extend = Ho, f.extendWith = xr, Yi(f, f), f.add = $_, f.attempt = Jo, f.camelCase = Jg, f.capitalize = Yo, f.ceil = Y_, f.clamp = Yg, f.clone = Gp, f.cloneDeep = Kp, f.cloneDeepWith = zp, f.cloneWith = Hp, f.conformsTo = qp, f.deburr = Vo, f.defaultTo = A_, f.divide = V_, f.endsWith = Xg, f.eq = Xn, f.escape = Qg, f.escapeRegExp = kg, f.every = up, f.find = op, f.findIndex = yo, f.findKey = Sg, f.findLast = ap, f.findLastIndex = wo, f.findLastKey = mg, f.floor = Z_, f.forEach = Eo, f.forEachRight = Ro, f.forIn = xg, f.forInRight = Og, f.forOwn = Ag, f.forOwnRight = Eg, f.get = Hi, f.gt = $p, f.gte = Yp, f.has = Ig, f.hasIn = Ki, f.head = mo, f.identity = In, f.includes = pp, f.indexOf = ah, f.inRange = Vg, f.invoke = Cg, f.isArguments = De, f.isArray = H, f.isArrayBuffer = Vp, f.isArrayLike = Rn, f.isArrayLikeObject = ln, f.isBoolean = Zp, f.isBuffer = xe, f.isDate = Jp, f.isElement = Xp, f.isEmpty = Qp, f.isEqual = kp, f.isEqualWith = jp, f.isError = Fi, f.isFinite = ng, f.isFunction = le, f.isInteger = Wo, f.isLength = Sr, f.isMap = Mo, f.isMatch = eg, f.isMatchWith = tg, f.isNaN = rg, f.isNative = ig, f.isNil = fg, f.isNull = ug, f.isNumber = Bo, f.isObject = an, f.isObjectLike = sn, f.isPlainObject = Rt, f.isRegExp = Gi, f.isSafeInteger = og, f.isSet = Uo, f.isString = mr, f.isSymbol = Pn, f.isTypedArray = Qe, f.isUndefined = ag, f.isWeakMap = sg, f.isWeakSet = lg, f.join = ph, f.kebabCase = jg, f.last = zn, f.lastIndexOf = gh, f.lowerCase = n_, f.lowerFirst = e_, f.lt = cg, f.lte = hg, f.max = J_, f.maxBy = X_, f.mean = Q_, f.meanBy = k_, f.min = j_, f.minBy = nd, f.stubArray = Zi, f.stubFalse = Ji, f.stubObject = F_, f.stubString = G_, f.stubTrue = H_, f.multiply = ed, f.nth = _h, f.noConflict = C_, f.noop = Vi, f.now = vr, f.pad = t_, f.padEnd = r_, f.padStart = i_, f.parseInt = u_, f.random = Zg, f.reduce = yp, f.reduceRight = wp, f.repeat = f_, f.replace = o_, f.result = Ng, f.round = td, f.runInContext = h, f.sample = mp, f.size = Ap, f.snakeCase = a_, f.some = Ep, f.sortedIndex = xh, f.sortedIndexBy = Oh, f.sortedIndexOf = Ah, f.sortedLastIndex = Eh, f.sortedLastIndexBy = Rh, f.sortedLastIndexOf = bh, f.startCase = l_, f.startsWith = c_, f.subtract = rd, f.sum = id, f.sumBy = ud, f.template = h_, f.times = K_, f.toFinite = ce, f.toInteger = K, f.toLength = Fo, f.toLower = p_, f.toNumber = qn, f.toSafeInteger = pg, f.toString = j, f.toUpper = g_, f.trim = __, f.trimEnd = d_, f.trimStart = v_, f.truncate = y_, f.unescape = w_, f.uniqueId = q_, f.upperCase = S_, f.upperFirst = zi, f.each = Eo, f.eachRight = Ro, f.first = mo, Yi(f, function() {
3537
+ var n = {};
3538
+ return jn(f, function(e, t) {
3539
+ nn.call(f.prototype, t) || (n[t] = e);
3540
+ }), n;
3541
+ }(), { chain: !1 }), f.VERSION = _, Nn(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(n) {
3542
+ f[n].placeholder = f;
3543
+ }), Nn(["drop", "take"], function(n, e) {
3544
+ V.prototype[n] = function(t) {
3545
+ t = t === u ? 1 : pn(K(t), 0);
3546
+ var r = this.__filtered__ && !e ? new V(this) : this.clone();
3547
+ return r.__filtered__ ? r.__takeCount__ = Sn(t, r.__takeCount__) : r.__views__.push({
3548
+ size: Sn(t, kn),
3549
+ type: n + (r.__dir__ < 0 ? "Right" : "")
3550
+ }), r;
3551
+ }, V.prototype[n + "Right"] = function(t) {
3552
+ return this.reverse()[n](t).reverse();
3553
+ };
3554
+ }), Nn(["filter", "map", "takeWhile"], function(n, e) {
3555
+ var t = e + 1, r = t == Be || t == it;
3556
+ V.prototype[n] = function(i) {
3557
+ var o = this.clone();
3558
+ return o.__iteratees__.push({
3559
+ iteratee: L(i, 3),
3560
+ type: t
3561
+ }), o.__filtered__ = o.__filtered__ || r, o;
3562
+ };
3563
+ }), Nn(["head", "last"], function(n, e) {
3564
+ var t = "take" + (e ? "Right" : "");
3565
+ V.prototype[n] = function() {
3566
+ return this[t](1).value()[0];
3567
+ };
3568
+ }), Nn(["initial", "tail"], function(n, e) {
3569
+ var t = "drop" + (e ? "" : "Right");
3570
+ V.prototype[n] = function() {
3571
+ return this.__filtered__ ? new V(this) : this[t](1);
3572
+ };
3573
+ }), V.prototype.compact = function() {
3574
+ return this.filter(In);
3575
+ }, V.prototype.find = function(n) {
3576
+ return this.filter(n).head();
3577
+ }, V.prototype.findLast = function(n) {
3578
+ return this.reverse().find(n);
3579
+ }, V.prototype.invokeMap = $(function(n, e) {
3580
+ return typeof n == "function" ? new V(this) : this.map(function(t) {
3581
+ return St(t, n, e);
3582
+ });
3583
+ }), V.prototype.reject = function(n) {
3584
+ return this.filter(wr(L(n)));
3585
+ }, V.prototype.slice = function(n, e) {
3586
+ n = K(n);
3587
+ var t = this;
3588
+ return t.__filtered__ && (n > 0 || e < 0) ? new V(t) : (n < 0 ? t = t.takeRight(-n) : n && (t = t.drop(n)), e !== u && (e = K(e), t = e < 0 ? t.dropRight(-e) : t.take(e - n)), t);
3589
+ }, V.prototype.takeRightWhile = function(n) {
3590
+ return this.reverse().takeWhile(n).reverse();
3591
+ }, V.prototype.toArray = function() {
3592
+ return this.take(kn);
3593
+ }, jn(V.prototype, function(n, e) {
3594
+ var t = /^(?:filter|find|map|reject)|While$/.test(e), r = /^(?:head|last)$/.test(e), i = f[r ? "take" + (e == "last" ? "Right" : "") : e], o = r || /^find/.test(e);
3595
+ !i || (f.prototype[e] = function() {
3596
+ var s = this.__wrapped__, l = r ? [1] : arguments, p = s instanceof V, y = l[0], w = p || H(s), S = function(Y) {
3597
+ var J = i.apply(f, _e([Y], l));
3598
+ return r && m ? J[0] : J;
3599
+ };
3600
+ w && t && typeof y == "function" && y.length != 1 && (p = w = !1);
3601
+ var m = this.__chain__, E = !!this.__actions__.length, C = o && !m, q = p && !E;
3602
+ if (!o && w) {
3603
+ s = q ? s : new V(this);
3604
+ var P = n.apply(s, l);
3605
+ return P.__actions__.push({ func: _r, args: [S], thisArg: u }), new Gn(P, m);
3606
+ }
3607
+ return C && q ? n.apply(this, l) : (P = this.thru(S), C ? r ? P.value()[0] : P.value() : P);
3608
+ });
3609
+ }), Nn(["pop", "push", "shift", "sort", "splice", "unshift"], function(n) {
3610
+ var e = Ht[n], t = /^(?:push|sort|unshift)$/.test(n) ? "tap" : "thru", r = /^(?:pop|shift)$/.test(n);
3611
+ f.prototype[n] = function() {
3612
+ var i = arguments;
3613
+ if (r && !this.__chain__) {
3614
+ var o = this.value();
3615
+ return e.apply(H(o) ? o : [], i);
3616
+ }
3617
+ return this[t](function(s) {
3618
+ return e.apply(H(s) ? s : [], i);
3619
+ });
3620
+ };
3621
+ }), jn(V.prototype, function(n, e) {
3622
+ var t = f[e];
3623
+ if (t) {
3624
+ var r = t.name + "";
3625
+ nn.call(Ye, r) || (Ye[r] = []), Ye[r].push({ name: e, func: t });
3626
+ }
3627
+ }), Ye[ar(u, F).name] = [{
3628
+ name: "wrapper",
3629
+ func: u
3630
+ }], V.prototype.clone = wl, V.prototype.reverse = Sl, V.prototype.value = ml, f.prototype.at = Xh, f.prototype.chain = Qh, f.prototype.commit = kh, f.prototype.next = jh, f.prototype.plant = ep, f.prototype.reverse = tp, f.prototype.toJSON = f.prototype.valueOf = f.prototype.value = rp, f.prototype.first = f.prototype.head, pt && (f.prototype[pt] = np), f;
3631
+ }, ze = ks();
3632
+ Ee ? ((Ee.exports = ze)._ = ze, $r._ = ze) : vn._ = ze;
3633
+ }).call(bt);
3634
+ })(ko, ko.exports);
3635
+ const jo = (a) => {
3636
+ let c;
3637
+ const u = /* @__PURE__ */ new Set(), _ = (W, U) => {
3638
+ const x = typeof W == "function" ? W(c) : W;
3639
+ if (!Object.is(x, c)) {
3640
+ const I = c;
3641
+ c = U ?? typeof x != "object" ? x : Object.assign({}, c, x), u.forEach((D) => D(c, I));
3642
+ }
3643
+ }, v = () => c, R = { setState: _, getState: v, subscribe: (W) => (u.add(W), () => u.delete(W)), destroy: () => {
3644
+ ({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 } && "production") !== "production" && console.warn(
3645
+ "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
3646
+ ), u.clear();
3647
+ } };
3648
+ return c = a(_, v, R), R;
3649
+ }, Pd = (a) => a ? jo(a) : jo;
3650
+ var pa = { exports: {} }, Xi = {}, Qi = { exports: {} }, ki = {};
3651
+ /**
3652
+ * @license React
3653
+ * use-sync-external-store-shim.production.min.js
3654
+ *
3655
+ * Copyright (c) Facebook, Inc. and its affiliates.
3656
+ *
3657
+ * This source code is licensed under the MIT license found in the
3658
+ * LICENSE file in the root directory of this source tree.
3659
+ */
3660
+ var na;
3661
+ function ad() {
3662
+ if (na)
3663
+ return ki;
3664
+ na = 1;
3665
+ var a = br;
3666
+ function c(I, D) {
3667
+ return I === D && (I !== 0 || 1 / I === 1 / D) || I !== I && D !== D;
3668
+ }
3669
+ var u = typeof Object.is == "function" ? Object.is : c, _ = a.useState, v = a.useEffect, A = a.useLayoutEffect, b = a.useDebugValue;
3670
+ function R(I, D) {
3671
+ var N = D(), X = _({ inst: { value: N, getSnapshot: D } }), T = X[0].inst, M = X[1];
3672
+ return A(function() {
3673
+ T.value = N, T.getSnapshot = D, W(T) && M({ inst: T });
3674
+ }, [I, N, D]), v(function() {
3675
+ return W(T) && M({ inst: T }), I(function() {
3676
+ W(T) && M({ inst: T });
3677
+ });
3678
+ }, [I]), b(N), N;
3679
+ }
3680
+ function W(I) {
3681
+ var D = I.getSnapshot;
3682
+ I = I.value;
3683
+ try {
3684
+ var N = D();
3685
+ return !u(I, N);
3686
+ } catch {
3687
+ return !0;
3688
+ }
3689
+ }
3690
+ function U(I, D) {
3691
+ return D();
3692
+ }
3693
+ var x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? U : R;
3694
+ return ki.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : x, ki;
3695
+ }
3696
+ var ji = {};
3697
+ /**
3698
+ * @license React
3699
+ * use-sync-external-store-shim.development.js
3700
+ *
3701
+ * Copyright (c) Facebook, Inc. and its affiliates.
3702
+ *
3703
+ * This source code is licensed under the MIT license found in the
3704
+ * LICENSE file in the root directory of this source tree.
3705
+ */
3706
+ var ea;
3707
+ function sd() {
3708
+ return ea || (ea = 1, process.env.NODE_ENV !== "production" && function() {
3709
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
3710
+ var a = br, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3711
+ function u(G) {
3712
+ {
3713
+ for (var z = arguments.length, k = new Array(z > 1 ? z - 1 : 0), Z = 1; Z < z; Z++)
3714
+ k[Z - 1] = arguments[Z];
3715
+ _("error", G, k);
3716
+ }
3717
+ }
3718
+ function _(G, z, k) {
3719
+ {
3720
+ var Z = c.ReactDebugCurrentFrame, en = Z.getStackAddendum();
3721
+ en !== "" && (z += "%s", k = k.concat([en]));
3722
+ var _n = k.map(function(dn) {
3723
+ return String(dn);
3724
+ });
3725
+ _n.unshift("Warning: " + z), Function.prototype.apply.call(console[G], console, _n);
3726
+ }
3727
+ }
3728
+ function v(G, z) {
3729
+ return G === z && (G !== 0 || 1 / G === 1 / z) || G !== G && z !== z;
3730
+ }
3731
+ var A = typeof Object.is == "function" ? Object.is : v, b = a.useState, R = a.useEffect, W = a.useLayoutEffect, U = a.useDebugValue, x = !1, I = !1;
3732
+ function D(G, z, k) {
3733
+ x || a.startTransition !== void 0 && (x = !0, u("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
3734
+ var Z = z();
3735
+ if (!I) {
3736
+ var en = z();
3737
+ A(Z, en) || (u("The result of getSnapshot should be cached to avoid an infinite loop"), I = !0);
3738
+ }
3739
+ var _n = b({
3740
+ inst: {
3741
+ value: Z,
3742
+ getSnapshot: z
3743
+ }
3744
+ }), dn = _n[0].inst, Oe = _n[1];
3745
+ return W(function() {
3746
+ dn.value = Z, dn.getSnapshot = z, N(dn) && Oe({
3747
+ inst: dn
3854
3748
  });
3855
- }), V.prototype.reject = function(n) {
3856
- return this.filter(wr(L(n)));
3857
- }, V.prototype.slice = function(n, e) {
3858
- n = K(n);
3859
- var t = this;
3860
- return t.__filtered__ && (n > 0 || e < 0) ? new V(t) : (n < 0 ? t = t.takeRight(-n) : n && (t = t.drop(n)), e !== u && (e = K(e), t = e < 0 ? t.dropRight(-e) : t.take(e - n)), t);
3861
- }, V.prototype.takeRightWhile = function(n) {
3862
- return this.reverse().takeWhile(n).reverse();
3863
- }, V.prototype.toArray = function() {
3864
- return this.take(kn);
3865
- }, jn(V.prototype, function(n, e) {
3866
- var t = /^(?:filter|find|map|reject)|While$/.test(e), r = /^(?:head|last)$/.test(e), i = f[r ? "take" + (e == "last" ? "Right" : "") : e], o = r || /^find/.test(e);
3867
- !i || (f.prototype[e] = function() {
3868
- var s = this.__wrapped__, l = r ? [1] : arguments, p = s instanceof V, y = l[0], w = p || H(s), S = function(Y) {
3869
- var J = i.apply(f, _e([Y], l));
3870
- return r && m ? J[0] : J;
3871
- };
3872
- w && t && typeof y == "function" && y.length != 1 && (p = w = !1);
3873
- var m = this.__chain__, E = !!this.__actions__.length, C = o && !m, q = p && !E;
3874
- if (!o && w) {
3875
- s = q ? s : new V(this);
3876
- var P = n.apply(s, l);
3877
- return P.__actions__.push({ func: _r, args: [S], thisArg: u }), new Gn(P, m);
3878
- }
3879
- return C && q ? n.apply(this, l) : (P = this.thru(S), C ? r ? P.value()[0] : P.value() : P);
3749
+ }, [G, Z, z]), R(function() {
3750
+ N(dn) && Oe({
3751
+ inst: dn
3880
3752
  });
3881
- }), Nn(["pop", "push", "shift", "sort", "splice", "unshift"], function(n) {
3882
- var e = Ht[n], t = /^(?:push|sort|unshift)$/.test(n) ? "tap" : "thru", r = /^(?:pop|shift)$/.test(n);
3883
- f.prototype[n] = function() {
3884
- var i = arguments;
3885
- if (r && !this.__chain__) {
3886
- var o = this.value();
3887
- return e.apply(H(o) ? o : [], i);
3888
- }
3889
- return this[t](function(s) {
3890
- return e.apply(H(s) ? s : [], i);
3753
+ var tt = function() {
3754
+ N(dn) && Oe({
3755
+ inst: dn
3891
3756
  });
3892
3757
  };
3893
- }), jn(V.prototype, function(n, e) {
3894
- var t = f[e];
3895
- if (t) {
3896
- var r = t.name + "";
3897
- nn.call(Ye, r) || (Ye[r] = []), Ye[r].push({ name: e, func: t });
3758
+ return G(tt);
3759
+ }, [G]), U(Z), Z;
3760
+ }
3761
+ function N(G) {
3762
+ var z = G.getSnapshot, k = G.value;
3763
+ try {
3764
+ var Z = z();
3765
+ return !A(k, Z);
3766
+ } catch {
3767
+ return !0;
3768
+ }
3769
+ }
3770
+ function X(G, z, k) {
3771
+ return z();
3772
+ }
3773
+ var T = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", M = !T, F = M ? X : D, un = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : F;
3774
+ ji.useSyncExternalStore = un, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3775
+ }()), ji;
3776
+ }
3777
+ var ta;
3778
+ function ga() {
3779
+ return ta || (ta = 1, function(a) {
3780
+ process.env.NODE_ENV === "production" ? a.exports = ad() : a.exports = sd();
3781
+ }(Qi)), Qi.exports;
3782
+ }
3783
+ /**
3784
+ * @license React
3785
+ * use-sync-external-store-shim/with-selector.production.min.js
3786
+ *
3787
+ * Copyright (c) Facebook, Inc. and its affiliates.
3788
+ *
3789
+ * This source code is licensed under the MIT license found in the
3790
+ * LICENSE file in the root directory of this source tree.
3791
+ */
3792
+ var ra;
3793
+ function ld() {
3794
+ if (ra)
3795
+ return Xi;
3796
+ ra = 1;
3797
+ var a = br, c = ga();
3798
+ function u(U, x) {
3799
+ return U === x && (U !== 0 || 1 / U === 1 / x) || U !== U && x !== x;
3800
+ }
3801
+ var _ = typeof Object.is == "function" ? Object.is : u, v = c.useSyncExternalStore, A = a.useRef, b = a.useEffect, R = a.useMemo, W = a.useDebugValue;
3802
+ return Xi.useSyncExternalStoreWithSelector = function(U, x, I, D, N) {
3803
+ var X = A(null);
3804
+ if (X.current === null) {
3805
+ var T = { hasValue: !1, value: null };
3806
+ X.current = T;
3807
+ } else
3808
+ T = X.current;
3809
+ X = R(function() {
3810
+ function F(Z) {
3811
+ if (!un) {
3812
+ if (un = !0, G = Z, Z = D(Z), N !== void 0 && T.hasValue) {
3813
+ var en = T.value;
3814
+ if (N(en, Z))
3815
+ return z = en;
3816
+ }
3817
+ return z = Z;
3898
3818
  }
3899
- }), Ye[ar(u, F).name] = [{
3900
- name: "wrapper",
3901
- func: u
3902
- }], V.prototype.clone = wl, V.prototype.reverse = Sl, V.prototype.value = ml, f.prototype.at = Xh, f.prototype.chain = Qh, f.prototype.commit = kh, f.prototype.next = jh, f.prototype.plant = ep, f.prototype.reverse = tp, f.prototype.toJSON = f.prototype.valueOf = f.prototype.value = rp, f.prototype.first = f.prototype.head, pt && (f.prototype[pt] = np), f;
3903
- }, ze = ks();
3904
- Ee ? ((Ee.exports = ze)._ = ze, $r._ = ze) : vn._ = ze;
3905
- }).call(bt);
3906
- })(ia, ia.exports);
3819
+ if (en = z, _(G, Z))
3820
+ return en;
3821
+ var _n = D(Z);
3822
+ return N !== void 0 && N(en, _n) ? en : (G = Z, z = _n);
3823
+ }
3824
+ var un = !1, G, z, k = I === void 0 ? null : I;
3825
+ return [function() {
3826
+ return F(x());
3827
+ }, k === null ? void 0 : function() {
3828
+ return F(k());
3829
+ }];
3830
+ }, [x, I, D, N]);
3831
+ var M = v(U, X[0], X[1]);
3832
+ return b(function() {
3833
+ T.hasValue = !0, T.value = M;
3834
+ }, [M]), W(M), M;
3835
+ }, Xi;
3836
+ }
3837
+ var nu = {};
3838
+ /**
3839
+ * @license React
3840
+ * use-sync-external-store-shim/with-selector.development.js
3841
+ *
3842
+ * Copyright (c) Facebook, Inc. and its affiliates.
3843
+ *
3844
+ * This source code is licensed under the MIT license found in the
3845
+ * LICENSE file in the root directory of this source tree.
3846
+ */
3847
+ var ia;
3848
+ function cd() {
3849
+ return ia || (ia = 1, process.env.NODE_ENV !== "production" && function() {
3850
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
3851
+ var a = br, c = ga();
3852
+ function u(x, I) {
3853
+ return x === I && (x !== 0 || 1 / x === 1 / I) || x !== x && I !== I;
3854
+ }
3855
+ var _ = typeof Object.is == "function" ? Object.is : u, v = c.useSyncExternalStore, A = a.useRef, b = a.useEffect, R = a.useMemo, W = a.useDebugValue;
3856
+ function U(x, I, D, N, X) {
3857
+ var T = A(null), M;
3858
+ T.current === null ? (M = {
3859
+ hasValue: !1,
3860
+ value: null
3861
+ }, T.current = M) : M = T.current;
3862
+ var F = R(function() {
3863
+ var k = !1, Z, en, _n = function(Ae) {
3864
+ if (!k) {
3865
+ k = !0, Z = Ae;
3866
+ var rt = N(Ae);
3867
+ if (X !== void 0 && M.hasValue) {
3868
+ var Be = M.value;
3869
+ if (X(Be, rt))
3870
+ return en = Be, Be;
3871
+ }
3872
+ return en = rt, rt;
3873
+ }
3874
+ var Ir = Z, it = en;
3875
+ if (_(Ir, Ae))
3876
+ return it;
3877
+ var $n = N(Ae);
3878
+ return X !== void 0 && X(it, $n) ? it : (Z = Ae, en = $n, $n);
3879
+ }, dn = D === void 0 ? null : D, Oe = function() {
3880
+ return _n(I());
3881
+ }, tt = dn === null ? void 0 : function() {
3882
+ return _n(dn());
3883
+ };
3884
+ return [Oe, tt];
3885
+ }, [I, D, N, X]), un = F[0], G = F[1], z = v(x, un, G);
3886
+ return b(function() {
3887
+ M.hasValue = !0, M.value = z;
3888
+ }, [z]), W(z), z;
3889
+ }
3890
+ nu.useSyncExternalStoreWithSelector = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3891
+ }()), nu;
3892
+ }
3893
+ (function(a) {
3894
+ process.env.NODE_ENV === "production" ? a.exports = ld() : a.exports = cd();
3895
+ })(pa);
3896
+ const hd = /* @__PURE__ */ fd(pa.exports), { useSyncExternalStoreWithSelector: pd } = hd;
3897
+ function Dd(a, c = a.getState, u) {
3898
+ const _ = pd(
3899
+ a.subscribe,
3900
+ a.getState,
3901
+ a.getServerState || a.getState,
3902
+ c,
3903
+ u
3904
+ );
3905
+ return od(_), _;
3906
+ }
3907
3907
  const fu = /* @__PURE__ */ new Map(), Or = (a) => {
3908
3908
  const c = fu.get(a);
3909
3909
  return c ? Object.fromEntries(
@@ -4433,6 +4433,6 @@ export {
4433
4433
  Pd as c,
4434
4434
  Wd as d,
4435
4435
  Md as i,
4436
- ia as l,
4436
+ ko as l,
4437
4437
  Dd as u
4438
4438
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team*",
6
6
  "dependencies": {
package/vite-env.d.ts CHANGED
@@ -1 +1 @@
1
- /// <reference types="vite/client" />
1
+ /// <reference types="vite/client" />
@@ -1 +0,0 @@
1
-
@@ -1,60 +0,0 @@
1
- import { createContext as m, useRef as p, useMemo as u, useCallback as d } from "react";
2
- import { c as f, d as k, i as b, l as h } from "../../node_modules.56b5d6e3.js";
3
- import { jsx as g } from "react/jsx-runtime";
4
- import { u as x } from "../../hooks/index.9e1fde8c.js";
5
- const v = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, P = (r) => {
6
- const s = {
7
- ...r
8
- };
9
- return f(
10
- k(
11
- b((t, e) => ({
12
- ...s,
13
- responsiveRelativeActions: {
14
- setBreakpoint: (o) => {
15
- t(
16
- (n) => {
17
- n.breakPoint = o;
18
- }
19
- );
20
- }
21
- }
22
- })),
23
- { name: "Responsive Relative Store" }
24
- )
25
- );
26
- }, S = m(null), C = (r) => {
27
- const {
28
- children: s,
29
- observedDivRef: t
30
- } = r, e = p();
31
- e.current || (e.current = P({
32
- breakPoint: "md"
33
- }));
34
- const o = u(() => () => {
35
- const i = t.current;
36
- if (i instanceof HTMLElement && i.clientWidth) {
37
- const l = Object.keys(v);
38
- for (let a = 0; a < l.length; a++) {
39
- const c = l[a];
40
- if (i.clientWidth <= v[c] && c !== e.current?.getState().breakPoint) {
41
- e.current?.getState().responsiveRelativeActions.setBreakpoint(c);
42
- break;
43
- }
44
- }
45
- }
46
- }, []), n = h.exports.throttle(o, 200, {
47
- leading: !1,
48
- trailing: !0
49
- }), R = d(() => {
50
- n();
51
- }, [e.current]);
52
- return x(R, t), /* @__PURE__ */ g(S.Provider, {
53
- value: e.current,
54
- children: s
55
- });
56
- };
57
- export {
58
- S as R,
59
- C as a
60
- };
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { ResponsiveRelativeProviderProps } from './types';
3
- declare const ResponsiveRelativeContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").ResponsiveRelativeStateWithActions>, "setState"> & {
4
- setState<A extends string | {
5
- type: unknown;
6
- }>(partial: import("./types").ResponsiveRelativeStateWithActions | Partial<import("./types").ResponsiveRelativeStateWithActions> | ((state: import("./types").ResponsiveRelativeStateWithActions) => import("./types").ResponsiveRelativeStateWithActions | Partial<import("./types").ResponsiveRelativeStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
7
- }, "setState"> & {
8
- setState(nextStateOrUpdater: import("./types").ResponsiveRelativeStateWithActions | Partial<import("./types").ResponsiveRelativeStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").ResponsiveRelativeStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
9
- type: unknown;
10
- } | undefined): void;
11
- }) | null>;
12
- declare const ResponsiveRelativeProvider: (props: ResponsiveRelativeProviderProps) => import("react").JSX.Element;
13
- export { ResponsiveRelativeProvider, ResponsiveRelativeContext };
@@ -1,11 +0,0 @@
1
- import { InitialResponsiveRelativeProps, ResponsiveRelativeStateWithActions } from './types';
2
- export declare const createResponsiveRelativeStore: (initProps: InitialResponsiveRelativeProps) => Omit<Omit<import("zustand").StoreApi<ResponsiveRelativeStateWithActions>, "setState"> & {
3
- setState<A extends string | {
4
- type: unknown;
5
- }>(partial: ResponsiveRelativeStateWithActions | Partial<ResponsiveRelativeStateWithActions> | ((state: ResponsiveRelativeStateWithActions) => ResponsiveRelativeStateWithActions | Partial<ResponsiveRelativeStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
6
- }, "setState"> & {
7
- setState(nextStateOrUpdater: ResponsiveRelativeStateWithActions | Partial<ResponsiveRelativeStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<ResponsiveRelativeStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
8
- type: unknown;
9
- } | undefined): void;
10
- };
11
- export declare type ResponsiveRelativeStore = ReturnType<typeof createResponsiveRelativeStore>;
@@ -1 +0,0 @@
1
-
@@ -1,44 +0,0 @@
1
- import { useRef as u, useEffect as n, useState as f, useContext as c, useLayoutEffect as i } from "react";
2
- import { H as a } from "../contexts/HostThemeContext/index.4291ba89.js";
3
- function w() {
4
- const e = u(!0);
5
- return n(
6
- () => () => {
7
- e.current = !1;
8
- },
9
- []
10
- ), e;
11
- }
12
- function d(e) {
13
- const [o, t] = f(!1), s = e || 100;
14
- return n(() => (window.onscroll = () => {
15
- window.pageYOffset > s ? t(!0) : t(!1);
16
- }, () => {
17
- window.onscroll = null;
18
- }), [s]), o;
19
- }
20
- const p = () => {
21
- const e = c(a);
22
- if (!e)
23
- throw new Error("useHostTheme context must be use inside HostThemeProvider");
24
- return e;
25
- };
26
- function T(e, o) {
27
- i(() => {
28
- const t = o?.current;
29
- if (!t)
30
- return;
31
- const s = new ResizeObserver((r) => {
32
- e(t, r[0]);
33
- });
34
- return s.observe(t), () => {
35
- s.disconnect();
36
- };
37
- }, [e, o.current]);
38
- }
39
- export {
40
- w as a,
41
- d as b,
42
- p as c,
43
- T as u
44
- };
@@ -1,17 +0,0 @@
1
- import { useContext as o } from "react";
2
- import { u as r } from "../../node_modules.56b5d6e3.js";
3
- import { R as n } from "../../contexts/ResponsiveRelativeContext/index.b1f839dc.js";
4
- import { useResponsive as i } from "@m4l/styles";
5
- function f(e, t) {
6
- const s = o(n);
7
- if (!s)
8
- throw new Error("useAreasStore context must be use inside AreasContext");
9
- return r(s, e, t);
10
- }
11
- function R() {
12
- return i("up", "sm");
13
- }
14
- export {
15
- R as a,
16
- f as u
17
- };
@@ -1,2 +0,0 @@
1
- import { ResponsiveRelativeStateWithActions } from '../../contexts/ResponsiveRelativeContext/types';
2
- export declare function useResponsiveRelativeStore<T>(selector: (state: ResponsiveRelativeStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;