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