1import{P as f,a as u}from"./BMfPvCov.js";import{f as a}from"./CNSH-o33.js";import{b as c}from"./Jps3v5hi.js";function p(e=null){return e?e.reduce((r,t)=>(r[t.path[0]]=t.message,r),{}):{}}function d(e){return e+" - Balatonfüredi Yacht Club"}function h(e,r){const t={...e};return r.forEach(o=>{delete t[o]}),t}function b(){return typeof window>"u"?!0:window.location.hostname.includes(u)}function E(){typeof window>"u"||window.scrollTo({top:0,behavior:"smooth"})}function g(e,r){typeof window>"u"||e&&e.scrollIntoView({behavior:"smooth",...r||{}})}function v(e){if(typeof window>"u"||!e)return;const{top:r,height:t}=e.getBoundingClientRect();window.scrollTo({top:window.scrollY+r+t,behavior:"smooth"})}const y=(e,r=!1)=>{if(typeof window>"u")return e;let t=e;const o=window&&"__SVELTEKIT_DEV__"in window&&window.__SVELTEKIT_DEV__===!0,i=e==null?void 0:e.startsWith("/");if(o&&i){const n=f.replace(/\/$/,""),s=e.replace(/^\//,"");t=`${n}/${s}`.replace("/api/api","/api"),r&&(t=`${n}/${s}`.replace("/api",""))}return t};function _(e,r,t={}){const o=[...e];return o.forEach(i=>{Object.keys(r).forEach(n=>{i[r[n]]=i[n]}),t&&Object.keys(t).forEach(n=>{t[n].if&&!t[n].if(i)||(i[n]=t[n].base.replace("KEY",i[t[n].key]))})}),o}function T(e,r="HUF"){return typeof e!="number"&&(e=parseInt(e)),r==="EURO"?new Intl.NumberFormat("hu-HU",{maximumFractionDigits:0}).format(e)+" â¬":Intl.NumberFormat("hu-HU",{style:"currency",currency:"HUF",maximumFractionDigits:0}).format(e)}function U(e="HUF"){return e==="EURO"?"â¬":"Ft"}async function I(e,r,t="Biztosan törlöd?"){if(!confirm(t))return!1;const o=await a(`admin/${e}/remove`,{id:r});return(o==null?void 0:o.message)==="ok"?(c("Sikeres törlés"),Promise.resolve(!0)):Promise.resolve(!1)}async function P(e,r,t="Biztos vagy benne?"){if(!confirm(t))return!1;const o=await a(`admin/${e}/toggle`,{id:r});return(o==null?void 0:o.message)==="ok"?(c("Sikeres művelet"),Promise.resolve(!0)):Promise.resolve(!1)}const D=(e=100)=>{setTimeout(function(){const r=document.querySelectorAll(".error:not(.toast)")[0];r&&r.scrollIntoView({behavior:"smooth",block:"center"})},e)};export{g as a,d as b,_ as c,D as d,U as e,v as f,y as g,T as h,b as i,h as o,p,I as r,E as s,P as t};
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.