@rocketui/vue 0.2.1 → 0.2.2-2.alpha.0

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, openBlock as m, createElementBlock as n, createElementVNode as u, unref as M1, reactive as m1, Fragment as V1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as c, mergeProps as Z2, createBlock as _, watch as $, getCurrentScope as u2, onScopeDispose as S2, ref as N, watchEffect as j1, onMounted as X1, Teleport as s2, withCtx as r1, withDirectives as Y1, withModifiers as d1, withKeys as N1, vModelText as c2, createTextVNode as R1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, Transition as f2, resolveComponent as h2, provide as k1, resolveDynamicComponent as g2, inject as B1 } from "vue";
1
+ import { defineComponent as T, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as V1, reactive as Z1, Fragment as i1, renderList as o1, normalizeClass as c, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as p, mergeProps as j1, createBlock as _, watch as G, getCurrentScope as Z2, onScopeDispose as u2, ref as W, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as n1, withDirectives as Y1, withModifiers as e1, withKeys as N1, vModelText as c2, createTextVNode as R1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, Transition as f2, resolveComponent as h2, provide as s1, resolveDynamicComponent as g2, inject as c1 } from "vue";
2
2
  const k2 = {
3
3
  mdiAbTesting: "M4 2A2 2 0 0 0 2 4V12H4V8H6V12H8V4A2 2 0 0 0 6 2H4M4 4H6V6H4M22 15.5V14A2 2 0 0 0 20 12H16V22H20A2 2 0 0 0 22 20V18.5A1.54 1.54 0 0 0 20.5 17A1.54 1.54 0 0 0 22 15.5M20 20H18V18H20V20M20 16H18V14H20M5.79 21.61L4.21 20.39L18.21 2.39L19.79 3.61Z",
4
4
  mdiAbacus: "M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",
@@ -7296,7 +7296,7 @@ const k2 = {
7296
7296
  mdiZodiacScorpio: "M17.71,15.29L16.29,16.71L17.59,18H16A2,2 0 0,1 14,16V6A3,3 0 0,0 11,3C10.25,3 9.55,3.29 9,3.78C7.86,2.76 6.14,2.76 5,3.78C4.45,3.28 3.74,3 3,3V5A1,1 0 0,1 4,6V16H6V6A1,1 0 0,1 7,5A1,1 0 0,1 8,6V16H10V6A1,1 0 0,1 11,5A1,1 0 0,1 12,6V16A4,4 0 0,0 16,20H17.59L16.29,21.29L17.71,22.71L21.41,19L17.71,15.29Z",
7297
7297
  mdiZodiacTaurus: "M15.59,9C17.7,7.74 19,5.46 19,3H17A5,5 0 0,1 12,8A5,5 0 0,1 7,3H5C5,5.46 6.3,7.74 8.41,9C5.09,11 4,15.28 6,18.6C7.97,21.92 12.27,23 15.59,21C18.91,19.04 20,14.74 18,11.42C17.42,10.43 16.58,9.59 15.59,9M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20Z",
7298
7298
  mdiZodiacVirgo: "M18.5,19.13C20,17.77 20,15.18 20,14A4,4 0 0,0 16,10C15.3,10 14.6,10.2 14,10.56V6A3,3 0 0,0 11,3C10.25,3 9.55,3.29 9,3.78C7.86,2.76 6.14,2.76 5,3.78C4.45,3.28 3.74,3 3,3V5A1,1 0 0,1 4,6V16H6V6A1,1 0 0,1 7,5A1,1 0 0,1 8,6V16H10V6A1,1 0 0,1 11,5A1,1 0 0,1 12,6V14C12,15.18 12,17.77 13.5,19.13C12.72,19.54 11.88,19.84 11,20V22C12.29,22 14.84,20.74 16,20.13C17.16,20.74 19.71,22 21,22V20C20.12,19.84 19.28,19.54 18.5,19.13M16,12A2,2 0 0,1 18,14C18,16.92 17.46,18 16,18C14.54,18 14,16.92 14,14A2,2 0 0,1 16,12Z"
7299
- }, B2 = ["height", "viewBox", "width"], b2 = ["d"], D = /* @__PURE__ */ T({
7299
+ }, B2 = ["height", "viewBox", "width"], b2 = ["d"], x = /* @__PURE__ */ T({
7300
7300
  __name: "RIcon",
7301
7301
  props: {
7302
7302
  name: { default: "" },
@@ -7305,24 +7305,24 @@ const k2 = {
7305
7305
  },
7306
7306
  setup(H) {
7307
7307
  const V = H;
7308
- return (C, M) => (m(), n("svg", {
7308
+ return (C, M) => (m(), Z("svg", {
7309
7309
  class: "r-icon",
7310
7310
  height: V.size,
7311
7311
  viewBox: V.viewBox,
7312
7312
  width: V.size
7313
7313
  }, [
7314
- u("path", {
7315
- d: M1(k2)[V.name]
7314
+ S("path", {
7315
+ d: V1(k2)[V.name]
7316
7316
  }, null, 8, b2)
7317
7317
  ], 8, B2));
7318
7318
  }
7319
- }), w2 = ["data-state"], y2 = ["onClick"], P2 = { class: "r-accordion__title" }, v2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, A0 = /* @__PURE__ */ T({
7319
+ }), w2 = ["data-state"], y2 = ["onClick"], P2 = { class: "r-accordion__title" }, v2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, M0 = /* @__PURE__ */ T({
7320
7320
  __name: "RAccordion",
7321
7321
  props: {
7322
7322
  accordions: {}
7323
7323
  },
7324
7324
  setup(H) {
7325
- const V = H, C = m1(
7325
+ const V = H, C = Z1(
7326
7326
  V.accordions.map(({ title: A, content: L }, i) => ({
7327
7327
  title: A,
7328
7328
  content: L,
@@ -7335,27 +7335,27 @@ const k2 = {
7335
7335
  C[i].open = i === A ? !C[i].open : !1;
7336
7336
  });
7337
7337
  }
7338
- return (A, L) => (m(!0), n(V1, null, A1(C, (i, e) => (m(), n("div", {
7338
+ return (A, L) => (m(!0), Z(i1, null, o1(C, (i, e) => (m(), Z("div", {
7339
7339
  key: e,
7340
- class: p(["r-accordion", {
7340
+ class: c(["r-accordion", {
7341
7341
  "r-accordion--disabled": i.disabled
7342
7342
  }]),
7343
7343
  "data-state": i.open ? "opened" : "closed"
7344
7344
  }, [
7345
- u("div", {
7345
+ S("div", {
7346
7346
  class: "r-accordion__header",
7347
- onClick: (t) => M(e)
7347
+ onClick: (d) => M(e)
7348
7348
  }, [
7349
7349
  f(A.$slots, "title", {}, () => [
7350
- u("div", P2, w(i.title), 1)
7350
+ S("div", P2, w(i.title), 1)
7351
7351
  ]),
7352
- u("div", v2, [
7353
- K(D, { name: "mdiChevronUp" })
7352
+ S("div", v2, [
7353
+ K(x, { name: "mdiChevronUp" })
7354
7354
  ])
7355
7355
  ], 8, y2),
7356
- u("div", T2, [
7356
+ S("div", T2, [
7357
7357
  f(A.$slots, "content", {}, () => [
7358
- u("span", null, w(i.content), 1)
7358
+ S("span", null, w(i.content), 1)
7359
7359
  ])
7360
7360
  ])
7361
7361
  ], 10, w2))), 128));
@@ -7366,7 +7366,7 @@ const k2 = {
7366
7366
  }, _2 = {
7367
7367
  key: 0,
7368
7368
  class: "r-alert__close"
7369
- }, i0 = /* @__PURE__ */ T({
7369
+ }, A0 = /* @__PURE__ */ T({
7370
7370
  __name: "RAlert",
7371
7371
  props: {
7372
7372
  type: { default: "info" },
@@ -7392,36 +7392,36 @@ const k2 = {
7392
7392
  function i() {
7393
7393
  M("close");
7394
7394
  }
7395
- return (e, t) => (m(), n("div", {
7396
- class: p(A.value)
7395
+ return (e, d) => (m(), Z("div", {
7396
+ class: c(A.value)
7397
7397
  }, [
7398
- u("div", F2, [
7398
+ S("div", F2, [
7399
7399
  f(e.$slots, "alert-icon", {}, () => [
7400
- K(D, {
7400
+ K(x, {
7401
7401
  name: L.value,
7402
7402
  size: 24
7403
7403
  }, null, 8, ["name"])
7404
7404
  ])
7405
7405
  ]),
7406
- u("div", R2, [
7406
+ S("div", R2, [
7407
7407
  f(e.$slots, "content", {}, () => [
7408
- u("p", x2, w(C.title), 1),
7409
- C.description ? (m(), n("p", D2, w(C.description), 1)) : c("", !0)
7408
+ S("p", x2, w(C.title), 1),
7409
+ C.description ? (m(), Z("p", D2, w(C.description), 1)) : p("", !0)
7410
7410
  ])
7411
7411
  ]),
7412
- C.closable ? (m(), n("div", _2, [
7412
+ C.closable ? (m(), Z("div", _2, [
7413
7413
  f(e.$slots, "custom-close", {}, () => [
7414
- K(D, {
7414
+ K(x, {
7415
7415
  class: "r-alert__close__button",
7416
7416
  name: "mdiClose",
7417
7417
  size: 16,
7418
7418
  onClick: i
7419
7419
  })
7420
7420
  ])
7421
- ])) : c("", !0)
7421
+ ])) : p("", !0)
7422
7422
  ], 2));
7423
7423
  }
7424
- }), I1 = "data:image/svg+xml,%3csvg%20width='27'%20height='28'%20viewBox='0%200%2027%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4993%2014C17.1827%2014%2020.166%2011.0167%2020.166%207.33334C20.166%203.65%2017.1827%200.666672%2013.4993%200.666672C9.81602%200.666672%206.83268%203.65%206.83268%207.33334C6.83268%2011.0167%209.81602%2014%2013.4993%2014ZM13.4993%2017.3333C9.04935%2017.3333%200.166016%2019.5667%200.166016%2024V25.6667C0.166016%2026.5833%200.916016%2027.3333%201.83268%2027.3333H25.166C26.0827%2027.3333%2026.8327%2026.5833%2026.8327%2025.6667V24C26.8327%2019.5667%2017.9493%2017.3333%2013.4993%2017.3333Z'%20fill='%234C5BE1'/%3e%3c/svg%3e", E2 = { class: "r-avatar__wrapper" }, W2 = ["alt", "src"], e0 = /* @__PURE__ */ T({
7424
+ }), I1 = "data:image/svg+xml,%3csvg%20width='27'%20height='28'%20viewBox='0%200%2027%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4993%2014C17.1827%2014%2020.166%2011.0167%2020.166%207.33334C20.166%203.65%2017.1827%200.666672%2013.4993%200.666672C9.81602%200.666672%206.83268%203.65%206.83268%207.33334C6.83268%2011.0167%209.81602%2014%2013.4993%2014ZM13.4993%2017.3333C9.04935%2017.3333%200.166016%2019.5667%200.166016%2024V25.6667C0.166016%2026.5833%200.916016%2027.3333%201.83268%2027.3333H25.166C26.0827%2027.3333%2026.8327%2026.5833%2026.8327%2025.6667V24C26.8327%2019.5667%2017.9493%2017.3333%2013.4993%2017.3333Z'%20fill='%234C5BE1'/%3e%3c/svg%3e", E2 = { class: "r-avatar__wrapper" }, W2 = ["alt", "src"], i0 = /* @__PURE__ */ T({
7425
7425
  __name: "RAvatar",
7426
7426
  props: {
7427
7427
  type: { default: "image" },
@@ -7440,32 +7440,32 @@ const k2 = {
7440
7440
  const e = i.split(" ");
7441
7441
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7442
7442
  }
7443
- return (i, e) => (m(), n("div", E2, [
7444
- u("div", {
7445
- class: p(C.value)
7443
+ return (i, e) => (m(), Z("div", E2, [
7444
+ S("div", {
7445
+ class: c(C.value)
7446
7446
  }, [
7447
- V.type === "text" ? (m(), n("p", {
7447
+ V.type === "text" ? (m(), Z("p", {
7448
7448
  key: 0,
7449
- class: p(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7450
- }, w(L(V.text)), 3)) : (m(), n("img", {
7449
+ class: c(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7450
+ }, w(L(V.text)), 3)) : (m(), Z("img", {
7451
7451
  key: 1,
7452
7452
  alt: V.alt,
7453
- class: p(["r-avatar__image", {
7453
+ class: c(["r-avatar__image", {
7454
7454
  [`r-avatar__image--${V.size}`]: !0,
7455
7455
  "r-avatar__image--anonymous": M.value
7456
7456
  }]),
7457
7457
  src: A.value
7458
7458
  }, null, 10, W2))
7459
7459
  ], 2),
7460
- V.online ? (m(), n("span", {
7460
+ V.online ? (m(), Z("span", {
7461
7461
  key: 0,
7462
- class: p(["r-avatar__online", {
7462
+ class: c(["r-avatar__online", {
7463
7463
  [`r-avatar__online--${V.size}`]: !0
7464
7464
  }])
7465
- }, null, 2)) : c("", !0)
7465
+ }, null, 2)) : p("", !0)
7466
7466
  ]));
7467
7467
  }
7468
- }), N2 = { class: "r-badge-wrapper group" }, d0 = /* @__PURE__ */ T({
7468
+ }), N2 = ["innerHTML"], e0 = /* @__PURE__ */ T({
7469
7469
  __name: "RBadge",
7470
7470
  props: {
7471
7471
  variant: { default: "primary" },
@@ -7474,13 +7474,16 @@ const k2 = {
7474
7474
  hover: { type: Boolean, default: !1 },
7475
7475
  outside: { type: Boolean, default: !1 },
7476
7476
  animation: { type: Boolean, default: !1 },
7477
- class: { default: "" }
7477
+ class: { default: "" },
7478
+ content: { default: "" },
7479
+ contentClass: { default: "" },
7480
+ wrapperClass: { default: "" }
7478
7481
  },
7479
7482
  emits: ["click"],
7480
7483
  setup(H) {
7481
7484
  const V = H, C = g(() => ({
7482
7485
  "r-badge": !0,
7483
- "r-badge__content": V.content,
7486
+ [`r-badge--content ${V.contentClass}`]: V.content,
7484
7487
  [`r-badge--overlap-${V.placement}`]: V.overlap,
7485
7488
  [`r-badge--${V.placement}`]: V.placement,
7486
7489
  [`r-badge--outside-${V.placement}`]: V.outside,
@@ -7488,17 +7491,20 @@ const k2 = {
7488
7491
  [`r-badge--${V.variant}`]: V.variant,
7489
7492
  [V.class]: V.class
7490
7493
  }));
7491
- return (M, A) => (m(), n("div", N2, [
7492
- u("span", {
7493
- class: p([{ "animate-ping-2": V.animation }, C.value])
7494
- }, null, 2),
7495
- u("span", {
7496
- class: p(C.value)
7494
+ return (M, A) => (m(), Z("div", {
7495
+ class: c(["r-badge-wrapper group", [V.wrapperClass]])
7496
+ }, [
7497
+ S("span", {
7498
+ class: c([{ "animate-ping-2": V.animation }, C.value])
7497
7499
  }, null, 2),
7500
+ S("span", {
7501
+ class: c(C.value),
7502
+ innerHTML: V.content
7503
+ }, null, 10, N2),
7498
7504
  f(M.$slots, "default")
7499
- ]));
7505
+ ], 2));
7500
7506
  }
7501
- }), I2 = ["disabled"], t0 = /* @__PURE__ */ T({
7507
+ }), I2 = ["disabled"], d0 = /* @__PURE__ */ T({
7502
7508
  __name: "RButton",
7503
7509
  props: {
7504
7510
  variant: { default: "default" },
@@ -7529,30 +7535,30 @@ const k2 = {
7529
7535
  })[V.size || "medium"]), A = g(() => ({
7530
7536
  height: V.height ? `${V.height}px` : ""
7531
7537
  }));
7532
- return (L, i) => (m(), n("button", Z2(L.$attrs, {
7538
+ return (L, i) => (m(), Z("button", j1(L.$attrs, {
7533
7539
  class: C.value,
7534
7540
  disabled: L.disabled,
7535
7541
  style: A.value,
7536
7542
  onClick: i[0] || (i[0] = (e) => L.$emit("click"))
7537
7543
  }), [
7538
7544
  f(L.$slots, "prepend", {}, () => [
7539
- V.prependIcon ? (m(), _(D, {
7545
+ V.prependIcon ? (m(), _(x, {
7540
7546
  key: 0,
7541
- class: p(["r-button__prepend-icon", {
7547
+ class: c(["r-button__prepend-icon", {
7542
7548
  "r-button__prepend-icon--only": V.icon
7543
7549
  }]),
7544
7550
  name: V.prependIcon,
7545
7551
  size: M.value
7546
- }, null, 8, ["class", "name", "size"])) : c("", !0)
7552
+ }, null, 8, ["class", "name", "size"])) : p("", !0)
7547
7553
  ]),
7548
7554
  f(L.$slots, "default"),
7549
7555
  f(L.$slots, "append", {}, () => [
7550
- !V.icon && V.appendIcon ? (m(), _(D, {
7556
+ !V.icon && V.appendIcon ? (m(), _(x, {
7551
7557
  key: 0,
7552
7558
  class: "r-button__append-icon",
7553
7559
  name: V.appendIcon,
7554
7560
  size: M.value
7555
- }, null, 8, ["name", "size"])) : c("", !0)
7561
+ }, null, 8, ["name", "size"])) : p("", !0)
7556
7562
  ])
7557
7563
  ], 16, I2));
7558
7564
  }
@@ -7565,7 +7571,7 @@ const k2 = {
7565
7571
  }, X2 = {
7566
7572
  key: 1,
7567
7573
  class: "r-checkbox-texts__hint"
7568
- }, m0 = /* @__PURE__ */ T({
7574
+ }, t0 = /* @__PURE__ */ T({
7569
7575
  __name: "RCheckbox",
7570
7576
  props: {
7571
7577
  id: { default: "" },
@@ -7579,7 +7585,7 @@ const k2 = {
7579
7585
  },
7580
7586
  emits: ["update:modelValue"],
7581
7587
  setup(H, { emit: V }) {
7582
- const C = H, M = V, A = m1({
7588
+ const C = H, M = V, A = Z1({
7583
7589
  checked: !1,
7584
7590
  indeterminate: !1
7585
7591
  }), L = {
@@ -7593,63 +7599,63 @@ const k2 = {
7593
7599
  "r-checkbox--indeterminate": A.indeterminate,
7594
7600
  "r-checkbox--error": !!C.errorMsg
7595
7601
  }));
7596
- function t(d) {
7597
- C.disabled || (A.checked = d.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
7602
+ function d(t) {
7603
+ C.disabled || (A.checked = t.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
7598
7604
  }
7599
- return $(
7605
+ return G(
7600
7606
  () => C.indeterminate,
7601
- (d) => {
7602
- A.indeterminate = d, d === !0 && (A.checked = !1, M("update:modelValue", A.checked));
7607
+ (t) => {
7608
+ A.indeterminate = t, t === !0 && (A.checked = !1, M("update:modelValue", A.checked));
7603
7609
  },
7604
7610
  {
7605
7611
  // need immediate to set the state on first render for storybook
7606
7612
  // TODO: find a better way to do this
7607
7613
  immediate: !0
7608
7614
  }
7609
- ), $(
7615
+ ), G(
7610
7616
  () => C.modelValue,
7611
- (d) => {
7612
- A.checked = d;
7617
+ (t) => {
7618
+ A.checked = t;
7613
7619
  },
7614
7620
  {
7615
7621
  // need immediate to set the state on first render for storybook
7616
7622
  // TODO: find a better way to do this
7617
7623
  immediate: !0
7618
7624
  }
7619
- ), (d, l) => (m(), n("div", Q2, [
7620
- u("div", G2, [
7621
- u("input", {
7625
+ ), (t, l) => (m(), Z("div", Q2, [
7626
+ S("div", G2, [
7627
+ S("input", {
7622
7628
  id: C.id,
7623
7629
  checked: A.checked,
7624
7630
  class: "r-checkbox-container__input",
7625
7631
  disabled: C.disabled,
7626
7632
  indeterminate: A.indeterminate,
7627
7633
  type: "checkbox",
7628
- onChange: t
7634
+ onChange: d
7629
7635
  }, null, 40, $2),
7630
- u("div", {
7631
- class: p(e.value),
7636
+ S("div", {
7637
+ class: c(e.value),
7632
7638
  "data-disabled": C.disabled
7633
7639
  }, [
7634
- K(D, {
7640
+ K(x, {
7635
7641
  name: i.value,
7636
7642
  size: 24
7637
7643
  }, null, 8, ["name"])
7638
7644
  ], 10, U2)
7639
7645
  ]),
7640
- u("div", z2, [
7641
- u("label", {
7646
+ S("div", z2, [
7647
+ S("label", {
7642
7648
  class: "r-checkbox-texts__label",
7643
7649
  "data-disabled": C.disabled,
7644
7650
  for: C.id
7645
7651
  }, w(C.label), 9, K2),
7646
- C.hideDetails ? c("", !0) : (m(), n("div", q2, [
7647
- C.errorMsg ? (m(), n("p", j2, w(C.errorMsg), 1)) : (m(), n("p", X2, w(C.hint), 1))
7652
+ C.hideDetails ? p("", !0) : (m(), Z("div", q2, [
7653
+ C.errorMsg ? (m(), Z("p", j2, w(C.errorMsg), 1)) : (m(), Z("p", X2, w(C.hint), 1))
7648
7654
  ]))
7649
7655
  ])
7650
7656
  ]));
7651
7657
  }
7652
- }), Y2 = { class: "r-chip__content__label" }, J2 = /* @__PURE__ */ T({
7658
+ }), Y2 = /* @__PURE__ */ T({
7653
7659
  __name: "RChip",
7654
7660
  props: {
7655
7661
  variant: { default: "primary" },
@@ -7658,7 +7664,8 @@ const k2 = {
7658
7664
  prependIcon: { default: "" },
7659
7665
  appendIcon: { default: "" },
7660
7666
  ghost: { type: Boolean, default: !1 },
7661
- closable: { type: Boolean, default: !1 }
7667
+ clearable: { type: Boolean, default: !1 },
7668
+ noWrap: { type: Boolean, default: !1 }
7662
7669
  },
7663
7670
  emits: ["click:chip", "click:close"],
7664
7671
  setup(H, { emit: V }) {
@@ -7667,143 +7674,146 @@ const k2 = {
7667
7674
  "r-chip--disabled": C.disabled,
7668
7675
  [`r-chip__${C.variant}`]: C.variant,
7669
7676
  [`r-chip__${C.variant}--ghost`]: C.ghost,
7670
- "r-chip--closable": C.closable
7677
+ "r-chip--clearable": C.clearable
7671
7678
  }));
7672
- function L(e) {
7673
- C.closable && e.stopPropagation(), !C.disabled && M("click:chip", e);
7679
+ function L(d) {
7680
+ C.clearable && d.stopPropagation(), !C.disabled && M("click:chip", d);
7674
7681
  }
7675
- function i(e) {
7676
- C.disabled || !C.closable || (e.stopPropagation(), M("click:close", e));
7682
+ function i(d) {
7683
+ C.disabled || !C.clearable || (d.stopPropagation(), M("click:close", d));
7677
7684
  }
7678
- return (e, t) => (m(), n("div", {
7679
- class: p(A.value)
7685
+ const e = g(() => C.clearable ? "mdiClose" : C.appendIcon);
7686
+ return (d, t) => (m(), Z("div", {
7687
+ class: c(A.value)
7680
7688
  }, [
7681
- u("div", {
7689
+ S("div", {
7682
7690
  class: "r-chip__content",
7683
- onClick: t[0] || (t[0] = (d) => L(d))
7691
+ onClick: t[0] || (t[0] = (l) => L(l))
7684
7692
  }, [
7685
- f(e.$slots, "prepend", {}, () => [
7686
- C.prependIcon ? (m(), _(D, {
7693
+ f(d.$slots, "prepend", {}, () => [
7694
+ C.prependIcon ? (m(), _(x, {
7687
7695
  key: 0,
7688
7696
  "aria-disabled": C.disabled,
7689
7697
  class: "r-chip__content__prepend-icon",
7690
7698
  name: C.prependIcon,
7691
7699
  size: 12
7692
- }, null, 8, ["aria-disabled", "name"])) : c("", !0)
7700
+ }, null, 8, ["aria-disabled", "name"])) : p("", !0)
7693
7701
  ]),
7694
- u("span", Y2, w(C.label), 1)
7702
+ S("span", {
7703
+ class: c(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
7704
+ }, w(C.label), 3)
7695
7705
  ]),
7696
- f(e.$slots, "append", {}, () => [
7697
- C.appendIcon ? (m(), _(D, {
7706
+ f(d.$slots, "append", {}, () => [
7707
+ e.value ? (m(), _(x, {
7698
7708
  key: 0,
7699
7709
  "aria-disabled": C.disabled,
7700
7710
  class: "r-chip__content__append-icon",
7701
- name: C.appendIcon,
7711
+ name: e.value,
7702
7712
  size: 12,
7703
- onClick: t[1] || (t[1] = (d) => i(d))
7704
- }, null, 8, ["aria-disabled", "name"])) : c("", !0)
7713
+ onClick: t[1] || (t[1] = (l) => i(l))
7714
+ }, null, 8, ["aria-disabled", "name"])) : p("", !0)
7705
7715
  ])
7706
7716
  ], 2));
7707
7717
  }
7708
7718
  });
7709
- function C5(H) {
7710
- return u2() ? (S2(H), !0) : !1;
7719
+ function J2(H) {
7720
+ return Z2() ? (u2(H), !0) : !1;
7711
7721
  }
7712
7722
  function J1(H) {
7713
- return typeof H == "function" ? H() : M1(H);
7723
+ return typeof H == "function" ? H() : V1(H);
7714
7724
  }
7715
7725
  const C2 = typeof window < "u" && typeof document < "u";
7716
7726
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7717
- const H5 = Object.prototype.toString, V5 = (H) => H5.call(H) === "[object Object]", P1 = () => {
7718
- }, L5 = /* @__PURE__ */ M5();
7719
- function M5() {
7727
+ const C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", P1 = () => {
7728
+ }, V5 = /* @__PURE__ */ L5();
7729
+ function L5() {
7720
7730
  var H;
7721
7731
  return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7722
7732
  }
7723
- function o1(H) {
7733
+ function m1(H) {
7724
7734
  var V;
7725
7735
  const C = J1(H);
7726
7736
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7727
7737
  }
7728
7738
  const H2 = C2 ? window : void 0;
7729
- function b1(...H) {
7739
+ function y1(...H) {
7730
7740
  let V, C, M, A;
7731
7741
  if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, A] = H, V = H2) : [V, C, M, A] = H, !V)
7732
7742
  return P1;
7733
7743
  Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
7734
7744
  const L = [], i = () => {
7735
7745
  L.forEach((l) => l()), L.length = 0;
7736
- }, e = (l, o, a, r) => (l.addEventListener(o, a, r), () => l.removeEventListener(o, a, r)), t = $(
7737
- () => [o1(V), J1(A)],
7746
+ }, e = (l, o, n, a) => (l.addEventListener(o, n, a), () => l.removeEventListener(o, n, a)), d = G(
7747
+ () => [m1(V), J1(A)],
7738
7748
  ([l, o]) => {
7739
7749
  if (i(), !l)
7740
7750
  return;
7741
- const a = V5(o) ? { ...o } : o;
7751
+ const n = H5(o) ? { ...o } : o;
7742
7752
  L.push(
7743
- ...C.flatMap((r) => M.map((Z) => e(l, r, Z, a)))
7753
+ ...C.flatMap((a) => M.map((u) => e(l, a, u, n)))
7744
7754
  );
7745
7755
  },
7746
7756
  { immediate: !0, flush: "post" }
7747
- ), d = () => {
7748
- t(), i();
7757
+ ), t = () => {
7758
+ d(), i();
7749
7759
  };
7750
- return C5(d), d;
7760
+ return J2(t), t;
7751
7761
  }
7752
7762
  let Q1 = !1;
7753
- function A5(H, V, C = {}) {
7763
+ function M5(H, V, C = {}) {
7754
7764
  const { window: M = H2, ignore: A = [], capture: L = !0, detectIframe: i = !1 } = C;
7755
7765
  if (!M)
7756
7766
  return;
7757
- L5 && !Q1 && (Q1 = !0, Array.from(M.document.body.children).forEach((a) => a.addEventListener("click", P1)), M.document.documentElement.addEventListener("click", P1));
7767
+ V5 && !Q1 && (Q1 = !0, Array.from(M.document.body.children).forEach((n) => n.addEventListener("click", P1)), M.document.documentElement.addEventListener("click", P1));
7758
7768
  let e = !0;
7759
- const t = (a) => A.some((r) => {
7760
- if (typeof r == "string")
7761
- return Array.from(M.document.querySelectorAll(r)).some((Z) => Z === a.target || a.composedPath().includes(Z));
7769
+ const d = (n) => A.some((a) => {
7770
+ if (typeof a == "string")
7771
+ return Array.from(M.document.querySelectorAll(a)).some((u) => u === n.target || n.composedPath().includes(u));
7762
7772
  {
7763
- const Z = o1(r);
7764
- return Z && (a.target === Z || a.composedPath().includes(Z));
7773
+ const u = m1(a);
7774
+ return u && (n.target === u || n.composedPath().includes(u));
7765
7775
  }
7766
7776
  }), l = [
7767
- b1(M, "click", (a) => {
7768
- const r = o1(H);
7769
- if (!(!r || r === a.target || a.composedPath().includes(r))) {
7770
- if (a.detail === 0 && (e = !t(a)), !e) {
7777
+ y1(M, "click", (n) => {
7778
+ const a = m1(H);
7779
+ if (!(!a || a === n.target || n.composedPath().includes(a))) {
7780
+ if (n.detail === 0 && (e = !d(n)), !e) {
7771
7781
  e = !0;
7772
7782
  return;
7773
7783
  }
7774
- V(a);
7784
+ V(n);
7775
7785
  }
7776
7786
  }, { passive: !0, capture: L }),
7777
- b1(M, "pointerdown", (a) => {
7778
- const r = o1(H);
7779
- e = !t(a) && !!(r && !a.composedPath().includes(r));
7787
+ y1(M, "pointerdown", (n) => {
7788
+ const a = m1(H);
7789
+ e = !d(n) && !!(a && !n.composedPath().includes(a));
7780
7790
  }, { passive: !0 }),
7781
- i && b1(M, "blur", (a) => {
7791
+ i && y1(M, "blur", (n) => {
7782
7792
  setTimeout(() => {
7783
- var r;
7784
- const Z = o1(H);
7785
- ((r = M.document.activeElement) == null ? void 0 : r.tagName) === "IFRAME" && !(Z != null && Z.contains(M.document.activeElement)) && V(a);
7793
+ var a;
7794
+ const u = m1(H);
7795
+ ((a = M.document.activeElement) == null ? void 0 : a.tagName) === "IFRAME" && !(u != null && u.contains(M.document.activeElement)) && V(n);
7786
7796
  }, 0);
7787
7797
  })
7788
7798
  ].filter(Boolean);
7789
- return () => l.forEach((a) => a());
7799
+ return () => l.forEach((n) => n());
7790
7800
  }
7791
- const i5 = ["top", "right", "bottom", "left"], a1 = Math.min, i1 = Math.max, s1 = Math.round, J = (H) => ({
7801
+ const A5 = ["top", "right", "bottom", "left"], r1 = Math.min, M1 = Math.max, f1 = Math.round, J = (H) => ({
7792
7802
  x: H,
7793
7803
  y: H
7794
- }), e5 = {
7804
+ }), i5 = {
7795
7805
  left: "right",
7796
7806
  right: "left",
7797
7807
  bottom: "top",
7798
7808
  top: "bottom"
7799
- }, d5 = {
7809
+ }, e5 = {
7800
7810
  start: "end",
7801
7811
  end: "start"
7802
7812
  };
7803
7813
  function v1(H, V, C) {
7804
- return i1(H, a1(V, C));
7814
+ return M1(H, r1(V, C));
7805
7815
  }
7806
- function l1(H, V) {
7816
+ function t1(H, V) {
7807
7817
  return typeof H == "function" ? H(V) : H;
7808
7818
  }
7809
7819
  function L1(H) {
@@ -7818,26 +7828,26 @@ function V2(H) {
7818
7828
  function D1(H) {
7819
7829
  return H === "y" ? "height" : "width";
7820
7830
  }
7821
- function f1(H) {
7831
+ function B1(H) {
7822
7832
  return ["top", "bottom"].includes(L1(H)) ? "y" : "x";
7823
7833
  }
7824
7834
  function _1(H) {
7825
- return V2(f1(H));
7835
+ return V2(B1(H));
7826
7836
  }
7827
- function t5(H, V, C) {
7837
+ function d5(H, V, C) {
7828
7838
  C === void 0 && (C = !1);
7829
7839
  const M = u1(H), A = _1(H), L = D1(A);
7830
7840
  let i = A === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
7831
- return V.reference[L] > V.floating[L] && (i = c1(i)), [i, c1(i)];
7841
+ return V.reference[L] > V.floating[L] && (i = h1(i)), [i, h1(i)];
7832
7842
  }
7833
- function m5(H) {
7834
- const V = c1(H);
7843
+ function t5(H) {
7844
+ const V = h1(H);
7835
7845
  return [T1(H), V, T1(V)];
7836
7846
  }
7837
7847
  function T1(H) {
7838
- return H.replace(/start|end/g, (V) => d5[V]);
7848
+ return H.replace(/start|end/g, (V) => e5[V]);
7839
7849
  }
7840
- function l5(H, V, C) {
7850
+ function m5(H, V, C) {
7841
7851
  const M = ["left", "right"], A = ["right", "left"], L = ["top", "bottom"], i = ["bottom", "top"];
7842
7852
  switch (H) {
7843
7853
  case "top":
@@ -7850,15 +7860,15 @@ function l5(H, V, C) {
7850
7860
  return [];
7851
7861
  }
7852
7862
  }
7853
- function o5(H, V, C, M) {
7863
+ function l5(H, V, C, M) {
7854
7864
  const A = u1(H);
7855
- let L = l5(L1(H), C === "start", M);
7865
+ let L = m5(L1(H), C === "start", M);
7856
7866
  return A && (L = L.map((i) => i + "-" + A), V && (L = L.concat(L.map(T1)))), L;
7857
7867
  }
7858
- function c1(H) {
7859
- return H.replace(/left|right|bottom|top/g, (V) => e5[V]);
7868
+ function h1(H) {
7869
+ return H.replace(/left|right|bottom|top/g, (V) => i5[V]);
7860
7870
  }
7861
- function n5(H) {
7871
+ function o5(H) {
7862
7872
  return {
7863
7873
  top: 0,
7864
7874
  right: 0,
@@ -7868,14 +7878,14 @@ function n5(H) {
7868
7878
  };
7869
7879
  }
7870
7880
  function L2(H) {
7871
- return typeof H != "number" ? n5(H) : {
7881
+ return typeof H != "number" ? o5(H) : {
7872
7882
  top: H,
7873
7883
  right: H,
7874
7884
  bottom: H,
7875
7885
  left: H
7876
7886
  };
7877
7887
  }
7878
- function O1(H) {
7888
+ function g1(H) {
7879
7889
  return {
7880
7890
  ...H,
7881
7891
  top: H.y,
@@ -7889,114 +7899,114 @@ function G1(H, V, C) {
7889
7899
  reference: M,
7890
7900
  floating: A
7891
7901
  } = H;
7892
- const L = f1(V), i = _1(V), e = D1(i), t = L1(V), d = L === "y", l = M.x + M.width / 2 - A.width / 2, o = M.y + M.height / 2 - A.height / 2, a = M[e] / 2 - A[e] / 2;
7893
- let r;
7894
- switch (t) {
7902
+ const L = B1(V), i = _1(V), e = D1(i), d = L1(V), t = L === "y", l = M.x + M.width / 2 - A.width / 2, o = M.y + M.height / 2 - A.height / 2, n = M[e] / 2 - A[e] / 2;
7903
+ let a;
7904
+ switch (d) {
7895
7905
  case "top":
7896
- r = {
7906
+ a = {
7897
7907
  x: l,
7898
7908
  y: M.y - A.height
7899
7909
  };
7900
7910
  break;
7901
7911
  case "bottom":
7902
- r = {
7912
+ a = {
7903
7913
  x: l,
7904
7914
  y: M.y + M.height
7905
7915
  };
7906
7916
  break;
7907
7917
  case "right":
7908
- r = {
7918
+ a = {
7909
7919
  x: M.x + M.width,
7910
7920
  y: o
7911
7921
  };
7912
7922
  break;
7913
7923
  case "left":
7914
- r = {
7924
+ a = {
7915
7925
  x: M.x - A.width,
7916
7926
  y: o
7917
7927
  };
7918
7928
  break;
7919
7929
  default:
7920
- r = {
7930
+ a = {
7921
7931
  x: M.x,
7922
7932
  y: M.y
7923
7933
  };
7924
7934
  }
7925
7935
  switch (u1(V)) {
7926
7936
  case "start":
7927
- r[i] -= a * (C && d ? -1 : 1);
7937
+ a[i] -= n * (C && t ? -1 : 1);
7928
7938
  break;
7929
7939
  case "end":
7930
- r[i] += a * (C && d ? -1 : 1);
7940
+ a[i] += n * (C && t ? -1 : 1);
7931
7941
  break;
7932
7942
  }
7933
- return r;
7943
+ return a;
7934
7944
  }
7935
- const r5 = async (H, V, C) => {
7945
+ const n5 = async (H, V, C) => {
7936
7946
  const {
7937
7947
  placement: M = "bottom",
7938
7948
  strategy: A = "absolute",
7939
7949
  middleware: L = [],
7940
7950
  platform: i
7941
- } = C, e = L.filter(Boolean), t = await (i.isRTL == null ? void 0 : i.isRTL(V));
7942
- let d = await i.getElementRects({
7951
+ } = C, e = L.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7952
+ let t = await i.getElementRects({
7943
7953
  reference: H,
7944
7954
  floating: V,
7945
7955
  strategy: A
7946
7956
  }), {
7947
7957
  x: l,
7948
7958
  y: o
7949
- } = G1(d, M, t), a = M, r = {}, Z = 0;
7950
- for (let B = 0; B < e.length; B++) {
7959
+ } = G1(t, M, d), n = M, a = {}, u = 0;
7960
+ for (let b = 0; b < e.length; b++) {
7951
7961
  const {
7952
7962
  name: k,
7953
7963
  fn: y
7954
- } = e[B], {
7964
+ } = e[b], {
7955
7965
  x: P,
7956
7966
  y: v,
7957
- data: R,
7958
- reset: F
7967
+ data: F,
7968
+ reset: R
7959
7969
  } = await y({
7960
7970
  x: l,
7961
7971
  y: o,
7962
7972
  initialPlacement: M,
7963
- placement: a,
7973
+ placement: n,
7964
7974
  strategy: A,
7965
- middlewareData: r,
7966
- rects: d,
7975
+ middlewareData: a,
7976
+ rects: t,
7967
7977
  platform: i,
7968
7978
  elements: {
7969
7979
  reference: H,
7970
7980
  floating: V
7971
7981
  }
7972
7982
  });
7973
- if (l = P ?? l, o = v ?? o, r = {
7974
- ...r,
7983
+ if (l = P ?? l, o = v ?? o, a = {
7984
+ ...a,
7975
7985
  [k]: {
7976
- ...r[k],
7977
- ...R
7986
+ ...a[k],
7987
+ ...F
7978
7988
  }
7979
- }, F && Z <= 50) {
7980
- Z++, typeof F == "object" && (F.placement && (a = F.placement), F.rects && (d = F.rects === !0 ? await i.getElementRects({
7989
+ }, R && u <= 50) {
7990
+ u++, typeof R == "object" && (R.placement && (n = R.placement), R.rects && (t = R.rects === !0 ? await i.getElementRects({
7981
7991
  reference: H,
7982
7992
  floating: V,
7983
7993
  strategy: A
7984
- }) : F.rects), {
7994
+ }) : R.rects), {
7985
7995
  x: l,
7986
7996
  y: o
7987
- } = G1(d, a, t)), B = -1;
7997
+ } = G1(t, n, d)), b = -1;
7988
7998
  continue;
7989
7999
  }
7990
8000
  }
7991
8001
  return {
7992
8002
  x: l,
7993
8003
  y: o,
7994
- placement: a,
8004
+ placement: n,
7995
8005
  strategy: A,
7996
- middlewareData: r
8006
+ middlewareData: a
7997
8007
  };
7998
8008
  };
7999
- async function p1(H, V) {
8009
+ async function k1(H, V) {
8000
8010
  var C;
8001
8011
  V === void 0 && (V = {});
8002
8012
  const {
@@ -8005,41 +8015,41 @@ async function p1(H, V) {
8005
8015
  platform: L,
8006
8016
  rects: i,
8007
8017
  elements: e,
8008
- strategy: t
8018
+ strategy: d
8009
8019
  } = H, {
8010
- boundary: d = "clippingAncestors",
8020
+ boundary: t = "clippingAncestors",
8011
8021
  rootBoundary: l = "viewport",
8012
8022
  elementContext: o = "floating",
8013
- altBoundary: a = !1,
8014
- padding: r = 0
8015
- } = l1(V, H), Z = L2(r), k = e[a ? o === "floating" ? "reference" : "floating" : o], y = O1(await L.getClippingRect({
8023
+ altBoundary: n = !1,
8024
+ padding: a = 0
8025
+ } = t1(V, H), u = L2(a), k = e[n ? o === "floating" ? "reference" : "floating" : o], y = g1(await L.getClippingRect({
8016
8026
  element: (C = await (L.isElement == null ? void 0 : L.isElement(k))) == null || C ? k : k.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8017
- boundary: d,
8027
+ boundary: t,
8018
8028
  rootBoundary: l,
8019
- strategy: t
8029
+ strategy: d
8020
8030
  })), P = o === "floating" ? {
8021
8031
  ...i.floating,
8022
8032
  x: M,
8023
8033
  y: A
8024
- } : i.reference, v = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), R = await (L.isElement == null ? void 0 : L.isElement(v)) ? await (L.getScale == null ? void 0 : L.getScale(v)) || {
8034
+ } : i.reference, v = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), F = await (L.isElement == null ? void 0 : L.isElement(v)) ? await (L.getScale == null ? void 0 : L.getScale(v)) || {
8025
8035
  x: 1,
8026
8036
  y: 1
8027
8037
  } : {
8028
8038
  x: 1,
8029
8039
  y: 1
8030
- }, F = O1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8040
+ }, R = g1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8031
8041
  rect: P,
8032
8042
  offsetParent: v,
8033
- strategy: t
8043
+ strategy: d
8034
8044
  }) : P);
8035
8045
  return {
8036
- top: (y.top - F.top + Z.top) / R.y,
8037
- bottom: (F.bottom - y.bottom + Z.bottom) / R.y,
8038
- left: (y.left - F.left + Z.left) / R.x,
8039
- right: (F.right - y.right + Z.right) / R.x
8046
+ top: (y.top - R.top + u.top) / F.y,
8047
+ bottom: (R.bottom - y.bottom + u.bottom) / F.y,
8048
+ left: (y.left - R.left + u.left) / F.x,
8049
+ right: (R.right - y.right + u.right) / F.x
8040
8050
  };
8041
8051
  }
8042
- const a5 = (H) => ({
8052
+ const r5 = (H) => ({
8043
8053
  name: "arrow",
8044
8054
  options: H,
8045
8055
  async fn(V) {
@@ -8050,33 +8060,33 @@ const a5 = (H) => ({
8050
8060
  rects: L,
8051
8061
  platform: i,
8052
8062
  elements: e,
8053
- middlewareData: t
8063
+ middlewareData: d
8054
8064
  } = V, {
8055
- element: d,
8065
+ element: t,
8056
8066
  padding: l = 0
8057
- } = l1(H, V) || {};
8058
- if (d == null)
8067
+ } = t1(H, V) || {};
8068
+ if (t == null)
8059
8069
  return {};
8060
- const o = L2(l), a = {
8070
+ const o = L2(l), n = {
8061
8071
  x: C,
8062
8072
  y: M
8063
- }, r = _1(A), Z = D1(r), B = await i.getDimensions(d), k = r === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", R = L.reference[Z] + L.reference[r] - a[r] - L.floating[Z], F = a[r] - L.reference[r], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
8073
+ }, a = _1(A), u = D1(a), b = await i.getDimensions(t), k = a === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", F = L.reference[u] + L.reference[a] - n[a] - L.floating[u], R = n[a] - L.reference[a], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8064
8074
  let I = z ? z[v] : 0;
8065
- (!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[Z]);
8066
- const O = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, S = a1(o[y], W), h = a1(o[P], W), b = S, x = I - B[Z] - h, s = I / 2 - B[Z] / 2 + O, E = v1(b, s, x), G = !t.arrow && u1(A) != null && s != E && L.reference[Z] / 2 - (s < b ? S : h) - B[Z] / 2 < 0, j = G ? s < b ? s - b : s - x : 0;
8075
+ (!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[u]);
8076
+ const O = F / 2 - R / 2, N = I / 2 - b[u] / 2 - 1, r = r1(o[y], N), h = r1(o[P], N), B = r, D = I - b[u] - h, s = I / 2 - b[u] / 2 + O, E = v1(B, s, D), $ = !d.arrow && u1(A) != null && s != E && L.reference[u] / 2 - (s < B ? r : h) - b[u] / 2 < 0, j = $ ? s < B ? s - B : s - D : 0;
8067
8077
  return {
8068
- [r]: a[r] + j,
8078
+ [a]: n[a] + j,
8069
8079
  data: {
8070
- [r]: E,
8080
+ [a]: E,
8071
8081
  centerOffset: s - E - j,
8072
- ...G && {
8082
+ ...$ && {
8073
8083
  alignmentOffset: j
8074
8084
  }
8075
8085
  },
8076
- reset: G
8086
+ reset: $
8077
8087
  };
8078
8088
  }
8079
- }), Z5 = function(H) {
8089
+ }), a5 = function(H) {
8080
8090
  return H === void 0 && (H = {}), {
8081
8091
  name: "flip",
8082
8092
  options: H,
@@ -8087,49 +8097,49 @@ const a5 = (H) => ({
8087
8097
  middlewareData: L,
8088
8098
  rects: i,
8089
8099
  initialPlacement: e,
8090
- platform: t,
8091
- elements: d
8100
+ platform: d,
8101
+ elements: t
8092
8102
  } = V, {
8093
8103
  mainAxis: l = !0,
8094
8104
  crossAxis: o = !0,
8095
- fallbackPlacements: a,
8096
- fallbackStrategy: r = "bestFit",
8097
- fallbackAxisSideDirection: Z = "none",
8098
- flipAlignment: B = !0,
8105
+ fallbackPlacements: n,
8106
+ fallbackStrategy: a = "bestFit",
8107
+ fallbackAxisSideDirection: u = "none",
8108
+ flipAlignment: b = !0,
8099
8109
  ...k
8100
- } = l1(H, V);
8110
+ } = t1(H, V);
8101
8111
  if ((C = L.arrow) != null && C.alignmentOffset)
8102
8112
  return {};
8103
- const y = L1(A), P = L1(e) === e, v = await (t.isRTL == null ? void 0 : t.isRTL(d.floating)), R = a || (P || !B ? [c1(e)] : m5(e));
8104
- !a && Z !== "none" && R.push(...o5(e, B, Z, v));
8105
- const F = [e, ...R], z = await p1(V, k), I = [];
8113
+ const y = L1(A), P = L1(e) === e, v = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), F = n || (P || !b ? [h1(e)] : t5(e));
8114
+ !n && u !== "none" && F.push(...l5(e, b, u, v));
8115
+ const R = [e, ...F], z = await k1(V, k), I = [];
8106
8116
  let O = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8107
8117
  if (l && I.push(z[y]), o) {
8108
- const b = t5(A, i, v);
8109
- I.push(z[b[0]], z[b[1]]);
8118
+ const B = d5(A, i, v);
8119
+ I.push(z[B[0]], z[B[1]]);
8110
8120
  }
8111
8121
  if (O = [...O, {
8112
8122
  placement: A,
8113
8123
  overflows: I
8114
- }], !I.every((b) => b <= 0)) {
8115
- var W, S;
8116
- const b = (((W = L.flip) == null ? void 0 : W.index) || 0) + 1, x = F[b];
8117
- if (x)
8124
+ }], !I.every((B) => B <= 0)) {
8125
+ var N, r;
8126
+ const B = (((N = L.flip) == null ? void 0 : N.index) || 0) + 1, D = R[B];
8127
+ if (D)
8118
8128
  return {
8119
8129
  data: {
8120
- index: b,
8130
+ index: B,
8121
8131
  overflows: O
8122
8132
  },
8123
8133
  reset: {
8124
- placement: x
8134
+ placement: D
8125
8135
  }
8126
8136
  };
8127
- let s = (S = O.filter((E) => E.overflows[0] <= 0).sort((E, G) => E.overflows[1] - G.overflows[1])[0]) == null ? void 0 : S.placement;
8137
+ let s = (r = O.filter((E) => E.overflows[0] <= 0).sort((E, $) => E.overflows[1] - $.overflows[1])[0]) == null ? void 0 : r.placement;
8128
8138
  if (!s)
8129
- switch (r) {
8139
+ switch (a) {
8130
8140
  case "bestFit": {
8131
8141
  var h;
8132
- const E = (h = O.map((G) => [G.placement, G.overflows.filter((j) => j > 0).reduce((j, a2) => j + a2, 0)]).sort((G, j) => G[1] - j[1])[0]) == null ? void 0 : h[0];
8142
+ const E = (h = O.map(($) => [$.placement, $.overflows.filter((j) => j > 0).reduce((j, a2) => j + a2, 0)]).sort(($, j) => $[1] - j[1])[0]) == null ? void 0 : h[0];
8133
8143
  E && (s = E);
8134
8144
  break;
8135
8145
  }
@@ -8157,9 +8167,9 @@ function $1(H, V) {
8157
8167
  };
8158
8168
  }
8159
8169
  function U1(H) {
8160
- return i5.some((V) => H[V] >= 0);
8170
+ return A5.some((V) => H[V] >= 0);
8161
8171
  }
8162
- const u5 = function(H) {
8172
+ const Z5 = function(H) {
8163
8173
  return H === void 0 && (H = {}), {
8164
8174
  name: "hide",
8165
8175
  options: H,
@@ -8169,10 +8179,10 @@ const u5 = function(H) {
8169
8179
  } = V, {
8170
8180
  strategy: M = "referenceHidden",
8171
8181
  ...A
8172
- } = l1(H, V);
8182
+ } = t1(H, V);
8173
8183
  switch (M) {
8174
8184
  case "referenceHidden": {
8175
- const L = await p1(V, {
8185
+ const L = await k1(V, {
8176
8186
  ...A,
8177
8187
  elementContext: "reference"
8178
8188
  }), i = $1(L, C.reference);
@@ -8184,7 +8194,7 @@ const u5 = function(H) {
8184
8194
  };
8185
8195
  }
8186
8196
  case "escaped": {
8187
- const L = await p1(V, {
8197
+ const L = await k1(V, {
8188
8198
  ...A,
8189
8199
  altBoundary: !0
8190
8200
  }), i = $1(L, C.floating);
@@ -8201,16 +8211,16 @@ const u5 = function(H) {
8201
8211
  }
8202
8212
  };
8203
8213
  };
8204
- async function S5(H, V) {
8214
+ async function u5(H, V) {
8205
8215
  const {
8206
8216
  placement: C,
8207
8217
  platform: M,
8208
8218
  elements: A
8209
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), t = f1(C) === "y", d = ["left", "top"].includes(i) ? -1 : 1, l = L && t ? -1 : 1, o = l1(V, H);
8219
+ } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = B1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, l = L && d ? -1 : 1, o = t1(V, H);
8210
8220
  let {
8211
- mainAxis: a,
8212
- crossAxis: r,
8213
- alignmentAxis: Z
8221
+ mainAxis: n,
8222
+ crossAxis: a,
8223
+ alignmentAxis: u
8214
8224
  } = typeof o == "number" ? {
8215
8225
  mainAxis: o,
8216
8226
  crossAxis: 0,
@@ -8221,15 +8231,15 @@ async function S5(H, V) {
8221
8231
  alignmentAxis: null,
8222
8232
  ...o
8223
8233
  };
8224
- return e && typeof Z == "number" && (r = e === "end" ? Z * -1 : Z), t ? {
8225
- x: r * l,
8226
- y: a * d
8234
+ return e && typeof u == "number" && (a = e === "end" ? u * -1 : u), d ? {
8235
+ x: a * l,
8236
+ y: n * t
8227
8237
  } : {
8228
- x: a * d,
8229
- y: r * l
8238
+ x: n * t,
8239
+ y: a * l
8230
8240
  };
8231
8241
  }
8232
- const s5 = function(H) {
8242
+ const S5 = function(H) {
8233
8243
  return H === void 0 && (H = 0), {
8234
8244
  name: "offset",
8235
8245
  options: H,
@@ -8237,7 +8247,7 @@ const s5 = function(H) {
8237
8247
  const {
8238
8248
  x: C,
8239
8249
  y: M
8240
- } = V, A = await S5(V, H);
8250
+ } = V, A = await u5(V, H);
8241
8251
  return {
8242
8252
  x: C + A.x,
8243
8253
  y: M + A.y,
@@ -8245,7 +8255,7 @@ const s5 = function(H) {
8245
8255
  };
8246
8256
  }
8247
8257
  };
8248
- }, c5 = function(H) {
8258
+ }, s5 = function(H) {
8249
8259
  return H === void 0 && (H = {}), {
8250
8260
  name: "shift",
8251
8261
  options: H,
@@ -8269,30 +8279,30 @@ const s5 = function(H) {
8269
8279
  };
8270
8280
  }
8271
8281
  },
8272
- ...t
8273
- } = l1(H, V), d = {
8282
+ ...d
8283
+ } = t1(H, V), t = {
8274
8284
  x: C,
8275
8285
  y: M
8276
- }, l = await p1(V, t), o = f1(L1(A)), a = V2(o);
8277
- let r = d[a], Z = d[o];
8286
+ }, l = await k1(V, d), o = B1(L1(A)), n = V2(o);
8287
+ let a = t[n], u = t[o];
8278
8288
  if (L) {
8279
- const k = a === "y" ? "top" : "left", y = a === "y" ? "bottom" : "right", P = r + l[k], v = r - l[y];
8280
- r = v1(P, r, v);
8289
+ const k = n === "y" ? "top" : "left", y = n === "y" ? "bottom" : "right", P = a + l[k], v = a - l[y];
8290
+ a = v1(P, a, v);
8281
8291
  }
8282
8292
  if (i) {
8283
- const k = o === "y" ? "top" : "left", y = o === "y" ? "bottom" : "right", P = Z + l[k], v = Z - l[y];
8284
- Z = v1(P, Z, v);
8293
+ const k = o === "y" ? "top" : "left", y = o === "y" ? "bottom" : "right", P = u + l[k], v = u - l[y];
8294
+ u = v1(P, u, v);
8285
8295
  }
8286
- const B = e.fn({
8296
+ const b = e.fn({
8287
8297
  ...V,
8288
- [a]: r,
8289
- [o]: Z
8298
+ [n]: a,
8299
+ [o]: u
8290
8300
  });
8291
8301
  return {
8292
- ...B,
8302
+ ...b,
8293
8303
  data: {
8294
- x: B.x - C,
8295
- y: B.y - M
8304
+ x: b.x - C,
8305
+ y: b.y - M
8296
8306
  }
8297
8307
  };
8298
8308
  }
@@ -8330,32 +8340,32 @@ function S1(H) {
8330
8340
  } = U(H);
8331
8341
  return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(A);
8332
8342
  }
8333
- function O5(H) {
8343
+ function c5(H) {
8334
8344
  return ["table", "td", "th"].includes(C1(H));
8335
8345
  }
8336
8346
  function E1(H) {
8337
8347
  const V = W1(), C = U(H);
8338
8348
  return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
8339
8349
  }
8340
- function p5(H) {
8341
- let V = t1(H);
8342
- for (; q(V) && !h1(V); ) {
8350
+ function O5(H) {
8351
+ let V = d1(H);
8352
+ for (; q(V) && !b1(V); ) {
8343
8353
  if (E1(V))
8344
8354
  return V;
8345
- V = t1(V);
8355
+ V = d1(V);
8346
8356
  }
8347
8357
  return null;
8348
8358
  }
8349
8359
  function W1() {
8350
8360
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
8351
8361
  }
8352
- function h1(H) {
8362
+ function b1(H) {
8353
8363
  return ["html", "body", "#document"].includes(C1(H));
8354
8364
  }
8355
8365
  function U(H) {
8356
8366
  return Q(H).getComputedStyle(H);
8357
8367
  }
8358
- function g1(H) {
8368
+ function w1(H) {
8359
8369
  return Y(H) ? {
8360
8370
  scrollLeft: H.scrollLeft,
8361
8371
  scrollTop: H.scrollTop
@@ -8364,7 +8374,7 @@ function g1(H) {
8364
8374
  scrollTop: H.pageYOffset
8365
8375
  };
8366
8376
  }
8367
- function t1(H) {
8377
+ function d1(H) {
8368
8378
  if (C1(H) === "html")
8369
8379
  return H;
8370
8380
  const V = (
@@ -8377,8 +8387,8 @@ function t1(H) {
8377
8387
  return z1(V) ? V.host : V;
8378
8388
  }
8379
8389
  function A2(H) {
8380
- const V = t1(H);
8381
- return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
8390
+ const V = d1(H);
8391
+ return b1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
8382
8392
  }
8383
8393
  function F1(H, V, C) {
8384
8394
  var M;
@@ -8389,7 +8399,7 @@ function F1(H, V, C) {
8389
8399
  function i2(H) {
8390
8400
  const V = U(H);
8391
8401
  let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
8392
- const A = q(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = s1(C) !== L || s1(M) !== i;
8402
+ const A = q(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = f1(C) !== L || f1(M) !== i;
8393
8403
  return e && (C = L, M = i), {
8394
8404
  width: C,
8395
8405
  height: M,
@@ -8399,7 +8409,7 @@ function i2(H) {
8399
8409
  function e2(H) {
8400
8410
  return Y(H) ? H : H.contextElement;
8401
8411
  }
8402
- function e1(H) {
8412
+ function A1(H) {
8403
8413
  const V = e2(H);
8404
8414
  if (!q(V))
8405
8415
  return J(1);
@@ -8408,46 +8418,46 @@ function e1(H) {
8408
8418
  height: A,
8409
8419
  $: L
8410
8420
  } = i2(V);
8411
- let i = (L ? s1(C.width) : C.width) / M, e = (L ? s1(C.height) : C.height) / A;
8421
+ let i = (L ? f1(C.width) : C.width) / M, e = (L ? f1(C.height) : C.height) / A;
8412
8422
  return (!i || !Number.isFinite(i)) && (i = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8413
8423
  x: i,
8414
8424
  y: e
8415
8425
  };
8416
8426
  }
8417
- const f5 = /* @__PURE__ */ J(0);
8427
+ const p5 = /* @__PURE__ */ J(0);
8418
8428
  function d2(H) {
8419
8429
  const V = Q(H);
8420
- return !W1() || !V.visualViewport ? f5 : {
8430
+ return !W1() || !V.visualViewport ? p5 : {
8421
8431
  x: V.visualViewport.offsetLeft,
8422
8432
  y: V.visualViewport.offsetTop
8423
8433
  };
8424
8434
  }
8425
- function h5(H, V, C) {
8435
+ function f5(H, V, C) {
8426
8436
  return V === void 0 && (V = !1), !C || V && C !== Q(H) ? !1 : V;
8427
8437
  }
8428
- function Z1(H, V, C, M) {
8438
+ function a1(H, V, C, M) {
8429
8439
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8430
8440
  const A = H.getBoundingClientRect(), L = e2(H);
8431
8441
  let i = J(1);
8432
- V && (M ? Y(M) && (i = e1(M)) : i = e1(H));
8433
- const e = h5(L, C, M) ? d2(L) : J(0);
8434
- let t = (A.left + e.x) / i.x, d = (A.top + e.y) / i.y, l = A.width / i.x, o = A.height / i.y;
8442
+ V && (M ? Y(M) && (i = A1(M)) : i = A1(H));
8443
+ const e = f5(L, C, M) ? d2(L) : J(0);
8444
+ let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, l = A.width / i.x, o = A.height / i.y;
8435
8445
  if (L) {
8436
- const a = Q(L), r = M && Y(M) ? Q(M) : M;
8437
- let Z = a.frameElement;
8438
- for (; Z && M && r !== a; ) {
8439
- const B = e1(Z), k = Z.getBoundingClientRect(), y = U(Z), P = k.left + (Z.clientLeft + parseFloat(y.paddingLeft)) * B.x, v = k.top + (Z.clientTop + parseFloat(y.paddingTop)) * B.y;
8440
- t *= B.x, d *= B.y, l *= B.x, o *= B.y, t += P, d += v, Z = Q(Z).frameElement;
8446
+ const n = Q(L), a = M && Y(M) ? Q(M) : M;
8447
+ let u = n.frameElement;
8448
+ for (; u && M && a !== n; ) {
8449
+ const b = A1(u), k = u.getBoundingClientRect(), y = U(u), P = k.left + (u.clientLeft + parseFloat(y.paddingLeft)) * b.x, v = k.top + (u.clientTop + parseFloat(y.paddingTop)) * b.y;
8450
+ d *= b.x, t *= b.y, l *= b.x, o *= b.y, d += P, t += v, u = Q(u).frameElement;
8441
8451
  }
8442
8452
  }
8443
- return O1({
8453
+ return g1({
8444
8454
  width: l,
8445
8455
  height: o,
8446
- x: t,
8447
- y: d
8456
+ x: d,
8457
+ y: t
8448
8458
  });
8449
8459
  }
8450
- function g5(H) {
8460
+ function h5(H) {
8451
8461
  let {
8452
8462
  rect: V,
8453
8463
  offsetParent: C,
@@ -8460,67 +8470,67 @@ function g5(H) {
8460
8470
  scrollLeft: 0,
8461
8471
  scrollTop: 0
8462
8472
  }, e = J(1);
8463
- const t = J(0);
8464
- if ((A || !A && M !== "fixed") && ((C1(C) !== "body" || S1(L)) && (i = g1(C)), q(C))) {
8465
- const d = Z1(C);
8466
- e = e1(C), t.x = d.x + C.clientLeft, t.y = d.y + C.clientTop;
8473
+ const d = J(0);
8474
+ if ((A || !A && M !== "fixed") && ((C1(C) !== "body" || S1(L)) && (i = w1(C)), q(C))) {
8475
+ const t = a1(C);
8476
+ e = A1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
8467
8477
  }
8468
8478
  return {
8469
8479
  width: V.width * e.x,
8470
8480
  height: V.height * e.y,
8471
- x: V.x * e.x - i.scrollLeft * e.x + t.x,
8472
- y: V.y * e.y - i.scrollTop * e.y + t.y
8481
+ x: V.x * e.x - i.scrollLeft * e.x + d.x,
8482
+ y: V.y * e.y - i.scrollTop * e.y + d.y
8473
8483
  };
8474
8484
  }
8475
- function k5(H) {
8485
+ function g5(H) {
8476
8486
  return Array.from(H.getClientRects());
8477
8487
  }
8478
8488
  function t2(H) {
8479
- return Z1(H1(H)).left + g1(H).scrollLeft;
8489
+ return a1(H1(H)).left + w1(H).scrollLeft;
8480
8490
  }
8481
- function B5(H) {
8482
- const V = H1(H), C = g1(H), M = H.ownerDocument.body, A = i1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = i1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8491
+ function k5(H) {
8492
+ const V = H1(H), C = w1(H), M = H.ownerDocument.body, A = M1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = M1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8483
8493
  let i = -C.scrollLeft + t2(H);
8484
8494
  const e = -C.scrollTop;
8485
- return U(M).direction === "rtl" && (i += i1(V.clientWidth, M.clientWidth) - A), {
8495
+ return U(M).direction === "rtl" && (i += M1(V.clientWidth, M.clientWidth) - A), {
8486
8496
  width: A,
8487
8497
  height: L,
8488
8498
  x: i,
8489
8499
  y: e
8490
8500
  };
8491
8501
  }
8492
- function b5(H, V) {
8502
+ function B5(H, V) {
8493
8503
  const C = Q(H), M = H1(H), A = C.visualViewport;
8494
- let L = M.clientWidth, i = M.clientHeight, e = 0, t = 0;
8504
+ let L = M.clientWidth, i = M.clientHeight, e = 0, d = 0;
8495
8505
  if (A) {
8496
8506
  L = A.width, i = A.height;
8497
- const d = W1();
8498
- (!d || d && V === "fixed") && (e = A.offsetLeft, t = A.offsetTop);
8507
+ const t = W1();
8508
+ (!t || t && V === "fixed") && (e = A.offsetLeft, d = A.offsetTop);
8499
8509
  }
8500
8510
  return {
8501
8511
  width: L,
8502
8512
  height: i,
8503
8513
  x: e,
8504
- y: t
8514
+ y: d
8505
8515
  };
8506
8516
  }
8507
- function w5(H, V) {
8508
- const C = Z1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ? e1(H) : J(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, t = A * L.x, d = M * L.y;
8517
+ function b5(H, V) {
8518
+ const C = a1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ? A1(H) : J(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, t = M * L.y;
8509
8519
  return {
8510
8520
  width: i,
8511
8521
  height: e,
8512
- x: t,
8513
- y: d
8522
+ x: d,
8523
+ y: t
8514
8524
  };
8515
8525
  }
8516
8526
  function K1(H, V, C) {
8517
8527
  let M;
8518
8528
  if (V === "viewport")
8519
- M = b5(H, C);
8529
+ M = B5(H, C);
8520
8530
  else if (V === "document")
8521
- M = B5(H1(H));
8531
+ M = k5(H1(H));
8522
8532
  else if (Y(V))
8523
- M = w5(V, C);
8533
+ M = b5(V, C);
8524
8534
  else {
8525
8535
  const A = d2(H);
8526
8536
  M = {
@@ -8529,62 +8539,62 @@ function K1(H, V, C) {
8529
8539
  y: V.y - A.y
8530
8540
  };
8531
8541
  }
8532
- return O1(M);
8542
+ return g1(M);
8533
8543
  }
8534
8544
  function m2(H, V) {
8535
- const C = t1(H);
8536
- return C === V || !Y(C) || h1(C) ? !1 : U(C).position === "fixed" || m2(C, V);
8545
+ const C = d1(H);
8546
+ return C === V || !Y(C) || b1(C) ? !1 : U(C).position === "fixed" || m2(C, V);
8537
8547
  }
8538
- function y5(H, V) {
8548
+ function w5(H, V) {
8539
8549
  const C = V.get(H);
8540
8550
  if (C)
8541
8551
  return C;
8542
8552
  let M = F1(H, [], !1).filter((e) => Y(e) && C1(e) !== "body"), A = null;
8543
8553
  const L = U(H).position === "fixed";
8544
- let i = L ? t1(H) : H;
8545
- for (; Y(i) && !h1(i); ) {
8546
- const e = U(i), t = E1(i);
8547
- !t && e.position === "fixed" && (A = null), (L ? !t && !A : !t && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !t && m2(H, i)) ? M = M.filter((l) => l !== i) : A = e, i = t1(i);
8554
+ let i = L ? d1(H) : H;
8555
+ for (; Y(i) && !b1(i); ) {
8556
+ const e = U(i), d = E1(i);
8557
+ !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((l) => l !== i) : A = e, i = d1(i);
8548
8558
  }
8549
8559
  return V.set(H, M), M;
8550
8560
  }
8551
- function P5(H) {
8561
+ function y5(H) {
8552
8562
  let {
8553
8563
  element: V,
8554
8564
  boundary: C,
8555
8565
  rootBoundary: M,
8556
8566
  strategy: A
8557
8567
  } = H;
8558
- const i = [...C === "clippingAncestors" ? y5(V, this._c) : [].concat(C), M], e = i[0], t = i.reduce((d, l) => {
8568
+ const i = [...C === "clippingAncestors" ? w5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, l) => {
8559
8569
  const o = K1(V, l, A);
8560
- return d.top = i1(o.top, d.top), d.right = a1(o.right, d.right), d.bottom = a1(o.bottom, d.bottom), d.left = i1(o.left, d.left), d;
8570
+ return t.top = M1(o.top, t.top), t.right = r1(o.right, t.right), t.bottom = r1(o.bottom, t.bottom), t.left = M1(o.left, t.left), t;
8561
8571
  }, K1(V, e, A));
8562
8572
  return {
8563
- width: t.right - t.left,
8564
- height: t.bottom - t.top,
8565
- x: t.left,
8566
- y: t.top
8573
+ width: d.right - d.left,
8574
+ height: d.bottom - d.top,
8575
+ x: d.left,
8576
+ y: d.top
8567
8577
  };
8568
8578
  }
8569
- function v5(H) {
8579
+ function P5(H) {
8570
8580
  return i2(H);
8571
8581
  }
8572
- function T5(H, V, C) {
8573
- const M = q(V), A = H1(V), L = C === "fixed", i = Z1(H, !0, L, V);
8582
+ function v5(H, V, C) {
8583
+ const M = q(V), A = H1(V), L = C === "fixed", i = a1(H, !0, L, V);
8574
8584
  let e = {
8575
8585
  scrollLeft: 0,
8576
8586
  scrollTop: 0
8577
8587
  };
8578
- const t = J(0);
8588
+ const d = J(0);
8579
8589
  if (M || !M && !L)
8580
- if ((C1(V) !== "body" || S1(A)) && (e = g1(V)), M) {
8581
- const d = Z1(V, !0, L, V);
8582
- t.x = d.x + V.clientLeft, t.y = d.y + V.clientTop;
8590
+ if ((C1(V) !== "body" || S1(A)) && (e = w1(V)), M) {
8591
+ const t = a1(V, !0, L, V);
8592
+ d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
8583
8593
  } else
8584
- A && (t.x = t2(A));
8594
+ A && (d.x = t2(A));
8585
8595
  return {
8586
- x: i.left + e.scrollLeft - t.x,
8587
- y: i.top + e.scrollTop - t.y,
8596
+ x: i.left + e.scrollLeft - d.x,
8597
+ y: i.top + e.scrollTop - d.y,
8588
8598
  width: i.width,
8589
8599
  height: i.height
8590
8600
  };
@@ -8597,11 +8607,11 @@ function l2(H, V) {
8597
8607
  if (!q(H))
8598
8608
  return C;
8599
8609
  let M = q1(H, V);
8600
- for (; M && O5(M) && U(M).position === "static"; )
8610
+ for (; M && c5(M) && U(M).position === "static"; )
8601
8611
  M = q1(M, V);
8602
- return M && (C1(M) === "html" || C1(M) === "body" && U(M).position === "static" && !E1(M)) ? C : M || p5(H) || C;
8612
+ return M && (C1(M) === "html" || C1(M) === "body" && U(M).position === "static" && !E1(M)) ? C : M || O5(H) || C;
8603
8613
  }
8604
- const F5 = async function(H) {
8614
+ const T5 = async function(H) {
8605
8615
  let {
8606
8616
  reference: V,
8607
8617
  floating: C,
@@ -8609,7 +8619,7 @@ const F5 = async function(H) {
8609
8619
  } = H;
8610
8620
  const A = this.getOffsetParent || l2, L = this.getDimensions;
8611
8621
  return {
8612
- reference: T5(V, await A(C), M),
8622
+ reference: v5(V, await A(C), M),
8613
8623
  floating: {
8614
8624
  x: 0,
8615
8625
  y: 0,
@@ -8617,57 +8627,53 @@ const F5 = async function(H) {
8617
8627
  }
8618
8628
  };
8619
8629
  };
8620
- function R5(H) {
8630
+ function F5(H) {
8621
8631
  return U(H).direction === "rtl";
8622
8632
  }
8623
- const x5 = {
8624
- convertOffsetParentRelativeRectToViewportRelativeRect: g5,
8633
+ const R5 = {
8634
+ convertOffsetParentRelativeRectToViewportRelativeRect: h5,
8625
8635
  getDocumentElement: H1,
8626
- getClippingRect: P5,
8636
+ getClippingRect: y5,
8627
8637
  getOffsetParent: l2,
8628
- getElementRects: F5,
8629
- getClientRects: k5,
8630
- getDimensions: v5,
8631
- getScale: e1,
8638
+ getElementRects: T5,
8639
+ getClientRects: g5,
8640
+ getDimensions: P5,
8641
+ getScale: A1,
8632
8642
  isElement: Y,
8633
- isRTL: R5
8634
- }, D5 = (H, V, C) => {
8643
+ isRTL: F5
8644
+ }, x5 = (H, V, C) => {
8635
8645
  const M = /* @__PURE__ */ new Map(), A = {
8636
- platform: x5,
8646
+ platform: R5,
8637
8647
  ...C
8638
8648
  }, L = {
8639
8649
  ...A.platform,
8640
8650
  _c: M
8641
8651
  };
8642
- return r5(H, V, {
8652
+ return n5(H, V, {
8643
8653
  ...A,
8644
8654
  platform: L
8645
8655
  });
8646
8656
  };
8647
8657
  var o2 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(o2 || {}), X = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(X || {}), n2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(n2 || {});
8648
- async function _5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e) {
8649
- !H || !V || D5(H, V, {
8658
+ async function D5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e) {
8659
+ !H || !V || x5(H, V, {
8650
8660
  placement: M,
8651
8661
  middleware: [
8652
- s5(A),
8653
- c5({ padding: L }),
8654
- a5({ element: C }),
8655
- Z5(),
8656
- u5()
8662
+ S5(A),
8663
+ s5({ padding: L }),
8664
+ r5({ element: C }),
8665
+ a5(),
8666
+ Z5()
8657
8667
  ]
8658
- }).then(({ x: t, y: d, placement: l, middlewareData: o }) => {
8659
- var r;
8660
- if (!V)
8661
- return;
8662
- const a = ((r = H.offsetParent) == null ? void 0 : r.getBoundingClientRect().left) || 0;
8663
- if (Object.assign(V.style, {
8664
- maxWidth: e === "dropdown" ? `${H.offsetWidth}px` : "auto",
8665
- left: e === "dropdown" ? `${a}px` : `${t}px`,
8666
- top: `${d}px`,
8668
+ }).then(({ x: d, y: t, placement: l, middlewareData: o }) => {
8669
+ var n, a, u;
8670
+ if (V && (o.flip && V.setAttribute("data-placement", l), (n = H.offsetParent) == null || n.getBoundingClientRect().left, (a = H.offsetParent) == null || a.getBoundingClientRect().bottom, (u = H.offsetParent) == null || u.getBoundingClientRect().width, Object.assign(V.style, {
8671
+ left: `${d}px`,
8672
+ top: `${t}px`,
8667
8673
  animation: `r-tooltip-show ${i}ms ease-in-out forwards`,
8668
8674
  transformOrigin: "start"
8669
- }), C && o.arrow) {
8670
- const { x: Z, y: B } = o.arrow, k = {
8675
+ }), C && o.arrow)) {
8676
+ const { x: b, y: k } = o.arrow, y = {
8671
8677
  top: "bottom",
8672
8678
  right: "left",
8673
8679
  bottom: "top",
@@ -8675,16 +8681,16 @@ async function _5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
8675
8681
  /* Right */
8676
8682
  }[l.split("-")[0]];
8677
8683
  Object.assign(C.style, {
8678
- left: t != null ? `${Z}px` : "",
8679
- top: d != null ? `${B}px` : "",
8684
+ left: d != null ? `${b}px` : "",
8685
+ top: t != null ? `${k}px` : "",
8680
8686
  right: "",
8681
8687
  bottom: "",
8682
- [`${k}`]: "-4px"
8688
+ [`${y}`]: "-4px"
8683
8689
  });
8684
8690
  }
8685
8691
  });
8686
8692
  }
8687
- const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8693
+ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
8688
8694
  __name: "RTooltip",
8689
8695
  props: {
8690
8696
  placement: { default: o2.Top },
@@ -8708,143 +8714,137 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8708
8714
  },
8709
8715
  emits: ["show", "hide"],
8710
8716
  setup(H, { emit: V }) {
8711
- const C = H, M = V, A = N(), L = N(), i = N();
8717
+ const C = H, M = V, A = W(), L = W(), i = W();
8712
8718
  async function e() {
8713
- C.disabled || !L.value || (Z(), L.value.style.display = "block", M("show"), d());
8719
+ C.disabled || !L.value || (u(), L.value.style.display = "block", M("show"), t());
8714
8720
  }
8715
- function t() {
8721
+ function d() {
8716
8722
  C.disabled || !L.value || (L.value.style.display = "", M("hide"));
8717
8723
  }
8718
- function d() {
8724
+ function t() {
8719
8725
  C.autoHide && setTimeout(() => {
8720
- t();
8726
+ d();
8721
8727
  }, C.hideDelay);
8722
8728
  }
8723
8729
  function l() {
8724
- C.disabled || C.triggers.includes(X.Click) && (L.value.style.display === "block" ? t() : e());
8730
+ C.disabled || C.triggers.includes(X.Click) && (L.value.style.display === "block" ? d() : e());
8725
8731
  }
8726
8732
  function o() {
8727
8733
  C.disabled || C.triggers.includes(X.Hover) && e();
8728
8734
  }
8729
- function a() {
8730
- C.disabled || (L.value.style.display === "" && C.triggers.includes(X.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(X.Hover) && t());
8735
+ function n() {
8736
+ C.disabled || (L.value.style.display === "" && C.triggers.includes(X.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(X.Hover) && d());
8731
8737
  }
8732
- function r() {
8733
- C.triggers.includes(X.Hover) && Z();
8738
+ function a() {
8739
+ C.triggers.includes(X.Hover) && u();
8734
8740
  }
8735
- function Z() {
8736
- const { placement: k, offset: y, padding: P, disabled: v, showDelay: R, type: F } = C;
8737
- v || _5(A, L, i, k, y, P, R, F);
8741
+ function u() {
8742
+ const { placement: k, offset: y, padding: P, disabled: v, showDelay: F, type: R } = C;
8743
+ v || D5(A, L, i, k, y, P, F);
8738
8744
  }
8739
- const B = g(() => ({
8745
+ const b = g(() => ({
8740
8746
  "r-tooltip": !0,
8741
8747
  "r-tooltip--dark": C.dark && !C.light,
8742
8748
  "r-tooltip--light": C.light
8743
8749
  }));
8744
8750
  return window.onresize = () => {
8745
- C.resizable && Z();
8751
+ C.resizable && u();
8746
8752
  }, document.addEventListener("scroll", () => {
8747
- Z();
8748
- }), j1(
8753
+ u();
8754
+ }), S2(
8749
8755
  () => {
8750
- C.disabled || (C.shown && C.triggers.includes(X.Manual) ? e() : !C.shown && C.triggers.includes(X.Manual) && t());
8756
+ C.disabled || (C.shown && C.triggers.includes(X.Manual) ? e() : !C.shown && C.triggers.includes(X.Manual) && d());
8751
8757
  },
8752
8758
  { flush: "post" }
8753
8759
  // this is important to avoid infinite loop & for fire on mounted
8754
8760
  ), X1(() => {
8755
- C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", Z()), A5(
8761
+ C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", u()), M5(
8756
8762
  A,
8757
8763
  () => {
8758
- C.outsideClick && t();
8764
+ C.outsideClick && d();
8759
8765
  },
8760
8766
  {
8761
8767
  ignore: [L.value]
8762
8768
  }
8763
8769
  );
8764
- }), (k, y) => (m(), n(V1, null, [
8765
- u("div", {
8770
+ }), (k, y) => (m(), Z(i1, null, [
8771
+ S("div", {
8766
8772
  ref_key: "trigger",
8767
8773
  ref: A,
8768
8774
  "aria-disabled": C.disabled,
8769
- class: p(["r-tooltip-trigger", k.triggerClass]),
8775
+ class: c(["r-tooltip-trigger", k.triggerClass]),
8770
8776
  onClick: l,
8771
8777
  onMouseenter: o,
8772
- onMouseleave: a,
8773
- onMousemove: r
8778
+ onMouseleave: n,
8779
+ onMousemove: a
8774
8780
  }, [
8775
8781
  f(k.$slots, "default", {
8776
8782
  activators: {
8777
8783
  click: l,
8778
8784
  mouseenter: o,
8779
- mouseleave: a,
8780
- mousemove: r
8785
+ mouseleave: n,
8786
+ mousemove: a
8781
8787
  },
8782
- updatePosition: Z
8788
+ updatePosition: u
8783
8789
  }, () => [
8784
- u("div", {
8790
+ S("div", {
8785
8791
  innerHTML: C.triggerContent
8786
- }, null, 8, W5)
8792
+ }, null, 8, E5)
8787
8793
  ])
8788
- ], 42, E5),
8794
+ ], 42, _5),
8789
8795
  (m(), _(s2, { to: "body" }, [
8790
- u("div", {
8796
+ S("div", {
8791
8797
  id: "tooltip",
8792
8798
  ref_key: "tooltip",
8793
8799
  ref: L,
8794
- class: p([B.value, k.tooltipClass]),
8800
+ class: c([b.value, k.tooltipClass]),
8795
8801
  role: "tooltip"
8796
8802
  }, [
8797
8803
  f(k.$slots, "content", {
8798
- hide: t,
8799
- updatePosition: Z
8804
+ hide: d,
8805
+ updatePosition: u
8800
8806
  }, () => [
8801
- C.text ? (m(), n("div", {
8807
+ C.text ? (m(), Z("div", {
8802
8808
  key: 0,
8803
- class: p(["r-tooltip__content", {
8809
+ class: c(["r-tooltip__content", {
8804
8810
  "r-tooltip__content--dark": C.dark,
8805
8811
  "r-tooltip__content--light": C.light
8806
8812
  }])
8807
- }, w(C.text), 3)) : c("", !0),
8808
- C.text ? (m(), n("div", {
8813
+ }, w(C.text), 3)) : p("", !0),
8814
+ C.text ? (m(), Z("div", {
8809
8815
  key: 1,
8810
8816
  id: "arrow",
8811
8817
  ref_key: "arrowElement",
8812
8818
  ref: i,
8813
- class: p(["r-tooltip__arrow", {
8819
+ class: c(["r-tooltip__arrow", {
8814
8820
  "r-tooltip__arrow--dark": C.dark,
8815
8821
  "r-tooltip__arrow--light": C.light
8816
8822
  }])
8817
- }, null, 2)) : c("", !0)
8823
+ }, null, 2)) : p("", !0)
8818
8824
  ])
8819
8825
  ], 2)
8820
8826
  ]))
8821
8827
  ], 64));
8822
8828
  }
8823
- }), I5 = ["onClick"], Q5 = {
8824
- key: 1,
8825
- class: "r-dropdown__tags"
8826
- }, G5 = {
8827
- key: 2,
8828
- class: "r-dropdown__multiple"
8829
- }, $5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], U5 = ["data-has-value", "onClick"], z5 = ["aria-disabled", "onClick"], K5 = { class: "flex items-center" }, q5 = {
8829
+ }), N5 = ["onClick"], I5 = { class: "r-dropdown__selections" }, Q5 = { key: 0 }, G5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], $5 = ["data-has-value", "onClick"], U5 = ["aria-disabled", "onClick"], z5 = { class: "flex items-center" }, K5 = {
8830
8830
  key: 0,
8831
8831
  class: "r-dropdown-options__no-option"
8832
- }, j5 = {
8832
+ }, q5 = {
8833
8833
  key: 0,
8834
8834
  class: "r-dropdown-details"
8835
- }, X5 = {
8835
+ }, j5 = {
8836
8836
  key: 0,
8837
8837
  class: "r-dropdown-error"
8838
- }, Y5 = {
8838
+ }, X5 = {
8839
8839
  key: 1,
8840
8840
  class: "r-dropdown-hint"
8841
- }, J5 = /* @__PURE__ */ T({
8841
+ }, Y5 = /* @__PURE__ */ T({
8842
8842
  __name: "RDropdown",
8843
8843
  props: {
8844
8844
  options: { default: () => [] },
8845
- modelValue: { default: "" },
8845
+ modelValue: { default: {} },
8846
8846
  placeholder: { default: "" },
8847
- taggable: { type: Boolean, default: !1 },
8847
+ chips: { type: Boolean, default: !1 },
8848
8848
  multiple: { type: Boolean, default: !1 },
8849
8849
  disabled: { type: Boolean, default: !1 },
8850
8850
  loading: { type: Boolean, default: !1 },
@@ -8852,7 +8852,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8852
8852
  appendIcon: { default: "mdiChevronDown" },
8853
8853
  searchable: { type: Boolean, default: !1 },
8854
8854
  clearable: { type: Boolean, default: !1 },
8855
- id: { default: "test" },
8855
+ id: { default: "r-dropdown" },
8856
8856
  closeOnSelect: { type: Boolean, default: !0 },
8857
8857
  dropdownClass: { default: "" },
8858
8858
  optionsClass: { default: "" },
@@ -8861,105 +8861,109 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8861
8861
  hideDetails: { type: Boolean, default: !1 },
8862
8862
  autocomplete: { default: "off" },
8863
8863
  noOptionsText: { default: "No options" },
8864
- hideOptionCheckIcon: { type: Boolean, default: !1 }
8864
+ hideOptionCheckIcon: { type: Boolean, default: !1 },
8865
+ hideChipClear: { type: Boolean, default: !1 }
8865
8866
  },
8866
8867
  emits: ["update:modelValue"],
8867
8868
  setup(H, { emit: V }) {
8868
- const C = H, M = V, A = N({}), L = m1([]), i = N(!1), e = N("");
8869
- function t(S) {
8870
- const [h] = Object.keys(S);
8869
+ const C = H, M = V, A = W({}), L = W([]), i = W(!1), e = W("");
8870
+ function d(r) {
8871
+ if (!r || typeof r == "object" || typeof r == "function" || typeof r == "symbol" || typeof r > "u" || Array.isArray(r))
8872
+ return !0;
8873
+ const [h] = Object == null ? void 0 : Object.keys(r);
8871
8874
  return ["label", "value"].includes(h);
8872
8875
  }
8873
- const d = g(() => {
8874
- const S = C.options;
8875
- return t(S[0]) ? S : S.map((h) => ({
8876
+ const t = g(() => {
8877
+ const r = C.options;
8878
+ return d(r[0]) ? r : r.map((h) => ({
8876
8879
  value: h,
8877
8880
  label: String(h)
8878
8881
  }));
8879
8882
  }), l = g(() => {
8880
- const S = C.modelValue;
8881
- return t(S) ? S : {
8882
- value: S,
8883
- label: String(S)
8883
+ const r = C.modelValue;
8884
+ return d(r) ? r : {
8885
+ value: r,
8886
+ label: String(r)
8884
8887
  };
8885
- }), o = N(), a = N(), r = N();
8886
- function Z(S, h) {
8887
- var b, x, s;
8888
- if (S.stopPropagation(), !C.disabled) {
8888
+ }), o = W(), n = W(), a = W();
8889
+ function u(r, h) {
8890
+ var B, D, s;
8891
+ if (r.stopPropagation(), !C.disabled) {
8889
8892
  if (i.value = !0, h && h(), i.value) {
8890
- (b = o.value) == null || b.classList.add("r-dropdown--active"), (x = o.value) == null || x.focus(), C.searchable && ((s = a.value) == null || s.focus());
8893
+ (B = o.value) == null || B.classList.add("r-dropdown--active"), (D = o.value) == null || D.focus(), (s = n.value) == null || s.focus();
8891
8894
  return;
8892
8895
  }
8893
- B();
8896
+ b();
8894
8897
  }
8895
8898
  }
8896
- function B() {
8897
- var S, h, b;
8898
- i.value = !1, (S = o.value) == null || S.classList.remove("r-dropdown--active"), (h = o.value) == null || h.blur(), (b = a.value) == null || b.blur();
8899
+ function b() {
8900
+ var r, h, B;
8901
+ i.value = !1, (r = o.value) == null || r.classList.remove("r-dropdown--active"), (h = o.value) == null || h.blur(), (B = n.value) == null || B.blur();
8899
8902
  }
8900
- function k(S, h, b, x) {
8903
+ function k(r, h, B, D) {
8901
8904
  var s;
8902
- if (S.stopPropagation(), x(), !h.disabled) {
8903
- if (C.multiple || C.taggable) {
8904
- L.find((E) => E.value === h.value) ? L.splice(L.indexOf(h), 1) : L.push(h), e.value = "", C.searchable && ((s = a.value) == null || s.focus());
8905
+ if (r.stopPropagation(), D(), !h.disabled) {
8906
+ if (C.multiple) {
8907
+ L.value.find((E) => E.value === h.value) ? L.value.splice(L.value.indexOf(h), 1) : L.value.push(h), e.value = "", C.searchable && ((s = n.value) == null || s.focus());
8905
8908
  return;
8906
8909
  }
8907
- y(S, h), C.closeOnSelect && (b(), B());
8910
+ y(r, h), C.closeOnSelect && (B(), b());
8908
8911
  }
8909
8912
  }
8910
- function y(S, h) {
8913
+ function y(r, h) {
8911
8914
  if (A.value.value === h.value) {
8912
8915
  A.value = {}, e.value = "", M("update:modelValue", "");
8913
8916
  return;
8914
8917
  }
8915
- e.value = h.label, A.value = h, Z(S), M("update:modelValue", h);
8918
+ e.value = h.label, A.value = h, u(r), M("update:modelValue", h);
8916
8919
  }
8917
- function P(S, h, b) {
8918
- if (S instanceof KeyboardEvent && S.key !== "Backspace" || e.value !== "")
8920
+ function P(r, h, B) {
8921
+ if (r instanceof KeyboardEvent && r.key !== "Backspace" || e.value !== "")
8919
8922
  return;
8920
- S.stopPropagation(), b();
8921
- const x = L.findIndex((s) => s.value === h.value);
8922
- L.splice(x, 1);
8923
+ r.stopPropagation(), B();
8924
+ const D = L.value.findIndex((s) => s.value === h.value);
8925
+ L.value.splice(D, 1);
8923
8926
  }
8924
- function v(S, h) {
8927
+ function v(r, h) {
8925
8928
  var s;
8926
- if (!C.taggable)
8929
+ if (!C.multiple)
8927
8930
  return;
8928
- S.stopPropagation(), h();
8929
- const b = e.value;
8930
- if (b === "")
8931
+ r.stopPropagation(), h();
8932
+ const B = e.value;
8933
+ if (B === "")
8931
8934
  return;
8932
- d.value.find((E) => E.label === b) || (L.push({ value: b, label: b }), e.value = "", (s = a.value) == null || s.focus());
8935
+ t.value.find((E) => E.label === B) || (L.value.push({ value: B, label: B }), e.value = "", (s = n.value) == null || s.focus());
8933
8936
  }
8934
- function R(S) {
8935
- return C.multiple || C.taggable ? L.find((h) => h.value === S.value) : A.value.value === S.value;
8937
+ function F(r) {
8938
+ var h;
8939
+ return !r || (r == null ? void 0 : r.value) === void 0 || (r == null ? void 0 : r.value) === null ? !1 : C.multiple ? L.value.find((B) => (B == null ? void 0 : B.value) === (r == null ? void 0 : r.value)) : ((h = A.value) == null ? void 0 : h.value) === (r == null ? void 0 : r.value);
8936
8940
  }
8937
- const F = g(() => !C.searchable || A.value.label === e.value ? d.value : d.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), z = g(() => !C.searchable);
8941
+ const R = g(() => !C.searchable || A.value.label === e.value ? t.value : t.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), z = g(() => !C.searchable);
8938
8942
  function I() {
8939
- l.value ? C.multiple ? L.push(l.value) : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.splice(0, L.length));
8943
+ l.value ? C.multiple ? L.value = l.value : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
8940
8944
  }
8941
- function O(S) {
8942
- C.searchable && S(), !(C.multiple || C.taggable) && e.value === "" && (A.value = {}, M("update:modelValue", ""));
8945
+ function O(r) {
8946
+ C.searchable && r(), !C.multiple && e.value === "" && (A.value = {}, M("update:modelValue", ""));
8943
8947
  }
8944
- function W(S, h) {
8945
- if (S.stopPropagation(), h(), C.multiple || C.taggable) {
8946
- L.splice(0, L.length);
8948
+ function N(r, h) {
8949
+ if (r.stopPropagation(), h(), C.multiple) {
8950
+ L.value.splice(0, L.value.length);
8947
8951
  return;
8948
8952
  }
8949
8953
  A.value = {}, e.value = "", M("update:modelValue", "");
8950
8954
  }
8951
8955
  return X1(() => {
8952
8956
  I();
8953
- }), $(L, (S) => {
8954
- M("update:modelValue", S);
8955
- }), $(() => l.value, (S) => {
8957
+ }), G(L, (r) => {
8958
+ M("update:modelValue", r);
8959
+ }), G(() => l.value, (r) => {
8956
8960
  I();
8957
- }), (S, h) => (m(), n("div", {
8961
+ }), (r, h) => (m(), Z("div", {
8958
8962
  ref_key: "wrapper",
8959
- ref: r,
8963
+ ref: a,
8960
8964
  class: "r-dropdown-wrapper"
8961
8965
  }, [
8962
- K(N5, {
8966
+ K(W5, {
8963
8967
  "auto-hide": !1,
8964
8968
  offset: 0,
8965
8969
  "outside-click": "",
@@ -8969,166 +8973,164 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8969
8973
  "trigger-class": "w-full",
8970
8974
  triggers: ["click"],
8971
8975
  type: "dropdown",
8972
- onHide: B
8976
+ onHide: b
8973
8977
  }, {
8974
- default: r1(({ activators: b, updatePosition: x }) => [
8975
- u("div", {
8978
+ default: n1(({ activators: B, updatePosition: D }) => [
8979
+ S("div", {
8976
8980
  ref_key: "dropdown",
8977
8981
  ref: o,
8978
- class: p(["r-dropdown", {
8982
+ class: c(["r-dropdown", {
8979
8983
  "r-dropdown--disabled": C.disabled,
8980
8984
  "r-dropdown--loading": C.loading,
8981
8985
  [C.dropdownClass]: C.dropdownClass,
8982
- "r-dropdown--error": C.errorMsg
8986
+ "r-dropdown--error": C.errorMsg,
8987
+ group: e.value !== "" || L.value.length
8983
8988
  }]),
8984
8989
  role: "select",
8985
- onClick: (s) => Z(s, b.click)
8990
+ onClick: (s) => u(s, B.click)
8986
8991
  }, [
8987
- C.prependIcon || S.$slots.prepend ? (m(), n("div", {
8992
+ C.prependIcon || r.$slots.prepend ? (m(), Z("div", {
8988
8993
  key: 0,
8989
- class: p(["r-dropdown__prepend-icon", {
8994
+ class: c(["r-dropdown__prepend-icon", {
8990
8995
  "r-dropdown__prepend-icon--active": i.value,
8991
8996
  "r-dropdown__prepend-icon--error": C.errorMsg
8992
8997
  }])
8993
8998
  }, [
8994
- f(S.$slots, "prepend", {}, () => [
8995
- C.prependIcon ? (m(), _(D, {
8999
+ f(r.$slots, "prepend", {}, () => [
9000
+ C.prependIcon ? (m(), _(x, {
8996
9001
  key: 0,
8997
9002
  name: C.prependIcon
8998
- }, null, 8, ["name"])) : c("", !0)
9003
+ }, null, 8, ["name"])) : p("", !0)
8999
9004
  ])
9000
- ], 2)) : c("", !0),
9001
- C.taggable && L.length ? (m(), n("div", Q5, [
9002
- f(S.$slots, "tags", {
9003
- options: L,
9004
- removeOption: P,
9005
- updatePosition: x
9005
+ ], 2)) : p("", !0),
9006
+ S("div", I5, [
9007
+ (m(!0), Z(i1, null, o1(L.value, (s, E) => f(r.$slots, "selection", {
9008
+ key: E,
9009
+ index: E,
9010
+ option: s,
9011
+ removeOption: P
9006
9012
  }, () => [
9007
- (m(!0), n(V1, null, A1(L, (s, E) => (m(), _(J2, {
9008
- key: E,
9009
- "append-icon": "mdiClose",
9010
- class: "r-dropdown__tags__chip",
9011
- closable: "",
9013
+ C.chips ? (m(), _(Y2, {
9014
+ key: 1,
9015
+ clearable: !C.hideChipClear,
9012
9016
  label: s.label,
9013
- variant: "primary",
9014
- "onClick:close": (G) => P(G, s, x)
9015
- }, null, 8, ["label", "onClick:close"]))), 128))
9017
+ "no-wrap": "",
9018
+ variant: "info",
9019
+ "onClick:close": ($) => P($, s, D)
9020
+ }, null, 8, ["clearable", "label", "onClick:close"])) : (m(), Z("p", Q5, w(`${s.label}, `), 1))
9021
+ ])), 128)),
9022
+ Y1(S("input", {
9023
+ id: C.id,
9024
+ ref_key: "input",
9025
+ ref: n,
9026
+ "onUpdate:modelValue": h[0] || (h[0] = (s) => e.value = s),
9027
+ autocomplete: C.autocomplete,
9028
+ class: c(["r-dropdown__input", {
9029
+ "r-dropdown__input--loading": C.loading
9030
+ }]),
9031
+ disabled: C.disabled,
9032
+ placeholder: C.placeholder,
9033
+ readonly: z.value,
9034
+ role: "presentation",
9035
+ type: "text",
9036
+ onInput: e1((s) => O(D), ["prevent"]),
9037
+ onKeydown: [
9038
+ N1((s) => P(s, L.value[L.value.length - 1], D), ["backspace"]),
9039
+ N1((s) => v(s, D), ["enter"])
9040
+ ]
9041
+ }, null, 42, G5), [
9042
+ [c2, e.value]
9016
9043
  ])
9017
- ])) : c("", !0),
9018
- C.multiple && L.length ? (m(), n("div", G5, [
9019
- (m(!0), n(V1, null, A1(L, (s, E) => (m(), n("p", { key: E }, w(`${s.label},`), 1))), 128))
9020
- ])) : c("", !0),
9021
- Y1(u("input", {
9022
- id: C.id,
9023
- ref_key: "input",
9024
- ref: a,
9025
- "onUpdate:modelValue": h[0] || (h[0] = (s) => e.value = s),
9026
- autocomplete: C.autocomplete,
9027
- class: p(["r-dropdown__input", {
9028
- "r-dropdown__input--loading": C.loading
9029
- }]),
9030
- disabled: C.disabled,
9031
- placeholder: C.placeholder,
9032
- readonly: z.value,
9033
- role: "presentation",
9034
- type: "text",
9035
- onInput: d1((s) => O(x), ["prevent"]),
9036
- onKeydown: [
9037
- N1((s) => P(s, L[L.length - 1], x), ["backspace"]),
9038
- N1((s) => v(s, x), ["enter"])
9039
- ]
9040
- }, null, 42, $5), [
9041
- [c2, e.value]
9042
9044
  ]),
9043
- C.clearable ? (m(), n("div", {
9044
- key: 3,
9045
+ C.clearable ? (m(), Z("div", {
9046
+ key: 1,
9045
9047
  class: "r-dropdown__clearable",
9046
- "data-has-value": (e.value !== "" || L.length) && i.value,
9047
- onClick: (s) => W(s, x)
9048
+ "data-has-value": (e.value !== "" || L.value.length) && i.value,
9049
+ onClick: (s) => N(s, D)
9048
9050
  }, [
9049
- K(D, {
9051
+ K(x, {
9050
9052
  name: "mdiCloseCircle",
9051
9053
  size: "18"
9052
9054
  })
9053
- ], 8, U5)) : c("", !0),
9054
- C.appendIcon || S.$slots.append ? (m(), n("div", {
9055
- key: 4,
9056
- class: p(["r-dropdown__append-icon", {
9055
+ ], 8, $5)) : p("", !0),
9056
+ C.appendIcon || r.$slots.append ? (m(), Z("div", {
9057
+ key: 2,
9058
+ class: c(["r-dropdown__append-icon", {
9057
9059
  "r-dropdown__append-icon--active": i.value,
9058
9060
  "r-dropdown__append-icon--error": C.errorMsg
9059
9061
  }])
9060
9062
  }, [
9061
- f(S.$slots, "append", {}, () => [
9062
- C.appendIcon ? (m(), _(D, {
9063
+ f(r.$slots, "append", {}, () => [
9064
+ C.appendIcon ? (m(), _(x, {
9063
9065
  key: 0,
9064
9066
  name: C.appendIcon
9065
- }, null, 8, ["name"])) : c("", !0)
9067
+ }, null, 8, ["name"])) : p("", !0)
9066
9068
  ])
9067
- ], 2)) : c("", !0)
9068
- ], 10, I5)
9069
+ ], 2)) : p("", !0)
9070
+ ], 10, N5)
9069
9071
  ]),
9070
- content: r1(({ hide: b, updatePosition: x }) => [
9071
- u("ul", {
9072
- class: p(["r-dropdown-options", {
9072
+ content: n1(({ hide: B, updatePosition: D }) => [
9073
+ S("ul", {
9074
+ class: c(["r-dropdown-options", {
9073
9075
  "r-dropdown-options--active": i.value,
9074
9076
  [C.optionsClass]: C.optionsClass
9075
9077
  }])
9076
9078
  }, [
9077
- (m(!0), n(V1, null, A1(F.value, (s) => (m(), n("li", {
9079
+ (m(!0), Z(i1, null, o1(R.value, (s) => (m(), Z("li", {
9078
9080
  key: s.value,
9079
9081
  "aria-disabled": s.disabled,
9080
- class: p(["r-dropdown-options__option", {
9081
- "r-dropdown-options__option--active": R(s),
9082
+ class: c(["r-dropdown-options__option", {
9083
+ "r-dropdown-options__option--active": F(s),
9082
9084
  "r-dropdown-options__option--disabled": s.disabled
9083
9085
  }]),
9084
- onClick: d1((E) => k(E, s, b, x), ["prevent"])
9086
+ onClick: e1((E) => k(E, s, B, D), ["prevent"])
9085
9087
  }, [
9086
- f(S.$slots, "option", {
9087
- isSelected: R(s)
9088
+ f(r.$slots, "option", {
9089
+ isSelected: F(s)
9088
9090
  }, () => [
9089
- u("div", K5, [
9090
- f(S.$slots, "option-prepend", {}, () => [
9091
- s.prependIcon ? (m(), _(D, {
9091
+ S("div", z5, [
9092
+ f(r.$slots, "option-prepend", {}, () => [
9093
+ s.prependIcon ? (m(), _(x, {
9092
9094
  key: 0,
9093
- class: p(["r-dropdown-options__option__prepend-icon", {
9094
- "r-dropdown-options__option__prepend-icon--active": R(s)
9095
+ class: c(["r-dropdown-options__option__prepend-icon", {
9096
+ "r-dropdown-options__option__prepend-icon--active": F(s)
9095
9097
  }]),
9096
9098
  name: s.prependIcon
9097
- }, null, 8, ["class", "name"])) : c("", !0)
9099
+ }, null, 8, ["class", "name"])) : p("", !0)
9098
9100
  ]),
9099
- u("p", {
9100
- class: p(["r-dropdown-options__option__label", {
9101
- "r-dropdown-options__option__label--active": R(s)
9101
+ S("p", {
9102
+ class: c(["r-dropdown-options__option__label", {
9103
+ "r-dropdown-options__option__label--active": F(s)
9102
9104
  }])
9103
9105
  }, w(s.label), 3)
9104
9106
  ]),
9105
- f(S.$slots, "option-append", {}, () => [
9106
- R(s) && !C.hideOptionCheckIcon ? (m(), _(D, {
9107
+ f(r.$slots, "option-append", {}, () => [
9108
+ F(s) && !C.hideOptionCheckIcon ? (m(), _(x, {
9107
9109
  key: 0,
9108
- class: p(["r-dropdown-options__option__append-icon", {
9109
- "r-dropdown-options__option__append-icon--active": R(s)
9110
+ class: c(["r-dropdown-options__option__append-icon", {
9111
+ "r-dropdown-options__option__append-icon--active": F(s)
9110
9112
  }]),
9111
9113
  name: "mdiCheck"
9112
- }, null, 8, ["class"])) : c("", !0)
9114
+ }, null, 8, ["class"])) : p("", !0)
9113
9115
  ])
9114
9116
  ])
9115
- ], 10, z5))), 128)),
9116
- F.value.length === 0 ? (m(), n("li", q5, [
9117
- f(S.$slots, "not-options", {}, () => [
9118
- R1(w(C.noOptionsText || "No options"), 1)
9117
+ ], 10, U5))), 128)),
9118
+ R.value.length === 0 ? (m(), Z("li", K5, [
9119
+ f(r.$slots, "not-options", {}, () => [
9120
+ R1(w(C.multiple ? "No options hit to enter for create" : C.noOptionsText), 1)
9119
9121
  ])
9120
- ])) : c("", !0)
9122
+ ])) : p("", !0)
9121
9123
  ], 2)
9122
9124
  ]),
9123
9125
  _: 3
9124
9126
  }),
9125
- S.$props.hideDetails ? c("", !0) : (m(), n("div", j5, [
9126
- C.errorMsg ? (m(), n("div", X5, w(C.errorMsg), 1)) : c("", !0),
9127
- C.hint ? (m(), n("div", Y5, w(C.hint), 1)) : c("", !0)
9127
+ r.$props.hideDetails ? p("", !0) : (m(), Z("div", q5, [
9128
+ C.errorMsg ? (m(), Z("div", j5, w(C.errorMsg), 1)) : p("", !0),
9129
+ C.hint ? (m(), Z("div", X5, w(C.hint), 1)) : p("", !0)
9128
9130
  ]))
9129
9131
  ], 512));
9130
9132
  }
9131
- }), C3 = ["id", "for"], r2 = /* @__PURE__ */ T({
9133
+ }), J5 = ["id", "for"], r2 = /* @__PURE__ */ T({
9132
9134
  __name: "RLabel",
9133
9135
  props: {
9134
9136
  id: { default: "" },
@@ -9137,7 +9139,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9137
9139
  },
9138
9140
  setup(H) {
9139
9141
  const V = H;
9140
- return (C, M) => (m(), n("label", {
9142
+ return (C, M) => (m(), Z("label", {
9141
9143
  id: V.id,
9142
9144
  class: "r-label",
9143
9145
  for: V.for
@@ -9145,18 +9147,18 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9145
9147
  f(C.$slots, "default", {}, () => [
9146
9148
  R1(w(V.text), 1)
9147
9149
  ])
9148
- ], 8, C3));
9150
+ ], 8, J5));
9149
9151
  }
9150
- }), H3 = ["onClick"], V3 = ["open"], L3 = { class: "r-dialog__header" }, M3 = {
9152
+ }), C3 = ["onClick"], H3 = ["open"], V3 = { class: "r-dialog__header" }, L3 = {
9151
9153
  key: 0,
9152
9154
  class: "icon"
9153
- }, A3 = {
9155
+ }, M3 = {
9154
9156
  key: 1,
9155
9157
  class: "title"
9156
- }, i3 = {
9158
+ }, A3 = {
9157
9159
  key: 2,
9158
9160
  class: "description"
9159
- }, e3 = { class: "r-dialog__body" }, d3 = { class: "r-dialog__actions" }, l0 = /* @__PURE__ */ T({
9161
+ }, i3 = { class: "r-dialog__body" }, e3 = { class: "r-dialog__actions" }, m0 = /* @__PURE__ */ T({
9160
9162
  __name: "RModal",
9161
9163
  props: {
9162
9164
  modelValue: { type: Boolean, default: !1 },
@@ -9185,48 +9187,43 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9185
9187
  function i(e) {
9186
9188
  C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
9187
9189
  }
9188
- return j1(
9189
- () => {
9190
- C.modelValue && !C.allowBodyScroll ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
9191
- },
9192
- { flush: "post" }
9193
- ), O2(() => {
9190
+ return O2(() => {
9194
9191
  !C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
9195
9192
  }), window.addEventListener("keydown", (e) => {
9196
9193
  e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9197
- }), (e, t) => Y1((m(), n("div", {
9198
- class: p(["r-modal-overlay", e.overlayClass]),
9199
- onClick: d1(i, ["stop"])
9194
+ }), (e, d) => Y1((m(), Z("div", {
9195
+ class: c(["r-modal-overlay", e.overlayClass]),
9196
+ onClick: e1(i, ["stop"])
9200
9197
  }, [
9201
- u("div", {
9198
+ S("div", {
9202
9199
  "aria-modal": "true",
9203
- class: p(A.value),
9200
+ class: c(A.value),
9204
9201
  open: C.modelValue,
9205
9202
  role: "dialog",
9206
9203
  style: x1(L.value)
9207
9204
  }, [
9208
- u("div", L3, [
9205
+ S("div", V3, [
9209
9206
  f(e.$slots, "header"),
9210
- C.icon ? (m(), n("div", M3, [
9211
- K(D, {
9207
+ C.icon ? (m(), Z("div", L3, [
9208
+ K(x, {
9212
9209
  name: C.icon
9213
9210
  }, null, 8, ["name"])
9214
- ])) : c("", !0),
9215
- C.title ? (m(), n("div", A3, w(C.title), 1)) : c("", !0),
9216
- C.description ? (m(), n("div", i3, w(C.description), 1)) : c("", !0)
9211
+ ])) : p("", !0),
9212
+ C.title ? (m(), Z("div", M3, w(C.title), 1)) : p("", !0),
9213
+ C.description ? (m(), Z("div", A3, w(C.description), 1)) : p("", !0)
9217
9214
  ]),
9218
- u("div", e3, [
9215
+ S("div", i3, [
9219
9216
  f(e.$slots, "default")
9220
9217
  ]),
9221
- u("div", d3, [
9218
+ S("div", e3, [
9222
9219
  f(e.$slots, "actions")
9223
9220
  ])
9224
- ], 14, V3)
9225
- ], 10, H3)), [
9221
+ ], 14, H3)
9222
+ ], 10, C3)), [
9226
9223
  [p2, e.modelValue]
9227
9224
  ]);
9228
9225
  }
9229
- }), t3 = ["data-open"], m3 = ["data-open"], l3 = ["data-open"], o0 = /* @__PURE__ */ T({
9226
+ }), d3 = ["data-open"], t3 = ["data-open"], m3 = ["data-open"], l0 = /* @__PURE__ */ T({
9230
9227
  __name: "RSidebar",
9231
9228
  props: {
9232
9229
  modelValue: { type: Boolean, default: !1 },
@@ -9238,32 +9235,32 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9238
9235
  emits: ["update:modelValue"],
9239
9236
  setup(H, { emit: V }) {
9240
9237
  const C = H, M = V;
9241
- return (A, L) => (m(), n("div", {
9242
- class: p(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
9238
+ return (A, L) => (m(), Z("div", {
9239
+ class: c(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
9243
9240
  "data-open": C.modelValue
9244
9241
  }, [
9245
- u("aside", {
9246
- class: p(["r-sidebar", [C.class]]),
9242
+ S("aside", {
9243
+ class: c(["r-sidebar", [C.class]]),
9247
9244
  "data-open": C.modelValue
9248
9245
  }, [
9249
9246
  f(A.$slots, "default")
9250
- ], 10, m3),
9251
- C.showTrigger ? (m(), n("div", {
9247
+ ], 10, t3),
9248
+ C.showTrigger ? (m(), Z("div", {
9252
9249
  key: 0,
9253
- class: p(["r-sidebar__trigger", [C.triggerClass]]),
9250
+ class: c(["r-sidebar__trigger", [C.triggerClass]]),
9254
9251
  "data-open": C.modelValue,
9255
9252
  onClick: L[0] || (L[0] = (i) => M("update:modelValue", !C.modelValue))
9256
9253
  }, [
9257
9254
  f(A.$slots, "trigger", {}, () => [
9258
9255
  R1(" > ")
9259
9256
  ])
9260
- ], 10, l3)) : c("", !0)
9261
- ], 10, t3));
9257
+ ], 10, m3)) : p("", !0)
9258
+ ], 10, d3));
9262
9259
  }
9263
- }), o3 = { class: "r-snackbar__text" }, n3 = {
9260
+ }), l3 = { class: "r-snackbar__text" }, o3 = {
9264
9261
  key: 0,
9265
9262
  class: "r-snackbar__close"
9266
- }, n0 = /* @__PURE__ */ T({
9263
+ }, o0 = /* @__PURE__ */ T({
9267
9264
  __name: "RSnackbar",
9268
9265
  props: {
9269
9266
  modelValue: { type: Boolean, default: !1 },
@@ -9277,7 +9274,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9277
9274
  emits: ["action", "update:modelValue"],
9278
9275
  setup(H, { emit: V }) {
9279
9276
  const C = H, M = V;
9280
- $(
9277
+ G(
9281
9278
  () => C.modelValue,
9282
9279
  () => {
9283
9280
  C.timeout > 0 && C.modelValue && setTimeout(() => {
@@ -9301,39 +9298,39 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9301
9298
  warning: "mdiAlert",
9302
9299
  info: "mdiInformation"
9303
9300
  })[C.variant || "info"]);
9304
- return (i, e) => (m(), n("div", {
9305
- class: p(A.value)
9301
+ return (i, e) => (m(), Z("div", {
9302
+ class: c(A.value)
9306
9303
  }, [
9307
9304
  f(i.$slots, "default", {}, () => [
9308
- C.variant ? (m(), _(D, {
9305
+ C.variant ? (m(), _(x, {
9309
9306
  key: 0,
9310
9307
  class: "r-snackbar__icon",
9311
9308
  name: L.value
9312
- }, null, 8, ["name"])) : c("", !0)
9309
+ }, null, 8, ["name"])) : p("", !0)
9313
9310
  ]),
9314
- u("div", o3, w(C.text), 1),
9311
+ S("div", l3, w(C.text), 1),
9315
9312
  f(i.$slots, "action"),
9316
- C.closable ? (m(), n("div", n3, [
9313
+ C.closable ? (m(), Z("div", o3, [
9317
9314
  f(i.$slots, "close", {}, () => [
9318
- K(D, {
9315
+ K(x, {
9319
9316
  name: "mdiClose",
9320
9317
  size: 16,
9321
- onClick: e[0] || (e[0] = d1((t) => i.$emit("update:modelValue", !1), ["stop"]))
9318
+ onClick: e[0] || (e[0] = e1((d) => i.$emit("update:modelValue", !1), ["stop"]))
9322
9319
  })
9323
9320
  ])
9324
- ])) : c("", !0)
9321
+ ])) : p("", !0)
9325
9322
  ], 2));
9326
9323
  }
9327
- }), r3 = ["id", "checked", "disabled"], a3 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), Z3 = ["id", "for"], u3 = {
9324
+ }), n3 = ["id", "checked", "disabled"], r3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), a3 = ["id", "for"], Z3 = {
9328
9325
  key: 0,
9329
9326
  class: "r-switch-texts__details"
9330
- }, S3 = {
9327
+ }, u3 = {
9331
9328
  key: 0,
9332
9329
  class: "r-switch-texts__error"
9333
- }, s3 = {
9330
+ }, S3 = {
9334
9331
  key: 1,
9335
9332
  class: "r-switch-texts__hint"
9336
- }, r0 = /* @__PURE__ */ T({
9333
+ }, n0 = /* @__PURE__ */ T({
9337
9334
  __name: "RSwitch",
9338
9335
  props: {
9339
9336
  id: { default: "switch" },
@@ -9348,7 +9345,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9348
9345
  },
9349
9346
  emits: ["update:modelValue"],
9350
9347
  setup(H, { emit: V }) {
9351
- const C = H, M = V, A = m1({
9348
+ const C = H, M = V, A = Z1({
9352
9349
  checked: !1
9353
9350
  }), L = g(() => ({
9354
9351
  "r-switch": !0,
@@ -9359,7 +9356,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9359
9356
  function i(e) {
9360
9357
  C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
9361
9358
  }
9362
- return $(
9359
+ return G(
9363
9360
  () => C.modelValue,
9364
9361
  (e) => {
9365
9362
  A.checked = e;
@@ -9369,51 +9366,51 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9369
9366
  // TODO: find a better way to do this
9370
9367
  immediate: !0
9371
9368
  }
9372
- ), (e, t) => (m(), n("div", {
9373
- class: p(["r-switch-container", {
9369
+ ), (e, d) => (m(), Z("div", {
9370
+ class: c(["r-switch-container", {
9374
9371
  "r-switch-container--reverse": C.reverse,
9375
9372
  "r-switch-container--hide-details": C.hideDetails
9376
9373
  }])
9377
9374
  }, [
9378
- u("div", {
9379
- class: p(L.value)
9375
+ S("div", {
9376
+ class: c(L.value)
9380
9377
  }, [
9381
- u("input", {
9378
+ S("input", {
9382
9379
  id: C.id,
9383
9380
  checked: A.checked,
9384
9381
  class: "r-switch__input",
9385
9382
  disabled: C.disabled,
9386
9383
  type: "checkbox",
9387
9384
  onChange: i
9388
- }, null, 40, r3),
9389
- a3
9385
+ }, null, 40, n3),
9386
+ r3
9390
9387
  ], 2),
9391
- u("div", {
9392
- class: p(["r-switch-texts", {
9388
+ S("div", {
9389
+ class: c(["r-switch-texts", {
9393
9390
  [`r-switch-texts--${C.size}`]: !0
9394
9391
  }])
9395
9392
  }, [
9396
- u("label", {
9393
+ S("label", {
9397
9394
  id: `${C.id}-label`,
9398
9395
  class: "r-switch-texts__label",
9399
9396
  for: C.id
9400
- }, w(C.label), 9, Z3),
9401
- C.hideDetails ? c("", !0) : (m(), n("div", u3, [
9402
- C.errorMsg ? (m(), n("p", S3, w(C.errorMsg), 1)) : (m(), n("p", s3, w(C.hint), 1))
9397
+ }, w(C.label), 9, a3),
9398
+ C.hideDetails ? p("", !0) : (m(), Z("div", Z3, [
9399
+ C.errorMsg ? (m(), Z("p", u3, w(C.errorMsg), 1)) : (m(), Z("p", S3, w(C.hint), 1))
9403
9400
  ]))
9404
9401
  ], 2)
9405
9402
  ], 2));
9406
9403
  }
9407
9404
  });
9408
- var n1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(n1 || {});
9409
- const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9405
+ var l1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(l1 || {});
9406
+ const s3 = ["aria-disabled", "aria-selected", "disabled"], c3 = {
9410
9407
  key: 0,
9411
9408
  class: "r-tab-item__label"
9412
- }, p3 = /* @__PURE__ */ T({
9409
+ }, O3 = /* @__PURE__ */ T({
9413
9410
  __name: "RTabItem",
9414
9411
  props: {
9415
9412
  id: {},
9416
- variant: { default: n1.DEFAULT },
9413
+ variant: { default: l1.DEFAULT },
9417
9414
  label: { default: "" },
9418
9415
  prependIcon: { default: "" },
9419
9416
  appendIcon: { default: "" },
@@ -9433,49 +9430,49 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9433
9430
  })), L = g(() => ({
9434
9431
  color: C.color
9435
9432
  }));
9436
- function i(t) {
9437
- M("update:modelValue", t);
9433
+ function i(d) {
9434
+ M("update:modelValue", d);
9438
9435
  }
9439
9436
  function e() {
9440
9437
  M("click:icon");
9441
9438
  }
9442
- return (t, d) => (m(), n("button", {
9439
+ return (d, t) => (m(), Z("button", {
9443
9440
  "aria-disabled": C.disabled,
9444
9441
  "aria-selected": C.modelValue === C.id,
9445
- class: p(A.value),
9442
+ class: c(A.value),
9446
9443
  disabled: C.disabled,
9447
9444
  style: x1(L.value),
9448
- onClick: d[0] || (d[0] = d1((l) => i(C.id), ["stop"]))
9445
+ onClick: t[0] || (t[0] = e1((l) => i(C.id), ["stop"]))
9449
9446
  }, [
9450
- f(t.$slots, "prepend", {}, () => [
9451
- C.variant !== M1(n1).TEXT && C.prependIcon ? (m(), _(D, {
9447
+ f(d.$slots, "prepend", {}, () => [
9448
+ C.variant !== V1(l1).TEXT && C.prependIcon ? (m(), _(x, {
9452
9449
  key: 0,
9453
9450
  class: "r-tab-item__prepend-icon",
9454
9451
  name: C.prependIcon,
9455
9452
  size: 16
9456
- }, null, 8, ["name"])) : c("", !0)
9453
+ }, null, 8, ["name"])) : p("", !0)
9457
9454
  ]),
9458
9455
  K(f2, {
9459
9456
  duration: 150,
9460
9457
  name: "fade"
9461
9458
  }, {
9462
- default: r1(() => [
9463
- C.variant !== M1(n1).ICON ? (m(), n("span", O3, w(C.label), 1)) : c("", !0)
9459
+ default: n1(() => [
9460
+ C.variant !== V1(l1).ICON ? (m(), Z("span", c3, w(C.label), 1)) : p("", !0)
9464
9461
  ]),
9465
9462
  _: 1
9466
9463
  }),
9467
- f(t.$slots, "append", {}, () => [
9468
- C.variant !== M1(n1).TEXT && C.appendIcon ? (m(), _(D, {
9464
+ f(d.$slots, "append", {}, () => [
9465
+ C.variant !== V1(l1).TEXT && C.appendIcon ? (m(), _(x, {
9469
9466
  key: 0,
9470
9467
  class: "r-tab-item__append-icon",
9471
9468
  name: C.appendIcon,
9472
9469
  size: 16,
9473
- onClick: d1(e, ["stop"])
9474
- }, null, 8, ["name", "onClick"])) : c("", !0)
9470
+ onClick: e1(e, ["stop"])
9471
+ }, null, 8, ["name", "onClick"])) : p("", !0)
9475
9472
  ])
9476
- ], 14, c3));
9473
+ ], 14, s3));
9477
9474
  }
9478
- }), a0 = /* @__PURE__ */ T({
9475
+ }), r0 = /* @__PURE__ */ T({
9479
9476
  __name: "RTabs",
9480
9477
  props: {
9481
9478
  tabs: { default: () => [] },
@@ -9486,13 +9483,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9486
9483
  },
9487
9484
  emits: ["update:modelValue", "click:icon"],
9488
9485
  setup(H, { emit: V }) {
9489
- const C = H, M = V, A = N(C.modelValue || C.tabs[0].id), L = g(() => ({
9486
+ const C = H, M = V, A = W(C.modelValue || C.tabs[0].id), L = g(() => ({
9490
9487
  "r-tabs": !0,
9491
9488
  "r-tabs--block": C.block,
9492
9489
  "r-tabs--tile": C.tile,
9493
9490
  "r-tabs--scrollable": C.scrollable
9494
9491
  }));
9495
- $(
9492
+ G(
9496
9493
  () => A.value,
9497
9494
  () => {
9498
9495
  M("update:modelValue", A.value);
@@ -9501,38 +9498,38 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9501
9498
  function i() {
9502
9499
  M("click:icon");
9503
9500
  }
9504
- return (e, t) => (m(), n("div", {
9505
- class: p(L.value)
9501
+ return (e, d) => (m(), Z("div", {
9502
+ class: c(L.value)
9506
9503
  }, [
9507
9504
  f(e.$slots, "default", {}, () => [
9508
- (m(!0), n(V1, null, A1(C.tabs, (d, l) => (m(), _(p3, {
9509
- id: d.id,
9505
+ (m(!0), Z(i1, null, o1(C.tabs, (t, l) => (m(), _(O3, {
9506
+ id: t.id,
9510
9507
  key: l,
9511
9508
  modelValue: A.value,
9512
- "onUpdate:modelValue": t[0] || (t[0] = (o) => A.value = o),
9509
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => A.value = o),
9513
9510
  active: l === A.value,
9514
- "append-icon": d.appendIcon,
9511
+ "append-icon": t.appendIcon,
9515
9512
  block: e.block,
9516
- disabled: d.disabled,
9517
- label: d.label,
9518
- "prepend-icon": d.prependIcon,
9513
+ disabled: t.disabled,
9514
+ label: t.label,
9515
+ "prepend-icon": t.prependIcon,
9519
9516
  tile: e.tile,
9520
- variant: d.variant,
9517
+ variant: t.variant,
9521
9518
  "onClick:icon": i
9522
9519
  }, null, 8, ["id", "modelValue", "active", "append-icon", "block", "disabled", "label", "prepend-icon", "tile", "variant"]))), 128))
9523
9520
  ])
9524
9521
  ], 2));
9525
9522
  }
9526
- }), f3 = { class: "r-textarea-wrapper" }, h3 = ["id", "disabled", "placeholder", "value"], g3 = {
9523
+ }), p3 = { class: "r-textarea-wrapper" }, f3 = ["id", "disabled", "placeholder", "value"], h3 = {
9527
9524
  key: 1,
9528
9525
  class: "r-textarea__details"
9529
- }, k3 = {
9526
+ }, g3 = {
9530
9527
  key: 0,
9531
9528
  class: "r-textarea__error"
9532
- }, B3 = {
9529
+ }, k3 = {
9533
9530
  key: 1,
9534
9531
  class: "r-textarea__hint"
9535
- }, Z0 = /* @__PURE__ */ T({
9532
+ }, a0 = /* @__PURE__ */ T({
9536
9533
  __name: "RTextArea",
9537
9534
  props: {
9538
9535
  id: { default: "" },
@@ -9546,13 +9543,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9546
9543
  },
9547
9544
  emits: ["update:modelValue"],
9548
9545
  setup(H, { emit: V }) {
9549
- const C = H, M = V, A = m1({
9546
+ const C = H, M = V, A = Z1({
9550
9547
  value: ""
9551
9548
  });
9552
9549
  function L(i) {
9553
9550
  M("update:modelValue", i.target.value);
9554
9551
  }
9555
- return $(
9552
+ return G(
9556
9553
  () => C.modelValue,
9557
9554
  (i) => {
9558
9555
  A.value = i;
@@ -9560,40 +9557,40 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9560
9557
  {
9561
9558
  immediate: !0
9562
9559
  }
9563
- ), (i, e) => (m(), n("div", f3, [
9560
+ ), (i, e) => (m(), Z("div", p3, [
9564
9561
  C.label ? (m(), _(r2, {
9565
9562
  key: 0,
9566
9563
  id: `${C.id}-label`,
9567
9564
  class: "r-textarea__label",
9568
9565
  for: "textarea",
9569
9566
  text: C.label
9570
- }, null, 8, ["id", "text"])) : c("", !0),
9571
- u("textarea", {
9567
+ }, null, 8, ["id", "text"])) : p("", !0),
9568
+ S("textarea", j1(i.$attrs, {
9572
9569
  id: C.id,
9573
- class: p(["r-textarea", {
9570
+ class: ["r-textarea", {
9574
9571
  "r-textarea--error": C.errorMsg,
9575
9572
  "r-textarea--disabled": C.disabled
9576
- }]),
9573
+ }],
9577
9574
  disabled: C.disabled,
9578
9575
  placeholder: C.placeholder,
9579
9576
  value: A.value,
9580
9577
  onInput: L
9581
- }, null, 42, h3),
9582
- C.hideDetails ? c("", !0) : (m(), n("div", g3, [
9583
- C.errorMsg ? (m(), n("p", k3, w(C.errorMsg), 1)) : (m(), n("p", B3, w(C.hint), 1))
9578
+ }), null, 16, f3),
9579
+ C.hideDetails ? p("", !0) : (m(), Z("div", h3, [
9580
+ C.errorMsg ? (m(), Z("p", g3, w(C.errorMsg), 1)) : (m(), Z("p", k3, w(C.hint), 1))
9584
9581
  ]))
9585
9582
  ]));
9586
9583
  }
9587
- }), b3 = { class: "r-textfield__wrapper" }, w3 = { class: "input-wrapper" }, y3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], P3 = {
9584
+ }), B3 = { class: "r-textfield__wrapper" }, b3 = { class: "input-wrapper" }, w3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], y3 = {
9588
9585
  key: 0,
9589
9586
  class: "r-textfield__details"
9590
- }, v3 = {
9587
+ }, P3 = {
9591
9588
  key: 0,
9592
9589
  class: "r-textfield__error"
9593
- }, T3 = {
9590
+ }, v3 = {
9594
9591
  key: 1,
9595
9592
  class: "r-textfield__hint"
9596
- }, u0 = /* @__PURE__ */ T({
9593
+ }, Z0 = /* @__PURE__ */ T({
9597
9594
  __name: "RTextfield",
9598
9595
  props: {
9599
9596
  id: { default: "" },
@@ -9623,56 +9620,56 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9623
9620
  "click:clear"
9624
9621
  ],
9625
9622
  setup(H, { emit: V }) {
9626
- const C = H, M = V, A = N(), L = m1({
9623
+ const C = H, M = V, A = W(), L = Z1({
9627
9624
  value: ""
9628
- }), i = N(C.type), e = {
9625
+ }), i = W(C.type), e = {
9629
9626
  password: "mdiLock",
9630
9627
  email: "mdiEmailOutline",
9631
9628
  tel: "mdiPhone",
9632
9629
  url: "mdiLink",
9633
9630
  number: "mdiNumeric",
9634
9631
  text: ""
9635
- }, t = N(!1), d = g(() => !!L.value), l = g(() => L.value.length > 0), o = g(() => {
9632
+ }, d = W(!1), t = g(() => !!L.value), l = g(() => L.value.length > 0), o = g(() => {
9636
9633
  var O;
9637
9634
  return (O = C.errorMsg) == null ? void 0 : O.length;
9638
- }), a = g(() => C.clearable && l.value), r = g(() => {
9639
- const { disabled: O, loading: W } = C;
9635
+ }), n = g(() => C.clearable && l.value), a = g(() => {
9636
+ const { disabled: O, loading: N } = C;
9640
9637
  return {
9641
9638
  "r-textfield": !0,
9642
9639
  "r-textfield--error": o.value,
9643
- "r-textfield--loading": W,
9640
+ "r-textfield--loading": N,
9644
9641
  "r-textfield--disabled": O,
9645
- "r-textfield--clearable": a.value,
9646
- "r-textfield--focus": t.value,
9647
- "r-textfield--filled": d.value
9642
+ "r-textfield--clearable": n.value,
9643
+ "r-textfield--focus": d.value,
9644
+ "r-textfield--filled": t.value
9648
9645
  };
9649
- }), Z = g(() => ({
9646
+ }), u = g(() => ({
9650
9647
  "r-textfield__prepend-icon": !0,
9651
9648
  "r-textfield__prepend-icon--loading": C.loading,
9652
- "r-textfield__prepend-icon--error": o.value && d.value
9653
- })), B = g(() => ({
9649
+ "r-textfield__prepend-icon--error": o.value && t.value
9650
+ })), b = g(() => ({
9654
9651
  "r-textfield__append-icon": !0,
9655
- "r-textfield__append-icon--clear": a.value,
9652
+ "r-textfield__append-icon--clear": n.value,
9656
9653
  "r-textfield__append-icon--error": o.value
9657
9654
  })), k = g(() => {
9658
- const { prependIcon: O, type: W } = C;
9659
- return O === "none" ? "" : O || e[W];
9655
+ const { prependIcon: O, type: N } = C;
9656
+ return O === "none" ? "" : O || e[N];
9660
9657
  }), y = g(() => {
9661
- const { appendIcon: O, type: W } = C;
9662
- return O === "none" ? "" : o.value ? "mdiAlertCircleOutline" : a.value && ["text", "email"].includes(W) ? "mdiClose" : W === "password" && i.value === "password" ? "mdiEyeOutline" : W === "password" && i.value === "text" ? "mdiEyeOffOutline" : O;
9658
+ const { appendIcon: O, type: N } = C;
9659
+ return O === "none" ? "" : o.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(N) ? "mdiClose" : N === "password" && i.value === "password" ? "mdiEyeOutline" : N === "password" && i.value === "text" ? "mdiEyeOffOutline" : O;
9663
9660
  });
9664
9661
  function P(O) {
9665
- t.value = !0, M("focus", O);
9662
+ d.value = !0, M("focus", O);
9666
9663
  }
9667
9664
  function v(O) {
9668
- t.value = !1, M("blur", O);
9665
+ d.value = !1, M("blur", O);
9669
9666
  }
9670
- function R(O) {
9667
+ function F(O) {
9671
9668
  L.value = O.target.value, M("input", O);
9672
9669
  }
9673
- function F() {
9670
+ function R() {
9674
9671
  var O;
9675
- if (a.value) {
9672
+ if (n.value) {
9676
9673
  L.value = "", (O = A.value) == null || O.focus(), M("click:clear", {
9677
9674
  value: i.value === "number" ? +L.value : L.value
9678
9675
  });
@@ -9689,7 +9686,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9689
9686
  var O;
9690
9687
  (O = A.value) == null || O.focus();
9691
9688
  }
9692
- return $(
9689
+ return G(
9693
9690
  () => C.modelValue,
9694
9691
  (O) => {
9695
9692
  L.value = O;
@@ -9697,7 +9694,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9697
9694
  {
9698
9695
  immediate: !0
9699
9696
  }
9700
- ), $(
9697
+ ), G(
9701
9698
  () => L.value,
9702
9699
  (O) => {
9703
9700
  M(
@@ -9705,7 +9702,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9705
9702
  i.value === "number" ? +O : O
9706
9703
  );
9707
9704
  }
9708
- ), (O, W) => (m(), n("div", b3, [
9705
+ ), (O, N) => (m(), Z("div", B3, [
9709
9706
  C.label ? (m(), _(r2, {
9710
9707
  key: 0,
9711
9708
  id: `${C.id}-label`,
@@ -9713,19 +9710,19 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9713
9710
  for: C.id,
9714
9711
  text: C.label,
9715
9712
  onClick: I
9716
- }, null, 8, ["id", "for", "text"])) : c("", !0),
9717
- u("div", w3, [
9718
- u("div", {
9719
- class: p(r.value)
9713
+ }, null, 8, ["id", "for", "text"])) : p("", !0),
9714
+ S("div", b3, [
9715
+ S("div", {
9716
+ class: c(a.value)
9720
9717
  }, [
9721
9718
  f(O.$slots, "prepend"),
9722
- k.value && !O.$slots.prepend ? (m(), _(D, {
9719
+ k.value && !O.$slots.prepend ? (m(), _(x, {
9723
9720
  key: 0,
9724
- class: p(Z.value),
9721
+ class: c(u.value),
9725
9722
  name: k.value,
9726
9723
  size: 20
9727
- }, null, 8, ["class", "name"])) : c("", !0),
9728
- u("input", {
9724
+ }, null, 8, ["class", "name"])) : p("", !0),
9725
+ S("input", {
9729
9726
  id: C.id,
9730
9727
  ref_key: "inputRef",
9731
9728
  ref: A,
@@ -9739,28 +9736,28 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9739
9736
  value: L.value,
9740
9737
  onBlur: v,
9741
9738
  onFocus: P,
9742
- onInput: R
9743
- }, null, 40, y3),
9744
- o.value ? c("", !0) : f(O.$slots, "append", { key: 1 }),
9745
- y.value && !O.$slots.append || o.value ? (m(), _(D, {
9739
+ onInput: F
9740
+ }, null, 40, w3),
9741
+ o.value ? p("", !0) : f(O.$slots, "append", { key: 1 }),
9742
+ y.value && !O.$slots.append || o.value ? (m(), _(x, {
9746
9743
  key: 2,
9747
- class: p(B.value),
9744
+ class: c(b.value),
9748
9745
  name: `${y.value}`,
9749
9746
  size: 20,
9750
- onClick: F
9751
- }, null, 8, ["class", "name"])) : c("", !0)
9747
+ onClick: R
9748
+ }, null, 8, ["class", "name"])) : p("", !0)
9752
9749
  ], 2),
9753
- C.hideDetails ? c("", !0) : (m(), n("div", P3, [
9754
- C.errorMsg ? (m(), n("p", v3, w(C.errorMsg), 1)) : c("", !0),
9755
- !C.errorMsg && C.hint ? (m(), n("p", T3, w(C.hint), 1)) : c("", !0)
9750
+ C.hideDetails ? p("", !0) : (m(), Z("div", y3, [
9751
+ C.errorMsg ? (m(), Z("p", P3, w(C.errorMsg), 1)) : p("", !0),
9752
+ !C.errorMsg && C.hint ? (m(), Z("p", v3, w(C.hint), 1)) : p("", !0)
9756
9753
  ]))
9757
9754
  ])
9758
9755
  ]));
9759
9756
  }
9760
- }), F3 = { class: "r-breadcrumb" }, R3 = {
9757
+ }), T3 = { class: "r-breadcrumb" }, F3 = {
9761
9758
  key: 0,
9762
9759
  class: "r-breadcrumb__title"
9763
- }, S0 = /* @__PURE__ */ T({
9760
+ }, u0 = /* @__PURE__ */ T({
9764
9761
  __name: "RBreadcrumb",
9765
9762
  props: {
9766
9763
  items: { default: () => [] },
@@ -9770,8 +9767,8 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9770
9767
  const V = H;
9771
9768
  return (C, M) => {
9772
9769
  const A = h2("router-link");
9773
- return m(), n("div", F3, [
9774
- (m(!0), n(V1, null, A1(V.items, (L, i) => (m(), n("div", {
9770
+ return m(), Z("div", T3, [
9771
+ (m(!0), Z(i1, null, o1(V.items, (L, i) => (m(), Z("div", {
9775
9772
  key: i,
9776
9773
  class: "r-breadcrumb__item"
9777
9774
  }, [
@@ -9779,59 +9776,59 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9779
9776
  class: "r-breadcrumb__link",
9780
9777
  to: L.to
9781
9778
  }, {
9782
- default: r1(() => [
9779
+ default: n1(() => [
9783
9780
  f(C.$slots, "item-icon", {}, () => [
9784
- L.icon ? (m(), _(D, {
9781
+ L.icon ? (m(), _(x, {
9785
9782
  key: 0,
9786
9783
  name: L.icon
9787
- }, null, 8, ["name"])) : c("", !0)
9784
+ }, null, 8, ["name"])) : p("", !0)
9788
9785
  ]),
9789
- L.onlyIcon ? c("", !0) : (m(), n("span", R3, w(L.title), 1))
9786
+ L.onlyIcon ? p("", !0) : (m(), Z("span", F3, w(L.title), 1))
9790
9787
  ]),
9791
9788
  _: 2
9792
9789
  }, 1032, ["to"]),
9793
9790
  f(C.$slots, "custom-seperator", {}, () => [
9794
- i !== C.items.length - 1 && V.seperator ? (m(), _(D, {
9791
+ i !== C.items.length - 1 && V.seperator ? (m(), _(x, {
9795
9792
  key: 0,
9796
9793
  class: "r-breadcrumb__separator",
9797
9794
  name: V.seperator
9798
- }, null, 8, ["name"])) : c("", !0)
9795
+ }, null, 8, ["name"])) : p("", !0)
9799
9796
  ])
9800
9797
  ]))), 128))
9801
9798
  ]);
9802
9799
  };
9803
9800
  }
9804
- }), x3 = { class: "r-pagination__paginator" }, D3 = { class: "r-pagination__paginator__per-page" }, _3 = { class: "r-pagination__paginator__info" }, E3 = ["disabled"], W3 = /* @__PURE__ */ u("path", {
9801
+ }), R3 = { class: "r-pagination__paginator" }, x3 = { class: "r-pagination__paginator__per-page" }, D3 = { class: "r-pagination__paginator__info" }, _3 = ["disabled"], E3 = /* @__PURE__ */ S("path", {
9805
9802
  d: "M0 0h24v24H0z",
9806
9803
  fill: "none",
9807
9804
  stroke: "none"
9808
- }, null, -1), N3 = /* @__PURE__ */ u("path", { d: "M7 6v12" }, null, -1), I3 = /* @__PURE__ */ u("path", { d: "M18 6l-6 6l6 6" }, null, -1), Q3 = [
9805
+ }, null, -1), W3 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), N3 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), I3 = [
9806
+ E3,
9809
9807
  W3,
9810
- N3,
9811
- I3
9812
- ], G3 = ["disabled"], $3 = /* @__PURE__ */ u("path", {
9808
+ N3
9809
+ ], Q3 = ["disabled"], G3 = /* @__PURE__ */ S("path", {
9813
9810
  d: "M0 0h24v24H0z",
9814
9811
  fill: "none",
9815
9812
  stroke: "none"
9816
- }, null, -1), U3 = /* @__PURE__ */ u("path", { d: "M15 6l-6 6l6 6" }, null, -1), z3 = [
9817
- $3,
9818
- U3
9819
- ], K3 = ["disabled"], q3 = /* @__PURE__ */ u("path", {
9813
+ }, null, -1), $3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), U3 = [
9814
+ G3,
9815
+ $3
9816
+ ], z3 = ["disabled"], K3 = /* @__PURE__ */ S("path", {
9820
9817
  d: "M0 0h24v24H0z",
9821
9818
  fill: "none",
9822
9819
  stroke: "none"
9823
- }, null, -1), j3 = /* @__PURE__ */ u("path", { d: "M9 6l6 6l-6 6" }, null, -1), X3 = [
9824
- q3,
9825
- j3
9826
- ], Y3 = ["disabled"], J3 = /* @__PURE__ */ u("path", {
9820
+ }, null, -1), q3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), j3 = [
9821
+ K3,
9822
+ q3
9823
+ ], X3 = ["disabled"], Y3 = /* @__PURE__ */ S("path", {
9827
9824
  d: "M0 0h24v24H0z",
9828
9825
  fill: "none",
9829
9826
  stroke: "none"
9830
- }, null, -1), C0 = /* @__PURE__ */ u("path", { d: "M6 6l6 6l-6 6" }, null, -1), H0 = /* @__PURE__ */ u("path", { d: "M17 5v13" }, null, -1), V0 = [
9827
+ }, null, -1), J3 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), C0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), H0 = [
9828
+ Y3,
9831
9829
  J3,
9832
- C0,
9833
- H0
9834
- ], s0 = /* @__PURE__ */ T({
9830
+ C0
9831
+ ], S0 = /* @__PURE__ */ T({
9835
9832
  __name: "RPagination",
9836
9833
  props: {
9837
9834
  page: { default: 1 },
@@ -9844,30 +9841,30 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9844
9841
  },
9845
9842
  emits: ["update:page", "update:perPage", "update:info"],
9846
9843
  setup(H, { emit: V }) {
9847
- const C = H, M = V, A = N(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), i = g(() => ({
9844
+ const C = H, M = V, A = W(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), i = g(() => ({
9848
9845
  start: C.page * C.perPage - C.perPage,
9849
9846
  end: C.page * C.perPage
9850
9847
  }));
9851
- $(() => i.value, () => {
9848
+ G(() => i.value, () => {
9852
9849
  M("update:info", i.value);
9853
9850
  });
9854
- function e(d) {
9855
- d < 1 || d > L.value || M("update:page", d);
9851
+ function e(t) {
9852
+ t < 1 || t > L.value || M("update:page", t);
9856
9853
  }
9857
- function t({ value: d }) {
9858
- M("update:perPage", d);
9854
+ function d({ value: t }) {
9855
+ M("update:perPage", t);
9859
9856
  }
9860
- return (d, l) => (m(), n("div", {
9861
- class: p(["r-pagination", [`r-pagination--${C.position}`]])
9857
+ return (t, l) => (m(), Z("div", {
9858
+ class: c(["r-pagination", [`r-pagination--${C.position}`]])
9862
9859
  }, [
9863
- u("div", x3, [
9864
- u("div", D3, [
9865
- u("span", null, w(C.itemsPerPageText), 1),
9866
- K(J5, {
9860
+ S("div", R3, [
9861
+ S("div", x3, [
9862
+ S("span", null, w(C.itemsPerPageText), 1),
9863
+ K(Y5, {
9867
9864
  modelValue: A.value,
9868
9865
  "onUpdate:modelValue": [
9869
9866
  l[0] || (l[0] = (o) => A.value = o),
9870
- t
9867
+ d
9871
9868
  ],
9872
9869
  class: "w-24",
9873
9870
  "hide-details": "",
@@ -9875,15 +9872,15 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9875
9872
  options: C.perPageOptions
9876
9873
  }, null, 8, ["modelValue", "options"])
9877
9874
  ]),
9878
- u("span", _3, w(C.infoText), 1),
9879
- u("button", {
9875
+ S("span", D3, w(C.infoText), 1),
9876
+ S("button", {
9880
9877
  class: "r-pagination__paginator__first",
9881
9878
  disabled: C.page === 1,
9882
9879
  onClick: l[1] || (l[1] = (o) => e(1))
9883
9880
  }, [
9884
- f(d.$slots, "first", {}, () => [
9885
- (m(), n("svg", {
9886
- class: p(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": C.page === 1 }]),
9881
+ f(t.$slots, "first", {}, () => [
9882
+ (m(), Z("svg", {
9883
+ class: c(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": C.page === 1 }]),
9887
9884
  fill: "none",
9888
9885
  height: "20",
9889
9886
  stroke: "#000000",
@@ -9893,17 +9890,17 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9893
9890
  viewBox: "0 0 24 24",
9894
9891
  width: "20",
9895
9892
  xmlns: "http://www.w3.org/2000/svg"
9896
- }, Q3, 2))
9893
+ }, I3, 2))
9897
9894
  ])
9898
- ], 8, E3),
9899
- u("button", {
9895
+ ], 8, _3),
9896
+ S("button", {
9900
9897
  class: "r-pagination__paginator__prev",
9901
9898
  disabled: C.page === 1,
9902
9899
  onClick: l[2] || (l[2] = (o) => e(+C.page - 1))
9903
9900
  }, [
9904
- f(d.$slots, "prev", {}, () => [
9905
- (m(), n("svg", {
9906
- class: p(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": C.page === 1 }]),
9901
+ f(t.$slots, "prev", {}, () => [
9902
+ (m(), Z("svg", {
9903
+ class: c(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": C.page === 1 }]),
9907
9904
  fill: "none",
9908
9905
  height: "20",
9909
9906
  stroke: "#000000",
@@ -9913,17 +9910,17 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9913
9910
  viewBox: "0 0 24 24",
9914
9911
  width: "20",
9915
9912
  xmlns: "http://www.w3.org/2000/svg"
9916
- }, z3, 2))
9913
+ }, U3, 2))
9917
9914
  ])
9918
- ], 8, G3),
9919
- u("button", {
9915
+ ], 8, Q3),
9916
+ S("button", {
9920
9917
  class: "r-pagination__paginator__next",
9921
9918
  disabled: C.page === L.value,
9922
9919
  onClick: l[3] || (l[3] = (o) => e(+C.page + 1))
9923
9920
  }, [
9924
- f(d.$slots, "next", {}, () => [
9925
- (m(), n("svg", {
9926
- class: p(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": C.page === L.value }]),
9921
+ f(t.$slots, "next", {}, () => [
9922
+ (m(), Z("svg", {
9923
+ class: c(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": C.page === L.value }]),
9927
9924
  fill: "none",
9928
9925
  height: "20",
9929
9926
  stroke: "#000000",
@@ -9933,17 +9930,17 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9933
9930
  viewBox: "0 0 24 24",
9934
9931
  width: "20",
9935
9932
  xmlns: "http://www.w3.org/2000/svg"
9936
- }, X3, 2))
9933
+ }, j3, 2))
9937
9934
  ])
9938
- ], 8, K3),
9939
- u("button", {
9935
+ ], 8, z3),
9936
+ S("button", {
9940
9937
  class: "r-pagination__paginator__last",
9941
9938
  disabled: C.page === L.value,
9942
9939
  onClick: l[4] || (l[4] = (o) => e(C.totalItems / C.perPage))
9943
9940
  }, [
9944
- f(d.$slots, "last", {}, () => [
9945
- (m(), n("svg", {
9946
- class: p(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": C.page === L.value }]),
9941
+ f(t.$slots, "last", {}, () => [
9942
+ (m(), Z("svg", {
9943
+ class: c(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": C.page === L.value }]),
9947
9944
  fill: "none",
9948
9945
  height: "20",
9949
9946
  stroke: "#000000",
@@ -9953,13 +9950,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9953
9950
  viewBox: "0 0 24 24",
9954
9951
  width: "20",
9955
9952
  xmlns: "http://www.w3.org/2000/svg"
9956
- }, V0, 2))
9953
+ }, H0, 2))
9957
9954
  ])
9958
- ], 8, Y3)
9955
+ ], 8, X3)
9959
9956
  ])
9960
9957
  ], 2));
9961
9958
  }
9962
- }), L0 = ["value"], c0 = /* @__PURE__ */ T({
9959
+ }), V0 = ["value"], s0 = /* @__PURE__ */ T({
9963
9960
  __name: "RProgressbar",
9964
9961
  props: {
9965
9962
  value: { default: 0 },
@@ -9967,16 +9964,16 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9967
9964
  },
9968
9965
  setup(H) {
9969
9966
  const V = H;
9970
- return (C, M) => (m(), n("progress", {
9967
+ return (C, M) => (m(), Z("progress", {
9971
9968
  "aria-valuemax": 100,
9972
9969
  class: "r-progressbar",
9973
9970
  max: 100,
9974
9971
  role: "progressbar",
9975
9972
  style: x1({ height: `${V.height}px` }),
9976
9973
  value: V.value
9977
- }, null, 12, L0));
9974
+ }, null, 12, V0));
9978
9975
  }
9979
- }), w1 = "rocket-ui:r-item-group", O0 = /* @__PURE__ */ T({
9976
+ }), O1 = "rocket-ui:r-item-group", c0 = /* @__PURE__ */ T({
9980
9977
  __name: "RItemGroup",
9981
9978
  props: {
9982
9979
  modelValue: { default: () => [] },
@@ -9989,74 +9986,78 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9989
9986
  },
9990
9987
  emits: ["update:modelValue"],
9991
9988
  setup(H, { emit: V }) {
9992
- const C = H, M = V, A = N(C.as ?? "div"), L = N(C.modelValue ?? []), i = g(() => C.selectedClass);
9993
- k1(`${w1}:selectedClass`, i.value);
9994
- function e(d) {
9995
- return L.value.includes(d);
9989
+ const C = H, M = V, A = W(C.as ?? "div"), L = W(C.modelValue), i = g(() => C.selectedClass);
9990
+ s1(`${O1}:selectedClass`, i.value);
9991
+ function e(l) {
9992
+ return L.value.includes(l);
9996
9993
  }
9997
- k1(`${w1}:isSelected`, e);
9998
- function t(d, l) {
9999
- C.disabled || C.mandatory && L.value.length === 1 && l || C.max && L.value.length === C.max && l || (C.multiple ? l ? L.value.push(d) : L.value = L.value.filter((o) => o !== d) : L.value = l ? [d] : [], M("update:modelValue", L.value));
9994
+ s1(`${O1}:isSelected`, e);
9995
+ function d(l, o) {
9996
+ C.disabled || C.mandatory && L.value.length === 1 && !o || C.max && L.value.length === C.max && o || (C.multiple ? o ? L.value.push(l) : L.value = L.value.filter((n) => n !== l) : L.value = l ? [l] : [], M("update:modelValue", L.value));
10000
9997
  }
10001
- return k1(`${w1}:select`, t), (d, l) => (m(), _(g2(A.value), null, {
10002
- default: r1(() => [
10003
- f(d.$slots, "default", {
9998
+ s1(`${O1}:select`, d);
9999
+ function t() {
10000
+ return C.disabled;
10001
+ }
10002
+ return s1(`${O1}:isDisabled`, t), G(() => C.modelValue, () => {
10003
+ L.value = C.modelValue;
10004
+ }), (l, o) => (m(), _(g2(A.value), null, {
10005
+ default: n1(() => [
10006
+ f(l.$slots, "default", {
10004
10007
  isSelected: e,
10005
- select: t,
10008
+ select: d,
10006
10009
  selected: L.value
10007
10010
  })
10008
10011
  ]),
10009
10012
  _: 3
10010
10013
  }));
10011
10014
  }
10012
- }), y1 = "rocket-ui:r-item-group", p0 = /* @__PURE__ */ T({
10015
+ }), p1 = "rocket-ui:r-item-group", O0 = /* @__PURE__ */ T({
10013
10016
  __name: "RItem",
10014
10017
  props: {
10015
10018
  value: { default: null },
10016
- disabled: { type: Boolean, default: !1 },
10017
10019
  selectedClass: { default: "" }
10018
10020
  },
10019
10021
  setup(H) {
10020
- const V = H, C = B1(`${y1}:isSelected`), M = B1(`${y1}:selectedClass`, ""), A = g(() => C(V.value) && [M, V.selectedClass]), L = B1(`${y1}:select`);
10021
- function i() {
10022
- V.disabled || L(V.value, !C(V.value));
10023
- }
10022
+ const V = H, C = c1(`${p1}:isSelected`), M = c1(`${p1}:selectedClass`, ""), A = c1(`${p1}:select`), L = c1(`${p1}:isDisabled`), i = g(() => C(V.value) && [M, V.selectedClass]);
10024
10023
  function e() {
10025
- V.disabled || L(V.value, !0);
10024
+ V.disabled || A(V.value, !C(V.value));
10026
10025
  }
10027
- return (t, d) => f(t.$slots, "default", {
10028
- disabled: V.disabled,
10029
- isSelected: M1(C)(V.value),
10030
- select: e,
10031
- selectedClass: A.value,
10032
- toggle: i,
10033
- value: V.value
10026
+ function d() {
10027
+ V.disabled || A(V.value, !0);
10028
+ }
10029
+ return (t, l) => f(t.$slots, "default", {
10030
+ disabled: V1(L)(V.value),
10031
+ isSelected: V1(C)(V.value),
10032
+ select: d,
10033
+ selectedClass: i.value,
10034
+ toggle: e
10034
10035
  });
10035
10036
  }
10036
10037
  });
10037
10038
  export {
10038
- A0 as RAccordion,
10039
- i0 as RAlert,
10040
- e0 as RAvatar,
10041
- d0 as RBadge,
10042
- S0 as RBreadcrumb,
10043
- t0 as RButton,
10044
- m0 as RCheckbox,
10045
- J2 as RChip,
10046
- J5 as RDropdown,
10047
- D as RIcon,
10048
- p0 as RItem,
10049
- O0 as RItemGroup,
10039
+ M0 as RAccordion,
10040
+ A0 as RAlert,
10041
+ i0 as RAvatar,
10042
+ e0 as RBadge,
10043
+ u0 as RBreadcrumb,
10044
+ d0 as RButton,
10045
+ t0 as RCheckbox,
10046
+ Y2 as RChip,
10047
+ Y5 as RDropdown,
10048
+ x as RIcon,
10049
+ O0 as RItem,
10050
+ c0 as RItemGroup,
10050
10051
  r2 as RLabel,
10051
- l0 as RModal,
10052
- s0 as RPagination,
10053
- c0 as RProgressbar,
10054
- o0 as RSidebar,
10055
- n0 as RSnackbar,
10056
- r0 as RSwitch,
10057
- p3 as RTabItem,
10058
- a0 as RTabs,
10059
- Z0 as RTextArea,
10060
- u0 as RTextfield,
10061
- N5 as RTooltip
10052
+ m0 as RModal,
10053
+ S0 as RPagination,
10054
+ s0 as RProgressbar,
10055
+ l0 as RSidebar,
10056
+ o0 as RSnackbar,
10057
+ n0 as RSwitch,
10058
+ O3 as RTabItem,
10059
+ r0 as RTabs,
10060
+ a0 as RTextArea,
10061
+ Z0 as RTextfield,
10062
+ W5 as RTooltip
10062
10063
  };