'use strict';
import { combineEndpointPath } from '../http/url/urls.js';
import { addQueryParamsToPath } from '../routing/paths.js';
import { folders } from '../../base-repo/app-constants/project-paths.js';

var __defProp=Object['defineProperty'],__name=(_0x109418,_0x526312)=>__defProp(_0x109418,'name',{'value':_0x526312,'configurable':!![]});function getApiPath(_0x324e7b,_0x1a6e20,_0x3037cc){let _0x46fc0d=combineEndpointPath(folders['api'],_0x324e7b);return _0x1a6e20&&(_0x46fc0d=combineEndpointPath(_0x46fc0d,_0x1a6e20)),_0x46fc0d=addQueryParamsToPath(_0x46fc0d,_0x3037cc),new URL(_0x46fc0d,getBaseUrl())['href'];}__name(getApiPath,'getApiPath');function getBaseUrl(){return location['protocol']+'//'+location['hostname']+':'+location['port']+'/';}__name(getBaseUrl,'getBaseUrl');

export { getApiPath };
