PageSourceSearch

https://www.b-house.sk/assets/useWebSettings-DcY9c3RN.js

js b-house.sk collected 2026-10-09 04:08:44 UTC 1,935 bytes, 1 lines download raw bytes

1import{s as a}from"./client-Cbg4Iz8U.js";import{u}from"./useQuery-OTs_zyYN.js";import{p as c}from"./index-aiT6owHy.js";import{u as g}from"./useMutation-CAkuRI8R.js";const o="00000000-0000-0000-0000-000000000001";function f(){const n=c(),s=u({queryKey:["homepage_settings"],queryFn:async()=>{const{data:t,error:e}=await a.from("homepage_settings").select("*").eq("id",o).single();if(e)throw e;return t}}),i=g({mutationFn:async t=>{const{data:e,error:r}=await a.from("homepage_settings").update({...t,updated_at:new Date().toISOString()}).eq("id",o).select().single();if(r)throw r;return e},onSuccess:()=>n.invalidateQueries({queryKey:["homepage_settings"]})});return{settings:s.data,isLoading:s.isLoading,update:i}}function _(){const n=c(),s=u({queryKey:["site_settings"],queryFn:async()=>{const{data:t,error:e}=await a.from("site_settings").select("*").eq("id",o).single();if(e)throw e;return t}}),i=g({mutationFn:async t=>{const{data:e,error:r}=await a.from("site_settings").update({...t,updated_at:new Date().toISOString()}).eq("id",o).select().single();if(r)throw r;return e},onSuccess:()=>n.invalidateQueries({queryKey:["site_settings"]})});return{settings:s.data,isLoading:s.isLoading,update:i}}function l(){const n=u({queryKey:["public_site_settings"],queryFn:async()=>{const{data:s,error:i}=await a.from("public_site_settings").select("*").eq("id",o).single();if(i)throw i;return s}});return{settings:n.data,isLoading:n.isLoading}}function h(){const n=c(),s=u({queryKey:["opening_hours"],queryFn:async()=>{const{data:t,error:e}=await a.from("opening_hours").select("*").order("day",{ascending:!0});if(e)throw e;return t}}),i=g({mutationFn:async({id:t,open:e,close:r})=>{const{error:d}=await a.from("opening_hours").update({open:e,close:r}).eq("id",t);if(d)throw d},onSuccess:()=>n.invalidateQueries({queryKey:["opening_hours"]})});return{hours:s.data||[],isLoading:s.isLoading,updateHour:i}}export{l as a,f as b,_ as c,h 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.