@amsom-habitat/ui 2.20.7 → 2.20.8

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.
Files changed (3) hide show
  1. package/dist/ui.js +301 -296
  2. package/dist/ui.umd.cjs +1 -1
  3. package/package.json +4 -3
package/dist/ui.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { FontAwesomeIcon as D } from "@fortawesome/vue-fontawesome";
2
2
  import { library as M } from "@fortawesome/fontawesome-svg-core";
3
- import { faTimes as Q, faCheck as W, faCamera as X, faTrash as R, faArrowRight as $, faArrowLeft as ee, faEye as q, faEyeSlash as K, faArrowDownWideShort as te, faArrowUpShortWide as se, faPlus as le, faAnglesLeft as ie, faAngleLeft as ne, faAngleRight as oe, faAnglesRight as ae, faCloudArrowDown as re, faTriangleExclamation as de, faCloudArrowUp as ue, faPaperclip as ce, faFileCirclePlus as me } from "@fortawesome/free-solid-svg-icons";
4
- import { resolveComponent as x, createBlock as k, openBlock as n, Teleport as fe, createElementVNode as o, createElementBlock as r, createCommentVNode as g, normalizeStyle as _, normalizeClass as f, withModifiers as w, renderSlot as I, toDisplayString as p, Fragment as y, renderList as v, createTextVNode as A, useCssVars as ge, createVNode as b, withCtx as z, withDirectives as N, vModelCheckbox as E, vShow as he } from "vue";
3
+ import { faTimes as Q, faCheck as W, faCamera as X, faTrash as R, faArrowRight as $, faArrowLeft as ee, faEye as q, faEyeSlash as K, faArrowDownWideShort as te, faArrowUpShortWide as se, faPlus as le, faAnglesLeft as ie, faAngleLeft as ne, faAngleRight as oe, faAnglesRight as ae, faCloudArrowDown as re, faTriangleExclamation as de, faCloudArrowUp as ce, faPaperclip as ue, faFileCirclePlus as me } from "@fortawesome/free-solid-svg-icons";
4
+ import { resolveComponent as x, createBlock as k, openBlock as n, Teleport as fe, createElementVNode as o, createElementBlock as r, createCommentVNode as h, normalizeStyle as _, normalizeClass as f, withModifiers as w, renderSlot as I, toDisplayString as p, Fragment as y, renderList as C, createTextVNode as A, useCssVars as he, createVNode as b, withCtx as z, withDirectives as N, vModelCheckbox as E, vShow as ge } from "vue";
5
5
  import { isImage as j, resizeImage as G, handleFile as J, base64ToBlob as pe, openFileBlob as ye, downloadBlob as be, imageToPDF as Se, openFileBase64 as xe, isPdf as ke } from "@amsom-habitat/file-utils";
6
6
  import { VueDraggableNext as we } from "vue-draggable-next";
7
7
  import P from "moment-timezone";
8
8
  import { unixToDateString as Ce } from "@amsom-habitat/date-utils";
9
- import ve from "pdf-merger-js";
10
- const C = (s, e) => {
9
+ import _e from "pdf-merger-js";
10
+ const ve = (s, e) => {
11
11
  const t = s.__vccOpts || s;
12
- for (const [c, i] of e)
13
- t[c] = i;
12
+ for (const [u, i] of e)
13
+ t[u] = i;
14
14
  return t;
15
15
  };
16
16
  M.add(Q);
17
- const _e = {
17
+ const Pe = {
18
18
  name: "AmsomModalComponent",
19
19
  components: {
20
20
  FontAwesomeIcon: D
@@ -153,15 +153,15 @@ const _e = {
153
153
  s.key === "Escape" && this.$options.modalManager.getTopModal() === this.modalId && this.$emit("close");
154
154
  }
155
155
  }
156
- }, Pe = ["id"], Ie = { class: "amsom-modal-body mt-2" }, De = {
156
+ }, Ie = ["id"], De = { class: "amsom-modal-body mt-2" }, Me = /* @__PURE__ */ o("p", null, " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. ", -1), Be = {
157
157
  key: 0,
158
158
  class: "position-fixed bottom-0 end-0 mb-3 me-3"
159
- }, Me = {
159
+ }, Ae = {
160
160
  key: 0,
161
161
  class: "position-fixed bottom-0 end-0 mb-3 me-3"
162
162
  };
163
- function Be(s, e, t, c, i, l) {
164
- const u = x("font-awesome-icon");
163
+ function Te(s, e, t, u, i, l) {
164
+ const c = x("font-awesome-icon");
165
165
  return n(), k(fe, { to: "body" }, [
166
166
  o("div", {
167
167
  class: f(["p-2 m-0 bg-black bg-opacity-25 position-fixed overflow-y-auto", { "d-none": i.reduced }]),
@@ -195,43 +195,48 @@ function Be(s, e, t, c, i, l) {
195
195
  onMousedown: e[2] || (e[2] = (...d) => l.handleModalMouseDown && l.handleModalMouseDown(...d)),
196
196
  onMouseup: e[3] || (e[3] = (...d) => l.handleModalMouseUp && l.handleModalMouseUp(...d))
197
197
  }, [
198
- t.closeOption ? (n(), k(u, {
198
+ t.closeOption ? (n(), k(c, {
199
199
  key: 0,
200
200
  icon: "fa-solid fa-times",
201
201
  role: "button",
202
202
  class: "position-absolute top-0 end-0 m-3 translate-middle-y",
203
203
  size: "lg",
204
204
  onClick: e[0] || (e[0] = (d) => s.$emit("close"))
205
- })) : g("", !0),
206
- o("div", Ie, [
205
+ })) : h("", !0),
206
+ o("div", De, [
207
207
  I(s.$slots, "title", {}, () => [
208
208
  t.title ? (n(), r("div", {
209
209
  key: 0,
210
210
  class: f(t.classTitle)
211
- }, p(t.title), 3)) : g("", !0)
211
+ }, p(t.title), 3)) : h("", !0)
212
212
  ]),
213
213
  I(s.$slots, "default", {}, () => [
214
- e[10] || (e[10] = o("p", null, " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. ", -1))
214
+ Me
215
215
  ])
216
216
  ])
217
- ], 42, Pe)
217
+ ], 42, Ie)
218
218
  ], 36),
219
- t.reducible ? (n(), r("div", De, [
219
+ t.reducible ? (n(), r("div", Be, [
220
220
  o("button", {
221
221
  class: "btn btn-primary",
222
222
  onClick: e[6] || (e[6] = (d) => i.reduced = !i.reduced)
223
223
  }, " Réduire la fenêtre ")
224
- ])) : g("", !0)
224
+ ])) : h("", !0)
225
225
  ], 38),
226
- t.reducible && i.reduced ? (n(), r("div", Me, [
226
+ t.reducible && i.reduced ? (n(), r("div", Ae, [
227
227
  o("button", {
228
228
  class: "btn btn-primary",
229
229
  onClick: e[9] || (e[9] = (d) => i.reduced = !i.reduced)
230
230
  }, " Restaurer la fenêtre ")
231
- ])) : g("", !0)
231
+ ])) : h("", !0)
232
232
  ]);
233
233
  }
234
- const Ae = /* @__PURE__ */ C(_e, [["render", Be]]), Te = {
234
+ const ze = /* @__PURE__ */ ve(Pe, [["render", Te]]), v = (s, e) => {
235
+ const t = s.__vccOpts || s;
236
+ for (const [u, i] of e)
237
+ t[u] = i;
238
+ return t;
239
+ }, Fe = {
235
240
  name: "AmsomCard",
236
241
  props: {
237
242
  //string or null
@@ -285,18 +290,18 @@ const Ae = /* @__PURE__ */ C(_e, [["render", Be]]), Te = {
285
290
  default: ""
286
291
  }
287
292
  }
288
- }, ze = { class: "position-relative" }, Fe = {
293
+ }, Le = { class: "position-relative" }, Ne = {
289
294
  key: 0,
290
295
  class: "card-title"
291
- }, Le = ["src"];
292
- function Ne(s, e, t, c, i, l) {
293
- return n(), r("div", ze, [
296
+ }, je = ["src"];
297
+ function qe(s, e, t, u, i, l) {
298
+ return n(), r("div", Le, [
294
299
  t.header ? (n(), r("div", {
295
300
  key: 0,
296
301
  class: f(["card card-header", t.headerClass])
297
302
  }, [
298
303
  I(s.$slots, "header")
299
- ], 2)) : g("", !0),
304
+ ], 2)) : h("", !0),
300
305
  o("div", {
301
306
  class: f(["card position-relative h-100", [
302
307
  {
@@ -319,7 +324,7 @@ function Ne(s, e, t, c, i, l) {
319
324
  style: { position: "relative", "z-index": "1" }
320
325
  }, [
321
326
  I(s.$slots, "title", {}, () => [
322
- t.title && !t.bubbleTitle ? (n(), r("h4", Fe, p(t.title), 1)) : g("", !0)
327
+ t.title && !t.bubbleTitle ? (n(), r("h4", Ne, p(t.title), 1)) : h("", !0)
323
328
  ]),
324
329
  I(s.$slots, "default")
325
330
  ], 2)
@@ -339,23 +344,23 @@ function Ne(s, e, t, c, i, l) {
339
344
  zIndex: 0,
340
345
  borderRadius: "inherit"
341
346
  })
342
- }, null, 14, Le)) : g("", !0)
347
+ }, null, 14, je)) : h("", !0)
343
348
  ], 2),
