diff --git a/_build/.vite/manifest.json b/_build/.vite/manifest.json index a23aff5..00bb57a 100644 --- a/_build/.vite/manifest.json +++ b/_build/.vite/manifest.json @@ -94,7 +94,7 @@ "isDynamicEntry": true }, "src/routes/(admin)/index.tsx?pick=default&pick=$css": { - "file": "assets/index-C7GoVCI2.js", + "file": "assets/index-Dl7a3Ezc.js", "src": "src/routes/(admin)/index.tsx?pick=default&pick=$css", "isEntry": true, "isDynamicEntry": true @@ -115,7 +115,7 @@ ] }, "src/routes/(admin)/sales/index.tsx?pick=default&pick=$css": { - "file": "assets/index-Dl7a3Ezc.js", + "file": "assets/index-C7GoVCI2.js", "src": "src/routes/(admin)/sales/index.tsx?pick=default&pick=$css", "isEntry": true, "isDynamicEntry": true diff --git a/_build/.vite/manifest.json.br b/_build/.vite/manifest.json.br index 2323b15..22dac5f 100644 Binary files a/_build/.vite/manifest.json.br and b/_build/.vite/manifest.json.br differ diff --git a/_build/.vite/manifest.json.gz b/_build/.vite/manifest.json.gz index 9df680c..7c3ef43 100644 Binary files a/_build/.vite/manifest.json.gz and b/_build/.vite/manifest.json.gz differ diff --git a/_build/assets/client-CU7eFVFM.js b/_build/assets/client-CU7eFVFM.js index 8462b97..2cdd46c 100644 --- a/_build/assets/client-CU7eFVFM.js +++ b/_build/assets/client-CU7eFVFM.js @@ -1,4 +1,4 @@ -import{c as G,a as T,b as g,g as J,o as X,S as U,d as Y,e as Q,f as B,h as tt,u as et,s as rt,m as R,l as nt,i as ot,E as st}from"./solid-z68Z1Ghi.js";import{d as it,g as I,s as x,i as at,r as P,t as O,h as ct}from"./web-DHYkzEvn.js";import{l as ut,g as lt}from"./invoices-RC-USADH.js";import{a as dt,c as j,b as pt}from"./server-runtime-CZtD0TGt.js";import{l as W,g as ft}from"./products-DZG7KoON.js";import{A as mt}from"./auth-YudFUAqn.js";import{c as ht,a as _t,R as gt,g as Et,b as vt,d as z,e as bt,m as $t,k as wt,s as kt,f as At,n as Tt}from"./routing-CypKlUTf.js";const Rt="modulepreload",It=function(t){return"/portfolio/_build/"+t},V={},d=function(r,e,n){let o=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link");o=Promise.all(e.map(s=>{if(s=It(s),s in V)return;V[s]=!0;const i=s.endsWith(".css"),c=i?'[rel="stylesheet"]':"";if(!!n)for(let p=a.length-1;p>=0;p--){const v=a[p];if(v.href===s&&(!i||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${c}`))return;const f=document.createElement("link");if(f.rel=i?"stylesheet":Rt,i||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),i)return new Promise((p,v)=>{f.addEventListener("load",p),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>r()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},L="Invariant Violation",{setPrototypeOf:xt=function(t,r){return t.__proto__=r,t}}=Object;class N extends Error{framesToPop=1;name=L;constructor(r=L){super(typeof r=="number"?`${L}: ${r} (see https://github.com/apollographql/invariant-packages)`:r),xt(this,N.prototype)}}function y(t,r){if(!t)throw new N(r)}const Pt=/^[A-Za-z]:\//;function Lt(t=""){return t&&t.replace(/\\/g,"/").replace(Pt,r=>r.toUpperCase())}const yt=/^[/\\]{2}/,St=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Ot=/^[A-Za-z]:$/,Nt=function(t){if(t.length===0)return".";t=Lt(t);const r=t.match(yt),e=S(t),n=t[t.length-1]==="/";return t=Dt(t,!e),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),Ot.test(t)&&(t+="/"),r?e?`//${t}`:`//./${t}`:e&&!S(t)?`/${t}`:t)},H=function(...t){if(t.length===0)return".";let r;for(const e of t)e&&e.length>0&&(r===void 0?r=e:r+=`/${e}`);return r===void 0?".":Nt(r.replace(/\/\/+/g,"/"))};function Dt(t,r){let e="",n=0,o=-1,a=0,s=null;for(let i=0;i<=t.length;++i){if(i2){const c=e.lastIndexOf("/");c===-1?(e="",n=0):(e=e.slice(0,c),n=e.length-1-e.lastIndexOf("/")),o=i,a=0;continue}else if(e.length>0){e="",n=0,o=i,a=0;continue}}r&&(e+=e.length>0?"/..":"..",n=2)}else e.length>0?e+=`/${t.slice(o+1,i)}`:e=t.slice(o+1,i),n=i-o-1;o=i,a=0}else s==="."&&a!==-1?++a:a=-1}return e}const S=function(t){return St.test(t)};function Ct(t){return`virtual:${t}`}function Vt(t){return t.handler?.endsWith(".html")?S(t.handler)?t.handler:H(t.root,t.handler):`#vinxi/handler/${t.name}`}const Ft=new Proxy({},{get(t,r){return y(typeof r=="string","Bundler name should be a string"),{handler:Ct(Vt({name:r})),chunks:new Proxy({},{get(e,n){y(typeof n=="string","Chunk expected");let o=H("/portfolio/_build",n+".js");return{import(){return d(()=>import(o),__vite__mapDeps([]))},output:{path:o}}}}),inputs:new Proxy({},{get(e,n){y(typeof n=="string","Input must be string");let o=window.manifest[n].output;return{async import(){return d(()=>import(o),__vite__mapDeps([]))},async assets(){return window.manifest[n].assets},output:{path:o}}}})}}});globalThis.MANIFEST=Ft;const Mt=t=>r=>{const{base:e}=r,n=G(()=>r.children),o=T(()=>ht(r.root?{component:r.root,load:r.rootLoad,children:n()}:n(),r.base||""));let a;const s=_t(t,()=>a,o,{base:e,singleFlight:r.singleFlight});return t.create&&t.create(s),g(gt.Provider,{value:s,get children(){return[T(()=>(a=J())&&null),g(qt,{routerState:s,get branches(){return o()}})]}})};function qt(t){const r=T(()=>Et(t.branches,t.routerState.location.pathname)),e=vt(()=>{const s=r(),i={};for(let c=0;c{let h=i&&s.length===i.length;const f=[];for(let p=0,v=s.length;p{n[p]=l,f[p]=bt(t.routerState,f[p-1]||t.routerState.base,Ut(()=>a()[p+1]),()=>r()[p],e)}))}return n.splice(s.length).forEach(p=>p()),c&&h?c:(o=f[0],f)}));return g(U,{get when(){return a()&&o},keyed:!0,children:s=>g(z.Provider,{value:s,get children(){return s.outlet()}})})}const Ut=t=>()=>g(U,{get when(){return t()},keyed:!0,children:r=>g(z.Provider,{value:r,get children(){return r.outlet()}})});function Bt([t,r],e,n){return[e?()=>e(t()):t,n?o=>r(n(o)):r]}function jt(t){if(t==="#")return null;try{return document.querySelector(t)}catch{return null}}function Wt(t){let r=!1;const e=o=>typeof o=="string"?{value:o}:o,n=Bt(Q(e(t.get()),{equals:(o,a)=>o.value===a.value}),void 0,o=>(!r&&t.set(o),o));return t.init&&B(t.init((o=t.get())=>{r=!0,n[1](e(o)),r=!1})),Mt({signal:n,create:t.create,utils:t.utils})}function zt(t,r,e){return t.addEventListener(r,e),()=>t.removeEventListener(r,e)}function Ht(t,r){const e=jt(`#${t}`);e?e.scrollIntoView():r&&window.scrollTo(0,0)}function Kt(t=!0,r=!1,e="/_server"){return n=>{const o=n.base.path(),a=n.navigatorFactory(n.base);let s={};function i(u){return u.namespaceURI==="http://www.w3.org/2000/svg"}function c(u){if(u.defaultPrevented||u.button!==0||u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)return;const l=u.composedPath().find(C=>C instanceof Node&&C.nodeName.toUpperCase()==="A");if(!l||r&&!l.hasAttribute("link"))return;const _=i(l),m=_?l.href.baseVal:l.href;if((_?l.target.baseVal:l.target)||!m&&!l.hasAttribute("state"))return;const k=(l.getAttribute("rel")||"").split(/\s+/);if(l.hasAttribute("download")||k&&k.includes("external"))return;const A=_?new URL(m,document.baseURI):new URL(m);if(!(A.origin!==window.location.origin||o&&A.pathname&&!A.pathname.toLowerCase().startsWith(o.toLowerCase())))return[l,A]}function h(u){const l=c(u);if(!l)return;const[_,m]=l,D=n.parsePath(m.pathname+m.search+m.hash),k=_.getAttribute("state");u.preventDefault(),a(D,{resolve:!1,replace:_.hasAttribute("replace"),scroll:!_.hasAttribute("noscroll"),state:k&&JSON.parse(k)})}function f(u){const l=c(u);if(!l)return;const[_,m]=l;s[m.pathname]||n.preloadRoute(m,_.getAttribute("preload")!=="false")}function p(u){const l=c(u);if(!l)return;const[_,m]=l;s[m.pathname]||(s[m.pathname]=setTimeout(()=>{n.preloadRoute(m,_.getAttribute("preload")!=="false"),delete s[m.pathname]},200))}function v(u){const l=c(u);if(!l)return;const[,_]=l;s[_.pathname]&&(clearTimeout(s[_.pathname]),delete s[_.pathname])}function w(u){let l=u.submitter&&u.submitter.hasAttribute("formaction")?u.submitter.getAttribute("formaction"):u.target.getAttribute("action");if(!l)return;if(!l.startsWith("https://action/")){const m=new URL(l,$t);if(l=n.parsePath(m.pathname+m.search),!l.startsWith(e))return}if(u.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const _=dt.get(l);if(_){u.preventDefault();const m=new FormData(u.target);u.submitter&&u.submitter.name&&m.append(u.submitter.name,u.submitter.value),_.call(n,m)}}it(["click","submit"]),document.addEventListener("click",h),t&&(document.addEventListener("mouseover",p),document.addEventListener("mouseout",v),document.addEventListener("focusin",f),document.addEventListener("touchstart",f)),document.addEventListener("submit",w),B(()=>{document.removeEventListener("click",h),t&&(document.removeEventListener("mouseover",p),document.removeEventListener("mouseout",v),document.removeEventListener("focusin",f),document.removeEventListener("touchstart",f)),document.removeEventListener("submit",w)})}}function Zt(t){const r=()=>({value:window.location.pathname+window.location.search+window.location.hash,state:window.history.state}),e=At();return Wt({get:r,set({value:n,replace:o,scroll:a,state:s}){o?window.history.replaceState(wt(s),"",n):window.history.pushState(s,"",n),Ht(window.location.hash.slice(1),a),kt()},init:n=>zt(window,"popstate",Tt(n,o=>{if(o&&o<0)return!e.confirm(o);{const a=r();return!e.confirm(a.value,{state:a.state})}})),create:Kt(t.preload,t.explicitLinks,t.actionBase),utils:{go:n=>window.history.go(n),beforeLeave:e}})(t)}function $(t,r){let e,n=()=>!e||e.state==="unresolved"?void 0:e.latest;return[e]=tt(()=>Gt(t,et(n)),o=>o,r),()=>e()}class E{static all(){return new E}static allSettled(){return new E}static any(){return new E}static race(){return new E}static reject(){return new E}static resolve(){return new E}catch(){return new E}then(){return new E}finally(){return new E}}function Gt(t,r){if(!rt.context)return t(r);const e=fetch,n=Promise;try{return window.fetch=()=>new E,Promise=E,t(r)}finally{window.fetch=e,Promise=n}}function Jt(t){t.forEach(r=>{if(!r.attrs.href)return;let e=document.head.querySelector(`link[href="${r.attrs.href}"]`);e||(e=document.createElement("link"),e.setAttribute("rel","preload"),e.setAttribute("as","style"),e.setAttribute("href",r.attrs.href),document.head.appendChild(e))})}var Xt=O("