import * as O from 'fp-ts/lib/Option';
export class AppConfigurationService {
  set apiBaseUrl(url) {
    AppConfigurationService._apiBaseUrl = O.fromNullable(url);
  }
  set isPaidCampaign(flag) {
    AppConfigurationService._isPaidCampaign = flag !== null && flag !== void 0 ? flag : false;
  }
  get apiBaseUrl() {
    if (O.isNone(AppConfigurationService._apiBaseUrl)) {
      throw Error('API base URL is not set');
    }
    return AppConfigurationService._apiBaseUrl.value;
  }
  get isPaidCampaign() {
    return AppConfigurationService._isPaidCampaign;
  }
}
export default new AppConfigurationService();
