1import{_ as k}from"./Wk_rf_yP.js";import{_ as O}from"./CiuJiE1D.js";import{M as e}from"./OEZfA-JK.js";import{d as v,s as N,k as w,c as l,b as o,t as y,e as E,w as x,g as m,F as h,p as A,G as b,m as g,o as s,h as G,y as Y,i as C}from"./DG1KbNHp.js";const M={class:"relative"},L={style:{"stroke-linecap":"round","stroke-linejoin":"round"},class:"h-6 w-6 stroke-[3] stroke-white hover:stroke-myblee-system-beige active:stroke-myblee-system-beige",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.75 22.84"},S=["id"],B={key:0,class:"font-bold text-center w-full px-16 text-2xl sm:text-4xl bg-myblee-system-orange text-white py-8 md:py-12"},P=v({__name:"GroupsWithNavForGrade",props:{schoolGrade:{type:String,required:!0},parentRoute:{type:String,required:!0}},setup(T){const p=N(),u=T,R=g(null),c=g(!1),d=[{text:"layouts.main.header1_3_17",category:e.CATEGORY_ADD},{text:"layouts.main.header1_3_18",category:e.CATEGORY_SUBTRACT},{text:"layouts.main.header1_3_2",category:e.CATEGORY_COUNTING_AND_PLACE_VALUE},{text:"layouts.main.header1_3_3",category:e.CATEGORY_DECIMAL_NUMBERS},{text:"layouts.main.header1_3_4",category:e.CATEGORY_FRACTIONS},{text:"layouts.main.header1_3_5",category:e.CATEGORY_GEOMETRY},{text:"layouts.main.header1_3_6",category:e.CATEGORY_LEARNING_TO_COUNT},{text:"layouts.main.header1_3_7",category:e.CATEGORY_LOGIC},{text:"layouts.main.header1_3_8",category:e.CATEGORY_MATH_WORD_PROBLEMS},{text:"layouts.main.header1_3_9",category:e.CATEGORY_MEASURE_LENGTHS},{text:"layouts.main.header1_3_10",category:e.CATEGORY_MENTAL_MATH},{text:"layouts.main.header1_3_19",category:e.CATEGORY_MULTIPLY},{text:"layouts.main.header1_3_20",category:e.CATEGORY_DIVIDE},{text:"layouts.main.header1_3_12",category:e.CATEGORY_NUMBERS},{text:"layouts.main.header1_3_13",category:e.CATEGORY_NUMBER_LINES_AND_GRAPHS},{text:"layouts.main.header1_3_14",category:e.CATEGORY_TABLES_AND_GRAPHS},{text:"layouts.main.header1_3_15",category:e.CATEGORY_TELLING_TIME},{text:"layouts.main.header1_3_16",category:e.CATEGORY_MEASURE_VOLUME_AND_MASS}],_=[];return d.forEach(r=>{_.push(g(!1))}),w(()=>{_.forEach((r,t)=>{const i=document.getElementById(`ws-category-${t}`);_[t].value=(i?.childElementCount??0)>0})}),(r,t)=>{const i=k,f=O;return s(),l("div",M,[o("button",{class:"sticky top-16 left-0 lg:hidden px-4 py-2 w-full bg-myblee-system-blue text-white z-20 flex justify-center items-center",onClick:t[0]||(t[0]=n=>c.value=!0)},y(r.$t("pages.home.jump_to_category")),1),o("nav",{ref_key:"navWorksheets",ref:R,class:b(["lg:grid sticky top-16 left-0 w-full grid-cols-1 gap-2 lg:grid-cols-4 xl:grid-cols-5 bg-myblee-system-orange border-b-2 border-white text-white text-sm p-4 z-20",m(c)?"grid":"hidden"])},[o("button",{type:"button",class:"lg:hidden relative justify-self-end my-2 h-6 w-6",onClick:t[1]||(t[1]=n=>c.value=!1)},[t[3]||(t[3]=o("span",{class:"absolute -inset-2.5"},null,-1)),(s(),l("svg",L,[...t[2]||(t[2]=[o("g",null,[o("g",null,[o("line",{x1:"21.25",y1:"1.5",x2:"1.5",y2:"21.34"}),o("line",{x1:"1.5",y1:"1.5",x2:"21.25",y2:"21.34"})])],-1)])]))]),E(i,{class:"hover:cursor-pointer hover:underline font-bold",to:m(p)({hash:"#after-worksheets-section"})},{default:x(()=>[G(y(r.$t(`components.main.worsheetsGroupsWithNavForGrade.skip_link_${u.schoolGrade}`)),1)]),_:1},8,["to"]),(s(),l(h,null,A(d,(n,a)=>(s(),l(h,{key:a},[_[a].value?(s(),Y(i,{key:0,class:"hover:cursor-pointer hover:underline",to:m(p)({hash:`#category-${a}`})},{default:x(()=>[G(y(r.$t(n.text)),1)]),_:2},1032,["to"])):C("",!0)],64))),64))],2),(s(),l(h,null,A(d,(n,a)=>o("div",{key:a,id:`category-${a}`},[_[a].value?(s(),l("h2",B,y(r.$t(n.text)),1)):C("",!0),E(f,{id:`ws-category-${a}`,"school-grade":u.schoolGrade,category:n.category,"parent-route":u.parentRoute},null,8,["id","school-grade","category","parent-route"])],8,S)),64))])}}});export{P as _};
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.