@amsom-habitat/cresol 0.2.1 → 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/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.libelleContrat ?? null
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";
@@ -494,68 +500,54 @@ var je = (e, t) => {
494
500
  });
495
501
  let n = t.toString();
496
502
  return n ? `?${n}` : "";
497
- }, Ne = (e = {}, t) => t ? {
498
- ...e,
499
- functions: {
500
- ...e.functions ?? {},
501
- getToken: () => t
502
- }
503
- } : e, Pe = ({ method: e, path: t, params: n, data: r, signal: i, token: a, baseUrl: o }, s = {}) => Ae({
504
- url: je(`${t}${Me(n)}`, o),
503
+ }, Ne = ({ method: e, path: t, params: n, data: r, signal: i, baseUrl: a }, o = {}) => Ae({
504
+ url: je(`${t}${Me(n)}`, a),
505
505
  method: e,
506
506
  ...r === void 0 ? {} : { data: r },
507
507
  ...i ? { signal: i } : {}
508
- }, Ne(s, a)), L = (e, { params: t, signal: n, overlay: r, token: i, baseUrl: a } = {}) => Pe({
508
+ }, o), L = (e, { params: t, signal: n, overlay: r, baseUrl: i } = {}) => Ne({
509
509
  method: "GET",
510
510
  path: e,
511
511
  params: t,
512
512
  signal: n,
513
- token: i,
514
- baseUrl: a
515
- }, r).then((e) => e.data), Fe = (e, t, { params: n, signal: r, overlay: i, token: a, baseUrl: o } = {}) => Pe({
513
+ baseUrl: i
514
+ }, r).then((e) => e.data), Pe = (e, t, { params: n, signal: r, overlay: i, baseUrl: a } = {}) => Ne({
516
515
  method: "POST",
517
516
  path: e,
518
517
  params: n,
519
518
  data: t,
520
519
  signal: r,
521
- token: a,
522
- baseUrl: o
523
- }, i).then((e) => e.data), Ie = { mustBeAuthenticated: !1 }, R = (e, { signal: t, token: n, baseUrl: r } = {}) => L(e, {
520
+ baseUrl: a
521
+ }, i).then((e) => e.data), Fe = { mustBeAuthenticated: !1 }, R = (e, { signal: t, baseUrl: n } = {}) => L(e, {
524
522
  signal: t,
525
- token: n,
526
- baseUrl: r,
527
- overlay: Ie
528
- }), Le = (e) => R("/v2/sollicitation/motifs", e), Re = (e) => R("/v2/sollicitation/categories", e), ze = (e) => R("/v2/sollicitation/types", e), Be = (e) => R("/v2/sollicitation/natures", e), Ve = (e) => R("/v2/sollicitation/etats", e), He = ({ signal: e, token: t, baseUrl: n } = {}) => L("/collaborateurs", {
523
+ baseUrl: n,
524
+ overlay: Fe
525
+ }), Ie = (e) => R("/v2/sollicitation/motifs", e), Le = (e) => R("/v2/sollicitation/categories", e), Re = (e) => R("/v2/sollicitation/types", e), ze = (e) => R("/v2/sollicitation/natures", e), Be = (e) => R("/v2/sollicitation/etats", e), Ve = ({ signal: e, baseUrl: t } = {}) => L("/collaborateurs", {
529
526
  params: { actif: !0 },
530
527
  signal: e,
531
- token: t,
532
- baseUrl: n
533
- }), Ue = async ({ signal: e, token: t, baseUrl: n } = {}) => (await L("/v2/patrimoine/communes", {
528
+ baseUrl: t
529
+ }), He = async ({ signal: e, baseUrl: t } = {}) => (await L("/v2/patrimoine/communes", {
534
530
  signal: e,
535
- token: t,
536
- baseUrl: n
531
+ baseUrl: t
537
532
  }) ?? []).map((e) => ({
538
533
  idCommune: e.id,
539
534
  commune: e.libelle
540
- })), We = (e, { signal: t, token: n, baseUrl: r } = {}) => L("/v2/patrimoine/entrees", {
535
+ })), Ue = (e, { signal: t, baseUrl: n } = {}) => L("/v2/patrimoine/entrees", {
541
536
  params: { idCommune: e },
542
537
  signal: t,
543
- token: n,
544
- baseUrl: r
545
- }), Ge = (e, { signal: t, token: n, baseUrl: r } = {}) => L("/v2/patrimoine/modules", {
538
+ baseUrl: n
539
+ }), We = (e, { signal: t, baseUrl: n } = {}) => L("/v2/patrimoine/modules", {
546
540
  params: { codeProgramme: e },
547
541
  signal: t,
548
- token: n,
549
- baseUrl: r
550
- }), Ke = ({ idContrat: e, typeContrat: t }, { signal: n, token: r, baseUrl: i } = {}) => L("/v2/patrimoine/contrat_modules", {
542
+ baseUrl: n
543
+ }), Ge = ({ idContrat: e, typeContrat: t }, { signal: n, baseUrl: r } = {}) => L("/v2/patrimoine/contrat_modules", {
551
544
  params: {
552
545
  idContrat: e,
553
546
  typeContrat: t
554
547
  },
555
548
  signal: n,
556
- token: r,
557
- baseUrl: i
558
- }), qe = ({ motif: e, categorie: t, type: n, nature: r }, { signal: i, token: a, baseUrl: o } = {}) => L("/v2/sollicitation/responsables", {
549
+ baseUrl: r
550
+ }), Ke = ({ motif: e, categorie: t, type: n, nature: r }, { signal: i, baseUrl: a } = {}) => L("/v2/sollicitation/responsables", {
559
551
  params: {
560
552
  motif: e,
561
553
  categorie: t,
@@ -563,21 +555,18 @@ var je = (e, t) => {
563
555
  nature: r
564
556
  },
565
557
  signal: i,
566
- token: a,
567
- baseUrl: o
568
- }), Je = (e, { signal: t, token: n, baseUrl: r } = {}) => L("/v2/patrimoine/contrat_module_rechercher", {
558
+ baseUrl: a
559
+ }), qe = (e, { signal: t, baseUrl: n } = {}) => L("/v2/patrimoine/contrat_module_rechercher", {
569
560
  params: { recherche: e },
570
561
  signal: t,
571
- token: n,
572
- baseUrl: r
573
- }), Ye = ({ categorie: e, recherche: t }, { signal: n, token: r, baseUrl: i } = {}) => L("/v2/cresol/reclamant_rechercher", {
562
+ baseUrl: n
563
+ }), Je = ({ categorie: e, recherche: t }, { signal: n, baseUrl: r } = {}) => L("/v2/cresol/reclamant_rechercher", {
574
564
  params: {
575
565
  categorie: e,
576
566
  recherche: t
577
567
  },
578
568
  signal: n,
579
- token: r,
580
- baseUrl: i
569
+ baseUrl: r
581
570
  });
582
571
  //#endregion
583
572
  //#region src/utils/apiError.js
@@ -585,7 +574,7 @@ function z(e) {
585
574
  let t = e?.response?.data;
586
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";
587
576
  }
588
- var B = (e) => e?.name === "AbortError" || e?.name === "CanceledError", V = Symbol("cresol:data"), Xe = () => ({
577
+ var B = (e) => e?.name === "AbortError" || e?.name === "CanceledError", V = Symbol("cresol:data"), Ye = () => ({
589
578
  motifs: null,
590
579
  categories: null,
591
580
  types: null,
@@ -597,95 +586,94 @@ var B = (e) => e?.name === "AbortError" || e?.name === "CanceledError", V = Symb
597
586
  modulesByProgramme: {},
598
587
  modulesByContrat: {},
599
588
  responsablesByMotif: {}
600
- }), H = /* @__PURE__ */ new Map(), Ze = (e) => (H.has(e) || H.set(e, v(Xe())), H.get(e)), U = /* @__PURE__ */ new Map();
601
- function Qe() {
589
+ }), H = /* @__PURE__ */ new Map(), Xe = (e) => (H.has(e) || H.set(e, v(Ye())), H.get(e)), U = /* @__PURE__ */ new Map();
590
+ function Ze() {
602
591
  H.clear(), U.clear();
603
592
  }
604
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;
605
- function $e({ onError: e, token: t, baseUrl: n } = {}) {
606
- let i = y(0), a = () => ({
607
- token: T(t) || null,
608
- baseUrl: T(n) || null
609
- }), o = () => T(n) || I().baseUrl || "", s = () => Ze(o()), c = (t, n) => {
610
- let r = `${o()}|${t}`;
611
- if (U.has(r)) return U.get(r);
612
- i.value += 1;
613
- let a = Promise.resolve().then(n).catch((t) => (B(t) || e?.(z(t)), null)).finally(() => {
614
- --i.value, U.delete(r);
594
+ function Qe({ onError: e, baseUrl: t } = {}) {
595
+ let n = y(0), i = () => ({ baseUrl: T(t) || null }), a = () => T(t) || I().baseUrl || "", o = () => Xe(a()), s = (t, r) => {
596
+ let i = `${a()}|${t}`;
597
+ if (U.has(i)) return U.get(i);
598
+ n.value += 1;
599
+ let o = Promise.resolve().then(r).catch((t) => (B(t) || e?.(z(t)), null)).finally(() => {
600
+ --n.value, U.delete(i);
615
601
  });
616
- return U.set(r, a), a;
617
- }, l = (e, t) => s()[e]?.length ? Promise.resolve(s()[e]) : c(`referentiel:${e}`, async () => (s()[e] = await t(a()), s()[e])), u = {
602
+ return U.set(i, o), o;
603
+ }, c = (e, t) => o()[e]?.length ? Promise.resolve(o()[e]) : s(`referentiel:${e}`, async () => (o()[e] = await t(i()), o()[e])), l = {
618
604
  get cache() {
619
- return s();
605
+ return o();
620
606
  },
621
- loading: i,
622
- isLoading: r(() => i.value > 0),
607
+ loading: n,
608
+ isLoading: r(() => n.value > 0),
623
609
  loadNomenclature() {
624
610
  return Promise.all([
625
- l("motifs", Le),
626
- l("categories", Re),
627
- l("types", ze),
628
- l("natures", Be),
629
- l("etats", Ve)
611
+ c("motifs", Ie),
612
+ c("categories", Le),
613
+ c("types", Re),
614
+ c("natures", ze),
615
+ c("etats", Be)
630
616
  ]);
631
617
  },
632
- loadCollaborateurs: () => l("collaborateurs", He),
618
+ loadCollaborateurs: () => c("collaborateurs", Ve),
633
619
  loadCommunes() {
634
- return s().communes?.length ? Promise.resolve(s().communes) : c("communes", async () => (s().communes = await Ue(a()), s().communes));
620
+ return o().communes?.length ? Promise.resolve(o().communes) : s("communes", async () => (o().communes = await He(i()), o().communes));
635
621
  },
636
622
  loadAdresses(e) {
637
- return e == null ? Promise.resolve([]) : s().adressesByCommune[e] ? Promise.resolve(s().adressesByCommune[e]) : c(`adresses:${e}`, async () => {
638
- let t = await We(e, a());
639
- return s().adressesByCommune[e] = t ?? [], t;
623
+ return e == null ? Promise.resolve([]) : o().adressesByCommune[e] ? Promise.resolve(o().adressesByCommune[e]) : s(`adresses:${e}`, async () => {
624
+ let t = await Ue(e, i());
625
+ return o().adressesByCommune[e] = t ?? [], t;
640
626
  });
641
627
  },
642
628
  loadModulesOfProgramme(e) {
643
- return e == null ? Promise.resolve([]) : s().modulesByProgramme[e] ? Promise.resolve(s().modulesByProgramme[e]) : c(`modules:${e}`, async () => {
644
- let t = await Ge(e, a());
645
- return s().modulesByProgramme[e] = t ?? [], t;
629
+ return e == null ? Promise.resolve([]) : o().modulesByProgramme[e] ? Promise.resolve(o().modulesByProgramme[e]) : s(`modules:${e}`, async () => {
630
+ let t = await We(e, i());
631
+ return o().modulesByProgramme[e] = t ?? [], t;
646
632
  });
647
633
  },
648
634
  loadModulesOfContrat({ idContrat: e, typeContrat: t }) {
649
635
  if (e == null) return Promise.resolve([]);
650
636
  let n = `${t ?? ""}|${e}`;
651
- return s().modulesByContrat[n] ? Promise.resolve(s().modulesByContrat[n]) : c(`contratModules:${n}`, async () => {
652
- let r = await Ke({
637
+ return o().modulesByContrat[n] ? Promise.resolve(o().modulesByContrat[n]) : s(`contratModules:${n}`, async () => {
638
+ let r = await Ge({
653
639
  idContrat: e,
654
640
  typeContrat: t
655
- }, a());
656
- return s().modulesByContrat[n] = r ?? [], r;
641
+ }, i());
642
+ return o().modulesByContrat[n] = r ?? [], r;
657
643
  });
658
644
  },
659
645
  async searchContrats(e, { signal: t } = {}) {
660
646
  let n = (e ?? "").trim();
661
647
  if (!n) return [];
662
- let r = await Je(n, {
663
- ...a(),
648
+ let r = await qe(n, {
649
+ ...i(),
664
650
  signal: t
665
- }), i = /* @__PURE__ */ new Map();
651
+ }), a = /* @__PURE__ */ new Map();
666
652
  for (let e of r ?? []) {
667
653
  let t = `${e.typeContrat}|${e.idContrat}`;
668
- i.has(t) || i.set(t, {
654
+ (!a.has(t) || e.estModulePrincipal) && a.set(t, {
669
655
  typeContrat: e.typeContrat,
670
656
  idContrat: e.idContrat,
671
657
  libelle: e.libelle ?? null,
658
+ adresse: e.adresse ?? null,
659
+ commune: e.commune ?? null,
672
660
  estSorti: !!e.estContratSorti,
673
661
  nbModules: e.nbModulesContrat ?? 1
674
662
  });
675
663
  }
676
- return [...i.values()].sort((e, t) => Number(e.estSorti) - Number(t.estSorti) || (e.libelle ?? "").localeCompare(t.libelle ?? ""));
664
+ return [...a.values()].sort((e, t) => Number(e.estSorti) - Number(t.estSorti) || (e.libelle ?? "").localeCompare(t.libelle ?? ""));
677
665
  },
678
666
  async searchReclamants(e, t, { signal: n } = {}) {
679
667
  let r = (t ?? "").trim();
680
668
  if (!r) return [];
681
- let i = await Ye({
669
+ let a = await Je({
682
670
  categorie: e,
683
671
  recherche: r
684
672
  }, {
685
- ...a(),
673
+ ...i(),
686
674
  signal: n
687
675
  }), o = /* @__PURE__ */ new Map();
688
- for (let t of i ?? []) {
676
+ for (let t of a ?? []) {
689
677
  let n = `${t.typeReclamant}|${t.idReclamant}`;
690
678
  o.has(n) || o.set(n, {
691
679
  type: t.typeReclamant,
@@ -711,44 +699,44 @@ function $e({ onError: e, token: t, baseUrl: n } = {}) {
711
699
  });
712
700
  },
713
701
  loadResponsables({ motif: e, categorie: t, type: n, nature: r }) {
714
- return e == null ? Promise.resolve([]) : s().responsablesByMotif[e] ? Promise.resolve(s().responsablesByMotif[e]) : c(`responsables:${e}`, async () => {
715
- let i = await qe({
702
+ return e == null ? Promise.resolve([]) : o().responsablesByMotif[e] ? Promise.resolve(o().responsablesByMotif[e]) : s(`responsables:${e}`, async () => {
703
+ let a = await Ke({
716
704
  motif: e,
717
705
  categorie: t,
718
706
  type: n,
719
707
  nature: r
720
- }, a());
721
- return s().responsablesByMotif[e] = i ?? [], i;
708
+ }, i());
709
+ return o().responsablesByMotif[e] = a ?? [], a;
722
710
  });
723
711
  },
724
- adressesOfCommune: (e) => s().adressesByCommune[e] ?? null,
725
- modulesOfProgramme: (e) => s().modulesByProgramme[e] ?? null,
726
- modulesOfContrat: ({ idContrat: e, typeContrat: t }) => s().modulesByContrat[`${t ?? ""}|${e}`] ?? null,
727
- allAdresses: () => Object.values(s().adressesByCommune).flat(),
712
+ adressesOfCommune: (e) => o().adressesByCommune[e] ?? null,
713
+ modulesOfProgramme: (e) => o().modulesByProgramme[e] ?? null,
714
+ modulesOfContrat: ({ idContrat: e, typeContrat: t }) => o().modulesByContrat[`${t ?? ""}|${e}`] ?? null,
715
+ allAdresses: () => Object.values(o().adressesByCommune).flat(),
728
716
  getResponsableSuggere({ idMotif: e, codeProgramme: t, codeTranche: n, codeBatiment: r, codeEscalier: i }) {
729
- let a = s().responsablesByMotif[e];
717
+ let a = o().responsablesByMotif[e];
730
718
  if (!a?.length || t == null) return null;
731
- let o = a.filter((e) => String(e.codeProgramme) === String(t) && (e.codeTranche == null || e.codeTranche === n) && (e.codeBatiment == null || e.codeBatiment === r) && (e.codeEscalier == null || e.codeEscalier === i));
732
- if (!o.length) return null;
733
- let c = (e) => (e.codeEscalier == null ? 0 : 4) + (e.codeBatiment == null ? 0 : 2) + (e.codeTranche == null ? 0 : 1), l = o.reduce((e, t) => c(t) > c(e) ? t : e);
719
+ let s = a.filter((e) => String(e.codeProgramme) === String(t) && (e.codeTranche == null || e.codeTranche === n) && (e.codeBatiment == null || e.codeBatiment === r) && (e.codeEscalier == null || e.codeEscalier === i));
720
+ if (!s.length) return null;
721
+ let c = (e) => (e.codeEscalier == null ? 0 : 4) + (e.codeBatiment == null ? 0 : 2) + (e.codeTranche == null ? 0 : 1), l = s.reduce((e, t) => c(t) > c(e) ? t : e);
734
722
  return {
735
723
  idResponsable: l.idResponsable,
736
724
  libelle: l.libelleResponsable
737
725
  };
738
726
  },
739
- motifLibelle: (e) => W(s().motifs, "id", e),
740
- categorieLibelle: (e) => W(s().categories, "id", e),
741
- typeLibelle: (e) => W(s().types, "id", e),
742
- natureLibelle: (e) => W(s().natures, "id", e),
743
- etatLibelle: (e) => W(s().etats, "code", e),
744
- motifIcon: (e) => G(s().motifs, "id", e),
745
- categorieIcon: (e) => G(s().categories, "id", e),
746
- typeIcon: (e) => G(s().types, "id", e),
747
- natureIcon: (e) => G(s().natures, "id", e)
727
+ motifLibelle: (e) => W(o().motifs, "id", e),
728
+ categorieLibelle: (e) => W(o().categories, "id", e),
729
+ typeLibelle: (e) => W(o().types, "id", e),
730
+ natureLibelle: (e) => W(o().natures, "id", e),
731
+ etatLibelle: (e) => W(o().etats, "code", e),
732
+ motifIcon: (e) => G(o().motifs, "id", e),
733
+ categorieIcon: (e) => G(o().categories, "id", e),
734
+ typeIcon: (e) => G(o().types, "id", e),
735
+ natureIcon: (e) => G(o().natures, "id", e)
748
736
  };
749
- return v(u);
737
+ return v(l);
750
738
  }
751
- function et(e) {
739
+ function $e(e) {
752
740
  return _(V, e), e;
753
741
  }
754
742
  function K() {
@@ -758,11 +746,11 @@ function K() {
758
746
  }
759
747
  //#endregion
760
748
  //#region src/utils/fontAwesomeIcons.js
761
- var tt = (e) => "fa" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
762
- async function nt(e) {
749
+ var et = (e) => "fa" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
750
+ async function tt(e) {
763
751
  let t = await import("@fortawesome/free-solid-svg-icons");
764
752
  [...new Set(e.filter(Boolean))].forEach((e) => {
765
- let n = t[tt(e)];
753
+ let n = t[et(e)];
766
754
  n && ae.add(n);
767
755
  });
768
756
  }
@@ -809,7 +797,7 @@ var q = [
809
797
  aucun: "Aucun réclamant trouvé.",
810
798
  placeholder: "Nom, prénom, n° de contrat ou de demande, adresse, téléphone ou mail…"
811
799
  }
812
- ], rt = {
800
+ ], nt = {
813
801
  signataire: "Signataire",
814
802
  occupant: "Occupant",
815
803
  demandeur: "Demandeur"
@@ -817,7 +805,7 @@ var q = [
817
805
  D: "demandeur",
818
806
  T: "tiers",
819
807
  U: "autre"
820
- }[e.type] ?? "locataire" : null, it = {
808
+ }[e.type] ?? "locataire" : null, rt = {
821
809
  name: "ReclamantRechercheBlock",
822
810
  components: { AmsomAutocomplete: O },
823
811
  setup() {
@@ -855,7 +843,7 @@ var q = [
855
843
  }
856
844
  },
857
845
  async created() {
858
- await nt(q.map((e) => e.icon)), this.iconsReady = !0;
846
+ await tt(q.map((e) => e.icon)), this.iconsReady = !0;
859
847
  },
860
848
  beforeUnmount() {
861
849
  clearTimeout(this.rechercheTimeout), this.controller?.abort();
@@ -906,93 +894,70 @@ var q = [
906
894
  }
907
895
  return t.map((e) => {
908
896
  let t = [e.nom, e.prenom].filter(Boolean).join(" ");
909
- return rt[e.role] ? `${t} (${rt[e.role].toLowerCase()})` : t;
897
+ return nt[e.role] ? `${t} (${nt[e.role].toLowerCase()})` : t;
910
898
  }).join(", ");
911
899
  }
912
900
  }
913
- }, at = {
901
+ }, it = {
914
902
  key: 0,
915
903
  class: "d-flex flex-column gap-3"
916
- }, ot = { class: "d-flex flex-wrap gap-2" }, st = ["onClick"], ct = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, lt = { class: "min-w-0" }, ut = {
904
+ }, at = { class: "d-flex flex-wrap gap-2" }, ot = ["onClick"], st = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, ct = { class: "min-w-0" }, lt = {
917
905
  key: 0,
918
906
  class: "badge bg-warning-subtle text-warning-emphasis ms-1"
919
- }, dt = { class: "text-muted d-block text-truncate" }, ft = { key: 0 }, pt = {
907
+ }, ut = { class: "text-muted d-block text-truncate" }, dt = { key: 0 }, ft = {
920
908
  key: 0,
921
909
  class: "text-muted d-block text-truncate"
922
- }, mt = {
910
+ }, pt = {
923
911
  key: 0,
924
912
  class: "text-muted"
925
- }, ht = {
926
- key: 0,
927
- class: "alert alert-primary py-2 px-3 mb-0 fs-7 d-flex align-items-start gap-2"
928
- }, gt = { class: "min-w-0" }, _t = { class: "fw-semibold" }, vt = {
929
- key: 0,
930
- class: "text-truncate"
931
- }, yt = {
932
- key: 1,
933
- class: "text-truncate"
934
- }, bt = {
935
- key: 1,
936
- class: "fs-7 text-danger"
937
913
  };
938
- function xt(e, t, r, c, d, f) {
914
+ function mt(e, t, r, c, d, f) {
939
915
  let p = S("font-awesome-icon"), h = S("amsom-autocomplete");
940
- return d.iconsReady ? (g(), o("div", at, [
941
- 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", ot, [(g(!0), o(n, null, b(f.categories, (e) => (g(), o("button", {
942
- key: e.key,
943
- type: "button",
944
- class: m(["btn btn-sm d-inline-flex align-items-center gap-2", d.categorie === e.key ? "btn-primary" : "btn-outline-primary"]),
945
- onClick: (t) => f.setCategorie(e.key)
946
- }, [u(p, {
947
- icon: e.icon,
948
- "fixed-width": ""
949
- }, null, 8, ["icon"]), s("span", null, C(e.label), 1)], 10, st))), 128))])]),
950
- s("div", null, [
951
- s("label", ct, C(f.categorieCourante.recherche), 1),
952
- (g(), i(h, {
953
- key: d.categorie,
954
- modelValue: f.selectedTrouve,
955
- "onUpdate:modelValue": t[0] ||= (e) => f.selectedTrouve = e,
956
- items: d.trouves,
957
- "filtering-function": ({ items: e }) => e,
958
- loading: d.rechercheEnCours,
959
- "get-id": f.cleReclamant,
960
- "get-input-libelle": (e) => e?.libelle ?? "",
961
- placeholder: f.categorieCourante.placeholder,
962
- "input-size": "sm",
963
- "hide-choices": "",
964
- "debounce-delay": 0,
965
- onSearch: f.rechercherPlusTard
966
- }, {
967
- options: E((e) => [s("div", lt, [
968
- 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", ut, C(f.categorieOf(e) === "demandeur" ? "inactive" : "sorti"), 1))], 2),
969
- s("small", dt, [l(C(f.referenceOf(e)) + " ", 1), e?.adresse ? (g(), o("span", ft, " — " + C(e.adresse), 1)) : a("", !0)]),
970
- f.detailOf(e) ? (g(), o("small", pt, C(f.detailOf(e)), 1)) : a("", !0)
971
- ])]),
972
- _: 1
973
- }, 8, [
974
- "modelValue",
975
- "items",
976
- "filtering-function",
977
- "loading",
978
- "get-id",
979
- "get-input-libelle",
980
- "placeholder",
981
- "onSearch"
982
- ])),
983
- d.rechercheFaite && !d.rechercheEnCours && !d.trouves.length ? (g(), o("small", mt, C(f.categorieCourante.aucun), 1)) : a("", !0)
984
- ]),
985
- f.selectionne ? (g(), o("div", ht, [u(p, {
986
- icon: f.iconOf(f.selectionne),
987
- class: "mt-1"
988
- }, null, 8, ["icon"]), s("div", gt, [
989
- s("div", _t, C(f.selectionne.libelle), 1),
990
- f.selectionne.adresse ? (g(), o("div", vt, C(f.selectionne.adresse), 1)) : a("", !0),
991
- f.detailOf(f.selectionne) ? (g(), o("div", yt, C(f.detailOf(f.selectionne)), 1)) : a("", !0)
992
- ])])) : (g(), o("div", bt, "Recherchez puis sélectionnez le réclamant."))
993
- ])) : 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);
994
959
  }
995
- var St = /*#__PURE__*/ F(it, [["render", xt]]), Ct = {
960
+ var ht = /*#__PURE__*/ F(rt, [["render", mt]]), gt = {
996
961
  name: "ProvenanceSelecteurBlock",
997
962
  setup() {
998
963
  return { draft: P() };
@@ -1008,22 +973,22 @@ var St = /*#__PURE__*/ F(it, [["render", xt]]), Ct = {
1008
973
  return this.provenances.find((e) => e.id === this.selected) ?? null;
1009
974
  }
1010
975
  }
1011
- }, wt = {
976
+ }, _t = {
1012
977
  key: 0,
1013
978
  class: "fs-7 text-muted"
1014
- }, Tt = { class: "fw-medium" }, Et = { key: 1 }, Dt = { class: "d-flex flex-wrap gap-2" }, Ot = ["onClick"], kt = {
979
+ }, vt = { class: "fw-medium" }, yt = { key: 1 }, bt = { class: "d-flex flex-wrap gap-2" }, xt = ["onClick"], St = {
1015
980
  key: 0,
1016
981
  class: "fs-7 text-danger mt-1"
1017
982
  };
1018
- function At(e, t, r, c, d, f) {
983
+ function Ct(e, t, r, c, d, f) {
1019
984
  let p = S("font-awesome-icon");
1020
- return c.draft.isReadonly("provenance") ? (g(), o("div", wt, [t[0] ||= l(" Provenance du contact : ", -1), s("span", Tt, [f.provenanceChoisie?.icon ? (g(), i(p, {
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, {
1021
986
  key: 0,
1022
987
  icon: f.provenanceChoisie.icon,
1023
988
  "fixed-width": ""
1024
- }, null, 8, ["icon"])) : a("", !0), l(" " + C(f.provenanceChoisie?.libelle ?? "—"), 1)])])) : (g(), o("div", Et, [
989
+ }, null, 8, ["icon"])) : a("", !0), l(" " + C(f.provenanceChoisie?.libelle ?? "—"), 1)])])) : (g(), o("div", yt, [
1025
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),
1026
- s("div", Dt, [(g(!0), o(n, null, b(f.provenances, (e) => (g(), o("button", {
991
+ s("div", bt, [(g(!0), o(n, null, b(f.provenances, (e) => (g(), o("button", {
1027
992
  key: e.id,
1028
993
  type: "button",
1029
994
  class: m(["btn btn-sm d-inline-flex align-items-center gap-2", e.id === f.selected ? "btn-primary" : "btn-outline-primary"]),
@@ -1031,15 +996,15 @@ function At(e, t, r, c, d, f) {
1031
996
  }, [u(p, {
1032
997
  icon: e.icon,
1033
998
  "fixed-width": ""
1034
- }, null, 8, ["icon"]), s("span", null, C(e.libelle), 1)], 10, Ot))), 128))]),
1035
- f.selected ? a("", !0) : (g(), o("div", kt, " Sélectionnez par quel canal la sollicitation vous est parvenue. "))
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. "))
1036
1001
  ]));
1037
1002
  }
1038
- var jt = /*#__PURE__*/ F(Ct, [["render", At]]), Mt = {
1003
+ var wt = /*#__PURE__*/ F(gt, [["render", Ct]]), Tt = {
1039
1004
  name: "EtapeReclamantBlock",
1040
1005
  components: {
1041
- ReclamantRechercheBlock: St,
1042
- ProvenanceSelecteurBlock: jt
1006
+ ReclamantRechercheBlock: ht,
1007
+ ProvenanceSelecteurBlock: wt
1043
1008
  },
1044
1009
  props: { premiere: {
1045
1010
  type: Boolean,
@@ -1048,18 +1013,18 @@ var jt = /*#__PURE__*/ F(Ct, [["render", At]]), Mt = {
1048
1013
  setup() {
1049
1014
  return { draft: P() };
1050
1015
  }
1051
- }, Nt = { class: "d-flex flex-column gap-3" }, Pt = { class: "alert alert-light border py-2 px-3 mb-0 fs-7" };
1052
- function Ft(e, t, n, r, c, d) {
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) {
1053
1018
  let f = S("provenance-selecteur-block"), p = S("font-awesome-icon"), m = S("reclamant-recherche-block");
1054
- return g(), o("div", Nt, [n.premiere ? (g(), i(f, { key: 0 })) : a("", !0), x(e.$slots, "reclamant", {
1019
+ return g(), o("div", Et, [n.premiere ? (g(), i(f, { key: 0 })) : a("", !0), x(e.$slots, "reclamant", {
1055
1020
  reclamant: r.draft.reclamantSelectionne,
1056
1021
  select: r.draft.selectReclamant
1057
- }, () => [s("div", Pt, [u(p, {
1022
+ }, () => [s("div", Dt, [u(p, {
1058
1023
  icon: "user",
1059
1024
  class: "text-primary me-2"
1060
1025
  }), t[0] ||= l(" Pour qui cette sollicitation est-elle créée\xA0? ", -1)]), u(m)])]);
1061
1026
  }
1062
- var It = /*#__PURE__*/ F(Mt, [["render", Ft]]), Lt = Symbol("cresol:options"), Rt = (e) => _(Lt, e), Y = () => f(Lt, {});
1027
+ var kt = /*#__PURE__*/ F(Tt, [["render", Ot]]), At = Symbol("cresol:options"), jt = (e) => _(At, e), Y = () => f(At, {});
1063
1028
  //#endregion
1064
1029
  //#region src/utils/text.js
1065
1030
  function X(e, t = !0) {
@@ -1069,7 +1034,7 @@ function X(e, t = !0) {
1069
1034
  }
1070
1035
  //#endregion
1071
1036
  //#region src/components/ReclamantSelecteurBlock.vue
1072
- var zt = {
1037
+ var Mt = {
1073
1038
  name: "ReclamantSelecteurBlock",
1074
1039
  components: { AmsomAutocomplete: O },
1075
1040
  props: {
@@ -1115,25 +1080,25 @@ var zt = {
1115
1080
  return n ? t.filter((e) => (X(e?.libelle) ?? "").includes(n)) : t;
1116
1081
  }
1117
1082
  }
1118
- }, Bt = {
1083
+ }, Nt = {
1119
1084
  key: 0,
1120
1085
  class: "fs-7 text-muted"
1121
- }, Vt = { class: "fw-medium" }, Ht = {
1086
+ }, Pt = { class: "fw-medium" }, Ft = {
1122
1087
  key: 0,
1123
1088
  class: "btn-group btn-group-sm",
1124
1089
  role: "group"
1125
- }, Ut = ["onClick"], Wt = ["value"], Gt = ["value"];
1126
- function Kt(e, t, r, a, c, u) {
1090
+ }, It = ["onClick"], Lt = ["value"], Rt = ["value"];
1091
+ function zt(e, t, r, a, c, u) {
1127
1092
  let d = S("amsom-autocomplete");
1128
- return u.estFige ? (g(), o("div", Bt, [t[2] ||= l(" Réclamant : ", -1), s("span", Vt, C(u.reclamantSelectionne?.libelle), 1)])) : (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", {
1129
1094
  key: 1,
1130
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")
1131
- }, [t[3] ||= s("span", { class: "fs-7 fw-semibold text-muted text-uppercase" }, "Réclamant", -1), u.presentation === "switch" ? (g(), o("div", Ht, [(g(!0), o(n, null, b(u.reclamants, (e, t) => (g(), o("button", {
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", {
1132
1097
  key: t,
1133
1098
  type: "button",
1134
1099
  class: m(["btn btn-sm py-0", e === u.reclamantSelectionne ? "btn-primary" : "btn-outline-primary"]),
1135
1100
  onClick: (t) => u.select(e)
1136
- }, C(e.libelle), 11, Ut))), 128))])) : u.presentation === "autocomplete" ? (g(), i(d, {
1101
+ }, C(e.libelle), 11, It))), 128))])) : u.presentation === "autocomplete" ? (g(), i(d, {
1137
1102
  key: 1,
1138
1103
  "model-value": u.reclamantSelectionne,
1139
1104
  items: u.reclamants,
@@ -1160,17 +1125,17 @@ function Kt(e, t, r, a, c, u) {
1160
1125
  }, [(g(!0), o(n, null, b(u.reclamants, (e, t) => (g(), o("option", {
1161
1126
  key: t,
1162
1127
  value: t
1163
- }, C(e.libelle), 9, Gt))), 128))], 42, Wt))], 2));
1128
+ }, C(e.libelle), 9, Rt))), 128))], 42, Lt))], 2));
1164
1129
  }
1165
1130
  //#endregion
1166
1131
  //#region src/components/EtapeCategorieBlock.vue
1167
- var qt = {
1132
+ var Bt = {
1168
1133
  name: "EtapeCategorieBlock",
1169
1134
  components: {
1170
1135
  AmsomOverlay: t,
1171
1136
  AmsomAutocomplete: O,
1172
- ReclamantSelecteurBlock: /* @__PURE__ */ F(zt, [["render", Kt]]),
1173
- ProvenanceSelecteurBlock: jt
1137
+ ReclamantSelecteurBlock: /* @__PURE__ */ F(Mt, [["render", zt]]),
1138
+ ProvenanceSelecteurBlock: wt
1174
1139
  },
1175
1140
  props: { premiere: {
1176
1141
  type: Boolean,
@@ -1297,7 +1262,7 @@ var qt = {
1297
1262
  });
1298
1263
  },
1299
1264
  registerIcons() {
1300
- return nt([
1265
+ return tt([
1301
1266
  ...this.data.cache.categories ?? [],
1302
1267
  ...this.data.cache.types ?? [],
1303
1268
  ...this.data.cache.natures ?? [],
@@ -1332,40 +1297,40 @@ var qt = {
1332
1297
  return this.activeMotifs.find((t) => t.id === e)?.libelle ?? e;
1333
1298
  }
1334
1299
  }
1335
- }, Jt = {
1300
+ }, Vt = {
1336
1301
  key: 0,
1337
1302
  class: "d-flex flex-column gap-3"
1338
- }, Yt = { key: 2 }, Xt = { class: "d-flex flex-wrap align-items-center gap-2" }, Zt = { class: "badge rounded-pill bg-primary d-inline-flex align-items-center gap-2" }, Qt = { key: 3 }, $t = { class: "d-flex align-items-center gap-2" }, en = { class: "min-w-0" }, tn = { class: "fw-medium text-truncate" }, nn = { class: "text-muted d-block text-truncate" }, rn = {
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 = {
1339
1304
  key: 4,
1340
1305
  class: "d-flex align-items-center gap-2 text-muted fs-7"
1341
- }, an = {
1306
+ }, Zt = {
1342
1307
  key: 5,
1343
1308
  class: "d-flex flex-wrap align-items-center gap-2"
1344
- }, on = ["onClick"], sn = { key: 6 }, cn = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-2" }, ln = { class: "row justify-content-around g-3" }, un = ["title", "onClick"], dn = { class: "fs-7 mt-1 lh-sm" }, fn = {
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 = {
1345
1310
  key: 0,
1346
1311
  class: "col-12 text-muted fs-7"
1347
- }, pn = [
1312
+ }, on = [
1348
1313
  "id",
1349
1314
  "checked",
1350
1315
  "disabled",
1351
1316
  "onChange"
1352
- ], mn = ["for"];
1353
- function hn(e, t, r, c, d, f) {
1317
+ ], sn = ["for"];
1318
+ function cn(e, t, r, c, d, f) {
1354
1319
  let p = S("provenance-selecteur-block"), m = S("reclamant-selecteur-block"), h = S("font-awesome-icon"), _ = S("amsom-autocomplete"), v = S("amsom-overlay");
1355
1320
  return g(), i(v, { loading: c.data.isLoading && !c.data.cache.motifs || !d.iconsReady }, {
1356
- default: E(() => [d.iconsReady ? (g(), o("div", Jt, [
1321
+ default: E(() => [d.iconsReady ? (g(), o("div", Vt, [
1357
1322
  r.premiere ? (g(), i(p, { key: 0 })) : a("", !0),
1358
1323
  c.options.reclamantMode === "step" ? a("", !0) : (g(), i(m, { key: 1 })),
1359
- f.motifFige && f.selectionChain.length ? (g(), o("div", Yt, [t[1] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Motif", -1), s("div", Xt, [(g(!0), o(n, null, b(f.selectionChain, (e, t) => (g(), o(n, { key: e.level }, [t > 0 ? (g(), i(h, {
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, {
1360
1325
  key: 0,
1361
1326
  icon: "fa-solid fa-chevron-right",
1362
1327
  class: "text-muted fs-7"
1363
- })) : a("", !0), s("span", Zt, [e.icon ? (g(), i(h, {
1328
+ })) : a("", !0), s("span", Wt, [e.icon ? (g(), i(h, {
1364
1329
  key: 0,
1365
1330
  icon: e.icon,
1366
1331
  "fixed-width": ""
1367
1332
  }, null, 8, ["icon"])) : a("", !0), l(" " + C(e.libelle), 1)])], 64))), 128))])])) : a("", !0),
1368
- f.motifFige ? a("", !0) : (g(), o("div", Qt, [t[2] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Rechercher un motif ", -1), u(_, {
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(_, {
1369
1334
  modelValue: f.motifRecherche,
1370
1335
  "onUpdate:modelValue": t[0] ||= (e) => f.motifRecherche = e,
1371
1336
  items: f.allowedMotifs,
@@ -1377,12 +1342,12 @@ function hn(e, t, r, c, d, f) {
1377
1342
  "input-size": "sm",
1378
1343
  "hide-choices": ""
1379
1344
  }, {
1380
- options: E((e) => [s("div", $t, [e?.icon ? (g(), i(h, {
1345
+ options: E((e) => [s("div", Kt, [e?.icon ? (g(), i(h, {
1381
1346
  key: 0,
1382
1347
  icon: e.icon,
1383
1348
  class: "text-primary",
1384
1349
  "fixed-width": ""
1385
- }, null, 8, ["icon"])) : a("", !0), s("div", en, [s("div", tn, C(e?.libelle), 1), s("small", nn, C(e?.categorie) + " › " + C(e?.type) + " › " + C(e?.nature), 1)])])]),
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)])])]),
1386
1351
  _: 1
1387
1352
  }, 8, [
1388
1353
  "modelValue",
@@ -1392,12 +1357,12 @@ function hn(e, t, r, c, d, f) {
1392
1357
  "get-input-libelle-from-id",
1393
1358
  "filtering-function"
1394
1359
  ])])),
1395
- f.motifFige ? a("", !0) : (g(), o("div", rn, [...t[3] ||= [
1360
+ f.motifFige ? a("", !0) : (g(), o("div", Xt, [...t[3] ||= [
1396
1361
  s("hr", { class: "flex-grow-1 my-0" }, null, -1),
1397
1362
  s("span", null, "ou sélection guidée", -1),
1398
1363
  s("hr", { class: "flex-grow-1 my-0" }, null, -1)
1399
1364
  ]])),
1400
- !f.motifFige && f.selectionChain.length ? (g(), o("div", an, [(g(!0), o(n, null, b(f.selectionChain, (e, t) => (g(), o(n, { key: e.level }, [t > 0 ? (g(), i(h, {
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, {
1401
1366
  key: 0,
1402
1367
  icon: "fa-solid fa-chevron-right",
1403
1368
  class: "text-muted fs-7"
@@ -1416,8 +1381,8 @@ function hn(e, t, r, c, d, f) {
1416
1381
  icon: "fa-solid fa-xmark",
1417
1382
  class: "fs-7 opacity-75"
1418
1383
  })
1419
- ], 8, on)], 64))), 128))])) : a("", !0),
1420
- !f.motifFige && f.currentLevel ? (g(), o("div", sn, [s("label", cn, C(f.currentLevel.title), 1), s("div", ln, [(g(!0), o(n, null, b(f.currentLevel.options, (e) => (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", {
1421
1386
  key: e.id,
1422
1387
  class: "col-3 text-center"
1423
1388
  }, [s("button", {
@@ -1429,7 +1394,7 @@ function hn(e, t, r, c, d, f) {
1429
1394
  key: 0,
1430
1395
  icon: e.icon,
1431
1396
  size: "lg"
1432
- }, null, 8, ["icon"])) : a("", !0)], 8, un), s("div", dn, C(e.libelle), 1)]))), 128)), f.currentLevel.options.length ? a("", !0) : (g(), o("div", fn, " Aucun choix disponible "))])])) : a("", !0),
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),
1433
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" }, [
1434
1399
  s("hr", { class: "flex-grow-1 my-0" }),
1435
1400
  s("span", null, "Autres motifs liés"),
@@ -1444,15 +1409,15 @@ function hn(e, t, r, c, d, f) {
1444
1409
  checked: f.isActive(e.idMotif),
1445
1410
  disabled: f.motifFige,
1446
1411
  onChange: (t) => f.toggleMotifAssocie(e)
1447
- }, null, 40, pn), s("label", {
1412
+ }, null, 40, on), s("label", {
1448
1413
  class: "form-check-label fs-7",
1449
1414
  for: `assoc-${e.idMotif}`
1450
- }, C(e.libelle) + " ? ", 9, mn)]))), 128))], 64)) : a("", !0)
1415
+ }, C(e.libelle) + " ? ", 9, sn)]))), 128))], 64)) : a("", !0)
1451
1416
  ])) : a("", !0)]),
1452
1417
  _: 1
1453
1418
  }, 8, ["loading"]);
