@loafacto/ui 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, normalizeClass, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition } from "vue";
1
+ import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, normalizeClass, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, resolveDynamicComponent, createTextVNode, useModel, useId, withDirectives, mergeProps, vModelDynamic, mergeModels, useTemplateRef, onMounted, nextTick, vModelText, vModelSelect, vModelCheckbox, vModelRadio, withKeys } from "vue";
2
2
  import { defineStore } from "pinia";
3
3
  function hexToRgb(hex) {
4
4
  const clean = hex.replace("#", "");
@@ -311,26 +311,26 @@ const _export_sfc = (sfc, props) => {
311
311
  }
312
312
  return target;
313
313
  };
314
- const _sfc_main$5 = {};
315
- const _hoisted_1$5 = {
314
+ const _sfc_main$u = {};
315
+ const _hoisted_1$t = {
316
316
  xmlns: "http://www.w3.org/2000/svg",
317
317
  viewBox: "-24.0 -113.9 585.9 157.9",
318
318
  "aria-hidden": "true"
319
319
  };
320
320
  function _sfc_render$1(_ctx, _cache) {
321
- return openBlock(), createElementBlock("svg", _hoisted_1$5, [..._cache[0] || (_cache[0] = [
321
+ return openBlock(), createElementBlock("svg", _hoisted_1$t, [..._cache[0] || (_cache[0] = [
322
322
  createStaticVNode('<g transform="translate(-27.12,-91.37) scale(0.7136)"><circle cx="74" cy="27" r="15" fill="#8F6747"></circle><circle cx="104" cy="12" r="10" fill="#8F6747"></circle><path d="M43,48 L95,48 A5,5 0 0 1 100,53 L100,59 A5,5 0 0 1 95,64 L92,64 L92,124 L164,124 L164,148 A8,8 0 0 1 156,156 L54,156 A8,8 0 0 1 46,148 L46,64 L43,64 A5,5 0 0 1 38,59 L38,53 A5,5 0 0 1 43,48 Z" fill="currentColor"></path><path d="M92,94 A18,18 0 0 1 128,94 A18,18 0 0 1 164,94 L164,124 L92,124 Z" fill="#8F6747"></path></g><path transform="translate(122.11,0)" d="M6.80 0.00V-70.00H22.90V-14.80H52.70V0.00ZM82.95 1.20Q75.05 1.20 69.05 -2.15Q63.05 -5.50 59.60 -11.40Q56.15 -17.30 56.15 -25.00Q56.15 -32.70 59.50 -38.60Q62.85 -44.50 68.90 -47.85Q74.95 -51.20 82.65 -51.20Q90.55 -51.20 96.60 -47.85Q102.65 -44.50 106.00 -38.60Q109.35 -32.70 109.35 -25.00Q109.35 -17.30 106.00 -11.40Q102.65 -5.50 96.65 -2.15Q90.65 1.20 82.95 1.20ZM82.95 -13.20Q85.95 -13.20 88.30 -14.70Q90.65 -16.20 92.00 -18.85Q93.35 -21.50 93.35 -25.00Q93.35 -28.50 92.00 -31.15Q90.65 -33.80 88.25 -35.30Q85.85 -36.80 82.75 -36.80Q79.65 -36.80 77.25 -35.30Q74.85 -33.80 73.50 -31.15Q72.15 -28.50 72.15 -25.00Q72.15 -21.50 73.50 -18.85Q74.85 -16.20 77.30 -14.70Q79.75 -13.20 82.95 -13.20ZM133.40 1.20Q124.50 1.20 119.60 -2.80Q114.70 -6.80 114.70 -14.10Q114.70 -22.00 119.80 -25.90Q124.90 -29.80 134.10 -29.80H146.30Q145.80 -33.80 143.95 -36.05Q142.10 -38.30 138.00 -38.30Q135.20 -38.30 133.10 -37.00Q131.00 -35.70 129.50 -33.40L115.90 -37.90Q117.60 -41.60 120.55 -44.60Q123.50 -47.60 127.80 -49.40Q132.10 -51.20 137.80 -51.20Q145.60 -51.20 151.00 -48.30Q156.40 -45.40 159.10 -40.20Q161.80 -35.00 161.80 -27.90L161.60 0.00H147.00L146.80 -5.10Q144.80 -2.00 141.40 -0.40Q138.00 1.20 133.40 1.20ZM136.80 -10.60Q139.70 -10.60 141.90 -11.80Q144.10 -13.00 145.35 -15.05Q146.60 -17.10 146.60 -19.50V-19.80H140.00Q135.00 -19.80 132.80 -18.40Q130.60 -17.00 130.60 -14.50Q130.60 -12.70 132.25 -11.65Q133.90 -10.60 136.80 -10.60ZM176.65 0.00V-37.70H168.75V-50.00H176.65V-54.60Q176.65 -62.80 180.95 -67.50Q185.25 -72.20 194.15 -72.20Q197.45 -72.20 201.05 -71.05Q204.65 -69.90 207.25 -68.40L201.45 -57.40Q200.25 -58.20 199.05 -58.55Q197.85 -58.90 196.85 -58.90Q194.45 -58.90 193.35 -57.25Q192.25 -55.60 192.25 -51.80V-50.00H203.55V-37.70H192.25V0.00ZM227.90 1.20Q219.00 1.20 214.10 -2.80Q209.20 -6.80 209.20 -14.10Q209.20 -22.00 214.30 -25.90Q219.40 -29.80 228.60 -29.80H240.80Q240.30 -33.80 238.45 -36.05Q236.60 -38.30 232.50 -38.30Q229.70 -38.30 227.60 -37.00Q225.50 -35.70 224.00 -33.40L210.40 -37.90Q212.10 -41.60 215.05 -44.60Q218.00 -47.60 222.30 -49.40Q226.60 -51.20 232.30 -51.20Q240.10 -51.20 245.50 -48.30Q250.90 -45.40 253.60 -40.20Q256.30 -35.00 256.30 -27.90L256.10 0.00H241.50L241.30 -5.10Q239.30 -2.00 235.90 -0.40Q232.50 1.20 227.90 1.20ZM231.30 -10.60Q234.20 -10.60 236.40 -11.80Q238.60 -13.00 239.85 -15.05Q241.10 -17.10 241.10 -19.50V-19.80H234.50Q229.50 -19.80 227.30 -18.40Q225.10 -17.00 225.10 -14.50Q225.10 -12.70 226.75 -11.65Q228.40 -10.60 231.30 -10.60ZM291.05 1.20Q283.05 1.20 276.80 -2.15Q270.55 -5.50 267.05 -11.45Q263.55 -17.40 263.55 -25.00Q263.55 -32.70 267.05 -38.60Q270.55 -44.50 276.70 -47.85Q282.85 -51.20 290.85 -51.20Q298.55 -51.20 304.95 -47.30Q311.35 -43.40 314.15 -36.00L299.35 -31.00Q298.25 -33.40 295.70 -34.95Q293.15 -36.50 290.05 -36.50Q286.95 -36.50 284.60 -35.05Q282.25 -33.60 280.90 -31.00Q279.55 -28.40 279.55 -25.00Q279.55 -21.60 280.90 -19.05Q282.25 -16.50 284.70 -15.00Q287.15 -13.50 290.25 -13.50Q293.35 -13.50 295.85 -15.10Q298.35 -16.70 299.55 -19.30L314.35 -14.30Q311.45 -6.80 305.10 -2.80Q298.75 1.20 291.05 1.20ZM342.80 1.20Q333.90 1.20 329.55 -3.05Q325.20 -7.30 325.20 -15.20V-36.90H317.40V-50.00H325.20V-65.60H340.80V-50.00H352.20V-36.90H340.80V-19.10Q340.80 -16.10 341.90 -14.70Q343.00 -13.30 345.30 -13.30Q346.20 -13.30 347.40 -13.75Q348.60 -14.20 349.60 -14.90L355.00 -3.50Q352.60 -1.50 349.25 -0.15Q345.90 1.20 342.80 1.20ZM386.85 1.20Q378.95 1.20 372.95 -2.15Q366.95 -5.50 363.50 -11.40Q360.05 -17.30 360.05 -25.00Q360.05 -32.70 363.40 -38.60Q366.75 -44.50 372.80 -47.85Q378.85 -51.20 386.55 -51.20Q394.45 -51.20 400.50 -47.85Q406.55 -44.50 409.90 -38.60Q413.25 -32.70 413.25 -25.00Q413.25 -17.30 409.90 -11.40Q406.55 -5.50 400.55 -2.15Q394.55 1.20 386.85 1.20ZM386.85 -13.20Q389.85 -13.20 392.20 -14.70Q394.55 -16.20 395.90 -18.85Q397.25 -21.50 397.25 -25.00Q397.25 -28.50 395.90 -31.15Q394.55 -33.80 392.15 -35.30Q389.75 -36.80 386.65 -36.80Q383.55 -36.80 381.15 -35.30Q378.75 -33.80 377.40 -31.15Q376.05 -28.50 376.05 -25.00Q376.05 -21.50 377.40 -18.85Q378.75 -16.20 381.20 -14.70Q383.65 -13.20 386.85 -13.20Z" fill="currentColor"></path>', 2)
323
323
  ])]);
324
324
  }
325
- const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$1]]);
326
- const _sfc_main$4 = {};
327
- const _hoisted_1$4 = {
325
+ const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$1]]);
326
+ const _sfc_main$t = {};
327
+ const _hoisted_1$s = {
328
328
  xmlns: "http://www.w3.org/2000/svg",
329
329
  viewBox: "30 -4 142 168",
330
330
  "aria-hidden": "true"
331
331
  };
332
332
  function _sfc_render(_ctx, _cache) {
333
- return openBlock(), createElementBlock("svg", _hoisted_1$4, [..._cache[0] || (_cache[0] = [
333
+ return openBlock(), createElementBlock("svg", _hoisted_1$s, [..._cache[0] || (_cache[0] = [
334
334
  createElementVNode("circle", {
335
335
  cx: "74",
336
336
  cy: "27",
@@ -353,15 +353,15 @@ function _sfc_render(_ctx, _cache) {
353
353
  }, null, -1)
354
354
  ])]);
355
355
  }
356
- const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render]]);
357
- const _hoisted_1$3 = { class: "lf-shell" };
358
- const _hoisted_2$2 = { class: "lf-topbar" };
359
- const _hoisted_3$2 = { class: "lf-topbar__inner" };
360
- const _hoisted_4$2 = ["href", "aria-label"];
361
- const _hoisted_5$2 = ["src"];
362
- const _hoisted_6$2 = { class: "lf-brand__name" };
363
- const _hoisted_7$2 = ["aria-expanded"];
364
- const _hoisted_8$1 = {
356
+ const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render]]);
357
+ const _hoisted_1$r = { class: "lf-shell" };
358
+ const _hoisted_2$n = { class: "lf-topbar" };
359
+ const _hoisted_3$i = { class: "lf-topbar__inner" };
360
+ const _hoisted_4$g = ["href", "aria-label"];
361
+ const _hoisted_5$c = ["src"];
362
+ const _hoisted_6$7 = { class: "lf-brand__name" };
363
+ const _hoisted_7$5 = ["aria-expanded"];
364
+ const _hoisted_8$2 = {
365
365
  key: 0,
366
366
  class: "lf-switcher__menu",
367
367
  role: "menu"
@@ -412,7 +412,7 @@ const _hoisted_27 = { class: "site-footer" };
412
412
  const _hoisted_28 = { class: "site-footer-inner" };
413
413
  const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
414
414
  const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
415
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
415
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
416
416
  __name: "AppShell",
417
417
  props: {
418
418
  services: { default: () => [] },
@@ -486,7 +486,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
486
486
  });
487
487
  return (_ctx, _cache) => {
488
488
  var _a;
489
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
489
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
490
490
  __props.backgroundColor || __props.backgroundImage ? (openBlock(), createElementBlock("div", {
491
491
  key: 0,
492
492
  class: "app-background-layer",
@@ -495,8 +495,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
495
495
  backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
496
496
  })
497
497
  }, null, 4)) : createCommentVNode("", true),
