PageSourceSearch

https://digitalwomble.co.uk/assets/PageNotFound-CB-d181Z.js

js digitalwomble.co.uk collected 2026-10-04 14:12:43 UTC 13,014 bytes, 1 lines download raw bytes

1var be=s=>{throw TypeError(s)};var q=(s,e,t)=>e.has(s)||be("Cannot "+t);var i=(s,e,t)=>(q(s,e,"read from private field"),t?t.call(s):e.get(s)),m=(s,e,t)=>e.has(s)?be("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),l=(s,e,t,r)=>(q(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t),d=(s,e,t)=>(q(s,e,"access private method"),t);import{S as Ne,p as ge,r as S,s as ee,a as H,n as te,i as se,b as xe,t as je,c as X,f as Te,d as Me,e as ve,g as Ce,h as w,j as we,u as Qe,k as _e,l as Fe,m as u,o as Pe}from"./index-BIIiAfL5.js";var x,a,W,g,M,P,C,I,z,U,D,Q,_,N,k,o,B,ie,re,ae,ne,oe,he,ce,Oe,Ee,Ue=(Ee=class extends Ne{constructor(e,t){super();m(this,o);m(this,x);m(this,a);m(this,W);m(this,g);m(this,M);m(this,P);m(this,C);m(this,I);m(this,z);m(this,U);m(this,D);m(this,Q);m(this,_);m(this,N);m(this,k,new Set);this.options=t,l(this,x,e),l(this,I,null),l(this,C,ge()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(i(this,a).addObserver(this),ye(i(this,a),this.options)?d(this,o,B).call(this):this.updateResult(),d(this,o,ne).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return le(i(this,a),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return le(i(this,a),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,d(this,o,oe).call(this),d(this,o,he).call(this),i(this,a).removeObserver(this)}setOptions(e){const t=this.options,r=i(this,a);if(this.options=i(this,x).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof S(this.options.enabled,i(this,a))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");d(this,o,ce).call(this),i(this,a).setOptions(this.options),t._defaulted&&!ee(this.options,t)&&i(this,x).getQueryCache().notify({type:"observerOptionsUpdated",query:i(this,a),observer:this});const n=this.hasListeners();n&&Re(i(this,a),r,this.options,t)&&d(this,o,B).call(this),this.updateResult(),n&&(i(this,a)!==r||S(this.options.enabled,i(this,a))!==S(t.enabled,i(this,a))||H(this.options.staleTime,i(this,a))!==H(t.staleTime,i(this,a)))&&d(this,o,ie).call(this);const h=d(this,o,re).call(this);n&&(i(this,a)!==r||S(this.options.enabled,i(this,a))!==S(t.enabled,i(this,a))||h!==i(this,N))&&d(this,o,ae).call(this,h)}getOptimisticResult(e){const t=i(this,x).getQueryCache().build(i(this,x),e),r=this.createResult(t,e);return ke(this,r)&&(l(this,g,r),l(this,P,this.options),l(this,M,i(this,a).state)),r}getCurrentResult(){return i(this,g)}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t==null||t(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&i(this,C).status==="pending"&&i(this,C).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){i(this,k).add(e)}getCurrentQuery(){return i(this,a)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=i(this,x).defaultQueryOptions(e),r=i(this,x).getQueryCache().build(i(this,x),t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return d(this,o,B).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),i(this,g)))}createResult(e,t){var pe;const r=i(this,a),n=this.options,h=i(this,g),c=i(this,M),R=i(this,P),b=e!==r?e.state:i(this,W),{state:E}=e;let f={...E},j=!1,p;if(t._optimisticResults){const y=this.hasListeners(),A=!y&&ye(e,t),K=y&&Re(e,r,t,n);(A||K)&&(f={...f,...Me(E.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:T,errorUpdatedAt:L,status:v}=f;p=f.data;let V=!1;if(t.placeholderData!==void 0&&p===void 0&&v==="pending"){let y;h!=null&&h.isPlaceholderData&&t.placeholderData===(R==null?void 0:R.placeholderData)?(y=h.data,V=!0):y=typeof t.placeholderData=="function"?t.placeholderData((pe=i(this,D))==null?void 0:pe.state.data,i(this,D)):t.placeholderData,y!==void 0&&(v="success",p=ve(h==null?void 0:h.data,y,t),j=!0)}if(t.select&&p!==void 0&&!V)if(h&&p===(c==null?void 0:c.data)&&t.select===i(this,z))p=i(this,U);else try{l(this,z,t.select),p=t.select(p),p=ve(h==null?void 0:h.data,p,t),l(this,U,p),l(this,I,null)}catch(y){l(this,I,y)}i(this,I)&&(T=i(this,I),p=i(this,U),L=Date.now(),v="error");const Y=f.fetchStatus==="fetching",Z=v==="pending",$=v==="error",de=Z&&Y,fe=p!==void 0,O={status:v,fetchStatus:f.fetchStatus,isPending:Z,isSuccess:v==="success",isError:$,isInitialLoading:de,isLoading:de,data:p,dataUpdatedAt:f.dataUpdatedAt,error:T,errorUpdatedAt:L,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdate
1Count:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>b.dataUpdateCount||f.errorUpdateCount>b.errorUpdateCount,isFetching:Y,isRefetching:Y&&!Z,isLoadingError:$&&!fe,isPaused:f.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:$&&fe,isStale:ue(e,t),refetch:this.refetch,promise:i(this,C),isEnabled:S(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const y=O.data!==void 0,A=O.status==="error"&&!y,K=J=>{A?J.reject(O.error):y&&J.resolve(O.data)},me=()=>{const J=l(this,C,O.promise=ge());K(J)},G=i(this,C);switch(G.status){case"pending":e.queryHash===r.queryHash&&K(G);break;case"fulfilled":(A||O.data!==G.value)&&me();break;case"rejected":(!A||O.error!==G.reason)&&me();break}}return O}updateResult(){const e=i(this,g),t=this.createResult(i(this,a),this.options);if(l(this,M,i(this,a).state),l(this,P,this.options),i(this,M).data!==void 0&&l(this,D,i(this,a)),ee(t,e))return;l(this,g,t);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,h=typeof n=="function"?n():n;if(h==="all"||!h&&!i(this,k).size)return!0;const c=new Set(h??i(this,k));return this.options.throwOnError&&c.add("error"),Object.keys(i(this,g)).some(R=>{const F=R;return i(this,g)[F]!==e[F]&&c.has(F)})};d(this,o,Oe).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&d(this,o,ne).call(this)}},x=new WeakMap,a=new WeakMap,W=new WeakMap,g=new WeakMap,M=new WeakMap,P=new WeakMap,C=new WeakMap,I=new WeakMap,z=new WeakMap,U=new WeakMap,D=new WeakMap,Q=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,o=new WeakSet,B=function(e){d(this,o,ce).call(this);let t=i(this,a).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(te)),t},ie=function(){d(this,o,oe).call(this);const e=H(this.options.staleTime,i(this,a));if(se||i(this,g).isStale||!xe(e))return;const r=je(i(this,g).dataUpdatedAt,e)+1;l(this,Q,X.setTimeout(()=>{i(this,g).isStale||this.updateResult()},r))},re=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(i(this,a)):this.options.refetchInterval)??!1},ae=function(e){d(this,o,he).call(this),l(this,N,e),!(se||S(this.options.enabled,i(this,a))===!1||!xe(i(this,N))||i(this,N)===0)&&l(this,_,X.setInterval(()=>{(this.options.refetchIntervalInBackground||Te.isFocused())&&d(this,o,B).call(this)},i(this,N)))},ne=function(){d(this,o,ie).call(this),d(this,o,ae).call(this,d(this,o,re).call(this))},oe=function(){i(this,Q)&&(X.clearTimeout(i(this,Q)),l(this,Q,void 0))},he=function(){i(this,_)&&(X.clearInterval(i(this,_)),l(this,_,void 0))},ce=function(){const e=i(this,x).getQueryCache().build(i(this,x),this.options);if(e===i(this,a))return;const t=i(this,a);l(this,a,e),l(this,W,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},Oe=function(e){Ce.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(i(this,g))}),i(this,x).getQueryCache().notify({query:i(this,a),type:"observerResultsUpdated"})})},Ee);function De(s,e){return S(e.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&e.retryOnMount===!1)}function ye(s,e){return De(s,e)||s.state.data!==void 0&&le(s,e,e.refetchOnMount)}function le(s,e,t){if(S(e.enabled,s)!==!1&&H(e.staleTime,s)!=="static"){const r=typeof t=="function"?t(s):t;return r==="always"||r!==!1&&ue(s,e)}return!1}function Re(s,e,t,r){return(s!==e||S(r.enabled,s)===!1)&&(!t.suspense||s.state.status!=="error")&&ue(s,t)}function ue(s,e){return S(e.enabled,s)!==!1&&s.isStaleByTime(H(e.staleTime,s))}function ke(s,e){return!ee(s.getCurrentResult(),e)}var Ie=w.createContext(!1),Le=()=>w.useContext(Ie);Ie.Provider;function Ae(){let s=!1;return{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s}}var Be=w.createContext(Ae()),He=()=>w.useContext(Be),We=(s,e,t)=>{const r=t!=null&&t.state.error&&typeof s.throwOnError=="function"?we(s.throwOnError,[t.state.error,t]):s.throwOnError;(s.suspense||s.experimental_prefetchInRender||r)&&(e.isReset()||(s.retryOnMount=!1))},ze=s=>{w.useEffect(()=>{s.clearReset()},[s])},Ve=({result:s,errorResetBoundary:e,throwOnError:t,query:r,suspense:n})=>s.isError&&!e.isReset()&&!s.isFetching&&r&&(n&&s.data===void 0||we(t,[s.error,r])),Ke=s=>{if(s.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=s.staleTime;s.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof s.gcTime=="number"&&(s.gcTime=Math.max(s.gcTime,1e3))}},Ge=(s,e)=>s.isLoading&&s.isFetching&&!e,Je=(s,e)=>(s==null?void 0:s.suspense)&&e.isPending,Se=(s,e,t)=>e.fetchOptimistic(s).catch(()=>{t.clearReset()});function Xe(s,e,t){var j,p,T,L;const r=Le(),n=He(),h=Qe(),c=h.defaultQueryOptions(s);(p=(j=h.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||p.call(j,c);const R=h.getQueryCache().get(c.queryHash);c._optimisticResults=r?"isRestoring":"optimistic",Ke(c),We(c,n,R),ze(n);const F=!h.getQueryCache().get(c.queryHash),[b]=w.useState(()=>new e(h,c)),E=b.getOptimisticResult(c),f=!r&&s.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(v=>{const V=f?b.subscribe(Ce.batchCalls(v)):te;return b.updateResult(),V},[b,f]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),w.useEffect(()=>{b.setOptions(c)},[c,b]),Je(c,E))throw Se(c,b,n);if(Ve({result:E,errorResetBoundary:n,throwOnError:c.throwOnError,query:R,suspense:c.suspense}))throw E.error;if((L=(T=h.getDefaultOptions().queries)==null?void 0:T._experimental_afterQuery)==null||L.call(T,c,E),c.experimental_prefetchInRender&&!se&&Ge(E,r)){const v=F?Se(c,b,n):R==null?void 0:R.promise;v==null||v.catch(te).finally(()=>{b.updateResult()})}return c.notifyOnChangeProps?E:b.trackResult(E)}function Ye(s,e){return Xe(s,Ue)}function et({}){var n;_e({title:"Page Not Found | Digital Womble",description:"The page you requested could not be found.",robots:"noindex, nofollow",noCanonical:!0});
1const e=Fe().pathname.substring(1),{data:t,isFetched:r}=Ye({queryKey:["user"],queryFn:async()=>{try{return{user:await Pe.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return u.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:u.jsx("div",{className:"max-w-md w-full",children:u.jsxs("div",{className:"text-center space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),u.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),u.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",u.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),r&&t.isAuthenticated&&((n=t.user)==null?void 0:n.role)==="admin"&&u.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:u.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),u.jsxs("div",{className:"text-left space-y-1",children:[u.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),u.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),u.jsx("div",{className:"pt-6",children:u.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[u.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}export{et as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.