1454
1419
  }
1455
- var gn = /*#__PURE__*/ F(qt, [["render", hn]]), _n = {
1420
+ var ln = /*#__PURE__*/ F(Bt, [["render", cn]]), un = {
1456
1421
  B: "briefcase",
1457
1422
  M: "store",
1458
1423
  W: "dungeon",
@@ -1462,15 +1427,15 @@ var gn = /*#__PURE__*/ F(qt, [["render", hn]]), _n = {
1462
1427
  S: "square-parking",
1463
1428
  V: "hands-holding"
1464
1429
  };
1465
- function vn(e, t = !1, n = "circle-question") {
1466
- return e === "L" ? t ? "building" : "house" : _n[e] ?? n;
1430
+ function dn(e, t = !1, n = "circle-question") {
1431
+ return e === "L" ? t ? "building" : "house" : un[e] ?? n;
1467
1432
  }
1468
- function yn(e) {
1433
+ function fn(e) {
1469
1434
  return e ? e.idCategorieModule === "L" ? e.estCollectif ? "Appartement" : "Maison" : e.categorieModule ?? "" : "";
1470
1435
  }
1471
1436
  //#endregion
1472
1437
  //#region src/components/CiblePickerBlock.vue
1473
- var bn = 0, xn = {
1438
+ var pn = 0, mn = {
1474
1439
  name: "CiblePickerBlock",
1475
1440
  components: { AmsomAutocomplete: O },
1476
1441
  props: {
@@ -1502,6 +1467,10 @@ var bn = 0, xn = {
1502
1467
  type: Boolean,
1503
1468
  default: !1
1504
1469
  },
1470
+ modulePrecis: {
1471
+ type: Boolean,
1472
+ default: !0
1473
+ },
1505
1474
  locataireActuelOption: {
1506
1475
  type: Object,
1507
1476
  default: null
@@ -1515,14 +1484,15 @@ var bn = 0, xn = {
1515
1484
  "select-module",
1516
1485
  "select-contrat",
1517
1486
  "toggle-contrat-reclamant",
1518
- "toggle-reprendre-locataire-actuel"
1487
+ "toggle-reprendre-locataire-actuel",
1488
+ "set-module-precis"
1519
1489
  ],
1520
1490
  setup() {
1521
1491
  return { data: K() };
1522
1492
  },
1523
1493
  data() {
1524
1494
  return {
1525
- uid: ++bn,
1495
+ uid: ++pn,
1526
1496
  rechercheContrat: "",
1527
1497
  contratsTrouves: [],
1528
1498
  rechercheEnCours: !1,
@@ -1544,13 +1514,28 @@ var bn = 0, xn = {
1544
1514
  }, {
1545
1515
  key: "patrimoine",
1546
1516
  label: "Du patrimoine",
1547
- icon: "building",
1548
- aide: "Une adresse seule pour une partie commune, un module pour un logement précis."
1517
+ icon: "building"
1549
1518
  }];
1550
1519
  },
1551
1520
  currentMode() {
1552
1521
  return this.availableModes.find((e) => e.key === this.cibleMode);
1553
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
+ },
1554
1539
  contratModules() {
1555
1540
  return this.contratReclamant ? this.reclamantModules : this.contratCible ? this.data.modulesOfContrat(this.contratCible) ?? [] : [];
1556
1541
  },
@@ -1668,6 +1653,9 @@ var bn = 0, xn = {
1668
1653
  contratInputLibelle(e) {
1669
1654
  return e ? [e.libelle, `${e.typeContrat}/${e.idContrat}`].filter(Boolean).join(" — ") : "";
1670
1655
  },
1656
+ contratAdresse(e) {
1657
+ return [e?.adresse, e?.commune].filter(Boolean).join(", ");
1658
+ },
1671
1659
  filterOn(e) {
1672
1660
  return ({ search: t, items: n }) => {
1673
1661
  let r = (X(t) ?? "").trim();
@@ -1678,8 +1666,8 @@ var bn = 0, xn = {
1678
1666
  let n = (X(e) ?? "").trim();
1679
1667
  return n ? t.filter((e) => (X(this.moduleInputLibelle(e)) ?? "").includes(n) || (X(e?._autreLibelle) ?? "").includes(n)) : t;
1680
1668
  },
1681
- getCategorieModuleIcon: vn,
1682
- categorieLibelle: yn,
1669
+ getCategorieModuleIcon: dn,
1670
+ categorieLibelle: fn,
1683
1671
  moduleLibelle(e) {
1684
1672
  return e ? e.libelleModule ?? e.adresse ?? `Module ${e.idModule}` : "";
1685
1673
  },
@@ -1691,40 +1679,43 @@ var bn = 0, xn = {
1691
1679
  return !!e?.dateFin && e.dateFin < Math.floor(Date.now() / 1e3);
1692
1680
  }
1693
1681
  }
1694
- }, Sn = { class: "d-flex flex-column gap-3" }, Cn = {
1682
+ }, hn = { class: "d-flex flex-column gap-3" }, gn = {
1695
1683
  class: "btn-group w-100",
1696
1684
  role: "group"
1697
- }, wn = ["onClick"], Tn = { class: "text-muted d-block mt-1" }, En = {
1685
+ }, _n = ["onClick"], vn = { class: "text-muted d-block mt-1" }, yn = {
1698
1686
  key: 0,
1699
1687
  class: "form-check"
1700
- }, Dn = ["id", "checked"], On = ["for"], kn = { key: 1 }, An = { class: "min-w-0" }, jn = { class: "fw-medium text-truncate text-capitalize" }, Mn = { class: "text-muted d-block text-truncate" }, Nn = { key: 0 }, Pn = {
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 = {
1701
1692
  key: 1,
1702
- class: "text-warning"
1703
- }, Fn = { class: "min-w-0" }, In = { class: "fw-medium text-truncate" }, Ln = { class: "text-muted d-block text-truncate" }, Rn = {
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 = {
1704
1698
  key: 2,
1705
- class: "row g-2"
1706
- }, zn = { class: "col-12 col-md-5" }, Bn = ["value"], Vn = { class: "col-12 col-md-5" }, Hn = ["value"], Un = { class: "col-12 col-md-2" }, Wn = ["value"], Gn = { key: 3 }, Kn = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, qn = {
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 = {
1707
1701
  key: 0,
1708
- class: "text-lowercase fw-normal"
1709
- }, Jn = { class: "d-flex flex-wrap align-items-center gap-1" }, Yn = ["title"], Xn = { class: "text-muted" }, Zn = {
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 = {
1710
1704
  key: 1,
1711
1705
  class: "d-block text-truncate"
1712
- }, Qn = {
1706
+ }, Jn = {
1713
1707
  key: 2,
1714
1708
  class: "text-muted d-block"
1715
- }, $n = {
1709
+ }, Yn = {
1716
1710
  key: 0,
1717
- class: "text-muted d-block"
1718
- }, er = {
1719
- key: 1,
1720
1711
  class: "mt-2 d-flex flex-column gap-2"
1721
- }, tr = { class: "form-check mb-0 ms-3" }, nr = ["id", "checked"], rr = ["for"];
1722
- function ir(e, t, r, c, d, f) {
1712
+ }, Xn = { class: "form-check mb-0 ms-3" }, Zn = ["id", "checked"], Qn = ["for"];
1713
+ function $n(e, t, r, c, d, f) {
1723
1714
  let p = S("font-awesome-icon"), h = S("amsom-autocomplete");
1724
- return g(), o("div", Sn, [
1715
+ return g(), o("div", hn, [
1725
1716
  s("div", null, [
1726
1717
  t[7] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " La sollicitation concerne… ", -1),
1727
- s("div", Cn, [(g(!0), o(n, null, b(f.availableModes, (t) => (g(), o("button", {
1718
+ s("div", gn, [(g(!0), o(n, null, b(f.availableModes, (t) => (g(), o("button", {
1728
1719
  key: t.key,
1729
1720
  type: "button",
1730
1721
  class: m(["btn btn-sm", r.cibleMode === t.key ? "btn-primary" : "btn-outline-primary"]),
@@ -1732,19 +1723,19 @@ function ir(e, t, r, c, d, f) {
1732
1723
  }, [u(p, {
1733
1724
  icon: t.icon,
1734
1725
  class: "me-1"
1735
- }, null, 8, ["icon"]), l(" " + C(t.label), 1)], 10, wn))), 128))]),
1736
- s("small", Tn, C(f.currentMode?.aide), 1)
1726
+ }, null, 8, ["icon"]), l(" " + C(t.label), 1)], 10, _n))), 128))]),
1727
+ s("small", vn, C(f.currentMode?.aide), 1)
1737
1728
  ]),
1738
- r.cibleMode === "contrat" ? (g(), o(n, { key: 0 }, [r.afficheCaseContratReclamant ? (g(), o("div", En, [s("input", {
1729
+ r.cibleMode === "contrat" ? (g(), o(n, { key: 0 }, [r.afficheCaseContratReclamant ? (g(), o("div", yn, [s("input", {
1739
1730
  id: `contrat-reclamant-${d.uid}`,
1740
1731
  class: "form-check-input",
1741
1732
  type: "checkbox",
1742
1733
  checked: r.contratReclamant,
1743
1734
  onChange: t[0] ||= (t) => e.$emit("toggle-contrat-reclamant", t.target.checked)
1744
- }, null, 40, Dn), s("label", {
1735
+ }, null, 40, bn), s("label", {
1745
1736
  class: "form-check-label fs-7",
1746
1737
  for: `contrat-reclamant-${d.uid}`
1747
- }, " Contrat du réclamant ", 8, On)])) : a("", !0), r.contratReclamant ? a("", !0) : (g(), o("div", kn, [t[8] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Contrat ciblé ", -1), u(h, {
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, {
1748
1739
  modelValue: f.selectedContrat,
1749
1740
  "onUpdate:modelValue": t[1] ||= (e) => f.selectedContrat = e,
1750
1741
  items: d.contratsTrouves,
@@ -1758,11 +1749,15 @@ function ir(e, t, r, c, d, f) {
1758
1749
  "debounce-delay": 0,
1759
1750
  onSearch: f.rechercherPlusTard
1760
1751
  }, {
1761
- options: E((e) => [s("div", An, [s("div", jn, C(e?.libelle ?? `Contrat ${e?.idContrat}`), 1), s("small", Mn, [
1762
- l(C(e?.typeContrat) + "/" + C(e?.idContrat) + " ", 1),
1763
- e?.nbModules > 1 ? (g(), o("span", Nn, " — " + C(e.nbModules) + " modules", 1)) : a("", !0),
1764
- e?.estSorti ? (g(), o("span", Pn, " — sorti")) : a("", !0)
1765
- ])])]),
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
+ ])]),
1766
1761
  _: 1
1767
1762
  }, 8, [
1768
1763
  "modelValue",
@@ -1773,8 +1768,21 @@ function ir(e, t, r, c, d, f) {
1773
1768
  "get-input-libelle",
1774
1769
  "onSearch"
1775
1770
  ])]))], 64)) : a("", !0),
1776
- r.cibleMode === "patrimoine" ? (g(), o(n, { key: 1 }, [
1777
- s("div", null, [t[9] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Commune", -1), u(h, {
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, {
1778
1786
  modelValue: f.selectedCommune,
1779
1787
  "onUpdate:modelValue": t[2] ||= (e) => f.selectedCommune = e,
1780
1788
  items: c.data.cache.communes || [],
@@ -1791,7 +1799,7 @@ function ir(e, t, r, c, d, f) {
1791
1799
  "get-input-libelle",
1792
1800
  "filtering-function"
1793
1801
  ])]),
1794
- s("div", null, [t[10] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Adresse", -1), u(h, {
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, {
1795
1803
  modelValue: f.selectedAdresse,
1796
1804
  "onUpdate:modelValue": t[3] ||= (e) => f.selectedAdresse = e,
1797
1805
  items: f.adresses,
@@ -1803,7 +1811,7 @@ function ir(e, t, r, c, d, f) {
1803
1811
  "input-size": "sm",
1804
1812
  "hide-choices": ""
1805
1813
  }, {
1806
- options: E((e) => [s("div", Fn, [s("div", In, C(e?.entree), 1), s("small", Ln, C(e?.commune) + " — Programme " + C(e?.codeProgramme), 1)])]),
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)])]),
1807
1815
  _: 1
1808
1816
  }, 8, [
1809
1817
  "modelValue",
@@ -1813,7 +1821,7 @@ function ir(e, t, r, c, d, f) {
1813
1821
  "filtering-function",
1814
1822
  "disabled"
1815
1823
  ])]),
1816
- s("div", null, [t[11] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Étage", -1), u(h, {
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, {
1817
1825
  modelValue: f.selectedEtage,
1818
1826
  "onUpdate:modelValue": t[4] ||= (e) => f.selectedEtage = e,
1819
1827
  items: f.etages,
@@ -1830,26 +1838,24 @@ function ir(e, t, r, c, d, f) {
1830
1838
  "get-input-libelle",
1831
1839
  "disabled"
1832
1840
  ])])
1833
- ], 64)) : a("", !0),
1834
- r.cibleMode === "contrat" ? (g(), o("div", Rn, [
1835
- s("div", zn, [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", {
1836
1843
  class: "form-control form-control-sm",
1837
1844
  disabled: "",
1838
1845
  value: r.patrimoine.commune ?? "—"
1839
1846
  }, null, 8, Bn)]),
1840
- s("div", Vn, [t[13] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Adresse", -1), s("input", {
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", {
1841
1848
  class: "form-control form-control-sm",
1842
1849
  disabled: "",
1843
1850
  value: r.patrimoine.entree ?? "—"
1844
- }, null, 8, Hn)]),
1845
- s("div", Un, [t[14] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, "Étage", -1), s("input", {
1851
+ }, null, 8, Vn)]),
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", {
1846
1853
  class: "form-control form-control-sm",
1847
1854
  disabled: "",
1848
1855
  value: r.patrimoine.etage ?? "—"
1849
- }, null, 8, Wn)])
1850
- ])) : a("", !0),
1851
- r.cibleMode === "contrat" || r.cibleMode === "patrimoine" ? (g(), o("div", Gn, [
1852
- s("label", Kn, [t[15] ||= l(" Module ", -1), r.cibleMode === "patrimoine" ? (g(), o("span", qn, "(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),
1853
1859
  u(h, {
1854
1860
  modelValue: f.selectedModule,
1855
1861
  "onUpdate:modelValue": t[5] ||= (e) => f.selectedModule = e,
@@ -1870,12 +1876,12 @@ function ir(e, t, r, c, d, f) {
1870
1876
  title: "Autre adresse ou étage du même programme"
1871
1877
  })) : a("", !0),
1872
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),
1873
- s("div", Jn, [f.categorieLibelle(e) ? (g(), o("span", {
1879
+ s("div", Wn, [f.categorieLibelle(e) ? (g(), o("span", {
1874
1880
  key: 0,
1875
1881
  class: "badge bg-info",
1876
1882
  title: e?.categorieModule
1877
- }, [u(p, { icon: f.getCategorieModuleIcon(e?.idCategorieModule, e?.estCollectif) }, null, 8, ["icon"])], 8, Yn)) : a("", !0), s("small", Xn, "N° " + C(e?.idModule), 1)]),
1878
- e?._autreLibelle ? (g(), o("small", Zn, C(e._autreLibelle), 1)) : e?.etage == null ? a("", !0) : (g(), o("small", Qn, " Étage " + C(e.etage), 1))
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))
1879
1885
  ], 2)]),
1880
1886
  _: 1
1881
1887
  }, 8, [
@@ -1886,30 +1892,29 @@ function ir(e, t, r, c, d, f) {
1886
1892
  "filtering-function",
1887
1893
  "disabled"
1888
1894
  ]),
1889
- r.cibleMode === "patrimoine" && !r.patrimoine.idModule ? (g(), o("small", $n, " Sans module, la sollicitation cible la partie commune de l’adresse. ")) : a("", !0),
1890
- r.locataireActuelOption ? (g(), o("div", er, [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, {
1891
1896
  icon: "circle-info",
1892
1897
  class: "mt-1"
1893
- }), s("span", null, C(r.locataireActuelOption.hint), 1)], 2), s("div", tr, [s("input", {
1898
+ }), s("span", null, C(r.locataireActuelOption.hint), 1)], 2), s("div", Xn, [s("input", {
1894
1899
  id: `locataire-actuel-${d.uid}`,
1895
1900
  class: "form-check-input",
1896
1901
  type: "checkbox",
1897
1902
  checked: r.locataireActuelOption.reprendre,
1898
1903
  onChange: t[6] ||= (t) => e.$emit("toggle-reprendre-locataire-actuel", t.target.checked)
1899
- }, null, 40, nr), s("label", {
1904
+ }, null, 40, Zn), s("label", {
1900
1905
  class: "form-check-label fs-7",
1901
1906
  for: `locataire-actuel-${d.uid}`
1902
- }, " Rattacher au locataire actuel du module ", 8, rr)])])) : a("", !0)
1903
- ])) : a("", !0)
1907
+ }, " Rattacher au locataire actuel du module ", 8, Qn)])])) : a("", !0)
1908
+ ])) : a("", !0)])) : a("", !0)
1904
1909
  ]);
