PageSourceSearch

https://familiesforlife.sg/assets/CourseSection.ed859f95.js

js familiesforlife.sg collected 2026-10-03 20:18:07 UTC 2,690 bytes, 1 lines download raw bytes

1import{a as e,O as s}from"./element-plus.80abf16b.js";import{c1 as a,bM as l,bK as n,c2 as o,c3 as t,cg as c,c8 as d,bP as i,cb as r,ca as u,cf as p,cd as f,cY as m,co as v}from"./commonmodules.b9c1dd40.js";import{_ as b,a as y}from"./index.d3bd9396.js";import"./lodash-es.480d1bd8.js";import"./axios.1263d4b1.js";import"./vue-router.5e13d197.js";const k={class:"camps-course-section"},x={class:"camps-flex-grow1 label-break"},C={key:0,class:"icon-ffl icon-ffl-lock"},g={key:1,class:"icon-ffl icon-ffl-check"},h=["onClick","onKeydown","id","data-node"],j={key:0,class:"icon-ffl icon-ffl-check"};var w=b(a({__name:"CourseSection",props:{termsData:null,navigations:null,callback:{type:Function}},setup(a){const b=a,w={label:"label",children:"children",class:e=>e.isCurrent?`level-${e.level} level-current`:`level-${e.level}`},_=l(y.isCssMobile()),D=n((()=>{var e;const s=null==(e=b.navigations)?void 0:e.find((e=>e.isCurrent));return s?[s.id]:[]})),N=(e,s)=>{var a;(null==e?void 0:e.level)&&(null==(a=s.childNodes)||a.forEach((e=>{e.expanded=!1,N(null,e)})))},S=n((()=>{var e;const s=null==(e=b.navigations)?void 0:e.find((e=>e.isCurrent));return _.value?[{label:null==s?void 0:s.label,level:0,children:b.navigations}]:b.navigations})),K=e=>{const s=y.ensureUrl(e.url);!e.isDisabled&&s&&b.callback(!1,!1,s)},E=e=>{var s,a;try{if("Enter"===e.key){const e=null==(s=document.activeElement)?void 0:s.querySelector(".element-accessibility");if(!e)return;const l=JSON.parse(null==(a=e.dataset)?void 0:a.node);if(!l)return;sessionStorage.setItem("focusAfterNav","true"),K(l)}}catch(l){}};return(a,l)=>{const n=e,b=s;return o(),t("nav",k,[c(b,{data:i(S),props:w,"node-key":"id","default-expanded-keys":i(D),"auto-expand-parent":!0,onNodeCollapse:N,onKeydown:E},{default:d((({node:e,data:s})=>[0===s.level?(o(),t("span",{key:0,class:r(["custom-tree-node-0",{current:s.isCurrent}])},[u("span",null,p(s.label),1),c(n,{class:r(["icon-ffl icon-ffl-arrow-down-light",{expanded:e.expanded}])},null,8,["class"])],2)):1===s.level?(o(),t("span",{key:1,class:r(["custom-tree-node-1",{expanded:e.expanded}])},[u("em",{class:r(["plus-minus",{expanded:e.expanded}])},null,2),u("span",x,p(s.label),1),s.isDisabled?(o(),t("em",C)):f("",!0),!s.isDisabled&&s.isComplete?(o(),t("em",g)):f("",!0)],2)):(o(),t("span",{key:2,onClick:e=>K(s),onKeydown:m(v((e=>K(s)),["prevent"]),["enter"]),id:s.id,class:r(["custom-tree-node-2 element-accessibility",{current:s.isCurrent,"custom-tree-disabled":s.isDisabled}]),"data-node":JSON.stringify(s)},[u("span",null,p(s.label),1),s.isComplete?(o(),t("em",j)):f("",!0)],42,h))])),_:1},8,["data","default-expanded-keys"])])}}}),[["__scopeId","data-v-94287990"]]);export{w 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.