1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6275],{91201:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return y}});var n=r(85893),a=r(24955),l=r.n(a)()("MBVPVYM8WT","9c1805c56ac0001ee4166889ab05f314"),s=r(71062),i=r(58685),c=r(47325),o=r(94129),d=r(10766),u=r(80377),x=r(74326),f=r(67294);function m(e){var t=e.header,r=e.children;return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("div",{className:"",children:(0,n.jsx)("span",{className:"text-gray-950 text-md font-semibold",children:t})}),(0,n.jsx)("div",{className:"flex flex-col gap-1 resources-main-filters",children:r})]})}var p=r(41664),h=r(83966),v=function(e){var t=e.hit,r=(null===t||void 0===t?void 0:t.image.image)?(0,h.u)(null===t||void 0===t?void 0:t.image.image).url():"";return(0,n.jsx)(p.default,{href:"/classroom-resources/".concat(null===t||void 0===t?void 0:t.slug.current),passHref:!0,children:(0,n.jsx)("a",{children:(0,n.jsxs)("div",{className:"cardWrapper flex h-full flex-col items-start rounded-[5px] border border-grey-20 text-black-50",children:[(0,n.jsx)("img",{src:r,alt:null===t||void 0===t?void 0:t.image.alt,width:235,height:240,className:"rounded-[5px] bg-grey-30"}),(0,n.jsxs)("div",{className:"flex h-full w-full flex-col p-5 bg-white",children:[(0,n.jsx)("p",{className:"font-medium",children:null===t||void 0===t?void 0:t.type.name}),(0,n.jsx)("h5",{className:"font-medium",children:null===t||void 0===t?void 0:t.title}),(0,n.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-[8px]",children:[(0,n.jsx)("p",{className:"rounded-md bg-yellow-50 px-[10px] py-[2px] !text-[14px] text-black-50",children:null===t||void 0===t?void 0:t.grades.name}),(0,n.jsx)("p",{className:"rounded-md bg-yellow-50 px-[10px] py-[2px] !text-[14px] text-black-50",children:null===t||void 0===t?void 0:t.subject.name})]})]})]})})})};function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return g(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 g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(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 y(){var e=(0,f.useState)(!1),t=e[0],r=e[1];return(0,f.useEffect)((function(){var e=setInterval((function(){var t=document.querySelector(".ais-ClearRefinements-button");t&&(t.innerHTML="All Resources",clearInterval(e))}),1e3);return function(){clearInterval(e)}}),[]),(0,f.useEffect)((function(){var e=document.getElementById("fixed"),t=function(e){e.preventDefault()};return e&&e.addEventListener("touchmove",t,!1),function(){e&&e.removeEventListener("touchmove",t,!1)}}),[]),(0,n.jsx)("div",{className:"-z-0 flex w-full flex-col items-center",children:(0,n.jsxs)(s.p,{searchClient:l,indexName:"resources",routing:!0,children:[(0,n.jsx)(i.T,{hitsPerPage:12,clickAnalytics:!0}),(0,n.jsxs)("div",{className:"flex w-full flex-col items-center bg-grey-30 pb-2 lg:pb-5",children:[(0,n.jsxs)("div",{className:"searchbox-wrap container box-border w-full md:w-2/3",children:[(0,n.jsx)(c.R,{placeholder:"Search",className:"searchbox"}),(0,n.jsxs)("div",{className:"mt-[6px] flex w-[87%] items-center justify-end gap-1",children:[(0,n.jsx)("h6",{className:"text-xs font-[500] text-gray-600",children:"Search By"}),(0,n.jsx)("img",{src:"https://cdn.sanity.io/images/5b7o9p3d/production/ae9cb92bbc94da8dbf762d5bbbe18017f99507d9-2196x500.svg",width:"60",height:"20",alt:"algolia-logo"})]})]}),(0,n.jsxs)("div",{className:"justify-flex-start type-filter-resources mr-8 mt-10 flex w-full items-center gap-6 overflow-x-scroll px-8 pb-3 md:justify-center md:overflow-hidden lg:pb-0 lg:pl-0",children:[(0,n.jsx)("div",{className:"p-0",children:(0,n.jsx)(o.E,{})}),(0,n.jsx)("div",{className:"p-0",children:(0,n.jsx)("div",{className:"w-3/3 group relative lg:w-max",children:(0,n.jsx)("div",{className:"text-md flex cursor-pointer gap-2 sm:text-sm",children:(0,n.jsx)(d.p,{attribute:"type.name"})})})})]})]}),(0,n.jsxs)("div",{className:"container !relative flex w-full justify-center gap-10 p-10 lg:justify-normal",children:[(0,n.jsx)("div",{className:"hidden w-1/4 md:flex",children:(0,n.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,n.jsx)("h5",{className:"text-lg font-bold text-gray-950",children:"Filters"}),(0,n.jsx)(m,{header:"By Grade",children:(0,n.jsx)(d.p,{attribute:"grades.name",className:""})}),(0,n.jsx)(m,{header:"By Subject",children:(0,n.jsx)(d.p,{attribute:"subject.name"})}),(0,n.jsx)(m,{header:"By Domain",children:(0,n.jsx)(d.p,{attribute:"domain.name"})}),(0,n.jsx)(m,{header:"By Competency",children:(0,n.jsx)(d.p,{attribute:"competency.name"})}),(0,n.jsx)(m,{header:"By Language",children:(0,n.jsx)(d.p,{attribute:"language.name"})})]})}),(0,n.jsx)("div",{className:"w-4/4 flex flex-col pt-[60px] md:pt-0 lg:w-3/4",children:(0,n.jsx)(u.r,{showPrevious:!0,hitComponent:v,transformItems:function(e){return b(e).sort((function(e,t){var r=new Date(e._createdAt);return new Date(t._createdAt)-r})).map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1)))),n.forEach((function(t){j(e,t,r[t])}))}return e}({},e)}))}})}),(0,n.jsx)("div",{className:"absolute left-4 top-16 flex items-center md:hidden",children:(0,n.jsxs)("button",{className:"mobileMenuButton flex items-center gap-2",onClick:function(){r(!t)},children:[(0,n.jsx)("h5",{className:"text-lg font-bold text-gray-950",children:"Filters"}),(0,n.jsx)("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M21 6H19M21 12H16M21 18H16M7 20V13.5612C7 13.3532 7 13.2492 6.97958 13.1497C6.96147 13.0615 6.93151 12.9761 6.89052 12.8958C6.84431 12.8054 6.77934 12.7242 6.64939 12.5617L3.35061 8.43826C3.22066 8.27583 3.15569 8.19461 3.10948 8.10417C3.06849 8.02393 3.03853 7.93852 3.02042 7.85026C3 7.75078 3 7.64677 3 7.43875V5.6C3 5.03995 3 4.75992 3.10899 4.54601C3.20487 4.35785 3.35785 4.20487 3.54601 4.10899C3.75992 4 4.03995 4 4.6 4H13.4C13.9601 4 14.2401 4 14.454 4.10899C14.6422 4.20487 14.7951 4.35785 14.891 4.54601C15 4.75992 15 5.03995 15 5.6V7.43875C15 7.64677 15 7.75078 14.9796 7.85026C14.9615 7.93852 14.9315 8.02393 14.8905 8.10417C14.8443 8.19461 14.7793 8.27583 14.6494 8.43826L11.3506 12.5617C11.2207 12.7242 11.1557 12.8054 11.1095 12.8958C11.0685 12.9761 11.0385 13.0615 11.0204 13.1497C11 13.2492 11 13.3532 11 13.5612V17L7 20Z",stroke:"#000000",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})]})})]}),(0,n.jsx)("div",{className:"mobileFilterPanel bg-white fixed top-0 z-30 h-screen w-[65%] max-w-[300px] overflow-y-auto bg-gray-50 p-10 duration-500 ease-in lg:hidden ".concat(t?"left-0":"left-[-100%]"),children:(0,n.jsxs)("div",{className:"flex h-screen w-full flex-col gap-5 pb-4 pt-10",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h5",{className:"text-lg font-bold text-gray-950",children:"Filters"}),(0,n.jsxs)("h6",{className:"cursor-pointer text-lg font-normal",onClick:function(){r(!1)},children:[" ","X"," "]})]}),(0,n.jsx)(m,{header:"By Grade",children:(0,n.jsx)(d.p,{attribute:"grades.name",className:""})}),(0,n.jsx)(m,{header:"By Subject",children:(0,n.jsx)(d.p,{attribute:"subject.name"})}),(0,n.jsx)(m,{header:"By Domain",children:(0,n.jsx)(d.p,{attribute:"domain.name"})}),(0,n.jsx)(m,{header:"By Competency",children:(0,n.jsx)(d.p,{attribute:"competency.name"})}),(0,n.jsx)(m,{header:"By Language",children:(0,n.jsx)(d.p,{attribute:"language.name"})}),(0,n.jsx)(x.V,{items:[{label:"2 hit per page",value:9,default:!0},{label:"2 hits per page",value:9}]})]})})]})})}},83966:function(e,t,r){"use strict";r.d(t,{u:function(){return u}});var n=r(6803),a=r.n(n),l=r(39617),s=c("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),i=c("5b7o9p3d","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");function c(e,t){if(void 0===e)throw new Error(t);return e}var o=function(e){var t=(0,l.eI)({projectId:i,dataset:s,apiVersion:"2022-11-28",useCdn:false,perspective:"published"});if(e){if(!e.token)throw new Error("You must provide a token to preview drafts");return t.withConfig({token:e.token,useCdn:!1,ignoreBrowserTokenWarning:!0,perspective:"previewDrafts"})}return t}(void 0),d=a()(o);function u(e){return d.image(e)}},24654:function(){}}]);
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.