1905
1910
  }
1906
1911
  //#endregion
1907
1912
  //#region src/components/EtapeCibleBlock.vue
1908
- var ar = {
1913
+ var er = {
1909
1914
  name: "EtapeCibleBlock",
1910
1915
  components: {
1911
1916
  AmsomOverlay: t,
1912
- CiblePickerBlock: /* @__PURE__ */ F(xn, [["render", ir]])
1917
+ CiblePickerBlock: /* @__PURE__ */ F(mn, [["render", $n]])
1913
1918
  },
1914
1919
  setup() {
1915
1920
  return {
@@ -1957,6 +1962,7 @@ var ar = {
1957
1962
  reclamantType: this.reclamantType,
1958
1963
  contratReclamant: e.contratReclamant,
1959
1964
  contratCible: e.contratCible,
1965
+ modulePrecis: e.modulePrecis,
1960
1966
  afficheCaseContratReclamant: this.draft.reclamantEstContrat,
1961
1967
  locataireActuelOption: this.locataireActuelOption(e)
1962
1968
  };
@@ -2014,32 +2020,32 @@ var ar = {
2014
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));
2015
2021
  }
2016
2022
  }
2017
- }, or = { class: "d-flex flex-column gap-3" }, sr = {
2023
+ }, tr = { class: "d-flex flex-column gap-3" }, nr = {
2018
2024
  key: 0,
2019
2025
  class: "alert alert-light border py-2 px-3 mb-0 d-flex align-items-center gap-2"
2020
- }, cr = { class: "fs-7" }, lr = {
2026
+ }, rr = { class: "fs-7" }, ir = {
2021
2027
  key: 1,
2022
2028
  class: "d-flex flex-column gap-1"
2023
- }, ur = {
2029
+ }, ar = {
2024
2030
  key: 0,
2025
2031
  class: "text-muted me-1"
2026
- }, dr = { class: "d-flex align-items-center gap-2" }, fr = { class: "fw-medium fs-7" }, pr = { class: "form-check form-switch mb-0" }, mr = [
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 = [
2027
2033
  "id",
2028
2034
  "checked",
2029
2035
  "onChange"
2030
- ], hr = ["for"], gr = {
2036
+ ], ur = ["for"], dr = {
2031
2037
  key: 0,
2032
2038
  class: "mt-2"
2033
2039
  };
2034
- function _r(e, t, r, c, d, f) {
2040
+ function fr(e, t, r, c, d, f) {
2035
2041
  let m = S("font-awesome-icon"), h = S("cible-picker-block"), _ = S("amsom-overlay");
2036
2042
  return g(), i(_, { loading: c.data.isLoading }, {
2037
- default: E(() => [s("div", or, [
2038
- f.motifLibelle ? (g(), o("div", sr, [u(m, {
2043
+ default: E(() => [s("div", tr, [
2044
+ f.motifLibelle ? (g(), o("div", nr, [u(m, {
2039
2045
  icon: "tag",
2040
2046
  class: "text-primary"
2041
- }), s("span", cr, [t[8] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1), l(C(f.motifLibelle), 1)])])) : a("", !0),
2042
- f.cibleFigee ? (g(), o("div", lr, [(g(!0), o(n, null, b(c.draft.draft.lignes, (e, t) => (g(), o("span", {
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", {
2043
2049
  key: t,
2044
2050
  class: "fs-7"
2045
2051
  }, [
@@ -2047,7 +2053,7 @@ function _r(e, t, r, c, d, f) {
2047
2053
  icon: "location-dot",
2048
2054
  class: "text-primary me-2"
2049
2055
  }),
2050
- f.lignesAssociees.length ? (g(), o("span", ur, C(t === 0 ? f.motifLibelle : e.libelle) + " : ", 1)) : a("", !0),
2056
+ f.lignesAssociees.length ? (g(), o("span", ar, C(t === 0 ? f.motifLibelle : e.libelle) + " : ", 1)) : a("", !0),
2051
2057
  l(" " + C(c.draft.cibleResume(e)), 1)
2052
2058
  ]))), 128))])) : (g(), i(h, p({ key: 2 }, f.pickerProps(f.lignePrincipale), {
2053
2059
  onChangeMode: t[0] ||= (e) => f.onChangeMode(e),
@@ -2057,25 +2063,26 @@ function _r(e, t, r, c, d, f) {
2057
2063
  onSelectModule: t[4] ||= (e) => f.onSelectModule(e),
2058
2064
  onSelectContrat: t[5] ||= (e) => f.onSelectContrat(e),
2059
2065
  onToggleContratReclamant: t[6] ||= (e) => f.onToggleContratReclamant(e),
2060
- 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)
2061
2068
  }), null, 16)),
2062
- !f.cibleFigee && f.lignesAssociees.length && f.reclamantType !== "D" ? (g(), o(n, { key: 3 }, [t[9] ||= s("div", { class: "d-flex align-items-center gap-2 text-muted fs-7" }, [
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" }, [
2063
2070
  s("hr", { class: "flex-grow-1 my-0" }),
2064
2071
  s("span", null, "Cible des autres motifs"),
2065
2072
  s("hr", { class: "flex-grow-1 my-0" })
2066
2073
  ], -1), (g(!0), o(n, null, b(f.lignesAssociees, (e, t) => (g(), o("div", {
2067
2074
  key: e.idMotif,
2068
2075
  class: "border rounded p-2"
2069
- }, [s("div", dr, [s("span", fr, C(e.libelle), 1), s("div", pr, [s("input", {
2076
+ }, [s("div", or, [s("span", sr, C(e.libelle), 1), s("div", cr, [s("input", {
2070
2077
  id: `memecible-${e.idMotif}`,
2071
2078
  class: "form-check-input",
2072
2079
  type: "checkbox",
2073
2080
  checked: !e.patrimoine,
2074
2081
  onChange: (e) => c.draft.toggleCibleOverride(t + 1)
2075
- }, null, 40, mr), s("label", {
2082
+ }, null, 40, lr), s("label", {
2076
2083
  class: "form-check-label fs-7",
2077
2084
  for: `memecible-${e.idMotif}`
2078
- }, " Même cible que la ligne principale ", 8, hr)])]), e.patrimoine ? (g(), o("div", gr, [u(h, p({ ref_for: !0 }, f.pickerProps(e), {
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), {
2079
2086
  onChangeMode: (e) => f.onChangeMode(e, t + 1),
2080
2087
  onSelectCommune: (e) => f.onSelectCommune(e, t + 1),
2081
2088
  onSelectAdresse: (e) => f.onSelectAdresse(e, t + 1),
@@ -2083,7 +2090,8 @@ function _r(e, t, r, c, d, f) {
2083
2090
  onSelectModule: (e) => f.onSelectModule(e, t + 1),
2084
2091
  onSelectContrat: (e) => f.onSelectContrat(e, t + 1),
2085
2092
  onToggleContratReclamant: (e) => f.onToggleContratReclamant(e, t + 1),
2086
- onToggleReprendreLocataireActuel: (e) => f.onToggleReprendre(e, t + 1)
2093
+ onToggleReprendreLocataireActuel: (e) => f.onToggleReprendre(e, t + 1),
2094
+ onSetModulePrecis: (e) => c.draft.setModulePrecis(t + 1, e)
2087
2095
  }), null, 16, [
2088
2096
  "onChangeMode",
2089
2097
  "onSelectCommune",
@@ -2092,13 +2100,14 @@ function _r(e, t, r, c, d, f) {
2092
2100
  "onSelectModule",
2093
2101
  "onSelectContrat",
2094
2102
  "onToggleContratReclamant",
2095
- "onToggleReprendreLocataireActuel"
2103
+ "onToggleReprendreLocataireActuel",
2104
+ "onSetModulePrecis"
2096
2105
  ])])) : a("", !0)]))), 128))], 64)) : a("", !0)
2097
2106
  ])]),
2098
2107
  _: 1
2099
2108
  }, 8, ["loading"]);
2100
2109
  }
2101
- var vr = /*#__PURE__*/ F(ar, [["render", _r]]), yr = {
2110
+ var pr = /*#__PURE__*/ F(er, [["render", fr]]), mr = {
2102
2111
  name: "LigneDocumentBlock",
2103
2112
  components: { AmsomUploadFile: se },
2104
2113
  props: {
@@ -2117,7 +2126,7 @@ var vr = /*#__PURE__*/ F(ar, [["render", _r]]), yr = {
2117
2126
  },
2118
2127
  emits: ["update"]
2119
2128
  };
2120
- function br(e, t, n, r, i, a) {
2129
+ function hr(e, t, n, r, i, a) {
2121
2130
  let c = S("amsom-upload-file");
2122
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, {
2123
2132
  "model-value": n.fichier,
@@ -2133,23 +2142,23 @@ function br(e, t, n, r, i, a) {
2133
2142
  "read-only"
2134
2143
  ])]);
2135
2144
  }
2136
- var xr = /*#__PURE__*/ F(yr, [["render", br]]);
2145
+ var gr = /*#__PURE__*/ F(mr, [["render", hr]]);
2137
2146
  //#endregion
2138
2147
  //#region src/utils/date.js
2139
- function Sr(e) {
2148
+ function _r(e) {
2140
2149
  return e == null ? "" : (/* @__PURE__ */ new Date(e * 1e3)).toISOString().slice(0, 10);
2141
2150
  }
2142
- function Cr(e) {
2151
+ function vr(e) {
2143
2152
  return e ? Math.floor(new Date(e).getTime() / 1e3) : null;
2144
2153
  }
2145
2154
  //#endregion
2146
2155
  //#region src/components/LigneDetailBlock.vue
2147
- var wr = 4e3, Tr = {
2156
+ var yr = 4e3, br = {
2148
2157
  name: "LigneDetailBlock",
2149
2158
  components: {
2150
2159
  AmsomAutocomplete: O,
2151
2160
  AmsomTextarea: oe,
2152
- LigneDocumentBlock: xr
2161
+ LigneDocumentBlock: gr
2153
2162
  },
2154
2163
  props: { index: {
2155
2164
  type: Number,
@@ -2162,7 +2171,7 @@ var wr = 4e3, Tr = {
2162
2171
  };
2163
2172
  },
2164
2173
  computed: {
2165
- descriptionMaxLength: () => wr,
2174
+ descriptionMaxLength: () => yr,
2166
2175
  isPrincipale() {
2167
2176
  return this.index === 0;
2168
2177
  },
@@ -2180,8 +2189,8 @@ var wr = 4e3, Tr = {
2180
2189
  }
2181
2190
  },
2182
2191
  methods: {
2183
- timestampToDateInput: Sr,
2184
- dateInputToTimestamp: Cr,
2192
+ timestampToDateInput: _r,
2193
+ dateInputToTimestamp: vr,
2185
2194
  responsableLibelle(e) {
2186
2195
  let t = e && typeof e != "object" ? this.collaborateurs.find((t) => String(t.id) === String(e)) : e;
2187
2196
  return t ? `${t.prenom} ${t.nom}` : "";
@@ -2191,53 +2200,53 @@ var wr = 4e3, Tr = {
2191
2200
  return n ? t.filter((e) => (X(`${e.prenom} ${e.nom} ${e.service}`) ?? "").includes(n)) : t;
2192
2201
  }
2193
2202
  }
2194
- }, Er = { class: "d-flex flex-column gap-2" }, Dr = { class: "d-flex align-items-center gap-2 mb-1" }, Or = { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-0" }, kr = {
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 = {
2195
2204
  key: 0,
2196
2205
  class: "ms-1 text-danger"
2197
- }, Ar = {
2206
+ }, Tr = {
2198
2207
  key: 0,
2199
2208
  class: "form-check form-switch mb-0"
2200
- }, jr = [
2209
+ }, Er = [
2201
2210
  "id",
2202
2211
  "checked",
2203
2212
  "disabled"
2204
- ], Mr = ["for"], Nr = {
2213
+ ], Dr = ["for"], Or = {
2205
2214
  key: 1,
2206
2215
  class: "text-muted d-block",
2207
2216
  style: { "white-space": "pre-line" }
2208
- }, Pr = { class: "row g-3" }, Fr = { class: "col-6" }, Ir = { class: "d-flex align-items-center gap-2 mb-1" }, Lr = {
2217
+ }, kr = { class: "row g-3" }, Ar = { class: "col-6" }, jr = { class: "d-flex align-items-center gap-2 mb-1" }, Mr = {
2209
2218
  key: 0,
2210
2219
  class: "form-check form-switch mb-0"
2211
- }, Rr = [
2220
+ }, Nr = [
2212
2221
  "id",
2213
2222
  "checked",
2214
2223
  "disabled"
2215
- ], zr = ["for"], Br = ["value"], Vr = {
2224
+ ], Pr = ["for"], Fr = ["value"], Ir = {
2216
2225
  key: 1,
2217
2226
  class: "text-muted d-block"
2218
- }, Hr = {
2227
+ }, Lr = {
2219
2228
  key: 0,
2220
2229
  class: "text-muted d-block"
2221
- }, Ur = { class: "min-w-0" }, Wr = { class: "fw-medium text-truncate" }, Gr = {
2230
+ }, Rr = { class: "min-w-0" }, zr = { class: "fw-medium text-truncate" }, Br = {
2222
2231
  key: 0,
2223
2232
  class: "text-muted d-block"
2224
- }, Kr = {
2233
+ }, Vr = {
2225
2234
  key: 2,
2226
2235
  class: "text-muted"
2227
- }, qr = { class: "col-12 col-md-6" };
2228
- function Jr(e, t, n, r, c, d) {
2236
+ }, Hr = { class: "col-12 col-md-6" };
2237
+ function Ur(e, t, n, r, c, d) {
2229
2238
  let f = S("amsom-textarea"), p = S("amsom-autocomplete"), m = S("ligne-document-block");
2230
- return g(), o("div", Er, [s("div", null, [s("div", Dr, [s("label", Or, [t[6] ||= l(" Description", -1), d.isPrincipale ? (g(), o("span", kr, "*")) : a("", !0)]), d.isPrincipale ? a("", !0) : (g(), o("div", Ar, [s("input", {
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", {
2231
2240
  id: `memedetail-${d.ligne.idMotif}`,
2232
2241
  class: "form-check-input",
2233
2242
  type: "checkbox",
2234
2243
  checked: d.ligne.description == null,
2235
2244
  disabled: r.draft.isReadonly("description"),
2236
2245
  onChange: t[0] ||= (e) => r.draft.toggleDescriptionOverride(n.index)
2237
- }, null, 40, jr), s("label", {
2246
+ }, null, 40, Er), s("label", {
2238
2247
  class: "form-check-label fs-7",
2239
2248
  for: `memedetail-${d.ligne.idMotif}`
2240
- }, " Même description ", 8, Mr)]))]), !r.draft.isReadonly("description") && (d.isPrincipale || d.ligne.description != null) ? (g(), i(f, {
2249
+ }, " Même description ", 8, Dr)]))]), !r.draft.isReadonly("description") && (d.isPrincipale || d.ligne.description != null) ? (g(), i(f, {
2241
2250
  key: 0,
2242
2251
  "model-value": d.ligne.description,
2243
2252
  "input-size": "sm",
@@ -2250,25 +2259,25 @@ function Jr(e, t, n, r, c, d) {
2250
2259
  "rows",
2251
2260
  "maxlength",
2252
2261
  "placeholder"
2253
- ])) : (g(), o("small", Nr, C((d.ligne.description ?? d.lignePrincipale.description) || "—"), 1))]), s("div", Pr, [s("div", Fr, [s("div", null, [s("div", Ir, [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", Lr, [s("input", {
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", {
2254
2263
  id: `memedate-${d.ligne.idMotif}`,
2255
2264
  class: "form-check-input",
2256
2265
  type: "checkbox",
2257
2266
  checked: !d.ligne.dateFaitsOverride,
2258
2267
  disabled: r.draft.isReadonly("dateFaits"),
2259
2268
  onChange: t[2] ||= (e) => r.draft.toggleDateFaitsOverride(n.index)
2260
- }, null, 40, Rr), s("label", {
2269
+ }, null, 40, Nr), s("label", {
2261
2270
  class: "form-check-label fs-7",
2262
2271
  for: `memedate-${d.ligne.idMotif}`
2263
- }, " Même date ", 8, zr)]))]), !r.draft.isReadonly("dateFaits") && (d.isPrincipale || d.ligne.dateFaitsOverride) ? (g(), o("input", {
2272
+ }, " Même date ", 8, Pr)]))]), !r.draft.isReadonly("dateFaits") && (d.isPrincipale || d.ligne.dateFaitsOverride) ? (g(), o("input", {
2264
2273
  key: 0,
2265
2274
  value: d.timestampToDateInput(d.ligne.dateFaits),
2266
2275
  type: "date",
2267
2276
  class: "form-control form-control-sm",
2268
2277
  onInput: t[3] ||= (e) => r.draft.setDateFaits(n.index, d.dateInputToTimestamp(e.target.value))
2269
- }, null, 40, Br)) : (g(), o("small", Vr, C(d.timestampToDateInput(d.dateFaits) || "—"), 1))]), s("div", null, [
2278
+ }, null, 40, Fr)) : (g(), o("small", Ir, C(d.timestampToDateInput(d.dateFaits) || "—"), 1))]), s("div", null, [
2270
2279
  t[8] ||= s("label", { class: "form-label fs-7 fw-semibold text-muted text-uppercase mb-1" }, " Responsable ", -1),
2271
- r.draft.isReadonly("responsable") ? (g(), o("small", Hr, C(d.responsableLibelle(d.ligne.responsable) || "Déterminé automatiquement"), 1)) : (g(), i(p, {
2280
+ r.draft.isReadonly("responsable") ? (g(), o("small", Lr, C(d.responsableLibelle(d.ligne.responsable) || "Déterminé automatiquement"), 1)) : (g(), i(p, {
2272
2281
  key: 1,
2273
2282
  "model-value": d.ligne.responsable,
2274
2283
  items: d.collaborateurs,
@@ -2280,7 +2289,7 @@ function Jr(e, t, n, r, c, d) {
2280
2289
  "hide-choices": "",
2281
2290
  "onUpdate:modelValue": t[4] ||= (e) => r.draft.setResponsable(n.index, e ?? null)
2282
2291
  }, {
2283
- options: E((e) => [s("div", Ur, [s("div", Wr, C(e?.prenom) + " " + C(e?.nom), 1), e?.service ? (g(), o("small", Gr, C(e.service), 1)) : a("", !0)])]),
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)])]),
2284
2293
  _: 1
2285
2294
  }, 8, [
2286
2295
  "model-value",
@@ -2289,8 +2298,8 @@ function Jr(e, t, n, r, c, d) {
2289
2298
  "get-input-libelle",
2290
2299
  "filtering-function"
2291
2300
  ])),
2292
- d.isPrincipale && !d.ligne.responsable && !r.draft.isReadonly("responsable") ? (g(), o("small", Kr, " Aucun paramétrage trouvé : le responsable sera déterminé automatiquement. ")) : a("", !0)
2293
- ])]), s("div", qr, [u(m, {
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, {
2294
2303
  index: n.index,
2295
2304
  fichier: d.ligne.fichier,
2296
2305
  readonly: r.draft.isReadonly("fichier"),
@@ -2303,11 +2312,11 @@ function Jr(e, t, n, r, c, d) {
2303
2312
  }
2304
2313
  //#endregion
2305
2314
  //#region src/components/EtapeDetailsBlock.vue
2306
- var Yr = {
2315
+ var Wr = {
2307
2316
  name: "EtapeDetailsBlock",
2308
2317
  components: {
2309
2318
  AmsomOverlay: t,
2310
- LigneDetailBlock: /* @__PURE__ */ F(Tr, [["render", Jr]])
2319
+ LigneDetailBlock: /* @__PURE__ */ F(br, [["render", Ur]])
2311
2320
  },
2312
2321
  setup() {
2313
2322
  return {
@@ -2363,22 +2372,22 @@ var Yr = {
2363
2372
  }
2364
2373
  }
2365
2374
  }
2366
- }, Xr = { class: "d-flex flex-column gap-3" }, Zr = { class: "alert alert-light border py-2 px-3 mb-0 d-flex flex-column gap-1" }, Qr = {
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 = {
2367
2376
  key: 0,
2368
2377
  class: "fs-7"
2369
- }, $r = { class: "fs-7" }, ei = { class: "bg-light rounded px-2 py-1 d-flex flex-column gap-1" }, ti = { class: "fs-7" }, ni = { class: "fs-7" };
2370
- function ri(e, t, r, c, d, f) {
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) {
2371
2380
  let p = S("font-awesome-icon"), m = S("ligne-detail-block"), h = S("amsom-overlay");
2372
2381
  return g(), i(h, { loading: c.data.isLoading && !c.data.cache.collaborateurs }, {
2373
- default: E(() => [s("div", Xr, [
2374
- s("div", Zr, [f.motifLibelle ? (g(), o("span", Qr, [
2382
+ default: E(() => [s("div", Gr, [
2383
+ s("div", Kr, [f.motifLibelle ? (g(), o("span", qr, [
2375
2384
  u(p, {
2376
2385
  icon: "tag",
2377
2386
  class: "text-primary me-2"
2378
2387
  }),
2379
2388
  t[0] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1),
2380
2389
  l(C(f.motifLibelle), 1)
2381
- ])) : a("", !0), s("span", $r, [
2390
+ ])) : a("", !0), s("span", Jr, [
2382
2391
  u(p, {
2383
2392
  icon: "location-dot",
2384
2393
  class: "text-primary me-2"
@@ -2394,14 +2403,14 @@ function ri(e, t, r, c, d, f) {
2394
2403
  ], -1), (g(!0), o(n, null, b(f.lignesAssociees, (e, n) => (g(), o("div", {
2395
2404
  key: e.idMotif,
2396
2405
  class: "border rounded p-2 d-flex flex-column gap-2"
2397
- }, [s("div", ei, [s("span", ti, [
2406
+ }, [s("div", Yr, [s("span", Xr, [
2398
2407
  u(p, {
2399
2408
  icon: "tag",
2400
2409
  class: "text-primary me-2"
2401
2410
  }),
2402
2411
  t[2] ||= s("span", { class: "text-muted text-uppercase fw-semibold me-1" }, "Motif", -1),
2403
2412
  l(" " + C(e.libelle), 1)
2404
- ]), s("span", ni, [
2413
+ ]), s("span", Zr, [
2405
2414
  u(p, {
2406
2415
  icon: "location-dot",
2407
2416
  class: "text-primary me-2"
@@ -2415,15 +2424,15 @@ function ri(e, t, r, c, d, f) {
2415
2424
  }
2416
2425
  //#endregion
2417
2426
  //#region src/components/StepperBlock.vue
2418
- var ii = {
2427
+ var $r = {
2419
2428
  name: "StepperBlock",
2420
2429
  components: {
2421
2430
  AmsomHorizontalStepper: re,
2422
2431
  AmsomOverlay: t,
2423
- EtapeReclamantBlock: It,
2424
- EtapeCategorieBlock: gn,
2425
- EtapeCibleBlock: vr,
2426
- EtapeDetailsBlock: /* @__PURE__ */ F(Yr, [["render", ri]])
2432
+ EtapeReclamantBlock: kt,
2433
+ EtapeCategorieBlock: ln,
2434
+ EtapeCibleBlock: pr,
2435
+ EtapeDetailsBlock: /* @__PURE__ */ F(Wr, [["render", Qr]])
2427
2436
  },
2428
2437
  props: {
2429
2438
  step: {
@@ -2535,25 +2544,25 @@ var ii = {
2535
2544
  }));
2536
2545
  }
2537
2546
  }
2538
- }, ai = { class: "d-flex flex-column gap-3" }, oi = {
2547
+ }, ei = { class: "d-flex flex-column gap-3" }, ti = {
2539
2548
  key: 0,
2540
2549
  class: "w-100 fs-6 fw-medium my-3 alert alert-info",
2541
2550
  style: { "white-space": "pre-line" }
2542
- }, si = { style: { "min-height": "260px" } }, ci = { class: "d-flex justify-content-between" }, li = { key: 1 }, ui = ["disabled"], di = ["disabled"];
2543
- function fi(e, t, n, r, f, p) {
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) {
2544
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");
2545
2554
  return g(), i(w, { loading: n.creating }, {
2546
- default: E(() => [s("div", ai, [
2555
+ default: E(() => [s("div", ei, [
2547
2556
  u(m, {
2548
2557
  steps: p.stepperSteps,
2549
2558
  size: "md",
2550
2559
  onStepClick: p.onStepClick
2551
2560
  }, null, 8, ["steps", "onStepClick"]),
2552
- p.aideMotif ? (g(), o("div", oi, [u(_, {
2561
+ p.aideMotif ? (g(), o("div", ti, [u(_, {
2553
2562
  icon: "circle-info",
2554
2563
  class: "text-info-emphasis me-2"
2555
2564
  }), s("span", null, C(p.aideMotif), 1)])) : a("", !0),
2556
- s("div", si, [p.currentKey === "reclamant" ? (g(), i(v, {
2565
+ s("div", ni, [p.currentKey === "reclamant" ? (g(), i(v, {
2557
2566
  key: 0,
2558
2567
  premiere: n.step === 1
2559
2568
  }, c({ _: 2 }, [e.$slots.reclamant ? {
@@ -2564,14 +2573,14 @@ function fi(e, t, n, r, f, p) {
2564
2573
  key: 1,
2565
2574
  premiere: n.step === 1
2566
2575
  }, null, 8, ["premiere"])) : p.currentKey === "cible" ? (g(), i(b, { key: 2 })) : p.currentKey === "details" ? (g(), i(ee, { key: 3 })) : a("", !0)]),
2567
- s("div", ci, [n.step > 1 ? (g(), o("button", {
2576
+ s("div", ri, [n.step > 1 ? (g(), o("button", {
2568
2577
  key: 0,
2569
2578
  class: "btn btn-sm btn-outline-secondary",
2570
2579
  onClick: t[0] ||= (...e) => p.goPrevious && p.goPrevious(...e)
2571
2580
  }, [u(_, {
2572
2581
  icon: "chevron-left",
2573
2582
  class: "me-1"
2574
- }), t[3] ||= l(" Précédent ", -1)])) : (g(), o("span", li)), n.step < p.steps.length ? (g(), o("button", {
2583
+ }), t[3] ||= l(" Précédent ", -1)])) : (g(), o("span", ii)), n.step < p.steps.length ? (g(), o("button", {
2575
2584
  key: 2,
2576
2585
  class: "btn btn-sm btn-primary",
2577
2586
  disabled: !p.canGoNext,
@@ -2579,7 +2588,7 @@ function fi(e, t, n, r, f, p) {
2579
2588
  }, [t[4] ||= l(" Suivant ", -1), u(_, {
2580
2589
  icon: "chevron-right",
2581
2590
  class: "ms-1"
2582
- })], 8, ui)) : (g(), o("button", {
2591
+ })], 8, ai)) : (g(), o("button", {
2583
2592
  key: 3,
2584
2593
  class: "btn btn-sm btn-success",
2585
2594
  disabled: !p.canCreer || n.creating,
@@ -2587,22 +2596,20 @@ function fi(e, t, n, r, f, p) {
2587
2596
  }, [u(_, {
2588
2597
  icon: "check",
2589
2598
  class: "me-1"
2590
- }), t[5] ||= l(" Créer la sollicitation ", -1)], 8, di))])
2599
+ }), t[5] ||= l(" Créer la sollicitation ", -1)], 8, oi))])
2591
2600
  ])]),
2592
2601
  _: 3
2593
2602
  }, 8, ["loading"]);
2594
2603
  }
2595
- var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n, baseUrl: r } = {}) => Fe("/v2/cresol/creer_sollicitation", e, {
2604
+ var ci = /*#__PURE__*/ F($r, [["render", si]]), li = (e, { signal: t, baseUrl: n } = {}) => Pe("/v2/cresol/creer_sollicitation", e, {
2596
2605
  signal: t,
2597
- token: n,
2598
- baseUrl: r
2599
- }), hi = ({ idSollicitation: e, pj: t }, { signal: n, token: r, baseUrl: i } = {}) => Fe("/v2/cresol/upload_sollicitation_ged", {
2606
+ baseUrl: n
2607
+ }), ui = ({ idSollicitation: e, pj: t }, { signal: n, baseUrl: r } = {}) => Pe("/v2/cresol/upload_sollicitation_ged", {
2600
2608
  idSollicitation: e,
2601
2609
  pj: t
2602
2610
  }, {
2603
2611
  signal: n,
2604
- token: r,
2605
- baseUrl: i
2612
+ baseUrl: r
2606
2613
  }), Z = {
2607
2614
  modelValue: {
2608
2615
  type: Object,
@@ -2650,12 +2657,8 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2650
2657
  baseUrl: {
2651
2658
  type: String,
2652
2659
  default: null
2653
- },
2654
- token: {
2655
- type: String,
2656
- default: null
2657
2660
  }
2658
- }, gi = Object.keys(Z), Q = [
2661
+ }, di = Object.keys(Z), Q = [
2659
2662
  "update:modelValue",
2660
2663
  "reclamantChange",
2661
2664
  "motifChange",
@@ -2664,19 +2667,16 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2664
2667
  "created",
2665
2668
  "createError",
2666
2669
  "error"
2667
- ], _i = {
2670
+ ], fi = {
2668
2671
  name: "CreerSollicitationForm",
2669
2672
  components: {
2670
2673
  AsideBlock: De,
2671
- StepperBlock: pi
2674
+ StepperBlock: ci
2672
2675
  },
2673
2676
  props: { ...Z },
2674
2677
  emits: [...Q],
2675
2678
  setup(e, { emit: t }) {
2676
- let n = (e) => t("error", e), i = {
2677
- token: w(e, "token"),
2678
- baseUrl: w(e, "baseUrl")
2679
- }, a = et($e({
2679
+ let n = (e) => t("error", e), i = { baseUrl: w(e, "baseUrl") }, a = $e(Qe({
2680
2680
  onError: n,
2681
2681
  ...i
2682
2682
  })), o = y(null), s = r(() => o.value ?? e.modules ?? []), c = be(ye({
@@ -2685,7 +2685,7 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2685
2685
  idModulePrefere: w(e, "idModule"),
2686
2686
  readonly: w(e, "readonly")
2687
2687
  }));
2688
- return Rt(v({
2688
+ return jt(v({
2689
2689
  nomenclatureFilter: w(e, "nomenclatureFilter"),
2690
2690
  reclamantMode: w(e, "reclamantMode"),
2691
2691
  modulesReclamant: s,
@@ -2705,10 +2705,7 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2705
2705
  },
2706
2706
  computed: {
2707
2707
  requestOptions() {
2708
- return {
2709
- token: this.token,
2710
- baseUrl: this.baseUrl
2711
- };
2708
+ return { baseUrl: this.baseUrl };
2712
2709
  },
2713
2710
  motifChoisi() {
2714
2711
  let [e, ...t] = this.draft.draft.lignes;
@@ -2752,7 +2749,7 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2752
2749
  if (!await this.autoriserCreation(e)) return;
2753
2750
  let t;
2754
2751
  try {
2755
- t = await mi(e, this.requestOptions) ?? [];
2752
+ t = await li(e, this.requestOptions) ?? [];
2756
2753
  } catch (t) {
2757
2754
  if (B(t)) return;
2758
2755
  let n = z(t);
@@ -2805,7 +2802,7 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2805
2802
  message: t
2806
2803
  };
2807
2804
  };
2808
- return a?.id ? hi({
2805
+ return a?.id ? ui({
2809
2806
  idSollicitation: a.id,
2810
2807
  pj: {
2811
2808
  name: n.name,
@@ -2821,13 +2818,13 @@ var pi = /*#__PURE__*/ F(ii, [["render", fi]]), mi = (e, { signal: t, token: n,
2821
2818
  return Promise.all(n);
2822
2819
  }
2823
2820
  }
2824
- }, vi = { class: "row g-3" }, yi = {
2821
+ }, pi = { class: "row g-3" }, mi = {
2825
2822
  key: 0,
2826
2823
  class: "col-12 col-lg-4"
2827
2824
  };
2828
- function bi(e, t, n, r, i, l) {
2825
+ function hi(e, t, n, r, i, l) {
2829
2826
  let f = S("aside-block"), p = S("stepper-block");
2830
- return g(), o("div", vi, [e.aside ? (g(), o("div", yi, [x(e.$slots, "aside", {}, () => [u(f, { "nb-similaires": e.nbSimilaires }, c({ _: 2 }, [e.$slots["aside-similaires"] ? {
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"] ? {
2831
2828
  name: "similaires",
2832
2829
  fn: E((t) => [x(e.$slots, "aside-similaires", h(d(t)))]),
2833
2830
  key: "0"
@@ -2851,7 +2848,7 @@ function bi(e, t, n, r, i, l) {
2851
2848
  "onSubmit"
2852
2849
  ])], 2)]);
2853
2850
  }
2854
- var $ = /*#__PURE__*/ F(_i, [["render", bi]]), xi = {
2851
+ var $ = /*#__PURE__*/ F(fi, [["render", hi]]), gi = {
2855
2852
  name: "CreerSollicitationModal",
2856
2853
  components: {
2857
2854
  AmsomModal: e,
@@ -2871,7 +2868,7 @@ var $ = /*#__PURE__*/ F(_i, [["render", bi]]), xi = {
2871
2868
  emits: [...Q, "close"],
2872
2869
  computed: {
2873
2870
  formProps() {
2874
- return Object.fromEntries(gi.map((e) => [e, this[e]]));
2871
+ return Object.fromEntries(di.map((e) => [e, this[e]]));
2875
2872
  },
2876
2873
  formListeners() {
2877
2874
  return Object.fromEntries(Q.filter((e) => e !== "created").map((e) => [e, (...t) => this.$emit(e, ...t)]));
@@ -2880,24 +2877,24 @@ var $ = /*#__PURE__*/ F(_i, [["render", bi]]), xi = {
2880
2877
  methods: { onCreated(...e) {
2881
2878
  this.$emit("created", ...e), this.closeOnCreated && this.$emit("close");
2882
2879
  } }
2883
- }, Si = { class: "fw-medium fs-5" };
2884
- function Ci(e, t, n, r, a, o) {
2880
+ }, _i = { class: "fw-medium fs-5" };
2881
+ function vi(e, t, n, r, a, o) {
2885
2882
  let l = S("creer-sollicitation-form"), f = S("amsom-modal");
2886
2883
  return g(), i(f, {
2887
2884
  "close-option": "",
2888
2885
  size: "xl",
2889
2886
  onClose: t[0] ||= (t) => e.$emit("close")
2890
2887
  }, {
2891
- default: E(() => [s("span", Si, 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) => ({
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) => ({
2892
2889
  name: n,
2893
2890
  fn: E((t) => [x(e.$slots, n, h(d(t ?? {})))])
2894
2891
  }))]), 1040, ["onCreated"])]),
2895
2892
  _: 3
2896
2893
  });
2897
2894
  }
2898
- var wi = /*#__PURE__*/ F(xi, [["render", Ci]]), Ti = {
2899
- CreerSollicitationModal: wi,
2895
+ var yi = /*#__PURE__*/ F(gi, [["render", vi]]), bi = {
2896
+ CreerSollicitationModal: yi,
2900
2897
  CreerSollicitationForm: $
2901
2898
  };
2902
2899
  //#endregion
2903
- export { $ as CreerSollicitationForm, wi as CreerSollicitationModal, le as DEFAULT_PROVENANCE_CONTACT, ce as PROVENANCES_CONTACT, M as READONLY_FIELDS, ke as configureCresol, Ti as default, N as getDefaultDraft, j as getDefaultLigne, A as getDefaultPatrimoine, Qe as resetCresolCache };
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 };