'use strict';
import { logErrorRaw } from '../logging/loggers.js';
import { notifyDebouncedError, notifyError } from '../notifications.js';
import { isBrowser, isProdOrDemo, isTest } from '../lib/environments.js';

var __defProp=Object['defineProperty'],__name=(_0x4554c0,_0x52714b)=>__defProp(_0x4554c0,'name',{'value':_0x52714b,'configurable':!![]});function logAndNotify(_0x411b55){logErrorRaw(_0x411b55);if(!isBrowser())throw _0x411b55;else isProdOrDemo()||isTest()?notifyDebouncedError('An\x20error\x20has\x20occured.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support'):notifyError(_0x411b55);}__name(logAndNotify,'logAndNotify');

export { logAndNotify };
