import { at as getToken } from "../chunks/common-B0qL-cCR.esm.js";
import { I, a, b, c, d, e, f, g, S, U, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, aW, G, H, J, K, L, M, N, O, P, Q, R, T, V, W, X, Y, Z, aX, _, $, a0, a1, a2, a3, a4, a5, aY, a6, a7, a8, a9, aa, ab, ac, ad, ae, aZ, af, ag, ah, ai, aj, ak, a_, al, am, an, ao, ap, aq, ar, as, au, av, a$, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV } from "../chunks/common-B0qL-cCR.esm.js";
import { g as g2, b as b2, i as i2, c as c2, o as o2, r as r2 } from "../chunks/api-config-GOys-syK.esm.js";
import { c as c3, a as a10, l as l2 } from "../chunks/translations-3awnZui-.esm.js";
import { c as c4, a as a11, f as f2, b as b3, g as g3, d as d2, r as r3, e as e2, t as t2 } from "../chunks/form-builder-deconversion-mG9WaeP0.esm.js";
import { C as C2, M as M2, a as a12, b as b4, c as c5, S as S2, d as d3, e as e3, f as f3, g as g4, h as h2, i as i3, j as j2, k as k2, l as l3, m as m2, n as n2, o as o3, p as p2, q as q2, r as r4, u as u2 } from "../chunks/migration-utils-CAWeXGji.esm.js";
import { R as R2, g as g5, h as h3, a as a13, n as n3 } from "../chunks/navigation-utils-ChG-fDRf.esm.js";
import { d as d4, f as f4 } from "../chunks/form-builder-conversion-BHtzMK19.esm.js";
import { r as getV1Languages } from "../chunks/api-BQ_tS-9F.esm.js";
import { s as s2, k as k3, l as l4 } from "../chunks/api-BQ_tS-9F.esm.js";
import { c as c6, g as g6, n as n4, b as b5 } from "../chunks/useAuth-CEQTm2rv.esm.js";
import { g as g7, a as a14, r as r5, s as s3 } from "../chunks/module-routes-config-CCkZEtfg.esm.js";
import { default as default2 } from "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 getV1Languages({
    order: `id:1`,
    ...getToken()
  });
  const data = ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.languages) || [];
  const languages = (_b = data == null ? void 0 : data.filter((d5) => d5 == null ? void 0 : d5.is_active)) == null ? void 0 : _b.map((d5) => {
    return {
      label: d5 == null ? void 0 : d5.name,
      code: d5 == null ? void 0 : d5.code,
      direction: d5 == null ? void 0 : d5.direction
    };
  });
  return languages;
}
export {
  C2 as COMMON_DATE_VALIDATIONS,
  I as INVENTORY_ADD_MODE_DISABLED_FIELDS,
  a as INVENTORY_ALWAYS_DISABLED_FIELDS,
  b as INVENTORY_EDIT_MODE_DISABLED_FIELDS,
  c as INVENTORY_FIELDS_TO_BE_DISABLED,
  d as INVENTORY_MATERIAL_COSTING_TYPE_ARR,
  e as INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS,
  f as INVENTORY_VARIANT_DISABLED_FIELDS,
  g as InvoiceStatus,
  M2 as MenuFilter,
  a12 as MenuFilterService,
  b4 as MetaComponent,
  c5 as ModuleAccessService,
  R2 as RANGE,
  S as SECTION_TYPES,
  S2 as StorageUtils,
  U as UTCDateFormat,
  h as addOrEditArray,
  d3 as anyDateValidation,
  i as apiConfigurations,
  j as appendConditionSafely,
  blue,
  e3 as businessDateValidation,
  c3 as calculateAdditionalDiscountCrossValue,
  k as calculateAmountData,
  a10 as calculateEntries,
  l as calculatePeriods,
  m as checkDuplicateTracking,
  n as checkForDuplicate,
  o as checkSkuAndItemName,
  p as checkUniqueFields,
  f3 as conditionalDateValidation,
  c4 as configMapper,
  c6 as convertRoutesToUseIdParams,
  a11 as convertTableColumns,
  q as convertToUnderscore,
  g4 as createCustomMessages,
  h2 as createDateValidation,
  i3 as createParameterizedNavigationHandler,
  r as createdOnAndBy,
  s as dateFormat,
  j2 as dateRangeValidation,
  k2 as dateTimeValidation,
  l3 as dateValidation,
  d4 as deFormatText,
  t as defaultCompany,
  u as defaultCurrencyFormat,
  v as defaultCurrencySymbol,
  w as displayPhone,
  x as downloadDoc,
  y as downloadFile,
  error,
  z as extendApiConfigurations,
  A as fetchApi,
  B as fetchAssemblyItemData,
  C as fetchCompanyLocations,
  D as fetchDataLocally,
  E as fetchExchageRate,
  F as fetchItems,
  fetchLanguages,
  aW as fetchOptions,
  G as fetchRentalResponseItems,
  H as fetchRfqItemsByIdForResponse,
  m2 as fileSize,
  J as filterAccessibleModules,
  K as filterCoaByCompanyIdOrNull,
  L as findById,
  f4 as formBuilderConversion,
  f2 as formBuilderDeConversion,
  M as formatAmount,
  N as formatAmountWithCurrency,
  O as formatAmountWithCurrencyData,
  P as formatDataTime,
  Q as formatDate,
  R as formatDateForPayload,
  T as formatDateTimeForPayload,
  V as formatEmptyDataToNull,
  W as formatLabel,
  X as formatOnlyTime,
  Y as formatResponseDatesToDayJS,
  Z as formatResponseOnlyDatesToDayJS,
  aX as formatText,
  _ as formatTimeForPayload,
  $ as formatUtcDate,
  b3 as formateValueByType,
  n2 as futureDateValidation,
  a0 as generateAndFormatStringFromObj,
  a1 as generateFields,
  a2 as generateQueryString,
  a3 as generateRandomId,
  g6 as generateRouteWithId,
  a4 as getAccessibleModules,
  g7 as getAllModuleRoutes,
  g2 as getApiConfig,
  b2 as getApiConfigSafe,
  o3 as getCountry,
  a5 as getCountryIdByName,
  aY as getCurrency,
  a6 as getCurrencyFormat,
  a7 as getCurrencySymbol,
  a8 as getDefaultFraction,
  a9 as getDefaultUserData,
  g5 as getEntityId,
  aa as getErrorMessage,
  ab as getExcelExportTemplate,
  ac as getExcelTemplateGenerateTemplate,
  ad as getFieldFilters,
  ae as getFileName,
  g3 as getFileNamesFromUrls,
  d2 as getFileNamesFromUrlsAsLink,
  aZ as getItems,
  af as getLabelValuePairs,
  ag as getMinutesFromTime,
  a14 as getModuleRoutes,
  ah as getName,
  ai as getNestedValue,
  aj as getNextScheduleDate,
  ak as getOperatorLabel,
  a_ as getOptions,
  al as getOptionsData,
  am as getPartyDependentData,
  an as getPartyName,
  ao as getPdfExportTemplate,
  ap as getSlicedValue,
  aq as getTaxAmountDataFromMultipleTaxCodes,
  ar as getTaxAmountFromMultipleTaxCodes,
  as as getTimeFromMinutes,
  getToken,
  green,
  h3 as handleCompareDateRange,
  a13 as handleCompareDateRangeSync,
  au as handleRegularUpload,
  av as hasValue,
  default2 as i18n,
  a$ as initializeApiBaseUrls,
  i2 as initializeApiConfig,
  c2 as isApiConfigInitialized,
  aw as isBetweenTheDates,
  ax as isJSONString,
  ay as isJsonParse,
  lightGreen,
  l2 as loadModuleTranslations,
  magenta,
  az as manageItems,
  aA as mapApiPayload,
  aB as mapAsyncApiPayload,
  aC as matchedMaterialCostingTypeLabel,
  p2 as migrateRoutesToUseParams,
  q2 as migrateToPathWithId,
  n4 as navigateToRouteWithId,
  n3 as navigateWithId,
  neutral,
  olive,
  aD as omitDataKeys,
  o2 as onApiConfigReady,
  aE as partyDuplicateCheck,
  aF as partyEmailIds,
  r4 as pastDateValidation,
  aG as postImportSheet,
  primaryGreen,
  red,
  aH as remainingMaterialCostingTypes,
  aI as removeIdFromObject,
  aJ as removeIdStaticIdsFromMongoObject,
  aK as removeSeriesFromTitle,
  r3 as renderEmptyRowsFallback,
  e2 as renderValueField,
  r2 as resetApiConfig,
  r5 as resetModuleRoutes,
  aL as responseItemDetailsColumns,
  s2 as setDriveURL,
  s3 as setModuleRoutes,
  aM as setRateBasedOnPriceRules,
  k3 as setRoleURL,
  l4 as setSystemFeatureURL,
  aN as showSnackBar,
  aO as skuGenerator,
  aP as specificFilters,
  aQ as subModuleMappings,
  aR as toFixedWithNumbers,
  t2 as transformTableColumns,
  aS as updateFieldsDisabledState,
  b5 as updatePathnameWithIdParams,
  u2 as updateTableConfigForParameterizedNavigation,
  aT as uploadAttachments,
  aU as uploadFiles,
  aV as validateDiscountValidity
};
//# sourceMappingURL=index.esm.js.map
