This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
@@ -1,2 +0,0 @@
|
||||
+ dm.?£öÜ&ͽB’€¾O Ë[ÿ�Q¯¿· —~c�b4!dŠÑmž"ÞZ†kwGL0Ü+CþDò�LoÙt²d4½®m1<*¹?óÏ#aFíÅ&ÚG^äÇËø¬Oü™\ò(Äê×ïGÀ ‡ÏÊU2™ÁÅ…
€«uU˜••¸Ù°‹�–4F…”~âø!&2°ùynËÉ
|
||||
” F*¥ ¹ý¹Z1?†nÌóîhH“yJ÷þúhTÁ‚y[(Kƒ¸Pò)9ɤÂcÍB
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
import{x as a}from"./BH97ETpZ.js";a();
|
||||
@@ -0,0 +1,2 @@
|
||||
€import{x as a}from"./BH97ETpZ.js";a();
|
||||
|
||||
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
+4
-4
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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 _};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
@@ -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 _};
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -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};
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user