"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common = require("../chunks/common-B47boGYI.js");
const apiConfig = require("../chunks/api-config-DXwDMFn-.js");
const translations = require("../chunks/translations-QALR4VUa.js");
const formBuilderDeconversion = require("../chunks/form-builder-deconversion-Zsya3lbf.js");
const migrationUtils = require("../chunks/migration-utils-Da_Y23XO.js");
const navigationUtils = require("../chunks/navigation-utils-CjGqJQmS.js");
const formBuilderConversion = require("../chunks/form-builder-conversion-ljHVeDPX.js");
const api = require("../chunks/api-BygscvSz.js");
const useAuth = require("../chunks/useAuth-vPRkzGjO.js");
const moduleRoutesConfig = require("../chunks/module-routes-config-B8IucBuj.js");
const i18n = require("i18next");
const primaryGreen = {
  100: "#EBF9F2",
  200: "#D6F3E5",
  300: "#ADE7CB",
  400: "#84DAB1",
  500: "#5BCE97",
  600: "#32C27D",
  700: "#289B64",
  800: "#1E744B",
  900: "#144E32",
  1e3: "#0A2719"
};
const green = {
  100: "#DDF9E4",
  200: "#D0F0DA",
  300: "#C3E6CF",
  400: "#B6DCC5",
  500: "#A8D2BA",
  600: "#72AA8F",
  700: "#58967A",
  800: "#3D8264",
  900: "#226E4F",
  1e3: "#075A39"
};
const lightGreen = {
  100: "#F4FBCB",
  200: "#EAF2BF",
  300: "#E0E8B3",
  400: "#D6DEA7",
  500: "#CBD49A",
  600: "#A2AD69",
  700: "#98A45D",
  800: "#8E9A51",
  900: "#798638",
  1e3: "#505F07"
};
const olive = {
  100: "#FFF3CC",
  200: "#F7EAC0",
  300: "#EEE0B3",
  400: "#E5D6A6",
  500: "#DCCC99",
  600: "#B8A466",
  700: "#A6914D",
  800: "#947D33",
  900: "#82691A",
  1e3: "#705500"
};
const magenta = {
  100: "#FEECF1",
  200: "#F6DEE8",
  300: "#EDD0DF",
  400: "#E4C2D6",
  500: "#DBB3CC",
  600: "#B779A7",
  700: "#AE6B9E",
  800: "#A55D95",
  900: "#934082",
  1e3: "#6F065D"
};
const blue = {
  100: "#DAF4FC",
  200: "#CDEBF4",
  300: "#C0E1EB",
  400: "#B3D8E2",
  500: "#A6CED9",
  600: "#72A7B6",
  700: "#5894A5",
  800: "#3E8193",
  900: "#246E82",
  1e3: "#0A5A70"
};
const neutral = {
  100: "#FBFBFB",
  200: "#EEEFF1",
  300: "#D3D3D4",
  400: "#BDBEBF",
  500: "#A7A8A9",
  600: "#919294",
  700: "#7B7C7F",
  800: "#656669",
  900: "#232529",
  1e3: "#1F2125"
};
const red = {
  100: "#FFEBEB",
  200: "#EED2D2",
  300: "#DDB9B9",
  400: "#D5ADAD",
  500: "#CCA0A0",
  600: "#BB8787",
  700: "#AA6E6E",
  800: "#995555",
  900: "#883C3C",
  1e3: "#772322"
};
const error = {
  100: "#FEDFDF",
  200: "#FCBFBF",
  300: "#FBA0A0",
  400: "#F98080",
  500: "#F86060",
  600: "#C64D4D",
  700: "#953A3A",
  800: "#632626",
  900: "#321313",
  1e3: "#250E0E"
};
async function fetchLanguages() {
  var _a, _b;
  const response = await api.getV1Languages({
    order: `id:1`,
    ...common.getToken()
  });
  const data = ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.languages) || [];
  const languages = (_b = data == null ? void 0 : data.filter((d) => d == null ? void 0 : d.is_active)) == null ? void 0 : _b.map((d) => {
    return {
      label: d == null ? void 0 : d.name,
      code: d == null ? void 0 : d.code,
      direction: d == null ? void 0 : d.direction
    };
  });
  return languages;
}
exports.INVENTORY_ADD_MODE_DISABLED_FIELDS = common.INVENTORY_ADD_MODE_DISABLED_FIELDS;
exports.INVENTORY_ALWAYS_DISABLED_FIELDS = common.INVENTORY_ALWAYS_DISABLED_FIELDS;
exports.INVENTORY_EDIT_MODE_DISABLED_FIELDS = common.INVENTORY_EDIT_MODE_DISABLED_FIELDS;
exports.INVENTORY_FIELDS_TO_BE_DISABLED = common.INVENTORY_FIELDS_TO_BE_DISABLED;
exports.INVENTORY_MATERIAL_COSTING_TYPE_ARR = common.INVENTORY_MATERIAL_COSTING_TYPE_ARR;
exports.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS = common.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS;
exports.INVENTORY_VARIANT_DISABLED_FIELDS = common.INVENTORY_VARIANT_DISABLED_FIELDS;
exports.InvoiceStatus = common.InvoiceStatus;
exports.SECTION_TYPES = common.SECTION_TYPES;
exports.UTCDateFormat = common.UTCDateFormat;
exports.addOrEditArray = common.addOrEditArray;
exports.apiConfigurations = common.apiConfigurations;
exports.appendConditionSafely = common.appendConditionSafely;
exports.calculateAmountData = common.calculateAmountData;
exports.calculatePeriods = common.calculatePeriods;
exports.checkDuplicateTracking = common.checkDuplicateTracking;
exports.checkForDuplicate = common.checkForDuplicate;
exports.checkSkuAndItemName = common.checkSkuAndItemName;
exports.checkUniqueFields = common.checkUniqueFields;
exports.convertToUnderscore = common.convertToUnderscore;
exports.createdOnAndBy = common.createdOnAndBy;
exports.dateFormat = common.dateFormat;
exports.defaultCompany = common.defaultCompany;
exports.defaultCurrencyFormat = common.defaultCurrencyFormat;
exports.defaultCurrencySymbol = common.defaultCurrencySymbol;
exports.displayPhone = common.displayPhone;
exports.downloadDoc = common.downloadDoc;
exports.downloadFile = common.downloadFile;
exports.extendApiConfigurations = common.extendApiConfigurations;
exports.fetchApi = common.fetchApi;
exports.fetchAssemblyItemData = common.fetchAssemblyItemData;
exports.fetchCompanyLocations = common.fetchCompanyLocations;
exports.fetchDataLocally = common.fetchDataLocally;
exports.fetchExchageRate = common.fetchExchageRate;
exports.fetchItems = common.fetchItems;
exports.fetchOptions = common.fetchOptions;
exports.fetchRentalResponseItems = common.fetchRentalResponseItems;
exports.fetchRfqItemsByIdForResponse = common.fetchRfqItemsByIdForResponse;
exports.filterAccessibleModules = common.filterAccessibleModules;
exports.filterCoaByCompanyIdOrNull = common.filterCoaByCompanyIdOrNull;
exports.findById = common.findById;
exports.formatAmount = common.formatAmount;
exports.formatAmountWithCurrency = common.formatAmountWithCurrency;
exports.formatAmountWithCurrencyData = common.formatAmountWithCurrencyData;
exports.formatDataTime = common.formatDataTime;
exports.formatDate = common.formatDate;
exports.formatDateForPayload = common.formatDateForPayload;
exports.formatDateTimeForPayload = common.formatDateTimeForPayload;
exports.formatEmptyDataToNull = common.formatEmptyDataToNull;
exports.formatLabel = common.formatLabel;
exports.formatOnlyTime = common.formatOnlyTime;
exports.formatResponseDatesToDayJS = common.formatResponseDatesToDayJS;
exports.formatResponseOnlyDatesToDayJS = common.formatResponseOnlyDatesToDayJS;
exports.formatText = common.formatText;
exports.formatTimeForPayload = common.formatTimeForPayload;
exports.formatUtcDate = common.formatUtcDate;
exports.generateAndFormatStringFromObj = common.generateAndFormatStringFromObj;
exports.generateFields = common.generateFields;
exports.generateQueryString = common.generateQueryString;
exports.generateRandomId = common.generateRandomId;
exports.getAccessibleModules = common.getAccessibleModules;
exports.getCountryIdByName = common.getCountryIdByName;
exports.getCurrency = common.getCurrency;
exports.getCurrencyFormat = common.getCurrencyFormat;
exports.getCurrencySymbol = common.getCurrencySymbol;
exports.getDefaultFraction = common.getDefaultFraction;
exports.getDefaultUserData = common.getDefaultUserData;
exports.getErrorMessage = common.getErrorMessage;
exports.getExcelExportTemplate = common.getExcelExportTemplate;
exports.getExcelTemplateGenerateTemplate = common.getExcelTemplateGenerateTemplate;
exports.getFieldFilters = common.getFieldFilters;
exports.getFileName = common.getFileName;
exports.getItems = common.getItems;
exports.getLabelValuePairs = common.getLabelValuePairs;
exports.getMinutesFromTime = common.getMinutesFromTime;
exports.getName = common.getName;
exports.getNestedValue = common.getNestedValue;
exports.getNextScheduleDate = common.getNextScheduleDate;
exports.getOperatorLabel = common.getOperatorLabel;
exports.getOptions = common.getOptions;
exports.getOptionsData = common.getOptionsData;
exports.getPartyDependentData = common.getPartyDependentData;
exports.getPartyName = common.getPartyName;
exports.getPdfExportTemplate = common.getPdfExportTemplate;
exports.getSlicedValue = common.getSlicedValue;
exports.getTaxAmountDataFromMultipleTaxCodes = common.getTaxAmountDataFromMultipleTaxCodes;
exports.getTaxAmountFromMultipleTaxCodes = common.getTaxAmountFromMultipleTaxCodes;
exports.getTimeFromMinutes = common.getTimeFromMinutes;
exports.getToken = common.getToken;
exports.handleRegularUpload = common.handleRegularUpload;
exports.hasValue = common.hasValue;
exports.initializeApiBaseUrls = common.initializeApiBaseUrls;
exports.isBetweenTheDates = common.isBetweenTheDates;
exports.isJSONString = common.isJSONString;
exports.isJsonParse = common.isJsonParse;
exports.manageItems = common.manageItems;
exports.mapApiPayload = common.mapApiPayload;
exports.mapAsyncApiPayload = common.mapAsyncApiPayload;
exports.matchedMaterialCostingTypeLabel = common.matchedMaterialCostingTypeLabel;
exports.omitDataKeys = common.omitDataKeys;
exports.partyDuplicateCheck = common.partyDuplicateCheck;
exports.partyEmailIds = common.partyEmailIds;
exports.postImportSheet = common.postImportSheet;
exports.remainingMaterialCostingTypes = common.remainingMaterialCostingTypes;
exports.removeIdFromObject = common.removeIdFromObject;
exports.removeIdStaticIdsFromMongoObject = common.removeIdStaticIdsFromMongoObject;
exports.removeSeriesFromTitle = common.removeSeriesFromTitle;
exports.responseItemDetailsColumns = common.responseItemDetailsColumns;
exports.setRateBasedOnPriceRules = common.setRateBasedOnPriceRules;
exports.showSnackBar = common.showSnackBar;
exports.skuGenerator = common.skuGenerator;
exports.specificFilters = common.specificFilters;
exports.subModuleMappings = common.subModuleMappings;
exports.toFixedWithNumbers = common.toFixedWithNumbers;
exports.updateFieldsDisabledState = common.updateFieldsDisabledState;
exports.uploadAttachments = common.uploadAttachments;
exports.uploadFiles = common.uploadFiles;
exports.validateDiscountValidity = common.validateDiscountValidity;
exports.getApiConfig = apiConfig.getApiConfig;
exports.getApiConfigSafe = apiConfig.getApiConfigSafe;
exports.initializeApiConfig = apiConfig.initializeApiConfig;
exports.isApiConfigInitialized = apiConfig.isApiConfigInitialized;
exports.onApiConfigReady = apiConfig.onApiConfigReady;
exports.resetApiConfig = apiConfig.resetApiConfig;
exports.calculateAdditionalDiscountCrossValue = translations.calculateAdditionalDiscountCrossValue;
exports.calculateEntries = translations.calculateEntries;
exports.loadModuleTranslations = translations.loadModuleTranslations;
exports.configMapper = formBuilderDeconversion.configMapper;
exports.convertTableColumns = formBuilderDeconversion.convertTableColumns;
exports.formBuilderDeConversion = formBuilderDeconversion.formBuilderDeConversion;
exports.formateValueByType = formBuilderDeconversion.formateValueByType;
exports.getFileNamesFromUrls = formBuilderDeconversion.getFileNamesFromUrls;
exports.getFileNamesFromUrlsAsLink = formBuilderDeconversion.getFileNamesFromUrlsAsLink;
exports.renderEmptyRowsFallback = formBuilderDeconversion.renderEmptyRowsFallback;
exports.renderValueField = formBuilderDeconversion.renderValueField;
exports.transformTableColumns = formBuilderDeconversion.transformTableColumns;
exports.COMMON_DATE_VALIDATIONS = migrationUtils.COMMON_DATE_VALIDATIONS;
exports.MenuFilter = migrationUtils.MenuFilter;
exports.MenuFilterService = migrationUtils.MenuFilterService;
exports.MetaComponent = migrationUtils.MetaComponent;
exports.ModuleAccessService = migrationUtils.ModuleAccessService;
exports.StorageUtils = migrationUtils.StorageUtils;
exports.anyDateValidation = migrationUtils.anyDateValidation;
exports.businessDateValidation = migrationUtils.businessDateValidation;
exports.conditionalDateValidation = migrationUtils.conditionalDateValidation;
exports.createCustomMessages = migrationUtils.createCustomMessages;
exports.createDateValidation = migrationUtils.createDateValidation;
exports.createParameterizedNavigationHandler = migrationUtils.createParameterizedNavigationHandler;
exports.dateRangeValidation = migrationUtils.dateRangeValidation;
exports.dateTimeValidation = migrationUtils.dateTimeValidation;
exports.dateValidation = migrationUtils.dateValidation;
exports.fileSize = migrationUtils.fileSize;
exports.futureDateValidation = migrationUtils.futureDateValidation;
exports.getCountry = migrationUtils.getCountry;
exports.migrateRoutesToUseParams = migrationUtils.migrateRoutesToUseParams;
exports.migrateToPathWithId = migrationUtils.migrateToPathWithId;
exports.pastDateValidation = migrationUtils.pastDateValidation;
exports.updateTableConfigForParameterizedNavigation = migrationUtils.updateTableConfigForParameterizedNavigation;
exports.RANGE = navigationUtils.RANGE;
exports.getEntityId = navigationUtils.getEntityId;
exports.handleCompareDateRange = navigationUtils.handleCompareDateRange;
exports.handleCompareDateRangeSync = navigationUtils.handleCompareDateRangeSync;
exports.navigateWithId = navigationUtils.navigateWithId;
exports.deFormatText = formBuilderConversion.deFormatText;
exports.formBuilderConversion = formBuilderConversion.formBuilderConversion;
exports.setDriveURL = api.setBaseUrl;
exports.setRoleURL = api.setBaseUrl$1;
exports.setSystemFeatureURL = api.setBaseUrl$2;
exports.convertRoutesToUseIdParams = useAuth.convertRoutesToUseIdParams;
exports.generateRouteWithId = useAuth.generateRouteWithId;
exports.navigateToRouteWithId = useAuth.navigateToRouteWithId;
exports.updatePathnameWithIdParams = useAuth.updatePathnameWithIdParams;
exports.getAllModuleRoutes = moduleRoutesConfig.getAllModuleRoutes;
exports.getModuleRoutes = moduleRoutesConfig.getModuleRoutes;
exports.resetModuleRoutes = moduleRoutesConfig.resetModuleRoutes;
exports.setModuleRoutes = moduleRoutesConfig.setModuleRoutes;
exports.i18n = i18n;
exports.blue = blue;
exports.error = error;
exports.fetchLanguages = fetchLanguages;
exports.green = green;
exports.lightGreen = lightGreen;
exports.magenta = magenta;
exports.neutral = neutral;
exports.olive = olive;
exports.primaryGreen = primaryGreen;
exports.red = red;
//# sourceMappingURL=index.js.map