498
- createElementVNode("header", _hoisted_2$2, [
499
- createElementVNode("div", _hoisted_3$2, [
498
+ createElementVNode("header", _hoisted_2$n, [
499
+ createElementVNode("div", _hoisted_3$i, [
500
500
  createElementVNode("a", {
501
501
  class: "lf-brand",
502
502
  href: __props.brandHref,
@@ -508,13 +508,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
508
508
  src: __props.logoUrl,
509
509
  alt: "",
510
510
  class: "lf-brand__logo"
511
- }, null, 8, _hoisted_5$2),
512
- createElementVNode("span", _hoisted_6$2, toDisplayString(__props.brandName), 1)
511
+ }, null, 8, _hoisted_5$c),
512
+ createElementVNode("span", _hoisted_6$7, toDisplayString(__props.brandName), 1)
513
513
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
514
514
  createVNode(BrandLockup, { class: "lf-brand__lockup" }),
515
515
  createVNode(BrandSymbol, { class: "lf-brand__symbol" })
516
516
  ], 64))
517
- ], 8, _hoisted_4$2),
517
+ ], 8, _hoisted_4$g),
518
518
  __props.services.length ? (openBlock(), createElementBlock("div", {
519
519
  key: 0,
520
520
  ref_key: "switcherEl",
@@ -539,8 +539,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
539
539
  fill: "currentColor"
540
540
  })
541
541
  ], -1))
542
- ], 8, _hoisted_7$2),
543
- switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
542
+ ], 8, _hoisted_7$5),
543
+ switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
544
544
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
545
545
  return openBlock(), createElementBlock("a", {
546
546
  key: svc.id,
@@ -659,7 +659,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
659
659
  };
660
660
  }
661
661
  });
662
- const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-f1af4c05"]]);
662
+ const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-f1af4c05"]]);
663
663
  function generateId() {
664
664
  return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
665
665
  }
@@ -693,26 +693,26 @@ const useToastStore = defineStore("toast", () => {
693
693
  }
694
694
  return { items, add, remove, success, error, info, warning };
695
695
  });
696
- const _hoisted_1$2 = {
696
+ const _hoisted_1$q = {
697
697
  class: "toast-container",
698
698
  role: "region",
699
699
  "aria-label": "알림"
700
700
  };
701
- const _hoisted_2$1 = ["onClick"];
702
- const _hoisted_3$1 = {
701
+ const _hoisted_2$m = ["onClick"];
702
+ const _hoisted_3$h = {
703
703
  class: "toast-icon",
704
704
  viewBox: "0 0 24 24",
705
705
  "aria-hidden": "true"
706
706
  };
707
- const _hoisted_4$1 = ["d"];
708
- const _hoisted_5$1 = { class: "toast-message" };
709
- const _hoisted_6$1 = ["onClick"];
710
- const _hoisted_7$1 = {
707
+ const _hoisted_4$f = ["d"];
708
+ const _hoisted_5$b = { class: "toast-message" };
709
+ const _hoisted_6$6 = ["onClick"];
710
+ const _hoisted_7$4 = {
711
711
  viewBox: "0 0 24 24",
712
712
  "aria-hidden": "true"
713
713
  };
714
- const _hoisted_8 = ["d"];
715
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
714
+ const _hoisted_8$1 = ["d"];
715
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
716
716
  __name: "AppToast",
717
717
  setup(__props) {
718
718
  const toastStore = useToastStore();
@@ -744,7 +744,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
744
744
  });
745
745
  return (_ctx, _cache) => {
746
746
  return openBlock(), createBlock(Teleport, { to: "body" }, [
747
- createElementVNode("div", _hoisted_1$2, [
747
+ createElementVNode("div", _hoisted_1$q, [
748
748
  createVNode(TransitionGroup, { name: "toast" }, {
749
749
  default: withCtx(() => [
750
750
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
@@ -754,27 +754,27 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
754
754
  role: "alert",
755
755
  onClick: ($event) => unref(toastStore).remove(item.id)
756
756
  }, [
757
- (openBlock(), createElementBlock("svg", _hoisted_3$1, [
757
+ (openBlock(), createElementBlock("svg", _hoisted_3$h, [
758
758
  createElementVNode("path", {
759
759
  d: ICON_PATHS[item.type],
760
760
  fill: "currentColor"
761
- }, null, 8, _hoisted_4$1)
761
+ }, null, 8, _hoisted_4$f)
762
762
  ])),
763
- createElementVNode("span", _hoisted_5$1, toDisplayString(item.message), 1),
763
+ createElementVNode("span", _hoisted_5$b, toDisplayString(item.message), 1),
764
764
  createElementVNode("button", {
765
765
  type: "button",
766
766
  class: "toast-close",
767
767
  "aria-label": "닫기",
768
768
  onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
769
769
  }, [
770
- (openBlock(), createElementBlock("svg", _hoisted_7$1, [
770
+ (openBlock(), createElementBlock("svg", _hoisted_7$4, [
771
771
  createElementVNode("path", {
772
772
  d: ICON_PATHS.close,
773
773
  fill: "currentColor"
774
- }, null, 8, _hoisted_8)
774
+ }, null, 8, _hoisted_8$1)
775
775
  ]))
776
- ], 8, _hoisted_6$1)
777
- ], 10, _hoisted_2$1);
776
+ ], 8, _hoisted_6$6)
777
+ ], 10, _hoisted_2$m);
778
778
  }), 128))
779
779
  ]),
780
780
  _: 1
@@ -784,7 +784,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
784
784
  };
785
785
  }
786
786
  });
