import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{Nn as n,Yr as r}from"./vendor-primevue-D1-E3-0M.js";function configValueOrDefault(e,t,n){return e[t]||n}async function loadRemoteConfig(){try{let e=await fetch(`/api/features`,{cache:`no-store`});if(e.ok){let t=await e.json();window.__CONFIG__=t,i.value=t}else console.warn(`Failed to load remote config:`,e.statusText),window.__CONFIG__={},i.value={}}catch(e){console.error(`Failed to fetch remote config:`,e),window.__CONFIG__={},i.value={}}}var i,a=t((()=>{n(),i=r({})}));export{i,a as n,loadRemoteConfig as r,configValueOrDefault as t};
//# sourceMappingURL=remoteConfig-BiMFcSmW.js.map