vendor: 4,394 bytes, lines 1-2
1/*! For license information please see 1498.46ea9836.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1498,5967,4692,7941],{47393:(e,t,r)=>{function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),l=new _(n||[]);return i(a,"_invoke",{value:C(e,r,l)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var h={};function p(){}function m(){}function y(){}var v={};u(v,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,l)&&(v=b);var x=y.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function o(i,a,l,c){var s=f(e[i],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function C(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=E(a,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return m.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},w(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new k(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),u(x,s,"Generator"),u(x,l,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,_.prototype={constructor:_,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)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),B(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;B(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function i(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}r.d(t,{De:()=>p,VK:()=>m,aU:()=>y,ob:()=>h,qd:()=>c,wA:()=>u});var a=null,l=null;function c(e,t){a=e,t&&(l=t)}function s(){if("undefined"==typeof localStorage)return"ssr_anonymous";var e=localStorage.getItem("meilisearch_user_id");e||(e="user_"+Date.now()+"_"+Math.random().toString(36).substr(2,9),localStorage.setItem("meilisearch_user_id",e));try{var t,r,n,o=(null===(t=window.Inertia)||void 0===t?void 0:t.page)||{},i=null==o||null===(r=o.props)||void 0===r||null===(n=r.auth)||void 0===n?void 0:n.user;i&&i.id&&(e="user_"+i.id)}catch(e){}return e}function u(){return s()}function d(e){return f.apply(this,arguments)}function f(){var e;return e=o().mark((function e(t){var r,n,i,c,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s(),n=a,i=l,r&&n&&i){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:!!r,hasApiKey:!!n,hasHost:!!i}),e.abrupt("return");case 6:return c={eventType:t.eventType,eventName:t.eventName||("click"===t.eventType?"Search Result Clicked":"Conversion"),indexUid:t.indexUid,userId:r,objectId:t.objectId},t.objectName&&(c.objectName=t.objectName),void 0!==t.position&&null!==t.position&&(c.position=t.position),t.queryUid&&(c.queryUid=t.queryUid),e.prev=10,u="".concat(i.replace(/\/$/,""),"/events"),e.next=14,fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n),"X-MS-USER-ID":r},body:JSON.stringify(c)});case 14:(d=e.sent).ok?console.log("[Meilisearch Analytics] Event sent successfully:",t.eventType,t.eventName):console.warn("[Meilisearch Analytics] Event failed:",d.status,d.statusText),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),console.warn("[Meilisearch Analytics] Failed to send event:",e.t0);case 21:case"end":return e.stop()}}),e,null,[[10,18]])})),f=function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function l(e){i(a,n,o,l,c,"next",e)}function c(e){i(a,n,o,l,c,"throw",e)}l(void 0)}))},f.apply(this,arguments)}function h(e){d({eventType:"click",eventName:"Search Result Clicked",indexUid:e.indexUid,objectId:e.objectId,objectName:e.objectName,position:e.position,queryUid:e.queryUid})}function p(e){var t=e.indexUid,r=e.objectId,n=e.objectName,o=e.eventName,i=e.queryUid;i||(i=new URLSearchParams(window.location.search).get("queryUid"));d({eventType:"conversion",eventName:o||"Conversion",indexUid:t,objectId:r,objectName:n,queryUid:i})}function m(){return new URLSearchParams(window.location.search).get("queryUid")}function y(){try{var e,t,r,n=(null===(e=window.Inertia)||void 0===e?void 0:e.page)||{},o=(null==n||null===(t=n.props)||void 0===t||null===(r=t.integrations)||void 0===r?void 0:r.meilisearch)||{},i=window.location.pathname;return i.includes("/lesson-plans/")||i.includes("/external-resources/")?o.teachingMaterialsIndex||"teaching_materials":i.includes("/teacher-guides/")?o.teacherGuidesIndex||"teacher_guides":i.includes("/climate-change-explainers/")?o.climateExplainersIndex||"climate_explainers":i.includes("/professional-development/")?o.pdIndex||"professional_development":i.includes("/news/")?o.newsIndex||"news":null}catch(e){return null}}},57973:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(1519),o=r.n(n)()((function(e){return e[1]}));
2o.push([e.id,"",""]);const i=o},87202:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g});var n=r(41916);function o(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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={class:"overflow-hidden flex-shrink-0 bottom-0 left-0 pr-2 pl-1 -ml-1 -mb-1 absolute bg-white flex items-center justify-center rounded-tr-xl rounded-bl-xl text-sm z-10"},l={class:"w-full h-full resource-card duration-150 object-cover overflow-hidden rounded-bl-[13px] rounded-tr-xl rounded-tl-xl rounded-br-xl"},c=["src"],s=["href"],u={key:1,class:"line-clamp-3 mt-[12px] font-semibold"};var d=r(15973),f=r(76306),h=r(87879),p=r(72326),m=r(3754),y=r(47393);const v={components:{ItemCard:d.Z,AisHighlight:f.YE,Grades:m.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,y.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:p.dP},setup:function(){var e,t,r,o,i=(0,n.inject)("initAndGetAlgoliaEventDispatcher")(),a=(0,h.qt)();return{aa:i,teachingMaterialsIndex:(null===(e=a.props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(r=a.props.integrations)||void 0===r||null===(o=r.algolia)||void 0===o?void 0:o.teachingMaterialsIndex)||"teaching_materials"}}};const g=(0,r(83744).Z)(v,[["render",function(e,t,r,i,d,f){var h=(0,n.resolveComponent)("Grades"),p=(0,n.resolveComponent)("AisHighlight"),m=(0,n.resolveComponent)("PrimaryButton"),y=(0,n.resolveComponent)("ItemCard");return(0,n.openBlock)(),(0,n.createBlock)(y,{item:r.resource,imageUrl:f.imageUrl,bookmarkRoute:"tm.bookmark",actionUrl:f.url,onClick:t[1]||(t[1]=function(e){return f.notifyAlgoliaAboutClick()})},(0,n.createSlots)({badge:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",a,(0,n.toDisplayString)(r.resource.type),1)]})),image:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("img",{alt:"stc",class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:f.imageUrl},null,8,c)])]})),bands:(0,n.withCtx)((function(){return[(0,n.createVNode)(h,{grades:r.resource.grades},null,8,["grades"])]})),title:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("a",{href:f.url},[r.isLoadedFromAlgolia?((0,n.openBlock)(),(0,n.createBlock)(p,{key:0,attribute:"title",hit:r.resource,"class-names":{"ais-Highlight":"font-semibold line-clamp-3"}},null,8,["hit"])):((0,n.openBlock)(),(0,n.createElementBlock)("div",u,(0,n.toDisplayString)(r.resource.title),
21))],8,s)]})),tags:(0,n.withCtx)((function(){return[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.resource.subjects_list_short,(function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("span",{key:e,class:"text-xs rounded-2xl bg-[#EEF1F6] px-2.5 py-0.5"},(0,n.toDisplayString)(e),1)})),128))]})),_:2},[f.url?{name:"action",fn:(0,n.withCtx)((function(){return[(0,n.createVNode)(m,{onClick:t[0]||(t[0]=function(e){return f.notifyAlgoliaAboutClick()}),href:f.url},{default:(0,n.withCtx)((function(){return o(t[2]||(t[2]=[(0,n.createElementVNode)("span",{class:"capitalize"},"View Resource",-1)]))})),_:1},8,["href"])]})),key:"0"}:void 0]),1032,["item","imageUrl","actionUrl"])}]])},98032:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g});var n=r(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"},i={key:0},a={key:1},l={class:"w-full h-full resource-card duration-150 object-cover overflow-hidden rounded-bl-[13px] rounded-tr-xl rounded-tl-xl rounded-br-xl"},c=["src"],s=["href"],u={key:1,class:"line-clamp-3 mt-[12px] font-semibold"};var d=r(15973),f=r(76306),h=r(87879),p=r(72326),m=r(3754),y=r(47393);const v={components:{ItemCard:d.Z,AisHighlight:f.YE,Grades:m.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,y.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:p.dP},mounted:function(){console.log("iruetghriutghirutgh")},setup:function(){var e,t,r,o,i=(0,n.inject)("initAndGetAlgoliaEventDispatcher")(),a=(0,h.qt)();return{aa:i,teachingMaterialsIndex:(null===(e=a.props.integrations)||void 0===e||null===(t=e.meilisearch)||void 0===t?void 0:t.teachingMaterialsIndex)||(null===(r=a.props.integrations)||void 0===r||null===(o=r.algolia)||void 0===o?void 0:o.teachingMaterialsIndex)||"teaching_materials"}}};const g=(0,r(83744).Z)(v,[["render",function(e,t,r,d,f,h){var p=(0,n.resolveComponent)("Grades"),m=(0,n.resolveComponent)("AisHighlight"),y=(0,n.resolveComponent)("ItemCard");return(0,n.openBlock)(),(0,n.createBlock)(y,{item:r.material,imageUrl:h.imageUrl,isBookmarked:!0,showBookMark:!r.isUnitPlan,bookmarkRoute:"tm.bookmark",actionUrl:h.url,onClick:t[0]||(t[0]=function(e){return h.notifyAlgoliaAboutClick()})},{badge:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",o,[r.material.is_internal_unit_plan?((0,n.openBlock)(),(0,n.createElementBlock)("span",i,"Unit Plan")):((0,n.openBlock)(),(0,n.createElementBlock)("span",a,(0,n.toDisplayString)(r.material.type),1))])]})),image:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("img",{class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:h.imageUrl,alt:"Avatar"},null,8,c)])]})),bands:(0,n.withCtx)((function(){return[(0,n.createVNode)(p,{grades:r.material.grades},null,8,["grades"])]})),title:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("a",{href:h.url},[r.isLoadedFromAlgolia?((0,n.openBlock)(),(0,n.createBlock)(m,{key:0,attribute:"title",hit:r.material,"class-names":{"ais-Highlight":"font-semibold line-clamp-3"}},null,8,["hit"])):((0,n.openBlock)(),(0,n.createElementBlock)("h3",u,(0,n.toDisplayString)(r.material.title),
21))],8,s)]})),tags:(0,n.withCtx)((function(){return[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.material.subjects_list_short,(function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("span",{key:e,class:"text-xs rounded-2xl bg-[#EEF1F6] px-2.5 py-0.5"},(0,n.toDisplayString)(e),1)})),128))]})),_:1},8,["item","imageUrl","showBookMark","actionUrl"])}]])},2708:(e,t,r)=>{r.r(t),r.d(t,{default:()=>B});var n=r(41916);function o(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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={class:"overflow-hidden flex-shrink-0 bottom-0 left-0 pr-2 pl-1 pb-0.5 -ml-1 -mb-1 absolute bg-white flex items-center justify-center rounded-tr-xl rounded-bl-xl text-sm z-10"},l={class:"w-full h-full resource-card duration-150 object-cover overflow-hidden rounded-bl-[13px] rounded-tr-xl rounded-tl-xl rounded-br-xl"},c=["src"],s=["href"],u={key:1,class:"line-clamp-3 mt-[12px] font-semibold"},d={class:"space-x-1 mb-[12px] flex items-center"},f={key:0,class:"text-[12px]"},h={key:1,class:"text-[12px]"},p={class:"-m-4 p-[12px] space-x-2 overflow-x-scroll",style:{"-ms-overflow-style":"none","scrollbar-width":"none"}},m={class:"text-xs rounded-2xl bg-[#EEF1F6] px-2.5 py-0.5 whitespace-nowrap"};var y=r(15973),v=r(76306),g=r(87879),b=r(72326),x=r(3754),w=r(47393);function k(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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)}const S={components:{ItemCard:y.Z,AisHighlight:v.YE,Grades:x.Z},props:{opportunity:Object,isAlgolia:{default:!0,type:Boolean},tenantState:{type:String,default:null},position:{type:Number,default:null},queryUid:{type:String,default:null}},computed:{url:function(){var e,t=route("plos.show",null!==(e=this.opportunity.slug)&&void 0!==e?e:this.opportunity.id);if(t&&this.queryUid){var r=t.includes("?")?"&":"?";return t+r+"queryUid="+encodeURIComponent(this.queryUid)}return t},normalizedStates:function(){return this.opportunity.states?Array.isArray(this.opportunity.states)?this.opportunity.states:"object"===E(this.opportunity.states)?Object.values(this.opportunity.states):[]:[]},sortedStates:function(){var e=this;if(!this.normalizedStates.length)return[];var t=this.normalizedStates.find((function(t){return t===e.tenantState}));return t?[t].concat(k(this.normalizedStates.filter((function(t){return t!==e.tenantState})))):this.normalizedStates},dateRangeText:function(){var e;return null!==(e=this.opportunity)&&void 0!==e&&e.starts_at?this.opportunity.ends_at?"".concat(this.opportunity.starts_at," - ").concat(this.opportunity.ends_at):this.opportunity.starts_at:null},mergedGrades:function(){return this.opportunity.grades.map((function(e){return"object"===E(e)?e.name:e}))},opportunityType:function(){return"object"===E(this.opportunity.type)?this.opportunity.type.name:this.opportunity.type}},methods:{notifyAlgoliaAboutClick:function(){var e=this.pdIndex||"professional_opportunities";if((0,w.ob)({indexUid:e,objectId:String(this.opportunity.id),objectName:this.opportunity.name,position:this.position,queryUid:this.queryUid}),this.aa){var t=this.opportunity.id;this.aa("clickedObjectIDs",{objectIDs:[t.toString()],eventName:"Professional Development Clicked",index:this.teachingMaterialsIndex})}},sortGradeBands:b.dP},setup:function(){var e,t,r,o,i,a,l=(0,n.inject)("initAndGetAlgoliaEventDispatcher")(),c=(0,g.qt)();return{aa:l,teachingMaterialsIndex:(null===(e=c.props.integrations)||void 0===e||null===(t=e.algolia)||void 0===t?void 0:t.teachingMaterialsIndex)||"teaching_materials",pdIndex:(null===(r=c.props.integrations)||void 0===r||null===(o=r.meilisearch)||void 0===o?void 0:o.pdIndex)||(null===(i=c.props.integrations)||void 0===i||null===(a=i.algolia)||void 0===a?void 0:a.pdIndex)||"professional_opportunities"}}};const B=(0,r(83744).Z)(S,[["render",function(e,t,r,i,y,v){var g=(0,n.resolveComponent)("Grades"),b=(0,n.resolveComponent)("AisHighlight"),x=(0,n.resolveComponent)("PrimaryButton"),w=(0,n.resolveComponent)("ItemCard");return(0,n.openBlock)(),(0,n.createBlock)(w,{item:r.opportunity,imageUrl:r.opportunity.thumbnailUrl,bookmarkRoute:"plos.bookmark",actionUrl:v.url,onClick:t[1]||(t[1]=function(e){return v.notifyAlgoliaAboutClick()})},(0,n.createSlots)({badge:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",a,(0,n.toDisplayString)(v.opportunityType)+" - "+(0,n.toDisplayString)(r.opportunity.is_online?"Online":"In Person"),1)]})),image:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("img",{alt:"Thumbn
2ail",class:"w-full h-full object-cover group-hover:scale-105 duration-150",src:r.opportunity.thumbnailUrl},null,8,c)])]})),bands:(0,n.withCtx)((function(){return[(0,n.createVNode)(g,{grades:v.mergedGrades},null,8,["grades"])]})),title:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("a",{href:v.url},[r.isAlgolia?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,attribute:"name",hit:r.opportunity,"class-names":{"ais-Highlight":"font-semibold line-clamp-3"}},null,8,["hit"])):((0,n.openBlock)(),(0,n.createElementBlock)("div",u,(0,n.toDisplayString)(r.opportunity.name),1))],8,s)]})),description:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",d,[t[2]||(t[2]=(0,n.createElementVNode)("svg",{width:"12",height:"14",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.createElementVNode)("path",{d:"M2.16667 17.3334C1.70833 17.3334 1.31597 17.1702 0.989583 16.8438C0.663194 16.5174 0.5 16.1251 0.5 15.6667V4.00008C0.5 3.54175 0.663194 3.14939 0.989583 2.823C1.31597 2.49661 1.70833 2.33341 2.16667 2.33341H3V1.50008C3 1.26397 3.07986 1.06605 3.23958 0.906331C3.39931 0.746609 3.59722 0.666748 3.83333 0.666748C4.06944 0.666748 4.26736 0.746609 4.42708 0.906331C4.58681 1.06605 4.66667 1.26397 4.66667 1.50008V2.33341H11.3333V1.50008C11.3333 1.26397 11.4132 1.06605 11.5729 0.906331C11.7326 0.746609 11.9306 0.666748 12.1667 0.666748C12.4028 0.666748 12.6007 0.746609 12.7604 0.906331C12.9201 1.06605 13 1.26397 13 1.50008V2.33341H13.8333C14.2917 2.33341 14.684 2.49661 15.0104 2.823C15.3368 3.14939 15.5 3.54175 15.5 4.00008V15.6667C15.5 16.1251 15.3368 16.5174 15.0104 16.8438C14.684 17.1702 14.2917 17.3334 13.8333 17.3334H2.16667ZM2.16667 15.6667H13.8333V7.33341H2.16667V15.6667ZM2.16667 5.66675H13.8333V4.00008H2.16667V5.66675ZM8 10.6667C7.76389 10.6667 7.56597 10.5869 7.40625 10.4272C7.24653 10.2674 7.16667 10.0695 7.16667 9.83341C7.16667 9.5973 7.24653 9.39939 7.40625 9.23966C7.56597 9.07994 7.76389 9.00008 8 9.00008C8.23611 9.00008 8.43403 9.07994 8.59375 9.23966C8.75347 9.39939 8.83333 9.5973 8.83333 9.83341C8.83333 10.0695 8.75347 10.2674 8.59375 10.4272C8.43403 10.5869 8.23611 10.6667 8 10.6667ZM4.66667 10.6667C4.43056 10.6667 4.23264 10.5869 4.07292 10.4272C3.91319 10.2674 3.83333 10.0695 3.83333 9.83341C3.83333 9.5973 3.91319 9.39939 4.07292 9.23966C4.23264 9.07994 4.43056 9.00008 4.66667 9.00008C4.90278 9.00008 5.10069 9.07994 5.26042 9.23966C5.42014 9.39939 5.5 9.5973 5.5 9.83341C5.5 10.0695 5.42014 10.2674 5.26042 10.4272C5.10069 10.5869 4.90278 10.6667 4.66667 10.6667ZM11.3333 10.6667C11.0972 10.6667 10.8993 10.5869 10.7396 10.4272C10.5799 10.2674 10.5 10.0695 10.5 9.83341C10.5 9.5973 10.5799 9.39939 10.7396 9.23966C10.8993 9.07994 11.0972 9.00008 11.3333 9.00008C11.5694 9.00008 11.7674 9.07994 11.9271 9.23966C12.0868 9.39939 12.1667 9.5973 12.1667 9.83341C12.1667 10.0695 12.0868 10.2674 11.9271 10.4272C11.7674 10.5869 11.5694 10.6667 11.3333 10.6667ZM8 14.0001C7.76389 14.0001 7.56597 13.9202 7.40625 13.7605C7.24653 13.6008 7.16667 13.4029 7.16667 13.1667C7.16667 12.9306 7.24653 12.7327 7.40625 12.573C7.56597 12.4133 7.76389 12.3334 8 12.3334C8.23611 12.3334 8.43403 12.4133 8.59375 12.573C8.75347 12.7327 8.83333 12.9306 8.83333 13.1667C8.83333 13.4029 8.75347 13.6008 8.59375 13.7605C8.43403 13.9202 8.23611 14.0001 8 14.0001ZM4.66667 14.0001C4.43056 14.0001 4.23264 13.9202 4.07292 13.7605C3.91319 13.6008 3.83333 13.4029 3.83333 13.1667C3.83333 12.9306 3.91319 12.7327 4.07292 12.573C4.23264 12.4133 4.43056 12.3334 4.66667 12.3334C4.90278 12.3334 5.10069 12.4133 5.26042 12.573C5.42014 12.7327 5.5 12.9306 5.5 13.1667C5.5 13.4029 5.42014 13.6008 5.26042 13.7605C5.10069 13.9202 4.90278 14.0001 4.66667 14.0001ZM11.3333 14.0001C11.0972 14.0001 10.8993 13.9202 10.7396 13.7605C10.5799 13.6008 10.5 13.4029 10.5 13.1667C10.5 12.9306 10.5799 12.7327 10.7396 12.573C10.8993 12.4133 11.0972 12.3334 11.3333 12.3334C11.5694 12.3334 11.7674 12.4133 11.9271 12.573C12.0868 12.7327 12.1667 12.9306 12.1667 13.1667C12.1667 13.4029 12.0868 13.6008 11.9271 13.7605C11.7674 13.9202 11.5694 14.0001 11.3333 14.0001Z",fill:"#1C1B1F"})],-1)),v.dateRangeText?((0,n.openBlock)(),(0,n.createElementBlock)("span",f,(0,n.toDisplayString)(v.dateRangeText),1)):((0,n.openBlock)(),(0,n.createElementBlock)("span",h,"Ongoing"))])]})),_:2},[v.url?{name:"action",fn:(0,n.withCtx)((function(){return[(0,n.createVNode)(x,{onClick:t[0]||(t[0]=function(e){return v.notifyAlgoliaAboutClick()}),href:v.url},{default:(0,n.withCtx)((function(){return o(t[3]||(t[3]=[(0,n.createElementVNode)("span",{class:"capitalize"},"View Resource",-1)]))})),_:1},8,["href"])]})),key:"0"}:void 0,v.normalizedStates.length>0?{name:"tags",fn:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",p,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(v.sortedStates,(function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("span",m,(0,n.toDisplayString)(e),1)})),256))])]})),key:"1"}:void 0]),1032,["item","imageUrl","actionUrl"])}]])},85521:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(41916);function o(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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={width:"41",height:"45",viewBox:"0 0 41 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const l={},c=(0,r(83744).Z)(l,[["render",function(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",a,o(t[0]||(t[0]=[(0,n.createStaticVNode)('<g filter="url
2(#filter0_d_1092_2850)"><path d="M4 0H20.5H37V33.7574C37 36.4301 33.7686 37.7686 31.8787 35.8787L22.6213 26.6213C21.4497 25.4497 19.5503 25.4497 18.3787 26.6213L9.12132 35.8787C7.23142 37.7686 4 36.4301 4 33.7574V0Z" fill="currentColor"></path><path d="M4.25 0.25H20.5H36.75V33.7574C36.75 36.2073 33.7879 37.4343 32.0555 35.7019L22.7981 26.4445C21.5289 25.1753 19.4711 25.1753 18.2019 26.4445L8.94454 35.7019C7.21214 37.4343 4.25 36.2073 4.25 33.7574V0.25Z" stroke="currentColor" stroke-width="0.5"></path></g><defs><filter id="filter0_d_1092_2850" x="0" y="0" width="41" height="44.7632" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1092_2850"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1092_2850" result="shape"></feBlend></filter></defs>',2)])))}]])},3754:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(41916),o={key:0},i={key:1,class:"flex flex-wrap gap-2"};var a=r(72326);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s={props:{grades:{type:Array,required:!0},showColors:{type:Boolean,default:!0},plain:{type:Boolean,default:!1}},computed:{processedGrades:function(){return this.grades?function(e){if(!e||e.length<=7)return l(e).sort(a.dP);for(var t=function(e){return-1===e?"PK":0===e?"K":13===e?"AP":e.toString()},r=l(e).sort(a.dP).map((function(e){return"PK"===e?-1:"K"===e?0:"AP"===e?13:parseInt(e)})),n=[],o=r[0],i=r[0],c=1;c<r.length;c++)r[c]===i+1||(o===i?n.push(t(o)):n.push("".concat(t(o),"-").concat(t(i))),o=r[c]),i=r[c];return o===i?n.push(t(o)):n.push("".concat(t(o),"-").concat(t(i))),n.sort(a.dP)}(this.grades):[]},nonK12Grades:function(){if(!this.processedGrades)return[];var e=["K","1","2","3","4","5","6","7","8","9","10","11","12"];return this.processedGrades.filter((function(t){return!e.includes(t)}))},plainGradesText:function(){return this.processedGrades.length?this.hasK12(this.processedGrades)?["K-12"].concat(l(this.nonK12Grades)).join(", "):this.processedGrades.join(", "):""}},methods:{gradeColorMap:function(e){return e?e.includes("-")?"#FFEDB8":{PK:"#FFEDB8",K:"#FFEDB8",1:"#FFEDB8",2:"#FFEDB8",3:"#FFEDB8",4:"#FFEDB8",5:"#FFEDB8",6:"#FFEDB8",7:"#FFEDB8",8:"#FFEDB8",9:"#FFEDB8",10:"#FFEDB8",11:"#FFEDB8",12:"#FFEDB8",AP:"#FFEDB8","K-12":"#FFEDB8"}[e]||"#FFEDB8":"#FFEDB8"},sortGradeBands:a.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,r(83744).Z)(s,[["render",function(e,t,r,a,l,c){return r.plain?((0,n.openBlock)(),(0,n.createElementBlock)("span",o,(0,n.toDisplayString)(c.plainGradesText),1)):((0,n.openBlock)(),(0,n.createElementBlock)("div",i,[c.hasK12(c.processedGrades)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("span",{style:(0,n.normalizeStyle)({backgroundColor:r.showColors?c.gradeColorMap("K-12"):""}),class:"px-3 py-1.5 rounded-full uppercase text-xs font-medium whitespace-nowrap flex-shrink-0"}," K-12 ",4),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(c.nonK12Grades,(function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("span",{key:e,style:(0,n.normalizeStyle)({backgroundColor:r.showColors?c.gradeColorMap(e):""}),class:"px-2 py-1.5 rounded-full uppercase text-xs font-medium whitespace-nowrap flex-shrink-0"},(0,n.toDisplayString)(e),5)})),128))],64)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(c.processedGrades,(function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("span",{key:e,style:(0,n.normalizeStyle)({backgroundColor:r.showColors?c.gradeColorMap(e):""}),class:"px-2 py-1.5 rounded-full uppercase text-xs font-medium whitespace-nowrap flex-shrink-0"},(0,n.toDisplayString)(e),5)})),128))]))}]])},15973:(e,t,r)=>{r.d(t,{Z:()=>B});var n=r(41916),o=["href"],i={class:"bg-white w-full rounded-xl overflow-hidden h-full shadow-lg group border flex flex-col relative group"},a={class:"p-[12px] pb-0 flex-shrink-0"},l={class:"relative w-full overflow-hidden h-32 rounded-r-xl rounded-tl-lg"},c=["src"],s={class:"flex flex-col flex-1 min-h-0"},u={class:"p-4 pb-0 border-b flex-1 flex flex-col"},d={class:"flex items-center space-x-1.5 flex-shrink-0"},f={class:"flex items-center my-3 flex-shrink-0"}
vendor: 4,180 bytes, line 2
2,h={class:"flex items-center min-h-[60px]"},p={class:"flex-shrink-0"},m={class:"p-4 flex items-center space-x-1.5 flex-shrink-0"};var y=r(76306),v=r(5121),g=r(72326),b=r(95785),x=r(85521),w=r(87879);function k(){k=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new _(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function f(){}function h(){}function p(){}var m={};c(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(L([])));v&&v!==t&&r.call(v,i)&&(m=v);var g=p.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==C(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=E(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(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 n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(x.prototype),c(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,l,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,_.prototype={constructor:_,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)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),B(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;B(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function C(e){return C="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},C(e)}function E(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}const S={components:{AisHighlight:y.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=k().mark((function e(){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.user&&("object"!==C(t.user)||t.user.id)){e.next=3;break}return window.location.href=route("login"),e.abrupt("return");case 3:return r=!t.isBookmarked,e.prev=4,t.bookmarked=r,e.next=8,v.Z.put(route(t.bookmarkRoute,t.item.id),{is_bookmarked:r}).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:r}),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[4,10,13,16]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){E(i,n,o,a,l,"next",e)}function l(e){E(i,n,o,a,l,"throw",e)}a(void 0)}))})()}},computed:{user:function(){return(0,w.qt)().props.auth.user}},props:{item:Object,hitType:String,buttonTextColor:{type:String,defeault:"white"},isAlgoliaItem:{type:Boolean,default:!0},isBookmarked:{type:Boolean,default:!1},imageUrl:{type:String,default:"https://subjecttoclimate.nyc3.digitaloceanspaces.com/4365/conversions/adryan-ra-ysT-xbhhK2c-unsplash-thumb.jpg"},showBookMark:{type:Boolean,default:!0},bookmarkRoute:{type:String},actionUrl:{type:String,default:null}},setup:function(){return{mergeContinuousLevels:g.aV}}};const B=(0,r(83744).Z)(S,[["render",function(e,t,r,y,v,g){var b=(0,n.resolveComponent)("BookmarkingIcon");return(0,n.openBlock)(),(0,n.createElementBlock)("a",{href:r.actionUrl,class:"h-full block"},[(0,n.createElementVNode)("div",i,[r.showBookMark?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:0,onClick:t[0]||(t[0]=(0,n.withModifiers)((function(e){return g.toggleBookmark()}),["prevent"])),class:(0,n.normalizeClass)(["absolute top-0 right-4 z-10 hover:scale-105 duration-150 ",v.bookmarked?"text-[#FF8B8B]":"text-[#FFF4F4] hover:text-[#ffdddd]"])},[(0,n.createVNode)(b)],2)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",a,[(0,n.createElementVNode)("div",l,[(0,n.renderSlot)(e.$slots,"image",{},(function(){return[(0,n.createElementVNode)("img",{alt:"Avatar",class:"w-full absolute h-full duration-150 object-cover group-hover:scale-105",src:r.imageUrl},null,8,c)]})),(0,n.renderSlot)(e.$slots,"badge")])]),(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",d,[(0,n.renderSlot)(e.$slots,"bands")]),(0,n.createElementVNode)("div",f,[(0,n.createElementVNode)("div",h,[(0,n.renderSlot)(e.$slots,"title")])]),(0,n.createElementVNode)("div",p,[(0,n.renderSlot)(e.$slots,"description")])]),(0,n.createElementVNode)("div",m,[(0,n.renderSlot)(e.$slots,"tags")])])])],8,o)}]])},71498:(e,t,r)=>{r.r(t),r.d(t,{default:()=>j});var n=r(41916);function o(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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={class:"w-full md:w-[1100px] mx-auto"},l={class:"text-center"},c=["innerHTML"],s=["innerHTML"],u={class:"flex items-center justify-center mt-8 space-x-4"},d={class:"flex-grow overflow-hidden max-w-[1050px]"},f={class:"relative"},h={class:"overflow-hidden"},p={class:"grid grid-cols-1 md:grid-cols-3 gap-1 w-full mb-4"},m={class:"flex justify-center"};var y=r(49613),v=r(87202),g=r(98032),b=r(5121),x=r(37409);function w(e){return w="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},w(e)}function k(){k=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new _(o||[]);return n(a,"_invoke",{value:C(e,r,l)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function f(){}function h(){}function p(){}var m={};c(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(L([])));v&&v!==t&&r.call(v,i)&&(m=v);var g=p.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,146 bytes, line 2
2))}function x(e,t){function o(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==w(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function C(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=E(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(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 n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(x.prototype),c(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,l,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,_.prototype={constructor:_,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)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},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 r=this.tryEntries[t];
2if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),B(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;B(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function C(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}const E={components:{OpportunityItem:r(2708).default,ResourceItem:v.default,MaterialItem:g.default,Container:y.Z,Carousel:x.Carousel,Slide:x.Slide,Navigation:x.Navigation,Pagination:x.Pagination},props:{bgColor:{type:String,default:null},title:{type:String,default:"Lesson Plans, Units, and Activities"},description:{type:String,default:"Browse these NJ-centric lesson plans that have been created by teachers, for teachers. All lesson plans have been evaluated using a peer-reviewed rubric."},buttonText:{type:String,default:"Search More"},buttonLink:{type:String,default:"#"},buttonColor:{type:String,default:"#ffffff"},textButtonColor:{type:String,default:"#000000"},teachingResourceList:{type:Array,default:function(){return[]}},teachingResourceType:{type:String,default:"external_resource"},textColor:{type:String,default:"#ffffff"},showLatestResources:{type:Boolean,default:!1}},data:function(){return{teachingResources:[],currentIndex:0,bookmarkedTeachingResourceIds:[],isMobile:!1}},methods:{loadTeachingResources:function(){var e,t=this;return(e=k().mark((function e(){var r,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("professional_development"!==t.teachingResourceType){e.next=8;break}return e.next=3,b.Z.post(route("plos.resources"),{resource_ids:t.teachingResourceList.map((function(e){return e.id})),resource_type:t.teachingResourceType,latest_only:t.showLatestResources});case 3:r=e.sent,t.teachingResources=r.data.resources,t.bookmarkedTeachingResourceIds=r.data.liked,e.next=13;break;case 8:return e.next=10,b.Z.post(route("api.teachingMaterials.resources.get"),{resource_ids:t.teachingResourceList.map((function(e){return e.id})),resource_type:t.teachingResourceType,latest_only:t.showLatestResources});case 10:n=e.sent,t.teachingResources=n.data.resources,t.bookmarkedTeachingResourceIds=n.data.liked;case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){C(i,n,o,a,l,"next",e)}function l(e){C(i,n,o,a,l,"throw",e)}a(void 0)}))})()},checkScreenSize:function(){this.isMobile=window.innerWidth<768},next:function(){var e=this.chunkedResources.length-1;e>0&&(this.currentIndex=(this.currentIndex+1)%(e+1))},prev:function(){var e=this.chunkedResources.length-1;e>0&&(this.currentIndex=(this.currentIndex-1+(e+1))%(e+1))},navigateTo:function(){this.buttonLink&&window.open(this.buttonLink,"_self")}},watch:{teachingResourceList:{handler:function(e){this.loadTeachingResources()}},teachingResourceType:{handler:function(e){this.loadTeachingResources()}},showLatestResources:{handler:function(e){this.loadTeachingResources()}}},mounted:function(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize),this.loadTeachingResources()},beforeDestroy:function(){window.removeEventListener("resize",this.checkScreenSize)},computed:{chunkedResources:function(){for(var e=this.isMobile?1:3,t=[],r=0;r<this.teachingResources.length;r+=e)t.push(this.teachingResources.slice(r,r+e));return t}}};var S=r(93379),B=r.n(S),_=r(57973),L={insert:"head",singleton:!1};B()(_.Z,L);_.Z.locals;const j=(0,r(83744).Z)(E,[["render",function(e,t,r,i,y,v){var g=(0,n.resolveComponent)("OpportunityItem"),b=(0,n.resolveComponent)("ResourceItem"),x=(0,n.resolveComponent)("Container");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)([[r.bgColor?"":"bg-primary-500"],"py-24 px-8 md:px-16"]),style:(0,n.normalizeStyle)([r.bgColor?"background-color: ".concat(r.bgColor):""])},[(0,n.createVNode)(x,{class:""},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",a,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("span",{innerHTML:r.title,style:(0,n.normalizeStyle)(["color:".concat(r.textColor)]),class:"text-[36px] md:text-[36px] font-[600] md:font-[700] leading-[normal] text-center"},null,12,c),(0,n.createElementVNode)("p",{innerHTML:r.description,style:(0,n.normalizeStyle)(["color:".concat(r.textColor)]),class:"text-[16px] md:text-[16
2px] mt-[16px] leading-[normal] text-center w-full md:w-2/3 mx-auto"},null,12,s)]),(0,n.createElementVNode)("div",u,[e.isMobile||e.teachingResources.length>3?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:0,onClick:t[0]||(t[0]=function(){return v.prev&&v.prev.apply(v,arguments)}),class:"flex-shrink-0 bg-white rounded-full p-2 shadow-md hover:bg-gray-100 transition-colors"},o(t[3]||(t[3]=[(0,n.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[(0,n.createElementVNode)("mask",{id:"mask0_914_4667",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[(0,n.createElementVNode)("rect",{x:"24",y:"24",width:"24",height:"24",transform:"rotate(-180 24 24)",fill:"#D9D9D9"})]),(0,n.createElementVNode)("g",{mask:"url(#mask0_914_4667)"},[(0,n.createElementVNode)("path",{d:"M9.52538 12L16.8754 19.35C17.1254 19.6 17.2462 19.8958 17.2379 20.2375C17.2295 20.5792 17.1004 20.875 16.8504 21.125C16.6004 21.375 16.3045 21.5 15.9629 21.5C15.6212 21.5 15.3254 21.375 15.0754 21.125L7.40038 13.425C7.20038 13.225 7.05038 13 6.95038 12.75C6.85038 12.5 6.80038 12.25 6.80038 12C6.80038 11.75 6.85038 11.5 6.95038 11.25C7.05038 11 7.20038 10.775 7.40038 10.575L15.1004 2.875C15.3504 2.625 15.642 2.50417 15.9754 2.5125C16.3087 2.52083 16.6004 2.65 16.8504 2.9C17.1004 3.15 17.2254 3.44583 17.2254 3.7875C17.2254 4.12917 17.1004 4.425 16.8504 4.675L9.52538 12Z",fill:"#1C1B1F"})])],-1)])))):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",d,[(0,n.createElementVNode)("div",f,[(0,n.createElementVNode)("div",h,[(0,n.createElementVNode)("div",{class:"flex transition-transform duration-500",style:(0,n.normalizeStyle)({transform:"translateX(-".concat(100*e.currentIndex,"%)")})},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(v.chunkedResources,(function(t,o){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{key:o,class:"flex w-full flex-shrink-0"},[(0,n.createElementVNode)("div",p,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t,(function(t,o){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{key:o,class:(0,n.normalizeClass)(["w-full mx-auto",[e.isMobile&&o>0?"hidden":"",e.teachingResources.length>3?"md:w-[310px]":"md:w-[330px]"]])},["professional_development"===r.teachingResourceType?((0,n.openBlock)(),(0,n.createBlock)(g,{key:0,opportunity:t,"is-algolia":!1,isBookmarked:e.bookmarkedTeachingResourceIds.includes(t.id)},null,8,["opportunity","isBookmarked"])):((0,n.openBlock)(),(0,n.createBlock)(b,{key:1,resource:t,isLoadedFromAlgolia:!1,isBookmarked:e.bookmarkedTeachingResourceIds.includes(t.id)},null,8,["resource","isBookmarked"]))],2)})),128))])])})),128))],4)])])]),e.isMobile||e.teachingResources.length>3?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:1,onClick:t[1]||(t[1]=function(){return v.next&&v.next.apply(v,arguments)}),class:"flex-shrink-0 bg-white rounded-full p-2 shadow-md hover:bg-gray-100 transition-colors"},o(t[4]||(t[4]=[(0,n.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[(0,n.createElementVNode)("mask",{id:"mask0_914_4670",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[(0,n.createElementVNode)("rect",{width:"24",height:"24",fill:"#D9D9D9"})]),(0,n.createElementVNode)("g",{mask:"url(#mask0_914_4670)"},[(0,n.createElementVNode)("path",{d:"M14.4746 12L7.12462 4.65C6.87462 4.4 6.75379 4.10417 6.76212 3.7625C6.77046 3.42083 6.89962 3.125 7.14962 2.875C7.39962 2.625 7.69546 2.5 8.03712 2.5C8.37879 2.5 8.67462 2.625 8.92462 2.875L16.5996 10.575C16.7996 10.775 16.9496 11 17.0496 11.25C17.1496 11.5 17.1996 11.75 17.1996 12C17.1996 12.25 17.1496 12.5 17.0496 12.75C16.9496 13 16.7996 13.225 16.5996 13.425L8.89962 21.125C8.64962 21.375 8.35796 21.4958 8.02462 21.4875C7.69129 21.4792 7.39962 21.35 7.14962 21.1C6.89962 20.85 6.77462 20.5542 6.77462 20.2125C6.77462 19.8708 6.89962 19.575 7.14962 19.325L14.4746 12Z",fill:"#1C1B1F"})])],-1)])))):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",m,[(0,n.createElementVNode)("button",{onClick:t[2]||(t[2]=function(){return v.navigateTo&&v.navigateTo.apply(v,arguments)}),class:"cursor-pointer px-4 py-2 rounded-xl mt-[15px] md:mt-[30px]",style:(0,n.normalizeStyle)([r.buttonColor?"background-color:".concat(r.buttonColor):"","color:".concat(r.textButtonColor)])},(0,n.toDisplayString)(r.buttonText),5)])])]})),_:1})],6)}],["__scopeId","data-v-42231018"]])}}]); 3//# sourceMappingURL=1498.46ea9836.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.