@rocketui/vue 0.2.81 → 0.2.83

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,5 +1,5 @@
1
- import { defineComponent as R, openBlock as t, createElementBlock as r, createElementVNode as u, unref as J, reactive as P1, Fragment as H1, renderList as d1, normalizeClass as p, renderSlot as h, toDisplayString as b, createVNode as q, computed as g, createCommentVNode as O, mergeProps as T1, createBlock as _, watch as G, getCurrentScope as f2, onScopeDispose as h2, ref as E, watchEffect as q1, onMounted as i2, onUnmounted as A2, Teleport as g2, withCtx as B1, withDirectives as e2, withModifiers as t1, withKeys as j1, vModelText as k2, createTextVNode as S1, normalizeStyle as G1, vShow as B2, resolveComponent as b2, provide as f1, resolveDynamicComponent as w2, inject as h1 } from "vue";
2
- const v2 = {
1
+ import { defineComponent as T, openBlock as l, createElementBlock as a, createElementVNode as Z, unref as z, reactive as D1, Fragment as A1, renderList as n1, normalizeClass as O, renderSlot as k, toDisplayString as v, createVNode as H1, computed as f, createCommentVNode as g, mergeProps as E1, createBlock as D, watch as W, getCurrentScope as v2, onScopeDispose as w2, ref as E, watchEffect as V2, onMounted as o2, onUnmounted as q1, Teleport as y2, withCtx as P1, withDirectives as n2, withModifiers as r1, withKeys as L2, vModelText as P2, createTextVNode as f1, normalizeStyle as j1, vShow as T2, resolveComponent as F2, provide as b1, resolveDynamicComponent as R2, inject as v1 } from "vue";
2
+ const x2 = {
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",
5
5
  mdiAbjadArabic: "M12 4C10.08 4 8.5 5.58 8.5 7.5C8.5 8.43 8.88 9.28 9.5 9.91C7.97 10.91 7 12.62 7 14.5C7 17.53 9.47 20 12.5 20C14.26 20 16 19.54 17.5 18.66L16.5 16.93C15.28 17.63 13.9 18 12.5 18C10.56 18 9 16.45 9 14.5C9 12.91 10.06 11.53 11.59 11.12L16.8 9.72L16.28 7.79L11.83 9C11.08 8.9 10.5 8.28 10.5 7.5C10.5 6.66 11.16 6 12 6C12.26 6 12.5 6.07 12.75 6.2L13.75 4.47C13.22 4.16 12.61 4 12 4Z",
@@ -7296,7 +7296,7 @@ const v2 = {
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
- }, y2 = ["height", "viewBox", "width"], P2 = ["d"], D = /* @__PURE__ */ R({
7299
+ }, D2 = ["id", "height", "viewBox", "width"], E2 = ["id", "d"], R = /* @__PURE__ */ T({
7300
7300
  __name: "RIcon",
7301
7301
  props: {
7302
7302
  name: { default: "" },
@@ -7305,79 +7305,98 @@ const v2 = {
7305
7305
  },
7306
7306
  setup(H) {
7307
7307
  const V = H;
7308
- return (C, M) => (t(), r("svg", {
7308
+ return (C, i) => (l(), a("svg", {
7309
+ id: C.id,
7309
7310
  class: "r-icon",
7310
7311
  height: V.size,
7311
7312
  viewBox: V.viewBox,
7312
7313
  width: V.size
7313
7314
  }, [
7314
- u("path", {
7315
- d: J(v2)[V.name]
7316
- }, null, 8, P2)
7317
- ], 8, y2));
7315
+ Z("path", {
7316
+ id: `${C.id}-path`,
7317
+ d: z(x2)[V.name]
7318
+ }, null, 8, E2)
7319
+ ], 8, D2));
7318
7320
  }
7319
- }), T2 = ["data-state", "onClick"], F2 = { class: "r-accordion__header" }, R2 = { class: "r-accordion__title" }, x2 = { class: "r-accordion__icon" }, D2 = { class: "r-accordion__content" }, u0 = /* @__PURE__ */ R({
7321
+ }), _2 = ["id", "data-state", "onClick"], $2 = ["id"], W2 = { class: "r-accordion__title" }, N2 = ["id"], I2 = ["id"], Q2 = ["id"], X0 = /* @__PURE__ */ T({
7320
7322
  __name: "RAccordion",
7321
7323
  props: {
7322
7324
  accordions: {},
7323
- multiple: { type: Boolean }
7325
+ multiple: { type: Boolean },
7326
+ id: { default: "r-accordion" }
7324
7327
  },
7325
7328
  setup(H) {
7326
- const V = H, C = P1(
7327
- V.accordions.map(({ title: i, content: L }, A) => ({
7328
- title: i,
7329
+ const V = H, C = D1(
7330
+ V.accordions.map(({ title: A, content: L }, M) => ({
7331
+ title: A,
7329
7332
  content: L,
7330
- open: V.accordions[A].open || !1,
7331
- disabled: V.accordions[A].disabled || !1
7333
+ open: V.accordions[M].open || !1,
7334
+ disabled: V.accordions[M].disabled || !1
7332
7335
  }))
7333
7336
  );
7334
- function M(i) {
7335
- if (!C[i].disabled) {
7337
+ function i(A) {
7338
+ if (!C[A].disabled) {
7336
7339
  if (V.multiple) {
7337
- C[i].open = !C[i].open;
7340
+ C[A].open = !C[A].open;
7338
7341
  return;
7339
7342
  }
7340
- C.forEach((L, A) => {
7341
- C[A].open = A === i ? !C[A].open : !1;
7343
+ C.forEach((L, M) => {
7344
+ C[M].open = M === A ? !C[M].open : !1;
7342
7345
  });
7343
7346
  }
7344
7347
  }
7345
- return (i, L) => (t(!0), r(H1, null, d1(C, (A, e) => (t(), r("div", {
7348
+ return (A, L) => (l(!0), a(A1, null, n1(C, (M, e) => (l(), a("div", {
7349
+ id: `${A.id}-${e}`,
7346
7350
  key: e,
7347
- class: p(["r-accordion", {
7348
- "r-accordion--disabled": A.disabled,
7349
- "cursor-pointer": !A.open
7351
+ class: O(["r-accordion", {
7352
+ "r-accordion--disabled": M.disabled,
7353
+ "cursor-pointer": !M.open
7350
7354
  }]),
7351
- "data-state": A.open ? "opened" : "closed",
7352
- onClick: (d) => M(e)
7355
+ "data-state": M.open ? "opened" : "closed",
7356
+ onClick: (d) => i(e)
7353
7357
  }, [
7354
- u("div", F2, [
7355
- h(i.$slots, "title", { accordion: A }, () => [
7356
- u("div", R2, b(A.title), 1)
7358
+ Z("div", {
7359
+ id: `${A.id}-header-${e}`,
7360
+ class: "r-accordion__header"
7361
+ }, [
7362
+ k(A.$slots, "title", { accordion: M }, () => [
7363
+ Z("div", W2, v(M.title), 1)
7357
7364
  ]),
7358
- u("div", x2, [
7359
- h(i.$slots, "icon", {
7360
- item: A,
7361
- open: A.open
7365
+ Z("div", {
7366
+ id: `${A.id}-icon-wrapper-${e}`,
7367
+ class: "r-accordion__icon"
7368
+ }, [
7369
+ k(A.$slots, "icon", {
7370
+ id: `${A.id}-icon-${e}`,
7371
+ item: M,
7372
+ open: M.open
7362
7373
  }, () => [
7363
- q(D, { name: "mdiChevronDown" })
7374
+ H1(R, {
7375
+ id: `${A.id}-icon-${e}`,
7376
+ name: "mdiChevronDown"
7377
+ }, null, 8, ["id"])
7364
7378
  ])
7379
+ ], 8, N2)
7380
+ ], 8, $2),
7381
+ Z("div", {
7382
+ id: `${A.id}-content-${e}`,
7383
+ class: "r-accordion__content"
7384
+ }, [
7385
+ k(A.$slots, "content", {
7386
+ id: `${A.id}-content-${e}`,
7387
+ accordion: M
7388
+ }, () => [
7389
+ Z("span", {
7390
+ id: `${A.id}-content-${e}`
7391
+ }, v(M.content), 9, Q2)
7365
7392
  ])
7366
- ]),
7367
- u("div", D2, [
7368
- h(i.$slots, "content", { accordion: A }, () => [
7369
- u("span", null, b(A.content), 1)
7370
- ])
7371
- ])
7372
- ], 10, T2))), 128));
7393
+ ], 8, I2)
7394
+ ], 10, _2))), 128));
7373
7395
  }
7374
- }), _2 = { class: "r-alert__icon" }, E2 = { class: "r-alert__content" }, W2 = { class: "r-alert__content__title" }, N2 = {
7396
+ }), G2 = ["id"], U2 = ["id"], z2 = ["id"], K2 = { class: "r-alert__content__title" }, q2 = {
7375
7397
  key: 0,
7376
7398
  class: "r-alert__content__description"
7377
- }, I2 = {
7378
- key: 0,
7379
- class: "r-alert__close"
7380
- }, S0 = /* @__PURE__ */ R({
7399
+ }, j2 = ["id"], Y0 = /* @__PURE__ */ T({
7381
7400
  __name: "RAlert",
7382
7401
  props: {
7383
7402
  type: { default: "info" },
@@ -7385,101 +7404,122 @@ const v2 = {
7385
7404
  variant: { default: "ghost" },
7386
7405
  description: { default: "" },
7387
7406
  closable: { type: Boolean, default: !0 },
7388
- block: { type: Boolean, default: !1 }
7407
+ block: { type: Boolean, default: !1 },
7408
+ id: { default: "r-alert" }
7389
7409
  },
7390
7410
  emits: ["close"],
7391
7411
  setup(H, { emit: V }) {
7392
- const C = H, M = V, i = g(() => ({
7412
+ const C = H, i = V, A = f(() => ({
7393
7413
  " r-alert": !0,
7394
7414
  [`r-alert--${C.variant}`]: !0,
7395
7415
  "r-alert--block": C.block,
7396
7416
  [`r-alert--${C.variant}--${C.type}`]: !0
7397
- })), L = g(() => ({
7417
+ })), L = f(() => ({
7398
7418
  success: "mdiCheckCircle",
7399
7419
  error: "mdiAlertCircle",
7400
7420
  warning: "mdiAlert",
7401
7421
  info: "mdiInformation"
7402
7422
  })[C.type]);
7403
- function A() {
7404
- M("close");
7423
+ function M() {
7424
+ i("close");
7405
7425
  }
7406
- return (e, d) => (t(), r("div", {
7407
- class: p(i.value)
7426
+ return (e, d) => (l(), a("div", {
7427
+ id: e.id,
7428
+ class: O(A.value)
7408
7429
  }, [
7409
- u("div", _2, [
7410
- h(e.$slots, "alert-icon", {}, () => [
7411
- q(D, {
7430
+ Z("div", {
7431
+ id: `${e.id}-icon`,
7432
+ class: "r-alert__icon"
7433
+ }, [
7434
+ k(e.$slots, "alert-icon", {}, () => [
7435
+ H1(R, {
7412
7436
  name: L.value,
7413
7437
  size: 24
7414
7438
  }, null, 8, ["name"])
7415
7439
  ])
7416
- ]),
7417
- u("div", E2, [
7418
- h(e.$slots, "content", {}, () => [
7419
- u("p", W2, b(C.title), 1),
7420
- C.description ? (t(), r("p", N2, b(C.description), 1)) : O("", !0)
7440
+ ], 8, U2),
7441
+ Z("div", {
7442
+ id: `${e.id}-content`,
7443
+ class: "r-alert__content"
7444
+ }, [
7445
+ k(e.$slots, "content", {}, () => [
7446
+ Z("p", K2, v(C.title), 1),
7447
+ C.description ? (l(), a("p", q2, v(C.description), 1)) : g("", !0)
7421
7448
  ])
7422
- ]),
7423
- C.closable ? (t(), r("div", I2, [
7424
- h(e.$slots, "custom-close", {
7425
- close: A,
7449
+ ], 8, z2),
7450
+ C.closable ? (l(), a("div", {
7451
+ key: 0,
7452
+ id: `${e.id}-close`,
7453
+ class: "r-alert__close"
7454
+ }, [
7455
+ k(e.$slots, "custom-close", {
7456
+ close: M,
7426
7457
  slotClass: "r-alert__close__button"
7427
7458
  }, () => [
7428
- q(D, {
7459
+ H1(R, {
7460
+ id: `${e.id}-close-button`,
7429
7461
  class: "r-alert__close__button",
7430
7462
  name: "mdiClose",
7431
7463
  size: 16,
7432
- onClick: A
7433
- })
7464
+ onClick: M
7465
+ }, null, 8, ["id"])
7434
7466
  ])
7435
- ])) : O("", !0)
7436
- ], 2));
7467
+ ], 8, j2)) : g("", !0)
7468
+ ], 10, G2));
7437
7469
  }
7438
- }), X1 = "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", Q2 = { class: "r-avatar__wrapper" }, G2 = ["alt", "src"], s0 = /* @__PURE__ */ R({
7470
+ }), M2 = "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", X2 = ["id"], Y2 = ["id"], J2 = ["id"], C5 = ["id", "alt", "src"], H5 = ["id"], J0 = /* @__PURE__ */ T({
7439
7471
  __name: "RAvatar",
7440
7472
  props: {
7441
7473
  type: { default: "image" },
7442
- src: { default: X1 },
7474
+ src: { default: M2 },
7443
7475
  alt: { default: "Avatar" },
7444
7476
  size: { default: "2xl" },
7445
7477
  online: { type: Boolean, default: !1 },
7446
- text: { default: "" }
7478
+ text: { default: "" },
7479
+ id: { default: "r-avatar" }
7447
7480
  },
7448
7481
  setup(H) {
7449
- const V = H, C = g(() => ({
7482
+ const V = H, C = f(() => ({
7450
7483
  "r-avatar": !0,
7451
7484
  [`r-avatar--${V.size}`]: !0
7452
- })), M = g(() => V.type === "image" && !V.src), i = g(() => M.value ? X1 : V.src);
7453
- function L(A) {
7454
- const e = A.split(" ");
7485
+ })), i = f(() => V.type === "image" && !V.src), A = f(() => i.value ? M2 : V.src);
7486
+ function L(M) {
7487
+ const e = M.split(" ");
7455
7488
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7456
7489
  }
7457
- return (A, e) => (t(), r("div", Q2, [
7458
- u("div", {
7459
- class: p(C.value)
7490
+ return (M, e) => (l(), a("div", {
7491
+ id: M.id,
7492
+ class: "r-avatar__wrapper"
7493
+ }, [
7494
+ Z("div", {
7495
+ id: `${M.id}-wrapper`,
7496
+ class: O(C.value)
7460
7497
  }, [
7461
- V.type === "text" ? (t(), r("p", {
7498
+ V.type === "text" ? (l(), a("p", {
7462
7499
  key: 0,
7463
- class: p(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7464
- }, b(L(V.text)), 3)) : (t(), r("img", {
7500
+ id: `${M.id}-text`,
7501
+ class: O(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7502
+ }, v(L(V.text)), 11, J2)) : (l(), a("img", {
7465
7503
  key: 1,
7504
+ id: `${M.id}-image`,
7466
7505
  alt: V.alt,
7467
- class: p(["r-avatar__image", {
7506
+ class: O(["r-avatar__image", {
7468
7507
  [`r-avatar__image--${V.size}`]: !0,
7469
- "r-avatar__image--anonymous": M.value
7508
+ "r-avatar__image--anonymous": i.value
7470
7509
  }]),
7471
- src: i.value
7472
- }, null, 10, G2))
7473
- ], 2),
7474
- V.online ? (t(), r("span", {
7510
+ src: A.value
7511
+ }, null, 10, C5))
7512
+ ], 10, Y2),
7513
+ V.online ? (l(), a("span", {
7475
7514
  key: 0,
7476
- class: p(["r-avatar__online", {
7515
+ id: `${M.id}-online`,
7516
+ class: O(["r-avatar__online", {
7477
7517
  [`r-avatar__online--${V.size}`]: !0
7478
7518
  }])
7479
- }, null, 2)) : O("", !0)
7480
- ]));
7519
+ }, null, 10, H5)) : g("", !0)
7520
+ ], 8, X2));
7481
7521
  }
7482
- }), $2 = ["innerHTML"], c0 = /* @__PURE__ */ R({
7522
+ }), V5 = ["id"], L5 = ["id"], M5 = ["id", "innerHTML"], C7 = /* @__PURE__ */ T({
7483
7523
  __name: "RBadge",
7484
7524
  props: {
7485
7525
  variant: { default: "primary" },
@@ -7491,11 +7531,12 @@ const v2 = {
7491
7531
  class: { default: "" },
7492
7532
  content: { default: "" },
7493
7533
  contentClass: { default: "" },
7494
- wrapperClass: { default: "" }
7534
+ wrapperClass: { default: "" },
7535
+ id: { default: "r-badge" }
7495
7536
  },
7496
7537
  emits: ["click"],
7497
7538
  setup(H) {
7498
- const V = H, C = g(() => ({
7539
+ const V = H, C = f(() => ({
7499
7540
  "r-badge": !0,
7500
7541
  [`r-badge--content ${V.contentClass}`]: V.content,
7501
7542
  [`r-badge--overlap-${V.placement}`]: V.overlap,
@@ -7505,20 +7546,25 @@ const v2 = {
7505
7546
  [`r-badge--${V.variant}`]: V.variant,
7506
7547
  [V.class]: V.class
7507
7548
  }));
7508
- return (M, i) => (t(), r("div", {
7509
- class: p(["r-badge-wrapper group", [V.wrapperClass]])
7549
+ return (i, A) => (l(), a("div", {
7550
+ id: i.id,
7551
+ class: O(["r-badge-wrapper group", [V.wrapperClass]])
7510
7552
  }, [
7511
- u("span", {
7512
- class: p([{ "animate-ping-2": V.animation }, C.value])
7513
- }, null, 2),
7514
- u("span", {
7515
- class: p(C.value),
7553
+ Z("span", {
7554
+ id: `${i.id}-badge`,
7555
+ class: O([{ "animate-ping-2": V.animation }, C.value])
7556
+ }, null, 10, L5),
7557
+ Z("span", {
7558
+ id: `${i.id}-content`,
7559
+ class: O(C.value),
7516
7560
  innerHTML: V.content
7517
- }, null, 10, $2),
7518
- h(M.$slots, "default")
7519
- ], 2));
7561
+ }, null, 10, M5),
7562
+ k(i.$slots, "default", {
7563
+ id: `${i.id}-slot`
7564
+ })
7565
+ ], 10, V5));
7520
7566
  }
7521
- }), U2 = ["disabled"], p0 = /* @__PURE__ */ R({
7567
+ }), i5 = ["id", "disabled"], H7 = /* @__PURE__ */ T({
7522
7568
  __name: "RButton",
7523
7569
  props: {
7524
7570
  variant: { default: "default" },
@@ -7530,11 +7576,12 @@ const v2 = {
7530
7576
  icon: { type: Boolean, default: !1 },
7531
7577
  size: { default: "medium" },
7532
7578
  height: { default: "" },
7533
- block: { type: Boolean, default: !1 }
7579
+ block: { type: Boolean, default: !1 },
7580
+ id: { default: "r-button" }
7534
7581
  },
7535
7582
  emits: ["click"],
7536
7583
  setup(H) {
7537
- const V = H, C = g(() => ({
7584
+ const V = H, C = f(() => ({
7538
7585
  "r-button": !0,
7539
7586
  [`r-button__${V.variant}`]: !0,
7540
7587
  [`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
@@ -7542,54 +7589,51 @@ const v2 = {
7542
7589
  [`r-button--${V.size || "medium"}`]: !0,
7543
7590
  "r-button--only-icon": V.icon,
7544
7591
  "r-button--block": V.block
7545
- })), M = g(() => ({
7592
+ })), i = f(() => ({
7546
7593
  small: 16,
7547
7594
  medium: 16,
7548
7595
  large: 20
7549
- })[V.size || "medium"]), i = g(() => ({
7596
+ })[V.size || "medium"]), A = f(() => ({
7550
7597
  height: V.height ? `${V.height}px` : ""
7551
7598
  }));
7552
- return (L, A) => (t(), r("button", T1(L.$attrs, {
7599
+ return (L, M) => (l(), a("button", E1(L.$attrs, {
7600
+ id: L.id,
7553
7601
  class: C.value,
7554
7602
  disabled: L.disabled,
7555
- style: i.value,
7556
- onClick: A[0] || (A[0] = (e) => L.$emit("click"))
7603
+ style: A.value,
7604
+ onClick: M[0] || (M[0] = (e) => L.$emit("click"))
7557
7605
  }), [
7558
- h(L.$slots, "prepend", {
7606
+ k(L.$slots, "prepend", {
7559
7607
  onlyIcon: V.icon
7560
7608
  }, () => [
7561
- V.prependIcon ? (t(), _(D, {
7609
+ V.prependIcon ? (l(), D(R, {
7562
7610
  key: 0,
7563
- class: p(["r-button__prepend-icon", {
7611
+ id: `${L.id}-prepend-icon`,
7612
+ class: O(["r-button__prepend-icon", {
7564
7613
  "r-button__prepend-icon--only": V.icon
7565
7614
  }]),
7566
7615
  name: V.prependIcon,
7567
- size: M.value
7568
- }, null, 8, ["class", "name", "size"])) : O("", !0)
7616
+ size: i.value
7617
+ }, null, 8, ["id", "class", "name", "size"])) : g("", !0)
7569
7618
  ]),
7570
- h(L.$slots, "default", { disabled: L.disabled }),
7571
- h(L.$slots, "append", {
7619
+ k(L.$slots, "default", {
7620
+ id: `${L.id}-slot`,
7621
+ disabled: L.disabled
7622
+ }),
7623
+ k(L.$slots, "append", {
7572
7624
  onlyIcon: V.icon
7573
7625
  }, () => [
7574
- !V.icon && V.appendIcon ? (t(), _(D, {
7626
+ !V.icon && V.appendIcon ? (l(), D(R, {
7575
7627
  key: 0,
7628
+ id: `${L.id}-append-icon`,
7576
7629
  class: "r-button__append-icon",
7577
7630
  name: V.appendIcon,
7578
- size: M.value
7579
- }, null, 8, ["name", "size"])) : O("", !0)
7631
+ size: i.value
7632
+ }, null, 8, ["id", "name", "size"])) : g("", !0)
7580
7633
  ])
7581
- ], 16, U2));
7634
+ ], 16, i5));
7582
7635
  }
7583
- }), z2 = { class: "r-checkbox-wrapper" }, K2 = { class: "r-checkbox-container" }, q2 = ["id", "checked", "disabled", "indeterminate"], j2 = ["data-disabled"], X2 = { class: "r-checkbox-texts" }, Y2 = ["data-disabled", "for"], J2 = {
7584
- key: 0,
7585
- class: "r-checkbox-texts__details"
7586
- }, C5 = {
7587
- key: 0,
7588
- class: "r-checkbox-texts__error"
7589
- }, H5 = {
7590
- key: 1,
7591
- class: "r-checkbox-texts__hint"
7592
- }, O0 = /* @__PURE__ */ R({
7636
+ }), A5 = ["id"], e5 = ["id"], d5 = ["id", "checked", "disabled", "indeterminate"], t5 = ["id", "data-disabled"], m5 = ["id"], l5 = ["id", "data-disabled", "for"], o5 = ["id"], n5 = ["id"], r5 = ["id"], V7 = /* @__PURE__ */ T({
7593
7637
  __name: "RCheckbox",
7594
7638
  props: {
7595
7639
  id: { default: "" },
@@ -7603,77 +7647,102 @@ const v2 = {
7603
7647
  },
7604
7648
  emits: ["update:modelValue"],
7605
7649
  setup(H, { emit: V }) {
7606
- const C = H, M = V, i = P1({
7650
+ const C = H, i = V, A = D1({
7607
7651
  checked: !1,
7608
7652
  indeterminate: !1
7609
7653
  }), L = {
7610
7654
  checked: "mdiCheck",
7611
7655
  unchecked: "",
7612
7656
  indeterminate: "mdiMinus"
7613
- }, A = g(() => i.indeterminate ? L.indeterminate : i.checked ? L.checked : L.unchecked), e = g(() => ({
7657
+ }, M = f(() => A.indeterminate ? L.indeterminate : A.checked ? L.checked : L.unchecked), e = f(() => ({
7614
7658
  "r-checkbox": !0,
7615
- "r-checkbox--checked": i.checked,
7659
+ "r-checkbox--checked": A.checked,
7616
7660
  "r-checkbox--disabled": C.disabled,
7617
- "r-checkbox--indeterminate": i.indeterminate,
7661
+ "r-checkbox--indeterminate": A.indeterminate,
7618
7662
  "r-checkbox--error": !!C.errorMsg
7619
7663
  }));
7620
- function d(m) {
7621
- C.disabled || (i.checked = m.target.checked, i.indeterminate = !1, M("update:modelValue", i.checked));
7664
+ function d(n) {
7665
+ C.disabled || (A.checked = n.target.checked, A.indeterminate = !1, i("update:modelValue", A.checked));
7622
7666
  }
7623
- return G(
7667
+ W(
7624
7668
  () => C.indeterminate,
7625
- (m) => {
7626
- i.indeterminate = m, m === !0 && (i.checked = !1, M("update:modelValue", i.checked));
7669
+ (n) => {
7670
+ A.indeterminate = n, n === !0 && (A.checked = !1, i("update:modelValue", A.checked));
7627
7671
  },
7628
7672
  {
7629
7673
  // need immediate to set the state on first render for storybook
7630
7674
  // TODO: find a better way to do this
7631
7675
  immediate: !0
7632
7676
  }
7633
- ), G(
7677
+ ), W(
7634
7678
  () => C.modelValue,
7635
- (m) => {
7636
- i.checked = m;
7679
+ (n) => {
7680
+ A.checked = n;
7637
7681
  },
7638
7682
  {
7639
7683
  // need immediate to set the state on first render for storybook
7640
7684
  // TODO: find a better way to do this
7641
7685
  immediate: !0
7642
7686
  }
7643
- ), (m, o) => (t(), r("div", z2, [
7644
- u("div", K2, [
7645
- u("input", {
7646
- id: C.id,
7647
- checked: i.checked,
7687
+ );
7688
+ const m = f(() => C.id || "r-checkbox");
7689
+ return (n, u) => (l(), a("div", {
7690
+ id: m.value,
7691
+ class: "r-checkbox-wrapper"
7692
+ }, [
7693
+ Z("div", {
7694
+ id: `${m.value}-container`,
7695
+ class: "r-checkbox-container"
7696
+ }, [
7697
+ Z("input", {
7698
+ id: `${m.value}-input`,
7699
+ checked: A.checked,
7648
7700
  class: "r-checkbox-container__input",
7649
7701
  disabled: C.disabled,
7650
- indeterminate: i.indeterminate,
7702
+ indeterminate: A.indeterminate,
7651
7703
  type: "checkbox",
7652
7704
  onChange: d
7653
- }, null, 40, q2),
7654
- u("div", {
7655
- class: p(e.value),
7705
+ }, null, 40, d5),
7706
+ Z("div", {
7707
+ id: `${m.value}-icon`,
7708
+ class: O(e.value),
7656
7709
  "data-disabled": C.disabled
7657
7710
  }, [
7658
- q(D, {
7659
- name: A.value,
7711
+ H1(R, {
7712
+ name: M.value,
7660
7713
  size: 24
7661
7714
  }, null, 8, ["name"])
7662
- ], 10, j2)
7663
- ]),
7664
- u("div", X2, [
7665
- u("label", {
7715
+ ], 10, t5)
7716
+ ], 8, e5),
7717
+ Z("div", {
7718
+ id: `${m.value}-texts`,
7719
+ class: "r-checkbox-texts"
7720
+ }, [
7721
+ Z("label", {
7722
+ id: `${m.value}-label`,
7666
7723
  class: "r-checkbox-texts__label",
7667
7724
  "data-disabled": C.disabled,
7668
7725
  for: C.id
7669
- }, b(C.label), 9, Y2),
7670
- C.hideDetails ? O("", !0) : (t(), r("div", J2, [
7671
- C.errorMsg ? (t(), r("p", C5, b(C.errorMsg), 1)) : (t(), r("p", H5, b(C.hint), 1))
7672
- ]))
7673
- ])
7674
- ]));
7726
+ }, v(C.label), 9, l5),
7727
+ C.hideDetails ? g("", !0) : (l(), a("div", {
7728
+ key: 0,
7729
+ id: `${m.value}-details`,
7730
+ class: "r-checkbox-texts__details"
7731
+ }, [
7732
+ C.errorMsg ? (l(), a("p", {
7733
+ key: 0,
7734
+ id: `${m.value}-error`,
7735
+ class: "r-checkbox-texts__error"
7736
+ }, v(C.errorMsg), 9, n5)) : (l(), a("p", {
7737
+ key: 1,
7738
+ id: `${m.value}-hint`,
7739
+ class: "r-checkbox-texts__hint"
7740
+ }, v(C.hint), 9, r5))
7741
+ ], 8, o5))
7742
+ ], 8, m5)
7743
+ ], 8, A5));
7675
7744
  }
7676
- }), V5 = /* @__PURE__ */ R({
7745
+ }), a5 = ["id"], Z5 = ["id"], u5 = ["id"], S5 = /* @__PURE__ */ T({
7677
7746
  __name: "RChip",
7678
7747
  props: {
7679
7748
  variant: { default: "primary" },
@@ -7683,11 +7752,12 @@ const v2 = {
7683
7752
  appendIcon: { default: "" },
7684
7753
  ghost: { type: Boolean, default: !1 },
7685
7754
  clearable: { type: Boolean, default: !1 },
7686
- noWrap: { type: Boolean, default: !1 }
7755
+ noWrap: { type: Boolean, default: !1 },
7756
+ id: { default: "r-chip" }
7687
7757
  },
7688
7758
  emits: ["click:chip", "click:close"],
7689
7759
  setup(H, { emit: V }) {
7690
- const C = H, M = V, i = g(() => ({
7760
+ const C = H, i = V, A = f(() => ({
7691
7761
  "r-chip": !0,
7692
7762
  "r-chip--disabled": C.disabled,
7693
7763
  [`r-chip__${C.variant}`]: C.variant,
@@ -7695,208 +7765,213 @@ const v2 = {
7695
7765
  "r-chip--clearable": C.clearable
7696
7766
  }));
7697
7767
  function L(d) {
7698
- C.clearable && d.stopPropagation(), !C.disabled && M("click:chip", d);
7768
+ C.clearable && d.stopPropagation(), !C.disabled && i("click:chip", d);
7699
7769
  }
7700
- function A(d) {
7701
- C.disabled || !C.clearable || (d.stopPropagation(), M("click:close", d));
7770
+ function M(d) {
7771
+ C.disabled || !C.clearable || (d.stopPropagation(), i("click:close", d));
7702
7772
  }
7703
- const e = g(() => C.clearable ? "mdiClose" : C.appendIcon);
7704
- return (d, m) => (t(), r("div", {
7705
- class: p(i.value)
7773
+ const e = f(() => C.clearable ? "mdiClose" : C.appendIcon);
7774
+ return (d, m) => (l(), a("div", {
7775
+ id: d.id,
7776
+ class: O(A.value)
7706
7777
  }, [
7707
- u("div", {
7778
+ Z("div", {
7779
+ id: `${d.id}-content`,
7708
7780
  class: "r-chip__content",
7709
- onClick: m[0] || (m[0] = (o) => L(o))
7781
+ onClick: m[0] || (m[0] = (n) => L(n))
7710
7782
  }, [
7711
- h(d.$slots, "prepend", {
7783
+ k(d.$slots, "prepend", {
7712
7784
  disabled: C.disabled
7713
7785
  }, () => [
7714
- C.prependIcon ? (t(), _(D, {
7786
+ C.prependIcon ? (l(), D(R, {
7715
7787
  key: 0,
7788
+ id: `${d.id}-prepend-icon`,
7716
7789
  "aria-disabled": C.disabled,
7717
7790
  class: "r-chip__content__prepend-icon",
7718
7791
  name: C.prependIcon,
7719
7792
  size: 12
7720
- }, null, 8, ["aria-disabled", "name"])) : O("", !0)
7793
+ }, null, 8, ["id", "aria-disabled", "name"])) : g("", !0)
7721
7794
  ]),
7722
- u("span", {
7723
- class: p(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
7724
- }, b(C.label), 3)
7725
- ]),
7726
- h(d.$slots, "append", {
7795
+ Z("span", {
7796
+ id: `${d.id}-label`,
7797
+ class: O(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
7798
+ }, v(C.label), 11, u5)
7799
+ ], 8, Z5),
7800
+ k(d.$slots, "append", {
7727
7801
  disabled: C.disabled
7728
7802
  }, () => [
7729
- e.value ? (t(), _(D, {
7803
+ e.value ? (l(), D(R, {
7730
7804
  key: 0,
7805
+ id: `${d.id}-append-icon`,
7731
7806
  "aria-disabled": C.disabled,
7732
7807
  class: "r-chip__content__append-icon",
7733
7808
  name: e.value,
7734
7809
  size: 12,
7735
- onClick: m[1] || (m[1] = (o) => A(o))
7736
- }, null, 8, ["aria-disabled", "name"])) : O("", !0)
7810
+ onClick: m[1] || (m[1] = (n) => M(n))
7811
+ }, null, 8, ["id", "aria-disabled", "name"])) : g("", !0)
7737
7812
  ])
7738
- ], 2));
7813
+ ], 10, a5));
7739
7814
  }
7740
7815
  });
7741
- function L5(H) {
7742
- return f2() ? (h2(H), !0) : !1;
7816
+ function s5(H) {
7817
+ return v2() ? (w2(H), !0) : !1;
7743
7818
  }
7744
- function d2(H) {
7745
- return typeof H == "function" ? H() : J(H);
7819
+ function r2(H) {
7820
+ return typeof H == "function" ? H() : z(H);
7746
7821
  }
7747
- const t2 = typeof window < "u" && typeof document < "u";
7822
+ const a2 = typeof window < "u" && typeof document < "u";
7748
7823
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7749
- const M5 = Object.prototype.toString, i5 = (H) => M5.call(H) === "[object Object]", E1 = () => {
7750
- }, A5 = /* @__PURE__ */ e5();
7751
- function e5() {
7824
+ const c5 = Object.prototype.toString, p5 = (H) => c5.call(H) === "[object Object]", Q1 = () => {
7825
+ }, O5 = /* @__PURE__ */ f5();
7826
+ function f5() {
7752
7827
  var H;
7753
- return t2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7828
+ return a2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7754
7829
  }
7755
- function r1(H) {
7830
+ function s1(H) {
7756
7831
  var V;
7757
- const C = d2(H);
7832
+ const C = r2(H);
7758
7833
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7759
7834
  }
7760
- const m2 = t2 ? window : void 0;
7761
- function _1(...H) {
7762
- let V, C, M, i;
7763
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V = m2) : [V, C, M, i] = H, !V)
7764
- return E1;
7765
- Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
7766
- const L = [], A = () => {
7767
- L.forEach((o) => o()), L.length = 0;
7768
- }, e = (o, a, n, l) => (o.addEventListener(a, n, l), () => o.removeEventListener(a, n, l)), d = G(
7769
- () => [r1(V), d2(i)],
7770
- ([o, a]) => {
7771
- if (A(), !o)
7835
+ const Z2 = a2 ? window : void 0;
7836
+ function I1(...H) {
7837
+ let V, C, i, A;
7838
+ if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, i, A] = H, V = Z2) : [V, C, i, A] = H, !V)
7839
+ return Q1;
7840
+ Array.isArray(C) || (C = [C]), Array.isArray(i) || (i = [i]);
7841
+ const L = [], M = () => {
7842
+ L.forEach((n) => n()), L.length = 0;
7843
+ }, e = (n, u, o, r) => (n.addEventListener(u, o, r), () => n.removeEventListener(u, o, r)), d = W(
7844
+ () => [s1(V), r2(A)],
7845
+ ([n, u]) => {
7846
+ if (M(), !n)
7772
7847
  return;
7773
- const n = i5(a) ? { ...a } : a;
7848
+ const o = p5(u) ? { ...u } : u;
7774
7849
  L.push(
7775
- ...C.flatMap((l) => M.map((S) => e(o, l, S, n)))
7850
+ ...C.flatMap((r) => i.map((S) => e(n, r, S, o)))
7776
7851
  );
7777
7852
  },
7778
7853
  { immediate: !0, flush: "post" }
7779
7854
  ), m = () => {
7780
- d(), A();
7855
+ d(), M();
7781
7856
  };
7782
- return L5(m), m;
7857
+ return s5(m), m;
7783
7858
  }
7784
- let Y1 = !1;
7785
- function d5(H, V, C = {}) {
7786
- const { window: M = m2, ignore: i = [], capture: L = !0, detectIframe: A = !1 } = C;
7787
- if (!M)
7859
+ let i2 = !1;
7860
+ function h5(H, V, C = {}) {
7861
+ const { window: i = Z2, ignore: A = [], capture: L = !0, detectIframe: M = !1 } = C;
7862
+ if (!i)
7788
7863
  return;
7789
- A5 && !Y1 && (Y1 = !0, Array.from(M.document.body.children).forEach((n) => n.addEventListener("click", E1)), M.document.documentElement.addEventListener("click", E1));
7864
+ O5 && !i2 && (i2 = !0, Array.from(i.document.body.children).forEach((o) => o.addEventListener("click", Q1)), i.document.documentElement.addEventListener("click", Q1));
7790
7865
  let e = !0;
7791
- const d = (n) => i.some((l) => {
7792
- if (typeof l == "string")
7793
- return Array.from(M.document.querySelectorAll(l)).some((S) => S === n.target || n.composedPath().includes(S));
7866
+ const d = (o) => A.some((r) => {
7867
+ if (typeof r == "string")
7868
+ return Array.from(i.document.querySelectorAll(r)).some((S) => S === o.target || o.composedPath().includes(S));
7794
7869
  {
7795
- const S = r1(l);
7796
- return S && (n.target === S || n.composedPath().includes(S));
7870
+ const S = s1(r);
7871
+ return S && (o.target === S || o.composedPath().includes(S));
7797
7872
  }
7798
- }), o = [
7799
- _1(M, "click", (n) => {
7800
- const l = r1(H);
7801
- if (!(!l || l === n.target || n.composedPath().includes(l))) {
7802
- if (n.detail === 0 && (e = !d(n)), !e) {
7873
+ }), n = [
7874
+ I1(i, "click", (o) => {
7875
+ const r = s1(H);
7876
+ if (!(!r || r === o.target || o.composedPath().includes(r))) {
7877
+ if (o.detail === 0 && (e = !d(o)), !e) {
7803
7878
  e = !0;
7804
7879
  return;
7805
7880
  }
7806
- V(n);
7881
+ V(o);
7807
7882
  }
7808
7883
  }, { passive: !0, capture: L }),
7809
- _1(M, "pointerdown", (n) => {
7810
- const l = r1(H);
7811
- e = !d(n) && !!(l && !n.composedPath().includes(l));
7884
+ I1(i, "pointerdown", (o) => {
7885
+ const r = s1(H);
7886
+ e = !d(o) && !!(r && !o.composedPath().includes(r));
7812
7887
  }, { passive: !0 }),
7813
- A && _1(M, "blur", (n) => {
7888
+ M && I1(i, "blur", (o) => {
7814
7889
  setTimeout(() => {
7815
- var l;
7816
- const S = r1(H);
7817
- ((l = M.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(S != null && S.contains(M.document.activeElement)) && V(n);
7890
+ var r;
7891
+ const S = s1(H);
7892
+ ((r = i.document.activeElement) == null ? void 0 : r.tagName) === "IFRAME" && !(S != null && S.contains(i.document.activeElement)) && V(o);
7818
7893
  }, 0);
7819
7894
  })
7820
7895
  ].filter(Boolean);
7821
- return () => o.forEach((n) => n());
7896
+ return () => n.forEach((o) => o());
7822
7897
  }
7823
- function t5() {
7898
+ function g5() {
7824
7899
  function H() {
7825
7900
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
7826
7901
  }
7827
7902
  return `${H() + H()}-${H()}-${H()}-${H()}-${H()}${H()}${H()}`;
7828
7903
  }
7829
- const m5 = ["top", "right", "bottom", "left"], Z1 = Math.min, m1 = Math.max, b1 = Math.round, V1 = (H) => ({
7904
+ const k5 = ["top", "right", "bottom", "left"], p1 = Math.min, a1 = Math.max, T1 = Math.round, e1 = (H) => ({
7830
7905
  x: H,
7831
7906
  y: H
7832
- }), l5 = {
7907
+ }), B5 = {
7833
7908
  left: "right",
7834
7909
  right: "left",
7835
7910
  bottom: "top",
7836
7911
  top: "bottom"
7837
- }, o5 = {
7912
+ }, b5 = {
7838
7913
  start: "end",
7839
7914
  end: "start"
7840
7915
  };
7841
- function W1(H, V, C) {
7842
- return m1(H, Z1(V, C));
7916
+ function G1(H, V, C) {
7917
+ return a1(H, p1(V, C));
7843
7918
  }
7844
- function n1(H, V) {
7919
+ function S1(H, V) {
7845
7920
  return typeof H == "function" ? H(V) : H;
7846
7921
  }
7847
- function e1(H) {
7922
+ function o1(H) {
7848
7923
  return H.split("-")[0];
7849
7924
  }
7850
- function s1(H) {
7925
+ function h1(H) {
7851
7926
  return H.split("-")[1];
7852
7927
  }
7853
- function l2(H) {
7928
+ function u2(H) {
7854
7929
  return H === "x" ? "y" : "x";
7855
7930
  }
7856
- function $1(H) {
7931
+ function X1(H) {
7857
7932
  return H === "y" ? "height" : "width";
7858
7933
  }
7859
- function F1(H) {
7860
- return ["top", "bottom"].includes(e1(H)) ? "y" : "x";
7934
+ function _1(H) {
7935
+ return ["top", "bottom"].includes(o1(H)) ? "y" : "x";
7861
7936
  }
7862
- function U1(H) {
7863
- return l2(F1(H));
7937
+ function Y1(H) {
7938
+ return u2(_1(H));
7864
7939
  }
7865
- function n5(H, V, C) {
7940
+ function v5(H, V, C) {
7866
7941
  C === void 0 && (C = !1);
7867
- const M = s1(H), i = U1(H), L = $1(i);
7868
- let A = i === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
7869
- return V.reference[L] > V.floating[L] && (A = w1(A)), [A, w1(A)];
7942
+ const i = h1(H), A = Y1(H), L = X1(A);
7943
+ let M = A === "x" ? i === (C ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
7944
+ return V.reference[L] > V.floating[L] && (M = F1(M)), [M, F1(M)];
7870
7945
  }
7871
- function r5(H) {
7872
- const V = w1(H);
7873
- return [N1(H), V, N1(V)];
7946
+ function w5(H) {
7947
+ const V = F1(H);
7948
+ return [U1(H), V, U1(V)];
7874
7949
  }
7875
- function N1(H) {
7876
- return H.replace(/start|end/g, (V) => o5[V]);
7950
+ function U1(H) {
7951
+ return H.replace(/start|end/g, (V) => b5[V]);
7877
7952
  }
7878
- function a5(H, V, C) {
7879
- const M = ["left", "right"], i = ["right", "left"], L = ["top", "bottom"], A = ["bottom", "top"];
7953
+ function y5(H, V, C) {
7954
+ const i = ["left", "right"], A = ["right", "left"], L = ["top", "bottom"], M = ["bottom", "top"];
7880
7955
  switch (H) {
7881
7956
  case "top":
7882
7957
  case "bottom":
7883
- return C ? V ? i : M : V ? M : i;
7958
+ return C ? V ? A : i : V ? i : A;
7884
7959
  case "left":
7885
7960
  case "right":
7886
- return V ? L : A;
7961
+ return V ? L : M;
7887
7962
  default:
7888
7963
  return [];
7889
7964
  }
7890
7965
  }
7891
- function Z5(H, V, C, M) {
7892
- const i = s1(H);
7893
- let L = a5(e1(H), C === "start", M);
7894
- return i && (L = L.map((A) => A + "-" + i), V && (L = L.concat(L.map(N1)))), L;
7966
+ function P5(H, V, C, i) {
7967
+ const A = h1(H);
7968
+ let L = y5(o1(H), C === "start", i);
7969
+ return A && (L = L.map((M) => M + "-" + A), V && (L = L.concat(L.map(U1)))), L;
7895
7970
  }
7896
- function w1(H) {
7897
- return H.replace(/left|right|bottom|top/g, (V) => l5[V]);
7971
+ function F1(H) {
7972
+ return H.replace(/left|right|bottom|top/g, (V) => B5[V]);
7898
7973
  }
7899
- function u5(H) {
7974
+ function T5(H) {
7900
7975
  return {
7901
7976
  top: 0,
7902
7977
  right: 0,
@@ -7905,15 +7980,15 @@ function u5(H) {
7905
7980
  ...H
7906
7981
  };
7907
7982
  }
7908
- function o2(H) {
7909
- return typeof H != "number" ? u5(H) : {
7983
+ function S2(H) {
7984
+ return typeof H != "number" ? T5(H) : {
7910
7985
  top: H,
7911
7986
  right: H,
7912
7987
  bottom: H,
7913
7988
  left: H
7914
7989
  };
7915
7990
  }
7916
- function v1(H) {
7991
+ function R1(H) {
7917
7992
  return {
7918
7993
  ...H,
7919
7994
  top: H.y,
@@ -7922,263 +7997,263 @@ function v1(H) {
7922
7997
  bottom: H.y + H.height
7923
7998
  };
7924
7999
  }
7925
- function J1(H, V, C) {
8000
+ function A2(H, V, C) {
7926
8001
  let {
7927
- reference: M,
7928
- floating: i
8002
+ reference: i,
8003
+ floating: A
7929
8004
  } = H;
7930
- const L = F1(V), A = U1(V), e = $1(A), d = e1(V), m = L === "y", o = M.x + M.width / 2 - i.width / 2, a = M.y + M.height / 2 - i.height / 2, n = M[e] / 2 - i[e] / 2;
7931
- let l;
8005
+ const L = _1(V), M = Y1(V), e = X1(M), d = o1(V), m = L === "y", n = i.x + i.width / 2 - A.width / 2, u = i.y + i.height / 2 - A.height / 2, o = i[e] / 2 - A[e] / 2;
8006
+ let r;
7932
8007
  switch (d) {
7933
8008
  case "top":
7934
- l = {
7935
- x: o,
7936
- y: M.y - i.height
8009
+ r = {
8010
+ x: n,
8011
+ y: i.y - A.height
7937
8012
  };
7938
8013
  break;
7939
8014
  case "bottom":
7940
- l = {
7941
- x: o,
7942
- y: M.y + M.height
8015
+ r = {
8016
+ x: n,
8017
+ y: i.y + i.height
7943
8018
  };
7944
8019
  break;
7945
8020
  case "right":
7946
- l = {
7947
- x: M.x + M.width,
7948
- y: a
8021
+ r = {
8022
+ x: i.x + i.width,
8023
+ y: u
7949
8024
  };
7950
8025
  break;
7951
8026
  case "left":
7952
- l = {
7953
- x: M.x - i.width,
7954
- y: a
8027
+ r = {
8028
+ x: i.x - A.width,
8029
+ y: u
7955
8030
  };
7956
8031
  break;
7957
8032
  default:
7958
- l = {
7959
- x: M.x,
7960
- y: M.y
8033
+ r = {
8034
+ x: i.x,
8035
+ y: i.y
7961
8036
  };
7962
8037
  }
7963
- switch (s1(V)) {
8038
+ switch (h1(V)) {
7964
8039
  case "start":
7965
- l[A] -= n * (C && m ? -1 : 1);
8040
+ r[M] -= o * (C && m ? -1 : 1);
7966
8041
  break;
7967
8042
  case "end":
7968
- l[A] += n * (C && m ? -1 : 1);
8043
+ r[M] += o * (C && m ? -1 : 1);
7969
8044
  break;
7970
8045
  }
7971
- return l;
8046
+ return r;
7972
8047
  }
7973
- const S5 = async (H, V, C) => {
8048
+ const F5 = async (H, V, C) => {
7974
8049
  const {
7975
- placement: M = "bottom",
7976
- strategy: i = "absolute",
8050
+ placement: i = "bottom",
8051
+ strategy: A = "absolute",
7977
8052
  middleware: L = [],
7978
- platform: A
7979
- } = C, e = L.filter(Boolean), d = await (A.isRTL == null ? void 0 : A.isRTL(V));
7980
- let m = await A.getElementRects({
8053
+ platform: M
8054
+ } = C, e = L.filter(Boolean), d = await (M.isRTL == null ? void 0 : M.isRTL(V));
8055
+ let m = await M.getElementRects({
7981
8056
  reference: H,
7982
8057
  floating: V,
7983
- strategy: i
8058
+ strategy: A
7984
8059
  }), {
7985
- x: o,
7986
- y: a
7987
- } = J1(m, M, d), n = M, l = {}, S = 0;
7988
- for (let v = 0; v < e.length; v++) {
8060
+ x: n,
8061
+ y: u
8062
+ } = A2(m, i, d), o = i, r = {}, S = 0;
8063
+ for (let b = 0; b < e.length; b++) {
7989
8064
  const {
7990
8065
  name: B,
7991
- fn: T
7992
- } = e[v], {
7993
- x: k,
7994
- y,
7995
- data: F,
7996
- reset: P
7997
- } = await T({
7998
- x: o,
7999
- y: a,
8000
- initialPlacement: M,
8001
- placement: n,
8002
- strategy: i,
8003
- middlewareData: l,
8066
+ fn: y
8067
+ } = e[b], {
8068
+ x: c,
8069
+ y: w,
8070
+ data: _,
8071
+ reset: x
8072
+ } = await y({
8073
+ x: n,
8074
+ y: u,
8075
+ initialPlacement: i,
8076
+ placement: o,
8077
+ strategy: A,
8078
+ middlewareData: r,
8004
8079
  rects: m,
8005
- platform: A,
8080
+ platform: M,
8006
8081
  elements: {
8007
8082
  reference: H,
8008
8083
  floating: V
8009
8084
  }
8010
8085
  });
8011
- if (o = k ?? o, a = y ?? a, l = {
8012
- ...l,
8086
+ if (n = c ?? n, u = w ?? u, r = {
8087
+ ...r,
8013
8088
  [B]: {
8014
- ...l[B],
8015
- ...F
8089
+ ...r[B],
8090
+ ..._
8016
8091
  }
8017
- }, P && S <= 50) {
8018
- S++, typeof P == "object" && (P.placement && (n = P.placement), P.rects && (m = P.rects === !0 ? await A.getElementRects({
8092
+ }, x && S <= 50) {
8093
+ S++, typeof x == "object" && (x.placement && (o = x.placement), x.rects && (m = x.rects === !0 ? await M.getElementRects({
8019
8094
  reference: H,
8020
8095
  floating: V,
8021
- strategy: i
8022
- }) : P.rects), {
8023
- x: o,
8024
- y: a
8025
- } = J1(m, n, d)), v = -1;
8096
+ strategy: A
8097
+ }) : x.rects), {
8098
+ x: n,
8099
+ y: u
8100
+ } = A2(m, o, d)), b = -1;
8026
8101
  continue;
8027
8102
  }
8028
8103
  }
8029
8104
  return {
8030
- x: o,
8031
- y: a,
8032
- placement: n,
8033
- strategy: i,
8034
- middlewareData: l
8105
+ x: n,
8106
+ y: u,
8107
+ placement: o,
8108
+ strategy: A,
8109
+ middlewareData: r
8035
8110
  };
8036
8111
  };
8037
- async function y1(H, V) {
8112
+ async function x1(H, V) {
8038
8113
  var C;
8039
8114
  V === void 0 && (V = {});
8040
8115
  const {
8041
- x: M,
8042
- y: i,
8116
+ x: i,
8117
+ y: A,
8043
8118
  platform: L,
8044
- rects: A,
8119
+ rects: M,
8045
8120
  elements: e,
8046
8121
  strategy: d
8047
8122
  } = H, {
8048
8123
  boundary: m = "clippingAncestors",
8049
- rootBoundary: o = "viewport",
8050
- elementContext: a = "floating",
8051
- altBoundary: n = !1,
8052
- padding: l = 0
8053
- } = n1(V, H), S = o2(l), B = e[n ? a === "floating" ? "reference" : "floating" : a], T = v1(await L.getClippingRect({
8124
+ rootBoundary: n = "viewport",
8125
+ elementContext: u = "floating",
8126
+ altBoundary: o = !1,
8127
+ padding: r = 0
8128
+ } = S1(V, H), S = S2(r), B = e[o ? u === "floating" ? "reference" : "floating" : u], y = R1(await L.getClippingRect({
8054
8129
  element: (C = await (L.isElement == null ? void 0 : L.isElement(B))) == null || C ? B : B.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8055
8130
  boundary: m,
8056
- rootBoundary: o,
8131
+ rootBoundary: n,
8057
8132
  strategy: d
8058
- })), k = a === "floating" ? {
8059
- ...A.floating,
8060
- x: M,
8061
- y: i
8062
- } : A.reference, y = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), F = await (L.isElement == null ? void 0 : L.isElement(y)) ? await (L.getScale == null ? void 0 : L.getScale(y)) || {
8133
+ })), c = u === "floating" ? {
8134
+ ...M.floating,
8135
+ x: i,
8136
+ y: A
8137
+ } : M.reference, w = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), _ = await (L.isElement == null ? void 0 : L.isElement(w)) ? await (L.getScale == null ? void 0 : L.getScale(w)) || {
8063
8138
  x: 1,
8064
8139
  y: 1
8065
8140
  } : {
8066
8141
  x: 1,
8067
8142
  y: 1
8068
- }, P = v1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8069
- rect: k,
8070
- offsetParent: y,
8143
+ }, x = R1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8144
+ rect: c,
8145
+ offsetParent: w,
8071
8146
  strategy: d
8072
- }) : k);
8147
+ }) : c);
8073
8148
  return {
8074
- top: (T.top - P.top + S.top) / F.y,
8075
- bottom: (P.bottom - T.bottom + S.bottom) / F.y,
8076
- left: (T.left - P.left + S.left) / F.x,
8077
- right: (P.right - T.right + S.right) / F.x
8149
+ top: (y.top - x.top + S.top) / _.y,
8150
+ bottom: (x.bottom - y.bottom + S.bottom) / _.y,
8151
+ left: (y.left - x.left + S.left) / _.x,
8152
+ right: (x.right - y.right + S.right) / _.x
8078
8153
  };
8079
8154
  }
8080
- const s5 = (H) => ({
8155
+ const R5 = (H) => ({
8081
8156
  name: "arrow",
8082
8157
  options: H,
8083
8158
  async fn(V) {
8084
8159
  const {
8085
8160
  x: C,
8086
- y: M,
8087
- placement: i,
8161
+ y: i,
8162
+ placement: A,
8088
8163
  rects: L,
8089
- platform: A,
8164
+ platform: M,
8090
8165
  elements: e,
8091
8166
  middlewareData: d
8092
8167
  } = V, {
8093
8168
  element: m,
8094
- padding: o = 0
8095
- } = n1(H, V) || {};
8169
+ padding: n = 0
8170
+ } = S1(H, V) || {};
8096
8171
  if (m == null)
8097
8172
  return {};
8098
- const a = o2(o), n = {
8173
+ const u = S2(n), o = {
8099
8174
  x: C,
8100
- y: M
8101
- }, l = U1(i), S = $1(l), v = await A.getDimensions(m), B = l === "y", T = B ? "top" : "left", k = B ? "bottom" : "right", y = B ? "clientHeight" : "clientWidth", F = L.reference[S] + L.reference[l] - n[l] - L.floating[S], P = n[l] - L.reference[l], U = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(m));
8102
- let W = U ? U[y] : 0;
8103
- (!W || !await (A.isElement == null ? void 0 : A.isElement(U))) && (W = e.floating[y] || L.floating[S]);
8104
- const f = F / 2 - P / 2, N = W / 2 - v[S] / 2 - 1, i1 = Z1(a[T], N), A1 = Z1(a[k], N), I = i1, Z = W - v[S] - A1, s = W / 2 - v[S] / 2 + f, w = W1(I, s, Z), x = !d.arrow && s1(i) != null && s != w && L.reference[S] / 2 - (s < I ? i1 : A1) - v[S] / 2 < 0, c = x ? s < I ? s - I : s - Z : 0;
8175
+ y: i
8176
+ }, r = Y1(A), S = X1(r), b = await M.getDimensions(m), B = r === "y", y = B ? "top" : "left", c = B ? "bottom" : "right", w = B ? "clientHeight" : "clientWidth", _ = L.reference[S] + L.reference[r] - o[r] - L.floating[S], x = o[r] - L.reference[r], U = await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(m));
8177
+ let $ = U ? U[w] : 0;
8178
+ (!$ || !await (M.isElement == null ? void 0 : M.isElement(U))) && ($ = e.floating[w] || L.floating[S]);
8179
+ const C1 = _ / 2 - x / 2, h = $ / 2 - b[S] / 2 - 1, F = p1(u[y], h), m1 = p1(u[c], h), N = F, l1 = $ - b[S] - m1, I = $ / 2 - b[S] / 2 + C1, j = G1(N, I, l1), X = !d.arrow && h1(A) != null && I != j && L.reference[S] / 2 - (I < N ? F : m1) - b[S] / 2 < 0, K = X ? I < N ? I - N : I - l1 : 0;
8105
8180
  return {
8106
- [l]: n[l] + c,
8181
+ [r]: o[r] + K,
8107
8182
  data: {
8108
- [l]: w,
8109
- centerOffset: s - w - c,
8110
- ...x && {
8111
- alignmentOffset: c
8183
+ [r]: j,
8184
+ centerOffset: I - j - K,
8185
+ ...X && {
8186
+ alignmentOffset: K
8112
8187
  }
8113
8188
  },
8114
- reset: x
8189
+ reset: X
8115
8190
  };
8116
8191
  }
8117
- }), c5 = function(H) {
8192
+ }), x5 = function(H) {
8118
8193
  return H === void 0 && (H = {}), {
8119
8194
  name: "flip",
8120
8195
  options: H,
8121
8196
  async fn(V) {
8122
- var C, M;
8197
+ var C, i;
8123
8198
  const {
8124
- placement: i,
8199
+ placement: A,
8125
8200
  middlewareData: L,
8126
- rects: A,
8201
+ rects: M,
8127
8202
  initialPlacement: e,
8128
8203
  platform: d,
8129
8204
  elements: m
8130
8205
  } = V, {
8131
- mainAxis: o = !0,
8132
- crossAxis: a = !0,
8133
- fallbackPlacements: n,
8134
- fallbackStrategy: l = "bestFit",
8206
+ mainAxis: n = !0,
8207
+ crossAxis: u = !0,
8208
+ fallbackPlacements: o,
8209
+ fallbackStrategy: r = "bestFit",
8135
8210
  fallbackAxisSideDirection: S = "none",
8136
- flipAlignment: v = !0,
8211
+ flipAlignment: b = !0,
8137
8212
  ...B
8138
- } = n1(H, V);
8213
+ } = S1(H, V);
8139
8214
  if ((C = L.arrow) != null && C.alignmentOffset)
8140
8215
  return {};
8141
- const T = e1(i), k = e1(e) === e, y = await (d.isRTL == null ? void 0 : d.isRTL(m.floating)), F = n || (k || !v ? [w1(e)] : r5(e));
8142
- !n && S !== "none" && F.push(...Z5(e, v, S, y));
8143
- const P = [e, ...F], U = await y1(V, B), W = [];
8144
- let f = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8145
- if (o && W.push(U[T]), a) {
8146
- const I = n5(i, A, y);
8147
- W.push(U[I[0]], U[I[1]]);
8216
+ const y = o1(A), c = o1(e) === e, w = await (d.isRTL == null ? void 0 : d.isRTL(m.floating)), _ = o || (c || !b ? [F1(e)] : w5(e));
8217
+ !o && S !== "none" && _.push(...P5(e, b, S, w));
8218
+ const x = [e, ..._], U = await x1(V, B), $ = [];
8219
+ let C1 = ((i = L.flip) == null ? void 0 : i.overflows) || [];
8220
+ if (n && $.push(U[y]), u) {
8221
+ const N = v5(A, M, w);
8222
+ $.push(U[N[0]], U[N[1]]);
8148
8223
  }
8149
- if (f = [...f, {
8150
- placement: i,
8151
- overflows: W
8152
- }], !W.every((I) => I <= 0)) {
8153
- var N, i1;
8154
- const I = (((N = L.flip) == null ? void 0 : N.index) || 0) + 1, Z = P[I];
8155
- if (Z)
8224
+ if (C1 = [...C1, {
8225
+ placement: A,
8226
+ overflows: $
8227
+ }], !$.every((N) => N <= 0)) {
8228
+ var h, F;
8229
+ const N = (((h = L.flip) == null ? void 0 : h.index) || 0) + 1, l1 = x[N];
8230
+ if (l1)
8156
8231
  return {
8157
8232
  data: {
8158
- index: I,
8159
- overflows: f
8233
+ index: N,
8234
+ overflows: C1
8160
8235
  },
8161
8236
  reset: {
8162
- placement: Z
8237
+ placement: l1
8163
8238
  }
8164
8239
  };
8165
- let s = (i1 = f.filter((w) => w.overflows[0] <= 0).sort((w, x) => w.overflows[1] - x.overflows[1])[0]) == null ? void 0 : i1.placement;
8166
- if (!s)
8167
- switch (l) {
8240
+ let I = (F = C1.filter((j) => j.overflows[0] <= 0).sort((j, X) => j.overflows[1] - X.overflows[1])[0]) == null ? void 0 : F.placement;
8241
+ if (!I)
8242
+ switch (r) {
8168
8243
  case "bestFit": {
8169
- var A1;
8170
- const w = (A1 = f.map((x) => [x.placement, x.overflows.filter((c) => c > 0).reduce((c, Q) => c + Q, 0)]).sort((x, c) => x[1] - c[1])[0]) == null ? void 0 : A1[0];
8171
- w && (s = w);
8244
+ var m1;
8245
+ const j = (m1 = C1.map((X) => [X.placement, X.overflows.filter((K) => K > 0).reduce((K, t) => K + t, 0)]).sort((X, K) => X[1] - K[1])[0]) == null ? void 0 : m1[0];
8246
+ j && (I = j);
8172
8247
  break;
8173
8248
  }
8174
8249
  case "initialPlacement":
8175
- s = e;
8250
+ I = e;
8176
8251
  break;
8177
8252
  }
8178
- if (i !== s)
8253
+ if (A !== I)
8179
8254
  return {
8180
8255
  reset: {
8181
- placement: s
8256
+ placement: I
8182
8257
  }
8183
8258
  };
8184
8259
  }
@@ -8186,7 +8261,7 @@ const s5 = (H) => ({
8186
8261
  }
8187
8262
  };
8188
8263
  };
8189
- function C2(H, V) {
8264
+ function e2(H, V) {
8190
8265
  return {
8191
8266
  top: H.top - V.height,
8192
8267
  right: H.right - V.width,
@@ -8194,10 +8269,10 @@ function C2(H, V) {
8194
8269
  left: H.left - V.width
8195
8270
  };
8196
8271
  }
8197
- function H2(H) {
8198
- return m5.some((V) => H[V] >= 0);
8272
+ function d2(H) {
8273
+ return k5.some((V) => H[V] >= 0);
8199
8274
  }
8200
- const p5 = function(H) {
8275
+ const D5 = function(H) {
8201
8276
  return H === void 0 && (H = {}), {
8202
8277
  name: "hide",
8203
8278
  options: H,
@@ -8205,31 +8280,31 @@ const p5 = function(H) {
8205
8280
  const {
8206
8281
  rects: C
8207
8282
  } = V, {
8208
- strategy: M = "referenceHidden",
8209
- ...i
8210
- } = n1(H, V);
8211
- switch (M) {
8283
+ strategy: i = "referenceHidden",
8284
+ ...A
8285
+ } = S1(H, V);
8286
+ switch (i) {
8212
8287
  case "referenceHidden": {
8213
- const L = await y1(V, {
8214
- ...i,
8288
+ const L = await x1(V, {
8289
+ ...A,
8215
8290
  elementContext: "reference"
8216
- }), A = C2(L, C.reference);
8291
+ }), M = e2(L, C.reference);
8217
8292
  return {
8218
8293
  data: {
8219
- referenceHiddenOffsets: A,
8220
- referenceHidden: H2(A)
8294
+ referenceHiddenOffsets: M,
8295
+ referenceHidden: d2(M)
8221
8296
  }
8222
8297
  };
8223
8298
  }
8224
8299
  case "escaped": {
8225
- const L = await y1(V, {
8226
- ...i,
8300
+ const L = await x1(V, {
8301
+ ...A,
8227
8302
  altBoundary: !0
8228
- }), A = C2(L, C.floating);
8303
+ }), M = e2(L, C.floating);
8229
8304
  return {
8230
8305
  data: {
8231
- escapedOffsets: A,
8232
- escaped: H2(A)
8306
+ escapedOffsets: M,
8307
+ escaped: d2(M)
8233
8308
  }
8234
8309
  };
8235
8310
  }
@@ -8239,162 +8314,162 @@ const p5 = function(H) {
8239
8314
  }
8240
8315
  };
8241
8316
  };
8242
- async function O5(H, V) {
8317
+ async function E5(H, V) {
8243
8318
  const {
8244
8319
  placement: C,
8245
- platform: M,
8246
- elements: i
8247
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A = e1(C), e = s1(C), d = F1(C) === "y", m = ["left", "top"].includes(A) ? -1 : 1, o = L && d ? -1 : 1, a = n1(V, H);
8320
+ platform: i,
8321
+ elements: A
8322
+ } = H, L = await (i.isRTL == null ? void 0 : i.isRTL(A.floating)), M = o1(C), e = h1(C), d = _1(C) === "y", m = ["left", "top"].includes(M) ? -1 : 1, n = L && d ? -1 : 1, u = S1(V, H);
8248
8323
  let {
8249
- mainAxis: n,
8250
- crossAxis: l,
8324
+ mainAxis: o,
8325
+ crossAxis: r,
8251
8326
  alignmentAxis: S
8252
- } = typeof a == "number" ? {
8253
- mainAxis: a,
8327
+ } = typeof u == "number" ? {
8328
+ mainAxis: u,
8254
8329
  crossAxis: 0,
8255
8330
  alignmentAxis: null
8256
8331
  } : {
8257
8332
  mainAxis: 0,
8258
8333
  crossAxis: 0,
8259
8334
  alignmentAxis: null,
8260
- ...a
8335
+ ...u
8261
8336
  };
8262
- return e && typeof S == "number" && (l = e === "end" ? S * -1 : S), d ? {
8263
- x: l * o,
8264
- y: n * m
8337
+ return e && typeof S == "number" && (r = e === "end" ? S * -1 : S), d ? {
8338
+ x: r * n,
8339
+ y: o * m
8265
8340
  } : {
8266
- x: n * m,
8267
- y: l * o
8341
+ x: o * m,
8342
+ y: r * n
8268
8343
  };
8269
8344
  }
8270
- const f5 = function(H) {
8345
+ const _5 = function(H) {
8271
8346
  return H === void 0 && (H = 0), {
8272
8347
  name: "offset",
8273
8348
  options: H,
8274
8349
  async fn(V) {
8275
8350
  const {
8276
8351
  x: C,
8277
- y: M
8278
- } = V, i = await O5(V, H);
8352
+ y: i
8353
+ } = V, A = await E5(V, H);
8279
8354
  return {
8280
- x: C + i.x,
8281
- y: M + i.y,
8282
- data: i
8355
+ x: C + A.x,
8356
+ y: i + A.y,
8357
+ data: A
8283
8358
  };
8284
8359
  }
8285
8360
  };
8286
- }, h5 = function(H) {
8361
+ }, $5 = function(H) {
8287
8362
  return H === void 0 && (H = {}), {
8288
8363
  name: "shift",
8289
8364
  options: H,
8290
8365
  async fn(V) {
8291
8366
  const {
8292
8367
  x: C,
8293
- y: M,
8294
- placement: i
8368
+ y: i,
8369
+ placement: A
8295
8370
  } = V, {
8296
8371
  mainAxis: L = !0,
8297
- crossAxis: A = !1,
8372
+ crossAxis: M = !1,
8298
8373
  limiter: e = {
8299
8374
  fn: (B) => {
8300
8375
  let {
8301
- x: T,
8302
- y: k
8376
+ x: y,
8377
+ y: c
8303
8378
  } = B;
8304
8379
  return {
8305
- x: T,
8306
- y: k
8380
+ x: y,
8381
+ y: c
8307
8382
  };
8308
8383
  }
8309
8384
  },
8310
8385
  ...d
8311
- } = n1(H, V), m = {
8386
+ } = S1(H, V), m = {
8312
8387
  x: C,
8313
- y: M
8314
- }, o = await y1(V, d), a = F1(e1(i)), n = l2(a);
8315
- let l = m[n], S = m[a];
8388
+ y: i
8389
+ }, n = await x1(V, d), u = _1(o1(A)), o = u2(u);
8390
+ let r = m[o], S = m[u];
8316
8391
  if (L) {
8317
- const B = n === "y" ? "top" : "left", T = n === "y" ? "bottom" : "right", k = l + o[B], y = l - o[T];
8318
- l = W1(k, l, y);
8392
+ const B = o === "y" ? "top" : "left", y = o === "y" ? "bottom" : "right", c = r + n[B], w = r - n[y];
8393
+ r = G1(c, r, w);
8319
8394
  }
8320
- if (A) {
8321
- const B = a === "y" ? "top" : "left", T = a === "y" ? "bottom" : "right", k = S + o[B], y = S - o[T];
8322
- S = W1(k, S, y);
8395
+ if (M) {
8396
+ const B = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", c = S + n[B], w = S - n[y];
8397
+ S = G1(c, S, w);
8323
8398
  }
8324
- const v = e.fn({
8399
+ const b = e.fn({
8325
8400
  ...V,
8326
- [n]: l,
8327
- [a]: S
8401
+ [o]: r,
8402
+ [u]: S
8328
8403
  });
8329
8404
  return {
8330
- ...v,
8405
+ ...b,
8331
8406
  data: {
8332
- x: v.x - C,
8333
- y: v.y - M
8407
+ x: b.x - C,
8408
+ y: b.y - i
8334
8409
  }
8335
8410
  };
8336
8411
  }
8337
8412
  };
8338
8413
  };
8339
- function L1(H) {
8340
- return n2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8414
+ function d1(H) {
8415
+ return s2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8341
8416
  }
8342
- function z(H) {
8417
+ function q(H) {
8343
8418
  var V;
8344
8419
  return (H == null || (V = H.ownerDocument) == null ? void 0 : V.defaultView) || window;
8345
8420
  }
8346
- function M1(H) {
8421
+ function t1(H) {
8347
8422
  var V;
8348
- return (V = (n2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8423
+ return (V = (s2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8349
8424
  }
8350
- function n2(H) {
8351
- return H instanceof Node || H instanceof z(H).Node;
8425
+ function s2(H) {
8426
+ return H instanceof Node || H instanceof q(H).Node;
8352
8427
  }
8353
- function C1(H) {
8354
- return H instanceof Element || H instanceof z(H).Element;
8428
+ function i1(H) {
8429
+ return H instanceof Element || H instanceof q(H).Element;
8355
8430
  }
8356
- function j(H) {
8357
- return H instanceof HTMLElement || H instanceof z(H).HTMLElement;
8431
+ function V1(H) {
8432
+ return H instanceof HTMLElement || H instanceof q(H).HTMLElement;
8358
8433
  }
8359
- function V2(H) {
8360
- return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof z(H).ShadowRoot;
8434
+ function t2(H) {
8435
+ return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof q(H).ShadowRoot;
8361
8436
  }
8362
- function c1(H) {
8437
+ function g1(H) {
8363
8438
  const {
8364
8439
  overflow: V,
8365
8440
  overflowX: C,
8366
- overflowY: M,
8367
- display: i
8368
- } = K(H);
8369
- return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(i);
8441
+ overflowY: i,
8442
+ display: A
8443
+ } = J(H);
8444
+ return /auto|scroll|overlay|hidden|clip/.test(V + i + C) && !["inline", "contents"].includes(A);
8370
8445
  }
8371
- function g5(H) {
8372
- return ["table", "td", "th"].includes(L1(H));
8446
+ function W5(H) {
8447
+ return ["table", "td", "th"].includes(d1(H));
8373
8448
  }
8374
- function z1(H) {
8375
- const V = K1(), C = K(H);
8376
- 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));
8449
+ function J1(H) {
8450
+ const V = C2(), C = J(H);
8451
+ 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((i) => (C.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (C.contain || "").includes(i));
8377
8452
  }
8378
- function k5(H) {
8379
- let V = o1(H);
8380
- for (; j(V) && !R1(V); ) {
8381
- if (z1(V))
8453
+ function N5(H) {
8454
+ let V = u1(H);
8455
+ for (; V1(V) && !$1(V); ) {
8456
+ if (J1(V))
8382
8457
  return V;
8383
- V = o1(V);
8458
+ V = u1(V);
8384
8459
  }
8385
8460
  return null;
8386
8461
  }
8387
- function K1() {
8462
+ function C2() {
8388
8463
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
8389
8464
  }
8390
- function R1(H) {
8391
- return ["html", "body", "#document"].includes(L1(H));
8465
+ function $1(H) {
8466
+ return ["html", "body", "#document"].includes(d1(H));
8392
8467
  }
8393
- function K(H) {
8394
- return z(H).getComputedStyle(H);
8468
+ function J(H) {
8469
+ return q(H).getComputedStyle(H);
8395
8470
  }
8396
- function x1(H) {
8397
- return C1(H) ? {
8471
+ function W1(H) {
8472
+ return i1(H) ? {
8398
8473
  scrollLeft: H.scrollLeft,
8399
8474
  scrollTop: H.scrollTop
8400
8475
  } : {
@@ -8402,201 +8477,201 @@ function x1(H) {
8402
8477
  scrollTop: H.pageYOffset
8403
8478
  };
8404
8479
  }
8405
- function o1(H) {
8406
- if (L1(H) === "html")
8480
+ function u1(H) {
8481
+ if (d1(H) === "html")
8407
8482
  return H;
8408
8483
  const V = (
8409
8484
  // Step into the shadow DOM of the parent of a slotted node.
8410
8485
  H.assignedSlot || // DOM Element detected.
8411
8486
  H.parentNode || // ShadowRoot detected.
8412
- V2(H) && H.host || // Fallback.
8413
- M1(H)
8487
+ t2(H) && H.host || // Fallback.
8488
+ t1(H)
8414
8489
  );
8415
- return V2(V) ? V.host : V;
8490
+ return t2(V) ? V.host : V;
8416
8491
  }
8417
- function r2(H) {
8418
- const V = o1(H);
8419
- return R1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : j(V) && c1(V) ? V : r2(V);
8492
+ function c2(H) {
8493
+ const V = u1(H);
8494
+ return $1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : V1(V) && g1(V) ? V : c2(V);
8420
8495
  }
8421
- function I1(H, V, C) {
8422
- var M;
8496
+ function z1(H, V, C) {
8497
+ var i;
8423
8498
  V === void 0 && (V = []), C === void 0 && (C = !0);
8424
- const i = r2(H), L = i === ((M = H.ownerDocument) == null ? void 0 : M.body), A = z(i);
8425
- return L ? V.concat(A, A.visualViewport || [], c1(i) ? i : [], A.frameElement && C ? I1(A.frameElement) : []) : V.concat(i, I1(i, [], C));
8499
+ const A = c2(H), L = A === ((i = H.ownerDocument) == null ? void 0 : i.body), M = q(A);
8500
+ return L ? V.concat(M, M.visualViewport || [], g1(A) ? A : [], M.frameElement && C ? z1(M.frameElement) : []) : V.concat(A, z1(A, [], C));
8426
8501
  }
8427
- function a2(H) {
8428
- const V = K(H);
8429
- let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
8430
- const i = j(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, e = b1(C) !== L || b1(M) !== A;
8431
- return e && (C = L, M = A), {
8502
+ function p2(H) {
8503
+ const V = J(H);
8504
+ let C = parseFloat(V.width) || 0, i = parseFloat(V.height) || 0;
8505
+ const A = V1(H), L = A ? H.offsetWidth : C, M = A ? H.offsetHeight : i, e = T1(C) !== L || T1(i) !== M;
8506
+ return e && (C = L, i = M), {
8432
8507
  width: C,
8433
- height: M,
8508
+ height: i,
8434
8509
  $: e
8435
8510
  };
8436
8511
  }
8437
- function Z2(H) {
8438
- return C1(H) ? H : H.contextElement;
8512
+ function O2(H) {
8513
+ return i1(H) ? H : H.contextElement;
8439
8514
  }
8440
- function l1(H) {
8441
- const V = Z2(H);
8442
- if (!j(V))
8443
- return V1(1);
8515
+ function Z1(H) {
8516
+ const V = O2(H);
8517
+ if (!V1(V))
8518
+ return e1(1);
8444
8519
  const C = V.getBoundingClientRect(), {
8445
- width: M,
8446
- height: i,
8520
+ width: i,
8521
+ height: A,
8447
8522
  $: L
8448
- } = a2(V);
8449
- let A = (L ? b1(C.width) : C.width) / M, e = (L ? b1(C.height) : C.height) / i;
8450
- return (!A || !Number.isFinite(A)) && (A = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8451
- x: A,
8523
+ } = p2(V);
8524
+ let M = (L ? T1(C.width) : C.width) / i, e = (L ? T1(C.height) : C.height) / A;
8525
+ return (!M || !Number.isFinite(M)) && (M = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8526
+ x: M,
8452
8527
  y: e
8453
8528
  };
8454
8529
  }
8455
- const B5 = /* @__PURE__ */ V1(0);
8456
- function u2(H) {
8457
- const V = z(H);
8458
- return !K1() || !V.visualViewport ? B5 : {
8530
+ const I5 = /* @__PURE__ */ e1(0);
8531
+ function f2(H) {
8532
+ const V = q(H);
8533
+ return !C2() || !V.visualViewport ? I5 : {
8459
8534
  x: V.visualViewport.offsetLeft,
8460
8535
  y: V.visualViewport.offsetTop
8461
8536
  };
8462
8537
  }
8463
- function b5(H, V, C) {
8464
- return V === void 0 && (V = !1), !C || V && C !== z(H) ? !1 : V;
8538
+ function Q5(H, V, C) {
8539
+ return V === void 0 && (V = !1), !C || V && C !== q(H) ? !1 : V;
8465
8540
  }
8466
- function u1(H, V, C, M) {
8541
+ function O1(H, V, C, i) {
8467
8542
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8468
- const i = H.getBoundingClientRect(), L = Z2(H);
8469
- let A = V1(1);
8470
- V && (M ? C1(M) && (A = l1(M)) : A = l1(H));
8471
- const e = b5(L, C, M) ? u2(L) : V1(0);
8472
- let d = (i.left + e.x) / A.x, m = (i.top + e.y) / A.y, o = i.width / A.x, a = i.height / A.y;
8543
+ const A = H.getBoundingClientRect(), L = O2(H);
8544
+ let M = e1(1);
8545
+ V && (i ? i1(i) && (M = Z1(i)) : M = Z1(H));
8546
+ const e = Q5(L, C, i) ? f2(L) : e1(0);
8547
+ let d = (A.left + e.x) / M.x, m = (A.top + e.y) / M.y, n = A.width / M.x, u = A.height / M.y;
8473
8548
  if (L) {
8474
- const n = z(L), l = M && C1(M) ? z(M) : M;
8475
- let S = n.frameElement;
8476
- for (; S && M && l !== n; ) {
8477
- const v = l1(S), B = S.getBoundingClientRect(), T = K(S), k = B.left + (S.clientLeft + parseFloat(T.paddingLeft)) * v.x, y = B.top + (S.clientTop + parseFloat(T.paddingTop)) * v.y;
8478
- d *= v.x, m *= v.y, o *= v.x, a *= v.y, d += k, m += y, S = z(S).frameElement;
8549
+ const o = q(L), r = i && i1(i) ? q(i) : i;
8550
+ let S = o.frameElement;
8551
+ for (; S && i && r !== o; ) {
8552
+ const b = Z1(S), B = S.getBoundingClientRect(), y = J(S), c = B.left + (S.clientLeft + parseFloat(y.paddingLeft)) * b.x, w = B.top + (S.clientTop + parseFloat(y.paddingTop)) * b.y;
8553
+ d *= b.x, m *= b.y, n *= b.x, u *= b.y, d += c, m += w, S = q(S).frameElement;
8479
8554
  }
8480
8555
  }
8481
- return v1({
8482
- width: o,
8483
- height: a,
8556
+ return R1({
8557
+ width: n,
8558
+ height: u,
8484
8559
  x: d,
8485
8560
  y: m
8486
8561
  });
8487
8562
  }
8488
- function w5(H) {
8563
+ function G5(H) {
8489
8564
  let {
8490
8565
  rect: V,
8491
8566
  offsetParent: C,
8492
- strategy: M
8567
+ strategy: i
8493
8568
  } = H;
8494
- const i = j(C), L = M1(C);
8569
+ const A = V1(C), L = t1(C);
8495
8570
  if (C === L)
8496
8571
  return V;
8497
- let A = {
8572
+ let M = {
8498
8573
  scrollLeft: 0,
8499
8574
  scrollTop: 0
8500
- }, e = V1(1);
8501
- const d = V1(0);
8502
- if ((i || !i && M !== "fixed") && ((L1(C) !== "body" || c1(L)) && (A = x1(C)), j(C))) {
8503
- const m = u1(C);
8504
- e = l1(C), d.x = m.x + C.clientLeft, d.y = m.y + C.clientTop;
8575
+ }, e = e1(1);
8576
+ const d = e1(0);
8577
+ if ((A || !A && i !== "fixed") && ((d1(C) !== "body" || g1(L)) && (M = W1(C)), V1(C))) {
8578
+ const m = O1(C);
8579
+ e = Z1(C), d.x = m.x + C.clientLeft, d.y = m.y + C.clientTop;
8505
8580
  }
8506
8581
  return {
8507
8582
  width: V.width * e.x,
8508
8583
  height: V.height * e.y,
8509
- x: V.x * e.x - A.scrollLeft * e.x + d.x,
8510
- y: V.y * e.y - A.scrollTop * e.y + d.y
8584
+ x: V.x * e.x - M.scrollLeft * e.x + d.x,
8585
+ y: V.y * e.y - M.scrollTop * e.y + d.y
8511
8586
  };
8512
8587
  }
8513
- function v5(H) {
8588
+ function U5(H) {
8514
8589
  return Array.from(H.getClientRects());
8515
8590
  }
8516
- function S2(H) {
8517
- return u1(M1(H)).left + x1(H).scrollLeft;
8591
+ function h2(H) {
8592
+ return O1(t1(H)).left + W1(H).scrollLeft;
8518
8593
  }
8519
- function y5(H) {
8520
- const V = M1(H), C = x1(H), M = H.ownerDocument.body, i = m1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = m1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8521
- let A = -C.scrollLeft + S2(H);
8594
+ function z5(H) {
8595
+ const V = t1(H), C = W1(H), i = H.ownerDocument.body, A = a1(V.scrollWidth, V.clientWidth, i.scrollWidth, i.clientWidth), L = a1(V.scrollHeight, V.clientHeight, i.scrollHeight, i.clientHeight);
8596
+ let M = -C.scrollLeft + h2(H);
8522
8597
  const e = -C.scrollTop;
8523
- return K(M).direction === "rtl" && (A += m1(V.clientWidth, M.clientWidth) - i), {
8524
- width: i,
8598
+ return J(i).direction === "rtl" && (M += a1(V.clientWidth, i.clientWidth) - A), {
8599
+ width: A,
8525
8600
  height: L,
8526
- x: A,
8601
+ x: M,
8527
8602
  y: e
8528
8603
  };
8529
8604
  }
8530
- function P5(H, V) {
8531
- const C = z(H), M = M1(H), i = C.visualViewport;
8532
- let L = M.clientWidth, A = M.clientHeight, e = 0, d = 0;
8533
- if (i) {
8534
- L = i.width, A = i.height;
8535
- const m = K1();
8536
- (!m || m && V === "fixed") && (e = i.offsetLeft, d = i.offsetTop);
8605
+ function K5(H, V) {
8606
+ const C = q(H), i = t1(H), A = C.visualViewport;
8607
+ let L = i.clientWidth, M = i.clientHeight, e = 0, d = 0;
8608
+ if (A) {
8609
+ L = A.width, M = A.height;
8610
+ const m = C2();
8611
+ (!m || m && V === "fixed") && (e = A.offsetLeft, d = A.offsetTop);
8537
8612
  }
8538
8613
  return {
8539
8614
  width: L,
8540
- height: A,
8615
+ height: M,
8541
8616
  x: e,
8542
8617
  y: d
8543
8618
  };
8544
8619
  }
8545
- function T5(H, V) {
8546
- const C = u1(H, !0, V === "fixed"), M = C.top + H.clientTop, i = C.left + H.clientLeft, L = j(H) ? l1(H) : V1(1), A = H.clientWidth * L.x, e = H.clientHeight * L.y, d = i * L.x, m = M * L.y;
8620
+ function q5(H, V) {
8621
+ const C = O1(H, !0, V === "fixed"), i = C.top + H.clientTop, A = C.left + H.clientLeft, L = V1(H) ? Z1(H) : e1(1), M = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, m = i * L.y;
8547
8622
  return {
8548
- width: A,
8623
+ width: M,
8549
8624
  height: e,
8550
8625
  x: d,
8551
8626
  y: m
8552
8627
  };
8553
8628
  }
8554
- function L2(H, V, C) {
8555
- let M;
8629
+ function m2(H, V, C) {
8630
+ let i;
8556
8631
  if (V === "viewport")
8557
- M = P5(H, C);
8632
+ i = K5(H, C);
8558
8633
  else if (V === "document")
8559
- M = y5(M1(H));
8560
- else if (C1(V))
8561
- M = T5(V, C);
8634
+ i = z5(t1(H));
8635
+ else if (i1(V))
8636
+ i = q5(V, C);
8562
8637
  else {
8563
- const i = u2(H);
8564
- M = {
8638
+ const A = f2(H);
8639
+ i = {
8565
8640
  ...V,
8566
- x: V.x - i.x,
8567
- y: V.y - i.y
8641
+ x: V.x - A.x,
8642
+ y: V.y - A.y
8568
8643
  };
8569
8644
  }
8570
- return v1(M);
8645
+ return R1(i);
8571
8646
  }
8572
- function s2(H, V) {
8573
- const C = o1(H);
8574
- return C === V || !C1(C) || R1(C) ? !1 : K(C).position === "fixed" || s2(C, V);
8647
+ function g2(H, V) {
8648
+ const C = u1(H);
8649
+ return C === V || !i1(C) || $1(C) ? !1 : J(C).position === "fixed" || g2(C, V);
8575
8650
  }
8576
- function F5(H, V) {
8651
+ function j5(H, V) {
8577
8652
  const C = V.get(H);
8578
8653
  if (C)
8579
8654
  return C;
8580
- let M = I1(H, [], !1).filter((e) => C1(e) && L1(e) !== "body"), i = null;
8581
- const L = K(H).position === "fixed";
8582
- let A = L ? o1(H) : H;
8583
- for (; C1(A) && !R1(A); ) {
8584
- const e = K(A), d = z1(A);
8585
- !d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || c1(A) && !d && s2(H, A)) ? M = M.filter((o) => o !== A) : i = e, A = o1(A);
8655
+ let i = z1(H, [], !1).filter((e) => i1(e) && d1(e) !== "body"), A = null;
8656
+ const L = J(H).position === "fixed";
8657
+ let M = L ? u1(H) : H;
8658
+ for (; i1(M) && !$1(M); ) {
8659
+ const e = J(M), d = J1(M);
8660
+ !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || g1(M) && !d && g2(H, M)) ? i = i.filter((n) => n !== M) : A = e, M = u1(M);
8586
8661
  }
8587
- return V.set(H, M), M;
8662
+ return V.set(H, i), i;
8588
8663
  }
8589
- function R5(H) {
8664
+ function X5(H) {
8590
8665
  let {
8591
8666
  element: V,
8592
8667
  boundary: C,
8593
- rootBoundary: M,
8594
- strategy: i
8668
+ rootBoundary: i,
8669
+ strategy: A
8595
8670
  } = H;
8596
- const A = [...C === "clippingAncestors" ? F5(V, this._c) : [].concat(C), M], e = A[0], d = A.reduce((m, o) => {
8597
- const a = L2(V, o, i);
8598
- return m.top = m1(a.top, m.top), m.right = Z1(a.right, m.right), m.bottom = Z1(a.bottom, m.bottom), m.left = m1(a.left, m.left), m;
8599
- }, L2(V, e, i));
8671
+ const M = [...C === "clippingAncestors" ? j5(V, this._c) : [].concat(C), i], e = M[0], d = M.reduce((m, n) => {
8672
+ const u = m2(V, n, A);
8673
+ return m.top = a1(u.top, m.top), m.right = p1(u.right, m.right), m.bottom = p1(u.bottom, m.bottom), m.left = a1(u.left, m.left), m;
8674
+ }, m2(V, e, A));
8600
8675
  return {
8601
8676
  width: d.right - d.left,
8602
8677
  height: d.bottom - d.top,
@@ -8604,50 +8679,50 @@ function R5(H) {
8604
8679
  y: d.top
8605
8680
  };
8606
8681
  }
8607
- function x5(H) {
8608
- return a2(H);
8682
+ function Y5(H) {
8683
+ return p2(H);
8609
8684
  }
8610
- function D5(H, V, C) {
8611
- const M = j(V), i = M1(V), L = C === "fixed", A = u1(H, !0, L, V);
8685
+ function J5(H, V, C) {
8686
+ const i = V1(V), A = t1(V), L = C === "fixed", M = O1(H, !0, L, V);
8612
8687
  let e = {
8613
8688
  scrollLeft: 0,
8614
8689
  scrollTop: 0
8615
8690
  };
8616
- const d = V1(0);
8617
- if (M || !M && !L)
8618
- if ((L1(V) !== "body" || c1(i)) && (e = x1(V)), M) {
8619
- const m = u1(V, !0, L, V);
8691
+ const d = e1(0);
8692
+ if (i || !i && !L)
8693
+ if ((d1(V) !== "body" || g1(A)) && (e = W1(V)), i) {
8694
+ const m = O1(V, !0, L, V);
8620
8695
  d.x = m.x + V.clientLeft, d.y = m.y + V.clientTop;
8621
8696
  } else
8622
- i && (d.x = S2(i));
8697
+ A && (d.x = h2(A));
8623
8698
  return {
8624
- x: A.left + e.scrollLeft - d.x,
8625
- y: A.top + e.scrollTop - d.y,
8626
- width: A.width,
8627
- height: A.height
8699
+ x: M.left + e.scrollLeft - d.x,
8700
+ y: M.top + e.scrollTop - d.y,
8701
+ width: M.width,
8702
+ height: M.height
8628
8703
  };
8629
8704
  }
8630
- function M2(H, V) {
8631
- return !j(H) || K(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8705
+ function l2(H, V) {
8706
+ return !V1(H) || J(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8632
8707
  }
8633
- function c2(H, V) {
8634
- const C = z(H);
8635
- if (!j(H))
8708
+ function k2(H, V) {
8709
+ const C = q(H);
8710
+ if (!V1(H))
8636
8711
  return C;
8637
- let M = M2(H, V);
8638
- for (; M && g5(M) && K(M).position === "static"; )
8639
- M = M2(M, V);
8640
- return M && (L1(M) === "html" || L1(M) === "body" && K(M).position === "static" && !z1(M)) ? C : M || k5(H) || C;
8712
+ let i = l2(H, V);
8713
+ for (; i && W5(i) && J(i).position === "static"; )
8714
+ i = l2(i, V);
8715
+ return i && (d1(i) === "html" || d1(i) === "body" && J(i).position === "static" && !J1(i)) ? C : i || N5(H) || C;
8641
8716
  }
8642
- const _5 = async function(H) {
8717
+ const C3 = async function(H) {
8643
8718
  let {
8644
8719
  reference: V,
8645
8720
  floating: C,
8646
- strategy: M
8721
+ strategy: i
8647
8722
  } = H;
8648
- const i = this.getOffsetParent || c2, L = this.getDimensions;
8723
+ const A = this.getOffsetParent || k2, L = this.getDimensions;
8649
8724
  return {
8650
- reference: D5(V, await i(C), M),
8725
+ reference: J5(V, await A(C), i),
8651
8726
  floating: {
8652
8727
  x: 0,
8653
8728
  y: 0,
@@ -8655,82 +8730,82 @@ const _5 = async function(H) {
8655
8730
  }
8656
8731
  };
8657
8732
  };
8658
- function E5(H) {
8659
- return K(H).direction === "rtl";
8733
+ function H3(H) {
8734
+ return J(H).direction === "rtl";
8660
8735
  }
8661
- const W5 = {
8662
- convertOffsetParentRelativeRectToViewportRelativeRect: w5,
8663
- getDocumentElement: M1,
8664
- getClippingRect: R5,
8665
- getOffsetParent: c2,
8666
- getElementRects: _5,
8667
- getClientRects: v5,
8668
- getDimensions: x5,
8669
- getScale: l1,
8670
- isElement: C1,
8671
- isRTL: E5
8672
- }, N5 = (H, V, C) => {
8673
- const M = /* @__PURE__ */ new Map(), i = {
8674
- platform: W5,
8736
+ const V3 = {
8737
+ convertOffsetParentRelativeRectToViewportRelativeRect: G5,
8738
+ getDocumentElement: t1,
8739
+ getClippingRect: X5,
8740
+ getOffsetParent: k2,
8741
+ getElementRects: C3,
8742
+ getClientRects: U5,
8743
+ getDimensions: Y5,
8744
+ getScale: Z1,
8745
+ isElement: i1,
8746
+ isRTL: H3
8747
+ }, L3 = (H, V, C) => {
8748
+ const i = /* @__PURE__ */ new Map(), A = {
8749
+ platform: V3,
8675
8750
  ...C
8676
8751
  }, L = {
8677
- ...i.platform,
8678
- _c: M
8752
+ ...A.platform,
8753
+ _c: i
8679
8754
  };
8680
- return S5(H, V, {
8681
- ...i,
8755
+ return F5(H, V, {
8756
+ ...A,
8682
8757
  platform: L
8683
8758
  });
8684
8759
  };
8685
- var p2 = /* @__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))(p2 || {}), Y = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(Y || {}), Q1 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(Q1 || {});
8686
- async function I5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e) {
8687
- !H || !V || N5(H, V, {
8688
- placement: M,
8760
+ var B2 = /* @__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))(B2 || {}), M1 = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(M1 || {}), K1 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(K1 || {});
8761
+ async function M3({ value: H }, { value: V }, { value: C }, i, A, L, M = 300, e) {
8762
+ !H || !V || L3(H, V, {
8763
+ placement: i,
8689
8764
  middleware: [
8690
- f5(i),
8691
- h5({ padding: L }),
8692
- s5({ element: C }),
8693
- c5(),
8694
- p5()
8765
+ _5(A),
8766
+ $5({ padding: L }),
8767
+ R5({ element: C }),
8768
+ x5(),
8769
+ D5()
8695
8770
  ]
8696
- }).then(({ x: d, y: m, placement: o, middlewareData: a }) => {
8697
- var S, v;
8771
+ }).then(({ x: d, y: m, placement: n, middlewareData: u }) => {
8772
+ var S, b;
8698
8773
  if (!V)
8699
8774
  return;
8700
- a.flip && V.setAttribute("data-placement", o);
8701
- const n = (S = H.offsetParent) == null ? void 0 : S.getBoundingClientRect().left, l = (v = H.offsetParent) == null ? void 0 : v.getBoundingClientRect().width;
8775
+ u.flip && V.setAttribute("data-placement", n);
8776
+ const o = (S = H.offsetParent) == null ? void 0 : S.getBoundingClientRect().left, r = (b = H.offsetParent) == null ? void 0 : b.getBoundingClientRect().width;
8702
8777
  if (Object.assign(V.style, {
8703
- maxWidth: e === "dropdown" ? `${l}px` : "auto",
8704
- left: e === "dropdown" ? `${n}px` : `${d}px`,
8778
+ maxWidth: e === "dropdown" ? `${r}px` : "auto",
8779
+ left: e === "dropdown" ? `${o}px` : `${d}px`,
8705
8780
  top: `${m}px`,
8706
- animation: `r-tooltip-show ${A}ms ease-in-out forwards`,
8781
+ animation: `r-tooltip-show ${M}ms ease-in-out forwards`,
8707
8782
  transformOrigin: "start"
8708
- }), C && a.arrow) {
8709
- const { x: B, y: T } = a.arrow, k = {
8783
+ }), C && u.arrow) {
8784
+ const { x: B, y } = u.arrow, c = {
8710
8785
  top: "bottom",
8711
8786
  right: "left",
8712
8787
  bottom: "top",
8713
8788
  left: "right"
8714
8789
  /* Right */
8715
- }[o.split("-")[0]];
8790
+ }[n.split("-")[0]];
8716
8791
  Object.assign(C.style, {
8717
8792
  left: d != null ? `${B}px` : "",
8718
- top: m != null ? `${T}px` : "",
8793
+ top: m != null ? `${y}px` : "",
8719
8794
  right: "",
8720
8795
  bottom: "",
8721
- [`${k}`]: "-4px"
8796
+ [`${c}`]: "-4px"
8722
8797
  });
8723
8798
  }
8724
8799
  });
8725
8800
  }
8726
- const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__ */ R({
8801
+ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"], t3 = /* @__PURE__ */ T({
8727
8802
  __name: "RTooltip",
8728
8803
  props: {
8729
- placement: { default: p2.Top },
8804
+ placement: { default: B2.Top },
8730
8805
  text: { default: "" },
8731
8806
  dark: { type: Boolean, default: !0 },
8732
8807
  light: { type: Boolean, default: !1 },
8733
- triggers: { default: () => [Y.Hover] },
8808
+ triggers: { default: () => [M1.Hover] },
8734
8809
  autoHide: { type: Boolean, default: !0 },
8735
8810
  hideDelay: { default: 3e3 },
8736
8811
  showDelay: { default: 300 },
@@ -8744,169 +8819,154 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
8744
8819
  triggerClass: { default: "" },
8745
8820
  tooltipClass: { default: "" },
8746
8821
  persistent: { type: Boolean, default: !1 },
8747
- type: { default: Q1.Tooltip }
8822
+ type: { default: K1.Tooltip }
8748
8823
  },
8749
8824
  emits: ["show", "hide"],
8750
8825
  setup(H, { emit: V }) {
8751
- const C = H, M = V, i = E(), L = E(), A = E(), e = t5();
8826
+ const C = H, i = V, A = E(), L = E(), M = E(), e = g5();
8752
8827
  let d = null;
8753
8828
  async function m() {
8754
8829
  if (!(C.disabled || !L.value)) {
8755
8830
  if (!C.persistent) {
8756
- const k = document.querySelectorAll(
8831
+ const c = document.querySelectorAll(
8757
8832
  ".r-tooltip--active"
8758
8833
  );
8759
- k.length > 0 && k.forEach((y) => {
8760
- y.dataset.persistent === "true" || (y.style.display = "", y.classList.remove("r-tooltip--active"), y.dataset.show = "false");
8834
+ c.length > 0 && c.forEach((w) => {
8835
+ w.dataset.persistent === "true" || (w.style.display = "", w.classList.remove("r-tooltip--active"), w.dataset.show = "false");
8761
8836
  });
8762
8837
  }
8763
- L.value.classList.contains("r-tooltip--active") ? o() : (B(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", L.value.dataset.persistent = C.persistent.toString(), M("show", L.value.id), a());
8838
+ L.value.classList.contains("r-tooltip--active") ? n() : (B(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", L.value.dataset.persistent = C.persistent.toString(), i("show", L.value.id), u());
8764
8839
  }
8765
8840
  }
8766
- function o(k = null) {
8767
- C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", L.value.dataset.persistent = "false", M("hide", L.value.id));
8841
+ function n(c = null) {
8842
+ C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", L.value.dataset.persistent = "false", i("hide", L.value.id));
8768
8843
  }
8769
- function a() {
8844
+ function u() {
8770
8845
  C.autoHide && setTimeout(() => {
8771
- o();
8846
+ n();
8772
8847
  }, C.hideDelay);
8773
8848
  }
8774
- function n(k) {
8775
- C.disabled || C.triggers.includes(Y.Click) && (L.value.style.display === "block" ? o() : m());
8849
+ function o(c) {
8850
+ C.disabled || C.triggers.includes(M1.Click) && (L.value.style.display === "block" ? n() : m());
8776
8851
  }
8777
- function l() {
8778
- C.disabled || C.triggers.includes(Y.Hover) && m();
8852
+ function r() {
8853
+ C.disabled || C.triggers.includes(M1.Hover) && m();
8779
8854
  }
8780
8855
  function S() {
8781
- C.disabled || (L.value.style.display === "" && C.triggers.includes(Y.Hover) ? m() : L.value.style.display !== "" && C.triggers.includes(Y.Hover) && o());
8856
+ C.disabled || (L.value.style.display === "" && C.triggers.includes(M1.Hover) ? m() : L.value.style.display !== "" && C.triggers.includes(M1.Hover) && n());
8782
8857
  }
8783
- function v() {
8784
- C.triggers.includes(Y.Hover) && B();
8858
+ function b() {
8859
+ C.triggers.includes(M1.Hover) && B();
8785
8860
  }
8786
- function B(k) {
8787
- const { placement: y, offset: F, padding: P, disabled: U, showDelay: W, type: f } = C;
8788
- U || I5(
8789
- i,
8790
- L,
8861
+ function B() {
8862
+ const { placement: c, offset: w, padding: _, disabled: x, showDelay: U, type: $ } = C;
8863
+ x || M3(
8791
8864
  A,
8792
- y,
8793
- F,
8794
- P,
8795
- W,
8796
- f
8865
+ L,
8866
+ M,
8867
+ c,
8868
+ w,
8869
+ _,
8870
+ U,
8871
+ $
8797
8872
  );
8798
8873
  }
8799
- const T = g(() => ({
8874
+ const y = f(() => ({
8800
8875
  "r-tooltip": !0,
8801
8876
  "r-tooltip--dark": C.dark && !C.light,
8802
8877
  "r-tooltip--light": C.light
8803
8878
  }));
8804
8879
  return window.onresize = () => {
8805
8880
  C.resizable && B();
8806
- }, q1(
8881
+ }, V2(
8807
8882
  () => {
8808
- C.disabled || (C.shown && C.triggers.includes(Y.Manual) ? m() : !C.shown && C.triggers.includes(Y.Manual) && o());
8883
+ C.disabled || (C.shown && C.triggers.includes(M1.Manual) ? m() : !C.shown && C.triggers.includes(M1.Manual) && n());
8809
8884
  },
8810
8885
  { flush: "post" }
8811
8886
  // this is important to avoid infinite loop & for fire on mounted
8812
- ), q1(() => {
8813
- d && (d(), d = null), C.outsideClick && i.value && (d = d5(
8814
- i,
8815
- (k) => {
8816
- L.value && L.value.classList.contains("r-tooltip--active") && o(k);
8887
+ ), V2(() => {
8888
+ d && (d(), d = null), C.outsideClick && A.value && (d = h5(
8889
+ A,
8890
+ (c) => {
8891
+ L.value && L.value.classList.contains("r-tooltip--active") && n(c);
8817
8892
  },
8818
8893
  { ignore: [L] }
8819
- ));
8820
- }), i2(() => {
8821
- var k, y;
8822
- C.resizable && ((y = (k = i.value) == null ? void 0 : k.parentElement) == null || y.parentElement.addEventListener(
8894
+ ) ?? null);
8895
+ }), o2(() => {
8896
+ var c, w;
8897
+ C.resizable && ((w = (c = A.value) == null ? void 0 : c.parentElement) == null || w.parentElement.addEventListener(
8823
8898
  "scroll",
8824
- B()
8825
- )), C.type === Q1.Dropdown && document.addEventListener("scroll", () => {
8899
+ () => B()
8900
+ )), C.type === K1.Dropdown && document.addEventListener("scroll", () => {
8826
8901
  B();
8827
8902
  });
8828
- }), A2(() => {
8903
+ }), q1(() => {
8829
8904
  d && (d(), d = null);
8830
- }), (k, y) => (t(), r(H1, null, [
8831
- u("div", {
8905
+ }), (c, w) => (l(), a(A1, null, [
8906
+ Z("div", {
8907
+ id: c.id,
8832
8908
  ref_key: "trigger",
8833
- ref: i,
8909
+ ref: A,
8834
8910
  "aria-disabled": C.disabled,
8835
- class: p(["r-tooltip-trigger", k.triggerClass]),
8836
- onClick: n,
8837
- onMouseenter: l,
8911
+ class: O(["r-tooltip-trigger", c.triggerClass]),
8912
+ onClick: o,
8913
+ onMouseenter: r,
8838
8914
  onMouseleave: S,
8839
- onMousemove: v
8915
+ onMousemove: b
8840
8916
  }, [
8841
- h(k.$slots, "default", {
8917
+ k(c.$slots, "default", {
8918
+ id: `${c.id}-slot`,
8842
8919
  activators: {
8843
- click: n,
8844
- mouseenter: l,
8920
+ click: o,
8921
+ mouseenter: r,
8845
8922
  mouseleave: S,
8846
- mousemove: v
8923
+ mousemove: b
8847
8924
  },
8848
- tooltipId: J(e),
8925
+ tooltipId: z(e),
8849
8926
  updatePosition: B
8850
8927
  }, () => [
8851
- u("div", {
8928
+ Z("div", {
8852
8929
  innerHTML: C.triggerContent
8853
- }, null, 8, G5)
8930
+ }, null, 8, A3)
8854
8931
  ])
8855
- ], 42, Q5),
8856
- (t(), _(g2, { to: "body" }, [
8857
- u("div", {
8858
- id: J(e),
8932
+ ], 42, i3),
8933
+ (l(), D(y2, { to: "body" }, [
8934
+ Z("div", {
8935
+ id: `${c.id}-tooltip`,
8859
8936
  ref_key: "tooltip",
8860
8937
  ref: L,
8861
- class: p([T.value, k.tooltipClass]),
8938
+ class: O([y.value, c.tooltipClass]),
8862
8939
  "data-show": "false",
8863
8940
  role: "tooltip"
8864
8941
  }, [
8865
- h(k.$slots, "content", {
8866
- hide: o,
8942
+ k(c.$slots, "content", {
8943
+ id: `${c.id}-content-slot`,
8944
+ hide: n,
8867
8945
  updatePosition: B
8868
8946
  }, () => [
8869
- C.text ? (t(), r("div", {
8947
+ C.text ? (l(), a("div", {
8870
8948
  key: 0,
8871
- class: p(["r-tooltip__content", {
8949
+ class: O(["r-tooltip__content", {
8872
8950
  "r-tooltip__content--dark": C.dark,
8873
8951
  "r-tooltip__content--light": C.light
8874
8952
  }])
8875
- }, b(C.text), 3)) : O("", !0),
8876
- C.text ? (t(), r("div", {
8953
+ }, v(C.text), 3)) : g("", !0),
8954
+ C.text ? (l(), a("div", {
8877
8955
  key: 1,
8878
- id: "arrow",
8956
+ id: `${c.id}-arrow`,
8879
8957
  ref_key: "arrowElement",
8880
- ref: A,
8881
- class: p(["r-tooltip__arrow", {
8958
+ ref: M,
8959
+ class: O(["r-tooltip__arrow", {
8882
8960
  "r-tooltip__arrow--dark": C.dark,
8883
8961
  "r-tooltip__arrow--light": C.light
8884
8962
  }])
8885
- }, null, 2)) : O("", !0)
8963
+ }, null, 10, d3)) : g("", !0)
8886
8964
  ])
8887
- ], 10, $5)
8965
+ ], 10, e3)
8888
8966
  ]))
8889
8967
  ], 64));
8890
8968
  }
8891
- }), z5 = ["id", "onClick"], K5 = { class: "r-dropdown__selections" }, q5 = { class: "flex flex-wrap items-center gap-2 text-sm" }, j5 = {
8892
- key: 0,
8893
- class: "r-dropdown__remaining-count-text"
8894
- }, X5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], Y5 = ["id", "data-has-value", "onClick"], J5 = ["onClick"], C3 = { class: "flex items-center" }, H3 = { class: "r-dropdown-options__option__label" }, V3 = {
8895
- key: 1,
8896
- class: "r-dropdown-options__divider"
8897
- }, L3 = ["aria-disabled", "onClick"], M3 = { class: "flex items-center" }, i3 = {
8898
- key: 2,
8899
- class: "r-dropdown-options__no-option"
8900
- }, A3 = {
8901
- key: 0,
8902
- class: "r-dropdown-details"
8903
- }, e3 = {
8904
- key: 0,
8905
- class: "r-dropdown-error"
8906
- }, d3 = {
8907
- key: 1,
8908
- class: "r-dropdown-hint"
8909
- }, t3 = /* @__PURE__ */ R({
8969
+ }), m3 = ["id"], l3 = ["id", "onClick"], o3 = ["id"], n3 = ["id"], r3 = ["id"], a3 = ["id"], Z3 = ["id"], u3 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], S3 = ["id", "data-has-value", "onClick"], s3 = ["id"], c3 = ["id"], p3 = ["onClick"], O3 = { class: "flex items-center" }, f3 = { class: "r-dropdown-options__option__label" }, h3 = ["id"], g3 = ["id", "aria-disabled", "onClick"], k3 = ["id"], B3 = ["id"], b3 = ["id"], v3 = ["id"], w3 = ["id"], y3 = ["id"], P3 = /* @__PURE__ */ T({
8910
8970
  __name: "RDropdown",
8911
8971
  props: {
8912
8972
  options: { default: () => [] },
@@ -8939,136 +8999,168 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
8939
8999
  },
8940
9000
  emits: ["update:modelValue", "clear", "removeOption"],
8941
9001
  setup(H, { emit: V }) {
8942
- const C = H, M = V, i = E({}), L = E([]), A = E(!1), e = E("");
8943
- function d(Z) {
8944
- if (!Z || typeof Z == "object" || typeof Z == "function" || typeof Z == "symbol" || typeof Z > "u" || Array.isArray(Z))
9002
+ const C = H, i = V, A = E({}), L = E([]), M = E(!1), e = E(""), d = E(null);
9003
+ function m(t) {
9004
+ const s = window.getComputedStyle(t);
9005
+ return /(auto|scroll|overlay)/.test(s.overflowY);
9006
+ }
9007
+ function n(t) {
9008
+ let s = t;
9009
+ for (; s && s !== document.body; ) {
9010
+ if (m(s))
9011
+ return s;
9012
+ s = s.parentElement;
9013
+ }
9014
+ return document.body;
9015
+ }
9016
+ function u(t) {
9017
+ const s = Number(t.dataset.rScrollLockCount || "0");
9018
+ s === 0 && (t.dataset.rPreviousOverflowY = t.style.overflowY, t.style.overflowY = "hidden"), t.dataset.rScrollLockCount = String(s + 1);
9019
+ }
9020
+ function o(t) {
9021
+ const s = Number(t.dataset.rScrollLockCount || "0");
9022
+ if (s <= 1) {
9023
+ const P = t.dataset.rPreviousOverflowY ?? "";
9024
+ t.style.overflowY = P, delete t.dataset.rScrollLockCount, delete t.dataset.rPreviousOverflowY;
9025
+ } else
9026
+ t.dataset.rScrollLockCount = String(s - 1);
9027
+ }
9028
+ function r(t) {
9029
+ if (!t || typeof t == "object" || typeof t == "function" || typeof t == "symbol" || typeof t > "u" || Array.isArray(t))
8945
9030
  return !0;
8946
- const [s] = Object == null ? void 0 : Object.keys(Z);
9031
+ const [s] = Object.keys(t);
8947
9032
  return ["label", "value"].includes(s);
8948
9033
  }
8949
- const m = g(() => {
8950
- const Z = C.options;
8951
- return d(Z[0]) ? Z : Z.map((s) => ({
9034
+ const S = f(() => {
9035
+ const t = C.options;
9036
+ return r(t[0]) ? t : t.map((s) => ({
8952
9037
  value: s,
8953
9038
  label: String(s)
8954
9039
  }));
8955
- }), o = g(() => {
8956
- const Z = C.modelValue;
8957
- return d(Z) ? Z : {
8958
- value: Z,
8959
- label: String(Z)
9040
+ }), b = f(() => {
9041
+ const t = C.modelValue;
9042
+ return r(t) ? t : {
9043
+ value: t,
9044
+ label: String(t)
8960
9045
  };
8961
- }), a = E(), n = E(), l = E();
8962
- function S(Z) {
8963
- var x, c, Q, p1;
9046
+ }), B = E(), y = E(), c = E();
9047
+ function w(t) {
9048
+ var Y, p, Q, k1;
8964
9049
  if (C.disabled)
8965
9050
  return;
8966
- const s = document.getElementById(Z);
8967
- document.querySelectorAll(".r-dropdown--active").forEach(($) => {
8968
- var O1;
8969
- $.id !== ((O1 = a.value) == null ? void 0 : O1.id) && $.classList.contains("r-dropdown--active") && ($.childNodes.forEach((X) => {
8970
- X != null && X.classList && (Object == null || Object.values(X == null ? void 0 : X.classList).filter((D1) => D1.includes("--active")).forEach((D1) => {
8971
- X == null || X.classList.remove(D1);
8972
- }));
8973
- }), $.classList.remove("r-dropdown--active"));
8974
- }), s != null && s.classList.contains("r-dropdown--active") ? (s.classList.remove("r-dropdown--active"), A.value = !1, (x = a.value) == null || x.blur(), (c = n.value) == null || c.blur()) : (s == null || s.classList.add("r-dropdown--active"), A.value = !0, (Q = a.value) == null || Q.focus(), (p1 = n.value) == null || p1.focus(), s == null || s.childNodes.forEach(($) => {
8975
- $ != null && $.classList && (Object == null || Object.values($ == null ? void 0 : $.classList).forEach((O1) => {
8976
- $ == null || $.classList.add(`${O1}--active`);
9051
+ const s = document.getElementById(t);
9052
+ document.querySelectorAll(".r-dropdown--active").forEach((G) => {
9053
+ var B1;
9054
+ if (G.id !== ((B1 = B.value) == null ? void 0 : B1.id) && G.classList.contains("r-dropdown--active")) {
9055
+ const H2 = n(G);
9056
+ H2 && o(H2), G.childNodes.forEach((L1) => {
9057
+ L1 != null && L1.classList && (Object == null || Object.values(L1 == null ? void 0 : L1.classList).filter((N1) => N1.includes("--active")).forEach((N1) => {
9058
+ L1 == null || L1.classList.remove(N1);
9059
+ }));
9060
+ }), G.classList.remove("r-dropdown--active");
9061
+ }
9062
+ }), s != null && s.classList.contains("r-dropdown--active") ? (s.classList.remove("r-dropdown--active"), M.value = !1, (Y = B.value) == null || Y.blur(), (p = y.value) == null || p.blur(), d.value && o(d.value)) : (s == null || s.classList.add("r-dropdown--active"), M.value = !0, (Q = B.value) == null || Q.focus(), (k1 = y.value) == null || k1.focus(), d.value || (d.value = n(c.value || B.value)), d.value && u(d.value), s == null || s.childNodes.forEach((G) => {
9063
+ G != null && G.classList && (Object == null || Object.values(G == null ? void 0 : G.classList).forEach((B1) => {
9064
+ G == null || G.classList.add(`${B1}--active`);
8977
9065
  }));
8978
9066
  }));
8979
9067
  }
8980
- function v(Z) {
8981
- const s = document.getElementById(Z);
8982
- s == null || s.classList.remove("r-dropdown--active"), A.value = !1;
9068
+ function _(t) {
9069
+ const s = document.getElementById(t);
9070
+ s == null || s.classList.remove("r-dropdown--active"), M.value = !1, d.value && o(d.value);
8983
9071
  }
8984
- function B(Z, s, w, x) {
8985
- var c;
9072
+ function x(t, s, P, Y) {
9073
+ var p;
8986
9074
  if (!(C.disabled || s.disabled)) {
8987
- if (x(), s.value === "select-all") {
8988
- i1();
9075
+ if (Y(), s.value === "select-all") {
9076
+ j();
8989
9077
  return;
8990
9078
  }
8991
9079
  if (C.multiple) {
8992
9080
  if (!L.value.find((Q) => Q.value === s.value))
8993
9081
  L.value.push(s);
8994
9082
  else {
8995
- const Q = L.value.findIndex((p1) => p1.value === s.value);
8996
- L.value.splice(Q, 1), M("removeOption", s);
9083
+ const Q = L.value.findIndex((k1) => k1.value === s.value);
9084
+ L.value.splice(Q, 1), i("removeOption", s);
8997
9085
  }
8998
- e.value = "", C.searchable && ((c = n.value) == null || c.focus());
9086
+ e.value = "", C.searchable && ((p = y.value) == null || p.focus());
8999
9087
  return;
9000
9088
  }
9001
- T(Z, s), C.closeOnSelect && w();
9089
+ U(t, s), C.closeOnSelect && P();
9002
9090
  }
9003
9091
  }
9004
- function T(Z, s) {
9005
- if (i.value.value === s.value && !C.disableDeselect) {
9006
- i.value = {}, e.value = "", M("update:modelValue", ""), M("removeOption", s);
9092
+ function U(t, s) {
9093
+ if (A.value.value === s.value && !C.disableDeselect) {
9094
+ A.value = {}, e.value = "", i("update:modelValue", ""), i("removeOption", s);
9007
9095
  return;
9008
9096
  }
9009
- e.value = s.label, i.value = s, M("update:modelValue", s);
9097
+ e.value = s.label, A.value = s, i("update:modelValue", s);
9010
9098
  }
9011
- function k(Z, s, w) {
9012
- if (Z instanceof KeyboardEvent && Z.key !== "Backspace" || e.value !== "")
9099
+ function $(t, s, P) {
9100
+ if (t instanceof KeyboardEvent && t.key !== "Backspace" || e.value !== "")
9013
9101
  return;
9014
- Z.stopPropagation(), w();
9015
- const x = L.value.findIndex((c) => c.value === s.value);
9016
- L.value.splice(x, 1), M("removeOption", s), M("update:modelValue", L.value);
9102
+ t.stopPropagation(), P();
9103
+ const Y = L.value.findIndex((p) => p.value === s.value);
9104
+ L.value.splice(Y, 1), i("removeOption", s), i("update:modelValue", L.value);
9017
9105
  }
9018
- function y(Z, s) {
9019
- var c;
9106
+ function C1(t, s) {
9107
+ var p;
9020
9108
  if (!C.multiple)
9021
9109
  return;
9022
- Z.stopPropagation(), s();
9023
- const w = e.value;
9024
- if (w === "")
9110
+ t.stopPropagation(), s();
9111
+ const P = e.value;
9112
+ if (P === "")
9025
9113
  return;
9026
- m.value.find((Q) => Q.label === w) || (L.value.push({ value: w, label: w }), e.value = "", (c = n.value) == null || c.focus());
9114
+ S.value.find((Q) => Q.label === P) || (L.value.push({ value: P, label: P }), e.value = "", (p = y.value) == null || p.focus());
9027
9115
  }
9028
- function F(Z) {
9116
+ function h(t) {
9029
9117
  var s;
9030
- return !Z || (Z == null ? void 0 : Z.value) === void 0 || (Z == null ? void 0 : Z.value) === null ? !1 : C.multiple ? L.value.find((w) => (w == null ? void 0 : w.value) === (Z == null ? void 0 : Z.value)) : ((s = i.value) == null ? void 0 : s.value) === (Z == null ? void 0 : Z.value);
9118
+ return !t || (t == null ? void 0 : t.value) === void 0 || (t == null ? void 0 : t.value) === null ? !1 : C.multiple ? L.value.find((P) => (P == null ? void 0 : P.value) === (t == null ? void 0 : t.value)) : ((s = A.value) == null ? void 0 : s.value) === (t == null ? void 0 : t.value);
9031
9119
  }
9032
- const P = g(() => !C.searchable || i.value.label === e.value ? m.value : m.value.filter((s) => s.label.toLowerCase().includes(e.value.toLowerCase()))), U = g(() => !C.searchable);
9033
- function W() {
9034
- o.value ? C.multiple ? L.value = o.value : (i.value = o.value, e.value = o.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
9120
+ const F = f(() => !C.searchable || A.value.label === e.value ? S.value : S.value.filter((s) => s.label.toLowerCase().includes(e.value.toLowerCase()))), m1 = f(() => !C.searchable);
9121
+ function N() {
9122
+ b.value ? C.multiple ? L.value = b.value : (A.value = b.value, e.value = b.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
9035
9123
  }
9036
- function f(Z) {
9037
- C.searchable && Z(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""), M("removeOption", i.value));
9124
+ function l1(t) {
9125
+ C.searchable && t(), !C.multiple && e.value === "" && (A.value = {}, i("update:modelValue", ""), i("removeOption", A.value));
9038
9126
  }
9039
- function N(Z, s) {
9040
- if (Z.stopPropagation(), s(), C.multiple) {
9041
- L.value.splice(0, L.value.length), M("clear", L.value);
9127
+ function I(t, s) {
9128
+ if (t.stopPropagation(), s(), C.multiple) {
9129
+ L.value.splice(0, L.value.length), i("clear", L.value);
9042
9130
  return;
9043
9131
  }
9044
- i.value = {}, e.value = "", M("update:modelValue", ""), M("clear", i.value);
9132
+ A.value = {}, e.value = "", i("update:modelValue", ""), i("clear", A.value);
9045
9133
  }
9046
- function i1() {
9047
- if (L.value.length === P.value.length) {
9134
+ function j() {
9135
+ if (L.value.length === F.value.length) {
9048
9136
  L.value.splice(0, L.value.length);
9049
9137
  return;
9050
9138
  }
9051
- L.value = P.value;
9139
+ L.value = F.value;
9052
9140
  }
9053
- const A1 = g(() => !C.multiple || !Array.isArray(C.modelValue) ? [] : C.modelValue.slice(0, C.maxVisibleChips)), I = g(() => !C.multiple || !Array.isArray(C.modelValue) ? 0 : Math.max(0, C.modelValue.length - C.maxVisibleChips));
9054
- return i2(() => {
9055
- W(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
9056
- }), G(
9141
+ const X = f(() => !C.multiple || !Array.isArray(C.modelValue) ? [] : C.modelValue.slice(0, C.maxVisibleChips)), K = f(() => !C.multiple || !Array.isArray(C.modelValue) ? 0 : Math.max(0, C.modelValue.length - C.maxVisibleChips));
9142
+ return o2(() => {
9143
+ N(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
9144
+ }), W(
9057
9145
  L,
9058
- (Z) => {
9059
- M("update:modelValue", Z);
9146
+ (t) => {
9147
+ i("update:modelValue", t);
9060
9148
  },
9061
9149
  {
9062
9150
  deep: !0
9063
9151
  }
9064
- ), G(() => o.value, (Z) => {
9065
- W();
9066
- }), (Z, s) => (t(), r("div", {
9152
+ ), W(() => b.value, (t) => {
9153
+ N();
9154
+ }), q1(() => {
9155
+ M.value && d.value && o(d.value);
9156
+ }), (t, s) => (l(), a("div", {
9157
+ id: t.id,
9067
9158
  ref_key: "wrapper",
9068
- ref: l,
9159
+ ref: c,
9069
9160
  class: "r-dropdown-wrapper"
9070
9161
  }, [
9071
- q(U5, {
9162
+ H1(t3, {
9163
+ id: `${t.id}-tooltip`,
9072
9164
  "auto-hide": !1,
9073
9165
  disabled: C.disabled,
9074
9166
  offset: 0,
@@ -9078,16 +9170,16 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
9078
9170
  "trigger-class": "w-full",
9079
9171
  triggers: ["click"],
9080
9172
  type: "dropdown",
9081
- onHide: s[1] || (s[1] = (w) => {
9082
- v(w);
9173
+ onHide: s[1] || (s[1] = (P) => {
9174
+ _(P);
9083
9175
  })
9084
9176
  }, {
9085
- default: B1(({ updatePosition: w, tooltipId: x }) => [
9086
- u("div", {
9087
- id: x,
9177
+ default: P1(({ updatePosition: P, tooltipId: Y }) => [
9178
+ Z("div", {
9179
+ id: `${t.id}-dropdown`,
9088
9180
  ref_key: "dropdown",
9089
- ref: a,
9090
- class: p(["r-dropdown", {
9181
+ ref: B,
9182
+ class: O(["r-dropdown", {
9091
9183
  "r-dropdown--disabled": C.disabled,
9092
9184
  "r-dropdown--loading": C.loading,
9093
9185
  [C.dropdownClass]: C.dropdownClass,
@@ -9095,199 +9187,251 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
9095
9187
  group: e.value !== "" || L.value.length
9096
9188
  }]),
9097
9189
  role: "select",
9098
- onClick: (c) => S(x)
9190
+ onClick: (p) => w(Y)
9099
9191
  }, [
9100
- C.prependIcon || Z.$slots.prepend ? (t(), r("div", {
9192
+ C.prependIcon || t.$slots.prepend ? (l(), a("div", {
9101
9193
  key: 0,
9102
- class: p(["r-dropdown__prepend-icon", {
9103
- "r-dropdown__prepend-icon--active": A.value,
9194
+ id: `${t.id}-prepend-icon`,
9195
+ class: O(["r-dropdown__prepend-icon", {
9196
+ "r-dropdown__prepend-icon--active": M.value,
9104
9197
  "r-dropdown__prepend-icon--error": C.errorMsg
9105
9198
  }])
9106
9199
  }, [
9107
- h(Z.$slots, "prepend", {
9108
- active: A.value,
9200
+ k(t.$slots, "prepend", {
9201
+ id: `${t.id}-prepend-icon`,
9202
+ active: M.value,
9109
9203
  disabled: C.disabled,
9110
9204
  error: C.errorMsg.length,
9111
9205
  loading: C.loading
9112
9206
  }, () => [
9113
- C.prependIcon ? (t(), _(D, {
9207
+ C.prependIcon ? (l(), D(R, {
9114
9208
  key: 0,
9209
+ id: `${t.id}-prepend-icon`,
9115
9210
  name: C.prependIcon
9116
- }, null, 8, ["name"])) : O("", !0)
9211
+ }, null, 8, ["id", "name"])) : g("", !0)
9117
9212
  ])
9118
- ], 2)) : O("", !0),
9119
- u("div", K5, [
9120
- h(Z.$slots, "selection", {
9121
- removeOption: k,
9213
+ ], 10, o3)) : g("", !0),
9214
+ Z("div", {
9215
+ id: `${t.id}-selections`,
9216
+ class: "r-dropdown__selections"
9217
+ }, [
9218
+ k(t.$slots, "selection", {
9219
+ id: `${t.id}-selection`,
9220
+ removeOption: $,
9122
9221
  selected: L.value
9123
9222
  }, () => [
9124
- u("div", q5, [
9125
- C.multiple && C.chips ? (t(), r(H1, { key: 0 }, [
9126
- (t(!0), r(H1, null, d1(A1.value, (c) => (t(), _(V5, {
9127
- key: c.value,
9223
+ Z("div", {
9224
+ id: `${t.id}-selections-content`,
9225
+ class: "flex flex-wrap items-center gap-2 text-sm"
9226
+ }, [
9227
+ C.multiple && C.chips ? (l(), a(A1, { key: 0 }, [
9228
+ (l(!0), a(A1, null, n1(X.value, (p) => (l(), D(S5, {
9229
+ key: p.value,
9230
+ id: `${t.id}-chip-${p.value}`,
9128
9231
  clearable: "",
9129
9232
  ghost: "",
9130
- label: c.label,
9233
+ label: p.label,
9131
9234
  variant: "primary",
9132
- "onClick:close": (Q) => k(Q, c, w)
9133
- }, null, 8, ["label", "onClick:close"]))), 128)),
9134
- h(Z.$slots, "remaining-count", { count: I.value }, () => [
9135
- I.value > 0 ? (t(), r("span", j5, " +" + b(I.value), 1)) : O("", !0)
9235
+ "onClick:close": (Q) => $(Q, p, P)
9236
+ }, null, 8, ["id", "label", "onClick:close"]))), 128)),
9237
+ k(t.$slots, "remaining-count", {
9238
+ id: `${t.id}-remaining-count`,
9239
+ count: K.value
9240
+ }, () => [
9241
+ K.value > 0 ? (l(), a("span", {
9242
+ key: 0,
9243
+ id: `${t.id}-remaining-count-text`,
9244
+ class: "r-dropdown__remaining-count-text"
9245
+ }, " +" + v(K.value), 9, a3)) : g("", !0)
9136
9246
  ])
9137
- ], 64)) : C.multiple ? (t(!0), r(H1, { key: 1 }, d1(L.value, (c, Q) => (t(), r("span", {
9138
- key: c.value
9139
- }, b(c.label) + b(Q < L.value.length - 1 ? ", " : ""), 1))), 128)) : O("", !0)
9140
- ])
9247
+ ], 64)) : C.multiple ? (l(!0), a(A1, { key: 1 }, n1(L.value, (p, Q) => (l(), a("span", {
9248
+ id: `${t.id}-selected-option-${Q}`,
9249
+ key: p.value
9250
+ }, v(p.label) + v(Q < L.value.length - 1 ? ", " : ""), 9, Z3))), 128)) : g("", !0)
9251
+ ], 8, r3)
9141
9252
  ]),
9142
- e2(u("input", {
9143
- id: C.id,
9253
+ n2(Z("input", {
9254
+ id: `${t.id}-input`,
9144
9255
  ref_key: "input",
9145
- ref: n,
9146
- "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
9256
+ ref: y,
9257
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => e.value = p),
9147
9258
  autocomplete: C.autocomplete,
9148
- class: p(["r-dropdown__input", {
9259
+ class: O(["r-dropdown__input", {
9149
9260
  "r-dropdown__input--loading": C.loading
9150
9261
  }]),
9151
9262
  disabled: C.disabled,
9152
9263
  placeholder: C.placeholder,
9153
- readonly: U.value,
9264
+ readonly: m1.value,
9154
9265
  role: "presentation",
9155
9266
  type: "text",
9156
- onInput: t1((c) => f(w), ["prevent"]),
9267
+ onInput: r1((p) => l1(P), ["prevent"]),
9157
9268
  onKeydown: [
9158
- j1((c) => k(c, L.value[L.value.length - 1], w), ["backspace"]),
9159
- j1((c) => y(c, w), ["enter"])
9269
+ L2((p) => $(p, L.value[L.value.length - 1], P), ["backspace"]),
9270
+ L2((p) => C1(p, P), ["enter"])
9160
9271
  ]
9161
- }, null, 42, X5), [
9162
- [k2, e.value]
9272
+ }, null, 42, u3), [
9273
+ [P2, e.value]
9163
9274
  ])
9164
- ]),
9165
- C.clearable ? (t(), r("div", {
9275
+ ], 8, n3),
9276
+ C.clearable ? (l(), a("div", {
9166
9277
  key: 1,
9167
9278
  id: C.id ? `${C.id}-clearable-icon` : "clearable-icon",
9168
9279
  class: "r-dropdown__clearable",
9169
- "data-has-value": (e.value !== "" || L.value.length) && A.value,
9170
- onClick: (c) => N(c, w)
9280
+ "data-has-value": (e.value !== "" || L.value.length) && M.value,
9281
+ onClick: (p) => I(p, P)
9171
9282
  }, [
9172
- h(Z.$slots, "clearable", {}, () => [
9173
- q(D, {
9283
+ k(t.$slots, "clearable", {}, () => [
9284
+ H1(R, {
9285
+ id: `${t.id}-clearable-icon`,
9174
9286
  name: "mdiCloseCircle",
9175
9287
  size: "18"
9176
- })
9288
+ }, null, 8, ["id"])
9177
9289
  ])
9178
- ], 8, Y5)) : O("", !0),
9179
- C.appendIcon || Z.$slots.append ? (t(), r("div", {
9290
+ ], 8, S3)) : g("", !0),
9291
+ C.appendIcon || t.$slots.append ? (l(), a("div", {
9180
9292
  key: 2,
9181
- class: p(["r-dropdown__append-icon", {
9182
- "r-dropdown__append-icon--active": A.value,
9293
+ id: `${t.id}-append-icon`,
9294
+ class: O(["r-dropdown__append-icon", {
9295
+ "r-dropdown__append-icon--active": M.value,
9183
9296
  "r-dropdown__append-icon--error": C.errorMsg
9184
9297
  }])
9185
9298
  }, [
9186
- h(Z.$slots, "append", {
9187
- active: A.value,
9299
+ k(t.$slots, "append", {
9300
+ id: `${t.id}-append-icon`,
9301
+ active: M.value,
9188
9302
  disabled: C.disabled,
9189
9303
  error: C.errorMsg.length,
9190
9304
  loading: C.loading
9191
9305
  }, () => [
9192
- C.appendIcon ? (t(), _(D, {
9306
+ C.appendIcon ? (l(), D(R, {
9193
9307
  key: 0,
9194
9308
  name: C.appendIcon
9195
- }, null, 8, ["name"])) : O("", !0)
9309
+ }, null, 8, ["name"])) : g("", !0)
9196
9310
  ])
9197
- ], 2)) : O("", !0)
9198
- ], 10, z5)
9311
+ ], 10, s3)) : g("", !0)
9312
+ ], 10, l3)
9199
9313
  ]),
9200
- content: B1(({ hide: w, updatePosition: x }) => [
9201
- u("ul", {
9202
- class: p(["r-dropdown-options", {
9203
- "r-dropdown-options--active": A.value,
9314
+ content: P1(({ hide: P, updatePosition: Y }) => [
9315
+ Z("ul", {
9316
+ id: `${t.id}-options`,
9317
+ class: O(["r-dropdown-options", {
9318
+ "r-dropdown-options--active": M.value,
9204
9319
  [C.optionsClass]: C.optionsClass
9205
9320
  }])
9206
9321
  }, [
9207
- C.showSelectAll && C.multiple && P.value.length > 0 ? (t(), r("li", {
9322
+ C.showSelectAll && C.multiple && F.value.length > 0 ? (l(), a("li", {
9208
9323
  key: 0,
9209
- class: p(["r-dropdown-options__option", {
9210
- "r-dropdown-options__option--active": L.value.length === P.value.length,
9324
+ class: O(["r-dropdown-options__option", {
9325
+ "r-dropdown-options__option--active": L.value.length === F.value.length,
9211
9326
  "r-dropdown-options__option--disabled": !1
9212
9327
  }]),
9213
- onClick: t1((c) => B(c, { label: C.selectAllText, value: "select-all" }, w, x), ["prevent"])
9328
+ onClick: r1((p) => x(p, { label: C.selectAllText, value: "select-all" }, P, Y), ["prevent"])
9214
9329
  }, [
9215
- u("div", C3, [
9216
- u("p", H3, b(C.selectAllText), 1)
9330
+ Z("div", O3, [
9331
+ Z("p", f3, v(C.selectAllText), 1)
9217
9332
  ]),
9218
- L.value.length === P.value.length && !C.hideOptionCheckIcon ? (t(), _(D, {
9333
+ L.value.length === F.value.length && !C.hideOptionCheckIcon ? (l(), D(R, {
9219
9334
  key: 0,
9220
- class: p(["r-dropdown-options__option__append-icon", {
9221
- "r-dropdown-options__option__append-icon--active": L.value.length === P.value.length
9335
+ class: O(["r-dropdown-options__option__append-icon", {
9336
+ "r-dropdown-options__option__append-icon--active": L.value.length === F.value.length
9222
9337
  }]),
9223
9338
  name: "mdiCheck"
9224
- }, null, 8, ["class"])) : O("", !0)
9225
- ], 10, J5)) : O("", !0),
9226
- C.showSelectAll && P.value.length > 0 ? (t(), r("hr", V3)) : O("", !0),
9227
- (t(!0), r(H1, null, d1(P.value, (c) => (t(), r("li", {
9228
- key: c.value,
9229
- "aria-disabled": c.disabled,
9230
- class: p(["r-dropdown-options__option", {
9231
- "r-dropdown-options__option--active": F(c),
9232
- "r-dropdown-options__option--disabled": c.disabled,
9233
- "r-dropdown-options__option--deselect": F(c) && C.disableDeselect
9339
+ }, null, 8, ["class"])) : g("", !0)
9340
+ ], 10, p3)) : g("", !0),
9341
+ C.showSelectAll && F.value.length > 0 ? (l(), a("hr", {
9342
+ key: 1,
9343
+ id: `${t.id}-divider`,
9344
+ class: "r-dropdown-options__divider"
9345
+ }, null, 8, h3)) : g("", !0),
9346
+ (l(!0), a(A1, null, n1(F.value, (p) => (l(), a("li", {
9347
+ id: `${t.id}-option-${p.value}`,
9348
+ key: p.value,
9349
+ "aria-disabled": p.disabled,
9350
+ class: O(["r-dropdown-options__option", {
9351
+ "r-dropdown-options__option--active": h(p),
9352
+ "r-dropdown-options__option--disabled": p.disabled,
9353
+ "r-dropdown-options__option--deselect": h(p) && C.disableDeselect
9234
9354
  }]),
9235
- onClick: t1((Q) => B(Q, c, w, x), ["prevent"])
9355
+ onClick: r1((Q) => x(Q, p, P, Y), ["prevent"])
9236
9356
  }, [
9237
- h(Z.$slots, "option", {
9238
- disabled: c.disabled,
9239
- isSelected: F(c),
9240
- item: c
9357
+ k(t.$slots, "option", {
9358
+ id: `${t.id}-option-${p.value}`,
9359
+ disabled: p.disabled,
9360
+ isSelected: h(p),
9361
+ item: p
9241
9362
  }, () => [
9242
- u("div", M3, [
9243
- h(Z.$slots, "option-prepend", {
9244
- disabled: c.disabled,
9245
- isSelected: F(c)
9363
+ Z("div", {
9364
+ id: `${t.id}-option-content-${p.value}`,
9365
+ class: "flex items-center"
9366
+ }, [
9367
+ k(t.$slots, "option-prepend", {
9368
+ id: `${t.id}-option-prepend-${p.value}`,
9369
+ disabled: p.disabled,
9370
+ isSelected: h(p)
9246
9371
  }, () => [
9247
- c.prependIcon ? (t(), _(D, {
9372
+ p.prependIcon ? (l(), D(R, {
9248
9373
  key: 0,
9249
- class: p(["r-dropdown-options__option__prepend-icon", {
9250
- "r-dropdown-options__option__prepend-icon--active": F(c)
9374
+ id: `${t.id}-option-prepend-icon-${p.value}`,
9375
+ class: O(["r-dropdown-options__option__prepend-icon", {
9376
+ "r-dropdown-options__option__prepend-icon--active": h(p)
9251
9377
  }]),
9252
- name: c.prependIcon
9253
- }, null, 8, ["class", "name"])) : O("", !0)
9378
+ name: p.prependIcon
9379
+ }, null, 8, ["id", "class", "name"])) : g("", !0)
9254
9380
  ]),
9255
- u("p", {
9256
- class: p(["r-dropdown-options__option__label", {
9257
- "r-dropdown-options__option__label--active": F(c)
9381
+ Z("p", {
9382
+ id: `${t.id}-option-label-${p.value}`,
9383
+ class: O(["r-dropdown-options__option__label", {
9384
+ "r-dropdown-options__option__label--active": h(p)
9258
9385
  }])
9259
- }, b(c.label), 3)
9260
- ]),
9261
- h(Z.$slots, "option-append", {
9262
- disabled: c.disabled,
9263
- isSelected: F(c)
9386
+ }, v(p.label), 11, B3)
9387
+ ], 8, k3),
9388
+ k(t.$slots, "option-append", {
9389
+ id: `${t.id}-option-append-${p.value}`,
9390
+ disabled: p.disabled,
9391
+ isSelected: h(p)
9264
9392
  }, () => [
9265
- F(c) && !C.hideOptionCheckIcon ? (t(), _(D, {
9393
+ h(p) && !C.hideOptionCheckIcon ? (l(), D(R, {
9266
9394
  key: 0,
9267
- class: p(["r-dropdown-options__option__append-icon", {
9268
- "r-dropdown-options__option__append-icon--active": F(c)
9395
+ class: O(["r-dropdown-options__option__append-icon", {
9396
+ "r-dropdown-options__option__append-icon--active": h(p)
9269
9397
  }]),
9270
9398
  name: "mdiCheck"
9271
- }, null, 8, ["class"])) : O("", !0)
9399
+ }, null, 8, ["class"])) : g("", !0)
9272
9400
  ])
9273
9401
  ])
9274
- ], 10, L3))), 128)),
9275
- P.value.length === 0 ? (t(), r("li", i3, [
9276
- h(Z.$slots, "not-options", {}, () => [
9277
- S1(b(C.noOptionsText), 1)
9402
+ ], 10, g3))), 128)),
9403
+ F.value.length === 0 ? (l(), a("li", {
9404
+ key: 2,
9405
+ id: `${t.id}-no-option`,
9406
+ class: "r-dropdown-options__no-option"
9407
+ }, [
9408
+ k(t.$slots, "not-options", {}, () => [
9409
+ f1(v(C.noOptionsText), 1)
9278
9410
  ])
9279
- ])) : O("", !0)
9280
- ], 2)
9411
+ ], 8, b3)) : g("", !0)
9412
+ ], 10, c3)
9281
9413
  ]),
9282
9414
  _: 3
9283
- }, 8, ["disabled", "tooltip-class"]),
9284
- Z.$props.hideDetails ? O("", !0) : (t(), r("div", A3, [
9285
- C.errorMsg ? (t(), r("div", e3, b(C.errorMsg), 1)) : O("", !0),
9286
- C.hint ? (t(), r("div", d3, b(C.hint), 1)) : O("", !0)
9287
- ]))
9288
- ], 512));
9415
+ }, 8, ["id", "disabled", "tooltip-class"]),
9416
+ t.$props.hideDetails ? g("", !0) : (l(), a("div", {
9417
+ key: 0,
9418
+ id: `${t.id}-details`,
9419
+ class: "r-dropdown-details"
9420
+ }, [
9421
+ C.errorMsg ? (l(), a("div", {
9422
+ key: 0,
9423
+ id: `${t.id}-error`,
9424
+ class: "r-dropdown-error"
9425
+ }, v(C.errorMsg), 9, w3)) : g("", !0),
9426
+ C.hint ? (l(), a("div", {
9427
+ key: 1,
9428
+ id: `${t.id}-hint`,
9429
+ class: "r-dropdown-hint"
9430
+ }, v(C.hint), 9, y3)) : g("", !0)
9431
+ ], 8, v3))
9432
+ ], 8, m3));
9289
9433
  }
9290
- }), m3 = ["id", "for"], O2 = /* @__PURE__ */ R({
9434
+ }), T3 = ["id", "for"], b2 = /* @__PURE__ */ T({
9291
9435
  __name: "RLabel",
9292
9436
  props: {
9293
9437
  id: { default: "" },
@@ -9295,27 +9439,20 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
9295
9439
  text: { default: "" }
9296
9440
  },
9297
9441
  setup(H) {
9298
- const V = H;
9299
- return (C, M) => (t(), r("label", {
9300
- id: V.id,
9442
+ const V = H, C = f(() => V.id || "r-label");
9443
+ return (i, A) => (l(), a("label", {
9444
+ id: C.value,
9301
9445
  class: "r-label",
9302
9446
  for: V.for
9303
9447
  }, [
9304
- h(C.$slots, "default", {}, () => [
9305
- S1(b(V.text), 1)
9448
+ k(i.$slots, "default", {
9449
+ id: `${C.value}-slot`
9450
+ }, () => [
9451
+ f1(v(V.text), 1)
9306
9452
  ])
9307
- ], 8, m3));
9453
+ ], 8, T3));
9308
9454
  }
9309
- }), l3 = ["onClick"], o3 = ["open"], n3 = { class: "r-dialog__header" }, r3 = {
9310
- key: 0,
9311
- class: "icon"
9312
- }, a3 = {
9313
- key: 1,
9314
- class: "title"
9315
- }, Z3 = {
9316
- key: 2,
9317
- class: "description"
9318
- }, u3 = { class: "r-dialog__body" }, S3 = { class: "r-dialog__actions" }, f0 = /* @__PURE__ */ R({
9455
+ }), F3 = ["id", "onClick"], R3 = ["id", "open"], x3 = ["id"], D3 = ["id"], E3 = ["id"], _3 = ["id"], $3 = ["id"], W3 = ["id"], L7 = /* @__PURE__ */ T({
9319
9456
  __name: "RModal",
9320
9457
  props: {
9321
9458
  modelValue: { type: Boolean, default: !1 },
@@ -9330,99 +9467,136 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
9330
9467
  class: { default: "" },
9331
9468
  overlayClass: { default: "" },
9332
9469
  style: { default: "" },
9333
- allowBodyScroll: { type: Boolean, default: !1 }
9470
+ allowBodyScroll: { type: Boolean, default: !1 },
9471
+ id: { default: "r-modal" }
9334
9472
  },
9335
9473
  emits: ["update:modelValue"],
9336
9474
  setup(H, { emit: V }) {
9337
- const C = H, M = V, i = g(() => ({
9475
+ const C = H, i = V, A = f(() => ({
9338
9476
  "r-dialog": !0,
9339
9477
  "r-dialog--block": C.block,
9340
9478
  "p-0 gap-0": C.clearContent,
9341
9479
  [`${C.class}`]: !0
9342
- })), L = g(() => ({
9480
+ })), L = f(() => ({
9343
9481
  width: C.width,
9344
9482
  height: C.height
9345
9483
  }));
9346
- function A(e) {
9347
- C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
9484
+ function M(e) {
9485
+ C.outsideClick && e.target === e.currentTarget && i("update:modelValue", !1);
9348
9486
  }
9349
- return A2(() => {
9487
+ return q1(() => {
9350
9488
  !C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
9351
9489
  }), window.addEventListener("keydown", (e) => {
9352
- e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9353
- }), (e, d) => e2((t(), r("div", {
9354
- class: p(["r-modal-overlay", e.overlayClass]),
9355
- onClick: t1(A, ["stop"])
9490
+ e.key === "Escape" && C.modelValue && C.outsideClick && i("update:modelValue", !1);
9491
+ }), (e, d) => n2((l(), a("div", {
9492
+ id: e.id,
9493
+ class: O(["r-modal-overlay", e.overlayClass]),
9494
+ onClick: r1(M, ["stop"])
9356
9495
  }, [
9357
- u("div", {
9496
+ Z("div", {
9497
+ id: `${e.id}-dialog`,
9358
9498
  "aria-modal": "true",
9359
- class: p(i.value),
9499
+ class: O(A.value),
9360
9500
  open: C.modelValue,
9361
9501
  role: "dialog",
9362
- style: G1(L.value)
9502
+ style: j1(L.value)
9363
9503
  }, [
9364
- h(e.$slots, "wrapper", {}, () => [
9365
- u("div", n3, [
9366
- h(e.$slots, "header"),
9367
- C.icon ? (t(), r("div", r3, [
9368
- q(D, {
9504
+ k(e.$slots, "wrapper", {
9505
+ id: `${e.id}-wrapper`
9506
+ }, () => [
9507
+ Z("div", {
9508
+ id: `${e.id}-header`,
9509
+ class: "r-dialog__header"
9510
+ }, [
9511
+ k(e.$slots, "header", {
9512
+ id: `${e.id}-header`
9513
+ }),
9514
+ C.icon ? (l(), a("div", {
9515
+ key: 0,
9516
+ id: `${e.id}-icon`,
9517
+ class: "icon"
9518
+ }, [
9519
+ H1(R, {
9369
9520
  name: C.icon
9370
9521
  }, null, 8, ["name"])
9371
- ])) : O("", !0),
9372
- C.title ? (t(), r("div", a3, b(C.title), 1)) : O("", !0),
9373
- C.description ? (t(), r("div", Z3, b(C.description), 1)) : O("", !0)
9374
- ]),
9375
- u("div", u3, [
9376
- h(e.$slots, "default")
9377
- ]),
9378
- u("div", S3, [
9379
- h(e.$slots, "actions")
9380
- ])
9522
+ ], 8, D3)) : g("", !0),
9523
+ C.title ? (l(), a("div", {
9524
+ key: 1,
9525
+ id: `${e.id}-title`,
9526
+ class: "title"
9527
+ }, v(C.title), 9, E3)) : g("", !0),
9528
+ C.description ? (l(), a("div", {
9529
+ key: 2,
9530
+ id: `${e.id}-description`,
9531
+ class: "description"
9532
+ }, v(C.description), 9, _3)) : g("", !0)
9533
+ ], 8, x3),
9534
+ Z("div", {
9535
+ id: `${e.id}-body`,
9536
+ class: "r-dialog__body"
9537
+ }, [
9538
+ k(e.$slots, "default", {
9539
+ id: `${e.id}-body`
9540
+ })
9541
+ ], 8, $3),
9542
+ Z("div", {
9543
+ id: `${e.id}-actions`,
9544
+ class: "r-dialog__actions"
9545
+ }, [
9546
+ k(e.$slots, "actions", {
9547
+ id: `${e.id}-actions`
9548
+ })
9549
+ ], 8, W3)
9381
9550
  ])
9382
- ], 14, o3)
9383
- ], 10, l3)), [
9384
- [B2, e.modelValue]
9551
+ ], 14, R3)
9552
+ ], 10, F3)), [
9553
+ [T2, e.modelValue]
9385
9554
  ]);
9386
9555
  }
9387
- }), s3 = ["data-open"], c3 = ["data-open"], p3 = ["data-open"], h0 = /* @__PURE__ */ R({
9556
+ }), N3 = ["id", "data-open"], I3 = ["id", "data-open"], Q3 = ["id", "data-open"], M7 = /* @__PURE__ */ T({
9388
9557
  __name: "RSidebar",
9389
9558
  props: {
9390
9559
  modelValue: { type: Boolean, default: !1 },
9391
9560
  showTrigger: { type: Boolean, default: !0 },
9392
9561
  class: {},
9393
9562
  triggerClass: {},
9394
- wrapperClass: {}
9563
+ wrapperClass: {},
9564
+ id: { default: "r-sidebar" }
9395
9565
  },
9396
9566
  emits: ["update:modelValue"],
9397
9567
  setup(H, { emit: V }) {
9398
- const C = H, M = V;
9399
- return (i, L) => (t(), r("div", {
9400
- class: p(["r-sidebar__wrapper", [i.$props.wrapperClass]]),
9568
+ const C = H, i = V;
9569
+ return (A, L) => (l(), a("div", {
9570
+ id: A.id,
9571
+ class: O(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
9401
9572
  "data-open": C.modelValue
9402
9573
  }, [
9403
- u("aside", {
9404
- class: p(["r-sidebar", [C.class]]),
9574
+ Z("aside", {
9575
+ id: `${A.id}-aside`,
9576
+ class: O(["r-sidebar", [C.class]]),
9405
9577
  "data-open": C.modelValue
9406
9578
  }, [
9407
- h(i.$slots, "default", {
9579
+ k(A.$slots, "default", {
9408
9580
  open: C.modelValue
9409
9581
  })
9410
- ], 10, c3),
9411
- C.showTrigger ? (t(), r("div", {
9582
+ ], 10, I3),
9583
+ C.showTrigger ? (l(), a("div", {
9412
9584
  key: 0,
9413
- class: p(["r-sidebar__trigger", [C.triggerClass]]),
9585
+ id: `${A.id}-trigger`,
9586
+ class: O(["r-sidebar__trigger", [C.triggerClass]]),
9414
9587
  "data-open": C.modelValue,
9415
- onClick: L[0] || (L[0] = (A) => M("update:modelValue", !C.modelValue))
9588
+ onClick: L[0] || (L[0] = (M) => i("update:modelValue", !C.modelValue))
9416
9589
  }, [
9417
- h(i.$slots, "trigger", {
9590
+ k(A.$slots, "trigger", {
9591
+ id: `${A.id}-trigger-slot`,
9418
9592
  open: C.modelValue
9419
9593
  }, () => [
9420
- S1(" > ")
9594
+ f1(" > ")
9421
9595
  ])
9422
- ], 10, p3)) : O("", !0)
9423
- ], 10, s3));
9596
+ ], 10, Q3)) : g("", !0)
9597
+ ], 10, N3));
9424
9598
  }
9425
- }), O3 = { class: "r-snackbar__text" }, g0 = /* @__PURE__ */ R({
9599
+ }), G3 = ["id"], U3 = ["id"], i7 = /* @__PURE__ */ T({
9426
9600
  __name: "RSnackbar",
9427
9601
  props: {
9428
9602
  modelValue: { type: Boolean, default: !1 },
@@ -9431,74 +9605,77 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
9431
9605
  left: { type: Boolean, default: !1 },
9432
9606
  timeout: { default: 0 },
9433
9607
  variant: {},
9434
- top: { type: Boolean }
9608
+ top: { type: Boolean },
9609
+ id: { default: "r-snackbar" }
9435
9610
  },
9436
9611
  emits: ["action", "update:modelValue"],
9437
9612
  setup(H, { emit: V }) {
9438
- const C = H, M = V;
9439
- G(
9613
+ const C = H, i = V;
9614
+ W(
9440
9615
  () => C.modelValue,
9441
9616
  () => {
9442
9617
  C.timeout > 0 && C.modelValue && setTimeout(() => {
9443
- M("update:modelValue", !1);
9618
+ i("update:modelValue", !1);
9444
9619
  }, C.timeout);
9445
9620
  },
9446
9621
  {
9447
9622
  immediate: !0
9448
9623
  }
9449
9624
  );
9450
- const i = g(() => ({
9625
+ const A = f(() => ({
9451
9626
  "r-snackbar": !0,
9452
9627
  [`r-snackbar--${C.variant}`]: !0,
9453
9628
  [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
9454
9629
  [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
9455
9630
  [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0,
9456
9631
  "r-snackbar--closable": C.closable
9457
- })), L = g(() => ({
9632
+ })), L = f(() => ({
9458
9633
  success: "mdiCheckCircle",
9459
9634
  error: "mdiAlertCircle",
9460
9635
  warning: "mdiAlert",
9461
9636
  info: "mdiInformation"
9462
9637
  })[C.variant || "info"]);
9463
- return (A, e) => (t(), r("div", {
9464
- class: p(i.value)
9638
+ return (M, e) => (l(), a("div", {
9639
+ id: M.id,
9640
+ class: O(A.value)
9465
9641
  }, [
9466
- h(A.$slots, "icon", {}, () => [
9467
- C.variant ? (t(), _(D, {
9642
+ k(M.$slots, "icon", {
9643
+ id: `${M.id}-icon`
9644
+ }, () => [
9645
+ C.variant ? (l(), D(R, {
9468
9646
  key: 0,
9469
9647
  class: "r-snackbar__icon",
9470
9648
  name: L.value
9471
- }, null, 8, ["name"])) : O("", !0)
9649
+ }, null, 8, ["name"])) : g("", !0)
9472
9650
  ]),
9473
- u("div", O3, [
9474
- h(A.$slots, "default", {}, () => [
9475
- S1(b(C.text), 1)
9651
+ Z("div", {
9652
+ id: `${M.id}-text`,
9653
+ class: "r-snackbar__text"
9654
+ }, [
9655
+ k(M.$slots, "default", {
9656
+ id: `${M.id}-text-slot`
9657
+ }, () => [
9658
+ f1(v(C.text), 1)
9476
9659
  ])
9477
- ]),
9478
- C.closable ? (t(), r("div", {
9660
+ ], 8, U3),
9661
+ C.closable ? (l(), a("div", {
9479
9662
  key: 0,
9480
9663
  class: "r-snackbar__close",
9481
- onClick: e[0] || (e[0] = t1((d) => A.$emit("update:modelValue", !1), ["stop"]))
9664
+ onClick: e[0] || (e[0] = r1((d) => M.$emit("update:modelValue", !1), ["stop"]))
9482
9665
  }, [
9483
- h(A.$slots, "close", {}, () => [
9484
- q(D, {
9666
+ k(M.$slots, "close", {
9667
+ id: `${M.id}-close-slot`
9668
+ }, () => [
9669
+ H1(R, {
9670
+ id: `${M.id}-close-icon`,
9485
9671
  name: "mdiClose",
9486
9672
  size: 16
9487
- })
9673
+ }, null, 8, ["id"])
9488
9674
  ])
9489
- ])) : O("", !0)
9490
- ], 2));
9675
+ ])) : g("", !0)
9676
+ ], 10, G3));
9491
9677
  }
9492
- }), f3 = ["id", "checked", "disabled", "name"], h3 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), g3 = ["id", "for"], k3 = {
9493
- key: 0,
9494
- class: "r-switch-texts__details"
9495
- }, B3 = {
9496
- key: 0,
9497
- class: "r-switch-texts__error"
9498
- }, b3 = {
9499
- key: 1,
9500
- class: "r-switch-texts__hint"
9501
- }, k0 = /* @__PURE__ */ R({
9678
+ }), z3 = ["id"], K3 = ["id", "checked", "disabled", "name"], q3 = /* @__PURE__ */ Z("span", { class: "slider round" }, null, -1), j3 = ["id", "for"], X3 = ["id"], Y3 = ["id"], J3 = ["id"], A7 = /* @__PURE__ */ T({
9502
9679
  __name: "RSwitch",
9503
9680
  props: {
9504
9681
  id: { default: "switch" },
@@ -9514,70 +9691,83 @@ const Q5 = ["aria-disabled"], G5 = ["innerHTML"], $5 = ["id"], U5 = /* @__PURE__
9514
9691
  },
9515
9692
  emits: ["update:modelValue"],
9516
9693
  setup(H, { emit: V }) {
9517
- const C = H, M = V, i = E({
9694
+ const C = H, i = V, A = E({
9518
9695
  checked: !1
9519
- }), L = g(() => ({
9696
+ }), L = f(() => ({
9520
9697
  "r-switch": !0,
9521
9698
  "r-switch--disabled": C.disabled,
9522
9699
  [`r-switch--${C.size}`]: C.size,
9523
9700
  "r-switch--error": C.errorMsg
9524
- }));
9525
- function A(e) {
9526
- C.disabled || (i.value.checked = e.target.checked, M("update:modelValue", i.value.checked));
9701
+ })), M = f(() => C.id || "r-switch");
9702
+ function e(d) {
9703
+ C.disabled || (A.value.checked = d.target.checked, i("update:modelValue", A.value.checked));
9527
9704
  }
9528
- return G(
9705
+ return W(
9529
9706
  () => C.modelValue,
9530
- (e) => {
9531
- i.value.checked = e;
9707
+ (d) => {
9708
+ A.value.checked = d;
9532
9709
  },
9533
9710
  {
9534
9711
  // need immediate to set the state on first render for storybook
9535
9712
  // TODO: find a better way to do this
9536
9713
  immediate: !0
9537
9714
  }
9538
- ), (e, d) => (t(), r("div", {
9539
- class: p(["r-switch-container", {
9715
+ ), (d, m) => (l(), a("div", {
9716
+ id: M.value,
9717
+ class: O(["r-switch-container", {
9540
9718
  "r-switch-container--reverse": C.reverse,
9541
9719
  "r-switch-container--hide-details": C.hideDetails
9542
9720
  }])
9543
9721
  }, [
9544
- u("div", {
9545
- class: p(L.value)
9722
+ Z("div", {
9723
+ class: O(L.value)
9546
9724
  }, [
9547
- u("input", {
9548
- id: C.id,
9549
- checked: i.value.checked,
9725
+ Z("input", {
9726
+ id: `${M.value}-input`,
9727
+ checked: A.value.checked,
9550
9728
  class: "r-switch__input",
9551
9729
  disabled: C.disabled,
9552
9730
  name: C.name,
9553
9731
  type: "checkbox",
9554
- onChange: A
9555
- }, null, 40, f3),
9556
- h3
9732
+ onChange: e
9733
+ }, null, 40, K3),
9734
+ q3
9557
9735
  ], 2),
9558
- u("div", {
9559
- class: p(["r-switch-texts", {
9736
+ Z("div", {
9737
+ class: O(["r-switch-texts", {
9560
9738
  [`r-switch-texts--${C.size}`]: !0
9561
9739
  }])
9562
9740
  }, [
9563
- u("label", {
9564
- id: `${C.id}-label`,
9741
+ Z("label", {
9742
+ id: `${M.value}-label`,
9565
9743
  class: "r-switch-texts__label",
9566
9744
  for: C.id
9567
- }, b(C.label), 9, g3),
9568
- C.hideDetails ? O("", !0) : (t(), r("div", k3, [
9569
- C.errorMsg ? (t(), r("p", B3, b(C.errorMsg), 1)) : (t(), r("p", b3, b(C.hint), 1))
9570
- ]))
9745
+ }, v(C.label), 9, j3),
9746
+ C.hideDetails ? g("", !0) : (l(), a("div", {
9747
+ key: 0,
9748
+ id: `${M.value}-details`,
9749
+ class: "r-switch-texts__details"
9750
+ }, [
9751
+ C.errorMsg ? (l(), a("p", {
9752
+ key: 0,
9753
+ id: `${M.value}-error`,
9754
+ class: "r-switch-texts__error"
9755
+ }, v(C.errorMsg), 9, Y3)) : (l(), a("p", {
9756
+ key: 1,
9757
+ id: `${M.value}-hint`,
9758
+ class: "r-switch-texts__hint"
9759
+ }, v(C.hint), 9, J3))
9760
+ ], 8, X3))
9571
9761
  ], 2)
9572
- ], 2));
9762
+ ], 10, z3));
9573
9763
  }
9574
9764
  });
9575
- var a1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(a1 || {});
9576
- const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 = /* @__PURE__ */ R({
9765
+ var c1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(c1 || {});
9766
+ const C0 = ["id", "aria-disabled", "aria-selected", "disabled"], H0 = { key: 0 }, V0 = /* @__PURE__ */ T({
9577
9767
  __name: "RTabItem",
9578
9768
  props: {
9579
9769
  id: {},
9580
- variant: { default: a1.DEFAULT },
9770
+ variant: { default: c1.DEFAULT },
9581
9771
  label: { default: "" },
9582
9772
  prependIcon: { default: "" },
9583
9773
  appendIcon: { default: "" },
@@ -9589,123 +9779,125 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
9589
9779
  },
9590
9780
  emits: ["update:modelValue"],
9591
9781
  setup(H, { emit: V }) {
9592
- const C = H, M = V, i = g(() => ({
9782
+ const C = H, i = V, A = f(() => ({
9593
9783
  "r-tab-item": !0,
9594
9784
  [`r-tab-item--${C.variant}`]: !0,
9595
9785
  "r-tab-item--tile": C.tile,
9596
9786
  "r-tab-item--block": C.block
9597
- })), L = g(() => ({
9787
+ })), L = f(() => C.id || "r-tab-item"), M = f(() => ({
9598
9788
  color: C.color
9599
- })), A = g(() => C.modelValue === C.id);
9600
- function e(d) {
9601
- M("update:modelValue", d);
9789
+ })), e = f(() => C.modelValue === C.id);
9790
+ function d(m) {
9791
+ i("update:modelValue", m);
9602
9792
  }
9603
- return (d, m) => (t(), r("button", {
9793
+ return (m, n) => (l(), a("button", {
9794
+ id: L.value,
9604
9795
  "aria-disabled": C.disabled,
9605
- "aria-selected": A.value,
9606
- class: p(i.value),
9796
+ "aria-selected": e.value,
9797
+ class: O(A.value),
9607
9798
  disabled: C.disabled,
9608
- style: G1(L.value),
9609
- onClick: m[0] || (m[0] = t1((o) => e(C.id), ["stop"]))
9799
+ style: j1(M.value),
9800
+ onClick: n[0] || (n[0] = r1((u) => d(C.id), ["stop"]))
9610
9801
  }, [
9611
- h(d.$slots, "prepend", {
9612
- active: A.value,
9802
+ k(m.$slots, "prepend", {
9803
+ id: `${L.value}-prepend-slot`,
9804
+ active: e.value,
9613
9805
  disabled: C.disabled
9614
9806
  }, () => [
9615
- C.variant !== J(a1).TEXT && C.prependIcon ? (t(), _(D, {
9807
+ C.variant !== z(c1).TEXT && C.prependIcon ? (l(), D(R, {
9616
9808
  key: 0,
9617
9809
  class: "r-tab-item__prepend-icon",
9618
9810
  name: C.prependIcon,
9619
9811
  size: 16
9620
- }, null, 8, ["name"])) : O("", !0)
9812
+ }, null, 8, ["name"])) : g("", !0)
9621
9813
  ]),
9622
- C.variant !== J(a1).ICON ? (t(), r("span", v3, [
9623
- h(d.$slots, "default", {
9814
+ C.variant !== z(c1).ICON ? (l(), a("span", H0, [
9815
+ k(m.$slots, "default", {
9816
+ id: `${L.value}-label-slot`,
9624
9817
  label: C.label
9625
9818
  }, () => [
9626
- S1(b(C.label), 1)
9819
+ f1(v(C.label), 1)
9627
9820
  ])
9628
- ])) : O("", !0),
9629
- h(d.$slots, "append", {
9630
- active: A.value,
9821
+ ])) : g("", !0),
9822
+ k(m.$slots, "append", {
9823
+ id: `${L.value}-append-slot`,
9824
+ active: e.value,
9631
9825
  disabled: C.disabled
9632
9826
  }, () => [
9633
- C.variant !== J(a1).TEXT && C.appendIcon ? (t(), _(D, {
9827
+ C.variant !== z(c1).TEXT && C.appendIcon ? (l(), D(R, {
9634
9828
  key: 0,
9829
+ id: `${L.value}-append-icon`,
9635
9830
  class: "r-tab-item__append-icon",
9636
9831
  name: C.appendIcon,
9637
9832
  size: 16
9638
- }, null, 8, ["name"])) : O("", !0)
9833
+ }, null, 8, ["id", "name"])) : g("", !0)
9639
9834
  ])
9640
- ], 14, w3));
9835
+ ], 14, C0));
9641
9836
  }
9642
- }), B0 = /* @__PURE__ */ R({
9837
+ }), L0 = ["id"], M0 = ["id"], e7 = /* @__PURE__ */ T({
9643
9838
  __name: "RTabs",
9644
9839
  props: {
9645
9840
  tabs: { default: () => [] },
9646
9841
  block: { type: Boolean, default: !1 },
9647
9842
  modelValue: { default: "" },
9648
9843
  tile: { type: Boolean, default: !1 },
9649
- scrollable: { type: Boolean, default: !1 }
9844
+ scrollable: { type: Boolean, default: !1 },
9845
+ id: { default: "r-tabs" }
9650
9846
  },
9651
9847
  emits: ["update:modelValue"],
9652
9848
  setup(H, { emit: V }) {
9653
- const C = H, M = V, i = E(C.modelValue || C.tabs[0].id), L = g(() => ({
9849
+ const C = H, i = V, A = E(C.modelValue || C.tabs[0].id), L = f(() => ({
9654
9850
  "r-tabs": !0,
9655
9851
  "r-tabs--tile": C.tile
9656
9852
  }));
9657
- return G(
9658
- () => i.value,
9853
+ return W(
9854
+ () => A.value,
9659
9855
  () => {
9660
- M("update:modelValue", i.value);
9856
+ i("update:modelValue", A.value);
9661
9857
  }
9662
- ), G(
9858
+ ), W(
9663
9859
  () => C.modelValue,
9664
9860
  () => {
9665
- i.value = C.modelValue;
9861
+ A.value = C.modelValue;
9666
9862
  },
9667
9863
  {
9668
9864
  immediate: !0
9669
9865
  }
9670
- ), (A, e) => (t(), r("div", {
9671
- class: p(L.value)
9866
+ ), (M, e) => (l(), a("div", {
9867
+ id: M.id,
9868
+ class: O(L.value)
9672
9869
  }, [
9673
- u("div", {
9674
- class: p(["flex", [{
9870
+ Z("div", {
9871
+ id: `${M.id}-tabs`,
9872
+ class: O(["flex", [{
9675
9873
  "w-full": C.block,
9676
9874
  "overflow-x-auto": C.scrollable,
9677
9875
  "gap-0.5": C.tile
9678
9876
  }]])
9679
9877
  }, [
9680
- h(A.$slots, "default", { activeTab: i.value }, () => [
9681
- (t(!0), r(H1, null, d1(C.tabs, (d, m) => (t(), _(y3, {
9682
- id: d.id,
9878
+ k(M.$slots, "default", {
9879
+ id: `${M.id}-slot`,
9880
+ activeTab: A.value
9881
+ }, () => [
9882
+ (l(!0), a(A1, null, n1(C.tabs, (d, m) => (l(), D(V0, {
9883
+ id: `${M.id}-tab-${d.index}`,
9683
9884
  key: m,
9684
- modelValue: i.value,
9685
- "onUpdate:modelValue": e[0] || (e[0] = (o) => i.value = o),
9686
- active: m === i.value,
9885
+ modelValue: A.value,
9886
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => A.value = n),
9887
+ active: m === A.value,
9687
9888
  "append-icon": d.appendIcon,
9688
- block: A.block,
9889
+ block: M.block,
9689
9890
  disabled: d.disabled,
9690
9891
  label: d.label,
9691
9892
  "prepend-icon": d.prependIcon,
9692
- tile: A.tile,
9893
+ tile: M.tile,
9693
9894
  variant: d.variant
9694
9895
  }, null, 8, ["id", "modelValue", "active", "append-icon", "block", "disabled", "label", "prepend-icon", "tile", "variant"]))), 128))
9695
9896
  ])
9696
- ], 2)
9697
- ], 2));
9897
+ ], 10, M0)
9898
+ ], 10, L0));
9698
9899
  }
9699
- }), P3 = { class: "r-textarea-wrapper" }, T3 = ["id", "disabled", "placeholder", "value"], F3 = {
9700
- key: 1,
9701
- class: "r-textarea__details"
9702
- }, R3 = {
9703
- key: 0,
9704
- class: "r-textarea__error"
9705
- }, x3 = {
9706
- key: 1,
9707
- class: "r-textarea__hint"
9708
- }, b0 = /* @__PURE__ */ R({
9900
+ }), i0 = ["id"], A0 = ["id", "disabled", "placeholder", "value"], e0 = ["id"], d0 = ["id"], t0 = ["id"], d7 = /* @__PURE__ */ T({
9709
9901
  __name: "RTextArea",
9710
9902
  props: {
9711
9903
  id: { default: "" },
@@ -9719,54 +9911,65 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
9719
9911
  },
9720
9912
  emits: ["update:modelValue"],
9721
9913
  setup(H, { emit: V }) {
9722
- const C = H, M = V, i = P1({
9914
+ const C = H, i = V, A = D1({
9723
9915
  value: ""
9724
9916
  });
9725
- function L(A) {
9726
- M("update:modelValue", A.target.value);
9917
+ function L(e) {
9918
+ i("update:modelValue", e.target.value);
9727
9919
  }
9728
- return G(
9920
+ W(
9729
9921
  () => C.modelValue,
9730
- (A) => {
9731
- i.value = A;
9922
+ (e) => {
9923
+ A.value = e;
9732
9924
  },
9733
9925
  {
9734
9926
  immediate: !0
9735
9927
  }
9736
- ), (A, e) => (t(), r("div", P3, [
9737
- C.label ? (t(), _(O2, {
9928
+ );
9929
+ const M = computed(() => C.id || "r-textarea");
9930
+ return (e, d) => (l(), a("div", {
9931
+ id: z(M),
9932
+ class: "r-textarea-wrapper"
9933
+ }, [
9934
+ C.label ? (l(), D(b2, {
9738
9935
  key: 0,
9739
- id: `${C.id}-label`,
9936
+ id: `${z(M)}-label`,
9740
9937
  class: "r-textarea__label",
9741
9938
  for: "textarea",
9742
9939
  text: C.label
9743
- }, null, 8, ["id", "text"])) : O("", !0),
9744
- u("textarea", T1(A.$attrs, {
9745
- id: C.id,
9940
+ }, null, 8, ["id", "text"])) : g("", !0),
9941
+ Z("textarea", E1(e.$attrs, {
9942
+ id: `${z(M)}-input`,
9746
9943
  class: ["r-textarea", {
9747
9944
  "r-textarea--error": C.errorMsg,
9748
9945
  "r-textarea--disabled": C.disabled
9749
9946
  }],
9750
9947
  disabled: C.disabled,
9751
9948
  placeholder: C.placeholder,
9752
- value: i.value,
9949
+ value: A.value,
9753
9950
  onInput: L
9754
- }), null, 16, T3),
9755
- C.hideDetails ? O("", !0) : (t(), r("div", F3, [
9756
- C.errorMsg ? (t(), r("p", R3, b(C.errorMsg), 1)) : (t(), r("p", x3, b(C.hint), 1))
9757
- ]))
9758
- ]));
9951
+ }), null, 16, A0),
9952
+ C.hideDetails ? g("", !0) : (l(), a("div", {
9953
+ key: 1,
9954
+ id: `${z(M)}-details`,
9955
+ class: "r-textarea__details"
9956
+ }, [
9957
+ C.errorMsg ? (l(), a("p", {
9958
+ key: 0,
9959
+ id: `${z(M)}-error`,
9960
+ class: "r-textarea__error"
9961
+ }, v(C.errorMsg), 9, d0)) : (l(), a("p", {
9962
+ key: 1,
9963
+ id: `${z(M)}-hint`,
9964
+ class: "r-textarea__hint"
9965
+ }, v(C.hint), 9, t0))
9966
+ ], 8, e0))
9967
+ ], 8, i0));
9759
9968
  }
9760
- }), D3 = { class: "r-textfield__wrapper" }, _3 = { class: "input-wrapper" }, E3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], W3 = {
9761
- key: 0,
9762
- class: "r-textfield__details"
9763
- }, N3 = {
9764
- key: 0,
9765
- class: "r-textfield__error"
9766
- }, I3 = {
9969
+ }), m0 = ["id"], l0 = ["id"], o0 = ["id"], n0 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], r0 = ["id"], a0 = ["id"], Z0 = {
9767
9970
  key: 1,
9768
9971
  class: "r-textfield__hint"
9769
- }, w0 = /* @__PURE__ */ R({
9972
+ }, t7 = /* @__PURE__ */ T({
9770
9973
  __name: "RTextfield",
9771
9974
  props: {
9772
9975
  id: { default: "" },
@@ -9796,231 +9999,260 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
9796
9999
  "click:clear"
9797
10000
  ],
9798
10001
  setup(H, { emit: V }) {
9799
- const C = H, M = V, i = E(), L = P1({
10002
+ const C = H, i = V, A = E(), L = D1({
9800
10003
  value: ""
9801
- }), A = E(C.type), e = {
10004
+ }), M = E(C.type), e = {
9802
10005
  password: "mdiLock",
9803
10006
  email: "mdiEmailOutline",
9804
10007
  tel: "mdiPhone",
9805
10008
  url: "mdiLink",
9806
10009
  number: "mdiNumeric",
9807
10010
  text: ""
9808
- }, d = E(!1), m = g(() => !!L.value), o = g(() => L.value.length > 0), a = g(() => {
9809
- var f;
9810
- return (f = C.errorMsg) == null ? void 0 : f.length;
9811
- }), n = g(() => C.clearable && o.value), l = g(() => {
9812
- const { disabled: f, loading: N } = C;
10011
+ }, d = E(!1), m = f(() => !!L.value), n = f(() => L.value.length > 0), u = f(() => {
10012
+ var h;
10013
+ return (h = C.errorMsg) == null ? void 0 : h.length;
10014
+ }), o = f(() => C.clearable && n.value), r = f(() => {
10015
+ const { disabled: h, loading: F } = C;
9813
10016
  return {
9814
10017
  "r-textfield": !0,
9815
- "r-textfield--error": a.value,
9816
- "r-textfield--loading": N,
9817
- "r-textfield--disabled": f,
9818
- "r-textfield--clearable": n.value,
10018
+ "r-textfield--error": u.value,
10019
+ "r-textfield--loading": F,
10020
+ "r-textfield--disabled": h,
10021
+ "r-textfield--clearable": o.value,
9819
10022
  "r-textfield--focus": d.value,
9820
10023
  "r-textfield--filled": m.value
9821
10024
  };
9822
- }), S = g(() => ({
10025
+ }), S = f(() => ({
9823
10026
  "r-textfield__prepend-icon": !0,
9824
10027
  "r-textfield__prepend-icon--loading": C.loading,
9825
- "r-textfield__prepend-icon--error": a.value && m.value
9826
- })), v = g(() => ({
10028
+ "r-textfield__prepend-icon--error": u.value && m.value
10029
+ })), b = f(() => ({
9827
10030
  "r-textfield__append-icon": !0,
9828
- "r-textfield__append-icon--clear": n.value,
9829
- "r-textfield__append-icon--error": a.value
9830
- })), B = g(() => {
9831
- const { prependIcon: f, type: N } = C;
9832
- return f === "none" ? "" : f || e[N];
9833
- }), T = g(() => {
9834
- const { appendIcon: f, type: N } = C;
9835
- return f === "none" ? "" : a.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(N) ? "mdiClose" : N === "password" && A.value === "password" ? "mdiEyeOutline" : N === "password" && A.value === "text" ? "mdiEyeOffOutline" : f;
9836
- });
9837
- function k(f) {
9838
- d.value = !0, M("focus", f);
10031
+ "r-textfield__append-icon--clear": o.value,
10032
+ "r-textfield__append-icon--error": u.value
10033
+ })), B = f(() => {
10034
+ const { prependIcon: h, type: F } = C;
10035
+ return h === "none" ? "" : h || e[F];
10036
+ }), y = f(() => {
10037
+ const { appendIcon: h, type: F } = C;
10038
+ return h === "none" ? "" : u.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(F) ? "mdiClose" : F === "password" && M.value === "password" ? "mdiEyeOutline" : F === "password" && M.value === "text" ? "mdiEyeOffOutline" : h;
10039
+ }), c = f(() => C.id || "r-textfield");
10040
+ function w(h) {
10041
+ d.value = !0, i("focus", h);
9839
10042
  }
9840
- function y(f) {
9841
- d.value = !1, M("blur", f);
10043
+ function _(h) {
10044
+ d.value = !1, i("blur", h);
9842
10045
  }
9843
- function F(f) {
9844
- L.value = f.target.value, M("input", f);
10046
+ function x(h) {
10047
+ L.value = h.target.value, i("input", h);
9845
10048
  }
9846
- function P() {
9847
- var f;
9848
- if (n.value) {
9849
- L.value = "", (f = i.value) == null || f.focus(), M("click:clear", {
9850
- value: A.value === "number" ? +L.value : L.value
10049
+ function U() {
10050
+ var h;
10051
+ if (o.value) {
10052
+ L.value = "", (h = A.value) == null || h.focus(), i("click:clear", {
10053
+ value: M.value === "number" ? +L.value : L.value
9851
10054
  });
9852
10055
  return;
9853
10056
  }
9854
- M("click:icon", {
9855
- value: A.value === "number" ? +L.value : L.value
9856
- }), C.type === "password" && U();
10057
+ i("click:icon", {
10058
+ value: M.value === "number" ? +L.value : L.value
10059
+ }), C.type === "password" && $();
9857
10060
  }
9858
- function U() {
9859
- A.value = A.value === "password" ? "text" : "password";
10061
+ function $() {
10062
+ M.value = M.value === "password" ? "text" : "password";
9860
10063
  }
9861
- function W() {
9862
- var f;
9863
- (f = i.value) == null || f.focus();
10064
+ function C1() {
10065
+ var h;
10066
+ (h = A.value) == null || h.focus();
9864
10067
  }
9865
- return G(
10068
+ return W(
9866
10069
  () => C.modelValue,
9867
- (f) => {
9868
- L.value = f;
10070
+ (h) => {
10071
+ L.value = h;
9869
10072
  },
9870
10073
  {
9871
10074
  immediate: !0
9872
10075
  }
9873
- ), G(
10076
+ ), W(
9874
10077
  () => L.value,
9875
- (f) => {
9876
- M(
10078
+ (h) => {
10079
+ i(
9877
10080
  "update:modelValue",
9878
- A.value === "number" ? +f : f
10081
+ M.value === "number" ? +h : h
9879
10082
  );
9880
10083
  }
9881
- ), (f, N) => (t(), r("div", D3, [
9882
- C.label ? (t(), _(O2, {
10084
+ ), (h, F) => (l(), a("div", {
10085
+ id: c.value,
10086
+ class: "r-textfield__wrapper"
10087
+ }, [
10088
+ C.label ? (l(), D(b2, {
9883
10089
  key: 0,
9884
- id: `${C.id}-label`,
10090
+ id: `${c.value}-label`,
9885
10091
  class: "r-textfield__label",
9886
- for: C.id,
10092
+ for: c.value,
9887
10093
  text: C.label,
9888
- onClick: W
9889
- }, null, 8, ["id", "for", "text"])) : O("", !0),
9890
- u("div", _3, [
9891
- u("div", {
9892
- class: p(l.value)
10094
+ onClick: C1
10095
+ }, null, 8, ["id", "for", "text"])) : g("", !0),
10096
+ Z("div", {
10097
+ id: `${c.value}-input-wrapper`,
10098
+ class: "input-wrapper"
10099
+ }, [
10100
+ Z("div", {
10101
+ id: `${c.value}-input-wrapper-inner`,
10102
+ class: O(r.value)
9893
10103
  }, [
9894
- h(f.$slots, "prepend", {
10104
+ k(h.$slots, "prepend", {
10105
+ id: `${c.value}-prepend-slot`,
9895
10106
  disabled: C.disabled,
9896
- error: a.value,
10107
+ error: u.value,
9897
10108
  loading: C.loading
9898
10109
  }, () => [
9899
- B.value ? (t(), _(D, {
10110
+ B.value ? (l(), D(R, {
9900
10111
  key: 0,
9901
- class: p(S.value),
10112
+ id: `${c.value}-prepend-icon`,
10113
+ class: O(S.value),
9902
10114
  name: B.value,
9903
10115
  size: 20
9904
- }, null, 8, ["class", "name"])) : O("", !0)
10116
+ }, null, 8, ["id", "class", "name"])) : g("", !0)
9905
10117
  ]),
9906
- u("input", T1(f.$attrs, {
9907
- id: C.id,
10118
+ Z("input", E1(h.$attrs, {
10119
+ id: `${c.value}-input`,
9908
10120
  ref_key: "inputRef",
9909
- ref: i,
10121
+ ref: A,
9910
10122
  disabled: C.disabled,
9911
10123
  max: C.max,
9912
10124
  min: C.min,
9913
10125
  placeholder: C.placeholder,
9914
10126
  readonly: C.readonly,
9915
10127
  role: C.role,
9916
- type: A.value,
10128
+ type: M.value,
9917
10129
  value: L.value,
9918
- onBlur: y,
9919
- onFocus: k,
9920
- onInput: F
9921
- }), null, 16, E3),
9922
- h(f.$slots, "append", {
10130
+ onBlur: _,
10131
+ onFocus: w,
10132
+ onInput: x
10133
+ }), null, 16, n0),
10134
+ k(h.$slots, "append", {
10135
+ id: `${c.value}-append-slot`,
9923
10136
  disabled: C.disabled,
9924
- error: a.value,
10137
+ error: u.value,
9925
10138
  loading: C.loading
9926
10139
  }, () => [
9927
- f.$props.type === "password" && a.value ? (t(), _(D, {
10140
+ h.$props.type === "password" && u.value ? (l(), D(R, {
9928
10141
  key: 0,
9929
- name: A.value === "password" ? "mdiEyeOutline" : "mdiEyeOffOutline",
10142
+ id: `${c.value}-append-icon`,
10143
+ name: M.value === "password" ? "mdiEyeOutline" : "mdiEyeOffOutline",
9930
10144
  size: 20,
9931
- onClick: P
9932
- }, null, 8, ["name"])) : O("", !0),
9933
- T.value && !f.$slots.append || a.value ? (t(), _(D, {
10145
+ onClick: U
10146
+ }, null, 8, ["id", "name"])) : g("", !0),
10147
+ y.value && !h.$slots.append || u.value ? (l(), D(R, {
9934
10148
  key: 1,
9935
- class: p(v.value),
9936
- name: `${T.value}`,
10149
+ id: `${c.value}-append-icon`,
10150
+ class: O(b.value),
10151
+ name: `${y.value}`,
9937
10152
  size: 20,
9938
- onClick: P
9939
- }, null, 8, ["class", "name"])) : O("", !0)
10153
+ onClick: U
10154
+ }, null, 8, ["id", "class", "name"])) : g("", !0)
9940
10155
  ])
9941
- ], 2),
9942
- C.hideDetails ? O("", !0) : (t(), r("div", W3, [
9943
- C.errorMsg ? (t(), r("p", N3, b(C.errorMsg), 1)) : O("", !0),
9944
- !C.errorMsg && C.hint ? (t(), r("p", I3, b(C.hint), 1)) : O("", !0)
9945
- ]))
9946
- ])
9947
- ]));
10156
+ ], 10, o0),
10157
+ C.hideDetails ? g("", !0) : (l(), a("div", {
10158
+ key: 0,
10159
+ id: `${c.value}-details`,
10160
+ class: "r-textfield__details"
10161
+ }, [
10162
+ C.errorMsg ? (l(), a("p", {
10163
+ key: 0,
10164
+ id: `${c.value}-error`,
10165
+ class: "r-textfield__error"
10166
+ }, v(C.errorMsg), 9, a0)) : g("", !0),
10167
+ !C.errorMsg && C.hint ? (l(), a("p", Z0, v(C.hint), 1)) : g("", !0)
10168
+ ], 8, r0))
10169
+ ], 8, l0)
10170
+ ], 8, m0));
9948
10171
  }
9949
- }), Q3 = { class: "r-breadcrumb" }, G3 = {
9950
- key: 0,
9951
- class: "r-breadcrumb__title"
9952
- }, v0 = /* @__PURE__ */ R({
10172
+ }), u0 = ["id"], S0 = ["id"], m7 = /* @__PURE__ */ T({
9953
10173
  __name: "RBreadcrumb",
9954
10174
  props: {
9955
10175
  items: { default: () => [] },
9956
- seperator: { default: "mdiChevronRight" }
10176
+ seperator: { default: "mdiChevronRight" },
10177
+ id: { default: "r-breadcrumb" }
9957
10178
  },
9958
10179
  setup(H) {
9959
10180
  const V = H;
9960
- return (C, M) => {
9961
- const i = b2("router-link");
9962
- return t(), r("div", Q3, [
9963
- (t(!0), r(H1, null, d1(V.items, (L, A) => (t(), r("div", {
9964
- key: A,
10181
+ return (C, i) => {
10182
+ const A = F2("router-link");
10183
+ return l(), a("div", {
10184
+ id: C.id,
10185
+ class: "r-breadcrumb"
10186
+ }, [
10187
+ (l(!0), a(A1, null, n1(V.items, (L, M) => (l(), a("div", {
10188
+ key: M,
9965
10189
  class: "r-breadcrumb__item"
9966
10190
  }, [
9967
- q(i, {
10191
+ H1(A, {
10192
+ id: `${C.id}-link-${M}`,
9968
10193
  class: "r-breadcrumb__link",
9969
10194
  to: L.to
9970
10195
  }, {
9971
- default: B1(() => [
9972
- h(C.$slots, "item-icon", {}, () => [
9973
- L.icon ? (t(), _(D, {
10196
+ default: P1(() => [
10197
+ k(C.$slots, "item-icon", {}, () => [
10198
+ L.icon ? (l(), D(R, {
9974
10199
  key: 0,
9975
10200
  name: L.icon
9976
- }, null, 8, ["name"])) : O("", !0)
10201
+ }, null, 8, ["name"])) : g("", !0)
9977
10202
  ]),
9978
- L.onlyIcon ? O("", !0) : (t(), r("span", G3, b(L.title), 1))
10203
+ L.onlyIcon ? g("", !0) : (l(), a("span", {
10204
+ key: 0,
10205
+ id: `${C.id}-title-${M}`,
10206
+ class: "r-breadcrumb__title"
10207
+ }, v(L.title), 9, S0))
9979
10208
  ]),
9980
10209
  _: 2
9981
- }, 1032, ["to"]),
9982
- h(C.$slots, "custom-seperator", {}, () => [
9983
- A !== C.items.length - 1 && V.seperator ? (t(), _(D, {
10210
+ }, 1032, ["id", "to"]),
10211
+ k(C.$slots, "custom-seperator", {
10212
+ id: `${C.id}-separator-${M}`
10213
+ }, () => [
10214
+ M !== C.items.length - 1 && V.seperator ? (l(), D(R, {
9984
10215
  key: 0,
10216
+ id: `${C.id}-separator-${M}`,
9985
10217
  class: "r-breadcrumb__separator",
9986
10218
  name: V.seperator
9987
- }, null, 8, ["name"])) : O("", !0)
10219
+ }, null, 8, ["id", "name"])) : g("", !0)
9988
10220
  ])
9989
10221
  ]))), 128))
9990
- ]);
10222
+ ], 8, u0);
9991
10223
  };
9992
10224
  }
9993
- }), $3 = { class: "r-pagination__paginator" }, U3 = { class: "r-pagination__paginator__per-page" }, z3 = { class: "r-pagination__paginator__info" }, K3 = ["disabled"], q3 = /* @__PURE__ */ u("path", {
10225
+ }), s0 = ["id"], c0 = ["id"], p0 = ["id"], O0 = ["id"], f0 = ["id", "disabled"], h0 = /* @__PURE__ */ Z("path", {
9994
10226
  d: "M0 0h24v24H0z",
9995
10227
  fill: "none",
9996
10228
  stroke: "none"
9997
- }, null, -1), j3 = /* @__PURE__ */ u("path", { d: "M7 6v12" }, null, -1), X3 = /* @__PURE__ */ u("path", { d: "M18 6l-6 6l6 6" }, null, -1), Y3 = [
9998
- q3,
9999
- j3,
10000
- X3
10001
- ], J3 = ["disabled"], C0 = /* @__PURE__ */ u("path", {
10229
+ }, null, -1), g0 = /* @__PURE__ */ Z("path", { d: "M7 6v12" }, null, -1), k0 = /* @__PURE__ */ Z("path", { d: "M18 6l-6 6l6 6" }, null, -1), B0 = [
10230
+ h0,
10231
+ g0,
10232
+ k0
10233
+ ], b0 = ["id", "disabled"], v0 = /* @__PURE__ */ Z("path", {
10002
10234
  d: "M0 0h24v24H0z",
10003
10235
  fill: "none",
10004
10236
  stroke: "none"
10005
- }, null, -1), H0 = /* @__PURE__ */ u("path", { d: "M15 6l-6 6l6 6" }, null, -1), V0 = [
10006
- C0,
10007
- H0
10008
- ], L0 = ["disabled"], M0 = /* @__PURE__ */ u("path", {
10237
+ }, null, -1), w0 = /* @__PURE__ */ Z("path", { d: "M15 6l-6 6l6 6" }, null, -1), y0 = [
10238
+ v0,
10239
+ w0
10240
+ ], P0 = ["id", "disabled"], T0 = /* @__PURE__ */ Z("path", {
10009
10241
  d: "M0 0h24v24H0z",
10010
10242
  fill: "none",
10011
10243
  stroke: "none"
10012
- }, null, -1), i0 = /* @__PURE__ */ u("path", { d: "M9 6l6 6l-6 6" }, null, -1), A0 = [
10013
- M0,
10014
- i0
10015
- ], e0 = ["disabled"], d0 = /* @__PURE__ */ u("path", {
10244
+ }, null, -1), F0 = /* @__PURE__ */ Z("path", { d: "M9 6l6 6l-6 6" }, null, -1), R0 = [
10245
+ T0,
10246
+ F0
10247
+ ], x0 = ["id", "disabled"], D0 = /* @__PURE__ */ Z("path", {
10016
10248
  d: "M0 0h24v24H0z",
10017
10249
  fill: "none",
10018
10250
  stroke: "none"
10019
- }, null, -1), t0 = /* @__PURE__ */ u("path", { d: "M6 6l6 6l-6 6" }, null, -1), m0 = /* @__PURE__ */ u("path", { d: "M17 5v13" }, null, -1), l0 = [
10020
- d0,
10021
- t0,
10022
- m0
10023
- ], y0 = /* @__PURE__ */ R({
10251
+ }, null, -1), E0 = /* @__PURE__ */ Z("path", { d: "M6 6l6 6l-6 6" }, null, -1), _0 = /* @__PURE__ */ Z("path", { d: "M17 5v13" }, null, -1), $0 = [
10252
+ D0,
10253
+ E0,
10254
+ _0
10255
+ ], l7 = /* @__PURE__ */ T({
10024
10256
  __name: "RPagination",
10025
10257
  props: {
10026
10258
  page: { default: 1 },
@@ -10029,57 +10261,71 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10029
10261
  perPageOptions: { default: () => [10, 20, 50, 100] },
10030
10262
  itemsPerPageText: { default: "Items per page:" },
10031
10263
  position: { default: "right" },
10032
- infoText: { default: "1-10 of 100" }
10264
+ infoText: { default: "1-10 of 100" },
10265
+ id: { default: "r-pagination" }
10033
10266
  },
10034
10267
  emits: ["update:page", "update:perPage", "update:info"],
10035
10268
  setup(H, { emit: V }) {
10036
- const C = H, M = V, i = E(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), A = g(() => ({
10269
+ const C = H, i = V, A = E(C.perPage || 10), L = f(() => Math.ceil(C.totalItems / C.perPage)), M = f(() => ({
10037
10270
  start: C.page * C.perPage - C.perPage,
10038
10271
  end: C.page * C.perPage
10039
- })), e = g(() => C.infoText || `${A.value.start + 1}-${A.value.end} of ${C.totalItems}`), d = g(() => +C.page == +L.value), m = g(() => +C.page == 1);
10040
- G(() => A.value, () => {
10041
- M("update:info", A.value);
10042
- }), G(() => C.perPage, () => {
10043
- i.value = C.perPage, o(1);
10272
+ })), e = f(() => C.infoText || `${M.value.start + 1}-${M.value.end} of ${C.totalItems}`), d = f(() => +C.page == +L.value), m = f(() => +C.page == 1);
10273
+ W(() => M.value, () => {
10274
+ i("update:info", M.value);
10275
+ }), W(() => C.perPage, () => {
10276
+ A.value = C.perPage, n(1);
10044
10277
  });
10045
- function o(n) {
10046
- const l = Math.ceil(n);
10047
- l < 1 || l > L.value || M("update:page", l);
10278
+ function n(o) {
10279
+ const r = Math.ceil(o);
10280
+ r < 1 || r > L.value || i("update:page", r);
10048
10281
  }
10049
- function a({ value: n }) {
10050
- if (n) {
10051
- M("update:perPage", n);
10282
+ function u({ value: o }) {
10283
+ if (o) {
10284
+ i("update:perPage", o);
10052
10285
  return;
10053
10286
  }
10054
- M("update:perPage", 10);
10287
+ i("update:perPage", 10);
10055
10288
  }
10056
- return (n, l) => (t(), r("div", {
10057
- class: p(["r-pagination", [`r-pagination--${C.position}`]])
10289
+ return (o, r) => (l(), a("div", {
10290
+ id: o.id,
10291
+ class: O(["r-pagination", [`r-pagination--${C.position}`]])
10058
10292
  }, [
10059
- u("div", $3, [
10060
- u("div", U3, [
10061
- u("span", null, b(C.itemsPerPageText), 1),
10062
- q(t3, {
10063
- modelValue: i.value,
10293
+ Z("div", {
10294
+ id: `${o.id}-paginator`,
10295
+ class: "r-pagination__paginator"
10296
+ }, [
10297
+ Z("div", {
10298
+ id: `${o.id}-paginator-per-page`,
10299
+ class: "r-pagination__paginator__per-page"
10300
+ }, [
10301
+ Z("span", null, v(C.itemsPerPageText), 1),
10302
+ H1(P3, {
10303
+ modelValue: A.value,
10064
10304
  "onUpdate:modelValue": [
10065
- l[0] || (l[0] = (S) => i.value = S),
10066
- a
10305
+ r[0] || (r[0] = (S) => A.value = S),
10306
+ u
10067
10307
  ],
10068
10308
  class: "w-24",
10069
10309
  "hide-details": "",
10070
10310
  "hide-option-check-icon": "",
10071
10311
  options: C.perPageOptions
10072
10312
  }, null, 8, ["modelValue", "options"])
10073
- ]),
10074
- u("span", z3, b(e.value), 1),
10075
- u("button", {
10313
+ ], 8, p0),
10314
+ Z("span", {
10315
+ id: `${o.id}-paginator-info`,
10316
+ class: "r-pagination__paginator__info"
10317
+ }, v(e.value), 9, O0),
10318
+ Z("button", {
10319
+ id: `${o.id}-paginator-first`,
10076
10320
  class: "r-pagination__paginator__first",
10077
10321
  disabled: m.value,
10078
- onClick: l[1] || (l[1] = (S) => o(1))
10322
+ onClick: r[1] || (r[1] = (S) => n(1))
10079
10323
  }, [
10080
- h(n.$slots, "first", {}, () => [
10081
- (t(), r("svg", {
10082
- class: p(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": m.value }]),
10324
+ k(o.$slots, "first", {
10325
+ id: `${o.id}-paginator-first-slot`
10326
+ }, () => [
10327
+ (l(), a("svg", {
10328
+ class: O(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": m.value }]),
10083
10329
  fill: "none",
10084
10330
  height: "20",
10085
10331
  stroke: "#000000",
@@ -10089,17 +10335,20 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10089
10335
  viewBox: "0 0 24 24",
10090
10336
  width: "20",
10091
10337
  xmlns: "http://www.w3.org/2000/svg"
10092
- }, Y3, 2))
10338
+ }, B0, 2))
10093
10339
  ])
10094
- ], 8, K3),
10095
- u("button", {
10340
+ ], 8, f0),
10341
+ Z("button", {
10342
+ id: `${o.id}-paginator-prev`,
10096
10343
  class: "r-pagination__paginator__prev",
10097
10344
  disabled: m.value,
10098
- onClick: l[2] || (l[2] = (S) => o(+C.page - 1))
10345
+ onClick: r[2] || (r[2] = (S) => n(+C.page - 1))
10099
10346
  }, [
10100
- h(n.$slots, "prev", {}, () => [
10101
- (t(), r("svg", {
10102
- class: p(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": m.value }]),
10347
+ k(o.$slots, "prev", {
10348
+ id: `${o.id}-paginator-prev-slot`
10349
+ }, () => [
10350
+ (l(), a("svg", {
10351
+ class: O(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": m.value }]),
10103
10352
  fill: "none",
10104
10353
  height: "20",
10105
10354
  stroke: "#000000",
@@ -10109,17 +10358,20 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10109
10358
  viewBox: "0 0 24 24",
10110
10359
  width: "20",
10111
10360
  xmlns: "http://www.w3.org/2000/svg"
10112
- }, V0, 2))
10361
+ }, y0, 2))
10113
10362
  ])
10114
- ], 8, J3),
10115
- u("button", {
10363
+ ], 8, b0),
10364
+ Z("button", {
10365
+ id: `${o.id}-paginator-next`,
10116
10366
  class: "r-pagination__paginator__next",
10117
10367
  disabled: d.value,
10118
- onClick: l[3] || (l[3] = (S) => o(+C.page + 1))
10368
+ onClick: r[3] || (r[3] = (S) => n(+C.page + 1))
10119
10369
  }, [
10120
- h(n.$slots, "next", {}, () => [
10121
- (t(), r("svg", {
10122
- class: p(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": d.value }]),
10370
+ k(o.$slots, "next", {
10371
+ id: `${o.id}-paginator-next-slot`
10372
+ }, () => [
10373
+ (l(), a("svg", {
10374
+ class: O(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": d.value }]),
10123
10375
  fill: "none",
10124
10376
  height: "20",
10125
10377
  stroke: "#000000",
@@ -10129,17 +10381,20 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10129
10381
  viewBox: "0 0 24 24",
10130
10382
  width: "20",
10131
10383
  xmlns: "http://www.w3.org/2000/svg"
10132
- }, A0, 2))
10384
+ }, R0, 2))
10133
10385
  ])
10134
- ], 8, L0),
10135
- u("button", {
10386
+ ], 8, P0),
10387
+ Z("button", {
10388
+ id: `${o.id}-paginator-last`,
10136
10389
  class: "r-pagination__paginator__last",
10137
10390
  disabled: C.page === L.value,
10138
- onClick: l[4] || (l[4] = (S) => o(L.value))
10391
+ onClick: r[4] || (r[4] = (S) => n(L.value))
10139
10392
  }, [
10140
- h(n.$slots, "last", {}, () => [
10141
- (t(), r("svg", {
10142
- class: p(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": d.value }]),
10393
+ k(o.$slots, "last", {
10394
+ id: `${o.id}-paginator-last-slot`
10395
+ }, () => [
10396
+ (l(), a("svg", {
10397
+ class: O(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": d.value }]),
10143
10398
  fill: "none",
10144
10399
  height: "20",
10145
10400
  stroke: "#000000",
@@ -10149,30 +10404,32 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10149
10404
  viewBox: "0 0 24 24",
10150
10405
  width: "20",
10151
10406
  xmlns: "http://www.w3.org/2000/svg"
10152
- }, l0, 2))
10407
+ }, $0, 2))
10153
10408
  ])
10154
- ], 8, e0)
10155
- ])
10156
- ], 2));
10409
+ ], 8, x0)
10410
+ ], 8, c0)
10411
+ ], 10, s0));
10157
10412
  }
10158
- }), o0 = ["value"], P0 = /* @__PURE__ */ R({
10413
+ }), W0 = ["id", "value"], o7 = /* @__PURE__ */ T({
10159
10414
  __name: "RProgressbar",
10160
10415
  props: {
10161
10416
  value: { default: 0 },
10162
- height: { default: 8 }
10417
+ height: { default: 8 },
10418
+ id: { default: "r-progressbar" }
10163
10419
  },
10164
10420
  setup(H) {
10165
10421
  const V = H;
10166
- return (C, M) => (t(), r("progress", {
10422
+ return (C, i) => (l(), a("progress", {
10423
+ id: C.id,
10167
10424
  "aria-valuemax": 100,
10168
10425
  class: "r-progressbar",
10169
10426
  max: 100,
10170
10427
  role: "progressbar",
10171
- style: G1({ height: `${V.height}px` }),
10428
+ style: j1({ height: `${V.height}px` }),
10172
10429
  value: V.value
10173
- }, null, 12, o0));
10430
+ }, null, 12, W0));
10174
10431
  }
10175
- }), g1 = "rocket-ui:r-item-group", T0 = /* @__PURE__ */ R({
10432
+ }), w1 = "rocket-ui:r-item-group", n7 = /* @__PURE__ */ T({
10176
10433
  __name: "RItemGroup",
10177
10434
  props: {
10178
10435
  modelValue: { default: () => [] },
@@ -10181,65 +10438,66 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10181
10438
  mandatory: { type: Boolean, default: !1 },
10182
10439
  max: { default: 0 },
10183
10440
  as: { default: "div" },
10184
- multiple: { type: Boolean }
10441
+ multiple: { type: Boolean },
10442
+ id: { default: "r-item-group" }
10185
10443
  },
10186
10444
  emits: ["update:modelValue"],
10187
10445
  setup(H, { emit: V }) {
10188
- const C = H, M = V, i = E(C.as ?? "div"), L = E(C.modelValue), A = g(() => C.selectedClass);
10189
- f1(`${g1}:selectedClass`, A.value);
10190
- function e(o) {
10191
- return L.value.includes(o);
10446
+ const C = H, i = V, A = E(C.as ?? "div"), L = E(C.modelValue), M = f(() => C.selectedClass);
10447
+ b1(`${w1}:selectedClass`, M.value);
10448
+ function e(n) {
10449
+ return L.value.includes(n);
10192
10450
  }
10193
- f1(`${g1}:isSelected`, e);
10194
- function d(o, a) {
10195
- C.disabled || C.mandatory && L.value.length === 1 && !a || C.max && L.value.length === C.max && a || (C.multiple ? a ? L.value.push(o) : L.value = L.value.filter((n) => n !== o) : L.value = o ? [o] : [], M("update:modelValue", L.value));
10451
+ b1(`${w1}:isSelected`, e);
10452
+ function d(n, u) {
10453
+ C.disabled || C.mandatory && L.value.length === 1 && !u || C.max && L.value.length === C.max && u || (C.multiple ? u ? L.value.push(n) : L.value = L.value.filter((o) => o !== n) : L.value = n ? [n] : [], i("update:modelValue", L.value));
10196
10454
  }
10197
- f1(`${g1}:select`, d);
10455
+ b1(`${w1}:select`, d);
10198
10456
  function m() {
10199
10457
  return C.disabled;
10200
10458
  }
10201
- return f1(`${g1}:isDisabled`, m), G(() => C.modelValue, () => {
10459
+ return b1(`${w1}:isDisabled`, m), W(() => C.modelValue, () => {
10202
10460
  L.value = C.modelValue;
10203
- }), (o, a) => (t(), _(w2(i.value), null, {
10204
- default: B1(() => [
10205
- h(o.$slots, "default", {
10461
+ }), (n, u) => (l(), D(R2(A.value), { id: n.id }, {
10462
+ default: P1(() => [
10463
+ k(n.$slots, "default", {
10464
+ id: `${n.id}-slot`,
10206
10465
  isSelected: e,
10207
10466
  select: d,
10208
10467
  selected: L.value
10209
10468
  })
10210
10469
  ]),
10211
10470
  _: 3
10212
- }));
10471
+ }, 8, ["id"]));
10213
10472
  }
10214
- }), k1 = "rocket-ui:r-item-group", F0 = /* @__PURE__ */ R({
10473
+ }), y1 = "rocket-ui:r-item-group", r7 = /* @__PURE__ */ T({
10215
10474
  __name: "RItem",
10216
10475
  props: {
10217
10476
  value: { default: null },
10218
- selectedClass: { default: "" }
10477
+ selectedClass: { default: "" },
10478
+ id: { default: "r-item" }
10219
10479
  },
10220
10480
  setup(H) {
10221
- const V = H, C = h1(`${k1}:isSelected`), M = h1(`${k1}:selectedClass`, ""), i = h1(`${k1}:select`), L = h1(`${k1}:isDisabled`), A = g(() => C(V.value) && [M, V.selectedClass]);
10481
+ const V = H, C = v1(`${y1}:isSelected`), i = v1(`${y1}:selectedClass`, ""), A = v1(`${y1}:select`), L = v1(`${y1}:isDisabled`), M = f(() => C(V.value) && [i, V.selectedClass]);
10222
10482
  function e() {
10223
- V.disabled || i(V.value, !C(V.value));
10483
+ V.disabled || A(V.value, !C(V.value));
10224
10484
  }
10225
10485
  function d() {
10226
- V.disabled || i(V.value, !0);
10486
+ V.disabled || A(V.value, !0);
10227
10487
  }
10228
- return (m, o) => h(m.$slots, "default", {
10229
- disabled: J(L)(V.value),
10230
- isSelected: J(C)(V.value),
10488
+ return (m, n) => k(m.$slots, "default", {
10489
+ id: `${m.id}-slot`,
10490
+ disabled: z(L)(V.value),
10491
+ isSelected: z(C)(V.value),
10231
10492
  select: d,
10232
- selectedClass: A.value,
10493
+ selectedClass: M.value,
10233
10494
  toggle: e
10234
10495
  });
10235
10496
  }
10236
- }), n0 = ["id", "checked", "disabled", "name", "value"], r0 = { class: "flex flex-col" }, a0 = {
10237
- key: 1,
10238
- class: "r-radio__error"
10239
- }, R0 = /* @__PURE__ */ R({
10497
+ }), N0 = ["id"], I0 = ["id", "checked", "disabled", "name", "value"], Q0 = ["id"], G0 = ["id"], U0 = { class: "flex flex-col" }, z0 = ["id"], K0 = ["id"], q0 = ["id"], a7 = /* @__PURE__ */ T({
10240
10498
  __name: "RRadio",
10241
10499
  props: {
10242
- id: { default: "radio-id" },
10500
+ id: { default: "" },
10243
10501
  modelValue: { type: Boolean, default: !1 },
10244
10502
  name: { default: "radio-group" },
10245
10503
  disabled: { type: Boolean, default: !1 },
@@ -10251,75 +10509,84 @@ const w3 = ["aria-disabled", "aria-selected", "disabled"], v3 = { key: 0 }, y3 =
10251
10509
  },
10252
10510
  emits: ["update:modelValue"],
10253
10511
  setup(H) {
10254
- const V = H, C = E(V.modelValue), M = g(() => [
10512
+ const V = H, C = f(() => V.id || "r-radio"), i = E(V.modelValue), A = f(() => [
10255
10513
  "r-radio group",
10256
10514
  {
10257
10515
  "r-radio--disabled": V.disabled,
10258
10516
  "r-radio--error": V.errorMsg
10259
10517
  }
10260
10518
  ]);
10261
- return G(() => V.modelValue, (i) => {
10262
- C.value = i;
10263
- }, { immediate: !0 }), (i, L) => (t(), r("div", {
10264
- class: p(M.value)
10519
+ return W(() => V.modelValue, (L) => {
10520
+ i.value = L;
10521
+ }, { immediate: !0 }), (L, M) => (l(), a("div", {
10522
+ id: C.value,
10523
+ class: O(A.value)
10265
10524
  }, [
10266
- u("input", T1(i.$attrs, {
10267
- id: V.id,
10268
- checked: C.value,
10525
+ Z("input", E1(L.$attrs, {
10526
+ id: `${C.value}-input`,
10527
+ checked: i.value,
10269
10528
  class: "r-radio__input",
10270
10529
  disabled: V.disabled,
10271
10530
  name: V.name,
10272
10531
  type: "radio",
10273
10532
  value: V.value,
10274
- onChange: L[0] || (L[0] = (A) => i.$emit("update:modelValue"))
10275
- }), null, 16, n0),
10276
- u("span", {
10277
- class: p(["r-radio__label", [V.errorMsg && "r-radio__label--error"]]),
10278
- onClick: L[1] || (L[1] = (A) => i.$emit("update:modelValue"))
10533
+ onChange: M[0] || (M[0] = (e) => L.$emit("update:modelValue"))
10534
+ }), null, 16, I0),
10535
+ Z("span", {
10536
+ id: `${C.value}-label`,
10537
+ class: O(["r-radio__label", [V.errorMsg && "r-radio__label--error"]]),
10538
+ onClick: M[1] || (M[1] = (e) => L.$emit("update:modelValue"))
10279
10539
  }, [
10280
- u("span", {
10281
- class: p(["r-radio__custom", [V.errorMsg && "r-radio__custom--error", V.disabled && "r-radio__custom--disabled"]])
10282
- }, null, 2),
10283
- u("div", r0, [
10284
- V.title ? (t(), r("span", {
10540
+ Z("span", {
10541
+ id: `${C.value}-custom`,
10542
+ class: O(["r-radio__custom", [V.errorMsg && "r-radio__custom--error", V.disabled && "r-radio__custom--disabled"]])
10543
+ }, null, 10, G0),
10544
+ Z("div", U0, [
10545
+ V.title ? (l(), a("span", {
10285
10546
  key: 0,
10286
- class: p(["r-radio__title", [V.errorMsg && "r-radio__title--error", V.disabled && "r-radio__title--disabled"]])
10287
- }, b(V.title), 3)) : O("", !0),
10288
- u("span", null, b(V.label), 1)
10547
+ id: `${C.value}-title`,
10548
+ class: O(["r-radio__title", [V.errorMsg && "r-radio__title--error", V.disabled && "r-radio__title--disabled"]])
10549
+ }, v(V.title), 11, z0)) : g("", !0),
10550
+ Z("span", null, v(V.label), 1)
10289
10551
  ])
10290
- ], 2),
10291
- V.hint && !V.errorMsg ? (t(), r("span", {
10552
+ ], 10, Q0),
10553
+ V.hint && !V.errorMsg ? (l(), a("span", {
10292
10554
  key: 0,
10293
- class: p(["r-radio__hint", [V.disabled && "r-radio__hint--disabled"]])
10294
- }, b(V.hint), 3)) : O("", !0),
10295
- V.errorMsg ? (t(), r("span", a0, b(V.errorMsg), 1)) : O("", !0)
10296
- ], 2));
10555
+ id: `${C.value}-hint`,
10556
+ class: O(["r-radio__hint", [V.disabled && "r-radio__hint--disabled"]])
10557
+ }, v(V.hint), 11, K0)) : g("", !0),
10558
+ V.errorMsg ? (l(), a("span", {
10559
+ key: 1,
10560
+ id: `${C.value}-error`,
10561
+ class: "r-radio__error"
10562
+ }, v(V.errorMsg), 9, q0)) : g("", !0)
10563
+ ], 10, N0));
10297
10564
  }
10298
10565
  });
10299
10566
  export {
10300
- u0 as RAccordion,
10301
- S0 as RAlert,
10302
- s0 as RAvatar,
10303
- c0 as RBadge,
10304
- v0 as RBreadcrumb,
10305
- p0 as RButton,
10306
- O0 as RCheckbox,
10307
- V5 as RChip,
10308
- t3 as RDropdown,
10309
- D as RIcon,
10310
- F0 as RItem,
10311
- T0 as RItemGroup,
10312
- O2 as RLabel,
10313
- f0 as RModal,
10314
- y0 as RPagination,
10315
- P0 as RProgressbar,
10316
- R0 as RRadio,
10317
- h0 as RSidebar,
10318
- g0 as RSnackbar,
10319
- k0 as RSwitch,
10320
- y3 as RTabItem,
10321
- B0 as RTabs,
10322
- b0 as RTextArea,
10323
- w0 as RTextfield,
10324
- U5 as RTooltip
10567
+ X0 as RAccordion,
10568
+ Y0 as RAlert,
10569
+ J0 as RAvatar,
10570
+ C7 as RBadge,
10571
+ m7 as RBreadcrumb,
10572
+ H7 as RButton,
10573
+ V7 as RCheckbox,
10574
+ S5 as RChip,
10575
+ P3 as RDropdown,
10576
+ R as RIcon,
10577
+ r7 as RItem,
10578
+ n7 as RItemGroup,
10579
+ b2 as RLabel,
10580
+ L7 as RModal,
10581
+ l7 as RPagination,
10582
+ o7 as RProgressbar,
10583
+ a7 as RRadio,
10584
+ M7 as RSidebar,
10585
+ i7 as RSnackbar,
10586
+ A7 as RSwitch,
10587
+ V0 as RTabItem,
10588
+ e7 as RTabs,
10589
+ d7 as RTextArea,
10590
+ t7 as RTextfield,
10591
+ t3 as RTooltip
10325
10592
  };