787
- const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-284b8ae8"]]);
787
+ const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-284b8ae8"]]);
788
788
  const useLoadingStore = defineStore("loading", () => {
789
789
  const count = ref(0);
790
790
  const loading = computed(() => count.value > 0);
@@ -804,14 +804,14 @@ const useLoadingStore = defineStore("loading", () => {
804
804
  }
805
805
  return { loading, count, start, stop, withLoading };
806
806
  });
807
- const _hoisted_1$1 = {
807
+ const _hoisted_1$p = {
808
808
  key: 0,
809
809
  class: "loading-overlay",
810
810
  role: "status",
811
811
  "aria-live": "polite",
812
812
  "aria-label": "로딩 중"
813
813
  };
814
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
814
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
815
815
  __name: "AppLoadingOverlay",
816
816
  setup(__props) {
817
817
  const loadingStore = useLoadingStore();
@@ -819,7 +819,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
819
819
  return openBlock(), createBlock(Teleport, { to: "body" }, [
820
820
  createVNode(Transition, { name: "fade" }, {
821
821
  default: withCtx(() => [
822
- unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$1, [..._cache[0] || (_cache[0] = [
822
+ unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$p, [..._cache[0] || (_cache[0] = [
823
823
  createElementVNode("div", {
824
824
  class: "loading-spinner",
825
825
  "aria-hidden": "true"
@@ -832,7 +832,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
832
832
  };
833
833
  }
834
834
  });
835
- const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cce3ea3e"]]);
835
+ const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-cce3ea3e"]]);
836
836
  const useConfirmStore = defineStore("confirm", () => {
837
837
  const open = ref(false);
838
838
  const title = ref("확인");
@@ -859,21 +859,21 @@ const useConfirmStore = defineStore("confirm", () => {
859
859
  }
860
860
  return { open, title, message, confirmText, cancelText, danger, ask, resolve };
861
861
  });
862
- const _hoisted_1 = {
862
+ const _hoisted_1$o = {
863
863
  key: 0,
864
864
  class: "app-confirm-backdrop"
865
865
  };
866
- const _hoisted_2 = {
866
+ const _hoisted_2$l = {
867
867
  class: "app-confirm",
868
868
  role: "dialog",
869
869
  "aria-modal": "true"
870
870
  };
871
- const _hoisted_3 = { class: "app-confirm__header" };
872
- const _hoisted_4 = { class: "app-confirm__title" };
873
- const _hoisted_5 = { class: "app-confirm__body" };
874
- const _hoisted_6 = { class: "app-confirm__message" };
875
- const _hoisted_7 = { class: "app-confirm__actions" };
876
- const _sfc_main = /* @__PURE__ */ defineComponent({
871
+ const _hoisted_3$g = { class: "app-confirm__header" };
872
+ const _hoisted_4$e = { class: "app-confirm__title" };
873
+ const _hoisted_5$a = { class: "app-confirm__body" };
874
+ const _hoisted_6$5 = { class: "app-confirm__message" };
875
+ const _hoisted_7$3 = { class: "app-confirm__actions" };
876
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
877
877
  __name: "AppConfirmModal",
878
878
  setup(__props) {
879
879
  const store = useConfirmStore();
@@ -881,15 +881,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
881
881
  return openBlock(), createBlock(Teleport, { to: "body" }, [
882
882
  createVNode(Transition, { name: "app-confirm-fade" }, {
883
883
  default: withCtx(() => [
884
- unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1, [
885
- createElementVNode("div", _hoisted_2, [
886
- createElementVNode("div", _hoisted_3, [
887
- createElementVNode("h3", _hoisted_4, toDisplayString(unref(store).title), 1)
884
+ unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
885
+ createElementVNode("div", _hoisted_2$l, [
886
+ createElementVNode("div", _hoisted_3$g, [
887
+ createElementVNode("h3", _hoisted_4$e, toDisplayString(unref(store).title), 1)
888
888
  ]),
889
- createElementVNode("div", _hoisted_5, [
890
- createElementVNode("p", _hoisted_6, toDisplayString(unref(store).message), 1)
889
+ createElementVNode("div", _hoisted_5$a, [
890
+ createElementVNode("p", _hoisted_6$5, toDisplayString(unref(store).message), 1)
891
891
  ]),
892
- createElementVNode("div", _hoisted_7, [
892
+ createElementVNode("div", _hoisted_7$3, [
893
893
  createElementVNode("button", {
894
894
  type: "button",
895
895
  class: "app-confirm__btn app-confirm__btn--ghost",
@@ -910,7 +910,1717 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
910
910
  };
911
911
  }
912
912
  });
913
- const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26427ddf"]]);
913
+ const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-26427ddf"]]);
914
+ const LF_ICONS = {
915
+ close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
916
+ search: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19 15.5 14zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z",
917
+ check: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",
918
+ check_circle: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z",
919
+ info: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",
920
+ warning: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",
921
+ error: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",
922
+ expand_more: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",
923
+ expand_less: "M12 8.83 16.59 13.41 18 12l-6-6-6 6 1.41 1.41z",
924
+ chevron_left: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z",
925
+ chevron_right: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",
926
+ arrow_back: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z",
927
+ arrow_upward: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z",
928
+ arrow_downward: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z",
929
+ add: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z",
930
+ remove: "M19 13H5v-2h14z",
931
+ edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",
932
+ delete: "M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",
933
+ refresh: "M17.65 6.35A8 8 0 1 0 19.73 14h-2.08A6 6 0 1 1 12 6a5.94 5.94 0 0 1 4.22 1.78L13 11h7V4l-2.35 2.35z",
934
+ more_vert: "M12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
935
+ download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
936
+ upload: "M9 16h6v-6h4l-7-7-7 7h4v6zM5 18h14v2H5v-2z",
937
+ filter_list: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",
938
+ settings: "M19.14 12.94a7.07 7.07 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.3 7.3 0 0 0-1.62-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.67 8.86a.5.5 0 0 0 .12.62l2.03 1.58a7.07 7.07 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.62l1.92 3.32c.12.22.38.3.6.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.04.24.25.42.5.42h3.84c.25 0 .46-.18.5-.42l.36-2.54c.59-.24 1.12-.56 1.62-.94l2.39.96c.22.08.48 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.03-1.58zM12 15.6A3.6 3.6 0 1 1 15.6 12 3.6 3.6 0 0 1 12 15.6z",
939
+ person: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",
940
+ people: "M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z",
941
+ logout: "M17 7l-1.41 1.41L17.17 10H9v2h8.17l-1.58 1.59L17 15l4-4-4-4zM5 5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7v-2H5V5z",
942
+ menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
943
+ visibility: "M12 4.5A11.83 11.83 0 0 0 1 12a11.83 11.83 0 0 0 22 0 11.83 11.83 0 0 0-11-7.5zm0 12.5a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z",
944
+ visibility_off: "M12 6.5a5 5 0 0 1 5 5c0 .51-.08 1-.23 1.45l2.92 2.92A11.8 11.8 0 0 0 23 11.5 11.83 11.83 0 0 0 8.36 4.9l2.16 2.16c.46-.35.99-.56 1.48-.56zM2.71 3.16 1.29 4.58l2.44 2.44A11.75 11.75 0 0 0 1 11.5a11.83 11.83 0 0 0 15.23 6.7l3.19 3.19 1.41-1.41L2.71 3.16zM12 16.5a5 5 0 0 1-5-5c0-.69.15-1.34.4-1.93l1.57 1.57c-.03.12-.05.24-.05.36a3 3 0 0 0 3 3c.12 0 .24-.02.36-.05l1.57 1.57c-.59.25-1.24.4-1.93.4z",
945
+ content_copy: "M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z",
946
+ open_in_new: "M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z",
947
+ help: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 17h-2v-2h2v2zm2.07-7.75-.9.92A3.4 3.4 0 0 0 13 14h-2v-.5a4 4 0 0 1 1.17-2.83l1.24-1.26A1.96 1.96 0 0 0 12 6a2 2 0 0 0-2 2H8a4 4 0 1 1 8 0 3.2 3.2 0 0 1-.93 2.25z",
948
+ lock: "M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6zm3 12a2 2 0 1 1 2-2 2 2 0 0 1-2 2z",
949
+ mail: "M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z",
950
+ calendar_today: "M19 3h-1V1h-2v2H8V1H6v2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 18H5V9h14v12z",
951
+ save: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4zm-5 16a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm3-10H5V5h10v4z"
952
+ };
953
+ const _hoisted_1$n = ["role", "aria-label", "aria-hidden"];
954
+ const _hoisted_2$k = { key: 0 };
955
+ const _hoisted_3$f = ["d"];
956
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
957
+ __name: "LfIcon",
958
+ props: {
959
+ name: {},
960
+ path: {},
961
+ size: { default: "1em" },
962
+ label: {}
963
+ },
964
+ setup(__props) {
965
+ const props = __props;
966
+ const d = computed(() => props.path ?? (props.name ? LF_ICONS[props.name] : void 0));
967
+ const resolvedSize = computed(
968
+ () => typeof props.size === "number" ? `${props.size}px` : props.size
969
+ );
970
+ return (_ctx, _cache) => {
971
+ return openBlock(), createElementBlock("svg", {
972
+ class: "lf-icon",
973
+ viewBox: "0 0 24 24",
974
+ style: normalizeStyle({ width: resolvedSize.value, height: resolvedSize.value }),
975
+ role: __props.label ? "img" : void 0,
976
+ "aria-label": __props.label || void 0,
977
+ "aria-hidden": __props.label ? void 0 : "true"
978
+ }, [
979
+ __props.label ? (openBlock(), createElementBlock("title", _hoisted_2$k, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
980
+ d.value ? (openBlock(), createElementBlock("path", {
981
+ key: 1,
982
+ d: d.value,
983
+ fill: "currentColor"
984
+ }, null, 8, _hoisted_3$f)) : createCommentVNode("", true)
985
+ ], 12, _hoisted_1$n);
986
+ };
987
+ }
988
+ });
989
+ const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-b70b3868"]]);
990
+ const _hoisted_1$m = ["role", "aria-label", "aria-hidden"];
991
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
992
+ __name: "LfSpinner",
993
+ props: {
994
+ size: { default: "1.25rem" },
995
+ label: {}
996
+ },
997
+ setup(__props) {
998
+ const props = __props;
999
+ const resolvedSize = computed(
1000
+ () => typeof props.size === "number" ? `${props.size}px` : props.size
1001
+ );
1002
+ return (_ctx, _cache) => {
1003
+ return openBlock(), createElementBlock("svg", {
1004
+ class: "lf-spinner",
1005
+ viewBox: "0 0 24 24",
1006
+ style: normalizeStyle({ width: resolvedSize.value, height: resolvedSize.value }),
1007
+ role: __props.label ? "status" : void 0,
1008
+ "aria-label": __props.label || void 0,
1009
+ "aria-hidden": __props.label ? void 0 : "true"
1010
+ }, [..._cache[0] || (_cache[0] = [
1011
+ createElementVNode("circle", {
1012
+ class: "lf-spinner__track",
1013
+ cx: "12",
1014
+ cy: "12",
1015
+ r: "9"
1016
+ }, null, -1),
1017
+ createElementVNode("circle", {
1018
+ class: "lf-spinner__head",
1019
+ cx: "12",
1020
+ cy: "12",
1021
+ r: "9"
1022
+ }, null, -1)
1023
+ ])], 12, _hoisted_1$m);
1024
+ };
1025
+ }
1026
+ });
1027
+ const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4aedf6b0"]]);
1028
+ const _hoisted_1$l = {
1029
+ key: 2,
1030
+ class: "lf-btn__label"
1031
+ };
1032
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1033
+ __name: "LfButton",
1034
+ props: {
1035
+ variant: { default: "ghost" },
1036
+ size: { default: "md" },
1037
+ block: { type: Boolean },
1038
+ loading: { type: Boolean },
1039
+ disabled: { type: Boolean },
1040
+ type: { default: "button" },
1041
+ href: {},
1042
+ external: { type: Boolean },
1043
+ icon: {},
1044
+ iconPath: {},
1045
+ iconRight: {}
1046
+ },
1047
+ setup(__props) {
1048
+ return (_ctx, _cache) => {
1049
+ return openBlock(), createBlock(resolveDynamicComponent(__props.href ? "a" : "button"), {
1050
+ class: normalizeClass(["lf-btn", [`lf-btn--${__props.variant}`, `lf-btn--${__props.size}`, { "lf-btn--block": __props.block, "lf-btn--loading": __props.loading }]]),
1051
+ type: __props.href ? void 0 : __props.type,
1052
+ href: __props.href,
1053
+ target: __props.href && __props.external ? "_blank" : void 0,
1054
+ rel: __props.href && __props.external ? "noopener noreferrer" : void 0,
1055
+ disabled: __props.href ? void 0 : __props.disabled || __props.loading,
1056
+ "aria-disabled": __props.href && (__props.disabled || __props.loading) ? "true" : void 0,
1057
+ "aria-busy": __props.loading ? "true" : void 0
1058
+ }, {
1059
+ default: withCtx(() => [
1060
+ __props.loading ? (openBlock(), createBlock(LfSpinner, {
1061
+ key: 0,
1062
+ class: "lf-btn__spinner",
1063
+ size: "1em"
1064
+ })) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
1065
+ key: 1,
1066
+ name: __props.icon,
1067
+ path: __props.iconPath
1068
+ }, null, 8, ["name", "path"])) : createCommentVNode("", true),
1069
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$l, [
1070
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
1071
+ ])) : createCommentVNode("", true),
1072
+ __props.iconRight ? (openBlock(), createBlock(LfIcon, {
1073
+ key: 3,
1074
+ name: __props.iconRight
1075
+ }, null, 8, ["name"])) : createCommentVNode("", true)
1076
+ ]),
1077
+ _: 3
1078
+ }, 8, ["class", "type", "href", "target", "rel", "disabled", "aria-disabled", "aria-busy"]);
1079
+ };
1080
+ }
1081
+ });
1082
+ const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-a40d8584"]]);
1083
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1084
+ __name: "LfIconButton",
1085
+ props: {
1086
+ icon: {},
1087
+ iconPath: {},
1088
+ label: {},
1089
+ size: { default: "md" },
1090
+ accent: { type: Boolean },
1091
+ danger: { type: Boolean },
1092
+ disabled: { type: Boolean },
1093
+ href: {},
1094
+ external: { type: Boolean }
1095
+ },
1096
+ setup(__props) {
1097
+ return (_ctx, _cache) => {
1098
+ return openBlock(), createBlock(resolveDynamicComponent(__props.href ? "a" : "button"), {
1099
+ class: normalizeClass(["lf-icon-btn", [`lf-icon-btn--${__props.size}`, { "lf-icon-btn--accent": __props.accent, "lf-icon-btn--danger": __props.danger }]]),
1100
+ type: __props.href ? void 0 : "button",
1101
+ href: __props.href,
1102
+ target: __props.href && __props.external ? "_blank" : void 0,
1103
+ rel: __props.href && __props.external ? "noopener noreferrer" : void 0,
1104
+ disabled: __props.href ? void 0 : __props.disabled,
1105
+ "aria-label": __props.label,
1106
+ title: __props.label
1107
+ }, {
1108
+ default: withCtx(() => [
1109
+ createVNode(LfIcon, {
1110
+ name: __props.icon,
1111
+ path: __props.iconPath,
1112
+ size: __props.size === "sm" ? "1.125rem" : "1.375rem"
1113
+ }, null, 8, ["name", "path", "size"])
1114
+ ]),
1115
+ _: 1
1116
+ }, 8, ["class", "type", "href", "target", "rel", "disabled", "aria-label", "title"]);
1117
+ };
1118
+ }
1119
+ });
1120
+ const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-4a28ff9b"]]);
1121
+ const _hoisted_1$k = ["for"];
1122
+ const _hoisted_2$j = {
1123
+ key: 0,
1124
+ class: "lf-field__required",
1125
+ "aria-hidden": "true"
1126
+ };
1127
+ const _hoisted_3$e = {
1128
+ key: 1,
1129
+ class: "lf-field__error",
1130
+ role: "alert"
1131
+ };
1132
+ const _hoisted_4$d = {
1133
+ key: 2,
1134
+ class: "lf-field__hint"
1135
+ };
1136
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1137
+ __name: "LfField",
1138
+ props: {
1139
+ label: {},
1140
+ hint: {},
1141
+ error: {},
1142
+ required: { type: Boolean },
1143
+ htmlFor: {}
1144
+ },
1145
+ setup(__props) {
1146
+ return (_ctx, _cache) => {
1147
+ return openBlock(), createElementBlock("div", {
1148
+ class: normalizeClass(["lf-field", { "lf-field--error": !!__props.error }])
1149
+ }, [
1150
+ __props.label ? (openBlock(), createElementBlock("label", {
1151
+ key: 0,
1152
+ class: "lf-field__label",
1153
+ for: __props.htmlFor
1154
+ }, [
1155
+ createTextVNode(toDisplayString(__props.label) + " ", 1),
1156
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$j, "*")) : createCommentVNode("", true)
1157
+ ], 8, _hoisted_1$k)) : createCommentVNode("", true),
1158
+ renderSlot(_ctx.$slots, "default", {}, void 0, true),
1159
+ __props.error ? (openBlock(), createElementBlock("p", _hoisted_3$e, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$d, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
1160
+ ], 2);
1161
+ };
1162
+ }
1163
+ });
1164
+ const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-38509e4d"]]);
1165
+ const _hoisted_1$j = { class: "lf-control-wrap" };
1166
+ const _hoisted_2$i = {
1167
+ key: 0,
1168
+ class: "lf-control-wrap__icon lf-control-wrap__icon--left"
1169
+ };
1170
+ const _hoisted_3$d = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
1171
+ const _hoisted_4$c = ["aria-label"];
1172
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1173
+ ...{ inheritAttrs: false },
1174
+ __name: "LfTextField",
1175
+ props: /* @__PURE__ */ mergeModels({
1176
+ label: {},
1177
+ hint: {},
1178
+ error: {},
1179
+ required: { type: Boolean },
1180
+ placeholder: {},
1181
+ disabled: { type: Boolean },
1182
+ readonly: { type: Boolean },
1183
+ type: { default: "text" },
1184
+ size: { default: "md" },
1185
+ icon: {},
1186
+ iconPath: {},
1187
+ clearable: { type: Boolean },
1188
+ revealable: { type: Boolean }
1189
+ }, {
1190
+ "modelValue": { default: "" },
1191
+ "modelModifiers": {}
1192
+ }),
1193
+ emits: ["update:modelValue"],
1194
+ setup(__props) {
1195
+ const props = __props;
1196
+ const model = useModel(__props, "modelValue");
1197
+ const inputId = useId();
1198
+ const revealed = ref(false);
1199
+ const hasTrailing = computed(
1200
+ () => props.revealable || props.clearable && !!model.value && !props.disabled && !props.readonly
1201
+ );
1202
+ function clear() {
1203
+ model.value = typeof model.value === "number" ? 0 : "";
1204
+ }
1205
+ return (_ctx, _cache) => {
1206
+ return openBlock(), createBlock(LfField, {
1207
+ label: __props.label,
1208
+ hint: __props.hint,
1209
+ error: __props.error,
1210
+ required: __props.required,
1211
+ "html-for": unref(inputId)
1212
+ }, {
1213
+ default: withCtx(() => [
1214
+ createElementVNode("div", _hoisted_1$j, [
1215
+ __props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$i, [
1216
+ createVNode(LfIcon, {
1217
+ name: __props.icon,
1218
+ path: __props.iconPath,
1219
+ size: "1.125rem"
1220
+ }, null, 8, ["name", "path"])
1221
+ ])) : createCommentVNode("", true),
1222
+ withDirectives(createElementVNode("input", mergeProps({ id: unref(inputId) }, _ctx.$attrs, {
1223
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
1224
+ class: ["lf-control", [
1225
+ { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error },
1226
+ (__props.icon || __props.iconPath) && "lf-control--has-left",
1227
+ hasTrailing.value && "lf-control--has-right"
1228
+ ]],
1229
+ type: revealed.value ? "text" : __props.type,
1230
+ placeholder: __props.placeholder,
1231
+ disabled: __props.disabled,
1232
+ readonly: __props.readonly,
1233
+ required: __props.required,
1234
+ "aria-invalid": __props.error ? "true" : void 0
1235
+ }), null, 16, _hoisted_3$d), [
1236
+ [vModelDynamic, model.value]
1237
+ ]),
1238
+ __props.revealable ? (openBlock(), createElementBlock("button", {
1239
+ key: 1,
1240
+ type: "button",
1241
+ class: "lf-control-action",
1242
+ "aria-label": revealed.value ? "비밀번호 가리기" : "비밀번호 보기",
1243
+ onClick: _cache[1] || (_cache[1] = ($event) => revealed.value = !revealed.value)
1244
+ }, [
1245
+ createVNode(LfIcon, {
1246
+ name: revealed.value ? "visibility_off" : "visibility",
1247
+ size: "1.125rem"
1248
+ }, null, 8, ["name"])
1249
+ ], 8, _hoisted_4$c)) : __props.clearable && !!model.value && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
1250
+ key: 2,
1251
+ type: "button",
1252
+ class: "lf-control-action",
1253
+ "aria-label": "지우기",
1254
+ onClick: clear
1255
+ }, [
1256
+ createVNode(LfIcon, {
1257
+ name: "close",
1258
+ size: "1.125rem"
1259
+ })
1260
+ ])) : createCommentVNode("", true)
1261
+ ])
1262
+ ]),
1263
+ _: 1
1264
+ }, 8, ["label", "hint", "error", "required", "html-for"]);
1265
+ };
1266
+ }
1267
+ });
1268
+ const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-e1ad8511"]]);
1269
+ const _hoisted_1$i = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
1270
+ const _hoisted_2$h = {
1271
+ key: 0,
1272
+ class: "lf-textarea__counter"
1273
+ };
1274
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1275
+ ...{ inheritAttrs: false },
1276
+ __name: "LfTextarea",
1277
+ props: /* @__PURE__ */ mergeModels({
1278
+ label: {},
1279
+ hint: {},
1280
+ error: {},
1281
+ required: { type: Boolean },
1282
+ placeholder: {},
1283
+ disabled: { type: Boolean },
1284
+ readonly: { type: Boolean },
1285
+ rows: { default: 4 },
1286
+ size: { default: "md" },
1287
+ maxlength: {},
1288
+ counter: { type: Boolean },
1289
+ resize: { type: Boolean, default: true },
1290
+ autoGrow: { type: Boolean }
1291
+ }, {
1292
+ "modelValue": { default: "" },
1293
+ "modelModifiers": {}
1294
+ }),
1295
+ emits: ["update:modelValue"],
1296
+ setup(__props) {
1297
+ const props = __props;
1298
+ const model = useModel(__props, "modelValue");
1299
+ const inputId = useId();
1300
+ const el = useTemplateRef("el");
1301
+ function grow() {
1302
+ const node = el.value;
1303
+ if (!node) return;
1304
+ node.style.height = "auto";
1305
+ node.style.height = `${node.scrollHeight}px`;
1306
+ }
1307
+ onMounted(() => {
1308
+ if (props.autoGrow) grow();
1309
+ });
1310
+ watch(model, () => {
1311
+ if (props.autoGrow) void nextTick(grow);
1312
+ });
1313
+ return (_ctx, _cache) => {
1314
+ return openBlock(), createBlock(LfField, {
1315
+ label: __props.label,
1316
+ hint: __props.hint,
1317
+ error: __props.error,
1318
+ required: __props.required,
1319
+ "html-for": unref(inputId)
1320
+ }, {
1321
+ default: withCtx(() => [
1322
+ withDirectives(createElementVNode("textarea", mergeProps({
1323
+ id: unref(inputId),
1324
+ ref_key: "el",
1325
+ ref: el
1326
+ }, _ctx.$attrs, {
1327
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
1328
+ class: ["lf-control lf-textarea", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error, "lf-textarea--fixed": !__props.resize }],
1329
+ rows: __props.rows,
1330
+ placeholder: __props.placeholder,
1331
+ disabled: __props.disabled,
1332
+ readonly: __props.readonly,
1333
+ required: __props.required,
1334
+ maxlength: __props.maxlength,
1335
+ "aria-invalid": __props.error ? "true" : void 0,
1336
+ onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
1337
+ }), null, 16, _hoisted_1$i), [
1338
+ [vModelText, model.value]
1339
+ ]),
1340
+ __props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$h, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
1341
+ ]),
1342
+ _: 1
1343
+ }, 8, ["label", "hint", "error", "required", "html-for"]);
1344
+ };
1345
+ }
1346
+ });
1347
+ const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-96f0aac7"]]);
1348
+ const _hoisted_1$h = { class: "lf-control-wrap" };
1349
+ const _hoisted_2$g = ["id", "disabled", "required", "aria-invalid"];
1350
+ const _hoisted_3$c = ["disabled"];
1351
+ const _hoisted_4$b = ["value", "disabled"];
1352
+ const _hoisted_5$9 = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
1353
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1354
+ ...{ inheritAttrs: false },
1355
+ __name: "LfSelect",
1356
+ props: /* @__PURE__ */ mergeModels({
1357
+ options: { default: () => [] },
1358
+ label: {},
1359
+ hint: {},
1360
+ error: {},
1361
+ required: { type: Boolean },
1362
+ placeholder: {},
1363
+ clearable: { type: Boolean },
1364
+ disabled: { type: Boolean },
1365
+ size: { default: "md" }
1366
+ }, {
1367
+ "modelValue": { default: "" },
1368
+ "modelModifiers": {}
1369
+ }),
1370
+ emits: ["update:modelValue"],
1371
+ setup(__props) {
1372
+ const props = __props;
1373
+ const model = useModel(__props, "modelValue");
1374
+ const inputId = useId();
1375
+ const normalized = computed(
1376
+ () => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
1377
+ );
1378
+ return (_ctx, _cache) => {
1379
+ return openBlock(), createBlock(LfField, {
1380
+ label: __props.label,
1381
+ hint: __props.hint,
1382
+ error: __props.error,
1383
+ required: __props.required,
1384
+ "html-for": unref(inputId)
1385
+ }, {
1386
+ default: withCtx(() => [
1387
+ createElementVNode("div", _hoisted_1$h, [
1388
+ withDirectives(createElementVNode("select", mergeProps({ id: unref(inputId) }, _ctx.$attrs, {
1389
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
1390
+ class: ["lf-control lf-select lf-control--has-right", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }],
1391
+ disabled: __props.disabled,
1392
+ required: __props.required,
1393
+ "aria-invalid": __props.error ? "true" : void 0
1394
+ }), [
1395
+ __props.placeholder ? (openBlock(), createElementBlock("option", {
1396
+ key: 0,
1397
+ value: "",
1398
+ disabled: !__props.clearable
1399
+ }, toDisplayString(__props.placeholder), 9, _hoisted_3$c)) : createCommentVNode("", true),
1400
+ (openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
1401
+ return openBlock(), createElementBlock("option", {
1402
+ key: String(opt.value),
1403
+ value: opt.value,
1404
+ disabled: opt.disabled
1405
+ }, toDisplayString(opt.label), 9, _hoisted_4$b);
1406
+ }), 128))
1407
+ ], 16, _hoisted_2$g), [
1408
+ [vModelSelect, model.value]
1409
+ ]),
1410
+ createElementVNode("span", _hoisted_5$9, [
1411
+ createVNode(LfIcon, {
1412
+ name: "expand_more",
1413
+ size: "1.125rem"
1414
+ })
1415
+ ])
1416
+ ])
1417
+ ]),
1418
+ _: 1
1419
+ }, 8, ["label", "hint", "error", "required", "html-for"]);
1420
+ };
1421
+ }
1422
+ });
1423
+ const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-78276920"]]);
1424
+ const _hoisted_1$g = ["disabled", "value"];
1425
+ const _hoisted_2$f = {
1426
+ class: "lf-check__box",
1427
+ "aria-hidden": "true"
1428
+ };
1429
+ const _hoisted_3$b = {
1430
+ key: 0,
1431
+ class: "lf-check__text"
1432
+ };
1433
+ const _hoisted_4$a = { class: "lf-check__label" };
1434
+ const _hoisted_5$8 = {
1435
+ key: 0,
1436
+ class: "lf-check__desc"
1437
+ };
1438
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1439
+ ...{ inheritAttrs: false },
1440
+ __name: "LfCheckbox",
1441
+ props: /* @__PURE__ */ mergeModels({
1442
+ label: {},
1443
+ description: {},
1444
+ disabled: { type: Boolean },
1445
+ value: {}
1446
+ }, {
1447
+ "modelValue": { type: [Boolean, Array], ...{ default: false } },
1448
+ "modelModifiers": {}
1449
+ }),
1450
+ emits: ["update:modelValue"],
1451
+ setup(__props) {
1452
+ const model = useModel(__props, "modelValue");
1453
+ return (_ctx, _cache) => {
1454
+ return openBlock(), createElementBlock("label", {
1455
+ class: normalizeClass(["lf-check", { "lf-check--disabled": __props.disabled }])
1456
+ }, [
1457
+ withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
1458
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
1459
+ class: "lf-check__input",
1460
+ type: "checkbox",
1461
+ disabled: __props.disabled,
1462
+ value: __props.value
1463
+ }), null, 16, _hoisted_1$g), [
1464
+ [vModelCheckbox, model.value]
1465
+ ]),
1466
+ createElementVNode("span", _hoisted_2$f, [
1467
+ createVNode(LfIcon, {
1468
+ name: "check",
1469
+ size: "0.875rem"
1470
+ })
1471
+ ]),
1472
+ __props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$b, [
1473
+ createElementVNode("span", _hoisted_4$a, [
1474
+ renderSlot(_ctx.$slots, "default", {}, () => [
1475
+ createTextVNode(toDisplayString(__props.label), 1)
1476
+ ], true)
1477
+ ]),
1478
+ __props.description ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
1479
+ ])) : createCommentVNode("", true)
1480
+ ], 2);
1481
+ };
1482
+ }
1483
+ });
1484
+ const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a43c00ef"]]);
1485
+ const _hoisted_1$f = {
1486
+ key: 0,
1487
+ class: "lf-switch__text"
1488
+ };
1489
+ const _hoisted_2$e = { class: "lf-switch__label" };
1490
+ const _hoisted_3$a = {
1491
+ key: 0,
1492
+ class: "lf-switch__desc"
1493
+ };
1494
+ const _hoisted_4$9 = ["disabled"];
1495
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1496
+ ...{ inheritAttrs: false },
1497
+ __name: "LfSwitch",
1498
+ props: /* @__PURE__ */ mergeModels({
1499
+ label: {},
1500
+ description: {},
1501
+ disabled: { type: Boolean },
1502
+ row: { type: Boolean }
1503
+ }, {
1504
+ "modelValue": { type: Boolean, ...{ default: false } },
1505
+ "modelModifiers": {}
1506
+ }),
1507
+ emits: ["update:modelValue"],
1508
+ setup(__props) {
1509
+ const model = useModel(__props, "modelValue");
1510
+ return (_ctx, _cache) => {
1511
+ return openBlock(), createElementBlock("label", {
1512
+ class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
1513
+ }, [
1514
+ __props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$f, [
1515
+ createElementVNode("span", _hoisted_2$e, [
1516
+ renderSlot(_ctx.$slots, "default", {}, () => [
1517
+ createTextVNode(toDisplayString(__props.label), 1)
1518
+ ], true)
1519
+ ]),
1520
+ __props.description ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
1521
+ ])) : createCommentVNode("", true),
1522
+ withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
1523
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
1524
+ class: "lf-switch__input",
1525
+ type: "checkbox",
1526
+ role: "switch",
1527
+ disabled: __props.disabled
1528
+ }), null, 16, _hoisted_4$9), [
1529
+ [vModelCheckbox, model.value]
1530
+ ]),
1531
+ _cache[1] || (_cache[1] = createElementVNode("span", {
1532
+ class: "lf-switch__track",
1533
+ "aria-hidden": "true"
1534
+ }, [
1535
+ createElementVNode("span", { class: "lf-switch__thumb" })
1536
+ ], -1))
1537
+ ], 2);
1538
+ };
1539
+ }
1540
+ });
1541
+ const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-43535c0f"]]);
1542
+ const _hoisted_1$e = {
1543
+ key: 0,
1544
+ class: "lf-radio-group__legend"
1545
+ };
1546
+ const _hoisted_2$d = {
1547
+ key: 0,
1548
+ class: "lf-radio-group__required",
1549
+ "aria-hidden": "true"
1550
+ };
1551
+ const _hoisted_3$9 = ["name", "value", "disabled"];
1552
+ const _hoisted_4$8 = { class: "lf-radio__text" };
1553
+ const _hoisted_5$7 = { class: "lf-radio__label" };
1554
+ const _hoisted_6$4 = {
1555
+ key: 0,
1556
+ class: "lf-radio__desc"
1557
+ };
1558
+ const _hoisted_7$2 = {
1559
+ key: 1,
1560
+ class: "lf-radio-group__error",
1561
+ role: "alert"
1562
+ };
1563
+ const _hoisted_8 = {
1564
+ key: 2,
1565
+ class: "lf-radio-group__hint"
1566
+ };
1567
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1568
+ __name: "LfRadioGroup",
1569
+ props: /* @__PURE__ */ mergeModels({
1570
+ options: { default: () => [] },
1571
+ label: {},
1572
+ hint: {},
1573
+ error: {},
1574
+ required: { type: Boolean },
1575
+ disabled: { type: Boolean },
1576
+ inline: { type: Boolean }
1577
+ }, {
1578
+ "modelValue": {},
1579
+ "modelModifiers": {}
1580
+ }),
1581
+ emits: ["update:modelValue"],
1582
+ setup(__props) {
1583
+ const props = __props;
1584
+ const model = useModel(__props, "modelValue");
1585
+ const groupName = useId();
1586
+ const normalized = computed(
1587
+ () => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
1588
+ );
1589
+ return (_ctx, _cache) => {
1590
+ return openBlock(), createElementBlock("fieldset", {
1591
+ class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
1592
+ }, [
1593
+ __props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$e, [
1594
+ createTextVNode(toDisplayString(__props.label) + " ", 1),
1595
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$d, "*")) : createCommentVNode("", true)
1596
+ ])) : createCommentVNode("", true),
1597
+ (openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
1598
+ return openBlock(), createElementBlock("label", {
1599
+ key: String(opt.value),
1600
+ class: normalizeClass(["lf-radio", { "lf-radio--disabled": __props.disabled || opt.disabled }])
1601
+ }, [
1602
+ withDirectives(createElementVNode("input", {
1603
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
1604
+ class: "lf-radio__input",
1605
+ type: "radio",
1606
+ name: unref(groupName),
1607
+ value: opt.value,
1608
+ disabled: __props.disabled || opt.disabled
1609
+ }, null, 8, _hoisted_3$9), [
1610
+ [vModelRadio, model.value]
1611
+ ]),
1612
+ _cache[1] || (_cache[1] = createElementVNode("span", {
1613
+ class: "lf-radio__dot",
1614
+ "aria-hidden": "true"
1615
+ }, null, -1)),
1616
+ createElementVNode("span", _hoisted_4$8, [
1617
+ createElementVNode("span", _hoisted_5$7, toDisplayString(opt.label), 1),
1618
+ opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$4, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
1619
+ ])
1620
+ ], 2);
1621
+ }), 128)),
1622
+ __props.error ? (openBlock(), createElementBlock("p", _hoisted_7$2, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
1623
+ ], 2);
1624
+ };
1625
+ }
1626
+ });
1627
+ const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-39f8b8f2"]]);
1628
+ const _hoisted_1$d = ["aria-labelledby", "aria-label"];
1629
+ const _hoisted_2$c = {
1630
+ key: 0,
1631
+ class: "lf-modal__header"
1632
+ };
1633
+ const _hoisted_3$8 = { class: "lf-modal__heading" };
1634
+ const _hoisted_4$7 = ["id"];
1635
+ const _hoisted_5$6 = {
1636
+ key: 0,
1637
+ class: "lf-modal__subtitle"
1638
+ };
1639
+ const _hoisted_6$3 = { class: "lf-modal__body" };
1640
+ const _hoisted_7$1 = {
1641
+ key: 1,
1642
+ class: "lf-modal__footer"
1643
+ };
1644
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1645
+ __name: "LfModal",
1646
+ props: /* @__PURE__ */ mergeModels({
1647
+ title: {},
1648
+ subtitle: {},
1649
+ size: { default: "md" },
1650
+ fullHeight: { type: Boolean },
1651
+ persistent: { type: Boolean },
1652
+ closable: { type: Boolean, default: true },
1653
+ closeLabel: { default: "닫기" },
1654
+ ariaLabel: {}
1655
+ }, {
1656
+ "modelValue": { type: Boolean, ...{ default: false } },
1657
+ "modelModifiers": {}
1658
+ }),
1659
+ emits: /* @__PURE__ */ mergeModels(["close"], ["update:modelValue"]),
1660
+ setup(__props, { emit: __emit }) {
1661
+ const props = __props;
1662
+ const model = useModel(__props, "modelValue");
1663
+ const emit = __emit;
1664
+ const titleId = useId();
1665
+ const panel = useTemplateRef("panel");
1666
+ let lastFocused = null;
1667
+ function close(reason) {
1668
+ model.value = false;
1669
+ emit("close", reason);
1670
+ }
1671
+ let downOnScrim = false;
1672
+ function onScrimDown() {
1673
+ downOnScrim = true;
1674
+ }
1675
+ function onScrimClick() {
1676
+ if (!downOnScrim) return;
1677
+ downOnScrim = false;
1678
+ if (!props.persistent) close("scrim");
1679
+ }
1680
+ function onKeydown(e) {
1681
+ if (e.key === "Escape" && !props.persistent) {
1682
+ e.stopPropagation();
1683
+ close("esc");
1684
+ return;
1685
+ }
1686
+ if (e.key !== "Tab" || !panel.value) return;
1687
+ const focusables = panel.value.querySelectorAll(
1688
+ 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
1689
+ );
1690
+ if (focusables.length === 0) return;
1691
+ const first = focusables[0];
1692
+ const last = focusables[focusables.length - 1];
1693
+ const active = document.activeElement;
1694
+ if (e.shiftKey && (active === first || active === panel.value)) {
1695
+ e.preventDefault();
1696
+ last.focus();
1697
+ } else if (!e.shiftKey && active === last) {
1698
+ e.preventDefault();
1699
+ first.focus();
1700
+ }
1701
+ }
1702
+ let locked = false;
1703
+ function lockScroll(on) {
1704
+ if (typeof document === "undefined") return;
1705
+ const root = document.documentElement;
1706
+ const depth = Number(root.dataset.lfModalDepth ?? "0") + (on ? 1 : -1);
1707
+ root.dataset.lfModalDepth = String(Math.max(0, depth));
1708
+ document.body.style.overflow = depth > 0 ? "hidden" : "";
1709
+ }
1710
+ watch(
1711
+ model,
1712
+ async (open) => {
1713
+ var _a, _b;
1714
+ if (open === locked) return;
1715
+ locked = open;
1716
+ lockScroll(open);
1717
+ if (open) {
1718
+ lastFocused = document.activeElement;
1719
+ await nextTick();
1720
+ (_a = panel.value) == null ? void 0 : _a.focus();
1721
+ } else {
1722
+ (_b = lastFocused == null ? void 0 : lastFocused.focus) == null ? void 0 : _b.call(lastFocused);
1723
+ lastFocused = null;
1724
+ }
1725
+ },
1726
+ { immediate: true }
1727
+ );
1728
+ onBeforeUnmount(() => {
1729
+ if (locked) {
1730
+ locked = false;
1731
+ lockScroll(false);
1732
+ }
1733
+ });
1734
+ return (_ctx, _cache) => {
1735
+ return openBlock(), createBlock(Teleport, { to: "body" }, [
1736
+ createVNode(Transition, { name: "lf-modal" }, {
1737
+ default: withCtx(() => [
1738
+ model.value ? (openBlock(), createElementBlock("div", {
1739
+ key: 0,
1740
+ class: "lf-modal-scrim",
1741
+ onMousedown: withModifiers(onScrimDown, ["self"]),
1742
+ onClick: withModifiers(onScrimClick, ["self"])
1743
+ }, [
1744
+ createElementVNode("div", {
1745
+ ref_key: "panel",
1746
+ ref: panel,
1747
+ class: normalizeClass(["lf-modal", [`lf-modal--${__props.size}`, { "lf-modal--full": __props.fullHeight }]]),
1748
+ role: "dialog",
1749
+ "aria-modal": "true",
1750
+ tabindex: "-1",
1751
+ "aria-labelledby": __props.title ? unref(titleId) : void 0,
1752
+ "aria-label": __props.title ? void 0 : __props.ariaLabel,
1753
+ onKeydown
1754
+ }, [
1755
+ __props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$c, [
1756
+ renderSlot(_ctx.$slots, "header", {}, () => [
1757
+ createElementVNode("div", _hoisted_3$8, [
1758
+ createElementVNode("h2", {
1759
+ id: unref(titleId),
1760
+ class: "lf-modal__title"
1761
+ }, toDisplayString(__props.title), 9, _hoisted_4$7),
1762
+ __props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$6, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
1763
+ ])
1764
+ ], true),
1765
+ __props.closable ? (openBlock(), createBlock(LfIconButton, {
1766
+ key: 0,
1767
+ class: "lf-modal__close",
1768
+ icon: "close",
1769
+ label: __props.closeLabel,
1770
+ onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
1771
+ }, null, 8, ["label"])) : createCommentVNode("", true)
1772
+ ])) : createCommentVNode("", true),
1773
+ createElementVNode("div", _hoisted_6$3, [
1774
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
1775
+ ]),
1776
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$1, [
1777
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
1778
+ ])) : createCommentVNode("", true)
1779
+ ], 42, _hoisted_1$d)
1780
+ ], 32)) : createCommentVNode("", true)
1781
+ ]),
1782
+ _: 3
1783
+ })
1784
+ ]);
1785
+ };
1786
+ }
1787
+ });
1788
+ const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e52c29ac"]]);
1789
+ const _hoisted_1$c = {
1790
+ key: 0,
1791
+ class: "lf-card__head"
1792
+ };
1793
+ const _hoisted_2$b = { class: "lf-card__title" };
1794
+ const _hoisted_3$7 = {
1795
+ key: 0,
1796
+ class: "lf-card__actions"
1797
+ };
1798
+ const _hoisted_4$6 = { class: "lf-card__body" };
1799
+ const _hoisted_5$5 = {
1800
+ key: 1,
1801
+ class: "lf-card__foot"
1802
+ };
1803
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1804
+ __name: "LfCard",
1805
+ props: {
1806
+ title: {},
1807
+ icon: {},
1808
+ iconPath: {},
1809
+ glass: { type: Boolean, default: true },
1810
+ padding: { default: "md" }
1811
+ },
1812
+ setup(__props) {
1813
+ return (_ctx, _cache) => {
1814
+ return openBlock(), createElementBlock("section", {
1815
+ class: normalizeClass(["lf-card", [__props.glass ? "lf-card--glass" : "lf-card--solid", `lf-card--pad-${__props.padding}`]])
1816
+ }, [
1817
+ __props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$c, [
1818
+ renderSlot(_ctx.$slots, "header", {}, () => [
1819
+ createElementVNode("h3", _hoisted_2$b, [
1820
+ __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
1821
+ key: 0,
1822
+ name: __props.icon,
1823
+ path: __props.iconPath,
1824
+ size: "1.125rem",
1825
+ class: "lf-card__icon"
1826
+ }, null, 8, ["name", "path"])) : createCommentVNode("", true),
1827
+ createTextVNode(" " + toDisplayString(__props.title), 1)
1828
+ ])
1829
+ ], true),
1830
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
1831
+ renderSlot(_ctx.$slots, "actions", {}, void 0, true)
1832
+ ])) : createCommentVNode("", true)
1833
+ ])) : createCommentVNode("", true),
1834
+ createElementVNode("div", _hoisted_4$6, [
1835
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
1836
+ ]),
1837
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_5$5, [
1838
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
1839
+ ])) : createCommentVNode("", true)
1840
+ ], 2);
1841
+ };
1842
+ }
1843
+ });
1844
+ const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-c19bc9b0"]]);
1845
+ const _hoisted_1$b = { class: "lf-page-header" };
1846
+ const _hoisted_2$a = { class: "lf-page-header__text" };
1847
+ const _hoisted_3$6 = { class: "lf-page-header__title" };
1848
+ const _hoisted_4$5 = {
1849
+ key: 0,
1850
+ class: "lf-page-header__desc"
1851
+ };
1852
+ const _hoisted_5$4 = {
1853
+ key: 0,
1854
+ class: "lf-page-header__actions"
1855
+ };
1856
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1857
+ __name: "LfPageHeader",
1858
+ props: {
1859
+ title: {},
1860
+ description: {},
1861
+ icon: {},
1862
+ iconPath: {}
1863
+ },
1864
+ setup(__props) {
1865
+ return (_ctx, _cache) => {
1866
+ return openBlock(), createElementBlock("header", _hoisted_1$b, [
1867
+ createElementVNode("div", _hoisted_2$a, [
1868
+ createElementVNode("h1", _hoisted_3$6, [
1869
+ __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
1870
+ key: 0,
1871
+ name: __props.icon,
1872
+ path: __props.iconPath,
1873
+ size: "1.5rem",
1874
+ class: "lf-page-header__icon"
1875
+ }, null, 8, ["name", "path"])) : createCommentVNode("", true),
1876
+ renderSlot(_ctx.$slots, "title", {}, () => [
1877
+ createTextVNode(toDisplayString(__props.title), 1)
1878
+ ], true)
1879
+ ]),
1880
+ __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_4$5, [
1881
+ renderSlot(_ctx.$slots, "description", {}, () => [
1882
+ createTextVNode(toDisplayString(__props.description), 1)
1883
+ ], true)
1884
+ ])) : createCommentVNode("", true)
1885
+ ]),
1886
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
1887
+ renderSlot(_ctx.$slots, "actions", {}, void 0, true)
1888
+ ])) : createCommentVNode("", true)
1889
+ ]);
1890
+ };
1891
+ }
1892
+ });
1893
+ const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b887cef1"]]);
1894
+ const _hoisted_1$a = {
1895
+ key: 0,
1896
+ class: "lf-badge__dot",
1897
+ "aria-hidden": "true"
1898
+ };
1899
+ const _hoisted_2$9 = ["aria-label"];
1900
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1901
+ __name: "LfBadge",
1902
+ props: {
1903
+ label: {},
1904
+ tone: { default: "neutral" },
1905
+ variant: { default: "soft" },
1906
+ size: { default: "md" },
1907
+ icon: {},
1908
+ iconPath: {},
1909
+ dot: { type: Boolean },
1910
+ removable: { type: Boolean },
1911
+ removeLabel: { default: "제거" }
1912
+ },
1913
+ emits: ["remove"],
1914
+ setup(__props, { emit: __emit }) {
1915
+ const emit = __emit;
1916
+ return (_ctx, _cache) => {
1917
+ return openBlock(), createElementBlock("span", {
1918
+ class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
1919
+ }, [
1920
+ __props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$a)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
1921
+ key: 1,
1922
+ name: __props.icon,
1923
+ path: __props.iconPath,
1924
+ size: "0.875rem"
1925
+ }, null, 8, ["name", "path"])) : createCommentVNode("", true),
1926
+ renderSlot(_ctx.$slots, "default", {}, () => [
1927
+ createTextVNode(toDisplayString(__props.label), 1)
1928
+ ], true),
1929
+ __props.removable ? (openBlock(), createElementBlock("button", {
1930
+ key: 2,
1931
+ type: "button",
1932
+ class: "lf-badge__remove",
1933
+ "aria-label": __props.removeLabel,
1934
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("remove"))
1935
+ }, [
1936
+ createVNode(LfIcon, {
1937
+ name: "close",
1938
+ size: "0.75rem"
1939
+ })
1940
+ ], 8, _hoisted_2$9)) : createCommentVNode("", true)
1941
+ ], 2);
1942
+ };
1943
+ }
1944
+ });
1945
+ const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ced4b85a"]]);
1946
+ const _hoisted_1$9 = ["role"];
1947
+ const _hoisted_2$8 = { class: "lf-alert__content" };
1948
+ const _hoisted_3$5 = {
1949
+ key: 0,
1950
+ class: "lf-alert__title"
1951
+ };
1952
+ const _hoisted_4$4 = {
1953
+ key: 1,
1954
+ class: "lf-alert__message"
1955
+ };
1956
+ const _hoisted_5$3 = {
1957
+ key: 0,
1958
+ class: "lf-alert__actions"
1959
+ };
1960
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1961
+ __name: "LfAlert",
1962
+ props: {
1963
+ tone: { default: "info" },
1964
+ title: {},
1965
+ message: {},
1966
+ icon: {},
1967
+ iconPath: {},
1968
+ closable: { type: Boolean },
1969
+ closeLabel: { default: "닫기" }
1970
+ },
1971
+ emits: ["close"],
1972
+ setup(__props, { emit: __emit }) {
1973
+ const emit = __emit;
1974
+ const TONE_ICON = {
1975
+ info: "info",
1976
+ success: "check_circle",
1977
+ warning: "warning",
1978
+ error: "error"
1979
+ };
1980
+ return (_ctx, _cache) => {
1981
+ return openBlock(), createElementBlock("div", {
1982
+ class: normalizeClass(["lf-alert", `lf-alert--${__props.tone}`]),
1983
+ role: __props.tone === "error" ? "alert" : "status"
1984
+ }, [
1985
+ createVNode(LfIcon, {
1986
+ class: "lf-alert__icon",
1987
+ name: __props.icon ?? TONE_ICON[__props.tone],
1988
+ path: __props.iconPath,
1989
+ size: "1.25rem"
1990
+ }, null, 8, ["name", "path"]),
1991
+ createElementVNode("div", _hoisted_2$8, [
1992
+ __props.title ? (openBlock(), createElementBlock("p", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
1993
+ _ctx.$slots.default || __props.message ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
1994
+ renderSlot(_ctx.$slots, "default", {}, () => [
1995
+ createTextVNode(toDisplayString(__props.message), 1)
1996
+ ], true)
1997
+ ])) : createCommentVNode("", true)
1998
+ ]),
1999
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
2000
+ renderSlot(_ctx.$slots, "actions", {}, void 0, true)
2001
+ ])) : createCommentVNode("", true),
2002
+ __props.closable ? (openBlock(), createBlock(LfIconButton, {
2003
+ key: 1,
2004
+ class: "lf-alert__close",
2005
+ icon: "close",
2006
+ size: "sm",
2007
+ label: __props.closeLabel,
2008
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
2009
+ }, null, 8, ["label"])) : createCommentVNode("", true)
2010
+ ], 10, _hoisted_1$9);
2011
+ };
2012
+ }
2013
+ });
2014
+ const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-01c64756"]]);
2015
+ const _hoisted_1$8 = ["title"];
2016
+ const _hoisted_2$7 = ["src", "alt"];
2017
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2018
+ __name: "LfAvatar",
2019
+ props: {
2020
+ name: {},
2021
+ src: {},
2022
+ size: { default: "2rem" }
2023
+ },
2024
+ setup(__props) {
2025
+ const props = __props;
2026
+ const errored = ref(false);
2027
+ watch(() => props.src, () => errored.value = false);
2028
+ const showImage = computed(() => !!props.src && !errored.value);
2029
+ const initial = computed(() => {
2030
+ var _a, _b;
2031
+ return (((_b = (_a = props.name) == null ? void 0 : _a.trim()) == null ? void 0 : _b[0]) ?? "?").toUpperCase();
2032
+ });
2033
+ const px = computed(() => typeof props.size === "number" ? `${props.size}px` : props.size);
2034
+ const tone = computed(() => {
2035
+ const name = props.name ?? "";
2036
+ let hash = 0;
2037
+ for (let i = 0; i < name.length; i++) hash = hash * 31 + name.charCodeAt(i) | 0;
2038
+ return Math.abs(hash) % 7;
2039
+ });
2040
+ return (_ctx, _cache) => {
2041
+ return openBlock(), createElementBlock("span", {
2042
+ class: normalizeClass(["lf-avatar", `lf-avatar--tone-${tone.value}`]),
2043
+ style: normalizeStyle({ width: px.value, height: px.value, fontSize: `calc(${px.value} * 0.42)` }),
2044
+ title: __props.name || void 0
2045
+ }, [
2046
+ showImage.value ? (openBlock(), createElementBlock("img", {
2047
+ key: 0,
2048
+ class: "lf-avatar__img",
2049
+ src: __props.src,
2050
+ alt: __props.name ?? "",
2051
+ onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
2052
+ }, null, 40, _hoisted_2$7)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2053
+ createTextVNode(toDisplayString(initial.value), 1)
2054
+ ], 64))
2055
+ ], 14, _hoisted_1$8);
2056
+ };
2057
+ }
2058
+ });
2059
+ const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-61adf36e"]]);
2060
+ const _hoisted_1$7 = { class: "lf-table-wrap" };
2061
+ const _hoisted_2$6 = ["aria-sort"];
2062
+ const _hoisted_3$4 = ["onClick"];
2063
+ const _hoisted_4$3 = { key: 1 };
2064
+ const _hoisted_5$2 = ["colspan"];
2065
+ const _hoisted_6$2 = ["tabindex", "onClick", "onKeydown"];
2066
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2067
+ __name: "LfTable",
2068
+ props: {
2069
+ columns: {},
2070
+ rows: { default: () => [] },
2071
+ rowKey: {},
2072
+ loading: { type: Boolean },
2073
+ skeletonRows: { default: 5 },
2074
+ emptyText: { default: "표시할 내용이 없습니다." },
2075
+ clickable: { type: Boolean },
2076
+ compact: { type: Boolean },
2077
+ minWidth: {},
2078
+ sort: {}
2079
+ },
2080
+ emits: ["rowClick", "update:sort"],
2081
+ setup(__props, { emit: __emit }) {
2082
+ const props = __props;
2083
+ const emit = __emit;
2084
+ function keyOf(row, i) {
2085
+ return props.rowKey ? String(row[props.rowKey] ?? i) : i;
2086
+ }
2087
+ function toggleSort(key) {
2088
+ var _a;
2089
+ const order = ((_a = props.sort) == null ? void 0 : _a.key) === key && props.sort.order === "asc" ? "desc" : "asc";
2090
+ emit("update:sort", { key, order });
2091
+ }
2092
+ function ariaSort(key) {
2093
+ var _a;
2094
+ if (((_a = props.sort) == null ? void 0 : _a.key) !== key) return void 0;
2095
+ return props.sort.order === "asc" ? "ascending" : "descending";
2096
+ }
2097
+ return (_ctx, _cache) => {
2098
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
2099
+ createElementVNode("table", {
2100
+ class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
2101
+ style: normalizeStyle({ minWidth: __props.minWidth })
2102
+ }, [
2103
+ createElementVNode("thead", null, [
2104
+ createElementVNode("tr", null, [
2105
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
2106
+ var _a;
2107
+ return openBlock(), createElementBlock("th", {
2108
+ key: col.key,
2109
+ style: normalizeStyle({ width: col.width, textAlign: col.align ?? "left" }),
2110
+ class: normalizeClass({ "lf-table__col--mobile-hidden": col.hideOnMobile }),
2111
+ "aria-sort": ariaSort(col.key)
2112
+ }, [
2113
+ col.sortable ? (openBlock(), createElementBlock("button", {
2114
+ key: 0,
2115
+ type: "button",
2116
+ class: "lf-table__sort",
2117
+ onClick: ($event) => toggleSort(col.key)
2118
+ }, [
2119
+ createTextVNode(toDisplayString(col.label) + " ", 1),
2120
+ ((_a = __props.sort) == null ? void 0 : _a.key) === col.key ? (openBlock(), createBlock(LfIcon, {
2121
+ key: 0,
2122
+ name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
2123
+ size: "0.875rem"
2124
+ }, null, 8, ["name"])) : createCommentVNode("", true)
2125
+ ], 8, _hoisted_3$4)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2126
+ createTextVNode(toDisplayString(col.label), 1)
2127
+ ], 64))
2128
+ ], 14, _hoisted_2$6);
2129
+ }), 128))
2130
+ ])
2131
+ ]),
2132
+ createElementVNode("tbody", null, [
2133
+ __props.loading ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.skeletonRows, (n) => {
2134
+ return openBlock(), createElementBlock("tr", {
2135
+ key: `sk-${n}`,
2136
+ class: "lf-table__row"
2137
+ }, [
2138
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
2139
+ return openBlock(), createElementBlock("td", {
2140
+ key: col.key,
2141
+ class: normalizeClass({ "lf-table__col--mobile-hidden": col.hideOnMobile })
2142
+ }, [..._cache[0] || (_cache[0] = [
2143
+ createElementVNode("span", { class: "lf-table__skeleton" }, null, -1)
2144
+ ])], 2);
2145
+ }), 128))
2146
+ ]);
2147
+ }), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$3, [
2148
+ createElementVNode("td", {
2149
+ class: "lf-table__empty",
2150
+ colspan: __props.columns.length
2151
+ }, [
2152
+ renderSlot(_ctx.$slots, "empty", {}, () => [
2153
+ createTextVNode(toDisplayString(__props.emptyText), 1)
2154
+ ], true)
2155
+ ], 8, _hoisted_5$2)
2156
+ ])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i) => {
2157
+ return openBlock(), createElementBlock("tr", {
2158
+ key: keyOf(row, i),
2159
+ class: normalizeClass(["lf-table__row", { "lf-table__row--clickable": __props.clickable }]),
2160
+ tabindex: __props.clickable ? 0 : void 0,
2161
+ onClick: ($event) => __props.clickable && emit("rowClick", row),
2162
+ onKeydown: withKeys(($event) => __props.clickable && emit("rowClick", row), ["enter"])
2163
+ }, [
2164
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
2165
+ return openBlock(), createElementBlock("td", {
2166
+ key: col.key,
2167
+ style: normalizeStyle({ textAlign: col.align ?? "left" }),
2168
+ class: normalizeClass({ "lf-table__col--mobile-hidden": col.hideOnMobile })
2169
+ }, [
2170
+ renderSlot(_ctx.$slots, `cell-${col.key}`, {
2171
+ row,
2172
+ value: row[col.key],
2173
+ index: i
2174
+ }, () => [
2175
+ createTextVNode(toDisplayString(row[col.key] ?? "—"), 1)
2176
+ ], true)
2177
+ ], 6);
2178
+ }), 128))
2179
+ ], 42, _hoisted_6$2);
2180
+ }), 128))
2181
+ ])
2182
+ ], 6)
2183
+ ]);
2184
+ };
2185
+ }
2186
+ });
2187
+ const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-dc7b5ff5"]]);
2188
+ const _hoisted_1$6 = ["aria-label"];
2189
+ const _hoisted_2$5 = {
2190
+ key: 0,
2191
+ class: "lf-pagination__total"
2192
+ };
2193
+ const _hoisted_3$3 = {
2194
+ key: 1,
2195
+ class: "lf-pagination__btns"
2196
+ };
2197
+ const _hoisted_4$2 = ["disabled"];
2198
+ const _hoisted_5$1 = {
2199
+ key: 0,
2200
+ class: "lf-pagination__gap",
2201
+ "aria-hidden": "true"
2202
+ };
2203
+ const _hoisted_6$1 = ["aria-current", "onClick"];
2204
+ const _hoisted_7 = ["disabled"];
2205
+ const ELLIPSIS = -1;
2206
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2207
+ __name: "LfPagination",
2208
+ props: /* @__PURE__ */ mergeModels({
2209
+ total: { default: 0 },
2210
+ perPage: { default: 20 },
2211
+ siblings: { default: 1 },
2212
+ showTotal: { type: Boolean, default: true },
2213
+ ariaLabel: { default: "페이지" }
2214
+ }, {
2215
+ "modelValue": { default: 1 },
2216
+ "modelModifiers": {}
2217
+ }),
2218
+ emits: ["update:modelValue"],
2219
+ setup(__props) {
2220
+ const props = __props;
2221
+ const model = useModel(__props, "modelValue");
2222
+ const totalPages = computed(() => Math.max(1, Math.ceil(props.total / props.perPage)));
2223
+ const items = computed(() => {
2224
+ const last = totalPages.value;
2225
+ const cur = Math.min(Math.max(1, model.value), last);
2226
+ const window2 = props.siblings * 2 + 5;
2227
+ if (last <= window2) return Array.from({ length: last }, (_, i) => i + 1);
2228
+ const left = Math.max(2, cur - props.siblings);
2229
+ const right = Math.min(last - 1, cur + props.siblings);
2230
+ const out = [1];
2231
+ if (left > 2) out.push(ELLIPSIS);
2232
+ for (let p = left; p <= right; p++) out.push(p);
2233
+ if (right < last - 1) out.push(ELLIPSIS);
2234
+ out.push(last);
2235
+ return out;
2236
+ });
2237
+ function go(page) {
2238
+ const next = Math.min(Math.max(1, page), totalPages.value);
2239
+ if (next !== model.value) model.value = next;
2240
+ }
2241
+ return (_ctx, _cache) => {
2242
+ return totalPages.value > 1 || __props.showTotal ? (openBlock(), createElementBlock("nav", {
2243
+ key: 0,
2244
+ class: "lf-pagination",
2245
+ "aria-label": __props.ariaLabel
2246
+ }, [
2247
+ __props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$5, [
2248
+ renderSlot(_ctx.$slots, "total", {}, () => [
2249
+ createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
2250
+ ], true)
2251
+ ])) : createCommentVNode("", true),
2252
+ totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
2253
+ createElementVNode("button", {
2254
+ type: "button",
2255
+ class: "lf-pagination__btn",
2256
+ disabled: model.value <= 1,
2257
+ "aria-label": "이전 페이지",
2258
+ onClick: _cache[0] || (_cache[0] = ($event) => go(model.value - 1))
2259
+ }, [
2260
+ createVNode(LfIcon, {
2261
+ name: "chevron_left",
2262
+ size: "1rem"
2263
+ })
2264
+ ], 8, _hoisted_4$2),
2265
+ (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i) => {
2266
+ return openBlock(), createElementBlock(Fragment, {
2267
+ key: `${p}-${i}`
2268
+ }, [
2269
+ p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$1, "…")) : (openBlock(), createElementBlock("button", {
2270
+ key: 1,
2271
+ type: "button",
2272
+ class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
2273
+ "aria-current": p === model.value ? "page" : void 0,
2274
+ onClick: ($event) => go(p)
2275
+ }, toDisplayString(p), 11, _hoisted_6$1))
2276
+ ], 64);
2277
+ }), 128)),
2278
+ createElementVNode("button", {
2279
+ type: "button",
2280
+ class: "lf-pagination__btn",
2281
+ disabled: model.value >= totalPages.value,
2282
+ "aria-label": "다음 페이지",
2283
+ onClick: _cache[1] || (_cache[1] = ($event) => go(model.value + 1))
2284
+ }, [
2285
+ createVNode(LfIcon, {
2286
+ name: "chevron_right",
2287
+ size: "1rem"
2288
+ })
2289
+ ], 8, _hoisted_7)
2290
+ ])) : createCommentVNode("", true)
2291
+ ], 8, _hoisted_1$6)) : createCommentVNode("", true);
2292
+ };
2293
+ }
2294
+ });
2295
+ const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-53fce087"]]);
2296
+ const _hoisted_1$5 = { class: "lf-empty" };
2297
+ const _hoisted_2$4 = { class: "lf-empty__title" };
2298
+ const _hoisted_3$2 = {
2299
+ key: 1,
2300
+ class: "lf-empty__desc"
2301
+ };
2302
+ const _hoisted_4$1 = {
2303
+ key: 2,
2304
+ class: "lf-empty__action"
2305
+ };
2306
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2307
+ __name: "LfEmptyState",
2308
+ props: {
2309
+ title: { default: "표시할 내용이 없습니다." },
2310
+ description: {},
2311
+ icon: {},
2312
+ iconPath: {}
2313
+ },
2314
+ setup(__props) {
2315
+ return (_ctx, _cache) => {
2316
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
2317
+ __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
2318
+ key: 0,
2319
+ name: __props.icon,
2320
+ path: __props.iconPath,
2321
+ size: "2.5rem",
2322
+ class: "lf-empty__icon"
2323
+ }, null, 8, ["name", "path"])) : createCommentVNode("", true),
2324
+ createElementVNode("p", _hoisted_2$4, [
2325
+ renderSlot(_ctx.$slots, "title", {}, () => [
2326
+ createTextVNode(toDisplayString(__props.title), 1)
2327
+ ], true)
2328
+ ]),
2329
+ __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$2, [
2330
+ renderSlot(_ctx.$slots, "description", {}, () => [
2331
+ createTextVNode(toDisplayString(__props.description), 1)
2332
+ ], true)
2333
+ ])) : createCommentVNode("", true),
2334
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
2335
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
2336
+ ])) : createCommentVNode("", true)
2337
+ ]);
2338
+ };
2339
+ }
2340
+ });
2341
+ const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-02fb3f51"]]);
2342
+ const _hoisted_1$4 = {
2343
+ key: 0,
2344
+ class: "lf-skeleton-group",
2345
+ "aria-busy": true,
2346
+ "aria-live": "polite"
2347
+ };
2348
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2349
+ __name: "LfSkeleton",
2350
+ props: {
2351
+ variant: { default: "text" },
2352
+ width: {},
2353
+ height: {},
2354
+ lines: { default: 1 }
2355
+ },
2356
+ setup(__props) {
2357
+ const props = __props;
2358
+ function lineStyle(n) {
2359
+ const last = n === props.lines;
2360
+ return { width: last ? "60%" : props.width ?? "100%", height: props.height };
2361
+ }
2362
+ return (_ctx, _cache) => {
2363
+ return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
2364
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
2365
+ return openBlock(), createElementBlock("span", {
2366
+ key: n,
2367
+ class: normalizeClass(["lf-skeleton", `lf-skeleton--${__props.variant}`]),
2368
+ style: normalizeStyle(lineStyle(n))
2369
+ }, null, 6);
2370
+ }), 128))
2371
+ ])) : (openBlock(), createElementBlock("span", {
2372
+ key: 1,
2373
+ class: normalizeClass(["lf-skeleton", `lf-skeleton--${__props.variant}`]),
2374
+ style: normalizeStyle({ width: __props.width, height: __props.height }),
2375
+ "aria-busy": true
2376
+ }, null, 6));
2377
+ };
2378
+ }
2379
+ });
2380
+ const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a01556ce"]]);
2381
+ const _hoisted_1$3 = { class: "lf-stat__head" };
2382
+ const _hoisted_2$3 = { class: "lf-stat__label" };
2383
+ const _hoisted_3$1 = {
2384
+ key: 0,
2385
+ class: "lf-stat__icon"
2386
+ };
2387
+ const _hoisted_4 = { class: "lf-stat__value-row" };
2388
+ const _hoisted_5 = { class: "lf-stat__value" };
2389
+ const _hoisted_6 = {
2390
+ key: 0,
2391
+ class: "lf-stat__hint"
2392
+ };
2393
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2394
+ __name: "LfStatCard",
2395
+ props: {
2396
+ label: {},
2397
+ value: {},
2398
+ icon: {},
2399
+ iconPath: {},
2400
+ delta: {},
2401
+ deltaUnit: { default: "%" },
2402
+ invert: { type: Boolean },
2403
+ hint: {},
2404
+ glass: { type: Boolean, default: true }
2405
+ },
2406
+ setup(__props) {
2407
+ const props = __props;
2408
+ const deltaClass = computed(() => {
2409
+ if (props.delta == null || props.delta === 0) return "lf-stat__delta--flat";
2410
+ const good = props.invert ? props.delta < 0 : props.delta > 0;
2411
+ return good ? "lf-stat__delta--up" : "lf-stat__delta--down";
2412
+ });
2413
+ return (_ctx, _cache) => {
2414
+ return openBlock(), createElementBlock("div", {
2415
+ class: normalizeClass(["lf-stat", { "lf-stat--glass": __props.glass }])
2416
+ }, [
2417
+ createElementVNode("div", _hoisted_1$3, [
2418
+ createElementVNode("span", _hoisted_2$3, toDisplayString(__props.label), 1),
2419
+ __props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_3$1, [
2420
+ createVNode(LfIcon, {
2421
+ name: __props.icon,
2422
+ path: __props.iconPath,
2423
+ size: "1.125rem"
2424
+ }, null, 8, ["name", "path"])
2425
+ ])) : createCommentVNode("", true)
2426
+ ]),
2427
+ createElementVNode("div", _hoisted_4, [
2428
+ createElementVNode("strong", _hoisted_5, [
2429
+ renderSlot(_ctx.$slots, "default", {}, () => [
2430
+ createTextVNode(toDisplayString(__props.value), 1)
2431
+ ], true)
2432
+ ]),
2433
+ __props.delta != null ? (openBlock(), createElementBlock("span", {
2434
+ key: 0,
2435
+ class: normalizeClass(["lf-stat__delta", deltaClass.value])
2436
+ }, [
2437
+ createVNode(LfIcon, {
2438
+ name: __props.delta >= 0 ? "arrow_upward" : "arrow_downward",
2439
+ size: "0.875rem"
2440
+ }, null, 8, ["name"]),
2441
+ createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
2442
+ ], 2)) : createCommentVNode("", true)
2443
+ ]),
2444
+ __props.hint ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
2445
+ ], 2);
2446
+ };
2447
+ }
2448
+ });
2449
+ const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-5cd1dfa8"]]);
2450
+ const _hoisted_1$2 = ["aria-describedby"];
2451
+ const _hoisted_2$2 = ["id"];
2452
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2453
+ __name: "LfTooltip",
2454
+ props: {
2455
+ text: {},
2456
+ placement: { default: "top" }
2457
+ },
2458
+ setup(__props) {
2459
+ const bubbleId = useId();
2460
+ return (_ctx, _cache) => {
2461
+ return openBlock(), createElementBlock("span", {
2462
+ class: normalizeClass(["lf-tooltip", `lf-tooltip--${__props.placement}`])
2463
+ }, [
2464
+ createElementVNode("span", {
2465
+ class: "lf-tooltip__trigger",
2466
+ "aria-describedby": unref(bubbleId)
2467
+ }, [
2468
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
2469
+ ], 8, _hoisted_1$2),
2470
+ createElementVNode("span", {
2471
+ id: unref(bubbleId),
2472
+ class: "lf-tooltip__bubble",
2473
+ role: "tooltip"
2474
+ }, [
2475
+ renderSlot(_ctx.$slots, "content", {}, () => [
2476
+ createTextVNode(toDisplayString(__props.text), 1)
2477
+ ], true)
2478
+ ], 8, _hoisted_2$2)
2479
+ ], 2);
2480
+ };
2481
+ }
2482
+ });
2483
+ const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-bfa77821"]]);
2484
+ const _hoisted_1$1 = ["disabled", "onClick"];
2485
+ const _hoisted_2$1 = { class: "lf-menu__item-text" };
2486
+ const _hoisted_3 = {
2487
+ key: 0,
2488
+ class: "lf-menu__item-desc"
2489
+ };
2490
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2491
+ __name: "LfMenu",
2492
+ props: {
2493
+ items: { default: () => [] },
2494
+ align: { default: "end" },
2495
+ triggerLabel: { default: "메뉴 열기" }
2496
+ },
2497
+ emits: ["select"],
2498
+ setup(__props, { expose: __expose, emit: __emit }) {
2499
+ const props = __props;
2500
+ const emit = __emit;
2501
+ const open = ref(false);
2502
+ const root = useTemplateRef("root");
2503
+ const normalized = computed(
2504
+ () => props.items.map((o) => typeof o === "string" ? { value: o, label: o } : o)
2505
+ );
2506
+ function toggle() {
2507
+ open.value = !open.value;
2508
+ }
2509
+ function iconOf(item) {
2510
+ if (!item.icon) return {};
2511
+ return item.icon in LF_ICONS ? { name: item.icon } : { path: item.icon };
2512
+ }
2513
+ function select(item) {
2514
+ if (item.disabled) return;
2515
+ open.value = false;
2516
+ emit("select", item);
2517
+ }
2518
+ function onPointerDown(e) {
2519
+ var _a;
2520
+ if (!((_a = root.value) == null ? void 0 : _a.contains(e.target))) open.value = false;
2521
+ }
2522
+ function onKeydown(e) {
2523
+ if (e.key === "Escape") open.value = false;
2524
+ }
2525
+ watch(open, (isOpen) => {
2526
+ if (isOpen) {
2527
+ document.addEventListener("pointerdown", onPointerDown);
2528
+ document.addEventListener("keydown", onKeydown);
2529
+ } else {
2530
+ document.removeEventListener("pointerdown", onPointerDown);
2531
+ document.removeEventListener("keydown", onKeydown);
2532
+ }
2533
+ });
2534
+ onBeforeUnmount(() => {
2535
+ document.removeEventListener("pointerdown", onPointerDown);
2536
+ document.removeEventListener("keydown", onKeydown);
2537
+ });
2538
+ __expose({ open, toggle });
2539
+ return (_ctx, _cache) => {
2540
+ return openBlock(), createElementBlock("div", {
2541
+ ref_key: "root",
2542
+ ref: root,
2543
+ class: "lf-menu"
2544
+ }, [
2545
+ renderSlot(_ctx.$slots, "trigger", {
2546
+ open: open.value,
2547
+ toggle
2548
+ }, () => [
2549
+ createVNode(LfIconButton, {
2550
+ icon: "more_vert",
2551
+ label: __props.triggerLabel,
2552
+ "aria-expanded": open.value,
2553
+ onClick: toggle
2554
+ }, null, 8, ["label", "aria-expanded"])
2555
+ ], true),
2556
+ createVNode(Transition, { name: "lf-menu-fade" }, {
2557
+ default: withCtx(() => [
2558
+ open.value ? (openBlock(), createElementBlock("div", {
2559
+ key: 0,
2560
+ class: normalizeClass(["lf-menu__list", `lf-menu__list--${__props.align}`]),
2561
+ role: "menu"
2562
+ }, [
2563
+ renderSlot(_ctx.$slots, "items", {}, () => [
2564
+ (openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (item) => {
2565
+ return openBlock(), createElementBlock("button", {
2566
+ key: String(item.value),
2567
+ type: "button",
2568
+ class: "lf-menu__item",
2569
+ role: "menuitem",
2570
+ disabled: item.disabled,
2571
+ onClick: ($event) => select(item)
2572
+ }, [
2573
+ item.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
2574
+ key: 0,
2575
+ ref_for: true
2576
+ }, iconOf(item), {
2577
+ size: "1.125rem",
2578
+ class: "lf-menu__item-icon"
2579
+ }), null, 16)) : createCommentVNode("", true),
2580
+ createElementVNode("span", _hoisted_2$1, [
2581
+ createElementVNode("span", null, toDisplayString(item.label), 1),
2582
+ item.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(item.description), 1)) : createCommentVNode("", true)
2583
+ ])
2584
+ ], 8, _hoisted_1$1);
2585
+ }), 128))
2586
+ ], true)
2587
+ ], 2)) : createCommentVNode("", true)
2588
+ ]),
2589
+ _: 3
2590
+ })
2591
+ ], 512);
2592
+ };
2593
+ }
2594
+ });
2595
+ const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-500f54dd"]]);
2596
+ const _hoisted_1 = {
2597
+ key: 0,
2598
+ class: "lf-divider lf-divider--labeled",
2599
+ role: "separator"
2600
+ };
2601
+ const _hoisted_2 = { class: "lf-divider__label" };
2602
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2603
+ __name: "LfDivider",
2604
+ props: {
2605
+ label: {},
2606
+ vertical: { type: Boolean }
2607
+ },
2608
+ setup(__props) {
2609
+ return (_ctx, _cache) => {
2610
+ return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1, [
2611
+ createElementVNode("span", _hoisted_2, [
2612
+ renderSlot(_ctx.$slots, "default", {}, () => [
2613
+ createTextVNode(toDisplayString(__props.label), 1)
2614
+ ], true)
2615
+ ])
2616
+ ])) : (openBlock(), createElementBlock("hr", {
2617
+ key: 1,
2618
+ class: normalizeClass(["lf-divider", { "lf-divider--vertical": __props.vertical }])
2619
+ }, null, 2));
2620
+ };
2621
+ }
2622
+ });
2623
+ const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c15d2259"]]);
914
2624
  function useToast() {
915
2625
  const store = useToastStore();
916
2626
  return {
@@ -932,7 +2642,33 @@ export {
932
2642
  AppToast,
933
2643
  DARK_THEME,
934
2644
  DEFAULT_THEME,
2645
+ LF_ICONS,
935
2646
  LIGHT_THEME,
2647
+ LfAlert,
2648
+ LfAvatar,
2649
+ LfBadge,
2650
+ LfButton,
2651
+ LfCard,
2652
+ LfCheckbox,
2653
+ LfDivider,
2654
+ LfEmptyState,
2655
+ LfField,
2656
+ LfIcon,
2657
+ LfIconButton,
2658
+ LfMenu,
2659
+ LfModal,
2660
+ LfPageHeader,
2661
+ LfPagination,
2662
+ LfRadioGroup,
2663
+ LfSelect,
2664
+ LfSkeleton,
2665
+ LfSpinner,
2666
+ LfStatCard,
2667
+ LfSwitch,
2668
+ LfTable,
2669
+ LfTextField,
2670
+ LfTextarea,
2671
+ LfTooltip,
936
2672
  applySemanticPalette,
937
2673
  applyTheme,
938
2674
  colorToRgb,