1import{d as g,a3 as m,X as _,b4 as v,e as c,g as e,a6 as f,a as h,a7 as w,F as x,f as k,o as a,aw as y,a4 as B,c as C,ab as N,ac as D,b as I,h as S}from"./R_xvm0dX.js";const T={class:"bg-black pt-20 shadow-md"},E={class:"container mx-auto"},J={class:"flex items-center border rounded-lg bg-white"},L={class:"hidden md:block w-9/12 px-4"},V={class:"text-2xl font-bold text-dark"},z={class:"w-full md:w-3/12 px-4 py-2 bg-amber-400 rounded-r-lg flex justify-end"},M={key:0,class:"origin-top-right absolute right-0 mt-2 w-100 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",role:"menu","aria-orientation":"vertical"},P={class:"py-1",role:"none"},F=["onClick"],O=g({__name:"JumptoSectionDropdown",props:{heading:{},sections:{}},setup(l){const r=l,o=m(!1),t=m(null),i=m(r.heading),d=()=>{o.value=!o.value},b=n=>{const s=document.getElementById(n.labelId);s&&s.scrollIntoView({behavior:"smooth"}),i.value=n.labelName,o.value=!1},p=n=>{t.value&&!t.value.contains(n.target)&&(o.value=!1)};return _(()=>{document.addEventListener("click",p)}),v(()=>{document.removeEventListener("click",p)}),(n,s)=>(a(),c("section",T,[e("div",E,[e("div",J,[e("div",L,[e("h2",V,f(i.value),1)]),e("div",z,[e("div",{ref_key:"dropdown",ref:t,class:"relative inline-block text-left"},[e("div",null,[e("button",{type:"button",class:"inline-flex items-center justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:d},[...s[0]||(s[0]=[w(" Jump To Section ",-1),e("svg",{class:"-mr-1 ml-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])])]),o.value?(a(),c("div",M,[e("div",P,[(a(!0),c(x,null,k(l.sections,u=>(a(),c("a",{key:u.labelId,onClick:y(j=>b(u),["prevent"]),href:"#",class:"text-gray-700 block px-4 py-2 text-sm hover:bg-gray-100",role:"menuitem"},f(u.labelName),9,F))),128))])])):h("",!0)],512)])])])]))}}),$=B(O,[["__scopeId","data-v-2b56ff81"]]),H=g({__name:"JumptoSectionDropdownBlok",props:{blok:{}},setup(l){const r=l,o=S(()=>({buttonText:r.blok.buttonText||"",sections:r.blok.sections?.map(t=>({labelName:t.labelName,labelId:t.labelId}))}));return(t,i)=>{const d=$;return a(),C(d,N(D(I(o))),null,16)}}});export{H 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.