vendor: 5,026 bytes, lines 1-2
1/*! For license information please see news-NewsDetailPage-vue.55275a9d.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7438],{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 C(r||[]);return a(i,"_invoke",{value:E(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var m={};function f(){}function h(){}function g(){}var v={};u(v,l,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(V([])));w&&w!==t&&n.call(w,l)&&(v=w);var b=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=p(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 _()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=S(i,n);if(l){if(l===m)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=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===m)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")),m;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;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,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function V(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:_}}function _(){return{value:void 0,done:!0}}return h.prototype=g,a(b,"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(b),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(b),u(b,s,"Generator"),u(b,l,(function(){return this})),u(b,"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=V,C.prototype={constructor:C,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,m):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),m},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),m}},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:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},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:()=>m,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 p.apply(this,arguments)}function p(){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]])})),p=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)}))},p.apply(this,arguments)}function m(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"];
2if(!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},55978:(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,".html-content[data-v-6012d2e2] p{margin-bottom:1rem}.html-content[data-v-6012d2e2] h2{font-size:1.5rem;font-weight:700;margin:1.5rem 0 1rem}.news-article[data-v-6012d2e2] [data-word=extraJuiceWord],.news-article[data-v-6012d2e2] [data-word=word]{color:#2563eb;cursor:pointer;text-decoration:underline}.share-to-google-classroom[data-v-6012d2e2]{display:inline-block;vertical-align:middle}",""]);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:()=>Lo});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"},p={key:1,href:"https://subjecttoclimate.org/",class:"w-[115px] hidden lg:block px-2"};var m={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},w={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 b=["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,b)}]])},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)}}}},C={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",w,[((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{}}},V=(0,B.Z)(C,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("DropDownMenu");return(0,r.openBlock)(),(0,r.createElementBlock)("div",m,[((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 _(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 T={class:"flex items-center space-x-4"},I={key:0,class:"lg:hidden"},A={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-white z-50 lg:hidden"},D={class:""},M={class:"w-full flex justify-between p-4"},j={class:"flex items-center space-x-2"},O={class:"relative"},F={class:"mt-6"},P={class:"mt-6 space-y-4"};function R(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H={class:(0,r.normalizeClass)(["flex items-center justify-between w-full space-x-1"])},G={class:"font-semibold"},Z={key:0},q={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"],W={class:"px-4 py-2 rounded hover:bg-gray-100 duration-75 text-lg flex flex-col"},J={class:"text-base font-semibold"},Y={class:"text-base text-[#3f3f3f]"};const X={props:{menu:Object}},Q={components:{DropDownMenuItem:(0,B.Z)(X,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.menu.url,target:n.menu.is_new_tab?"_blank":null,class:"block"},[(0,r.createElementVNode)("span",W,[(0,r.createElementVNode)("span",J,(0,r.toDisplayString)(n.menu.title),
21),(0,r.createElementVNode)("span",Y,(0,r.toDisplayString)(n.menu.subtitle),1)])],8,$)}]])},data:function(){return{}},props:{menu:Object,expanded:Boolean},computed:{hasChildren:function(){return this.menu.children&&this.menu.children.length},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}}};var ee=n(93379),te=n.n(ee),ne=n(98209),re={insert:"head",singleton:!1};te()(ne.Z,re);ne.Z.locals;const oe=(0,B.Z)(Q,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("DropDownMenuItem");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["px-6",(i.expanded,"")])},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(i.hasChildren?"button":"a"),{href:n.menu.url,onClick:t[0]||(t[0]=function(e){return i.expanded=!0}),class:"block w-full p-3 border-b"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",H,[(0,r.createElementVNode)("span",G,(0,r.toDisplayString)(n.menu.title),1),i.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",Z,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",q,R(t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"m376 816-56-56 184-184-184-184 56-56 240 240-240 240Z"},null,-1)]))))])):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["href"])),(0,r.createVNode)(r.Transition,{name:"slide-fade"},{default:(0,r.withCtx)((function(){return[i.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",z,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return i.expanded=!1}),class:"flex items-center space-x-2"},R(t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"M560 816 320 576l240-240 56 56-184 184 184 184-56 56Z"})],-1),(0,r.createElementVNode)("span",null,"Back",-1)]))),(0,r.createElementVNode)("div",K,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.menu.children,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e},null,8,["menu"])})),128))])])):(0,r.createCommentVNode)("",!0)]})),_:1})],2)}],["__scopeId","data-v-5ba3edf7"]]);var ae={href:"/",class:"h-10 block"},ie=["src"];const le={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},ce=(0,B.Z)(le,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",ae,[(0,r.createElementVNode)("img",{class:"h-full w-auto",height:"40",src:i.url,alt:""},null,8,ie)])])}]]);function se(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var de={class:"px-8"},pe={key:0,class:"w-full"},me={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"},we=["href"],be=["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,p,m,f,h,g,v,y,w,b,x,k,E,S,B,N,C,V,_,L;return(0,r.openBlock)(),(0,r.createElementBlock)("div",de,[i.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",pe,[(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===(p=d.theme)||void 0===p||null===(m=p.colors)||void 0===m||null===(f=m["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",me,[(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===(w=i.settings)||void 0===w||null===(b=w.theme)||void 0===b||null===(x=b.colors)||void 0===x||null===(k=x["account-dropdown-background"])||void 0===k?void 0:k[500])||"#333333"})},"Login",12,we),(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===(C=i.settings)||void 0===C||null===(V=C.theme)||void 0===V||null===(_=V.colors)||void 0===_||null===(L=_["account-dropdown-foreground"])||void 0===L?void 0:L[500])||"#FFFFFF"})},"Join",12,be)]))])}],["__scopeId","data-v-de324c16"]]);var Be=["href"];const Ne={methods:{}},Ce=(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)}]]),Ve={components:{DropDownMenu:oe,Auth:Se,Logo:ce,DonateButton:Ce},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 _e=n(71644),Le={insert:"head",singleton:!1};te()(_e.Z,Le);_e.Z.locals;const Te=(0,B.Z)(Ve,[["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",I,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return a.menuIsVisible=!0}),class:"w-6 h-6"},_(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",A,[(0,r.createElementVNode)("div",D,[(0,r.createElementVNode)("div",M,[(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"},_(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",O,[(0,r.createElementVNode)("div",F,[((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",P,[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 Ie(e){return function(e){if(Array.isArray(e))return Ae(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 Ae(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 Ae(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 Ae(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:""},Me={key:0,class:"relative"},je={key:0,class:"absolute bg-white w-96 right-0 top-12 rounded-lg p-4 z-10"},Oe=["href"],Fe=["href"],Pe=["href"],Re={key:1,class:"flex items-center"},Ue=["href"];const He={props:{expanded:Boolean},data:function(){return{}},computed:{user:function(){var e=(0,a.qt)().props.auth.user;return Array.isArray(e)?null:e},settings:function(){return(0,a.qt)().props.settings},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}},methods:{}},Ge=(0,B.Z)(He,[["render",function(e,t,n,o,a,i){var l,c,s,u,d,p,m,f,h,g,v,y,w,b,x,k;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(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===(p=d.theme)||void 0===p||null===(m=p.colors)||void 0===m||null===(f=m["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"},Ie(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")},Ie(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,Oe),(0,r.createElementVNode)("a",{href:e.route("library")},Ie(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,Fe),(0,r.createElementVNode)("a",{href:e.route("logout")},Ie(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,Pe)])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Re,[(0,r.createElementVNode)("a",{href:e.route("login"),class:"block px-4 py-2 rounded-lg font-semibold",style:(0,r.normalizeStyle)({backgroundColor:(null===(h=i.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[500])||"#333333",color:(null===(w=i.settings)||void 0===w||null===(b=w.theme)||void 0===b||null===(x=b.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 qe(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 qe(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 qe(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 qe(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"},We={class:"hidden"},Je={class:"mt-2"},Ye=["href"],Xe={class:"overflow-hidden"},Qe={class:"w-full text-start"},et={class:"flex space-x-2.5 mt-2"};function tt(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rt={class:"max-h-[90vh] max-w-[580px] w-full mx-4 rounded-lg shadow-xl overflow-hidden"},ot={class:"border-b bg-white rounded-lg"}
vendor: 4,970 bytes, line 2
2,at=["placeholder"],it={ref:"modalScrollContainer",class:"overflow-y-auto max-h-[calc(90vh-80px)] bg-white mt-4 rounded-lg"};function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(){ct=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof p?t:p,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 p(){}function m(){}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=p.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(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 C()}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:C}}function C(){return{value:void 0,done:!0}}return m.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:m,configurable:!0}),m.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"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}},w(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new b(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(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,p=(0,r.ref)(""),m=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[m],!h){e.next=12;break}if(p.value=t.substring(0,f-1),0!=--f){e.next=9;break}return h=!1,m=(m+1)%n.length,e.next=9,g(d);case 9:setTimeout((function(){return v()}),l),e.next=19;break;case 12:if(p.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:p}}var dt={class:""},pt={class:"sticky top-0 z-50 shadow-sm border-b border-gray-200 p-5 bg-white sticky-chip-bar"},mt={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"},wt={key:1,class:"space-y-2"},bt=["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"},Ct={key:0,class:"text-sm text-gray-600 line-clamp-2"},Vt={key:1,class:"p-5 text-center text-gray-500"},_t={key:"teaching",class:"section-container","data-section":"teaching"},Lt={key:0,class:"space-y-4 p-5"},Tt={key:0,class:"text-center py-4 text-gray-500"},It={key:1,class:"space-y-2"},At=["aria-label","onClick","onKeydown"],Dt={class:"py-3"},Mt={class:"space-y-2"},jt={class:"text-gray-500 group-hover:text-gray-900"},Ot={class:"flex flex-wrap items-center gap-1.5"},Ft={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Pt={key:2,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Rt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Ut={key:1,class:"p-5 text-center text-gray-500"},Ht={key:"guides",class:"section-container","data-section":"guides"},Gt={key:0,class:"space-y-4 p-5"},Zt={key:0,class:"text-center py-4 text-gray-500"},qt={key:1,class:"space-y-2"},zt=["aria-label","onClick","onKeydown"],Kt={class:"py-3"},$t={class:"space-y-2"},Wt={class:"text-gray-500 group-hover:text-gray-900"},Jt={class:"flex flex-wrap items-center gap-1.5"},Yt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Xt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Qt={key:1,class:"p-5 text-center text-gray-500"},en={key:"climate",class:"section-container","data-section":"climate"},tn={key:0,class:"space-y-4 p-5"},nn={key:0,class:"text-center py-4 text-gray-500"},rn={key:1,class:"space-y-2"},on=["aria-label","onClick","onKeydown"],an={class:"py-3"},ln={class:"space-y-2"},cn={class:"text-gray-500 group-hover:text-gray-900"},sn={class:"flex flex-wrap items-center gap-1.5"},un={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},dn={key:0,class:"text-sm text-gray-600 line-clamp-2"}
vendor: 4,557 bytes, line 2
2,pn={key:1,class:"p-5 text-center text-gray-500"},mn={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"},wn={class:"space-y-2"},bn={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"},Cn={key:0,class:"text-center py-4 text-gray-500"},Vn={key:1,class:"space-y-2"},_n=["aria-label","onClick","onKeydown"],Ln={class:"py-3"},Tn={class:"space-y-2"},In={class:"text-gray-500 group-hover:text-gray-900"},An={class:"flex flex-wrap items-center gap-1.5"},Dn={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Mn={key:0,class:"text-sm text-gray-600 line-clamp-2"},jn={key:1,class:"p-5 text-center text-gray-500"};var On=n(15229),Fn=n(3754),Pn=n(47393),Rn=n(91440),Un=n(72326);function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Gn(){Gn=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 p?t:p,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 p(){}function m(){}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=p.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function o(r,a,i,l){var c=u(e[r],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Hn(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return C()}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:C}}function C(){return{value:void 0,done:!0}}return m.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:m,configurable:!0}),m.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"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}},w(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new b(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(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 qn={components:{Link:a.rU,Grades:Fn.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)(""),p=(0,r.ref)(!1),m=(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:m.teachingMaterialsIndex||"teaching_materials",teaching:m.teachingMaterialsIndex||"teaching_materials",guides:m.teacherGuidesIndex||"teacher_guides",climate:m.climateExplainersIndex||"climate_explainers",professional:m.pdIndex||"professional_development",news:m.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,Pn.wA)();v&&(0,Pn.qd)(v,g);var w=(0,r.reactive)({lessonPlans:null,teaching:null,guides:null,climate:null,professional:null,news:null}),b=new On.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}
2),C=function(){var e,t=(e=Gn().mark((function e(t){var n,r,o,a,i,l,c,u,d;return Gn().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 p.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,b.multiSearch({queries:u});case 21:d=e.sent,console.log("[POPUP-SEARCH] Multi-search results:",d),(0,Rn.p)({tenantId:s,indexes:u.map((function(e){return e.indexUid}))}),x.hits=d.results[0].hits||[],x.totalHits=d.results[0].estimatedTotalHits||0,w.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,w.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,w.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,w.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,w.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,w.news=(null===(l=d.results[5].metadata)||void 0===l?void 0:l.queryUid)||null,e.next=47;break;case 44:e.prev=44,e.t0=e.catch(15),console.error("[POPUP-SEARCH] Multi-search error:",e.t0);case 47:return e.prev=47,p.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,C(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:p,lessonPlansResults:x,teachingResults:k,guidesResults:E,climateResults:S,professionalResults:B,newsResults:N,switchTab:function(e){u.value=e},selectItem:function(e,t,n){(0,Pn.ob)({indexUid:f[t],queryUid:w[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)(qn,[["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",pt,[(0,r.createElementVNode)("div",mt,[((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",wt,[((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",Ct,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,bt)})),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",Vt,"Enter a search term and click search to see results"))])):"teaching"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",_t,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",Lt,[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",It,[((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",Dt,[(0,r.createElementVNode)("div",Mt,[(0,r.createElementVNode)("h4",jt,(0,r.toDisplayString)(e.title||e.name),1),(0,r.createElementVNode)("div",Ot,[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",Ft,(0,r.toDisplayString)(e.languages[0]),1)):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Pt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Rt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,At)})),128))])):(0,r.createCommentVNode)("",!0),o.teachingResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"teaching",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.teachingResults.totalHits-5)+" other Teaching Resources ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ut,"Enter a search term and click search to see results"))])):"guides"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ht,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",Gt,[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",qt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.guidesResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"guides",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"guides",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"guides",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",Kt,[(0,r.createElementVNode)("div",$t,[(0,r.createElementVNode)("h4",Wt,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Jt,[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",Yt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Xt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,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",pn,"Enter a search term and click search to see results"))])):"professional"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",mn,[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",wn,[(0,r.createElementVNode)("h4",bn,(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",Cn,"Searching...")):o.newsResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Vn,[((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",Ln,[(0,r.createElementVNode)("div",Tn,[(0,r.createElementVNode)("h4",In,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",An,[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",Dn,(0,r.toDisplayString)(new Date(e.publish_at).toLocaleDateString()),1)):(0,r.createCommentVNode)("",!0)]),e.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",Mn,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)("",!0)])])],40,_n)})),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 Wn=n(2364),Jn={insert:"head",singleton:!1};te()(Wn.Z,Jn);Wn.Z.locals;const Yn=(0,B.Z)($n,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("SearchResultsDirect");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return i.toggleModal&&i.toggleModal.apply(i,arguments)}),"aria-label":"Search Menu",class:"p-2 rounded-lg bg-popup-search-background-500"},tt(t[6]||(t[6]=[(0,r.createStaticVNode)('<svg class="text-popup-search-foreground-500" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_1975_4089" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_1975_4089)"><path d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z" class="fill-popup-search-foreground-500"></path></g></svg>',1)]))),a.showSearchModal?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,onClick:t[5]||(t[5]=(0,r.withModifiers)((function(){return i.toggleModal&&i.toggleModal.apply(i,arguments)}),["self"])),style:{"backdrop-filter":"blur(6px)"},class:"fixed top-0 left-0 w-screen h-screen bg-black/70 flex items-start justify-center z-50 p-4 pt-8"},[(0,r.createElementVNode)("div",rt,[(0,r.createElementVNode)("div",ot,[(0,r.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,r.withModifiers)((function(){return i.confirmSearch&&i.confirmSearch.apply(i,arguments)}),["prevent"])),class:"flex items-center px-5 py-2"},[t[9]||(t[9]=(0,r.createStaticVNode)('<svg class="w-6 h-6 text-gray-500 flex-shrink-0" viewB
2ox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_1975_4089" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_1975_4089)"><path d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z" fill="currentColor"></path></g></svg>',1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.localTerm=e}),placeholder:"Search by ".concat(o.typewriterText),class:"flex-grow px-4 py-2 focus:outline-none text-gray-900",ref:"searchInput"},null,8,at),[[r.vModelText,a.localTerm]]),t[10]||(t[10]=(0,r.createElementVNode)("button",{type:"submit",class:"px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100 rounded-md transition-colors",title:"Search"}," Search ",-1)),a.localTerm?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",onClick:t[2]||(t[2]=function(){return i.clearSearch&&i.clearSearch.apply(i,arguments)}),class:"p-1 hover:bg-gray-100 rounded-full ml-1",title:"Clear search"},tt(t[7]||(t[7]=[(0,r.createElementVNode)("svg",{class:"w-5 h-5 text-gray-500",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"})],-1)])))):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,type:"button",onClick:t[3]||(t[3]=function(){return i.toggleModal&&i.toggleModal.apply(i,arguments)}),class:"p-1 hover:bg-gray-100 rounded-full ml-1",title:"Close search"},tt(t[8]||(t[8]=[(0,r.createElementVNode)("svg",{class:"w-5 h-5 text-gray-500",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"})],-1)]))))],32)]),(0,r.createElementVNode)("div",it,[(0,r.createVNode)(l,{term:a.confirmedTerm,results:a.searchResults,"scroll-container":e.$refs.modalScrollContainer,onSelect:i.handleResultSelect},null,8,["term","results","scroll-container","onSelect"])],512)])])):(0,r.createCommentVNode)("",!0)])}]]);var Xn=n(32608),Qn=n(76306);const er={components:{PopSearchSkeleton:Yn,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,Pn.wA)();return{client:(0,Xn.instantMeiliSearch)(i,l,{placeholderSearch:!1,primaryKey:"id",requestConfig:{headers:{"X-MS-USER-ID":c}}}).searchClient,debouncedSearchTerm:(0,r.ref)("")}},created:function(){var e,t=this;this.$watch("searchTerm",(function(n){n&&(t.isSearching=!0),clearTimeout(e),e=setTimeout((function(){t.debouncedSearchTerm=(0,Un.Bl)(n),setTimeout((function(){t.isSearching=!1}),1e3)}),1e3)}))},methods:{urlFromTm:function(e){var t,n,r;return e.is_external_resource?route("resources.show",null!==(t=e.slug)&&void 0!==t?t:e.id):e.is_internal_resource?route("stc.show",null!==(n=e.slug)&&void 0!==n?n:e.id):e.is_internal_unit_plan?route("stc.unit",null!==(r=e.slug)&&void 0!==r?r:e.id):""}},computed:{indexName:function(){return(0,a.qt)().props.integrations.algolia.teachingMaterialsIndex},filters:function(){return"is_live=1 AND tenantIds=".concat(this.tenantId)},tenantId:function(){return(0,a.qt)().props.tenantId}}},tr={components:{DesktopMenu:V,MobileMenu:Te,Logo:ce,DesktopAuth:Ge,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"),p=(0,r.resolveComponent)("PopSearchSkeleton");return(0,r.openBlock)(),(0,r.createBlock)(p,{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",We,[(0,r.createVNode)(c,{modelValue:o.debouncedSearchTerm,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.debouncedSearchTerm=e})},null,8,["modelValue"])]),(0,r.createElementVNode)("div",Je,[(0,r.createVNode)(u,{onRender:e.handleHitsRender},{default:(0,r.withCtx)((function(e){var n=e.items;return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:i.urlFromTm(e),key:e.id,class:"p-3 flex justify-between bg-neutral-100 rounded-lg items-center w-full mt-3 hover:bg-[#E8FAE8] duration-150"},[(0,r.createElementVNode)("div",Xe,[(0,r.createElementVNode)("div",Qe,[(0,r.createVNode)(s,{attribute:"title",hit:e,class:"text-start"},null,8,["hit"])]),(0,r.createElementVNode)("div",et,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.gradeBands,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:"bg-[#BBF0B9] rounded px-2.5 flex-nowrap whitespace-nowrap uppercase"},(0,r.toDisplayString)(e),1)})),128)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.subjects_list_short,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:"bg-[#BBF0B9] rounded px-2.5 flex-nowrap whitespace-nowrap uppercase"},(0,r.toDisplayString)(e),1)})),128))])]),t[3]||(t[3]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"p-2"},[(0,r.createElementVNode)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("mask",{id:"mask0_1975_4094",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"15",height:"15"},[(0,r.createElementVNode)("rect",{width:"15",height:"15",fill:"#D9D9D9"})]),(0,r.createElementVNode)("g",{mask:"url(#mask0_1975_4094)"},[(0,r.createElementVNode)("path",{d:"M9.26901 7.5L4.56105 2.79203C4.43688 2.66786 4.37641 2.52005 4.37964 2.34859C4.38287 2.17714 4.44657 2.02927 4.57073 1.905C4.6949 1.78083 4.84271 1.71875 5.01417 1.71875C5.18563 1.71875 5.33349 1.78083 5.45776 1.905L10.2426 6.69953C10.3555 6.81255 10.4392 6.93917 10.4937 7.07937C10.5483 7.21958 10.5756 7.35979 10.5756 7.5C10.5756 7.64021 10.5483 7.78042 10.4937 7.92063C10.4392 8.06083 10.3555 8.18745 10.2426 8.30047L5.44808 13.095C5.32391 13.2192 5.17771 13.2796 5.00948 13.2764C4.84115 13.2732 4.6949 13.2095 4.57073 13.0853C4.44657 12.9611 4.38448 12.8133 4.38448 12.6419C4.38448 12.4704 4.44657 12.3226 4.57073 12.1983L9.26901 7.5Z",fill:"#1C1B1F"})])])])],-1))],8,Ye)})),128))]})),_:1},8,["onRender"])])]})),_:1},8,["searchClient","indexName"])]})),_:1},8,["term"])}]]),DonateButton:Ce},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 m=(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)(m)]),(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",p,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"},pr=["src"],mr={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 wr={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},br=(0,B.Z)(wr,[["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 Cr(e){return function(e){if(Array.isArray(e))return Vr(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 Vr(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 Vr(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 Vr(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={key:0,class:"flex space-x-[16px]"},Lr=["href"],Tr=["href"],Ir=["href"],Ar=["href"];const Dr={computed:{socialMedias:function(){return(0,a.qt)().props.footer.socialMedias}}},Mr=(0,B.Z)(Dr,[["render",function(e,t,n,o,a,i){return i.socialMedias?((0,r.openBlock)(),(0,r.createElementBlock)("div",_r,[i.socialMedias.linkedin?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:i.socialMedias.linkedin,href:i.socialMedias.linkedin,class:"block",target:"_blank"},Cr(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,Lr)):(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"},Cr(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"},Cr(t[2]||(t[2]=[(0,r.createElementVNode)("img",{alt:"Pinterest",src:"/img/social-media/pinterest.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Ir)):(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"},Cr(t[3]||(t[3]=[(0,r.createElementVNode)("img",{alt:"Instagram",src:"/img/social-media/instagram.png",class:"w-[30px] h-[30px]"},null,-1)])),8,Ar)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}]]);const jr={components:{Container:gr.Z,Logo:br,Menu:Nr,SocialMediaIcons:Mr},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()}},Or=(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,pr)]),(0,r.createElementVNode)("a",mr,[(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 Fr(e){return function(e){if(Array.isArray(e))return Pr(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 Pr(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 Pr(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 Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rr={class:"hidden"},Ur={key:0,class:"w-full"},Hr={class:"hidden"},Gr=["onClick"],Zr={class:"flex items-center justify-center space-x-4 pr-8"},qr=["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 Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}const Jr={setup:function(){var e=(0,r.ref)(new Set);(0,r.onMounted)((function(){var t=localStorage.getItem("closedBanners");t&&(e.value=new Set(JSON.parse(t)))}));var t=(0,r.computed)((function(){var e=(0,a.qt)().props,t=e.banners;return console.log("Page props:",e),console.log("Raw banners:",t),t?"object"!==Wr(t)||Array.isArray(t)?t:Object.values(t):[]})),n=(0,r.computed)((function(){var n;if(null===(n=t.value)||void 0===n||!n.length)return console.log("No active banners found"),[];var r=t.value.filter((function(t){return console.log("Processing banner:",t),!e.value.has(t.id)}));return console.log("Filtered banners:",r),r}));return{closedBanners:e,closeBanner:function(t){e.value.add(t),localStorage.setItem("closedBanners",JSON.stringify(Kr(e.value)))},activeBanners:t,visibleBanners:n,getBannerStyles:function(e){return{backgroundColor:(null==e?void 0:e.bg_color)||"#FFFFFF"}}}}},Yr=(0,B.Z)(Jr,[["render",function(e,t,n,o,a,i){var l;return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",Rr," Active banners: "+(0,r.toDisplayString)(o.activeBanners.length)+" Visible banners: "+(0,r.toDisplayString)(o.visibleBanners.length),1),(null===(l=o.activeBanners)||void 0===l?void 0:l.length)>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ur,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.visibleBanners,(function(e){var n,a,i,l,c,s,u,d,p,m,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",Hr," Banner ID: "+(0,r.toDisplayString)(e.id)+" Has content: "+(0,r.toDisplayString)(!(null===(i=e.content)||void 0===i||!i[0])),1),(0,r.createElementVNode)("button",{onClick:function(t){return o.closeBanner(e.id)},"aria-label":"close",class:"absolute right-2 top-1/2 -translate-y-1/2 p-2 hover:bg-black/5 rounded-full transition-colors duration-150",style:(0,r.normalizeStyle)({color:(null===(l=e.content)||void 0===l||null===(c=l[0])||void 0===c||null===(s=c.attributes)||void 0===s?void 0:s.text_color)||"#000000"})},Fr(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,Gr),(0,r.createElementVNode)("div",Zr,[null!==(u=e.content)&&void 0!==u&&null!==(d=u[0])&&void 0!==d&&null!==(p=d.attributes)&&void 0!==p&&p.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,qr)],4)):(0,r.createCommentVNode)("",!0),null!==(m=e.content)&&void 0!==m&&null!==(f=m[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 Xr={class:"cookie-consent-banner__content"},Qr={class:"cookie-consent-banner__primary"},eo={class:"cookie-consent-banner__description"},to={class:"cookie-consent-banner__actions"},no={class:"cookie-consent-banner__preferences"},ro={class:"cookie-consent-banner__body"},oo={class:"cookie-consent-banner__options"},ao={class:"cookie-consent-banner__option"},io={class:"cookie-consent-banner__toggle"},lo={class:"cookie-consent-banner__option"},co={class:"cookie-consent-banner__toggle"},so={class:"cookie-consent-banner__actions"};var uo="cookie_consent_preferences",po=365;function mo(){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*po*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=mo();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 wo=(0,B.Z)(go,[["render",function(e,t,n,o,a,i){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{id:"cookie-consent-banner",class:(0,r.normalizeClass)(["cookie-consent-banner",{"cookie-consent-banner--visible":o.isVisible}])},[(0,r.createElementVNode)("div",Xr,[(0,r.withDirectives)((0,r.createElementVNode)("div",Qr,[(0,r.createElementVNode)("p",eo,[t[6]||(t[6]=(0,r.createTextVNode)(" We use cookies to improve our site. We don't sell or share your data. You can ",-1)),(0,r.createElementVNode)("a",{href:"#",class:"cookie-consent-banner__link",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(){return o.openPreferencesModal&&o.openPreferencesModal.apply(o,arguments)}),["prevent"]))},"manage your preferences here"),t[7]||(t[7]=(0,r.createTextVNode)(". ",-1))]),(0,r.createElementVNode)("div",to,[(0,r.createElementVNode)("button",{class:"cookie-consent-banner__button cookie-consent-banner__button--pill",onClick:t[1]||(t[1]=function(){return o.acceptAll&&o.acceptAll.apply(o,arguments)})}," Accept "),(0,r.createElementVNode)("button",{class:"cookie-consent-banner__button cookie-consent-banner__button--pill",onClick:t[2]||(t[2]=function(){return o.decline&&o.decline.apply(o,arguments)})}," Decline ")])],512),[[r.vShow,"primary"===o.screen]]),(0,r.withDirectives)((0,r.createElementVNode)("div",no,[t[12]||(t[12]=(0,r.createElementVNode)("div",{class:"cookie-consent-banner__header"},[(0,r.createElementVNode)("h3",{class:"cookie-consent-banner__title"},"Cookie Preferences")],-1)),(0,r.createElementVNode)("div",ro,[(0,r.createElementVNode)("div",oo,[(0,r.createElementVNode)("div",ao,[(0,r.createElementVNode)("label",io,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=function(e){return o.preferences.analytics=e})},null,512),[[r.vModelCheckbox,o.preferences.analytics]]),t[8]||(t[8]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-slider"},null,-1)),t[9]||(t[9]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-label"},[(0,r.createElementVNode)("strong",null,"Analytics Cookies"),(0,r.createElementVNode)("small",null,"Help us understand how visitors interact with our website")],-1))])]),(0,r.createElementVNode)("div",lo,[(0,r.createElementVNode)("label",co,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=function(e){return o.preferences.marketing=e})},null,512),[[r.vModelCheckbox,o.preferences.marketing]]),t[10]||(t[10]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-slider"},null,-1)),t[11]||(t[11]=(0,r.createElementVNode)("span",{class:"cookie-consent-banner__toggle-label"},[(0,r.createElementVNode)("strong",null,"Marketing Cookies"),(0,r.createElementVNode)("small",null,"Used to deliver personalized advertisements")],-1))])])])]),(0,r.createElementVNode)("div",so,[(0,r.createElementVNode)("button",{class:"cookie-consent-banner__button cookie-consent-banner__button--pill",onClick:t[5]||(t[5]=function(){return o.savePreferencesFromModal&&o.savePreferencesFromModal.apply(o,arguments)})}," Save Preferences ")])],512),[[r.vShow,"preferences"===o.screen]])])],2)),[[r.vShow,o.shouldRender]])}],["__scopeId","data-v-65f8774e"]]);function bo(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 Co={props:{items:{type:Array,default:function(){return[]}}}}
2,Vo=(0,B.Z)(Co,[["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,bo(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)}]]),_o={components:{Header:nr,Footer:Or,Container:gr.Z,Banner:Yr,CookieConsentBanner:wo,Breadcrumbs:Vo},computed:{breadcrumbs:function(){var e;return null!==(e=(0,a.qt)().props.breadcrumbs)&&void 0!==e?e:[]}}},Lo=(0,B.Z)(_o,[["render",function(e,t,n,a,i,l){var c=(0,r.resolveComponent)("CookieConsentBanner"),s=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("Header"),d=(0,r.resolveComponent)("Container"),p=(0,r.resolveComponent)("Breadcrumbs"),m=(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)(p,{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)(m)])}]])},45770:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ee});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:"flex items-center primary-link mt-6 px-2 lg:px-0"},l={class:"mx-auto pb-4 px-4 max-w-6xl mb-4 sm:px-12 lg:px-24 lg:pb-2 mt-4 lg:mt-8"},c={class:"text-universal-black-10 md:text-5xl text-2xl font-bold mt-2 mb-2 text-center"},s={class:"md:text-2xl text-xl text-cool-gray-90 text-center mb-2"},u={class:"w-full md:w-1/2 mx-auto mb-6"},d=["src","alt"],p={class:"flex justify-center gap-x-2 pt-4 pb-1 items-center"},m={class:"relative flex flex-col items-center group"},f={class:"absolute bottom-12 flex-col items-center hidden mb-6 group-hover:flex"},h={class:"relative z-10 p-2 text-xs leading-2 text-white whitespace-no-wrap bg-black shadow-lg rounded"},g={class:"share-to-google-classroom relative flex flex-col items-center group"},v=["data-url","data-title"],y={class:"my-8"},w={class:"text-center"},b=["value"],x=["innerHTML"],k={class:"news-assessment bg-secondary-700"},E={class:"news-assessment mx-auto pt-12 px-4 max-w-7xl sm:px-12 lg:px-24 pb-5"},S=["innerHTML"],B={class:"grid grid-cols-1 gap-y-2 mt-4"},N=["onClick"],C={key:0,class:"flex-shrink-0 mr-4"},V={key:0,class:"h-5 w-5 text-green-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},_={key:1,class:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},L=["innerHTML"];var T=n(19394),I=n(49613),A=n(87879),D={class:"pointer-events-auto bg-white rounded-lg border border-gray-200 shadow-lg w-72 max-w-[calc(100vw-1rem)] mt-2 relative"},M={class:"relative"},j={class:"px-4 mt-2 text-sm uppercase font-extrabold text-gray-700"},O={class:"px-4 py-2 uppercase text-sm font-bold text-gray-700 border-b border-gray-200"},F={class:"px-4 py-3 text-gray-700"},P={class:"list-decimal list-inside space-y-2 text-sm"},R={class:"border-t border-gray-200 p-3"};var U=n(5121);function H(e){return H="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},H(e)}function G(){G=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";
vendor: 4,336 bytes, line 2
2function 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 p?t:p,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 p(){}function m(){}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=p.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(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"==H(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 C()}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:C}}function C(){return{value:void 0,done:!0}}return m.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:m,configurable:!0}),m.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"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}},w(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new b(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(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 Z(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 q(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Z(a,r,o,i,l,"next",e)}function l(e){Z(a,r,o,i,l,"throw",e)}i(void 0)}))}}const z={props:{targetElement:{type:"undefined"!=typeof HTMLElement?HTMLElement:Object,default:null}},data:function(){return{isVisible:!1,word:"",pronunciation:"",definitions:[],currentElement:null}},computed:{containerStyle:function(){if(!this.currentElement)return{};var e=this.currentElement.getBoundingClientRect();return{position:"absolute",top:"".concat(e.bottom+("undefined"!=typeof window?window.scrollY:0),"px"),left:"".concat(e.left+("undefined"!=typeof window?window.scrollX:0),"px")}}},methods:{fetchWordData:function(e){var t=this;return q(G().mark((function n(){var r;return G().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,U.Z.get("https://secure.api.thejuice.news/vocabulary/words/by-text?word=".concat(e));case 3:r=n.sent,t.word=r.data.word.word,t.pronunciation=r.data.word.pronunciation,t.definitions=r.data.definitions,n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),console.error("Error fetching word data:",n.t0);case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},show:function(e,t){var n=this;return q(G().mark((function r(){return G().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.currentElement=e,r.next=3,n.fetchWordData(t);case 3:n.isVisible=!0;case 4:case"end":return r.stop()}}),r)})))()},close:function(){this.isVisible=!1,this.currentElement=null}}};var K=n(83744);const $=(0,K.Z)(z,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"body"},[(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"pointer-events-none z-50",style:(0,r.normalizeStyle)(i.containerStyle)},[(0,r.createElementVNode)("div",D,[t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"absolute -top-2 left-4 w-4 h-4 rotate-45 border-t border-l border-gray-200 bg-white"},null,-1)),(0,r.createElementVNode)("div",M,[(0,r.createElementVNode)("div",j,(0,r.toDisplayString)(a.word),1
2),(0,r.createElementVNode)("div",O,(0,r.toDisplayString)(a.pronunciation),1),(0,r.createElementVNode)("div",F,[(0,r.createElementVNode)("ol",P,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.definitions,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"pl-1 text-sm"},(0,r.toDisplayString)(e.definition),1)})),128))])]),(0,r.createElementVNode)("div",R,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return i.close&&i.close.apply(i,arguments)}),class:"px-4 py-1 border border-primary-500 text-xs font-medium text-white bg-primary-500 hover:bg-primary-600 transition-colors duration-150 uppercase rounded"}," Close ")])])])],4),[[r.vShow,a.isVisible]])])}]]);n(96486);const W={components:{MainLayout:T.Z,Container:I.Z,Link:A.rU,VocabularyPopup:$,Head:A.Fb},props:{article:{type:Object,required:!0}},setup:function(e){var t,n,o,a,i,l,c={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":"undefined"!=typeof window?window.location.href:"https://subjecttoclimate.org/news/".concat((null===(t=e.article)||void 0===t?void 0:t.slug)||"")},headline:null===(n=e.article)||void 0===n?void 0:n.seo_title,description:null===(o=e.article)||void 0===o?void 0:o.seo_description,image:null===(a=e.article)||void 0===a?void 0:a.primaryImageUrl,author:{"@type":"Organization",name:"The Juice",url:"https://thejuice.com"},publisher:{"@type":"Organization",name:"SubjectToClimate",url:"https://subjecttoclimate.org",logo:{"@type":"ImageObject",url:"https://subjecttoclimate.org/img/logo-with-trademark-2.svg"}},datePublished:null===(i=e.article)||void 0===i?void 0:i.publish_at,dateModified:null===(l=e.article)||void 0===l?void 0:l.updated_at},s=function(e){return"undefined"==typeof window?null:new URLSearchParams(window.location.search).get(e)},u=(0,r.ref)(function(){var t=s("grade"),n=e.article.articles.map((function(e){return e.grade}));return t&&n.includes(t)?t:e.article.articles[0].grade}()),d=(0,r.ref)(null),p=(0,r.ref)("Copy URL to clipboard"),m=(0,r.computed)((function(){return e.article.articles.map((function(e){return e.grade}))})),f=(0,r.computed)((function(){return e.article.articles.find((function(e){return e.grade===u.value}))})),h=(0,r.computed)((function(){return f.value?[{text:f.value.answer_one.split("|")[1],isCorrect:"1"===f.value.answer_one.split("|")[0]},{text:f.value.answer_two.split("|")[1],isCorrect:"1"===f.value.answer_two.split("|")[0]},{text:f.value.answer_three.split("|")[1],isCorrect:"1"===f.value.answer_three.split("|")[0]},{text:f.value.answer_four.split("|")[1],isCorrect:"1"===f.value.answer_four.split("|")[0]}].filter((function(e){return e.text})):[]})),g=(0,r.ref)(null),v=(0,r.computed)((function(){var t="undefined"!=typeof window?"".concat(window.location.origin,"/news/").concat(e.article.slug):"https://subjecttoclimate.org/news/".concat(e.article.slug);return u.value?"".concat(t,"?grade=").concat(u.value):t})),y=function(e){var t=e.target.closest("[data-word]");console.log("click was detected:"),t&&(e.preventDefault(),g.value.show(t,t.textContent.trim()),console.log("click was detected:word was detected"))},w=function(){window.gapi&&window.gapi.sharetoclassroom.go()},b=null,x=function(){var t=s("grade"),n=e.article.articles.map((function(e){return e.grade}));t&&n.includes(t)&&t!==u.value&&(u.value=t,d.value=null)};return(0,r.onMounted)((function(){setTimeout((function(){var e=document.querySelectorAll('script[type="application/ld+json"]');e.length>0?(console.log("JSON-LD script found:",e.length),e.forEach((function(e,t){try{var n=JSON.parse(e.innerHTML);console.log("Script ".concat(t," content:"),n)}catch(e){console.error("Script ".concat(t," has invalid JSON:"),e)}}))):console.warn("No JSON-LD scripts found in the document")}),100),(b=document.createElement("script")).setAttribute("type","application/ld+json"),b.textContent=JSON.stringify(c),document.head.appendChild(b),document.addEventListener("click",y);var e=document.createElement("script");return e.src="https://apis.google.com/js/platform.js",e.async=!0,e.defer=!0,e.onload=w,document.head.appendChild(e),window.addEventListener("popstate",x),function(){document.removeEventListener("click",y)}})),(0,r.onBeforeUnmount)((function(){b&&document.head.contains(b)&&document.head.removeChild(b),b&&document.head.contains(b)&&document.head.removeChild(b),window.removeEventListener("popstate",x)})),{selectedGrade:u,selectedAnswer:d,copyStatus:p,answers:h,availableGrades:m,currentArticle:f,formatDate:function(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},changeGrade:function(){d.value=null,A.Nd.get(route("news.show",{news:e.article.slug,grade:u.value}),{},{preserveState:!0})},copyToClipboard:function(){var t="".concat(window.location.origin,"/news/").concat(e.article.slug);navigator.clipboard.writeText(t).then((function(){p.value="URL Copied!",setTimeout((function(){p.value="Copy URL to clipboard"}),2e3)}))},selectAnswer:function(e){d.value=e},vocabularyPopup:g,currentUrl:v,jsonLd:c}}};var J=n(93379),Y=n.n(J),X=n(55978),Q={insert:"head",singleton:!1};Y()(X.Z,Q);X.Z.locals;const ee=(0,K.Z)(W,[["render",function(e,t,n,a,T,I){var A=(0,r.resolve
2Component)("Link"),D=(0,r.resolveComponent)("Container"),M=(0,r.resolveComponent)("MainLayout"),j=(0,r.resolveComponent)("VocabularyPopup");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(M,null,{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(D,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[t[4]||(t[4]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)),(0,r.createVNode)(A,{href:e.route("news.index"),class:"ml-4 text-sm font-semibold text-accent-700 underline"},{default:(0,r.withCtx)((function(){return o(t[3]||(t[3]=[(0,r.createTextVNode)(" Back to the News ",-1)]))})),_:1},8,["href"])]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("h1",c,(0,r.toDisplayString)(n.article.title),1),(0,r.createElementVNode)("p",s,(0,r.toDisplayString)(a.formatDate(n.article.publish_at)),1),t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"text-center mb-8"},[(0,r.createElementVNode)("a",{href:"https://thejuicelearning.com/",title:"The Juice",target:"_blank"},[(0,r.createElementVNode)("img",{src:"/img/the-juice.png",alt:"The Juice",class:"ml-1 h-6 w-auto inline"})])],-1)),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("img",{class:"object-cover shadow-lg w-full",src:n.article.primaryImageUrl,alt:n.article.alt_text},null,8,d)]),(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("button",{class:"copy-url bg-primary-500 hover:bg-primary-700 duration-150 p-1 rounded-full w-12 h-12",onClick:t[0]||(t[0]=function(){return a.copyToClipboard&&a.copyToClipboard.apply(a,arguments)}),title:"Share via Link"},[(0,r.createElementVNode)("div",m,[t[5]||(t[5]=(0,r.createElementVNode)("svg",{class:"w-8 h-8","aria-label":"Share via Link",xmlns:"http://www.w3.org/2000/svg",fill:"white",stroke:"none",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{d:"M8.465,11.293c1.133-1.133,3.109-1.133,4.242,0L13.414,12l1.414-1.414l-0.707-0.707c-0.943-0.944-2.199-1.465-3.535-1.465 S7.994,8.935,7.051,9.879L4.929,12c-1.948,1.949-1.948,5.122,0,7.071c0.975,0.975,2.255,1.462,3.535,1.462 c1.281,0,2.562-0.487,3.536-1.462l0.707-0.707l-1.414-1.414l-0.707,0.707c-1.17,1.167-3.073,1.169-4.243,0 c-1.169-1.17-1.169-3.073,0-4.243L8.465,11.293z"}),(0,r.createElementVNode)("path",{d:"M12,4.929l-0.707,0.707l1.414,1.414l0.707-0.707c1.169-1.167,3.072-1.169,4.243,0c1.169,1.17,1.169,3.073,0,4.243 l-2.122,2.121c-1.133,1.133-3.109,1.133-4.242,0L10.586,12l-1.414,1.414l0.707,0.707c0.943,0.944,2.199,1.465,3.535,1.465 s2.592-0.521,3.535-1.465L19.071,12c1.948-1.949,1.948-5.122,0-7.071C17.121,2.979,13.948,2.98,12,4.929z"})],-1)),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(a.copyStatus),1)])])]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("div",{class:"g-sharetoclassroom","data-size":"48","data-url":a.currentUrl,"data-title":n.article.title},null,8,v),t[6]||(t[6]=(0,r.createElementVNode)("div",{class:"absolute bottom-4 flex flex-col items-center hidden mb-6 group-hover:flex"},[(0,r.createElementVNode)("span",{class:"relative z-10 p-2 text-xs leading-2 text-white whitespace-no-wrap bg-black shadow-lg"}," Share to Google Classroom ")],-1))])]),(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("form",w,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.selectedGrade=e}),class:"bg-primary-500 text-white rounded-lg cursor-pointer",onChange:t[2]||(t[2]=function(){return a.changeGrade&&a.changeGrade.apply(a,arguments)})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.availableGrades,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:e,value:e,class:"bg-white text-primary-80 text-lg"}," Grades "+(0,r.toDisplayString)(e),9,b)})),128))],544),[[r.vModelSelect,a.selectedGrade]])])]),(0,r.createElementVNode)("div",{class:"my-8 html-content news-article",innerHTML:a.currentArticle.content},null,8,x)])]})),_:1}),(0,r.createElementVNode)("div",k,[(0,r.createElementVNode)("div",E,[t[10]||(t[10]=(0,r.createElementVNode)("div",{class:"text-white font-bold uppercase text-xl"},"Question",-1)),(0,r.createElementVNode)("div",{class:"font-medium text-white text-base my-2",innerHTML:a.currentArticle.question},null,8,S),(0,r.createElementVNode)("div",B,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.answers,(function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n,onClick:function(t){return a.selectAnswer(e)},class:(0,r.normalizeClass)(["flex bg-white border py-2 px-6 cursor-pointer rounded-sm text-xs md:text-base",a.selectedAnswer?e.isCorrect?"border-green-500":"border-red-500":"border-mint-green-80 hover:border-mint-green-100"])},[a.selectedAnswer?((0,r.openBlock)(),(0,r.createElementBlock)("div",C,[e.isCorrect?((0,r.openBlock)(),(0,r.createElementBlock)("svg",V,o(t[8]||(t[8]=[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])))):((0,r.openBlock)(),(0,r.createElementBlock)("svg",_,o(t[9]||(t[9]=[(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"},null,-1)]))))])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"text-primary-80",innerHTML:e.text},null,8,L)],10,N)})),128))]),t[11]||(t[11]=(0,r.createElementVNode)("div",{class:"text-white text-center md:text-right pt-5 text-base"},[(0,r.createTextVNode)(" Want more STEM articles? "),(0,r.createElementVNode)("a",{href:"https://thejuicelearning.com",class:"underline",target:"_blank"},"Try The Juice today.")],-1))])]),t[12]||(t[12]=(0,r.createElementVNode)("div",{class:"text-center py-12"},[(0,r.createElementVNode)("div",{class:"text-center mt-4"},[(0,r.createElementVNode)("p",{class:"text-gray-600"},[(0,r.createTextVNode)("News brought to you by "),(0,r.createElementVNode)("a",{href:"https://thejuicelearning.com/todays-juice/",target:"_blank"},[(0,r.createElementVNode)("img",{src:"/img/news/the-juice-logo.png",alt:"Reading mascot",class:"inline h-6"})])]),(0,r.createElementVNode)("p",{class:"font-bold"},"Read More News Stories Today!")])],-1))]})),_:1}),(0,r.createVNode)(j,{ref:"vocabularyPopup"},null,512)],64)}],["__scopeId","data-v-6012d2e2"]])}
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=news-NewsDetailPage-vue.55275a9d.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.