PageSourceSearch

https://rijadorada.floot.app/_assets/index-CnBbLG5L.js

js rijadorada.floot.app collected 2026-10-03 05:33:15 UTC 15,329 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/admin-AVlB7pUa.js","_assets/vendor-4CWnL-fo.js","_assets/Helmet-CwM5HdU4.js","_assets/index-BbP3371Q.js","_assets/admin-Bq7nClNv.css","_assets/login-04m0Dzwy.js","_assets/login.module-DhUhb91m.js","_assets/login-BC8wo7n-.css","_assets/login-CcFaVSD9.css","_assets/_index-D5PW96UU.js","_assets/_index-D8-fxPu-.css","_assets/register-KTfZH-o8.js","_assets/register-DnsdEw4h.css","_assets/index-CWrjYjKi.js","_assets/index-D-YbPtF_.js","_assets/index-Do7Cmht_.js"])))=>i.map(i=>d[i]);
2import{R as C,Q as D,H as K,r as w,j as a,P as J,C as F,a as X,T as Z,u as V,o as $,S as R,b as ee,c as te,d as ne,m as oe,B as re,e as se,f as S,g as ie,O as ae,h as ce,i as ue}from"./vendor-4CWnL-fo.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const d of i.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();const le="modulepreload",de=function(e){return"/"+e},q={},T=function(t,o,s){let r=Promise.resolve();if(o&&o.length>0){let d=function(p){return Promise.all(p.map(n=>Promise.resolve(n).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),g=u?.nonce||u?.getAttribute("nonce");r=d(o.map(p=>{if(p=de(p),p in q)return;q[p]=!0;const n=p.endsWith(".css"),l=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${l}`))return;const c=document.createElement("link");if(c.rel=n?"stylesheet":le,n||(c.as="script"),c.crossOrigin="",c.href=p,g&&c.setAttribute("nonce",g),document.head.appendChild(c),n)return new Promise((m,h)=>{c.addEventListener("load",m),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${p}`)))})}))}function i(d){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=d,window.dispatchEvent(u),!u.defaultPrevented)throw d}return r.then(d=>{for(const u of d||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};function fe(){return typeof window<"u"&&window.__REACT_QUERY_STATE__?window.__REACT_QUERY_STATE__:null}function pe({client:e,children:t}){const o=fe();return o?C.createElement(D,{client:e},C.createElement(K,{state:o},t)):C.createElement(D,{client:e},t)}const O=new Set;function k(){const e=W();O.forEach(t=>t(e))}function he(e){return O.add(e),()=>{O.delete(e)}}function H(e){e?document.body.classList.add("dark"):document.body.classList.remove("dark")}let v=null;function me(){v&&(v.onchange=null,v=null),document.body.classList.add("dark"),k()}function we(){v&&(v.onchange=null,v=null),document.body.classList.remove("dark"),k()}function _e(){v&&(v.onchange=null);const e=window.matchMedia("(prefers-color-scheme: dark)");e.onchange=t=>{H(t.matches)},v=e,H(e.matches),k()}function W(){return v?"auto":document.body.classList.contains("dark")?"dark":"light"}const ye=w.createContext(null);function ge({children:e}){const[t,o]=w.useState(()=>W());w.useEffect(()=>he(i=>{o(i)}),[]);const s=w.useMemo(()=>({mode:t,switchToDarkMode:me,switchToLightMode:we,switchToAutoMode:_e}),[t]);return a.jsx(ye.Provider,{value:s,children:e})}const be="_content_1hxhe_2",ve={content:be},Ee=X,xe=w.forwardRef(({className:e,sideOffset:t=4,...o},s)=>a.jsx(J,{children:a.jsx(F,{ref:s,sideOffset:t,className:`${ve.content} ${e||""}`,...o})}));xe.displayName=F.displayName;const Te="_toaster_uhdob_2",Pe="_toast_uhdob_2",Le="_content_uhdob_35",Ce="_title_uhdob_43",Ae="_description_uhdob_50",je="_icon_uhdob_56",Re="_actionButton_uhdob_66",Se="_cancelButton_uhdob_93",Oe="_closeButton_uhdob_119",x={toaster:Te,toast:Pe,content:Le,title:Ce,description:Ae,icon:je,actionButton:Re,cancelButton:Se,closeButton:Oe},Ie=({className:e,...t})=>a.jsx(Z,{className:`${x.toaster} ${e??""}`,toastOptions:{unstyled:!0,classNames:{toast:x.toast,content:x.content,title:x.title,actionButton:x.actionButton,cancelButton:x.cancelButton,closeButton:x.closeButton,description:x.description,icon:x.icon}},...t}),ke=()=>{let e=V(),t=w.useMemo(()=>{let o=e.hash;const s=r=>r.slice(1);return o?document.getElementById(s(o)):null},[e]);return w.useEffect(()=>{t&&t.scrollIntoView({behavior:"smooth",inline:"nearest"})},[t]),null};$({});const Be=async(e={},t)=>{const o=await fetch("/_api/auth/session",{method:"GET",...t,headers:{"Content-Type":"application/json"}});return R.parse(await o.text())};$({});const Me=async(e={},t)=>{const o=await fetch("/_api/auth/logout",{method:"POST",body:R.stringify(e),...t,headers:{"Content-Type":"application/json"}});return R.parse(await o.text())},j=["auth","session"],G=w.createContext(void 0),Ne=({children:e})=>{const t=ee(),{data:o,error:s,status:r,refetch:i}=te({queryKey:j,queryFn:async()=>{const p=await Be();if("error"in p)throw new Error(p.error);return p.user},retry:1,enabled:!0,staleTime:1/0}),d=r==="pending"?{type:"loading"}:r==="error"?{type:"unauthenticated",errorMessage:s instanceof Error?s.message:"Session check failed"}:o?{type:"authenticated",user:o}:{type:"unauthenticated"},u=w.useCallback(async()=>{t.setQueryData(j,null),await Me(),t.resetQueries()},[t]),g=w.useCallback(p=>{t.setQueryData(j,p)},[t]);return a.jsx(G.Provider,{value:{authState:d,logout:u,onLogin:g},children:e})},at=()=>{const e=w.useContext(G);if(e===void 0)throw new Error("useAuth must be used within a AuthProvider");return e},De=new ne({defaultOptions:{queries:{staleTime:60*1e3}}}),qe=({children:e})=>a.jsx(pe,{client:De,children:a.jsx(Ne,{children:a.jsxs(ge,{children:[a.jsx(ke,{}),a.jsxs(Ee,{children:[e,a.jsx(Ie,{})]})]})})}),He=[],Ue=[],Qe=[],Fe=[],Ve=A(()=>T(()=>import("./admin-AVlB7pUa.js"),__vite__mapDeps([0,1,2,3,4]))),$e=A(()=>T(()=>import("./login-04m0Dzwy.js"),__vite__mapDeps([5,1,2,3,6,7,8]))),We=A(()=>T(()=>import("./_index-D5PW96UU.js"),__vite__mapDeps([9,1,2,3,10]))),Ge=A(()=>T(()=>import("./register-KTfZH-o8.js"),__vite__mapDeps([11,1,2,3,6,7,12])));window.requestIdleCallback||(window.requestIdleCallback=e=>{setTimeout(e,1)});const B=new Map([["./pages/admin.tsx","/admin"],["./pages/login.tsx","/login"],["./pages/_index.tsx","/"],["./pages/register.tsx","/register"]]),M=new Map([["./pages/admin.tsx",Ve],["./pages/login.tsx",$e],["./pages/_index.tsx",We],["./pages/register.tsx",Ge]]);function A(e){let t=null;const o=C.lazy(e);function s(r){return t?a.jsx(t,{...r}):a.jsx(o,{...r})}return s.preload=()=>e().then(r=>{t=r.default}).catch(()=>{}),s}const Ye=Array.from(B,([e,t])=>({path:t,filename:e}));function I(e){const t=oe(Ye,e),o=t?.[t.length-1]?.route?.filename,s=o!==void 0?M.get(o):void 0;return s?.preload?s.preload():Promise.resolve()}function ze(){for(const e of M.values())e.preload?.()}const Ke=15,Je=50,L=new Set;let U=0;function Xe(){const e=navigator.connection;if(!e)return!0;
2if(e.saveData)return!1;const t=e.effectiveType;return!(typeof t=="string"&&t.includes("2g"))}function Q(e){const t=e.getAttribute("href");if(!t)return null;let o;try{o=new URL(t,window.location.href)}catch{return null}return o.origin!==window.location.origin?null:o.pathname}function Ze(){return w.useEffect(()=>{const e=t=>{const o=t.target,s=o&&o.closest?o.closest("a[href]"):null;if(!s)return;const r=Q(s);r&&!L.has(r)&&(L.add(r),I(r))};return document.addEventListener("mouseover",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0}),()=>{document.removeEventListener("mouseover",e),document.removeEventListener("touchstart",e)}},[]),w.useEffect(()=>{if(!Xe())return;if(B.size<=Ke){window.requestIdleCallback(()=>ze());return}const e=new IntersectionObserver(i=>{for(const d of i){if(!d.isIntersecting||(e.unobserve(d.target),U>=Je))continue;const u=Q(d.target);!u||L.has(u)||(L.add(u),U++,window.requestIdleCallback(()=>void I(u)))}}),t=new WeakSet,o=()=>{document.querySelectorAll("a[href]").forEach(i=>{t.has(i)||(t.add(i),e.observe(i))})};o();let s=null;const r=new MutationObserver(()=>{s===null&&(s=window.setTimeout(()=>{s=null,o()},500))});return r.observe(document.body,{childList:!0,subtree:!0}),()=>{e.disconnect(),r.disconnect(),s!==null&&clearTimeout(s)}},[]),null}function et(e){const t=M.get(e);return a.jsx(w.Suspense,{fallback:null,children:a.jsx(t,{})})}function Y({trie:e,fileNameToRoute:t,makePageRoute:o}){return[...e.topLevel.map(s=>a.jsx(S,{path:t.get(s),element:o(s)},t.get(s))),...Array.from(e.trie.entries()).map(([s,r],i)=>a.jsx(S,{element:a.jsx(s,{children:a.jsx(ae,{})}),children:Y({trie:r,fileNameToRoute:t,makePageRoute:o})},i))]}function tt(e){const t={topLevel:[],trie:new Map};return Object.entries(e).forEach(([o,s])=>{let r=t;for(const i of s)r.trie.has(i)||r.trie.set(i,{topLevel:[],trie:new Map}),r=r.trie.get(i);r.topLevel.push(o)}),t}function nt(){return a.jsxs("div",{children:[a.jsx("h1",{children:"Not Found"}),a.jsx("p",{children:"The page you are looking for does not exist."}),a.jsxs("p",{children:["Go back to the ",a.jsx("a",{href:"/",style:{color:"blue"},children:"home page"}),"."]})]})}function ot(){const{pathname:e,search:t,hash:o}=V(),s=ie();return w.useEffect(()=>{s!=="POP"&&(o||window.scrollTo({top:0,left:0,behavior:"instant"}))},[e,t,o,s]),null}function rt(){return a.jsxs(re,{future:{v7_startTransition:!1,v7_relativeSplatPath:!1},children:[a.jsx(ot,{}),a.jsx(Ze,{}),a.jsx(qe,{children:a.jsx(w.Suspense,{fallback:null,children:a.jsxs(se,{children:[Y({trie:tt({"./pages/admin.tsx":He,"./pages/login.tsx":Ue,"./pages/_index.tsx":Qe,"./pages/register.tsx":Fe}),fileNameToRoute:B,makePageRoute:et}),a.jsx(S,{path:"*",element:a.jsx(nt,{})})]})})})]})}if(window.location.protocol==="capacitor:"||window.location.hostname==="localhost"){let e=function(n){return typeof n=="string"&&n.startsWith("/_cdn/")?"https://rijadorada.floot.app"+n:n},t=function(n){return typeof n!="string"||!n.includes("/_cdn/")?n:n.split(",").map(function(l){const c=l.trim();if(!c)return l;const m=c.split(/\s+/);return m[0]=e(m[0]),m.join(" ")}).join(", ")},o=function(n){if(!n||n.nodeType!==1)return;for(const c of["src","href","poster"]){const m=n.getAttribute&&n.getAttribute(c);m&&m.startsWith("/_cdn/")&&n.setAttribute(c,e(m))}const l=n.getAttribute&&n.getAttribute("srcset");if(l&&l.includes("/_cdn/")){const c=t(l);c!==l&&n.setAttribute("srcset",c)}},s=function(n){!n||!n.querySelectorAll||(o(n),n.querySelectorAll(i).forEach(o))};const r=window.fetch;window.fetch=async function(n,l){if(typeof n=="string"&&n.startsWith("/_cdn/"))return r("https://rijadorada.floot.app"+n,l);if(typeof n=="string"&&n.includes("/_api/")){let c;if(n.startsWith("/"))c="https://floot-native-api-base-path-3b91d0c6a4f24e8f9c17.invalid"+n;else try{const f=new URL(n);f.hostname==="localhost"&&(f.protocol==="http:"||f.protocol==="https:")?c="https://floot-native-api-base-path-3b91d0c6a4f24e8f9c17.invalid"+f.pathname+f.search+f.hash:c=n}catch{c=n}const{CapacitorHttp:m}=await T(async()=>{const{CapacitorHttp:f}=await import("./index-CWrjYjKi.js");return{CapacitorHttp:f}},__vite__mapDeps([13,3])),h=l??{},b=(h.method||"GET").toUpperCase(),y={};
2h.headers&&new Headers(h.headers).forEach(function(f,P){y[P]=f});let E;if(b!=="GET"&&b!=="HEAD"&&h.body!=null){const f=h.body;if(typeof f=="string")E=f;else if(f instanceof URLSearchParams)E=f.toString(),y["content-type"]=y["content-type"]??"application/x-www-form-urlencoded;charset=UTF-8";else if(f instanceof FormData||f instanceof Blob)E=f;else if(f instanceof ArrayBuffer)E=f;else if(ArrayBuffer.isView(f))E=f.buffer;else return r(n,l)}const _=await m.request({url:c,method:b,headers:y,data:E,responseType:"text"}),N=new Headers;if(_.headers&&typeof _.headers=="object")for(const[f,P]of Object.entries(_.headers))P!=null&&N.set(f,Array.isArray(P)?P.join(","):String(P));const z=_.data==null?"":typeof _.data=="string"?_.data:JSON.stringify(_.data);return new Response(z,{status:_.status,headers:N})}return r(n,l)};const i='[src^="/_cdn/"], [href^="/_cdn/"], [poster^="/_cdn/"], [srcset]';new MutationObserver(function(n){for(const l of n)l.type==="attributes"?o(l.target):l.addedNodes.forEach(function(c){s(c)})}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","href","poster","srcset"]}),s(document);const u=window.HTMLImageElement&&window.HTMLImageElement.prototype;if(u)for(const n of["src","srcset"]){const l=Object.getOwnPropertyDescriptor(u,n);l&&l.set&&l.configurable&&Object.defineProperty(u,n,{...l,set:function(c){l.set.call(this,n==="srcset"?t(c):e(c))}})}async function g(){const{App:n}=await T(async()=>{const{App:h}=await import("./index-D-YbPtF_.js");return{App:h}},__vite__mapDeps([14,13,3,1])),c=(await n.getInfo()).id.toLowerCase()+":";function m(h){const b="=".repeat((4-h.length%4)%4),y=(h+b).replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(escape(atob(y)))}n.addListener("appUrlOpen",({url:h})=>{const b=new URL(h);if(b.protocol!==c||b.hostname!=="bridge")return;const y=b.searchParams.get("payload");if(!y)return;const E=JSON.parse(m(y));window.dispatchEvent(new MessageEvent("message",{data:E,origin:window.location.origin})),T(async()=>{const{Browser:_}=await import("./index-Do7Cmht_.js");return{Browser:_}},__vite__mapDeps([15,13,3,1])).then(({Browser:_})=>_.close()).catch(()=>{})})}const p=g().catch(()=>{});window.open=async function(n,l,c){const{Browser:m}=await T(async()=>{const{Browser:y}=await import("./index-Do7Cmht_.js");return{Browser:y}},__vite__mapDeps([15,13,3,1]));await p,typeof n=="string"&&n.startsWith("/_api/")&&(n="https://floot-native-api-base-path-3b91d0c6a4f24e8f9c17.invalid"+n),m.open({url:n});let h=!1;return m.addListener("browserFinished",()=>{h=!0}),{get closed(){return h},async close(){h||(h=!0,await m.close())}}}}window.requestIdleCallback||(window.requestIdleCallback=e=>{setTimeout(e,1)});window.cancelIdleCallback||(window.cancelIdleCallback=e=>{clearTimeout(e)});(function(){const t=window.__FLOOT_CSS_ORDER__;if(!t||t.length===0)return;const o=new Map(t.map((i,d)=>[i,d])),s=i=>{const d=i.getAttribute("href");if(d)try{return o.get(new URL(d,window.location.href).pathname)}catch{return}},r=i=>{const d=s(i);if(d===void 0)return;let u=null;for(const g of document.head.querySelectorAll('link[rel="stylesheet"]')){if(g===i)continue;const p=s(g);if(p!==void 0&&p>d){u=g;break}}u&&i.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_PRECEDING&&u.parentNode.insertBefore(i,u)};new MutationObserver(i=>{for(const d of i)for(const u of d.addedNodes)u instanceof HTMLLinkElement&&u.rel==="stylesheet"&&r(u)}).observe(document.head,{childList:!0})})();window.addEventListener("vite:preloadError",e=>{const t="__floot_chunk_reload_at",o=Number(sessionStorage.getItem(t)||0);Date.now()-o<3e4||(sessionStorage.setItem(t,String(Date.now())),e.preventDefault(),window.location.reload())});const st=document.getElementById("root");I(window.location.pathname).then(()=>{ce.createRoot(st).render(a.jsx(ue,{children:a.jsx(rt,{})}))});export{T as _,at as u};

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.