PageSourceSearch

https://illinoisclimateeducation.org/js/tenant/pages/StcMaterial-components-ResourceCard-vue.9a8d4ef2.js

js illinoisclimateeducation.org collected 2026-09-29 07:36:31 UTC 13,518 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[4975],{37493:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1519),o=r.n(n)()((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},70597:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var n=r(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 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 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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l={class:"overflow-hidden rounded-xl shadow-lg bg-white relative"},i={class:"relative"},s=["src","srcset","alt"],c={class:"absolute top-3 right-3"},d={class:"px-[16px] pt-[20px] pb-[20px]"},u={key:0},p={key:1},f={class:"mt-3 flex items-center gap-2"},m=["fill"],b={key:0,class:"text-[14px] block mt-[14px]"};r(72326);var v=r(87879),g=r(95785),h=r(75986);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,l,i=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(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 w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(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 y={components:{PrimaryButton:g.Z,ScientistReviewedSeal:h.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:{coverSrcset:function(){var e,t=(null===(e=this.resource)||void 0===e?void 0:e.image_conversions)||{},r=Object.entries(t).filter((function(e){var t=x(e,2),r=t[0],n=t[1];return/^\d+$/.test(r)&&!!n})).map((function(e){var t=x(e,2),r=t[0],n=t[1];return"".concat(n," ").concat(r,"w")}));return r.length?r.join(", "):null},user:function(){return(0,v.qt)().props.auth.user},localizationEnabled:function(){var e,t;return!(null===(e=(0,v.qt)().props.integrations)||void 0===e||null===(t=e.openai)||void 0===t||!t.lessonLocalizationEnabled)}},setup:function(){return{}}};const k=(0,r(83744).Z)(y,[["render",function(e,t,r,a,v,g){var h=(0,n.resolveComponent)("ScientistReviewedSeal"),x=(0,n.resolveComponent)("PrimaryButton");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",i,[r.resource.image?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,src:r.resource.image,srcset:g.coverSrcset,sizes:"(max-width: 768px) 100vw, 400px",alt:r.resource.title||"",loading:"lazy",class:"w-full h-full duration-150 object-cover"},null,8,s)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",c,[(0,n.createVNode)(h,{variant:"badge"})])]),(0,n.createElementVNode)("div",d,[(0,n.createElementVNode)("div",null,[(0,n.createVNode)(x,{class:"text-[16px] !rounded-full",href:r.resource.teachable.url,target:"_blank"},{default:(0,n.withCtx)((function(){return[r.isActivity?((0,n.openBlock)(),(0,n.createElementBlock)("span",u,"View Activity")):((0,n.openBlock)(),(0,n.createElementBlock)("span",p,"View Lesson Plan"))]})),_:1},8,["href"]),(0,n.createElementVNode)("div",f,[r.onLocalize&&g.localizationEnabled?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:0,t
1ype:"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 g.openLocalizeModal&&g.openLocalizeModal.apply(g,arguments)})},o(t[2]||(t[2]=[(0,n.createElementVNode)("span",{class:"text-base leading-none"},"🌟",-1),(0,n.createElementVNode)("span",null,"Customize for your class",-1)])))):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("button",{type:"button",class:(0,n.normalizeClass)(["flex items-center gap-2 rounded-full border px-4 py-2.5 text-sm font-semibold transition hover:scale-105",r.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,n.openBlock)(),(0,n.createElementBlock)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:r.isBookmarked?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8"},o(t[3]||(t[3]=[(0,n.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,m)),t[4]||(t[4]=(0,n.createElementVNode)("span",null,"Save",-1))],2)])])])]),r.resource.published_at_formatted?((0,n.openBlock)(),(0,n.createElementBlock)("span",b,"Posted on "+(0,n.toDisplayString)(r.resource.published_at_formatted),1)):(0,n.createCommentVNode)("",!0)],64)}]])},75986:(e,t,r)=>{r.d(t,{Z:()=>T});var n=r(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"},d={class:"w-[22px] flex-shrink-0"},u=["src"],p=["href"],f={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"},m=["href"],b={key:2,class:"relative group seal-group"},v=["href"],g=["src"],h={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"},x=["href"],w={key:3,class:"relative group seal-group inline-flex ml-2 mt-2 lg:mt-0"},y=["href"],k=["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]"},V=["href"],N={key:4,class:"mt-[60px] lg:mt-[80px] bg-[#556FA4] rounded-xl px-[36px] py-[28px] flex items-center gap-[28px]"},B=["src"],A=["href"];const 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 C=r(93379),j=r.n(C),F=r(37493),z={insert:"head",singleton:!1};j()(F.Z,z);F.Z.locals;const T=(0,r(83744).Z)(S,[["render",function(e,t,r,S,C,j){return"header"===r.variant?((0,n.openBlock)(),(0,n.createElementBlock)("div",o,[(0,n.createElementVNode)("a",{href:j.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,n.createElementVNode)("img",{src:j.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,n.createElementVNode)("div",i,[t[0]||(t[0]=(0,n.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,n.createElementVNode)("a",{href:j.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,s)])])):"row"===r.variant?((0,n.openBlock)(),(0,n.createElementBlock)("div",c,[(0,n.createElementVNode)("div",d,[(0,n.createElementVNode)("img",{src:j.sealImageUrl,alt:"",class:"w-5 h-5"},null,8,u)]),(0,n.createElementVNode)("div",null,[(0,n.createElementVNode)("a",{href:j.sealPageUrl,target:"_blank",rel:"noopener",class:"underline","aria-label":"Scientist Reviewed — learn about our review process"},"Scientist Reviewed",8,p)]),(0,n.createElementVNode)("div",f,[t[1]||(t[1]=(0,n.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,n.createElementVNode)("a",{href:j.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,m)])])):"badge"===r.variant?((0,n.openBlock)(),(0,n.createElementBlock)("div",b,[(0,n.createElementVNode)("a",{href:j.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,n.createElementVNode)("img",{src:j.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,g)],8,v),(0,n.createElementVNode)("div",h,[t[2]||(t[2]=(0,n.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,n.createElementVNode)("a",{href:j.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,x)])])):"pill"===r.variant?((0,n.openBlock)(),(0,n.createElementBlock)("div",w,[(0,n.createElementVNode)("a",{href:j.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,n.createElementVNode)("img",{src:j.sealImageUrl,alt:"",class:"w-[18px] h-[18px]"},null,8,k),t[3]||(t[3]=(0,n.createElementVNode)("span",null,"Scientist Reviewed",-1))],8,y),(0,n.createElementVNode)("div",E,[t[4]||(t[4]=(0,n.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,n.createElementVNode)("a",{href:j.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process → ",8,V)])])):"banner"===r.variant?((0,n.openBlock)(),(0,n.createElementBlock)("div",N,[(0,n.createElementVNode)("img",{src:j.sealImageUrl,alt:"Scientist Reviewed Seal",class:"hidden lg:block w-[110px] h-[110px] flex-shrink-0 opacity-90"},null,8,B),(0,n.createElementVNode)("div",null,[t[5]||(t[5]=(0,n.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>
1<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,n.createElementVNode)("a",{href:j.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,A)])])):(0,n.createCommentVNode)("",!0)}],["__scopeId","data-v-0a41b8e1"]])}}]);
2//# sourceMappingURL=StcMaterial-components-ResourceCard-vue.9a8d4ef2.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.