PageSourceSearch

https://subjecttoclimate.org/js/tenant/pages/StcMaterial-StcMaterialUnitPage-vue.009479f6.js

js subjecttoclimate.org collected 2026-09-24 09:09:12 UTC 227,360 bytes, 3 lines download raw bytes

vendor: 5,093 bytes, lines 1-2
1/*! For license information please see StcMaterial-StcMaterialUnitPage-vue.009479f6.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[2162,5967,1201,3676,2717,4975,1068,5310,5413,5446,3672,4692],{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 m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p={};function f(){}function h(){}function g(){}var v={};u(v,l,(function(){return this}));var y=Object.getPrototypeOf,k=y&&y(y(V([])));k&&k!==t&&n.call(k,l)&&(v=k);var b=g.prototype=f.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(a,i,l,c){var s=m(e[a],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==r(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}var i;a(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return _()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=B(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=m(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function B(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,B(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=m(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(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(S,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}},w(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(d(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(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,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}n.d(t,{De:()=>f,VK:()=>h,aU:()=>g,ob:()=>p,qd:()=>c,wA:()=>u});var i=null,l=null;function c(e,t){i=e,t&&(l=t)}function s(){if("undefined"==typeof localStorage)return"ssr_anonymous";var e=localStorage.getItem("meilisearch_user_id");e||(e="user_"+Date.now()+"_"+Math.random().toString(36).substr(2,9),localStorage.setItem("meilisearch_user_id",e));try{var t,n,r,o=(null===(t=window.Inertia)||void 0===t?void 0:t.page)||{},a=null==o||null===(n=o.props)||void 0===n||null===(r=n.auth)||void 0===r?void 0:r.user;a&&a.id&&(e="user_"+a.id)}catch(e){}return e}function u(){return s()}function d(e){return m.apply(this,arguments)}function m(){var e;return e=o().mark((function e(t){var n,r,a,c,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s(),r=i,a=l,n&&r&&a){e.next=6;break}return("localhost"===window.location.hostname||window.location.search.includes("debug"))&&console.log("[Meilisearch Analytics] Skipping event (not yet initialized)",{eventType:t.eventType,hasUserId:!!n,hasApiKey:!!r,hasHost:!!a}),e.abrupt("return");case 6:return c={eventType:t.eventType,eventName:t.eventName||("click"===t.eventType?"Search Result Clicked":"Conversion"),indexUid:t.indexUid,userId:n,objectId:t.objectId},t.objectName&&(c.objectName=t.objectName),void 0!==t.position&&null!==t.position&&(c.position=t.position),t.queryUid&&(c.queryUid=t.queryUid),e.prev=10,u="".concat(a.replace(/\/$/,""),"/events"),e.next=14,fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r),"X-MS-USER-ID":n},body:JSON.stringify(c)});case 14:(d=e.sent).ok?console.log("[Meilisearch Analytics] Event sent successfully:",t.eventType,t.eventName):console.warn("[Meilisearch Analytics] Event failed:",d.status,d.statusText),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),console.warn("[Meilisearch Analytics] Failed to send event:",e.t0);case 21:case"end":return e.stop()}}),e,null,[[10,18]])})),m=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function l(e){a(i,r,o,l,c,"next",e)}function c(e){a(i,r,o,l,c,"throw",e)}l(void 0)}))}
2,m.apply(this,arguments)}function p(e){d({eventType:"click",eventName:"Search Result Clicked",indexUid:e.indexUid,objectId:e.objectId,objectName:e.objectName,position:e.position,queryUid:e.queryUid})}function f(e){var t=e.indexUid,n=e.objectId,r=e.objectName,o=e.eventName,a=e.queryUid;a||(a=new URLSearchParams(window.location.search).get("queryUid"));d({eventType:"conversion",eventName:o||"Conversion",indexUid:t,objectId:n,objectName:r,queryUid:a})}function h(){return new URLSearchParams(window.location.search).get("queryUid")}function g(){try{var e,t,n,r=(null===(e=window.Inertia)||void 0===e?void 0:e.page)||{},o=(null==r||null===(t=r.props)||void 0===t||null===(n=t.integrations)||void 0===n?void 0:n.meilisearch)||{},a=window.location.pathname;return a.includes("/lesson-plans/")||a.includes("/external-resources/")?o.teachingMaterialsIndex||"teaching_materials":a.includes("/teacher-guides/")?o.teacherGuidesIndex||"teacher_guides":a.includes("/climate-change-explainers/")?o.climateExplainersIndex||"climate_explainers":a.includes("/professional-development/")?o.pdIndex||"professional_development":a.includes("/news/")?o.newsIndex||"news":null}catch(e){return null}}},91440:(e,t,n)=>{function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=e.tenantId,n=e.index,r=e.source,o=void 0===r?"single":r;t&&n&&fetch("/api/track-ms-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tenant_id:t,index:n,source:o})}).catch((function(){}))}function i(e){var t=e.tenantId,n=e.indexes;if(t&&null!=n&&n.length){var o,i=r(n);try{for(i.s();!(o=i.n()).done;){a({tenantId:t,index:o.value,source:"multi"})}}catch(e){i.e(e)}finally{i.f()}}}n.d(t,{j:()=>a,p:()=>i})},57694:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-fade-enter-active[data-v-de324c16],.slide-fade-leave-active[data-v-de324c16]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-de324c16],.slide-fade-leave-to[data-v-de324c16]{opacity:0;transform:translateX(100%)}",""]);const a=o},98209:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-fade-enter-active[data-v-5ba3edf7],.slide-fade-leave-active[data-v-5ba3edf7]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-5ba3edf7],.slide-fade-leave-to[data-v-5ba3edf7]{opacity:0;transform:translateX(100%)}",""]);const a=o},71644:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-down-enter-active[data-v-265fda74],.slide-down-leave-active[data-v-265fda74]{transition:all .3s ease-in-out}.slide-down-enter-from[data-v-265fda74],.slide-down-leave-to[data-v-265fda74]{opacity:0;transform:translateY(-100%)}",""]);const a=o},2364:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"body.modal-open{position:fixed;width:100%}@keyframes blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}input::placeholder{opacity:.7}",""]);const a=o},7551:(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,".resource-card img{width:100%}",""]);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]}));
2o.push([e.id,'.cookie-consent-banner[data-v-65f8774e]{align-items:flex-end;bottom:0;contain:layout style paint;display:flex;left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;will-change:transform,opacity;z-index:9999}.cookie-consent-banner--visible[data-v-65f8774e]{opacity:1;pointer-events:none;visibility:visible}.cookie-consent-banner__content[data-v-65f8774e]{background:#fff;border-radius:10px;border-top:1px solid #e5e7eb;box-shadow:0 -4px 6px -1px #0000001a,0 10px 25px -5px #0003,0 4px 10px -3px #00000026;contain:layout style paint;padding:13px 16px 13px 15px;pointer-events:auto;position:relative;transform:translate3d(0,100%,0);transition:transform .3s ease;width:342px;will-change:transform;z-index:9999}.cookie-consent-banner--visible .cookie-consent-banner__content[data-v-65f8774e]{transform:translateZ(0)}.cookie-consent-banner__header[data-v-65f8774e]{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.cookie-consent-banner__title[data-v-65f8774e]{color:#000;font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.cookie-consent-banner__close[data-v-65f8774e]{align-items:center;background:none;border:none;color:#6b7280;cursor:pointer;display:flex;font-size:1.5rem;height:2rem;justify-content:center;line-height:1;padding:0;transition:color .2s;width:2rem}.cookie-consent-banner__close[data-v-65f8774e]:hover{color:#111827}.cookie-consent-banner__body[data-v-65f8774e]{margin-bottom:1.5rem}.cookie-consent-banner__description[data-v-65f8774e]{color:#000;margin-bottom:7px}.cookie-consent-banner__description[data-v-65f8774e],.cookie-consent-banner__link[data-v-65f8774e]{font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.cookie-consent-banner__link[data-v-65f8774e]{color:#556fa4;cursor:pointer}.cookie-consent-banner__link[data-v-65f8774e]:hover{color:#2563eb}.cookie-consent-banner__options[data-v-65f8774e]{display:flex;flex-direction:column;gap:1rem}.cookie-consent-banner__option[data-v-65f8774e]{background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem;padding:1rem}.cookie-consent-banner__toggle[data-v-65f8774e]{align-items:flex-start;cursor:pointer;display:flex;gap:1rem}.cookie-consent-banner__toggle input[type=checkbox][data-v-65f8774e]{display:none}.cookie-consent-banner__toggle-slider[data-v-65f8774e]{background:#d1d5db;border-radius:9999px;flex-shrink:0;height:1.5rem;margin-top:.125rem;position:relative;transition:background .2s;width:3rem}.cookie-consent-banner__toggle-slider[data-v-65f8774e]:before{background:#fff;border-radius:50%;box-shadow:0 1px 3px #0000001a;content:"";height:1.25rem;left:.125rem;position:absolute;top:.125rem;transition:transform .2s;width:1.25rem}.cookie-consent-banner__toggle input[type=checkbox]:checked+.cookie-consent-banner__toggle-slider[data-v-65f8774e]{background:#3b82f6}.cookie-consent-banner__toggle input[type=checkbox]:checked+.cookie-consent-banner__toggle-slider[data-v-65f8774e]:before{transform:translateX(1.5rem)}.cookie-consent-banner__toggle-label[data-v-65f8774e]{display:flex;flex:1;flex-direction:column;gap:.25rem}.cookie-consent-banner__toggle-label strong[data-v-65f8774e]{color:#111827;font-size:12px;font-weight:600}.cookie-consent-banner__toggle-label small[data-v-65f8774e]{color:#6b7280;font-size:10px}.cookie-consent-banner__actions[data-v-65f8774e]{display:flex;gap:1rem;justify-content:flex-start}.cookie-consent-banner__button[data-v-65f8774e]{font-feature-settings:"liga" off,"clig" off;border:none;cursor:pointer;font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal;padding:.5rem 1rem;transition:all .2s}.cookie-consent-banner__button--pill[data-v-65f8774e]{background:#eef1f6;border-radius:15px;color:#000}.cookie-consent-banner__button--pill[data-v-65f8774e]:hover{background:#d5d9e2;box-shadow:0 2px 4px #0000001a}@media (min-width:768px){.cookie-consent-banner__content[data-v-65f8774e]{border-radius:.5rem;margin:0 0 1.5rem 1.5rem;max-width:28rem}}',""]);const a=o}
2,37493:(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,".seal-tooltip[data-v-0a41b8e1]{opacity:0;pointer-events:none;transition:opacity .1s ease,visibility 0s linear .15s;visibility:hidden}.seal-group:hover .seal-tooltip[data-v-0a41b8e1]{opacity:1;pointer-events:auto;transition:opacity .1s ease;visibility:visible}",""]);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:()=>Ao});var r=n(41916),o={class:"font-outfit"};var a=n(87879);function i(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={class:"grid grid-cols-6 items-center justify-between py-5 px-4 lg:px-0 shadow-sm lg:shadow-none bg-white"},s={class:"flex"},u={class:"flex items-center justify-center col-span-3"},d={class:"flex space-x-1 items-center justify-end col-span-2"},m={key:1,href:"https://subjecttoclimate.org/",class:"w-[115px] hidden lg:block px-2"};var p={class:"hidden lg:flex items-center"};function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g={class:"relative mx-4"},v={class:"inline-block whitespace-nowrap"},y={key:0},k={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"],w={class:"px-3 py-3 rounded-xl hover:bg-menu-200 duration-75 text-lg hover:text-contrast-200 flex flex-col group"},x={class:"text-base font-semibold"},E={class:"text-base text-[#3f3f3f] group-hover:text-contrast-200"};const B={props:{menu:Object}};var S=n(83744);const N={components:{DropDownMenuItem:(0,S.Z)(B,[["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",w,[(0,r.createElementVNode)("span",x,(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}
2,set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}}},C={components:{DropDownMenu:(0,S.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",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)])}]])},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,S.Z)(C,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("DropDownMenu");return(0,r.openBlock)(),(0,r.createElementBlock)("div",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e,onExpanded:function(t){return i._expandedMenuId=e.id},onCollapsed:t[0]||(t[0]=function(e){return i._expandedMenuId=null}),expanded:i._expandedMenuId===e.id},null,8,["menu","onExpanded","expanded"])})),128))])}]]);function _(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 L={class:"flex items-center space-x-4"},I={key:0,class:"lg:hidden"},T={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-white z-50 lg:hidden"},M={class:""},D={class:"w-full flex justify-between p-4"},j={class:"flex items-center space-x-2"},F={class:"relative"},U={class:"mt-6"},O={class:"mt-6 space-y-4"};function P(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var G={class:(0,r.normalizeClass)(["flex items-center justify-between w-full space-x-1"])},H={class:"font-semibold"},q={key:0},Z={class:(0,r.normalizeClass)(["w-6 h-6 duration-150"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},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 Y=["href","target"],X={class:"px-4 py-2 rounded hover:bg-gray-100 duration-75 text-lg flex flex-col"},W={class:"text-base font-semibold"},Q={class:"text-base text-[#3f3f3f]"};const $={props:{menu:Object}},J={components:{DropDownMenuItem:(0,S.Z)($,[["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",X,[(0,r.createElementVNode)("span",W,(0,r.toDisplayString)(n.menu.title),
21),(0,r.createElementVNode)("span",Q,(0,r.toDisplayString)(n.menu.subtitle),1)])],8,Y)}]])},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,S.Z)(J,[["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",G,[(0,r.createElementVNode)("span",H,(0,r.toDisplayString)(n.menu.title),1),i.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",q,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",Z,P(t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"m376 816-56-56 184-184-184-184 56-56 240 240-240 240Z"},null,-1)]))))])):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["href"])),(0,r.createVNode)(r.Transition,{name:"slide-fade"},{default:(0,r.withCtx)((function(){return[i.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",z,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return i.expanded=!1}),class:"flex items-center space-x-2"},P(t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"M560 816 320 576l240-240 56 56-184 184 184 184-56 56Z"})],-1),(0,r.createElementVNode)("span",null,"Back",-1)]))),(0,r.createElementVNode)("div",K,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.menu.children,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,menu:e},null,8,["menu"])})),128))])])):(0,r.createCommentVNode)("",!0)]})),_:1})],2)}],["__scopeId","data-v-5ba3edf7"]]);var ae={href:"/",class:"h-10 block"},ie=["src"];const le={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},ce=(0,S.Z)(le,[["render",function(e,t,n,o,a,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",ae,[(0,r.createElementVNode)("img",{class:"h-full w-auto",height:"40",src:i.url,alt:""},null,8,ie)])])}]]);function se(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var de={class:"px-8"},me={key:0,class:"w-full"},pe={key:0,class:(0,r.normalizeClass)(["absolute top-0 left-0 w-full h-screen z-20 bg-white p-4"])},fe={class:"mt-8"},he=["href"],ge=["href"],ve=["href"],ye={key:1,class:"space-y-2"},ke=["href"],be=["href"];const we={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 xe=n(57694),Ee={insert:"head",singleton:!1};te()(xe.Z,Ee);xe.Z.locals;const Be=(0,S.Z)(we,[["render",function(e,t,n,o,a,i){var l,c,s,u,d,m,p,f,h,g,v,y,k,b,w,x,E,B,S,N,C,V,_,A;return(0,r.openBlock)(),(0,r.createElementBlock)("div",de,[i.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",me,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return i.toggleExpanded&&i.toggleExpanded.apply(i,arguments)}),class:"flex items-center space-x-2 p-2 rounded shadow w-full justify-center",style:(0,r.normalizeStyle)({backgroundColor:(null===(l=i.settings)||void 0===l||null===(c=l.theme)||void 0===c||null===(s=c.colors)||void 0===s||null===(u=s["account-dropdown-background"])||void 0===u?void 0:u[500])||"#333333",color:(null===(d=i.settings)||void 0===d||null===(m=d.theme)||void 0===m||null===(p=m.colors)||void 0===p||null===(f=p["account-dropdown-foreground"])||void 0===f?void 0:f[500])||"#FFFFFF"})},se(t[2]||(t[2]=[(0,r.createElementVNode)("span",{class:"font-semibold"},"My Account",-1)])),4),(0,r.createVNode)(r.Transition,{name:"slide-fade"},{default:(0,r.withCtx)((function(){return[n.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",pe,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(){return i.toggleExpanded&&i.toggleExpanded.apply(i,arguments)}),class:"flex items-center space-x-2"},se(t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"M560 816 320 576l240-240 56 56-184 184 184 184-56 56Z"})],-1),(0,r.createElementVNode)("span",null,"Back",-1)]))),(0,r.createElementVNode)("div",fe,[(0,r.createElementVNode)("a",{href:e.route("account"),class:"block"},se(t[4]||(t[4]=[(0,r.createElementVNode)("span",{class:"px-4 py-2 rounded hover:bg-gray-100 font-semibold duration-75 text-lg"}," My profile",-1)])),8,he),(0,r.createElementVNode)("a",{href:e.route("library"),class:"block"}
2,se(t[5]||(t[5]=[(0,r.createElementVNode)("span",{class:"px-4 py-2 rounded hover:bg-gray-100 font-semibold duration-75 text-lg"}," My Library",-1)])),8,ge),(0,r.createElementVNode)("a",{href:e.route("logout"),class:"block"},se(t[6]||(t[6]=[(0,r.createElementVNode)("span",{class:"px-4 py-2 rounded hover:bg-gray-100 font-semibold duration-75 text-lg"}," Logout",-1)])),8,ve)])])):(0,r.createCommentVNode)("",!0)]})),_:1})])):((0,r.openBlock)(),(0,r.createElementBlock)("div",ye,[(0,r.createElementVNode)("a",{href:e.route("login"),class:"font-semibold flex justify-center items-center border px-4 py-2 rounded",style:(0,r.normalizeStyle)({borderColor:(null===(h=i.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[500])||"#333333",color:(null===(k=i.settings)||void 0===k||null===(b=k.theme)||void 0===b||null===(w=b.colors)||void 0===w||null===(x=w["account-dropdown-background"])||void 0===x?void 0:x[500])||"#333333"})},"Login",12,ke),(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===(B=E.theme)||void 0===B||null===(S=B.colors)||void 0===S||null===(N=S["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===(A=_["account-dropdown-foreground"])||void 0===A?void 0:A[500])||"#FFFFFF"})},"Join",12,be)]))])}],["__scopeId","data-v-de324c16"]]);var Se=["href"];const Ne={methods:{}},Ce=(0,S.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,Se)}]]),Ve={components:{DropDownMenu:oe,Auth:Be,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),Ae={insert:"head",singleton:!1};te()(_e.Z,Ae);_e.Z.locals;const Le=(0,S.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",L,[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",T,[(0,r.createElementVNode)("div",M,[(0,r.createElementVNode)("div",D,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(l)]),(0,r.createElementVNode)("div",j,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return a.menuIsVisible=!1}),class:"w-8 h-8"},_(t[6]||(t[6]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},[(0,r.createElementVNode)("path",{d:"m336 776 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56Zm144 200q-83 0-156-31.5T197 859q-54-54-85.5-127T80 576q0-83 31.5-156T197 293q54-54 127-85.5T480 176q83 0 156 31.5T763 293q54 54 85.5 127T880 576q0 83-31.5 156T763 859q-54 54-127 85.5T480 976Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})],-1)])))])]),(0,r.createElementVNode)("div",F,[(0,r.createElementVNode)("div",U,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(c,{key:e.id,menu:e,onExpanded:function(t){return i._expandedMenuId=e.id},onCollapsed:t[2]||(t[2]=function(e){return i._expandedMenuId=null}),expanded:i._expandedMenuId==e.id},null,8,["menu","onExpanded","expanded"])})),128))]),(0,r.createElementVNode)("div",O,[i.showDonateButton?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,class:"mx-8"})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{onExpanded:t[3]||(t[3]=function(e){return i._expandedMenuId="auth"}),onCollapsed:t[4]||(t[4]=function(e){return i._expandedMenuId=null}),expanded:"auth"==i._expandedMenuId},null,8,["expanded"])])])])])):(0,r.createCommentVNode)("",!0)]})),_:1})])}
2],["__scopeId","data-v-265fda74"]]);function Ie(e){return function(e){if(Array.isArray(e))return Te(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 Te(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 Te(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 Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Me={class:""},De={key:0,class:"relative"},je={key:0,class:"absolute bg-white w-96 right-0 top-12 rounded-lg p-4 z-10"},Fe=["href"],Ue=["href"],Oe=["href"],Pe={key:1,class:"flex items-center"},Re=["href"];const Ge={props:{expanded:Boolean},data:function(){return{}},computed:{user:function(){var e=(0,a.qt)().props.auth.user;return Array.isArray(e)?null:e},settings:function(){return(0,a.qt)().props.settings},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}},methods:{}},He=(0,S.Z)(Ge,[["render",function(e,t,n,o,a,i){var l,c,s,u,d,m,p,f,h,g,v,y,k,b,w,x;return(0,r.openBlock)(),(0,r.createElementBlock)("div",Me,[i.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",De,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return i.expanded=!i.expanded}),class:"flex items-center justify-center space-x-2 p-2 rounded-lg",style:(0,r.normalizeStyle)({backgroundColor:(null===(l=i.settings)||void 0===l||null===(c=l.theme)||void 0===c||null===(s=c.colors)||void 0===s||null===(u=s["account-dropdown-background"])||void 0===u?void 0:u[500])||"#333333",color:(null===(d=i.settings)||void 0===d||null===(m=d.theme)||void 0===m||null===(p=m.colors)||void 0===p||null===(f=p["account-dropdown-foreground"])||void 0===f?void 0:f[500])||"#FFFFFF"})},[t[2]||(t[2]=(0,r.createElementVNode)("span",{class:"font-semibold block"},"My Account",-1)),((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:(0,r.normalizeClass)(["w-6 h-6 duration-150",i.expanded?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},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,Fe),(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,Ue),(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,Oe)])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Pe,[(0,r.createElementVNode)("a",{href:e.route("login"),class:"block px-4 py-2 rounded-lg font-semibold",style:(0,r.normalizeStyle)({backgroundColor:(null===(h=i.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[500])||"#333333",color:(null===(k=i.settings)||void 0===k||null===(b=k.theme)||void 0===b||null===(w=b.colors)||void 0===w||null===(x=w["account-dropdown-foreground"])||void 0===x?void 0:x[500])||"#FFFFFF"})},"Login",12,Re)]))])}]]);function qe(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ze={class:"flex items-center justify-between"},Ke=["href"],Ye={key:0,class:"text-xs text-gray-500 flex items-center gap-2"},Xe={class:"hidden"},We={class:"mt-2"},Qe=["href"],$e={class:"overflow-hidden"},Je={class:"w-full text-start"},et={class:"flex space-x-2.5 mt-2"};function tt(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rt={class:"max-h-[90vh] max-w-[580px] w-full mx-4 rounded-lg shadow-xl overflow-hidden"},ot={class:"border-b bg-white rounded-lg"}
vendor: 4,970 bytes, line 2
2,at=["placeholder"],it={ref:"modalScrollContainer",class:"overflow-y-auto max-h-[calc(90vh-80px)] bg-white mt-4 rounded-lg"};function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(){ct=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),l=new S(o||[]);return r(i,"_invoke",{value:w(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(N([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function k(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 w(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=x(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 x(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,x(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 B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(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 p.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},k(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()}))},k(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,S.prototype={constructor:S,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(B),!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),B(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;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function st(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.words,n=void 0===t?[]:t,o=e.typingSpeed,a=void 0===o?100:o,i=e.deletingSpeed,l=void 0===i?50:i,c=e.pauseBeforeDelete,s=void 0===c?2e3:c,u=e.pauseBeforeType,d=void 0===u?500:u,m=(0,r.ref)(""),p=0,f=0,h=!1,g=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function v(){return y.apply(this,arguments)}function y(){var e;return e=ct().mark((function e(){var t;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n[p],!h){e.next=12;break}if(m.value=t.substring(0,f-1),0!=--f){e.next=9;break}return h=!1,p=(p+1)%n.length,e.next=9,g(d);case 9:setTimeout((function(){return v()}),l),e.next=19;break;case 12:if(m.value=t.substring(0,f+1),++f!==t.length){e.next=18;break}return h=!0,e.next=18,g(s);case 18:setTimeout((function(){return v()}),a);case 19:case"end":return e.stop()}}),e)})),y=function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){st(a,r,o,i,l,"next",e)}function l(e){st(a,r,o,i,l,"throw",e)}i(void 0)}))},y.apply(this,arguments)}return(0,r.onMounted)((function(){v()})),{currentText:m}}var dt={class:""},mt={class:"sticky top-0 z-50 shadow-sm border-b border-gray-200 p-5 bg-white sticky-chip-bar"},pt={class:"flex flex-wrap gap-2"},ft=["onClick"],ht={class:"relative"},gt={key:"all",class:"section-container","data-section":"all"},vt={key:0,class:"space-y-4 p-5"},yt={key:0,class:"text-center py-4 text-gray-500"},kt={key:1,class:"space-y-2"},bt=["aria-label","onClick","onKeydown"],wt={class:"py-3"},xt={class:"space-y-2"},Et={class:"text-gray-500 group-hover:text-gray-900"},Bt={class:"flex flex-wrap items-center gap-1.5"},St={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"},At={key:0,class:"space-y-4 p-5"},Lt={key:0,class:"text-center py-4 text-gray-500"},It={key:1,class:"space-y-2"},Tt=["aria-label","onClick","onKeydown"],Mt={class:"py-3"},Dt={class:"space-y-2"},jt={class:"text-gray-500 group-hover:text-gray-900"},Ft={class:"flex flex-wrap items-center gap-1.5"},Ut={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Ot={key:2,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Pt={key:0,class:"text-sm text-gray-600 line-clamp-2"},Rt={key:1,class:"p-5 text-center text-gray-500"},Gt={key:"guides",class:"section-container","data-section":"guides"},Ht={key:0,class:"space-y-4 p-5"},qt={key:0,class:"text-center py-4 text-gray-500"},Zt={key:1,class:"space-y-2"},zt=["aria-label","onClick","onKeydown"],Kt={class:"py-3"},Yt={class:"space-y-2"},Xt={class:"text-gray-500 group-hover:text-gray-900"},Wt={class:"flex flex-wrap items-center gap-1.5"},Qt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},$t={key:0,class:"text-sm text-gray-600 line-clamp-2"},Jt={key:1,class:"p-5 text-center text-gray-500"},en={key:"climate",class:"section-container","data-section":"climate"},tn={key:0,class:"space-y-4 p-5"},nn={key:0,class:"text-center py-4 text-gray-500"},rn={key:1,class:"space-y-2"},on=["aria-label","onClick","onKeydown"],an={class:"py-3"},ln={class:"space-y-2"},cn={class:"text-gray-500 group-hover:text-gray-900"},sn={class:"flex flex-wrap items-center gap-1.5"},un={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},dn={key:0,class:"text-sm text-gray-600 line-clamp-2"},mn={key:1,class:"p-5 text-center text-gray-500"}
vendor: 4,508 bytes, line 2
2,pn={key:"professional",class:"section-container","data-section":"professional"},fn={key:0,class:"space-y-4 p-5"},hn={key:0,class:"text-center py-4 text-gray-500"},gn={key:1,class:"space-y-2"},vn=["aria-label","onClick","onKeydown"],yn={class:"py-3"},kn={class:"space-y-2"},bn={class:"text-gray-500 group-hover:text-gray-900"},wn={class:"flex flex-wrap items-center gap-1.5"},xn={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"},Bn={key:1,class:"p-5 text-center text-gray-500"},Sn={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"],An={class:"py-3"},Ln={class:"space-y-2"},In={class:"text-gray-500 group-hover:text-gray-900"},Tn={class:"flex flex-wrap items-center gap-1.5"},Mn={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Dn={key:0,class:"text-sm text-gray-600 line-clamp-2"},jn={key:1,class:"p-5 text-center text-gray-500"};var Fn=n(15229),Un=n(3754),On=n(47393),Pn=n(91440),Rn=n(72326);function Gn(e){return Gn="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},Gn(e)}function Hn(){Hn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),l=new S(o||[]);return r(i,"_invoke",{value:w(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(N([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function k(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"==Gn(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 w(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=x(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 x(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,x(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 B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(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 p.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},k(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()}))},k(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,S.prototype={constructor:S,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(B),!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),B(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;B(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 qn(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}const Zn={components:{Link:a.rU,Grades:Un.Z},props:{term:{type:String,default:""}},setup:function(e){var t,n,o,i,l,c,s=(0,a.qt)().props.tenantId,u=(0,r.ref)("all"),d=(0,r.ref)(""),m=(0,r.ref)(!1),p=(null===(t=(0,a.qt)().props.integrations)||void 0===t?void 0:t.meilisearch)||(null===(n=(0,a.qt)().props.integrations)||void 0===n?void 0:n.algolia),f={lessonPlans:p.teachingMaterialsIndex||"teaching_materials",teaching:p.teachingMaterialsIndex||"teaching_materials",guides:p.teacherGuidesIndex||"teacher_guides",climate:p.climateExplainersIndex||"climate_explainers",professional:p.pdIndex||"professional_development",news:p.newsIndex||"news"},h={lessonPlans:"is_live=true AND (is_internal_resource=true OR is_featured_in_tenants IN [".concat(s,"] OR is_internal_unit_plan=true) AND is_in_unit_plans=false AND tenantIds IN [").concat(s,"]"),teaching:"is_external_resource=true AND is_live=true AND tenantIds IN [".concat(s,"]"),guides:"",climate:"",professional:"enabled=1 AND tenant_ids IN [".concat(s,"]"),news:""},g=(null===(o=(0,a.qt)().props.integrations)||void 0===o||null===(i=o.meilisearch)||void 0===i?void 0:i.host)||window.MEILISEARCH_HOST||"http://localhost:7700",v=(null===(l=(0,a.qt)().props.integrations)||void 0===l||null===(c=l.meilisearch)||void 0===c?void 0:c.key)||window.MEILISEARCH_KEY||"",y=(0,On.wA)();v&&(0,On.qd)(v,g);var k=(0,r.reactive)({lessonPlans:null,teaching:null,guides:null,climate:null,professional:null,news:null}),b=new Fn.MeiliSearch({host:g,apiKey:v,requestConfig:{headers:{"X-MS-USER-ID":y}}}),w=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),x=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),E=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),B=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),S=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),N=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}
2),C=function(){var e,t=(e=Hn().mark((function e(t){var n,r,o,a,i,l,c,u,d;return Hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=14;break}return w.hits=[],w.totalHits=0,x.hits=[],x.totalHits=0,E.hits=[],E.totalHits=0,B.hits=[],B.totalHits=0,S.hits=[],S.totalHits=0,N.hits=[],N.totalHits=0,e.abrupt("return");case 14:return m.value=!0,e.prev=15,c=(0,Rn.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,Pn.p)({tenantId:s,indexes:u.map((function(e){return e.indexUid}))}),w.hits=d.results[0].hits||[],w.totalHits=d.results[0].estimatedTotalHits||0,k.lessonPlans=(null===(n=d.results[0].metadata)||void 0===n?void 0:n.queryUid)||null,x.hits=d.results[1].hits||[],x.totalHits=d.results[1].estimatedTotalHits||0,k.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,k.guides=(null===(o=d.results[2].metadata)||void 0===o?void 0:o.queryUid)||null,B.hits=d.results[3].hits||[],B.totalHits=d.results[3].estimatedTotalHits||0,k.climate=(null===(a=d.results[3].metadata)||void 0===a?void 0:a.queryUid)||null,S.hits=d.results[4].hits||[],S.totalHits=d.results[4].estimatedTotalHits||0,k.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,k.news=(null===(l=d.results[5].metadata)||void 0===l?void 0:l.queryUid)||null,e.next=47;break;case 44:e.prev=44,e.t0=e.catch(15),console.error("[POPUP-SEARCH] Multi-search error:",e.t0);case 47:return e.prev=47,m.value=!1,e.finish(47);case 50:case"end":return e.stop()}}),e,null,[[15,44,47,50]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){qn(a,r,o,i,l,"next",e)}function l(e){qn(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:m,lessonPlansResults:w,teachingResults:x,guidesResults:E,climateResults:B,professionalResults:S,newsResults:N,switchTab:function(e){u.value=e},selectItem:function(e,t,n){(0,On.ob)({indexUid:f[t],queryUid:k[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 Yn={components:{SearchResultsDirect:(0,S.Z)(Zn,[["render",function(e,t,n,o,a,i){var l=(0,r.resolveComponent)("Grades"),c=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",dt,[(0,r.createElementVNode)("div",mt,[(0,r.createElementVNode)("div",pt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.categoryFilters,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e.id,class:(0,r.normalizeClass)(["px-3 py-1 rounded-full text-sm transition-all duration-300",o.categoryColors[e.id],{"ring-2 ring-offset-2 ring-green-300":o.activeFilter===e.id}]),onClick:function(t){return o.switchTab(e.id)}},(0,r.toDisplayString)(e.name),11,ft)})),128))])]),(0,r.createElementVNode)("div",ht,[(0,r.createVNode)(r.Transition,{name:"slide-fade",mode:"out-in"},{default:(0,r.withCtx)((function(){return["all"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",gt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",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",kt,[((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",wt,[(0,r.createElementVNode)("div",xt,[(0,r.createElementVNode)("h4",Et,(0,r.toDisplayString)(e.title||e.name),1),(0,r.createElementVNode)("div",Bt,[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",St,(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",At,[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",Lt,"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",Mt,[(0,r.createElementVNode)("div",Dt,[(0,r.createElementVNode)("h4",jt,(0,r.toDisplayString)(e.title||e.name),1),(0,r.createElementVNode)("div",Ft,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.languages&&e.languages[0]?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ut,(0,r.toDisplayString)(e.languages[0]),1)):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ot,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Pt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,Tt)})),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",Rt,"Enter a search term and click search to see results"))])):"guides"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Gt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ht,[t[2]||(t[2]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Teacher Guides",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",qt,"Searching...")):o.guidesResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Zt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.guidesResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"guides",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"guides",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"guides",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",Kt,[(0,r.createElementVNode)("div",Yt,[(0,r.createElementVNode)("h4",Xt,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Wt,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Qt,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",$t,(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",Jt,"Enter a search term and click search to see results"))])):"climate"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",en,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",tn,[t[3]||(t[3]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Climate Change Explainers",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",nn,"Searching...")):o.climateResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",rn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.climateResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"climate",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"climate",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"climate",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",an,[(0,r.createElementVNode)("div",ln,[(0,r.createElementVNode)("h4",cn,(0,r.toDisplayString)(e.title),1),(0,r.createElementVNode)("div",sn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",un,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",dn,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,on)})),128))])):(0,r.createCommentVNode)("",!0),o.climateResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.route("search",{section:"climate",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.climateResults.totalHits-5)+" other Climate Change Explainers ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",mn,"Enter a search term and click search to see results"))])):"professional"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",pn,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",fn,[t[4]||(t[4]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Professional Development",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",hn,"Searching...")):o.professionalResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",gn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.professionalResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.name),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"professional",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"professional",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"professional",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",yn,[(0,r.createElementVNode)("div",kn,[(0,r.createElementVNode)("h4",bn,(0,r.toDisplayString)(e.name),1),(0,r.createElementVNode)("div",wn,[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",xn,(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",Bn,"Enter a search term and click search to see results"))])):"news"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Sn,[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",An,[(0,r.createElementVNode)("div",Ln,[(0,r.createElementVNode)("h4",In,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Tn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.publish_at?((0,r.openBlock)(),(0,r.createElementBlock)("span",Mn,(0,r.toDisplayString)(new Date(e.publish_at).toLocaleDateString()),1)):(0,r.createCommentVNode)("",!0)]),e.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",Dn,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)("",!0)])])],40,_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 Xn=n(2364),Wn={insert:"head",singleton:!1};te()(Xn.Z,Wn);Xn.Z.locals;const Qn=(0,S.Z)(Yn,[["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 $n=n(32608),Jn=n(76306);const er={components:{PopSearchSkeleton:Qn,AisSearchBox:Jn.AV,AisInstantSearch:Jn.M,AisHits:Jn.xC,AisConfigure:Jn.St,AisHighlight:Jn.YE},data:function(){return{searchTerm:"",perPage:5,isSearching:!1}},setup:function(){var e,t,n,o,i=(null===(e=(0,a.qt)().props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.host)||("undefined"!=typeof window?window.MEILISEARCH_HOST:null)||"http://localhost:7700",l=(null===(n=(0,a.qt)().props.integrations)||void 0===n||null===(o=n.meilisearch)||void 0===o?void 0:o.key)||("undefined"!=typeof window?window.MEILISEARCH_KEY:null)||"",c=(0,On.wA)();return{client:(0,$n.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,Rn.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:Le,Logo:ce,DesktopAuth:He,PopSearch:(0,S.Z)(er,[["render",function(e,t,n,o,a,i){var l=(0,r.resolve
2Component)("AisConfigure"),c=(0,r.resolveComponent)("AisSearchBox"),s=(0,r.resolveComponent)("AisHighlight"),u=(0,r.resolveComponent)("AisHits"),d=(0,r.resolveComponent)("AisInstantSearch"),m=(0,r.resolveComponent)("PopSearchSkeleton");return(0,r.openBlock)(),(0,r.createBlock)(m,{term:a.searchTerm,"onUpdate:term":t[1]||(t[1]=function(e){return a.searchTerm=e})},{default:(0,r.withCtx)((function(n){n.term;return[(0,r.createVNode)(d,{searchClient:o.client,indexName:i.indexName},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(l,{hitsPerPage:a.perPage,page:e.currentPage,filters:i.filters},null,8,["hitsPerPage","page","filters"]),(0,r.createElementVNode)("div",ze,[(0,r.createElementVNode)("a",{href:"/search?term=".concat(a.searchTerm),class:"underline text-xs"},"View all results",8,Ke),a.isSearching?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ye,qe(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",Xe,[(0,r.createVNode)(c,{modelValue:o.debouncedSearchTerm,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.debouncedSearchTerm=e})},null,8,["modelValue"])]),(0,r.createElementVNode)("div",We,[(0,r.createVNode)(u,{onRender:e.handleHitsRender},{default:(0,r.withCtx)((function(e){var n=e.items;return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:i.urlFromTm(e),key:e.id,class:"p-3 flex justify-between bg-neutral-100 rounded-lg items-center w-full mt-3 hover:bg-[#E8FAE8] duration-150"},[(0,r.createElementVNode)("div",$e,[(0,r.createElementVNode)("div",Je,[(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,Qe)})),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,S.Z)(tr,[["render",function(e,t,n,o,a,l){var p=(0,r.resolve
2Component)("Logo"),f=(0,r.resolveComponent)("DesktopMenu"),h=(0,r.resolveComponent)("PopSearch"),g=(0,r.resolveComponent)("DonateButton"),v=(0,r.resolveComponent)("MobileMenu"),y=(0,r.resolveComponent)("DesktopAuth");return(0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(p)]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(f,{expandedMenuId:a.expandedMenuId,"onUpdate:expandedMenuId":t[0]||(t[0]=function(e){return a.expandedMenuId=e})},null,8,["expandedMenuId"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(h),l.showDonateButton?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,class:"hidden md:flex"})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(v,{expandedMenuId:a.expandedMenuId,"onUpdate:expandedMenuId":t[1]||(t[1]=function(e){return a.expandedMenuId=e}),class:"lg:hidden"},null,8,["expandedMenuId"]),(0,r.createVNode)(y,{onExpanded:t[2]||(t[2]=function(e){return a.expandedMenuId="auth"}),onCollapsed:t[3]||(t[3]=function(e){return a.expandedMenuId=null}),expanded:"auth"===a.expandedMenuId,class:"hidden lg:block"},null,8,["expanded"]),1!=l.tenantId?((0,r.openBlock)(),(0,r.createElementBlock)("a",m,i(t[4]||(t[4]=[(0,r.createElementVNode)("img",{src:"/img/logo-with-trademark-2.svg",alt:"SubjectToClimate",width:"387",height:"100",class:"w-full h-auto"},null,-1)])))):(0,r.createCommentVNode)("",!0)])])}]]);function rr(e){return function(e){if(Array.isArray(e))return or(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return or(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ar={class:"mt-10"},ir={class:"flex flex-col lg:flex-row items-center lg:justify-between lg:items-center mb-[50px] space-y-[30px] lg:space-y-0"},lr={class:"w-[239px]"},cr=["href"],sr={class:"flex space-x-[16px]"},ur={class:"flex items-center justify-start space-x-8 mt-10"},dr={target:"_blank",href:"https://www.charitynavigator.org/ein/861536473"},mr=["src"],pr={target:"_blank",href:"https://directories.onepercentfortheplanet.org/profile/subjecttoclimate"},fr=["src"],hr={key:0,class:"mt-10"};var gr=n(49613),vr={href:"/",class:"h-10 block"},yr=["src"];const kr={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},br=(0,S.Z)(kr,[["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 wr=["href"],xr={class:"space-y-[10px] mt-[14px]"};var Er=["href"];const Br={props:{menu:Object}},Sr={components:{MenuItem:(0,S.Z)(Br,[["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,S.Z)(Sr,[["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,wr),(0,r.createElementVNode)("div",xr,[((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]"},Ar=["href"],Lr=["href"],Ir=["href"],Tr=["href"];const Mr={computed:{socialMedias:function(){return(0,a.qt)().props.footer.socialMedias}}},Dr=(0,S.Z)(Mr,[["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,Ar)):(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,Lr)):(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,Tr)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}]]);const jr={components:{Container:gr.Z,Logo:br,Menu:Nr,SocialMediaIcons:Dr},computed:{menus:function(){return(0,a.qt)().props.footer.menus},logoHref:function(){return 1!=(0,a.qt)().props.tenantId?"https://subjecttoclimate.org/":"/"},isCoreSite:function(){return 1==(0,a.qt)().props.tenantId},badge3StarUrl:function(){var e,t=null===(e=(0,a.qt)().props.assetVersions)||void 0===e?void 0:e.badge3Star;return t?"/img/charity_navigator_three_star_rating_badge_2026.png?v=".concat(t):"/img/charity_navigator_three_star_rating_badge_2026.png"},onePercentPlanetUrl:function(){var e,t=null===(e=(0,a.qt)().props.assetVersions)||void 0===e?void 0:e.onePercentPlanet;return t?"/img/environmentalPartner_Vertical_FullColor.webp?v=".concat(t):"/img/environmentalPartner_Vertical_FullColor.webp"}},methods:{initPreferredSourceButton:function(){this.isCoreSite&&(window.PREFERRED_SOURCE=window.PREFERRED_SOURCE||[],window.PREFERRED_SOURCE.push((function(e){return e.init()})))}},mounted:function(){this.initPreferredSourceButton()}},Fr=(0,S.Z)(jr,[["render",function(e,t,n,o,a,i){var l=(0,r.resolve
2Component)("SocialMediaIcons"),c=(0,r.resolveComponent)("Menu"),s=(0,r.resolveComponent)("Container");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ar,[(0,r.createVNode)(s,{class:"p-10"},{default:(0,r.withCtx)((function(){return[t[4]||(t[4]=(0,r.createElementVNode)("hr",{class:"mb-[60px]"},null,-1)),(0,r.createElementVNode)("div",ir,[(0,r.createElementVNode)("div",lr,[(0,r.createElementVNode)("a",{href:i.logoHref,class:"w-[215px] block"},rr(t[0]||(t[0]=[(0,r.createElementVNode)("img",{src:"/img/logo-with-trademark-2.svg",alt:"SubjectToClimate",width:"387",height:"100",class:"w-full h-auto"},null,-1)])),8,cr)]),t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"w-full lg:w-[444px] text-center lg:text-start"}," All resources can be used for your educational purposes with proper attribution to the content provider. ",-1)),(0,r.createElementVNode)("div",sr,[(0,r.createVNode)(l)])]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["grid gap-10 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-".concat(i.menus.length+1)])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(c,{key:e.id,menu:e},null,8,["menu"])})),128))],2),(0,r.createElementVNode)("div",ur,[t[2]||(t[2]=(0,r.createElementVNode)("a",{target:"_blank",href:"https://app.candid.org/profile/10986729/climate-change-for-all-educators-inc-86-1536473"},[(0,r.createElementVNode)("img",{src:"https://widgets.guidestar.org/prod/v1/pdp/transparency-seal/10986729/svg",alt:"Candid Platinum Transparency 2025",class:"h-[100px] w-auto"})],-1)),(0,r.createElementVNode)("a",dr,[(0,r.createElementVNode)("img",{src:i.badge3StarUrl,alt:"3 Star Rating Badge",width:"200",height:"200",class:"h-[100px] w-auto"},null,8,mr)]),(0,r.createElementVNode)("a",pr,[(0,r.createElementVNode)("img",{src:i.onePercentPlanetUrl,alt:"Add 1% For the Planet logo to our site",width:"152",height:"200",class:"h-[100px] w-auto"},null,8,fr)])]),i.isCoreSite?((0,r.openBlock)(),(0,r.createElementBlock)("div",hr,rr(t[3]||(t[3]=[(0,r.createElementVNode)("div",{"google-add-preferred-source-btn":"","data-theme":"light",class:"min-h-[40px]"},null,-1)])))):(0,r.createCommentVNode)("",!0)]})),_:1})])}]]);function Ur(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 Pr={class:"hidden"},Rr={key:0,class:"w-full"},Gr={class:"hidden"},Hr=["onClick"],qr={class:"flex items-center justify-center space-x-4 pr-8"},Zr=["innerHTML"],zr=["href"];function Kr(e){return function(e){if(Array.isArray(e))return Yr(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 Yr(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 Yr(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 Yr(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 Xr(e){return Xr="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},Xr(e)}const Wr={setup:function(){var e=(0,r.ref)(new Set);(0,r.onMounted)((function(){var t=localStorage.getItem("closedBanners");t&&(e.value=new Set(JSON.parse(t)))}));var t=(0,r.computed)((function(){var e=(0,a.qt)().props,t=e.banners;return console.log("Page props:",e),console.log("Raw banners:",t),t?"object"!==Xr(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"}}}}},Qr=(0,S.Z)(Wr,[["render",function(e,t,n,o,a,i){var l;return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",Pr," Active banners: "+(0,r.toDisplayString)(o.activeBanners.length)+" Visible banners: "+(0,r.toDisplayString)(o.visibleBanners.length),1),(null===(l=o.activeBanners)||void 0===l?void 0:l.length)>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Rr,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.visibleBanners,(function(e){var n,a,i,l,c,s,u,d,m,p,f,h,g,v,y;return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,style:(0,r.normalizeStyle)(o.getBannerStyles(null===(n=e.content)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.attributes)),class:"w-full py-3 px-4 text-center relative"},[(0,r.createElementVNode)("div",Gr," 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"})},Ur(t[0]||(t[0]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])),12,Hr),(0,r.createElementVNode)("div",qr,[null!==(u=e.content)&&void 0!==u&&null!==(d=u[0])&&void 0!==d&&null!==(m=d.attributes)&&void 0!==m&&m.text?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,style:(0,r.normalizeStyle)({color:e.content[0].attributes.text_color||"#000000"})},[(0,r.createElementVNode)("div",{innerHTML:e.content[0].attributes.text},null,8,Zr)],4)):(0,r.createCommentVNode)("",!0),null!==(p=e.content)&&void 0!==p&&null!==(f=p[0])&&void 0!==f&&null!==(h=f.attributes)&&void 0!==h&&h.button_text&&null!==(g=e.content)&&void 0!==g&&null!==(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 $r={class:"cookie-consent-banner__content"},Jr={class:"cookie-consent-banner__primary"},eo={class:"cookie-consent-banner__description"},to={class:"cookie-consent-banner__actions"},no={class:"cookie-consent-banner__preferences"},ro={class:"cookie-consent-banner__body"},oo={class:"cookie-consent-banner__options"},ao={class:"cookie-consent-banner__option"},io={class:"cookie-consent-banner__toggle"},lo={class:"cookie-consent-banner__option"},co={class:"cookie-consent-banner__toggle"},so={class:"cookie-consent-banner__actions"};var uo="cookie_consent_preferences",mo=365;function po(){if("undefined"==typeof document)return null;var e=document.cookie.split("; ").find((function(e){return e.startsWith(uo+"=")}));if(!e)return null;try{var t=e.split("=")[1];return JSON.parse(decodeURIComponent(t))}catch(e){return console.error("Error parsing consent cookie:",e),null}}function fo(e){if("undefined"!=typeof window){window.dataLayer=window.dataLayer||[];var t={analytics_storage:"granted"};e.marketing?(t.ad_storage="granted",t.ad_user_data="granted",t.ad_personalization="granted"):(t.ad_storage="denied",t.ad_user_data="denied",t.ad_personalization="denied"),window.dataLayer.push(["consent","update",t]),window.gtag&&"function"==typeof window.gtag&&window.gtag("consent","update",t),function(e){if("undefined"!=typeof document){var t=new Date;t.setTime(t.getTime()+24*mo*60*60*1e3);var n=encodeURIComponent(JSON.stringify(e));document.cookie="".concat(uo,"=").concat(n,"; expires=").concat(t.toUTCString(),"; path=/; SameSite=Lax")}}(e),window.dispatchEvent(new CustomEvent("consentUpdated",{detail:e}))}}function ho(){var e=po();return e?(fo(e),e):null}const go={name:"CookieConsentBanner",setup:function(){var e=(0,r.ref)(!1),t=(0,r.ref)(!1),n=(0,r.ref)("primary"),o=(0,r.ref)({anal
2ytics:!1,marketing:!1}),a=function(){"undefined"!=typeof navigator&&/bot|crawler|spider|crawling/i.test(navigator.userAgent)||null!==ho()||(e.value=!0,setTimeout((function(){t.value=!0}),10))},i=function(){t.value=!1,setTimeout((function(){e.value=!1}),300)};return(0,r.onMounted)((function(){var e=ho();e?o.value=e:"undefined"!=typeof window&&("requestIdleCallback"in window?requestIdleCallback(a,{timeout:2e3}):setTimeout(a,1e3))})),{shouldRender:e,isVisible:t,screen:n,preferences:o,acceptAll:function(){o.value={analytics:!0,marketing:!0},fo(o.value),i()},decline:function(){o.value={analytics:!1,marketing:!1},fo(o.value),i()},openPreferencesModal:function(){n.value="preferences"},closePreferencesModal:function(){n.value="primary"},savePreferencesFromModal:function(){fo(o.value),i()},closeBanner:i}}};var vo=n(54210),yo={insert:"head",singleton:!1};te()(vo.Z,yo);vo.Z.locals;const ko=(0,S.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",$r,[(0,r.withDirectives)((0,r.createElementVNode)("div",Jr,[(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 wo(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 wo(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 wo(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 wo(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 xo={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"},Bo=["href"],So={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,S.Z)(Co,[["render",function(e,t,n,o,a,i){return n.items&&n.items.length?((0,r.openBlock)(),(0,r.createElementBlock)("nav",xo,[(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,Bo)):((0,r.openBlock)(),(0,r.createElementBlock)("span",So,(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:Fr,Container:gr.Z,Banner:Qr,CookieConsentBanner:ko,Breadcrumbs:Vo},computed:{breadcrumbs:function(){var e;return null!==(e=(0,a.qt)().props.breadcrumbs)&&void 0!==e?e:[]}}},Ao=(0,S.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"),m=(0,r.resolveComponent)("Breadcrumbs"),p=(0,r.resolveComponent)("Footer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(c),(0,r.createVNode)(s),(0,r.createVNode)(d,{class:""},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(u)]})),_:1}),l.breadcrumbs.length?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,class:""},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(m,{items:l.breadcrumbs},null,8,["items"])]})),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("main",null,[(0,r.renderSlot)(e.$slots,"default")]),(0,r.createVNode)(p)])}]])},87202:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});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:"overflow-hidden flex-shrink-0 bottom-0 left-0 pr-2 pl-1 -ml-1 -mb-1 absolute bg-white flex items-center justify-center rounded-tr-xl rounded-bl-xl text-sm z-10"},l={class:"w-full h-full resource-card duration-150 object-cover overflow-hidden rounded-bl-[13px] rounded-tr-xl rounded-tl-xl rounded-br-xl"},c=["src"],s=["href"],u={key:1,class:"line-clamp-3 mt-[12px] font-semibold"};var d=n(15973),m=n(76306),p=n(87879),f=n(72326),h=n(3754),g=n(47393);const v={components:{ItemCard:d.Z,AisHighlight:m.YE,Grades:h.Z},props:{resource:Object,isLoadedFromAlgolia:{default:!0,type:Boolean},position:{type:Number,default:null},queryUid:{type:String,default:null}},computed:{url:function(){if(this.resource.slug){var e;if(this.resource.is_external_resource?e=route("resources.show",this.resource.slug):this.resource.is_internal_resource?e=route("stc.show",this.resource.slug):this.resource.is_internal_unit_plan&&(e=route("stc.unit",this.resource.slug)),e&&this.queryUid){var t=e.includes("?")?"&":"?";return e+t+"queryUid="+encodeURIComponent(this.queryUid)}return e}return null},providerImageUrl:function(){var e;return null!==(e=this.resource.firstProviderCircleImageUrl)&&void 0!==e?e:this.resource.firstProviderImageUrl},imageUrl:function(){return this.resource.image_conversions&&this.resource.image_conversions[240]?this.resource.image_conversions[240]:this.resource.image_conversions&&this.resource.image_conversions[360]?this.resource.image_conversions[360]:this.resource.image}},methods:{notifyAlgoliaAboutClick:function(){var e=this.teachingMaterialsIndex||"teaching_materials";if((0,g.ob)({indexUid:e,objectId:String(this.resource.id),objectName:this.resource.title,position:this.position,queryUid:this.queryUid}),this.aa){var t=this.resource.id;this.aa("clickedObjectIDs",{objectIDs:[t.toString()],eventName:"External Resource Clicked",index:this.teachingMaterialsIndex})}},sortGradeBands:f.dP},setup:function(){var e,t,n,o,a=(0,r.inject)("initAndGetAlgoliaEventDispatcher")(),i=(0,p.qt)();return{aa:a,teachingMaterialsIndex:(null===(e=i.props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(n=i.props.integrations)||void 0===n||null===(o=n.algolia)||void 0===o?void 0:o.teachingMaterialsIndex)||"teaching_materials"}}};const y=(0,n(83744).Z)(v,[["render",function(e,t,n,a,d,m){var p=(0,r.resolve
2Component)("Grades"),f=(0,r.resolveComponent)("AisHighlight"),h=(0,r.resolveComponent)("PrimaryButton"),g=(0,r.resolveComponent)("ItemCard");return(0,r.openBlock)(),(0,r.createBlock)(g,{item:n.resource,imageUrl:m.imageUrl,bookmarkRoute:"tm.bookmark",actionUrl:m.url,onClick:t[1]||(t[1]=function(e){return m.notifyAlgoliaAboutClick()})},(0,r.createSlots)({badge:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,(0,r.toDisplayString)(n.resource.type),1)]})),image:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("img",{alt:"stc",class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:m.imageUrl},null,8,c)])]})),bands:(0,r.withCtx)((function(){return[(0,r.createVNode)(p,{grades:n.resource.grades},null,8,["grades"])]})),title:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("a",{href:m.url},[n.isLoadedFromAlgolia?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,attribute:"title",hit:n.resource,"class-names":{"ais-Highlight":"font-semibold line-clamp-3"}},null,8,["hit"])):((0,r.openBlock)(),(0,r.createElementBlock)("div",u,(0,r.toDisplayString)(n.resource.title),1))],8,s)]})),tags:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.resource.subjects_list_short,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:"text-xs rounded-2xl bg-[#EEF1F6] px-2.5 py-0.5"},(0,r.toDisplayString)(e),1)})),128))]})),_:2},[m.url?{name:"action",fn:(0,r.withCtx)((function(){return[(0,r.createVNode)(h,{onClick:t[0]||(t[0]=function(e){return m.notifyAlgoliaAboutClick()}),href:m.url},{default:(0,r.withCtx)((function(){return o(t[2]||(t[2]=[(0,r.createElementVNode)("span",{class:"capitalize"},"View Resource",-1)]))})),_:1},8,["href"])]})),key:"0"}:void 0]),1032,["item","imageUrl","actionUrl"])}]])},77479:(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:"mt-8 px-4 xl:px-0"},l={class:"flex items-center justify-between"},c={key:0},s={key:1},u={class:"grid grid-cols-12 gap-6 lg:gap-10"},d={class:"col-span-12 lg:col-span-7"},m={class:"max-w-[700px] flex items-center gap-4"},p={class:"text-[18px] lg:text-4xl font-[700]"},f={key:0,src:"https://studio.code.org/api/hour/begin_genaiela.png"},h={class:"mt-[20px]"},g={key:0},v={class:"mt-3 space-y-3"},y={class:"flex items-center gap-6 flex-wrap"},k={class:"flex items-center gap-3"},b={key:0,class:"flex items-center gap-3"},w={class:"flex items-center gap-6 flex-wrap"},x={key:0,class:"rounded-xl bg-[#EEF1F6] p-3 text-sm font-medium mt-6"},E={key:1,class:"rounded-xl bg-[#EEF1F6] p-3 text-sm font-medium mt-6"},B={key:2,class:"mt-[36px]"},S=["innerHTML"],N={key:0,class:"col-span-12 lg:col-span-5"},C={class:"border rounded mt-4 overflow-hidden"},V={class:"flex items-center gap-3 flex-wrap mt-6"},_=["fill"],A={class:"grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-4 gap-4 w-full mt-6"};var L=n(19394),I=n(49613),T=n(87879),M=n(66950),D=n(9783),j=n(63012),F=n(5121),U=n(72326),O=n(47393),P=n(32503),R=n(98032),G=n(96008),H=n(3754),q=n(75986),Z=n(95785);function z(){z=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 m?t:m,i=Object.create(a.prototype),l=new S(o||[]);return r(i,"_invoke",{value:w(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(N([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function k(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"==K(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 w(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=x(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 x(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,x(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 B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(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 p.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},k(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()}))},k(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,S.prototype={constructor:S,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(B),!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),B(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;B(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 K(e){return K="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},K(e)}function Y(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 X={components:{MainLayout:L.Z,Container:I.Z,ResourceCard:M.default,RelatedResourceItems:j.default,TabsSection:P.default,ReviewsComments:D.default,MaterialItem:R.default,LessonPlanPreview:G.default,Grades:H.Z,ScientistReviewedSeal:q.Z,PrimaryButton:Z.Z},data:function(){return{isBookmarkedState:!1}},props:{teachingMaterial:{type:Object},subjects:{type:Array,default:[]},bookmarkedResourcesIds:{type:Array,default:[]},isBookmarked:{type:Boolean,default:!1},canEdit:{type:Boolean,default:!1},tenantSlug:{type:String,default:String}},watch:{},setup:function(){return{mergeContinuousLevels:U.aV}},methods:{toggleBookmark:function(){var e,t=this;return(e=z().mark((function e(){return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.user&&("object"!==K(t.user)||t.user.id)){e.next=3;break}return window.location.href=route("login"),e.abrupt("return");case 3:return t.isBookmarkedState=!t.isBookmarkedState,e.prev=4,e.next=7,F.Z.put(route("tm.bookmark",t.teachingMaterial.id),{is_bookmarked:t.isBookmarkedState}).then((function(e){return e.data}));case 7:e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),console.error(e.t0);case 13:return e.prev=13,e.finish(13);case 15:case"end":return e.stop()}}),e,null,[[4,10,13,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Y(a,r,o,i,l,"next",e)}function l(e){Y(a,r,o,i,l,"throw",e)}i(void 0)}))})()},formatDate:function(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},goToPreviousPage:function(){window.history.back()}},computed:{lessonCount:function(){var e,t,n;return null!==(e=null===(t=this.teachingMaterial.teachable)||void 0===t||null===(n=t.teaching_materials)||void 0===n?void 0:n.length)&&void 0!==e?e:0},providerImageUrl:function(){},providerCircleImageUrl:function(){},providerDescription:function(){},providerName:function(){return"Sustainability Ambassadors"},mergedGrades:function(){return(0,U.aV)(this.teachingMaterial.grades.map((function(e){return"object"===K(e)?e.name:e})))},teachingMaterialType:function(){return"object"===K(this.teachingMaterial.type)?this.teachingMaterial.type.n
2ame:this.teachingMaterial.type},user:function(){return(0,T.qt)().props.auth.user}},mounted:function(){this.isBookmarkedState=this.isBookmarked,console.log(this.teachingMaterial);var e=(0,O.VK)();if(e&&this.teachingMaterial){var t=(0,O.aU)()||"teaching_materials";(0,O.De)({indexUid:t,objectId:String(this.teachingMaterial.id),objectName:this.teachingMaterial.title,eventName:"Unit Plan Viewed",queryUid:e})}}};var W=n(93379),Q=n.n(W),$=n(7551),J={insert:"head",singleton:!1};Q()($.Z,J);$.Z.locals;const ee=(0,n(83744).Z)(X,[["render",function(e,t,n,a,L,I){var T=(0,r.resolveComponent)("Container"),M=(0,r.resolveComponent)("Grades"),D=(0,r.resolveComponent)("ScientistReviewedSeal"),j=(0,r.resolveComponent)("LessonPlanPreview"),F=(0,r.resolveComponent)("PrimaryButton"),U=(0,r.resolveComponent)("MaterialItem"),O=(0,r.resolveComponent)("MainLayout");return(0,r.openBlock)(),(0,r.createBlock)(O,null,{default:(0,r.withCtx)((function(){return[t[16]||(t[16]=(0,r.createElementVNode)("div",null,null,-1)),(0,r.createVNode)(T,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return I.goToPreviousPage()}),class:"flex space-x-2 items-center"},[t[2]||(t[2]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)),"ecclps"==n.tenantSlug?((0,r.openBlock)(),(0,r.createElementBlock)("span",c,"Back to Teaching Resources")):((0,r.openBlock)(),(0,r.createElementBlock)("span",s,"Back to SubjectToClimate Materials"))])])])]})),_:1}),(0,r.createVNode)(T,{class:"mt-8 p-4"},{default:(0,r.withCtx)((function(){var e,a;return[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("h1",p,(0,r.toDisplayString)(n.teachingMaterial.title),1),3829===n.teachingMaterial.id?((0,r.openBlock)(),(0,r.createElementBlock)("img",f)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",h,[n.teachingMaterial.published_at?((0,r.openBlock)(),(0,r.createElementBlock)("span",g,[t[3]||(t[3]=(0,r.createElementVNode)("b",{class:"font-[600]"},"Published on:",-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(I.formatDate(n.teachingMaterial.published_at)),1)])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("div",k,[t[4]||(t[4]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Grades: ",-1)),(0,r.createVNode)(M,{grades:n.teachingMaterial.grades,"show-colors":!1,plain:!0},null,8,["grades"])]),n.subjects.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[t[5]||(t[5]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Subjects: ",-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.subjects.join(", ")),1)])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",w,[(0,r.createVNode)(D,{variant:"row"})])]),"sequential"==n.teachingMaterial.teachable.completion_type?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,o(t[6]||(t[6]=[(0,r.createTextVNode)(" This unit plan is designed for the lessons to be taught in order. The unit as a whole has scored in the exemplar range on ",-1),(0,r.createElementVNode)("a",{target:"_blank",href:"https://docs.google.com/document/d/1LFgxfLe6nI5GNWNZbK9reLwmLR46TowCYr2r3UyaFbY/view",class:"underline font-semibold"},"our rubric.",-1),(0,r.createTextVNode)(),(0,r.createElementVNode)("a",{href:"#lessonPlans",class:"underline font-semibold"},"See lesson plans",-1),(0,r.createTextVNode)(" for more details. ",-1)])))):"individual"==n.teachingMaterial.teachable.completion_type?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,o(t[7]||(t[7]=[(0,r.createTextVNode)(" The lessons in this unit can be taught in order or as independent lessons. Each individual lesson has scored in the exemplar range on our ",-1),(0,r.createElementVNode)("a",{target:"_blank",href:"https://docs.google.com/document/d/1LFgxfLe6nI5GNWNZbK9reLwmLR46TowCYr2r3UyaFbY/view",class:"underline font-semibold"},"rubric.",-1),(0,r.createTextVNode)(),(0,r.createElementVNode)("a",{href:"#lessonPlans",class:"underline font-semibold"},"See lesson plans",-1),(0,r.createTextVNode)(" for more details. ",-1)])))):(0,r.createCommentVNode)("",!0),n.teachingMaterial.synopsis?((0,r.openBlock)(),(0,r.createElementBlock)("div",B,[t[8]||(t[8]=(0,r.createElementVNode)("h2",{class:"text-[18px] md:text-[24px] font-semibold mb-[15px]"},"Description of Unit Plan",-1)),(0,r.createElementVNode)("div",{innerHTML:n.teachingMaterial.synopsis},null,8,S)])):(0,r.createCommentVNode)("",!0)]),null!==(e=n.teachingMaterial.teachable)&&void 0!==e&&e.url?((0,r.openBlock)(),(0,r.createElementBlock)("div",N,[t[12]||(t[12]=(0,r.createElementVNode)("h2",{class:"text-[18px] font-semibold"},"Unit Plan Preview",-1)),(0,r.createElementVNode)("div",C,[(0,r.createVNode)(j,{resource:n.teachingMaterial},null,8,["resource"])]),(0,r.createElementVNode)("div",V,[null!==(a=n.teachingMaterial.teachable)&&void 0!==a&&a.url?((0,r.openBlock)(),(0,r.createBlock)(F,{key:0,class:"text-[16px] !rounded-full !w-auto px-8",href:n.teachingMaterial.teachable.url,target:"_blank"},{default:(0,r.withCtx)((function(){return o(t[9]||(t[9]=[(0,r.createTextVNode)(" View 
2Unit Plan ",-1)]))})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),I.lessonCount?((0,r.openBlock)(),(0,r.createBlock)(F,{key:1,class:"text-[16px] !rounded-full !w-auto px-8",href:"#lessonPlans"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View Lesson Plans ("+(0,r.toDisplayString)(I.lessonCount)+") ",1)]})),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["flex items-center gap-2 rounded-full border px-4 py-2.5 text-sm font-semibold transition hover:scale-105",L.isBookmarkedState?"border-[#FF8B8B] text-[#FF8B8B]":"border-gray-300 text-gray-600 hover:border-gray-400"]),onClick:t[1]||(t[1]=function(e){return I.toggleBookmark()})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:L.isBookmarkedState?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8"},o(t[10]||(t[10]=[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21s-7.5-4.6-10-9.2C.5 8.4 2 4.5 5.6 4c2.1-.3 4 .7 6.4 3 2.4-2.3 4.3-3.3 6.4-3 3.6.5 5.1 4.4 3.6 7.8C19.5 16.4 12 21 12 21z"},null,-1)])),8,_)),t[11]||(t[11]=(0,r.createElementVNode)("span",null,"Save",-1))],2)])])):(0,r.createCommentVNode)("",!0)]),t[13]||(t[13]=(0,r.createElementVNode)("hr",{class:"w-full mt-8 mb-0"},null,-1))]})),_:1}),(0,r.createVNode)(T,{class:"px-4 xl:px-0"},{default:(0,r.withCtx)((function(){return[t[14]||(t[14]=(0,r.createElementVNode)("div",{class:"w-[720px] max-w-full"},[(0,r.createElementVNode)("h2",{id:"lessonPlans",class:"text-[18px] md:text-[24px] font-semibold mb-[15px]"},"Lesson Plans")],-1)),(0,r.createElementVNode)("div",A,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.teachingMaterial.teachable.teaching_materials,(function(e,t){return(0,r.openBlock)(),(0,r.createBlock)(U,{key:null==e?void 0:e.id,material:e,fromUnitPlanPage:!0,index:t,isLoadedFromAlgolia:!1},null,8,["material","index"])})),128))]),(0,r.createVNode)(D,{variant:"banner"}),t[15]||(t[15]=(0,r.createElementVNode)("div",{class:"mt-[36px] lg:mt-[80px]",id:"relatedTeachingMaterials"},null,-1))]})),_:1})]})),_:1})}]])},5177:(e,t,n)=>{n.r(t),n.d(t,{default:()=>B});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:"grid grid-cols-4 gap-8 px-[35px] py-[28px]"},l={class:"-mt-2"},c={class:"flex flex-col justify-between h-full"},s=["onClick"],u={class:"col-span-3 w-full"},d={class:"bg-white rounded-xl overflow-y-scroll"},m={key:0,class:"h-full"},p={key:0,class:"w-full h-full relative"},f={key:0,class:"h-full overflow-hidden rounded-xl border shadow",style:{"aspect-ratio":"480 /294"}},h=["src"],g=["innerHTML"],v={key:1,class:"w-full h-full flex items-center justify-center"},y=["href"],k={class:"text-right"},b=["href"];var w=n(72326),x=[{label:"Materials",name:"materials"}];const E={props:{resource:Object},components:{},data:function(){var e,t,n,r,o,a;return{selectedEmbeddingId:null!==(e=null===(t=this.resource)||void 0===t||null===(n=t.teachable)||void 0===n?void 0:n.embeddings[0].id)&&void 0!==e?e:null,embeddings:null!==(r=null===(o=this.resource)||void 0===o||null===(a=o.teachable)||void 0===a?void 0:a.embeddings)&&void 0!==r?r:[]}},computed:{selectedEmbedding:function(){var e=this,t=this.embeddings.filter((function(t){return t.id==e.selectedEmbeddingId}));return t.length?t[0]:null}},methods:{extractSrcUrlFromIframeString:w.K8,isGoogleDocsUrl:function(e){try{return"docs.google.com"===new URL(e).hostname}catch(e){return console.error("Invalid URL:",e),!1}}},setup:function(){return{tabs:x}}};const B=(0,n(83744).Z)(E,[["render",function(e,t,n,a,w,x){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.embeddings,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{onClick:function(t){return w.selectedEmbeddingId=e.id},key:e.id,class:(0,r.normalizeClass)([e.id==w.selectedEmbeddingId?"bg-primary-500 text-contrast-500":"","py-[8px] px-[20px] text-left font-medium rounded-xl text-xl min-h-[56px] shrink mt-2 w-full"])},(0,r.toDisplayString)(e.name),11,s)})),128))]),t[0]||(t[0]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{href:"https://www.youtube.com/watch?v=39XuefVSaH0&ab_channel=SubjectToClimate",target:"_blank",class:(0,r.normalizeClass)("bg-[#FFA572] text-contrast-500  font-[500] flex justify-center items-center rounded-xl w-full py-2 px-[20px] hover:shadow duration-100 h-[40px]")}," How to Edit Materials ")],-1))])]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[x.selectedEmbedding?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[x.selectedEmbedding.code?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"absolute top-0 left-0 w-full h-full flex items-center justify-center"},[(0,r.createElementVNode)("svg",{class:"w-8 h-8 animate-spin text-primary-500",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"#e8eaed"},[(0,r.createElementVNode)("path",{d:"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z"})])],-1)),x.isGoogleDocsUrl?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("iframe",{class:"h-full scale-[101%]",loading:"lazy",src:x.extractSrcUrlFromIframeString(x.selectedEmbedding.code),frameborder:"0",width:"100%",height:"100%",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"},null,8,h)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,innerHTML:x.selectedEmbedding.code},null,8,g))])):((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[t[2]||(t[2]=(0,r.createTextVNode)(" Preview not provided, ",-1)),(0,r.createElementVNode)("a",{href:x.selectedEmbedding.url,target:"_blank",class:"underline font-semibold"},"open material",8,y)]))])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",k,[(0,r.createElementVNode)("a",{href:x.selectedEmbedding.url,class:"underline inline-flex space-x-[6px] mt-[12px] text-lg items-center",target:"_blank"},o(t[3]||(t[3]=[(0,r.createStaticVNode)('<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect width="23" height="23" fill="url(#pattern0_99_2191)"></rect><defs><pattern id="pattern0_99_2191" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_99_2191" transform="scale(0.01)"></use></pattern><image id="image0_99_2191" width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAADf0lEQVR4nO3dT2sTQRzG8elFRPHPG9B4CCbze5bmEFBE8aDg2bN/QJCqFG9KFau0oqgHiydR9E2or8Cqxx4UPelFvIqIRaoe2pWREau22Q26s7+Zfb4wt2Y62c9uMk1CYwxjjDHGGGOMMcYYYw2r0+lsy7LsCICzInIuwDjd7Xa3D7vOdru9EcDR/70eAJMictUdg36/v87UlbV2r4g8A5DXMJYA3Ci7VgAHAHyoel
20i8g5AzwRuBMC0Pyh1YOTLDsDJosVaa1sA5gOu623QK8Vj5ErG6xLrvVbDiXIo2MOUhisDv8aSiKwpAHlQw7ouBwGp8TkjX+VM/FhizfdrWNt0kN1U3QD4G+ROCZB9SYK4LaMyjBf9fn9TybXPJAfi99yDDtCCiMwFGI9F5PywOxlr7UH3fDLk7/qsFqTE7uqVSSgAxwEsEiR+DF4hyjAIogyDIMowCPKviciJIV6BcD/3hSA6rgyHMe52lARRguFvRxAtGP62BNGC4W9PEC0Yfg6CaMHw8xBEC4afiyBaMPx8BNGC4eckiBYMPy9Bqn45xP38EHM/L5jvoqm6mN6gkgoxXAAe1v4xoFhApGKMZW8Hrzbn+06ns8FUXQwgIjJWNcbPANxcYc55a+3+/3uvIgWRgBh/fMTonv/wxBX3sVUTKs0gqGg3pTqtIGgihlYQNBVDIwiajKENBE3H0AQCYugBATH0gMjwf2eMmUC1Wq21pkkgohCj1+ttBnAXwCf/e99kWXbKpA4iCjFGR0fXA3i5yhqum1RBRCGGC8CFgnW0kwMRpRguALMF6xlPCkQUY5R5x1BEppIBQQRb28a8hYsIMBoDgkgwGgGCiDCSBxGRY5qfwBsFYq0FgG8xYSQNIiK3YsNIHeRRbBipg9yODSNpEGvtzgG7qyWNGEmDuETkzAooX93uyygtaRCXiOzwD1/uv7/NZFnWNYpLHiS2CKIsgiiLIMoiiLIIoiyCKIsgyiKIsgiiLIIoiyDKUgGi6F+NzykYCwUgE5WD+O+ZKnp3jwM/Ts7DlYP4rw7S9GUuudLhjtEWEyIATxXc4Vz5mDWhEpE9vEowCGMxy7JdwUA8ypSCszBXOiZNDY2IyCVeKfjtyvAYI6auAOwG8ETBWZnX/AQ+G/xhalAistVt89ze2337ZkPGhLvP7r7XffwZY4wxxhhjjDHGGDOB+w5DziUbzN6bkwAAAABJRU5ErkJggg=="></image></defs></svg> <span>View in new tab</span>',3)])),8,b)])])])}]])},96008:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});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:"w-full",style:{"aspect-ratio":"480 /294"}},l=["src"],c={class:"text-right px-6 border-t border-gray-300 py-4"},s=["href"];var u=n(72326);const d={props:{resource:Object},components:{},data:function(){return{}},computed:{},methods:{convertToEmbedUrl:u.x1},setup:function(){return{}}};const m=(0,n(83744).Z)(d,[["render",function(e,t,n,a,u,d){var m,p;return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("iframe",{loading:"lazy",src:d.convertToEmbedUrl(null===(m=n.resource.teachable)||void 0===m?void 0:m.url),frameborder:"0",width:"100%",height:"100%",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"},null,8,l),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("a",{href:null===(p=n.resource.teachable)||void 0===p?void 0:p.url,class:"underline inline-flex space-x-[6px] text-lg items-center",target:"_blank"},o(t[0]||(t[0]=[(0,r.createStaticVNode)('<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect width="23" height="23" fill="url(#pattern0_99_2191)"></rect><defs><pattern id="pattern0_99_2191" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_99_2191" transform="scale(0.01)"></use></pattern><image id="image0_99_2191" width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAADf0lEQVR4nO3dT2sTQRzG8elFRPHPG9B4CCbze5bmEFBE8aDg2bN/QJCqFG9KFau0oqgHiydR9E2or8Cqxx4UPelFvIqIRaoe2pWREau22Q26s7+Zfb4wt2Y62c9uMk1CYwxjjDHGGGOMMcYYYw2r0+lsy7LsCICzInIuwDjd7Xa3D7vOdru9EcDR/70eAJMictUdg36/v87UlbV2r4g8A5DXMJYA3Ci7VgAHAHyoel
20i8g5AzwRuBMC0Pyh1YOTLDsDJosVaa1sA5gOu623QK8Vj5ErG6xLrvVbDiXIo2MOUhisDv8aSiKwpAHlQw7ouBwGp8TkjX+VM/FhizfdrWNt0kN1U3QD4G+ROCZB9SYK4LaMyjBf9fn9TybXPJAfi99yDDtCCiMwFGI9F5PywOxlr7UH3fDLk7/qsFqTE7uqVSSgAxwEsEiR+DF4hyjAIogyDIMowCPKviciJIV6BcD/3hSA6rgyHMe52lARRguFvRxAtGP62BNGC4W9PEC0Yfg6CaMHw8xBEC4afiyBaMPx8BNGC4eckiBYMPy9Bqn45xP38EHM/L5jvoqm6mN6gkgoxXAAe1v4xoFhApGKMZW8Hrzbn+06ns8FUXQwgIjJWNcbPANxcYc55a+3+/3uvIgWRgBh/fMTonv/wxBX3sVUTKs0gqGg3pTqtIGgihlYQNBVDIwiajKENBE3H0AQCYugBATH0gMjwf2eMmUC1Wq21pkkgohCj1+ttBnAXwCf/e99kWXbKpA4iCjFGR0fXA3i5yhqum1RBRCGGC8CFgnW0kwMRpRguALMF6xlPCkQUY5R5x1BEppIBQQRb28a8hYsIMBoDgkgwGgGCiDCSBxGRY5qfwBsFYq0FgG8xYSQNIiK3YsNIHeRRbBipg9yODSNpEGvtzgG7qyWNGEmDuETkzAooX93uyygtaRCXiOzwD1/uv7/NZFnWNYpLHiS2CKIsgiiLIMoiiLIIoiyCKIsgyiKIsgiiLIIoiyDKUgGi6F+NzykYCwUgE5WD+O+ZKnp3jwM/Ts7DlYP4rw7S9GUuudLhjtEWEyIATxXc4Vz5mDWhEpE9vEowCGMxy7JdwUA8ypSCszBXOiZNDY2IyCVeKfjtyvAYI6auAOwG8ETBWZnX/AQ+G/xhalAistVt89ze2337ZkPGhLvP7r7XffwZY4wxxhhjjDHGGDOB+w5DziUbzN6bkwAAAABJRU5ErkJggg=="></image></defs></svg> <span>View in new tab</span>',3)])),8,s)])])])}]])},63012:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(41916),o={class:"w-full h-full"},a={class:"grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-4 gap-4 w-full mt-6"};var i=n(76306),l=n(32608),c=n(47393),s=n(91440),u=n(87879),d=n(87202),m=n(98032);function p(e){return p="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},p(e)}const f={components:{ResourceItem:d.default,AisConfigure:i.St,AisInstantSearch:i.M,AisHits:i.xC,InternalResourceItem:m.default},props:{resource:Object,bookmarkedResourcesIds:{type:Array,default:[]}},computed:{indexName:function(){var e,t,n,r;return(null===(e=(0,u.qt)().props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(n=(0,u.qt)().props.integrations)||void 0===n||null===(r=n.algolia)||void 0===r?void 0:r.teachingMaterialsIndex)||"teaching_materials"},filters:function(){var e="is_live=true AND id!=".concat(this.resource.id);if(this.resource.keywords&&this.resource.keywords.length>0){var t=this.resource.keywords.map((function(e){return"'".concat(String(e).replace(/'/g,"''"),"'")})).join(", ");e+=" AND keywords IN [".concat(t,"]")}if(this.resource.grades&&this.resource.grades.length>0){var n=this.resource.grades.map((function(e){var t="object"===p(e)&&e.name||e;return"'".concat(String(t).replace(/'/g,"''"),"'")})).join(", ");e+=" AND grades IN [".concat(n,"]")}return e}},setup:function(){var e,t,n,r,o=(null===(e=(0,u.qt)().props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.host)||("undefined"!=typeof window?window.MEILISEARCH_HOST:void 0)||"http://localhost:7700",a=(null===(n=(0,u.qt)().props.integrations)||void 0===n||null===(r=n.meilisearch)||void 0===r?void 0:r.key)||("undefined"!=typeof window?window.MEILISEARCH_KEY:void 0)||"",i=(0,c.wA)();return{client:(0,l.instantMeiliSearch)(o,a,{placeholderSearch:!1,primaryKey:"id",requestConfig:{headers:{"X-MS-USER-ID":i}}}).searchClient}},mounted:function(){(0,s.j)({tenantId:(0,u.qt)().props.tenantId,index:this.indexName,source:"related"})},methods:{bookmarkUpdated:function(e){var t=e.id,n=e.is_bookmarked,r=this.bookmarkedResourcesIds.indexOf(t);n&&-1==r?this.bookmarkedResourcesIds.push(t):!n&&r>-1&&this.bookmarkedResourcesIds.splice(r,1)}}};const h=(0,n(83744).Z)(f,[["render",function(e,t,n,i,l,c){var s=(0,r.resolveComponent)("AisConfigure"),u=(0,r.resolveComponent)("ResourceItem"),d=(0,r.resolveComponent)("InternalResourceItem"),m=(0,r.resolveComponent)("AisHits"),p=(0,r.resolveComponent)("AisInstantSearch");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[t[0]||(t[0]=(0,r.createElementVNode)("h2",{class:"text-[24px] font-semibold"},"Related Lessons, Units, and Activities",-1)),(0,r.createVNode)(p,{searchClient:i.client,indexName:c.indexName},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(s,{hitsPerPage:4,page:0,filters:c.filters},null,8,["filters"]),(0,r.createVNode)(m,null,{default:(0,r.withCtx)((function(e){var t=e.items;return[(0,r.createElementVNode)("div",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:null==e?void 0:e.id},[e.is_external_resource?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,resource:e,isBookmarked:n.bookmarkedResourcesIds.includes(e.id),onBookmarkUpdated:c.bookmarkUpdated},null,8,["resource","isBookmarked","onBookmarkUpdated"])):((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,material:e,isBookmarked:n.bookmarkedResourcesIds.includes(e.id),onBookmarkUpdated:c.bookmarkUpdated},null,8,["material","isBookmarked","onBookmarkUpdated"]))])})),128))])]})),_:1})]})),_:1}
2,8,["searchClient","indexName"])])}]])},66950:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});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:"overflow-hidden rounded-xl shadow-lg bg-white relative"},l={class:"relative"},c=["innerHTML"],s={class:"absolute top-3 right-3"},u={class:"px-[16px] pt-[20px] pb-[20px]"},d={key:0},m={key:1},p={class:"mt-3 flex items-center gap-2"},f=["fill"],h={key:0,class:"text-[14px] block mt-[14px]"};n(72326);var g=n(87879),v=n(95785),y=n(75986);const k={components:{PrimaryButton:v.Z,ScientistReviewedSeal:y.Z},props:{resource:Object,isActivity:Boolean,onLocalize:{type:Function,default:null},isBookmarked:{type:Boolean,default:!1}},emits:["toggle-bookmark"],methods:{openLocalizeModal:function(){window.dispatchEvent(new CustomEvent("open-lesson-localization",{detail:{resourceId:this.resource.id}}))}},data:function(){return{}},mounted:function(){},computed:{user:function(){return(0,g.qt)().props.auth.user},localizationEnabled:function(){var e,t;return!(null===(e=(0,g.qt)().props.integrations)||void 0===e||null===(t=e.openai)||void 0===t||!t.lessonLocalizationEnabled)}},setup:function(){return{}}};const b=(0,n(83744).Z)(k,[["render",function(e,t,n,a,g,v){var y=(0,r.resolveComponent)("ScientistReviewedSeal"),k=(0,r.resolveComponent)("PrimaryButton");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",{innerHTML:n.resource.responsive_image_html,class:"w-full h-full duration-150 object-cover"},null,8,c),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(y,{variant:"badge"})])]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(k,{class:"text-[16px] !rounded-full",href:n.resource.teachable.url,target:"_blank"},{default:(0,r.withCtx)((function(){return[n.isActivity?((0,r.openBlock)(),(0,r.createElementBlock)("span",d,"View Activity")):((0,r.openBlock)(),(0,r.createElementBlock)("span",m,"View Lesson Plan"))]})),_:1},8,["href"]),(0,r.createElementVNode)("div",p,[n.onLocalize&&v.localizationEnabled?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"ai-feature-button flex flex-1 items-center justify-center gap-2 rounded-full px-4 py-2.5 text-sm font-semibold transition hover:scale-105",style:{"box-shadow":"0 0 18px 4px rgba(255, 165, 114, 0.35)"},onClick:t[0]||(t[0]=function(){return v.openLocalizeModal&&v.openLocalizeModal.apply(v,arguments)})},o(t[2]||(t[2]=[(0,r.createElementVNode)("span",{class:"text-base leading-none"},"🌟",-1),(0,r.createElementVNode)("span",null,"Customize for your class",-1)])))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["flex items-center gap-2 rounded-full border px-4 py-2.5 text-sm font-semibold transition hover:scale-105",n.isBookmarked?"border-[#FF8B8B] text-[#FF8B8B]":"border-gray-300 text-gray-600 hover:border-gray-400"]),onClick:t[1]||(t[1]=function(t){return e.$emit("toggle-bookmark")})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:n.isBookmarked?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8"},o(t[3]||(t[3]=[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21s-7.5-4.6-10-9.2C.5 8.4 2 4.5 5.6 4c2.1-.3 4 .7 6.4 3 2.4-2.3 4.3-3.3 6.4-3 3.6.5 5.1 4.4 3.6 7.8C19.5 16.4 12 21 12 21z"},null,-1)])),8,f)),t[4]||(t[4]=(0,r.createElementVNode)("span",null,"Save",-1))],2)])])])]),n.resource.published_at_formatted?((0,r.openBlock)(),(0,r.createElementBlock)("span",h,"Posted on "+(0,r.toDisplayString)(n.resource.published_at_formatted),1)):(0,r.createCommentVNode)("",!0)],64)}]])}
vendor: 5,260 bytes, line 2
2,9783:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var r=n(41916),o={class:"mt-[80px]",id:"reviews"},a={key:0,class:"rounded-xl py-[20px] px-[24px] bg-[#EEF1F6]"},i={class:"flex flex-col justify-center items-center mt-[40px]"},l={class:"max-w-[887px] flex space-x-[15px] items-start w-full mt-4"},c=["src"],s={class:"space-y-[8px]"},u={class:"text-lg font-medium"},d=["innerHTML"],m={class:"text-sm"};var p=n(5121),f=n(87879);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";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),l=new C(o||[]);return r(i,"_invoke",{value:E(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var v={};c(v,a,(function(){return this}));var y=Object.getPrototypeOf,k=y&&y(y(V([])));k&&k!==t&&n.call(k,a)&&(v=k);var b=f.prototype=m.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(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 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=B(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 B(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,B(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 S(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(S,this),this.reset(!0)}function V(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:_}}function _(){return{value:void 0,done:!0}}return p.prototype=f,r(b,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(x.prototype),c(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(b),c(b,l,"Generator"),c(b,a,(function(){return this})),c(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,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),N(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;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),d}},e}function v(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 y={props:{teachingMaterial:Object},data:function(){var e;return{newReviewText:null,reviews:null!==(e=this.teachingMaterial.reviews)&&void 0!==e?e:[]}},methods:{addReview:function(){var e,t=this;return(e=g().mark((function e(){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.Z.post(route("api.reviews.store"),{body:t.newReviewText,teachingMaterialId:t.teachingMaterial.id}).then((function(e){return e.data}));case 3:e.sent,t.reviews.push({user_name:null===(n=t.user)||void 0===n?void 0:n.name,user_avatar_url:null===(r=t.user)||void 0===r?void 0:r.avatar_url,body:t.newReviewText,created_at_for_humans:"Just now"}),t.newReviewText="",e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:return e.prev=11,e.finish(11);case 13:case"end":return e.stop()}}),e,null,[[0,8,11,13]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){v(a,r,o,i,l,"next",e)}function l(e){v(a,r,o,i,l,"throw",e)}i(void 0)}))})()}},computed:{user:function(){return(0,f.qt)().props.auth.user}},mounted:function(){console.log("user",this.user)}};const k=(0,n(83744).Z)(y,[["render",function(e,t,n,p,f,h){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[t[3]||(t[3]=(0,r.createStaticVNode)('<div class="flex justify-between"><h2 class="text-[18px] md:text-[24px] font-semibold mb-[24px]">Reviews</h2><div><svg xmlns="http://www.w3.org/2000/svg" width="124" height="24" viewBox="0 0 124 24" fill="none"><mask id="mask0_99_2020" 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_99_2020)"><path d="M5.825 22L7.45 14.975L2 10.25L9.2 9.625L12 3L14.8 9.625L22 10.25L16.55 14.975L18.175 22L12 18.275L5.825 22Z" fill="#262626"></path></g><mask id="mask1_99_2020" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="25" y="0" width="24" height="24"><rect x="25" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask1_99_2020)"><path d="M30.825 22L32.45 14.975L27 10.25L34.2 9.625L37 3L39.8 9.625L47 10.25L41.55 14.975L43.175 22L37 18.275L30.825 22Z" fill="#262626"></path></g><mask id="mask2_99_2020" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="50" y="0" width="24" height="24"><rect x="50" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask2_99_2020)"><path d="M55.825 22L57.45 14.975L52 10.25L59.2 9.625L62 3L64.8 9.625L72 10.25L66.55 14.975L68.175 22L62 18.275L55.825 22Z" fill="#262626"></path></g><mask id="mask3_99_2020" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="75" y="0" width="24" height="24"><rect x="75" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask3_99_2020)"><path d="M80.825 22L82.45 14.975L77 10.25L84.2 9.625L87 3L89.8 9.625L97 10.25L91.55 14.975L93.175 22L87 18.275L80.825 22Z" fill="#262626"></path></g><mask id="mask4_99_2020" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="100" y="0" width="24" height="24"><rect x="100" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask4_99_2020)"><path d="M105.825 22L107.45 14.975L102 10.25L109.2 9.625L112 3L114.8 9.625L122 10.25L116.55 14.975L118.175 22L112 18.275L105.825 22Z" fill="#262626"></path></g></svg></div></div>',1)),(0,r.createElementVNode)("div",null,[h.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.withDirectives)((0,r.createElementVNode)("textarea",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return f.newReviewText=e}),class:"border border-[#CDD5E3] p-[15px] rounded-xl bg-white block w-full",rows:"4",placeholder:"Write a review"},null,512),[[r.vModelText,f.newReviewText]]),(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return h.addReview()}),class:"bg-primary-500 text-contrast-500 font-[500] flex justify-center items-center rounded-xl py-2 px-[20px] hover:shadow duration-100 hover:bg-primary-400 h-[40px] mt-[20px] w-[137px] max-w-full",type:"submit"}," Publish ")])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.reviews,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createElementVNode)("img",{src:e.user_avatar_url,width:"50",height:"50",class:"rounded-full",alt:"Avatar"},null,8,c),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("h5",u,(0,r.toDisplayString)(e.user_name),1),t[2]||(t[2]=(0,r.createStaticVNode)('<svg xmlns="http://www.w3.org/2000/svg" width="124" height="24" viewBox="0 0 124 24" fill="none"><mask id="mask0_99_2041" 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_99_2041)"><path d="M5.825 22L7.45 14.975L2 10.25L9.2 9.625L12 3L14.8 9.625L22 10.25L16.55 14.975L18.175 22L12 18.275L5.825 22Z" fill="#262626"></path></g><mask id="mask1_99_2041" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="25" y="0" width="24" height="24"><rect x="25" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask1_99_2041)"><path d="M30.825 22L32.45 14.975L27 10.25L34.2 9.625L37 3L39.8 9.625L47 10.25L41.55 14.975L43.175 22L37 18.275L30.825 22Z" fill="#262626"></path></g><mask id="mask2_99_2041" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="50" y="0" width="24" height="24"><rect x="50" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask2_99_2041)"><path d="M55.825 22L57.45 14.975L52 10.25L59.2 9.625L62 3L64.8 9.625L72 10.25L66.55 14.975L68.175 22L62 18.275L55.825 22Z" fill="#262626"></path></g><mask id="mask3_99_2041" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="75" y="0" width="24" height="24"><rect x="75" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask3_99_2041)"><path d="M80.825 22L82.45 14.975L77 10.25L84.2 9.625L87 3L89.8 9.625L97 10.25L91.55 14.975L93.175 22L87 18.275L80.825 22Z" fill="#262626"></path></g><mask id="mask4_99_2041" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="100" y="0" width="24" height="24"><rect x="100" width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask4_99_2041)"><path d="M105.825 22L107.45 14.975L102 10.25L109.2 9.625L112 3L114.8 9.625L122 10.25L116.55 14.975L118.175 22L112 18.275L105.825 22Z" fill="#262626"></path></g></svg>',1)),(0,r.createElementVNode)("div",{innerHTML:e.body,class:"text-lg"},null,8,d),(0,r.createElementVNode)("div",m,(0,r.toDisplayString)(e.created_at_for_humans),1)])])})),256))])])])}]])},32268:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(41916),o={class:"px-[35px] py-[28px]"}
2,a={class:"bg-white rounded-xl h-full py-[15px] px-[22px] lg:h-[454px] overflow-y-scroll"},i=["innerHTML"],l=["innerHTML"];const c={props:{resource:Object},mounted:function(){var e=this;this.$nextTick((function(){e.setExternalLinks()}))},watch:{"resource.teaching_tips":function(){var e=this;this.$nextTick((function(){e.setExternalLinks()}))},"resource.scientist_notes":function(){var e=this;this.$nextTick((function(){e.setExternalLinks()}))}},methods:{setExternalLinks:function(){var e=this;["teachingTips","scientistNotes"].forEach((function(t){var n=e.$refs[t];n&&n.querySelectorAll("a").forEach((function(e){e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")}))}))}}};const s=(0,n(83744).Z)(c,[["render",function(e,t,n,c,s,u){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",{class:"trix",innerHTML:n.resource.teaching_tips,ref:"teachingTips"},null,8,i),n.resource.scientist_notes?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"trix mt-4",innerHTML:n.resource.scientist_notes,ref:"scientistNotes"},null,8,l)):(0,r.createCommentVNode)("",!0)])])}]])},4973:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var r=n(41916),o={class:"grid grid-cols-4 gap-8 px-[35px] py-[28px]"},a={class:"-mt-2"},i=["onClick"],l={class:"bg-white rounded-xl col-span-3 h-full py-[15px] px-[22px] lg:h-[454px] overflow-y-scroll"},c={key:0},s={key:0,class:"mb-8"},u={class:"-mt-6 trix"},d={class:"font-semibold"},m={class:"-mt-6"},p={class:"-mt-2"},f={key:1,class:"mb-8"},h={class:"-mt-6 trix"},g={class:"font-semibold"},v={class:"-mt-6"},y={class:"-mt-2"};var k=n(87879),b=[{label:"Standards",name:"standards"}];const w={props:{resource:Object},components:{},data:function(){return{selectedTabName:"standards"}}
2,computed:{selectedTab:function(){var e=this,t=this.tabs.filter((function(t){return t.name==e.selectedTabName}));return t.length?t[0]:null},primaryStandardsNamesTree:function(){return this.resource.standards_names_trees[this.tenantSlug].primary},supportingStandardsNamesTree:function(){return this.resource.standards_names_trees[this.tenantSlug].supporting},standardsTree:function(){}},setup:function(){var e=(0,k.qt)().props.tenantSlug;return{tabs:b,tenantSlug:e}}};const x=(0,n(83744).Z)(w,[["render",function(e,t,n,k,b,w){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(k.tabs,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{onClick:function(t){return b.selectedTabName=e.name},key:e.name,class:(0,r.normalizeClass)([e.name==b.selectedTabName?"bg-primary-500 text-contrast-500":"","py-[8px] px-[20px] text-left font-medium rounded-xl text-xl h-[56px] shrink mt-2 w-full"])},(0,r.toDisplayString)(e.label),11,i)})),128))]),(0,r.createElementVNode)("div",l,["standards"==b.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[Array.isArray(w.primaryStandardsNamesTree)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[t[0]||(t[0]=(0,r.createElementVNode)("h3",{class:"font-semibold"},"Primary Standards",-1)),(0,r.createElementVNode)("ul",u,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.primaryStandardsNamesTree,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",d,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",m,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"mt-4"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])})),128))])])})),128))])])),Array.isArray(w.supportingStandardsNamesTree)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[t[1]||(t[1]=(0,r.createElementVNode)("h3",{class:"font-semibold"},"Supporting Standards",-1)),(0,r.createElementVNode)("ul",h,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.supportingStandardsNamesTree,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",g,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",v,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",y,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"mt-4"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])})),128))])])})),128))])]))])):(0,r.createCommentVNode)("",!0)])])}]])},32503:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var r=n(41916),o={id:"teachingMaterialsTabs",class:"mt-[36px] lg:mt-[90px]"},a={class:"hidden lg:block"},i={class:"flex font-[500] text-[18px]"},l=["onClick"],c=["innerHTML"],s={class:"bg-[#EEF1F6] p-[20px] min-h-[16rem] rounded-b-[12px]"},u={class:"block lg:hidden"};var d=n(5177),m=n(96008),p=n(32268),f=n(4973),h=n(42902);const g={props:{resource:Object,isActivity:Boolean},components:{ScientistNotesAndTeachingTips:p.default,TabsSectionMobile:h.default},data:function(){return{selectedTabName:"accompanying-materials",tabs:[{label:this.isActivity?"Preview":"Accompanying Materials",name:"accompanying-materials",component:d.default},{label:"Lesson Plan Preview",name:"lesson-plan-preview",component:m.default},{label:"Teaching Tips",name:"notes-tips",component:p.default},{label:"Standards",name:"standards",component:f.default}]}},computed:{selectedTab:function(){var e=this,t=this.tabs.filter((function(t){return t.name==e.selectedTabName}));return t.length?t[0]:null}}};const v=(0,n(83744).Z)(g,[["render",function(e,t,n,d,m,p){var f,h=(0,r.resolve
2Component)("TabsSectionMobile");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[t[0]||(t[0]=(0,r.createElementVNode)("h2",{class:"text-[18px] md:text-[24px] font-semibold mb-[28px]"},"Teaching Materials",-1)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(m.tabs,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[!n.isActivity||n.isActivity&&"lesson-plan-preview"!==e.name?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e.name,onClick:function(t){return m.selectedTabName=e.name},class:(0,r.normalizeClass)([e.name==m.selectedTabName?"bg-primary-500 text-contrast-500":"bg-primary-100",0===t?"rounded-tl-[12px] ":"",t==m.tabs.length-1?"rounded-tr-[12px]":"","flex-grow basis-0 block text-center h-[86px] "])},[(0,r.createElementVNode)("span",{innerHTML:e.label},null,8,c)],10,l)):(0,r.createCommentVNode)("",!0)],64)})),256))]),(0,r.createElementVNode)("div",s,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(null===(f=p.selectedTab)||void 0===f?void 0:f.component),{resource:n.resource},null,8,["resource"]))])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(h,{resource:n.resource,isActivity:n.isActivity},null,8,["resource","isActivity"])])])}]])},42902:(e,t,n)=>{n.r(t),n.d(t,{default:()=>T});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:"block space-y-[11px] lg:hidden"},l=["onClick"],c={key:0,class:"p-[16px] bg-[#EEF1F6] rounded-bl-xl rounded-br-xl"},s={key:0},u=["innerHTML"],d=["innerHTML"],m={key:1},p={class:"w-full h-[350px]"},f=["src"],h={class:"text-right px-6"},g=["href"],v={key:2},y={class:"-mt-6 trix"},k={class:"font-semibold"},b={class:"-mt-6"},w={class:"-mt-2"},x={class:"mt-8"},E={class:"-mt-6 trix"},B={class:"font-semibold"},S={class:"-mt-6"},N={class:"-mt-2"},C={key:3},V={class:"list-disc space-y-1 pl-[20px]"},_=["href"];var A=n(87879),L=[{label:"Accompanying Materials",name:"accompanying_materials"},{label:"Lesson Plan Preview",name:"lesson_plan_preview"},{label:"Teaching Tips",name:"teaching_tips"},{label:"Standards",name:"standards"}];const I={props:{resource:Object,isActivity:Boolean},components:{},data:function(){var e,t,n;return{selectedTabName:"scientist-notes",embeddings:null!==(e=null===(t=this.resource)||void 0===t||null===(n=t.teachable)||void 0===n?void 0:n.embeddings)&&void 0!==e?e:[]}},mounted:function(){var e;console.log(null===(e=this.resource.teachable)||void 0===e?void 0:e.url)},computed:{selectedTab:function(){var e=this,t=this.tabs.filter((function(t){return t.name==e.selectedTabName}));return t.length?t[0]:null},primaryStandardsNamesTree:function(){return this.resource.standards_names_trees[this.tenantSlug].primary},supportingStandardsNamesTree:function(){return this.resource.standards_names_trees[this.tenantSlug].supporting}},setup:function(){var e=(0,A.qt)().props.tenantSlug;return{tabs:L,tenantSlug:e}}};const T=(0,n(83744).Z)(I,[["render",function(e,t,n,a,A,L){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.tabs,(function(e){var a,i,I;return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[!n.isActivity||n.isActivity&&"lesson_plan_preview"!==e.name?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.name},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([A.selectedTabName===e.name?"rounded-tl-xl rounded-tr-xl bg-primary-500":"rounded-xl bg-primary-100","cursor-pointer flex justify-between px-[15px] py-[8px] h-[40p
2x] items-center"]),onClick:function(t){return A.selectedTabName===e.name?A.selectedTabName="":A.selectedTabName=e.name}},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.label),1),(0,r.createElementVNode)("span",null,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:(0,r.normalizeClass)(A.selectedTabName!==e.name?"":"rotate-180"),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},o(t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M5.99935 6.50033L0.166016 0.666992H11.8327L5.99935 6.50033Z",fill:"#2B2B2B"},null,-1)])),2))])],10,l),A.selectedTabName===e.name?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,["teaching_tips"===A.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("div",{innerHTML:n.resource.teaching_tips},null,8,u),n.resource.scientist_notes?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,innerHTML:n.resource.scientist_notes,class:"mt-4"},null,8,d)):(0,r.createCommentVNode)("",!0)])):"lesson_plan_preview"===A.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("iframe",{loading:"lazy",src:(null===(a=n.resource)||void 0===a||null===(i=a.teachable)||void 0===i?void 0:i.url)||"https://docs.google.com/presentation/d/e/2PACX-1vQ8Xoe_t38KzRS2hzgKWisChVoCzprTGLKv-7QqOLHI4wtZhLp0k5FSBeKcRbICfESCmUMeMo4BsP35/embed",frameborder:"0",width:"100%",height:"100%",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"},null,8,f)]),(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("a",{href:null===(I=n.resource.teachable)||void 0===I?void 0:I.url,class:"underline inline-flex space-x-[6px] text-lg items-center",target:"_blank"},o(t[1]||(t[1]=[(0,r.createStaticVNode)('<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect width="23" height="23" fill="url(#pattern0_99_2191)"></rect><defs><pattern id="pattern0_99_2191" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_99_2191" transform="scale(0.01)"></use></pattern><image id="image0_99_2191" width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAADf0lEQVR4nO3dT2sTQRzG8elFRPHPG9B4CCbze5bmEFBE8aDg2bN/QJCqFG9KFau0oqgHiydR9E2or8Cqxx4UPelFvIqIRaoe2pWREau22Q26s7+Zfb4wt2Y62c9uMk1CYwxjjDHGGGOMMcYYYw2r0+lsy7LsCICzInIuwDjd7Xa3D7vOdru9EcDR/70eAJMictUdg36/v87UlbV2r4g8A5DXMJYA3Ci7VgAHAHyoel
20i8g5AzwRuBMC0Pyh1YOTLDsDJosVaa1sA5gOu623QK8Vj5ErG6xLrvVbDiXIo2MOUhisDv8aSiKwpAHlQw7ouBwGp8TkjX+VM/FhizfdrWNt0kN1U3QD4G+ROCZB9SYK4LaMyjBf9fn9TybXPJAfi99yDDtCCiMwFGI9F5PywOxlr7UH3fDLk7/qsFqTE7uqVSSgAxwEsEiR+DF4hyjAIogyDIMowCPKviciJIV6BcD/3hSA6rgyHMe52lARRguFvRxAtGP62BNGC4W9PEC0Yfg6CaMHw8xBEC4afiyBaMPx8BNGC4eckiBYMPy9Bqn45xP38EHM/L5jvoqm6mN6gkgoxXAAe1v4xoFhApGKMZW8Hrzbn+06ns8FUXQwgIjJWNcbPANxcYc55a+3+/3uvIgWRgBh/fMTonv/wxBX3sVUTKs0gqGg3pTqtIGgihlYQNBVDIwiajKENBE3H0AQCYugBATH0gMjwf2eMmUC1Wq21pkkgohCj1+ttBnAXwCf/e99kWXbKpA4iCjFGR0fXA3i5yhqum1RBRCGGC8CFgnW0kwMRpRguALMF6xlPCkQUY5R5x1BEppIBQQRb28a8hYsIMBoDgkgwGgGCiDCSBxGRY5qfwBsFYq0FgG8xYSQNIiK3YsNIHeRRbBipg9yODSNpEGvtzgG7qyWNGEmDuETkzAooX93uyygtaRCXiOzwD1/uv7/NZFnWNYpLHiS2CKIsgiiLIMoiiLIIoiyCKIsgyiKIsgiiLIIoiyDKUgGi6F+NzykYCwUgE5WD+O+ZKnp3jwM/Ts7DlYP4rw7S9GUuudLhjtEWEyIATxXc4Vz5mDWhEpE9vEowCGMxy7JdwUA8ypSCszBXOiZNDY2IyCVeKfjtyvAYI6auAOwG8ETBWZnX/AQ+G/xhalAistVt89ze2337ZkPGhLvP7r7XffwZY4wxxhhjjDHGGDOB+w5DziUbzN6bkwAAAABJRU5ErkJggg=="></image></defs></svg><span>View in new tab</span>',2)])),8,g)])])):"standards"===A.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[(0,r.createElementVNode)("div",null,[t[2]||(t[2]=(0,r.createElementVNode)("h3",{class:"font-semibold"},"Primary Standards",-1)),(0,r.createElementVNode)("ul",y,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(L.primaryStandardsNamesTree,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",k,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",b,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",w,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"mt-4"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])})),128))])])})),128))])]),(0,r.createElementVNode)("div",x,[t[3]||(t[3]=(0,r.createElementVNode)("h3",{class:"font-semibold"},"Supporting Standards",-1)),(0,r.createElementVNode)("ul",E,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(L.supportingStandardsNamesTree,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",B,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",S,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:"mt-8"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t),1),(0,r.createElementVNode)("ul",N,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"mt-4"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])})),128))])])})),128))])])])):"accompanying_materials"===A.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",C,[(0,r.createElementVNode)("ul",V,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(A.embeddings,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",null,[(0,r.createElementVNode)("a",{href:e.url,target:"_blank",class:"underline"},(0,r.toDisplayString)(e.name),9,_)])})),256)),t[4]||(t[4]=(0,r.createElementVNode)("li",{class:"!mt-4"},[(0,r.createElementVNode)("a",{href:"https://www.youtube.com/watch?v=39XuefVSaH0&ab_channel=SubjectToClimate",target:"_blank",class:"underline"},"How to edit materials")],-1))])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],64)})),256))])}]])},98032:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var r=n(41916),o={class:"overflow-hidden flex-shrink-0 bottom-0 left-0 pr-2 pl-1 -ml-1 -mb-1 absolute bg-white flex items-center justify-center rounded-tr-xl rounded-bl-xl text-sm z-10"},a={key:0},i={key:1},l={class:"w-full h-full resource-card duration-150 object-cover overflow-hidden rounded-bl-[13px] rounded-tr-xl rounded-tl-xl rounded-br-xl"},c=["src"],s=["href"],u={key:1,class:"line-clamp-3 mt-[12px] font-semibold"};var d=n(15973),m=n(76306),p=n(87879),f=n(72326),h=n(3754),g=n(47393);const v={components:{ItemCard:d.Z,AisHighlight:m.YE,Grades:h.Z},props:{fromUnitPlanPage:{type:Boolean,default:!1},isUnitPlan:{type:Boolean,default:!1},isLoadedFromAlgolia:{default:!0,type:Boolean},isActivity:{type:Boolean,default:!1},material:Object,index:{type:Number,default:0},position:{type:Number,default:null},queryUid:{type:String,default:null},buttonTextColor:{type:String,default:null},ctaColor:{type:String,default:null}},computed:{url:function(){if(!this.material.slug)return"#";var e;if(this.material.is_internal_resource?e=route("stc.show",this.material.slug):this.material.is_internal_unit_plan&&(e=route("stc.unit",this.material.slug)),e&&this.queryUid){var t=e.includes("?")?"&":"?";return e+t+"queryUid="+encodeURIComponent(this.queryUid)}return e},providerImageUrl:function(){var e;return null!==(e=this.material.firstProviderCircleImageUrl)&&void 0!==e?e:this.material.firstProviderImageUrl},imageUrl:function(){return this.material.image_conversions&&this.material.image_conversions[240]?this.material.image_conversions[240]:this.material.image_conversions&&this.material.image_conversions[360]?this.material.image_conversions[360]:this.material.image}},methods:{notifyAlgoliaAboutClick:function(){var e=this.teachingMaterialsIndex||"teaching_materials";if((0,g.ob)({indexUid:e,objectId:String(this.material.id),objectName:this.material.title,position:this.position,queryUid:this.queryUid}),this.aa){var t=this.material.id;this.aa("clickedObjectIDs",{objectIDs:[t.toString()],eventName:"Internal Resource Clicked",index:this.teachingMaterialsIndex})}},sortGradeBands:f.dP},mounted:function(){console.log("iruetghriutghirutgh")},setup:function(){var e,t,n,o,a=(0,r.inject)("initAndGetAlgoliaEventDispatcher")(),i=(0,p.qt)();return{aa:a,teachingMaterialsIndex:(null===(e=i.props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(n=i.props.integrations)||void 0===n||null===(o=n.algolia)||void 0===o?void 0:o.teachingMaterialsIndex)||"teaching_materials"}}};const y=(0,n(83744).Z)(v,[["render",function(e,t,n,d,m,p){var f=(0,r.resolve
2Component)("Grades"),h=(0,r.resolveComponent)("AisHighlight"),g=(0,r.resolveComponent)("ItemCard");return(0,r.openBlock)(),(0,r.createBlock)(g,{item:n.material,imageUrl:p.imageUrl,isBookmarked:!0,showBookMark:!n.isUnitPlan,bookmarkRoute:"tm.bookmark",actionUrl:p.url,onClick:t[0]||(t[0]=function(e){return p.notifyAlgoliaAboutClick()})},{badge:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[n.material.is_internal_unit_plan?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,"Unit Plan")):((0,r.openBlock)(),(0,r.createElementBlock)("span",i,(0,r.toDisplayString)(n.material.type),1))])]})),image:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("img",{class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:p.imageUrl,alt:"Avatar"},null,8,c)])]})),bands:(0,r.withCtx)((function(){return[(0,r.createVNode)(f,{grades:n.material.grades},null,8,["grades"])]})),title:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("a",{href:p.url},[n.isLoadedFromAlgolia?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,attribute:"title",hit:n.material,"class-names":{"ais-Highlight":"font-semibold line-clamp-3"}},null,8,["hit"])):((0,r.openBlock)(),(0,r.createElementBlock)("h3",u,(0,r.toDisplayString)(n.material.title),1))],8,s)]})),tags:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.material.subjects_list_short,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:"text-xs rounded-2xl bg-[#EEF1F6] px-2.5 py-0.5"},(0,r.toDisplayString)(e),1)})),128))]})),_:1},8,["item","imageUrl","showBookMark","actionUrl"])}]])},85521:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i={width:"41",height:"45",viewBox:"0 0 41 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const l={},c=(0,n(83744).Z)(l,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",i,o(t[0]||(t[0]=[(0,r.createStaticVNode)('<g filter="url(#filter0_d_1092_2850)"><path d="M4 0H20.5H37V33.7574C37 36.4301 33.7686 37.7686 31.8787 35.8787L22.6213 26.6213C21.4497 25.4497 19.5503 25.4497 18.3787 26.6213L9.12132 35.8787C7.23142 37.7686 4 36.4301 4 33.7574V0Z" fill="currentColor"></path><path d="M4.25 0.25H20.5H36.75V33.7574C36.75 36.2073 33.7879 37.4343 32.0555 35.7019L22.7981 26.4445C21.5289 25.1753 19.4711 25.1753 18.2019 26.4445L8.94454 35.7019C7.21214 37.4343 4.25 36.2073 4.25 33.7574V0.25Z" stroke="currentColor" stroke-width="0.5"></path></g><defs><filter id="filter0_d_1092_2850" x="0" y="0" width="41" height="44.7632" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1092_2850"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1092_2850" result="shape"></feBlend></filter></defs>',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))]))}]])},15973:(e,t,n)=>{n.d(t,{Z:()=>N});var r=n(41916),o=["href"],a={class:"bg-white w-full rounded-xl overflow-hidden h-full shadow-lg group border flex flex-col relative group"},i={class:"p-[12px] pb-0 flex-shrink-0"},l={class:"relative w-full overflow-hidden h-32 rounded-r-xl rounded-tl-lg"},c=["src"],s={class:"flex flex-col flex-1 min-h-0"},u={class:"p-4 pb-0 border-b flex-1 flex flex-col"},d={class:"flex items-center space-x-1.5 flex-shrink-0"},m={class:"flex items-center my-3 flex-shrink-0"}
vendor: 4,808 bytes, line 2
2,p={class:"flex items-center min-h-[60px]"},f={class:"flex-shrink-0"},h={class:"p-4 flex items-center space-x-1.5 flex-shrink-0"};var g=n(76306),v=n(5121),y=n(72326),k=n(95785),b=n(85521),w=n(87879);function x(){x=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),l=new C(o||[]);return r(i,"_invoke",{value:w(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(V([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function k(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"==E(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 w(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=B(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 B(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,B(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 S(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(S,this),this.reset(!0)}function V(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:_}}function _(){return{value:void 0,done:!0}}return p.prototype=f,r(y,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},k(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()}))},k(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=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,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),N(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;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),d}},e}function E(e){return E="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},E(e)}function B(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 S={components:{AisHighlight:g.YE,BookmarkingIcon:b.Z,PrimaryButton:k.Z},data:function(){return{subjectsExpanded:!1,topicsExpanded:!1,bookmarked:this.isBookmarked}},methods:{removeTags:function(e){return null===e||""===e?null:(e=e.toString()).replace(/(<([^>]+)>)/gi,"")},toggleBookmark:function(){var e,t=this;return(e=x().mark((function e(){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.user&&("object"!==E(t.user)||t.user.id)){e.next=3;break}return window.location.href=route("login"),e.abrupt("return");case 3:return n=!t.isBookmarked,e.prev=4,t.bookmarked=n,e.next=8,v.Z.put(route(t.bookmarkRoute,t.item.id),{is_bookmarked:n}).then((function(e){return e.data}));case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),console.error(e.t0);case 13:return e.prev=13,t.$emit("bookmarkUpdated",{id:t.item.id,is_bookmarked:n}),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[4,10,13,16]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){B(a,r,o,i,l,"next",e)}function l(e){B(a,r,o,i,l,"throw",e)}i(void 0)}))})()}},computed:{user:function(){return(0,w.qt)().props.auth.user}},props:{item:Object,hitType:String,buttonTextColor:{type:String,defeault:"white"},isAlgoliaItem:{type:Boolean,default:!0},isBookmarked:{type:Boolean,default:!1},imageUrl:{type:String,default:"https://subjecttoclimate.nyc3.digitaloceanspaces.com/4365/conversions/adryan-ra-ysT-xbhhK2c-unsplash-thumb.jpg"},showBookMark:{type:Boolean,default:!0},bookmarkRoute:{type:String},actionUrl:{type:String,default:null}},setup:function(){return{mergeContinuousLevels:y.aV}}};const N=(0,n(83744).Z)(S,[["render",function(e,t,n,g,v,y){var k=(0,r.resolveComponent)("BookmarkingIcon");return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.actionUrl,class:"h-full block"},[(0,r.createElementVNode)("div",a,[n.showBookMark?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[0]||(t[0]=(0,r.withModifiers)((function(e){return y.toggleBookmark()}),["prevent"])),class:(0,r.normalizeClass)(["absolute top-0 right-4 z-10 hover:scale-105 duration-150 ",v.bookmarked?"text-[#FF8B8B]":"text-[#FFF4F4] hover:text-[#ffdddd]"])},[(0,r.createVNode)(k)],2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"image",{},(function(){return[(0,r.createElementVNode)("img",{alt:"Avatar",class:"w-full absolute h-full duration-150 object-cover group-hover:scale-105",src:n.imageUrl},null,8,c)]})),(0,r.renderSlot)(e.$slots,"badge")])]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[(0,r.renderSlot)(e.$slots,"bands")]),(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("div",p,[(0,r.renderSlot)(e.$slots,"title")])]),(0,r.createElementVNode)("div",f,[(0,r.renderSlot)(e.$slots,"description")])]),(0,r.createElementVNode)("div",h,[(0,r.renderSlot)(e.$slots,"tags")])])])],8,o)}]])},75986:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(41916),o={key:0,class:"relative flex-shrink-0 group seal-group pb-2"},a=["href"],i=["src"],l={class:"seal-tooltip absolute right-0 top-full w-80 bg-white border border-[#CAE9F9] rounded-xl p-4 shadow-lg z-10 text-[13px] leading-relaxed text-[#262626]"},c=["href"],s={key:1,class:"relative group seal-group flex items-center gap-3"},u={class:"w-[22px] flex-shrink-0"},d=["src"],m=["href"],p={class:"seal-tooltip absolute left-0 top-full mt-1 w-72 bg-white border border-[#CAE9F9] rounded-xl p-4 shadow-lg z-10 text-[13px] leading-relaxed text-[#262626] text-left normal-case font-normal"},f=["href"],h={key:2,class:"relative group seal-group"},g=["href"],v=["src"],y={class:"seal-tooltip absolute right-0 top-full mt-1 w-72 bg-white border border-[#CAE9F9] rounded-xl p-4 shadow-lg z-10 text-[13px] leading-relaxed text-[#262626] text-left normal-case font-normal"},k=["href"],b={key:3,class:"relative group seal-group inline-flex ml-2 mt-2 lg:mt-0"},w=["href"],x=["src"],E={class:"seal-tooltip absolute left-0 top-full w-80 bg-white border border-[#CAE9F9] rounded-xl p-4 shadow-lg z-10 text-[13px] leading-relaxed text-[#262626]"},B=["href"],S={key:4,class:"mt-[60px] lg:mt-[80px] bg-[#556FA4] rounded-xl px-[36px] py-[28px] flex items-center gap-[28px]"},N=["src"],C=["href"];const V={name:"ScientistReviewedSeal",props:{variant:{type:String,default:"header",validator:function(e){return["header","pill","banner","row","badge"].includes(e)}}},computed:{sealImageUrl:function(){return"/images/scientist-reviewed-seal.svg"},sealPageUrl:function(){return"/scientist-seal"}}};var _=n(93379),A=n.n(_),L=n(37493),I={insert:"head",singleton:!1};A()(L.Z,I);L.Z.locals;const T=(0,n(83744).Z)(V,[["render",function(e,t,n,V,_,A){return"header"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener","aria-label":"Scientist Reviewed — learn about our review process",class:"block rounded-full focus:outline-none focus:ring-2 focus:ring-[#556FA4] focus:ring-offset-2"},[(0,r.createElementVNode)("img",{src:A.sealImageUrl,alt:"Scientist Reviewed Seal",class:"w-[72px] h-[72px] lg:w-[88px] lg:h-[88px] hover:scale-105 transition-transform duration-150"},null,8,i)],8,a),(0,r.createElementVNode)("div",l,[t[0]||(t[0]=(0,r.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,c)])])):"row"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("img",{src:A.sealImageUrl,alt:"",class:"w-5 h-5"},null,8,d)]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"underline","aria-label":"Scientist Reviewed — learn about our review process"},"Scientist Reviewed",8,m)]),(0,r.createElementVNode)("div",p,[t[1]||(t[1]=(0,r.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,f)])])):"badge"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"block rounded-full shadow-md focus:outline-none focus:ring-2 focus:ring-[#556FA4] focus:ring-offset-2","aria-label":"Scientist Reviewed — learn about our review process"},[(0,r.createElementVNode)("img",{src:A.sealImageUrl,alt:"Scientist Reviewed Seal",class:"w-12 h-12 lg:w-14 lg:h-14 hover:scale-105 transition-transform duration-150"},null,8,v)],8,g),(0,r.createElementVNode)("div",y,[t[2]||(t[2]=(0,r.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,k)])])):"pill"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-[5px] rounded-full bg-[#E4F4FC] text-sm px-[9px] py-[2px] text-[#3A6E8A] font-normal hover:bg-[#CAE9F9] transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-[#556FA4]","aria-label":"Scientist Reviewed — learn about our review process"},[(0,r.createElementVNode)("img",{src:A.sealImageUrl,alt:"",class:"w-[18px] h-[18px]"},null,8,x),t[3]||(t[3]=(0,r.createElementVNode)("span",null,"Scientist Reviewed",-1))],8,w),(0,r.createElementVNode)("div",E,[t[4]||(t[4]=(0,r.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,B)])])):"banner"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[(0,r.createElementVNode)("img",{src:A.sealImageUrl,alt:"Scientist Reviewed Seal",class:"hidden lg:block w-[110px] h-[110px] flex-shrink-0 opacity-90"},null,8,N),(0,r.createElementVNode)("div",null,[t[5]||(t[5]=(0,r.createStaticVNode)('<h3 class="flex items-center gap-[10px] text-white font-bold text-[17px] mb-[8px]" data-v-0a41b8e1><span class="inline-flex items-center justify-center w-5 h-5 rounded-full bg-[#A4EBA2] flex-shrink-0" data-v-0a41b8e1>
2<svg width="11" height="11" viewBox="0 0 12 12" fill="none" data-v-0a41b8e1><path d="M2 6l3 3 5-5" stroke="#262626" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-0a41b8e1></path></svg></span> Scientist Reviewed </h3><p class="text-white text-[13px] leading-relaxed max-w-[560px]" data-v-0a41b8e1> This resource has been reviewed by SubjectToClimate&#39;s climate scientists and verified for scientific accuracy and up-to-date information. Our review process ensures that every resource in our library reflects the current state of climate science. </p>',2)),(0,r.createElementVNode)("a",{href:A.sealPageUrl,target:"_blank",rel:"noopener",class:"inline-block mt-3 text-[#A4EBA2] text-[13px] font-semibold border-b border-[#A4EBA2]/40 hover:border-[#A4EBA2] transition-colors duration-150 focus:outline-none focus:ring-1 focus:ring-[#A4EBA2]"}," Learn about our review process → ",8,C)])])):(0,r.createCommentVNode)("",!0)}],["__scopeId","data-v-0a41b8e1"]])}}]);
3//# sourceMappingURL=StcMaterial-StcMaterialUnitPage-vue.009479f6.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.