@rocketui/vue 0.0.71 → 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,4 +1,4 @@
1
- import { defineComponent as F, openBlock as m, createElementBlock as a, createElementVNode as Z, unref as p, reactive as J, Fragment as U, renderList as Y, normalizeClass as f, renderSlot as B, toDisplayString as y, createVNode as q, computed as g, createCommentVNode as k, mergeProps as H2, createBlock as R, watch as W, getCurrentScope as V2, onScopeDispose as L2, ref as D, onMounted as M2, withDirectives as E1, withKeys as k1, vModelText as A2, createTextVNode as _1, withModifiers as z, normalizeStyle as p1, vShow as i2, useCssVars as e2, watchEffect as d2, Teleport as t2, resolveComponent as m2, withCtx as W1, provide as a1, resolveDynamicComponent as l2, inject as Z1 } from "vue";
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
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",
@@ -7311,7 +7311,7 @@ const o2 = {
7311
7311
  viewBox: V.viewBox,
7312
7312
  width: V.size
7313
7313
  }, [
7314
- Z("path", {
7314
+ u("path", {
7315
7315
  d: p(o2)[V.name]
7316
7316
  }, null, 8, r2)
7317
7317
  ], 8, n2));
@@ -7336,28 +7336,28 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7336
7336
  C[i].open = i === M ? !C[i].open : !1;
7337
7337
  });
7338
7338
  }
