'use strict';
import { errorStatuses } from './error-statuses.js';
import { hasObjectOwnProperty } from '../lib/utils.js';
import { commonLowerCaseWords } from '../../base-repo/constants/internal-common-strings.js';

var __defProp=Object['defineProperty'],__name=(_0x100b97,_0x14fa5b)=>__defProp(_0x100b97,'name',{'value':_0x14fa5b,'configurable':!![]});const objectProperties={'title':commonLowerCaseWords['title'],'status':commonLowerCaseWords['status']};function getProblemDetails(_0x1abb5c,_0x2aa5c4,_0x56c96f='',_0x9882d0='Unknown\x20Error'){const _0x5f5b16={'title':errorStatuses[_0x1abb5c['status']]?.['title']||_0x9882d0,'status':_0x1abb5c['status'],'detail':_0x56c96f||_0x1abb5c['message']||errorStatuses[_0x1abb5c['status']]?.['description'],'instance':_0x2aa5c4['originalUrl']};return _0x5f5b16;}__name(getProblemDetails,'getProblemDetails');function isProblemDetails(_0x3d7044){return hasObjectOwnProperty(_0x3d7044,objectProperties['title'])&&hasObjectOwnProperty(_0x3d7044,objectProperties['status']);}__name(isProblemDetails,'isProblemDetails');

export { getProblemDetails, isProblemDetails };
