wcz-test 7.1.3 → 7.2.0

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 (54) hide show
  1. package/dist/DialogsContext-CGAKEKKW.js +546 -0
  2. package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
  3. package/dist/{DialogsHooks-BXfwbYWP.js → DialogsHooks-BZUdpDVJ.js} +14 -14
  4. package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -0
  5. package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
  6. package/dist/{RouterListItemButton-DrW6M53Y.js.map → RouterListItemButton-C_jUvB6C.js.map} +1 -1
  7. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  8. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  9. package/dist/components/core/Layout.d.ts +1 -1
  10. package/dist/components.js +686 -682
  11. package/dist/components.js.map +1 -1
  12. package/dist/exports/hooks.d.ts +1 -1
  13. package/dist/exports/middleware.d.ts +1 -0
  14. package/dist/exports/utils.d.ts +3 -2
  15. package/dist/hooks/UseScanDetection.d.ts +28 -0
  16. package/dist/hooks.js +603 -610
  17. package/dist/hooks.js.map +1 -1
  18. package/dist/{i18next-Bx3TmZAT.js → i18next-8reizFda.js} +71 -63
  19. package/dist/i18next-8reizFda.js.map +1 -0
  20. package/dist/{index-DchOf6FV.js → index-wOcJpekI.js} +6 -4
  21. package/dist/index-wOcJpekI.js.map +1 -0
  22. package/dist/index.js +661 -821
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/auth/msalClient.d.ts +20 -0
  25. package/dist/lib/auth/msalServer.d.ts +11 -0
  26. package/dist/lib/auth/scopes.d.ts +2 -0
  27. package/dist/lib/auth/utils.d.ts +0 -0
  28. package/dist/lib/theme.d.ts +1 -0
  29. package/dist/lib/utils.d.ts +2 -10
  30. package/dist/middleware/authMiddleware.d.ts +6 -0
  31. package/dist/middleware.js +1101 -0
  32. package/dist/middleware.js.map +1 -0
  33. package/dist/models/TokenPayload.d.ts +8 -0
  34. package/dist/models/User.d.ts +10 -13
  35. package/dist/msalClient-Cem8ZXIU.js +75 -0
  36. package/dist/msalClient-Cem8ZXIU.js.map +1 -0
  37. package/dist/providers/AuthProvider.d.ts +0 -2
  38. package/dist/queries/FileHooks.d.ts +1 -1
  39. package/dist/queries/GraphQueries.d.ts +0 -20
  40. package/dist/query.js +1 -1
  41. package/dist/utils-BXxJ2sNo.js +151 -0
  42. package/dist/utils-BXxJ2sNo.js.map +1 -0
  43. package/dist/utils.js +72 -37
  44. package/dist/utils.js.map +1 -1
  45. package/package.json +16 -11
  46. package/dist/DialogsContext-8xfQ3X-k.js +0 -285
  47. package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
  48. package/dist/DialogsHooks-BXfwbYWP.js.map +0 -1
  49. package/dist/RouterListItemButton-DrW6M53Y.js +0 -17
  50. package/dist/hooks/User.d.ts +0 -8
  51. package/dist/i18next-Bx3TmZAT.js.map +0 -1
  52. package/dist/index-DchOf6FV.js.map +0 -1
  53. package/dist/utils-Dttzp8un.js +0 -10879
  54. package/dist/utils-Dttzp8un.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as R from "react";
2
2
  import { useContext as M } from "react";
3
- import { a as E, j as h } from "./utils-Dttzp8un.js";
4
- import { useEventCallback as I, DialogContent as W, DialogTitle as $, DialogActions as w, Button as T, Dialog as F } from "@mui/material";
5
- import { D as O, u as _ } from "./DialogsContext-8xfQ3X-k.js";
3
+ import { D as O, u as W, j as h } from "./DialogsContext-CGAKEKKW.js";
4
+ import { c as E } from "./compiler-runtime-BNHg76kC.js";
5
+ import { useEventCallback as I, DialogContent as $, DialogTitle as w, DialogActions as F, Button as T, Dialog as _ } from "@mui/material";
6
6
  var A = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), L = 0, z;
