'use strict';
import { httpStatusCodes } from '../../../../fd-toolbox/constants/http-status-codes.js';
import { httpContentTypes } from '../../../../fd-toolbox/constants/header-names.js';
import { contentDisposition } from '../../../../fd-toolbox/constants/api-constants.js';
import { remoteBlobConstants } from '../../../../base-repo/constants/remote-blob-constants.js';
import { getCacheHeaders } from '../../../../fd-toolbox/api/cache-headers.js';

var __defProp=Object['defineProperty'],__name=(_0x33e538,_0x107ce4)=>__defProp(_0x33e538,'name',{'value':_0x107ce4,'configurable':!![]});function createRemoteBlobResponse(_0x47f847){const _0x5e4236=contentDisposition+';\x20'+remoteBlobConstants['blobNameParam']+'=\x22'+_0x47f847['metadata']['blobName']+'\x22',_0x569edb=_0x47f847['content']instanceof ArrayBuffer?new Uint8Array(_0x47f847['content']):_0x47f847['content'];return new Response(Buffer['from'](_0x569edb),{'status':httpStatusCodes['ok'],'headers':{[httpContentTypes['contentTypeHeaderName']]:_0x47f847['metadata']['contentType']||httpContentTypes['contentTypeHeaderOctetStream'],[httpContentTypes['contentTypeDisposition']]:_0x5e4236,...getCacheHeaders(_0x47f847['metadata']['blobName'])}});}__name(createRemoteBlobResponse,'createRemoteBlobResponse');

export { createRemoteBlobResponse };
