'use strict';
import { createError } from '../errors/errors.js';
import { propertyValueMessages } from './property-value-messages.js';
import { isObject } from '../types/ensure-type.js';

var __defProp=Object['defineProperty'],__name=(_0x44097b,_0x5f013c)=>__defProp(_0x44097b,'name',{'value':_0x5f013c,'configurable':!![]});function getOptionalPropertyValue(_0x4dad1b,_0x5b4492){if(hasProperty(_0x4dad1b,_0x5b4492))return _0x4dad1b[_0x5b4492];return void(-0x38*0x11+-0x877+0xc2f);}__name(getOptionalPropertyValue,'getOptionalPropertyValue');function getPropertyValue(_0x41f101,_0x5c6b6c){if(hasProperty(_0x41f101,_0x5c6b6c))return _0x41f101[_0x5c6b6c];throw createError(propertyValueMessages['propertyNotFound']['replace']('{0}',_0x5c6b6c));}__name(getPropertyValue,'getPropertyValue');function setObjectPropertyValue(_0x190d3d,_0x319d37,_0x50c1d3){isObject(_0x190d3d)&&hasProperty(_0x190d3d,_0x319d37)&&(_0x190d3d[_0x319d37]=_0x50c1d3);}__name(setObjectPropertyValue,'setObjectPropertyValue');function hasProperty(_0x54bed8,_0x412f48){return _0x412f48 in _0x54bed8;}__name(hasProperty,'hasProperty');function getPropertyValueFromArray(_0x32a425,_0x32b9c9){return _0x32a425['map'](_0x48ca4c=>getOptionalPropertyValue(_0x48ca4c,_0x32b9c9));}__name(getPropertyValueFromArray,'getPropertyValueFromArray');

export { getOptionalPropertyValue, getPropertyValue, getPropertyValueFromArray, hasProperty, setObjectPropertyValue };
