import{g as m,cQ as g,r as l,o as r,c as o,a as s,am as w,an as k,j as u,I as y,s as S,q as d,H as f,aM as C,b7 as I,h as N,a4 as V,aj as j,b as z,w as B,d as T,t as $,x as q,e as M}from"./DgR3D_w1.js";const R=s("input",{"data-algolia-submit-input":"",type:"submit",id:"searchsubmit",class:"btn-yellow text-f14 rounded-b-none w-106",value:"Search"},null,-1),L=m({__name:"index",setup(h){const c=g(),e=l(""),a=l(!1),i=l(null),n=l(),t=()=>{a.value=!0,n.value.focus(),C(i,_=>{a.value=!1,e.value=""})},x=()=>{e.value=""},b=async()=>{if(e.value)c.push({name:"blog-search",query:{q:e.value}});else return};return(_,p)=>(r(),o(f,null,[s("a",{href:"#",onClick:t,class:"icon-legacy-search p-14 text-f19 flex items-center justify-center"}),s("form",{onSubmit:S(b,["prevent"]),"data-algolia-search-form":"",role:"search",method:"get",class:d([{active:u(a)},"search-form sf-a absolute inset-0 m-auto overflow-hidden w-0 transition-all duration-300 ease-linear z-2 bg-white flex items-center justify-center"])},[s("div",{ref_key:"searchInputWrapper",ref:i,class:"sm:max-w-372 w-full flex relative mx-13 sm:mx-0"},[s("i",{onClick:x,class:"icon-legacy-cross z-1 absolute bottom-13 left-10 cursor-pointer"}),w(s("input",{type:"text","data-algolia-search-input":"",ref_key:"searchInput",ref:n,"onUpdate:modelValue":p[0]||(p[0]=v=>y(e)?e.value=v:null),class:"flex-1 w-full bg-transparent border-0 border-b-2 border-green-500 text-green-500 font-bookmania text-f16 sm:text-f18 font-medium pt-7 pl-42 tracking-a08 min-w-0 placeholder-green-500",placeholder:"Search Blog"},null,512),[[k,u(e)]]),R],512)],34)],64))}}),D={class:"z-10 sticky top-0 bg-white shadow-s9 mb-30 sm:mb-42"},W={class:"container max-w-1180 px-0 sm:px-17 flex relative"},E={key:0,class:"overflow-x-auto noscrollbar md:ml-9 flex-1"},F={class:"table w-full whitespace-nowrap font-agenda font-bold text-f15 uppercase text-center tracking-a02 -mr-25"},O=m({__name:"CategoryNavbar",props:{categories:{}},setup(h){const c=I(),e=N(()=>c.params.slug);return(a,i)=>{const n=M;return r(),o("div",D,[s("div",W,[V(a.$slots,"search"),a.categories.length>0?(r(),o("div",E,[s("ul",F,[(r(!0),o(f,null,j(a.categories,t=>(r(),o("li",{key:t.id,class:d(["table-cell",{active:t.slug===u(e)}])},[z(n,{to:`/blog/category/${t==null?void 0:t.slug}/`,class:"block w-full px-10 sm:px-23 py-16 md:pt-23 md:pb-27 hover:text-green-100 hover-border cursor-pointer !outline-offset-[-3px]"},{default:B(()=>[T($(t.name),1)]),_:2},1032,["to"])],2))),128))])])):q("",!0)])])}}});export{O as _,L as a};