@erpsquad/common 1.10.64 → 1.10.66
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-CQqq1bod.js → android-12-switch-CPchopCJ.js} +75 -33
- package/dist/chunks/android-12-switch-CPchopCJ.js.map +1 -0
- package/dist/chunks/{android-12-switch-DMpKRS49.esm.js → android-12-switch-CRhzpgwy.esm.js} +75 -33
- package/dist/chunks/android-12-switch-CRhzpgwy.esm.js.map +1 -0
- package/dist/chunks/{appbar-GvhMl2LR.js → appbar-CLVklo7i.js} +8 -8
- package/dist/chunks/{appbar-GvhMl2LR.js.map → appbar-CLVklo7i.js.map} +1 -1
- package/dist/chunks/{appbar-BPTUcuZH.esm.js → appbar-JugRLTTB.esm.js} +8 -8
- package/dist/chunks/{appbar-BPTUcuZH.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-C3gd1olF.js → default-data-BV11jE2f.js} +6 -6
- package/dist/chunks/{default-data-C3gd1olF.js.map → default-data-BV11jE2f.js.map} +1 -1
- package/dist/chunks/{default-data-c7qJW0S-.esm.js → default-data-CttLHjij.esm.js} +6 -6
- package/dist/chunks/{default-data-c7qJW0S-.esm.js.map → default-data-CttLHjij.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-BvWfY0hb.js → fullScreen-DrLlR1HI.js} +2 -2
- package/dist/chunks/{fullScreen-BvWfY0hb.js.map → fullScreen-DrLlR1HI.js.map} +1 -1
- package/dist/chunks/{fullScreen-CEK_HZnP.esm.js → fullScreen-TJdVNF4N.esm.js} +2 -2
- package/dist/chunks/{fullScreen-CEK_HZnP.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-C3G058lH.js → sidebar-BOpyMIRe.js} +2 -2
- package/dist/chunks/{sidebar-C3G058lH.js.map → sidebar-BOpyMIRe.js.map} +1 -1
- package/dist/chunks/{sidebar-PQ4JubXM.esm.js → sidebar-Cc9-z3ES.esm.js} +2 -2
- package/dist/chunks/{sidebar-PQ4JubXM.esm.js.map → sidebar-Cc9-z3ES.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-fIj--OhC.js → sidebarScreen-C6RJT1PK.js} +3 -3
- package/dist/chunks/{sidebarScreen-fIj--OhC.js.map → sidebarScreen-C6RJT1PK.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-DC7R30eg.esm.js → sidebarScreen-kbpZZe_u.esm.js} +3 -3
- package/dist/chunks/{sidebarScreen-DC7R30eg.esm.js.map → sidebarScreen-kbpZZe_u.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-BlJaV_Jd.esm.js → uom-field-wrapper-CvW-ILPC.esm.js} +471 -192
- package/dist/chunks/uom-field-wrapper-CvW-ILPC.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-BMejbao3.js → uom-field-wrapper-QpAULeef.js} +419 -140
- 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 +25 -1
- 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 +25 -1
- package/dist/src/components/upload-media/upload-media.d.ts +1 -0
- package/dist/style.css +15 -2
- 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-CQqq1bod.js.map +0 -1
- package/dist/chunks/android-12-switch-DMpKRS49.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-BMejbao3.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-BlJaV_Jd.esm.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";
|
|
@@ -19418,21 +19418,27 @@ const addressPayload = {
|
|
|
19418
19418
|
contact_name: null,
|
|
19419
19419
|
street_1: null,
|
|
19420
19420
|
street_2: null,
|
|
19421
|
-
|
|
19421
|
+
street_3: null,
|
|
19422
|
+
building_no: null,
|
|
19423
|
+
additional_no: null,
|
|
19422
19424
|
zip_code: null,
|
|
19425
|
+
city: null,
|
|
19423
19426
|
state: null,
|
|
19424
19427
|
country: null,
|
|
19425
19428
|
email: null,
|
|
19426
19429
|
mobile: null,
|
|
19427
19430
|
phone: null,
|
|
19428
|
-
street_3: null,
|
|
19429
|
-
building_no: null,
|
|
19430
|
-
additional_no: null,
|
|
19431
19431
|
summary: null,
|
|
19432
19432
|
default_shipping_address: 0,
|
|
19433
19433
|
default_billing_address: 0,
|
|
19434
19434
|
country_code: null
|
|
19435
19435
|
};
|
|
19436
|
+
const ksaAddressPayload = {
|
|
19437
|
+
...addressPayload,
|
|
19438
|
+
street_name: null,
|
|
19439
|
+
national_address: null,
|
|
19440
|
+
district_name: null
|
|
19441
|
+
};
|
|
19436
19442
|
const contactPayload = {
|
|
19437
19443
|
parties_id: null,
|
|
19438
19444
|
name: null,
|
|
@@ -19581,6 +19587,36 @@ const addressColumns = (isKSA) => [
|
|
|
19581
19587
|
field_name: "additional_no",
|
|
19582
19588
|
validations: []
|
|
19583
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
|
+
}
|
|
19584
19620
|
}
|
|
19585
19621
|
] : [],
|
|
19586
19622
|
{
|
|
@@ -27325,6 +27361,7 @@ const UploadMedia = memo((props) => {
|
|
|
27325
27361
|
name,
|
|
27326
27362
|
value,
|
|
27327
27363
|
multiple,
|
|
27364
|
+
renderPreview,
|
|
27328
27365
|
...rest
|
|
27329
27366
|
} = props;
|
|
27330
27367
|
const VisuallyHiddenInput = styled$2("input")({
|
|
@@ -27461,25 +27498,26 @@ const UploadMedia = memo((props) => {
|
|
|
27461
27498
|
noWrap: true,
|
|
27462
27499
|
children: getFileName2(file)
|
|
27463
27500
|
}
|
|
27464
|
-
)
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", gap: 1, alignItems: "center", children: [
|
|
27468
|
-
type === "file" && /* @__PURE__ */ jsxRuntimeExports.jsx(Document, { fontSize: "small" }),
|
|
27469
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27470
|
-
Typography,
|
|
27471
|
-
{
|
|
27472
|
-
type: "s5",
|
|
27473
|
-
weight: "medium",
|
|
27474
|
-
color: error ? "theme.error.600" : "theme.secondary.800",
|
|
27475
|
-
"data-position": dataPosition,
|
|
27476
|
-
"data-name": dataName,
|
|
27477
|
-
noWrap: true,
|
|
27478
|
-
children: getFileName2(files)
|
|
27479
|
-
}
|
|
27480
|
-
)
|
|
27481
|
-
] });
|
|
27501
|
+
),
|
|
27502
|
+
renderPreview == null ? void 0 : renderPreview(file)
|
|
27503
|
+
] }, file instanceof File ? file.name : file));
|
|
27482
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
|
+
] });
|
|
27483
27521
|
}
|
|
27484
27522
|
};
|
|
27485
27523
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -29067,7 +29105,7 @@ function CustomerVendorModal({
|
|
|
29067
29105
|
try {
|
|
29068
29106
|
const { values, row } = eData;
|
|
29069
29107
|
const editRow = row.index >= 0;
|
|
29070
|
-
const payload = isAddress ? addressPayload : contactPayload;
|
|
29108
|
+
const payload = isAddress ? isKSA ? ksaAddressPayload : addressPayload : contactPayload;
|
|
29071
29109
|
const processedValues = {};
|
|
29072
29110
|
for (const key in payload) {
|
|
29073
29111
|
if (_.has(values, key)) {
|
|
@@ -29171,10 +29209,13 @@ function CustomerVendorModal({
|
|
|
29171
29209
|
"street_1",
|
|
29172
29210
|
"street_2",
|
|
29173
29211
|
"street_3",
|
|
29212
|
+
"street_name",
|
|
29174
29213
|
"building_no",
|
|
29175
29214
|
"additional_no",
|
|
29215
|
+
"national_address",
|
|
29176
29216
|
"zip_code",
|
|
29177
29217
|
"city",
|
|
29218
|
+
"district_name",
|
|
29178
29219
|
"state",
|
|
29179
29220
|
"country"
|
|
29180
29221
|
];
|
|
@@ -29195,7 +29236,7 @@ function CustomerVendorModal({
|
|
|
29195
29236
|
if (!acc) return val;
|
|
29196
29237
|
val = (val == null ? void 0 : val.name) || val;
|
|
29197
29238
|
acc = (acc == null ? void 0 : acc.name) || acc;
|
|
29198
|
-
return [2, 3, 4, 5].includes(idx) ? `${acc} ${val}` : `${acc},
|
|
29239
|
+
return [2, 3, 4, 5, 6, 7].includes(idx) ? `${acc} ${val}` : `${acc},
|
|
29199
29240
|
${val}`;
|
|
29200
29241
|
}, "");
|
|
29201
29242
|
r._valuesCache.summary = summary;
|
|
@@ -29331,12 +29372,12 @@ ${val}`;
|
|
|
29331
29372
|
useEffect(() => {
|
|
29332
29373
|
var _a2;
|
|
29333
29374
|
const firstRow = addressRows[0];
|
|
29334
|
-
const hasAddressDetails = (firstRow == null ? void 0 : firstRow.
|
|
29375
|
+
const hasAddressDetails = (firstRow == null ? void 0 : firstRow.street_1) || (firstRow == null ? void 0 : firstRow.city);
|
|
29335
29376
|
if (responsiblePerson && mainContactNo) {
|
|
29336
29377
|
const parsedCountryCode = mainContactNo ? `+${((_a2 = parsePhoneNumberFromString(`+${mainContactNo}`)) == null ? void 0 : _a2.countryCallingCode) || ""}` : "";
|
|
29337
29378
|
if (!firstRow) {
|
|
29338
29379
|
setAddressRows([{
|
|
29339
|
-
...addressPayload,
|
|
29380
|
+
...isKSA ? ksaAddressPayload : addressPayload,
|
|
29340
29381
|
contact_name: responsiblePerson,
|
|
29341
29382
|
phone: mainContactNo,
|
|
29342
29383
|
country_code: parsedCountryCode
|
|
@@ -30690,7 +30731,8 @@ const DynamicMedia = React__default.memo((props) => {
|
|
|
30690
30731
|
onChange: field == null ? void 0 : field.onChange,
|
|
30691
30732
|
name: props.name,
|
|
30692
30733
|
value: (field == null ? void 0 : field.value) || (props == null ? void 0 : props.value),
|
|
30693
|
-
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
|
|
30694
30736
|
}
|
|
30695
30737
|
),
|
|
30696
30738
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { color: "theme.error.600", type: "s5", children: error.message })
|
|
@@ -41786,4 +41828,4 @@ export {
|
|
|
41786
41828
|
DynamicTagsInput as y,
|
|
41787
41829
|
DynamicTime as z
|
|
41788
41830
|
};
|
|
41789
|
-
//# sourceMappingURL=android-12-switch-
|
|
41831
|
+
//# sourceMappingURL=android-12-switch-CRhzpgwy.esm.js.map
|