PageSourceSearch

https://www.gonoodle.com/_next/static/chunks/pages/search-b4b23af9fc4f3db6.js

js gonoodle.com collected 2026-09-24 08:54:34 UTC 44,894 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[612],{4955:(e,l,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(94852)}])},5866:(e,l,r)=>{e.exports=r(97121)},94852:(e,l,r)=>{"use strict";r.r(l),r.d(l,{__N_SSP:()=>ee,default:()=>el});var t=r(6029),s=r(55729),a=r(28171),i=r(43379),n=class extends a.${constructor(e,l){super(e,l)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,i.PL)()})}getOptimisticResult(e){return e.behavior=(0,i.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,l){let{state:r}=e,t=super.createResult(e,l),{isFetching:s,isRefetching:a,isError:n,isRefetchError:o}=t,c=r.fetchMeta?.fetchMore?.direction,d=n&&"forward"===c,m=s&&"forward"===c,u=n&&"backward"===c,h=s&&"backward"===c;return{...t,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(l,r.data),hasPreviousPage:(0,i.RQ)(l,r.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:u,isFetchingPreviousPage:h,isRefetchError:o&&!d&&!u,isRefetching:a&&!m&&!h}}},o=r(99519),c=r(72504),d=r(64218),m=r(13398),u=r(8588),h=r.n(u),x=r(95816),p=r.n(x),f=r(64305),g=r.n(f),b=r(76694),v=r.n(b),w=r(21420),j=r(52229),N=r(90472),y=r(97450),z=r(38142),S=r(77493),A=r(97966),L=r(68097),_=r(8939),C=r(6406);let E=()=>{let{searchCustomShelves:e,isSearchCustomShelvesLoading:l,searchCustomShelvesError:r}=(0,y.NP)(),a=s.useMemo(()=>p()(e)?[]:e.map(e=>({key:"CustomShelf-".concat(e.id),type:"CustomShelf",fetcher:[{params:{id:e.id},resolver:"custom_shelf"}],templateOptions:{displayTitle:e.displayTitle,description:e.displayDescription}})),[e]);return r?null:l?(0,t.jsx)(d.e,{cols:4,loading:!0,bgColor:"bg-transparent"}):(0,t.jsx)("div",{className:"container pt-sm pb-lg space-y-lg",children:(0,t.jsx)(C.A,{layout:a})})};var k=r(22718),P=r(86329);let R=r(5866),T=(0,k.A)(),D="keyword",U="filters",M=e=>{let{searchFilters:l,isSearchFiltersLoading:r,searchFiltersError:t}=(0,y.H$)();return{searchFilterList:l?l[e]:void 0,isSearchFilterLoading:r,searchFilterError:t}};function O(){let e=(0,y.rd)(),l=(0,j.usePathname)(),r=(0,j.useSearchParams)(),t=r.has("filters")?R.parse(r.get("filters")):{},a="filters",i=s.useCallback(()=>{let e=new URLSearchParams(r.toString());return e.delete(a),e},[r]),n=s.useCallback(e=>{let l=new URLSearchParams(r.toString());return l.set(a,"".concat(R.stringify(e))),l},[r]),o=s.useCallback(r=>{let t=p()(r)?i():n(r);e.replace("".concat(l,"?").concat(t.toString()),{scroll:!1})},[n,l,i,e]),c=s.useCallback(e=>{let{filterType:l,values:t}=e,s=r.get("filters");o({...s?R.parse(s):{},[l]:t})},[r,o]),d=s.useCallback(e=>{let{filterType:l,values:t}=e,s=r.get("filters"),a={...s?R.parse(s):{}};l.forEach(e=>{a={...a,[e]:t[e]}}),o(a)},[r,o]),m=s.useCallback(e=>{let l=R.parse(r.get("filters")),t=v()(l,e);Object.keys(t).forEach(e=>{p()(t[e])&&(t=v()(t,e))}),o(t)},[r,o]),u=s.useCallback(()=>{o(void 0)},[o]);return{activeSearchFilters:t,setActiveSearchFilters:e=>{let{filterType:l,filterValues:r}=e;p()(l)&&p()(r)?u():p()(r)?m(l):Array.isArray(l)?d({filterType:l,values:r}):c({filterType:l,values:r})}}}function F(e){let{activeSearchFilters:l,setActiveSearchFilters:r}=O();if(e)return{activeSearchFilter:l[e],setActiveSearchFilter:l=>r({filterType:e,filterValues:l})}}let H=e=>{let{value:l,onSubmit:r}=e,[a,i]=s.useState(l);return s.useEffect(()=>{i(l)},[l]),(0,t.jsxs)("div",{className:"flex items-center self-start w-full max-w-[500px] overflow-hidden transition-all h-12 border-b-[0.1px] border-gray",children:[(0,t.jsx)(d.CW,{className:"mx-3 my-2 w-5 h-5 flex-shrink-0"}),(0,t.jsx)("div",{className:"flex w-full [&>*]:w-full",children:(0,t.jsx)(d.A_,{"aria-label":"Search input",id:"search",className:"bg-transparent border-none shadow-none !text-lg text-white mb-1 focus:ring-0",type:"text",onKeyUp:e=>{"Enter"===e.key&&r(a)},name:"search",placeholder:"E.g. Printables",value:a,onChange:i})}),a&&(0,t.jsx)(d.Xb,{className:"min-w-fit mx-3 my-2",onPress:()=>{i(""),r()},children:"Clear text"})]})};function V(e){let{defaultDuration:l,min:r,max:a,isDisabled:i,onChange:n}=e,[o,c]=s.useState(l);return(0,t.jsxs)("div",{className:"flex flex-col items-center mt-4 mb-6 w-full",children:[(0,t.jsxs)("div",{className:"flex justify-center whitespace-pre font-bold text-white mb-4",children:[(0,t.jsx)("output",{children:o[0]})," - ",(0,t.jsx)("output",{children:o[1]}),"min"]}),(0,t.jsxs)(d.Ap.bL,{value:o,className:"relative flex flex-col w-[70%]",maxValue:a,minValue:r,disabled:i,onChange:e=>{c(e),n(e)},children:[(0,t.jsx)(d.Ap.CC,{className:"relative h-2 my-auto rounded-full bg-white",children:(0,t.jsx)(d.Ap.Q6,{className:"absolute h-full rounded-full bg-purple"})}),(0,t.jsx)(d.Ap.zi,{className:"block w-5 h-5 -translate-y-[6px] rounded-full bg-purple-900 border-purple border-4 outline-none focus:bg-purple-700 focus-visible:bg-green"}),(0,t.jsx)(d.Ap.zi,{className:"block w-5 h-5 -translate-y-[6px] rounded-full bg-purple-900 border-purple border-4 outline-none focus:bg-purple-700 focus-visible:bg-green"}),(0,t.jsxs)("div",{className:"flex flex-row justify-between w-full text-xs font-light text-gray-400 mt-2",children:[(0,t.jsx)("span",{children:r}),(0,t.jsxs)("span",{children:[a,"+"]})]})]})]})}function I(e){let{isOpen:l=!1,disabled:r,onOpen:a,onClose:i,handleSubmit:n}=e,o=d.Fc.useAlert(),{searchFilterList:m,isSearchFilterLoading:u,searchFilterError:h}=M(P.U_.DURATION),x=parseInt(null==m?void 0:m[0],10),p=parseInt(null==m?void 0:m[m.length-1],10),{activeSearchFilter:f}=F(P.U_.DURATION),g=Array.isArray(f)?f.map(Number):[x,p],[b,v]=s.useState(g);return h?(o.publish("Something went wrong. Please reload page."),null):(0,t.jsxs)(d.AM.bL,{offset:5,placement:"bottom start",shouldFlip:!1,shouldTriggerOnHover:!0,restoreFocus:!1,isOpen:l,onOpen:a,onClose:i,children:[(0,t.jsxs)(d.AM.l9,{disabled:r,className:(0,
1c.Q)("inline-flex items-center justify-center rounded border border-gray-500 hover:border-mint focus:border-mint transition-colors text-gray-300 text-sm hover:text-mint py-2 px-4 stroke-[#D4D4D8] hover:stroke-mint min-w-fit font-bold capitalize touch-pan-x focus:ring focus:outline-none focus:ring-mint",f&&"border-purple",r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)(d.uY,{className:"w-6 h-6 mr-3"}),"duration"]}),(0,t.jsx)(d.AM.UC,{className:"outline-none overflow-hidden w-full md:w-screen-xs bg-gray-800 border border-purple rounded",children:l&&(0,t.jsxs)("form",{className:"flex flex-col items-center",onSubmit:e=>{e.preventDefault(),n({filterValues:b,filterType:P.U_.DURATION})},children:[(0,t.jsx)(V,{defaultDuration:g,min:x,max:p,isDisabled:u,onChange:v}),(0,t.jsxs)("div",{className:"relative flex flex-row justify-center w-full",children:[(0,t.jsx)(W,{}),(0,t.jsx)("div",{className:"absolute right-3 bottom-2 text-gray-400 text-xxs md:text-xs",children:"For video content only"})]})]})})]})}function Y(e){let{isOpen:l=!1,disabled:r,onOpen:s,onClose:a,handleSubmit:i}=e,n=d.Fc.useAlert(),{searchFilterList:o,isSearchFilterLoading:u,searchFilterError:h}=M(P.U_.ACTIVITY_TYPES),{activeSearchFilter:x=[]}=F(P.U_.ACTIVITY_TYPES);return h?(n.publish("Something went wrong. Please reload page."),null):(0,t.jsxs)(d.AM.bL,{offset:5,placement:"bottom start",shouldFlip:!1,shouldTriggerOnHover:!0,restoreFocus:!1,isOpen:l,onOpen:s,onClose:a,children:[(0,t.jsxs)(d.AM.l9,{ariaLabel:"".concat(l?"Close":"Open"," Activity Type Filter"),disabled:r,className:(0,c.Q)("inline-flex items-center justify-center rounded border border-gray-500 hover:border-mint focus:border-mint transition-colors text-gray-300 text-sm hover:text-mint py-2 px-4 stroke-[#D4D4D8] hover:stroke-mint min-w-fit font-bold capitalize touch-pan-x focus:ring focus:outline-none focus:ring-mint",x.length>0&&"border-purple",r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)("div",{className:"h-6 w-6 stroke-2 mr-3 fill-none",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",d:"M12 3c4.968 0 9 4.032 9 9s-4.032 9-9 9-9-4.032-9-9m9-5c2.758 0 5 2.242 5 5s-2.242 5-5 5-5-2.242-5-5"})})}),"activity type"]}),(0,t.jsx)(d.AM.UC,{className:"outline-none w-full overflow-hidden relative md:w-screen-xs border border-purple rounded",children:l&&(0,t.jsxs)("form",{className:"max-h-screen-xs bg-gray-800 overflow-y-scroll",onSubmit:e=>{e.preventDefault();let l=g()(e.target.elements,e=>e.checked);i({filterValues:Object.keys(l).map(e=>Number(l[e].value)),filterType:P.U_.ACTIVITY_TYPES})},children:[(0,t.jsx)(m.$Q.Root,{defaultValue:x,className:"grid grid-cols-2 mb-10",isDisabled:u,children:null==o?void 0:o.map((e,l)=>{let{id:r,name:s}=e;return(0,t.jsx)(m.Sc.Root,{value:r,className:(0,c.Q)("flex items-center pl-2 pr-4 py-4 border-b-[1px] border-gray-500 h-[52px] lg:h-[72px] overflow-hidden",l%2==0&&"border-r-sm"),children:(0,t.jsx)(m.Sc.Label,{className:"text-white font-bold cursor-pointer ml-1 text-xs md:text-sm break-words text-ellipsis line-clamp-2",ariaLabel:"Select ".concat(s," activity type"),children:s})},r)})}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 pointer-events-none",children:[(0,t.jsx)("div",{className:"bg-gradient-to-b from-transparent to-gray-800 h-full absolute left-0 right-0"}),(0,t.jsx)("div",{className:"w-fit mx-auto pointer-events-auto",children:(0,t.jsx)(W,{})})]})]})})]})}function Q(e){let{isOpen:l=!1,disabled:r,onOpen:s,onClose:a,handleSubmit:i}=e,n=d.Fc.useAlert(),{searchFilterList:o,isSearchFilterLoading:u,searchFilterError:h}=M(P.U_.ENERGY_LEVELS),{activeSearchFilter:x=[]}=F(P.U_.ENERGY_LEVELS);return h?(n.publish("Something went wrong. Please reload page."),null):(0,t.jsxs)(d.AM.bL,{offset:5,placement:"bottom start",shouldFlip:!1,shouldTriggerOnHover:!0,restoreFocus:!1,isOpen:l,onOpen:s,onClose:a,children:[(0,t.jsxs)(d.AM.l9,{ariaLabel:"".concat(l?"Close":"Open"," Energy Level Filter"),disabled:r,className:(0,c.Q)("inline-flex items-center justify-center rounded border border-gray-500 hover:border-mint focus:border-mint transition-colors text-gray-300 text-sm hover:text-mint py-2 px-4 stroke-[#D4D4D8] hover:stroke-mint min-w-fit font-bold capitalize touch-p
1an-x focus:ring focus:outline-none focus:ring-mint",x.length>0&&"border-purple",r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)("div",{className:"h-6 w-6 stroke-2 mr-3 fill-none",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeMiterlimit:"10",d:"M14.401 5.419l.007-.023.006-.023C14.579 4.713 14.1 4 13.346 4H9.46c-.587 0-.912.418-1.026.7l-.011.03-.01.029-2.35 7.093c-.28.794.371 1.457 1.042 1.457h2.844l-1.36 5.322-.003.011-.002.012c-.143.616.246 1.094.652 1.262.412.17.977.092 1.313-.368l7.223-9.331h0l.008-.011c.596-.792-.06-1.756-.88-1.756h-3.413l.915-3.031z"})})}),"energy level"]}),(0,t.jsx)(d.AM.UC,{className:"outline-none overflow-hidden w-full md:w-screen-xs bg-gray-800 border border-purple rounded",children:l&&(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let l=g()(e.target.elements,e=>e.checked);i({filterValues:Object.keys(l).map(e=>l[e].value),filterType:P.U_.ENERGY_LEVELS})},children:[(0,t.jsx)(m.$Q.Root,{defaultValue:x,className:"pl-4 mt-4 mb-6",isDisabled:u,children:(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)(m.$Q.Label,{className:"text-sm font-bold text-white",children:"Levels"}),(0,t.jsxs)("div",{className:"flex flex-row mt-4",children:[(0,t.jsx)("span",{className:"w-[85px] mr-3 h-10 flex items-center text-center",children:(0,t.jsx)("p",{className:"text-xs text-gray-100",children:"Energy Down"})}),null==o?void 0:o.map((e,l)=>(0,t.jsx)(m.Sc.Root,{variant:m.Sc.variants.custom,name:e,value:String(e),className:1===l?"mx-5":"",children:(0,t.jsxs)(m.Sc.Label,{"aria-label":"Select ".concat(e," energy level"),className:"flex flex-col items-center group select-none cursor-pointer",children:[(0,t.jsx)("div",{className:"flex justify-center items-center rounded-full bg-gray-700 h-10 w-10 text-sm font-bold text-gray-300 transition-colors duration-200 ease-in-out group-data-[selected=true]:bg-purple group-data-[focused=true]:outline-none group-data-[focused=true]:ring ring-offset-2 ring-offset-gray-700 ring-purple",children:e.charAt(0).toUpperCase()}),(0,t.jsx)("span",{className:"text-xs text-gray-300 capitalize font-light mt-2",children:e})]})},e)),(0,t.jsx)("span",{className:"w-[85px] ml-3 h-10 flex items-center text-center",children:(0,t.jsx)("p",{className:"text-xs text-gray-100",children:"Energy Up"})})]})]})}),(0,t.jsxs)("div",{className:"relative flex flex-row justify-center w-full",children:[(0,t.jsx)("div",{className:"w-4"}),(0,t.jsx)(W,{}),(0,t.jsx)("div",{className:"absolute right-1 bottom-2 text-gray-400 text-xxs md:text-xs",children:"For video content only"})]})]})})]})}function G(e){let{isOpen:l=!1,disabled:r,onOpen:s,onClose:a,handleSubmit:i}=e,n=d.Fc.useAlert(),{searchFilterList:o,isSearchFilterLoading:u,searchFilterError:h}=M(P.U_.GRADE_LEVELS),{activeSearchFilter:x=[]}=F(P.U_.GRADE_LEVELS);return h?(n.publish("Something went wrong. Please reload page."),null):(0,t.jsxs)(d.AM.bL,{offset:5,placement:"bottom start",shouldFlip:!1,shouldTriggerOnHover:!0,restoreFocus:!1,isOpen:l,onOpen:s,onClose:a,children:[(0,t.jsxs)(d.AM.l9,{ariaLabel:"".concat(l?"Close":"Open"," Grade Level Filter"),disabled:r,className:(0,c.Q)("inline-flex items-center justify-center rounded border border-gray-500 hover:border-mint focus:border-mint transition-colors text-gray-300 text-sm hover:text-mint py-2 px-4 stroke-[#D4D4D8] hover:stroke-mint min-w-fit font-bold capitalize touch-pan-x focus:ring focus:outline-none focus:ring-mint",x.length>0&&"border-purple",r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)("div",{className:"h-6 w-6 stroke-2 mr-3 fill-none",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"inherit",viewBox:"0 0 24 24",className:"mr-3",children:[(0,t.jsx)("mask",{id:"path-1-inside-1_968_11934",fill:"inherit",children:(0,t.jsx)("path",{fillRule:"evenodd",fill:"inherit",className:"hover:fill-mint",d:"M20.349 5.249h-.001l-.009-.004h.01l-.009-.003h-.001l-5.257-1.997-3.003-1.14c-.37-.14-.78-.14-1.15 0l-8.27 3.14c-.49.19-.75.65-.63 1.11.91 3.26 4.66 15.52 9.47 15.52 4.444 0 7.984-10.467 9.214-14.63.101-.342.187-.642.256-.89.13-.457-.136-.914-.62-1.106zM4.235 6.786l7.269-2.76 7.26 2.757a66.58 66.58 0 01-.98 3.028l-5.836-2.694-.419-.193-.419.193-5.888 2.717a66.575 66.575 0 01-.987-3.048zm1.684 4.93c.36.918.757 1.856 1.188 2.762.794 1.667 1.65 3.116 2.521 4.12.914 1.051 1.544 1.277 1.871 1.277.327 0 .957-.226 1.87-1.278.872-1.003 1.729-2.452 2.522-4.119.435-.914.835-1.86 1.197-2.786l-5.559-2.566-5.61 2.59z",clipRule:"evenodd"})}),(0,t.jsx)("path",{fill:"inherit",className:"hover:fill-mint",d:"M20.348 5.248l.738-1.858-.008-.004-.73 1.862zm.001 0l.74-1.858h-.002L20.35 5.25zm-.01-.003v-2H9.758l9.851 3.862.73-1.862zm.01 0v2H31.25L21.06 3.375l-.71 1.87zm-.009-.003l.71-1.87-.71 1.87zm-.001 0l-.71 1.869.71-1.87zm-5.257-1.997l.71-1.87-.71 1.87zm-3.003-1.14l.71-1.87h-.002l-.708 1.87zm-1.15 0l-.708-1.87
1h-.002l.71 1.87zm-8.27 3.14l-.71-1.87-.013.005.723 1.865zm-.63 1.11L.094 6.86l.004.016.005.017 1.926-.538zm18.684.89l-1.918-.567 1.918.567zm.256-.89l-1.925-.544-.001.006 1.926.538zm-9.465-2.329l.71-1.87-.71-.27-.71.27.71 1.87zm-7.269 2.76l-.71-1.87-1.737.66.53 1.78 1.917-.57zm14.53-.003l1.916.57.53-1.78-1.737-.66-.71 1.87zm-.98 3.028l-.839 1.816 1.997.921.729-2.075-1.888-.662zm-5.837-2.694l-.838 1.816.838-1.816zm-.419-.193l.838-1.816-.838-.387-.838.387.838 1.816zm-.419.193l.838 1.816-.838-1.816zM5.222 9.834l-1.887.663.729 2.075 1.996-.922-.838-1.816zm.697 1.882L5.081 9.9l-1.711.79.687 1.755 1.862-.73zm1.188 2.762l1.806-.86-1.806.86zm2.521 4.12l-1.51 1.31 1.51-1.31zm3.742 0l1.51 1.31-1.51-1.31zm2.52-4.12l1.806.86-1.805-.86zm1.198-2.786l1.863.728.686-1.755-1.71-.789-.839 1.816zm-5.559-2.566l.838-1.816-.838-.386-.838.386.838 1.816zm8.08-2.019h.002l1.476-3.717-1.478 3.717zm0 0l.009.003 1.46-3.724-.009-.003-1.46 3.724zm.74-3.862h-.01v4h.01v-4zm-.719 3.866l.01.004 1.419-3.74-.009-.003-1.42 3.74zm0 0l1.42-3.74h-.001l-1.42 3.74zm-5.258-1.996l5.257 1.996 1.42-3.74-5.258-1.996-1.42 3.74zm-3.003-1.14l3.003 1.14 1.42-3.74-3.003-1.14-1.42 3.74zm.268 0a.373.373 0 01-.266 0l1.416-3.74a3.627 3.627 0 00-2.566 0l1.416 3.74zm-8.268 3.14l8.27-3.14-1.42-3.74-8.27 3.14 1.42 3.74zm.595-1.265c.076.29.028.593-.109.835a.952.952 0 01-.473.425L1.936 3.38C.645 3.88-.32 5.272.094 6.86l3.87-1.01zM11.5 19.875c-.327 0-.957-.226-1.87-1.278-.871-1.003-1.728-2.452-2.522-4.119-1.577-3.316-2.706-7.064-3.152-8.66L.103 6.892c.464 1.663 1.665 5.675 3.393 9.304.859 1.806 1.898 3.625 3.112 5.023 1.17 1.348 2.813 2.655 4.891 2.655v-4zm7.296-13.197c-.604 2.046-1.756 5.564-3.267 8.537-.759 1.494-1.557 2.745-2.35 3.595-.822.881-1.382 1.065-1.679 1.065v4c1.925 0 3.474-1.125 4.604-2.336 1.16-1.243 2.156-2.868 2.991-4.512 1.678-3.301 2.911-7.098 3.537-9.215l-3.836-1.134zm.248-.86c-.067.238-.15.528-.248.86l3.836 1.134c.104-.353.193-.662.264-.92l-3.852-1.075zm.567 1.29a.942.942 0 01-.461-.42 1.159 1.159 0 01-.105-.877l3.85 1.088c.461-1.634-.566-3.015-1.806-3.509L19.61 7.107zm-8.816-4.952l-7.269 2.76 1.42 3.74 7.269-2.76-1.42-3.74zm8.68 2.757l-7.26-2.757-1.42 3.74 7.26 2.756 1.42-3.74zm.198 5.56a68.657 68.657 0 001.01-3.12l-3.835-1.14a64.634 64.634 0 01-.95 2.936l3.775 1.324zm-8.562-1.54l5.836 2.694 1.676-3.632L12.786 5.3 11.11 8.933zm-.42-.193l.42.193 1.676-3.632-.419-.193-1.676 3.632zm1.258.193l.42-.193-1.677-3.632-.42.193 1.677 3.632zM6.06 11.65l5.888-2.717-1.676-3.632L4.384 8.02 6.06 11.65zM2.318 7.356c.253.85.596 1.941 1.017 3.141L7.11 9.172a64.554 64.554 0 01-.957-2.956l-3.834 1.14zm1.739 5.088c.373.953.789 1.936 1.245 2.893l3.611-1.718a40.64 40.64 0 01-1.131-2.633l-3.725 1.458zm1.245 2.893c.826 1.736 1.774 3.371 2.816 4.571l3.02-2.622c-.699-.805-1.464-2.07-2.225-3.667l-3.611 1.719zm2.816 4.571c1.05 1.209 2.185 1.967 3.381 1.967v-4c.29 0 .404.095.315.041-.085-.05-.315-.215-.675-.63l-3.02 2.622zm3.381 1.967c1.196 0 2.332-.758 3.381-1.967l-3.02-2.622c-.36.415-.59.58-.676.63-.089.054.026-.041.315-.041v4zm3.381-1.967c1.042-1.2 1.99-2.835 2.816-4.57l-3.611-1.72c-.76 1.598-1.526 2.863-2.225 3.668l3.02 2.622zm2.816-4.57c.46-.966.88-1.958 1.255-2.918l-3.726-1.456c-.348.891-.73 1.793-1.14 2.655l3.611 1.719zm.23-5.462L12.367 7.31l-1.676 3.632 5.559 2.566 1.676-3.632zM10.691 7.31L5.08 9.9l1.676 3.631 5.61-2.589-1.676-3.632z",mask:"url(#path-1-inside-1_968_11934)"})]})}),"grade level"]}),(0,t.jsx)(d.AM.UC,{className:"outline-none w-full overflow-hidden relative md:w-screen-xs border border-purple rounded",children:l&&(0,t.jsxs)("form",{className:"max-h-screen-xs bg-gray-800 overflow-y-scroll",onSubmit:e=>{e.preventDefault();let l=g()(e.target.elements,e=>e.checked);i({filterValues:Object.keys(l).map(e=>Number(l[e].value)),filterType:P.U_.GRADE_LEVELS})},children:[(0,t.jsx)(m.$Q.Root,{defaultValue:x,className:"grid grid-cols-2 mb-10",isDisabled:u,children:null==o?void 0:o.map((e,l)=>{let{id:r,name:s}=e;return(0,t.jsx)(m.Sc.Root,{value:r,className:(0,c.Q)("flex items-center pl-2 pr-4 py-4 border-b-[1px] border-gray-500 h-[52px] lg:h-[72px] overflow-hidden",l%2==0&&"border-r-sm"),children:(0,t.jsx)(m.Sc.Label,{className:"text-white font-bold cursor-pointer ml-1 text-xs md:text-sm break-words text-ellipsis line-clamp-2",ariaLabel:"Select ".concat(s," grade level"),children:s})},r)})}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 pointer-events-none",children:[(0,t.jsx)("div",{className:"bg-gradient-to-b from-transparent to-gray-800 h-full absolute left-0 right-0"}),(0,t.jsx)("div",{className:"w-fit mx-auto pointer-events-auto",children:(0,t.jsx)(W,{})})]})]})})]})}function B(e){let{isOpen:l=!1,disabled:r,onOpen:s,onClose:a,handleSubmit:i}=e,n=d.Fc.useAlert(),{searchFilterList:o,isSearchFilterLoading:u,searchFilterError:h}=M(P.U_.FEATURED_CHANNEL),{searchFilterList:x,isSearchFilterLoading:p,searchFilterError:f}=M(P.U_.CHANNELS),{activeSearchFilter:b=[]}=F(P.U_.CHANNELS);return f||h?(n.publish("Something went wrong. Please reload page."),null):(0,t.jsxs)(d.AM.bL,{offset:5,placement:"bottom start",shouldFlip:!1,shouldTriggerOnHover:!0,restoreFocus:!1,isOpen:l,onOpen:s,onClose:a,children:[(0,t.jsxs)(d.AM.l9,{ariaLabel:"".concat(l?"Close"
1:"Open"," Channels Filter"),disabled:r,className:(0,c.Q)("inline-flex items-center justify-center rounded border border-gray-500 hover:border-mint focus:border-mint transition-colors text-gray-300 text-sm hover:text-mint py-2 px-4 stroke-[#D4D4D8] hover:stroke-mint min-w-fit font-bold capitalize touch-pan-x focus:ring focus:outline-none focus:ring-mint",b.length>0&&"border-purple",r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)("div",{className:"w-6 h-6 mr-3 fill-none stroke-2",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",d:"M7 20s2.725-1 5.5-1 5.5 1 5.5 1M4.706 4h14.588C20.236 4 21 4.811 21 5.812v9.376c0 1-.764 1.812-1.706 1.812H4.706C3.764 17 3 16.189 3 15.188V5.812C3 4.812 3.764 4 4.706 4z"})})}),"channels"]}),(0,t.jsx)(d.AM.UC,{className:"outline-none w-full overflow-hidden relative md:w-screen-xs border border-purple rounded",children:l&&(0,t.jsxs)("form",{className:"max-h-screen-xs bg-gray-800 overflow-y-scroll",onSubmit:e=>{e.preventDefault();let l=g()(e.target.elements,e=>e.checked);i({filterValues:[...new Set(Object.keys(l).map(e=>Number(l[e].value)))],filterType:P.U_.CHANNELS})},children:[(0,t.jsxs)(m.$Q.Root,{defaultValue:b,className:"grid grid-cols-2 mb-10",isDisabled:p||u,children:[o&&(0,t.jsxs)("div",{className:"col-span-2 flex flex-col",children:[(0,t.jsxs)("div",{className:"flex justify-center items-center bg-gray-900 py-3",children:[(0,t.jsx)(d.yA,{className:"h-5 w-5 mr-2 text-yellow"}),(0,t.jsx)("span",{className:"uppercase font-bold text-white",children:"featured channel"})]}),(0,t.jsx)(m.Sc.Root,{value:o.id,className:"flex flex-row items-center pl-2 pr-4 py-4 h-[52px] lg:h-[72px] w-full overflow-hidden",children:(0,t.jsxs)(m.Sc.Label,{className:"flex flex-row items-center cursor-pointer select-none ml-1",ariaLabel:"Select ".concat(o.name," channel"),children:[(0,t.jsx)(d._V,{sources:o.image,alt:o.name,className:"h-[40px] w-[40px] object-cover"}),(0,t.jsx)("span",{className:"text-white font-bold cursor-pointer ml-3 text-xs md:text-sm break-words text-ellipsis line-clamp-2",children:o.name}),o.sponsorLogo&&(0,t.jsxs)("div",{className:"ml-auto flex flex-row items-center",children:[(0,t.jsx)("span",{className:"text-white border-l-[1px] border-gray-500 px-2 text-xxs",children:"powered by"}),(0,t.jsx)(d._V,{sources:o.sponsorLogo,alt:o.name,className:"max-h-[32px] min-w-[32px] max-w-[80px] md:max-w-[120px] object-cover"})]})]})})]}),(0,t.jsx)("div",{className:"col-span-2 text-center text-white bg-gray-900 py-3 font-bold uppercase",children:"all channels"}),null==x?void 0:x.map((e,l)=>{let{id:r,name:s,image:a}=e;return(0,t.jsx)(m.Sc.Root,{value:r,className:(0,c.Q)("flex items-center pl-2 pr-4 py-4 border-b-[1px] border-gray-500 h-[52px] lg:h-[72px] overflow-hidden",l%2==0&&"border-r-sm"),children:(0,t.jsxs)(m.Sc.Label,{className:"flex flex-row items-center cursor-pointer ml-1 overflow-hidden",ariaLabel:"Select ".concat(s," grade level"),children:[(0,t.jsx)(d._V,{sources:a,alt:s,className:"h-[40px] w-[40px] object-cover"}),(0,t.jsx)("span",{className:"text-white font-bold cursor-pointer ml-3 text-xs md:text-sm break-words text-ellipsis line-clamp-2",children:s})]})},r)})]}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 pointer-events-none",children:[(0,t.jsx)("div",{className:"bg-gradient-to-b from-transparent to-gray-800 h-full absolute left-0 right-0"}),(0,t.jsx)("div",{className:"w-fit mx-auto pointer-events-auto",children:(0,t.jsx)(W,{})})]})]})})]})}function $(e,l){return"".concat(e,"_").concat(l)}function X(e){let{isOpen:l=!1,disabled:r,onOpen:s,onClose:a,handleSubmit:i}=e,n=d.Fc.useAlert(),{searchFilterList:o,isSearchFilterLoading:u,searchFilterError:h}=M(P.U_.CHARACTERS),{activeSearchFilter:x=[]}=F(P.U_.CHARACTERS),{activeSearchFilter:p=[]}=F(P.U_.CHAMPIONS);return h?(n.publish("Something went wrong. Please reload page."),null):(0,t.jsxs)(d.AM.bL,{offset:5,placement:"bottom start",shouldFlip:!1,shouldTriggerOnHover:!0,restoreFocus:!1,isOpen:l,onOpen:s,onClose:a,children:[(0,t.jsxs)(d.AM.l9,{ariaLabel:"".concat(l?"Close"
1:"Open"," Characters Filter"),disabled:r,className:(0,c.Q)("inline-flex items-center justify-center rounded border border-gray-500 hover:border-mint focus:border-mint transition-colors text-gray-300 text-sm hover:text-mint py-2 px-4 stroke-[#D4D4D8] hover:stroke-mint min-w-fit font-bold capitalize touch-pan-x focus:ring focus:outline-none focus:ring-mint",(x.length>0||p.length>0)&&"border-purple",r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)("div",{className:"mr-3 stroke-[3] fill-none w-6 h-6",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{cx:"16.708",cy:"9.704",r:"4.566"}),(0,t.jsx)("circle",{cx:"6.888",cy:"13.748",r:"3.988"}),(0,t.jsx)("path",{strokeLinecap:"round",d:"M14.373 17.963c1.333.964 4.8 2.12 8-.963M9.098 3.645c-.97-.036-3.226.434-4.49 2.607"})]})}),"characters"]}),(0,t.jsx)(d.AM.UC,{className:"outline-none w-full overflow-hidden relative md:w-screen-xs border border-purple rounded",children:l&&(0,t.jsxs)("form",{className:"max-h-screen-xs bg-gray-800 overflow-y-scroll",onSubmit:e=>{let l=[],r=[];e.preventDefault(),Array.from(e.target.elements).forEach(e=>{let{checked:t,value:s}=e;if(t){let e=s.split("_")[1],t=s.split("_",1)[0];e===P.yw.CHARACTER?l.push(Number(t)):e===P.yw.CHAMPION&&r.push(Number(t))}}),i({filterValues:{[P.U_.CHARACTERS]:l,[P.U_.CHAMPIONS]:r},filterType:[P.U_.CHARACTERS,P.U_.CHAMPIONS]})},children:[(0,t.jsx)(m.$Q.Root,{defaultValue:[...x.map(e=>$(e,P.yw.CHARACTER)),...p.map(e=>$(e,P.yw.CHAMPION))],className:"grid grid-cols-2 mb-10",isDisabled:u,children:null==o?void 0:o.map((e,l)=>{let{id:r,name:s,image:a,type:i}=e;return(0,t.jsxs)("div",{className:(0,c.Q)("flex items-center pr-4 border-b-[1px] border-gray-500 h-[52px] lg:h-[72px] overflow-hidden",l%2==0&&"border-r-sm"),children:[(0,t.jsx)(d._V,{sources:a,alt:s,className:"h-full w-[40px] object-cover"}),(0,t.jsx)(m.Sc.Root,{value:$(r,i),className:"flex items-center overflow-hidden ml-3",children:(0,t.jsx)(m.Sc.Label,{className:"text-white font-bold cursor-pointer ml-1 text-xs md:text-sm break-words text-ellipsis line-clamp-2",ariaLabel:"Select ".concat(s," character"),children:s})})]},r)})}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 pointer-events-none",children:[(0,t.jsx)("div",{className:"bg-gradient-to-b from-transparent to-gray-800 h-full absolute left-0 right-0"}),(0,t.jsx)("div",{className:"w-fit mx-auto pointer-events-auto",children:(0,t.jsx)(W,{})})]})]})})]})}let q=()=>(0,t.jsx)("div",{className:"container flex flex-1 my-3",children:(0,t.jsxs)("div",{className:"flex flex-col flex-1 justify-center items-center rounded-lg",children:[(0,t.jsx)(h(),{src:"".concat(P.tl.GN_ASSETS_BASE_URL,"/web_public/images/no-results-search-champ.svg"),alt:"Sad Squatchy",width:276,height:200,className:"mb-4"}),(0,t.jsx)("h3",{className:"text-white text-md text-center font-bold mb-2",children:"Sorry, there are no search results available"}),(0,t.jsx)("p",{className:"text-white text-sm text-center",children:"Try searching one more time with the options available above."})]})}),K=()=>(0,t.jsx)("div",{className:"container flex flex-1 my-3",children:(0,t.jsxs)("div",{className:"flex flex-col flex-1 justify-center items-center rounded-lg",children:[(0,t.jsx)(h(),{src:"".concat(P.tl.GN_ASSETS_BASE_URL,"/web_public/images/empty-state-search-champ.svg"),alt:"Zapp Von Doubler",width:146,height:200,className:"mb-4"}),(0,t.jsx)("h3",{className:"text-white text-md text-center font-bold mb-2",children:"Fun content is waiting for you!"}),(0,t.jsxs)("p",{className:"text-white text-sm text-center",children:["Try one of the button options above or ",(0,t.jsx)("br",{}),"type in the search bar."]})]})}),W=()=>(0,t.jsx)(d.Xb,{className:"uppercase bg-purple px-8 py-1 font-bold [clip-path:polygon(10%_0%,90%_0%,100%_100%,0%_100%)] text-white ring ring-blue-300",buttonType:"submit",children:"apply"}),J=e=>{let{id:l,filterLabel:r,filterType:s,icon:a,removeFilter:i}=e;return(0,t.jsxs)("div",{className:"flex items-center w-fit bg-purple rounded-full py-2 px-4 space-x-4",children:[(0,t.jsx)("div",{className:"border-r-[1px] pr-2",children:a}),(0,t.jsx)("span",{className:"capitalize",children:r}),(0,t.jsx)(d.$n,{className:"w-4 h-4",onPress:()=>{i(l,s)},children:(0,t.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M1.00293 9.01172L9.00293 1.01172M1.00293 1.01172L9.00293 9.01172",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},Z=e=>{var l,r;let{analyticsProps:{sourceElement:s},card:{type:a,id:i,slug:n,title:o,description:c,images:d,attribution:m,duration:u,...h}}=e;return(0,t.jsx)("li",{className:"flex flex-col justify-top relative group",children:"BlogPost"===a?(0,t.jsx)(A.A,{slug:n,name:o,description:c,imageUrl:d.tile,title:o,referrer:{sourceElement:s,sourceName:w.bP.SEARCH}}):"VideoVersion"===a?(0,t.jsx)(S.A,{id:i,slug:n,title:o,description:c,images:d,duration:u,favorite:h.favorite,sponsor:{expiration:null==m?void 0:m.expiration,t
1ype:null==m?void 0:m.type},impressionsProps:{sourceName:o,sourcePage:w.Nb.SEARCH,sourcePageType:w.Nb.SEARCH,sourceElement:s},referrer:{sourceElement:s,sourceName:w.bP.SEARCH}}):"Printable"===a?(0,t.jsx)(L.A,{id:i,slug:n,mode:"dark",sources:h.heroImage["thumb@1x"]?{"regular@1x":h.heroImage["thumb@1x"],"regular@2x":h.heroImage["thumb@2x"],"regular@3x":h.heroImage["thumb@3x"]}:h.image,title:o,description:c,format:"landscape",referrer:{sourceElement:s,sourceName:w.bP.SEARCH}}):[P.yw.TOPIC,P.yw.CHANNEL,P.yw.TAG,"TopicContentTag"].includes(a)?(0,t.jsx)(_.A,{id:i,slug:n,name:h.name,title:h.name,description:c,format:"landscape",tile:h.image||(null==(l=h.images)?void 0:l.spotlightImage)||(null==(r=h.images)?void 0:r.tileImage),referrer:{sourceElement:s,sourceName:w.bP.SEARCH}}):null},i)};var ee=!0;let el=()=>{var e,l,r,a,i,m,u,h;let x=(0,y.rd)(),f=(0,j.usePathname)(),g=d.Fc.useAlert(),b=(0,j.useSearchParams)(),v=b.has("search_term")?decodeURIComponent(b.get("search_term")):"",[w,S]=s.useState({}),{searchFilters:A,isSearchFiltersLoading:L,searchFiltersError:_}=(0,y.H$)(),{activeSearchFilters:C,setActiveSearchFilters:k}=O(),{data:M={pages:[{}]},isLoading:F,hasNextPage:V,fetchNextPage:$,isFetchingNextPage:W}=(h={initialPageParam:1,queryFn:e=>{let{pageParam:l}=e;return T.search({page:l,pageSize:20,filters:C,fuzzySearchTerm:v})},getNextPageParam:e=>{let l=e.currentPage+1;return l<=e.totalPages?l:void 0},enabled:!p()(C)||!p()(v),staleTime:1/0,queryKey:[R.stringify(C),v,20]},(0,o.t)(h,n,void 0)),{pages:ee}=M,[{results:el,totalResults:er,totalPages:et}]=ee,es=el&&el.length>0&&!F?"".concat(et===ee.length?er:20*ee.length," of ").concat(er):"",ea=e=>{let{filterValues:l,filterType:r}=e;S({}),k({filterType:r,filterValues:l})},ei=(e,l)=>{if(l===P.U_.DURATION)return void k({filterType:l,filterValues:null});k({filterType:l,filterValues:C[l].filter(l=>l!==e)})},en=s.useMemo(()=>{let e=Object.values(C).reduce((e,l)=>e+l.length,0);return C[P.U_.DURATION]&&(e-=1),e>1},[C]),eo=s.useMemo(()=>p()(C)?v?D:"":v?"".concat(D,"+").concat(U):U,[C,v]);return _?(g.publish("Something went wrong. Please reload page."),null):(0,t.jsx)(z.A,{canonicalLinkPath:P.fp.SEARCH,pageDescription:"Search Page",pageTitle:"Search",children:(0,t.jsxs)("div",{className:"flex flex-col flex-1 bg-gradient-to-b from-gray-900 via-gray-900 to-gray-800",children:[(0,t.jsx)("div",{className:"bg-repeat text-white",style:{backgroundImage:"url(".concat(P.tl.GN_ASSETS_BASE_URL,"/web_public/images/background-maze.svg)")},children:(0,t.jsxs)("div",{className:"container flex flex-col py-10 justify-center items-center",children:[(0,t.jsx)(H,{value:v,onSubmit:e=>{let l=new URLSearchParams(b.toString());e?l.set("search_term",encodeURIComponent(e)):l.delete("search_term"),x.replace((0,N.AD)(f,Object.fromEntries(l.entries())),{scroll:!1})}}),(0,t.jsxs)("div",{className:"relative flex flex-row flex-nowrap w-full justify-start gap-4 overflow-x-auto pt-4 md:pt-6",children:[(0,t.jsx)(I,{isOpen:w===P.U_.DURATION,disabled:L,onOpen:()=>S(P.U_.DURATION),onClose:()=>S(void 0),handleSubmit:ea}),(0,t.jsx)(Y,{isOpen:w===P.U_.ACTIVITY_TYPES,disabled:L,onOpen:()=>S(P.U_.ACTIVITY_TYPES),onClose:()=>S(void 0),handleSubmit:ea}),(0,t.jsx)(Q,{isOpen:w===P.U_.ENERGY_LEVELS,disabled:L,onOpen:()=>S(P.U_.ENERGY_LEVELS),onClose:()=>S(void 0),handleSubmit:ea}),(0,t.jsx)(G,{isOpen:w===P.U_.GRADE_LEVELS,disabled:L,onOpen:()=>S(P.U_.GRADE_LEVELS),onClose:()=>S(void 0),handleSubmit:ea}),(0,t.jsx)(B,{isOpen:w===P.U_.CHANNELS,disabled:L,onOpen:()=>S(P.U_.CHANNELS),onClose:()=>S(void 0),handleSubmit:ea}),(0,t.jsx)(X,{isOpen:w===P.U_.CHARACTERS,disabled:L,onOpen:()=>S(P.U_.CHARACTERS),onClose:()=>S(void 0),handleSubmit:ea})]})]})}),(0,t.jsx)("div",{className:"container mt-6",children:(0,t.jsxs)("div",{className:"flex items-center justify-between flex-wrap lg:flex-nowrap gap-4 text-white",children:[!p()(C)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"order-1",children:(0,t.jsx)(d.iT,{className:"w-6 h-6"})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 order-last w-full lg:order-2",children:[(null==C||null==(e=C.duration)?void 0:e.length)?(0,t.jsx)(J,{icon:(0,t.jsx)(d.uY,{className:"w-6 h-6 stroke-[#D4D4D8]"}),filterLabel:"".concat(null==C?void 0:C.duration[0],"-").concat(null==C?void 0:C.duration[1],"min"),removeFilter:ei,filterType:P.U_.DURATION}):null,null==C||null==(l=C.activityTypes)?void 0:l.map(e=>{var l,r;let s=null==A||null==(r=A.activityTypes)||null==(l=r.find(l=>l.id===e))?void 0:l.name;return(0,t.jsx)(J,{id:e,icon:(0,t.jsx)("div",{className:"h-6 w-6 stroke-2 stroke-[#D4D4D8] fill-none",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",d:"M12 3c4.968 0 9 4.032 9 9s-4.032 9-9 9-9-4.032-9-9m9-5c2.758 0 5 2.242 5 5s-2.242 5-5 5-5-2.242-5-5"})})}),filterLabel:s,removeFilter:ei,filterType:P.U_.ACTIVITY_TYPES},e)}),null==C||null==(r=C.energyLevels)?void 0:r.map(e=>(0,t.jsx)(J,{id:e,icon:(0,t.jsx)("div",{className:"stroke-[#D4D4D8] h-6 w-6 stroke-2 fill-none",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeMiterlimit:"10",d:"M14.401 5.419l.007-.023.006-.023C14.579 4.713 14.1 4 13.346 4H9.46c-.587 0-.912.418-1.026.7l-.011.03-.01.029-2.35 7.093c-.28.794.371 1.457 1.042 1.457h2.844l-1.36 5.322-.003.011-.002.012c-.143.616.246 1.094.652 1.262.412.17.977.092 1.313-.368l7.223-9.331h0l.008-.011c.596-.792-.06-1.756-.88-1.756h-3.413l.915-3.031z"})})}),filterLabel:e,removeFilter:ei,filterType:P.U_.ENERGY_LEVELS},e)),null==C||null==(a=C.gradeLevels)?void 0:a.map(e=>{var l,r;let s=null==A||null==(r=A.gradeLevels)||null==(l=r.find(l=>l.id===e))?void 0:l.name;return(0,t.jsx)(J,{id:e,icon:(0,t.jsx)("div",{className:"stroke-[#D4D4D8] w-6 h-6 fill-none stroke-2",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("mask",{id:"path-1-inside-1_968_11934",fill:"#fff",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M20.349 5.249h-.001l-.009-.004h.01l-.009-.003h-.001l-5.257-1.997-3.003-1.14c-.37-.
114-.78-.14-1.15 0l-8.27 3.14c-.49.19-.75.65-.63 1.11.91 3.26 4.66 15.52 9.47 15.52 4.444 0 7.984-10.467 9.214-14.63.101-.342.187-.642.256-.89.13-.457-.136-.914-.62-1.106zM4.235 6.786l7.269-2.76 7.26 2.757a66.58 66.58 0 01-.98 3.028l-5.836-2.694-.419-.193-.419.193-5.888 2.717a66.575 66.575 0 01-.987-3.048zm1.684 4.93c.36.918.757 1.856 1.188 2.762.794 1.667 1.65 3.116 2.521 4.12.914 1.051 1.544 1.277 1.871 1.277.327 0 .957-.226 1.87-1.278.872-1.003 1.729-2.452 2.522-4.119.435-.914.835-1.86 1.197-2.786l-5.559-2.566-5.61 2.59z",clipRule:"evenodd"})}),(0,t.jsx)("path",{fill:"white",d:"M20.348 5.248l.738-1.858-.008-.004-.73 1.862zm.001 0l.74-1.858h-.002L20.35 5.25zm-.01-.003v-2H9.758l9.851 3.862.73-1.862zm.01 0v2H31.25L21.06 3.375l-.71 1.87zm-.009-.003l.71-1.87-.71 1.87zm-.001 0l-.71 1.869.71-1.87zm-5.257-1.997l.71-1.87-.71 1.87zm-3.003-1.14l.71-1.87h-.002l-.708 1.87zm-1.15 0l-.708-1.87h-.002l.71 1.87zm-8.27 3.14l-.71-1.87-.013.005.723 1.865zm-.63 1.11L.094 6.86l.004.016.005.017 1.926-.538zm18.684.89l-1.918-.567 1.918.567zm.256-.89l-1.925-.544-.001.006 1.926.538zm-9.465-2.329l.71-1.87-.71-.27-.71.27.71 1.87zm-7.269 2.76l-.71-1.87-1.737.66.53 1.78 1.917-.57zm14.53-.003l1.916.57.53-1.78-1.737-.66-.71 1.87zm-.98 3.028l-.839 1.816 1.997.921.729-2.075-1.888-.662zm-5.837-2.694l-.838 1.816.838-1.816zm-.419-.193l.838-1.816-.838-.387-.838.387.838 1.816zm-.419.193l.838 1.816-.838-1.816zM5.222 9.834l-1.887.663.729 2.075 1.996-.922-.838-1.816zm.697 1.882L5.081 9.9l-1.711.79.687 1.755 1.862-.73zm1.188 2.762l1.806-.86-1.806.86zm2.521 4.12l-1.51 1.31 1.51-1.31zm3.742 0l1.51 1.31-1.51-1.31zm2.52-4.12l1.806.86-1.805-.86zm1.198-2.786l1.863.728.686-1.755-1.71-.789-.839 1.816zm-5.559-2.566l.838-1.816-.838-.386-.838.386.838 1.816zm8.08-2.019h.002l1.476-3.717-1.478 3.717zm0 0l.009.003 1.46-3.724-.009-.003-1.46 3.724zm.74-3.862h-.01v4h.01v-4zm-.719 3.866l.01.004 1.419-3.74-.009-.003-1.42 3.74zm0 0l1.42-3.74h-.001l-1.42 3.74zm-5.258-1.996l5.257 1.996 1.42-3.74-5.258-1.996-1.42 3.74zm-3.003-1.14l3.003 1.14 1.42-3.74-3.003-1.14-1.42 3.74zm.268 0a.373.373 0 01-.266 0l1.416-3.74a3.627 3.627 0 00-2.566 0l1.416 3.74zm-8.268 3.14l8.27-3.14-1.42-3.74-8.27 3.14 1.42 3.74zm.595-1.265c.076.29.028.593-.109.835a.952.952 0 01-.473.425L1.936 3.38C.645 3.88-.32 5.272.094 6.86l3.87-1.01zM11.5 19.875c-.327 0-.957-.226-1.87-1.278-.871-1.003-1.728-2.452-2.522-4.119-1.577-3.316-2.706-7.064-3.152-8.66L.103 6.892c.464 1.663 1.665 5.675 3.393 9.304.859 1.806 1.898 3.625 3.112 5.023 1.17 1.348 2.813 2.655 4.891 2.655v-4zm7.296-13.197c-.604 2.046-1.756 5.564-3.267 8.537-.759 1.494-1.557 2.745-2.35 3.595-.822.881-1.382 1.065-1.679 1.065v4c1.925 0 3.474-1.125 4.604-2.336 1.16-1.243 2.156-2.868 2.991-4.512 1.678-3.301 2.911-7.098 3.537-9.215l-3.836-1.134zm.248-.86c-.067.238-.15.528-.248.86l3.836 1.134c.104-.353.193-.662.264-.92l-3.852-1.075zm.567 1.29a.942.942 0 01-.461-.42 1.159 1.159 0 01-.105-.877l3.85 1.088c.461-1.634-.566-3.015-1.806-3.509L19.61 7.107zm-8.816-4.952l-7.269 2.76 1.42 3.74 7.269-2.76-1.42-3.74zm8.68 2.757l-7.26-2.757-1.42 3.74 7.26 2.756 1.42-3.74zm.198 5.56a68.657 68.657 0 001.01-3.12l-3.835-1.14a64.634 64.634 0 01-.95 2.936l3.775 1.324zm-8.562-1.54l5.836 2.694 1.676-3.632L12.786 5.3 11.11 8.933zm-.42-.193l.42.193 1.676-3.632-.419-.193-1.676 3.632zm1.258.193l.42-.193-1.677-3.632-.42.193 1.677 3.632zM6.06 11.65l5.888-2.717-1.676-3.632L4.384 8.02 6.06 11.65zM2.318 7.356c.253.85.596 1.941 1.017 3.141L7.11 9.172a64.554 64.554 0 01-.957-2.956l-3.834 1.14zm1.739 5.088c.373.953.789 1.936 1.245 2.893l3.611-1.718a40.64 40.64 0 01-1.131-2.633l-3.725 1.458zm1.245 2.893c.826 1.736 1.774 3.371 2.816 4.571l3.02-2.622c-.699-.805-1.464-2.07-2.225-3.667l-3.611 1.719zm2.816 4.571c1.05 1.209 2.185 1.967 3.381 1.967v-4c.29 0 .404.095.315.041-.085-.05-.315-.215-.675-.63l-3.02 2.622zm3.381 1.967c1.196 0 2.332-.758 3.381-1.967l-3.02-2.622c-.36.415-.59.58-.676.63-.089.054.026-.041.315-.041v4zm3.381-1.967c1.042-1.2 1.99-2.835 2.816-4.57l-3.611-1.72c-.76 1.598-1.526 2.863-2.225 3.668l3.02 2.622zm2.816-4.57c.46-.966.88-1.958 1.255-2.918l-3.726-1.456c-.348.891-.73 1.793-1.14 2.655l3.611 1.719zm.23-5.462L12.367 7.31l-1.676 3.632 5.559 2.566 1.676-3.632zM10.691 7.31L5.08 9.9l1.676 3.631 5.61-2.589-1.676-3.632z",mask:"url(#path-1-inside-1_968_11934)"})]})}),filterLabel:s,removeFilter:ei,filterType:P.U_.GRADE_LEVELS},e)}),null==C||null==(i=C.channels)?void 0:i.map(e=>{var l,r;let s=null==A||null==(r=A.channels)||null==(l=r.find(l=>l.id===e))?void 0:l.name;return(0,t.jsx)(J,{id:e,icon:(0,t.jsx)("div",{className:"stroke-[#D4D4D8] w-6 h-6 fill-none stroke-2",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",d:"M7 20s2.725-1 5.5-1 5.5 1 5.5 1M4.706 4h14.588C20.236 4 21 4.811 21 5.812v9.376c0 1-.764 1.812-1.706 1.812H4.706C3.764 17 3 16.189 3 15.188V5.812C3 4.812 3.764 4 4.706 4z"})})}),filterLabel:s,removeFilter:ei,filterType:P.U_.CHANNELS},e)}
1),null==C||null==(m=C.characters)?void 0:m.map(e=>{var l,r;let s=null==A||null==(r=A.characters)||null==(l=r.find(l=>l.id===e))?void 0:l.name;return(0,t.jsx)(J,{id:e,icon:(0,t.jsx)("div",{className:"stroke-[#D4D4D8] stroke-[3] fill-none w-6 h-6",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{cx:"16.708",cy:"9.704",r:"4.566"}),(0,t.jsx)("circle",{cx:"6.888",cy:"13.748",r:"3.988"}),(0,t.jsx)("path",{strokeLinecap:"round",d:"M14.373 17.963c1.333.964 4.8 2.12 8-.963M9.098 3.645c-.97-.036-3.226.434-4.49 2.607"})]})}),filterLabel:s,removeFilter:ei,filterType:P.U_.CHARACTERS},e)}),null==C||null==(u=C.champions)?void 0:u.map(e=>{var l,r;let s=null==A||null==(r=A.characters)||null==(l=r.find(l=>l.id===e))?void 0:l.name;return(0,t.jsx)(J,{id:e,icon:(0,t.jsx)("div",{className:"stroke-[#D4D4D8] stroke-[3] fill-none w-6 h-6",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{cx:"16.708",cy:"9.704",r:"4.566"}),(0,t.jsx)("circle",{cx:"6.888",cy:"13.748",r:"3.988"}),(0,t.jsx)("path",{strokeLinecap:"round",d:"M14.373 17.963c1.333.964 4.8 2.12 8-.963M9.098 3.645c-.97-.036-3.226.434-4.49 2.607"})]})}),filterLabel:s,removeFilter:ei,filterType:P.U_.CHAMPIONS},e)})]}),en&&(0,t.jsx)(d.Xb,{onPress:()=>{k({clearFilters:!0}),S({})},className:"order-3 min-w-fit ml-auto",children:"Clear all"})]}),(0,t.jsx)("span",{className:(0,c.Q)("order-4 min-w-fit lg:ml-auto pl-4 border-gray-500",es?en?"border-l-2":"ml-auto":""),children:es})]})}),F?(0,t.jsx)(d.e,{cols:4,loading:!0,bgColor:"bg-transparent"}):void 0===el?(0,t.jsx)(K,{}):(null==el?void 0:el.length)===0?(0,t.jsx)(q,{}):(0,t.jsxs)("div",{className:"container pt-8 pb-lg flex flex-col gap-8 md:gap-10 lg:gap-12",children:[(0,t.jsx)("ul",{className:"grid gap-x-md gap-y-md md:grid-cols-2 lg:grid-cols-4",children:ee.map((e,l)=>e.results.map((e,r)=>(0,t.jsx)(Z,{card:e,analyticsProps:{sourceElement:eo}},"".concat(l,"-").concat(r))))}),V?(0,t.jsx)("div",{className:"mx-auto p-2",children:(0,t.jsx)(d.$n,{variant:d.Ck.vivid,size:d.GO.lg,disabled:W,onPress:()=>$(),children:"Load more"})}):null]}),(0,t.jsx)(E,{})]})})}},97121:(e,l)=>{!function(e){"use strict";e.stringify=function e(l){function r(e){return/[^\w-.]/.test(e)?e.replace(/[^\w-.]/g,function(e){return"$"===e?"!":(e=e.charCodeAt(0))<256?"*"+("00"+e.toString(16)).slice(-2):"**"+("0000"+e.toString(16)).slice(-4)}):e}switch(typeof l){case"number":return isFinite(l)?"~"+l:"~null";case"boolean":return"~"+l;case"string":return"~'"+r(l);case"object":if(!l)return"~null";if(t=[],Array.isArray(l)){for(var t,s=0;s<l.length;s++)t[s]=e(l[s])||"~null";return"~("+(t.join("")||"~")+")"}for(var a in l)if(l.hasOwnProperty(a)){var i=e(l[a]);i&&t.push(r(a)+i)}return"~("+t.join("~")+")";default:return}};var l={true:!0,false:!1,null:null};e.parse=function(e){if(!e)return e;e=e.replace(/%(25)*27/g,"'");var r=0,t=e.length;function s(l){if(e.charAt(r)!==l)throw Error("bad JSURL syntax: expected "+l+", got "+(e&&e.charAt(r)));r++}function a(){for(var l,s=r,a="";r<t&&"~"!==(l=e.charAt(r))&&")"!==l;)switch(l){case"*":s<r&&(a+=e.substring(s,r)),"*"===e.charAt(r+1)?(a+=String.fromCharCode(parseInt(e.substring(r+2,r+6),16)),s=r+=6):(a+=String.fromCharCode(parseInt(e.substring(r+1,r+3),16)),s=r+=3);break;case"!":s<r&&(a+=e.substring(s,r)),a+="$",s=++r;break;default:r++}return a+e.substring(s,r)}return function i(){var n,o,c;switch(s("~"),o=e.charAt(r)){case"(":if(r++,"~"===e.charAt(r))if(n=[],")"===e.charAt(r+1))r++;else do n.push(i());while("~"===e.charAt(r));else if(n={},")"!==e.charAt(r))do n[a()]=i();while("~"===e.charAt(r)&&++r);s(")");break;case"'":r++,n=a();break;default:for(c=r++;r<t&&/[^)~]/.test(e.charAt(r));)r++;var d=e.substring(c,r);if(/[\d\-]/.test(o))n=parseFloat(d);else if(void 0===(n=l[d]))throw Error("bad value keyword: "+d)}return n}()},e.tryParse=function(l,r){try{return e.parse(l)}catch(e){return r}}}(l)}},e=>{var l=l=>e(e.s=l);e.O(0,[8277,8190,6694,6020,5761,6406,636,6593,8792],()=>l(4955)),_N_E=e.O()}]);

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.