PageSourceSearch

https://subjecttoclimate.org/js/tenant/pages/StcMaterial-StcMaterialPage-vue.d01d684f.js

js subjecttoclimate.org collected 2026-09-24 09:10:59 UTC 311,879 bytes, 3 lines download raw bytes

vendor: 5,089 bytes, lines 1-2
1/*! For license information please see StcMaterial-StcMaterialPage-vue.d01d684f.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8219,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},l="function"==typeof Symbol?Symbol:{},i=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",c=l.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,l=Object.create(o.prototype),i=new C(r||[]);return a(l,"_invoke",{value:E(e,n,i)}),l}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,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var x=g.prototype=f.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(a,l,i,s){var c=m(e[a],e,l);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return o("throw",e,i,s)}))}s(c.arg)}var l;a(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return l=l?l.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 L()}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var i=B(l,n);if(i){if(i===p)continue;return i}}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 s=m(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.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 N(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 V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function S(e){if(e){var t=e[i];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:L}}function L(){return{value:void 0,done:!0}}return h.prototype=g,a(x,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:h,configurable:!0}),h.displayName=u(g,c,"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,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(w.prototype),u(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new w(d(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},k(x),u(x,c,"Generator"),u(x,i,(function(){return this})),u(x,"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=S,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(V),!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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(l)},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),V(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;V(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,n,r,o,a,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}n.d(t,{De:()=>f,VK:()=>h,aU:()=>g,ob:()=>p,qd:()=>s,wA:()=>u});var l=null,i=null;function s(e,t){l=e,t&&(i=t)}function c(){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 c()}function d(e){return m.apply(this,arguments)}function m(){var e;return e=o().mark((function e(t){var n,r,a,s,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c(),r=l,a=i,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 s={eventType:t.eventType,eventName:t.eventName||("click"===t.eventType?"Search Result Clicked":"Conversion"),indexUid:t.indexUid,userId:n,objectId:t.objectId},t.objectName&&(s.objectName=t.objectName),void 0!==t.position&&null!==t.position&&(s.position=t.position),t.queryUid&&(s.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(s)});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 l=e.apply(t,n);function i(e){a(l,r,o,i,s,"next",e)}function s(e){a(l,r,o,i,s,"throw",e)}i(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 l,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw l}}}}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 l(e){var t=e.tenantId,n=e.indexes;if(t&&null!=n&&n.length){var o,l=r(n);try{for(l.s();!(o=l.n()).done;){a({tenantId:t,index:o.value,source:"multi"})}}catch(e){l.e(e)}finally{l.f()}}}n.d(t,{j:()=>a,p:()=>l})},57694:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-fade-enter-active[data-v-de324c16],.slide-fade-leave-active[data-v-de324c16]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-de324c16],.slide-fade-leave-to[data-v-de324c16]{opacity:0;transform:translateX(100%)}",""]);const a=o},98209:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-fade-enter-active[data-v-5ba3edf7],.slide-fade-leave-active[data-v-5ba3edf7]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-5ba3edf7],.slide-fade-leave-to[data-v-5ba3edf7]{opacity:0;transform:translateX(100%)}",""]);const a=o},71644:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".slide-down-enter-active[data-v-265fda74],.slide-down-leave-active[data-v-265fda74]{transition:all .3s ease-in-out}.slide-down-enter-from[data-v-265fda74],.slide-down-leave-to[data-v-265fda74]{opacity:0;transform:translateY(-100%)}",""]);const a=o},2364:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"body.modal-open{position:fixed;width:100%}@keyframes blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}input::placeholder{opacity:.7}",""]);const a=o},54210:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'.cookie-consent-banner[data-v-65f8774e]{align-items:flex-end;bottom:0;contain:layout style paint;display:flex;left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;will-change:transform,opacity;z-index:9999}.cookie-consent-banner--visible[data-v-65f8774e]{opacity:1;pointer-events:none;visibility:visible}.cookie-consent-banner__content[data-v-65f8774e]{background:#fff;border-radius:10px;border-top:1px solid #e5e7eb;box-shadow:0 -4px 6px -1px #0000001a,0 10px 25px -5px #0003,0 4px 10px -3px #00000026;contain:layout style paint;padding:13px 16px 13px 15px;pointer-events:auto;position:relative;transform:translate3d(0,100%,0);transition:transform .3s ease;width:342px;will-change:transform;z-index:9999}.cookie-consent-banner--visible .cookie-consent-banner__content[data-v-65f8774e]{transform:translateZ(0)}.cookie-consent-banner__header[data-v-65f8774e]{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.cookie-consent-banner__title[data-v-65f8774e]{color:#000;font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.cookie-consent-banner__close[data-v-65f8774e]{align-items:center;background:none;border:none;color:#6b7280;cursor:pointer;display:flex;font-size:1.5rem;height:2rem;justify-content:center;line-height:1;padding:0;transition:color .2s;width:2rem}.cookie-consent-banner__close[data-v-65f8774e]:hover{color:#111827}.cookie-consent-banner__body[data-v-65f8774e]{margin-bottom:1.5rem}.cookie-consent-banner__description[data-v-65f8774e]{color:#000;margin-bottom:7px}.cookie-consent-banner__description[data-v-65f8774e],.cookie-consent-banner__link[data-v-65f8774e]{font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.cookie-consent-banner__link[data-v-65f8774e]{color:#556fa4;cursor:pointer}.cookie-consent-banner__link[data-v-65f8774e]:hover{color:#2563eb}.cookie-consent-banner__options[data-v-65f8774e]{display:flex;flex-direction:column;gap:1rem}.cookie-consent-banner__option[data-v-65f8774e]{background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem;padding:1rem}
2.cookie-consent-banner__toggle[data-v-65f8774e]{align-items:flex-start;cursor:pointer;display:flex;gap:1rem}.cookie-consent-banner__toggle input[type=checkbox][data-v-65f8774e]{display:none}.cookie-consent-banner__toggle-slider[data-v-65f8774e]{background:#d1d5db;border-radius:9999px;flex-shrink:0;height:1.5rem;margin-top:.125rem;position:relative;transition:background .2s;width:3rem}.cookie-consent-banner__toggle-slider[data-v-65f8774e]:before{background:#fff;border-radius:50%;box-shadow:0 1px 3px #0000001a;content:"";height:1.25rem;left:.125rem;position:absolute;top:.125rem;transition:transform .2s;width:1.25rem}.cookie-consent-banner__toggle input[type=checkbox]:checked+.cookie-consent-banner__toggle-slider[data-v-65f8774e]{background:#3b82f6}.cookie-consent-banner__toggle input[type=checkbox]:checked+.cookie-consent-banner__toggle-slider[data-v-65f8774e]:before{transform:translateX(1.5rem)}.cookie-consent-banner__toggle-label[data-v-65f8774e]{display:flex;flex:1;flex-direction:column;gap:.25rem}.cookie-consent-banner__toggle-label strong[data-v-65f8774e]{color:#111827;font-size:12px;font-weight:600}.cookie-consent-banner__toggle-label small[data-v-65f8774e]{color:#6b7280;font-size:10px}.cookie-consent-banner__actions[data-v-65f8774e]{display:flex;gap:1rem;justify-content:flex-start}.cookie-consent-banner__button[data-v-65f8774e]{font-feature-settings:"liga" off,"clig" off;border:none;cursor:pointer;font-family:Outfit;font-size:12px;font-style:normal;font-weight:400;line-height:normal;padding:.5rem 1rem;transition:all .2s}.cookie-consent-banner__button--pill[data-v-65f8774e]{background:#eef1f6;border-radius:15px;color:#000}.cookie-consent-banner__button--pill[data-v-65f8774e]:hover{background:#d5d9e2;box-shadow:0 2px 4px #0000001a}@media (min-width:768px){.cookie-consent-banner__content[data-v-65f8774e]{border-radius:.5rem;margin:0 0 1.5rem 1.5rem;max-width:28rem}}',""]);const a=o},27527:(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,"@keyframes lesson-localization-progress-a2b8e4da{0%{transform:translateX(-100%)}to{transform:translateX(220%)}}@keyframes lesson-localization-pulse-a2b8e4da{0%,to{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}.lesson-localization-progress[data-v-a2b8e4da]{animation:lesson-localization-progress-a2b8e4da 1.4s ease-in-out infinite}.lesson-localization-pulse[data-v-a2b8e4da]{animation:lesson-localization-pulse-a2b8e4da 1s ease-in-out infinite}",""]);const a=o},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:()=>l});var r=n(41916),o={class:"max-w-[1088px] mx-auto h-full"};const a={},l=(0,n(83744).Z)(a,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"default")])])}]])},19394:(e,t,n)=>{n.d(t,{Z:()=>_o});var r=n(41916),o={class:"font-outfit"};var a=n(87879);function l(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={class:"grid grid-cols-6 items-center justify-between py-5 px-4 lg:px-0 shadow-sm lg:shadow-none bg-white"},c={class:"flex"},u={class:"flex items-center justify-center col-span-3"},d={class:"flex space-x-1 items-center justify-end col-span-2"},m={key:1,href:"https://subjecttoclimate.org/",class:"w-[115px] hidden lg:block px-2"};var p={class:"hidden lg:flex items-center"};function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g={class:"relative mx-4"},v={class:"inline-block whitespace-nowrap"},y={key:0},b={key:0,class:"md:w-96 bg-white absolute md:top-10 w-full md:left-1/2 transform -translate-x-1/2 z-50 rounded-xl shadow p-3"};var x=["href","target"],k={class:"px-3 py-3 rounded-xl hover:bg-menu-2
200 duration-75 text-lg hover:text-contrast-200 flex flex-col group"},w={class:"text-base font-semibold"},E={class:"text-base text-[#3f3f3f] group-hover:text-contrast-200"};const B={props:{menu:Object}};var N=n(83744);const V={components:{DropDownMenuItem:(0,N.Z)(B,[["render",function(e,t,n,o,a,l){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.menu.url,target:n.menu.is_new_tab?"_blank":null},[(0,r.createElementVNode)("span",k,[(0,r.createElementVNode)("span",w,(0,r.toDisplayString)(n.menu.title),1),(0,r.createElementVNode)("span",E,(0,r.toDisplayString)(n.menu.subtitle),1)])],8,x)}]])},data:function(){return{}},props:{menu:Object,expanded:Boolean},computed:{hasChildren:function(){return this.menu.children&&this.menu.children.length},expanded:{get:function(){return this.expanded},set:function(e){this.$emit(e?"expanded":"collapsed",!0)}}}},C={components:{DropDownMenu:(0,N.Z)(V,[["render",function(e,t,n,o,a,l){var i=(0,r.resolveComponent)("DropDownMenuItem");return(0,r.openBlock)(),(0,r.createElementBlock)("div",g,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(l.hasChildren?"button":"a"),{href:n.menu.url,onClick:t[0]||(t[0]=function(e){return l.expanded=!l.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 ",l.expanded?"font-semibold":""])},[(0,r.createElementVNode)("span",v,(0,r.toDisplayString)(n.menu.title),1),l.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",l.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",l.expanded?"bg-menu-500":"bg-neutral-100"])},null,2)]})),_:1},8,["href","target"])),l.expanded&&n.menu.children.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.menu.children,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(i,{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{}}},S=(0,N.Z)(C,[["render",function(e,t,n,o,a,l){var i=(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)(l.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(i,{key:e.id,menu:e,onExpanded:function(t){return l._expandedMenuId=e.id},onCollapsed:t[0]||(t[0]=function(e){return l._expandedMenuId=null}),expanded:l._expandedMenuId===e.id},null,8,["menu","onExpanded","expanded"])})),128))])}]]);function L(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var A={class:"flex items-center space-x-4"},M={key:0,class:"lg:hidden"},D={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-white z-50 lg:hidden"},I={class:""},T={class:"w-full flex justify-between p-4"},F={class:"flex items-center space-x-2"},j={class:"relative"},z={class:"mt-6"},O={class:"mt-6 space-y-4"};function U(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"])},P={class:"font-semibold"},H={key:0},Z={class:(0,r.normalizeClass)(["w-6 h-6 duration-150"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},q={key:0,class:(0,r.normalizeClass)(["absolute top-0 left-0 w-full h-screen z-20 bg-white p-4"])},K={class:"mt-8"};var Y=["href","target"],W={class:"px-4 py-2 rounded hover:bg-gray-100 duration-75 text-lg flex flex-col"},X={class:"text-base font-semibold"},$={class:"text-base text-[#3f3f3f]"};const Q={props:{menu:Object}},J={components:{DropDownMenuItem:(0,N.Z)(Q,[["render",function(e,t,n,o,a,l){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:n.menu.url,target:n.menu.is_new_tab?"_blank":null,class:"block"},[(0,r.createElementVNode)("span",W,[(0,r.createElementVNode)("span",X,(0,r.toDisplayString)(n.menu.title),
21),(0,r.createElementVNode)("span",$,(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,N.Z)(J,[["render",function(e,t,n,o,a,l){var i=(0,r.resolveComponent)("DropDownMenuItem");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["px-6",(l.expanded,"")])},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(l.hasChildren?"button":"a"),{href:n.menu.url,onClick:t[0]||(t[0]=function(e){return l.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",P,(0,r.toDisplayString)(n.menu.title),1),l.hasChildren?((0,r.openBlock)(),(0,r.createElementBlock)("div",H,[((0,r.openBlock)(),(0,r.createElementBlock)("svg",Z,U(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[l.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",q,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return l.expanded=!1}),class:"flex items-center space-x-2"},U(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)(i,{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"},le=["src"];const ie={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},se=(0,N.Z)(ie,[["render",function(e,t,n,o,a,l){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:l.url,alt:""},null,8,le)])])}]]);function ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var de={class:"px-8"},me={key:0,class:"w-full"},pe={key:0,class:(0,r.normalizeClass)(["absolute top-0 left-0 w-full h-screen z-20 bg-white p-4"])},fe={class:"mt-8"},he=["href"],ge=["href"],ve=["href"],ye={key:1,class:"space-y-2"},be=["href"],xe=["href"];const ke={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 we=n(57694),Ee={insert:"head",singleton:!1};te()(we.Z,Ee);we.Z.locals;const Be=(0,N.Z)(ke,[["render",function(e,t,n,o,a,l){var i,s,c,u,d,m,p,f,h,g,v,y,b,x,k,w,E,B,N,V,C,S,L,_;return(0,r.openBlock)(),(0,r.createElementBlock)("div",de,[l.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",me,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return l.toggleExpanded&&l.toggleExpanded.apply(l,arguments)}),class:"flex items-center space-x-2 p-2 rounded shadow w-full justify-center",style:(0,r.normalizeStyle)({backgroundColor:(null===(i=l.settings)||void 0===i||null===(s=i.theme)||void 0===s||null===(c=s.colors)||void 0===c||null===(u=c["account-dropdown-background"])||void 0===u?void 0:u[500])||"#333333",color:(null===(d=l.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"})},ce(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 l.toggleExpanded&&l.toggleExpanded.apply(l,arguments)}),class:"flex items-center space-x-2"},ce(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"},ce(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,ce(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"},ce(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=l.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[500])||"#333333",color:(null===(b=l.settings)||void 0===b||null===(x=b.theme)||void 0===x||null===(k=x.colors)||void 0===k||null===(w=k["account-dropdown-background"])||void 0===w?void 0:w[500])||"#333333"})},"Login",12,be),(0,r.createElementVNode)("a",{href:e.route("register"),class:"flex justify-center items-center px-4 py-2 rounded font-semibold shadow",style:(0,r.normalizeStyle)({backgroundColor:(null===(E=l.settings)||void 0===E||null===(B=E.theme)||void 0===B||null===(N=B.colors)||void 0===N||null===(V=N["account-dropdown-background"])||void 0===V?void 0:V[500])||"#333333",color:(null===(C=l.settings)||void 0===C||null===(S=C.theme)||void 0===S||null===(L=S.colors)||void 0===L||null===(_=L["account-dropdown-foreground"])||void 0===_?void 0:_[500])||"#FFFFFF"})},"Join",12,xe)]))])}],["__scopeId","data-v-de324c16"]]);var Ne=["href"];const Ve={methods:{}},Ce=(0,N.Z)(Ve,[["render",function(e,t,n,o,a,l){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,Ne)}]]),Se={components:{DropDownMenu:oe,Auth:Be,Logo:se,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 Le=n(71644),_e={insert:"head",singleton:!1};te()(Le.Z,_e);Le.Z.locals;const Ae=(0,N.Z)(Se,[["render",function(e,t,n,o,a,l){var i=(0,r.resolveComponent)("Logo"),s=(0,r.resolveComponent)("DropDownMenu"),c=(0,r.resolveComponent)("DonateButton"),u=(0,r.resolveComponent)("Auth");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",A,[a.menuIsVisible?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",M,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return a.menuIsVisible=!0}),class:"w-6 h-6"},L(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",D,[(0,r.createElementVNode)("div",I,[(0,r.createElementVNode)("div",T,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(i)]),(0,r.createElementVNode)("div",F,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return a.menuIsVisible=!1}),class:"w-8 h-8"},L(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",j,[(0,r.createElementVNode)("div",z,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(l.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(s,{key:e.id,menu:e,onExpanded:function(t){return l._expandedMenuId=e.id},onCollapsed:t[2]||(t[2]=function(e){return l._expandedMenuId=null}),expanded:l._expandedMenuId==e.id},null,8,["menu","onExpanded","expanded"])})),128))]),(0,r.createElementVNode)("div",O,[l.showDonateButton?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,class:"mx-8"})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{onExpanded:t[3]||(t[3]=function(e){return l._expandedMenuId="auth"}),onCollapsed:t[4]||(t[4]=function(e){return l._expandedMenuId=null}),expanded:"auth"==l._expandedMenuId},null,8,["expanded"])])])])])):(0,r.createCommentVNode)("",!0)]})),_:1})])}
2],["__scopeId","data-v-265fda74"]]);function Me(e){return function(e){if(Array.isArray(e))return De(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 De(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 De(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 De(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 Ie={class:""},Te={key:0,class:"relative"},Fe={key:0,class:"absolute bg-white w-96 right-0 top-12 rounded-lg p-4 z-10"},je=["href"],ze=["href"],Oe=["href"],Ue={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:{}},Pe=(0,N.Z)(Ge,[["render",function(e,t,n,o,a,l){var i,s,c,u,d,m,p,f,h,g,v,y,b,x,k,w;return(0,r.openBlock)(),(0,r.createElementBlock)("div",Ie,[l.user?((0,r.openBlock)(),(0,r.createElementBlock)("div",Te,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return l.expanded=!l.expanded}),class:"flex items-center justify-center space-x-2 p-2 rounded-lg",style:(0,r.normalizeStyle)({backgroundColor:(null===(i=l.settings)||void 0===i||null===(s=i.theme)||void 0===s||null===(c=s.colors)||void 0===c||null===(u=c["account-dropdown-background"])||void 0===u?void 0:u[500])||"#333333",color:(null===(d=l.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",l.expanded?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor"},Me(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),l.expanded?((0,r.openBlock)(),(0,r.createElementBlock)("div",Fe,[(0,r.createElementVNode)("a",{href:e.route("account")},Me(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,je),(0,r.createElementVNode)("a",{href:e.route("library")},Me(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,ze),(0,r.createElementVNode)("a",{href:e.route("logout")},Me(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",Ue,[(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=l.settings)||void 0===h||null===(g=h.theme)||void 0===g||null===(v=g.colors)||void 0===v||null===(y=v["account-dropdown-background"])||void 0===y?void 0:y[500])||"#333333",color:(null===(b=l.settings)||void 0===b||null===(x=b.theme)||void 0===x||null===(k=x.colors)||void 0===k||null===(w=k["account-dropdown-foreground"])||void 0===w?void 0:w[500])||"#FFFFFF"})},"Login",12,Re)]))])}]]);function He(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qe={class:"flex items-center justify-between"},Ke=["href"],Ye={key:0,class:"text-xs text-gray-500 flex items-center gap-2"},We={class:"hidden"},Xe={class:"mt-2"},$e=["href"],Qe={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"],lt={ref:"modalScrollContainer",class:"overflow-y-auto max-h-[calc(90vh-80px)] bg-white mt-4 rounded-lg"};function it(e){return it="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},it(e)}function st(){st=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",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,l=Object.create(a.prototype),i=new N(o||[]);return r(l,"_invoke",{value:k(e,n,i)}),l}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};s(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 b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,i){var s=u(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==it(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,i)}),(function(e){o("throw",e,l,i)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,i)}))}i(s.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 k(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 l=n.delegate;if(l){var i=w(l,n);if(i){if(i===d)continue;return i}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function w(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,w(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,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: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=s(f,i,"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,s(e,i,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new x(c(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},b(y),s(y,i,"Generator"),s(y,a,(function(){return this})),s(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,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(l)},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:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function ct(e,t,n,r,o,a,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).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,l=e.deletingSpeed,i=void 0===l?50:l,s=e.pauseBeforeDelete,c=void 0===s?2e3:s,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=st().mark((function e(){var t;return st().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()}),i),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(c);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 l(e){ct(a,r,o,l,i,"next",e)}function i(e){ct(a,r,o,l,i,"throw",e)}l(void 0)}))},y.apply(this,arguments)}return(0,r.onMounted)((function(){v()})),{currentText:m}}var dt={class:""},mt={class:"sticky top-0 z-50 shadow-sm border-b border-gray-200 p-5 bg-white sticky-chip-bar"},pt={class:"flex flex-wrap gap-2"},ft=["onClick"],ht={class:"relative"},gt={key:"all",class:"section-container","data-section":"all"},vt={key:0,class:"space-y-4 p-5"},yt={key:0,class:"text-center py-4 text-gray-500"},bt={key:1,class:"space-y-2"},xt=["aria-label","onClick","onKeydown"],kt={class:"py-3"},wt={class:"space-y-2"},Et={class:"text-gray-500 group-hover:text-gray-900"},Bt={class:"flex flex-wrap items-center gap-1.5"},Nt={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Vt={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"},St={key:1,class:"p-5 text-center text-gray-500"},Lt={key:"teaching",class:"section-container","data-section":"teaching"},_t={key:0,class:"space-y-4 p-5"},At={key:0,class:"text-center py-4 text-gray-500"},Mt={key:1,class:"space-y-2"},Dt=["aria-label","onClick","onKeydown"],It={class:"py-3"},Tt={class:"space-y-2"},Ft={class:"text-gray-500 group-hover:text-gray-900"},jt={class:"flex flex-wrap items-center gap-1.5"},zt={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"},Ut={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"}
vendor: 4,680 bytes, line 2
2,Pt={key:0,class:"space-y-4 p-5"},Ht={key:0,class:"text-center py-4 text-gray-500"},Zt={key:1,class:"space-y-2"},qt=["aria-label","onClick","onKeydown"],Kt={class:"py-3"},Yt={class:"space-y-2"},Wt={class:"text-gray-500 group-hover:text-gray-900"},Xt={class:"flex flex-wrap items-center gap-1.5"},$t={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Qt={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"},sn={class:"text-gray-500 group-hover:text-gray-900"},cn={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"},pn={key:"professional",class:"section-container","data-section":"professional"},fn={key:0,class:"space-y-4 p-5"},hn={key:0,class:"text-center py-4 text-gray-500"},gn={key:1,class:"space-y-2"},vn=["aria-label","onClick","onKeydown"],yn={class:"py-3"},bn={class:"space-y-2"},xn={class:"text-gray-500 group-hover:text-gray-900"},kn={class:"flex flex-wrap items-center gap-1.5"},wn={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"},Nn={key:"news",class:"section-container","data-section":"news"},Vn={key:0,class:"space-y-4 p-5"},Cn={key:0,class:"text-center py-4 text-gray-500"},Sn={key:1,class:"space-y-2"},Ln=["aria-label","onClick","onKeydown"],_n={class:"py-3"},An={class:"space-y-2"},Mn={class:"text-gray-500 group-hover:text-gray-900"},Dn={class:"flex flex-wrap items-center gap-1.5"},In={key:1,class:"px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded-full"},Tn={key:0,class:"text-sm text-gray-600 line-clamp-2"},Fn={key:1,class:"p-5 text-center text-gray-500"};var jn=n(15229),zn=n(3754),On=n(47393),Un=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 Pn(){Pn=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",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,l=Object.create(a.prototype),i=new N(o||[]);return r(l,"_invoke",{value:k(e,n,i)}),l}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};s(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 b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,i){var s=u(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==Gn(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,i)}),(function(e){o("throw",e,l,i)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,i)}))}i(s.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 k(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 l=n.delegate;if(l){var i=w(l,n);if(i){if(i===d)continue;return i}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function w(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
2(t.method="return",t.arg=void 0,w(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,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: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=s(f,i,"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,s(e,i,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new x(c(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},b(y),s(y,i,"Generator"),s(y,a,(function(){return this})),s(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,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(l)},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:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Hn(e,t,n,r,o,a,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}const Zn={components:{Link:a.rU,Grades:zn.Z},props:{term:{type:String,default:""}},setup:function(e){var t,n,o,l,i,s,c=(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(c,"] OR is_internal_unit_plan=true) AND is_in_unit_plans=false AND tenantIds IN [").concat(c,"]"),teaching:"is_external_resource=true AND is_live=true AND tenantIds IN [".concat(c,"]"),guides:"",climate:"",professional:"enabled=1 AND tenant_ids IN [".concat(c,"]"),news:""},g=(null===(o=(0,a.qt)().props.integrations)||void 0===o||null===(l=o.meilisearch)||void 0===l?void 0:l.host)||window.MEILISEARCH_HOST||"http://localhost:7700",v=(null===(i=(0,a.qt)().props.integrations)||void 0===i||null===(s=i.meilisearch)||void 0===s?void 0:s.key)||window.MEILISEARCH_KEY||"",y=(0,On.wA)();v&&(0,On.qd)(v,g);var b=(0,r.reactive)({lessonPlans:null,teaching:null,guides:null,climate:null,professional:null,news:null}),x=new jn.MeiliSearch({host:g,apiKey:v,requestConfig:{headers:{"X-MS-USER-ID":y}}}),k=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),w=(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}),N=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}),V=(0,r.reactive)({hits:[],totalHits:0,isLoading:!1}
2),C=function(){var e,t=(e=Pn().mark((function e(t){var n,r,o,a,l,i,s,u,d;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=14;break}return k.hits=[],k.totalHits=0,w.hits=[],w.totalHits=0,E.hits=[],E.totalHits=0,B.hits=[],B.totalHits=0,N.hits=[],N.totalHits=0,V.hits=[],V.totalHits=0,e.abrupt("return");case 14:return m.value=!0,e.prev=15,s=(0,Rn.Bl)(t),console.log("[POPUP-SEARCH] Performing federated multi-search for:",t,"formatted:",s),u=[{indexUid:f.lessonPlans,q:s,limit:5,filter:h.lessonPlans||void 0},{indexUid:f.teaching,q:s,limit:5,filter:h.teaching||void 0},{indexUid:f.guides,q:s,limit:5,filter:h.guides||void 0},{indexUid:f.climate,q:s,limit:5,filter:h.climate||void 0},{indexUid:f.professional,q:s,limit:5,filter:h.professional||void 0},{indexUid:f.news,q:s,limit:5,filter:h.news||void 0}],e.next=21,x.multiSearch({queries:u});case 21:d=e.sent,console.log("[POPUP-SEARCH] Multi-search results:",d),(0,Un.p)({tenantId:c,indexes:u.map((function(e){return e.indexUid}))}),k.hits=d.results[0].hits||[],k.totalHits=d.results[0].estimatedTotalHits||0,b.lessonPlans=(null===(n=d.results[0].metadata)||void 0===n?void 0:n.queryUid)||null,w.hits=d.results[1].hits||[],w.totalHits=d.results[1].estimatedTotalHits||0,b.teaching=(null===(r=d.results[1].metadata)||void 0===r?void 0:r.queryUid)||null,E.hits=d.results[2].hits||[],E.totalHits=d.results[2].estimatedTotalHits||0,b.guides=(null===(o=d.results[2].metadata)||void 0===o?void 0:o.queryUid)||null,B.hits=d.results[3].hits||[],B.totalHits=d.results[3].estimatedTotalHits||0,b.climate=(null===(a=d.results[3].metadata)||void 0===a?void 0:a.queryUid)||null,N.hits=d.results[4].hits||[],N.totalHits=d.results[4].estimatedTotalHits||0,b.professional=(null===(l=d.results[4].metadata)||void 0===l?void 0:l.queryUid)||null,V.hits=d.results[5].hits||[],V.totalHits=d.results[5].estimatedTotalHits||0,b.news=(null===(i=d.results[5].metadata)||void 0===i?void 0:i.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 l(e){Hn(a,r,o,l,i,"next",e)}function i(e){Hn(a,r,o,l,i,"throw",e)}l(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:k,teachingResults:w,guidesResults:E,climateResults:B,professionalResults:N,newsResults:V,switchTab:function(e){u.value=e},selectItem:function(e,t,n){(0,On.ob)({indexUid:f[t],queryUid:b[t],objectId:e.id.toString(),position:n});var r={lessonPlans:function(){return a.Nd.visit(route(e.is_internal_unit_plan?"stc.unit":"stc.show",e.slug))},teaching:function(){return a.Nd.visit(route("resource.show",e.slug))},guides:function(){return a.Nd.visit(route("teacherGuides.show",e.slug))},climate:function(){return a.Nd.visit(route("climateChangeExplainers.show",e.slug))},professional:function(){return a.Nd.visit(route("professional-learning.show",e.slug))},news:function(){return a.Nd.visit(route("news.show",e.slug))}};r[t]&&r[t]()}}}};var qn=n(43824),Kn={insert:"head",singleton:!1};te()(qn.Z,Kn);qn.Z.locals;const Yn={components:{SearchResultsDirect:(0,N.Z)(Zn,[["render",function(e,t,n,o,a,l){var i=(0,r.resolveComponent)("Grades"),s=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",dt,[(0,r.createElementVNode)("div",mt,[(0,r.createElementVNode)("div",pt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.categoryFilters,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e.id,class:(0,r.normalizeClass)(["px-3 py-1 rounded-full text-sm transition-all duration-300",o.categoryColors[e.id],{"ring-2 ring-offset-2 ring-green-300":o.activeFilter===e.id}]),onClick:function(t){return o.switchTab(e.id)}},(0,r.toDisplayString)(e.name),11,ft)})),128))])]),(0,r.createElementVNode)("div",ht,[(0,r.createVNode)(r.Transition,{name:"slide-fade",mode:"out-in"},{default:(0,r.withCtx)((function(){return["all"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",gt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",vt,[t[0]||(t[0]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Lesson Plans, Units & Activities",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",yt,"Searching...")):o.lessonPlansResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",bt,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.lessonPlansResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title||e.name),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"lessonPlans",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"lessonPlans",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"lessonPlans",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",kt,[(0,r.createElementVNode)("div",wt,[(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)(i,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.languages&&e.languages[0]?((0,r.openBlock)(),(0,r.createElementBlock)("span",Nt,(0,r.toDisplayString)(e.languages[0]),1)):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",Vt,(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,xt)})),128))])):(0,r.createCommentVNode)("",!0),o.lessonPlansResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(s,{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",St,"Enter a search term and click search to see results"))])):"teaching"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",Lt,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",_t,[t[1]||(t[1]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Teaching Resources",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",At,"Searching...")):o.teachingResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Mt,[((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",It,[(0,r.createElementVNode)("div",Tt,[(0,r.createElementVNode)("h4",Ft,(0,r.toDisplayString)(e.title||e.name),1),(0,r.createElementVNode)("div",jt,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.languages&&e.languages[0]?((0,r.openBlock)(),(0,r.createElementBlock)("span",zt,(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",Ut,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,Dt)})),128))])):(0,r.createCommentVNode)("",!0),o.teachingResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(s,{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",Pt,[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",Ht,"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",Wt,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Xt,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.time_to_read?((0,r.openBlock)(),(0,r.createElementBlock)("span",$t,(0,r.toDisplayString)(e.time_to_read)+" min read ",1)):(0,r.createCommentVNode)("",!0)]),e.excerpt?((0,r.openBlock)(),(0,r.createElementBlock)("p",Qt,(0,r.toDisplayString)(e.excerpt),1)):(0,r.createCommentVNode)("",!0)])])],40,qt)})),128))])):(0,r.createCommentVNode)("",!0),o.guidesResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(s,{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",sn,(0,r.toDisplayString)(e.title),1),(0,r.createElementVNode)("div",cn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(i,{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)(s,{key:2,href:e.route("search",{section:"climate",term:o.confirmedTerm}),class:"text-gray-500 hover:text-gray-700 text-sm"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)(" View "+(0,r.toDisplayString)(o.climateResults.totalHits-5)+" other Climate Change Explainers ",1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",mn,"Enter a search term and click search to see results"))])):"professional"===o.activeFilter?((0,r.openBlock)(),(0,r.createElementBlock)("div",pn,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",fn,[t[4]||(t[4]=(0,r.createElementVNode)("h3",{class:"font-medium text-gray-900"},"Professional Development",-1)),o.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("div",hn,"Searching...")):o.professionalResults.hits.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",gn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.professionalResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.name),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"professional",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"professional",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"professional",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",yn,[(0,r.createElementVNode)("div",bn,[(0,r.createElementVNode)("h4",xn,(0,r.toDisplayString)(e.name),1),(0,r.createElementVNode)("div",kn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.type?((0,r.openBlock)(),(0,r.createElementBlock)("span",wn,(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)(s,{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",Nn,[o.confirmedTerm?((0,r.openBlock)(),(0,r.createElementBlock)("div",Vn,[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",Sn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.newsResults.hits,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,role:"button",tabindex:"0","aria-label":"View ".concat(e.title),class:"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 cursor-pointer -mx-5 px-5 group rounded",onClick:function(n){return o.selectItem(e,"news",t)},onKeydown:[(0,r.withKeys)((function(n){return o.selectItem(e,"news",t)}),["enter"]),(0,r.withKeys)((0,r.withModifiers)((function(n){return o.selectItem(e,"news",t)}),["prevent"]),["space"])]},[(0,r.createElementVNode)("div",_n,[(0,r.createElementVNode)("div",An,[(0,r.createElementVNode)("h4",Mn,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("div",Dn,[e.grades?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,grades:e.grades},null,8,["grades"])):(0,r.createCommentVNode)("",!0),e.publish_at?((0,r.openBlock)(),(0,r.createElementBlock)("span",In,(0,r.toDisplayString)(new Date(e.publish_at).toLocaleDateString()),1)):(0,r.createCommentVNode)("",!0)]),e.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",Tn,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)("",!0)])])],40,Ln)})),128))])):(0,r.createCommentVNode)("",!0),o.newsResults.totalHits>5?((0,r.openBlock)(),(0,r.createBlock)(s,{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",Fn,"Enter a search term and click search to see results"))])):(0,r.createCommentVNode)("",!0)]})),_:1})])])}],["__scopeId","data-v-575b1bfa"]])},props:{term:{type:String,default:""}},emits:["update:term"],setup:function(){return{typewriterText:ut({words:["topic...","title...","keyword..."],typingSpeed:100,deletingSpeed:50,pauseBeforeDelete:2e3,pauseBeforeType:500}).currentText}},data:function(){return console.log("[SEARCH-DEBUG] PopSearchSkeleton data() initializing",{propTerm:this.term,timestamp:(new Date).toISOString()}),{showSearchModal:!1,localTerm:this.term,confirmedTerm:"",searchResults:[],isSearching:!1,resultsShown:!1}},created:function(){console.log("[SEARCH-DEBUG] PopSearchSkeleton created()",{state:{showSearchModal:this.showSearchModal,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,isSearching:this.isSearching,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()})},mounted:function(){console.log("[SEARCH-DEBUG] PopSearchSkeleton mounted()",{state:{showSearchModal:this.showSearchModal,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,isSearching:this.isSearching,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),document.addEventListener("visibilitychange",(function(){console.log("[SEARCH-DEBUG] Page visibility changed",{hidden:document.hidden,visibilityState:document.visibilityState,timestamp:(new Date).toISOString()})})),window.addEventListener("beforeunload",(function(){console.log("[SEARCH-DEBUG] Window beforeunload triggered",{location:window.location.href,timestamp:(new Date).toISOString()})})),window.addEventListener("open-search-modal",this.openSearchModal),window.addEventListener("keydown",this.handleKeydown)},methods:{handleKeydown:function(e){console.log("[SEARCH-DEBUG] handleKeydown()",{key:e.key,showSearchModal:this.showSearchModal,timestamp:(new Date).toISOString()}),"Escape"===e.key&&this.showSearchModal&&this.toggleModal()},toggleModal:function(){var e=this,t=this.showSearchModal;this.showSearchModal=!this.showSearchModal,console.log("[SEARCH-DEBUG] toggleModal()",{before:t,after:this.showSearchModal,state:{localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),this.showSearchModal?(document.body.style.overflow="hidden",this.$nextTick((function(){var t;null===(t=e.$refs.searchInput)||void 0===t||t.focus()}))):document.body.style.overflow=""},openSearchModal:function(){console.log("[SEARCH-DEBUG] openSearchModal()",{currentState:this.showSearchModal,timestamp:(new Date).toISOString()}),this.showSearchModal||this.toggleModal()},confirmSearch:function(){var e=this.localTerm.trim();if(console.log("[SEARCH-DEBUG] confirmSearch() CALLED",{trimmedTerm:e,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown,willRedirect:this.resultsShown&&this.confirmedTerm===e,state:{showSearchModal:this.showSearchModal,isSearching:this.isSearching},timestamp:(new Date).toISOString(),stack:(new Error).stack}),this.resultsShown&&this.confirmedTerm===e){var t="/search?term=".concat(encodeURIComponent(e));
2return console.log("[SEARCH-DEBUG] confirmSearch() REDIRECTING TO FULL SEARCH PAGE",{url:t,reason:"resultsShown is true and terms match",timestamp:(new Date).toISOString()}),void(window.location.href=t)}console.log("[SEARCH-DEBUG] confirmSearch() SHOWING POPUP RESULTS",{beforeConfirmedTerm:this.confirmedTerm,afterConfirmedTerm:e,beforeResultsShown:this.resultsShown,afterResultsShown:!0,timestamp:(new Date).toISOString()}),this.confirmedTerm=e,this.resultsShown=!0,this.$emit("update:term",this.confirmedTerm),console.log("[SEARCH-DEBUG] confirmSearch() EMITTED update:term",{term:this.confirmedTerm,timestamp:(new Date).toISOString()})},handleSearch:function(){console.log("[SEARCH-DEBUG] handleSearch() CALLED",{localTerm:this.localTerm,trimmed:this.localTerm.trim(),isSearching:this.isSearching,willProceed:this.localTerm.trim()&&!this.isSearching,timestamp:(new Date).toISOString()}),this.localTerm.trim()&&!this.isSearching&&(this.isSearching=!0,console.log("[SEARCH-DEBUG] handleSearch() REDIRECTING",{url:"/search?term=".concat(encodeURIComponent(this.localTerm.trim())),timestamp:(new Date).toISOString()}),this.toggleModal(),window.location.href="/search?term=".concat(encodeURIComponent(this.localTerm.trim())))},clearSearch:function(){var e;console.log("[SEARCH-DEBUG] clearSearch() CALLED",{beforeState:{localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),this.localTerm="",this.confirmedTerm="",this.resultsShown=!1,this.$emit("update:term",""),null===(e=this.$refs.searchInput)||void 0===e||e.focus(),console.log("[SEARCH-DEBUG] clearSearch() COMPLETED",{timestamp:(new Date).toISOString()})},handleResultSelect:function(e){console.log("[SEARCH-DEBUG] handleResultSelect() CALLED",{item:e,url:e.url,timestamp:(new Date).toISOString()}),this.toggleModal(),a.Nd.visit(e.url)}},watch:{term:function(e,t){console.log("[SEARCH-DEBUG] WATCHER term changed",{from:t,to:e,localTermBefore:this.localTerm,timestamp:(new Date).toISOString()}),this.localTerm=e,console.log("[SEARCH-DEBUG] WATCHER term updated localTerm",{localTerm:this.localTerm,timestamp:(new Date).toISOString()})},localTerm:function(e,t){console.log("[SEARCH-DEBUG] WATCHER localTerm changed",{from:t,to:e,confirmedTerm:this.confirmedTerm,resultsShownBefore:this.resultsShown,willResetResultsShown:e!==this.confirmedTerm,timestamp:(new Date).toISOString()}),e!==this.confirmedTerm&&(this.resultsShown=!1,console.log("[SEARCH-DEBUG] WATCHER localTerm reset resultsShown to false",{timestamp:(new Date).toISOString()}))},confirmedTerm:function(e,t){console.log("[SEARCH-DEBUG] WATCHER confirmedTerm changed",{from:t,to:e,resultsShown:this.resultsShown,localTerm:this.localTerm,timestamp:(new Date).toISOString()})},resultsShown:function(e,t){console.log("[SEARCH-DEBUG] WATCHER resultsShown changed",{from:t,to:e,confirmedTerm:this.confirmedTerm,timestamp:(new Date).toISOString()})},showSearchModal:function(e,t){console.log("[SEARCH-DEBUG] WATCHER showSearchModal changed",{from:t,to:e,timestamp:(new Date).toISOString()})}},beforeUnmount:function(){console.log("[SEARCH-DEBUG] PopSearchSkeleton beforeUnmount()",{finalState:{showSearchModal:this.showSearchModal,localTerm:this.localTerm,confirmedTerm:this.confirmedTerm,resultsShown:this.resultsShown},timestamp:(new Date).toISOString()}),document.body.style.overflow="",window.removeEventListener("open-search-modal",this.openSearchModal),window.removeEventListener("keydown",this.handleKeydown)}};var Wn=n(2364),Xn={insert:"head",singleton:!1};te()(Wn.Z,Xn);Wn.Z.locals;const $n=(0,N.Z)(Yn,[["render",function(e,t,n,o,a,l){var i=(0,r.resolveComponent)("SearchResultsDirect");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return l.toggleModal&&l.toggleModal.apply(l,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 l.toggleModal&&l.toggleModal.apply(l,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 l.confirmSearch&&l.confirmSearch.apply(l,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 l.clearSearch&&l.clearSearch.apply(l,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 l.toggleModal&&l.toggleModal.apply(l,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",lt,[(0,r.createVNode)(i,{term:a.confirmedTerm,results:a.searchResults,"scroll-container":e.$refs.modalScrollContainer,onSelect:l.handleResultSelect},null,8,["term","results","scroll-container","onSelect"])],512)])])):(0,r.createCommentVNode)("",!0)])}]]);var Qn=n(32608),Jn=n(76306);const er={components:{PopSearchSkeleton:$n,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,l=(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",i=(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)||"",s=(0,On.wA)();return{client:(0,Qn.instantMeiliSearch)(l,i,{placeholderSearch:!1,primaryKey:"id",requestConfig:{headers:{"X-MS-USER-ID":s}}}).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:S,MobileMenu:Ae,Logo:se,DesktopAuth:Pe,PopSearch:(0,N.Z)(er,[["render",function(e,t,n,o,a,l){var i=(0,r.resolve
2Component)("AisConfigure"),s=(0,r.resolveComponent)("AisSearchBox"),c=(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:l.indexName},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(i,{hitsPerPage:a.perPage,page:e.currentPage,filters:l.filters},null,8,["hitsPerPage","page","filters"]),(0,r.createElementVNode)("div",qe,[(0,r.createElementVNode)("a",{href:"/search?term=".concat(a.searchTerm),class:"underline text-xs"},"View all results",8,Ke),a.isSearching?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ye,He(t[2]||(t[2]=[(0,r.createElementVNode)("svg",{class:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,r.createElementVNode)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),(0,r.createTextVNode)(" Searching... ",-1)])))):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",We,[(0,r.createVNode)(s,{modelValue:o.debouncedSearchTerm,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.debouncedSearchTerm=e})},null,8,["modelValue"])]),(0,r.createElementVNode)("div",Xe,[(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:l.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",Qe,[(0,r.createElementVNode)("div",Je,[(0,r.createVNode)(c,{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,$e)})),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,N.Z)(tr,[["render",function(e,t,n,o,a,i){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",s,[(0,r.createElementVNode)("div",c,[(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),i.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!=i.tenantId?((0,r.openBlock)(),(0,r.createElementBlock)("a",m,l(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"},lr={class:"flex flex-col lg:flex-row items-center lg:justify-between lg:items-center mb-[50px] space-y-[30px] lg:space-y-0"},ir={class:"w-[239px]"},sr=["href"],cr={class:"flex space-x-[16px]"},ur={class:"flex items-center justify-start space-x-8 mt-10"},dr={target:"_blank",href:"https://www.charitynavigator.org/ein/861536473"},mr=["src"],pr={target:"_blank",href:"https://directories.onepercentfortheplanet.org/profile/subjecttoclimate"},fr=["src"],hr={key:0,class:"mt-10"};var gr=n(49613),vr={href:"/",class:"h-10 block"},yr=["src"];const br={computed:{url:function(){return(0,a.qt)().props.theme.logo.dark}}},xr=(0,N.Z)(br,[["render",function(e,t,n,o,a,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",vr,[(0,r.createElementVNode)("img",{alt:"Avatar",class:"h-full",src:l.url},null,8,yr)])])}]]);var kr=["href"],wr={class:"space-y-[10px] mt-[14px]"};var Er=["href"];const Br={props:{menu:Object}},Nr={components:{MenuItem:(0,N.Z)(Br,[["render",function(e,t,n,o,a,l){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}},Vr=(0,N.Z)(Nr,[["render",function(e,t,n,o,a,l){var i=(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,kr),(0,r.createElementVNode)("div",wr,[((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)(i,{key:e.id,menu:e},null,8,["menu"])})),128))])])}]]);function Cr(e){return function(e){if(Array.isArray(e))return Sr(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 Sr(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 Sr(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 Sr(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 Lr={key:0,class:"flex space-x-[16px]"},_r=["href"],Ar=["href"],Mr=["href"],Dr=["href"];const Ir={computed:{socialMedias:function(){return(0,a.qt)().props.footer.socialMedias}}},Tr=(0,N.Z)(Ir,[["render",function(e,t,n,o,a,l){return l.socialMedias?((0,r.openBlock)(),(0,r.createElementBlock)("div",Lr,[l.socialMedias.linkedin?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:l.socialMedias.linkedin,href:l.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,_r)):(0,r.createCommentVNode)("",!0),l.socialMedias.facebook?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:l.socialMedias.facebook,href:l.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,Ar)):(0,r.createCommentVNode)("",!0),l.socialMedias.pinterest?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:l.socialMedias.pinterest,href:l.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,Mr)):(0,r.createCommentVNode)("",!0),l.socialMedias.instagram?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:l.socialMedias.instagram,href:l.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,Dr)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}]]);const Fr={components:{Container:gr.Z,Logo:xr,Menu:Vr,SocialMediaIcons:Tr},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()}},jr=(0,N.Z)(Fr,[["render",function(e,t,n,o,a,l){var i=(0,r.resolve
2Component)("SocialMediaIcons"),s=(0,r.resolveComponent)("Menu"),c=(0,r.resolveComponent)("Container");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ar,[(0,r.createVNode)(c,{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",lr,[(0,r.createElementVNode)("div",ir,[(0,r.createElementVNode)("a",{href:l.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,sr)]),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",cr,[(0,r.createVNode)(i)])]),(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(l.menus.length+1)])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(l.menus,(function(e){return(0,r.openBlock)(),(0,r.createBlock)(s,{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:l.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:l.onePercentPlanetUrl,alt:"Add 1% For the Planet logo to our site",width:"152",height:"200",class:"h-[100px] w-auto"},null,8,fr)])]),l.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 zr(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 Ur={class:"hidden"},Rr={key:0,class:"w-full"},Gr={class:"hidden"},Pr=["onClick"],Hr={class:"flex items-center justify-center space-x-4 pr-8"},Zr=["innerHTML"],qr=["href"];function Kr(e){return function(e){if(Array.isArray(e))return 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 Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}const Xr={setup:function(){var e=(0,r.ref)(new Set);(0,r.onMounted)((function(){var t=localStorage.getItem("closedBanners");t&&(e.value=new Set(JSON.parse(t)))}));var t=(0,r.computed)((function(){var e=(0,a.qt)().props,t=e.banners;return console.log("Page props:",e),console.log("Raw banners:",t),t?"object"!==Wr(t)||Array.isArray(t)?t:Object.values(t):[]})),n=(0,r.computed)((function(){var n;if(null===(n=t.value)||void 0===n||!n.length)return console.log("No active banners found"),[];var r=t.value.filter((function(t){return console.log("Processing banner:",t),!e.value.has(t.id)}));return console.log("Filtered banners:",r),r}));return{closedBanners:e,closeBanner:function(t){e.value.add(t),localStorage.setItem("closedBanners",JSON.stringify(Kr(e.value)))},activeBanners:t,visibleBanners:n,getBannerStyles:function(e){return{backgroundColor:(null==e?void 0:e.bg_color)||"#FFFFFF"}}}}},$r=(0,N.Z)(Xr,[["render",function(e,t,n,o,a,l){var i;return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",Ur," Active banners: "+(0,r.toDisplayString)(o.activeBanners.length)+" Visible banners: "+(0,r.toDisplayString)(o.visibleBanners.length),1),(null===(i=o.activeBanners)||void 0===i?void 0:i.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,l,i,s,c,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===(l=e.content)||void 0===l||!l[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===(i=e.content)||void 0===i||null===(s=i[0])||void 0===s||null===(c=s.attributes)||void 0===c?void 0:c.text_color)||"#000000"})},zr(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,Pr),(0,r.createElementVNode)("div",Hr,[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,qr)):(0,r.createCommentVNode)("",!0)])],4)})),128))])):(0,r.createCommentVNode)("",!0)],64)}]]);var Qr={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"},lo={class:"cookie-consent-banner__toggle"},io={class:"cookie-consent-banner__option"},so={class:"cookie-consent-banner__toggle"},co={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))},l=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),l()},decline:function(){o.value={analytics:!1,marketing:!1},fo(o.value),l()},openPreferencesModal:function(){n.value="preferences"},closePreferencesModal:function(){n.value="primary"},savePreferencesFromModal:function(){fo(o.value),l()},closeBanner:l}}};var vo=n(54210),yo={insert:"head",singleton:!1};te()(vo.Z,yo);vo.Z.locals;const bo=(0,N.Z)(go,[["render",function(e,t,n,o,a,l){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",Qr,[(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",lo,[(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",io,[(0,r.createElementVNode)("label",so,[(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",co,[(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 xo(e){return function(e){if(Array.isArray(e))return ko(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 ko(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 ko(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 ko(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 wo={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"],No={key:1,"aria-current":"page",class:"truncate max-w-[70vw] font-medium text-gray-700"},Vo={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[]}}}},So=(0,N.Z)(Co,[["render",function(e,t,n,o,a,l){return n.items&&n.items.length?((0,r.openBlock)(),(0,r.createElementBlock)("nav",wo,[(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",No,(0,r.toDisplayString)(e.name),1)),o<n.items.length-1?((0,r.openBlock)(),(0,r.createElementBlock)("svg",Vo,xo(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)}]]),Lo={components:{Header:nr,Footer:jr,Container:gr.Z,Banner:$r,CookieConsentBanner:bo,Breadcrumbs:So},computed:{breadcrumbs:function(){var e;return null!==(e=(0,a.qt)().props.breadcrumbs)&&void 0!==e?e:[]}}},_o=(0,N.Z)(Lo,[["render",function(e,t,n,a,l,i){var s=(0,r.resolve
2Component)("CookieConsentBanner"),c=(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)(s),(0,r.createVNode)(c),(0,r.createVNode)(d,{class:""},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(u)]})),_:1}),i.breadcrumbs.length?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,class:""},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(m,{items:i.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 l={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"},i={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"},s=["src"],c=["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")(),l=(0,p.qt)();return{aa:a,teachingMaterialsIndex:(null===(e=l.props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(n=l.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.resolveComponent)("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",l,(0,r.toDisplayString)(n.resource.type),1)]})),image:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("img",{alt:"stc",class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:m.imageUrl},null,8,s)])]})),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),
21))],8,c)]})),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"])}]])},80982:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ne});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 l={ref:"resourcessContainer"},i={class:"mt-8 px-4 xl:px-0"},s={class:"flex items-center justify-between"},c={class:"grid grid-cols-12 gap-6 lg:gap-10"},u={class:"col-span-12 lg:col-span-7"},d={class:"text-[18px] lg:text-4xl font-[700] max-w-[700px]"},m={class:"mt-[20px]"},p={key:0},f={key:1},h={class:"mt-3 space-y-3"},g={class:"flex items-center gap-6 flex-wrap"},v={class:"flex items-center gap-3"},y={class:"flex items-center gap-3"},b={class:"grid sm:grid-cols-2 gap-x-6 gap-y-3 pt-1"},x={class:"flex items-center gap-3"},k={key:0,class:"flex items-center gap-3"},w={key:1,class:"flex items-start gap-3"},E={key:2,class:"flex items-start gap-3"},B={key:3,class:"flex items-start gap-3"},N={class:"col-span-12 lg:col-span-5"},V={class:"grid grid-cols-12 gap-4 lg:gap-8"},C={class:"col-span-12"},S={class:"bg-primary-200 px-[25px] py-[30px] rounded-xl",id:"synopsis"},L=["innerHTML"],_={key:0,class:"mt-[80px]"},A={class:"space-y-8"},M=["src"],D=["href"],I={class:"text-xl font-medium underline"},T=["innerHTML"],F=["innerHTML"],j={class:"mt-[36px] lg:mt-[80px]",id:"relatedResources"};var z=n(19394),O=n(49613),U=n(87879),R=n(66950),G=n(9783),P=n(63012),H=n(5121),Z=n(72326),q=n(26467),K=n(32503),Y=n(3754),W=n(75986),X=n(47393),$=n(43129);function Q(){Q=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",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,l=Object.create(a.prototype),i=new N(o||[]);return r(l,"_invoke",{value:k(e,n,i)}),l}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};s(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 b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,i){var s=u(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==J(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,i)}),(function(e){o("throw",e,l,i)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,i)}))}i(s.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()}})}
vendor: 4,684 bytes, line 2
2function k(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 l=n.delegate;if(l){var i=w(l,n);if(i){if(i===d)continue;return i}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function w(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,w(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,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: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=s(f,i,"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,s(e,i,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new x(c(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},b(y),s(y,i,"Generator"),s(y,a,(function(){return this})),s(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,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(l)},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];
2if(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:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function J(e){return J="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},J(e)}function ee(e,t,n,r,o,a,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}const te={components:{MainLayout:z.Z,Container:O.Z,ResourceCard:R.default,RelatedResourceItems:P.default,TabsSection:K.default,ReviewsComments:G.default,ButtonToPageTop:q.Z,Grades:Y.Z,LessonLocalizationPanel:$.Z,ScientistReviewedSeal:W.Z},data:function(){return{isBookmarkedState:!1,resourcessContainerTopOffset:0,resourcessContainerOffsetHeight:0}},props:{resource:{type:Object},bookmarkedResourcesIds:{type:Array,default:[]},isBookmarked:{type:Boolean,default:!1},isActivity:{type:Boolean,default:!1},canEdit:{type:Boolean,default:!1}},setup:function(){return{mergeContinuousLevels:Z.aV}},methods:{toggleBookmark:function(){var e,t=this;return(e=Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.user&&("object"!==J(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,H.Z.put(route("tm.bookmark",t.resource.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 l(e){ee(a,r,o,l,i,"next",e)}function i(e){ee(a,r,o,l,i,"throw",e)}l(void 0)}))})()},updateResourcessContainerOffsets:function(){var e=this;setInterval((function(){e.resourcessContainerTopOffset=e.$refs.resourcessContainer.offsetTop,e.resourcessContainerOffsetHeight=e.$refs.resourcessContainer.offsetHeight}),2e3)},formatDate:function(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},goToPreviousPage:function(){window.history.back()}},computed:{providerImageUrl:function(){},providerCircleImageUrl:function(){},providerDescription:function(){},providerName:function(){var e;return null===(e=this.resource.teachable)||void 0===e?void 0:e.users.map((function(e){return e.name})).join(", ")},mergedGrades:function(){return(0,Z.aV)(this.resource.grades.map((function(e){return"object"===J(e)?e.name:e})))},resourceType:function(){return"object"===J(this.resource.type)?this.resource.type.name:this.resource.type},user:function(){return(0,U.qt)().props.auth.user}},mounted:function(){this.isBookmarkedState=this.isBookmarked,this.updateResourcessContainerOffsets(),window.el=this.$refs.resourcessContainer,console.log(this.resource);var e=(0,X.VK)();if(e&&this.resource){var t=(0,X.aU)()||"teaching_materials";(0,X.De)({indexUid:t,objectId:String(this.resource.id),objectName:this.resource.title,eventName:"Lesson Plan Viewed",queryUid:e})}}};const ne=(0,n(83744).Z)(te,[["render",function(e,t,n,a,z,O){var U=(0,r.resolveComponent)("Container"),R=(0,r.resolveComponent)("Grades"),G=(0,r.resolveComponent)("ScientistReviewedSeal"),P=(0,r.resolveComponent)("ResourceCard"),H=(0,r.resolveComponent)("LessonLocalizationPanel"),Z=(0,r.resolveComponent)("TabsSection"),q=(0,r.resolveComponent)("RelatedResourceItems"),K=(0,r.resolveComponent)("ReviewsComments"),Y=(0,r.resolveComponent)("ButtonToPageTop"),W=(0,r.resolveComponent)("MainLayout");return(0,r.openBlock)(),(0,r.createBlock)(W,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(U,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return O.goToPreviousPage()}),class:"flex space-x-2 items-center"},o(t[1]||(t[1]=[(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),(0,r.createElementVNode)("span",null,"Back to Lessons, Units, and Activities",-1)])))])])]})),_:1}),(0,r.createVNode)(U,{class:"mt-8 p-4"},{default:(0,r.withCtx)((function(){var a;return[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("h1",d,(0,r.toDisplayString)(n.resource.title),
21),(0,r.createElementVNode)("div",m,[t[4]||(t[4]=(0,r.createElementVNode)("b",{class:"font-[600]"},"Created by Teacher(s):",-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(O.providerName),1),t[5]||(t[5]=(0,r.createElementVNode)("span",{class:"mx-[16px]"},"|",-1)),n.resource.published_at?((0,r.openBlock)(),(0,r.createElementBlock)("span",p,[t[2]||(t[2]=(0,r.createElementVNode)("b",{class:"font-[600]"},"Published on:",-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(O.formatDate(n.resource.published_at)),1)])):((0,r.openBlock)(),(0,r.createElementBlock)("span",f,[t[3]||(t[3]=(0,r.createElementVNode)("b",{class:"font-[600]"},"Updated:",-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(O.formatDate(n.resource.updated_at)),1)]))]),(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("div",v,[t[6]||(t[6]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Grades: ",-1)),(0,r.createVNode)(R,{grades:n.resource.grades,"show-colors":!1,plain:!0},null,8,["grades"])]),(0,r.createElementVNode)("div",y,[t[7]||(t[7]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Type: ",-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.resource.type),1)])]),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("div",x,[t[9]||(t[9]=(0,r.createElementVNode)("div",{class:"w-[22px] text-center flex-shrink-0"},[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",viewBox:"0 0 22 18",fill:"none"},[(0,r.createElementVNode)("path",{d:"M11 18L4 14.2V8.2L0 6L11 0L22 6V14H20V7.1L18 8.2V14.2L11 18ZM11 9.7L17.85 6L11 2.3L4.15 6L11 9.7ZM11 15.725L16 13.025V9.25L11 12L6 9.25V13.025L11 15.725Z",fill:"#1C1B1F"})])],-1)),(0,r.createElementVNode)("div",null,[t[8]||(t[8]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Subjects: ",-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.resource.subjects_list.join(", ")),1)])]),n.resource.teachable.duration_for_humans?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[t[11]||(t[11]=(0,r.createElementVNode)("div",{class:"w-[22px] flex-shrink-0"},[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},[(0,r.createElementVNode)("path",{d:"M11.0001 20.0001C9.7501 20.0001 8.57927 19.7626 7.4876 19.2876C6.39593 18.8126 5.44593 18.1709 4.6376 17.3626C3.82926 16.5543 3.1876 15.6043 2.7126 14.5126C2.2376 13.4209 2.0001 12.2501 2.0001 11.0001C2.0001 9.7501 2.2376 8.57926 2.7126 7.4876C3.1876 6.39593 3.82926 5.44593 4.6376 4.6376C5.44593 3.82926 6.39593 3.1876 7.4876 2.7126C8.57927 2.2376 9.7501 2.0001 11.0001 2.0001C12.2501 2.0001 13.4209 2.2376 14.5126 2.7126C15.6043 3.1876 16.5543 3.82926 17.3626 4.6376C18.1709 5.44593 18.8126 6.39593 19.2876 7.4876C19.7626 8.57926 20.0001 9.7501 20.0001 11.0001C20.0001 12.2501 19.7626 13.4209 19.2876 14.5126C18.8126 15.6043 18.1709 16.5543 17.3626 17.3626C16.5543 18.1709 15.6043 18.8126 14.5126 19.2876C13.4209 19.7626 12.2501 20.0001 11.0001 20.0001ZM13.8001 15.2001L15.2001 13.8001L12.0001 10.6001V6.0001H10.0001V11.4001L13.8001 15.2001ZM4.6001 0.350098L6.0001 1.7501L1.7501 6.0001L0.350098 4.6001L4.6001 0.350098ZM17.4001 0.350098L21.6501 4.6001L20.2501 6.0001L16.0001 1.7501L17.4001 0.350098ZM11.0001 18.0001C12.9501 18.0001 14.6043 17.3209 15.9626 15.9626C17.3209 14.6043 18.0001 12.9501 18.0001 11.0001C18.0001 9.0501 17.3209 7.39593 15.9626 6.0376C14.6043 4.67926 12.9501 4.0001 11.0001 4.0001C9.0501 4.0001 7.39593 4.67926 6.0376 6.0376C4.67926 7.39593 4.0001 9.0501 4.0001 11.0001C4.0001 12.9501 4.67926 14.6043 6.0376 15.9626C7.39593 17.3209 9.0501 18.0001 11.0001 18.0001Z",fill:"#1C1B1F"})])],-1)),(0,r.createElementVNode)("div",null,[t[10]||(t[10]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Duration: ",-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.resource.teachable.duration_for_humans),1)])])):(0,r.createCommentVNode)("",!0),n.resource.teachable.created_by?((0,r.openBlock)(),(0,r.createElementBlock)("div",w,[t[13]||(t[13]=(0,r.createElementVNode)("div",{class:"w-[22px] flex-shrink-0"},[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},[(0,r.createElementVNode)("mask",{id:"mask0_113_4527d",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[(0,r.createElementVNode)("rect",{width:"24",height:"24",fill:"#D9D9D9"})]),(0,r.createElementVNode)("g",{mask:"url(#mask0_113_4527d)"},[(0,r.createElementVNode)("path",{d:"M5 19H6.425L16.2 9.225L14.775 7.8L5 17.575V19ZM3 21V16.75L16.2 3.575C16.4 3.39167 16.6208 3.25 16.8625 3.15C17.1042 3.05 17.3583 3 17.625 3C17.8917 3 18.15 3.05 18.4 3.15C18.65 3.25 18.8667 3.4 19.05 3.6L20.425 5C20.625 5.18333 20.7708 5.4 20.8625 5.65C20.9542 5.9 21 6.15 21 6.4C21 6.66667 20.9542 6.92083 20.8625 7.1625C20.7708 7.40417 20.625 7.625 20.425 7.825L7.25 21H3ZM15.475 8.525L14.775 7.8L16.2 9.225L15.475 8.525Z",fill:"#1C1B1F"})])])],-1)),(0,r.createElementVNode)("div",null,[t[12]||(t[12]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Created by: ",-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.resource.teachable.created_by.name)+" teachers",1)])])):(0,r.createCommentVNode)("",!0),n.resource.regions?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,[t[15]||(t[15]=(0,r.createElementVNode)("div",{class:"w-[22px] flex-shrink-0"},[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},[(0,r.createElementVNode)("mask",{id:"mask0_113_4532b",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[(0,r.createElementVNode)("rect",{width:"24",height:"24",fill:"#D9D9D9"})]),(0,r.createElementVNode)("g",{mask:"url(#mask0_113_4532b)"},[(0,r.createElementVNode)("path",{d:"M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 
213.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 11.8833 19.9958 11.7625 19.9875 11.6375C19.9792 11.5125 19.975 11.4083 19.975 11.325C19.8917 11.8083 19.6667 12.2083 19.3 12.525C18.9333 12.8417 18.5 13 18 13H16C15.45 13 14.9792 12.8042 14.5875 12.4125C14.1958 12.0208 14 11.55 14 11V10H10V8C10 7.45 10.1958 6.97917 10.5875 6.5875C10.9792 6.19583 11.45 6 12 6H13C13 5.61667 13.1042 5.27917 13.3125 4.9875C13.5208 4.69583 13.775 4.45833 14.075 4.275C13.7417 4.19167 13.4042 4.125 13.0625 4.075C12.7208 4.025 12.3667 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12H9C10.1 12 11.0417 12.3917 11.825 13.175C12.6083 13.9583 13 14.9 13 16V17H10V19.75C10.3333 19.8333 10.6625 19.8958 10.9875 19.9375C11.3125 19.9792 11.65 20 12 20Z",fill:"#1C1B1F"})])])],-1)),(0,r.createElementVNode)("div",null,[t[14]||(t[14]=(0,r.createElementVNode)("span",{class:"font-semibold"},"Region: ",-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(null===(a=n.resource.regions_list)||void 0===a?void 0:a.join(", ")),1)])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(G,{variant:"row"}),n.resource.regions?((0,r.openBlock)(),(0,r.createElementBlock)("div",B,o(t[16]||(t[16]=[(0,r.createElementVNode)("div",{class:"w-[22px] flex-shrink-0"},[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},[(0,r.createElementVNode)("mask",{id:"mask0_99_1995b",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[(0,r.createElementVNode)("rect",{width:"24",height:"24",fill:"#D9D9D9"})]),(0,r.createElementVNode)("g",{mask:"url(#mask0_99_1995b)"},[(0,r.createElementVNode)("path",{d:"M8.85 17.825L12 15.925L15.15 17.85L14.325 14.25L17.1 11.85L13.45 11.525L12 8.125L10.55 11.5L6.9 11.825L9.675 14.25L8.85 17.825ZM5.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:"#1C1B1F"})])])],-1),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{href:"#reviews",class:"underline"},"No Reviews")],-1)])))):(0,r.createCommentVNode)("",!0)])])]),(0,r.createElementVNode)("div",N,[(0,r.createVNode)(P,{resource:n.resource,isActivity:n.isActivity,"is-bookmarked":z.isBookmarkedState,onToggleBookmark:O.toggleBookmark,"on-localize":function(){return e.$refs.localizationPanel.openModal()}},null,8,["resource","isActivity","is-bookmarked","onToggleBookmark","on-localize"])])]),(0,r.createVNode)(H,{ref:"localizationPanel",resource:n.resource,"show-trigger":!1},null,8,["resource"]),t[17]||(t[17]=(0,r.createElementVNode)("hr",{class:"w-full mt-8 mb-0"},null,-1))]})),_:1}),(0,r.createVNode)(U,{class:"mt-[23px] px-4 xl:px-0"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",V,[(0,r.createElementVNode)("div",C,[t[20]||(t[20]=(0,r.createElementVNode)("h2",{class:"text-[18px] md:text-[24px] font-semibold mb-[23px]"},"Synopsis",-1)),(0,r.createElementVNode)("div",S,[(0,r.createElementVNode)("div",{class:"text-lg",innerHTML:n.resource.synopsis_original},null,8,L),t[18]||(t[18]=(0,r.createElementVNode)("div",{class:"text-lg mt-[15px]"},[(0,r.createElementVNode)("span",{class:"block"},[(0,r.createElementVNode)("b",null,"Share:"),(0,r.createTextVNode)(),(0,r.createElementVNode)("em",null,"This lesson plan is licensed under Creative Commons.")]),(0,r.createElementVNode)("a",{rel:"license",href:"https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode",target:"_blank"},[(0,r.createElementVNode)("img",{alt:"Creative Commons License",src:"https://i.creativecommons.org/l/by-nc/4.0/88x31.png"})])],-1)),t[19]||(t[19]=(0,r.createElementVNode)("a",{href:"#relatedResources",class:"inline-block lg:hidden mt-[16px] text-lg font-[600] underline"}," Related Lessons, Units, and Activities ",-1))]),t[21]||(t[21]=(0,r.createElementVNode)("a",{href:"#relatedResources",class:"hidden lg:inline-block mt-[40px] text-lg font-[600] underline"}," Related Lessons, Units, and Activities ",-1))])]),(0,r.createVNode)(Z,{resource:n.resource,isActivity:n.isActivity},null,8,["resource","isActivity"]),n.resource.teachable.users?((0,r.openBlock)(),(0,r.createElementBlock)("div",_,[t[22]||(t[22]=(0,r.createElementVNode)("h2",{class:"text-[18px] md:text-[24px] font-semibold mb-[24px]"},"Teacher Writer",-1)),(0,r.createElementVNode)("div",A,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.resource.teachable.users,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t.slug,class:"flex gap-4 sm:gap-6"},[(0,r.createElementVNode)("img",{src:t.avatar_url,class:"rounded-xl h-32 w-32 object-cover shrink-0",alt:"Avatar"},null,8,M),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{target:"_blank",href:e.route("profile",t.slug)},[(0,r.createElementVNode)("h4",I,(0,r.toDisplayString)(t.name),1)],8,D),(0,r.createElementVNode)("div",{innerHTML:t.title,class:"text-xs mt-[5px]"},null,8,T),t.bio?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,innerHTML:t.bio,class:"text-sm leading-6 text-neutral-700 mt-[10px]"},null,8,F)):(0,r.createCommentVNode)("",!0)])])})),128))])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(G,{variant:"banner"}),(0,r.createElementVNode)("div",j,[(0,r.createVNode)(q,{resource:n.resource,bookmarkedResourcesIds:n.bookmarkedResourcesIds},null,8,["resource","bookmarkedResourcesIds"])]),(0,r.createVNode)(K,{teachingMaterial:n.resource},null,8,["teachingMaterial"]),(0,r.createVNode)(Y,{startY:z.resourcessContainerTopOffset,endY:z.resourcessContainerTopOffset+z.resourcessContainerOffsetHeight},null,8,["startY","endY"])]})),_:1})],512)]})),_: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 l={class:"grid grid-cols-4 gap-8 px-[35px] py-[28px]"},i={class:"-mt-2"},s={class:"flex flex-col justify-between h-full"},c=["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"],b={class:"text-right"},x=["href"];var k=n(72326),w=[{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:k.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:w}}};const B=(0,n(83744).Z)(E,[["render",function(e,t,n,a,k,w){return(0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(k.embeddings,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{onClick:function(t){return k.selectedEmbeddingId=e.id},key:e.id,class:(0,r.normalizeClass)([e.id==k.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,c)})),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,[w.selectedEmbedding?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[w.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)),w.isGoogleDocsUrl?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("iframe",{class:"h-full scale-[101%]",loading:"lazy",src:w.extractSrcUrlFromIframeString(w.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:w.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:w.selectedEmbedding.url,target:"_blank",class:"underline font-semibold"},"open material",8,y)]))])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("a",{href:w.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,x)])])])}]])},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 l={class:"w-full",style:{"aspect-ratio":"480 /294"}},i=["src"],s={class:"text-right px-6 border-t border-gray-300 py-4"},c=["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",l,[(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,i),(0,r.createElementVNode)("div",s,[(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,c)])])])}]])},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 l=n(76306),i=n(32608),s=n(47393),c=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:l.St,AisInstantSearch:l.M,AisHits:l.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)||"",l=(0,s.wA)();return{client:(0,i.instantMeiliSearch)(o,a,{placeholderSearch:!1,primaryKey:"id",requestConfig:{headers:{"X-MS-USER-ID":l}}}).searchClient}},mounted:function(){(0,c.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,l,i,s){var c=(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:l.client,indexName:s.indexName},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(c,{hitsPerPage:4,page:0,filters:s.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:s.bookmarkUpdated},null,8,["resource","isBookmarked","onBookmarkUpdated"])):((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,material:e,isBookmarked:n.bookmarkedResourcesIds.includes(e.id),onBookmarkUpdated:s.bookmarkUpdated},null,8,["material","isBookmarked","onBookmarkUpdated"]))])})),128))])]})),_:1})]})),_:1}
2,8,["searchClient","indexName"])])}]])},66950:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});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 l={class:"overflow-hidden rounded-xl shadow-lg bg-white relative"},i={class:"relative"},s=["innerHTML"],c={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 b={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 x=(0,n(83744).Z)(b,[["render",function(e,t,n,a,g,v){var y=(0,r.resolveComponent)("ScientistReviewedSeal"),b=(0,r.resolveComponent)("PrimaryButton");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",{innerHTML:n.resource.responsive_image_html,class:"w-full h-full duration-150 object-cover"},null,8,s),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(y,{variant:"badge"})])]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(b,{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:()=>b});var r=n(41916),o={class:"mt-[80px]",id:"reviews"},a={key:0,class:"rounded-xl py-[20px] px-[24px] bg-[#EEF1F6]"},l={class:"flex flex-col justify-center items-center mt-[40px]"},i={class:"max-w-[887px] flex space-x-[15px] items-start w-full mt-4"},s=["src"],c={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",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,l=Object.create(a.prototype),i=new C(o||[]);return r(l,"_invoke",{value:E(e,n,i)}),l}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var v={};s(v,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(S([])));b&&b!==t&&n.call(b,a)&&(v=b);var x=f.prototype=m.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,a,l,i){var s=u(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==h(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,i)}),(function(e){o("throw",e,l,i)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,i)}))}i(s.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 L()}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var i=B(l,n);if(i){if(i===d)continue;return i}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.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 N(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 V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function S(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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=f,r(x,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=s(f,i,"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,s(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(w.prototype),s(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new w(c(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},k(x),s(x,i,"Generator"),s(x,a,(function(){return this})),s(x,"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=S,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(V),!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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(l)},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),V(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;V(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function v(e,t,n,r,o,a,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).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 l(e){v(a,r,o,l,i,"next",e)}function i(e){v(a,r,o,l,i,"throw",e)}l(void 0)}))})()}},computed:{user:function(){return(0,f.qt)().props.auth.user}},mounted:function(){console.log("user",this.user)}};const b=(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",l,[((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",i,[(0,r.createElementVNode)("img",{src:e.user_avatar_url,width:"50",height:"50",class:"rounded-full",alt:"Avatar"},null,8,s),(0,r.createElementVNode)("div",c,[(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:()=>c});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"},l=["innerHTML"],i=["innerHTML"];const s={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 c=(0,n(83744).Z)(s,[["render",function(e,t,n,s,c,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,l),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,i)):(0,r.createCommentVNode)("",!0)])])}]])},4973:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(41916),o={class:"grid grid-cols-4 gap-8 px-[35px] py-[28px]"},a={class:"-mt-2"},l=["onClick"],i={class:"bg-white rounded-xl col-span-3 h-full py-[15px] px-[22px] lg:h-[454px] overflow-y-scroll"},s={key:0},c={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 b=n(87879),x=[{label:"Standards",name:"standards"}];const k={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,b.qt)().props.tenantSlug;return{tabs:x,tenantSlug:e}}};const w=(0,n(83744).Z)(k,[["render",function(e,t,n,b,x,k){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)(b.tabs,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{onClick:function(t){return x.selectedTabName=e.name},key:e.name,class:(0,r.normalizeClass)([e.name==x.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,l)})),128))]),(0,r.createElementVNode)("div",i,["standards"==x.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[Array.isArray(k.primaryStandardsNamesTree)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[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)(k.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(k.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)(k.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"},l={class:"flex font-[500] text-[18px]"},i=["onClick"],s=["innerHTML"],c={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",l,[((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,s)],10,i)):(0,r.createCommentVNode)("",!0)],64)})),256))]),(0,r.createElementVNode)("div",c,[((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:()=>D});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 l={class:"block space-y-[11px] lg:hidden"},i=["onClick"],s={key:0,class:"p-[16px] bg-[#EEF1F6] rounded-bl-xl rounded-br-xl"},c={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"},b={class:"font-semibold"},x={class:"-mt-6"},k={class:"-mt-2"},w={class:"mt-8"},E={class:"-mt-6 trix"},B={class:"font-semibold"},N={class:"-mt-6"},V={class:"-mt-2"},C={key:3},S={class:"list-disc space-y-1 pl-[20px]"},L=["href"];var _=n(87879),A=[{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 M={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,_.qt)().props.tenantSlug;return{tabs:A,tenantSlug:e}}};const D=(0,n(83744).Z)(M,[["render",function(e,t,n,a,_,A){return(0,r.openBlock)(),(0,r.createElementBlock)("div",l,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.tabs,(function(e){var a,l,M;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)([_.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 _.selectedTabName===e.name?_.selectedTabName="":_.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)(_.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,i),_.selectedTabName===e.name?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,["teaching_tips"===_.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(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"===_.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===(l=a.teachable)||void 0===l?void 0:l.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===(M=n.resource.teachable)||void 0===M?void 0:M.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"===_.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)(A.primaryStandardsNamesTree,(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",x,[((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",k,[((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",w,[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)(A.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",N,[((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",V,[((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"===_.selectedTabName?((0,r.openBlock)(),(0,r.createElementBlock)("div",C,[(0,r.createElementVNode)("ul",S,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(_.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,L)])})),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},l={key:1},i={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"},s=["src"],c=["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")(),l=(0,p.qt)();return{aa:a,teachingMaterialsIndex:(null===(e=l.props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(n=l.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",l,(0,r.toDisplayString)(n.material.type),1))])]})),image:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("img",{class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:p.imageUrl,alt:"Avatar"},null,8,s)])]})),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,c)]})),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:()=>s});var r=n(41916);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l={width:"41",height:"45",viewBox:"0 0 41 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const i={},s=(0,n(83744).Z)(i,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",l,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)])))}]])},26467:(e,t,n)=>{n.d(t,{Z:()=>i});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}const l={mounted:function(){window.addEventListener("scroll",this.handleScroll)},methods:{scrollToTop:function(){window.scrollTo(0,this.startY-10)},handleScroll:function(e){this.showButton=window.pageYOffset>this.startY&&window.pageYOffset<this.endY}},props:{startY:{type:Number,default:1120},endY:{type:Number,default:5e3}},data:function(){return{showButton:!1}}};const i=(0,n(83744).Z)(l,[["render",function(e,t,n,a,l,i){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{onClick:t[0]||(t[0]=function(e){return i.scrollToTop()}),class:"fixed bottom-28 right-10 w-16 h-16 rounded-full bg-primary-500 text-white flex justify-center items-center shadow duration-100 z-10"},o(t[1]||(t[1]=[(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-8 h-8"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 19.5v-15m0 0l-6.75 6.75M12 4.5l6.75 6.75"})],-1)])),512)),[[r.vShow,l.showButton]])}]])}
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 l=n(72326);function i(e){return function(e){if(Array.isArray(e))return s(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 s(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 s(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 s(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 c={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 i(e).sort(l.dP);for(var t=function(e){return-1===e?"PK":0===e?"K":13===e?"AP":e.toString()},n=i(e).sort(l.dP).map((function(e){return"PK"===e?-1:"K"===e?0:"AP"===e?13:parseInt(e)})),r=[],o=n[0],a=n[0],s=1;s<n.length;s++)n[s]===a+1||(o===a?r.push(t(o)):r.push("".concat(t(o),"-").concat(t(a))),o=n[s]),a=n[s];return o===a?r.push(t(o)):r.push("".concat(t(o),"-").concat(t(a))),r.sort(l.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(i(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:l.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)(c,[["render",function(e,t,n,l,i,s){return n.plain?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,(0,r.toDisplayString)(s.plainGradesText),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[s.hasK12(s.processedGrades)?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("span",{style:(0,r.normalizeStyle)({backgroundColor:n.showColors?s.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)(s.nonK12Grades,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,style:(0,r.normalizeStyle)({backgroundColor:n.showColors?s.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)(s.processedGrades,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,style:(0,r.normalizeStyle)({backgroundColor:n.showColors?s.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:()=>V});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"},l={class:"p-[12px] pb-0 flex-shrink-0"},i={class:"relative w-full overflow-hidden h-32 rounded-r-xl rounded-tl-lg"},s=["src"],c={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),b=n(95785),x=n(85521),k=n(87879);function w(){w=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",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,l=Object.create(a.prototype),i=new C(o||[]);return r(l,"_invoke",{value:k(e,n,i)}),l}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};s(h,a,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,i){var s=u(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==E(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,i)}),(function(e){o("throw",e,l,i)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,i)}))}i(s.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 k(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 L()}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var i=B(l,n);if(i){if(i===d)continue;return i}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.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 N(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 V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function S(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:L}}function L(){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=s(f,i,"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,s(e,i,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new x(c(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},b(y),s(y,i,"Generator"),s(y,a,(function(){return this})),s(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=S,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(V),!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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(l)},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),V(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;V(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(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,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}const N={components:{AisHighlight:g.YE,BookmarkingIcon:x.Z,PrimaryButton:b.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=w().mark((function e(){var n;return w().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 l(e){B(a,r,o,l,i,"next",e)}function i(e){B(a,r,o,l,i,"throw",e)}l(void 0)}))})()}},computed:{user:function(){return(0,k.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 V=(0,n(83744).Z)(N,[["render",function(e,t,n,g,v,y){var b=(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)(b)],2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",i,[(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,s)]})),(0,r.renderSlot)(e.$slots,"badge")])]),(0,r.createElementVNode)("div",c,[(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)}]])}
2,43129:(e,t,n)=>{n.d(t,{Z:()=>bt});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 l={class:"font-outfit w-full max-w-xl rounded-2xl bg-white p-6 shadow-2xl"},i={class:"flex items-start justify-between gap-4"},s={class:"mt-5"},c={class:"mt-3 flex flex-wrap gap-2"},u=["onClick"],d={key:0,class:"mt-3 text-sm text-red-600"},m={key:1,class:"mt-4 overflow-hidden rounded-xl border border-[#5DA5E1] bg-[#DFEDF9]"},p={class:"flex items-center gap-3 px-4 py-3"},f={class:"text-sm font-medium text-[#051224]"},h={class:"mt-6 flex justify-end gap-3"},g=["disabled"],v={key:0},y={key:1},b={class:"font-outfit w-full max-w-md rounded-2xl bg-white p-6 shadow-2xl"},x={class:"flex items-start justify-between gap-4"},k={class:"mt-1 text-xl font-semibold text-neutral-900"},w=["placeholder"],E={class:"mt-3 flex items-start gap-2.5 text-sm text-neutral-700"},B={class:"mt-4 flex justify-end gap-3"},N=["disabled"],V={class:"font-outfit w-full max-w-md rounded-2xl bg-white p-6 shadow-2xl"},C={class:"flex items-start justify-between gap-4"},S={class:"mt-1 text-xl font-semibold text-neutral-900"},L={class:"mt-2 text-sm leading-6 text-neutral-600"},_={class:"mt-6 flex flex-col gap-3"},A=["href"],M=["href"],D={key:1,class:"mt-6 rounded-2xl border border-[#5DA5E1] bg-[#DFEDF9] px-5 py-4"},I={class:"mt-2 text-sm text-neutral-700"},T={key:2,class:"mt-6 flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-red-200 bg-red-50 px-5 py-4 text-sm text-red-700"},F={key:3,class:"mt-6 overflow-hidden rounded-2xl border border-[#95D2F2] bg-neutral-50 shadow-sm"},j={class:"bg-white px-5 py-5 sm:px-6"},z={class:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between"},O={class:"flex flex-wrap items-center gap-2"},U={class:"rounded-full border border-neutral-200 px-3 py-1 text-xs font-medium text-neutral-600"},R={class:"mt-3 text-2xl font-semibold leading-tight text-neutral-900"},G={class:"flex flex-wrap items-center gap-2 lg:hidden"},P=["disabled","aria-label","title"],H=["fill"],Z={key:1,class:"relative",ref:"exportMenuWrapperMobile"},q=["disabled"],K={key:0,class:"absolute right-0 top-full z-10 mt-1 w-48 rounded-xl border border-neutral-200 bg-white py-1 shadow-lg"},Y=["href"],W=["disabled"],X={class:"hidden lg:flex lg:flex-col lg:items-end gap-2"},$={class:"flex items-center gap-2"},Q={class:"flex items-center gap-2"},J=["disabled","aria-label","title"],ee=["fill"],te={key:1,class:"relative",ref:"exportMenuWrapper"},ne=["disabled"],re={key:0,class:"absolute right-0 top-full z-10 mt-1 w-48 rounded-xl border border-neutral-200 bg-white py-1 shadow-lg"},oe=["href"],ae=["disabled"],le={key:0,class:"mt-5 border-l-4 border-[#556FA4] bg-[#D4DBE8] px-4 py-3"},ie={class:"mt-1 text-sm leading-6 text-neutral-800 sm:text-base"},se={key:0,class:"bg-white px-5 py-5 sm:px-6"},ce={class:"mt-4 space-y-3"},ue={key:1,class:"bg-white px-5 py-5 sm:px-6"},de={class:"mt-4 space-y-3"},me={class:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-neutral-100 text-xs font-semibold text-neutral-700"},pe={class:"space-y-5 px-5 py-6 sm:px-6"},fe={key:0,class:"rounded-xl border border-neutral-200 bg-white"},he={class:"divide-y divide-neutral-100"},ge={class:"font-semibold text-[#556FA4]"},ve={key:1,class:"rounded-xl border border-neutral-200 bg-white"},ye={class:"text-base font-semibold leading-snug text-neutral-900"},be={class:"mt-2 text-sm leading-6 text-neutral-700"},xe=["href"],ke={key:0,class:"inline-flex h-4 w-4 items-center justify-center rounded-full bg-[#A4EBA2] text-[#262626]","aria-label":"StC-approved resource"},we={key:2,class:"rounded-xl border border-neutral-200 bg-white"},Ee={class:"text-base font-semibold leading-snug text-neutral-900"},Be={class:"mt-2 text-sm leading-6 text-neutral-700"},Ne=["href"],Ve={key:0,class:"inline-flex h-4 w-4 items-center justify-center rounded-full bg-[#A4EBA2] text-[#262626]","aria-label":"StC-approved resource"},Ce={key:3,class:"rounded-xl border border-neutral-200 bg-white"},Se=["aria-expanded"],Le={key:0,class:"border-t border-neutral-200 px-4 py-4"},_e={key:0},Ae={class:"mt-3 space-y-2 text-sm leading-6 text-neutral-700"},Me={key:1,class:"mt-5 border-t border-neutral-100 pt-5"},De={class:"mt-3 divide-y divide-neutral-100"},Ie={class:"text-sm font-semibold text-neutral-900"},Te={class:"mt-1 text-sm leading-6 text-neutral-700"},Fe=["href"],je={key:0,class:"inline-flex h-4 w-4 items-center justify-center rounded-full bg-[#A4EBA2] text-[#262626]","aria-label":"StC-approved resource"},ze={key:2,class:"mt-5 border-t border-neutral-100 pt-5"},Oe={key:0,class:"mt-3"},Ue={class:"mt-2 flex flex-wrap gap-2"},Re=["href"],Ge={key:1,class:"mt-3"},Pe={class:"mt-2 flex flex-wrap gap-2"},He=["href"],Ze={key:4,class:"rounded-xl border border-[#FFCD71] bg-[#FFF6DB] px-4 py-4"},qe={class:"mt-3 space-y-2 text-sm leading-6 text-[#262626]"},Ke={key:0,class:"border-t border-neutral-200 bg-neutral-50 px-5 py-4 sm:px-6"},Ye={class:"flex flex-wrap items-center justify-between gap-3"},We={key:0,class:"flex flex-wrap items-center gap-4"},Xe={key:1,class:"text-sm text-neutral-500"},$e={class:"flex flex-wrap items-center gap-2"}
vendor: 5,148 bytes, line 2
2,Qe=["disabled","aria-label","title"],Je=["fill"],et={key:1,class:"relative",ref:"exportMenuWrapperBottom"},tt=["disabled"],nt={key:0,class:"absolute bottom-full right-0 z-10 mb-1 w-48 rounded-xl border border-neutral-200 bg-white py-1 shadow-lg"},rt=["href"],ot=["disabled"];var at=n(5121),lt=n(87879);function it(e){return it="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},it(e)}function st(){st=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",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,l=Object.create(a.prototype),i=new N(o||[]);return r(l,"_invoke",{value:k(e,n,i)}),l}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};s(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 b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,i){var s=u(e[r],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==it(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,i)}),(function(e){o("throw",e,l,i)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,i)}))}i(s.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 k(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 l=n.delegate;if(l){var i=w(l,n);if(i){if(i===d)continue;return i}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function w(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,w(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,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: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=s(f,i,"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,s(e,i,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var l=new x(c(t,n,r,o),a);return e.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},b(y),s(y,i,"Generator"),s(y,a,(function(){return this})),s(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,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(i&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)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 l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(l)},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:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function ct(e,t,n,r,o,a,l){try{var i=e[a](l),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function ut(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function l(e){ct(a,r,o,l,i,"next",e)}function i(e){ct(a,r,o,l,i,"throw",e)}l(void 0)}))}}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==it(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===it(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ft={props:{resource:{type:Object,required:!0},showTrigger:{type:Boolean,default:!0}},setup:function(){var e=(0,lt.qt)();return{localizationEnabled:(0,r.computed)((function(){var t,n;return!(null===(t=e.props.integrations)||void 0===t||null===(n=t.openai)||void 0===n||!n.lessonLocalizationEnabled)}))}},data:function(){return{showModal:!1,location:"",isGenerating:!1,localizedLesson:null,localizationId:null,isBookmarked:!1,isBookmarking:!1,exportingToGoogleDoc:!1,showExportMenu:!1,showExportMenuMobile:!1,showExportMenuBottom:!1,showAuthModal:!1,authModalReason:"save",feedbackSubmitted:!1,showFeedbackModal:!1,feedbackRating:null,feedbackComment:"",feedbackMayContact:!0,feedbackSubmitting:!1,modalError:"",requestError:"",pendingLocation:"",showBackgroundKnowledge:!1,locationPresets:["Malaysia","New Jersey","Oregon","Singapore"],generationMessageIndex:0,generationMessageTimer:null,generationMessages:["
2Scanning the local climate context...","Finding classroom connections for your location...","Adapting activities for local action...","Gathering educator background knowledge...","Putting the localized lesson together..."],pollTimer:null,pollElapsedMs:0,pollIntervalMs:2e3,pollMaxMs:1e5}},mounted:function(){window.addEventListener("open-lesson-localization",this.handleOpenLocalization),document.addEventListener("click",this.closeExportMenuOnClickOutside);var e=new URLSearchParams(window.location.search).get("localizationId");e&&this.loadLocalizationById(e)},beforeUnmount:function(){this.stopGenerationMessages(),this.stopPolling(),window.removeEventListener("open-lesson-localization",this.handleOpenLocalization),document.removeEventListener("click",this.closeExportMenuOnClickOutside)},computed:{isLoggedIn:function(){var e,t;return!(null===(e=(0,lt.qt)().props.auth)||void 0===e||null===(t=e.user)||void 0===t||!t.id)},registerUrl:function(){return route("register")+"?intended="+encodeURIComponent(window.location.pathname+window.location.search)},pendingLocationLabel:function(){return this.pendingLocation||this.location||"your selected location"},currentGenerationMessage:function(){return this.generationMessages[this.generationMessageIndex]||"Building a version of this lesson for ".concat(this.pendingLocationLabel,".")},hasBackgroundKnowledge:function(){var e,t,n,r,o,a;return!!(null!==(e=this.localizedLesson)&&void 0!==e&&null!==(t=e.teacher_notes)&&void 0!==t&&t.length||null!==(n=this.localizedLesson)&&void 0!==n&&null!==(r=n.background_knowledge)&&void 0!==r&&r.length||null!==(o=this.localizedLesson)&&void 0!==o&&null!==(a=o.web_sources)&&void 0!==a&&a.length)},approvedWebSources:function(){var e,t=this;return((null===(e=this.localizedLesson)||void 0===e?void 0:e.web_sources)||[]).filter((function(e){return t.isSubjectToClimateApprovedSource(e)}))},generalWebSources:function(){var e,t=this;return((null===(e=this.localizedLesson)||void 0===e?void 0:e.web_sources)||[]).filter((function(e){return!t.isSubjectToClimateApprovedSource(e)}))}},methods:{handleOpenLocalization:function(e){var t;(null===(t=e.detail)||void 0===t?void 0:t.resourceId)===this.resource.id&&this.openModal()},closeExportMenuOnClickOutside:function(e){this.showExportMenu&&this.$refs.exportMenuWrapper&&!this.$refs.exportMenuWrapper.contains(e.target)&&(this.showExportMenu=!1),this.showExportMenuMobile&&this.$refs.exportMenuWrapperMobile&&!this.$refs.exportMenuWrapperMobile.contains(e.target)&&(this.showExportMenuMobile=!1),this.showExportMenuBottom&&this.$refs.exportMenuWrapperBottom&&!this.$refs.exportMenuWrapperBottom.contains(e.target)&&(this.showExportMenuBottom=!1)},isClassroomResource:function(e){var t=e.source_url||e.organization_url||e.url,n=e.source_name||e.organization_name||e.title||"",r=e.description||e.how_to_use||e.summary||"";return this.isClassroomFriendlyUrl(t,n,r)},isSubjectToClimateApprovedSource:function(e){if(null!=e&&e.is_subject_to_climate_approved||null!=e&&e.is_stc_approved)return!0;if(null==e||!e.url)return!1;try{var t=new URL(e.url).hostname.toLowerCase().replace(/^www\./,"");return"subjecttoclimate.org"===t||t.endsWith(".subjecttoclimate.org")||t.includes("nca5.climate.us")||t.endsWith(".gov")||t.endsWith(".edu")}catch(e){return!1}},isClassroomFriendlyUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return!1;for(var r="".concat(e," ").concat(t," ").concat(n).toLowerCase(),o=0,a=["teacher","teachers","education","classroom","worksheet","worksheets","lesson-plan","lesson plan","print","printable","pdf","download","activity","activities","teaching-resources","resources","curriculum","k12","k-12","school","for-teachers","for-educators","teacher-resources"];o<a.length;o++){var l=a[o];if(r.includes(l))return!0}try{var i=(new URL(e).hostname||"").toLowerCase();if(i.endsWith(".edu")||i.includes("k12")||i.includes("schools")||r.includes("/education/"))return!0}catch(e){}return!1},openModal:function(){var e;this.modalError="",this.requestError="",this.showModal=!0,this.location=(null===(e=this.localizedLesson)||void 0===e?void 0:e.location)||this.location||"",this.trackLocalizationEvent("Lesson Localization Started")},trackLocalizationEvent:function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=mt({teachingMaterialId:null!==(t=null===(n=this.resource)||void 0===n?void 0:n.id)&&void 0!==t?t:null,localizationId:null!==(r=this.localizationId)&&void 0!==r?r:null,location:this.pendingLocation||this.location||null},o);if(Array.isArray(window.dataLayer)&&window.dataLayer.push(mt({event:e},a)),"function"==typeof window.FS)try{window.FS("trackEvent",{name:e,properties:a})}catch(e){}},closeModal:function(){this.showModal=!1,this.modalError=""},dismissLocalizedLesson:function(){this.localizedLesson=null,this.localizationId=null,this.isBookmarked=!1,this.feedbackSubmitted=!1,this.showBackgroun
2dKnowledge=!1},loadLocalizationById:function(e){var t=this;return ut(st().mark((function n(){var r,o;return st().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,at.Z.get(route("api.lesson-localizations.status",e));case 3:r=n.sent,(o=r.data).localizedLesson&&(t.localizedLesson=o.localizedLesson,t.localizationId=o.localizationId||e,t.isBookmarked=!!o.isBookmarked,t.feedbackSubmitted=!1,t.showBackgroundKnowledge=!1,t.$nextTick((function(){t.$el.scrollIntoView({behavior:"smooth",block:"start"})}))),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),console.error("[LessonLocalizationPanel] Failed to load saved localization.",n.t0);case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))()},closeAuthModal:function(){this.showAuthModal=!1},toggleBookmark:function(){var e=this;return ut(st().mark((function t(){var n,r;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.localizationId&&!e.isBookmarking){t.next=2;break}return t.abrupt("return");case 2:if(e.isLoggedIn){t.next=6;break}return e.authModalReason="save",e.showAuthModal=!0,t.abrupt("return");case 6:return e.isBookmarking=!0,n=!e.isBookmarked,t.prev=8,t.next=11,at.Z.put(route("api.lesson-localizations.bookmark",e.localizationId),{is_bookmarked:n});case 11:e.isBookmarked=n,n&&e.trackLocalizationEvent("Lesson Localization Saved"),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(8),401===(null===t.t0||void 0===t.t0||null===(r=t.t0.response)||void 0===r?void 0:r.status)?(e.authModalReason="save",e.showAuthModal=!0):console.error("[LessonLocalizationPanel] Failed to update bookmark.",t.t0);case 18:return t.prev=18,e.isBookmarking=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[8,15,18,21]])})))()},exportToGoogleDoc:function(){var e=this;return ut(st().mark((function t(){var n,r,o,a,l;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.localizationId&&!e.exportingToGoogleDoc){t.next=2;break}return t.abrupt("return");case 2:if(e.isLoggedIn){t.next=6;break}return e.authModalReason="save",e.showAuthModal=!0,t.abrupt("return");case 6:return e.exportingToGoogleDoc=!0,t.prev=7,t.next=10,at.Z.post(route("api.lesson-localizations.google-doc",e.localizationId));case 10:n=t.sent,r=n.data,window.open(r.url,"_blank"),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(7),401===(null===t.t0||void 0===t.t0||null===(o=t.t0.response)||void 0===o?void 0:o.status)?(e.authModalReason="save",e.showAuthModal=!0):409===(null===t.t0||void 0===t.t0||null===(a=t.t0.response)||void 0===a?void 0:a.status)?((l=new URL(window.location.href)).searchParams.set("localizationId",e.localizationId),window.location.href=route("google-docs.connect",{return_to:l.toString()})):console.error("[LessonLocalizationPanel] Failed to export to Google Docs.",t.t0);case 18:return t.prev=18,e.exportingToGoogleDoc=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[7,15,18,21]])})))()},openFeedbackModal:function(e){this.feedbackRating=e,this.feedbackComment="",this.feedbackMayContact=!0,this.showFeedbackModal=!0},closeFeedbackModal:function(){this.showFeedbackModal=!1,this.feedbackRating=null,this.feedbackComment="",this.feedbackMayContact=!0},submitFeedbackWithComment:function(){var e=this;return ut(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.submitFeedback(e.feedbackRating,e.feedbackComment,e.feedbackMayContact);case 2:e.closeFeedbackModal();case 3:case"end":return t.stop()}}),t)})))()},submitFeedback:function(e){var t=arguments,n=this;return ut(st().mark((function r(){var o,a;return st().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=t.length>1&&void 0!==t[1]?t[1]:null,a=!(t.length>2&&void 0!==t[2])||t[2],n.localizationId&&!n.feedbackSubmitted){r.next=4;break}return r.abrupt("return");case 4:return n.feedbackSubmitting=!0,r.prev=5,r.next=8,at.Z.post(route("api.lesson-localizations.feedback",n.localizationId),mt({rating:e,may_contact:a},o?{comment:o}:{}));case 8:n.feedbackSubmitted=!0,r.next=13;break;case 11:r.prev=11,r.t0=r.catch(5);case 13:return r.prev=13,n.feedbackSubmitting=!1,r.finish(13);case 16:case"end":return r.stop()}}),r,null,[[5,11,13,16]])})))()},startGenerationMessages:function(){var e=this;this.stopGenerationMessages(),this.generationMessageIndex=0,this.generationMessageTimer=window.setInterval((function(){e.generationMessageIndex=(e.generationMessageIndex+1)%e.generationMessages.length}),2200)},stopGenerationMessages:function(){this.generationMessageTimer&&(window.clearInterval(this.generationMessageTimer),this.generationMessageTimer=null)},stopPolling:function(){this.pollTimer&&(window.clearTimeout(this.pollTimer),this.pollTimer=null)},finishGenerating:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isGenerating=!1,this.stopGenerationMessages(),this.stopPolling(),t&&this.$nextTick((function(){e.$el.scrollIntoView({behavior:"smooth",block:"start"})}))},pollLocalizationStatus:function(e){var t=this;this.stopPolling(),this.pollElapsedMs=0;var n=function(){var r=ut(st().mark((function r(){var o,a;return st().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,at.Z.get(route("api.lesson-localizations.status",e));case 3:if(o=r.sent,"completed"!==(a=o.data).status&&"failed"!==a.status){r.next=14;break}return t.localizedLesson=a.localizedLesson||null,t.localizationId=a.localizationId||null,t.isBookmarked=!1,t.feedbackSubmitted=!1,t.showBackgroun
2dKnowledge=!1,"completed"===a.status&&t.trackLocalizationEvent("Lesson Localization Generated",{cached:!1}),t.finishGenerating(!0),r.abrupt("return");case 14:if("errored"!==a.status){r.next=18;break}return t.requestError=a.errorMessage||"Oops! Something went wrong generating this lesson.",t.finishGenerating(),r.abrupt("return");case 18:if(t.pollElapsedMs+=t.pollIntervalMs,!(t.pollElapsedMs>=t.pollMaxMs)){r.next=23;break}return t.requestError="This is taking longer than expected. Please check back in a bit.",t.finishGenerating(),r.abrupt("return");case 23:t.pollTimer=window.setTimeout(n,t.pollIntervalMs),r.next=31;break;case 26:r.prev=26,r.t0=r.catch(0),console.error("[LessonLocalizationPanel] Failed to poll localization status.",r.t0),t.requestError="Could not generate a localized lesson right now.",t.finishGenerating();case 31:case"end":return r.stop()}}),r,null,[[0,26]])})));return function(){return r.apply(this,arguments)}}();n()},generateLocalizedLesson:function(){var e=this;return ut(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.location.trim()){t.next=3;break}return e.modalError="Please enter a location first.",t.abrupt("return");case 3:return e.modalError="",t.next=6,e.submitLocalization(e.location.trim());case 6:case"end":return t.stop()}}),t)})))()},retryGeneration:function(){var e=this;return ut(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.pendingLocation&&!e.isGenerating){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.submitLocalization(e.pendingLocation);case 4:case"end":return t.stop()}}),t)})))()},submitLocalization:function(e){var t=this;return ut(st().mark((function n(){var r,o,a,l,i,s;return st().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isGenerating=!0,t.requestError="",t.pendingLocation=e,t.startGenerationMessages(),n.prev=4,n.next=7,at.Z.post(route("api.teaching-materials.localize",t.resource.id),{location:t.pendingLocation});case 7:if(r=n.sent,o=r.data,t.showModal=!1,"pending"!==o.status&&"processing"!==o.status){n.next=14;break}return t.$nextTick((function(){t.$el.scrollIntoView({behavior:"smooth",block:"start"})})),t.pollLocalizationStatus(o.localizationId),n.abrupt("return");case 14:t.localizedLesson=o.localizedLesson||null,t.localizationId=o.localizationId||null,t.isBookmarked=!1,t.feedbackSubmitted=!1,t.showBackgroundKnowledge=!1,"completed"===o.status&&t.trackLocalizationEvent("Lesson Localization Generated",{cached:!0}),t.finishGenerating(!0),n.next=27;break;case 23:n.prev=23,n.t0=n.catch(4),null!==n.t0&&void 0!==n.t0&&null!==(a=n.t0.response)&&void 0!==a&&null!==(l=a.data)&&void 0!==l&&l.requiresAuth?(t.showModal=!1,t.authModalReason="quota",t.showAuthModal=!0,t.trackLocalizationEvent("Lesson Localization Signup Prompt Shown")):(console.error("[LessonLocalizationPanel] Failed to localize lesson.",n.t0),t.requestError=(null===n.t0||void 0===n.t0||null===(i=n.t0.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.message)||"Could not generate a localized lesson right now."),t.finishGenerating();case 27:case"end":return n.stop()}}),n,null,[[4,23]])})))()}}};var ht=n(93379),gt=n.n(ht),vt=n(27527),yt={insert:"head",singleton:!1};gt()(vt.Z,yt);vt.Z.locals;const bt=(0,n(83744).Z)(ft,[["render",function(e,t,n,a,at,lt){var it,st,ct,ut,dt,mt,pt,ft,ht,gt,vt;return a.localizationEnabled?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)({"mt-4":n.showTrigger||at.isGenerating||at.requestError||at.localizedLesson})},[n.showTrigger&&!at.localizedLesson?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"ai-feature-button inline-flex items-center gap-2 rounded-full px-5 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 lt.openModal&&lt.openModal.apply(lt,arguments)})},o(t[37]||(t[37]=[(0,r.createElementVNode)("span",{class:"text-base leading-none"},"🌟",-1),(0,r.createTextVNode)(" Customize for your class ",-1)])))):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"body"},[at.showModal?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:t[6]||(t[6]=(0,r.withModifiers)((function(){return lt.closeModal&&lt.closeModal.apply(lt,arguments)}),["self"]))},[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",i,[t[39]||(t[39]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("p",{class:"text-sm font-semibold uppercase tracking-[0.14em] text-[#123D61]"},"Localize this lesson"),(0,r.createElementVNode)("h3",{class:"mt-1 text-2xl font-semibold text-neutral-900"},"Choose a location"),(0,r.createElementVNode)("p",{class:"mt-2 text-sm text-neutral-700"},"Type a country, state, city, or region, and AI will provide guidance to adapt to your location.")],-1)),(0,r.createElementVNode)("button",{type:"button",class:"rounded-full p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-neutral-800",onClick:t[1]||(t[1]=function(){return lt.closeModal&&lt.closeModal.apply(lt,arguments)})},o(t[38]||(t[38]=[(0,r.createElementVNode)("span",{class:"sr-only"},"Close",-1),(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:"h-6 w-6"},[(0,r.createElementVNode)("path",{d:"m291 776-67-67 157-157-157-157 67-67 157 157 157-157 67 67-157 157 157 157-67 67-157-157-157 157Z"})],-1)])))]),(0,r.createElementVNode)("div",s,[(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"lesson-localization-location","onUpdate:modelValue":t[2]||(t[2]=function(e){return at.location=e}),type:"text",class:"w-full rounded-xl border border-neutral-300 px-4 py-3 text-base text-neutral-900 outline-none transition focus:border-[#1A578A] focus:ring-2 focus:ring-[#5DA5E1]",placeholder:"Malaysia",onKeydown:t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)((function(){return lt.generateLocalizedLesson&&lt.generateLocalizedLesson.apply(lt,arguments)}),["prevent"]),["enter"]))},null,544),[[r.vModelText,at.location]]),(0,r.createElementVNode)("div",c,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.locationPresets,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e,type:"button",class:"rounded-full border border-neutral-300 px-3 py-1.5 text-sm text-neutral-700 transition hover:border-[#1A578A] hover:bg-[#DFEDF9] hover:text-[#051224]",onClick:function(t){return at.location=e}},(0,r.toDisplayString)(e),9,u)})),128))]),at.modalError?((0,r.openBlock)(),(0,r.createElementBlock)("p",d,(0,r.toDisplayString)(at.modalError),1)):(0,r.createCommentVNode)("",!0),at.isGenerating?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[t[41]||(t[41]=(0,r.createElementVNode)("div",{class:"h-1 w-full overflow-hidden bg-[#7EB7E7]"},[(0,r.createElementVNode)("div",{class:"lesson-localization-progress h-full w-1/2 roun
2ded-full bg-[#15466E]"})],-1)),(0,r.createElementVNode)("div",p,[t[40]||(t[40]=(0,r.createElementVNode)("span",{class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-white text-[#123D61] shadow-sm"},[(0,r.createElementVNode)("span",{class:"lesson-localization-pulse h-2.5 w-2.5 rounded-full bg-[#15466E]"})],-1)),(0,r.createElementVNode)("p",f,(0,r.toDisplayString)(lt.currentGenerationMessage),1)])])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("button",{type:"button",class:"rounded-full px-4 py-2 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100",onClick:t[4]||(t[4]=function(){return lt.closeModal&&lt.closeModal.apply(lt,arguments)})}," Cancel "),(0,r.createElementVNode)("button",{type:"button",class:"rounded-full bg-[#556FA4] px-5 py-2 text-sm font-semibold text-white transition hover:bg-[#7F93BA] disabled:cursor-not-allowed disabled:opacity-60",disabled:at.isGenerating,onClick:t[5]||(t[5]=function(){return lt.generateLocalizedLesson&&lt.generateLocalizedLesson.apply(lt,arguments)})},[at.isGenerating?((0,r.openBlock)(),(0,r.createElementBlock)("span",v,"Generating...")):((0,r.openBlock)(),(0,r.createElementBlock)("span",y,"Generate"))],8,g)])])])):(0,r.createCommentVNode)("",!0)])),((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"body"},[at.showFeedbackModal?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:t[12]||(t[12]=(0,r.withModifiers)((function(){return lt.closeFeedbackModal&&lt.closeFeedbackModal.apply(lt,arguments)}),["self"]))},[(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",null,[t[42]||(t[42]=(0,r.createElementVNode)("p",{class:"text-sm font-semibold uppercase tracking-[0.14em] text-[#123D61]"},"Share feedback",-1)),(0,r.createElementVNode)("h3",k,(0,r.toDisplayString)(1===at.feedbackRating?"What worked well?":"Share your thoughts"),1),t[43]||(t[43]=(0,r.createElementVNode)("p",{class:"mt-1 text-sm text-neutral-600"},"Your feedback helps us improve the quality of localized lessons.",-1))]),(0,r.createElementVNode)("button",{type:"button",class:"rounded-full p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-neutral-800",onClick:t[7]||(t[7]=function(){return lt.closeFeedbackModal&&lt.closeFeedbackModal.apply(lt,arguments)})},o(t[44]||(t[44]=[(0,r.createElementVNode)("span",{class:"sr-only"},"Close",-1),(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:"h-6 w-6"},[(0,r.createElementVNode)("path",{d:"m291 776-67-67 157-157-157-157 67-67 157 157 157-157 67 67-157 157 157 157-67 67-157-157-157 157Z"})],-1)])))]),(0,r.withDirectives)((0,r.createElementVNode)("textarea",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return at.feedbackComment=e}),class:"mt-5 w-full rounded-xl border border-neutral-300 px-4 py-3 text-sm text-neutral-900 outline-none transition focus:border-[#1A578A] focus:ring-2 focus:ring-[#5DA5E1]",rows:"4",placeholder:1===at.feedbackRating?"E.g. The local examples were spot-on, the discussion questions sparked great conversation, I loved the action ideas...":"E.g. Any suggestions, ideas, or things you'd like to see changed..."},null,8,w),[[r.vModelText,at.feedbackComment]]),(0,r.createElementVNode)("label",E,[(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[9]||(t[9]=function(e){return at.feedbackMayContact=e}),type:"checkbox",class:"mt-0.5 h-4 w-4 shrink-0 rounded border-neutral-300 text-[#123D61] focus:ring-[#1A578A]"},null,512),[[r.vModelCheckbox,at.feedbackMayContact]]),t[45]||(t[45]=(0,r.createElementVNode)("span",null,"SubjectToClimate may contact me about this feedback",-1))]),(0,r.createElementVNode)("div",B,[(0,r.createElementVNode)("button",{type:"button",class:"rounded-full px-4 py-2 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100",onClick:t[10]||(t[10]=function(){return lt.closeFeedbackModal&&lt.closeFeedbackModal.apply(lt,arguments)})}," Cancel "),(0,r.createElementVNode)("button",{type:"button",class:"rounded-full bg-[#556FA4] px-5 py-2 text-sm font-semibold text-white transition hover:bg-[#7F93BA] disabled:cursor-not-allowed disabled:opacity-60",disabled:at.feedbackSubmitting,onClick:t[11]||(t[11]=function(){return lt.submitFeedbackWithComment&&lt.submitFeedbackWithComment.apply(lt,arguments)})},(0,r.toDisplayString)(at.feedbackSubmitting?"Sending...":"Send feedback"),9,N)])])])):(0,r.createCommentVNode)("",!0)])),((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"body"},[at.showAuthModal?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:t[14]||(t[14]=(0,r.withModifiers)((function(){return lt.closeAuthModal&&lt.closeAuthModal.apply(lt,arguments)}),["self"]))},[(0,r.createElementVNode)("div",V,[(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("div",null,[t[46]||(t[46]=(0,r.createElementVNode)("p",{class:"text-sm font-semibold uppercase tracking-[0.14em] text-[#123D61]"},"Free account required",-1)),(0,r.createElementVNode)("h3",S,(0,r.toDisplayString)("quota"===at.authModalReason?"You've used your free customization":"Save this customized lesson"),1),(0,r.createElementVNode)("p",L,(0,r.toDisplayString)("quota"===at.authModalReason?"Sign up for a free SubjectToClimate account to keep customizing lessons for your class, and save every result to come back to later.":"Sign up for a free SubjectToClimate account to save this localized lesson to your library and come back to it anytime, without regenerating it."),1)]),(0,r.createElementVNode)("button",{type:"button",class:"shrink-0 rounded-full p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-neutral-800",onClick:t[13]||(t[13]=function(){return lt.closeAuthModal&&lt.closeAuthModal.apply(lt,arguments)})},o(t[47]||(t[47]=[(0,r.createElementVNode)("span",{class:"sr-only"},"Close",-1),(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:"h-6 w-6"},[(0,r.createElementVNode)("path",{d:"m291 776-67-67 157-157-157-157 67-67 157 157 157-157 67 67-157 157 157 157-67 67-157-157-157 157Z"})],-1)])))]),t[48]||(t[48]=(0,r.createElementVNode)("ul",{class:"mt-5 space-y-3"},[(0,r.createElementVNode)("li",{class:"flex items-start gap-3 text-sm text-neutral-700"},[(0,r.createElementVNode)("span",{class:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#95D2F2] text-[#262626] text-xs"},"✓"),(0,r.createElementVNode)("span",null,[(0,r.createElementVNode)("strong",{class:"font-semibold text-neutral-900"},"Save your customized lessons"),(0,r.createTextVNode)(" — bookmark AI-localized results like this one and revisit them instantly, with no regeneration and no waiting.")])]),(0,r.createElementVNode)("li",{class:"flex items-start gap-3 text-sm text-neutral-700"},[(0,r.createElementVNode)("span",{class:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#95D2F2] text-[#262626] text-xs"},"✓"),(0,r.createElementVNode)("span",null,[(0,r.createElementVNode)("strong",{class:"font-semibold text-neutral-900"},"Localize any lesson"),(0,r.createTextVNode)(" — enter your city, state, or country and get local examples, discussion questions, and action ideas generated by AI.")])]),(0,r.createElementVNode)("li",{class:"flex items-start gap-3 text-sm text-neutral-700"},[(0,r.createElementVNode)("span",{class:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#95D2F2] text-[#262626] text-xs"},"✓"),(0,r.createElementVNode)("span",null,[(0,r.createElementVNode)("strong",{class:"font-semibold text-neutral-900"},"Bookmark resources"),(0,r.createTextVNode)(" — save lesson plans, units, and activities to revisit later.")])]),(0,r.createElementVNode)("li",{class:"flex items-start gap-3 text-sm text-neutral-700"},[(0,r.createElementVNode)("span",{class:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#95D2F2] text-[#262626] text-xs"},"✓"),(0,r.createElementVNode)("span",null,[(0,r.createElementVNode)("strong",{class:"font-semibold text-neutral-900"},"Join a community"),(0,r.createTextVNode)(" — connect with climate educators across the globe.")])]),(0,r.createElementVNode)("li",{class:"flex items-start gap-3 text-sm text-neutral-700"},[(0,r.createElementVNode)("span",{class:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#95D2F2] text-[#262626] text-xs"},"✓"),(0,r.createElementVNode)("span",null,[(0,r.createElementVNode)("strong",{class:"font-semibold text-neutral-900"},"It's completely free"),(0,r.createTextVNode)(" — no subscription or credit card required.")])])],-1)),(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("a",{href:lt.registerUrl,class:"block w-full rounded-full bg-[#556FA4] px-5 py-3 text-center text-sm font-semibold text-white transition hover:bg-[#7F93BA]"}," Create a free account ",8,A),(0,r.createElementVNode)("a",{href:e.route("login"),class:"block w-full rounded-full border border-neutral-300 px-5 py-3 text-center text-sm font-medium text-neutral-700 transition hover:bg-neutral-50"}," Sign in ",8,M)])])])):(0,r.createCommentVNode)("",!0)])),at.isGenerating?((0,r.openBlock)(),(0,r.createElementBlock)("div",D,[t[49]||(t[49]=(0,r.createElementVNode)("div",{class:"flex items-center gap-2"},[(0,r.createElementVNode)("span",{class:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-white shadow-sm"},[(0,r.createElementVNode)("span",{class:"lesson-localization-pulse h-2 w-2 rounded-full bg-[#15466E]"})]),(0,r.createElementVNode)("p",{class:"text-sm font-semibold uppercase tracking-[0.14em] text-[#123D61]"},"Generating localized lesson")],-1)),(0,r.createElementVNode)("p",I,(0,r.toDisplayString)(lt.currentGenerationMessage),1)])):(0,r.createCommentVNode)("",!0),at.requestError?((0,r.openBlock)(),(0,r.createElementBlock)("div",T,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.requestError),1),at.pendingLocation?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,t
2ype:"button",class:"inline-flex h-9 shrink-0 items-center rounded-full border border-red-300 bg-white px-4 text-sm font-medium text-red-700 transition hover:bg-red-100",onClick:t[15]||(t[15]=function(){return lt.retryGeneration&&lt.retryGeneration.apply(lt,arguments)})}," Try Again ")):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),at.localizedLesson?((0,r.openBlock)(),(0,r.createElementBlock)("div",F,[(0,r.createElementVNode)("div",j,[(0,r.createElementVNode)("div",z,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",O,[t[50]||(t[50]=(0,r.createElementVNode)("span",{class:"rounded-full bg-[#D4DBE8] px-3 py-1 text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]"},"Localized lesson plan",-1)),(0,r.createElementVNode)("span",U,(0,r.toDisplayString)(at.localizedLesson.location),1)]),(0,r.createElementVNode)("h2",R,(0,r.toDisplayString)(at.localizedLesson.localized_title),1)]),(0,r.createElementVNode)("div",G,[at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:(0,r.normalizeClass)(["inline-flex h-10 shrink-0 items-center gap-1.5 rounded-full border px-4 text-sm font-medium transition disabled:cursor-not-allowed disabled:opacity-60",at.isBookmarked?"border-[#FF8B8B] text-[#FF8B8B]":"border-neutral-300 text-neutral-700 hover:border-neutral-400 hover:bg-neutral-100"]),disabled:at.isBookmarking,"aria-label":at.isBookmarked?"Saved to Library":"Save to Library",title:at.isBookmarked?"Saved to Library":"Save to Library",onClick:t[16]||(t[16]=function(){return lt.toggleBookmark&&lt.toggleBookmark.apply(lt,arguments)})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:at.isBookmarked?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8",class:"shrink-0"},o(t[51]||(t[51]=[(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,H)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.isBookmarked?"Saved":"Save"),1)],10,P)):(0,r.createCommentVNode)("",!0),at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("div",Z,[(0,r.createElementVNode)("button",{type:"button",class:"inline-flex h-10 shrink-0 items-center gap-1.5 rounded-full border border-neutral-300 px-4 text-sm font-medium text-neutral-700 transition hover:border-neutral-400 hover:bg-neutral-100 disabled:cursor-not-allowed disabled:opacity-60",disabled:at.exportingToGoogleDoc,"aria-label":"Export",title:"Export",onClick:t[17]||(t[17]=function(e){return at.showExportMenuMobile=!at.showExportMenuMobile})},o(t[52]||(t[52]=[(0,r.createElementVNode)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8",class:"shrink-0"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v12m0 0l-4-4m4 4l4-4M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2"})],-1),(0,r.createElementVNode)("span",null,"Export",-1)])),8,q),at.showExportMenuMobile?((0,r.openBlock)(),(0,r.createElementBlock)("div",K,[(0,r.createElementVNode)("a",{href:e.route("api.lesson-localizations.docx",at.localizationId),class:"flex items-center gap-2 px-3 py-2 text-sm text-neutral-700 hover:bg-neutral-50",onClick:t[18]||(t[18]=function(e){at.showExportMenuMobile=!1,lt.trackLocalizationEvent("Lesson Localization Downloaded")})},o(t[53]||(t[53]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"h-4 w-4 shrink-0","aria-hidden":"true"},[(0,r.createElementVNode)("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3",fill:"#2B579A"}),(0,r.createElementVNode)("text",{x:"10",y:"14.5","text-anchor":"middle","font-size":"11","font-weight":"700",fill:"#FFFFFF","font-family":"Arial, sans-serif"},"W")],-1),(0,r.createElementVNode)("span",null,"Word doc",-1)])),8,Y),(0,r.createElementVNode)("button",{type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm text-neutral-700 hover:bg-neutral-50 disabled:cursor-not-allowed disabled:opacity-60",disabled:at.exportingToGoogleDoc,onClick:t[19]||(t[19]=function(e){at.showExportMenuMobile=!1,lt.trackLocalizationEvent("Lesson Localization Exported To Google Docs"),lt.exportToGoogleDoc()})},[t[54]||(t[54]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"h-4 w-4 shrink-0","aria-hidden":"true"},[(0,r.createElementVNode)("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3",fill:"#4285F4"}),(0,r.createElementVNode)("text",{x:"10",y:"14.5","text-anchor":"middle","font-size":"10","font-weight":"700",fill:"#FFFFFF","font-family":"Arial, sans-serif"},"G")],-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.exportingToGoogleDoc?"Exporting...":"Google Doc"),1)],8,W)])):(0,r.createCommentVNode)("",!0)],512)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{type:"button",class:"h-10 rounded-full border border-neutral-300 px-4 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100",onClick:t[20]||(t[20]=function(){return lt.openModal&&lt.openModal.apply(lt,arguments)})}," Try another location "),(0,r.createElementVNode)("button",{type:"button",class:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-neutral-300 text-neutral-500 transition hover:bg-neutral-100 hover:text-neutral-800","aria-label":"Hide localized lesson",onClick:t[21]||(t[21]=function(){return lt.dismissLocalizedLesson&&lt.dismissLocalizedLesson.apply(lt,arguments)})},o(t[55]||(t[55]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:"h-5 w-5"},[(0,r.createElementVNode)("path",{d:"m291 776-67-67 157-157-157-157 67-67 157 157 157-157 67 67-157 157 157 157-67 67-157-157-157 157Z"})],-1)])))]),(0,r.createElementVNode)("div",X,[(0,r.createElementVNode)("div",$,[(0,r.createElementVNode)("button",{type:"button",class:"h-10 rounded-full border border-neutral-300 px-4 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100",onClick:t[22]||(t[22]=function(){return lt.openModal&&lt.openModal.apply(lt,arguments)})}," Try another location "),(0,r.createElementVNode)("button",{type:"button",class:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-neutral-300 text-neutral-500 transition hover:bg-neutral-100 hover:text-neutral-800","aria-label":"Hide localized lesson",onClick:t[23]||(t[23]=function(){return lt.dismissLocalizedLesson&&lt.dismissLocalizedLesson.apply(lt,arguments)})}
2,o(t[56]||(t[56]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:"h-5 w-5"},[(0,r.createElementVNode)("path",{d:"m291 776-67-67 157-157-157-157 67-67 157 157 157-157 67 67-157 157 157 157-67 67-157-157-157 157Z"})],-1)])))]),(0,r.createElementVNode)("div",Q,[at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:(0,r.normalizeClass)(["inline-flex h-10 shrink-0 items-center gap-1.5 rounded-full border px-4 text-sm font-medium transition disabled:cursor-not-allowed disabled:opacity-60",at.isBookmarked?"border-[#FF8B8B] text-[#FF8B8B]":"border-neutral-300 text-neutral-700 hover:border-neutral-400 hover:bg-neutral-100"]),disabled:at.isBookmarking,"aria-label":at.isBookmarked?"Saved to Library":"Save to Library",title:at.isBookmarked?"Saved to Library":"Save to Library",onClick:t[24]||(t[24]=function(){return lt.toggleBookmark&&lt.toggleBookmark.apply(lt,arguments)})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:at.isBookmarked?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8",class:"shrink-0"},o(t[57]||(t[57]=[(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,ee)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.isBookmarked?"Saved":"Save"),1)],10,J)):(0,r.createCommentVNode)("",!0),at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("div",te,[(0,r.createElementVNode)("button",{type:"button",class:"inline-flex h-10 shrink-0 items-center gap-1.5 rounded-full border border-neutral-300 px-4 text-sm font-medium text-neutral-700 transition hover:border-neutral-400 hover:bg-neutral-100 disabled:cursor-not-allowed disabled:opacity-60",disabled:at.exportingToGoogleDoc,"aria-label":"Export",title:"Export",onClick:t[25]||(t[25]=function(e){return at.showExportMenu=!at.showExportMenu})},o(t[58]||(t[58]=[(0,r.createElementVNode)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8",class:"shrink-0"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v12m0 0l-4-4m4 4l4-4M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2"})],-1),(0,r.createElementVNode)("span",null,"Export",-1)])),8,ne),at.showExportMenu?((0,r.openBlock)(),(0,r.createElementBlock)("div",re,[(0,r.createElementVNode)("a",{href:e.route("api.lesson-localizations.docx",at.localizationId),class:"flex items-center gap-2 px-3 py-2 text-sm text-neutral-700 hover:bg-neutral-50",onClick:t[26]||(t[26]=function(e){at.showExportMenu=!1,lt.trackLocalizationEvent("Lesson Localization Downloaded")})},o(t[59]||(t[59]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"h-4 w-4 shrink-0","aria-hidden":"true"},[(0,r.createElementVNode)("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3",fill:"#2B579A"}),(0,r.createElementVNode)("text",{x:"10",y:"14.5","text-anchor":"middle","font-size":"11","font-weight":"700",fill:"#FFFFFF","font-family":"Arial, sans-serif"},"W")],-1),(0,r.createElementVNode)("span",null,"Word doc",-1)])),8,oe),(0,r.createElementVNode)("button",{type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm text-neutral-700 hover:bg-neutral-50 disabled:cursor-not-allowed disabled:opacity-60",disabled:at.exportingToGoogleDoc,onClick:t[27]||
2(t[27]=function(e){at.showExportMenu=!1,lt.trackLocalizationEvent("Lesson Localization Exported To Google Docs"),lt.exportToGoogleDoc()})},[t[60]||(t[60]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"h-4 w-4 shrink-0","aria-hidden":"true"},[(0,r.createElementVNode)("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3",fill:"#4285F4"}),(0,r.createElementVNode)("text",{x:"10",y:"14.5","text-anchor":"middle","font-size":"10","font-weight":"700",fill:"#FFFFFF","font-family":"Arial, sans-serif"},"G")],-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.exportingToGoogleDoc?"Exporting...":"Google Doc"),1)],8,ae)])):(0,r.createCommentVNode)("",!0)],512)):(0,r.createCommentVNode)("",!0)])])]),at.localizedLesson.opening_synopsis?((0,r.openBlock)(),(0,r.createElementBlock)("div",le,[t[61]||(t[61]=(0,r.createElementVNode)("p",{class:"text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]"},"At a glance",-1)),(0,r.createElementVNode)("p",ie,(0,r.toDisplayString)(at.localizedLesson.opening_synopsis),1)])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["grid gap-px border-y border-neutral-200 bg-neutral-200",{"md:grid-cols-2":(null===(it=at.localizedLesson.local_context)||void 0===it?void 0:it.length)&&(null===(st=at.localizedLesson.learning_objectives)||void 0===st?void 0:st.length)}])},[null!==(ct=at.localizedLesson.local_context)&&void 0!==ct&&ct.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",se,[t[63]||(t[63]=(0,r.createElementVNode)("p",{class:"text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]"},"Local lens",-1)),t[64]||(t[64]=(0,r.createElementVNode)("h3",{class:"mt-1 text-lg font-semibold text-neutral-900"},"Context to foreground",-1)),(0,r.createElementVNode)("ul",ce,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.local_context,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"flex gap-3 text-sm leading-6 text-neutral-700"},[t[62]||(t[62]=(0,r.createElementVNode)("span",{class:"mt-2 h-2 w-2 shrink-0 rounded-full bg-[#556FA4]"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])):(0,r.createCommentVNode)("",!0),null!==(ut=at.localizedLesson.learning_objectives)&&void 0!==ut&&ut.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",ue,[t[65]||(t[65]=(0,r.createElementVNode)("p",{class:"text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]"},"Goals",-1)),t[66]||(t[66]=(0,r.createElementVNode)("h3",{class:"mt-1 text-lg font-semibold text-neutral-900"},"Learning objectives",-1)),(0,r.createElementVNode)("ol",de,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.learning_objectives,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"flex gap-3 text-sm leading-6 text-neutral-700"},[(0,r.createElementVNode)("span",me,(0,r.toDisplayString)(t+1),1),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("div",pe,[null!==(dt=at.localizedLesson.inquire_questions)&&void 0!==dt&&dt.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",fe,[t[67]||(t[67]=(0,r.createStaticVNode)('<div class="border-b border-neutral-200 px-4 py-4" data-v-a2b8e4da><div class="flex items-center gap-3" data-v-a2b8e4da><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[#556FA4] text-sm font-semibold text-white" data-v-a2b8e4da>1</span><div data-v-a2b8e4da><p class="text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]" data-v-a2b8e4da>Inquire</p><h3 class="text-lg font-semibold text-neutral-900" data-v-a2b8e4da>Start with discussion</h3></div></div><p class="mt-2 text-sm leading-6 text-neutral-600" data-v-a2b8e4da>Questions that set the stage and connect the current lesson to local context.</p></div>',1)),(0,r.createElementVNode)("ol",he,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.inquire_questions,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"flex gap-3 px-4 py-3 text-sm leading-6 text-neutral-700"},[(0,r.createElementVNode)("span",ge,(0,r.toDisplayString)(t+1)+".",1),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])):(0,r.createCommentVNode)("",!0),null!==(mt=at.localizedLesson.investigate_suggestions)&&void 0!==mt&&mt.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",ve,[t[69]||(t[69]=(0,r.createStaticVNode)('<div class="border-b border-neutral-200 px-4 py-4" data-v-a2b8e4da><div class="flex items-center gap-3" data-v-a2b8e4da><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[#556FA4] text-sm font-semibold text-white" data-v-a2b8e4da>2</span><div data-v-a2b8e4da><p class="text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]" data-v-a2b8e4da>Investigate</p><h3 class="text-lg font-semibold text-neutral-900" data-v-a2b8e4da>Explore locally</h3></div></div><p class="mt-2 text-sm leading-6 text-neutral-600" data-v-a2b8e4da>New activities that help students examine the topic through local evidence.</p></div>',1)),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["grid gap-px bg-neutral-200",{"sm:grid-cols-2":at.localizedLesson.investigate_suggestions.length>1}])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.investigate_suggestions,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:"".concat(e.title,"-").concat(e.description),class:"bg-white px-4 py-4"},[(0,r.createElementVNode)("h4",ye,(0,r.toDisplayString)(e.title),
21),(0,r.createElementVNode)("p",be,(0,r.toDisplayString)(e.description),1),e.source_url&&lt.isClassroomResource(e)?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.source_url,target:"_blank",rel:"noopener noreferrer",class:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-[#556FA4] underline"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.source_name||"View source"),1),e.is_stc_approved?((0,r.openBlock)(),(0,r.createElementBlock)("span",ke,o(t[68]||(t[68]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-3 w-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M16.704 5.29a1 1 0 0 1 .006 1.414l-7.25 7.32a1 1 0 0 1-1.42.002L3.29 9.276a1 1 0 1 1 1.414-1.414l4.04 4.04 6.546-6.606a1 1 0 0 1 1.414-.006Z","clip-rule":"evenodd"})],-1)])))):(0,r.createCommentVNode)("",!0)],8,xe)):(0,r.createCommentVNode)("",!0)])})),128))],2)])):(0,r.createCommentVNode)("",!0),null!==(pt=at.localizedLesson.inspire_actions)&&void 0!==pt&&pt.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",we,[t[71]||(t[71]=(0,r.createStaticVNode)('<div class="border-b border-neutral-200 px-4 py-4" data-v-a2b8e4da><div class="flex items-center gap-3" data-v-a2b8e4da><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[#556FA4] text-sm font-semibold text-white" data-v-a2b8e4da>3</span><div data-v-a2b8e4da><p class="text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]" data-v-a2b8e4da>Inspire</p><h3 class="text-lg font-semibold text-neutral-900" data-v-a2b8e4da>Move toward action</h3></div></div><p class="mt-2 text-sm leading-6 text-neutral-600" data-v-a2b8e4da>Local action steps and organizations that help students apply what they learn.</p></div>',1)),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["grid gap-px bg-neutral-200",{"sm:grid-cols-2":at.localizedLesson.inspire_actions.length>1}])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.inspire_actions,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:"".concat(e.title,"-").concat(e.description),class:"bg-white px-4 py-4"},[(0,r.createElementVNode)("h4",Ee,(0,r.toDisplayString)(e.title),1),(0,r.createElementVNode)("p",Be,(0,r.toDisplayString)(e.description),1),e.organization_url&&lt.isClassroomResource(e)?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.organization_url,target:"_blank",rel:"noopener noreferrer",class:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-[#556FA4] underline"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.organization_name||"View organization"),1),e.is_stc_approved?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ve,o(t[70]||(t[70]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-3 w-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M16.704 5.29a1 1 0 0 1 .006 1.414l-7.25 7.32a1 1 0 0 1-1.42.002L3.29 9.276a1 1 0 1 1 1.414-1.414l4.04 4.04 6.546-6.606a1 1 0 0 1 1.414-.006Z","clip-rule":"evenodd"})],-1)])))):(0,r.createCommentVNode)("",!0)],8,Ne)):(0,r.createCommentVNode)("",!0)])})),128))],2)])):(0,r.createCommentVNode)("",!0),lt.hasBackgroundKnowledge?((0,r.openBlock)(),(0,r.createElementBlock)("section",Ce,[(0,r.createElementVNode)("button",{type:"button",class:"flex w-full items-center justify-between gap-4 px-4 py-4 text-left","aria-expanded":at.showBackgroundKnowledge?"true":"false",onClick:t[28]||(t[28]=function(e){return at.showBackgroundKnowledge=!at.showBackgroundKnowledge})},[t[73]||(t[73]=(0,r.createElementVNode)("span",null,[(0,r.createElementVNode)("span",{class:"block text-xs font-semibold uppercase tracking-[0.14em] text-[#556FA4]"},"Reference"),(0,r.createElementVNode)("span",{class:"mt-1 block text-lg font-semibold text-neutral-900"},"Sources and background knowledge")],-1)),((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:(0,r.normalizeClass)(["h-5 w-5 shrink-0 text-neutral-600 transition",{"rotate-180":at.showBackgroun
2dKnowledge}])},o(t[72]||(t[72]=[(0,r.createElementVNode)("path",{d:"M480 711 240 471l56-56 184 184 184-184 56 56-240 240Z"},null,-1)])),2))],8,Se),at.showBackgroundKnowledge?((0,r.openBlock)(),(0,r.createElementBlock)("div",Le,[null!==(ft=at.localizedLesson.teacher_notes)&&void 0!==ft&&ft.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",_e,[t[75]||(t[75]=(0,r.createElementVNode)("h3",{class:"text-base font-semibold text-neutral-900"},"Teacher notes",-1)),(0,r.createElementVNode)("ul",Ae,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.teacher_notes,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"flex gap-2"},[t[74]||(t[74]=(0,r.createElementVNode)("span",{class:"mt-[9px] h-1.5 w-1.5 shrink-0 rounded-full bg-[#556FA4]"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])):(0,r.createCommentVNode)("",!0),null!==(ht=at.localizedLesson.background_knowledge)&&void 0!==ht&&ht.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",Me,[t[77]||(t[77]=(0,r.createElementVNode)("h3",{class:"text-base font-semibold text-neutral-900"},"Background knowledge for educators",-1)),(0,r.createElementVNode)("div",De,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.background_knowledge,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:"".concat(e.title,"-").concat(e.source_url),class:"py-3 first:pt-0 last:pb-0"},[(0,r.createElementVNode)("h4",Ie,(0,r.toDisplayString)(e.title),1),(0,r.createElementVNode)("p",Te,(0,r.toDisplayString)(e.how_to_use),1),e.source_url?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.source_url,target:"_blank",rel:"noopener noreferrer",class:"mt-2 inline-flex items-center gap-1.5 text-sm font-semibold text-[#556FA4] underline"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.source_name||"View source"),1),e.is_stc_approved?((0,r.openBlock)(),(0,r.createElementBlock)("span",je,o(t[76]||(t[76]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-3 w-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M16.704 5.29a1 1 0 0 1 .006 1.414l-7.25 7.32a1 1 0 0 1-1.42.002L3.29 9.276a1 1 0 1 1 1.414-1.414l4.04 4.04 6.546-6.606a1 1 0 0 1 1.414-.006Z","clip-rule":"evenodd"})],-1)])))):(0,r.createCommentVNode)("",!0)],8,Fe)):(0,r.createCommentVNode)("",!0)])})),128))])])):(0,r.createCommentVNode)("",!0),null!==(gt=at.localizedLesson.web_sources)&&void 0!==gt&&gt.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",ze,[t[82]||(t[82]=(0,r.createElementVNode)("h3",{class:"text-base font-semibold text-neutral-900"},"Sources used",-1)),lt.approvedWebSources.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",Oe,[t[80]||(t[80]=(0,r.createElementVNode)("h4",{class:"text-sm font-semibold text-neutral-800"},"Subject to Climate Approved Sources",-1)),(0,r.createElementVNode)("div",Ue,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(lt.approvedWebSources,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{key:e.url,href:e.url,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 rounded-full border border-[#95D2F2] bg-[#CAE9F9] px-3 py-1.5 text-sm text-[#262626] transition hover:border-[#95D2F2] hover:bg-[#95D2F2]"},[t[78]||(t[78]=(0,r.createElementVNode)("span",{class:"inline-flex h-4 w-4 items-center justify-center rounded-full bg-[#A4EBA2] text-[#262626]"},[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-3 w-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M16.704 5.29a1 1 0 0 1 .006 1.414l-7.25 7.32a1 1 0 0 1-1.42.002L3.29 9.276a1 1 0 1 1 1.414-1.414l4.04 4.04 6.546-6.606a1 1 0 0 1 1.414-.006Z","clip-rule":"evenodd"})])],-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.title||e.url),1),t[79]||(t[79]=(0,r.createElementVNode)("span",{class:"sr-only"},"Subject to Climate approved source",-1))],8,Re)})),128))])])):(0,r.createCommentVNode)("",!0),lt.generalWebSources.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ge,[t[81]||(t[81]=(0,r.createElementVNode)("h4",{class:"text-sm font-semibold text-neutral-800"},"General Sources from the Web",-1)),(0,r.createElementVNode)("div",Pe,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(lt.generalWebSources,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{key:e.url,href:e.url,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 rounded-full border border-neutral-300 px-3 py-1.5 text-sm text-neutral-700 transition hover:border-[#556FA4] hover:bg-[#D4DBE8] hover:text-[#262626]"},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.title||e.url),1)],8,He)})),128))])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),null!==(vt=at.localizedLesson.cautions)&&void 0!==vt&&vt.length?((0,r.openBlock)(),(0,r.createElementBlock)("section",Ze,[t[84]||(t[84]=(0,r.createElementVNode)("p",{class:"text-xs font-semibold uppercase tracking-[0.14em] text-[#262626]"},"Review before teaching",-1)),(0,r.createElementVNode)("ul",qe,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(at.localizedLesson.cautions,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e,class:"flex gap-2"},[t[83]||(t[83]=(0,r.createElementVNode)("span",{class:"mt-[9px] h-1.5 w-1.5 shrink-0 rounded-full bg-[#FFCD71]"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e),1)])})),128))])])):(0,r.createCommentVNode)("",!0)]),at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ke,[(0,r.createElementVNode)("div",Ye,[at.feedbackSubmitted?((0,r.openBlock)(),(0,r.createElementBlock)("p",Xe,"Thanks for your feedback — it helps us improve.")):((0,r.openBlock)(),(0,r.createElementBlock)("div",We,[t[87]||(t[87]=(0,r.createElementVNode)("span",{class:"text-sm text-neutral-600"},"Was this localization helpful?",-1)),(0,r.createElementVNode)("button",{type:"button",class:"inline-flex items-center gap-1.5 rounded-full border border-neutral-300 px-3 py-1.5 text-sm text-neutral-700 transition hover:border-green-400 hover:bg-green-50 hover:text-green-800",onClick:t[29]||(t[29]=function(e){return lt.openFeedbackModal(1)})},o(t[85]||(t[85]=[(0,r.createElementVNode)("span",null,"👍",-1),(0,r.createTextVNode)(),(0,r.createElementVNode)("span",null,"Yes",-1)]))),(0,r.createElementVNode)("button",{type:"button",class:"inline-flex items-center gap-1.5 rounded-full border border-neutral-300 px-3 py-1.5 text-sm text-neutral-700 transition hover:border-[#1A578A] hover:bg-[#DFEDF9] hover:text-[#051224]",onClick:t[30]||(t[30]=function(e){return lt.openFeedbackModal(null)})},o(t[86]||(t[86]=[(0,r.createElementVNode)("span",null,"✏️",-1),(0,r.createTextVNode)(),(0,r.createElementVNode)("span",null,"Share feedback",-1)])))])),(0,r.createElementVNode)("div",$e,[at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,t
2ype:"button",class:(0,r.normalizeClass)(["inline-flex h-10 shrink-0 items-center gap-1.5 rounded-full border px-4 text-sm font-medium transition disabled:cursor-not-allowed disabled:opacity-60",at.isBookmarked?"border-[#FF8B8B] text-[#FF8B8B]":"border-neutral-300 text-neutral-700 hover:border-neutral-400 hover:bg-neutral-100"]),disabled:at.isBookmarking,"aria-label":at.isBookmarked?"Saved to Library":"Save to Library",title:at.isBookmarked?"Saved to Library":"Save to Library",onClick:t[31]||(t[31]=function(){return lt.toggleBookmark&&lt.toggleBookmark.apply(lt,arguments)})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:at.isBookmarked?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8",class:"shrink-0"},o(t[88]||(t[88]=[(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,Je)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.isBookmarked?"Saved":"Save"),1)],10,Qe)):(0,r.createCommentVNode)("",!0),at.localizationId?((0,r.openBlock)(),(0,r.createElementBlock)("div",et,[(0,r.createElementVNode)("button",{type:"button",class:"inline-flex h-10 shrink-0 items-center gap-1.5 rounded-full border border-neutral-300 px-4 text-sm font-medium text-neutral-700 transition hover:border-neutral-400 hover:bg-neutral-100 disabled:cursor-not-allowed disabled:opacity-60",disabled:at.exportingToGoogleDoc,"aria-label":"Export",title:"Export",onClick:t[32]||(t[32]=function(e){return at.showExportMenuBottom=!at.showExportMenuBottom})},o(t[89]||(t[89]=[(0,r.createElementVNode)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8",class:"shrink-0"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v12m0 0l-4-4m4 4l4-4M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2"})],-1),(0,r.createElementVNode)("span",null,"Export",-1)])),8,tt),at.showExportMenuBottom?((0,r.openBlock)(),(0,r.createElementBlock)("div",nt,[(0,r.createElementVNode)("a",{href:e.route("api.lesson-localizations.docx",at.localizationId),class:"flex items-center gap-2 px-3 py-2 text-sm text-neutral-700 hover:bg-neutral-50",onClick:t[33]||(t[33]=function(e){at.showExportMenuBottom=!1,lt.trackLocalizationEvent("Lesson Localization Downloaded")})},o(t[90]||(t[90]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"h-4 w-4 shrink-0","aria-hidden":"true"},[(0,r.createElementVNode)("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3",fill:"#2B579A"}),(0,r.createElementVNode)("text",{x:"10",y:"14.5","text-anchor":"middle","font-size":"11","font-weight":"700",fill:"#FFFFFF","font-family":"Arial, sans-serif"},"W")],-1),(0,r.createElementVNode)("span",null,"Word doc",-1)])),8,rt),(0,r.createElementVNode)("button",{type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm text-neutral-700 hover:bg-neutral-50 disabled:cursor-not-allowed disabled:opacity-60",disabled:at.exportingToGoogleDoc,onClick:t[34]||(t[34]=function(e){at.showExportMenuBottom=!1,lt.trackLocalizationEvent("Lesson Localization Exported To Google Docs"),lt.exportToGoogleDoc()})},[t[91]||(t[91]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"h-4 w-4 shrink-0","aria-hidden":"true"},[(0,r.createElementVNode)("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3",fill:"#4285F4"}),(0,r.createElementVNode)("text",{x:"10",y:"14.5","text-anchor":"middle","font-size":"10","font-weight":"700",fill:"#FFFFFF","font-family":"Arial, sans-serif"},"G")],-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(at.exportingToGoogleDoc?"Exporting...":"Google Doc"),1)],8,ot)])):(0,r.createCommentVNode)("",!0)],512)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{type:"button",class:"h-10 rounded-full border border-neutral-300 px-4 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100",onClick:t[35]||(t[35]=function(){return lt.openModal&&lt.openModal.apply(lt,arguments)})}," Try another location "),(0,r.createElementVNode)("button",{type:"button",class:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-neutral-300 text-neutral-500 transition hover:bg-neutral-100 hover:text-neutral-800","aria-label":"Hide localized lesson",onClick:t[36]||(t[36]=function(){return lt.dismissLocalizedLesson&&lt.dismissLocalizedLesson.apply(lt,arguments)})},o(t[92]||(t[92]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",fill:"currentColor",class:"h-5 w-5"},[(0,r.createElementVNode)("path",{d:"m291 776-67-67 157-157-157-157 67-67 157 157 157-157 67 67-157 157 157 157-67 67-157-157-157 157Z"})],-1)])))])])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],2)):(0,r.createCommentVNode)("",!0)}],["__scopeId","data-v-a2b8e4da"]])},75986:(e,t,n)=>{n.d(t,{Z:()=>D});var r=n(41916),o={key:0,class:"relative flex-shrink-0 group seal-group pb-2"},a=["href"],l=["src"],i={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]"},s=["href"],c={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"},b=["href"],x={key:3,class:"relative group seal-group inline-flex ml-2 mt-2 lg:mt-0"},k=["href"],w=["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"],N={key:4,class:"mt-[60px] lg:mt-[80px] bg-[#556FA4] rounded-xl px-[36px] py-[28px] flex items-center gap-[28px]"},V=["src"],C=["href"];
2const S={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 L=n(93379),_=n.n(L),A=n(37493),M={insert:"head",singleton:!1};_()(A.Z,M);A.Z.locals;const D=(0,n(83744).Z)(S,[["render",function(e,t,n,S,L,_){return"header"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("a",{href:_.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:_.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,l)],8,a),(0,r.createElementVNode)("div",i,[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:_.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,s)])])):"row"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("img",{src:_.sealImageUrl,alt:"",class:"w-5 h-5"},null,8,d)]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{href:_.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:_.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:_.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:_.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:_.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,b)])])):"pill"===n.variant?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[(0,r.createElementVNode)("a",{href:_.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:_.sealImageUrl,alt:"",class:"w-[18px] h-[18px]"},null,8,w),t[3]||(t[3]=(0,r.createElementVNode)("span",null,"Scientist Reviewed",-1))],8,k),(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:_.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",N,[(0,r.createElementVNode)("img",{src:_.sealImageUrl,alt:"Scientist Reviewed Seal",class:"hidden lg:block w-[110px] h-[110px] flex-shrink-0 opacity-90"},null,8,V),(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:_.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-StcMaterialPage-vue.d01d684f.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.