@amsom-habitat/cresol 0.2.2 → 0.2.4
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 +389 -355
- package/dist/cresol.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/cresol.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AmsomModal as e, AmsomOverlay as t } from "@amsom-habitat/ui";
|
|
2
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, guardReactiveProps as d, inject as f, mergeProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, provide as _, reactive as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toHandlers as ee, toRef as w, unref as T, vShow as
|
|
2
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, guardReactiveProps as d, inject as f, mergeProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, provide as _, reactive as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toHandlers as ee, toRef as w, unref as T, vShow as E, withCtx as D, withDirectives as te } from "vue";
|
|
3
3
|
import { AmsomNavTabsHorizontal as ne } from "@amsom-habitat/nav-tabs";
|
|
4
4
|
import re from "@amsom-habitat/horizontal-stepper";
|
|
5
5
|
import { AmsomAutocomplete as O } from "@amsom-habitat/amsom-autocomplete";
|
|
@@ -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";
|
|
@@ -434,30 +440,30 @@ function Ee(e, t, n, r, c, l) {
|
|
|
434
440
|
"item-key": "id",
|
|
435
441
|
"tab-spacing": 1
|
|
436
442
|
}, {
|
|
437
|
-
libelle:
|
|
443
|
+
libelle: D(({ item: e }) => [
|
|
438
444
|
u(f, { icon: e.icon }, null, 8, ["icon"]),
|
|
439
445
|
s("span", null, C(e.label), 1),
|
|
440
446
|
e.id === "similarite" && n.nbSimilaires > 0 ? (g(), o("span", Se, C(n.nbSimilaires), 1)) : a("", !0)
|
|
441
447
|
]),
|
|
442
|
-
content:
|
|
448
|
+
content: D(() => [s("div", Ce, [e.$slots.similaires ? te((g(), o("div", we, [x(e.$slots, "similaires", h(d(l.scope)))], 512)), [[E, c.activeTab === "similarite"]]) : a("", !0), e.$slots.evenements ? te((g(), o("div", Te, [x(e.$slots, "evenements")], 512)), [[E, c.activeTab === "evenements"]]) : a("", !0)])]),
|
|
443
449
|
_: 3
|
|
444
450
|
}, 8, ["modelValue", "items"])) : a("", !0);
|
|
445
451
|
}
|
|
446
|
-
var De = /*#__PURE__*/ F(xe, [["render", Ee]]),
|
|
452
|
+
var De = /*#__PURE__*/ F(xe, [["render", Ee]]), I = {
|
|
447
453
|
baseUrl: "",
|
|
448
454
|
getToken: () => k.getToken(),
|
|
449
455
|
setToken: (e) => k.setToken(e),
|
|
450
456
|
logout: () => k.logout(),
|
|
451
457
|
goToLoginPage: () => k.goToLoginPage()
|
|
452
458
|
};
|
|
453
|
-
function
|
|
454
|
-
Object.assign(
|
|
459
|
+
function Oe(e = {}) {
|
|
460
|
+
Object.assign(I, e);
|
|
455
461
|
}
|
|
456
|
-
var
|
|
462
|
+
var L = () => I;
|
|
457
463
|
//#endregion
|
|
458
464
|
//#region src/api/transport/axiosOverlayConnector.js
|
|
459
|
-
function
|
|
460
|
-
let n =
|
|
465
|
+
function ke(e, t = {}) {
|
|
466
|
+
let n = L(), r = {
|
|
461
467
|
getToken: () => n.getToken?.() ?? null,
|
|
462
468
|
setToken: (e) => n.setToken?.(e),
|
|
463
469
|
logout: () => n.logout?.(),
|
|
@@ -483,65 +489,65 @@ function Ae(e, t = {}) {
|
|
|
483
489
|
}
|
|
484
490
|
//#endregion
|
|
485
491
|
//#region src/api/transport/httpClient.js
|
|
486
|
-
var
|
|
487
|
-
let n = t ||
|
|
492
|
+
var Ae = (e, t) => {
|
|
493
|
+
let n = t || L().baseUrl;
|
|
488
494
|
if (!n) throw Error("Cresol : baseUrl non renseignée (configureCresol ou prop baseUrl)");
|
|
489
495
|
return `${n}${e}`;
|
|
490
|
-
},
|
|
496
|
+
}, je = (e = {}) => {
|
|
491
497
|
let t = new URLSearchParams();
|
|
492
498
|
Object.entries(e).forEach(([e, n]) => {
|
|
493
499
|
n != null && n !== "" && t.append(e, typeof n == "object" ? JSON.stringify(n) : n);
|
|
494
500
|
});
|
|
495
501
|
let n = t.toString();
|
|
496
502
|
return n ? `?${n}` : "";
|
|
497
|
-
},
|
|
498
|
-
url:
|
|
503
|
+
}, R = ({ method: e, path: t, params: n, data: r, signal: i, baseUrl: a }, o = {}) => ke({
|
|
504
|
+
url: Ae(`${t}${je(n)}`, a),
|
|
499
505
|
method: e,
|
|
500
506
|
...r === void 0 ? {} : { data: r },
|
|
501
507
|
...i ? { signal: i } : {}
|
|
502
|
-
}, o),
|
|
508
|
+
}, o), z = (e, { params: t, signal: n, overlay: r, baseUrl: i } = {}) => R({
|
|
503
509
|
method: "GET",
|
|
504
510
|
path: e,
|
|
505
511
|
params: t,
|
|
506
512
|
signal: n,
|
|
507
513
|
baseUrl: i
|
|
508
|
-
}, r).then((e) => e.data),
|
|
514
|
+
}, r).then((e) => e.data), Me = (e, t, { params: n, signal: r, overlay: i, baseUrl: a } = {}) => R({
|
|
509
515
|
method: "POST",
|
|
510
516
|
path: e,
|
|
511
517
|
params: n,
|
|
512
518
|
data: t,
|
|
513
519
|
signal: r,
|
|
514
520
|
baseUrl: a
|
|
515
|
-
}, i).then((e) => e.data),
|
|
521
|
+
}, i).then((e) => e.data), Ne = { mustBeAuthenticated: !1 }, B = (e, { signal: t, baseUrl: n } = {}) => z(e, {
|
|
516
522
|
signal: t,
|
|
517
523
|
baseUrl: n,
|
|
518
|
-
overlay:
|
|
519
|
-
}),
|
|
524
|
+
overlay: Ne
|
|
525
|
+
}), Pe = (e) => B("/v2/sollicitation/motifs", e), Fe = (e) => B("/v2/sollicitation/categories", e), Ie = (e) => B("/v2/sollicitation/types", e), Le = (e) => B("/v2/sollicitation/natures", e), Re = (e) => B("/v2/sollicitation/etats", e), ze = ({ signal: e, baseUrl: t } = {}) => z("/collaborateurs", {
|
|
520
526
|
params: { actif: !0 },
|
|
521
527
|
signal: e,
|
|
522
528
|
baseUrl: t
|
|
523
|
-
}),
|
|
529
|
+
}), Be = async ({ signal: e, baseUrl: t } = {}) => (await z("/v2/patrimoine/communes", {
|
|
524
530
|
signal: e,
|
|
525
531
|
baseUrl: t
|
|
526
532
|
}) ?? []).map((e) => ({
|
|
527
533
|
idCommune: e.id,
|
|
528
534
|
commune: e.libelle
|
|
529
|
-
})),
|
|
535
|
+
})), Ve = (e, { signal: t, baseUrl: n } = {}) => z("/v2/patrimoine/entrees", {
|
|
530
536
|
params: { idCommune: e },
|
|
531
537
|
signal: t,
|
|
532
538
|
baseUrl: n
|
|
533
|
-
}),
|
|
539
|
+
}), He = (e, { signal: t, baseUrl: n } = {}) => z("/v2/patrimoine/modules", {
|
|
534
540
|
params: { codeProgramme: e },
|
|
535
541
|
signal: t,
|
|
536
542
|
baseUrl: n
|
|
537
|
-
}),
|
|
543
|
+
}), Ue = ({ idContrat: e, typeContrat: t }, { signal: n, baseUrl: r } = {}) => z("/v2/patrimoine/contrat_modules", {
|
|
538
544
|
params: {
|
|
539
545
|
idContrat: e,
|
|
540
546
|
typeContrat: t
|
|
541
547
|
},
|
|
542
548
|
signal: n,
|
|
543
549
|
baseUrl: r
|
|
544
|
-
}),
|
|
550
|
+
}), We = ({ motif: e, categorie: t, type: n, nature: r }, { signal: i, baseUrl: a } = {}) => z("/v2/sollicitation/responsables", {
|
|
545
551
|
params: {
|
|
546
552
|
motif: e,
|
|
547
553
|
categorie: t,
|
|
@@ -550,11 +556,11 @@ var je = (e, t) => {
|
|
|
550
556
|
},
|
|
551
557
|
signal: i,
|
|
552
558
|
baseUrl: a
|
|
553
|
-
}),
|
|
559
|
+
}), Ge = (e, { signal: t, baseUrl: n } = {}) => z("/v2/patrimoine/contrat_module_rechercher", {
|
|
554
560
|
params: { recherche: e },
|
|
555
561
|
signal: t,
|
|
556
562
|
baseUrl: n
|
|
557
|
-
}),
|
|
563
|
+
}), Ke = ({ categorie: e, recherche: t }, { signal: n, baseUrl: r } = {}) => z("/v2/cresol/reclamant_rechercher", {
|
|
558
564
|
params: {
|
|
559
565
|
categorie: e,
|
|
560
566
|
recherche: t
|
|
@@ -564,11 +570,11 @@ var je = (e, t) => {
|
|
|
564
570
|
});
|
|
565
571
|
//#endregion
|
|
566
572
|
//#region src/utils/apiError.js
|
|
567
|
-
function
|
|
573
|
+
function V(e) {
|
|
568
574
|
let t = e?.response?.data;
|
|
569
575
|
return t?.error ? t.error : t?.errorList ? t.errorList.map((e) => e.message).join(", ") : e?.response?.status === 500 ? "Erreur interne" : e?.response?.status === 401 ? "Non autorisé à faire cette action" : "Erreur";
|
|
570
576
|
}
|
|
571
|
-
var
|
|
577
|
+
var qe = (e) => e?.name === "AbortError" || e?.name === "CanceledError", Je = Symbol("cresol:data"), Ye = () => ({
|
|
572
578
|
motifs: null,
|
|
573
579
|
categories: null,
|
|
574
580
|
types: null,
|
|
@@ -586,11 +592,11 @@ function Ze() {
|
|
|
586
592
|
}
|
|
587
593
|
var W = (e, t, n) => e?.find((e) => e[t] === n)?.libelle ?? n, G = (e, t, n) => e?.find((e) => e[t] === n)?.icon ?? null;
|
|
588
594
|
function Qe({ onError: e, baseUrl: t } = {}) {
|
|
589
|
-
let n = y(0), i = () => ({ baseUrl: T(t) || null }), a = () => T(t) ||
|
|
595
|
+
let n = y(0), i = () => ({ baseUrl: T(t) || null }), a = () => T(t) || L().baseUrl || "", o = () => Xe(a()), s = (t, r) => {
|
|
590
596
|
let i = `${a()}|${t}`;
|
|
591
597
|
if (U.has(i)) return U.get(i);
|
|
592
598
|
n.value += 1;
|
|
593
|
-
let o = Promise.resolve().then(r).catch((t) => (
|
|
599
|
+
let o = Promise.resolve().then(r).catch((t) => (qe(t) || e?.(V(t)), null)).finally(() => {
|
|
594
600
|
--n.value, U.delete(i);
|
|
595
601
|
});
|
|
596
602
|
return U.set(i, o), o;
|
|
@@ -602,26 +608,26 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
602
608
|
isLoading: r(() => n.value > 0),
|
|
603
609
|
loadNomenclature() {
|
|
604
610
|
return Promise.all([
|
|
605
|
-
c("motifs",
|
|
606
|
-
c("categories",
|
|
607
|
-
c("types",
|
|
608
|
-
c("natures",
|
|
609
|
-
c("etats",
|
|
611
|
+
c("motifs", Pe),
|
|
612
|
+
c("categories", Fe),
|
|
613
|
+
c("types", Ie),
|
|
614
|
+
c("natures", Le),
|
|
615
|
+
c("etats", Re)
|
|
610
616
|
]);
|
|
611
617
|
},
|
|
612
|
-
loadCollaborateurs: () => c("collaborateurs",
|
|
618
|
+
loadCollaborateurs: () => c("collaborateurs", ze),
|
|
613
619
|
loadCommunes() {
|
|
614
|
-
return o().communes?.length ? Promise.resolve(o().communes) : s("communes", async () => (o().communes = await
|
|
620
|
+
return o().communes?.length ? Promise.resolve(o().communes) : s("communes", async () => (o().communes = await Be(i()), o().communes));
|
|
615
621
|
},
|
|
616
622
|
loadAdresses(e) {
|
|
617
623
|
return e == null ? Promise.resolve([]) : o().adressesByCommune[e] ? Promise.resolve(o().adressesByCommune[e]) : s(`adresses:${e}`, async () => {
|
|
618
|
-
let t = await
|
|
624
|
+
let t = await Ve(e, i());
|
|
619
625
|
return o().adressesByCommune[e] = t ?? [], t;
|
|
620
626
|
});
|
|
621
627
|
},
|
|
622
628
|
loadModulesOfProgramme(e) {
|
|
623
629
|
return e == null ? Promise.resolve([]) : o().modulesByProgramme[e] ? Promise.resolve(o().modulesByProgramme[e]) : s(`modules:${e}`, async () => {
|
|
624
|
-
let t = await
|
|
630
|
+
let t = await He(e, i());
|
|
625
631
|
return o().modulesByProgramme[e] = t ?? [], t;
|
|
626
632
|
});
|
|
627
633
|
},
|
|
@@ -629,7 +635,7 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
629
635
|
if (e == null) return Promise.resolve([]);
|
|
630
636
|
let n = `${t ?? ""}|${e}`;
|
|
631
637
|
return o().modulesByContrat[n] ? Promise.resolve(o().modulesByContrat[n]) : s(`contratModules:${n}`, async () => {
|
|
632
|
-
let r = await
|
|
638
|
+
let r = await Ue({
|
|
633
639
|
idContrat: e,
|
|
634
640
|
typeContrat: t
|
|
635
641
|
}, i());
|
|
@@ -639,16 +645,18 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
639
645
|
async searchContrats(e, { signal: t } = {}) {
|
|
640
646
|
let n = (e ?? "").trim();
|
|
641
647
|
if (!n) return [];
|
|
642
|
-
let r = await
|
|
648
|
+
let r = await Ge(n, {
|
|
643
649
|
...i(),
|
|
644
650
|
signal: 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
|
});
|
|
@@ -658,7 +666,7 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
658
666
|
async searchReclamants(e, t, { signal: n } = {}) {
|
|
659
667
|
let r = (t ?? "").trim();
|
|
660
668
|
if (!r) return [];
|
|
661
|
-
let a = await
|
|
669
|
+
let a = await Ke({
|
|
662
670
|
categorie: e,
|
|
663
671
|
recherche: r
|
|
664
672
|
}, {
|
|
@@ -673,6 +681,7 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
673
681
|
categorie: t.categorie?.toLowerCase() ?? e,
|
|
674
682
|
libelleReclamant: t.libelleReclamant,
|
|
675
683
|
adresse: t.adresse,
|
|
684
|
+
idModule: t.idModule,
|
|
676
685
|
estActif: !1,
|
|
677
686
|
individus: []
|
|
678
687
|
});
|
|
@@ -680,19 +689,20 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
680
689
|
r.estActif ||= !!t.estActif, r.individus.push(t);
|
|
681
690
|
}
|
|
682
691
|
return [...o.values()].sort((e, t) => Number(t.estActif) - Number(e.estActif)).map((e) => {
|
|
683
|
-
let t = e.individus.map((e) => [e.nom, e.prenom].filter(Boolean).join(" ")).filter(Boolean).join(", "),
|
|
684
|
-
locataire: `${e.libelleReclamant ||
|
|
685
|
-
demandeur: `${
|
|
692
|
+
let t = e.individus.map((e) => e.dateSortie), n = t.every((e) => e != null) ? Math.max(...t) : null, r = e.individus.map((e) => [e.nom, e.prenom].filter(Boolean).join(" ")).filter(Boolean).join(", "), i = {
|
|
693
|
+
locataire: `${e.libelleReclamant || r} — Contrat ${e.type}/${e.id}`,
|
|
694
|
+
demandeur: `${r} — ${e.libelleReclamant}`
|
|
686
695
|
}[e.categorie];
|
|
687
696
|
return {
|
|
688
697
|
...e,
|
|
689
|
-
|
|
698
|
+
dateSortie: n,
|
|
699
|
+
libelle: i ?? e.libelleReclamant
|
|
690
700
|
};
|
|
691
701
|
});
|
|
692
702
|
},
|
|
693
703
|
loadResponsables({ motif: e, categorie: t, type: n, nature: r }) {
|
|
694
704
|
return e == null ? Promise.resolve([]) : o().responsablesByMotif[e] ? Promise.resolve(o().responsablesByMotif[e]) : s(`responsables:${e}`, async () => {
|
|
695
|
-
let a = await
|
|
705
|
+
let a = await We({
|
|
696
706
|
motif: e,
|
|
697
707
|
categorie: t,
|
|
698
708
|
type: n,
|
|
@@ -729,10 +739,10 @@ function Qe({ onError: e, baseUrl: t } = {}) {
|
|
|
729
739
|
return v(l);
|
|
730
740
|
}
|
|
731
741
|
function $e(e) {
|
|
732
|
-
return _(
|
|
742
|
+
return _(Je, e), e;
|
|
733
743
|
}
|
|
734
744
|
function K() {
|
|
735
|
-
let e = f(
|
|
745
|
+
let e = f(Je, null);
|
|
736
746
|
if (!e) throw Error("useCresolData() hors de <creer-sollicitation-form>");
|
|
737
747
|
return e;
|
|
738
748
|
}
|
|
@@ -747,6 +757,17 @@ async function tt(e) {
|
|
|
747
757
|
});
|
|
748
758
|
}
|
|
749
759
|
//#endregion
|
|
760
|
+
//#region src/utils/date.js
|
|
761
|
+
function nt(e) {
|
|
762
|
+
return e == null ? "" : (/* @__PURE__ */ new Date(e * 1e3)).toISOString().slice(0, 10);
|
|
763
|
+
}
|
|
764
|
+
function rt(e) {
|
|
765
|
+
return e ? Math.floor(new Date(e).getTime() / 1e3) : null;
|
|
766
|
+
}
|
|
767
|
+
function it(e) {
|
|
768
|
+
return e == null ? "" : (/* @__PURE__ */ new Date(e * 1e3)).toLocaleDateString("fr-FR");
|
|
769
|
+
}
|
|
770
|
+
//#endregion
|
|
750
771
|
//#region src/components/ReclamantRechercheBlock.vue
|
|
751
772
|
var q = [
|
|
752
773
|
{
|
|
@@ -755,7 +776,7 @@ var q = [
|
|
|
755
776
|
icon: "house-user",
|
|
756
777
|
recherche: "Rechercher un locataire",
|
|
757
778
|
aucun: "Aucun locataire trouvé.",
|
|
758
|
-
placeholder: "Nom, prénom, n° de contrat, adresse, téléphone ou mail…"
|
|
779
|
+
placeholder: "Nom, prénom, n° de contrat ou de module, adresse, téléphone ou mail…"
|
|
759
780
|
},
|
|
760
781
|
{
|
|
761
782
|
key: "demandeur",
|
|
@@ -787,9 +808,9 @@ var q = [
|
|
|
787
808
|
icon: "magnifying-glass",
|
|
788
809
|
recherche: "Rechercher parmi tous les réclamants",
|
|
789
810
|
aucun: "Aucun réclamant trouvé.",
|
|
790
|
-
placeholder: "Nom, prénom, n° de contrat ou de demande, adresse, téléphone ou mail…"
|
|
811
|
+
placeholder: "Nom, prénom, n° de contrat, de module ou de demande, adresse, téléphone ou mail…"
|
|
791
812
|
}
|
|
792
|
-
],
|
|
813
|
+
], at = {
|
|
793
814
|
signataire: "Signataire",
|
|
794
815
|
occupant: "Occupant",
|
|
795
816
|
demandeur: "Demandeur"
|
|
@@ -797,7 +818,7 @@ var q = [
|
|
|
797
818
|
D: "demandeur",
|
|
798
819
|
T: "tiers",
|
|
799
820
|
U: "autre"
|
|
800
|
-
}[e.type] ?? "locataire" : null,
|
|
821
|
+
}[e.type] ?? "locataire" : null, ot = {
|
|
801
822
|
name: "ReclamantRechercheBlock",
|
|
802
823
|
components: { AmsomAutocomplete: O },
|
|
803
824
|
setup() {
|
|
@@ -862,6 +883,9 @@ var q = [
|
|
|
862
883
|
return e ? `${e.type}|${e.id}` : null;
|
|
863
884
|
},
|
|
864
885
|
categorieOf: J,
|
|
886
|
+
sortiLibelle(e) {
|
|
887
|
+
return e?.dateSortie == null ? "sorti" : `sorti le ${it(e.dateSortie)}`;
|
|
888
|
+
},
|
|
865
889
|
iconOf(e) {
|
|
866
890
|
return q.find((t) => t.key === J(e))?.icon ?? "user";
|
|
867
891
|
},
|
|
@@ -876,7 +900,7 @@ var q = [
|
|
|
876
900
|
referenceOf(e) {
|
|
877
901
|
if (!e?.individus) return "";
|
|
878
902
|
let t = J(e);
|
|
879
|
-
return t === "locataire" ? `Contrat ${e.type}/${e.id}` : t === "demandeur" ? e.libelleReclamant : t === "autre" ? "Individu « Autre »" : "Tiers";
|
|
903
|
+
return t === "locataire" ? [`Contrat ${e.type}/${e.id}`, e.idModule && `Module ${e.idModule}`].filter(Boolean).join(" — ") : t === "demandeur" ? e.libelleReclamant : t === "autre" ? "Individu « Autre »" : "Tiers";
|
|
880
904
|
},
|
|
881
905
|
detailOf(e) {
|
|
882
906
|
let t = e?.individus ?? [];
|
|
@@ -884,95 +908,72 @@ var q = [
|
|
|
884
908
|
let e = t[0];
|
|
885
909
|
return e ? [e.telephone, e.mail].filter(Boolean).join(" — ") : "";
|
|
886
910
|
}
|
|
887
|
-
return t.map((
|
|
888
|
-
let
|
|
889
|
-
return
|
|
911
|
+
return t.map((t) => {
|
|
912
|
+
let n = [t.nom, t.prenom].filter(Boolean).join(" "), r = e.estActif && t.dateSortie != null && t.dateSortie * 1e3 < Date.now() ? `sorti le ${it(t.dateSortie)}` : null, i = [at[t.role]?.toLowerCase(), r].filter(Boolean).join(", ");
|
|
913
|
+
return i ? `${n} (${i})` : n;
|
|
890
914
|
}).join(", ");
|
|
891
915
|
}
|
|
892
916
|
}
|
|
893
|
-
},
|
|
917
|
+
}, st = {
|
|
894
918
|
key: 0,
|
|
895
919
|
class: "d-flex flex-column gap-3"
|
|
896
|
-
},
|
|
920
|
+
}, ct = { class: "d-flex flex-wrap gap-2" }, lt = ["onClick"], ut = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, dt = { class: "min-w-0" }, ft = {
|
|
897
921
|
key: 0,
|
|
898
922
|
class: "badge bg-warning-subtle text-warning-emphasis ms-1"
|
|
899
|
-
},
|
|
923
|
+
}, pt = { class: "text-muted d-block text-truncate" }, mt = { key: 0 }, ht = {
|
|
900
924
|
key: 0,
|
|
901
925
|
class: "text-muted d-block text-truncate"
|
|
902
|
-
},
|
|
926
|
+
}, gt = {
|
|
903
927
|
key: 0,
|
|
904
928
|
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
929
|
};
|
|
918
|
-
function
|
|
930
|
+
function _t(e, t, r, c, d, f) {
|
|
919
931
|
let p = S("font-awesome-icon"), h = S("amsom-autocomplete");
|
|
920
|
-
return d.iconsReady ? (g(), o("div",
|
|
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);
|
|
932
|
+
return d.iconsReady ? (g(), o("div", st, [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", ct, [(g(!0), o(n, null, b(f.categories, (e) => (g(), o("button", {
|
|
933
|
+
key: e.key,
|
|
934
|
+
type: "button",
|
|
935
|
+
class: m(["btn btn-sm d-inline-flex align-items-center gap-2", d.categorie === e.key ? "btn-primary" : "btn-outline-primary"]),
|
|
936
|
+
onClick: (t) => f.setCategorie(e.key)
|
|
937
|
+
}, [u(p, {
|
|
938
|
+
icon: e.icon,
|
|
939
|
+
"fixed-width": ""
|
|
940
|
+
}, null, 8, ["icon"]), s("span", null, C(e.label), 1)], 10, lt))), 128))])]), s("div", null, [
|
|
941
|
+
s("label", ut, C(f.categorieCourante.recherche), 1),
|
|
942
|
+
(g(), i(h, {
|
|
943
|
+
key: d.categorie,
|
|
944
|
+
modelValue: f.selectedTrouve,
|
|
945
|
+
"onUpdate:modelValue": t[0] ||= (e) => f.selectedTrouve = e,
|
|
946
|
+
items: d.trouves,
|
|
947
|
+
"filtering-function": ({ items: e }) => e,
|
|
948
|
+
loading: d.rechercheEnCours,
|
|
949
|
+
"get-id": f.cleReclamant,
|
|
950
|
+
"get-input-libelle": (e) => e?.libelle ?? "",
|
|
951
|
+
placeholder: f.categorieCourante.placeholder,
|
|
952
|
+
"input-size": "sm",
|
|
953
|
+
"hide-choices": "",
|
|
954
|
+
"debounce-delay": 0,
|
|
955
|
+
onSearch: f.rechercherPlusTard
|
|
956
|
+
}, {
|
|
957
|
+
options: D((e) => [s("div", dt, [
|
|
958
|
+
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", ft, C(f.categorieOf(e) === "demandeur" ? "inactive" : f.sortiLibelle(e)), 1))], 2),
|
|
959
|
+
s("small", pt, [l(C(f.referenceOf(e)) + " ", 1), e?.adresse ? (g(), o("span", mt, " — " + C(e.adresse), 1)) : a("", !0)]),
|
|
960
|
+
f.detailOf(e) ? (g(), o("small", ht, C(f.detailOf(e)), 1)) : a("", !0)
|
|
961
|
+
])]),
|
|
962
|
+
_: 1
|
|
963
|
+
}, 8, [
|
|
964
|
+
"modelValue",
|
|
965
|
+
"items",
|
|
966
|
+
"filtering-function",
|
|
967
|
+
"loading",
|
|
968
|
+
"get-id",
|
|
969
|
+
"get-input-libelle",
|
|
970
|
+
"placeholder",
|
|
971
|
+
"onSearch"
|
|
972
|
+
])),
|
|
973
|
+
d.rechercheFaite && !d.rechercheEnCours && !d.trouves.length ? (g(), o("small", gt, C(f.categorieCourante.aucun), 1)) : a("", !0)
|
|
974
|
+
])])) : a("", !0);
|
|
974
975
|
}
|
|
975
|
-
var
|
|
976
|
+
var vt = /*#__PURE__*/ F(ot, [["render", _t]]), yt = {
|
|
976
977
|
name: "ProvenanceSelecteurBlock",
|
|
977
978
|
setup() {
|
|
978
979
|
return { draft: P() };
|
|
@@ -988,22 +989,22 @@ var xt = /*#__PURE__*/ F(rt, [["render", bt]]), St = {
|
|
|
988
989
|
return this.provenances.find((e) => e.id === this.selected) ?? null;
|
|
989
990
|
}
|
|
990
991
|
}
|
|
991
|
-
},
|
|
992
|
+
}, bt = {
|
|
992
993
|
key: 0,
|
|
993
994
|
class: "fs-7 text-muted"
|
|
994
|
-
},
|
|
995
|
+
}, xt = { class: "fw-medium" }, St = { key: 1 }, Ct = { class: "d-flex flex-wrap gap-2" }, wt = ["onClick"], Tt = {
|
|
995
996
|
key: 0,
|
|
996
997
|
class: "fs-7 text-danger mt-1"
|
|
997
998
|
};
|
|
998
|
-
function
|
|
999
|
+
function Et(e, t, r, c, d, f) {
|
|
999
1000
|
let p = S("font-awesome-icon");
|
|
1000
|
-
return c.draft.isReadonly("provenance") ? (g(), o("div",
|
|
1001
|
+
return c.draft.isReadonly("provenance") ? (g(), o("div", bt, [t[0] ||= l(" Provenance du contact : ", -1), s("span", xt, [f.provenanceChoisie?.icon ? (g(), i(p, {
|
|
1001
1002
|
key: 0,
|
|
1002
1003
|
icon: f.provenanceChoisie.icon,
|
|
1003
1004
|
"fixed-width": ""
|
|
1004
|
-
}, null, 8, ["icon"])) : a("", !0), l(" " + C(f.provenanceChoisie?.libelle ?? "—"), 1)])])) : (g(), o("div",
|
|
1005
|
+
}, null, 8, ["icon"])) : a("", !0), l(" " + C(f.provenanceChoisie?.libelle ?? "—"), 1)])])) : (g(), o("div", St, [
|
|
1005
1006
|
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",
|
|
1007
|
+
s("div", Ct, [(g(!0), o(n, null, b(f.provenances, (e) => (g(), o("button", {
|
|
1007
1008
|
key: e.id,
|
|
1008
1009
|
type: "button",
|
|
1009
1010
|
class: m(["btn btn-sm d-inline-flex align-items-center gap-2", e.id === f.selected ? "btn-primary" : "btn-outline-primary"]),
|
|
@@ -1011,15 +1012,15 @@ function kt(e, t, r, c, d, f) {
|
|
|
1011
1012
|
}, [u(p, {
|
|
1012
1013
|
icon: e.icon,
|
|
1013
1014
|
"fixed-width": ""
|
|
1014
|
-
}, null, 8, ["icon"]), s("span", null, C(e.libelle), 1)], 10,
|
|
1015
|
-
f.selected ? a("", !0) : (g(), o("div",
|
|
1015
|
+
}, null, 8, ["icon"]), s("span", null, C(e.libelle), 1)], 10, wt))), 128))]),
|
|
1016
|
+
f.selected ? a("", !0) : (g(), o("div", Tt, " Sélectionnez par quel canal la sollicitation vous est parvenue. "))
|
|
1016
1017
|
]));
|
|
1017
1018
|
}
|
|
1018
|
-
var
|
|
1019
|
+
var Dt = /*#__PURE__*/ F(yt, [["render", Et]]), Ot = {
|
|
1019
1020
|
name: "EtapeReclamantBlock",
|
|
1020
1021
|
components: {
|
|
1021
|
-
ReclamantRechercheBlock:
|
|
1022
|
-
ProvenanceSelecteurBlock:
|
|
1022
|
+
ReclamantRechercheBlock: vt,
|
|
1023
|
+
ProvenanceSelecteurBlock: Dt
|
|
1023
1024
|
},
|
|
1024
1025
|
props: { premiere: {
|
|
1025
1026
|
type: Boolean,
|
|
@@ -1028,18 +1029,18 @@ var At = /*#__PURE__*/ F(St, [["render", kt]]), jt = {
|
|
|
1028
1029
|
setup() {
|
|
1029
1030
|
return { draft: P() };
|
|
1030
1031
|
}
|
|
1031
|
-
},
|
|
1032
|
-
function
|
|
1032
|
+
}, kt = { class: "d-flex flex-column gap-3" }, At = { class: "alert alert-light border py-2 px-3 mb-0 fs-7" };
|
|
1033
|
+
function jt(e, t, n, r, c, d) {
|
|
1033
1034
|
let f = S("provenance-selecteur-block"), p = S("font-awesome-icon"), m = S("reclamant-recherche-block");
|
|
1034
|
-
return g(), o("div",
|
|
1035
|
+
return g(), o("div", kt, [n.premiere ? (g(), i(f, { key: 0 })) : a("", !0), x(e.$slots, "reclamant", {
|
|
1035
1036
|
reclamant: r.draft.reclamantSelectionne,
|
|
1036
1037
|
select: r.draft.selectReclamant
|
|
1037
|
-
}, () => [s("div",
|
|
1038
|
+
}, () => [s("div", At, [u(p, {
|
|
1038
1039
|
icon: "user",
|
|
1039
1040
|
class: "text-primary me-2"
|
|
1040
1041
|
}), t[0] ||= l(" Pour qui cette sollicitation est-elle créée\xA0? ", -1)]), u(m)])]);
|
|
1041
1042
|
}
|
|
1042
|
-
var
|
|
1043
|
+
var Mt = /*#__PURE__*/ F(Ot, [["render", jt]]), Nt = Symbol("cresol:options"), Pt = (e) => _(Nt, e), Y = () => f(Nt, {});
|
|
1043
1044
|
//#endregion
|
|
1044
1045
|
//#region src/utils/text.js
|
|
1045
1046
|
function X(e, t = !0) {
|
|
@@ -1049,7 +1050,7 @@ function X(e, t = !0) {
|
|
|
1049
1050
|
}
|
|
1050
1051
|
//#endregion
|
|
1051
1052
|
//#region src/components/ReclamantSelecteurBlock.vue
|
|
1052
|
-
var
|
|
1053
|
+
var Ft = {
|
|
1053
1054
|
name: "ReclamantSelecteurBlock",
|
|
1054
1055
|
components: { AmsomAutocomplete: O },
|
|
1055
1056
|
props: {
|
|
@@ -1095,25 +1096,25 @@ var Rt = {
|
|
|
1095
1096
|
return n ? t.filter((e) => (X(e?.libelle) ?? "").includes(n)) : t;
|
|
1096
1097
|
}
|
|
1097
1098
|
}
|
|
1098
|
-
},
|
|
1099
|
+
}, It = {
|
|
1099
1100
|
key: 0,
|
|
1100
1101
|
class: "fs-7 text-muted"
|
|
1101
|
-
},
|
|
1102
|
+
}, Lt = { class: "fw-medium" }, Rt = {
|
|
1102
1103
|
key: 0,
|
|
1103
1104
|
class: "btn-group btn-group-sm",
|
|
1104
1105
|
role: "group"
|
|
1105
|
-
},
|
|
1106
|
-
function
|
|
1106
|
+
}, zt = ["onClick"], Bt = ["value"], Vt = ["value"];
|
|
1107
|
+
function Ht(e, t, r, a, c, u) {
|
|
1107
1108
|
let d = S("amsom-autocomplete");
|
|
1108
|
-
return u.estFige ? (g(), o("div",
|
|
1109
|
+
return u.estFige ? (g(), o("div", It, [t[2] ||= l(" Réclamant : ", -1), s("span", Lt, C(u.reclamantSelectionne?.libelle), 1)])) : (g(), o("div", {
|
|
1109
1110
|
key: 1,
|
|
1110
1111
|
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",
|
|
1112
|
+
}, [t[3] ||= s("span", { class: "fs-7 fw-semibold text-muted text-uppercase" }, "Réclamant", -1), u.presentation === "switch" ? (g(), o("div", Rt, [(g(!0), o(n, null, b(u.reclamants, (e, t) => (g(), o("button", {
|
|
1112
1113
|
key: t,
|
|
1113
1114
|
type: "button",
|
|
1114
1115
|
class: m(["btn btn-sm py-0", e === u.reclamantSelectionne ? "btn-primary" : "btn-outline-primary"]),
|
|
1115
1116
|
onClick: (t) => u.select(e)
|
|
1116
|
-
}, C(e.libelle), 11,
|
|
1117
|
+
}, C(e.libelle), 11, zt))), 128))])) : u.presentation === "autocomplete" ? (g(), i(d, {
|
|
1117
1118
|
key: 1,
|
|
1118
1119
|
"model-value": u.reclamantSelectionne,
|
|
1119
1120
|
items: u.reclamants,
|
|
@@ -1140,17 +1141,17 @@ function Gt(e, t, r, a, c, u) {
|
|
|
1140
1141
|
}, [(g(!0), o(n, null, b(u.reclamants, (e, t) => (g(), o("option", {
|
|
1141
1142
|
key: t,
|
|
1142
1143
|
value: t
|
|
1143
|
-
}, C(e.libelle), 9,
|
|
1144
|
+
}, C(e.libelle), 9, Vt))), 128))], 42, Bt))], 2));
|
|
1144
1145
|
}
|
|
1145
1146
|
//#endregion
|
|
1146
1147
|
//#region src/components/EtapeCategorieBlock.vue
|
|
1147
|
-
var
|
|
1148
|
+
var Ut = {
|
|
1148
1149
|
name: "EtapeCategorieBlock",
|
|
1149
1150
|
components: {
|
|
1150
1151
|
AmsomOverlay: t,
|
|
1151
1152
|
AmsomAutocomplete: O,
|
|
1152
|
-
ReclamantSelecteurBlock: /* @__PURE__ */ F(
|
|
1153
|
-
ProvenanceSelecteurBlock:
|
|
1153
|
+
ReclamantSelecteurBlock: /* @__PURE__ */ F(Ft, [["render", Ht]]),
|
|
1154
|
+
ProvenanceSelecteurBlock: Dt
|
|
1154
1155
|
},
|
|
1155
1156
|
props: { premiere: {
|
|
1156
1157
|
type: Boolean,
|
|
@@ -1312,40 +1313,40 @@ var Kt = {
|
|
|
1312
1313
|
return this.activeMotifs.find((t) => t.id === e)?.libelle ?? e;
|
|
1313
1314
|
}
|
|
1314
1315
|
}
|
|
1315
|
-
},
|
|
1316
|
+
}, Wt = {
|
|
1316
1317
|
key: 0,
|
|
1317
1318
|
class: "d-flex flex-column gap-3"
|
|
1318
|
-
},
|
|
1319
|
+
}, Gt = { key: 2 }, Kt = { class: "d-flex flex-wrap align-items-center gap-2" }, qt = { class: "badge rounded-pill bg-primary d-inline-flex align-items-center gap-2" }, Jt = { key: 3 }, Yt = { class: "d-flex align-items-center gap-2" }, Xt = { class: "min-w-0" }, Zt = { class: "fw-medium text-truncate" }, Qt = { class: "text-muted d-block text-truncate" }, $t = {
|
|
1319
1320
|
key: 4,
|
|
1320
1321
|
class: "d-flex align-items-center gap-2 text-muted fs-7"
|
|
1321
|
-
},
|
|
1322
|
+
}, en = {
|
|
1322
1323
|
key: 5,
|
|
1323
1324
|
class: "d-flex flex-wrap align-items-center gap-2"
|
|
1324
|
-
},
|
|
1325
|
+
}, tn = ["onClick"], nn = { key: 6 }, rn = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-2" }, an = { class: "row justify-content-around g-3" }, on = ["title", "onClick"], sn = { class: "fs-7 mt-1 lh-sm" }, cn = {
|
|
1325
1326
|
key: 0,
|
|
1326
1327
|
class: "col-12 text-muted fs-7"
|
|
1327
|
-
},
|
|
1328
|
+
}, ln = [
|
|
1328
1329
|
"id",
|
|
1329
1330
|
"checked",
|
|
1330
1331
|
"disabled",
|
|
1331
1332
|
"onChange"
|
|
1332
|
-
],
|
|
1333
|
-
function
|
|
1333
|
+
], un = ["for"];
|
|
1334
|
+
function dn(e, t, r, c, d, f) {
|
|
1334
1335
|
let p = S("provenance-selecteur-block"), m = S("reclamant-selecteur-block"), h = S("font-awesome-icon"), _ = S("amsom-autocomplete"), v = S("amsom-overlay");
|
|
1335
1336
|
return g(), i(v, { loading: c.data.isLoading && !c.data.cache.motifs || !d.iconsReady }, {
|
|
1336
|
-
default:
|
|
1337
|
+
default: D(() => [d.iconsReady ? (g(), o("div", Wt, [
|
|
1337
1338
|
r.premiere ? (g(), i(p, { key: 0 })) : a("", !0),
|
|
1338
1339
|
c.options.reclamantMode === "step" ? a("", !0) : (g(), i(m, { key: 1 })),
|
|
1339
|
-
f.motifFige && f.selectionChain.length ? (g(), o("div",
|
|
1340
|
+
f.motifFige && f.selectionChain.length ? (g(), o("div", Gt, [t[1] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Motif", -1), s("div", Kt, [(g(!0), o(n, null, b(f.selectionChain, (e, t) => (g(), o(n, { key: e.level }, [t > 0 ? (g(), i(h, {
|
|
1340
1341
|
key: 0,
|
|
1341
1342
|
icon: "fa-solid fa-chevron-right",
|
|
1342
1343
|
class: "text-muted fs-7"
|
|
1343
|
-
})) : a("", !0), s("span",
|
|
1344
|
+
})) : a("", !0), s("span", qt, [e.icon ? (g(), i(h, {
|
|
1344
1345
|
key: 0,
|
|
1345
1346
|
icon: e.icon,
|
|
1346
1347
|
"fixed-width": ""
|
|
1347
1348
|
}, null, 8, ["icon"])) : a("", !0), l(" " + C(e.libelle), 1)])], 64))), 128))])])) : a("", !0),
|
|
1348
|
-
f.motifFige ? a("", !0) : (g(), o("div",
|
|
1349
|
+
f.motifFige ? a("", !0) : (g(), o("div", Jt, [t[2] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Rechercher un motif ", -1), u(_, {
|
|
1349
1350
|
modelValue: f.motifRecherche,
|
|
1350
1351
|
"onUpdate:modelValue": t[0] ||= (e) => f.motifRecherche = e,
|
|
1351
1352
|
items: f.allowedMotifs,
|
|
@@ -1357,12 +1358,12 @@ function mn(e, t, r, c, d, f) {
|
|
|
1357
1358
|
"input-size": "sm",
|
|
1358
1359
|
"hide-choices": ""
|
|
1359
1360
|
}, {
|
|
1360
|
-
options:
|
|
1361
|
+
options: D((e) => [s("div", Yt, [e?.icon ? (g(), i(h, {
|
|
1361
1362
|
key: 0,
|
|
1362
1363
|
icon: e.icon,
|
|
1363
1364
|
class: "text-primary",
|
|
1364
1365
|
"fixed-width": ""
|
|
1365
|
-
}, null, 8, ["icon"])) : a("", !0), s("div",
|
|
1366
|
+
}, null, 8, ["icon"])) : a("", !0), s("div", Xt, [s("div", Zt, C(e?.libelle), 1), s("small", Qt, C(e?.categorie) + " › " + C(e?.type) + " › " + C(e?.nature), 1)])])]),
|
|
1366
1367
|
_: 1
|
|
1367
1368
|
}, 8, [
|
|
1368
1369
|
"modelValue",
|
|
@@ -1372,12 +1373,12 @@ function mn(e, t, r, c, d, f) {
|
|
|
1372
1373
|
"get-input-libelle-from-id",
|
|
1373
1374
|
"filtering-function"
|
|
1374
1375
|
])])),
|
|
1375
|
-
f.motifFige ? a("", !0) : (g(), o("div",
|
|
1376
|
+
f.motifFige ? a("", !0) : (g(), o("div", $t, [...t[3] ||= [
|
|
1376
1377
|
s("hr", { class: "flex-grow-1 my-0" }, null, -1),
|
|
1377
1378
|
s("span", null, "ou sélection guidée", -1),
|
|
1378
1379
|
s("hr", { class: "flex-grow-1 my-0" }, null, -1)
|
|
1379
1380
|
]])),
|
|
1380
|
-
!f.motifFige && f.selectionChain.length ? (g(), o("div",
|
|
1381
|
+
!f.motifFige && f.selectionChain.length ? (g(), o("div", en, [(g(!0), o(n, null, b(f.selectionChain, (e, t) => (g(), o(n, { key: e.level }, [t > 0 ? (g(), i(h, {
|
|
1381
1382
|
key: 0,
|
|
1382
1383
|
icon: "fa-solid fa-chevron-right",
|
|
1383
1384
|
class: "text-muted fs-7"
|
|
@@ -1396,8 +1397,8 @@ function mn(e, t, r, c, d, f) {
|
|
|
1396
1397
|
icon: "fa-solid fa-xmark",
|
|
1397
1398
|
class: "fs-7 opacity-75"
|
|
1398
1399
|
})
|
|
1399
|
-
], 8,
|
|
1400
|
-
!f.motifFige && f.currentLevel ? (g(), o("div",
|
|
1400
|
+
], 8, tn)], 64))), 128))])) : a("", !0),
|
|
1401
|
+
!f.motifFige && f.currentLevel ? (g(), o("div", nn, [s("label", rn, C(f.currentLevel.title), 1), s("div", an, [(g(!0), o(n, null, b(f.currentLevel.options, (e) => (g(), o("div", {
|
|
1401
1402
|
key: e.id,
|
|
1402
1403
|
class: "col-3 text-center"
|
|
1403
1404
|
}, [s("button", {
|
|
@@ -1409,7 +1410,7 @@ function mn(e, t, r, c, d, f) {
|
|
|
1409
1410
|
key: 0,
|
|
1410
1411
|
icon: e.icon,
|
|
1411
1412
|
size: "lg"
|
|
1412
|
-
}, null, 8, ["icon"])) : a("", !0)], 8,
|
|
1413
|
+
}, null, 8, ["icon"])) : a("", !0)], 8, on), s("div", sn, C(e.libelle), 1)]))), 128)), f.currentLevel.options.length ? a("", !0) : (g(), o("div", cn, " Aucun choix disponible "))])])) : a("", !0),
|
|
1413
1414
|
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
1415
|
s("hr", { class: "flex-grow-1 my-0" }),
|
|
1415
1416
|
s("span", null, "Autres motifs liés"),
|
|
@@ -1424,15 +1425,15 @@ function mn(e, t, r, c, d, f) {
|
|
|
1424
1425
|
checked: f.isActive(e.idMotif),
|
|
1425
1426
|
disabled: f.motifFige,
|
|
1426
1427
|
onChange: (t) => f.toggleMotifAssocie(e)
|
|
1427
|
-
}, null, 40,
|
|
1428
|
+
}, null, 40, ln), s("label", {
|
|
1428
1429
|
class: "form-check-label fs-7",
|
|
1429
1430
|
for: `assoc-${e.idMotif}`
|
|
1430
|
-
}, C(e.libelle) + " ? ", 9,
|
|
1431
|
+
}, C(e.libelle) + " ? ", 9, un)]))), 128))], 64)) : a("", !0)
|
|
1431
1432
|
])) : a("", !0)]),
|
|
1432
1433
|
_: 1
|
|
1433
1434
|
}, 8, ["loading"]);
|
|
1434
1435
|
}
|
|
1435
|
-
var
|
|
1436
|
+
var fn = /*#__PURE__*/ F(Ut, [["render", dn]]), pn = {
|
|
1436
1437
|
B: "briefcase",
|
|
1437
1438
|
M: "store",
|
|
1438
1439
|
W: "dungeon",
|
|
@@ -1442,15 +1443,15 @@ var hn = /*#__PURE__*/ F(Kt, [["render", mn]]), gn = {
|
|
|
1442
1443
|
S: "square-parking",
|
|
1443
1444
|
V: "hands-holding"
|
|
1444
1445
|
};
|
|
1445
|
-
function
|
|
1446
|
-
return e === "L" ? t ? "building" : "house" :
|
|
1446
|
+
function mn(e, t = !1, n = "circle-question") {
|
|
1447
|
+
return e === "L" ? t ? "building" : "house" : pn[e] ?? n;
|
|
1447
1448
|
}
|
|
1448
|
-
function
|
|
1449
|
+
function hn(e) {
|
|
1449
1450
|
return e ? e.idCategorieModule === "L" ? e.estCollectif ? "Appartement" : "Maison" : e.categorieModule ?? "" : "";
|
|
1450
1451
|
}
|
|
1451
1452
|
//#endregion
|
|
1452
1453
|
//#region src/components/CiblePickerBlock.vue
|
|
1453
|
-
var
|
|
1454
|
+
var gn = 0, _n = {
|
|
1454
1455
|
name: "CiblePickerBlock",
|
|
1455
1456
|
components: { AmsomAutocomplete: O },
|
|
1456
1457
|
props: {
|
|
@@ -1482,6 +1483,10 @@ var yn = 0, bn = {
|
|
|
1482
1483
|
type: Boolean,
|
|
1483
1484
|
default: !1
|
|
1484
1485
|
},
|
|
1486
|
+
modulePrecis: {
|
|
1487
|
+
type: Boolean,
|
|
1488
|
+
default: !0
|
|
1489
|
+
},
|
|
1485
1490
|
locataireActuelOption: {
|
|
1486
1491
|
type: Object,
|
|
1487
1492
|
default: null
|
|
@@ -1495,14 +1500,15 @@ var yn = 0, bn = {
|
|
|
1495
1500
|
"select-module",
|
|
1496
1501
|
"select-contrat",
|
|
1497
1502
|
"toggle-contrat-reclamant",
|
|
1498
|
-
"toggle-reprendre-locataire-actuel"
|
|
1503
|
+
"toggle-reprendre-locataire-actuel",
|
|
1504
|
+
"set-module-precis"
|
|
1499
1505
|
],
|
|
1500
1506
|
setup() {
|
|
1501
1507
|
return { data: K() };
|
|
1502
1508
|
},
|
|
1503
1509
|
data() {
|
|
1504
1510
|
return {
|
|
1505
|
-
uid: ++
|
|
1511
|
+
uid: ++gn,
|
|
1506
1512
|
rechercheContrat: "",
|
|
1507
1513
|
contratsTrouves: [],
|
|
1508
1514
|
rechercheEnCours: !1,
|
|
@@ -1524,13 +1530,28 @@ var yn = 0, bn = {
|
|
|
1524
1530
|
}, {
|
|
1525
1531
|
key: "patrimoine",
|
|
1526
1532
|
label: "Du patrimoine",
|
|
1527
|
-
icon: "building"
|
|
1528
|
-
aide: "Une adresse seule pour une partie commune, un module pour un logement précis."
|
|
1533
|
+
icon: "building"
|
|
1529
1534
|
}];
|
|
1530
1535
|
},
|
|
1531
1536
|
currentMode() {
|
|
1532
1537
|
return this.availableModes.find((e) => e.key === this.cibleMode);
|
|
1533
1538
|
},
|
|
1539
|
+
portees() {
|
|
1540
|
+
return [{
|
|
1541
|
+
modulePrecis: !1,
|
|
1542
|
+
icon: "building",
|
|
1543
|
+
titre: "Les parties communes",
|
|
1544
|
+
aide: "Les espaces partagés de l’étage choisi"
|
|
1545
|
+
}, {
|
|
1546
|
+
modulePrecis: !0,
|
|
1547
|
+
icon: "house",
|
|
1548
|
+
titre: "Un module précis",
|
|
1549
|
+
aide: "Un module voisin dans la résidence"
|
|
1550
|
+
}];
|
|
1551
|
+
},
|
|
1552
|
+
afficheModule() {
|
|
1553
|
+
return this.cibleMode === "contrat" || this.modulePrecis;
|
|
1554
|
+
},
|
|
1534
1555
|
contratModules() {
|
|
1535
1556
|
return this.contratReclamant ? this.reclamantModules : this.contratCible ? this.data.modulesOfContrat(this.contratCible) ?? [] : [];
|
|
1536
1557
|
},
|
|
@@ -1648,6 +1669,9 @@ var yn = 0, bn = {
|
|
|
1648
1669
|
contratInputLibelle(e) {
|
|
1649
1670
|
return e ? [e.libelle, `${e.typeContrat}/${e.idContrat}`].filter(Boolean).join(" — ") : "";
|
|
1650
1671
|
},
|
|
1672
|
+
contratAdresse(e) {
|
|
1673
|
+
return [e?.adresse, e?.commune].filter(Boolean).join(", ");
|
|
1674
|
+
},
|
|
1651
1675
|
filterOn(e) {
|
|
1652
1676
|
return ({ search: t, items: n }) => {
|
|
1653
1677
|
let r = (X(t) ?? "").trim();
|
|
@@ -1656,10 +1680,10 @@ var yn = 0, bn = {
|
|
|
1656
1680
|
},
|
|
1657
1681
|
filterModules({ search: e, items: t }) {
|
|
1658
1682
|
let n = (X(e) ?? "").trim();
|
|
1659
|
-
return n ? t.filter((e) => (X(this.moduleInputLibelle(e)) ?? "").includes(n) || (X(e?._autreLibelle) ?? "").includes(n)) : t;
|
|
1683
|
+
return n ? t.filter((e) => String(e?.idModule ?? "").includes(n) || (X(this.moduleInputLibelle(e)) ?? "").includes(n) || (X(e?._autreLibelle) ?? "").includes(n)) : t;
|
|
1660
1684
|
},
|
|
1661
|
-
getCategorieModuleIcon:
|
|
1662
|
-
categorieLibelle:
|
|
1685
|
+
getCategorieModuleIcon: mn,
|
|
1686
|
+
categorieLibelle: hn,
|
|
1663
1687
|
moduleLibelle(e) {
|
|
1664
1688
|
return e ? e.libelleModule ?? e.adresse ?? `Module ${e.idModule}` : "";
|
|
1665
1689
|
},
|
|
@@ -1671,21 +1695,27 @@ var yn = 0, bn = {
|
|
|
1671
1695
|
return !!e?.dateFin && e.dateFin < Math.floor(Date.now() / 1e3);
|
|
1672
1696
|
}
|
|
1673
1697
|
}
|
|
1674
|
-
},
|
|
1698
|
+
}, vn = { class: "d-flex flex-column gap-3" }, yn = {
|
|
1675
1699
|
class: "btn-group w-100",
|
|
1676
1700
|
role: "group"
|
|
1677
|
-
},
|
|
1701
|
+
}, bn = ["onClick"], xn = { class: "text-muted d-block mt-1" }, Sn = {
|
|
1678
1702
|
key: 0,
|
|
1679
1703
|
class: "form-check"
|
|
1680
|
-
},
|
|
1704
|
+
}, Cn = ["id", "checked"], wn = ["for"], Tn = { key: 1 }, En = { class: "min-w-0" }, Dn = { class: "fw-medium text-truncate text-capitalize" }, On = { class: "d-flex flex-wrap align-items-center gap-1" }, kn = { class: "text-muted" }, An = {
|
|
1705
|
+
key: 0,
|
|
1706
|
+
class: "badge bg-info"
|
|
1707
|
+
}, jn = {
|
|
1681
1708
|
key: 1,
|
|
1682
|
-
class: "
|
|
1683
|
-
},
|
|
1709
|
+
class: "badge bg-warning"
|
|
1710
|
+
}, Mn = {
|
|
1711
|
+
key: 0,
|
|
1712
|
+
class: "text-muted d-block text-truncate"
|
|
1713
|
+
}, Nn = { key: 1 }, Pn = { class: "row g-2" }, Fn = ["aria-pressed", "onClick"], In = { class: "min-w-0" }, Ln = { class: "d-block fw-semibold fs-6" }, Rn = { class: "d-block text-muted" }, zn = {
|
|
1684
1714
|
key: 2,
|
|
1685
|
-
class: "row g-
|
|
1686
|
-
},
|
|
1715
|
+
class: "row g-3"
|
|
1716
|
+
}, Bn = { class: "min-w-0" }, Vn = { class: "fw-medium text-truncate" }, Hn = { class: "text-muted d-block text-truncate" }, Un = ["value"], Wn = ["value"], Gn = ["value"], Kn = {
|
|
1687
1717
|
key: 0,
|
|
1688
|
-
class: "
|
|
1718
|
+
class: "col-12 col-md-6"
|
|
1689
1719
|
}, qn = { class: "d-flex flex-wrap align-items-center gap-1" }, Jn = ["title"], Yn = { class: "text-muted" }, Xn = {
|
|
1690
1720
|
key: 1,
|
|
1691
1721
|
class: "d-block text-truncate"
|
|
@@ -1694,17 +1724,14 @@ var yn = 0, bn = {
|
|
|
1694
1724
|
class: "text-muted d-block"
|
|
1695
1725
|
}, Qn = {
|
|
1696
1726
|
key: 0,
|
|
1697
|
-
class: "text-muted d-block"
|
|
1698
|
-
}, $n = {
|
|
1699
|
-
key: 1,
|
|
1700
1727
|
class: "mt-2 d-flex flex-column gap-2"
|
|
1701
|
-
},
|
|
1702
|
-
function
|
|
1728
|
+
}, $n = { class: "form-check mb-0 ms-3" }, er = ["id", "checked"], tr = ["for"];
|
|
1729
|
+
function nr(e, t, r, c, d, f) {
|
|
1703
1730
|
let p = S("font-awesome-icon"), h = S("amsom-autocomplete");
|
|
1704
|
-
return g(), o("div",
|
|
1731
|
+
return g(), o("div", vn, [
|
|
1705
1732
|
s("div", null, [
|
|
1706
1733
|
t[7] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " La sollicitation concerne… ", -1),
|
|
1707
|
-
s("div",
|
|
1734
|
+
s("div", yn, [(g(!0), o(n, null, b(f.availableModes, (t) => (g(), o("button", {
|
|
1708
1735
|
key: t.key,
|
|
1709
1736
|
type: "button",
|
|
1710
1737
|
class: m(["btn btn-sm", r.cibleMode === t.key ? "btn-primary" : "btn-outline-primary"]),
|
|
@@ -1712,19 +1739,19 @@ function rr(e, t, r, c, d, f) {
|
|
|
1712
1739
|
}, [u(p, {
|
|
1713
1740
|
icon: t.icon,
|
|
1714
1741
|
class: "me-1"
|
|
1715
|
-
}, null, 8, ["icon"]), l(" " + C(t.label), 1)], 10,
|
|
1716
|
-
s("small",
|
|
1742
|
+
}, null, 8, ["icon"]), l(" " + C(t.label), 1)], 10, bn))), 128))]),
|
|
1743
|
+
s("small", xn, C(f.currentMode?.aide), 1)
|
|
1717
1744
|
]),
|
|
1718
|
-
r.cibleMode === "contrat" ? (g(), o(n, { key: 0 }, [r.afficheCaseContratReclamant ? (g(), o("div",
|
|
1745
|
+
r.cibleMode === "contrat" ? (g(), o(n, { key: 0 }, [r.afficheCaseContratReclamant ? (g(), o("div", Sn, [s("input", {
|
|
1719
1746
|
id: `contrat-reclamant-${d.uid}`,
|
|
1720
1747
|
class: "form-check-input",
|
|
1721
1748
|
type: "checkbox",
|
|
1722
1749
|
checked: r.contratReclamant,
|
|
1723
1750
|
onChange: t[0] ||= (t) => e.$emit("toggle-contrat-reclamant", t.target.checked)
|
|
1724
|
-
}, null, 40,
|
|
1751
|
+
}, null, 40, Cn), s("label", {
|
|
1725
1752
|
class: "form-check-label fs-7",
|
|
1726
1753
|
for: `contrat-reclamant-${d.uid}`
|
|
1727
|
-
}, " Contrat du réclamant ", 8,
|
|
1754
|
+
}, " Contrat du réclamant ", 8, wn)])) : a("", !0), r.contratReclamant ? a("", !0) : (g(), o("div", Tn, [t[8] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Contrat ciblé ", -1), u(h, {
|
|
1728
1755
|
modelValue: f.selectedContrat,
|
|
1729
1756
|
"onUpdate:modelValue": t[1] ||= (e) => f.selectedContrat = e,
|
|
1730
1757
|
items: d.contratsTrouves,
|
|
@@ -1738,11 +1765,15 @@ function rr(e, t, r, c, d, f) {
|
|
|
1738
1765
|
"debounce-delay": 0,
|
|
1739
1766
|
onSearch: f.rechercherPlusTard
|
|
1740
1767
|
}, {
|
|
1741
|
-
options:
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1768
|
+
options: D((e) => [s("div", En, [
|
|
1769
|
+
s("div", Dn, C(e?.libelle ?? `Contrat ${e?.idContrat}`), 1),
|
|
1770
|
+
s("div", On, [
|
|
1771
|
+
s("small", kn, "N° " + C(e?.typeContrat) + "/" + C(e?.idContrat), 1),
|
|
1772
|
+
e?.nbModules > 1 ? (g(), o("span", An, C(e.nbModules) + " modules", 1)) : a("", !0),
|
|
1773
|
+
e?.estSorti ? (g(), o("span", jn, "Sorti")) : a("", !0)
|
|
1774
|
+
]),
|
|
1775
|
+
f.contratAdresse(e) ? (g(), o("small", Mn, C(f.contratAdresse(e)), 1)) : a("", !0)
|
|
1776
|
+
])]),
|
|
1746
1777
|
_: 1
|
|
1747
1778
|
}, 8, [
|
|
1748
1779
|
"modelValue",
|
|
@@ -1753,8 +1784,21 @@ function rr(e, t, r, c, d, f) {
|
|
|
1753
1784
|
"get-input-libelle",
|
|
1754
1785
|
"onSearch"
|
|
1755
1786
|
])]))], 64)) : a("", !0),
|
|
1756
|
-
r.cibleMode === "patrimoine" ? (g(), o(
|
|
1757
|
-
|
|
1787
|
+
r.cibleMode === "patrimoine" ? (g(), o("div", Nn, [t[9] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Le problème concerne… ", -1), s("div", Pn, [(g(!0), o(n, null, b(f.portees, (t) => (g(), o("div", {
|
|
1788
|
+
key: t.titre,
|
|
1789
|
+
class: "col-12 col-md-6"
|
|
1790
|
+
}, [s("button", {
|
|
1791
|
+
type: "button",
|
|
1792
|
+
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"]),
|
|
1793
|
+
"aria-pressed": t.modulePrecis === r.modulePrecis,
|
|
1794
|
+
onClick: (n) => e.$emit("set-module-precis", t.modulePrecis)
|
|
1795
|
+
}, [u(p, {
|
|
1796
|
+
icon: t.icon,
|
|
1797
|
+
class: "fs-4",
|
|
1798
|
+
"fixed-width": ""
|
|
1799
|
+
}, null, 8, ["icon"]), s("span", In, [s("span", Ln, C(t.titre), 1), s("small", Rn, C(t.aide), 1)])], 10, Fn)]))), 128))])])) : a("", !0),
|
|
1800
|
+
r.cibleMode === "contrat" || r.cibleMode === "patrimoine" ? (g(), o("div", zn, [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 }, [
|
|
1801
|
+
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
1802
|
modelValue: f.selectedCommune,
|
|
1759
1803
|
"onUpdate:modelValue": t[2] ||= (e) => f.selectedCommune = e,
|
|
1760
1804
|
items: c.data.cache.communes || [],
|
|
@@ -1771,7 +1815,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1771
1815
|
"get-input-libelle",
|
|
1772
1816
|
"filtering-function"
|
|
1773
1817
|
])]),
|
|
1774
|
-
s("div", null, [t[
|
|
1818
|
+
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
1819
|
modelValue: f.selectedAdresse,
|
|
1776
1820
|
"onUpdate:modelValue": t[3] ||= (e) => f.selectedAdresse = e,
|
|
1777
1821
|
items: f.adresses,
|
|
@@ -1783,7 +1827,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1783
1827
|
"input-size": "sm",
|
|
1784
1828
|
"hide-choices": ""
|
|
1785
1829
|
}, {
|
|
1786
|
-
options:
|
|
1830
|
+
options: D((e) => [s("div", Bn, [s("div", Vn, C(e?.entree), 1), s("small", Hn, C(e?.commune) + " — Programme " + C(e?.codeProgramme), 1)])]),
|
|
1787
1831
|
_: 1
|
|
1788
1832
|
}, 8, [
|
|
1789
1833
|
"modelValue",
|
|
@@ -1793,7 +1837,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1793
1837
|
"filtering-function",
|
|
1794
1838
|
"disabled"
|
|
1795
1839
|
])]),
|
|
1796
|
-
s("div", null, [t[
|
|
1840
|
+
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
1841
|
modelValue: f.selectedEtage,
|
|
1798
1842
|
"onUpdate:modelValue": t[4] ||= (e) => f.selectedEtage = e,
|
|
1799
1843
|
items: f.etages,
|
|
@@ -1810,26 +1854,24 @@ function rr(e, t, r, c, d, f) {
|
|
|
1810
1854
|
"get-input-libelle",
|
|
1811
1855
|
"disabled"
|
|
1812
1856
|
])])
|
|
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", {
|
|
1857
|
+
], 64)) : (g(), o(n, { key: 1 }, [
|
|
1858
|
+
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
1859
|
class: "form-control form-control-sm",
|
|
1817
1860
|
disabled: "",
|
|
1818
1861
|
value: r.patrimoine.commune ?? "—"
|
|
1819
|
-
}, null, 8,
|
|
1820
|
-
s("div",
|
|
1862
|
+
}, null, 8, Un)]),
|
|
1863
|
+
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
1864
|
class: "form-control form-control-sm",
|
|
1822
1865
|
disabled: "",
|
|
1823
1866
|
value: r.patrimoine.entree ?? "—"
|
|
1824
|
-
}, null, 8,
|
|
1825
|
-
s("div",
|
|
1867
|
+
}, null, 8, Wn)]),
|
|
1868
|
+
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
1869
|
class: "form-control form-control-sm",
|
|
1827
1870
|
disabled: "",
|
|
1828
1871
|
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)]),
|
|
1872
|
+
}, null, 8, Gn)])
|
|
1873
|
+
], 64))], 2), f.afficheModule ? (g(), o("div", Kn, [
|
|
1874
|
+
t[16] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Module", -1),
|
|
1833
1875
|
u(h, {
|
|
1834
1876
|
modelValue: f.selectedModule,
|
|
1835
1877
|
"onUpdate:modelValue": t[5] ||= (e) => f.selectedModule = e,
|
|
@@ -1842,7 +1884,7 @@ function rr(e, t, r, c, d, f) {
|
|
|
1842
1884
|
"input-size": "sm",
|
|
1843
1885
|
"hide-choices": ""
|
|
1844
1886
|
}, {
|
|
1845
|
-
options:
|
|
1887
|
+
options: D((e) => [s("div", { class: m(["min-w-0 w-100 rounded position-relative", e?._autreLibelle ? "bg-yellow-subtle p-2" : ""]) }, [
|
|
1846
1888
|
e?._autreLibelle ? (g(), i(p, {
|
|
1847
1889
|
key: 0,
|
|
1848
1890
|
icon: "building",
|
|
@@ -1866,30 +1908,29 @@ function rr(e, t, r, c, d, f) {
|
|
|
1866
1908
|
"filtering-function",
|
|
1867
1909
|
"disabled"
|
|
1868
1910
|
]),
|
|
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, {
|
|
1911
|
+
r.locataireActuelOption ? (g(), o("div", Qn, [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
1912
|
icon: "circle-info",
|
|
1872
1913
|
class: "mt-1"
|
|
1873
|
-
}), s("span", null, C(r.locataireActuelOption.hint), 1)], 2), s("div",
|
|
1914
|
+
}), s("span", null, C(r.locataireActuelOption.hint), 1)], 2), s("div", $n, [s("input", {
|
|
1874
1915
|
id: `locataire-actuel-${d.uid}`,
|
|
1875
1916
|
class: "form-check-input",
|
|
1876
1917
|
type: "checkbox",
|
|
1877
1918
|
checked: r.locataireActuelOption.reprendre,
|
|
1878
1919
|
onChange: t[6] ||= (t) => e.$emit("toggle-reprendre-locataire-actuel", t.target.checked)
|
|
1879
|
-
}, null, 40,
|
|
1920
|
+
}, null, 40, er), s("label", {
|
|
1880
1921
|
class: "form-check-label fs-7",
|
|
1881
1922
|
for: `locataire-actuel-${d.uid}`
|
|
1882
|
-
}, " Rattacher au locataire actuel du module ", 8,
|
|
1883
|
-
])) : a("", !0)
|
|
1923
|
+
}, " Rattacher au locataire actuel du module ", 8, tr)])])) : a("", !0)
|
|
1924
|
+
])) : a("", !0)])) : a("", !0)
|
|
1884
1925
|
]);
|
|
1885
1926
|
}
|
|
1886
1927
|
//#endregion
|
|
1887
1928
|
//#region src/components/EtapeCibleBlock.vue
|
|
1888
|
-
var
|
|
1929
|
+
var rr = {
|
|
1889
1930
|
name: "EtapeCibleBlock",
|
|
1890
1931
|
components: {
|
|
1891
1932
|
AmsomOverlay: t,
|
|
1892
|
-
CiblePickerBlock: /* @__PURE__ */ F(
|
|
1933
|
+
CiblePickerBlock: /* @__PURE__ */ F(_n, [["render", nr]])
|
|
1893
1934
|
},
|
|
1894
1935
|
setup() {
|
|
1895
1936
|
return {
|
|
@@ -1937,6 +1978,7 @@ var ir = {
|
|
|
1937
1978
|
reclamantType: this.reclamantType,
|
|
1938
1979
|
contratReclamant: e.contratReclamant,
|
|
1939
1980
|
contratCible: e.contratCible,
|
|
1981
|
+
modulePrecis: e.modulePrecis,
|
|
1940
1982
|
afficheCaseContratReclamant: this.draft.reclamantEstContrat,
|
|
1941
1983
|
locataireActuelOption: this.locataireActuelOption(e)
|
|
1942
1984
|
};
|
|
@@ -1994,32 +2036,32 @@ var ir = {
|
|
|
1994
2036
|
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
2037
|
}
|
|
1996
2038
|
}
|
|
1997
|
-
},
|
|
2039
|
+
}, ir = { class: "d-flex flex-column gap-3" }, ar = {
|
|
1998
2040
|
key: 0,
|
|
1999
2041
|
class: "alert alert-light border py-2 px-3 mb-0 d-flex align-items-center gap-2"
|
|
2000
|
-
},
|
|
2042
|
+
}, or = { class: "fs-7" }, sr = {
|
|
2001
2043
|
key: 1,
|
|
2002
2044
|
class: "d-flex flex-column gap-1"
|
|
2003
|
-
},
|
|
2045
|
+
}, cr = {
|
|
2004
2046
|
key: 0,
|
|
2005
2047
|
class: "text-muted me-1"
|
|
2006
|
-
},
|
|
2048
|
+
}, lr = { class: "d-flex align-items-center gap-2" }, ur = { class: "fw-medium fs-7" }, dr = { class: "form-check form-switch mb-0" }, fr = [
|
|
2007
2049
|
"id",
|
|
2008
2050
|
"checked",
|
|
2009
2051
|
"onChange"
|
|
2010
|
-
],
|
|
2052
|
+
], pr = ["for"], mr = {
|
|
2011
2053
|
key: 0,
|
|
2012
2054
|
class: "mt-2"
|
|
2013
2055
|
};
|
|
2014
|
-
function
|
|
2056
|
+
function hr(e, t, r, c, d, f) {
|
|
2015
2057
|
let m = S("font-awesome-icon"), h = S("cible-picker-block"), _ = S("amsom-overlay");
|
|
2016
2058
|
return g(), i(_, { loading: c.data.isLoading }, {
|
|
2017
|
-
default:
|
|
2018
|
-
f.motifLibelle ? (g(), o("div",
|
|
2059
|
+
default: D(() => [s("div", ir, [
|
|
2060
|
+
f.motifLibelle ? (g(), o("div", ar, [u(m, {
|
|
2019
2061
|
icon: "tag",
|
|
2020
2062
|
class: "text-primary"
|
|
2021
|
-
}), s("span",
|
|
2022
|
-
f.cibleFigee ? (g(), o("div",
|
|
2063
|
+
}), s("span", or, [t[9] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1), l(C(f.motifLibelle), 1)])])) : a("", !0),
|
|
2064
|
+
f.cibleFigee ? (g(), o("div", sr, [(g(!0), o(n, null, b(c.draft.draft.lignes, (e, t) => (g(), o("span", {
|
|
2023
2065
|
key: t,
|
|
2024
2066
|
class: "fs-7"
|
|
2025
2067
|
}, [
|
|
@@ -2027,7 +2069,7 @@ function gr(e, t, r, c, d, f) {
|
|
|
2027
2069
|
icon: "location-dot",
|
|
2028
2070
|
class: "text-primary me-2"
|
|
2029
2071
|
}),
|
|
2030
|
-
f.lignesAssociees.length ? (g(), o("span",
|
|
2072
|
+
f.lignesAssociees.length ? (g(), o("span", cr, C(t === 0 ? f.motifLibelle : e.libelle) + " : ", 1)) : a("", !0),
|
|
2031
2073
|
l(" " + C(c.draft.cibleResume(e)), 1)
|
|
2032
2074
|
]))), 128))])) : (g(), i(h, p({ key: 2 }, f.pickerProps(f.lignePrincipale), {
|
|
2033
2075
|
onChangeMode: t[0] ||= (e) => f.onChangeMode(e),
|
|
@@ -2037,25 +2079,26 @@ function gr(e, t, r, c, d, f) {
|
|
|
2037
2079
|
onSelectModule: t[4] ||= (e) => f.onSelectModule(e),
|
|
2038
2080
|
onSelectContrat: t[5] ||= (e) => f.onSelectContrat(e),
|
|
2039
2081
|
onToggleContratReclamant: t[6] ||= (e) => f.onToggleContratReclamant(e),
|
|
2040
|
-
onToggleReprendreLocataireActuel: t[7] ||= (e) => f.onToggleReprendre(e)
|
|
2082
|
+
onToggleReprendreLocataireActuel: t[7] ||= (e) => f.onToggleReprendre(e),
|
|
2083
|
+
onSetModulePrecis: t[8] ||= (e) => c.draft.setModulePrecis(0, e)
|
|
2041
2084
|
}), null, 16)),
|
|
2042
|
-
!f.cibleFigee && f.lignesAssociees.length && f.reclamantType !== "D" ? (g(), o(n, { key: 3 }, [t[
|
|
2085
|
+
!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
2086
|
s("hr", { class: "flex-grow-1 my-0" }),
|
|
2044
2087
|
s("span", null, "Cible des autres motifs"),
|
|
2045
2088
|
s("hr", { class: "flex-grow-1 my-0" })
|
|
2046
2089
|
], -1), (g(!0), o(n, null, b(f.lignesAssociees, (e, t) => (g(), o("div", {
|
|
2047
2090
|
key: e.idMotif,
|
|
2048
2091
|
class: "border rounded p-2"
|
|
2049
|
-
}, [s("div",
|
|
2092
|
+
}, [s("div", lr, [s("span", ur, C(e.libelle), 1), s("div", dr, [s("input", {
|
|
2050
2093
|
id: `memecible-${e.idMotif}`,
|
|
2051
2094
|
class: "form-check-input",
|
|
2052
2095
|
type: "checkbox",
|
|
2053
2096
|
checked: !e.patrimoine,
|
|
2054
2097
|
onChange: (e) => c.draft.toggleCibleOverride(t + 1)
|
|
2055
|
-
}, null, 40,
|
|
2098
|
+
}, null, 40, fr), s("label", {
|
|
2056
2099
|
class: "form-check-label fs-7",
|
|
2057
2100
|
for: `memecible-${e.idMotif}`
|
|
2058
|
-
}, " Même cible que la ligne principale ", 8,
|
|
2101
|
+
}, " Même cible que la ligne principale ", 8, pr)])]), e.patrimoine ? (g(), o("div", mr, [u(h, p({ ref_for: !0 }, f.pickerProps(e), {
|
|
2059
2102
|
onChangeMode: (e) => f.onChangeMode(e, t + 1),
|
|
2060
2103
|
onSelectCommune: (e) => f.onSelectCommune(e, t + 1),
|
|
2061
2104
|
onSelectAdresse: (e) => f.onSelectAdresse(e, t + 1),
|
|
@@ -2063,7 +2106,8 @@ function gr(e, t, r, c, d, f) {
|
|
|
2063
2106
|
onSelectModule: (e) => f.onSelectModule(e, t + 1),
|
|
2064
2107
|
onSelectContrat: (e) => f.onSelectContrat(e, t + 1),
|
|
2065
2108
|
onToggleContratReclamant: (e) => f.onToggleContratReclamant(e, t + 1),
|
|
2066
|
-
onToggleReprendreLocataireActuel: (e) => f.onToggleReprendre(e, t + 1)
|
|
2109
|
+
onToggleReprendreLocataireActuel: (e) => f.onToggleReprendre(e, t + 1),
|
|
2110
|
+
onSetModulePrecis: (e) => c.draft.setModulePrecis(t + 1, e)
|
|
2067
2111
|
}), null, 16, [
|
|
2068
2112
|
"onChangeMode",
|
|
2069
2113
|
"onSelectCommune",
|
|
@@ -2072,13 +2116,14 @@ function gr(e, t, r, c, d, f) {
|
|
|
2072
2116
|
"onSelectModule",
|
|
2073
2117
|
"onSelectContrat",
|
|
2074
2118
|
"onToggleContratReclamant",
|
|
2075
|
-
"onToggleReprendreLocataireActuel"
|
|
2119
|
+
"onToggleReprendreLocataireActuel",
|
|
2120
|
+
"onSetModulePrecis"
|
|
2076
2121
|
])])) : a("", !0)]))), 128))], 64)) : a("", !0)
|
|
2077
2122
|
])]),
|
|
2078
2123
|
_: 1
|
|
2079
2124
|
}, 8, ["loading"]);
|
|
2080
2125
|
}
|
|
2081
|
-
var
|
|
2126
|
+
var gr = /*#__PURE__*/ F(rr, [["render", hr]]), _r = {
|
|
2082
2127
|
name: "LigneDocumentBlock",
|
|
2083
2128
|
components: { AmsomUploadFile: se },
|
|
2084
2129
|
props: {
|
|
@@ -2097,7 +2142,7 @@ var _r = /*#__PURE__*/ F(ir, [["render", gr]]), vr = {
|
|
|
2097
2142
|
},
|
|
2098
2143
|
emits: ["update"]
|
|
2099
2144
|
};
|
|
2100
|
-
function
|
|
2145
|
+
function vr(e, t, n, r, i, a) {
|
|
2101
2146
|
let c = S("amsom-upload-file");
|
|
2102
2147
|
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
2148
|
"model-value": n.fichier,
|
|
@@ -2113,23 +2158,12 @@ function yr(e, t, n, r, i, a) {
|
|
|
2113
2158
|
"read-only"
|
|
2114
2159
|
])]);
|
|
2115
2160
|
}
|
|
2116
|
-
var
|
|
2117
|
-
//#endregion
|
|
2118
|
-
//#region src/utils/date.js
|
|
2119
|
-
function xr(e) {
|
|
2120
|
-
return e == null ? "" : (/* @__PURE__ */ new Date(e * 1e3)).toISOString().slice(0, 10);
|
|
2121
|
-
}
|
|
2122
|
-
function Sr(e) {
|
|
2123
|
-
return e ? Math.floor(new Date(e).getTime() / 1e3) : null;
|
|
2124
|
-
}
|
|
2125
|
-
//#endregion
|
|
2126
|
-
//#region src/components/LigneDetailBlock.vue
|
|
2127
|
-
var Cr = 4e3, wr = {
|
|
2161
|
+
var yr = /*#__PURE__*/ F(_r, [["render", vr]]), br = 4e3, xr = {
|
|
2128
2162
|
name: "LigneDetailBlock",
|
|
2129
2163
|
components: {
|
|
2130
2164
|
AmsomAutocomplete: O,
|
|
2131
2165
|
AmsomTextarea: oe,
|
|
2132
|
-
LigneDocumentBlock:
|
|
2166
|
+
LigneDocumentBlock: yr
|
|
2133
2167
|
},
|
|
2134
2168
|
props: { index: {
|
|
2135
2169
|
type: Number,
|
|
@@ -2142,7 +2176,7 @@ var Cr = 4e3, wr = {
|
|
|
2142
2176
|
};
|
|
2143
2177
|
},
|
|
2144
2178
|
computed: {
|
|
2145
|
-
descriptionMaxLength: () =>
|
|
2179
|
+
descriptionMaxLength: () => br,
|
|
2146
2180
|
isPrincipale() {
|
|
2147
2181
|
return this.index === 0;
|
|
2148
2182
|
},
|
|
@@ -2160,8 +2194,8 @@ var Cr = 4e3, wr = {
|
|
|
2160
2194
|
}
|
|
2161
2195
|
},
|
|
2162
2196
|
methods: {
|
|
2163
|
-
timestampToDateInput:
|
|
2164
|
-
dateInputToTimestamp:
|
|
2197
|
+
timestampToDateInput: nt,
|
|
2198
|
+
dateInputToTimestamp: rt,
|
|
2165
2199
|
responsableLibelle(e) {
|
|
2166
2200
|
let t = e && typeof e != "object" ? this.collaborateurs.find((t) => String(t.id) === String(e)) : e;
|
|
2167
2201
|
return t ? `${t.prenom} ${t.nom}` : "";
|
|
@@ -2171,53 +2205,53 @@ var Cr = 4e3, wr = {
|
|
|
2171
2205
|
return n ? t.filter((e) => (X(`${e.prenom} ${e.nom} ${e.service}`) ?? "").includes(n)) : t;
|
|
2172
2206
|
}
|
|
2173
2207
|
}
|
|
2174
|
-
},
|
|
2208
|
+
}, Sr = { class: "d-flex flex-column gap-2" }, Cr = { class: "d-flex align-items-center gap-2 mb-1" }, wr = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-0" }, Tr = {
|
|
2175
2209
|
key: 0,
|
|
2176
2210
|
class: "ms-1 text-danger"
|
|
2177
|
-
},
|
|
2211
|
+
}, Er = {
|
|
2178
2212
|
key: 0,
|
|
2179
2213
|
class: "form-check form-switch mb-0"
|
|
2180
|
-
},
|
|
2214
|
+
}, Dr = [
|
|
2181
2215
|
"id",
|
|
2182
2216
|
"checked",
|
|
2183
2217
|
"disabled"
|
|
2184
|
-
],
|
|
2218
|
+
], Or = ["for"], kr = {
|
|
2185
2219
|
key: 1,
|
|
2186
2220
|
class: "text-muted d-block",
|
|
2187
2221
|
style: { "white-space": "pre-line" }
|
|
2188
|
-
},
|
|
2222
|
+
}, Ar = { class: "row g-3" }, jr = { class: "col-6" }, Mr = { class: "d-flex align-items-center gap-2 mb-1" }, Nr = {
|
|
2189
2223
|
key: 0,
|
|
2190
2224
|
class: "form-check form-switch mb-0"
|
|
2191
|
-
},
|
|
2225
|
+
}, Pr = [
|
|
2192
2226
|
"id",
|
|
2193
2227
|
"checked",
|
|
2194
2228
|
"disabled"
|
|
2195
|
-
],
|
|
2229
|
+
], Fr = ["for"], Ir = ["value"], Lr = {
|
|
2196
2230
|
key: 1,
|
|
2197
2231
|
class: "text-muted d-block"
|
|
2198
|
-
},
|
|
2232
|
+
}, Rr = {
|
|
2199
2233
|
key: 0,
|
|
2200
2234
|
class: "text-muted d-block"
|
|
2201
|
-
},
|
|
2235
|
+
}, zr = { class: "min-w-0" }, Br = { class: "fw-medium text-truncate" }, Vr = {
|
|
2202
2236
|
key: 0,
|
|
2203
2237
|
class: "text-muted d-block"
|
|
2204
|
-
},
|
|
2238
|
+
}, Hr = {
|
|
2205
2239
|
key: 2,
|
|
2206
2240
|
class: "text-muted"
|
|
2207
|
-
},
|
|
2208
|
-
function
|
|
2241
|
+
}, Ur = { class: "col-12 col-md-6" };
|
|
2242
|
+
function Wr(e, t, n, r, c, d) {
|
|
2209
2243
|
let f = S("amsom-textarea"), p = S("amsom-autocomplete"), m = S("ligne-document-block");
|
|
2210
|
-
return g(), o("div",
|
|
2244
|
+
return g(), o("div", Sr, [s("div", null, [s("div", Cr, [s("label", wr, [t[6] ||= l(" Description", -1), d.isPrincipale ? (g(), o("span", Tr, "*")) : a("", !0)]), d.isPrincipale ? a("", !0) : (g(), o("div", Er, [s("input", {
|
|
2211
2245
|
id: `memedetail-${d.ligne.idMotif}`,
|
|
2212
2246
|
class: "form-check-input",
|
|
2213
2247
|
type: "checkbox",
|
|
2214
2248
|
checked: d.ligne.description == null,
|
|
2215
2249
|
disabled: r.draft.isReadonly("description"),
|
|
2216
2250
|
onChange: t[0] ||= (e) => r.draft.toggleDescriptionOverride(n.index)
|
|
2217
|
-
}, null, 40,
|
|
2251
|
+
}, null, 40, Dr), s("label", {
|
|
2218
2252
|
class: "form-check-label fs-7",
|
|
2219
2253
|
for: `memedetail-${d.ligne.idMotif}`
|
|
2220
|
-
}, " Même description ", 8,
|
|
2254
|
+
}, " Même description ", 8, Or)]))]), !r.draft.isReadonly("description") && (d.isPrincipale || d.ligne.description != null) ? (g(), i(f, {
|
|
2221
2255
|
key: 0,
|
|
2222
2256
|
"model-value": d.ligne.description,
|
|
2223
2257
|
"input-size": "sm",
|
|
@@ -2230,25 +2264,25 @@ function qr(e, t, n, r, c, d) {
|
|
|
2230
2264
|
"rows",
|
|
2231
2265
|
"maxlength",
|
|
2232
2266
|
"placeholder"
|
|
2233
|
-
])) : (g(), o("small",
|
|
2267
|
+
])) : (g(), o("small", kr, C((d.ligne.description ?? d.lignePrincipale.description) || "—"), 1))]), s("div", Ar, [s("div", jr, [s("div", null, [s("div", Mr, [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", Nr, [s("input", {
|
|
2234
2268
|
id: `memedate-${d.ligne.idMotif}`,
|
|
2235
2269
|
class: "form-check-input",
|
|
2236
2270
|
type: "checkbox",
|
|
2237
2271
|
checked: !d.ligne.dateFaitsOverride,
|
|
2238
2272
|
disabled: r.draft.isReadonly("dateFaits"),
|
|
2239
2273
|
onChange: t[2] ||= (e) => r.draft.toggleDateFaitsOverride(n.index)
|
|
2240
|
-
}, null, 40,
|
|
2274
|
+
}, null, 40, Pr), s("label", {
|
|
2241
2275
|
class: "form-check-label fs-7",
|
|
2242
2276
|
for: `memedate-${d.ligne.idMotif}`
|
|
2243
|
-
}, " Même date ", 8,
|
|
2277
|
+
}, " Même date ", 8, Fr)]))]), !r.draft.isReadonly("dateFaits") && (d.isPrincipale || d.ligne.dateFaitsOverride) ? (g(), o("input", {
|
|
2244
2278
|
key: 0,
|
|
2245
2279
|
value: d.timestampToDateInput(d.ligne.dateFaits),
|
|
2246
2280
|
type: "date",
|
|
2247
2281
|
class: "form-control form-control-sm",
|
|
2248
2282
|
onInput: t[3] ||= (e) => r.draft.setDateFaits(n.index, d.dateInputToTimestamp(e.target.value))
|
|
2249
|
-
}, null, 40,
|
|
2283
|
+
}, null, 40, Ir)) : (g(), o("small", Lr, C(d.timestampToDateInput(d.dateFaits) || "—"), 1))]), s("div", null, [
|
|
2250
2284
|
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",
|
|
2285
|
+
r.draft.isReadonly("responsable") ? (g(), o("small", Rr, C(d.responsableLibelle(d.ligne.responsable) || "Déterminé automatiquement"), 1)) : (g(), i(p, {
|
|
2252
2286
|
key: 1,
|
|
2253
2287
|
"model-value": d.ligne.responsable,
|
|
2254
2288
|
items: d.collaborateurs,
|
|
@@ -2260,7 +2294,7 @@ function qr(e, t, n, r, c, d) {
|
|
|
2260
2294
|
"hide-choices": "",
|
|
2261
2295
|
"onUpdate:modelValue": t[4] ||= (e) => r.draft.setResponsable(n.index, e ?? null)
|
|
2262
2296
|
}, {
|
|
2263
|
-
options:
|
|
2297
|
+
options: D((e) => [s("div", zr, [s("div", Br, C(e?.prenom) + " " + C(e?.nom), 1), e?.service ? (g(), o("small", Vr, C(e.service), 1)) : a("", !0)])]),
|
|
2264
2298
|
_: 1
|
|
2265
2299
|
}, 8, [
|
|
2266
2300
|
"model-value",
|
|
@@ -2269,8 +2303,8 @@ function qr(e, t, n, r, c, d) {
|
|
|
2269
2303
|
"get-input-libelle",
|
|
2270
2304
|
"filtering-function"
|
|
2271
2305
|
])),
|
|
2272
|
-
d.isPrincipale && !d.ligne.responsable && !r.draft.isReadonly("responsable") ? (g(), o("small",
|
|
2273
|
-
])]), s("div",
|
|
2306
|
+
d.isPrincipale && !d.ligne.responsable && !r.draft.isReadonly("responsable") ? (g(), o("small", Hr, " Aucun paramétrage trouvé : le responsable sera déterminé automatiquement. ")) : a("", !0)
|
|
2307
|
+
])]), s("div", Ur, [u(m, {
|
|
2274
2308
|
index: n.index,
|
|
2275
2309
|
fichier: d.ligne.fichier,
|
|
2276
2310
|
readonly: r.draft.isReadonly("fichier"),
|
|
@@ -2283,11 +2317,11 @@ function qr(e, t, n, r, c, d) {
|
|
|
2283
2317
|
}
|
|
2284
2318
|
//#endregion
|
|
2285
2319
|
//#region src/components/EtapeDetailsBlock.vue
|
|
2286
|
-
var
|
|
2320
|
+
var Gr = {
|
|
2287
2321
|
name: "EtapeDetailsBlock",
|
|
2288
2322
|
components: {
|
|
2289
2323
|
AmsomOverlay: t,
|
|
2290
|
-
LigneDetailBlock: /* @__PURE__ */ F(
|
|
2324
|
+
LigneDetailBlock: /* @__PURE__ */ F(xr, [["render", Wr]])
|
|
2291
2325
|
},
|
|
2292
2326
|
setup() {
|
|
2293
2327
|
return {
|
|
@@ -2343,22 +2377,22 @@ var Jr = {
|
|
|
2343
2377
|
}
|
|
2344
2378
|
}
|
|
2345
2379
|
}
|
|
2346
|
-
},
|
|
2380
|
+
}, Kr = { class: "d-flex flex-column gap-3" }, qr = { class: "alert alert-light border py-2 px-3 mb-0 d-flex flex-column gap-1" }, Jr = {
|
|
2347
2381
|
key: 0,
|
|
2348
2382
|
class: "fs-7"
|
|
2349
|
-
},
|
|
2350
|
-
function
|
|
2383
|
+
}, Yr = { class: "fs-7" }, Xr = { class: "bg-light rounded px-2 py-1 d-flex flex-column gap-1" }, Zr = { class: "fs-7" }, Qr = { class: "fs-7" };
|
|
2384
|
+
function $r(e, t, r, c, d, f) {
|
|
2351
2385
|
let p = S("font-awesome-icon"), m = S("ligne-detail-block"), h = S("amsom-overlay");
|
|
2352
2386
|
return g(), i(h, { loading: c.data.isLoading && !c.data.cache.collaborateurs }, {
|
|
2353
|
-
default:
|
|
2354
|
-
s("div",
|
|
2387
|
+
default: D(() => [s("div", Kr, [
|
|
2388
|
+
s("div", qr, [f.motifLibelle ? (g(), o("span", Jr, [
|
|
2355
2389
|
u(p, {
|
|
2356
2390
|
icon: "tag",
|
|
2357
2391
|
class: "text-primary me-2"
|
|
2358
2392
|
}),
|
|
2359
2393
|
t[0] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1),
|
|
2360
2394
|
l(C(f.motifLibelle), 1)
|
|
2361
|
-
])) : a("", !0), s("span",
|
|
2395
|
+
])) : a("", !0), s("span", Yr, [
|
|
2362
2396
|
u(p, {
|
|
2363
2397
|
icon: "location-dot",
|
|
2364
2398
|
class: "text-primary me-2"
|
|
@@ -2374,14 +2408,14 @@ function ni(e, t, r, c, d, f) {
|
|
|
2374
2408
|
], -1), (g(!0), o(n, null, b(f.lignesAssociees, (e, n) => (g(), o("div", {
|
|
2375
2409
|
key: e.idMotif,
|
|
2376
2410
|
class: "border rounded p-2 d-flex flex-column gap-2"
|
|
2377
|
-
}, [s("div",
|
|
2411
|
+
}, [s("div", Xr, [s("span", Zr, [
|
|
2378
2412
|
u(p, {
|
|
2379
2413
|
icon: "tag",
|
|
2380
2414
|
class: "text-primary me-2"
|
|
2381
2415
|
}),
|
|
2382
2416
|
t[2] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1),
|
|
2383
2417
|
l(" " + C(e.libelle), 1)
|
|
2384
|
-
]), s("span",
|
|
2418
|
+
]), s("span", Qr, [
|
|
2385
2419
|
u(p, {
|
|
2386
2420
|
icon: "location-dot",
|
|
2387
2421
|
class: "text-primary me-2"
|
|
@@ -2395,15 +2429,15 @@ function ni(e, t, r, c, d, f) {
|
|
|
2395
2429
|
}
|
|
2396
2430
|
//#endregion
|
|
2397
2431
|
//#region src/components/StepperBlock.vue
|
|
2398
|
-
var
|
|
2432
|
+
var ei = {
|
|
2399
2433
|
name: "StepperBlock",
|
|
2400
2434
|
components: {
|
|
2401
2435
|
AmsomHorizontalStepper: re,
|
|
2402
2436
|
AmsomOverlay: t,
|
|
2403
|
-
EtapeReclamantBlock:
|
|
2404
|
-
EtapeCategorieBlock:
|
|
2405
|
-
EtapeCibleBlock:
|
|
2406
|
-
EtapeDetailsBlock: /* @__PURE__ */ F(
|
|
2437
|
+
EtapeReclamantBlock: Mt,
|
|
2438
|
+
EtapeCategorieBlock: fn,
|
|
2439
|
+
EtapeCibleBlock: gr,
|
|
2440
|
+
EtapeDetailsBlock: /* @__PURE__ */ F(Gr, [["render", $r]])
|
|
2407
2441
|
},
|
|
2408
2442
|
props: {
|
|
2409
2443
|
step: {
|
|
@@ -2515,43 +2549,43 @@ var ri = {
|
|
|
2515
2549
|
}));
|
|
2516
2550
|
}
|
|
2517
2551
|
}
|
|
2518
|
-
},
|
|
2552
|
+
}, ti = { class: "d-flex flex-column gap-3" }, ni = {
|
|
2519
2553
|
key: 0,
|
|
2520
2554
|
class: "w-100 fs-6 fw-medium my-3 alert alert-info",
|
|
2521
2555
|
style: { "white-space": "pre-line" }
|
|
2522
|
-
},
|
|
2523
|
-
function
|
|
2556
|
+
}, ri = { style: { "min-height": "260px" } }, ii = { class: "d-flex justify-content-between" }, ai = { key: 1 }, oi = ["disabled"], si = ["disabled"];
|
|
2557
|
+
function ci(e, t, n, r, f, p) {
|
|
2524
2558
|
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
2559
|
return g(), i(w, { loading: n.creating }, {
|
|
2526
|
-
default:
|
|
2560
|
+
default: D(() => [s("div", ti, [
|
|
2527
2561
|
u(m, {
|
|
2528
2562
|
steps: p.stepperSteps,
|
|
2529
2563
|
size: "md",
|
|
2530
2564
|
onStepClick: p.onStepClick
|
|
2531
2565
|
}, null, 8, ["steps", "onStepClick"]),
|
|
2532
|
-
p.aideMotif ? (g(), o("div",
|
|
2566
|
+
p.aideMotif ? (g(), o("div", ni, [u(_, {
|
|
2533
2567
|
icon: "circle-info",
|
|
2534
2568
|
class: "text-info-emphasis me-2"
|
|
2535
2569
|
}), s("span", null, C(p.aideMotif), 1)])) : a("", !0),
|
|
2536
|
-
s("div",
|
|
2570
|
+
s("div", ri, [p.currentKey === "reclamant" ? (g(), i(v, {
|
|
2537
2571
|
key: 0,
|
|
2538
2572
|
premiere: n.step === 1
|
|
2539
2573
|
}, c({ _: 2 }, [e.$slots.reclamant ? {
|
|
2540
2574
|
name: "reclamant",
|
|
2541
|
-
fn:
|
|
2575
|
+
fn: D((t) => [x(e.$slots, "reclamant", h(d(t)))]),
|
|
2542
2576
|
key: "0"
|
|
2543
2577
|
} : void 0]), 1032, ["premiere"])) : p.currentKey === "categorie" ? (g(), i(y, {
|
|
2544
2578
|
key: 1,
|
|
2545
2579
|
premiere: n.step === 1
|
|
2546
2580
|
}, null, 8, ["premiere"])) : p.currentKey === "cible" ? (g(), i(b, { key: 2 })) : p.currentKey === "details" ? (g(), i(ee, { key: 3 })) : a("", !0)]),
|
|
2547
|
-
s("div",
|
|
2581
|
+
s("div", ii, [n.step > 1 ? (g(), o("button", {
|
|
2548
2582
|
key: 0,
|
|
2549
2583
|
class: "btn btn-sm btn-outline-secondary",
|
|
2550
2584
|
onClick: t[0] ||= (...e) => p.goPrevious && p.goPrevious(...e)
|
|
2551
2585
|
}, [u(_, {
|
|
2552
2586
|
icon: "chevron-left",
|
|
2553
2587
|
class: "me-1"
|
|
2554
|
-
}), t[3] ||= l(" Précédent ", -1)])) : (g(), o("span",
|
|
2588
|
+
}), t[3] ||= l(" Précédent ", -1)])) : (g(), o("span", ai)), n.step < p.steps.length ? (g(), o("button", {
|
|
2555
2589
|
key: 2,
|
|
2556
2590
|
class: "btn btn-sm btn-primary",
|
|
2557
2591
|
disabled: !p.canGoNext,
|
|
@@ -2559,7 +2593,7 @@ function di(e, t, n, r, f, p) {
|
|
|
2559
2593
|
}, [t[4] ||= l(" Suivant ", -1), u(_, {
|
|
2560
2594
|
icon: "chevron-right",
|
|
2561
2595
|
class: "ms-1"
|
|
2562
|
-
})], 8,
|
|
2596
|
+
})], 8, oi)) : (g(), o("button", {
|
|
2563
2597
|
key: 3,
|
|
2564
2598
|
class: "btn btn-sm btn-success",
|
|
2565
2599
|
disabled: !p.canCreer || n.creating,
|
|
@@ -2567,15 +2601,15 @@ function di(e, t, n, r, f, p) {
|
|
|
2567
2601
|
}, [u(_, {
|
|
2568
2602
|
icon: "check",
|
|
2569
2603
|
class: "me-1"
|
|
2570
|
-
}), t[5] ||= l(" Créer la sollicitation ", -1)], 8,
|
|
2604
|
+
}), t[5] ||= l(" Créer la sollicitation ", -1)], 8, si))])
|
|
2571
2605
|
])]),
|
|
2572
2606
|
_: 3
|
|
2573
2607
|
}, 8, ["loading"]);
|
|
2574
2608
|
}
|
|
2575
|
-
var
|
|
2609
|
+
var li = /*#__PURE__*/ F(ei, [["render", ci]]), ui = (e, { signal: t, baseUrl: n } = {}) => Me("/v2/cresol/creer_sollicitation", e, {
|
|
2576
2610
|
signal: t,
|
|
2577
2611
|
baseUrl: n
|
|
2578
|
-
}),
|
|
2612
|
+
}), di = ({ idSollicitation: e, pj: t }, { signal: n, baseUrl: r } = {}) => Me("/v2/cresol/upload_sollicitation_ged", {
|
|
2579
2613
|
idSollicitation: e,
|
|
2580
2614
|
pj: t
|
|
2581
2615
|
}, {
|
|
@@ -2629,7 +2663,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2629
2663
|
type: String,
|
|
2630
2664
|
default: null
|
|
2631
2665
|
}
|
|
2632
|
-
},
|
|
2666
|
+
}, fi = Object.keys(Z), Q = [
|
|
2633
2667
|
"update:modelValue",
|
|
2634
2668
|
"reclamantChange",
|
|
2635
2669
|
"motifChange",
|
|
@@ -2638,11 +2672,11 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2638
2672
|
"created",
|
|
2639
2673
|
"createError",
|
|
2640
2674
|
"error"
|
|
2641
|
-
],
|
|
2675
|
+
], pi = {
|
|
2642
2676
|
name: "CreerSollicitationForm",
|
|
2643
2677
|
components: {
|
|
2644
2678
|
AsideBlock: De,
|
|
2645
|
-
StepperBlock:
|
|
2679
|
+
StepperBlock: li
|
|
2646
2680
|
},
|
|
2647
2681
|
props: { ...Z },
|
|
2648
2682
|
emits: [...Q],
|
|
@@ -2656,7 +2690,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2656
2690
|
idModulePrefere: w(e, "idModule"),
|
|
2657
2691
|
readonly: w(e, "readonly")
|
|
2658
2692
|
}));
|
|
2659
|
-
return
|
|
2693
|
+
return Pt(v({
|
|
2660
2694
|
nomenclatureFilter: w(e, "nomenclatureFilter"),
|
|
2661
2695
|
reclamantMode: w(e, "reclamantMode"),
|
|
2662
2696
|
modulesReclamant: s,
|
|
@@ -2720,10 +2754,10 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2720
2754
|
if (!await this.autoriserCreation(e)) return;
|
|
2721
2755
|
let t;
|
|
2722
2756
|
try {
|
|
2723
|
-
t = await
|
|
2757
|
+
t = await ui(e, this.requestOptions) ?? [];
|
|
2724
2758
|
} catch (t) {
|
|
2725
|
-
if (
|
|
2726
|
-
let n =
|
|
2759
|
+
if (qe(t)) return;
|
|
2760
|
+
let n = V(t);
|
|
2727
2761
|
this.$emit("createError", {
|
|
2728
2762
|
error: t,
|
|
2729
2763
|
message: n,
|
|
@@ -2773,7 +2807,7 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2773
2807
|
message: t
|
|
2774
2808
|
};
|
|
2775
2809
|
};
|
|
2776
|
-
return a?.id ?
|
|
2810
|
+
return a?.id ? di({
|
|
2777
2811
|
idSollicitation: a.id,
|
|
2778
2812
|
pj: {
|
|
2779
2813
|
name: n.name,
|
|
@@ -2784,24 +2818,24 @@ var fi = /*#__PURE__*/ F(ri, [["render", di]]), pi = (e, { signal: t, baseUrl: n
|
|
|
2784
2818
|
...o,
|
|
2785
2819
|
ok: !0,
|
|
2786
2820
|
message: null
|
|
2787
|
-
})).catch((e) => s(
|
|
2821
|
+
})).catch((e) => s(V(e))) : Promise.resolve(s("sollicitation introuvable dans la réponse"));
|
|
2788
2822
|
});
|
|
2789
2823
|
return Promise.all(n);
|
|
2790
2824
|
}
|
|
2791
2825
|
}
|
|
2792
|
-
},
|
|
2826
|
+
}, mi = { class: "row g-3" }, hi = {
|
|
2793
2827
|
key: 0,
|
|
2794
2828
|
class: "col-12 col-lg-4"
|
|
2795
2829
|
};
|
|
2796
|
-
function
|
|
2830
|
+
function gi(e, t, n, r, i, l) {
|
|
2797
2831
|
let f = S("aside-block"), p = S("stepper-block");
|
|
2798
|
-
return g(), o("div",
|
|
2832
|
+
return g(), o("div", mi, [e.aside ? (g(), o("div", hi, [x(e.$slots, "aside", {}, () => [u(f, { "nb-similaires": e.nbSimilaires }, c({ _: 2 }, [e.$slots["aside-similaires"] ? {
|
|
2799
2833
|
name: "similaires",
|
|
2800
|
-
fn:
|
|
2834
|
+
fn: D((t) => [x(e.$slots, "aside-similaires", h(d(t)))]),
|
|
2801
2835
|
key: "0"
|
|
2802
2836
|
} : void 0, e.$slots["aside-evenements"] ? {
|
|
2803
2837
|
name: "evenements",
|
|
2804
|
-
fn:
|
|
2838
|
+
fn: D(() => [x(e.$slots, "aside-evenements")]),
|
|
2805
2839
|
key: "1"
|
|
2806
2840
|
} : void 0]), 1032, ["nb-similaires"])])])) : a("", !0), s("div", { class: m(["col-12", e.aside ? "col-lg-8" : ""]) }, [u(p, {
|
|
2807
2841
|
step: i.currentStep,
|
|
@@ -2811,7 +2845,7 @@ function yi(e, t, n, r, i, l) {
|
|
|
2811
2845
|
onSubmit: l.creer
|
|
2812
2846
|
}, c({ _: 2 }, [e.$slots.reclamant ? {
|
|
2813
2847
|
name: "reclamant",
|
|
2814
|
-
fn:
|
|
2848
|
+
fn: D((t) => [x(e.$slots, "reclamant", h(d(t)))]),
|
|
2815
2849
|
key: "0"
|
|
2816
2850
|
} : void 0]), 1032, [
|
|
2817
2851
|
"step",
|
|
@@ -2819,7 +2853,7 @@ function yi(e, t, n, r, i, l) {
|
|
|
2819
2853
|
"onSubmit"
|
|
2820
2854
|
])], 2)]);
|
|
2821
2855
|
}
|
|
2822
|
-
var $ = /*#__PURE__*/ F(
|
|
2856
|
+
var $ = /*#__PURE__*/ F(pi, [["render", gi]]), _i = {
|
|
2823
2857
|
name: "CreerSollicitationModal",
|
|
2824
2858
|
components: {
|
|
2825
2859
|
AmsomModal: e,
|
|
@@ -2839,7 +2873,7 @@ var $ = /*#__PURE__*/ F(gi, [["render", yi]]), bi = {
|
|
|
2839
2873
|
emits: [...Q, "close"],
|
|
2840
2874
|
computed: {
|
|
2841
2875
|
formProps() {
|
|
2842
|
-
return Object.fromEntries(
|
|
2876
|
+
return Object.fromEntries(fi.map((e) => [e, this[e]]));
|
|
2843
2877
|
},
|
|
2844
2878
|
formListeners() {
|
|
2845
2879
|
return Object.fromEntries(Q.filter((e) => e !== "created").map((e) => [e, (...t) => this.$emit(e, ...t)]));
|
|
@@ -2848,24 +2882,24 @@ var $ = /*#__PURE__*/ F(gi, [["render", yi]]), bi = {
|
|
|
2848
2882
|
methods: { onCreated(...e) {
|
|
2849
2883
|
this.$emit("created", ...e), this.closeOnCreated && this.$emit("close");
|
|
2850
2884
|
} }
|
|
2851
|
-
},
|
|
2852
|
-
function
|
|
2885
|
+
}, vi = { class: "fw-medium fs-5" };
|
|
2886
|
+
function yi(e, t, n, r, a, o) {
|
|
2853
2887
|
let l = S("creer-sollicitation-form"), f = S("amsom-modal");
|
|
2854
2888
|
return g(), i(f, {
|
|
2855
2889
|
"close-option": "",
|
|
2856
2890
|
size: "xl",
|
|
2857
2891
|
onClose: t[0] ||= (t) => e.$emit("close")
|
|
2858
2892
|
}, {
|
|
2859
|
-
default:
|
|
2893
|
+
default: D(() => [s("span", vi, 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
2894
|
name: n,
|
|
2861
|
-
fn:
|
|
2895
|
+
fn: D((t) => [x(e.$slots, n, h(d(t ?? {})))])
|
|
2862
2896
|
}))]), 1040, ["onCreated"])]),
|
|
2863
2897
|
_: 3
|
|
2864
2898
|
});
|
|
2865
2899
|
}
|
|
2866
|
-
var
|
|
2867
|
-
CreerSollicitationModal:
|
|
2900
|
+
var bi = /*#__PURE__*/ F(_i, [["render", yi]]), xi = {
|
|
2901
|
+
CreerSollicitationModal: bi,
|
|
2868
2902
|
CreerSollicitationForm: $
|
|
2869
2903
|
};
|
|
2870
2904
|
//#endregion
|
|
2871
|
-
export { $ as CreerSollicitationForm,
|
|
2905
|
+
export { $ as CreerSollicitationForm, bi as CreerSollicitationModal, le as DEFAULT_PROVENANCE_CONTACT, ce as PROVENANCES_CONTACT, M as READONLY_FIELDS, Oe as configureCresol, xi as default, N as getDefaultDraft, j as getDefaultLigne, A as getDefaultPatrimoine, Ze as resetCresolCache };
|