344
349
  t.title && t.bubbleTitle ? (n(), r("span", {
345
350
  key: 1,
346
351
  id: "bubble-title",
347
352
  class: f(["position-absolute top-0 start-0 translate-middle-y rounded-pill shadow px-1", t.bubbleTitleClass]),
348
353
  style: { "z-index": "2" }
349
- }, p(t.title), 3)) : g("", !0),
354
+ }, p(t.title), 3)) : h("", !0),
350
355
  t.footer ? (n(), r("div", {
351
356
  key: 2,
352
357
  class: f(["card card-footer", t.footerClass])
353
358
  }, [
354
359
  I(s.$slots, "footer")
355
- ], 2)) : g("", !0)
360
+ ], 2)) : h("", !0)
356
361
  ]);
357
362
  }
358
- const je = /* @__PURE__ */ C(Te, [["render", Ne]]), qe = {
363
+ const Ve = /* @__PURE__ */ v(Fe, [["render", qe]]), Ee = {
359
364
  name: "AmsomOverlay",
360
365
  props: {
361
366
  loading: {
@@ -370,9 +375,9 @@ const je = /* @__PURE__ */ C(Te, [["render", Ne]]), qe = {
370
375
  validator: (s) => s >= 0 && s <= 100
371
376
  }
372
377
  }
373
- }, Ve = { class: "position-relative" };
374
- function Ee(s, e, t, c, i, l) {
375
- return n(), r("div", Ve, [
378
+ }, He = { class: "position-relative" };
379
+ function Oe(s, e, t, u, i, l) {
380
+ return n(), r("div", He, [
376
381
  t.loading ? (n(), r("div", {
377
382
  key: 0,
378
383
  class: "position-absolute w-100 h-100 d-flex align-items-center justify-content-center rounded",
@@ -388,15 +393,15 @@ function Ee(s, e, t, c, i, l) {
388
393
  }, [
389
394
  o("span", { class: "sr-only visually-hidden" }, "Chargement...")
390
395
  ], -1)
391
- ])], 4)) : g("", !0),
396
+ ])], 4)) : h("", !0),
392
397
  I(s.$slots, "default", {}, () => [
393
398
  e[1] || (e[1] = o("p", null, " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. ", -1))
394
399
  ])
395
400
  ]);
396
401
  }
397
- const Z = /* @__PURE__ */ C(qe, [["render", Ee]]);
402
+ const Z = /* @__PURE__ */ v(Ee, [["render", Oe]]);
398
403
  M.add(W);
399
- const He = {
404
+ const Ye = {
400
405
  name: "WorkflowAssuranceBlock",
401
406
  components: {
402
407
  FontAwesomeIcon: D
@@ -502,18 +507,18 @@ const He = {
502
507
  }
503
508
  }
504
509
  }
505
- }, Oe = { class: "d-flex flex-column align-items-center" }, Ye = ["onClick"], Ue = {
510
+ }, Ue = { class: "d-flex flex-column align-items-center" }, We = ["onClick"], Re = {
506
511
  key: 0,
507
512
  class: "line h-100",
508
513
  style: { height: "30px", "min-height": "30px" }
509
514
  };
