PageSourceSearch

https://subjecttoclimate.org/js/tenant/pages/my-account-MyAccountPage-vue.cced9196.js

js subjecttoclimate.org collected 2026-09-24 09:11:09 UTC 181,457 bytes, 3 lines download raw bytes

vendor: 5,075 bytes, lines 1-2
1/*! For license information please see my-account-MyAccountPage-vue.cced9196.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8831,4054,1532,2083,5770,7259,2276,7350,286,5077],{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 V(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 v={};u(v,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(C([])));b&&b!==t&&n.call(b,l)&&(v=b);var w=g.prototype=f.prototype=Object.create(v);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 A()}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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function C(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:A}}function A(){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=C,V.prototype={constructor:V,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(N),!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),N(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;N(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),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})},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]}));o.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}
2.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]}));o.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},49613:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(41916),o={class:"max-w-[1088px] mx-auto h-full"};const a={},i=(0,n(83744).Z)(a,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"default")])])}]])},19394:(e,t,n)=>{n.d(t,{Z:()=>_o});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"},v={class:"inline-block whitespace-nowrap"},y={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-2
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 N={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)}}}},V={components:{DropDownMenu:(0,B.Z)(N,[["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",v,(0,r.toDisplayString)(n.menu.title),1),i.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",y,[((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{}}},C=(0,B.Z)(V,[["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 A(e){return function(e){if(Array.isArray(e))return _(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 _(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 _(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 _(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"},L={key:0,class:"lg:hidden"},I={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-white z-50 lg:hidden"},M={class:""},D={class:"w-full flex justify-between p-4"},j={class:"flex items-center space-x-2"},F={class:"relative"},O={class:"mt-6"},q={class:"mt-6 space-y-4"};function P(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 R={class:(0,r.normalizeClass)(["flex items-center justify-between w-full space-x-1"])},H={class:"font-semibold"},Z={key:0},G={class:(0,r.normalizeClass)(["w-6 h-6 duration-150"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},z={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"],Y={class:"px-4 py-2 rounded hover:bg-gray-100 duration-75 text-lg flex flex-col"},W={class:"text-base font-semibold"},X={class:"text-base text-[#3f3f3f]"};const J={props:{menu:Object}},Q={components:{DropDownMenuItem:(0,B.Z)(J,[["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",Y,[(0,r.createElementVNode)("span",W,(0,r.toDisplayString)(n.menu.title),
21),(0,r.createElementVNode)("span",X,(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",R,[(0,r.createElementVNode)("span",H,(0,r.toDisplayString)(n.menu.title),1),i.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",Z,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",G,P(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",z,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return i.expanded=!1}),class:"flex items-center space-x-2"},P(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"],ve=["href"],ye={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,v,y,b,w,x,k,E,S,B,N,V,C,A,_;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,ve)])])):(0,r.createCommentVNode)("",!0)]})),_:1})])):((0,r.openBlock)(),(0,r.createElementBlock)("div",ye,[(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===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[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===(N=B["account-dropdown-background"])||void 0===N?void 0:N[500])||"#333333",color:(null===(V=i.settings)||void 0===V||null===(C=V.theme)||void 0===C||null===(A=C.colors)||void 0===A||null===(_=A["account-dropdown-foreground"])||void 0===_?void 0:_[500])||"#FFFFFF"})},"Join",12,we)]))])}],["__scopeId","data-v-de324c16"]]);var Be=["href"];const Ne={methods:{}},Ve=(0,B.Z)(Ne,[["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)}]]),Ce={components:{DropDownMenu:oe,Auth:Se,Logo:ce,DonateButton:Ve},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 Ae=n(71644),_e={insert:"head",singleton:!1};te()(Ae.Z,_e);Ae.Z.locals;const Te=(0,B.Z)(Ce,[["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",L,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return a.menuIsVisible=!0}),class:"w-6 h-6"},A(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",I,[(0,r.createElementVNode)("div",M,[(0,r.createElementVNode)("div",D,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(l)]),(0,r.createElementVNode)("div",j,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return a.menuIsVisible=!1}),class:"w-8 h-8"},A(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",O,[((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",q,[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 Le(e){return function(e){if(Array.isArray(e))return Ie(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 Ie(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 Ie(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 Ie(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 Me={class:""},De={key:0,class:"relative"},je={key:0,class:"absolute bg-white w-96 right-0 top-12 rounded-lg p-4 z-10"},Fe=["href"],Oe=["href"],qe=["href"],Pe={key:1,class:"flex items-center"},Ue=["href"];const Re={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:{}},He=(0,B.Z)(Re,[["render",function(e,t,n,o,a,i){var l,c,s,u,d,m,p,f,h,g,v,y,b,w,x,k;return(0,r.openBlock)(),(0,r.createElementBlock)("div",Me,[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"},Le(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",je,[(0,r.createElementVNode)("a",{href:e.route("account")},Le(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")},Le(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,Oe),(0,r.createElementVNode)("a",{href:e.route("logout")},Le(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,qe)])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Pe,[(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===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[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 Ze(e){return function(e){if(Array.isArray(e))return Ge(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 Ge(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 Ge(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 Ge(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 ze={class:"flex items-center justify-between"},Ke=["href"],$e={key:0,class:"text-xs text-gray-500 flex items-center gap-2"},Ye={class:"hidden"},We={class:"mt-2"},Xe=["href"],Je={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,v=g&&g(g(N([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=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 V()}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 N(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:V}}function V(){return{value:void 0,done:!0}}return p.prototype=f,r(y,"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(y),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(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"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,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:N(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 v(){return y.apply(this,arguments)}function y(){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 v()}),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 v()}),a);case 19:case"end":return e.stop()}}),e)})),y=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)}))},y.apply(this,arguments)}return(0,r.onMounted)((function(){v()})),{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"},vt={key:0,class:"space-y-4 p-5"},yt={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"},Nt={key:2,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Vt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Ct={key:1,class:"p-5 text-center text-gray-500"},At={key:"teaching",class:"section-container","data-section":"teaching"},_t={key:0,class:"space-y-4 p-5"},Tt={key:0,class:"text-center py-4 text-gray-500"},Lt={key:1,class:"space-y-2"},It=["aria-label","onClick","onKeydown"],Mt={class:"py-3"},Dt={class:"space-y-2"},jt={class:"text-gray-500 group-hover:text-gray-900"},Ft={class:"flex flex-wrap items-center gap-1.5"},Ot={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},qt={key:2,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Pt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Ut={key:1,class:"p-5 text-center text-gray-500"},Rt={key:"guides",class:"section-container","data-section":"guides"},Ht={key:0,class:"space-y-4 p-5"},Zt={key:0,class:"text-center py-4 text-gray-500"},Gt={key:1,class:"space-y-2"},zt=["aria-label","onClick","onKeydown"],Kt={class:"py-3"},$t={class:"space-y-2"},Yt={class:"text-gray-500 group-hover:text-gray-900"},Wt={class:"flex flex-wrap items-center gap-1.5"},Xt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Jt={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"},vn=["aria-label","onClick","onKeydown"],yn={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"},Nn={key:0,class:"space-y-4 p-5"},Vn={key:0,class:"text-center py-4 text-gray-500"},Cn={key:1,class:"space-y-2"},An=["aria-label","onClick","onKeydown"],_n={class:"py-3"},Tn={class:"space-y-2"},Ln={class:"text-gray-500 group-hover:text-gray-900"},In={class:"flex flex-wrap items-center gap-1.5"},Mn={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"},jn={key:1,class:"p-5 text-center text-gray-500"};var Fn=n(15229),On=n(3754),qn=n(47393),Pn=n(91440),Un=n(72326);function Rn(e){return Rn="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},Rn(e)}function Hn(){Hn=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,v=g&&g(g(N([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=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"==Rn(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 V()}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 N(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:V}}function V(){return{value:void 0,done:!0}}return p.prototype=f,r(y,"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(y),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(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"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,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:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Zn(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 Gn={components:{Link:a.rU,Grades:On.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",v=(null===(l=(0,a.qt)().props.integrations)||void 0===l||null===(c=l.meilisearch)||void 0===c?void 0:c.key)||window.MEILISEARCH_KEY||"",y=(0,qn.wA)();v&&(0,qn.qd)(v,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:v,requestConfig:{headers:{"X-MS-USER-ID":y}}}),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}),N=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),V=function(){var e,t=(e=Hn().mark((function e(t){var n,r,o,a,i,l,c,u,d;return Hn().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,N.hits=[],N.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,Pn.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,N.hits=d.results[5].hits||[],N.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;
2case 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){Zn(a,r,o,i,l,"next",e)}function l(e){Zn(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,V(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:N,switchTab:function(e){u.value=e},selectItem:function(e,t,n){(0,qn.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 zn=n(43824),Kn={insert:"head",singleton:!1};te()(zn.Z,Kn);zn.Z.locals;const $n={components:{SearchResultsDirect:(0,B.Z)(Gn,[["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",vt,[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",yt,"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",Nt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Vt,(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",Ct,"Enter a search term and click search to see results"))])):"teaching"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",At,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",_t,[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",Lt,[((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",Mt,[(0,r.createElementVNode)("div",Dt,[(0,r.createElementVNode)("h4",jt,(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",Ot,(0,r.toDisplayString)(e.languages[0]),1)):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",qt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Pt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,It)})),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",Rt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ht,[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",Zt,"Searching...")):o.guidesResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Gt,[((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",Yt,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Wt,[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",Xt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Jt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,zt)})),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",yn,[(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,vn)})),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",Nn,[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",Vn,"Searching...")):o.newsResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Cn,[((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",_n,[(0,r.createElementVNode)("div",Tn,[(0,r.createElementVNode)("h4",Ln,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",In,[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",Mn,(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,An)})),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",jn,"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 Yn=n(2364),Wn={insert:"head",singleton:!1};te()(Yn.Z,Wn);Yn.Z.locals;const Xn=(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 Jn=n(32608),Qn=n(76306);const er={components:{PopSearchSkeleton:Xn,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,qn.wA)();return{client:(0,Jn.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:C,MobileMenu:Te,Logo:ce,DesktopAuth:He,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",ze,[(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,Ze(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",Ye,[(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",We,[(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",Je,[(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,Xe)})),128))]})),_:1},8,["onRender"])])]})),_:1},8,["searchClient","indexName"])]})),_:1},8,["term"])}]]),DonateButton:Ve},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"),v=(0,r.resolveComponent)("MobileMenu"),y=(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)(v,{expandedMenuId:a.expandedMenuId,"onUpdate:expandedMenuId":t[1]||(t[1]=function(e){return a.expandedMenuId=e}),class:"lg:hidden"},null,8,["expandedMenuId"]),(0,r.createVNode)(y,{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),vr={href:"/",class:"h-10 block"},yr=["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",vr,[(0,r.createElementVNode)("img",{alt:"Avatar",class:"h-full",src:i.url},null,8,yr)])])}]]);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}},Nr=(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 Vr(e){return function(e){if(Array.isArray(e))return Cr(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 Cr(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 Cr(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 Cr(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={key:0,class:"flex space-x-[16px]"},_r=["href"],Tr=["href"],Lr=["href"],Ir=["href"];const Mr={computed:{socialMedias:function(){return(0,a.qt)().props.footer.socialMedias}}},Dr=(0,B.Z)(Mr,[["render",function(e,t,n,o,a,i){return i.socialMedias?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ar,[i.socialMedias.linkedin?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:i.socialMedias.linkedin,href:i.socialMedias.linkedin,class:"block",target:"_blank"},Vr(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,_r)):(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"},Vr(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"},Vr(t[2]||(t[2]=[(0,r.createElementVNode)("img",{alt:"Pinterest",src:"/img/social-media/pinterest.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Lr)):(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"},Vr(t[3]||(t[3]=[(0,r.createElementVNode)("img",{alt:"Instagram",src:"/img/social-media/instagram.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Ir)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}]]);const jr={components:{Container:gr.Z,Logo:wr,Menu:Nr,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)(jr,[["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 Or(e){return function(e){if(Array.isArray(e))return qr(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 qr(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 qr(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 qr(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 Pr={class:"hidden"},Ur={key:0,class:"w-full"},Rr={class:"hidden"},Hr=["onClick"],Zr={class:"flex items-center justify-center space-x-4 pr-8"},Gr=["innerHTML"],zr=["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 Yr(e){return Yr="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},Yr(e)}const Wr={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"!==Yr(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"}}}}},Xr=(0,B.Z)(Wr,[["render",function(e,t,n,o,a,i){var l;return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",Pr," 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,v,y;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",Rr," 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"})},Or(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,Hr),(0,r.createElementVNode)("div",Zr,[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,Gr)],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!==(v=g[0])&&void 0!==v&&null!==(y=v.attributes)&&void 0!==y&&y.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,zr)):(0,r.createCommentVNode)("",!0)])],4)})),128))])):(0,r.createCommentVNode)("",!0)],64)}]]);var Jr={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 vo=n(54210),yo={insert:"head",singleton:!1};te()(vo.Z,yo);vo.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",Jr,[(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"},No={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 Vo={props:{items:{type:Array,default:function(){return[]}}}},Co=(0,B.Z)(Vo,[["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",No,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)}]]),Ao={components:{Header:nr,Footer:Fr,Container:gr.Z,Banner:Xr,CookieConsentBanner:bo,Breadcrumbs:Co},computed:{breadcrumbs:function(){var e;return null!==(e=(0,a.qt)().props.breadcrumbs)&&void 0!==e?e:[]}}},_o=(0,B.Z)(Ao,[["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)])}]])},83173:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={class:"bg-[#E8FAE8] md:bg-white pb-10"},l={class:"mx-2"},c={class:"flex"},s={class:"md:hidden"},u={key:0,class:"text-[26px] md:text-5xl font-semibold ml-20 md:hidden"},d={key:1,class:"text-[26px] md:text-5xl font-semibold ml-20 md:hidden"},m={class:"md:grid md:grid-cols-4 md:gap-12 border rounded-xl pl-4 md:pl-0 bg-white"},p={class:"col-span-1 bg-[#E8FAE8] rounded-xl border relative hidden md:block"},f={class:"absolute bottom-8 w-11/12"},h=["href"];var g=n(19394),v=n(49613),y=(n(87879),n(41389)),b=n(65598),w=n(145),x=n(50330),k=n(92327),E=n(21649),S=n(20460);const B={components:{MainLayout:g.Z,Container:v.Z,MenuIcon:y.default,SideBar:b.default,ProfileTab:w.default,TabIcon:x.default,NewsLetterTab:k.default,SupportTab:E.default,SideMenu:S.default},data:function(){return{errors:!1,tab:"account",menuIsVisible:!1}},props:{},watch:{},setup:function(){return{}},methods:{account:function(){this.tab="account"},newsLetters:function(){this.tab="newsletters"},support:function(){this.tab="support"},toggleMenu:function(){this.menuIsVisible=!1}},computed:{},mounted:function(){}};const N=(0,n(83744).Z)(B,[["render",function(e,t,n,a,g,v){var y=(0,r.resolveComponent)("SideMenu"),b=(0,r.resolveComponent)("MenuIcon"),w=(0,r.resolveComponent)("Container"),x=(0,r.resolveComponent)("SideBar"),k=(0,r.resolveComponent)("ProfileTab"),E=(0,r.resolveComponent)("SupportTab"),S=(0,r.resolveComponent)("MainLayout");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[g.menuIsVisible?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,onToggleMenu:v.toggleMenu,class:"md:hidden"},null,8,["onToggleMenu"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(S,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(w,{class:"py-4"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("header",c,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(b,{onClick:t[0]||(t[0]=function(e){return g.menuIsVisible=!0}),class:""})]),t[2]||(t[2]=(0,r.createElementVNode)("h1",{class:"text-[26px] md:text-5xl font-semibold ml-16 md:ml-0 hidden md:block"},"My Account",-1)),"account"==g.tab?((0,r.openBlock)(),(0,r.createElementBlock)("h1",u,"My Account")):(0,r.createCommentVNode)("",!0),"support"==g.tab?((0,r.openBlock)(),(0,r.createElementBlock)("h1",d,"Support")):(0,r.createCommentVNode)("",!0)])]})),_:1}),(0,r.createVNode)(w,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("div",p,[(0,r.createVNode)(x,{modelValue:g.tab,"onUpdate:modelValue":t[1]||(t[1]=function(e){return g.tab=e})},null,8,["modelValue"]),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("a",{href:e.route("logout")},o(t[3]||(t[3]=[(0,r.createElementVNode)("div",{class:"flex items-start pl-6 py-2 cursor-pointer ml-4 hover:bg-[#FFABAB] rounded-[12px]",href:"",onclick:""},[(0,r.createElementVNode)("div",{class:"flex items-center gap-x-3 pl-1"},[(0,r.createElementVNode)("svg",{width:"24",height:"23",viewBox:"0 0 24 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("mask",{id:"mask0_1603_2026",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"23"},[(0,r.createElementVNode)("rect",{width:"24",height:"22.7857",fill:"#2B2B2B"})]),(0,r.createElementVNode)("g",{mask:"url(#mask0_1603_2026)"},[(0,r.createElementVNode)("path",{d:"M5 19.9372C4.45 19.9372 3.97917 19.7
2513 3.5875 19.3794C3.19583 19.0076 3 18.5605 3 18.0384V4.74671C3 4.22454 3.19583 3.77753 3.5875 3.40568C3.97917 3.03383 4.45 2.8479 5 2.8479H12V4.74671H5V18.0384H12V19.9372H5ZM16 16.1396L14.625 14.7629L17.175 12.3419H9V10.4431H17.175L14.625 8.02216L16 6.64552L21 11.3925L16 16.1396Z",fill:"#262626"})])]),(0,r.createElementVNode)("p",{class:"text-black text-lg font-medium"}," Logout ")])],-1)])),8,h)])]),"account"==g.tab?((0,r.openBlock)(),(0,r.createBlock)(k,{key:0})):"support"==g.tab?((0,r.openBlock)(),(0,r.createBlock)(E,{key:1})):(0,r.createCommentVNode)("",!0)])]})),_:1})])])]})),_:1})],64)}]])},39038:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(41916),o={class:"sm:items-start mt-4"},a={class:"mt-2"},i={class:"flex"},l={class:"space-x-4"},c=["value"],s={class:"ml-2 align-middle"};var u=[{label:"K-2",value:"k-2"},{label:"3-5",value:"3-5"},{label:"6-8",value:"6-8"},{label:"9-12",value:"9-12"},{label:"AP® / College",value:"ap-college"}];const d={props:{modelValue:Array},data:function(){return{allGradeBands:u}},computed:{gradeBands:{get:function(){return this.modelValue},set:function(e){this.$emit("update:modelValue",e)}}}};const m=(0,n(83744).Z)(d,[["render",function(e,t,n,u,d,m){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[t[2]||(t[2]=(0,r.createElementVNode)("span",{class:"block text-lg font-medium text-zinc-800 sm:mt-2 sm:pt-2"}," Grade Levels Taught ",-1)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("fieldset",i,[t[1]||(t[1]=(0,r.createElementVNode)("legend",{class:"sr-only text-black"},[(0,r.createElementVNode)("span",{class:""}," Grades ")],-1)),(0,r.createElementVNode)("div",l,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.allGradeBands,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("label",{key:e.value,class:"font-medium text-gray-700 text-lg pb-2 inline-block ml-1"},[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return m.gradeBands=e}),value:e.value,type:"checkbox",class:"focus:ring-[#546FA3] h-4 w-4 text-[#546FA3] border-[#49454F] align-middle rounded-sm"},null,8,c),[[r.vModelCheckbox,m.gradeBands]]),(0,r.createElementVNode)("span",s,(0,r.toDisplayString)(e.label),1)])})),128))])])])])}]])},41389:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={xmlns:"http://www.w3.org/2000/svg",width:"31",height:"34",viewBox:"0 0 31 34",fill:"none"};const l={},c=(0,n(83744).Z)(l,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",i,o(t[0]||(t[0]=[(0,r.createElementVNode)("g",{id:'🦆 icon "menu"'},[(0,r.createElementVNode)("path",{id:"Vector",d:"M3.875 24.0833C3.875 24.8657 4.50926 25.5 5.29167 25.5H25.7083C26.4907 25.5 27.125 24.8657 27.125 24.0833C27.125 23.3009 26.4907 22.6667 25.7083 22.6667H5.29167C4.50926 22.6667 3.875 23.3009 3.875 24.0833ZM3.875 17C3.875 17.7824 4.50926 18.4167 5.29167 18.4167H25.7083C26.4907 18.4167 27.125 17.7824 27.125 17C27.125 16.2176 26.4907 15.5833 25.7083 15.5833H5.29167C4.50926 15.5833 3.875 16.2176 3.875 17ZM5.29167 8.5C4.50926 8.5 3.875 9.13426 3.875 9.91667C3.875 10.6991 4.50926 11.3333 5.29167 11.3333H25.7083C26.4907 11.3333 27.125 10.6991 27.125 9.91667C27.125 9.13426 26.4907 8.5 25.7083 8.5H5.29167Z",fill:"#2B2B2B"})],-1)])))}]])},92327:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(41916),o={class:"mt-5 md:mt-0 md:col-span-3 pr-10"},a={class:"space-y-4"},i={class:""},l={class:""},c={class:""};var s=n(49613);n(87879);const u={components:{Container:s.Z},data:function(){return{teacherNewsSelected:!1,studentNewsSelected:!1,authorsNewsSelected:!1}},props:{},watch:{},setup:function(){return{}},methods:{},computed:{},mounted:function(){}};const d=(0,n(83744).Z)(u,[["render",function(e,t,n,s,u,d){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[t[12]||(t[12]=(0,r.createElementVNode)("h1",{class:"text-2xl font-medium text-black mt-6 mb-2"},"Newsletter Preferences",-1)),t[13]||(t[13]=(0,r.createElementVNode)("hr",null,null,-1)),t[14]||(t[14]=(0,r.createElementVNode)("h3",{class:"text-black text-lg font-medium leading-normal mt-2 mb-4"},"Stay up to date with SubjectToClimate by opting into our various newsletters.",-1)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["w-[617px] h-[180px] rounded-[11px] py-4 px-5",u.teacherNewsSelected?"bg-[#A4EBA2]":"bg-[#EEF1F6] hover:bg-[#
2E8FAE8]"])},[t[4]||(t[4]=(0,r.createElementVNode)("div",{class:"text-zinc-800 text-lg font-semibold mb-2"},"SubjectToClimate Teacher Newsletter",-1)),t[5]||(t[5]=(0,r.createElementVNode)("p",{class:"mb-2 text-lg"},[(0,r.createTextVNode)("Subscribe to our main newsletter for "),(0,r.createElementVNode)("span",{class:"font-bold"},"monthly"),(0,r.createTextVNode)(" updates on the latest teaching resources, lesson plans and strategies on incorporating climate education.")],-1)),(0,r.createElementVNode)("label",i,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return u.teacherNewsSelected=e}),type:"checkbox",value:"",class:"focus:[#546FA3] h-4 w-4 text-[#546FA3] border-gray-300 rounded"},null,512),[[r.vModelCheckbox,u.teacherNewsSelected]]),t[3]||(t[3]=(0,r.createElementVNode)("span",{class:"ml-4"},"Receive emails",-1))])],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["w-[617px] h-[180px] rounded-[11px] py-4 px-5",u.studentNewsSelected?"bg-[#A4EBA2]":"bg-[#EEF1F6] hover:bg-[#E8FAE8]"])},[t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"text-zinc-800 text-lg font-semibold mb-2"},"News for Students",-1)),t[8]||(t[8]=(0,r.createElementVNode)("p",{class:"mb-2 text-lg"},"Sign up for our 'News for Students' newsletter to receive the latest global climate news to share with your class. It features articles with varied reading levels and assessments ideal for Grades 5-12.",-1)),(0,r.createElementVNode)("label",l,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return u.studentNewsSelected=e}),type:"checkbox",value:"",class:"focus:[#546FA3] h-4 w-4 text-[#546FA3] border-gray-300 rounded"},null,512),[[r.vModelCheckbox,u.studentNewsSelected]]),t[6]||(t[6]=(0,r.createElementVNode)("span",{class:"ml-4"},"Receive emails",-1))])],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["w-[617px] h-[180px] rounded-[11px] py-4 px-5",u.authorsNewsSelected?"bg-[#A4EBA2]":"bg-[#EEF1F6] hover:bg-[#E8FAE8]"])},[t[10]||(t[10]=(0,r.createElementVNode)("div",{class:"text-zinc-800 text-lg font-semibold mb-2"},"Favorite Authors",-1)),t[11]||(t[11]=(0,r.createElementVNode)("p",{class:"mb-2 text-lg"},[(0,r.createTextVNode)("Opt in to receive notifications for when your favorite resource creator publishes something new! Vie
2w and manage your favorite writers in the "),(0,r.createElementVNode)("a",{href:"/my-library",class:"underline"},"My Library page"),(0,r.createTextVNode)(".")],-1)),(0,r.createElementVNode)("label",c,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return u.authorsNewsSelected=e}),type:"checkbox",value:"",class:"focus:[#546FA3] h-4 w-4 text-[#546FA3] border-gray-300 rounded"},null,512),[[r.vModelCheckbox,u.authorsNewsSelected]]),t[9]||(t[9]=(0,r.createElementVNode)("span",{class:"ml-4"},"Receive emails",-1))])],2)]),t[15]||(t[15]=(0,r.createElementVNode)("hr",{class:"mb-8 mt-14"},null,-1))])}]])},145:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={class:"mt-5 md:mt-0 md:col-span-3 pr-10"},l={id:"errors-top"},c={key:0,class:"rounded-md bg-red-50 p-4"},s={class:"flex"},u={class:"ml-3"},d={class:"mt-2 text-sm text-red-700"},m={class:"list-disc pl-5 space-y-1"},p={class:"sm:rounded-md sm:overflow-hidden"},f={class:"sm:items-start"},h={class:"mt-1 sm:col-span-5"},g={class:"sm:items-start mt-4"},v={class:"mt-1 sm:col-span-5"},y={class:"sm:items-start mt-4"},b={class:"mt-1 sm:col-span-5"},w={class:"md:flex md:justify-between"},x={class:"mt-5 mb-8"},k={key:0},E={id:"errors-bottom"},S={key:0,class:"rounded-md bg-red-50 p-4"},B={class:"flex"},N={class:"ml-3"},V={class:"text-sm font-medium text-red-800"},C={class:"mt-2 text-sm text-red-700"},A={class:"list-disc pl-5 space-y-1"};var _=n(5121),T=n(49613),L=(n(87879),n(65598)),I=n(39038),M=n(37654);function D(e){return D="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},D(e)}function j(){j=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,v=g&&g(g(N([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=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"==D(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 V()}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&&
2(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 N(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:V}}function V(){return{value:void 0,done:!0}}return p.prototype=f,r(y,"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(y),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(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"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,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:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function F(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 O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){F(a,r,o,i,l,"next",e)}function l(e){F(a,r,o,i,l,"throw",e)}i(void 0)}))}}const q={components:{Container:T.Z,SideBar:L.default,GradesPicker:I.default,SubjectsPicker:M.default},data:function(){return{errors:{},saved:!1,user:{name:"",email:"",role:""},subjects:[],gradeBands:[]}},props:{},watch:{},setup:function(){return{}},methods:{save:function(){var e=this;return O(j().mark((function t(){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_.Z.put(route("profile.update"),{name:e.user.name,email:e.user.email,role:e.user.role,gradeBands:e.gradeBands,subjects:e.subjects}).then((function(e){return e.data}));case 2:t.sent,e.saved=!0;case 4:case"end":return t.stop()}}),t)})))()},load:function(){var e=this;return O(j().mark((function t(){var n;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_.Z.get(route("profile.info")).then((function(e){return e.data}));case 2:n=t.sent,e.user.name=n.name,e.user.email=n.email,e.user.role=n.role,e.subjects=n.subjects,e.gradeBands=n.gradeBands;case 8:case"end":return t.stop()}}),t)})))()}},computed:{},mounted:function(){var e=this;return O(j().mark((function t(){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.load();case 2:case"end":return t.stop()}}),t)})))()}};const P=(0,n(83744).Z)(q,[["render",function(e,t,n,a,_,T){var L=(0,r.resolve
2Component)("GradesPicker"),I=(0,r.resolveComponent)("SubjectsPicker");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[t[16]||(t[16]=(0,r.createElementVNode)("h1",{class:"text-2xl font-medium text-black mt-6 mb-1 hidden md:block"},"Profile",-1)),t[17]||(t[17]=(0,r.createElementVNode)("hr",{class:"hidden md:block"},null,-1)),(0,r.createElementVNode)("div",l,[_.errors>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("div",s,[t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"flex-shrink-0"},[(0,r.createElementVNode)("svg",{class:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])],-1)),(0,r.createElementVNode)("div",u,[t[6]||(t[6]=(0,r.createElementVNode)("h2",{class:"text-sm font-medium text-red-800"}," There were (number of errors) error(s) saving this resource ",-1)),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("ul",m,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(_.errors,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",null,(0,r.toDisplayString)(e),1)})),256))])])])])])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",f,[t[8]||(t[8]=(0,r.createElementVNode)("label",{for:"name",class:"block text-lg font-medium text-black sm:mt-2 sm:pt-2"}," Name ",-1)),(0,r.createElementVNode)("div",h,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return _.user.name=e}),type:"text",class:"max-w-lg block w-full shadow-sm primary-focus sm:max-w-xs sm:text-base border-slate-300 rounded-[12px] text-neutral-400 font-medium"},null,512),[[r.vModelText,_.user.name]])])]),(0,r.createElementVNode)("div",g,[t[9]||(t[9]=(0,r.createElementVNode)("label",{for:"email",class:"block text-lg font-medium text-black sm:mt-2 sm:pt-2"}," Email ",-1)),(0,r.createElementVNode)("div",v,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return _.user.email=e}),type:"text",class:"max-w-lg block w-full shadow-sm primary-focus sm:max-w-xs sm:text-base border-slate-300 rounded-[12px] text-neutral-400 font-medium"},null,512),[[r.vModelText,_.user.email]])])]),(0,r.createElementVNode)("div",y,[t[11]||(t[11]=(0,r.createElementVNode)("label",{for:"email",class:"block text-lg font-medium text-black sm:mt-2 sm:pt-2"}," Educational Role ",-1)),(0,r.createElementVNode)("div",b,[(0,r.withDirectives)((0,r.createElementVNode)("select",{name:"role",id:"role","onUpdate:modelValue":t[2]||(t[2]=function(e){return _.user.role=e}),class:"max-w-lg block w-full shadow-sm primary-focus sm:max-w-xs sm:text-base border-slate-300 rounded-[12px] text-neutral-400 font-medium"},o(t[10]||(t[10]=[(0,r.createStaticVNode)('<option>Select Option</option><option value="teacher">Teacher</option><option value="school-administrator">School administrator</option><option value="school-counselor">School counselor</option><option value="university-professor">University professor</option><option value="student">Student</option><option value="other">Other</option>',7)])),512),[[r.vModelSelect,_.user.role]])])]),(0,r.createVNode)(L,{modelValue:_.gradeBands,"onUpdate:modelValue":t[3]||(t[3]=function(e){return _.gradeBands=e})},null,8,["modelValue"]),(0,r.createVNode)(I,{modelValue:_.subjects,"onUpdate:modelValue":t[4]||(t[4]=function(e){return _.subjects=e})},null,8,["modelValue"]),t[15]||(t[15]=(0,r.createElementVNode)("hr",null,null,-1)),(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("button",{onClick:t[5]||(t[5]=function(){return T.save&&T.save.apply(T,arguments)}),class:"md:w-[186px] w-full h-10 px-5 py-2 bg-[#A4EBA2] rounded-[12px] justify-center items-center inline-flex"},o(t[12]||(t[12]=[(0,r.createElementVNode)("div",{class:"text-neutral-800 text-base font-medium font-['Outfit'] tracking-tight"},"Save Changes",-1)])))]),_.saved?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,o(t[13]||(t[13]=[(0,r.createStaticVNode)('<div class="mb-6 w-full rounded-lg pointer-events-auto"><div class="rounded-lg shadow-xs overflow-hidden"><div class="md:p-4"><div class="flex md:justify-end"><div class="flex-shrink-0"><svg class="h-6 w-6 text-green-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div><div class="ml-3 flex-initial pt-0.5"><p class="text-sm leading-5 font-medium text-gray-900"> Successfully saved! </p></div></div></div></div></div>',1)])))):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",E,[_.errors>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[(0,r.createElementVNode)("div",B,[t[14]||(t[14]=(0,r.createElementVNode)("div",{class:"flex-shrink-0"},[(0,r.createElementVNode)("svg",{class:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])],-1)),(0,r.createElementVNode)("div",N,[(0,r.createElementVNode)("h2",V," There were "+(0,r.toDisplayString)(_.errors)+" error(s) saving this resource ",1),(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("ul",A,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(_.errors,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",null,(0,r.toDisplayString)(e),1)})),256))])])])])])):(0,r.createCommentVNode)("",!0)])])])}]])}
2,65598:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={class:"space-y-2 md:bg-[#E8FAE8] md:rounded-xl md:py-4 md:px-5","aria-label":"Sidebar"};var l=n(50330);const c={props:{modelValue:String},components:{TabIcon:l.default},methods:{changeTab:function(e){this.tabName=e}},computed:{tabName:{get:function(){return this.modelValue},set:function(e){this.$emit("update:modelValue",e)}}}};const s=(0,n(83744).Z)(c,[["render",function(e,t,n,a,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("nav",i,[(0,r.createElementVNode)("a",{onClick:t[0]||(t[0]=function(e){return c.changeTab("account")}),"aria-current":"page",class:(0,r.normalizeClass)(["flex items-center gap-x-4 text-xl font-medium px-6 py-3 rounded-[12px]","account"==c.tabName?"bg-[#A4EBA2]":"hover:bg-[#BBF0B9]"])},o(t[2]||(t[2]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},[(0,r.createElementVNode)("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0-60Zm0 360Z"})],-1),(0,r.createElementVNode)("span",{class:"truncate"},"Profile",-1)])),2),(0,r.createElementVNode)("a",{onClick:t[1]||(t[1]=function(e){return c.changeTab("support")}),class:(0,r.normalizeClass)(["flex items-center gap-x-4 text-xl font-medium px-6 py-3 rounded-[12px]","support"==c.tabName?"bg-[#A4EBA2]":"hover:bg-[#BBF0B9]"])},o(t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},[(0,r.createElementVNode)("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-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)("span",{class:"truncate"},"Support",-1)])),2)])}]])},20460:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={class:"fixed h-full w-3/4 bg-[#E8FAE8] p-8"},l={class:"flex justify-between"},c={class:"space-y-2","aria-label":"Sidebar"};const s={components:{},props:{modelValue:String,menuIsVisible:Boolean},methods:{changeTab:function(e){this.tabName=e,this.$emit("toggleMenu")},toggleMenu:function(){this.$emit("toggleMenu")}},computed:{tabName:{get:function(){return this.modelValue},set:function(e){this.$emit("update:modelValue",e)}}}};const u=(0,n(83744).Z)(s,[["render",function(e,t,n,a,s,u){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",l,[t[4]||(t[4]=(0,r.createElementVNode)("h2",{class:"text-[22px] font-semibold"},"Filters",-1)),(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return u.toggleMenu&&u.toggleMenu.apply(u,arguments)})},o(t[3]||(t[3]=[(0,r.createStaticVNode)('<svg width="31" height="25" viewB
2ox="0 0 31 25" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect y="0.719238" width="31" height="23.4704" fill="url(#pattern0)"></rect><defs><pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_1614_6692" transform="matrix(0.0075711 0 0 0.01 0.121445 0)"></use></pattern><image id="image0_1614_6692" width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAACZklEQVR4nO3cy27TQBiG4SmnC+Ekz/dNV72ArkGiwCILYAd0wy2DOAgquIkmaBCWKtSEJj3k/+P3kbzLwr9ezdiyI5cCAAAAAAAAAAAAAABu3OHh4R1JD4dheFxK2St53WqtDX2WPlPJSNIbST9sL/4eX2utL0oyrbWXtr+Nc0j6Lul1yRbD9vxMjPGYSzouSUg6XjHHq5LEnu2Tc4ZIFUXLY4zHSYptuF8vVgyRIor+H+PPUWt9VKKz/eACQcJG0QVj9GN/f/9+SWBP0qeMUbRGDNsfU2xZXa31qe3TTFG0XozTWuuTkklr7e06UWx/2Na52n6X5Vx3PoqnEiNDFE8tRuQonmqMiFE89RiRopgYcaKYGHGimBhxopgYcaKYGHGimBhxopgYcaKYGHGimBhxopgYcaKYGKFeGM3X+W2EF2JTWCmLbT0fm5R2dVGIESjKnJURJ8qcGHGizIlxjbzerS1BgsVYECVejAVR4sVYECVejAVRLkk8OonDGzwojPAXo53kSzy1JUqgGCOiXJGrfJ/R2L7ixBgRZUPX+aavsVLixBgR5YJu8h14Y6XEiTEiyhLb/HdIY6XEiTEiSqAYo8lHiRSjTD1KxBiTjRI5xuSiZIgxmSi11ue7/vEZSUclg9lsdrt/XzFTjA2jfOmzluj61zszL/22xvaV4otywzC0rDE2iFJLdJLuSfqVZZu6xPb1s89aMrD9fsXFMHyMf6Kcu1L6KiqZ9ChnV4qkz7aflWQkHfUL+NmVkS7G6ODg4K4k9U/HprgjWaKfe5+hz9JnWvY7AAAAAAAAAAAAAABQrs1vpltv7UeQLP8AAAAASUVORK5CYII="></image></defs></svg>',1)])))]),(0,r.createElementVNode)("nav",c,[(0,r.createElementVNode)("a",{onClick:t[1]||(t[1]=function(e){return u.changeTab("account")}),"aria-current":"page",class:(0,r.normalizeClass)(["flex items-center gap-x-4 text-xl font-medium px-6 py-3 rounded-[12px]","account"==u.tabName?"bg-[#A4EBA2]":"hover:bg-[#BBF0B9]"])},o(t[5]||(t[5]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},[(0,r.createElementVNode)("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0-60Zm0 360Z"})],-1),(0,r.createElementVNode)("span",{class:"truncate"},"Profile",-1)])),2),(0,r.createElementVNode)("a",{onClick:t[2]||(t[2]=function(e){return u.changeTab("support")}),class:(0,r.normalizeClass)(["flex items-center gap-x-4 text-xl font-medium px-6 py-3 rounded-[12px]","support"==u.tabName?"bg-[#A4EBA2]":"hover:bg-[#BBF0B9]"])},o(t[6]||(t[6]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},[(0,r.createElementVNode)("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-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)("span",{class:"truncate"},"Support",-1)])),2),t[7]||(t[7]=(0,r.createStaticVNode)('<a class="flex items-center gap-x-4 text-xl font-medium px-6 py-3 rounded-[12px] hover:bg-[#BBF0B9]"><svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_1603_2026" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="23"><rect width="24" height="22.7857" fill="#2B2B2B"></rect></mask><g mask="url(#mask0_1603_2026)">
2<path d="M5 19.9372C4.45 19.9372 3.97917 19.7513 3.5875 19.3794C3.19583 19.0076 3 18.5605 3 18.0384V4.74671C3 4.22454 3.19583 3.77753 3.5875 3.40568C3.97917 3.03383 4.45 2.8479 5 2.8479H12V4.74671H5V18.0384H12V19.9372H5ZM16 16.1396L14.625 14.7629L17.175 12.3419H9V10.4431H17.175L14.625 8.02216L16 6.64552L21 11.3925L16 16.1396Z" fill="#262626"></path></g></svg><span class="truncate">Logout</span></a>',1))])])}]])},37654:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(41916),o={class:"sm:items-start my-4"},a={class:"mt-2 w-3/4"},i={class:"grid md:grid-cols-2"},l={class:"font-medium text-gray-700 text-lg inline-block"},c=["value"],s={class:"align-middle ml-2"};var u=n(5121);function d(e){return d="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},d(e)}function m(){m=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 f?t:f,i=Object.create(a.prototype),l=new V(o||[]);return r(i,"_invoke",{value:E(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 p={};function f(){}function h(){}function g(){}var v={};c(v,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(C([])));b&&b!==t&&n.call(b,a)&&(v=b);var w=g.prototype=f.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function o(r,a,i,l){var c=u(e[r],e,a);if("throw"!==c.type){var s=c.arg,m=s.value;return m&&"object"==d(m)&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(m).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 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 A()}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=u(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=u(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,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:A}}function A(){return{value:void 0,done:!0}}return h.prototype=g,r(w,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:h,configurable:!0}),h.displayName=c(g,l,"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,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(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=C,V.prototype={constructor:V,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(N),!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),N(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;N(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),p}},e}function p(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 f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){p(a,r,o,i,l,"next",e)}function l(e){p(a,r,o,i,l,"throw",e)}i(void 0)}))}}const h={props:{modelValue:Array},data:function(){return{allSubjects:[],showAll:!1}},methods:{load:function(){var e=this;return f(m().mark((function t(){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.Z.get(route("profile.subjects.get")).then((function(e){return e.data}));case 2:n=t.sent,e.allSubjects=n.subjects;case 4:case"end":return t.stop()}}),t)})))()}},computed:{subjects:{get:function(){return this.modelValue},set:function(e){this.$emit("update:modelValue",e)}}},mounted:function(){var e=this;return f(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.load();case 2:case"end":return t.stop()}}),t)})))()},setup:function(){return{}}};const g=(0,n(83744).Z)(h,[["render",function(e,t,n,u,d,m){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[t[4]||(t[4]=(0,r.createElementVNode)("span",{class:"block text-lg font-medium text-zinc-800 sm:mt-2 sm:pt-2"}," Subject Matter Expertise ",-1)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("fieldset",i,[t[3]||(t[3]=(0,r.createElementVNode)("legend",{class:"sr-only text-black"},[(0,r.createElementVNode)("span",{class:""}," Subjects ")],-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.allSubjects.slice(0,d.showAll?1e3:10),(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("label",l,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return m.subjects=e}),type:"checkbox",value:e.id,class:"focus:ring-[#546FA3] h-4 w-4 text-[#546FA3] border-[#49454F] align-middle border rounded-sm"},null,8,c),[[r.vModelCheckbox,m.subjects]]),(0,r.createElementVNode)("span",s,(0,r.toDisplayString)(e.name),1)])])})),256)),(0,r.createElementVNode)("div",null,[d.showAll?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,onClick:t[2]||(t[2]=function(e){return d.showAll=!1}),class:"underline"},"Show less")):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[1]||(t[1]=function(e){return d.showAll=!0}),class:"underline"},"Show all"))])])])])}]])}
2,21649:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={class:"mt-5 md:mt-0 md:col-span-3 pr-10"};var l=n(49613);n(87879);const c={components:{Container:l.Z},data:function(){return{}},props:{},watch:{},setup:function(){return{}},methods:{},computed:{},mounted:function(){}};const s=(0,n(83744).Z)(c,[["render",function(e,t,n,a,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,o(t[0]||(t[0]=[(0,r.createStaticVNode)('<h2 class="text-2xl font-medium text-black mt-8 mb-1 hidden md:block">Support</h2><hr class="hidden md:block"><h3 class="text-black text-lg font-medium leading-normal mt-4">Getting Started</h3><p class="text-lg mt-4 md:w-3/4">New to climate change education or need help getting started? Visit the ClimateSocrates Help Center to get answers to your questions.</p><a href="https://intercom.help/subjecttoclimate/en" target="_blank" class="bg-[#A4EBA2] py-2 px-6 rounded-[12px] mt-4 mb-6 inline-block">ClimateSocrates Help Center</a><hr><h3 class="text-black text-lg font-medium leading-normal mt-4">Support Our Work</h3><p class="text-lg mt-4 md:w-3/4">As a nonprofit organization, we are always looking for support to help us in our goal to enhance climate knowledge and inspire action by making climate change teaching and learning accessible to all.</p><a href="https://subjecttoclimate.org/about-us#get-involved" target="_blank" class="bg-[#A4EBA2] py-2 px-6 rounded-[12px] mt-4 mb-6 inline-block">Get Involved</a><hr><h3 class="text-black text-lg font-medium leading-normal mt-4">Contact Us</h3><p class="text-lg mt-4 md:w-3/4">Have a question or climate change opportunities you’d like to share? Use our contact form to get in touch.</p><a href="/contact-us" target="_blank" class="bg-[#A4EBA2] py-2 px-6 rounded-[12px] mt-4 mb-6 inline-block">Contact Us</a><hr class="mb-8">',14)])))}]])},50330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(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 a(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 a(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 a(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 i={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};const l={},c=(0,n(83744).Z)(l,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",i,o(t[0]||(t[0]=[(0,r.createStaticVNode)('<g id="Grades"><mask id="mask0_2381_304" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect id="Bounding box" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_2381_304)"><path id="category" d="M6.0846 11L11.8741 2L17.6635 11H6.0846ZM17.6635 22C16.3478 22 15.2293 21.5625 14.3083 20.6875C13.3872 19.8125 12.9267 18.75 12.9267 17.5C12.9267 16.25 13.3872 15.1875 14.3083 14.3125C15.2293 13.4375 16.3478 13 17.6635 13C18.9793 13 20.0978 13.4375 21.0188 14.3125C21.9399 15.1875 22.4004 16.25 22.4004 17.5C22.4004 18.75 21.9399 19.8125 21.0188 20.6875C20.0978 21.5625 18.9793 22 17.6635 22ZM2.40039 21.5V13.5H10.8214V21.5H2.40039ZM17.6635 20C18.4004 20 19.0232 19.7583 19.532 19.275C20.0407 18.7917 20.2951 18.2 20.2951 17.5C20.2951 16.8 20.0407 16.2083 19.532 15.725C19.0232 15.2417 18.4004 15 17.6635 15C16.9267 15 16.3039 15.2417 15.7951 15.725C15.2864 16.2083 15.032 16.8 15.032 17.5C15.032 18.2 15.2864 18.7917 15.7951 19.275C16.3039 19.7583 16.9267 20 17.6635 20ZM4.50565 19.5H8.71618V15.5H4.50565V19.5ZM9.82144 9H13.9267L11.8741 5.85L9.82144 9Z" fill="#262626"></path></g></g>',1)])))}]])}
2,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))]))}]])}}]);
3//# sourceMappingURL=my-account-MyAccountPage-vue.cced9196.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.