1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[4975],{37493:(e,t,r)=>{r.d(t,{Z:()=>n});var o=r(1519),a=r.n(o)()((function(e){return e[1]}));a.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 n=a},66950:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var o=r(41916);function a(e){return function(e){if(Array.isArray(e))return n(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 n(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 n(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 n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var l={class:"overflow-hidden rounded-xl shadow-lg bg-white relative"},i={class:"relative"},s=["innerHTML"],c={class:"absolute top-3 right-3"},d={class:"px-[16px] pt-[20px] pb-[20px]"},u={key:0},p={key:1},m={class:"mt-3 flex items-center gap-2"},f=["fill"],b={key:0,class:"text-[14px] block mt-[14px]"};r(72326);var v=r(87879),g=r(95785),h=r(75986);const x={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:{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)(x,[["render",function(e,t,r,n,v,g){var h=(0,o.resolveComponent)("ScientistReviewedSeal"),x=(0,o.resolveComponent)("PrimaryButton");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",{innerHTML:r.resource.responsive_image_html,class:"w-full h-full duration-150 object-cover"},null,8,s),(0,o.createElementVNode)("div",c,[(0,o.createVNode)(h,{variant:"badge"})])]),(0,o.createElementVNode)("div",d,[(0,o.createElementVNode)("div",null,[(0,o.createVNode)(x,{class:"text-[16px] !rounded-full",href:r.resource.teachable.url,target:"_blank"},{default:(0,o.withCtx)((function(){return[r.isActivity?((0,o.openBlock)(),(0,o.createElementBlock)("span",u,"View Activity")):((0,o.openBlock)(),(0,o.createElementBlock)("span",p,"View Lesson Plan"))]})),_:1},8,["href"]),(0,o.createElementVNode)("div",m,[r.onLocalize&&g.localizationEnabled?((0,o.openBlock)(),(0,o.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 g.openLocalizeModal&&g.openLocalizeModal.apply(g,arguments)})},a(t[2]||(t[2]=[(0,o.createElementVNode)("span",{class:"text-base leading-none"},"ð",-1),(0,o.createElementVNode)("span",null,"Customize for your class",-1)])))):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("button",{type:"button",class:(0,o.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,o.openBlock)(),(0,o.createElementBlock)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:r.isBookmarked?"currentColor":"none",stroke:"currentColor","stroke-width":"1.8"},a(t[3]||(t[3]=[(0,o.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,o.createElementVNode)("span",null,"Save",-1))],2)])])])]),r.resource.published_at_formatted?((0,o.openBlock)(),(0,o.createElementBlock)("span",b,"Posted on "+(0,o.toDisplayString)(r.resource.published_at_formatted),1)):(0,o.createCommentVNode)("",!0)],64)}]])},75986:(e,t,r)=>{r.d(t,{Z:()=>U});var o=r(41916),a={key:0,class:"relative flex-shrink-0 group seal-group pb-2"},n=["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"],m={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"],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"],k={key:3,class:"relative group seal-group inline-flex ml-2 mt-2 lg:mt-0"},w=["href"],y=["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"];
1const 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),F=r.n(C),T=r(37493),_={insert:"head",singleton:!1};F()(T.Z,_);T.Z.locals;const U=(0,r(83744).Z)(S,[["render",function(e,t,r,S,C,F){return"header"===r.variant?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createElementVNode)("a",{href:F.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,o.createElementVNode)("img",{src:F.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,n),(0,o.createElementVNode)("div",i,[t[0]||(t[0]=(0,o.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,o.createElementVNode)("a",{href:F.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,o.openBlock)(),(0,o.createElementBlock)("div",c,[(0,o.createElementVNode)("div",d,[(0,o.createElementVNode)("img",{src:F.sealImageUrl,alt:"",class:"w-5 h-5"},null,8,u)]),(0,o.createElementVNode)("div",null,[(0,o.createElementVNode)("a",{href:F.sealPageUrl,target:"_blank",rel:"noopener",class:"underline","aria-label":"Scientist Reviewed â learn about our review process"},"Scientist Reviewed",8,p)]),(0,o.createElementVNode)("div",m,[t[1]||(t[1]=(0,o.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,o.createElementVNode)("a",{href:F.sealPageUrl,target:"_blank",rel:"noopener",class:"block mt-2 font-semibold text-[#556FA4] hover:underline"}," Learn about our review process â ",8,f)])])):"badge"===r.variant?((0,o.openBlock)(),(0,o.createElementBlock)("div",b,[(0,o.createElementVNode)("a",{href:F.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,o.createElementVNode)("img",{src:F.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,o.createElementVNode)("div",h,[t[2]||(t[2]=(0,o.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,o.createElementVNode)("a",{href:F.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,o.openBlock)(),(0,o.createElementBlock)("div",k,[(0,o.createElementVNode)("a",{href:F.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,o.createElementVNode)("img",{src:F.sealImageUrl,alt:"",class:"w-[18px] h-[18px]"},null,8,y),t[3]||(t[3]=(0,o.createElementVNode)("span",null,"Scientist Reviewed",-1))],8,w),(0,o.createElementVNode)("div",E,[t[4]||(t[4]=(0,o.createTextVNode)(" This resource has been reviewed by SubjectToClimate's climate scientists and verified for scientific accuracy and up-to-date information. ",-1)),(0,o.createElementVNode)("a",{href:F.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,o.openBlock)(),(0,o.createElementBlock)("div",N,[(0,o.createElementVNode)("img",{src:F.sealImageUrl,alt:"Scientist Reviewed Seal",class:"hidden lg:block w-[110px] h-[110px] flex-shrink-0 opacity-90"},null,8,B),(0,o.createElementVNode)("div",null,[t[5]||(t[5]=(0,o.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'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,o.createElementVNode)("a",{href:F.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,o.createCommentVNode)("",!0)}],["__scopeId","data-v-0a41b8e1"]])}}]); 2//# sourceMappingURL=StcMaterial-components-ResourceCard-vue.06e11fa9.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.