vendor: 4,414 bytes, lines 1-2
1/*! For license information please see teacher-guides-components-GuideCard-vue.f205f351.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[3106],{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 m?t:m,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 p={};function m(){}function h(){}function v(){}var y={};u(y,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==t&&r.call(b,l)&&(y=b);var k=v.prototype=m.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(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 N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)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===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(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,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;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,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function B(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function E(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:N}}function N(){return{value:void 0,done:!0}}return h.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new x(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(k),u(k,s,"Generator"),u(k,l,(function(){return this})),u(k,"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=E,_.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(I),!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,p):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),p},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),I(r),p}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},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:()=>m,VK:()=>h,aU:()=>v,ob:()=>p,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 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 m(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 h(){return new URLSearchParams(window.location.search).get("queryUid")}function v(){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}}},45230:(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,"@media (max-width:640px){.relative[data-v-4b4bbf4e]{aspect-ratio:16/7}}.animate-pulse[data-v-4b4bbf4e]{animation:pulse-4b4bbf4e 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-4b4bbf4e{0%,to{opacity:1}50%{opacity:.5}}",""]);const i=o},91274:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(1519),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".line-clamp-2[data-v-1d6d3356]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.animate-pulse[data-v-1d6d3356]{animation:pulse-1d6d3356 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-1d6d3356{0%,to{opacity:1}50%{opacity:.5}}",""]);const i=o},38923:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(1519),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".animate-pulse[data-v-03bc7326]{animation:pulse-03bc7326 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-03bc7326{0%,to{opacity:1}50%{opacity:.5}}",""]);const i=o},93903:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(41916),o={class:"text-sm text-gray-500"};var i=r(28415),a=r(47393),l=r(87879);const c={components:{BaseCard:i.Z},props:{guide:{type:Object,required:!0},view:{type:String,default:"mobile",validator:function(e){return["mobile","mobile-grid","desktop"].includes(e)}},isBookmarked:{type:Boolean,default:!1},position:{type:Number,default:null},queryUid:{type:String,default:null}},emits:["bookmark"],setup:function(e){var t,r,n,o,i={title:e.guide.title,image:e.guide.image,subtitle:e.guide.readTime},a=(0,l.qt)();return{formattedGuide:i,teacherGuidesIndex:(null===(t=a.props.integrations)||void 0===t||null===(r=t.meilisearch)||void 0===r?void 0:r.teacherGuidesIndex)||(null===(n=a.props.integrations)||void 0===n||null===(o=n.algolia)||void 0===o?void 0:o.teacherGuidesIndex)||"teacher_guides"}},computed:{guideUrl:function(){var e=this.guide.url;if(e&&this.queryUid){var t=e.includes("?")?"&":"?";return e+t+"queryUid="+encodeURIComponent(this.queryUid)}return e}},methods:{handleClick:function(){(0,a.ob)({indexUid:this.teacherGuidesIndex,objectId:String(this.guide.id),objectName:this.guide.title,position:this.position,queryUid:this.queryUid})}}};var s=r(93379),u=r.n(s),d=r(45230),f={insert:"head",singleton:!1};u()(d.Z,f);d.Z.locals;const p=(0,r(83744).Z)(c,[["render",function(e,t,r,i,a,l){var c=(0,n.resolveComponent)("BaseCard");return(0,n.openBlock)(),(0,n.createBlock)(c,{item:i.formattedGuide,view:r.view,"is-bookmarked":r.isBookmarked,"show-stats":!1,to:l.guideUrl,"fallback-image":"/img/teacher-guides/placeholder.webp",onBookmark:t[0]||(t[0]=function(t){return e.$emit("bookmark",r.guide)}),onClick:l.handleClick},{subtitle:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("p",o,(0,n.toDisplayString)(r.guide.readTime),1)]})),_:1},8,["item","view","is-bookmarked","to","onClick"])}],["__scopeId","data-v-4b4bbf4e"]])},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(#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">
2<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)])))}]])},28415:(e,t,r)=>{r.d(t,{Z:()=>Z});var n=r(41916);var o={class:"bg-white rounded-xl overflow-hidden border border-gray-900/10 group flex h-28"},i={class:"overflow-hidden w-1/3"};var a=r(87879),l={class:"relative"},c={class:"absolute inset-0 bg-gray-200 animate-pulse"},s=["src","alt"];const u={props:{image:{type:String,required:!0},title:{type:String,required:!0},fallbackImage:{type:String,required:!0}},setup:function(e){var t=(0,n.ref)(!0);return{isLoading:t,handleImageError:function(r){r.target.src=e.fallbackImage,t.value=!1}}}};var d=r(93379),f=r.n(d),p=r(38923),m={insert:"head",singleton:!1};f()(p.Z,m);p.Z.locals;var h=r(83744);const v=(0,h.Z)(u,[["render",function(e,t,r,o,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.withDirectives)((0,n.createElementVNode)("div",c,null,512),[[n.vShow,o.isLoading]]),(0,n.createElementVNode)("img",{src:r.image,alt:r.title,onLoad:t[0]||(t[0]=function(e){return o.isLoading=!1}),onError:t[1]||(t[1]=function(){return o.handleImageError&&o.handleImageError.apply(o,arguments)}),class:(0,n.normalizeClass)(["w-full h-full object-cover group-hover:opacity-80 duration-150 group-hover:scale-105",{"opacity-0":o.isLoading}])},null,42,s)])}],["__scopeId","data-v-03bc7326"]]);function y(e){return function(e){if(Array.isArray(e))return g(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 g(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 g(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 g(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 b={class:"p-4"},k={key:0,class:"animate-pulse"};const w={props:{title:{type:String,required:!0},view:{type:String,required:!0,validator:function(e){return["mobile","mobile-grid","desktop"].includes(e)}},pretitle:{type:String,default:""},clampTitle:{type:Boolean,default:!0}},setup:function(){return{isLoading:(0,n.ref)(!1)}}};var x=r(91274),C={insert:"head",singleton:!1};f()(x.Z,C);x.Z.locals;const S=(0,h.Z)(w,[["render",function(e,t,r,o,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("div",b,[o.isLoading?((0,n.openBlock)(),(0,n.createElementBlock)("div",k,y(t[0]||(t[0]=[(0,n.createElementVNode)("div",{class:"h-4 bg-gray-200 rounded w-3/4 mb-2"},null,-1),(0,n.createElementVNode)("div",{class:"h-3 bg-gray-200 rounded w-1/4"},null,-1)])))):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[e.$slots.pretitle||r.pretitle?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["text-sm text-gray-600 mb-1","mobile-grid"===r.view?"text-xs":""])},[(0,n.renderSlot)(e.$slots,"pretitle",{},(function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(r.pretitle),1)]}),!0)],2)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("h3",{class:(0,n.normalizeClass)(["font-medium mb-2",r.clampTitle?"line-clamp-3":"","mobile"===r.view?"text-sm":"","mobile-grid"===r.view?"text-sm":"","desktop"===r.view?"text-lg group-hover:text-blue-600":""])},[(0,n.renderSlot)(e.$slots,"title",{},(function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(r.title),
21)]}),!0)],2),(0,n.renderSlot)(e.$slots,"description",{},void 0,!0),(0,n.renderSlot)(e.$slots,"subtitle",{},void 0,!0)],64))])}],["__scopeId","data-v-1d6d3356"]]),B={components:{Link:a.rU,CardImage:v,CardContent:S},props:{item:{type:Object,required:!0},to:{type:String,required:!0},fallbackImage:{type:String,required:!0}},emits:["click"]},I=(0,h.Z)(B,[["render",function(e,t,r,a,l,c){var s=(0,n.resolveComponent)("CardImage"),u=(0,n.resolveComponent)("CardContent"),d=(0,n.resolveComponent)("Link");return(0,n.openBlock)(),(0,n.createElementBlock)("div",o,[(0,n.createVNode)(d,{href:r.to,class:"block w-full h-full flex",onClick:t[0]||(t[0]=function(t){return e.$emit("click")})},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",i,[(0,n.createVNode)(s,{image:r.item.image,title:r.item.title,"fallback-image":r.fallbackImage,class:"h-full"},null,8,["image","title","fallback-image"])]),(0,n.createVNode)(u,{title:r.item.title,view:"mobile",class:"flex-1"},{pretitle:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"pretitle")]})),subtitle:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"subtitle")]})),_:3},8,["title"])]})),_:3},8,["href"])])}]]);var _={class:"bg-white rounded-xl overflow-hidden border border-gray-900/10 group block"},E={class:"overflow-hidden w-full"};const N={components:{Link:a.rU,CardImage:v,CardContent:S},props:{item:{type:Object,required:!0},to:{type:String,required:!0},fallbackImage:{type:String,required:!0}},emits:["click"]},L=(0,h.Z)(N,[["render",function(e,t,r,o,i,a){var l=(0,n.resolveComponent)("CardImage"),c=(0,n.resolveComponent)("CardContent"),s=(0,n.resolveComponent)("Link");return(0,n.openBlock)(),(0,n.createElementBlock)("div",_,[(0,n.createVNode)(s,{href:r.to,class:"block w-full h-full flex flex-col",onClick:t[0]||(t[0]=function(t){return e.$emit("click")})},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",E,[(0,n.createVNode)(l,{image:r.item.image,title:r.item.title,"fallback-image":r.fallbackImage,style:{"aspect-ratio":"16/9"}},null,8,["image","title","fallback-image"])]),(0,n.createVNode)(c,{title:r.item.title,view:"mobile-grid",class:"flex-1"},{pretitle:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"pretitle")]})),subtitle:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"subtitle")]})),_:3},8,["title"])]})),_:3},8,["href"])])}]]);var j={class:"bg-white rounded-xl overflow-hidden border border-gray-900/10 group shadow-sm hover:border-gray-900/20 relative"},U={class:"overflow-hidden w-full"},q={key:0,class:"absolute top-3 left-3 bg-white/90 backdrop-blur-sm px-2 py-1 rounded-full items-center space-x-1 border border-gray-900/10 hidden lg:flex"},$={class:"text-sm text-gray-700"};var V=r(85521);const O={components:{Link:a.rU,CardImage:v,CardContent:S,BookmarkingIcon:V.Z},props:{item:{type:Object,required:!0},to:{type:String,required:!0},isBookmarked:{type:Boolean,default:!1},showBookmark:{type:Boolean,default:!0},showStats:{type:Boolean,default:!1},fallbackImage:{type:String,required:!0}},emits:["bookmark","click"]},A=(0,h.Z)(O,[["render",function(e,t,r,o,i,a){var l=(0,n.resolveComponent)("BookmarkingIcon"),c=(0,n.resolveComponent)("CardImage"),s=(0,n.resolveComponent)("CardContent"),u=(0,n.resolveComponent)("Link");return(0,n.openBlock)(),(0,n.createElementBlock)("div",j,[(0,n.createVNode)(u,{href:r.to,class:"block w-full h-full",onClick:t[1]||(t[1]=function(t){return e.$emit("click")})},{default:(0,n.withCtx)((function(){return[r.showBookmark?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:0,onClick:t[0]||(t[0]=(0,n.withModifiers)((function(t){return e.$emit("bookmark")}),["prevent","stop"])),class:"absolute top-0 right-0 w-8 h-8 flex items-center justify-center z-10 hidden sm:flex"},[(0,n.createVNode)(l,{class:(0,n.normalizeClass)(["absolute top-0 right-4 z-10 hover:scale-105 duration-150",r.isBookmarked?"text-[#FF8B8B]":"text-[#FFF4F4] hover:text-[#ffdddd]"])},null,8,["class"])])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",U,[(0,n.createVNode)(c,{image:r.item.image,title:r.item.title,"fallback-image":r.fallbackImage,style:{"aspect-ratio":"16/9"}}
2,null,8,["image","title","fallback-image"]),r.showStats?((0,n.openBlock)(),(0,n.createElementBlock)("div",q,[(0,n.renderSlot)(e.$slots,"stats-icon"),(0,n.createElementVNode)("span",$,[(0,n.renderSlot)(e.$slots,"stats-text")])])):(0,n.createCommentVNode)("",!0)]),(0,n.createVNode)(s,{title:r.item.title,view:"desktop"},{pretitle:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"pretitle")]})),subtitle:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"subtitle")]})),description:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"description")]})),_:3},8,["title"])]})),_:3},8,["href"])])}]]),T={props:{item:{type:Object,required:!0,validator:function(e){return e.title&&e.image}},to:{type:String,required:!0},view:{type:String,default:"mobile",validator:function(e){return["mobile","mobile-grid","desktop"].includes(e)}},isBookmarked:{type:Boolean,default:!1},showBookmark:{type:Boolean,default:!0},showStats:{type:Boolean,default:!1},fallbackImage:{type:String,default:"/img/placeholder.webp"}},emits:["bookmark","click"],setup:function(e){return{cardComponent:(0,n.computed)((function(){switch(e.view){case"mobile":default:return I;case"mobile-grid":return L;case"desktop":return A}}))}}},Z=(0,h.Z)(T,[["render",function(e,t,r,o,i,a){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(o.cardComponent),{item:r.item,to:r.to,"is-bookmarked":r.isBookmarked,"show-bookmark":r.showBookmark,"show-stats":r.showStats,"fallback-image":r.fallbackImage,onBookmark:t[0]||(t[0]=function(t){return e.$emit("bookmark",r.item)}),onClick:t[1]||(t[1]=function(t){return e.$emit("click")})},(0,n.createSlots)({_:2},[e.$slots.pretitle?{name:"pretitle",fn:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"pretitle")]})),key:"0"}:void 0,e.$slots["stats-icon"]?{name:"stats-icon",fn:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"stats-icon")]})),key:"1"}:void 0,e.$slots["stats-text"]?{name:"stats-text",fn:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"stats-text")]})),key:"2"}:void 0,e.$slots.description?{name:"description",fn:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"description")]})),key:"3"}:void 0,e.$slots.subtitle?{name:"subtitle",fn:(0,n.withCtx)((function(){return[(0,n.renderSlot)(e.$slots,"subtitle")]})),key:"4"}:void 0]),1064,["item","to","is-bookmarked","show-bookmark","show-stats","fallback-image"])}]])}}]); 3//# sourceMappingURL=teacher-guides-components-GuideCard-vue.f205f351.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.