@erpsquad/common 1.8.146 → 1.8.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/index.esm.js +12271 -10
- package/dist/constants/index.esm.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/hooks/index.esm.js +38 -32
- package/dist/hooks/index.esm.js.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.esm.js +1 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{migration-utils--ZDLIXHX.esm.js → migration-utils-hV41wEaX.esm.js} +3 -3
- package/dist/migration-utils-hV41wEaX.esm.js.map +1 -0
- package/dist/migration-utils-t8N4H56x.js +6 -0
- package/dist/migration-utils-t8N4H56x.js.map +1 -0
- package/dist/utils/index.esm.js +1 -2
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/migration-utils--ZDLIXHX.esm.js.map +0 -1
- package/dist/migration-utils-e8WoiOOR.js +0 -6
- package/dist/migration-utils-e8WoiOOR.js.map +0 -1
- package/dist/resource-lang-DGLkQTMh.js +0 -2
- package/dist/resource-lang-DGLkQTMh.js.map +0 -1
- package/dist/resource-lang-aiXJhRQt.esm.js +0 -12269
- package/dist/resource-lang-aiXJhRQt.esm.js.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -27,7 +27,7 @@ import { apiType, capitalizeWords, convertEmptyToNull, defaultUserCurrency, form
|
|
|
27
27
|
import { themeVariant, getTheme, primaryFont, pxToRem, remToPx, responsiveFontSizes, secondaryFont, themeVariant as themeVariant2, typography } from "./theme/index.esm.js";
|
|
28
28
|
import { M as M9, M as M10, a as a28, c as c13, t as t7 } from "./theme-impl-5ws1obBe.esm.js";
|
|
29
29
|
import { d as d10, f as f8 } from "./form-builder-conversion-v-918EG7.esm.js";
|
|
30
|
-
import { C as C11, n as n9, m as m8, M as M11, l as l7, S as S11, b as b13, h as h8, k as k8, j as j8, c as c14, r as r7, i as i8, e as e8, d as d11, f as f9, a as a29, g as g9, q as q6, o as o8, p as p8, u as u11 } from "./migration-utils
|
|
30
|
+
import { C as C11, n as n9, m as m8, M as M11, l as l7, S as S11, b as b13, h as h8, k as k8, j as j8, c as c14, r as r7, i as i8, e as e8, d as d11, f as f9, a as a29, g as g9, q as q6, o as o8, p as p8, u as u11 } from "./migration-utils-hV41wEaX.esm.js";
|
|
31
31
|
import { F as F8 } from "./fullScreen-CDKVWmis.esm.js";
|
|
32
32
|
import { SidebarLayout } from "./layout/index.esm.js";
|
|
33
33
|
import { Q as Q5, $ as $4, a0 as a04, a1 as a110, C as C12, x as x6, a2 as a210, y as y7, U as U5, o as o9, a3 as a34, a8 as a84, V as V6, W as W5, X as X4, Y as Y4, z as z6, F as F9, w as w6, q as q7, a9 as a94, a4 as a44, L as L11, N as N6, a as a30, P as P8, a7 as a74, R as R7, S as S12, Z as Z4, _ as _4, A as A9, a5 as a54, a6 as a64, T as T11, aa as aa4, ab as ab4, M as M12, B as B11, g as g10, j as j9, h as h9, k as k9, D as D12, i as i9, e as e9, v as v7, aj as aj4, H as H7, af as af4, f as f10, ad as ad4, ae as ae4, ag as ag4, K as K6, ah as ah4, l as l8, m as m9, p as p9, r as r8, G as G9, E as E9, c as c15, s as s6, b as b14, d as d12, t as t8, n as n10, O as O6, ac as ac4, ai as ai4, ak as ak4, J as J6, I as I9, u as u12 } from "./default-data-BqTSSr5x.esm.js";
|
|
@@ -99,7 +99,6 @@ import "socket.io-client";
|
|
|
99
99
|
/* empty css */
|
|
100
100
|
import "moment";
|
|
101
101
|
import "i18next-http-backend";
|
|
102
|
-
import "./resource-lang-aiXJhRQt.esm.js";
|
|
103
102
|
import "react-helmet";
|
|
104
103
|
import "./mui.constants-BFBzxaiA.esm.js";
|
|
105
104
|
/* empty css */
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/config/index.ts"],"sourcesContent":["// Configuration system for application-specific business logic\n\nexport interface LibraryConfig {\n // Route and navigation configuration\n routes?: {\n // Function to generate paths with IDs\n generatePathWithId?: (path: string, id: string | number) => string;\n // Base paths for different modules\n basePaths?: {\n [module: string]: string;\n };\n };\n \n // Data transformation functions\n dataTransforms?: {\n // Function to transform API responses\n transformApiResponse?: (response: any, context?: string) => any;\n // Function to format currency\n formatCurrency?: (amount: number, currency?: string) => string;\n // Function to format dates\n formatDate?: (date: any, format?: string) => string;\n };\n \n // Validation functions\n validation?: {\n // Custom validation rules\n validateField?: (value: any, rules: any) => boolean | string;\n // Phone number validation\n validatePhone?: (phone: string, country?: string) => boolean;\n // Email validation\n validateEmail?: (email: string) => boolean;\n };\n \n // Permission system\n permissions?: {\n // Check if user has permission\n hasPermission?: (permission: string, context?: any) => boolean;\n // Get user permissions\n getUserPermissions?: () => string[];\n };\n \n // Localization\n localization?: {\n // Get current language\n getCurrentLanguage?: () => string;\n // Translate function\n translate?: (key: string, params?: any) => string;\n // Get available languages\n getAvailableLanguages?: () => Array<{ code: string; name: string }>;\n };\n \n // File handling\n fileHandling?: {\n // Upload file function\n uploadFile?: (file: File, options?: any) => Promise<any>;\n // Download file function\n downloadFile?: (fileId: string, options?: any) => Promise<any>;\n // Get file URL\n getFileUrl?: (fileId: string) => string;\n };\n \n // Notification system\n notifications?: {\n // Show success notification\n showSuccess?: (message: string, options?: any) => void;\n // Show error notification\n showError?: (message: string, options?: any) => void;\n // Show info notification\n showInfo?: (message: string, options?: any) => void;\n };\n}\n\nlet libraryConfig: LibraryConfig = {};\n\nexport const configureLibrary = (config: LibraryConfig) => {\n libraryConfig = { ...libraryConfig, ...config };\n};\n\nexport const getLibraryConfig = () => libraryConfig;\n\n// Helper function to get configuration with fallback\nexport const getConfigFunction = <T extends keyof LibraryConfig>(\n category: T,\n functionName: keyof LibraryConfig[T]\n): any => {\n const categoryConfig = libraryConfig[category];\n if (categoryConfig && categoryConfig[functionName]) {\n return categoryConfig[functionName];\n }\n \n // Return default implementation or throw error based on criticality\n switch (`${String(category)}.${String(functionName)}`) {\n case 'routes.generatePathWithId':\n return (path: string, id: string | number) => path.replace(':id', String(id));\n \n case 'dataTransforms.formatCurrency':\n return (amount: number, currency = 'USD') => `${currency} ${amount.toFixed(2)}`;\n \n case 'dataTransforms.formatDate':\n return (date: any) => new Date(date).toLocaleDateString();\n \n case 'validation.validateEmail':\n return (email: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);\n \n case 'permissions.hasPermission':\n return () => true; // Default to allowing all permissions\n \n case 'localization.getCurrentLanguage':\n return () => 'en';\n \n case 'localization.translate':\n return (key: string) => key; // Return key as fallback\n \n case 'notifications.showSuccess':\n case 'notifications.showError':\n case 'notifications.showInfo':\n return (message: string) => console.log(message);\n \n default:\n return (...args: any[]) => {\n throw new Error(`Configuration not provided for ${String(category)}.${String(functionName)}. Please configure this in your consuming application.`);\n };\n }\n};"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/config/index.ts"],"sourcesContent":["// Configuration system for application-specific business logic\n\nexport interface LibraryConfig {\n // Route and navigation configuration\n routes?: {\n // Function to generate paths with IDs\n generatePathWithId?: (path: string, id: string | number) => string;\n // Base paths for different modules\n basePaths?: {\n [module: string]: string;\n };\n };\n \n // Data transformation functions\n dataTransforms?: {\n // Function to transform API responses\n transformApiResponse?: (response: any, context?: string) => any;\n // Function to format currency\n formatCurrency?: (amount: number, currency?: string) => string;\n // Function to format dates\n formatDate?: (date: any, format?: string) => string;\n };\n \n // Validation functions\n validation?: {\n // Custom validation rules\n validateField?: (value: any, rules: any) => boolean | string;\n // Phone number validation\n validatePhone?: (phone: string, country?: string) => boolean;\n // Email validation\n validateEmail?: (email: string) => boolean;\n };\n \n // Permission system\n permissions?: {\n // Check if user has permission\n hasPermission?: (permission: string, context?: any) => boolean;\n // Get user permissions\n getUserPermissions?: () => string[];\n };\n \n // Localization\n localization?: {\n // Get current language\n getCurrentLanguage?: () => string;\n // Translate function\n translate?: (key: string, params?: any) => string;\n // Get available languages\n getAvailableLanguages?: () => Array<{ code: string; name: string }>;\n };\n \n // File handling\n fileHandling?: {\n // Upload file function\n uploadFile?: (file: File, options?: any) => Promise<any>;\n // Download file function\n downloadFile?: (fileId: string, options?: any) => Promise<any>;\n // Get file URL\n getFileUrl?: (fileId: string) => string;\n };\n \n // Notification system\n notifications?: {\n // Show success notification\n showSuccess?: (message: string, options?: any) => void;\n // Show error notification\n showError?: (message: string, options?: any) => void;\n // Show info notification\n showInfo?: (message: string, options?: any) => void;\n };\n}\n\nlet libraryConfig: LibraryConfig = {};\n\nexport const configureLibrary = (config: LibraryConfig) => {\n libraryConfig = { ...libraryConfig, ...config };\n};\n\nexport const getLibraryConfig = () => libraryConfig;\n\n// Helper function to get configuration with fallback\nexport const getConfigFunction = <T extends keyof LibraryConfig>(\n category: T,\n functionName: keyof LibraryConfig[T]\n): any => {\n const categoryConfig = libraryConfig[category];\n if (categoryConfig && categoryConfig[functionName]) {\n return categoryConfig[functionName];\n }\n \n // Return default implementation or throw error based on criticality\n switch (`${String(category)}.${String(functionName)}`) {\n case 'routes.generatePathWithId':\n return (path: string, id: string | number) => path.replace(':id', String(id));\n \n case 'dataTransforms.formatCurrency':\n return (amount: number, currency = 'USD') => `${currency} ${amount.toFixed(2)}`;\n \n case 'dataTransforms.formatDate':\n return (date: any) => new Date(date).toLocaleDateString();\n \n case 'validation.validateEmail':\n return (email: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);\n \n case 'permissions.hasPermission':\n return () => true; // Default to allowing all permissions\n \n case 'localization.getCurrentLanguage':\n return () => 'en';\n \n case 'localization.translate':\n return (key: string) => key; // Return key as fallback\n \n case 'notifications.showSuccess':\n case 'notifications.showError':\n case 'notifications.showInfo':\n return (message: string) => console.log(message);\n \n default:\n return (...args: any[]) => {\n throw new Error(`Configuration not provided for ${String(category)}.${String(functionName)}. Please configure this in your consuming application.`);\n };\n }\n};"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,IAAI,gBAA+B,CAAA;AAE5B,MAAM,mBAAmB,CAAC,WAA0B;AACzD,kBAAgB,EAAE,GAAG,eAAe,GAAG,OAAA;AACzC;AAEO,MAAM,mBAAmB,MAAM;AAG/B,MAAM,oBAAoB,CAC/B,UACA,iBACQ;AACR,QAAM,iBAAiB,cAAc,QAAQ;AAC7C,MAAI,kBAAkB,eAAe,YAAY,GAAG;AAClD,WAAO,eAAe,YAAY;AAAA,EACpC;AAGA,UAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,OAAO,YAAY,CAAC,IAAA;AAAA,IACjD,KAAK;AACH,aAAO,CAAC,MAAc,OAAwB,KAAK,QAAQ,OAAO,OAAO,EAAE,CAAC;AAAA,IAE9E,KAAK;AACH,aAAO,CAAC,QAAgB,WAAW,UAAU,GAAG,QAAQ,IAAI,OAAO,QAAQ,CAAC,CAAC;AAAA,IAE/E,KAAK;AACH,aAAO,CAAC,SAAc,IAAI,KAAK,IAAI,EAAE,mBAAA;AAAA,IAEvC,KAAK;AACH,aAAO,CAAC,UAAkB,6BAA6B,KAAK,KAAK;AAAA,IAEnE,KAAK;AACH,aAAO,MAAM;AAAA,IAEf,KAAK;AACH,aAAO,MAAM;AAAA,IAEf,KAAK;AACH,aAAO,CAAC,QAAgB;AAAA,IAE1B,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO,CAAC,YAAoB,QAAQ,IAAI,OAAO;AAAA,IAEjD;AACE,aAAO,IAAI,SAAgB;AACzB,cAAM,IAAI,MAAM,kCAAkC,OAAO,QAAQ,CAAC,IAAI,OAAO,YAAY,CAAC,wDAAwD;AAAA,MACpJ;AAAA,EAAA;AAEN;"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./images-Dwb4un_s.js"),t=require("./all-language-XhvdjcQg.js"),r=require("./common-DyuISUDa.js"),o=require("./common-DzWMY4wi.js"),a=require("./modules-xSiesxge.js"),s=require("./form-parser-4pkb3y5x.js"),i=require("./uom-field-wrapper-CgydACtZ.js"),p=require("./Tooltip-79rwVtXd.js"),n=require("./form-builder-deconversion-CI-hW2RC.js"),l=require("./languageContext-wDrqMwzj.js"),x=require("./custom-editor-BqoM2jYY.js"),c=require("./sidebar-dJ3pCkin.js"),d=require("./route-utils-ifjI7_7l.js"),u=require("./apiHelper-CiKMWI2r.js"),m=require("./MenuItem-DVUFCxXA.js"),g=require("./Box-C3settuL.js"),S=require("./CssBaseline-BKvBQY51.js"),C=require("./Grow-isiVHeFI.js"),T=require("./custom-styled-icon-CtBVvAxY.js"),y=require("./work-centre-DfZoIhwG.js"),D=require("./trash-Cbz_9LiC.js"),h=require("./tick-NWosMxbn.js"),A=require("./document-LqHIUxSn.js"),b=require("./notification-DrpgO56m.js"),P=require("./useLocationFilter-BizEkzgz.js"),I=require("./hooks/index.js"),f=require("./theme/index.js"),F=require("./theme-impl-BliqM73m.js"),L=require("./form-builder-conversion-BTKDVbAC.js"),R=require("./migration-utils-e8WoiOOR.js"),M=require("./fullScreen-BDDP3qch.js"),B=require("./layout/index.js"),E=require("./default-data-CDYqFbnj.js"),v=require("./reducer-BZCFgNcr.js"),w=require("react-i18next"),k=require("./useLangauge--qqmoWbd.js"),O=require("./contexts/index.js"),q=require("i18next"),j=require("./navigation-utils-DO2Se8i-.js"),U=require("./api-BU2KNfrl.js"),N=require("./translations-1dZqnqOl.js"),V=require("./actionCreator-DZG5yqwN.js"),_=require("./redux/index.js"),W=require("./hooks-CzoDgYvR.js"),G=require("./store-Va8DfTuN.js"),H=require("@reduxjs/toolkit"),$=require("./api-client/index.js"),z=require("./route-page-map-DJlBCFU5.js");function Y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react/jsx-runtime"),require("dayjs"),require("./auth-BHeRds0l.js"),require("lodash"),require("react"),require("react-dom"),require("dayjs/plugin/utc"),require("libphonenumber-js"),require("moment-timezone"),require("./pathname.hrms-BYy3B3SQ.js"),require("./DefaultPropsProvider-DXLRpppW.js"),require("react-is"),/* empty css */require("./action-bar-BmEN5Ob9.js"),require("react-querybuilder"),require("react-router-dom"),require("react-dropzone"),require("react-redux"),require("lodash/clamp.js"),require("lodash/uniq.js"),require("lodash/flatten.js"),require("lodash/range.js"),require("lodash/debounce.js"),require("lodash/has.js"),require("lodash/throttle.js"),require("lodash/groupBy.js"),require("react-responsive-carousel"),require("react-hook-form"),/* empty css */require("react-dnd"),require("yup"),require("dayjs/plugin/weekOfYear"),require("dayjs/plugin/customParseFormat"),require("dayjs/plugin/localizedFormat"),require("dayjs/plugin/isBetween"),require("react-transition-group"),require("./useId-Cl8V2SF-.js"),require("react-phone-input-2"),/* empty css */require("react-flags-select"),require("date-fns/locale"),require("react-date-range"),require("react-select"),require("react-laag"),require("react-datepicker"),require("date-fns"),/* empty css */require("socket.io-client"),/* empty css */,/* empty css */,/* empty css */require("moment"),require("i18next-http-backend"),require("./resource-lang-DGLkQTMh.js"),require("react-helmet"),require("./mui.constants-BRJ6xCYX.js"),/* empty css */require("react-dnd-html5-backend"),require("./toggle-switch-CSpnvxeE.js");var J=/* @__PURE__ */Y(q);let K={};exports.images=e.images,exports.DEFAULT_LANG=t.DEFAULT_LANG,exports.LANGUAGES=t.LANGUAGES,exports.S3_BUCKET_URL=r.S3_BUCKET_URL,exports.INVENTORY_ADD_MODE_DISABLED_FIELDS=o.INVENTORY_ADD_MODE_DISABLED_FIELDS,exports.INVENTORY_ALWAYS_DISABLED_FIELDS=o.INVENTORY_ALWAYS_DISABLED_FIELDS,exports.INVENTORY_EDIT_MODE_DISABLED_FIELDS=o.INVENTORY_EDIT_MODE_DISABLED_FIELDS,exports.INVENTORY_FIELDS_TO_BE_DISABLED=o.INVENTORY_FIELDS_TO_BE_DISABLED,exports.INVENTORY_MATERIAL_COSTING_TYPE_ARR=o.INVENTORY_MATERIAL_COSTING_TYPE_ARR,exports.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS=o.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS,exports.INVENTORY_VARIANT_DISABLED_FIELDS=o.INVENTORY_VARIANT_DISABLED_FIELDS,exports.InvoiceStatus=o.InvoiceStatus,exports.SECTION_TYPES=o.SECTION_TYPES,exports.UTCDateFormat=o.UTCDateFormat,exports.addOrEditArray=o.addOrEditArray,exports.apiConfigurations=o.apiConfigurations,exports.appendConditionSafely=o.appendConditionSafely,exports.calculateAmountData=o.calculateAmountData,exports.calculatePeriods=o.calculatePeriods,exports.checkDuplicateTracking=o.checkDuplicateTracking,exports.checkForDuplicate=o.checkForDuplicate,exports.checkSkuAndItemName=o.checkSkuAndItemName,Object.defineProperty(exports,"closeSnackbar",{enumerable:!0,get:function(){return o.closeSnackbar}}),exports.convertToUnderscore=o.convertToUnderscore,exports.createdOnAndBy=o.createdOnAndBy,exports.dateFormat=o.dateFormat,exports.defaultCompany=o.defaultCompany,exports.defaultCurrencyFormat=o.defaultCurrencyFormat,exports.defaultCurrencySymbol=o.defaultCurrencySymbol,exports.displayPhone=o.displayPhone,exports.downloadDoc=o.downloadDoc,exports.downloadFile=o.downloadFile,Object.defineProperty(exports,"enqueueSnackbar",{enumerable:!0,get:function(){return o.enqueueSnackbar}}),exports.fetchApi=o.fetchApi,exports.fetchAssemblyItemData=o.fetchAssemblyItemData,exports.fetchCompanyLocations=o.fetchCompanyLocations,exports.fetchDataLocally=o.fetchDataLocally,exports.fetchExchageRate=o.fetchExchageRate,exports.fetchItems=o.fetchItems,exports.fetchRentalResponseItems=o.fetchRentalResponseItems,exports.fetchRfqItemsByIdForResponse=o.fetchRfqItemsByIdForResponse,exports.filterAccessibleModules=o.filterAccessibleModules,exports.filterCoaByCompanyIdOrNull=o.filterCoaByCompanyIdOrNull,exports.findById=o.findById,exports.formatAmount=o.formatAmount,exports.formatAmountWithCurrency=o.formatAmountWithCurrency,exports.formatAmountWithCurrencyData=o.formatAmountWithCurrencyData,exports.formatDataTime=o.formatDataTime,exports.formatDate=o.formatDate,exports.formatDateForPayload=o.formatDateForPayload,exports.formatDateTimeForPayload=o.formatDateTimeForPayload,exports.formatEmptyDataToNull=o.formatEmptyDataToNull,exports.formatLabel=o.formatLabel,exports.formatOnlyTime=o.formatOnlyTime,exports.formatResponseDatesToDayJS=o.formatResponseDatesToDayJS,exports.formatResponseOnlyDatesToDayJS=o.formatResponseOnlyDatesToDayJS,exports.formatTimeForPayload=o.formatTimeForPayload,exports.formatUtcDate=o.formatUtcDate,exports.generateAndFormatStringFromObj=o.generateAndFormatStringFromObj,exports.generateFields=o.generateFields,exports.generateQueryString=o.generateQueryString,exports.generateRandomId=o.generateRandomId,exports.getAccessibleModules=o.getAccessibleModules,exports.getApiConfig=o.getApiConfig,exports.getApiConfigSafe=o.getApiConfigSafe,exports.getCountryIdByName=o.getCountryIdByName,exports.getErrorMessage=o.getErrorMessage,exports.getExcelExportTemplate=o.getExcelExportTemplate,exports.getExcelTemplateGenerateTemplate=o.getExcelTemplateGenerateTemplate,exports.getFieldFilters=o.getFieldFilters,exports.getFileName=o.getFileName,exports.getLabelValuePairs=o.getLabelValuePairs,exports.getMinutesFromTime=o.getMinutesFromTime,exports.getName=o.getName,exports.getNestedValue=o.getNestedValue,exports.getNextScheduleDate=o.getNextScheduleDate,exports.getOperatorLabel=o.getOperatorLabel,exports.getOptionsData=o.getOptionsData,exports.getPartyDependentData=o.getPartyDependentData,exports.getPartyName=o.getPartyName,exports.getSlicedValue=o.getSlicedValue,exports.getTaxAmountDataFromMultipleTaxCodes=o.getTaxAmountDataFromMultipleTaxCodes,exports.getTaxAmountFromMultipleTaxCodes=o.getTaxAmountFromMultipleTaxCodes,exports.getTimeFromMinutes=o.getTimeFromMinutes,exports.getToken=o.getToken,exports.handleRegularUpload=o.handleRegularUpload,exports.hasValue=o.hasValue,exports.initializeApiConfig=o.initializeApiConfig,exports.isApiConfigInitialized=o.isApiConfigInitialized,exports.isBetweenTheDates=o.isBetweenTheDates,exports.isJSONString=o.isJSONString,exports.isJsonParse=o.isJsonParse,exports.manageItems=o.manageItems,exports.mapApiPayload=o.mapApiPayload,exports.mapAsyncApiPayload=o.mapAsyncApiPayload,exports.matchedMaterialCostingTypeLabel=o.matchedMaterialCostingTypeLabel,exports.omitDataKeys=o.omitDataKeys,exports.onApiConfigReady=o.onApiConfigReady,exports.partyDuplicateCheck=o.partyDuplicateCheck,exports.partyEmailIds=o.partyEmailIds,exports.postImportSheet=o.postImportSheet,exports.remainingMaterialCostingTypes=o.remainingMaterialCostingTypes,exports.removeIdFromObject=o.removeIdFromObject,exports.removeIdStaticIdsFromMongoObject=o.removeIdStaticIdsFromMongoObject,exports.resetApiConfig=o.resetApiConfig,exports.responseItemDetailsColumns=o.responseItemDetailsColumns,exports.setRateBasedOnPriceRules=o.setRateBasedOnPriceRules,exports.showSnackBar=o.showSnackBar,exports.skuGenerator=o.skuGenerator,exports.specificFilters=o.specificFilters,exports.subModuleMappings=o.subModuleMappings,exports.toFixedWithNumbers=o.toFixedWithNumbers,exports.updateFieldsDisabledState=o.updateFieldsDisabledState,exports.uploadAttachments=o.uploadAttachments,exports.uploadFiles=o.uploadFiles,exports.validateDiscountValidity=o.validateDiscountValidity,exports.modules=a.modules,exports.Accordion=s.Accordion,exports.AccordionDetails=s.AccordionDetails,exports.AccordionSummary=s.AccordionSummary,exports.ActionBar=s.ActionBar,exports.AddPage=s.AddPage,exports.AddPageModal=s.AddPageModal,exports.Alert=s.Alert,exports.AlertTitle=s.AlertTitle,exports.Android12Switch=s.Android12Switch,exports.AndroidSwitch=s.Android12Switch,exports.Autocomplete=s.Autocomplete,exports.BreadCrumb=s.BreadCrumb,exports.ButtonGroup=s.ButtonGroup,exports.CardMedia=s.CardMedia,exports.Checkbox=s.Checkbox,exports.ChipGenerator=s.ChipGenerator,exports.ChipOrPlaceholder=s.ChipOrPlaceholder,exports.ColorPickerInput=s.ColorPickerInput,exports.Container=s.Container,exports.DatePicker=s.DatePicker,exports.DateTimePicker=s.DateTimePicker,exports.DropdownButton=s.DropdownButton,exports.DynamicButton=s.DynamicButton,exports.DynamicCheckBox=s.DynamicCheckBox,exports.DynamicCurrency=s.DynamicCurrency,exports.DynamicDate=s.DynamicDate,exports.DynamicElementHOC=s.DynamicElementHOC,exports.DynamicInfo=s.DynamicInfo,exports.DynamicInputSelect=s.DynamicInputSelect,exports.DynamicMedia=s.DynamicMedia,exports.DynamicPhone=s.DynamicPhone,exports.DynamicRadioButton=s.DynamicRadioButton,exports.DynamicSearchSelect=s.DynamicSearchSelect,exports.DynamicSectionHOC=s.DynamicSectionHOC,exports.DynamicSelect=s.DynamicSelect,exports.DynamicTable=s.DynamicTable,exports.DynamicTagsInput=s.DynamicTagsInput,exports.DynamicTime=s.DynamicTime,exports.DynamicToggleButton=s.DynamicToggleButton,exports.ErpLoader=s.ErpLoader,exports.Fallback=s.Fallback,exports.Filter=s.Filter,exports.Footer=s.Footer,exports.FormControlLabel=s.FormControlLabel,exports.FormGroup=s.FormGroup,exports.FormHeader=s.FormHeader,exports.FormParser=s.FormParser,exports.FormSection=s.FormSection,exports.FormSwitcher=s.FormSwitcher,exports.Grid=s.Grid,exports.HeaderCard=s.HeaderCard,exports.InfoCard=s.InfoCard,exports.LinearProgress=s.LinearProgress,exports.Link=s.Link,exports.ListSubheader=s.ListSubheader,exports.Loader=s.Loader,exports.LocationAddModal=s.LocationAddModal,exports.LocationSearchSelect=s.LocationSearchSelect,exports.LocationSelect=s.LocationSearchSelect,exports.MUIAccordion=s.Accordion$1,exports.MUIBreadcrumbs=s.Breadcrumbs,exports.MUICheckbox=s.Checkbox$1,exports.MUIPagination=s.Pagination$1,exports.MUIRadio=s.Radio$1,exports.MUITabs=s.Tabs,exports.MaterialTable=s.MaterialTable,exports.ModalLoader=s.ModalLoader,exports.ModuleButton=s.ModuleTile,exports.ModuleTile=s.ModuleTile,exports.MultiSelect=s.MultiSelect,exports.PageAction=s.PageAction,exports.PageNavigator=s.PageNavigator,exports.Pagination=s.Pagination,exports.PaginationItem=s.PaginationItem,exports.PhoneInput=s.PhoneInput,exports.Radio=s.Radio,exports.RadioGroup=s.RadioGroup,exports.SaveFilterModal=s.SaveFilterModal,exports.SearchableSelect=s.SearchableSelect,exports.ShareModal=s.SharePopUp,exports.SharePopUp=s.SharePopUp,exports.SharedPageModal=s.SharedPageModal,exports.SharedPageView=s.SharedPageView,exports.Slider=s.Slider,exports.Stack=s.Stack,exports.Switch=s.Switch,exports.Tab=s.Tab,exports.TabBar=s.TabBar,exports.Table=s.Table,exports.TableBody=s.TableBody,exports.TableCell=s.TableCell,exports.TableContainer=s.TableContainer,exports.TableFooter=s.TableFooter,exports.TableHead=s.TableHead,exports.TableRow=s.TableRow,exports.TableSortLabel=s.TableSortLabel,exports.Tabs=s.TabBar,exports.TimePicker=s.TimePicker,exports.TitleDropdownButton=s.TitleDropdownButton,exports.Toggle=s.Toggle,exports.ToggleButton=s.ToggleButton,exports.ToggleButtonGroup=s.ToggleButtonGroup,exports.ToggleSwitch=s.ToggleSwitch,exports.UploadExcel=s.UploadExcel,exports.UploadMedia=s.UploadMedia,exports.ViewModal=s.ViewModal,exports.createLocationThunk=s.createLocationThunk,exports.dynamicSelectAdd=s.dynamicSelectAdd,exports.useMediaQuery=s.useMediaQuery,exports.userRoles=s.userRoles,exports.AccordionActions=i.AccordionActions,exports.ActivityLog=i.ActivityTag$1,exports.ActivityTag=i.ActivityTag,exports.AdvancedBarChart=i.BarChart$1,exports.AdvancedDonutChart=i.DonutChart$1,exports.AdvancedDynamicLayoutWrapper=i.AdvancedDynamicLayoutWrapper,exports.ApprovalWrapper=i.ApprovalWrapper,exports.AreaLineChart=i.AreaLineChart,exports.AreaLineChartTwo=i.AreaLineChartTwo,exports.AvatarGroup=i.AvatarGroup,exports.BarChart=i.BarChart,exports.BarLineChart=i.BarLineChart,exports.Board=i.BoardWrapper,exports.BoardWrapper=i.BoardWrapper,exports.BottomNavigation=i.BottomNavigation,exports.BottomNavigationAction=i.BottomNavigationAction,exports.CalculationSummary=i.CalculationSummary,exports.Calendar=i.CalendarWrapper,exports.CalendarWrapper=i.CalendarWrapper,exports.Card=i.Card,exports.CardActionArea=i.CardActionArea,exports.CardActions=i.CardActions,exports.CardContent=i.CardContent,exports.CardHeader=i.CardHeader,exports.CardWrapper=i.CardWrapper,exports.ChangeUserPasswordModal=i.ChangeUserPasswordModal,exports.ChartLegends=i.ChartLegends,exports.ControllerSelect=i.ControllerSelect,exports.CountrySelect=i.CountrySelect,exports.CustomGridCard=i.CustomGridCard,exports.CustomToggleSwitch=i.CustomToggleSwitch,exports.CustomerVendorModal=i.CustomerVendorModal,exports.DashBoardCard=i.DashBoardCard,exports.DashBoardHeader=i.DashBoardHeader,exports.DashboardCard=i.DashBoardCard,exports.DashboardHeader=i.DashBoardHeader,exports.DateRangePicker=i.DateRangePicker,exports.DialogContentText=i.DialogContentText,exports.DonutChart=i.DonutChart,exports.DyanmicTextEditor=i.DyanmicTextEditor,exports.DynamicDateRange=i.DynamicDateRange,exports.DynamicDateTime=i.DynamicDateTime,exports.DynamicLayoutWrapper=i.DynamicLayoutWrapper,exports.DynamicModal=i.DynamicModal,exports.ElementController=i.ElementController,exports.EntityViewWrapper=i.EntityViewWrapper,exports.ExpandableSummaryWrapper=i.ExpandableSummaryWrapper,exports.Fab=i.Fab,exports.FormData=i.FormData,exports.FormLoader=i.FormLoader,exports.Gantt=i.GanttChart,exports.GanttChart=i.GanttChart,exports.GridCard=i.GridCard,exports.GridCardMarkup=i.GridCardMarkup,exports.GridFallback=i.GridFallback,exports.GridWrapper=i.GridWrapper,exports.GroupedBarChart=i.GroupedBarChart,exports.Hidden=i.Hidden,exports.HrLine=i.HrLine,exports.ImageList=i.ImageList,exports.ImageListItem=i.ImageListItem,exports.ImageListItemBar=i.ImageListItemBar,exports.InventoryReportsTitleBar=i.InventoryReportsTitleBar,exports.ItemResponseDetails=i.ItemResponseDetails,exports.LabelValue=i.LabelValue,exports.LineChart=i.LineChart,exports.List=i.List,exports.Listing=i.ListingComponent,exports.ListingComponent=i.ListingComponent,exports.MaterialEditableTable=i.MaterialEditableTable,exports.MobileStepper=i.MobileStepper,exports.MultiLine=i.MultiLine,exports.MultiLineChart=i.MultiLineChart,exports.Multiline=i.MultiLine,exports.NativeSelect=i.NativeSelect,exports.NoSsr=i.NoSsr,exports.PageLoader=i.PageLoader,exports.PartiesModal=i.CustomerVendorModal,exports.ProtectedRoute=i.ProtectedRoute,exports.QuickApprovalModal=i.QuickApprovalModal,exports.Rating=i.Rating,exports.ReportButtons=i.ReportButtons,exports.ReportTable=i.ReportTable,exports.ReportsTitleBar=i.ReportsTitleBar,exports.RfqResponse=i.ItemResponseDetails,exports.ScheduleReport=i.GeneralScheduleReport,exports.ScheduleReportModal=i.ScheduleReportModal,exports.ScopedCssBaseline=i.ScopedCssBaseline,exports.Snackbar=i.Snackbar,exports.SpeedDial=i.SpeedDial,exports.SpeedDialAction=i.SpeedDialAction,exports.SpeedDialIcon=i.SpeedDialIcon,exports.Step=i.Step,exports.StepButton=i.StepButton,exports.StepContent=i.StepContent,exports.StepLabel=i.StepLabel,exports.Stepper=i.Stepper,exports.SubHeaderDoc=i.SubHeaderDoc,exports.SwipeableDrawer=i.SwipeableDrawer,exports.TabBarUI=i.TabBarUi,exports.TabBarUi=i.TabBarUi,exports.TablePagination=i.TablePagination,exports.TextArea=i.TextArea,exports.TimeRangePicker=i.TimeRangePicker,exports.UomFieldWrapper=i.UomFieldWrapper,exports.Upload=i.Upload,exports.UserDropdown=i.UserDropdown,exports.Zoom=i.Zoom,exports.calculateOptimalSizes=i.calculateOptimalSizes,exports.createPermissionConfig=i.createPermissionConfig,exports.dynamicFields=i.dynamicFields,exports.fields=i.fields,exports.useDynamicLayout=i.useDynamicLayout,exports.useScrollTrigger=i.useScrollTrigger,exports.validator=i.validator,exports.ActivityArea=p.ActivityArea,exports.AppBar=p.AppBarWrapper,exports.AppBarWrapper=p.AppBarWrapper,exports.Avatar=p.Avatar,exports.Badge=p.Badge,exports.Button=p.Button,exports.ClickAwayListener=p.ClickAwayListener,exports.Collapse=p.Collapse,exports.ConfirmModal=p.ConfirmPopUp,exports.ConfirmPopUp=p.ConfirmPopUp,exports.DialogActions=p.DialogActions,exports.DialogContent=p.DialogContent,exports.DialogTitle=p.DialogTitle,exports.Divider=p.Divider,exports.DynamicInput=p.DynamicInput,exports.FilledInput=p.FilledInput,exports.FormControl=p.FormControl,exports.FormHelperText=p.FormHelperText,exports.FormLabel=p.FormLabel,exports.Header=p.Header,exports.Input=p.Input,exports.InputAdornment=p.InputAdornment,exports.InputBase=p.InputBase,exports.InputLabel=p.InputLabel,exports.ListItem=p.ListItem,exports.ListItemAvatar=p.ListItemAvatar,exports.ListItemIcon=p.ListItemIcon,exports.ListItemSecondaryAction=p.ListItemSecondaryAction,exports.ListItemText=p.ListItemText,exports.MUIAlert=p.Alert,exports.MUIAppBar=p.AppBar,exports.MUIButton=p.Button$1,exports.MUICircularProgress=p.CircularProgress,exports.MUIDialog=p.Dialog,exports.MUISelect=p.Select$1,exports.MUISnackbar=p.Snackbar,exports.MUITextField=p.TextField$1,exports.MUITooltip=p.Tooltip$1,exports.Modal=p.Modal,exports.OutlinedInput=p.OutlinedInput,exports.Popper=p.Popper,exports.ResetPasswordModal=p.ResetPasswordModal,exports.SearchBar=p.SearchBar,exports.Select=p.Select,exports.SnackbarContent=p.SnackbarContent,exports.TextField=p.TextField,exports.TextareaAutosize=p.TextareaAutosize,exports.Toast=p.Toast,exports.Toolbar=p.Toolbar,exports.Tooltip=p.Tooltip,exports.Chip=n.Chip,exports.DefaultAggregation=n.DefaultAggregation,exports.MUIChip=n.Chip$1,exports.Menu=n.Menu,exports.ValueField=n.ValueField,exports.convertTableColumns=n.convertTableColumns,exports.formBuilderDeConversion=n.formBuilderDeConversion,exports.getFileNamesFromUrls=n.getFileNamesFromUrls,exports.getFileNamesFromUrlsAsLink=n.getFileNamesFromUrlsAsLink,exports.renderEmptyRowsFallback=n.renderEmptyRowsFallback,exports.renderValueField=n.renderValueField,exports.transformTableColumns=n.transformTableColumns,exports.AuthContext=l.AuthContext,exports.AuthProvider=l.AuthProvider,exports.CustomSnackbar=l.CustomSnackbar,exports.IconButton=l.IconButton,exports.LanguageContext=l.LanguageContext,exports.LanguageProvider=l.LanguageProvider,exports.MUIAvatar=l.Avatar,exports.useAuth=l.useAuth,exports.CustomEditor=x.CustomEditor,exports.Editor=x.CustomEditor,exports.Drawer=c.Drawer,exports.Icon=c.Icon,exports.ListItemButton=c.ListItemButton,exports.Sidebar=c.Sidebar,exports.ButtonBase=d.ButtonBase,exports.MUITypography=d.Typography$1,exports.Typography=d.Typography,exports.convertRoutesToUseIdParams=d.convertRoutesToUseIdParams,exports.generateRouteWithId=d.generateRouteWithId,exports.navigateToRouteWithId=d.navigateToRouteWithId,exports.updatePathnameWithIdParams=d.updatePathnameWithIdParams,exports.ERPUIProvider=u.ERPUIProvider,exports.apiHelper=u.apiHelper,exports.useDataFetcher=u.useGenericDataFetcher,exports.useERPUI=u.useERPUI,exports.Backdrop=m.Backdrop,exports.Fade=m.Fade,exports.MUIList=m.List,exports.MUIMenu=m.Menu,exports.MUIModal=m.Modal,exports.MenuItem=m.MenuItem,exports.MenuList=m.MenuList,exports.Paper=m.Paper,exports.Popover=m.Popover,exports.Portal=m.Portal,exports.Box=g.Box,exports.CssBaseline=S.CssBaseline,exports.GlobalStyles=S.GlobalStyles,exports.Grow=C.Grow,exports.Styled=T.Styled,exports.SvgIcon=T.SvgIcon,exports.Action=y.Action,exports.ActionArrow=y.ActionArrow,exports.AddCircle=y.AddCircle,exports.ArrowBidirectional=y.ArrowBidirectional,exports.ArrowDownThree=y.ArrowDownThree,exports.ArrowUpTwo=y.ArrowUpTwo,exports.Assignments=y.Assignments,exports.BlockFiled=y.BlockFiled,exports.CalendarAdd=y.CalendarAdd,exports.CircularArrowSetting=y.CircularArrowSetting,exports.CoinOutline=y.CoinOutline,exports.Copy=y.Copy,exports.Coupon=y.Coupon,exports.Criteria=y.Criteria,exports.Cross=y.Cross,exports.CrossHire=y.CrossHire,exports.DollarCircleFilled=y.DollarCircleFilled,exports.EyePlusCircle=y.EyePlusCircle,exports.Info=y.Info,exports.LowestLeadTime=y.LowestLeadTime,exports.LowestMinQty=y.LowestMinQty,exports.LowestPrice=y.LowestPrice,exports.OctagonWithOutTick=y.OctagonWithOutTick,exports.OctagonWithTick=y.OctagonWithTick,exports.PaymentRequest=y.PaymentRequest,exports.Printer=y.Printer,exports.ProcessCalendar=y.ProcessCalendar,exports.Promotion=y.Promotion,exports.Receipt=y.Receipt,exports.ReceiptFilled=y.ReceiptFilled,exports.ReceiptOutline=y.ReceiptOutline,exports.RectangleFilledIcon=y.RectangleFilledIcon,exports.Refresh=y.Refresh,exports.Replace=y.Replace,exports.SettingsFallback=y.SettingsFallback,exports.SettingsFallbackIcon=y.SettingsFallbackIcon,exports.Share=y.Share,exports.SortActionArrow=y.SortActionArrow,exports.StackedLayer=y.StackedLayer,exports.StartFilled=y.StartFilled,exports.ThreeDotIcon=y.ThreeDotIcon,exports.TickCircle=y.TickCircle,exports.TickCircleFilled=y.TickCircleFilled,exports.Wave=y.Wave,exports.WorkCentre=y.WorkCentre,exports.ArrowCircleDown=D.ArrowCircleDown,exports.ArrowDownTwo=D.ArrowDownTwo,exports.ArrowUpDown=D.ArrowUpDown,exports.BlankCircle=D.BlankCircle,exports.CheckBoxIcon=D.CheckBoxIcon,exports.CheckboxSquare=D.CheckboxSquare,exports.Clock=D.Clock,exports.Close=D.Close,exports.DocumentDownload=D.DocumentDownload,exports.DollarCircle=D.DollarCircle,exports.Edit=D.Edit,exports.Email=D.Email,exports.Export=D.Export,exports.FilledCircle=D.FilledCircle,exports.FilterRemove=D.FilterRemove,exports.FolderSave=D.FolderSave,exports.Hashtag=D.Hashtag,exports.Image=D.Image,exports.Import=D.Import,exports.InfoCircle=D.InfoCircle,exports.LinkHorizontal=D.LinkHorizontal,exports.Location=D.Location,exports.MoreIcon=D.MoreIcon,exports.PaperClip=D.PaperClip,exports.Paragraph=D.Paragraph,exports.Phone=D.Phone,exports.RadioButton=D.RadioButton,exports.RecgtangleIcon=D.RecgtangleIcon,exports.Save=D.Save,exports.Trash=D.Trash,exports.ArrowDown=h.ArrowDown,exports.Eye=h.Eye,exports.EyeOff=h.EyeOff,exports.Search=h.Search,exports.SearchStatus=h.SearchStatus,exports.Tick=h.Tick,exports.Document=A.Document,exports.Notification=b.Notification,exports.useDeepMemo=P.useDeepMemo,exports.useLocationFilter=P.useLocationFilter,exports.useMultipleLocationFilters=P.useMultipleLocationFilters,exports.usePages=P.usePages,exports.usePermissions=P.usePermissions,exports.apiType=I.apiType,exports.capitalizeWords=I.capitalizeWords,exports.convertEmptyToNull=I.convertEmptyToNull,exports.defaultUserCurrency=I.defaultUserCurrency,exports.formatNumber=I.formatNumber,exports.formatTime=I.formatTime,exports.formateDate=I.formateDate,exports.getAvailableSteelTypes=I.getAvailableSteelTypes,exports.getAvailableTubeTypes=I.getAvailableTubeTypes,exports.recursiveSort=I.recursiveSort,exports.removeExtraKeys=I.removeExtraKeys,exports.sortData=I.sortData,exports.useAccountingSetting=I.useAccountingSetting,exports.useApi=I.useApi,exports.useAppTranslations=I.useAppTranslations,exports.useFormFieldUpdater=I.useFormFieldUpdater,exports.useLanguageFallback=I.useLanguageFallback,exports.useLanguageState=I.useLanguageState,exports.useMaterialCalculations=I.useMaterialCalculations,exports.useNameSkuUniquenessCheck=I.useNameSkuUniquenessCheck,exports.useReduxIntegration=I.useReduxIntegration,exports.validateFormValues=I.validateFormValues,exports.valueWithCurrency=I.valueWithCurrency,exports.ThemeSelector=f.themeVariant,exports.getTheme=f.getTheme,exports.primaryFont=f.primaryFont,exports.pxToRem=f.pxToRem,exports.remToPx=f.remToPx,exports.responsiveFontSizes=f.responsiveFontSizes,exports.secondaryFont=f.secondaryFont,exports.themeVariant=f.themeVariant,exports.typography=f.typography,exports.MUIThemeWrapper=F.MUIThemeWrapper,exports.ThemeWrapper=F.MUIThemeWrapper,exports.createDarkTheme=F.createDarkTheme,exports.createLightTheme=F.createLightTheme,exports.themes=F.themes,exports.deFormatText=L.deFormatText,exports.formBuilderConversion=L.formBuilderConversion,exports.COMMON_DATE_VALIDATIONS=R.COMMON_DATE_VALIDATIONS,exports.MenuFilter=R.MenuFilter,exports.MenuFilterService=R.MenuFilterService,exports.MetaComponent=R.MetaComponent,exports.ModuleAccessService=R.ModuleAccessService,exports.StorageUtils=R.StorageUtils,exports.anyDateValidation=R.anyDateValidation,exports.businessDateValidation=R.businessDateValidation,exports.conditionalDateValidation=R.conditionalDateValidation,exports.createCustomMessages=R.createCustomMessages,exports.createDateValidation=R.createDateValidation,exports.createParameterizedNavigationHandler=R.createParameterizedNavigationHandler,exports.dateRangeValidation=R.dateRangeValidation,exports.dateTimeValidation=R.dateTimeValidation,exports.dateValidation=R.dateValidation,exports.fileSize=R.fileSize,exports.futureDateValidation=R.futureDateValidation,exports.getCountry=R.getCountry,exports.migrateRoutesToUseParams=R.migrateRoutesToUseParams,exports.migrateToPathWithId=R.migrateToPathWithId,exports.pastDateValidation=R.pastDateValidation,exports.updateTableConfigForParameterizedNavigation=R.updateTableConfigForParameterizedNavigation,exports.FullscreenLayout=M.FullscreenLayout,exports.SidebarLayout=B.SidebarLayout,exports.AddTemplate=E.AddTemplate,exports.AlignmentControl=E.AlignmentControl,exports.BorderControl=E.BorderControl,exports.ButtonControls=E.ButtonControls,exports.ChangePassword=E.ChangePassword,exports.CheckboxEditForm=E.CheckboxEditForm,exports.CodeControls=E.CodeControls,exports.ColumnWidth=E.ColumnWidth,exports.CompanySelectionModal=E.CompanySelectionModal,exports.CustomForm=E.CustomForm,exports.DividerControls=E.DividerControls,exports.EditSectionModal=E.EditSectionModal,exports.EditorCanvas=E.EditorCanvas,exports.EditorHeader=E.EditorHeader,exports.EditorSection=E.EditorSection,exports.EditorSidebar=E.EditorSidebar,exports.FieldSelect=E.FieldSelect,exports.ForgotPassword=E.ForgotPassword,exports.FormField=E.FormField,exports.FormFields=E.FormFields,exports.HtmlThumbnailPreview=E.HtmlThumbnailPreview,exports.ImageControls=E.ImageControls,exports.Landing=E.Landing,exports.NotFound=E.NotFound,exports.PageView=E.PageView,exports.PrivateRoute=E.PrivateRoute,exports.React=E.TextControls,exports.ResetPassword=E.ResetPassword,exports.SectionEditForm=E.SectionEditForm,exports.SectionFlowEditor=E.SectionFlowEditor,exports.SectionFormatPanel=E.SectionFormatPanel,exports.SelectEditForm=E.SelectEditForm,exports.SignatureControls=E.SignatureControls,exports.TableControls=E.TableControls,exports.TableEditForm=E.TableEditForm,exports.TemplateModal=E.TemplateModal,exports.TemplateNameModal=E.TemplateNameModal,exports.Templates=E.Templates,exports.TextEditForm=E.TextEditForm,exports.activityTag=E.activityTag,exports.board=E.board,exports.calendarData=E.calendarData,exports.column=E.column,exports.createDefaultTableColumns=E.createDefaultTableColumns,exports.data=E.data,exports.defaultData=E.defaultData,exports.element=E.element,exports.emailColumns=E.emailColumns,exports.extractSections=E.extractSections,exports.extractStyles=E.extractStyles,exports.fetchPage=E.fetchPage,exports.generateEmailPreview=E.generateEmailPreview,exports.generateHeaderFooterPreview=E.generateHeaderFooterPreview,exports.generateInlineStyles=E.generateInlineStyles,exports.generateModulePath=E.generateModulePath,exports.getInitialSectionData=E.getInitialSectionData,exports.local=E.local,exports.multilineData=E.multilineData,exports.pageViewChangeCurrentPage=E.pageViewChangeCurrentPage,exports.pageViewSlice=E.reducer,exports.processMembers=E.processMembers,exports.processTableColumns=E.processTableColumns,exports.setColumnOrder=E.setColumnOrder,exports.setPageViewPages=E.setPageViewPages,exports.setPageViewPaginationModel=E.setPageViewPaginationModel,exports.setRowData=E.setRowData,exports.tableData=E.tableData,exports.tabsData=E.tabsData,exports.templateEditorRoutes=E.templateEditorRoutes,exports.templateRoutes=E.templateRoutes,exports.textOptions=E.textOptions,exports.useCKEditorStyleExtractor=E.useCKEditorStyleExtractor,exports.useFormDataEffect=E.useFormDataEffect,exports.useFormDataProcessor=E.useFormDataProcessor,exports.userData=E.userData,exports.UsersFetchAction=v.UsersFetchAction,exports.changeCurrentPage=v.changeCurrentPage,exports.dashBoardDrive=v.dashBoardDrive,exports.dashboardChangeCurrentPage=v.changeCurrentPage,exports.dashboardSetPages=v.setPages,exports.dashboardSetPaginationModel=v.setPaginationModel,exports.dashboardSetSharedPage=v.setSharedPage,exports.dashboardSlice=v.reducer,exports.fetchDashboardUsers=v.UsersFetchAction,exports.formBuilderListSlice=v.reducer$1,exports.getFieldsByFormId=v.getFieldsByFormId,exports.getFormDataById=v.getFormDataById,exports.patchFormDataById=v.patchFormDataById,exports.pinToDashboardAction=v.pinToDashboardAction,exports.pinToDashboardList=v.pinToDashboardList,exports.setFormData=v.setFormData,exports.setGrid=v.setGrid,exports.setPages=v.setPages,exports.setPagesAction=v.setPagesAction,exports.setSharedPage=v.setSharedPage,exports.setSharedPageAction=v.setSharedPageAction,exports.setUserName=v.setUserName,exports.setUserNameAction=v.setUserNameAction,exports.setdashboardDriveData=v.setdashboardDriveData,exports.sharedPagesData=v.sharedPagesData,exports.state=v.state,Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:function(){return w.useTranslation}}),exports.useLanguage=k.useLanguage,exports.PageContext=O.PageContext,exports.PageProvider=O.PageProvider,exports.PermissionsContext=O.PermissionsContext,exports.PermissionsProvider=O.PermissionsProvider,exports.defaultPageState=O.defaultPageState,exports.initialFilter=O.initialFilter,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return J.default}}),exports.RANGE=j.RANGE,exports.calculateEntries=j.calculateEntries,exports.getEntityId=j.getEntityId,exports.handleCompareDateRange=j.handleCompareDateRange,exports.handleCompareDateRangeSync=j.handleCompareDateRangeSync,exports.navigateWithId=j.navigateWithId,exports.AccountingApi=U.api,exports.DriveApi=U.api$1,exports.InventoryApi=U.api$2,exports.ManufacturingApi=U.api$3,exports.PurchaseApi=U.api$4,exports.RbacApi=U.api$5,exports.RentalApi=U.api$6,exports.SalesApi=U.api$7,exports.SystemFeatureApi=U.api$8,exports.setDriveURL=U.setBaseUrl$1,exports.setRoleURL=U.setBaseUrl,exports.setSystemFeatureURL=U.setBaseUrl$2,exports.loadModuleTranslations=N.loadModuleTranslations,exports.createParties=V.createParties,exports.getLocation=V.getLocation,exports.API_METHOD_GROUPS=_.API_METHOD_GROUPS,exports.createConfiguredApiClient=_.createConfiguredApiClient,exports.createModuleSlice=_.createModuleSlice,exports.fetchBom=_.fetchBom,exports.fetchCompanies=_.fetchCompanies,exports.getAllUserAndDepartmentDropdown=_.getAllUserAndDepartmentDropdown,exports.headerSlice=_.headerSlice,exports.inventoryReportsTitleBarSlice=_.inventoryReportsTitleBarSlice,exports.reportsTitleBarSlice=_.reportsTitleBarSlice,exports.resetHeaderState=_.resetHeaderState,exports.resetInventoryReportsTitleBarState=_.resetInventoryReportsTitleBarState,exports.resetLanguagesState=_.resetLanguagesState,exports.resetReportsTitleBarState=_.resetReportsTitleBarState,exports.resetState=_.resetState,exports.setAssemblyItems=_.setAssemblyItems,exports.setBomData=_.setBomData,exports.setCurrentLanguage=_.setCurrentLanguage,exports.setDepartments=_.setDepartments,exports.setItems=_.setItems,exports.setLanguages=_.setLanguages,exports.setLanguagesData=_.setLanguagesData,exports.setUsers=_.setUsers,exports.setWarehouseLocations=_.setWarehouseLocations,exports.sharePage=_.sharePage,exports.shareSlice=_.shareSlice,exports.validateApiClient=_.validateApiClient,exports.useAppDispatch=W.useAppDispatch,exports.useAppSelector=W.useAppSelector,exports.useLibraryDispatch=W.useLibraryDispatch,exports.useLibrarySelector=W.useLibrarySelector,exports.createLibraryStore=G.createLibraryStore,exports.getLibrarySlices=G.getLibrarySlices,exports.injectLibraryReducer=G.injectLibraryReducer,exports.libraryReducers=G.libraryReducers,exports.removeLibraryReducer=G.removeLibraryReducer,exports.store=G.store,Object.defineProperty(exports,"combineReducers",{enumerable:!0,get:function(){return H.combineReducers}}),Object.defineProperty(exports,"configureStore",{enumerable:!0,get:function(){return H.configureStore}}),Object.defineProperty(exports,"createAction",{enumerable:!0,get:function(){return H.createAction}}),Object.defineProperty(exports,"createAsyncThunk",{enumerable:!0,get:function(){return H.createAsyncThunk}}),Object.defineProperty(exports,"createDraftSafeSelector",{enumerable:!0,get:function(){return H.createDraftSafeSelector}}),Object.defineProperty(exports,"createEntityAdapter",{enumerable:!0,get:function(){return H.createEntityAdapter}}),Object.defineProperty(exports,"createListenerMiddleware",{enumerable:!0,get:function(){return H.createListenerMiddleware}}),Object.defineProperty(exports,"createReducer",{enumerable:!0,get:function(){return H.createReducer}}),Object.defineProperty(exports,"createSelector",{enumerable:!0,get:function(){return H.createSelector}}),Object.defineProperty(exports,"createSlice",{enumerable:!0,get:function(){return H.createSlice}}),Object.defineProperty(exports,"current",{enumerable:!0,get:function(){return H.current}}),Object.defineProperty(exports,"isAllOf",{enumerable:!0,get:function(){return H.isAllOf}}),Object.defineProperty(exports,"isAnyOf",{enumerable:!0,get:function(){return H.isAnyOf}}),Object.defineProperty(exports,"isFulfilled",{enumerable:!0,get:function(){return H.isFulfilled}}),Object.defineProperty(exports,"isPending",{enumerable:!0,get:function(){return H.isPending}}),Object.defineProperty(exports,"isRejected",{enumerable:!0,get:function(){return H.isRejected}}),Object.defineProperty(exports,"isRejectedWithValue",{enumerable:!0,get:function(){return H.isRejectedWithValue}}),Object.defineProperty(exports,"nanoid",{enumerable:!0,get:function(){return H.nanoid}}),Object.defineProperty(exports,"unwrapResult",{enumerable:!0,get:function(){return H.unwrapResult}}),exports.DriveTypes=$.DriveTypes,exports.InventoryTypes=$.InventoryTypes,exports.ManufacturingTypes=$.ManufacturingTypes,exports.PurchaseTypes=$.PurchaseTypes,exports.RbacTypes=$.RbacTypes,exports.RentalTypes=$.RentalTypes,exports.SalesTypes=$.SalesTypes,exports.SystemFeatureTypes=$.SystemFeatureTypes,exports.UserApi=$.UserApi,exports.UserTypes=$.UserTypes,exports.TEMPLATE_EDITOR_PATHS=z.TEMPLATE_EDITOR_PATHS,exports.initialStyles=z.initialStyles,exports.configureLibrary=e=>{K={...K,...e}},exports.getConfigFunction=(e,t)=>{const r=K[e];if(r&&r[t])return r[t];switch(`${String(e)}.${String(t)}`){case"routes.generatePathWithId":return(e,t)=>e.replace(":id",String(t));case"dataTransforms.formatCurrency":return(e,t="USD")=>`${t} ${e.toFixed(2)}`;case"dataTransforms.formatDate":return e=>new Date(e).toLocaleDateString();case"validation.validateEmail":return e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);case"permissions.hasPermission":return()=>!0;case"localization.getCurrentLanguage":return()=>"en";case"localization.translate":return e=>e;case"notifications.showSuccess":case"notifications.showError":case"notifications.showInfo":return e=>{};default:return(...r)=>{throw new Error(`Configuration not provided for ${String(e)}.${String(t)}. Please configure this in your consuming application.`)}}},exports.getLibraryConfig=()=>K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./images-Dwb4un_s.js"),t=require("./all-language-XhvdjcQg.js"),r=require("./common-DyuISUDa.js"),o=require("./common-DzWMY4wi.js"),a=require("./modules-xSiesxge.js"),s=require("./form-parser-4pkb3y5x.js"),i=require("./uom-field-wrapper-CgydACtZ.js"),p=require("./Tooltip-79rwVtXd.js"),n=require("./form-builder-deconversion-CI-hW2RC.js"),l=require("./languageContext-wDrqMwzj.js"),x=require("./custom-editor-BqoM2jYY.js"),c=require("./sidebar-dJ3pCkin.js"),d=require("./route-utils-ifjI7_7l.js"),u=require("./apiHelper-CiKMWI2r.js"),m=require("./MenuItem-DVUFCxXA.js"),g=require("./Box-C3settuL.js"),S=require("./CssBaseline-BKvBQY51.js"),C=require("./Grow-isiVHeFI.js"),T=require("./custom-styled-icon-CtBVvAxY.js"),y=require("./work-centre-DfZoIhwG.js"),D=require("./trash-Cbz_9LiC.js"),h=require("./tick-NWosMxbn.js"),A=require("./document-LqHIUxSn.js"),b=require("./notification-DrpgO56m.js"),P=require("./useLocationFilter-BizEkzgz.js"),I=require("./hooks/index.js"),f=require("./theme/index.js"),F=require("./theme-impl-BliqM73m.js"),L=require("./form-builder-conversion-BTKDVbAC.js"),R=require("./migration-utils-t8N4H56x.js"),M=require("./fullScreen-BDDP3qch.js"),B=require("./layout/index.js"),E=require("./default-data-CDYqFbnj.js"),v=require("./reducer-BZCFgNcr.js"),w=require("react-i18next"),k=require("./useLangauge--qqmoWbd.js"),O=require("./contexts/index.js"),q=require("i18next"),j=require("./navigation-utils-DO2Se8i-.js"),U=require("./api-BU2KNfrl.js"),N=require("./translations-1dZqnqOl.js"),V=require("./actionCreator-DZG5yqwN.js"),_=require("./redux/index.js"),W=require("./hooks-CzoDgYvR.js"),G=require("./store-Va8DfTuN.js"),H=require("@reduxjs/toolkit"),$=require("./api-client/index.js"),z=require("./route-page-map-DJlBCFU5.js");function Y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react/jsx-runtime"),require("dayjs"),require("./auth-BHeRds0l.js"),require("lodash"),require("react"),require("react-dom"),require("dayjs/plugin/utc"),require("libphonenumber-js"),require("moment-timezone"),require("./pathname.hrms-BYy3B3SQ.js"),require("./DefaultPropsProvider-DXLRpppW.js"),require("react-is"),/* empty css */require("./action-bar-BmEN5Ob9.js"),require("react-querybuilder"),require("react-router-dom"),require("react-dropzone"),require("react-redux"),require("lodash/clamp.js"),require("lodash/uniq.js"),require("lodash/flatten.js"),require("lodash/range.js"),require("lodash/debounce.js"),require("lodash/has.js"),require("lodash/throttle.js"),require("lodash/groupBy.js"),require("react-responsive-carousel"),require("react-hook-form"),/* empty css */require("react-dnd"),require("yup"),require("dayjs/plugin/weekOfYear"),require("dayjs/plugin/customParseFormat"),require("dayjs/plugin/localizedFormat"),require("dayjs/plugin/isBetween"),require("react-transition-group"),require("./useId-Cl8V2SF-.js"),require("react-phone-input-2"),/* empty css */require("react-flags-select"),require("date-fns/locale"),require("react-date-range"),require("react-select"),require("react-laag"),require("react-datepicker"),require("date-fns"),/* empty css */require("socket.io-client"),/* empty css */,/* empty css */,/* empty css */require("moment"),require("i18next-http-backend"),require("react-helmet"),require("./mui.constants-BRJ6xCYX.js"),/* empty css */require("react-dnd-html5-backend"),require("./toggle-switch-CSpnvxeE.js");var J=/* @__PURE__ */Y(q);let K={};exports.images=e.images,exports.DEFAULT_LANG=t.DEFAULT_LANG,exports.LANGUAGES=t.LANGUAGES,exports.S3_BUCKET_URL=r.S3_BUCKET_URL,exports.INVENTORY_ADD_MODE_DISABLED_FIELDS=o.INVENTORY_ADD_MODE_DISABLED_FIELDS,exports.INVENTORY_ALWAYS_DISABLED_FIELDS=o.INVENTORY_ALWAYS_DISABLED_FIELDS,exports.INVENTORY_EDIT_MODE_DISABLED_FIELDS=o.INVENTORY_EDIT_MODE_DISABLED_FIELDS,exports.INVENTORY_FIELDS_TO_BE_DISABLED=o.INVENTORY_FIELDS_TO_BE_DISABLED,exports.INVENTORY_MATERIAL_COSTING_TYPE_ARR=o.INVENTORY_MATERIAL_COSTING_TYPE_ARR,exports.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS=o.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS,exports.INVENTORY_VARIANT_DISABLED_FIELDS=o.INVENTORY_VARIANT_DISABLED_FIELDS,exports.InvoiceStatus=o.InvoiceStatus,exports.SECTION_TYPES=o.SECTION_TYPES,exports.UTCDateFormat=o.UTCDateFormat,exports.addOrEditArray=o.addOrEditArray,exports.apiConfigurations=o.apiConfigurations,exports.appendConditionSafely=o.appendConditionSafely,exports.calculateAmountData=o.calculateAmountData,exports.calculatePeriods=o.calculatePeriods,exports.checkDuplicateTracking=o.checkDuplicateTracking,exports.checkForDuplicate=o.checkForDuplicate,exports.checkSkuAndItemName=o.checkSkuAndItemName,Object.defineProperty(exports,"closeSnackbar",{enumerable:!0,get:function(){return o.closeSnackbar}}),exports.convertToUnderscore=o.convertToUnderscore,exports.createdOnAndBy=o.createdOnAndBy,exports.dateFormat=o.dateFormat,exports.defaultCompany=o.defaultCompany,exports.defaultCurrencyFormat=o.defaultCurrencyFormat,exports.defaultCurrencySymbol=o.defaultCurrencySymbol,exports.displayPhone=o.displayPhone,exports.downloadDoc=o.downloadDoc,exports.downloadFile=o.downloadFile,Object.defineProperty(exports,"enqueueSnackbar",{enumerable:!0,get:function(){return o.enqueueSnackbar}}),exports.fetchApi=o.fetchApi,exports.fetchAssemblyItemData=o.fetchAssemblyItemData,exports.fetchCompanyLocations=o.fetchCompanyLocations,exports.fetchDataLocally=o.fetchDataLocally,exports.fetchExchageRate=o.fetchExchageRate,exports.fetchItems=o.fetchItems,exports.fetchRentalResponseItems=o.fetchRentalResponseItems,exports.fetchRfqItemsByIdForResponse=o.fetchRfqItemsByIdForResponse,exports.filterAccessibleModules=o.filterAccessibleModules,exports.filterCoaByCompanyIdOrNull=o.filterCoaByCompanyIdOrNull,exports.findById=o.findById,exports.formatAmount=o.formatAmount,exports.formatAmountWithCurrency=o.formatAmountWithCurrency,exports.formatAmountWithCurrencyData=o.formatAmountWithCurrencyData,exports.formatDataTime=o.formatDataTime,exports.formatDate=o.formatDate,exports.formatDateForPayload=o.formatDateForPayload,exports.formatDateTimeForPayload=o.formatDateTimeForPayload,exports.formatEmptyDataToNull=o.formatEmptyDataToNull,exports.formatLabel=o.formatLabel,exports.formatOnlyTime=o.formatOnlyTime,exports.formatResponseDatesToDayJS=o.formatResponseDatesToDayJS,exports.formatResponseOnlyDatesToDayJS=o.formatResponseOnlyDatesToDayJS,exports.formatTimeForPayload=o.formatTimeForPayload,exports.formatUtcDate=o.formatUtcDate,exports.generateAndFormatStringFromObj=o.generateAndFormatStringFromObj,exports.generateFields=o.generateFields,exports.generateQueryString=o.generateQueryString,exports.generateRandomId=o.generateRandomId,exports.getAccessibleModules=o.getAccessibleModules,exports.getApiConfig=o.getApiConfig,exports.getApiConfigSafe=o.getApiConfigSafe,exports.getCountryIdByName=o.getCountryIdByName,exports.getErrorMessage=o.getErrorMessage,exports.getExcelExportTemplate=o.getExcelExportTemplate,exports.getExcelTemplateGenerateTemplate=o.getExcelTemplateGenerateTemplate,exports.getFieldFilters=o.getFieldFilters,exports.getFileName=o.getFileName,exports.getLabelValuePairs=o.getLabelValuePairs,exports.getMinutesFromTime=o.getMinutesFromTime,exports.getName=o.getName,exports.getNestedValue=o.getNestedValue,exports.getNextScheduleDate=o.getNextScheduleDate,exports.getOperatorLabel=o.getOperatorLabel,exports.getOptionsData=o.getOptionsData,exports.getPartyDependentData=o.getPartyDependentData,exports.getPartyName=o.getPartyName,exports.getSlicedValue=o.getSlicedValue,exports.getTaxAmountDataFromMultipleTaxCodes=o.getTaxAmountDataFromMultipleTaxCodes,exports.getTaxAmountFromMultipleTaxCodes=o.getTaxAmountFromMultipleTaxCodes,exports.getTimeFromMinutes=o.getTimeFromMinutes,exports.getToken=o.getToken,exports.handleRegularUpload=o.handleRegularUpload,exports.hasValue=o.hasValue,exports.initializeApiConfig=o.initializeApiConfig,exports.isApiConfigInitialized=o.isApiConfigInitialized,exports.isBetweenTheDates=o.isBetweenTheDates,exports.isJSONString=o.isJSONString,exports.isJsonParse=o.isJsonParse,exports.manageItems=o.manageItems,exports.mapApiPayload=o.mapApiPayload,exports.mapAsyncApiPayload=o.mapAsyncApiPayload,exports.matchedMaterialCostingTypeLabel=o.matchedMaterialCostingTypeLabel,exports.omitDataKeys=o.omitDataKeys,exports.onApiConfigReady=o.onApiConfigReady,exports.partyDuplicateCheck=o.partyDuplicateCheck,exports.partyEmailIds=o.partyEmailIds,exports.postImportSheet=o.postImportSheet,exports.remainingMaterialCostingTypes=o.remainingMaterialCostingTypes,exports.removeIdFromObject=o.removeIdFromObject,exports.removeIdStaticIdsFromMongoObject=o.removeIdStaticIdsFromMongoObject,exports.resetApiConfig=o.resetApiConfig,exports.responseItemDetailsColumns=o.responseItemDetailsColumns,exports.setRateBasedOnPriceRules=o.setRateBasedOnPriceRules,exports.showSnackBar=o.showSnackBar,exports.skuGenerator=o.skuGenerator,exports.specificFilters=o.specificFilters,exports.subModuleMappings=o.subModuleMappings,exports.toFixedWithNumbers=o.toFixedWithNumbers,exports.updateFieldsDisabledState=o.updateFieldsDisabledState,exports.uploadAttachments=o.uploadAttachments,exports.uploadFiles=o.uploadFiles,exports.validateDiscountValidity=o.validateDiscountValidity,exports.modules=a.modules,exports.Accordion=s.Accordion,exports.AccordionDetails=s.AccordionDetails,exports.AccordionSummary=s.AccordionSummary,exports.ActionBar=s.ActionBar,exports.AddPage=s.AddPage,exports.AddPageModal=s.AddPageModal,exports.Alert=s.Alert,exports.AlertTitle=s.AlertTitle,exports.Android12Switch=s.Android12Switch,exports.AndroidSwitch=s.Android12Switch,exports.Autocomplete=s.Autocomplete,exports.BreadCrumb=s.BreadCrumb,exports.ButtonGroup=s.ButtonGroup,exports.CardMedia=s.CardMedia,exports.Checkbox=s.Checkbox,exports.ChipGenerator=s.ChipGenerator,exports.ChipOrPlaceholder=s.ChipOrPlaceholder,exports.ColorPickerInput=s.ColorPickerInput,exports.Container=s.Container,exports.DatePicker=s.DatePicker,exports.DateTimePicker=s.DateTimePicker,exports.DropdownButton=s.DropdownButton,exports.DynamicButton=s.DynamicButton,exports.DynamicCheckBox=s.DynamicCheckBox,exports.DynamicCurrency=s.DynamicCurrency,exports.DynamicDate=s.DynamicDate,exports.DynamicElementHOC=s.DynamicElementHOC,exports.DynamicInfo=s.DynamicInfo,exports.DynamicInputSelect=s.DynamicInputSelect,exports.DynamicMedia=s.DynamicMedia,exports.DynamicPhone=s.DynamicPhone,exports.DynamicRadioButton=s.DynamicRadioButton,exports.DynamicSearchSelect=s.DynamicSearchSelect,exports.DynamicSectionHOC=s.DynamicSectionHOC,exports.DynamicSelect=s.DynamicSelect,exports.DynamicTable=s.DynamicTable,exports.DynamicTagsInput=s.DynamicTagsInput,exports.DynamicTime=s.DynamicTime,exports.DynamicToggleButton=s.DynamicToggleButton,exports.ErpLoader=s.ErpLoader,exports.Fallback=s.Fallback,exports.Filter=s.Filter,exports.Footer=s.Footer,exports.FormControlLabel=s.FormControlLabel,exports.FormGroup=s.FormGroup,exports.FormHeader=s.FormHeader,exports.FormParser=s.FormParser,exports.FormSection=s.FormSection,exports.FormSwitcher=s.FormSwitcher,exports.Grid=s.Grid,exports.HeaderCard=s.HeaderCard,exports.InfoCard=s.InfoCard,exports.LinearProgress=s.LinearProgress,exports.Link=s.Link,exports.ListSubheader=s.ListSubheader,exports.Loader=s.Loader,exports.LocationAddModal=s.LocationAddModal,exports.LocationSearchSelect=s.LocationSearchSelect,exports.LocationSelect=s.LocationSearchSelect,exports.MUIAccordion=s.Accordion$1,exports.MUIBreadcrumbs=s.Breadcrumbs,exports.MUICheckbox=s.Checkbox$1,exports.MUIPagination=s.Pagination$1,exports.MUIRadio=s.Radio$1,exports.MUITabs=s.Tabs,exports.MaterialTable=s.MaterialTable,exports.ModalLoader=s.ModalLoader,exports.ModuleButton=s.ModuleTile,exports.ModuleTile=s.ModuleTile,exports.MultiSelect=s.MultiSelect,exports.PageAction=s.PageAction,exports.PageNavigator=s.PageNavigator,exports.Pagination=s.Pagination,exports.PaginationItem=s.PaginationItem,exports.PhoneInput=s.PhoneInput,exports.Radio=s.Radio,exports.RadioGroup=s.RadioGroup,exports.SaveFilterModal=s.SaveFilterModal,exports.SearchableSelect=s.SearchableSelect,exports.ShareModal=s.SharePopUp,exports.SharePopUp=s.SharePopUp,exports.SharedPageModal=s.SharedPageModal,exports.SharedPageView=s.SharedPageView,exports.Slider=s.Slider,exports.Stack=s.Stack,exports.Switch=s.Switch,exports.Tab=s.Tab,exports.TabBar=s.TabBar,exports.Table=s.Table,exports.TableBody=s.TableBody,exports.TableCell=s.TableCell,exports.TableContainer=s.TableContainer,exports.TableFooter=s.TableFooter,exports.TableHead=s.TableHead,exports.TableRow=s.TableRow,exports.TableSortLabel=s.TableSortLabel,exports.Tabs=s.TabBar,exports.TimePicker=s.TimePicker,exports.TitleDropdownButton=s.TitleDropdownButton,exports.Toggle=s.Toggle,exports.ToggleButton=s.ToggleButton,exports.ToggleButtonGroup=s.ToggleButtonGroup,exports.ToggleSwitch=s.ToggleSwitch,exports.UploadExcel=s.UploadExcel,exports.UploadMedia=s.UploadMedia,exports.ViewModal=s.ViewModal,exports.createLocationThunk=s.createLocationThunk,exports.dynamicSelectAdd=s.dynamicSelectAdd,exports.useMediaQuery=s.useMediaQuery,exports.userRoles=s.userRoles,exports.AccordionActions=i.AccordionActions,exports.ActivityLog=i.ActivityTag$1,exports.ActivityTag=i.ActivityTag,exports.AdvancedBarChart=i.BarChart$1,exports.AdvancedDonutChart=i.DonutChart$1,exports.AdvancedDynamicLayoutWrapper=i.AdvancedDynamicLayoutWrapper,exports.ApprovalWrapper=i.ApprovalWrapper,exports.AreaLineChart=i.AreaLineChart,exports.AreaLineChartTwo=i.AreaLineChartTwo,exports.AvatarGroup=i.AvatarGroup,exports.BarChart=i.BarChart,exports.BarLineChart=i.BarLineChart,exports.Board=i.BoardWrapper,exports.BoardWrapper=i.BoardWrapper,exports.BottomNavigation=i.BottomNavigation,exports.BottomNavigationAction=i.BottomNavigationAction,exports.CalculationSummary=i.CalculationSummary,exports.Calendar=i.CalendarWrapper,exports.CalendarWrapper=i.CalendarWrapper,exports.Card=i.Card,exports.CardActionArea=i.CardActionArea,exports.CardActions=i.CardActions,exports.CardContent=i.CardContent,exports.CardHeader=i.CardHeader,exports.CardWrapper=i.CardWrapper,exports.ChangeUserPasswordModal=i.ChangeUserPasswordModal,exports.ChartLegends=i.ChartLegends,exports.ControllerSelect=i.ControllerSelect,exports.CountrySelect=i.CountrySelect,exports.CustomGridCard=i.CustomGridCard,exports.CustomToggleSwitch=i.CustomToggleSwitch,exports.CustomerVendorModal=i.CustomerVendorModal,exports.DashBoardCard=i.DashBoardCard,exports.DashBoardHeader=i.DashBoardHeader,exports.DashboardCard=i.DashBoardCard,exports.DashboardHeader=i.DashBoardHeader,exports.DateRangePicker=i.DateRangePicker,exports.DialogContentText=i.DialogContentText,exports.DonutChart=i.DonutChart,exports.DyanmicTextEditor=i.DyanmicTextEditor,exports.DynamicDateRange=i.DynamicDateRange,exports.DynamicDateTime=i.DynamicDateTime,exports.DynamicLayoutWrapper=i.DynamicLayoutWrapper,exports.DynamicModal=i.DynamicModal,exports.ElementController=i.ElementController,exports.EntityViewWrapper=i.EntityViewWrapper,exports.ExpandableSummaryWrapper=i.ExpandableSummaryWrapper,exports.Fab=i.Fab,exports.FormData=i.FormData,exports.FormLoader=i.FormLoader,exports.Gantt=i.GanttChart,exports.GanttChart=i.GanttChart,exports.GridCard=i.GridCard,exports.GridCardMarkup=i.GridCardMarkup,exports.GridFallback=i.GridFallback,exports.GridWrapper=i.GridWrapper,exports.GroupedBarChart=i.GroupedBarChart,exports.Hidden=i.Hidden,exports.HrLine=i.HrLine,exports.ImageList=i.ImageList,exports.ImageListItem=i.ImageListItem,exports.ImageListItemBar=i.ImageListItemBar,exports.InventoryReportsTitleBar=i.InventoryReportsTitleBar,exports.ItemResponseDetails=i.ItemResponseDetails,exports.LabelValue=i.LabelValue,exports.LineChart=i.LineChart,exports.List=i.List,exports.Listing=i.ListingComponent,exports.ListingComponent=i.ListingComponent,exports.MaterialEditableTable=i.MaterialEditableTable,exports.MobileStepper=i.MobileStepper,exports.MultiLine=i.MultiLine,exports.MultiLineChart=i.MultiLineChart,exports.Multiline=i.MultiLine,exports.NativeSelect=i.NativeSelect,exports.NoSsr=i.NoSsr,exports.PageLoader=i.PageLoader,exports.PartiesModal=i.CustomerVendorModal,exports.ProtectedRoute=i.ProtectedRoute,exports.QuickApprovalModal=i.QuickApprovalModal,exports.Rating=i.Rating,exports.ReportButtons=i.ReportButtons,exports.ReportTable=i.ReportTable,exports.ReportsTitleBar=i.ReportsTitleBar,exports.RfqResponse=i.ItemResponseDetails,exports.ScheduleReport=i.GeneralScheduleReport,exports.ScheduleReportModal=i.ScheduleReportModal,exports.ScopedCssBaseline=i.ScopedCssBaseline,exports.Snackbar=i.Snackbar,exports.SpeedDial=i.SpeedDial,exports.SpeedDialAction=i.SpeedDialAction,exports.SpeedDialIcon=i.SpeedDialIcon,exports.Step=i.Step,exports.StepButton=i.StepButton,exports.StepContent=i.StepContent,exports.StepLabel=i.StepLabel,exports.Stepper=i.Stepper,exports.SubHeaderDoc=i.SubHeaderDoc,exports.SwipeableDrawer=i.SwipeableDrawer,exports.TabBarUI=i.TabBarUi,exports.TabBarUi=i.TabBarUi,exports.TablePagination=i.TablePagination,exports.TextArea=i.TextArea,exports.TimeRangePicker=i.TimeRangePicker,exports.UomFieldWrapper=i.UomFieldWrapper,exports.Upload=i.Upload,exports.UserDropdown=i.UserDropdown,exports.Zoom=i.Zoom,exports.calculateOptimalSizes=i.calculateOptimalSizes,exports.createPermissionConfig=i.createPermissionConfig,exports.dynamicFields=i.dynamicFields,exports.fields=i.fields,exports.useDynamicLayout=i.useDynamicLayout,exports.useScrollTrigger=i.useScrollTrigger,exports.validator=i.validator,exports.ActivityArea=p.ActivityArea,exports.AppBar=p.AppBarWrapper,exports.AppBarWrapper=p.AppBarWrapper,exports.Avatar=p.Avatar,exports.Badge=p.Badge,exports.Button=p.Button,exports.ClickAwayListener=p.ClickAwayListener,exports.Collapse=p.Collapse,exports.ConfirmModal=p.ConfirmPopUp,exports.ConfirmPopUp=p.ConfirmPopUp,exports.DialogActions=p.DialogActions,exports.DialogContent=p.DialogContent,exports.DialogTitle=p.DialogTitle,exports.Divider=p.Divider,exports.DynamicInput=p.DynamicInput,exports.FilledInput=p.FilledInput,exports.FormControl=p.FormControl,exports.FormHelperText=p.FormHelperText,exports.FormLabel=p.FormLabel,exports.Header=p.Header,exports.Input=p.Input,exports.InputAdornment=p.InputAdornment,exports.InputBase=p.InputBase,exports.InputLabel=p.InputLabel,exports.ListItem=p.ListItem,exports.ListItemAvatar=p.ListItemAvatar,exports.ListItemIcon=p.ListItemIcon,exports.ListItemSecondaryAction=p.ListItemSecondaryAction,exports.ListItemText=p.ListItemText,exports.MUIAlert=p.Alert,exports.MUIAppBar=p.AppBar,exports.MUIButton=p.Button$1,exports.MUICircularProgress=p.CircularProgress,exports.MUIDialog=p.Dialog,exports.MUISelect=p.Select$1,exports.MUISnackbar=p.Snackbar,exports.MUITextField=p.TextField$1,exports.MUITooltip=p.Tooltip$1,exports.Modal=p.Modal,exports.OutlinedInput=p.OutlinedInput,exports.Popper=p.Popper,exports.ResetPasswordModal=p.ResetPasswordModal,exports.SearchBar=p.SearchBar,exports.Select=p.Select,exports.SnackbarContent=p.SnackbarContent,exports.TextField=p.TextField,exports.TextareaAutosize=p.TextareaAutosize,exports.Toast=p.Toast,exports.Toolbar=p.Toolbar,exports.Tooltip=p.Tooltip,exports.Chip=n.Chip,exports.DefaultAggregation=n.DefaultAggregation,exports.MUIChip=n.Chip$1,exports.Menu=n.Menu,exports.ValueField=n.ValueField,exports.convertTableColumns=n.convertTableColumns,exports.formBuilderDeConversion=n.formBuilderDeConversion,exports.getFileNamesFromUrls=n.getFileNamesFromUrls,exports.getFileNamesFromUrlsAsLink=n.getFileNamesFromUrlsAsLink,exports.renderEmptyRowsFallback=n.renderEmptyRowsFallback,exports.renderValueField=n.renderValueField,exports.transformTableColumns=n.transformTableColumns,exports.AuthContext=l.AuthContext,exports.AuthProvider=l.AuthProvider,exports.CustomSnackbar=l.CustomSnackbar,exports.IconButton=l.IconButton,exports.LanguageContext=l.LanguageContext,exports.LanguageProvider=l.LanguageProvider,exports.MUIAvatar=l.Avatar,exports.useAuth=l.useAuth,exports.CustomEditor=x.CustomEditor,exports.Editor=x.CustomEditor,exports.Drawer=c.Drawer,exports.Icon=c.Icon,exports.ListItemButton=c.ListItemButton,exports.Sidebar=c.Sidebar,exports.ButtonBase=d.ButtonBase,exports.MUITypography=d.Typography$1,exports.Typography=d.Typography,exports.convertRoutesToUseIdParams=d.convertRoutesToUseIdParams,exports.generateRouteWithId=d.generateRouteWithId,exports.navigateToRouteWithId=d.navigateToRouteWithId,exports.updatePathnameWithIdParams=d.updatePathnameWithIdParams,exports.ERPUIProvider=u.ERPUIProvider,exports.apiHelper=u.apiHelper,exports.useDataFetcher=u.useGenericDataFetcher,exports.useERPUI=u.useERPUI,exports.Backdrop=m.Backdrop,exports.Fade=m.Fade,exports.MUIList=m.List,exports.MUIMenu=m.Menu,exports.MUIModal=m.Modal,exports.MenuItem=m.MenuItem,exports.MenuList=m.MenuList,exports.Paper=m.Paper,exports.Popover=m.Popover,exports.Portal=m.Portal,exports.Box=g.Box,exports.CssBaseline=S.CssBaseline,exports.GlobalStyles=S.GlobalStyles,exports.Grow=C.Grow,exports.Styled=T.Styled,exports.SvgIcon=T.SvgIcon,exports.Action=y.Action,exports.ActionArrow=y.ActionArrow,exports.AddCircle=y.AddCircle,exports.ArrowBidirectional=y.ArrowBidirectional,exports.ArrowDownThree=y.ArrowDownThree,exports.ArrowUpTwo=y.ArrowUpTwo,exports.Assignments=y.Assignments,exports.BlockFiled=y.BlockFiled,exports.CalendarAdd=y.CalendarAdd,exports.CircularArrowSetting=y.CircularArrowSetting,exports.CoinOutline=y.CoinOutline,exports.Copy=y.Copy,exports.Coupon=y.Coupon,exports.Criteria=y.Criteria,exports.Cross=y.Cross,exports.CrossHire=y.CrossHire,exports.DollarCircleFilled=y.DollarCircleFilled,exports.EyePlusCircle=y.EyePlusCircle,exports.Info=y.Info,exports.LowestLeadTime=y.LowestLeadTime,exports.LowestMinQty=y.LowestMinQty,exports.LowestPrice=y.LowestPrice,exports.OctagonWithOutTick=y.OctagonWithOutTick,exports.OctagonWithTick=y.OctagonWithTick,exports.PaymentRequest=y.PaymentRequest,exports.Printer=y.Printer,exports.ProcessCalendar=y.ProcessCalendar,exports.Promotion=y.Promotion,exports.Receipt=y.Receipt,exports.ReceiptFilled=y.ReceiptFilled,exports.ReceiptOutline=y.ReceiptOutline,exports.RectangleFilledIcon=y.RectangleFilledIcon,exports.Refresh=y.Refresh,exports.Replace=y.Replace,exports.SettingsFallback=y.SettingsFallback,exports.SettingsFallbackIcon=y.SettingsFallbackIcon,exports.Share=y.Share,exports.SortActionArrow=y.SortActionArrow,exports.StackedLayer=y.StackedLayer,exports.StartFilled=y.StartFilled,exports.ThreeDotIcon=y.ThreeDotIcon,exports.TickCircle=y.TickCircle,exports.TickCircleFilled=y.TickCircleFilled,exports.Wave=y.Wave,exports.WorkCentre=y.WorkCentre,exports.ArrowCircleDown=D.ArrowCircleDown,exports.ArrowDownTwo=D.ArrowDownTwo,exports.ArrowUpDown=D.ArrowUpDown,exports.BlankCircle=D.BlankCircle,exports.CheckBoxIcon=D.CheckBoxIcon,exports.CheckboxSquare=D.CheckboxSquare,exports.Clock=D.Clock,exports.Close=D.Close,exports.DocumentDownload=D.DocumentDownload,exports.DollarCircle=D.DollarCircle,exports.Edit=D.Edit,exports.Email=D.Email,exports.Export=D.Export,exports.FilledCircle=D.FilledCircle,exports.FilterRemove=D.FilterRemove,exports.FolderSave=D.FolderSave,exports.Hashtag=D.Hashtag,exports.Image=D.Image,exports.Import=D.Import,exports.InfoCircle=D.InfoCircle,exports.LinkHorizontal=D.LinkHorizontal,exports.Location=D.Location,exports.MoreIcon=D.MoreIcon,exports.PaperClip=D.PaperClip,exports.Paragraph=D.Paragraph,exports.Phone=D.Phone,exports.RadioButton=D.RadioButton,exports.RecgtangleIcon=D.RecgtangleIcon,exports.Save=D.Save,exports.Trash=D.Trash,exports.ArrowDown=h.ArrowDown,exports.Eye=h.Eye,exports.EyeOff=h.EyeOff,exports.Search=h.Search,exports.SearchStatus=h.SearchStatus,exports.Tick=h.Tick,exports.Document=A.Document,exports.Notification=b.Notification,exports.useDeepMemo=P.useDeepMemo,exports.useLocationFilter=P.useLocationFilter,exports.useMultipleLocationFilters=P.useMultipleLocationFilters,exports.usePages=P.usePages,exports.usePermissions=P.usePermissions,exports.apiType=I.apiType,exports.capitalizeWords=I.capitalizeWords,exports.convertEmptyToNull=I.convertEmptyToNull,exports.defaultUserCurrency=I.defaultUserCurrency,exports.formatNumber=I.formatNumber,exports.formatTime=I.formatTime,exports.formateDate=I.formateDate,exports.getAvailableSteelTypes=I.getAvailableSteelTypes,exports.getAvailableTubeTypes=I.getAvailableTubeTypes,exports.recursiveSort=I.recursiveSort,exports.removeExtraKeys=I.removeExtraKeys,exports.sortData=I.sortData,exports.useAccountingSetting=I.useAccountingSetting,exports.useApi=I.useApi,exports.useAppTranslations=I.useAppTranslations,exports.useFormFieldUpdater=I.useFormFieldUpdater,exports.useLanguageFallback=I.useLanguageFallback,exports.useLanguageState=I.useLanguageState,exports.useMaterialCalculations=I.useMaterialCalculations,exports.useNameSkuUniquenessCheck=I.useNameSkuUniquenessCheck,exports.useReduxIntegration=I.useReduxIntegration,exports.validateFormValues=I.validateFormValues,exports.valueWithCurrency=I.valueWithCurrency,exports.ThemeSelector=f.themeVariant,exports.getTheme=f.getTheme,exports.primaryFont=f.primaryFont,exports.pxToRem=f.pxToRem,exports.remToPx=f.remToPx,exports.responsiveFontSizes=f.responsiveFontSizes,exports.secondaryFont=f.secondaryFont,exports.themeVariant=f.themeVariant,exports.typography=f.typography,exports.MUIThemeWrapper=F.MUIThemeWrapper,exports.ThemeWrapper=F.MUIThemeWrapper,exports.createDarkTheme=F.createDarkTheme,exports.createLightTheme=F.createLightTheme,exports.themes=F.themes,exports.deFormatText=L.deFormatText,exports.formBuilderConversion=L.formBuilderConversion,exports.COMMON_DATE_VALIDATIONS=R.COMMON_DATE_VALIDATIONS,exports.MenuFilter=R.MenuFilter,exports.MenuFilterService=R.MenuFilterService,exports.MetaComponent=R.MetaComponent,exports.ModuleAccessService=R.ModuleAccessService,exports.StorageUtils=R.StorageUtils,exports.anyDateValidation=R.anyDateValidation,exports.businessDateValidation=R.businessDateValidation,exports.conditionalDateValidation=R.conditionalDateValidation,exports.createCustomMessages=R.createCustomMessages,exports.createDateValidation=R.createDateValidation,exports.createParameterizedNavigationHandler=R.createParameterizedNavigationHandler,exports.dateRangeValidation=R.dateRangeValidation,exports.dateTimeValidation=R.dateTimeValidation,exports.dateValidation=R.dateValidation,exports.fileSize=R.fileSize,exports.futureDateValidation=R.futureDateValidation,exports.getCountry=R.getCountry,exports.migrateRoutesToUseParams=R.migrateRoutesToUseParams,exports.migrateToPathWithId=R.migrateToPathWithId,exports.pastDateValidation=R.pastDateValidation,exports.updateTableConfigForParameterizedNavigation=R.updateTableConfigForParameterizedNavigation,exports.FullscreenLayout=M.FullscreenLayout,exports.SidebarLayout=B.SidebarLayout,exports.AddTemplate=E.AddTemplate,exports.AlignmentControl=E.AlignmentControl,exports.BorderControl=E.BorderControl,exports.ButtonControls=E.ButtonControls,exports.ChangePassword=E.ChangePassword,exports.CheckboxEditForm=E.CheckboxEditForm,exports.CodeControls=E.CodeControls,exports.ColumnWidth=E.ColumnWidth,exports.CompanySelectionModal=E.CompanySelectionModal,exports.CustomForm=E.CustomForm,exports.DividerControls=E.DividerControls,exports.EditSectionModal=E.EditSectionModal,exports.EditorCanvas=E.EditorCanvas,exports.EditorHeader=E.EditorHeader,exports.EditorSection=E.EditorSection,exports.EditorSidebar=E.EditorSidebar,exports.FieldSelect=E.FieldSelect,exports.ForgotPassword=E.ForgotPassword,exports.FormField=E.FormField,exports.FormFields=E.FormFields,exports.HtmlThumbnailPreview=E.HtmlThumbnailPreview,exports.ImageControls=E.ImageControls,exports.Landing=E.Landing,exports.NotFound=E.NotFound,exports.PageView=E.PageView,exports.PrivateRoute=E.PrivateRoute,exports.React=E.TextControls,exports.ResetPassword=E.ResetPassword,exports.SectionEditForm=E.SectionEditForm,exports.SectionFlowEditor=E.SectionFlowEditor,exports.SectionFormatPanel=E.SectionFormatPanel,exports.SelectEditForm=E.SelectEditForm,exports.SignatureControls=E.SignatureControls,exports.TableControls=E.TableControls,exports.TableEditForm=E.TableEditForm,exports.TemplateModal=E.TemplateModal,exports.TemplateNameModal=E.TemplateNameModal,exports.Templates=E.Templates,exports.TextEditForm=E.TextEditForm,exports.activityTag=E.activityTag,exports.board=E.board,exports.calendarData=E.calendarData,exports.column=E.column,exports.createDefaultTableColumns=E.createDefaultTableColumns,exports.data=E.data,exports.defaultData=E.defaultData,exports.element=E.element,exports.emailColumns=E.emailColumns,exports.extractSections=E.extractSections,exports.extractStyles=E.extractStyles,exports.fetchPage=E.fetchPage,exports.generateEmailPreview=E.generateEmailPreview,exports.generateHeaderFooterPreview=E.generateHeaderFooterPreview,exports.generateInlineStyles=E.generateInlineStyles,exports.generateModulePath=E.generateModulePath,exports.getInitialSectionData=E.getInitialSectionData,exports.local=E.local,exports.multilineData=E.multilineData,exports.pageViewChangeCurrentPage=E.pageViewChangeCurrentPage,exports.pageViewSlice=E.reducer,exports.processMembers=E.processMembers,exports.processTableColumns=E.processTableColumns,exports.setColumnOrder=E.setColumnOrder,exports.setPageViewPages=E.setPageViewPages,exports.setPageViewPaginationModel=E.setPageViewPaginationModel,exports.setRowData=E.setRowData,exports.tableData=E.tableData,exports.tabsData=E.tabsData,exports.templateEditorRoutes=E.templateEditorRoutes,exports.templateRoutes=E.templateRoutes,exports.textOptions=E.textOptions,exports.useCKEditorStyleExtractor=E.useCKEditorStyleExtractor,exports.useFormDataEffect=E.useFormDataEffect,exports.useFormDataProcessor=E.useFormDataProcessor,exports.userData=E.userData,exports.UsersFetchAction=v.UsersFetchAction,exports.changeCurrentPage=v.changeCurrentPage,exports.dashBoardDrive=v.dashBoardDrive,exports.dashboardChangeCurrentPage=v.changeCurrentPage,exports.dashboardSetPages=v.setPages,exports.dashboardSetPaginationModel=v.setPaginationModel,exports.dashboardSetSharedPage=v.setSharedPage,exports.dashboardSlice=v.reducer,exports.fetchDashboardUsers=v.UsersFetchAction,exports.formBuilderListSlice=v.reducer$1,exports.getFieldsByFormId=v.getFieldsByFormId,exports.getFormDataById=v.getFormDataById,exports.patchFormDataById=v.patchFormDataById,exports.pinToDashboardAction=v.pinToDashboardAction,exports.pinToDashboardList=v.pinToDashboardList,exports.setFormData=v.setFormData,exports.setGrid=v.setGrid,exports.setPages=v.setPages,exports.setPagesAction=v.setPagesAction,exports.setSharedPage=v.setSharedPage,exports.setSharedPageAction=v.setSharedPageAction,exports.setUserName=v.setUserName,exports.setUserNameAction=v.setUserNameAction,exports.setdashboardDriveData=v.setdashboardDriveData,exports.sharedPagesData=v.sharedPagesData,exports.state=v.state,Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:function(){return w.useTranslation}}),exports.useLanguage=k.useLanguage,exports.PageContext=O.PageContext,exports.PageProvider=O.PageProvider,exports.PermissionsContext=O.PermissionsContext,exports.PermissionsProvider=O.PermissionsProvider,exports.defaultPageState=O.defaultPageState,exports.initialFilter=O.initialFilter,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return J.default}}),exports.RANGE=j.RANGE,exports.calculateEntries=j.calculateEntries,exports.getEntityId=j.getEntityId,exports.handleCompareDateRange=j.handleCompareDateRange,exports.handleCompareDateRangeSync=j.handleCompareDateRangeSync,exports.navigateWithId=j.navigateWithId,exports.AccountingApi=U.api,exports.DriveApi=U.api$1,exports.InventoryApi=U.api$2,exports.ManufacturingApi=U.api$3,exports.PurchaseApi=U.api$4,exports.RbacApi=U.api$5,exports.RentalApi=U.api$6,exports.SalesApi=U.api$7,exports.SystemFeatureApi=U.api$8,exports.setDriveURL=U.setBaseUrl$1,exports.setRoleURL=U.setBaseUrl,exports.setSystemFeatureURL=U.setBaseUrl$2,exports.loadModuleTranslations=N.loadModuleTranslations,exports.createParties=V.createParties,exports.getLocation=V.getLocation,exports.API_METHOD_GROUPS=_.API_METHOD_GROUPS,exports.createConfiguredApiClient=_.createConfiguredApiClient,exports.createModuleSlice=_.createModuleSlice,exports.fetchBom=_.fetchBom,exports.fetchCompanies=_.fetchCompanies,exports.getAllUserAndDepartmentDropdown=_.getAllUserAndDepartmentDropdown,exports.headerSlice=_.headerSlice,exports.inventoryReportsTitleBarSlice=_.inventoryReportsTitleBarSlice,exports.reportsTitleBarSlice=_.reportsTitleBarSlice,exports.resetHeaderState=_.resetHeaderState,exports.resetInventoryReportsTitleBarState=_.resetInventoryReportsTitleBarState,exports.resetLanguagesState=_.resetLanguagesState,exports.resetReportsTitleBarState=_.resetReportsTitleBarState,exports.resetState=_.resetState,exports.setAssemblyItems=_.setAssemblyItems,exports.setBomData=_.setBomData,exports.setCurrentLanguage=_.setCurrentLanguage,exports.setDepartments=_.setDepartments,exports.setItems=_.setItems,exports.setLanguages=_.setLanguages,exports.setLanguagesData=_.setLanguagesData,exports.setUsers=_.setUsers,exports.setWarehouseLocations=_.setWarehouseLocations,exports.sharePage=_.sharePage,exports.shareSlice=_.shareSlice,exports.validateApiClient=_.validateApiClient,exports.useAppDispatch=W.useAppDispatch,exports.useAppSelector=W.useAppSelector,exports.useLibraryDispatch=W.useLibraryDispatch,exports.useLibrarySelector=W.useLibrarySelector,exports.createLibraryStore=G.createLibraryStore,exports.getLibrarySlices=G.getLibrarySlices,exports.injectLibraryReducer=G.injectLibraryReducer,exports.libraryReducers=G.libraryReducers,exports.removeLibraryReducer=G.removeLibraryReducer,exports.store=G.store,Object.defineProperty(exports,"combineReducers",{enumerable:!0,get:function(){return H.combineReducers}}),Object.defineProperty(exports,"configureStore",{enumerable:!0,get:function(){return H.configureStore}}),Object.defineProperty(exports,"createAction",{enumerable:!0,get:function(){return H.createAction}}),Object.defineProperty(exports,"createAsyncThunk",{enumerable:!0,get:function(){return H.createAsyncThunk}}),Object.defineProperty(exports,"createDraftSafeSelector",{enumerable:!0,get:function(){return H.createDraftSafeSelector}}),Object.defineProperty(exports,"createEntityAdapter",{enumerable:!0,get:function(){return H.createEntityAdapter}}),Object.defineProperty(exports,"createListenerMiddleware",{enumerable:!0,get:function(){return H.createListenerMiddleware}}),Object.defineProperty(exports,"createReducer",{enumerable:!0,get:function(){return H.createReducer}}),Object.defineProperty(exports,"createSelector",{enumerable:!0,get:function(){return H.createSelector}}),Object.defineProperty(exports,"createSlice",{enumerable:!0,get:function(){return H.createSlice}}),Object.defineProperty(exports,"current",{enumerable:!0,get:function(){return H.current}}),Object.defineProperty(exports,"isAllOf",{enumerable:!0,get:function(){return H.isAllOf}}),Object.defineProperty(exports,"isAnyOf",{enumerable:!0,get:function(){return H.isAnyOf}}),Object.defineProperty(exports,"isFulfilled",{enumerable:!0,get:function(){return H.isFulfilled}}),Object.defineProperty(exports,"isPending",{enumerable:!0,get:function(){return H.isPending}}),Object.defineProperty(exports,"isRejected",{enumerable:!0,get:function(){return H.isRejected}}),Object.defineProperty(exports,"isRejectedWithValue",{enumerable:!0,get:function(){return H.isRejectedWithValue}}),Object.defineProperty(exports,"nanoid",{enumerable:!0,get:function(){return H.nanoid}}),Object.defineProperty(exports,"unwrapResult",{enumerable:!0,get:function(){return H.unwrapResult}}),exports.DriveTypes=$.DriveTypes,exports.InventoryTypes=$.InventoryTypes,exports.ManufacturingTypes=$.ManufacturingTypes,exports.PurchaseTypes=$.PurchaseTypes,exports.RbacTypes=$.RbacTypes,exports.RentalTypes=$.RentalTypes,exports.SalesTypes=$.SalesTypes,exports.SystemFeatureTypes=$.SystemFeatureTypes,exports.UserApi=$.UserApi,exports.UserTypes=$.UserTypes,exports.TEMPLATE_EDITOR_PATHS=z.TEMPLATE_EDITOR_PATHS,exports.initialStyles=z.initialStyles,exports.configureLibrary=e=>{K={...K,...e}},exports.getConfigFunction=(e,t)=>{const r=K[e];if(r&&r[t])return r[t];switch(`${String(e)}.${String(t)}`){case"routes.generatePathWithId":return(e,t)=>e.replace(":id",String(t));case"dataTransforms.formatCurrency":return(e,t="USD")=>`${t} ${e.toFixed(2)}`;case"dataTransforms.formatDate":return e=>new Date(e).toLocaleDateString();case"validation.validateEmail":return e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);case"permissions.hasPermission":return()=>!0;case"localization.getCurrentLanguage":return()=>"en";case"localization.translate":return e=>e;case"notifications.showSuccess":case"notifications.showError":case"notifications.showInfo":return e=>{};default:return(...r)=>{throw new Error(`Configuration not provided for ${String(e)}.${String(t)}. Please configure this in your consuming application.`)}}},exports.getLibraryConfig=()=>K;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/config/index.ts"],"sourcesContent":["// Configuration system for application-specific business logic\n\nexport interface LibraryConfig {\n // Route and navigation configuration\n routes?: {\n // Function to generate paths with IDs\n generatePathWithId?: (path: string, id: string | number) => string;\n // Base paths for different modules\n basePaths?: {\n [module: string]: string;\n };\n };\n \n // Data transformation functions\n dataTransforms?: {\n // Function to transform API responses\n transformApiResponse?: (response: any, context?: string) => any;\n // Function to format currency\n formatCurrency?: (amount: number, currency?: string) => string;\n // Function to format dates\n formatDate?: (date: any, format?: string) => string;\n };\n \n // Validation functions\n validation?: {\n // Custom validation rules\n validateField?: (value: any, rules: any) => boolean | string;\n // Phone number validation\n validatePhone?: (phone: string, country?: string) => boolean;\n // Email validation\n validateEmail?: (email: string) => boolean;\n };\n \n // Permission system\n permissions?: {\n // Check if user has permission\n hasPermission?: (permission: string, context?: any) => boolean;\n // Get user permissions\n getUserPermissions?: () => string[];\n };\n \n // Localization\n localization?: {\n // Get current language\n getCurrentLanguage?: () => string;\n // Translate function\n translate?: (key: string, params?: any) => string;\n // Get available languages\n getAvailableLanguages?: () => Array<{ code: string; name: string }>;\n };\n \n // File handling\n fileHandling?: {\n // Upload file function\n uploadFile?: (file: File, options?: any) => Promise<any>;\n // Download file function\n downloadFile?: (fileId: string, options?: any) => Promise<any>;\n // Get file URL\n getFileUrl?: (fileId: string) => string;\n };\n \n // Notification system\n notifications?: {\n // Show success notification\n showSuccess?: (message: string, options?: any) => void;\n // Show error notification\n showError?: (message: string, options?: any) => void;\n // Show info notification\n showInfo?: (message: string, options?: any) => void;\n };\n}\n\nlet libraryConfig: LibraryConfig = {};\n\nexport const configureLibrary = (config: LibraryConfig) => {\n libraryConfig = { ...libraryConfig, ...config };\n};\n\nexport const getLibraryConfig = () => libraryConfig;\n\n// Helper function to get configuration with fallback\nexport const getConfigFunction = <T extends keyof LibraryConfig>(\n category: T,\n functionName: keyof LibraryConfig[T]\n): any => {\n const categoryConfig = libraryConfig[category];\n if (categoryConfig && categoryConfig[functionName]) {\n return categoryConfig[functionName];\n }\n \n // Return default implementation or throw error based on criticality\n switch (`${String(category)}.${String(functionName)}`) {\n case 'routes.generatePathWithId':\n return (path: string, id: string | number) => path.replace(':id', String(id));\n \n case 'dataTransforms.formatCurrency':\n return (amount: number, currency = 'USD') => `${currency} ${amount.toFixed(2)}`;\n \n case 'dataTransforms.formatDate':\n return (date: any) => new Date(date).toLocaleDateString();\n \n case 'validation.validateEmail':\n return (email: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);\n \n case 'permissions.hasPermission':\n return () => true; // Default to allowing all permissions\n \n case 'localization.getCurrentLanguage':\n return () => 'en';\n \n case 'localization.translate':\n return (key: string) => key; // Return key as fallback\n \n case 'notifications.showSuccess':\n case 'notifications.showError':\n case 'notifications.showInfo':\n return (message: string) => console.log(message);\n \n default:\n return (...args: any[]) => {\n throw new Error(`Configuration not provided for ${String(category)}.${String(functionName)}. Please configure this in your consuming application.`);\n };\n }\n};"],"names":["libraryConfig","config","category","functionName","categoryConfig","String","path","id","replace","amount","currency","toFixed","date","Date","toLocaleDateString","email","test","key","message","args","Error"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/config/index.ts"],"sourcesContent":["// Configuration system for application-specific business logic\n\nexport interface LibraryConfig {\n // Route and navigation configuration\n routes?: {\n // Function to generate paths with IDs\n generatePathWithId?: (path: string, id: string | number) => string;\n // Base paths for different modules\n basePaths?: {\n [module: string]: string;\n };\n };\n \n // Data transformation functions\n dataTransforms?: {\n // Function to transform API responses\n transformApiResponse?: (response: any, context?: string) => any;\n // Function to format currency\n formatCurrency?: (amount: number, currency?: string) => string;\n // Function to format dates\n formatDate?: (date: any, format?: string) => string;\n };\n \n // Validation functions\n validation?: {\n // Custom validation rules\n validateField?: (value: any, rules: any) => boolean | string;\n // Phone number validation\n validatePhone?: (phone: string, country?: string) => boolean;\n // Email validation\n validateEmail?: (email: string) => boolean;\n };\n \n // Permission system\n permissions?: {\n // Check if user has permission\n hasPermission?: (permission: string, context?: any) => boolean;\n // Get user permissions\n getUserPermissions?: () => string[];\n };\n \n // Localization\n localization?: {\n // Get current language\n getCurrentLanguage?: () => string;\n // Translate function\n translate?: (key: string, params?: any) => string;\n // Get available languages\n getAvailableLanguages?: () => Array<{ code: string; name: string }>;\n };\n \n // File handling\n fileHandling?: {\n // Upload file function\n uploadFile?: (file: File, options?: any) => Promise<any>;\n // Download file function\n downloadFile?: (fileId: string, options?: any) => Promise<any>;\n // Get file URL\n getFileUrl?: (fileId: string) => string;\n };\n \n // Notification system\n notifications?: {\n // Show success notification\n showSuccess?: (message: string, options?: any) => void;\n // Show error notification\n showError?: (message: string, options?: any) => void;\n // Show info notification\n showInfo?: (message: string, options?: any) => void;\n };\n}\n\nlet libraryConfig: LibraryConfig = {};\n\nexport const configureLibrary = (config: LibraryConfig) => {\n libraryConfig = { ...libraryConfig, ...config };\n};\n\nexport const getLibraryConfig = () => libraryConfig;\n\n// Helper function to get configuration with fallback\nexport const getConfigFunction = <T extends keyof LibraryConfig>(\n category: T,\n functionName: keyof LibraryConfig[T]\n): any => {\n const categoryConfig = libraryConfig[category];\n if (categoryConfig && categoryConfig[functionName]) {\n return categoryConfig[functionName];\n }\n \n // Return default implementation or throw error based on criticality\n switch (`${String(category)}.${String(functionName)}`) {\n case 'routes.generatePathWithId':\n return (path: string, id: string | number) => path.replace(':id', String(id));\n \n case 'dataTransforms.formatCurrency':\n return (amount: number, currency = 'USD') => `${currency} ${amount.toFixed(2)}`;\n \n case 'dataTransforms.formatDate':\n return (date: any) => new Date(date).toLocaleDateString();\n \n case 'validation.validateEmail':\n return (email: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);\n \n case 'permissions.hasPermission':\n return () => true; // Default to allowing all permissions\n \n case 'localization.getCurrentLanguage':\n return () => 'en';\n \n case 'localization.translate':\n return (key: string) => key; // Return key as fallback\n \n case 'notifications.showSuccess':\n case 'notifications.showError':\n case 'notifications.showInfo':\n return (message: string) => console.log(message);\n \n default:\n return (...args: any[]) => {\n throw new Error(`Configuration not provided for ${String(category)}.${String(functionName)}. Please configure this in your consuming application.`);\n };\n }\n};"],"names":["libraryConfig","config","category","functionName","categoryConfig","String","path","id","replace","amount","currency","toFixed","date","Date","toLocaleDateString","email","test","key","message","args","Error"],"mappings":"wkHAwEA,IAAIA,EAA+B,CAAA,sw/BAEFC,IAC/BD,EAAgB,IAAKA,KAAkBC,8BAMR,CAC/BC,EACAC,KAEA,MAAMC,EAAiBJ,EAAcE,GACrC,GAAIE,GAAkBA,EAAeD,GACnC,OAAOC,EAAeD,GAIxB,OAAQ,GAAGE,OAAOH,MAAaG,OAAOF,MACpC,IAAK,4BACH,MAAO,CAACG,EAAcC,IAAwBD,EAAKE,QAAQ,MAAOH,OAAOE,IAE3E,IAAK,gCACH,MAAO,CAACE,EAAgBC,EAAW,QAAU,GAAGA,KAAYD,EAAOE,QAAQ,KAE7E,IAAK,4BACH,OAAQC,GAAc,IAAIC,KAAKD,GAAME,qBAEvC,IAAK,2BACH,OAAQC,GAAkB,6BAA6BC,KAAKD,GAE9D,IAAK,4BACH,MAAO,KAAM,EAEf,IAAK,kCACH,MAAO,IAAM,KAEf,IAAK,yBACH,OAAQE,GAAgBA,EAE1B,IAAK,4BACL,IAAK,0BACL,IAAK,yBACH,OAAQC,MAEV,QACE,MAAO,IAAIC,KACT,MAAM,IAAIC,MAAM,kCAAkCf,OAAOH,MAAaG,OAAOF,wFA1CrD,IAAMH"}
|
|
@@ -3,7 +3,6 @@ import dayjs from "dayjs";
|
|
|
3
3
|
import i18n from "i18next";
|
|
4
4
|
import { initReactI18next } from "react-i18next";
|
|
5
5
|
import i18nBackend from "i18next-http-backend";
|
|
6
|
-
import { r as resource } from "./resource-lang-aiXJhRQt.esm.js";
|
|
7
6
|
import { D as DEFAULT_LANG } from "./all-language-BLkwy1LW.esm.js";
|
|
8
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
9
8
|
import { Helmet } from "react-helmet";
|
|
@@ -191,7 +190,8 @@ i18n.use(i18nBackend).use(initReactI18next).init({
|
|
|
191
190
|
missingKeyHandler: false,
|
|
192
191
|
// Explicitly disable
|
|
193
192
|
missingKeyNoValueFallbackToKey: true,
|
|
194
|
-
resources: resource,
|
|
193
|
+
// resources: resource,
|
|
194
|
+
resources: {},
|
|
195
195
|
// debug: process.env.NODE_ENV === 'development',
|
|
196
196
|
saveMissingTo: "fallback",
|
|
197
197
|
keySeparator: ".",
|
|
@@ -389,4 +389,4 @@ export {
|
|
|
389
389
|
createParameterizedNavigationHandler as r,
|
|
390
390
|
updateTableConfigForParameterizedNavigation as u
|
|
391
391
|
};
|
|
392
|
-
//# sourceMappingURL=migration-utils
|
|
392
|
+
//# sourceMappingURL=migration-utils-hV41wEaX.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-utils-hV41wEaX.esm.js","sources":["../src/utils/country.ts","../src/utils/dateValidation.tsx","../src/utils/fileSize.ts","../src/utils/i18n.ts","../src/utils/menu-filter.ts","../src/utils/metaComponent.tsx","../src/utils/migration-utils.ts"],"sourcesContent":["export const getCountry = (code: string) => {\n const regionNames = new Intl.DisplayNames([\"en\"], { type: \"region\" });\n return regionNames.of(code);\n};\n","//eslint-disable @typescript-eslint/no-explicit-any\nimport * as Yup from 'yup';\nimport dayjs from 'dayjs';\n\n// Types for configuration\nexport interface DateValidationOptions {\n allowPast?: boolean;\n allowToday?: boolean;\n allowFuture?: boolean;\n requiredMessage?: string;\n pastDateMessage?: string;\n futureDateMessage?: string;\n todayNotAllowedMessage?: string;\n invalidDateMessage?: string;\n checkTime?: boolean;\n pastTimeMessage?: string;\n}\n\n// Default messages\nconst DEFAULT_MESSAGES = {\n required: 'Date is required',\n invalidDate: 'Date must be a valid date',\n pastDate: 'Date cannot be in the past',\n futureDate: 'Future dates are not allowed',\n todayNotAllowed: \"Today's date is not allowed\",\n pastTime: 'Time cannot be in the past for today\\'s date'\n};\n\n/**\n * Core date transformation function\n * Handles dayjs objects, Date objects, and string dates\n */\nconst transformDate = (value: any, originalValue: any) => {\n if (dayjs.isDayjs(originalValue)) {\n return originalValue.toDate();\n }\n if (originalValue instanceof Date) {\n return originalValue;\n }\n if (typeof originalValue === 'string' && originalValue) {\n return dayjs(originalValue).toDate();\n }\n return null;\n};\n\n/**\n * Global date validation function with full customization\n * @param options Configuration options for date validation\n * @returns Yup validation schema\n */\nexport const createDateValidation = (options: DateValidationOptions = {}) => {\n const {\n allowPast = false,\n allowToday = true,\n allowFuture = true,\n requiredMessage = DEFAULT_MESSAGES.required,\n pastDateMessage = DEFAULT_MESSAGES.pastDate,\n futureDateMessage = DEFAULT_MESSAGES.futureDate,\n todayNotAllowedMessage = DEFAULT_MESSAGES.todayNotAllowed,\n invalidDateMessage = DEFAULT_MESSAGES.invalidDate,\n checkTime = false,\n pastTimeMessage = DEFAULT_MESSAGES.pastTime\n } = options;\n\n return Yup.mixed()\n .transform(transformDate)\n .typeError(invalidDateMessage)\n .required(requiredMessage)\n .test('date-validation', function(value) {\n if (!value) return false;\n \n const now = dayjs();\n const selectedDateTime = dayjs(value);\n const today = dayjs().startOf('day');\n const selectedDate = dayjs(value).startOf('day');\n \n // Past date validation\n if (selectedDate.isBefore(today) && !allowPast) {\n return this.createError({ message: pastDateMessage });\n }\n \n // Today validation\n if (selectedDate.isSame(today)) {\n if (!allowToday) {\n return this.createError({ message: todayNotAllowedMessage });\n }\n \n // Time validation for today\n if (checkTime && selectedDateTime.isBefore(now)) {\n return this.createError({ message: pastTimeMessage });\n }\n }\n \n // Future date validation\n if (selectedDate.isAfter(today) && !allowFuture) {\n return this.createError({ message: futureDateMessage });\n }\n \n return true;\n });\n};\n\n/**\n * Quick preset validation functions for common use cases\n */\n\n// 1. Standard date validation (today + future allowed)\nexport const dateValidation = (requiredMessage?: string, options: DateValidationOptions = {}) => \n createDateValidation({\n allowPast: false,\n allowToday: true,\n allowFuture: true,\n ...options,\n requiredMessage\n });\n\n// 2. Future dates only (excluding today)\nexport const futureDateValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: false,\n allowToday: false,\n allowFuture: true,\n requiredMessage,\n pastDateMessage: 'Please select a future date'\n });\n\n// 3. Any date allowed (for historical records)\nexport const anyDateValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: true,\n allowToday: true,\n allowFuture: true,\n requiredMessage\n });\n\n// 4. Past dates only (for completed events)\nexport const pastDateValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: true,\n allowToday: true,\n allowFuture: false,\n requiredMessage,\n futureDateMessage: 'Future dates are not allowed'\n });\n\n// 5. Date with time validation\nexport const dateTimeValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: false,\n allowToday: true,\n allowFuture: true,\n checkTime: true,\n requiredMessage\n });\n\n// 6. Business days only (Monday to Friday, future dates)\nexport const businessDateValidation = (requiredMessage?: string) => {\n return createDateValidation({\n allowPast: false,\n allowToday: true,\n allowFuture: true,\n requiredMessage\n }).test('business-day', 'Please select a business day (Monday to Friday)', function(value) {\n if (!value) return false;\n \n const dayOfWeek = dayjs(value).day();\n return dayOfWeek >= 1 && dayOfWeek <= 5; // Monday = 1, Friday = 5\n });\n};\n\n// 7. Date range validation (between two dates)\nexport const dateRangeValidation = (\n minDate: dayjs.Dayjs | Date | string,\n maxDate: dayjs.Dayjs | Date | string,\n requiredMessage?: string\n) => {\n return Yup.mixed()\n .transform(transformDate)\n .typeError(DEFAULT_MESSAGES.invalidDate)\n .required(requiredMessage || DEFAULT_MESSAGES.required)\n .test('date-range', function(value) {\n if (!value) return false;\n \n const selected = dayjs(value);\n const min = dayjs(minDate);\n const max = dayjs(maxDate);\n \n if (selected.isBefore(min)) {\n return this.createError({\n message: `Date must be after ${min.format('MMM DD, YYYY')}`\n });\n }\n \n if (selected.isAfter(max)) {\n return this.createError({\n message: `Date must be before ${max.format('MMM DD, YYYY')}`\n });\n }\n \n return true;\n });\n};\n\n/**\n * Utility function to create custom validation messages\n */\nexport const createCustomMessages = (overrides: Partial<typeof DEFAULT_MESSAGES>) => ({\n ...DEFAULT_MESSAGES,\n ...overrides\n});\n\n/**\n * Helper function for conditional date validation\n * Example: Date required only if another field has a specific value\n */\nexport const conditionalDateValidation = (\n condition: (formValues: any) => boolean,\n validationSchema: any,\n) => {\n return Yup.mixed().when('$root', {\n is: condition,\n then: validationSchema,\n otherwise: Yup.mixed().notRequired()\n });\n};\n\n// Export commonly used validation presets\nexport const COMMON_DATE_VALIDATIONS = {\n // Rental/Order dates\n rental: (msg?: string) => dateValidation(msg || 'Rental date is required'),\n\n};\n\n/**\n * Usage Examples:\n * \n * // Basic usage with custom required message\n * date: dateValidation('Please select a valid date')\n * \n * // Full customization\n * date: createDateValidation({\n * allowPast: false,\n * allowToday: true,\n * allowFuture: true,\n * requiredMessage: 'Date is required',\n * pastDateMessage: 'Cannot select past dates'\n * })\n * \n * // Preset validations\n * rentalDate: COMMON_DATE_VALIDATIONS.rental('Rental date is required')\n * bookingDate: COMMON_DATE_VALIDATIONS.booking()\n * \n * // Date range\n * eventDate: dateRangeValidation(\n * dayjs().add(1, 'day'),\n * dayjs().add(1, 'year'),\n * 'Event date is required'\n * )\n */","const fileSize = (size: number) => {\n let sizeCategory;\n const absSize = Math.abs(size);\n\n switch (true) {\n case absSize < 1024:\n sizeCategory = `${(size / 1024).toFixed(2)} Byte`;\n break;\n case absSize >= 1024 && absSize < 1024 * 1024:\n sizeCategory = `${(size / 1024).toFixed(2)} KB`;\n break;\n case absSize >= 1024 * 1024 && absSize < 1024 * 1024 * 1024:\n sizeCategory = `${(size / (1024 * 1024)).toFixed(2)} MB`;\n break;\n default:\n sizeCategory = `${(size / (1024 * 1024 * 1024)).toFixed(2)} GB`;\n }\n\n return sizeCategory;\n};\n\nexport { fileSize };\nexport default fileSize;\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport i18nBackend from \"i18next-http-backend\";\n\nimport { resource } from \"../constants/resource-lang\";\nimport { DEFAULT_LANG } from \"../constants/all-language\";\n\ni18n\n .use(i18nBackend)\n .use(initReactI18next)\n .init({\n fallbackLng: \"en\", \n lng: DEFAULT_LANG,\n \n // fallbackLng: {\n // 'ar': ['en'], \n // 'es': ['en'], \n // 'default': ['en']\n // },\n \n fallbackNS: false, // Don't fallback to other namespaces\n \n \n returnNull: false,\n returnEmptyString: false,\n\n interpolation: {\n escapeValue: false,\n },\n debug: false, // Make sure this is false\n saveMissing: false,\n missingKeyHandler: false, // Explicitly disable\n missingKeyNoValueFallbackToKey: true,\n\n \n \n // resources: resource,\n resources: {},\n\n // debug: process.env.NODE_ENV === 'development',\n\n saveMissingTo: 'fallback',\n \n keySeparator: '.',\n nsSeparator: ':',\n });\n\nexport default i18n;","// types.ts - Type definitions for better type safety\nexport interface SubModule {\n sub_module_name: string;\n}\n\nexport interface ModuleAccess {\n module_name: string;\n sub_modules?: SubModule[];\n}\n\nexport interface UserData {\n module_access?: ModuleAccess[];\n}\n\nexport interface MenuItem {\n bacSubModuleName?: string;\n submenu?: MenuItem[];\n [key: string]: any;\n}\n\nexport interface Permission {\n [key: string]: any;\n}\n\n// storageUtils.ts - Centralized storage access\nexport class StorageUtils {\n /**\n * Retrieves and parses user data from localStorage\n * @returns Parsed user data or null if not found\n */\n static getUserData(): UserData | null {\n try {\n const userData = localStorage.getItem(\"_u_data\");\n return userData ? JSON.parse(userData) : null;\n } catch (error) {\n console.error(\"Error parsing user data:\", error);\n return null;\n }\n }\n\n /**\n * Retrieves and parses role permissions from localStorage\n * @returns Parsed permissions object\n */\n static getRolePermissions(): Permission {\n try {\n const permissions = localStorage.getItem(\"role-permission\");\n return permissions ? JSON.parse(permissions) : {};\n } catch (error) {\n console.error(\"Error parsing role permissions:\", error);\n return {};\n }\n }\n}\n\n// moduleAccessService.ts - Business logic for module access\nexport class ModuleAccessService {\n /**\n * Filters modules by allowed module names and adds dashboard sub-module\n * @param moduleNames - Array of allowed module names\n * @param userData - User data containing module access\n * @returns Filtered modules with dashboard added\n */\n static getAccessibleSubModules(\n moduleNames: string[],\n userData: UserData | null\n ): ModuleAccess[] {\n if (!userData?.module_access) {\n return [];\n }\n\n return userData.module_access\n .filter((module) => moduleNames.includes(module.module_name))\n .map((module) => ({\n ...module,\n sub_modules: [\n ...(module.sub_modules || []),\n { sub_module_name: \"dashboard\" }\n ]\n }));\n }\n\n /**\n * Extracts unique sub-module names from modules\n * @param modules - Array of module access objects\n * @returns Set of unique sub-module names\n */\n static extractSubModuleNames(modules: ModuleAccess[]): Set<string> {\n return new Set(\n modules.flatMap((module) => \n (module.sub_modules || []).map((subModule) => subModule.sub_module_name)\n )\n );\n }\n\n /**\n * Matches sub-module names with permission keys\n * @param subModuleNames - Set of sub-module names\n * @param permissions - Permission object\n * @returns Set of matching sub-module names\n */\n static getMatchingSubModules(\n subModuleNames: Set<string>,\n permissions: Permission\n ): Set<string> {\n const permissionKeys = Object.keys(permissions);\n \n const matchingModules = Array.from(subModuleNames).filter((subModuleName) => {\n const lastPart = subModuleName.split(\"/\").pop() || \"\";\n return permissionKeys.some((permKey) => permKey.startsWith(lastPart));\n });\n\n return new Set(matchingModules);\n }\n}\n\n// menuFilterService.ts - Menu filtering logic\nexport class MenuFilterService {\n /**\n * Recursively filters menu items based on accessible sub-modules\n * @param menu - Array of menu items\n * @param accessibleSubModules - Set of accessible sub-module names\n * @returns Filtered menu array\n */\n static filterMenuByAccess(\n menu: MenuItem[],\n accessibleSubModules: Set<string>\n ): MenuItem[] {\n return menu.filter((item) => {\n const hasValidSubModule = \n item.bacSubModuleName && accessibleSubModules.has(item.bacSubModuleName);\n\n let hasValidSubmenu = false;\n \n if (item.submenu && item.submenu.length > 0) {\n item.submenu = this.filterMenuByAccess(item.submenu, accessibleSubModules);\n hasValidSubmenu = item.submenu.length > 0;\n }\n\n return hasValidSubModule || hasValidSubmenu;\n });\n }\n}\n\n// menuFilter.ts - Main filter orchestrator\nexport class MenuFilter {\n /**\n * Filters menu based on user permissions and module access\n * @param menu - Menu items to filter\n * @param allowedModules - Array of allowed module names\n * @returns Filtered menu items\n */\n static filterByModuleAccess(\n menu: MenuItem[],\n allowedModules: string[]\n ): MenuItem[] {\n // Retrieve user data and permissions\n const userData = StorageUtils.getUserData();\n const permissions = StorageUtils.getRolePermissions();\n\n // Get accessible sub-modules\n const accessibleModules = ModuleAccessService.getAccessibleSubModules(\n allowedModules,\n userData\n );\n\n // Extract sub-module names\n const subModuleNames = ModuleAccessService.extractSubModuleNames(\n accessibleModules\n );\n\n // Match with permissions\n const matchingSubModules = ModuleAccessService.getMatchingSubModules(\n subModuleNames,\n permissions\n );\n\n // Filter menu\n return MenuFilterService.filterMenuByAccess(menu, matchingSubModules);\n }\n}\n\n// Usage example in your module\n// manufacturing.ts\n// import { MenuFilter } from './menuFilter';\n// import { MenuItem } from './types';\n\n// export const getFilteredManufacturingMenu = (\n// menuData: MenuItem[]\n// ): MenuItem[] => {\n// const allowedModules = [\"manufacturing\", \"inventory\", \"sales\"];\n// return MenuFilter.filterByModuleAccess(menuData, allowedModules);\n// };\n\n// // sales.ts\n// export const getFilteredSalesMenu = (\n// menuData: MenuItem[]\n// ): MenuItem[] => {\n// const allowedModules = [\"sales\", \"inventory\"];\n// return MenuFilter.filterByModuleAccess(menuData, allowedModules);\n// };\n\n// // Generic usage with dynamic modules\n// export const getFilteredMenu = (\n// menuData: MenuItem[],\n// allowedModules: string[]\n// ): MenuItem[] => {\n// return MenuFilter.filterByModuleAccess(menuData, allowedModules);\n// };","import { Helmet } from \"react-helmet\";\nimport propTypes from \"prop-types\";\n\nconst MetaComponent = (props: any) => {\n const canonicalURL = props.location\n ? `${props.location.protocol}//${props.location.host}${window.location.pathname}`\n : \"\";\n\n return (\n <Helmet>\n <title>{props.title}</title>\n <meta name=\"description\" content={props.description} />\n <meta name=\"keywords\" content={props.keywords} />\n {props.location && <link rel=\"canonical\" href={`${canonicalURL}`} />}\n\n {/* {props.schema && <JsonLd data={props.schema} />} */}\n </Helmet>\n );\n};\n\nconst JsonLd = ({ data }: any) => {\n return data.map((schema: any, index: number) => {\n return (\n <script\n key={index}\n type=\"application/ld+json\"\n dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}\n />\n );\n });\n};\n\nMetaComponent.propTypes = {\n title: propTypes.string,\n keywords: propTypes.string,\n description: propTypes.string,\n image: propTypes.string,\n schema: propTypes.arrayOf(propTypes.object),\n location: propTypes.object,\n};\n\nJsonLd.propTypes = {\n data: propTypes.arrayOf(propTypes.object),\n};\n\nexport { MetaComponent };\nexport default MetaComponent;\n","\n\nimport { generateRouteWithId } from \"./route-utils\";\n\n\nexport const migrateToPathWithId = (redirectionLink: string, idField: string = 'id') => {\n return {\n redirectionPathWithId: `${redirectionLink}/:id`,\n idField\n };\n};\n\n\nexport const migrateRoutesToUseParams = (routes: Record<string, string>): Record<string, string> => {\n const updatedRoutes: Record<string, string> = { ...routes };\n \n Object.keys(updatedRoutes).forEach(key => {\n if (\n key.startsWith('VIEW_') || \n key.startsWith('EDIT_') || \n key.startsWith('DETAIL_') ||\n key.includes('_VIEW_') || \n key.includes('_EDIT_') || \n key.includes('_DETAIL_')\n ) {\n if (!updatedRoutes[key].includes(':')) {\n updatedRoutes[key] = `${updatedRoutes[key]}/:id`;\n }\n }\n });\n \n return updatedRoutes;\n};\n\nexport const createParameterizedNavigationHandler = (\n navigate: (path: string) => void,\n basePath: string,\n idExtractor: (row: any) => string | number = (row) => row.id\n) => {\n return (row: any) => {\n const id = idExtractor(row);\n navigate(generateRouteWithId(basePath, id));\n };\n};\n\n\nexport const updateTableConfigForParameterizedNavigation = (\n tableConfig: any,\n pathWithIdField: string,\n idField: string = 'id'\n) => {\n const { ...rest } = tableConfig;\n \n return {\n ...rest,\n redirectionPathWithId: pathWithIdField,\n idField\n };\n}; "],"names":["propTypes"],"mappings":";;;;;;;;;;AAAO,MAAM,aAAa,CAAC,SAAiB;AAC1C,QA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,MAAMA,UAAU,QAAQA,UAAU,MAAM;AAC1C;ACtCO,MAAM,sBAAsB,CAAC,iBAAyB,UAAkB,SAAS;AACtF,SAAO;AAAA,IACL,uBAAuB,GAAG,eAAe;AAAA,IACzC;AAAA,EAAA;AAEJ;AAGO,MAAM,2BAA2B,CAAC,WAA2D;AAClG,QAAM,gBAAwC,EAAE,GAAG,OAAA;AAEnD,SAAO,KAAK,aAAa,EAAE,QAAQ,CAAA,QAAO;AACxC,QACE,IAAI,WAAW,OAAO,KACtB,IAAI,WAAW,OAAO,KACtB,IAAI,WAAW,SAAS,KACxB,IAAI,SAAS,QAAQ,KACrB,IAAI,SAAS,QAAQ,KACrB,IAAI,SAAS,UAAU,GACvB;AACA,UAAI,CAAC,cAAc,GAAG,EAAE,SAAS,GAAG,GAAG;AACrC,sBAAc,GAAG,IAAI,GAAG,cAAc,GAAG,CAAC;AAAA,MAC5C;AAAA,IACF;AAAA,EACF,CAAC;AAED,SAAO;AACT;AAEO,MAAM,uCAAuC,CAClD,UACA,UACA,cAA6C,CAAC,QAAQ,IAAI,OACvD;AACH,SAAO,CAAC,QAAa;AACnB,UAAM,KAAK,YAAY,GAAG;AAC1B,aAAS,oBAAoB,UAAU,EAAE,CAAC;AAAA,EAC5C;AACF;AAGO,MAAM,8CAA8C,CACzD,aACA,iBACA,UAAkB,SACf;AACH,QAAM,EAAE,GAAG,KAAA,IAAS;AAEpB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,uBAAuB;AAAA,IACvB;AAAA,EAAA;AAEJ;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var e=require("yup"),t=require("dayjs"),a=require("i18next"),r=require("react-i18next"),s=require("i18next-http-backend"),o=require("./all-language-XhvdjcQg.js"),i=require("react/jsx-runtime"),l=require("react-helmet"),n=require("./DefaultPropsProvider-DXLRpppW.js"),u=require("./route-utils-ifjI7_7l.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=/* @__PURE__ */Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,t}var p=/* @__PURE__ */c(e),f=/* @__PURE__ */d(t),m=/* @__PURE__ */d(a),g=/* @__PURE__ */d(s);const y={required:"Date is required",invalidDate:"Date must be a valid date",pastDate:"Date cannot be in the past",futureDate:"Future dates are not allowed",todayNotAllowed:"Today's date is not allowed",pastTime:"Time cannot be in the past for today's date"},b=(e,t)=>f.default.isDayjs(t)?t.toDate():t instanceof Date?t:"string"==typeof t&&t?f.default(t).toDate():null,M=(e={})=>{const{allowPast:t=!1,allowToday:a=!0,allowFuture:r=!0,requiredMessage:s=y.required,pastDateMessage:o=y.pastDate,futureDateMessage:i=y.futureDate,todayNotAllowedMessage:l=y.todayNotAllowed,invalidDateMessage:n=y.invalidDate,checkTime:u=!1,pastTimeMessage:d=y.pastTime}=e;return p.mixed().transform(b).typeError(n).required(s).test("date-validation",function(e){if(!e)return!1;const s=f.default(),n=f.default(e),c=f.default().startOf("day"),p=f.default(e).startOf("day");if(p.isBefore(c)&&!t)return this.createError({message:o});if(p.isSame(c)){if(!a)return this.createError({message:l});if(u&&n.isBefore(s))return this.createError({message:d})}return!(p.isAfter(c)&&!r)||this.createError({message:i})})},h=(e,t={})=>M({allowPast:!1,allowToday:!0,allowFuture:!0,...t,requiredMessage:e}),D={rental:e=>h(e||"Rental date is required")};m.default.use(g.default).use(r.initReactI18next).init({fallbackLng:"en",lng:o.DEFAULT_LANG,fallbackNS:!1,returnNull:!1,returnEmptyString:!1,interpolation:{escapeValue:!1},debug:!1,saveMissing:!1,missingKeyHandler:!1,missingKeyNoValueFallbackToKey:!0,resources:{},saveMissingTo:"fallback",keySeparator:".",nsSeparator:":"});class x{static getUserData(){try{const e=localStorage.getItem("_u_data");return e?JSON.parse(e):null}catch(e){return null}}static getRolePermissions(){try{const e=localStorage.getItem("role-permission");return e?JSON.parse(e):{}}catch(e){return{}}}}class w{static getAccessibleSubModules(e,t){return(null==t?void 0:t.module_access)?t.module_access.filter(t=>e.includes(t.module_name)).map(e=>({...e,sub_modules:[...e.sub_modules||[],{sub_module_name:"dashboard"}]})):[]}static extractSubModuleNames(e){return new Set(e.flatMap(e=>(e.sub_modules||[]).map(e=>e.sub_module_name)))}static getMatchingSubModules(e,t){const a=Object.keys(t),r=Array.from(e).filter(e=>{const t=e.split("/").pop()||"";return a.some(e=>e.startsWith(t))});return new Set(r)}}class T{static filterMenuByAccess(e,t){return e.filter(e=>{const a=e.bacSubModuleName&&t.has(e.bacSubModuleName);let r=!1;return e.submenu&&e.submenu.length>0&&(e.submenu=this.filterMenuByAccess(e.submenu,t),r=e.submenu.length>0),a||r})}}const P=e=>{const t=e.location?`${e.location.protocol}//${e.location.host}${window.location.pathname}`:"";/* @__PURE__ */
|
|
2
|
+
return i.jsxs(l.Helmet,{children:[
|
|
3
|
+
/* @__PURE__ */i.jsx("title",{children:e.title}),
|
|
4
|
+
/* @__PURE__ */i.jsx("meta",{name:"description",content:e.description}),
|
|
5
|
+
/* @__PURE__ */i.jsx("meta",{name:"keywords",content:e.keywords}),e.location&&/* @__PURE__ */i.jsx("link",{rel:"canonical",href:`${t}`})]})};P.propTypes={title:n.PropTypes.string,keywords:n.PropTypes.string,description:n.PropTypes.string,image:n.PropTypes.string,schema:n.PropTypes.arrayOf(n.PropTypes.object),location:n.PropTypes.object},n.PropTypes.arrayOf(n.PropTypes.object),exports.COMMON_DATE_VALIDATIONS=D,exports.MenuFilter=class{static filterByModuleAccess(e,t){const a=x.getUserData(),r=x.getRolePermissions(),s=w.getAccessibleSubModules(t,a),o=w.extractSubModuleNames(s),i=w.getMatchingSubModules(o,r);return T.filterMenuByAccess(e,i)}},exports.MenuFilterService=T,exports.MetaComponent=P,exports.ModuleAccessService=w,exports.StorageUtils=x,exports.anyDateValidation=e=>M({allowPast:!0,allowToday:!0,allowFuture:!0,requiredMessage:e}),exports.businessDateValidation=e=>M({allowPast:!1,allowToday:!0,allowFuture:!0,requiredMessage:e}).test("business-day","Please select a business day (Monday to Friday)",function(e){if(!e)return!1;const t=f.default(e).day();return t>=1&&t<=5}),exports.conditionalDateValidation=(e,t)=>p.mixed().when("$root",{is:e,then:t,otherwise:p.mixed().notRequired()}),exports.createCustomMessages=e=>({...y,...e}),exports.createDateValidation=M,exports.createParameterizedNavigationHandler=(e,t,a=e=>e.id)=>r=>{const s=a(r);e(u.generateRouteWithId(t,s))},exports.dateRangeValidation=(e,t,a)=>p.mixed().transform(b).typeError(y.invalidDate).required(a||y.required).test("date-range",function(a){if(!a)return!1;const r=f.default(a),s=f.default(e),o=f.default(t);return r.isBefore(s)?this.createError({message:`Date must be after ${s.format("MMM DD, YYYY")}`}):!r.isAfter(o)||this.createError({message:`Date must be before ${o.format("MMM DD, YYYY")}`})}),exports.dateTimeValidation=e=>M({allowPast:!1,allowToday:!0,allowFuture:!0,checkTime:!0,requiredMessage:e}),exports.dateValidation=h,exports.fileSize=e=>{let t;const a=Math.abs(e);switch(!0){case a<1024:t=`${(e/1024).toFixed(2)} Byte`;break;case a>=1024&&a<1048576:t=`${(e/1024).toFixed(2)} KB`;break;case a>=1048576&&a<1073741824:t=`${(e/1048576).toFixed(2)} MB`;break;default:t=`${(e/1073741824).toFixed(2)} GB`}return t},exports.futureDateValidation=e=>M({allowPast:!1,allowToday:!1,allowFuture:!0,requiredMessage:e,pastDateMessage:"Please select a future date"}),exports.getCountry=e=>new Intl.DisplayNames(["en"],{type:"region"}).of(e),exports.migrateRoutesToUseParams=e=>{const t={...e};return Object.keys(t).forEach(e=>{(e.startsWith("VIEW_")||e.startsWith("EDIT_")||e.startsWith("DETAIL_")||e.includes("_VIEW_")||e.includes("_EDIT_")||e.includes("_DETAIL_"))&&(t[e].includes(":")||(t[e]=`${t[e]}/:id`))}),t},exports.migrateToPathWithId=(e,t="id")=>({redirectionPathWithId:`${e}/:id`,idField:t}),exports.pastDateValidation=e=>M({allowPast:!0,allowToday:!0,allowFuture:!1,requiredMessage:e,futureDateMessage:"Future dates are not allowed"}),exports.updateTableConfigForParameterizedNavigation=(e,t,a="id")=>{const{...r}=e;return{...r,redirectionPathWithId:t,idField:a}};
|
|
6
|
+
//# sourceMappingURL=migration-utils-t8N4H56x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-utils-t8N4H56x.js","sources":["../src/utils/country.ts","../src/utils/dateValidation.tsx","../src/utils/i18n.ts","../src/utils/menu-filter.ts","../src/utils/metaComponent.tsx","../src/utils/migration-utils.ts","../src/utils/fileSize.ts"],"sourcesContent":["export const getCountry = (code: string) => {\n const regionNames = new Intl.DisplayNames([\"en\"], { type: \"region\" });\n return regionNames.of(code);\n};\n","//eslint-disable @typescript-eslint/no-explicit-any\nimport * as Yup from 'yup';\nimport dayjs from 'dayjs';\n\n// Types for configuration\nexport interface DateValidationOptions {\n allowPast?: boolean;\n allowToday?: boolean;\n allowFuture?: boolean;\n requiredMessage?: string;\n pastDateMessage?: string;\n futureDateMessage?: string;\n todayNotAllowedMessage?: string;\n invalidDateMessage?: string;\n checkTime?: boolean;\n pastTimeMessage?: string;\n}\n\n// Default messages\nconst DEFAULT_MESSAGES = {\n required: 'Date is required',\n invalidDate: 'Date must be a valid date',\n pastDate: 'Date cannot be in the past',\n futureDate: 'Future dates are not allowed',\n todayNotAllowed: \"Today's date is not allowed\",\n pastTime: 'Time cannot be in the past for today\\'s date'\n};\n\n/**\n * Core date transformation function\n * Handles dayjs objects, Date objects, and string dates\n */\nconst transformDate = (value: any, originalValue: any) => {\n if (dayjs.isDayjs(originalValue)) {\n return originalValue.toDate();\n }\n if (originalValue instanceof Date) {\n return originalValue;\n }\n if (typeof originalValue === 'string' && originalValue) {\n return dayjs(originalValue).toDate();\n }\n return null;\n};\n\n/**\n * Global date validation function with full customization\n * @param options Configuration options for date validation\n * @returns Yup validation schema\n */\nexport const createDateValidation = (options: DateValidationOptions = {}) => {\n const {\n allowPast = false,\n allowToday = true,\n allowFuture = true,\n requiredMessage = DEFAULT_MESSAGES.required,\n pastDateMessage = DEFAULT_MESSAGES.pastDate,\n futureDateMessage = DEFAULT_MESSAGES.futureDate,\n todayNotAllowedMessage = DEFAULT_MESSAGES.todayNotAllowed,\n invalidDateMessage = DEFAULT_MESSAGES.invalidDate,\n checkTime = false,\n pastTimeMessage = DEFAULT_MESSAGES.pastTime\n } = options;\n\n return Yup.mixed()\n .transform(transformDate)\n .typeError(invalidDateMessage)\n .required(requiredMessage)\n .test('date-validation', function(value) {\n if (!value) return false;\n \n const now = dayjs();\n const selectedDateTime = dayjs(value);\n const today = dayjs().startOf('day');\n const selectedDate = dayjs(value).startOf('day');\n \n // Past date validation\n if (selectedDate.isBefore(today) && !allowPast) {\n return this.createError({ message: pastDateMessage });\n }\n \n // Today validation\n if (selectedDate.isSame(today)) {\n if (!allowToday) {\n return this.createError({ message: todayNotAllowedMessage });\n }\n \n // Time validation for today\n if (checkTime && selectedDateTime.isBefore(now)) {\n return this.createError({ message: pastTimeMessage });\n }\n }\n \n // Future date validation\n if (selectedDate.isAfter(today) && !allowFuture) {\n return this.createError({ message: futureDateMessage });\n }\n \n return true;\n });\n};\n\n/**\n * Quick preset validation functions for common use cases\n */\n\n// 1. Standard date validation (today + future allowed)\nexport const dateValidation = (requiredMessage?: string, options: DateValidationOptions = {}) => \n createDateValidation({\n allowPast: false,\n allowToday: true,\n allowFuture: true,\n ...options,\n requiredMessage\n });\n\n// 2. Future dates only (excluding today)\nexport const futureDateValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: false,\n allowToday: false,\n allowFuture: true,\n requiredMessage,\n pastDateMessage: 'Please select a future date'\n });\n\n// 3. Any date allowed (for historical records)\nexport const anyDateValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: true,\n allowToday: true,\n allowFuture: true,\n requiredMessage\n });\n\n// 4. Past dates only (for completed events)\nexport const pastDateValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: true,\n allowToday: true,\n allowFuture: false,\n requiredMessage,\n futureDateMessage: 'Future dates are not allowed'\n });\n\n// 5. Date with time validation\nexport const dateTimeValidation = (requiredMessage?: string) => \n createDateValidation({\n allowPast: false,\n allowToday: true,\n allowFuture: true,\n checkTime: true,\n requiredMessage\n });\n\n// 6. Business days only (Monday to Friday, future dates)\nexport const businessDateValidation = (requiredMessage?: string) => {\n return createDateValidation({\n allowPast: false,\n allowToday: true,\n allowFuture: true,\n requiredMessage\n }).test('business-day', 'Please select a business day (Monday to Friday)', function(value) {\n if (!value) return false;\n \n const dayOfWeek = dayjs(value).day();\n return dayOfWeek >= 1 && dayOfWeek <= 5; // Monday = 1, Friday = 5\n });\n};\n\n// 7. Date range validation (between two dates)\nexport const dateRangeValidation = (\n minDate: dayjs.Dayjs | Date | string,\n maxDate: dayjs.Dayjs | Date | string,\n requiredMessage?: string\n) => {\n return Yup.mixed()\n .transform(transformDate)\n .typeError(DEFAULT_MESSAGES.invalidDate)\n .required(requiredMessage || DEFAULT_MESSAGES.required)\n .test('date-range', function(value) {\n if (!value) return false;\n \n const selected = dayjs(value);\n const min = dayjs(minDate);\n const max = dayjs(maxDate);\n \n if (selected.isBefore(min)) {\n return this.createError({\n message: `Date must be after ${min.format('MMM DD, YYYY')}`\n });\n }\n \n if (selected.isAfter(max)) {\n return this.createError({\n message: `Date must be before ${max.format('MMM DD, YYYY')}`\n });\n }\n \n return true;\n });\n};\n\n/**\n * Utility function to create custom validation messages\n */\nexport const createCustomMessages = (overrides: Partial<typeof DEFAULT_MESSAGES>) => ({\n ...DEFAULT_MESSAGES,\n ...overrides\n});\n\n/**\n * Helper function for conditional date validation\n * Example: Date required only if another field has a specific value\n */\nexport const conditionalDateValidation = (\n condition: (formValues: any) => boolean,\n validationSchema: any,\n) => {\n return Yup.mixed().when('$root', {\n is: condition,\n then: validationSchema,\n otherwise: Yup.mixed().notRequired()\n });\n};\n\n// Export commonly used validation presets\nexport const COMMON_DATE_VALIDATIONS = {\n // Rental/Order dates\n rental: (msg?: string) => dateValidation(msg || 'Rental date is required'),\n\n};\n\n/**\n * Usage Examples:\n * \n * // Basic usage with custom required message\n * date: dateValidation('Please select a valid date')\n * \n * // Full customization\n * date: createDateValidation({\n * allowPast: false,\n * allowToday: true,\n * allowFuture: true,\n * requiredMessage: 'Date is required',\n * pastDateMessage: 'Cannot select past dates'\n * })\n * \n * // Preset validations\n * rentalDate: COMMON_DATE_VALIDATIONS.rental('Rental date is required')\n * bookingDate: COMMON_DATE_VALIDATIONS.booking()\n * \n * // Date range\n * eventDate: dateRangeValidation(\n * dayjs().add(1, 'day'),\n * dayjs().add(1, 'year'),\n * 'Event date is required'\n * )\n */","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport i18nBackend from \"i18next-http-backend\";\n\nimport { resource } from \"../constants/resource-lang\";\nimport { DEFAULT_LANG } from \"../constants/all-language\";\n\ni18n\n .use(i18nBackend)\n .use(initReactI18next)\n .init({\n fallbackLng: \"en\", \n lng: DEFAULT_LANG,\n \n // fallbackLng: {\n // 'ar': ['en'], \n // 'es': ['en'], \n // 'default': ['en']\n // },\n \n fallbackNS: false, // Don't fallback to other namespaces\n \n \n returnNull: false,\n returnEmptyString: false,\n\n interpolation: {\n escapeValue: false,\n },\n debug: false, // Make sure this is false\n saveMissing: false,\n missingKeyHandler: false, // Explicitly disable\n missingKeyNoValueFallbackToKey: true,\n\n \n \n // resources: resource,\n resources: {},\n\n // debug: process.env.NODE_ENV === 'development',\n\n saveMissingTo: 'fallback',\n \n keySeparator: '.',\n nsSeparator: ':',\n });\n\nexport default i18n;","// types.ts - Type definitions for better type safety\nexport interface SubModule {\n sub_module_name: string;\n}\n\nexport interface ModuleAccess {\n module_name: string;\n sub_modules?: SubModule[];\n}\n\nexport interface UserData {\n module_access?: ModuleAccess[];\n}\n\nexport interface MenuItem {\n bacSubModuleName?: string;\n submenu?: MenuItem[];\n [key: string]: any;\n}\n\nexport interface Permission {\n [key: string]: any;\n}\n\n// storageUtils.ts - Centralized storage access\nexport class StorageUtils {\n /**\n * Retrieves and parses user data from localStorage\n * @returns Parsed user data or null if not found\n */\n static getUserData(): UserData | null {\n try {\n const userData = localStorage.getItem(\"_u_data\");\n return userData ? JSON.parse(userData) : null;\n } catch (error) {\n console.error(\"Error parsing user data:\", error);\n return null;\n }\n }\n\n /**\n * Retrieves and parses role permissions from localStorage\n * @returns Parsed permissions object\n */\n static getRolePermissions(): Permission {\n try {\n const permissions = localStorage.getItem(\"role-permission\");\n return permissions ? JSON.parse(permissions) : {};\n } catch (error) {\n console.error(\"Error parsing role permissions:\", error);\n return {};\n }\n }\n}\n\n// moduleAccessService.ts - Business logic for module access\nexport class ModuleAccessService {\n /**\n * Filters modules by allowed module names and adds dashboard sub-module\n * @param moduleNames - Array of allowed module names\n * @param userData - User data containing module access\n * @returns Filtered modules with dashboard added\n */\n static getAccessibleSubModules(\n moduleNames: string[],\n userData: UserData | null\n ): ModuleAccess[] {\n if (!userData?.module_access) {\n return [];\n }\n\n return userData.module_access\n .filter((module) => moduleNames.includes(module.module_name))\n .map((module) => ({\n ...module,\n sub_modules: [\n ...(module.sub_modules || []),\n { sub_module_name: \"dashboard\" }\n ]\n }));\n }\n\n /**\n * Extracts unique sub-module names from modules\n * @param modules - Array of module access objects\n * @returns Set of unique sub-module names\n */\n static extractSubModuleNames(modules: ModuleAccess[]): Set<string> {\n return new Set(\n modules.flatMap((module) => \n (module.sub_modules || []).map((subModule) => subModule.sub_module_name)\n )\n );\n }\n\n /**\n * Matches sub-module names with permission keys\n * @param subModuleNames - Set of sub-module names\n * @param permissions - Permission object\n * @returns Set of matching sub-module names\n */\n static getMatchingSubModules(\n subModuleNames: Set<string>,\n permissions: Permission\n ): Set<string> {\n const permissionKeys = Object.keys(permissions);\n \n const matchingModules = Array.from(subModuleNames).filter((subModuleName) => {\n const lastPart = subModuleName.split(\"/\").pop() || \"\";\n return permissionKeys.some((permKey) => permKey.startsWith(lastPart));\n });\n\n return new Set(matchingModules);\n }\n}\n\n// menuFilterService.ts - Menu filtering logic\nexport class MenuFilterService {\n /**\n * Recursively filters menu items based on accessible sub-modules\n * @param menu - Array of menu items\n * @param accessibleSubModules - Set of accessible sub-module names\n * @returns Filtered menu array\n */\n static filterMenuByAccess(\n menu: MenuItem[],\n accessibleSubModules: Set<string>\n ): MenuItem[] {\n return menu.filter((item) => {\n const hasValidSubModule = \n item.bacSubModuleName && accessibleSubModules.has(item.bacSubModuleName);\n\n let hasValidSubmenu = false;\n \n if (item.submenu && item.submenu.length > 0) {\n item.submenu = this.filterMenuByAccess(item.submenu, accessibleSubModules);\n hasValidSubmenu = item.submenu.length > 0;\n }\n\n return hasValidSubModule || hasValidSubmenu;\n });\n }\n}\n\n// menuFilter.ts - Main filter orchestrator\nexport class MenuFilter {\n /**\n * Filters menu based on user permissions and module access\n * @param menu - Menu items to filter\n * @param allowedModules - Array of allowed module names\n * @returns Filtered menu items\n */\n static filterByModuleAccess(\n menu: MenuItem[],\n allowedModules: string[]\n ): MenuItem[] {\n // Retrieve user data and permissions\n const userData = StorageUtils.getUserData();\n const permissions = StorageUtils.getRolePermissions();\n\n // Get accessible sub-modules\n const accessibleModules = ModuleAccessService.getAccessibleSubModules(\n allowedModules,\n userData\n );\n\n // Extract sub-module names\n const subModuleNames = ModuleAccessService.extractSubModuleNames(\n accessibleModules\n );\n\n // Match with permissions\n const matchingSubModules = ModuleAccessService.getMatchingSubModules(\n subModuleNames,\n permissions\n );\n\n // Filter menu\n return MenuFilterService.filterMenuByAccess(menu, matchingSubModules);\n }\n}\n\n// Usage example in your module\n// manufacturing.ts\n// import { MenuFilter } from './menuFilter';\n// import { MenuItem } from './types';\n\n// export const getFilteredManufacturingMenu = (\n// menuData: MenuItem[]\n// ): MenuItem[] => {\n// const allowedModules = [\"manufacturing\", \"inventory\", \"sales\"];\n// return MenuFilter.filterByModuleAccess(menuData, allowedModules);\n// };\n\n// // sales.ts\n// export const getFilteredSalesMenu = (\n// menuData: MenuItem[]\n// ): MenuItem[] => {\n// const allowedModules = [\"sales\", \"inventory\"];\n// return MenuFilter.filterByModuleAccess(menuData, allowedModules);\n// };\n\n// // Generic usage with dynamic modules\n// export const getFilteredMenu = (\n// menuData: MenuItem[],\n// allowedModules: string[]\n// ): MenuItem[] => {\n// return MenuFilter.filterByModuleAccess(menuData, allowedModules);\n// };","import { Helmet } from \"react-helmet\";\nimport propTypes from \"prop-types\";\n\nconst MetaComponent = (props: any) => {\n const canonicalURL = props.location\n ? `${props.location.protocol}//${props.location.host}${window.location.pathname}`\n : \"\";\n\n return (\n <Helmet>\n <title>{props.title}</title>\n <meta name=\"description\" content={props.description} />\n <meta name=\"keywords\" content={props.keywords} />\n {props.location && <link rel=\"canonical\" href={`${canonicalURL}`} />}\n\n {/* {props.schema && <JsonLd data={props.schema} />} */}\n </Helmet>\n );\n};\n\nconst JsonLd = ({ data }: any) => {\n return data.map((schema: any, index: number) => {\n return (\n <script\n key={index}\n type=\"application/ld+json\"\n dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}\n />\n );\n });\n};\n\nMetaComponent.propTypes = {\n title: propTypes.string,\n keywords: propTypes.string,\n description: propTypes.string,\n image: propTypes.string,\n schema: propTypes.arrayOf(propTypes.object),\n location: propTypes.object,\n};\n\nJsonLd.propTypes = {\n data: propTypes.arrayOf(propTypes.object),\n};\n\nexport { MetaComponent };\nexport default MetaComponent;\n","\n\nimport { generateRouteWithId } from \"./route-utils\";\n\n\nexport const migrateToPathWithId = (redirectionLink: string, idField: string = 'id') => {\n return {\n redirectionPathWithId: `${redirectionLink}/:id`,\n idField\n };\n};\n\n\nexport const migrateRoutesToUseParams = (routes: Record<string, string>): Record<string, string> => {\n const updatedRoutes: Record<string, string> = { ...routes };\n \n Object.keys(updatedRoutes).forEach(key => {\n if (\n key.startsWith('VIEW_') || \n key.startsWith('EDIT_') || \n key.startsWith('DETAIL_') ||\n key.includes('_VIEW_') || \n key.includes('_EDIT_') || \n key.includes('_DETAIL_')\n ) {\n if (!updatedRoutes[key].includes(':')) {\n updatedRoutes[key] = `${updatedRoutes[key]}/:id`;\n }\n }\n });\n \n return updatedRoutes;\n};\n\nexport const createParameterizedNavigationHandler = (\n navigate: (path: string) => void,\n basePath: string,\n idExtractor: (row: any) => string | number = (row) => row.id\n) => {\n return (row: any) => {\n const id = idExtractor(row);\n navigate(generateRouteWithId(basePath, id));\n };\n};\n\n\nexport const updateTableConfigForParameterizedNavigation = (\n tableConfig: any,\n pathWithIdField: string,\n idField: string = 'id'\n) => {\n const { ...rest } = tableConfig;\n \n return {\n ...rest,\n redirectionPathWithId: pathWithIdField,\n idField\n };\n}; ","const fileSize = (size: number) => {\n let sizeCategory;\n const absSize = Math.abs(size);\n\n switch (true) {\n case absSize < 1024:\n sizeCategory = `${(size / 1024).toFixed(2)} Byte`;\n break;\n case absSize >= 1024 && absSize < 1024 * 1024:\n sizeCategory = `${(size / 1024).toFixed(2)} KB`;\n break;\n case absSize >= 1024 * 1024 && absSize < 1024 * 1024 * 1024:\n sizeCategory = `${(size / (1024 * 1024)).toFixed(2)} MB`;\n break;\n default:\n sizeCategory = `${(size / (1024 * 1024 * 1024)).toFixed(2)} GB`;\n }\n\n return sizeCategory;\n};\n\nexport { fileSize };\nexport default fileSize;\n"],"names":["DEFAULT_MESSAGES","required","invalidDate","pastDate","futureDate","todayNotAllowed","pastTime","transformDate","value","originalValue","dayjs","isDayjs","toDate","Date","createDateValidation","options","allowPast","allowToday","allowFuture","requiredMessage","pastDateMessage","futureDateMessage","todayNotAllowedMessage","invalidDateMessage","checkTime","pastTimeMessage","Yup","mixed","transform","typeError","test","now","selectedDateTime","today","startOf","selectedDate","isBefore","this","createError","message","isSame","isAfter","dateValidation","COMMON_DATE_VALIDATIONS","rental","msg","i18n","use","i18nBackend","initReactI18next","init","fallbackLng","lng","DEFAULT_LANG","fallbackNS","returnNull","returnEmptyString","interpolation","escapeValue","debug","saveMissing","missingKeyHandler","missingKeyNoValueFallbackToKey","resources","saveMissingTo","keySeparator","nsSeparator","StorageUtils","getUserData","userData","localStorage","getItem","JSON","parse","error","getRolePermissions","permissions","ModuleAccessService","getAccessibleSubModules","moduleNames","module_access","filter","module","includes","module_name","map","sub_modules","sub_module_name","extractSubModuleNames","modules","Set","flatMap","subModule","getMatchingSubModules","subModuleNames","permissionKeys","Object","keys","matchingModules","Array","from","subModuleName","lastPart","split","pop","some","permKey","startsWith","MenuFilterService","filterMenuByAccess","menu","accessibleSubModules","item","hasValidSubModule","bacSubModuleName","has","hasValidSubmenu","submenu","length","MetaComponent","props","canonicalURL","location","protocol","host","window","pathname","Helmet","children","jsx","title","name","content","description","keywords","rel","href","propTypes","string","image","schema","arrayOf","object","filterByModuleAccess","allowedModules","accessibleModules","matchingSubModules","dayOfWeek","day","condition","validationSchema","when","is","then","otherwise","notRequired","overrides","navigate","basePath","idExtractor","row","id","generateRouteWithId","minDate","maxDate","selected","min","max","format","size","sizeCategory","absSize","Math","abs","toFixed","code","Intl","DisplayNames","type","of","routes","updatedRoutes","forEach","key","redirectionLink","idField","redirectionPathWithId","tableConfig","pathWithIdField","rest"],"mappings":"qxBAAO,MCmBDA,EAAmB,CACvBC,SAAU,mBACVC,YAAa,4BACbC,SAAU,6BACVC,WAAY,+BACZC,gBAAiB,8BACjBC,SAAU,+CAONC,EAAgB,CAACC,EAAYC,IAC7BC,EAAAA,QAAMC,QAAQF,GACTA,EAAcG,SAEnBH,aAAyBI,KACpBJ,EAEoB,iBAAlBA,GAA8BA,EAChCC,EAAAA,QAAMD,GAAeG,SAEvB,KAQIE,EAAuB,CAACC,EAAiC,MACpE,MAAMC,UACJA,GAAY,EAAAC,WACZA,GAAa,EAAAC,YACbA,GAAc,EAAAC,gBACdA,EAAkBnB,EAAiBC,SAAAmB,gBACnCA,EAAkBpB,EAAiBG,SAAAkB,kBACnCA,EAAoBrB,EAAiBI,WAAAkB,uBACrCA,EAAyBtB,EAAiBK,gBAAAkB,mBAC1CA,EAAqBvB,E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EAAI5E,WAAW,YACf4E,EAAIpG,SAAS,WACboG,EAAIpG,SAAS,WACboG,EAAIpG,SAAS,eAERkG,EAAcE,GAAKpG,SAAS,OAC/BkG,EAAcE,GAAO,GAAGF,EAAcE,aAKrCF,+BA1B0B,CAACG,EAAyBC,EAAkB,QACtE,CACLC,sBAAuB,GAAGF,QAC1BC,uCJgI+BtK,GACjCL,EAAqB,CACnBE,WAAW,EACXC,YAAY,EACZC,aAAa,EACbC,kBACAE,kBAAmB,qFIhGoC,CACzDsK,EACAC,EACAH,EAAkB,QAElB,SAAWI,GAASF,EAEpB,MAAO,IACFE,EACHH,sBAAuBE,EACvBH"}
|
package/dist/utils/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a6 as getToken } from "../common-BMYONqRm.esm.js";
|
|
|
2
2
|
import { aI, aH, aJ, aG, aE, aF, aK, I, aC, aQ, ag, a, ap, T, al, aj, a7, ax, aV, a4, d, H, G, F, a9, N, M, f, aq, a1, aB, $, a2, a$, an, ao, ai, s, Q, q, V, W, aN, aM, A, C, L, aU, aL, O, _, aW, B, aR, l, m, n, k, ah, g, b, au, aZ, E, w, u, as, ar, a_, K, aO, a5, ak, at, p, aY, a3, aa, Y, av, S, R, aP, y, U, aX, i, h, ad, D, j, X, ab, ac, aA, J, o, a8, Z, t, az, am, x, r, aD, ae, a0, aw, aT, aS, P, ay, af, z, v } from "../common-BMYONqRm.esm.js";
|
|
3
3
|
import { R as R2, c, g as g2, h as h2, a as a6, n as n2 } from "../navigation-utils-DvSBvB6q.esm.js";
|
|
4
4
|
import { d as d2, f as f2, b as b2, g as g3, r as r2, c as c2, t as t2 } from "../form-builder-deconversion-BxVkWhFD.esm.js";
|
|
5
|
-
import { C as C2, n as n3, m as m2, M as M2, l as l2, S as S2, b as b3, h as h3, k as k2, j as j2, c as c3, r as r3, i as i2, e, d as d3, f as f3, a as a10, g as g4, q as q2, o as o2, p as p2, u as u2 } from "../migration-utils
|
|
5
|
+
import { C as C2, n as n3, m as m2, M as M2, l as l2, S as S2, b as b3, h as h3, k as k2, j as j2, c as c3, r as r3, i as i2, e, d as d3, f as f3, a as a10, g as g4, q as q2, o as o2, p as p2, u as u2 } from "../migration-utils-hV41wEaX.esm.js";
|
|
6
6
|
import { d as d4, f as f4 } from "../form-builder-conversion-v-918EG7.esm.js";
|
|
7
7
|
import { p as getV1Languages } from "../api-Iyff6ylB.esm.js";
|
|
8
8
|
import { a as a11, s as s2, b as b4 } from "../api-Iyff6ylB.esm.js";
|
|
@@ -32,7 +32,6 @@ import "../document-CMCTnwi_.esm.js";
|
|
|
32
32
|
import "yup";
|
|
33
33
|
import "react-i18next";
|
|
34
34
|
import "i18next-http-backend";
|
|
35
|
-
import "../resource-lang-aiXJhRQt.esm.js";
|
|
36
35
|
import "../all-language-BLkwy1LW.esm.js";
|
|
37
36
|
import "react-helmet";
|
|
38
37
|
const primaryGreen = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/utils/color.ts","../../src/utils/language.ts"],"sourcesContent":["export interface Color {\n 100: string;\n 200: string;\n 300: string;\n 400: string;\n 500: string;\n 600: string;\n 700: string;\n 800: string;\n 900: string;\n 1000: string;\n}\n\nexport const primaryGreen: Color = {\n 100: \"#EBF9F2\",\n 200: \"#D6F3E5\",\n 300: \"#ADE7CB\",\n 400: \"#84DAB1\",\n 500: \"#5BCE97\",\n 600: \"#32C27D\",\n 700: \"#289B64\",\n 800: \"#1E744B\",\n 900: \"#144E32\",\n 1000: \"#0A2719\",\n};\n\nexport const green: Color = {\n 100: \"#DDF9E4\",\n 200: \"#D0F0DA\",\n 300: \"#C3E6CF\",\n 400: \"#B6DCC5\",\n 500: \"#A8D2BA\",\n 600: \"#72AA8F\",\n 700: \"#58967A\",\n 800: \"#3D8264\",\n 900: \"#226E4F\",\n 1000: \"#075A39\",\n};\n\nexport const lightGreen: Color = {\n 100: \"#F4FBCB\",\n 200: \"#EAF2BF\",\n 300: \"#E0E8B3\",\n 400: \"#D6DEA7\",\n 500: \"#CBD49A\",\n 600: \"#A2AD69\",\n 700: \"#98A45D\",\n 800: \"#8E9A51\",\n 900: \"#798638\",\n 1000: \"#505F07\",\n};\n\nexport const olive: Color = {\n 100: \"#FFF3CC\",\n 200: \"#F7EAC0\",\n 300: \"#EEE0B3\",\n 400: \"#E5D6A6\",\n 500: \"#DCCC99\",\n 600: \"#B8A466\",\n 700: \"#A6914D\",\n 800: \"#947D33\",\n 900: \"#82691A\",\n 1000: \"#705500\",\n};\n\nexport const magenta: Color = {\n 100: \"#FEECF1\",\n 200: \"#F6DEE8\",\n 300: \"#EDD0DF\",\n 400: \"#E4C2D6\",\n 500: \"#DBB3CC\",\n 600: \"#B779A7\",\n 700: \"#AE6B9E\",\n 800: \"#A55D95\",\n 900: \"#934082\",\n 1000: \"#6F065D\",\n};\n\nexport const blue: Color = {\n 100: \"#DAF4FC\",\n 200: \"#CDEBF4\",\n 300: \"#C0E1EB\",\n 400: \"#B3D8E2\",\n 500: \"#A6CED9\",\n 600: \"#72A7B6\",\n 700: \"#5894A5\",\n 800: \"#3E8193\",\n 900: \"#246E82\",\n 1000: \"#0A5A70\",\n};\n\nexport const neutral: Color = {\n 100: \"#FBFBFB\",\n 200: \"#EEEFF1\",\n 300: \"#D3D3D4\",\n 400: \"#BDBEBF\",\n 500: \"#A7A8A9\",\n 600: \"#919294\",\n 700: \"#7B7C7F\",\n 800: \"#656669\",\n 900: \"#232529\",\n 1000: \"#1F2125\",\n};\n\nexport const red: Color = {\n 100: \"#FFEBEB\",\n 200: \"#EED2D2\",\n 300: \"#DDB9B9\",\n 400: \"#D5ADAD\",\n 500: \"#CCA0A0\",\n 600: \"#BB8787\",\n 700: \"#AA6E6E\",\n 800: \"#995555\",\n 900: \"#883C3C\",\n 1000: \"#772322\",\n};\n\nexport const error: Color = {\n 100: \"#FEDFDF\",\n 200: \"#FCBFBF\",\n 300: \"#FBA0A0\",\n 400: \"#F98080\",\n 500: \"#F86060\",\n 600: \"#C64D4D\",\n 700: \"#953A3A\",\n 800: \"#632626\",\n 900: \"#321313\",\n 1000: \"#250E0E\",\n};\n","import { getV1Languages } from \"../api-client/api.system-feature/api\";\nimport { getToken } from \"./common\";\n\nexport async function fetchLanguages() {\n\n const response = await getV1Languages({\n order: `id:1`,\n ...getToken(),\n });\n const data = response?.data?.languages || [];\n const languages = data?.filter(d => d?.is_active)?.map(d => {\n return {\n label: d?.name,\n code: d?.code,\n direction: d?.direction\n }\n });\n\n return languages\n}"],"names":["d"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/utils/color.ts","../../src/utils/language.ts"],"sourcesContent":["export interface Color {\n 100: string;\n 200: string;\n 300: string;\n 400: string;\n 500: string;\n 600: string;\n 700: string;\n 800: string;\n 900: string;\n 1000: string;\n}\n\nexport const primaryGreen: Color = {\n 100: \"#EBF9F2\",\n 200: \"#D6F3E5\",\n 300: \"#ADE7CB\",\n 400: \"#84DAB1\",\n 500: \"#5BCE97\",\n 600: \"#32C27D\",\n 700: \"#289B64\",\n 800: \"#1E744B\",\n 900: \"#144E32\",\n 1000: \"#0A2719\",\n};\n\nexport const green: Color = {\n 100: \"#DDF9E4\",\n 200: \"#D0F0DA\",\n 300: \"#C3E6CF\",\n 400: \"#B6DCC5\",\n 500: \"#A8D2BA\",\n 600: \"#72AA8F\",\n 700: \"#58967A\",\n 800: \"#3D8264\",\n 900: \"#226E4F\",\n 1000: \"#075A39\",\n};\n\nexport const lightGreen: Color = {\n 100: \"#F4FBCB\",\n 200: \"#EAF2BF\",\n 300: \"#E0E8B3\",\n 400: \"#D6DEA7\",\n 500: \"#CBD49A\",\n 600: \"#A2AD69\",\n 700: \"#98A45D\",\n 800: \"#8E9A51\",\n 900: \"#798638\",\n 1000: \"#505F07\",\n};\n\nexport const olive: Color = {\n 100: \"#FFF3CC\",\n 200: \"#F7EAC0\",\n 300: \"#EEE0B3\",\n 400: \"#E5D6A6\",\n 500: \"#DCCC99\",\n 600: \"#B8A466\",\n 700: \"#A6914D\",\n 800: \"#947D33\",\n 900: \"#82691A\",\n 1000: \"#705500\",\n};\n\nexport const magenta: Color = {\n 100: \"#FEECF1\",\n 200: \"#F6DEE8\",\n 300: \"#EDD0DF\",\n 400: \"#E4C2D6\",\n 500: \"#DBB3CC\",\n 600: \"#B779A7\",\n 700: \"#AE6B9E\",\n 800: \"#A55D95\",\n 900: \"#934082\",\n 1000: \"#6F065D\",\n};\n\nexport const blue: Color = {\n 100: \"#DAF4FC\",\n 200: \"#CDEBF4\",\n 300: \"#C0E1EB\",\n 400: \"#B3D8E2\",\n 500: \"#A6CED9\",\n 600: \"#72A7B6\",\n 700: \"#5894A5\",\n 800: \"#3E8193\",\n 900: \"#246E82\",\n 1000: \"#0A5A70\",\n};\n\nexport const neutral: Color = {\n 100: \"#FBFBFB\",\n 200: \"#EEEFF1\",\n 300: \"#D3D3D4\",\n 400: \"#BDBEBF\",\n 500: \"#A7A8A9\",\n 600: \"#919294\",\n 700: \"#7B7C7F\",\n 800: \"#656669\",\n 900: \"#232529\",\n 1000: \"#1F2125\",\n};\n\nexport const red: Color = {\n 100: \"#FFEBEB\",\n 200: \"#EED2D2\",\n 300: \"#DDB9B9\",\n 400: \"#D5ADAD\",\n 500: \"#CCA0A0\",\n 600: \"#BB8787\",\n 700: \"#AA6E6E\",\n 800: \"#995555\",\n 900: \"#883C3C\",\n 1000: \"#772322\",\n};\n\nexport const error: Color = {\n 100: \"#FEDFDF\",\n 200: \"#FCBFBF\",\n 300: \"#FBA0A0\",\n 400: \"#F98080\",\n 500: \"#F86060\",\n 600: \"#C64D4D\",\n 700: \"#953A3A\",\n 800: \"#632626\",\n 900: \"#321313\",\n 1000: \"#250E0E\",\n};\n","import { getV1Languages } from \"../api-client/api.system-feature/api\";\nimport { getToken } from \"./common\";\n\nexport async function fetchLanguages() {\n\n const response = await getV1Languages({\n order: `id:1`,\n ...getToken(),\n });\n const data = response?.data?.languages || [];\n const languages = data?.filter(d => d?.is_active)?.map(d => {\n return {\n label: d?.name,\n code: d?.code,\n direction: d?.direction\n }\n });\n\n return languages\n}"],"names":["d"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAM,eAAsB;AAAA,EACjC,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,QAAe;AAAA,EAC1B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,aAAoB;AAAA,EAC/B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,QAAe;AAAA,EAC1B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,UAAiB;AAAA,EAC5B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,OAAc;AAAA,EACzB,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,UAAiB;AAAA,EAC5B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,MAAa;AAAA,EACxB,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AAEO,MAAM,QAAe;AAAA,EAC1B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAM;AACR;AC7HA,eAAsB,iBAAiB;;AAErC,QAAM,WAAW,MAAM,eAAe;AAAA,IACpC,OAAO;AAAA,IACP,GAAG,SAAA;AAAA,EAAS,CACb;AACD,QAAM,SAAO,0CAAU,SAAV,mBAAgB,cAAa,CAAA;AAC1C,QAAM,aAAY,kCAAM,OAAO,CAAAA,OAAKA,MAAA,gBAAAA,GAAG,eAArB,mBAAiC,IAAI,CAAAA,OAAK;AAC1D,WAAO;AAAA,MACL,OAAOA,MAAA,gBAAAA,GAAG;AAAA,MACV,MAAMA,MAAA,gBAAAA,GAAG;AAAA,MACT,WAAWA,MAAA,gBAAAA,GAAG;AAAA,IAAA;AAAA,EAElB;AAEA,SAAO;AACT;"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../common-DzWMY4wi.js"),t=require("../navigation-utils-DO2Se8i-.js"),r=require("../form-builder-deconversion-CI-hW2RC.js"),a=require("../migration-utils-e8WoiOOR.js"),o=require("../form-builder-conversion-BTKDVbAC.js"),s=require("../api-BU2KNfrl.js"),i=require("../route-utils-ifjI7_7l.js"),n=require("../translations-1dZqnqOl.js"),p=require("i18next");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("dayjs"),require("../auth-BHeRds0l.js"),require("lodash"),require("react"),require("react-dom"),require("dayjs/plugin/utc"),require("libphonenumber-js"),require("moment-timezone"),require("react/jsx-runtime"),require("react-router-dom"),require("../custom-styled-icon-CtBVvAxY.js"),require("../DefaultPropsProvider-DXLRpppW.js"),require("react-is"),require("../MenuItem-DVUFCxXA.js"),require("../Grow-isiVHeFI.js"),require("react-transition-group"),require("../Box-C3settuL.js"),require("../images-Dwb4un_s.js"),/* empty css */require("../document-LqHIUxSn.js"),require("yup"),require("react-i18next"),require("i18next-http-backend"),require("../resource-lang-DGLkQTMh.js"),require("../all-language-XhvdjcQg.js"),require("react-helmet");var d=/* @__PURE__ */l(p);exports.INVENTORY_ADD_MODE_DISABLED_FIELDS=e.INVENTORY_ADD_MODE_DISABLED_FIELDS,exports.INVENTORY_ALWAYS_DISABLED_FIELDS=e.INVENTORY_ALWAYS_DISABLED_FIELDS,exports.INVENTORY_EDIT_MODE_DISABLED_FIELDS=e.INVENTORY_EDIT_MODE_DISABLED_FIELDS,exports.INVENTORY_FIELDS_TO_BE_DISABLED=e.INVENTORY_FIELDS_TO_BE_DISABLED,exports.INVENTORY_MATERIAL_COSTING_TYPE_ARR=e.INVENTORY_MATERIAL_COSTING_TYPE_ARR,exports.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS=e.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS,exports.INVENTORY_VARIANT_DISABLED_FIELDS=e.INVENTORY_VARIANT_DISABLED_FIELDS,exports.InvoiceStatus=e.InvoiceStatus,exports.SECTION_TYPES=e.SECTION_TYPES,exports.UTCDateFormat=e.UTCDateFormat,exports.addOrEditArray=e.addOrEditArray,exports.apiConfigurations=e.apiConfigurations,exports.appendConditionSafely=e.appendConditionSafely,exports.calculateAmountData=e.calculateAmountData,exports.calculatePeriods=e.calculatePeriods,exports.checkDuplicateTracking=e.checkDuplicateTracking,exports.checkForDuplicate=e.checkForDuplicate,exports.checkSkuAndItemName=e.checkSkuAndItemName,exports.convertToUnderscore=e.convertToUnderscore,exports.createdOnAndBy=e.createdOnAndBy,exports.dateFormat=e.dateFormat,exports.defaultCompany=e.defaultCompany,exports.defaultCurrencyFormat=e.defaultCurrencyFormat,exports.defaultCurrencySymbol=e.defaultCurrencySymbol,exports.displayPhone=e.displayPhone,exports.downloadDoc=e.downloadDoc,exports.downloadFile=e.downloadFile,exports.fetchApi=e.fetchApi,exports.fetchAssemblyItemData=e.fetchAssemblyItemData,exports.fetchCompanyLocations=e.fetchCompanyLocations,exports.fetchDataLocally=e.fetchDataLocally,exports.fetchExchageRate=e.fetchExchageRate,exports.fetchItems=e.fetchItems,exports.fetchOptions=e.fetchOptions,exports.fetchRentalResponseItems=e.fetchRentalResponseItems,exports.fetchRfqItemsByIdForResponse=e.fetchRfqItemsByIdForResponse,exports.filterAccessibleModules=e.filterAccessibleModules,exports.filterCoaByCompanyIdOrNull=e.filterCoaByCompanyIdOrNull,exports.findById=e.findById,exports.formatAmount=e.formatAmount,exports.formatAmountWithCurrency=e.formatAmountWithCurrency,exports.formatAmountWithCurrencyData=e.formatAmountWithCurrencyData,exports.formatDataTime=e.formatDataTime,exports.formatDate=e.formatDate,exports.formatDateForPayload=e.formatDateForPayload,exports.formatDateTimeForPayload=e.formatDateTimeForPayload,exports.formatEmptyDataToNull=e.formatEmptyDataToNull,exports.formatLabel=e.formatLabel,exports.formatOnlyTime=e.formatOnlyTime,exports.formatResponseDatesToDayJS=e.formatResponseDatesToDayJS,exports.formatResponseOnlyDatesToDayJS=e.formatResponseOnlyDatesToDayJS,exports.formatText=e.formatText,exports.formatTimeForPayload=e.formatTimeForPayload,exports.formatUtcDate=e.formatUtcDate,exports.generateAndFormatStringFromObj=e.generateAndFormatStringFromObj,exports.generateFields=e.generateFields,exports.generateQueryString=e.generateQueryString,exports.generateRandomId=e.generateRandomId,exports.getAccessibleModules=e.getAccessibleModules,exports.getApiConfig=e.getApiConfig,exports.getApiConfigSafe=e.getApiConfigSafe,exports.getCountryIdByName=e.getCountryIdByName,exports.getCurrency=e.getCurrency,exports.getErrorMessage=e.getErrorMessage,exports.getExcelExportTemplate=e.getExcelExportTemplate,exports.getExcelTemplateGenerateTemplate=e.getExcelTemplateGenerateTemplate,exports.getFieldFilters=e.getFieldFilters,exports.getFileName=e.getFileName,exports.getItems=e.getItems,exports.getLabelValuePairs=e.getLabelValuePairs,exports.getMinutesFromTime=e.getMinutesFromTime,exports.getName=e.getName,exports.getNestedValue=e.getNestedValue,exports.getNextScheduleDate=e.getNextScheduleDate,exports.getOperatorLabel=e.getOperatorLabel,exports.getOptions=e.getOptions,exports.getOptionsData=e.getOptionsData,exports.getPartyDependentData=e.getPartyDependentData,exports.getPartyName=e.getPartyName,exports.getSlicedValue=e.getSlicedValue,exports.getTaxAmountDataFromMultipleTaxCodes=e.getTaxAmountDataFromMultipleTaxCodes,exports.getTaxAmountFromMultipleTaxCodes=e.getTaxAmountFromMultipleTaxCodes,exports.getTimeFromMinutes=e.getTimeFromMinutes,exports.getToken=e.getToken,exports.handleRegularUpload=e.handleRegularUpload,exports.hasValue=e.hasValue,exports.initializeApiBaseUrls=e.initializeApiBaseUrls,exports.initializeApiConfig=e.initializeApiConfig,exports.isApiConfigInitialized=e.isApiConfigInitialized,exports.isBetweenTheDates=e.isBetweenTheDates,exports.isJSONString=e.isJSONString,exports.isJsonParse=e.isJsonParse,exports.manageItems=e.manageItems,exports.mapApiPayload=e.mapApiPayload,exports.mapAsyncApiPayload=e.mapAsyncApiPayload,exports.matchedMaterialCostingTypeLabel=e.matchedMaterialCostingTypeLabel,exports.omitDataKeys=e.omitDataKeys,exports.onApiConfigReady=e.onApiConfigReady,exports.partyDuplicateCheck=e.partyDuplicateCheck,exports.partyEmailIds=e.partyEmailIds,exports.postImportSheet=e.postImportSheet,exports.remainingMaterialCostingTypes=e.remainingMaterialCostingTypes,exports.removeIdFromObject=e.removeIdFromObject,exports.removeIdStaticIdsFromMongoObject=e.removeIdStaticIdsFromMongoObject,exports.resetApiConfig=e.resetApiConfig,exports.responseItemDetailsColumns=e.responseItemDetailsColumns,exports.setRateBasedOnPriceRules=e.setRateBasedOnPriceRules,exports.showSnackBar=e.showSnackBar,exports.skuGenerator=e.skuGenerator,exports.specificFilters=e.specificFilters,exports.subModuleMappings=e.subModuleMappings,exports.toFixedWithNumbers=e.toFixedWithNumbers,exports.updateFieldsDisabledState=e.updateFieldsDisabledState,exports.uploadAttachments=e.uploadAttachments,exports.uploadFiles=e.uploadFiles,exports.validateDiscountValidity=e.validateDiscountValidity,exports.RANGE=t.RANGE,exports.calculateEntries=t.calculateEntries,exports.getEntityId=t.getEntityId,exports.handleCompareDateRange=t.handleCompareDateRange,exports.handleCompareDateRangeSync=t.handleCompareDateRangeSync,exports.navigateWithId=t.navigateWithId,exports.convertTableColumns=r.convertTableColumns,exports.formBuilderDeConversion=r.formBuilderDeConversion,exports.getFileNamesFromUrls=r.getFileNamesFromUrls,exports.getFileNamesFromUrlsAsLink=r.getFileNamesFromUrlsAsLink,exports.renderEmptyRowsFallback=r.renderEmptyRowsFallback,exports.renderValueField=r.renderValueField,exports.transformTableColumns=r.transformTableColumns,exports.COMMON_DATE_VALIDATIONS=a.COMMON_DATE_VALIDATIONS,exports.MenuFilter=a.MenuFilter,exports.MenuFilterService=a.MenuFilterService,exports.MetaComponent=a.MetaComponent,exports.ModuleAccessService=a.ModuleAccessService,exports.StorageUtils=a.StorageUtils,exports.anyDateValidation=a.anyDateValidation,exports.businessDateValidation=a.businessDateValidation,exports.conditionalDateValidation=a.conditionalDateValidation,exports.createCustomMessages=a.createCustomMessages,exports.createDateValidation=a.createDateValidation,exports.createParameterizedNavigationHandler=a.createParameterizedNavigationHandler,exports.dateRangeValidation=a.dateRangeValidation,exports.dateTimeValidation=a.dateTimeValidation,exports.dateValidation=a.dateValidation,exports.fileSize=a.fileSize,exports.futureDateValidation=a.futureDateValidation,exports.getCountry=a.getCountry,exports.migrateRoutesToUseParams=a.migrateRoutesToUseParams,exports.migrateToPathWithId=a.migrateToPathWithId,exports.pastDateValidation=a.pastDateValidation,exports.updateTableConfigForParameterizedNavigation=a.updateTableConfigForParameterizedNavigation,exports.deFormatText=o.deFormatText,exports.formBuilderConversion=o.formBuilderConversion,exports.setDriveURL=s.setBaseUrl$1,exports.setRoleURL=s.setBaseUrl,exports.setSystemFeatureURL=s.setBaseUrl$2,exports.convertRoutesToUseIdParams=i.convertRoutesToUseIdParams,exports.generateRouteWithId=i.generateRouteWithId,exports.navigateToRouteWithId=i.navigateToRouteWithId,exports.updatePathnameWithIdParams=i.updatePathnameWithIdParams,exports.loadModuleTranslations=n.loadModuleTranslations,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return d.default}}),exports.blue={100:"#DAF4FC",200:"#CDEBF4",300:"#C0E1EB",400:"#B3D8E2",500:"#A6CED9",600:"#72A7B6",700:"#5894A5",800:"#3E8193",900:"#246E82",1e3:"#0A5A70"},exports.error={100:"#FEDFDF",200:"#FCBFBF",300:"#FBA0A0",400:"#F98080",500:"#F86060",600:"#C64D4D",700:"#953A3A",800:"#632626",900:"#321313",1e3:"#250E0E"},exports.fetchLanguages=async function(){var t,r;const a=await s.getV1Languages({order:"id:1",...e.getToken()}),o=(null==(t=null==a?void 0:a.data)?void 0:t.languages)||[];return null==(r=null==o?void 0:o.filter(e=>null==e?void 0:e.is_active))?void 0:r.map(e=>({label:null==e?void 0:e.name,code:null==e?void 0:e.code,direction:null==e?void 0:e.direction}))},exports.green={100:"#DDF9E4",200:"#D0F0DA",300:"#C3E6CF",400:"#B6DCC5",500:"#A8D2BA",600:"#72AA8F",700:"#58967A",800:"#3D8264",900:"#226E4F",1e3:"#075A39"},exports.lightGreen={100:"#F4FBCB",200:"#EAF2BF",300:"#E0E8B3",400:"#D6DEA7",500:"#CBD49A",600:"#A2AD69",700:"#98A45D",800:"#8E9A51",900:"#798638",1e3:"#505F07"},exports.magenta={100:"#FEECF1",200:"#F6DEE8",300:"#EDD0DF",400:"#E4C2D6",500:"#DBB3CC",600:"#B779A7",700:"#AE6B9E",800:"#A55D95",900:"#934082",1e3:"#6F065D"},exports.neutral={100:"#FBFBFB",200:"#EEEFF1",300:"#D3D3D4",400:"#BDBEBF",500:"#A7A8A9",600:"#919294",700:"#7B7C7F",800:"#656669",900:"#232529",1e3:"#1F2125"},exports.olive={100:"#FFF3CC",200:"#F7EAC0",300:"#EEE0B3",400:"#E5D6A6",500:"#DCCC99",600:"#B8A466",700:"#A6914D",800:"#947D33",900:"#82691A",1e3:"#705500"},exports.primaryGreen={100:"#EBF9F2",200:"#D6F3E5",300:"#ADE7CB",400:"#84DAB1",500:"#5BCE97",600:"#32C27D",700:"#289B64",800:"#1E744B",900:"#144E32",1e3:"#0A2719"},exports.red={100:"#FFEBEB",200:"#EED2D2",300:"#DDB9B9",400:"#D5ADAD",500:"#CCA0A0",600:"#BB8787",700:"#AA6E6E",800:"#995555",900:"#883C3C",1e3:"#772322"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../common-DzWMY4wi.js"),t=require("../navigation-utils-DO2Se8i-.js"),r=require("../form-builder-deconversion-CI-hW2RC.js"),a=require("../migration-utils-t8N4H56x.js"),o=require("../form-builder-conversion-BTKDVbAC.js"),s=require("../api-BU2KNfrl.js"),i=require("../route-utils-ifjI7_7l.js"),n=require("../translations-1dZqnqOl.js"),p=require("i18next");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("dayjs"),require("../auth-BHeRds0l.js"),require("lodash"),require("react"),require("react-dom"),require("dayjs/plugin/utc"),require("libphonenumber-js"),require("moment-timezone"),require("react/jsx-runtime"),require("react-router-dom"),require("../custom-styled-icon-CtBVvAxY.js"),require("../DefaultPropsProvider-DXLRpppW.js"),require("react-is"),require("../MenuItem-DVUFCxXA.js"),require("../Grow-isiVHeFI.js"),require("react-transition-group"),require("../Box-C3settuL.js"),require("../images-Dwb4un_s.js"),/* empty css */require("../document-LqHIUxSn.js"),require("yup"),require("react-i18next"),require("i18next-http-backend"),require("../all-language-XhvdjcQg.js"),require("react-helmet");var d=/* @__PURE__ */l(p);exports.INVENTORY_ADD_MODE_DISABLED_FIELDS=e.INVENTORY_ADD_MODE_DISABLED_FIELDS,exports.INVENTORY_ALWAYS_DISABLED_FIELDS=e.INVENTORY_ALWAYS_DISABLED_FIELDS,exports.INVENTORY_EDIT_MODE_DISABLED_FIELDS=e.INVENTORY_EDIT_MODE_DISABLED_FIELDS,exports.INVENTORY_FIELDS_TO_BE_DISABLED=e.INVENTORY_FIELDS_TO_BE_DISABLED,exports.INVENTORY_MATERIAL_COSTING_TYPE_ARR=e.INVENTORY_MATERIAL_COSTING_TYPE_ARR,exports.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS=e.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS,exports.INVENTORY_VARIANT_DISABLED_FIELDS=e.INVENTORY_VARIANT_DISABLED_FIELDS,exports.InvoiceStatus=e.InvoiceStatus,exports.SECTION_TYPES=e.SECTION_TYPES,exports.UTCDateFormat=e.UTCDateFormat,exports.addOrEditArray=e.addOrEditArray,exports.apiConfigurations=e.apiConfigurations,exports.appendConditionSafely=e.appendConditionSafely,exports.calculateAmountData=e.calculateAmountData,exports.calculatePeriods=e.calculatePeriods,exports.checkDuplicateTracking=e.checkDuplicateTracking,exports.checkForDuplicate=e.checkForDuplicate,exports.checkSkuAndItemName=e.checkSkuAndItemName,exports.convertToUnderscore=e.convertToUnderscore,exports.createdOnAndBy=e.createdOnAndBy,exports.dateFormat=e.dateFormat,exports.defaultCompany=e.defaultCompany,exports.defaultCurrencyFormat=e.defaultCurrencyFormat,exports.defaultCurrencySymbol=e.defaultCurrencySymbol,exports.displayPhone=e.displayPhone,exports.downloadDoc=e.downloadDoc,exports.downloadFile=e.downloadFile,exports.fetchApi=e.fetchApi,exports.fetchAssemblyItemData=e.fetchAssemblyItemData,exports.fetchCompanyLocations=e.fetchCompanyLocations,exports.fetchDataLocally=e.fetchDataLocally,exports.fetchExchageRate=e.fetchExchageRate,exports.fetchItems=e.fetchItems,exports.fetchOptions=e.fetchOptions,exports.fetchRentalResponseItems=e.fetchRentalResponseItems,exports.fetchRfqItemsByIdForResponse=e.fetchRfqItemsByIdForResponse,exports.filterAccessibleModules=e.filterAccessibleModules,exports.filterCoaByCompanyIdOrNull=e.filterCoaByCompanyIdOrNull,exports.findById=e.findById,exports.formatAmount=e.formatAmount,exports.formatAmountWithCurrency=e.formatAmountWithCurrency,exports.formatAmountWithCurrencyData=e.formatAmountWithCurrencyData,exports.formatDataTime=e.formatDataTime,exports.formatDate=e.formatDate,exports.formatDateForPayload=e.formatDateForPayload,exports.formatDateTimeForPayload=e.formatDateTimeForPayload,exports.formatEmptyDataToNull=e.formatEmptyDataToNull,exports.formatLabel=e.formatLabel,exports.formatOnlyTime=e.formatOnlyTime,exports.formatResponseDatesToDayJS=e.formatResponseDatesToDayJS,exports.formatResponseOnlyDatesToDayJS=e.formatResponseOnlyDatesToDayJS,exports.formatText=e.formatText,exports.formatTimeForPayload=e.formatTimeForPayload,exports.formatUtcDate=e.formatUtcDate,exports.generateAndFormatStringFromObj=e.generateAndFormatStringFromObj,exports.generateFields=e.generateFields,exports.generateQueryString=e.generateQueryString,exports.generateRandomId=e.generateRandomId,exports.getAccessibleModules=e.getAccessibleModules,exports.getApiConfig=e.getApiConfig,exports.getApiConfigSafe=e.getApiConfigSafe,exports.getCountryIdByName=e.getCountryIdByName,exports.getCurrency=e.getCurrency,exports.getErrorMessage=e.getErrorMessage,exports.getExcelExportTemplate=e.getExcelExportTemplate,exports.getExcelTemplateGenerateTemplate=e.getExcelTemplateGenerateTemplate,exports.getFieldFilters=e.getFieldFilters,exports.getFileName=e.getFileName,exports.getItems=e.getItems,exports.getLabelValuePairs=e.getLabelValuePairs,exports.getMinutesFromTime=e.getMinutesFromTime,exports.getName=e.getName,exports.getNestedValue=e.getNestedValue,exports.getNextScheduleDate=e.getNextScheduleDate,exports.getOperatorLabel=e.getOperatorLabel,exports.getOptions=e.getOptions,exports.getOptionsData=e.getOptionsData,exports.getPartyDependentData=e.getPartyDependentData,exports.getPartyName=e.getPartyName,exports.getSlicedValue=e.getSlicedValue,exports.getTaxAmountDataFromMultipleTaxCodes=e.getTaxAmountDataFromMultipleTaxCodes,exports.getTaxAmountFromMultipleTaxCodes=e.getTaxAmountFromMultipleTaxCodes,exports.getTimeFromMinutes=e.getTimeFromMinutes,exports.getToken=e.getToken,exports.handleRegularUpload=e.handleRegularUpload,exports.hasValue=e.hasValue,exports.initializeApiBaseUrls=e.initializeApiBaseUrls,exports.initializeApiConfig=e.initializeApiConfig,exports.isApiConfigInitialized=e.isApiConfigInitialized,exports.isBetweenTheDates=e.isBetweenTheDates,exports.isJSONString=e.isJSONString,exports.isJsonParse=e.isJsonParse,exports.manageItems=e.manageItems,exports.mapApiPayload=e.mapApiPayload,exports.mapAsyncApiPayload=e.mapAsyncApiPayload,exports.matchedMaterialCostingTypeLabel=e.matchedMaterialCostingTypeLabel,exports.omitDataKeys=e.omitDataKeys,exports.onApiConfigReady=e.onApiConfigReady,exports.partyDuplicateCheck=e.partyDuplicateCheck,exports.partyEmailIds=e.partyEmailIds,exports.postImportSheet=e.postImportSheet,exports.remainingMaterialCostingTypes=e.remainingMaterialCostingTypes,exports.removeIdFromObject=e.removeIdFromObject,exports.removeIdStaticIdsFromMongoObject=e.removeIdStaticIdsFromMongoObject,exports.resetApiConfig=e.resetApiConfig,exports.responseItemDetailsColumns=e.responseItemDetailsColumns,exports.setRateBasedOnPriceRules=e.setRateBasedOnPriceRules,exports.showSnackBar=e.showSnackBar,exports.skuGenerator=e.skuGenerator,exports.specificFilters=e.specificFilters,exports.subModuleMappings=e.subModuleMappings,exports.toFixedWithNumbers=e.toFixedWithNumbers,exports.updateFieldsDisabledState=e.updateFieldsDisabledState,exports.uploadAttachments=e.uploadAttachments,exports.uploadFiles=e.uploadFiles,exports.validateDiscountValidity=e.validateDiscountValidity,exports.RANGE=t.RANGE,exports.calculateEntries=t.calculateEntries,exports.getEntityId=t.getEntityId,exports.handleCompareDateRange=t.handleCompareDateRange,exports.handleCompareDateRangeSync=t.handleCompareDateRangeSync,exports.navigateWithId=t.navigateWithId,exports.convertTableColumns=r.convertTableColumns,exports.formBuilderDeConversion=r.formBuilderDeConversion,exports.getFileNamesFromUrls=r.getFileNamesFromUrls,exports.getFileNamesFromUrlsAsLink=r.getFileNamesFromUrlsAsLink,exports.renderEmptyRowsFallback=r.renderEmptyRowsFallback,exports.renderValueField=r.renderValueField,exports.transformTableColumns=r.transformTableColumns,exports.COMMON_DATE_VALIDATIONS=a.COMMON_DATE_VALIDATIONS,exports.MenuFilter=a.MenuFilter,exports.MenuFilterService=a.MenuFilterService,exports.MetaComponent=a.MetaComponent,exports.ModuleAccessService=a.ModuleAccessService,exports.StorageUtils=a.StorageUtils,exports.anyDateValidation=a.anyDateValidation,exports.businessDateValidation=a.businessDateValidation,exports.conditionalDateValidation=a.conditionalDateValidation,exports.createCustomMessages=a.createCustomMessages,exports.createDateValidation=a.createDateValidation,exports.createParameterizedNavigationHandler=a.createParameterizedNavigationHandler,exports.dateRangeValidation=a.dateRangeValidation,exports.dateTimeValidation=a.dateTimeValidation,exports.dateValidation=a.dateValidation,exports.fileSize=a.fileSize,exports.futureDateValidation=a.futureDateValidation,exports.getCountry=a.getCountry,exports.migrateRoutesToUseParams=a.migrateRoutesToUseParams,exports.migrateToPathWithId=a.migrateToPathWithId,exports.pastDateValidation=a.pastDateValidation,exports.updateTableConfigForParameterizedNavigation=a.updateTableConfigForParameterizedNavigation,exports.deFormatText=o.deFormatText,exports.formBuilderConversion=o.formBuilderConversion,exports.setDriveURL=s.setBaseUrl$1,exports.setRoleURL=s.setBaseUrl,exports.setSystemFeatureURL=s.setBaseUrl$2,exports.convertRoutesToUseIdParams=i.convertRoutesToUseIdParams,exports.generateRouteWithId=i.generateRouteWithId,exports.navigateToRouteWithId=i.navigateToRouteWithId,exports.updatePathnameWithIdParams=i.updatePathnameWithIdParams,exports.loadModuleTranslations=n.loadModuleTranslations,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return d.default}}),exports.blue={100:"#DAF4FC",200:"#CDEBF4",300:"#C0E1EB",400:"#B3D8E2",500:"#A6CED9",600:"#72A7B6",700:"#5894A5",800:"#3E8193",900:"#246E82",1e3:"#0A5A70"},exports.error={100:"#FEDFDF",200:"#FCBFBF",300:"#FBA0A0",400:"#F98080",500:"#F86060",600:"#C64D4D",700:"#953A3A",800:"#632626",900:"#321313",1e3:"#250E0E"},exports.fetchLanguages=async function(){var t,r;const a=await s.getV1Languages({order:"id:1",...e.getToken()}),o=(null==(t=null==a?void 0:a.data)?void 0:t.languages)||[];return null==(r=null==o?void 0:o.filter(e=>null==e?void 0:e.is_active))?void 0:r.map(e=>({label:null==e?void 0:e.name,code:null==e?void 0:e.code,direction:null==e?void 0:e.direction}))},exports.green={100:"#DDF9E4",200:"#D0F0DA",300:"#C3E6CF",400:"#B6DCC5",500:"#A8D2BA",600:"#72AA8F",700:"#58967A",800:"#3D8264",900:"#226E4F",1e3:"#075A39"},exports.lightGreen={100:"#F4FBCB",200:"#EAF2BF",300:"#E0E8B3",400:"#D6DEA7",500:"#CBD49A",600:"#A2AD69",700:"#98A45D",800:"#8E9A51",900:"#798638",1e3:"#505F07"},exports.magenta={100:"#FEECF1",200:"#F6DEE8",300:"#EDD0DF",400:"#E4C2D6",500:"#DBB3CC",600:"#B779A7",700:"#AE6B9E",800:"#A55D95",900:"#934082",1e3:"#6F065D"},exports.neutral={100:"#FBFBFB",200:"#EEEFF1",300:"#D3D3D4",400:"#BDBEBF",500:"#A7A8A9",600:"#919294",700:"#7B7C7F",800:"#656669",900:"#232529",1e3:"#1F2125"},exports.olive={100:"#FFF3CC",200:"#F7EAC0",300:"#EEE0B3",400:"#E5D6A6",500:"#DCCC99",600:"#B8A466",700:"#A6914D",800:"#947D33",900:"#82691A",1e3:"#705500"},exports.primaryGreen={100:"#EBF9F2",200:"#D6F3E5",300:"#ADE7CB",400:"#84DAB1",500:"#5BCE97",600:"#32C27D",700:"#289B64",800:"#1E744B",900:"#144E32",1e3:"#0A2719"},exports.red={100:"#FFEBEB",200:"#EED2D2",300:"#DDB9B9",400:"#D5ADAD",500:"#CCA0A0",600:"#BB8787",700:"#AA6E6E",800:"#995555",900:"#883C3C",1e3:"#772322"};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/color.ts","../../src/utils/language.ts"],"sourcesContent":["export interface Color {\n 100: string;\n 200: string;\n 300: string;\n 400: string;\n 500: string;\n 600: string;\n 700: string;\n 800: string;\n 900: string;\n 1000: string;\n}\n\nexport const primaryGreen: Color = {\n 100: \"#EBF9F2\",\n 200: \"#D6F3E5\",\n 300: \"#ADE7CB\",\n 400: \"#84DAB1\",\n 500: \"#5BCE97\",\n 600: \"#32C27D\",\n 700: \"#289B64\",\n 800: \"#1E744B\",\n 900: \"#144E32\",\n 1000: \"#0A2719\",\n};\n\nexport const green: Color = {\n 100: \"#DDF9E4\",\n 200: \"#D0F0DA\",\n 300: \"#C3E6CF\",\n 400: \"#B6DCC5\",\n 500: \"#A8D2BA\",\n 600: \"#72AA8F\",\n 700: \"#58967A\",\n 800: \"#3D8264\",\n 900: \"#226E4F\",\n 1000: \"#075A39\",\n};\n\nexport const lightGreen: Color = {\n 100: \"#F4FBCB\",\n 200: \"#EAF2BF\",\n 300: \"#E0E8B3\",\n 400: \"#D6DEA7\",\n 500: \"#CBD49A\",\n 600: \"#A2AD69\",\n 700: \"#98A45D\",\n 800: \"#8E9A51\",\n 900: \"#798638\",\n 1000: \"#505F07\",\n};\n\nexport const olive: Color = {\n 100: \"#FFF3CC\",\n 200: \"#F7EAC0\",\n 300: \"#EEE0B3\",\n 400: \"#E5D6A6\",\n 500: \"#DCCC99\",\n 600: \"#B8A466\",\n 700: \"#A6914D\",\n 800: \"#947D33\",\n 900: \"#82691A\",\n 1000: \"#705500\",\n};\n\nexport const magenta: Color = {\n 100: \"#FEECF1\",\n 200: \"#F6DEE8\",\n 300: \"#EDD0DF\",\n 400: \"#E4C2D6\",\n 500: \"#DBB3CC\",\n 600: \"#B779A7\",\n 700: \"#AE6B9E\",\n 800: \"#A55D95\",\n 900: \"#934082\",\n 1000: \"#6F065D\",\n};\n\nexport const blue: Color = {\n 100: \"#DAF4FC\",\n 200: \"#CDEBF4\",\n 300: \"#C0E1EB\",\n 400: \"#B3D8E2\",\n 500: \"#A6CED9\",\n 600: \"#72A7B6\",\n 700: \"#5894A5\",\n 800: \"#3E8193\",\n 900: \"#246E82\",\n 1000: \"#0A5A70\",\n};\n\nexport const neutral: Color = {\n 100: \"#FBFBFB\",\n 200: \"#EEEFF1\",\n 300: \"#D3D3D4\",\n 400: \"#BDBEBF\",\n 500: \"#A7A8A9\",\n 600: \"#919294\",\n 700: \"#7B7C7F\",\n 800: \"#656669\",\n 900: \"#232529\",\n 1000: \"#1F2125\",\n};\n\nexport const red: Color = {\n 100: \"#FFEBEB\",\n 200: \"#EED2D2\",\n 300: \"#DDB9B9\",\n 400: \"#D5ADAD\",\n 500: \"#CCA0A0\",\n 600: \"#BB8787\",\n 700: \"#AA6E6E\",\n 800: \"#995555\",\n 900: \"#883C3C\",\n 1000: \"#772322\",\n};\n\nexport const error: Color = {\n 100: \"#FEDFDF\",\n 200: \"#FCBFBF\",\n 300: \"#FBA0A0\",\n 400: \"#F98080\",\n 500: \"#F86060\",\n 600: \"#C64D4D\",\n 700: \"#953A3A\",\n 800: \"#632626\",\n 900: \"#321313\",\n 1000: \"#250E0E\",\n};\n","import { getV1Languages } from \"../api-client/api.system-feature/api\";\nimport { getToken } from \"./common\";\n\nexport async function fetchLanguages() {\n\n const response = await getV1Languages({\n order: `id:1`,\n ...getToken(),\n });\n const data = response?.data?.languages || [];\n const languages = data?.filter(d => d?.is_active)?.map(d => {\n return {\n label: d?.name,\n code: d?.code,\n direction: d?.direction\n }\n });\n\n return languages\n}"],"names":["async","response","getV1Languages","order","getToken","data","_a","languages","_b","filter","d","is_active","map","label","name","code","direction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/color.ts","../../src/utils/language.ts"],"sourcesContent":["export interface Color {\n 100: string;\n 200: string;\n 300: string;\n 400: string;\n 500: string;\n 600: string;\n 700: string;\n 800: string;\n 900: string;\n 1000: string;\n}\n\nexport const primaryGreen: Color = {\n 100: \"#EBF9F2\",\n 200: \"#D6F3E5\",\n 300: \"#ADE7CB\",\n 400: \"#84DAB1\",\n 500: \"#5BCE97\",\n 600: \"#32C27D\",\n 700: \"#289B64\",\n 800: \"#1E744B\",\n 900: \"#144E32\",\n 1000: \"#0A2719\",\n};\n\nexport const green: Color = {\n 100: \"#DDF9E4\",\n 200: \"#D0F0DA\",\n 300: \"#C3E6CF\",\n 400: \"#B6DCC5\",\n 500: \"#A8D2BA\",\n 600: \"#72AA8F\",\n 700: \"#58967A\",\n 800: \"#3D8264\",\n 900: \"#226E4F\",\n 1000: \"#075A39\",\n};\n\nexport const lightGreen: Color = {\n 100: \"#F4FBCB\",\n 200: \"#EAF2BF\",\n 300: \"#E0E8B3\",\n 400: \"#D6DEA7\",\n 500: \"#CBD49A\",\n 600: \"#A2AD69\",\n 700: \"#98A45D\",\n 800: \"#8E9A51\",\n 900: \"#798638\",\n 1000: \"#505F07\",\n};\n\nexport const olive: Color = {\n 100: \"#FFF3CC\",\n 200: \"#F7EAC0\",\n 300: \"#EEE0B3\",\n 400: \"#E5D6A6\",\n 500: \"#DCCC99\",\n 600: \"#B8A466\",\n 700: \"#A6914D\",\n 800: \"#947D33\",\n 900: \"#82691A\",\n 1000: \"#705500\",\n};\n\nexport const magenta: Color = {\n 100: \"#FEECF1\",\n 200: \"#F6DEE8\",\n 300: \"#EDD0DF\",\n 400: \"#E4C2D6\",\n 500: \"#DBB3CC\",\n 600: \"#B779A7\",\n 700: \"#AE6B9E\",\n 800: \"#A55D95\",\n 900: \"#934082\",\n 1000: \"#6F065D\",\n};\n\nexport const blue: Color = {\n 100: \"#DAF4FC\",\n 200: \"#CDEBF4\",\n 300: \"#C0E1EB\",\n 400: \"#B3D8E2\",\n 500: \"#A6CED9\",\n 600: \"#72A7B6\",\n 700: \"#5894A5\",\n 800: \"#3E8193\",\n 900: \"#246E82\",\n 1000: \"#0A5A70\",\n};\n\nexport const neutral: Color = {\n 100: \"#FBFBFB\",\n 200: \"#EEEFF1\",\n 300: \"#D3D3D4\",\n 400: \"#BDBEBF\",\n 500: \"#A7A8A9\",\n 600: \"#919294\",\n 700: \"#7B7C7F\",\n 800: \"#656669\",\n 900: \"#232529\",\n 1000: \"#1F2125\",\n};\n\nexport const red: Color = {\n 100: \"#FFEBEB\",\n 200: \"#EED2D2\",\n 300: \"#DDB9B9\",\n 400: \"#D5ADAD\",\n 500: \"#CCA0A0\",\n 600: \"#BB8787\",\n 700: \"#AA6E6E\",\n 800: \"#995555\",\n 900: \"#883C3C\",\n 1000: \"#772322\",\n};\n\nexport const error: Color = {\n 100: \"#FEDFDF\",\n 200: \"#FCBFBF\",\n 300: \"#FBA0A0\",\n 400: \"#F98080\",\n 500: \"#F86060\",\n 600: \"#C64D4D\",\n 700: \"#953A3A\",\n 800: \"#632626\",\n 900: \"#321313\",\n 1000: \"#250E0E\",\n};\n","import { getV1Languages } from \"../api-client/api.system-feature/api\";\nimport { getToken } from \"./common\";\n\nexport async function fetchLanguages() {\n\n const response = await getV1Languages({\n order: `id:1`,\n ...getToken(),\n });\n const data = response?.data?.languages || [];\n const languages = data?.filter(d => d?.is_active)?.map(d => {\n return {\n label: d?.name,\n code: d?.code,\n direction: d?.direction\n }\n });\n\n return languages\n}"],"names":["async","response","getV1Languages","order","getToken","data","_a","languages","_b","filter","d","is_active","map","label","name","code","direction"],"mappings":"ojSA8E2B,CACzB,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,yBA6BoB,CAC1B,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,kCC5HRA,yBAEE,MAAMC,QAAiBC,iBAAe,CACpCC,MAAO,UACJC,EAAAA,aAECC,GAAO,OAAAC,EAAA,MAAAL,OAAA,EAAAA,EAAUI,WAAV,EAAAC,EAAgBC,YAAa,GAS1C,OARkB,OAAAC,EAAA,MAAAH,OAAA,EAAAA,EAAMI,OAAOC,SAAKA,WAAGC,iBAArB,EAAAH,EAAiCI,IAAIF,IAC9C,CACLG,MAAO,MAAAH,OAAA,EAAAA,EAAGI,KACVC,KAAM,MAAAL,OAAA,EAAAA,EAAGK,KACTC,UAAW,MAAAN,OAAA,EAAAA,EAAGM,YAKpB,gBDO4B,CAC1B,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,8BAGyB,CAC/B,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,2BAgBsB,CAC5B,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,2BAgBsB,CAC5B,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,yBAjDoB,CAC1B,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IA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