@amsom-habitat/cresol 0.2.2 → 0.2.3
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/README.md +11 -1
- package/dist/cresol.js +310 -281
- package/dist/cresol.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/cresol.js
CHANGED
|
@@ -67,6 +67,7 @@ var ce = [
|
|
|
67
67
|
contratReclamant: !0,
|
|
68
68
|
contratCible: null,
|
|
69
69
|
reprendreLocataireActuel: !1,
|
|
70
|
+
modulePrecis: !0,
|
|
70
71
|
patrimoine: null,
|
|
71
72
|
description: null,
|
|
72
73
|
dateFaits: null,
|
|
@@ -105,7 +106,7 @@ var ce = [
|
|
|
105
106
|
e.libelleModule
|
|
106
107
|
].filter(Boolean);
|
|
107
108
|
return e.etage != null && !e.libelleModule && t.push(`Étage ${e.etage}`), t.length ? t.join(" — ") : "Cible non définie";
|
|
108
|
-
}, me = (e) => !!e && (e.idModule != null || e.idEntree != null), he = (e, t) => e.cibleMode === "demande" || !e.cibleOverride && e.patrimoine == null ? !0 : e.cibleMode === "contrat" ? !!(e.contratReclamant && t || e.contratCible) && e.patrimoine?.idModule != null : me(e.patrimoine), ge = (e, t) => e.description == null ? !t : e.description.trim().length > 0, _e = (e = {}) => {
|
|
109
|
+
}, me = (e) => !!e && (e.idModule != null || e.idEntree != null), he = (e, t) => e.cibleMode === "demande" || !e.cibleOverride && e.patrimoine == null ? !0 : e.cibleMode === "contrat" ? !!(e.contratReclamant && t || e.contratCible) && e.patrimoine?.idModule != null : e.modulePrecis ? e.patrimoine?.idModule != null : me(e.patrimoine), ge = (e, t) => e.description == null ? !t : e.description.trim().length > 0, _e = (e = {}) => {
|
|
109
110
|
let t = {
|
|
110
111
|
...j(),
|
|
111
112
|
...e
|
|
@@ -219,7 +220,11 @@ function ye({ reclamants: e, modules: t, idModulePrefere: n = y(null), readonly:
|
|
|
219
220
|
},
|
|
220
221
|
setCibleMode(e, t) {
|
|
221
222
|
let n = a.lignes[e];
|
|
222
|
-
n && (n.cibleMode = t, n.reprendreLocataireActuel = !1, n.contratReclamant = t === "contrat" && g.value, n.contratCible = null, t === "demande" ? n.patrimoine = null : n.patrimoine ??= A());
|
|
223
|
+
n && (n.cibleMode = t, n.reprendreLocataireActuel = !1, n.modulePrecis = !0, n.contratReclamant = t === "contrat" && g.value, n.contratCible = null, t === "demande" ? n.patrimoine = null : n.patrimoine ??= A());
|
|
224
|
+
},
|
|
225
|
+
setModulePrecis(e, t) {
|
|
226
|
+
let n = a.lignes[e];
|
|
227
|
+
n && (n.modulePrecis = !!t, n.modulePrecis || _.setPatrimoineModule(e, null));
|
|
223
228
|
},
|
|
224
229
|
toggleContratReclamant(e, t) {
|
|
225
230
|
let n = a.lignes[e];
|
|
@@ -230,7 +235,7 @@ function ye({ reclamants: e, modules: t, idModulePrefere: n = y(null), readonly:
|
|
|
230
235
|
n && (n.contratCible = t ? {
|
|
231
236
|
typeContrat: t.typeContrat,
|
|
232
237
|
idContrat: t.idContrat,
|
|
233
|
-
libelle: t.
|
|
238
|
+
libelle: t.libelle ?? null
|
|
234
239
|
} : null, _.setPatrimoineModule(e, null));
|
|
235
240
|
},
|
|
236
241
|
setPatrimoineCommune(e, t) {
|
|
@@ -257,7 +262,7 @@ function ye({ reclamants: e, modules: t, idModulePrefere: n = y(null), readonly:
|
|
|
257
262
|
let t = a.lignes[e];
|
|
258
263
|
if (!t) return;
|
|
259
264
|
let n = a.lignes[0];
|
|
260
|
-
t.cibleOverride ? (t.cibleOverride = !1, t.cibleMode = null, t.patrimoine = null, t.reprendreLocataireActuel = !1, t.contratReclamant = !0, t.contratCible = null) : (t.cibleOverride = !0, t.cibleMode = n.cibleMode, t.patrimoine = n.cibleMode === "demande" ? null : { ...n.patrimoine }, t.reprendreLocataireActuel = n.reprendreLocataireActuel, t.contratReclamant = n.contratReclamant, t.contratCible = n.contratCible ? { ...n.contratCible } : null);
|
|
265
|
+
t.cibleOverride ? (t.cibleOverride = !1, t.cibleMode = null, t.patrimoine = null, t.reprendreLocataireActuel = !1, t.modulePrecis = !0, t.contratReclamant = !0, t.contratCible = null) : (t.cibleOverride = !0, t.cibleMode = n.cibleMode, t.patrimoine = n.cibleMode === "demande" ? null : { ...n.patrimoine }, t.reprendreLocataireActuel = n.reprendreLocataireActuel, t.modulePrecis = n.modulePrecis, t.contratReclamant = n.contratReclamant, t.contratCible = n.contratCible ? { ...n.contratCible } : null);
|
|
261
266
|
},
|
|
262
267
|
setReprendreLocataireActuel(e, t) {
|
|
263
268
|
let n = a.lignes[e];
|
|
@@ -338,6 +343,7 @@ function ye({ reclamants: e, modules: t, idModulePrefere: n = y(null), readonly:
|
|
|
338
343
|
let t = a.lignes[0], n = e !== t && !e.cibleOverride ? t : e;
|
|
339
344
|
if (n.cibleMode === "demande") return "La demande";
|
|
340
345
|
let r = pe(n.patrimoine);
|
|
346
|
+
if (n.cibleMode === "patrimoine" && !n.modulePrecis) return `Parties communes — ${r}`;
|
|
341
347
|
if (n.cibleMode !== "contrat") return r;
|
|
342
348
|
let i = "Contrat non défini";
|
|
343
349
|
if (n.contratReclamant && g.value) i = "Contrat du réclamant";
|
|
@@ -645,10 +651,12 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
645
651
|
}), a = /* @__PURE__ */ new Map();
|
|
646
652
|
for (let e of r ?? []) {
|
|
647
653
|
let t = `${e.typeContrat}|${e.idContrat}`;
|
|
648
|
-
a.has(t) || a.set(t, {
|
|
654
|
+
(!a.has(t) || e.estModulePrincipal) && a.set(t, {
|
|
649
655
|
typeContrat: e.typeContrat,
|
|
650
656
|
idContrat: e.idContrat,
|
|
651
657
|
libelle: e.libelle ?? null,
|
|
658
|
+
adresse: e.adresse ?? null,
|
|
659
|
+
commune: e.commune ?? null,
|
|
652
660
|
estSorti: !!e.estContratSorti,
|
|
653
661
|
nbModules: e.nbModulesContrat ?? 1
|
|
654
662
|
});
|
|
@@ -902,77 +910,54 @@ var q = [
|
|
|
902
910
|
}, pt = {
|
|
903
911
|
key: 0,
|
|
904
912
|
class: "text-muted"
|
|
905
|
-
}, mt = {
|
|
906
|
-
key: 0,
|
|
907
|
-
class: "alert alert-primary py-2 px-3 mb-0 fs-7 d-flex align-items-start gap-2"
|
|
908
|
-
}, ht = { class: "min-w-0" }, gt = { class: "fw-semibold" }, _t = {
|
|
909
|
-
key: 0,
|
|
910
|
-
class: "text-truncate"
|
|
911
|
-
}, vt = {
|
|
912
|
-
key: 1,
|
|
913
|
-
class: "text-truncate"
|
|
914
|
-
}, yt = {
|
|
915
|
-
key: 1,
|
|
916
|
-
class: "fs-7 text-danger"
|
|
917
913
|
};
|
|
918
|
-
function
|
|
914
|
+
function mt(e, t, r, c, d, f) {
|
|
919
915
|
let p = S("font-awesome-icon"), h = S("amsom-autocomplete");
|
|
920
|
-
return d.iconsReady ? (g(), o("div", it, [
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
d.rechercheFaite && !d.rechercheEnCours && !d.trouves.length ? (g(), o("small", pt, C(f.categorieCourante.aucun), 1)) : a("", !0)
|
|
964
|
-
]),
|
|
965
|
-
f.selectionne ? (g(), o("div", mt, [u(p, {
|
|
966
|
-
icon: f.iconOf(f.selectionne),
|
|
967
|
-
class: "mt-1"
|
|
968
|
-
}, null, 8, ["icon"]), s("div", ht, [
|
|
969
|
-
s("div", gt, C(f.selectionne.libelle), 1),
|
|
970
|
-
f.selectionne.adresse ? (g(), o("div", _t, C(f.selectionne.adresse), 1)) : a("", !0),
|
|
971
|
-
f.detailOf(f.selectionne) ? (g(), o("div", vt, C(f.detailOf(f.selectionne)), 1)) : a("", !0)
|
|
972
|
-
])])) : (g(), o("div", yt, "Recherchez puis sélectionnez le réclamant."))
|
|
973
|
-
])) : a("", !0);
|
|
916
|
+
return d.iconsReady ? (g(), o("div", it, [s("div", null, [t[1] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Le réclamant est… ", -1), s("div", at, [(g(!0), o(n, null, b(f.categories, (e) => (g(), o("button", {
|
|
917
|
+
key: e.key,
|
|
918
|
+
type: "button",
|
|
919
|
+
class: m(["btn btn-sm d-inline-flex align-items-center gap-2", d.categorie === e.key ? "btn-primary" : "btn-outline-primary"]),
|
|
920
|
+
onClick: (t) => f.setCategorie(e.key)
|
|
921
|
+
}, [u(p, {
|
|
922
|
+
icon: e.icon,
|
|
923
|
+
"fixed-width": ""
|
|
924
|
+
}, null, 8, ["icon"]), s("span", null, C(e.label), 1)], 10, ot))), 128))])]), s("div", null, [
|
|
925
|
+
s("label", st, C(f.categorieCourante.recherche), 1),
|
|
926
|
+
(g(), i(h, {
|
|
927
|
+
key: d.categorie,
|
|
928
|
+
modelValue: f.selectedTrouve,
|
|
929
|
+
"onUpdate:modelValue": t[0] ||= (e) => f.selectedTrouve = e,
|
|
930
|
+
items: d.trouves,
|
|
931
|
+
"filtering-function": ({ items: e }) => e,
|
|
932
|
+
loading: d.rechercheEnCours,
|
|
933
|
+
"get-id": f.cleReclamant,
|
|
934
|
+
"get-input-libelle": (e) => e?.libelle ?? "",
|
|
935
|
+
placeholder: f.categorieCourante.placeholder,
|
|
936
|
+
"input-size": "sm",
|
|
937
|
+
"hide-choices": "",
|
|
938
|
+
"debounce-delay": 0,
|
|
939
|
+
onSearch: f.rechercherPlusTard
|
|
940
|
+
}, {
|
|
941
|
+
options: E((e) => [s("div", ct, [
|
|
942
|
+
s("div", { class: m(["fw-medium text-truncate", e?.estActif ? "" : "text-muted"]) }, [l(C(f.titreOf(e)) + " ", 1), e?.estActif ? a("", !0) : (g(), o("span", lt, C(f.categorieOf(e) === "demandeur" ? "inactive" : "sorti"), 1))], 2),
|
|
943
|
+
s("small", ut, [l(C(f.referenceOf(e)) + " ", 1), e?.adresse ? (g(), o("span", dt, " — " + C(e.adresse), 1)) : a("", !0)]),
|
|
944
|
+
f.detailOf(e) ? (g(), o("small", ft, C(f.detailOf(e)), 1)) : a("", !0)
|
|
945
|
+
])]),
|
|
946
|
+
_: 1
|
|
947
|
+
}, 8, [
|
|
948
|
+
"modelValue",
|
|
949
|
+
"items",
|
|
950
|
+
"filtering-function",
|
|
951
|
+
"loading",
|
|
952
|
+
"get-id",
|
|
953
|
+
"get-input-libelle",
|
|
954
|
+
"placeholder",
|
|
955
|
+
"onSearch"
|
|
956
|
+
])),
|
|
957
|
+
d.rechercheFaite && !d.rechercheEnCours && !d.trouves.length ? (g(), o("small", pt, C(f.categorieCourante.aucun), 1)) : a("", !0)
|
|
958
|
+
])])) : a("", !0);
|
|
974
959
|
}
|
|
975
|
-
var
|
|
960
|
+
var ht = /*#__PURE__*/ F(rt, [["render", mt]]), gt = {
|
|
976
961
|
name: "ProvenanceSelecteurBlock",
|
|
977
962
|
setup() {
|
|
978
963
|
return { draft: P() };
|
|
@@ -988,22 +973,22 @@ var xt = /*#__PURE__*/ F(rt, [["render", bt]]), St = {
|
|
|
988
973
|
return this.provenances.find((e) => e.id === this.selected) ?? null;
|
|
989
974
|
}
|
|
990
975
|
}
|
|
991
|
-
},
|
|
976
|
+
}, _t = {
|
|
992
977
|
key: 0,
|
|
993
978
|
class: "fs-7 text-muted"
|
|
994
|
-
},
|
|
979
|
+
}, vt = { class: "fw-medium" }, yt = { key: 1 }, bt = { class: "d-flex flex-wrap gap-2" }, xt = ["onClick"], St = {
|
|
995
980
|
key: 0,
|
|
996
981
|
class: "fs-7 text-danger mt-1"
|
|
997
982
|
};
|
|
998
|
-
function
|
|
983
|
+
function Ct(e, t, r, c, d, f) {
|
|
999
984
|
let p = S("font-awesome-icon");
|
|
1000
|
-
return c.draft.isReadonly("provenance") ? (g(), o("div",
|
|
985
|
+
return c.draft.isReadonly("provenance") ? (g(), o("div", _t, [t[0] ||= l(" Provenance du contact : ", -1), s("span", vt, [f.provenanceChoisie?.icon ? (g(), i(p, {
|
|
1001
986
|
key: 0,
|
|
1002
987
|
icon: f.provenanceChoisie.icon,
|
|
1003
988
|
"fixed-width": ""
|
|
1004
|
-
}, null, 8, ["icon"])) : a("", !0), l(" " + C(f.provenanceChoisie?.libelle ?? "—"), 1)])])) : (g(), o("div",
|
|
989
|
+
}, null, 8, ["icon"])) : a("", !0), l(" " + C(f.provenanceChoisie?.libelle ?? "—"), 1)])])) : (g(), o("div", yt, [
|
|
1005
990
|
t[1] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, [l(" Provenance du contact "), s("span", { class: "text-danger" }, "*")], -1),
|
|
1006
|
-
s("div",
|
|
991
|
+
s("div", bt, [(g(!0), o(n, null, b(f.provenances, (e) => (g(), o("button", {
|
|
1007
992
|
key: e.id,
|
|
1008
993
|
type: "button",
|
|
1009
994
|
class: m(["btn btn-sm d-inline-flex align-items-center gap-2", e.id === f.selected ? "btn-primary" : "btn-outline-primary"]),
|
|
@@ -1011,15 +996,15 @@ function kt(e, t, r, c, d, f) {
|
|
|
1011
996
|
}, [u(p, {
|
|
1012
997
|
icon: e.icon,
|
|
1013
998
|
"fixed-width": ""
|
|
1014
|
-
}, null, 8, ["icon"]), s("span", null, C(e.libelle), 1)], 10,
|
|
1015
|
-
f.selected ? a("", !0) : (g(), o("div",
|
|
999
|
+
}, null, 8, ["icon"]), s("span", null, C(e.libelle), 1)], 10, xt))), 128))]),
|
|
1000
|
+
f.selected ? a("", !0) : (g(), o("div", St, " Sélectionnez par quel canal la sollicitation vous est parvenue. "))
|
|
1016
1001
|
]));
|
|
1017
1002
|
}
|
|
1018
|
-
var
|
|
1003
|
+
var wt = /*#__PURE__*/ F(gt, [["render", Ct]]), Tt = {
|
|
1019
1004
|
name: "EtapeReclamantBlock",
|
|
1020
1005
|
components: {
|
|
1021
|
-
ReclamantRechercheBlock:
|
|
1022
|
-
ProvenanceSelecteurBlock:
|
|
1006
|
+
ReclamantRechercheBlock: ht,
|
|
1007
|
+
ProvenanceSelecteurBlock: wt
|
|
1023
1008
|
},
|
|
1024
1009
|
props: { premiere: {
|
|
1025
1010
|
type: Boolean,
|
|
@@ -1028,18 +1013,18 @@ var At = /*#__PURE__*/ F(St, [["render", kt]]), jt = {
|
|
|
1028
1013
|
setup() {
|
|
1029
1014
|
return { draft: P() };
|
|
1030
1015
|
}
|
|
1031
|
-
},
|
|
1032
|
-
function
|
|
1016
|
+
}, Et = { class: "d-flex flex-column gap-3" }, Dt = { class: "alert alert-light border py-2 px-3 mb-0 fs-7" };
|
|
1017
|
+
function Ot(e, t, n, r, c, d) {
|
|
1033
1018
|
let f = S("provenance-selecteur-block"), p = S("font-awesome-icon"), m = S("reclamant-recherche-block");
|
|
1034
|
-
return g(), o("div",
|
|
1019
|
+
return g(), o("div", Et, [n.premiere ? (g(), i(f, { key: 0 })) : a("", !0), x(e.$slots, "reclamant", {
|
|
1035
1020
|
reclamant: r.draft.reclamantSelectionne,
|
|
1036
1021
|
select: r.draft.selectReclamant
|
|
1037
|
-
}, () => [s("div",
|
|
1022
|
+
}, () => [s("div", Dt, [u(p, {
|
|
1038
1023
|
icon: "user",
|
|
1039
1024
|
class: "text-primary me-2"
|
|
1040
1025
|
}), t[0] ||= l(" Pour qui cette sollicitation est-elle créée\xA0? ", -1)]), u(m)])]);
|
|
1041
1026
|
}
|
|
1042
|
-
var
|
|
1027
|
+
var kt = /*#__PURE__*/ F(Tt, [["render", Ot]]), At = Symbol("cresol:options"), jt = (e) => _(At, e), Y = () => f(At, {});
|
|
1043
1028
|
//#endregion
|
|
1044
1029
|
//#region src/utils/text.js
|
|
1045
1030
|
function X(e, t = !0) {
|
|
@@ -1049,7 +1034,7 @@ function X(e, t = !0) {
|
|
|
1049
1034
|
}
|
|
1050
1035
|
//#endregion
|
|
1051
1036
|
//#region src/components/ReclamantSelecteurBlock.vue
|
|
1052
|
-
var
|
|
1037
|
+
var Mt = {
|
|
1053
1038
|
name: "ReclamantSelecteurBlock",
|
|
1054
1039
|
components: { AmsomAutocomplete: O },
|
|
1055
1040
|
props: {
|
|
@@ -1095,25 +1080,25 @@ var Rt = {
|
|
|
1095
1080
|
return n ? t.filter((e) => (X(e?.libelle) ?? "").includes(n)) : t;
|
|
1096
1081
|
}
|
|
1097
1082
|
}
|
|
1098
|
-
},
|
|
1083
|
+
}, Nt = {
|
|
1099
1084
|
key: 0,
|
|
1100
1085
|
class: "fs-7 text-muted"
|
|
1101
|
-
},
|
|
1086
|
+
}, Pt = { class: "fw-medium" }, Ft = {
|
|
1102
1087
|
key: 0,
|
|
1103
1088
|
class: "btn-group btn-group-sm",
|
|
1104
1089
|
role: "group"
|
|
1105
|
-
},
|
|
1106
|
-
function
|
|
1090
|
+
}, It = ["onClick"], Lt = ["value"], Rt = ["value"];
|
|
1091
|
+
function zt(e, t, r, a, c, u) {
|
|
1107
1092
|
let d = S("amsom-autocomplete");
|
|
1108
|
-
return u.estFige ? (g(), o("div",
|
|
1093
|
+
return u.estFige ? (g(), o("div", Nt, [t[2] ||= l(" Réclamant : ", -1), s("span", Pt, C(u.reclamantSelectionne?.libelle), 1)])) : (g(), o("div", {
|
|
1109
1094
|
key: 1,
|
|
1110
1095
|
class: m(r.inline ? "d-flex align-items-center justify-content-between gap-2 border-bottom pb-2" : "d-flex flex-column gap-1")
|
|
1111
|
-
}, [t[3] ||= s("span", { class: "fs-7 fw-semibold text-muted text-uppercase" }, "Réclamant", -1), u.presentation === "switch" ? (g(), o("div",
|
|
1096
|
+
}, [t[3] ||= s("span", { class: "fs-7 fw-semibold text-muted text-uppercase" }, "Réclamant", -1), u.presentation === "switch" ? (g(), o("div", Ft, [(g(!0), o(n, null, b(u.reclamants, (e, t) => (g(), o("button", {
|
|
1112
1097
|
key: t,
|
|
1113
1098
|
type: "button",
|
|
1114
1099
|
class: m(["btn btn-sm py-0", e === u.reclamantSelectionne ? "btn-primary" : "btn-outline-primary"]),
|
|
1115
1100
|
onClick: (t) => u.select(e)
|
|
1116
|
-
}, C(e.libelle), 11,
|
|
1101
|
+
}, C(e.libelle), 11, It))), 128))])) : u.presentation === "autocomplete" ? (g(), i(d, {
|
|
1117
1102
|
key: 1,
|
|
1118
1103
|
"model-value": u.reclamantSelectionne,
|
|
1119
1104
|
items: u.reclamants,
|
|
@@ -1140,17 +1125,17 @@ function Gt(e, t, r, a, c, u) {
|
|
|
1140
1125
|
}, [(g(!0), o(n, null, b(u.reclamants, (e, t) => (g(), o("option", {
|
|
1141
1126
|
key: t,
|
|
1142
1127
|
value: t
|
|
1143
|
-
}, C(e.libelle), 9,
|
|
1128
|
+
}, C(e.libelle), 9, Rt))), 128))], 42, Lt))], 2));
|
|
1144
1129
|
}
|
|
1145
1130
|
//#endregion
|
|
1146
1131
|
//#region src/components/EtapeCategorieBlock.vue
|
|
1147
|
-
var
|
|
1132
|
+
var Bt = {
|
|
1148
1133
|
name: "EtapeCategorieBlock",
|
|
1149
1134
|
components: {
|
|
1150
1135
|
AmsomOverlay: t,
|
|
1151
1136
|
AmsomAutocomplete: O,
|
|
1152
|
-
ReclamantSelecteurBlock: /* @__PURE__ */ F(
|
|
1153
|
-
ProvenanceSelecteurBlock:
|
|
1137
|
+
ReclamantSelecteurBlock: /* @__PURE__ */ F(Mt, [["render", zt]]),
|
|
1138
|
+
ProvenanceSelecteurBlock: wt
|
|
1154
1139
|
},
|
|
1155
1140
|
props: { premiere: {
|
|
1156
1141
|
type: Boolean,
|
|
@@ -1312,40 +1297,40 @@ var Kt = {
|
|
|
1312
1297
|
return this.activeMotifs.find((t) => t.id === e)?.libelle ?? e;
|
|
1313
1298
|
}
|
|
1314
1299
|
}
|
|
1315
|
-
},
|
|
1300
|
+
}, Vt = {
|
|
1316
1301
|
key: 0,
|
|
1317
1302
|
class: "d-flex flex-column gap-3"
|
|
1318
|
-
},
|
|
1303
|
+
}, Ht = { key: 2 }, Ut = { class: "d-flex flex-wrap align-items-center gap-2" }, Wt = { class: "badge rounded-pill bg-primary d-inline-flex align-items-center gap-2" }, Gt = { key: 3 }, Kt = { class: "d-flex align-items-center gap-2" }, qt = { class: "min-w-0" }, Jt = { class: "fw-medium text-truncate" }, Yt = { class: "text-muted d-block text-truncate" }, Xt = {
|
|
1319
1304
|
key: 4,
|
|
1320
1305
|
class: "d-flex align-items-center gap-2 text-muted fs-7"
|
|
1321
|
-
},
|
|
1306
|
+
}, Zt = {
|
|
1322
1307
|
key: 5,
|
|
1323
1308
|
class: "d-flex flex-wrap align-items-center gap-2"
|
|
1324
|
-
},
|
|
1309
|
+
}, Qt = ["onClick"], $t = { key: 6 }, en = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-2" }, tn = { class: "row justify-content-around g-3" }, nn = ["title", "onClick"], rn = { class: "fs-7 mt-1 lh-sm" }, an = {
|
|
1325
1310
|
key: 0,
|
|
1326
1311
|
class: "col-12 text-muted fs-7"
|
|
1327
|
-
},
|
|
1312
|
+
}, on = [
|
|
1328
1313
|
"id",
|
|
1329
1314
|
"checked",
|
|
1330
1315
|
"disabled",
|
|
1331
1316
|
"onChange"
|
|
1332
|
-
],
|
|
1333
|
-
function
|
|
1317
|
+
], sn = ["for"];
|
|
1318
|
+
function cn(e, t, r, c, d, f) {
|
|
1334
1319
|
let p = S("provenance-selecteur-block"), m = S("reclamant-selecteur-block"), h = S("font-awesome-icon"), _ = S("amsom-autocomplete"), v = S("amsom-overlay");
|
|
1335
1320
|
return g(), i(v, { loading: c.data.isLoading && !c.data.cache.motifs || !d.iconsReady }, {
|
|
1336
|
-
default: E(() => [d.iconsReady ? (g(), o("div",
|
|
1321
|
+
default: E(() => [d.iconsReady ? (g(), o("div", Vt, [
|
|
1337
1322
|
r.premiere ? (g(), i(p, { key: 0 })) : a("", !0),
|
|
1338
1323
|
c.options.reclamantMode === "step" ? a("", !0) : (g(), i(m, { key: 1 })),
|
|
1339
|
-
f.motifFige && f.selectionChain.length ? (g(), o("div",
|
|
1324
|
+
f.motifFige && f.selectionChain.length ? (g(), o("div", Ht, [t[1] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Motif", -1), s("div", Ut, [(g(!0), o(n, null, b(f.selectionChain, (e, t) => (g(), o(n, { key: e.level }, [t > 0 ? (g(), i(h, {
|
|
1340
1325
|
key: 0,
|
|
1341
1326
|
icon: "fa-solid fa-chevron-right",
|
|
1342
1327
|
class: "text-muted fs-7"
|
|
1343
|
-
})) : a("", !0), s("span",
|
|
1328
|
+
})) : a("", !0), s("span", Wt, [e.icon ? (g(), i(h, {
|
|
1344
1329
|
key: 0,
|
|
1345
1330
|
icon: e.icon,
|
|
1346
1331
|
"fixed-width": ""
|
|
1347
1332
|
}, null, 8, ["icon"])) : a("", !0), l(" " + C(e.libelle), 1)])], 64))), 128))])])) : a("", !0),
|
|
1348
|
-
f.motifFige ? a("", !0) : (g(), o("div",
|
|
1333
|
+
f.motifFige ? a("", !0) : (g(), o("div", Gt, [t[2] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Rechercher un motif ", -1), u(_, {
|
|
1349
1334
|
modelValue: f.motifRecherche,
|
|
1350
1335
|
"onUpdate:modelValue": t[0] ||= (e) => f.motifRecherche = e,
|
|
1351
1336
|
items: f.allowedMotifs,
|
|
@@ -1357,12 +1342,12 @@ function mn(e, t, r, c, d, f) {
|
|
|
1357
1342
|
"input-size": "sm",
|
|
1358
1343
|
"hide-choices": ""
|
|
1359
1344
|
}, {
|
|
1360
|
-
options: E((e) => [s("div",
|
|
1345
|
+
options: E((e) => [s("div", Kt, [e?.icon ? (g(), i(h, {
|
|
1361
1346
|
key: 0,
|
|
1362
1347
|
icon: e.icon,
|
|
1363
1348
|
class: "text-primary",
|
|
1364
1349
|
"fixed-width": ""
|
|
1365
|
-
}, null, 8, ["icon"])) : a("", !0), s("div",
|
|
1350
|
+
}, null, 8, ["icon"])) : a("", !0), s("div", qt, [s("div", Jt, C(e?.libelle), 1), s("small", Yt, C(e?.categorie) + " › " + C(e?.type) + " › " + C(e?.nature), 1)])])]),
|
|
1366
1351
|
_: 1
|
|
1367
1352
|
}, 8, [
|
|
1368
1353
|
"modelValue",
|
|
@@ -1372,12 +1357,12 @@ function mn(e, t, r, c, d, f) {
|
|
|
1372
1357
|
"get-input-libelle-from-id",
|
|
1373
1358
|
"filtering-function"
|
|
1374
1359
|
])])),
|
|
1375
|
-
f.motifFige ? a("", !0) : (g(), o("div",
|
|
1360
|
+
f.motifFige ? a("", !0) : (g(), o("div", Xt, [...t[3] ||= [
|
|
1376
1361
|
s("hr", { class: "flex-grow-1 my-0" }, null, -1),
|
|
1377
1362
|
s("span", null, "ou sélection guidée", -1),
|
|
1378
1363
|
s("hr", { class: "flex-grow-1 my-0" }, null, -1)
|
|
1379
1364
|
]])),
|
|
1380
|
-
!f.motifFige && f.selectionChain.length ? (g(), o("div",
|
|
1365
|
+
!f.motifFige && f.selectionChain.length ? (g(), o("div", Zt, [(g(!0), o(n, null, b(f.selectionChain, (e, t) => (g(), o(n, { key: e.level }, [t > 0 ? (g(), i(h, {
|
|
1381
1366
|
key: 0,
|
|
1382
1367
|
icon: "fa-solid fa-chevron-right",
|
|
1383
1368
|
class: "text-muted fs-7"
|
|
@@ -1396,8 +1381,8 @@ function mn(e, t, r, c, d, f) {
|
|
|
1396
1381
|
icon: "fa-solid fa-xmark",
|
|
1397
1382
|
class: "fs-7 opacity-75"
|
|
1398
1383
|
})
|
|
1399
|
-
], 8,
|
|
1400
|
-
!f.motifFige && f.currentLevel ? (g(), o("div",
|
|
1384
|
+
], 8, Qt)], 64))), 128))])) : a("", !0),
|
|
1385
|
+
!f.motifFige && f.currentLevel ? (g(), o("div", $t, [s("label", en, C(f.currentLevel.title), 1), s("div", tn, [(g(!0), o(n, null, b(f.currentLevel.options, (e) => (g(), o("div", {
|
|
1401
1386
|
key: e.id,
|
|
1402
1387
|
class: "col-3 text-center"
|
|
1403
1388
|
}, [s("button", {
|
|
@@ -1409,7 +1394,7 @@ function mn(e, t, r, c, d, f) {
|
|
|
1409
1394
|
key: 0,
|
|
1410
1395
|
icon: e.icon,
|
|
1411
1396
|
size: "lg"
|
|
1412
|
-
}, null, 8, ["icon"])) : a("", !0)], 8,
|
|
1397
|
+
}, null, 8, ["icon"])) : a("", !0)], 8, nn), s("div", rn, C(e.libelle), 1)]))), 128)), f.currentLevel.options.length ? a("", !0) : (g(), o("div", an, " Aucun choix disponible "))])])) : a("", !0),
|
|
1413
1398
|
f.motifsAssocies.length ? (g(), o(n, { key: 7 }, [t[4] ||= s("div", { class: "d-flex align-items-center gap-2 text-muted fs-7" }, [
|
|
1414
1399
|
s("hr", { class: "flex-grow-1 my-0" }),
|
|
1415
1400
|
s("span", null, "Autres motifs liés"),
|
|
@@ -1424,15 +1409,15 @@ function mn(e, t, r, c, d, f) {
|
|
|
1424
1409
|
checked: f.isActive(e.idMotif),
|
|
1425
1410
|
disabled: f.motifFige,
|
|
1426
1411
|
onChange: (t) => f.toggleMotifAssocie(e)
|
|
1427
|
-
}, null, 40,
|
|
1412
|
+
}, null, 40, on), s("label", {
|
|
1428
1413
|
class: "form-check-label fs-7",
|
|
1429
1414
|
for: `assoc-${e.idMotif}`
|
|
1430
|
-
}, C(e.libelle) + " ? ", 9,
|
|
1415
|
+
}, C(e.libelle) + " ? ", 9, sn)]))), 128))], 64)) : a("", !0)
|
|
1431
1416
|
])) : a("", !0)]),
|
|
1432
1417
|
_: 1
|
|
1433
1418
|
}, 8, ["loading"]);
|
|
1434
1419
|
}
|
|
1435
|
-
var
|
|
1420
|
+
var ln = /*#__PURE__*/ F(Bt, [["render", cn]]), un = {
|
|
1436
1421
|
B: "briefcase",
|
|
1437
1422
|
M: "store",
|
|
1438
1423
|
W: "dungeon",
|
|
@@ -1442,15 +1427,15 @@ var hn = /*#__PURE__*/ F(Kt, [["render", mn]]), gn = {
|
|
|
1442
1427
|
S: "square-parking",
|
|
1443
1428
|
V: "hands-holding"
|
|
1444
1429
|
};
|
|
1445
|
-
function
|
|
1446
|
-
return e === "L" ? t ? "building" : "house" :
|
|
1430
|
+
function dn(e, t = !1, n = "circle-question") {
|
|
1431
|
+
return e === "L" ? t ? "building" : "house" : un[e] ?? n;
|
|
1447
1432
|
}
|
|
1448
|
-
function
|
|
1433
|
+
function fn(e) {
|
|
1449
1434
|
return e ? e.idCategorieModule === "L" ? e.estCollectif ? "Appartement" : "Maison" : e.categorieModule ?? "" : "";
|
|
1450
1435
|
}
|
|
1451
1436
|
//#endregion
|
|
1452
1437
|
//#region src/components/CiblePickerBlock.vue
|
|
1453
|
-
var
|
|
1438
|
+
var pn = 0, mn = {
|
|
1454
1439
|
name: "CiblePickerBlock",
|
|
1455
1440
|
components: { AmsomAutocomplete: O },
|
|
1456
1441
|
props: {
|
|
@@ -1482,6 +1467,10 @@ var yn = 0, bn = {
|
|
|
1482
1467
|
type: Boolean,
|
|
1483
1468
|
default: !1
|
|
1484
1469
|
},
|
|
1470
|
+
modulePrecis: {
|
|
1471
|
+
type: Boolean,
|
|
1472
|
+
default: !0
|
|
1473
|
+
},
|
|
1485
1474
|
locataireActuelOption: {
|
|
1486
1475
|
type: Object,
|
|
1487
1476
|
default: null
|
|
@@ -1495,14 +1484,15 @@ var yn = 0, bn = {
|
|
|
1495
1484
|
"select-module",
|
|
1496
1485
|
"select-contrat",
|
|
1497
1486
|
"toggle-contrat-reclamant",
|
|
1498
|
-
"toggle-reprendre-locataire-actuel"
|
|
1487
|
+
"toggle-reprendre-locataire-actuel",
|
|
1488
|
+
"set-module-precis"
|
|
1499
1489
|
],
|
|
1500
1490
|
setup() {
|
|
1501
1491
|
return { data: K() };
|
|
1502
1492
|
},
|
|
1503
1493
|
data() {
|
|
1504
1494
|
return {
|
|
1505
|
-
uid: ++
|
|
1495
|
+
uid: ++pn,
|
|
1506
1496
|
rechercheContrat: "",
|
|
1507
1497
|
contratsTrouves: [],
|
|
1508
1498
|
rechercheEnCours: !1,
|
|
@@ -1524,13 +1514,28 @@ var yn = 0, bn = {
|
|
|
1524
1514
|
}, {
|
|
1525
1515
|
key: "patrimoine",
|
|
1526
1516
|
label: "Du patrimoine",
|
|
1527
|
-
icon: "building"
|
|
1528
|
-
aide: "Une adresse seule pour une partie commune, un module pour un logement précis."
|
|
1517
|
+
icon: "building"
|
|
1529
1518
|
}];
|
|
1530
1519
|
},
|
|
1531
1520
|
currentMode() {
|
|
1532
1521
|
return this.availableModes.find((e) => e.key === this.cibleMode);
|
|
1533
1522
|
},
|
|
1523
|
+
portees() {
|
|
1524
|
+
return [{
|
|
1525
|
+
modulePrecis: !1,
|
|
1526
|
+
icon: "building",
|
|
1527
|
+
titre: "Les parties communes",
|
|
1528
|
+
aide: "Les espaces partagés de l’étage choisi"
|
|
1529
|
+
}, {
|
|
1530
|
+
modulePrecis: !0,
|
|
1531
|
+
icon: "house",
|
|
1532
|
+
titre: "Un module précis",
|
|
1533
|
+
aide: "Un module voisin dans la résidence"
|
|
1534
|
+
}];
|
|
1535
|
+
},
|
|
1536
|
+
afficheModule() {
|
|
1537
|
+
return this.cibleMode === "contrat" || this.modulePrecis;
|
|
1538
|
+
},
|
|
1534
1539
|
contratModules() {
|
|
1535
1540
|
return this.contratReclamant ? this.reclamantModules : this.contratCible ? this.data.modulesOfContrat(this.contratCible) ?? [] : [];
|
|
1536
1541
|
},
|
|
@@ -1648,6 +1653,9 @@ var yn = 0, bn = {
|
|
|
1648
1653
|
contratInputLibelle(e) {
|
|
1649
1654
|
return e ? [e.libelle, `${e.typeContrat}/${e.idContrat}`].filter(Boolean).join(" — ") : "";
|
|
1650
1655
|
},
|
|
1656
|
+
contratAdresse(e) {
|
|
1657
|
+
return [e?.adresse, e?.commune].filter(Boolean).join(", ");
|
|
1658
|
+
},
|
|
1651
1659
|
filterOn(e) {
|
|
1652
1660
|
return ({ search: t, items: n }) => {
|
|
1653
1661
|
let r = (X(t) ?? "").trim();
|
|
@@ -1658,8 +1666,8 @@ var yn = 0, bn = {
|
|
|
1658
1666
|
let n = (X(e) ?? "").trim();
|
|
1659
1667
|
return n ? t.filter((e) => (X(this.moduleInputLibelle(e)) ?? "").includes(n) || (X(e?._autreLibelle) ?? "").includes(n)) : t;
|
|
1660
1668
|
},
|
|
1661
|
-
getCategorieModuleIcon:
|
|
1662
|
-
categorieLibelle:
|
|
1669
|
+
getCategorieModuleIcon: dn,
|
|
1670
|
+
categorieLibelle: fn,
|
|
1663
1671
|
moduleLibelle(e) {
|
|
1664
1672
|
return e ? e.libelleModule ?? e.adresse ?? `Module ${e.idModule}` : "";
|
|
1665
1673
|
},
|
|
@@ -1671,40 +1679,43 @@ var yn = 0, bn = {
|
|
|
1671
1679
|
return !!e?.dateFin && e.dateFin < Math.floor(Date.now() / 1e3);
|
|
1672
1680
|
}
|
|
1673
1681
|
}
|
|
1674
|
-
},
|
|
1682
|
+
}, hn = { class: "d-flex flex-column gap-3" }, gn = {
|
|
1675
1683
|
class: "btn-group w-100",
|
|
1676
1684
|
role: "group"
|
|
1677
|
-
},
|
|
1685
|
+
}, _n = ["onClick"], vn = { class: "text-muted d-block mt-1" }, yn = {
|
|
1678
1686
|
key: 0,
|
|
1679
1687
|
class: "form-check"
|
|
1680
|
-
},
|
|
1688
|
+
}, bn = ["id", "checked"], xn = ["for"], Sn = { key: 1 }, Cn = { class: "min-w-0" }, wn = { class: "fw-medium text-truncate text-capitalize" }, Tn = { class: "d-flex flex-wrap align-items-center gap-1" }, En = { class: "text-muted" }, Dn = {
|
|
1689
|
+
key: 0,
|
|
1690
|
+
class: "badge bg-info"
|
|
1691
|
+
}, On = {
|
|
1681
1692
|
key: 1,
|
|
1682
|
-
class: "
|
|
1683
|
-
},
|
|
1693
|
+
class: "badge bg-warning"
|
|
1694
|
+
}, kn = {
|
|
1695
|
+
key: 0,
|
|
1696
|
+
class: "text-muted d-block text-truncate"
|
|
1697
|
+
}, An = { key: 1 }, jn = { class: "row g-2" }, Mn = ["aria-pressed", "onClick"], Nn = { class: "min-w-0" }, Pn = { class: "d-block fw-semibold fs-6" }, Fn = { class: "d-block text-muted" }, In = {
|
|
1684
1698
|
key: 2,
|
|
1685
|
-
class: "row g-
|
|
1686
|
-
},
|
|
1699
|
+
class: "row g-3"
|
|
1700
|
+
}, Ln = { class: "min-w-0" }, Rn = { class: "fw-medium text-truncate" }, zn = { class: "text-muted d-block text-truncate" }, Bn = ["value"], Vn = ["value"], Hn = ["value"], Un = {
|
|
1687
1701
|
key: 0,
|
|
1688
|
-
class: "
|
|
1689
|
-
},
|
|
1702
|
+
class: "col-12 col-md-6"
|
|
1703
|
+
}, Wn = { class: "d-flex flex-wrap align-items-center gap-1" }, Gn = ["title"], Kn = { class: "text-muted" }, qn = {
|
|
1690
1704
|
key: 1,
|
|
1691
1705
|
class: "d-block text-truncate"
|
|
1692
|
-
},
|
|
1706
|
+
}, Jn = {
|
|
1693
1707
|
key: 2,
|
|
1694
1708
|
class: "text-muted d-block"
|
|
1695
|
-
},
|
|
1709
|
+
}, Yn = {
|
|
1696
1710
|
key: 0,
|
|
1697
|
-
class: "text-muted d-block"
|
|
1698
|
-
}, $n = {
|
|
1699
|
-
key: 1,
|
|
1700
1711
|
class: "mt-2 d-flex flex-column gap-2"
|
|
1701
|
-
},
|
|
1702
|
-
function
|
|
1712
|
+
}, Xn = { class: "form-check mb-0 ms-3" }, Zn = ["id", "checked"], Qn = ["for"];
|
|
1713
|
+
function $n(e, t, r, c, d, f) {
|
|
1703
1714
|
let p = S("font-awesome-icon"), h = S("amsom-autocomplete");
|
|
1704
|
-
return g(), o("div",
|
|
1715
|
+
return g(), o("div", hn, [
|
|
1705
1716
|
s("div", null, [
|
|
1706
1717
|
t[7] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " La sollicitation concerne… ", -1),
|
|
1707
|
-
s("div",
|
|
1718
|
+
s("div", gn, [(g(!0), o(n, null, b(f.availableModes, (t) => (g(), o("button", {
|
|
1708
1719
|
key: t.key,
|
|
1709
1720
|
type: "button",
|
|
1710
1721
|
class: m(["btn btn-sm", r.cibleMode === t.key ? "btn-primary" : "btn-outline-primary"]),
|
|
@@ -1712,19 +1723,19 @@ function rr(e, t, r, c, d, f) {
|
|
|
1712
1723
|
}, [u(p, {
|
|
1713
1724
|
icon: t.icon,
|
|
1714
1725
|
class: "me-1"
|
|
1715
|
-
}, null, 8, ["icon"]), l(" " + C(t.label), 1)], 10,
|
|
1716
|
-
s("small",
|
|
1726
|
+
}, null, 8, ["icon"]), l(" " + C(t.label), 1)], 10, _n))), 128))]),
|
|
1727
|
+
s("small", vn, C(f.currentMode?.aide), 1)
|
|
1717
1728
|
]),
|
|
1718
|
-
r.cibleMode === "contrat" ? (g(), o(n, { key: 0 }, [r.afficheCaseContratReclamant ? (g(), o("div",
|
|
1729
|
+
r.cibleMode === "contrat" ? (g(), o(n, { key: 0 }, [r.afficheCaseContratReclamant ? (g(), o("div", yn, [s("input", {
|
|
1719
1730
|
id: `contrat-reclamant-${d.uid}`,
|
|
1720
1731
|
class: "form-check-input",
|
|
1721
1732
|
type: "checkbox",
|
|
1722
1733
|
checked: r.contratReclamant,
|
|
1723
1734
|
onChange: t[0] ||= (t) => e.$emit("toggle-contrat-reclamant", t.target.checked)
|
|
1724
|
-
}, null, 40,
|
|
1735
|
+
}, null, 40, bn), s("label", {
|
|
1725
1736
|
class: "form-check-label fs-7",
|
|
1726
1737
|
for: `contrat-reclamant-${d.uid}`
|
|
1727
|
-
}, " Contrat du réclamant ", 8,
|
|
1738
|
+
}, " Contrat du réclamant ", 8, xn)])) : a("", !0), r.contratReclamant ? a("", !0) : (g(), o("div", Sn, [t[8] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Contrat ciblé ", -1), u(h, {
|
|
1728
1739
|
modelValue: f.selectedContrat,
|
|
1729
1740
|
"onUpdate:modelValue": t[1] ||= (e) => f.selectedContrat = e,
|
|
1730
1741
|
items: d.contratsTrouves,
|
|
@@ -1738,11 +1749,15 @@ function rr(e, t, r, c, d, f) {
|
|
|
1738
1749
|
"debounce-delay": 0,
|
|
1739
1750
|
onSearch: f.rechercherPlusTard
|
|
1740
1751
|
}, {
|
|
1741
|
-
options: E((e) => [s("div",
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1752
|
+
options: E((e) => [s("div", Cn, [
|
|
1753
|
+
s("div", wn, C(e?.libelle ?? `Contrat ${e?.idContrat}`), 1),
|
|
1754
|
+
s("div", Tn, [
|
|
1755
|
+
s("small", En, "N° " + C(e?.typeContrat) + "/" + C(e?.idContrat), 1),
|
|
1756
|
+
e?.nbModules > 1 ? (g(), o("span", Dn, C(e.nbModules) + " modules", 1)) : a("", !0),
|
|
1757
|
+
e?.estSorti ? (g(), o("span", On, "Sorti")) : a("", !0)
|
|
1758
|
+
]),
|
|
1759
|
+
f.contratAdresse(e) ? (g(), o("small", kn, C(f.contratAdresse(e)), 1)) : a("", !0)
|
|
1760
|
+
])]),
|
|
1746
1761
|
_: 1
|
|
1747
1762
|
}, 8, [
|
|
1748
1763
|
"modelValue",
|
|
@@ -1753,8 +1768,21 @@ function rr(e, t, r, c, d, f) {
|
|
|
1753
1768
|
"get-input-libelle",
|
|
1754
1769
|
"onSearch"
|
|
1755
1770
|
])]))], 64)) : a("", !0),
|
|
1756
|
-
r.cibleMode === "patrimoine" ? (g(), o(
|
|
1757
|
-
|
|
1771
|
+
r.cibleMode === "patrimoine" ? (g(), o("div", An, [t[9] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Le problème concerne… ", -1), s("div", jn, [(g(!0), o(n, null, b(f.portees, (t) => (g(), o("div", {
|
|
1772
|
+
key: t.titre,
|
|
1773
|
+
class: "col-12 col-md-6"
|
|
1774
|
+
}, [s("button", {
|
|
1775
|
+
type: "button",
|
|
1776
|
+
class: m(["btn w-100 h-100 text-start d-flex align-items-center gap-3 p-3 rounded border text-primary", t.modulePrecis === r.modulePrecis ? "border-primary bg-light" : "bg-white"]),
|
|
1777
|
+
"aria-pressed": t.modulePrecis === r.modulePrecis,
|
|
1778
|
+
onClick: (n) => e.$emit("set-module-precis", t.modulePrecis)
|
|
1779
|
+
}, [u(p, {
|
|
1780
|
+
icon: t.icon,
|
|
1781
|
+
class: "fs-4",
|
|
1782
|
+
"fixed-width": ""
|
|
1783
|
+
}, null, 8, ["icon"]), s("span", Nn, [s("span", Pn, C(t.titre), 1), s("small", Fn, C(t.aide), 1)])], 10, Mn)]))), 128))])])) : a("", !0),
|
|
1784
|
+
r.cibleMode === "contrat" || r.cibleMode === "patrimoine" ? (g(), o("div", In, [s("div", { class: m(["col-12 d-flex flex-column gap-3", { "col-md-6": f.afficheModule }]) }, [r.cibleMode === "patrimoine" ? (g(), o(n, { key: 0 }, [
|
|
1785
|
+
s("div", null, [t[10] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Commune ", -1), u(h, {
|
|
1758
1786
|
modelValue: f.selectedCommune,
|
|
1759
1787
|
"onUpdate:modelValue": t[2] ||= (e) => f.selectedCommune = e,
|
|
1760
1788
|
items: c.data.cache.communes || [],
|
|
@@ -1771,7 +1799,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1771
1799
|
"get-input-libelle",
|
|
1772
1800
|
"filtering-function"
|
|
1773
1801
|
])]),
|
|
1774
|
-
s("div", null, [t[
|
|
1802
|
+
s("div", null, [t[11] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Adresse ", -1), u(h, {
|
|
1775
1803
|
modelValue: f.selectedAdresse,
|
|
1776
1804
|
"onUpdate:modelValue": t[3] ||= (e) => f.selectedAdresse = e,
|
|
1777
1805
|
items: f.adresses,
|
|
@@ -1783,7 +1811,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1783
1811
|
"input-size": "sm",
|
|
1784
1812
|
"hide-choices": ""
|
|
1785
1813
|
}, {
|
|
1786
|
-
options: E((e) => [s("div",
|
|
1814
|
+
options: E((e) => [s("div", Ln, [s("div", Rn, C(e?.entree), 1), s("small", zn, C(e?.commune) + " — Programme " + C(e?.codeProgramme), 1)])]),
|
|
1787
1815
|
_: 1
|
|
1788
1816
|
}, 8, [
|
|
1789
1817
|
"modelValue",
|
|
@@ -1793,7 +1821,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1793
1821
|
"filtering-function",
|
|
1794
1822
|
"disabled"
|
|
1795
1823
|
])]),
|
|
1796
|
-
s("div", null, [t[
|
|
1824
|
+
s("div", null, [t[12] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Étage", -1), u(h, {
|
|
1797
1825
|
modelValue: f.selectedEtage,
|
|
1798
1826
|
"onUpdate:modelValue": t[4] ||= (e) => f.selectedEtage = e,
|
|
1799
1827
|
items: f.etages,
|
|
@@ -1810,26 +1838,24 @@ function rr(e, t, r, c, d, f) {
|
|
|
1810
1838
|
"get-input-libelle",
|
|
1811
1839
|
"disabled"
|
|
1812
1840
|
])])
|
|
1813
|
-
], 64)) :
|
|
1814
|
-
|
|
1815
|
-
s("div", Rn, [t[12] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Commune", -1), s("input", {
|
|
1841
|
+
], 64)) : (g(), o(n, { key: 1 }, [
|
|
1842
|
+
s("div", null, [t[13] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Commune ", -1), s("input", {
|
|
1816
1843
|
class: "form-control form-control-sm",
|
|
1817
1844
|
disabled: "",
|
|
1818
1845
|
value: r.patrimoine.commune ?? "—"
|
|
1819
|
-
}, null, 8,
|
|
1820
|
-
s("div",
|
|
1846
|
+
}, null, 8, Bn)]),
|
|
1847
|
+
s("div", null, [t[14] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Adresse ", -1), s("input", {
|
|
1821
1848
|
class: "form-control form-control-sm",
|
|
1822
1849
|
disabled: "",
|
|
1823
1850
|
value: r.patrimoine.entree ?? "—"
|
|
1824
1851
|
}, null, 8, Vn)]),
|
|
1825
|
-
s("div",
|
|
1852
|
+
s("div", null, [t[15] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Étage", -1), s("input", {
|
|
1826
1853
|
class: "form-control form-control-sm",
|
|
1827
1854
|
disabled: "",
|
|
1828
1855
|
value: r.patrimoine.etage ?? "—"
|
|
1829
|
-
}, null, 8,
|
|
1830
|
-
]))
|
|
1831
|
-
|
|
1832
|
-
s("label", Gn, [t[15] ||= l(" Module ", -1), r.cibleMode === "patrimoine" ? (g(), o("span", Kn, "(facultatif)")) : a("", !0)]),
|
|
1856
|
+
}, null, 8, Hn)])
|
|
1857
|
+
], 64))], 2), f.afficheModule ? (g(), o("div", Un, [
|
|
1858
|
+
t[16] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Module", -1),
|
|
1833
1859
|
u(h, {
|
|
1834
1860
|
modelValue: f.selectedModule,
|
|
1835
1861
|
"onUpdate:modelValue": t[5] ||= (e) => f.selectedModule = e,
|
|
@@ -1850,12 +1876,12 @@ function rr(e, t, r, c, d, f) {
|
|
|
1850
1876
|
title: "Autre adresse ou étage du même programme"
|
|
1851
1877
|
})) : a("", !0),
|
|
1852
1878
|
s("div", { class: m(["fw-medium text-truncate", [e?._autreLibelle ? "text-muted" : "", f.isExit(e) ? "text-decoration-line-through" : ""]]) }, C(f.moduleLibelle(e)), 3),
|
|
1853
|
-
s("div",
|
|
1879
|
+
s("div", Wn, [f.categorieLibelle(e) ? (g(), o("span", {
|
|
1854
1880
|
key: 0,
|
|
1855
1881
|
class: "badge bg-info",
|
|
1856
1882
|
title: e?.categorieModule
|
|
1857
|
-
}, [u(p, { icon: f.getCategorieModuleIcon(e?.idCategorieModule, e?.estCollectif) }, null, 8, ["icon"])], 8,
|
|
1858
|
-
e?._autreLibelle ? (g(), o("small",
|
|
1883
|
+
}, [u(p, { icon: f.getCategorieModuleIcon(e?.idCategorieModule, e?.estCollectif) }, null, 8, ["icon"])], 8, Gn)) : a("", !0), s("small", Kn, "N° " + C(e?.idModule), 1)]),
|
|
1884
|
+
e?._autreLibelle ? (g(), o("small", qn, C(e._autreLibelle), 1)) : e?.etage == null ? a("", !0) : (g(), o("small", Jn, " Étage " + C(e.etage), 1))
|
|
1859
1885
|
], 2)]),
|
|
1860
1886
|
_: 1
|
|
1861
1887
|
}, 8, [
|
|
@@ -1866,30 +1892,29 @@ function rr(e, t, r, c, d, f) {
|
|
|
1866
1892
|
"filtering-function",
|
|
1867
1893
|
"disabled"
|
|
1868
1894
|
]),
|
|
1869
|
-
r.
|
|
1870
|
-
r.locataireActuelOption ? (g(), o("div", $n, [s("div", { class: m(["alert d-flex align-items-start gap-2 py-2 px-3 mt-2 mb-0 fs-7", r.locataireActuelOption.reprendre ? "alert-warning" : "alert-secondary border"]) }, [u(p, {
|
|
1895
|
+
r.locataireActuelOption ? (g(), o("div", Yn, [s("div", { class: m(["alert d-flex align-items-start gap-2 py-2 px-3 mt-2 mb-0 fs-7", r.locataireActuelOption.reprendre ? "alert-warning" : "alert-secondary border"]) }, [u(p, {
|
|
1871
1896
|
icon: "circle-info",
|
|
1872
1897
|
class: "mt-1"
|
|
1873
|
-
}), s("span", null, C(r.locataireActuelOption.hint), 1)], 2), s("div",
|
|
1898
|
+
}), s("span", null, C(r.locataireActuelOption.hint), 1)], 2), s("div", Xn, [s("input", {
|
|
1874
1899
|
id: `locataire-actuel-${d.uid}`,
|
|
1875
1900
|
class: "form-check-input",
|
|
1876
1901
|
type: "checkbox",
|
|
1877
1902
|
checked: r.locataireActuelOption.reprendre,
|
|
1878
1903
|
onChange: t[6] ||= (t) => e.$emit("toggle-reprendre-locataire-actuel", t.target.checked)
|
|
1879
|
-
}, null, 40,
|
|
1904
|
+
}, null, 40, Zn), s("label", {
|
|
1880
1905
|
class: "form-check-label fs-7",
|
|
1881
1906
|
for: `locataire-actuel-${d.uid}`
|
|
1882
|
-
}, " Rattacher au locataire actuel du module ", 8,
|
|
1883
|
-
])) : a("", !0)
|
|
1907
|
+
}, " Rattacher au locataire actuel du module ", 8, Qn)])])) : a("", !0)
|
|
1908
|
+
])) : a("", !0)])) : a("", !0)
|
|
1884
1909
|
]);
|
|
1885
1910
|
}
|
|
1886
1911
|
//#endregion
|
|
1887
1912
|
//#region src/components/EtapeCibleBlock.vue
|
|
1888
|
-
var
|
|
1913
|
+
var er = {
|
|
1889
1914
|
name: "EtapeCibleBlock",
|
|
1890
1915
|
components: {
|
|
1891
1916
|
AmsomOverlay: t,
|
|
1892
|
-
CiblePickerBlock: /* @__PURE__ */ F(
|
|
1917
|
+
CiblePickerBlock: /* @__PURE__ */ F(mn, [["render", $n]])
|
|
1893
1918
|
},
|
|
1894
1919
|
setup() {
|
|
1895
1920
|
return {
|
|
@@ -1937,6 +1962,7 @@ var ir = {
|
|
|
1937
1962
|
reclamantType: this.reclamantType,
|
|
1938
1963
|
contratReclamant: e.contratReclamant,
|
|
1939
1964
|
contratCible: e.contratCible,
|
|
1965
|
+
modulePrecis: e.modulePrecis,
|
|
1940
1966
|
afficheCaseContratReclamant: this.draft.reclamantEstContrat,
|
|
1941
1967
|
locataireActuelOption: this.locataireActuelOption(e)
|
|
1942
1968
|
};
|
|
@@ -1994,32 +2020,32 @@ var ir = {
|
|
|
1994
2020
|
e === "contrat" ? this.draft.prefillFromModule(t, this.mainModule) : this.mainModule && (this.draft.prefillFromModule(t, this.mainModule), this.mainModule.idCommune != null && await this.data.loadAdresses(this.mainModule.idCommune), this.mainModule.codeProgramme != null && await this.data.loadModulesOfProgramme(this.mainModule.codeProgramme));
|
|
1995
2021
|
}
|
|
1996
2022
|
}
|
|
1997
|
-
},
|
|
2023
|
+
}, tr = { class: "d-flex flex-column gap-3" }, nr = {
|
|
1998
2024
|
key: 0,
|
|
1999
2025
|
class: "alert alert-light border py-2 px-3 mb-0 d-flex align-items-center gap-2"
|
|
2000
|
-
},
|
|
2026
|
+
}, rr = { class: "fs-7" }, ir = {
|
|
2001
2027
|
key: 1,
|
|
2002
2028
|
class: "d-flex flex-column gap-1"
|
|
2003
|
-
},
|
|
2029
|
+
}, ar = {
|
|
2004
2030
|
key: 0,
|
|
2005
2031
|
class: "text-muted me-1"
|
|
2006
|
-
},
|
|
2032
|
+
}, or = { class: "d-flex align-items-center gap-2" }, sr = { class: "fw-medium fs-7" }, cr = { class: "form-check form-switch mb-0" }, lr = [
|
|
2007
2033
|
"id",
|
|
2008
2034
|
"checked",
|
|
2009
2035
|
"onChange"
|
|
2010
|
-
],
|
|
2036
|
+
], ur = ["for"], dr = {
|
|
2011
2037
|
key: 0,
|
|
2012
2038
|
class: "mt-2"
|
|
2013
2039
|
};
|
|
2014
|
-
function
|
|
2040
|
+
function fr(e, t, r, c, d, f) {
|
|
2015
2041
|
let m = S("font-awesome-icon"), h = S("cible-picker-block"), _ = S("amsom-overlay");
|
|
2016
2042
|
return g(), i(_, { loading: c.data.isLoading }, {
|
|
2017
|
-
default: E(() => [s("div",
|
|
2018
|
-
f.motifLibelle ? (g(), o("div",
|
|
2043
|
+
default: E(() => [s("div", tr, [
|
|
2044
|
+
f.motifLibelle ? (g(), o("div", nr, [u(m, {
|
|
2019
2045
|
icon: "tag",
|
|
2020
2046
|
class: "text-primary"
|
|
2021
|
-
}), s("span",
|
|
2022
|
-
f.cibleFigee ? (g(), o("div",
|
|
2047
|
+
}), s("span", rr, [t[9] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1), l(C(f.motifLibelle), 1)])])) : a("", !0),
|
|
2048
|
+
f.cibleFigee ? (g(), o("div", ir, [(g(!0), o(n, null, b(c.draft.draft.lignes, (e, t) => (g(), o("span", {
|
|
2023
2049
|
key: t,
|
|
2024
2050
|
class: "fs-7"
|
|
2025
2051
|
}, [
|
|
@@ -2027,7 +2053,7 @@ function gr(e, t, r, c, d, f) {
|
|
|
2027
2053
|
icon: "location-dot",
|
|
2028
2054
|
class: "text-primary me-2"
|
|
2029
2055
|
}),
|
|
2030
|
-
f.lignesAssociees.length ? (g(), o("span",
|
|
2056
|
+
f.lignesAssociees.length ? (g(), o("span", ar, C(t === 0 ? f.motifLibelle : e.libelle) + " : ", 1)) : a("", !0),
|
|
2031
2057
|
l(" " + C(c.draft.cibleResume(e)), 1)
|
|
2032
2058
|
]))), 128))])) : (g(), i(h, p({ key: 2 }, f.pickerProps(f.lignePrincipale), {
|
|
2033
2059
|
onChangeMode: t[0] ||= (e) => f.onChangeMode(e),
|
|
@@ -2037,25 +2063,26 @@ function gr(e, t, r, c, d, f) {
|
|
|
2037
2063
|
onSelectModule: t[4] ||= (e) => f.onSelectModule(e),
|
|
2038
2064
|
onSelectContrat: t[5] ||= (e) => f.onSelectContrat(e),
|
|
2039
2065
|
onToggleContratReclamant: t[6] ||= (e) => f.onToggleContratReclamant(e),
|
|
2040
|
-
onToggleReprendreLocataireActuel: t[7] ||= (e) => f.onToggleReprendre(e)
|
|
2066
|
+
onToggleReprendreLocataireActuel: t[7] ||= (e) => f.onToggleReprendre(e),
|
|
2067
|
+
onSetModulePrecis: t[8] ||= (e) => c.draft.setModulePrecis(0, e)
|
|
2041
2068
|
}), null, 16)),
|
|
2042
|
-
!f.cibleFigee && f.lignesAssociees.length && f.reclamantType !== "D" ? (g(), o(n, { key: 3 }, [t[
|
|
2069
|
+
!f.cibleFigee && f.lignesAssociees.length && f.reclamantType !== "D" ? (g(), o(n, { key: 3 }, [t[10] ||= s("div", { class: "d-flex align-items-center gap-2 text-muted fs-7" }, [
|
|
2043
2070
|
s("hr", { class: "flex-grow-1 my-0" }),
|
|
2044
2071
|
s("span", null, "Cible des autres motifs"),
|
|
2045
2072
|
s("hr", { class: "flex-grow-1 my-0" })
|
|
2046
2073
|
], -1), (g(!0), o(n, null, b(f.lignesAssociees, (e, t) => (g(), o("div", {
|
|
2047
2074
|
key: e.idMotif,
|
|
2048
2075
|
class: "border rounded p-2"
|
|
2049
|
-
}, [s("div",
|
|
2076
|
+
}, [s("div", or, [s("span", sr, C(e.libelle), 1), s("div", cr, [s("input", {
|
|
2050
2077
|
id: `memecible-${e.idMotif}`,
|
|
2051
2078
|
class: "form-check-input",
|
|
2052
2079
|
type: "checkbox",
|
|
2053
2080
|
checked: !e.patrimoine,
|
|
2054
2081
|
onChange: (e) => c.draft.toggleCibleOverride(t + 1)
|
|
2055
|
-
}, null, 40,
|
|
2082
|
+
}, null, 40, lr), s("label", {
|
|
2056
2083
|
class: "form-check-label fs-7",
|
|
2057
2084
|
for: `memecible-${e.idMotif}`
|
|
2058
|
-
}, " Même cible que la ligne principale ", 8,
|
|
2085
|
+
}, " Même cible que la ligne principale ", 8, ur)])]), e.patrimoine ? (g(), o("div", dr, [u(h, p({ ref_for: !0 }, f.pickerProps(e), {
|
|
2059
2086
|
onChangeMode: (e) => f.onChangeMode(e, t + 1),
|
|
2060
2087
|
onSelectCommune: (e) => f.onSelectCommune(e, t + 1),
|
|
2061
2088
|
onSelectAdresse: (e) => f.onSelectAdresse(e, t + 1),
|
|
@@ -2063,7 +2090,8 @@ function gr(e, t, r, c, d, f) {
|
|
|
2063
2090
|
onSelectModule: (e) => f.onSelectModule(e, t + 1),
|
|
2064
2091
|
onSelectContrat: (e) => f.onSelectContrat(e, t + 1),
|
|
2065
2092
|
onToggleContratReclamant: (e) => f.onToggleContratReclamant(e, t + 1),
|
|
2066
|
-
onToggleReprendreLocataireActuel: (e) => f.onToggleReprendre(e, t + 1)
|
|
2093
|
+
onToggleReprendreLocataireActuel: (e) => f.onToggleReprendre(e, t + 1),
|
|
2094
|
+
onSetModulePrecis: (e) => c.draft.setModulePrecis(t + 1, e)
|
|
2067
2095
|
}), null, 16, [
|
|
2068
2096
|
"onChangeMode",
|
|
2069
2097
|
"onSelectCommune",
|
|
@@ -2072,13 +2100,14 @@ function gr(e, t, r, c, d, f) {
|
|
|
2072
2100
|
"onSelectModule",
|
|
2073
2101
|
"onSelectContrat",
|
|
2074
2102
|
"onToggleContratReclamant",
|
|
2075
|
-
"onToggleReprendreLocataireActuel"
|
|
2103
|
+
"onToggleReprendreLocataireActuel",
|
|
2104
|
+
"onSetModulePrecis"
|
|
2076
2105
|
])])) : a("", !0)]))), 128))], 64)) : a("", !0)
|
|
2077
2106
|
])]),
|
|
2078
2107
|
_: 1
|
|
2079
2108
|
}, 8, ["loading"]);
|
|
2080
2109
|
}
|
|
2081
|
-
var
|
|
2110
|
+
var pr = /*#__PURE__*/ F(er, [["render", fr]]), mr = {
|
|
2082
2111
|
name: "LigneDocumentBlock",
|
|
2083
2112
|
components: { AmsomUploadFile: se },
|
|
2084
2113
|
props: {
|
|
@@ -2097,7 +2126,7 @@ var _r = /*#__PURE__*/ F(ir, [["render", gr]]), vr = {
|
|
|
2097
2126
|
},
|
|
2098
2127
|
emits: ["update"]
|
|
2099
2128
|
};
|
|
2100
|
-
function
|
|
2129
|
+
function hr(e, t, n, r, i, a) {
|
|
2101
2130
|
let c = S("amsom-upload-file");
|
|
2102
2131
|
return g(), o("div", null, [t[1] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Document", -1), u(c, {
|
|
2103
2132
|
"model-value": n.fichier,
|
|
@@ -2113,23 +2142,23 @@ function yr(e, t, n, r, i, a) {
|
|
|
2113
2142
|
"read-only"
|
|
2114
2143
|
])]);
|
|
2115
2144
|
}
|
|
2116
|
-
var
|
|
2145
|
+
var gr = /*#__PURE__*/ F(mr, [["render", hr]]);
|
|
2117
2146
|
//#endregion
|
|
2118
2147
|
//#region src/utils/date.js
|
|
2119
|
-
function
|
|
2148
|
+
function _r(e) {
|
|
2120
2149
|
return e == null ? "" : (/* @__PURE__ */ new Date(e * 1e3)).toISOString().slice(0, 10);
|
|
2121
2150
|
}
|
|
2122
|
-
function
|
|
2151
|
+
function vr(e) {
|
|
2123
2152
|
return e ? Math.floor(new Date(e).getTime() / 1e3) : null;
|
|
2124
2153
|
}
|
|
2125
2154
|
//#endregion
|
|
2126
2155
|
//#region src/components/LigneDetailBlock.vue
|
|
2127
|
-
var
|
|
2156
|
+
var yr = 4e3, br = {
|
|
2128
2157
|
name: "LigneDetailBlock",
|
|
2129
2158
|
components: {
|
|
2130
2159
|
AmsomAutocomplete: O,
|
|
2131
2160
|
AmsomTextarea: oe,
|
|
2132
|
-
LigneDocumentBlock:
|
|
2161
|
+
LigneDocumentBlock: gr
|
|
2133
2162
|
},
|
|
2134
2163
|
props: { index: {
|
|
2135
2164
|
type: Number,
|
|
@@ -2142,7 +2171,7 @@ var Cr = 4e3, wr = {
|
|
|
2142
2171
|
};
|
|
2143
2172
|
},
|
|
2144
2173
|
computed: {
|
|
2145
|
-
descriptionMaxLength: () =>
|
|
2174
|
+
descriptionMaxLength: () => yr,
|
|
2146
2175
|
isPrincipale() {
|
|
2147
2176
|
return this.index === 0;
|
|
2148
2177
|
},
|
|
@@ -2160,8 +2189,8 @@ var Cr = 4e3, wr = {
|
|
|
2160
2189
|
}
|
|
2161
2190
|
},
|
|
2162
2191
|
methods: {
|
|
2163
|
-
timestampToDateInput:
|
|
2164
|
-
dateInputToTimestamp:
|
|
2192
|
+
timestampToDateInput: _r,
|
|
2193
|
+
dateInputToTimestamp: vr,
|
|
2165
2194
|
responsableLibelle(e) {
|
|
2166
2195
|
let t = e && typeof e != "object" ? this.collaborateurs.find((t) => String(t.id) === String(e)) : e;
|
|
2167
2196
|
return t ? `${t.prenom} ${t.nom}` : "";
|
|
@@ -2171,53 +2200,53 @@ var Cr = 4e3, wr = {
|
|
|
2171
2200
|
return n ? t.filter((e) => (X(`${e.prenom} ${e.nom} ${e.service}`) ?? "").includes(n)) : t;
|
|
2172
2201
|
}
|
|
2173
2202
|
}
|
|
2174
|
-
},
|
|
2203
|
+
}, xr = { class: "d-flex flex-column gap-2" }, Sr = { class: "d-flex align-items-center gap-2 mb-1" }, Cr = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-0" }, wr = {
|
|
2175
2204
|
key: 0,
|
|
2176
2205
|
class: "ms-1 text-danger"
|
|
2177
|
-
},
|
|
2206
|
+
}, Tr = {
|
|
2178
2207
|
key: 0,
|
|
2179
2208
|
class: "form-check form-switch mb-0"
|
|
2180
|
-
},
|
|
2209
|
+
}, Er = [
|
|
2181
2210
|
"id",
|
|
2182
2211
|
"checked",
|
|
2183
2212
|
"disabled"
|
|
2184
|
-
],
|
|
2213
|
+
], Dr = ["for"], Or = {
|
|
2185
2214
|
key: 1,
|
|
2186
2215
|
class: "text-muted d-block",
|
|
2187
2216
|
style: { "white-space": "pre-line" }
|
|
2188
|
-
},
|
|
2217
|
+
}, kr = { class: "row g-3" }, Ar = { class: "col-6" }, jr = { class: "d-flex align-items-center gap-2 mb-1" }, Mr = {
|
|
2189
2218
|
key: 0,
|
|
2190
2219
|
class: "form-check form-switch mb-0"
|
|
2191
|
-
},
|
|
2220
|
+
}, Nr = [
|
|
2192
2221
|
"id",
|
|
2193
2222
|
"checked",
|
|
2194
2223
|
"disabled"
|
|
2195
|
-
],
|
|
2224
|
+
], Pr = ["for"], Fr = ["value"], Ir = {
|
|
2196
2225
|
key: 1,
|
|
2197
2226
|
class: "text-muted d-block"
|
|
2198
|
-
},
|
|
2227
|
+
}, Lr = {
|
|
2199
2228
|
key: 0,
|
|
2200
2229
|
class: "text-muted d-block"
|
|
2201
|
-
},
|
|
2230
|
+
}, Rr = { class: "min-w-0" }, zr = { class: "fw-medium text-truncate" }, Br = {
|
|
2202
2231
|
key: 0,
|
|
2203
2232
|
class: "text-muted d-block"
|
|
2204
|
-
},
|
|
2233
|
+
}, Vr = {
|
|
2205
2234
|
key: 2,
|
|
2206
2235
|
class: "text-muted"
|
|
2207
|
-
},
|
|
2208
|
-
function
|
|
2236
|
+
}, Hr = { class: "col-12 col-md-6" };
|
|
2237
|
+
function Ur(e, t, n, r, c, d) {
|
|
2209
2238
|
let f = S("amsom-textarea"), p = S("amsom-autocomplete"), m = S("ligne-document-block");
|
|
2210
|
-
return g(), o("div",
|
|
2239
|
+
return g(), o("div", xr, [s("div", null, [s("div", Sr, [s("label", Cr, [t[6] ||= l(" Description", -1), d.isPrincipale ? (g(), o("span", wr, "*")) : a("", !0)]), d.isPrincipale ? a("", !0) : (g(), o("div", Tr, [s("input", {
|
|
2211
2240
|
id: `memedetail-${d.ligne.idMotif}`,
|
|
2212
2241
|
class: "form-check-input",
|
|
2213
2242
|
type: "checkbox",
|
|
2214
2243
|
checked: d.ligne.description == null,
|
|
2215
2244
|
disabled: r.draft.isReadonly("description"),
|
|
2216
2245
|
onChange: t[0] ||= (e) => r.draft.toggleDescriptionOverride(n.index)
|
|
2217
|
-
}, null, 40,
|
|
2246
|
+
}, null, 40, Er), s("label", {
|
|
2218
2247
|
class: "form-check-label fs-7",
|
|
2219
2248
|
for: `memedetail-${d.ligne.idMotif}`
|
|
2220
|
-
}, " Même description ", 8,
|
|
2249
|
+
}, " Même description ", 8, Dr)]))]), !r.draft.isReadonly("description") && (d.isPrincipale || d.ligne.description != null) ? (g(), i(f, {
|
|
2221
2250
|
key: 0,
|
|
2222
2251
|
"model-value": d.ligne.description,
|
|
2223
2252
|
"input-size": "sm",
|
|
@@ -2230,25 +2259,25 @@ function qr(e, t, n, r, c, d) {
|
|
|
2230
2259
|
"rows",
|
|
2231
2260
|
"maxlength",
|
|
2232
2261
|
"placeholder"
|
|
2233
|
-
])) : (g(), o("small",
|
|
2262
|
+
])) : (g(), o("small", Or, C((d.ligne.description ?? d.lignePrincipale.description) || "—"), 1))]), s("div", kr, [s("div", Ar, [s("div", null, [s("div", jr, [t[7] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-0" }, " Date des faits ", -1), d.isPrincipale ? a("", !0) : (g(), o("div", Mr, [s("input", {
|
|
2234
2263
|
id: `memedate-${d.ligne.idMotif}`,
|
|
2235
2264
|
class: "form-check-input",
|
|
2236
2265
|
type: "checkbox",
|
|
2237
2266
|
checked: !d.ligne.dateFaitsOverride,
|
|
2238
2267
|
disabled: r.draft.isReadonly("dateFaits"),
|
|
2239
2268
|
onChange: t[2] ||= (e) => r.draft.toggleDateFaitsOverride(n.index)
|
|
2240
|
-
}, null, 40,
|
|
2269
|
+
}, null, 40, Nr), s("label", {
|
|
2241
2270
|
class: "form-check-label fs-7",
|
|
2242
2271
|
for: `memedate-${d.ligne.idMotif}`
|
|
2243
|
-
}, " Même date ", 8,
|
|
2272
|
+
}, " Même date ", 8, Pr)]))]), !r.draft.isReadonly("dateFaits") && (d.isPrincipale || d.ligne.dateFaitsOverride) ? (g(), o("input", {
|
|
2244
2273
|
key: 0,
|
|
2245
2274
|
value: d.timestampToDateInput(d.ligne.dateFaits),
|
|
2246
2275
|
type: "date",
|
|
2247
2276
|
class: "form-control form-control-sm",
|
|
2248
2277
|
onInput: t[3] ||= (e) => r.draft.setDateFaits(n.index, d.dateInputToTimestamp(e.target.value))
|
|
2249
|
-
}, null, 40,
|
|
2278
|
+
}, null, 40, Fr)) : (g(), o("small", Ir, C(d.timestampToDateInput(d.dateFaits) || "—"), 1))]), s("div", null, [
|
|
2250
2279
|
t[8] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Responsable ", -1),
|
|
2251
|
-
r.draft.isReadonly("responsable") ? (g(), o("small",
|
|
2280
|
+
r.draft.isReadonly("responsable") ? (g(), o("small", Lr, C(d.responsableLibelle(d.ligne.responsable) || "Déterminé automatiquement"), 1)) : (g(), i(p, {
|
|
2252
2281
|
key: 1,
|
|
2253
2282
|
"model-value": d.ligne.responsable,
|
|
2254
2283
|
items: d.collaborateurs,
|
|
@@ -2260,7 +2289,7 @@ function qr(e, t, n, r, c, d) {
|
|
|
2260
2289
|
"hide-choices": "",
|
|
2261
2290
|
"onUpdate:modelValue": t[4] ||= (e) => r.draft.setResponsable(n.index, e ?? null)
|
|
2262
2291
|
}, {
|
|
2263
|
-
options: E((e) => [s("div",
|
|
2292
|
+
options: E((e) => [s("div", Rr, [s("div", zr, C(e?.prenom) + " " + C(e?.nom), 1), e?.service ? (g(), o("small", Br, C(e.service), 1)) : a("", !0)])]),
|
|
2264
2293
|
_: 1
|
|
2265
2294
|
}, 8, [
|
|
2266
2295
|
"model-value",
|
|
@@ -2269,8 +2298,8 @@ function qr(e, t, n, r, c, d) {
|
|
|
2269
2298
|
"get-input-libelle",
|
|
2270
2299
|
"filtering-function"
|
|
2271
2300
|
])),
|
|
2272
|
-
d.isPrincipale && !d.ligne.responsable && !r.draft.isReadonly("responsable") ? (g(), o("small",
|
|
2273
|
-
])]), s("div",
|
|
2301
|
+
d.isPrincipale && !d.ligne.responsable && !r.draft.isReadonly("responsable") ? (g(), o("small", Vr, " Aucun paramétrage trouvé : le responsable sera déterminé automatiquement. ")) : a("", !0)
|
|
2302
|
+
])]), s("div", Hr, [u(m, {
|
|
2274
2303
|
index: n.index,
|
|
2275
2304
|
fichier: d.ligne.fichier,
|
|
2276
2305
|
readonly: r.draft.isReadonly("fichier"),
|
|
@@ -2283,11 +2312,11 @@ function qr(e, t, n, r, c, d) {
|
|
|
2283
2312
|
}
|
|
2284
2313
|
//#endregion
|
|
2285
2314
|
//#region src/components/EtapeDetailsBlock.vue
|
|
2286
|
-
var
|
|
2315
|
+
var Wr = {
|
|
2287
2316
|
name: "EtapeDetailsBlock",
|
|
2288
2317
|
components: {
|
|
2289
2318
|
AmsomOverlay: t,
|
|
2290
|
-
LigneDetailBlock: /* @__PURE__ */ F(
|
|
2319
|
+
LigneDetailBlock: /* @__PURE__ */ F(br, [["render", Ur]])
|
|
2291
2320
|
},
|
|
2292
2321
|
setup() {
|
|
2293
2322
|
return {
|
|
@@ -2343,22 +2372,22 @@ var Jr = {
|
|
|
2343
2372
|
}
|
|
2344
2373
|
}
|
|
2345
2374
|
}
|
|
2346
|
-
},
|
|
2375
|
+
}, Gr = { class: "d-flex flex-column gap-3" }, Kr = { class: "alert alert-light border py-2 px-3 mb-0 d-flex flex-column gap-1" }, qr = {
|
|
2347
2376
|
key: 0,
|
|
2348
2377
|
class: "fs-7"
|
|
2349
|
-
},
|
|
2350
|
-
function
|
|
2378
|
+
}, Jr = { class: "fs-7" }, Yr = { class: "bg-light rounded px-2 py-1 d-flex flex-column gap-1" }, Xr = { class: "fs-7" }, Zr = { class: "fs-7" };
|
|
2379
|
+
function Qr(e, t, r, c, d, f) {
|
|
2351
2380
|
let p = S("font-awesome-icon"), m = S("ligne-detail-block"), h = S("amsom-overlay");
|
|
2352
2381
|
return g(), i(h, { loading: c.data.isLoading && !c.data.cache.collaborateurs }, {
|
|
2353
|
-
default: E(() => [s("div",
|
|
2354
|
-
s("div",
|
|
2382
|
+
default: E(() => [s("div", Gr, [
|
|
2383
|
+
s("div", Kr, [f.motifLibelle ? (g(), o("span", qr, [
|
|
2355
2384
|
u(p, {
|
|
2356
2385
|
icon: "tag",
|
|
2357
2386
|
class: "text-primary me-2"
|
|
2358
2387
|
}),
|
|
2359
2388
|
t[0] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1),
|
|
2360
2389
|
l(C(f.motifLibelle), 1)
|
|
2361
|
-
])) : a("", !0), s("span",
|
|
2390
|
+
])) : a("", !0), s("span", Jr, [
|
|
2362
2391
|
u(p, {
|
|
2363
2392
|
icon: "location-dot",
|
|
2364
2393
|
class: "text-primary me-2"
|
|
@@ -2374,14 +2403,14 @@ function ni(e, t, r, c, d, f) {
|
|
|
2374
2403
|
], -1), (g(!0), o(n, null, b(f.lignesAssociees, (e, n) => (g(), o("div", {
|
|
2375
2404
|
key: e.idMotif,
|
|
2376
2405
|
class: "border rounded p-2 d-flex flex-column gap-2"
|
|
2377
|
-
}, [s("div",
|
|
2406
|
+
}, [s("div", Yr, [s("span", Xr, [
|
|
2378
2407
|
u(p, {
|
|
2379
2408
|
icon: "tag",
|
|
2380
2409
|
class: "text-primary me-2"
|
|
2381
2410
|
}),
|
|
2382
2411
|
t[2] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1),
|
|
2383
2412
|
l(" " + C(e.libelle), 1)
|
|
2384
|
-
]), s("span",
|
|
2413
|
+
]), s("span", Zr, [
|
|
2385
2414
|
u(p, {
|
|
2386
2415
|
icon: "location-dot",
|
|
2387
2416
|
class: "text-primary me-2"
|
|
@@ -2395,15 +2424,15 @@ function ni(e, t, r, c, d, f) {
|
|
|
2395
2424
|
}
|
|
2396
2425
|
//#endregion
|
|
2397
2426
|
//#region src/components/StepperBlock.vue
|
|
2398
|
-
var
|
|
2427
|
+
var $r = {
|
|
2399
2428
|
name: "StepperBlock",
|
|
2400
2429
|
components: {
|
|
2401
2430
|
AmsomHorizontalStepper: re,
|
|
2402
2431
|
AmsomOverlay: t,
|
|
2403
|
-
EtapeReclamantBlock:
|
|
2404
|
-
EtapeCategorieBlock:
|
|
2405
|
-
EtapeCibleBlock:
|
|
2406
|
-
EtapeDetailsBlock: /* @__PURE__ */ F(
|
|
2432
|
+
EtapeReclamantBlock: kt,
|
|
2433
|
+
EtapeCategorieBlock: ln,
|
|
2434
|
+
EtapeCibleBlock: pr,
|
|
2435
|
+
EtapeDetailsBlock: /* @__PURE__ */ F(Wr, [["render", Qr]])
|
|
2407
2436
|
},
|
|
2408
2437
|
props: {
|
|
2409
2438
|
step: {
|
|
@@ -2515,25 +2544,25 @@ var ri = {
|
|
|
2515
2544
|
}));
|
|
2516
2545
|
}
|
|
2517
2546
|
}
|
|
2518
|
-
},
|
|
2547
|
+
}, ei = { class: "d-flex flex-column gap-3" }, ti = {
|
|
2519
2548
|
key: 0,
|
|
2520
2549
|
class: "w-100 fs-6 fw-medium my-3 alert alert-info",
|
|
2521
2550
|
style: { "white-space": "pre-line" }
|
|
2522
|
-
},
|
|
2523
|
-
function
|
|
2551
|
+
}, ni = { style: { "min-height": "260px" } }, ri = { class: "d-flex justify-content-between" }, ii = { key: 1 }, ai = ["disabled"], oi = ["disabled"];
|
|
2552
|
+
function si(e, t, n, r, f, p) {
|
|
2524
2553
|
let m = S("amsom-horizontal-stepper"), _ = S("font-awesome-icon"), v = S("etape-reclamant-block"), y = S("etape-categorie-block"), b = S("etape-cible-block"), ee = S("etape-details-block"), w = S("amsom-overlay");
|
|
2525
2554
|
return g(), i(w, { loading: n.creating }, {
|
|
2526
|
-
default: E(() => [s("div",
|
|
2555
|
+
default: E(() => [s("div", ei, [
|
|
2527
2556
|
u(m, {
|
|
2528
2557
|
steps: p.stepperSteps,
|
|
2529
2558
|
size: "md",
|
|
2530
2559
|
onStepClick: p.onStepClick
|
|
2531
2560
|
}, null, 8, ["steps", "onStepClick"]),
|
|
2532
|
-
p.aideMotif ? (g(), o("div",
|
|
2561
|
+
p.aideMotif ? (g(), o("div", ti, [u(_, {
|
|
2533
2562
|
icon: "circle-info",
|
|
2534
2563
|
class: "text-info-emphasis me-2"
|
|
2535
2564
|
}), s("span", null, C(p.aideMotif), 1)])) : a("", !0),
|
|
2536
|
-
s("div",
|
|
2565
|
+
s("div", ni, [p.currentKey === "reclamant" ? (g(), i(v, {
|
|
2537
2566
|
key: 0,
|
|
2538
2567
|
premiere: n.step === 1
|
|
2539
2568
|
}, c({ _: 2 }, [e.$slots.reclamant ? {
|
|
@@ -2544,14 +2573,14 @@ function di(e, t, n, r, f, p) {
|
|
|
2544
2573
|
key: 1,
|
|
2545
2574
|
premiere: n.step === 1
|
|
2546
2575
|
}, null, 8, ["premiere"])) : p.currentKey === "cible" ? (g(), i(b, { key: 2 })) : p.currentKey === "details" ? (g(), i(ee, { key: 3 })) : a("", !0)]),
|
|
2547
|
-
s("div",
|
|
2576
|
+
s("div", ri, [n.step > 1 ? (g(), o("button", {
|
|
2548
2577
|
key: 0,
|
|
2549
2578
|
class: "btn btn-sm btn-outline-secondary",
|
|
2550
2579
|
onClick: t[0] ||= (...e) => p.goPrevious && p.goPrevious(...e)
|
|
2551
2580
|
}, [u(_, {
|
|
2552
2581
|
icon: "chevron-left",
|
|
2553
2582
|
class: "me-1"
|
|
2554
|
-
}), t[3] ||= l(" Précédent ", -1)])) : (g(), o("span",
|
|
2583
|
+
}), t[3] ||= l(" Précédent ", -1)])) : (g(), o("span", ii)), n.step < p.steps.length ? (g(), o("button", {
|
|
2555
2584
|
key: 2,
|
|
2556
2585
|
class: "btn btn-sm btn-primary",
|
|
2557
2586
|
disabled: !p.canGoNext,
|
|
@@ -2559,7 +2588,7 @@ function di(e, t, n, r, f, p) {
|
|
|
2559
2588
|
}, [t[4] ||= l(" Suivant ", -1), u(_, {
|
|
2560
2589
|
icon: "chevron-right",
|
|
2561
2590
|
class: "ms-1"
|
|
2562
|
-
})], 8,
|
|
2591
|
+
})], 8, ai)) : (g(), o("button", {
|
|
2563
2592
|
key: 3,
|
|
2564
2593
|
class: "btn btn-sm btn-success",
|
|
2565
2594
|
disabled: !p.canCreer || n.creating,
|
|
@@ -2567,15 +2596,15 @@ function di(e, t, n, r, f, p) {
|
|
|
2567
2596
|
}, [u(_, {
|
|
2568
2597
|
icon: "check",
|
|
2569
2598
|
class: "me-1"
|
|
2570
|
-
}), t[5] ||= l(" Créer la sollicitation ", -1)], 8,
|
|
2599
|
+
}), t[5] ||= l(" Créer la sollicitation ", -1)], 8, oi))])
|
|
2571
2600
|
])]),
|
|
2572
2601
|
_: 3
|
|
2573
2602
|
}, 8, ["loading"]);
|
|
2574
2603
|
}
|
|
2575
|
-
var
|
|
2604
|
+
var ci = /*#__PURE__*/ F($r, [["render", si]]), li = (e, { signal: t, baseUrl: n } = {}) => Pe("/v2/cresol/creer_sollicitation", e, {
|
|
2576
2605
|
signal: t,
|
|
2577
2606
|
baseUrl: n
|
|
2578
|
-
}),
|
|
2607
|
+
}), ui = ({ idSollicitation: e, pj: t }, { signal: n, baseUrl: r } = {}) => Pe("/v2/cresol/upload_sollicitation_ged", {
|
|
2579
2608
|
idSollicitation: e,
|
|
2580
2609
|
pj: t
|
|
2581
2610
|
}, {
|
|
@@ -2629,7 +2658,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2629
2658
|
type: String,
|
|
2630
2659
|
default: null
|
|
2631
2660
|
}
|
|
2632
|
-
},
|
|
2661
|
+
}, di = Object.keys(Z), Q = [
|
|
2633
2662
|
"update:modelValue",
|
|
2634
2663
|
"reclamantChange",
|
|
2635
2664
|
"motifChange",
|
|
@@ -2638,11 +2667,11 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2638
2667
|
"created",
|
|
2639
2668
|
"createError",
|
|
2640
2669
|
"error"
|
|
2641
|
-
],
|
|
2670
|
+
], fi = {
|
|
2642
2671
|
name: "CreerSollicitationForm",
|
|
2643
2672
|
components: {
|
|
2644
2673
|
AsideBlock: De,
|
|
2645
|
-
StepperBlock:
|
|
2674
|
+
StepperBlock: ci
|
|
2646
2675
|
},
|
|
2647
2676
|
props: { ...Z },
|
|
2648
2677
|
emits: [...Q],
|
|
@@ -2656,7 +2685,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2656
2685
|
idModulePrefere: w(e, "idModule"),
|
|
2657
2686
|
readonly: w(e, "readonly")
|
|
2658
2687
|
}));
|
|
2659
|
-
return
|
|
2688
|
+
return jt(v({
|
|
2660
2689
|
nomenclatureFilter: w(e, "nomenclatureFilter"),
|
|
2661
2690
|
reclamantMode: w(e, "reclamantMode"),
|
|
2662
2691
|
modulesReclamant: s,
|
|
@@ -2720,7 +2749,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2720
2749
|
if (!await this.autoriserCreation(e)) return;
|
|
2721
2750
|
let t;
|
|
2722
2751
|
try {
|
|
2723
|
-
t = await
|
|
2752
|
+
t = await li(e, this.requestOptions) ?? [];
|
|
2724
2753
|
} catch (t) {
|
|
2725
2754
|
if (B(t)) return;
|
|
2726
2755
|
let n = z(t);
|
|
@@ -2773,7 +2802,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2773
2802
|
message: t
|
|
2774
2803
|
};
|
|
2775
2804
|
};
|
|
2776
|
-
return a?.id ?
|
|
2805
|
+
return a?.id ? ui({
|
|
2777
2806
|
idSollicitation: a.id,
|
|
2778
2807
|
pj: {
|
|
2779
2808
|
name: n.name,
|
|
@@ -2789,13 +2818,13 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2789
2818
|
return Promise.all(n);
|
|
2790
2819
|
}
|
|
2791
2820
|
}
|
|
2792
|
-
},
|
|
2821
|
+
}, pi = { class: "row g-3" }, mi = {
|
|
2793
2822
|
key: 0,
|
|
2794
2823
|
class: "col-12 col-lg-4"
|
|
2795
2824
|
};
|
|
2796
|
-
function
|
|
2825
|
+
function hi(e, t, n, r, i, l) {
|
|
2797
2826
|
let f = S("aside-block"), p = S("stepper-block");
|
|
2798
|
-
return g(), o("div",
|
|
2827
|
+
return g(), o("div", pi, [e.aside ? (g(), o("div", mi, [x(e.$slots, "aside", {}, () => [u(f, { "nb-similaires": e.nbSimilaires }, c({ _: 2 }, [e.$slots["aside-similaires"] ? {
|
|
2799
2828
|
name: "similaires",
|
|
2800
2829
|
fn: E((t) => [x(e.$slots, "aside-similaires", h(d(t)))]),
|
|
2801
2830
|
key: "0"
|
|
@@ -2819,7 +2848,7 @@ function yi(e, t, n, r, i, l) {
|
|
|
2819
2848
|
"onSubmit"
|
|
2820
2849
|
])], 2)]);
|
|
2821
2850
|
}
|
|
2822
|
-
var $ = /*#__PURE__*/ F(
|
|
2851
|
+
var $ = /*#__PURE__*/ F(fi, [["render", hi]]), gi = {
|
|
2823
2852
|
name: "CreerSollicitationModal",
|
|
2824
2853
|
components: {
|
|
2825
2854
|
AmsomModal: e,
|
|
@@ -2839,7 +2868,7 @@ var $ = /*#__PURE__*/ F(gi, [["render", yi]]), bi = {
|
|
|
2839
2868
|
emits: [...Q, "close"],
|
|
2840
2869
|
computed: {
|
|
2841
2870
|
formProps() {
|
|
2842
|
-
return Object.fromEntries(
|
|
2871
|
+
return Object.fromEntries(di.map((e) => [e, this[e]]));
|
|
2843
2872
|
},
|
|
2844
2873
|
formListeners() {
|
|
2845
2874
|
return Object.fromEntries(Q.filter((e) => e !== "created").map((e) => [e, (...t) => this.$emit(e, ...t)]));
|
|
@@ -2848,24 +2877,24 @@ var $ = /*#__PURE__*/ F(gi, [["render", yi]]), bi = {
|
|
|
2848
2877
|
methods: { onCreated(...e) {
|
|
2849
2878
|
this.$emit("created", ...e), this.closeOnCreated && this.$emit("close");
|
|
2850
2879
|
} }
|
|
2851
|
-
},
|
|
2852
|
-
function
|
|
2880
|
+
}, _i = { class: "fw-medium fs-5" };
|
|
2881
|
+
function vi(e, t, n, r, a, o) {
|
|
2853
2882
|
let l = S("creer-sollicitation-form"), f = S("amsom-modal");
|
|
2854
2883
|
return g(), i(f, {
|
|
2855
2884
|
"close-option": "",
|
|
2856
2885
|
size: "xl",
|
|
2857
2886
|
onClose: t[0] ||= (t) => e.$emit("close")
|
|
2858
2887
|
}, {
|
|
2859
|
-
default: E(() => [s("span",
|
|
2888
|
+
default: E(() => [s("span", _i, C(n.titre), 1), u(l, p({ class: "pt-3" }, o.formProps, ee(o.formListeners), { onCreated: o.onCreated }), c({ _: 2 }, [b(e.$slots, (t, n) => ({
|
|
2860
2889
|
name: n,
|
|
2861
2890
|
fn: E((t) => [x(e.$slots, n, h(d(t ?? {})))])
|
|
2862
2891
|
}))]), 1040, ["onCreated"])]),
|
|
2863
2892
|
_: 3
|
|
2864
2893
|
});
|
|
2865
2894
|
}
|
|
2866
|
-
var
|
|
2867
|
-
CreerSollicitationModal:
|
|
2895
|
+
var yi = /*#__PURE__*/ F(gi, [["render", vi]]), bi = {
|
|
2896
|
+
CreerSollicitationModal: yi,
|
|
2868
2897
|
CreerSollicitationForm: $
|
|
2869
2898
|
};
|
|
2870
2899
|
//#endregion
|
|
2871
|
-
export { $ as CreerSollicitationForm,
|
|
2900
|
+
export { $ as CreerSollicitationForm, yi as CreerSollicitationModal, le as DEFAULT_PROVENANCE_CONTACT, ce as PROVENANCES_CONTACT, M as READONLY_FIELDS, ke as configureCresol, bi as default, N as getDefaultDraft, j as getDefaultLigne, A as getDefaultPatrimoine, Ze as resetCresolCache };
|