Refactor environment variable declarations, enhance image handling in item forms, and update asset references in SvelteKit project for improved functionality and performance.
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
var e;typeof window<"u"&&((e=window.__svelte??(window.__svelte={})).v??(e.v=new Set)).add("5");
|
||||
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"./De4R2cbq.js";import{D,b as E,d as F,a as d,E as P,c as h,r as m,f as k,F as x}from"./MIlO0V30.js";import{i as q}from"./D6Mj8HfB.js";import{p as r,b as p,r as A}from"./znVx7SEM.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 C=k("<a><!></a>"),G=k("<button><!></button>");function M(_,e){D(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=A(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=E(),w=F(u);{var B=i=>{var a=C();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=G();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),P()}export{M as B};
|
||||
@@ -1 +0,0 @@
|
||||
var F=Object.defineProperty;var k=a=>{throw TypeError(a)};var I=(a,e,t)=>e in a?F(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var R=(a,e,t)=>I(a,typeof e!="symbol"?e+"":e,t),S=(a,e,t)=>e.has(a)||k("Cannot "+t);var s=(a,e,t)=>(S(a,e,"read from private field"),t?t.call(a):e.get(a)),u=(a,e,t)=>e.has(a)?k("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),w=(a,e,t,i)=>(S(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t);import{G as E,I as x,J as T,K as H,L as M,M as N,h as A,N as O,O as B,P as C,k as L,i as P,Q as Y,R as G,S as J,H as K,o as Q,m as j,p as D}from"./MIlO0V30.js";var l,d,h,_,v,m,b;class q{constructor(e,t=!0){R(this,"anchor");u(this,l,new Map);u(this,d,new Map);u(this,h,new Map);u(this,_,new Set);u(this,v,!0);u(this,m,()=>{var e=E;if(s(this,l).has(e)){var t=s(this,l).get(e),i=s(this,d).get(t);if(i)x(i),s(this,_).delete(t);else{var o=s(this,h).get(t);o&&(s(this,d).set(t,o.effect),s(this,h).delete(t),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),i=o.effect)}for(const[f,r]of s(this,l)){if(s(this,l).delete(f),f===e)break;const n=s(this,h).get(r);n&&(T(n.effect),s(this,h).delete(r))}for(const[f,r]of s(this,d)){if(f===t||s(this,_).has(f))continue;const n=()=>{if(Array.from(s(this,l).values()).includes(f)){var p=document.createDocumentFragment();B(r,p),p.append(M()),s(this,h).set(f,{effect:r,fragment:p})}else T(r);s(this,_).delete(f),s(this,d).delete(f)};s(this,v)||!i?(s(this,_).add(f),H(r,n,!1)):n()}}});u(this,b,e=>{s(this,l).delete(e);const t=Array.from(s(this,l).values());for(const[i,o]of s(this,h))t.includes(i)||(T(o.effect),s(this,h).delete(i))});this.anchor=e,w(this,v,t)}ensure(e,t){var i=E,o=C();if(t&&!s(this,d).has(e)&&!s(this,h).has(e))if(o){var f=document.createDocumentFragment(),r=M();f.append(r),s(this,h).set(e,{effect:N(()=>t(r)),fragment:f})}else s(this,d).set(e,N(()=>t(this.anchor)));if(s(this,l).set(i,e),o){for(const[n,c]of s(this,d))n===e?i.unskip_effect(c):i.skip_effect(c);for(const[n,c]of s(this,h))n===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(s(this,m)),i.ondiscard(s(this,b))}else A&&(this.anchor=O),s(this,m).call(this)}}l=new WeakMap,d=new WeakMap,h=new WeakMap,_=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;function U(a,e,t=!1){A&&P();var i=new q(a),o=t?Y:0;function f(r,n){if(A){const g=G(a);var c;if(g===J?c=0:g===K?c=!1:c=parseInt(g.substring(1)),r!==c){var p=Q();j(p),i.anchor=p,D(!1),i.ensure(r,n),D(!0);return}}i.ensure(r,n)}L(()=>{var r=!1;e((n,c=0)=>{r=!0,f(c,n)}),r||f(!1,null)},o)}export{q as B,U as i};
|
||||
@@ -1 +0,0 @@
|
||||
import{e}from"./MIlO0V30.js";e();
|
||||
@@ -1 +0,0 @@
|
||||
import{h as l,i as x,j as A,k as B,l as N,H as g,m as D,o as H,p as c,q as S,v,B as q,w as L,x as R,y as U,z as k,U as j,A as E,C as z}from"./MIlO0V30.js";import{B as C}from"./D6Mj8HfB.js";const T=0,_=1;function O(m,b,y,r,n){l&&x();var h=A(),t=j,i=h?k(t):E(t,!1,!1),o=h?k(t):E(t,!1,!1),s=new C(m);B(()=>{var u=b(),p=!1;let d=l&&N(u)===(m.data===g);if(d&&(D(H()),c(!1)),N(u)){var w=z(),I=!1;const a=e=>{if(!p){I=!0,w(!1),q.ensure(),l&&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(_,n&&(f=>n(f,o))),!n)throw o.v})}),l?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{O as a};
|
||||
@@ -1 +0,0 @@
|
||||
import{h as E,i as g,k as p,Q as _}from"./MIlO0V30.js";import{B as b}from"./D6Mj8HfB.js";function R(f,i,a){E&&g();var d=new b(f);p(()=>{var o=i()??null;d.ensure(o,o&&(m=>a(m,o)))},_)}const P="modulepreload",S=function(f,i){return new URL(f,i).href},y={},T=function(i,a,d){let o=Promise.resolve();if(a&&a.length>0){let s=function(e){return Promise.all(e.map(r=>Promise.resolve(r).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const t=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),v=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=s(a.map(e=>{if(e=S(e,d),e in y)return;y[e]=!0;const r=e.endsWith(".css"),c=r?'[rel="stylesheet"]':"";if(d)for(let u=t.length-1;u>=0;u--){const h=t[u];if(h.href===e&&(!r||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${c}`))return;const n=document.createElement("link");if(n.rel=r?"stylesheet":P,r||(n.as="script"),n.crossOrigin="",n.href=e,v&&n.setAttribute("nonce",v),document.head.appendChild(n),r)return new Promise((u,h)=>{n.addEventListener("load",u),n.addEventListener("error",()=>h(Error(`Unable to preload CSS for ${e}`)))})}))}function m(s){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=s,window.dispatchEvent(t),!t.defaultPrevented)throw s}return o.then(s=>{for(const t of s||[])t.status==="rejected"&&m(t.reason);return i().catch(m)})},j=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{T as _,j as a,R as c};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import"./Bzak7iHL.js";import{D as C,c as i,F as j,r as n,a as o,E as L,f as h,b as U,d as I,n as $,t as b,s as p,g as V,u as W,ao as X}from"./MIlO0V30.js";import{s as Y}from"./BMmwim-G.js";import{i as Z}from"./D6Mj8HfB.js";import{c as y}from"./DPCugUAM.js";import{C as ee,L as J,I as K,a as re,b as ae,e as te}from"./CEGTtJLH.js";import{a as k,c as D,s as O}from"./De4R2cbq.js";import{p as S,b as T,r as z}from"./znVx7SEM.js";import{B as se}from"./CINS0kDe.js";var oe=h("<p><!></p>");function de(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();k(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>D("text-muted-foreground text-sm",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("<div><!></div>");function ie(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();k(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("<div><!></div>");function ce(c,e){C(e,!0);let d=S(e,"ref",15,null),u=z(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();k(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>D("leading-none font-semibold",e.class)]);var v=i(r);O(v,()=>e.children??j),n(r),T(r,s=>d(s),()=>d()),o(c,r),L()}var ue=h("<!> <!>",1),ve=h('<p class="text-destructive text-sm"> </p>'),fe=h('<form method="POST" action="?/login" class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><div class="flex items-center justify-between"><!> <a href="/forgot-password" class="text-muted-foreground text-sm underline hover:text-foreground">Forgot your password?</a></div> <!></div> <!> <!></form>'),me=h("<!> <!>",1);function Ce(c,e){C(e,!0);var d=U(),u=I(d);y(u,()=>ae,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var A=me(),G=I(A);y(G,()=>ie,(E,F)=>{F(E,{children:(q,N)=>{var f=ue(),g=I(f);y(g,()=>ce,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);y(P,()=>de,(x,m)=>{m(x,{children:(_,B)=>{$();var w=b("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(q,f)},$$slots:{default:!0}})});var M=p(G,2);y(M,()=>ee,(E,F)=>{F(E,{children:(q,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=b("Email");o(a,l)},$$slots:{default:!0}});var x=p(P,2);{let a=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});K(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(a)},required:!0})}n(g);var m=p(g,2),_=i(m),B=i(_);J(B,{for:"password",children:(a,t)=>{$();var l=b("Password");o(a,l)},$$slots:{default:!0}}),$(2),n(_);var w=p(_,2);K(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),n(m);var H=p(m,2);{var Q=a=>{var t=ve(),l=i(t,!0);n(t),X(()=>Y(l,e.data.error)),o(a,t)};Z(H,a=>{var t;(t=e.data)!=null&&t.error&&a(Q)})}var R=p(H,2);se(R,{type:"submit",class:"w-full",children:(a,t)=>{$();var l=b("Login");o(a,l)},$$slots:{default:!0}}),n(f),re(f,(a,t)=>{var l;return(l=te)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(q,f)},$$slots:{default:!0}})}),o(s,A)},$$slots:{default:!0}})}),o(c,d),L()}export{Ce as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{T as k,V as b,W as E,X as S,Y as m,q as L,Z as V}from"./MIlO0V30.js";function B(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const A=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function D(t){return A.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 R(t){return t=t.toLowerCase(),x[t]??t}const I=["touchstart","touchmove"];function j(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,W=new Set;function M(t,e,r,u={}){function o(a){if(u.capture||O.call(e,a),!a.cancelBubble)return V(()=>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 X(t,e,r,u={}){var o=M(e,t,r,u);return()=>{t.removeEventListener(e,o,u)}}function z(t,e,r){(e[i]??(e[i]={}))[t]=r}function F(t){for(var e=0;e<t.length;e++)P.add(t[e]);for(var r of W)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){k(t,"currentTarget",{configurable:!0,get(){return a||r}});var y=S,T=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(T)}}}export{P as a,j as b,B as c,z as d,F as e,M as f,D as g,O as h,C as i,R as n,X as o,W as r};
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dscn0QO8.js","./Bzak7iHL.js","./MIlO0V30.js","./BMmwim-G.js","./Dt2zEVER.js","./D6Mj8HfB.js","./DPCugUAM.js","./CEGTtJLH.js","./De4R2cbq.js","./znVx7SEM.js","./BXb9cfiV.js","./CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as P,_ as B}from"./DPCugUAM.js";import"./Bzak7iHL.js";import{h as t,i as w,N as y,ap as L,k as N,Q as O,aq as S,ar as V,as as R,at as A,L as D,p as h,m as _,Y as q,au as j,av as z,aw as G,ax as k,D as F,b as p,d as b,F as H,a as c,E as I,_ as Q,ay as Y,g as E,u as C,f as J}from"./MIlO0V30.js";import{a as K}from"./DBvDeCtH.js";import{B as U,i as W}from"./D6Mj8HfB.js";import{t as X,a as Z,c as $,s as ee}from"./De4R2cbq.js";import{i as ae}from"./Dt2zEVER.js";import{p as T,b as re,r as te}from"./znVx7SEM.js";function ne(f,r,n,o,u,e){let d=t;t&&w();var a=null;t&&y.nodeType===L&&(a=y,w());var l=t?y:f,i=new U(l,!1);N(()=>{const s=r()||null;var v=n||s==="svg"?V:void 0;if(s===null){i.ensure(null,null);return}return i.ensure(s,m=>{if(s){if(a=t?a:S(s,v),R(a,a),o){t&&ae(s)&&a.append(document.createComment(""));var g=t?A(a):a.appendChild(D());t&&(g===null?h(!1):_(g)),o(a,g)}q.nodes.end=a,m.before(a)}t&&_(m)}),()=>{}},O),j(()=>{}),d&&(h(!0),_(l))}function se(f,r){let n=null,o=t;var u;if(t){n=y;for(var e=A(document.head);e!==null&&(e.nodeType!==G||e.data!==f);)e=k(e);if(e===null)h(!1);else{var d=k(e);e.remove(),_(d)}}t||(u=document.head.appendChild(D()));try{N(()=>r(u),z)}finally{o&&(h(!0),_(n))}}const ie=X({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _e(f,r){F(r,!0);let n=T(r,"ref",15,null),o=T(r,"variant",3,"default"),u=te(r,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=p(),d=b(e);ne(d,()=>r.href?"a":"span",!1,(a,l)=>{re(a,v=>n(v),()=>n()),Z(a,v=>({"data-slot":"badge",href:r.href,class:v,...u}),[()=>$(ie({variant:o()}),r.class)]);var i=p(),s=b(i);ee(s,()=>r.children??H),c(l,i)}),c(f,e),I()}var oe=J('<main class="container mx-auto flex flex-col gap-6 py-8"><p class="text-muted-foreground">Loading…</p></main>');function pe(f,r){F(r,!0);var n=p();se("rk8na7",e=>{Q(()=>{Y.title="Items – Stackq"})});var o=b(n);{var u=e=>{var d=p(),a=b(d);K(a,()=>B(()=>import("./Dscn0QO8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),l=>{var i=oe();c(l,i)},(l,i)=>{var s=C(()=>{var{default:x}=E(i);return{ItemsCrud:x}}),v=C(()=>E(s).ItemsCrud),m=p(),g=b(m);P(g,()=>E(v),(x,M)=>{M(x,{get data(){return r.data}})}),c(l,m)}),c(e,d)};W(o,e=>{e(u)})}c(f,n),I()}export{_e as B,pe as _,ne as e,se as h};
|
||||
@@ -1 +0,0 @@
|
||||
import{_ as T,$ as Y,a0 as R,q as B,a1 as S,a2 as g,a3 as j,a4 as q,g as h,a5 as K,a6 as M,Y as N,a7 as U,a8 as $,a9 as z,aa as C,ab as G,ac as Z,ad as F,ae as H,af as J,ag as x,ah as d}from"./MIlO0V30.js";function y(r,e){return r===e||(r==null?void 0:r[S])===e}function m(r={},e,n,i){return T(()=>{var s,t;return Y(()=>{s=t,t=[],R(()=>{r!==n(...t)&&(e(r,...t),s&&y(n(...s),r)&&e(null,...s))})}),()=>{B(()=>{t&&y(n(...t),r)&&e(null,...t)})}}),r}let _=!1;function Q(r){var e=_;try{return _=!1,[r(),_]}finally{_=e}}const V={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function k(r,e,n){return new Proxy({props:r,exclude:e},V)}const W={get(r,e){let n=r.props.length;for(;n--;){let i=r.props[n];if(d(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(r,e,n){let i=r.props.length;for(;i--;){let s=r.props[i];d(s)&&(s=s());const t=g(s,e);if(t&&t.set)return t.set(n),!0}return!1},getOwnPropertyDescriptor(r,e){let n=r.props.length;for(;n--;){let i=r.props[n];if(d(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const s=g(i,e);return s&&!s.configurable&&(s.configurable=!0),s}}},has(r,e){if(e===S||e===x)return!1;for(let n of r.props)if(d(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(r){const e=[];for(let n of r.props)if(d(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function rr(...r){return new Proxy({props:r},W)}function er(r,e,n,i){var O;var s=!z||(n&C)!==0,t=(n&$)!==0,E=(n&H)!==0,a=i,v=!0,b=()=>(v&&(v=!1,a=E?R(i):i),a),l;if(t){var A=S in r||x in r;l=((O=g(r,e))==null?void 0:O.set)??(A&&e in r?f=>r[e]=f:void 0)}var o,w=!1;t?[o,w]=Q(()=>r[e]):o=r[e],o===void 0&&i!==void 0&&(o=b(),l&&(s&&j(),l(o)));var u;if(s?u=()=>{var f=r[e];return f===void 0?b():(v=!0,f)}:u=()=>{var f=r[e];return f!==void 0&&(a=void 0),f===void 0?a:f},s&&(n&q)===0)return u;if(l){var D=r.$$legacy;return(function(f,p){return arguments.length>0?((!s||!p||D||w)&&l(p?u():f),f):u()})}var P=!1,c=((n&G)!==0?Z:F)(()=>(P=!1,u()));t&&h(c);var L=N;return(function(f,p){if(arguments.length>0){const I=p?h(c):s&&t?K(f):f;return M(c,I),P=!0,a!==void 0&&(a=I),f}return J&&P||(L.f&U)!==0?c.v:h(c)})}export{m as b,er as p,k as r,rr as s};
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DZETcxWC.js","../chunks/Bzak7iHL.js","../chunks/DAt58MA1.js","../chunks/MIlO0V30.js","../assets/0.BgdOWdGt.css","../nodes/1.DMG02OYc.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/BXb9cfiV.js","../nodes/2.B-LkGsse.js","../chunks/CINS0kDe.js","../chunks/De4R2cbq.js","../chunks/D6Mj8HfB.js","../chunks/znVx7SEM.js","../chunks/DPCugUAM.js","../nodes/4.BhfvMQ1L.js","../chunks/hxRy_pid.js","../chunks/DBvDeCtH.js","../nodes/5.Cf_DU5yu.js"])))=>i.map(i=>d[i]);
|
||||
var M=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||M("Cannot "+r);var o=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),A=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(G(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{c as D,_ as y}from"../chunks/DPCugUAM.js";import{a6 as x,ag as N,g as d,y as Q,T as U,A as X,D as Z,aj as $,ak as tt,aW as et,d as R,s as rt,a as E,E as at,b0 as L,b as T,c as st,r as ot,f as W,t as nt,ao as it,u as k}from"../chunks/MIlO0V30.js";import{h as ct,m as ut,u as mt,o as dt,s as lt}from"../chunks/BMmwim-G.js";import"../chunks/Bzak7iHL.js";import{i as w}from"../chunks/D6Mj8HfB.js";import{p as I,b as V}from"../chunks/znVx7SEM.js";function _t(e){return class extends ft{constructor(t){super({component:e,...t})}}}var l,c;class ft{constructor(t){A(this,l);A(this,c);var v;var r=new Map,n=(a,s)=>{var _=X(s,!1,!1);return r.set(a,_),_};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return d(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===N?!0:(d(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,_){return x(r.get(s)??n(s,_),_),Reflect.set(a,s,_)}});j(this,c,(t.hydrate?ct:ut)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((v=t==null?void 0:t.props)!=null&&v.$$host)||t.sync===!1)&&Q(),j(this,l,m.$$events);for(const a of Object.keys(o(this,c)))a==="$set"||a==="$destroy"||a==="$on"||U(this,a,{get(){return o(this,c)[a]},set(s){o(this,c)[a]=s},enumerable:!0});o(this,c).$set=a=>{Object.assign(m,a)},o(this,c).$destroy=()=>{mt(o(this,c))}}$set(t){o(this,c).$set(t)}$on(t,r){o(this,l)[t]=o(this,l)[t]||[];const n=(...m)=>r.call(this,...m);return o(this,l)[t].push(n),()=>{o(this,l)[t]=o(this,l)[t].filter(m=>m!==n)}}$destroy(){o(this,c).$destroy()}}l=new WeakMap,c=new WeakMap;const Dt={};var ht=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),gt=W("<!> <!>",1);function vt(e,t){Z(t,!0);let r=I(t,"components",23,()=>[]),n=I(t,"data_0",3,null),m=I(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),m(),t.stores.page.notify()});let v=L(!1),a=L(!1),s=L(null);dt(()=>{const i=t.stores.page.subscribe(()=>{d(v)&&(x(a,!0),et().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(v,!0),i});const _=k(()=>t.constructors[1]);var p=gt(),C=R(p);{var q=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,yt)=>{var S=T(),H=R(S);D(H,()=>d(_),(J,K)=>{V(K(J,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(u,S)},$$slots:{default:!0}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)},z=i=>{const f=k(()=>t.constructors[0]);var h=T(),P=R(h);D(P,()=>d(f),(g,b)=>{V(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)};w(C,i=>{t.constructors[1]?i(q):i(z,!1)})}var B=rt(C,2);{var F=i=>{var f=ht(),h=st(f);{var P=g=>{var b=nt();it(()=>lt(b,d(s))),E(g,b)};w(h,g=>{d(a)&&g(P)})}ot(f),E(i,f)};w(B,i=>{d(v)&&i(F)})}E(e,p),at()}const Lt=_t(vt),Tt=[()=>y(()=>import("../nodes/0.DZETcxWC.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>y(()=>import("../nodes/1.DMG02OYc.js"),__vite__mapDeps([5,1,2,3,6,7,8]),import.meta.url),()=>y(()=>import("../nodes/2.B-LkGsse.js"),__vite__mapDeps([9,1,2,3,10,11,12,7,13]),import.meta.url),()=>y(()=>import("../chunks/DPCugUAM.js").then(e=>e.a),__vite__mapDeps([14,3,12]),import.meta.url),()=>y(()=>import("../nodes/4.BhfvMQ1L.js"),__vite__mapDeps([15,16,14,3,12,1,17,11,7,13]),import.meta.url),()=>y(()=>import("../nodes/5.Cf_DU5yu.js"),__vite__mapDeps([18,14,3,12,1,17]),import.meta.url)],kt=[],wt={"/":[2],"/items":[-5],"/login":[-6],"/logout":[-4]},Y={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},bt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),It=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),Vt=!1,pt=(e,t)=>bt[e](t);export{pt as decode,bt as decoders,wt as dictionary,It as encoders,Vt as hash,Y as hooks,Dt as matchers,Tt as nodes,Lt as root,kt as server_loads};
|
||||
@@ -1 +0,0 @@
|
||||
import{l as o,d as r}from"../chunks/BXb9cfiV.js";export{o as load_css,r as start};
|
||||
@@ -1 +0,0 @@
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{h as l,i as f,b as s,d,a as u}from"../chunks/MIlO0V30.js";function c(o,e,t,a,_){var i;l&&f();var n=(i=e.$$slots)==null?void 0:i[t],r=!1;n===!0&&(n=e.children,r=!0),n===void 0||n(o,r?()=>a:a)}const y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function b(o,e){var t=s(),a=d(t);c(a,e,"default",{}),u(o,t)}export{b as component,y as universal};
|
||||
@@ -1 +0,0 @@
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{ai as k,aj as b,ak as i,a0 as x,al as l,am as $,g as v,an as y,ac as E,D as j,d as D,ao as q,a as w,E as z,f as A,c as u,r as m,s as B}from"../chunks/MIlO0V30.js";import{s as g}from"../chunks/BMmwim-G.js";import{s as C,p as _}from"../chunks/BXb9cfiV.js";function F(r=!1){const e=k,t=e.l.u;if(!t)return;let a=()=>y(e.s);if(r){let o=0,s={};const c=E(()=>{let n=!1;const p=e.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>v(c)}t.b.length&&b(()=>{d(e,a),l(t.b)}),i(()=>{const o=x(()=>t.m.map($));return()=>{for(const s of o)typeof s=="function"&&s()}}),t.a.length&&i(()=>{d(e,a),l(t.a)})}function d(r,e){if(r.l.s)for(const t of r.l.s)v(t);e()}const G={get error(){return _.error},get status(){return _.status}};C.updated.check;const h=G;var H=A("<h1> </h1> <p> </p>",1);function N(r,e){j(e,!1),F();var t=H(),a=D(t),o=u(a,!0);m(a);var s=B(a,2),c=u(s,!0);m(s),q(()=>{var n;g(o,h.status),g(c,(n=h.error)==null?void 0:n.message)}),w(r,t),z()}export{N as component};
|
||||
@@ -1 +0,0 @@
|
||||
import"../chunks/Bzak7iHL.js";import"../chunks/DAt58MA1.js";import{a as l,f as h,s as m,c as t,n as c,t as p,r as e}from"../chunks/MIlO0V30.js";import{B as d}from"../chunks/CINS0kDe.js";var $=h('<main class="flex min-h-screen flex-col items-center justify-center gap-4 p-8"><h1 class="text-2xl font-semibold">Stackq</h1> <p class="text-muted-foreground">Svelte 5 + shadcn-svelte + PocketBase</p> <div class="flex gap-2"><a href="/items"><!></a> <a href="/logout"><!></a></div></main>');function P(f){var a=$(),n=m(t(a),4),s=t(n),v=t(s);d(v,{children:(r,x)=>{c();var o=p("Items table");l(r,o)},$$slots:{default:!0}}),e(s);var i=m(s,2),u=t(i);d(u,{variant:"outline",children:(r,x)=>{c();var o=p("Log out");l(r,o)},$$slots:{default:!0}}),e(i),e(n),e(a),l(f,a)}export{P as component};
|
||||
@@ -1 +0,0 @@
|
||||
import{_ as m}from"../chunks/hxRy_pid.js";export{m as component};
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DhhKcsqN.js","../chunks/Bzak7iHL.js","../chunks/MIlO0V30.js","../chunks/BMmwim-G.js","../chunks/Dt2zEVER.js","../chunks/D6Mj8HfB.js","../chunks/DPCugUAM.js","../chunks/CEGTtJLH.js","../chunks/De4R2cbq.js","../chunks/znVx7SEM.js","../chunks/BXb9cfiV.js","../chunks/CINS0kDe.js"])))=>i.map(i=>d[i]);
|
||||
import{c as F,_ as k}from"../chunks/DPCugUAM.js";import"../chunks/Bzak7iHL.js";import{a as r,f as v,c as E,r as P,b as _,d,g as i,u as p}from"../chunks/MIlO0V30.js";import{a as $}from"../chunks/DBvDeCtH.js";import{i as j}from"../chunks/D6Mj8HfB.js";var w=v('<p class="text-muted-foreground">Loading…</p>'),y=v('<main class="flex min-h-screen flex-col items-center justify-center p-4"><!></main>');function T(c,f){var a=y(),l=E(a);{var u=o=>{var n=_(),g=d(n);$(g,()=>k(()=>import("../chunks/DhhKcsqN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=>{var t=w();r(e,t)},(e,t)=>{var L=p(()=>{var{default:m}=i(t);return{LoginForm:m}}),h=p(()=>i(L).LoginForm),s=_(),x=d(s);F(x,()=>i(h),(m,b)=>{b(m,{get data(){return f.data}})}),r(e,s)}),r(o,n)};j(l,o=>{o(u)})}P(a),r(c,a)}export{T as component};
|
||||
Reference in New Issue
Block a user