@rocketui/vue 0.0.72 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as F, openBlock as m, createElementBlock as a, createElementVNode as Z, unref as h, reactive as J, Fragment as U, renderList as Y, normalizeClass as g, renderSlot as b, toDisplayString as y, createVNode as q, computed as k, createCommentVNode as B, mergeProps as V2, createBlock as R, watch as W, getCurrentScope as L2, onScopeDispose as M2, ref as D, onMounted as E1, withDirectives as _1, withKeys as k1, vModelText as A2, createTextVNode as W1, withModifiers as z, normalizeStyle as p1, vShow as i2, watchEffect as e2, Teleport as d2, resolveComponent as t2, withCtx as N1, provide as a1, resolveDynamicComponent as m2, inject as Z1 } from "vue";
2
- const l2 = {
1
+ import { defineComponent as F, openBlock as m, createElementBlock as a, createElementVNode as u, unref as p, reactive as J, Fragment as z, renderList as q, normalizeClass as g, renderSlot as b, toDisplayString as y, createVNode as $, computed as k, createCommentVNode as B, mergeProps as L2, createBlock as R, watch as W, getCurrentScope as M2, onScopeDispose as A2, ref as D, watchEffect as i2, onMounted as _1, Teleport as e2, withCtx as d1, withModifiers as X, withDirectives as W1, withKeys as B1, vModelText as d2, createTextVNode as N1, normalizeStyle as h1, vShow as t2, resolveComponent as m2, provide as Z1, resolveDynamicComponent as l2, inject as u1 } from "vue";
2
+ const o2 = {
3
3
  mdiAbTesting: "M4 2A2 2 0 0 0 2 4V12H4V8H6V12H8V4A2 2 0 0 0 6 2H4M4 4H6V6H4M22 15.5V14A2 2 0 0 0 20 12H16V22H20A2 2 0 0 0 22 20V18.5A1.54 1.54 0 0 0 20.5 17A1.54 1.54 0 0 0 22 15.5M20 20H18V18H20V20M20 16H18V14H20M5.79 21.61L4.21 20.39L18.21 2.39L19.79 3.61Z",
4
4
  mdiAbacus: "M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",
5
5
  mdiAbjadArabic: "M12 4C10.08 4 8.5 5.58 8.5 7.5C8.5 8.43 8.88 9.28 9.5 9.91C7.97 10.91 7 12.62 7 14.5C7 17.53 9.47 20 12.5 20C14.26 20 16 19.54 17.5 18.66L16.5 16.93C15.28 17.63 13.9 18 12.5 18C10.56 18 9 16.45 9 14.5C9 12.91 10.06 11.53 11.59 11.12L16.8 9.72L16.28 7.79L11.83 9C11.08 8.9 10.5 8.28 10.5 7.5C10.5 6.66 11.16 6 12 6C12.26 6 12.5 6.07 12.75 6.2L13.75 4.47C13.22 4.16 12.61 4 12 4Z",
@@ -7296,7 +7296,7 @@ const l2 = {
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
- }, o2 = ["height", "viewBox", "width"], n2 = ["d"], x = /* @__PURE__ */ F({
7299
+ }, n2 = ["height", "viewBox", "width"], r2 = ["d"], x = /* @__PURE__ */ F({
7300
7300
  __name: "RIcon",
7301
7301
  props: {
7302
7302
  name: { default: "" },
@@ -7311,32 +7311,32 @@ const l2 = {
7311
7311
  viewBox: V.viewBox,
7312
7312
  width: V.size
7313
7313
  }, [
7314
- Z("path", {
7315
- d: h(l2)[V.name]
7316
- }, null, 8, n2)
7317
- ], 8, o2));
7314
+ u("path", {
7315
+ d: p(o2)[V.name]
7316
+ }, null, 8, r2)
7317
+ ], 8, n2));
7318
7318
  }
7319
7319
  });
7320
- const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title" }, u2 = { class: "r-accordion__icon" }, S2 = { class: "r-accordion__content" }, n3 = /* @__PURE__ */ F({
7320
+ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title" }, S2 = { class: "r-accordion__icon" }, c2 = { class: "r-accordion__content" }, Z3 = /* @__PURE__ */ F({
7321
7321
  __name: "RAccordion",
7322
7322
  props: {
7323
7323
  accordions: null
7324
7324
  },