7
7
  function V(t) {
8
8
  return t ? (D.has(t) || (L += 1, D.set(t, L.toString())), D.get(t)) : "0";
@@ -127,23 +127,23 @@ function J(t) {
127
127
  onClose: i
128
128
  } = t, {
129
129
  t: r
130
- } = _();
130
+ } = W();
131
131
  let o;
132
132
  e[0] !== i ? (o = () => i(), e[0] = i, e[1] = o) : o = e[1];
133
133
  let s;
134
134
  e[2] !== n.title || e[3] !== r ? (s = n.title ?? r("Layout.Dialog.Alert"), e[2] = n.title, e[3] = r, e[4] = s) : s = e[4];
135
135
  let l;
136
- e[5] !== s ? (l = /* @__PURE__ */ h.jsx($, { children: s }), e[5] = s, e[6] = l) : l = e[6];
136
+ e[5] !== s ? (l = /* @__PURE__ */ h.jsx(w, { children: s }), e[5] = s, e[6] = l) : l = e[6];
137
137
  let c;
138
- e[7] !== n.message ? (c = /* @__PURE__ */ h.jsx(W, { children: n.message }), e[7] = n.message, e[8] = c) : c = e[8];
138
+ e[7] !== n.message ? (c = /* @__PURE__ */ h.jsx($, { children: n.message }), e[7] = n.message, e[8] = c) : c = e[8];
139
139
  let u;
140
140
  e[9] !== i ? (u = () => i(), e[9] = i, e[10] = u) : u = e[10];
141
141
  let f;
142
142
  e[11] !== r ? (f = r("Layout.Dialog.Confirm"), e[11] = r, e[12] = f) : f = e[12];
143
143
  let d;
144
- e[13] !== u || e[14] !== f ? (d = /* @__PURE__ */ h.jsx(w, { children: /* @__PURE__ */ h.jsx(T, { onClick: u, autoFocus: !0, children: f }) }), e[13] = u, e[14] = f, e[15] = d) : d = e[15];
144
+ e[13] !== u || e[14] !== f ? (d = /* @__PURE__ */ h.jsx(F, { children: /* @__PURE__ */ h.jsx(T, { onClick: u, autoFocus: !0, children: f }) }), e[13] = u, e[14] = f, e[15] = d) : d = e[15];
145
145
  let g;
