vendor: 5,012 bytes, lines 1-2
1/*! For license information please see 3331.4ffc3c57.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[3331,7380],{47393:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new N(r||[]);return a(i,"_invoke",{value:E(e,n,l)}),i}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p={};function f(){}function h(){}function g(){}var y={};u(y,l,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(_([])));b&&b!==t&&n.call(b,l)&&(y=b);var w=g.prototype=f.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function o(a,i,l,c){var s=m(e[a],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==r(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}var i;a(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return V()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=S(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=m(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=m(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function _(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:V}}function V(){return{value:void 0,done:!0}}return h.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:h,configurable:!0}),h.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(d(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(w),u(w,s,"Generator"),u(w,l,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=_,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}n.d(t,{De:()=>f,VK:()=>h,aU:()=>g,ob:()=>p,qd:()=>c,wA:()=>u});var i=null,l=null;function c(e,t){i=e,t&&(l=t)}function s(){if("undefined"==typeof localStorage)return"ssr_anonymous";var e=localStorage.getItem("meilisearch_user_id");e||(e="user_"+Date.now()+"_"+Math.random().toString(36).substr(2,9),localStorage.setItem("meilisearch_user_id",e));try{var t,n,r,o=(null===(t=window.Inertia)||void 0===t?void 0:t.page)||{},a=null==o||null===(n=o.props)||void 0===n||null===(r=n.auth)||void 0===r?void 0:r.user;a&&a.id&&(e="user_"+a.id)}catch(e){}return e}function u(){return s()}function d(e){return m.apply(this,arguments)}function m(){var e;return e=o().mark((function e(t){var n,r,a,c,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s(),r=i,a=l,n&&r&&a){e.next=6;break}return("localhost"===window.location.hostname||window.location.search.includes("debug"))&&console.log("[Meilisearch Analytics] Skipping event (not yet initialized)",{eventType:t.eventType,hasUserId:!!n,hasApiKey:!!r,hasHost:!!a}),e.abrupt("return");case 6:return c={eventType:t.eventType,eventName:t.eventName||("click"===t.eventType?"Search Result Clicked":"Conversion"),indexUid:t.indexUid,userId:n,objectId:t.objectId},t.objectName&&(c.objectName=t.objectName),void 0!==t.position&&null!==t.position&&(c.position=t.position),t.queryUid&&(c.queryUid=t.queryUid),e.prev=10,u="".concat(a.replace(/\/$/,""),"/events"),e.next=14,fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r),"X-MS-USER-ID":n},body:JSON.stringify(c)});case 14:(d=e.sent).ok?console.log("[Meilisearch Analytics] Event sent successfully:",t.eventType,t.eventName):console.warn("[Meilisearch Analytics] Event failed:",d.status,d.statusText),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),console.warn("[Meilisearch Analytics] Failed to send event:",e.t0);case 21:case"end":return e.stop()}}),e,null,[[10,18]])})),m=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function l(e){a(i,r,o,l,c,"next",e)}function c(e){a(i,r,o,l,c,"throw",e)}l(void 0)}))}
2,m.apply(this,arguments)}function p(e){d({eventType:"click",eventName:"Search Result Clicked",indexUid:e.indexUid,objectId:e.objectId,objectName:e.objectName,position:e.position,queryUid:e.queryUid})}function f(e){var t=e.indexUid,n=e.objectId,r=e.objectName,o=e.eventName,a=e.queryUid;a||(a=new URLSearchParams(window.location.search).get("queryUid"));d({eventType:"conversion",eventName:o||"Conversion",indexUid:t,objectId:n,objectName:r,queryUid:a})}function h(){return new URLSearchParams(window.location.search).get("queryUid")}function g(){try{var e,t,n,r=(null===(e=window.Inertia)||void 0===e?void 0:e.page)||{},o=(null==r||null===(t=r.props)||void 0===t||null===(n=t.integrations)||void 0===n?void 0:n.meilisearch)||{},a=window.location.pathname;return a.includes("/lesson-plans/")||a.includes("/external-resources/")?o.teachingMaterialsIndex||"teaching_materials":a.includes("/teacher-guides/")?o.teacherGuidesIndex||"teacher_guides":a.includes("/climate-change-explainers/")?o.climateExplainersIndex||"climate_explainers":a.includes("/professional-development/")?o.pdIndex||"professional_development":a.includes("/news/")?o.newsIndex||"news":null}catch(e){return null}}},91440:(e,t,n)=>{function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=e.tenantId,n=e.index,r=e.source,o=void 0===r?"single":r;t&&n&&fetch("/api/track-ms-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tenant_id:t,index:n,source:o})}).catch((function(){}))}function i(e){var t=e.tenantId,n=e.indexes;if(t&&null!=n&&n.length){var o,i=r(n);try{for(i.s();!(o=i.n()).done;){a({tenantId:t,index:o.value,source:"multi"})}}catch(e){i.e(e)}finally{i.f()}}}n.d(t,{j:()=>a,p:()=>i})},64561:(e,t,n)=>{n.d(t,{Z:()=>r});const r={props:{topPadding:{type:Number,default:50},bottomPadding:{type:Number,default:50},mobileTopPadding:{type:Number,default:30},mobileBottomPadding:{type:Number,default:30}},data:function(){var e,t,n;return{isMobile:"undefined"!=typeof window?window.innerWidth<1024:null!==(e=null===(t=this.$page)||void 0===t||null===(n=t.props)||void 0===n?void 0:n.isMobileUA)&&void 0!==e&&e}},mounted:function(){window.addEventListener("resize",this.handleResize)},beforeUnmount:function(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.isMobile=window.innerWidth<1024}},computed:{computedPaddingStyle:function(){return{paddingTop:"".concat(this.isMobile?this.mobileTopPadding:this.topPadding,"px"),paddingBottom:"".concat(this.isMobile?this.mobileBottomPadding:this.bottomPadding,"px")}}}}},57694:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-fade-enter-active[data-v-de324c16],.slide-fade-leave-active[data-v-de324c16]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-de324c16],.slide-fade-leave-to[data-v-de324c16]{opacity:0;transform:translateX(100%)}",""]);const a=o},98209:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-fade-enter-active[data-v-5ba3edf7],.slide-fade-leave-active[data-v-5ba3edf7]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-5ba3edf7],.slide-fade-leave-to[data-v-5ba3edf7]{opacity:0;transform:translateX(100%)}",""]);const a=o},71644:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));
2o.push([e.id,".slide-down-enter-active[data-v-265fda74],.slide-down-leave-active[data-v-265fda74]{transition:all .3s ease-in-out}.slide-down-enter-from[data-v-265fda74],.slide-down-leave-to[data-v-265fda74]{opacity:0;transform:translateY(-100%)}",""]);const a=o},2364:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"body.modal-open{position:fixed;width:100%}@keyframes blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}input::placeholder{opacity:.7}",""]);const a=o},54210:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'.cookie-consent-banner[data-v-65f8774e]{align-items:flex-end;bottom:0;contain:layout style paint;display:flex;left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;will-change:transform,opacity;z-index:9999}.cookie-consent-banner--visible[data-v-65f8774e]{opacity:1;pointer-events:none;visibility:visible}.cookie-consent-banner__content[data-v-65f8774e]{background:#fff;border-radius:10px;border-top:1px solid #e5e7eb;box-shadow:0 -4px 6px -1px #0000001a,0 10px 25px -5px #0003,0 4px 10px -3px #00000026;contain:layout style paint;padding:13px 16px 13px 15px;pointer-events:auto;position:relative;transform:translate3d(0,100%,0);transition:transform .3s ease;width:342px;will-change:transform;z-index:9999}.cookie-consent-banner--visible .cookie-consent-banner__content[data-v-65f8774e]{transform:translateZ(0)}.cookie-consent-banner__header[data-v-65f8774e]{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.cookie-consent-banner__title[data-v-65f8774e]{color:#000;font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.cookie-consent-banner__close[data-v-65f8774e]{align-items:center;background:none;border:none;color:#6b7280;cursor:pointer;display:flex;font-size:1.5rem;height:2rem;justify-content:center;line-height:1;padding:0;transition:color .2s;width:2rem}.cookie-consent-banner__close[data-v-65f8774e]:hover{color:#111827}.cookie-consent-banner__body[data-v-65f8774e]{margin-bottom:1.5rem}.cookie-consent-banner__description[data-v-65f8774e]{color:#000;margin-bottom:7px}.cookie-consent-banner__description[data-v-65f8774e],.cookie-consent-banner__link[data-v-65f8774e]{font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.cookie-consent-banner__link[data-v-65f8774e]{color:#556fa4;cursor:pointer}.cookie-consent-banner__link[data-v-65f8774e]:hover{color:#2563eb}.cookie-consent-banner__options[data-v-65f8774e]{display:flex;flex-direction:column;gap:1rem}.cookie-consent-banner__option[data-v-65f8774e]{background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem;padding:1rem}.cookie-consent-banner__toggle[data-v-65f8774e]{align-items:flex-start;cursor:pointer;display:flex;gap:1rem}.cookie-consent-banner__toggle input[type=checkbox][data-v-65f8774e]{display:none}.cookie-consent-banner__toggle-slider[data-v-65f8774e]{background:#d1d5db;border-radius:9999px;flex-shrink:0;height:1.5rem;margin-top:.125rem;position:relative;transition:background .2s;width:3rem}.cookie-consent-banner__toggle-slider[data-v-65f8774e]:before{background:#fff;border-radius:50%;box-shadow:0 1px 3px #0000001a;content:"";height:1.25rem;left:.125rem;position:absolute;top:.125rem;transition:transform .2s;width:1.25rem}.cookie-consent-banner__toggle input[type=checkbox]:checked+.cookie-consent-banner__toggle-slider[data-v-65f8774e]{background:#3b82f6}.cookie-consent-banner__toggle input[type=checkbox]:checked+.cookie-consent-banner__toggle-slider[data-v-65f8774e]:before{transform:translateX(1.5rem)}.cookie-consent-banner__toggle-label[data-v-65f8774e]{display:flex;flex:1;flex-direction:column;gap:.25rem}.cookie-consent-banner__toggle-label strong[data-v-65f8774e]{color:#111827;font-size:12px;font-weight:600}.cookie-consent-banner__toggle-label small[data-v-65f8774e]{color:#6b7280;font-size:10px}.cookie-consent-banner__actions[data-v-65f8774e]{display:flex;gap:1rem;justify-content:flex-start}.cookie-consent-banner__button[data-v-65f8774e]{font-feature-settings:"liga" off,"clig" off;border:none;cursor:pointer;font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal;padding:.5rem 1rem;transition:all .2s}.cookie-consent-banner__button--pill[data-v-65f8774e]{background:#eef1f6;border-radius:15px;color:#000}.cookie-consent-banner__button--pill[data-v-65f8774e]:hover{background:#d5d9e2;box-shadow:0 2px 4px #0000001a}@media (min-width:768px){.cookie-consent-banner__content[data-v-65f8774e]{border-radius:.5rem;margin:0 0 1.5rem 1.5rem;max-width:28rem}}',""]);const a=o},43824:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));
2o.push([e.id,".slide-fade-enter-active[data-v-575b1bfa]{transition:all .2s ease-out}.slide-fade-leave-active[data-v-575b1bfa]{transition:all .15s ease-in}.slide-fade-enter-from[data-v-575b1bfa]{opacity:0;transform:translateY(10px)}.slide-fade-leave-to[data-v-575b1bfa]{opacity:0;transform:translateY(-10px)}",""]);const a=o},19394:(e,t,n)=>{n.d(t,{Z:()=>Io});var r=n(41916),o={class:"font-outfit"};var a=n(87879);function i(e){return function(e){if(Array.isArray(e))return l(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 l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={class:"grid grid-cols-6 items-center justify-between py-5 px-4 lg:px-0 shadow-sm lg:shadow-none bg-white"},s={class:"flex"},u={class:"flex items-center justify-center col-span-3"},d={class:"flex space-x-1 items-center justify-end col-span-2"},m={key:1,href:"https://subjecttoclimate.org/",class:"w-[115px] hidden lg:block px-2"};var p={class:"hidden lg:flex items-center"};function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g={class:"relative mx-4"},y={class:"inline-block whitespace-nowrap"},v={key:0},b={key:0,class:"md:w-96 bg-white absolute md:top-10 w-full md:left-1/2 transform -translate-x-1/2 z-50 rounded-xl shadow p-3"};var w=["href","target"],x={class:"px-3 py-3 rounded-xl hover:bg-menu-200 duration-75 text-lg hover:text-contrast-200 flex flex-col group"},k={class:"text-base font-semibold"},E={class:"text-base text-[#3f3f3f] group-hover:text-contrast-200"};const S={props:{menu:Object}};var B=n(83744);const C={components:{DropDownMenuItem:(0,B.Z)(S,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.menu.url,target:n.menu.is_new_tab?"_blank":null},[(0,r.createElementVNode)("span",x,[(0,r.createElementVNode)("span",k,(0,r.toDisplayString)(n.menu.title),1),(0,r.createElementVNode)("span",E,(0,r.toDisplayString)(n.menu.subtitle),1)])],8,w)}]])},data:function(){return{}},props:{menu:Object,expanded:Boolean},computed:{hasChildren:function(){return this.menu.children&&this.menu.children.length},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}}},N={components:{DropDownMenu:(0,B.Z)(C,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("DropDownMenuItem");return(0,r.openBlock)(),(0,r.createElementBlock)("div",g,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(i.hasChildren?"button":"a"),{href:n.menu.url,onClick:t[0]||(t[0]=function(e){return i.expanded=!i.expanded}),class:"",target:n.menu.is_new_tab?"_blank":null},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["flex items-center space-x-1 ",i.expanded?"font-semibold":""])},[(0,r.createElementVNode)("span",y,(0,r.toDisplayString)(n.menu.title),
21),i.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:(0,r.normalizeClass)(["w-6 h-6 duration-150",i.expanded?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},f(t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M480 711 240 471l56-56 184 184 184-184 56 56-240 240Z"},null,-1)])),2))])):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["w-full h-1 rounded-full mt-1",i.expanded?"bg-menu-500":"bg-neutral-100"])},null,2)]})),_:1},8,["href","target"])),i.expanded&&n.menu.children.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.menu.children,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e},null,8,["menu"])})),128))])):(0,r.createCommentVNode)("",!0)])}]])},props:{expandedMenuId:String|Number},computed:{menus:function(){return(0,a.qt)().props.header.menus},_expandedMenuId:{get:function(){return this.expandedMenuId},set:function(e){this.$emit("update:expandedMenuId",e)}}},data:function(){return{}}},_=(0,B.Z)(N,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("DropDownMenu");return(0,r.openBlock)(),(0,r.createElementBlock)("div",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e,onExpanded:function(t){return i._expandedMenuId=e.id},onCollapsed:t[0]||(t[0]=function(e){return i._expandedMenuId=null}),expanded:i._expandedMenuId===e.id},null,8,["menu","onExpanded","expanded"])})),128))])}]]);function V(e){return function(e){if(Array.isArray(e))return I(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 I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T={class:"flex items-center space-x-4"},A={key:0,class:"lg:hidden"},M={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-white z-50 lg:hidden"},L={class:""},D={class:"w-full flex justify-between p-4"},P={class:"flex items-center space-x-2"},F={class:"relative"},j={class:"mt-6"},O={class:"mt-6 space-y-4"};function R(e){return function(e){if(Array.isArray(e))return U(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 U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(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 U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H={class:(0,r.normalizeClass)(["flex items-center justify-between w-full space-x-1"])},z={class:"font-semibold"},G={key:0},Z={class:(0,r.normalizeClass)(["w-6 h-6 duration-150"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},q={key:0,class:(0,r.normalizeClass)(["absolute top-0 left-0 w-full h-screen z-20 bg-white p-4"])},K={class:"mt-8"};var $=["href","target"],W={class:"px-4 py-2 rounded hover:bg-gray-100 duration-75 text-lg flex flex-col"},Y={class:"text-base font-semibold"},J={class:"text-base text-[#3f3f3f]"};const X={props:{menu:Object}},Q={components:{DropDownMenuItem:(0,B.Z)(X,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.menu.url,target:n.menu.is_new_tab?"_blank":null,class:"block"},[(0,r.createElementVNode)("span",W,[(0,r.createElementVNode)("span",Y,(0,r.toDisplayString)(n.menu.title),
21),(0,r.createElementVNode)("span",J,(0,r.toDisplayString)(n.menu.subtitle),1)])],8,$)}]])},data:function(){return{}},props:{menu:Object,expanded:Boolean},computed:{hasChildren:function(){return this.menu.children&&this.menu.children.length},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}}};var ee=n(93379),te=n.n(ee),ne=n(98209),re={insert:"head",singleton:!1};te()(ne.Z,re);ne.Z.locals;const oe=(0,B.Z)(Q,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("DropDownMenuItem");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["px-6",(i.expanded,"")])},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(i.hasChildren?"button":"a"),{href:n.menu.url,onClick:t[0]||(t[0]=function(e){return i.expanded=!0}),class:"block w-full p-3 border-b"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",H,[(0,r.createElementVNode)("span",z,(0,r.toDisplayString)(n.menu.title),1),i.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",G,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",Z,R(t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"m376 816-56-56 184-184-184-184 56-56 240 240-240 240Z"},null,-1)]))))])):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["href"])),(0,r.createVNode)(r.Transition,{name:"slide-fade"},{default:(0,r.withCtx)((function(){return[i.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",q,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return i.expanded=!1}),class:"flex items-center space-x-2"},R(t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"M560 816 320 576l240-240 56 56-184 184 184 184-56 56Z"})],-1),(0,r.createElementVNode)("span",null,"Back",-1)]))),(0,r.createElementVNode)("div",K,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.menu.children,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e},null,8,["menu"])})),128))])])):(0,r.createCommentVNode)("",!0)]})),_:1})],2)}],["__scopeId","data-v-5ba3edf7"]]);var ae={href:"/",class:"h-10 block"},ie=["src"];const le={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},ce=(0,B.Z)(le,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",ae,[(0,r.createElementVNode)("img",{class:"h-full w-auto",height:"40",src:i.url,alt:""},null,8,ie)])])}]]);function se(e){return function(e){if(Array.isArray(e))return ue(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 ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(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 ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var de={class:"px-8"},me={key:0,class:"w-full"},pe={key:0,class:(0,r.normalizeClass)(["absolute top-0 left-0 w-full h-screen z-20 bg-white p-4"])},fe={class:"mt-8"},he=["href"],ge=["href"],ye=["href"],ve={key:1,class:"space-y-2"},be=["href"],we=["href"];const xe={props:{expanded:Boolean},data:function(){return{}},computed:{user:function(){return(0,a.qt)().props.auth.user},settings:function(){return(0,a.qt)().props.settings}},methods:{toggleExpanded:function(){this.$emit(this.expanded?"collapsed":"expanded",!0)}}};var ke=n(57694),Ee={insert:"head",singleton:!1};te()(ke.Z,Ee);ke.Z.locals;const Se=(0,B.Z)(xe,[["render",function(e,t,n,o,a,i){var l,c,s,u,d,m,p,f,h,g,y,v,b,w,x,k,E,S,B,C,N,_,V,I;return(0,r.openBlock)(),(0,r.createElementBlock)("div",de,[i.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",me,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return i.toggleExpanded&&i.toggleExpanded.apply(i,arguments)}),class:"flex items-center space-x-2 p-2 rounded shadow w-full justify-center",style:(0,r.normalizeStyle)({backgroundColor:(null===(l=i.settings)||void 0===l||null===(c=l.theme)||void 0===c||null===(s=c.colors)||void 0===s||null===(u=s["account-dropdown-background"])||void 0===u?void 0:u[500])||"#333333",color:(null===(d=i.settings)||void 0===d||null===(m=d.theme)||void 0===m||null===(p=m.colors)||void 0===p||null===(f=p["account-dropdown-foreground"])||void 0===f?void 0:f[500])||"#FFFFFF"})},se(t[2]||(t[2]=[(0,r.createElementVNode)("span",{class:"font-semibold"},"My Account",-1)])),4),(0,r.createVNode)(r.Transition,{name:"slide-fade"},{default:(0,r.withCtx)((function(){return[n.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",pe,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(){return i.toggleExpanded&&i.toggleExpanded.apply(i,arguments)}),class:"flex items-center space-x-2"},se(t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"M560 816 320 576l240-240 56 56-184 184 184 184-56 56Z"})],-1),(0,r.createElementVNode)("span",null,"Back",-1)]))),(0,r.createElementVNode)("div",fe,[(0,r.createElementVNode)("a",{href:e.route("account"),class:"block"},se(t[4]||(t[4]=[(0,r.createElementVNode)("span",{class:"px-4 py-2 rounded hover:bg-gray-100 font-semibold duration-75 text-lg"}," My profile",-1)])),8,he),(0,r.createElementVNode)("a",{href:e.route("library"),class:"block"}
2,se(t[5]||(t[5]=[(0,r.createElementVNode)("span",{class:"px-4 py-2 rounded hover:bg-gray-100 font-semibold duration-75 text-lg"}," My Library",-1)])),8,ge),(0,r.createElementVNode)("a",{href:e.route("logout"),class:"block"},se(t[6]||(t[6]=[(0,r.createElementVNode)("span",{class:"px-4 py-2 rounded hover:bg-gray-100 font-semibold duration-75 text-lg"}," Logout",-1)])),8,ye)])])):(0,r.createCommentVNode)("",!0)]})),_:1})])):((0,r.openBlock)(),(0,r.createElementBlock)("div",ve,[(0,r.createElementVNode)("a",{href:e.route("login"),class:"font-semibold flex justify-center items-center border px-4 py-2 rounded",style:(0,r.normalizeStyle)({borderColor:(null===(h=i.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(y=g.colors)||void 0===y||null===(v=y["account-dropdown-background"])||void 0===v?void 0:v[500])||"#333333",color:(null===(b=i.settings)||void 0===b||null===(w=b.theme)||void 0===w||null===(x=w.colors)||void 0===x||null===(k=x["account-dropdown-background"])||void 0===k?void 0:k[500])||"#333333"})},"Login",12,be),(0,r.createElementVNode)("a",{href:e.route("register"),class:"flex justify-center items-center px-4 py-2 rounded font-semibold shadow",style:(0,r.normalizeStyle)({backgroundColor:(null===(E=i.settings)||void 0===E||null===(S=E.theme)||void 0===S||null===(B=S.colors)||void 0===B||null===(C=B["account-dropdown-background"])||void 0===C?void 0:C[500])||"#333333",color:(null===(N=i.settings)||void 0===N||null===(_=N.theme)||void 0===_||null===(V=_.colors)||void 0===V||null===(I=V["account-dropdown-foreground"])||void 0===I?void 0:I[500])||"#FFFFFF"})},"Join",12,we)]))])}],["__scopeId","data-v-de324c16"]]);var Be=["href"];const Ce={methods:{}},Ne=(0,B.Z)(Ce,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:e.route("donate"),class:"flex items-center justify-center py-2 px-2 text-center font-semibold text-[#262626] cursor-pointer bg-[#ffdc71] rounded-lg"}," Support Our Work ",8,Be)}]]),_e={components:{DropDownMenu:oe,Auth:Se,Logo:ce,DonateButton:Ne},props:{expandedMenuId:String},computed:{menus:function(){return(0,a.qt)().props.header.menus},showDonateButton:function(){return(0,a.qt)().props.header.showDonateButton},_expandedMenuId:{get:function(){return this.expandedMenuId},set:function(e){this.$emit("update:expandedMenuId",e)}}},data:function(){return{menuIsVisible:!1}}};var Ve=n(71644),Ie={insert:"head",singleton:!1};te()(Ve.Z,Ie);Ve.Z.locals;const Te=(0,B.Z)(_e,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("Logo"),c=(0,r.resolveComponent)("DropDownMenu"),s=(0,r.resolveComponent)("DonateButton"),u=(0,r.resolveComponent)("Auth");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",T,[a.menuIsVisible?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return a.menuIsVisible=!0}),class:"w-6 h-6"},V(t[5]||(t[5]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960"},[(0,r.createElementVNode)("path",{d:"M120 816v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"})],-1)])))]))]),(0,r.createVNode)(r.Transition,{name:"slide-down"},{default:(0,r.withCtx)((function(){return[a.menuIsVisible?((0,r.openBlock)(),(0,r.createElementBlock)("div",M,[(0,r.createElementVNode)("div",L,[(0,r.createElementVNode)("div",D,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(l)]),(0,r.createElementVNode)("div",P,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return a.menuIsVisible=!1}),class:"w-8 h-8"},V(t[6]||(t[6]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"m336 776 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56Zm144 200q-83 0-156-31.5T197 859q-54-54-85.5-127T80 576q0-83 31.5-156T197 293q54-54 127-85.5T480 176q83 0 156 31.5T763 293q54 54 85.5 127T880 576q0 83-31.5 156T763 859q-54 54-127 85.5T480 976Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})],-1)])))])]),(0,r.createElementVNode)("div",F,[(0,r.createElementVNode)("div",j,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(c,{key:e.id,menu:e,onExpanded:function(t){return i._expandedMenuId=e.id},onCollapsed:t[2]||(t[2]=function(e){return i._expandedMenuId=null}),expanded:i._expandedMenuId==e.id},null,8,["menu","onExpanded","expanded"])})),128))]),(0,r.createElementVNode)("div",O,[i.showDonateButton?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,class:"mx-8"})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{onExpanded:t[3]||(t[3]=function(e){return i._expandedMenuId="auth"}),onCollapsed:t[4]||(t[4]=function(e){return i._expandedMenuId=null}),expanded:"auth"==i._expandedMenuId},null,8,["expanded"])])])])])):(0,r.createCommentVNode)("",!0)]})),_:1})])}
2],["__scopeId","data-v-265fda74"]]);function Ae(e){return function(e){if(Array.isArray(e))return Me(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 Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(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 Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Le={class:""},De={key:0,class:"relative"},Pe={key:0,class:"absolute bg-white w-96 right-0 top-12 rounded-lg p-4 z-10"},Fe=["href"],je=["href"],Oe=["href"],Re={key:1,class:"flex items-center"},Ue=["href"];const He={props:{expanded:Boolean},data:function(){return{}},computed:{user:function(){var e=(0,a.qt)().props.auth.user;return Array.isArray(e)?null:e},settings:function(){return(0,a.qt)().props.settings},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}},methods:{}},ze=(0,B.Z)(He,[["render",function(e,t,n,o,a,i){var l,c,s,u,d,m,p,f,h,g,y,v,b,w,x,k;return(0,r.openBlock)(),(0,r.createElementBlock)("div",Le,[i.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",De,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return i.expanded=!i.expanded}),class:"flex items-center justify-center space-x-2 p-2 rounded-lg",style:(0,r.normalizeStyle)({backgroundColor:(null===(l=i.settings)||void 0===l||null===(c=l.theme)||void 0===c||null===(s=c.colors)||void 0===s||null===(u=s["account-dropdown-background"])||void 0===u?void 0:u[500])||"#333333",color:(null===(d=i.settings)||void 0===d||null===(m=d.theme)||void 0===m||null===(p=m.colors)||void 0===p||null===(f=p["account-dropdown-foreground"])||void 0===f?void 0:f[500])||"#FFFFFF"})},[t[2]||(t[2]=(0,r.createElementVNode)("span",{class:"font-semibold block"},"My Account",-1)),((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:(0,r.normalizeClass)(["w-6 h-6 duration-150",i.expanded?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},Ae(t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M480 711 240 471l56-56 184 184 184-184 56 56-240 240Z"},null,-1)])),2))],4),i.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",Pe,[(0,r.createElementVNode)("a",{href:e.route("account")},Ae(t[3]||(t[3]=[(0,r.createElementVNode)("span",{class:"px-4 py-3 rounded-lg hover:bg-menu-200 font-semibold duration-75 text-lg block"},"My Profile",-1)])),8,Fe),(0,r.createElementVNode)("a",{href:e.route("library")},Ae(t[4]||(t[4]=[(0,r.createElementVNode)("span",{class:"px-4 py-3 rounded-lg hover:bg-menu-200 font-semibold duration-75 text-lg block"},"My Library",-1)])),8,je),(0,r.createElementVNode)("a",{href:e.route("logout")},Ae(t[5]||(t[5]=[(0,r.createElementVNode)("span",{class:"px-4 py-3 rounded-lg hover:bg-menu-200 font-semibold duration-75 text-lg block"},"Logout",-1)])),8,Oe)])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Re,[(0,r.createElementVNode)("a",{href:e.route("login"),class:"block px-4 py-2 rounded-lg font-semibold",style:(0,r.normalizeStyle)({backgroundColor:(null===(h=i.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(y=g.colors)||void 0===y||null===(v=y["account-dropdown-background"])||void 0===v?void 0:v[500])||"#333333",color:(null===(b=i.settings)||void 0===b||null===(w=b.theme)||void 0===w||null===(x=w.colors)||void 0===x||null===(k=x["account-dropdown-foreground"])||void 0===k?void 0:k[500])||"#FFFFFF"})},"Login",12,Ue)]))])}]]);function Ge(e){return function(e){if(Array.isArray(e))return Ze(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 Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(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 Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qe={class:"flex items-center justify-between"},Ke=["href"],$e={key:0,class:"text-xs text-gray-500 flex items-center gap-2"},We={class:"hidden"},Ye={class:"mt-2"},Je=["href"],Xe={class:"overflow-hidden"},Qe={class:"w-full text-start"},et={class:"flex space-x-2.5 mt-2"};function tt(e){return function(e){if(Array.isArray(e))return nt(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 nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(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 nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rt={class:"max-h-[90vh] max-w-[580px] w-full mx-4 rounded-lg shadow-xl overflow-hidden"},ot={class:"border-b bg-white rounded-lg"}
vendor: 4,970 bytes, line 2
2,at=["placeholder"],it={ref:"modalScrollContainer",class:"overflow-y-auto max-h-[calc(90vh-80px)] bg-white mt-4 rounded-lg"};function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(){ct=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),l=new B(o||[]);return r(i,"_invoke",{value:x(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==t&&n.call(y,a)&&(h=y);var v=f.prototype=m.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,a,i,l){var c=u(e[r],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==lt(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return N()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=u(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=f,r(v,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new w(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(v),c(v,l,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function st(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.words,n=void 0===t?[]:t,o=e.typingSpeed,a=void 0===o?100:o,i=e.deletingSpeed,l=void 0===i?50:i,c=e.pauseBeforeDelete,s=void 0===c?2e3:c,u=e.pauseBeforeType,d=void 0===u?500:u,m=(0,r.ref)(""),p=0,f=0,h=!1,g=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function y(){return v.apply(this,arguments)}function v(){var e;return e=ct().mark((function e(){var t;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n[p],!h){e.next=12;break}if(m.value=t.substring(0,f-1),0!=--f){e.next=9;break}return h=!1,p=(p+1)%n.length,e.next=9,g(d);case 9:setTimeout((function(){return y()}),l),e.next=19;break;case 12:if(m.value=t.substring(0,f+1),++f!==t.length){e.next=18;break}return h=!0,e.next=18,g(s);case 18:setTimeout((function(){return y()}),a);case 19:case"end":return e.stop()}}),e)})),v=function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){st(a,r,o,i,l,"next",e)}function l(e){st(a,r,o,i,l,"throw",e)}i(void 0)}))},v.apply(this,arguments)}return(0,r.onMounted)((function(){y()})),{currentText:m}}var dt={class:""},mt={class:"sticky top-0 z-50 shadow-sm border-b border-gray-200 p-5 bg-white sticky-chip-bar"},pt={class:"flex flex-wrap gap-2"},ft=["onClick"],ht={class:"relative"},gt={key:"all",class:"section-container","data-section":"all"},yt={key:0,class:"space-y-4 p-5"},vt={key:0,class:"text-center py-4 text-gray-500"},bt={key:1,class:"space-y-2"},wt=["aria-label","onClick","onKeydown"],xt={class:"py-3"},kt={class:"space-y-2"},Et={class:"text-gray-500 group-hover:text-gray-900"},St={class:"flex flex-wrap items-center gap-1.5"},Bt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Ct={key:2,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Nt={key:0,class:"text-sm text-gray-600 line-clamp-2"},_t={key:1,class:"p-5 text-center text-gray-500"},Vt={key:"teaching",class:"section-container","data-section":"teaching"},It={key:0,class:"space-y-4 p-5"},Tt={key:0,class:"text-center py-4 text-gray-500"},At={key:1,class:"space-y-2"},Mt=["aria-label","onClick","onKeydown"],Lt={class:"py-3"},Dt={class:"space-y-2"},Pt={class:"text-gray-500 group-hover:text-gray-900"},Ft={class:"flex flex-wrap items-center gap-1.5"},jt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Ot={key:2,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Rt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Ut={key:1,class:"p-5 text-center text-gray-500"},Ht={key:"guides",class:"section-container","data-section":"guides"},zt={key:0,class:"space-y-4 p-5"},Gt={key:0,class:"text-center py-4 text-gray-500"},Zt={key:1,class:"space-y-2"},qt=["aria-label","onClick","onKeydown"],Kt={class:"py-3"},$t={class:"space-y-2"},Wt={class:"text-gray-500 group-hover:text-gray-900"},Yt={class:"flex flex-wrap items-center gap-1.5"},Jt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Xt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Qt={key:1,class:"p-5 text-center text-gray-500"},en={key:"climate",class:"section-container","data-section":"climate"},tn={key:0,class:"space-y-4 p-5"},nn={key:0,class:"text-center py-4 text-gray-500"},rn={key:1,class:"space-y-2"},on=["aria-label","onClick","onKeydown"],an={class:"py-3"},ln={class:"space-y-2"},cn={class:"text-gray-500 group-hover:text-gray-900"},sn={class:"flex flex-wrap items-center gap-1.5"},un={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},dn={key:0,class:"text-sm text-gray-600 line-clamp-2"},mn={key:1,class:"p-5 text-center text-gray-500"}
vendor: 4,508 bytes, line 2
2,pn={key:"professional",class:"section-container","data-section":"professional"},fn={key:0,class:"space-y-4 p-5"},hn={key:0,class:"text-center py-4 text-gray-500"},gn={key:1,class:"space-y-2"},yn=["aria-label","onClick","onKeydown"],vn={class:"py-3"},bn={class:"space-y-2"},wn={class:"text-gray-500 group-hover:text-gray-900"},xn={class:"flex flex-wrap items-center gap-1.5"},kn={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},En={key:0,class:"text-sm text-gray-600 line-clamp-2"},Sn={key:1,class:"p-5 text-center text-gray-500"},Bn={key:"news",class:"section-container","data-section":"news"},Cn={key:0,class:"space-y-4 p-5"},Nn={key:0,class:"text-center py-4 text-gray-500"},_n={key:1,class:"space-y-2"},Vn=["aria-label","onClick","onKeydown"],In={class:"py-3"},Tn={class:"space-y-2"},An={class:"text-gray-500 group-hover:text-gray-900"},Mn={class:"flex flex-wrap items-center gap-1.5"},Ln={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Dn={key:0,class:"text-sm text-gray-600 line-clamp-2"},Pn={key:1,class:"p-5 text-center text-gray-500"};var Fn=n(15229),jn=n(3754),On=n(47393),Rn=n(91440),Un=n(72326);function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function zn(){zn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),l=new B(o||[]);return r(i,"_invoke",{value:x(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==t&&n.call(y,a)&&(h=y);var v=f.prototype=m.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,a,i,l){var c=u(e[r],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Hn(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return N()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=u(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=f,r(v,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new w(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(v),c(v,l,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Gn(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}const Zn={components:{Link:a.rU,Grades:jn.Z},props:{term:{type:String,default:""}},setup:function(e){var t,n,o,i,l,c,s=(0,a.qt)().props.tenantId,u=(0,r.ref)("all"),d=(0,r.ref)(""),m=(0,r.ref)(!1),p=(null===(t=(0,a.qt)().props.integrations)||void 0===t?void 0:t.meilisearch)||(null===(n=(0,a.qt)().props.integrations)||void 0===n?void 0:n.algolia),f={lessonPlans:p.teachingMaterialsIndex||"teaching_materials",teaching:p.teachingMaterialsIndex||"teaching_materials",guides:p.teacherGuidesIndex||"teacher_guides",climate:p.climateExplainersIndex||"climate_explainers",professional:p.pdIndex||"professional_development",news:p.newsIndex||"news"},h={lessonPlans:"is_live=true AND (is_internal_resource=true OR is_featured_in_tenants IN [".concat(s,"] OR is_internal_unit_plan=true) AND is_in_unit_plans=false AND tenantIds IN [").concat(s,"]"),teaching:"is_external_resource=true AND is_live=true AND tenantIds IN [".concat(s,"]"),guides:"",climate:"",professional:"enabled=1 AND tenant_ids IN [".concat(s,"]"),news:""},g=(null===(o=(0,a.qt)().props.integrations)||void 0===o||null===(i=o.meilisearch)||void 0===i?void 0:i.host)||window.MEILISEARCH_HOST||"http://localhost:7700",y=(null===(l=(0,a.qt)().props.integrations)||void 0===l||null===(c=l.meilisearch)||void 0===c?void 0:c.key)||window.MEILISEARCH_KEY||"",v=(0,On.wA)();y&&(0,On.qd)(y,g);var b=(0,r.reactive)({lessonPlans:null,teaching:null,guides:null,climate:null,professional:null,news:null}),w=new Fn.MeiliSearch({host:g,apiKey:y,requestConfig:{headers:{"X-MS-USER-ID":v}}}),x=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),k=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),E=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),S=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),B=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}
2),C=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),N=function(){var e,t=(e=zn().mark((function e(t){var n,r,o,a,i,l,c,u,d;return zn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=14;break}return x.hits=[],x.totalHits=0,k.hits=[],k.totalHits=0,E.hits=[],E.totalHits=0,S.hits=[],S.totalHits=0,B.hits=[],B.totalHits=0,C.hits=[],C.totalHits=0,e.abrupt("return");case 14:return m.value=!0,e.prev=15,c=(0,Un.Bl)(t),console.log("[POPUP-SEARCH] Performing federated multi-search for:",t,"formatted:",c),u=[{indexUid:f.lessonPlans,q:c,limit:5,filter:h.lessonPlans||void 0},{indexUid:f.teaching,q:c,limit:5,filter:h.teaching||void 0},{indexUid:f.guides,q:c,limit:5,filter:h.guides||void 0},{indexUid:f.climate,q:c,limit:5,filter:h.climate||void 0},{indexUid:f.professional,q:c,limit:5,filter:h.professional||void 0},{indexUid:f.news,q:c,limit:5,filter:h.news||void 0}],e.next=21,w.multiSearch({queries:u});case 21:d=e.sent,console.log("[POPUP-SEARCH] Multi-search results:",d),(0,Rn.p)({tenantId:s,indexes:u.map((function(e){return e.indexUid}))}),x.hits=d.results[0].hits||[],x.totalHits=d.results[0].estimatedTotalHits||0,b.lessonPlans=(null===(n=d.results[0].metadata)||void 0===n?void 0:n.queryUid)||null,k.hits=d.results[1].hits||[],k.totalHits=d.results[1].estimatedTotalHits||0,b.teaching=(null===(r=d.results[1].metadata)||void 0===r?void 0:r.queryUid)||null,E.hits=d.results[2].hits||[],E.totalHits=d.results[2].estimatedTotalHits||0,b.guides=(null===(o=d.results[2].metadata)||void 0===o?void 0:o.queryUid)||null,S.hits=d.results[3].hits||[],S.totalHits=d.results[3].estimatedTotalHits||0,b.climate=(null===(a=d.results[3].metadata)||void 0===a?void 0:a.queryUid)||null,B.hits=d.results[4].hits||[],B.totalHits=d.results[4].estimatedTotalHits||0,b.professional=(null===(i=d.results[4].metadata)||void 0===i?void 0:i.queryUid)||null,C.hits=d.results[5].hits||[],C.totalHits=d.results[5].estimatedTotalHits||0,b.news=(null===(l=d.results[5].metadata)||void 0===l?void 0:l.queryUid)||null,e.next=47;break;case 44:e.prev=44,e.t0=e.catch(15),console.error("[POPUP-SEARCH] Multi-search error:",e.t0);case 47:return e.prev=47,m.value=!1,e.finish(47);case 50:case"end":return e.stop()}}),e,null,[[15,44,47,50]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Gn(a,r,o,i,l,"next",e)}function l(e){Gn(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();(0,r.watch)((function(){return e.term}),(function(e){d.value=e,N(e)}),{immediate:!0});return{activeFilter:u,confirmedTerm:d,categoryFilters:[{id:"all",name:"Lesson Plans, Units & Activities"},{id:"teaching",name:"Teaching Resources"},{id:"guides",name:"Teacher Guides"},{id:"climate",name:"Climate Change Explainers"},{id:"professional",name:"Professional Development"},{id:"news",name:"News for Students"}],categoryColors:{all:"bg-[#E8FAE8] text-[#194C26]",teaching:"bg-[#E4F4FC] text-[#1A226B]",guides:"bg-[#FFF6DB] text-[#5E3A11]",climate:"bg-[#FFE8DB] text-[#7F3822]",professional:"bg-[#EEF1F6] text-[#2B2B2B]",news:"bg-[#D5DBE7] text-[#29313F]"},isLoading:m,lessonPlansResults:x,teachingResults:k,guidesResults:E,climateResults:S,professionalResults:B,newsResults:C,switchTab:function(e){u.value=e},selectItem:function(e,t,n){(0,On.ob)({indexUid:f[t],queryUid:b[t],objectId:e.id.toString(),position:n});var r={lessonPlans:function(){return a.Nd.visit(route(e.is_internal_unit_plan?"stc.unit":"stc.show",e.slug))},teaching:function(){return a.Nd.visit(route("resource.show",e.slug))},guides:function(){return a.Nd.visit(route("teacherGuides.show",e.slug))},climate:function(){return a.Nd.visit(route("climateChangeExplainers.show",e.slug))},professional:function(){return a.Nd.visit(route("professional-learning.show",e.slug))},news:function(){return a.Nd.visit(route("news.show",e.slug))}};r[t]&&r[t]()}}}};var qn=n(43824),Kn={insert:"head",singleton:!1};te()(qn.Z,Kn);qn.Z.locals;const $n={components:{SearchResultsDirect:(0,B.Z)(Zn,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("Grades"),c=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",dt,[(0,r.createElementVNode)("div",mt,[(0,r.createElementVNode)("div",pt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.categoryFilters,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e.id,class:(0,r.normalizeClass)(["px-3 py-1 rounded-full text-sm transition-all duration-300",o.categoryColors[e.id],{"ring-2 ring-offset-2 ring-green-300":o.activeFilter===e.id}]),onClick:function(t){return o.switchTab(e.id)}},(0,r.toDisplayString)(e.name),11,ft)})),128))])]),(0,r.createElementVNode)("div",ht,[(0,r.createVNode)(r.Transition,{name:"slide-fade",mode:"out-in"},{default:(0,r.withCtx)((function(){return["all"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",gt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",yt,[t[0]||(t[0]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Lesson Plans, Units & Activities",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",vt,"Searching...")):o.lessonPlansResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",bt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.lessonPlansResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title||e.name),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"lessonPlans",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"lessonPlans",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"lessonPlans",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",xt,[(0,r.createElementVNode)("div",kt,[(0,r.createElementVNode)("h4",Et,(0,r.toDisplayString)(e.title||e.name),1),(0,r.createElementVNode)("div",St,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.languages&&e.languages[0]?((0,r.openBlock)(),(0,r.createElementBlock)("span",Bt,(0,r.toDisplayString)(e.languages[0]),1)):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ct,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Nt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,wt)})),128))])):(0,r.createCommentVNode)("",!0),o.lessonPlansResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"all",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.lessonPlansResults.totalHits-5)+" other Lesson Plans, Units & Activities ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",_t,"Enter a search term and click search to see results"))])):"teaching"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Vt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",It,[t[1]||(t[1]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Teaching Resources",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",Tt,"Searching...")):o.teachingResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",At,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.teachingResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title||e.name),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"teaching",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"teaching",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"teaching",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",Lt,[(0,r.createElementVNode)("div",Dt,[(0,r.createElementVNode)("h4",Pt,(0,r.toDisplayString)(e.title||e.name),1),(0,r.createElementVNode)("div",Ft,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.languages&&e.languages[0]?((0,r.openBlock)(),(0,r.createElementBlock)("span",jt,(0,r.toDisplayString)(e.languages[0]),1)):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ot,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Rt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,Mt)})),128))])):(0,r.createCommentVNode)("",!0),o.teachingResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"teaching",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.teachingResults.totalHits-5)+" other Teaching Resources ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ut,"Enter a search term and click search to see results"))])):"guides"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ht,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",zt,[t[2]||(t[2]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Teacher Guides",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",Gt,"Searching...")):o.guidesResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Zt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.guidesResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"guides",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"guides",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"guides",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",Kt,[(0,r.createElementVNode)("div",$t,[(0,r.createElementVNode)("h4",Wt,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Yt,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Jt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Xt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,qt)})),128))])):(0,r.createCommentVNode)("",!0),o.guidesResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"guides",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.guidesResults.totalHits-5)+" other Teacher Guides ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Qt,"Enter a search term and click search to see results"))])):"climate"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",en,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",tn,[t[3]||(t[3]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Climate Change Explainers",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",nn,"Searching...")):o.climateResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",rn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.climateResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"climate",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"climate",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"climate",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",an,[(0,r.createElementVNode)("div",ln,[(0,r.createElementVNode)("h4",cn,(0,r.toDisplayString)(e.title),1),(0,r.createElementVNode)("div",sn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",un,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",dn,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,on)})),128))])):(0,r.createCommentVNode)("",!0),o.climateResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"climate",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.climateResults.totalHits-5)+" other Climate Change Explainers ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",mn,"Enter a search term and click search to see results"))])):"professional"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",pn,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",fn,[t[4]||(t[4]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Professional Development",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",hn,"Searching...")):o.professionalResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",gn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.professionalResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.name),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"professional",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"professional",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"professional",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",vn,[(0,r.createElementVNode)("div",bn,[(0,r.createElementVNode)("h4",wn,(0,r.toDisplayString)(e.name),1),(0,r.createElementVNode)("div",xn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.type?((0,r.openBlock)(),(0,r.createElementBlock)("span",kn,(0,r.toDisplayString)(e.type),1)):(0,r.createCommentVNode)("",!0)]),e.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",En,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)("",!0)])])],40,yn)})),128))])):(0,r.createCommentVNode)("",!0),o.professionalResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"professional",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.professionalResults.totalHits-5)+" other Professional Development opportunities ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Sn,"Enter a search term and click search to see results"))])):"news"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Bn,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",Cn,[t[5]||(t[5]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"News for Students",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",Nn,"Searching...")):o.newsResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",_n,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.newsResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"news",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"news",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"news",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",In,[(0,r.createElementVNode)("div",Tn,[(0,r.createElementVNode)("h4",An,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Mn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.publish_at?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ln,(0,r.toDisplayString)(new Date(e.publish_at).toLocaleDateString()),1)):(0,r.createCommentVNode)("",!0)]),e.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",Dn,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)("",!0)])])],40,Vn)})),128))])):(0,r.createCommentVNode)("",!0),o.newsResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"news",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.newsResults.totalHits-5)+" other News articles ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Pn,"Enter a search term and click search to see results"))])):(0,r.createCommentVNode)("",!0)]})),_:1})])])}],["__scopeId","data-v-575b1bfa"]])},props:{term:{type:String,default:""}},emits:["update:term"],setup:function(){return{typewriterText:ut({words:["topic...","title...","keyword..."],typingSpeed:100,deletingSpeed:50,pauseBeforeDelete:2e3,pauseBeforeType:500}).currentText}},data:function(){return console.log("[SEARCH-DEBUG] PopSearchSkeleton data() initializing",{propTerm:this.term,timestamp:(new Date).toISOString()}),{showSearchModal:!1,localTerm:this.term,confirmedTerm:"",searchResults:[],isSearching:!1,resultsShown:!1}},created:function(){console.log("[SEARCH-DEBUG] PopSearchSkeleton created()",{state:{showSearchModal:this.showSearchModal,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,isSearching:this.isSearching,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()})},mounted:function(){console.log("[SEARCH-DEBUG] PopSearchSkeleton mounted()",{state:{showSearchModal:this.showSearchModal,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,isSearching:this.isSearching,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),document.addEventListener("visibilitychange",(function(){console.log("[SEARCH-DEBUG] Page visibility changed",{hidden:document.hidden,visibilityState:document.visibilityState,timestamp:(new Date).toISOString()})})),window.addEventListener("beforeunload",(function(){console.log("[SEARCH-DEBUG] Window beforeunload triggered",{location:window.location.href,timestamp:(new Date).toISOString()})})),window.addEventListener("open-search-modal",this.openSearchModal),window.addEventListener("keydown",this.handleKeydown)},methods:{handleKeydown:function(e){console.log("[SEARCH-DEBUG] handleKeydown()",{key:e.key,showSearchModal:this.showSearchModal,timestamp:(new Date).toISOString()}),"Escape"===e.key&&this.showSearchModal&&this.toggleModal()},toggleModal:function(){var e=this,t=this.showSearchModal;this.showSearchModal=!this.showSearchModal,console.log("[SEARCH-DEBUG] toggleModal()",{before:t,after:this.showSearchModal,state:{localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),this.showSearchModal?(document.body.style.overflow="hidden",this.$nextTick((function(){var t;null===(t=e.$refs.searchInput)||void 0===t||t.focus()}))):document.body.style.overflow=""},openSearchModal:function(){console.log("[SEARCH-DEBUG] openSearchModal()",{currentState:this.showSearchModal,timestamp:(new Date).toISOString()}),this.showSearchModal||this.toggleModal()},confirmSearch:function(){var e=this.localTerm.trim();if(console.log("[SEARCH-DEBUG] confirmSearch() CALLED",{trimmedTerm:e,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown,willRedirect:this.resultsShown&&this.confirmedTerm===e,state:{showSearchModal:this.showSearchModal,isSearching:this.isSearching},timestamp:(new Date).toISOString(),stack:(new Error).stack}),this.resultsShown&&this.confirmedTerm===e){var t="/search?term=".concat(encodeURIComponent(e));
2return console.log("[SEARCH-DEBUG] confirmSearch() REDIRECTING TO FULL SEARCH PAGE",{url:t,reason:"resultsShown is true and terms match",timestamp:(new Date).toISOString()}),void(window.location.href=t)}console.log("[SEARCH-DEBUG] confirmSearch() SHOWING POPUP RESULTS",{beforeConfirmedTerm:this.confirmedTerm,afterConfirmedTerm:e,beforeResultsShown:this.resultsShown,afterResultsShown:!0,timestamp:(new Date).toISOString()}),this.confirmedTerm=e,this.resultsShown=!0,this.$emit("update:term",this.confirmedTerm),console.log("[SEARCH-DEBUG] confirmSearch() EMITTED update:term",{term:this.confirmedTerm,timestamp:(new Date).toISOString()})},handleSearch:function(){console.log("[SEARCH-DEBUG] handleSearch() CALLED",{localTerm:this.localTerm,trimmed:this.localTerm.trim(),isSearching:this.isSearching,willProceed:this.localTerm.trim()&&!this.isSearching,timestamp:(new Date).toISOString()}),this.localTerm.trim()&&!this.isSearching&&(this.isSearching=!0,console.log("[SEARCH-DEBUG] handleSearch() REDIRECTING",{url:"/search?term=".concat(encodeURIComponent(this.localTerm.trim())),timestamp:(new Date).toISOString()}),this.toggleModal(),window.location.href="/search?term=".concat(encodeURIComponent(this.localTerm.trim())))},clearSearch:function(){var e;console.log("[SEARCH-DEBUG] clearSearch() CALLED",{beforeState:{localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),this.localTerm="",this.confirmedTerm="",this.resultsShown=!1,this.$emit("update:term",""),null===(e=this.$refs.searchInput)||void 0===e||e.focus(),console.log("[SEARCH-DEBUG] clearSearch() COMPLETED",{timestamp:(new Date).toISOString()})},handleResultSelect:function(e){console.log("[SEARCH-DEBUG] handleResultSelect() CALLED",{item:e,url:e.url,timestamp:(new Date).toISOString()}),this.toggleModal(),a.Nd.visit(e.url)}},watch:{term:function(e,t){console.log("[SEARCH-DEBUG] WATCHER term changed",{from:t,to:e,localTermBefore:this.localTerm,timestamp:(new Date).toISOString()}),this.localTerm=e,console.log("[SEARCH-DEBUG] WATCHER term updated localTerm",{localTerm:this.localTerm,timestamp:(new Date).toISOString()})},localTerm:function(e,t){console.log("[SEARCH-DEBUG] WATCHER localTerm changed",{from:t,to:e,confirmedTerm:this.confirmedTerm,resultsShownBefore:this.resultsShown,willResetResultsShown:e!==this.confirmedTerm,timestamp:(new Date).toISOString()}),e!==this.confirmedTerm&&(this.resultsShown=!1,console.log("[SEARCH-DEBUG] WATCHER localTerm reset resultsShown to false",{timestamp:(new Date).toISOString()}))},confirmedTerm:function(e,t){console.log("[SEARCH-DEBUG] WATCHER confirmedTerm changed",{from:t,to:e,resultsShown:this.resultsShown,localTerm:this.localTerm,timestamp:(new Date).toISOString()})},resultsShown:function(e,t){console.log("[SEARCH-DEBUG] WATCHER resultsShown changed",{from:t,to:e,confirmedTerm:this.confirmedTerm,timestamp:(new Date).toISOString()})},showSearchModal:function(e,t){console.log("[SEARCH-DEBUG] WATCHER showSearchModal changed",{from:t,to:e,timestamp:(new Date).toISOString()})}},beforeUnmount:function(){console.log("[SEARCH-DEBUG] PopSearchSkeleton beforeUnmount()",{finalState:{showSearchModal:this.showSearchModal,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),document.body.style.overflow="",window.removeEventListener("open-search-modal",this.openSearchModal),window.removeEventListener("keydown",this.handleKeydown)}};var Wn=n(2364),Yn={insert:"head",singleton:!1};te()(Wn.Z,Yn);Wn.Z.locals;const Jn=(0,B.Z)($n,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("SearchResultsDirect");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return i.toggleModal&&i.toggleModal.apply(i,arguments)}),"aria-label":"Search Menu",class:"p-2 rounded-lg bg-popup-search-background-500"},tt(t[6]||(t[6]=[(0,r.createStaticVNode)('<svg class="text-popup-search-foreground-500" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_1975_4089" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_1975_4089)"><path d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z" class="fill-popup-search-foreground-500"></path></g></svg>',1)]))),a.showSearchModal?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,onClick:t[5]||(t[5]=(0,r.withModifiers)((function(){return i.toggleModal&&i.toggleModal.apply(i,arguments)}),["self"])),style:{"backdrop-filter":"blur(6px)"},class:"fixed top-0 left-0 w-screen h-screen bg-black/70 flex items-start justify-center z-50 p-4 pt-8"},[(0,r.createElementVNode)("div",rt,[(0,r.createElementVNode)("div",ot,[(0,r.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,r.withModifiers)((function(){return i.confirmSearch&&i.confirmSearch.apply(i,arguments)}),["prevent"])),class:"flex items-center px-5 py-2"},[t[9]||(t[9]=(0,r.createStaticVNode)('<svg class="w-6 h-6 text-gray-500 flex-shrink-0" viewB
2ox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_1975_4089" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_1975_4089)"><path d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z" fill="currentColor"></path></g></svg>',1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.localTerm=e}),placeholder:"Search by ".concat(o.typewriterText),class:"flex-grow px-4 py-2 focus:outline-none text-gray-900",ref:"searchInput"},null,8,at),[[r.vModelText,a.localTerm]]),t[10]||(t[10]=(0,r.createElementVNode)("button",{type:"submit",class:"px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100 rounded-md transition-colors",title:"Search"}," Search ",-1)),a.localTerm?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",onClick:t[2]||(t[2]=function(){return i.clearSearch&&i.clearSearch.apply(i,arguments)}),class:"p-1 hover:bg-gray-100 rounded-full ml-1",title:"Clear search"},tt(t[7]||(t[7]=[(0,r.createElementVNode)("svg",{class:"w-5 h-5 text-gray-500",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"})],-1)])))):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,type:"button",onClick:t[3]||(t[3]=function(){return i.toggleModal&&i.toggleModal.apply(i,arguments)}),class:"p-1 hover:bg-gray-100 rounded-full ml-1",title:"Close search"},tt(t[8]||(t[8]=[(0,r.createElementVNode)("svg",{class:"w-5 h-5 text-gray-500",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"})],-1)]))))],32)]),(0,r.createElementVNode)("div",it,[(0,r.createVNode)(l,{term:a.confirmedTerm,results:a.searchResults,"scroll-container":e.$refs.modalScrollContainer,onSelect:i.handleResultSelect},null,8,["term","results","scroll-container","onSelect"])],512)])])):(0,r.createCommentVNode)("",!0)])}]]);var Xn=n(32608),Qn=n(76306);const er={components:{PopSearchSkeleton:Jn,AisSearchBox:Qn.AV,AisInstantSearch:Qn.M,AisHits:Qn.xC,AisConfigure:Qn.St,AisHighlight:Qn.YE},data:function(){return{searchTerm:"",perPage:5,isSearching:!1}},setup:function(){var e,t,n,o,i=(null===(e=(0,a.qt)().props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.host)||("undefined"!=typeof window?window.MEILISEARCH_HOST:null)||"http://localhost:7700",l=(null===(n=(0,a.qt)().props.integrations)||void 0===n||null===(o=n.meilisearch)||void 0===o?void 0:o.key)||("undefined"!=typeof window?window.MEILISEARCH_KEY:null)||"",c=(0,On.wA)();return{client:(0,Xn.instantMeiliSearch)(i,l,{placeholderSearch:!1,primaryKey:"id",requestConfig:{headers:{"X-MS-USER-ID":c}}}).searchClient,debouncedSearchTerm:(0,r.ref)("")}},created:function(){var e,t=this;this.$watch("searchTerm",(function(n){n&&(t.isSearching=!0),clearTimeout(e),e=setTimeout((function(){t.debouncedSearchTerm=(0,Un.Bl)(n),setTimeout((function(){t.isSearching=!1}),1e3)}),1e3)}))},methods:{urlFromTm:function(e){var t,n,r;return e.is_external_resource?route("resources.show",null!==(t=e.slug)&&void 0!==t?t:e.id):e.is_internal_resource?route("stc.show",null!==(n=e.slug)&&void 0!==n?n:e.id):e.is_internal_unit_plan?route("stc.unit",null!==(r=e.slug)&&void 0!==r?r:e.id):""}},computed:{indexName:function(){return(0,a.qt)().props.integrations.algolia.teachingMaterialsIndex},filters:function(){return"is_live=1 AND tenantIds=".concat(this.tenantId)},tenantId:function(){return(0,a.qt)().props.tenantId}}},tr={components:{DesktopMenu:_,MobileMenu:Te,Logo:ce,DesktopAuth:ze,PopSearch:(0,B.Z)(er,[["render",function(e,t,n,o,a,i){var l=(0,r.resolve
2Component)("AisConfigure"),c=(0,r.resolveComponent)("AisSearchBox"),s=(0,r.resolveComponent)("AisHighlight"),u=(0,r.resolveComponent)("AisHits"),d=(0,r.resolveComponent)("AisInstantSearch"),m=(0,r.resolveComponent)("PopSearchSkeleton");return(0,r.openBlock)(),(0,r.createBlock)(m,{term:a.searchTerm,"onUpdate:term":t[1]||(t[1]=function(e){return a.searchTerm=e})},{default:(0,r.withCtx)((function(n){n.term;return[(0,r.createVNode)(d,{searchClient:o.client,indexName:i.indexName},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(l,{hitsPerPage:a.perPage,page:e.currentPage,filters:i.filters},null,8,["hitsPerPage","page","filters"]),(0,r.createElementVNode)("div",qe,[(0,r.createElementVNode)("a",{href:"/search?term=".concat(a.searchTerm),class:"underline text-xs"},"View all results",8,Ke),a.isSearching?((0,r.openBlock)(),(0,r.createElementBlock)("div",$e,Ge(t[2]||(t[2]=[(0,r.createElementVNode)("svg",{class:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,r.createElementVNode)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),(0,r.createTextVNode)(" Searching... ",-1)])))):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",We,[(0,r.createVNode)(c,{modelValue:o.debouncedSearchTerm,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.debouncedSearchTerm=e})},null,8,["modelValue"])]),(0,r.createElementVNode)("div",Ye,[(0,r.createVNode)(u,{onRender:e.handleHitsRender},{default:(0,r.withCtx)((function(e){var n=e.items;return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:i.urlFromTm(e),key:e.id,class:"p-3 flex justify-between bg-neutral-100 rounded-lg items-center w-full mt-3 hover:bg-[#E8FAE8] duration-150"},[(0,r.createElementVNode)("div",Xe,[(0,r.createElementVNode)("div",Qe,[(0,r.createVNode)(s,{attribute:"title",hit:e,class:"text-start"},null,8,["hit"])]),(0,r.createElementVNode)("div",et,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.gradeBands,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:"bg-[#BBF0B9] rounded px-2.5 flex-nowrap whitespace-nowrap uppercase"},(0,r.toDisplayString)(e),1)})),128)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.subjects_list_short,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:"bg-[#BBF0B9] rounded px-2.5 flex-nowrap whitespace-nowrap uppercase"},(0,r.toDisplayString)(e),1)})),128))])]),t[3]||(t[3]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"p-2"},[(0,r.createElementVNode)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("mask",{id:"mask0_1975_4094",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"15",height:"15"},[(0,r.createElementVNode)("rect",{width:"15",height:"15",fill:"#D9D9D9"})]),(0,r.createElementVNode)("g",{mask:"url(#mask0_1975_4094)"},[(0,r.createElementVNode)("path",{d:"M9.26901 7.5L4.56105 2.79203C4.43688 2.66786 4.37641 2.52005 4.37964 2.34859C4.38287 2.17714 4.44657 2.02927 4.57073 1.905C4.6949 1.78083 4.84271 1.71875 5.01417 1.71875C5.18563 1.71875 5.33349 1.78083 5.45776 1.905L10.2426 6.69953C10.3555 6.81255 10.4392 6.93917 10.4937 7.07937C10.5483 7.21958 10.5756 7.35979 10.5756 7.5C10.5756 7.64021 10.5483 7.78042 10.4937 7.92063C10.4392 8.06083 10.3555 8.18745 10.2426 8.30047L5.44808 13.095C5.32391 13.2192 5.17771 13.2796 5.00948 13.2764C4.84115 13.2732 4.6949 13.2095 4.57073 13.0853C4.44657 12.9611 4.38448 12.8133 4.38448 12.6419C4.38448 12.4704 4.44657 12.3226 4.57073 12.1983L9.26901 7.5Z",fill:"#1C1B1F"})])])])],-1))],8,Je)})),128))]})),_:1},8,["onRender"])])]})),_:1},8,["searchClient","indexName"])]})),_:1},8,["term"])}]]),DonateButton:Ne},data:function(){return{expandedMenuId:null}},computed:{showDonateButton:function(){return(0,a.qt)().props.header.showDonateButton},tenantId:function(){return(0,a.qt)().props.tenantId}}},nr=(0,B.Z)(tr,[["render",function(e,t,n,o,a,l){var p=(0,r.resolve
2Component)("Logo"),f=(0,r.resolveComponent)("DesktopMenu"),h=(0,r.resolveComponent)("PopSearch"),g=(0,r.resolveComponent)("DonateButton"),y=(0,r.resolveComponent)("MobileMenu"),v=(0,r.resolveComponent)("DesktopAuth");return(0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(p)]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(f,{expandedMenuId:a.expandedMenuId,"onUpdate:expandedMenuId":t[0]||(t[0]=function(e){return a.expandedMenuId=e})},null,8,["expandedMenuId"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(h),l.showDonateButton?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,class:"hidden md:flex"})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(y,{expandedMenuId:a.expandedMenuId,"onUpdate:expandedMenuId":t[1]||(t[1]=function(e){return a.expandedMenuId=e}),class:"lg:hidden"},null,8,["expandedMenuId"]),(0,r.createVNode)(v,{onExpanded:t[2]||(t[2]=function(e){return a.expandedMenuId="auth"}),onCollapsed:t[3]||(t[3]=function(e){return a.expandedMenuId=null}),expanded:"auth"===a.expandedMenuId,class:"hidden lg:block"},null,8,["expanded"]),1!=l.tenantId?((0,r.openBlock)(),(0,r.createElementBlock)("a",m,i(t[4]||(t[4]=[(0,r.createElementVNode)("img",{src:"/img/logo-with-trademark-2.svg",alt:"SubjectToClimate",width:"387",height:"100",class:"w-full h-auto"},null,-1)])))):(0,r.createCommentVNode)("",!0)])])}]]);function rr(e){return function(e){if(Array.isArray(e))return or(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 or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return or(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 or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ar={class:"mt-10"},ir={class:"flex flex-col lg:flex-row items-center lg:justify-between lg:items-center mb-[50px] space-y-[30px] lg:space-y-0"},lr={class:"w-[239px]"},cr=["href"],sr={class:"flex space-x-[16px]"},ur={class:"flex items-center justify-start space-x-8 mt-10"},dr={target:"_blank",href:"https://www.charitynavigator.org/ein/861536473"},mr=["src"],pr={target:"_blank",href:"https://directories.onepercentfortheplanet.org/profile/subjecttoclimate"},fr=["src"],hr={key:0,class:"mt-10"};var gr=n(49613),yr={href:"/",class:"h-10 block"},vr=["src"];const br={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},wr=(0,B.Z)(br,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",yr,[(0,r.createElementVNode)("img",{alt:"Avatar",class:"h-full",src:i.url},null,8,vr)])])}]]);var xr=["href"],kr={class:"space-y-[10px] mt-[14px]"};var Er=["href"];const Sr={props:{menu:Object}},Br={components:{MenuItem:(0,B.Z)(Sr,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.menu.url,class:(0,r.normalizeClass)(["block",n.menu.url?"hover:underline":""])},(0,r.toDisplayString)(n.menu.title),11,Er)}]])},props:{menu:Object}},Cr=(0,B.Z)(Br,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("MenuItem");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",{href:n.menu.url,class:(0,r.normalizeClass)(["font-bold text-xl block",n.menu.url?"hover:underline":""])},(0,r.toDisplayString)(n.menu.title),11,xr),(0,r.createElementVNode)("div",kr,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.menu.children,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e},null,8,["menu"])})),128))])])}]]);function Nr(e){return function(e){if(Array.isArray(e))return _r(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 _r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _r(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 _r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vr={key:0,class:"flex space-x-[16px]"},Ir=["href"],Tr=["href"],Ar=["href"],Mr=["href"];const Lr={computed:{socialMedias:function(){return(0,a.qt)().props.footer.socialMedias}}},Dr=(0,B.Z)(Lr,[["render",function(e,t,n,o,a,i){return i.socialMedias?((0,r.openBlock)(),(0,r.createElementBlock)("div",Vr,[i.socialMedias.linkedin?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:i.socialMedias.linkedin,href:i.socialMedias.linkedin,class:"block",target:"_blank"},Nr(t[0]||(t[0]=[(0,r.createElementVNode)("img",{alt:"LinkedIn",src:"/img/social-media/linked-in.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Ir)):(0,r.createCommentVNode)("",!0),i.socialMedias.facebook?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:i.socialMedias.facebook,href:i.socialMedias.facebook,class:"block",target:"_blank"},Nr(t[1]||(t[1]=[(0,r.createElementVNode)("img",{alt:"Facebook",src:"/img/social-media/facebook.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Tr)):(0,r.createCommentVNode)("",!0),i.socialMedias.pinterest?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:i.socialMedias.pinterest,href:i.socialMedias.pinterest,class:"block",target:"_blank"},Nr(t[2]||(t[2]=[(0,r.createElementVNode)("img",{alt:"Pinterest",src:"/img/social-media/pinterest.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Ar)):(0,r.createCommentVNode)("",!0),i.socialMedias.instagram?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:i.socialMedias.instagram,href:i.socialMedias.instagram,class:"block",target:"_blank"},Nr(t[3]||(t[3]=[(0,r.createElementVNode)("img",{alt:"Instagram",src:"/img/social-media/instagram.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Mr)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}]]);const Pr={components:{Container:gr.Z,Logo:wr,Menu:Cr,SocialMediaIcons:Dr},computed:{menus:function(){return(0,a.qt)().props.footer.menus},logoHref:function(){return 1!=(0,a.qt)().props.tenantId?"https://subjecttoclimate.org/":"/"},isCoreSite:function(){return 1==(0,a.qt)().props.tenantId},badge3StarUrl:function(){var e,t=null===(e=(0,a.qt)().props.assetVersions)||void 0===e?void 0:e.badge3Star;return t?"/img/charity_navigator_three_star_rating_badge_2026.png?v=".concat(t):"/img/charity_navigator_three_star_rating_badge_2026.png"},onePercentPlanetUrl:function(){var e,t=null===(e=(0,a.qt)().props.assetVersions)||void 0===e?void 0:e.onePercentPlanet;return t?"/img/environmentalPartner_Vertical_FullColor.webp?v=".concat(t):"/img/environmentalPartner_Vertical_FullColor.webp"}},methods:{initPreferredSourceButton:function(){this.isCoreSite&&(window.PREFERRED_SOURCE=window.PREFERRED_SOURCE||[],window.PREFERRED_SOURCE.push((function(e){return e.init()})))}},mounted:function(){this.initPreferredSourceButton()}},Fr=(0,B.Z)(Pr,[["render",function(e,t,n,o,a,i){var l=(0,r.resolve
2Component)("SocialMediaIcons"),c=(0,r.resolveComponent)("Menu"),s=(0,r.resolveComponent)("Container");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ar,[(0,r.createVNode)(s,{class:"p-10"},{default:(0,r.withCtx)((function(){return[t[4]||(t[4]=(0,r.createElementVNode)("hr",{class:"mb-[60px]"},null,-1)),(0,r.createElementVNode)("div",ir,[(0,r.createElementVNode)("div",lr,[(0,r.createElementVNode)("a",{href:i.logoHref,class:"w-[215px] block"},rr(t[0]||(t[0]=[(0,r.createElementVNode)("img",{src:"/img/logo-with-trademark-2.svg",alt:"SubjectToClimate",width:"387",height:"100",class:"w-full h-auto"},null,-1)])),8,cr)]),t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"w-full lg:w-[444px] text-center lg:text-start"}," All resources can be used for your educational purposes with proper attribution to the content provider. ",-1)),(0,r.createElementVNode)("div",sr,[(0,r.createVNode)(l)])]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["grid gap-10 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-".concat(i.menus.length+1)])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(c,{key:e.id,menu:e},null,8,["menu"])})),128))],2),(0,r.createElementVNode)("div",ur,[t[2]||(t[2]=(0,r.createElementVNode)("a",{target:"_blank",href:"https://app.candid.org/profile/10986729/climate-change-for-all-educators-inc-86-1536473"},[(0,r.createElementVNode)("img",{src:"https://widgets.guidestar.org/prod/v1/pdp/transparency-seal/10986729/svg",alt:"Candid Platinum Transparency 2025",class:"h-[100px] w-auto"})],-1)),(0,r.createElementVNode)("a",dr,[(0,r.createElementVNode)("img",{src:i.badge3StarUrl,alt:"3 Star Rating Badge",width:"200",height:"200",class:"h-[100px] w-auto"},null,8,mr)]),(0,r.createElementVNode)("a",pr,[(0,r.createElementVNode)("img",{src:i.onePercentPlanetUrl,alt:"Add 1% For the Planet logo to our site",width:"152",height:"200",class:"h-[100px] w-auto"},null,8,fr)])]),i.isCoreSite?((0,r.openBlock)(),(0,r.createElementBlock)("div",hr,rr(t[3]||(t[3]=[(0,r.createElementVNode)("div",{"google-add-preferred-source-btn":"","data-theme":"light",class:"min-h-[40px]"},null,-1)])))):(0,r.createCommentVNode)("",!0)]})),_:1})])}]]);function jr(e){return function(e){if(Array.isArray(e))return Or(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 Or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Or(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 Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rr={class:"hidden"},Ur={key:0,class:"w-full"},Hr={class:"hidden"},zr=["onClick"],Gr={class:"flex items-center justify-center space-x-4 pr-8"},Zr=["innerHTML"],qr=["href"];function Kr(e){return function(e){if(Array.isArray(e))return $r(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 $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(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 $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}const Yr={setup:function(){var e=(0,r.ref)(new Set);(0,r.onMounted)((function(){var t=localStorage.getItem("closedBanners");t&&(e.value=new Set(JSON.parse(t)))}));var t=(0,r.computed)((function(){var e=(0,a.qt)().props,t=e.banners;return console.log("Page props:",e),console.log("Raw banners:",t),t?"object"!==Wr(t)||Array.isArray(t)?t:Object.values(t):[]})),n=(0,r.computed)((function(){var n;if(null===(n=t.value)||void 0===n||!n.length)return console.log("No active banners found"),[];var r=t.value.filter((function(t){return console.log("Processing banner:",t),!e.value.has(t.id)}));return console.log("Filtered banners:",r),r}));return{closedBanners:e,closeBanner:function(t){e.value.add(t),localStorage.setItem("closedBanners",JSON.stringify(Kr(e.value)))},activeBanners:t,visibleBanners:n,getBannerStyles:function(e){return{backgroundColor:(null==e?void 0:e.bg_color)||"#FFFFFF"}}}}},Jr=(0,B.Z)(Yr,[["render",function(e,t,n,o,a,i){var l;return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",Rr," Active banners: "+(0,r.toDisplayString)(o.activeBanners.length)+" Visible banners: "+(0,r.toDisplayString)(o.visibleBanners.length),1),(null===(l=o.activeBanners)||void 0===l?void 0:l.length)>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ur,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.visibleBanners,(function(e){var n,a,i,l,c,s,u,d,m,p,f,h,g,y,v;return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,style:(0,r.normalizeStyle)(o.getBannerStyles(null===(n=e.content)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.attributes)),class:"w-full py-3 px-4 text-center relative"},[(0,r.createElementVNode)("div",Hr," Banner ID: "+(0,r.toDisplayString)(e.id)+" Has content: "+(0,r.toDisplayString)(!(null===(i=e.content)||void 0===i||!i[0])),1),(0,r.createElementVNode)("button",{onClick:function(t){return o.closeBanner(e.id)},"aria-label":"close",class:"absolute right-2 top-1/2 -translate-y-1/2 p-2 hover:bg-black/5 rounded-full transition-colors duration-150",style:(0,r.normalizeStyle)({color:(null===(l=e.content)||void 0===l||null===(c=l[0])||void 0===c||null===(s=c.attributes)||void 0===s?void 0:s.text_color)||"#000000"})},jr(t[0]||(t[0]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])),12,zr),(0,r.createElementVNode)("div",Gr,[null!==(u=e.content)&&void 0!==u&&null!==(d=u[0])&&void 0!==d&&null!==(m=d.attributes)&&void 0!==m&&m.text?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,style:(0,r.normalizeStyle)({color:e.content[0].attributes.text_color||"#000000"})},[(0,r.createElementVNode)("div",{innerHTML:e.content[0].attributes.text},null,8,Zr)],4)):(0,r.createCommentVNode)("",!0),null!==(p=e.content)&&void 0!==p&&null!==(f=p[0])&&void 0!==f&&null!==(h=f.attributes)&&void 0!==h&&h.button_text&&null!==(g=e.content)&&void 0!==g&&null!==(y=g[0])&&void 0!==y&&null!==(v=y.attributes)&&void 0!==v&&v.button_url?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,href:e.content[0].attributes.button_url,class:(0,r.normalizeClass)(["px-4 py-2 rounded-lg transition-colors duration-150","bg-".concat(e.content[0].attributes.button_style||"primary","-500"),"hover:bg-".concat(e.content[0].attributes.button_style||"primary","-600"),"text-white"])},(0,r.toDisplayString)(e.content[0].attributes.button_text),11,qr)):(0,r.createCommentVNode)("",!0)])],4)})),128))])):(0,r.createCommentVNode)("",!0)],64)}]]);var Xr={class:"cookie-consent-banner__content"},Qr={class:"cookie-consent-banner__primary"},eo={class:"cookie-consent-banner__description"},to={class:"cookie-consent-banner__actions"},no={class:"cookie-consent-banner__preferences"},ro={class:"cookie-consent-banner__body"},oo={class:"cookie-consent-banner__options"},ao={class:"cookie-consent-banner__option"},io={class:"cookie-consent-banner__toggle"},lo={class:"cookie-consent-banner__option"},co={class:"cookie-consent-banner__toggle"},so={class:"cookie-consent-banner__actions"};var uo="cookie_consent_preferences",mo=365;function po(){if("undefined"==typeof document)return null;var e=document.cookie.split("; ").find((function(e){return e.startsWith(uo+"=")}));if(!e)return null;try{var t=e.split("=")[1];return JSON.parse(decodeURIComponent(t))}catch(e){return console.error("Error parsing consent cookie:",e),null}}function fo(e){if("undefined"!=typeof window){window.dataLayer=window.dataLayer||[];var t={analytics_storage:"granted"};e.marketing?(t.ad_storage="granted",t.ad_user_data="granted",t.ad_personalization="granted"):(t.ad_storage="denied",t.ad_user_data="denied",t.ad_personalization="denied"),window.dataLayer.push(["consent","update",t]),window.gtag&&"function"==typeof window.gtag&&window.gtag("consent","update",t),function(e){if("undefined"!=typeof document){var t=new Date;t.setTime(t.getTime()+24*mo*60*60*1e3);var n=encodeURIComponent(JSON.stringify(e));document.cookie="".concat(uo,"=").concat(n,"; expires=").concat(t.toUTCString(),"; path=/; SameSite=Lax")}}(e),window.dispatchEvent(new CustomEvent("consentUpdated",{detail:e}))}}function ho(){var e=po();return e?(fo(e),e):null}const go={name:"CookieConsentBanner",setup:function(){var e=(0,r.ref)(!1),t=(0,r.ref)(!1),n=(0,r.ref)("primary"),o=(0,r.ref)({anal
2ytics:!1,marketing:!1}),a=function(){"undefined"!=typeof navigator&&/bot|crawler|spider|crawling/i.test(navigator.userAgent)||null!==ho()||(e.value=!0,setTimeout((function(){t.value=!0}),10))},i=function(){t.value=!1,setTimeout((function(){e.value=!1}),300)};return(0,r.onMounted)((function(){var e=ho();e?o.value=e:"undefined"!=typeof window&&("requestIdleCallback"in window?requestIdleCallback(a,{timeout:2e3}):setTimeout(a,1e3))})),{shouldRender:e,isVisible:t,screen:n,preferences:o,acceptAll:function(){o.value={analytics:!0,marketing:!0},fo(o.value),i()},decline:function(){o.value={analytics:!1,marketing:!1},fo(o.value),i()},openPreferencesModal:function(){n.value="preferences"},closePreferencesModal:function(){n.value="primary"},savePreferencesFromModal:function(){fo(o.value),i()},closeBanner:i}}};var yo=n(54210),vo={insert:"head",singleton:!1};te()(yo.Z,vo);yo.Z.locals;const bo=(0,B.Z)(go,[["render",function(e,t,n,o,a,i){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{id:"cookie-consent-banner",class:(0,r.normalizeClass)(["cookie-consent-banner",{"cookie-consent-banner--visible":o.isVisible}])},[(0,r.createElementVNode)("div",Xr,[(0,r.withDirectives)((0,r.createElementVNode)("div",Qr,[(0,r.createElementVNode)("p",eo,[t[6]||(t[6]=(0,r.createTextVNode)(" We use cookies to improve our site. We don't sell or share your data. You can ",-1)),(0,r.createElementVNode)("a",{href:"#",class:"cookie-consent-banner__link",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(){return o.openPreferencesModal&&o.openPreferencesModal.apply(o,arguments)}),["prevent"]))},"manage your preferences here"),t[7]||(t[7]=(0,r.createTextVNode)(". ",-1))]),(0,r.createElementVNode)("div",to,[(0,r.createElementVNode)("button",{class:"cookie-consent-banner__button cookie-consent-banner__button--pill",onClick:t[1]||(t[1]=function(){return o.acceptAll&&o.acceptAll.apply(o,arguments)})}," Accept "),(0,r.createElementVNode)("button",{class:"cookie-consent-banner__button cookie-consent-banner__button--pill",onClick:t[2]||(t[2]=function(){return o.decline&&o.decline.apply(o,arguments)})}," Decline ")])],512),[[r.vShow,"primary"===o.screen]]),(0,r.withDirectives)((0,r.createElementVNode)("div",no,[t[12]||(t[12]=(0,r.createElementVNode)("div",{class:"cookie-consent-banner__header"},[(0,r.createElementVNode)("h3",{class:"cookie-consent-banner__title"},"Cookie Preferences")],-1)),(0,r.createElementVNode)("div",ro,[(0,r.createElementVNode)("div",oo,[(0,r.createElementVNode)("div",ao,[(0,r.createElementVNode)("label",io,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=function(e){return o.preferences.analytics=e})},null,512),[[r.vModelCheckbox,o.preferences.analytics]]),t[8]||(t[8]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-slider"},null,-1)),t[9]||(t[9]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-label"},[(0,r.createElementVNode)("strong",null,"Analytics Cookies"),(0,r.createElementVNode)("small",null,"Help us understand how visitors interact with our website")],-1))])]),(0,r.createElementVNode)("div",lo,[(0,r.createElementVNode)("label",co,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=function(e){return o.preferences.marketing=e})},null,512),[[r.vModelCheckbox,o.preferences.marketing]]),t[10]||(t[10]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-slider"},null,-1)),t[11]||(t[11]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-label"},[(0,r.createElementVNode)("strong",null,"Marketing Cookies"),(0,r.createElementVNode)("small",null,"Used to deliver personalized advertisements")],-1))])])])]),(0,r.createElementVNode)("div",so,[(0,r.createElementVNode)("button",{class:"cookie-consent-banner__button cookie-consent-banner__button--pill",onClick:t[5]||(t[5]=function(){return o.savePreferencesFromModal&&o.savePreferencesFromModal.apply(o,arguments)})}," Save Preferences ")])],512),[[r.vShow,"preferences"===o.screen]])])],2)),[[r.vShow,o.shouldRender]])}],["__scopeId","data-v-65f8774e"]]);function wo(e){return function(e){if(Array.isArray(e))return xo(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 xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xo(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 xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ko={key:0,"aria-label":"Breadcrumb",class:"w-full"},Eo={class:"flex flex-wrap items-center gap-y-1 py-3 text-sm text-gray-500"},So=["href"],Bo={key:1,"aria-current":"page",class:"truncate max-w-[70vw] font-medium text-gray-700"},Co={key:2,class:"mx-2 h-4 w-4 shrink-0 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"};const No={props:{items:{type:Array,default:function(){return[]}}}},_o=(0,B.Z)(No,[["render",function(e,t,n,o,a,i){return n.items&&n.items.length?((0,r.openBlock)(),(0,r.createElementBlock)("nav",ko,[(0,r.createElementVNode)("ol",Eo,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.items,(function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:o,class:"flex items-center min-w-0"},[o<n.items.length-1?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.url,class:"whitespace-nowrap hover:text-primary-600 hover:underline"},(0,r.toDisplayString)(e.name),9,So)):((0,r.openBlock)(),(0,r.createElementBlock)("span",Bo,(0,r.toDisplayString)(e.name),1)),o<n.items.length-1?((0,r.openBlock)(),(0,r.createElementBlock)("svg",Co,wo(t[0]||(t[0]=[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M7.21 14.77a.75.75 0 0 1 .02-1.06L11.168 10 7.23 6.29a.75.75 0 1 1 1.04-1.08l4.5 4.25a.75.75 0 0 1 0 1.08l-4.5 4.25a.75.75 0 0 1-1.06-.02Z","clip-rule":"evenodd"},null,-1)])))):(0,r.createCommentVNode)("",!0)])})),128))])])):(0,r.createCommentVNode)("",!0)}]]),Vo={components:{Header:nr,Footer:Fr,Container:gr.Z,Banner:Jr,CookieConsentBanner:bo,Breadcrumbs:_o},computed:{breadcrumbs:function(){var e;return null!==(e=(0,a.qt)().props.breadcrumbs)&&void 0!==e?e:[]}}},Io=(0,B.Z)(Vo,[["render",function(e,t,n,a,i,l){var c=(0,r.resolve
2Component)("CookieConsentBanner"),s=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("Header"),d=(0,r.resolveComponent)("Container"),m=(0,r.resolveComponent)("Breadcrumbs"),p=(0,r.resolveComponent)("Footer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(c),(0,r.createVNode)(s),(0,r.createVNode)(d,{class:""},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(u)]})),_:1}),l.breadcrumbs.length?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,class:""},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(m,{items:l.breadcrumbs},null,8,["items"])]})),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("main",null,[(0,r.renderSlot)(e.$slots,"default")]),(0,r.createVNode)(p)])}]])},3754:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(41916),o={key:0},a={key:1,class:"flex flex-wrap gap-2"};var i=n(72326);function l(e){return function(e){if(Array.isArray(e))return c(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 c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const s={props:{grades:{type:Array,required:!0},showColors:{type:Boolean,default:!0},plain:{type:Boolean,default:!1}},computed:{processedGrades:function(){return this.grades?function(e){if(!e||e.length<=7)return l(e).sort(i.dP);for(var t=function(e){return-1===e?"PK":0===e?"K":13===e?"AP":e.toString()},n=l(e).sort(i.dP).map((function(e){return"PK"===e?-1:"K"===e?0:"AP"===e?13:parseInt(e)})),r=[],o=n[0],a=n[0],c=1;c<n.length;c++)n[c]===a+1||(o===a?r.push(t(o)):r.push("".concat(t(o),"-").concat(t(a))),o=n[c]),a=n[c];return o===a?r.push(t(o)):r.push("".concat(t(o),"-").concat(t(a))),r.sort(i.dP)}(this.grades):[]},nonK12Grades:function(){if(!this.processedGrades)return[];var e=["K","1","2","3","4","5","6","7","8","9","10","11","12"];return this.processedGrades.filter((function(t){return!e.includes(t)}))},plainGradesText:function(){return this.processedGrades.length?this.hasK12(this.processedGrades)?["K-12"].concat(l(this.nonK12Grades)).join(", "):this.processedGrades.join(", "):""}},methods:{gradeColorMap:function(e){return e?e.includes("-")?"#FFEDB8":{PK:"#FFEDB8",K:"#FFEDB8",1:"#FFEDB8",2:"#FFEDB8",3:"#FFEDB8",4:"#FFEDB8",5:"#FFEDB8",6:"#FFEDB8",7:"#FFEDB8",8:"#FFEDB8",9:"#FFEDB8",10:"#FFEDB8",11:"#FFEDB8",12:"#FFEDB8",AP:"#FFEDB8","K-12":"#FFEDB8"}[e]||"#FFEDB8":"#FFEDB8"},sortGradeBands:i.dP,hasK12:function(e){if(!e)return!1;return["K","1","2","3","4","5","6","7","8","9","10","11","12"].every((function(t){return e.includes(t)}))}}};const u=(0,n(83744).Z)(s,[["render",function(e,t,n,i,l,c){return n.plain?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,(0,r.toDisplayString)(c.plainGradesText),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[c.hasK12(c.processedGrades)?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("span",{style:(0,r.normalizeStyle)({backgroundColor:n.showColors?c.gradeColorMap("K-12"):""}),class:"px-3 py-1.5 rounded-full uppercase text-xs font-medium whitespace-nowrap flex-shrink-0"}," K-12 ",4),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.nonK12Grades,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,style:(0,r.normalizeStyle)({backgroundColor:n.showColors?c.gradeColorMap(e):""}),class:"px-2 py-1.5 rounded-full uppercase text-xs font-medium whitespace-nowrap flex-shrink-0"},(0,r.toDisplayString)(e),5)})),128))],64)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(c.processedGrades,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,style:(0,r.normalizeStyle)({backgroundColor:n.showColors?c.gradeColorMap(e):""}),class:"px-2 py-1.5 rounded-full uppercase text-xs font-medium whitespace-nowrap flex-shrink-0"},(0,r.toDisplayString)(e),5)})),128))]))}]])},93331:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var r=n(41916),o={class:"md:grid grid-cols-2 md:mt-14 text-[#2B2B2B]"},a={class:"my-4 flex flex-col"},i=["src"],l={class:"mx-2 md:mx-0 md:mt-8 md:mr-4"};var c=n(19394),s=n(49613),u=n(87380),d=n(64561);const m={components:{Container:s.Z,MainLayout:c.Z,TextComponent:u.default},data:function(){var e,t,n;return{isMobile:"undefined"!=typeof window?window.innerWidth<768:null!==(e=null===(t=this.$page)||void 0===t||null===(n=t.props)||void 0===n?void 0:n.isMobileUA)&&void 0!==e&&e}},mixins:[d.Z],mounted:function(){if(window.addEventListener("resize",this.updateIsMobile),document.getElementById("givebutter-script"))window.Givebutter&&window.Givebutter.init();else{var e=document.createElement("script");e.id="givebutter-script",e.async=!0,e.src="https://widgets.givebutter.com/latest.umd.cjs?acct=ZYO24fsgzkLQgnhJ&p=other",document.body.appendChild(e),e.onload=function(){window.Givebutter&&window.Givebutter.init()}}},props:{heading:{type:Object},subHeading:{type:Object},description:{type:Object},subDescription:{type:Object},imageSrc:{type:String,default:"https://subjecttoclimate.org/img/donate/Captain-Climate-standing.png"}},beforeUnmount:function(){window.removeEventListener("resize",this.updateIsMobile)},methods:{updateIsMobile:function(){this.isMobile=window.innerWidth<768}}};const p=(0,n(83744).Z)(m,[["render",function(e,t,n,c,s,u){var d=(0,r.resolve
2Component)("TextComponent"),m=(0,r.resolveComponent)("givebutter-widget"),p=(0,r.resolveComponent)("Container");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{style:(0,r.normalizeStyle)(e.computedPaddingStyle)},[(0,r.createVNode)(p,{class:"px-[18px]"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(d,(0,r.normalizeProps)((0,r.guardReactiveProps)(n.heading)),null,16),(0,r.createVNode)(d,(0,r.normalizeProps)((0,r.guardReactiveProps)(n.subHeading)),null,16),(0,r.createVNode)(d,(0,r.normalizeProps)((0,r.guardReactiveProps)(n.description)),null,16),(0,r.createVNode)(d,(0,r.normalizeProps)((0,r.guardReactiveProps)(n.subDescription)),null,16)]),(0,r.createElementVNode)("img",{src:n.imageSrc,alt:"captain STC giving logo",class:"w-2/5 md:mt-8 hidden md:block"},null,8,i)])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(m,{id:"gRD26j",align:"center"})])])])]})),_:1})],4)}]])},87380:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(41916),o=["innerHTML"];const a={components:{Container:n(49613).Z},data:function(){var e,t,n;return{isMobile:"undefined"!=typeof window?window.innerWidth<768:null!==(e=null===(t=this.$page)||void 0===t||null===(n=t.props)||void 0===n?void 0:n.isMobileUA)&&void 0!==e&&e}},props:{content:String,horizontalPadding:{type:Number,default:18},topPadding:{type:Number,default:10},bottomPadding:{type:Number,default:10},mobileTopPadding:{type:Number,default:10},mobileBottomPadding:{type:Number,default:10},textColor:{type:String,default:null},textAlignment:{type:String,default:"justify-start"},font:{type:String,default:"font-normal"}},methods:{updateIsMobile:function(){this.isMobile=window.innerWidth<768}},computed:{textWeightSize:function(){switch(this.font){case"heading":return{size:"text-[28px] lg:text-[40px]",weight:"font-bold"};case"heading-2":return{size:"text-[26px] lg:text-[36px]",weight:"font-bold"};case"section-header":return{size:"text-[24px] lg:text-[28px]",weight:"font-semibold"};case"sub-header":return{size:"text-[18px] lg:text-[28px]",weight:"font-semibold"};case"hero-body":return{size:"text-[18px] lg:text-[24px]",weight:"font-normal"};case"body-regular":return{size:"text-[18px]",weight:"font-normal"};case"details-regular":return{size:"text-[16px]",weight:"font-normal"};case"chip-regular":return{size:"text-[12px]",weight:"font-normal"};default:return{size:"text-[20px]",weight:"font-normal"}}}}};const i=(0,n(83744).Z)(a,[["render",function(e,t,n,a,i,l){var c=(0,r.resolveComponent)("Container");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{style:(0,r.normalizeStyle)({"padding-bottom":i.isMobile?"".concat(n.mobileBottomPadding,"px"):"".concat(n.bottomPadding,"px"),"padding-top":i.isMobile?"".concat(n.mobileTopPadding,"px"):"".concat(n.topPadding,"px")})},[(0,r.createVNode)(c,{class:(0,r.normalizeClass)("px-[".concat(n.horizontalPadding,"px]"))},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{innerHTML:n.content,class:(0,r.normalizeClass)(["leading-[normal] block w-full",[n.textAlignment,l.textWeightSize.size,l.textWeightSize.weight]]),style:(0,r.normalizeStyle)([n.textColor?"color:".concat(n.textColor):""])},null,14,o)]})),_:1},8,["class"])],4)}]])}}]); 3//# sourceMappingURL=3331.4ffc3c57.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.