PageSourceSearch

https://isric.org/_nuxt/D5y5uyco.js

js isric.org collected 2026-09-24 08:47:44 UTC 5,263 bytes, 1 lines download raw bytes

1import Y from"./BvG8Yk51.js";import ee from"./DYOiNpGn.js";import{u as te,r as b,ab as ae,w as D,h as E,c as m,o as l,q as s,g as o,E as f,a8 as se,a9 as le,f as x,d as y,e,B as ne,F as B,G as U,A as k,ac as $,ad as j,a2 as oe}from"./FTaPbxLM.js";import re from"./DrazZ_kY.js";import ie from"./B9hwvYFO.js";import{u as ce}from"./LGU0haeY.js";import"./CUQHcvjt.js";import"./D_WVsykS.js";import"./BzVpgML3.js";import"./BNt-PjgV.js";const ue={class:"z-100 fixed left-0 top-0 h-[100vh] w-[100vw] bg-base-100"},me={class:"nav-mobile left-0 top-0 z-20 w-full justify-between gap-2 overflow-hidden rounded-lg bg-base-100"},fe={class:"flex h-20 items-center justify-between border-b border-base-200"},de={class:"flex items-center gap-2"},pe={class:"","aria-label":"mobile navigation"},ge={class:"h-full w-full"},_e={key:0},he={key:0,class:"w-full border-b border-base-200 last:border-b-0"},ve={class:"flex h-14 items-center justify-between pr-2"},be={class:"link-icon ml-auto flex h-full items-center justify-center"},xe={class:"link-icon ml-auto flex h-full items-center justify-center"},qe={__name:"NavigationMainMobile",emits:["toggleMobile"],async setup(ye,{emit:H}){var M,F,q;let r,p;const{locale:z}=te(),g=b({items:[]}),_=b({}),{getItemUrl:h,showOnMobile:O}=ce(),v=b(!1),w=ae("searchBarRef"),N=()=>{v.value=!v.value,v.value?oe(()=>{w.value.focus()}):w.value.blur()};try{const{data:t}=([r,p]=D(()=>E("/api/umbraco/navigation",{query:{slug:"main-navigation",take:"50"},headers:{"Accept-Language":z}},"$VHWedojL20")),r=await r,p(),r);g.value=t.value||{items:[]}}catch(t){console.error("Failed to fetch main navigation for mobile:",t),g.value={items:[]}}try{const{data:t}=([r,p]=D(()=>E("/api/umbraco/fetch",{query:{slug:"/settings/"},headers:{"Accept-Language":z}},"$vbS2jZTFlw")),r=await r,p(),r);_.value=((q=(F=(M=t==null?void 0:t.value)==null?void 0:M.items)==null?void 0:F[0])==null?void 0:q.properties)||{}}catch(t){console.error("Failed to fetch global settings for mobile navigation:",t),_.value={}}const n=b(null),W=H,Z=t=>{if(n.value===t){n.value=null;return}n.value=t},C=()=>{W("toggleMobile")},L=(t,c)=>{C(),J()},J=()=>{document.body.classList.remove("is-locked")};return(t,c)=>{const K=Y,P=ee,d=ne,I=re,S=ie,Q=le,X=se;return l(),m("div",ue,[s("div",me,[o(X,null,{default:f(()=>[o(Q,null,{default:f(()=>{var V,A,R,T;return[s("div",fe,[(R=(A=(V=e(_))==null?void 0:V.logo)==null?void 0:A[0])!=null&&R.url?(l(),x(K,{key:0,logo:e(_).logo[0].url},null,8,["logo"])):y("",!0),s("div",de,[e(v)?(l(),x(P,{key:0,ref_key:"searchBarRef",ref:w,class:"h-13",onClose:N,onSearch:c[0]||(c[0]=a=>C())},null,512)):y("",!0),o(I,{size:"btn-sm",class:"group aspect-square h-12 w-12 rounded-full bg-base-200 py-2 text-lg text-base-500 no-underline transition-colors duration-200 ease-linear hover:bg-primary-200",onClick:N},{default:f(()=>[o(d,{name:"lucide:search",class:"p-3 text-xl",size:"1.5rem"})]),_:1}),s("button",{"data-collapse-toggle":"navbar-default",type:"button",class:"group/close focus:ring-gray-200 flex items-center justify-center gap-2 rounded p-2 text-sm text-base-500 hover:text-primary-200 focus:outline-none focus:ring-2","aria-controls":"navbar-default","aria-expanded":"false",onClick:c[1]||(c[1]=a=>C())},[c[2]||(c[2]=s("span",{class:"sr-only"},"Close main menu",-1)),o(d,{name:"lucide:x",class:"text-base-500 group-hover/close:text-primary-200",size:"2rem"})])])]),s("nav",pe,[s("div",ge,[(T=e(g).items)!=null&&T.length?(l(),m("div",_e,[(l(!0),m(B,null,U(e(g).items,(a,i)=>{var G;return l(),m(B,{key:a.id},[e(O)(a)?(l(),m("div",he,[s("div",ve,[(G=a==null?void 0:a.items)!=null&&G.length?(l(),x(I,{key:0,variant:"link",class:k(["group/item flex h-full w-full items-center justify-between p-0 text-lg hover:text-primary-200",{"font-medium":e(n)===i}]),onClick:u=>Z(i)},{default:f(()=>[$(j(a.name)+" ",1),s("span",{class:k(["link-icon ml-auto flex aspect-square items-center justify-center",{"bg-primary-200":e(n)===i,"rounded-full":e(n)===i}])},[o(d,{name:"lucide:chevron-down",class:k(["icon text-1xl text-base-500 transition-transform duration-100 ease-linear",{"rotate-180":e(n)===i,"group-hover/item:text-primary-200":e(n)!==i}]),size:"text-1xl"},null,8,["class"])],2)]),_:2},1032,["class","onClick"])):(l(),x(S,{key:1,variant:"link",link:e(h)(a),class:"group/item flex h-full w-full items-center p-0 text-lg hover:text-primary-200","show-label":!1,onClick:u=>L(a,e(h)(a))},{default:f(()=>[$(j(a.name)+" ",1),s("span",be,[o(d,{name:"lucide:arrow-right",class:"icon text-1xl text-base-500 group-hover/item:text-primary-200",size:"text-1xl"})])]),_:2},1032,["link","onClick"]))]),s("ul",{class:k(["pl-4 transition-all duration-300 ease-in-out",{"max-h-0 overflow-hidden":e(n)!==i,"max-h-screen":e(n)===i}])},[(l(!0),m(B,null,U(a.items,u=>(l(),m("li",{key:u.id,class:"h-14 pr-2 last:mb-4"},[o(S,{variant:"link",link:e(h)(u),class:"group/item flex h-full w-full items-center p-0 text-lg hover:text-primary-200","show-label":!1,onClick:ke=>L(u,e(h)(u))},{default:f(()=>[$(j(u.name)+" ",1),s("span",xe,[o(d,{name:"lucide:arrow-right",class:"icon text-1xl text-base-500 group-hover/item:text-primary-200",size:"text-1xl"})])]),_:2},1032,["link","onClick"])]))),128))],2)])):y("",!0)],64)}),128))])):y("",!0)])])]}),_:1})]),_:1})])])}}};export{qe 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.