@hot-updater/console 0.30.0 → 0.30.2
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/.output/nitro.json +1 -1
- package/.output/public/assets/dist-BKho179_.js +53 -0
- package/.output/public/assets/main-CoPJhqkz.js +10 -0
- package/.output/public/assets/routes-CVEbccVq.js +10 -0
- package/.output/public/assets/styles-M2W42JQb.css +2 -0
- package/.output/server/__tanstack-start-server-fn-resolver-_tshRSrU.mjs +61 -0
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +3 -7
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +7 -7
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +9 -12
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +11 -1
- package/.output/server/_libs/jszip+[...].mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +7 -1
- package/.output/server/_libs/radix-ui__react-separator.mjs +1 -2
- package/.output/server/_libs/semver.mjs +1 -0
- package/.output/server/_libs/tar.mjs +2 -0
- package/.output/server/_ssr/{api-rpc-Cr26KHOK.mjs → api-rpc-CO6sLvit.mjs} +14 -15
- package/.output/server/_ssr/{config.server-TLOyHGWx.mjs → config.server-8YQWTTc0.mjs} +1 -1
- package/.output/server/_ssr/createServerFn-CdeRXnVy.mjs +320 -0
- package/.output/server/_ssr/{deleteBundle-DWUxu9-K.mjs → deleteBundle-BiJvjt0k.mjs} +1 -1
- package/.output/server/_ssr/{extract-timestamp-from-uuidv7-B90UBADU.mjs → extract-timestamp-from-uuidv7-DO_lXhMa.mjs} +1 -1
- package/.output/server/_ssr/{promoteBundle-DtMHuubR.mjs → promoteBundle-BBOSMtwu.mjs} +2 -2
- package/.output/server/_ssr/{router-DjaryVgW.mjs → router-B-zW1hRH.mjs} +5 -5
- package/.output/server/_ssr/{routes-_o5eQ953.mjs → routes-JrS17vVq.mjs} +136 -28
- package/.output/server/_ssr/{sidebar-DXng0IOP.mjs → sidebar-B6a7DDef.mjs} +1 -1
- package/.output/server/_ssr/ssr.mjs +7 -380
- package/.output/server/_ssr/start-C-dW39LD.mjs +4 -0
- package/.output/server/{_tanstack-start-manifest_v-DlKQbuiB.mjs → _tanstack-start-manifest_v-OXy-e32b.mjs} +4 -4
- package/.output/server/index.mjs +57 -50
- package/package.json +8 -8
- package/.output/public/assets/main-l1zcdavI.js +0 -61
- package/.output/public/assets/routes-BlHtyRHx.js +0 -10
- package/.output/public/assets/styles-Bfxg4M1x.css +0 -2
- package/.output/server/_ssr/start-DQK0r85G.mjs +0 -4
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { c as createServerFn, i as TSS_SERVER_FUNCTION } from "./createServerFn-CdeRXnVy.mjs";
|
|
3
|
+
import { n as extractTimestampFromUUIDv7, t as createUUIDv7 } from "./extract-timestamp-from-uuidv7-DO_lXhMa.mjs";
|
|
2
4
|
import { A as Slot, P as require_jsx_runtime, a as Overlay2, c as Title2, d as Description, f as Overlay, g as Trigger, h as Title, i as Description2, l as Close, m as Root, n as Cancel, o as Portal2, p as Portal, r as Content2, s as Root2, t as Action, u as Content } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
|
|
3
|
-
import { d as useNavigate, f as useSearch } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
4
5
|
import { u as require_react } from "../_libs/@floating-ui/react-dom+[...].mjs";
|
|
5
|
-
import { n as useStore, t as useForm } from "../_libs/@tanstack/react-form+[...].mjs";
|
|
6
|
-
import { n as createServerFn, r as TSS_SERVER_FUNCTION, t as getServerFnById } from "./ssr.mjs";
|
|
7
|
-
import { n as extractTimestampFromUUIDv7, t as createUUIDv7 } from "./extract-timestamp-from-uuidv7-B90UBADU.mjs";
|
|
8
6
|
import { S as Check, b as ChevronLeft, d as List, g as Download, h as ExternalLink, i as Plus, l as Minus, m as FingerprintPattern, n as TriangleAlert, o as Package, p as Funnel, t as X, v as ChevronUp, x as ChevronDown, y as ChevronRight } from "../_libs/lucide-react.mjs";
|
|
9
7
|
import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
|
|
10
8
|
import { a as ItemText, c as ScrollDownButton, d as Value, f as Viewport, i as ItemIndicator, l as ScrollUpButton, n as Icon, o as Portal$1, r as Item, s as Root2$1, t as Content2$1, u as Trigger$1 } from "../_libs/@radix-ui/react-select+[...].mjs";
|
|
11
9
|
import { t as Root$1 } from "../_libs/radix-ui__react-label.mjs";
|
|
12
10
|
import { i as Track, n as Root$2, r as Thumb, t as Range } from "../_libs/radix-ui__react-slider.mjs";
|
|
13
11
|
import { n as Thumb$1, t as Root$3 } from "../_libs/radix-ui__react-switch.mjs";
|
|
14
|
-
import { C as Tooltip$1, D as cn, E as TooltipTrigger, S as Skeleton, T as TooltipProvider, a as SheetContent, c as SheetTitle, i as Sheet, n as Input, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button, w as TooltipContent, x as SidebarTrigger } from "./sidebar-
|
|
12
|
+
import { C as Tooltip$1, D as cn, E as TooltipTrigger, S as Skeleton, T as TooltipProvider, a as SheetContent, c as SheetTitle, i as Sheet, n as Input, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button, w as TooltipContent, x as SidebarTrigger } from "./sidebar-B6a7DDef.mjs";
|
|
13
|
+
import { d as useNavigate, f as useSearch } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
14
|
+
import { n as useStore, t as useForm } from "../_libs/@tanstack/react-form+[...].mjs";
|
|
15
15
|
import { i as useQueryClient, n as useQuery, t as useMutation } from "../_libs/tanstack__react-query.mjs";
|
|
16
16
|
import { n as toast } from "../_libs/sonner.mjs";
|
|
17
|
+
import { t as getServerFnById } from "../__tanstack-start-server-fn-resolver-_tshRSrU.mjs";
|
|
17
18
|
import { t as require_semver } from "../_libs/semver.mjs";
|
|
18
19
|
import { i as getCoreRowModel, n as useReactTable, r as createColumnHelper, t as flexRender } from "../_libs/@tanstack/react-table+[...].mjs";
|
|
19
20
|
import { n as require_dayjs_min, t as require_relativeTime } from "../_libs/dayjs.mjs";
|
|
20
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/routes-
|
|
21
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/routes-JrS17vVq.js
|
|
21
22
|
var import_jsx_runtime = require_jsx_runtime();
|
|
22
23
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
23
24
|
var import_semver = /* @__PURE__ */ __toESM(require_semver());
|
|
@@ -193,6 +194,59 @@ function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
|
193
194
|
...props
|
|
194
195
|
});
|
|
195
196
|
}
|
|
197
|
+
function Textarea({ className, ...props }) {
|
|
198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
|
|
199
|
+
"data-slot": "textarea",
|
|
200
|
+
className: cn("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
201
|
+
...props
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function InputGroup({ className, ...props }) {
|
|
205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
206
|
+
"data-slot": "input-group",
|
|
207
|
+
className: cn("border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-[2px] has-[[data-slot][aria-invalid=true]]:ring-[2px] has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto", className),
|
|
208
|
+
...props
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
var inputGroupAddonVariants = cva("text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5 flex cursor-text items-center justify-center select-none", {
|
|
212
|
+
variants: { align: {
|
|
213
|
+
"inline-start": "pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem] order-first",
|
|
214
|
+
"inline-end": "pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem] order-last",
|
|
215
|
+
"block-start": "px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start",
|
|
216
|
+
"block-end": "px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start"
|
|
217
|
+
} },
|
|
218
|
+
defaultVariants: { align: "inline-start" }
|
|
219
|
+
});
|
|
220
|
+
function InputGroupAddon({ className, align = "inline-start", ...props }) {
|
|
221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
222
|
+
"data-slot": "input-group-addon",
|
|
223
|
+
"data-align": align,
|
|
224
|
+
className: cn(inputGroupAddonVariants({ align }), className),
|
|
225
|
+
...props
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
cva("gap-2 rounded-md text-xs/relaxed shadow-none flex items-center", {
|
|
229
|
+
variants: { size: {
|
|
230
|
+
xs: "h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3",
|
|
231
|
+
sm: "",
|
|
232
|
+
"icon-xs": "size-6 p-0 has-[>svg]:p-0",
|
|
233
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
234
|
+
} },
|
|
235
|
+
defaultVariants: { size: "xs" }
|
|
236
|
+
});
|
|
237
|
+
function InputGroupText({ className, ...props }) {
|
|
238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
239
|
+
className: cn("text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", className),
|
|
240
|
+
...props
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
function InputGroupInput({ className, ...props }) {
|
|
244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
245
|
+
"data-slot": "input-group-control",
|
|
246
|
+
className: cn("rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className),
|
|
247
|
+
...props
|
|
248
|
+
});
|
|
249
|
+
}
|
|
196
250
|
function Label$1({ className, ...props }) {
|
|
197
251
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root$1, {
|
|
198
252
|
"data-slot": "label",
|
|
@@ -239,13 +293,6 @@ function Switch$1({ className, ...props }) {
|
|
|
239
293
|
})
|
|
240
294
|
});
|
|
241
295
|
}
|
|
242
|
-
function Textarea({ className, ...props }) {
|
|
243
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
|
|
244
|
-
"data-slot": "textarea",
|
|
245
|
-
className: cn("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
246
|
-
...props
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
296
|
var createSsrRpc = (functionId, importer) => {
|
|
250
297
|
const url = "/_serverFn/" + functionId;
|
|
251
298
|
const serverFnMeta = { id: functionId };
|
|
@@ -1039,6 +1086,8 @@ function RolloutCohortsDialog({ bundleId, rolloutCohortCount, targetCohorts, tri
|
|
|
1039
1086
|
]
|
|
1040
1087
|
})] });
|
|
1041
1088
|
}
|
|
1089
|
+
var MIN_ROLLOUT_COHORT_COUNT = 10;
|
|
1090
|
+
var MAX_ROLLOUT_COHORT_COUNT = 1e3;
|
|
1042
1091
|
function getTargetAppVersionValidation(value) {
|
|
1043
1092
|
const normalizedValue = value.trim();
|
|
1044
1093
|
if (normalizedValue.length === 0) return {
|
|
@@ -1066,6 +1115,73 @@ function getDefaultValues(bundle) {
|
|
|
1066
1115
|
};
|
|
1067
1116
|
}
|
|
1068
1117
|
var formatRolloutPercentage = (rolloutCohortCount) => (rolloutCohortCount / 10).toFixed(1);
|
|
1118
|
+
function clampRolloutCohortCount(value) {
|
|
1119
|
+
return Math.min(Math.max(value, MIN_ROLLOUT_COHORT_COUNT), MAX_ROLLOUT_COHORT_COUNT);
|
|
1120
|
+
}
|
|
1121
|
+
function formatRolloutInputValue(value) {
|
|
1122
|
+
const normalizedValue = value.replace(",", ".");
|
|
1123
|
+
const [integerValue = "", ...decimalValues] = normalizedValue.split(".");
|
|
1124
|
+
const integerDigits = integerValue.replace(/\D/g, "").slice(0, 3);
|
|
1125
|
+
const decimalDigits = decimalValues.join("").replace(/\D/g, "").slice(0, 1);
|
|
1126
|
+
if (normalizedValue.includes(".")) return `${integerDigits}.${decimalDigits}`;
|
|
1127
|
+
return integerDigits;
|
|
1128
|
+
}
|
|
1129
|
+
function parseRolloutPercentageInput(value) {
|
|
1130
|
+
const parsedValue = Number.parseFloat(value);
|
|
1131
|
+
if (!Number.isFinite(parsedValue)) return null;
|
|
1132
|
+
return clampRolloutCohortCount(Math.trunc(parsedValue * 10));
|
|
1133
|
+
}
|
|
1134
|
+
function RolloutPercentageInput({ value, onChange }) {
|
|
1135
|
+
const [inputValue, setInputValue] = (0, import_react.useState)(formatRolloutPercentage(value));
|
|
1136
|
+
const [isFocused, setIsFocused] = (0, import_react.useState)(false);
|
|
1137
|
+
(0, import_react.useEffect)(() => {
|
|
1138
|
+
if (!isFocused) setInputValue(formatRolloutPercentage(value));
|
|
1139
|
+
}, [isFocused, value]);
|
|
1140
|
+
const handleInputChange = (e) => {
|
|
1141
|
+
const nextInputValue = formatRolloutInputValue(e.target.value);
|
|
1142
|
+
const nextRolloutCohortCount = parseRolloutPercentageInput(nextInputValue);
|
|
1143
|
+
setInputValue(nextInputValue);
|
|
1144
|
+
if (nextRolloutCohortCount !== null) onChange(nextRolloutCohortCount);
|
|
1145
|
+
};
|
|
1146
|
+
const handleInputBlur = () => {
|
|
1147
|
+
const nextRolloutCohortCount = parseRolloutPercentageInput(inputValue) ?? value;
|
|
1148
|
+
setIsFocused(false);
|
|
1149
|
+
onChange(nextRolloutCohortCount);
|
|
1150
|
+
setInputValue(formatRolloutPercentage(nextRolloutCohortCount));
|
|
1151
|
+
};
|
|
1152
|
+
const handleSliderChange = ([nextValue]) => {
|
|
1153
|
+
const nextRolloutCohortCount = clampRolloutCohortCount(nextValue);
|
|
1154
|
+
onChange(nextRolloutCohortCount);
|
|
1155
|
+
setInputValue(formatRolloutPercentage(nextRolloutCohortCount));
|
|
1156
|
+
};
|
|
1157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1158
|
+
className: "flex items-center gap-3",
|
|
1159
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slider$1, {
|
|
1160
|
+
id: "rolloutCohortCount",
|
|
1161
|
+
value: [value],
|
|
1162
|
+
onValueChange: handleSliderChange,
|
|
1163
|
+
min: MIN_ROLLOUT_COHORT_COUNT,
|
|
1164
|
+
max: MAX_ROLLOUT_COHORT_COUNT,
|
|
1165
|
+
step: 1,
|
|
1166
|
+
className: "min-w-0 flex-1"
|
|
1167
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InputGroup, {
|
|
1168
|
+
className: "w-24 shrink-0",
|
|
1169
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroupInput, {
|
|
1170
|
+
id: "rolloutPercentage",
|
|
1171
|
+
value: inputValue,
|
|
1172
|
+
onChange: handleInputChange,
|
|
1173
|
+
onFocus: () => setIsFocused(true),
|
|
1174
|
+
onBlur: handleInputBlur,
|
|
1175
|
+
inputMode: "decimal",
|
|
1176
|
+
"aria-label": "Rollout Percentage",
|
|
1177
|
+
className: "text-right tabular-nums"
|
|
1178
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroupAddon, {
|
|
1179
|
+
align: "inline-end",
|
|
1180
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroupText, { children: "%" })
|
|
1181
|
+
})]
|
|
1182
|
+
})]
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1069
1185
|
function BundleEditorForm({ bundle, onClose, onBusyChange }) {
|
|
1070
1186
|
const bundleDownloadUrlMutation = useBundleDownloadUrlMutation();
|
|
1071
1187
|
const updateBundleMutation = useUpdateBundleMutation();
|
|
@@ -1266,30 +1382,22 @@ function BundleEditorForm({ bundle, onClose, onBusyChange }) {
|
|
|
1266
1382
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1267
1383
|
className: "flex items-center justify-between",
|
|
1268
1384
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$1, {
|
|
1269
|
-
htmlFor: "
|
|
1385
|
+
htmlFor: "rolloutPercentage",
|
|
1270
1386
|
children: "Rollout Percentage"
|
|
1271
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.
|
|
1387
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1272
1388
|
className: "flex items-center gap-2",
|
|
1273
|
-
children:
|
|
1274
|
-
className: "text-sm font-medium",
|
|
1275
|
-
children: [formatRolloutPercentage(field.state.value), "%"]
|
|
1276
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutCohortsDialog, {
|
|
1389
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutCohortsDialog, {
|
|
1277
1390
|
bundleId: bundle.id,
|
|
1278
1391
|
rolloutCohortCount: field.state.value,
|
|
1279
1392
|
targetCohorts,
|
|
1280
1393
|
triggerLabel: "Preview Cohorts",
|
|
1281
1394
|
triggerVariant: "outline",
|
|
1282
1395
|
triggerSize: "sm"
|
|
1283
|
-
})
|
|
1396
|
+
})
|
|
1284
1397
|
})]
|
|
1285
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
onValueChange: ([value]) => field.handleChange(value),
|
|
1289
|
-
min: 0,
|
|
1290
|
-
max: 1e3,
|
|
1291
|
-
step: 1,
|
|
1292
|
-
className: "mt-2"
|
|
1398
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageInput, {
|
|
1399
|
+
value: field.state.value,
|
|
1400
|
+
onChange: field.handleChange
|
|
1293
1401
|
})]
|
|
1294
1402
|
})
|
|
1295
1403
|
}),
|
|
@@ -6,7 +6,7 @@ import { n as clsx, t as cva } from "../_libs/class-variance-authority+clsx.mjs"
|
|
|
6
6
|
import { t as Root$1 } from "../_libs/radix-ui__react-separator.mjs";
|
|
7
7
|
import { a as Root3, i as Provider, n as Content2, o as Trigger, r as Portal$1, t as Arrow2 } from "../_libs/radix-ui__react-tooltip.mjs";
|
|
8
8
|
import { t as twMerge } from "../_libs/tailwind-merge.mjs";
|
|
9
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/sidebar-
|
|
9
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/sidebar-B6a7DDef.js
|
|
10
10
|
var import_jsx_runtime = require_jsx_runtime();
|
|
11
11
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
12
12
|
function cn(...inputs) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { a as X_TSS_RAW_RESPONSE, d as isRedirect, f as isResolvedRedirect, h as safeObjectMerge, i as TSS_SERVER_FUNCTION, l as flattenMiddlewares, m as runWithStartContext, n as TSS_CONTENT_TYPE_FRAMED_VERSIONED, o as X_TSS_SERIALIZED, p as mergeHeaders, r as TSS_FORMDATA_CONTEXT, s as createNullProtoObject, t as FrameType, u as getStartOptions } from "./createServerFn-CdeRXnVy.mjs";
|
|
1
2
|
import { P as require_jsx_runtime } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
|
|
2
3
|
import { i as RouterProvider, t as renderRouterToStream } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
4
|
+
import { t as getServerFnById } from "../__tanstack-start-server-fn-resolver-_tshRSrU.mjs";
|
|
3
5
|
import { t as defineHandlerCallback } from "../_libs/tanstack__router-core.mjs";
|
|
4
6
|
import { PassThrough, Readable } from "node:stream";
|
|
5
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -213,62 +215,6 @@ function parseHref(href, state) {
|
|
|
213
215
|
function createRandomKey() {
|
|
214
216
|
return (Math.random() + 1).toString(36).substring(7);
|
|
215
217
|
}
|
|
216
|
-
function splitSetCookieString(cookiesString) {
|
|
217
|
-
if (Array.isArray(cookiesString)) return cookiesString.flatMap((c) => splitSetCookieString(c));
|
|
218
|
-
if (typeof cookiesString !== "string") return [];
|
|
219
|
-
const cookiesStrings = [];
|
|
220
|
-
let pos = 0;
|
|
221
|
-
let start;
|
|
222
|
-
let ch;
|
|
223
|
-
let lastComma;
|
|
224
|
-
let nextStart;
|
|
225
|
-
let cookiesSeparatorFound;
|
|
226
|
-
const skipWhitespace = () => {
|
|
227
|
-
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
|
|
228
|
-
return pos < cookiesString.length;
|
|
229
|
-
};
|
|
230
|
-
const notSpecialChar = () => {
|
|
231
|
-
ch = cookiesString.charAt(pos);
|
|
232
|
-
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
233
|
-
};
|
|
234
|
-
while (pos < cookiesString.length) {
|
|
235
|
-
start = pos;
|
|
236
|
-
cookiesSeparatorFound = false;
|
|
237
|
-
while (skipWhitespace()) {
|
|
238
|
-
ch = cookiesString.charAt(pos);
|
|
239
|
-
if (ch === ",") {
|
|
240
|
-
lastComma = pos;
|
|
241
|
-
pos += 1;
|
|
242
|
-
skipWhitespace();
|
|
243
|
-
nextStart = pos;
|
|
244
|
-
while (pos < cookiesString.length && notSpecialChar()) pos += 1;
|
|
245
|
-
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
246
|
-
cookiesSeparatorFound = true;
|
|
247
|
-
pos = nextStart;
|
|
248
|
-
cookiesStrings.push(cookiesString.slice(start, lastComma));
|
|
249
|
-
start = pos;
|
|
250
|
-
} else pos = lastComma + 1;
|
|
251
|
-
} else pos += 1;
|
|
252
|
-
}
|
|
253
|
-
if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.slice(start));
|
|
254
|
-
}
|
|
255
|
-
return cookiesStrings;
|
|
256
|
-
}
|
|
257
|
-
function toHeadersInstance(init) {
|
|
258
|
-
if (init instanceof Headers) return init;
|
|
259
|
-
else if (Array.isArray(init)) return new Headers(init);
|
|
260
|
-
else if (typeof init === "object") return new Headers(init);
|
|
261
|
-
else return null;
|
|
262
|
-
}
|
|
263
|
-
function mergeHeaders(...headers) {
|
|
264
|
-
return headers.reduce((acc, header) => {
|
|
265
|
-
const headersInstance = toHeadersInstance(header);
|
|
266
|
-
if (!headersInstance) return acc;
|
|
267
|
-
for (const [key, value] of headersInstance.entries()) if (key === "set-cookie") splitSetCookieString(value).forEach((cookie) => acc.append("set-cookie", cookie));
|
|
268
|
-
else acc.set(key, value);
|
|
269
|
-
return acc;
|
|
270
|
-
}, new Headers());
|
|
271
|
-
}
|
|
272
218
|
var isProduction = true;
|
|
273
219
|
var prefix = "Invariant failed";
|
|
274
220
|
function invariant(condition, message) {
|
|
@@ -396,31 +342,6 @@ function createLRUCache(max) {
|
|
|
396
342
|
};
|
|
397
343
|
}
|
|
398
344
|
var rootRouteId = "__root__";
|
|
399
|
-
function redirect(opts) {
|
|
400
|
-
opts.statusCode = opts.statusCode || opts.code || 307;
|
|
401
|
-
if (!opts._builtLocation && !opts.reloadDocument && typeof opts.href === "string") try {
|
|
402
|
-
new URL(opts.href);
|
|
403
|
-
opts.reloadDocument = true;
|
|
404
|
-
} catch {}
|
|
405
|
-
const headers = new Headers(opts.headers);
|
|
406
|
-
if (opts.href && headers.get("Location") === null) headers.set("Location", opts.href);
|
|
407
|
-
const response = new Response(null, {
|
|
408
|
-
status: opts.statusCode,
|
|
409
|
-
headers
|
|
410
|
-
});
|
|
411
|
-
response.options = opts;
|
|
412
|
-
if (opts.throw) throw response;
|
|
413
|
-
return response;
|
|
414
|
-
}
|
|
415
|
-
function isRedirect(obj) {
|
|
416
|
-
return obj instanceof Response && !!obj.options;
|
|
417
|
-
}
|
|
418
|
-
function isResolvedRedirect(obj) {
|
|
419
|
-
return isRedirect(obj) && !!obj.options.href;
|
|
420
|
-
}
|
|
421
|
-
function parseRedirect(obj) {
|
|
422
|
-
if (obj !== null && typeof obj === "object" && obj.isSerializedRedirect) return redirect(obj);
|
|
423
|
-
}
|
|
424
345
|
function executeRewriteInput(rewrite, url) {
|
|
425
346
|
const res = rewrite?.input?.({ url });
|
|
426
347
|
if (res) {
|
|
@@ -761,8 +682,7 @@ var x$1 = class extends Error {
|
|
|
761
682
|
constructor(r) {
|
|
762
683
|
super(_(8));
|
|
763
684
|
}
|
|
764
|
-
}
|
|
765
|
-
var ee = class extends Error {
|
|
685
|
+
}, ee = class extends Error {
|
|
766
686
|
constructor(r) {
|
|
767
687
|
super(_(9));
|
|
768
688
|
}
|
|
@@ -3212,241 +3132,6 @@ var defaultSerovalPlugins = [
|
|
|
3212
3132
|
RawStreamSSRPlugin,
|
|
3213
3133
|
p
|
|
3214
3134
|
];
|
|
3215
|
-
var TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT";
|
|
3216
|
-
var TSS_SERVER_FUNCTION = /* @__PURE__ */ Symbol.for("TSS_SERVER_FUNCTION");
|
|
3217
|
-
var TSS_SERVER_FUNCTION_FACTORY = /* @__PURE__ */ Symbol.for("TSS_SERVER_FUNCTION_FACTORY");
|
|
3218
|
-
var X_TSS_SERIALIZED = "x-tss-serialized";
|
|
3219
|
-
var X_TSS_RAW_RESPONSE = "x-tss-raw";
|
|
3220
|
-
var TSS_CONTENT_TYPE_FRAMED = "application/x-tss-framed";
|
|
3221
|
-
var FrameType = {
|
|
3222
|
-
JSON: 0,
|
|
3223
|
-
CHUNK: 1,
|
|
3224
|
-
END: 2,
|
|
3225
|
-
ERROR: 3
|
|
3226
|
-
};
|
|
3227
|
-
var TSS_CONTENT_TYPE_FRAMED_VERSIONED = `${TSS_CONTENT_TYPE_FRAMED}; v=1`;
|
|
3228
|
-
var GLOBAL_STORAGE_KEY = /* @__PURE__ */ Symbol.for("tanstack-start:start-storage-context");
|
|
3229
|
-
var globalObj$1 = globalThis;
|
|
3230
|
-
if (!globalObj$1[GLOBAL_STORAGE_KEY]) globalObj$1[GLOBAL_STORAGE_KEY] = new AsyncLocalStorage();
|
|
3231
|
-
var startStorage = globalObj$1[GLOBAL_STORAGE_KEY];
|
|
3232
|
-
async function runWithStartContext(context, fn) {
|
|
3233
|
-
return startStorage.run(context, fn);
|
|
3234
|
-
}
|
|
3235
|
-
function getStartContext(opts) {
|
|
3236
|
-
const context = startStorage.getStore();
|
|
3237
|
-
if (!context && opts?.throwIfNotFound !== false) throw new Error(`No Start context found in AsyncLocalStorage. Make sure you are using the function within the server runtime.`);
|
|
3238
|
-
return context;
|
|
3239
|
-
}
|
|
3240
|
-
var getStartOptions = () => getStartContext().startOptions;
|
|
3241
|
-
var getStartContextServerOnly = getStartContext;
|
|
3242
|
-
function isSafeKey(key) {
|
|
3243
|
-
return key !== "__proto__" && key !== "constructor" && key !== "prototype";
|
|
3244
|
-
}
|
|
3245
|
-
function safeObjectMerge(target, source) {
|
|
3246
|
-
const result = /* @__PURE__ */ Object.create(null);
|
|
3247
|
-
if (target) {
|
|
3248
|
-
for (const key of Object.keys(target)) if (isSafeKey(key)) result[key] = target[key];
|
|
3249
|
-
}
|
|
3250
|
-
if (source && typeof source === "object") {
|
|
3251
|
-
for (const key of Object.keys(source)) if (isSafeKey(key)) result[key] = source[key];
|
|
3252
|
-
}
|
|
3253
|
-
return result;
|
|
3254
|
-
}
|
|
3255
|
-
function createNullProtoObject(source) {
|
|
3256
|
-
if (!source) return /* @__PURE__ */ Object.create(null);
|
|
3257
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
3258
|
-
for (const key of Object.keys(source)) if (isSafeKey(key)) obj[key] = source[key];
|
|
3259
|
-
return obj;
|
|
3260
|
-
}
|
|
3261
|
-
var createServerFn = (options, __opts) => {
|
|
3262
|
-
const resolvedOptions = __opts || options || {};
|
|
3263
|
-
if (typeof resolvedOptions.method === "undefined") resolvedOptions.method = "GET";
|
|
3264
|
-
const res = {
|
|
3265
|
-
options: resolvedOptions,
|
|
3266
|
-
middleware: (middleware) => {
|
|
3267
|
-
const newMiddleware = [...resolvedOptions.middleware || []];
|
|
3268
|
-
middleware.map((m) => {
|
|
3269
|
-
if (TSS_SERVER_FUNCTION_FACTORY in m) {
|
|
3270
|
-
if (m.options.middleware) newMiddleware.push(...m.options.middleware);
|
|
3271
|
-
} else newMiddleware.push(m);
|
|
3272
|
-
});
|
|
3273
|
-
const res2 = createServerFn(void 0, {
|
|
3274
|
-
...resolvedOptions,
|
|
3275
|
-
middleware: newMiddleware
|
|
3276
|
-
});
|
|
3277
|
-
res2[TSS_SERVER_FUNCTION_FACTORY] = true;
|
|
3278
|
-
return res2;
|
|
3279
|
-
},
|
|
3280
|
-
inputValidator: (inputValidator) => {
|
|
3281
|
-
return createServerFn(void 0, {
|
|
3282
|
-
...resolvedOptions,
|
|
3283
|
-
inputValidator
|
|
3284
|
-
});
|
|
3285
|
-
},
|
|
3286
|
-
handler: (...args) => {
|
|
3287
|
-
const [extractedFn, serverFn] = args;
|
|
3288
|
-
const newOptions = {
|
|
3289
|
-
...resolvedOptions,
|
|
3290
|
-
extractedFn,
|
|
3291
|
-
serverFn
|
|
3292
|
-
};
|
|
3293
|
-
const resolvedMiddleware = [...newOptions.middleware || [], serverFnBaseToMiddleware(newOptions)];
|
|
3294
|
-
extractedFn.method = resolvedOptions.method;
|
|
3295
|
-
return Object.assign(async (opts) => {
|
|
3296
|
-
const result = await executeMiddleware$1(resolvedMiddleware, "client", {
|
|
3297
|
-
...extractedFn,
|
|
3298
|
-
...newOptions,
|
|
3299
|
-
data: opts?.data,
|
|
3300
|
-
headers: opts?.headers,
|
|
3301
|
-
signal: opts?.signal,
|
|
3302
|
-
fetch: opts?.fetch,
|
|
3303
|
-
context: createNullProtoObject()
|
|
3304
|
-
});
|
|
3305
|
-
const redirect = parseRedirect(result.error);
|
|
3306
|
-
if (redirect) throw redirect;
|
|
3307
|
-
if (result.error) throw result.error;
|
|
3308
|
-
return result.result;
|
|
3309
|
-
}, {
|
|
3310
|
-
...extractedFn,
|
|
3311
|
-
method: resolvedOptions.method,
|
|
3312
|
-
__executeServer: async (opts) => {
|
|
3313
|
-
const startContext = getStartContextServerOnly();
|
|
3314
|
-
const serverContextAfterGlobalMiddlewares = startContext.contextAfterGlobalMiddlewares;
|
|
3315
|
-
return await executeMiddleware$1(resolvedMiddleware, "server", {
|
|
3316
|
-
...extractedFn,
|
|
3317
|
-
...opts,
|
|
3318
|
-
serverFnMeta: extractedFn.serverFnMeta,
|
|
3319
|
-
context: safeObjectMerge(serverContextAfterGlobalMiddlewares, opts.context),
|
|
3320
|
-
request: startContext.request
|
|
3321
|
-
}).then((d) => ({
|
|
3322
|
-
result: d.result,
|
|
3323
|
-
error: d.error,
|
|
3324
|
-
context: d.sendContext
|
|
3325
|
-
}));
|
|
3326
|
-
}
|
|
3327
|
-
});
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
const fun = (options2) => {
|
|
3331
|
-
return createServerFn(void 0, {
|
|
3332
|
-
...resolvedOptions,
|
|
3333
|
-
...options2
|
|
3334
|
-
});
|
|
3335
|
-
};
|
|
3336
|
-
return Object.assign(fun, res);
|
|
3337
|
-
};
|
|
3338
|
-
async function executeMiddleware$1(middlewares, env, opts) {
|
|
3339
|
-
let flattenedMiddlewares = flattenMiddlewares([...getStartOptions()?.functionMiddleware || [], ...middlewares]);
|
|
3340
|
-
if (env === "server") {
|
|
3341
|
-
const startContext = getStartContextServerOnly({ throwIfNotFound: false });
|
|
3342
|
-
if (startContext?.executedRequestMiddlewares) flattenedMiddlewares = flattenedMiddlewares.filter((m) => !startContext.executedRequestMiddlewares.has(m));
|
|
3343
|
-
}
|
|
3344
|
-
const callNextMiddleware = async (ctx) => {
|
|
3345
|
-
const nextMiddleware = flattenedMiddlewares.shift();
|
|
3346
|
-
if (!nextMiddleware) return ctx;
|
|
3347
|
-
try {
|
|
3348
|
-
if ("inputValidator" in nextMiddleware.options && nextMiddleware.options.inputValidator && env === "server") ctx.data = await execValidator(nextMiddleware.options.inputValidator, ctx.data);
|
|
3349
|
-
let middlewareFn = void 0;
|
|
3350
|
-
if (env === "client") {
|
|
3351
|
-
if ("client" in nextMiddleware.options) middlewareFn = nextMiddleware.options.client;
|
|
3352
|
-
} else if ("server" in nextMiddleware.options) middlewareFn = nextMiddleware.options.server;
|
|
3353
|
-
if (middlewareFn) {
|
|
3354
|
-
const userNext = async (userCtx = {}) => {
|
|
3355
|
-
const result2 = await callNextMiddleware({
|
|
3356
|
-
...ctx,
|
|
3357
|
-
...userCtx,
|
|
3358
|
-
context: safeObjectMerge(ctx.context, userCtx.context),
|
|
3359
|
-
sendContext: safeObjectMerge(ctx.sendContext, userCtx.sendContext),
|
|
3360
|
-
headers: mergeHeaders(ctx.headers, userCtx.headers),
|
|
3361
|
-
_callSiteFetch: ctx._callSiteFetch,
|
|
3362
|
-
fetch: ctx._callSiteFetch ?? userCtx.fetch ?? ctx.fetch,
|
|
3363
|
-
result: userCtx.result !== void 0 ? userCtx.result : userCtx instanceof Response ? userCtx : ctx.result,
|
|
3364
|
-
error: userCtx.error ?? ctx.error
|
|
3365
|
-
});
|
|
3366
|
-
if (result2.error) throw result2.error;
|
|
3367
|
-
return result2;
|
|
3368
|
-
};
|
|
3369
|
-
const result = await middlewareFn({
|
|
3370
|
-
...ctx,
|
|
3371
|
-
next: userNext
|
|
3372
|
-
});
|
|
3373
|
-
if (isRedirect(result)) return {
|
|
3374
|
-
...ctx,
|
|
3375
|
-
error: result
|
|
3376
|
-
};
|
|
3377
|
-
if (result instanceof Response) return {
|
|
3378
|
-
...ctx,
|
|
3379
|
-
result
|
|
3380
|
-
};
|
|
3381
|
-
if (!result) throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");
|
|
3382
|
-
return result;
|
|
3383
|
-
}
|
|
3384
|
-
return callNextMiddleware(ctx);
|
|
3385
|
-
} catch (error) {
|
|
3386
|
-
return {
|
|
3387
|
-
...ctx,
|
|
3388
|
-
error
|
|
3389
|
-
};
|
|
3390
|
-
}
|
|
3391
|
-
};
|
|
3392
|
-
return callNextMiddleware({
|
|
3393
|
-
...opts,
|
|
3394
|
-
headers: opts.headers || {},
|
|
3395
|
-
sendContext: opts.sendContext || {},
|
|
3396
|
-
context: opts.context || createNullProtoObject(),
|
|
3397
|
-
_callSiteFetch: opts.fetch
|
|
3398
|
-
});
|
|
3399
|
-
}
|
|
3400
|
-
function flattenMiddlewares(middlewares, maxDepth = 100) {
|
|
3401
|
-
const seen = /* @__PURE__ */ new Set();
|
|
3402
|
-
const flattened = [];
|
|
3403
|
-
const recurse = (middleware, depth) => {
|
|
3404
|
-
if (depth > maxDepth) throw new Error(`Middleware nesting depth exceeded maximum of ${maxDepth}. Check for circular references.`);
|
|
3405
|
-
middleware.forEach((m) => {
|
|
3406
|
-
if (m.options.middleware) recurse(m.options.middleware, depth + 1);
|
|
3407
|
-
if (!seen.has(m)) {
|
|
3408
|
-
seen.add(m);
|
|
3409
|
-
flattened.push(m);
|
|
3410
|
-
}
|
|
3411
|
-
});
|
|
3412
|
-
};
|
|
3413
|
-
recurse(middlewares, 0);
|
|
3414
|
-
return flattened;
|
|
3415
|
-
}
|
|
3416
|
-
async function execValidator(validator, input) {
|
|
3417
|
-
if (validator == null) return {};
|
|
3418
|
-
if ("~standard" in validator) {
|
|
3419
|
-
const result = await validator["~standard"].validate(input);
|
|
3420
|
-
if (result.issues) throw new Error(JSON.stringify(result.issues, void 0, 2));
|
|
3421
|
-
return result.value;
|
|
3422
|
-
}
|
|
3423
|
-
if ("parse" in validator) return validator.parse(input);
|
|
3424
|
-
if (typeof validator === "function") return validator(input);
|
|
3425
|
-
throw new Error("Invalid validator type!");
|
|
3426
|
-
}
|
|
3427
|
-
function serverFnBaseToMiddleware(options) {
|
|
3428
|
-
return {
|
|
3429
|
-
"~types": void 0,
|
|
3430
|
-
options: {
|
|
3431
|
-
inputValidator: options.inputValidator,
|
|
3432
|
-
client: async ({ next, sendContext, fetch, ...ctx }) => {
|
|
3433
|
-
const payload = {
|
|
3434
|
-
...ctx,
|
|
3435
|
-
context: sendContext,
|
|
3436
|
-
fetch
|
|
3437
|
-
};
|
|
3438
|
-
return next(await options.extractedFn?.(payload));
|
|
3439
|
-
},
|
|
3440
|
-
server: async ({ next, ...ctx }) => {
|
|
3441
|
-
const result = await options.serverFn?.(ctx);
|
|
3442
|
-
return next({
|
|
3443
|
-
...ctx,
|
|
3444
|
-
result
|
|
3445
|
-
});
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3448
|
-
};
|
|
3449
|
-
}
|
|
3450
3135
|
function getDefaultSerovalPlugins() {
|
|
3451
3136
|
return [...(getStartOptions()?.serializationAdapters)?.map(makeSerovalPlugin) ?? [], ...defaultSerovalPlugins];
|
|
3452
3137
|
}
|
|
@@ -4269,7 +3954,7 @@ function getResponse() {
|
|
|
4269
3954
|
return getH3Event().res;
|
|
4270
3955
|
}
|
|
4271
3956
|
async function getStartManifest(matchedRoutes) {
|
|
4272
|
-
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-
|
|
3957
|
+
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-OXy-e32b.mjs");
|
|
4273
3958
|
const startManifest = tsrStartManifest();
|
|
4274
3959
|
const rootRoute = startManifest.routes[rootRouteId] = startManifest.routes["__root__"] || {};
|
|
4275
3960
|
rootRoute.assets = rootRoute.assets || [];
|
|
@@ -4405,64 +4090,6 @@ function createMultiplexedStream(jsonStream, rawStreams) {
|
|
|
4405
4090
|
}
|
|
4406
4091
|
});
|
|
4407
4092
|
}
|
|
4408
|
-
var manifest = {
|
|
4409
|
-
"51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68": {
|
|
4410
|
-
functionName: "getConfig_createServerFn_handler",
|
|
4411
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4412
|
-
},
|
|
4413
|
-
"79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5": {
|
|
4414
|
-
functionName: "getChannels_createServerFn_handler",
|
|
4415
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4416
|
-
},
|
|
4417
|
-
"f8bdca3d0579adb812d6404f55d9261a89cdb025e920b1fcad82883646a5fe9e": {
|
|
4418
|
-
functionName: "getConfigLoaded_createServerFn_handler",
|
|
4419
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4420
|
-
},
|
|
4421
|
-
"00ccacb4a0212c83ec29f4d11719046ad91ea8291cfc557d514dbf00d3bd7f5f": {
|
|
4422
|
-
functionName: "getBundles_createServerFn_handler",
|
|
4423
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4424
|
-
},
|
|
4425
|
-
"1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013": {
|
|
4426
|
-
functionName: "getBundle_createServerFn_handler",
|
|
4427
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4428
|
-
},
|
|
4429
|
-
"e000081a14772a0496dfdf615232fbbb1a23b89191d0e32f89a05dd67a1916f7": {
|
|
4430
|
-
functionName: "getBundleDownloadUrl_createServerFn_handler",
|
|
4431
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4432
|
-
},
|
|
4433
|
-
"67f90ce4cd10fd0226cd9d77cdcd8d0f25a59a6ac406360b655e44296bc4208b": {
|
|
4434
|
-
functionName: "updateBundle_createServerFn_handler",
|
|
4435
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4436
|
-
},
|
|
4437
|
-
"c4ef3bbb77ea8a4410623fd18a4741e2ff0668b1a97510bcdd032a8428eaa5da": {
|
|
4438
|
-
functionName: "promoteBundle_createServerFn_handler",
|
|
4439
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4440
|
-
},
|
|
4441
|
-
"16cc7c2f080ea5b73e0c6bba815b110dbd7727796036d248ba0d8ae819ddef08": {
|
|
4442
|
-
functionName: "createBundle_createServerFn_handler",
|
|
4443
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4444
|
-
},
|
|
4445
|
-
"3a27ff5679228b86a346b3fe42142e7a5bf0264f73173c0dbe5f07fb37c43cf7": {
|
|
4446
|
-
functionName: "deleteBundle_createServerFn_handler",
|
|
4447
|
-
importer: () => import("./api-rpc-Cr26KHOK.mjs")
|
|
4448
|
-
}
|
|
4449
|
-
};
|
|
4450
|
-
async function getServerFnById(id) {
|
|
4451
|
-
const serverFnInfo = manifest[id];
|
|
4452
|
-
if (!serverFnInfo) throw new Error("Server function info not found for " + id);
|
|
4453
|
-
const fnModule = await serverFnInfo.importer();
|
|
4454
|
-
if (!fnModule) {
|
|
4455
|
-
console.info("serverFnInfo", serverFnInfo);
|
|
4456
|
-
throw new Error("Server function module not resolved for " + id);
|
|
4457
|
-
}
|
|
4458
|
-
const action = fnModule[serverFnInfo.functionName];
|
|
4459
|
-
if (!action) {
|
|
4460
|
-
console.info("serverFnInfo", serverFnInfo);
|
|
4461
|
-
console.info("fnModule", fnModule);
|
|
4462
|
-
throw new Error(`Server function module export not resolved for serverFn ID: ${id}`);
|
|
4463
|
-
}
|
|
4464
|
-
return action;
|
|
4465
|
-
}
|
|
4466
4093
|
var serovalPlugins = void 0;
|
|
4467
4094
|
var textEncoder = new TextEncoder();
|
|
4468
4095
|
var FORM_DATA_CONTENT_TYPES = ["multipart/form-data", "application/x-www-form-urlencoded"];
|
|
@@ -4747,9 +4374,9 @@ var entriesPromise;
|
|
|
4747
4374
|
var baseManifestPromise;
|
|
4748
4375
|
var cachedFinalManifestPromise;
|
|
4749
4376
|
async function loadEntries() {
|
|
4750
|
-
const routerEntry = await import("./router-
|
|
4377
|
+
const routerEntry = await import("./router-B-zW1hRH.mjs");
|
|
4751
4378
|
return {
|
|
4752
|
-
startEntry: await import("./start-
|
|
4379
|
+
startEntry: await import("./start-C-dW39LD.mjs"),
|
|
4753
4380
|
routerEntry
|
|
4754
4381
|
};
|
|
4755
4382
|
}
|
|
@@ -5047,4 +4674,4 @@ function createServerEntry(entry) {
|
|
|
5047
4674
|
}
|
|
5048
4675
|
var server_default = createServerEntry({ fetch: fetch$1 });
|
|
5049
4676
|
//#endregion
|
|
5050
|
-
export { createServerEntry, server_default as default
|
|
4677
|
+
export { createServerEntry, server_default as default };
|