"use strict"; exports.id = 42353; exports.ids = [42353]; exports.modules = { /***/ 42353: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "y": () => (/* binding */ getBlurDataUrl) /* harmony export */ }); /* unused harmony export shimmer */ const DEFAULT_COLOR1 = "#f7f7f7"; const DEFAULT_COLOR2 = "#d1d1d1"; /** * Convert a string to a base64. * * @param {string} str * @returns {string} */ const toBase64 = (str)=> true ? Buffer.from(str).toString("base64") : 0; /** * Get the shimmer SVG. * * @param {number} w * @param {number} h * @param {string} color1 * @param {string} color2 * @returns {string} */ const shimmer = (w, h, color1, color2)=>` `; /** * Get the blue data url that Next.js will use before loading the actual image. * * @param {number} h Height * @param {number} w Width * @param {string} color1 * @param {string} color2 * @returns {string} */ const getBlurDataUrl = (h, w, color1 = DEFAULT_COLOR1, color2 = DEFAULT_COLOR2)=>`data:image/svg+xml;base64,${toBase64(shimmer(w, h, color1, color2))}`; /***/ }) }; ; //# sourceMappingURL=42353.js.map