import{_ as L,o as y,c as v,a as o,b as e,r as u,n as b,g as k,u as S,am as p,aC as h,j as x,w as $,a4 as B,H as P,bX as R}from"./D-NqFN1U.js";import{_ as C}from"./BL4Um8bw.js";import{_ as E}from"./DB9mIyZh.js";import{_ as F}from"./CPAj0VfR.js";import{P as H,R as T,a as M}from"./BBF1GmD0.js";import{P as N}from"./BLdnKFvz.js";import"./DJ23bcL4.js";import"./DFdqLK0E.js";const V={},A={class:"flex-container"},D={class:"flex-content"},G={class:"loader-container"};function I(c,s){const n=F;return y(),v("div",A,[o("div",D,[o("div",G,[e(n)])])])}const X=L(V,[["render",I],["__scopeId","data-v-8ec40c40"]]);function j(c,s,n,_=40){const a=u(!1),r=u(0);function l(){return new Promise((t,i)=>{const d=()=>{if(r.value++,r.value>_){i(new Error("Max retry attempts reached, styles not loaded"));return}try{c.every(g=>{const m=[...document.styleSheets].find(f=>f.href&&f.href.includes(g));return m&&m.cssRules})?setTimeout(()=>{t(!0)},s):setTimeout(d,n)}catch{i(new Error("Error checking styles"))}};d()})}return b(async()=>{try{await l()&&(a.value=!0)}catch(t){console.error("Failed to load styles: ",t)}}),{stylesLoaded:a}}const q={class:"flex flex-col min-h-screen h-auto blog text-green-500"},z={class:"flex-1 md:relative flex h-0 overflow-auto flex-col font-bookmania"},J={class:"h-0 flex-1"},K={id:"main-content",tabindex:"-1"},oe=k({__name:"blog-page-default",setup(c){S({link:[{rel:"stylesheet",href:"/assets/compile/tailwind-legacy.css"}]});const{stylesLoaded:s}=j(["tailwind-legacy.css"],200,50);return(n,_)=>{const a=R,r=C,l=E,t=X;return y(),v(P,null,[p(o("div",q,[e(a,null,{default:$(()=>[e(H),e(N)]),_:1}),e(T),e(M),e(r),o("div",z,[o("div",J,[o("main",K,[B(n.$slots,"default")]),e(l)])])],512),[[h,x(s)]]),p(e(t,null,null,512),[[h,!x(s)]])],64)}}});export{oe as default};
//# sourceMappingURL=DD1LWuoE.js.map