510
- function We(s, e, t, c, i, l) {
511
- const u = x("font-awesome-icon");
512
- return n(!0), r(y, null, v(t.steps, (d, m) => (n(), r("div", {
515
+ function Ke(s, e, t, u, i, l) {
516
+ const c = x("font-awesome-icon");
517
+ return n(!0), r(y, null, C(t.steps, (d, m) => (n(), r("div", {
513
518
  key: d.numero,
514
519
  class: "d-flex mb-1"
515
520
  }, [
516
- o("div", Oe, [
521
+ o("div", Ue, [
517
522
  o("div", {
518
523
  style: _({
519
524
  width: l.bubbleSize + "rem",
@@ -528,16 +533,16 @@ function We(s, e, t, c, i, l) {
528
533
  ]]),
529
534
  onClick: (a) => s.$emit("clickStep", d.numero)
530
535
  }, [
531
- m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(u, {
536
+ m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(c, {
532
537
  key: 0,
533
538
  icon: ["fas", "check"]
534
539
  })) : (n(), r(y, { key: 1 }, [
535
540
  A(p(d.numero), 1)
536
541
  ], 64))
537
- ], 14, Ye),
538
- m < t.steps.length - 1 ? (n(), r("div", Ue)) : g("", !0)
542
+ ], 14, We),
543
+ m < t.steps.length - 1 ? (n(), r("div", Re)) : h("", !0)
539
544
  ]),
540
- t.hideText ? g("", !0) : (n(), r("span", {
545
+ t.hideText ? h("", !0) : (n(), r("span", {
541
546
  key: 0,
542
547
  class: f(["ms-1", [m + 1 < t.currentStep ? t.passedStepTextCss : m + 1 === t.currentStep ? t.currentStepTextCss : t.futureStepTextCss]]),
543
548
  style: _({
@@ -551,7 +556,7 @@ function We(s, e, t, c, i, l) {
551
556
  ], 6))
552
557
  ]))), 128);
553
558
  }
554
- const Vs = /* @__PURE__ */ C(He, [["render", We], ["__scopeId", "data-v-5eab4376"]]);
559
+ const Hs = /* @__PURE__ */ v(Ye, [["render", Ke], ["__scopeId", "data-v-5eab4376"]]);
555
560
  M.add(W);
556
561
  const V = {
557
562
  name: "AmsomHorizontalStepper",
@@ -678,7 +683,7 @@ const V = {
678
683
  }
679
684
  }
680
685
  }, H = () => {
681
- ge((s) => ({
686
+ he((s) => ({
682
687
  v31536048: s.futureStepBgColorCss,
683
688
  dac29eac: s.bubbleSize + "rem",
684
689
  a3a0806e: s.passedStepBgColorCss,
@@ -686,11 +691,11 @@ const V = {
686
691
  }));
687
692
  }, O = V.setup;
688
693
  V.setup = O ? (s, e) => (H(), O(s, e)) : H;
689
- const Re = { class: "d-flex justify-content-between" }, Ke = ["role", "onClick"];
690
- function Ge(s, e, t, c, i, l) {
691
- const u = x("font-awesome-icon");
692
- return n(), r("div", Re, [
693
- (n(!0), r(y, null, v(t.steps, (d, m) => (n(), r("div", {
694
+ const Ge = { class: "d-flex justify-content-between" }, Je = ["role", "onClick"];
695
+ function Ze(s, e, t, u, i, l) {
696
+ const c = x("font-awesome-icon");
697
+ return n(), r("div", Ge, [
698
+ (n(!0), r(y, null, C(t.steps, (d, m) => (n(), r("div", {
694
699
  key: d.numero,
695
700
  role: d.numero < t.currentStep ? "button" : "none",
696
701
  class: f(["stepper-item", [
@@ -708,27 +713,27 @@ function Ge(s, e, t, c, i, l) {
708
713
  ]]),
709
714
  style: _({ fontSize: l.fontSizeStep + "rem" })
710
715
  }, [
711
- m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(u, {
716
+ m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(c, {
712
717
  key: 0,
713
718
  icon: ["fas", "check"]
714
719
  })) : (n(), r(y, { key: 1 }, [
715
720
  A(p(d.numero), 1)
716
721
  ], 64))
717
722
  ], 6),
718
- t.hideText ? g("", !0) : (n(), r("div", {
723
+ t.hideText ? h("", !0) : (n(), r("div", {
719
724
  key: 0,
720
725
  class: f(["step-name", [m + 1 < t.currentStep ? t.passedStepTextCss : m + 1 === t.currentStep ? t.currentStepTextCss : t.futureStepTextCss]]),
721
726
  style: _({ fontSize: l.fontSizeText + "rem" })
722
727
  }, p(d.texte), 7))
723
- ], 10, Ke))), 128))
728
+ ], 10, Je))), 128))
724
729
  ]);
725
730
  }
726
- const Es = /* @__PURE__ */ C(V, [["render", Ge]]);
731
+ const Os = /* @__PURE__ */ v(V, [["render", Ze]]);
727
732
  M.add(X, R, $, ee);
728
- const Je = {
733
+ const Qe = {
729
734
  name: "PhotoComponent",
730
735
  components: {
731
- AmsomModal: Ae,
736
+ AmsomModal: ze,
732
737
  FontAwesomeIcon: D
733
738
  },
734
739
  props: {
@@ -789,24 +794,24 @@ const Je = {
789
794
  if (e) {
790
795
  this.imagesLimit !== -1 && (e = Array.from(e), e = e.slice(0, this.imagesLimit));
791
796
  for (let t of e)
792
- j(t) && G({ file: t, maxWidth: this.maxWidth, maxHeigth: this.maxHeigth }).then((c) => {
793
- J(pe(c), t.type.split("/")[1]).then((i) => {
797
+ j(t) && G({ file: t, maxWidth: this.maxWidth, maxHeigth: this.maxHeigth }).then((u) => {
798
+ J(pe(u), t.type.split("/")[1]).then((i) => {
794
799
  i.nomFichier = t.name, this.$emit("update:images", [...this.images, i]);
795
800
  });
796
801
  });
797
802
  }
798
803
  }
799
804
  }
800
- }, Ze = { class: "border border-1 border-grey rounded-4 p-2 d-flex align-items-center" }, Qe = ["disabled"], Xe = ["capture"], $e = {
805
+ }, Xe = { class: "border border-1 border-grey rounded-4 p-2 d-flex align-items-center" }, $e = ["disabled"], et = ["capture"], tt = {
801
806
  key: 0,
802
807
  class: "d-flex overflow-x-auto w-100"
803
- }, et = ["onClick"], tt = ["src", "alt"], st = {
808
+ }, st = ["onClick"], lt = ["src", "alt"], it = {
804
809
  key: 1,
805
810
  class: "fs-7"
806
- }, lt = { class: "row w-100 mx-auto" }, it = { class: "col-12 mb-3" }, nt = ["src", "alt"], ot = { class: "col-12 d-flex justify-content-center" };
807
- function at(s, e, t, c, i, l) {
808
- const u = x("font-awesome-icon"), d = x("amsom-modal");
809
- return n(), r("div", Ze, [
811
+ }, nt = { class: "row w-100 mx-auto" }, ot = { class: "col-12 mb-3" }, at = ["src", "alt"], rt = { class: "col-12 d-flex justify-content-center" };
812
+ function dt(s, e, t, u, i, l) {
813
+ const c = x("font-awesome-icon"), d = x("amsom-modal");
814
+ return n(), r("div", Xe, [
810
815
  o("button", {
811
816
  type: "button",
812
817
  class: "btn rounded-4 me-1 d-flex justify-content-center align-items-center",
@@ -820,7 +825,7 @@ function at(s, e, t, c, i, l) {
820
825
  disabled: !l.canAddImage,
821
826
  onClick: e[2] || (e[2] = (...m) => l.triggerFileInput && l.triggerFileInput(...m))
822
827
  }, [
823
- b(u, {
828
+ b(c, {
824
829
  icon: "fa-solid fa-camera",
825
830
  size: "lg",
826
831
  class: "text-white"
@@ -846,10 +851,10 @@ function at(s, e, t, c, i, l) {
846
851
  multiple: "",
847
852
  capture: t.capture,
848
853
  onInput: e[1] || (e[1] = (...m) => l.getDataFiles && l.getDataFiles(...m))
849
- }, null, 40, Xe))
850
- ], 12, Qe),
851
- t.images.length > 0 ? (n(), r("div", $e, [
852
- (n(!0), r(y, null, v(t.images, (m) => (n(), r("button", {
854
+ }, null, 40, et))
855
+ ], 12, $e),
856
+ t.images.length > 0 ? (n(), r("div", tt, [
857
+ (n(!0), r(y, null, C(t.images, (m) => (n(), r("button", {
853
858
  key: m,
854
859
  type: "button",
855
860
  class: "btn p-0 mx-1 rounded-1",
@@ -865,9 +870,9 @@ function at(s, e, t, c, i, l) {
865
870
  src: "data:" + (m == null ? void 0 : m.type) + ";base64," + (m == null ? void 0 : m.file),
866
871
  class: "h-100 w-100 rounded-1",
867
872
  alt: m == null ? void 0 : m.nomFichier
868
- }, null, 8, tt)
869
- ], 12, et))), 128))
870
- ])) : (n(), r("div", st, " Ajouter une image ")),
873
+ }, null, 8, lt)
874
+ ], 12, st))), 128))
875
+ ])) : (n(), r("div", it, " Ajouter une image ")),
871
876
  i.showModal ? (n(), k(d, {
872
877
  key: 2,
873
878
  size: "sm",
@@ -875,23 +880,23 @@ function at(s, e, t, c, i, l) {
875
880
  onClose: l.closeModal
876
881
  }, {
877
882
  default: z(() => {
878
- var m, a, h;
883
+ var m, a, g;
879
884
  return [
880
- o("div", lt, [
881
- o("div", it, [
885
+ o("div", nt, [
886
+ o("div", ot, [
882
887
  o("img", {
883
888
  src: "data:" + ((m = t.images[i.selectedPhotoIndex]) == null ? void 0 : m.type) + ";base64," + ((a = t.images[i.selectedPhotoIndex]) == null ? void 0 : a.file),
884
- alt: (h = t.images[i.selectedPhotoIndex]) == null ? void 0 : h.nomFichier,
889
+ alt: (g = t.images[i.selectedPhotoIndex]) == null ? void 0 : g.nomFichier,
885
890
  class: "h-100 w-100"
886
- }, null, 8, nt)
891
+ }, null, 8, at)
887
892
  ]),
888
- o("div", ot, [
893
+ o("div", rt, [
889
894
  o("button", {
890
895
  type: "button",
891
896
  class: "btn btn-primary mx-1",
892
897
  onClick: e[3] || (e[3] = (S) => l.changeIndex(0))
893
898
  }, [
894
- b(u, {
899
+ b(c, {
895
900
  icon: "fa-arrow-left",
896
901
  size: "lg"
897
902
  })
@@ -901,7 +906,7 @@ function at(s, e, t, c, i, l) {
901
906
  class: "btn btn-primary mx-1",
902
907
  onClick: e[4] || (e[4] = (S) => l.changeIndex(1))
903
908
  }, [
904
- b(u, {
909
+ b(c, {
905
910
  icon: "fa-arrow-right",
906
911
  size: "lg"
907
912
  })
@@ -911,7 +916,7 @@ function at(s, e, t, c, i, l) {
911
916
  class: "btn btn-danger ms-auto",
912
917
  onClick: e[5] || (e[5] = (...S) => l.deleteImage && l.deleteImage(...S))
913
918
  }, [
914
- b(u, {
919
+ b(c, {
915
920
  icon: "fa-trash",
916
921
  size: "lg"
917
922
  })
@@ -921,15 +926,15 @@ function at(s, e, t, c, i, l) {
921
926
  ];
922
927
  }),
923
928
  _: 1
924
- }, 8, ["onClose"])) : g("", !0)
929
+ }, 8, ["onClose"])) : h("", !0)
925
930
  ]);
926
931
  }
927
- const Hs = /* @__PURE__ */ C(Je, [["render", at]]);
928
- function rt(s, e, t = !1, c = !1) {
932
+ const Ys = /* @__PURE__ */ v(Qe, [["render", dt]]);
933
+ function ct(s, e, t = !1, u = !1) {
929
934
  return s && s.sort((i, l) => {
930
- const u = new RegExp("(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)?$");
931
- if (u.test(i[e]) && u.test(l[e]))
932
- switch (i[e].replace(/\d+/g, (h) => +h + 1e5).localeCompare(l[e].replace(/\d+/g, (h) => +h + 1e5))) {
935
+ const c = new RegExp("(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)?$");
936
+ if (c.test(i[e]) && c.test(l[e]))
937
+ switch (i[e].replace(/\d+/g, (g) => +g + 1e5).localeCompare(l[e].replace(/\d+/g, (g) => +g + 1e5))) {
933
938
  case 1:
934
939
  return t ? 1 : -1;
935
940
  case -1:
@@ -942,9 +947,9 @@ function rt(s, e, t = !1, c = !1) {
942
947
  if (!isNaN(i[e]) && !isNaN(l[e]))
943
948
  return t ? parseFloat(i[e]) - parseFloat(l[e]) : parseFloat(l[e]) - parseFloat(i[e]);
944
949
  if (!i[e] && l[e])
945
- return t ? c ? 1 : -1 : c ? -1 : 1;
950
+ return t ? u ? 1 : -1 : u ? -1 : 1;
946
951
  if (i[e] && !l[e])
947
- return t ? c ? -1 : 1 : c ? 1 : -1;
952
+ return t ? u ? -1 : 1 : u ? 1 : -1;
948
953
  if (!i[e] && !l[e])
949
954
  return 0;
950
955
  if (P(i[e], "DD/MM/YYYY").isValid() || P(l[e], "DD/MM/YYYY").isValid())
@@ -970,41 +975,41 @@ function U(s, e) {
970
975
  else if (!t.columns)
971
976
  t.columns = e;
972
977
  else {
973
- let c = e.filter(function(l) {
974
- return !t.columns.some(function(u) {
975
- return u.id === l.id;
978
+ let u = e.filter(function(l) {
979
+ return !t.columns.some(function(c) {
980
+ return c.id === l.id;
976
981
  });
977
982
  });
978
- t.columns = t.columns.concat(c);
983
+ t.columns = t.columns.concat(u);
979
984
  let i = t.columns.filter(function(l) {
980
- return !e.some(function(u) {
981
- return l.id === u.id;
985
+ return !e.some(function(c) {
986
+ return l.id === c.id;
982
987
  });
983
988
  });
984
989
  t.columns = t.columns.filter(function(l) {
985
- return !i.some(function(u) {
986
- return l.id === u.id;
990
+ return !i.some(function(c) {
991
+ return l.id === c.id;
987
992
  });
988
993
  }), t.columns.filter((l) => {
989
- for (let u of e)
990
- u.id === l.id && u.libelle !== l.libelle && (l.libelle = u.libelle);
994
+ for (let c of e)
995
+ c.id === l.id && c.libelle !== l.libelle && (l.libelle = c.libelle);
991
996
  });
992
997
  }
993
998
  T(s, t);
994
999
  }
995
- function dt(s, e, t = null) {
996
- let c = F(s);
997
- c ? t && !c[t] && (c[t] = e) : t ? (c = {}, c[t] = e) : c = e, T(s, c);
1000
+ function ut(s, e, t = null) {
1001
+ let u = F(s);
1002
+ u ? t && !u[t] && (u[t] = e) : t ? (u = {}, u[t] = e) : u = e, T(s, u);
998
1003
  }
999
1004
  function F(s) {
1000
1005
  return JSON.parse(window.localStorage.getItem(s));
1001
1006
  }
1002
1007
  function T(s, e, t = null) {
1003
- let c = F(s);
1004
- return t ? c[t] = e : c = e, window.localStorage.setItem(s, JSON.stringify(c));
1008
+ let u = F(s);
1009
+ return t ? u[t] = e : u = e, window.localStorage.setItem(s, JSON.stringify(u));
1005
1010
  }
1006
1011
  M.add(q, K, te, se, R, le);
1007
- const ut = {
1012
+ const mt = {
1008
1013
  name: "TableDraggableComponent",
1009
1014
  components: { VueDraggableNext: we, FontAwesomeIcon: D },
1010
1015
  props: {
@@ -1083,28 +1088,28 @@ const ut = {
1083
1088
  filtereditems() {
1084
1089
  if (!this.items) return this.items;
1085
1090
  let s = L(this.search), e, t;
1086
- return this.pickedDate && this.pickedDate[0] && this.pickedDate[1] && (e = P(this.pickedDate[0]).set({ hour: 0, minute: 0 }).unix(), t = P(this.pickedDate[1]).set({ hour: 23, minute: 59 }).unix()), this.items.filter((c) => {
1087
- let i = this.filterBy(c, s);
1088
- if (e && t && this.columnNameDateFilter && this.columnNameDateFilter.length > 0 && this.columnNameDateFilter.some((u) => {
1089
- const d = this.columns.find((m) => m.id === u);
1091
+ return this.pickedDate && this.pickedDate[0] && this.pickedDate[1] && (e = P(this.pickedDate[0]).set({ hour: 0, minute: 0 }).unix(), t = P(this.pickedDate[1]).set({ hour: 23, minute: 59 }).unix()), this.items.filter((u) => {
1092
+ let i = this.filterBy(u, s);
1093
+ if (e && t && this.columnNameDateFilter && this.columnNameDateFilter.length > 0 && this.columnNameDateFilter.some((c) => {
1094
+ const d = this.columns.find((m) => m.id === c);
1090
1095
  return d && d.show === !0;
1091
1096
  })) {
1092
- let u = this.columnNameDateFilter.some((d) => {
1097
+ let c = this.columnNameDateFilter.some((d) => {
1093
1098
  const m = this.columns.find((a) => a.id === d);
1094
- if (c[d] && m.show === !0) {
1095
- let a = parseInt(c[d]);
1099
+ if (u[d] && m.show === !0) {
1100
+ let a = parseInt(u[d]);
1096
1101
  return a >= e && a <= t;
1097
1102
  }
1098
1103
  return !1;
1099
1104
  });
1100
- return i && u;
1105
+ return i && c;
1101
1106
  }
1102
1107
  return i;
1103
1108
  });
1104
1109
  },
1105
1110
  showeditems() {
1106
1111
  const s = this.filtereditems.slice((this.currentPage - 1) * this.maxItemsPerPage, this.currentPage * this.maxItemsPerPage);
1107
- return !this.sortKey || !this.filtereditems ? s : rt(s, this.sortKey, this.sortAsc);
1112
+ return !this.sortKey || !this.filtereditems ? s : ct(s, this.sortKey, this.sortAsc);
1108
1113
  }
1109
1114
  },
1110
1115
  watch: {
@@ -1126,7 +1131,7 @@ const ut = {
1126
1131
  },
1127
1132
  mounted() {
1128
1133
  if (this.localStorageItemName !== null) {
1129
- U(this.localStorageItemName, this.columns), dt(this.localStorageItemName, this.maxItemPerPage, "maxItemPerPage");
1134
+ U(this.localStorageItemName, this.columns), ut(this.localStorageItemName, this.maxItemPerPage, "maxItemPerPage");
1130
1135
  let s = F(this.localStorageItemName);
1131
1136
  this.maxItemsPerPage = s.maxItemPerPage, this.columns = s.columns;
1132
1137
  }
@@ -1185,49 +1190,49 @@ const ut = {
1185
1190
  this.headerEditMode = !0;
1186
1191
  }
1187
1192
  }
1188
- }, ct = {
1193
+ }, ft = {
1189
1194
  key: 0,
1190
1195
  class: "my-3 text-center"
1191
- }, mt = { class: "row mb-3 overflow-x-auto" }, ft = { class: "col-12" }, gt = {
1196
+ }, ht = { class: "row mb-3 overflow-x-auto" }, gt = { class: "col-12" }, pt = {
1192
1197
  key: 1,
1193
1198
  class: "bg-secondary",
1194
1199
  scope: "col"
1195
- }, ht = {
1200
+ }, yt = {
1196
1201
  key: 0,
1197
1202
  class: "position-absolute start-50 translate-middle",
1198
1203
  style: { top: "25px" }
1199
- }, pt = { class: "d-inline-flex text-nowrap" }, yt = { class: "my-auto" }, bt = {
1204
+ }, bt = { class: "d-inline-flex text-nowrap" }, St = { class: "my-auto" }, xt = {
1200
1205
  key: 0,
1201
1206
  class: "ms-2 float-end"
1202
- }, St = { key: 0 }, xt = ["colspan"], kt = ["onClick"], wt = ["onClick"], Ct = ["id", "value"], vt = ["onClick"], _t = { class: "row mb-2" }, Pt = {
1207
+ }, kt = { key: 0 }, wt = ["colspan"], Ct = ["onClick"], _t = ["onClick"], vt = ["id", "value"], Pt = ["onClick"], It = { class: "row mb-2" }, Dt = {
1203
1208
  key: 0,
1204
1209
  class: "col"
1205
- }, It = { class: "m-0 pagination pagination-sm" }, Dt = { class: "page-item hoverable" }, Mt = { class: "page-item hoverable" }, Bt = ["onClick"], At = { class: "page-item hoverable" }, Tt = { class: "page-item hoverable" }, zt = {
1210
+ }, Mt = { class: "m-0 pagination pagination-sm" }, Bt = { class: "page-item hoverable" }, At = { class: "page-item hoverable" }, Tt = ["onClick"], zt = { class: "page-item hoverable" }, Ft = { class: "page-item hoverable" }, Lt = {
1206
1211
  key: 1,
1207
1212
  class: "col d-flex justify-content-end"
1208
- }, Ft = { class: "d-flex mb-1" }, Lt = {
1213
+ }, Nt = { class: "d-flex mb-1" }, jt = {
1209
1214
  key: 0,
1210
1215
  class: "d-flex"
1211
1216
  };
1212
- function Nt(s, e, t, c, i, l) {
1217
+ function qt(s, e, t, u, i, l) {
1213
1218
  var m;
1214
- const u = x("font-awesome-icon"), d = x("vue-draggable-next");
1219
+ const c = x("font-awesome-icon"), d = x("vue-draggable-next");
1215
1220
  return n(), r(y, null, [
1216
- t.lineEditMode ? (n(), r("div", ct, [
1221
+ t.lineEditMode ? (n(), r("div", ft, [
1217
1222
  o("button", {
1218
1223
  type: "button",
1219
1224
  class: "btn btn-success rounded-5 m-0 p-0",
1220
1225
  style: { height: "45px", width: "45px" },
1221
1226
  onClick: e[0] || (e[0] = (a) => s.$emit("lineEditModeAddNewLine"))
1222
1227
  }, [
1223
- b(u, {
1228
+ b(c, {
1224
1229
  icon: "fa-solid fa-plus",
1225
1230
  size: "xl"
1226
1231
  })
1227
1232
  ])
1228
- ])) : g("", !0),
1229
- o("div", mt, [
1230
- o("div", ft, [
1233
+ ])) : h("", !0),
1234
+ o("div", ht, [
1235
+ o("div", gt, [
1231
1236
  (n(), r("table", {
1232
1237
  id: "table-draggable",
1233
1238
  key: i.forceTableUpdateIndex,
@@ -1245,25 +1250,25 @@ function Nt(s, e, t, c, i, l) {
1245
1250
  group: "columns"
1246
1251
  }, {
1247
1252
  default: z(() => [
1248
- (n(!0), r(y, null, v(i.columns, (a) => (n(), r(y, {
1253
+ (n(!0), r(y, null, C(i.columns, (a) => (n(), r(y, {
1249
1254
  key: a.id
1250
1255
  }, [
1251
1256
  a.id === "checkBox" ? (n(), r("th", {
1252
1257
  key: 0,
1253
1258
  class: "text-center bg-secondary",
1254
1259
  scope: "col",
1255
- onClick: e[3] || (e[3] = w((...h) => l.toggleAllCheckBox && l.toggleAllCheckBox(...h), ["stop"]))
1260
+ onClick: e[3] || (e[3] = w((...g) => l.toggleAllCheckBox && l.toggleAllCheckBox(...g), ["stop"]))
1256
1261
  }, [
1257
1262
  N(o("input", {
1258
1263
  id: "checkBoxSelectAll",
1259
- "onUpdate:modelValue": e[1] || (e[1] = (h) => i.checkAllCheckBox = h),
1264
+ "onUpdate:modelValue": e[1] || (e[1] = (g) => i.checkAllCheckBox = g),
1260
1265
  class: "form-check-input",
1261
1266
  type: "checkbox",
1262
- onClick: e[2] || (e[2] = w((...h) => l.toggleAllCheckBox && l.toggleAllCheckBox(...h), ["stop"]))
1267
+ onClick: e[2] || (e[2] = w((...g) => l.toggleAllCheckBox && l.toggleAllCheckBox(...g), ["stop"]))
1263
1268
  }, null, 512), [
1264
1269
  [E, i.checkAllCheckBox]
1265
1270
  ])
1266
- ])) : a.id === "deleteButton" && t.lineEditMode ? (n(), r("th", gt)) : a.show || i.headerEditMode ? (n(), r("th", {
1271
+ ])) : a.id === "deleteButton" && t.lineEditMode ? (n(), r("th", pt)) : a.show || i.headerEditMode ? (n(), r("th", {
1267
1272
  key: 2,
1268
1273
  scope: "col",
1269
1274
  class: f(["text-white bg-secondary hoverable position-relative text-center", [
@@ -1273,48 +1278,48 @@ function Nt(s, e, t, c, i, l) {
1273
1278
  }
1274
1279
  ]])
1275
1280
  }, [
1276
- i.headerEditMode ? (n(), r("div", ht, [
1277
- a.show ? (n(), k(u, {
1281
+ i.headerEditMode ? (n(), r("div", yt, [
1282
+ a.show ? (n(), k(c, {
1278
1283
  key: 0,
1279
1284
  icon: "fa-solid fa-eye",
1280
1285
  class: "fa-xl",
1281
- onClick: (h) => a.show = !1
1282
- }, null, 8, ["onClick"])) : (n(), k(u, {
1286
+ onClick: (g) => a.show = !1
1287
+ }, null, 8, ["onClick"])) : (n(), k(c, {
1283
1288
  key: 1,
1284
1289
  icon: "fa-solid fa-eye-slash",
1285
1290
  class: "fa-xl",
1286
- onClick: (h) => a.show = !0
1291
+ onClick: (g) => a.show = !0
1287
1292
  }, null, 8, ["onClick"]))
1288
- ])) : g("", !0),
1289
- o("div", pt, [
1290
- o("span", yt, p(a.libelle), 1),
1291
- a.isSortable ? (n(), r("div", bt, [
1292
- b(u, {
1293
+ ])) : h("", !0),
1294
+ o("div", bt, [
1295
+ o("span", St, p(a.libelle), 1),
1296
+ a.isSortable ? (n(), r("div", xt, [
1297
+ b(c, {
1293
1298
  icon: i.sortKey !== a.id || i.sortKey === a.id && !i.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-up-short-wide",
1294
- onClick: (h) => l.updateCurrentSort(a)
1299
+ onClick: (g) => l.updateCurrentSort(a)
1295
1300
  }, null, 8, ["icon", "onClick"])
1296
- ])) : g("", !0)
1301
+ ])) : h("", !0)
1297
1302
  ])
1298
- ], 2)) : g("", !0)
1303
+ ], 2)) : h("", !0)
1299
1304
  ], 64))), 128))
1300
1305
  ]),
1301
1306
  _: 1
1302
1307
  }, 8, ["modelValue", "ghost-class", "drag-class", "move"])
1303
1308
  ]),
1304
1309
  o("tbody", null, [
1305
- ((m = l.showeditems) == null ? void 0 : m.length) === 0 ? (n(), r("tr", St, [
1310
+ ((m = l.showeditems) == null ? void 0 : m.length) === 0 ? (n(), r("tr", kt, [
1306
1311
  o("th", {
1307
1312
  colspan: i.columns.length,
1308
1313
  class: "text-center"
1309
1314
  }, [...e[14] || (e[14] = [
1310
1315
  o("span", { class: "text-danger fs-5" }, "Aucune valeur", -1)
1311
- ])], 8, xt)
1312
- ])) : (n(!0), r(y, { key: 1 }, v(l.showeditems, (a, h) => (n(), r("tr", {
1316
+ ])], 8, wt)
1317
+ ])) : (n(!0), r(y, { key: 1 }, C(l.showeditems, (a, g) => (n(), r("tr", {
1313
1318
  key: a.id,
1314
1319
  class: f({ hoverable: t.clickable }),
1315
1320
  onClick: (S) => t.clickable ? l.selectSubject(a) : null
1316
1321
  }, [
1317
- (n(!0), r(y, null, v(i.columns, (S) => (n(), r(y, {
1322
+ (n(!0), r(y, null, C(i.columns, (S) => (n(), r(y, {
1318
1323
  key: S.id
1319
1324
  }, [
1320
1325
  S.id === "checkBox" ? (n(), r("td", {
@@ -1323,17 +1328,17 @@ function Nt(s, e, t, c, i, l) {
1323
1328
  onClick: w((B) => l.checkItem(a.id), ["stop"])
1324
1329
  }, [
1325
1330
  N(o("input", {
1326
- id: `checkbox-${h}`,
1331
+ id: `checkbox-${g}`,
1327
1332
  "onUpdate:modelValue": e[5] || (e[5] = (B) => i.selectedItems = B),
1328
1333
  type: "checkbox",
1329
1334
  class: "form-check-input hoverable",
1330
1335
  value: a.id,
1331
1336
  onClick: e[6] || (e[6] = w(() => {
1332
1337
  }, ["stop"]))
1333
- }, null, 8, Ct), [
1338
+ }, null, 8, vt), [
1334
1339
  [E, i.selectedItems]
1335
1340
  ])
1336
- ], 10, wt)) : S.id === "deleteButton" && t.lineEditMode ? (n(), r("td", {
1341
+ ], 10, _t)) : S.id === "deleteButton" && t.lineEditMode ? (n(), r("td", {
1337
1342
  key: 1,
1338
1343
  class: f([[a.lineState ? l.lineStateClass(a.lineState) : ""], "text-center py-0"])
1339
1344
  }, [
@@ -1342,11 +1347,11 @@ function Nt(s, e, t, c, i, l) {
1342
1347
  class: "btn btn-danger",
1343
1348
  onClick: (B) => s.$emit("lineEditModeDeleteLine", a.id)
1344
1349
  }, [
1345
- b(u, {
1350
+ b(c, {
1346
1351
  icon: "fa-solid fa-trash",
1347
1352
  size: "lg"
1348
1353
  })
1349
- ], 8, vt)
1354
+ ], 8, Pt)
1350
1355
  ], 2)) : S.show || i.headerEditMode ? (n(), r("td", {
1351
1356
  key: 2,
1352
1357
  class: f([[S.show ? "" : "table-danger", S.isSorted ? "bg-gray-200" : "", a.lineState ? l.lineStateClass(a.lineState) : ""], "text-center text-nowrap"])
@@ -1355,54 +1360,54 @@ function Nt(s, e, t, c, i, l) {
1355
1360
  header: S,
1356
1361
  item: a
1357
1362
  }, void 0, !0)
1358
- ], 2)) : g("", !0)
1363
+ ], 2)) : h("", !0)
1359
1364
  ], 64))), 128))
1360
- ], 10, kt))), 128))
1365
+ ], 10, Ct))), 128))
1361
1366
  ])
1362
1367
  ]))
1363
1368
  ])
1364
1369
  ]),
1365
- o("div", _t, [
1366
- i.totalPages && i.totalPages > 1 ? (n(), r("div", Pt, [
1367
- o("ul", It, [
1368
- o("li", Dt, [
1370
+ o("div", It, [
1371
+ i.totalPages && i.totalPages > 1 ? (n(), r("div", Dt, [
1372
+ o("ul", Mt, [
1373
+ o("li", Bt, [
1369
1374
  o("a", {
1370
1375
  class: f(["page-link", { disabled: i.currentPage === 1 }]),
1371
1376
  onClick: e[7] || (e[7] = (a) => i.currentPage = 1)
1372
1377
  }, " « ", 2)
1373
1378
  ]),
1374
- o("li", Mt, [
1379
+ o("li", At, [
1375
1380
  o("a", {
1376
1381
  class: f(["page-link", { disabled: i.currentPage === 1 }]),
1377
1382
  onClick: e[8] || (e[8] = (a) => i.currentPage -= 1)
1378
1383
  }, " < ", 2)
1379
1384
  ]),
1380
- (n(!0), r(y, null, v(l.currentDisplayPagination, (a) => (n(), r("li", {
1385
+ (n(!0), r(y, null, C(l.currentDisplayPagination, (a) => (n(), r("li", {
1381
1386
  key: a,
1382
1387
  class: f(["page-item hoverable", { active: i.currentPage === a }])
1383
1388
  }, [
1384
1389
  o("a", {
1385
1390
  class: "page-link",
1386
- onClick: (h) => i.currentPage = a
1387
- }, p(a), 9, Bt)
1391
+ onClick: (g) => i.currentPage = a
1392
+ }, p(a), 9, Tt)
1388
1393
  ], 2))), 128)),
1389
- o("li", At, [
1394
+ o("li", zt, [
1390
1395
  o("a", {
1391
1396
  class: f(["page-link", { disabled: i.currentPage === i.totalPages }]),
1392
1397
  onClick: e[9] || (e[9] = (a) => i.currentPage += 1)
1393
1398
  }, " > ", 2)
1394
1399
  ]),
1395
- o("li", Tt, [
1400
+ o("li", Ft, [
1396
1401
  o("a", {
1397
1402
  class: f(["page-link", { disabled: i.currentPage === i.totalPages }]),
1398
1403
  onClick: e[10] || (e[10] = (a) => i.currentPage = i.totalPages)
1399
1404
  }, " » ", 2)
1400
1405
  ])
1401
1406
  ])
1402
- ])) : g("", !0),
1403
- t.showModifyColumnsBtn ? (n(), r("div", zt, [
1404
- o("div", Ft, [
1405
- i.headerEditMode ? (n(), r("div", Lt, [
1407
+ ])) : h("", !0),
1408
+ t.showModifyColumnsBtn ? (n(), r("div", Lt, [
1409
+ o("div", Nt, [
1410
+ i.headerEditMode ? (n(), r("div", jt, [
1406
1411
  o("button", {
1407
1412
  id: "btn-save-table",
1408
1413
  class: "btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2",
@@ -1423,13 +1428,13 @@ function Nt(s, e, t, c, i, l) {
1423
1428
  onClick: e[13] || (e[13] = (...a) => l.editTablePreferences && l.editTablePreferences(...a))
1424
1429
  }, " Modifier colonnes "))
1425
1430
  ])
1426
- ])) : g("", !0)
1431
+ ])) : h("", !0)
1427
1432
  ])
1428
1433
  ], 64);
1429
1434
  }
1430
- const Os = /* @__PURE__ */ C(ut, [["render", Nt], ["__scopeId", "data-v-6b16b420"]]);
1435
+ const Us = /* @__PURE__ */ v(mt, [["render", qt], ["__scopeId", "data-v-6b16b420"]]);
1431
1436
  M.add(ie, ne, oe, ae);
1432
- const jt = {
1437
+ const Vt = {
1433
1438
  name: "AmsomPagination",
1434
1439
  components: {
1435
1440
  FontAwesomeIcon: D
@@ -1474,39 +1479,39 @@ const jt = {
1474
1479
  else {
1475
1480
  let e, t;
1476
1481
  this.totalDisplayPages % 2 === 0 ? (e = this.modelValue - Math.floor(this.totalDisplayPages / 2) + 1, t = this.modelValue + Math.floor(this.totalDisplayPages / 2)) : (e = this.modelValue - Math.floor(this.totalDisplayPages / 2), t = this.modelValue + Math.floor(this.totalDisplayPages / 2)), e < 1 && (e = 1, t = this.totalDisplayPages), t > this.totalPages && (t = this.totalPages, e = this.totalPages - this.totalDisplayPages + 1);
1477
- for (let c = e; c <= t; c++)
1478
- s.push(c);
1482
+ for (let u = e; u <= t; u++)
1483
+ s.push(u);
1479
1484
  }
1480
1485
  return s;
1481
1486
  }
1482
1487
  }
1483
- }, qt = {
1488
+ }, Et = {
1484
1489
  key: 0,
1485
1490
  class: "w-100 user-select-none"
1486
- }, Vt = { class: "pagination pagination mb-0" }, Et = { class: "page-item" }, Ht = { class: "page-item" }, Ot = ["onClick"], Yt = { class: "page-item" }, Ut = { class: "page-item" };
1487
- function Wt(s, e, t, c, i, l) {
1488
- const u = x("font-awesome-icon");
1489
- return t.totalPages && t.totalPages > 1 ? (n(), r("div", qt, [
1490
- o("ul", Vt, [
1491
- o("li", Et, [
1491
+ }, Ht = { class: "pagination pagination mb-0" }, Ot = { class: "page-item" }, Yt = { class: "page-item" }, Ut = ["onClick"], Wt = { class: "page-item" }, Rt = { class: "page-item" };
1492
+ function Kt(s, e, t, u, i, l) {
1493
+ const c = x("font-awesome-icon");
1494
+ return t.totalPages && t.totalPages > 1 ? (n(), r("div", Et, [
1495
+ o("ul", Ht, [
1496
+ o("li", Ot, [
1492
1497
  o("span", {
1493
1498
  role: "button",
1494
1499
  class: f(["page-link", { disabled: t.modelValue === 1 }]),
1495
1500
  onClick: e[0] || (e[0] = (...d) => l.goFirstPage && l.goFirstPage(...d))
1496
1501
  }, [
1497
- b(u, { icon: "fa-angles-left" })
1502
+ b(c, { icon: "fa-angles-left" })
1498
1503
  ], 2)
1499
1504
  ]),
1500
- o("li", Ht, [
1505
+ o("li", Yt, [
1501
1506
  o("span", {
1502
1507
  role: "button",
1503
1508
  class: f(["page-link", { disabled: t.modelValue === 1 }]),
1504
1509
  onClick: e[1] || (e[1] = (...d) => l.goPreviousPage && l.goPreviousPage(...d))
1505
1510
  }, [
1506
- b(u, { icon: "fa-angle-left" })
1511
+ b(c, { icon: "fa-angle-left" })
1507
1512
  ], 2)
1508
1513
  ]),
1509
- (n(!0), r(y, null, v(l.toDisplayPagination, (d) => (n(), r("li", {
1514
+ (n(!0), r(y, null, C(l.toDisplayPagination, (d) => (n(), r("li", {
1510
1515
  key: d,
1511
1516
  class: f(["page-item", { active: t.modelValue === d }])
1512
1517
  }, [
@@ -1514,30 +1519,30 @@ function Wt(s, e, t, c, i, l) {
1514
1519
  role: "button",
1515
1520
  class: "page-link",
1516
1521
  onClick: (m) => l.goToPage(d)
1517
- }, p(d), 9, Ot)
1522
+ }, p(d), 9, Ut)
1518
1523
  ], 2))), 128)),
1519
- o("li", Yt, [
1524
+ o("li", Wt, [
1520
1525
  o("span", {
1521
1526
  role: "button",
1522
1527
  class: f(["page-link", { disabled: t.modelValue === t.totalPages }]),
1523
1528
  onClick: e[2] || (e[2] = (...d) => l.goNextPage && l.goNextPage(...d))
1524
1529
  }, [
1525
- b(u, { icon: "fa-angle-right" })
1530
+ b(c, { icon: "fa-angle-right" })
1526
1531
  ], 2)
1527
1532
  ]),
1528
- o("li", Ut, [
1533
+ o("li", Rt, [
1529
1534
  o("span", {
1530
1535
  role: "button",
1531
1536
  class: f(["page-link", { disabled: t.modelValue === t.totalPages }]),
1532
1537
  onClick: e[3] || (e[3] = (...d) => l.goLastPage && l.goLastPage(...d))
1533
1538
  }, [
1534
- b(u, { icon: "fa-angles-right" })
1539
+ b(c, { icon: "fa-angles-right" })
1535
1540
  ], 2)
1536
1541
  ])
1537
1542
  ])
1538
- ])) : g("", !0);
1543
+ ])) : h("", !0);
1539
1544
  }
1540
- const Ys = /* @__PURE__ */ C(jt, [["render", Wt]]), Rt = {
1545
+ const Ws = /* @__PURE__ */ v(Vt, [["render", Kt]]), Gt = {
1541
1546
  name: "AmsomSkeleton",
1542
1547
  props: {
1543
1548
  /**
@@ -1559,24 +1564,24 @@ const Ys = /* @__PURE__ */ C(jt, [["render", Wt]]), Rt = {
1559
1564
  }
1560
1565
  }
1561
1566
  };
1562
- function Kt(s, e, t, c, i, l) {
1567
+ function Jt(s, e, t, u, i, l) {
1563
1568
  return n(), r("div", {
1564
1569
  class: f(["container row placeholder-wave", t.rowClass])
1565
1570
  }, [
1566
- (n(!0), r(y, null, v(t.config, (u, d) => (n(), r("div", {
1571
+ (n(!0), r(y, null, C(t.config, (c, d) => (n(), r("div", {
1567
1572
  key: d,
1568
- class: f(["placeholder mt-1", [t.loaderClass, "col-" + u]])
1573
+ class: f(["placeholder mt-1", [t.loaderClass, "col-" + c]])
1569
1574
  }, null, 2))), 128))
1570
1575
  ], 2);
1571
1576
  }
1572
- const Gt = /* @__PURE__ */ C(Rt, [["render", Kt]]);
1577
+ const Zt = /* @__PURE__ */ v(Gt, [["render", Jt]]);
1573
1578
  M.add(re, q);
1574
- const Jt = {
1579
+ const Qt = {
1575
1580
  name: "AmsomDocumentList",
1576
1581
  components: {
1577
- AmsomSkeleton: Gt,
1582
+ AmsomSkeleton: Zt,
1578
1583
  AmsomOverlay: Z,
1579
- AmsomCard: je,
1584
+ AmsomCard: Ve,
1580
1585
  FontAwesomeIcon: D
1581
1586
  },
1582
1587
  props: {
@@ -1619,8 +1624,8 @@ const Jt = {
1619
1624
  },
1620
1625
  async downloadFile(s, e) {
1621
1626
  this.processing = !0;
1622
- let t = this.anonym ? "Document " + (e + 1) : (s == null ? void 0 : s.titre) ?? "Document", c = await this.getDocumentBlob(s);
1623
- be(c, t), this.processing = !1;
1627
+ let t = this.anonym ? "Document " + (e + 1) : (s == null ? void 0 : s.titre) ?? "Document", u = await this.getDocumentBlob(s);
1628
+ be(u, t), this.processing = !1;
1624
1629
  },
1625
1630
  async viewFile(s) {
1626
1631
  this.processing = !0;
@@ -1628,50 +1633,50 @@ const Jt = {
1628
1633
  ye(e), this.processing = !1;
1629
1634
  }
1630
1635
  }
1631
- }, Zt = { key: 0 }, Qt = { class: "d-flex justify-content-between text-primary" }, Xt = { class: "mb-0" }, $t = { class: "mb-0" }, es = ["onClick"], ts = {
1636
+ }, Xt = { key: 0 }, $t = { class: "d-flex justify-content-between text-primary" }, es = { class: "mb-0" }, ts = { class: "mb-0" }, ss = ["onClick"], ls = {
1632
1637
  role: "button",
1633
1638
  class: "d-flex justify-content-between align-items-center p-2 px-3 text-secondary"
1634
- }, ss = { key: 0 }, ls = { key: 1 };
1635
- function is(s, e, t, c, i, l) {
1636
- const u = x("amsom-skeleton"), d = x("font-awesome-icon"), m = x("amsom-card"), a = x("amsom-overlay");
1639
+ }, is = { key: 0 }, ns = { key: 1 };
1640
+ function os(s, e, t, u, i, l) {
1641
+ const c = x("amsom-skeleton"), d = x("font-awesome-icon"), m = x("amsom-card"), a = x("amsom-overlay");
1637
1642
  return n(), k(a, { loading: i.processing }, {
1638
1643
  default: z(() => [
1639
1644
  b(m, null, {
1640
1645
  default: z(() => {
1641
- var h;
1646
+ var g;
1642
1647
  return [
1643
1648
  o("h5", null, p(t.title), 1),
1644
1649
  t.loading ? (n(), r(y, { key: 0 }, [
1645
- b(u, {
1650
+ b(c, {
1646
1651
  config: [3, 3],
1647
1652
  "row-class": "justify-content-between"
1648
1653
  }),
1649
- b(u, { config: [12] })
1654
+ b(c, { config: [12] })
1650
1655
  ], 64)) : (n(), r(y, { key: 1 }, [
1651
- (h = t.documentList) != null && h.length ? (n(!0), r(y, { key: 1 }, v(t.documentList, (S, B) => (n(), r("div", {
1656
+ (g = t.documentList) != null && g.length ? (n(!0), r(y, { key: 1 }, C(t.documentList, (S, B) => (n(), r("div", {
1652
1657
  key: B,
1653
1658
  class: "document-item pt-2"
1654
1659
  }, [
1655
- o("div", Qt, [
1656
- o("p", Xt, p(S.categorie), 1),
1657
- o("p", $t, p(l.unixToDateString(S.dateFichier)), 1)
1660
+ o("div", $t, [
1661
+ o("p", es, p(S.categorie), 1),
1662
+ o("p", ts, p(l.unixToDateString(S.dateFichier)), 1)
1658
1663
  ]),
1659
1664
  o("div", {
1660
1665
  class: "bg-primary bg-opacity-25 mt-0 rounded-3",
1661
- onClick: (Ms) => l.handleClick(S, B)
1666
+ onClick: (As) => l.handleClick(S, B)
1662
1667
  }, [
1663
- o("div", ts, [
1664
- t.anonym ? (n(), r("strong", ls, "Document " + p(B + 1), 1)) : (n(), r("strong", ss, p(S.titre), 1)),
1668
+ o("div", ls, [
1669
+ t.anonym ? (n(), r("strong", ns, "Document " + p(B + 1), 1)) : (n(), r("strong", is, p(S.titre), 1)),
1665
1670
  t.clickAction === "download" ? (n(), k(d, {
1666
1671
  key: 2,
1667
1672
  icon: "fa-solid fa-cloud-arrow-down"
1668
1673
  })) : t.clickAction === "view" ? (n(), k(d, {
1669
1674
  key: 3,
1670
1675
  icon: "fa-solid fa-eye"
1671
- })) : g("", !0)
1676
+ })) : h("", !0)
1672
1677
  ])
1673
- ], 8, es)
1674
- ]))), 128)) : (n(), r("div", Zt, [...e[0] || (e[0] = [
1678
+ ], 8, ss)
1679
+ ]))), 128)) : (n(), r("div", Xt, [...e[0] || (e[0] = [
1675
1680
  o("p", null, "Aucun document", -1)
1676
1681
  ])]))
1677
1682
  ], 64))
@@ -1683,9 +1688,9 @@ function is(s, e, t, c, i, l) {
1683
1688
  _: 1
1684
1689
  }, 8, ["loading"]);
1685
1690
  }
1686
- const Us = /* @__PURE__ */ C(Jt, [["render", is]]);
1687
- M.add(de, q, K, ue, ce, me);
1688
- const ns = window.File_native ?? window.File, os = {
1691
+ const Rs = /* @__PURE__ */ v(Qt, [["render", os]]);
1692
+ M.add(de, q, K, ce, ue, me);
1693
+ const as = window.File_native ?? window.File, rs = {
1689
1694
  name: "AmsomUploadFile",
1690
1695
  components: { FontAwesomeIcon: D, AmsomOverlay: Z },
1691
1696
  props: ["name", "pjName", "fileName", "subText", "title", "required", "label", "modelValue", "gedFile", "readStatus", "readOnly", "rejectStatus", "clickFileHandler"],
@@ -1734,8 +1739,8 @@ const ns = window.File_native ?? window.File, os = {
1734
1739
  this.fileDragged = !1;
1735
1740
  const e = s.dataTransfer ? [...s.dataTransfer.files] : [...s.target.files];
1736
1741
  let t = !0;
1737
- for (let c of e)
1738
- if (!await j(c) && !await ke(c)) {
1742
+ for (let u of e)
1743
+ if (!await j(u) && !await ke(u)) {
1739
1744
  t = !1;
1740
1745
  break;
1741
1746
  }
@@ -1757,20 +1762,20 @@ const ns = window.File_native ?? window.File, os = {
1757
1762
  },
1758
1763
  async uploadImage() {
1759
1764
  this.$emit("fileLoading", !0), this.fileLoading = !0;
1760
- let s = new ve(), e = this.fileToUpload;
1765
+ let s = new _e(), e = this.fileToUpload;
1761
1766
  for (let l of e)
1762
1767
  if (await j(l)) {
1763
- let u = await G({
1768
+ let c = await G({
1764
1769
  file: l,
1765
1770
  maxWidth: 795,
1766
1771
  maxHeigth: 1125
1767
- }), d = Se(u);
1772
+ }), d = Se(c);
1768
1773
  await s.add(d);
1769
1774
  } else
1770
1775
  await s.add(l);
1771
- let t = await s.saveAsBlob(), c = new ns([t], "doc.pdf", {
1776
+ let t = await s.saveAsBlob(), u = new as([t], "doc.pdf", {
1772
1777
  type: "application/pdf"
1773
- }), i = await J(c, "pdf");
1778
+ }), i = await J(u, "pdf");
1774
1779
  i.name = this.fileName, this.finalFile = i, this.emitFile(), this.$emit("fileLoading", !1), this.fileLoading = !1;
1775
1780
  },
1776
1781
  emitFile() {
@@ -1780,57 +1785,57 @@ const ns = window.File_native ?? window.File, os = {
1780
1785
  this.finalFile = null, this.emitFile(), this.$emit("deleteFile"), this.fileToUpload = [];
1781
1786
  }
1782
1787
  }
1783
- }, as = { class: "position-relative" }, rs = ["id"], ds = ["id", "for"], us = { class: "" }, cs = { class: "flex-grow-1" }, ms = { class: "fs-6 fw-bold" }, fs = {
1788
+ }, ds = { class: "position-relative" }, cs = ["id"], us = ["id", "for"], ms = { class: "" }, fs = { class: "flex-grow-1" }, hs = { class: "fs-6 fw-bold" }, gs = {
1784
1789
  class: "text-primary form-text fst-italic",
1785
1790
  style: { "font-size": "smaller" }
1786
- }, gs = ["id", "required", "name"], hs = {
1791
+ }, ps = ["id", "required", "name"], ys = {
1787
1792
  key: 1,
1788
1793
  class: "w-100"
1789
- }, ps = {
1794
+ }, bs = {
1790
1795
  key: 0,
1791
1796
  class: "text-decoration-underline"
1792
- }, ys = { class: "p-2 d-flex align-items-center" }, bs = {
1797
+ }, Ss = { class: "p-2 d-flex align-items-center" }, xs = {
1793
1798
  key: 3,
1794
1799
  class: "text-muted"
1795
- }, Ss = {
1800
+ }, ks = {
1796
1801
  key: 0,
1797
1802
  class: "me-2"
1798
- }, xs = ["id"], ks = ["id"], ws = { key: 1 }, Cs = ["id"];
1799
- function vs(s, e, t, c, i, l) {
1800
- const u = x("font-awesome-icon"), d = x("amsom-overlay");
1803
+ }, ws = ["id"], Cs = ["id"], _s = { key: 1 }, vs = ["id"];
1804
+ function Ps(s, e, t, u, i, l) {
1805
+ const c = x("font-awesome-icon"), d = x("amsom-overlay");
1801
1806
  return n(), k(d, { loading: i.fileLoading }, {
1802
1807
  default: z(() => {
1803
1808
  var m;
1804
1809
  return [
1805
- o("div", as, [
1806
- (m = i.finalFile) != null && m.file ? (n(), r("div", hs, [
1807
- t.title ? (n(), r("h5", ps, p(t.title), 1)) : g("", !0),
1808
- o("div", ys, [
1810
+ o("div", ds, [
1811
+ (m = i.finalFile) != null && m.file ? (n(), r("div", ys, [
1812
+ t.title ? (n(), r("h5", bs, p(t.title), 1)) : h("", !0),
1813
+ o("div", Ss, [
1809
1814
  o("div", {
1810
1815
  role: "button",
1811
1816
  class: "hoverable flex-grow-1",
1812
1817
  onClick: e[8] || (e[8] = (a) => l.clickFile(i.finalFile.file))
1813
1818
  }, [
1814
- t.rejectStatus ? (n(), k(u, {
1819
+ t.rejectStatus ? (n(), k(c, {
1815
1820
  key: 0,
1816
1821
  icon: "fa-solid fa-exclamation-triangle",
1817
1822
  class: "text-danger me-1"
1818
- })) : g("", !0),
1819
- t.readStatus === "read" ? (n(), k(u, {
1823
+ })) : h("", !0),
1824
+ t.readStatus === "read" ? (n(), k(c, {
1820
1825
  key: 1,
1821
1826
  icon: "fa-solid fa-eye",
1822
1827
  class: "text-amsom-green me-1"
1823
- })) : g("", !0),
1824
- t.readStatus === "unread" ? (n(), k(u, {
1828
+ })) : h("", !0),
1829
+ t.readStatus === "unread" ? (n(), k(c, {
1825
1830
  key: 2,
1826
1831
  icon: "fa-solid fa-eye-slash",
1827
1832
  class: "text-warning me-1"
1828
- })) : g("", !0),
1829
- b(u, { icon: "fa-solid fa-solid fa-paperclip" }),
1833
+ })) : h("", !0),
1834
+ b(c, { icon: "fa-solid fa-solid fa-paperclip" }),
1830
1835
  A(" " + p(t.pjName), 1),
1831
- i.fileToUpload.length > 1 ? (n(), r("small", bs, " (" + p(i.fileToUpload.length) + " Fichiers)", 1)) : g("", !0)
1836
+ i.fileToUpload.length > 1 ? (n(), r("small", xs, " (" + p(i.fileToUpload.length) + " Fichiers)", 1)) : h("", !0)
1832
1837
  ]),
1833
- t.readOnly ? g("", !0) : N((n(), r("div", Ss, [
1838
+ t.readOnly ? h("", !0) : N((n(), r("div", ks, [
1834
1839
  o("input", {
1835
1840
  id: "fileUpload-" + t.name,
1836
1841
  type: "file",
@@ -1839,14 +1844,14 @@ function vs(s, e, t, c, i, l) {
1839
1844
  hidden: "",
1840
1845
  multiple: "",
1841
1846
  onChange: e[9] || (e[9] = (...a) => l.addPj && l.addPj(...a))
1842
- }, null, 40, xs),
1847
+ }, null, 40, ws),
1843
1848
  o("button", {
1844
1849
  id: "add-field-" + t.name,
1845
1850
  type: "button",
1846
1851
  class: "btn btn-primary rounded-5 fs-7 py-0 me-1",
1847
1852
  onClick: e[10] || (e[10] = (...a) => l.clickAddPj && l.clickAddPj(...a))
1848
1853
  }, [
1849
- b(u, {
1854
+ b(c, {
1850
1855
  icon: "fa-solid fa-file-circle-plus",
1851
1856
  class: "me-1"
1852
1857
  }),
@@ -1854,17 +1859,17 @@ function vs(s, e, t, c, i, l) {
1854
1859
  A(" Ajouter"),
1855
1860
  o("span", { class: "d-none d-md-block" }, " un document")
1856
1861
  ], -1))
1857
- ], 8, ks)
1862
+ ], 8, Cs)
1858
1863
  ], 512)), [
1859
- [he, i.fileToUpload.length > 0]
1864
+ [ge, i.fileToUpload.length > 0]
1860
1865
  ]),
1861
- t.readOnly ? g("", !0) : (n(), r("div", ws, [
1866
+ t.readOnly ? h("", !0) : (n(), r("div", _s, [
1862
1867
  o("button", {
1863
1868
  id: "delete-all-pj-" + t.name,
1864
1869
  type: "button",
1865
1870
  class: "btn btn-link text-danger hoverable text-decoration-underline p-0",
1866
1871
  onClick: e[11] || (e[11] = (...a) => l.deletePj && l.deletePj(...a))
1867
- }, " Supprimer ", 8, Cs)
1872
+ }, " Supprimer ", 8, vs)
1868
1873
  ]))
1869
1874
  ])
1870
1875
  ])) : (n(), r("div", {
@@ -1887,16 +1892,16 @@ function vs(s, e, t, c, i, l) {
1887
1892
  onDragenter: e[6] || (e[6] = w((a) => i.fileDragged = !0, ["prevent", "stop"])),
1888
1893
  onDragleave: e[7] || (e[7] = w((a) => i.fileDragged = !1, ["prevent", "stop"]))
1889
1894
  }, [
1890
- o("div", us, [
1891
- b(u, {
1895
+ o("div", ms, [
1896
+ b(c, {
1892
1897
  icon: ["fas", "cloud-arrow-up"],
1893
1898
  size: "3x",
1894
1899
  "beat-fade": i.fileDragged
1895
1900
  }, null, 8, ["beat-fade"])
1896
1901
  ]),
1897
- o("div", cs, [
1898
- o("div", ms, p(t.label ?? t.pjName), 1),
1899
- o("small", fs, p(t.subText), 1),
1902
+ o("div", fs, [
1903
+ o("div", hs, p(t.label ?? t.pjName), 1),
1904
+ o("small", gs, p(t.subText), 1),
1900
1905
  e[12] || (e[12] = o("hr", { class: "mx-auto w-50 m-0 mb-1" }, null, -1)),
1901
1906
  e[13] || (e[13] = o("small", {
1902
1907
  class: "d-block text-muted",
@@ -1918,16 +1923,16 @@ function vs(s, e, t, c, i, l) {
1918
1923
  required: t.required,
1919
1924
  name: "pj" + t.name,
1920
1925
  onChange: e[0] || (e[0] = (...a) => l.addPj && l.addPj(...a))
1921
- }, null, 40, gs)
1922
- ], 42, ds)
1923
- ], 8, rs))
1926
+ }, null, 40, ps)
1927
+ ], 42, us)
1928
+ ], 8, cs))
1924
1929
  ])
1925
1930
  ];
1926
1931
  }),
1927
1932
  _: 1
1928
1933
  }, 8, ["loading"]);
1929
1934
  }
1930
- const Ws = /* @__PURE__ */ C(os, [["render", vs]]), _s = {
1935
+ const Ks = /* @__PURE__ */ v(rs, [["render", Ps]]), Is = {
1931
1936
  name: "SliderSwitch",
1932
1937
  props: {
1933
1938
  listSection: {
@@ -1973,9 +1978,9 @@ const Ws = /* @__PURE__ */ C(os, [["render", vs]]), _s = {
1973
1978
  if (!s) {
1974
1979
  const t = this.$el.querySelector("#switch-section-1");
1975
1980
  if (!t) return;
1976
- const c = this.$el.querySelector(".slider");
1977
- if (!c) return;
1978
- c.style.width = `${t.offsetWidth}px`, c.style.height = `${t.offsetHeight}px`, c.style.left = `${t.offsetLeft}px`;
1981
+ const u = this.$el.querySelector(".slider");
1982
+ if (!u) return;
1983
+ u.style.width = `${t.offsetWidth}px`, u.style.height = `${t.offsetHeight}px`, u.style.left = `${t.offsetLeft}px`;
1979
1984
  return;
1980
1985
  }
1981
1986
  const e = this.$el.querySelector(".slider");
@@ -1992,19 +1997,19 @@ const Ws = /* @__PURE__ */ C(os, [["render", vs]]), _s = {
1992
1997
  e.style.width = t.clientWidth + "px", e.style.left = t.offsetLeft + "px";
1993
1998
  }
1994
1999
  }
1995
- }, Ps = {
2000
+ }, Ds = {
1996
2001
  class: "d-flex align-items-center justify-content-center mb-2 w-100 p-0",
1997
2002
  style: { "border-radius": "1em" }
1998
- }, Is = ["id", "onClick"];
1999
- function Ds(s, e, t, c, i, l) {
2000
- return n(), r("div", Ps, [
2003
+ }, Ms = ["id", "onClick"];
2004
+ function Bs(s, e, t, u, i, l) {
2005
+ return n(), r("div", Ds, [
2001
2006
  o("ul", {
2002
2007
  id: "switch-section",
2003
2008
  class: f(["d-flex justify-content-center rounded-5 p-2 m-0 position-relative w-100", [t.containerClass, { disabled: t.disabled }]])
2004
2009
  }, [
2005
- (n(!0), r(y, null, v(t.listSection, (u) => (n(), r("li", {
2006
- id: "switch-section-" + u.id,
2007
- key: u.id,
2010
+ (n(!0), r(y, null, C(t.listSection, (c) => (n(), r("li", {
2011
+ id: "switch-section-" + c.id,
2012
+ key: c.id,
2008
2013
  class: f(["rounded-5 px-4 py-2 w-100 text-center", [
2009
2014
  t.itemClass,
2010
2015
  {
@@ -2013,27 +2018,27 @@ function Ds(s, e, t, c, i, l) {
2013
2018
  }
2014
2019
  ]]),
2015
2020
  role: "button",
2016
- onClick: (d) => l.switchSection(u.id)
2017
- }, p(u.name), 11, Is))), 128)),
2021
+ onClick: (d) => l.switchSection(c.id)
2022
+ }, p(c.name), 11, Ms))), 128)),
2018
2023
  o("span", {
2019
2024
  class: f(["slider position-absolute", t.bubbleClass])
2020
2025
  }, null, 2)
2021
2026
  ], 2)
2022
2027
  ]);
2023
2028
  }
2024
- const Rs = /* @__PURE__ */ C(_s, [["render", Ds], ["__scopeId", "data-v-02559b82"]]);
2029
+ const Gs = /* @__PURE__ */ v(Is, [["render", Bs], ["__scopeId", "data-v-02559b82"]]);
2025
2030
  export {
2026
- je as AmsomCard,
2027
- Us as AmsomDocumentList,
2028
- Es as AmsomHorizontalStepper,
2029
- Hs as AmsomImage,
2030
- Ae as AmsomModal,
2031
+ Ve as AmsomCard,
2032
+ Rs as AmsomDocumentList,
2033
+ Os as AmsomHorizontalStepper,
2034
+ Ys as AmsomImage,
2035
+ ze as AmsomModal,
2031
2036
  Z as AmsomOverlay,
2032
- Ys as AmsomPagination,
2033
- Gt as AmsomSkeleton,
2034
- Rs as AmsomSliderSwitch,
2035
- Os as AmsomTableDraggable,
2036
- Ws as AmsomUploadFile,
2037
- Vs as AmsomVerticalStepper,
2038
- Ae as default
2037
+ Ws as AmsomPagination,
2038
+ Zt as AmsomSkeleton,
2039
+ Gs as AmsomSliderSwitch,
2040
+ Us as AmsomTableDraggable,
2041
+ Ks as AmsomUploadFile,
2042
+ Hs as AmsomVerticalStepper,
2043
+ ze as default
2039
2044
  };