PageSourceSearch

https://abonnement.primo.be/_nuxt/CLBqUhJp2.js

js primo.be collected 2026-09-26 20:55:18 UTC 5,827 bytes, 2 lines download raw bytes

1import{a as e,o as t}from"./Tg6eheFi.js";import{d as n,f as r,r as i,s as a,u as o}from"./DuQ2LTf6.js";import{n as s}from"./DC1376r_.js";import{i as c}from"./Cym5MUSb2.js";async function l(e,t){return await u(t).catch(e=>(console.error(`Failed to get image meta for `+t,e+``),{width:0,height:0,ratio:0}))}async function u(e){if(typeof Image>`u`)throw TypeError(`Image not supported`);return new Promise((t,n)=>{let r=new Image;r.onload=()=>{t({width:r.width,height:r.height,ratio:r.width/r.height})},r.onerror=e=>n(e),r.src=e})}function d(e){return(t=>t===void 0?e.missingValue:e[t]||t)}function f(e={}){let t=e.formatter,n=e.keyMap&&typeof e.keyMap!=`function`?d(e.keyMap):e.keyMap,r={};for(let t in e.valueMap){let n=t,i=e.valueMap[n];r[n]=typeof i==`object`?d(i):i}return i=>{let a=[];for(let e in i){let t=e;if(i[t]===void 0)continue;let o=typeof r[t]==`function`?r[t](i[t]):i[t];a.push([n?n(t):t,o])}return t?a.map(e=>t(...e)).join(e.joinWith??`&`):new URLSearchParams(a).toString()}}function p(e=``){if(e===void 0||!e.length)return[];let t=new Set;for(let n of e.split(` `)){let e=Number.parseInt(n.replace(`x`,``));e&&t.add(e)}return Array.from(t)}function m(e){if(e.length===0)throw Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function h(e=``){if(typeof e==`number`)return e;if(typeof e==`string`&&e.replace(`px`,``).match(/^\d+$/g))return Number.parseInt(e,10)}function g(e){let t={};if(typeof e==`string`)for(let n of e.split(/[\s,]+/).filter(e=>e)){let e=n.split(`:`);e.length===2?t[e[0].trim()]=e[1].trim():t[`1px`]=e[0].trim()}else Object.assign(t,e);return t}function _(e){let t={options:e},n=(e,n={})=>y(t,e,n),r=((e,t,r)=>n(e,s({modifiers:t},r)).url);for(let t in e.presets)r[t]=((n,i,a)=>r(n,i,{...e.presets[t],...a}));return r.options=e,r.getImage=n,r.getMeta=((e,n)=>v(t,e,n)),r.getSizes=((e,n)=>S(t,e,n)),t.$img=r,r}async function v(e,t,n){let r=y(e,t,{...n});return typeof r.getMeta==`function`?await r.getMeta():await l(e,r.url)}function y(e,t,n){if(t&&typeof t!=`string`)throw TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith(`data:`))return{url:t};let{setup:c,defaults:l}=b(e,n.provider||e.options.provider),u=c(),d=x(e,n.preset);if(t=i(t)?t:r(t),!u.supportsAlias){for(let n in e.options.alias)if(t.startsWith(n)){let r=e.options.alias[n];r&&(t=a(r,t.slice(n.length)))}}if(u.validateDomains&&i(t)){let n=o(t).host;if(!e.options.domains.find(e=>e===n))return{url:t}}let f=s(n,d,l),p={...f,modifiers:{...f.modifiers,width:f.modifiers?.width?h(f.modifiers.width):void 0,height:f.modifiers?.height?h(f.modifiers.height):void 0}},m=u.getImage(t,p,e);return m.format||=p.modifiers.format||``,m}function b(e,t){let n=e.options.providers[t];if(!n)throw Error(`Unknown provider: `+t);return n}function x(e,t){if(!t)return{};if(!e.options.presets[t])throw Error(`Unknown preset: `+t);return e.options.presets[t]}function S(e,t,n){let r=x(e,n.preset),i=s(n,r),a=h(i.modifiers?.width),o=h(i.modifiers?.height),c=i.sizes?g(i.sizes):{},l=i.densities?.trim(),u=l?p(l):e.options.densities;m(u);let d=a&&o?o/a:0,f=[],_=[];if(Object.keys(c).length>=1){for(let r in c){let i=C(r,String(c[r]),o,d,e);if(i!==void 0){f.push({size:i.size,screenMaxWidth:i.screenMaxWidth,media:`(max-width: ${i.screenMaxWidth-1}px)`});for(let r of u)_.push({width:i._cWidth*r,src:w(e,t,n,i,r)})}}T(f)}else for(let r of u){let i=Object.keys(c)[0],a=i?C(i,String(c[i]),o,d,e):void 0;a===void 0&&(a={size:``,screenMaxWidth:0,_cWidth:n.modifiers?.width,_cHeight:n.modifiers?.height}),_.push({width:r,src:w(e,t,n,a,r)})}E(_);let v=_[_.length-1],y=f.length?f.map(e=>`${e.media?e.media+` `:``}${e.size}`).join(`, `):void 0,b=y?`w`:`x`;return{sizes:y,srcset:_.map(e=>`${e.src}
1 ${e.width}${b}`).join(`, `),src:v?.src}}function C(e,t,n,r,i){let a=i.options.screens&&i.options.screens[e]||Number.parseInt(e),o=t.endsWith(`vw`);if(!o&&/^\d+$/.test(t)&&(t+=`px`),!o&&!t.endsWith(`px`))return;let s=Number.parseInt(t);if(!a||!s)return;o&&(s=Math.round(s/100*a));let c=r?Math.round(s*r):n;return{size:t,screenMaxWidth:a,_cWidth:s,_cHeight:c}}function w(e,t,n,r,i){return e.$img(t,{...n.modifiers,width:r._cWidth?r._cWidth*i:void 0,height:r._cHeight?r._cHeight*i:void 0},n)}function T(e){e.sort((e,t)=>e.screenMaxWidth-t.screenMaxWidth);let t=null;for(let n=e.length-1;n>=0;n--){let r=e[n];r.media===t&&e.splice(n,1),t=r.media}for(let t=0;t<e.length;t++)e[t].media=e[t+1]?.media||``}function E(e){e.sort((e,t)=>e.width-t.width);let t=null;for(let n=e.length-1;n>=0;n--){let r=e[n];r.width===t&&e.splice(n,1),t=r.width}}function D(e){let t;return()=>t||(t=typeof e==`function`?e():e,t)}var O=f(),k=D({getImage(e,{modifiers:t,baseURL:n}){let r={mode:`fill`};t.height!==void 0&&(r.height=String(t.height)),t.width!==void 0&&(r.width=String(t.width));let i=O(r);return{url:`${n||``}${e+(i?`?`+i:``)}`}}}),A=`https://a.storyblok.com`,j=D({getImage:(e,{modifiers:t,baseURL:r=A})=>{let{fit:i,smart:s,width:c=`0`,height:l=`0`,filters:u={},format:d,quality:f}=t,p=e.endsWith(`.svg`),m=!p&&(c!==`0`||l!==`0`);p||(d&&(u.format=d+``),f&&(u.quality=f+``));let h=Object.entries(u||{}).map(e=>`${e[0]}(${e[1]})`).join(`:`),g=a(i?`fit-${i}`:``,m?`${c}x${l}`:``,s?`smart`:``,h?`filters:`+h:``),{pathname:_}=o(e);return{url:n(a(_,g?`/m/`:``,g),r)}}}),M=D({getImage(e,t,n){return{url:c(j().getImage(e,t,n).url)}}}),N={screens:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536,lower:320,lhm:411,lhd:1349,upper:1537},presets:{},domains:[],alias:{},densities:[1,2],format:[`webp`],quality:void 0,provider:`akamai`,providers:{akamai:{setup:k,defaults:{}},storyblok:{setup:M,defaults:{}}}},P=n=>{let r=t(),i=e();return i.$img||i._img||(i._img=_({...N,event:n||i.ssrContext?.event,nuxt:{baseURL:r.app.baseURL},runtimeConfig:r}))};export{h as n,P as t};
2//# sourceMappingURL=CLBqUhJp2.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.