PageSourceSearch

https://wicforfamilies.org/_nuxt/1902cPageNavigation.pPuA-H2138502.js

js wicforfamilies.org collected 2026-10-04 05:56:38 UTC 4,421 bytes, 1 lines download raw bytes

1import{d as P,r as g,c as B,o as V,k as a,D as i,l as p,p as z,Y as I,W as N,y as c,s as T,u as r,e as y,v as h,M as D,N as O,K as X,G as j,a3 as q,w as G,q as d,E as K,a8 as E,n as R,F as U}from"./1902centry.B1pY1sl138502.js";import{T as W}from"./1902cTzOverlay.8Vn8FOe138502.js";import{_ as b}from"./1902cTwIcon.vue.D6ODpKY138502.js";import{x as _}from"./1902c_...slug_.CnOMZi7138502.js";import{_ as Y}from"./1902cTwLanguageSwitcher.vue.vuqaXVk138502.js";import"./1902c_commonjsHelpers.Cpj98o6138502.js";const H={class:"w-full flex flex-row flex-wrap"},J={key:0,class:"pl-5 w-full text-sm"},Q=P({__name:"PageNavigationItem",props:{accentIsLight:{type:Boolean},item:{},lastItem:{type:Boolean}},emits:"toggle",setup(w,{emit:v}){const u=w,k=v,n=g(!1),l=B(()=>({value:n.value?"chevron-up":"chevron-down"}));function s(){k("toggle")}return V(()=>{u.item.items&&u.item.items.length&&u.item.openByDefault&&(n.value=!0)}),(t,f)=>(a(),i("li",H,[(a(),p(T(t.item.to?"router-link":"a"),{to:t.item.to,href:t.item.href,target:t.item.target?t.item.target:void 0,class:c([{"hover:bg-slate-800/10":t.accentIsLight,"hover:bg-white/10":!t.accentIsLight},"grow px-2 py-3 rounded-md"])},{default:z(()=>[I(N(t.item.label),1)]),_:1},8,["to","href","target","class"])),t.item.items&&t.item.items.length?(a(),i("button",{key:0,class:"grow-0",onClick:f[0]||(f[0]=o=>n.value=!r(n))},[y(b,{icon:r(l),"icon-classes":"h-5 w-5"},null,8,["icon"])])):h("",!0),t.item.items&&t.item.items.length?(a(),i("ul",{key:1,class:c([{hidden:!r(n)},"w-full pt-3 pl-2"])},[(a(!0),i(D,null,O(t.item.items,(o,L)=>(a(),i("li",{key:o.id,class:c([{"pb-3":!r(_)(t.item.items,L)},"w-full"])},[(a(),p(T(o.to?"router-link":"a"),{class:c([{"hover:bg-slate-800/10":t.accentIsLight,"hover:bg-white/10":!t.accentIsLight},"w-full inline-flex items-center rounded-md"]),href:o.href,target:o.target?t.item.target:void 0,to:o.to,onClick:s},{default:z(()=>[y(b,{icon:{value:"chevron-right"},"icon-classes":"h-5 w-5 mr-1"}),I(" "+N(o.label),1)]),_:2},1032,["class","href","target","to"])),o.description?(a(),i("div",J,N(o.description),1)):h("",!0)],2))),128))],2)):h("",!0)]))}}),Z={class:"flex items-center justify-end py-2 pr-2"},x={id:"main-side-nav-list",class:"relative max-w-full overflow-y-auto pt-2 border-t border-white/10"},ee={class:"w-full relative py-5 px-3"},te=P({__name:"PageNavigation",props:{colorScheme:{},currentLanguage:{},hasLanguageSwitcher:{type:Boolean},items:{}},setup(w){const{$eventBus:v}=X(),u=j(),k=w,n=g(null),l=g(null),s=g(!1),t=g(!1),f=B(()=>({transform:s.value?"translateX(0)":"translateX(-100%)"})),o=B(()=>k.items.some(e=>e.href===u.path)),L=()=>{var m;if(n.value)return;const e=y(W,{isActive:s.value,onClick(){s.value=!1},zIndex:50});l.value=document.createElement("div"),l.value.id="page-navigation-overlay-container",document.body.appendChild(l.value),E(e,l.value),n.value=e,(m=document.documentElement)==null||m.classList.add("overflow-y-hidden")},$=()=>{R(()=>{var e;n.value&&l.value&&((e=document.documentElement)==null||e.classList.remove("overflow-y-hidden"),E(null,l.value),l.value.remove(),n.value=null,l.value=null)})};V(()=>{typeof v<"u"?t.value||(v.on("toggle-page-navigation",()=>{s.value=!0}),t.value=!0):console.debug("$eventBus is undefined")}),q(()=>{s.value=!1,$()});function S(){s.value=!1}function A(e,m){m&&(e.target&&(e.target.tagName==="svg"||e.target.tagName==="path")||S())}return G(()=>s.value,e=>{e?L():$()}),(e,m)=>(a(),i("aside",{class:c(["h-full left-0 top-0 z-60 fixed flex flex-col w-full pointer-events-auto duration-200 ease-in-out transition-[transform,visibility,width] max-w-64",{"tz-sidenav-active":s.value,"text-white":!(e.colorScheme&&e.colorScheme.accentIsLight),"text-slate-700":e.colorScheme&&e.colorScheme.accentIsLight}]),style:K({"background-color":e.colorScheme&&e.colorScheme.accent||"#fff",...r(f)})},[d("div",null,[d("div",Z,[e.hasLanguageSwitcher?(a(),p(Y,{key:0,"current-language":e.currentLanguage},null,8,["current-language"])):h("",!0),d("button",{type:"button",onClick:S},[y(b,{icon:{value:"close"},"icon-classes":"w-5 h-5"})])]),d("div",x,[d("ul",ee,[(a(!0),i(D,null,O(e.items,(C,F)=>(a(),p(Q,{key:C.id,class:c({active:r(o)}),"accent-is-light":e.colorScheme.accentIsLight,item:C,"last-item":r(_)(e.items,F),onClick:M=>A(M,C),onToggle:S},null,8,["class","accent-is-light","item","last-item","onClick"]))),128))])])])],6))}}),re=U(te,[["__scopeId","data-v-e6f37c4c"]]);export{re as default};

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.