This commit is contained in:
@@ -10,17 +10,29 @@
|
|||||||
"_internal.js"
|
"_internal.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"_button.js": {
|
||||||
|
"file": "chunks/button.js",
|
||||||
|
"name": "button",
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_utils.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_card-content.js": {
|
||||||
|
"file": "chunks/card-content.js",
|
||||||
|
"name": "card-content",
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_utils.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
"_environment.js": {
|
"_environment.js": {
|
||||||
"file": "chunks/environment.js",
|
"file": "chunks/environment.js",
|
||||||
"name": "environment"
|
"name": "environment"
|
||||||
},
|
},
|
||||||
"_exports.js": {
|
"_exports.js": {
|
||||||
"file": "chunks/exports.js",
|
"file": "chunks/exports.js",
|
||||||
"name": "exports",
|
"name": "exports"
|
||||||
"imports": [
|
|
||||||
"_index.js",
|
|
||||||
"_root.js"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"_false.js": {
|
"_false.js": {
|
||||||
"file": "chunks/false.js",
|
"file": "chunks/false.js",
|
||||||
@@ -28,7 +40,17 @@
|
|||||||
},
|
},
|
||||||
"_index.js": {
|
"_index.js": {
|
||||||
"file": "chunks/index.js",
|
"file": "chunks/index.js",
|
||||||
"name": "index"
|
"name": "index",
|
||||||
|
"imports": [
|
||||||
|
"_index2.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_index2.js": {
|
||||||
|
"file": "chunks/index2.js",
|
||||||
|
"name": "index",
|
||||||
|
"imports": [
|
||||||
|
"_false.js"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"_internal.js": {
|
"_internal.js": {
|
||||||
"file": "chunks/internal.js",
|
"file": "chunks/internal.js",
|
||||||
@@ -45,15 +67,23 @@
|
|||||||
"file": "chunks/root.js",
|
"file": "chunks/root.js",
|
||||||
"name": "root",
|
"name": "root",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.js",
|
"_index2.js"
|
||||||
"_false.js"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_shared.js": {
|
"_shared.js": {
|
||||||
"file": "chunks/shared.js",
|
"file": "chunks/shared.js",
|
||||||
"name": "shared",
|
"name": "shared",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_utils.js"
|
"_utils2.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_state.svelte.js": {
|
||||||
|
"file": "chunks/state.svelte.js",
|
||||||
|
"name": "state.svelte",
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_exports.js",
|
||||||
|
"_root.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_utils.js": {
|
"_utils.js": {
|
||||||
@@ -81,10 +111,12 @@
|
|||||||
"src": "node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte",
|
"src": "node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.js",
|
"_index2.js",
|
||||||
|
"_state.svelte.js",
|
||||||
"_exports.js",
|
"_exports.js",
|
||||||
"_root.js",
|
"_utils2.js",
|
||||||
"_utils.js"
|
"_index.js",
|
||||||
|
"_root.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@sveltejs/kit/src/runtime/server/index.js": {
|
"node_modules/@sveltejs/kit/src/runtime/server/index.js": {
|
||||||
@@ -97,7 +129,8 @@
|
|||||||
"_environment.js",
|
"_environment.js",
|
||||||
"_shared.js",
|
"_shared.js",
|
||||||
"_exports.js",
|
"_exports.js",
|
||||||
"_utils.js",
|
"_utils2.js",
|
||||||
|
"_index.js",
|
||||||
"_internal.js"
|
"_internal.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -114,10 +147,10 @@
|
|||||||
"src": "src/routes/+layout.svelte",
|
"src": "src/routes/+layout.svelte",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.js"
|
"_index2.js"
|
||||||
],
|
],
|
||||||
"css": [
|
"css": [
|
||||||
"_app/immutable/assets/_layout.xzg7NZgL.css"
|
"_app/immutable/assets/_layout.CFU69MhF.css"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/routes/+layout.ts": {
|
"src/routes/+layout.ts": {
|
||||||
@@ -138,8 +171,18 @@
|
|||||||
"src": "src/routes/+page.svelte",
|
"src": "src/routes/+page.svelte",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.js",
|
"_button.js"
|
||||||
"_utils2.js"
|
]
|
||||||
|
},
|
||||||
|
"src/routes/accounts/+page.svelte": {
|
||||||
|
"file": "entries/pages/accounts/_page.svelte.js",
|
||||||
|
"name": "entries/pages/accounts/_page.svelte",
|
||||||
|
"src": "src/routes/accounts/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_button.js",
|
||||||
|
"_card-content.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/routes/items/+page.server.ts": {
|
"src/routes/items/+page.server.ts": {
|
||||||
@@ -154,8 +197,35 @@
|
|||||||
"src": "src/routes/items/+page.svelte",
|
"src": "src/routes/items/+page.svelte",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.js",
|
"_index2.js",
|
||||||
"_utils2.js"
|
"_exports.js",
|
||||||
|
"_utils2.js",
|
||||||
|
"_root.js",
|
||||||
|
"_state.svelte.js",
|
||||||
|
"_utils.js",
|
||||||
|
"_card-content.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src/routes/items/[id]/+page.server.ts": {
|
||||||
|
"file": "entries/pages/items/_id_/_page.server.ts.js",
|
||||||
|
"name": "entries/pages/items/_id_/_page.server.ts",
|
||||||
|
"src": "src/routes/items/[id]/+page.server.ts",
|
||||||
|
"isEntry": true
|
||||||
|
},
|
||||||
|
"src/routes/items/[id]/+page.svelte": {
|
||||||
|
"file": "entries/pages/items/_id_/_page.svelte.js",
|
||||||
|
"name": "entries/pages/items/_id_/_page.svelte",
|
||||||
|
"src": "src/routes/items/[id]/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_button.js",
|
||||||
|
"_card-content.js",
|
||||||
|
"_utils.js",
|
||||||
|
"_exports.js",
|
||||||
|
"_utils2.js",
|
||||||
|
"_root.js",
|
||||||
|
"_state.svelte.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/routes/login/+page.server.ts": {
|
"src/routes/login/+page.server.ts": {
|
||||||
@@ -175,5 +245,55 @@
|
|||||||
"name": "entries/pages/logout/_page.server.ts",
|
"name": "entries/pages/logout/_page.server.ts",
|
||||||
"src": "src/routes/logout/+page.server.ts",
|
"src": "src/routes/logout/+page.server.ts",
|
||||||
"isEntry": true
|
"isEntry": true
|
||||||
|
},
|
||||||
|
"src/routes/receipts/+page.server.ts": {
|
||||||
|
"file": "entries/pages/receipts/_page.server.ts.js",
|
||||||
|
"name": "entries/pages/receipts/_page.server.ts",
|
||||||
|
"src": "src/routes/receipts/+page.server.ts",
|
||||||
|
"isEntry": true
|
||||||
|
},
|
||||||
|
"src/routes/receipts/+page.svelte": {
|
||||||
|
"file": "entries/pages/receipts/_page.svelte.js",
|
||||||
|
"name": "entries/pages/receipts/_page.svelte",
|
||||||
|
"src": "src/routes/receipts/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_button.js",
|
||||||
|
"_card-content.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src/routes/receipts/[id]/+page.svelte": {
|
||||||
|
"file": "entries/pages/receipts/_id_/_page.svelte.js",
|
||||||
|
"name": "entries/pages/receipts/_id_/_page.svelte",
|
||||||
|
"src": "src/routes/receipts/[id]/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_button.js",
|
||||||
|
"_card-content.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src/routes/receipts/new/+page.svelte": {
|
||||||
|
"file": "entries/pages/receipts/new/_page.svelte.js",
|
||||||
|
"name": "entries/pages/receipts/new/_page.svelte",
|
||||||
|
"src": "src/routes/receipts/new/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_button.js",
|
||||||
|
"_card-content.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src/routes/transactions/+page.svelte": {
|
||||||
|
"file": "entries/pages/transactions/_page.svelte.js",
|
||||||
|
"name": "entries/pages/transactions/_page.svelte",
|
||||||
|
"src": "src/routes/transactions/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_index2.js",
|
||||||
|
"_button.js",
|
||||||
|
"_card-content.js"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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,72 @@
|
|||||||
|
import { d as attributes, f as clsx, g as bind_props } from "./index2.js";
|
||||||
|
import { c as cn } from "./utils.js";
|
||||||
|
import { tv } from "tailwind-variants";
|
||||||
|
const buttonVariants = tv({
|
||||||
|
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 shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
||||||
|
variants: {
|
||||||
|
variant: {
|
||||||
|
default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
|
||||||
|
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
|
||||||
|
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
||||||
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
|
||||||
|
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
||||||
|
link: "text-primary underline-offset-4 hover:underline"
|
||||||
|
},
|
||||||
|
size: {
|
||||||
|
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
||||||
|
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
||||||
|
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
||||||
|
icon: "size-9",
|
||||||
|
"icon-sm": "size-8",
|
||||||
|
"icon-lg": "size-10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
defaultVariants: { variant: "default", size: "default" }
|
||||||
|
});
|
||||||
|
function Button($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let {
|
||||||
|
class: className,
|
||||||
|
variant = "default",
|
||||||
|
size = "default",
|
||||||
|
ref = null,
|
||||||
|
href = void 0,
|
||||||
|
type = "button",
|
||||||
|
disabled,
|
||||||
|
children,
|
||||||
|
$$slots,
|
||||||
|
$$events,
|
||||||
|
...restProps
|
||||||
|
} = $$props;
|
||||||
|
if (href) {
|
||||||
|
$$renderer2.push("<!--[-->");
|
||||||
|
$$renderer2.push(`<a${attributes({
|
||||||
|
"data-slot": "button",
|
||||||
|
class: clsx(cn(buttonVariants({ variant, size }), className)),
|
||||||
|
href: disabled ? void 0 : href,
|
||||||
|
"aria-disabled": disabled,
|
||||||
|
role: disabled ? "link" : void 0,
|
||||||
|
tabindex: disabled ? -1 : void 0,
|
||||||
|
...restProps
|
||||||
|
})}>`);
|
||||||
|
children?.($$renderer2);
|
||||||
|
$$renderer2.push(`<!----></a>`);
|
||||||
|
} else {
|
||||||
|
$$renderer2.push("<!--[!-->");
|
||||||
|
$$renderer2.push(`<button${attributes({
|
||||||
|
"data-slot": "button",
|
||||||
|
class: clsx(cn(buttonVariants({ variant, size }), className)),
|
||||||
|
type,
|
||||||
|
disabled,
|
||||||
|
...restProps
|
||||||
|
})}>`);
|
||||||
|
children?.($$renderer2);
|
||||||
|
$$renderer2.push(`<!----></button>`);
|
||||||
|
}
|
||||||
|
$$renderer2.push(`<!--]-->`);
|
||||||
|
bind_props($$props, { ref });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
Button as B
|
||||||
|
};
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
import { d as attributes, f as clsx, g as bind_props } from "./index2.js";
|
||||||
|
import { c as cn } from "./utils.js";
|
||||||
|
function Card($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let {
|
||||||
|
ref = null,
|
||||||
|
class: className,
|
||||||
|
children,
|
||||||
|
$$slots,
|
||||||
|
$$events,
|
||||||
|
...restProps
|
||||||
|
} = $$props;
|
||||||
|
$$renderer2.push(`<div${attributes({
|
||||||
|
"data-slot": "card",
|
||||||
|
class: clsx(cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className)),
|
||||||
|
...restProps
|
||||||
|
})}>`);
|
||||||
|
children?.($$renderer2);
|
||||||
|
$$renderer2.push(`<!----></div>`);
|
||||||
|
bind_props($$props, { ref });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function Card_content($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let {
|
||||||
|
ref = null,
|
||||||
|
class: className,
|
||||||
|
children,
|
||||||
|
$$slots,
|
||||||
|
$$events,
|
||||||
|
...restProps
|
||||||
|
} = $$props;
|
||||||
|
$$renderer2.push(`<div${attributes({
|
||||||
|
"data-slot": "card-content",
|
||||||
|
class: clsx(cn("px-6", className)),
|
||||||
|
...restProps
|
||||||
|
})}>`);
|
||||||
|
children?.($$renderer2);
|
||||||
|
$$renderer2.push(`<!----></div>`);
|
||||||
|
bind_props($$props, { ref });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
Card as C,
|
||||||
|
Card_content as a
|
||||||
|
};
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
import { n as noop } from "./index.js";
|
|
||||||
import { s as safe_not_equal } from "./root.js";
|
|
||||||
import "clsx";
|
|
||||||
const SCHEME = /^[a-z][a-z\d+\-.]+:/i;
|
const SCHEME = /^[a-z][a-z\d+\-.]+:/i;
|
||||||
const internal = new URL("sveltekit-internal://");
|
const internal = new URL("sveltekit-internal://");
|
||||||
function resolve(base, path) {
|
function resolve(base, path) {
|
||||||
@@ -98,59 +95,6 @@ function allow_nodejs_console_log(url) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const subscriber_queue = [];
|
|
||||||
function readable(value, start) {
|
|
||||||
return {
|
|
||||||
subscribe: writable(value, start).subscribe
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function writable(value, start = noop) {
|
|
||||||
let stop = null;
|
|
||||||
const subscribers = /* @__PURE__ */ new Set();
|
|
||||||
function set(new_value) {
|
|
||||||
if (safe_not_equal(value, new_value)) {
|
|
||||||
value = new_value;
|
|
||||||
if (stop) {
|
|
||||||
const run_queue = !subscriber_queue.length;
|
|
||||||
for (const subscriber of subscribers) {
|
|
||||||
subscriber[1]();
|
|
||||||
subscriber_queue.push(subscriber, value);
|
|
||||||
}
|
|
||||||
if (run_queue) {
|
|
||||||
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
|
||||||
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
||||||
}
|
|
||||||
subscriber_queue.length = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function update(fn) {
|
|
||||||
set(fn(
|
|
||||||
/** @type {T} */
|
|
||||||
value
|
|
||||||
));
|
|
||||||
}
|
|
||||||
function subscribe(run, invalidate = noop) {
|
|
||||||
const subscriber = [run, invalidate];
|
|
||||||
subscribers.add(subscriber);
|
|
||||||
if (subscribers.size === 1) {
|
|
||||||
stop = start(set, update) || noop;
|
|
||||||
}
|
|
||||||
run(
|
|
||||||
/** @type {T} */
|
|
||||||
value
|
|
||||||
);
|
|
||||||
return () => {
|
|
||||||
subscribers.delete(subscriber);
|
|
||||||
if (subscribers.size === 0 && stop) {
|
|
||||||
stop();
|
|
||||||
stop = null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return { set, update, subscribe };
|
|
||||||
}
|
|
||||||
function validator(expected) {
|
function validator(expected) {
|
||||||
function validate(module, file) {
|
function validate(module, file) {
|
||||||
if (!module) return;
|
if (!module) return;
|
||||||
@@ -221,12 +165,10 @@ export {
|
|||||||
validate_page_server_exports as c,
|
validate_page_server_exports as c,
|
||||||
disable_search as d,
|
disable_search as d,
|
||||||
validate_page_exports as e,
|
validate_page_exports as e,
|
||||||
resolve as f,
|
decode_pathname as f,
|
||||||
decode_pathname as g,
|
validate_server_exports as g,
|
||||||
validate_server_exports as h,
|
|
||||||
make_trackable as m,
|
make_trackable as m,
|
||||||
normalize_path as n,
|
normalize_path as n,
|
||||||
readable as r,
|
resolve as r,
|
||||||
validate_layout_server_exports as v,
|
validate_layout_server_exports as v
|
||||||
writable as w
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const DEV = false;
|
const browser = false;
|
||||||
export {
|
export {
|
||||||
DEV as D
|
browser as b
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,19 @@ const options = {
|
|||||||
service_worker: false,
|
service_worker: false,
|
||||||
service_worker_options: void 0,
|
service_worker_options: void 0,
|
||||||
templates: {
|
templates: {
|
||||||
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",
|
app: ({ head, body, assets, nonce, env }) => `<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='4' fill='%231e293b'/><text x='16' y='22' font-size='18' font-family='system-ui' fill='%2394a3b8' text-anchor='middle'>S</text></svg>" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover" />
|
||||||
|
<meta name="theme-color" content="#0f172a" />
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Stackq" />
|
||||||
|
<link rel="apple-touch-icon" href="/icon.svg" />
|
||||||
|
<link rel="manifest" href="/manifest.webmanifest" />
|
||||||
|
` + 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 <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -101,7 +113,7 @@ const options = {
|
|||||||
<div class="error">
|
<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"
|
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
||||||
},
|
},
|
||||||
version_hash: "1cw4viz"
|
version_hash: "1lkqwc1"
|
||||||
};
|
};
|
||||||
async function get_hooks() {
|
async function get_hooks() {
|
||||||
let handle;
|
let handle;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@ import { json, text } from "@sveltejs/kit";
|
|||||||
import { SvelteKitError, HttpError } from "@sveltejs/kit/internal";
|
import { SvelteKitError, HttpError } from "@sveltejs/kit/internal";
|
||||||
import { with_request_store } from "@sveltejs/kit/internal/server";
|
import { with_request_store } from "@sveltejs/kit/internal/server";
|
||||||
import * as devalue from "devalue";
|
import * as devalue from "devalue";
|
||||||
import { t as text_decoder, b as base64_encode, a as base64_decode } from "./utils.js";
|
import { t as text_decoder, b as base64_encode, a as base64_decode } from "./utils2.js";
|
||||||
const SVELTE_KIT_ASSETS = "/_svelte_kit_assets";
|
const SVELTE_KIT_ASSETS = "/_svelte_kit_assets";
|
||||||
const ENDPOINT_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"];
|
const ENDPOINT_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"];
|
||||||
const PAGE_METHODS = ["GET", "POST", "HEAD"];
|
const PAGE_METHODS = ["GET", "POST", "HEAD"];
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import "clsx";
|
||||||
|
import { n as noop } from "./index2.js";
|
||||||
|
import "./exports.js";
|
||||||
|
import "@sveltejs/kit/internal/server";
|
||||||
|
import "./root.js";
|
||||||
|
const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
||||||
|
if (is_legacy) {
|
||||||
|
({
|
||||||
|
data: {},
|
||||||
|
form: null,
|
||||||
|
error: null,
|
||||||
|
params: {},
|
||||||
|
route: { id: null },
|
||||||
|
state: {},
|
||||||
|
status: -1,
|
||||||
|
url: new URL("https://example.com")
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -1,43 +1,8 @@
|
|||||||
const text_encoder = new TextEncoder();
|
import { clsx } from "clsx";
|
||||||
const text_decoder = new TextDecoder();
|
import { twMerge } from "tailwind-merge";
|
||||||
function get_relative_path(from, to) {
|
function cn(...inputs) {
|
||||||
const from_parts = from.split(/[/\\]/);
|
return twMerge(clsx(inputs));
|
||||||
const to_parts = to.split(/[/\\]/);
|
|
||||||
from_parts.pop();
|
|
||||||
while (from_parts[0] === to_parts[0]) {
|
|
||||||
from_parts.shift();
|
|
||||||
to_parts.shift();
|
|
||||||
}
|
|
||||||
let i = from_parts.length;
|
|
||||||
while (i--) from_parts[i] = "..";
|
|
||||||
return from_parts.concat(to_parts).join("/");
|
|
||||||
}
|
|
||||||
function base64_encode(bytes) {
|
|
||||||
if (globalThis.Buffer) {
|
|
||||||
return globalThis.Buffer.from(bytes).toString("base64");
|
|
||||||
}
|
|
||||||
let binary = "";
|
|
||||||
for (let i = 0; i < bytes.length; i++) {
|
|
||||||
binary += String.fromCharCode(bytes[i]);
|
|
||||||
}
|
|
||||||
return btoa(binary);
|
|
||||||
}
|
|
||||||
function base64_decode(encoded) {
|
|
||||||
if (globalThis.Buffer) {
|
|
||||||
const buffer = globalThis.Buffer.from(encoded, "base64");
|
|
||||||
return new Uint8Array(buffer);
|
|
||||||
}
|
|
||||||
const binary = atob(encoded);
|
|
||||||
const bytes = new Uint8Array(binary.length);
|
|
||||||
for (let i = 0; i < binary.length; i++) {
|
|
||||||
bytes[i] = binary.charCodeAt(i);
|
|
||||||
}
|
|
||||||
return bytes;
|
|
||||||
}
|
}
|
||||||
export {
|
export {
|
||||||
base64_decode as a,
|
cn as c
|
||||||
base64_encode as b,
|
|
||||||
text_encoder as c,
|
|
||||||
get_relative_path as g,
|
|
||||||
text_decoder as t
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,43 @@
|
|||||||
import { clsx } from "clsx";
|
const text_encoder = new TextEncoder();
|
||||||
import { twMerge } from "tailwind-merge";
|
const text_decoder = new TextDecoder();
|
||||||
function cn(...inputs) {
|
function get_relative_path(from, to) {
|
||||||
return twMerge(clsx(inputs));
|
const from_parts = from.split(/[/\\]/);
|
||||||
|
const to_parts = to.split(/[/\\]/);
|
||||||
|
from_parts.pop();
|
||||||
|
while (from_parts[0] === to_parts[0]) {
|
||||||
|
from_parts.shift();
|
||||||
|
to_parts.shift();
|
||||||
|
}
|
||||||
|
let i = from_parts.length;
|
||||||
|
while (i--) from_parts[i] = "..";
|
||||||
|
return from_parts.concat(to_parts).join("/");
|
||||||
|
}
|
||||||
|
function base64_encode(bytes) {
|
||||||
|
if (globalThis.Buffer) {
|
||||||
|
return globalThis.Buffer.from(bytes).toString("base64");
|
||||||
|
}
|
||||||
|
let binary = "";
|
||||||
|
for (let i = 0; i < bytes.length; i++) {
|
||||||
|
binary += String.fromCharCode(bytes[i]);
|
||||||
|
}
|
||||||
|
return btoa(binary);
|
||||||
|
}
|
||||||
|
function base64_decode(encoded) {
|
||||||
|
if (globalThis.Buffer) {
|
||||||
|
const buffer = globalThis.Buffer.from(encoded, "base64");
|
||||||
|
return new Uint8Array(buffer);
|
||||||
|
}
|
||||||
|
const binary = atob(encoded);
|
||||||
|
const bytes = new Uint8Array(binary.length);
|
||||||
|
for (let i = 0; i < binary.length; i++) {
|
||||||
|
bytes[i] = binary.charCodeAt(i);
|
||||||
|
}
|
||||||
|
return bytes;
|
||||||
}
|
}
|
||||||
export {
|
export {
|
||||||
cn as c
|
base64_decode as a,
|
||||||
|
base64_encode as b,
|
||||||
|
text_encoder as c,
|
||||||
|
get_relative_path as g,
|
||||||
|
text_decoder as t
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import { n as noop, g as getContext, e as escape_html } from "../../chunks/index.js";
|
import { j as getContext, c as escape_html } from "../../chunks/index2.js";
|
||||||
import "clsx";
|
import "clsx";
|
||||||
import { w as writable } from "../../chunks/exports.js";
|
import "../../chunks/state.svelte.js";
|
||||||
|
import "@sveltejs/kit/internal";
|
||||||
|
import "../../chunks/exports.js";
|
||||||
|
import "../../chunks/utils2.js";
|
||||||
|
import { w as writable } from "../../chunks/index.js";
|
||||||
import "@sveltejs/kit/internal/server";
|
import "@sveltejs/kit/internal/server";
|
||||||
import "../../chunks/root.js";
|
import "../../chunks/root.js";
|
||||||
import "@sveltejs/kit/internal";
|
|
||||||
import "../../chunks/utils.js";
|
|
||||||
function create_updated_store() {
|
function create_updated_store() {
|
||||||
const { set, subscribe } = writable(false);
|
const { set, subscribe } = writable(false);
|
||||||
{
|
{
|
||||||
@@ -15,19 +17,6 @@ function create_updated_store() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
||||||
if (is_legacy) {
|
|
||||||
({
|
|
||||||
data: {},
|
|
||||||
form: null,
|
|
||||||
error: null,
|
|
||||||
params: {},
|
|
||||||
route: { id: null },
|
|
||||||
state: {},
|
|
||||||
status: -1,
|
|
||||||
url: new URL("https://example.com")
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const stores = {
|
const stores = {
|
||||||
updated: /* @__PURE__ */ create_updated_store()
|
updated: /* @__PURE__ */ create_updated_store()
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import { s as slot } from "../../chunks/index.js";
|
import { i as slot } from "../../chunks/index2.js";
|
||||||
function _layout($$renderer, $$props) {
|
function _layout($$renderer, $$props) {
|
||||||
$$renderer.push(`<!--[-->`);
|
$$renderer.component(($$renderer2) => {
|
||||||
slot($$renderer, $$props, "default", {});
|
$$renderer2.push(`<div class="app-shell"><!--[-->`);
|
||||||
$$renderer.push(`<!--]-->`);
|
slot($$renderer2, $$props, "default", {});
|
||||||
|
$$renderer2.push(`<!--]--></div>`);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
export {
|
export {
|
||||||
_layout as default
|
_layout as default
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ const COLLECTION = "Stackq_Items";
|
|||||||
const load = async ({ locals }) => {
|
const load = async ({ locals }) => {
|
||||||
const list = await locals.pb.collection(COLLECTION).getFullList({ sort: "-created", expand: "Parent" }).catch(() => []);
|
const list = await locals.pb.collection(COLLECTION).getFullList({ sort: "-created", expand: "Parent" }).catch(() => []);
|
||||||
const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU }));
|
const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU }));
|
||||||
return { itemsForParent };
|
return { items: list, itemsForParent };
|
||||||
};
|
};
|
||||||
export {
|
export {
|
||||||
load
|
load
|
||||||
|
|||||||
@@ -1,96 +1,65 @@
|
|||||||
import "clsx";
|
import "clsx";
|
||||||
import { a as attributes, c as clsx, b as bind_props } from "../../chunks/index.js";
|
import { B as Button } from "../../chunks/button.js";
|
||||||
import { c as cn } from "../../chunks/utils2.js";
|
function _page($$renderer, $$props) {
|
||||||
import { tv } from "tailwind-variants";
|
let { data } = $$props;
|
||||||
const buttonVariants = tv({
|
|
||||||
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 shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
||||||
variants: {
|
|
||||||
variant: {
|
|
||||||
default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
|
|
||||||
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
|
|
||||||
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
|
||||||
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
|
|
||||||
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
||||||
link: "text-primary underline-offset-4 hover:underline"
|
|
||||||
},
|
|
||||||
size: {
|
|
||||||
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
||||||
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
|
||||||
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
||||||
icon: "size-9",
|
|
||||||
"icon-sm": "size-8",
|
|
||||||
"icon-lg": "size-10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
defaultVariants: { variant: "default", size: "default" }
|
|
||||||
});
|
|
||||||
function Button($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
class: className,
|
|
||||||
variant = "default",
|
|
||||||
size = "default",
|
|
||||||
ref = null,
|
|
||||||
href = void 0,
|
|
||||||
type = "button",
|
|
||||||
disabled,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
if (href) {
|
|
||||||
$$renderer2.push("<!--[-->");
|
|
||||||
$$renderer2.push(`<a${attributes({
|
|
||||||
"data-slot": "button",
|
|
||||||
class: clsx(cn(buttonVariants({ variant, size }), className)),
|
|
||||||
href: disabled ? void 0 : href,
|
|
||||||
"aria-disabled": disabled,
|
|
||||||
role: disabled ? "link" : void 0,
|
|
||||||
tabindex: disabled ? -1 : void 0,
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></a>`);
|
|
||||||
} else {
|
|
||||||
$$renderer2.push("<!--[!-->");
|
|
||||||
$$renderer2.push(`<button${attributes({
|
|
||||||
"data-slot": "button",
|
|
||||||
class: clsx(cn(buttonVariants({ variant, size }), className)),
|
|
||||||
type,
|
|
||||||
disabled,
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></button>`);
|
|
||||||
}
|
|
||||||
$$renderer2.push(`<!--]-->`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function _page($$renderer) {
|
|
||||||
{
|
{
|
||||||
$$renderer.push("<!--[!-->");
|
$$renderer.push("<!--[!-->");
|
||||||
$$renderer.push(`<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-8"><h1 class="text-2xl font-semibold">Stackq</h1> <p class="text-muted-foreground">Svelte 5 + shadcn-svelte + PocketBase</p> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block">`);
|
$$renderer.push(`<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-6 sm:p-8"><h1 class="text-2xl font-semibold">Stackq</h1> <div class="flex w-full max-w-xs flex-col gap-3"><a href="/items" class="block">`);
|
||||||
Button($$renderer, {
|
Button($$renderer, {
|
||||||
class: "w-full",
|
class: "h-12 w-full min-h-12",
|
||||||
children: ($$renderer2) => {
|
children: ($$renderer2) => {
|
||||||
$$renderer2.push(`<!---->Items table`);
|
$$renderer2.push(`<!---->Scan`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></a> <a href="/transactions" class="block">`);
|
||||||
|
Button($$renderer, {
|
||||||
|
class: "h-12 min-h-12 w-full",
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
$$renderer2.push(`<!---->New Transaction`);
|
||||||
},
|
},
|
||||||
$$slots: { default: true }
|
$$slots: { default: true }
|
||||||
});
|
});
|
||||||
$$renderer.push(`<!----></a> <a href="/items" class="block">`);
|
$$renderer.push(`<!----></a> <a href="/items" class="block">`);
|
||||||
Button($$renderer, {
|
Button($$renderer, {
|
||||||
class: "w-full",
|
class: "h-12 min-h-12 w-full",
|
||||||
variant: "outline",
|
variant: "outline",
|
||||||
children: ($$renderer2) => {
|
children: ($$renderer2) => {
|
||||||
$$renderer2.push(`<!---->New item`);
|
$$renderer2.push(`<!---->New Item`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></a></div> <div class="text-muted-foreground w-full max-w-xs border-t pt-4 text-center text-sm">Go to</div> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block">`);
|
||||||
|
Button($$renderer, {
|
||||||
|
class: "h-12 min-h-12 w-full",
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
$$renderer2.push(`<!---->Items`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></a> <a href="/transactions" class="block">`);
|
||||||
|
Button($$renderer, {
|
||||||
|
class: "h-12 min-h-12 w-full",
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
$$renderer2.push(`<!---->Transactions`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></a> <a href="/accounts" class="block">`);
|
||||||
|
Button($$renderer, {
|
||||||
|
class: "h-12 min-h-12 w-full",
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
$$renderer2.push(`<!---->Accounts`);
|
||||||
},
|
},
|
||||||
$$slots: { default: true }
|
$$slots: { default: true }
|
||||||
});
|
});
|
||||||
$$renderer.push(`<!----></a> <a href="/logout" class="block">`);
|
$$renderer.push(`<!----></a> <a href="/logout" class="block">`);
|
||||||
Button($$renderer, {
|
Button($$renderer, {
|
||||||
class: "w-full",
|
class: "h-12 min-h-12 w-full",
|
||||||
variant: "outline",
|
variant: "outline",
|
||||||
children: ($$renderer2) => {
|
children: ($$renderer2) => {
|
||||||
$$renderer2.push(`<!---->Log out`);
|
$$renderer2.push(`<!---->Log out`);
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import { h as head } from "../../../chunks/index2.js";
|
||||||
|
import { B as Button } from "../../../chunks/button.js";
|
||||||
|
import { C as Card, a as Card_content } from "../../../chunks/card-content.js";
|
||||||
|
import "clsx";
|
||||||
|
function _page($$renderer) {
|
||||||
|
head("11yx1mx", $$renderer, ($$renderer2) => {
|
||||||
|
$$renderer2.title(($$renderer3) => {
|
||||||
|
$$renderer3.push(`<title>Accounts – Stackq</title>`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$$renderer.push(`<main class="container mx-auto flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8"><div class="flex items-center gap-3"><a href="/" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to main">Back</a> <h1 class="text-xl font-semibold sm:text-2xl">Accounts</h1></div> `);
|
||||||
|
Card($$renderer, {
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
Card_content($$renderer2, {
|
||||||
|
class: "flex flex-col items-center justify-center gap-4 py-12",
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
$$renderer3.push(`<p class="text-muted-foreground text-center text-sm">No accounts yet.</p> <p class="text-muted-foreground text-center text-xs">Accounts will appear here once this feature is available.</p> <a href="/">`);
|
||||||
|
Button($$renderer3, {
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<!---->Back to home`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer3.push(`<!----></a>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></main>`);
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
_page as default
|
||||||
|
};
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
import { fail, redirect, error } from "@sveltejs/kit";
|
||||||
|
const COLLECTION = "Stackq_Items";
|
||||||
|
function parseNum(val) {
|
||||||
|
if (val === "" || val === null || val === void 0) return void 0;
|
||||||
|
const n = Number(val);
|
||||||
|
return Number.isFinite(n) ? n : void 0;
|
||||||
|
}
|
||||||
|
function parseBool(val) {
|
||||||
|
return val === "on" || val === "true" || val === true;
|
||||||
|
}
|
||||||
|
const load = async ({ params, locals }) => {
|
||||||
|
const id = params.id;
|
||||||
|
if (!id) throw error(404, "Item not found");
|
||||||
|
try {
|
||||||
|
const item = await locals.pb.collection(COLLECTION).getOne(id, { expand: "Parent" });
|
||||||
|
const list = await locals.pb.collection(COLLECTION).getFullList({ sort: "-created", expand: "Parent" }).catch(() => []);
|
||||||
|
const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU }));
|
||||||
|
return { item, itemsForParent };
|
||||||
|
} catch {
|
||||||
|
throw error(404, "Item not found");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const actions = {
|
||||||
|
update: async ({ request, locals, params }) => {
|
||||||
|
const id = params.id;
|
||||||
|
if (!id) return fail(400, { error: "Missing id", form: "update" });
|
||||||
|
const form = await request.formData();
|
||||||
|
const Item = form.get("Item")?.trim() ?? "";
|
||||||
|
const SKU = form.get("SKU")?.trim() ?? "";
|
||||||
|
const Description = form.get("Description")?.trim() ?? "";
|
||||||
|
const UOM = form.get("UOM")?.trim() ?? "";
|
||||||
|
const Cost = parseNum(form.get("Cost"));
|
||||||
|
const Vendor = form.get("Vendor")?.trim() ?? "";
|
||||||
|
const Catagory = form.get("Catagory")?.trim() ?? "";
|
||||||
|
const Sub_Catagory = form.get("Sub_Catagory")?.trim() ?? "";
|
||||||
|
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 {
|
||||||
|
const body = {
|
||||||
|
Item,
|
||||||
|
SKU,
|
||||||
|
Description,
|
||||||
|
UOM: UOM || void 0,
|
||||||
|
Cost: Cost ?? 0,
|
||||||
|
Vendor,
|
||||||
|
Catagory: Catagory || void 0,
|
||||||
|
Sub_Catagory: Sub_Catagory || void 0,
|
||||||
|
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" });
|
||||||
|
}
|
||||||
|
return { success: true };
|
||||||
|
},
|
||||||
|
delete: async ({ locals, params }) => {
|
||||||
|
const id = params.id;
|
||||||
|
if (!id) return fail(400, { error: "Missing id", form: "delete" });
|
||||||
|
try {
|
||||||
|
await locals.pb.collection(COLLECTION).delete(id);
|
||||||
|
} catch (e) {
|
||||||
|
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Delete failed";
|
||||||
|
return fail(500, { error: message, form: "delete" });
|
||||||
|
}
|
||||||
|
throw redirect(303, "/items");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
actions,
|
||||||
|
load
|
||||||
|
};
|
||||||
@@ -0,0 +1,168 @@
|
|||||||
|
import { d as attributes, f as clsx, g as bind_props, h as head, c as escape_html, a as attr, e as ensure_array_like, b as stringify } from "../../../../chunks/index2.js";
|
||||||
|
import "../../../../chunks/button.js";
|
||||||
|
import { C as Card, a as Card_content } from "../../../../chunks/card-content.js";
|
||||||
|
import "clsx";
|
||||||
|
import { c as cn } from "../../../../chunks/utils.js";
|
||||||
|
import "@sveltejs/kit/internal";
|
||||||
|
import "../../../../chunks/exports.js";
|
||||||
|
import "../../../../chunks/utils2.js";
|
||||||
|
import "@sveltejs/kit/internal/server";
|
||||||
|
import "../../../../chunks/root.js";
|
||||||
|
import "../../../../chunks/state.svelte.js";
|
||||||
|
import PocketBase from "pocketbase";
|
||||||
|
function Card_header($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let {
|
||||||
|
ref = null,
|
||||||
|
class: className,
|
||||||
|
children,
|
||||||
|
$$slots,
|
||||||
|
$$events,
|
||||||
|
...restProps
|
||||||
|
} = $$props;
|
||||||
|
$$renderer2.push(`<div${attributes({
|
||||||
|
"data-slot": "card-header",
|
||||||
|
class: clsx(cn("@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", className)),
|
||||||
|
...restProps
|
||||||
|
})}>`);
|
||||||
|
children?.($$renderer2);
|
||||||
|
$$renderer2.push(`<!----></div>`);
|
||||||
|
bind_props($$props, { ref });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const POCKETBASE_URL = "https://pocketbase.ccllc.pro";
|
||||||
|
const POCKETBASE_BASE_URL = POCKETBASE_URL;
|
||||||
|
let _pb = null;
|
||||||
|
function getPb() {
|
||||||
|
if (typeof window === "undefined") {
|
||||||
|
throw new Error("PocketBase client is only available in the browser. Use load/actions for server data.");
|
||||||
|
}
|
||||||
|
if (!_pb) _pb = new PocketBase(POCKETBASE_URL);
|
||||||
|
return _pb;
|
||||||
|
}
|
||||||
|
new Proxy({}, {
|
||||||
|
get(_, prop) {
|
||||||
|
if (prop === "baseUrl") return POCKETBASE_BASE_URL;
|
||||||
|
return getPb()[prop];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function _page($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let { data } = $$props;
|
||||||
|
const item = data?.item;
|
||||||
|
data?.itemsForParent ?? [];
|
||||||
|
const PB_BASE = "https://pocketbase.ccllc.pro";
|
||||||
|
const COLLECTION = "Stackq_Items";
|
||||||
|
function imageUrl(i) {
|
||||||
|
if (!i?.Image) return null;
|
||||||
|
return `${PB_BASE}/api/files/${COLLECTION}/${i.id}/${i.Image}`;
|
||||||
|
}
|
||||||
|
function asList(val) {
|
||||||
|
if (val == null) return [];
|
||||||
|
return Array.isArray(val) ? val : [val];
|
||||||
|
}
|
||||||
|
function formatDate(iso) {
|
||||||
|
if (!iso) return "—";
|
||||||
|
try {
|
||||||
|
return new Date(iso).toLocaleDateString(void 0, { dateStyle: "short", timeStyle: "short" });
|
||||||
|
} catch {
|
||||||
|
return iso;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data?.form === "update" ? data?.error ?? null : null;
|
||||||
|
let $$settled = true;
|
||||||
|
let $$inner_renderer;
|
||||||
|
function $$render_inner($$renderer3) {
|
||||||
|
head("1r2vy7b", $$renderer3, ($$renderer4) => {
|
||||||
|
$$renderer4.title(($$renderer5) => {
|
||||||
|
$$renderer5.push(`<title>${escape_html(item?.Item ?? "Item")} – Stackq</title>`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
if (item) {
|
||||||
|
$$renderer3.push("<!--[-->");
|
||||||
|
$$renderer3.push(`<main class="container mx-auto flex flex-col gap-4 px-4 py-6 sm:gap-6 sm:px-6 sm:py-8"><div class="flex flex-wrap items-center gap-2 sm:gap-4 min-w-0"><a href="/" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to main">Home</a> <a href="/items" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to items">Back to items</a> <h1 class="text-xl font-semibold truncate min-w-0 flex-1 sm:text-2xl">${escape_html(item.Item ?? "—")}</h1> `);
|
||||||
|
{
|
||||||
|
$$renderer3.push("<!--[!-->");
|
||||||
|
}
|
||||||
|
$$renderer3.push(`<!--]--></div> <div class="grid gap-6 md:grid-cols-2">`);
|
||||||
|
Card($$renderer3, {
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
Card_header($$renderer4, {
|
||||||
|
children: ($$renderer5) => {
|
||||||
|
$$renderer5.push(`<h2 class="text-lg font-medium">Details</h2>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer4.push(`<!----> `);
|
||||||
|
Card_content($$renderer4, {
|
||||||
|
class: "space-y-4",
|
||||||
|
children: ($$renderer5) => {
|
||||||
|
if (imageUrl(item)) {
|
||||||
|
$$renderer5.push("<!--[-->");
|
||||||
|
$$renderer5.push(`<div><a${attr("href", imageUrl(item))} target="_blank" rel="noopener noreferrer" class="block overflow-hidden rounded-lg border"><img${attr("src", imageUrl(item))} alt="" class="max-h-64 w-full object-contain"/></a></div>`);
|
||||||
|
} else {
|
||||||
|
$$renderer5.push("<!--[!-->");
|
||||||
|
}
|
||||||
|
$$renderer5.push(`<!--]--> <dl class="grid gap-2 text-sm"><div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">SKU</dt> <dd class="font-mono">${escape_html(item.SKU ?? "—")}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Description</dt> <dd>${escape_html(item.Description ?? "—")}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">UOM</dt> <dd>${escape_html(item.UOM ?? "—")}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Cost</dt> <dd>${escape_html(item.Cost != null ? Number(item.Cost).toLocaleString() : "—")}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Vendor</dt> <dd>${escape_html(item.Vendor ?? "—")}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Category</dt> <dd><!--[-->`);
|
||||||
|
const each_array = ensure_array_like(asList(item.Catagory));
|
||||||
|
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
||||||
|
let cat = each_array[$$index];
|
||||||
|
$$renderer5.push(`<span class="mr-1 rounded bg-muted px-1.5 py-0.5 text-xs">${escape_html(cat)}</span>`);
|
||||||
|
}
|
||||||
|
$$renderer5.push(`<!--]--> `);
|
||||||
|
if (asList(item.Catagory).length === 0) {
|
||||||
|
$$renderer5.push("<!--[-->");
|
||||||
|
$$renderer5.push(`—`);
|
||||||
|
} else {
|
||||||
|
$$renderer5.push("<!--[!-->");
|
||||||
|
}
|
||||||
|
$$renderer5.push(`<!--]--></dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Sub-category</dt> <dd><!--[-->`);
|
||||||
|
const each_array_1 = ensure_array_like(asList(item.Sub_Catagory));
|
||||||
|
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
||||||
|
let sub = each_array_1[$$index_1];
|
||||||
|
$$renderer5.push(`<span class="mr-1 rounded border px-1.5 py-0.5 text-xs">${escape_html(sub)}</span>`);
|
||||||
|
}
|
||||||
|
$$renderer5.push(`<!--]--> `);
|
||||||
|
if (asList(item.Sub_Catagory).length === 0) {
|
||||||
|
$$renderer5.push("<!--[-->");
|
||||||
|
$$renderer5.push(`—`);
|
||||||
|
} else {
|
||||||
|
$$renderer5.push("<!--[!-->");
|
||||||
|
}
|
||||||
|
$$renderer5.push(`<!--]--></dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Has Parent</dt> <dd>${escape_html(item.Has_Parent ? "Yes" : "No")}</dd></div> `);
|
||||||
|
if (item.Has_Parent && item.expand?.Parent) {
|
||||||
|
$$renderer5.push("<!--[-->");
|
||||||
|
$$renderer5.push(`<div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Parent</dt> <dd><a${attr("href", `/items/${stringify(item.Parent)}`)} class="text-primary hover:underline">${escape_html(item.expand.Parent.Item ?? item.expand.Parent.SKU ?? item.Parent)}</a></dd></div>`);
|
||||||
|
} else {
|
||||||
|
$$renderer5.push("<!--[!-->");
|
||||||
|
}
|
||||||
|
$$renderer5.push(`<!--]--> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Stock</dt> <dd>${escape_html(item.Stock ? "Yes" : "No")}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Created</dt> <dd>${escape_html(formatDate(item.created))}</dd></div> <div class="flex gap-2"><dt class="text-muted-foreground w-24 shrink-0">Updated</dt> <dd>${escape_html(formatDate(item.updated))}</dd></div></dl>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer4.push(`<!---->`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer3.push(`<!----></div></main> `);
|
||||||
|
{
|
||||||
|
$$renderer3.push("<!--[!-->");
|
||||||
|
}
|
||||||
|
$$renderer3.push(`<!--]-->`);
|
||||||
|
} else {
|
||||||
|
$$renderer3.push("<!--[!-->");
|
||||||
|
$$renderer3.push(`<main class="container mx-auto py-8"><p class="text-muted-foreground">Item not found.</p></main>`);
|
||||||
|
}
|
||||||
|
$$renderer3.push(`<!--]-->`);
|
||||||
|
}
|
||||||
|
do {
|
||||||
|
$$settled = true;
|
||||||
|
$$inner_renderer = $$renderer2.copy();
|
||||||
|
$$render_inner($$inner_renderer);
|
||||||
|
} while (!$$settled);
|
||||||
|
$$renderer2.subsume($$inner_renderer);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
_page as default
|
||||||
|
};
|
||||||
@@ -1,127 +1,35 @@
|
|||||||
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 { j as getContext, k as element, g as bind_props, d as attributes, f as clsx, l as store_get, h as head, c as escape_html, e as ensure_array_like, a as attr, b as stringify, u as unsubscribe_stores } from "../../../chunks/index2.js";
|
||||||
import { c as cn } from "../../../chunks/utils2.js";
|
|
||||||
import "clsx";
|
import "clsx";
|
||||||
|
import "@sveltejs/kit/internal";
|
||||||
|
import "../../../chunks/exports.js";
|
||||||
|
import "../../../chunks/utils2.js";
|
||||||
|
import "@sveltejs/kit/internal/server";
|
||||||
|
import "../../../chunks/root.js";
|
||||||
|
import "../../../chunks/state.svelte.js";
|
||||||
|
import { c as cn } from "../../../chunks/utils.js";
|
||||||
import { tv } from "tailwind-variants";
|
import { tv } from "tailwind-variants";
|
||||||
function Table($$renderer, $$props) {
|
import { C as Card, a as Card_content } from "../../../chunks/card-content.js";
|
||||||
$$renderer.component(($$renderer2) => {
|
const getStores = () => {
|
||||||
let {
|
const stores$1 = getContext("__svelte__");
|
||||||
ref = null,
|
return {
|
||||||
class: className,
|
/** @type {typeof page} */
|
||||||
children,
|
page: {
|
||||||
$$slots,
|
subscribe: stores$1.page.subscribe
|
||||||
$$events,
|
},
|
||||||
...restProps
|
/** @type {typeof navigating} */
|
||||||
} = $$props;
|
navigating: {
|
||||||
$$renderer2.push(`<div data-slot="table-container" class="relative w-full overflow-x-auto"><table${attributes({
|
subscribe: stores$1.navigating.subscribe
|
||||||
"data-slot": "table",
|
},
|
||||||
class: clsx(cn("w-full caption-bottom text-sm", className)),
|
/** @type {typeof updated} */
|
||||||
...restProps
|
updated: stores$1.updated
|
||||||
})}>`);
|
};
|
||||||
children?.($$renderer2);
|
};
|
||||||
$$renderer2.push(`<!----></table></div>`);
|
const page = {
|
||||||
bind_props($$props, { ref });
|
subscribe(fn) {
|
||||||
});
|
const store = getStores().page;
|
||||||
}
|
return store.subscribe(fn);
|
||||||
function Table_body($$renderer, $$props) {
|
}
|
||||||
$$renderer.component(($$renderer2) => {
|
};
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<tbody${attributes({
|
|
||||||
"data-slot": "table-body",
|
|
||||||
class: clsx(cn("[&_tr:last-child]:border-0", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></tbody>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function Table_cell($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<td${attributes({
|
|
||||||
"data-slot": "table-cell",
|
|
||||||
class: clsx(cn("bg-clip-padding p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></td>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function Table_head($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<th${attributes({
|
|
||||||
"data-slot": "table-head",
|
|
||||||
class: clsx(cn("text-foreground h-10 bg-clip-padding px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></th>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function Table_header($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<thead${attributes({
|
|
||||||
"data-slot": "table-header",
|
|
||||||
class: clsx(cn("[&_tr]:border-b", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></thead>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function Table_row($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<tr${attributes({
|
|
||||||
"data-slot": "table-row",
|
|
||||||
class: clsx(cn("hover:[&,&>svelte-css-wrapper]:[&>th,td]:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></tr>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const badgeVariants = tv({
|
const badgeVariants = tv({
|
||||||
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",
|
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: {
|
variants: {
|
||||||
@@ -165,61 +73,11 @@ function Badge($$renderer, $$props) {
|
|||||||
bind_props($$props, { ref });
|
bind_props($$props, { ref });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function Card($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<div${attributes({
|
|
||||||
"data-slot": "card",
|
|
||||||
class: clsx(cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></div>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function Card_content($$renderer, $$props) {
|
|
||||||
$$renderer.component(($$renderer2) => {
|
|
||||||
let {
|
|
||||||
ref = null,
|
|
||||||
class: className,
|
|
||||||
children,
|
|
||||||
$$slots,
|
|
||||||
$$events,
|
|
||||||
...restProps
|
|
||||||
} = $$props;
|
|
||||||
$$renderer2.push(`<div${attributes({
|
|
||||||
"data-slot": "card-content",
|
|
||||||
class: clsx(cn("px-6", className)),
|
|
||||||
...restProps
|
|
||||||
})}>`);
|
|
||||||
children?.($$renderer2);
|
|
||||||
$$renderer2.push(`<!----></div>`);
|
|
||||||
bind_props($$props, { ref });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function _page($$renderer, $$props) {
|
function _page($$renderer, $$props) {
|
||||||
$$renderer.component(($$renderer2) => {
|
$$renderer.component(($$renderer2) => {
|
||||||
|
var $$store_subs;
|
||||||
let { data } = $$props;
|
let { data } = $$props;
|
||||||
function asList(val) {
|
store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("q") ?? "";
|
||||||
if (val == null) return [];
|
|
||||||
return Array.isArray(val) ? val : [val];
|
|
||||||
}
|
|
||||||
function formatDate(iso) {
|
|
||||||
if (!iso) return "—";
|
|
||||||
try {
|
|
||||||
return new Date(iso).toLocaleDateString(void 0, { dateStyle: "short", timeStyle: "short" });
|
|
||||||
} catch {
|
|
||||||
return iso;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const items = data?.items ?? [];
|
const items = data?.items ?? [];
|
||||||
const PB_BASE = "https://pocketbase.ccllc.pro";
|
const PB_BASE = "https://pocketbase.ccllc.pro";
|
||||||
const COLLECTION = "Stackq_Items";
|
const COLLECTION = "Stackq_Items";
|
||||||
@@ -234,411 +92,84 @@ function _page($$renderer, $$props) {
|
|||||||
});
|
});
|
||||||
{
|
{
|
||||||
$$renderer2.push("<!--[!-->");
|
$$renderer2.push("<!--[!-->");
|
||||||
$$renderer2.push(`<main class="container mx-auto flex flex-col gap-6 py-8"><div class="flex items-center justify-between"><h1 class="text-2xl font-semibold">Stackq Items</h1> <span class="text-muted-foreground text-sm">${escape_html(items.length)} items</span></div> `);
|
$$renderer2.push(`<main class="container mx-auto flex flex-col gap-6 px-4 py-8"><div class="flex items-center justify-between"><h1 class="text-2xl font-semibold">Stackq Items</h1> <span class="text-muted-foreground text-sm">${escape_html(items.length)} items</span></div> `);
|
||||||
Card($$renderer2, {
|
if (items.length === 0) {
|
||||||
children: ($$renderer3) => {
|
$$renderer2.push("<!--[-->");
|
||||||
Card_content($$renderer3, {
|
Card($$renderer2, {
|
||||||
class: "p-0",
|
children: ($$renderer3) => {
|
||||||
children: ($$renderer4) => {
|
Card_content($$renderer3, {
|
||||||
$$renderer4.push("<!---->");
|
class: "flex h-32 items-center justify-center",
|
||||||
Table?.($$renderer4, {
|
children: ($$renderer4) => {
|
||||||
children: ($$renderer5) => {
|
$$renderer4.push(`<p class="text-muted-foreground text-sm">No items.</p>`);
|
||||||
$$renderer5.push("<!---->");
|
},
|
||||||
Table_header?.($$renderer5, {
|
$$slots: { default: true }
|
||||||
children: ($$renderer6) => {
|
});
|
||||||
$$renderer6.push("<!---->");
|
},
|
||||||
Table_row?.($$renderer6, {
|
$$slots: { default: true }
|
||||||
children: ($$renderer7) => {
|
});
|
||||||
$$renderer7.push("<!---->");
|
} else {
|
||||||
Table_head?.($$renderer7, {
|
$$renderer2.push("<!--[!-->");
|
||||||
children: ($$renderer8) => {
|
$$renderer2.push(`<div class="flex flex-col gap-2"><!--[-->`);
|
||||||
$$renderer8.push(`<!---->Image`);
|
const each_array = ensure_array_like(items);
|
||||||
},
|
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
||||||
$$slots: { default: true }
|
let item = each_array[$$index];
|
||||||
});
|
Card($$renderer2, {
|
||||||
$$renderer7.push(`<!----> `);
|
class: "overflow-hidden",
|
||||||
$$renderer7.push("<!---->");
|
children: ($$renderer3) => {
|
||||||
Table_head?.($$renderer7, {
|
Card_content($$renderer3, {
|
||||||
children: ($$renderer8) => {
|
class: "flex flex-row items-center gap-3 p-3",
|
||||||
$$renderer8.push(`<!---->Item`);
|
children: ($$renderer4) => {
|
||||||
},
|
$$renderer4.push(`<div class="size-12 shrink-0 overflow-hidden rounded border">`);
|
||||||
$$slots: { default: true }
|
if (imageUrl(item)) {
|
||||||
});
|
$$renderer4.push("<!--[-->");
|
||||||
$$renderer7.push(`<!----> `);
|
$$renderer4.push(`<img${attr("src", imageUrl(item))} alt="" class="size-full object-cover" loading="lazy"/>`);
|
||||||
$$renderer7.push("<!---->");
|
} else {
|
||||||
Table_head?.($$renderer7, {
|
$$renderer4.push("<!--[!-->");
|
||||||
children: ($$renderer8) => {
|
$$renderer4.push(`<span class="text-muted-foreground flex size-full items-center justify-center text-xs">—</span>`);
|
||||||
$$renderer8.push(`<!---->SKU`);
|
}
|
||||||
},
|
$$renderer4.push(`<!--]--></div> <div class="min-w-0 flex-1"><a${attr("href", `/items/${stringify(item.id)}`)} class="font-medium hover:underline">${escape_html(item.Item ?? "—")}</a> <span class="text-muted-foreground font-mono text-xs">· ${escape_html(item.SKU ?? "—")}</span> `);
|
||||||
$$slots: { default: true }
|
if (item.Description) {
|
||||||
});
|
$$renderer4.push("<!--[-->");
|
||||||
$$renderer7.push(`<!----> `);
|
$$renderer4.push(`<span class="text-muted-foreground ml-1 truncate text-xs">· ${escape_html(item.Description)}</span>`);
|
||||||
$$renderer7.push("<!---->");
|
} else {
|
||||||
Table_head?.($$renderer7, {
|
$$renderer4.push("<!--[!-->");
|
||||||
class: "max-w-[200px]",
|
}
|
||||||
children: ($$renderer8) => {
|
$$renderer4.push(`<!--]--></div> <div class="flex shrink-0 items-center gap-2 text-xs">`);
|
||||||
$$renderer8.push(`<!---->Description`);
|
Badge($$renderer4, {
|
||||||
},
|
variant: "outline",
|
||||||
$$slots: { default: true }
|
children: ($$renderer5) => {
|
||||||
});
|
$$renderer5.push(`<!---->${escape_html(item.UOM ?? "—")}`);
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->UOM`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
class: "text-right",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Cost`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Vendor`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Catagory`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Sub_Catagory`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Has Parent`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Parent`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->Stock`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
class: "text-muted-foreground",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->created`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_head?.($$renderer7, {
|
|
||||||
class: "text-muted-foreground",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->updated`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!---->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer6.push(`<!---->`);
|
|
||||||
},
|
},
|
||||||
$$slots: { default: true }
|
$$slots: { default: true }
|
||||||
});
|
});
|
||||||
$$renderer5.push(`<!----> `);
|
$$renderer4.push(`<!----> <span class="tabular-nums">${escape_html(item.Cost != null ? Number(item.Cost).toLocaleString() : "—")}</span> `);
|
||||||
$$renderer5.push("<!---->");
|
if (item.Stock) {
|
||||||
Table_body?.($$renderer5, {
|
$$renderer4.push("<!--[-->");
|
||||||
children: ($$renderer6) => {
|
Badge($$renderer4, {
|
||||||
if (items.length === 0) {
|
variant: "default",
|
||||||
$$renderer6.push("<!--[-->");
|
class: "text-xs",
|
||||||
$$renderer6.push("<!---->");
|
children: ($$renderer5) => {
|
||||||
Table_row?.($$renderer6, {
|
$$renderer5.push(`<!---->Stock`);
|
||||||
children: ($$renderer7) => {
|
},
|
||||||
$$renderer7.push("<!---->");
|
$$slots: { default: true }
|
||||||
Table_cell?.($$renderer7, {
|
});
|
||||||
colspan: "14",
|
} else {
|
||||||
class: "h-24 text-center text-muted-foreground",
|
$$renderer4.push("<!--[!-->");
|
||||||
children: ($$renderer8) => {
|
}
|
||||||
$$renderer8.push(`<!---->No items.`);
|
$$renderer4.push(`<!--]--></div>`);
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!---->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer6.push(`<!---->`);
|
|
||||||
} else {
|
|
||||||
$$renderer6.push("<!--[!-->");
|
|
||||||
$$renderer6.push(`<!--[-->`);
|
|
||||||
const each_array = ensure_array_like(items);
|
|
||||||
for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {
|
|
||||||
let item = each_array[$$index_2];
|
|
||||||
$$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",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(item.Item ?? "—")}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "font-mono text-xs",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(item.SKU ?? "—")}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "max-w-[200px] truncate",
|
|
||||||
title: item.Description ?? "",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(item.Description ?? "—")}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
Badge($$renderer8, {
|
|
||||||
variant: "outline",
|
|
||||||
children: ($$renderer9) => {
|
|
||||||
$$renderer9.push(`<!---->${escape_html(item.UOM ?? "—")}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "text-right tabular-nums",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(item.Cost != null ? Number(item.Cost).toLocaleString() : "—")}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "text-muted-foreground",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(item.Vendor ?? "—")}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!--[-->`);
|
|
||||||
const each_array_1 = ensure_array_like(asList(item.Catagory));
|
|
||||||
for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
|
|
||||||
let cat = each_array_1[$$index];
|
|
||||||
Badge($$renderer8, {
|
|
||||||
variant: "secondary",
|
|
||||||
class: "mr-1 text-xs",
|
|
||||||
children: ($$renderer9) => {
|
|
||||||
$$renderer9.push(`<!---->${escape_html(cat)}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]--> `);
|
|
||||||
if (asList(item.Catagory).length === 0) {
|
|
||||||
$$renderer8.push("<!--[-->");
|
|
||||||
$$renderer8.push(`<span class="text-muted-foreground">—</span>`);
|
|
||||||
} else {
|
|
||||||
$$renderer8.push("<!--[!-->");
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]-->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!--[-->`);
|
|
||||||
const each_array_2 = ensure_array_like(asList(item.Sub_Catagory));
|
|
||||||
for (let $$index_1 = 0, $$length2 = each_array_2.length; $$index_1 < $$length2; $$index_1++) {
|
|
||||||
let sub = each_array_2[$$index_1];
|
|
||||||
Badge($$renderer8, {
|
|
||||||
variant: "outline",
|
|
||||||
class: "mr-1 text-xs",
|
|
||||||
children: ($$renderer9) => {
|
|
||||||
$$renderer9.push(`<!---->${escape_html(sub)}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]--> `);
|
|
||||||
if (asList(item.Sub_Catagory).length === 0) {
|
|
||||||
$$renderer8.push("<!--[-->");
|
|
||||||
$$renderer8.push(`<span class="text-muted-foreground">—</span>`);
|
|
||||||
} else {
|
|
||||||
$$renderer8.push("<!--[!-->");
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]-->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
if (item.Has_Parent) {
|
|
||||||
$$renderer8.push("<!--[-->");
|
|
||||||
Badge($$renderer8, {
|
|
||||||
children: ($$renderer9) => {
|
|
||||||
$$renderer9.push(`<!---->Yes`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$$renderer8.push("<!--[!-->");
|
|
||||||
$$renderer8.push(`<span class="text-muted-foreground">No</span>`);
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]-->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "text-muted-foreground",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
if (item.expand?.Parent) {
|
|
||||||
$$renderer8.push("<!--[-->");
|
|
||||||
$$renderer8.push(`${escape_html(item.expand.Parent.Item ?? item.expand.Parent.SKU ?? item.Parent)}`);
|
|
||||||
} else if (item.Parent) {
|
|
||||||
$$renderer8.push("<!--[1-->");
|
|
||||||
$$renderer8.push(`<span class="font-mono text-xs">${escape_html(item.Parent)}</span>`);
|
|
||||||
} else {
|
|
||||||
$$renderer8.push("<!--[!-->");
|
|
||||||
$$renderer8.push(`—`);
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]-->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
if (item.Stock) {
|
|
||||||
$$renderer8.push("<!--[-->");
|
|
||||||
Badge($$renderer8, {
|
|
||||||
variant: "default",
|
|
||||||
children: ($$renderer9) => {
|
|
||||||
$$renderer9.push(`<!---->Stock`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$$renderer8.push("<!--[!-->");
|
|
||||||
$$renderer8.push(`<span class="text-muted-foreground">—</span>`);
|
|
||||||
}
|
|
||||||
$$renderer8.push(`<!--]-->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "text-muted-foreground text-xs",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(formatDate(item.created))}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!----> `);
|
|
||||||
$$renderer7.push("<!---->");
|
|
||||||
Table_cell?.($$renderer7, {
|
|
||||||
class: "text-muted-foreground text-xs",
|
|
||||||
children: ($$renderer8) => {
|
|
||||||
$$renderer8.push(`<!---->${escape_html(formatDate(item.updated))}`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer7.push(`<!---->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer6.push(`<!---->`);
|
|
||||||
}
|
|
||||||
$$renderer6.push(`<!--]-->`);
|
|
||||||
}
|
|
||||||
$$renderer6.push(`<!--]-->`);
|
|
||||||
},
|
|
||||||
$$slots: { default: true }
|
|
||||||
});
|
|
||||||
$$renderer5.push(`<!---->`);
|
|
||||||
},
|
},
|
||||||
$$slots: { default: true }
|
$$slots: { default: true }
|
||||||
});
|
});
|
||||||
$$renderer4.push(`<!---->`);
|
|
||||||
},
|
},
|
||||||
$$slots: { default: true }
|
$$slots: { default: true }
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
$$slots: { default: true }
|
$$renderer2.push(`<!--]--></div>`);
|
||||||
});
|
}
|
||||||
$$renderer2.push(`<!----></main>`);
|
$$renderer2.push(`<!--]--></main>`);
|
||||||
}
|
}
|
||||||
$$renderer2.push(`<!--]-->`);
|
$$renderer2.push(`<!--]-->`);
|
||||||
|
if ($$store_subs) unsubscribe_stores($$store_subs);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
export {
|
export {
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
import { h as head, c as escape_html } from "../../../../chunks/index2.js";
|
||||||
|
import { B as Button } from "../../../../chunks/button.js";
|
||||||
|
import { C as Card, a as Card_content } from "../../../../chunks/card-content.js";
|
||||||
|
import "clsx";
|
||||||
|
function _page($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let { data, params } = $$props;
|
||||||
|
head("8mhk6q", $$renderer2, ($$renderer3) => {
|
||||||
|
$$renderer3.title(($$renderer4) => {
|
||||||
|
$$renderer4.push(`<title>Receipt – Stackq</title>`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$$renderer2.push(`<main class="container mx-auto flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8"><div class="flex items-center gap-3"><a href="/receipts" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to receipts">Back</a> <h1 class="text-xl font-semibold sm:text-2xl">Receipt</h1></div> `);
|
||||||
|
Card($$renderer2, {
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
Card_content($$renderer3, {
|
||||||
|
class: "flex flex-col gap-4 py-8",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<p class="text-muted-foreground text-sm">Receipt ${escape_html(params.id)}</p> <a href="/receipts">`);
|
||||||
|
Button($$renderer4, {
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer5) => {
|
||||||
|
$$renderer5.push(`<!---->Back to receipts`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer4.push(`<!----></a>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer2.push(`<!----></main>`);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
_page as default
|
||||||
|
};
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
const load = async () => {
|
||||||
|
return { receipts: [] };
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
load
|
||||||
|
};
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
import { h as head, e as ensure_array_like, a as attr, b as stringify, c as escape_html } from "../../../chunks/index2.js";
|
||||||
|
import { B as Button } from "../../../chunks/button.js";
|
||||||
|
import { C as Card, a as Card_content } from "../../../chunks/card-content.js";
|
||||||
|
import "clsx";
|
||||||
|
function _page($$renderer, $$props) {
|
||||||
|
$$renderer.component(($$renderer2) => {
|
||||||
|
let { data } = $$props;
|
||||||
|
const receipts = data?.receipts ?? [];
|
||||||
|
head("16kr07e", $$renderer2, ($$renderer3) => {
|
||||||
|
$$renderer3.title(($$renderer4) => {
|
||||||
|
$$renderer4.push(`<title>Receipts – Stackq</title>`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$$renderer2.push(`<main class="container mx-auto flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><div class="flex items-center gap-3"><a href="/" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to main">Back</a> <h1 class="text-xl font-semibold sm:text-2xl">Receipts</h1></div> <a href="/receipts/new" class="block shrink-0">`);
|
||||||
|
Button($$renderer2, {
|
||||||
|
class: "w-full sm:w-auto",
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
$$renderer3.push(`<!---->New receipt`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer2.push(`<!----></a></div> `);
|
||||||
|
if (receipts.length === 0) {
|
||||||
|
$$renderer2.push("<!--[-->");
|
||||||
|
Card($$renderer2, {
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
Card_content($$renderer3, {
|
||||||
|
class: "flex flex-col items-center justify-center gap-4 py-12",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<p class="text-muted-foreground text-center text-sm">No receipts yet.</p> <p class="text-muted-foreground text-center text-xs">Create a receipt to get started.</p> <a href="/receipts/new">`);
|
||||||
|
Button($$renderer4, {
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer5) => {
|
||||||
|
$$renderer5.push(`<!---->New receipt`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer4.push(`<!----></a> <a href="/">`);
|
||||||
|
Button($$renderer4, {
|
||||||
|
variant: "ghost",
|
||||||
|
children: ($$renderer5) => {
|
||||||
|
$$renderer5.push(`<!---->Back to home`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer4.push(`<!----></a>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
$$renderer2.push("<!--[!-->");
|
||||||
|
$$renderer2.push(`<div class="flex flex-col gap-2"><!--[-->`);
|
||||||
|
const each_array = ensure_array_like(receipts);
|
||||||
|
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
||||||
|
let receipt = each_array[$$index];
|
||||||
|
Card($$renderer2, {
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
Card_content($$renderer3, {
|
||||||
|
class: "p-4",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<a${attr("href", `/receipts/${stringify(receipt.id)}`)} class="font-medium hover:underline">Receipt ${escape_html(receipt.id)}</a>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
$$renderer2.push(`<!--]--></div>`);
|
||||||
|
}
|
||||||
|
$$renderer2.push(`<!--]--></main>`);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
_page as default
|
||||||
|
};
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
import { h as head } from "../../../../chunks/index2.js";
|
||||||
|
import { B as Button } from "../../../../chunks/button.js";
|
||||||
|
import { C as Card, a as Card_content } from "../../../../chunks/card-content.js";
|
||||||
|
import "clsx";
|
||||||
|
function _page($$renderer) {
|
||||||
|
head("1mqc1bt", $$renderer, ($$renderer2) => {
|
||||||
|
$$renderer2.title(($$renderer3) => {
|
||||||
|
$$renderer3.push(`<title>New receipt – Stackq</title>`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$$renderer.push(`<main class="container mx-auto flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8"><div class="flex items-center gap-3"><a href="/receipts" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to receipts">Back</a> <h1 class="text-xl font-semibold sm:text-2xl">New receipt</h1></div> `);
|
||||||
|
Card($$renderer, {
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
Card_content($$renderer2, {
|
||||||
|
class: "flex flex-col gap-4 py-8",
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
$$renderer3.push(`<p class="text-muted-foreground text-center text-sm">Receipt creation will be available here.</p> <div class="flex justify-center gap-2"><a href="/receipts">`);
|
||||||
|
Button($$renderer3, {
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<!---->Back to receipts`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer3.push(`<!----></a> <a href="/">`);
|
||||||
|
Button($$renderer3, {
|
||||||
|
variant: "ghost",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<!---->Home`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer3.push(`<!----></a></div>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></main>`);
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
_page as default
|
||||||
|
};
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import { h as head } from "../../../chunks/index2.js";
|
||||||
|
import { B as Button } from "../../../chunks/button.js";
|
||||||
|
import { C as Card, a as Card_content } from "../../../chunks/card-content.js";
|
||||||
|
import "clsx";
|
||||||
|
function _page($$renderer) {
|
||||||
|
head("1q0dtg6", $$renderer, ($$renderer2) => {
|
||||||
|
$$renderer2.title(($$renderer3) => {
|
||||||
|
$$renderer3.push(`<title>Transactions – Stackq</title>`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$$renderer.push(`<main class="container mx-auto flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8"><div class="flex items-center gap-3"><a href="/" class="text-muted-foreground hover:text-foreground shrink-0 text-sm" title="Back to main">Back</a> <h1 class="text-xl font-semibold sm:text-2xl">Transactions</h1></div> `);
|
||||||
|
Card($$renderer, {
|
||||||
|
children: ($$renderer2) => {
|
||||||
|
Card_content($$renderer2, {
|
||||||
|
class: "flex flex-col items-center justify-center gap-4 py-12",
|
||||||
|
children: ($$renderer3) => {
|
||||||
|
$$renderer3.push(`<p class="text-muted-foreground text-center text-sm">No transactions yet.</p> <p class="text-muted-foreground text-center text-xs">Transactions will appear here once this feature is available.</p> <a href="/">`);
|
||||||
|
Button($$renderer3, {
|
||||||
|
variant: "outline",
|
||||||
|
children: ($$renderer4) => {
|
||||||
|
$$renderer4.push(`<!---->Back to home`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer3.push(`<!----></a>`);
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
},
|
||||||
|
$$slots: { default: true }
|
||||||
|
});
|
||||||
|
$$renderer.push(`<!----></main>`);
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
_page as default
|
||||||
|
};
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
import { D as DEV } from "./chunks/false.js";
|
import { b as browser } from "./chunks/false.js";
|
||||||
import { json, text, error } from "@sveltejs/kit";
|
import { json, text, error } from "@sveltejs/kit";
|
||||||
import { Redirect, SvelteKitError, ActionFailure, HttpError } from "@sveltejs/kit/internal";
|
import { Redirect, SvelteKitError, ActionFailure, HttpError } from "@sveltejs/kit/internal";
|
||||||
import { with_request_store, merge_tracing, try_get_request_store } from "@sveltejs/kit/internal/server";
|
import { with_request_store, merge_tracing, try_get_request_store } from "@sveltejs/kit/internal/server";
|
||||||
import { e as assets, c as base, d as app_dir, r as relative, o as override, f as reset } from "./chunks/environment.js";
|
import { e as assets, c as base, d as app_dir, r as relative, o as override, f as reset } from "./chunks/environment.js";
|
||||||
import { E as ENDPOINT_METHODS, P as PAGE_METHODS, g as negotiate, m as method_not_allowed, h as handle_error_and_jsonify, i as get_status, j as is_form_content_type, k as normalize_error, l as get_global_name, o as serialize_uses, p as clarify_devalue_error, q as get_node_type, r as escape_html, S as SVELTE_KIT_ASSETS, e as create_remote_key, t as static_error_page, u as redirect_response, v as parse_remote_arg, b as stringify, w as deserialize_binary_form, x as has_prerendered_path, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, y as handle_fatal_error, z as format_server_error } from "./chunks/shared.js";
|
import { E as ENDPOINT_METHODS, P as PAGE_METHODS, g as negotiate, m as method_not_allowed, h as handle_error_and_jsonify, i as get_status, j as is_form_content_type, k as normalize_error, l as get_global_name, o as serialize_uses, p as clarify_devalue_error, q as get_node_type, r as escape_html, S as SVELTE_KIT_ASSETS, e as create_remote_key, t as static_error_page, u as redirect_response, v as parse_remote_arg, b as stringify, w as deserialize_binary_form, x as has_prerendered_path, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, y as handle_fatal_error, z as format_server_error } from "./chunks/shared.js";
|
||||||
import * as devalue from "devalue";
|
import * as devalue from "devalue";
|
||||||
import { m as make_trackable, d as disable_search, a as decode_params, S as SCHEME, w as writable, r as readable, v as validate_layout_server_exports, b as validate_layout_exports, c as validate_page_server_exports, e as validate_page_exports, n as normalize_path, f as resolve, g as decode_pathname, h as validate_server_exports } from "./chunks/exports.js";
|
import { m as make_trackable, d as disable_search, a as decode_params, S as SCHEME, v as validate_layout_server_exports, b as validate_layout_exports, c as validate_page_server_exports, e as validate_page_exports, n as normalize_path, r as resolve, f as decode_pathname, g as validate_server_exports } from "./chunks/exports.js";
|
||||||
import { b as base64_encode, t as text_decoder, c as text_encoder, g as get_relative_path } from "./chunks/utils.js";
|
import { b as base64_encode, t as text_decoder, c as text_encoder, g as get_relative_path } from "./chunks/utils2.js";
|
||||||
|
import { w as writable, r as readable } from "./chunks/index.js";
|
||||||
import { p as public_env, r as read_implementation, o as options, s as set_private_env, a as set_public_env, g as get_hooks, b as set_read_implementation } from "./chunks/internal.js";
|
import { p as public_env, r as read_implementation, o as options, s as set_private_env, a as set_public_env, g as get_hooks, b as set_read_implementation } from "./chunks/internal.js";
|
||||||
import { parse, serialize } from "cookie";
|
import { parse, serialize } from "cookie";
|
||||||
import * as set_cookie_parser from "set-cookie-parser";
|
import * as set_cookie_parser from "set-cookie-parser";
|
||||||
@@ -207,7 +208,7 @@ async function handle_action_json_request(event, event_state, options2, server)
|
|||||||
check_named_default_separate(actions);
|
check_named_default_separate(actions);
|
||||||
try {
|
try {
|
||||||
const data = await call_action(event, event_state, actions);
|
const data = await call_action(event, event_state, actions);
|
||||||
if (DEV) ;
|
if (browser) ;
|
||||||
if (data instanceof ActionFailure) {
|
if (data instanceof ActionFailure) {
|
||||||
return action_json({
|
return action_json({
|
||||||
type: "failure",
|
type: "failure",
|
||||||
@@ -292,7 +293,7 @@ async function handle_action_request(event, event_state, server) {
|
|||||||
check_named_default_separate(actions);
|
check_named_default_separate(actions);
|
||||||
try {
|
try {
|
||||||
const data = await call_action(event, event_state, actions);
|
const data = await call_action(event, event_state, actions);
|
||||||
if (DEV) ;
|
if (browser) ;
|
||||||
if (data instanceof ActionFailure) {
|
if (data instanceof ActionFailure) {
|
||||||
return {
|
return {
|
||||||
type: "failure",
|
type: "failure",
|
||||||
@@ -1592,7 +1593,7 @@ async function render_response({
|
|||||||
};
|
};
|
||||||
const fetch2 = globalThis.fetch;
|
const fetch2 = globalThis.fetch;
|
||||||
try {
|
try {
|
||||||
if (DEV) ;
|
if (browser) ;
|
||||||
rendered = await with_request_store({ event, state: event_state }, async () => {
|
rendered = await with_request_store({ event, state: event_state }, async () => {
|
||||||
if (relative) override({ base: base$1, assets: assets$1 });
|
if (relative) override({ base: base$1, assets: assets$1 });
|
||||||
const maybe_promise = options2.root.render(props, render_opts);
|
const maybe_promise = options2.root.render(props, render_opts);
|
||||||
@@ -2458,7 +2459,7 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|||||||
const ssr = nodes.ssr();
|
const ssr = nodes.ssr();
|
||||||
const csr = nodes.csr();
|
const csr = nodes.csr();
|
||||||
if (ssr === false && !(state.prerendering && should_prerender_data)) {
|
if (ssr === false && !(state.prerendering && should_prerender_data)) {
|
||||||
if (DEV && action_result && !event.request.headers.has("x-sveltekit-action")) ;
|
if (browser && action_result && !event.request.headers.has("x-sveltekit-action")) ;
|
||||||
return await render_response({
|
return await render_response({
|
||||||
branch: [],
|
branch: [],
|
||||||
fetched,
|
fetched,
|
||||||
@@ -3312,12 +3313,12 @@ async function internal_respond(request, options2, manifest, state) {
|
|||||||
if (url.pathname === base || url.pathname === base + "/") {
|
if (url.pathname === base || url.pathname === base + "/") {
|
||||||
trailing_slash = "always";
|
trailing_slash = "always";
|
||||||
} else if (page_nodes) {
|
} else if (page_nodes) {
|
||||||
if (DEV) ;
|
if (browser) ;
|
||||||
trailing_slash = page_nodes.trailing_slash();
|
trailing_slash = page_nodes.trailing_slash();
|
||||||
} else if (route.endpoint) {
|
} else if (route.endpoint) {
|
||||||
const node = await route.endpoint();
|
const node = await route.endpoint();
|
||||||
trailing_slash = node.trailingSlash ?? "never";
|
trailing_slash = node.trailingSlash ?? "never";
|
||||||
if (DEV) ;
|
if (browser) ;
|
||||||
}
|
}
|
||||||
if (!is_data_request) {
|
if (!is_data_request) {
|
||||||
const normalized = normalize_path(url.pathname, trailing_slash);
|
const normalized = normalize_path(url.pathname, trailing_slash);
|
||||||
@@ -3577,7 +3578,7 @@ async function internal_respond(request, options2, manifest, state) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (state.depth === 0) {
|
if (state.depth === 0) {
|
||||||
if (DEV && event2.url.pathname === "/.well-known/appspecific/com.chrome.devtools.json") ;
|
if (browser && event2.url.pathname === "/.well-known/appspecific/com.chrome.devtools.json") ;
|
||||||
return await respond_with_error({
|
return await respond_with_error({
|
||||||
event: event2,
|
event: event2,
|
||||||
event_state,
|
event_state,
|
||||||
|
|||||||
@@ -7,17 +7,23 @@ function __memo(fn) {
|
|||||||
return {
|
return {
|
||||||
appDir: "_app",
|
appDir: "_app",
|
||||||
appPath: "_app",
|
appPath: "_app",
|
||||||
assets: new Set([]),
|
assets: new Set(["icon.svg"]),
|
||||||
mimeTypes: {},
|
mimeTypes: {".svg":"image/svg+xml"},
|
||||||
_: {
|
_: {
|
||||||
client: {start:"_app/immutable/entry/start.BXvCRdku.js",app:"_app/immutable/entry/app.c69iw9ai.js",imports:["_app/immutable/entry/start.BXvCRdku.js","_app/immutable/chunks/BapE3c1q.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/entry/app.c69iw9ai.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/25AjRaeI.js","_app/immutable/chunks/jOLfEXYH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
client: {start:"_app/immutable/entry/start.DFCcf04d.js",app:"_app/immutable/entry/app.CjPPJjga.js",imports:["_app/immutable/entry/start.DFCcf04d.js","_app/immutable/chunks/mylYChEY.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/entry/app.CjPPJjga.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/Cf_fsnlT.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||||
nodes: [
|
nodes: [
|
||||||
__memo(() => import('./nodes/0.js')),
|
__memo(() => import('./nodes/0.js')),
|
||||||
__memo(() => import('./nodes/1.js')),
|
__memo(() => import('./nodes/1.js')),
|
||||||
__memo(() => import('./nodes/2.js')),
|
__memo(() => import('./nodes/2.js')),
|
||||||
__memo(() => import('./nodes/3.js')),
|
__memo(() => import('./nodes/3.js')),
|
||||||
__memo(() => import('./nodes/4.js')),
|
__memo(() => import('./nodes/4.js')),
|
||||||
__memo(() => import('./nodes/5.js'))
|
__memo(() => import('./nodes/5.js')),
|
||||||
|
__memo(() => import('./nodes/6.js')),
|
||||||
|
__memo(() => import('./nodes/7.js')),
|
||||||
|
__memo(() => import('./nodes/8.js')),
|
||||||
|
__memo(() => import('./nodes/9.js')),
|
||||||
|
__memo(() => import('./nodes/10.js')),
|
||||||
|
__memo(() => import('./nodes/11.js'))
|
||||||
],
|
],
|
||||||
remotes: {
|
remotes: {
|
||||||
|
|
||||||
@@ -30,26 +36,68 @@ return {
|
|||||||
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "/accounts",
|
||||||
|
pattern: /^\/accounts\/?$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 8 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "/items",
|
id: "/items",
|
||||||
pattern: /^\/items\/?$/,
|
pattern: /^\/items\/?$/,
|
||||||
params: [],
|
params: [],
|
||||||
page: { layouts: [0,], errors: [1,], leaf: 4 },
|
page: { layouts: [0,], errors: [1,], leaf: 9 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/items/[id]",
|
||||||
|
pattern: /^\/items\/([^/]+?)\/?$/,
|
||||||
|
params: [{"name":"id","optional":false,"rest":false,"chained":false}],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 10 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "/login",
|
id: "/login",
|
||||||
pattern: /^\/login\/?$/,
|
pattern: /^\/login\/?$/,
|
||||||
params: [],
|
params: [],
|
||||||
page: { layouts: [0,], errors: [1,], leaf: 5 },
|
page: { layouts: [0,], errors: [1,], leaf: 11 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "/logout",
|
id: "/logout",
|
||||||
pattern: /^\/logout\/?$/,
|
pattern: /^\/logout\/?$/,
|
||||||
params: [],
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 6 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/receipts",
|
||||||
|
pattern: /^\/receipts\/?$/,
|
||||||
|
params: [],
|
||||||
page: { layouts: [0,], errors: [1,], leaf: 3 },
|
page: { layouts: [0,], errors: [1,], leaf: 3 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/receipts/new",
|
||||||
|
pattern: /^\/receipts\/new\/?$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 4 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/receipts/[id]",
|
||||||
|
pattern: /^\/receipts\/([^/]+?)\/?$/,
|
||||||
|
params: [{"name":"id","optional":false,"rest":false,"chained":false}],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 5 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/transactions",
|
||||||
|
pattern: /^\/transactions\/?$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 7 },
|
||||||
|
endpoint: null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
prerendered_routes: new Set([]),
|
prerendered_routes: new Set([]),
|
||||||
|
|||||||
@@ -7,17 +7,23 @@ function __memo(fn) {
|
|||||||
return {
|
return {
|
||||||
appDir: "_app",
|
appDir: "_app",
|
||||||
appPath: "_app",
|
appPath: "_app",
|
||||||
assets: new Set([]),
|
assets: new Set(["icon.svg"]),
|
||||||
mimeTypes: {},
|
mimeTypes: {".svg":"image/svg+xml"},
|
||||||
_: {
|
_: {
|
||||||
client: {start:"_app/immutable/entry/start.BXvCRdku.js",app:"_app/immutable/entry/app.c69iw9ai.js",imports:["_app/immutable/entry/start.BXvCRdku.js","_app/immutable/chunks/BapE3c1q.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/entry/app.c69iw9ai.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/25AjRaeI.js","_app/immutable/chunks/jOLfEXYH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
client: {start:"_app/immutable/entry/start.DFCcf04d.js",app:"_app/immutable/entry/app.CjPPJjga.js",imports:["_app/immutable/entry/start.DFCcf04d.js","_app/immutable/chunks/mylYChEY.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/entry/app.CjPPJjga.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/Cf_fsnlT.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
||||||
nodes: [
|
nodes: [
|
||||||
__memo(() => import('./nodes/0.js')),
|
__memo(() => import('./nodes/0.js')),
|
||||||
__memo(() => import('./nodes/1.js')),
|
__memo(() => import('./nodes/1.js')),
|
||||||
__memo(() => import('./nodes/2.js')),
|
__memo(() => import('./nodes/2.js')),
|
||||||
__memo(() => import('./nodes/3.js')),
|
__memo(() => import('./nodes/3.js')),
|
||||||
__memo(() => import('./nodes/4.js')),
|
__memo(() => import('./nodes/4.js')),
|
||||||
__memo(() => import('./nodes/5.js'))
|
__memo(() => import('./nodes/5.js')),
|
||||||
|
__memo(() => import('./nodes/6.js')),
|
||||||
|
__memo(() => import('./nodes/7.js')),
|
||||||
|
__memo(() => import('./nodes/8.js')),
|
||||||
|
__memo(() => import('./nodes/9.js')),
|
||||||
|
__memo(() => import('./nodes/10.js')),
|
||||||
|
__memo(() => import('./nodes/11.js'))
|
||||||
],
|
],
|
||||||
remotes: {
|
remotes: {
|
||||||
|
|
||||||
@@ -30,26 +36,68 @@ return {
|
|||||||
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "/accounts",
|
||||||
|
pattern: /^\/accounts\/?$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 8 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "/items",
|
id: "/items",
|
||||||
pattern: /^\/items\/?$/,
|
pattern: /^\/items\/?$/,
|
||||||
params: [],
|
params: [],
|
||||||
page: { layouts: [0,], errors: [1,], leaf: 4 },
|
page: { layouts: [0,], errors: [1,], leaf: 9 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/items/[id]",
|
||||||
|
pattern: /^\/items\/([^/]+?)\/?$/,
|
||||||
|
params: [{"name":"id","optional":false,"rest":false,"chained":false}],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 10 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "/login",
|
id: "/login",
|
||||||
pattern: /^\/login\/?$/,
|
pattern: /^\/login\/?$/,
|
||||||
params: [],
|
params: [],
|
||||||
page: { layouts: [0,], errors: [1,], leaf: 5 },
|
page: { layouts: [0,], errors: [1,], leaf: 11 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "/logout",
|
id: "/logout",
|
||||||
pattern: /^\/logout\/?$/,
|
pattern: /^\/logout\/?$/,
|
||||||
params: [],
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 6 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/receipts",
|
||||||
|
pattern: /^\/receipts\/?$/,
|
||||||
|
params: [],
|
||||||
page: { layouts: [0,], errors: [1,], leaf: 3 },
|
page: { layouts: [0,], errors: [1,], leaf: 3 },
|
||||||
endpoint: null
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/receipts/new",
|
||||||
|
pattern: /^\/receipts\/new\/?$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 4 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/receipts/[id]",
|
||||||
|
pattern: /^\/receipts\/([^/]+?)\/?$/,
|
||||||
|
params: [{"name":"id","optional":false,"rest":false,"chained":false}],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 5 },
|
||||||
|
endpoint: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "/transactions",
|
||||||
|
pattern: /^\/transactions\/?$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 7 },
|
||||||
|
endpoint: null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
prerendered_routes: new Set([]),
|
prerendered_routes: new Set([]),
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ let component_cache;
|
|||||||
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
||||||
export { universal };
|
export { universal };
|
||||||
export const universal_id = "src/routes/+layout.ts";
|
export const universal_id = "src/routes/+layout.ts";
|
||||||
export const imports = ["_app/immutable/nodes/0.BXv9ZfXj.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/Dexp9pM5.js"];
|
export const imports = ["_app/immutable/nodes/0.Cxu0NOCO.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/Bbbv1kr5.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/CrWOhwmr.js"];
|
||||||
export const stylesheets = ["_app/immutable/assets/0.DbRKE6YE.css"];
|
export const stylesheets = ["_app/immutable/assets/0.B2oeYf4F.css"];
|
||||||
export const fonts = [];
|
export const fonts = [];
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
export const index = 1;
|
export const index = 1;
|
||||||
let component_cache;
|
let component_cache;
|
||||||
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
|
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
|
||||||
export const imports = ["_app/immutable/nodes/1.BT8sl3NL.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/BapE3c1q.js"];
|
export const imports = ["_app/immutable/nodes/1.C7nmeG9W.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/Bbbv1kr5.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/CrWOhwmr.js","_app/immutable/chunks/mylYChEY.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/iYSIr-5j.js"];
|
||||||
export const stylesheets = [];
|
export const stylesheets = [];
|
||||||
export const fonts = [];
|
export const fonts = [];
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import * as server from '../entries/pages/items/_id_/_page.server.ts.js';
|
||||||
|
|
||||||
|
export const index = 10;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/pages/items/_id_/_page.svelte.js')).default;
|
||||||
|
export { server };
|
||||||
|
export const server_id = "src/routes/items/[id]/+page.server.ts";
|
||||||
|
export const imports = ["_app/immutable/nodes/10.Bk0Y3XDZ.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/BR6tTwie.js","_app/immutable/chunks/Cf_fsnlT.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/CCY2d7sc.js","_app/immutable/chunks/mylYChEY.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/BzfwckE1.js","_app/immutable/chunks/CBjBL7Hz.js","_app/immutable/chunks/Cr7vHN1I.js","_app/immutable/chunks/C3TONo7J.js","_app/immutable/chunks/D4nn9Y_6.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import * as server from '../entries/pages/login/_page.server.ts.js';
|
||||||
|
|
||||||
|
export const index = 11;
|
||||||
|
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/11.CjZazW5Z.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/BHRsrugl.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/Cf_fsnlT.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
||||||
@@ -5,6 +5,6 @@ let component_cache;
|
|||||||
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
||||||
export { server };
|
export { server };
|
||||||
export const server_id = "src/routes/+page.server.ts";
|
export const server_id = "src/routes/+page.server.ts";
|
||||||
export const imports = ["_app/immutable/nodes/2.OkkHA0lV.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/B12dZE2q.js","_app/immutable/chunks/BKSreT2u.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/jOLfEXYH.js"];
|
export const imports = ["_app/immutable/nodes/2.DgrjDafZ.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/BHRsrugl.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/Cf_fsnlT.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js"];
|
||||||
export const stylesheets = [];
|
export const stylesheets = [];
|
||||||
export const fonts = [];
|
export const fonts = [];
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import * as server from '../entries/pages/logout/_page.server.ts.js';
|
import * as server from '../entries/pages/receipts/_page.server.ts.js';
|
||||||
|
|
||||||
export const index = 3;
|
export const index = 3;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/pages/receipts/_page.svelte.js')).default;
|
||||||
export { server };
|
export { server };
|
||||||
export const server_id = "src/routes/logout/+page.server.ts";
|
export const server_id = "src/routes/receipts/+page.server.ts";
|
||||||
export const imports = [];
|
export const imports = ["_app/immutable/nodes/3.Db4iBzV-.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/BR6tTwie.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/BzfwckE1.js"];
|
||||||
export const stylesheets = [];
|
export const stylesheets = [];
|
||||||
export const fonts = [];
|
export const fonts = [];
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
import * as server from '../entries/pages/items/_page.server.ts.js';
|
|
||||||
|
|
||||||
export const index = 4;
|
export const index = 4;
|
||||||
let component_cache;
|
let component_cache;
|
||||||
export const component = async () => component_cache ??= (await import('../entries/pages/items/_page.svelte.js')).default;
|
export const component = async () => component_cache ??= (await import('../entries/pages/receipts/new/_page.svelte.js')).default;
|
||||||
export { server };
|
export const imports = ["_app/immutable/nodes/4._j5PA9Ai.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/Bbbv1kr5.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/BzfwckE1.js"];
|
||||||
export const server_id = "src/routes/items/+page.server.ts";
|
|
||||||
export const imports = ["_app/immutable/nodes/4.Bn1qLW0B.js","_app/immutable/chunks/BxPgF2w2.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/25AjRaeI.js","_app/immutable/chunks/BKSreT2u.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/BC20z61P.js","_app/immutable/chunks/jOLfEXYH.js"];
|
|
||||||
export const stylesheets = [];
|
export const stylesheets = [];
|
||||||
export const fonts = [];
|
export const fonts = [];
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
import * as server from '../entries/pages/login/_page.server.ts.js';
|
|
||||||
|
|
||||||
export const index = 5;
|
export const index = 5;
|
||||||
let component_cache;
|
let component_cache;
|
||||||
export const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;
|
export const component = async () => component_cache ??= (await import('../entries/pages/receipts/_id_/_page.svelte.js')).default;
|
||||||
export { server };
|
export const imports = ["_app/immutable/nodes/5.C8BgfNn-.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/BzfwckE1.js"];
|
||||||
export const server_id = "src/routes/login/+page.server.ts";
|
|
||||||
export const imports = ["_app/immutable/nodes/5.u4tkKrg-.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/25AjRaeI.js"];
|
|
||||||
export const stylesheets = [];
|
export const stylesheets = [];
|
||||||
export const fonts = [];
|
export const fonts = [];
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import * as server from '../entries/pages/logout/_page.server.ts.js';
|
||||||
|
|
||||||
|
export const index = 6;
|
||||||
|
export { server };
|
||||||
|
export const server_id = "src/routes/logout/+page.server.ts";
|
||||||
|
export const imports = [];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
export const index = 7;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/pages/transactions/_page.svelte.js')).default;
|
||||||
|
export const imports = ["_app/immutable/nodes/7.BT0w3m9a.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/Bbbv1kr5.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/BzfwckE1.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
export const index = 8;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/pages/accounts/_page.svelte.js')).default;
|
||||||
|
export const imports = ["_app/immutable/nodes/8.B6WLTWPS.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/Bbbv1kr5.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/BkOB8zes.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/BzfwckE1.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import * as server from '../entries/pages/items/_page.server.ts.js';
|
||||||
|
|
||||||
|
export const index = 9;
|
||||||
|
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/9.BuXJ1sn8.js","_app/immutable/chunks/CTXwJjmZ.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BH97ETpZ.js","_app/immutable/chunks/BHRsrugl.js","_app/immutable/chunks/UvStrNyM.js","_app/immutable/chunks/Cf_fsnlT.js","_app/immutable/chunks/CgtTdn_a.js","_app/immutable/chunks/Bysmuwvg.js","_app/immutable/chunks/iYSIr-5j.js","_app/immutable/chunks/mylYChEY.js","_app/immutable/chunks/CeetFYTo.js","_app/immutable/chunks/Qgf5A_kA.js","_app/immutable/chunks/BD8q7RHQ.js","_app/immutable/chunks/Dw-PWoyz.js","_app/immutable/chunks/C3TONo7J.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
||||||
@@ -3,7 +3,7 @@ import { parse } from "devalue";
|
|||||||
import { error, json } from "@sveltejs/kit";
|
import { error, json } from "@sveltejs/kit";
|
||||||
import { s as stringify_remote_arg, f as flatten_issues, c as create_field_proxy, n as normalize_issue, a as set_nested_value, d as deep_set, b as stringify, e as create_remote_key, h as handle_error_and_jsonify } from "./chunks/shared.js";
|
import { s as stringify_remote_arg, f as flatten_issues, c as create_field_proxy, n as normalize_issue, a as set_nested_value, d as deep_set, b as stringify, e as create_remote_key, h as handle_error_and_jsonify } from "./chunks/shared.js";
|
||||||
import { ValidationError, HttpError, SvelteKitError } from "@sveltejs/kit/internal";
|
import { ValidationError, HttpError, SvelteKitError } from "@sveltejs/kit/internal";
|
||||||
import { D as DEV } from "./chunks/false.js";
|
import { b as browser } from "./chunks/false.js";
|
||||||
import { c as base, d as app_dir, p as prerendering } from "./chunks/environment.js";
|
import { c as base, d as app_dir, p as prerendering } from "./chunks/environment.js";
|
||||||
function create_validator(validate_or_fn, maybe_fn) {
|
function create_validator(validate_or_fn, maybe_fn) {
|
||||||
if (!maybe_fn) {
|
if (!maybe_fn) {
|
||||||
@@ -336,7 +336,7 @@ function prerender(validate_or_fn, fn_or_options, maybe_options) {
|
|||||||
const payload = stringify_remote_arg(arg, state.transport);
|
const payload = stringify_remote_arg(arg, state.transport);
|
||||||
const id = __.id;
|
const id = __.id;
|
||||||
const url = `${base}/${app_dir}/remote/${id}${payload ? `/${payload}` : ""}`;
|
const url = `${base}/${app_dir}/remote/${id}${payload ? `/${payload}` : ""}`;
|
||||||
if (!state.prerendering && !DEV && !event.isRemoteRequest) {
|
if (!state.prerendering && !browser && !event.isRemoteRequest) {
|
||||||
try {
|
try {
|
||||||
return await get_response(__, arg, state, async () => {
|
return await get_response(__, arg, state, async () => {
|
||||||
const key = stringify_remote_arg(arg, state.transport);
|
const key = stringify_remote_arg(arg, state.transport);
|
||||||
|
|||||||
Vendored
+34
-30
@@ -26,54 +26,56 @@
|
|||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
declare module '$env/static/private' {
|
declare module '$env/static/private' {
|
||||||
export const VSCODE_GIT_IPC_AUTH_TOKEN: string;
|
export const _ZO_DOCTOR: string;
|
||||||
export const TERM_PROGRAM: string;
|
export const VSCODE_CRASH_REPORTER_PROCESS_TYPE: string;
|
||||||
export const NODE: string;
|
export const NODE: string;
|
||||||
export const TERM: string;
|
export const TERM: string;
|
||||||
export const SHELL: string;
|
export const SHELL: string;
|
||||||
export const HOMEBREW_REPOSITORY: string;
|
export const VSCODE_PROCESS_TITLE: string;
|
||||||
export const TMPDIR: string;
|
export const TMPDIR: string;
|
||||||
export const TERM_PROGRAM_VERSION: string;
|
export const HOMEBREW_REPOSITORY: string;
|
||||||
export const ZDOTDIR: string;
|
|
||||||
export const CURSOR_TRACE_ID: string;
|
|
||||||
export const MallocNanoZone: string;
|
export const MallocNanoZone: string;
|
||||||
|
export const CURSOR_TRACE_ID: string;
|
||||||
|
export const NO_COLOR: string;
|
||||||
export const npm_config_local_prefix: string;
|
export const npm_config_local_prefix: string;
|
||||||
export const USER: string;
|
export const USER: string;
|
||||||
export const COMMAND_MODE: string;
|
export const COMMAND_MODE: string;
|
||||||
export const SSH_AUTH_SOCK: string;
|
export const SSH_AUTH_SOCK: string;
|
||||||
export const VSCODE_PROFILE_INITIALIZED: string;
|
|
||||||
export const __CF_USER_TEXT_ENCODING: string;
|
export const __CF_USER_TEXT_ENCODING: string;
|
||||||
export const npm_execpath: string;
|
export const npm_execpath: string;
|
||||||
export const PATH: string;
|
export const PATH: string;
|
||||||
export const npm_package_json: string;
|
export const npm_package_json: string;
|
||||||
export const _: string;
|
export const _: string;
|
||||||
export const USER_ZDOTDIR: string;
|
|
||||||
export const __CFBundleIdentifier: string;
|
export const __CFBundleIdentifier: string;
|
||||||
export const npm_command: string;
|
export const npm_command: string;
|
||||||
export const PWD: string;
|
export const PWD: string;
|
||||||
|
export const VSCODE_HANDLES_UNCAUGHT_ERRORS: string;
|
||||||
export const npm_lifecycle_event: string;
|
export const npm_lifecycle_event: string;
|
||||||
|
export const VSCODE_ESM_ENTRYPOINT: string;
|
||||||
export const npm_package_name: string;
|
export const npm_package_name: string;
|
||||||
|
export const CURSOR_AGENT: string;
|
||||||
export const LANG: string;
|
export const LANG: string;
|
||||||
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
||||||
export const XPC_FLAGS: string;
|
export const XPC_FLAGS: string;
|
||||||
|
export const FORCE_COLOR: string;
|
||||||
export const npm_package_version: string;
|
export const npm_package_version: string;
|
||||||
export const XPC_SERVICE_NAME: string;
|
export const XPC_SERVICE_NAME: string;
|
||||||
export const VSCODE_INJECTION: string;
|
|
||||||
export const SHLVL: string;
|
export const SHLVL: string;
|
||||||
export const HOME: string;
|
export const HOME: string;
|
||||||
export const VSCODE_GIT_ASKPASS_MAIN: string;
|
export const VSCODE_NLS_CONFIG: string;
|
||||||
|
export const CI: string;
|
||||||
export const HOMEBREW_PREFIX: string;
|
export const HOMEBREW_PREFIX: string;
|
||||||
export const LOGNAME: string;
|
export const LOGNAME: string;
|
||||||
export const npm_lifecycle_script: string;
|
export const npm_lifecycle_script: string;
|
||||||
export const VSCODE_GIT_IPC_HANDLE: string;
|
export const VSCODE_IPC_HOOK: string;
|
||||||
|
export const VSCODE_CODE_CACHE_PATH: string;
|
||||||
export const npm_config_user_agent: string;
|
export const npm_config_user_agent: string;
|
||||||
export const VSCODE_GIT_ASKPASS_NODE: string;
|
export const VSCODE_PID: string;
|
||||||
export const GIT_ASKPASS: string;
|
|
||||||
export const INFOPATH: string;
|
export const INFOPATH: string;
|
||||||
export const HOMEBREW_CELLAR: string;
|
export const HOMEBREW_CELLAR: string;
|
||||||
export const OSLogRateLimit: 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 npm_node_execpath: string;
|
||||||
export const COLORTERM: string;
|
|
||||||
export const NODE_ENV: string;
|
export const NODE_ENV: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,54 +106,56 @@ declare module '$env/static/public' {
|
|||||||
*/
|
*/
|
||||||
declare module '$env/dynamic/private' {
|
declare module '$env/dynamic/private' {
|
||||||
export const env: {
|
export const env: {
|
||||||
VSCODE_GIT_IPC_AUTH_TOKEN: string;
|
_ZO_DOCTOR: string;
|
||||||
TERM_PROGRAM: string;
|
VSCODE_CRASH_REPORTER_PROCESS_TYPE: string;
|
||||||
NODE: string;
|
NODE: string;
|
||||||
TERM: string;
|
TERM: string;
|
||||||
SHELL: string;
|
SHELL: string;
|
||||||
HOMEBREW_REPOSITORY: string;
|
VSCODE_PROCESS_TITLE: string;
|
||||||
TMPDIR: string;
|
TMPDIR: string;
|
||||||
TERM_PROGRAM_VERSION: string;
|
HOMEBREW_REPOSITORY: string;
|
||||||
ZDOTDIR: string;
|
|
||||||
CURSOR_TRACE_ID: string;
|
|
||||||
MallocNanoZone: string;
|
MallocNanoZone: string;
|
||||||
|
CURSOR_TRACE_ID: string;
|
||||||
|
NO_COLOR: string;
|
||||||
npm_config_local_prefix: string;
|
npm_config_local_prefix: string;
|
||||||
USER: string;
|
USER: string;
|
||||||
COMMAND_MODE: string;
|
COMMAND_MODE: string;
|
||||||
SSH_AUTH_SOCK: string;
|
SSH_AUTH_SOCK: string;
|
||||||
VSCODE_PROFILE_INITIALIZED: string;
|
|
||||||
__CF_USER_TEXT_ENCODING: string;
|
__CF_USER_TEXT_ENCODING: string;
|
||||||
npm_execpath: string;
|
npm_execpath: string;
|
||||||
PATH: string;
|
PATH: string;
|
||||||
npm_package_json: string;
|
npm_package_json: string;
|
||||||
_: string;
|
_: string;
|
||||||
USER_ZDOTDIR: string;
|
|
||||||
__CFBundleIdentifier: string;
|
__CFBundleIdentifier: string;
|
||||||
npm_command: string;
|
npm_command: string;
|
||||||
PWD: string;
|
PWD: string;
|
||||||
|
VSCODE_HANDLES_UNCAUGHT_ERRORS: string;
|
||||||
npm_lifecycle_event: string;
|
npm_lifecycle_event: string;
|
||||||
|
VSCODE_ESM_ENTRYPOINT: string;
|
||||||
npm_package_name: string;
|
npm_package_name: string;
|
||||||
|
CURSOR_AGENT: string;
|
||||||
LANG: string;
|
LANG: string;
|
||||||
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
||||||
XPC_FLAGS: string;
|
XPC_FLAGS: string;
|
||||||
|
FORCE_COLOR: string;
|
||||||
npm_package_version: string;
|
npm_package_version: string;
|
||||||
XPC_SERVICE_NAME: string;
|
XPC_SERVICE_NAME: string;
|
||||||
VSCODE_INJECTION: string;
|
|
||||||
SHLVL: string;
|
SHLVL: string;
|
||||||
HOME: string;
|
HOME: string;
|
||||||
VSCODE_GIT_ASKPASS_MAIN: string;
|
VSCODE_NLS_CONFIG: string;
|
||||||
|
CI: string;
|
||||||
HOMEBREW_PREFIX: string;
|
HOMEBREW_PREFIX: string;
|
||||||
LOGNAME: string;
|
LOGNAME: string;
|
||||||
npm_lifecycle_script: string;
|
npm_lifecycle_script: string;
|
||||||
VSCODE_GIT_IPC_HANDLE: string;
|
VSCODE_IPC_HOOK: string;
|
||||||
|
VSCODE_CODE_CACHE_PATH: string;
|
||||||
npm_config_user_agent: string;
|
npm_config_user_agent: string;
|
||||||
VSCODE_GIT_ASKPASS_NODE: string;
|
VSCODE_PID: string;
|
||||||
GIT_ASKPASS: string;
|
|
||||||
INFOPATH: string;
|
INFOPATH: string;
|
||||||
HOMEBREW_CELLAR: string;
|
HOMEBREW_CELLAR: string;
|
||||||
OSLogRateLimit: string;
|
OSLogRateLimit: string;
|
||||||
|
VSCODE_L10N_BUNDLE_LOCATION: string;
|
||||||
|
VSCODE_CWD: string;
|
||||||
npm_node_execpath: string;
|
npm_node_execpath: string;
|
||||||
COLORTERM: string;
|
|
||||||
NODE_ENV: string;
|
NODE_ENV: string;
|
||||||
[key: `PUBLIC_${string}`]: undefined;
|
[key: `PUBLIC_${string}`]: undefined;
|
||||||
[key: `${string}`]: string | undefined;
|
[key: `${string}`]: string | undefined;
|
||||||
|
|||||||
@@ -6,16 +6,28 @@ export const nodes = [
|
|||||||
() => import('./nodes/2'),
|
() => import('./nodes/2'),
|
||||||
() => import('./nodes/3'),
|
() => import('./nodes/3'),
|
||||||
() => import('./nodes/4'),
|
() => import('./nodes/4'),
|
||||||
() => import('./nodes/5')
|
() => import('./nodes/5'),
|
||||||
|
() => import('./nodes/6'),
|
||||||
|
() => import('./nodes/7'),
|
||||||
|
() => import('./nodes/8'),
|
||||||
|
() => import('./nodes/9'),
|
||||||
|
() => import('./nodes/10'),
|
||||||
|
() => import('./nodes/11')
|
||||||
];
|
];
|
||||||
|
|
||||||
export const server_loads = [];
|
export const server_loads = [];
|
||||||
|
|
||||||
export const dictionary = {
|
export const dictionary = {
|
||||||
"/": [~2],
|
"/": [~2],
|
||||||
"/items": [~4],
|
"/accounts": [8],
|
||||||
"/login": [~5],
|
"/items": [~9],
|
||||||
"/logout": [~3]
|
"/items/[id]": [~10],
|
||||||
|
"/login": [~11],
|
||||||
|
"/logout": [~6],
|
||||||
|
"/receipts": [~3],
|
||||||
|
"/receipts/new": [4],
|
||||||
|
"/receipts/[id]": [5],
|
||||||
|
"/transactions": [7]
|
||||||
};
|
};
|
||||||
|
|
||||||
export const hooks = {
|
export const hooks = {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/items/[id]/+page.svelte";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/login/+page.svelte";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/receipts/+page.svelte";
|
||||||
@@ -1 +1 @@
|
|||||||
export { default as component } from "../../../../src/routes/items/+page.svelte";
|
export { default as component } from "../../../../src/routes/receipts/new/+page.svelte";
|
||||||
@@ -1 +1 @@
|
|||||||
export { default as component } from "../../../../src/routes/login/+page.svelte";
|
export { default as component } from "../../../../src/routes/receipts/[id]/+page.svelte";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/transactions/+page.svelte";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/accounts/+page.svelte";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/items/+page.svelte";
|
||||||
@@ -21,10 +21,10 @@ export const options = {
|
|||||||
service_worker: false,
|
service_worker: false,
|
||||||
service_worker_options: undefined,
|
service_worker_options: undefined,
|
||||||
templates: {
|
templates: {
|
||||||
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='4' fill='%231e293b'/><text x='16' y='22' font-size='18' font-family='system-ui' fill='%2394a3b8' text-anchor='middle'>S</text></svg>\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover\" />\n <meta name=\"theme-color\" content=\"#0f172a\" />\n <meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
|
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='4' fill='%231e293b'/><text x='16' y='22' font-size='18' font-family='system-ui' fill='%2394a3b8' text-anchor='middle'>S</text></svg>\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover\" />\n <meta name=\"theme-color\" content=\"#0f172a\" />\n <meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n <meta name=\"apple-mobile-web-app-title\" content=\"Stackq\" />\n <link rel=\"apple-touch-icon\" href=\"/icon.svg\" />\n <link rel=\"manifest\" href=\"/manifest.webmanifest\" />\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"
|
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: "ekcm0i"
|
version_hash: "1lkqwc1"
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function get_hooks() {
|
export async function get_hooks() {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -47,6 +47,6 @@ declare module "$app/types" {
|
|||||||
};
|
};
|
||||||
Pathname(): "/" | "/accounts" | "/items" | `/items/${string}` & {} | "/login" | "/logout" | "/receipts" | "/receipts/new" | `/receipts/${string}` & {} | "/transactions";
|
Pathname(): "/" | "/accounts" | "/items" | `/items/${string}` & {} | "/login" | "/logout" | "/receipts" | "/receipts/new" | `/receipts/${string}` & {} | "/transactions";
|
||||||
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
|
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
|
||||||
Asset(): string & {};
|
Asset(): "/icon.svg" | string & {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,265 +1,470 @@
|
|||||||
{
|
{
|
||||||
|
"../../../../@vite-plugin-pwa/virtual:pwa-register": {
|
||||||
|
"file": "_app/immutable/chunks/QRbP8TAd.js",
|
||||||
|
"name": "virtual_pwa-register",
|
||||||
|
"src": "../../../../@vite-plugin-pwa/virtual:pwa-register",
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_D4nn9Y_6.js"
|
||||||
|
],
|
||||||
|
"dynamicImports": [
|
||||||
|
"node_modules/workbox-window/build/workbox-window.prod.es5.mjs"
|
||||||
|
]
|
||||||
|
},
|
||||||
".svelte-kit/generated/client-optimized/app.js": {
|
".svelte-kit/generated/client-optimized/app.js": {
|
||||||
"file": "_app/immutable/entry/app.c69iw9ai.js",
|
"file": "_app/immutable/entry/app.CjPPJjga.js",
|
||||||
"name": "entry/app",
|
"name": "entry/app",
|
||||||
"src": ".svelte-kit/generated/client-optimized/app.js",
|
"src": ".svelte-kit/generated/client-optimized/app.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_CRDN6Mh7.js",
|
"_D4nn9Y_6.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_DZmckTjd.js",
|
"_Qgf5A_kA.js",
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_25AjRaeI.js",
|
"_CeetFYTo.js",
|
||||||
"_jOLfEXYH.js"
|
"_UvStrNyM.js",
|
||||||
|
"_Cf_fsnlT.js",
|
||||||
|
"_Bysmuwvg.js"
|
||||||
],
|
],
|
||||||
"dynamicImports": [
|
"dynamicImports": [
|
||||||
".svelte-kit/generated/client-optimized/nodes/0.js",
|
".svelte-kit/generated/client-optimized/nodes/0.js",
|
||||||
".svelte-kit/generated/client-optimized/nodes/1.js",
|
".svelte-kit/generated/client-optimized/nodes/1.js",
|
||||||
".svelte-kit/generated/client-optimized/nodes/2.js",
|
".svelte-kit/generated/client-optimized/nodes/2.js",
|
||||||
"_25AjRaeI.js",
|
".svelte-kit/generated/client-optimized/nodes/3.js",
|
||||||
".svelte-kit/generated/client-optimized/nodes/4.js",
|
".svelte-kit/generated/client-optimized/nodes/4.js",
|
||||||
".svelte-kit/generated/client-optimized/nodes/5.js"
|
".svelte-kit/generated/client-optimized/nodes/5.js",
|
||||||
|
"_Cf_fsnlT.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/7.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/8.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/9.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/10.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/11.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
".svelte-kit/generated/client-optimized/nodes/0.js": {
|
".svelte-kit/generated/client-optimized/nodes/0.js": {
|
||||||
"file": "_app/immutable/nodes/0.BXv9ZfXj.js",
|
"file": "_app/immutable/nodes/0.Cxu0NOCO.js",
|
||||||
"name": "nodes/0",
|
"name": "nodes/0",
|
||||||
"src": ".svelte-kit/generated/client-optimized/nodes/0.js",
|
"src": ".svelte-kit/generated/client-optimized/nodes/0.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
|
"_D4nn9Y_6.js",
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_hqfhVoHF.js",
|
"_Bbbv1kr5.js",
|
||||||
"_Dexp9pM5.js"
|
"_CeetFYTo.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_CrWOhwmr.js"
|
||||||
|
],
|
||||||
|
"dynamicImports": [
|
||||||
|
"../../../../@vite-plugin-pwa/virtual:pwa-register"
|
||||||
],
|
],
|
||||||
"css": [
|
"css": [
|
||||||
"_app/immutable/assets/0.DbRKE6YE.css"
|
"_app/immutable/assets/0.B2oeYf4F.css"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
".svelte-kit/generated/client-optimized/nodes/1.js": {
|
".svelte-kit/generated/client-optimized/nodes/1.js": {
|
||||||
"file": "_app/immutable/nodes/1.BT8sl3NL.js",
|
"file": "_app/immutable/nodes/1.C7nmeG9W.js",
|
||||||
"name": "nodes/1",
|
"name": "nodes/1",
|
||||||
"src": ".svelte-kit/generated/client-optimized/nodes/1.js",
|
"src": ".svelte-kit/generated/client-optimized/nodes/1.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_hqfhVoHF.js",
|
"_Bbbv1kr5.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_DZmckTjd.js",
|
"_Qgf5A_kA.js",
|
||||||
"_BapE3c1q.js"
|
"_CrWOhwmr.js",
|
||||||
|
"_mylYChEY.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
".svelte-kit/generated/client-optimized/nodes/2.js": {
|
".svelte-kit/generated/client-optimized/nodes/10.js": {
|
||||||
"file": "_app/immutable/nodes/2.OkkHA0lV.js",
|
"file": "_app/immutable/nodes/10.Bk0Y3XDZ.js",
|
||||||
"name": "nodes/2",
|
"name": "nodes/10",
|
||||||
"src": ".svelte-kit/generated/client-optimized/nodes/2.js",
|
"src": ".svelte-kit/generated/client-optimized/nodes/10.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_CRDN6Mh7.js",
|
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_hqfhVoHF.js",
|
"_BH97ETpZ.js",
|
||||||
"_Dexp9pM5.js",
|
"_Qgf5A_kA.js",
|
||||||
"_DcVg5zjO.js",
|
"_UvStrNyM.js",
|
||||||
"_B12dZE2q.js"
|
"_BR6tTwie.js",
|
||||||
],
|
"_Cf_fsnlT.js",
|
||||||
"dynamicImports": [
|
"_CgtTdn_a.js",
|
||||||
"src/routes/HomeWithDialog.svelte"
|
"_CCY2d7sc.js",
|
||||||
|
"_Dw-PWoyz.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js",
|
||||||
|
"_CBjBL7Hz.js",
|
||||||
|
"_Cr7vHN1I.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
".svelte-kit/generated/client-optimized/nodes/4.js": {
|
".svelte-kit/generated/client-optimized/nodes/11.js": {
|
||||||
"file": "_app/immutable/nodes/4.Bn1qLW0B.js",
|
"file": "_app/immutable/nodes/11.CjZazW5Z.js",
|
||||||
"name": "nodes/4",
|
"name": "nodes/11",
|
||||||
"src": ".svelte-kit/generated/client-optimized/nodes/4.js",
|
"src": ".svelte-kit/generated/client-optimized/nodes/11.js",
|
||||||
"isEntry": true,
|
|
||||||
"imports": [
|
|
||||||
"_BxPgF2w2.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
".svelte-kit/generated/client-optimized/nodes/5.js": {
|
|
||||||
"file": "_app/immutable/nodes/5.u4tkKrg-.js",
|
|
||||||
"name": "nodes/5",
|
|
||||||
"src": ".svelte-kit/generated/client-optimized/nodes/5.js",
|
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_CRDN6Mh7.js",
|
"_D4nn9Y_6.js",
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_DcVg5zjO.js",
|
"_BHRsrugl.js",
|
||||||
"_25AjRaeI.js"
|
"_UvStrNyM.js",
|
||||||
|
"_Cf_fsnlT.js"
|
||||||
],
|
],
|
||||||
"dynamicImports": [
|
"dynamicImports": [
|
||||||
"src/routes/login/LoginForm.svelte"
|
"src/routes/login/LoginForm.svelte"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_25AjRaeI.js": {
|
".svelte-kit/generated/client-optimized/nodes/2.js": {
|
||||||
"file": "_app/immutable/chunks/25AjRaeI.js",
|
"file": "_app/immutable/nodes/2.DgrjDafZ.js",
|
||||||
"name": "3",
|
"name": "nodes/2",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/2.js",
|
||||||
|
"isEntry": true,
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Dexp9pM5.js",
|
"_D4nn9Y_6.js",
|
||||||
"_CRDN6Mh7.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_61AlszRR.js": {
|
|
||||||
"file": "_app/immutable/chunks/61AlszRR.js",
|
|
||||||
"name": "forms",
|
|
||||||
"imports": [
|
|
||||||
"_Dexp9pM5.js",
|
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_CRDN6Mh7.js",
|
"_BH97ETpZ.js",
|
||||||
"_BKSreT2u.js",
|
"_BHRsrugl.js",
|
||||||
"_jOLfEXYH.js",
|
"_UvStrNyM.js",
|
||||||
"_25AjRaeI.js",
|
"_Cf_fsnlT.js",
|
||||||
"_BapE3c1q.js"
|
"_BkOB8zes.js"
|
||||||
|
],
|
||||||
|
"dynamicImports": [
|
||||||
|
"src/routes/HomeWithDialog.svelte"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_B12dZE2q.js": {
|
".svelte-kit/generated/client-optimized/nodes/3.js": {
|
||||||
"file": "_app/immutable/chunks/B12dZE2q.js",
|
"file": "_app/immutable/nodes/3.Db4iBzV-.js",
|
||||||
|
"name": "nodes/3",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/3.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_Qgf5A_kA.js",
|
||||||
|
"_UvStrNyM.js",
|
||||||
|
"_BR6tTwie.js",
|
||||||
|
"_CgtTdn_a.js",
|
||||||
|
"_Dw-PWoyz.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/4.js": {
|
||||||
|
"file": "_app/immutable/nodes/4._j5PA9Ai.js",
|
||||||
|
"name": "nodes/4",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/4.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_Bbbv1kr5.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_CgtTdn_a.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/5.js": {
|
||||||
|
"file": "_app/immutable/nodes/5.C8BgfNn-.js",
|
||||||
|
"name": "nodes/5",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/5.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_Qgf5A_kA.js",
|
||||||
|
"_CgtTdn_a.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/7.js": {
|
||||||
|
"file": "_app/immutable/nodes/7.BT0w3m9a.js",
|
||||||
|
"name": "nodes/7",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/7.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_Bbbv1kr5.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_CgtTdn_a.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/8.js": {
|
||||||
|
"file": "_app/immutable/nodes/8.B6WLTWPS.js",
|
||||||
|
"name": "nodes/8",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/8.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_Bbbv1kr5.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_CgtTdn_a.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/9.js": {
|
||||||
|
"file": "_app/immutable/nodes/9.BuXJ1sn8.js",
|
||||||
|
"name": "nodes/9",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/9.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_CTXwJjmZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_BD8q7RHQ.js": {
|
||||||
|
"file": "_app/immutable/chunks/BD8q7RHQ.js",
|
||||||
|
"name": "events",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_BH97ETpZ.js": {
|
||||||
|
"file": "_app/immutable/chunks/BH97ETpZ.js",
|
||||||
|
"name": "template"
|
||||||
|
},
|
||||||
|
"_BHRsrugl.js": {
|
||||||
|
"file": "_app/immutable/chunks/BHRsrugl.js",
|
||||||
|
"name": "await",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_UvStrNyM.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_BR6tTwie.js": {
|
||||||
|
"file": "_app/immutable/chunks/BR6tTwie.js",
|
||||||
|
"name": "each",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_Bbbv1kr5.js": {
|
||||||
|
"file": "_app/immutable/chunks/Bbbv1kr5.js",
|
||||||
|
"name": "legacy",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_BkOB8zes.js": {
|
||||||
|
"file": "_app/immutable/chunks/BkOB8zes.js",
|
||||||
"name": "button",
|
"name": "button",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_BKSreT2u.js",
|
"_Dw-PWoyz.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_CRDN6Mh7.js",
|
"_UvStrNyM.js",
|
||||||
"_jOLfEXYH.js"
|
"_Bysmuwvg.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_BC20z61P.js": {
|
"_Bysmuwvg.js": {
|
||||||
"file": "_app/immutable/chunks/BC20z61P.js",
|
"file": "_app/immutable/chunks/Bysmuwvg.js",
|
||||||
"name": "svelte-element",
|
"name": "props",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_agKGoZF1.js",
|
"_iYSIr-5j.js"
|
||||||
"_CRDN6Mh7.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_BKSreT2u.js": {
|
|
||||||
"file": "_app/immutable/chunks/BKSreT2u.js",
|
|
||||||
"name": "index",
|
|
||||||
"imports": [
|
|
||||||
"_Dexp9pM5.js",
|
|
||||||
"_CRDN6Mh7.js",
|
|
||||||
"_agKGoZF1.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_BapE3c1q.js": {
|
|
||||||
"file": "_app/immutable/chunks/BapE3c1q.js",
|
|
||||||
"name": "entry",
|
|
||||||
"imports": [
|
|
||||||
"_DZmckTjd.js",
|
|
||||||
"_Dexp9pM5.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_BxPgF2w2.js": {
|
|
||||||
"file": "_app/immutable/chunks/BxPgF2w2.js",
|
|
||||||
"name": "4",
|
|
||||||
"isDynamicEntry": true,
|
|
||||||
"imports": [
|
|
||||||
"_CRDN6Mh7.js",
|
|
||||||
"_Bzak7iHL.js",
|
|
||||||
"_Dexp9pM5.js",
|
|
||||||
"_DcVg5zjO.js",
|
|
||||||
"_25AjRaeI.js",
|
|
||||||
"_BKSreT2u.js",
|
|
||||||
"_BC20z61P.js",
|
|
||||||
"_jOLfEXYH.js"
|
|
||||||
],
|
|
||||||
"dynamicImports": [
|
|
||||||
"src/routes/items/ItemsCrud.svelte"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_Bzak7iHL.js": {
|
"_Bzak7iHL.js": {
|
||||||
"file": "_app/immutable/chunks/Bzak7iHL.js",
|
"file": "_app/immutable/chunks/Bzak7iHL.js",
|
||||||
"name": "disclose-version"
|
"name": "disclose-version"
|
||||||
},
|
},
|
||||||
"_CRDN6Mh7.js": {
|
"_BzfwckE1.js": {
|
||||||
"file": "_app/immutable/chunks/CRDN6Mh7.js",
|
"file": "_app/immutable/chunks/BzfwckE1.js",
|
||||||
"name": "preload-helper",
|
|
||||||
"imports": [
|
|
||||||
"_Dexp9pM5.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_CsnJU1X_.js": {
|
|
||||||
"file": "_app/immutable/chunks/CsnJU1X_.js",
|
|
||||||
"name": "card-content",
|
"name": "card-content",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_BKSreT2u.js",
|
"_Dw-PWoyz.js",
|
||||||
"_jOLfEXYH.js"
|
"_Bysmuwvg.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_DZmckTjd.js": {
|
"_C3TONo7J.js": {
|
||||||
"file": "_app/immutable/chunks/DZmckTjd.js",
|
"file": "_app/immutable/chunks/C3TONo7J.js",
|
||||||
|
"name": "svelte-element",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_BD8q7RHQ.js",
|
||||||
|
"_UvStrNyM.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_CBjBL7Hz.js": {
|
||||||
|
"file": "_app/immutable/chunks/CBjBL7Hz.js",
|
||||||
|
"name": "card-header",
|
||||||
|
"imports": [
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_Dw-PWoyz.js",
|
||||||
|
"_Bysmuwvg.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_CCY2d7sc.js": {
|
||||||
|
"file": "_app/immutable/chunks/CCY2d7sc.js",
|
||||||
|
"name": "label",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_mylYChEY.js",
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_UvStrNyM.js",
|
||||||
|
"_Dw-PWoyz.js",
|
||||||
|
"_Bysmuwvg.js",
|
||||||
|
"_Cf_fsnlT.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_CTXwJjmZ.js": {
|
||||||
|
"file": "_app/immutable/chunks/CTXwJjmZ.js",
|
||||||
|
"name": "9",
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_D4nn9Y_6.js",
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_BHRsrugl.js",
|
||||||
|
"_UvStrNyM.js",
|
||||||
|
"_Cf_fsnlT.js",
|
||||||
|
"_CgtTdn_a.js",
|
||||||
|
"_Bysmuwvg.js",
|
||||||
|
"_mylYChEY.js",
|
||||||
|
"_Dw-PWoyz.js",
|
||||||
|
"_C3TONo7J.js"
|
||||||
|
],
|
||||||
|
"dynamicImports": [
|
||||||
|
"src/routes/items/ItemsCrud.svelte"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_CeetFYTo.js": {
|
||||||
|
"file": "_app/immutable/chunks/CeetFYTo.js",
|
||||||
"name": "index-client",
|
"name": "index-client",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_agKGoZF1.js"
|
"_Qgf5A_kA.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_DcVg5zjO.js": {
|
"_Cf_fsnlT.js": {
|
||||||
"file": "_app/immutable/chunks/DcVg5zjO.js",
|
"file": "_app/immutable/chunks/Cf_fsnlT.js",
|
||||||
"name": "await",
|
"name": "6",
|
||||||
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_CRDN6Mh7.js"
|
"_UvStrNyM.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_Dexp9pM5.js": {
|
"_CgtTdn_a.js": {
|
||||||
"file": "_app/immutable/chunks/Dexp9pM5.js",
|
"file": "_app/immutable/chunks/CgtTdn_a.js",
|
||||||
"name": "template"
|
"name": "svelte-head",
|
||||||
},
|
|
||||||
"_agKGoZF1.js": {
|
|
||||||
"file": "_app/immutable/chunks/agKGoZF1.js",
|
|
||||||
"name": "events",
|
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Dexp9pM5.js"
|
"_BH97ETpZ.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_hqfhVoHF.js": {
|
"_Cr7vHN1I.js": {
|
||||||
"file": "_app/immutable/chunks/hqfhVoHF.js",
|
"file": "_app/immutable/chunks/Cr7vHN1I.js",
|
||||||
"name": "legacy",
|
|
||||||
"imports": [
|
|
||||||
"_Dexp9pM5.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_iABcLwh6.js": {
|
|
||||||
"file": "_app/immutable/chunks/iABcLwh6.js",
|
|
||||||
"name": "ItemForm",
|
"name": "ItemForm",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_25AjRaeI.js",
|
"_Cf_fsnlT.js",
|
||||||
"_jOLfEXYH.js",
|
"_Bysmuwvg.js",
|
||||||
"_BKSreT2u.js",
|
"_Dw-PWoyz.js",
|
||||||
"_61AlszRR.js",
|
"_CCY2d7sc.js",
|
||||||
"_CRDN6Mh7.js",
|
"_UvStrNyM.js",
|
||||||
"_DZmckTjd.js",
|
"_Qgf5A_kA.js",
|
||||||
"_agKGoZF1.js",
|
"_BR6tTwie.js",
|
||||||
"_B12dZE2q.js",
|
"_C3TONo7J.js",
|
||||||
"_BC20z61P.js"
|
"_BD8q7RHQ.js",
|
||||||
|
"_D4nn9Y_6.js",
|
||||||
|
"_BkOB8zes.js"
|
||||||
],
|
],
|
||||||
"dynamicImports": [
|
"dynamicImports": [
|
||||||
"node_modules/barcode-detector-api-polyfill/esm/index.js"
|
"node_modules/barcode-detector-api-polyfill/esm/index.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_jOLfEXYH.js": {
|
"_CrWOhwmr.js": {
|
||||||
"file": "_app/immutable/chunks/jOLfEXYH.js",
|
"file": "_app/immutable/chunks/CrWOhwmr.js",
|
||||||
"name": "props",
|
"name": "lifecycle",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Dexp9pM5.js"
|
"_BH97ETpZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_D4nn9Y_6.js": {
|
||||||
|
"file": "_app/immutable/chunks/D4nn9Y_6.js",
|
||||||
|
"name": "preload-helper"
|
||||||
|
},
|
||||||
|
"_DfWA6mBJ.js": {
|
||||||
|
"file": "_app/immutable/chunks/DfWA6mBJ.js",
|
||||||
|
"name": "BarcodeScanDialog",
|
||||||
|
"imports": [
|
||||||
|
"_D4nn9Y_6.js",
|
||||||
|
"_Bzak7iHL.js",
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_Qgf5A_kA.js",
|
||||||
|
"_UvStrNyM.js",
|
||||||
|
"_Cf_fsnlT.js",
|
||||||
|
"_Bysmuwvg.js",
|
||||||
|
"_BkOB8zes.js",
|
||||||
|
"_CCY2d7sc.js",
|
||||||
|
"_Cr7vHN1I.js"
|
||||||
|
],
|
||||||
|
"dynamicImports": [
|
||||||
|
"node_modules/barcode-detector-api-polyfill/esm/index.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_Dw-PWoyz.js": {
|
||||||
|
"file": "_app/immutable/chunks/Dw-PWoyz.js",
|
||||||
|
"name": "index",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_UvStrNyM.js",
|
||||||
|
"_BD8q7RHQ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_Qgf5A_kA.js": {
|
||||||
|
"file": "_app/immutable/chunks/Qgf5A_kA.js",
|
||||||
|
"name": "render",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js",
|
||||||
|
"_BD8q7RHQ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_UvStrNyM.js": {
|
||||||
|
"file": "_app/immutable/chunks/UvStrNyM.js",
|
||||||
|
"name": "if",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_iYSIr-5j.js": {
|
||||||
|
"file": "_app/immutable/chunks/iYSIr-5j.js",
|
||||||
|
"name": "index",
|
||||||
|
"imports": [
|
||||||
|
"_BH97ETpZ.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_mylYChEY.js": {
|
||||||
|
"file": "_app/immutable/chunks/mylYChEY.js",
|
||||||
|
"name": "entry",
|
||||||
|
"imports": [
|
||||||
|
"_CeetFYTo.js",
|
||||||
|
"_iYSIr-5j.js",
|
||||||
|
"_BH97ETpZ.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@sveltejs/kit/src/runtime/client/entry.js": {
|
"node_modules/@sveltejs/kit/src/runtime/client/entry.js": {
|
||||||
"file": "_app/immutable/entry/start.BXvCRdku.js",
|
"file": "_app/immutable/entry/start.DFCcf04d.js",
|
||||||
"name": "entry/start",
|
"name": "entry/start",
|
||||||
"src": "node_modules/@sveltejs/kit/src/runtime/client/entry.js",
|
"src": "node_modules/@sveltejs/kit/src/runtime/client/entry.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_BapE3c1q.js"
|
"_mylYChEY.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/barcode-detector-api-polyfill/esm/index.js": {
|
"node_modules/barcode-detector-api-polyfill/esm/index.js": {
|
||||||
@@ -268,56 +473,69 @@
|
|||||||
"src": "node_modules/barcode-detector-api-polyfill/esm/index.js",
|
"src": "node_modules/barcode-detector-api-polyfill/esm/index.js",
|
||||||
"isDynamicEntry": true
|
"isDynamicEntry": true
|
||||||
},
|
},
|
||||||
|
"node_modules/workbox-window/build/workbox-window.prod.es5.mjs": {
|
||||||
|
"file": "_app/immutable/chunks/BIl4cyR9.js",
|
||||||
|
"name": "workbox-window.prod.es5",
|
||||||
|
"src": "node_modules/workbox-window/build/workbox-window.prod.es5.mjs",
|
||||||
|
"isDynamicEntry": true
|
||||||
|
},
|
||||||
"src/routes/HomeWithDialog.svelte": {
|
"src/routes/HomeWithDialog.svelte": {
|
||||||
"file": "_app/immutable/chunks/DXZbZvqb.js",
|
"file": "_app/immutable/chunks/-Dy1WTy5.js",
|
||||||
"name": "HomeWithDialog",
|
"name": "HomeWithDialog",
|
||||||
"src": "src/routes/HomeWithDialog.svelte",
|
"src": "src/routes/HomeWithDialog.svelte",
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_25AjRaeI.js",
|
"_Cf_fsnlT.js",
|
||||||
"_B12dZE2q.js",
|
"_BkOB8zes.js",
|
||||||
"_iABcLwh6.js",
|
"_Cr7vHN1I.js",
|
||||||
"_BapE3c1q.js"
|
"_DfWA6mBJ.js",
|
||||||
|
"_mylYChEY.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/routes/items/ItemsCrud.svelte": {
|
"src/routes/items/ItemsCrud.svelte": {
|
||||||
"file": "_app/immutable/chunks/DRlIEfz1.js",
|
"file": "_app/immutable/chunks/MgOscCPv.js",
|
||||||
"name": "ItemsCrud",
|
"name": "ItemsCrud",
|
||||||
"src": "src/routes/items/ItemsCrud.svelte",
|
"src": "src/routes/items/ItemsCrud.svelte",
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_DZmckTjd.js",
|
"_Qgf5A_kA.js",
|
||||||
"_CRDN6Mh7.js",
|
"_UvStrNyM.js",
|
||||||
"_iABcLwh6.js",
|
"_BR6tTwie.js",
|
||||||
"_25AjRaeI.js",
|
"_Cf_fsnlT.js",
|
||||||
"_BxPgF2w2.js",
|
"_CgtTdn_a.js",
|
||||||
"_61AlszRR.js",
|
"_CCY2d7sc.js",
|
||||||
"_BKSreT2u.js",
|
"_Dw-PWoyz.js",
|
||||||
"_jOLfEXYH.js",
|
"_Bysmuwvg.js",
|
||||||
"_B12dZE2q.js",
|
"_CTXwJjmZ.js",
|
||||||
"_CsnJU1X_.js"
|
"_BkOB8zes.js",
|
||||||
|
"_BzfwckE1.js",
|
||||||
|
"_Cr7vHN1I.js",
|
||||||
|
"_CeetFYTo.js",
|
||||||
|
"_mylYChEY.js",
|
||||||
|
"_DfWA6mBJ.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/routes/login/LoginForm.svelte": {
|
"src/routes/login/LoginForm.svelte": {
|
||||||
"file": "_app/immutable/chunks/BDMwQRor.js",
|
"file": "_app/immutable/chunks/DvdI6Px1.js",
|
||||||
"name": "LoginForm",
|
"name": "LoginForm",
|
||||||
"src": "src/routes/login/LoginForm.svelte",
|
"src": "src/routes/login/LoginForm.svelte",
|
||||||
"isDynamicEntry": true,
|
"isDynamicEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Bzak7iHL.js",
|
"_Bzak7iHL.js",
|
||||||
"_Dexp9pM5.js",
|
"_BH97ETpZ.js",
|
||||||
"_DZmckTjd.js",
|
"_Qgf5A_kA.js",
|
||||||
"_CRDN6Mh7.js",
|
"_UvStrNyM.js",
|
||||||
"_25AjRaeI.js",
|
"_Cf_fsnlT.js",
|
||||||
"_61AlszRR.js",
|
"_CCY2d7sc.js",
|
||||||
"_CsnJU1X_.js",
|
"_BzfwckE1.js",
|
||||||
"_BKSreT2u.js",
|
"_Dw-PWoyz.js",
|
||||||
"_jOLfEXYH.js",
|
"_Bysmuwvg.js",
|
||||||
"_B12dZE2q.js"
|
"_CBjBL7Hz.js",
|
||||||
|
"_BkOB8zes.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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{p as vt,i as f,s as r,o as n,q as l,t as o,j as e,y as u,v as i,h as $t,g as v,m as ht,A as K,k as W,l as F}from"./BH97ETpZ.js";import{c as d}from"./Cf_fsnlT.js";import{B as c}from"./BkOB8zes.js";import{D as pt,a as _t,b as xt,c as wt,I as gt,d as Pt}from"./Cr7vHN1I.js";import{B as kt}from"./DfWA6mBJ.js";import{g as B}from"./mylYChEY.js";var bt=F("<!> <!>",1),Dt=F("<!> <!>",1),St=F('<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-6 sm:p-8"><h1 class="w-full max-w-xs text-center text-2xl font-semibold">Stackq</h1> <div class="flex w-full max-w-xs flex-col gap-3"><!> <a href="/transactions" class="block"><!></a> <a href="/receipts/new" class="block"><!></a> <!></div> <div class="w-full max-w-xs border-t pt-4"></div> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block"><!></a> <a href="/transactions" class="block"><!></a> <a href="/receipts" class="block"><!></a> <a href="/accounts" class="block"><!></a> <a href="/logout" class="block"><!></a></div></main> <!> <!>',1);function Ct(z,$){vt($,!0);let m=K(!1),h=K(!1);const E=W(()=>{var t;return((t=$.data)==null?void 0:t.items)??[]}),G=W(()=>{var t;return((t=$.data)==null?void 0:t.itemsForParent)??[]});function J(){u(m,!1),B("/items")}function M(t){const s=t.trim(),a=v(E).find(C=>(C.SKU??"").trim()===s);a?B("/items/"+a.id):B("/items?q="+encodeURIComponent(s))}var N=St(),p=f(N),_=r(n(p),2),R=n(_);c(R,{class:"h-16 min-h-16 w-full",onclick:()=>u(h,!0),children:(t,s)=>{l();var a=o("Scan");e(t,a)},$$slots:{default:!0}});var x=r(R,2),Q=n(x);c(Q,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("New Transaction");e(t,a)},$$slots:{default:!0}}),i(x);var w=r(x,2),V=n(w);c(V,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("New receipt");e(t,a)},$$slots:{default:!0}}),i(w);var X=r(w,2);c(X,{class:"h-16 min-h-16 w-full",variant:"outline",onclick:()=>u(m,!0),children:(t,s)=>{l();var a=o("New Item");e(t,a)},$$slots:{default:!0}}),i(_);var y=r(_,4),g=n(y),Y=n(g);c(Y,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Items");e(t,a)},$$slots:{default:!0}}),i(g);var P=r(g,2),Z=n(P);c(Z,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Transactions");e(t,a)},$$slots:{default:!0}}),i(P);var k=r(P,2),tt=n(k);c(tt,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Receipts");e(t,a)},$$slots:{default:!0}}),i(k);var b=r(k,2),at=n(b);c(at,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Accounts");e(t,a)},$$slots:{default:!0}}),i(b);var A=r(b,2),et=n(A);c(et,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Log out");e(t,a)},$$slots:{default:!0}}),i(A),i(y),i(p);var j=r(p,2);d(j,()=>Pt,(t,s)=>{s(t,{get open(){return v(m)},set open(a){u(m,a,!0)},children:(a,C)=>{var L=$t(),rt=f(L);d(rt,()=>pt,(lt,ot)=>{ot(lt,{class:"max-h-[90dvh] w-[calc(100vw-2rem)] max-w-[500px] overflow-y-auto rounded-lg sm:w-full",children:(nt,It)=>{var O=Dt(),T=f(O);d(T,()=>_t,(ct,ut)=>{ut(ct,{children:(dt,qt)=>{var U=bt(),H=f(U);d(H,()=>xt,(D,S)=>{S(D,{children:(I,ft)=>{l();var q=o("New item");e(I,q)},$$slots:{default:!0}})});var mt=r(H,2);d(mt,()=>wt,(D,S)=>{S(D,{children:(I,ft)=>{l();var q=o("Add a new Stackq item.");e(I,q)},$$slots:{default:!0}})}),e(dt,U)},$$slots:{default:!0}})});var it=r(T,2);gt(it,{get itemsForParent(){return v(G)},action:"/items?/create",submitLabel:"Create",onSuccess:J}),e(nt,O)},$$slots:{default:!0}})}),e(a,L)},$$slots:{default:!0}})});var st=r(j,2);kt(st,{onResult:M,title:"Scan to look up item",get open(){return v(h)},set open(t){u(h,t,!0)}}),e(z,N),ht()}export{Ct as default};
|
||||||
@@ -1 +0,0 @@
|
|||||||
import{i as c,j as s,l,L as i}from"./Dexp9pM5.js";import{B as _}from"./CRDN6Mh7.js";function f(n,o,r){c&&s();var a=new _(n);l(()=>{var e=o()??null;a.ensure(e,e&&(t=>r(t,e)))},i)}const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{u as _,f as c};
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
import"./Bzak7iHL.js";import{t as j,a as b,s as f,c as g}from"./BKSreT2u.js";import{A,c as G,f as P,a as d,G as T,h,r as m,b as k,T as x}from"./Dexp9pM5.js";import{i as q}from"./CRDN6Mh7.js";import{p as r,b as p,r as C}from"./jOLfEXYH.js";const y=j({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 shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var D=k("<a><!></a>"),E=k("<button><!></button>");function L(_,e){A(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),c=r(e,"href",3,void 0),z=r(e,"type",3,"button"),v=C(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=G(),w=P(u);{var B=i=>{var a=D();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:c(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...v}),[()=>g(y({variant:o(),size:l()}),e.class)]);var n=h(a);f(n,()=>e.children??x),m(a),p(a,t=>s(t),()=>s()),d(i,a)},V=i=>{var a=E();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...v}),[()=>g(y({variant:o(),size:l()}),e.class)]);var n=h(a);f(n,()=>e.children??x),m(a),p(a,t=>s(t),()=>s()),d(i,a)};q(w,i=>{c()?i(B):i(V,!1)})}d(_,u),T()}export{L as B};
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
import{i as a,j as d,J as s,K as E,l as v,L as y,M as h,N,O as x,P as T,Q as w,o as _,s as r,R as A,S as C}from"./Dexp9pM5.js";import{i as M}from"./agKGoZF1.js";import{B as S}from"./CRDN6Mh7.js";function L(m,u,c,i,b,P){let p=a;a&&d();var e=null;a&&s.nodeType===E&&(e=s,d());var l=a?s:m,f=new S(l,!1);v(()=>{const t=u()||null;var g=c||t==="svg"?N:void 0;if(t===null){f.ensure(null,null);return}return f.ensure(t,o=>{if(t){if(e=a?e:h(t,g),x(e,e),i){a&&M(t)&&e.append(document.createComment(""));var n=a?T(e):e.appendChild(w());a&&(n===null?_(!1):r(n)),i(e,n)}A.nodes.end=e,o.before(e)}a&&r(o)}),()=>{}},y),C(()=>{}),p&&(_(!0),r(l))}export{L as e};
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{aD as S,aE as b,aF as E,aG as T,a4 as m,Q as L,aH as A}from"./BH97ETpZ.js";function B(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const V=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function R(t){return V.includes(t)}const x={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function j(t){return t=t.toLowerCase(),x[t]??t}const I=["touchstart","touchmove"];function q(t){return I.includes(t)}const N=["textarea","script","style","title"];function C(t){return N.includes(t)}const i=Symbol("events"),P=new Set,D=new Set;function M(t,e,r,u={}){function o(a){if(u.capture||O.call(e,a),!a.cancelBubble)return A(()=>r==null?void 0:r.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,o,u)}):e.addEventListener(t,o,u),o}function F(t,e,r,u={}){var o=M(e,t,r,u);return()=>{t.removeEventListener(e,o,u)}}function G(t,e,r){(e[i]??(e[i]={}))[t]=r}function z(t){for(var e=0;e<t.length;e++)P.add(t[e]);for(var r of D)r(t)}let w=null;function O(t){var v,g;var e=this,r=e.ownerDocument,u=t.type,o=((v=t.composedPath)==null?void 0:v.call(t))||[],a=o[0]||t.target;w=t;var f=0,d=w===t&&t[i];if(d){var s=o.indexOf(d);if(s!==-1&&(e===document||e===window)){t[i]=e;return}var p=o.indexOf(e);if(p===-1)return;s<=p&&(f=s)}if(a=o[f]||t.target,a!==e){S(t,"currentTarget",{configurable:!0,get(){return a||r}});var y=T,k=m;b(null),E(null);try{for(var c,_=[];a!==null;){var l=a.assignedSlot||a.parentNode||a.host||null;try{var h=(g=a[i])==null?void 0:g[u];h!=null&&(!a.disabled||t.target===a)&&h.call(a,t)}catch(n){c?_.push(n):c=n}if(t.cancelBubble||l===e||l===null)break;a=l}if(c){for(let n of _)queueMicrotask(()=>{throw n});throw c}}finally{t[i]=e,delete t.currentTarget,b(y),E(k)}}}export{P as a,q as b,B as c,G as d,z as e,M as f,R as g,O as h,C as i,j as n,F as o,D as r};
|
||||||
@@ -1 +0,0 @@
|
|||||||
import"./Bzak7iHL.js";import{A as C,h as i,T,r as n,a as o,G as L,b as h,c as U,f as I,D as $,E as y,C as p,g as V,u as W,az as X}from"./Dexp9pM5.js";import{s as Y}from"./DZmckTjd.js";import{i as Z}from"./CRDN6Mh7.js";import{c as b}from"./25AjRaeI.js";import{L as J,I as K,a as ee,e as re}from"./61AlszRR.js";import{C as ae,a as te}from"./CsnJU1X_.js";import{a as j,c as k,s as z}from"./BKSreT2u.js";import{p as A,b as D,r as G}from"./jOLfEXYH.js";import{B as se}from"./B12dZE2q.js";var oe=h("<p><!></p>");function de(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();j(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>k("text-muted-foreground text-sm",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("<div><!></div>");function ie(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();j(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>k("@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);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("<div><!></div>");function ce(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();j(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>k("leading-none font-semibold",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(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 Le(c,e){C(e,!0);var d=U(),u=I(d);b(u,()=>te,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var O=me(),S=I(O);b(S,()=>ie,(E,q)=>{q(E,{children:(B,N)=>{var f=ue(),g=I(f);b(g,()=>ce,(x,m)=>{m(x,{children:(_,F)=>{$();var w=y("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);b(P,()=>de,(x,m)=>{m(x,{children:(_,F)=>{$();var w=y("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(B,f)},$$slots:{default:!0}})});var M=p(S,2);b(M,()=>ae,(E,q)=>{q(E,{children:(B,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=y("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),F=i(_);J(F,{for:"password",children:(a,t)=>{$();var l=y("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=y("Login");o(a,l)},$$slots:{default:!0}}),n(f),ee(f,(a,t)=>{var l;return(l=re)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(B,f)},$$slots:{default:!0}})}),o(s,O)},$$slots:{default:!0}})}),o(c,d),L()}export{Le as default};
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
import{D as n,L as S,M as g,C as w,N as p,O as x,I as A,P as B,G as c,Q as L,R as v,S as R,T as G,U as H,V as M,W as T,X as O,Y as E,Z as P}from"./BH97ETpZ.js";import{B as U}from"./UvStrNyM.js";const b=0,_=1;function q(m,k,y,r,l){n&&S();var h=g(),t=O,i=h?T(t):E(t,!1,!1),o=h?T(t):E(t,!1,!1),s=new U(m);w(()=>{var u=k(),I=!1;let N=n&&p(u)===(m.data===x);if(N&&(A(B()),c(!1)),p(u)){var D=P(),d=!1;const a=e=>{if(!I){d=!0,D(!1),R.ensure(),n&&c(!1);try{e()}finally{G(),H||M()}}};u.then(e=>{a(()=>{v(i,e),s.ensure(_,r&&(f=>r(f,i)))})},e=>{a(()=>{if(v(o,e),s.ensure(_,l&&(f=>l(f,o))),!l)throw o.v})}),n?s.ensure(b,y):L(()=>{d||a(()=>{s.ensure(b,y)})})}else v(i,u),s.ensure(_,r&&(a=>r(a,i)));return N&&c(!0),()=>{I=!0}})}export{q as a};
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
try{self["workbox:window:7.3.0"]&&_()}catch{}function b(n,r){return new Promise((function(t){var o=new MessageChannel;o.port1.onmessage=function(f){t(f.data)},n.postMessage(r,[o.port2])}))}function P(n,r){(r==null||r>n.length)&&(r=n.length);for(var t=0,o=Array(r);t<r;t++)o[t]=n[t];return o}function j(n,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,W(o.key),o)}}function S(n,r){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=(function(f,c){if(f){if(typeof f=="string")return P(f,c);var a={}.toString.call(f).slice(8,-1);return a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set"?Array.from(f):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?P(f,c):void 0}})(n))||r){t&&(n=t);var o=0;return function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||||||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(n,r){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},w(n,r)}function W(n){var r=(function(t,o){if(typeof t!="object"||!t)return t;var f=t[Symbol.toPrimitive];if(f!==void 0){var c=f.call(t,o);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)})(n,"string");return typeof r=="symbol"?r:r+""}try{self["workbox:core:7.3.0"]&&_()}catch{}var m=function(){var n=this;this.promise=new Promise((function(r,t){n.resolve=r,n.reject=t}))};function y(n,r){var t=location.href;return new URL(n,t).href===new URL(r,t).href}var d=function(n,r){this.type=n,Object.assign(this,r)};function l(n,r,t){return t?r?r(n):n:(n&&n.then||(n=Promise.resolve(n)),r?n.then(r):n)}function k(){}var L={type:"SKIP_WAITING"};function E(n,r){return n&&n.then?n.then(k):Promise.resolve()}var O=(function(n){function r(c,a){var e,i;return a===void 0&&(a={}),(e=n.call(this)||this).nn={},e.tn=0,e.rn=new m,e.en=new m,e.on=new m,e.un=0,e.an=new Set,e.cn=function(){var u=e.fn,s=u.installing;e.tn>0||!y(s.scriptURL,e.sn.toString())||performance.now()>e.un+6e4?(e.vn=s,u.removeEventListener("updatefound",e.cn)):(e.hn=s,e.an.add(s),e.rn.resolve(s)),++e.tn,s.addEventListener("statechange",e.ln)},e.ln=function(u){var s=e.fn,v=u.target,h=v.state,p=v===e.vn,g={sw:v,isExternal:p,originalEvent:u};!p&&e.mn&&(g.isUpdate=!0),e.dispatchEvent(new d(h,g)),h==="installed"?e.wn=self.setTimeout((function(){h==="installed"&&s.waiting===v&&e.dispatchEvent(new d("waiting",g))}),200):h==="activating"&&(clearTimeout(e.wn),p||e.en.resolve(v))},e.yn=function(u){var s=e.hn,v=s!==navigator.serviceWorker.controller;e.dispatchEvent(new d("controlling",{isExternal:v,originalEvent:u,sw:s,isUpdate:e.mn})),v||e.on.resolve(s)},e.gn=(i=function(u){var s=u.data,v=u.ports,h=u.source;return l(e.getSW(),(function(){e.an.has(h)&&e.dispatchEvent(new d("message",{data:s,originalEvent:u,ports:v,sw:h}))}))},function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];try{return Promise.resolve(i.apply(this,u))}catch(v){return Promise.reject(v)}}),e.sn=c,e.nn=a,navigator.serviceWorker.addEventListener("message",e.gn),e}var t,o;o=n,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,w(t,o);var f=r.prototype;return f.register=function(c){var a=(c===void 0?{}:c).immediate,e=a!==void 0&&a;try{var i=this;return l((function(u,s){var v=u();return v&&v.then?v.then(s):s(v)})((function(){if(!e&&document.readyState!=="complete")return E(new Promise((function(u){return window.addEventListener("load",u)})))}),(function(){return i.mn=!!navigator.serviceWorker.controller,i.dn=i.pn(),l(i.bn(),(function(u){i.fn=u,i.dn&&(i.hn=i.dn,i.en.resolve(i.dn),i.on.resolve(i.dn),i.dn.addEventListener("statechange",i.ln,{once:!0}));var s=i.fn.waiting;return s&&y(s.scriptURL,i.sn.toString())&&(i.hn=s,Promise.resolve().then((function(){i.dispatchEvent(new d("waiting",{sw:s,wasWaitingBeforeRegister:!0}))})).then((function(){}))),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.yn),i.fn}))})))}catch(u){return Promise.reject(u)}},f.update=function(){try{return this.fn?l(E(this.fn.update())):l()}catch(c){return Promise.reject(c)}},f.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(c){try{return l(this.getSW(),(function(a){return b(a,c)}))}catch(a){return Promise.reject(a)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&b(this.fn.waiting,L)},f.pn=function(){var c=navigator.serviceWorker.controller;return c&&y(c.scriptURL,this.sn.toString())?c:void 0},f.bn=function(){try{var c=this;return l((function(a,e){try{var i=a()}catch(u){return e(u)}return i&&i.then?i.then(void 0,e):i})((function(){return l(navigator.serviceWorker.register(c.sn,c.nn),(function(a){return c.un=performance.now(),a}))}),(function(a){throw a})))}catch(a){return Promise.reject(a)}},(function(c,a,e){return a&&j(c.prototype,a),Object.defineProperty(c,"prototype",{writable:!1}),c})(r,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])})((function(){function n(){this.Pn=new Map}var r=n.prototype;return r.addEventListener=function(t,o){this.jn(t).add(o)},r.removeEventListener=function(t,o){this.jn(t).delete(o)},r.dispatchEvent=function(t){t.target=this;for(var o,f=S(this.jn(t.type));!(o=f()).done;)(0,o.value)(t)},r.jn=function(t){return this.Pn.has(t)||this.Pn.set(t,new Set),this.Pn.get(t)},n})());export{O as Workbox,d as WorkboxEvent,b as messageSW};
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
import{D as k,I as z,K as fe,B as L,L as ie,C as le,g as Z,a6 as ue,O as se,P as $,G as q,J as F,E as oe,a7 as ve,R as y,a8 as te,a9 as Y,aa as de,ab as ce,ac as pe,ad as _e,ae as G,af as he,W as j,ag as ge,ah as Ee,Y as me,ai as T,aj as re,ak as ne,al as ae,am as B,Q as Te,an as Ce,ao as Ae,ap as Ie,aq as we,F as Ne}from"./BH97ETpZ.js";function ke(e,i){return i}function Se(e,i,l){for(var t=[],g=i.length,s,u=i.length,c=0;c<g;c++){let E=i[c];ae(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;V(G(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var f=t.length===0&&l!==null;if(f){var v=l,n=v.parentNode;Ie(n),n.append(v),e.items.clear()}V(i,!f)}else s={pending:new Set(i),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function V(e,i=!0){for(var l=0;l<e.length;l++)we(e[l],i)}var ee;function De(e,i,l,t,g,s=null){var u=e,c=new Map,f=(i&re)!==0;if(f){var v=e;u=k?z(fe(v)):v.appendChild(L())}k&&ie();var n=null,E=pe(()=>{var a=l();return _e(a)?a:a==null?[]:G(a)}),o,d=!0;function A(){r.fallback=n,xe(r,o,u,i,t),n!==null&&(o.length===0?(n.f&T)===0?ne(n):(n.f^=T,H(n,null,u)):ae(n,()=>{n=null}))}var N=le(()=>{o=Z(E);var a=o.length;let S=!1;if(k){var x=ue(u)===se;x!==(a===0)&&(u=$(),z(u),q(!1),S=!0)}for(var _=new Set,I=te,R=ce(),p=0;p<a;p+=1){k&&F.nodeType===oe&&F.data===ve&&(u=F,S=!0,q(!1));var w=o[p],b=t(w,p),h=d?null:c.get(b);h?(h.v&&y(h.v,w),h.i&&y(h.i,p),R&&I.unskip_effect(h.e)):(h=Re(c,d?u:ee??(ee=L()),w,b,p,g,i,l),d||(h.e.f|=T),c.set(b,h)),_.add(b)}if(a===0&&s&&!n&&(d?n=Y(()=>s(u)):(n=Y(()=>s(ee??(ee=L()))),n.f|=T)),a>_.size&&de(),k&&a>0&&z($()),!d)if(R){for(const[M,O]of c)_.has(M)||I.skip_effect(O.e);I.oncommit(A),I.ondiscard(()=>{})}else A();S&&q(!0),Z(E)}),r={effect:N,items:c,outrogroups:null,fallback:n};d=!1,k&&(u=F)}function D(e){for(;e!==null&&(e.f&Ce)===0;)e=e.next;return e}function xe(e,i,l,t,g){var h,M,O,J,K,P,Q,U,W;var s=(t&Ae)!==0,u=i.length,c=e.items,f=D(e.effect.first),v,n=null,E,o=[],d=[],A,N,r,a;if(s)for(a=0;a<u;a+=1)A=i[a],N=g(A,a),r=c.get(N).e,(r.f&T)===0&&((M=(h=r.nodes)==null?void 0:h.a)==null||M.measure(),(E??(E=new Set)).add(r));for(a=0;a<u;a+=1){if(A=i[a],N=g(A,a),r=c.get(N).e,e.outrogroups!==null)for(const m of e.outrogroups)m.pending.delete(r),m.done.delete(r);if((r.f&T)!==0)if(r.f^=T,r===f)H(r,null,l);else{var S=n?n.next:f;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),C(e,n,r),C(e,r,S),H(r,S,l),n=r,o=[],d=[],f=D(n.next);continue}if((r.f&B)!==0&&(ne(r),s&&((J=(O=r.nodes)==null?void 0:O.a)==null||J.unfix(),(E??(E=new Set)).delete(r))),r!==f){if(v!==void 0&&v.has(r)){if(o.length<d.length){var x=d[0],_;n=x.prev;var I=o[0],R=o[o.length-1];for(_=0;_<o.length;_+=1)H(o[_],x,l);for(_=0;_<d.length;_+=1)v.delete(d[_]);C(e,I.prev,R.next),C(e,n,I),C(e,R,x),f=x,n=R,a-=1,o=[],d=[]}else v.delete(r),H(r,f,l),C(e,r.prev,r.next),C(e,r,n===null?e.effect.first:n.next),C(e,n,r),n=r;continue}for(o=[],d=[];f!==null&&f!==r;)(v??(v=new Set)).add(f),d.push(f),f=D(f.next);if(f===null)continue}(r.f&T)===0&&o.push(r),n=r,f=D(r.next)}if(e.outrogroups!==null){for(const m of e.outrogroups)m.pending.size===0&&(V(G(m.done)),(K=e.outrogroups)==null||K.delete(m));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||v!==void 0){var p=[];if(v!==void 0)for(r of v)(r.f&B)===0&&p.push(r);for(;f!==null;)(f.f&B)===0&&f!==e.fallback&&p.push(f),f=D(f.next);var w=p.length;if(w>0){var b=(t&re)!==0&&u===0?l:null;if(s){for(a=0;a<w;a+=1)(Q=(P=p[a].nodes)==null?void 0:P.a)==null||Q.measure();for(a=0;a<w;a+=1)(W=(U=p[a].nodes)==null?void 0:U.a)==null||W.fix()}Se(e,p,b)}}s&&Te(()=>{var m,X;if(E!==void 0)for(r of E)(X=(m=r.nodes)==null?void 0:m.a)==null||X.apply()})}function Re(e,i,l,t,g,s,u,c){var f=(u&ge)!==0?(u&Ee)===0?me(l,!1,!1):j(l):null,v=(u&he)!==0?j(g):null;return{v:f,i:v,e:Y(()=>(s(i,f??l,v??g,c),()=>{e.delete(t)}))}}function H(e,i,l){if(e.nodes)for(var t=e.nodes.start,g=e.nodes.end,s=i&&(i.f&T)===0?i.nodes.start:l;t!==null;){var u=Ne(t);if(s.before(t),t===g)return;t=u}}function C(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{De as e,ke as i};
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
import{x as a}from"./BH97ETpZ.js";a();
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"./Bzak7iHL.js";import{t as V,a as b,c as f,b as g}from"./Dw-PWoyz.js";import{p as P,h as q,i as A,j as d,m as C,o as h,ar as m,v as x,l as k}from"./BH97ETpZ.js";import{i as D}from"./UvStrNyM.js";import{p as r,b as p,r as E}from"./Bysmuwvg.js";const y=V({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 shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var F=k("<a><!></a>"),G=k("<button><!></button>");function M(_,e){P(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),v=r(e,"href",3,void 0),z=r(e,"type",3,"button"),c=E(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=q(),w=A(u);{var j=i=>{var a=F();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:v(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...c}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)},B=i=>{var a=G();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...c}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)};D(w,i=>{v()?i(j):i(B,!1)})}d(_,u),C()}export{M as B};
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DRlIEfz1.js","./Bzak7iHL.js","./Dexp9pM5.js","./DZmckTjd.js","./agKGoZF1.js","./CRDN6Mh7.js","./iABcLwh6.js","./25AjRaeI.js","./jOLfEXYH.js","./BKSreT2u.js","./61AlszRR.js","./BapE3c1q.js","./B12dZE2q.js","./BC20z61P.js","./CsnJU1X_.js"])))=>i.map(i=>d[i]);
|
|
||||||
import{i as P,_ as A}from"./CRDN6Mh7.js";import"./Bzak7iHL.js";import{Q as D,l as O,_ as V,i as p,$ as B,a0 as h,o as y,s as x,J as F,P as L,A as E,c as v,f as u,T as M,a as n,G as C,a1 as N,a2 as j,g as _,u as k,b as q}from"./Dexp9pM5.js";import{a as z}from"./DcVg5zjO.js";import{c as G}from"./25AjRaeI.js";import{t as H,a as J,c as Q,s as R}from"./BKSreT2u.js";import{e as S}from"./BC20z61P.js";import{p as w,b as K,r as U}from"./jOLfEXYH.js";function W(o,a){let r=null,d=p;var t;if(p){r=F;for(var e=L(document.head);e!==null&&(e.nodeType!==B||e.data!==o);)e=h(e);if(e===null)y(!1);else{var i=h(e);e.remove(),x(i)}}p||(t=document.head.appendChild(D()));try{O(()=>a(t),V)}finally{d&&(y(!0),x(r))}}const X=H({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 ne(o,a){E(a,!0);let r=w(a,"ref",15,null),d=w(a,"variant",3,"default"),t=U(a,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=v(),i=u(e);S(i,()=>a.href?"a":"span",!1,(c,l)=>{K(c,f=>r(f),()=>r()),J(c,f=>({"data-slot":"badge",href:a.href,class:f,...t}),[()=>Q(X({variant:d()}),a.class)]);var s=v(),m=u(s);R(m,()=>a.children??M),n(l,s)}),n(o,e),C()}var Y=q('<main class="container mx-auto flex flex-col gap-6 py-8"><p class="text-muted-foreground">Loading…</p></main>');function oe(o,a){E(a,!0);var r=v();W("rk8na7",e=>{N(()=>{j.title="Items – Stackq"})});var d=u(r);{var t=e=>{var i=v(),c=u(i);z(c,()=>A(()=>import("./DRlIEfz1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),l=>{var s=Y();n(l,s)},(l,s)=>{var m=k(()=>{var{default:g}=_(s);return{ItemsCrud:g}}),f=k(()=>_(m).ItemsCrud),b=v(),I=u(b);G(I,()=>_(f),(g,T)=>{T(g,{get data(){return a.data}})}),n(l,b)}),n(e,i)};P(d,e=>{e(t)})}n(o,r),C()}export{ne as B,oe as _,W as h};
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{n as M,aI as Y,b as E,Q as B,aJ as h,a5 as K,aD as j,ar as R,Y as $,g as v,y as x,aK as S,aL as q,aM as Q,aN as z,a4 as C,aO as G,aP as J,at as V,aQ as Z,aR as F,f as H,ac as W,aS as X,aT as m,aU as T,aV as d}from"./BH97ETpZ.js";import{s as k,g as ee}from"./iYSIr-5j.js";function D(e,r){return e===r||(e==null?void 0:e[h])===r}function ue(e={},r,i,n){return M(()=>{var s,t;return Y(()=>{s=t,t=[],E(()=>{e!==i(...t)&&(r(e,...t),s&&D(i(...s),e)&&r(null,...s))})}),()=>{B(()=>{t&&D(i(...t),e)&&r(null,...t)})}}),e}let _=!1,g=Symbol();function fe(e,r,i){const n=i[r]??(i[r]={store:null,source:$(void 0),unsubscribe:R});if(n.store!==e&&!(g in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=R;else{var s=!0;n.unsubscribe=k(e,t=>{s?n.source.v=t:x(n.source,t)}),s=!1}return e&&g in i?ee(e):v(n.source)}function ae(){const e={};function r(){K(()=>{for(var i in e)e[i].unsubscribe();j(e,g,{enumerable:!1,value:!0})})}return[e,r]}function re(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const ne={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function le(e,r,i){return new Proxy({props:e,exclude:r},ne)}const ie={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let s=e.props[n];d(s)&&(s=s());const t=S(s,r);if(t&&t.set)return t.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const s=S(n,r);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,r){if(r===h||r===T)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function ce(...e){return new Proxy({props:e},ie)}function oe(e,r,i,n){var y;var s=!V||(i&Z)!==0,t=(i&J)!==0,A=(i&X)!==0,f=n,b=!0,O=()=>(b&&(b=!1,f=A?E(n):n),f),l;if(t){var L=h in e||T in e;l=((y=S(e,r))==null?void 0:y.set)??(L&&r in e?u=>e[r]=u:void 0)}var c,w=!1;t?[c,w]=re(()=>e[r]):c=e[r],c===void 0&&n!==void 0&&(c=O(),l&&(s&&q(),l(c)));var a;if(s?a=()=>{var u=e[r];return u===void 0?O():(b=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},s&&(i&Q)===0)return a;if(l){var N=e.$$legacy;return(function(u,p){return arguments.length>0?((!s||!p||N||w)&&l(p?a():u),u):a()})}var P=!1,o=((i&F)!==0?H:W)(()=>(P=!1,a()));t&&v(o);var U=C;return(function(u,p){if(arguments.length>0){const I=p?v(o):s&&t?z(u):u;return x(o,I),P=!0,f!==void 0&&(f=I),u}return m&&P||(U.f&G)!==0?o.v:v(o)})}export{fe as a,ue as b,ce as c,oe as p,le as r,ae as s};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"./Bzak7iHL.js";import{p as d,j as c,m as n,l as i,o as f,ar as v,v as m}from"./BH97ETpZ.js";import{a as u,b as h,c as p}from"./Dw-PWoyz.js";import{p as b,b as x,r as g}from"./Bysmuwvg.js";var _=i("<div><!></div>");function k(t,a){d(a,!0);let s=b(a,"ref",15,null),l=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=_();u(r,e=>({"data-slot":"card",class:e,...l}),[()=>p("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var o=f(r);h(o,()=>a.children??v),m(r),x(r,e=>s(e),()=>s()),c(t,r),n()}var y=i("<div><!></div>");function q(t,a){d(a,!0);let s=b(a,"ref",15,null),l=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=y();u(r,e=>({"data-slot":"card-content",class:e,...l}),[()=>p("px-6",a.class)]);var o=f(r);h(o,()=>a.children??v),m(r),x(r,e=>s(e),()=>s()),c(t,r),n()}export{k as C,q as a};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{D as a,L as _,J as s,_ as E,C as v,a0 as y,a1 as h,a2 as x,a3 as C,K as N,B as T,G as d,I as r,a4 as w,a5 as A}from"./BH97ETpZ.js";import{i as b}from"./BD8q7RHQ.js";import{B}from"./UvStrNyM.js";function L(m,u,c,i,M,S){let p=a;a&&_();var e=null;a&&s.nodeType===E&&(e=s,_());var l=a?s:m,f=new B(l,!1);v(()=>{const t=u()||null;var g=c||t==="svg"?x:void 0;if(t===null){f.ensure(null,null);return}return f.ensure(t,o=>{if(t){if(e=a?e:h(t,g),C(e,e),i){a&&b(t)&&e.append(document.createComment(""));var n=a?N(e):e.appendChild(T());a&&(n===null?d(!1):r(n)),i(e,n)}w.nodes.end=e,o.before(e)}a&&r(o)}),()=>{}},y),A(()=>{}),p&&(d(!0),r(l))}export{L as e};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"./Bzak7iHL.js";import{p as i,o as c,ar as l,v as n,j as p,m,l as f}from"./BH97ETpZ.js";import{a as h,c as u,b as v}from"./Dw-PWoyz.js";import{p as b,b as _,r as g}from"./Bysmuwvg.js";var w=f("<div><!></div>");function P(e,a){i(a,!0);let t=b(a,"ref",15,null),o=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=w();h(r,s=>({"data-slot":"card-header",class:s,...o}),[()=>u("@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",a.class)]);var d=c(r);v(d,()=>a.children??l),n(r),_(r,s=>t(s),()=>t()),p(e,r),m()}export{P as C};
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
var H=Object.defineProperty;var y=r=>{throw TypeError(r)};var I=(r,e,t)=>e in r?H(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var P=(r,e,t)=>I(r,typeof e!="symbol"?e+"":e,t),L=(r,e,t)=>e.has(r)||y("Cannot "+t);var s=(r,e,t)=>(L(r,e,"read from private field"),t?t.call(r):e.get(r)),v=(r,e,t)=>e.has(r)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),C=(r,e,t,n)=>(L(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t);import{a3 as D,a4 as N,a5 as T,a6 as O,Q as F,a7 as j,i as R,J as $,a8 as q,a9 as U,l as Y,j as J,L as M,aa as Q,ab as W,H as z,n as G,s as K,o as x}from"./Dexp9pM5.js";var u,d,h,b,k,w,A;class V{constructor(e,t=!0){P(this,"anchor");v(this,u,new Map);v(this,d,new Map);v(this,h,new Map);v(this,b,new Set);v(this,k,!0);v(this,w,()=>{var e=D;if(s(this,u).has(e)){var t=s(this,u).get(e),n=s(this,d).get(t);if(n)N(n),s(this,b).delete(t);else{var f=s(this,h).get(t);f&&(s(this,d).set(t,f.effect),s(this,h).delete(t),f.fragment.lastChild.remove(),this.anchor.before(f.fragment),n=f.effect)}for(const[c,a]of s(this,u)){if(s(this,u).delete(c),c===e)break;const i=s(this,h).get(a);i&&(T(i.effect),s(this,h).delete(a))}for(const[c,a]of s(this,d)){if(c===t||s(this,b).has(c))continue;const i=()=>{if(Array.from(s(this,u).values()).includes(c)){var m=document.createDocumentFragment();q(a,m),m.append(F()),s(this,h).set(c,{effect:a,fragment:m})}else T(a);s(this,b).delete(c),s(this,d).delete(c)};s(this,k)||!n?(s(this,b).add(c),O(a,i,!1)):i()}}});v(this,A,e=>{s(this,u).delete(e);const t=Array.from(s(this,u).values());for(const[n,f]of s(this,h))t.includes(n)||(T(f.effect),s(this,h).delete(n))});this.anchor=e,C(this,k,t)}ensure(e,t){var n=D,f=U();if(t&&!s(this,d).has(e)&&!s(this,h).has(e))if(f){var c=document.createDocumentFragment(),a=F();c.append(a),s(this,h).set(e,{effect:j(()=>t(a)),fragment:c})}else s(this,d).set(e,j(()=>t(this.anchor)));if(s(this,u).set(n,e),f){for(const[i,o]of s(this,d))i===e?n.unskip_effect(o):n.skip_effect(o);for(const[i,o]of s(this,h))i===e?n.unskip_effect(o.effect):n.skip_effect(o.effect);n.oncommit(s(this,w)),n.ondiscard(s(this,A))}else R&&(this.anchor=$),s(this,w).call(this)}}u=new WeakMap,d=new WeakMap,h=new WeakMap,b=new WeakMap,k=new WeakMap,w=new WeakMap,A=new WeakMap;function se(r,e,t=!1){R&&J();var n=new V(r),f=t?M:0;function c(a,i){if(R){const l=Q(r);var o;if(l===W?o=0:l===z?o=!1:o=parseInt(l.substring(1)),a!==o){var m=G();K(m),n.anchor=m,x(!1),n.ensure(a,i),x(!0);return}}n.ensure(a,i)}Y(()=>{var a=!1;e((i,o=0)=>{a=!0,c(o,i)}),a||c(!1,null)},f)}const X="modulepreload",Z=function(r,e){return new URL(r,e).href},B={},re=function(e,t,n){let f=Promise.resolve();if(t&&t.length>0){let a=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),m=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));f=a(t.map(l=>{if(l=Z(l,n),l in B)return;B[l]=!0;const p=l.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(n)for(let E=i.length-1;E>=0;E--){const S=i[E];if(S.href===l&&(!p||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${g}`))return;const _=document.createElement("link");if(_.rel=p?"stylesheet":X,p||(_.as="script"),_.crossOrigin="",_.href=l,m&&_.setAttribute("nonce",m),document.head.appendChild(_),p)return new Promise((E,S)=>{_.addEventListener("load",E),_.addEventListener("error",()=>S(Error(`Unable to preload CSS for ${l}`)))})}))}function c(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return f.then(a=>{for(const i of a||[])i.status==="rejected"&&c(i.reason);return e().catch(c)})};export{V as B,re as _,se as i};
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MgOscCPv.js","./Bzak7iHL.js","./BH97ETpZ.js","./Qgf5A_kA.js","./BD8q7RHQ.js","./UvStrNyM.js","./BR6tTwie.js","./Cf_fsnlT.js","./CgtTdn_a.js","./CCY2d7sc.js","./mylYChEY.js","./CeetFYTo.js","./iYSIr-5j.js","./Dw-PWoyz.js","./Bysmuwvg.js","./BkOB8zes.js","./BzfwckE1.js","./Cr7vHN1I.js","./C3TONo7J.js","./D4nn9Y_6.js","./DfWA6mBJ.js"])))=>i.map(i=>d[i]);
|
||||||
|
import{_ as j}from"./D4nn9Y_6.js";import"./Bzak7iHL.js";import{p as k,h as i,i as n,ar as q,j as t,m as w,n as B,$ as E,g as f,k as _,l as F}from"./BH97ETpZ.js";import{a as L}from"./BHRsrugl.js";import{i as S}from"./UvStrNyM.js";import{c as U}from"./Cf_fsnlT.js";import{h as z}from"./CgtTdn_a.js";import{p as y,b as A,r as D,s as O,a as R}from"./Bysmuwvg.js";import{s as T}from"./mylYChEY.js";import{t as $,a as G,c as H,b as J}from"./Dw-PWoyz.js";import{e as K}from"./C3TONo7J.js";const M=()=>{const e=T;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},N={subscribe(e){return M().page.subscribe(e)}},Q=$({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 dr(e,r){k(r,!0);let o=y(r,"ref",15,null),m=y(r,"variant",3,"default"),g=D(r,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var d=i(),c=n(d);K(c,()=>r.href?"a":"span",!1,(u,l)=>{A(u,s=>o(s),()=>o()),G(u,s=>({"data-slot":"badge",href:r.href,class:s,...g}),[()=>H(Q({variant:m()}),r.class)]);var a=i(),v=n(a);J(v,()=>r.children??q),t(l,a)}),t(e,d),w()}var W=F('<main class="container mx-auto flex flex-col gap-6 px-4 py-8"><p class="text-muted-foreground">Loading…</p></main>');function cr(e,r){k(r,!0);const o=()=>R(N,"$page",m),[m,g]=O(),d=_(()=>o().url.searchParams.get("q")??"");var c=i();z("rk8na7",a=>{B(()=>{E.title="Items – Stackq"})});var u=n(c);{var l=a=>{var v=i(),s=n(v);L(s,()=>j(()=>import("./MgOscCPv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),p=>{var b=W();t(p,b)},(p,b)=>{var I=_(()=>{var{default:h}=f(b);return{ItemsCrud:h}}),P=_(()=>f(I).ItemsCrud),x=i(),C=n(x);U(C,()=>f(P),(h,V)=>{V(h,{get data(){return r.data},get searchFromUrl(){return f(d)}})}),t(p,x)}),t(a,v)};S(u,a=>{a(l)})}t(e,c),w(),g()}export{dr as B,cr as _};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{as as n,a as s,c as a,at as u,b as o,au as l,V as c,av as r,aw as f,ax as i,ay as m,az as _}from"./BH97ETpZ.js";import{h as p,m as y,u as d}from"./Qgf5A_kA.js";function x(e){a===null&&n(),u&&a.l!==null?b(a).m.push(e):s(()=>{const t=o(e);if(typeof t=="function")return t})}function b(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const v=Object.freeze(Object.defineProperty({__proto__:null,flushSync:c,getAllContexts:r,getContext:f,hasContext:i,hydrate:p,mount:y,onMount:x,setContext:m,settled:_,tick:l,unmount:d,untrack:o},Symbol.toStringTag,{value:"Module"}));export{x as o,v as s};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{D as c,L as s,C as l,a0 as _}from"./BH97ETpZ.js";import{B as i}from"./UvStrNyM.js";function f(a,n,o){c&&s();var r=new i(a);l(()=>{var e=n()??null;r.ensure(e,e&&(t=>o(t,e)))},_)}const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{u as _,f as c};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{B as u,C as o,H as _,D as t,E as g,F as i,G as l,I as d,J as p,K as E}from"./BH97ETpZ.js";function v(n,r){let s=null,f=t;var a;if(t){s=p;for(var e=E(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var y=i(e);e.remove(),d(y)}}t||(a=document.head.appendChild(u()));try{o(()=>r(a),_)}finally{f&&(l(!0),d(s))}}export{v as h};
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
import{c as d,u as g,a as i,b,r as l,d as m,g as p,e as v,f as h}from"./BH97ETpZ.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>v(s.s);if(n){let f=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const o in a)a[o]!==t[o]&&(t[o]=a[o],c=!0);return c&&f++,f});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),i(()=>{const f=b(()=>e.m.map(m));return()=>{for(const t of f)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
|
||||||
@@ -1 +0,0 @@
|
|||||||
import"./Bzak7iHL.js";import{A as o,h as c,r as n,a as i,G as f,T as v,b as h}from"./Dexp9pM5.js";import{a as m,s as u,c as p}from"./BKSreT2u.js";import{p as b,b as x,r as g}from"./jOLfEXYH.js";var _=h("<div><!></div>");function G(t,a){o(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=_();m(r,e=>({"data-slot":"card",class:e,...d}),[()=>p("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var l=c(r);u(l,()=>a.children??v),n(r),x(r,e=>s(e),()=>s()),i(t,r),f()}var y=h("<div><!></div>");function T(t,a){o(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=y();m(r,e=>({"data-slot":"card-content",class:e,...d}),[()=>p("px-6",a.class)]);var l=c(r);u(l,()=>a.children??v),n(r),x(r,e=>s(e),()=>s()),i(t,r),f()}export{T as C,G as a};
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
const y="modulepreload",P=function(f,a){return new URL(f,a).href},E={},g=function(a,u,d){let h=Promise.resolve();if(u&&u.length>0){let o=function(e){return Promise.all(e.map(r=>Promise.resolve(r).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),v=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));h=o(u.map(e=>{if(e=P(e,d),e in E)return;E[e]=!0;const r=e.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(d)for(let i=t.length-1;i>=0;i--){const c=t[i];if(c.href===e&&(!r||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${l}`))return;const n=document.createElement("link");if(n.rel=r?"stylesheet":y,r||(n.as="script"),n.crossOrigin="",n.href=e,v&&n.setAttribute("nonce",v),document.head.appendChild(n),r)return new Promise((i,c)=>{n.addEventListener("load",i),n.addEventListener("error",()=>c(Error(`Unable to preload CSS for ${e}`)))})}))}function m(o){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=o,window.dispatchEvent(t),!t.defaultPrevented)throw o}return h.then(o=>{for(const t of o||[])t.status==="rejected"&&m(t.reason);return a().catch(m)})};export{g as _};
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
import"./Bzak7iHL.js";import{A as T,f as c,C as s,h as d,D as r,E as o,a,r as m,F as g,c as U,g as y,G as V,I as X,u as Y,b as x}from"./Dexp9pM5.js";import{c as l}from"./25AjRaeI.js";import{B as h}from"./B12dZE2q.js";import{D as Z,a as tt,b as et,c as at,I as st,d as rt}from"./iABcLwh6.js";import{g as ot}from"./BapE3c1q.js";var lt=x("<!> <!>",1),nt=x("<!> <!>",1),it=x('<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-8"><h1 class="text-2xl font-semibold">Stackq</h1> <p class="text-muted-foreground">Svelte 5 + shadcn-svelte + PocketBase</p> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block"><!></a> <!> <a href="/logout" class="block"><!></a></div></main> <!>',1);function gt(A,P){T(P,!0);let n=X(!1);const C=Y(()=>{var t;return((t=P.data)==null?void 0:t.itemsForParent)??[]});function L(){g(n,!1),ot("/items")}var w=it(),u=c(w),b=s(d(u),4),f=d(b),N=d(f);h(N,{class:"w-full",children:(t,i)=>{r();var e=o("Items table");a(t,e)},$$slots:{default:!0}}),m(f);var D=s(f,2);h(D,{class:"w-full",variant:"outline",onclick:()=>g(n,!0),children:(t,i)=>{r();var e=o("New item");a(t,e)},$$slots:{default:!0}});var k=s(D,2),j=d(k);h(j,{class:"w-full",variant:"outline",children:(t,i)=>{r();var e=o("Log out");a(t,e)},$$slots:{default:!0}}),m(k),m(b),m(u);var E=s(u,2);l(E,()=>rt,(t,i)=>{i(t,{get open(){return y(n)},set open(e){g(n,e,!0)},children:(e,ct)=>{var F=U(),G=c(F);l(G,()=>Z,(H,O)=>{O(H,{class:"max-h-[90vh] overflow-y-auto sm:max-w-[500px]",children:(W,dt)=>{var I=nt(),S=c(I);l(S,()=>tt,(J,K)=>{K(J,{children:(M,mt)=>{var B=lt(),q=c(B);l(q,()=>et,(v,$)=>{$(v,{children:(p,R)=>{r();var _=o("New item");a(p,_)},$$slots:{default:!0}})});var Q=s(q,2);l(Q,()=>at,(v,$)=>{$(v,{children:(p,R)=>{r();var _=o("Add a new Stackq item.");a(p,_)},$$slots:{default:!0}})}),a(M,B)},$$slots:{default:!0}})});var z=s(S,2);st(z,{get itemsForParent(){return y(C)},action:"/items?/create",submitLabel:"Create",onSuccess:L}),a(W,I)},$$slots:{default:!0}})}),a(e,F)},$$slots:{default:!0}})}),a(A,w),V()}export{gt as default};
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
import{i as n,j as x,k as B,l as g,m as N,H as A,s as D,n as H,o as c,q as S,p as v,B as q,t as L,v as R,w as U,x as k,U as j,y as E,z}from"./Dexp9pM5.js";import{B as G}from"./CRDN6Mh7.js";const T=0,_=1;function P(m,b,y,r,l){n&&x();var h=B(),t=j,i=h?k(t):E(t,!1,!1),o=h?k(t):E(t,!1,!1),s=new G(m);g(()=>{var u=b(),p=!1;let d=n&&N(u)===(m.data===A);if(d&&(D(H()),c(!1)),N(u)){var w=z(),I=!1;const a=e=>{if(!p){I=!0,w(!1),q.ensure(),n&&c(!1);try{e()}finally{L(),R||U()}}};u.then(e=>{a(()=>{v(i,e),s.ensure(_,r&&(f=>r(f,i)))})},e=>{a(()=>{if(v(o,e),s.ensure(_,l&&(f=>l(f,o))),!l)throw o.v})}),n?s.ensure(T,y):S(()=>{I||a(()=>{s.ensure(T,y)})})}else v(i,u),s.ensure(_,r&&(a=>r(a,i)));return d&&c(!0),()=>{p=!0}})}export{P as a};
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
import{_ as ve}from"./D4nn9Y_6.js";import"./Bzak7iHL.js";import{p as he,a as C,y as n,g as e,h as J,i as S,q as B,t as T,w as Q,j as l,s as g,o as A,v as E,k as _e,m as pe,A as x,l as y}from"./BH97ETpZ.js";import{s as W}from"./Qgf5A_kA.js";import{i as ge}from"./UvStrNyM.js";import{c as b}from"./Cf_fsnlT.js";import{p as X,b as xe}from"./Bysmuwvg.js";import{B as Y}from"./BkOB8zes.js";import{I as be}from"./CCY2d7sc.js";import{D as ye,a as we,b as De,c as ke,d as Se}from"./Cr7vHN1I.js";var Be=y("<!> <!>",1),Te=y('<p class="text-destructive text-sm"> </p>'),Ae=y('<video class="border-input max-h-[50vh] w-full flex-1 rounded-lg border object-cover sm:max-h-none" playsinline=""></video>',2),Ee=y('<p class="text-muted-foreground text-sm">Starting camera…</p>'),Pe=y('<!> <div class="flex min-h-0 flex-1 flex-col gap-4"><div class="flex shrink-0 gap-2"><!> <!></div> <p class="text-muted-foreground shrink-0 text-center text-xs">or use camera below</p> <!> <div class="flex shrink-0 gap-2"><!></div></div>',1);function Ue(Z,i){he(i,!0);let c=X(i,"open",15,!1),ee=X(i,"title",3,"Scan barcode"),v=x(null),h=x(""),a=x(void 0),d=x(null),f=x(0);function q(){var s;const r=e(h).trim();r&&(_(),c(!1),n(h,""),(s=i.onResult)==null||s.call(i,r))}async function te(){if(typeof globalThis>"u"||"BarcodeDetector"in globalThis)return!0;try{const r=await ve(()=>import("./Bd99md_0.js"),[],import.meta.url);return globalThis.BarcodeDetector=r.BarcodeDetector,!0}catch{return!1}}async function re(){if(n(v,null),!await te()){n(v,"Failed to load barcode scanner. Try again or use Chrome/Edge.");return}try{n(d,await navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}}),!0)}catch(s){n(v,s instanceof Error?s.message:"Could not access camera.",!0)}}function _(){var r;e(f)&&(cancelAnimationFrame(e(f)),n(f,0)),e(d)&&(e(d).getTracks().forEach(s=>s.stop()),n(d,null)),(r=e(a))!=null&&r.srcObject&&(e(a).srcObject=null),n(v,null)}C(()=>{if(!c()){_(),n(h,"");return}return re(),()=>_()}),C(()=>{if(!(!c()||!e(d)||!e(a)))return e(a).srcObject=e(d),e(a).play().catch(()=>{}),()=>{var r;(r=e(a))!=null&&r.srcObject&&(e(a).srcObject=null)}});const ae=300;function oe(){if(!e(a)||!("BarcodeDetector"in globalThis))return;const r=new globalThis.BarcodeDetector;let s=0;async function m(){var p,w;if(!c()||!e(a))return;if(e(a).readyState<2){n(f,requestAnimationFrame(m),!0);return}const P=Date.now();if(P-s>=ae){s=P;try{const D=await r.detect(e(a));if(D.length>0){const j=((p=D[0].rawValue)==null?void 0:p.trim())??"";_(),c(!1),(w=i.onResult)==null||w.call(i,j);return}}catch{}}n(f,requestAnimationFrame(m),!0)}m()}C(()=>{if(!(!c()||!e(d)||!e(a)))return oe(),()=>{e(f)&&cancelAnimationFrame(e(f))}});var L=J(),ne=S(L);b(ne,()=>Se,(r,s)=>{s(r,{get open(){return c()},set open(m){c(m)},children:(m,P)=>{var p=J(),w=S(p);b(w,()=>ye,(D,j)=>{j(D,{class:"flex max-h-[100dvh] w-[100vw] max-w-none flex-col gap-4 rounded-none border-0 p-4 sm:max-h-[90dvh] sm:w-auto sm:max-w-md sm:rounded-lg sm:border",onclose:()=>_(),children:(se,je)=>{var M=Pe(),V=S(M);b(V,()=>we,(t,o)=>{o(t,{class:"shrink-0",children:(u,z)=>{var G=Be(),H=S(G);b(H,()=>De,(O,I)=>{I(O,{children:(R,me)=>{B();var k=T();Q(()=>W(k,ee())),l(R,k)},$$slots:{default:!0}})});var fe=g(H,2);b(fe,()=>ke,(O,I)=>{I(O,{children:(R,me)=>{B();var k=T("Scan a barcode or type a code to look up an item.");l(R,k)},$$slots:{default:!0}})}),l(u,G)},$$slots:{default:!0}})});var N=g(V,2),F=A(N),U=A(F);be(U,{type:"text",placeholder:"Type barcode or SKU to search…",onkeydown:t=>t.key==="Enter"&&q(),class:"min-h-11 flex-1",get value(){return e(h)},set value(t){n(h,t,!0)}});var le=g(U,2);{let t=_e(()=>!e(h).trim());Y(le,{type:"button",class:"min-h-11 shrink-0",onclick:q,get disabled(){return e(t)},children:(o,u)=>{B();var z=T("Search");l(o,z)},$$slots:{default:!0}})}E(F);var $=g(F,4);{var ie=t=>{var o=Te(),u=A(o,!0);E(o),Q(()=>W(u,e(v))),l(t,o)},ce=t=>{var o=Ae();o.muted=!0,xe(o,u=>n(a,u),()=>e(a)),l(t,o)},de=t=>{var o=Ee();l(t,o)};ge($,t=>{e(v)?t(ie):e(d)?t(ce,1):t(de,!1)})}var K=g($,2),ue=A(K);Y(ue,{type:"button",variant:"outline",class:"min-h-12 flex-1",onclick:()=>{_(),c(!1)},children:(t,o)=>{B();var u=T("Cancel");l(t,u)},$$slots:{default:!0}}),E(K),E(N),l(se,M)},$$slots:{default:!0}})}),l(m,p)},$$slots:{default:!0}})}),l(Z,L),pe()}export{Ue as B};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"./Bzak7iHL.js";import{p as B,o as v,ar as z,v as f,j as s,m as E,l as _,h as U,i as k,q as p,t as y,s as m,g as V,k as W,w as X}from"./BH97ETpZ.js";import{s as Y}from"./Qgf5A_kA.js";import{i as Z}from"./UvStrNyM.js";import{c as P}from"./Cf_fsnlT.js";import{L as S,I as T,a as ee,e as re}from"./CCY2d7sc.js";import{a as te,C as ae}from"./BzfwckE1.js";import{a as A,c as D,b as G}from"./Dw-PWoyz.js";import{p as H,b as J,r as K}from"./Bysmuwvg.js";import{C as se}from"./CBjBL7Hz.js";import{B as oe}from"./BkOB8zes.js";var le=_("<p><!></p>");function de($,e){B(e,!0);let d=H(e,"ref",15,null),h=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=le();A(a,l=>({"data-slot":"card-description",class:l,...h}),[()=>D("text-muted-foreground text-sm",e.class)]);var g=v(a);G(g,()=>e.children??z),f(a),J(a,l=>d(l),()=>d()),s($,a),E()}var ie=_("<div><!></div>");function ne($,e){B(e,!0);let d=H(e,"ref",15,null),h=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=ie();A(a,l=>({"data-slot":"card-title",class:l,...h}),[()=>D("leading-none font-semibold",e.class)]);var g=v(a);G(g,()=>e.children??z),f(a),J(a,l=>d(l),()=>d()),s($,a),E()}var ce=_("<!> <!>",1),me=_('<p class="text-destructive text-sm"> </p>'),ve=_('<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>'),fe=_("<!> <!>",1);function Le($,e){B(e,!0);var d=U(),h=k(d);P(h,()=>ae,(a,g)=>{g(a,{class:"w-full max-w-sm",children:(l,ue)=>{var F=fe(),I=k(F);P(I,()=>se,(C,L)=>{L(C,{children:(q,N)=>{var i=ce(),u=k(i);P(u,()=>ne,(x,n)=>{n(x,{children:(c,j)=>{p();var w=y("Login");s(c,w)},$$slots:{default:!0}})});var b=m(u,2);P(b,()=>de,(x,n)=>{n(x,{children:(c,j)=>{p();var w=y("Enter your email and password to sign in.");s(c,w)},$$slots:{default:!0}})}),s(q,i)},$$slots:{default:!0}})});var M=m(I,2);P(M,()=>te,(C,L)=>{L(C,{children:(q,N)=>{var i=ve(),u=v(i),b=v(u);S(b,{for:"email",children:(r,t)=>{p();var o=y("Email");s(r,o)},$$slots:{default:!0}});var x=m(b,2);{let r=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});T(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(r)},required:!0})}f(u);var n=m(u,2),c=v(n),j=v(c);S(j,{for:"password",children:(r,t)=>{p();var o=y("Password");s(r,o)},$$slots:{default:!0}}),p(2),f(c);var w=m(c,2);T(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),f(n);var O=m(n,2);{var Q=r=>{var t=me(),o=v(t,!0);f(t),X(()=>Y(o,e.data.error)),s(r,t)};Z(O,r=>{var t;(t=e.data)!=null&&t.error&&r(Q)})}var R=m(O,2);oe(R,{type:"submit",class:"w-full",children:(r,t)=>{p();var o=y("Login");s(r,o)},$$slots:{default:!0}}),f(i),ee(i,(r,t)=>{var o;return(o=re)==null?void 0:o(r,t)},()=>()=>async({update:r})=>{await r()}),s(q,i)},$$slots:{default:!0}})}),s(l,F)},$$slots:{default:!0}})}),s($,d),E()}export{Le as default};
|
||||||
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{_ as u}from"./D4nn9Y_6.js";function _(c={}){const{immediate:o=!1,onNeedRefresh:p,onOfflineReady:a,onRegistered:r,onRegisteredSW:s,onRegisterError:t}=c;let i,n;const d=async(e=!0)=>{await n};async function l(){if("serviceWorker"in navigator){if(i=await u(async()=>{const{Workbox:e}=await import("./BIl4cyR9.js");return{Workbox:e}},[],import.meta.url).then(({Workbox:e})=>new e("./sw.js",{scope:"./",type:"classic"})).catch(e=>{t==null||t(e)}),!i)return;i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||a==null||a()}),i.register({immediate:o}).then(e=>{s?s("./sw.js",e):r==null||r(e)}).catch(e=>{t==null||t(e)})}}return n=l(),d}export{_ as registerSW};
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user