PageSourceSearch

https://www.iu.de/build/assets/useProductServiceApi-hxiQO87Y.js

js iu.de collected 2026-10-02 02:57:51 UTC 2,310 bytes, 1 lines download raw bytes

1import{vn as e}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{s as t}from"./dist-B-kFk9Az.js";import{t as n}from"./ssr-F9GWYbf6.js";var r=`further-education`,i=new Set([`weiterbildung`,`training`,r]),a=[`weiterbildung`,`training`,`bachelor`,`master`,`mba`];function o(e,t){switch(e){case`1`:return`bachelor`;case`2`:return`master`;case`3`:return t===`obw`?`weiterbildung`:`training`;case`4`:return`master of business administration`;default:return``}}function s(e){let t=e.toLowerCase();return a.filter(e=>t.includes(e)).pop()??``}function c(e){return i.has(e.toLowerCase())}function l(e){let t=e.toLowerCase();return c(t)?`training`:t}function u(e,t){let n=e.trim();if(!n)return``;let r=o(n,t);if(r)return r;let i=n.toLowerCase();return i.startsWith(`bachelor`)?`bachelor`:i===`mba`||i.includes(`master of business administration`)?`mba`:i.startsWith(`master`)?`master`:c(i)?i:s(n)||n}function d(e,t,n=`de`){let r=u(e,t);return r?f(r===`master of business administration`?`mba`:r,n).name:``}function f(e,t){let n=e.toLowerCase();if(n===`mba`)return{name:`MBA`,routeSlug:`mba`};if(c(n)){let e=t.startsWith(`en`);return{name:e?`Further Education`:`Weiterbildung`,routeSlug:e?r:`weiterbildung`}}return{name:n.charAt(0).toUpperCase()+n.slice(1),routeSlug:n}}async function p(e,r,i){if(!n)return[];let a=new URLSearchParams({"filter[degree_type]":l(e),"filter[unit]":r}),{data:o}=await t(`/proxy/product-service/clusters?${a.toString()}`,{headers:{Accept:`application/json`,"Accept-Language":i}}).json();return Array.isArray(o.value)?o.value:[]}function m(n,r){if(!n)return{data:e(null),isFetching:e(!1)};let{data:i,isFetching:a}=t(`/proxy/product-service/products/${n}/admission-requirements`,{headers:{Accept:`application/json`,"Accept-Language":r}}).json();return{data:i,isFetching:a}}function h(e){if(Array.isArray(e))return e;if(typeof e!=`object`||!e)return[];let t=e;return Array.isArray(t.items)?t.items:t.item_id!==void 0||t.item_name!==void 0?[t]:[]}async function g(e,t){let n=t?`?${new URLSearchParams({locationCareId:t}).toString()}`:``,r=`/proxy/product-service/products/${encodeURIComponent(e)}/ecommerce-item${n}`;try{let e=await fetch(r,{method:`GET`,headers:{Accept:`application/json`}}),t=await e.json();return e.ok?h(t):[]}catch{return[]}}export{d as a,l as i,p as n,f as o,g as r,m as t};

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.