1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51638,26382,e=>{"use strict";var r=e.i(43476),t=e.i(71645),l=e.i(2499),o=e.i(99929),n=e.i(24525),a=e.i(81014),i=e.i(23362);let s=(0,e.i(42278).createTheme)({root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}});e.s(["cardTheme",()=>s],26382);let u=(0,t.forwardRef)((e,t)=>{let u=(0,i.useThemeProvider)(),c=(0,n.useResolveTheme)([s,u.theme?.card,e.theme],[(0,l.get)(u.clearTheme,"card"),e.clearTheme],[(0,l.get)(u.applyTheme,"card"),e.applyTheme]),{children:d,className:f,horizontal:p,href:g,imgAlt:h,imgSrc:m,renderImage:y,...b}=(0,o.resolveProps)(e,u.props?.card),v=void 0===g?"div":"a";return(0,r.jsxs)(v,{ref:t,"data-testid":"flowbite-card",href:g,className:(0,a.twMerge)(c.root.base,c.root.horizontal[p?"on":"off"],g&&c.root.href,f),...b,children:[y?.(c,!!p)??(m&&(0,r.jsx)("img",{"data-testid":"flowbite-card-image",alt:h??"",src:m,className:(0,a.twMerge)(c.img.base,c.img.horizontal[e.horizontal?"on":"off"])})),(0,r.jsx)("div",{className:c.root.children,children:d})]})});u.displayName="Card",e.s(["Card",()=>u],51638)},98183,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={assign:function(){return s},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}};for(var o in l)Object.defineProperty(t,o,{enumerable:!0,get:l[o]});function n(e){let r={};for(let[t,l]of e.entries()){let e=r[t];void 0===e?r[t]=l:Array.isArray(e)?e.push(l):r[t]=[e,l]}return r}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let r=new URLSearchParams;for(let[t,l]of Object.entries(e))if(Array.isArray(l))for(let e of l)r.append(t,a(e));else r.set(t,a(l));return r}function s(e,...r){for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,l]of t.entries())e.append(r,l)}return e}},95057,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var o in l)Object.defineProperty(t,o,{enumerable:!0,get:l[o]});let n=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function i(e){let{auth:r,hostname:t}=e,l=e.protocol||"",o=e.pathname||"",i=e.hash||"",s=e.query||"",u=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",e.host?u=r+e.host:t&&(u=r+(~t.indexOf(":")?`[${t}]`:t),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(n.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return l&&!l.endsWith(":")&&(l+=":"),e.slashes||(!l||a.test(l))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${l}${u}${o}${c}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18967,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return n},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var o in l)Object.defineProperty(t,o,{enumerable:!0,get:l[o]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let r,t=!1;return(...l)=>(t||(t=!0,r=e(...l)),r)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>i.test(e);function u(){let{protocol:e,hostname:r,port:t}=window.location;return`${e}//${r}${t?":"+t:""}`}function c(){let{href:e}=window.location,r=u();return e.substring(r.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let r=e.split("?");return r[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(r[1]?`?${r.slice(1).join("?")}`:"")}async function g(e,r){let t=r.res||r.ctx&&r.ctx.res;if(!e.getInitialProps)return r.ctx&&r.Component?{pageProps:await g(r.Component,r.ctx)}:{};let l=await e.getInitialProps(r);if(t&&f(t))return l;if(!l)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${l}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return l}let h="u">typeof performance,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,r){super(),this.message=`Failed to load static file for page: ${e} ${r}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});let l=e.r(18967),o=e.r(52817);function n(e){if(!(0,l.isAbsoluteUrl)(e))return!0;try{let r=(0,l.getLocationOrigin)(),t=new URL(e,r);return t.origin===r&&(0,o.hasBasePath)(t.pathname)}catch(e){return!1}}},84508,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return l}});let l=e=>{}},22016,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={default:function(){return y},useLinkStatus:function(){return v}};for(var o in l)Object.defineProperty(t,o,{enumerable:!0,get:l[o]});let n=e.r(90809),a=e.r(43476),i=n._(e.r(71645)),s=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),g=e.r(73668),h=e.r(9396);function m(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function y(r){var t;let l,o,n,[s,y]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:x,as:w,children:j,prefetch:k=null,passHref:F,replace:T,shallow:C,scroll:N,onClick:S,onMouseEnter:M,onTouchStart:E,legacyBehavior:R=!1,onNavigate:P,ref:L,unstable_dynamicOnHover:I,...O}=r;l=j,R&&("string"==typeof l||"number"==typeof l)&&(l=(0,a.jsx)("a",{children:l}));let $=i.default.useContext(u.AppRouterContext),_=!1!==k,A=!1!==k?null===(t=k)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:U,as:Q}=i.default.useMemo(()=>{let e=m(x);return{href:e,as:w?m(w):e}},[x,w]);if(R){if(l?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=i.default.Children.only(l)}let z=R?o&&"object"==typeof o&&o.ref:L,B=i.default.useCallback(e=>(null!==$&&(v.current=(0,p.mountLinkInstance)(e,U,$,A,_,y)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[_,U,$,A,y]),D={ref:(0,c.useMergedRef)(B,z),onClick(r){R||"function"!=typeof S||S(r),R&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(r),!$||r.defaultPrevented||function(r,t,l,o,n,a,s){if("u">typeof window){let u,{nodeName:c}=r.currentTarget;if("A"===c.toUpperCase()&&((u=r.currentTarget.getAttribute("target"))&&"_self"!==u||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||r.nativeEvent&&2===r.nativeEvent.which)||r.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(t)){n&&(r.preventDefault(),location.replace(t));return}if(r.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);i.default.startTransition(()=>{d(l||t,n?"replace":"push",a??!0,o.current)})}}(r,U,Q,v,T,N,P)},onMouseEnter(e){R||"function"!=typeof M||M(e),R&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),$&&_&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){R||"function"!=typeof E||E(e),R&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),$&&_&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(Q)?D.href=Q:R&&!F&&("a"!==o.type||"href"in o.props)||(D.href=(0,f.addBasePath)(Q)),n=R?i.default.cloneElement(o,D):(0,a.jsx)("a",{...O,...D,children:l}),(0,a.jsx)(b.Provider,{value:s,children:n})}e.r(84508);let b=(0,i.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,i.useContext)(b);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},72515,e=>{"use strict";var r=e.i(41304);e.s(["useGetCountryByCode",0,e=>{let{countries:t}=(0,r.useGlobalContext)();return e?t.find(r=>r.code===e):null}])},18566,(e,r,t)=>{r.exports=e.r(76562)},52702,e=>{"use strict";var r=e.i(71645);function t(e=1280){let[l,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let r=window.matchMedia(`(max-width: ${e-1}px)`),t=()=>{o(window.innerWidth<e)};return r.addEventListener("change",t),o(window.innerWidth<e),()=>{r.removeEventListener("change",t)}},[e]),!!l}e.s(["useIsMobile",()=>t])},49015,e=>{"use strict";var r=e.i(43476);let t=(0,e.i(71645).forwardRef)((e,t)=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",ref:t,...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 5 7 7-7 7"})}));t.displayName="ChevronRightIcon",e.s(["ChevronRightIcon",()=>t])},59232,e=>{"use strict";var r=e.i(71645);let t=()=>{let e=new Set;document.querySelectorAll('script[type="application/ld+json"][id]').forEach(r=>{if(r.id){if(e.has(r.id)){r.setAttribute("type","application/x-ld+json-deduped"),r.setAttribute("data-structured-data-deduped","true"),r.removeAttribute("id"),r.textContent="";return}e.add(r.id)}})};e.s(["default",0,()=>((0,r.useEffect)(()=>{t();let e=new MutationObserver(()=>{t()});return e.observe(document.documentElement,{childList:!0,subtree:!0}),()=>e.disconnect()},[]),null)])},43794,(e,r,t)=>{!function(){"use strict";var t={}.hasOwnProperty;function l(){for(var e="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var n in e)t.call(e,n)&&e[n]&&(r=o(r,n));return r}(n)))}return e}function o(e,r){return r?e?e+" "+r:e+r:e}if(r.exports)l.default=l,r.exports=l;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==l&&e.v(l);else window.classNames=l}()},94909,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={default:function(){return c},getImageProps:function(){return u}};for(var o in l)Object.defineProperty(t,o,{enumerable:!0,get:l[o]});let n=e.r(55682),a=e.r(8927),i=e.r(5500),s=n._(e.r(1948));function u(e){let{props:r}=(0,a.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/schools/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(r))void 0===t&&delete r[e];return{props:r}}let c=i.Image},57688,(e,r,t)=>{r.exports=e.r(94909)},83546,e=>{"use strict";var r=e.i(43476),t=e.i(57688);e.s(["ImageWithFallback",0,({fallback:e,src:l,onError:o,alt:n,...a})=>(0,r.jsx)(t.default,{...a,src:l??e,alt:n??"School image",onError:r=>{let t=r.currentTarget;t.onerror=null,t.src=e,o&&o()}})])},46897,e=>{"use strict";let r=(0,e.i(75254).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",()=>r],46897)},62911,e=>{"use strict";let r=(0,e.i(75254).default)("briefcase-business",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);e.s(["BriefcaseBusiness",()=>r],62911)},48033,e=>{"use strict";var r=e.i(43476),t=e.i(71645),l=e.i(2499),o=e.i(99929),n=e.i(24525),a=e.i(81014),i=e.i(23362);let s=(0,e.i(42278).createTheme)({base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 placeholder-gray-500 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}}),u=(0,t.forwardRef)((e,t)=>{let u=(0,i.useThemeProvider)(),c=(0,n.useResolveTheme)([s,u.theme?.textInput,e.theme],[(0,l.get)(u.clearTheme,"textInput"),e.clearTheme],[(0,l.get)(u.applyTheme,"textInput"),e.applyTheme]),{addon:d,className:f,color:p="gray",icon:g,rightIcon:h,shadow:m,sizing:y="md",type:b="text",...v}=(0,o.resolveProps)(e,u.props?.textInput);return(0,r.jsxs)("div",{className:(0,a.twMerge)(c.base,f),children:[d&&(0,r.jsx)("span",{className:c.addon,children:d}),(0,r.jsxs)("div",{className:c.field.base,children:[g&&(0,r.jsx)("div",{className:c.field.icon.base,children:(0,r.jsx)(g,{className:c.field.icon.svg})}),h&&(0,r.jsx)("div",{"data-testid":"right-icon",className:c.field.r
1ightIcon.base,children:(0,r.jsx)(h,{className:c.field.rightIcon.svg})}),(0,r.jsx)("input",{className:(0,a.twMerge)(c.field.input.base,c.field.input.colors[p],c.field.input.sizes[y],c.field.input.withIcon[g?"on":"off"],c.field.input.withRightIcon[h?"on":"off"],c.field.input.withAddon[d?"on":"off"],c.field.input.withShadow[m?"on":"off"]),type:b,...v,ref:t})]})]})});u.displayName="TextInput",e.s(["TextInput",()=>u],48033)},21608,73440,38480,54717,e=>{"use strict";var r=e.i(43476),t=e.i(43489),l=e.i(71645),o=e.i(2499),n=e.i(99929),a=e.i(24525),i=e.i(81014),s=e.i(23362);let u=(0,l.createContext)(void 0);function c(){let e=(0,l.useContext)(u);if(!e)throw Error("useModalContext should be used within the ModalContext provider!");return e}let d=(0,e.i(42278).createTheme)({root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900/50 dark:bg-gray-900/80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ms-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center gap-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}}),f=(0,l.forwardRef)((e,c)=>{let[f,p]=(0,l.useState)(void 0),g=(0,s.useThemeProvider)(),h=(0,a.useResolveTheme)([d,g.theme?.modal,e.theme],[(0,o.get)(g.clearTheme,"modal"),e.clearTheme],[(0,o.get)(g.applyTheme,"modal"),e.applyTheme]),{children:m,className:y,dismissible:b=!1,onClose:v,popup:x,position:w="center",root:j,show:k,size:F="2xl",initialFocus:T,...C}=(0,n.resolveProps)(e,g.props?.modal),{context:N}=(0,t.useFloating)({open:k,onOpenChange:()=>v&&v()}),S=(0,t.useMergeRefs)([N.refs.setFloating,c]),M=(0,t.useClick)(N),E=(0,t.useDismiss)(N,{outsidePressEvent:"mousedown",enabled:b}),R=(0,t.useRole)(N),{getFloatingProps:P}=(0,t.useInteractions)([M,E,R]);return k?(0,r.jsx)(u.Provider,{value:{theme:e.theme,clearTheme:e.clearTheme,applyTheme:e.applyTheme,popup:x,dismissible:b,onClose:v,setHeaderId:p},children:(0,r.jsx)(t.FloatingPortal,{root:j,children:(0,r.jsx)(t.FloatingOverlay,{lockScroll:!0,"data-testid":"modal-overlay",className:(0,i.twMerge)(h.root.base,h.root.positions[w],k?h.root.show.on:h.root.show.off,y),...C,children:(0,r.jsx)(t.FloatingFocusManager,{context:N,initialFocus:T,children:(0,r.jsx)("div",{ref:S,...P(C),"aria-labelledby":f,className:(0,i.twMerge)(h.content.base,h.root.sizes[F]),children:(0,r.jsx)("div",{className:h.content.inner,children:m})})})})})}):null});f.displayName="Modal",e.s(["Modal",()=>f],21608);let p=(0,l.forwardRef)((e,t)=>{let{theme:l,clearTheme:u,applyTheme:f,popup:p}=c(),g=(0,s.useThemeProvider)(),h=(0,a.useResolveTheme)([d.body,g.theme?.modal?.body,l?.body,e.theme],[(0,o.get)(g.clearTheme,"modal.body"),(0,o.get)(u,"body"),e.clearTheme],[(0,o.get)(g.applyTheme,"modal.body"),(0,o.get)(f,"body"),e.applyTheme]),{className:m,...y}=(0,n.resolveProps)(e,g.props?.modalBody);return(0,r.jsx)("div",{ref:t,className:(0,i.twMerge)(h.base,p&&h.popup,m),...y})});p.displayName="ModalBody",e.s(["ModalBody",()=>p],73440);let g=(0,l.forwardRef)((e,t)=>{let{theme:l,clearTheme:u,applyTheme:f,popup:p}=c(),g=(0,s.useThemeProvider)(),h=(0,a.useResolveTheme)([d.footer,g.theme?.modal?.footer,l?.footer,e.theme],[(0,o.get)(g.clearTheme,"modal.footer"),(0,o.get)(u,"footer"),e.clearTheme],[(0,o.get)(g.applyTheme,"modal.footer"),(0,o.get)(f,"footer"),e.applyTheme]),{className:m,...y}=(0,n.resolveProps)(e,g.props?.modalFooter);return(0,r.jsx)("div",{ref:t,className:(0,i.twMerge)(h.base,!p&&h.popup,m),...y})});g.displayName="ModalFooter",e.s(["ModalFooter",()=>g],38480);let h=(0,l.forwardRef)((e,t)=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",ref:t,...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18
118 6M6 6l12 12"})}));h.displayName="OutlineXIcon";let m=(0,l.forwardRef)((e,t)=>{let{theme:u,clearTheme:f,applyTheme:p,popup:g,dismissible:m,onClose:y,setHeaderId:b}=c(),v=(0,s.useThemeProvider)(),x=(0,a.useResolveTheme)([d.header,v.theme?.modal?.header,u?.header,e.theme],[(0,o.get)(v.clearTheme,"modal.header"),(0,o.get)(f,"header"),e.clearTheme],[(0,o.get)(v.applyTheme,"modal.header"),(0,o.get)(p,"header"),e.applyTheme]),{as:w="h3",children:j,className:k,id:F,...T}=(0,n.resolveProps)(e,v.props?.modalHeader),C=(0,l.useId)(),N=F||C;return(0,l.useLayoutEffect)(()=>(b(N),()=>b(void 0)),[N,b]),(0,r.jsxs)("div",{ref:t,className:(0,i.twMerge)(x.base,g&&x.popup,k),...T,children:[(0,r.jsx)(w,{id:N,className:x.title,children:j}),m&&(0,r.jsx)("button",{"aria-label":"Close",className:x.close.base,type:"button",onClick:y,children:(0,r.jsx)(h,{"aria-hidden":!0,className:x.close.icon})})]})});m.displayName="ModalHeader",e.s(["ModalHeader",()=>m],54717)},88826,e=>{"use strict";class r extends Error{}r.prototype.name="InvalidTokenError";let t=".idToken";function l(){if("u"<typeof document)return null;let e=(e=>{if(!e)return null;let r=e.split(";").map(e=>e.trim()).find(e=>{let[r=""]=e.split("=");return r.startsWith("CognitoIdentityServiceProvider.")&&r.endsWith(t)||r.includes(t)});if(!r)return null;let[,...l]=r.split("=");return(e=>{try{return decodeURIComponent(e)}catch{return e}})(l.join("="))||null})(document.cookie||"");if(!e)return null;try{var l;let t=function(e,t){let l;if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});let o=+(!0!==t.header),n=e.split(".")[o];if("string"!=typeof n)throw new r(`Invalid token specified: missing part #${o+1}`);try{l=function(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw Error("base64 string is not of the correct length")}try{var t;return t=r,decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t}))}catch(e){return atob(r)}}(n)}catch(e){throw new r(`Invalid token specified: invalid base64 for part #${o+1} (${e.message})`)}try{return JSON.parse(l)}catch(e){throw new r(`Invalid token specified: invalid json for part #${o+1} (${e.message})`)}}(e);if("number"==typeof t.exp&&t.exp<=Math.floor(Date.now()/1e3))return null;let o=t.sub?.trim(),n=t.userId?.trim()||o,a=t.name?.trim(),i=t.family_name?.trim(),s=t.email?.trim();if(!o||!n||!a||!i||!s)return null;return{sub:o,userId:n,name:a,family_name:i,email:s,email_verified:(l=t.email_verified,"boolean"==typeof l?l:"string"==typeof l&&"true"===l.toLowerCase())}}catch{return null}}e.s(["getAuthUserClient",()=>l],88826)},20849,e=>{"use strict";var r=e.i(43476),t=e.i(83546);let l=({icon:e,iconAlt:l,onClick:o,active:n,disabled:a,children:i,...s})=>(0,r.jsxs)("button",{type:"button",onClick:o,disabled:a,className:`w-full h-12 font-semibold text-gray-500 transition active:scale-95 active:text-secondary-light 2 ${n?"text-secondary-light":""} disabled:opacity-50 disabled:cursor-not-allowed`,...s,children:[e&&l&&(0,r.jsx)(t.ImageWithFallback,{fallback:"",src:e,alt:l,width:16,height:16,className:"mx-auto"}),i]});e.s(["default",0,({total:e,perPage:t,currentPage:o,onChange:n,action:a})=>{let i,s=Math.ceil(e/t),u=o>1,c=o<s;return(0,r.jsxs)("div",{className:"w-full flex flex-col justify-between items-center","data-cy":"paginator",children:[(0,r.jsxs)("div",{className:"mx-auto w-full max-w-72 flex justify-center items-center",children:[(0,r.jsx)(l,{icon:"/schools/icons/angle-double-left.svg",iconAlt:"Double left icon",onClick:()=>n(1),disabled:!u,"data-cy":"paginator-first"}),(0,r.jsx)(l,{icon:"/schools/icons/angle-left.svg",iconAlt:"Left icon",onClick:()=>n(o-1),disabled:!u,"data-cy":"paginator-previous"}),(i=Math.min(s,3),o<=1?Array.from({length:i},(e,r)=>r+1):o>=s-1?Array.from({length:i},(e,r)=>s-(i-1)+r):Array.from({length:i},(e,r)=>o-1+r)).map(e=>(0,r.jsx)(l,{onClick:()=>n(e),active:e===o,children:e},e)),(0,r.jsx)(l,{icon:"/schools/icons/angle-right.svg",iconAlt:"Right icon",onClick:()=>n(o+1),disabled:!c,"data-cy":"paginator-next"}),(0,r.jsx)(l,{icon:"/schools/icons/angle-double-right.svg",iconAlt:"Double right icon",onClick:()=>n(s),disabled:!c,"data-cy":"paginator-last"})]}),(0,r.jsx)("div",{className:"ml-auto",children:a})]})}],20849)},48256,e=>{"use strict";
2let r=(0,e.i(75254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>r],48256)},22905,e=>{"use strict";var r=e.i(43476),t=e.i(71645),l=e.i(18566),o=e.i(37963);let n="SYNC_FROM_URL",a="SET_CURRENT_FILTER",i="SET_CURRENT_QUERY_FILTER",s="CLEAR_CURRENT_FILTERS",u={location:"all-countries",position:"all-positions",subject:"any-subject",level:"any-level"},c=["location","position","subject","level"],d=["featured","locality"],f={},p=(e,r)=>{switch(r.type){case n:return{activeFilters:r.payload.uriFilters,currentFilters:r.payload.uriFilters,activeQueryFilters:r.payload.queryFilters,currentQueryFilters:r.payload.queryFilters};case s:return{...e,currentFilters:u,currentQueryFilters:f};case a:return{...e,currentFilters:{...e.currentFilters,[r.payload.key]:y(r.payload.key,r.payload.value)}};case i:return{...e,currentQueryFilters:{...e.currentQueryFilters,[r.payload.key]:r.payload.value}};default:return e}},g=(0,t.createContext)(null),h=(e,r)=>{let t=e.split("/").filter(Boolean);if(t.length>=5){let[,e,r,l,o]=t;return b({location:e,position:r,subject:l,level:o})}let l=r?.uriFilters;return b({...u,...l||{}})},m=(e,r,t)=>{let l={};return r.forEach((e,r)=>{d.includes(r)&&(l[r]=e)}),{...l,...t?.queryFilters}},y=(e,r)=>r.trim()||u[e],b=e=>({location:y("location",e.location),position:y("position",e.position),subject:y("subject",e.subject),level:y("level",e.level)}),v=(e,r)=>Object.values(e).filter(e=>!(e.startsWith("all")||e.startsWith("any")||""===e)).length+Object.entries(r).filter(([e,r])=>""!==r&&"false"!==r).length,x=({children:e,pageFilterContext:y})=>{let x=(0,l.useRouter)(),w=(0,l.usePathname)(),j=(0,l.useSearchParams)(),k=JSON.stringify(y??null),F=(0,t.useMemo)(()=>{let e=h(w,y),r=m(w,j,y);return{activeFilters:e,currentFilters:e,activeQueryFilters:r,currentQueryFilters:r}},[w,j,k]),[T,C]=(0,t.useReducer)(p,F);(0,t.useEffect)(()=>{let e=h(w,y),r=m(w,j,y),t=JSON.stringify(e)!==JSON.stringify(T.activeFilters),l=JSON.stringify(r)!==JSON.stringify(T.activeQueryFilters);(t||l)&&C({type:n,payload:{uriFilters:e,queryFilters:r}})},[w,j,k,T.activeFilters,T.activeQueryFilters]);let N=(0,t.useCallback)((e,r)=>{c.includes(e)?C({type:a,payload:{key:e,value:r}}):d.includes(e)&&C({type:i,payload:{key:e,value:r}})},[]),S=(0,t.useCallback)(({uriFilters:e,queryFilters:r})=>{if(r&&e){let{location:t,position:l,subject:n,level:a}=b(e),i=`/teaching-jobs-abroad/${t}/${l}/${n}/${a}`,s=(0,o.buildQueryString)(r);x.push(`${i}${s}`);return}if(e){let{location:r,position:t,subject:l,level:n}=b(e),a=`/teaching-jobs-abroad/${r}/${t}/${l}/${n}`,i=(0,o.buildQueryString)(T.currentQueryFilters);x.push(`${a}${i}`);return}if(r){let{location:e,position:t,subject:l,level:n}=T.currentFilters,a=`/teaching-jobs-abroad/${e}/${t}/${l}/${n}`,i=(0,o.buildQueryString)(r);x.push(`${a}${i}`);return}let{location:t,position:l,subject:n,level:a}=b(T.currentFilters),i=`/teaching-jobs-abroad/${t}/${l}/${n}/${a}`,s=(0,o.buildQueryString)(T.currentQueryFilters);x.push(`${i}${s}`)},[T.currentFilters,T.currentQueryFilters,x]),M=(0,t.useCallback)(e=>{if(!e){C({type:s}),S({uriFilters:u,queryFilters:f});return}if(c.includes(e)){let r={...T.currentFilters,[e]:u[e]};C({type:a,payload:{key:e,value:u[e]}}),S({uriFilters:r});return}if(d.includes(e)){let r={...T.currentQueryFilters,[e]:""};C({type:i,payload:{key:e,value:""}}),S({queryFilters:r})}},[T.currentFilters,T.currentQueryFilters,S]),E=(0,t.useMemo)(()=>v(T.currentFilters,T.currentQueryFilters),[T.currentFilters,T.currentQueryFilters]),R=(0,t.useMemo)(()=>v(T.activeFilters,T.activeQueryFilters),[T.activeFilters,T.activeQueryFilters]),P=(0,t.useMemo)(()=>({currentFilters:T.currentFilters,activeFilters:T.activeFilters,currentQueryFilters:T.currentQueryFilters,activeQueryFilters:T.activeQueryFilters,activeFilterCount:R,filterCount:E,setFilters:N,applyFilters:S,clearFilters:M}),[T.currentFilters,T.activeFilters,T.currentQueryFilters,T.activeQueryFilters,R,E,N,S,M]);return(0,r.jsx)(g.Provider,{value:P,children:e})},w=()=>{let e=(0,t.useContext)(g);if(!e)throw Error("useFilters must be used within FiltersProvider");return e};e.s(["FiltersProvider",()=>x,"useFilters",()=>w])},95345,e=>{"use strict";var r=e.i(43476),t=e.i(71645),l=e.i(75254);let o=(0,l.default)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]),n=(0,l.default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}
2],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);var a=e.i(22905);let i=(0,l.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var s=e.i(48033);let u=({id:e,icon:l,options:o,placeholder:n,onSelect:a,minimumQueryLength:u=0,shouldFilterLocally:c=!1,value:d,onInputChange:f,defaultValue:p})=>{let g=void 0!==d,[h,m]=(0,t.useState)(!1),[y,b]=(0,t.useState)(p??""),v=(0,t.useRef)(null),x=g?d:y,w=x.toLowerCase().trim(),j=c?o.filter(e=>e.label.toLowerCase().includes(w)):o,k=e=>{g||b(e),f?.(e)};return(0,t.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.jsxs)("div",{ref:v,className:"relative w-full",children:[(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(s.TextInput,{id:`search-${e}`,type:"search",value:x,autoComplete:"off",placeholder:n,icon:l||(()=>(0,r.jsx)(i,{className:"text-black h-4 w-4"})),onFocus:()=>m(!0),onChange:e=>k(e.target.value)})}),h&&x.length>=u&&(0,r.jsx)("div",{className:"absolute z-10 w-full mt-2 text-sm text-black bg-white border border-gray-300 rounded-lg shadow-lg",children:(0,r.jsx)("ul",{className:"max-h-48 overflow-y-auto",children:j.length>0?j.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("button",{onClick:()=>{let r;k((r=e.label).trim().toLowerCase().startsWith("all")?"":r),a(e),m(!1)},className:"w-full px-4 py-2 text-left hover:bg-blue-50 focus:bg-blue-50 focus:outline-none rounded-lg transition",children:e.label})},e.label)):(0,r.jsx)("li",{className:"px-4 py-2 text-gray-500 text-center",children:"No results found"})})})]})};var c=e.i(28645),d=e.i(12222);let f=({label:e,selected:t,onClick:l})=>(0,r.jsx)(d.Button,{pill:!0,size:"xs",as:"span",onClick:l,className:"cursor-pointer",color:t?"secondary":"alternative",children:e}),p="all-positions",g=({isSelectVariant:e=!1,applyOnChange:t=!1})=>{let{categories:l}=(0,c.useJobOptions)(),{currentFilters:o,setFilters:n,applyFilters:i}=(0,a.useFilters)(),s=[{label:"All Positions",value:p},...l],d=s.find(e=>e.value===o.position)?.label??"",g=e=>{n("position",e),t&&i({uriFilters:{...o,position:e}})};return e?(0,r.jsx)(u,{id:"position",options:s,defaultValue:d.trim().toLowerCase().startsWith("all")?"":d,placeholder:"Search for a position...",onSelect:e=>{g(e.value||p)},shouldFilterLocally:!0},`position-${o.position}`):(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("span",{className:"font-medium",children:"Job Category"}),(0,r.jsx)("div",{className:"flex gap-2 flex-wrap",children:s.map(e=>(0,r.jsx)(f,{label:e.label,onClick:()=>g(e.value),selected:e.value===o.position},e.label))})]})};var h=e.i(48256),m=e.i(44370);function y(e,r){return e===r}var b=e.i(41304);let v=()=>(0,r.jsx)(h.Globe,{className:"text-black h-4 w-4"}),x="all-countries",w=()=>{var l,o,n,i;let[s,c]=(0,t.useState)(""),[d,f]=(0,t.useState)(),{countries:p}=(0,b.useGlobalContext)(),{currentQueryFilters:g,currentFilters:h,setFilters:w,applyFilters:j}=(0,a.useFilters)(),[k]=(l=(0,t.useRef)(s),o=(0,t.useState)({})[1],n=function(r,l,o,n){var a=this,i=(0,t.useRef)(null),s=(0,t.useRef)(0),u=(0,t.useRef)(0),c=(0,t.useRef)(null),d=(0,t.useRef)([]),f=(0,t.useRef)(),p=(0,t.useRef)(),g=(0,t.useRef)(r),h=(0,t.useRef)(!0),m=(0,t.useRef)(),y=(0,t.useRef)();g.current=r;var b="u">typeof window,v=!l&&0!==l&&b;if("function"!=typeof r)throw TypeError("Expected a function");l=+l||0;var x=!!(o=o||{}).leading,w=!("trailing"in o)||!!o.trailing,j=!!o.flushOnExit&&w,k="maxWait"in o,F="debounceOnServer"in o&&!!o.debounceOnServer,T=k?Math.max(+o.maxWait||0,l):null,C=(0,t.useMemo)(function(){var r=function(e){var r=d.current,t=f.current;return d.current=f.current=null,s.current=e,u.current=u.current||e,p.current=g.current.apply(t,r)},t=function(e,r){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,r)},o=function(e){if(!h.current)return!1;var r=e-i.current;return!i.current||r>=l||r<0||k&&e-s.current>=T},C=function(e){return c.current=null,w&&d.current?r(e):(d.current=f.current=null,p.current)},N=function e(){var r=Date.now();if(x&&u.current===s.current&&S(),o(r))return C(r);if(h.current){var n=l-(r-i.current);t(e,k?Math.min(n,T-(r-s.current)):n)}},S=function(){n&&n({})},M=function(){if(b||F){var n,u=Date.now(),g=o(u);if(d.current=[].slice.call(arguments),f.current=a,i.current=u,j&&!m.current&&(m.current=function(){var r;"hidden"===(null==(r=e.g.document)?void 0:r.visibilityState)&&y.current.flush()},null==(n=e.g.document)||null==n.addEventListener||n.addEventListener("visibilitychange",m.current)),g){if(!c.current&&h.current)return s.current=i.current,t(N,l),x?r(i.current):p.current;if(k)return t(N,l),r(i.current)}return c.current||t(N,l),p.current}};return M.cancel=function(){var e=c.current;e&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,d.current=i.current=f.current=c.current=null,e&&n&&n({})},M.isPending=function(){return!!c.current},M.flush=function(){return c.current?C(Date.now()):p.current},M},[x,k,l,T,w,j,v,b,F,n]);return y.current=C,(0,t.useEffect)(function(){return h.current=!0,function(){var r;j&&y.current.flush(),m.current&&(null==(r=e.g.document)||null==r.removeEventListener||r.removeEventListener("visibilitychange",m.current),m.current=null),h.current=!1}},[j]),C}((0,t.useCallback)(function(e){l.current=e,o({})},[o]),300,void 0,o),y((i=(0,t.useRef)(s)).current,s)||(n(s),i.current=s),[l.current,n]),F=m.trpc.useUtils(),T=(0,t.useMemo)(()=>p.filter(e=>!!e.slug).map(e=>({label:e.name,value:e.slug??""})),[p]),C=(0,t.useMemo)(()=>[{label:"All Locations",value:x},{label:"Online Teaching Jobs",value:"online"},...T],[T]),N=(0,t.useMemo)(()=>C.find(e=>e.value===h.location),[C,h.location]),S=(0,t.useMemo)(()=>new Set(C.map(e=>e.value)),[C]),M=s.toLowerCase().trim(),E=(0,t.useMemo)(()=>C.filter(e=>e.label.toLowerCase().startsWith(M)),[C,M]),R=M.length>0&&0===E.length,P=m.trpc.googleLocation.autocomplete.useQuery({query:R?k:"",sessionToken:d},{enabled:R&&k.length>=3&&!!d}),L=R?P.data??[]:E,I=e=>({location:e||h.location||x,position:h.position||"all-positions",subject:h.subject||"any-subject",level:h.level||"any-level"}
2),O=async e=>{let r,t,l,o,n=await F.googleLocation.placeDetails.fetch({placeId:e.place_id,label:e.label,sessionToken:d});f(void 0),e.label,r=n.city_name?.trim()||n.label.trim(),t=n.country_code?.trim().toUpperCase(),l=p.find(e=>e.code?.trim().toUpperCase()===t||String(e.id).trim().toUpperCase()===t)?.slug??x,o={...g,locality:r},w("location",l),w("locality",r),j({uriFilters:I(l),queryFilters:o})},$=(0,t.useMemo)(()=>{if(g.locality){let e=p.find(e=>e.slug===h.location)?.name?.trim();return[g.locality,e].filter(Boolean).join(", ")}return N?.label??""},[p,h.location,g.locality,N?.label]);return(0,t.useEffect)(()=>{c($.trim().toLowerCase().startsWith("all")?"":$)},[$]),(0,t.useEffect)(()=>{R?k.length>=3&&!d&&f(crypto.randomUUID()):f(void 0)},[k.length,d,R]),(0,r.jsx)(u,{id:"location-filter",value:s,icon:v,options:L,onSelect:e=>{if(S.has(e.value)){let r,t;return void(r=e.value||x,t={...g,locality:""},w("location",r),w("locality",""),f(void 0),j({uriFilters:I(r),queryFilters:t}))}"place_id"in e&&O(e)},onInputChange:e=>{c(e),""===e&&(w("location",""),w("locality",""),f(void 0))},placeholder:"Search for a country or city..."},`location-filter-${h.location}-${g.locality??""}`)};var j=e.i(44871),k=e.i(21608),F=e.i(73440),T=e.i(38480),C=e.i(54717),N=e.i(2499),S=e.i(99929),M=e.i(24525),E=e.i(81014),R=e.i(23362);let P=(0,e.i(42278).createTheme)({root:{base:"group flex rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ms-3 mt-0.5 text-start text-sm font-medium text-gray-900 dark:text-gray-300",input:"sr-only"},toggle:{base:"relative rounded-full after:absolute after:rounded-full after:border after:bg-white after:transition-all group-focus:ring-4",checked:{on:"after:translate-x-full after:border-transparent rtl:after:-translate-x-full",off:"bg-gray-200 after:border-gray-300 dark:bg-gray-700",color:{default:"bg-primary-700 group-focus:ring-primary-300 dark:group-focus:ring-primary-800",blue:"bg-blue-700 group-focus:ring-blue-300 dark:group-focus:ring-blue-800",dark:"bg-gray-700 group-focus:ring-gray-300 dark:group-focus:ring-gray-800",failure:"bg-red-700 group-focus:ring-red-300 dark:group-focus:ring-red-800",gray:"bg-gray-500 group-focus:ring-gray-300 dark:group-focus:ring-gray-800",green:"bg-green-600 group-focus:ring-green-300 dark:group-focus:ring-green-800",light:"bg-gray-300 group-focus:ring-gray-300 dark:group-focus:ring-gray-800",red:"bg-red-700 group-focus:ring-red-300 dark:group-focus:ring-red-800",purple:"bg-purple-700 group-focus:ring-purple-300 dark:group-focus:ring-purple-800",success:"bg-green-500 group-focus:ring-green-300 dark:group-focus:ring-green-800",yellow:"bg-yellow-400 group-focus:ring-yellow-300 dark:group-focus:ring-yellow-800",warning:"bg-yellow-600 group-focus:ring-yellow-300 dark:group-focus:ring-yellow-800",cyan:"bg-cyan-500 group-focus:ring-cyan-300 dark:group-focus:ring-cyan-800",lime:"bg-lime-400 group-focus:ring-lime-300 dark:group-focus:ring-lime-800",indigo:"bg-indigo-400 group-focus:ring-indigo-300 dark:group-focus:ring-indigo-800",teal:"bg-teal-400 group-focus:ring-teal-300 dark:group-focus:ring-teal-800",info:"bg-cyan-600 group-focus:ring-cyan-300 dark:group-focus:ring-cyan-800",pink:"bg-pink-600 group-focus:ring-pink-300 dark:group-focus:ring-pink-800"}},sizes:{sm:"h-5 w-9 min-w-9 after:left-0.5 after:top-0.5 after:h-4 after:w-4 rtl:after:right-0.5",md:"h-6 w-11 min-w-11 after:left-0.5 after:top-0.5 after:h-5 after:w-5 rtl:after:right-0.5",lg:"h-7 w-[52px] min-w-[52px] after:left-0.5 after:top-0.5 after:h-6 after:w-6 rtl:after:right-0.5"}}}),L=(0,t.forwardRef)((e,l)=>{let o=(0,t.useId)(),n=(0,R.useThemeProvider)(),a=(0,M.useResolveTheme)([P,n.theme?.toggleSwitch,e.theme],[(0,N.get)(n.clearTheme,"toggleSwitch"),e.clearTheme],[(0,N.get)(n.applyTheme,"toggleSwitch"),e.applyTheme]),{checked:i,className:s,color:u="default",sizing:c="md",disabled:d,label:f,name:p,onChange:g,...h}=(0,S.resolveProps)(e,n.props?.toggleSwitch);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{ref:l,checked:i,name:p,type:"checkbox",className:a.root.input,readOnly:!0,hidden:!0}),(0,r.jsxs)("button",{"aria-checked":i,"aria-labelledby":`${o}-flowbite-toggleswitch-label`,disabled:d,id:`${o}-flowbite-toggleswitch`,onClick:function(){g(!i)},onKeyDown:function(e){"Enter"==e.code&&e.preventDefault()},role:"switch",tabIndex:0,type:"button",className:(0,E.twMerge)(a.root.base,a.root.active[d?"off":"on"],s),...h,children:[(0,r.jsx)("div",{"data-testid":"flowbite-toggleswitch-toggle",className:(0,E.twMerge)(a.toggle.base,a.toggle.checked.color[u],a.toggle.checked[i?"on":"off"],a.toggle.sizes[c])}),!!f?.length&&(0,r.jsx)("span",{"data-testid":"flowbite-toggleswitch-label",id:`${o}-flowbite-toggleswitch-label`,className:a.root.label,children:f})]})]})});L.displayName="ToggleSwitch";var I=e.i(18566);let O=()=>{let{setFilters:e}=(0,a.useFilters)(),l=(0,I.useSearchParams)().get("featured"),[o,n]=(0,t.useState)("true"===l);return(0,t.useEffect)(()=>n("true"===l),[l]),(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("span",{className:"font-medium",children:"Featured Jobs"}),(0,r.jsx)(L,{checked:o,onChange:r=>{n(r),e("featured",String(r))}})]})},$=[{label:"All Levels",value:"any-level"},{label:"Early Childhood Level",value:"early-childhood"},{label:"Elementary Level",value:"elementary"},{label:"Middle School Level",value:"middle-school"},{label:"High School Level",value:"high-school"},{label:"University Level",value:"university"}],_=()=>{let{currentFilters:e,setFilters:l}=(0,a.useFilters)(),[o,n]=(0,t.useState)(e?.level);return(0,t.useEffect)(()=>n(e?.level),[e?.level]),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("span",{className:"font-medium",children:"Grade Levels"}),(0,r.jsx)("div",{className:"flex gap-2 flex-wrap",children:$.map(e=>(0,r.jsx)(f,{label:e.label,selected:e.value===o,onClick:()=>{var r;n(r=e.value),l("level",r)}},e.label))})]})},A=()=>{let{subjects:e}=(0,c.useJobOptions)(),{currentFilters:t,setFilters:l}=(0,a.useFilters)(),o=[{label:"All Subjects",value:"any-subject"},...e.filter(e=>!e.label.trim().toLowerCase().startsWith("all subjects"))],n=o.find(e=>e.value===t.subject)?.label??"";return(0,r.jsxs)("div",{className:"relative flex flex-col gap-3",children:[(0,r.jsx)("span",{className:"font-medium",children:"Subjects"}),(0,r.jsx)(u,{id:"subject",options:o,placeholder:"Search Subjects...",defaultValue:n.trim().toLowerCase().startsWith("all")?"":n,onSelect:e=>{l("subject",e.value)},shouldFilterLocally:!0},`subject-${t.subject}`)]})},U=({openModal:e,onClose:t})=>{let{filterCount:l,clearFilters:n}=(0,a.useFilters)();return(0,r.jsxs)(k.Modal,{dismissible:!0,show:e,onClose:t,children:[(0,r.jsx)(C.ModalHeader,{children:"Filters"}),(0,r.jsx)(F.ModalBody,{children:(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)(O,{}),(0,r.jsx)(A,{}),(0,r.jsx)(g,{}),(0,r.jsx)(_,{})]})}),(0,r.jsxs)(T.ModalFooter,{children:[(0,r.jsx)(d.Button,{fullSized:!0,outline:!0,onClick:()=>n(),children:"Reset"}),(0,r.jsxs)(d.Button,{color:"secondary",fullSized:!0,onClick:t,children:[0!==l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Badge,{color:"success",className:"ms-2 rounded-full px-2",children:l}),(0,r.jsx)(o,{})]}):null," ","Apply"]})]})]})},Q=()=>(0,r.jsx)(n,{className:"fill-inherit h-4 w-4 mr-2"});function z({children:e}){let[l,n]=(0,t.useState)(!1),{filterCount:i,applyFilters:s}=(0,a.useFilters)();return(0,r.jsxs)("div",{className:"flex flex-col gap-6 font-bold text-white",children:[(0,r.jsxs)("div",{className:"font-medium text-3xl md:text-4xl flex flex-col md:flex-row gap-3 md:gap-4 items-center",children:[(0,r.jsx)(w,{}),(0,r.jsx)(g,{isSelectVariant:!0,applyOnChange:!0}),(0,r.jsx)("div",{className:"flex gap-4 w-full md:max-w-52",children:(0,r.jsxs)(d.Button,{size:"lg",fullSized:!0,color:"secondary",className:"text-nowrap",onClick:()=>n(!0),children:[0!==i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Badge,{color:"success",className:"ms-2 rounded-full px-2",children:i}),(0,r.jsx)(o,{})]}):null,(0,r.jsx)(Q,{}),"More Filters"]})})]}
2),e,(0,r.jsx)(U,{openModal:l,onClose:()=>{n(!1),s({})}})]})}e.s(["default",()=>z],95345)}]);
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.