@erpsquad/common 1.10.65 → 1.10.67
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/chunks/{ERPUIProvider-DtSGxSro.esm.js → ERPUIProvider-B25RO0oy.esm.js} +4 -4
- package/dist/chunks/{ERPUIProvider-DtSGxSro.esm.js.map → ERPUIProvider-B25RO0oy.esm.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-B_cYjAdF.js → ERPUIProvider-qVNxuYUq.js} +4 -4
- package/dist/chunks/{ERPUIProvider-B_cYjAdF.js.map → ERPUIProvider-qVNxuYUq.js.map} +1 -1
- package/dist/chunks/{android-12-switch-BP2CP-ah.js → android-12-switch-CPchopCJ.js} +67 -61
- package/dist/chunks/android-12-switch-CPchopCJ.js.map +1 -0
- package/dist/chunks/{android-12-switch-CrpXnQsd.esm.js → android-12-switch-CRhzpgwy.esm.js} +67 -61
- package/dist/chunks/android-12-switch-CRhzpgwy.esm.js.map +1 -0
- package/dist/chunks/{appbar-Bb4MdbyO.js → appbar-CLVklo7i.js} +3 -3
- package/dist/chunks/{appbar-Bb4MdbyO.js.map → appbar-CLVklo7i.js.map} +1 -1
- package/dist/chunks/{appbar-CHxm7L_f.esm.js → appbar-JugRLTTB.esm.js} +3 -3
- package/dist/chunks/{appbar-CHxm7L_f.esm.js.map → appbar-JugRLTTB.esm.js.map} +1 -1
- package/dist/chunks/{checkbox-CS7OvJZk.js → checkbox-BtV5gEk1.js} +3 -3
- package/dist/chunks/{checkbox-CS7OvJZk.js.map → checkbox-BtV5gEk1.js.map} +1 -1
- package/dist/chunks/{checkbox-BG9DbVQ5.esm.js → checkbox-aq3lcSNh.esm.js} +3 -3
- package/dist/chunks/{checkbox-BG9DbVQ5.esm.js.map → checkbox-aq3lcSNh.esm.js.map} +1 -1
- package/dist/chunks/{default-data-WODnnwD5.js → default-data-BV11jE2f.js} +6 -6
- package/dist/chunks/{default-data-WODnnwD5.js.map → default-data-BV11jE2f.js.map} +1 -1
- package/dist/chunks/{default-data-7fDwUquk.esm.js → default-data-CttLHjij.esm.js} +6 -6
- package/dist/chunks/{default-data-7fDwUquk.esm.js.map → default-data-CttLHjij.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-BJR97bsP.js → fullScreen-DrLlR1HI.js} +2 -2
- package/dist/chunks/{fullScreen-BJR97bsP.js.map → fullScreen-DrLlR1HI.js.map} +1 -1
- package/dist/chunks/{fullScreen-uN74Cs7z.esm.js → fullScreen-TJdVNF4N.esm.js} +2 -2
- package/dist/chunks/{fullScreen-uN74Cs7z.esm.js.map → fullScreen-TJdVNF4N.esm.js.map} +1 -1
- package/dist/chunks/{modules-BEfRrTxc.js → modules--vSuX1U9.js} +2 -2
- package/dist/chunks/{modules-BEfRrTxc.js.map → modules--vSuX1U9.js.map} +1 -1
- package/dist/chunks/{modules-BjL8mfuw.esm.js → modules-DmtCo0T_.esm.js} +2 -2
- package/dist/chunks/{modules-BjL8mfuw.esm.js.map → modules-DmtCo0T_.esm.js.map} +1 -1
- package/dist/chunks/{page-context-D32zeXhS.js → page-context-DPP1VkDf.js} +2 -2
- package/dist/chunks/{page-context-D32zeXhS.js.map → page-context-DPP1VkDf.js.map} +1 -1
- package/dist/chunks/{page-context-BR0JEfCp.esm.js → page-context-Da49_1zP.esm.js} +2 -2
- package/dist/chunks/{page-context-BR0JEfCp.esm.js.map → page-context-Da49_1zP.esm.js.map} +1 -1
- package/dist/chunks/{route-page-map-gBJ6YfCI.esm.js → route-page-map-BRDtQTgL.esm.js} +7 -4
- package/dist/chunks/route-page-map-BRDtQTgL.esm.js.map +1 -0
- package/dist/chunks/{route-page-map-CuVKVc8s.js → route-page-map-Czwp-hfI.js} +7 -4
- package/dist/chunks/route-page-map-Czwp-hfI.js.map +1 -0
- package/dist/chunks/{sidebar-Df3O8Xw6.js → sidebar-BOpyMIRe.js} +2 -2
- package/dist/chunks/{sidebar-Df3O8Xw6.js.map → sidebar-BOpyMIRe.js.map} +1 -1
- package/dist/chunks/{sidebar-C_fhINvI.esm.js → sidebar-Cc9-z3ES.esm.js} +2 -2
- package/dist/chunks/{sidebar-C_fhINvI.esm.js.map → sidebar-Cc9-z3ES.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-BbczvGnM.js → sidebarScreen-C6RJT1PK.js} +3 -3
- package/dist/chunks/{sidebarScreen-BbczvGnM.js.map → sidebarScreen-C6RJT1PK.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-Df0FcbCe.esm.js → sidebarScreen-kbpZZe_u.esm.js} +3 -3
- package/dist/chunks/{sidebarScreen-Df0FcbCe.esm.js.map → sidebarScreen-kbpZZe_u.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-BN-gHLZh.esm.js → uom-field-wrapper-CvW-ILPC.esm.js} +465 -222
- package/dist/chunks/uom-field-wrapper-CvW-ILPC.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-DQKUL4a5.js → uom-field-wrapper-QpAULeef.js} +413 -170
- package/dist/chunks/uom-field-wrapper-QpAULeef.js.map +1 -0
- package/dist/chunks/{useAddressContact-Dm7nV19E.esm.js → useAddressContact-BstaYk7Q.esm.js} +3 -3
- package/dist/chunks/{useAddressContact-Dm7nV19E.esm.js.map → useAddressContact-BstaYk7Q.esm.js.map} +1 -1
- package/dist/chunks/{useAddressContact-omyt5axK.js → useAddressContact-NganFSy-.js} +3 -3
- package/dist/chunks/{useAddressContact-omyt5axK.js.map → useAddressContact-NganFSy-.js.map} +1 -1
- package/dist/components/document-preview/document-preview.d.ts +6 -0
- package/dist/components/index.esm.js +72 -71
- package/dist/components/index.js +8 -7
- package/dist/components/index.js.map +1 -1
- package/dist/components/parties-modal/utils/constant.d.ts +23 -2
- package/dist/components/upload-media/upload-media.d.ts +1 -0
- package/dist/constants/index.esm.js +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/contexts/index.esm.js +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.esm.js +3 -3
- package/dist/hooks/index.js +3 -3
- package/dist/index.esm.js +97 -96
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/src/components/document-preview/document-preview.d.ts +6 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/parties-modal/utils/constant.d.ts +23 -2
- package/dist/src/components/upload-media/upload-media.d.ts +1 -0
- package/dist/style.css +4 -1
- package/dist/views/index.esm.js +7 -7
- package/dist/views/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-BP2CP-ah.js.map +0 -1
- package/dist/chunks/android-12-switch-CrpXnQsd.esm.js.map +0 -1
- package/dist/chunks/route-page-map-CuVKVc8s.js.map +0 -1
- package/dist/chunks/route-page-map-gBJ6YfCI.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-BN-gHLZh.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-DQKUL4a5.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
|
|
2
2
|
import { A as internal_processStyles, e as _objectWithoutPropertiesLoose, x as styled$1, _ as _extends, j as capitalize, b as createTheme, o as isPlainObject, i as internal_serializeStyles, v as styleFunctionSx, B as resolveProps, D as formatMuiErrorMessage, E as clamp, P as PropTypes, F as handleBreakpoints, H as resolveBreakpointValues, I as createUnarySpacing, n as deepmerge, J as mergeBreakpointsInOrder, g as generateUtilityClass, K as getValue, d as defaultTheme$1, T as THEME_ID, k as interopRequireDefaultExports, l as getDefaultExportFromCjs, L as commonjsGlobal, u as useDefaultProps, f as alpha_1, y as lighten_1, z as darken_1 } from "./identifier-0SZUhw_A.esm.js";
|
|
3
|
-
import { y as default_1$a, B as Button$1, M as Modal, S as SearchBar, E as Typography$1, _ as _inheritsLoose, V as forceReflow, i as Transition, W as classNamesShape, h as ButtonBase, o as chainPropTypes, u as useTheme$4, X as useSlotProps, P as Paper, Y as Fade, s as Modal$1, Z as Backdrop, $ as Portal, U as refType, p as HTMLElementType, a0 as Grow, a1 as FocusTrap, z as List, v as ListItem, a2 as TransitionGroup, a3 as isHostComponent, k as elementTypeAcceptingRef, N as Menu$1, m as getReactElementRef, I as resolveComponentProps, G as o, q as useRtl, O as MenuItem$1, a4 as MenuList, a5 as Divider$1, T as TextField$2, e as Tooltip$1, F as default_1$c, x as default_1$d, c as ConfirmPopUp, D as DynamicInput, d as Toast, n as elementAcceptingRef, a6 as exactProp, f as Box$1, b as Avatar } from "./appbar-
|
|
3
|
+
import { y as default_1$a, B as Button$1, M as Modal, S as SearchBar, E as Typography$1, _ as _inheritsLoose, V as forceReflow, i as Transition, W as classNamesShape, h as ButtonBase, o as chainPropTypes, u as useTheme$4, X as useSlotProps, P as Paper, Y as Fade, s as Modal$1, Z as Backdrop, $ as Portal, U as refType, p as HTMLElementType, a0 as Grow, a1 as FocusTrap, z as List, v as ListItem, a2 as TransitionGroup, a3 as isHostComponent, k as elementTypeAcceptingRef, N as Menu$1, m as getReactElementRef, I as resolveComponentProps, G as o, q as useRtl, O as MenuItem$1, a4 as MenuList, a5 as Divider$1, T as TextField$2, e as Tooltip$1, F as default_1$c, x as default_1$d, c as ConfirmPopUp, D as DynamicInput, d as Toast, n as elementAcceptingRef, a6 as exactProp, f as Box$1, b as Avatar } from "./appbar-JugRLTTB.esm.js";
|
|
4
4
|
import { d as useEnhancedEffect, r as requireCreateSvgIcon, T as Typography, i as default_1$b, t as useId, l as ownerDocument, e as useForkRef, k as useEventCallback, q as useControlled, v as unsupportedProp, o as ownerWindow, h as debounce$1, p as isMuiElement, u as useAuth } from "./useAuth-BVQ2r4xx.esm.js";
|
|
5
5
|
import { AccordionSummary, AccordionDetails, styled as styled$2, Accordion as Accordion$1, InputAdornment as InputAdornment$1, TextField as TextField$1, Box, CircularProgress, FormHelperText as FormHelperText$1, Select as Select$2, useTheme as useTheme$3, useMediaQuery as useMediaQuery$1, DialogTitle, IconButton as IconButton$1, Tabs as Tabs$1, Tab as Tab$1, MenuItem, DialogActions as DialogActions$1, Radio as Radio$1, RadioGroup, FormControlLabel, Tooltip, Divider, OutlinedInput as OutlinedInput$1, ListItemIcon, ListItemText, Grid, DialogContent as DialogContent$1, Stack as Stack$1, Autocomplete, Menu as Menu$3, Alert as Alert$1, FormControl as FormControl$1, Chip as Chip$2, Dialog as Dialog$1, Grow as Grow$1, Breadcrumbs, List as List$1, ListItem as ListItem$1, ListItemAvatar, Switch as Switch$1 } from "@mui/material";
|
|
6
6
|
import { useDrag, useDrop } from "react-dnd";
|
|
@@ -19,7 +19,7 @@ import { aX as formatText, A as fetchApi, p as checkUniqueFields, aa as getError
|
|
|
19
19
|
import _, { sortBy, debounce as debounce$2, flatMap } from "lodash";
|
|
20
20
|
import { a as auth, b as getApiConfigSafe } from "./api-config-GOys-syK.esm.js";
|
|
21
21
|
import { Add as Add$1, Close, Upload, KeyboardArrowUp, KeyboardArrowDown as KeyboardArrowDown$1, Cancel, Share, Save as Save$1 } from "@mui/icons-material";
|
|
22
|
-
import { a as useApi, C as Checkbox, f as usePages, b as useDeepMemo, u as useAccountingSetting, d as useLocationFilter, g as usePermissions } from "./checkbox-
|
|
22
|
+
import { a as useApi, C as Checkbox, f as usePages, b as useDeepMemo, u as useAccountingSetting, d as useLocationFilter, g as usePermissions } from "./checkbox-aq3lcSNh.esm.js";
|
|
23
23
|
import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
|
|
24
24
|
import { QueryBuilder } from "react-querybuilder";
|
|
25
25
|
import { QueryBuilderMaterial } from "@react-querybuilder/material";
|
|
@@ -28,11 +28,11 @@ import { T as Trash, C as CheckBoxIcon, R as RecgtangleIcon, E as Edit } from ".
|
|
|
28
28
|
import { bp as getV1CompanyId, bB as postV1PaymentTerms, bC as postV1JournalTypes, bD as postV1SourceTypes, bE as postV1PartiesIndustry, bF as postV1CategoryItems, bG as postV1Brand, bH as postV1InventoryFixedAssetItems, p as postV1Parties, bI as postV1WarehouseLocation, bJ as getV1FilterFilterTable, bK as deleteV1FilterId, bL as putV1FilterId, A as getV1FilterResource, bM as postV1Filter } from "./api-DhR7H-jj.esm.js";
|
|
29
29
|
import { a as ArrowDown, F as FilledCircle, B as BlankCircle, M as MoreIcon, e as Close$1, c as ArrowUpDown, i as FolderSave, b as ArrowDownTwo, q as Filter$1, h as FilterRemove, g as Export, D as DocumentDownload, j as Import } from "./radio-button-DSUBR45C.esm.js";
|
|
30
30
|
import { enqueueSnackbar } from "notistack";
|
|
31
|
-
import { P as PathnameHrms, a as PathnameUsers, b1 as routeToResourceMap } from "./route-page-map-
|
|
31
|
+
import { P as PathnameHrms, a as PathnameUsers, b1 as routeToResourceMap } from "./route-page-map-BRDtQTgL.esm.js";
|
|
32
32
|
import { useNavigate, useLocation, Link, Navigate } from "react-router-dom";
|
|
33
33
|
import { u as useAppDispatch, a as useAppSelector } from "./hooks-Cj9Yhy-E.esm.js";
|
|
34
34
|
import { useDropzone } from "react-dropzone";
|
|
35
|
-
import { i as initialFilter, d as defaultPageState } from "./page-context-
|
|
35
|
+
import { i as initialFilter, d as defaultPageState } from "./page-context-Da49_1zP.esm.js";
|
|
36
36
|
import { S as Save, b as Search$1 } from "./tick-BKOomNx0.esm.js";
|
|
37
37
|
import { useDispatch, useSelector } from "react-redux";
|
|
38
38
|
import { b as setSharedPage, w as getAllUserAndDepartmentDropdown, p as pinToDashboardList, z as sharePage } from "./reducer-BTCTEHl_.esm.js";
|
|
@@ -40,7 +40,7 @@ import ReactPhoneInput from "react-phone-input-2";
|
|
|
40
40
|
import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
|
|
41
41
|
import { u as useTheme$1, a as useTheme$2, G as GlobalStyles } from "./CssBaseline-DD305XvW.esm.js";
|
|
42
42
|
import { D as Document } from "./document-rki7DMqA.esm.js";
|
|
43
|
-
import { P as PathnameDocument } from "./modules-
|
|
43
|
+
import { P as PathnameDocument } from "./modules-DmtCo0T_.esm.js";
|
|
44
44
|
import { f as PathnameRental, b as PathnameCrm, e as PathnamePurchase, d as PathnameManufacturing, c as PathnameInventory, a as PathnameAccounting } from "./pathname.rental-Dvo5a732.esm.js";
|
|
45
45
|
import parsePhoneNumberFromString from "libphonenumber-js";
|
|
46
46
|
import { c as createParties } from "./actionCreator-aSdoEAnQ.esm.js";
|
|
@@ -19419,13 +19419,10 @@ const addressPayload = {
|
|
|
19419
19419
|
street_1: null,
|
|
19420
19420
|
street_2: null,
|
|
19421
19421
|
street_3: null,
|
|
19422
|
-
street_name: null,
|
|
19423
19422
|
building_no: null,
|
|
19424
19423
|
additional_no: null,
|
|
19425
|
-
national_address: null,
|
|
19426
19424
|
zip_code: null,
|
|
19427
19425
|
city: null,
|
|
19428
|
-
district_name: null,
|
|
19429
19426
|
state: null,
|
|
19430
19427
|
country: null,
|
|
19431
19428
|
email: null,
|
|
@@ -19436,6 +19433,12 @@ const addressPayload = {
|
|
|
19436
19433
|
default_billing_address: 0,
|
|
19437
19434
|
country_code: null
|
|
19438
19435
|
};
|
|
19436
|
+
const ksaAddressPayload = {
|
|
19437
|
+
...addressPayload,
|
|
19438
|
+
street_name: null,
|
|
19439
|
+
national_address: null,
|
|
19440
|
+
district_name: null
|
|
19441
|
+
};
|
|
19439
19442
|
const contactPayload = {
|
|
19440
19443
|
parties_id: null,
|
|
19441
19444
|
name: null,
|
|
@@ -19562,16 +19565,6 @@ const addressColumns = (isKSA) => [
|
|
|
19562
19565
|
field_name: "street_3"
|
|
19563
19566
|
}
|
|
19564
19567
|
},
|
|
19565
|
-
{
|
|
19566
|
-
header: "common.party.table.streetName_header",
|
|
19567
|
-
accessorKey: "street_name",
|
|
19568
|
-
visible: true,
|
|
19569
|
-
type: "string",
|
|
19570
|
-
editProperties: {
|
|
19571
|
-
placeholder: "Enter Street Name",
|
|
19572
|
-
field_name: "street_name"
|
|
19573
|
-
}
|
|
19574
|
-
},
|
|
19575
19568
|
...isKSA ? [
|
|
19576
19569
|
{
|
|
19577
19570
|
header: "common.party.table.buildingNo_header",
|
|
@@ -19594,18 +19587,38 @@ const addressColumns = (isKSA) => [
|
|
|
19594
19587
|
field_name: "additional_no",
|
|
19595
19588
|
validations: []
|
|
19596
19589
|
}
|
|
19590
|
+
},
|
|
19591
|
+
{
|
|
19592
|
+
header: "common.party.table.streetName_header",
|
|
19593
|
+
accessorKey: "street_name",
|
|
19594
|
+
visible: true,
|
|
19595
|
+
type: "string",
|
|
19596
|
+
editProperties: {
|
|
19597
|
+
placeholder: "Enter Street Name",
|
|
19598
|
+
field_name: "street_name"
|
|
19599
|
+
}
|
|
19600
|
+
},
|
|
19601
|
+
{
|
|
19602
|
+
header: "common.party.table.nationalAddress_header",
|
|
19603
|
+
accessorKey: "national_address",
|
|
19604
|
+
visible: true,
|
|
19605
|
+
type: "string",
|
|
19606
|
+
editProperties: {
|
|
19607
|
+
placeholder: "Enter National Address",
|
|
19608
|
+
field_name: "national_address"
|
|
19609
|
+
}
|
|
19610
|
+
},
|
|
19611
|
+
{
|
|
19612
|
+
header: "common.party.table.districtName_header",
|
|
19613
|
+
accessorKey: "district_name",
|
|
19614
|
+
visible: true,
|
|
19615
|
+
type: "string",
|
|
19616
|
+
editProperties: {
|
|
19617
|
+
placeholder: "Enter District Name",
|
|
19618
|
+
field_name: "district_name"
|
|
19619
|
+
}
|
|
19597
19620
|
}
|
|
19598
19621
|
] : [],
|
|
19599
|
-
{
|
|
19600
|
-
header: "common.party.table.nationalAddress_header",
|
|
19601
|
-
accessorKey: "national_address",
|
|
19602
|
-
visible: true,
|
|
19603
|
-
type: "string",
|
|
19604
|
-
editProperties: {
|
|
19605
|
-
placeholder: "Enter National Address",
|
|
19606
|
-
field_name: "national_address"
|
|
19607
|
-
}
|
|
19608
|
-
},
|
|
19609
19622
|
{
|
|
19610
19623
|
header: "common.party.table.zipCode_header",
|
|
19611
19624
|
accessorKey: "zip_code",
|
|
@@ -19673,16 +19686,6 @@ const addressColumns = (isKSA) => [
|
|
|
19673
19686
|
validations: []
|
|
19674
19687
|
}
|
|
19675
19688
|
},
|
|
19676
|
-
{
|
|
19677
|
-
header: "common.party.table.districtName_header",
|
|
19678
|
-
accessorKey: "district_name",
|
|
19679
|
-
visible: true,
|
|
19680
|
-
type: "string",
|
|
19681
|
-
editProperties: {
|
|
19682
|
-
placeholder: "Enter District Name",
|
|
19683
|
-
field_name: "district_name"
|
|
19684
|
-
}
|
|
19685
|
-
},
|
|
19686
19689
|
{
|
|
19687
19690
|
header: "common.party.table.summary_header",
|
|
19688
19691
|
accessorKey: "summary",
|
|
@@ -27358,6 +27361,7 @@ const UploadMedia = memo((props) => {
|
|
|
27358
27361
|
name,
|
|
27359
27362
|
value,
|
|
27360
27363
|
multiple,
|
|
27364
|
+
renderPreview,
|
|
27361
27365
|
...rest
|
|
27362
27366
|
} = props;
|
|
27363
27367
|
const VisuallyHiddenInput = styled$2("input")({
|
|
@@ -27494,25 +27498,26 @@ const UploadMedia = memo((props) => {
|
|
|
27494
27498
|
noWrap: true,
|
|
27495
27499
|
children: getFileName2(file)
|
|
27496
27500
|
}
|
|
27497
|
-
)
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", gap: 1, alignItems: "center", children: [
|
|
27501
|
-
type === "file" && /* @__PURE__ */ jsxRuntimeExports.jsx(Document, { fontSize: "small" }),
|
|
27502
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27503
|
-
Typography,
|
|
27504
|
-
{
|
|
27505
|
-
type: "s5",
|
|
27506
|
-
weight: "medium",
|
|
27507
|
-
color: error ? "theme.error.600" : "theme.secondary.800",
|
|
27508
|
-
"data-position": dataPosition,
|
|
27509
|
-
"data-name": dataName,
|
|
27510
|
-
noWrap: true,
|
|
27511
|
-
children: getFileName2(files)
|
|
27512
|
-
}
|
|
27513
|
-
)
|
|
27514
|
-
] });
|
|
27501
|
+
),
|
|
27502
|
+
renderPreview == null ? void 0 : renderPreview(file)
|
|
27503
|
+
] }, file instanceof File ? file.name : file));
|
|
27515
27504
|
}
|
|
27505
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", gap: 1, mb: 1, alignItems: "center", children: [
|
|
27506
|
+
type === "file" && /* @__PURE__ */ jsxRuntimeExports.jsx(Document, { fontSize: "small" }),
|
|
27507
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27508
|
+
Typography,
|
|
27509
|
+
{
|
|
27510
|
+
type: "s5",
|
|
27511
|
+
weight: "medium",
|
|
27512
|
+
color: error ? "theme.error.600" : "theme.secondary.800",
|
|
27513
|
+
"data-position": dataPosition,
|
|
27514
|
+
"data-name": dataName,
|
|
27515
|
+
noWrap: true,
|
|
27516
|
+
children: getFileName2(files)
|
|
27517
|
+
}
|
|
27518
|
+
),
|
|
27519
|
+
renderPreview == null ? void 0 : renderPreview(files)
|
|
27520
|
+
] });
|
|
27516
27521
|
}
|
|
27517
27522
|
};
|
|
27518
27523
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -29100,7 +29105,7 @@ function CustomerVendorModal({
|
|
|
29100
29105
|
try {
|
|
29101
29106
|
const { values, row } = eData;
|
|
29102
29107
|
const editRow = row.index >= 0;
|
|
29103
|
-
const payload = isAddress ? addressPayload : contactPayload;
|
|
29108
|
+
const payload = isAddress ? isKSA ? ksaAddressPayload : addressPayload : contactPayload;
|
|
29104
29109
|
const processedValues = {};
|
|
29105
29110
|
for (const key in payload) {
|
|
29106
29111
|
if (_.has(values, key)) {
|
|
@@ -29367,12 +29372,12 @@ ${val}`;
|
|
|
29367
29372
|
useEffect(() => {
|
|
29368
29373
|
var _a2;
|
|
29369
29374
|
const firstRow = addressRows[0];
|
|
29370
|
-
const hasAddressDetails = (firstRow == null ? void 0 : firstRow.
|
|
29375
|
+
const hasAddressDetails = (firstRow == null ? void 0 : firstRow.street_1) || (firstRow == null ? void 0 : firstRow.city);
|
|
29371
29376
|
if (responsiblePerson && mainContactNo) {
|
|
29372
29377
|
const parsedCountryCode = mainContactNo ? `+${((_a2 = parsePhoneNumberFromString(`+${mainContactNo}`)) == null ? void 0 : _a2.countryCallingCode) || ""}` : "";
|
|
29373
29378
|
if (!firstRow) {
|
|
29374
29379
|
setAddressRows([{
|
|
29375
|
-
...addressPayload,
|
|
29380
|
+
...isKSA ? ksaAddressPayload : addressPayload,
|
|
29376
29381
|
contact_name: responsiblePerson,
|
|
29377
29382
|
phone: mainContactNo,
|
|
29378
29383
|
country_code: parsedCountryCode
|
|
@@ -30726,7 +30731,8 @@ const DynamicMedia = React__default.memo((props) => {
|
|
|
30726
30731
|
onChange: field == null ? void 0 : field.onChange,
|
|
30727
30732
|
name: props.name,
|
|
30728
30733
|
value: (field == null ? void 0 : field.value) || (props == null ? void 0 : props.value),
|
|
30729
|
-
multiple: Boolean(props == null ? void 0 : props.is_multiple)
|
|
30734
|
+
multiple: Boolean(props == null ? void 0 : props.is_multiple),
|
|
30735
|
+
renderPreview: props == null ? void 0 : props.renderPreview
|
|
30730
30736
|
}
|
|
30731
30737
|
),
|
|
30732
30738
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { color: "theme.error.600", type: "s5", children: error.message })
|
|
@@ -41822,4 +41828,4 @@ export {
|
|
|
41822
41828
|
DynamicTagsInput as y,
|
|
41823
41829
|
DynamicTime as z
|
|
41824
41830
|
};
|
|
41825
|
-
//# sourceMappingURL=android-12-switch-
|
|
41831
|
+
//# sourceMappingURL=android-12-switch-CRhzpgwy.esm.js.map
|