Refactor environment variable declarations, enhance image handling in item forms, and update asset references in SvelteKit project for improved functionality and performance.
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
"_index.js"
|
||||
],
|
||||
"css": [
|
||||
"_app/immutable/assets/_layout.BN8lb0qC.css"
|
||||
"_app/immutable/assets/_layout.BQZUYDmN.css"
|
||||
]
|
||||
},
|
||||
"src/routes/+layout.ts": {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1106,39 +1106,40 @@ function ensure_array_like(array_like_or_iterator) {
|
||||
return [];
|
||||
}
|
||||
export {
|
||||
array_from as $,
|
||||
ASYNC as A,
|
||||
define_property as $,
|
||||
DESTROYED as A,
|
||||
BOUNDARY_EFFECT as B,
|
||||
COMMENT_NODE as C,
|
||||
DIRTY as D,
|
||||
ERROR_VALUE as E,
|
||||
includes as F,
|
||||
EFFECT_TRANSPARENT as G,
|
||||
ASYNC as F,
|
||||
includes as G,
|
||||
HYDRATION_ERROR as H,
|
||||
INERT as I,
|
||||
EFFECT_PRESERVED as J,
|
||||
EAGER_EFFECT as K,
|
||||
STATE_SYMBOL as L,
|
||||
EFFECT_TRANSPARENT as J,
|
||||
EFFECT_PRESERVED as K,
|
||||
EAGER_EFFECT as L,
|
||||
MAYBE_DIRTY as M,
|
||||
object_prototype as N,
|
||||
array_prototype as O,
|
||||
get_descriptor as P,
|
||||
get_prototype_of as Q,
|
||||
STATE_SYMBOL as N,
|
||||
object_prototype as O,
|
||||
array_prototype as P,
|
||||
get_descriptor as Q,
|
||||
REACTION_RAN as R,
|
||||
STALE_REACTION as S,
|
||||
is_array as T,
|
||||
get_prototype_of as T,
|
||||
UNINITIALIZED as U,
|
||||
is_extensible as V,
|
||||
is_array as V,
|
||||
WAS_MARKED as W,
|
||||
USER_EFFECT as X,
|
||||
REACTION_IS_UPDATING as Y,
|
||||
index_of as Z,
|
||||
define_property as _,
|
||||
is_extensible as X,
|
||||
USER_EFFECT as Y,
|
||||
REACTION_IS_UPDATING as Z,
|
||||
index_of as _,
|
||||
attributes as a,
|
||||
is_passive_event as a0,
|
||||
LEGACY_PROPS as a1,
|
||||
render as a2,
|
||||
setContext as a3,
|
||||
array_from as a0,
|
||||
is_passive_event as a1,
|
||||
LEGACY_PROPS as a2,
|
||||
render as a3,
|
||||
setContext as a4,
|
||||
bind_props as b,
|
||||
clsx as c,
|
||||
element as d,
|
||||
@@ -1146,22 +1147,22 @@ export {
|
||||
ensure_array_like as f,
|
||||
getContext as g,
|
||||
head as h,
|
||||
HYDRATION_END as i,
|
||||
HYDRATION_START as j,
|
||||
HYDRATION_START_ELSE as k,
|
||||
EFFECT as l,
|
||||
CONNECTED as m,
|
||||
attr as i,
|
||||
HYDRATION_END as j,
|
||||
HYDRATION_START as k,
|
||||
HYDRATION_START_ELSE as l,
|
||||
EFFECT as m,
|
||||
noop as n,
|
||||
CLEAN as o,
|
||||
DERIVED as p,
|
||||
BLOCK_EFFECT as q,
|
||||
CONNECTED as o,
|
||||
CLEAN as p,
|
||||
DERIVED as q,
|
||||
run_all as r,
|
||||
slot as s,
|
||||
deferred as t,
|
||||
BRANCH_EFFECT as u,
|
||||
ROOT_EFFECT as v,
|
||||
RENDER_EFFECT as w,
|
||||
MANAGED_EFFECT as x,
|
||||
HEAD_EFFECT as y,
|
||||
DESTROYED as z
|
||||
BLOCK_EFFECT as t,
|
||||
deferred as u,
|
||||
BRANCH_EFFECT as v,
|
||||
ROOT_EFFECT as w,
|
||||
RENDER_EFFECT as x,
|
||||
MANAGED_EFFECT as y,
|
||||
HEAD_EFFECT as z
|
||||
};
|
||||
|
||||
@@ -101,7 +101,7 @@ const options = {
|
||||
<div class="error">
|
||||
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
||||
},
|
||||
version_hash: "5hw1yq"
|
||||
version_hash: "1clozn7"
|
||||
};
|
||||
async function get_hooks() {
|
||||
let handle;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { H as HYDRATION_ERROR, C as COMMENT_NODE, i as HYDRATION_END, j as HYDRATION_START, k as HYDRATION_START_ELSE, r as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, l as EFFECT, m as CONNECTED, o as CLEAN, M as MAYBE_DIRTY, D as DIRTY, p as DERIVED, W as WAS_MARKED, I as INERT, q as BLOCK_EFFECT, U as UNINITIALIZED, t as deferred, u as BRANCH_EFFECT, v as ROOT_EFFECT, w as RENDER_EFFECT, x as MANAGED_EFFECT, y as HEAD_EFFECT, z as DESTROYED, A as ASYNC, F as includes, G as EFFECT_TRANSPARENT, J as EFFECT_PRESERVED, S as STALE_REACTION, n as noop, K as EAGER_EFFECT, L as STATE_SYMBOL, N as object_prototype, O as array_prototype, P as get_descriptor, Q as get_prototype_of, T as is_array, V as is_extensible, X as USER_EFFECT, Y as REACTION_IS_UPDATING, Z as index_of, _ as define_property, $ as array_from, a0 as is_passive_event, a1 as LEGACY_PROPS, a2 as render, a3 as setContext } from "./index.js";
|
||||
import { H as HYDRATION_ERROR, C as COMMENT_NODE, j as HYDRATION_END, k as HYDRATION_START, l as HYDRATION_START_ELSE, r as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, m as EFFECT, o as CONNECTED, p as CLEAN, M as MAYBE_DIRTY, D as DIRTY, q as DERIVED, W as WAS_MARKED, I as INERT, t as BLOCK_EFFECT, U as UNINITIALIZED, u as deferred, v as BRANCH_EFFECT, w as ROOT_EFFECT, x as RENDER_EFFECT, y as MANAGED_EFFECT, z as HEAD_EFFECT, A as DESTROYED, F as ASYNC, G as includes, J as EFFECT_TRANSPARENT, K as EFFECT_PRESERVED, S as STALE_REACTION, n as noop, L as EAGER_EFFECT, N as STATE_SYMBOL, O as object_prototype, P as array_prototype, Q as get_descriptor, T as get_prototype_of, V as is_array, X as is_extensible, Y as USER_EFFECT, Z as REACTION_IS_UPDATING, _ as index_of, $ as define_property, a0 as array_from, a1 as is_passive_event, a2 as LEGACY_PROPS, a3 as render, a4 as setContext } from "./index.js";
|
||||
import { D as DEV } from "./false.js";
|
||||
import "clsx";
|
||||
function equals(value) {
|
||||
|
||||
@@ -33,9 +33,11 @@ const actions = {
|
||||
const Has_Parent = parseBool(form.get("Has_Parent"));
|
||||
const Parent = form.get("Parent")?.trim() ?? "";
|
||||
const Stock = parseBool(form.get("Stock"));
|
||||
const imageFileCreate = form.get("Image");
|
||||
const hasImage = imageFileCreate && imageFileCreate.size > 0;
|
||||
if (!Item) return fail(400, { error: "Item name is required", form: "create" });
|
||||
try {
|
||||
await locals.pb.collection(COLLECTION).create({
|
||||
const body = {
|
||||
Item,
|
||||
SKU,
|
||||
Description,
|
||||
@@ -47,7 +49,9 @@ const actions = {
|
||||
Has_Parent: !!Has_Parent,
|
||||
Parent: Parent || null,
|
||||
Stock: !!Stock
|
||||
});
|
||||
};
|
||||
if (hasImage) body.Image = imageFileCreate;
|
||||
await locals.pb.collection(COLLECTION).create(body);
|
||||
} catch (e) {
|
||||
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Create failed";
|
||||
return fail(500, { error: message, form: "create" });
|
||||
@@ -69,9 +73,11 @@ const actions = {
|
||||
const Has_Parent = parseBool(form.get("Has_Parent"));
|
||||
const Parent = form.get("Parent")?.trim() ?? "";
|
||||
const Stock = parseBool(form.get("Stock"));
|
||||
const Image = form.get("Image");
|
||||
const imageFile = Image && Image.size > 0 ? Image : void 0;
|
||||
if (!Item) return fail(400, { error: "Item name is required", form: "update" });
|
||||
try {
|
||||
await locals.pb.collection(COLLECTION).update(id, {
|
||||
const body = {
|
||||
Item,
|
||||
SKU,
|
||||
Description,
|
||||
@@ -83,7 +89,9 @@ const actions = {
|
||||
Has_Parent: !!Has_Parent,
|
||||
Parent: Parent || null,
|
||||
Stock: !!Stock
|
||||
});
|
||||
};
|
||||
if (imageFile) body.Image = imageFile;
|
||||
await locals.pb.collection(COLLECTION).update(id, body);
|
||||
} catch (e) {
|
||||
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Update failed";
|
||||
return fail(500, { error: message, form: "update" });
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { a as attributes, c as clsx, b as bind_props, d as element, h as head, e as escape_html, f as ensure_array_like } from "../../../chunks/index.js";
|
||||
import { a as attributes, c as clsx, b as bind_props, d as element, h as head, e as escape_html, f as ensure_array_like, i as attr } from "../../../chunks/index.js";
|
||||
import { c as cn } from "../../../chunks/utils2.js";
|
||||
import "clsx";
|
||||
import { tv } from "tailwind-variants";
|
||||
@@ -221,6 +221,12 @@ function _page($$renderer, $$props) {
|
||||
}
|
||||
}
|
||||
const items = data?.items ?? [];
|
||||
const PB_BASE = "https://pocketbase.ccllc.pro";
|
||||
const COLLECTION = "Stackq_Items";
|
||||
function imageUrl(item) {
|
||||
if (!item.Image) return null;
|
||||
return `${PB_BASE}/api/files/${COLLECTION}/${item.id}/${item.Image}`;
|
||||
}
|
||||
head("rk8na7", $$renderer2, ($$renderer3) => {
|
||||
$$renderer3.title(($$renderer4) => {
|
||||
$$renderer4.push(`<title>Items – Stackq</title>`);
|
||||
@@ -243,6 +249,14 @@ function _page($$renderer, $$props) {
|
||||
$$renderer6.push("<!---->");
|
||||
Table_row?.($$renderer6, {
|
||||
children: ($$renderer7) => {
|
||||
$$renderer7.push("<!---->");
|
||||
Table_head?.($$renderer7, {
|
||||
children: ($$renderer8) => {
|
||||
$$renderer8.push(`<!---->Image`);
|
||||
},
|
||||
$$slots: { default: true }
|
||||
});
|
||||
$$renderer7.push(`<!----> `);
|
||||
$$renderer7.push("<!---->");
|
||||
Table_head?.($$renderer7, {
|
||||
children: ($$renderer8) => {
|
||||
@@ -369,7 +383,7 @@ function _page($$renderer, $$props) {
|
||||
children: ($$renderer7) => {
|
||||
$$renderer7.push("<!---->");
|
||||
Table_cell?.($$renderer7, {
|
||||
colspan: "13",
|
||||
colspan: "14",
|
||||
class: "h-24 text-center text-muted-foreground",
|
||||
children: ($$renderer8) => {
|
||||
$$renderer8.push(`<!---->No items.`);
|
||||
@@ -390,6 +404,22 @@ function _page($$renderer, $$props) {
|
||||
$$renderer6.push("<!---->");
|
||||
Table_row?.($$renderer6, {
|
||||
children: ($$renderer7) => {
|
||||
$$renderer7.push("<!---->");
|
||||
Table_cell?.($$renderer7, {
|
||||
class: "w-16",
|
||||
children: ($$renderer8) => {
|
||||
if (imageUrl(item)) {
|
||||
$$renderer8.push("<!--[-->");
|
||||
$$renderer8.push(`<img${attr("src", imageUrl(item))} alt="" class="size-14 rounded border object-cover" loading="lazy"/>`);
|
||||
} else {
|
||||
$$renderer8.push("<!--[!-->");
|
||||
$$renderer8.push(`<span class="text-muted-foreground text-xs">—</span>`);
|
||||
}
|
||||
$$renderer8.push(`<!--]-->`);
|
||||
},
|
||||
$$slots: { default: true }
|
||||
});
|
||||
$$renderer7.push(`<!----> `);
|
||||
$$renderer7.push("<!---->");
|
||||
Table_cell?.($$renderer7, {
|
||||
class: "font-medium",
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import "./chunks/root.js";
|
||||
import { s, a, b } from "./chunks/environment.js";
|
||||
import { g, o, c, s as s2, a as a2, b as b2 } from "./chunks/internal.js";
|
||||
export {
|
||||
g as get_hooks,
|
||||
o as options,
|
||||
s as set_assets,
|
||||
a as set_building,
|
||||
c as set_manifest,
|
||||
b as set_prerendering,
|
||||
s2 as set_private_env,
|
||||
a2 as set_public_env,
|
||||
b2 as set_read_implementation
|
||||
};
|
||||
@@ -10,7 +10,7 @@ return {
|
||||
assets: new Set([]),
|
||||
mimeTypes: {},
|
||||
_: {
|
||||
client: {start:"_app/immutable/entry/start.C2MVIkwD.js",app:"_app/immutable/entry/app.BsFk1HrO.js",imports:["_app/immutable/entry/start.C2MVIkwD.js","_app/immutable/chunks/BXb9cfiV.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.BsFk1HrO.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
nodes: [
|
||||
__memo(() => import('./nodes/0.js')),
|
||||
__memo(() => import('./nodes/1.js')),
|
||||
|
||||
@@ -10,7 +10,7 @@ return {
|
||||
assets: new Set([]),
|
||||
mimeTypes: {},
|
||||
_: {
|
||||
client: {start:"_app/immutable/entry/start.C2MVIkwD.js",app:"_app/immutable/entry/app.BsFk1HrO.js",imports:["_app/immutable/entry/start.C2MVIkwD.js","_app/immutable/chunks/BXb9cfiV.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.BsFk1HrO.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
nodes: [
|
||||
__memo(() => import('./nodes/0.js')),
|
||||
__memo(() => import('./nodes/1.js')),
|
||||
|
||||
@@ -5,6 +5,6 @@ let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
||||
export { universal };
|
||||
export const universal_id = "src/routes/+layout.ts";
|
||||
export const imports = ["_app/immutable/nodes/0.DZETcxWC.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"];
|
||||
export const stylesheets = ["_app/immutable/assets/0.BgdOWdGt.css"];
|
||||
export const imports = ["_app/immutable/nodes/0.BbNusdVr.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"];
|
||||
export const stylesheets = ["_app/immutable/assets/0.EFPCDS6k.css"];
|
||||
export const fonts = [];
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
export const index = 1;
|
||||
let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
|
||||
export const imports = ["_app/immutable/nodes/1.DMG02OYc.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BXb9cfiV.js"];
|
||||
export const imports = ["_app/immutable/nodes/1.BSDMq5ii.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BU_acMKx.js"];
|
||||
export const stylesheets = [];
|
||||
export const fonts = [];
|
||||
|
||||
@@ -5,6 +5,6 @@ let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/pages/items/_page.svelte.js')).default;
|
||||
export { server };
|
||||
export const server_id = "src/routes/items/+page.server.ts";
|
||||
export const imports = ["_app/immutable/nodes/4.BhfvMQ1L.js","_app/immutable/chunks/hxRy_pid.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
|
||||
export const imports = ["_app/immutable/nodes/4.CiQuz_-G.js","_app/immutable/chunks/D1I5yNUo.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
|
||||
export const stylesheets = [];
|
||||
export const fonts = [];
|
||||
|
||||
@@ -5,6 +5,6 @@ let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;
|
||||
export { server };
|
||||
export const server_id = "src/routes/login/+page.server.ts";
|
||||
export const imports = ["_app/immutable/nodes/5.Cf_DU5yu.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"];
|
||||
export const imports = ["_app/immutable/nodes/5.CncCf1V5.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"];
|
||||
export const stylesheets = [];
|
||||
export const fonts = [];
|
||||
|
||||
Vendored
+30
-34
@@ -26,56 +26,54 @@
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/private' {
|
||||
export const _ZO_DOCTOR: string;
|
||||
export const VSCODE_CRASH_REPORTER_PROCESS_TYPE: string;
|
||||
export const VSCODE_GIT_IPC_AUTH_TOKEN: string;
|
||||
export const TERM_PROGRAM: string;
|
||||
export const NODE: string;
|
||||
export const TERM: string;
|
||||
export const SHELL: string;
|
||||
export const VSCODE_PROCESS_TITLE: string;
|
||||
export const TMPDIR: string;
|
||||
export const HOMEBREW_REPOSITORY: string;
|
||||
export const MallocNanoZone: string;
|
||||
export const TMPDIR: string;
|
||||
export const TERM_PROGRAM_VERSION: string;
|
||||
export const ZDOTDIR: string;
|
||||
export const CURSOR_TRACE_ID: string;
|
||||
export const NO_COLOR: string;
|
||||
export const MallocNanoZone: string;
|
||||
export const npm_config_local_prefix: string;
|
||||
export const USER: string;
|
||||
export const COMMAND_MODE: string;
|
||||
export const SSH_AUTH_SOCK: string;
|
||||
export const VSCODE_PROFILE_INITIALIZED: string;
|
||||
export const __CF_USER_TEXT_ENCODING: string;
|
||||
export const npm_execpath: string;
|
||||
export const PATH: string;
|
||||
export const npm_package_json: string;
|
||||
export const _: string;
|
||||
export const USER_ZDOTDIR: string;
|
||||
export const __CFBundleIdentifier: string;
|
||||
export const npm_command: string;
|
||||
export const PWD: string;
|
||||
export const VSCODE_HANDLES_UNCAUGHT_ERRORS: string;
|
||||
export const npm_lifecycle_event: string;
|
||||
export const VSCODE_ESM_ENTRYPOINT: string;
|
||||
export const npm_package_name: string;
|
||||
export const CURSOR_AGENT: string;
|
||||
export const LANG: string;
|
||||
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
||||
export const XPC_FLAGS: string;
|
||||
export const FORCE_COLOR: string;
|
||||
export const npm_package_version: string;
|
||||
export const XPC_SERVICE_NAME: string;
|
||||
export const VSCODE_INJECTION: string;
|
||||
export const SHLVL: string;
|
||||
export const HOME: string;
|
||||
export const VSCODE_NLS_CONFIG: string;
|
||||
export const CI: string;
|
||||
export const VSCODE_GIT_ASKPASS_MAIN: string;
|
||||
export const HOMEBREW_PREFIX: string;
|
||||
export const LOGNAME: string;
|
||||
export const npm_lifecycle_script: string;
|
||||
export const VSCODE_IPC_HOOK: string;
|
||||
export const VSCODE_CODE_CACHE_PATH: string;
|
||||
export const VSCODE_GIT_IPC_HANDLE: string;
|
||||
export const npm_config_user_agent: string;
|
||||
export const VSCODE_PID: string;
|
||||
export const VSCODE_GIT_ASKPASS_NODE: string;
|
||||
export const GIT_ASKPASS: string;
|
||||
export const INFOPATH: string;
|
||||
export const HOMEBREW_CELLAR: string;
|
||||
export const OSLogRateLimit: string;
|
||||
export const VSCODE_L10N_BUNDLE_LOCATION: string;
|
||||
export const VSCODE_CWD: string;
|
||||
export const npm_node_execpath: string;
|
||||
export const COLORTERM: string;
|
||||
export const NODE_ENV: string;
|
||||
}
|
||||
|
||||
@@ -106,56 +104,54 @@ declare module '$env/static/public' {
|
||||
*/
|
||||
declare module '$env/dynamic/private' {
|
||||
export const env: {
|
||||
_ZO_DOCTOR: string;
|
||||
VSCODE_CRASH_REPORTER_PROCESS_TYPE: string;
|
||||
VSCODE_GIT_IPC_AUTH_TOKEN: string;
|
||||
TERM_PROGRAM: string;
|
||||
NODE: string;
|
||||
TERM: string;
|
||||
SHELL: string;
|
||||
VSCODE_PROCESS_TITLE: string;
|
||||
TMPDIR: string;
|
||||
HOMEBREW_REPOSITORY: string;
|
||||
MallocNanoZone: string;
|
||||
TMPDIR: string;
|
||||
TERM_PROGRAM_VERSION: string;
|
||||
ZDOTDIR: string;
|
||||
CURSOR_TRACE_ID: string;
|
||||
NO_COLOR: string;
|
||||
MallocNanoZone: string;
|
||||
npm_config_local_prefix: string;
|
||||
USER: string;
|
||||
COMMAND_MODE: string;
|
||||
SSH_AUTH_SOCK: string;
|
||||
VSCODE_PROFILE_INITIALIZED: string;
|
||||
__CF_USER_TEXT_ENCODING: string;
|
||||
npm_execpath: string;
|
||||
PATH: string;
|
||||
npm_package_json: string;
|
||||
_: string;
|
||||
USER_ZDOTDIR: string;
|
||||
__CFBundleIdentifier: string;
|
||||
npm_command: string;
|
||||
PWD: string;
|
||||
VSCODE_HANDLES_UNCAUGHT_ERRORS: string;
|
||||
npm_lifecycle_event: string;
|
||||
VSCODE_ESM_ENTRYPOINT: string;
|
||||
npm_package_name: string;
|
||||
CURSOR_AGENT: string;
|
||||
LANG: string;
|
||||
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
||||
XPC_FLAGS: string;
|
||||
FORCE_COLOR: string;
|
||||
npm_package_version: string;
|
||||
XPC_SERVICE_NAME: string;
|
||||
VSCODE_INJECTION: string;
|
||||
SHLVL: string;
|
||||
HOME: string;
|
||||
VSCODE_NLS_CONFIG: string;
|
||||
CI: string;
|
||||
VSCODE_GIT_ASKPASS_MAIN: string;
|
||||
HOMEBREW_PREFIX: string;
|
||||
LOGNAME: string;
|
||||
npm_lifecycle_script: string;
|
||||
VSCODE_IPC_HOOK: string;
|
||||
VSCODE_CODE_CACHE_PATH: string;
|
||||
VSCODE_GIT_IPC_HANDLE: string;
|
||||
npm_config_user_agent: string;
|
||||
VSCODE_PID: string;
|
||||
VSCODE_GIT_ASKPASS_NODE: string;
|
||||
GIT_ASKPASS: string;
|
||||
INFOPATH: string;
|
||||
HOMEBREW_CELLAR: string;
|
||||
OSLogRateLimit: string;
|
||||
VSCODE_L10N_BUNDLE_LOCATION: string;
|
||||
VSCODE_CWD: string;
|
||||
npm_node_execpath: string;
|
||||
COLORTERM: string;
|
||||
NODE_ENV: string;
|
||||
[key: `PUBLIC_${string}`]: undefined;
|
||||
[key: `${string}`]: string | undefined;
|
||||
|
||||
@@ -24,7 +24,7 @@ export const options = {
|
||||
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
|
||||
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
||||
},
|
||||
version_hash: "5hw1yq"
|
||||
version_hash: "ajbkuw"
|
||||
};
|
||||
|
||||
export async function get_hooks() {
|
||||
|
||||
+48
-48
@@ -1,6 +1,6 @@
|
||||
{
|
||||
".svelte-kit/generated/client-optimized/app.js": {
|
||||
"file": "_app/immutable/entry/app.BsFk1HrO.js",
|
||||
"file": "_app/immutable/entry/app.xKzg9ha8.js",
|
||||
"name": "entry/app",
|
||||
"src": ".svelte-kit/generated/client-optimized/app.js",
|
||||
"isEntry": true,
|
||||
@@ -22,7 +22,7 @@
|
||||
]
|
||||
},
|
||||
".svelte-kit/generated/client-optimized/nodes/0.js": {
|
||||
"file": "_app/immutable/nodes/0.DZETcxWC.js",
|
||||
"file": "_app/immutable/nodes/0.BbNusdVr.js",
|
||||
"name": "nodes/0",
|
||||
"src": ".svelte-kit/generated/client-optimized/nodes/0.js",
|
||||
"isEntry": true,
|
||||
@@ -33,11 +33,11 @@
|
||||
"_MIlO0V30.js"
|
||||
],
|
||||
"css": [
|
||||
"_app/immutable/assets/0.BgdOWdGt.css"
|
||||
"_app/immutable/assets/0.EFPCDS6k.css"
|
||||
]
|
||||
},
|
||||
".svelte-kit/generated/client-optimized/nodes/1.js": {
|
||||
"file": "_app/immutable/nodes/1.DMG02OYc.js",
|
||||
"file": "_app/immutable/nodes/1.BSDMq5ii.js",
|
||||
"name": "nodes/1",
|
||||
"src": ".svelte-kit/generated/client-optimized/nodes/1.js",
|
||||
"isEntry": true,
|
||||
@@ -47,7 +47,7 @@
|
||||
"_DAt58MA1.js",
|
||||
"_MIlO0V30.js",
|
||||
"_BMmwim-G.js",
|
||||
"_BXb9cfiV.js"
|
||||
"_BU_acMKx.js"
|
||||
]
|
||||
},
|
||||
".svelte-kit/generated/client-optimized/nodes/2.js": {
|
||||
@@ -64,16 +64,16 @@
|
||||
]
|
||||
},
|
||||
".svelte-kit/generated/client-optimized/nodes/4.js": {
|
||||
"file": "_app/immutable/nodes/4.BhfvMQ1L.js",
|
||||
"file": "_app/immutable/nodes/4.CiQuz_-G.js",
|
||||
"name": "nodes/4",
|
||||
"src": ".svelte-kit/generated/client-optimized/nodes/4.js",
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"_hxRy_pid.js"
|
||||
"_D1I5yNUo.js"
|
||||
]
|
||||
},
|
||||
".svelte-kit/generated/client-optimized/nodes/5.js": {
|
||||
"file": "_app/immutable/nodes/5.Cf_DU5yu.js",
|
||||
"file": "_app/immutable/nodes/5.CncCf1V5.js",
|
||||
"name": "nodes/5",
|
||||
"src": ".svelte-kit/generated/client-optimized/nodes/5.js",
|
||||
"isEntry": true,
|
||||
@@ -97,8 +97,21 @@
|
||||
"_Dt2zEVER.js"
|
||||
]
|
||||
},
|
||||
"_BXb9cfiV.js": {
|
||||
"file": "_app/immutable/chunks/BXb9cfiV.js",
|
||||
"_BOCLbrhU.js": {
|
||||
"file": "_app/immutable/chunks/BOCLbrhU.js",
|
||||
"name": "label",
|
||||
"imports": [
|
||||
"_MIlO0V30.js",
|
||||
"_Bzak7iHL.js",
|
||||
"_De4R2cbq.js",
|
||||
"_znVx7SEM.js",
|
||||
"_BU_acMKx.js",
|
||||
"_D6Mj8HfB.js",
|
||||
"_DPCugUAM.js"
|
||||
]
|
||||
},
|
||||
"_BU_acMKx.js": {
|
||||
"file": "_app/immutable/chunks/BU_acMKx.js",
|
||||
"name": "entry",
|
||||
"imports": [
|
||||
"_BMmwim-G.js",
|
||||
@@ -109,19 +122,6 @@
|
||||
"file": "_app/immutable/chunks/Bzak7iHL.js",
|
||||
"name": "disclose-version"
|
||||
},
|
||||
"_CEGTtJLH.js": {
|
||||
"file": "_app/immutable/chunks/CEGTtJLH.js",
|
||||
"name": "label",
|
||||
"imports": [
|
||||
"_MIlO0V30.js",
|
||||
"_Bzak7iHL.js",
|
||||
"_De4R2cbq.js",
|
||||
"_znVx7SEM.js",
|
||||
"_BXb9cfiV.js",
|
||||
"_D6Mj8HfB.js",
|
||||
"_DPCugUAM.js"
|
||||
]
|
||||
},
|
||||
"_CINS0kDe.js": {
|
||||
"file": "_app/immutable/chunks/CINS0kDe.js",
|
||||
"name": "button",
|
||||
@@ -133,6 +133,24 @@
|
||||
"_znVx7SEM.js"
|
||||
]
|
||||
},
|
||||
"_D1I5yNUo.js": {
|
||||
"file": "_app/immutable/chunks/D1I5yNUo.js",
|
||||
"name": "4",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_DPCugUAM.js",
|
||||
"_Bzak7iHL.js",
|
||||
"_MIlO0V30.js",
|
||||
"_DBvDeCtH.js",
|
||||
"_D6Mj8HfB.js",
|
||||
"_De4R2cbq.js",
|
||||
"_Dt2zEVER.js",
|
||||
"_znVx7SEM.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"src/routes/items/ItemsCrud.svelte"
|
||||
]
|
||||
},
|
||||
"_D6Mj8HfB.js": {
|
||||
"file": "_app/immutable/chunks/D6Mj8HfB.js",
|
||||
"name": "if",
|
||||
@@ -184,24 +202,6 @@
|
||||
"file": "_app/immutable/chunks/MIlO0V30.js",
|
||||
"name": "template"
|
||||
},
|
||||
"_hxRy_pid.js": {
|
||||
"file": "_app/immutable/chunks/hxRy_pid.js",
|
||||
"name": "4",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_DPCugUAM.js",
|
||||
"_Bzak7iHL.js",
|
||||
"_MIlO0V30.js",
|
||||
"_DBvDeCtH.js",
|
||||
"_D6Mj8HfB.js",
|
||||
"_De4R2cbq.js",
|
||||
"_Dt2zEVER.js",
|
||||
"_znVx7SEM.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"src/routes/items/ItemsCrud.svelte"
|
||||
]
|
||||
},
|
||||
"_znVx7SEM.js": {
|
||||
"file": "_app/immutable/chunks/znVx7SEM.js",
|
||||
"name": "props",
|
||||
@@ -210,12 +210,12 @@
|
||||
]
|
||||
},
|
||||
"node_modules/@sveltejs/kit/src/runtime/client/entry.js": {
|
||||
"file": "_app/immutable/entry/start.C2MVIkwD.js",
|
||||
"file": "_app/immutable/entry/start.lYj2oyFl.js",
|
||||
"name": "entry/start",
|
||||
"src": "node_modules/@sveltejs/kit/src/runtime/client/entry.js",
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"_BXb9cfiV.js"
|
||||
"_BU_acMKx.js"
|
||||
]
|
||||
},
|
||||
"node_modules/barcode-detector-api-polyfill/esm/index.js": {
|
||||
@@ -225,7 +225,7 @@
|
||||
"isDynamicEntry": true
|
||||
},
|
||||
"src/routes/items/ItemsCrud.svelte": {
|
||||
"file": "_app/immutable/chunks/Dscn0QO8.js",
|
||||
"file": "_app/immutable/chunks/DSpOEFAc.js",
|
||||
"name": "ItemsCrud",
|
||||
"src": "src/routes/items/ItemsCrud.svelte",
|
||||
"isDynamicEntry": true,
|
||||
@@ -235,8 +235,8 @@
|
||||
"_BMmwim-G.js",
|
||||
"_D6Mj8HfB.js",
|
||||
"_DPCugUAM.js",
|
||||
"_hxRy_pid.js",
|
||||
"_CEGTtJLH.js",
|
||||
"_D1I5yNUo.js",
|
||||
"_BOCLbrhU.js",
|
||||
"_De4R2cbq.js",
|
||||
"_znVx7SEM.js",
|
||||
"_CINS0kDe.js",
|
||||
@@ -247,7 +247,7 @@
|
||||
]
|
||||
},
|
||||
"src/routes/login/LoginForm.svelte": {
|
||||
"file": "_app/immutable/chunks/DhhKcsqN.js",
|
||||
"file": "_app/immutable/chunks/DYBeKdvA.js",
|
||||
"name": "LoginForm",
|
||||
"src": "src/routes/login/LoginForm.svelte",
|
||||
"isDynamicEntry": true,
|
||||
@@ -257,7 +257,7 @@
|
||||
"_BMmwim-G.js",
|
||||
"_D6Mj8HfB.js",
|
||||
"_DPCugUAM.js",
|
||||
"_CEGTtJLH.js",
|
||||
"_BOCLbrhU.js",
|
||||
"_De4R2cbq.js",
|
||||
"_znVx7SEM.js",
|
||||
"_CINS0kDe.js"
|
||||
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import"./Bzak7iHL.js";import{D as C,c as i,F as j,r as n,a as o,E as L,f as h,b as U,d as I,n as $,t as b,s as p,g as V,u as W,ao as X}from"./MIlO0V30.js";import{s as Y}from"./BMmwim-G.js";import{i as Z}from"./D6Mj8HfB.js";import{c as y}from"./DPCugUAM.js";import{C as ee,L as J,I as K,a as re,b as ae,e as te}from"./CEGTtJLH.js";import{a as k,c as D,s as O}from"./De4R2cbq.js";import{p as S,b as T,r as z}from"./znVx7SEM.js";import{B as se}from"./CINS0kDe.js";var oe=h("<p><!></p>");function de(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();k(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>D("text-muted-foreground text-sm",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("<div><!></div>");function ie(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();k(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("<div><!></div>");function ce(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();k(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>D("leading-none font-semibold",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ue=h("<!> <!>",1),ve=h('<p class="text-destructive text-sm"> </p>'),fe=h('<form method="POST" action="?/login" class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><div class="flex items-center justify-between"><!> <a href="/forgot-password" class="text-muted-foreground text-sm underline hover:text-foreground">Forgot your password?</a></div> <!></div> <!> <!></form>'),me=h("<!> <!>",1);function Ce(c,e){C(e,!0);var d=U(),u=I(d);y(u,()=>ae,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var A=me(),G=I(A);y(G,()=>ie,(E,F)=>{F(E,{children:(q,N)=>{var f=ue(),g=I(f);y(g,()=>ce,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);y(P,()=>de,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(q,f)},$$slots:{default:!0}})});var M=p(G,2);y(M,()=>ee,(E,F)=>{F(E,{children:(q,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=b("Email");o(a,l)},$$slots:{default:!0}});var x=p(P,2);{let a=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});K(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(a)},required:!0})}n(g);var m=p(g,2),_=i(m),B=i(_);J(B,{for:"password",children:(a,t)=>{$();var l=b("Password");o(a,l)},$$slots:{default:!0}}),$(2),n(_);var w=p(_,2);K(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),n(m);var H=p(m,2);{var Q=a=>{var t=ve(),l=i(t,!0);n(t),X(()=>Y(l,e.data.error)),o(a,t)};Z(H,a=>{var t;(t=e.data)!=null&&t.error&&a(Q)})}var R=p(H,2);se(R,{type:"submit",class:"w-full",children:(a,t)=>{$();var l=b("Login");o(a,l)},$$slots:{default:!0}}),n(f),re(f,(a,t)=>{var l;return(l=te)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(q,f)},$$slots:{default:!0}})}),o(s,A)},$$slots:{default:!0}})}),o(c,d),L()}export{Ce as default};
|
||||
import"./Bzak7iHL.js";import{D as C,c as i,F as j,r as n,a as o,E as L,f as h,b as U,d as I,n as $,t as b,s as p,g as V,u as W,ao as X}from"./MIlO0V30.js";import{s as Y}from"./BMmwim-G.js";import{i as Z}from"./D6Mj8HfB.js";import{c as y}from"./DPCugUAM.js";import{C as ee,L as J,I as K,a as re,b as ae,e as te}from"./DES8elpW.js";import{a as k,c as D,s as O}from"./De4R2cbq.js";import{p as S,b as T,r as z}from"./znVx7SEM.js";import{B as se}from"./CINS0kDe.js";var oe=h("<p><!></p>");function de(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();k(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>D("text-muted-foreground text-sm",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("<div><!></div>");function ie(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();k(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("<div><!></div>");function ce(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();k(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>D("leading-none font-semibold",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ue=h("<!> <!>",1),ve=h('<p class="text-destructive text-sm"> </p>'),fe=h('<form method="POST" action="?/login" class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><div class="flex items-center justify-between"><!> <a href="/forgot-password" class="text-muted-foreground text-sm underline hover:text-foreground">Forgot your password?</a></div> <!></div> <!> <!></form>'),me=h("<!> <!>",1);function Ce(c,e){C(e,!0);var d=U(),u=I(d);y(u,()=>ae,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var A=me(),G=I(A);y(G,()=>ie,(E,F)=>{F(E,{children:(q,N)=>{var f=ue(),g=I(f);y(g,()=>ce,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);y(P,()=>de,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(q,f)},$$slots:{default:!0}})});var M=p(G,2);y(M,()=>ee,(E,F)=>{F(E,{children:(q,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=b("Email");o(a,l)},$$slots:{default:!0}});var x=p(P,2);{let a=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});K(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(a)},required:!0})}n(g);var m=p(g,2),_=i(m),B=i(_);J(B,{for:"password",children:(a,t)=>{$();var l=b("Password");o(a,l)},$$slots:{default:!0}}),$(2),n(_);var w=p(_,2);K(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),n(m);var H=p(m,2);{var Q=a=>{var t=ve(),l=i(t,!0);n(t),X(()=>Y(l,e.data.error)),o(a,t)};Z(H,a=>{var t;(t=e.data)!=null&&t.error&&a(Q)})}var R=p(H,2);se(R,{type:"submit",class:"w-full",children:(a,t)=>{$();var l=b("Login");o(a,l)},$$slots:{default:!0}}),n(f),re(f,(a,t)=>{var l;return(l=te)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(q,f)},$$slots:{default:!0}})}),o(s,A)},$$slots:{default:!0}})}),o(c,d),L()}export{Ce as default};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
var gt=Object.defineProperty;var at=t=>{throw TypeError(t)};var Et=(t,e,r)=>e in t?gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var M=(t,e,r)=>Et(t,typeof e!="symbol"?e+"":e,r),it=(t,e,r)=>e.has(t)||at("Cannot "+r);var w=(t,e,r)=>(it(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>e.has(t)?at("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),D=(t,e,r,n)=>(it(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{b6 as wt,_ as xt,a0 as W,$ as Q,an as At,be as St,bf as dt,h as pt,G as S,aW as _t,bg as Tt,D as P,c as $,F as tt,r as et,a as g,E as R,f as L,g as A,u as G,b0 as kt,a5 as It,a6 as mt,bh as Ot,b as C,d as H}from"./MIlO0V30.js";import"./Bzak7iHL.js";import{a as _,c as T,s as V,b as X}from"./De4R2cbq.js";import{p as y,b as B,r as j,s as Pt}from"./znVx7SEM.js";import{i as Rt,a as Lt,b as jt,c as Mt}from"./BXb9cfiV.js";import{i as bt}from"./D6Mj8HfB.js";import{c as Nt}from"./DPCugUAM.js";function Ft(){return Symbol(wt)}function We(t,e,r){xt(()=>{var n=W(()=>e(t,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var o=!1,a={};Q(()=>{var i=r();At(i),o&&St(a,i)&&(a=i,n.update(i))}),o=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function st(t,e,r=e){var n=new WeakSet;dt(t,"input",async o=>{var a=o?t.defaultValue:t.value;if(a=Y(t)?z(a):a,r(a),S!==null&&n.add(S),await _t(),a!==(a=e())){var i=t.selectionStart,l=t.selectionEnd,d=t.value.length;if(t.value=a??"",l!==null){var p=t.value.length;i===l&&l===d&&p>d?(t.selectionStart=p,t.selectionEnd=p):(t.selectionStart=i,t.selectionEnd=Math.min(l,p))}}}),(pt&&t.defaultValue!==t.value||W(e)==null&&t.value)&&(r(Y(t)?z(t.value):t.value),S!==null&&n.add(S)),Q(()=>{var o=e();if(t===document.activeElement){var a=Tt??S;if(n.has(a))return}Y(t)&&o===z(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Y(t){var e=t.type;return e==="number"||e==="range"}function z(t){return t===""?null:+t}function Wt(t,e,r=e){dt(t,"change",()=>{r(t.files)}),pt&&t.files&&r(t.files),Q(()=>{t.files=e()})}var Ct=L("<div><!></div>");function Ce(t,e){P(e,!0);let r=y(e,"ref",15,null),n=j(e,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ct();_(o,i=>({"data-slot":"card",class:i,...n}),[()=>T("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class)]);var a=$(o);V(a,()=>e.children??tt),et(o),B(o,i=>r(i),()=>r()),g(t,o),R()}var Ht=L("<div><!></div>");function He(t,e){P(e,!0);let r=y(e,"ref",15,null),n=j(e,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ht();_(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>T("px-6",e.class)]);var a=$(o);V(a,()=>e.children??tt),et(o),B(o,i=>r(i),()=>r()),g(t,o),R()}function Vt(t){return typeof t=="function"}function Bt(t){return t!==null&&typeof t=="object"}const Gt=["string","number","bigint","boolean"];function q(t){return t==null||Gt.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>q(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const k=Symbol("box"),rt=Symbol("is-writable");function J(t,e){const r=G(t);return e?{[k]:!0,[rt]:!0,get current(){return A(r)},set current(n){e(n)}}:{[k]:!0,get current(){return t()}}}function U(t){return Bt(t)&&k in t}function vt(t){return U(t)&&rt in t}function Ve(t){return U(t)?t:Vt(t)?J(t):Ut(t)}function Be(t){return Object.entries(t).reduce((e,[r,n])=>U(n)?(vt(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function Ge(t){return vt(t)?{[k]:!0,get current(){return t.current}}:t}function Ut(t){let e=kt(It(t));return{[k]:!0,[rt]:!0,get current(){return A(e)},set current(r){mt(e,r,!0)}}}function Dt(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var ct=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xt=/\n/g,Yt=/^\s*/,zt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Kt=/^:\s*/,qt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Jt=/^[;\s]*/,Zt=/^\s+|\s+$/g,Qt=`
|
||||
var gt=Object.defineProperty;var at=t=>{throw TypeError(t)};var Et=(t,e,r)=>e in t?gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var M=(t,e,r)=>Et(t,typeof e!="symbol"?e+"":e,r),it=(t,e,r)=>e.has(t)||at("Cannot "+r);var w=(t,e,r)=>(it(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>e.has(t)?at("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),D=(t,e,r,n)=>(it(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{b6 as wt,_ as xt,a0 as W,$ as Q,an as At,be as St,bf as dt,h as pt,G as S,aW as _t,bg as Tt,D as P,c as $,F as tt,r as et,a as g,E as R,f as L,g as A,u as G,b0 as kt,a5 as It,a6 as mt,bh as Ot,b as C,d as H}from"./MIlO0V30.js";import"./Bzak7iHL.js";import{a as _,c as T,s as V,b as X}from"./De4R2cbq.js";import{p as y,b as B,r as j,s as Pt}from"./znVx7SEM.js";import{i as Rt,a as Lt,b as jt,c as Mt}from"./BU_acMKx.js";import{i as bt}from"./D6Mj8HfB.js";import{c as Nt}from"./DPCugUAM.js";function Ft(){return Symbol(wt)}function We(t,e,r){xt(()=>{var n=W(()=>e(t,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var o=!1,a={};Q(()=>{var i=r();At(i),o&&St(a,i)&&(a=i,n.update(i))}),o=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function st(t,e,r=e){var n=new WeakSet;dt(t,"input",async o=>{var a=o?t.defaultValue:t.value;if(a=Y(t)?z(a):a,r(a),S!==null&&n.add(S),await _t(),a!==(a=e())){var i=t.selectionStart,l=t.selectionEnd,d=t.value.length;if(t.value=a??"",l!==null){var p=t.value.length;i===l&&l===d&&p>d?(t.selectionStart=p,t.selectionEnd=p):(t.selectionStart=i,t.selectionEnd=Math.min(l,p))}}}),(pt&&t.defaultValue!==t.value||W(e)==null&&t.value)&&(r(Y(t)?z(t.value):t.value),S!==null&&n.add(S)),Q(()=>{var o=e();if(t===document.activeElement){var a=Tt??S;if(n.has(a))return}Y(t)&&o===z(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Y(t){var e=t.type;return e==="number"||e==="range"}function z(t){return t===""?null:+t}function Wt(t,e,r=e){dt(t,"change",()=>{r(t.files)}),pt&&t.files&&r(t.files),Q(()=>{t.files=e()})}var Ct=L("<div><!></div>");function Ce(t,e){P(e,!0);let r=y(e,"ref",15,null),n=j(e,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ct();_(o,i=>({"data-slot":"card",class:i,...n}),[()=>T("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class)]);var a=$(o);V(a,()=>e.children??tt),et(o),B(o,i=>r(i),()=>r()),g(t,o),R()}var Ht=L("<div><!></div>");function He(t,e){P(e,!0);let r=y(e,"ref",15,null),n=j(e,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ht();_(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>T("px-6",e.class)]);var a=$(o);V(a,()=>e.children??tt),et(o),B(o,i=>r(i),()=>r()),g(t,o),R()}function Vt(t){return typeof t=="function"}function Bt(t){return t!==null&&typeof t=="object"}const Gt=["string","number","bigint","boolean"];function q(t){return t==null||Gt.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>q(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const k=Symbol("box"),rt=Symbol("is-writable");function J(t,e){const r=G(t);return e?{[k]:!0,[rt]:!0,get current(){return A(r)},set current(n){e(n)}}:{[k]:!0,get current(){return t()}}}function U(t){return Bt(t)&&k in t}function vt(t){return U(t)&&rt in t}function Ve(t){return U(t)?t:Vt(t)?J(t):Ut(t)}function Be(t){return Object.entries(t).reduce((e,[r,n])=>U(n)?(vt(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function Ge(t){return vt(t)?{[k]:!0,get current(){return t.current}}:t}function Ut(t){let e=kt(It(t));return{[k]:!0,[rt]:!0,get current(){return A(e)},set current(r){mt(e,r,!0)}}}function Dt(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var ct=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xt=/\n/g,Yt=/^\s*/,zt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Kt=/^:\s*/,qt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Jt=/^[;\s]*/,Zt=/^\s+|\s+$/g,Qt=`
|
||||
`,lt="/",ut="*",E="",$t="comment",te="declaration";function ee(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function o(c){var s=c.match(Xt);s&&(r+=s.length);var h=c.lastIndexOf(Qt);n=~h?c.length-h:n+c.length}function a(){var c={line:r,column:n};return function(s){return s.position=new i(c),p(),s}}function i(c){this.start=c,this.end={line:r,column:n},this.source=e.source}i.prototype.content=t;function l(c){var s=new Error(e.source+":"+r+":"+n+": "+c);if(s.reason=c,s.filename=e.source,s.line=r,s.column=n,s.source=t,!e.silent)throw s}function d(c){var s=c.exec(t);if(s){var h=s[0];return o(h),t=t.slice(h.length),s}}function p(){d(Yt)}function m(c){var s;for(c=c||[];s=b();)s!==!1&&c.push(s);return c}function b(){var c=a();if(!(lt!=t.charAt(0)||ut!=t.charAt(1))){for(var s=2;E!=t.charAt(s)&&(ut!=t.charAt(s)||lt!=t.charAt(s+1));)++s;if(s+=2,E===t.charAt(s-1))return l("End of comment missing");var h=t.slice(2,s-2);return n+=2,o(h),t=t.slice(s),n+=2,c({type:$t,comment:h})}}function f(){var c=a(),s=d(zt);if(s){if(b(),!d(Kt))return l("property missing ':'");var h=d(qt),v=c({type:te,property:ft(s[0].replace(ct,E)),value:h?ft(h[0].replace(ct,E)):E});return d(Jt),v}}function u(){var c=[];m(c);for(var s;s=f();)s!==!1&&(c.push(s),m(c));return c}return p(),u()}function ft(t){return t?t.replace(Zt,E):E}function re(t,e){let r=null;if(!t||typeof t!="string")return r;const n=ee(t),o=typeof e=="function";return n.forEach(a=>{if(a.type!=="declaration")return;const{property:i,value:l}=a;o?e(i,l,a):l&&(r=r||{},r[i]=l)}),r}const ne=/\d/,oe=["-","_","/","."];function ae(t=""){if(!ne.test(t))return t!==t.toLowerCase()}function ie(t){const e=[];let r="",n,o;for(const a of t){const i=oe.includes(a);if(i===!0){e.push(r),r="",n=void 0;continue}const l=ae(a);if(o===!1){if(n===!1&&l===!0){e.push(r),r=a,n=l;continue}if(n===!0&&l===!1&&r.length>1){const d=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=d+a,n=l;continue}}r+=a,n=l,o=i}return e.push(r),e}function ht(t){return t?ie(t).map(e=>ce(e)).join(""):""}function se(t){return le(ht(t||""))}function ce(t){return t?t[0].toUpperCase()+t.slice(1):""}function le(t){return t?t[0].toLowerCase()+t.slice(1):""}function F(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[ht(n)]=o;return}if(n.startsWith("--")){e[n]=o;return}e[se(n)]=o}return re(t,r),e}function ue(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function fe(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const de=fe(/[A-Z]/,t=>`-${t.toLowerCase()}`);function pe(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${de(e)}: ${t[e]};`).join(`
|
||||
`)}function me(t={}){return pe(t).replace(`
|
||||
`," ")}const be=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],ve=new Set(be);function he(t){return ve.has(t)}function ye(...t){const e={...t[0]};for(let r=1;r<t.length;r++){const n=t[r];if(n){for(const o of Object.keys(n)){const a=e[o],i=n[o],l=typeof a=="function",d=typeof i=="function";if(l&&he(o)){const p=a,m=i;e[o]=Dt(p,m)}else if(l&&d)e[o]=ue(a,i);else if(o==="class"){const p=q(a),m=q(i);p&&m?e[o]=X(a,i):p?e[o]=X(a):m&&(e[o]=X(i))}else if(o==="style"){const p=typeof a=="object",m=typeof i=="object",b=typeof a=="string",f=typeof i=="string";if(p&&m)e[o]={...a,...i};else if(p&&f){const u=F(i);e[o]={...a,...u}}else if(b&&m){const u=F(a);e[o]={...u,...i}}else if(b&&f){const u=F(a),c=F(i);e[o]={...u,...c}}else p?e[o]=a:m?e[o]=i:b?e[o]=a:f&&(e[o]=i)}else e[o]=i!==void 0?i:a}for(const o of Object.getOwnPropertySymbols(n)){const a=e[o],i=n[o];e[o]=i!==void 0?i:a}}}return typeof e.style=="object"&&(e.style=me(e.style).replaceAll(`
|
||||
File diff suppressed because one or more lines are too long
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dscn0QO8.js","./Bzak7iHL.js","./MIlO0V30.js","./BMmwim-G.js","./Dt2zEVER.js","./D6Mj8HfB.js","./DPCugUAM.js","./CEGTtJLH.js","./De4R2cbq.js","./znVx7SEM.js","./BXb9cfiV.js","./CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as P,_ as B}from"./DPCugUAM.js";import"./Bzak7iHL.js";import{h as t,i as w,N as y,ap as L,k as N,Q as O,aq as S,ar as V,as as R,at as A,L as D,p as h,m as _,Y as q,au as j,av as z,aw as G,ax as k,D as F,b as p,d as b,F as H,a as c,E as I,_ as Q,ay as Y,g as E,u as C,f as J}from"./MIlO0V30.js";import{a as K}from"./DBvDeCtH.js";import{B as U,i as W}from"./D6Mj8HfB.js";import{t as X,a as Z,c as $,s as ee}from"./De4R2cbq.js";import{i as ae}from"./Dt2zEVER.js";import{p as T,b as re,r as te}from"./znVx7SEM.js";function ne(f,r,n,o,u,e){let d=t;t&&w();var a=null;t&&y.nodeType===L&&(a=y,w());var l=t?y:f,i=new U(l,!1);N(()=>{const s=r()||null;var v=n||s==="svg"?V:void 0;if(s===null){i.ensure(null,null);return}return i.ensure(s,m=>{if(s){if(a=t?a:S(s,v),R(a,a),o){t&&ae(s)&&a.append(document.createComment(""));var g=t?A(a):a.appendChild(D());t&&(g===null?h(!1):_(g)),o(a,g)}q.nodes.end=a,m.before(a)}t&&_(m)}),()=>{}},O),j(()=>{}),d&&(h(!0),_(l))}function se(f,r){let n=null,o=t;var u;if(t){n=y;for(var e=A(document.head);e!==null&&(e.nodeType!==G||e.data!==f);)e=k(e);if(e===null)h(!1);else{var d=k(e);e.remove(),_(d)}}t||(u=document.head.appendChild(D()));try{N(()=>r(u),z)}finally{o&&(h(!0),_(n))}}const ie=X({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _e(f,r){F(r,!0);let n=T(r,"ref",15,null),o=T(r,"variant",3,"default"),u=te(r,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=p(),d=b(e);ne(d,()=>r.href?"a":"span",!1,(a,l)=>{re(a,v=>n(v),()=>n()),Z(a,v=>({"data-slot":"badge",href:r.href,class:v,...u}),[()=>$(ie({variant:o()}),r.class)]);var i=p(),s=b(i);ee(s,()=>r.children??H),c(l,i)}),c(f,e),I()}var oe=J('<main class="container mx-auto flex flex-col gap-6 py-8"><p class="text-muted-foreground">Loading…</p></main>');function pe(f,r){F(r,!0);var n=p();se("rk8na7",e=>{Q(()=>{Y.title="Items – Stackq"})});var o=b(n);{var u=e=>{var d=p(),a=b(d);K(a,()=>B(()=>import("./Dscn0QO8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),l=>{var i=oe();c(l,i)},(l,i)=>{var s=C(()=>{var{default:x}=E(i);return{ItemsCrud:x}}),v=C(()=>E(s).ItemsCrud),m=p(),g=b(m);P(g,()=>E(v),(x,M)=>{M(x,{get data(){return r.data}})}),c(l,m)}),c(e,d)};W(o,e=>{e(u)})}c(f,n),I()}export{_e as B,pe as _,ne as e,se as h};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BDu_-EPx.js","./Bzak7iHL.js","./MIlO0V30.js","./BMmwim-G.js","./Dt2zEVER.js","./D6Mj8HfB.js","./DPCugUAM.js","./DES8elpW.js","./De4R2cbq.js","./znVx7SEM.js","./B5jfOslc.js","./CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as P,_ as B}from"./DPCugUAM.js";import"./Bzak7iHL.js";import{h as t,i as w,N as y,ap as L,k as N,Q as O,aq as S,ar as V,as as R,at as A,L as D,p as h,m as _,Y as q,au as j,av as z,aw as G,ax as k,D as F,b as p,d as b,F as H,a as c,E as I,_ as Q,ay as Y,g as E,u as C,f as J}from"./MIlO0V30.js";import{a as K}from"./DBvDeCtH.js";import{B as U,i as W}from"./D6Mj8HfB.js";import{t as X,a as Z,c as $,s as ee}from"./De4R2cbq.js";import{i as ae}from"./Dt2zEVER.js";import{p as T,b as re,r as te}from"./znVx7SEM.js";function ne(f,r,n,o,u,e){let d=t;t&&w();var a=null;t&&y.nodeType===L&&(a=y,w());var l=t?y:f,i=new U(l,!1);N(()=>{const s=r()||null;var v=n||s==="svg"?V:void 0;if(s===null){i.ensure(null,null);return}return i.ensure(s,m=>{if(s){if(a=t?a:S(s,v),R(a,a),o){t&&ae(s)&&a.append(document.createComment(""));var g=t?A(a):a.appendChild(D());t&&(g===null?h(!1):_(g)),o(a,g)}q.nodes.end=a,m.before(a)}t&&_(m)}),()=>{}},O),j(()=>{}),d&&(h(!0),_(l))}function se(f,r){let n=null,o=t;var u;if(t){n=y;for(var e=A(document.head);e!==null&&(e.nodeType!==G||e.data!==f);)e=k(e);if(e===null)h(!1);else{var d=k(e);e.remove(),_(d)}}t||(u=document.head.appendChild(D()));try{N(()=>r(u),z)}finally{o&&(h(!0),_(n))}}const ie=X({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _e(f,r){F(r,!0);let n=T(r,"ref",15,null),o=T(r,"variant",3,"default"),u=te(r,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=p(),d=b(e);ne(d,()=>r.href?"a":"span",!1,(a,l)=>{re(a,v=>n(v),()=>n()),Z(a,v=>({"data-slot":"badge",href:r.href,class:v,...u}),[()=>$(ie({variant:o()}),r.class)]);var i=p(),s=b(i);ee(s,()=>r.children??H),c(l,i)}),c(f,e),I()}var oe=J('<main class="container mx-auto flex flex-col gap-6 py-8"><p class="text-muted-foreground">Loading…</p></main>');function pe(f,r){F(r,!0);var n=p();se("rk8na7",e=>{Q(()=>{Y.title="Items – Stackq"})});var o=b(n);{var u=e=>{var d=p(),a=b(d);K(a,()=>B(()=>import("./BDu_-EPx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),l=>{var i=oe();c(l,i)},(l,i)=>{var s=C(()=>{var{default:x}=E(i);return{ItemsCrud:x}}),v=C(()=>E(s).ItemsCrud),m=p(),g=b(m);P(g,()=>E(v),(x,M)=>{M(x,{get data(){return r.data}})}),c(l,m)}),c(e,d)};W(o,e=>{e(u)})}c(f,n),I()}export{_e as B,pe as _,ne as e,se as h};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DSpOEFAc.js","./Bzak7iHL.js","./MIlO0V30.js","./BMmwim-G.js","./Dt2zEVER.js","./D6Mj8HfB.js","./DPCugUAM.js","./BOCLbrhU.js","./De4R2cbq.js","./znVx7SEM.js","./BU_acMKx.js","./CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as P,_ as B}from"./DPCugUAM.js";import"./Bzak7iHL.js";import{h as t,i as w,N as y,ap as L,k as N,Q as O,aq as S,ar as V,as as R,at as A,L as D,p as h,m as _,Y as q,au as j,av as z,aw as G,ax as k,D as F,b as p,d as b,F as H,a as c,E as I,_ as Q,ay as Y,g as E,u as C,f as J}from"./MIlO0V30.js";import{a as K}from"./DBvDeCtH.js";import{B as U,i as W}from"./D6Mj8HfB.js";import{t as X,a as Z,c as $,s as ee}from"./De4R2cbq.js";import{i as ae}from"./Dt2zEVER.js";import{p as T,b as re,r as te}from"./znVx7SEM.js";function ne(f,r,n,o,u,e){let d=t;t&&w();var a=null;t&&y.nodeType===L&&(a=y,w());var l=t?y:f,i=new U(l,!1);N(()=>{const s=r()||null;var v=n||s==="svg"?V:void 0;if(s===null){i.ensure(null,null);return}return i.ensure(s,m=>{if(s){if(a=t?a:S(s,v),R(a,a),o){t&&ae(s)&&a.append(document.createComment(""));var g=t?A(a):a.appendChild(D());t&&(g===null?h(!1):_(g)),o(a,g)}q.nodes.end=a,m.before(a)}t&&_(m)}),()=>{}},O),j(()=>{}),d&&(h(!0),_(l))}function se(f,r){let n=null,o=t;var u;if(t){n=y;for(var e=A(document.head);e!==null&&(e.nodeType!==G||e.data!==f);)e=k(e);if(e===null)h(!1);else{var d=k(e);e.remove(),_(d)}}t||(u=document.head.appendChild(D()));try{N(()=>r(u),z)}finally{o&&(h(!0),_(n))}}const ie=X({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _e(f,r){F(r,!0);let n=T(r,"ref",15,null),o=T(r,"variant",3,"default"),u=te(r,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=p(),d=b(e);ne(d,()=>r.href?"a":"span",!1,(a,l)=>{re(a,v=>n(v),()=>n()),Z(a,v=>({"data-slot":"badge",href:r.href,class:v,...u}),[()=>$(ie({variant:o()}),r.class)]);var i=p(),s=b(i);ee(s,()=>r.children??H),c(l,i)}),c(f,e),I()}var oe=J('<main class="container mx-auto flex flex-col gap-6 py-8"><p class="text-muted-foreground">Loading…</p></main>');function pe(f,r){F(r,!0);var n=p();se("rk8na7",e=>{Q(()=>{Y.title="Items – Stackq"})});var o=b(n);{var u=e=>{var d=p(),a=b(d);K(a,()=>B(()=>import("./DSpOEFAc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),l=>{var i=oe();c(l,i)},(l,i)=>{var s=C(()=>{var{default:x}=E(i);return{ItemsCrud:x}}),v=C(()=>E(s).ItemsCrud),m=p(),g=b(m);P(g,()=>E(v),(x,M)=>{M(x,{get data(){return r.data}})}),c(l,m)}),c(e,d)};W(o,e=>{e(u)})}c(f,n),I()}export{_e as B,pe as _,ne as e,se as h};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./Bzak7iHL.js";import{D as C,c as i,F as j,r as n,a as o,E as L,f as h,b as U,d as I,n as $,t as b,s as p,g as V,u as W,ao as X}from"./MIlO0V30.js";import{s as Y}from"./BMmwim-G.js";import{i as Z}from"./D6Mj8HfB.js";import{c as y}from"./DPCugUAM.js";import{C as ee,L as J,I as K,a as re,b as ae,e as te}from"./BOCLbrhU.js";import{a as k,c as D,s as O}from"./De4R2cbq.js";import{p as S,b as T,r as z}from"./znVx7SEM.js";import{B as se}from"./CINS0kDe.js";var oe=h("<p><!></p>");function de(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();k(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>D("text-muted-foreground text-sm",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("<div><!></div>");function ie(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();k(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("<div><!></div>");function ce(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();k(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>D("leading-none font-semibold",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ue=h("<!> <!>",1),ve=h('<p class="text-destructive text-sm"> </p>'),fe=h('<form method="POST" action="?/login" class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><div class="flex items-center justify-between"><!> <a href="/forgot-password" class="text-muted-foreground text-sm underline hover:text-foreground">Forgot your password?</a></div> <!></div> <!> <!></form>'),me=h("<!> <!>",1);function Ce(c,e){C(e,!0);var d=U(),u=I(d);y(u,()=>ae,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var A=me(),G=I(A);y(G,()=>ie,(E,F)=>{F(E,{children:(q,N)=>{var f=ue(),g=I(f);y(g,()=>ce,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);y(P,()=>de,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(q,f)},$$slots:{default:!0}})});var M=p(G,2);y(M,()=>ee,(E,F)=>{F(E,{children:(q,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=b("Email");o(a,l)},$$slots:{default:!0}});var x=p(P,2);{let a=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});K(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(a)},required:!0})}n(g);var m=p(g,2),_=i(m),B=i(_);J(B,{for:"password",children:(a,t)=>{$();var l=b("Password");o(a,l)},$$slots:{default:!0}}),$(2),n(_);var w=p(_,2);K(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),n(m);var H=p(m,2);{var Q=a=>{var t=ve(),l=i(t,!0);n(t),X(()=>Y(l,e.data.error)),o(a,t)};Z(H,a=>{var t;(t=e.data)!=null&&t.error&&a(Q)})}var R=p(H,2);se(R,{type:"submit",class:"w-full",children:(a,t)=>{$();var l=b("Login");o(a,l)},$$slots:{default:!0}}),n(f),re(f,(a,t)=>{var l;return(l=te)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(q,f)},$$slots:{default:!0}})}),o(s,A)},$$slots:{default:!0}})}),o(c,d),L()}export{Ce as default};
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DZETcxWC.js","../chunks/Bzak7iHL.js","../chunks/DAt58MA1.js","../chunks/MIlO0V30.js","../assets/0.BgdOWdGt.css","../nodes/1.DMG02OYc.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/BXb9cfiV.js","../nodes/2.B-LkGsse.js","../chunks/CINS0kDe.js","../chunks/De4R2cbq.js","../chunks/D6Mj8HfB.js","../chunks/znVx7SEM.js","../chunks/DPCugUAM.js","../nodes/4.BhfvMQ1L.js","../chunks/hxRy_pid.js","../chunks/DBvDeCtH.js","../nodes/5.Cf_DU5yu.js"])))=>i.map(i=>d[i]);
|
||||
var M=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||M("Cannot "+r);var o=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),A=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(G(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{c as D,_ as y}from"../chunks/DPCugUAM.js";import{a6 as x,ag as N,g as d,y as Q,T as U,A as X,D as Z,aj as $,ak as tt,aW as et,d as R,s as rt,a as E,E as at,b0 as L,b as T,c as st,r as ot,f as W,t as nt,ao as it,u as k}from"../chunks/MIlO0V30.js";import{h as ct,m as ut,u as mt,o as dt,s as lt}from"../chunks/BMmwim-G.js";import"../chunks/Bzak7iHL.js";import{i as w}from"../chunks/D6Mj8HfB.js";import{p as I,b as V}from"../chunks/znVx7SEM.js";function _t(e){return class extends ft{constructor(t){super({component:e,...t})}}}var l,c;class ft{constructor(t){A(this,l);A(this,c);var v;var r=new Map,n=(a,s)=>{var _=X(s,!1,!1);return r.set(a,_),_};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return d(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===N?!0:(d(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,_){return x(r.get(s)??n(s,_),_),Reflect.set(a,s,_)}});j(this,c,(t.hydrate?ct:ut)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((v=t==null?void 0:t.props)!=null&&v.$$host)||t.sync===!1)&&Q(),j(this,l,m.$$events);for(const a of Object.keys(o(this,c)))a==="$set"||a==="$destroy"||a==="$on"||U(this,a,{get(){return o(this,c)[a]},set(s){o(this,c)[a]=s},enumerable:!0});o(this,c).$set=a=>{Object.assign(m,a)},o(this,c).$destroy=()=>{mt(o(this,c))}}$set(t){o(this,c).$set(t)}$on(t,r){o(this,l)[t]=o(this,l)[t]||[];const n=(...m)=>r.call(this,...m);return o(this,l)[t].push(n),()=>{o(this,l)[t]=o(this,l)[t].filter(m=>m!==n)}}$destroy(){o(this,c).$destroy()}}l=new WeakMap,c=new WeakMap;const Dt={};var ht=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),gt=W("<!> <!>",1);function vt(e,t){Z(t,!0);let r=I(t,"components",23,()=>[]),n=I(t,"data_0",3,null),m=I(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),m(),t.stores.page.notify()});let v=L(!1),a=L(!1),s=L(null);dt(()=>{const i=t.stores.page.subscribe(()=>{d(v)&&(x(a,!0),et().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(v,!0),i});const _=k(()=>t.constructors[1]);var p=gt(),C=R(p);{var q=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,yt)=>{var S=T(),H=R(S);D(H,()=>d(_),(J,K)=>{V(K(J,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(u,S)},$$slots:{default:!0}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)},z=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)};w(C,i=>{t.constructors[1]?i(q):i(z,!1)})}var B=rt(C,2);{var F=i=>{var f=ht(),h=st(f);{var P=g=>{var b=nt();it(()=>lt(b,d(s))),E(g,b)};w(h,g=>{d(a)&&g(P)})}ot(f),E(i,f)};w(B,i=>{d(v)&&i(F)})}E(e,p),at()}const Lt=_t(vt),Tt=[()=>y(()=>import("../nodes/0.DZETcxWC.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>y(()=>import("../nodes/1.DMG02OYc.js"),__vite__mapDeps([5,1,2,3,6,7,8]),import.meta.url),()=>y(()=>import("../nodes/2.B-LkGsse.js"),__vite__mapDeps([9,1,2,3,10,11,12,7,13]),import.meta.url),()=>y(()=>import("../chunks/DPCugUAM.js").then(e=>e.a),__vite__mapDeps([14,3,12]),import.meta.url),()=>y(()=>import("../nodes/4.BhfvMQ1L.js"),__vite__mapDeps([15,16,14,3,12,1,17,11,7,13]),import.meta.url),()=>y(()=>import("../nodes/5.Cf_DU5yu.js"),__vite__mapDeps([18,14,3,12,1,17]),import.meta.url)],kt=[],wt={"/":[2],"/items":[-5],"/login":[-6],"/logout":[-4]},Y={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},bt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),It=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),Vt=!1,pt=(e,t)=>bt[e](t);export{pt as decode,bt as decoders,wt as dictionary,It as encoders,Vt as hash,Y as hooks,Dt as matchers,Tt as nodes,Lt as root,kt as server_loads};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DZETcxWC.js","../chunks/Bzak7iHL.js","../chunks/DAt58MA1.js","../chunks/MIlO0V30.js","../assets/0.BgdOWdGt.css","../nodes/1.vsiCZgin.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/B5jfOslc.js","../nodes/2.B-LkGsse.js","../chunks/CINS0kDe.js","../chunks/De4R2cbq.js","../chunks/D6Mj8HfB.js","../chunks/znVx7SEM.js","../chunks/DPCugUAM.js","../nodes/4.ZZUnL98s.js","../chunks/CT9ylgEI.js","../chunks/DBvDeCtH.js","../nodes/5.s_SFAJWA.js"])))=>i.map(i=>d[i]);
|
||||
var M=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||M("Cannot "+r);var o=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),A=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(G(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{c as D,_ as y}from"../chunks/DPCugUAM.js";import{a6 as x,ag as N,g as d,y as Q,T as U,A as X,D as Z,aj as $,ak as tt,aW as et,d as R,s as rt,a as E,E as at,b0 as L,b as T,c as st,r as ot,f as W,t as nt,ao as it,u as k}from"../chunks/MIlO0V30.js";import{h as ct,m as ut,u as mt,o as dt,s as lt}from"../chunks/BMmwim-G.js";import"../chunks/Bzak7iHL.js";import{i as w}from"../chunks/D6Mj8HfB.js";import{p as I,b as V}from"../chunks/znVx7SEM.js";function _t(e){return class extends ft{constructor(t){super({component:e,...t})}}}var l,c;class ft{constructor(t){A(this,l);A(this,c);var v;var r=new Map,n=(a,s)=>{var _=X(s,!1,!1);return r.set(a,_),_};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return d(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===N?!0:(d(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,_){return x(r.get(s)??n(s,_),_),Reflect.set(a,s,_)}});j(this,c,(t.hydrate?ct:ut)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((v=t==null?void 0:t.props)!=null&&v.$$host)||t.sync===!1)&&Q(),j(this,l,m.$$events);for(const a of Object.keys(o(this,c)))a==="$set"||a==="$destroy"||a==="$on"||U(this,a,{get(){return o(this,c)[a]},set(s){o(this,c)[a]=s},enumerable:!0});o(this,c).$set=a=>{Object.assign(m,a)},o(this,c).$destroy=()=>{mt(o(this,c))}}$set(t){o(this,c).$set(t)}$on(t,r){o(this,l)[t]=o(this,l)[t]||[];const n=(...m)=>r.call(this,...m);return o(this,l)[t].push(n),()=>{o(this,l)[t]=o(this,l)[t].filter(m=>m!==n)}}$destroy(){o(this,c).$destroy()}}l=new WeakMap,c=new WeakMap;const Dt={};var ht=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),gt=W("<!> <!>",1);function vt(e,t){Z(t,!0);let r=I(t,"components",23,()=>[]),n=I(t,"data_0",3,null),m=I(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),m(),t.stores.page.notify()});let v=L(!1),a=L(!1),s=L(null);dt(()=>{const i=t.stores.page.subscribe(()=>{d(v)&&(x(a,!0),et().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(v,!0),i});const _=k(()=>t.constructors[1]);var p=gt(),C=R(p);{var q=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,yt)=>{var S=T(),H=R(S);D(H,()=>d(_),(J,K)=>{V(K(J,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(u,S)},$$slots:{default:!0}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)},z=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)};w(C,i=>{t.constructors[1]?i(q):i(z,!1)})}var B=rt(C,2);{var F=i=>{var f=ht(),h=st(f);{var P=g=>{var b=nt();it(()=>lt(b,d(s))),E(g,b)};w(h,g=>{d(a)&&g(P)})}ot(f),E(i,f)};w(B,i=>{d(v)&&i(F)})}E(e,p),at()}const Lt=_t(vt),Tt=[()=>y(()=>import("../nodes/0.DZETcxWC.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>y(()=>import("../nodes/1.vsiCZgin.js"),__vite__mapDeps([5,1,2,3,6,7,8]),import.meta.url),()=>y(()=>import("../nodes/2.B-LkGsse.js"),__vite__mapDeps([9,1,2,3,10,11,12,7,13]),import.meta.url),()=>y(()=>import("../chunks/DPCugUAM.js").then(e=>e.a),__vite__mapDeps([14,3,12]),import.meta.url),()=>y(()=>import("../nodes/4.ZZUnL98s.js"),__vite__mapDeps([15,16,14,3,12,1,17,11,7,13]),import.meta.url),()=>y(()=>import("../nodes/5.s_SFAJWA.js"),__vite__mapDeps([18,14,3,12,1,17]),import.meta.url)],kt=[],wt={"/":[2],"/items":[-5],"/login":[-6],"/logout":[-4]},Y={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},bt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),It=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),Vt=!1,pt=(e,t)=>bt[e](t);export{pt as decode,bt as decoders,wt as dictionary,It as encoders,Vt as hash,Y as hooks,Dt as matchers,Tt as nodes,Lt as root,kt as server_loads};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BbNusdVr.js","../chunks/Bzak7iHL.js","../chunks/DAt58MA1.js","../chunks/MIlO0V30.js","../assets/0.EFPCDS6k.css","../nodes/1.BSDMq5ii.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/BU_acMKx.js","../nodes/2.B-LkGsse.js","../chunks/CINS0kDe.js","../chunks/De4R2cbq.js","../chunks/D6Mj8HfB.js","../chunks/znVx7SEM.js","../chunks/DPCugUAM.js","../nodes/4.CiQuz_-G.js","../chunks/D1I5yNUo.js","../chunks/DBvDeCtH.js","../nodes/5.CncCf1V5.js"])))=>i.map(i=>d[i]);
|
||||
var M=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||M("Cannot "+r);var o=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),A=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(G(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{c as D,_ as y}from"../chunks/DPCugUAM.js";import{a6 as x,ag as N,g as d,y as Q,T as U,A as X,D as Z,aj as $,ak as tt,aW as et,d as R,s as rt,a as E,E as at,b0 as L,b as T,c as st,r as ot,f as W,t as nt,ao as it,u as k}from"../chunks/MIlO0V30.js";import{h as ct,m as ut,u as mt,o as dt,s as lt}from"../chunks/BMmwim-G.js";import"../chunks/Bzak7iHL.js";import{i as w}from"../chunks/D6Mj8HfB.js";import{p as I,b as V}from"../chunks/znVx7SEM.js";function _t(e){return class extends ft{constructor(t){super({component:e,...t})}}}var l,c;class ft{constructor(t){A(this,l);A(this,c);var v;var r=new Map,n=(a,s)=>{var _=X(s,!1,!1);return r.set(a,_),_};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return d(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===N?!0:(d(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,_){return x(r.get(s)??n(s,_),_),Reflect.set(a,s,_)}});j(this,c,(t.hydrate?ct:ut)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((v=t==null?void 0:t.props)!=null&&v.$$host)||t.sync===!1)&&Q(),j(this,l,m.$$events);for(const a of Object.keys(o(this,c)))a==="$set"||a==="$destroy"||a==="$on"||U(this,a,{get(){return o(this,c)[a]},set(s){o(this,c)[a]=s},enumerable:!0});o(this,c).$set=a=>{Object.assign(m,a)},o(this,c).$destroy=()=>{mt(o(this,c))}}$set(t){o(this,c).$set(t)}$on(t,r){o(this,l)[t]=o(this,l)[t]||[];const n=(...m)=>r.call(this,...m);return o(this,l)[t].push(n),()=>{o(this,l)[t]=o(this,l)[t].filter(m=>m!==n)}}$destroy(){o(this,c).$destroy()}}l=new WeakMap,c=new WeakMap;const Dt={};var ht=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),gt=W("<!> <!>",1);function vt(e,t){Z(t,!0);let r=I(t,"components",23,()=>[]),n=I(t,"data_0",3,null),m=I(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),m(),t.stores.page.notify()});let v=L(!1),a=L(!1),s=L(null);dt(()=>{const i=t.stores.page.subscribe(()=>{d(v)&&(x(a,!0),et().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(v,!0),i});const _=k(()=>t.constructors[1]);var p=gt(),C=R(p);{var q=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,yt)=>{var S=T(),H=R(S);D(H,()=>d(_),(J,K)=>{V(K(J,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(u,S)},$$slots:{default:!0}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)},z=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)};w(C,i=>{t.constructors[1]?i(q):i(z,!1)})}var B=rt(C,2);{var F=i=>{var f=ht(),h=st(f);{var P=g=>{var b=nt();it(()=>lt(b,d(s))),E(g,b)};w(h,g=>{d(a)&&g(P)})}ot(f),E(i,f)};w(B,i=>{d(v)&&i(F)})}E(e,p),at()}const Lt=_t(vt),Tt=[()=>y(()=>import("../nodes/0.BbNusdVr.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>y(()=>import("../nodes/1.BSDMq5ii.js"),__vite__mapDeps([5,1,2,3,6,7,8]),import.meta.url),()=>y(()=>import("../nodes/2.B-LkGsse.js"),__vite__mapDeps([9,1,2,3,10,11,12,7,13]),import.meta.url),()=>y(()=>import("../chunks/DPCugUAM.js").then(e=>e.a),__vite__mapDeps([14,3,12]),import.meta.url),()=>y(()=>import("../nodes/4.CiQuz_-G.js"),__vite__mapDeps([15,16,14,3,12,1,17,11,7,13]),import.meta.url),()=>y(()=>import("../nodes/5.CncCf1V5.js"),__vite__mapDeps([18,14,3,12,1,17]),import.meta.url)],kt=[],wt={"/":[2],"/items":[-5],"/login":[-6],"/logout":[-4]},Y={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},bt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),It=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),Vt=!1,pt=(e,t)=>bt[e](t);export{pt as decode,bt as decoders,wt as dictionary,It as encoders,Vt as hash,Y as hooks,Dt as matchers,Tt as nodes,Lt as root,kt as server_loads};
|
||||
@@ -0,0 +1 @@
|
||||
import{l as o,d as r}from"../chunks/B5jfOslc.js";export{o as load_css,r as start};
|
||||
@@ -0,0 +1 @@
|
||||
import{l as o,d as r}from"../chunks/BU_acMKx.js";export{o as load_css,r as start};
|
||||
@@ -0,0 +1 @@
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{h as l,i as f,b as s,d,a as u}from"../chunks/MIlO0V30.js";function c(o,e,t,a,_){var i;l&&f();var n=(i=e.$$slots)==null?void 0:i[t],r=!1;n===!0&&(n=e.children,r=!0),n===void 0||n(o,r?()=>a:a)}const y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function b(o,e){var t=s(),a=d(t);c(a,e,"default",{}),u(o,t)}export{b as component,y as universal};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{ai as k,aj as b,ak as i,a0 as x,al as l,am as $,g as v,an as y,ac as E,D as j,d as D,ao as q,a as w,E as z,f as A,c as u,r as m,s as B}from"../chunks/MIlO0V30.js";import{s as g}from"../chunks/BMmwim-G.js";import{s as C,p as _}from"../chunks/BXb9cfiV.js";function F(r=!1){const e=k,t=e.l.u;if(!t)return;let a=()=>y(e.s);if(r){let o=0,s={};const c=E(()=>{let n=!1;const p=e.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>v(c)}t.b.length&&b(()=>{d(e,a),l(t.b)}),i(()=>{const o=x(()=>t.m.map($));return()=>{for(const s of o)typeof s=="function"&&s()}}),t.a.length&&i(()=>{d(e,a),l(t.a)})}function d(r,e){if(r.l.s)for(const t of r.l.s)v(t);e()}const G={get error(){return _.error},get status(){return _.status}};C.updated.check;const h=G;var H=A("<h1> </h1> <p> </p>",1);function N(r,e){j(e,!1),F();var t=H(),a=D(t),o=u(a,!0);m(a);var s=B(a,2),c=u(s,!0);m(s),q(()=>{var n;g(o,h.status),g(c,(n=h.error)==null?void 0:n.message)}),w(r,t),z()}export{N as component};
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{ai as k,aj as b,ak as i,a0 as x,al as l,am as $,g as v,an as y,ac as E,D as j,d as D,ao as q,a as w,E as z,f as A,c as u,r as m,s as B}from"../chunks/MIlO0V30.js";import{s as g}from"../chunks/BMmwim-G.js";import{s as C,p as _}from"../chunks/BU_acMKx.js";function F(r=!1){const e=k,t=e.l.u;if(!t)return;let a=()=>y(e.s);if(r){let o=0,s={};const c=E(()=>{let n=!1;const p=e.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>v(c)}t.b.length&&b(()=>{d(e,a),l(t.b)}),i(()=>{const o=x(()=>t.m.map($));return()=>{for(const s of o)typeof s=="function"&&s()}}),t.a.length&&i(()=>{d(e,a),l(t.a)})}function d(r,e){if(r.l.s)for(const t of r.l.s)v(t);e()}const G={get error(){return _.error},get status(){return _.status}};C.updated.check;const h=G;var H=A("<h1> </h1> <p> </p>",1);function N(r,e){j(e,!1),F();var t=H(),a=D(t),o=u(a,!0);m(a);var s=B(a,2),c=u(s,!0);m(s),q(()=>{var n;g(o,h.status),g(c,(n=h.error)==null?void 0:n.message)}),w(r,t),z()}export{N as component};
|
||||
@@ -0,0 +1 @@
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{ai as k,aj as b,ak as i,a0 as x,al as l,am as $,g as v,an as y,ac as E,D as j,d as D,ao as q,a as w,E as z,f as A,c as u,r as m,s as B}from"../chunks/MIlO0V30.js";import{s as g}from"../chunks/BMmwim-G.js";import{s as C,p as _}from"../chunks/B5jfOslc.js";function F(r=!1){const e=k,t=e.l.u;if(!t)return;let a=()=>y(e.s);if(r){let o=0,s={};const c=E(()=>{let n=!1;const p=e.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>v(c)}t.b.length&&b(()=>{d(e,a),l(t.b)}),i(()=>{const o=x(()=>t.m.map($));return()=>{for(const s of o)typeof s=="function"&&s()}}),t.a.length&&i(()=>{d(e,a),l(t.a)})}function d(r,e){if(r.l.s)for(const t of r.l.s)v(t);e()}const G={get error(){return _.error},get status(){return _.status}};C.updated.check;const h=G;var H=A("<h1> </h1> <p> </p>",1);function N(r,e){j(e,!1),F();var t=H(),a=D(t),o=u(a,!0);m(a);var s=B(a,2),c=u(s,!0);m(s),q(()=>{var n;g(o,h.status),g(c,(n=h.error)==null?void 0:n.message)}),w(r,t),z()}export{N as component};
|
||||
@@ -0,0 +1 @@
|
||||
import{_ as m}from"../chunks/D1I5yNUo.js";export{m as component};
|
||||
@@ -0,0 +1 @@
|
||||
import{_ as m}from"../chunks/CT9ylgEI.js";export{m as component};
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DhhKcsqN.js","../chunks/Bzak7iHL.js","../chunks/MIlO0V30.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/D6Mj8HfB.js","../chunks/DPCugUAM.js","../chunks/CEGTtJLH.js","../chunks/De4R2cbq.js","../chunks/znVx7SEM.js","../chunks/BXb9cfiV.js","../chunks/CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as F,_ as k}from"../chunks/DPCugUAM.js";import"../chunks/Bzak7iHL.js";import{a as r,f as v,c as E,r as P,b as _,d,g as i,u as p}from"../chunks/MIlO0V30.js";import{a as $}from"../chunks/DBvDeCtH.js";import{i as j}from"../chunks/D6Mj8HfB.js";var w=v('<p class="text-muted-foreground">Loading…</p>'),y=v('<main class="flex min-h-screen flex-col items-center justify-center p-4"><!></main>');function T(c,f){var a=y(),l=E(a);{var u=o=>{var n=_(),g=d(n);$(g,()=>k(()=>import("../chunks/DhhKcsqN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=>{var t=w();r(e,t)},(e,t)=>{var L=p(()=>{var{default:m}=i(t);return{LoginForm:m}}),h=p(()=>i(L).LoginForm),s=_(),x=d(s);F(x,()=>i(h),(m,b)=>{b(m,{get data(){return f.data}})}),r(e,s)}),r(o,n)};j(l,o=>{o(u)})}P(a),r(c,a)}export{T as component};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DYBeKdvA.js","../chunks/Bzak7iHL.js","../chunks/MIlO0V30.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/D6Mj8HfB.js","../chunks/DPCugUAM.js","../chunks/BOCLbrhU.js","../chunks/De4R2cbq.js","../chunks/znVx7SEM.js","../chunks/BU_acMKx.js","../chunks/CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as F,_ as k}from"../chunks/DPCugUAM.js";import"../chunks/Bzak7iHL.js";import{a as r,f as v,c as E,r as P,b as _,d,g as i,u as p}from"../chunks/MIlO0V30.js";import{a as $}from"../chunks/DBvDeCtH.js";import{i as j}from"../chunks/D6Mj8HfB.js";var w=v('<p class="text-muted-foreground">Loading…</p>'),y=v('<main class="flex min-h-screen flex-col items-center justify-center p-4"><!></main>');function T(c,f){var a=y(),l=E(a);{var u=o=>{var n=_(),g=d(n);$(g,()=>k(()=>import("../chunks/DYBeKdvA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=>{var t=w();r(e,t)},(e,t)=>{var L=p(()=>{var{default:m}=i(t);return{LoginForm:m}}),h=p(()=>i(L).LoginForm),s=_(),x=d(s);F(x,()=>i(h),(m,b)=>{b(m,{get data(){return f.data}})}),r(e,s)}),r(o,n)};j(l,o=>{o(u)})}P(a),r(c,a)}export{T as component};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BHhlax6L.js","../chunks/Bzak7iHL.js","../chunks/MIlO0V30.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/D6Mj8HfB.js","../chunks/DPCugUAM.js","../chunks/DES8elpW.js","../chunks/De4R2cbq.js","../chunks/znVx7SEM.js","../chunks/B5jfOslc.js","../chunks/CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as F,_ as k}from"../chunks/DPCugUAM.js";import"../chunks/Bzak7iHL.js";import{a as r,f as v,c as E,r as P,b as _,d,g as i,u as p}from"../chunks/MIlO0V30.js";import{a as $}from"../chunks/DBvDeCtH.js";import{i as j}from"../chunks/D6Mj8HfB.js";var w=v('<p class="text-muted-foreground">Loading…</p>'),y=v('<main class="flex min-h-screen flex-col items-center justify-center p-4"><!></main>');function T(c,f){var a=y(),l=E(a);{var u=o=>{var n=_(),g=d(n);$(g,()=>k(()=>import("../chunks/BHhlax6L.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=>{var t=w();r(e,t)},(e,t)=>{var L=p(()=>{var{default:m}=i(t);return{LoginForm:m}}),h=p(()=>i(L).LoginForm),s=_(),x=d(s);F(x,()=>i(h),(m,b)=>{b(m,{get data(){return f.data}})}),r(e,s)}),r(o,n)};j(l,o=>{o(u)})}P(a),r(c,a)}export{T as component};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":"1771362614130"}
|
||||
+1
-1
@@ -117,7 +117,7 @@
|
||||
"_index.js"
|
||||
],
|
||||
"css": [
|
||||
"_app/immutable/assets/_layout.BN8lb0qC.css"
|
||||
"_app/immutable/assets/_layout.BQZUYDmN.css"
|
||||
]
|
||||
},
|
||||
"src/routes/+layout.ts": {
|
||||
File diff suppressed because one or more lines are too long
+37
-36
@@ -1106,39 +1106,40 @@ function ensure_array_like(array_like_or_iterator) {
|
||||
return [];
|
||||
}
|
||||
export {
|
||||
array_from as $,
|
||||
ASYNC as A,
|
||||
define_property as $,
|
||||
DESTROYED as A,
|
||||
BOUNDARY_EFFECT as B,
|
||||
COMMENT_NODE as C,
|
||||
DIRTY as D,
|
||||
ERROR_VALUE as E,
|
||||
includes as F,
|
||||
EFFECT_TRANSPARENT as G,
|
||||
ASYNC as F,
|
||||
includes as G,
|
||||
HYDRATION_ERROR as H,
|
||||
INERT as I,
|
||||
EFFECT_PRESERVED as J,
|
||||
EAGER_EFFECT as K,
|
||||
STATE_SYMBOL as L,
|
||||
EFFECT_TRANSPARENT as J,
|
||||
EFFECT_PRESERVED as K,
|
||||
EAGER_EFFECT as L,
|
||||
MAYBE_DIRTY as M,
|
||||
object_prototype as N,
|
||||
array_prototype as O,
|
||||
get_descriptor as P,
|
||||
get_prototype_of as Q,
|
||||
STATE_SYMBOL as N,
|
||||
object_prototype as O,
|
||||
array_prototype as P,
|
||||
get_descriptor as Q,
|
||||
REACTION_RAN as R,
|
||||
STALE_REACTION as S,
|
||||
is_array as T,
|
||||
get_prototype_of as T,
|
||||
UNINITIALIZED as U,
|
||||
is_extensible as V,
|
||||
is_array as V,
|
||||
WAS_MARKED as W,
|
||||
USER_EFFECT as X,
|
||||
REACTION_IS_UPDATING as Y,
|
||||
index_of as Z,
|
||||
define_property as _,
|
||||
is_extensible as X,
|
||||
USER_EFFECT as Y,
|
||||
REACTION_IS_UPDATING as Z,
|
||||
index_of as _,
|
||||
attributes as a,
|
||||
is_passive_event as a0,
|
||||
LEGACY_PROPS as a1,
|
||||
render as a2,
|
||||
setContext as a3,
|
||||
array_from as a0,
|
||||
is_passive_event as a1,
|
||||
LEGACY_PROPS as a2,
|
||||
render as a3,
|
||||
setContext as a4,
|
||||
bind_props as b,
|
||||
clsx as c,
|
||||
element as d,
|
||||
@@ -1146,22 +1147,22 @@ export {
|
||||
ensure_array_like as f,
|
||||
getContext as g,
|
||||
head as h,
|
||||
HYDRATION_END as i,
|
||||
HYDRATION_START as j,
|
||||
HYDRATION_START_ELSE as k,
|
||||
EFFECT as l,
|
||||
CONNECTED as m,
|
||||
attr as i,
|
||||
HYDRATION_END as j,
|
||||
HYDRATION_START as k,
|
||||
HYDRATION_START_ELSE as l,
|
||||
EFFECT as m,
|
||||
noop as n,
|
||||
CLEAN as o,
|
||||
DERIVED as p,
|
||||
BLOCK_EFFECT as q,
|
||||
CONNECTED as o,
|
||||
CLEAN as p,
|
||||
DERIVED as q,
|
||||
run_all as r,
|
||||
slot as s,
|
||||
deferred as t,
|
||||
BRANCH_EFFECT as u,
|
||||
ROOT_EFFECT as v,
|
||||
RENDER_EFFECT as w,
|
||||
MANAGED_EFFECT as x,
|
||||
HEAD_EFFECT as y,
|
||||
DESTROYED as z
|
||||
BLOCK_EFFECT as t,
|
||||
deferred as u,
|
||||
BRANCH_EFFECT as v,
|
||||
ROOT_EFFECT as w,
|
||||
RENDER_EFFECT as x,
|
||||
MANAGED_EFFECT as y,
|
||||
HEAD_EFFECT as z
|
||||
};
|
||||
+1
-1
@@ -101,7 +101,7 @@ const options = {
|
||||
<div class="error">
|
||||
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
||||
},
|
||||
version_hash: "5hw1yq"
|
||||
version_hash: "1clozn7"
|
||||
};
|
||||
async function get_hooks() {
|
||||
let handle;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { H as HYDRATION_ERROR, C as COMMENT_NODE, i as HYDRATION_END, j as HYDRATION_START, k as HYDRATION_START_ELSE, r as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, l as EFFECT, m as CONNECTED, o as CLEAN, M as MAYBE_DIRTY, D as DIRTY, p as DERIVED, W as WAS_MARKED, I as INERT, q as BLOCK_EFFECT, U as UNINITIALIZED, t as deferred, u as BRANCH_EFFECT, v as ROOT_EFFECT, w as RENDER_EFFECT, x as MANAGED_EFFECT, y as HEAD_EFFECT, z as DESTROYED, A as ASYNC, F as includes, G as EFFECT_TRANSPARENT, J as EFFECT_PRESERVED, S as STALE_REACTION, n as noop, K as EAGER_EFFECT, L as STATE_SYMBOL, N as object_prototype, O as array_prototype, P as get_descriptor, Q as get_prototype_of, T as is_array, V as is_extensible, X as USER_EFFECT, Y as REACTION_IS_UPDATING, Z as index_of, _ as define_property, $ as array_from, a0 as is_passive_event, a1 as LEGACY_PROPS, a2 as render, a3 as setContext } from "./index.js";
|
||||
import { H as HYDRATION_ERROR, C as COMMENT_NODE, j as HYDRATION_END, k as HYDRATION_START, l as HYDRATION_START_ELSE, r as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, m as EFFECT, o as CONNECTED, p as CLEAN, M as MAYBE_DIRTY, D as DIRTY, q as DERIVED, W as WAS_MARKED, I as INERT, t as BLOCK_EFFECT, U as UNINITIALIZED, u as deferred, v as BRANCH_EFFECT, w as ROOT_EFFECT, x as RENDER_EFFECT, y as MANAGED_EFFECT, z as HEAD_EFFECT, A as DESTROYED, F as ASYNC, G as includes, J as EFFECT_TRANSPARENT, K as EFFECT_PRESERVED, S as STALE_REACTION, n as noop, L as EAGER_EFFECT, N as STATE_SYMBOL, O as object_prototype, P as array_prototype, Q as get_descriptor, T as get_prototype_of, V as is_array, X as is_extensible, Y as USER_EFFECT, Z as REACTION_IS_UPDATING, _ as index_of, $ as define_property, a0 as array_from, a1 as is_passive_event, a2 as LEGACY_PROPS, a3 as render, a4 as setContext } from "./index.js";
|
||||
import { D as DEV } from "./false.js";
|
||||
import "clsx";
|
||||
function equals(value) {
|
||||
+12
-4
@@ -33,9 +33,11 @@ const actions = {
|
||||
const Has_Parent = parseBool(form.get("Has_Parent"));
|
||||
const Parent = form.get("Parent")?.trim() ?? "";
|
||||
const Stock = parseBool(form.get("Stock"));
|
||||
const imageFileCreate = form.get("Image");
|
||||
const hasImage = imageFileCreate && imageFileCreate.size > 0;
|
||||
if (!Item) return fail(400, { error: "Item name is required", form: "create" });
|
||||
try {
|
||||
await locals.pb.collection(COLLECTION).create({
|
||||
const body = {
|
||||
Item,
|
||||
SKU,
|
||||
Description,
|
||||
@@ -47,7 +49,9 @@ const actions = {
|
||||
Has_Parent: !!Has_Parent,
|
||||
Parent: Parent || null,
|
||||
Stock: !!Stock
|
||||
});
|
||||
};
|
||||
if (hasImage) body.Image = imageFileCreate;
|
||||
await locals.pb.collection(COLLECTION).create(body);
|
||||
} catch (e) {
|
||||
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Create failed";
|
||||
return fail(500, { error: message, form: "create" });
|
||||
@@ -69,9 +73,11 @@ const actions = {
|
||||
const Has_Parent = parseBool(form.get("Has_Parent"));
|
||||
const Parent = form.get("Parent")?.trim() ?? "";
|
||||
const Stock = parseBool(form.get("Stock"));
|
||||
const Image = form.get("Image");
|
||||
const imageFile = Image && Image.size > 0 ? Image : void 0;
|
||||
if (!Item) return fail(400, { error: "Item name is required", form: "update" });
|
||||
try {
|
||||
await locals.pb.collection(COLLECTION).update(id, {
|
||||
const body = {
|
||||
Item,
|
||||
SKU,
|
||||
Description,
|
||||
@@ -83,7 +89,9 @@ const actions = {
|
||||
Has_Parent: !!Has_Parent,
|
||||
Parent: Parent || null,
|
||||
Stock: !!Stock
|
||||
});
|
||||
};
|
||||
if (imageFile) body.Image = imageFile;
|
||||
await locals.pb.collection(COLLECTION).update(id, body);
|
||||
} catch (e) {
|
||||
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Update failed";
|
||||
return fail(500, { error: message, form: "update" });
|
||||
+32
-2
@@ -1,4 +1,4 @@
|
||||
import { a as attributes, c as clsx, b as bind_props, d as element, h as head, e as escape_html, f as ensure_array_like } from "../../../chunks/index.js";
|
||||
import { a as attributes, c as clsx, b as bind_props, d as element, h as head, e as escape_html, f as ensure_array_like, i as attr } from "../../../chunks/index.js";
|
||||
import { c as cn } from "../../../chunks/utils2.js";
|
||||
import "clsx";
|
||||
import { tv } from "tailwind-variants";
|
||||
@@ -221,6 +221,12 @@ function _page($$renderer, $$props) {
|
||||
}
|
||||
}
|
||||
const items = data?.items ?? [];
|
||||
const PB_BASE = "https://pocketbase.ccllc.pro";
|
||||
const COLLECTION = "Stackq_Items";
|
||||
function imageUrl(item) {
|
||||
if (!item.Image) return null;
|
||||
return `${PB_BASE}/api/files/${COLLECTION}/${item.id}/${item.Image}`;
|
||||
}
|
||||
head("rk8na7", $$renderer2, ($$renderer3) => {
|
||||
$$renderer3.title(($$renderer4) => {
|
||||
$$renderer4.push(`<title>Items – Stackq</title>`);
|
||||
@@ -243,6 +249,14 @@ function _page($$renderer, $$props) {
|
||||
$$renderer6.push("<!---->");
|
||||
Table_row?.($$renderer6, {
|
||||
children: ($$renderer7) => {
|
||||
$$renderer7.push("<!---->");
|
||||
Table_head?.($$renderer7, {
|
||||
children: ($$renderer8) => {
|
||||
$$renderer8.push(`<!---->Image`);
|
||||
},
|
||||
$$slots: { default: true }
|
||||
});
|
||||
$$renderer7.push(`<!----> `);
|
||||
$$renderer7.push("<!---->");
|
||||
Table_head?.($$renderer7, {
|
||||
children: ($$renderer8) => {
|
||||
@@ -369,7 +383,7 @@ function _page($$renderer, $$props) {
|
||||
children: ($$renderer7) => {
|
||||
$$renderer7.push("<!---->");
|
||||
Table_cell?.($$renderer7, {
|
||||
colspan: "13",
|
||||
colspan: "14",
|
||||
class: "h-24 text-center text-muted-foreground",
|
||||
children: ($$renderer8) => {
|
||||
$$renderer8.push(`<!---->No items.`);
|
||||
@@ -390,6 +404,22 @@ function _page($$renderer, $$props) {
|
||||
$$renderer6.push("<!---->");
|
||||
Table_row?.($$renderer6, {
|
||||
children: ($$renderer7) => {
|
||||
$$renderer7.push("<!---->");
|
||||
Table_cell?.($$renderer7, {
|
||||
class: "w-16",
|
||||
children: ($$renderer8) => {
|
||||
if (imageUrl(item)) {
|
||||
$$renderer8.push("<!--[-->");
|
||||
$$renderer8.push(`<img${attr("src", imageUrl(item))} alt="" class="size-14 rounded border object-cover" loading="lazy"/>`);
|
||||
} else {
|
||||
$$renderer8.push("<!--[!-->");
|
||||
$$renderer8.push(`<span class="text-muted-foreground text-xs">—</span>`);
|
||||
}
|
||||
$$renderer8.push(`<!--]-->`);
|
||||
},
|
||||
$$slots: { default: true }
|
||||
});
|
||||
$$renderer7.push(`<!----> `);
|
||||
$$renderer7.push("<!---->");
|
||||
Table_cell?.($$renderer7, {
|
||||
class: "font-medium",
|
||||
+1
-1
@@ -10,7 +10,7 @@ return {
|
||||
assets: new Set([]),
|
||||
mimeTypes: {},
|
||||
_: {
|
||||
client: {start:"_app/immutable/entry/start.C2MVIkwD.js",app:"_app/immutable/entry/app.BsFk1HrO.js",imports:["_app/immutable/entry/start.C2MVIkwD.js","_app/immutable/chunks/BXb9cfiV.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.BsFk1HrO.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
nodes: [
|
||||
__memo(() => import('./nodes/0.js')),
|
||||
__memo(() => import('./nodes/1.js')),
|
||||
@@ -10,7 +10,7 @@ return {
|
||||
assets: new Set([]),
|
||||
mimeTypes: {},
|
||||
_: {
|
||||
client: {start:"_app/immutable/entry/start.C2MVIkwD.js",app:"_app/immutable/entry/app.BsFk1HrO.js",imports:["_app/immutable/entry/start.C2MVIkwD.js","_app/immutable/chunks/BXb9cfiV.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.BsFk1HrO.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||
nodes: [
|
||||
__memo(() => import('./nodes/0.js')),
|
||||
__memo(() => import('./nodes/1.js')),
|
||||
@@ -5,6 +5,6 @@ let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
||||
export { universal };
|
||||
export const universal_id = "src/routes/+layout.ts";
|
||||
export const imports = ["_app/immutable/nodes/0.DZETcxWC.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"];
|
||||
export const stylesheets = ["_app/immutable/assets/0.BgdOWdGt.css"];
|
||||
export const imports = ["_app/immutable/nodes/0.BbNusdVr.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"];
|
||||
export const stylesheets = ["_app/immutable/assets/0.EFPCDS6k.css"];
|
||||
export const fonts = [];
|
||||
@@ -3,6 +3,6 @@
|
||||
export const index = 1;
|
||||
let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
|
||||
export const imports = ["_app/immutable/nodes/1.DMG02OYc.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BXb9cfiV.js"];
|
||||
export const imports = ["_app/immutable/nodes/1.BSDMq5ii.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BU_acMKx.js"];
|
||||
export const stylesheets = [];
|
||||
export const fonts = [];
|
||||
@@ -5,6 +5,6 @@ let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/pages/items/_page.svelte.js')).default;
|
||||
export { server };
|
||||
export const server_id = "src/routes/items/+page.server.ts";
|
||||
export const imports = ["_app/immutable/nodes/4.BhfvMQ1L.js","_app/immutable/chunks/hxRy_pid.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
|
||||
export const imports = ["_app/immutable/nodes/4.CiQuz_-G.js","_app/immutable/chunks/D1I5yNUo.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
|
||||
export const stylesheets = [];
|
||||
export const fonts = [];
|
||||
@@ -5,6 +5,6 @@ let component_cache;
|
||||
export const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;
|
||||
export { server };
|
||||
export const server_id = "src/routes/login/+page.server.ts";
|
||||
export const imports = ["_app/immutable/nodes/5.Cf_DU5yu.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"];
|
||||
export const imports = ["_app/immutable/nodes/5.CncCf1V5.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"];
|
||||
export const stylesheets = [];
|
||||
export const fonts = [];
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{l as o,d as r}from"../chunks/BXb9cfiV.js";export{o as load_css,r as start};
|
||||
@@ -1 +0,0 @@
|
||||
import{_ as m}from"../chunks/hxRy_pid.js";export{m as component};
|
||||
@@ -1 +0,0 @@
|
||||
{"version":"1771361500042"}
|
||||
File diff suppressed because one or more lines are too long
@@ -46,11 +46,13 @@ export const actions = {
|
||||
const Has_Parent = parseBool(form.get("Has_Parent"));
|
||||
const Parent = (form.get("Parent") as string)?.trim() ?? "";
|
||||
const Stock = parseBool(form.get("Stock"));
|
||||
const imageFileCreate = form.get("Image") as File | null;
|
||||
const hasImage = imageFileCreate && imageFileCreate.size > 0;
|
||||
|
||||
if (!Item) return fail(400, { error: "Item name is required", form: "create" });
|
||||
|
||||
try {
|
||||
await locals.pb.collection(COLLECTION).create({
|
||||
const body: Record<string, unknown> = {
|
||||
Item,
|
||||
SKU,
|
||||
Description,
|
||||
@@ -62,7 +64,9 @@ export const actions = {
|
||||
Has_Parent: !!Has_Parent,
|
||||
Parent: Parent || null,
|
||||
Stock: !!Stock,
|
||||
});
|
||||
};
|
||||
if (hasImage) body.Image = imageFileCreate;
|
||||
await locals.pb.collection(COLLECTION).create(body);
|
||||
} catch (e: unknown) {
|
||||
const message = e && typeof e === "object" && "message" in e ? String((e as { message: string }).message) : "Create failed";
|
||||
return fail(500, { error: message, form: "create" });
|
||||
@@ -86,11 +90,13 @@ export const actions = {
|
||||
const Has_Parent = parseBool(form.get("Has_Parent"));
|
||||
const Parent = (form.get("Parent") as string)?.trim() ?? "";
|
||||
const Stock = parseBool(form.get("Stock"));
|
||||
const Image = form.get("Image") as File | null;
|
||||
const imageFile = Image && Image.size > 0 ? Image : undefined;
|
||||
|
||||
if (!Item) return fail(400, { error: "Item name is required", form: "update" });
|
||||
|
||||
try {
|
||||
await locals.pb.collection(COLLECTION).update(id, {
|
||||
const body: Record<string, unknown> = {
|
||||
Item,
|
||||
SKU,
|
||||
Description,
|
||||
@@ -102,7 +108,9 @@ export const actions = {
|
||||
Has_Parent: !!Has_Parent,
|
||||
Parent: Parent || null,
|
||||
Stock: !!Stock,
|
||||
});
|
||||
};
|
||||
if (imageFile) body.Image = imageFile;
|
||||
await locals.pb.collection(COLLECTION).update(id, body);
|
||||
} catch (e: unknown) {
|
||||
const message = e && typeof e === "object" && "message" in e ? String((e as { message: string }).message) : "Update failed";
|
||||
return fail(500, { error: message, form: "update" });
|
||||
|
||||
Reference in New Issue
Block a user