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dist/imgixLoader.js","webpack://_N_E/./node_modules/@prismicio/next/dist/PrismicNextImage.js","webpack://_N_E/./node_modules/@prismicio/next/dist/_node_modules/@prismicio/client/dist/helpers/isFilled.js","webpack://_N_E/./src/slices/ImageBlock/index.js","webpack://_N_E/./node_modules/@swc/helpers/esm/_tagged_template_literal.js"],"sourcesContent":["const camelCaseToParamCase = (input) => {\n return input.replace(/[A-Z]/g, (match) => {\n return `-${match.toLowerCase()}`;\n });\n};\nconst buildURL = (url, params) => {\n const instance = new URL(url);\n for (const camelCasedParamKey in params) {\n const paramKey = camelCaseToParamCase(camelCasedParamKey);\n const paramValue = params[camelCasedParamKey];\n if (paramValue === void 0) {\n instance.searchParams.delete(paramKey);\n } else if (Array.isArray(paramValue)) {\n instance.searchParams.set(paramKey, paramValue.join(\",\"));\n } else {\n instance.searchParams.set(paramKey, `${paramValue}`);\n }\n }\n const s = instance.searchParams.get(\"s\");\n if (s) {\n instance.searchParams.delete(\"s\");\n instance.searchParams.append(\"s\", s);\n }\n return instance.toString();\n};\n\nconst buildPixelDensitySrcSet = (url, { pixelDensities, ...params }) => {\n return pixelDensities.map((dpr) => {\n return `${buildURL(url, { ...params, dpr })} ${dpr}x`;\n }).join(\", \");\n};\n\nconst buildWidthSrcSet = (url, { widths, ...params }) => {\n return widths.map((width) => {\n return `${buildURL(url, { ...params, w: void 0, width })} ${width}w`;\n }).join(\", \");\n};\n\nclass Client {\n /**\n * Creates a new `Client` instance for an Imgix domain.\n *\n * @param options - Options to instantiate a new client.\n *\n * @returns A `Client` instance for the given Imgix domain.\n */\n constructor(options) {\n this.baseURL = options.baseURL;\n }\n /**\n * Builds a URL to an Imgix image with Imgix URL API parameters for the\n * client's base URL.\n *\n * @example\n *\n * ```ts\n * const client = new Client({ baseURL: \"https://example.imgix.net\" });\n * const url = client.buildURLForPath(\"/image.png\", { width: 400 });\n * // => https://example.imgix.net/image.png?width=400\n * ```\n *\n * @example\n *\n * ```ts\n * const client = new Client({\n * \tbaseURL: \"https://example.imgix.net/folder\",\n * });\n * const url = client.buildURLForPath(\"./image.png\", { width: 400 });\n * // => https://example.imgix.net/folder/image.png?width=400\n * ```\n *\n * @param path - Path to the image relative to the client's base URL.\n * @param params - An object of Imgix URL API parameters.\n *\n * @returns The full absolute URL to the image with the given Imgix URL API\n * parameters applied.\n */\n buildURLForPath(path, params = {}) {\n return buildURL(`${new URL(path, this.baseURL)}`, params);\n }\n /**\n * Builds an `
` `srcset` attribute value for a given set of widths for\n * the client's base URL. It can also optinally apply Imgix URL API parameters\n * to the URLs.\n *\n * The `width` URL parameter will be applied for each `srcset` entry. If a\n * `width` or `w` parameter is provided to the `params` parameter, it will be\n * ignored.\n *\n * @example\n *\n * ```ts\n * const client = new Client({ baseURL: \"https://example.imgix.net\" });\n * const srcset = client.buildWidthSrcSetForPath(\"/image.png\", {\n * \twidths: [400, 800, 1600],\n * });\n * // => https://example.imgix.net/image.png?width=400 400w,\n * // https://example.imgix.net/image.png?width=800 800w,\n * // https://example.imgix.net/image.png?width=1600 1600w\n * ```\n *\n * @example\n *\n * ```ts\n * const client = new Client({\n * \tbaseURL: \"https://example.imgix.net\",\n * });\n * const srcset = client.buildWidthSrcSetForPath(\"/image.png\", {\n * \twidths: [400, 800, 1600],\n * \tsat: -100,\n * });\n * // => https://example.imgix.net/image.png?width=400&sat=-100 400w,\n * // https://example.imgix.net/image.png?width=800&sat=-100 800w,\n * // https://example.imgix.net/image.png?width=1600&sat=-100 1600w\n * ```\n *\n * @param path - Path to the image relative to the client's base URL.\n * @param params - An object of Imgix URL API parameters. The `widths`\n * parameter defines the resulting `srcset` widths.\n *\n * @returns A `srcset` attribute value for `url` with the given Imgix URL API\n * parameters applied.\n */\n buildWidthSrcSetForPath(path, params) {\n return buildWidthSrcSet(`${new URL(path, this.baseURL)}`, params);\n }\n /**\n * Builds an `
` `srcset` attribute value for a given set of pixel\n * densities for the client's base URL. It can also optinally apply Imgix URL\n * API parameters to the URLs.\n *\n * The `dpr` URL parameter will be applied for each `srcset` entry. If a `dpr`\n * parameter is provided to the `params` parameter, it will be ignored.\n *\n * @example\n *\n * ```ts\n * const client = new Client({ baseURL: \"https://example.imgix.net\" });\n * const srcset = client.buildPixelDensitySrcSetForPath(\"/image.png\", {\n * \tpixelDensities: [1, 2, 3],\n * });\n * // => https://example.imgix.net/image.png?dpr=1 1x,\n * // https://example.imgix.net/image.png?dpr=2 2x,\n * // https://example.imgix.net/image.png?dpr=3 3x\n * ```\n *\n * @example\n *\n * ```ts\n * const client = new Client({ baseURL: \"https://example.imgix.net\" });\n * const srcset = client.buildPixelDensitySrcSetForPath(\"/image.png\", {\n * \tpixelDensities: [1, 2, 3],\n * \tsat: -100,\n * });\n * // => https://example.imgix.net/image.png?dpr=1&sat=-100 1x,\n * // https://example.imgix.net/image.png?dpr=2&sat=-100 2x,\n * // https://example.imgix.net/image.png?dpr=3&sat=-100 3x\n * ```\n *\n * @param path - Path to the image relative to the client's base URL.\n * @param params - An object of Imgix URL API parameters. The `pixelDensities`\n * parameter defines the resulting `srcset` widths.\n *\n * @returns A `srcset` attribute value for `url` with the given Imgix URL API\n * parameters applied.\n */\n buildPixelDensitySrcSetForPath(path, params) {\n return buildPixelDensitySrcSet(`${new URL(path, this.baseURL)}`, params);\n }\n}\n\nexport { Client, buildPixelDensitySrcSet, buildURL, buildWidthSrcSet };\n//# sourceMappingURL=index.mjs.map\n","import { buildURL } from \"imgix-url-builder\";\nconst imgixLoader = (args) => {\n const url = new URL(args.src);\n const params = {\n fit: url.searchParams.get(\"fit\") || \"max\",\n w: args.width,\n h: void 0\n };\n if (args.quality) {\n params.q = args.quality;\n }\n return buildURL(args.src, params);\n};\nexport {\n imgixLoader\n};\n//# sourceMappingURL=imgixLoader.js.map\n","'use client';\n'use client';\nimport { jsx, Fragment } from \"react/jsx-runtime\";\nimport Image from \"next/image\";\nimport { buildURL } from \"imgix-url-builder\";\nimport { devMsg } from \"./lib/devMsg.js\";\nimport { imgixLoader } from \"./imgixLoader.js\";\nimport { imageThumbnail } from './_node_modules/@prismicio/client/dist/helpers/isFilled.js';\nconst castInt = (input) => {\n if (typeof input === \"number\" || typeof input === \"undefined\") {\n return input;\n } else {\n const parsed = Number.parseInt(input);\n if (Number.isNaN(parsed)) {\n return void 0;\n } else {\n return parsed;\n }\n }\n};\nconst PrismicNextImage = ({ field, imgixParams = {}, alt, fallbackAlt, fill, width, height, fallback = null, ...restProps }) => {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof alt === \"string\" && alt !== \"\") {\n console.warn(`[PrismicNextImage] The \"alt\" prop can only be used to declare an image as decorative by passing an empty string (alt=\"\") but was provided a non-empty string. You can resolve this warning by removing the \"alt\" prop or changing it to alt=\"\". For more details, see ${devMsg(\"alt-must-be-an-empty-string\")}`);\n }\n if (typeof fallbackAlt === \"string\" && fallbackAlt !== \"\") {\n console.warn(`[PrismicNextImage] The \"fallbackAlt\" prop can only be used to declare an image as decorative by passing an empty string (fallbackAlt=\"\") but was provided a non-empty string. You can resolve this warning by removing the \"fallbackAlt\" prop or changing it to fallbackAlt=\"\". For more details, see ${devMsg(\"alt-must-be-an-empty-string\")}`);\n }\n }\n if (imageThumbnail(field)) {\n const resolvedImgixParams = imgixParams;\n for (const x in imgixParams) {\n if (resolvedImgixParams[x] === null) {\n resolvedImgixParams[x] = void 0;\n }\n }\n const src = buildURL(field.url, imgixParams);\n const ar = field.dimensions.width / field.dimensions.height;\n const castedWidth = castInt(width);\n const castedHeight = castInt(height);\n let resolvedWidth = castedWidth ?? field.dimensions.width;\n let resolvedHeight = castedHeight ?? field.dimensions.height;\n if (castedWidth != null && castedHeight == null) {\n resolvedHeight = castedWidth / ar;\n } else if (castedWidth == null && castedHeight != null) {\n resolvedWidth = castedHeight * ar;\n }\n const resolvedAlt = alt ?? (field.alt || fallbackAlt);\n if (process.env.NODE_ENV !== \"production\" && typeof resolvedAlt !== \"string\") {\n console.error(`[PrismicNextImage] The following image is missing an \"alt\" property. Please add Alternative Text to the image in Prismic. To mark the image as decorative instead, add one of \\`alt=\"\"\\` or \\`fallbackAlt=\"\"\\`.`, src);\n }\n let ResolvedImage = Image;\n if (\"default\" in ResolvedImage) {\n ResolvedImage = ResolvedImage.default;\n }\n return jsx(ResolvedImage, { src, width: fill ? void 0 : resolvedWidth, height: fill ? void 0 : resolvedHeight, alt: resolvedAlt, fill, loader: imgixLoader, ...restProps });\n } else {\n return jsx(Fragment, { children: fallback });\n }\n};\nexport {\n PrismicNextImage\n};\n//# sourceMappingURL=PrismicNextImage.js.map\n","const isNonNullish = (input) => {\n return input != null;\n};\nconst imageThumbnail = (thumbnail) => {\n return isNonNullish(thumbnail) && !!thumbnail.url;\n};\nconst link = (field) => {\n return isNonNullish(field) && (\"id\" in field || \"url\" in field);\n};\nexport {\n imageThumbnail,\n link\n};\n//# sourceMappingURL=isFilled.js.map\n","/**\n * @typedef {import(\"@prismicio/client\").Content.ImageBlockSlice} ImageBlockSlice\n * @typedef {import(\"@prismicio/react\").SliceComponentProps} ImageBlockProps\n * @param {ImageBlockProps}\n */\nimport { PrismicNextImage } from \"@prismicio/next\";\nimport styled from \"styled-components\";\n\nconst ImageContainer = styled.div`\n max-width: 100%;\n`;\n\nconst ImageBlock = ({ slice }) => {\n return (\n \n );\n};\n\nexport default ImageBlock;\n","export function _tagged_template_literal(strings, raw) {\n if (!raw) raw = strings.slice(0);\n\n return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } }));\n}\nexport { _tagged_template_literal as _ };\n"],"names":["buildURL","url","params","instance","URL","camelCasedParamKey","paramKey","replace","match","toLowerCase","paramValue","searchParams","delete","Array","isArray","set","join","s","get","append","toString","imgixLoader","args","fit","src","w","width","h","quality","q","castInt","input","parsed","Number","parseInt","isNaN","PrismicNextImage","field","imgixParams","alt","fallbackAlt","fill","height","fallback","restProps","resolvedImgixParams","x","ar","dimensions","castedWidth","castedHeight","resolvedWidth","resolvedHeight","resolvedAlt","ResolvedImage","default","jsx","loader","Fragment","children","isNonNullish","imageThumbnail","thumbnail","link","ImageContainer","styled","div","slice","section","data-slice-type","slice_type","data-slice-variation","variation","style","maxWidth","primary","image","_tagged_template_literal","strings","raw","Object","freeze","defineProperties","value"],"sourceRoot":""}