@coffre/ui 0.1.17 → 0.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.
- package/README.md +23 -3
- package/dist/{server/_coffre/assets/affordances-CKANXDTG.js → chunks/affordances-DAvsVz7u.js} +12 -7
- package/dist/chunks/affordances-DAvsVz7u.js.map +1 -0
- package/dist/chunks/directory-CSjWWUQ1.js +370 -0
- package/dist/chunks/directory-CSjWWUQ1.js.map +1 -0
- package/dist/{server/_coffre/assets/grants-DdKT11Ny.js → chunks/grants-saMQagmG.js} +41 -39
- package/dist/chunks/grants-saMQagmG.js.map +1 -0
- package/dist/chunks/icons-D-PfAfnH.js +203 -0
- package/dist/chunks/icons-D-PfAfnH.js.map +1 -0
- package/dist/chunks/mounted-jJmqqV_n.js +17 -0
- package/dist/chunks/mounted-jJmqqV_n.js.map +1 -0
- package/dist/{server/_coffre/assets/offboarding-CRz-K82H.js → chunks/offboarding-C6l30DZR.js} +70 -69
- package/dist/chunks/offboarding-C6l30DZR.js.map +1 -0
- package/dist/chunks/page-C5HcNqf2.js +190 -0
- package/dist/chunks/page-C5HcNqf2.js.map +1 -0
- package/dist/chunks/page-route-Drfw7lmn.js +20 -0
- package/dist/chunks/page-route-Drfw7lmn.js.map +1 -0
- package/dist/{server/_coffre/assets/principal-page-C-EFwJQw.js → chunks/principal-page-D_91OA0l.js} +105 -103
- package/dist/chunks/principal-page-D_91OA0l.js.map +1 -0
- package/dist/{server/_coffre/assets → chunks}/project-environments-lEzFHUt4.js +2 -0
- package/dist/chunks/project-environments-lEzFHUt4.js.map +1 -0
- package/dist/chunks/queries-CQ81o4so.js +376 -0
- package/dist/chunks/queries-CQ81o4so.js.map +1 -0
- package/dist/{server/_coffre/assets/row-state-C2P57xT1.js → chunks/row-state-0PsrEzOL.js} +22 -21
- package/dist/chunks/row-state-0PsrEzOL.js.map +1 -0
- package/dist/{server/_coffre/assets → chunks}/signin-errors-BEFlVDbQ.js +2 -0
- package/dist/chunks/signin-errors-BEFlVDbQ.js.map +1 -0
- package/dist/chunks/theme-B2vQolVR.js +86 -0
- package/dist/chunks/theme-B2vQolVR.js.map +1 -0
- package/dist/chunks/ui-DixXLQvQ.js +405 -0
- package/dist/chunks/ui-DixXLQvQ.js.map +1 -0
- package/dist/{server/_coffre/assets/use-action-B-xpvVRO.js → chunks/use-action-CWsg_YWU.js} +8 -6
- package/dist/chunks/use-action-CWsg_YWU.js.map +1 -0
- package/dist/{server/_coffre/assets/use-change-C8BCf3oU.js → chunks/use-change-c6CeLRin.js} +10 -474
- package/dist/chunks/use-change-c6CeLRin.js.map +1 -0
- package/dist/chunks/use-shell-jxd7Tzd-.js +26 -0
- package/dist/chunks/use-shell-jxd7Tzd-.js.map +1 -0
- package/dist/{server/_coffre/assets → chunks}/validation-BQtqPe2V.js +2 -0
- package/dist/chunks/validation-BQtqPe2V.js.map +1 -0
- package/dist/index.d.ts +386 -18
- package/dist/index.js +1147 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/account.d.ts +9 -0
- package/dist/pages/account.js +334 -0
- package/dist/pages/account.js.map +1 -0
- package/dist/pages/audit.d.ts +3 -0
- package/dist/{server/_coffre/assets/audit-qB9G2AQJ.js → pages/audit.js} +102 -100
- package/dist/pages/audit.js.map +1 -0
- package/dist/pages/device-login.d.ts +9 -0
- package/dist/pages/device-login.js +211 -0
- package/dist/pages/device-login.js.map +1 -0
- package/dist/pages/environment.d.ts +3 -0
- package/dist/{server/_coffre/assets/projects._project._environment-C6uybzeU.js → pages/environment.js} +323 -469
- package/dist/pages/environment.js.map +1 -0
- package/dist/pages/login.d.ts +10 -0
- package/dist/pages/login.js +104 -0
- package/dist/pages/login.js.map +1 -0
- package/dist/pages/project.d.ts +2 -0
- package/dist/{server/_coffre/assets/projects._project.index-3CXwkyTh.js → pages/project.js} +223 -225
- package/dist/pages/project.js.map +1 -0
- package/dist/pages/projects.d.ts +3 -0
- package/dist/{server/_coffre/assets/projects.index-iSoBpRFz.js → pages/projects.js} +83 -81
- package/dist/pages/projects.js.map +1 -0
- package/dist/pages/settings.d.ts +3 -0
- package/dist/{server/_coffre/assets/settings-BDQTF5XW.js → pages/settings.js} +20 -18
- package/dist/pages/settings.js.map +1 -0
- package/dist/pages/token.d.ts +3 -0
- package/dist/{server/_coffre/assets/tokens._token-CrBMpcbN.js → pages/token.js} +195 -265
- package/dist/pages/token.js.map +1 -0
- package/dist/pages/tokens.d.ts +3 -0
- package/dist/pages/tokens.js +39 -0
- package/dist/pages/tokens.js.map +1 -0
- package/dist/pages/unregistered.d.ts +8 -0
- package/dist/pages/unregistered.js +54 -0
- package/dist/pages/unregistered.js.map +1 -0
- package/dist/pages/user.d.ts +3 -0
- package/dist/pages/user.js +16 -0
- package/dist/pages/user.js.map +1 -0
- package/dist/pages/users.d.ts +3 -0
- package/dist/pages/users.js +39 -0
- package/dist/pages/users.js.map +1 -0
- package/dist/project-BqIy8gYR.d.ts +5 -0
- package/dist/vite.d.ts +16 -0
- package/dist/vite.js +52 -0
- package/package.json +36 -21
- package/src/assets/icon.svg +1 -0
- package/src/components/affordances.ts +10 -4
- package/src/components/command-palette.tsx +229 -203
- package/src/components/directory.tsx +34 -38
- package/src/components/principal.tsx +7 -3
- package/src/components/shell.tsx +89 -127
- package/src/components/theme.tsx +14 -81
- package/src/components/ui.tsx +97 -68
- package/src/index.ts +29 -0
- package/src/layout.tsx +113 -0
- package/src/lib/coffre.ts +8 -4
- package/src/lib/mounted.ts +13 -0
- package/src/lib/page-context.ts +31 -0
- package/src/lib/page-route.ts +22 -0
- package/src/lib/preferences.tsx +46 -0
- package/src/options.ts +240 -0
- package/src/{routes → pages}/account.tsx +7 -24
- package/src/{routes → pages}/audit.tsx +5 -16
- package/src/{routes/auth.device.tsx → pages/device-login.tsx} +8 -21
- package/src/{routes/projects.$project.$environment.tsx → pages/environment.tsx} +43 -52
- package/src/{routes → pages}/login.tsx +5 -16
- package/src/{routes/projects.$project.index.tsx → pages/project.tsx} +38 -50
- package/src/{routes/projects.index.tsx → pages/projects.tsx} +2 -7
- package/src/{routes → pages}/settings.tsx +3 -10
- package/src/{routes/tokens.$token.tsx → pages/token.tsx} +6 -7
- package/src/{routes/tokens.index.tsx → pages/tokens.tsx} +3 -8
- package/src/{routes → pages}/unregistered.tsx +1 -6
- package/src/pages/user.tsx +10 -0
- package/src/{routes/users.index.tsx → pages/users.tsx} +3 -8
- package/src/register.ts +55 -0
- package/src/router.tsx +31 -62
- package/src/styles/globals.css +104 -46
- package/src/vite.ts +78 -0
- package/dist/client/.assetsignore +0 -2
- package/dist/client/_coffre/assets/account-BoLGAxbD.js +0 -2
- package/dist/client/_coffre/assets/account-CnnuRTDB.js +0 -1
- package/dist/client/_coffre/assets/affordances-CEafRJcN.js +0 -1
- package/dist/client/_coffre/assets/audit-CHSvKLWX.js +0 -1
- package/dist/client/_coffre/assets/audit-Cn4hmS4u.js +0 -2
- package/dist/client/_coffre/assets/auth.device-Co5vrpaA.js +0 -2
- package/dist/client/_coffre/assets/auth.device-DAlqWacc.js +0 -1
- package/dist/client/_coffre/assets/directory-H8Eh3MnS.js +0 -1
- package/dist/client/_coffre/assets/dist-Braunv_x.js +0 -1
- package/dist/client/_coffre/assets/globals-CpMrgkV6.css +0 -1
- package/dist/client/_coffre/assets/grants-DPDxJXU1.js +0 -1
- package/dist/client/_coffre/assets/icons-Dc_-t0lp.js +0 -1
- package/dist/client/_coffre/assets/index-sUCIXRgJ.js +0 -12
- package/dist/client/_coffre/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/client/_coffre/assets/link-DBINMwm6.js +0 -1
- package/dist/client/_coffre/assets/login-BZFYfL1Y.js +0 -1
- package/dist/client/_coffre/assets/login-CYCKWTOD.js +0 -2
- package/dist/client/_coffre/assets/offboarding-Bwpftp3g.js +0 -1
- package/dist/client/_coffre/assets/page-C_hnzdaR.js +0 -1
- package/dist/client/_coffre/assets/preload-helper-CLkO85Nq.js +0 -1
- package/dist/client/_coffre/assets/principal-page-DLho8TSJ.js +0 -1
- package/dist/client/_coffre/assets/project-environments-CfIH5kFM.js +0 -1
- package/dist/client/_coffre/assets/projects._project._environment-DHRRvQw0.js +0 -3
- package/dist/client/_coffre/assets/projects._project._environment-TLI-RjBZ.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-BO-8FZIY.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-DGl921dP.js +0 -1
- package/dist/client/_coffre/assets/projects.index-BDn7Bhoo.js +0 -1
- package/dist/client/_coffre/assets/row-state-DJ-KLamZ.js +0 -1
- package/dist/client/_coffre/assets/settings-q9G1QvR_.js +0 -1
- package/dist/client/_coffre/assets/signin-errors-CroZWZgm.js +0 -1
- package/dist/client/_coffre/assets/suspense-O8sP0mEC.js +0 -1
- package/dist/client/_coffre/assets/tokens._token-B_qczpT9.js +0 -2
- package/dist/client/_coffre/assets/tokens._token-T-sqwMbz.js +0 -2
- package/dist/client/_coffre/assets/tokens.index-CcXSZnAG.js +0 -1
- package/dist/client/_coffre/assets/ui-BXP2IqrW.js +0 -46
- package/dist/client/_coffre/assets/unregistered-D2JXJ90x.js +0 -1
- package/dist/client/_coffre/assets/use-action-BpzKWhgg.js +0 -1
- package/dist/client/_coffre/assets/use-change-CKj3Inq9.js +0 -1
- package/dist/client/_coffre/assets/use-shell-W0SusPkz.js +0 -1
- package/dist/client/_coffre/assets/useQuery-B-lxFSES.js +0 -1
- package/dist/client/_coffre/assets/useSuspenseQuery-BZ-nzHST.js +0 -1
- package/dist/client/_coffre/assets/users._user-Bb3BGYHl.js +0 -1
- package/dist/client/_coffre/assets/users._user-DXmvKrzE.js +0 -2
- package/dist/client/_coffre/assets/users.index-BvzP3qwW.js +0 -1
- package/dist/client/_coffre/assets/validation-9Cl_XS-l.js +0 -1
- package/dist/server/.vite/manifest.json +0 -668
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-GsKnGGRy.js +0 -162
- package/dist/server/_coffre/assets/account-CV-a2IU2.js +0 -329
- package/dist/server/_coffre/assets/account-hk6wcIXU.js +0 -162
- package/dist/server/_coffre/assets/async-local-storage-C10uQtMM.js +0 -3108
- package/dist/server/_coffre/assets/audit-C1_Ej6YB.js +0 -31
- package/dist/server/_coffre/assets/auth.device-6JRrWbSV.js +0 -210
- package/dist/server/_coffre/assets/auth.device-CLoAxC2T.js +0 -29
- package/dist/server/_coffre/assets/directory-B-_rqsPx.js +0 -371
- package/dist/server/_coffre/assets/dist-CnnV3t2g.js +0 -908
- package/dist/server/_coffre/assets/empty-plugin-adapters-Cq4--YW-.js +0 -5
- package/dist/server/_coffre/assets/globals-CpMrgkV6.css +0 -1
- package/dist/server/_coffre/assets/icons-DOFT-eWB.js +0 -1704
- package/dist/server/_coffre/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/server/_coffre/assets/lazyRouteComponent-CqBNCGuZ.js +0 -480
- package/dist/server/_coffre/assets/link-42ZWdjzZ.js +0 -422
- package/dist/server/_coffre/assets/login-DRKUKkaW.js +0 -22
- package/dist/server/_coffre/assets/login-DnwxVl4Y.js +0 -102
- package/dist/server/_coffre/assets/matchContext-qLfYbC6_.js +0 -56
- package/dist/server/_coffre/assets/page-D6n45dcK.js +0 -3561
- package/dist/server/_coffre/assets/projects._project._environment-CS8DdSMY.js +0 -48
- package/dist/server/_coffre/assets/projects._project.index-BGfcNpj0.js +0 -23
- package/dist/server/_coffre/assets/react-dom-bBoJXlK2.js +0 -1718
- package/dist/server/_coffre/assets/router-9BTgJhWG.js +0 -2322
- package/dist/server/_coffre/assets/start-DR3rN0St.js +0 -4
- package/dist/server/_coffre/assets/suspense-C-2QfDd2.js +0 -602
- package/dist/server/_coffre/assets/tokens._token-rY86Cjgp.js +0 -10
- package/dist/server/_coffre/assets/tokens.index-Bq5qDW9q.js +0 -37
- package/dist/server/_coffre/assets/ui-Cc0CGMtr.js +0 -14881
- package/dist/server/_coffre/assets/unregistered-D9ZKLOPJ.js +0 -53
- package/dist/server/_coffre/assets/use-shell-DwOzEi87.js +0 -462
- package/dist/server/_coffre/assets/useQuery-CTe86qFq.js +0 -8
- package/dist/server/_coffre/assets/useRouter-CaUSUNsw.js +0 -473
- package/dist/server/_coffre/assets/useSuspenseQuery-CSoHzrMb.js +0 -117
- package/dist/server/_coffre/assets/users._user-BmLKYeo_.js +0 -10
- package/dist/server/_coffre/assets/users._user-BmiHwQx3.js +0 -14
- package/dist/server/_coffre/assets/users.index-BiEax90r.js +0 -37
- package/dist/server/index.js +0 -13911
- package/src/assets/favicon-32.png +0 -0
- package/src/components/agentation.tsx +0 -34
- package/src/entry.ts +0 -19
- package/src/routeTree.gen.ts +0 -367
- package/src/routes/__root.tsx +0 -169
- package/src/routes/access.tsx +0 -11
- package/src/routes/index.tsx +0 -15
- package/src/routes/users.$user.tsx +0 -13
- package/src/types.ts +0 -21
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
-
var __exportAll = (all, no_symbols) => {
|
|
10
|
-
let target = {};
|
|
11
|
-
for (var name in all) __defProp(target, name, {
|
|
12
|
-
get: all[name],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
-
key = keys[i];
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
-
get: ((k) => from[k]).bind(null, key),
|
|
23
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
-
value: mod,
|
|
30
|
-
enumerable: true
|
|
31
|
-
}) : target, mod));
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react.production.js
|
|
34
|
-
/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/
|
|
43
|
-
var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
44
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
45
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
46
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
47
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
48
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
49
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
50
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
51
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
52
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
53
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
54
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
55
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
56
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
57
|
-
function getIteratorFn(maybeIterable) {
|
|
58
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
59
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
60
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
61
|
-
}
|
|
62
|
-
var ReactNoopUpdateQueue = {
|
|
63
|
-
isMounted: function() {
|
|
64
|
-
return !1;
|
|
65
|
-
},
|
|
66
|
-
enqueueForceUpdate: function() {},
|
|
67
|
-
enqueueReplaceState: function() {},
|
|
68
|
-
enqueueSetState: function() {}
|
|
69
|
-
};
|
|
70
|
-
var assign = Object.assign;
|
|
71
|
-
var emptyObject = {};
|
|
72
|
-
function Component(props, context, updater) {
|
|
73
|
-
this.props = props;
|
|
74
|
-
this.context = context;
|
|
75
|
-
this.refs = emptyObject;
|
|
76
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
77
|
-
}
|
|
78
|
-
Component.prototype.isReactComponent = {};
|
|
79
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
80
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
81
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
82
|
-
};
|
|
83
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
84
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
85
|
-
};
|
|
86
|
-
function ComponentDummy() {}
|
|
87
|
-
ComponentDummy.prototype = Component.prototype;
|
|
88
|
-
function PureComponent(props, context, updater) {
|
|
89
|
-
this.props = props;
|
|
90
|
-
this.context = context;
|
|
91
|
-
this.refs = emptyObject;
|
|
92
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
93
|
-
}
|
|
94
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
95
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
96
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
97
|
-
pureComponentPrototype.isPureReactComponent = !0;
|
|
98
|
-
var isArrayImpl = Array.isArray;
|
|
99
|
-
function noop() {}
|
|
100
|
-
var ReactSharedInternals = {
|
|
101
|
-
H: null,
|
|
102
|
-
A: null,
|
|
103
|
-
T: null,
|
|
104
|
-
S: null
|
|
105
|
-
};
|
|
106
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
107
|
-
function ReactElement(type, key, props) {
|
|
108
|
-
var refProp = props.ref;
|
|
109
|
-
return {
|
|
110
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
111
|
-
type,
|
|
112
|
-
key,
|
|
113
|
-
ref: void 0 !== refProp ? refProp : null,
|
|
114
|
-
props
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
118
|
-
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
119
|
-
}
|
|
120
|
-
function isValidElement(object) {
|
|
121
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
122
|
-
}
|
|
123
|
-
function escape(key) {
|
|
124
|
-
var escaperLookup = {
|
|
125
|
-
"=": "=0",
|
|
126
|
-
":": "=2"
|
|
127
|
-
};
|
|
128
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
129
|
-
return escaperLookup[match];
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
133
|
-
function getElementKey(element, index) {
|
|
134
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
135
|
-
}
|
|
136
|
-
function resolveThenable(thenable) {
|
|
137
|
-
switch (thenable.status) {
|
|
138
|
-
case "fulfilled": return thenable.value;
|
|
139
|
-
case "rejected": throw thenable.reason;
|
|
140
|
-
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
141
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
142
|
-
}, function(error) {
|
|
143
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
144
|
-
})), thenable.status) {
|
|
145
|
-
case "fulfilled": return thenable.value;
|
|
146
|
-
case "rejected": throw thenable.reason;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
throw thenable;
|
|
150
|
-
}
|
|
151
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
152
|
-
var type = typeof children;
|
|
153
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
154
|
-
var invokeCallback = !1;
|
|
155
|
-
if (null === children) invokeCallback = !0;
|
|
156
|
-
else switch (type) {
|
|
157
|
-
case "bigint":
|
|
158
|
-
case "string":
|
|
159
|
-
case "number":
|
|
160
|
-
invokeCallback = !0;
|
|
161
|
-
break;
|
|
162
|
-
case "object": switch (children.$$typeof) {
|
|
163
|
-
case REACT_ELEMENT_TYPE:
|
|
164
|
-
case REACT_PORTAL_TYPE:
|
|
165
|
-
invokeCallback = !0;
|
|
166
|
-
break;
|
|
167
|
-
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
171
|
-
return c;
|
|
172
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
173
|
-
invokeCallback = 0;
|
|
174
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
175
|
-
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
176
|
-
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
177
|
-
else if ("object" === type) {
|
|
178
|
-
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
179
|
-
array = String(children);
|
|
180
|
-
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
181
|
-
}
|
|
182
|
-
return invokeCallback;
|
|
183
|
-
}
|
|
184
|
-
function mapChildren(children, func, context) {
|
|
185
|
-
if (null == children) return children;
|
|
186
|
-
var result = [], count = 0;
|
|
187
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
188
|
-
return func.call(context, child, count++);
|
|
189
|
-
});
|
|
190
|
-
return result;
|
|
191
|
-
}
|
|
192
|
-
function lazyInitializer(payload) {
|
|
193
|
-
if (-1 === payload._status) {
|
|
194
|
-
var ctor = payload._result;
|
|
195
|
-
ctor = ctor();
|
|
196
|
-
ctor.then(function(moduleObject) {
|
|
197
|
-
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject;
|
|
198
|
-
}, function(error) {
|
|
199
|
-
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error;
|
|
200
|
-
});
|
|
201
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
202
|
-
}
|
|
203
|
-
if (1 === payload._status) return payload._result.default;
|
|
204
|
-
throw payload._result;
|
|
205
|
-
}
|
|
206
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
207
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
208
|
-
var event = new window.ErrorEvent("error", {
|
|
209
|
-
bubbles: !0,
|
|
210
|
-
cancelable: !0,
|
|
211
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
212
|
-
error
|
|
213
|
-
});
|
|
214
|
-
if (!window.dispatchEvent(event)) return;
|
|
215
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
216
|
-
process.emit("uncaughtException", error);
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
console.error(error);
|
|
220
|
-
};
|
|
221
|
-
var Children = {
|
|
222
|
-
map: mapChildren,
|
|
223
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
224
|
-
mapChildren(children, function() {
|
|
225
|
-
forEachFunc.apply(this, arguments);
|
|
226
|
-
}, forEachContext);
|
|
227
|
-
},
|
|
228
|
-
count: function(children) {
|
|
229
|
-
var n = 0;
|
|
230
|
-
mapChildren(children, function() {
|
|
231
|
-
n++;
|
|
232
|
-
});
|
|
233
|
-
return n;
|
|
234
|
-
},
|
|
235
|
-
toArray: function(children) {
|
|
236
|
-
return mapChildren(children, function(child) {
|
|
237
|
-
return child;
|
|
238
|
-
}) || [];
|
|
239
|
-
},
|
|
240
|
-
only: function(children) {
|
|
241
|
-
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
242
|
-
return children;
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
246
|
-
exports.Children = Children;
|
|
247
|
-
exports.Component = Component;
|
|
248
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
249
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
250
|
-
exports.PureComponent = PureComponent;
|
|
251
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
252
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
253
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
254
|
-
exports.__COMPILER_RUNTIME = {
|
|
255
|
-
__proto__: null,
|
|
256
|
-
c: function(size) {
|
|
257
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
exports.cache = function(fn) {
|
|
261
|
-
return function() {
|
|
262
|
-
return fn.apply(null, arguments);
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
exports.cacheSignal = function() {
|
|
266
|
-
return null;
|
|
267
|
-
};
|
|
268
|
-
exports.cloneElement = function(element, config, children) {
|
|
269
|
-
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
270
|
-
var props = assign({}, element.props), key = element.key;
|
|
271
|
-
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
272
|
-
var propName = arguments.length - 2;
|
|
273
|
-
if (1 === propName) props.children = children;
|
|
274
|
-
else if (1 < propName) {
|
|
275
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
276
|
-
props.children = childArray;
|
|
277
|
-
}
|
|
278
|
-
return ReactElement(element.type, key, props);
|
|
279
|
-
};
|
|
280
|
-
exports.createContext = function(defaultValue) {
|
|
281
|
-
defaultValue = {
|
|
282
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
283
|
-
_currentValue: defaultValue,
|
|
284
|
-
_currentValue2: defaultValue,
|
|
285
|
-
_threadCount: 0,
|
|
286
|
-
Provider: null,
|
|
287
|
-
Consumer: null
|
|
288
|
-
};
|
|
289
|
-
defaultValue.Provider = defaultValue;
|
|
290
|
-
defaultValue.Consumer = {
|
|
291
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
292
|
-
_context: defaultValue
|
|
293
|
-
};
|
|
294
|
-
return defaultValue;
|
|
295
|
-
};
|
|
296
|
-
exports.createElement = function(type, config, children) {
|
|
297
|
-
var propName, props = {}, key = null;
|
|
298
|
-
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
299
|
-
var childrenLength = arguments.length - 2;
|
|
300
|
-
if (1 === childrenLength) props.children = children;
|
|
301
|
-
else if (1 < childrenLength) {
|
|
302
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
303
|
-
props.children = childArray;
|
|
304
|
-
}
|
|
305
|
-
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
306
|
-
return ReactElement(type, key, props);
|
|
307
|
-
};
|
|
308
|
-
exports.createRef = function() {
|
|
309
|
-
return { current: null };
|
|
310
|
-
};
|
|
311
|
-
exports.forwardRef = function(render) {
|
|
312
|
-
return {
|
|
313
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
314
|
-
render
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
exports.isValidElement = isValidElement;
|
|
318
|
-
exports.lazy = function(ctor) {
|
|
319
|
-
return {
|
|
320
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
321
|
-
_payload: {
|
|
322
|
-
_status: -1,
|
|
323
|
-
_result: ctor
|
|
324
|
-
},
|
|
325
|
-
_init: lazyInitializer
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
exports.memo = function(type, compare) {
|
|
329
|
-
return {
|
|
330
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
331
|
-
type,
|
|
332
|
-
compare: void 0 === compare ? null : compare
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
exports.startTransition = function(scope) {
|
|
336
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
337
|
-
ReactSharedInternals.T = currentTransition;
|
|
338
|
-
try {
|
|
339
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
340
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
341
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
342
|
-
} catch (error) {
|
|
343
|
-
reportGlobalError(error);
|
|
344
|
-
} finally {
|
|
345
|
-
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
exports.unstable_useCacheRefresh = function() {
|
|
349
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
350
|
-
};
|
|
351
|
-
exports.use = function(usable) {
|
|
352
|
-
return ReactSharedInternals.H.use(usable);
|
|
353
|
-
};
|
|
354
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
355
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
356
|
-
};
|
|
357
|
-
exports.useCallback = function(callback, deps) {
|
|
358
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
359
|
-
};
|
|
360
|
-
exports.useContext = function(Context) {
|
|
361
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
362
|
-
};
|
|
363
|
-
exports.useDebugValue = function() {};
|
|
364
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
365
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
366
|
-
};
|
|
367
|
-
exports.useEffect = function(create, deps) {
|
|
368
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
369
|
-
};
|
|
370
|
-
exports.useEffectEvent = function(callback) {
|
|
371
|
-
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
372
|
-
};
|
|
373
|
-
exports.useId = function() {
|
|
374
|
-
return ReactSharedInternals.H.useId();
|
|
375
|
-
};
|
|
376
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
377
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
378
|
-
};
|
|
379
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
380
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
381
|
-
};
|
|
382
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
383
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
384
|
-
};
|
|
385
|
-
exports.useMemo = function(create, deps) {
|
|
386
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
387
|
-
};
|
|
388
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
389
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
390
|
-
};
|
|
391
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
392
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
393
|
-
};
|
|
394
|
-
exports.useRef = function(initialValue) {
|
|
395
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
396
|
-
};
|
|
397
|
-
exports.useState = function(initialState) {
|
|
398
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
399
|
-
};
|
|
400
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
401
|
-
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
402
|
-
};
|
|
403
|
-
exports.useTransition = function() {
|
|
404
|
-
return ReactSharedInternals.H.useTransition();
|
|
405
|
-
};
|
|
406
|
-
exports.version = "19.2.7";
|
|
407
|
-
}));
|
|
408
|
-
//#endregion
|
|
409
|
-
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/index.js
|
|
410
|
-
var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
411
|
-
module.exports = require_react_production();
|
|
412
|
-
}));
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
415
|
-
/**
|
|
416
|
-
* @license React
|
|
417
|
-
* react-jsx-runtime.production.js
|
|
418
|
-
*
|
|
419
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
420
|
-
*
|
|
421
|
-
* This source code is licensed under the MIT license found in the
|
|
422
|
-
* LICENSE file in the root directory of this source tree.
|
|
423
|
-
*/
|
|
424
|
-
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
425
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
426
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
427
|
-
function jsxProd(type, config, maybeKey) {
|
|
428
|
-
var key = null;
|
|
429
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
430
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
431
|
-
if ("key" in config) {
|
|
432
|
-
maybeKey = {};
|
|
433
|
-
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
434
|
-
} else maybeKey = config;
|
|
435
|
-
config = maybeKey.ref;
|
|
436
|
-
return {
|
|
437
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
438
|
-
type,
|
|
439
|
-
key,
|
|
440
|
-
ref: void 0 !== config ? config : null,
|
|
441
|
-
props: maybeKey
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
445
|
-
exports.jsx = jsxProd;
|
|
446
|
-
exports.jsxs = jsxProd;
|
|
447
|
-
}));
|
|
448
|
-
//#endregion
|
|
449
|
-
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/jsx-runtime.js
|
|
450
|
-
var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
451
|
-
module.exports = require_react_jsx_runtime_production();
|
|
452
|
-
}));
|
|
453
|
-
//#endregion
|
|
454
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/routerContext.js
|
|
455
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
456
|
-
var routerContext = import_react.createContext(null);
|
|
457
|
-
//#endregion
|
|
458
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useRouter.js
|
|
459
|
-
/**
|
|
460
|
-
* Access the current TanStack Router instance from React context.
|
|
461
|
-
* Must be used within a `RouterProvider`.
|
|
462
|
-
*
|
|
463
|
-
* Options:
|
|
464
|
-
* - `warn`: Log a warning if no router context is found (default: true).
|
|
465
|
-
*
|
|
466
|
-
* @returns The registered router instance.
|
|
467
|
-
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/useRouterHook
|
|
468
|
-
*/
|
|
469
|
-
function useRouter(opts) {
|
|
470
|
-
return import_react.useContext(routerContext);
|
|
471
|
-
}
|
|
472
|
-
//#endregion
|
|
473
|
-
export { __commonJSMin as a, require_react as i, routerContext as n, __exportAll as o, require_jsx_runtime as r, __toESM as s, useRouter as t };
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { i as require_react, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { D as notifyManager, N as noop } from "./page-D6n45dcK.js";
|
|
3
|
-
import { a as ensurePreventErrorBoundaryRetry, c as useQueryErrorResetBoundary, f as useQueryClient, i as shouldSuspend, l as useIsRestoring, n as ensureSuspenseTimers, o as getHasError, r as fetchOptimistic, s as useClearResetErrorBoundary, t as defaultThrowOnError, u as QueryObserver } from "./suspense-C-2QfDd2.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.2.7/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
5
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6
|
-
function useBaseQuery(options, Observer, queryClient) {
|
|
7
|
-
const isRestoring = useIsRestoring();
|
|
8
|
-
const errorResetBoundary = useQueryErrorResetBoundary();
|
|
9
|
-
const client = useQueryClient(queryClient);
|
|
10
|
-
const defaultedOptions = client.defaultQueryOptions(options);
|
|
11
|
-
const query = client.getQueryCache().get(defaultedOptions.queryHash);
|
|
12
|
-
const subscribed = options.subscribed !== false;
|
|
13
|
-
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : subscribed ? "optimistic" : void 0;
|
|
14
|
-
ensureSuspenseTimers(defaultedOptions);
|
|
15
|
-
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
|
|
16
|
-
useClearResetErrorBoundary(errorResetBoundary);
|
|
17
|
-
const [observer] = import_react.useState(() => new Observer(client, defaultedOptions));
|
|
18
|
-
const result = observer.getOptimisticResult(defaultedOptions);
|
|
19
|
-
const shouldSubscribe = !isRestoring && subscribed;
|
|
20
|
-
import_react.useSyncExternalStore(import_react.useCallback((onStoreChange) => {
|
|
21
|
-
const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;
|
|
22
|
-
observer.updateResult();
|
|
23
|
-
return unsubscribe;
|
|
24
|
-
}, [observer, shouldSubscribe]), () => observer.getCurrentResult(), () => observer.getCurrentResult());
|
|
25
|
-
import_react.useEffect(() => {
|
|
26
|
-
observer.setOptions(defaultedOptions);
|
|
27
|
-
}, [defaultedOptions, observer]);
|
|
28
|
-
if (shouldSuspend(defaultedOptions, result)) throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
|
|
29
|
-
if (getHasError({
|
|
30
|
-
result,
|
|
31
|
-
errorResetBoundary,
|
|
32
|
-
throwOnError: defaultedOptions.throwOnError,
|
|
33
|
-
query,
|
|
34
|
-
suspense: defaultedOptions.suspense
|
|
35
|
-
})) throw result.error;
|
|
36
|
-
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.2.7/node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
|
|
40
|
-
/**
|
|
41
|
-
* The options for `useSuspenseQuery` are the same as for `useQuery`, except for `throwOnError`, `enabled`, and
|
|
42
|
-
* `placeholderData` — and `queryFn` may not be `skipToken`, since Suspense hooks can't render a "disabled" state.
|
|
43
|
-
*
|
|
44
|
-
* Caveat: cancellation does not work.
|
|
45
|
-
*
|
|
46
|
-
* @remarks Multiple `useSuspenseQuery` calls in the same component suspend serially, causing a request
|
|
47
|
-
* waterfall — each one blocks rendering until it resolves, so the next doesn't even start fetching until then.
|
|
48
|
-
* Use {@link useSuspenseQueries} instead when you have more than one suspenseful query in a component, so they
|
|
49
|
-
* fetch in parallel.
|
|
50
|
-
* @param options - The {@link UseSuspenseQueryOptions} to use — the same options as `useQuery`, minus the ones listed above.
|
|
51
|
-
* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will
|
|
52
|
-
* be used.
|
|
53
|
-
* @returns The same object as `useQuery`, except that `data` is guaranteed to be defined, `isPlaceholderData`
|
|
54
|
-
* is missing, and `status` is either `success` or `error` (with the derived flags set accordingly).
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* The query error is thrown if the fetch fails and no cached data exists yet, so an error boundary is
|
|
58
|
-
* required around `<Suspense>`. A failed background refetch instead continues to render the cached data.
|
|
59
|
-
* Use {@link QueryErrorResetBoundary} to let the user retry after such an error:
|
|
60
|
-
* ```tsx
|
|
61
|
-
* import { Suspense } from 'react'
|
|
62
|
-
* import { ErrorBoundary } from 'react-error-boundary'
|
|
63
|
-
* import { QueryErrorResetBoundary, useSuspenseQuery } from '@tanstack/react-query'
|
|
64
|
-
*
|
|
65
|
-
* function Posts() {
|
|
66
|
-
* // `data` is guaranteed to be defined here — no `isPending` check needed.
|
|
67
|
-
* const { data, isFetching } = useSuspenseQuery({
|
|
68
|
-
* queryKey: ['posts'],
|
|
69
|
-
* queryFn: fetchPosts,
|
|
70
|
-
* })
|
|
71
|
-
*
|
|
72
|
-
* return (
|
|
73
|
-
* <div>
|
|
74
|
-
* <h1>Posts {isFetching ? '(refreshing...)' : null}</h1>
|
|
75
|
-
* <ul>
|
|
76
|
-
* {data.map((post) => (
|
|
77
|
-
* <li key={post.id}>{post.title}</li>
|
|
78
|
-
* ))}
|
|
79
|
-
* </ul>
|
|
80
|
-
* </div>
|
|
81
|
-
* )
|
|
82
|
-
* }
|
|
83
|
-
*
|
|
84
|
-
* function App() {
|
|
85
|
-
* return (
|
|
86
|
-
* <QueryErrorResetBoundary>
|
|
87
|
-
* {({ reset }) => (
|
|
88
|
-
* <ErrorBoundary
|
|
89
|
-
* onReset={reset}
|
|
90
|
-
* fallbackRender={({ resetErrorBoundary }) => (
|
|
91
|
-
* <div>
|
|
92
|
-
* There was an error!
|
|
93
|
-
* <button onClick={() => resetErrorBoundary()}>Try again</button>
|
|
94
|
-
* </div>
|
|
95
|
-
* )}
|
|
96
|
-
* >
|
|
97
|
-
* <Suspense fallback={<h1>Loading posts...</h1>}>
|
|
98
|
-
* <Posts />
|
|
99
|
-
* </Suspense>
|
|
100
|
-
* </ErrorBoundary>
|
|
101
|
-
* )}
|
|
102
|
-
* </QueryErrorResetBoundary>
|
|
103
|
-
* )
|
|
104
|
-
* }
|
|
105
|
-
* ```
|
|
106
|
-
*/
|
|
107
|
-
function useSuspenseQuery(options, queryClient) {
|
|
108
|
-
return useBaseQuery({
|
|
109
|
-
...options,
|
|
110
|
-
enabled: true,
|
|
111
|
-
suspense: true,
|
|
112
|
-
throwOnError: defaultThrowOnError,
|
|
113
|
-
placeholderData: void 0
|
|
114
|
-
}, QueryObserver, queryClient);
|
|
115
|
-
}
|
|
116
|
-
//#endregion
|
|
117
|
-
export { useBaseQuery as n, useSuspenseQuery as t };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { n as createFileRoute, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
2
|
-
import { u as loadPrincipal } from "./page-D6n45dcK.js";
|
|
3
|
-
//#region src/routes/users.$user.tsx
|
|
4
|
-
var $$splitComponentImporter = () => import("./users._user-BmiHwQx3.js");
|
|
5
|
-
var Route = createFileRoute("/users/$user")({
|
|
6
|
-
loader: ({ context: { client, queryClient }, params }) => loadPrincipal(queryClient, client, "user", params.user),
|
|
7
|
-
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
8
|
-
});
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Route as t };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { t as Route } from "./users._user-BmLKYeo_.js";
|
|
3
|
-
import { t as PrincipalPage } from "./principal-page-C-EFwJQw.js";
|
|
4
|
-
//#region src/routes/users.$user.tsx?tsr-split=component
|
|
5
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
6
|
-
function UserPage() {
|
|
7
|
-
const { user } = Route.useParams();
|
|
8
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PrincipalPage, {
|
|
9
|
-
principalType: "user",
|
|
10
|
-
principalId: user
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { UserPage as component };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { C as useCoffre, h as queries, i as PageHeader, n as ClosedDoor } from "./page-D6n45dcK.js";
|
|
3
|
-
import { t as useShell } from "./use-shell-DwOzEi87.js";
|
|
4
|
-
import { t as useSuspenseQuery } from "./useSuspenseQuery-CSoHzrMb.js";
|
|
5
|
-
import { W as Users } from "./icons-DOFT-eWB.js";
|
|
6
|
-
import { n as DirectoryTable, t as AddPrincipal } from "./directory-B-_rqsPx.js";
|
|
7
|
-
import { n as RemovedList } from "./offboarding-CRz-K82H.js";
|
|
8
|
-
//#region src/routes/users.index.tsx?tsr-split=component
|
|
9
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
10
|
-
function UsersPage() {
|
|
11
|
-
const { capabilities } = useShell();
|
|
12
|
-
const { data: result } = useSuspenseQuery(queries.directory(useCoffre(), capabilities.canManageGrants));
|
|
13
|
-
if (!result.ok) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClosedDoor, {
|
|
14
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Users, { size: 18 }),
|
|
15
|
-
label: "Users",
|
|
16
|
-
title: "Users are closed to you",
|
|
17
|
-
children: result.error
|
|
18
|
-
});
|
|
19
|
-
const users = result.principals.filter((principal) => principal.principalType === "user");
|
|
20
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
21
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageHeader, {
|
|
22
|
-
title: "Users",
|
|
23
|
-
actions: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AddPrincipal, { principalType: "user" })
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DirectoryTable, {
|
|
26
|
-
principalType: "user",
|
|
27
|
-
principals: users,
|
|
28
|
-
hasRemoved: result.removed.some((principal) => principal.principalType === "user")
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemovedList, {
|
|
31
|
-
principalType: "user",
|
|
32
|
-
removed: result.removed
|
|
33
|
-
})
|
|
34
|
-
] });
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { UsersPage as component };
|