ptechcore_ui 1.0.17 → 1.0.18
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/index.cjs +147 -85
- package/dist/index.js +164 -88
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3755,7 +3755,7 @@ var useAlert = () => {
|
|
|
3755
3755
|
};
|
|
3756
3756
|
|
|
3757
3757
|
// src/components/common/CommonSelect.tsx
|
|
3758
|
-
var
|
|
3758
|
+
var import_react63 = require("react");
|
|
3759
3759
|
|
|
3760
3760
|
// src/services/VendorServices.ts
|
|
3761
3761
|
var VENDORS_API_URL = `${API_URL}/accounting/vendors/`;
|
|
@@ -3905,10 +3905,55 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
|
3905
3905
|
var import_react47 = require("react");
|
|
3906
3906
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3907
3907
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3908
|
-
var
|
|
3908
|
+
var import_react_router_dom17 = require("react-router-dom");
|
|
3909
3909
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3910
|
+
var import_react48 = __toESM(require("react"), 1);
|
|
3911
|
+
var import_react_router_dom18 = require("react-router-dom");
|
|
3912
|
+
var import_lucide_react29 = require("lucide-react");
|
|
3913
|
+
var import_clsx5 = require("clsx");
|
|
3914
|
+
var import_tailwind_merge5 = require("tailwind-merge");
|
|
3915
|
+
var import_react49 = require("react");
|
|
3910
3916
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3917
|
+
var import_react50 = require("react");
|
|
3911
3918
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3919
|
+
var import_react51 = require("react");
|
|
3920
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3921
|
+
var import_react52 = require("react");
|
|
3922
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3923
|
+
var import_lucide_react30 = require("lucide-react");
|
|
3924
|
+
var import_react_router_dom19 = require("react-router-dom");
|
|
3925
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3926
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3927
|
+
var import_react53 = require("react");
|
|
3928
|
+
var import_lucide_react31 = require("lucide-react");
|
|
3929
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3930
|
+
var import_lucide_react32 = require("lucide-react");
|
|
3931
|
+
var import_react54 = require("react");
|
|
3932
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3933
|
+
var import_react55 = require("react");
|
|
3934
|
+
var import_react_router_dom20 = require("react-router-dom");
|
|
3935
|
+
var import_lucide_react33 = require("lucide-react");
|
|
3936
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3937
|
+
var import_react56 = require("react");
|
|
3938
|
+
var import_react57 = require("react");
|
|
3939
|
+
var import_lucide_react34 = require("lucide-react");
|
|
3940
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3941
|
+
var import_lucide_react35 = require("lucide-react");
|
|
3942
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3943
|
+
var import_react58 = require("react");
|
|
3944
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
3945
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
3946
|
+
var import_react59 = require("react");
|
|
3947
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
3948
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
3949
|
+
var import_react60 = require("react");
|
|
3950
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3951
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3952
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
3953
|
+
var import_react61 = require("react");
|
|
3954
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
3955
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
3956
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
3912
3957
|
var PrimaryButton2 = ({
|
|
3913
3958
|
loading = false,
|
|
3914
3959
|
children,
|
|
@@ -3991,8 +4036,9 @@ var TextInput2 = (props) => {
|
|
|
3991
4036
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputField2, { ...props, type: "text" });
|
|
3992
4037
|
};
|
|
3993
4038
|
var ThemeContext2 = (0, import_react13.createContext)(void 0);
|
|
3994
|
-
var
|
|
3995
|
-
var
|
|
4039
|
+
var chooseEnv2 = localStorage.getItem("env") ?? "prod";
|
|
4040
|
+
var ADDRESS_IP2 = chooseEnv2 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
|
|
4041
|
+
var ADDRESS_IP_URL2 = chooseEnv2 === "prod" ? `https://${ADDRESS_IP2}/` : `http://${ADDRESS_IP2}/`;
|
|
3996
4042
|
var API_URL2 = `${ADDRESS_IP_URL2}api`;
|
|
3997
4043
|
var API_BASE_URL3 = `${API_URL2}/core/auth/`;
|
|
3998
4044
|
var SessionContext2 = (0, import_react14.createContext)(void 0);
|
|
@@ -4025,18 +4071,34 @@ var USERS_API_URL222 = `${API_URL222}/core/users/`;
|
|
|
4025
4071
|
var ToastContext222 = (0, import_react39.createContext)(void 0);
|
|
4026
4072
|
var APPROVAL_API_URL222 = `${API_URL222}/approvals/cases/`;
|
|
4027
4073
|
var AlertContext222 = (0, import_react46.createContext)(void 0);
|
|
4028
|
-
var
|
|
4029
|
-
var
|
|
4030
|
-
var
|
|
4031
|
-
var
|
|
4032
|
-
var
|
|
4033
|
-
var
|
|
4034
|
-
var
|
|
4035
|
-
var
|
|
4074
|
+
var VENDORS_API_URL222 = `${API_URL222}/accounting/vendors/`;
|
|
4075
|
+
var ThemeContext2222 = (0, import_react49.createContext)(void 0);
|
|
4076
|
+
var ADDRESS_IP2222 = "localhost:8000";
|
|
4077
|
+
var ADDRESS_IP_URL2222 = `http://${ADDRESS_IP2222}/`;
|
|
4078
|
+
var API_URL2222 = `${ADDRESS_IP_URL2222}api`;
|
|
4079
|
+
var API_BASE_URL3222 = `${API_URL2222}/core/auth/`;
|
|
4080
|
+
var SessionContext2222 = (0, import_react50.createContext)(void 0);
|
|
4081
|
+
var API_BASE_URL22222 = `${API_URL2222}/core/auth/`;
|
|
4082
|
+
var USERS_API_URL2222 = `${API_URL2222}/core/users/`;
|
|
4083
|
+
var ToastContext2222 = (0, import_react51.createContext)(void 0);
|
|
4084
|
+
var APPROVAL_API_URL2222 = `${API_URL2222}/approvals/cases/`;
|
|
4085
|
+
var AlertContext2222 = (0, import_react58.createContext)(void 0);
|
|
4086
|
+
var URI = `${API_URL222}/core/departments/`;
|
|
4087
|
+
var URI2 = `${API_URL222}/accounting/profit-or-cost-center/`;
|
|
4088
|
+
var COST_URI = `${API_URL222}/accounting/cost-center/`;
|
|
4089
|
+
var PROFIT_URI = `${API_URL222}/accounting/profit-center/`;
|
|
4090
|
+
var URI3 = `${API_URL22}/core/departments/`;
|
|
4091
|
+
var URI4 = `${API_URL22}/accounting/profit-or-cost-center/`;
|
|
4092
|
+
var COST_URI2 = `${API_URL22}/accounting/cost-center/`;
|
|
4093
|
+
var PROFIT_URI2 = `${API_URL22}/accounting/profit-center/`;
|
|
4094
|
+
var URI5 = `${API_URL2}/core/departments/`;
|
|
4095
|
+
var URI6 = `${API_URL2}/accounting/profit-or-cost-center/`;
|
|
4096
|
+
var COST_URI3 = `${API_URL2}/accounting/cost-center/`;
|
|
4097
|
+
var PROFIT_URI3 = `${API_URL2}/accounting/profit-center/`;
|
|
4036
4098
|
|
|
4037
4099
|
// src/components/common/FormVendor.tsx
|
|
4038
|
-
var
|
|
4039
|
-
var
|
|
4100
|
+
var import_react62 = require("react");
|
|
4101
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
4040
4102
|
var MinimalVendorForm = ({
|
|
4041
4103
|
isOpen,
|
|
4042
4104
|
onClose,
|
|
@@ -4045,13 +4107,13 @@ var MinimalVendorForm = ({
|
|
|
4045
4107
|
refresh = () => {
|
|
4046
4108
|
}
|
|
4047
4109
|
}) => {
|
|
4048
|
-
const [formData, setFormData] = (0,
|
|
4110
|
+
const [formData, setFormData] = (0, import_react62.useState)(object || {
|
|
4049
4111
|
from_module: from ?? null,
|
|
4050
4112
|
legal_name: "",
|
|
4051
4113
|
trading_name: ""
|
|
4052
4114
|
});
|
|
4053
|
-
const [errors, setErrors] = (0,
|
|
4054
|
-
const [loading, setLoading] = (0,
|
|
4115
|
+
const [errors, setErrors] = (0, import_react62.useState)({});
|
|
4116
|
+
const [loading, setLoading] = (0, import_react62.useState)(false);
|
|
4055
4117
|
const { token } = useSession();
|
|
4056
4118
|
const { success, error: showError } = useToast();
|
|
4057
4119
|
const handleInputChange = (e) => {
|
|
@@ -4110,7 +4172,7 @@ var MinimalVendorForm = ({
|
|
|
4110
4172
|
}
|
|
4111
4173
|
};
|
|
4112
4174
|
if (!isOpen) return null;
|
|
4113
|
-
return /* @__PURE__ */ (0,
|
|
4175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
4114
4176
|
Modals_default2,
|
|
4115
4177
|
{
|
|
4116
4178
|
title: "Ajouter un fournisseur",
|
|
@@ -4118,9 +4180,9 @@ var MinimalVendorForm = ({
|
|
|
4118
4180
|
description: ``,
|
|
4119
4181
|
open: isOpen,
|
|
4120
4182
|
onClose,
|
|
4121
|
-
children: /* @__PURE__ */ (0,
|
|
4122
|
-
/* @__PURE__ */ (0,
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4183
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("form", { onSubmit: handleSubmit, className: "p-", children: [
|
|
4184
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
4185
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
4124
4186
|
TextInput2,
|
|
4125
4187
|
{
|
|
4126
4188
|
label: "Raison sociale",
|
|
@@ -4132,7 +4194,7 @@ var MinimalVendorForm = ({
|
|
|
4132
4194
|
onChange: handleInputChange
|
|
4133
4195
|
}
|
|
4134
4196
|
),
|
|
4135
|
-
/* @__PURE__ */ (0,
|
|
4197
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
4136
4198
|
TextInput2,
|
|
4137
4199
|
{
|
|
4138
4200
|
label: "Nom commercial",
|
|
@@ -4143,8 +4205,8 @@ var MinimalVendorForm = ({
|
|
|
4143
4205
|
}
|
|
4144
4206
|
)
|
|
4145
4207
|
] }) }),
|
|
4146
|
-
/* @__PURE__ */ (0,
|
|
4147
|
-
/* @__PURE__ */ (0,
|
|
4208
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-between pt-6 mt-8", children: [
|
|
4209
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
4148
4210
|
"button",
|
|
4149
4211
|
{
|
|
4150
4212
|
type: "button",
|
|
@@ -4153,7 +4215,7 @@ var MinimalVendorForm = ({
|
|
|
4153
4215
|
children: "Annuler"
|
|
4154
4216
|
}
|
|
4155
4217
|
),
|
|
4156
|
-
/* @__PURE__ */ (0,
|
|
4218
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
4157
4219
|
Buttons_default2,
|
|
4158
4220
|
{
|
|
4159
4221
|
type: "button",
|
|
@@ -4169,43 +4231,43 @@ var MinimalVendorForm = ({
|
|
|
4169
4231
|
};
|
|
4170
4232
|
|
|
4171
4233
|
// src/services/DepartmentServices.ts
|
|
4172
|
-
var
|
|
4234
|
+
var URI7 = `${API_URL}/core/departments/`;
|
|
4173
4235
|
var DepartmentServices = {
|
|
4174
|
-
create: (data) => FetchApi.post(`${
|
|
4175
|
-
get: (id) => FetchApi.get(`${
|
|
4176
|
-
list: (params) => FetchApi.get(`${
|
|
4177
|
-
update: (id, data) => FetchApi.put(`${
|
|
4178
|
-
delete: (id) => FetchApi.delete(`${
|
|
4236
|
+
create: (data) => FetchApi.post(`${URI7}`, data),
|
|
4237
|
+
get: (id) => FetchApi.get(`${URI7}${id}/`),
|
|
4238
|
+
list: (params) => FetchApi.get(`${URI7}?${new URLSearchParams(params).toString()}`),
|
|
4239
|
+
update: (id, data) => FetchApi.put(`${URI7}${id}/`, data),
|
|
4240
|
+
delete: (id) => FetchApi.delete(`${URI7}${id}/`)
|
|
4179
4241
|
};
|
|
4180
4242
|
|
|
4181
4243
|
// src/services/ProfitCostsServices.ts
|
|
4182
|
-
var
|
|
4183
|
-
var
|
|
4244
|
+
var URI8 = `${API_URL}/accounting/profit-or-cost-center/`;
|
|
4245
|
+
var COST_URI4 = `${API_URL}/accounting/cost-center/`;
|
|
4184
4246
|
var CostServices = {
|
|
4185
|
-
create: (data) => FetchApi.post(`${
|
|
4186
|
-
get: (id) => FetchApi.get(`${
|
|
4187
|
-
list: (params) => FetchApi.get(`${
|
|
4188
|
-
update: (id, data) => FetchApi.put(`${
|
|
4189
|
-
delete: (id) => FetchApi.delete(`${
|
|
4247
|
+
create: (data) => FetchApi.post(`${COST_URI4}`, data),
|
|
4248
|
+
get: (id) => FetchApi.get(`${COST_URI4}${id}/`),
|
|
4249
|
+
list: (params) => FetchApi.get(`${COST_URI4}?${new URLSearchParams(params).toString()}`),
|
|
4250
|
+
update: (id, data) => FetchApi.put(`${COST_URI4}${id}/`, data),
|
|
4251
|
+
delete: (id) => FetchApi.delete(`${COST_URI4}${id}/`)
|
|
4190
4252
|
};
|
|
4191
|
-
var
|
|
4253
|
+
var PROFIT_URI4 = `${API_URL}/accounting/profit-center/`;
|
|
4192
4254
|
|
|
4193
4255
|
// src/components/common/CommonSelect.tsx
|
|
4194
|
-
var
|
|
4256
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
4195
4257
|
var SelectVendor = ({
|
|
4196
4258
|
value,
|
|
4197
4259
|
onSelect
|
|
4198
4260
|
}) => {
|
|
4199
|
-
const [showModal, setShowModal] = (0,
|
|
4200
|
-
const [selectedVendor, setSelectedVendor] = (0,
|
|
4261
|
+
const [showModal, setShowModal] = (0, import_react63.useState)(false);
|
|
4262
|
+
const [selectedVendor, setSelectedVendor] = (0, import_react63.useState)(null);
|
|
4201
4263
|
const { token, activeBusinessEntity } = useSession();
|
|
4202
|
-
const [vendors, setVendors] = (0,
|
|
4264
|
+
const [vendors, setVendors] = (0, import_react63.useState)(() => {
|
|
4203
4265
|
const cacheKey = `vendors_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4204
4266
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4205
4267
|
return cached ? JSON.parse(cached) : [];
|
|
4206
4268
|
});
|
|
4207
|
-
const [loadingVendors, setLoadingVendors] = (0,
|
|
4208
|
-
(0,
|
|
4269
|
+
const [loadingVendors, setLoadingVendors] = (0, import_react63.useState)(false);
|
|
4270
|
+
(0, import_react63.useEffect)(() => {
|
|
4209
4271
|
const cacheKey = `vendors_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4210
4272
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4211
4273
|
if (!cached) {
|
|
@@ -4243,9 +4305,9 @@ var SelectVendor = ({
|
|
|
4243
4305
|
sessionStorage.removeItem(cacheKey);
|
|
4244
4306
|
loadVendors();
|
|
4245
4307
|
};
|
|
4246
|
-
return /* @__PURE__ */ (0,
|
|
4247
|
-
/* @__PURE__ */ (0,
|
|
4248
|
-
/* @__PURE__ */ (0,
|
|
4308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { children: [
|
|
4309
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex justify-between ", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Ajouter un fournisseur" }) }),
|
|
4310
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4249
4311
|
SearchableSelect,
|
|
4250
4312
|
{
|
|
4251
4313
|
value,
|
|
@@ -4261,8 +4323,8 @@ var SelectVendor = ({
|
|
|
4261
4323
|
},
|
|
4262
4324
|
"fourni" + value
|
|
4263
4325
|
),
|
|
4264
|
-
loadingVendors && /* @__PURE__ */ (0,
|
|
4265
|
-
showModal && /* @__PURE__ */ (0,
|
|
4326
|
+
loadingVendors && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des fournisseurs..." }),
|
|
4327
|
+
showModal && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4266
4328
|
MinimalVendorForm,
|
|
4267
4329
|
{
|
|
4268
4330
|
object: selectedVendor,
|
|
@@ -4279,13 +4341,13 @@ var SelectUser = ({
|
|
|
4279
4341
|
onSelect
|
|
4280
4342
|
}) => {
|
|
4281
4343
|
const { token, activeBusinessEntity } = useSession();
|
|
4282
|
-
const [users, setUsers] = (0,
|
|
4344
|
+
const [users, setUsers] = (0, import_react63.useState)(() => {
|
|
4283
4345
|
const cacheKey = `users_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4284
4346
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4285
4347
|
return cached ? JSON.parse(cached) : [];
|
|
4286
4348
|
});
|
|
4287
|
-
const [loading, setLoading] = (0,
|
|
4288
|
-
(0,
|
|
4349
|
+
const [loading, setLoading] = (0, import_react63.useState)(false);
|
|
4350
|
+
(0, import_react63.useEffect)(() => {
|
|
4289
4351
|
const cacheKey = `users_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4290
4352
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4291
4353
|
if (!cached) {
|
|
@@ -4321,19 +4383,19 @@ var SelectUser = ({
|
|
|
4321
4383
|
return users.map((user) => ({
|
|
4322
4384
|
value: user.id,
|
|
4323
4385
|
label: `${user.first_name} ${user.last_name}`,
|
|
4324
|
-
content: /* @__PURE__ */ (0,
|
|
4325
|
-
/* @__PURE__ */ (0,
|
|
4386
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1", children: [
|
|
4387
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "font-medium text-gray-900", children: [
|
|
4326
4388
|
user.first_name,
|
|
4327
4389
|
" ",
|
|
4328
4390
|
user.last_name
|
|
4329
4391
|
] }),
|
|
4330
|
-
/* @__PURE__ */ (0,
|
|
4392
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "text-sm text-gray-500", children: user.email })
|
|
4331
4393
|
] }) })
|
|
4332
4394
|
}));
|
|
4333
4395
|
};
|
|
4334
|
-
return /* @__PURE__ */ (0,
|
|
4335
|
-
/* @__PURE__ */ (0,
|
|
4336
|
-
/* @__PURE__ */ (0,
|
|
4396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { children: [
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex justify-between ", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un utilisateur" }) }),
|
|
4398
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4337
4399
|
SearchableSelect,
|
|
4338
4400
|
{
|
|
4339
4401
|
value,
|
|
@@ -4346,7 +4408,7 @@ var SelectUser = ({
|
|
|
4346
4408
|
},
|
|
4347
4409
|
"user" + value
|
|
4348
4410
|
),
|
|
4349
|
-
loading && /* @__PURE__ */ (0,
|
|
4411
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des utilisateurs..." })
|
|
4350
4412
|
] });
|
|
4351
4413
|
};
|
|
4352
4414
|
var SelectDepartment = ({
|
|
@@ -4354,13 +4416,13 @@ var SelectDepartment = ({
|
|
|
4354
4416
|
onSelect
|
|
4355
4417
|
}) => {
|
|
4356
4418
|
const { token, activeBusinessEntity } = useSession();
|
|
4357
|
-
const [departments, setDepartments] = (0,
|
|
4419
|
+
const [departments, setDepartments] = (0, import_react63.useState)(() => {
|
|
4358
4420
|
const cacheKey = `departments_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4359
4421
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4360
4422
|
return cached ? JSON.parse(cached) : [];
|
|
4361
4423
|
});
|
|
4362
|
-
const [loading, setLoading] = (0,
|
|
4363
|
-
(0,
|
|
4424
|
+
const [loading, setLoading] = (0, import_react63.useState)(false);
|
|
4425
|
+
(0, import_react63.useEffect)(() => {
|
|
4364
4426
|
const cacheKey = `departments_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4365
4427
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4366
4428
|
if (!cached) {
|
|
@@ -4396,9 +4458,9 @@ var SelectDepartment = ({
|
|
|
4396
4458
|
label: dept.name
|
|
4397
4459
|
}));
|
|
4398
4460
|
};
|
|
4399
|
-
return /* @__PURE__ */ (0,
|
|
4400
|
-
/* @__PURE__ */ (0,
|
|
4401
|
-
/* @__PURE__ */ (0,
|
|
4461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { children: [
|
|
4462
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex justify-between ", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un d\xE9partement" }) }),
|
|
4463
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4402
4464
|
SearchableSelect,
|
|
4403
4465
|
{
|
|
4404
4466
|
value,
|
|
@@ -4411,7 +4473,7 @@ var SelectDepartment = ({
|
|
|
4411
4473
|
},
|
|
4412
4474
|
"dept" + value
|
|
4413
4475
|
),
|
|
4414
|
-
loading && /* @__PURE__ */ (0,
|
|
4476
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des d\xE9partements..." })
|
|
4415
4477
|
] });
|
|
4416
4478
|
};
|
|
4417
4479
|
var SelectCostCenter = ({
|
|
@@ -4419,13 +4481,13 @@ var SelectCostCenter = ({
|
|
|
4419
4481
|
onSelect
|
|
4420
4482
|
}) => {
|
|
4421
4483
|
const { token, activeBusinessEntity } = useSession();
|
|
4422
|
-
const [costCenters, setCostCenters] = (0,
|
|
4484
|
+
const [costCenters, setCostCenters] = (0, import_react63.useState)(() => {
|
|
4423
4485
|
const cacheKey = `cost_centers_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4424
4486
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4425
4487
|
return cached ? JSON.parse(cached) : [];
|
|
4426
4488
|
});
|
|
4427
|
-
const [loading, setLoading] = (0,
|
|
4428
|
-
(0,
|
|
4489
|
+
const [loading, setLoading] = (0, import_react63.useState)(false);
|
|
4490
|
+
(0, import_react63.useEffect)(() => {
|
|
4429
4491
|
const cacheKey = `cost_centers_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4430
4492
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4431
4493
|
if (!cached) {
|
|
@@ -4459,18 +4521,18 @@ var SelectCostCenter = ({
|
|
|
4459
4521
|
return costCenters.map((center) => ({
|
|
4460
4522
|
value: center.id,
|
|
4461
4523
|
label: `${center.code ? `[${center.code}] ` : ""}${center.name}`,
|
|
4462
|
-
content: /* @__PURE__ */ (0,
|
|
4463
|
-
/* @__PURE__ */ (0,
|
|
4464
|
-
center.code && /* @__PURE__ */ (0,
|
|
4524
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1", children: [
|
|
4525
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "font-medium text-gray-900", children: center.name }),
|
|
4526
|
+
center.code && /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "text-sm text-gray-500", children: [
|
|
4465
4527
|
"Code: ",
|
|
4466
4528
|
center.code
|
|
4467
4529
|
] })
|
|
4468
4530
|
] }) })
|
|
4469
4531
|
}));
|
|
4470
4532
|
};
|
|
4471
|
-
return /* @__PURE__ */ (0,
|
|
4472
|
-
/* @__PURE__ */ (0,
|
|
4473
|
-
/* @__PURE__ */ (0,
|
|
4533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { children: [
|
|
4534
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex justify-between ", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un centre de co\xFBt" }) }),
|
|
4535
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4474
4536
|
SearchableSelect,
|
|
4475
4537
|
{
|
|
4476
4538
|
value,
|
|
@@ -4483,12 +4545,12 @@ var SelectCostCenter = ({
|
|
|
4483
4545
|
},
|
|
4484
4546
|
"cost" + value
|
|
4485
4547
|
),
|
|
4486
|
-
loading && /* @__PURE__ */ (0,
|
|
4548
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des centres de co\xFBt..." })
|
|
4487
4549
|
] });
|
|
4488
4550
|
};
|
|
4489
4551
|
|
|
4490
4552
|
// src/components/common/Choices.tsx
|
|
4491
|
-
var
|
|
4553
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
4492
4554
|
var CHOICES = {
|
|
4493
4555
|
INVOICE_TYPES: [
|
|
4494
4556
|
{ value: "sale", label: { fr: "Vente", en: "Sale", default: "Sale" } },
|
|
@@ -4746,7 +4808,7 @@ var InvoiceTypeSelector = ({
|
|
|
4746
4808
|
value: item.value,
|
|
4747
4809
|
label: item.label[language]
|
|
4748
4810
|
}));
|
|
4749
|
-
return /* @__PURE__ */ (0,
|
|
4811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4750
4812
|
SearchableSelect,
|
|
4751
4813
|
{
|
|
4752
4814
|
value,
|
|
@@ -4769,7 +4831,7 @@ var PaymentMethodSelector = ({
|
|
|
4769
4831
|
value: item.value,
|
|
4770
4832
|
label: item.label[language]
|
|
4771
4833
|
}));
|
|
4772
|
-
return /* @__PURE__ */ (0,
|
|
4834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4773
4835
|
SearchableSelect,
|
|
4774
4836
|
{
|
|
4775
4837
|
value,
|
|
@@ -4792,7 +4854,7 @@ var TemplateFNESelector = ({
|
|
|
4792
4854
|
value: item.value,
|
|
4793
4855
|
label: item.label[language]
|
|
4794
4856
|
}));
|
|
4795
|
-
return /* @__PURE__ */ (0,
|
|
4857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4796
4858
|
SearchableSelect,
|
|
4797
4859
|
{
|
|
4798
4860
|
value,
|
|
@@ -4815,7 +4877,7 @@ var ForeignCurrencySelector = ({
|
|
|
4815
4877
|
value: item.value,
|
|
4816
4878
|
label: item.label[language]
|
|
4817
4879
|
}));
|
|
4818
|
-
return /* @__PURE__ */ (0,
|
|
4880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4819
4881
|
SearchableSelect,
|
|
4820
4882
|
{
|
|
4821
4883
|
value,
|
|
@@ -4839,7 +4901,7 @@ var TaxSelector = ({
|
|
|
4839
4901
|
value: item.value,
|
|
4840
4902
|
label: item.label[language]
|
|
4841
4903
|
}));
|
|
4842
|
-
return /* @__PURE__ */ (0,
|
|
4904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4843
4905
|
SearchableSelect,
|
|
4844
4906
|
{
|
|
4845
4907
|
value,
|
|
@@ -4867,7 +4929,7 @@ var LegalFormSelector = ({
|
|
|
4867
4929
|
value: item.value,
|
|
4868
4930
|
label: item.label[language] ?? item.label.default
|
|
4869
4931
|
}));
|
|
4870
|
-
return /* @__PURE__ */ (0,
|
|
4932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4871
4933
|
SearchableSelect,
|
|
4872
4934
|
{
|
|
4873
4935
|
value,
|
|
@@ -4890,7 +4952,7 @@ var CountrySelector = ({
|
|
|
4890
4952
|
value: item.value,
|
|
4891
4953
|
label: item.label[language]
|
|
4892
4954
|
}));
|
|
4893
|
-
return /* @__PURE__ */ (0,
|
|
4955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4894
4956
|
SearchableSelect,
|
|
4895
4957
|
{
|
|
4896
4958
|
value,
|
package/dist/index.js
CHANGED
|
@@ -3696,7 +3696,7 @@ var useAlert = () => {
|
|
|
3696
3696
|
};
|
|
3697
3697
|
|
|
3698
3698
|
// src/components/common/CommonSelect.tsx
|
|
3699
|
-
import { useEffect as
|
|
3699
|
+
import { useEffect as useEffect14, useState as useState20 } from "react";
|
|
3700
3700
|
|
|
3701
3701
|
// src/services/VendorServices.ts
|
|
3702
3702
|
var VENDORS_API_URL = `${API_URL}/accounting/vendors/`;
|
|
@@ -3775,7 +3775,7 @@ import { Fragment as Fragment62, jsx as jsx142, jsxs as jsxs102 } from "react/js
|
|
|
3775
3775
|
import { createContext as createContext42, useContext as useContext42, useState as useState112, useCallback as useCallback22 } from "react";
|
|
3776
3776
|
import { jsx as jsx152, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
3777
3777
|
import { jsx as jsx162, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
3778
|
-
import { useEffect as
|
|
3778
|
+
import { useEffect as useEffect13, useState as useState18 } from "react";
|
|
3779
3779
|
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
3780
3780
|
import { jsx as jsx222, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
3781
3781
|
import { Link as Link32 } from "react-router-dom";
|
|
@@ -3830,7 +3830,7 @@ import { Fragment as Fragment622, jsx as jsx1422, jsxs as jsxs1022 } from "react
|
|
|
3830
3830
|
import { createContext as createContext422, useContext as useContext422, useState as useState1122, useCallback as useCallback222 } from "react";
|
|
3831
3831
|
import { jsx as jsx1522, jsxs as jsxs1122 } from "react/jsx-runtime";
|
|
3832
3832
|
import { jsx as jsx1622, jsxs as jsxs1222 } from "react/jsx-runtime";
|
|
3833
|
-
import { useEffect as
|
|
3833
|
+
import { useEffect as useEffect12, useState as useState16 } from "react";
|
|
3834
3834
|
import { jsx as jsx1722 } from "react/jsx-runtime";
|
|
3835
3835
|
import { jsx as jsx2222, jsxs as jsxs1322 } from "react/jsx-runtime";
|
|
3836
3836
|
import { Link as Link322 } from "react-router-dom";
|
|
@@ -3878,13 +3878,68 @@ import { ArrowDownAZ as ArrowDownAZ222, ArrowDownUp as ArrowDownUp222, ArrowUpAZ
|
|
|
3878
3878
|
import { Fragment as Fragment4222, jsx as jsx12222, jsxs as jsxs8222 } from "react/jsx-runtime";
|
|
3879
3879
|
import { useState as useState10222, useEffect as useEffect8222 } from "react";
|
|
3880
3880
|
import { useState as useState9222, useRef as useRef222, useEffect as useEffect7222 } from "react";
|
|
3881
|
-
import { Search as Search3222, ChevronDown as ChevronDown222, X as X4222 } from "lucide-react";
|
|
3881
|
+
import { Search as Search3222, ChevronDown as ChevronDown222, X as X4222, RefreshCw as RefreshCw222, Plus as Plus322 } from "lucide-react";
|
|
3882
3882
|
import { Fragment as Fragment5222, jsx as jsx13222, jsxs as jsxs9222 } from "react/jsx-runtime";
|
|
3883
|
-
import { X as X5222, Plus as
|
|
3883
|
+
import { X as X5222, Plus as Plus2222, Trash2 as Trash2222, Users as Users222, Loader as Loader2222, RotateCcw as RotateCcw222, Ban as Ban222, Eye as Eye2222, FileText as FileText2222, History as History222 } from "lucide-react";
|
|
3884
3884
|
import { Fragment as Fragment6222, jsx as jsx14222, jsxs as jsxs10222 } from "react/jsx-runtime";
|
|
3885
3885
|
import { createContext as createContext4222, useContext as useContext4222, useState as useState11222, useCallback as useCallback2222 } from "react";
|
|
3886
3886
|
import { jsx as jsx15222, jsxs as jsxs11222 } from "react/jsx-runtime";
|
|
3887
3887
|
import { jsx as jsx16222, jsxs as jsxs12222 } from "react/jsx-runtime";
|
|
3888
|
+
import { useEffect as useEffect11, useState as useState14 } from "react";
|
|
3889
|
+
import { jsx as jsx17222 } from "react/jsx-runtime";
|
|
3890
|
+
import { jsx as jsx22222, jsxs as jsxs13222 } from "react/jsx-runtime";
|
|
3891
|
+
import { Link as Link3222 } from "react-router-dom";
|
|
3892
|
+
import { jsx as jsx32222, jsxs as jsxs22222 } from "react/jsx-runtime";
|
|
3893
|
+
import React42222, { useState as useState52222, useEffect as useEffect42222 } from "react";
|
|
3894
|
+
import { useLocation as useLocation3222, useNavigate as useNavigate3222 } from "react-router-dom";
|
|
3895
|
+
import {
|
|
3896
|
+
Settings as Settings3222,
|
|
3897
|
+
ChevronLeft as ChevronLeft3222,
|
|
3898
|
+
ChevronRight as ChevronRight2222,
|
|
3899
|
+
Search as Search4222,
|
|
3900
|
+
Bell as Bell2222,
|
|
3901
|
+
User as User2222,
|
|
3902
|
+
LogOut as LogOut2222,
|
|
3903
|
+
Menu as Menu3222,
|
|
3904
|
+
X as X22222,
|
|
3905
|
+
Palette as Palette2222,
|
|
3906
|
+
DollarSign as DollarSign2222,
|
|
3907
|
+
HelpCircle as HelpCircle2222,
|
|
3908
|
+
Building2 as Building22222
|
|
3909
|
+
} from "lucide-react";
|
|
3910
|
+
import { clsx as clsx2222 } from "clsx";
|
|
3911
|
+
import { twMerge as twMerge2222 } from "tailwind-merge";
|
|
3912
|
+
import { createContext as createContext5222, useContext as useContext5222, useState as useState12222, useEffect as useEffect9222 } from "react";
|
|
3913
|
+
import { jsx as jsx42222 } from "react/jsx-runtime";
|
|
3914
|
+
import { createContext as createContext22222, useContext as useContext22222, useEffect as useEffect22222, useState as useState22222 } from "react";
|
|
3915
|
+
import { jsx as jsx52222 } from "react/jsx-runtime";
|
|
3916
|
+
import { createContext as createContext32222, useContext as useContext32222, useState as useState32222, useCallback as useCallback3222 } from "react";
|
|
3917
|
+
import { jsx as jsx62222 } from "react/jsx-runtime";
|
|
3918
|
+
import { useState as useState42222, useEffect as useEffect32222 } from "react";
|
|
3919
|
+
import { jsx as jsx72222, jsxs as jsxs32222 } from "react/jsx-runtime";
|
|
3920
|
+
import { X as X6222, Loader as Loader3222, Eye as Eye3222, FileText as FileText3222, Check as Check2222, XCircle as XCircle3222, Edit as Edit2222, CheckCircle as CheckCircle3222, Clock as Clock2222, AlertCircle as AlertCircle2222, User as UserIcon2222, Send as Send2222 } from "lucide-react";
|
|
3921
|
+
import { useParams as useParams2222, useSearchParams as useSearchParams3222 } from "react-router-dom";
|
|
3922
|
+
import { Fragment as Fragment7222, jsx as jsx82222, jsxs as jsxs42222 } from "react/jsx-runtime";
|
|
3923
|
+
import { Fragment as Fragment22222, jsx as jsx92222, jsxs as jsxs52222 } from "react/jsx-runtime";
|
|
3924
|
+
import { useEffect as useEffect52222, useState as useState62222 } from "react";
|
|
3925
|
+
import { CheckCircle as CheckCircle22222, XCircle as XCircle22222, AlertTriangle as AlertTriangle2222, Info as Info2222, X as X32222 } from "lucide-react";
|
|
3926
|
+
import { jsx as jsx102222, jsxs as jsxs62222 } from "react/jsx-runtime";
|
|
3927
|
+
import { ChevronLeft as ChevronLeft22222, Download as Download3222, Menu as Menu22222, Settings as Settings22222 } from "lucide-react";
|
|
3928
|
+
import { useState as useState72222 } from "react";
|
|
3929
|
+
import { Fragment as Fragment32222, jsx as jsx112222, jsxs as jsxs72222 } from "react/jsx-runtime";
|
|
3930
|
+
import { useEffect as useEffect62222, useState as useState82222 } from "react";
|
|
3931
|
+
import { useLocation as useLocation22222, useNavigate as useNavigate22222, useSearchParams as useSearchParams22222, Link as Link22222 } from "react-router-dom";
|
|
3932
|
+
import { ArrowDownAZ as ArrowDownAZ2222, ArrowDownUp as ArrowDownUp2222, ArrowUpAZ as ArrowUpAZ2222, Download as Download22222, Filter as Filter2222, MoreVertical as MoreVertical2222, Printer as Printer2222, Search as Search22222 } from "lucide-react";
|
|
3933
|
+
import { Fragment as Fragment42222, jsx as jsx122222, jsxs as jsxs82222 } from "react/jsx-runtime";
|
|
3934
|
+
import { useState as useState102222, useEffect as useEffect82222 } from "react";
|
|
3935
|
+
import { useState as useState92222, useRef as useRef2222, useEffect as useEffect72222 } from "react";
|
|
3936
|
+
import { Search as Search32222, ChevronDown as ChevronDown2222, X as X42222 } from "lucide-react";
|
|
3937
|
+
import { Fragment as Fragment52222, jsx as jsx132222, jsxs as jsxs92222 } from "react/jsx-runtime";
|
|
3938
|
+
import { X as X52222, Plus as Plus3222, Trash2 as Trash22222, Users as Users2222, Loader as Loader22222, RotateCcw as RotateCcw2222, Ban as Ban2222, Eye as Eye22222, FileText as FileText22222, History as History2222 } from "lucide-react";
|
|
3939
|
+
import { Fragment as Fragment62222, jsx as jsx142222, jsxs as jsxs102222 } from "react/jsx-runtime";
|
|
3940
|
+
import { createContext as createContext42222, useContext as useContext42222, useState as useState112222, useCallback as useCallback22222 } from "react";
|
|
3941
|
+
import { jsx as jsx152222, jsxs as jsxs112222 } from "react/jsx-runtime";
|
|
3942
|
+
import { jsx as jsx162222, jsxs as jsxs122222 } from "react/jsx-runtime";
|
|
3888
3943
|
import { useState as useState13 } from "react";
|
|
3889
3944
|
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3890
3945
|
import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -3892,6 +3947,10 @@ import { useState as useState15 } from "react";
|
|
|
3892
3947
|
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3893
3948
|
import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3894
3949
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
3950
|
+
import { useState as useState17 } from "react";
|
|
3951
|
+
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3952
|
+
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3953
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
3895
3954
|
var PrimaryButton2 = ({
|
|
3896
3955
|
loading = false,
|
|
3897
3956
|
children,
|
|
@@ -3974,8 +4033,9 @@ var TextInput2 = (props) => {
|
|
|
3974
4033
|
return /* @__PURE__ */ jsx32(InputField2, { ...props, type: "text" });
|
|
3975
4034
|
};
|
|
3976
4035
|
var ThemeContext2 = createContext5(void 0);
|
|
3977
|
-
var
|
|
3978
|
-
var
|
|
4036
|
+
var chooseEnv2 = localStorage.getItem("env") ?? "prod";
|
|
4037
|
+
var ADDRESS_IP2 = chooseEnv2 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
|
|
4038
|
+
var ADDRESS_IP_URL2 = chooseEnv2 === "prod" ? `https://${ADDRESS_IP2}/` : `http://${ADDRESS_IP2}/`;
|
|
3979
4039
|
var API_URL2 = `${ADDRESS_IP_URL2}api`;
|
|
3980
4040
|
var API_BASE_URL3 = `${API_URL2}/core/auth/`;
|
|
3981
4041
|
var SessionContext2 = createContext22(void 0);
|
|
@@ -4008,18 +4068,34 @@ var USERS_API_URL222 = `${API_URL222}/core/users/`;
|
|
|
4008
4068
|
var ToastContext222 = createContext3222(void 0);
|
|
4009
4069
|
var APPROVAL_API_URL222 = `${API_URL222}/approvals/cases/`;
|
|
4010
4070
|
var AlertContext222 = createContext4222(void 0);
|
|
4011
|
-
var
|
|
4012
|
-
var
|
|
4013
|
-
var
|
|
4014
|
-
var
|
|
4015
|
-
var
|
|
4016
|
-
var
|
|
4017
|
-
var
|
|
4018
|
-
var
|
|
4071
|
+
var VENDORS_API_URL222 = `${API_URL222}/accounting/vendors/`;
|
|
4072
|
+
var ThemeContext2222 = createContext5222(void 0);
|
|
4073
|
+
var ADDRESS_IP2222 = "localhost:8000";
|
|
4074
|
+
var ADDRESS_IP_URL2222 = `http://${ADDRESS_IP2222}/`;
|
|
4075
|
+
var API_URL2222 = `${ADDRESS_IP_URL2222}api`;
|
|
4076
|
+
var API_BASE_URL3222 = `${API_URL2222}/core/auth/`;
|
|
4077
|
+
var SessionContext2222 = createContext22222(void 0);
|
|
4078
|
+
var API_BASE_URL22222 = `${API_URL2222}/core/auth/`;
|
|
4079
|
+
var USERS_API_URL2222 = `${API_URL2222}/core/users/`;
|
|
4080
|
+
var ToastContext2222 = createContext32222(void 0);
|
|
4081
|
+
var APPROVAL_API_URL2222 = `${API_URL2222}/approvals/cases/`;
|
|
4082
|
+
var AlertContext2222 = createContext42222(void 0);
|
|
4083
|
+
var URI = `${API_URL222}/core/departments/`;
|
|
4084
|
+
var URI2 = `${API_URL222}/accounting/profit-or-cost-center/`;
|
|
4085
|
+
var COST_URI = `${API_URL222}/accounting/cost-center/`;
|
|
4086
|
+
var PROFIT_URI = `${API_URL222}/accounting/profit-center/`;
|
|
4087
|
+
var URI3 = `${API_URL22}/core/departments/`;
|
|
4088
|
+
var URI4 = `${API_URL22}/accounting/profit-or-cost-center/`;
|
|
4089
|
+
var COST_URI2 = `${API_URL22}/accounting/cost-center/`;
|
|
4090
|
+
var PROFIT_URI2 = `${API_URL22}/accounting/profit-center/`;
|
|
4091
|
+
var URI5 = `${API_URL2}/core/departments/`;
|
|
4092
|
+
var URI6 = `${API_URL2}/accounting/profit-or-cost-center/`;
|
|
4093
|
+
var COST_URI3 = `${API_URL2}/accounting/cost-center/`;
|
|
4094
|
+
var PROFIT_URI3 = `${API_URL2}/accounting/profit-center/`;
|
|
4019
4095
|
|
|
4020
4096
|
// src/components/common/FormVendor.tsx
|
|
4021
|
-
import { useState as
|
|
4022
|
-
import { jsx as
|
|
4097
|
+
import { useState as useState19 } from "react";
|
|
4098
|
+
import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4023
4099
|
var MinimalVendorForm = ({
|
|
4024
4100
|
isOpen,
|
|
4025
4101
|
onClose,
|
|
@@ -4028,13 +4104,13 @@ var MinimalVendorForm = ({
|
|
|
4028
4104
|
refresh = () => {
|
|
4029
4105
|
}
|
|
4030
4106
|
}) => {
|
|
4031
|
-
const [formData, setFormData] =
|
|
4107
|
+
const [formData, setFormData] = useState19(object || {
|
|
4032
4108
|
from_module: from ?? null,
|
|
4033
4109
|
legal_name: "",
|
|
4034
4110
|
trading_name: ""
|
|
4035
4111
|
});
|
|
4036
|
-
const [errors, setErrors] =
|
|
4037
|
-
const [loading, setLoading] =
|
|
4112
|
+
const [errors, setErrors] = useState19({});
|
|
4113
|
+
const [loading, setLoading] = useState19(false);
|
|
4038
4114
|
const { token } = useSession();
|
|
4039
4115
|
const { success, error: showError } = useToast();
|
|
4040
4116
|
const handleInputChange = (e) => {
|
|
@@ -4093,7 +4169,7 @@ var MinimalVendorForm = ({
|
|
|
4093
4169
|
}
|
|
4094
4170
|
};
|
|
4095
4171
|
if (!isOpen) return null;
|
|
4096
|
-
return /* @__PURE__ */
|
|
4172
|
+
return /* @__PURE__ */ jsx27(
|
|
4097
4173
|
Modals_default2,
|
|
4098
4174
|
{
|
|
4099
4175
|
title: "Ajouter un fournisseur",
|
|
@@ -4101,9 +4177,9 @@ var MinimalVendorForm = ({
|
|
|
4101
4177
|
description: ``,
|
|
4102
4178
|
open: isOpen,
|
|
4103
4179
|
onClose,
|
|
4104
|
-
children: /* @__PURE__ */
|
|
4105
|
-
/* @__PURE__ */
|
|
4106
|
-
/* @__PURE__ */
|
|
4180
|
+
children: /* @__PURE__ */ jsxs20("form", { onSubmit: handleSubmit, className: "p-", children: [
|
|
4181
|
+
/* @__PURE__ */ jsx27("div", { className: "space-y-4", children: /* @__PURE__ */ jsxs20("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
4182
|
+
/* @__PURE__ */ jsx27(
|
|
4107
4183
|
TextInput2,
|
|
4108
4184
|
{
|
|
4109
4185
|
label: "Raison sociale",
|
|
@@ -4115,7 +4191,7 @@ var MinimalVendorForm = ({
|
|
|
4115
4191
|
onChange: handleInputChange
|
|
4116
4192
|
}
|
|
4117
4193
|
),
|
|
4118
|
-
/* @__PURE__ */
|
|
4194
|
+
/* @__PURE__ */ jsx27(
|
|
4119
4195
|
TextInput2,
|
|
4120
4196
|
{
|
|
4121
4197
|
label: "Nom commercial",
|
|
@@ -4126,8 +4202,8 @@ var MinimalVendorForm = ({
|
|
|
4126
4202
|
}
|
|
4127
4203
|
)
|
|
4128
4204
|
] }) }),
|
|
4129
|
-
/* @__PURE__ */
|
|
4130
|
-
/* @__PURE__ */
|
|
4205
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex justify-between pt-6 mt-8", children: [
|
|
4206
|
+
/* @__PURE__ */ jsx27(
|
|
4131
4207
|
"button",
|
|
4132
4208
|
{
|
|
4133
4209
|
type: "button",
|
|
@@ -4136,7 +4212,7 @@ var MinimalVendorForm = ({
|
|
|
4136
4212
|
children: "Annuler"
|
|
4137
4213
|
}
|
|
4138
4214
|
),
|
|
4139
|
-
/* @__PURE__ */
|
|
4215
|
+
/* @__PURE__ */ jsx27(
|
|
4140
4216
|
Buttons_default2,
|
|
4141
4217
|
{
|
|
4142
4218
|
type: "button",
|
|
@@ -4152,43 +4228,43 @@ var MinimalVendorForm = ({
|
|
|
4152
4228
|
};
|
|
4153
4229
|
|
|
4154
4230
|
// src/services/DepartmentServices.ts
|
|
4155
|
-
var
|
|
4231
|
+
var URI7 = `${API_URL}/core/departments/`;
|
|
4156
4232
|
var DepartmentServices = {
|
|
4157
|
-
create: (data) => FetchApi.post(`${
|
|
4158
|
-
get: (id) => FetchApi.get(`${
|
|
4159
|
-
list: (params) => FetchApi.get(`${
|
|
4160
|
-
update: (id, data) => FetchApi.put(`${
|
|
4161
|
-
delete: (id) => FetchApi.delete(`${
|
|
4233
|
+
create: (data) => FetchApi.post(`${URI7}`, data),
|
|
4234
|
+
get: (id) => FetchApi.get(`${URI7}${id}/`),
|
|
4235
|
+
list: (params) => FetchApi.get(`${URI7}?${new URLSearchParams(params).toString()}`),
|
|
4236
|
+
update: (id, data) => FetchApi.put(`${URI7}${id}/`, data),
|
|
4237
|
+
delete: (id) => FetchApi.delete(`${URI7}${id}/`)
|
|
4162
4238
|
};
|
|
4163
4239
|
|
|
4164
4240
|
// src/services/ProfitCostsServices.ts
|
|
4165
|
-
var
|
|
4166
|
-
var
|
|
4241
|
+
var URI8 = `${API_URL}/accounting/profit-or-cost-center/`;
|
|
4242
|
+
var COST_URI4 = `${API_URL}/accounting/cost-center/`;
|
|
4167
4243
|
var CostServices = {
|
|
4168
|
-
create: (data) => FetchApi.post(`${
|
|
4169
|
-
get: (id) => FetchApi.get(`${
|
|
4170
|
-
list: (params) => FetchApi.get(`${
|
|
4171
|
-
update: (id, data) => FetchApi.put(`${
|
|
4172
|
-
delete: (id) => FetchApi.delete(`${
|
|
4244
|
+
create: (data) => FetchApi.post(`${COST_URI4}`, data),
|
|
4245
|
+
get: (id) => FetchApi.get(`${COST_URI4}${id}/`),
|
|
4246
|
+
list: (params) => FetchApi.get(`${COST_URI4}?${new URLSearchParams(params).toString()}`),
|
|
4247
|
+
update: (id, data) => FetchApi.put(`${COST_URI4}${id}/`, data),
|
|
4248
|
+
delete: (id) => FetchApi.delete(`${COST_URI4}${id}/`)
|
|
4173
4249
|
};
|
|
4174
|
-
var
|
|
4250
|
+
var PROFIT_URI4 = `${API_URL}/accounting/profit-center/`;
|
|
4175
4251
|
|
|
4176
4252
|
// src/components/common/CommonSelect.tsx
|
|
4177
|
-
import { jsx as
|
|
4253
|
+
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4178
4254
|
var SelectVendor = ({
|
|
4179
4255
|
value,
|
|
4180
4256
|
onSelect
|
|
4181
4257
|
}) => {
|
|
4182
|
-
const [showModal, setShowModal] =
|
|
4183
|
-
const [selectedVendor, setSelectedVendor] =
|
|
4258
|
+
const [showModal, setShowModal] = useState20(false);
|
|
4259
|
+
const [selectedVendor, setSelectedVendor] = useState20(null);
|
|
4184
4260
|
const { token, activeBusinessEntity } = useSession();
|
|
4185
|
-
const [vendors, setVendors] =
|
|
4261
|
+
const [vendors, setVendors] = useState20(() => {
|
|
4186
4262
|
const cacheKey = `vendors_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4187
4263
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4188
4264
|
return cached ? JSON.parse(cached) : [];
|
|
4189
4265
|
});
|
|
4190
|
-
const [loadingVendors, setLoadingVendors] =
|
|
4191
|
-
|
|
4266
|
+
const [loadingVendors, setLoadingVendors] = useState20(false);
|
|
4267
|
+
useEffect14(() => {
|
|
4192
4268
|
const cacheKey = `vendors_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4193
4269
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4194
4270
|
if (!cached) {
|
|
@@ -4226,9 +4302,9 @@ var SelectVendor = ({
|
|
|
4226
4302
|
sessionStorage.removeItem(cacheKey);
|
|
4227
4303
|
loadVendors();
|
|
4228
4304
|
};
|
|
4229
|
-
return /* @__PURE__ */
|
|
4230
|
-
/* @__PURE__ */
|
|
4231
|
-
/* @__PURE__ */
|
|
4305
|
+
return /* @__PURE__ */ jsxs21("div", { children: [
|
|
4306
|
+
/* @__PURE__ */ jsx28("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx28("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Ajouter un fournisseur" }) }),
|
|
4307
|
+
/* @__PURE__ */ jsx28(
|
|
4232
4308
|
SearchableSelect,
|
|
4233
4309
|
{
|
|
4234
4310
|
value,
|
|
@@ -4244,8 +4320,8 @@ var SelectVendor = ({
|
|
|
4244
4320
|
},
|
|
4245
4321
|
"fourni" + value
|
|
4246
4322
|
),
|
|
4247
|
-
loadingVendors && /* @__PURE__ */
|
|
4248
|
-
showModal && /* @__PURE__ */
|
|
4323
|
+
loadingVendors && /* @__PURE__ */ jsx28("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des fournisseurs..." }),
|
|
4324
|
+
showModal && /* @__PURE__ */ jsx28(
|
|
4249
4325
|
MinimalVendorForm,
|
|
4250
4326
|
{
|
|
4251
4327
|
object: selectedVendor,
|
|
@@ -4262,13 +4338,13 @@ var SelectUser = ({
|
|
|
4262
4338
|
onSelect
|
|
4263
4339
|
}) => {
|
|
4264
4340
|
const { token, activeBusinessEntity } = useSession();
|
|
4265
|
-
const [users, setUsers] =
|
|
4341
|
+
const [users, setUsers] = useState20(() => {
|
|
4266
4342
|
const cacheKey = `users_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4267
4343
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4268
4344
|
return cached ? JSON.parse(cached) : [];
|
|
4269
4345
|
});
|
|
4270
|
-
const [loading, setLoading] =
|
|
4271
|
-
|
|
4346
|
+
const [loading, setLoading] = useState20(false);
|
|
4347
|
+
useEffect14(() => {
|
|
4272
4348
|
const cacheKey = `users_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4273
4349
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4274
4350
|
if (!cached) {
|
|
@@ -4304,19 +4380,19 @@ var SelectUser = ({
|
|
|
4304
4380
|
return users.map((user) => ({
|
|
4305
4381
|
value: user.id,
|
|
4306
4382
|
label: `${user.first_name} ${user.last_name}`,
|
|
4307
|
-
content: /* @__PURE__ */
|
|
4308
|
-
/* @__PURE__ */
|
|
4383
|
+
content: /* @__PURE__ */ jsx28("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ jsxs21("div", { className: "flex-1", children: [
|
|
4384
|
+
/* @__PURE__ */ jsxs21("div", { className: "font-medium text-gray-900", children: [
|
|
4309
4385
|
user.first_name,
|
|
4310
4386
|
" ",
|
|
4311
4387
|
user.last_name
|
|
4312
4388
|
] }),
|
|
4313
|
-
/* @__PURE__ */
|
|
4389
|
+
/* @__PURE__ */ jsx28("div", { className: "text-sm text-gray-500", children: user.email })
|
|
4314
4390
|
] }) })
|
|
4315
4391
|
}));
|
|
4316
4392
|
};
|
|
4317
|
-
return /* @__PURE__ */
|
|
4318
|
-
/* @__PURE__ */
|
|
4319
|
-
/* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ jsxs21("div", { children: [
|
|
4394
|
+
/* @__PURE__ */ jsx28("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx28("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un utilisateur" }) }),
|
|
4395
|
+
/* @__PURE__ */ jsx28(
|
|
4320
4396
|
SearchableSelect,
|
|
4321
4397
|
{
|
|
4322
4398
|
value,
|
|
@@ -4329,7 +4405,7 @@ var SelectUser = ({
|
|
|
4329
4405
|
},
|
|
4330
4406
|
"user" + value
|
|
4331
4407
|
),
|
|
4332
|
-
loading && /* @__PURE__ */
|
|
4408
|
+
loading && /* @__PURE__ */ jsx28("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des utilisateurs..." })
|
|
4333
4409
|
] });
|
|
4334
4410
|
};
|
|
4335
4411
|
var SelectDepartment = ({
|
|
@@ -4337,13 +4413,13 @@ var SelectDepartment = ({
|
|
|
4337
4413
|
onSelect
|
|
4338
4414
|
}) => {
|
|
4339
4415
|
const { token, activeBusinessEntity } = useSession();
|
|
4340
|
-
const [departments, setDepartments] =
|
|
4416
|
+
const [departments, setDepartments] = useState20(() => {
|
|
4341
4417
|
const cacheKey = `departments_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4342
4418
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4343
4419
|
return cached ? JSON.parse(cached) : [];
|
|
4344
4420
|
});
|
|
4345
|
-
const [loading, setLoading] =
|
|
4346
|
-
|
|
4421
|
+
const [loading, setLoading] = useState20(false);
|
|
4422
|
+
useEffect14(() => {
|
|
4347
4423
|
const cacheKey = `departments_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4348
4424
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4349
4425
|
if (!cached) {
|
|
@@ -4379,9 +4455,9 @@ var SelectDepartment = ({
|
|
|
4379
4455
|
label: dept.name
|
|
4380
4456
|
}));
|
|
4381
4457
|
};
|
|
4382
|
-
return /* @__PURE__ */
|
|
4383
|
-
/* @__PURE__ */
|
|
4384
|
-
/* @__PURE__ */
|
|
4458
|
+
return /* @__PURE__ */ jsxs21("div", { children: [
|
|
4459
|
+
/* @__PURE__ */ jsx28("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx28("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un d\xE9partement" }) }),
|
|
4460
|
+
/* @__PURE__ */ jsx28(
|
|
4385
4461
|
SearchableSelect,
|
|
4386
4462
|
{
|
|
4387
4463
|
value,
|
|
@@ -4394,7 +4470,7 @@ var SelectDepartment = ({
|
|
|
4394
4470
|
},
|
|
4395
4471
|
"dept" + value
|
|
4396
4472
|
),
|
|
4397
|
-
loading && /* @__PURE__ */
|
|
4473
|
+
loading && /* @__PURE__ */ jsx28("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des d\xE9partements..." })
|
|
4398
4474
|
] });
|
|
4399
4475
|
};
|
|
4400
4476
|
var SelectCostCenter = ({
|
|
@@ -4402,13 +4478,13 @@ var SelectCostCenter = ({
|
|
|
4402
4478
|
onSelect
|
|
4403
4479
|
}) => {
|
|
4404
4480
|
const { token, activeBusinessEntity } = useSession();
|
|
4405
|
-
const [costCenters, setCostCenters] =
|
|
4481
|
+
const [costCenters, setCostCenters] = useState20(() => {
|
|
4406
4482
|
const cacheKey = `cost_centers_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4407
4483
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4408
4484
|
return cached ? JSON.parse(cached) : [];
|
|
4409
4485
|
});
|
|
4410
|
-
const [loading, setLoading] =
|
|
4411
|
-
|
|
4486
|
+
const [loading, setLoading] = useState20(false);
|
|
4487
|
+
useEffect14(() => {
|
|
4412
4488
|
const cacheKey = `cost_centers_cache_${activeBusinessEntity?.id || "default"}`;
|
|
4413
4489
|
const cached = sessionStorage.getItem(cacheKey);
|
|
4414
4490
|
if (!cached) {
|
|
@@ -4442,18 +4518,18 @@ var SelectCostCenter = ({
|
|
|
4442
4518
|
return costCenters.map((center) => ({
|
|
4443
4519
|
value: center.id,
|
|
4444
4520
|
label: `${center.code ? `[${center.code}] ` : ""}${center.name}`,
|
|
4445
|
-
content: /* @__PURE__ */
|
|
4446
|
-
/* @__PURE__ */
|
|
4447
|
-
center.code && /* @__PURE__ */
|
|
4521
|
+
content: /* @__PURE__ */ jsx28("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ jsxs21("div", { className: "flex-1", children: [
|
|
4522
|
+
/* @__PURE__ */ jsx28("div", { className: "font-medium text-gray-900", children: center.name }),
|
|
4523
|
+
center.code && /* @__PURE__ */ jsxs21("div", { className: "text-sm text-gray-500", children: [
|
|
4448
4524
|
"Code: ",
|
|
4449
4525
|
center.code
|
|
4450
4526
|
] })
|
|
4451
4527
|
] }) })
|
|
4452
4528
|
}));
|
|
4453
4529
|
};
|
|
4454
|
-
return /* @__PURE__ */
|
|
4455
|
-
/* @__PURE__ */
|
|
4456
|
-
/* @__PURE__ */
|
|
4530
|
+
return /* @__PURE__ */ jsxs21("div", { children: [
|
|
4531
|
+
/* @__PURE__ */ jsx28("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx28("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un centre de co\xFBt" }) }),
|
|
4532
|
+
/* @__PURE__ */ jsx28(
|
|
4457
4533
|
SearchableSelect,
|
|
4458
4534
|
{
|
|
4459
4535
|
value,
|
|
@@ -4466,12 +4542,12 @@ var SelectCostCenter = ({
|
|
|
4466
4542
|
},
|
|
4467
4543
|
"cost" + value
|
|
4468
4544
|
),
|
|
4469
|
-
loading && /* @__PURE__ */
|
|
4545
|
+
loading && /* @__PURE__ */ jsx28("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des centres de co\xFBt..." })
|
|
4470
4546
|
] });
|
|
4471
4547
|
};
|
|
4472
4548
|
|
|
4473
4549
|
// src/components/common/Choices.tsx
|
|
4474
|
-
import { jsx as
|
|
4550
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4475
4551
|
var CHOICES = {
|
|
4476
4552
|
INVOICE_TYPES: [
|
|
4477
4553
|
{ value: "sale", label: { fr: "Vente", en: "Sale", default: "Sale" } },
|
|
@@ -4729,7 +4805,7 @@ var InvoiceTypeSelector = ({
|
|
|
4729
4805
|
value: item.value,
|
|
4730
4806
|
label: item.label[language]
|
|
4731
4807
|
}));
|
|
4732
|
-
return /* @__PURE__ */
|
|
4808
|
+
return /* @__PURE__ */ jsx29(
|
|
4733
4809
|
SearchableSelect,
|
|
4734
4810
|
{
|
|
4735
4811
|
value,
|
|
@@ -4752,7 +4828,7 @@ var PaymentMethodSelector = ({
|
|
|
4752
4828
|
value: item.value,
|
|
4753
4829
|
label: item.label[language]
|
|
4754
4830
|
}));
|
|
4755
|
-
return /* @__PURE__ */
|
|
4831
|
+
return /* @__PURE__ */ jsx29(
|
|
4756
4832
|
SearchableSelect,
|
|
4757
4833
|
{
|
|
4758
4834
|
value,
|
|
@@ -4775,7 +4851,7 @@ var TemplateFNESelector = ({
|
|
|
4775
4851
|
value: item.value,
|
|
4776
4852
|
label: item.label[language]
|
|
4777
4853
|
}));
|
|
4778
|
-
return /* @__PURE__ */
|
|
4854
|
+
return /* @__PURE__ */ jsx29(
|
|
4779
4855
|
SearchableSelect,
|
|
4780
4856
|
{
|
|
4781
4857
|
value,
|
|
@@ -4798,7 +4874,7 @@ var ForeignCurrencySelector = ({
|
|
|
4798
4874
|
value: item.value,
|
|
4799
4875
|
label: item.label[language]
|
|
4800
4876
|
}));
|
|
4801
|
-
return /* @__PURE__ */
|
|
4877
|
+
return /* @__PURE__ */ jsx29(
|
|
4802
4878
|
SearchableSelect,
|
|
4803
4879
|
{
|
|
4804
4880
|
value,
|
|
@@ -4822,7 +4898,7 @@ var TaxSelector = ({
|
|
|
4822
4898
|
value: item.value,
|
|
4823
4899
|
label: item.label[language]
|
|
4824
4900
|
}));
|
|
4825
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ jsx29(
|
|
4826
4902
|
SearchableSelect,
|
|
4827
4903
|
{
|
|
4828
4904
|
value,
|
|
@@ -4850,7 +4926,7 @@ var LegalFormSelector = ({
|
|
|
4850
4926
|
value: item.value,
|
|
4851
4927
|
label: item.label[language] ?? item.label.default
|
|
4852
4928
|
}));
|
|
4853
|
-
return /* @__PURE__ */
|
|
4929
|
+
return /* @__PURE__ */ jsx29(
|
|
4854
4930
|
SearchableSelect,
|
|
4855
4931
|
{
|
|
4856
4932
|
value,
|
|
@@ -4873,7 +4949,7 @@ var CountrySelector = ({
|
|
|
4873
4949
|
value: item.value,
|
|
4874
4950
|
label: item.label[language]
|
|
4875
4951
|
}));
|
|
4876
|
-
return /* @__PURE__ */
|
|
4952
|
+
return /* @__PURE__ */ jsx29(
|
|
4877
4953
|
SearchableSelect,
|
|
4878
4954
|
{
|
|
4879
4955
|
value,
|