@krds.ui/vue 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, computed as y, h as v, ref as K, onMounted as le, onBeforeUnmount as Ke, createElementBlock as w, openBlock as S, createElementVNode as r, normalizeClass as I, withDirectives as Q, unref as P, toDisplayString as L, Fragment as F, renderList as N, vShow as te, createBlock as oe, withCtx as ie, createTextVNode as A, watch as ue, provide as De, inject as Ve, createCommentVNode as Y, onUnmounted as X, resolveDirective as ze, resolveDynamicComponent as ye, renderSlot as J, normalizeStyle as ae, nextTick as Le, withModifiers as re } from "vue";
2
- const Se = B({
1
+ import { defineComponent as B, computed as g, h as c, ref as K, onMounted as le, onBeforeUnmount as Se, createElementBlock as w, openBlock as k, createElementVNode as d, normalizeClass as I, withDirectives as Q, unref as P, toDisplayString as E, Fragment as F, renderList as N, vShow as te, createBlock as ie, withCtx as re, createTextVNode as A, watch as ae, provide as Ve, inject as ze, createCommentVNode as Y, onUnmounted as X, resolveDirective as Ee, resolveDynamicComponent as ye, renderSlot as J, normalizeStyle as ne, nextTick as we, withModifiers as de, getCurrentInstance as Ie, Teleport as Le } from "vue";
2
+ const Ce = B({
3
3
  name: "KrdsButton",
4
4
  props: {
5
5
  type: {
@@ -26,6 +26,10 @@ const Se = B({
26
26
  type: Boolean,
27
27
  default: !1
28
28
  },
29
+ text: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
29
33
  disabled: {
30
34
  type: Boolean,
31
35
  default: !1
@@ -36,37 +40,37 @@ const Se = B({
36
40
  }
37
41
  },
38
42
  emits: ["click"],
39
- setup(e, { emit: i, slots: n }) {
40
- const a = y(() => {
41
- const s = ["krds-btn"];
42
- return e.icon && s.push("icon"), e.border && s.push("border"), e.pure && s.push("pure"), e.variant && !e.icon && s.push(e.variant), e.size && s.push(e.size), e.class && s.push(e.class), s;
43
- }), t = (s) => {
44
- e.disabled || i("click", s);
43
+ setup(e, { emit: o, slots: s }) {
44
+ const n = g(() => {
45
+ const a = ["krds-btn"];
46
+ return e.icon && a.push("icon"), e.border && a.push("border"), e.pure && a.push("pure"), e.text && a.push("text"), e.variant && !e.icon && a.push(e.variant), e.size && a.push(e.size), e.class && a.push(e.class), a;
47
+ }), t = (a) => {
48
+ e.disabled || o("click", a);
45
49
  };
46
- return () => v(
50
+ return () => c(
47
51
  "button",
48
52
  {
49
53
  type: e.type,
50
- class: a.value,
54
+ class: n.value,
51
55
  disabled: e.disabled,
52
56
  onClick: t
53
57
  },
54
- n.default?.()
58
+ s.default?.()
55
59
  );
56
60
  }
57
- }), Ie = B({
61
+ }), Me = B({
58
62
  name: "KrdsButtonGroup",
59
63
  props: {},
60
- setup(e, { slots: i }) {
61
- return () => v(
64
+ setup(e, { slots: o }) {
65
+ return () => c(
62
66
  "div",
63
67
  {
64
68
  class: "btn-group"
65
69
  },
66
- i.default?.()
70
+ o.default?.()
67
71
  );
68
72
  }
69
- }), Ee = B({
73
+ }), Re = B({
70
74
  name: "KrdsIcon",
71
75
  props: {
72
76
  name: {
@@ -79,11 +83,11 @@ const Se = B({
79
83
  }
80
84
  },
81
85
  setup(e) {
82
- return () => v("i", {
86
+ return () => c("i", {
83
87
  class: ["svg-icon", e.name, e.class].filter(Boolean).join(" ")
84
88
  });
85
89
  }
86
- }), Me = B({
90
+ }), Te = B({
87
91
  name: "KrdsLink",
88
92
  props: {
89
93
  href: {
@@ -120,29 +124,29 @@ const Se = B({
120
124
  }
121
125
  },
122
126
  emits: ["click"],
123
- setup(e, { emit: i, slots: n }) {
124
- const a = y(() => {
125
- const o = ["krds-btn"];
126
- return e.size && o.push(e.size), e.link && o.push("link"), e.basic && o.push("basic"), e.pure && o.push("pure"), e.class && o.push(e.class), o;
127
- }), t = y(() => {
128
- const o = {
127
+ setup(e, { emit: o, slots: s }) {
128
+ const n = g(() => {
129
+ const r = ["krds-btn"];
130
+ return e.size && r.push(e.size), e.link && r.push("link"), e.basic && r.push("basic"), e.pure && r.push("pure"), e.class && r.push(e.class), r;
131
+ }), t = g(() => {
132
+ const r = {
129
133
  href: e.href,
130
- class: a.value
134
+ class: n.value
131
135
  };
132
- return e.target && (o.target = e.target), e.title && (o.title = e.title), e.target === "_blank" && (o.rel = "noopener noreferrer"), o;
133
- }), s = (o) => {
134
- i("click", o);
136
+ return e.target && (r.target = e.target), e.title && (r.title = e.title), e.target === "_blank" && (r.rel = "noopener noreferrer"), r;
137
+ }), a = (r) => {
138
+ o("click", r);
135
139
  };
136
- return () => v(
140
+ return () => c(
137
141
  "a",
138
142
  {
139
143
  ...t.value,
140
- onClick: s
144
+ onClick: a
141
145
  },
142
- n.default?.()
146
+ s.default?.()
143
147
  );
144
148
  }
145
- }), we = B({
149
+ }), xe = B({
146
150
  name: "KrdsSpinner",
147
151
  props: {
148
152
  label: {
@@ -151,10 +155,10 @@ const Se = B({
151
155
  }
152
156
  },
153
157
  render() {
154
- const e = [v("span", { class: "sr-only" }, "로딩 중")];
155
- return this.label && e.push(v("span", this.label)), v("div", { class: "krds-spinner", role: "status" }, e);
158
+ const e = [c("span", { class: "sr-only" }, "로딩 중")];
159
+ return this.label && e.push(c("span", this.label)), c("div", { class: "krds-spinner", role: "status" }, e);
156
160
  }
157
- }), Re = B({
161
+ }), Pe = B({
158
162
  name: "KrdsInput",
159
163
  props: {
160
164
  modelValue: {
@@ -243,27 +247,27 @@ const Se = B({
243
247
  }
244
248
  },
245
249
  emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
246
- setup(e, { emit: i, slots: n }) {
247
- const a = y(() => {
248
- const k = ["krds-input"];
249
- return e.size && k.push(e.size), e.class && k.push(e.class), k;
250
- }), t = (k) => {
251
- const D = k.target, p = e.type === "number" ? Number(D.value) : D.value;
252
- i("update:modelValue", p), i("input", k);
253
- }, s = (k) => {
254
- i("change", k);
255
- }, o = (k) => {
256
- i("focus", k);
257
- }, c = (k) => {
258
- i("blur", k);
259
- }, d = (k) => {
260
- i("keydown", k);
261
- }, m = (k) => {
262
- i("keyup", k);
263
- }, g = y(() => {
264
- const k = {
250
+ setup(e, { emit: o, slots: s }) {
251
+ const n = g(() => {
252
+ const b = ["krds-input"];
253
+ return e.size && b.push(e.size), e.class && b.push(e.class), b;
254
+ }), t = (b) => {
255
+ const D = b.target, m = e.type === "number" ? Number(D.value) : D.value;
256
+ o("update:modelValue", m), o("input", b);
257
+ }, a = (b) => {
258
+ o("change", b);
259
+ }, r = (b) => {
260
+ o("focus", b);
261
+ }, v = (b) => {
262
+ o("blur", b);
263
+ }, p = (b) => {
264
+ o("keydown", b);
265
+ }, h = (b) => {
266
+ o("keyup", b);
267
+ }, y = g(() => {
268
+ const b = {
265
269
  type: e.type,
266
- class: a.value,
270
+ class: n.value,
267
271
  value: e.modelValue,
268
272
  placeholder: e.placeholder,
269
273
  name: e.name,
@@ -274,23 +278,23 @@ const Se = B({
274
278
  autocomplete: e.autocomplete,
275
279
  autofocus: e.autofocus,
276
280
  onInput: t,
277
- onChange: s,
278
- onFocus: o,
279
- onBlur: c,
280
- onKeydown: d,
281
- onKeyup: m
281
+ onChange: a,
282
+ onFocus: r,
283
+ onBlur: v,
284
+ onKeydown: p,
285
+ onKeyup: h
282
286
  };
283
- return e.maxlength !== void 0 && (k.maxlength = e.maxlength), e.minlength !== void 0 && (k.minlength = e.minlength), e.type === "number" && (e.max !== void 0 && (k.max = e.max), e.min !== void 0 && (k.min = e.min), e.step !== void 0 && (k.step = e.step)), k;
284
- }), _ = y(() => {
285
- const k = ["form-conts"];
286
- return e.state !== "default" && k.push(`is-${e.state}`), e.icon && k.push("btn-ico-wrap"), k;
287
+ return e.maxlength !== void 0 && (b.maxlength = e.maxlength), e.minlength !== void 0 && (b.minlength = e.minlength), e.type === "number" && (e.max !== void 0 && (b.max = e.max), e.min !== void 0 && (b.min = e.min), e.step !== void 0 && (b.step = e.step)), b;
288
+ }), S = g(() => {
289
+ const b = ["form-conts"];
290
+ return e.state !== "default" && b.push(`is-${e.state}`), e.icon && b.push("btn-ico-wrap"), b;
287
291
  });
288
292
  return () => {
289
- const k = [v("input", g.value)];
290
- return e.loading ? v("div", { class: _.value }, [v("div", { class: "form-spinner" }, [...k, v(we)])]) : (n.default && k.push(...n.default()), v("div", { class: _.value }, k));
293
+ const b = [c("input", y.value)];
294
+ return e.loading ? c("div", { class: S.value }, [c("div", { class: "form-spinner" }, [...b, c(xe)])]) : (s.default && b.push(...s.default()), c("div", { class: S.value }, b));
291
295
  };
292
296
  }
293
- }), Te = B({
297
+ }), Ae = B({
294
298
  name: "KrdsFormLabel",
295
299
  props: {
296
300
  for: {
@@ -311,25 +315,25 @@ const Se = B({
311
315
  }
312
316
  },
313
317
  emits: ["click"],
314
- setup(e, { emit: i, slots: n }) {
315
- const a = (t) => {
316
- i("click", t);
318
+ setup(e, { emit: o, slots: s }) {
319
+ const n = (t) => {
320
+ o("click", t);
317
321
  };
318
- return () => v("div", { class: "form-tit" }, [
319
- v(
322
+ return () => c("div", { class: "form-tit" }, [
323
+ c(
320
324
  "label",
321
325
  {
322
326
  for: e.for,
323
327
  id: e.id,
324
328
  class: e.class,
325
329
  style: e.style,
326
- onClick: a
330
+ onClick: n
327
331
  },
328
- n.default?.()
332
+ s.default?.()
329
333
  )
330
334
  ]);
331
335
  }
332
- }), Pe = B({
336
+ }), Fe = B({
333
337
  name: "KrdsFormHint",
334
338
  props: {
335
339
  type: {
@@ -350,39 +354,39 @@ const Se = B({
350
354
  }
351
355
  },
352
356
  emits: ["click"],
353
- setup(e, { emit: i, slots: n }) {
354
- const a = (s) => {
355
- i("click", s);
357
+ setup(e, { emit: o, slots: s }) {
358
+ const n = (a) => {
359
+ o("click", a);
356
360
  }, t = () => {
357
- let s;
361
+ let a;
358
362
  switch (e.type) {
359
363
  case "error":
360
- s = "form-hint-invalid";
364
+ a = "form-hint-invalid";
361
365
  break;
362
366
  case "success":
363
- s = "form-hint-success";
367
+ a = "form-hint-success";
364
368
  break;
365
369
  case "information":
366
- s = "form-hint-information";
370
+ a = "form-hint-information";
367
371
  break;
368
372
  default:
369
- s = "form-hint";
373
+ a = "form-hint";
370
374
  break;
371
375
  }
372
- return e.class ? `${s} ${e.class}` : s;
376
+ return e.class ? `${a} ${e.class}` : a;
373
377
  };
374
- return () => v(
378
+ return () => c(
375
379
  "p",
376
380
  {
377
381
  id: e.id,
378
382
  class: t(),
379
383
  style: e.style,
380
- onClick: a
384
+ onClick: n
381
385
  },
382
- n.default?.()
386
+ s.default?.()
383
387
  );
384
388
  }
385
- }), Ae = B({
389
+ }), Oe = B({
386
390
  name: "KrdsFormGroup",
387
391
  props: {
388
392
  class: {
@@ -398,94 +402,94 @@ const Se = B({
398
402
  default: void 0
399
403
  }
400
404
  },
401
- setup(e, { slots: i }) {
402
- const n = y(() => {
403
- const a = ["form-group"];
404
- return e.class && a.push(e.class), a;
405
+ setup(e, { slots: o }) {
406
+ const s = g(() => {
407
+ const n = ["form-group"];
408
+ return e.class && n.push(e.class), n;
405
409
  });
406
- return () => v(
410
+ return () => c(
407
411
  "div",
408
412
  {
409
413
  id: e.id,
410
- class: n.value,
414
+ class: s.value,
411
415
  style: e.style
412
416
  },
413
- i.default?.()
417
+ o.default?.()
414
418
  );
415
419
  }
416
420
  });
417
- function Fe(e, i) {
418
- const n = /* @__PURE__ */ new Date(), a = K(e || n.getFullYear()), t = K(i || n.getMonth() + 1), s = K(null), o = K(null), c = K(null), d = y(() => {
419
- const h = n.getFullYear(), u = [];
420
- for (let f = h - 10; f <= h + 10; f++)
421
- u.push(f);
422
- return u;
423
- }), m = y(() => Array.from({ length: 12 }, (h, u) => u + 1)), g = () => {
424
- s.value = null, o.value = null;
425
- }, _ = () => {
426
- t.value === 1 ? (t.value = 12, a.value -= 1) : t.value -= 1;
427
- }, k = () => {
428
- t.value === 12 ? (t.value = 1, a.value += 1) : t.value += 1;
429
- }, D = (h, u = !1) => {
430
- if (u)
431
- s.value = h, o.value = h;
432
- else if (!s.value || s.value && o.value)
433
- s.value = h, o.value = null;
421
+ function qe(e, o) {
422
+ const s = /* @__PURE__ */ new Date(), n = K(e || s.getFullYear()), t = K(o || s.getMonth() + 1), a = K(null), r = K(null), v = K(null), p = g(() => {
423
+ const u = s.getFullYear(), i = [];
424
+ for (let f = u - 10; f <= u + 10; f++)
425
+ i.push(f);
426
+ return i;
427
+ }), h = g(() => Array.from({ length: 12 }, (u, i) => i + 1)), y = () => {
428
+ a.value = null, r.value = null;
429
+ }, S = () => {
430
+ t.value === 1 ? (t.value = 12, n.value -= 1) : t.value -= 1;
431
+ }, b = () => {
432
+ t.value === 12 ? (t.value = 1, n.value += 1) : t.value += 1;
433
+ }, D = (u, i = !1) => {
434
+ if (i)
435
+ a.value = u, r.value = u;
436
+ else if (!a.value || a.value && r.value)
437
+ a.value = u, r.value = null;
434
438
  else {
435
- const f = new Date(s.value.replace(/\./g, "-"));
436
- new Date(h.replace(/\./g, "-")) < f ? (s.value = h, o.value = null) : o.value = h;
439
+ const f = new Date(a.value.replace(/\./g, "-"));
440
+ new Date(u.replace(/\./g, "-")) < f ? (a.value = u, r.value = null) : r.value = u;
437
441
  }
438
442
  };
439
443
  return {
440
444
  // State
441
- currentYear: a,
445
+ currentYear: n,
442
446
  currentMonth: t,
443
- selectedStartDate: s,
444
- selectedEndDate: o,
445
- activeDateSelector: c,
447
+ selectedStartDate: a,
448
+ selectedEndDate: r,
449
+ activeDateSelector: v,
446
450
  // Computed
447
- yearOptions: d,
448
- monthOptions: m,
451
+ yearOptions: p,
452
+ monthOptions: h,
449
453
  // Methods
450
- clearDateSelection: g,
451
- prevMonth: _,
452
- nextMonth: k,
454
+ clearDateSelection: y,
455
+ prevMonth: S,
456
+ nextMonth: b,
453
457
  handleDateSelection: D,
454
458
  selectToday: () => {
455
- const h = `${n.getFullYear()}.${String(n.getMonth() + 1).padStart(2, "0")}.${String(n.getDate()).padStart(2, "0")}`;
456
- D(h, !0);
459
+ const u = `${s.getFullYear()}.${String(s.getMonth() + 1).padStart(2, "0")}.${String(s.getDate()).padStart(2, "0")}`;
460
+ D(u, !0);
457
461
  },
458
- isDateInSelectedRange: (h) => {
459
- if (!s.value || !o.value)
462
+ isDateInSelectedRange: (u) => {
463
+ if (!a.value || !r.value)
460
464
  return { isInRange: !1, isStart: !1, isEnd: !1 };
461
- const u = new Date(h.replace(/\./g, "-")), f = new Date(s.value.replace(/\./g, "-")), x = new Date(o.value.replace(/\./g, "-")), R = h === s.value, E = h === o.value;
462
- return { isInRange: u >= f && u <= x, isStart: R, isEnd: E };
465
+ const i = new Date(u.replace(/\./g, "-")), f = new Date(a.value.replace(/\./g, "-")), x = new Date(r.value.replace(/\./g, "-")), R = u === a.value, L = u === r.value;
466
+ return { isInRange: i >= f && i <= x, isStart: R, isEnd: L };
463
467
  }
464
468
  };
465
469
  }
466
- function Oe(e, i, n = {}) {
467
- let a = null;
468
- const t = typeof n == "string" ? { ignore: n } : n, { ignore: s, event: o = "click" } = t, c = () => {
469
- a = (m) => {
470
- const g = m.target;
471
- e.value?.contains(g) || s && g.closest(s) || i();
472
- }, document.addEventListener(o, a);
473
- }, d = () => {
474
- if (a) {
475
- const m = typeof n == "string" ? "click" : n.event || "click";
476
- document.removeEventListener(m, a), a = null;
470
+ function Ne(e, o, s = {}) {
471
+ let n = null;
472
+ const t = typeof s == "string" ? { ignore: s } : s, { ignore: a, event: r = "click" } = t, v = () => {
473
+ n = (h) => {
474
+ const y = h.target;
475
+ e.value?.contains(y) || a && y.closest(a) || o();
476
+ }, document.addEventListener(r, n);
477
+ }, p = () => {
478
+ if (n) {
479
+ const h = typeof s == "string" ? "click" : s.event || "click";
480
+ document.removeEventListener(h, n), n = null;
477
481
  }
478
482
  };
479
483
  return le(() => {
480
- c();
481
- }), Ke(() => {
482
- d();
484
+ v();
485
+ }), Se(() => {
486
+ p();
483
487
  }), {
484
- setupGlobalListeners: c,
485
- removeGlobalListeners: d
488
+ setupGlobalListeners: v,
489
+ removeGlobalListeners: p
486
490
  };
487
491
  }
488
- const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id", "name", "placeholder", "value", "readonly", "disabled", "required", "autofocus"], je = ["disabled", "aria-expanded"], We = { class: "calendar-head" }, Ye = { class: "calendar-switch-wrap" }, Ge = { class: "calendar-drop-down" }, Ue = ["aria-expanded"], Xe = { class: "calendar-select calendar-year-wrap" }, Je = { class: "sel year" }, Qe = ["onClick"], Ze = { class: "calendar-drop-down" }, et = ["aria-expanded"], tt = { class: "calendar-select calendar-mon-wrap" }, lt = { class: "sel month" }, at = ["onClick"], st = { class: "calendar-body" }, nt = { class: "calendar-table-wrap" }, ot = { class: "calendar-tbl" }, it = ["data-date"], rt = ["aria-pressed", "onClick"], ut = { class: "calendar-footer" }, dt = { class: "calendar-btn-wrap" }, ct = /* @__PURE__ */ B({
492
+ const He = { class: "form-conts" }, je = { class: "calendar-input" }, We = ["id", "name", "placeholder", "value", "readonly", "disabled", "required", "autofocus"], Ye = ["disabled", "aria-expanded"], Ge = { class: "calendar-head" }, Ue = { class: "calendar-switch-wrap" }, Xe = { class: "calendar-drop-down" }, Je = ["aria-expanded"], Qe = { class: "calendar-select calendar-year-wrap" }, Ze = { class: "sel year" }, et = ["onClick"], tt = { class: "calendar-drop-down" }, lt = ["aria-expanded"], at = { class: "calendar-select calendar-mon-wrap" }, nt = { class: "sel month" }, st = ["onClick"], ot = { class: "calendar-body" }, it = { class: "calendar-table-wrap" }, rt = { class: "calendar-tbl" }, dt = ["data-date"], ut = ["aria-pressed", "onClick"], ct = { class: "calendar-footer" }, ft = { class: "calendar-btn-wrap" }, vt = /* @__PURE__ */ B({
489
493
  __name: "KrdsDateInput",
490
494
  props: {
491
495
  modelValue: { default: void 0 },
@@ -505,66 +509,66 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
505
509
  id: { default: void 0 }
506
510
  },
507
511
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
508
- setup(e, { emit: i }) {
509
- const n = e, a = i, t = K(), s = K(), o = K(!1), c = K(null), {
510
- currentYear: d,
511
- currentMonth: m,
512
- selectedStartDate: g,
513
- selectedEndDate: _,
514
- yearOptions: k,
512
+ setup(e, { emit: o }) {
513
+ const s = e, n = o, t = K(), a = K(), r = K(!1), v = K(null), {
514
+ currentYear: p,
515
+ currentMonth: h,
516
+ selectedStartDate: y,
517
+ selectedEndDate: S,
518
+ yearOptions: b,
515
519
  monthOptions: D,
516
- prevMonth: p,
520
+ prevMonth: m,
517
521
  nextMonth: l,
518
- handleDateSelection: h,
519
- selectToday: u,
522
+ handleDateSelection: u,
523
+ selectToday: i,
520
524
  isDateInSelectedRange: f
521
- } = Fe(n.initialYear, n.initialMonth), x = () => {
522
- o.value && s.value?.focus(), o.value = !1, c.value = null;
525
+ } = qe(s.initialYear, s.initialMonth), x = () => {
526
+ r.value && a.value?.focus(), r.value = !1, v.value = null;
523
527
  };
524
- Oe(t, x, ".calendar-conts");
525
- const R = y(() => {
526
- const b = ["krds-input", "datepicker", "cal"];
527
- return n.size && b.push(n.size), n.class && b.push(n.class), b;
528
- }), E = y(() => ["form-conts", "calendar-conts"]), M = y(() => ({
528
+ Ne(t, x, ".calendar-conts");
529
+ const R = g(() => {
530
+ const C = ["krds-input", "datepicker", "cal"];
531
+ return s.size && C.push(s.size), s.class && C.push(s.class), C;
532
+ }), L = g(() => ["form-conts", "calendar-conts"]), M = g(() => ({
529
533
  "krds-calendar-area": !0,
530
- active: o.value
531
- })), z = y(() => {
532
- const b = d.value, C = m.value, $ = new Date(b, C - 1, 1), G = new Date($);
534
+ active: r.value
535
+ })), z = g(() => {
536
+ const C = p.value, _ = h.value, $ = new Date(C, _ - 1, 1), G = new Date($);
533
537
  G.setDate(G.getDate() - $.getDay());
534
538
  const W = [], T = new Date(G);
535
- for (let ne = 0; ne < 6; ne++) {
539
+ for (let oe = 0; oe < 6; oe++) {
536
540
  const pe = [];
537
- for (let he = 0; he < 7; he++) {
538
- const $e = `${T.getFullYear()}.${String(T.getMonth() + 1).padStart(2, "0")}.${String(T.getDate()).padStart(2, "0")}`, me = T.getDay();
541
+ for (let me = 0; me < 7; me++) {
542
+ const De = `${T.getFullYear()}.${String(T.getMonth() + 1).padStart(2, "0")}.${String(T.getDate()).padStart(2, "0")}`, he = T.getDay();
539
543
  pe.push({
540
544
  day: T.getDate(),
541
- dateString: $e,
542
- isCurrentMonth: T.getMonth() === C - 1,
545
+ dateString: De,
546
+ isCurrentMonth: T.getMonth() === _ - 1,
543
547
  isToday: T.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
544
- isPrevMonth: T.getMonth() < C - 1 || T.getMonth() === 11 && C === 1,
545
- isNextMonth: T.getMonth() > C - 1 || T.getMonth() === 0 && C === 12,
546
- isSunday: me === 0,
547
- isSaturday: me === 6
548
+ isPrevMonth: T.getMonth() < _ - 1 || T.getMonth() === 11 && _ === 1,
549
+ isNextMonth: T.getMonth() > _ - 1 || T.getMonth() === 0 && _ === 12,
550
+ isSunday: he === 0,
551
+ isSaturday: he === 6
548
552
  }), T.setDate(T.getDate() + 1);
549
553
  }
550
554
  W.push(pe);
551
555
  }
552
556
  return W;
553
- }), H = (b) => {
554
- const C = [];
555
- if (b.isPrevMonth && C.push("old"), b.isNextMonth && C.push("new"), b.isToday && C.push("today"), b.isSunday && C.push("day-off"), n.holidays?.includes(b.dateString) && C.push("day-off"), n.eventDates?.includes(b.dateString) && C.push("day-event"), b.isCurrentMonth) {
556
- const $ = f(b.dateString);
557
- $.isInRange && (C.push("period"), $.isStart && C.push("start"), $.isEnd && C.push("end"));
557
+ }), H = (C) => {
558
+ const _ = [];
559
+ if (C.isPrevMonth && _.push("old"), C.isNextMonth && _.push("new"), C.isToday && _.push("today"), C.isSunday && _.push("day-off"), s.holidays?.includes(C.dateString) && _.push("day-off"), s.eventDates?.includes(C.dateString) && _.push("day-event"), C.isCurrentMonth) {
560
+ const $ = f(C.dateString);
561
+ $.isInRange && (_.push("period"), $.isStart && _.push("start"), $.isEnd && _.push("end"));
558
562
  }
559
- return C;
560
- }, V = y(() => [
563
+ return _;
564
+ }, V = g(() => [
561
565
  {
562
566
  id: "get-today",
563
567
  label: "오늘",
564
568
  class: "text",
565
569
  variant: void 0,
566
570
  size: "small",
567
- handler: u
571
+ handler: i
568
572
  },
569
573
  {
570
574
  id: "cancel-btn",
@@ -582,187 +586,187 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
582
586
  size: "small",
583
587
  handler: U
584
588
  }
585
- ]), j = (b) => {
586
- c.value === b ? c.value = null : c.value = b;
587
- }, Z = (b) => {
588
- d.value = b, c.value = null;
589
- }, se = (b) => {
590
- m.value = b, c.value = null;
589
+ ]), j = (C) => {
590
+ v.value === C ? v.value = null : v.value = C;
591
+ }, Z = (C) => {
592
+ p.value = C, v.value = null;
593
+ }, se = (C) => {
594
+ h.value = C, v.value = null;
591
595
  }, U = () => {
592
- if (g.value) {
593
- if (_.value && g.value !== _.value) {
594
- const b = `${g.value} ~ ${_.value}`;
595
- a("update:modelValue", b);
596
+ if (y.value) {
597
+ if (S.value && y.value !== S.value) {
598
+ const C = `${y.value} ~ ${S.value}`;
599
+ n("update:modelValue", C);
596
600
  } else
597
- a("update:modelValue", g.value);
601
+ n("update:modelValue", y.value);
598
602
  x();
599
603
  }
600
604
  }, O = () => {
601
- o.value = !0, c.value = null, setTimeout(() => {
605
+ r.value = !0, v.value = null, setTimeout(() => {
602
606
  t.value?.querySelector(".calendar-wrap")?.focus();
603
607
  }, 50);
604
608
  }, q = () => {
605
- o.value ? x() : O();
606
- }, ve = (b) => {
607
- b.code === "Escape" && (c.value ? c.value = null : o.value && x());
608
- }, ee = (b) => {
609
- const C = b.target;
610
- a("update:modelValue", C.value), a("input", b);
611
- }, _e = (b) => {
612
- a("change", b);
613
- }, xe = (b) => {
614
- a("focus", b);
615
- }, Be = (b) => {
616
- a("blur", b);
609
+ r.value ? x() : O();
610
+ }, ve = (C) => {
611
+ C.code === "Escape" && (v.value ? v.value = null : r.value && x());
612
+ }, ee = (C) => {
613
+ const _ = C.target;
614
+ n("update:modelValue", _.value), n("input", C);
615
+ }, Be = (C) => {
616
+ n("change", C);
617
+ }, Ke = (C) => {
618
+ n("focus", C);
619
+ }, $e = (C) => {
620
+ n("blur", C);
617
621
  };
618
- return (b, C) => (S(), w("div", qe, [
619
- r("div", {
620
- class: I(E.value)
622
+ return (C, _) => (k(), w("div", He, [
623
+ d("div", {
624
+ class: I(L.value)
621
625
  }, [
622
- r("div", Ne, [
623
- r("input", {
624
- id: b.id,
625
- name: b.name,
626
+ d("div", je, [
627
+ d("input", {
628
+ id: e.id,
629
+ name: e.name,
626
630
  class: I(R.value),
627
- placeholder: b.placeholder,
628
- value: b.modelValue,
629
- readonly: b.readonly,
630
- disabled: b.disabled,
631
- required: b.required,
632
- autofocus: b.autofocus,
631
+ placeholder: e.placeholder,
632
+ value: e.modelValue,
633
+ readonly: e.readonly,
634
+ disabled: e.disabled,
635
+ required: e.required,
636
+ autofocus: e.autofocus,
633
637
  type: "text",
634
638
  onInput: ee,
635
- onChange: _e,
636
- onFocus: xe,
637
- onBlur: Be
638
- }, null, 42, He),
639
- r("button", {
639
+ onChange: Be,
640
+ onFocus: Ke,
641
+ onBlur: $e
642
+ }, null, 42, We),
643
+ d("button", {
640
644
  ref_key: "datePickerButtonRef",
641
- ref: s,
642
- class: I(`krds-btn ${b.size || "medium"} icon form-btn-datepicker`),
643
- disabled: b.disabled,
644
- "aria-expanded": o.value,
645
+ ref: a,
646
+ class: I(`krds-btn ${e.size || "medium"} icon form-btn-datepicker`),
647
+ disabled: e.disabled,
648
+ "aria-expanded": r.value,
645
649
  type: "button",
646
650
  onClick: q
647
- }, [...C[4] || (C[4] = [
648
- r("span", { class: "sr-only" }, "달력 열기", -1),
649
- r("i", { class: "svg-icon ico-calendar" }, null, -1)
650
- ])], 10, je)
651
+ }, [..._[4] || (_[4] = [
652
+ d("span", { class: "sr-only" }, "달력 열기", -1),
653
+ d("i", { class: "svg-icon ico-calendar" }, null, -1)
654
+ ])], 10, Ye)
651
655
  ]),
652
- r("div", {
656
+ d("div", {
653
657
  ref_key: "datePickerAreaRef",
654
658
  ref: t,
655
659
  class: I(M.value)
656
660
  }, [
657
- Q(r("div", {
661
+ Q(d("div", {
658
662
  class: "calendar-wrap bottom",
659
663
  "aria-label": "달력",
660
664
  tabindex: "0",
661
665
  onKeydown: ve
662
666
  }, [
663
- r("div", We, [
664
- r("button", {
667
+ d("div", Ge, [
668
+ d("button", {
665
669
  type: "button",
666
670
  class: "btn-cal-move prev",
667
- onClick: C[0] || (C[0] = //@ts-ignore
668
- (...$) => P(p) && P(p)(...$))
669
- }, [...C[5] || (C[5] = [
670
- r("span", { class: "sr-only" }, "이전 달", -1)
671
+ onClick: _[0] || (_[0] = //@ts-ignore
672
+ (...$) => P(m) && P(m)(...$))
673
+ }, [..._[5] || (_[5] = [
674
+ d("span", { class: "sr-only" }, "이전 달", -1)
671
675
  ])]),
672
- r("div", Ye, [
673
- r("div", Ge, [
674
- r("button", {
676
+ d("div", Ue, [
677
+ d("div", Xe, [
678
+ d("button", {
675
679
  type: "button",
676
680
  class: "btn-cal-switch year",
677
681
  "aria-label": "연도 선택",
678
- "aria-expanded": c.value === "year",
679
- onClick: C[1] || (C[1] = ($) => j("year"))
680
- }, L(P(d)) + "년 ", 9, Ue),
681
- Q(r("div", Xe, [
682
- r("ul", Je, [
683
- (S(!0), w(F, null, N(P(k), ($) => (S(), w("li", { key: $ }, [
684
- r("button", {
682
+ "aria-expanded": v.value === "year",
683
+ onClick: _[1] || (_[1] = ($) => j("year"))
684
+ }, E(P(p)) + "년 ", 9, Je),
685
+ Q(d("div", Qe, [
686
+ d("ul", Ze, [
687
+ (k(!0), w(F, null, N(P(b), ($) => (k(), w("li", { key: $ }, [
688
+ d("button", {
685
689
  type: "button",
686
- class: I({ active: $ === P(d) }),
690
+ class: I({ active: $ === P(p) }),
687
691
  onClick: (G) => Z($)
688
- }, L($) + "년", 11, Qe)
692
+ }, E($) + "년", 11, et)
689
693
  ]))), 128))
690
694
  ])
691
695
  ], 512), [
692
- [te, c.value === "year"]
696
+ [te, v.value === "year"]
693
697
  ])
694
698
  ]),
695
- r("div", Ze, [
696
- r("button", {
699
+ d("div", tt, [
700
+ d("button", {
697
701
  type: "button",
698
702
  class: "btn-cal-switch month",
699
703
  "aria-label": "월 선택",
700
- "aria-expanded": c.value === "month",
701
- onClick: C[2] || (C[2] = ($) => j("month"))
702
- }, L(P(m).toString().padStart(2, "0")) + "월 ", 9, et),
703
- Q(r("div", tt, [
704
- r("ul", lt, [
705
- (S(!0), w(F, null, N(P(D), ($) => (S(), w("li", { key: $ }, [
706
- r("button", {
704
+ "aria-expanded": v.value === "month",
705
+ onClick: _[2] || (_[2] = ($) => j("month"))
706
+ }, E(P(h).toString().padStart(2, "0")) + "월 ", 9, lt),
707
+ Q(d("div", at, [
708
+ d("ul", nt, [
709
+ (k(!0), w(F, null, N(P(D), ($) => (k(), w("li", { key: $ }, [
710
+ d("button", {
707
711
  type: "button",
708
- class: I({ active: $ === P(m) }),
712
+ class: I({ active: $ === P(h) }),
709
713
  onClick: (G) => se($)
710
- }, L($.toString().padStart(2, "0")) + "월 ", 11, at)
714
+ }, E($.toString().padStart(2, "0")) + "월 ", 11, st)
711
715
  ]))), 128))
712
716
  ])
713
717
  ], 512), [
714
- [te, c.value === "month"]
718
+ [te, v.value === "month"]
715
719
  ])
716
720
  ])
717
721
  ]),
718
- r("button", {
722
+ d("button", {
719
723
  type: "button",
720
724
  class: "btn-cal-move next",
721
- onClick: C[3] || (C[3] = //@ts-ignore
725
+ onClick: _[3] || (_[3] = //@ts-ignore
722
726
  (...$) => P(l) && P(l)(...$))
723
- }, [...C[6] || (C[6] = [
724
- r("span", { class: "sr-only" }, "다음 달", -1)
727
+ }, [..._[6] || (_[6] = [
728
+ d("span", { class: "sr-only" }, "다음 달", -1)
725
729
  ])])
726
730
  ]),
727
- r("div", st, [
728
- r("div", nt, [
729
- r("table", ot, [
730
- r("caption", null, L(P(d)) + "년 " + L(P(m).toString().padStart(2, "0")) + "월", 1),
731
- C[7] || (C[7] = r("thead", null, [
732
- r("tr", null, [
733
- r("th", null, "일"),
734
- r("th", null, "월"),
735
- r("th", null, "화"),
736
- r("th", null, "수"),
737
- r("th", null, "목"),
738
- r("th", null, "금"),
739
- r("th", null, "토")
731
+ d("div", ot, [
732
+ d("div", it, [
733
+ d("table", rt, [
734
+ d("caption", null, E(P(p)) + "년 " + E(P(h).toString().padStart(2, "0")) + "월", 1),
735
+ _[7] || (_[7] = d("thead", null, [
736
+ d("tr", null, [
737
+ d("th", null, "일"),
738
+ d("th", null, "월"),
739
+ d("th", null, "화"),
740
+ d("th", null, "수"),
741
+ d("th", null, "목"),
742
+ d("th", null, "금"),
743
+ d("th", null, "토")
740
744
  ])
741
745
  ], -1)),
742
- r("tbody", null, [
743
- (S(!0), w(F, null, N(z.value, ($, G) => (S(), w("tr", { key: G }, [
744
- (S(!0), w(F, null, N($, (W, T) => (S(), w("td", {
746
+ d("tbody", null, [
747
+ (k(!0), w(F, null, N(z.value, ($, G) => (k(), w("tr", { key: G }, [
748
+ (k(!0), w(F, null, N($, (W, T) => (k(), w("td", {
745
749
  key: T,
746
750
  class: I(H(W)),
747
751
  "data-date": W.dateString
748
752
  }, [
749
- r("button", {
753
+ d("button", {
750
754
  type: "button",
751
755
  class: "btn-set-date",
752
756
  "aria-pressed": P(f)(W.dateString).isInRange ? "true" : "false",
753
- onClick: (ne) => P(h)(W.dateString)
757
+ onClick: (oe) => P(u)(W.dateString)
754
758
  }, [
755
- r("span", null, L(W.day), 1)
756
- ], 8, rt)
757
- ], 10, it))), 128))
759
+ d("span", null, E(W.day), 1)
760
+ ], 8, ut)
761
+ ], 10, dt))), 128))
758
762
  ]))), 128))
759
763
  ])
760
764
  ])
761
765
  ])
762
766
  ]),
763
- r("div", ut, [
764
- r("div", dt, [
765
- (S(!0), w(F, null, N(V.value, ($) => (S(), oe(P(Se), {
767
+ d("div", ct, [
768
+ d("div", ft, [
769
+ (k(!0), w(F, null, N(V.value, ($) => (k(), ie(P(Ce), {
766
770
  id: $.id,
767
771
  key: $.id,
768
772
  class: I($.class),
@@ -770,21 +774,21 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
770
774
  size: $.size,
771
775
  onClick: $.handler
772
776
  }, {
773
- default: ie(() => [
774
- A(L($.label), 1)
777
+ default: re(() => [
778
+ A(E($.label), 1)
775
779
  ]),
776
780
  _: 2
777
781
  }, 1032, ["id", "class", "variant", "size", "onClick"]))), 128))
778
782
  ])
779
783
  ])
780
784
  ], 544), [
781
- [te, o.value]
785
+ [te, r.value]
782
786
  ])
783
787
  ], 2)
784
788
  ], 2)
785
789
  ]));
786
790
  }
787
- }), ft = B({
791
+ }), pt = B({
788
792
  name: "KrdsTextarea",
789
793
  props: {
790
794
  modelValue: {
@@ -858,37 +862,37 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
858
862
  }
859
863
  },
860
864
  emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
861
- setup(e, { emit: i }) {
862
- const n = K(0);
863
- ue(
865
+ setup(e, { emit: o }) {
866
+ const s = K(0);
867
+ ae(
864
868
  () => e.modelValue,
865
869
  (l) => {
866
- n.value = (l || "").length;
870
+ s.value = (l || "").length;
867
871
  },
868
872
  { immediate: !0 }
869
873
  );
870
- const a = y(() => {
874
+ const n = g(() => {
871
875
  const l = ["krds-input"];
872
876
  return e.size && l.push(e.size), e.class && l.push(e.class), l;
873
- }), t = y(() => {
877
+ }), t = g(() => {
874
878
  const l = {};
875
879
  return e.resize && (l.resize = e.resize), l;
876
- }), s = (l) => {
877
- const u = l.target.value;
878
- n.value = u.length, i("update:modelValue", u), i("input", l);
879
- }, o = (l) => {
880
- i("change", l);
881
- }, c = (l) => {
882
- i("focus", l);
883
- }, d = (l) => {
884
- i("blur", l);
885
- }, m = (l) => {
886
- i("keydown", l);
887
- }, g = (l) => {
888
- i("keyup", l);
889
- }, _ = y(() => {
880
+ }), a = (l) => {
881
+ const i = l.target.value;
882
+ s.value = i.length, o("update:modelValue", i), o("input", l);
883
+ }, r = (l) => {
884
+ o("change", l);
885
+ }, v = (l) => {
886
+ o("focus", l);
887
+ }, p = (l) => {
888
+ o("blur", l);
889
+ }, h = (l) => {
890
+ o("keydown", l);
891
+ }, y = (l) => {
892
+ o("keyup", l);
893
+ }, S = g(() => {
890
894
  const l = {
891
- class: a.value,
895
+ class: n.value,
892
896
  style: t.value,
893
897
  value: e.modelValue,
894
898
  placeholder: e.placeholder,
@@ -900,33 +904,33 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
900
904
  autofocus: e.autofocus,
901
905
  rows: e.rows,
902
906
  cols: e.cols,
903
- onInput: s,
904
- onChange: o,
905
- onFocus: c,
906
- onBlur: d,
907
- onKeydown: m,
908
- onKeyup: g
907
+ onInput: a,
908
+ onChange: r,
909
+ onFocus: v,
910
+ onBlur: p,
911
+ onKeydown: h,
912
+ onKeyup: y
909
913
  };
910
914
  return e.maxlength !== void 0 && (l.maxlength = e.maxlength), e.minlength !== void 0 && (l.minlength = e.minlength), l;
911
- }), k = y(() => ["form-conts"]), D = y(() => ["textarea-wrap"]), p = y(() => {
915
+ }), b = g(() => ["form-conts"]), D = g(() => ["textarea-wrap"]), m = g(() => {
912
916
  if (!e.showCount) return null;
913
- const l = n.value, h = e.maxlength;
917
+ const l = s.value, u = e.maxlength;
914
918
  return {
915
919
  current: l,
916
- max: h || ""
920
+ max: u || ""
917
921
  };
918
922
  });
919
923
  return () => {
920
- const l = [v("textarea", _.value)];
921
- return p.value && l.push(
922
- v("p", { class: "textarea-count" }, [
923
- v("span", { class: "count-now" }, p.value.current),
924
- v("span", { class: "count-total" }, p.value.max ? `/${p.value.max}` : "")
924
+ const l = [c("textarea", S.value)];
925
+ return m.value && l.push(
926
+ c("p", { class: "textarea-count" }, [
927
+ c("span", { class: "count-now" }, m.value.current),
928
+ c("span", { class: "count-total" }, m.value.max ? `/${m.value.max}` : "")
925
929
  ])
926
- ), v("div", { class: k.value }, [v("div", { class: D.value }, l)]);
930
+ ), c("div", { class: b.value }, [c("div", { class: D.value }, l)]);
927
931
  };
928
932
  }
929
- }), vt = B({
933
+ }), mt = B({
930
934
  name: "KrdsSelect",
931
935
  props: {
932
936
  modelValue: {
@@ -975,52 +979,52 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
975
979
  }
976
980
  },
977
981
  emits: ["update:modelValue", "focus", "blur"],
978
- setup(e, { emit: i, slots: n }) {
979
- const a = y(() => {
980
- const g = [];
981
- return e.sort ? g.push("krds-form-select-sort") : g.push("krds-form-select"), e.size && g.push(e.size), e.class && g.push(e.class), g;
982
- }), t = (g) => {
983
- const _ = g.target, k = _.value === "" ? null : _.value;
984
- i("update:modelValue", k);
985
- }, s = (g) => {
986
- i("focus", g);
987
- }, o = (g) => {
988
- i("blur", g);
989
- }, c = y(() => ({
990
- class: a.value,
982
+ setup(e, { emit: o, slots: s }) {
983
+ const n = g(() => {
984
+ const y = [];
985
+ return e.sort ? y.push("krds-form-select-sort") : y.push("krds-form-select"), e.size && y.push(e.size), e.class && y.push(e.class), y;
986
+ }), t = (y) => {
987
+ const S = y.target, b = S.value === "" ? null : S.value;
988
+ o("update:modelValue", b);
989
+ }, a = (y) => {
990
+ o("focus", y);
991
+ }, r = (y) => {
992
+ o("blur", y);
993
+ }, v = g(() => ({
994
+ class: n.value,
991
995
  value: e.modelValue ?? "",
992
996
  title: e.title || e.placeholder,
993
997
  name: e.name,
994
998
  id: e.id,
995
999
  disabled: e.disabled || e.readonly,
996
1000
  onChange: t,
997
- onFocus: s,
998
- onBlur: o
999
- })), d = y(() => {
1000
- const g = ["form-conts"];
1001
- return e.state !== "default" && g.push(`is-${e.state}`), g;
1002
- }), m = () => {
1003
- const g = [];
1004
- return e.placeholder && !e.modelValue && g.push(v("option", { value: "", disabled: !0, selected: !0 }, e.placeholder)), e.options && e.options.length > 0 && e.options.forEach((_) => {
1005
- g.push(
1006
- v(
1001
+ onFocus: a,
1002
+ onBlur: r
1003
+ })), p = g(() => {
1004
+ const y = ["form-conts"];
1005
+ return e.state !== "default" && y.push(`is-${e.state}`), y;
1006
+ }), h = () => {
1007
+ const y = [];
1008
+ return e.placeholder && !e.modelValue && y.push(c("option", { value: "", disabled: !0, selected: !0 }, e.placeholder)), e.options && e.options.length > 0 && e.options.forEach((S) => {
1009
+ y.push(
1010
+ c(
1007
1011
  "option",
1008
1012
  {
1009
- value: _.value,
1010
- disabled: _.disabled,
1011
- selected: _.value === e.modelValue
1013
+ value: S.value,
1014
+ disabled: S.disabled,
1015
+ selected: S.value === e.modelValue
1012
1016
  },
1013
- _.label
1017
+ S.label
1014
1018
  )
1015
1019
  );
1016
- }), n.default && g.push(...n.default()), g;
1020
+ }), s.default && y.push(...s.default()), y;
1017
1021
  };
1018
1022
  return () => {
1019
- const g = v("select", c.value, m());
1020
- return e.sort ? g : v("div", { class: d.value }, [g]);
1023
+ const y = c("select", v.value, h());
1024
+ return e.sort ? y : c("div", { class: p.value }, [y]);
1021
1025
  };
1022
1026
  }
1023
- }), pt = B({
1027
+ }), ht = B({
1024
1028
  name: "KrdsFileUpload",
1025
1029
  props: {
1026
1030
  modelValue: {
@@ -1123,15 +1127,15 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
1123
1127
  "download",
1124
1128
  "preview"
1125
1129
  ],
1126
- setup(e, { emit: i }) {
1127
- K(!1), y(() => {
1128
- const a = ["krds-file-upload", "line"];
1129
- return e.class && a.push(e.class), a;
1130
+ setup(e, { emit: o }) {
1131
+ K(!1), g(() => {
1132
+ const n = ["krds-file-upload", "line"];
1133
+ return e.class && n.push(e.class), n;
1130
1134
  });
1131
- const n = y(() => e.modelValue?.length || 0);
1132
- return y(() => !e.disabled && n.value < e.maxFiles), () => null;
1135
+ const s = g(() => e.modelValue?.length || 0);
1136
+ return g(() => !e.disabled && s.value < e.maxFiles), () => null;
1133
1137
  }
1134
- }), ht = B({
1138
+ }), yt = B({
1135
1139
  name: "KrdsBadge",
1136
1140
  props: {
1137
1141
  type: {
@@ -1156,27 +1160,27 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
1156
1160
  }
1157
1161
  },
1158
1162
  emits: ["click"],
1159
- setup(e, { emit: i, slots: n }) {
1160
- const a = y(() => {
1161
- const s = ["krds-badge"];
1162
- return s.push(`${e.type}-${e.color}`), e.size && s.push(e.size), e.number && s.push("number"), e.class && s.push(e.class), s;
1163
- }), t = (s) => {
1164
- i("click", s);
1163
+ setup(e, { emit: o, slots: s }) {
1164
+ const n = g(() => {
1165
+ const a = ["krds-badge"];
1166
+ return a.push(`${e.type}-${e.color}`), e.size && a.push(e.size), e.number && a.push("number"), e.class && a.push(e.class), a;
1167
+ }), t = (a) => {
1168
+ o("click", a);
1165
1169
  };
1166
- return () => v(
1170
+ return () => c(
1167
1171
  "span",
1168
1172
  {
1169
1173
  type: e.type,
1170
1174
  color: e.color,
1171
1175
  size: e.size,
1172
1176
  number: e.number,
1173
- class: a.value,
1177
+ class: n.value,
1174
1178
  onClick: t
1175
1179
  },
1176
- n.default?.()
1180
+ s.default?.()
1177
1181
  );
1178
1182
  }
1179
- }), mt = B({
1183
+ }), gt = B({
1180
1184
  name: "KrdsTag",
1181
1185
  props: {
1182
1186
  link: {
@@ -1201,40 +1205,40 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
1201
1205
  }
1202
1206
  },
1203
1207
  emits: ["remove"],
1204
- setup(e, { emit: i, slots: n }) {
1205
- const a = y(() => {
1206
- const o = ["krds-btn-tag"];
1207
- return e.link && o.push("link"), e.class && o.push(e.class), o;
1208
- }), t = (o) => {
1209
- i("remove", o);
1210
- }, s = () => v(
1208
+ setup(e, { emit: o, slots: s }) {
1209
+ const n = g(() => {
1210
+ const r = ["krds-btn-tag"];
1211
+ return e.link && r.push("link"), e.class && r.push(e.class), r;
1212
+ }), t = (r) => {
1213
+ o("remove", r);
1214
+ }, a = () => c(
1211
1215
  "button",
1212
1216
  {
1213
1217
  type: "button",
1214
1218
  class: "btn-delete",
1215
1219
  onClick: t
1216
1220
  },
1217
- [v("span", { class: "sr-only" }, "삭제")]
1221
+ [c("span", { class: "sr-only" }, "삭제")]
1218
1222
  );
1219
1223
  return () => {
1220
- const o = [], c = n.default?.();
1221
- if (c && o.push(c), e.link || o.push(s()), e.link) {
1222
- const d = {
1224
+ const r = [], v = s.default?.();
1225
+ if (v && r.push(v), e.link || r.push(a()), e.link) {
1226
+ const p = {
1223
1227
  href: e.href,
1224
- class: a.value
1228
+ class: n.value
1225
1229
  };
1226
- return e.target && (d.target = e.target), e.rel && (d.rel = e.rel), v("a", d, o);
1230
+ return e.target && (p.target = e.target), e.rel && (p.rel = e.rel), c("a", p, r);
1227
1231
  }
1228
- return v(
1232
+ return c(
1229
1233
  "span",
1230
1234
  {
1231
- class: a.value
1235
+ class: n.value
1232
1236
  },
1233
- o
1237
+ r
1234
1238
  );
1235
1239
  };
1236
1240
  }
1237
- }), yt = B({
1241
+ }), bt = B({
1238
1242
  name: "KrdsTagGroup",
1239
1243
  props: {
1240
1244
  size: {
@@ -1246,20 +1250,20 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
1246
1250
  default: void 0
1247
1251
  }
1248
1252
  },
1249
- setup(e, { slots: i }) {
1250
- const n = y(() => {
1251
- const a = ["krds-tag-wrap"];
1252
- return e.size && a.push(e.size), e.class && a.push(e.class), a;
1253
+ setup(e, { slots: o }) {
1254
+ const s = g(() => {
1255
+ const n = ["krds-tag-wrap"];
1256
+ return e.size && n.push(e.size), e.class && n.push(e.class), n;
1253
1257
  });
1254
- return () => v(
1258
+ return () => c(
1255
1259
  "div",
1256
1260
  {
1257
- class: n.value
1261
+ class: s.value
1258
1262
  },
1259
- i.default?.()
1263
+ o.default?.()
1260
1264
  );
1261
1265
  }
1262
- }), gt = B({
1266
+ }), kt = B({
1263
1267
  name: "KrdsMasthead",
1264
1268
  props: {
1265
1269
  class: {
@@ -1268,40 +1272,40 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
1268
1272
  }
1269
1273
  },
1270
1274
  emits: ["click"],
1271
- setup(e, { emit: i, slots: n }) {
1272
- const a = y(() => {
1273
- const s = [""];
1274
- return e.class && s.push(e.class), s;
1275
- }), t = (s) => {
1276
- i("click", s);
1275
+ setup(e, { emit: o, slots: s }) {
1276
+ const n = g(() => {
1277
+ const a = [""];
1278
+ return e.class && a.push(e.class), a;
1279
+ }), t = (a) => {
1280
+ o("click", a);
1277
1281
  };
1278
- return () => v(
1282
+ return () => c(
1279
1283
  "div",
1280
1284
  {
1281
1285
  id: "krds-masthead",
1282
- class: a.value,
1286
+ class: n.value,
1283
1287
  onClick: t
1284
1288
  },
1285
1289
  [
1286
- v("div", { class: "toggle-wrap" }, [
1287
- v("div", { class: "toggle-head" }, [v("div", { class: "inner" }, [v("span", { class: "nuri-txt" }, n.default?.())])])
1290
+ c("div", { class: "toggle-wrap" }, [
1291
+ c("div", { class: "toggle-head" }, [c("div", { class: "inner" }, [c("span", { class: "nuri-txt" }, s.default?.())])])
1288
1292
  ])
1289
1293
  ]
1290
1294
  );
1291
1295
  }
1292
1296
  });
1293
- let kt = 0;
1294
- function de(e = "krds") {
1295
- return `${e}-${++kt}`;
1297
+ let St = 0;
1298
+ function ue(e = "krds") {
1299
+ return `${e}-${++St}`;
1296
1300
  }
1297
- function Sl() {
1298
- const e = Date.now().toString(36).slice(-4), i = Math.random().toString(36).substring(2, 5);
1299
- return `${e}${i}`;
1301
+ function xl() {
1302
+ const e = Date.now().toString(36).slice(-4), o = Math.random().toString(36).substring(2, 5);
1303
+ return `${e}${o}`;
1300
1304
  }
1301
1305
  function ce(...e) {
1302
1306
  return e.filter(Boolean).join(" ");
1303
1307
  }
1304
- const bt = B({
1308
+ const wt = B({
1305
1309
  name: "KrdsToggleSwitch",
1306
1310
  props: {
1307
1311
  modelValue: {
@@ -1343,40 +1347,40 @@ const bt = B({
1343
1347
  }
1344
1348
  },
1345
1349
  emits: ["update:modelValue", "change"],
1346
- setup(e, { emit: i, attrs: n }) {
1347
- const a = y(() => e.modelValue), t = y(() => ce("krds-form-toggle-switch", e.size, e.class)), s = (c) => {
1350
+ setup(e, { emit: o, attrs: s }) {
1351
+ const n = g(() => e.modelValue), t = g(() => ce("krds-form-toggle-switch", e.size, e.class)), a = (v) => {
1348
1352
  if (e.disabled)
1349
1353
  return;
1350
- const m = c.target.checked;
1351
- i("update:modelValue", m), i("change", m);
1352
- }, o = y(() => e.id || de("toggle-switch"));
1353
- return () => v(
1354
+ const h = v.target.checked;
1355
+ o("update:modelValue", h), o("change", h);
1356
+ }, r = g(() => e.id || ue("toggle-switch"));
1357
+ return () => c(
1354
1358
  "div",
1355
1359
  {
1356
1360
  class: t.value
1357
1361
  },
1358
1362
  [
1359
- v("input", {
1363
+ c("input", {
1360
1364
  type: "checkbox",
1361
- id: o.value,
1365
+ id: r.value,
1362
1366
  name: e.name,
1363
- checked: a.value,
1367
+ checked: n.value,
1364
1368
  disabled: e.disabled,
1365
- onChange: s,
1366
- ...n
1369
+ onChange: a,
1370
+ ...s
1367
1371
  }),
1368
- v(
1372
+ c(
1369
1373
  "label",
1370
1374
  {
1371
- for: o.value
1375
+ for: r.value
1372
1376
  },
1373
1377
  [
1374
- v(
1378
+ c(
1375
1379
  "span",
1376
1380
  {
1377
1381
  class: "switch-toggle"
1378
1382
  },
1379
- [v("i")]
1383
+ [c("i")]
1380
1384
  ),
1381
1385
  e.label || ""
1382
1386
  ]
@@ -1384,7 +1388,7 @@ const bt = B({
1384
1388
  ]
1385
1389
  );
1386
1390
  }
1387
- }), St = B({
1391
+ }), Ct = B({
1388
1392
  name: "KrdsCheckArea",
1389
1393
  props: {
1390
1394
  class: {
@@ -1396,19 +1400,19 @@ const bt = B({
1396
1400
  default: !1
1397
1401
  }
1398
1402
  },
1399
- setup(e, { slots: i }) {
1403
+ setup(e, { slots: o }) {
1400
1404
  return () => {
1401
- const n = ["krds-check-area"];
1402
- return e.column && n.push("chk-column"), e.class && n.push(e.class), v(
1405
+ const s = ["krds-check-area"];
1406
+ return e.column && s.push("chk-column"), e.class && s.push(e.class), c(
1403
1407
  "div",
1404
1408
  {
1405
- class: n
1409
+ class: s
1406
1410
  },
1407
- i.default?.()
1411
+ o.default?.()
1408
1412
  );
1409
1413
  };
1410
1414
  }
1411
- }), wt = B({
1415
+ }), xt = B({
1412
1416
  name: "KrdsCheckbox",
1413
1417
  props: {
1414
1418
  modelValue: {
@@ -1439,44 +1443,44 @@ const bt = B({
1439
1443
  },
1440
1444
  emits: ["update:modelValue"],
1441
1445
  slots: Object,
1442
- setup(e, { emit: i, attrs: n, slots: a }) {
1443
- const t = y(() => e.modelValue), s = y(() => {
1444
- const d = e.chip ? "krds-form-chip" : "krds-form-check";
1445
- return ce(d, e.size, e.class);
1446
- }), o = (d) => {
1446
+ setup(e, { emit: o, attrs: s, slots: n }) {
1447
+ const t = g(() => e.modelValue), a = g(() => {
1448
+ const p = e.chip ? "krds-form-chip" : "krds-form-check";
1449
+ return ce(p, e.size, e.class);
1450
+ }), r = (p) => {
1447
1451
  if (e.disabled)
1448
1452
  return;
1449
- const g = d.target.checked;
1450
- i("update:modelValue", g);
1451
- }, c = y(() => e.id || de("checkbox"));
1453
+ const y = p.target.checked;
1454
+ o("update:modelValue", y);
1455
+ }, v = g(() => e.id || ue("checkbox"));
1452
1456
  return () => {
1453
- const d = [
1454
- v("input", {
1457
+ const p = [
1458
+ c("input", {
1455
1459
  type: "checkbox",
1456
- id: c.value,
1460
+ id: v.value,
1457
1461
  checked: t.value,
1458
1462
  disabled: e.disabled,
1459
- onChange: o,
1460
- ...n
1463
+ onChange: r,
1464
+ ...s
1461
1465
  }),
1462
- v(
1466
+ c(
1463
1467
  "label",
1464
1468
  {
1465
- for: c.value
1469
+ for: v.value
1466
1470
  },
1467
- a.default?.()
1471
+ n.default?.()
1468
1472
  )
1469
1473
  ];
1470
- return a.description && !e.chip && d.push(v("div", { class: "krds-form-check-cnt" }, v("p", { class: "krds-form-check-p" }, a.description()))), v(
1474
+ return n.description && !e.chip && p.push(c("div", { class: "krds-form-check-cnt" }, c("p", { class: "krds-form-check-p" }, n.description()))), c(
1471
1475
  "div",
1472
1476
  {
1473
- class: s.value
1477
+ class: a.value
1474
1478
  },
1475
- d
1479
+ p
1476
1480
  );
1477
1481
  };
1478
1482
  }
1479
- }), Ct = B({
1483
+ }), _t = B({
1480
1484
  name: "KrdsRadio",
1481
1485
  props: {
1482
1486
  modelValue: {
@@ -1515,45 +1519,45 @@ const bt = B({
1515
1519
  },
1516
1520
  emits: ["update:modelValue"],
1517
1521
  slots: Object,
1518
- setup(e, { emit: i, attrs: n, slots: a }) {
1519
- const t = y(() => e.modelValue === e.value), s = y(() => {
1520
- const m = e.chip ? "krds-form-chip" : "krds-form-check";
1521
- return ce(m, e.size, e.class);
1522
- }), o = (m) => {
1522
+ setup(e, { emit: o, attrs: s, slots: n }) {
1523
+ const t = g(() => e.modelValue === e.value), a = g(() => {
1524
+ const h = e.chip ? "krds-form-chip" : "krds-form-check";
1525
+ return ce(h, e.size, e.class);
1526
+ }), r = (h) => {
1523
1527
  if (e.disabled)
1524
1528
  return;
1525
- m.target.checked && i("update:modelValue", e.value);
1526
- }, c = y(() => e.id || de("radio")), d = y(() => e.name);
1529
+ h.target.checked && o("update:modelValue", e.value);
1530
+ }, v = g(() => e.id || ue("radio")), p = g(() => e.name);
1527
1531
  return () => {
1528
- const m = [
1529
- v("input", {
1532
+ const h = [
1533
+ c("input", {
1530
1534
  type: "radio",
1531
- id: c.value,
1532
- name: d.value,
1535
+ id: v.value,
1536
+ name: p.value,
1533
1537
  value: String(e.value),
1534
1538
  checked: t.value,
1535
1539
  disabled: e.disabled,
1536
- onChange: o,
1537
- ...n
1540
+ onChange: r,
1541
+ ...s
1538
1542
  }),
1539
- v(
1543
+ c(
1540
1544
  "label",
1541
1545
  {
1542
- for: c.value
1546
+ for: v.value
1543
1547
  },
1544
- a.default?.()
1548
+ n.default?.()
1545
1549
  )
1546
1550
  ];
1547
- return a.description && !e.chip && m.push(v("div", { class: "krds-form-check-cnt" }, v("p", { class: "krds-form-check-p" }, a.description()))), v(
1551
+ return n.description && !e.chip && h.push(c("div", { class: "krds-form-check-cnt" }, c("p", { class: "krds-form-check-p" }, n.description()))), c(
1548
1552
  "div",
1549
1553
  {
1550
- class: s.value
1554
+ class: a.value
1551
1555
  },
1552
- m
1556
+ h
1553
1557
  );
1554
1558
  };
1555
1559
  }
1556
- }), _t = B({
1560
+ }), Bt = B({
1557
1561
  name: "KrdsStepIndicator",
1558
1562
  props: {
1559
1563
  modelValue: {
@@ -1566,30 +1570,30 @@ const bt = B({
1566
1570
  }
1567
1571
  },
1568
1572
  emits: ["update:modelValue"],
1569
- setup(e, { slots: i }) {
1570
- const n = y(() => {
1571
- const c = ["krds-step-wrap"];
1572
- return e.class && c.push(e.class), c;
1573
- }), a = (c) => {
1574
- const d = e.modelValue || 0;
1575
- return c < d ? "done" : c === d ? "active" : "pending";
1576
- }, t = K(0), s = () => {
1573
+ setup(e, { slots: o }) {
1574
+ const s = g(() => {
1575
+ const v = ["krds-step-wrap"];
1576
+ return e.class && v.push(e.class), v;
1577
+ }), n = (v) => {
1578
+ const p = e.modelValue || 0;
1579
+ return v < p ? "done" : v === p ? "active" : "pending";
1580
+ }, t = K(0), a = () => {
1577
1581
  t.value = 0;
1578
- }, o = () => t.value++;
1579
- return De("stepIndicator", {
1580
- activeStep: y(() => e.modelValue || 0),
1581
- getStepStatus: a,
1582
- getNextStepIndex: o,
1583
- resetStepIndex: s
1584
- }), () => (s(), v(
1582
+ }, r = () => t.value++;
1583
+ return Ve("stepIndicator", {
1584
+ activeStep: g(() => e.modelValue || 0),
1585
+ getStepStatus: n,
1586
+ getNextStepIndex: r,
1587
+ resetStepIndex: a
1588
+ }), () => (a(), c(
1585
1589
  "ol",
1586
1590
  {
1587
- class: n.value
1591
+ class: s.value
1588
1592
  },
1589
- i.default?.()
1593
+ o.default?.()
1590
1594
  ));
1591
1595
  }
1592
- }), xt = B({
1596
+ }), Kt = B({
1593
1597
  name: "KrdsStep",
1594
1598
  props: {
1595
1599
  step: {
@@ -1610,37 +1614,37 @@ const bt = B({
1610
1614
  }
1611
1615
  },
1612
1616
  emits: ["click"],
1613
- setup(e, { emit: i, slots: n }) {
1614
- const a = Ve("stepIndicator"), t = a ? a.getNextStepIndex() : -1, s = y(() => e.status ? e.status : a && t >= 0 ? a.getStepStatus(t) : "pending"), o = y(() => {
1615
- const d = [s.value];
1616
- return e.class && d.push(e.class), d;
1617
- }), c = (d) => {
1618
- i("click", d, e.step);
1617
+ setup(e, { emit: o, slots: s }) {
1618
+ const n = ze("stepIndicator"), t = n ? n.getNextStepIndex() : -1, a = g(() => e.status ? e.status : n && t >= 0 ? n.getStepStatus(t) : "pending"), r = g(() => {
1619
+ const p = [a.value];
1620
+ return e.class && p.push(e.class), p;
1621
+ }), v = (p) => {
1622
+ o("click", p, e.step);
1619
1623
  };
1620
1624
  return () => {
1621
- const d = s.value === "active";
1622
- return v(
1625
+ const p = a.value === "active";
1626
+ return c(
1623
1627
  "li",
1624
1628
  {
1625
- class: o.value,
1626
- onClick: c
1629
+ class: r.value,
1630
+ onClick: v
1627
1631
  },
1628
1632
  [
1629
- v("span", [
1633
+ c("span", [
1630
1634
  // 현재 단계 표시 (활성 상태일 때만)
1631
- d && v("em", { class: "sr-only" }, "현재단계"),
1635
+ p && c("em", { class: "sr-only" }, "현재단계"),
1632
1636
  // 단계 번호
1633
- v("i", { class: "step" }, e.step),
1637
+ c("i", { class: "step" }, e.step),
1634
1638
  // 단계 제목
1635
- v("span", { class: "step-tit" }, e.title),
1639
+ c("span", { class: "step-tit" }, e.title),
1636
1640
  // 슬롯 내용 (추가 콘텐츠가 있는 경우)
1637
- n.default?.()
1641
+ s.default?.()
1638
1642
  ])
1639
1643
  ]
1640
1644
  );
1641
1645
  };
1642
1646
  }
1643
- }), Bt = B({
1647
+ }), $t = B({
1644
1648
  name: "KrdsSkipLink",
1645
1649
  props: {
1646
1650
  /**
@@ -1667,25 +1671,25 @@ const bt = B({
1667
1671
  default: "krds-skip-link"
1668
1672
  }
1669
1673
  },
1670
- setup(e, { slots: i }) {
1671
- return () => v(
1674
+ setup(e, { slots: o }) {
1675
+ return () => c(
1672
1676
  "div",
1673
1677
  {
1674
1678
  id: e.id,
1675
1679
  class: e.class
1676
1680
  },
1677
1681
  [
1678
- v(
1682
+ c(
1679
1683
  "a",
1680
1684
  {
1681
1685
  href: e.href
1682
1686
  },
1683
- i.default?.()
1687
+ o.default?.()
1684
1688
  )
1685
1689
  ]
1686
1690
  );
1687
1691
  }
1688
- }), $t = ["id", "aria-label"], Kt = { class: "breadcrumb" }, Dt = ["href", "aria-current", "onClick"], Vt = { key: 0 }, zt = /* @__PURE__ */ B({
1692
+ }), Dt = ["id", "aria-label"], Vt = { class: "breadcrumb" }, zt = ["href", "aria-current", "onClick"], Et = { key: 0 }, It = /* @__PURE__ */ B({
1689
1693
  __name: "KrdsBreadcrumb",
1690
1694
  props: {
1691
1695
  items: {},
@@ -1694,31 +1698,31 @@ const bt = B({
1694
1698
  showHomeIcon: { type: Boolean, default: !0 }
1695
1699
  },
1696
1700
  emits: ["item-click"],
1697
- setup(e, { emit: i }) {
1698
- const n = e, a = i, t = (o) => o === n.items.length - 1, s = (o, c) => {
1699
- o.onClick && o.onClick(c), a("item-click", o, c);
1701
+ setup(e, { emit: o }) {
1702
+ const s = e, n = o, t = (r) => r === s.items.length - 1, a = (r, v) => {
1703
+ r.onClick && r.onClick(v), n("item-click", r, v);
1700
1704
  };
1701
- return (o, c) => (S(), w("nav", {
1702
- id: o.id,
1705
+ return (r, v) => (k(), w("nav", {
1706
+ id: e.id,
1703
1707
  class: "krds-breadcrumb-wrap",
1704
- "aria-label": o.ariaLabel
1708
+ "aria-label": e.ariaLabel
1705
1709
  }, [
1706
- r("ol", Kt, [
1707
- (S(!0), w(F, null, N(o.items, (d, m) => (S(), w("li", {
1708
- key: `breadcrumb-${m}`,
1709
- class: I({ home: m === 0 && o.showHomeIcon })
1710
+ d("ol", Vt, [
1711
+ (k(!0), w(F, null, N(e.items, (p, h) => (k(), w("li", {
1712
+ key: `breadcrumb-${h}`,
1713
+ class: I({ home: h === 0 && e.showHomeIcon })
1710
1714
  }, [
1711
- r("a", {
1712
- href: d.href || "#",
1715
+ d("a", {
1716
+ href: p.href || "#",
1713
1717
  class: "txt",
1714
- "aria-current": t(m) ? "page" : void 0,
1715
- onClick: (g) => s(d, g)
1718
+ "aria-current": t(h) ? "page" : void 0,
1719
+ onClick: (y) => a(p, y)
1716
1720
  }, [
1717
- m === 0 && o.showHomeIcon ? Y("", !0) : (S(), w("span", Vt, L(d.text), 1))
1718
- ], 8, Dt)
1721
+ h === 0 && e.showHomeIcon ? Y("", !0) : (k(), w("span", Et, E(p.text), 1))
1722
+ ], 8, zt)
1719
1723
  ], 2))), 128))
1720
1724
  ])
1721
- ], 8, $t));
1725
+ ], 8, Dt));
1722
1726
  }
1723
1727
  }), Lt = B({
1724
1728
  name: "KrdsInPageNavigation",
@@ -1754,47 +1758,47 @@ const bt = B({
1754
1758
  },
1755
1759
  emits: ["itemClick"],
1756
1760
  slots: Object,
1757
- setup(e, { emit: i, slots: n }) {
1758
- const a = K(""), t = K(/* @__PURE__ */ new Map()), s = y(() => {
1759
- const p = ["krds-in-page-navigation-type"];
1760
- return e.class && p.push(e.class), p;
1761
- }), o = () => {
1762
- const p = e.headerTopSelector, l = e.headerInnerSelector, h = document.querySelector(p)?.clientHeight || 0, u = document.querySelector(l)?.clientHeight || 0;
1763
- return h + u;
1764
- }, c = (p, l) => {
1765
- if (i("itemClick", p, l), p.href.startsWith("#")) {
1761
+ setup(e, { emit: o, slots: s }) {
1762
+ const n = K(""), t = K(/* @__PURE__ */ new Map()), a = g(() => {
1763
+ const m = ["krds-in-page-navigation-type"];
1764
+ return e.class && m.push(e.class), m;
1765
+ }), r = () => {
1766
+ const m = e.headerTopSelector, l = e.headerInnerSelector, u = document.querySelector(m)?.clientHeight || 0, i = document.querySelector(l)?.clientHeight || 0;
1767
+ return u + i;
1768
+ }, v = (m, l) => {
1769
+ if (o("itemClick", m, l), m.href.startsWith("#")) {
1766
1770
  l.preventDefault();
1767
- const h = document.querySelector(p.href);
1768
- if (h) {
1769
- const u = o();
1771
+ const u = document.querySelector(m.href);
1772
+ if (u) {
1773
+ const i = r();
1770
1774
  if (window.scrollTo({
1771
1775
  left: 0,
1772
- top: h.getBoundingClientRect().top + window.scrollY - u,
1776
+ top: u.getBoundingClientRect().top + window.scrollY - i,
1773
1777
  behavior: "smooth"
1774
- }), a.value = p.href, l instanceof KeyboardEvent) {
1775
- const f = h.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
1778
+ }), n.value = m.href, l instanceof KeyboardEvent) {
1779
+ const f = u.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
1776
1780
  f && f instanceof HTMLElement && (f.setAttribute("tabindex", "-1"), f.focus({ preventScroll: !0 }));
1777
1781
  }
1778
1782
  }
1779
1783
  }
1780
- }, d = () => {
1781
- t.value.clear(), e.items && e.items.filter((p) => p.href.startsWith("#")).forEach((p) => {
1782
- const l = document.querySelector(p.href);
1783
- l && t.value.set(p.href, l);
1784
+ }, p = () => {
1785
+ t.value.clear(), e.items && e.items.filter((m) => m.href.startsWith("#")).forEach((m) => {
1786
+ const l = document.querySelector(m.href);
1787
+ l && t.value.set(m.href, l);
1784
1788
  });
1785
- }, m = () => {
1789
+ }, h = () => {
1786
1790
  if (!e.autoActive || !e.items || t.value.size === 0) return;
1787
- const p = window.innerHeight, l = Math.ceil(p / 5), h = window.scrollY + p, u = document.body.scrollHeight, f = e.items.filter((z) => z.href.startsWith("#") && t.value.has(z.href)).map((z) => ({
1791
+ const m = window.innerHeight, l = Math.ceil(m / 5), u = window.scrollY + m, i = document.body.scrollHeight, f = e.items.filter((z) => z.href.startsWith("#") && t.value.has(z.href)).map((z) => ({
1788
1792
  href: z.href,
1789
1793
  element: t.value.get(z.href),
1790
1794
  item: z
1791
1795
  }));
1792
1796
  if (f.length === 0) return;
1793
- const x = f[0], R = f[f.length - 1], E = x.element.offsetTop;
1797
+ const x = f[0], R = f[f.length - 1], L = x.element.offsetTop;
1794
1798
  let M = "";
1795
- if (h >= u)
1799
+ if (u >= i)
1796
1800
  M = R.href;
1797
- else if (window.scrollY <= E)
1801
+ else if (window.scrollY <= L)
1798
1802
  M = x.href;
1799
1803
  else
1800
1804
  for (const z of f) {
@@ -1804,57 +1808,57 @@ const bt = B({
1804
1808
  break;
1805
1809
  }
1806
1810
  }
1807
- M && M !== a.value && (a.value = M);
1808
- }, g = () => {
1811
+ M && M !== n.value && (n.value = M);
1812
+ }, y = () => {
1809
1813
  if (!e.items) return;
1810
- const p = e.items.find((l) => l.active);
1811
- p ? a.value = p.href : e.items.length > 0 && (a.value = e.items[0].href);
1814
+ const m = e.items.find((l) => l.active);
1815
+ m ? n.value = m.href : e.items.length > 0 && (n.value = e.items[0].href);
1812
1816
  };
1813
1817
  le(() => {
1814
- if (g(), e.autoActive) {
1815
- d(), m(), window.addEventListener("scroll", m, { passive: !0 });
1816
- const p = new MutationObserver(() => {
1817
- d();
1818
+ if (y(), e.autoActive) {
1819
+ p(), h(), window.addEventListener("scroll", h, { passive: !0 });
1820
+ const m = new MutationObserver(() => {
1821
+ p();
1818
1822
  });
1819
- p.observe(document.body, {
1823
+ m.observe(document.body, {
1820
1824
  childList: !0,
1821
1825
  subtree: !0
1822
1826
  }), X(() => {
1823
- p.disconnect();
1827
+ m.disconnect();
1824
1828
  });
1825
1829
  }
1826
1830
  }), X(() => {
1827
- e.autoActive && (window.removeEventListener("scroll", m), t.value.clear());
1831
+ e.autoActive && (window.removeEventListener("scroll", h), t.value.clear());
1828
1832
  });
1829
- const _ = () => !e.caption && !e.title ? null : v("div", { class: "in-page-navigation-header" }, [
1830
- e.caption && v("p", { class: "quick-caption" }, e.caption),
1831
- e.title && v("p", { class: "quick-title" }, e.title)
1832
- ]), k = () => {
1833
+ const S = () => !e.caption && !e.title ? null : c("div", { class: "in-page-navigation-header" }, [
1834
+ e.caption && c("p", { class: "quick-caption" }, e.caption),
1835
+ e.title && c("p", { class: "quick-title" }, e.title)
1836
+ ]), b = () => {
1833
1837
  if (!e.items) return null;
1834
- const p = e.items.map((l) => {
1835
- const h = a.value === l.href || !e.autoActive && l.active;
1836
- return v("li", { key: l.href }, [
1837
- v(
1838
+ const m = e.items.map((l) => {
1839
+ const u = n.value === l.href || !e.autoActive && l.active;
1840
+ return c("li", { key: l.href }, [
1841
+ c(
1838
1842
  "a",
1839
1843
  {
1840
1844
  href: l.href,
1841
- class: h ? "active" : "",
1842
- onClick: (u) => c(l, u),
1843
- onKeydown: (u) => {
1844
- (u.key === "Enter" || u.key === " ") && (u.preventDefault(), c(l, u));
1845
+ class: u ? "active" : "",
1846
+ onClick: (i) => v(l, i),
1847
+ onKeydown: (i) => {
1848
+ (i.key === "Enter" || i.key === " ") && (i.preventDefault(), v(l, i));
1845
1849
  }
1846
1850
  },
1847
1851
  l.text
1848
1852
  )
1849
1853
  ]);
1850
1854
  });
1851
- return v("nav", { class: "in-page-navigation-list" }, [v("ul", {}, p)]);
1852
- }, D = () => n.action ? v("div", { class: "in-page-navigation-action" }, [n.action()]) : null;
1853
- return () => v("div", { class: s.value }, [
1854
- v("div", { class: "krds-in-page-navigation-area" }, [_(), k(), D()].filter(Boolean))
1855
+ return c("nav", { class: "in-page-navigation-list" }, [c("ul", {}, m)]);
1856
+ }, D = () => s.action ? c("div", { class: "in-page-navigation-action" }, [s.action()]) : null;
1857
+ return () => c("div", { class: a.value }, [
1858
+ c("div", { class: "krds-in-page-navigation-area" }, [S(), b(), D()].filter(Boolean))
1855
1859
  ]);
1856
1860
  }
1857
- }), It = ["id"], Et = { class: "page-links" }, Mt = ["href", "aria-current", "onClick"], Rt = { key: 0 }, Tt = ["aria-label"], Pt = /* @__PURE__ */ B({
1861
+ }), Mt = ["id"], Rt = { class: "page-links" }, Tt = ["href", "aria-current", "onClick"], Pt = { key: 0 }, At = ["aria-label"], Ft = /* @__PURE__ */ B({
1858
1862
  __name: "KrdsPagination",
1859
1863
  props: {
1860
1864
  modelValue: { default: 1 },
@@ -1865,184 +1869,184 @@ const bt = B({
1865
1869
  pageRange: { default: 8 }
1866
1870
  },
1867
1871
  emits: ["update:modelValue"],
1868
- setup(e, { emit: i }) {
1869
- const n = e, a = i, t = y(() => Math.max(1, n.min)), s = y(() => n.modelValue ?? t.value), o = y(() => s.value <= t.value), c = y(() => s.value >= n.max), d = y(() => {
1870
- if (!o.value)
1872
+ setup(e, { emit: o }) {
1873
+ const s = e, n = o, t = g(() => Math.max(1, s.min)), a = g(() => s.modelValue ?? t.value), r = g(() => a.value <= t.value), v = g(() => a.value >= s.max), p = g(() => {
1874
+ if (!r.value)
1871
1875
  return "#";
1872
- }), m = y(() => {
1873
- if (!c.value)
1876
+ }), h = g(() => {
1877
+ if (!v.value)
1874
1878
  return "#";
1875
- }), g = y(() => {
1876
- const { pageRange: p, max: l } = n, h = 1, u = [];
1877
- if (l <= p + 2 * h)
1879
+ }), y = g(() => {
1880
+ const { pageRange: m, max: l } = s, u = 1, i = [];
1881
+ if (l <= m + 2 * u)
1878
1882
  for (let f = t.value; f <= l; f++)
1879
- u.push({
1883
+ i.push({
1880
1884
  type: "page",
1881
1885
  key: `page-${f}`,
1882
1886
  page: f,
1883
1887
  href: "#"
1884
1888
  });
1885
1889
  else {
1886
- const f = Math.min(h, l), x = Math.max(l - h + 1, 1), R = Math.max(t.value, s.value - Math.floor(p / 2)), E = Math.min(l, R + p - 1), M = Math.max(t.value, E - p + 1);
1890
+ const f = Math.min(u, l), x = Math.max(l - u + 1, 1), R = Math.max(t.value, a.value - Math.floor(m / 2)), L = Math.min(l, R + m - 1), M = Math.max(t.value, L - m + 1);
1887
1891
  for (let V = t.value; V <= f; V++)
1888
- u.push({
1892
+ i.push({
1889
1893
  type: "page",
1890
1894
  key: `page-${V}`,
1891
1895
  page: V,
1892
1896
  href: "#"
1893
1897
  });
1894
- M > f + 1 && u.push({
1898
+ M > f + 1 && i.push({
1895
1899
  type: "ellipsis",
1896
1900
  key: "ellipsis-left",
1897
1901
  ariaLabel: "페이지 생략"
1898
1902
  });
1899
- const z = Math.max(M, f + 1), H = Math.min(E, x - 1);
1903
+ const z = Math.max(M, f + 1), H = Math.min(L, x - 1);
1900
1904
  for (let V = z; V <= H; V++)
1901
- u.push({
1905
+ i.push({
1902
1906
  type: "page",
1903
1907
  key: `page-${V}`,
1904
1908
  page: V,
1905
1909
  href: "#"
1906
1910
  });
1907
- E < x - 1 && u.push({
1911
+ L < x - 1 && i.push({
1908
1912
  type: "ellipsis",
1909
1913
  key: "ellipsis-right",
1910
1914
  ariaLabel: "페이지 생략"
1911
1915
  });
1912
1916
  for (let V = x; V <= l; V++)
1913
- u.push({
1917
+ i.push({
1914
1918
  type: "page",
1915
1919
  key: `page-${V}`,
1916
1920
  page: V,
1917
1921
  href: "#"
1918
1922
  });
1919
1923
  }
1920
- return u;
1921
- }), _ = (p, l) => {
1922
- if (p === s.value) {
1924
+ return i;
1925
+ }), S = (m, l) => {
1926
+ if (m === a.value) {
1923
1927
  l.preventDefault();
1924
1928
  return;
1925
1929
  }
1926
- a("update:modelValue", p);
1927
- }, k = (p) => {
1928
- if (o.value) {
1929
- p.preventDefault();
1930
+ n("update:modelValue", m);
1931
+ }, b = (m) => {
1932
+ if (r.value) {
1933
+ m.preventDefault();
1930
1934
  return;
1931
1935
  }
1932
- const l = s.value - 1;
1933
- a("update:modelValue", l);
1934
- }, D = (p) => {
1935
- if (c.value) {
1936
- p.preventDefault();
1936
+ const l = a.value - 1;
1937
+ n("update:modelValue", l);
1938
+ }, D = (m) => {
1939
+ if (v.value) {
1940
+ m.preventDefault();
1937
1941
  return;
1938
1942
  }
1939
- const l = s.value + 1;
1940
- a("update:modelValue", l);
1943
+ const l = a.value + 1;
1944
+ n("update:modelValue", l);
1941
1945
  };
1942
- return (p, l) => {
1943
- const h = ze("sr-only");
1944
- return S(), w("div", {
1945
- id: p.id,
1946
+ return (m, l) => {
1947
+ const u = Ee("sr-only");
1948
+ return k(), w("div", {
1949
+ id: e.id,
1946
1950
  class: "krds-pagination"
1947
1951
  }, [
1948
- (S(), oe(ye(o.value ? "span" : "a"), {
1949
- href: o.value ? void 0 : d.value,
1950
- class: I(["page-navi", "prev", { disabled: o.value }]),
1951
- onClick: k
1952
+ (k(), ie(ye(r.value ? "span" : "a"), {
1953
+ href: r.value ? void 0 : p.value,
1954
+ class: I(["page-navi", "prev", { disabled: r.value }]),
1955
+ onClick: b
1952
1956
  }, {
1953
- default: ie(() => [...l[0] || (l[0] = [
1957
+ default: re(() => [...l[0] || (l[0] = [
1954
1958
  A(" 이전 ", -1)
1955
1959
  ])]),
1956
1960
  _: 1
1957
1961
  }, 8, ["href", "class"])),
1958
- r("div", Et, [
1959
- (S(!0), w(F, null, N(g.value, (u) => (S(), w(F, {
1960
- key: u.key
1962
+ d("div", Rt, [
1963
+ (k(!0), w(F, null, N(y.value, (i) => (k(), w(F, {
1964
+ key: i.key
1961
1965
  }, [
1962
- u.type === "page" ? (S(), w("a", {
1966
+ i.type === "page" ? (k(), w("a", {
1963
1967
  key: 0,
1964
- href: u.href || "#",
1965
- class: I(["page-link", { active: u.page === s.value }]),
1966
- "aria-current": u.page === s.value ? "page" : void 0,
1967
- onClick: (f) => _(u.page, f)
1968
+ href: i.href || "#",
1969
+ class: I(["page-link", { active: i.page === a.value }]),
1970
+ "aria-current": i.page === a.value ? "page" : void 0,
1971
+ onClick: (f) => S(i.page, f)
1968
1972
  }, [
1969
- u.page === s.value ? Q((S(), w("span", Rt, [...l[1] || (l[1] = [
1973
+ i.page === a.value ? Q((k(), w("span", Pt, [...l[1] || (l[1] = [
1970
1974
  A("현재페이지", -1)
1971
1975
  ])])), [
1972
- [h]
1976
+ [u]
1973
1977
  ]) : Y("", !0),
1974
- A(" " + L(u.page), 1)
1975
- ], 10, Mt)) : u.type === "ellipsis" ? (S(), w("span", {
1978
+ A(" " + E(i.page), 1)
1979
+ ], 10, Tt)) : i.type === "ellipsis" ? (k(), w("span", {
1976
1980
  key: 1,
1977
1981
  class: "page-link link-dot",
1978
- "aria-label": u.ariaLabel
1979
- }, null, 8, Tt)) : Y("", !0)
1982
+ "aria-label": i.ariaLabel
1983
+ }, null, 8, At)) : Y("", !0)
1980
1984
  ], 64))), 128))
1981
1985
  ]),
1982
- (S(), oe(ye(c.value ? "span" : "a"), {
1983
- href: c.value ? void 0 : m.value,
1984
- class: I(["page-navi", "next", { disabled: c.value }]),
1986
+ (k(), ie(ye(v.value ? "span" : "a"), {
1987
+ href: v.value ? void 0 : h.value,
1988
+ class: I(["page-navi", "next", { disabled: v.value }]),
1985
1989
  onClick: D
1986
1990
  }, {
1987
- default: ie(() => [...l[2] || (l[2] = [
1991
+ default: re(() => [...l[2] || (l[2] = [
1988
1992
  A(" 다음 ", -1)
1989
1993
  ])]),
1990
1994
  _: 1
1991
1995
  }, 8, ["href", "class"]))
1992
- ], 8, It);
1996
+ ], 8, Mt);
1993
1997
  };
1994
1998
  }
1995
- }), At = { class: "inner help-panel-flexible" }, Ft = { class: "help-panel-wrap" }, Ot = { class: "help-conts-area" }, qt = /* @__PURE__ */ B({
1999
+ }), Ot = { class: "inner help-panel-flexible" }, qt = { class: "help-panel-wrap" }, Nt = { class: "help-conts-area" }, Ht = /* @__PURE__ */ B({
1996
2000
  __name: "KrdsPanel",
1997
2001
  props: {
1998
2002
  modelValue: { type: Boolean, default: !1 }
1999
2003
  },
2000
2004
  emits: ["update:modelValue"],
2001
- setup(e, { emit: i }) {
2002
- const n = e, a = i, t = y({
2003
- get: () => n.modelValue,
2004
- set: (c) => a("update:modelValue", c)
2005
- }), s = () => {
2005
+ setup(e, { emit: o }) {
2006
+ const s = e, n = o, t = g({
2007
+ get: () => s.modelValue,
2008
+ set: (v) => n("update:modelValue", v)
2009
+ }), a = () => {
2006
2010
  t.value = !0;
2007
- }, o = () => {
2011
+ }, r = () => {
2008
2012
  t.value = !1;
2009
2013
  };
2010
- return (c, d) => (S(), w("div", At, [
2011
- r("button", {
2014
+ return (v, p) => (k(), w("div", Ot, [
2015
+ d("button", {
2012
2016
  type: "button",
2013
2017
  class: "krds-btn small tertiary btn-help-panel expand btn-help-exec",
2014
- onClick: s
2015
- }, [...d[0] || (d[0] = [
2016
- r("i", { class: "svg-icon ico-fold" }, null, -1),
2018
+ onClick: a
2019
+ }, [...p[0] || (p[0] = [
2020
+ d("i", { class: "svg-icon ico-fold" }, null, -1),
2017
2021
  A(" 도움말 ", -1)
2018
2022
  ])]),
2019
- r("div", {
2023
+ d("div", {
2020
2024
  class: I(["krds-help-panel", { expand: t.value }])
2021
2025
  }, [
2022
- r("div", Ft, [
2023
- r("div", Ot, [
2024
- J(c.$slots, "default"),
2025
- r("button", {
2026
+ d("div", qt, [
2027
+ d("div", Nt, [
2028
+ J(v.$slots, "default"),
2029
+ d("button", {
2026
2030
  type: "button",
2027
2031
  class: "krds-btn small tertiary btn-help-panel fold",
2028
- onClick: o
2029
- }, [...d[1] || (d[1] = [
2030
- r("span", { class: "sr-only" }, "도움말", -1),
2032
+ onClick: r
2033
+ }, [...p[1] || (p[1] = [
2034
+ d("span", { class: "sr-only" }, "도움말", -1),
2031
2035
  A(" 접어두기 ", -1),
2032
- r("i", { class: "svg-icon ico-angle right" }, null, -1)
2036
+ d("i", { class: "svg-icon ico-angle right" }, null, -1)
2033
2037
  ])])
2034
2038
  ])
2035
2039
  ])
2036
2040
  ], 2)
2037
2041
  ]));
2038
2042
  }
2039
- }), Nt = { class: "tooltip-action" }, Ht = {
2043
+ }), jt = { class: "tooltip-action" }, Wt = {
2040
2044
  key: 0,
2041
2045
  class: "svg-icon ico-help"
2042
- }, jt = {
2046
+ }, Yt = {
2043
2047
  key: 1,
2044
2048
  class: "svg-icon ico-tooltip"
2045
- }, Wt = { class: "tooltip-title" }, Yt = { class: "tooltip-contents" }, Gt = /* @__PURE__ */ B({
2049
+ }, Gt = { class: "tooltip-title" }, Ut = { class: "tooltip-contents" }, Xt = /* @__PURE__ */ B({
2046
2050
  __name: "KrdsContextualHelp",
2047
2051
  props: {
2048
2052
  tooltipTitle: { default: "도움말 제목" },
@@ -2050,84 +2054,84 @@ const bt = B({
2050
2054
  position: { default: "top left" }
2051
2055
  },
2052
2056
  setup(e) {
2053
- const i = e, n = K(), a = K(), t = K(), s = K(), o = K(!1), c = () => {
2054
- const l = o.value;
2055
- g(), l || d();
2056
- }, d = () => {
2057
- if (!t.value || !a.value) return;
2058
- o.value = !0, t.value.style.display = "block", a.value.setAttribute("aria-expanded", "true"), t.value.querySelector('a, button, [tabindex="0"], input, textarea, select')?.focus(), _();
2059
- }, m = () => {
2060
- !t.value || !a.value || (o.value = !1, t.value.style.display = "none", a.value.setAttribute("aria-expanded", "false"));
2061
- }, g = () => {
2062
- const l = document.querySelectorAll(".krds-contextual-help .tooltip-popover"), h = document.querySelectorAll(".krds-contextual-help .tooltip-btn");
2063
- l.forEach((u) => {
2064
- u.style.display = "none";
2065
- }), h.forEach((u) => {
2066
- u.setAttribute("aria-expanded", "false");
2067
- }), o.value = !1;
2068
- }, _ = () => {
2069
- if (!n.value || !t.value) return;
2070
- const l = window.innerWidth <= 768, h = n.value.querySelector(".tooltip-action");
2057
+ const o = e, s = K(), n = K(), t = K(), a = K(), r = K(!1), v = () => {
2058
+ const l = r.value;
2059
+ y(), l || p();
2060
+ }, p = () => {
2061
+ if (!t.value || !n.value) return;
2062
+ r.value = !0, t.value.style.display = "block", n.value.setAttribute("aria-expanded", "true"), t.value.querySelector('a, button, [tabindex="0"], input, textarea, select')?.focus(), S();
2063
+ }, h = () => {
2064
+ !t.value || !n.value || (r.value = !1, t.value.style.display = "none", n.value.setAttribute("aria-expanded", "false"));
2065
+ }, y = () => {
2066
+ const l = document.querySelectorAll(".krds-contextual-help .tooltip-popover"), u = document.querySelectorAll(".krds-contextual-help .tooltip-btn");
2067
+ l.forEach((i) => {
2068
+ i.style.display = "none";
2069
+ }), u.forEach((i) => {
2070
+ i.setAttribute("aria-expanded", "false");
2071
+ }), r.value = !1;
2072
+ }, S = () => {
2073
+ if (!s.value || !t.value) return;
2074
+ const l = window.innerWidth <= 768, u = s.value.querySelector(".tooltip-action");
2071
2075
  if (l) {
2072
- const f = getComputedStyle(document.querySelector(":root")).getPropertyValue("--krds-contents-padding-x").trim().split("px")[0], R = h.getBoundingClientRect().left - parseInt(f), E = document.body.clientWidth - parseInt(f) * 2;
2073
- t.value.style.left = `-${R}px`, t.value.style.width = `${E}px`;
2076
+ const f = getComputedStyle(document.querySelector(":root")).getPropertyValue("--krds-contents-padding-x").trim().split("px")[0], R = u.getBoundingClientRect().left - parseInt(f), L = document.body.clientWidth - parseInt(f) * 2;
2077
+ t.value.style.left = `-${R}px`, t.value.style.width = `${L}px`;
2074
2078
  } else
2075
2079
  t.value.style.left = "", t.value.style.right = "", t.value.style.width = "360px";
2076
- }, k = (l) => {
2077
- (l.key === "Escape" || l.key === "Esc") && g();
2080
+ }, b = (l) => {
2081
+ (l.key === "Escape" || l.key === "Esc") && y();
2078
2082
  }, D = (l) => {
2079
- l.target.closest(".tooltip-action") || g();
2080
- }, p = () => {
2081
- o.value && _();
2083
+ l.target.closest(".tooltip-action") || y();
2084
+ }, m = () => {
2085
+ r.value && S();
2082
2086
  };
2083
2087
  return le(() => {
2084
- n.value && (a.value && a.value.setAttribute("aria-expanded", "false"), t.value && t.value.setAttribute("role", "tooltip"), document.addEventListener("keydown", k), document.addEventListener("click", D), window.addEventListener("resize", p));
2088
+ s.value && (n.value && n.value.setAttribute("aria-expanded", "false"), t.value && t.value.setAttribute("role", "tooltip"), document.addEventListener("keydown", b), document.addEventListener("click", D), window.addEventListener("resize", m));
2085
2089
  }), X(() => {
2086
- document.removeEventListener("keydown", k), document.removeEventListener("click", D), window.removeEventListener("resize", p);
2087
- }), (l, h) => (S(), w("div", {
2090
+ document.removeEventListener("keydown", b), document.removeEventListener("click", D), window.removeEventListener("resize", m);
2091
+ }), (l, u) => (k(), w("div", {
2088
2092
  ref_key: "containerRef",
2089
- ref: n,
2090
- class: I(["krds-contextual-help", i.position])
2093
+ ref: s,
2094
+ class: I(["krds-contextual-help", o.position])
2091
2095
  }, [
2092
- r("div", Nt, [
2093
- r("button", {
2096
+ d("div", jt, [
2097
+ d("button", {
2094
2098
  ref_key: "tooltipBtnRef",
2095
- ref: a,
2099
+ ref: n,
2096
2100
  type: "button",
2097
2101
  class: "krds-btn medium icon tooltip-btn",
2098
- onClick: c
2102
+ onClick: v
2099
2103
  }, [
2100
- h[0] || (h[0] = r("span", { class: "sr-only" }, "도움말", -1)),
2101
- i.helpIcon ? (S(), w("i", Ht)) : (S(), w("i", jt))
2104
+ u[0] || (u[0] = d("span", { class: "sr-only" }, "도움말", -1)),
2105
+ o.helpIcon ? (k(), w("i", Wt)) : (k(), w("i", Yt))
2102
2106
  ], 512),
2103
- r("div", {
2107
+ d("div", {
2104
2108
  ref_key: "tooltipPopoverRef",
2105
2109
  ref: t,
2106
2110
  class: "tooltip-popover",
2107
2111
  role: "tooltip"
2108
2112
  }, [
2109
- r("h4", Wt, L(i.tooltipTitle), 1),
2110
- r("div", Yt, [
2113
+ d("h4", Gt, E(o.tooltipTitle), 1),
2114
+ d("div", Ut, [
2111
2115
  J(l.$slots, "default")
2112
2116
  ]),
2113
- r("button", {
2117
+ d("button", {
2114
2118
  ref_key: "closeBtnRef",
2115
- ref: s,
2119
+ ref: a,
2116
2120
  type: "button",
2117
2121
  class: "krds-btn xsmall icon tooltip-close",
2118
- onClick: m
2119
- }, [...h[1] || (h[1] = [
2120
- r("span", { class: "sr-only" }, "닫기", -1),
2121
- r("i", { class: "svg-icon ico-modal-close" }, null, -1)
2122
+ onClick: h
2123
+ }, [...u[1] || (u[1] = [
2124
+ d("span", { class: "sr-only" }, "닫기", -1),
2125
+ d("i", { class: "svg-icon ico-modal-close" }, null, -1)
2122
2126
  ])], 512)
2123
2127
  ], 512)
2124
2128
  ])
2125
2129
  ], 2));
2126
2130
  }
2127
- }), Ut = {
2131
+ }), Jt = {
2128
2132
  key: 0,
2129
2133
  class: "coach-balloon"
2130
- }, Xt = { class: "coach-tit" }, Jt = { class: "desc" }, Qt = { class: "coach-controls" }, Zt = { class: "num" }, el = { class: "btn-wrap" }, tl = /* @__PURE__ */ B({
2134
+ }, Qt = { class: "coach-tit" }, Zt = { class: "desc" }, el = { class: "coach-controls" }, tl = { class: "num" }, ll = { class: "btn-wrap" }, al = /* @__PURE__ */ B({
2131
2135
  __name: "KrdsCoachMark",
2132
2136
  props: {
2133
2137
  coachMarkClass: { default: "" },
@@ -2139,57 +2143,57 @@ const bt = B({
2139
2143
  id: {}
2140
2144
  },
2141
2145
  emits: ["update:modelValue", "close"],
2142
- setup(e, { emit: i }) {
2143
- const n = e, a = y(() => {
2144
- const d = n.activeStep - 1;
2145
- return n.stepsData && d >= 0 && d < n.stepsData.length ? n.stepsData[d] : null;
2146
- }), t = i, s = () => {
2147
- n.activeStep > 1 && t("update:modelValue", n.activeStep - 1);
2148
- }, o = () => {
2149
- n.activeStep < n.stepsData.length && t("update:modelValue", n.activeStep + 1);
2150
- }, c = () => {
2146
+ setup(e, { emit: o }) {
2147
+ const s = e, n = g(() => {
2148
+ const p = s.activeStep - 1;
2149
+ return s.stepsData && p >= 0 && p < s.stepsData.length ? s.stepsData[p] : null;
2150
+ }), t = o, a = () => {
2151
+ s.activeStep > 1 && t("update:modelValue", s.activeStep - 1);
2152
+ }, r = () => {
2153
+ s.activeStep < s.stepsData.length && t("update:modelValue", s.activeStep + 1);
2154
+ }, v = () => {
2151
2155
  t("close");
2152
2156
  };
2153
- return (d, m) => (S(), w("div", {
2154
- class: I(["krds-coach-mark", d.coachMarkClass]),
2155
- style: ae(d.style)
2157
+ return (p, h) => (k(), w("div", {
2158
+ class: I(["krds-coach-mark", e.coachMarkClass]),
2159
+ style: ne(e.style)
2156
2160
  }, [
2157
- d.modelValue === d.activeStep && a.value ? (S(), w("div", Ut, [
2158
- m[2] || (m[2] = r("h5", { class: "sr-only" }, "따라하기 가이드", -1)),
2159
- r("h6", Xt, L(d.activeStep) + "단계 : " + L(a.value.title), 1),
2160
- r("p", Jt, L(a.value.description), 1),
2161
- r("div", Qt, [
2162
- r("div", Zt, [
2163
- m[0] || (m[0] = r("span", { class: "sr-only" }, "현재 단계", -1)),
2164
- r("strong", null, L(d.activeStep), 1),
2165
- m[1] || (m[1] = r("span", { class: "sr-only" }, "총 단계", -1)),
2166
- r("span", null, L(d.stepsData.length), 1)
2161
+ e.modelValue === e.activeStep && n.value ? (k(), w("div", Jt, [
2162
+ h[2] || (h[2] = d("h5", { class: "sr-only" }, "따라하기 가이드", -1)),
2163
+ d("h6", Qt, E(e.activeStep) + "단계 : " + E(n.value.title), 1),
2164
+ d("p", Zt, E(n.value.description), 1),
2165
+ d("div", el, [
2166
+ d("div", tl, [
2167
+ h[0] || (h[0] = d("span", { class: "sr-only" }, "현재 단계", -1)),
2168
+ d("strong", null, E(e.activeStep), 1),
2169
+ h[1] || (h[1] = d("span", { class: "sr-only" }, "총 단계", -1)),
2170
+ d("span", null, E(e.stepsData.length), 1)
2167
2171
  ]),
2168
- r("div", el, [
2169
- r("button", {
2172
+ d("div", ll, [
2173
+ d("button", {
2170
2174
  type: "button",
2171
2175
  class: "krds-btn small text",
2172
- onClick: c
2176
+ onClick: v
2173
2177
  }, "그만보기"),
2174
- d.activeStep !== 1 ? (S(), w("button", {
2178
+ e.activeStep !== 1 ? (k(), w("button", {
2175
2179
  key: 0,
2176
2180
  type: "button",
2177
2181
  class: "krds-btn small text",
2178
- onClick: s
2182
+ onClick: a
2179
2183
  }, "이전으로")) : Y("", !0),
2180
- d.activeStep !== d.stepsData.length ? (S(), w("button", {
2184
+ e.activeStep !== e.stepsData.length ? (k(), w("button", {
2181
2185
  key: 1,
2182
2186
  type: "button",
2183
2187
  class: "krds-btn small tertiary",
2184
- onClick: o
2188
+ onClick: r
2185
2189
  }, "다음으로")) : Y("", !0)
2186
2190
  ])
2187
2191
  ])
2188
2192
  ])) : Y("", !0),
2189
- J(d.$slots, "coach-mark-content")
2193
+ J(p.$slots, "coach-mark-content")
2190
2194
  ], 6));
2191
2195
  }
2192
- }), ll = ["disabled", "aria-labelledby"], al = ["id", "aria-hidden"], sl = { class: "sr-only" }, nl = /* @__PURE__ */ B({
2196
+ }), nl = ["disabled", "aria-labelledby"], sl = ["id", "aria-hidden"], ol = { class: "sr-only" }, il = /* @__PURE__ */ B({
2193
2197
  __name: "KrdsTooltip",
2194
2198
  props: {
2195
2199
  type: { default: "default" },
@@ -2202,83 +2206,83 @@ const bt = B({
2202
2206
  id: {}
2203
2207
  },
2204
2208
  setup(e) {
2205
- const i = e, n = K(null), a = K(null), t = K(!1), s = K({}), o = K(`tooltip-popover-${Math.random().toString(36).substring(2, 9)}`), c = K(!1), d = y(() => {
2209
+ const o = e, s = K(null), n = K(null), t = K(!1), a = K({}), r = K(`tooltip-popover-${Math.random().toString(36).substring(2, 9)}`), v = K(!1), p = g(() => {
2206
2210
  const f = ["krds-btn", "krds-tooltip"];
2207
- return i.type === "default" ? f.push("small", "text") : i.type === "icon" ? f.push("icon") : i.type === "button" && f.push(""), !i.box && i.vertical && f.push("tooltip-vertical"), i.box && !i.vertical && f.push("tooltip-box"), f.join(" ");
2208
- }), m = y(() => {
2211
+ return o.type === "default" ? f.push("small", "text") : o.type === "icon" ? f.push("icon") : o.type === "button" && f.push(""), !o.box && o.vertical && f.push("tooltip-vertical"), o.box && !o.vertical && f.push("tooltip-box"), f.join(" ");
2212
+ }), h = g(() => {
2209
2213
  const f = [];
2210
- return i.box && f.push("tooltip-box"), i.vertical && f.push("tooltip-vertical"), t.value && f.push("active"), f;
2211
- }), g = y(() => n.value?.querySelector("button")?.textContent?.trim() || ""), _ = () => window.innerWidth <= 768, k = () => {
2212
- if (!n.value || !a.value) return;
2213
- const f = n.value.querySelector("button");
2214
+ return o.box && f.push("tooltip-box"), o.vertical && f.push("tooltip-vertical"), t.value && f.push("active"), f;
2215
+ }), y = g(() => s.value?.querySelector("button")?.textContent?.trim() || ""), S = () => window.innerWidth <= 768, b = () => {
2216
+ if (!s.value || !n.value) return;
2217
+ const f = s.value.querySelector("button");
2214
2218
  if (!f) return;
2215
- const x = 12, { clientHeight: R, clientWidth: E } = a.value, { top: M, left: z, right: H, height: V, width: j } = f.getBoundingClientRect(), Z = window.innerWidth / 2, se = window.innerHeight / 2;
2219
+ const x = 12, { clientHeight: R, clientWidth: L } = n.value, { top: M, left: z, right: H, height: V, width: j } = f.getBoundingClientRect(), Z = window.innerWidth / 2, se = window.innerHeight / 2;
2216
2220
  let U, O;
2217
2221
  const q = [];
2218
- c.value || i.box || i.vertical ? (M + V > se ? (U = M - R - x, q.push("top")) : (U = M + V + x, q.push("bottom")), z + j > Z ? (O = H - E, q.push("right"), window.innerWidth - (z + j) > E / 2 && (O = z + (j - E) / 2, q.splice(q.indexOf("right"), 1))) : (O = z + (j - E) / 2, O < 0 && (O = z, q.push("left")))) : (U = M + (V - R) / 2, z + j > Z ? (O = z - E - x, q.push("right")) : O = H + x);
2222
+ v.value || o.box || o.vertical ? (M + V > se ? (U = M - R - x, q.push("top")) : (U = M + V + x, q.push("bottom")), z + j > Z ? (O = H - L, q.push("right"), window.innerWidth - (z + j) > L / 2 && (O = z + (j - L) / 2, q.splice(q.indexOf("right"), 1))) : (O = z + (j - L) / 2, O < 0 && (O = z, q.push("left")))) : (U = M + (V - R) / 2, z + j > Z ? (O = z - L - x, q.push("right")) : O = H + x);
2219
2223
  const ee = window.innerWidth <= 420;
2220
- s.value = {
2224
+ a.value = {
2221
2225
  top: `${U}px`,
2222
2226
  left: ee ? "50%" : `${O}px`,
2223
2227
  transform: ee ? "translateX(-50%)" : "none"
2224
- }, a.value && (a.value.className = `krds-tooltip-popover ${q.join(" ")} ${m.value.join(" ")}`);
2228
+ }, n.value && (n.value.className = `krds-tooltip-popover ${q.join(" ")} ${h.value.join(" ")}`);
2225
2229
  }, D = async () => {
2226
- i.disabled || !i.tooltipContent || (t.value = !0, await Le(), k());
2227
- }, p = () => {
2228
- t.value = !1, s.value = {};
2230
+ o.disabled || !o.tooltipContent || (t.value = !0, await we(), b());
2231
+ }, m = () => {
2232
+ t.value = !1, a.value = {};
2229
2233
  }, l = (f) => {
2230
- (f.key === "Escape" || f.key === "Esc") && t.value && p();
2231
- }, h = () => {
2232
- c.value = _(), t.value && p();
2234
+ (f.key === "Escape" || f.key === "Esc") && t.value && m();
2233
2235
  }, u = () => {
2234
- t.value && p();
2236
+ v.value = S(), t.value && m();
2237
+ }, i = () => {
2238
+ t.value && m();
2235
2239
  };
2236
2240
  return le(() => {
2237
- c.value = _(), document.addEventListener("keydown", l), window.addEventListener("scroll", u), window.addEventListener("resize", h);
2241
+ v.value = S(), document.addEventListener("keydown", l), window.addEventListener("scroll", i), window.addEventListener("resize", u);
2238
2242
  }), X(() => {
2239
- document.removeEventListener("keydown", l), window.removeEventListener("scroll", u), window.removeEventListener("resize", h);
2240
- }), (f, x) => (S(), w("div", {
2243
+ document.removeEventListener("keydown", l), window.removeEventListener("scroll", i), window.removeEventListener("resize", u);
2244
+ }), (f, x) => (k(), w("div", {
2241
2245
  ref_key: "containerRef",
2242
- ref: n
2246
+ ref: s
2243
2247
  }, [
2244
- r("button", {
2248
+ d("button", {
2245
2249
  type: "button",
2246
- class: I(d.value),
2247
- disabled: f.disabled,
2248
- "aria-labelledby": o.value,
2250
+ class: I(p.value),
2251
+ disabled: e.disabled,
2252
+ "aria-labelledby": r.value,
2249
2253
  onMouseover: D,
2250
- onMouseout: p,
2254
+ onMouseout: m,
2251
2255
  onFocusin: D,
2252
- onFocusout: p
2256
+ onFocusout: m
2253
2257
  }, [
2254
2258
  J(f.$slots, "default")
2255
- ], 42, ll),
2256
- Q(r("div", {
2257
- id: o.value,
2259
+ ], 42, nl),
2260
+ Q(d("div", {
2261
+ id: r.value,
2258
2262
  ref_key: "popoverRef",
2259
- ref: a,
2260
- class: I(["krds-tooltip-popover", m.value]),
2261
- style: ae(s.value),
2263
+ ref: n,
2264
+ class: I(["krds-tooltip-popover", h.value]),
2265
+ style: ne(a.value),
2262
2266
  "aria-hidden": !t.value,
2263
2267
  role: "tooltip"
2264
2268
  }, [
2265
- r("span", sl, L(g.value), 1),
2266
- A(" " + L(f.tooltipContent), 1)
2267
- ], 14, al), [
2269
+ d("span", ol, E(y.value), 1),
2270
+ A(" " + E(e.tooltipContent), 1)
2271
+ ], 14, sl), [
2268
2272
  [te, t.value]
2269
2273
  ])
2270
2274
  ], 512));
2271
2275
  }
2272
- }), ol = ["aria-expanded"], il = { class: "drop-in" }, rl = {
2276
+ }), rl = ["aria-expanded"], dl = { class: "drop-in" }, ul = {
2273
2277
  key: 0,
2274
2278
  class: "drop-top"
2275
- }, ul = {
2279
+ }, cl = {
2276
2280
  key: 1,
2277
2281
  class: "drop-list"
2278
- }, dl = ["lang", "aria-selected", "onClick"], cl = { class: "sr-only" }, fl = {
2282
+ }, fl = ["lang", "aria-selected", "onClick"], vl = { class: "sr-only" }, pl = {
2279
2283
  key: 2,
2280
2284
  class: "drop-list"
2281
- }, vl = ["href", "lang"], pl = /* @__PURE__ */ B({
2285
+ }, ml = ["href", "lang"], hl = /* @__PURE__ */ B({
2282
2286
  __name: "KrdsLanguageSwitcher",
2283
2287
  props: {
2284
2288
  languageList: {},
@@ -2290,191 +2294,191 @@ const bt = B({
2290
2294
  id: {}
2291
2295
  },
2292
2296
  emits: ["update:modelValue", "close"],
2293
- setup(e, { emit: i }) {
2294
- const n = e, a = i, t = K(!1), s = K(), o = K(), c = () => {
2295
- t.value = !t.value, t.value && s.value && g();
2296
- }, d = () => {
2297
+ setup(e, { emit: o }) {
2298
+ const s = e, n = o, t = K(!1), a = K(), r = K(), v = () => {
2299
+ t.value = !t.value, t.value && a.value && y();
2300
+ }, p = () => {
2297
2301
  t.value = !1;
2298
- }, m = (l) => {
2299
- a("update:modelValue", l), d(), a("close"), o.value?.focus();
2300
- }, g = () => {
2301
- if (!s.value) return;
2302
- const l = s.value.querySelector(".drop-menu");
2302
+ }, h = (l) => {
2303
+ n("update:modelValue", l), p(), n("close"), r.value?.focus();
2304
+ }, y = () => {
2305
+ if (!a.value) return;
2306
+ const l = a.value.querySelector(".drop-menu");
2303
2307
  if (!l) return;
2304
- const h = l.getBoundingClientRect(), u = window.innerWidth;
2305
- s.value.classList.remove("drop-left", "drop-right"), h.left < 0 ? s.value.classList.add("drop-left") : u < h.left + h.width && s.value.classList.add("drop-right");
2306
- }, _ = (l) => {
2307
- l.key === "Escape" && (d(), o.value?.focus());
2308
- }, k = (l) => {
2309
- s.value?.contains(l.target) || d();
2308
+ const u = l.getBoundingClientRect(), i = window.innerWidth;
2309
+ a.value.classList.remove("drop-left", "drop-right"), u.left < 0 ? a.value.classList.add("drop-left") : i < u.left + u.width && a.value.classList.add("drop-right");
2310
+ }, S = (l) => {
2311
+ l.key === "Escape" && (p(), r.value?.focus());
2312
+ }, b = (l) => {
2313
+ a.value?.contains(l.target) || p();
2310
2314
  }, D = (l) => {
2311
- s.value?.contains(l.relatedTarget) || d();
2312
- }, p = (l) => {
2313
- if (!s.value) return;
2314
- s.value.querySelectorAll(".drop-list .item-link").forEach((f) => {
2315
+ a.value?.contains(l.relatedTarget) || p();
2316
+ }, m = (l) => {
2317
+ if (!a.value) return;
2318
+ a.value.querySelectorAll(".drop-list .item-link").forEach((f) => {
2315
2319
  f.style.position = "relative", f.style.zIndex = "0";
2316
2320
  });
2317
- const u = l.target;
2318
- u.style.zIndex = "1";
2321
+ const i = l.target;
2322
+ i.style.zIndex = "1";
2319
2323
  };
2320
- return ue(t, (l) => {
2321
- l ? (document.addEventListener("keydown", _), document.addEventListener("click", k)) : (document.removeEventListener("keydown", _), document.removeEventListener("click", k));
2324
+ return ae(t, (l) => {
2325
+ l ? (document.addEventListener("keydown", S), document.addEventListener("click", b)) : (document.removeEventListener("keydown", S), document.removeEventListener("click", b));
2322
2326
  }), X(() => {
2323
- document.removeEventListener("keydown", _), document.removeEventListener("click", k);
2324
- }), (l, h) => (S(), w("div", {
2327
+ document.removeEventListener("keydown", S), document.removeEventListener("click", b);
2328
+ }), (l, u) => (k(), w("div", {
2325
2329
  ref_key: "dropdownRef",
2326
- ref: s,
2330
+ ref: a,
2327
2331
  class: I(["krds-drop-wrap krds-language", {
2328
2332
  active: t.value,
2329
- "drop-left": n.dropPosition === "left",
2330
- "drop-right": n.dropPosition === "right"
2333
+ "drop-left": s.dropPosition === "left",
2334
+ "drop-right": s.dropPosition === "right"
2331
2335
  }]),
2332
2336
  onFocusout: D
2333
2337
  }, [
2334
- r("button", {
2338
+ d("button", {
2335
2339
  ref_key: "buttonRef",
2336
- ref: o,
2340
+ ref: r,
2337
2341
  type: "button",
2338
2342
  class: I(["krds-btn small text drop-btn", { active: t.value }]),
2339
2343
  "aria-expanded": t.value,
2340
- onClick: c
2344
+ onClick: v
2341
2345
  }, [
2342
- h[0] || (h[0] = r("i", { class: "svg-icon ico-global" }, null, -1)),
2346
+ u[0] || (u[0] = d("i", { class: "svg-icon ico-global" }, null, -1)),
2343
2347
  J(l.$slots, "default"),
2344
- h[1] || (h[1] = r("i", { class: "svg-icon ico-toggle" }, null, -1))
2345
- ], 10, ol),
2346
- r("div", {
2348
+ u[1] || (u[1] = d("i", { class: "svg-icon ico-toggle" }, null, -1))
2349
+ ], 10, rl),
2350
+ d("div", {
2347
2351
  class: "drop-menu",
2348
- style: ae({ display: t.value ? "block" : "none" })
2352
+ style: ne({ display: t.value ? "block" : "none" })
2349
2353
  }, [
2350
- r("div", il, [
2351
- l.$slots["prev-item"] ? (S(), w("div", rl, [
2354
+ d("div", dl, [
2355
+ l.$slots["prev-item"] ? (k(), w("div", ul, [
2352
2356
  J(l.$slots, "prev-item")
2353
2357
  ])) : Y("", !0),
2354
- n.type === "default" ? (S(), w("ul", ul, [
2355
- (S(!0), w(F, null, N(l.languageList, (u) => (S(), w("li", {
2356
- key: u.code
2358
+ s.type === "default" ? (k(), w("ul", cl, [
2359
+ (k(!0), w(F, null, N(e.languageList, (i) => (k(), w("li", {
2360
+ key: i.code
2357
2361
  }, [
2358
- r("a", {
2362
+ d("a", {
2359
2363
  href: "#",
2360
- class: I(["item-link", { active: n.modelValue === u.code }]),
2361
- lang: u.code,
2362
- "aria-selected": n.modelValue === u.code,
2363
- onClick: re((f) => m(u.code), ["prevent"]),
2364
- onFocus: p
2364
+ class: I(["item-link", { active: s.modelValue === i.code }]),
2365
+ lang: i.code,
2366
+ "aria-selected": s.modelValue === i.code,
2367
+ onClick: de((f) => h(i.code), ["prevent"]),
2368
+ onFocus: m
2365
2369
  }, [
2366
- A(L(u.name) + " ", 1),
2367
- r("span", cl, L(n.modelValue === u.code ? "선택됨" : ""), 1)
2368
- ], 42, dl)
2370
+ A(E(i.name) + " ", 1),
2371
+ d("span", vl, E(s.modelValue === i.code ? "선택됨" : ""), 1)
2372
+ ], 42, fl)
2369
2373
  ]))), 128))
2370
- ])) : n.type === "external" ? (S(), w("ul", fl, [
2371
- (S(!0), w(F, null, N(l.languageList, (u) => (S(), w("li", {
2372
- key: u.code
2374
+ ])) : s.type === "external" ? (k(), w("ul", pl, [
2375
+ (k(!0), w(F, null, N(e.languageList, (i) => (k(), w("li", {
2376
+ key: i.code
2373
2377
  }, [
2374
- r("a", {
2375
- href: u.url || "#",
2378
+ d("a", {
2379
+ href: i.url || "#",
2376
2380
  class: "item-link",
2377
- lang: u.code,
2381
+ lang: i.code,
2378
2382
  target: "_blank",
2379
2383
  title: "새 창 열림",
2380
- onFocus: p
2384
+ onFocus: m
2381
2385
  }, [
2382
- A(L(u.name) + " ", 1),
2383
- h[2] || (h[2] = r("i", { class: "svg-icon ico-go" }, null, -1))
2384
- ], 40, vl)
2386
+ A(E(i.name) + " ", 1),
2387
+ u[2] || (u[2] = d("i", { class: "svg-icon ico-go" }, null, -1))
2388
+ ], 40, ml)
2385
2389
  ]))), 128))
2386
2390
  ])) : Y("", !0)
2387
2391
  ])
2388
2392
  ], 4)
2389
2393
  ], 34));
2390
2394
  }
2391
- }), hl = { class: "drop-in" }, ml = { class: "drop-list" }, yl = ["data-adjust-scale", "onClick"], gl = { class: "drop-bottom" }, kl = /* @__PURE__ */ B({
2395
+ }), yl = { class: "drop-in" }, gl = { class: "drop-list" }, bl = ["data-adjust-scale", "onClick"], kl = { class: "drop-bottom" }, Sl = /* @__PURE__ */ B({
2392
2396
  __name: "KrdsResize",
2393
2397
  emits: ["update:modelValue", "close"],
2394
- setup(e, { emit: i }) {
2395
- const n = i, a = K(!1), t = K(), s = K(), o = K("md"), c = [
2398
+ setup(e, { emit: o }) {
2399
+ const s = o, n = K(!1), t = K(), a = K(), r = K("md"), v = [
2396
2400
  { key: "sm", label: "작게", zoom: "0.9" },
2397
2401
  { key: "md", label: "보통", zoom: "1" },
2398
2402
  { key: "lg", label: "조금 크게", zoom: "1.1" },
2399
2403
  { key: "xlg", label: "크게", zoom: "1.3" },
2400
2404
  { key: "xxlg", label: "가장 크게", zoom: "1.5" }
2401
- ], d = () => {
2402
- a.value = !a.value, a.value && t.value && k();
2403
- }, m = () => {
2404
- a.value = !1;
2405
- }, g = (u) => {
2406
- m(), n("close"), s.value?.focus(), o.value = u.key, document.body.style.zoom = u?.zoom;
2407
- }, _ = () => {
2408
- const u = c.find((f) => f.key === "md");
2409
- u && g(u);
2410
- }, k = () => {
2405
+ ], p = () => {
2406
+ n.value = !n.value, n.value && t.value && b();
2407
+ }, h = () => {
2408
+ n.value = !1;
2409
+ }, y = (i) => {
2410
+ h(), s("close"), a.value?.focus(), r.value = i.key, document.body.style.zoom = i?.zoom;
2411
+ }, S = () => {
2412
+ const i = v.find((f) => f.key === "md");
2413
+ i && y(i);
2414
+ }, b = () => {
2411
2415
  if (!t.value) return;
2412
- const u = t.value.querySelector(".drop-menu");
2413
- if (!u) return;
2414
- const f = u.getBoundingClientRect(), x = window.innerWidth;
2416
+ const i = t.value.querySelector(".drop-menu");
2417
+ if (!i) return;
2418
+ const f = i.getBoundingClientRect(), x = window.innerWidth;
2415
2419
  t.value.classList.remove("drop-left", "drop-right"), f.left < 0 ? t.value.classList.add("drop-left") : x < f.left + f.width && t.value.classList.add("drop-right");
2416
- }, D = (u) => {
2417
- u.key === "Escape" && (m(), s.value?.focus());
2418
- }, p = (u) => {
2419
- t.value?.contains(u.target) || m();
2420
- }, l = (u) => {
2421
- t.value?.contains(u.relatedTarget) || m();
2422
- }, h = (u) => {
2420
+ }, D = (i) => {
2421
+ i.key === "Escape" && (h(), a.value?.focus());
2422
+ }, m = (i) => {
2423
+ t.value?.contains(i.target) || h();
2424
+ }, l = (i) => {
2425
+ t.value?.contains(i.relatedTarget) || h();
2426
+ }, u = (i) => {
2423
2427
  if (!t.value) return;
2424
2428
  t.value.querySelectorAll(".drop-list .item-link").forEach((R) => {
2425
2429
  R.style.position = "relative", R.style.zIndex = "0";
2426
2430
  });
2427
- const x = u.target;
2431
+ const x = i.target;
2428
2432
  x.style.zIndex = "1";
2429
2433
  };
2430
- return ue(a, (u) => {
2431
- u ? (document.addEventListener("keydown", D), document.addEventListener("click", p)) : (document.removeEventListener("keydown", D), document.removeEventListener("click", p));
2434
+ return ae(n, (i) => {
2435
+ i ? (document.addEventListener("keydown", D), document.addEventListener("click", m)) : (document.removeEventListener("keydown", D), document.removeEventListener("click", m));
2432
2436
  }), X(() => {
2433
- document.removeEventListener("keydown", D), document.removeEventListener("click", p);
2434
- }), (u, f) => (S(), w("div", {
2437
+ document.removeEventListener("keydown", D), document.removeEventListener("click", m);
2438
+ }), (i, f) => (k(), w("div", {
2435
2439
  ref_key: "dropdownRef",
2436
2440
  ref: t,
2437
2441
  class: "krds-drop-wrap krds-resize",
2438
2442
  "data-adjust": "scale",
2439
2443
  onFocusout: l
2440
2444
  }, [
2441
- r("button", {
2445
+ d("button", {
2442
2446
  ref_key: "buttonRef",
2443
- ref: s,
2447
+ ref: a,
2444
2448
  type: "button",
2445
2449
  class: "krds-btn small text drop-btn",
2446
- onClick: d
2450
+ onClick: p
2447
2451
  }, [...f[0] || (f[0] = [
2448
2452
  A(" 화면크기 ", -1),
2449
- r("i", { class: "svg-icon ico-toggle" }, null, -1)
2453
+ d("i", { class: "svg-icon ico-toggle" }, null, -1)
2450
2454
  ])], 512),
2451
- r("div", {
2455
+ d("div", {
2452
2456
  class: "drop-menu",
2453
- style: ae({ display: a.value ? "block" : "none" })
2457
+ style: ne({ display: n.value ? "block" : "none" })
2454
2458
  }, [
2455
- r("div", hl, [
2456
- r("ul", ml, [
2457
- (S(), w(F, null, N(c, (x) => r("li", {
2459
+ d("div", yl, [
2460
+ d("ul", gl, [
2461
+ (k(), w(F, null, N(v, (x) => d("li", {
2458
2462
  key: x.key
2459
2463
  }, [
2460
- r("button", {
2464
+ d("button", {
2461
2465
  type: "button",
2462
- class: I(["item-link", [x.key, x.key === o.value ? "active" : ""]]),
2466
+ class: I(["item-link", [x.key, x.key === r.value ? "active" : ""]]),
2463
2467
  "data-adjust-scale": x.key,
2464
- onClick: re((R) => g(x), ["prevent"]),
2465
- onFocus: h
2466
- }, L(x.label), 43, yl)
2468
+ onClick: de((R) => y(x), ["prevent"]),
2469
+ onFocus: u
2470
+ }, E(x.label), 43, bl)
2467
2471
  ])), 64))
2468
2472
  ]),
2469
- r("div", gl, [
2470
- r("button", {
2473
+ d("div", kl, [
2474
+ d("button", {
2471
2475
  type: "button",
2472
2476
  class: "krds-btn medium text",
2473
2477
  "data-adjust-scale": "md",
2474
- onClick: re(_, ["prevent"]),
2475
- onFocus: h
2478
+ onClick: de(S, ["prevent"]),
2479
+ onFocus: u
2476
2480
  }, [...f[1] || (f[1] = [
2477
- r("i", { class: "svg-icon ico-reset" }, null, -1),
2481
+ d("i", { class: "svg-icon ico-reset" }, null, -1),
2478
2482
  A(" 초기화 ", -1)
2479
2483
  ])], 32)
2480
2484
  ])
@@ -2482,111 +2486,237 @@ const bt = B({
2482
2486
  ], 4)
2483
2487
  ], 544));
2484
2488
  }
2489
+ }), wl = B({
2490
+ name: "KrdsModal",
2491
+ props: {
2492
+ modelValue: {
2493
+ type: Boolean,
2494
+ default: !1
2495
+ },
2496
+ modalId: {
2497
+ type: String,
2498
+ default: void 0
2499
+ },
2500
+ backdrop: {
2501
+ type: Boolean,
2502
+ default: !0
2503
+ },
2504
+ size: {
2505
+ type: String,
2506
+ default: "medium"
2507
+ },
2508
+ full: {
2509
+ type: Boolean,
2510
+ default: !1
2511
+ },
2512
+ bottomSheet: {
2513
+ type: Boolean,
2514
+ default: !1
2515
+ },
2516
+ persistent: {
2517
+ type: Boolean,
2518
+ default: !1
2519
+ }
2520
+ },
2521
+ emits: ["update:modelValue"],
2522
+ slots: Object,
2523
+ setup(e, { slots: o, emit: s }) {
2524
+ const n = Ie()?.uid, t = g(() => e.modalId ?? `krds-modal-${n}`), a = g({
2525
+ get: () => e.modelValue,
2526
+ set: (u) => s("update:modelValue", u)
2527
+ }), r = g(() => `tit_${t.value}`), v = g(() => ({
2528
+ small: "modal-sm",
2529
+ medium: "modal-md",
2530
+ large: "modal-lg"
2531
+ })[e.size]), p = () => {
2532
+ a.value = !1;
2533
+ };
2534
+ let h = "", y = null;
2535
+ const S = K(null), b = (u) => Array.from(u.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(
2536
+ (f) => !f.hasAttribute("disabled") && f.getAttribute("tabindex") !== "-1"
2537
+ ), D = (u) => {
2538
+ if (!S.value || u.key !== "Tab") return;
2539
+ const i = b(S.value);
2540
+ if (i.length === 0) {
2541
+ u.preventDefault();
2542
+ return;
2543
+ }
2544
+ const f = i[0], x = i[i.length - 1];
2545
+ u.shiftKey && document.activeElement === f ? (u.preventDefault(), x.focus()) : !u.shiftKey && document.activeElement === x && (u.preventDefault(), f.focus());
2546
+ }, m = (u) => {
2547
+ u.key === "Escape" && !e.persistent && p();
2548
+ }, l = () => {
2549
+ document.body.style.overflow = h, document.removeEventListener("keydown", D), document.removeEventListener("keydown", m), y && (y.focus(), y = null), S.value = null;
2550
+ };
2551
+ return ae(
2552
+ () => e.modelValue,
2553
+ async (u) => {
2554
+ if (u) {
2555
+ h = document.body.style.overflow, document.body.style.overflow = "hidden", y = document.activeElement, await we();
2556
+ const i = document.getElementById(t.value);
2557
+ if (i) {
2558
+ S.value = i;
2559
+ const f = i.querySelector(".modal-conts");
2560
+ f && (f.setAttribute("tabindex", "-1"), f.focus()), document.addEventListener("keydown", D), document.addEventListener("keydown", m);
2561
+ }
2562
+ } else
2563
+ l();
2564
+ },
2565
+ { immediate: !0 }
2566
+ ), Se(() => {
2567
+ e.modelValue && l();
2568
+ }), () => {
2569
+ if (!a.value) return null;
2570
+ const u = {
2571
+ id: t.value,
2572
+ class: "krds-modal fade in shown",
2573
+ role: "dialog",
2574
+ "aria-modal": !0,
2575
+ "aria-labelledby": r.value
2576
+ };
2577
+ return e.full ? u["data-type"] = "full" : e.bottomSheet && (u["data-type"] = "bottom-sheet"), c(
2578
+ Le,
2579
+ { to: "body" },
2580
+ c("section", u, [
2581
+ c("div", { class: `modal-dialog ${v.value}` }, [
2582
+ c(
2583
+ "div",
2584
+ { class: "modal-content" },
2585
+ [
2586
+ // modal title
2587
+ o.title ? c("div", { class: "modal-header" }, [c("h2", { id: r.value, class: "modal-title" }, o.title())]) : null,
2588
+ // modal contents
2589
+ c("div", { class: "modal-conts" }, [c("div", { class: "conts-area" }, o.default?.())]),
2590
+ // modal btn
2591
+ o.footer ? c("div", { class: "modal-btn btn-wrap" }, o.footer()) : null,
2592
+ // close button
2593
+ c(
2594
+ "button",
2595
+ {
2596
+ type: "button",
2597
+ class: "krds-btn medium icon btn-close close-modal",
2598
+ onClick: p
2599
+ },
2600
+ [c("span", { class: "sr-only" }, "닫기"), c("i", { class: "svg-icon ico-popup-close" })]
2601
+ )
2602
+ ].filter(Boolean)
2603
+ )
2604
+ ]),
2605
+ c("div", {
2606
+ class: e.backdrop ? "modal-back in" : "modal-back",
2607
+ onClick: e.persistent ? void 0 : p
2608
+ })
2609
+ ])
2610
+ );
2611
+ };
2612
+ }
2485
2613
  }), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2486
2614
  __proto__: null,
2487
- KrdsBadge: ht,
2488
- KrdsBreadcrumb: zt,
2489
- KrdsButton: Se,
2490
- KrdsButtonGroup: Ie,
2491
- KrdsCheckArea: St,
2492
- KrdsCheckbox: wt,
2493
- KrdsCoachMark: tl,
2494
- KrdsContextualHelp: Gt,
2495
- KrdsDateInput: ct,
2496
- KrdsFileUpload: pt,
2497
- KrdsFormGroup: Ae,
2498
- KrdsFormHint: Pe,
2499
- KrdsFormLabel: Te,
2500
- KrdsIcon: Ee,
2615
+ KrdsBadge: yt,
2616
+ KrdsBreadcrumb: It,
2617
+ KrdsButton: Ce,
2618
+ KrdsButtonGroup: Me,
2619
+ KrdsCheckArea: Ct,
2620
+ KrdsCheckbox: xt,
2621
+ KrdsCoachMark: al,
2622
+ KrdsContextualHelp: Xt,
2623
+ KrdsDateInput: vt,
2624
+ KrdsFileUpload: ht,
2625
+ KrdsFormGroup: Oe,
2626
+ KrdsFormHint: Fe,
2627
+ KrdsFormLabel: Ae,
2628
+ KrdsIcon: Re,
2501
2629
  KrdsInPageNavigation: Lt,
2502
- KrdsInput: Re,
2503
- KrdsLanguageSwitcher: pl,
2504
- KrdsLink: Me,
2505
- KrdsMasthead: gt,
2506
- KrdsPagination: Pt,
2507
- KrdsPanel: qt,
2508
- KrdsRadio: Ct,
2509
- KrdsResize: kl,
2510
- KrdsSelect: vt,
2511
- KrdsSkipLink: Bt,
2512
- KrdsSpinner: we,
2513
- KrdsStep: xt,
2514
- KrdsStepIndicator: _t,
2515
- KrdsTag: mt,
2516
- KrdsTagGroup: yt,
2517
- KrdsTextarea: ft,
2518
- KrdsToggleSwitch: bt,
2519
- KrdsTooltip: nl
2630
+ KrdsInput: Pe,
2631
+ KrdsLanguageSwitcher: hl,
2632
+ KrdsLink: Te,
2633
+ KrdsMasthead: kt,
2634
+ KrdsModal: wl,
2635
+ KrdsPagination: Ft,
2636
+ KrdsPanel: Ht,
2637
+ KrdsRadio: _t,
2638
+ KrdsResize: Sl,
2639
+ KrdsSelect: mt,
2640
+ KrdsSkipLink: $t,
2641
+ KrdsSpinner: xe,
2642
+ KrdsStep: Kt,
2643
+ KrdsStepIndicator: Bt,
2644
+ KrdsTag: gt,
2645
+ KrdsTagGroup: bt,
2646
+ KrdsTextarea: pt,
2647
+ KrdsToggleSwitch: wt,
2648
+ KrdsTooltip: il
2520
2649
  }, Symbol.toStringTag, { value: "Module" })), fe = {
2521
- mounted(e, i) {
2522
- i.value !== !1 && e.classList.add("sr-only");
2650
+ mounted(e, o) {
2651
+ o.value !== !1 && e.classList.add("sr-only");
2523
2652
  },
2524
- updated(e, i) {
2525
- i.value === !1 ? e.classList.remove("sr-only") : e.classList.add("sr-only");
2653
+ updated(e, o) {
2654
+ o.value === !1 ? e.classList.remove("sr-only") : e.classList.add("sr-only");
2526
2655
  },
2527
2656
  unmounted(e) {
2528
2657
  e.classList.remove("sr-only");
2529
2658
  }
2530
- }, ke = {
2659
+ }, be = {
2531
2660
  "sr-only": fe
2532
- }, Ce = (e) => {
2661
+ }, _e = (e) => {
2533
2662
  e.directive("sr-only", fe);
2534
- }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2663
+ }, ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2535
2664
  __proto__: null,
2536
- default: ke,
2537
- directives: ke,
2538
- installDirectives: Ce,
2665
+ default: be,
2666
+ directives: be,
2667
+ installDirectives: _e,
2539
2668
  vSrOnly: fe
2540
- }, Symbol.toStringTag, { value: "Module" })), wl = {
2541
- install(e, i = {}) {
2542
- e.provide("krds:config", i);
2543
- const n = i.components || Object.keys(ge);
2544
- n.forEach((a) => {
2545
- const t = ge[a];
2546
- t && e.component(a, t);
2547
- }), typeof be == "object" && be !== null && Ce(e), e.config.globalProperties.$krds = {
2669
+ }, Symbol.toStringTag, { value: "Module" })), _l = {
2670
+ install(e, o = {}) {
2671
+ e.provide("krds:config", o);
2672
+ const s = o.components || Object.keys(ge);
2673
+ s.forEach((n) => {
2674
+ const t = ge[n];
2675
+ t && e.component(n, t);
2676
+ }), typeof ke == "object" && ke !== null && _e(e), e.config.globalProperties.$krds = {
2548
2677
  version: "__VERSION__"
2549
- }, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${n.length}개`);
2678
+ }, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${s.length}개`);
2550
2679
  }
2551
- }, Cl = "__VERSION__";
2680
+ }, Bl = "__VERSION__";
2552
2681
  export {
2553
- ht as KrdsBadge,
2554
- zt as KrdsBreadcrumb,
2555
- Se as KrdsButton,
2556
- Ie as KrdsButtonGroup,
2557
- St as KrdsCheckArea,
2558
- wt as KrdsCheckbox,
2559
- tl as KrdsCoachMark,
2560
- Gt as KrdsContextualHelp,
2561
- ct as KrdsDateInput,
2562
- pt as KrdsFileUpload,
2563
- Ae as KrdsFormGroup,
2564
- Pe as KrdsFormHint,
2565
- Te as KrdsFormLabel,
2566
- Ee as KrdsIcon,
2682
+ yt as KrdsBadge,
2683
+ It as KrdsBreadcrumb,
2684
+ Ce as KrdsButton,
2685
+ Me as KrdsButtonGroup,
2686
+ Ct as KrdsCheckArea,
2687
+ xt as KrdsCheckbox,
2688
+ al as KrdsCoachMark,
2689
+ Xt as KrdsContextualHelp,
2690
+ vt as KrdsDateInput,
2691
+ ht as KrdsFileUpload,
2692
+ Oe as KrdsFormGroup,
2693
+ Fe as KrdsFormHint,
2694
+ Ae as KrdsFormLabel,
2695
+ Re as KrdsIcon,
2567
2696
  Lt as KrdsInPageNavigation,
2568
- Re as KrdsInput,
2569
- pl as KrdsLanguageSwitcher,
2570
- Me as KrdsLink,
2571
- gt as KrdsMasthead,
2572
- Pt as KrdsPagination,
2573
- qt as KrdsPanel,
2574
- Ct as KrdsRadio,
2575
- kl as KrdsResize,
2576
- vt as KrdsSelect,
2577
- Bt as KrdsSkipLink,
2578
- we as KrdsSpinner,
2579
- xt as KrdsStep,
2580
- _t as KrdsStepIndicator,
2581
- mt as KrdsTag,
2582
- yt as KrdsTagGroup,
2583
- ft as KrdsTextarea,
2584
- bt as KrdsToggleSwitch,
2585
- nl as KrdsTooltip,
2697
+ Pe as KrdsInput,
2698
+ hl as KrdsLanguageSwitcher,
2699
+ Te as KrdsLink,
2700
+ kt as KrdsMasthead,
2701
+ wl as KrdsModal,
2702
+ Ft as KrdsPagination,
2703
+ Ht as KrdsPanel,
2704
+ _t as KrdsRadio,
2705
+ Sl as KrdsResize,
2706
+ mt as KrdsSelect,
2707
+ $t as KrdsSkipLink,
2708
+ xe as KrdsSpinner,
2709
+ Kt as KrdsStep,
2710
+ Bt as KrdsStepIndicator,
2711
+ gt as KrdsTag,
2712
+ bt as KrdsTagGroup,
2713
+ pt as KrdsTextarea,
2714
+ wt as KrdsToggleSwitch,
2715
+ il as KrdsTooltip,
2586
2716
  ce as classNames,
2587
- wl as default,
2588
- de as generateId,
2589
- Sl as generateUid,
2590
- Cl as version
2717
+ _l as default,
2718
+ ue as generateId,
2719
+ xl as generateUid,
2720
+ Bl as version
2591
2721
  };
2592
2722
  //# sourceMappingURL=krds-vue.es.js.map