146
- return e[16] !== a || e[17] !== o || e[18] !== l || e[19] !== c || e[20] !== d ? (g = /* @__PURE__ */ h.jsxs(F, { maxWidth: "xs", fullWidth: !0, open: a, onClose: o, disableRestoreFocus: !0, children: [
146
+ return e[16] !== a || e[17] !== o || e[18] !== l || e[19] !== c || e[20] !== d ? (g = /* @__PURE__ */ h.jsxs(_, { maxWidth: "xs", fullWidth: !0, open: a, onClose: o, disableRestoreFocus: !0, children: [
147
147
  l,
148
148
  c,
149
149
  d
@@ -156,15 +156,15 @@ function K(t) {
156
156
  onClose: i
157
157
  } = t, {
158
158
  t: r
159
- } = _();
159
+ } = W();
160
160
  let o;
161
161
  e[0] !== i ? (o = () => i(!1), e[0] = i, e[1] = o) : o = e[1];
162
162
  let s;
163
163
  e[2] !== n.title || e[3] !== r ? (s = n.title ?? r("Layout.Dialog.Confirm"), e[2] = n.title, e[3] = r, e[4] = s) : s = e[4];
164
164
  let l;
165
- e[5] !== s ? (l = /* @__PURE__ */ h.jsx($, { children: s }), e[5] = s, e[6] = l) : l = e[6];
165
+ e[5] !== s ? (l = /* @__PURE__ */ h.jsx(w, { children: s }), e[5] = s, e[6] = l) : l = e[6];
166
166
  let c;
167
- e[7] !== n.message ? (c = /* @__PURE__ */ h.jsx(W, { children: n.message }), e[7] = n.message, e[8] = c) : c = e[8];
167
+ e[7] !== n.message ? (c = /* @__PURE__ */ h.jsx($, { children: n.message }), e[7] = n.message, e[8] = c) : c = e[8];
168
168
  let u;
169
169
  e[9] !== i ? (u = () => i(!1), e[9] = i, e[10] = u) : u = e[10];
170
170
  let f;
@@ -178,12 +178,12 @@ function K(t) {
178
178
  let m;
179
179
  e[21] !== g || e[22] !== v ? (m = /* @__PURE__ */ h.jsx(T, { onClick: g, autoFocus: !0, children: v }), e[21] = g, e[22] = v, e[23] = m) : m = e[23];
180
180
  let x;
181
- e[24] !== m || e[25] !== d ? (x = /* @__PURE__ */ h.jsxs(w, { children: [
181
+ e[24] !== m || e[25] !== d ? (x = /* @__PURE__ */ h.jsxs(F, { children: [
182
182
  d,
183
183
  m
184
184
  ] }), e[24] = m, e[25] = d, e[26] = x) : x = e[26];
185
185
  let p;
186
- return e[27] !== a || e[28] !== o || e[29] !== x || e[30] !== l || e[31] !== c ? (p = /* @__PURE__ */ h.jsxs(F, { maxWidth: "xs", fullWidth: !0, open: a, onClose: o, disableRestoreFocus: !0, children: [
186
+ return e[27] !== a || e[28] !== o || e[29] !== x || e[30] !== l || e[31] !== c ? (p = /* @__PURE__ */ h.jsxs(_, { maxWidth: "xs", fullWidth: !0, open: a, onClose: o, disableRestoreFocus: !0, children: [
187
187
  l,
188
188
  c,
189
189
  x
@@ -228,4 +228,4 @@ export {
228
228
  X as a,
229
229
  Y as u
230
230
  };
231
- //# sourceMappingURL=DialogsHooks-BXfwbYWP.js.map
231
+ //# sourceMappingURL=DialogsHooks-BZUdpDVJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogsHooks-BZUdpDVJ.js","sources":["../node_modules/react-intersection-observer/dist/index.mjs","../src/hooks/DialogsHooks.tsx"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n\n// src/InView.tsx\nimport * as React from \"react\";\n\n// src/observe.ts\nvar observerMap = /* @__PURE__ */ new Map();\nvar RootIds = /* @__PURE__ */ new WeakMap();\nvar rootId = 0;\nvar unsupportedValue;\nfunction defaultFallbackInView(inView) {\n unsupportedValue = inView;\n}\nfunction getRootId(root) {\n if (!root) return \"0\";\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\nfunction optionsToId(options) {\n return Object.keys(options).sort().filter(\n (key) => options[key] !== void 0\n ).map((key) => {\n return `${key}_${key === \"root\" ? getRootId(options.root) : options[key]}`;\n }).toString();\n}\nfunction createObserver(options) {\n const id = optionsToId(options);\n let instance = observerMap.get(id);\n if (!instance) {\n const elements = /* @__PURE__ */ new Map();\n let thresholds;\n const observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n var _a2;\n const inView = entry.isIntersecting && thresholds.some((threshold) => entry.intersectionRatio >= threshold);\n if (options.trackVisibility && typeof entry.isVisible === \"undefined\") {\n entry.isVisible = inView;\n }\n (_a2 = elements.get(entry.target)) == null ? void 0 : _a2.forEach((callback) => {\n callback(inView, entry);\n });\n });\n }, options);\n thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);\n instance = {\n id,\n observer,\n elements\n };\n observerMap.set(id, instance);\n }\n return instance;\n}\nfunction observe(element, callback, options = {}, fallbackInView = unsupportedValue) {\n if (typeof window.IntersectionObserver === \"undefined\" && fallbackInView !== void 0) {\n const bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio: typeof options.threshold === \"number\" ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds\n });\n return () => {\n };\n }\n const { id, observer, elements } = createObserver(options);\n const callbacks = elements.get(element) || [];\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n callbacks.push(callback);\n observer.observe(element);\n return function unobserve() {\n callbacks.splice(callbacks.indexOf(callback), 1);\n if (callbacks.length === 0) {\n elements.delete(element);\n observer.unobserve(element);\n }\n if (elements.size === 0) {\n observer.disconnect();\n observerMap.delete(id);\n }\n };\n}\n\n// src/InView.tsx\nfunction isPlainChildren(props) {\n return typeof props.children !== \"function\";\n}\nvar InView = class extends React.Component {\n constructor(props) {\n super(props);\n __publicField(this, \"node\", null);\n __publicField(this, \"_unobserveCb\", null);\n __publicField(this, \"lastInView\");\n __publicField(this, \"handleNode\", (node) => {\n if (this.node) {\n this.unobserve();\n if (!node && !this.props.triggerOnce && !this.props.skip) {\n this.setState({ inView: !!this.props.initialInView, entry: void 0 });\n this.lastInView = this.props.initialInView;\n }\n }\n this.node = node ? node : null;\n this.observeNode();\n });\n __publicField(this, \"handleChange\", (inView, entry) => {\n const previousInView = this.lastInView;\n this.lastInView = inView;\n if (previousInView === void 0 && !inView) {\n return;\n }\n if (inView && this.props.triggerOnce) {\n this.unobserve();\n }\n if (!isPlainChildren(this.props)) {\n this.setState({ inView, entry });\n }\n if (this.props.onChange) {\n this.props.onChange(inView, entry);\n }\n });\n this.state = {\n inView: !!props.initialInView,\n entry: void 0\n };\n this.lastInView = props.initialInView;\n }\n componentDidMount() {\n this.unobserve();\n this.observeNode();\n }\n componentDidUpdate(prevProps) {\n if (prevProps.rootMargin !== this.props.rootMargin || prevProps.root !== this.props.root || prevProps.threshold !== this.props.threshold || prevProps.skip !== this.props.skip || prevProps.trackVisibility !== this.props.trackVisibility || prevProps.delay !== this.props.delay) {\n this.unobserve();\n this.observeNode();\n }\n }\n componentWillUnmount() {\n this.unobserve();\n }\n observeNode() {\n if (!this.node || this.props.skip) return;\n const {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n fallbackInView\n } = this.props;\n if (this.lastInView === void 0) {\n this.lastInView = this.props.initialInView;\n }\n this._unobserveCb = observe(\n this.node,\n this.handleChange,\n {\n threshold,\n root,\n rootMargin,\n // @ts-expect-error\n trackVisibility,\n delay\n },\n fallbackInView\n );\n }\n unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n this._unobserveCb = null;\n }\n }\n render() {\n const { children } = this.props;\n if (typeof children === \"function\") {\n const { inView, entry } = this.state;\n return children({ inView, entry, ref: this.handleNode });\n }\n const {\n as,\n triggerOnce,\n threshold,\n root,\n rootMargin,\n onChange,\n skip,\n trackVisibility,\n delay,\n initialInView,\n fallbackInView,\n ...props\n } = this.props;\n return React.createElement(\n as || \"div\",\n { ref: this.handleNode, ...props },\n children\n );\n }\n};\n\n// src/useInView.tsx\nimport * as React2 from \"react\";\nfunction useInView({\n threshold,\n delay,\n trackVisibility,\n rootMargin,\n root,\n triggerOnce,\n skip,\n initialInView,\n fallbackInView,\n onChange\n} = {}) {\n var _a2;\n const [ref, setRef] = React2.useState(null);\n const callback = React2.useRef(onChange);\n const lastInViewRef = React2.useRef(initialInView);\n const [state, setState] = React2.useState({\n inView: !!initialInView,\n entry: void 0\n });\n callback.current = onChange;\n React2.useEffect(\n () => {\n if (lastInViewRef.current === void 0) {\n lastInViewRef.current = initialInView;\n }\n if (skip || !ref) return;\n let unobserve;\n unobserve = observe(\n ref,\n (inView, entry) => {\n const previousInView = lastInViewRef.current;\n lastInViewRef.current = inView;\n if (previousInView === void 0 && !inView) {\n return;\n }\n setState({\n inView,\n entry\n });\n if (callback.current) callback.current(inView, entry);\n if (entry.isIntersecting && triggerOnce && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n },\n {\n root,\n rootMargin,\n threshold,\n // @ts-expect-error\n trackVisibility,\n delay\n },\n fallbackInView\n );\n return () => {\n if (unobserve) {\n unobserve();\n }\n };\n },\n // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n // If the threshold is an array, convert it to a string, so it won't change between renders.\n Array.isArray(threshold) ? threshold.toString() : threshold,\n ref,\n root,\n rootMargin,\n triggerOnce,\n skip,\n trackVisibility,\n fallbackInView,\n delay\n ]\n );\n const entryTarget = (_a2 = state.entry) == null ? void 0 : _a2.target;\n const previousEntryTarget = React2.useRef(void 0);\n if (!ref && entryTarget && !triggerOnce && !skip && previousEntryTarget.current !== entryTarget) {\n previousEntryTarget.current = entryTarget;\n setState({\n inView: !!initialInView,\n entry: void 0\n });\n lastInViewRef.current = initialInView;\n }\n const result = [setRef, state.inView, state.entry];\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n return result;\n}\n\n// src/useOnInView.tsx\nimport * as React3 from \"react\";\nvar _a, _b;\nvar useSyncEffect = (_b = (_a = \"useInsertionEffect\" in React3 ? React3.useInsertionEffect : void 0) != null ? _a : React3.useLayoutEffect) != null ? _b : React3.useEffect;\nvar useOnInView = (onIntersectionChange, {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n triggerOnce,\n skip\n} = {}) => {\n const onIntersectionChangeRef = React3.useRef(onIntersectionChange);\n const observedElementRef = React3.useRef(null);\n const observerCleanupRef = React3.useRef(void 0);\n const lastInViewRef = React3.useRef(void 0);\n useSyncEffect(() => {\n onIntersectionChangeRef.current = onIntersectionChange;\n }, [onIntersectionChange]);\n return React3.useCallback(\n (element) => {\n const cleanupExisting = () => {\n if (observerCleanupRef.current) {\n const cleanup = observerCleanupRef.current;\n observerCleanupRef.current = void 0;\n cleanup();\n }\n };\n if (element === observedElementRef.current) {\n return observerCleanupRef.current;\n }\n if (!element || skip) {\n cleanupExisting();\n observedElementRef.current = null;\n lastInViewRef.current = void 0;\n return;\n }\n cleanupExisting();\n observedElementRef.current = element;\n let destroyed = false;\n const destroyObserver = observe(\n element,\n (inView, entry) => {\n const previousInView = lastInViewRef.current;\n lastInViewRef.current = inView;\n if (previousInView === void 0 && !inView) {\n return;\n }\n onIntersectionChangeRef.current(\n inView,\n entry\n );\n if (triggerOnce && inView) {\n stopObserving();\n }\n },\n {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay\n }\n );\n function stopObserving() {\n if (destroyed) return;\n destroyed = true;\n destroyObserver();\n observedElementRef.current = null;\n observerCleanupRef.current = void 0;\n lastInViewRef.current = void 0;\n }\n observerCleanupRef.current = stopObserving;\n return observerCleanupRef.current;\n },\n [\n Array.isArray(threshold) ? threshold.toString() : threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n triggerOnce,\n skip\n ]\n );\n};\nexport {\n InView,\n defaultFallbackInView,\n observe,\n useInView,\n useOnInView\n};\n//# sourceMappingURL=index.mjs.map","import { Button, Dialog, DialogActions, DialogContent, DialogTitle, useEventCallback } from \"@mui/material\";\nimport { useContext } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { DialogsContext } from \"../contexts/DialogsContext\";\nimport type { ReactNode } from \"react\";\n\nexport interface OpenDialogOptions<TResult> {\n onClose?: (result: TResult) => Promise<void>;\n}\n\nexport interface AlertOptions {\n title?: ReactNode;\n}\n\nexport interface ConfirmOptions {\n title?: ReactNode;\n cancelText?: ReactNode;\n}\n\nexport interface DialogProps<TPayload = undefined, TResult = void> {\n payload: TPayload;\n open: boolean;\n onClose: (result: TResult) => Promise<void>;\n}\n\nexport type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;\n\nexport type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;\n\nexport type DialogComponent<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;\n\nexport interface OpenDialog {\n <TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;\n <TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;\n}\n\nexport type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;\n\nexport interface AlertDialogPayload extends AlertOptions {\n message: ReactNode;\n}\n\nexport type AlertDialogProps = DialogProps<AlertDialogPayload, void>\n\nexport function AlertDialog({ open, payload, onClose }: Readonly<AlertDialogProps>) {\n const { t } = useTranslation();\n\n return (\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose()} disableRestoreFocus>\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Alert\")}</DialogTitle>\n <DialogContent>{payload.message}</DialogContent>\n <DialogActions>\n <Button onClick={() => onClose()} autoFocus>\n {t(\"Layout.Dialog.Confirm\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\nexport interface ConfirmDialogPayload extends ConfirmOptions {\n message: ReactNode;\n}\n\nexport type ConfirmDialogProps = DialogProps<ConfirmDialogPayload, boolean>\n\nexport function ConfirmDialog({ open, payload, onClose }: Readonly<ConfirmDialogProps>) {\n const { t } = useTranslation();\n\n return (\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose(false)} disableRestoreFocus>\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Confirm\")}</DialogTitle>\n <DialogContent>{payload.message}</DialogContent>\n <DialogActions>\n <Button onClick={() => onClose(false)}>\n {payload.cancelText ?? t(\"Layout.Dialog.Cancel\")}\n </Button>\n <Button onClick={() => onClose(true)} autoFocus>\n {t(\"Layout.Dialog.Confirm\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\ninterface DialogHook {\n alert: OpenAlertDialog;\n confirm: OpenConfirmDialog;\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport function useDialogs(): DialogHook {\n const { open, close } = useContext(DialogsContext);\n\n const alert = useEventCallback<OpenAlertDialog>((message, { ...options } = {}) =>\n open(AlertDialog, { ...options, message }),\n );\n\n const confirm = useEventCallback<OpenConfirmDialog>((message, { ...options } = {}) =>\n open(ConfirmDialog, { ...options, message }),\n );\n\n return { alert, confirm, open, close };\n}\n"],"names":["observerMap","RootIds","rootId","unsupportedValue","getRootId","root","optionsToId","options","key","createObserver","id","instance","elements","thresholds","observer","entries","entry","_a2","inView","threshold","callback","observe","element","fallbackInView","bounds","callbacks","useInView","delay","trackVisibility","rootMargin","triggerOnce","skip","initialInView","onChange","ref","setRef","React2","lastInViewRef","state","setState","unobserve","previousInView","entryTarget","previousEntryTarget","result","AlertDialog","t0","$","_c","open","payload","onClose","t","useTranslation","t1","t2","title","t3","jsx","DialogTitle","t4","message","DialogContent","t5","t6","t7","DialogActions","Button","t8","Dialog","ConfirmDialog","cancelText","t9","t10","t11","t12","useDialogs","close","useContext","DialogsContext","undefined","alert","useEventCallback","message_0","options_0","confirm"],"mappings":";;;;;AASA,IAAIA,IAA8B,oBAAI,IAAG,GACrCC,IAA0B,oBAAI,QAAO,GACrCC,IAAS,GACTC;AAIJ,SAASC,EAAUC,GAAM;AACvB,SAAKA,KACDJ,EAAQ,IAAII,CAAI,MACpBH,KAAU,GACVD,EAAQ,IAAII,GAAMH,EAAO,SAAQ,CAAE,IAC5BD,EAAQ,IAAII,CAAI,KAJL;AAKpB;AACA,SAASC,EAAYC,GAAS;AAC5B,SAAO,OAAO,KAAKA,CAAO,EAAE,KAAI,EAAG;AAAA,IACjC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AF,OAAAD,KAAAA,IAAAC,EAAA,CAAA;AAD9C,QAAAkC,IAAcC,EAAkCpC,CAEhD;AAAE,MAAAQ;AAAA,EAAAP,SAAAE,KAEkDK,IAAAA,CAAA6B,GAAA5B,MAAA;AAAU,UAAA;AAAA,MAAA,GAAA6B;AAAAA,IAAAA,IAAA7B,MAAAyB,SAAA,CAAA,IAAAzB;AAAmB,WAC7EN,EAAKqB,GAAe;AAAA,MAAA,GAAK/D;AAAAA,MAAOsD,SAAEA;AAAAA,IAAAA,CAAS;AAAA,EAAC,GAAAd,OAAAE,GAAAF,OAAAO,KAAAA,IAAAP,EAAA,CAAA;AADhD,QAAAsC,IAAgBH,EAAoC5B,CAEpD;AAAE,MAAAC;AAAA,SAAAR,EAAA,CAAA,MAAAkC,KAAAlC,EAAA,CAAA,MAAA8B,KAAA9B,EAAA,CAAA,MAAAsC,KAAAtC,SAAAE,KAEKM,IAAA;AAAA,IAAA0B,OAAAA;AAAAA,IAAAI,SAAAA;AAAAA,IAAApC,MAAAA;AAAAA,IAAA4B,OAAAA;AAAAA,EAAAA,GAA+B9B,OAAAkC,GAAAlC,OAAA8B,GAAA9B,OAAAsC,GAAAtC,OAAAE,GAAAF,OAAAQ,KAAAA,IAAAR,EAAA,CAAA,GAA/BQ;AAA+B;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
1
+ import { j as r } from "./DialogsContext-CGAKEKKW.js";
2
+ import { c as i } from "./compiler-runtime-BNHg76kC.js";
3
+ import { ListItemButton as s } from "@mui/material";
4
+ import { createLink as c } from "@tanstack/react-router";
5
+ import f from "react";
6
+ const u = f.forwardRef(function(t, o) {
7
+ const n = i.c(3);
8
+ let m;
9
+ return n[0] !== t || n[1] !== o ? (m = /* @__PURE__ */ r.jsx(s, { ref: o, component: "a", ...t }), n[0] = t, n[1] = o, n[2] = m) : m = n[2], m;
10
+ }), a = c(u), C = (e) => {
11
+ const t = i.c(2);
12
+ let o;
13
+ return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(a, { ...e }), t[0] = e, t[1] = o) : o = t[1], o;
14
+ };
15
+ export {
16
+ C as R
17
+ };
18
+ //# sourceMappingURL=RouterListItemButton-C_jUvB6C.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouterListItemButton-DrW6M53Y.js","sources":["../src/components/router/RouterListItemButton.tsx"],"sourcesContent":["import { ListItemButton } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { ListItemButtonProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, ListItemButtonProps<\"a\">>(function ButtonComponent(props, reference) {\n return <ListItemButton ref={reference} component=\"a\" {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterListItemButton: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};\n"],"names":["Component","React","forwardRef","props","reference","$","_c","t0","ListItemButton","CreatedComponent","createLink","RouterListItemButton","jsx"],"mappings":";;;;AAMA,MAAMA,IAAYC,EAAMC,WAAwD,SAAAC,GAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,EAAA,CAAA,MAAAF,KAAAE,SAAAD,KACrEG,0BAACC,GAAA,EAAoBJ,KAAAA,GAAqB,WAAA,KAAG,GAAKD,GAAK,GAAIE,OAAAF,GAAAE,OAAAD,GAAAC,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAA3DE;AAA2D,CACrE,GAEKE,IAAmBC,EAAWV,CAAS,GAEhCW,IAAwDR,CAAAA,MAAA;AAAA,QAAAE,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,SAAAF,KAC1DI,IAAAK,gBAAAA,EAAAA,IAACH,GAAA,EAAgB,GAAKN,EAAAA,CAAK,GAAIE,OAAAF,GAAAE,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAA/BE;AAA+B;"}
1
+ {"version":3,"file":"RouterListItemButton-C_jUvB6C.js","sources":["../src/components/router/RouterListItemButton.tsx"],"sourcesContent":["import { ListItemButton } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { ListItemButtonProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, ListItemButtonProps<\"a\">>(function ButtonComponent(props, reference) {\n return <ListItemButton ref={reference} component=\"a\" {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterListItemButton: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};\n"],"names":["Component","React","forwardRef","props","reference","$","_c","t0","ListItemButton","CreatedComponent","createLink","RouterListItemButton","jsx"],"mappings":";;;;;AAMA,MAAMA,IAAYC,EAAMC,WAAwD,SAAAC,GAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,EAAA,CAAA,MAAAF,KAAAE,SAAAD,KACrEG,0BAACC,GAAA,EAAoBJ,KAAAA,GAAqB,WAAA,KAAG,GAAKD,GAAK,GAAIE,OAAAF,GAAAE,OAAAD,GAAAC,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAA3DE;AAA2D,CACrE,GAEKE,IAAmBC,EAAWV,CAAS,GAEhCW,IAAwDR,CAAAA,MAAA;AAAA,QAAAE,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,SAAAF,KAC1DI,IAAAK,gBAAAA,EAAAA,IAACH,GAAA,EAAgB,GAAKN,EAAAA,CAAK,GAAIE,OAAAF,GAAAE,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAA/BE;AAA+B;"}
@@ -0,0 +1,37 @@
1
+ import p from "react";
2
+ var e = { exports: {} }, t = {};
3
+ var a;
4
+ function s() {
5
+ if (a) return t;
6
+ a = 1;
7
+ var o = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
8
+ return t.c = function(r) {
9
+ return o.H.useMemoCache(r);
10
+ }, t;
11
+ }
12
+ var n = {};
13
+ var u;
14
+ function m() {
15
+ return u || (u = 1, process.env.NODE_ENV !== "production" && (function() {
16
+ var o = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
17
+ n.c = function(r) {
18
+ var i = o.H;
19
+ return i === null && console.error(
20
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
21
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
22
+ 2. You might be breaking the Rules of Hooks
23
+ 3. You might have more than one copy of React in the same app
24
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
25
+ ), i.useMemoCache(r);
26
+ };
27
+ })()), n;
28
+ }
29
+ var c;
30
+ function l() {
31
+ return c || (c = 1, process.env.NODE_ENV === "production" ? e.exports = s() : e.exports = m()), e.exports;
32
+ }
33
+ var _ = l();
34
+ export {
35
+ _ as c
36
+ };
37
+ //# sourceMappingURL=compiler-runtime-BNHg76kC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler-runtime-BNHg76kC.js","sources":["../node_modules/react/cjs/react-compiler-runtime.production.js","../node_modules/react/cjs/react-compiler-runtime.development.js","../node_modules/react/compiler-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"names":["ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1"],"mappings":";;;;;;AAWA,MAAIA,IACFC,EAAiB;AACnB,SAAAC,EAAA,IAAY,SAAUC,GAAM;AAC1B,WAAOH,EAAqB,EAAE,aAAaG,CAAI;AAAA,EACjD;;;;;sBCJiB,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,QAAIH,IACFC,EAAiB;AACnB,IAAAG,EAAA,IAAY,SAAUD,GAAM;AAC1B,UAAIE,IAAaL,EAAqB;AACtC,aAASK,MAAT,QACE,QAAQ;AAAA,QACN;AAAA;AAAA;AAAA;AAAA;AAAA,SAEGA,EAAW,aAAaF,CAAI;AAAA,IACzC;AAAA,EACA,GAAG;;;;sBCdC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBL,EAAA,IAEjBK,EAAA,UAAiBC,EAAA;;;","x_google_ignoreList":[0,1,2]}
@@ -1,5 +1,5 @@
1
- import { Navigation } from '../../models/Navigation';
2
1
  import { FC, ReactNode } from 'react';
2
+ import { Navigation } from '../../models/Navigation';
3
3
  interface LayoutProps {
4
4
  navigation: Navigation | undefined;
5
5
  children: ReactNode;