PageSourceSearch

https://subjecttoclimate.org/js/tenant/pages/teacher-guides-components-GradesFilterer-vue.90771fd6.js

js subjecttoclimate.org collected 2026-09-24 09:10:38 UTC 4,194 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7436],{72838:(e,t,n)=>{n.d(t,{O:()=>l,T:()=>r});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">";return e.split(t).slice(-1)[0]},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">";return e.split(t).length}},52203:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var r=n(41916),l={class:(0,r.normalizeClass)(["rounded-lg bg-primary-100"])},a={class:""},o={xmlns:"http://www.w3.org/2000/svg",height:"24",fill:"currentColor",viewBox:"0 96 960 960",width:"24"},i={key:0,class:"",d:"m296 711-56-56 240-240 240 240-56 56-184-184-184 184Z"},s={key:1,class:"",d:"M480 711 240 471l56-56 184 184 184-184 56 56-240 240Z"},c={class:"p-2"},u={class:"flex space-x-2"},d=["id","value","checked","onInput"],m={class:"text-xs"};var p=n(76306),f=n(72838),b=n(87879);function g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const v={components:{AisRefinementList:p.QJ},data:function(){return{expanded:!1}},methods:{sortGrades:function(e){var t=["PK","K","1","2","3","4","5","6","7","8","9","10","11","12","AP"];return g(e).sort((function(e,n){var r=t.indexOf(e.label),l=t.indexOf(n.label);return-1!==r&&-1!==l?r-l:-1!==r?-1:-1!==l?1:e.label.localeCompare(n.label)}))}},mounted:function(){},computed:{attribute:function(){return"grades"}},props:{},setup:function(){var e=(0,b.qt)().props.tenantSlug;return{getLeafItem:f.T,nestCount:f.O,tenantSlug:e}}};const y=(0,n(83744).Z)(v,[["render",function(e,t,n,p,f,b){var g=(0,r.resolveComponent)("AisRefinementList");return(0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createElementVNode)("div",{onClick:t[0]||(t[0]=function(e){return f.expanded=!f.expanded}),class:(0,r.normalizeClass)([,"flex items-center justify-between  cursor-pointer select-none duration-150 rounded-lg border py-2.5 px-4 bg-white"])},[t[1]||(t[1]=(0,r.createElementVNode)("h3",{class:"text-xl font-light"},"Grades",-1)),(0,r.createElementVNode)("button",a,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",o,[f.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("path",i)):((0,r.openBlock)(),(0,r.createElementBlock)("path",s))]))])]),(0,r.withDirectives)((0,r.createElementVNode)("div",c,[(0,r.createVNode)(g,{attribute:b.attribute,limit:30},{default:(0,r.withCtx)((function(e){var t=e.items,n=e.refine;return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(b.sortGrades(t),(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.label,class:(0,r.normalizeClass)(["flex mr-2",1==p.nestCount(e.label)?"mt-2 mb-1":"",2==p.nestCount(e.label)?"mt-2 mb-1":"",3==p.nestCount(e.label)?"mt-2 mb-1":""]),style:(0,r.normalizeStyle)({marginLeft:"".concat(p.nestCount(e.label),"rem")})},[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("input",{type:"checkbox",class:"rounded bg-transparent mt-[2px] checked:text-primary-500 focus:outline-primary-500",id:e.label,value:e.label,checked:e.isRefined,onInput:function(e){return n(e.target.value)}},null,40,d),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["text-base",p.nestCount(e.label)>1?"text-sm":"","leading-5"])},[(0,r.createTextVNode)((0,r.toDisplayString)(p.getLeafItem(e.label))+" ",1),(0,r.createElementVNode)("span",m,"("+(0,r.toDisplayString)(e.count)+")",1)],2)])],6)})),128))]})),_:1},8,["attribute"])],512),[[r.vShow,f.expanded]])])}]])}}]);
2//# sourceMappingURL=teacher-guides-components-GradesFilterer-vue.90771fd6.js.map

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.