7339
- return (M, A) => (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
- class: f({
7341
+ class: g({
7342
7342
  "r-accordion": !0,
7343
7343
  "r-accordion--disabled": i.disabled
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(M.$slots, "title", {}, () => [
7352
- Z("div", u2, y(i.title), 1)
7351
+ b(M.$slots, "title", {}, () => [
7352
+ u("div", u2, y(i.title), 1)
7353
7353
  ]),
7354
- Z("div", S2, [
7355
- q(x, { name: "mdiChevronUp" })
7354
+ u("div", S2, [
7355
+ $(x, { name: "mdiChevronUp" })
7356
7356
  ])
7357
7357
  ], 8, Z2),
7358
- Z("div", c2, [
7359
- B(M.$slots, "content", {}, () => [
7360
- Z("span", null, y(i.content), 1)
7358
+ u("div", c2, [
7359
+ b(M.$slots, "content", {}, () => [
7360
+ u("span", null, y(i.content), 1)
7361
7361
  ])
7362
7362
  ])
7363
7363
  ], 10, a2))), 128));
@@ -7380,12 +7380,12 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7380
7380
  },
7381
7381
  emits: ["close"],
7382
7382
  setup(H, { emit: V }) {
7383
- const C = H, L = g(() => ({
7383
+ const C = H, L = k(() => ({
7384
7384
  " r-alert": !0,
7385
7385
  [`r-alert--${C.variant}`]: !0,
7386
7386
  "r-alert--block": C.block,
7387
7387
  [`r-alert--${C.variant}--${C.type}`]: !0
7388
- })), M = g(() => ({
7388
+ })), M = k(() => ({
7389
7389
  success: "mdiCheckCircle",
7390
7390
  error: "mdiAlertCircle",
7391
7391
  warning: "mdiAlert",
@@ -7394,63 +7394,63 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7394
7394
  V("close");
7395
7395
  };
7396
7396
  return (i, e) => (m(), a("div", {
7397
- class: f(p(L))
7397
+ class: g(p(L))
7398
7398
  }, [
7399
- Z("div", s2, [
7400
- B(i.$slots, "alert-icon", {}, () => [
7401
- q(x, {
7399
+ u("div", s2, [
7400
+ b(i.$slots, "alert-icon", {}, () => [
7401
+ $(x, {
7402
7402
  name: p(M),
7403
7403
  size: 24
7404
7404
  }, null, 8, ["name"])
7405
7405
  ])
7406
7406
  ]),
7407
- Z("div", O2, [
7408
- B(i.$slots, "content", {}, () => [
7409
- Z("p", p2, y(C.title), 1),
7410
- C.description ? (m(), a("p", h2, y(C.description), 1)) : k("", !0)
7407
+ u("div", O2, [
7408
+ b(i.$slots, "content", {}, () => [
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
7413
  C.closable ? (m(), a("div", f2, [
7414
- B(i.$slots, "custom-close", {}, () => [
7415
- q(x, {
7414
+ b(i.$slots, "custom-close", {}, () => [
7415
+ $(x, {
7416
7416
  class: "r-alert__close__button",
7417
7417
  name: "mdiClose",
7418
7418
  size: 16,
7419
7419
  onClick: A
7420
7420
  })
7421
7421
  ])
7422
- ])) : k("", !0)
7422
+ ])) : B("", !0)
7423
7423
  ], 2));
7424
7424
  }
7425
- }), B1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", g2 = { class: "r-avatar__wrapper" }, k2 = ["alt", "src"], S3 = /* @__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 },
7433
7433
  text: { default: "" }
7434
7434
  },
7435
7435
  setup(H) {
7436
- const V = H, C = g(() => ({
7436
+ const V = H, C = k(() => ({
7437
7437
  "r-avatar": !0,
7438
7438
  [`r-avatar--${V.size}`]: !0
7439
- })), L = g(() => V.type === "image" && !V.src), M = g(() => L.value ? B1 : V.src), A = (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
7443
  return (i, e) => (m(), a("div", g2, [
7444
- Z("div", {
7445
- class: f(p(C))
7444
+ u("div", {
7445
+ class: g(p(C))
7446
7446
  }, [
7447
7447
  V.type === "text" ? (m(), a("p", {
7448
7448
  key: 0,
7449
- class: f({ "r-avatar__text": !0, [`r-avatar__text--${V.size}`]: !0 })
7449
+ class: g({ "r-avatar__text": !0, [`r-avatar__text--${V.size}`]: !0 })
7450
7450
  }, y(A(V.text)), 3)) : (m(), a("img", {
7451
7451
  key: 1,
7452
7452
  alt: V.alt,
7453
- class: f({
7453
+ class: g({
7454
7454
  "r-avatar__image": !0,
7455
7455
  [`r-avatar__image--${V.size}`]: !0,
7456
7456
  "r-avatar__image--anonymous": p(L)
@@ -7460,11 +7460,11 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7460
7460
  ], 2),
7461
7461
  V.online ? (m(), a("span", {
7462
7462
  key: 0,
7463
- class: f({
7463
+ class: g({
7464
7464
  "r-avatar__online": !0,
7465
7465
  [`r-avatar__online--${V.size}`]: !0
7466
7466
  })
7467
- }, null, 2)) : k("", !0)
7467
+ }, null, 2)) : B("", !0)
7468
7468
  ]));
7469
7469
  }
7470
7470
  }), B2 = { class: "r-badge-wrapper group" }, c3 = /* @__PURE__ */ F({
@@ -7479,7 +7479,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7479
7479
  },
7480
7480
  emits: ["click"],
7481
7481
  setup(H) {
7482
- const V = H, C = g(() => ({
7482
+ const V = H, C = k(() => ({
7483
7483
  "r-badge": !0,
7484
7484
  "r-badge__content": V.content,
7485
7485
  [`r-badge--overlap-${V.placement}`]: V.overlap,
@@ -7490,11 +7490,11 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7490
7490
  [`r-badge--${V.variant}`]: V.variant
7491
7491
  }));
7492
7492
  return (L, M) => (m(), a("div", B2, [
7493
- Z("span", {
7494
- class: f(p(C)),
7493
+ u("span", {
7494
+ class: g(p(C)),
7495
7495
  onClick: M[0] || (M[0] = (A) => L.$emit("click"))
7496
7496
  }, y(V.content), 3),
7497
- B(L.$slots, "default")
7497
+ b(L.$slots, "default")
7498
7498
  ]));
7499
7499
  }
7500
7500
  }), b2 = ["disabled"], s3 = /* @__PURE__ */ F({
@@ -7514,18 +7514,18 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7514
7514
  },
7515
7515
  emits: ["click"],
7516
7516
  setup(H) {
7517
- const V = H, C = g(() => ({
7517
+ const V = H, C = k(() => ({
7518
7518
  "r-button": !0,
7519
7519
  [`r-button--${V.variant}`]: !0,
7520
7520
  "r-button--loading": V.loading,
7521
7521
  [`r-button--${V.size || "medium"}`]: !0,
7522
7522
  "r-button--only-icon": V.onlyIcon,
7523
7523
  "r-button--block": V.block
7524
- })), L = g(() => ({
7524
+ })), L = k(() => ({
7525
7525
  small: 20,
7526
7526
  medium: 24,
7527
7527
  large: 32
7528
- })[V.size || "medium"]), M = g(() => {
7528
+ })[V.size || "medium"]), M = k(() => {
7529
7529
  const { backgroundColor: A, height: i, color: e } = V;
7530
7530
  return {
7531
7531
  backgroundColor: A,
@@ -7533,28 +7533,28 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7533
7533
  color: e
7534
7534
  };
7535
7535
  });
7536
- return (A, i) => (m(), a("button", H2(A.$attrs, {
7536
+ return (A, i) => (m(), a("button", L2(A.$attrs, {
7537
7537
  class: p(C),
7538
7538
  disabled: H.disabled || H.loading,
7539
7539
  style: p(M),
7540
7540
  onClick: i[0] || (i[0] = (e) => A.$emit("click"))
7541
7541
  }), [
7542
- B(A.$slots, "custom-icon"),
7542
+ b(A.$slots, "custom-icon"),
7543
7543
  !A.$slots["custom-icon"] && V.prependIcon ? (m(), R(x, {
7544
7544
  key: 0,
7545
- class: f(["r-button__prepend-icon", {
7545
+ class: g(["r-button__prepend-icon", {
7546
7546
  "r-button__prepend-icon--only": V.onlyIcon
7547
7547
  }]),
7548
7548
  name: V.prependIcon,
7549
7549
  size: p(L)
7550
- }, null, 8, ["class", "name", "size"])) : k("", !0),
7551
- V.onlyIcon ? k("", !0) : B(A.$slots, "default", { key: 1 }),
7550
+ }, null, 8, ["class", "name", "size"])) : B("", !0),
7551
+ V.onlyIcon ? B("", !0) : b(A.$slots, "default", { key: 1 }),
7552
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
7556
  size: p(L)
7557
- }, null, 8, ["name", "size"])) : k("", !0)
7557
+ }, null, 8, ["name", "size"])) : B("", !0)
7558
7558
  ], 16, b2));
7559
7559
  }
7560
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 = {
@@ -7583,7 +7583,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7583
7583
  checked: "mdiCheck",
7584
7584
  unchecked: "",
7585
7585
  indeterminate: "mdiMinus"
7586
- }, A = g(() => L.indeterminate ? M.indeterminate : L.checked ? M.checked : M.unchecked), i = g(() => ({
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,
@@ -7613,8 +7613,8 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7613
7613
  immediate: !0
7614
7614
  }
7615
7615
  ), (d, l) => (m(), a("div", y2, [
7616
- Z("div", w2, [
7617
- Z("input", {
7616
+ u("div", w2, [
7617
+ u("input", {
7618
7618
  id: C.id,
7619
7619
  checked: L.checked,
7620
7620
  class: "r-checkbox-container__input",
@@ -7623,18 +7623,18 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7623
7623
  type: "checkbox",
7624
7624
  onChange: e
7625
7625
  }, null, 40, P2),
7626
- Z("div", {
7627
- class: f(p(i)),
7626
+ u("div", {
7627
+ class: g(p(i)),
7628
7628
  "data-disabled": C.disabled
7629
7629
  }, [
7630
- q(x, {
7630
+ $(x, {
7631
7631
  name: p(A),
7632
7632
  size: 24
7633
7633
  }, null, 8, ["name"])
7634
7634
  ], 10, T2)
7635
7635
  ]),
7636
- Z("div", v2, [
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
@@ -7656,7 +7656,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7656
7656
  },
7657
7657
  emits: ["click:chip", "click:close"],
7658
7658
  setup(H, { emit: V }) {
7659
- const C = H, L = g(() => ({
7659
+ const C = H, L = k(() => ({
7660
7660
  "r-chip": !0,
7661
7661
  "r-chip--disabled": C.disabled,
7662
7662
  [`r-chip__${C.variant}`]: C.variant,
@@ -7667,24 +7667,24 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7667
7667
  C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
7668
7668
  };
7669
7669
  return (i, e) => (m(), a("div", {
7670
- class: f(p(L))
7670
+ class: g(p(L))
7671
7671
  }, [
7672
- Z("div", {
7672
+ u("div", {
7673
7673
  class: "r-chip__content",
7674
7674
  onClick: e[0] || (e[0] = (d) => M(d))
7675
7675
  }, [
7676
- B(i.$slots, "prepend", {}, () => [
7676
+ b(i.$slots, "prepend", {}, () => [
7677
7677
  C.prependIcon ? (m(), R(x, {
7678
7678
  key: 0,
7679
7679
  "aria-disabled": C.disabled,
7680
7680
  class: "r-chip__content__prepend-icon",
7681
7681
  name: C.prependIcon,
7682
7682
  size: 12
7683
- }, null, 8, ["aria-disabled", "name"])) : k("", !0)
7683
+ }, null, 8, ["aria-disabled", "name"])) : B("", !0)
7684
7684
  ]),
7685
- Z("span", D2, y(C.label), 1)
7685
+ u("span", D2, y(C.label), 1)
7686
7686
  ]),
7687
- B(i.$slots, "append", {}, () => [
7687
+ b(i.$slots, "append", {}, () => [
7688
7688
  C.appendIcon ? (m(), R(x, {
7689
7689
  key: 0,
7690
7690
  "aria-disabled": C.disabled,
@@ -7692,44 +7692,44 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7692
7692
  name: C.appendIcon,
7693
7693
  size: 12,
7694
7694
  onClick: e[1] || (e[1] = (d) => A(d))
7695
- }, null, 8, ["aria-disabled", "name"])) : k("", !0)
7695
+ }, null, 8, ["aria-disabled", "name"])) : B("", !0)
7696
7696
  ])
7697
7697
  ], 2));
7698
7698
  }
7699
7699
  });
7700
7700
  function _2(H) {
7701
- return V2() ? (L2(H), !0) : !1;
7701
+ return M2() ? (A2(H), !0) : !1;
7702
7702
  }
7703
- function N1(H) {
7703
+ function I1(H) {
7704
7704
  return typeof H == "function" ? H() : p(H);
7705
7705
  }
7706
- const I1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", c1 = () => {
7706
+ const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", s1 = () => {
7707
7707
  }, I2 = /* @__PURE__ */ Q2();
7708
7708
  function Q2() {
7709
7709
  var H;
7710
- return I1 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
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
  }
7712
7712
  function H1(H) {
7713
7713
  var V;
7714
- const C = N1(H);
7714
+ const C = I1(H);
7715
7715
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7716
7716
  }
7717
- const Q1 = I1 ? window : void 0;
7718
- function u1(...H) {
7717
+ const G1 = Q1 ? window : void 0;
7718
+ function S1(...H) {
7719
7719
  let V, C, L, M;
7720
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, M] = H, V = Q1) : [V, C, L, M] = H, !V)
7721
- return c1;
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
7723
  const A = [], i = () => {
7724
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), N1(M)],
7726
+ () => [H1(V), I1(M)],
7727
7727
  ([o, t]) => {
7728
7728
  if (i(), !o)
7729
7729
  return;
7730
7730
  const r = N2(t) ? { ...t } : t;
7731
7731
  A.push(
7732
- ...C.flatMap((n) => L.map((S) => e(o, n, S, r)))
7732
+ ...C.flatMap((n) => L.map((Z) => e(o, n, Z, r)))
7733
7733
  );
7734
7734
  },
7735
7735
  { immediate: !0, flush: "post" }
@@ -7738,22 +7738,22 @@ function u1(...H) {
7738
7738
  };
7739
7739
  return _2(l), l;
7740
7740
  }
7741
- let b1 = !1;
7741
+ let y1 = !1;
7742
7742
  function G2(H, V, C = {}) {
7743
- const { window: L = Q1, ignore: M = [], capture: A = !0, detectIframe: i = !1 } = C;
7743
+ const { window: L = G1, ignore: M = [], capture: A = !0, detectIframe: i = !1 } = C;
7744
7744
  if (!L)
7745
7745
  return;
7746
- I2 && !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
7748
  const d = (r) => M.some((n) => {
7749
7749
  if (typeof n == "string")
7750
- return Array.from(L.document.querySelectorAll(n)).some((S) => S === r.target || r.composedPath().includes(S));
7750
+ return Array.from(L.document.querySelectorAll(n)).some((Z) => Z === r.target || r.composedPath().includes(Z));
7751
7751
  {
7752
- const S = H1(n);
7753
- return S && (r.target === S || r.composedPath().includes(S));
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) {
@@ -7763,408 +7763,959 @@ function G2(H, V, C = {}) {
7763
7763
  V(r);
7764
7764
  }
7765
7765
  }, { passive: !0, capture: A }),
7766
- u1(L, "pointerdown", (r) => {
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 S = H1(H);
7774
- ((n = L.document.activeElement) == null ? void 0 : n.tagName) === "IFRAME" && !(S != null && S.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 z2 = {
7781
- key: 1,
7782
- class: "r-dropdown__tags"
7783
- }, U2 = {
7784
- key: 2,
7785
- class: "r-dropdown__multiple"
7786
- }, $2 = ["id", "disabled", "placeholder", "readonly"], K2 = ["aria-disabled", "onClick"], j2 = { style: { display: "flex", "align-items": "center" } }, p3 = /* @__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(""), M = J([]), A = D(!1), i = D(""), e = D(null), d = D(null), l = D(null);
7804
- function o(u) {
7805
- var s, c, v;
7806
- if (!C.disabled) {
7807
- if (u.stopPropagation(), A.value = !A.value, A.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 u, s, c;
7816
- A.value = !1, (u = e.value) == null || u.classList.remove("r-dropdown--active"), (s = e.value) == null || s.blur(), (c = d.value) == null || c.blur();
7817
- }
7818
- function r(u, s) {
7819
- var c;
7820
- if (C.multiple || C.taggable) {
7821
- u.stopPropagation(), M.find((v) => v.value === s.value) ? M.splice(M.indexOf(s), 1) : M.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(u, s);
7825
- }
7826
- function n(u, 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(u), V("update:modelValue", s);
7832
- }
7833
- function S(u, s) {
7834
- if (u instanceof KeyboardEvent && u.key !== "Backspace" || i.value !== "")
7835
- return;
7836
- u.stopPropagation();
7837
- const c = M.findIndex((v) => v.value === s.value);
7838
- M.splice(c, 1);
7926
+ default:
7927
+ return {};
7839
7928
  }
7840
- function b(u) {
7841
- var v;
7842
- if (!C.taggable)
7843
- return;
7844
- u.stopPropagation();
7845
- const s = i.value;
7846
- if (s === "")
7847
- return;
7848
- C.options.find((h) => h.label === s) || (M.push({ value: s, label: s }), i.value = "", (v = d.value) == null || v.focus());
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]);
7849
7953
  }
7850
- function O(u) {
7851
- return C.multiple ? M.find((s) => s.value === u.value) : L.value === u.value;
7954
+ if (i) {
7955
+ const f = r === "y" ? "bottom" : "right";
7956
+ Z = O1(Z + o[r === "y" ? "top" : "left"], Z, Z - o[f]);
7852
7957
  }
7853
- const w = g(() => C.searchable ? C.options.filter((s) => s.label.toLowerCase().includes(i.value.toLowerCase())) : C.options), T = g(() => C.multiple || C.taggable || !C.searchable);
7854
- return M2(() => {
7855
- C.modelValue && (C.multiple ? M.push(C.modelValue) : (L.value = C.modelValue.value, i.value = C.modelValue.label));
7856
- }), W(M, (u) => {
7857
- V("update:modelValue", u);
7858
- }), G2(l, t), (u, 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: f(["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 || u.$slots.prepend ? (m(), a("div", {
7874
- key: 0,
7875
- class: f(["r-dropdown__prepend-icon", {
7876
- "r-dropdown__prepend-icon--active": A.value
7877
- }])
7878
- }, [
7879
- B(u.$slots, "prepend", {}, () => [
7880
- C.prependIcon ? (m(), R(x, {
7881
- key: 0,
7882
- name: C.prependIcon
7883
- }, null, 8, ["name"])) : k("", !0)
7884
- ])
7885
- ], 2)) : k("", !0),
7886
- C.taggable ? (m(), a("div", z2, [
7887
- (m(!0), a(U, null, Y(M, (c, v) => (m(), R(E2, {
7888
- key: v,
7889
- "append-icon": "close",
7890
- class: "r-dropdown__tags__chip",
7891
- label: c.label,
7892
- variant: "primary",
7893
- "onClick:close": (h) => S(h, c)
7894
- }, null, 8, ["label", "onClick:close"]))), 128))
7895
- ])) : k("", !0),
7896
- C.multiple ? (m(), a("div", U2, [
7897
- (m(!0), a(U, null, Y(M, (c, v) => (m(), a("p", { key: v }, y(`${c.label},`), 1))), 128))
7898
- ])) : k("", !0),
7899
- E1(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: f(["r-dropdown__input", {
7905
- "r-dropdown__input--loading": C.loading
7906
- }]),
7907
- disabled: C.disabled,
7908
- placeholder: C.placeholder,
7909
- readonly: p(T),
7910
- type: "text",
7911
- onKeydown: [
7912
- s[1] || (s[1] = k1((c) => S(c, M[M.length - 1]), ["backspace"])),
7913
- s[2] || (s[2] = k1((c) => b(c), ["enter"]))
7914
- ]
7915
- }, null, 42, $2), [
7916
- [A2, i.value]
7917
- ]),
7918
- C.appendIcon || u.$slots.append ? (m(), a("div", {
7919
- key: 3,
7920
- class: f(["r-dropdown__append-icon", {
7921
- "r-dropdown__append-icon--active": A.value
7922
- }])
7923
- }, [
7924
- B(u.$slots, "append", {}, () => [
7925
- C.appendIcon ? (m(), R(x, {
7926
- key: 0,
7927
- name: C.appendIcon
7928
- }, null, 8, ["name"])) : k("", !0)
7929
- ])
7930
- ], 2)) : k("", !0)
7931
- ], 2),
7932
- Z("ul", {
7933
- class: f(["r-dropdown-options", {
7934
- "r-dropdown-options--active": A.value
7935
- }])
7936
- }, [
7937
- (m(!0), a(U, null, Y(p(w), (c) => (m(), a("li", {
7938
- key: c.value,
7939
- "aria-disabled": c.disabled,
7940
- class: f(["r-dropdown-options__option", {
7941
- "r-dropdown-options__option--active": O(c)
7942
- }]),
7943
- onClick: (v) => r(v, c)
7944
- }, [
7945
- Z("div", j2, [
7946
- c.prependIcon ? (m(), R(x, {
7947
- key: 1,
7948
- class: f(["r-dropdown-options__option__prepend-icon", {
7949
- "r-dropdown-options__option__prepend-icon--active": O(c)
7950
- }]),
7951
- name: c.prependIcon
7952
- }, null, 8, ["class", "name"])) : B(u.$slots, "option-prepend", { key: 0 }),
7953
- Z("p", {
7954
- class: f(["r-dropdown-options__option__label", {
7955
- "r-dropdown-options__option__label--active": O(c)
7956
- }])
7957
- }, y(c.label), 3)
7958
- ]),
7959
- O(c) ? (m(), R(x, {
7960
- key: 0,
7961
- class: f(["r-dropdown-options__option__append-icon", {
7962
- "r-dropdown-options__option__append-icon--active": O(c)
7963
- }]),
7964
- name: "mdiCheck"
7965
- }, null, 8, ["class"])) : k("", !0)
7966
- ], 10, K2))), 128))
7967
- ], 2)
7968
- ], 512));
7969
- }
7970
- }), q2 = ["id", "for"], G1 = /* @__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", {
7980
- id: V.id,
7981
- class: "r-label",
7982
- for: V.for
7983
- }, [
7984
- B(C.$slots, "default", {}, () => [
7985
- _1(y(V.text), 1)
7986
- ])
7987
- ], 8, q2));
7988
- }
7989
- }), Y2 = ["onClick"], X2 = ["open"], J2 = { class: "r-dialog__header" }, C5 = {
7990
- key: 0,
7991
- class: "icon"
7992
- }, H5 = {
7993
- key: 1,
7994
- class: "title"
7995
- }, V5 = {
7996
- key: 2,
7997
- class: "description"
7998
- }, L5 = { class: "r-dialog__body" }, M5 = { class: "r-dialog__actions" }, h3 = /* @__PURE__ */ F({
7999
- __name: "RModal",
8000
- props: {
8001
- modelValue: { type: Boolean, default: !1 },
8002
- block: { type: Boolean, default: !1 },
8003
- title: { default: "" },
8004
- description: { default: "" },
8005
- icon: null,
8006
- width: null,
8007
- height: null,
8008
- outsideClick: { type: Boolean },
8009
- class: null,
8010
- overlayClass: null,
8011
- style: null
8012
- },
8013
- emits: ["update:modelValue"],
8014
- setup(H, { emit: V }) {
8015
- const C = H, L = g(() => ({
8016
- "r-dialog": !0,
8017
- "r-dialog--block": C.block,
8018
- [`${C.class}`]: !0
8019
- })), M = g(() => ({
8020
- width: C.width,
8021
- height: C.height
8022
- })), A = (i) => {
8023
- C.outsideClick && i.target === i.currentTarget && V("update:modelValue", !1);
8024
- };
8025
- return (i, e) => E1((m(), a("div", {
8026
- class: f(["r-modal-overlay", H.overlayClass]),
8027
- onClick: z(A, ["stop"])
8028
- }, [
8029
- Z("div", {
8030
- "aria-modal": "true",
8031
- class: f(p(L)),
8032
- open: C.modelValue,
8033
- role: "dialog",
8034
- style: p1(p(M))
8035
- }, [
8036
- Z("div", J2, [
8037
- B(i.$slots, "header"),
8038
- C.icon ? (m(), a("div", C5, [
8039
- q(x, {
8040
- name: C.icon
8041
- }, null, 8, ["name"])
8042
- ])) : k("", !0),
8043
- C.title ? (m(), a("div", H5, y(C.title), 1)) : k("", !0),
8044
- C.description ? (m(), a("div", V5, y(C.description), 1)) : k("", !0)
8045
- ]),
8046
- Z("div", L5, [
8047
- B(i.$slots, "default")
8048
- ]),
8049
- Z("div", M5, [
8050
- B(i.$slots, "actions")
8051
- ])
8052
- ], 14, X2)
8053
- ], 10, Y2)), [
8054
- [i2, H.modelValue]
8055
- ]);
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;
8056
7971
  }
8057
- }), A5 = ["data-open"], i5 = { class: "r-sidebar__nav" }, e5 = { class: "r-sidebar__actions" }, d5 = ["data-open"], t5 = /* @__PURE__ */ _1(" > "), f3 = /* @__PURE__ */ F({
8058
- __name: "RSidebar",
8059
- props: {
8060
- modelValue: { type: Boolean, default: !1 },
8061
- showTrigger: { type: Boolean, default: !0 },
8062
- class: null,
8063
- triggerClass: null
8064
- },
8065
- emits: ["update:modelValue"],
8066
- setup(H) {
8067
- const V = H, C = g(() => ({
8068
- "r-sidebar": !0
8069
- }));
8070
- return (L, M) => (m(), a(U, null, [
8071
- Z("aside", {
8072
- class: f([p(C), V.class]),
8073
- "data-open": V.modelValue
8074
- }, [
8075
- Z("nav", i5, [
8076
- B(L.$slots, "default")
8077
- ]),
8078
- Z("div", e5, [
8079
- B(L.$slots, "actions")
8080
- ])
8081
- ], 10, A5),
8082
- V.showTrigger ? (m(), a("div", {
8083
- key: 0,
8084
- class: f(["r-sidebar__trigger", [V.triggerClass]]),
8085
- "data-open": V.modelValue,
8086
- onClick: M[0] || (M[0] = (A) => L.$emit("update:modelValue", !V.modelValue))
8087
- }, [
8088
- B(L.$slots, "trigger", {}, () => [
8089
- t5
8090
- ])
8091
- ], 10, d5)) : k("", !0)
8092
- ], 64));
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);
8090
+ }
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);
8112
+ }
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;
8093
8129
  }
8094
- }), m5 = { class: "r-snackbar__text" }, l5 = {
8095
- key: 0,
8096
- class: "r-snackbar__close"
8097
- }, g3 = /* @__PURE__ */ F({
8098
- __name: "RSnackbar",
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",
8099
8183
  props: {
8100
- modelValue: { type: Boolean, default: !1 },
8184
+ placement: { default: J1.Top },
8101
8185
  text: { default: "" },
8102
- closable: { type: Boolean, default: !1 },
8103
- left: { type: Boolean, default: !1 },
8104
- timeout: { default: 0 },
8105
- variant: null,
8106
- top: { type: Boolean }
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 }
8107
8202
  },
8108
- emits: ["action", "update:modelValue"],
8203
+ emits: ["show", "hide"],
8109
8204
  setup(H, { emit: V }) {
8110
- const C = H;
8111
- W(
8112
- () => C.modelValue,
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(
8113
8240
  () => {
8114
- C.timeout > 0 && C.modelValue && setTimeout(() => {
8115
- V("update:modelValue", !1);
8116
- }, C.timeout);
8241
+ C.disabled || (C.shown && C.triggers.includes(N.Manual) ? i() : !C.shown && C.triggers.includes(N.Manual) && e());
8117
8242
  },
8118
- {
8119
- immediate: !0
8120
- }
8121
- );
8122
- const L = g(() => ({
8123
- "r-snackbar": !0,
8124
- [`r-snackbar--${C.variant}`]: !0,
8125
- [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
8126
- [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
8127
- [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0
8128
- })), M = g(() => ({
8129
- success: "mdiCheckCircle",
8130
- error: "mdiAlertCircle",
8131
- warning: "mdiAlert",
8132
- info: "mdiInformation"
8133
- })[C.variant || "info"]);
8134
- return (A, i) => (m(), a("div", {
8135
- class: f(p(L))
8136
- }, [
8137
- B(A.$slots, "default", {}, () => [
8138
- C.variant ? (m(), R(x, {
8139
- key: 0,
8140
- class: "r-snackbar__icon",
8141
- name: p(M)
8142
- }, null, 8, ["name"])) : k("", !0)
8143
- ]),
8144
- Z("div", m5, y(C.text), 1),
8145
- B(A.$slots, "action"),
8146
- C.closable ? (m(), a("div", l5, [
8147
- B(A.$slots, "close", {}, () => [
8148
- q(x, {
8149
- name: "mdiClose",
8150
- size: 16,
8151
- onClick: i[0] || (i[0] = z((e) => A.$emit("update:modelValue", !1), ["stop"]))
8152
- })
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)
8153
8277
  ])
8154
- ])) : k("", !0)
8155
- ], 2));
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));
8156
8309
  }
8157
- }), o5 = { class: "r-switch-container" }, n5 = ["id", "checked"], r5 = /* @__PURE__ */ Z("span", { class: "slider round" }, null, -1), a5 = ["id", "for"], Z5 = {
8158
- key: 0,
8159
- class: "r-switch-texts__error"
8160
- }, u5 = {
8310
+ }), m5 = ["onClick"], l5 = {
8161
8311
  key: 1,
8162
- class: "r-switch-texts__hint"
8163
- }, k3 = /* @__PURE__ */ F({
8164
- __name: "RSwitch",
8165
- props: {
8166
- id: { default: "switch" },
8167
- modelValue: { default: !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", {
8531
+ id: V.id,
8532
+ class: "r-label",
8533
+ for: V.for
8534
+ }, [
8535
+ b(C.$slots, "default", {}, () => [
8536
+ N1(y(V.text), 1)
8537
+ ])
8538
+ ], 8, Z5));
8539
+ }
8540
+ }), u5 = ["onClick"], S5 = ["open"], c5 = { class: "r-dialog__header" }, s5 = {
8541
+ key: 0,
8542
+ class: "icon"
8543
+ }, O5 = {
8544
+ key: 1,
8545
+ class: "title"
8546
+ }, p5 = {
8547
+ key: 2,
8548
+ class: "description"
8549
+ }, h5 = { class: "r-dialog__body" }, f5 = { class: "r-dialog__actions" }, h3 = /* @__PURE__ */ F({
8550
+ __name: "RModal",
8551
+ props: {
8552
+ modelValue: { type: Boolean, default: !1 },
8553
+ block: { type: Boolean, default: !1 },
8554
+ title: { default: "" },
8555
+ description: { default: "" },
8556
+ icon: null,
8557
+ width: null,
8558
+ height: null,
8559
+ outsideClick: { type: Boolean },
8560
+ class: null,
8561
+ overlayClass: null,
8562
+ style: null
8563
+ },
8564
+ emits: ["update:modelValue"],
8565
+ setup(H, { emit: V }) {
8566
+ const C = H, L = k(() => ({
8567
+ "r-dialog": !0,
8568
+ "r-dialog--block": C.block,
8569
+ [`${C.class}`]: !0
8570
+ })), M = k(() => ({
8571
+ width: C.width,
8572
+ height: C.height
8573
+ })), A = (i) => {
8574
+ C.outsideClick && i.target === i.currentTarget && V("update:modelValue", !1);
8575
+ };
8576
+ return (i, e) => W1((m(), a("div", {
8577
+ class: g(["r-modal-overlay", H.overlayClass]),
8578
+ onClick: X(A, ["stop"])
8579
+ }, [
8580
+ u("div", {
8581
+ "aria-modal": "true",
8582
+ class: g(p(L)),
8583
+ open: C.modelValue,
8584
+ role: "dialog",
8585
+ style: h1(p(M))
8586
+ }, [
8587
+ u("div", c5, [
8588
+ b(i.$slots, "header"),
8589
+ C.icon ? (m(), a("div", s5, [
8590
+ $(x, {
8591
+ name: C.icon
8592
+ }, null, 8, ["name"])
8593
+ ])) : 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)
8596
+ ]),
8597
+ u("div", h5, [
8598
+ b(i.$slots, "default")
8599
+ ]),
8600
+ u("div", f5, [
8601
+ b(i.$slots, "actions")
8602
+ ])
8603
+ ], 14, S5)
8604
+ ], 10, u5)), [
8605
+ [t2, H.modelValue]
8606
+ ]);
8607
+ }
8608
+ }), g5 = ["data-open"], k5 = { class: "r-sidebar__nav" }, B5 = { class: "r-sidebar__actions" }, b5 = ["data-open"], y5 = /* @__PURE__ */ N1(" > "), f3 = /* @__PURE__ */ F({
8609
+ __name: "RSidebar",
8610
+ props: {
8611
+ modelValue: { type: Boolean, default: !1 },
8612
+ showTrigger: { type: Boolean, default: !0 },
8613
+ class: null,
8614
+ triggerClass: null
8615
+ },
8616
+ emits: ["update:modelValue"],
8617
+ setup(H) {
8618
+ const V = H, C = k(() => ({
8619
+ "r-sidebar": !0
8620
+ }));
8621
+ return (L, M) => (m(), a(z, null, [
8622
+ u("aside", {
8623
+ class: g([p(C), V.class]),
8624
+ "data-open": V.modelValue
8625
+ }, [
8626
+ u("nav", k5, [
8627
+ b(L.$slots, "default")
8628
+ ]),
8629
+ u("div", B5, [
8630
+ b(L.$slots, "actions")
8631
+ ])
8632
+ ], 10, g5),
8633
+ V.showTrigger ? (m(), a("div", {
8634
+ key: 0,
8635
+ class: g(["r-sidebar__trigger", [V.triggerClass]]),
8636
+ "data-open": V.modelValue,
8637
+ onClick: M[0] || (M[0] = (A) => L.$emit("update:modelValue", !V.modelValue))
8638
+ }, [
8639
+ b(L.$slots, "trigger", {}, () => [
8640
+ y5
8641
+ ])
8642
+ ], 10, b5)) : B("", !0)
8643
+ ], 64));
8644
+ }
8645
+ }), w5 = { class: "r-snackbar__text" }, P5 = {
8646
+ key: 0,
8647
+ class: "r-snackbar__close"
8648
+ }, g3 = /* @__PURE__ */ F({
8649
+ __name: "RSnackbar",
8650
+ props: {
8651
+ modelValue: { type: Boolean, default: !1 },
8652
+ text: { default: "" },
8653
+ closable: { type: Boolean, default: !1 },
8654
+ left: { type: Boolean, default: !1 },
8655
+ timeout: { default: 0 },
8656
+ variant: null,
8657
+ top: { type: Boolean }
8658
+ },
8659
+ emits: ["action", "update:modelValue"],
8660
+ setup(H, { emit: V }) {
8661
+ const C = H;
8662
+ W(
8663
+ () => C.modelValue,
8664
+ () => {
8665
+ C.timeout > 0 && C.modelValue && setTimeout(() => {
8666
+ V("update:modelValue", !1);
8667
+ }, C.timeout);
8668
+ },
8669
+ {
8670
+ immediate: !0
8671
+ }
8672
+ );
8673
+ const L = k(() => ({
8674
+ "r-snackbar": !0,
8675
+ [`r-snackbar--${C.variant}`]: !0,
8676
+ [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
8677
+ [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
8678
+ [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0
8679
+ })), M = k(() => ({
8680
+ success: "mdiCheckCircle",
8681
+ error: "mdiAlertCircle",
8682
+ warning: "mdiAlert",
8683
+ info: "mdiInformation"
8684
+ })[C.variant || "info"]);
8685
+ return (A, i) => (m(), a("div", {
8686
+ class: g(p(L))
8687
+ }, [
8688
+ b(A.$slots, "default", {}, () => [
8689
+ C.variant ? (m(), R(x, {
8690
+ key: 0,
8691
+ class: "r-snackbar__icon",
8692
+ name: p(M)
8693
+ }, null, 8, ["name"])) : B("", !0)
8694
+ ]),
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, {
8700
+ name: "mdiClose",
8701
+ size: 16,
8702
+ onClick: i[0] || (i[0] = X((e) => A.$emit("update:modelValue", !1), ["stop"]))
8703
+ })
8704
+ ])
8705
+ ])) : B("", !0)
8706
+ ], 2));
8707
+ }
8708
+ }), T5 = { class: "r-switch-container" }, v5 = ["id", "checked"], F5 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), R5 = ["id", "for"], x5 = {
8709
+ key: 0,
8710
+ class: "r-switch-texts__error"
8711
+ }, D5 = {
8712
+ key: 1,
8713
+ class: "r-switch-texts__hint"
8714
+ }, k3 = /* @__PURE__ */ F({
8715
+ __name: "RSwitch",
8716
+ props: {
8717
+ id: { default: "switch" },
8718
+ modelValue: { default: !1 },
8168
8719
  disabled: { default: !1 },
8169
8720
  label: { default: "" },
8170
8721
  hint: { default: "" },
@@ -8175,7 +8726,7 @@ const z2 = {
8175
8726
  setup(H, { emit: V }) {
8176
8727
  const C = H, L = J({
8177
8728
  checked: !1
8178
- }), M = g(() => ({
8729
+ }), M = k(() => ({
8179
8730
  "r-switch": !0,
8180
8731
  "r-switch--disabled": C.disabled,
8181
8732
  [`r-switch--${C.size}`]: C.size,
@@ -8193,40 +8744,40 @@ const z2 = {
8193
8744
  // TODO: find a better way to do this
8194
8745
  immediate: !0
8195
8746
  }
8196
- ), (i, e) => (m(), a("div", o5, [
8197
- Z("div", {
8198
- class: f(p(M))
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
8756
  onChange: A
8206
- }, null, 40, n5),
8207
- r5
8757
+ }, null, 40, v5),
8758
+ F5
8208
8759
  ], 2),
8209
- Z("div", {
8210
- class: f({
8760
+ u("div", {
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, a5),
8220
- C.errorMsg ? (m(), a("p", Z5, y(C.errorMsg), 1)) : (m(), a("p", u5, 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 S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
8777
+ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8227
8778
  key: 0,
8228
8779
  class: "r-tab-item__label"
8229
- }, s5 = /* @__PURE__ */ F({
8780
+ }, W5 = /* @__PURE__ */ F({
8230
8781
  __name: "RTabItem",
8231
8782
  props: {
8232
8783
  id: null,
@@ -8242,12 +8793,12 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
8242
8793
  },
8243
8794
  emits: ["update:modelValue", "click:icon"],
8244
8795
  setup(H, { emit: V }) {
8245
- const C = H, L = g(() => ({
8796
+ const C = H, L = k(() => ({
8246
8797
  "r-tab-item": !0,
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
- })), M = g(() => ({
8801
+ })), M = k(() => ({
8251
8802
  color: C.color
8252
8803
  }));
8253
8804
  function A(e) {
@@ -8259,830 +8810,303 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
8259
8810
  return (e, d) => (m(), a("button", {
8260
8811
  "aria-disabled": C.disabled,
8261
8812
  "aria-selected": C.modelValue === C.id,
8262
- class: f(p(L)),
8813
+ class: g(p(L)),
8263
8814
  disabled: C.disabled,
8264
- style: p1(p(M)),
8265
- onClick: d[0] || (d[0] = z((l) => A(C.id), ["stop"]))
8815
+ style: h1(p(M)),
8816
+ onClick: d[0] || (d[0] = X((l) => A(C.id), ["stop"]))
8266
8817
  }, [
8267
- B(e.$slots, "prepend", {}, () => [
8818
+ b(e.$slots, "prepend", {}, () => [
8268
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
- }, null, 8, ["name"])) : k("", !0)
8824
+ }, null, 8, ["name"])) : B("", !0)
8274
8825
  ]),
8275
- C.variant !== p(V1).ICON ? (m(), a("span", c5, y(C.label), 1)) : k("", !0),
8276
- B(e.$slots, "append", {}, () => [
8277
- C.variant !== p(V1).TEXT && C.appendIcon ? (m(), R(x, {
8278
- key: 0,
8279
- class: "r-tab-item__append-icon",
8280
- name: C.appendIcon,
8281
- size: 16,
8282
- onClick: z(i, ["stop"])
8283
- }, null, 8, ["name", "onClick"])) : k("", !0)
8284
- ])
8285
- ], 14, S5));
8286
- }
8287
- }), B3 = /* @__PURE__ */ F({
8288
- __name: "RTabs",
8289
- props: {
8290
- tabs: { default: () => [] },
8291
- block: { type: Boolean, default: !1 },
8292
- modelValue: { default: "" },
8293
- tile: { type: Boolean, default: !1 }
8294
- },
8295
- emits: ["update:modelValue", "click:icon"],
8296
- setup(H, { emit: V }) {
8297
- const C = H, L = D(C.modelValue || C.tabs[0].id), M = g(() => ({
8298
- "r-tabs": !0,
8299
- "r-tabs--block": C.block,
8300
- "r-tabs--tile": C.tile
8301
- }));
8302
- W(
8303
- () => L.value,
8304
- () => {
8305
- V("update:modelValue", L.value);
8306
- }
8307
- );
8308
- const A = () => {
8309
- V("click:icon");
8310
- };
8311
- return (i, e) => (m(), a("div", {
8312
- class: f(p(M))
8313
- }, [
8314
- B(i.$slots, "default", {}, () => [
8315
- (m(!0), a(U, null, Y(C.tabs, (d, l) => (m(), R(s5, {
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": A
8329
- }, null, 8, ["id", "modelValue", "active", "appendIcon", "block", "disabled", "label", "prependIcon", "tile", "variant"]))), 128))
8330
- ])
8331
- ], 2));
8332
- }
8333
- }), O5 = { class: "container" }, p5 = ["id", "disabled", "placeholder", "value"], h5 = {
8334
- key: 1,
8335
- class: "r-textarea__error"
8336
- }, f5 = {
8337
- key: 2,
8338
- class: "r-textarea__hint"
8339
- }, b3 = /* @__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 M(A) {
8356
- V("update:modelValue", A.target.value);
8357
- }
8358
- return W(
8359
- () => C.modelValue,
8360
- (A) => {
8361
- L.value = A;
8362
- },
8363
- {
8364
- immediate: !0
8365
- }
8366
- ), (A, i) => (m(), a("div", O5, [
8367
- C.label ? (m(), R(G1, {
8368
- key: 0,
8369
- id: "textarea",
8370
- class: "r-textarea__label",
8371
- for: "textarea",
8372
- text: C.label
8373
- }, null, 8, ["text"])) : k("", !0),
8374
- Z("textarea", {
8375
- id: C.id,
8376
- class: f(["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: M
8384
- }, null, 42, p5),
8385
- C.errorMsg ? (m(), a("p", h5, y(C.errorMsg), 1)) : (m(), a("p", f5, y(C.hint), 1))
8386
- ]));
8387
- }
8388
- }), g5 = { class: "r-textfield__wrapper" }, k5 = { class: "input-wrapper" }, B5 = ["id", "disabled", "max", "min", "placeholder", "type", "value"], b5 = {
8389
- key: 0,
8390
- class: "r-textfield__error"
8391
- }, y5 = {
8392
- key: 1,
8393
- class: "r-textfield__hint"
8394
- }, y3 = /* @__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(), M = J({
8422
- value: ""
8423
- }), A = 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 = g(() => !!M.value), l = g(() => M.value.length > 0), o = g(() => {
8431
- var h;
8432
- return (h = C.errorMsg) == null ? void 0 : h.length;
8433
- }), t = g(() => C.clearable && l.value), r = g(() => {
8434
- const { disabled: h, 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": h,
8440
- "r-textfield--clearable": E,
8441
- "r-textfield--focus": e.value,
8442
- "r-textfield--filled": d.value
8443
- };
8444
- }), n = g(() => ({
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
- })), S = g(() => ({
8449
- "r-textfield__append-icon": !0,
8450
- "r-textfield__append-icon--clear": t.value,
8451
- "r-textfield__append-icon--error": o.value
8452
- })), b = g(() => {
8453
- const { prependIcon: h, type: P } = C;
8454
- return h === "none" ? "" : h || i[P];
8455
- }), O = g(() => {
8456
- const { appendIcon: h, type: P } = C;
8457
- return h === "none" ? "" : o.value ? "mdiAlertCircleOutline" : t.value && ["text", "email"].includes(P) ? "mdiClose" : P === "password" && A.value === "password" ? "mdiEyeOutline" : P === "password" && A.value === "text" ? "mdiEyeOffOutline" : h;
8458
- });
8459
- function w(h) {
8460
- e.value = !0, V("focus", h);
8461
- }
8462
- function T(h) {
8463
- e.value = !1, V("blur", h);
8464
- }
8465
- function u(h) {
8466
- M.value = h.target.value, V("input", h);
8467
- }
8468
- function s() {
8469
- var h;
8470
- if (t.value) {
8471
- M.value = "", (h = L.value) == null || h.focus(), V("click:clear", {
8472
- value: A.value === "number" ? +M.value : M.value
8473
- });
8474
- return;
8475
- }
8476
- V("click:icon", {
8477
- value: A.value === "number" ? +M.value : M.value
8478
- }), A.value === "password" && c();
8479
- }
8480
- function c() {
8481
- A.value = A.value === "password" ? "text" : "password";
8482
- }
8483
- function v() {
8484
- var h;
8485
- (h = L.value) == null || h.focus();
8486
- }
8487
- return W(
8488
- () => C.modelValue,
8489
- (h) => {
8490
- M.value = h;
8491
- },
8492
- {
8493
- immediate: !0
8494
- }
8495
- ), W(
8496
- () => M.value,
8497
- (h) => {
8498
- V(
8499
- "update:modelValue",
8500
- A.value === "number" ? +h : h
8501
- );
8502
- }
8503
- ), (h, P) => (m(), a("fieldset", null, [
8504
- Z("div", g5, [
8505
- C.label ? (m(), R(G1, {
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"])) : k("", !0),
8513
- Z("div", k5, [
8514
- Z("div", {
8515
- class: f(p(r))
8516
- }, [
8517
- B(h.$slots, "prepend"),
8518
- p(b) && !h.$slots.prepend ? (m(), R(x, {
8519
- key: 0,
8520
- class: f(p(n)),
8521
- name: p(b),
8522
- size: 20
8523
- }, null, 8, ["class", "name"])) : k("", !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: A.value,
8533
- value: M.value,
8534
- onBlur: T,
8535
- onFocus: w,
8536
- onInput: u
8537
- }, null, 40, B5),
8538
- B(h.$slots, "append"),
8539
- p(O) && !h.$slots.append ? (m(), R(x, {
8540
- key: 1,
8541
- class: f(p(S)),
8542
- name: `${p(O)}`,
8543
- size: 20,
8544
- onClick: s
8545
- }, null, 8, ["class", "name"])) : k("", !0)
8546
- ], 2),
8547
- C.errorMsg ? (m(), a("div", b5, y(C.errorMsg), 1)) : k("", !0),
8548
- !C.errorMsg && C.hint ? (m(), a("div", y5, y(C.hint), 1)) : k("", !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: M } = H;
8568
- const A = L.x + L.width / 2 - M.width / 2, i = L.y + L.height / 2 - M.height / 2, e = i1(V), d = h1(e), l = L[d] / 2 - M[d] / 2, o = e === "x";
8569
- let t;
8570
- switch (A1(V)) {
8571
- case "top":
8572
- t = { x: A, y: L.y - M.height };
8573
- break;
8574
- case "bottom":
8575
- t = { x: A, 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 - M.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 w5 = async (H, V, C) => {
8596
- 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));
8597
- let l = await i.getElementRects({ reference: H, floating: V, strategy: M }), { x: o, y: t } = y1(l, L, d), r = L, n = {}, S = 0;
8598
- for (let b = 0; b < e.length; b++) {
8599
- const { name: O, fn: w } = e[b], { x: T, y: u, data: s, reset: c } = await w({ x: o, y: t, initialPlacement: L, placement: r, strategy: M, middlewareData: n, rects: l, platform: i, elements: { reference: H, floating: V } });
8600
- o = T ?? o, t = u ?? t, n = { ...n, [O]: { ...n[O], ...s } }, c && S <= 50 && (S++, typeof c == "object" && (c.placement && (r = c.placement), c.rects && (l = c.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: M }) : c.rects), { x: o, y: t } = y1(l, r, d)), b = -1);
8601
- }
8602
- return { x: o, y: t, placement: r, strategy: M, middlewareData: n };
8603
- };
8604
- function z1(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: 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, S = z1(n), b = e[r ? t === "floating" ? "reference" : "floating" : t], O = d1(await A.getClippingRect({ element: (C = await (A.isElement == null ? void 0 : A.isElement(b))) == null || C ? b : b.contextElement || await (A.getDocumentElement == null ? void 0 : A.getDocumentElement(e.floating)), boundary: l, rootBoundary: o, strategy: d })), w = d1(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]);
8616
- return { top: O.top - w.top + S.top, bottom: w.bottom - O.bottom + S.bottom, left: O.left - w.left + S.left, right: w.right - O.right + S.right };
8617
- }
8618
- const P5 = Math.min, T5 = Math.max;
8619
- function s1(H, V, C) {
8620
- return T5(H, P5(V, C));
8621
- }
8622
- const v5 = (H) => ({ name: "arrow", options: H, async fn(V) {
8623
- const { element: C, padding: L = 0 } = H ?? {}, { x: M, y: A, placement: i, rects: e, platform: d } = V;
8624
- if (C == null)
8625
- return {};
8626
- const l = z1(L), o = { x: M, y: A }, t = i1(i), r = o1(i), n = h1(t), S = await d.getDimensions(C), b = t === "y" ? "top" : "left", O = t === "y" ? "bottom" : "right", w = e.reference[n] + e.reference[t] - o[t] - e.floating[n], T = o[t] - e.reference[t], u = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
8627
- let s = u ? t === "y" ? u.clientHeight || 0 : u.clientWidth || 0 : 0;
8628
- s === 0 && (s = e.floating[n]);
8629
- const c = w / 2 - T / 2, v = l[b], h = s - S[n] - l[O], P = s / 2 - S[n] / 2 + c, E = s1(v, P, h), _ = (r === "start" ? l[b] : l[O]) > 0 && P !== E && e.reference[n] <= e.floating[n];
8630
- return { [t]: o[t] - (_ ? P < v ? v - P : h - P : 0), data: { [t]: E, centerOffset: P - E } };
8631
- } }), F5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
8632
- function m1(H) {
8633
- return H.replace(/left|right|bottom|top/g, (V) => F5[V]);
8634
- }
8635
- function R5(H, V, C) {
8636
- C === void 0 && (C = !1);
8637
- const L = o1(H), M = i1(H), A = h1(M);
8638
- let i = M === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
8639
- return V.reference[A] > V.floating[A] && (i = m1(i)), { main: i, cross: m1(i) };
8640
- }
8641
- const x5 = { start: "end", end: "start" };
8642
- function w1(H) {
8643
- return H.replace(/start|end/g, (V) => x5[V]);
8644
- }
8645
- const U1 = ["top", "right", "bottom", "left"];
8646
- U1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
8647
- const D5 = function(H) {
8648
- return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
8649
- var C;
8650
- 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, ...S } = H, b = A1(L), O = t || (b === i || !n ? [m1(i)] : function(P) {
8651
- const E = m1(P);
8652
- return [w1(P), E, w1(E)];
8653
- }(i)), w = [i, ...O], T = await t1(V, S), u = [];
8654
- let s = ((C = M.flip) == null ? void 0 : C.overflows) || [];
8655
- if (l && u.push(T[b]), o) {
8656
- const { main: P, cross: E } = R5(L, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
8657
- u.push(T[P], T[E]);
8658
- }
8659
- if (s = [...s, { placement: L, overflows: u }], !u.every((P) => P <= 0)) {
8660
- var c, v;
8661
- const P = ((c = (v = M.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 h;
8668
- const g1 = (h = s.map((e1) => [e1, e1.overflows.filter((C1) => C1 > 0).reduce((C1, C2) => C1 + C2, 0)]).sort((e1, C1) => e1[1] - C1[1])[0]) == null ? void 0 : h[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 U1.some((V) => H[V] >= 0);
8686
- }
8687
- const E5 = function(H) {
8688
- let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
8689
- return { name: "hide", async fn(L) {
8690
- const { rects: M } = L;
8691
- switch (V) {
8692
- case "referenceHidden": {
8693
- const A = P1(await t1(L, { ...C, elementContext: "reference" }), M.reference);
8694
- return { data: { referenceHiddenOffsets: A, referenceHidden: T1(A) } };
8695
- }
8696
- case "escaped": {
8697
- const A = P1(await t1(L, { ...C, altBoundary: !0 }), M.floating);
8698
- return { data: { escapedOffsets: A, escaped: T1(A) } };
8699
- }
8700
- default:
8701
- return {};
8702
- }
8703
- } };
8704
- }, _5 = function(H) {
8705
- return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
8706
- const { x: C, y: L } = V, M = await async function(A, i) {
8707
- const { placement: e, platform: d, elements: l } = A, o = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), t = A1(e), r = o1(e), n = i1(e) === "x", S = ["left", "top"].includes(t) ? -1 : 1, b = o && n ? -1 : 1, O = typeof i == "function" ? i(A) : i;
8708
- let { mainAxis: w, crossAxis: T, alignmentAxis: u } = typeof O == "number" ? { mainAxis: O, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...O };
8709
- return r && typeof u == "number" && (T = r === "end" ? -1 * u : u), n ? { x: T * b, y: w * S } : { x: w * S, y: T * b };
8710
- }(V, H);
8711
- return { x: C + M.x, y: L + M.y, data: M };
8712
- } };
8713
- };
8714
- function W5(H) {
8715
- return H === "x" ? "y" : "x";
8716
- }
8717
- const N5 = function(H) {
8718
- return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
8719
- const { x: C, y: L, placement: M } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (O) => {
8720
- let { x: w, y: T } = O;
8721
- return { x: w, y: T };
8722
- } }, ...d } = H, l = { x: C, y: L }, o = await t1(V, d), t = i1(A1(M)), r = W5(t);
8723
- let n = l[t], S = l[r];
8724
- if (A) {
8725
- const O = t === "y" ? "bottom" : "right";
8726
- n = s1(n + o[t === "y" ? "top" : "left"], n, n - o[O]);
8727
- }
8728
- if (i) {
8729
- const O = r === "y" ? "bottom" : "right";
8730
- S = s1(S + o[r === "y" ? "top" : "left"], S, S - o[O]);
8731
- }
8732
- const b = e.fn({ ...V, [t]: n, [r]: S });
8733
- return { ...b, data: { x: b.x - C, y: b.y - L } };
8734
- } };
8735
- };
8736
- function $1(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 (!$1(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 $1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
8753
- }
8754
- function K1() {
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: M } = I(H);
8769
- return /auto|scroll|overlay|hidden/.test(V + L + C) && !["inline", "contents"].includes(M);
8770
- }
8771
- function I5(H) {
8772
- return ["table", "td", "th"].includes(K(H));
8773
- }
8774
- function O1(H) {
8775
- const V = /firefox/i.test(K1()), 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((M) => C.willChange.includes(M)) || ["paint", "layout", "strict", "content"].some((M) => {
8777
- const A = C.contain;
8778
- return A != null && A.includes(M);
8779
- });
8780
- }
8781
- function j1() {
8782
- return !/^((?!chrome|android).)*safari/i.test(K1());
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, M, A, 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 = !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, S = e.width / d, b = e.height / l;
8795
- return { width: S, height: b, top: n, right: r + S, bottom: n + b, 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 q1(H) {
8805
- return j($(H)).left + r1(H).scrollLeft;
8806
- }
8807
- function Q5(H, V, C) {
8808
- const L = Q(V), M = $(V), A = 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(M)) && (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
- M && (e.x = q1(M));
8820
- return { x: A.left + i.scrollLeft - e.x, y: A.top + i.scrollTop - e.y, width: A.width, height: A.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 && I5(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 M = M1(L);
8838
- for (; Q(M) && !f1(M); ) {
8839
- if (O1(M))
8840
- return M;
8841
- M = M1(M);
8842
- }
8843
- return null;
8844
- }(H) || V;
8845
- }
8846
- function Y1(H) {
8847
- const V = M1(H);
8848
- return f1(V) ? H.ownerDocument.body : Q(V) && n1(V) ? V : Y1(V);
8849
- }
8850
- function X1(H, V) {
8851
- var C;
8852
- V === void 0 && (V = []);
8853
- const L = Y1(H), M = L === ((C = H.ownerDocument) == null ? void 0 : C.body), A = G(L), i = M ? [A].concat(A.visualViewport || [], n1(L) ? L : []) : L, e = V.concat(i);
8854
- return M ? e : e.concat(X1(i));
8855
- }
8856
- function D1(H, V, C) {
8857
- return V === "viewport" ? d1(function(L, M) {
8858
- const A = G(L), i = $(L), e = A.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 = j1();
8863
- (r || !r && M === "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, M) {
8867
- const A = j(L, !1, M === "fixed"), i = A.top + L.clientTop, e = A.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 M;
8871
- const A = $(L), i = r1(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);
8872
- let o = -i.scrollLeft + q1(L);
8873
- const t = -i.scrollTop;
8874
- return I(e || A).direction === "rtl" && (o += L1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y: t };
8875
- }($(H)));
8876
- }
8877
- const G5 = { getClippingRect: function(H) {
8878
- let { element: V, boundary: C, rootBoundary: L, strategy: M } = H;
8879
- const A = C === "clippingAncestors" ? function(l) {
8880
- let o = X1(l).filter((S) => X(S) && K(S) !== "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 S = I(n), b = O1(n);
8885
- (r ? b || t : b || S.position !== "static" || !t || !["absolute", "fixed"].includes(t.position)) ? t = S : o = o.filter((O) => O !== n), n = M1(n);
8886
- }
8887
- return o;
8888
- }(V) : [].concat(C), i = [...A, L], e = i[0], d = i.reduce((l, o) => {
8889
- const t = D1(V, o, M);
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, M));
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 M = Q(C), A = $(C);
8896
- if (C === A)
8897
- return V;
8898
- let i = { scrollLeft: 0, scrollTop: 0 };
8899
- const e = { x: 0, y: 0 };
8900
- if ((M || !M && L !== "fixed") && ((K(C) !== "body" || n1(A)) && (i = r1(C)), Q(C))) {
8901
- const d = j(C, !0);
8902
- e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
8903
- }
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 M = this.getOffsetParent || x1, A = this.getDimensions;
8913
- return { reference: Q5(V, await M(C), L), floating: { x: 0, y: 0, ...await A(C) } };
8914
- }, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, z5 = (H, V, C) => w5(H, V, { platform: G5, ...C });
8915
- 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 || {});
8916
- function S1({ value: H }, { value: V }, { value: C }, L, M, A) {
8917
- !H || !V || z5(H, V, {
8918
- placement: L,
8919
- middleware: [
8920
- _5(M),
8921
- N5({ padding: A }),
8922
- v5({ element: C }),
8923
- D5(),
8924
- E5()
8925
- ]
8926
- }).then(({ x: i, y: e, placement: d, middlewareData: l }) => {
8927
- if (Object.assign(V.style, {
8928
- left: `${i}px`,
8929
- top: `${e}px`
8930
- }), C && l.arrow) {
8931
- const { x: o, y: t } = l.arrow, r = {
8932
- top: "bottom",
8933
- right: "left",
8934
- bottom: "top",
8935
- left: "right"
8936
- /* Right */
8937
- }[d.split("-")[0]];
8938
- Object.assign(C.style, {
8939
- left: i != null ? `${o}px` : "",
8940
- top: e != null ? `${t}px` : "",
8941
- right: "",
8942
- bottom: "",
8943
- [`${r}`]: "-4px"
8944
- });
8945
- }
8946
- });
8947
- }
8948
- const U5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], $5 = ["innerHTML"], K5 = /* @__PURE__ */ F({
8949
- __name: "RTooltip",
8826
+ C.variant !== p(V1).ICON ? (m(), a("span", _5, y(C.label), 1)) : B("", !0),
8827
+ b(e.$slots, "append", {}, () => [
8828
+ C.variant !== p(V1).TEXT && C.appendIcon ? (m(), R(x, {
8829
+ key: 0,
8830
+ class: "r-tab-item__append-icon",
8831
+ name: C.appendIcon,
8832
+ size: 16,
8833
+ onClick: X(i, ["stop"])
8834
+ }, null, 8, ["name", "onClick"])) : B("", !0)
8835
+ ])
8836
+ ], 14, E5));
8837
+ }
8838
+ }), B3 = /* @__PURE__ */ F({
8839
+ __name: "RTabs",
8950
8840
  props: {
8951
- placement: { default: J1.Top },
8952
- text: { default: "" },
8953
- dark: { type: Boolean, default: !0 },
8954
- light: { type: Boolean, default: !1 },
8955
- triggers: { default: () => [N.Hover] },
8956
- autoHide: { type: Boolean, default: !0 },
8957
- hideDelay: { default: 3e3 },
8958
- showDelay: { default: 0 },
8959
- shown: { type: Boolean, default: !1 },
8960
- disabled: { type: Boolean, default: !1 },
8961
- offset: { default: 0 },
8962
- padding: { default: 2 },
8963
- outsideClick: { type: Boolean, default: !1 },
8964
- triggerContent: { default: "" },
8965
- resizable: { type: Boolean, default: !0 },
8966
- triggerClass: { default: "" },
8967
- tooltipClass: { default: "" }
8841
+ tabs: { default: () => [] },
8842
+ block: { type: Boolean, default: !1 },
8843
+ modelValue: { default: "" },
8844
+ tile: { type: Boolean, default: !1 },
8845
+ scrollable: { type: Boolean, default: !1 }
8968
8846
  },
8969
- emits: ["show", "hide"],
8847
+ emits: ["update:modelValue", "click:icon"],
8970
8848
  setup(H, { emit: V }) {
8971
- const C = H;
8972
- e2((O) => ({
8973
- "5d1f86a5": p(b)
8849
+ const C = H, L = D(C.modelValue || C.tabs[0].id), M = k(() => ({
8850
+ "r-tabs": !0,
8851
+ "r-tabs--block": C.block,
8852
+ "r-tabs--tile": C.tile,
8853
+ "r-tabs--scrollable": C.scrollable
8974
8854
  }));
8975
- const L = D(null), M = D(null), A = D(null);
8976
- function i() {
8977
- const { placement: O, offset: w, padding: T, disabled: u } = C;
8978
- u || (M.value.style.display = "block", V("show"), S1(L, M, A, O, w, T), d(), C.outsideClick && l("add"));
8855
+ W(
8856
+ () => L.value,
8857
+ () => {
8858
+ V("update:modelValue", L.value);
8859
+ }
8860
+ );
8861
+ function A() {
8862
+ V("click:icon");
8979
8863
  }
8980
- function e() {
8981
- M.value.style.display = "", V("hide"), C.outsideClick && l("remove");
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));
8885
+ }
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);
8982
8910
  }
8983
- function d() {
8984
- C.autoHide && setTimeout(() => {
8985
- e();
8986
- }, C.hideDelay);
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",
8949
+ props: {
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: "" },
8959
+ disabled: { type: Boolean, default: !1 },
8960
+ loading: { type: Boolean, default: !1 },
8961
+ clearable: { type: Boolean, default: !1 },
8962
+ min: null,
8963
+ max: null
8964
+ },
8965
+ emits: [
8966
+ "update:modelValue",
8967
+ "focus",
8968
+ "blur",
8969
+ "input",
8970
+ "click:icon",
8971
+ "click:clear"
8972
+ ],
8973
+ setup(H, { emit: V }) {
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);
8987
9014
  }
8988
- function l(O) {
8989
- O === "add" && document.addEventListener("click", e), O === "remove" && document.removeEventListener("click", e);
9015
+ function v(S) {
9016
+ e.value = !1, V("blur", S);
8990
9017
  }
8991
- function o() {
8992
- C.disabled || C.triggers.includes(N.Click) && (M.value.style.display === "block" ? e() : i());
9018
+ function c(S) {
9019
+ M.value = S.target.value, V("input", S);
8993
9020
  }
8994
- function t() {
8995
- 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();
8996
9032
  }
8997
- function r() {
8998
- C.disabled || (M.value.style.display === "" && C.triggers.includes(N.Hover) ? i() : M.value.style.display !== "" && C.triggers.includes(N.Hover) && e());
9033
+ function w() {
9034
+ A.value = A.value === "password" ? "text" : "password";
8999
9035
  }
9000
- function n() {
9001
- const { placement: O, offset: w, padding: T, disabled: u } = C;
9002
- u || C.triggers.includes(N.Hover) && S1(L, M, A, O, w, T);
9036
+ function O() {
9037
+ var S;
9038
+ (S = L.value) == null || S.focus();
9003
9039
  }
9004
- const S = g(() => ({
9005
- tooltip: !0,
9006
- "tooltip--dark": C.dark,
9007
- "tooltip--light": C.light,
9008
- [`${C.tooltipClass}`]: !0
9009
- }));
9010
- window.onresize = () => {
9011
- const { placement: O, offset: w, padding: T, disabled: u } = C;
9012
- u || C.resizable && S1(L, M, A, O, w, T);
9013
- }, d2(
9014
- () => {
9015
- 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;
9016
9044
  },
9017
- { flush: "post" }
9018
- // this is important to avoid infinite loop & for fire on mounted
9019
- );
9020
- const b = g(() => `${C.showDelay}ms`);
9021
- return (O, w) => (m(), a(U, null, [
9022
- Z("div", {
9023
- ref_key: "trigger",
9024
- ref: L,
9025
- "aria-disabled": C.disabled,
9026
- class: f(["trigger", [H.triggerClass]]),
9027
- onClick: z(o, ["stop"]),
9028
- onMouseenter: z(t, ["stop"]),
9029
- onMouseleave: z(r, ["stop"]),
9030
- onMousemove: z(n, ["stop"])
9031
- }, [
9032
- B(O.$slots, "default", {
9033
- activators: {
9034
- click: o,
9035
- mouseenter: t,
9036
- mouseleave: r,
9037
- mousemove: n
9038
- }
9039
- }, () => [
9040
- Z("div", {
9041
- innerHTML: C.triggerContent
9042
- }, null, 8, $5)
9043
- ], !0)
9044
- ], 42, U5),
9045
- (m(), R(t2, { to: "body" }, [
9046
- Z("div", {
9047
- id: "tooltip",
9048
- ref_key: "tooltip",
9049
- ref: M,
9050
- class: f(p(S)),
9051
- role: "tooltip"
9052
- }, [
9053
- B(O.$slots, "content", {}, () => [
9054
- 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, {
9055
9072
  key: 0,
9056
- class: f(["tooltip__content", {
9057
- "tooltip__content--dark": C.dark,
9058
- "tooltip__content--light": C.light
9059
- }])
9060
- }, y(C.text), 3)) : k("", !0),
9061
- 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, {
9062
9093
  key: 1,
9063
- id: "arrow",
9064
- ref_key: "arrowElement",
9065
- ref: A,
9066
- class: f(["tooltip__arrow", {
9067
- "tooltip__arrow--dark": C.dark,
9068
- "tooltip__arrow--light": C.light
9069
- }])
9070
- }, null, 2)) : k("", !0)
9071
- ], !0)
9072
- ], 2)
9073
- ]))
9074
- ], 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
+ ]));
9075
9105
  }
9076
- });
9077
- const j5 = (H, V) => {
9078
- const C = H.__vccOpts || H;
9079
- for (const [L, M] of V)
9080
- C[L] = M;
9081
- return C;
9082
- }, w3 = /* @__PURE__ */ j5(K5, [["__scopeId", "data-v-8b4ea5c1"]]), q5 = { class: "r-breadcrumb" }, Y5 = {
9106
+ }), q5 = { class: "r-breadcrumb" }, Y5 = {
9083
9107
  key: 0,
9084
9108
  class: "r-breadcrumb__title"
9085
- }, P3 = /* @__PURE__ */ F({
9109
+ }, w3 = /* @__PURE__ */ F({
9086
9110
  __name: "RBreadcrumb",
9087
9111
  props: {
9088
9112
  items: { default: () => [] },
@@ -9093,51 +9117,51 @@ const j5 = (H, V) => {
9093
9117
  return (C, L) => {
9094
9118
  const M = m2("router-link");
9095
9119
  return m(), a("div", q5, [
9096
- (m(!0), a(U, null, Y(V.items, (A, i) => (m(), a("div", {
9120
+ (m(!0), a(z, null, q(V.items, (A, i) => (m(), a("div", {
9097
9121
  key: i,
9098
9122
  class: "r-breadcrumb__item"
9099
9123
  }, [
9100
- q(M, {
9124
+ $(M, {
9101
9125
  class: "r-breadcrumb__link",
9102
9126
  to: A.to
9103
9127
  }, {
9104
- default: W1(() => [
9105
- B(C.$slots, "item-icon", {}, () => [
9128
+ default: d1(() => [
9129
+ b(C.$slots, "item-icon", {}, () => [
9106
9130
  A.icon ? (m(), R(x, {
9107
9131
  key: 0,
9108
9132
  name: A.icon
9109
- }, null, 8, ["name"])) : k("", !0)
9133
+ }, null, 8, ["name"])) : B("", !0)
9110
9134
  ]),
9111
- A.onlyIcon ? k("", !0) : (m(), a("span", Y5, y(A.title), 1))
9135
+ A.onlyIcon ? B("", !0) : (m(), a("span", Y5, y(A.title), 1))
9112
9136
  ]),
9113
9137
  _: 2
9114
9138
  }, 1032, ["to"]),
9115
- B(C.$slots, "custom-seperator", {}, () => [
9139
+ b(C.$slots, "custom-seperator", {}, () => [
9116
9140
  i !== H.items.length - 1 && V.seperator ? (m(), R(x, {
9117
9141
  key: 0,
9118
9142
  class: "r-breadcrumb__separator",
9119
9143
  name: V.seperator
9120
- }, null, 8, ["name"])) : k("", !0)
9144
+ }, null, 8, ["name"])) : B("", !0)
9121
9145
  ])
9122
9146
  ]))), 128))
9123
9147
  ]);
9124
9148
  };
9125
9149
  }
9126
- }), 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__ */ 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", {
9127
9151
  d: "M0 0h24v24H0z",
9128
9152
  fill: "none",
9129
9153
  stroke: "none"
9130
- }, null, -1), i3 = /* @__PURE__ */ Z("path", { d: "M15 6l-6 6l6 6" }, null, -1), e3 = [
9154
+ }, null, -1), i3 = /* @__PURE__ */ u("path", { d: "M15 6l-6 6l6 6" }, null, -1), e3 = [
9131
9155
  A3,
9132
9156
  i3
9133
- ], d3 = ["max", "value"], t3 = ["disabled"], m3 = /* @__PURE__ */ Z("path", {
9157
+ ], d3 = ["max", "value"], t3 = ["disabled"], m3 = /* @__PURE__ */ u("path", {
9134
9158
  d: "M0 0h24v24H0z",
9135
9159
  fill: "none",
9136
9160
  stroke: "none"
9137
- }, null, -1), l3 = /* @__PURE__ */ Z("path", { d: "M9 6l6 6l-6 6" }, null, -1), o3 = [
9161
+ }, null, -1), l3 = /* @__PURE__ */ u("path", { d: "M9 6l6 6l-6 6" }, null, -1), o3 = [
9138
9162
  m3,
9139
9163
  l3
9140
- ], n3 = { class: "r-pagination__paginator__total" }, T3 = /* @__PURE__ */ F({
9164
+ ], n3 = { class: "r-pagination__paginator__total" }, P3 = /* @__PURE__ */ F({
9141
9165
  __name: "RPagination",
9142
9166
  props: {
9143
9167
  page: { default: 1 },
@@ -9149,25 +9173,25 @@ const j5 = (H, V) => {
9149
9173
  },
9150
9174
  emits: ["update:page"],
9151
9175
  setup(H, { emit: V }) {
9152
- const C = H, L = g(() => Math.ceil(C.totalItems / C.perPage)), M = (A) => {
9176
+ const C = H, L = k(() => Math.ceil(C.totalItems / C.perPage)), M = (A) => {
9153
9177
  A < 1 || A > L.value || V("update:page", A);
9154
9178
  };
9155
9179
  return (A, i) => (m(), a("div", X5, [
9156
- Z("div", J5, [
9157
- H.slash ? k("", !0) : (m(), a("span", C3, y(C.pageText), 1)),
9158
- Z("span", H3, y(C.page), 1),
9159
- Z("span", null, y(H.slash ? "/" : C.ofText), 1),
9160
- Z("span", V3, y(p(L)), 1)
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)
9161
9185
  ]),
9162
- Z("div", L3, [
9163
- Z("button", {
9186
+ u("div", L3, [
9187
+ u("button", {
9164
9188
  class: "r-pagination__paginator__prev",
9165
9189
  disabled: C.page === 1,
9166
9190
  onClick: i[0] || (i[0] = (e) => M(+C.page - 1))
9167
9191
  }, [
9168
- B(A.$slots, "prev", {}, () => [
9192
+ b(A.$slots, "prev", {}, () => [
9169
9193
  (m(), a("svg", {
9170
- class: f({ "stroke-gray-400": C.page === 1 }),
9194
+ class: g({ "stroke-gray-400": C.page === 1 }),
9171
9195
  fill: "none",
9172
9196
  height: "16",
9173
9197
  stroke: "#323232",
@@ -9180,7 +9204,7 @@ const j5 = (H, V) => {
9180
9204
  }, e3, 2))
9181
9205
  ])
9182
9206
  ], 8, M3),
9183
- Z("input", {
9207
+ u("input", {
9184
9208
  class: "r-pagination__paginator__input",
9185
9209
  max: p(L),
9186
9210
  min: "1",
@@ -9191,14 +9215,14 @@ const j5 = (H, V) => {
9191
9215
  return M(+((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
9192
9216
  })
9193
9217
  }, null, 40, d3),
9194
- Z("button", {
9218
+ u("button", {
9195
9219
  class: "r-pagination__paginator__next",
9196
9220
  disabled: C.page === p(L),
9197
9221
  onClick: i[2] || (i[2] = (e) => M(+C.page + 1))
9198
9222
  }, [
9199
- B(A.$slots, "next", {}, () => [
9223
+ b(A.$slots, "next", {}, () => [
9200
9224
  (m(), a("svg", {
9201
- class: f({ "stroke-gray-400": C.page === p(L) }),
9225
+ class: g({ "stroke-gray-400": C.page === p(L) }),
9202
9226
  fill: "none",
9203
9227
  height: "16",
9204
9228
  stroke: "#323232",
@@ -9211,11 +9235,11 @@ const j5 = (H, V) => {
9211
9235
  }, o3, 2))
9212
9236
  ])
9213
9237
  ], 8, t3),
9214
- Z("div", n3, "/ " + y(p(L)), 1)
9238
+ u("div", n3, "/ " + y(p(L)), 1)
9215
9239
  ])
9216
9240
  ]));
9217
9241
  }
9218
- }), r3 = ["value"], v3 = /* @__PURE__ */ F({
9242
+ }), r3 = ["value"], T3 = /* @__PURE__ */ F({
9219
9243
  __name: "RProgressbar",
9220
9244
  props: {
9221
9245
  value: { default: 0 },
@@ -9228,11 +9252,11 @@ const j5 = (H, V) => {
9228
9252
  class: "r-progressbar",
9229
9253
  max: 100,
9230
9254
  role: "progressbar",
9231
- style: p1({ height: V.height + "px" }),
9255
+ style: h1({ height: V.height + "px" }),
9232
9256
  value: V.value
9233
9257
  }, null, 12, r3));
9234
9258
  }
9235
- }), F3 = /* @__PURE__ */ F({
9259
+ }), v3 = /* @__PURE__ */ F({
9236
9260
  __name: "RItemGroup",
9237
9261
  props: {
9238
9262
  modelValue: { default: () => [] },
@@ -9245,16 +9269,18 @@ const j5 = (H, V) => {
9245
9269
  },
9246
9270
  emits: ["update:modelValue"],
9247
9271
  setup(H, { emit: V }) {
9248
- const C = H, L = "rocket-ui:r-item-group", M = D(C.as ?? "div"), A = D(C.modelValue ?? []), i = g(() => C.selectedClass);
9249
- a1(`${L}:selectedClass`, i.value);
9250
- const e = (l) => A.value.includes(l);
9251
- a1(`${L}:isSelected`, e);
9252
- const d = (l, o) => {
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) {
9253
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));
9254
- };
9255
- return a1(`${L}:select`, d), (l, o) => (m(), R(l2(M.value), null, {
9256
- default: W1(() => [
9257
- B(l.$slots, "default", {
9280
+ }
9281
+ return Z1(`${L}:select`, d), (l, o) => (m(), R(l2(M.value), null, {
9282
+ default: d1(() => [
9283
+ b(l.$slots, "default", {
9258
9284
  isSelected: e,
9259
9285
  select: d,
9260
9286
  selected: A.value
@@ -9263,7 +9289,7 @@ const j5 = (H, V) => {
9263
9289
  _: 3
9264
9290
  }));
9265
9291
  }
9266
- }), R3 = /* @__PURE__ */ F({
9292
+ }), F3 = /* @__PURE__ */ F({
9267
9293
  __name: "RItem",
9268
9294
  props: {
9269
9295
  value: { default: null },
@@ -9271,12 +9297,14 @@ const j5 = (H, V) => {
9271
9297
  selectedClass: { default: "" }
9272
9298
  },
9273
9299
  setup(H) {
9274
- const V = H, C = "rocket-ui:r-item-group", L = Z1(`${C}:isSelected`), M = Z1(`${C}:selectedClass`, ""), A = g(() => L(V.value) && [M, 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() {
9275
9302
  V.disabled || i(V.value, !L(V.value));
9276
- }, d = () => {
9303
+ }
9304
+ function d() {
9277
9305
  V.disabled || i(V.value, !0);
9278
- };
9279
- return (l, o) => B(l.$slots, "default", {
9306
+ }
9307
+ return (l, o) => b(l.$slots, "default", {
9280
9308
  disabled: V.disabled,
9281
9309
  isSelected: p(L)(V.value),
9282
9310
  select: d,
@@ -9291,24 +9319,24 @@ export {
9291
9319
  u3 as RAlert,
9292
9320
  S3 as RAvatar,
9293
9321
  c3 as RBadge,
9294
- P3 as RBreadcrumb,
9322
+ w3 as RBreadcrumb,
9295
9323
  s3 as RButton,
9296
9324
  O3 as RCheckbox,
9297
9325
  E2 as RChip,
9298
9326
  p3 as RDropdown,
9299
9327
  x as RIcon,
9300
- R3 as RItem,
9301
- F3 as RItemGroup,
9302
- G1 as RLabel,
9328
+ F3 as RItem,
9329
+ v3 as RItemGroup,
9330
+ H2 as RLabel,
9303
9331
  h3 as RModal,
9304
- T3 as RPagination,
9305
- v3 as RProgressbar,
9332
+ P3 as RPagination,
9333
+ T3 as RProgressbar,
9306
9334
  f3 as RSidebar,
9307
9335
  g3 as RSnackbar,
9308
9336
  k3 as RSwitch,
9309
- s5 as RTabItem,
9337
+ W5 as RTabItem,
9310
9338
  B3 as RTabs,
9311
9339
  b3 as RTextArea,
9312
9340
  y3 as RTextfield,
9313
- w3 as RTooltip
9341
+ t5 as RTooltip
9314
9342
  };