PageSourceSearch

https://www.bancomundial.org/ext/scripts/aem-assets-plugin-support.js

js bancomundial.org collected 2026-10-01 08:38:20 UTC 1,265 bytes, 36 lines download raw bytes

1// The based path of the aem-assets-plugin code.
2const codeBasePath = `${window.hlx?.codeBasePath}/plugins/aem-assets-plugin`;
3 
4// The blocks that are to be used from the aem-assets-plugin.
5const blocks = ['custom-image-wbg'];
6 
7// Initialize the aem-assets-plugin.
8export default async function assetsInit() {
9  const {
10    loadBlock,
11    createOptimizedPicture,
12    decorateExternalImages,
13    createOptimizedPictureForDMOpenAPI,
14    createOptimizedPictureForDM,
15  } = await import(`${codeBasePath}/scripts/aem-assets.js`);
16  window.hlx = window.hlx || {};
17  window.hlx.aemassets = {
18    codeBasePath,
19    blocks,
20    loadBlock,
21    createOptimizedPicture,
22    decorateExternalImages,
23    createOptimizedPictureForDMOpenAPI,
24    createOptimizedPictureForDM,
25    smartCrops: {
26      Small: { minWidth: 0, maxWidth: 767 },
27      Medium: { minWidth: 768, maxWidth: 1023 },
28      Large: { minWidth: 1024, maxWidth: 9999 },
29    },
30    externalImageUrlPrefixes: [
31      ['https://delivery-p136806-e1377844.adobeaemcloud.com/', createOptimizedPictureForDMOpenAPI],
32      ['https://delivery-p136806-e1377785.adobeaemcloud.com/', createOptimizedPictureForDMOpenAPI],
33      ['https://s7ap1.scene7.com/is/image/varuncloudready/', createOptimizedPictureForDM],
34    ],
35  };
36}

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.