7325
7325
  setup(H) {
7326
7326
  const V = H, C = J(
7327
- V.accordions.map(({ title: A, content: M }, i) => ({
7328
- title: A,
7329
- content: M,
7327
+ V.accordions.map(({ title: M, content: A }, i) => ({
7328
+ title: M,
7329
+ content: A,
7330
7330
  open: V.accordions[i].open || !1,
7331
7331
  disabled: V.accordions[i].disabled || !1
7332
7332
  }))
7333
7333
  );
7334
- function L(A) {
7335
- C[A].disabled || C.forEach((M, i) => {
7336
- C[i].open = i === A ? !C[i].open : !1;
7334
+ function L(M) {
7335
+ C[M].disabled || C.forEach((A, i) => {
7336
+ C[i].open = i === M ? !C[i].open : !1;
7337
7337
  });
7338
7338
  }
7339
- return (A, M) => (m(!0), a(U, null, Y(C, (i, e) => (m(), a("div", {
7339
+ return (M, A) => (m(!0), a(z, null, q(C, (i, e) => (m(), a("div", {
7340
7340
  key: e,
7341
7341
  class: g({
7342
7342
  "r-accordion": !0,
@@ -7344,31 +7344,31 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7344
7344
  }),
7345
7345
  "data-state": i.open ? "opened" : "closed"
7346
7346
  }, [
7347
- Z("div", {
7347
+ u("div", {
7348
7348
  class: "r-accordion__header",
7349
7349
  onClick: (d) => L(e)
7350
7350
  }, [
7351
- b(A.$slots, "title", {}, () => [
7352
- Z("div", Z2, y(i.title), 1)
7351
+ b(M.$slots, "title", {}, () => [
7352
+ u("div", u2, y(i.title), 1)
7353
7353
  ]),
7354
- Z("div", u2, [
7355
- q(x, { name: "mdiChevronUp" })
7354
+ u("div", S2, [
7355
+ $(x, { name: "mdiChevronUp" })
7356
7356
  ])
7357
- ], 8, a2),
7358
- Z("div", S2, [
7359
- b(A.$slots, "content", {}, () => [
7360
- Z("span", null, y(i.content), 1)
7357
+ ], 8, Z2),
7358
+ u("div", c2, [
7359
+ b(M.$slots, "content", {}, () => [
7360
+ u("span", null, y(i.content), 1)
7361
7361
  ])
7362
7362
  ])
7363
- ], 10, r2))), 128));
7363
+ ], 10, a2))), 128));
7364
7364
  }
7365
- }), c2 = { class: "r-alert__icon" }, s2 = { class: "r-alert__content" }, O2 = { class: "r-alert__content__title" }, p2 = {
7365
+ }), s2 = { class: "r-alert__icon" }, O2 = { class: "r-alert__content" }, p2 = { class: "r-alert__content__title" }, h2 = {
7366
7366
  key: 0,
7367
7367
  class: "r-alert__content__description"
7368
- }, h2 = {
7368
+ }, f2 = {
7369
7369
  key: 0,
7370
7370
  class: "r-alert__close"
7371
- }, r3 = /* @__PURE__ */ F({
7371
+ }, u3 = /* @__PURE__ */ F({
7372
7372
  __name: "RAlert",
7373
7373
  props: {
7374
7374
  type: { default: "info" },
@@ -7385,48 +7385,48 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7385
7385
  [`r-alert--${C.variant}`]: !0,
7386
7386
  "r-alert--block": C.block,
7387
7387
  [`r-alert--${C.variant}--${C.type}`]: !0
7388
- })), A = k(() => ({
7388
+ })), M = k(() => ({
7389
7389
  success: "mdiCheckCircle",
7390
7390
  error: "mdiAlertCircle",
7391
7391
  warning: "mdiAlert",
7392
7392
  info: "mdiInformation"
7393
- })[C.type]), M = () => {
7393
+ })[C.type]), A = () => {
7394
7394
  V("close");
7395
7395
  };
7396
7396
  return (i, e) => (m(), a("div", {
7397
- class: g(h(L))
7397
+ class: g(p(L))
7398
7398
  }, [
7399
- Z("div", c2, [
7399
+ u("div", s2, [
7400
7400
  b(i.$slots, "alert-icon", {}, () => [
7401
- q(x, {
7402
- name: h(A),
7401
+ $(x, {
7402
+ name: p(M),
7403
7403
  size: 24
7404
7404
  }, null, 8, ["name"])
7405
7405
  ])
7406
7406
  ]),
7407
- Z("div", s2, [
7407
+ u("div", O2, [
7408
7408
  b(i.$slots, "content", {}, () => [
7409
- Z("p", O2, y(C.title), 1),
7410
- C.description ? (m(), a("p", p2, y(C.description), 1)) : B("", !0)
7409
+ u("p", p2, y(C.title), 1),
7410
+ C.description ? (m(), a("p", h2, y(C.description), 1)) : B("", !0)
7411
7411
  ])
7412
7412
  ]),
7413
- C.closable ? (m(), a("div", h2, [
7413
+ C.closable ? (m(), a("div", f2, [
7414
7414
  b(i.$slots, "custom-close", {}, () => [
7415
- q(x, {
7415
+ $(x, {
7416
7416
  class: "r-alert__close__button",
7417
7417
  name: "mdiClose",
7418
7418
  size: 16,
7419
- onClick: M
7419
+ onClick: A
7420
7420
  })
7421
7421
  ])
7422
7422
  ])) : B("", !0)
7423
7423
  ], 2));
7424
7424
  }
7425
- }), B1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", f2 = { class: "r-avatar__wrapper" }, g2 = ["alt", "src"], a3 = /* @__PURE__ */ F({
7425
+ }), b1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", g2 = { class: "r-avatar__wrapper" }, k2 = ["alt", "src"], S3 = /* @__PURE__ */ F({
7426
7426
  __name: "RAvatar",
7427
7427
  props: {
7428
7428
  type: { default: "image" },
7429
- src: { default: B1 },
7429
+ src: { default: b1 },
7430
7430
  alt: { default: "Avatar" },
7431
7431
  size: { default: "2xl" },
7432
7432
  online: { type: Boolean, default: !1 },
@@ -7436,27 +7436,27 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7436
7436
  const V = H, C = k(() => ({
7437
7437
  "r-avatar": !0,
7438
7438
  [`r-avatar--${V.size}`]: !0
7439
- })), L = k(() => V.type === "image" && !V.src), A = k(() => L.value ? B1 : V.src), M = (i) => {
7439
+ })), L = k(() => V.type === "image" && !V.src), M = k(() => L.value ? b1 : V.src), A = (i) => {
7440
7440
  const e = i.split(" ");
7441
7441
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7442
7442
  };
7443
- return (i, e) => (m(), a("div", f2, [
7444
- Z("div", {
7445
- class: g(h(C))
7443
+ return (i, e) => (m(), a("div", g2, [
7444
+ u("div", {
7445
+ class: g(p(C))
7446
7446
  }, [
7447
7447
  V.type === "text" ? (m(), a("p", {
7448
7448
  key: 0,
7449
7449
  class: g({ "r-avatar__text": !0, [`r-avatar__text--${V.size}`]: !0 })
7450
- }, y(M(V.text)), 3)) : (m(), a("img", {
7450
+ }, y(A(V.text)), 3)) : (m(), a("img", {
7451
7451
  key: 1,
7452
7452
  alt: V.alt,
7453
7453
  class: g({
7454
7454
  "r-avatar__image": !0,
7455
7455
  [`r-avatar__image--${V.size}`]: !0,
7456
- "r-avatar__image--anonymous": h(L)
7456
+ "r-avatar__image--anonymous": p(L)
7457
7457
  }),
7458
- src: h(A)
7459
- }, null, 10, g2))
7458
+ src: p(M)
7459
+ }, null, 10, k2))
7460
7460
  ], 2),
7461
7461
  V.online ? (m(), a("span", {
7462
7462
  key: 0,
@@ -7467,7 +7467,7 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7467
7467
  }, null, 2)) : B("", !0)
7468
7468
  ]));
7469
7469
  }
7470
- }), k2 = { class: "r-badge-wrapper group" }, Z3 = /* @__PURE__ */ F({
7470
+ }), B2 = { class: "r-badge-wrapper group" }, c3 = /* @__PURE__ */ F({
7471
7471
  __name: "RBadge",
7472
7472
  props: {
7473
7473
  variant: { default: "primary" },
@@ -7489,15 +7489,15 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7489
7489
  "r-badge--no-content": !V.content,
7490
7490
  [`r-badge--${V.variant}`]: V.variant
7491
7491
  }));
7492
- return (L, A) => (m(), a("div", k2, [
7493
- Z("span", {
7494
- class: g(h(C)),
7495
- onClick: A[0] || (A[0] = (M) => L.$emit("click"))
7492
+ return (L, M) => (m(), a("div", B2, [
7493
+ u("span", {
7494
+ class: g(p(C)),
7495
+ onClick: M[0] || (M[0] = (A) => L.$emit("click"))
7496
7496
  }, y(V.content), 3),
7497
7497
  b(L.$slots, "default")
7498
7498
  ]));
7499
7499
  }
7500
- }), B2 = ["disabled"], u3 = /* @__PURE__ */ F({
7500
+ }), b2 = ["disabled"], s3 = /* @__PURE__ */ F({
7501
7501
  __name: "RButton",
7502
7502
  props: {
7503
7503
  variant: { default: "primary" },
@@ -7525,45 +7525,45 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7525
7525
  small: 20,
7526
7526
  medium: 24,
7527
7527
  large: 32
7528
- })[V.size || "medium"]), A = k(() => {
7529
- const { backgroundColor: M, height: i, color: e } = V;
7528
+ })[V.size || "medium"]), M = k(() => {
7529
+ const { backgroundColor: A, height: i, color: e } = V;
7530
7530
  return {
7531
- backgroundColor: M,
7531
+ backgroundColor: A,
7532
7532
  height: i ? `${i}px` : "",
7533
7533
  color: e
7534
7534
  };
7535
7535
  });
7536
- return (M, i) => (m(), a("button", V2(M.$attrs, {
7537
- class: h(C),
7536
+ return (A, i) => (m(), a("button", L2(A.$attrs, {
7537
+ class: p(C),
7538
7538
  disabled: H.disabled || H.loading,
7539
- style: h(A),
7540
- onClick: i[0] || (i[0] = (e) => M.$emit("click"))
7539
+ style: p(M),
7540
+ onClick: i[0] || (i[0] = (e) => A.$emit("click"))
7541
7541
  }), [
7542
- b(M.$slots, "custom-icon"),
7543
- !M.$slots["custom-icon"] && V.prependIcon ? (m(), R(x, {
7542
+ b(A.$slots, "custom-icon"),
7543
+ !A.$slots["custom-icon"] && V.prependIcon ? (m(), R(x, {
7544
7544
  key: 0,
7545
7545
  class: g(["r-button__prepend-icon", {
7546
7546
  "r-button__prepend-icon--only": V.onlyIcon
7547
7547
  }]),
7548
7548
  name: V.prependIcon,
7549
- size: h(L)
7549
+ size: p(L)
7550
7550
  }, null, 8, ["class", "name", "size"])) : B("", !0),
7551
- V.onlyIcon ? B("", !0) : b(M.$slots, "default", { key: 1 }),
7552
- !M.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (m(), R(x, {
7551
+ V.onlyIcon ? B("", !0) : b(A.$slots, "default", { key: 1 }),
7552
+ !A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (m(), R(x, {
7553
7553
  key: 2,
7554
7554
  class: "r-button__append-icon",
7555
7555
  name: V.appendIcon,
7556
- size: h(L)
7556
+ size: p(L)
7557
7557
  }, null, 8, ["name", "size"])) : B("", !0)
7558
- ], 16, B2));
7558
+ ], 16, b2));
7559
7559
  }
7560
- }), b2 = { class: "r-checkbox-wrapper" }, y2 = { class: "r-checkbox-container" }, w2 = ["id", "checked", "disabled", "indeterminate"], P2 = ["data-disabled"], T2 = { class: "r-checkbox-texts" }, v2 = ["data-disabled", "for"], F2 = {
7560
+ }), y2 = { class: "r-checkbox-wrapper" }, w2 = { class: "r-checkbox-container" }, P2 = ["id", "checked", "disabled", "indeterminate"], T2 = ["data-disabled"], v2 = { class: "r-checkbox-texts" }, F2 = ["data-disabled", "for"], R2 = {
7561
7561
  key: 0,
7562
7562
  class: "r-checkbox-texts__error"
7563
- }, R2 = {
7563
+ }, x2 = {
7564
7564
  key: 1,
7565
7565
  class: "r-checkbox-texts__hint"
7566
- }, S3 = /* @__PURE__ */ F({
7566
+ }, O3 = /* @__PURE__ */ F({
7567
7567
  __name: "RCheckbox",
7568
7568
  props: {
7569
7569
  id: { default: "" },
@@ -7579,11 +7579,11 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7579
7579
  const C = H, L = J({
7580
7580
  checked: !1,
7581
7581
  indeterminate: !1
7582
- }), A = {
7582
+ }), M = {
7583
7583
  checked: "mdiCheck",
7584
7584
  unchecked: "",
7585
7585
  indeterminate: "mdiMinus"
7586
- }, M = k(() => L.indeterminate ? A.indeterminate : L.checked ? A.checked : A.unchecked), i = k(() => ({
7586
+ }, A = k(() => L.indeterminate ? M.indeterminate : L.checked ? M.checked : M.unchecked), i = k(() => ({
7587
7587
  "r-checkbox": !0,
7588
7588
  "r-checkbox--checked": L.checked,
7589
7589
  "r-checkbox--disabled": C.disabled,
@@ -7612,9 +7612,9 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7612
7612
  // TODO: find a better way to do this
7613
7613
  immediate: !0
7614
7614
  }
7615
- ), (d, l) => (m(), a("div", b2, [
7616
- Z("div", y2, [
7617
- Z("input", {
7615
+ ), (d, l) => (m(), a("div", y2, [
7616
+ u("div", w2, [
7617
+ u("input", {
7618
7618
  id: C.id,
7619
7619
  checked: L.checked,
7620
7620
  class: "r-checkbox-container__input",
@@ -7622,28 +7622,28 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7622
7622
  indeterminate: L.indeterminate,
7623
7623
  type: "checkbox",
7624
7624
  onChange: e
7625
- }, null, 40, w2),
7626
- Z("div", {
7627
- class: g(h(i)),
7625
+ }, null, 40, P2),
7626
+ u("div", {
7627
+ class: g(p(i)),
7628
7628
  "data-disabled": C.disabled
7629
7629
  }, [
7630
- q(x, {
7631
- name: h(M),
7630
+ $(x, {
7631
+ name: p(A),
7632
7632
  size: 24
7633
7633
  }, null, 8, ["name"])
7634
- ], 10, P2)
7634
+ ], 10, T2)
7635
7635
  ]),
7636
- Z("div", T2, [
7637
- Z("label", {
7636
+ u("div", v2, [
7637
+ u("label", {
7638
7638
  class: "r-checkbox-texts__label",
7639
7639
  "data-disabled": C.disabled,
7640
7640
  for: C.id
7641
- }, y(C.label), 9, v2),
7642
- C.errorMsg ? (m(), a("p", F2, y(C.errorMsg), 1)) : (m(), a("p", R2, y(C.hint), 1))
7641
+ }, y(C.label), 9, F2),
7642
+ C.errorMsg ? (m(), a("p", R2, y(C.errorMsg), 1)) : (m(), a("p", x2, y(C.hint), 1))
7643
7643
  ])
7644
7644
  ]));
7645
7645
  }
7646
- }), x2 = { class: "r-chip__content__label" }, D2 = /* @__PURE__ */ F({
7646
+ }), D2 = { class: "r-chip__content__label" }, E2 = /* @__PURE__ */ F({
7647
7647
  __name: "RChip",
7648
7648
  props: {
7649
7649
  variant: { default: "primary" },
@@ -7661,17 +7661,17 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7661
7661
  "r-chip--disabled": C.disabled,
7662
7662
  [`r-chip__${C.variant}`]: C.variant,
7663
7663
  [`r-chip__${C.variant}--ghost`]: C.ghost
7664
- })), A = (i) => {
7664
+ })), M = (i) => {
7665
7665
  C.closable && i.stopPropagation(), !C.disabled && V("click:chip", i);
7666
- }, M = (i) => {
7666
+ }, A = (i) => {
7667
7667
  C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
7668
7668
  };
7669
7669
  return (i, e) => (m(), a("div", {
7670
- class: g(h(L))
7670
+ class: g(p(L))
7671
7671
  }, [
7672
- Z("div", {
7672
+ u("div", {
7673
7673
  class: "r-chip__content",
7674
- onClick: e[0] || (e[0] = (d) => A(d))
7674
+ onClick: e[0] || (e[0] = (d) => M(d))
7675
7675
  }, [
7676
7676
  b(i.$slots, "prepend", {}, () => [
7677
7677
  C.prependIcon ? (m(), R(x, {
@@ -7682,7 +7682,7 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7682
7682
  size: 12
7683
7683
  }, null, 8, ["aria-disabled", "name"])) : B("", !0)
7684
7684
  ]),
7685
- Z("span", x2, y(C.label), 1)
7685
+ u("span", D2, y(C.label), 1)
7686
7686
  ]),
7687
7687
  b(i.$slots, "append", {}, () => [
7688
7688
  C.appendIcon ? (m(), R(x, {
@@ -7691,21 +7691,21 @@ const r2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title"
7691
7691
  class: "r-chip__content__append-icon",
7692
7692
  name: C.appendIcon,
7693
7693
  size: 12,
7694
- onClick: e[1] || (e[1] = (d) => M(d))
7694
+ onClick: e[1] || (e[1] = (d) => A(d))
7695
7695
  }, null, 8, ["aria-disabled", "name"])) : B("", !0)
7696
7696
  ])
7697
7697
  ], 2));
7698
7698
  }
7699
7699
  });
7700
- function E2(H) {
7701
- return L2() ? (M2(H), !0) : !1;
7700
+ function _2(H) {
7701
+ return M2() ? (A2(H), !0) : !1;
7702
7702
  }
7703
7703
  function I1(H) {
7704
- return typeof H == "function" ? H() : h(H);
7704
+ return typeof H == "function" ? H() : p(H);
7705
7705
  }
7706
- const Q1 = typeof window < "u" && typeof document < "u", _2 = Object.prototype.toString, W2 = (H) => _2.call(H) === "[object Object]", c1 = () => {
7707
- }, N2 = /* @__PURE__ */ I2();
7708
- function I2() {
7706
+ const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", s1 = () => {
7707
+ }, I2 = /* @__PURE__ */ Q2();
7708
+ function Q2() {
7709
7709
  var H;
7710
7710
  return Q1 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7711
7711
  }
@@ -7715,45 +7715,45 @@ function H1(H) {
7715
7715
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7716
7716
  }
7717
7717
  const G1 = Q1 ? window : void 0;
7718
- function u1(...H) {
7719
- let V, C, L, A;
7720
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, A] = H, V = G1) : [V, C, L, A] = H, !V)
7721
- return c1;
7718
+ function S1(...H) {
7719
+ let V, C, L, M;
7720
+ if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, M] = H, V = G1) : [V, C, L, M] = H, !V)
7721
+ return s1;
7722
7722
  Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
7723
- const M = [], i = () => {
7724
- M.forEach((o) => o()), M.length = 0;
7723
+ const A = [], i = () => {
7724
+ A.forEach((o) => o()), A.length = 0;
7725
7725
  }, e = (o, t, r, n) => (o.addEventListener(t, r, n), () => o.removeEventListener(t, r, n)), d = W(
7726
- () => [H1(V), I1(A)],
7726
+ () => [H1(V), I1(M)],
7727
7727
  ([o, t]) => {
7728
7728
  if (i(), !o)
7729
7729
  return;
7730
- const r = W2(t) ? { ...t } : t;
7731
- M.push(
7732
- ...C.flatMap((n) => L.map((u) => e(o, n, u, r)))
7730
+ const r = N2(t) ? { ...t } : t;
7731
+ A.push(
7732
+ ...C.flatMap((n) => L.map((Z) => e(o, n, Z, r)))
7733
7733
  );
7734
7734
  },
7735
7735
  { immediate: !0, flush: "post" }
7736
7736
  ), l = () => {
7737
7737
  d(), i();
7738
7738
  };
7739
- return E2(l), l;
7739
+ return _2(l), l;
7740
7740
  }
7741
- let b1 = !1;
7742
- function Q2(H, V, C = {}) {
7743
- const { window: L = G1, ignore: A = [], capture: M = !0, detectIframe: i = !1 } = C;
7741
+ let y1 = !1;
7742
+ function G2(H, V, C = {}) {
7743
+ const { window: L = G1, ignore: M = [], capture: A = !0, detectIframe: i = !1 } = C;
7744
7744
  if (!L)
7745
7745
  return;
7746
- N2 && !b1 && (b1 = !0, Array.from(L.document.body.children).forEach((r) => r.addEventListener("click", c1)), L.document.documentElement.addEventListener("click", c1));
7746
+ I2 && !y1 && (y1 = !0, Array.from(L.document.body.children).forEach((r) => r.addEventListener("click", s1)), L.document.documentElement.addEventListener("click", s1));
7747
7747
  let e = !0;
7748
- const d = (r) => A.some((n) => {
7748
+ const d = (r) => M.some((n) => {
7749
7749
  if (typeof n == "string")
7750
- return Array.from(L.document.querySelectorAll(n)).some((u) => u === r.target || r.composedPath().includes(u));
7750
+ return Array.from(L.document.querySelectorAll(n)).some((Z) => Z === r.target || r.composedPath().includes(Z));
7751
7751
  {
7752
- const u = H1(n);
7753
- return u && (r.target === u || r.composedPath().includes(u));
7752
+ const Z = H1(n);
7753
+ return Z && (r.target === Z || r.composedPath().includes(Z));
7754
7754
  }
7755
7755
  }), o = [
7756
- u1(L, "click", (r) => {
7756
+ S1(L, "click", (r) => {
7757
7757
  const n = H1(H);
7758
7758
  if (!(!n || n === r.target || r.composedPath().includes(n))) {
7759
7759
  if (r.detail === 0 && (e = !d(r)), !e) {
@@ -7762,240 +7762,791 @@ function Q2(H, V, C = {}) {
7762
7762
  }
7763
7763
  V(r);
7764
7764
  }
7765
- }, { passive: !0, capture: M }),
7766
- u1(L, "pointerdown", (r) => {
7765
+ }, { passive: !0, capture: A }),
7766
+ S1(L, "pointerdown", (r) => {
7767
7767
  const n = H1(H);
7768
7768
  n && (e = !r.composedPath().includes(n) && !d(r));
7769
7769
  }, { passive: !0 }),
7770
- i && u1(L, "blur", (r) => {
7770
+ i && S1(L, "blur", (r) => {
7771
7771
  setTimeout(() => {
7772
7772
  var n;
7773
- const u = H1(H);
7774
- ((n = L.document.activeElement) == null ? void 0 : n.tagName) === "IFRAME" && !(u != null && u.contains(L.document.activeElement)) && V(r);
7773
+ const Z = H1(H);
7774
+ ((n = L.document.activeElement) == null ? void 0 : n.tagName) === "IFRAME" && !(Z != null && Z.contains(L.document.activeElement)) && V(r);
7775
7775
  }, 0);
7776
7776
  })
7777
7777
  ].filter(Boolean);
7778
7778
  return () => o.forEach((r) => r());
7779
7779
  }
7780
- const G2 = {
7781
- key: 1,
7782
- class: "r-dropdown__tags"
7783
- }, z2 = {
7784
- key: 2,
7785
- class: "r-dropdown__multiple"
7786
- }, U2 = ["id", "disabled", "placeholder", "readonly"], $2 = ["aria-disabled", "onClick"], K2 = { style: { display: "flex", "align-items": "center" } }, c3 = /* @__PURE__ */ F({
7787
- __name: "RDropdown",
7788
- props: {
7789
- options: { default: () => [] },
7790
- modelValue: { default: "" },
7791
- placeholder: { default: "" },
7792
- taggable: { type: Boolean, default: !1 },
7793
- multiple: { type: Boolean, default: !1 },
7794
- disabled: { type: Boolean, default: !1 },
7795
- loading: { type: Boolean, default: !1 },
7796
- prependIcon: { default: "" },
7797
- appendIcon: { default: "mdiChevronDown" },
7798
- searchable: { type: Boolean, default: !1 },
7799
- id: { default: "test" }
7800
- },
7801
- emits: ["update:modelValue"],
7802
- setup(H, { emit: V }) {
7803
- const C = H, L = D(""), A = J([]), M = D(!1), i = D(""), e = D(null), d = D(null), l = D(null);
7804
- function o(S) {
7805
- var s, c, v;
7806
- if (!C.disabled) {
7807
- if (S.stopPropagation(), M.value = !M.value, M.value) {
7808
- (s = e.value) == null || s.classList.add("r-dropdown--active"), (c = e.value) == null || c.focus(), C.searchable && ((v = d.value) == null || v.focus());
7809
- return;
7780
+ function A1(H) {
7781
+ return H.split("-")[0];
7782
+ }
7783
+ function n1(H) {
7784
+ return H.split("-")[1];
7785
+ }
7786
+ function i1(H) {
7787
+ return ["top", "bottom"].includes(A1(H)) ? "x" : "y";
7788
+ }
7789
+ function f1(H) {
7790
+ return H === "y" ? "height" : "width";
7791
+ }
7792
+ function w1(H, V, C) {
7793
+ let { reference: L, floating: M } = H;
7794
+ const A = L.x + L.width / 2 - M.width / 2, i = L.y + L.height / 2 - M.height / 2, e = i1(V), d = f1(e), l = L[d] / 2 - M[d] / 2, o = e === "x";
7795
+ let t;
7796
+ switch (A1(V)) {
7797
+ case "top":
7798
+ t = { x: A, y: L.y - M.height };
7799
+ break;
7800
+ case "bottom":
7801
+ t = { x: A, y: L.y + L.height };
7802
+ break;
7803
+ case "right":
7804
+ t = { x: L.x + L.width, y: i };
7805
+ break;
7806
+ case "left":
7807
+ t = { x: L.x - M.width, y: i };
7808
+ break;
7809
+ default:
7810
+ t = { x: L.x, y: L.y };
7811
+ }
7812
+ switch (n1(V)) {
7813
+ case "start":
7814
+ t[e] -= l * (C && o ? -1 : 1);
7815
+ break;
7816
+ case "end":
7817
+ t[e] += l * (C && o ? -1 : 1);
7818
+ }
7819
+ return t;
7820
+ }
7821
+ const z2 = async (H, V, C) => {
7822
+ const { placement: L = "bottom", strategy: M = "absolute", middleware: A = [], platform: i } = C, e = A.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7823
+ let l = await i.getElementRects({ reference: H, floating: V, strategy: M }), { x: o, y: t } = w1(l, L, d), r = L, n = {}, Z = 0;
7824
+ for (let h = 0; h < e.length; h++) {
7825
+ const { name: f, fn: T } = e[h], { x: v, y: c, data: s, reset: w } = await T({ x: o, y: t, initialPlacement: L, placement: r, strategy: M, middlewareData: n, rects: l, platform: i, elements: { reference: H, floating: V } });
7826
+ o = v ?? o, t = c ?? t, n = { ...n, [f]: { ...n[f], ...s } }, w && Z <= 50 && (Z++, typeof w == "object" && (w.placement && (r = w.placement), w.rects && (l = w.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: M }) : w.rects), { x: o, y: t } = w1(l, r, d)), h = -1);
7827
+ }
7828
+ return { x: o, y: t, placement: r, strategy: M, middlewareData: n };
7829
+ };
7830
+ function z1(H) {
7831
+ return typeof H != "number" ? function(V) {
7832
+ return { top: 0, right: 0, bottom: 0, left: 0, ...V };
7833
+ }(H) : { top: H, right: H, bottom: H, left: H };
7834
+ }
7835
+ function t1(H) {
7836
+ return { ...H, top: H.y, left: H.x, right: H.x + H.width, bottom: H.y + H.height };
7837
+ }
7838
+ async function m1(H, V) {
7839
+ var C;
7840
+ V === void 0 && (V = {});
7841
+ const { x: L, y: M, platform: A, rects: i, elements: e, strategy: d } = H, { boundary: l = "clippingAncestors", rootBoundary: o = "viewport", elementContext: t = "floating", altBoundary: r = !1, padding: n = 0 } = V, Z = z1(n), h = e[r ? t === "floating" ? "reference" : "floating" : t], f = t1(await A.getClippingRect({ element: (C = await (A.isElement == null ? void 0 : A.isElement(h))) == null || C ? h : h.contextElement || await (A.getDocumentElement == null ? void 0 : A.getDocumentElement(e.floating)), boundary: l, rootBoundary: o, strategy: d })), T = t1(A.convertOffsetParentRelativeRectToViewportRelativeRect ? await A.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: t === "floating" ? { ...i.floating, x: L, y: M } : i.reference, offsetParent: await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(e.floating)), strategy: d }) : i[t]);
7842
+ return { top: f.top - T.top + Z.top, bottom: T.bottom - f.bottom + Z.bottom, left: f.left - T.left + Z.left, right: T.right - f.right + Z.right };
7843
+ }
7844
+ const U2 = Math.min, $2 = Math.max;
7845
+ function O1(H, V, C) {
7846
+ return $2(H, U2(V, C));
7847
+ }
7848
+ const K2 = (H) => ({ name: "arrow", options: H, async fn(V) {
7849
+ const { element: C, padding: L = 0 } = H ?? {}, { x: M, y: A, placement: i, rects: e, platform: d } = V;
7850
+ if (C == null)
7851
+ return {};
7852
+ const l = z1(L), o = { x: M, y: A }, t = i1(i), r = n1(i), n = f1(t), Z = await d.getDimensions(C), h = t === "y" ? "top" : "left", f = t === "y" ? "bottom" : "right", T = e.reference[n] + e.reference[t] - o[t] - e.floating[n], v = o[t] - e.reference[t], c = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
7853
+ let s = c ? t === "y" ? c.clientHeight || 0 : c.clientWidth || 0 : 0;
7854
+ s === 0 && (s = e.floating[n]);
7855
+ const w = T / 2 - v / 2, O = l[h], S = s - Z[n] - l[f], P = s / 2 - Z[n] / 2 + w, E = O1(O, P, S), _ = (r === "start" ? l[h] : l[f]) > 0 && P !== E && e.reference[n] <= e.floating[n];
7856
+ return { [t]: o[t] - (_ ? P < O ? O - P : S - P : 0), data: { [t]: E, centerOffset: P - E } };
7857
+ } }), j2 = { left: "right", right: "left", bottom: "top", top: "bottom" };
7858
+ function l1(H) {
7859
+ return H.replace(/left|right|bottom|top/g, (V) => j2[V]);
7860
+ }
7861
+ function q2(H, V, C) {
7862
+ C === void 0 && (C = !1);
7863
+ const L = n1(H), M = i1(H), A = f1(M);
7864
+ let i = M === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
7865
+ return V.reference[A] > V.floating[A] && (i = l1(i)), { main: i, cross: l1(i) };
7866
+ }
7867
+ const Y2 = { start: "end", end: "start" };
7868
+ function P1(H) {
7869
+ return H.replace(/start|end/g, (V) => Y2[V]);
7870
+ }
7871
+ const U1 = ["top", "right", "bottom", "left"];
7872
+ U1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
7873
+ const X2 = function(H) {
7874
+ return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
7875
+ var C;
7876
+ const { placement: L, middlewareData: M, rects: A, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: l = !0, crossAxis: o = !0, fallbackPlacements: t, fallbackStrategy: r = "bestFit", flipAlignment: n = !0, ...Z } = H, h = A1(L), f = t || (h === i || !n ? [l1(i)] : function(P) {
7877
+ const E = l1(P);
7878
+ return [P1(P), E, P1(E)];
7879
+ }(i)), T = [i, ...f], v = await m1(V, Z), c = [];
7880
+ let s = ((C = M.flip) == null ? void 0 : C.overflows) || [];
7881
+ if (l && c.push(v[h]), o) {
7882
+ const { main: P, cross: E } = q2(L, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
7883
+ c.push(v[P], v[E]);
7884
+ }
7885
+ if (s = [...s, { placement: L, overflows: c }], !c.every((P) => P <= 0)) {
7886
+ var w, O;
7887
+ const P = ((w = (O = M.flip) == null ? void 0 : O.index) != null ? w : 0) + 1, E = T[P];
7888
+ if (E)
7889
+ return { data: { index: P, overflows: s }, reset: { placement: E } };
7890
+ let _ = "bottom";
7891
+ switch (r) {
7892
+ case "bestFit": {
7893
+ var S;
7894
+ const k1 = (S = s.map((e1) => [e1, e1.overflows.filter((C1) => C1 > 0).reduce((C1, V2) => C1 + V2, 0)]).sort((e1, C1) => e1[1] - C1[1])[0]) == null ? void 0 : S[0].placement;
7895
+ k1 && (_ = k1);
7896
+ break;
7810
7897
  }
7811
- t();
7898
+ case "initialPlacement":
7899
+ _ = i;
7812
7900
  }
7901
+ if (L !== _)
7902
+ return { reset: { placement: _ } };
7813
7903
  }
7814
- function t() {
7815
- var S, s, c;
7816
- M.value = !1, (S = e.value) == null || S.classList.remove("r-dropdown--active"), (s = e.value) == null || s.blur(), (c = d.value) == null || c.blur();
7817
- }
7818
- function r(S, s) {
7819
- var c;
7820
- if (C.multiple || C.taggable) {
7821
- S.stopPropagation(), A.find((v) => v.value === s.value) ? A.splice(A.indexOf(s), 1) : A.push(s), i.value = "", C.searchable && ((c = d.value) == null || c.focus());
7822
- return;
7904
+ return {};
7905
+ } };
7906
+ };
7907
+ function T1(H, V) {
7908
+ return { top: H.top - V.height, right: H.right - V.width, bottom: H.bottom - V.height, left: H.left - V.width };
7909
+ }
7910
+ function v1(H) {
7911
+ return U1.some((V) => H[V] >= 0);
7912
+ }
7913
+ const J2 = function(H) {
7914
+ let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
7915
+ return { name: "hide", async fn(L) {
7916
+ const { rects: M } = L;
7917
+ switch (V) {
7918
+ case "referenceHidden": {
7919
+ const A = T1(await m1(L, { ...C, elementContext: "reference" }), M.reference);
7920
+ return { data: { referenceHiddenOffsets: A, referenceHidden: v1(A) } };
7823
7921
  }
7824
- n(S, s);
7825
- }
7826
- function n(S, s) {
7827
- if (L.value === s.value) {
7828
- L.value = "", i.value = "";
7829
- return;
7922
+ case "escaped": {
7923
+ const A = T1(await m1(L, { ...C, altBoundary: !0 }), M.floating);
7924
+ return { data: { escapedOffsets: A, escaped: v1(A) } };
7830
7925
  }
7831
- i.value = s.label, L.value = s.value, o(S), V("update:modelValue", s);
7926
+ default:
7927
+ return {};
7832
7928
  }
7833
- function u(S, s) {
7834
- if (S instanceof KeyboardEvent && S.key !== "Backspace" || i.value !== "")
7835
- return;
7836
- S.stopPropagation();
7837
- const c = A.findIndex((v) => v.value === s.value);
7838
- A.splice(c, 1);
7929
+ } };
7930
+ }, C5 = function(H) {
7931
+ return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
7932
+ const { x: C, y: L } = V, M = await async function(A, i) {
7933
+ const { placement: e, platform: d, elements: l } = A, o = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), t = A1(e), r = n1(e), n = i1(e) === "x", Z = ["left", "top"].includes(t) ? -1 : 1, h = o && n ? -1 : 1, f = typeof i == "function" ? i(A) : i;
7934
+ let { mainAxis: T, crossAxis: v, alignmentAxis: c } = typeof f == "number" ? { mainAxis: f, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...f };
7935
+ return r && typeof c == "number" && (v = r === "end" ? -1 * c : c), n ? { x: v * h, y: T * Z } : { x: T * Z, y: v * h };
7936
+ }(V, H);
7937
+ return { x: C + M.x, y: L + M.y, data: M };
7938
+ } };
7939
+ };
7940
+ function H5(H) {
7941
+ return H === "x" ? "y" : "x";
7942
+ }
7943
+ const V5 = function(H) {
7944
+ return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
7945
+ const { x: C, y: L, placement: M } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (f) => {
7946
+ let { x: T, y: v } = f;
7947
+ return { x: T, y: v };
7948
+ } }, ...d } = H, l = { x: C, y: L }, o = await m1(V, d), t = i1(A1(M)), r = H5(t);
7949
+ let n = l[t], Z = l[r];
7950
+ if (A) {
7951
+ const f = t === "y" ? "bottom" : "right";
7952
+ n = O1(n + o[t === "y" ? "top" : "left"], n, n - o[f]);
7839
7953
  }
7840
- function O(S) {
7841
- var v;
7842
- if (!C.taggable)
7843
- return;
7844
- S.stopPropagation();
7845
- const s = i.value;
7846
- if (s === "")
7847
- return;
7848
- C.options.find((p) => p.label === s) || (A.push({ value: s, label: s }), i.value = "", (v = d.value) == null || v.focus());
7954
+ if (i) {
7955
+ const f = r === "y" ? "bottom" : "right";
7956
+ Z = O1(Z + o[r === "y" ? "top" : "left"], Z, Z - o[f]);
7957
+ }
7958
+ const h = e.fn({ ...V, [t]: n, [r]: Z });
7959
+ return { ...h, data: { x: h.x - C, y: h.y - L } };
7960
+ } };
7961
+ };
7962
+ function $1(H) {
7963
+ return H && H.document && H.location && H.alert && H.setInterval;
7964
+ }
7965
+ function G(H) {
7966
+ if (H == null)
7967
+ return window;
7968
+ if (!$1(H)) {
7969
+ const V = H.ownerDocument;
7970
+ return V && V.defaultView || window;
7971
+ }
7972
+ return H;
7973
+ }
7974
+ function I(H) {
7975
+ return G(H).getComputedStyle(H);
7976
+ }
7977
+ function K(H) {
7978
+ return $1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
7979
+ }
7980
+ function K1() {
7981
+ const H = navigator.userAgentData;
7982
+ return H && Array.isArray(H.brands) ? H.brands.map((V) => V.brand + "/" + V.version).join(" ") : navigator.userAgent;
7983
+ }
7984
+ function Q(H) {
7985
+ return H instanceof G(H).HTMLElement;
7986
+ }
7987
+ function Y(H) {
7988
+ return H instanceof G(H).Element;
7989
+ }
7990
+ function F1(H) {
7991
+ return typeof ShadowRoot > "u" ? !1 : H instanceof G(H).ShadowRoot || H instanceof ShadowRoot;
7992
+ }
7993
+ function r1(H) {
7994
+ const { overflow: V, overflowX: C, overflowY: L, display: M } = I(H);
7995
+ return /auto|scroll|overlay|hidden/.test(V + L + C) && !["inline", "contents"].includes(M);
7996
+ }
7997
+ function L5(H) {
7998
+ return ["table", "td", "th"].includes(K(H));
7999
+ }
8000
+ function p1(H) {
8001
+ const V = /firefox/i.test(K1()), C = I(H), L = C.backdropFilter || C.WebkitBackdropFilter;
8002
+ return C.transform !== "none" || C.perspective !== "none" || !!L && L !== "none" || V && C.willChange === "filter" || V && !!C.filter && C.filter !== "none" || ["transform", "perspective"].some((M) => C.willChange.includes(M)) || ["paint", "layout", "strict", "content"].some((M) => {
8003
+ const A = C.contain;
8004
+ return A != null && A.includes(M);
8005
+ });
8006
+ }
8007
+ function j1() {
8008
+ return !/^((?!chrome|android).)*safari/i.test(K1());
8009
+ }
8010
+ function g1(H) {
8011
+ return ["html", "body", "#document"].includes(K(H));
8012
+ }
8013
+ const R1 = Math.min, L1 = Math.max, o1 = Math.round;
8014
+ function j(H, V, C) {
8015
+ var L, M, A, i;
8016
+ V === void 0 && (V = !1), C === void 0 && (C = !1);
8017
+ const e = H.getBoundingClientRect();
8018
+ let d = 1, l = 1;
8019
+ V && Q(H) && (d = H.offsetWidth > 0 && o1(e.width) / H.offsetWidth || 1, l = H.offsetHeight > 0 && o1(e.height) / H.offsetHeight || 1);
8020
+ const o = Y(H) ? G(H) : window, t = !j1() && C, r = (e.left + (t && (L = (M = o.visualViewport) == null ? void 0 : M.offsetLeft) != null ? L : 0)) / d, n = (e.top + (t && (A = (i = o.visualViewport) == null ? void 0 : i.offsetTop) != null ? A : 0)) / l, Z = e.width / d, h = e.height / l;
8021
+ return { width: Z, height: h, top: n, right: r + Z, bottom: n + h, left: r, x: r, y: n };
8022
+ }
8023
+ function U(H) {
8024
+ return (V = H, (V instanceof G(V).Node ? H.ownerDocument : H.document) || window.document).documentElement;
8025
+ var V;
8026
+ }
8027
+ function a1(H) {
8028
+ return Y(H) ? { scrollLeft: H.scrollLeft, scrollTop: H.scrollTop } : { scrollLeft: H.pageXOffset, scrollTop: H.pageYOffset };
8029
+ }
8030
+ function q1(H) {
8031
+ return j(U(H)).left + a1(H).scrollLeft;
8032
+ }
8033
+ function M5(H, V, C) {
8034
+ const L = Q(V), M = U(V), A = j(H, L && function(d) {
8035
+ const l = j(d);
8036
+ return o1(l.width) !== d.offsetWidth || o1(l.height) !== d.offsetHeight;
8037
+ }(V), C === "fixed");
8038
+ let i = { scrollLeft: 0, scrollTop: 0 };
8039
+ const e = { x: 0, y: 0 };
8040
+ if (L || !L && C !== "fixed")
8041
+ if ((K(V) !== "body" || r1(M)) && (i = a1(V)), Q(V)) {
8042
+ const d = j(V, !0);
8043
+ e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
8044
+ } else
8045
+ M && (e.x = q1(M));
8046
+ return { x: A.left + i.scrollLeft - e.x, y: A.top + i.scrollTop - e.y, width: A.width, height: A.height };
8047
+ }
8048
+ function M1(H) {
8049
+ if (K(H) === "html")
8050
+ return H;
8051
+ const V = H.assignedSlot || H.parentNode || (F1(H) ? H.host : null) || U(H);
8052
+ return F1(V) ? V.host : V;
8053
+ }
8054
+ function x1(H) {
8055
+ return Q(H) && I(H).position !== "fixed" ? H.offsetParent : null;
8056
+ }
8057
+ function D1(H) {
8058
+ const V = G(H);
8059
+ let C = x1(H);
8060
+ for (; C && L5(C) && I(C).position === "static"; )
8061
+ C = x1(C);
8062
+ return C && (K(C) === "html" || K(C) === "body" && I(C).position === "static" && !p1(C)) ? V : C || function(L) {
8063
+ let M = M1(L);
8064
+ for (; Q(M) && !g1(M); ) {
8065
+ if (p1(M))
8066
+ return M;
8067
+ M = M1(M);
8068
+ }
8069
+ return null;
8070
+ }(H) || V;
8071
+ }
8072
+ function Y1(H) {
8073
+ const V = M1(H);
8074
+ return g1(V) ? H.ownerDocument.body : Q(V) && r1(V) ? V : Y1(V);
8075
+ }
8076
+ function X1(H, V) {
8077
+ var C;
8078
+ V === void 0 && (V = []);
8079
+ const L = Y1(H), M = L === ((C = H.ownerDocument) == null ? void 0 : C.body), A = G(L), i = M ? [A].concat(A.visualViewport || [], r1(L) ? L : []) : L, e = V.concat(i);
8080
+ return M ? e : e.concat(X1(i));
8081
+ }
8082
+ function E1(H, V, C) {
8083
+ return V === "viewport" ? t1(function(L, M) {
8084
+ const A = G(L), i = U(L), e = A.visualViewport;
8085
+ let d = i.clientWidth, l = i.clientHeight, o = 0, t = 0;
8086
+ if (e) {
8087
+ d = e.width, l = e.height;
8088
+ const r = j1();
8089
+ (r || !r && M === "fixed") && (o = e.offsetLeft, t = e.offsetTop);
7849
8090
  }
7850
- function f(S) {
7851
- return C.multiple ? A.find((s) => s.value === S.value) : L.value === S.value;
8091
+ return { width: d, height: l, x: o, y: t };
8092
+ }(H, C)) : Y(V) ? function(L, M) {
8093
+ const A = j(L, !1, M === "fixed"), i = A.top + L.clientTop, e = A.left + L.clientLeft;
8094
+ return { top: i, left: e, x: e, y: i, right: e + L.clientWidth, bottom: i + L.clientHeight, width: L.clientWidth, height: L.clientHeight };
8095
+ }(V, C) : t1(function(L) {
8096
+ var M;
8097
+ const A = U(L), i = a1(L), e = (M = L.ownerDocument) == null ? void 0 : M.body, d = L1(A.scrollWidth, A.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = L1(A.scrollHeight, A.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
8098
+ let o = -i.scrollLeft + q1(L);
8099
+ const t = -i.scrollTop;
8100
+ return I(e || A).direction === "rtl" && (o += L1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y: t };
8101
+ }(U(H)));
8102
+ }
8103
+ const A5 = { getClippingRect: function(H) {
8104
+ let { element: V, boundary: C, rootBoundary: L, strategy: M } = H;
8105
+ const A = C === "clippingAncestors" ? function(l) {
8106
+ let o = X1(l).filter((Z) => Y(Z) && K(Z) !== "body"), t = null;
8107
+ const r = I(l).position === "fixed";
8108
+ let n = r ? M1(l) : l;
8109
+ for (; Y(n) && !g1(n); ) {
8110
+ const Z = I(n), h = p1(n);
8111
+ (r ? h || t : h || Z.position !== "static" || !t || !["absolute", "fixed"].includes(t.position)) ? t = Z : o = o.filter((f) => f !== n), n = M1(n);
7852
8112
  }
7853
- const w = k(() => C.searchable ? C.options.filter((s) => s.label.toLowerCase().includes(i.value.toLowerCase())) : C.options), T = k(() => C.multiple || C.taggable || !C.searchable);
7854
- return E1(() => {
7855
- C.modelValue && (C.multiple ? A.push(C.modelValue) : (L.value = C.modelValue.value, i.value = C.modelValue.label));
7856
- }), W(A, (S) => {
7857
- V("update:modelValue", S);
7858
- }), Q2(l, t), (S, s) => (m(), a("div", {
7859
- ref_key: "wrapper",
7860
- ref: l,
7861
- class: "r-dropdown-wrapper"
7862
- }, [
7863
- Z("div", {
7864
- ref_key: "dropdown",
7865
- ref: e,
7866
- class: g(["r-dropdown", {
7867
- "r-dropdown--disabled": C.disabled,
7868
- "r-dropdown--loading": C.loading
7869
- }]),
7870
- role: "select",
7871
- onClick: o
7872
- }, [
7873
- C.prependIcon || S.$slots.prepend ? (m(), a("div", {
7874
- key: 0,
7875
- class: g(["r-dropdown__prepend-icon", {
7876
- "r-dropdown__prepend-icon--active": M.value
7877
- }])
7878
- }, [
7879
- b(S.$slots, "prepend", {}, () => [
7880
- C.prependIcon ? (m(), R(x, {
7881
- key: 0,
7882
- name: C.prependIcon
7883
- }, null, 8, ["name"])) : B("", !0)
7884
- ])
7885
- ], 2)) : B("", !0),
7886
- C.taggable ? (m(), a("div", G2, [
7887
- (m(!0), a(U, null, Y(A, (c, v) => (m(), R(D2, {
7888
- key: v,
7889
- "append-icon": "close",
7890
- class: "r-dropdown__tags__chip",
7891
- label: c.label,
7892
- variant: "primary",
7893
- "onClick:close": (p) => u(p, c)
7894
- }, null, 8, ["label", "onClick:close"]))), 128))
7895
- ])) : B("", !0),
7896
- C.multiple ? (m(), a("div", z2, [
7897
- (m(!0), a(U, null, Y(A, (c, v) => (m(), a("p", { key: v }, y(`${c.label},`), 1))), 128))
7898
- ])) : B("", !0),
7899
- _1(Z("input", {
7900
- id: C.id,
7901
- ref_key: "input",
7902
- ref: d,
7903
- "onUpdate:modelValue": s[0] || (s[0] = (c) => i.value = c),
7904
- class: g(["r-dropdown__input", {
7905
- "r-dropdown__input--loading": C.loading
7906
- }]),
7907
- disabled: C.disabled,
7908
- placeholder: C.placeholder,
7909
- readonly: h(T),
7910
- type: "text",
7911
- onKeydown: [
7912
- s[1] || (s[1] = k1((c) => u(c, A[A.length - 1]), ["backspace"])),
7913
- s[2] || (s[2] = k1((c) => O(c), ["enter"]))
7914
- ]
7915
- }, null, 42, U2), [
7916
- [A2, i.value]
7917
- ]),
7918
- C.appendIcon || S.$slots.append ? (m(), a("div", {
7919
- key: 3,
7920
- class: g(["r-dropdown__append-icon", {
7921
- "r-dropdown__append-icon--active": M.value
7922
- }])
7923
- }, [
7924
- b(S.$slots, "append", {}, () => [
7925
- C.appendIcon ? (m(), R(x, {
7926
- key: 0,
7927
- name: C.appendIcon
7928
- }, null, 8, ["name"])) : B("", !0)
7929
- ])
7930
- ], 2)) : B("", !0)
7931
- ], 2),
7932
- Z("ul", {
7933
- class: g(["r-dropdown-options", {
7934
- "r-dropdown-options--active": M.value
7935
- }])
7936
- }, [
7937
- (m(!0), a(U, null, Y(h(w), (c) => (m(), a("li", {
7938
- key: c.value,
7939
- "aria-disabled": c.disabled,
7940
- class: g(["r-dropdown-options__option", {
7941
- "r-dropdown-options__option--active": f(c)
7942
- }]),
7943
- onClick: (v) => r(v, c)
7944
- }, [
7945
- Z("div", K2, [
7946
- c.prependIcon ? (m(), R(x, {
7947
- key: 1,
7948
- class: g(["r-dropdown-options__option__prepend-icon", {
7949
- "r-dropdown-options__option__prepend-icon--active": f(c)
7950
- }]),
7951
- name: c.prependIcon
7952
- }, null, 8, ["class", "name"])) : b(S.$slots, "option-prepend", { key: 0 }),
7953
- Z("p", {
7954
- class: g(["r-dropdown-options__option__label", {
7955
- "r-dropdown-options__option__label--active": f(c)
7956
- }])
7957
- }, y(c.label), 3)
7958
- ]),
7959
- f(c) ? (m(), R(x, {
7960
- key: 0,
7961
- class: g(["r-dropdown-options__option__append-icon", {
7962
- "r-dropdown-options__option__append-icon--active": f(c)
7963
- }]),
7964
- name: "mdiCheck"
7965
- }, null, 8, ["class"])) : B("", !0)
7966
- ], 10, $2))), 128))
7967
- ], 2)
7968
- ], 512));
8113
+ return o;
8114
+ }(V) : [].concat(C), i = [...A, L], e = i[0], d = i.reduce((l, o) => {
8115
+ const t = E1(V, o, M);
8116
+ return l.top = L1(t.top, l.top), l.right = R1(t.right, l.right), l.bottom = R1(t.bottom, l.bottom), l.left = L1(t.left, l.left), l;
8117
+ }, E1(V, e, M));
8118
+ return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
8119
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
8120
+ let { rect: V, offsetParent: C, strategy: L } = H;
8121
+ const M = Q(C), A = U(C);
8122
+ if (C === A)
8123
+ return V;
8124
+ let i = { scrollLeft: 0, scrollTop: 0 };
8125
+ const e = { x: 0, y: 0 };
8126
+ if ((M || !M && L !== "fixed") && ((K(C) !== "body" || r1(A)) && (i = a1(C)), Q(C))) {
8127
+ const d = j(C, !0);
8128
+ e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
7969
8129
  }
7970
- }), j2 = ["id", "for"], z1 = /* @__PURE__ */ F({
7971
- __name: "RLabel",
7972
- props: {
7973
- id: { default: "" },
7974
- for: { default: "" },
7975
- text: { default: "" }
7976
- },
7977
- setup(H) {
7978
- const V = H;
7979
- return (C, L) => (m(), a("label", {
8130
+ return { ...V, x: V.x - i.scrollLeft + e.x, y: V.y - i.scrollTop + e.y };
8131
+ }, isElement: Y, getDimensions: function(H) {
8132
+ if (Q(H))
8133
+ return { width: H.offsetWidth, height: H.offsetHeight };
8134
+ const V = j(H);
8135
+ return { width: V.width, height: V.height };
8136
+ }, getOffsetParent: D1, getDocumentElement: U, async getElementRects(H) {
8137
+ let { reference: V, floating: C, strategy: L } = H;
8138
+ const M = this.getOffsetParent || D1, A = this.getDimensions;
8139
+ return { reference: M5(V, await M(C), L), floating: { x: 0, y: 0, ...await A(C) } };
8140
+ }, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, i5 = (H, V, C) => z2(H, V, { platform: A5, ...C });
8141
+ var J1 = /* @__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))(J1 || {}), N = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(N || {}), C2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(C2 || {});
8142
+ async function c1({ value: H }, { value: V }, { value: C }, L, M, A, i = 300, e) {
8143
+ !H || !V || i5(H, V, {
8144
+ placement: L,
8145
+ middleware: [
8146
+ C5(M),
8147
+ V5({ padding: A }),
8148
+ K2({ element: C }),
8149
+ X2(),
8150
+ J2()
8151
+ ]
8152
+ }).then(({ x: d, y: l, placement: o, middlewareData: t }) => {
8153
+ var n;
8154
+ if (!V)
8155
+ return;
8156
+ const r = ((n = H.offsetParent) == null ? void 0 : n.getBoundingClientRect().left) || 0;
8157
+ if (Object.assign(V.style, {
8158
+ minWidth: e === "dropdown" ? `${H.offsetWidth - 2}px` : "auto",
8159
+ left: e === "dropdown" ? `${r}px` : `${d}px`,
8160
+ top: `${l}px`,
8161
+ animation: `tooltip-show ${i}ms ease-in-out forwards`,
8162
+ transformOrigin: "start"
8163
+ }), C && t.arrow) {
8164
+ const { x: Z, y: h } = t.arrow, f = {
8165
+ top: "bottom",
8166
+ right: "left",
8167
+ bottom: "top",
8168
+ left: "right"
8169
+ /* Right */
8170
+ }[o.split("-")[0]];
8171
+ Object.assign(C.style, {
8172
+ left: d != null ? `${Z}px` : "",
8173
+ top: l != null ? `${h}px` : "",
8174
+ right: "",
8175
+ bottom: "",
8176
+ [`${f}`]: "-4px"
8177
+ });
8178
+ }
8179
+ });
8180
+ }
8181
+ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8182
+ __name: "RTooltip",
8183
+ props: {
8184
+ placement: { default: J1.Top },
8185
+ text: { default: "" },
8186
+ dark: { type: Boolean, default: !0 },
8187
+ light: { type: Boolean, default: !1 },
8188
+ triggers: { default: () => [N.Hover] },
8189
+ autoHide: { type: Boolean, default: !0 },
8190
+ hideDelay: { default: 3e3 },
8191
+ showDelay: { default: 300 },
8192
+ shown: { type: Boolean, default: !1 },
8193
+ disabled: { type: Boolean, default: !1 },
8194
+ offset: { default: 0 },
8195
+ padding: { default: 2 },
8196
+ outsideClick: { type: Boolean, default: !1 },
8197
+ triggerContent: { default: "" },
8198
+ resizable: { type: Boolean, default: !0 },
8199
+ triggerClass: { default: "" },
8200
+ tooltipClass: { default: "" },
8201
+ type: { default: C2.Tooltip }
8202
+ },
8203
+ emits: ["show", "hide"],
8204
+ setup(H, { emit: V }) {
8205
+ const C = H, L = D(null), M = D(null), A = D(null);
8206
+ async function i() {
8207
+ const { placement: Z, offset: h, padding: f, disabled: T, showDelay: v, type: c } = C;
8208
+ T || (M.value.style.display = "block", V("show"), c1(L, M, A, Z, h, f, v, c), d());
8209
+ }
8210
+ function e() {
8211
+ C.disabled || !M.value || (M.value.style.display = "", V("hide"));
8212
+ }
8213
+ function d() {
8214
+ C.autoHide && setTimeout(() => {
8215
+ e();
8216
+ }, C.hideDelay);
8217
+ }
8218
+ function l() {
8219
+ C.disabled || C.triggers.includes(N.Click) && (M.value.style.display === "block" ? e() : i());
8220
+ }
8221
+ function o() {
8222
+ C.disabled || C.triggers.includes(N.Hover) && i();
8223
+ }
8224
+ function t() {
8225
+ C.disabled || (M.value.style.display === "" && C.triggers.includes(N.Hover) ? i() : M.value.style.display !== "" && C.triggers.includes(N.Hover) && e());
8226
+ }
8227
+ function r() {
8228
+ const { placement: Z, offset: h, padding: f, disabled: T, showDelay: v, type: c } = C;
8229
+ T || C.triggers.includes(N.Hover) && c1(L, M, A, Z, h, f, v, c);
8230
+ }
8231
+ const n = k(() => ({
8232
+ tooltip: !0,
8233
+ "tooltip--dark": C.dark,
8234
+ "tooltip--light": C.light
8235
+ }));
8236
+ return window.onresize = () => {
8237
+ const { placement: Z, offset: h, padding: f, disabled: T, showDelay: v, type: c } = C;
8238
+ T || C.resizable && c1(L, M, A, Z, h, f, v, c);
8239
+ }, i2(
8240
+ () => {
8241
+ C.disabled || (C.shown && C.triggers.includes(N.Manual) ? i() : !C.shown && C.triggers.includes(N.Manual) && e());
8242
+ },
8243
+ { flush: "post" }
8244
+ // this is important to avoid infinite loop & for fire on mounted
8245
+ ), _1(() => {
8246
+ G2(
8247
+ L,
8248
+ () => {
8249
+ C.outsideClick && e();
8250
+ },
8251
+ {
8252
+ ignore: [M.value]
8253
+ }
8254
+ );
8255
+ }), (Z, h) => (m(), a(z, null, [
8256
+ u("div", {
8257
+ ref_key: "trigger",
8258
+ ref: L,
8259
+ "aria-disabled": C.disabled,
8260
+ class: g(["trigger", H.triggerClass]),
8261
+ onClick: l,
8262
+ onMouseenter: o,
8263
+ onMouseleave: t,
8264
+ onMousemove: r
8265
+ }, [
8266
+ b(Z.$slots, "default", {
8267
+ activators: {
8268
+ click: l,
8269
+ mouseenter: o,
8270
+ mouseleave: t,
8271
+ mousemove: r
8272
+ }
8273
+ }, () => [
8274
+ u("div", {
8275
+ innerHTML: C.triggerContent
8276
+ }, null, 8, d5)
8277
+ ])
8278
+ ], 42, e5),
8279
+ (m(), R(e2, { to: "body" }, [
8280
+ u("div", {
8281
+ id: "tooltip",
8282
+ ref_key: "tooltip",
8283
+ ref: M,
8284
+ class: g([p(n), H.tooltipClass]),
8285
+ role: "tooltip"
8286
+ }, [
8287
+ b(Z.$slots, "content", { hide: e }, () => [
8288
+ C.text ? (m(), a("div", {
8289
+ key: 0,
8290
+ class: g(["tooltip__content", {
8291
+ "tooltip__content--dark": C.dark,
8292
+ "tooltip__content--light": C.light
8293
+ }])
8294
+ }, y(C.text), 3)) : B("", !0),
8295
+ C.text ? (m(), a("div", {
8296
+ key: 1,
8297
+ id: "arrow",
8298
+ ref_key: "arrowElement",
8299
+ ref: A,
8300
+ class: g(["tooltip__arrow", {
8301
+ "tooltip__arrow--dark": C.dark,
8302
+ "tooltip__arrow--light": C.light
8303
+ }])
8304
+ }, null, 2)) : B("", !0)
8305
+ ])
8306
+ ], 2)
8307
+ ]))
8308
+ ], 64));
8309
+ }
8310
+ }), m5 = ["onClick"], l5 = {
8311
+ key: 1,
8312
+ class: "r-dropdown__tags"
8313
+ }, o5 = {
8314
+ key: 2,
8315
+ class: "r-dropdown__multiple"
8316
+ }, n5 = ["id", "disabled", "placeholder", "readonly"], r5 = ["aria-disabled", "onClick"], a5 = { style: { display: "flex", "align-items": "center" } }, p3 = /* @__PURE__ */ F({
8317
+ __name: "RDropdown",
8318
+ props: {
8319
+ options: { default: () => [] },
8320
+ modelValue: { default: "" },
8321
+ placeholder: { default: "" },
8322
+ taggable: { type: Boolean, default: !1 },
8323
+ multiple: { type: Boolean, default: !1 },
8324
+ disabled: { type: Boolean, default: !1 },
8325
+ loading: { type: Boolean, default: !1 },
8326
+ prependIcon: { default: "" },
8327
+ appendIcon: { default: "mdiChevronDown" },
8328
+ searchable: { type: Boolean, default: !1 },
8329
+ id: { default: "test" },
8330
+ closeOnSelect: { type: Boolean, default: !0 }
8331
+ },
8332
+ emits: ["update:modelValue"],
8333
+ setup(H, { emit: V }) {
8334
+ const C = H, L = D({ value: "", label: "" }), M = J([]), A = D(!1), i = D(""), e = D(), d = D(), l = D();
8335
+ function o(c, s) {
8336
+ var w, O, S;
8337
+ if (!C.disabled) {
8338
+ if (c.stopPropagation(), s && s(), A.value = !A.value, A.value) {
8339
+ (w = e.value) == null || w.classList.add("r-dropdown--active"), (O = e.value) == null || O.focus(), C.searchable && ((S = d.value) == null || S.focus());
8340
+ return;
8341
+ }
8342
+ t();
8343
+ }
8344
+ }
8345
+ function t() {
8346
+ var c, s, w;
8347
+ A.value = !1, (c = e.value) == null || c.classList.remove("r-dropdown--active"), (s = e.value) == null || s.blur(), (w = d.value) == null || w.blur();
8348
+ }
8349
+ function r(c, s, w) {
8350
+ var O;
8351
+ if (c.stopPropagation(), !s.disabled) {
8352
+ if (C.multiple || C.taggable) {
8353
+ c.stopPropagation(), M.find((S) => S.value === s.value) ? M.splice(M.indexOf(s), 1) : M.push(s), i.value = "", C.searchable && ((O = d.value) == null || O.focus());
8354
+ return;
8355
+ }
8356
+ n(c, s), C.closeOnSelect && (w(), t());
8357
+ }
8358
+ }
8359
+ function n(c, s) {
8360
+ if (L.value.value === s.value) {
8361
+ L.value = {}, i.value = "";
8362
+ return;
8363
+ }
8364
+ i.value = s.label, L.value = s, o(c), V("update:modelValue", s);
8365
+ }
8366
+ function Z(c, s) {
8367
+ if (c instanceof KeyboardEvent && c.key !== "Backspace" || i.value !== "")
8368
+ return;
8369
+ c.stopPropagation();
8370
+ const w = M.findIndex((O) => O.value === s.value);
8371
+ M.splice(w, 1);
8372
+ }
8373
+ function h(c) {
8374
+ var O;
8375
+ if (!C.taggable)
8376
+ return;
8377
+ c.stopPropagation();
8378
+ const s = i.value;
8379
+ if (s === "")
8380
+ return;
8381
+ C.options.find((S) => S.label === s) || (M.push({ value: s, label: s }), i.value = "", (O = d.value) == null || O.focus());
8382
+ }
8383
+ function f(c) {
8384
+ return C.multiple ? M.find((s) => s.value === c.value) : L.value.value === c.value;
8385
+ }
8386
+ const T = k(() => !C.searchable || L.value.label === i.value ? C.options : C.options.filter((s) => s.label.toLowerCase().includes(i.value.toLowerCase()))), v = k(() => C.multiple || C.taggable || !C.searchable);
8387
+ return _1(() => {
8388
+ C.modelValue && (C.multiple ? M.push(C.modelValue) : (L.value = C.modelValue, i.value = C.modelValue.label));
8389
+ }), W(M, (c) => {
8390
+ V("update:modelValue", c);
8391
+ }), (c, s) => (m(), a("div", {
8392
+ ref_key: "wrapper",
8393
+ ref: l,
8394
+ class: "r-dropdown-wrapper"
8395
+ }, [
8396
+ $(t5, {
8397
+ "auto-hide": !1,
8398
+ offset: 0,
8399
+ "outside-click": "",
8400
+ placement: "bottom",
8401
+ "tooltip-class": "w-max",
8402
+ "trigger-class": "w-full",
8403
+ triggers: ["click"],
8404
+ type: "dropdown",
8405
+ onHide: t
8406
+ }, {
8407
+ default: d1(({ activators: w }) => [
8408
+ u("div", {
8409
+ ref_key: "dropdown",
8410
+ ref: e,
8411
+ class: g(["r-dropdown", {
8412
+ "r-dropdown--disabled": C.disabled,
8413
+ "r-dropdown--loading": C.loading
8414
+ }]),
8415
+ role: "select",
8416
+ onClick: X((O) => o(O, w.click), ["stop"])
8417
+ }, [
8418
+ C.prependIcon || c.$slots.prepend ? (m(), a("div", {
8419
+ key: 0,
8420
+ class: g(["r-dropdown__prepend-icon", {
8421
+ "r-dropdown__prepend-icon--active": A.value
8422
+ }])
8423
+ }, [
8424
+ b(c.$slots, "prepend", {}, () => [
8425
+ C.prependIcon ? (m(), R(x, {
8426
+ key: 0,
8427
+ name: C.prependIcon
8428
+ }, null, 8, ["name"])) : B("", !0)
8429
+ ])
8430
+ ], 2)) : B("", !0),
8431
+ C.taggable ? (m(), a("div", l5, [
8432
+ (m(!0), a(z, null, q(M, (O, S) => (m(), R(E2, {
8433
+ key: S,
8434
+ "append-icon": "close",
8435
+ class: "r-dropdown__tags__chip",
8436
+ label: O.label,
8437
+ variant: "primary",
8438
+ "onClick:close": (P) => Z(P, O)
8439
+ }, null, 8, ["label", "onClick:close"]))), 128))
8440
+ ])) : B("", !0),
8441
+ C.multiple ? (m(), a("div", o5, [
8442
+ (m(!0), a(z, null, q(M, (O, S) => (m(), a("p", { key: S }, y(`${O.label},`), 1))), 128))
8443
+ ])) : B("", !0),
8444
+ W1(u("input", {
8445
+ id: C.id,
8446
+ ref_key: "input",
8447
+ ref: d,
8448
+ "onUpdate:modelValue": s[0] || (s[0] = (O) => i.value = O),
8449
+ class: g(["r-dropdown__input", {
8450
+ "r-dropdown__input--loading": C.loading
8451
+ }]),
8452
+ disabled: C.disabled,
8453
+ placeholder: C.placeholder,
8454
+ readonly: p(v),
8455
+ type: "text",
8456
+ onKeydown: [
8457
+ s[1] || (s[1] = B1((O) => Z(O, M[M.length - 1]), ["backspace"])),
8458
+ s[2] || (s[2] = B1((O) => h(O), ["enter"]))
8459
+ ]
8460
+ }, null, 42, n5), [
8461
+ [d2, i.value]
8462
+ ]),
8463
+ C.appendIcon || c.$slots.append ? (m(), a("div", {
8464
+ key: 3,
8465
+ class: g(["r-dropdown__append-icon", {
8466
+ "r-dropdown__append-icon--active": A.value
8467
+ }])
8468
+ }, [
8469
+ b(c.$slots, "append", {}, () => [
8470
+ C.appendIcon ? (m(), R(x, {
8471
+ key: 0,
8472
+ name: C.appendIcon
8473
+ }, null, 8, ["name"])) : B("", !0)
8474
+ ])
8475
+ ], 2)) : B("", !0)
8476
+ ], 10, m5)
8477
+ ]),
8478
+ content: d1(({ hide: w }) => [
8479
+ u("ul", {
8480
+ class: g(["r-dropdown-options", {
8481
+ "r-dropdown-options--active": A.value
8482
+ }])
8483
+ }, [
8484
+ (m(!0), a(z, null, q(p(T), (O) => (m(), a("li", {
8485
+ key: O.value,
8486
+ "aria-disabled": O.disabled,
8487
+ class: g(["r-dropdown-options__option", {
8488
+ "r-dropdown-options__option--active": f(O),
8489
+ "r-dropdown-options__option--disabled": O.disabled
8490
+ }]),
8491
+ onClick: X((S) => r(S, O, w), ["prevent"])
8492
+ }, [
8493
+ u("div", a5, [
8494
+ O.prependIcon ? (m(), R(x, {
8495
+ key: 1,
8496
+ class: g(["r-dropdown-options__option__prepend-icon", {
8497
+ "r-dropdown-options__option__prepend-icon--active": f(O)
8498
+ }]),
8499
+ name: O.prependIcon
8500
+ }, null, 8, ["class", "name"])) : b(c.$slots, "option-prepend", { key: 0 }),
8501
+ u("p", {
8502
+ class: g(["r-dropdown-options__option__label", {
8503
+ "r-dropdown-options__option__label--active": f(O)
8504
+ }])
8505
+ }, y(O.label), 3)
8506
+ ]),
8507
+ f(O) ? (m(), R(x, {
8508
+ key: 0,
8509
+ class: g(["r-dropdown-options__option__append-icon", {
8510
+ "r-dropdown-options__option__append-icon--active": f(O)
8511
+ }]),
8512
+ name: "mdiCheck"
8513
+ }, null, 8, ["class"])) : B("", !0)
8514
+ ], 10, r5))), 128))
8515
+ ], 2)
8516
+ ]),
8517
+ _: 3
8518
+ })
8519
+ ], 512));
8520
+ }
8521
+ }), Z5 = ["id", "for"], H2 = /* @__PURE__ */ F({
8522
+ __name: "RLabel",
8523
+ props: {
8524
+ id: { default: "" },
8525
+ for: { default: "" },
8526
+ text: { default: "" }
8527
+ },
8528
+ setup(H) {
8529
+ const V = H;
8530
+ return (C, L) => (m(), a("label", {
7980
8531
  id: V.id,
7981
8532
  class: "r-label",
7982
8533
  for: V.for
7983
8534
  }, [
7984
8535
  b(C.$slots, "default", {}, () => [
7985
- W1(y(V.text), 1)
8536
+ N1(y(V.text), 1)
7986
8537
  ])
7987
- ], 8, j2));
8538
+ ], 8, Z5));
7988
8539
  }
7989
- }), q2 = ["onClick"], Y2 = ["open"], X2 = { class: "r-dialog__header" }, J2 = {
8540
+ }), u5 = ["onClick"], S5 = ["open"], c5 = { class: "r-dialog__header" }, s5 = {
7990
8541
  key: 0,
7991
8542
  class: "icon"
7992
- }, C5 = {
8543
+ }, O5 = {
7993
8544
  key: 1,
7994
8545
  class: "title"
7995
- }, H5 = {
8546
+ }, p5 = {
7996
8547
  key: 2,
7997
8548
  class: "description"
7998
- }, V5 = { class: "r-dialog__body" }, L5 = { class: "r-dialog__actions" }, s3 = /* @__PURE__ */ F({
8549
+ }, h5 = { class: "r-dialog__body" }, f5 = { class: "r-dialog__actions" }, h3 = /* @__PURE__ */ F({
7999
8550
  __name: "RModal",
8000
8551
  props: {
8001
8552
  modelValue: { type: Boolean, default: !1 },
@@ -8016,45 +8567,45 @@ const G2 = {
8016
8567
  "r-dialog": !0,
8017
8568
  "r-dialog--block": C.block,
8018
8569
  [`${C.class}`]: !0
8019
- })), A = k(() => ({
8570
+ })), M = k(() => ({
8020
8571
  width: C.width,
8021
8572
  height: C.height
8022
- })), M = (i) => {
8573
+ })), A = (i) => {
8023
8574
  C.outsideClick && i.target === i.currentTarget && V("update:modelValue", !1);
8024
8575
  };
8025
- return (i, e) => _1((m(), a("div", {
8576
+ return (i, e) => W1((m(), a("div", {
8026
8577
  class: g(["r-modal-overlay", H.overlayClass]),
8027
- onClick: z(M, ["stop"])
8578
+ onClick: X(A, ["stop"])
8028
8579
  }, [
8029
- Z("div", {
8580
+ u("div", {
8030
8581
  "aria-modal": "true",
8031
- class: g(h(L)),
8582
+ class: g(p(L)),
8032
8583
  open: C.modelValue,
8033
8584
  role: "dialog",
8034
- style: p1(h(A))
8585
+ style: h1(p(M))
8035
8586
  }, [
8036
- Z("div", X2, [
8587
+ u("div", c5, [
8037
8588
  b(i.$slots, "header"),
8038
- C.icon ? (m(), a("div", J2, [
8039
- q(x, {
8589
+ C.icon ? (m(), a("div", s5, [
8590
+ $(x, {
8040
8591
  name: C.icon
8041
8592
  }, null, 8, ["name"])
8042
8593
  ])) : B("", !0),
8043
- C.title ? (m(), a("div", C5, y(C.title), 1)) : B("", !0),
8044
- C.description ? (m(), a("div", H5, y(C.description), 1)) : B("", !0)
8594
+ C.title ? (m(), a("div", O5, y(C.title), 1)) : B("", !0),
8595
+ C.description ? (m(), a("div", p5, y(C.description), 1)) : B("", !0)
8045
8596
  ]),
8046
- Z("div", V5, [
8597
+ u("div", h5, [
8047
8598
  b(i.$slots, "default")
8048
8599
  ]),
8049
- Z("div", L5, [
8600
+ u("div", f5, [
8050
8601
  b(i.$slots, "actions")
8051
8602
  ])
8052
- ], 14, Y2)
8053
- ], 10, q2)), [
8054
- [i2, H.modelValue]
8603
+ ], 14, S5)
8604
+ ], 10, u5)), [
8605
+ [t2, H.modelValue]
8055
8606
  ]);
8056
8607
  }
8057
- }), M5 = ["data-open"], A5 = { class: "r-sidebar__nav" }, i5 = { class: "r-sidebar__actions" }, e5 = ["data-open"], d5 = /* @__PURE__ */ W1(" > "), O3 = /* @__PURE__ */ F({
8608
+ }), g5 = ["data-open"], k5 = { class: "r-sidebar__nav" }, B5 = { class: "r-sidebar__actions" }, b5 = ["data-open"], y5 = /* @__PURE__ */ N1(" > "), f3 = /* @__PURE__ */ F({
8058
8609
  __name: "RSidebar",
8059
8610
  props: {
8060
8611
  modelValue: { type: Boolean, default: !1 },
@@ -8067,34 +8618,34 @@ const G2 = {
8067
8618
  const V = H, C = k(() => ({
8068
8619
  "r-sidebar": !0
8069
8620
  }));
8070
- return (L, A) => (m(), a(U, null, [
8071
- Z("aside", {
8072
- class: g([h(C), V.class]),
8621
+ return (L, M) => (m(), a(z, null, [
8622
+ u("aside", {
8623
+ class: g([p(C), V.class]),
8073
8624
  "data-open": V.modelValue
8074
8625
  }, [
8075
- Z("nav", A5, [
8626
+ u("nav", k5, [
8076
8627
  b(L.$slots, "default")
8077
8628
  ]),
8078
- Z("div", i5, [
8629
+ u("div", B5, [
8079
8630
  b(L.$slots, "actions")
8080
8631
  ])
8081
- ], 10, M5),
8632
+ ], 10, g5),
8082
8633
  V.showTrigger ? (m(), a("div", {
8083
8634
  key: 0,
8084
8635
  class: g(["r-sidebar__trigger", [V.triggerClass]]),
8085
8636
  "data-open": V.modelValue,
8086
- onClick: A[0] || (A[0] = (M) => L.$emit("update:modelValue", !V.modelValue))
8637
+ onClick: M[0] || (M[0] = (A) => L.$emit("update:modelValue", !V.modelValue))
8087
8638
  }, [
8088
8639
  b(L.$slots, "trigger", {}, () => [
8089
- d5
8640
+ y5
8090
8641
  ])
8091
- ], 10, e5)) : B("", !0)
8642
+ ], 10, b5)) : B("", !0)
8092
8643
  ], 64));
8093
8644
  }
8094
- }), t5 = { class: "r-snackbar__text" }, m5 = {
8645
+ }), w5 = { class: "r-snackbar__text" }, P5 = {
8095
8646
  key: 0,
8096
8647
  class: "r-snackbar__close"
8097
- }, p3 = /* @__PURE__ */ F({
8648
+ }, g3 = /* @__PURE__ */ F({
8098
8649
  __name: "RSnackbar",
8099
8650
  props: {
8100
8651
  modelValue: { type: Boolean, default: !1 },
@@ -8125,42 +8676,42 @@ const G2 = {
8125
8676
  [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
8126
8677
  [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
8127
8678
  [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0
8128
- })), A = k(() => ({
8679
+ })), M = k(() => ({
8129
8680
  success: "mdiCheckCircle",
8130
8681
  error: "mdiAlertCircle",
8131
8682
  warning: "mdiAlert",
8132
8683
  info: "mdiInformation"
8133
8684
  })[C.variant || "info"]);
8134
- return (M, i) => (m(), a("div", {
8135
- class: g(h(L))
8685
+ return (A, i) => (m(), a("div", {
8686
+ class: g(p(L))
8136
8687
  }, [
8137
- b(M.$slots, "default", {}, () => [
8688
+ b(A.$slots, "default", {}, () => [
8138
8689
  C.variant ? (m(), R(x, {
8139
8690
  key: 0,
8140
8691
  class: "r-snackbar__icon",
8141
- name: h(A)
8692
+ name: p(M)
8142
8693
  }, null, 8, ["name"])) : B("", !0)
8143
8694
  ]),
8144
- Z("div", t5, y(C.text), 1),
8145
- b(M.$slots, "action"),
8146
- C.closable ? (m(), a("div", m5, [
8147
- b(M.$slots, "close", {}, () => [
8148
- q(x, {
8695
+ u("div", w5, y(C.text), 1),
8696
+ b(A.$slots, "action"),
8697
+ C.closable ? (m(), a("div", P5, [
8698
+ b(A.$slots, "close", {}, () => [
8699
+ $(x, {
8149
8700
  name: "mdiClose",
8150
8701
  size: 16,
8151
- onClick: i[0] || (i[0] = z((e) => M.$emit("update:modelValue", !1), ["stop"]))
8702
+ onClick: i[0] || (i[0] = X((e) => A.$emit("update:modelValue", !1), ["stop"]))
8152
8703
  })
8153
8704
  ])
8154
8705
  ])) : B("", !0)
8155
8706
  ], 2));
8156
8707
  }
8157
- }), l5 = { class: "r-switch-container" }, o5 = ["id", "checked"], n5 = /* @__PURE__ */ Z("span", { class: "slider round" }, null, -1), r5 = ["id", "for"], a5 = {
8708
+ }), T5 = { class: "r-switch-container" }, v5 = ["id", "checked"], F5 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), R5 = ["id", "for"], x5 = {
8158
8709
  key: 0,
8159
8710
  class: "r-switch-texts__error"
8160
- }, Z5 = {
8711
+ }, D5 = {
8161
8712
  key: 1,
8162
8713
  class: "r-switch-texts__hint"
8163
- }, h3 = /* @__PURE__ */ F({
8714
+ }, k3 = /* @__PURE__ */ F({
8164
8715
  __name: "RSwitch",
8165
8716
  props: {
8166
8717
  id: { default: "switch" },
@@ -8175,12 +8726,12 @@ const G2 = {
8175
8726
  setup(H, { emit: V }) {
8176
8727
  const C = H, L = J({
8177
8728
  checked: !1
8178
- }), A = k(() => ({
8729
+ }), M = k(() => ({
8179
8730
  "r-switch": !0,
8180
8731
  "r-switch--disabled": C.disabled,
8181
8732
  [`r-switch--${C.size}`]: C.size,
8182
8733
  "r-switch--error": C.errorMsg
8183
- })), M = (i) => {
8734
+ })), A = (i) => {
8184
8735
  C.disabled || (L.checked = i.target.checked, V("update:modelValue", L.checked));
8185
8736
  };
8186
8737
  return W(
@@ -8193,40 +8744,40 @@ const G2 = {
8193
8744
  // TODO: find a better way to do this
8194
8745
  immediate: !0
8195
8746
  }
8196
- ), (i, e) => (m(), a("div", l5, [
8197
- Z("div", {
8198
- class: g(h(A))
8747
+ ), (i, e) => (m(), a("div", T5, [
8748
+ u("div", {
8749
+ class: g(p(M))
8199
8750
  }, [
8200
- Z("input", {
8751
+ u("input", {
8201
8752
  id: C.id,
8202
8753
  checked: L.checked,
8203
8754
  class: "r-switch__input",
8204
8755
  type: "checkbox",
8205
- onChange: M
8206
- }, null, 40, o5),
8207
- n5
8756
+ onChange: A
8757
+ }, null, 40, v5),
8758
+ F5
8208
8759
  ], 2),
8209
- Z("div", {
8760
+ u("div", {
8210
8761
  class: g({
8211
8762
  "r-switch-texts": !0,
8212
8763
  [`r-switch-texts--${C.size}`]: !0
8213
8764
  })
8214
8765
  }, [
8215
- Z("label", {
8766
+ u("label", {
8216
8767
  id: C.id,
8217
8768
  class: "r-switch-texts__label",
8218
8769
  for: C.id
8219
- }, y(C.label), 9, r5),
8220
- C.errorMsg ? (m(), a("p", a5, y(C.errorMsg), 1)) : (m(), a("p", Z5, y(C.hint), 1))
8770
+ }, y(C.label), 9, R5),
8771
+ C.errorMsg ? (m(), a("p", x5, y(C.errorMsg), 1)) : (m(), a("p", D5, y(C.hint), 1))
8221
8772
  ], 2)
8222
8773
  ]));
8223
8774
  }
8224
8775
  });
8225
8776
  var V1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(V1 || {});
8226
- const u5 = ["aria-disabled", "aria-selected", "disabled"], S5 = {
8777
+ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8227
8778
  key: 0,
8228
8779
  class: "r-tab-item__label"
8229
- }, c5 = /* @__PURE__ */ F({
8780
+ }, W5 = /* @__PURE__ */ F({
8230
8781
  __name: "RTabItem",
8231
8782
  props: {
8232
8783
  id: null,
@@ -8247,10 +8798,10 @@ const u5 = ["aria-disabled", "aria-selected", "disabled"], S5 = {
8247
8798
  [`r-tab-item--${C.variant}`]: !0,
8248
8799
  "r-tab-item--tile": C.tile,
8249
8800
  "r-tab-item--block": C.block
8250
- })), A = k(() => ({
8801
+ })), M = k(() => ({
8251
8802
  color: C.color
8252
8803
  }));
8253
- function M(e) {
8804
+ function A(e) {
8254
8805
  V("update:modelValue", e);
8255
8806
  }
8256
8807
  function i() {
@@ -8259,822 +8810,303 @@ const u5 = ["aria-disabled", "aria-selected", "disabled"], S5 = {
8259
8810
  return (e, d) => (m(), a("button", {
8260
8811
  "aria-disabled": C.disabled,
8261
8812
  "aria-selected": C.modelValue === C.id,
8262
- class: g(h(L)),
8813
+ class: g(p(L)),
8263
8814
  disabled: C.disabled,
8264
- style: p1(h(A)),
8265
- onClick: d[0] || (d[0] = z((l) => M(C.id), ["stop"]))
8815
+ style: h1(p(M)),
8816
+ onClick: d[0] || (d[0] = X((l) => A(C.id), ["stop"]))
8266
8817
  }, [
8267
8818
  b(e.$slots, "prepend", {}, () => [
8268
- C.variant !== h(V1).TEXT && C.prependIcon ? (m(), R(x, {
8819
+ C.variant !== p(V1).TEXT && C.prependIcon ? (m(), R(x, {
8269
8820
  key: 0,
8270
8821
  class: "r-tab-item__prepend-icon",
8271
8822
  name: C.prependIcon,
8272
8823
  size: 16
8273
8824
  }, null, 8, ["name"])) : B("", !0)
8274
8825
  ]),
8275
- C.variant !== h(V1).ICON ? (m(), a("span", S5, y(C.label), 1)) : B("", !0),
8826
+ C.variant !== p(V1).ICON ? (m(), a("span", _5, y(C.label), 1)) : B("", !0),
8276
8827
  b(e.$slots, "append", {}, () => [
8277
- C.variant !== h(V1).TEXT && C.appendIcon ? (m(), R(x, {
8828
+ C.variant !== p(V1).TEXT && C.appendIcon ? (m(), R(x, {
8278
8829
  key: 0,
8279
8830
  class: "r-tab-item__append-icon",
8280
8831
  name: C.appendIcon,
8281
8832
  size: 16,
8282
- onClick: z(i, ["stop"])
8833
+ onClick: X(i, ["stop"])
8283
8834
  }, null, 8, ["name", "onClick"])) : B("", !0)
8284
8835
  ])
8285
- ], 14, u5));
8836
+ ], 14, E5));
8286
8837
  }
8287
- }), f3 = /* @__PURE__ */ F({
8838
+ }), B3 = /* @__PURE__ */ F({
8288
8839
  __name: "RTabs",
8289
8840
  props: {
8290
8841
  tabs: { default: () => [] },
8291
8842
  block: { type: Boolean, default: !1 },
8292
8843
  modelValue: { default: "" },
8293
- tile: { type: Boolean, default: !1 }
8844
+ tile: { type: Boolean, default: !1 },
8845
+ scrollable: { type: Boolean, default: !1 }
8294
8846
  },
8295
8847
  emits: ["update:modelValue", "click:icon"],
8296
8848
  setup(H, { emit: V }) {
8297
- const C = H, L = D(C.modelValue || C.tabs[0].id), A = k(() => ({
8849
+ const C = H, L = D(C.modelValue || C.tabs[0].id), M = k(() => ({
8298
8850
  "r-tabs": !0,
8299
8851
  "r-tabs--block": C.block,
8300
- "r-tabs--tile": C.tile
8852
+ "r-tabs--tile": C.tile,
8853
+ "r-tabs--scrollable": C.scrollable
8301
8854
  }));
8302
8855
  W(
8303
8856
  () => L.value,
8304
8857
  () => {
8305
8858
  V("update:modelValue", L.value);
8306
8859
  }
8307
- );
8308
- const M = () => {
8309
- V("click:icon");
8310
- };
8311
- return (i, e) => (m(), a("div", {
8312
- class: g(h(A))
8313
- }, [
8314
- b(i.$slots, "default", {}, () => [
8315
- (m(!0), a(U, null, Y(C.tabs, (d, l) => (m(), R(c5, {
8316
- id: d.id,
8317
- key: l,
8318
- modelValue: L.value,
8319
- "onUpdate:modelValue": e[0] || (e[0] = (o) => L.value = o),
8320
- active: l === L.value,
8321
- appendIcon: d.appendIcon,
8322
- block: H.block,
8323
- disabled: d.disabled,
8324
- label: d.label,
8325
- prependIcon: d.prependIcon,
8326
- tile: H.tile,
8327
- variant: d.variant,
8328
- "onClick:icon": M
8329
- }, null, 8, ["id", "modelValue", "active", "appendIcon", "block", "disabled", "label", "prependIcon", "tile", "variant"]))), 128))
8330
- ])
8331
- ], 2));
8332
- }
8333
- }), s5 = { class: "container" }, O5 = ["id", "disabled", "placeholder", "value"], p5 = {
8334
- key: 1,
8335
- class: "r-textarea__error"
8336
- }, h5 = {
8337
- key: 2,
8338
- class: "r-textarea__hint"
8339
- }, g3 = /* @__PURE__ */ F({
8340
- __name: "RTextArea",
8341
- props: {
8342
- id: { default: "" },
8343
- modelValue: { default: "" },
8344
- label: { default: "" },
8345
- placeholder: { default: "" },
8346
- disabled: { default: !1 },
8347
- hint: { default: "This is a hint" },
8348
- errorMsg: { default: "" }
8349
- },
8350
- emits: ["update:modelValue"],
8351
- setup(H, { emit: V }) {
8352
- const C = H, L = J({
8353
- value: ""
8354
- });
8355
- function A(M) {
8356
- V("update:modelValue", M.target.value);
8357
- }
8358
- return W(
8359
- () => C.modelValue,
8360
- (M) => {
8361
- L.value = M;
8362
- },
8363
- {
8364
- immediate: !0
8365
- }
8366
- ), (M, i) => (m(), a("div", s5, [
8367
- C.label ? (m(), R(z1, {
8368
- key: 0,
8369
- id: "textarea",
8370
- class: "r-textarea__label",
8371
- for: "textarea",
8372
- text: C.label
8373
- }, null, 8, ["text"])) : B("", !0),
8374
- Z("textarea", {
8375
- id: C.id,
8376
- class: g(["r-textarea", {
8377
- "r-textarea--error": C.errorMsg,
8378
- "r-textarea--disabled": C.disabled
8379
- }]),
8380
- disabled: C.disabled,
8381
- placeholder: C.placeholder,
8382
- value: L.value,
8383
- onInput: A
8384
- }, null, 42, O5),
8385
- C.errorMsg ? (m(), a("p", p5, y(C.errorMsg), 1)) : (m(), a("p", h5, y(C.hint), 1))
8386
- ]));
8387
- }
8388
- }), f5 = { class: "r-textfield__wrapper" }, g5 = { class: "input-wrapper" }, k5 = ["id", "disabled", "max", "min", "placeholder", "type", "value"], B5 = {
8389
- key: 0,
8390
- class: "r-textfield__error"
8391
- }, b5 = {
8392
- key: 1,
8393
- class: "r-textfield__hint"
8394
- }, k3 = /* @__PURE__ */ F({
8395
- __name: "RTextfield",
8396
- props: {
8397
- id: { default: "" },
8398
- type: { default: "text" },
8399
- modelValue: { default: "" },
8400
- label: { default: "" },
8401
- placeholder: { default: "" },
8402
- errorMsg: { default: "" },
8403
- hint: { default: "" },
8404
- prependIcon: { default: "" },
8405
- appendIcon: { default: "" },
8406
- disabled: { type: Boolean, default: !1 },
8407
- loading: { type: Boolean, default: !1 },
8408
- clearable: { type: Boolean, default: !1 },
8409
- min: null,
8410
- max: null
8411
- },
8412
- emits: [
8413
- "update:modelValue",
8414
- "focus",
8415
- "blur",
8416
- "input",
8417
- "click:icon",
8418
- "click:clear"
8419
- ],
8420
- setup(H, { emit: V }) {
8421
- const C = H, L = D(), A = J({
8422
- value: ""
8423
- }), M = D(C.type), i = {
8424
- password: "mdiLock",
8425
- email: "mdiEmailOutline",
8426
- tel: "mdiPhone",
8427
- url: "mdiLink",
8428
- number: "mdiNumeric",
8429
- text: ""
8430
- }, e = D(!1), d = k(() => !!A.value), l = k(() => A.value.length > 0), o = k(() => {
8431
- var p;
8432
- return (p = C.errorMsg) == null ? void 0 : p.length;
8433
- }), t = k(() => C.clearable && l.value), r = k(() => {
8434
- const { disabled: p, loading: P, clearable: E, errorMsg: _ } = C;
8435
- return {
8436
- "r-textfield": !0,
8437
- "r-textfield--error": _ == null ? void 0 : _.length,
8438
- "r-textfield--loading": P,
8439
- "r-textfield--disabled": p,
8440
- "r-textfield--clearable": E,
8441
- "r-textfield--focus": e.value,
8442
- "r-textfield--filled": d.value
8443
- };
8444
- }), n = k(() => ({
8445
- "r-textfield__prepend-icon": !0,
8446
- "r-textfield__prepend-icon--loading": C.loading,
8447
- "r-textfield__prepend-icon--error": o.value && d.value
8448
- })), u = k(() => ({
8449
- "r-textfield__append-icon": !0,
8450
- "r-textfield__append-icon--clear": t.value,
8451
- "r-textfield__append-icon--error": o.value
8452
- })), O = k(() => {
8453
- const { prependIcon: p, type: P } = C;
8454
- return p === "none" ? "" : p || i[P];
8455
- }), f = k(() => {
8456
- const { appendIcon: p, type: P } = C;
8457
- return p === "none" ? "" : o.value ? "mdiAlertCircleOutline" : t.value && ["text", "email"].includes(P) ? "mdiClose" : P === "password" && M.value === "password" ? "mdiEyeOutline" : P === "password" && M.value === "text" ? "mdiEyeOffOutline" : p;
8458
- });
8459
- function w(p) {
8460
- e.value = !0, V("focus", p);
8461
- }
8462
- function T(p) {
8463
- e.value = !1, V("blur", p);
8464
- }
8465
- function S(p) {
8466
- A.value = p.target.value, V("input", p);
8467
- }
8468
- function s() {
8469
- var p;
8470
- if (t.value) {
8471
- A.value = "", (p = L.value) == null || p.focus(), V("click:clear", {
8472
- value: M.value === "number" ? +A.value : A.value
8473
- });
8474
- return;
8475
- }
8476
- V("click:icon", {
8477
- value: M.value === "number" ? +A.value : A.value
8478
- }), M.value === "password" && c();
8479
- }
8480
- function c() {
8481
- M.value = M.value === "password" ? "text" : "password";
8482
- }
8483
- function v() {
8484
- var p;
8485
- (p = L.value) == null || p.focus();
8486
- }
8487
- return W(
8488
- () => C.modelValue,
8489
- (p) => {
8490
- A.value = p;
8491
- },
8492
- {
8493
- immediate: !0
8494
- }
8495
- ), W(
8496
- () => A.value,
8497
- (p) => {
8498
- V(
8499
- "update:modelValue",
8500
- M.value === "number" ? +p : p
8501
- );
8502
- }
8503
- ), (p, P) => (m(), a("fieldset", null, [
8504
- Z("div", f5, [
8505
- C.label ? (m(), R(z1, {
8506
- key: 0,
8507
- id: C.id,
8508
- class: "r-textfield__label",
8509
- for: C.id,
8510
- text: C.label,
8511
- onClick: v
8512
- }, null, 8, ["id", "for", "text"])) : B("", !0),
8513
- Z("div", g5, [
8514
- Z("div", {
8515
- class: g(h(r))
8516
- }, [
8517
- b(p.$slots, "prepend"),
8518
- h(O) && !p.$slots.prepend ? (m(), R(x, {
8519
- key: 0,
8520
- class: g(h(n)),
8521
- name: h(O),
8522
- size: 20
8523
- }, null, 8, ["class", "name"])) : B("", !0),
8524
- Z("input", {
8525
- id: C.id,
8526
- ref_key: "inputRef",
8527
- ref: L,
8528
- disabled: C.disabled,
8529
- max: C.max,
8530
- min: C.min,
8531
- placeholder: C.placeholder,
8532
- type: M.value,
8533
- value: A.value,
8534
- onBlur: T,
8535
- onFocus: w,
8536
- onInput: S
8537
- }, null, 40, k5),
8538
- b(p.$slots, "append"),
8539
- h(f) && !p.$slots.append ? (m(), R(x, {
8540
- key: 1,
8541
- class: g(h(u)),
8542
- name: `${h(f)}`,
8543
- size: 20,
8544
- onClick: s
8545
- }, null, 8, ["class", "name"])) : B("", !0)
8546
- ], 2),
8547
- C.errorMsg ? (m(), a("div", B5, y(C.errorMsg), 1)) : B("", !0),
8548
- !C.errorMsg && C.hint ? (m(), a("div", b5, y(C.hint), 1)) : B("", !0)
8549
- ])
8550
- ])
8551
- ]));
8552
- }
8553
- });
8554
- function A1(H) {
8555
- return H.split("-")[0];
8556
- }
8557
- function o1(H) {
8558
- return H.split("-")[1];
8559
- }
8560
- function i1(H) {
8561
- return ["top", "bottom"].includes(A1(H)) ? "x" : "y";
8562
- }
8563
- function h1(H) {
8564
- return H === "y" ? "height" : "width";
8565
- }
8566
- function y1(H, V, C) {
8567
- let { reference: L, floating: A } = H;
8568
- const M = L.x + L.width / 2 - A.width / 2, i = L.y + L.height / 2 - A.height / 2, e = i1(V), d = h1(e), l = L[d] / 2 - A[d] / 2, o = e === "x";
8569
- let t;
8570
- switch (A1(V)) {
8571
- case "top":
8572
- t = { x: M, y: L.y - A.height };
8573
- break;
8574
- case "bottom":
8575
- t = { x: M, y: L.y + L.height };
8576
- break;
8577
- case "right":
8578
- t = { x: L.x + L.width, y: i };
8579
- break;
8580
- case "left":
8581
- t = { x: L.x - A.width, y: i };
8582
- break;
8583
- default:
8584
- t = { x: L.x, y: L.y };
8585
- }
8586
- switch (o1(V)) {
8587
- case "start":
8588
- t[e] -= l * (C && o ? -1 : 1);
8589
- break;
8590
- case "end":
8591
- t[e] += l * (C && o ? -1 : 1);
8592
- }
8593
- return t;
8594
- }
8595
- const y5 = async (H, V, C) => {
8596
- const { placement: L = "bottom", strategy: A = "absolute", middleware: M = [], platform: i } = C, e = M.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
8597
- let l = await i.getElementRects({ reference: H, floating: V, strategy: A }), { x: o, y: t } = y1(l, L, d), r = L, n = {}, u = 0;
8598
- for (let O = 0; O < e.length; O++) {
8599
- const { name: f, fn: w } = e[O], { x: T, y: S, data: s, reset: c } = await w({ x: o, y: t, initialPlacement: L, placement: r, strategy: A, middlewareData: n, rects: l, platform: i, elements: { reference: H, floating: V } });
8600
- o = T ?? o, t = S ?? t, n = { ...n, [f]: { ...n[f], ...s } }, c && u <= 50 && (u++, typeof c == "object" && (c.placement && (r = c.placement), c.rects && (l = c.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: A }) : c.rects), { x: o, y: t } = y1(l, r, d)), O = -1);
8601
- }
8602
- return { x: o, y: t, placement: r, strategy: A, middlewareData: n };
8603
- };
8604
- function U1(H) {
8605
- return typeof H != "number" ? function(V) {
8606
- return { top: 0, right: 0, bottom: 0, left: 0, ...V };
8607
- }(H) : { top: H, right: H, bottom: H, left: H };
8608
- }
8609
- function d1(H) {
8610
- return { ...H, top: H.y, left: H.x, right: H.x + H.width, bottom: H.y + H.height };
8611
- }
8612
- async function t1(H, V) {
8613
- var C;
8614
- V === void 0 && (V = {});
8615
- const { x: L, y: A, platform: M, rects: i, elements: e, strategy: d } = H, { boundary: l = "clippingAncestors", rootBoundary: o = "viewport", elementContext: t = "floating", altBoundary: r = !1, padding: n = 0 } = V, u = U1(n), O = e[r ? t === "floating" ? "reference" : "floating" : t], f = d1(await M.getClippingRect({ element: (C = await (M.isElement == null ? void 0 : M.isElement(O))) == null || C ? O : O.contextElement || await (M.getDocumentElement == null ? void 0 : M.getDocumentElement(e.floating)), boundary: l, rootBoundary: o, strategy: d })), w = d1(M.convertOffsetParentRelativeRectToViewportRelativeRect ? await M.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: t === "floating" ? { ...i.floating, x: L, y: A } : i.reference, offsetParent: await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(e.floating)), strategy: d }) : i[t]);
8616
- return { top: f.top - w.top + u.top, bottom: w.bottom - f.bottom + u.bottom, left: f.left - w.left + u.left, right: w.right - f.right + u.right };
8617
- }
8618
- const w5 = Math.min, P5 = Math.max;
8619
- function s1(H, V, C) {
8620
- return P5(H, w5(V, C));
8621
- }
8622
- const T5 = (H) => ({ name: "arrow", options: H, async fn(V) {
8623
- const { element: C, padding: L = 0 } = H ?? {}, { x: A, y: M, placement: i, rects: e, platform: d } = V;
8624
- if (C == null)
8625
- return {};
8626
- const l = U1(L), o = { x: A, y: M }, t = i1(i), r = o1(i), n = h1(t), u = await d.getDimensions(C), O = t === "y" ? "top" : "left", f = t === "y" ? "bottom" : "right", w = e.reference[n] + e.reference[t] - o[t] - e.floating[n], T = o[t] - e.reference[t], S = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
8627
- let s = S ? t === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0;
8628
- s === 0 && (s = e.floating[n]);
8629
- const c = w / 2 - T / 2, v = l[O], p = s - u[n] - l[f], P = s / 2 - u[n] / 2 + c, E = s1(v, P, p), _ = (r === "start" ? l[O] : l[f]) > 0 && P !== E && e.reference[n] <= e.floating[n];
8630
- return { [t]: o[t] - (_ ? P < v ? v - P : p - P : 0), data: { [t]: E, centerOffset: P - E } };
8631
- } }), v5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
8632
- function m1(H) {
8633
- return H.replace(/left|right|bottom|top/g, (V) => v5[V]);
8634
- }
8635
- function F5(H, V, C) {
8636
- C === void 0 && (C = !1);
8637
- const L = o1(H), A = i1(H), M = h1(A);
8638
- let i = A === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
8639
- return V.reference[M] > V.floating[M] && (i = m1(i)), { main: i, cross: m1(i) };
8640
- }
8641
- const R5 = { start: "end", end: "start" };
8642
- function w1(H) {
8643
- return H.replace(/start|end/g, (V) => R5[V]);
8644
- }
8645
- const $1 = ["top", "right", "bottom", "left"];
8646
- $1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
8647
- const x5 = function(H) {
8648
- return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
8649
- var C;
8650
- const { placement: L, middlewareData: A, rects: M, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: l = !0, crossAxis: o = !0, fallbackPlacements: t, fallbackStrategy: r = "bestFit", flipAlignment: n = !0, ...u } = H, O = A1(L), f = t || (O === i || !n ? [m1(i)] : function(P) {
8651
- const E = m1(P);
8652
- return [w1(P), E, w1(E)];
8653
- }(i)), w = [i, ...f], T = await t1(V, u), S = [];
8654
- let s = ((C = A.flip) == null ? void 0 : C.overflows) || [];
8655
- if (l && S.push(T[O]), o) {
8656
- const { main: P, cross: E } = F5(L, M, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
8657
- S.push(T[P], T[E]);
8658
- }
8659
- if (s = [...s, { placement: L, overflows: S }], !S.every((P) => P <= 0)) {
8660
- var c, v;
8661
- const P = ((c = (v = A.flip) == null ? void 0 : v.index) != null ? c : 0) + 1, E = w[P];
8662
- if (E)
8663
- return { data: { index: P, overflows: s }, reset: { placement: E } };
8664
- let _ = "bottom";
8665
- switch (r) {
8666
- case "bestFit": {
8667
- var p;
8668
- const g1 = (p = s.map((e1) => [e1, e1.overflows.filter((C1) => C1 > 0).reduce((C1, H2) => C1 + H2, 0)]).sort((e1, C1) => e1[1] - C1[1])[0]) == null ? void 0 : p[0].placement;
8669
- g1 && (_ = g1);
8670
- break;
8671
- }
8672
- case "initialPlacement":
8673
- _ = i;
8674
- }
8675
- if (L !== _)
8676
- return { reset: { placement: _ } };
8677
- }
8678
- return {};
8679
- } };
8680
- };
8681
- function P1(H, V) {
8682
- return { top: H.top - V.height, right: H.right - V.width, bottom: H.bottom - V.height, left: H.left - V.width };
8683
- }
8684
- function T1(H) {
8685
- return $1.some((V) => H[V] >= 0);
8686
- }
8687
- const D5 = function(H) {
8688
- let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
8689
- return { name: "hide", async fn(L) {
8690
- const { rects: A } = L;
8691
- switch (V) {
8692
- case "referenceHidden": {
8693
- const M = P1(await t1(L, { ...C, elementContext: "reference" }), A.reference);
8694
- return { data: { referenceHiddenOffsets: M, referenceHidden: T1(M) } };
8695
- }
8696
- case "escaped": {
8697
- const M = P1(await t1(L, { ...C, altBoundary: !0 }), A.floating);
8698
- return { data: { escapedOffsets: M, escaped: T1(M) } };
8699
- }
8700
- default:
8701
- return {};
8702
- }
8703
- } };
8704
- }, E5 = function(H) {
8705
- return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
8706
- const { x: C, y: L } = V, A = await async function(M, i) {
8707
- const { placement: e, platform: d, elements: l } = M, o = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), t = A1(e), r = o1(e), n = i1(e) === "x", u = ["left", "top"].includes(t) ? -1 : 1, O = o && n ? -1 : 1, f = typeof i == "function" ? i(M) : i;
8708
- let { mainAxis: w, crossAxis: T, alignmentAxis: S } = typeof f == "number" ? { mainAxis: f, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...f };
8709
- return r && typeof S == "number" && (T = r === "end" ? -1 * S : S), n ? { x: T * O, y: w * u } : { x: w * u, y: T * O };
8710
- }(V, H);
8711
- return { x: C + A.x, y: L + A.y, data: A };
8712
- } };
8713
- };
8714
- function _5(H) {
8715
- return H === "x" ? "y" : "x";
8716
- }
8717
- const W5 = function(H) {
8718
- return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
8719
- const { x: C, y: L, placement: A } = V, { mainAxis: M = !0, crossAxis: i = !1, limiter: e = { fn: (f) => {
8720
- let { x: w, y: T } = f;
8721
- return { x: w, y: T };
8722
- } }, ...d } = H, l = { x: C, y: L }, o = await t1(V, d), t = i1(A1(A)), r = _5(t);
8723
- let n = l[t], u = l[r];
8724
- if (M) {
8725
- const f = t === "y" ? "bottom" : "right";
8726
- n = s1(n + o[t === "y" ? "top" : "left"], n, n - o[f]);
8727
- }
8728
- if (i) {
8729
- const f = r === "y" ? "bottom" : "right";
8730
- u = s1(u + o[r === "y" ? "top" : "left"], u, u - o[f]);
8731
- }
8732
- const O = e.fn({ ...V, [t]: n, [r]: u });
8733
- return { ...O, data: { x: O.x - C, y: O.y - L } };
8734
- } };
8735
- };
8736
- function K1(H) {
8737
- return H && H.document && H.location && H.alert && H.setInterval;
8738
- }
8739
- function G(H) {
8740
- if (H == null)
8741
- return window;
8742
- if (!K1(H)) {
8743
- const V = H.ownerDocument;
8744
- return V && V.defaultView || window;
8745
- }
8746
- return H;
8747
- }
8748
- function I(H) {
8749
- return G(H).getComputedStyle(H);
8750
- }
8751
- function K(H) {
8752
- return K1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
8753
- }
8754
- function j1() {
8755
- const H = navigator.userAgentData;
8756
- return H && Array.isArray(H.brands) ? H.brands.map((V) => V.brand + "/" + V.version).join(" ") : navigator.userAgent;
8757
- }
8758
- function Q(H) {
8759
- return H instanceof G(H).HTMLElement;
8760
- }
8761
- function X(H) {
8762
- return H instanceof G(H).Element;
8763
- }
8764
- function v1(H) {
8765
- return typeof ShadowRoot > "u" ? !1 : H instanceof G(H).ShadowRoot || H instanceof ShadowRoot;
8766
- }
8767
- function n1(H) {
8768
- const { overflow: V, overflowX: C, overflowY: L, display: A } = I(H);
8769
- return /auto|scroll|overlay|hidden/.test(V + L + C) && !["inline", "contents"].includes(A);
8770
- }
8771
- function N5(H) {
8772
- return ["table", "td", "th"].includes(K(H));
8773
- }
8774
- function O1(H) {
8775
- const V = /firefox/i.test(j1()), C = I(H), L = C.backdropFilter || C.WebkitBackdropFilter;
8776
- return C.transform !== "none" || C.perspective !== "none" || !!L && L !== "none" || V && C.willChange === "filter" || V && !!C.filter && C.filter !== "none" || ["transform", "perspective"].some((A) => C.willChange.includes(A)) || ["paint", "layout", "strict", "content"].some((A) => {
8777
- const M = C.contain;
8778
- return M != null && M.includes(A);
8779
- });
8780
- }
8781
- function q1() {
8782
- return !/^((?!chrome|android).)*safari/i.test(j1());
8783
- }
8784
- function f1(H) {
8785
- return ["html", "body", "#document"].includes(K(H));
8786
- }
8787
- const F1 = Math.min, L1 = Math.max, l1 = Math.round;
8788
- function j(H, V, C) {
8789
- var L, A, M, i;
8790
- V === void 0 && (V = !1), C === void 0 && (C = !1);
8791
- const e = H.getBoundingClientRect();
8792
- let d = 1, l = 1;
8793
- V && Q(H) && (d = H.offsetWidth > 0 && l1(e.width) / H.offsetWidth || 1, l = H.offsetHeight > 0 && l1(e.height) / H.offsetHeight || 1);
8794
- const o = X(H) ? G(H) : window, t = !q1() && C, r = (e.left + (t && (L = (A = o.visualViewport) == null ? void 0 : A.offsetLeft) != null ? L : 0)) / d, n = (e.top + (t && (M = (i = o.visualViewport) == null ? void 0 : i.offsetTop) != null ? M : 0)) / l, u = e.width / d, O = e.height / l;
8795
- return { width: u, height: O, top: n, right: r + u, bottom: n + O, left: r, x: r, y: n };
8796
- }
8797
- function $(H) {
8798
- return (V = H, (V instanceof G(V).Node ? H.ownerDocument : H.document) || window.document).documentElement;
8799
- var V;
8800
- }
8801
- function r1(H) {
8802
- return X(H) ? { scrollLeft: H.scrollLeft, scrollTop: H.scrollTop } : { scrollLeft: H.pageXOffset, scrollTop: H.pageYOffset };
8803
- }
8804
- function Y1(H) {
8805
- return j($(H)).left + r1(H).scrollLeft;
8806
- }
8807
- function I5(H, V, C) {
8808
- const L = Q(V), A = $(V), M = j(H, L && function(d) {
8809
- const l = j(d);
8810
- return l1(l.width) !== d.offsetWidth || l1(l.height) !== d.offsetHeight;
8811
- }(V), C === "fixed");
8812
- let i = { scrollLeft: 0, scrollTop: 0 };
8813
- const e = { x: 0, y: 0 };
8814
- if (L || !L && C !== "fixed")
8815
- if ((K(V) !== "body" || n1(A)) && (i = r1(V)), Q(V)) {
8816
- const d = j(V, !0);
8817
- e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
8818
- } else
8819
- A && (e.x = Y1(A));
8820
- return { x: M.left + i.scrollLeft - e.x, y: M.top + i.scrollTop - e.y, width: M.width, height: M.height };
8821
- }
8822
- function M1(H) {
8823
- if (K(H) === "html")
8824
- return H;
8825
- const V = H.assignedSlot || H.parentNode || (v1(H) ? H.host : null) || $(H);
8826
- return v1(V) ? V.host : V;
8827
- }
8828
- function R1(H) {
8829
- return Q(H) && I(H).position !== "fixed" ? H.offsetParent : null;
8830
- }
8831
- function x1(H) {
8832
- const V = G(H);
8833
- let C = R1(H);
8834
- for (; C && N5(C) && I(C).position === "static"; )
8835
- C = R1(C);
8836
- return C && (K(C) === "html" || K(C) === "body" && I(C).position === "static" && !O1(C)) ? V : C || function(L) {
8837
- let A = M1(L);
8838
- for (; Q(A) && !f1(A); ) {
8839
- if (O1(A))
8840
- return A;
8841
- A = M1(A);
8842
- }
8843
- return null;
8844
- }(H) || V;
8845
- }
8846
- function X1(H) {
8847
- const V = M1(H);
8848
- return f1(V) ? H.ownerDocument.body : Q(V) && n1(V) ? V : X1(V);
8849
- }
8850
- function J1(H, V) {
8851
- var C;
8852
- V === void 0 && (V = []);
8853
- const L = X1(H), A = L === ((C = H.ownerDocument) == null ? void 0 : C.body), M = G(L), i = A ? [M].concat(M.visualViewport || [], n1(L) ? L : []) : L, e = V.concat(i);
8854
- return A ? e : e.concat(J1(i));
8855
- }
8856
- function D1(H, V, C) {
8857
- return V === "viewport" ? d1(function(L, A) {
8858
- const M = G(L), i = $(L), e = M.visualViewport;
8859
- let d = i.clientWidth, l = i.clientHeight, o = 0, t = 0;
8860
- if (e) {
8861
- d = e.width, l = e.height;
8862
- const r = q1();
8863
- (r || !r && A === "fixed") && (o = e.offsetLeft, t = e.offsetTop);
8864
- }
8865
- return { width: d, height: l, x: o, y: t };
8866
- }(H, C)) : X(V) ? function(L, A) {
8867
- const M = j(L, !1, A === "fixed"), i = M.top + L.clientTop, e = M.left + L.clientLeft;
8868
- return { top: i, left: e, x: e, y: i, right: e + L.clientWidth, bottom: i + L.clientHeight, width: L.clientWidth, height: L.clientHeight };
8869
- }(V, C) : d1(function(L) {
8870
- var A;
8871
- const M = $(L), i = r1(L), e = (A = L.ownerDocument) == null ? void 0 : A.body, d = L1(M.scrollWidth, M.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = L1(M.scrollHeight, M.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
8872
- let o = -i.scrollLeft + Y1(L);
8873
- const t = -i.scrollTop;
8874
- return I(e || M).direction === "rtl" && (o += L1(M.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y: t };
8875
- }($(H)));
8876
- }
8877
- const Q5 = { getClippingRect: function(H) {
8878
- let { element: V, boundary: C, rootBoundary: L, strategy: A } = H;
8879
- const M = C === "clippingAncestors" ? function(l) {
8880
- let o = J1(l).filter((u) => X(u) && K(u) !== "body"), t = null;
8881
- const r = I(l).position === "fixed";
8882
- let n = r ? M1(l) : l;
8883
- for (; X(n) && !f1(n); ) {
8884
- const u = I(n), O = O1(n);
8885
- (r ? O || t : O || u.position !== "static" || !t || !["absolute", "fixed"].includes(t.position)) ? t = u : o = o.filter((f) => f !== n), n = M1(n);
8860
+ );
8861
+ function A() {
8862
+ V("click:icon");
8886
8863
  }
8887
- return o;
8888
- }(V) : [].concat(C), i = [...M, L], e = i[0], d = i.reduce((l, o) => {
8889
- const t = D1(V, o, A);
8890
- return l.top = L1(t.top, l.top), l.right = F1(t.right, l.right), l.bottom = F1(t.bottom, l.bottom), l.left = L1(t.left, l.left), l;
8891
- }, D1(V, e, A));
8892
- return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
8893
- }, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
8894
- let { rect: V, offsetParent: C, strategy: L } = H;
8895
- const A = Q(C), M = $(C);
8896
- if (C === M)
8897
- return V;
8898
- let i = { scrollLeft: 0, scrollTop: 0 };
8899
- const e = { x: 0, y: 0 };
8900
- if ((A || !A && L !== "fixed") && ((K(C) !== "body" || n1(M)) && (i = r1(C)), Q(C))) {
8901
- const d = j(C, !0);
8902
- e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
8864
+ return (i, e) => (m(), a("div", {
8865
+ class: g(p(M))
8866
+ }, [
8867
+ b(i.$slots, "default", {}, () => [
8868
+ (m(!0), a(z, null, q(C.tabs, (d, l) => (m(), R(W5, {
8869
+ id: d.id,
8870
+ key: l,
8871
+ modelValue: L.value,
8872
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => L.value = o),
8873
+ active: l === L.value,
8874
+ "append-icon": d.appendIcon,
8875
+ block: H.block,
8876
+ disabled: d.disabled,
8877
+ label: d.label,
8878
+ "prepend-icon": d.prependIcon,
8879
+ tile: H.tile,
8880
+ variant: d.variant,
8881
+ "onClick:icon": A
8882
+ }, null, 8, ["id", "modelValue", "active", "append-icon", "block", "disabled", "label", "prepend-icon", "tile", "variant"]))), 128))
8883
+ ])
8884
+ ], 2));
8903
8885
  }
8904
- return { ...V, x: V.x - i.scrollLeft + e.x, y: V.y - i.scrollTop + e.y };
8905
- }, isElement: X, getDimensions: function(H) {
8906
- if (Q(H))
8907
- return { width: H.offsetWidth, height: H.offsetHeight };
8908
- const V = j(H);
8909
- return { width: V.width, height: V.height };
8910
- }, getOffsetParent: x1, getDocumentElement: $, async getElementRects(H) {
8911
- let { reference: V, floating: C, strategy: L } = H;
8912
- const A = this.getOffsetParent || x1, M = this.getDimensions;
8913
- return { reference: I5(V, await A(C), L), floating: { x: 0, y: 0, ...await M(C) } };
8914
- }, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, G5 = (H, V, C) => y5(H, V, { platform: Q5, ...C });
8915
- var C2 = /* @__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))(C2 || {}), N = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(N || {});
8916
- function S1({ value: H }, { value: V }, { value: C }, L, A, M, i = 300) {
8917
- !H || !V || G5(H, V, {
8918
- placement: L,
8919
- middleware: [
8920
- E5(A),
8921
- W5({ padding: M }),
8922
- T5({ element: C }),
8923
- x5(),
8924
- D5()
8925
- ]
8926
- }).then(({ x: e, y: d, placement: l, middlewareData: o, strategy: t }) => {
8927
- if (V && (Object.assign(V.style, {
8928
- left: `${e}px`,
8929
- top: `${d}px`,
8930
- animation: `tooltip-show ${i}ms ease-in-out forwards`,
8931
- transformOrigin: "center",
8932
- position: t === "fixed" ? "fixed" : "absolute"
8933
- }), C && o.arrow)) {
8934
- const { x: r, y: n } = o.arrow, u = {
8935
- top: "bottom",
8936
- right: "left",
8937
- bottom: "top",
8938
- left: "right"
8939
- /* Right */
8940
- }[l.split("-")[0]];
8941
- Object.assign(C.style, {
8942
- left: e != null ? `${r}px` : "",
8943
- top: d != null ? `${n}px` : "",
8944
- right: "",
8945
- bottom: "",
8946
- [`${u}`]: "-4px"
8947
- });
8886
+ }), N5 = { class: "container" }, I5 = ["id", "disabled", "placeholder", "value"], Q5 = {
8887
+ key: 1,
8888
+ class: "r-textarea__error"
8889
+ }, G5 = {
8890
+ key: 2,
8891
+ class: "r-textarea__hint"
8892
+ }, b3 = /* @__PURE__ */ F({
8893
+ __name: "RTextArea",
8894
+ props: {
8895
+ id: { default: "" },
8896
+ modelValue: { default: "" },
8897
+ label: { default: "" },
8898
+ placeholder: { default: "" },
8899
+ disabled: { default: !1 },
8900
+ hint: { default: "This is a hint" },
8901
+ errorMsg: { default: "" }
8902
+ },
8903
+ emits: ["update:modelValue"],
8904
+ setup(H, { emit: V }) {
8905
+ const C = H, L = J({
8906
+ value: ""
8907
+ });
8908
+ function M(A) {
8909
+ V("update:modelValue", A.target.value);
8948
8910
  }
8949
- });
8950
- }
8951
- const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], U5 = ["innerHTML"], B3 = /* @__PURE__ */ F({
8952
- __name: "RTooltip",
8911
+ return W(
8912
+ () => C.modelValue,
8913
+ (A) => {
8914
+ L.value = A;
8915
+ },
8916
+ {
8917
+ immediate: !0
8918
+ }
8919
+ ), (A, i) => (m(), a("div", N5, [
8920
+ C.label ? (m(), R(H2, {
8921
+ key: 0,
8922
+ id: "textarea",
8923
+ class: "r-textarea__label",
8924
+ for: "textarea",
8925
+ text: C.label
8926
+ }, null, 8, ["text"])) : B("", !0),
8927
+ u("textarea", {
8928
+ id: C.id,
8929
+ class: g(["r-textarea", {
8930
+ "r-textarea--error": C.errorMsg,
8931
+ "r-textarea--disabled": C.disabled
8932
+ }]),
8933
+ disabled: C.disabled,
8934
+ placeholder: C.placeholder,
8935
+ value: L.value,
8936
+ onInput: M
8937
+ }, null, 42, I5),
8938
+ C.errorMsg ? (m(), a("p", Q5, y(C.errorMsg), 1)) : (m(), a("p", G5, y(C.hint), 1))
8939
+ ]));
8940
+ }
8941
+ }), z5 = { class: "r-textfield__wrapper" }, U5 = { class: "input-wrapper" }, $5 = ["id", "disabled", "max", "min", "placeholder", "type", "value"], K5 = {
8942
+ key: 0,
8943
+ class: "r-textfield__error"
8944
+ }, j5 = {
8945
+ key: 1,
8946
+ class: "r-textfield__hint"
8947
+ }, y3 = /* @__PURE__ */ F({
8948
+ __name: "RTextfield",
8953
8949
  props: {
8954
- placement: { default: C2.Top },
8955
- text: { default: "" },
8956
- dark: { type: Boolean, default: !0 },
8957
- light: { type: Boolean, default: !1 },
8958
- triggers: { default: () => [N.Hover] },
8959
- autoHide: { type: Boolean, default: !0 },
8960
- hideDelay: { default: 3e3 },
8961
- showDelay: { default: 300 },
8962
- shown: { type: Boolean, default: !1 },
8950
+ id: { default: "" },
8951
+ type: { default: "text" },
8952
+ modelValue: { default: "" },
8953
+ label: { default: "" },
8954
+ placeholder: { default: "" },
8955
+ errorMsg: { default: "" },
8956
+ hint: { default: "" },
8957
+ prependIcon: { default: "" },
8958
+ appendIcon: { default: "" },
8963
8959
  disabled: { type: Boolean, default: !1 },
8964
- offset: { default: 0 },
8965
- padding: { default: 2 },
8966
- outsideClick: { type: Boolean, default: !1 },
8967
- triggerContent: { default: "" },
8968
- resizable: { type: Boolean, default: !0 },
8969
- triggerClass: { default: "" },
8970
- tooltipClass: { default: "" }
8960
+ loading: { type: Boolean, default: !1 },
8961
+ clearable: { type: Boolean, default: !1 },
8962
+ min: null,
8963
+ max: null
8971
8964
  },
8972
- emits: ["show", "hide"],
8965
+ emits: [
8966
+ "update:modelValue",
8967
+ "focus",
8968
+ "blur",
8969
+ "input",
8970
+ "click:icon",
8971
+ "click:clear"
8972
+ ],
8973
8973
  setup(H, { emit: V }) {
8974
- const C = H, L = D(null), A = D(null), M = D(null);
8975
- function i() {
8976
- const { placement: O, offset: f, padding: w, disabled: T, showDelay: S } = C;
8977
- T || (A.value.style.display = "block", V("show"), S1(L, A, M, O, f, w, S), d(), C.outsideClick && l("add"));
8978
- }
8979
- function e() {
8980
- C.disabled || !A.value || (A.value.style.display = "", V("hide"), C.outsideClick && l("remove"));
8981
- }
8982
- function d() {
8983
- C.autoHide && setTimeout(() => {
8984
- e();
8985
- }, C.hideDelay);
8974
+ const C = H, L = D(), M = J({
8975
+ value: ""
8976
+ }), A = D(C.type), i = {
8977
+ password: "mdiLock",
8978
+ email: "mdiEmailOutline",
8979
+ tel: "mdiPhone",
8980
+ url: "mdiLink",
8981
+ number: "mdiNumeric",
8982
+ text: ""
8983
+ }, e = D(!1), d = k(() => !!M.value), l = k(() => M.value.length > 0), o = k(() => {
8984
+ var S;
8985
+ return (S = C.errorMsg) == null ? void 0 : S.length;
8986
+ }), t = k(() => C.clearable && l.value), r = k(() => {
8987
+ const { disabled: S, loading: P, clearable: E, errorMsg: _ } = C;
8988
+ return {
8989
+ "r-textfield": !0,
8990
+ "r-textfield--error": _ == null ? void 0 : _.length,
8991
+ "r-textfield--loading": P,
8992
+ "r-textfield--disabled": S,
8993
+ "r-textfield--clearable": E,
8994
+ "r-textfield--focus": e.value,
8995
+ "r-textfield--filled": d.value
8996
+ };
8997
+ }), n = k(() => ({
8998
+ "r-textfield__prepend-icon": !0,
8999
+ "r-textfield__prepend-icon--loading": C.loading,
9000
+ "r-textfield__prepend-icon--error": o.value && d.value
9001
+ })), Z = k(() => ({
9002
+ "r-textfield__append-icon": !0,
9003
+ "r-textfield__append-icon--clear": t.value,
9004
+ "r-textfield__append-icon--error": o.value
9005
+ })), h = k(() => {
9006
+ const { prependIcon: S, type: P } = C;
9007
+ return S === "none" ? "" : S || i[P];
9008
+ }), f = k(() => {
9009
+ const { appendIcon: S, type: P } = C;
9010
+ return S === "none" ? "" : o.value ? "mdiAlertCircleOutline" : t.value && ["text", "email"].includes(P) ? "mdiClose" : P === "password" && A.value === "password" ? "mdiEyeOutline" : P === "password" && A.value === "text" ? "mdiEyeOffOutline" : S;
9011
+ });
9012
+ function T(S) {
9013
+ e.value = !0, V("focus", S);
8986
9014
  }
8987
- function l(O) {
8988
- O === "add" && document.addEventListener("click", e), O === "remove" && document.removeEventListener("click", e);
9015
+ function v(S) {
9016
+ e.value = !1, V("blur", S);
8989
9017
  }
8990
- function o() {
8991
- C.disabled || C.triggers.includes(N.Click) && (A.value.style.display === "block" ? e() : i());
9018
+ function c(S) {
9019
+ M.value = S.target.value, V("input", S);
8992
9020
  }
8993
- function t() {
8994
- C.disabled || C.triggers.includes(N.Hover) && i();
9021
+ function s() {
9022
+ var S;
9023
+ if (t.value) {
9024
+ M.value = "", (S = L.value) == null || S.focus(), V("click:clear", {
9025
+ value: A.value === "number" ? +M.value : M.value
9026
+ });
9027
+ return;
9028
+ }
9029
+ V("click:icon", {
9030
+ value: A.value === "number" ? +M.value : M.value
9031
+ }), A.value === "password" && w();
8995
9032
  }
8996
- function r() {
8997
- C.disabled || (A.value.style.display === "" && C.triggers.includes(N.Hover) ? i() : A.value.style.display !== "" && C.triggers.includes(N.Hover) && e());
9033
+ function w() {
9034
+ A.value = A.value === "password" ? "text" : "password";
8998
9035
  }
8999
- function n() {
9000
- const { placement: O, offset: f, padding: w, disabled: T, showDelay: S } = C;
9001
- T || C.triggers.includes(N.Hover) && S1(L, A, M, O, f, w, S);
9036
+ function O() {
9037
+ var S;
9038
+ (S = L.value) == null || S.focus();
9002
9039
  }
9003
- const u = k(() => ({
9004
- tooltip: !0,
9005
- "tooltip--dark": C.dark,
9006
- "tooltip--light": C.light
9007
- }));
9008
- return window.onresize = () => {
9009
- const { placement: O, offset: f, padding: w, disabled: T, showDelay: S } = C;
9010
- T || C.resizable && S1(L, A, M, O, f, w, S);
9011
- }, e2(
9012
- () => {
9013
- C.disabled || (C.shown && C.triggers.includes(N.Manual) ? i() : !C.shown && C.triggers.includes(N.Manual) && e());
9040
+ return W(
9041
+ () => C.modelValue,
9042
+ (S) => {
9043
+ M.value = S;
9014
9044
  },
9015
- { flush: "post" }
9016
- // this is important to avoid infinite loop & for fire on mounted
9017
- ), E1(() => {
9018
- e();
9019
- }), (O, f) => (m(), a(U, null, [
9020
- Z("div", {
9021
- ref_key: "trigger",
9022
- ref: L,
9023
- "aria-disabled": C.disabled,
9024
- class: g(["trigger", [H.triggerClass]]),
9025
- onClick: z(o, ["stop"]),
9026
- onMouseenter: z(t, ["stop"]),
9027
- onMouseleave: z(r, ["stop"]),
9028
- onMousemove: z(n, ["stop"])
9029
- }, [
9030
- b(O.$slots, "default", {
9031
- activators: {
9032
- click: o,
9033
- mouseenter: t,
9034
- mouseleave: r,
9035
- mousemove: n
9036
- }
9037
- }, () => [
9038
- Z("div", {
9039
- innerHTML: C.triggerContent
9040
- }, null, 8, U5)
9041
- ])
9042
- ], 42, z5),
9043
- (m(), R(d2, { to: "body" }, [
9044
- Z("div", {
9045
- id: "tooltip",
9046
- ref_key: "tooltip",
9047
- ref: A,
9048
- class: g([h(u), H.tooltipClass]),
9049
- role: "tooltip"
9050
- }, [
9051
- b(O.$slots, "content", {}, () => [
9052
- C.text ? (m(), a("div", {
9045
+ {
9046
+ immediate: !0
9047
+ }
9048
+ ), W(
9049
+ () => M.value,
9050
+ (S) => {
9051
+ V(
9052
+ "update:modelValue",
9053
+ A.value === "number" ? +S : S
9054
+ );
9055
+ }
9056
+ ), (S, P) => (m(), a("fieldset", null, [
9057
+ u("div", z5, [
9058
+ C.label ? (m(), R(H2, {
9059
+ key: 0,
9060
+ id: C.id,
9061
+ class: "r-textfield__label",
9062
+ for: C.id,
9063
+ text: C.label,
9064
+ onClick: O
9065
+ }, null, 8, ["id", "for", "text"])) : B("", !0),
9066
+ u("div", U5, [
9067
+ u("div", {
9068
+ class: g(p(r))
9069
+ }, [
9070
+ b(S.$slots, "prepend"),
9071
+ p(h) && !S.$slots.prepend ? (m(), R(x, {
9053
9072
  key: 0,
9054
- class: g(["tooltip__content", {
9055
- "tooltip__content--dark": C.dark,
9056
- "tooltip__content--light": C.light
9057
- }])
9058
- }, y(C.text), 3)) : B("", !0),
9059
- C.text ? (m(), a("div", {
9073
+ class: g(p(n)),
9074
+ name: p(h),
9075
+ size: 20
9076
+ }, null, 8, ["class", "name"])) : B("", !0),
9077
+ u("input", {
9078
+ id: C.id,
9079
+ ref_key: "inputRef",
9080
+ ref: L,
9081
+ disabled: C.disabled,
9082
+ max: C.max,
9083
+ min: C.min,
9084
+ placeholder: C.placeholder,
9085
+ type: A.value,
9086
+ value: M.value,
9087
+ onBlur: v,
9088
+ onFocus: T,
9089
+ onInput: c
9090
+ }, null, 40, $5),
9091
+ b(S.$slots, "append"),
9092
+ p(f) && !S.$slots.append ? (m(), R(x, {
9060
9093
  key: 1,
9061
- id: "arrow",
9062
- ref_key: "arrowElement",
9063
- ref: M,
9064
- class: g(["tooltip__arrow", {
9065
- "tooltip__arrow--dark": C.dark,
9066
- "tooltip__arrow--light": C.light
9067
- }])
9068
- }, null, 2)) : B("", !0)
9069
- ])
9070
- ], 2)
9071
- ]))
9072
- ], 64));
9094
+ class: g(p(Z)),
9095
+ name: `${p(f)}`,
9096
+ size: 20,
9097
+ onClick: s
9098
+ }, null, 8, ["class", "name"])) : B("", !0)
9099
+ ], 2),
9100
+ C.errorMsg ? (m(), a("div", K5, y(C.errorMsg), 1)) : B("", !0),
9101
+ !C.errorMsg && C.hint ? (m(), a("div", j5, y(C.hint), 1)) : B("", !0)
9102
+ ])
9103
+ ])
9104
+ ]));
9073
9105
  }
9074
- }), $5 = { class: "r-breadcrumb" }, K5 = {
9106
+ }), q5 = { class: "r-breadcrumb" }, Y5 = {
9075
9107
  key: 0,
9076
9108
  class: "r-breadcrumb__title"
9077
- }, b3 = /* @__PURE__ */ F({
9109
+ }, w3 = /* @__PURE__ */ F({
9078
9110
  __name: "RBreadcrumb",
9079
9111
  props: {
9080
9112
  items: { default: () => [] },
@@ -9083,24 +9115,24 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9083
9115
  setup(H) {
9084
9116
  const V = H;
9085
9117
  return (C, L) => {
9086
- const A = t2("router-link");
9087
- return m(), a("div", $5, [
9088
- (m(!0), a(U, null, Y(V.items, (M, i) => (m(), a("div", {
9118
+ const M = m2("router-link");
9119
+ return m(), a("div", q5, [
9120
+ (m(!0), a(z, null, q(V.items, (A, i) => (m(), a("div", {
9089
9121
  key: i,
9090
9122
  class: "r-breadcrumb__item"
9091
9123
  }, [
9092
- q(A, {
9124
+ $(M, {
9093
9125
  class: "r-breadcrumb__link",
9094
- to: M.to
9126
+ to: A.to
9095
9127
  }, {
9096
- default: N1(() => [
9128
+ default: d1(() => [
9097
9129
  b(C.$slots, "item-icon", {}, () => [
9098
- M.icon ? (m(), R(x, {
9130
+ A.icon ? (m(), R(x, {
9099
9131
  key: 0,
9100
- name: M.icon
9132
+ name: A.icon
9101
9133
  }, null, 8, ["name"])) : B("", !0)
9102
9134
  ]),
9103
- M.onlyIcon ? B("", !0) : (m(), a("span", K5, y(M.title), 1))
9135
+ A.onlyIcon ? B("", !0) : (m(), a("span", Y5, y(A.title), 1))
9104
9136
  ]),
9105
9137
  _: 2
9106
9138
  }, 1032, ["to"]),
@@ -9115,21 +9147,21 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9115
9147
  ]);
9116
9148
  };
9117
9149
  }
9118
- }), j5 = { class: "r-pagination" }, q5 = { class: "r-pagination__page-info" }, Y5 = { key: 0 }, X5 = { class: "r-pagination__page-info__current-page" }, J5 = { class: "r-pagination__page-info__total-pages" }, C3 = { class: "r-pagination__paginator" }, H3 = ["disabled"], V3 = /* @__PURE__ */ Z("path", {
9150
+ }), X5 = { class: "r-pagination" }, J5 = { class: "r-pagination__page-info" }, C3 = { key: 0 }, H3 = { class: "r-pagination__page-info__current-page" }, V3 = { class: "r-pagination__page-info__total-pages" }, L3 = { class: "r-pagination__paginator" }, M3 = ["disabled"], A3 = /* @__PURE__ */ u("path", {
9119
9151
  d: "M0 0h24v24H0z",
9120
9152
  fill: "none",
9121
9153
  stroke: "none"
9122
- }, null, -1), L3 = /* @__PURE__ */ Z("path", { d: "M15 6l-6 6l6 6" }, null, -1), M3 = [
9123
- V3,
9124
- L3
9125
- ], A3 = ["max", "value"], i3 = ["disabled"], e3 = /* @__PURE__ */ Z("path", {
9154
+ }, null, -1), i3 = /* @__PURE__ */ u("path", { d: "M15 6l-6 6l6 6" }, null, -1), e3 = [
9155
+ A3,
9156
+ i3
9157
+ ], d3 = ["max", "value"], t3 = ["disabled"], m3 = /* @__PURE__ */ u("path", {
9126
9158
  d: "M0 0h24v24H0z",
9127
9159
  fill: "none",
9128
9160
  stroke: "none"
9129
- }, null, -1), d3 = /* @__PURE__ */ Z("path", { d: "M9 6l6 6l-6 6" }, null, -1), t3 = [
9130
- e3,
9131
- d3
9132
- ], m3 = { class: "r-pagination__paginator__total" }, y3 = /* @__PURE__ */ F({
9161
+ }, null, -1), l3 = /* @__PURE__ */ u("path", { d: "M9 6l6 6l-6 6" }, null, -1), o3 = [
9162
+ m3,
9163
+ l3
9164
+ ], n3 = { class: "r-pagination__paginator__total" }, P3 = /* @__PURE__ */ F({
9133
9165
  __name: "RPagination",
9134
9166
  props: {
9135
9167
  page: { default: 1 },
@@ -9141,23 +9173,23 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9141
9173
  },
9142
9174
  emits: ["update:page"],
9143
9175
  setup(H, { emit: V }) {
9144
- const C = H, L = k(() => Math.ceil(C.totalItems / C.perPage)), A = (M) => {
9145
- M < 1 || M > L.value || V("update:page", M);
9176
+ const C = H, L = k(() => Math.ceil(C.totalItems / C.perPage)), M = (A) => {
9177
+ A < 1 || A > L.value || V("update:page", A);
9146
9178
  };
9147
- return (M, i) => (m(), a("div", j5, [
9148
- Z("div", q5, [
9149
- H.slash ? B("", !0) : (m(), a("span", Y5, y(C.pageText), 1)),
9150
- Z("span", X5, y(C.page), 1),
9151
- Z("span", null, y(H.slash ? "/" : C.ofText), 1),
9152
- Z("span", J5, y(h(L)), 1)
9179
+ return (A, i) => (m(), a("div", X5, [
9180
+ u("div", J5, [
9181
+ H.slash ? B("", !0) : (m(), a("span", C3, y(C.pageText), 1)),
9182
+ u("span", H3, y(C.page), 1),
9183
+ u("span", null, y(H.slash ? "/" : C.ofText), 1),
9184
+ u("span", V3, y(p(L)), 1)
9153
9185
  ]),
9154
- Z("div", C3, [
9155
- Z("button", {
9186
+ u("div", L3, [
9187
+ u("button", {
9156
9188
  class: "r-pagination__paginator__prev",
9157
9189
  disabled: C.page === 1,
9158
- onClick: i[0] || (i[0] = (e) => A(+C.page - 1))
9190
+ onClick: i[0] || (i[0] = (e) => M(+C.page - 1))
9159
9191
  }, [
9160
- b(M.$slots, "prev", {}, () => [
9192
+ b(A.$slots, "prev", {}, () => [
9161
9193
  (m(), a("svg", {
9162
9194
  class: g({ "stroke-gray-400": C.page === 1 }),
9163
9195
  fill: "none",
@@ -9169,28 +9201,28 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9169
9201
  viewBox: "0 0 24 24",
9170
9202
  width: "16",
9171
9203
  xmlns: "http://www.w3.org/2000/svg"
9172
- }, M3, 2))
9204
+ }, e3, 2))
9173
9205
  ])
9174
- ], 8, H3),
9175
- Z("input", {
9206
+ ], 8, M3),
9207
+ u("input", {
9176
9208
  class: "r-pagination__paginator__input",
9177
- max: h(L),
9209
+ max: p(L),
9178
9210
  min: "1",
9179
9211
  type: "number",
9180
9212
  value: C.page,
9181
9213
  onBlur: i[1] || (i[1] = (e) => {
9182
9214
  var d;
9183
- return A(+((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
9215
+ return M(+((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
9184
9216
  })
9185
- }, null, 40, A3),
9186
- Z("button", {
9217
+ }, null, 40, d3),
9218
+ u("button", {
9187
9219
  class: "r-pagination__paginator__next",
9188
- disabled: C.page === h(L),
9189
- onClick: i[2] || (i[2] = (e) => A(+C.page + 1))
9220
+ disabled: C.page === p(L),
9221
+ onClick: i[2] || (i[2] = (e) => M(+C.page + 1))
9190
9222
  }, [
9191
- b(M.$slots, "next", {}, () => [
9223
+ b(A.$slots, "next", {}, () => [
9192
9224
  (m(), a("svg", {
9193
- class: g({ "stroke-gray-400": C.page === h(L) }),
9225
+ class: g({ "stroke-gray-400": C.page === p(L) }),
9194
9226
  fill: "none",
9195
9227
  height: "16",
9196
9228
  stroke: "#323232",
@@ -9200,14 +9232,14 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9200
9232
  viewBox: "0 0 24 24",
9201
9233
  width: "16",
9202
9234
  xmlns: "http://www.w3.org/2000/svg"
9203
- }, t3, 2))
9235
+ }, o3, 2))
9204
9236
  ])
9205
- ], 8, i3),
9206
- Z("div", m3, "/ " + y(h(L)), 1)
9237
+ ], 8, t3),
9238
+ u("div", n3, "/ " + y(p(L)), 1)
9207
9239
  ])
9208
9240
  ]));
9209
9241
  }
9210
- }), l3 = ["value"], w3 = /* @__PURE__ */ F({
9242
+ }), r3 = ["value"], T3 = /* @__PURE__ */ F({
9211
9243
  __name: "RProgressbar",
9212
9244
  props: {
9213
9245
  value: { default: 0 },
@@ -9220,11 +9252,11 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9220
9252
  class: "r-progressbar",
9221
9253
  max: 100,
9222
9254
  role: "progressbar",
9223
- style: p1({ height: V.height + "px" }),
9255
+ style: h1({ height: V.height + "px" }),
9224
9256
  value: V.value
9225
- }, null, 12, l3));
9257
+ }, null, 12, r3));
9226
9258
  }
9227
- }), P3 = /* @__PURE__ */ F({
9259
+ }), v3 = /* @__PURE__ */ F({
9228
9260
  __name: "RItemGroup",
9229
9261
  props: {
9230
9262
  modelValue: { default: () => [] },
@@ -9237,25 +9269,27 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9237
9269
  },
9238
9270
  emits: ["update:modelValue"],
9239
9271
  setup(H, { emit: V }) {
9240
- const C = H, L = "rocket-ui:r-item-group", A = D(C.as ?? "div"), M = D(C.modelValue ?? []), i = k(() => C.selectedClass);
9241
- a1(`${L}:selectedClass`, i.value);
9242
- const e = (l) => M.value.includes(l);
9243
- a1(`${L}:isSelected`, e);
9244
- const d = (l, o) => {
9245
- C.disabled || C.mandatory && M.value.length === 1 && o || C.max && M.value.length === C.max && o || (C.multiple ? o ? M.value.push(l) : M.value = M.value.filter((t) => t !== l) : M.value = o ? [l] : [], V("update:modelValue", M.value));
9246
- };
9247
- return a1(`${L}:select`, d), (l, o) => (m(), R(m2(A.value), null, {
9248
- default: N1(() => [
9272
+ const C = H, L = "rocket-ui:r-item-group", M = D(C.as ?? "div"), A = D(C.modelValue ?? []), i = k(() => C.selectedClass);
9273
+ Z1(`${L}:selectedClass`, i.value);
9274
+ function e(l) {
9275
+ return A.value.includes(l);
9276
+ }
9277
+ Z1(`${L}:isSelected`, e);
9278
+ function d(l, o) {
9279
+ C.disabled || C.mandatory && A.value.length === 1 && o || C.max && A.value.length === C.max && o || (C.multiple ? o ? A.value.push(l) : A.value = A.value.filter((t) => t !== l) : A.value = o ? [l] : [], V("update:modelValue", A.value));
9280
+ }
9281
+ return Z1(`${L}:select`, d), (l, o) => (m(), R(l2(M.value), null, {
9282
+ default: d1(() => [
9249
9283
  b(l.$slots, "default", {
9250
9284
  isSelected: e,
9251
9285
  select: d,
9252
- selected: M.value
9286
+ selected: A.value
9253
9287
  })
9254
9288
  ]),
9255
9289
  _: 3
9256
9290
  }));
9257
9291
  }
9258
- }), T3 = /* @__PURE__ */ F({
9292
+ }), F3 = /* @__PURE__ */ F({
9259
9293
  __name: "RItem",
9260
9294
  props: {
9261
9295
  value: { default: null },
@@ -9263,44 +9297,46 @@ const z5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
9263
9297
  selectedClass: { default: "" }
9264
9298
  },
9265
9299
  setup(H) {
9266
- const V = H, C = "rocket-ui:r-item-group", L = Z1(`${C}:isSelected`), A = Z1(`${C}:selectedClass`, ""), M = k(() => L(V.value) && [A, V.selectedClass]), i = Z1(`${C}:select`), e = () => {
9300
+ const V = H, C = "rocket-ui:r-item-group", L = u1(`${C}:isSelected`), M = u1(`${C}:selectedClass`, ""), A = k(() => L(V.value) && [M, V.selectedClass]), i = u1(`${C}:select`);
9301
+ function e() {
9267
9302
  V.disabled || i(V.value, !L(V.value));
9268
- }, d = () => {
9303
+ }
9304
+ function d() {
9269
9305
  V.disabled || i(V.value, !0);
9270
- };
9306
+ }
9271
9307
  return (l, o) => b(l.$slots, "default", {
9272
9308
  disabled: V.disabled,
9273
- isSelected: h(L)(V.value),
9309
+ isSelected: p(L)(V.value),
9274
9310
  select: d,
9275
- selectedClass: h(M),
9311
+ selectedClass: p(A),
9276
9312
  toggle: e,
9277
9313
  value: V.value
9278
9314
  });
9279
9315
  }
9280
9316
  });
9281
9317
  export {
9282
- n3 as RAccordion,
9283
- r3 as RAlert,
9284
- a3 as RAvatar,
9285
- Z3 as RBadge,
9286
- b3 as RBreadcrumb,
9287
- u3 as RButton,
9288
- S3 as RCheckbox,
9289
- D2 as RChip,
9290
- c3 as RDropdown,
9318
+ Z3 as RAccordion,
9319
+ u3 as RAlert,
9320
+ S3 as RAvatar,
9321
+ c3 as RBadge,
9322
+ w3 as RBreadcrumb,
9323
+ s3 as RButton,
9324
+ O3 as RCheckbox,
9325
+ E2 as RChip,
9326
+ p3 as RDropdown,
9291
9327
  x as RIcon,
9292
- T3 as RItem,
9293
- P3 as RItemGroup,
9294
- z1 as RLabel,
9295
- s3 as RModal,
9296
- y3 as RPagination,
9297
- w3 as RProgressbar,
9298
- O3 as RSidebar,
9299
- p3 as RSnackbar,
9300
- h3 as RSwitch,
9301
- c5 as RTabItem,
9302
- f3 as RTabs,
9303
- g3 as RTextArea,
9304
- k3 as RTextfield,
9305
- B3 as RTooltip
9328
+ F3 as RItem,
9329
+ v3 as RItemGroup,
9330
+ H2 as RLabel,
9331
+ h3 as RModal,
9332
+ P3 as RPagination,
9333
+ T3 as RProgressbar,
9334
+ f3 as RSidebar,
9335
+ g3 as RSnackbar,
9336
+ k3 as RSwitch,
9337
+ W5 as RTabItem,
9338
+ B3 as RTabs,
9339
+ b3 as RTextArea,
9340
+ y3 as RTextfield,
9341
+ t5 as RTooltip
9306
9342
  };