PageSourceSearch

https://edusources.nl/assets/MaterialCardComponent-BHvZiF-t.js

js edusources.nl collected 2026-10-02 07:50:43 UTC 24,700 bytes, 286 lines download raw bytes

1;
2{
3  try {
4    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "abd1a0a3-6aa7-44ae-939b-e9fb1383d64e", e._sentryDebugIdIdentifier = "sentry-dbid-abd1a0a3-6aa7-44ae-939b-e9fb1383d64e");
6  } catch (e) {
7  }
8}
9;
10import { aL as i18n, d as defineComponent, i as toRefs, o as openBlock, g as createBlock, f as unref, u as useI18n, aO as useDisplay, l as computed, r as resolveComponent, a4 as resolveDirective, n as normalizeClass, w as withCtx, b as createVNode, e as createTextVNode, t as toDisplayString, h as createBaseVNode, s as withDirectives, c as createElementBlock, x as createCommentVNode, _ as _export_sfc } from "./index-jnpBjG05.js";
11import { e as et } from "./index-CoS8Yj8D.js";
12const YEAR_ONLY_RE = /^\d{4}$|^\d{4}-01-01$/;
13const formatDate = function(date) {
14  if (!date) return;
15  const locale = i18n.global.locale.value;
16  if (YEAR_ONLY_RE.test(date)) {
17    const year = parseInt(date.slice(0, 4), 10);
18    if (isNaN(year)) return;
19    return new Date(year, 0, 1).toLocaleDateString(locale, { year: "numeric" });
20  }
21  const isISOString = date.includes("T");
22  const parsedDate = isISOString ? new Date(date) : new Date(date.replace(/-/g, "/"));
23  if (isNaN(parsedDate.getTime())) return;
24  return parsedDate.toLocaleDateString(locale, {
25    day: "numeric",
26    month: "long",
27    year: "numeric"
28  });
29};
30const isNotProd = !window.VITE_SEARCH_SERVICE_URL.includes("https://search.prod.cxp.surf.nl");
31const src$a = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.9847 14.5C14.9847 15.0523 14.537 15.5 13.9847 15.5H2.01538C1.4631 15.5 1.01538 15.0523 1.01538 14.5V1.5C1.01538 0.947715 1.4631 0.5 2.01538 0.5H12.0154C12.2762 0.500026 12.5266 0.601937 12.7134 0.784L14.6834 2.706C14.8762 2.89431 14.9849 3.15248 14.9847 3.422V14.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.8125 10.1871L10.1875 5.81207M6.22291 8.00876C5.69283 7.97822 5.17489 8.17527 4.79916 8.55043L3.86166 9.48793C3.38799 9.96161 3.20299 10.652 3.37637 11.2991C3.54975 11.9461 4.05515 12.4515 4.7022 12.6249C5.34926 12.7983 6.03965 12.6133 6.51333 12.1396L7.45083 11.2021C7.82598 10.8264 8.02303 10.3084 7.99249 9.77835M9.77708 7.98999C10.3072 8.02048 10.8251 7.82344 11.2008 7.44832L12.1383 6.51082C12.612 6.03715 12.797 5.34675 12.6236 4.6997C12.4502 4.05265 11.9448 3.54725 11.2978 3.37387C10.6507 3.20049 9.96034 3.38548 9.48667 3.85916L8.54917 4.79666C8.1749 5.17284 7.97866 5.69066 8.00958 6.22041" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
32const src$9 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg"><g id="document-4169006936__Group"><g id="document-4169006936__common-file-text"><path id="document-4169006936__Shape" fill-rule="evenodd" clip-rule="evenodd" d="M15 14.5C15 15.0523 14.5523 15.5 14 15.5H2C1.44772 15.5 1 15.0523 1 14.5V1.5C1 0.947715 1.44772 0.5 2 0.5H12.03C12.291 0.499852 12.5418 0.601776 12.7287 0.784L14.698 2.706C14.8911 2.89419 15 3.15238 15 3.422V14.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path id="document-4169006936__Shape_2" d="M4.03003 5.5H12.03" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path id="document-4169006936__Shape_3" d="M4.03003 8.5H12.03" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path id="document-4169006936__Shape_4" d="M4.03003 11.5H8.03003" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>`;
33const src$8 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.9847 14.5C14.9847 15.0523 14.537 15.5 13.9847 15.5H2.01538C1.4631 15.5 1.01538 15.0523 1.01538 14.5V1.5C1.01538 0.947715 1.4631 0.5 2.01538 0.5H12.0154C12.2762 0.500026 12.5266 0.601937 12.7134 0.784L14.6834 2.706C14.8762 2.89431 14.9849 3.15248 14.9847 3.422V14.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
33<path fill-rule="evenodd" clip-rule="evenodd" d="M6 9.87811V5.81347C6.00001 5.64053 6.09693 5.48096 6.25371 5.39577C6.41048 5.31058 6.60288 5.31294 6.75733 5.40195L10.2853 7.43395C10.4362 7.52064 10.5285 7.67701 10.5285 7.84579C10.5285 8.01456 10.4362 8.17094 10.2853 8.25763L6.75733 10.2896C6.60288 10.3786 6.41048 10.381 6.25371 10.2958C6.09693 10.2106 6.00001 10.0511 6 9.87811H6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
34const src$7 = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.27826 12.2514V8.25137C3.27826 7.69908 3.69613 7.25137 4.21159 7.25137C4.72706 7.25137 5.14493 7.69908 5.14493 8.25137V12.2514M3.27826 10.254H5.14493M10.7449 12.254V7.25401M10.7449 7.25137H11.2116C11.9848 7.25137 12.6116 7.92294 12.6116 8.75137C12.6116 9.57979 11.9848 10.2514 11.2116 10.2514H10.7449M7.0116 12.254V7.25401M7.0116 7.25137H7.47826C8.25146 7.25137 8.87826 7.92294 8.87826 8.75137C8.87826 9.57979 8.25146 10.2514 7.47826 10.2514H7.0116M14.671 2.67075L13.1801 1.07626C12.9879 0.8707 12.7191 0.754028 12.4377 0.754028H1.96134C1.4 0.754028 0.944946 1.20909 0.944946 1.77043V14.7376C0.944946 15.299 1.4 15.754 1.96134 15.754H13.9285C14.4899 15.754 14.9449 15.299 14.9449 14.7376L14.9449 3.36492C14.9449 3.10716 14.847 2.85902 14.671 2.67075Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
35const src$6 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 14.4988C15 15.0511 14.5523 15.4988 14 15.4988H2C1.44772 15.4988 1 15.0511 1 14.4988V1.49878C1 0.946495 1.44772 0.498779 2 0.498779H12C12.261 0.498632 12.5118 0.600555 12.6987 0.782779L14.6987 2.70478C14.8915 2.89309 15.0001 3.15126 15 3.42078V14.4988Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.50134 4.83211C4.50134 4.64802 4.65058 4.49878 4.83468 4.49878H11.168C11.3521 4.49878 11.5013 4.64802 11.5013 4.83211V9.16545C11.5013 9.34954 11.3521 9.49878 11.168 9.49878H4.83468C4.65058 9.49878 4.50134 9.34954 4.50134 9.16545V4.83211Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.00134 9.49878V12.4988" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.00134 12.4988L8.00134 10.4988" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.0013 12.4988L8.00134 10.4988" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
36const src$5 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.9847 14.5C14.9847 15.0523 14.537 15.5 13.9847 15.5H2.01538C1.4631 15.5 1.01538 15.0523 1.01538 14.5V1.5C1.01538 0.947715 1.4631 0.5 2.01538 0.5H12.0154C12.2762 0.500026 12.5266 0.601937 12.7134 0.784L14.6834 2.706C14.8762 2.89431 14.9849 3.15248 14.9847 3.422V14.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 4.53417V11.9017M7.77417 11.8621C7.92026 11.9147 8.08016 11.9147 8.22625 11.8621C9.38183 11.4059 10.6549 11.3403 11.8513 11.6754C12.0518 11.7268 12.2649 11.6825 12.4284 11.5555C12.5919 11.4284 12.6874 11.2329 12.6871 11.0258V5.05332C12.6865 4.76222 12.4978 4.50488 12.2204 4.41666C10.9214 3.96903 9.50546 3.99857 8.22625 4.49999C8.0801 4.5523 7.92032 4.5523 7.77417 4.49999C6.49481 3.99858 5.07874 3.96904 3.77958 4.41666C3.50201 4.50473 3.31318 4.76211 3.3125 5.05332V11.0258C3.3122 11.2329 3.40771 11.4284 3.5712 11.5555C3.73469 11.6825 3.94776 11.7268 4.14833 11.6754C5.34493 11.3402 6.61832 11.4058 7.77417 11.8621Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
37const src$4 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="audio-2429262629__Group"><g id="audio-2429262629__audio-file"><path id="audio-2429262629__Oval" fill-rule="evenodd" clip-rule="evenodd" d="M5 11.7192C5.55228 11.7192 6 11.2715 6 10.7192C6 10.167 5.55228 9.71924 5 9.71924C4.44772 9.71924 4 10.167 4 10.7192C4 11.2715 4.44772 11.7192 5 11.7192Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
37<path id="audio-2429262629__Oval_2" fill-rule="evenodd" clip-rule="evenodd" d="M10 10.7192C10.5523 10.7192 11 10.2715 11 9.71924C11 9.16695 10.5523 8.71924 10 8.71924C9.44772 8.71924 9 9.16695 9 9.71924C9 10.2715 9.44772 10.7192 10 10.7192Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path id="audio-2429262629__Shape" d="M11 9.71948V6.00014C11 5.6922 10.8581 5.40145 10.6153 5.21197C10.3726 5.02249 10.0561 4.95542 9.75733 5.03014L6.75733 5.53014C6.31227 5.64147 6.00005 6.04137 6 6.50014V10.7195" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path id="audio-2429262629__Shape_2" fill-rule="evenodd" clip-rule="evenodd" d="M15 14.5C15 15.0523 14.5523 15.5 14 15.5H2C1.44772 15.5 1 15.0523 1 14.5V1.5C1 0.947715 1.44772 0.5 2 0.5H12C12.2608 0.500026 12.5113 0.601937 12.698 0.784L14.698 2.706C14.8911 2.89419 15 3.15238 15 3.422V14.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>`;
38const src$3 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.0154 14.5C15.0154 15.0523 14.5667 15.5 14.0132 15.5H2.01758C1.46408 15.5 1.01538 15.0523 1.01538 14.5V1.5C1.01538 0.947715 1.46408 0.5 2.01758 0.5H12.0395C12.3009 0.500026 12.5519 0.601937 12.7391 0.784L14.7134 2.706C14.9066 2.89431 15.0155 3.15248 15.0154 3.422V14.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 12H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 6H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 10H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 8H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 12L4 4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 12L7 4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 12L12 4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 4H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
39const src$2 = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 12.5L5.28968 9.33474C5.4622 9.09609 5.72613 8.94683 6.01306 8.92565C6.29999 8.90446 6.58166 9.01345 6.78505 9.22434L7.46429 9.92857L9.64683 6.91143C9.83418 6.65243 10.1282 6.5 10.4405 6.5C10.7527 6.5 11.0468 6.65243 11.2341 6.91143L13 9.35257M1 12.5H15M14.9847 15C14.9847 15.5523 14.537 16 13.9847 16H2.01538C1.4631 16 1.01538 15.5523 1.01538 15V2C1.01538 1.44772 1.4631 1 2.01538 1H12.0154C12.2762 1.00003 12.5266 1.10194 12.7134 1.284L14.6834 3.206C14.8762 3.39431 14.9849 3.65248 14.9847 3.922V15ZM4.5 6.5C5.32843 6.5 6 5.82843 6 5C6 4.17157 5.32843 3.5 4.5 3.5C3.67157 3.5 3 4.17157 3 5C3 5.82843 3.67157 6.5 4.5 6.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
40const src$1 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.9847 14.5C14.9847 15.0523 14.537 15.5 13.9847 15.5H2.01538C1.4631 15.5 1.01538 15.0523 1.01538 14.5V1.5C1.01538 0.947715 1.4631 0.5 2.01538 0.5H12.0154C12.2762 0.500026 12.5266 0.601937 12.7134 0.784L14.6834 2.706C14.8762 2.89431 14.9849 3.15248 14.9847 3.422V14.5Z" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.8125 10.1871L10.1875 5.81207M6.22291 8.00876C5.69283 7.97822 5.17489 8.17527 4.79916 8.55043L3.86166 9.48793C3.38799 9.96161 3.20299 10.652 3.37637 11.2991C3.54975 11.9461 4.05515 12.4515 4.7022 12.6249C5.34926 12.7983 6.03965 12.6133 6.51333 12.1396L7.45083 11.2021C7.82598 10.8264 8.02303 10.3084 7.99249 9.77835M9.77708 7.98999C10.3072 8.02048 10.8251 7.82344 11.2008 7.44832L12.1383 6.51082C12.612 6.03715 12.797 5.34675 12.6236 4.6997C12.4502 4.05265 11.9448 3.54725 11.2978 3.37387C10.6507 3.20049 9.96034 3.38548 9.48667 3.85916L8.54917 4.79666C8.1749 5.17284 7.97866 5.69066 8.00958 6.22041" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
41const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42  __name: "MaterialTechnicalTypeIconComponent",
43  props: {
44    technicalType: { default: void 0 },
45    size: { default: "24" },
46    color: { default: "customColor" }
47  },
48  setup(__props) {
49    const props = __props;
50    const { technicalType, size, color } = toRefs(props);
51    const technicalTypeIcon = (type) => {
52      return fileTypes[type] || src$9;
53    };
54    const fileTypes = {
55      app: src$7,
56      audio: src$4,
57      document: src$9,
58      image: src$2,
59      "openaccess-textbook": src$5,
60      link: src$a,
61      presentation: src$6,
62      spreadsheet: src$3,
63      video: src$8,
64      website: src$1,
65      "printable-object": src$9,
66      "degrees-video": src$8
67    };
68    return (_ctx, _cache) => {
69      return openBlock(), createBlock(unref(et), {
70        src: technicalTypeIcon(unref(technicalType)),
71        size: unref(size),
72        color: unref(color)
73      }, null, 8, ["src", "size", "color"]);
74    };
75  }
76});
77const src = `<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="4.5" y="8.83456" width="3" height="8.64" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><rect x="10.5" y="8.83456" width="3" height="8.64" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><rect x="16.5" y="8.83456" width="3" height="8.64" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21 20.3546H3V18.1946C3 17.7969 3.33579 17.4746 3.75 17.4746H20.25C20.6642 17.4746 21 17.7969 21 18.1946V20.3546Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M1.5 23.2346H22.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M1.5 20.3546H22.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21 5.95456V8.11456C21 8.51221 20.6642 8.83456 20.25 8.83456H3.75C3.33579 8.83456 3 8.51221 3 8.11456V5.95456L11.665 1.79584C11.876 1.69506 12.124 1.69506 12.335 1.79584L21 5.95456Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 5.95456H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
78const _hoisted_1 = {
79  key: 0,
80  class: "highlight mb-0 truncate3"
81};
82const _hoisted_2 = {
83  key: 1,
84  class: "summary mb-0 truncate3"
85};
86const _hoisted_3 = { class: "ml-1 educational-level-name" };
87const _hoisted_4 = { class: "ml-1 technical-type-name" };
88const _hoisted_5 = {
89  key: 1,
90  class: "author"
91};
92const _hoisted_6 = {
93  key: 1,
94  class: "score"
95};
96const _sfc_main = /* @__PURE__ */ defineComponent({
97  __name: "MaterialCardComponent",
98  props: {
99    materialId: {},
100    title: {},
101    slug: {},
102    publishedAt: {},
103    authors: {},
104    parts: {},
105    summary: {},
106    educationalLevels: {},
107    technicalType: {},
108    context: { default: "row" },
109    highlight: { default: void 0 },
110    description: { default: "" },
111    score: { default: void 0 },
112    isIframe: { type: Boolean }
113  },
114  setup(__props) {
115    const { t, locale } = useI18n({ inheritLocale: true, useScope: "local" });
116    const props = __props;
117    const {
118      materialId,
119      title,
120      slug,
121      publishedAt,
122      authors,
123      parts,
124      summary,
125      educationalLevels,
126      technicalType,
127      highlight,
128      description,
129      score,
130      context = "row",
131      isIframe = false
132    } = toRefs(props);
133    const { xs } = useDisplay();
134    const showActions = () => {
135      return !xs || hasParts || hasAuthors;
136    };
137    const hasParts = () => {
138      return parts.value && parts.value.length > 0;
139    };
140    const hasAuthors = () => {
141      return authors.value && authors.value.length > 0;
142    };
143    const searchResultWithHighlights = computed(() => {
144      let summary2 = highlight.value?.description?.length ? highlight.value.description[0] + "</br>" : "";
145      summary2 += highlight.value?.text?.length ? highlight.value.text[0] : "";
146      if (!summary2) {
147        summary2 = description.value;
148      }
149      return summary2;
150    });
151    const translatedEducationalLevels = computed(() => {
152      return educationalLevels.value?.map((el) => locale.value == "en-US" ? el.en : el.nl).join(", ").toString() ?? "";
153    });
154    return (_ctx, _cache) => {
155      const _component_v_card_text = resolveComponent("v-card-text");
156      const _component_v_card_title = resolveComponent("v-card-title");
157      const _component_v_chip = resolveComponent("v-chip");
158      const _component_v_card_actions = resolveComponent("v-card-actions");
159      const _component_v_card = resolveComponent("v-card");
160      const _directive_dompurify_html = resolveDirective("dompurify-html");
161      return unref(materialId) ? (openBlock(), createBlock(_component_v_card, {
162        key: 0,
163        class: normalizeClass({ "card-flip": hasParts() }),
164        target: unref(isIframe) ? "_blank" : "",
165        to: { name: "material-details", params: { id: unref(materialId), slug: unref(slug) } },
166        variant: "flat"
167      }, {
168        default: withCtx(() => [
169          createVNode(_component_v_card_text, { class: "font-weight-bold text-gray-dark pb-3" }, {
170            default: withCtx(() => [
171              createTextVNode(toDisplayString(unref(publishedAt) ? unref(formatDate)(unref(publishedAt)) : unref(t)("date-unknown")), 1)
172            ]),
173            _: 1
174          }),
175          createVNode(_component_v_card_title, { class: "py-0 mt-0 mb-0" }, {
176            default: withCtx(() => [
177              createBaseVNode("h4", null, toDisplayString(unref(title)), 1)
178            ]),
179            _: 1
180          }),
181          createVNode(_component_v_card_text, { class: "pb-0" }, {
182            default: withCtx(() => [
183              unref(highlight) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1, null, 512)), [
184                [_directive_dompurify_html, searchResultWithHighlights.value]
185              ]) : withDirectives((openBlock(), createElementBlock("div", _hoisted_2, null, 512)), [
186                [_directive_dompurify_html, unref(summary)]
187              ])
188            ]),
189            _: 1
190          }),
191          createVNode(_component_v_card_text, {
192            class: normalizeClass(["metadata", { "justify-start": unref(context) === "column" }])
193          }, {
194            default: withCtx(() => [
195              createBaseVNode("div", {
196                class: normalizeClass(["educational-levels", { "row-layout": unref(context) === "row" }])
197              }, [
198                createVNode(unref(et), {
199                  src: unref(src),
200                  size: "26px"
201                }, null, 8, ["src"]),
202                createBaseVNode("div", _hoisted_3, toDisplayString(translatedEducationalLevels.value), 1)
203              ], 2),
204              unref(technicalType) ? (openBlock(), createElementBlock("div", {
205                key: 0,
206                class: normalizeClass(["technical-type", { "row-layout": unref(context) === "row" }])
207              }, [
208                createVNode(_sfc_main$1, {
209                  "technical-type": unref(technicalType),
210                  size: "24px"
211                }, null, 8, ["technical-type"]),
212                createBaseVNode("div", _hoisted_4, toDisplayString(unref(t)(unref(technicalType))), 1)
213              ], 2)) : createCommentVNode("", true)
214            ]),
215            _: 1
216          }, 8, ["class"]),
217          showActions() ? (openBlock(), createBlock(_component_v_card_actions, { key: 0 }, {
218            default: withCtx(() => [
219              hasParts() ? (openBlock(), createBlock(_component_v_chip, { key: 0 }, {
220                default: withCtx(() => [
221                  createBaseVNode("span", null, toDisplayString(unref(t)("set")) + " (" + toDisplayString(unref(parts).length) + ")", 1)
222                ]),
223                _: 1
224              })) : createCommentVNode("", true),
225              unref(authors) ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(unref(authors).join(", ")), 1)) : createCommentVNode("", true)
226            ]),
227            _: 1
228          })) : createCommentVNode("", true),
229          unref(isNotProd) ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(`${unref(t)("relevance")}: ${unref(score)}`), 1)) : createCommentVNode("", true)
230        ]),
231        _: 1
232      }, 8, ["class", "target", "to"])) : createCommentVNode("", true);
233    };
234  }
235});
236function block0(Component) {
237  const _Component = Component;
238  _Component.__i18n = _Component.__i18n || [];
239  _Component.__i18n.push({
240    "locale": "",
241    "resource": {
242      "en-US": {
243        "set": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Set" } },
244        "educational_level": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Educational level" } },
245        "app": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Application" } },
246        "audio": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Audio" } },
247        "document": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Document" } },
248        "image": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Image" } },
249        "openaccess-textbook": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Open (Access) Text Book" } },
250        "presentation": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Presentation" } },
251        "spreadsheet": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Spreadsheet" } },
252        "video": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Video" } },
253        "website": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Website" } },
254        "relevance": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Relevance" } },
255        "printable-object": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Printable Object" } },
256        "degrees-video": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "360 Degrees Video" } },
257        "date-unknown": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Date unknown" } }
258      },
259      "nl-NL": {
260        "set": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Verzameling" } },
261        "educational_level": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Onderwijsniveau" } },
262        "app": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Applicatie" } },
263        "audio": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Audio" } },
264        "document": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Document" } },
265        "image": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Afbeelding" } },
266        "openaccess-textbook": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Open (Access) Text Boek" } },
267        "presentation": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Presentatie" } },
268        "spreadsheet": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Spreadsheet" } },
269        "video": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Video" } },
270        "website": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Website" } },
271        "relevance": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Relevantie" } },
272        "printable-object": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Printbaar Object" } },
273        "degrees-video": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "360 Graden Video" } },
274        "date-unknown": { "t": 0, "b": { "t": 2, "i": [{ "t": 3 }], "s": "Datum onbekend" } }
275      }
276    }
277  });
278}
279if (typeof block0 === "function") block0(_sfc_main);
280const MaterialCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-665c7508"]]);
281export {
282  MaterialCard as M,
283  _sfc_main$1 as _,
284  formatDate as f
285};
286//# sourceMappingURL=MaterialCardComponent-BHvZiF-t.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.