@idds/vue 1.0.61 → 1.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, ref, computed, onMounted, onUnmounted, watch, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode, createBlock, resolveDynamicComponent, Transition, withCtx, provide, withModifiers, normalizeStyle, nextTick, h, Fragment, renderList, mergeProps, withDirectives, vModelDynamic, unref, createStaticVNode, withKeys, vModelText, Teleport, vModelRadio } from "vue";
1
+ import { defineComponent, inject, ref, computed, onMounted, onUnmounted, watch, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode, createBlock, resolveDynamicComponent, Transition, withCtx, provide, withModifiers, normalizeStyle, nextTick, h, Fragment, renderList, mergeProps, withDirectives, vModelDynamic, unref, withKeys, vModelText, Teleport, createStaticVNode, vModelRadio } from "vue";
2
2
  const iddsColorTokens = {
3
3
  // Neutral Colors
4
4
  "neutral-25": "var(--ina-neutral-25)",
@@ -409,12 +409,12 @@ const defaultColorTokens = {
409
409
  "secondary-800": "#164564",
410
410
  "secondary-900": "#0f2d42"
411
411
  };
412
- const _hoisted_1$H = ["id", "aria-expanded", "aria-controls", "disabled"];
413
- const _hoisted_2$B = { class: "ina-accordion__title" };
414
- const _hoisted_3$x = { class: "ina-accordion__toggler" };
415
- const _hoisted_4$s = ["id", "aria-labelledby"];
412
+ const _hoisted_1$I = ["id", "aria-expanded", "aria-controls", "disabled"];
413
+ const _hoisted_2$C = { class: "ina-accordion__title" };
414
+ const _hoisted_3$z = { class: "ina-accordion__toggler" };
415
+ const _hoisted_4$t = ["id", "aria-labelledby"];
416
416
  const _hoisted_5$o = { class: "ina-accordion__body" };
417
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
417
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
418
418
  __name: "Accordion",
419
419
  props: {
420
420
  title: { default: "" },
@@ -524,12 +524,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
524
524
  disabled: __props.disabled,
525
525
  onClick: handleToggle
526
526
  }, [
527
- createElementVNode("div", _hoisted_2$B, [
527
+ createElementVNode("div", _hoisted_2$C, [
528
528
  renderSlot(_ctx.$slots, "title", {}, () => [
529
529
  createTextVNode(toDisplayString(__props.title), 1)
530
530
  ])
531
531
  ]),
532
- createElementVNode("div", _hoisted_3$x, [
532
+ createElementVNode("div", _hoisted_3$z, [
533
533
  (openBlock(), createElementBlock("svg", {
534
534
  class: normalizeClass(["ina-accordion__icon", { "ina-accordion__icon--open": isOpen.value }]),
535
535
  width: "24",
@@ -547,7 +547,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
547
547
  }, null, -1)
548
548
  ])], 2))
549
549
  ])
550
- ], 8, _hoisted_1$H),
550
+ ], 8, _hoisted_1$I),
551
551
  createElementVNode("div", {
552
552
  id: contentId.value,
553
553
  class: normalizeClass(["ina-accordion__content", { "ina-accordion__content--open": isOpen.value }]),
@@ -556,15 +556,15 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
556
556
  createElementVNode("div", _hoisted_5$o, [
557
557
  renderSlot(_ctx.$slots, "default")
558
558
  ])
559
- ], 10, _hoisted_4$s)
559
+ ], 10, _hoisted_4$t)
560
560
  ], 2);
561
561
  };
562
562
  }
563
563
  });
564
- const _hoisted_1$G = { class: "ina-accordion-card__item" };
565
- const _hoisted_2$A = ["id", "aria-expanded", "aria-controls"];
566
- const _hoisted_3$w = { class: "ina-accordion-card__header-content" };
567
- const _hoisted_4$r = {
564
+ const _hoisted_1$H = { class: "ina-accordion-card__item" };
565
+ const _hoisted_2$B = ["id", "aria-expanded", "aria-controls"];
566
+ const _hoisted_3$y = { class: "ina-accordion-card__header-content" };
567
+ const _hoisted_4$s = {
568
568
  key: 0,
569
569
  class: "ina-accordion-card__icon"
570
570
  };
@@ -576,7 +576,7 @@ const _hoisted_7$j = {
576
576
  };
577
577
  const _hoisted_8$g = ["id", "aria-labelledby"];
578
578
  const _hoisted_9$d = { class: "ina-accordion-card__body" };
579
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
579
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
580
580
  __name: "AccordionCard",
581
581
  props: {
582
582
  title: { default: "" },
@@ -619,7 +619,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
619
619
  return openBlock(), createElementBlock("div", {
620
620
  class: normalizeClass(["ina-accordion-card", cardClasses.value])
621
621
  }, [
622
- createElementVNode("div", _hoisted_1$G, [
622
+ createElementVNode("div", _hoisted_1$H, [
623
623
  createElementVNode("button", {
624
624
  id: headerId.value,
625
625
  type: "button",
@@ -628,8 +628,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
628
628
  "aria-controls": contentId.value,
629
629
  onClick: toggle
630
630
  }, [
631
- createElementVNode("div", _hoisted_3$w, [
632
- __props.icon ? (openBlock(), createElementBlock("div", _hoisted_4$r, [
631
+ createElementVNode("div", _hoisted_3$y, [
632
+ __props.icon ? (openBlock(), createElementBlock("div", _hoisted_4$s, [
633
633
  (openBlock(), createBlock(resolveDynamicComponent(__props.icon), { size: 20 }))
634
634
  ])) : createCommentVNode("", true),
635
635
  createElementVNode("div", _hoisted_5$n, [
@@ -657,7 +657,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
657
657
  "stroke-linejoin": "round"
658
658
  }, null, -1)
659
659
  ])], 2))
660
- ], 8, _hoisted_2$A),
660
+ ], 8, _hoisted_2$B),
661
661
  createVNode(Transition, { name: "accordion" }, {
662
662
  default: withCtx(() => [
663
663
  isOpen.value ? (openBlock(), createElementBlock("div", {
@@ -685,9 +685,9 @@ const _export_sfc = (sfc, props) => {
685
685
  }
686
686
  return target;
687
687
  };
688
- const AccordionCard = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-61699a37"]]);
689
- const _hoisted_1$F = { class: "ina-accordion-group" };
690
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
688
+ const AccordionCard = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-61699a37"]]);
689
+ const _hoisted_1$G = { class: "ina-accordion-group" };
690
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
691
691
  __name: "AccordionGroup",
692
692
  props: {
693
693
  multiple: { type: Boolean, default: false },
@@ -759,17 +759,17 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
759
759
  openIndexes: computed(() => openIndexes.value)
760
760
  });
761
761
  return (_ctx, _cache) => {
762
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
762
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
763
763
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
764
764
  ]);
765
765
  };
766
766
  }
767
767
  });
768
- const AccordionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-b60ded7f"]]);
769
- const _hoisted_1$E = ["disabled", "aria-expanded"];
770
- const _hoisted_2$z = { class: "ina-action-dropdown__trigger-content" };
771
- const _hoisted_3$v = { class: "ina-action-dropdown__menu" };
772
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
768
+ const AccordionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-b60ded7f"]]);
769
+ const _hoisted_1$F = ["disabled", "aria-expanded"];
770
+ const _hoisted_2$A = { class: "ina-action-dropdown__trigger-content" };
771
+ const _hoisted_3$x = { class: "ina-action-dropdown__menu" };
772
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
773
773
  __name: "ActionDropdown",
774
774
  props: {
775
775
  disabled: { type: Boolean, default: false },
@@ -897,7 +897,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
897
897
  "aria-expanded": isOpen.value,
898
898
  "aria-haspopup": true
899
899
  }, [
900
- createElementVNode("span", _hoisted_2$z, [
900
+ createElementVNode("span", _hoisted_2$A, [
901
901
  renderSlot(_ctx.$slots, "trigger", {}, () => [
902
902
  _cache[1] || (_cache[1] = createElementVNode("svg", {
903
903
  width: "16",
@@ -927,7 +927,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
927
927
  ], -1))
928
928
  ], true)
929
929
  ])
930
- ], 42, _hoisted_1$E),
930
+ ], 42, _hoisted_1$F),
931
931
  createVNode(Transition, { name: "dropdown" }, {
932
932
  default: withCtx(() => [
933
933
  isOpen.value ? (openBlock(), createElementBlock("div", {
@@ -939,7 +939,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
939
939
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
940
940
  }, ["stop"]))
941
941
  }, [
942
- createElementVNode("div", _hoisted_3$v, [
942
+ createElementVNode("div", _hoisted_3$x, [
943
943
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
944
944
  ])
945
945
  ], 4)) : createCommentVNode("", true)
@@ -950,12 +950,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
950
950
  };
951
951
  }
952
952
  });
953
- const ActionDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-302f8f72"]]);
954
- const _hoisted_1$D = {
953
+ const ActionDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-302f8f72"]]);
954
+ const _hoisted_1$E = {
955
955
  key: 0,
956
956
  class: "ina-alert__icon"
957
957
  };
958
- const _hoisted_2$y = {
958
+ const _hoisted_2$z = {
959
959
  key: 1,
960
960
  width: "20",
961
961
  height: "20",
@@ -963,7 +963,7 @@ const _hoisted_2$y = {
963
963
  fill: "none",
964
964
  xmlns: "http://www.w3.org/2000/svg"
965
965
  };
966
- const _hoisted_3$u = {
966
+ const _hoisted_3$w = {
967
967
  key: 0,
968
968
  d: "M12 2L13.09 8.26L20 9L13.09 9.74L12 16L10.91 9.74L4 9L10.91 8.26L12 2Z",
969
969
  stroke: "currentColor",
@@ -971,7 +971,7 @@ const _hoisted_3$u = {
971
971
  "stroke-linecap": "round",
972
972
  "stroke-linejoin": "round"
973
973
  };
974
- const _hoisted_4$q = {
974
+ const _hoisted_4$r = {
975
975
  key: 1,
976
976
  d: "M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",
977
977
  stroke: "currentColor",
@@ -1018,7 +1018,7 @@ const _hoisted_12$9 = {
1018
1018
  class: "ina-alert__actions"
1019
1019
  };
1020
1020
  const _hoisted_13$7 = ["aria-label"];
1021
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
1021
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
1022
1022
  __name: "Alert",
1023
1023
  props: {
1024
1024
  variant: { default: "info" },
@@ -1051,12 +1051,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1051
1051
  class: normalizeClass(["ina-alert", alertClasses.value]),
1052
1052
  role: "alert"
1053
1053
  }, [
1054
- __props.icon || showVariantIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
1054
+ __props.icon || showVariantIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
1055
1055
  __props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
1056
1056
  key: 0,
1057
1057
  size: 20
1058
- })) : showVariantIcon.value ? (openBlock(), createElementBlock("svg", _hoisted_2$y, [
1059
- __props.variant === "neutral" ? (openBlock(), createElementBlock("path", _hoisted_3$u)) : __props.variant === "success" ? (openBlock(), createElementBlock("path", _hoisted_4$q)) : __props.variant === "caution" ? (openBlock(), createElementBlock("path", _hoisted_5$m)) : __props.variant === "info" ? (openBlock(), createElementBlock("path", _hoisted_6$j)) : __props.variant === "critical" ? (openBlock(), createElementBlock("path", _hoisted_7$i)) : createCommentVNode("", true)
1058
+ })) : showVariantIcon.value ? (openBlock(), createElementBlock("svg", _hoisted_2$z, [
1059
+ __props.variant === "neutral" ? (openBlock(), createElementBlock("path", _hoisted_3$w)) : __props.variant === "success" ? (openBlock(), createElementBlock("path", _hoisted_4$r)) : __props.variant === "caution" ? (openBlock(), createElementBlock("path", _hoisted_5$m)) : __props.variant === "info" ? (openBlock(), createElementBlock("path", _hoisted_6$j)) : __props.variant === "critical" ? (openBlock(), createElementBlock("path", _hoisted_7$i)) : createCommentVNode("", true)
1060
1060
  ])) : createCommentVNode("", true)
1061
1061
  ])) : createCommentVNode("", true),
1062
1062
  createElementVNode("div", _hoisted_8$f, [
@@ -1099,8 +1099,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1099
1099
  };
1100
1100
  }
1101
1101
  });
1102
- const _hoisted_1$C = ["src", "alt"];
1103
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
1102
+ const _hoisted_1$D = ["src", "alt"];
1103
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1104
1104
  __name: "Avatar",
1105
1105
  props: {
1106
1106
  src: {},
@@ -1140,22 +1140,22 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1140
1140
  class: normalizeClass(avatarClasses.value),
1141
1141
  onError: handleImageError,
1142
1142
  onLoad: handleImageLoad
1143
- }, null, 42, _hoisted_1$C)) : (openBlock(), createElementBlock("div", {
1143
+ }, null, 42, _hoisted_1$D)) : (openBlock(), createElementBlock("div", {
1144
1144
  key: 1,
1145
1145
  class: normalizeClass(avatarClasses.value)
1146
1146
  }, toDisplayString(__props.initials ? __props.initials.slice(0, 2).toUpperCase() : ""), 3));
1147
1147
  };
1148
1148
  }
1149
1149
  });
1150
- const _hoisted_1$B = {
1150
+ const _hoisted_1$C = {
1151
1151
  key: 0,
1152
1152
  class: "ina-badge__prefix-icon"
1153
1153
  };
1154
- const _hoisted_2$x = {
1154
+ const _hoisted_2$y = {
1155
1155
  key: 1,
1156
1156
  class: "ina-badge__suffix-icon"
1157
1157
  };
1158
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
1158
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1159
1159
  __name: "Badge",
1160
1160
  props: {
1161
1161
  type: { default: "soft" },
@@ -1185,20 +1185,20 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1185
1185
  return openBlock(), createElementBlock("span", {
1186
1186
  class: normalizeClass(["ina-badge", badgeClasses.value])
1187
1187
  }, [
1188
- __props.prefixIcon ? (openBlock(), createElementBlock("span", _hoisted_1$B, [
1188
+ __props.prefixIcon ? (openBlock(), createElementBlock("span", _hoisted_1$C, [
1189
1189
  (openBlock(), createBlock(resolveDynamicComponent(__props.prefixIcon)))
1190
1190
  ])) : createCommentVNode("", true),
1191
1191
  createElementVNode("span", null, [
1192
1192
  renderSlot(_ctx.$slots, "default")
1193
1193
  ]),
1194
- __props.suffixIcon ? (openBlock(), createElementBlock("span", _hoisted_2$x, [
1194
+ __props.suffixIcon ? (openBlock(), createElementBlock("span", _hoisted_2$y, [
1195
1195
  (openBlock(), createBlock(resolveDynamicComponent(__props.suffixIcon)))
1196
1196
  ])) : createCommentVNode("", true)
1197
1197
  ], 2);
1198
1198
  };
1199
1199
  }
1200
1200
  });
1201
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
1201
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1202
1202
  __name: "BottomSheet",
1203
1203
  props: {
1204
1204
  open: { type: Boolean, default: false },
@@ -1390,6 +1390,13 @@ var IconChevronUp = createVueComponent("outline", "chevron-up", "ChevronUp", [["
1390
1390
  * See the LICENSE file in the root directory of this source tree.
1391
1391
  */
1392
1392
  var IconCircleCheck = createVueComponent("outline", "circle-check", "CircleCheck", [["path", { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "key": "svg-0" }], ["path", { "d": "M9 12l2 2l4 -4", "key": "svg-1" }]]);
1393
+ /**
1394
+ * @license @tabler/icons-vue v3.35.0 - MIT
1395
+ *
1396
+ * This source code is licensed under the MIT license.
1397
+ * See the LICENSE file in the root directory of this source tree.
1398
+ */
1399
+ var IconCircleX = createVueComponent("outline", "circle-x", "CircleX", [["path", { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "key": "svg-0" }], ["path", { "d": "M10 10l4 4m0 -4l-4 4", "key": "svg-1" }]]);
1393
1400
  /**
1394
1401
  * @license @tabler/icons-vue v3.35.0 - MIT
1395
1402
  *
@@ -1418,6 +1425,13 @@ var IconLoader2 = createVueComponent("outline", "loader-2", "Loader2", [["path",
1418
1425
  * See the LICENSE file in the root directory of this source tree.
1419
1426
  */
1420
1427
  var IconMoon = createVueComponent("outline", "moon", "Moon", [["path", { "d": "M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z", "key": "svg-0" }]]);
1428
+ /**
1429
+ * @license @tabler/icons-vue v3.35.0 - MIT
1430
+ *
1431
+ * This source code is licensed under the MIT license.
1432
+ * See the LICENSE file in the root directory of this source tree.
1433
+ */
1434
+ var IconRotateClockwise = createVueComponent("outline", "rotate-clockwise", "RotateClockwise", [["path", { "d": "M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5", "key": "svg-0" }]]);
1421
1435
  /**
1422
1436
  * @license @tabler/icons-vue v3.35.0 - MIT
1423
1437
  *
@@ -1425,6 +1439,20 @@ var IconMoon = createVueComponent("outline", "moon", "Moon", [["path", { "d": "M
1425
1439
  * See the LICENSE file in the root directory of this source tree.
1426
1440
  */
1427
1441
  var IconSun = createVueComponent("outline", "sun", "Sun", [["path", { "d": "M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0", "key": "svg-0" }], ["path", { "d": "M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7", "key": "svg-1" }]]);
1442
+ /**
1443
+ * @license @tabler/icons-vue v3.35.0 - MIT
1444
+ *
1445
+ * This source code is licensed under the MIT license.
1446
+ * See the LICENSE file in the root directory of this source tree.
1447
+ */
1448
+ var IconTrash = createVueComponent("outline", "trash", "Trash", [["path", { "d": "M4 7l16 0", "key": "svg-0" }], ["path", { "d": "M10 11l0 6", "key": "svg-1" }], ["path", { "d": "M14 11l0 6", "key": "svg-2" }], ["path", { "d": "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", "key": "svg-3" }], ["path", { "d": "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3", "key": "svg-4" }]]);
1449
+ /**
1450
+ * @license @tabler/icons-vue v3.35.0 - MIT
1451
+ *
1452
+ * This source code is licensed under the MIT license.
1453
+ * See the LICENSE file in the root directory of this source tree.
1454
+ */
1455
+ var IconUpload = createVueComponent("outline", "upload", "Upload", [["path", { "d": "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2", "key": "svg-0" }], ["path", { "d": "M7 9l5 -5l5 5", "key": "svg-1" }], ["path", { "d": "M12 4l0 12", "key": "svg-2" }]]);
1428
1456
  /**
1429
1457
  * @license @tabler/icons-vue v3.35.0 - MIT
1430
1458
  *
@@ -1432,18 +1460,18 @@ var IconSun = createVueComponent("outline", "sun", "Sun", [["path", { "d": "M12
1432
1460
  * See the LICENSE file in the root directory of this source tree.
1433
1461
  */
1434
1462
  var IconX = createVueComponent("outline", "x", "X", [["path", { "d": "M18 6l-12 12", "key": "svg-0" }], ["path", { "d": "M6 6l12 12", "key": "svg-1" }]]);
1435
- const _hoisted_1$A = { class: "ina-breadcrumb__list" };
1436
- const _hoisted_2$w = {
1463
+ const _hoisted_1$B = { class: "ina-breadcrumb__list" };
1464
+ const _hoisted_2$x = {
1437
1465
  key: 0,
1438
1466
  class: "ina-breadcrumb__icon"
1439
1467
  };
1440
- const _hoisted_3$t = { class: "ina-breadcrumb__text" };
1441
- const _hoisted_4$p = {
1468
+ const _hoisted_3$v = { class: "ina-breadcrumb__text" };
1469
+ const _hoisted_4$q = {
1442
1470
  key: 0,
1443
1471
  class: "ina-breadcrumb__separator",
1444
1472
  "aria-hidden": "true"
1445
1473
  };
1446
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
1474
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
1447
1475
  __name: "Breadcrumb",
1448
1476
  props: {
1449
1477
  items: {},
@@ -1509,7 +1537,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1509
1537
  class: normalizeClass(["ina-breadcrumb", breadcrumbClasses.value]),
1510
1538
  "aria-label": "Breadcrumb"
1511
1539
  }, [
1512
- createElementVNode("ol", _hoisted_1$A, [
1540
+ createElementVNode("ol", _hoisted_1$B, [
1513
1541
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index2) => {
1514
1542
  return openBlock(), createElementBlock("li", {
1515
1543
  key: index2,
@@ -1521,14 +1549,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1521
1549
  onClick: ($event) => handleItemClick(item, index2)
1522
1550
  }, {
1523
1551
  default: withCtx(() => [
1524
- item.icon ? (openBlock(), createElementBlock("span", _hoisted_2$w, [
1552
+ item.icon ? (openBlock(), createElementBlock("span", _hoisted_2$x, [
1525
1553
  (openBlock(), createBlock(resolveDynamicComponent(item.icon), { size: 16 }))
1526
1554
  ])) : createCommentVNode("", true),
1527
- createElementVNode("span", _hoisted_3$t, toDisplayString(getTruncatedLabel(item.label, index2)), 1)
1555
+ createElementVNode("span", _hoisted_3$v, toDisplayString(getTruncatedLabel(item.label, index2)), 1)
1528
1556
  ]),
1529
1557
  _: 2
1530
1558
  }, 1032, ["href", "class", "onClick"])),
1531
- index2 < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$p, [
1559
+ index2 < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$q, [
1532
1560
  renderSlot(_ctx.$slots, "separator", {}, () => [
1533
1561
  typeof computedSeparator.value === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1534
1562
  createTextVNode(toDisplayString(computedSeparator.value), 1)
@@ -1542,8 +1570,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1542
1570
  };
1543
1571
  }
1544
1572
  });
1545
- const _hoisted_1$z = ["type", "disabled"];
1546
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
1573
+ const _hoisted_1$A = ["type", "disabled"];
1574
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1547
1575
  __name: "Button",
1548
1576
  props: {
1549
1577
  hierarchy: { default: "primary" },
@@ -1591,13 +1619,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1591
1619
  prefixIconNode.value ? (openBlock(), createBlock(resolveDynamicComponent(prefixIconNode.value), { key: 0 })) : createCommentVNode("", true),
1592
1620
  renderSlot(_ctx.$slots, "default"),
1593
1621
  suffixIconNode.value ? (openBlock(), createBlock(resolveDynamicComponent(suffixIconNode.value), { key: 1 })) : createCommentVNode("", true)
1594
- ], 16, _hoisted_1$z);
1622
+ ], 16, _hoisted_1$A);
1595
1623
  };
1596
1624
  }
1597
1625
  });
1598
- const _hoisted_1$y = ["disabled", "onClick", "aria-pressed", "aria-disabled", "name", "value"];
1599
- const _hoisted_2$v = { class: "ina-button-group__button-content" };
1600
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
1626
+ const _hoisted_1$z = ["disabled", "onClick", "aria-pressed", "aria-disabled", "name", "value"];
1627
+ const _hoisted_2$w = { class: "ina-button-group__button-content" };
1628
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1601
1629
  __name: "ButtonGroup",
1602
1630
  props: {
1603
1631
  options: {},
@@ -1659,7 +1687,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1659
1687
  name: __props.name,
1660
1688
  value: option.value
1661
1689
  }, [
1662
- createElementVNode("span", _hoisted_2$v, [
1690
+ createElementVNode("span", _hoisted_2$w, [
1663
1691
  renderSlot(_ctx.$slots, `option-${index2}`, {
1664
1692
  option,
1665
1693
  selected: isSelected(option)
@@ -1667,22 +1695,22 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1667
1695
  createTextVNode(toDisplayString(option.label), 1)
1668
1696
  ])
1669
1697
  ])
1670
- ], 10, _hoisted_1$y);
1698
+ ], 10, _hoisted_1$z);
1671
1699
  }), 128))
1672
1700
  ], 2);
1673
1701
  };
1674
1702
  }
1675
1703
  });
1676
- const _hoisted_1$x = {
1704
+ const _hoisted_1$y = {
1677
1705
  key: 0,
1678
1706
  class: "ina-card__media"
1679
1707
  };
1680
- const _hoisted_2$u = ["src", "alt"];
1681
- const _hoisted_3$s = {
1708
+ const _hoisted_2$v = ["src", "alt"];
1709
+ const _hoisted_3$u = {
1682
1710
  key: 1,
1683
1711
  class: "ina-card__media"
1684
1712
  };
1685
- const _hoisted_4$o = ["src", "alt"];
1713
+ const _hoisted_4$p = ["src", "alt"];
1686
1714
  const _hoisted_5$l = { class: "ina-card__content" };
1687
1715
  const _hoisted_6$i = {
1688
1716
  key: 0,
@@ -1740,7 +1768,7 @@ const _hoisted_22$2 = {
1740
1768
  key: 2,
1741
1769
  class: "ina-card__footer"
1742
1770
  };
1743
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
1771
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1744
1772
  __name: "Card",
1745
1773
  props: {
1746
1774
  variant: { default: "basic" },
@@ -1809,22 +1837,22 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1809
1837
  return openBlock(), createElementBlock("div", {
1810
1838
  class: normalizeClass(["ina-card", cardClasses.value])
1811
1839
  }, [
1812
- __props.variant === "basic" && computedMediaPosition.value === "top" ? (openBlock(), createElementBlock("div", _hoisted_1$x, [
1840
+ __props.variant === "basic" && computedMediaPosition.value === "top" ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
1813
1841
  renderSlot(_ctx.$slots, "media", {}, () => [
1814
1842
  __props.mediaSrc ? (openBlock(), createElementBlock("img", {
1815
1843
  key: 0,
1816
1844
  src: __props.mediaSrc,
1817
1845
  alt: __props.mediaAlt || "Card media"
1818
- }, null, 8, _hoisted_2$u)) : createCommentVNode("", true)
1846
+ }, null, 8, _hoisted_2$v)) : createCommentVNode("", true)
1819
1847
  ])
1820
1848
  ])) : createCommentVNode("", true),
1821
- __props.variant === "overlay" ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
1849
+ __props.variant === "overlay" ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
1822
1850
  renderSlot(_ctx.$slots, "media", {}, () => [
1823
1851
  __props.mediaSrc ? (openBlock(), createElementBlock("img", {
1824
1852
  key: 0,
1825
1853
  src: __props.mediaSrc,
1826
1854
  alt: __props.mediaAlt || "Card media"
1827
- }, null, 8, _hoisted_4$o)) : createCommentVNode("", true)
1855
+ }, null, 8, _hoisted_4$p)) : createCommentVNode("", true)
1828
1856
  ])
1829
1857
  ])) : createCommentVNode("", true),
1830
1858
  createElementVNode("div", _hoisted_5$l, [
@@ -1851,7 +1879,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1851
1879
  ]),
1852
1880
  __props.showButton || _ctx.$slots.button ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
1853
1881
  renderSlot(_ctx.$slots, "button", {}, () => [
1854
- __props.showButton && __props.buttonText ? (openBlock(), createBlock(_sfc_main$D, {
1882
+ __props.showButton && __props.buttonText ? (openBlock(), createBlock(_sfc_main$E, {
1855
1883
  key: 0,
1856
1884
  hierarchy: __props.buttonHierarchy,
1857
1885
  size: "md",
@@ -1919,9 +1947,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1919
1947
  };
1920
1948
  }
1921
1949
  });
1922
- const _hoisted_1$w = ["for"];
1923
- const _hoisted_2$t = ["id", "checked", "disabled", "readonly", "indeterminate"];
1924
- const _hoisted_3$r = {
1950
+ const _hoisted_1$x = ["for"];
1951
+ const _hoisted_2$u = ["id", "checked", "disabled", "readonly", "indeterminate"];
1952
+ const _hoisted_3$t = {
1925
1953
  key: 0,
1926
1954
  class: "ina-checkbox__icon",
1927
1955
  width: "14",
@@ -1930,7 +1958,7 @@ const _hoisted_3$r = {
1930
1958
  fill: "none",
1931
1959
  xmlns: "http://www.w3.org/2000/svg"
1932
1960
  };
1933
- const _hoisted_4$n = {
1961
+ const _hoisted_4$o = {
1934
1962
  key: 1,
1935
1963
  class: "ina-checkbox__icon",
1936
1964
  width: "14",
@@ -1948,7 +1976,7 @@ const _hoisted_7$g = {
1948
1976
  key: 1,
1949
1977
  class: "ina-checkbox__subtext"
1950
1978
  };
1951
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
1979
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1952
1980
  __name: "Checkbox",
1953
1981
  props: {
1954
1982
  modelValue: { type: [Boolean, Array], default: false },
@@ -2049,11 +2077,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
2049
2077
  onChange: handleChange,
2050
2078
  onFocus: handleFocus,
2051
2079
  onBlur: handleBlur
2052
- }, _ctx.$attrs), null, 16, _hoisted_2$t),
2080
+ }, _ctx.$attrs), null, 16, _hoisted_2$u),
2053
2081
  createElementVNode("div", {
2054
2082
  class: normalizeClass(boxClasses.value)
2055
2083
  }, [
2056
- checked.value && !__props.indeterminate ? (openBlock(), createElementBlock("svg", _hoisted_3$r, [..._cache[0] || (_cache[0] = [
2084
+ checked.value && !__props.indeterminate ? (openBlock(), createElementBlock("svg", _hoisted_3$t, [..._cache[0] || (_cache[0] = [
2057
2085
  createElementVNode("path", {
2058
2086
  d: "M20 6L9 17L4 12",
2059
2087
  stroke: "currentColor",
@@ -2061,7 +2089,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
2061
2089
  "stroke-linecap": "round",
2062
2090
  "stroke-linejoin": "round"
2063
2091
  }, null, -1)
2064
- ])])) : __props.indeterminate ? (openBlock(), createElementBlock("svg", _hoisted_4$n, [..._cache[1] || (_cache[1] = [
2092
+ ])])) : __props.indeterminate ? (openBlock(), createElementBlock("svg", _hoisted_4$o, [..._cache[1] || (_cache[1] = [
2065
2093
  createElementVNode("path", {
2066
2094
  d: "M5 12H19",
2067
2095
  stroke: "currentColor",
@@ -2079,7 +2107,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
2079
2107
  ])) : createCommentVNode("", true),
2080
2108
  __props.subtext ? (openBlock(), createElementBlock("span", _hoisted_7$g, toDisplayString(__props.subtext), 1)) : createCommentVNode("", true)
2081
2109
  ])
2082
- ], 10, _hoisted_1$w),
2110
+ ], 10, _hoisted_1$x),
2083
2111
  __props.statusMessage ? (openBlock(), createElementBlock("div", {
2084
2112
  key: 0,
2085
2113
  class: normalizeClass(statusClasses.value)
@@ -2294,13 +2322,13 @@ function sanitizeFileName(fileName) {
2294
2322
  sanitized = sanitized.replace(/^[\s.]+|[\s.]+$/g, "");
2295
2323
  return sanitized || "file";
2296
2324
  }
2297
- const _hoisted_1$v = { class: "ina-text-field" };
2298
- const _hoisted_2$s = ["for"];
2299
- const _hoisted_3$q = {
2325
+ const _hoisted_1$w = { class: "ina-text-field" };
2326
+ const _hoisted_2$t = ["for"];
2327
+ const _hoisted_3$s = {
2300
2328
  key: 0,
2301
2329
  class: "ina-text-field__required"
2302
2330
  };
2303
- const _hoisted_4$m = {
2331
+ const _hoisted_4$n = {
2304
2332
  key: 0,
2305
2333
  class: "ina-text-field__prefix-icon"
2306
2334
  };
@@ -2309,7 +2337,7 @@ const _hoisted_6$g = {
2309
2337
  key: 1,
2310
2338
  class: "ina-text-field__char-count"
2311
2339
  };
2312
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
2340
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
2313
2341
  __name: "TextField",
2314
2342
  props: {
2315
2343
  modelValue: { default: "" },
@@ -2510,19 +2538,19 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
2510
2538
  }
2511
2539
  });
2512
2540
  return (_ctx, _cache) => {
2513
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
2541
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
2514
2542
  __props.label ? (openBlock(), createElementBlock("label", {
2515
2543
  key: 0,
2516
2544
  for: inputId.value,
2517
2545
  class: "ina-text-field__label"
2518
2546
  }, [
2519
2547
  createTextVNode(toDisplayString(__props.label) + " ", 1),
2520
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_3$q, "*")) : createCommentVNode("", true)
2521
- ], 8, _hoisted_2$s)) : createCommentVNode("", true),
2548
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_3$s, "*")) : createCommentVNode("", true)
2549
+ ], 8, _hoisted_2$t)) : createCommentVNode("", true),
2522
2550
  createElementVNode("div", {
2523
2551
  class: normalizeClass(wrapperClasses.value)
2524
2552
  }, [
2525
- __props.prefixIcon ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
2553
+ __props.prefixIcon ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
2526
2554
  (openBlock(), createBlock(resolveDynamicComponent(__props.prefixIcon), { size: 16 }))
2527
2555
  ])) : createCommentVNode("", true),
2528
2556
  withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
@@ -2580,15 +2608,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
2580
2608
  };
2581
2609
  }
2582
2610
  });
2583
- const _hoisted_1$u = { class: "ina-chip__list" };
2584
- const _hoisted_2$r = ["onClick"];
2585
- const _hoisted_3$p = {
2611
+ const _hoisted_1$v = { class: "ina-chip__list" };
2612
+ const _hoisted_2$s = ["onClick"];
2613
+ const _hoisted_3$r = {
2586
2614
  key: 0,
2587
2615
  class: "ina-chip__custom-field"
2588
2616
  };
2589
- const _hoisted_4$l = { key: 0 };
2617
+ const _hoisted_4$m = { key: 0 };
2590
2618
  const _hoisted_5$i = { key: 1 };
2591
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
2619
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
2592
2620
  __name: "Chip",
2593
2621
  props: {
2594
2622
  options: {},
@@ -2692,21 +2720,21 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
2692
2720
  return openBlock(), createElementBlock("div", {
2693
2721
  class: normalizeClass(["ina-chip", chipContainerClasses.value])
2694
2722
  }, [
2695
- createElementVNode("div", _hoisted_1$u, [
2723
+ createElementVNode("div", _hoisted_1$v, [
2696
2724
  (openBlock(true), createElementBlock(Fragment, null, renderList(allOptions.value, (opt, index2) => {
2697
2725
  return openBlock(), createElementBlock("button", {
2698
2726
  key: `${opt.label}-${index2}`,
2699
2727
  type: "button",
2700
2728
  class: normalizeClass(getChipItemClasses(opt)),
2701
2729
  onClick: ($event) => handleChipClick(opt)
2702
- }, toDisplayString(opt.label), 11, _hoisted_2$r);
2730
+ }, toDisplayString(opt.label), 11, _hoisted_2$s);
2703
2731
  }), 128))
2704
2732
  ]),
2705
- __props.showCustomization && showInput.value ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
2706
- __props.customizationComponent ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
2733
+ __props.showCustomization && showInput.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
2734
+ __props.customizationComponent ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
2707
2735
  (openBlock(), createBlock(resolveDynamicComponent(__props.customizationComponent)))
2708
2736
  ])) : (openBlock(), createElementBlock("div", _hoisted_5$i, [
2709
- createVNode(_sfc_main$z, {
2737
+ createVNode(_sfc_main$A, {
2710
2738
  "model-value": tempValue.value,
2711
2739
  class: "ina-chip__input",
2712
2740
  placeholder: "Masukkan data yang Anda inginkan",
@@ -2720,11 +2748,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
2720
2748
  };
2721
2749
  }
2722
2750
  });
2723
- const _hoisted_1$t = ["id", "aria-expanded", "aria-controls"];
2724
- const _hoisted_2$q = { class: "ina-collapse__title" };
2725
- const _hoisted_3$o = ["id", "aria-labelledby"];
2726
- const _hoisted_4$k = { class: "ina-collapse__body" };
2727
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
2751
+ const _hoisted_1$u = ["id", "aria-expanded", "aria-controls"];
2752
+ const _hoisted_2$r = { class: "ina-collapse__title" };
2753
+ const _hoisted_3$q = ["id", "aria-labelledby"];
2754
+ const _hoisted_4$l = { class: "ina-collapse__body" };
2755
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
2728
2756
  __name: "Collapse",
2729
2757
  props: {
2730
2758
  title: { default: "" },
@@ -2773,7 +2801,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2773
2801
  "aria-controls": contentId.value,
2774
2802
  onClick: toggle
2775
2803
  }, [
2776
- createElementVNode("span", _hoisted_2$q, [
2804
+ createElementVNode("span", _hoisted_2$r, [
2777
2805
  renderSlot(_ctx.$slots, "title", {}, () => [
2778
2806
  createTextVNode(toDisplayString(__props.title), 1)
2779
2807
  ], true)
@@ -2794,7 +2822,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2794
2822
  "stroke-linejoin": "round"
2795
2823
  }, null, -1)
2796
2824
  ])], 2))
2797
- ], 8, _hoisted_1$t),
2825
+ ], 8, _hoisted_1$u),
2798
2826
  createVNode(Transition, { name: "collapse" }, {
2799
2827
  default: withCtx(() => [
2800
2828
  isOpen.value ? (openBlock(), createElementBlock("div", {
@@ -2803,10 +2831,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2803
2831
  class: "ina-collapse__content",
2804
2832
  "aria-labelledby": headerId.value
2805
2833
  }, [
2806
- createElementVNode("div", _hoisted_4$k, [
2834
+ createElementVNode("div", _hoisted_4$l, [
2807
2835
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
2808
2836
  ])
2809
- ], 8, _hoisted_3$o)) : createCommentVNode("", true)
2837
+ ], 8, _hoisted_3$q)) : createCommentVNode("", true)
2810
2838
  ]),
2811
2839
  _: 3
2812
2840
  })
@@ -2814,12 +2842,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2814
2842
  };
2815
2843
  }
2816
2844
  });
2817
- const Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-95c02a4c"]]);
2818
- const _hoisted_1$s = {
2845
+ const Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-95c02a4c"]]);
2846
+ const _hoisted_1$t = {
2819
2847
  key: 0,
2820
2848
  class: "ina-divider__label"
2821
2849
  };
2822
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
2850
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2823
2851
  __name: "Divider",
2824
2852
  props: {
2825
2853
  orientation: { default: "horizontal" },
@@ -2846,13 +2874,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
2846
2874
  class: normalizeClass(["ina-divider", dividerClasses.value]),
2847
2875
  role: "separator"
2848
2876
  }, [
2849
- __props.label ? (openBlock(), createElementBlock("div", _hoisted_1$s, toDisplayString(__props.label), 1)) : createCommentVNode("", true)
2877
+ __props.label ? (openBlock(), createElementBlock("div", _hoisted_1$t, toDisplayString(__props.label), 1)) : createCommentVNode("", true)
2850
2878
  ], 2);
2851
2879
  };
2852
2880
  }
2853
2881
  });
2854
- const _hoisted_1$r = { class: "ina-dropdown__list" };
2855
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
2882
+ const _hoisted_1$s = { class: "ina-dropdown__list" };
2883
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
2856
2884
  __name: "Dropdown",
2857
2885
  props: {
2858
2886
  trigger: {},
@@ -2956,7 +2984,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
2956
2984
  onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
2957
2985
  }, ["stop"]))
2958
2986
  }, [
2959
- createElementVNode("ul", _hoisted_1$r, [
2987
+ createElementVNode("ul", _hoisted_1$s, [
2960
2988
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayItems.value, (item, idx) => {
2961
2989
  return openBlock(), createElementBlock("li", {
2962
2990
  key: idx,
@@ -2977,12 +3005,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
2977
3005
  };
2978
3006
  }
2979
3007
  });
2980
- const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-133b76aa"]]);
2981
- const _hoisted_1$q = { class: "ina-field-input-table__wrapper" };
2982
- const _hoisted_2$p = { class: "ina-field-input-table__label" };
2983
- const _hoisted_3$n = ["value"];
2984
- const _hoisted_4$j = { class: "ina-field-input-table__actions" };
2985
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
3008
+ const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-133b76aa"]]);
3009
+ const _hoisted_1$r = { class: "ina-field-input-table__wrapper" };
3010
+ const _hoisted_2$q = { class: "ina-field-input-table__label" };
3011
+ const _hoisted_3$p = ["value"];
3012
+ const _hoisted_4$k = { class: "ina-field-input-table__actions" };
3013
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
2986
3014
  __name: "FieldInputTable",
2987
3015
  props: {
2988
3016
  value: {},
@@ -3028,8 +3056,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3028
3056
  return openBlock(), createElementBlock("div", {
3029
3057
  class: normalizeClass(containerClasses.value)
3030
3058
  }, [
3031
- createElementVNode("div", _hoisted_1$q, [
3032
- createElementVNode("label", _hoisted_2$p, toDisplayString(__props.placeholder), 1),
3059
+ createElementVNode("div", _hoisted_1$r, [
3060
+ createElementVNode("label", _hoisted_2$q, toDisplayString(__props.placeholder), 1),
3033
3061
  createElementVNode("input", {
3034
3062
  ref_key: "inputRef",
3035
3063
  ref: inputRef,
@@ -3039,9 +3067,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3039
3067
  onInput: handleChange,
3040
3068
  onKeydown: handleKeyDown,
3041
3069
  autofocus: ""
3042
- }, null, 40, _hoisted_3$n)
3070
+ }, null, 40, _hoisted_3$p)
3043
3071
  ]),
3044
- createElementVNode("div", _hoisted_4$j, [
3072
+ createElementVNode("div", _hoisted_4$k, [
3045
3073
  createElementVNode("button", {
3046
3074
  type: "button",
3047
3075
  onClick: handleCommit,
@@ -3312,38 +3340,35 @@ async function validateMagicNumber(file, expectedMimeType) {
3312
3340
  reader.readAsArrayBuffer(file.slice(0, HEADER_BYTES));
3313
3341
  });
3314
3342
  }
3315
- const _hoisted_1$p = {
3343
+ const _hoisted_1$q = {
3316
3344
  key: 0,
3317
3345
  class: "ina-file-upload__label"
3318
3346
  };
3319
- const _hoisted_2$o = ["accept", "multiple", "disabled"];
3320
- const _hoisted_3$m = { class: "ina-file-upload__content" };
3321
- const _hoisted_4$i = { class: "ina-file-upload__text" };
3322
- const _hoisted_5$h = { class: "ina-file-upload__title" };
3323
- const _hoisted_6$f = { class: "ina-file-upload__description" };
3324
- const _hoisted_7$f = ["disabled"];
3325
- const _hoisted_8$d = { class: "ina-file-upload__files" };
3326
- const _hoisted_9$a = { class: "ina-file-upload__file-indicator" };
3327
- const _hoisted_10$8 = {
3347
+ const _hoisted_2$p = ["accept", "multiple", "disabled"];
3348
+ const _hoisted_3$o = { class: "ina-file-upload__content" };
3349
+ const _hoisted_4$j = { class: "ina-file-upload__icon" };
3350
+ const _hoisted_5$h = { class: "ina-file-upload__text" };
3351
+ const _hoisted_6$f = { class: "ina-file-upload__title" };
3352
+ const _hoisted_7$f = { class: "ina-file-upload__description" };
3353
+ const _hoisted_8$d = ["disabled"];
3354
+ const _hoisted_9$a = { class: "ina-file-upload__files" };
3355
+ const _hoisted_10$8 = { class: "ina-file-upload__file-indicator" };
3356
+ const _hoisted_11$8 = {
3328
3357
  key: 0,
3329
3358
  class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--uploading"
3330
3359
  };
3331
- const _hoisted_11$8 = {
3360
+ const _hoisted_12$7 = {
3332
3361
  key: 1,
3333
3362
  class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--success"
3334
3363
  };
3335
- const _hoisted_12$7 = {
3364
+ const _hoisted_13$5 = {
3336
3365
  key: 2,
3337
3366
  class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--error"
3338
3367
  };
3339
- const _hoisted_13$5 = {
3368
+ const _hoisted_14$4 = {
3340
3369
  key: 3,
3341
3370
  class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--success"
3342
3371
  };
3343
- const _hoisted_14$4 = {
3344
- key: 4,
3345
- class: "ina-file-upload__file-icon-placeholder"
3346
- };
3347
3372
  const _hoisted_15$3 = { class: "ina-file-upload__file-info" };
3348
3373
  const _hoisted_16$2 = { class: "ina-file-upload__file-name" };
3349
3374
  const _hoisted_17$2 = { class: "ina-file-upload__file-size" };
@@ -3357,12 +3382,11 @@ const _hoisted_21$2 = ["onClick"];
3357
3382
  const _hoisted_22$1 = ["onClick"];
3358
3383
  const _hoisted_23$1 = ["onClick"];
3359
3384
  const _hoisted_24$1 = ["onClick"];
3360
- const _hoisted_25 = ["onClick"];
3361
- const _hoisted_26 = {
3385
+ const _hoisted_25$1 = {
3362
3386
  key: 2,
3363
3387
  class: "ina-file-upload__errors"
3364
3388
  };
3365
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
3389
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3366
3390
  __name: "FileUpload",
3367
3391
  props: {
3368
3392
  label: {},
@@ -3577,7 +3601,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3577
3601
  return openBlock(), createElementBlock("div", {
3578
3602
  class: normalizeClass(["ina-file-upload", uploadClasses.value])
3579
3603
  }, [
3580
- __props.label ? (openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
3604
+ __props.label ? (openBlock(), createElementBlock("div", _hoisted_1$q, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
3581
3605
  createElementVNode("div", {
3582
3606
  class: normalizeClass(["ina-file-upload__dropzone", dropzoneClasses.value]),
3583
3607
  onClick: triggerFileInput,
@@ -3594,23 +3618,25 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3594
3618
  disabled: __props.disabled,
3595
3619
  class: "ina-file-upload__input",
3596
3620
  onChange: handleFileChange
3597
- }, null, 40, _hoisted_2$o),
3598
- createElementVNode("div", _hoisted_3$m, [
3599
- _cache[1] || (_cache[1] = createStaticVNode('<div class="ina-file-upload__icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 10L12 15L17 10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 15V3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>', 1)),
3600
- createElementVNode("div", _hoisted_4$i, [
3601
- createElementVNode("div", _hoisted_5$h, toDisplayString(__props.title), 1),
3602
- createElementVNode("div", _hoisted_6$f, toDisplayString(__props.description), 1)
3621
+ }, null, 40, _hoisted_2$p),
3622
+ createElementVNode("div", _hoisted_3$o, [
3623
+ createElementVNode("div", _hoisted_4$j, [
3624
+ createVNode(unref(IconUpload), { size: 24 })
3625
+ ]),
3626
+ createElementVNode("div", _hoisted_5$h, [
3627
+ createElementVNode("div", _hoisted_6$f, toDisplayString(__props.title), 1),
3628
+ createElementVNode("div", _hoisted_7$f, toDisplayString(__props.description), 1)
3603
3629
  ]),
3604
3630
  createElementVNode("button", {
3605
3631
  type: "button",
3606
3632
  class: "ina-file-upload__button",
3607
3633
  disabled: __props.disabled,
3608
3634
  onClick: withModifiers(triggerFileInput, ["stop"])
3609
- }, " Pilih File ", 8, _hoisted_7$f)
3635
+ }, " Pilih File ", 8, _hoisted_8$d)
3610
3636
  ])
3611
3637
  ], 34),
3612
3638
  files.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3613
- createElementVNode("div", _hoisted_8$d, [
3639
+ createElementVNode("div", _hoisted_9$a, [
3614
3640
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayedFiles.value, (uploadedFile, displayIndex) => {
3615
3641
  return openBlock(), createElementBlock("div", {
3616
3642
  key: `${uploadedFile.file.name}-${getOriginalIndex(uploadedFile)}`,
@@ -3620,95 +3646,28 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3620
3646
  "ina-file-upload__file--uploading": uploadedFile.status === "uploading"
3621
3647
  }])
3622
3648
  }, [
3623
- createElementVNode("div", _hoisted_9$a, [
3624
- uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_10$8, [..._cache[2] || (_cache[2] = [
3625
- createElementVNode("svg", {
3626
- class: "ina-file-upload__file-icon--spinning",
3627
- width: "16",
3628
- height: "16",
3629
- viewBox: "0 0 24 24",
3630
- fill: "none",
3631
- xmlns: "http://www.w3.org/2000/svg"
3632
- }, [
3633
- createElementVNode("circle", {
3634
- cx: "12",
3635
- cy: "12",
3636
- r: "10",
3637
- stroke: "currentColor",
3638
- "stroke-width": "2",
3639
- "stroke-linecap": "round",
3640
- "stroke-dasharray": "31.416",
3641
- "stroke-dashoffset": "31.416"
3642
- }, [
3643
- createElementVNode("animate", {
3644
- attributeName: "stroke-dasharray",
3645
- dur: "2s",
3646
- values: "0 31.416;15.708 15.708;0 31.416",
3647
- repeatCount: "indefinite"
3648
- }),
3649
- createElementVNode("animate", {
3650
- attributeName: "stroke-dashoffset",
3651
- dur: "2s",
3652
- values: "0;-15.708;-31.416",
3653
- repeatCount: "indefinite"
3654
- })
3655
- ])
3656
- ], -1)
3657
- ])])) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("div", _hoisted_11$8, [..._cache[3] || (_cache[3] = [
3658
- createElementVNode("svg", {
3659
- width: "16",
3660
- height: "16",
3661
- viewBox: "0 0 24 24",
3662
- fill: "none",
3663
- xmlns: "http://www.w3.org/2000/svg"
3664
- }, [
3665
- createElementVNode("path", {
3666
- d: "M20 6L9 17L4 12",
3667
- stroke: "currentColor",
3668
- "stroke-width": "2",
3669
- "stroke-linecap": "round",
3670
- "stroke-linejoin": "round"
3671
- })
3672
- ], -1)
3673
- ])])) : uploadedFile.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_12$7, [..._cache[4] || (_cache[4] = [
3674
- createElementVNode("svg", {
3675
- width: "16",
3676
- height: "16",
3677
- viewBox: "0 0 24 24",
3678
- fill: "none",
3679
- xmlns: "http://www.w3.org/2000/svg"
3680
- }, [
3681
- createElementVNode("circle", {
3682
- cx: "12",
3683
- cy: "12",
3684
- r: "10",
3685
- stroke: "currentColor",
3686
- "stroke-width": "2"
3687
- }),
3688
- createElementVNode("path", {
3689
- d: "M12 8V12M12 16H12.01",
3690
- stroke: "currentColor",
3691
- "stroke-width": "2",
3692
- "stroke-linecap": "round"
3693
- })
3694
- ], -1)
3695
- ])])) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("div", _hoisted_13$5, [..._cache[5] || (_cache[5] = [
3696
- createElementVNode("svg", {
3697
- width: "16",
3698
- height: "16",
3699
- viewBox: "0 0 24 24",
3700
- fill: "none",
3701
- xmlns: "http://www.w3.org/2000/svg"
3702
- }, [
3703
- createElementVNode("path", {
3704
- d: "M20 6L9 17L4 12",
3705
- stroke: "currentColor",
3706
- "stroke-width": "2",
3707
- "stroke-linecap": "round",
3708
- "stroke-linejoin": "round"
3709
- })
3710
- ], -1)
3711
- ])])) : (openBlock(), createElementBlock("div", _hoisted_14$4))
3649
+ createElementVNode("div", _hoisted_10$8, [
3650
+ uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_11$8, [
3651
+ createVNode(unref(IconLoader2), {
3652
+ size: 16,
3653
+ class: "ina-file-upload__file-icon--spinning"
3654
+ })
3655
+ ])) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("div", _hoisted_12$7, [
3656
+ createVNode(unref(IconCircleCheck), {
3657
+ size: 16,
3658
+ stroke: "2"
3659
+ })
3660
+ ])) : uploadedFile.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_13$5, [
3661
+ createVNode(unref(IconCircleX), {
3662
+ size: 16,
3663
+ stroke: "2"
3664
+ })
3665
+ ])) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("div", _hoisted_14$4, [
3666
+ createVNode(unref(IconCircleCheck), {
3667
+ size: 16,
3668
+ stroke: "2"
3669
+ })
3670
+ ])) : createCommentVNode("", true)
3712
3671
  ]),
3713
3672
  createElementVNode("div", _hoisted_15$3, [
3714
3673
  createElementVNode("div", _hoisted_16$2, toDisplayString(unref(sanitizeFileName)(uploadedFile.file.name)), 1),
@@ -3722,169 +3681,42 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3722
3681
  type: "button",
3723
3682
  class: "ina-file-upload__file-retry",
3724
3683
  onClick: ($event) => updateFileStatus(getOriginalIndex(uploadedFile), "idle")
3725
- }, [..._cache[6] || (_cache[6] = [
3726
- createElementVNode("svg", {
3727
- width: "16",
3728
- height: "16",
3729
- viewBox: "0 0 24 24",
3730
- fill: "none",
3731
- xmlns: "http://www.w3.org/2000/svg"
3732
- }, [
3733
- createElementVNode("path", {
3734
- d: "M1 4V10H7",
3735
- stroke: "currentColor",
3736
- "stroke-width": "2",
3737
- "stroke-linecap": "round",
3738
- "stroke-linejoin": "round"
3739
- }),
3740
- createElementVNode("path", {
3741
- d: "M23 20V14H17",
3742
- stroke: "currentColor",
3743
- "stroke-width": "2",
3744
- "stroke-linecap": "round",
3745
- "stroke-linejoin": "round"
3746
- }),
3747
- createElementVNode("path", {
3748
- d: "M20.49 9A9 9 0 0 0 5.64 5.64L1 10M23 14L18.36 18.36A9 9 0 0 1 3.51 15",
3749
- stroke: "currentColor",
3750
- "stroke-width": "2",
3751
- "stroke-linecap": "round",
3752
- "stroke-linejoin": "round"
3753
- })
3754
- ], -1)
3755
- ])], 8, _hoisted_20$2),
3684
+ }, [
3685
+ createVNode(unref(IconRotateClockwise), { size: 16 })
3686
+ ], 8, _hoisted_20$2),
3756
3687
  createElementVNode("button", {
3757
3688
  title: "Hapus file",
3758
3689
  type: "button",
3759
3690
  class: "ina-file-upload__file-remove",
3760
3691
  onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
3761
- }, [..._cache[7] || (_cache[7] = [
3762
- createElementVNode("svg", {
3763
- width: "16",
3764
- height: "16",
3765
- viewBox: "0 0 24 24",
3766
- fill: "none",
3767
- xmlns: "http://www.w3.org/2000/svg"
3768
- }, [
3769
- createElementVNode("path", {
3770
- d: "M3 6H5H21M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",
3771
- stroke: "currentColor",
3772
- "stroke-width": "2",
3773
- "stroke-linecap": "round",
3774
- "stroke-linejoin": "round"
3775
- }),
3776
- createElementVNode("path", {
3777
- d: "M10 11V17M14 11V17",
3778
- stroke: "currentColor",
3779
- "stroke-width": "2",
3780
- "stroke-linecap": "round",
3781
- "stroke-linejoin": "round"
3782
- })
3783
- ], -1)
3784
- ])], 8, _hoisted_21$2)
3692
+ }, [
3693
+ createVNode(unref(IconTrash), { size: 16 })
3694
+ ], 8, _hoisted_21$2)
3785
3695
  ], 64)) : uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("button", {
3786
3696
  key: 1,
3787
3697
  title: "Batalkan upload",
3788
3698
  type: "button",
3789
3699
  class: "ina-file-upload__file-remove",
3790
3700
  onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
3791
- }, [..._cache[8] || (_cache[8] = [
3792
- createElementVNode("svg", {
3793
- width: "16",
3794
- height: "16",
3795
- viewBox: "0 0 24 24",
3796
- fill: "none",
3797
- xmlns: "http://www.w3.org/2000/svg"
3798
- }, [
3799
- createElementVNode("path", {
3800
- d: "M18 6L6 18M6 6L18 18",
3801
- stroke: "currentColor",
3802
- "stroke-width": "2",
3803
- "stroke-linecap": "round",
3804
- "stroke-linejoin": "round"
3805
- })
3806
- ], -1)
3807
- ])], 8, _hoisted_22$1)) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("button", {
3701
+ }, [
3702
+ createVNode(unref(IconX), { size: 16 })
3703
+ ], 8, _hoisted_22$1)) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("button", {
3808
3704
  key: 2,
3809
3705
  title: "Hapus file",
3810
3706
  type: "button",
3811
3707
  class: "ina-file-upload__file-remove",
3812
3708
  onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
3813
- }, [..._cache[9] || (_cache[9] = [
3814
- createElementVNode("svg", {
3815
- width: "16",
3816
- height: "16",
3817
- viewBox: "0 0 24 24",
3818
- fill: "none",
3819
- xmlns: "http://www.w3.org/2000/svg"
3820
- }, [
3821
- createElementVNode("path", {
3822
- d: "M3 6H5H21M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",
3823
- stroke: "currentColor",
3824
- "stroke-width": "2",
3825
- "stroke-linecap": "round",
3826
- "stroke-linejoin": "round"
3827
- }),
3828
- createElementVNode("path", {
3829
- d: "M10 11V17M14 11V17",
3830
- stroke: "currentColor",
3831
- "stroke-width": "2",
3832
- "stroke-linecap": "round",
3833
- "stroke-linejoin": "round"
3834
- })
3835
- ], -1)
3836
- ])], 8, _hoisted_23$1)) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("button", {
3709
+ }, [
3710
+ createVNode(unref(IconTrash), { size: 16 })
3711
+ ], 8, _hoisted_23$1)) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("button", {
3837
3712
  key: 3,
3838
3713
  title: "Hapus file",
3839
3714
  type: "button",
3840
3715
  class: "ina-file-upload__file-remove",
3841
3716
  onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
3842
- }, [..._cache[10] || (_cache[10] = [
3843
- createElementVNode("svg", {
3844
- width: "16",
3845
- height: "16",
3846
- viewBox: "0 0 24 24",
3847
- fill: "none",
3848
- xmlns: "http://www.w3.org/2000/svg"
3849
- }, [
3850
- createElementVNode("path", {
3851
- d: "M3 6H5H21M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",
3852
- stroke: "currentColor",
3853
- "stroke-width": "2",
3854
- "stroke-linecap": "round",
3855
- "stroke-linejoin": "round"
3856
- }),
3857
- createElementVNode("path", {
3858
- d: "M10 11V17M14 11V17",
3859
- stroke: "currentColor",
3860
- "stroke-width": "2",
3861
- "stroke-linecap": "round",
3862
- "stroke-linejoin": "round"
3863
- })
3864
- ], -1)
3865
- ])], 8, _hoisted_24$1)) : (openBlock(), createElementBlock("button", {
3866
- key: 4,
3867
- title: "Hapus file",
3868
- type: "button",
3869
- class: "ina-file-upload__file-remove",
3870
- onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
3871
- }, [..._cache[11] || (_cache[11] = [
3872
- createElementVNode("svg", {
3873
- width: "16",
3874
- height: "16",
3875
- viewBox: "0 0 24 24",
3876
- fill: "none",
3877
- xmlns: "http://www.w3.org/2000/svg"
3878
- }, [
3879
- createElementVNode("path", {
3880
- d: "M18 6L6 18M6 6L18 18",
3881
- stroke: "currentColor",
3882
- "stroke-width": "2",
3883
- "stroke-linecap": "round",
3884
- "stroke-linejoin": "round"
3885
- })
3886
- ], -1)
3887
- ])], 8, _hoisted_25))
3717
+ }, [
3718
+ createVNode(unref(IconTrash), { size: 16 })
3719
+ ], 8, _hoisted_24$1)) : createCommentVNode("", true)
3888
3720
  ])
3889
3721
  ], 2);
3890
3722
  }), 128))
@@ -3905,7 +3737,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3905
3737
  class: normalizeClass([{
3906
3738
  "ina-file-upload__show-more-icon--expanded": showAllFiles.value
3907
3739
  }, "ina-file-upload__show-more-icon"])
3908
- }, [..._cache[12] || (_cache[12] = [
3740
+ }, [..._cache[1] || (_cache[1] = [
3909
3741
  createElementVNode("path", {
3910
3742
  d: "M6 9L12 15L18 9",
3911
3743
  stroke: "currentColor",
@@ -3916,7 +3748,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3916
3748
  ])], 2))
3917
3749
  ])) : createCommentVNode("", true)
3918
3750
  ], 64)) : createCommentVNode("", true),
3919
- validationErrors.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_26, [
3751
+ validationErrors.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
3920
3752
  (openBlock(true), createElementBlock(Fragment, null, renderList(validationErrors.value, (error, index2) => {
3921
3753
  return openBlock(), createElementBlock("div", {
3922
3754
  key: index2,
@@ -3928,14 +3760,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3928
3760
  };
3929
3761
  }
3930
3762
  });
3931
- const _hoisted_1$o = ["for"];
3932
- const _hoisted_2$n = {
3763
+ const _hoisted_1$p = ["for"];
3764
+ const _hoisted_2$o = {
3933
3765
  key: 0,
3934
3766
  class: "ina-input-search__required"
3935
3767
  };
3936
- const _hoisted_3$l = { class: "ina-input-search__wrapper" };
3937
- const _hoisted_4$h = ["id", "placeholder", "disabled", "readonly", "maxlength"];
3938
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
3768
+ const _hoisted_3$n = { class: "ina-input-search__wrapper" };
3769
+ const _hoisted_4$i = ["id", "placeholder", "disabled", "readonly", "maxlength"];
3770
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3939
3771
  __name: "InputSearch",
3940
3772
  props: {
3941
3773
  modelValue: { default: "" },
@@ -4044,9 +3876,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4044
3876
  class: "ina-input-search__label"
4045
3877
  }, [
4046
3878
  createTextVNode(toDisplayString(__props.label) + " ", 1),
4047
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$n, "*")) : createCommentVNode("", true)
4048
- ], 8, _hoisted_1$o)) : createCommentVNode("", true),
4049
- createElementVNode("div", _hoisted_3$l, [
3879
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$o, "*")) : createCommentVNode("", true)
3880
+ ], 8, _hoisted_1$p)) : createCommentVNode("", true),
3881
+ createElementVNode("div", _hoisted_3$n, [
4050
3882
  _cache[2] || (_cache[2] = createElementVNode("div", { class: "ina-input-search__search-icon" }, [
4051
3883
  createElementVNode("svg", {
4052
3884
  width: "16",
@@ -4086,7 +3918,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4086
3918
  onBlur: handleBlur,
4087
3919
  onFocus: handleFocus,
4088
3920
  onKeydown: withKeys(handleSearch, ["enter"])
4089
- }), null, 16, _hoisted_4$h), [
3921
+ }), null, 16, _hoisted_4$i), [
4090
3922
  [vModelText, inputValue.value]
4091
3923
  ]),
4092
3924
  inputValue.value && __props.showClearButton ? (openBlock(), createElementBlock("button", {
@@ -4120,13 +3952,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4120
3952
  };
4121
3953
  }
4122
3954
  });
4123
- const _hoisted_1$n = { class: "ina-modal__container" };
4124
- const _hoisted_2$m = ["aria-labelledby", "aria-describedby"];
4125
- const _hoisted_3$k = {
3955
+ const _hoisted_1$o = { class: "ina-modal__container" };
3956
+ const _hoisted_2$n = ["aria-labelledby", "aria-describedby"];
3957
+ const _hoisted_3$m = {
4126
3958
  key: 0,
4127
3959
  class: "ina-modal__header"
4128
3960
  };
4129
- const _hoisted_4$g = ["id"];
3961
+ const _hoisted_4$h = ["id"];
4130
3962
  const _hoisted_5$g = ["aria-label"];
4131
3963
  const _hoisted_6$e = { class: "ina-modal__body" };
4132
3964
  const _hoisted_7$e = ["id"];
@@ -4134,7 +3966,7 @@ const _hoisted_8$c = {
4134
3966
  key: 1,
4135
3967
  class: "ina-modal__footer"
4136
3968
  };
4137
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
3969
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4138
3970
  __name: "Modal",
4139
3971
  props: {
4140
3972
  modelValue: { type: Boolean, default: false },
@@ -4224,7 +4056,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
4224
4056
  onClick: handleBackdropClick
4225
4057
  }, [
4226
4058
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "ina-modal__backdrop" }, null, -1)),
4227
- createElementVNode("div", _hoisted_1$n, [
4059
+ createElementVNode("div", _hoisted_1$o, [
4228
4060
  createElementVNode("div", {
4229
4061
  ref_key: "modalRef",
4230
4062
  ref: modalRef,
@@ -4236,7 +4068,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
4236
4068
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
4237
4069
  }, ["stop"]))
4238
4070
  }, [
4239
- __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_3$k, [
4071
+ __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
4240
4072
  createElementVNode("h2", {
4241
4073
  id: titleId.value,
4242
4074
  class: "ina-modal__title"
@@ -4244,7 +4076,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
4244
4076
  renderSlot(_ctx.$slots, "title", {}, () => [
4245
4077
  createTextVNode(toDisplayString(__props.title), 1)
4246
4078
  ], true)
4247
- ], 8, _hoisted_4$g),
4079
+ ], 8, _hoisted_4$h),
4248
4080
  __props.showCloseButton ? (openBlock(), createElementBlock("button", {
4249
4081
  key: 0,
4250
4082
  type: "button",
@@ -4269,7 +4101,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
4269
4101
  __props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
4270
4102
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
4271
4103
  ])) : createCommentVNode("", true)
4272
- ], 10, _hoisted_2$m)
4104
+ ], 10, _hoisted_2$n)
4273
4105
  ])
4274
4106
  ], 2)) : createCommentVNode("", true)
4275
4107
  ]),
@@ -4279,7 +4111,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
4279
4111
  };
4280
4112
  }
4281
4113
  });
4282
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-524eaf2f"]]);
4114
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-524eaf2f"]]);
4283
4115
  function r(e) {
4284
4116
  var t, f, n = "";
4285
4117
  if ("string" == typeof e || "number" == typeof e) n += e;
@@ -4293,13 +4125,13 @@ function clsx() {
4293
4125
  for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
4294
4126
  return n;
4295
4127
  }
4296
- const _hoisted_1$m = ["for"];
4297
- const _hoisted_2$l = {
4128
+ const _hoisted_1$n = ["for"];
4129
+ const _hoisted_2$m = {
4298
4130
  key: 0,
4299
4131
  class: "ina-month-picker__required"
4300
4132
  };
4301
- const _hoisted_3$j = { class: "ina-month-picker__wrapper" };
4302
- const _hoisted_4$f = ["id", "disabled", "aria-expanded", "aria-labelledby"];
4133
+ const _hoisted_3$l = { class: "ina-month-picker__wrapper" };
4134
+ const _hoisted_4$g = ["id", "disabled", "aria-expanded", "aria-labelledby"];
4303
4135
  const _hoisted_5$f = {
4304
4136
  key: 0,
4305
4137
  class: "ina-month-picker__prefix-icon"
@@ -4307,7 +4139,7 @@ const _hoisted_5$f = {
4307
4139
  const _hoisted_6$d = { class: "ina-month-picker__trigger-text" };
4308
4140
  const _hoisted_7$d = { class: "ina-month-picker__grid" };
4309
4141
  const _hoisted_8$b = ["disabled", "onClick", "onMouseenter"];
4310
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
4142
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
4311
4143
  __name: "MonthPicker",
4312
4144
  props: {
4313
4145
  modelValue: { default: void 0 },
@@ -4567,9 +4399,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
4567
4399
  class: "ina-month-picker__label"
4568
4400
  }, [
4569
4401
  createTextVNode(toDisplayString(__props.label) + " ", 1),
4570
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$l, "*")) : createCommentVNode("", true)
4571
- ], 8, _hoisted_1$m)) : createCommentVNode("", true),
4572
- createElementVNode("div", _hoisted_3$j, [
4402
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$m, "*")) : createCommentVNode("", true)
4403
+ ], 8, _hoisted_1$n)) : createCommentVNode("", true),
4404
+ createElementVNode("div", _hoisted_3$l, [
4573
4405
  createElementVNode("button", {
4574
4406
  id: triggerId.value,
4575
4407
  ref_key: "triggerRef",
@@ -4625,7 +4457,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
4625
4457
  "stroke-linejoin": "round"
4626
4458
  }, null, -1)
4627
4459
  ])], 2))
4628
- ], 42, _hoisted_4$f),
4460
+ ], 42, _hoisted_4$g),
4629
4461
  createVNode(Transition, { name: "panel" }, {
4630
4462
  default: withCtx(() => [
4631
4463
  isOpen.value ? (openBlock(), createElementBlock("div", {
@@ -4665,22 +4497,22 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
4665
4497
  };
4666
4498
  }
4667
4499
  });
4668
- const MonthPicker = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a8fe0103"]]);
4669
- const _hoisted_1$l = {
4500
+ const MonthPicker = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-a8fe0103"]]);
4501
+ const _hoisted_1$m = {
4670
4502
  key: 0,
4671
4503
  class: "ina-multiple-choice-grid__title"
4672
4504
  };
4673
- const _hoisted_2$k = {
4505
+ const _hoisted_2$l = {
4674
4506
  key: 1,
4675
4507
  class: "ina-multiple-choice-grid__subtitle"
4676
4508
  };
4677
- const _hoisted_3$i = { class: "ina-multiple-choice-grid__container" };
4678
- const _hoisted_4$e = { class: "ina-multiple-choice-grid__grid" };
4509
+ const _hoisted_3$k = { class: "ina-multiple-choice-grid__container" };
4510
+ const _hoisted_4$f = { class: "ina-multiple-choice-grid__grid" };
4679
4511
  const _hoisted_5$e = { class: "ina-multiple-choice-grid__header-row" };
4680
4512
  const _hoisted_6$c = { class: "ina-multiple-choice-grid__row-label" };
4681
4513
  const _hoisted_7$c = ["id", "name", "value", "disabled"];
4682
4514
  const _hoisted_8$a = ["for"];
4683
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
4515
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
4684
4516
  __name: "MultipleChoiceGrid",
4685
4517
  props: {
4686
4518
  modelValue: { default: () => [] },
@@ -4729,10 +4561,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
4729
4561
  return openBlock(), createElementBlock("div", {
4730
4562
  class: normalizeClass(["ina-multiple-choice-grid", gridClasses.value])
4731
4563
  }, [
4732
- __props.title ? (openBlock(), createElementBlock("div", _hoisted_1$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
4733
- __props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true),
4734
- createElementVNode("div", _hoisted_3$i, [
4735
- createElementVNode("div", _hoisted_4$e, [
4564
+ __props.title ? (openBlock(), createElementBlock("div", _hoisted_1$m, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
4565
+ __props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true),
4566
+ createElementVNode("div", _hoisted_3$k, [
4567
+ createElementVNode("div", _hoisted_4$f, [
4736
4568
  createElementVNode("div", _hoisted_5$e, [
4737
4569
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "ina-multiple-choice-grid__header-cell ina-multiple-choice-grid__header-cell--empty" }, null, -1)),
4738
4570
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column, colIndex) => {
@@ -4785,10 +4617,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
4785
4617
  };
4786
4618
  }
4787
4619
  });
4788
- const _hoisted_1$k = ["aria-label"];
4789
- const _hoisted_2$j = { class: "ina-pagination__nav-container" };
4790
- const _hoisted_3$h = { class: "ina-pagination__page-info" };
4791
- const _hoisted_4$d = { class: "ina-pagination__nav-buttons" };
4620
+ const _hoisted_1$l = ["aria-label"];
4621
+ const _hoisted_2$k = { class: "ina-pagination__nav-container" };
4622
+ const _hoisted_3$j = { class: "ina-pagination__page-info" };
4623
+ const _hoisted_4$e = { class: "ina-pagination__nav-buttons" };
4792
4624
  const _hoisted_5$d = ["disabled"];
4793
4625
  const _hoisted_6$b = ["disabled", "aria-label"];
4794
4626
  const _hoisted_7$b = ["onClick", "disabled", "aria-label", "aria-current"];
@@ -4800,7 +4632,7 @@ const _hoisted_10$7 = {
4800
4632
  };
4801
4633
  const _hoisted_11$7 = ["value", "disabled"];
4802
4634
  const _hoisted_12$6 = ["value"];
4803
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
4635
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
4804
4636
  __name: "Pagination",
4805
4637
  props: {
4806
4638
  modelValue: { default: 1 },
@@ -4834,8 +4666,18 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
4834
4666
  pages.push(i);
4835
4667
  }
4836
4668
  } else {
4837
- const start = Math.max(1, current - 1);
4838
- const end = Math.min(total, current + 1);
4669
+ let start;
4670
+ let end;
4671
+ if (current === 1) {
4672
+ start = 1;
4673
+ end = Math.min(3, total);
4674
+ } else if (current === total) {
4675
+ start = Math.max(1, total - 2);
4676
+ end = total;
4677
+ } else {
4678
+ start = current - 1;
4679
+ end = current + 1;
4680
+ }
4839
4681
  for (let i = start; i <= end; i++) {
4840
4682
  pages.push(i);
4841
4683
  }
@@ -4902,9 +4744,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
4902
4744
  role: "navigation",
4903
4745
  "aria-label": __props.ariaLabel
4904
4746
  }, [
4905
- createElementVNode("div", _hoisted_2$j, [
4906
- createElementVNode("div", _hoisted_3$h, " Halaman " + toDisplayString(currentPage.value) + " dari " + toDisplayString(__props.totalPages), 1),
4907
- createElementVNode("div", _hoisted_4$d, [
4747
+ createElementVNode("div", _hoisted_2$k, [
4748
+ createElementVNode("div", _hoisted_3$j, " Halaman " + toDisplayString(currentPage.value) + " dari " + toDisplayString(__props.totalPages), 1),
4749
+ createElementVNode("div", _hoisted_4$e, [
4908
4750
  createElementVNode("button", {
4909
4751
  type: "button",
4910
4752
  class: normalizeClass(["ina-pagination__nav-button", {
@@ -5044,17 +4886,17 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5044
4886
  }), 128))
5045
4887
  ], 42, _hoisted_11$7)
5046
4888
  ])) : createCommentVNode("", true)
5047
- ], 10, _hoisted_1$k)) : createCommentVNode("", true);
4889
+ ], 10, _hoisted_1$l)) : createCommentVNode("", true);
5048
4890
  };
5049
4891
  }
5050
4892
  });
5051
- const _hoisted_1$j = { class: "ina-password-input" };
5052
- const _hoisted_2$i = ["for"];
5053
- const _hoisted_3$g = {
4893
+ const _hoisted_1$k = { class: "ina-password-input" };
4894
+ const _hoisted_2$j = ["for"];
4895
+ const _hoisted_3$i = {
5054
4896
  key: 0,
5055
4897
  class: "ina-password-input__required"
5056
4898
  };
5057
- const _hoisted_4$c = ["id", "type", "placeholder", "disabled", "readonly", "maxlength"];
4899
+ const _hoisted_4$d = ["id", "type", "placeholder", "disabled", "readonly", "maxlength"];
5058
4900
  const _hoisted_5$c = ["disabled"];
5059
4901
  const _hoisted_6$a = {
5060
4902
  key: 0,
@@ -5080,7 +4922,7 @@ const _hoisted_9$8 = {
5080
4922
  key: 0,
5081
4923
  class: "ina-password-input__character-count"
5082
4924
  };
5083
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
4925
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5084
4926
  __name: "PasswordInput",
5085
4927
  props: {
5086
4928
  modelValue: { default: "" },
@@ -5156,15 +4998,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5156
4998
  }
5157
4999
  );
5158
5000
  return (_ctx, _cache) => {
5159
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
5001
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
5160
5002
  __props.label ? (openBlock(), createElementBlock("label", {
5161
5003
  key: 0,
5162
5004
  for: inputId.value,
5163
5005
  class: "ina-password-input__label"
5164
5006
  }, [
5165
5007
  createTextVNode(toDisplayString(__props.label) + " ", 1),
5166
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_3$g, "*")) : createCommentVNode("", true)
5167
- ], 8, _hoisted_2$i)) : createCommentVNode("", true),
5008
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_3$i, "*")) : createCommentVNode("", true)
5009
+ ], 8, _hoisted_2$j)) : createCommentVNode("", true),
5168
5010
  createElementVNode("div", {
5169
5011
  class: normalizeClass(wrapperClasses.value)
5170
5012
  }, [
@@ -5182,7 +5024,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5182
5024
  onInput: handleInput,
5183
5025
  onBlur: handleBlur,
5184
5026
  onFocus: handleFocus
5185
- }, _ctx.$attrs), null, 16, _hoisted_4$c), [
5027
+ }, _ctx.$attrs), null, 16, _hoisted_4$d), [
5186
5028
  [vModelDynamic, inputValue.value]
5187
5029
  ]),
5188
5030
  createElementVNode("button", {
@@ -5239,13 +5081,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5239
5081
  };
5240
5082
  }
5241
5083
  });
5242
- const _hoisted_1$i = ["for"];
5243
- const _hoisted_2$h = {
5084
+ const _hoisted_1$j = ["for"];
5085
+ const _hoisted_2$i = {
5244
5086
  key: 0,
5245
5087
  class: "ina-phone-input__required"
5246
5088
  };
5247
- const _hoisted_3$f = { class: "ina-phone-input__wrapper" };
5248
- const _hoisted_4$b = { class: "ina-phone-input__country-selector" };
5089
+ const _hoisted_3$h = { class: "ina-phone-input__wrapper" };
5090
+ const _hoisted_4$c = { class: "ina-phone-input__country-selector" };
5249
5091
  const _hoisted_5$b = { class: "ina-phone-input__country-flag" };
5250
5092
  const _hoisted_6$9 = { class: "ina-phone-input__country-code" };
5251
5093
  const _hoisted_7$9 = {
@@ -5259,7 +5101,7 @@ const _hoisted_11$6 = { class: "ina-phone-input__country-flag" };
5259
5101
  const _hoisted_12$5 = { class: "ina-phone-input__country-name" };
5260
5102
  const _hoisted_13$4 = { class: "ina-phone-input__country-dial-code" };
5261
5103
  const _hoisted_14$3 = ["id", "placeholder", "disabled", "readonly"];
5262
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
5104
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5263
5105
  __name: "PhoneInput",
5264
5106
  props: {
5265
5107
  modelValue: { default: "" },
@@ -5410,10 +5252,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5410
5252
  class: "ina-phone-input__label"
5411
5253
  }, [
5412
5254
  createTextVNode(toDisplayString(__props.label) + " ", 1),
5413
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$h, "*")) : createCommentVNode("", true)
5414
- ], 8, _hoisted_1$i)) : createCommentVNode("", true),
5415
- createElementVNode("div", _hoisted_3$f, [
5416
- createElementVNode("div", _hoisted_4$b, [
5255
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$i, "*")) : createCommentVNode("", true)
5256
+ ], 8, _hoisted_1$j)) : createCommentVNode("", true),
5257
+ createElementVNode("div", _hoisted_3$h, [
5258
+ createElementVNode("div", _hoisted_4$c, [
5417
5259
  createElementVNode("button", {
5418
5260
  type: "button",
5419
5261
  class: "ina-phone-input__country-button",
@@ -5497,12 +5339,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5497
5339
  };
5498
5340
  }
5499
5341
  });
5500
- const PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8d7dab9d"]]);
5501
- const _hoisted_1$h = {
5342
+ const PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-8d7dab9d"]]);
5343
+ const _hoisted_1$i = {
5502
5344
  key: 0,
5503
5345
  class: "ina-progress-bar__shimmer"
5504
5346
  };
5505
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
5347
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5506
5348
  __name: "ProgressBar",
5507
5349
  props: {
5508
5350
  visible: { type: Boolean, default: true },
@@ -5552,7 +5394,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
5552
5394
  transitionDuration: `${__props.duration}ms`
5553
5395
  })
5554
5396
  }, null, 6),
5555
- __props.shimmer ? (openBlock(), createElementBlock("div", _hoisted_1$h)) : createCommentVNode("", true),
5397
+ __props.shimmer ? (openBlock(), createElementBlock("div", _hoisted_1$i)) : createCommentVNode("", true),
5556
5398
  createElementVNode("div", {
5557
5399
  class: normalizeClass(indicatorClasses.value),
5558
5400
  style: normalizeStyle({
@@ -5565,7 +5407,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
5565
5407
  };
5566
5408
  }
5567
5409
  });
5568
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
5410
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
5569
5411
  __name: "LinearProgressIndicator",
5570
5412
  props: {
5571
5413
  value: { default: 0 },
@@ -5599,12 +5441,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5599
5441
  };
5600
5442
  }
5601
5443
  });
5602
- const _hoisted_1$g = ["disabled"];
5603
- const _hoisted_2$g = { class: "ina-radio-input__group" };
5604
- const _hoisted_3$e = ["for"];
5605
- const _hoisted_4$a = ["id", "name", "value", "disabled"];
5444
+ const _hoisted_1$h = ["disabled"];
5445
+ const _hoisted_2$h = { class: "ina-radio-input__group" };
5446
+ const _hoisted_3$g = ["for"];
5447
+ const _hoisted_4$b = ["id", "name", "value", "disabled"];
5606
5448
  const _hoisted_5$a = ["for"];
5607
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
5449
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5608
5450
  __name: "RadioInput",
5609
5451
  props: {
5610
5452
  modelValue: {},
@@ -5677,11 +5519,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5677
5519
  class: normalizeClass(["ina-radio-input", radioClasses.value]),
5678
5520
  disabled: __props.disabled
5679
5521
  }, [
5680
- createElementVNode("div", _hoisted_2$g, [
5522
+ createElementVNode("div", _hoisted_2$h, [
5681
5523
  createElementVNode("label", {
5682
5524
  class: normalizeClass(labelClasses.value),
5683
5525
  for: labelId.value
5684
- }, toDisplayString(__props.label), 11, _hoisted_3$e),
5526
+ }, toDisplayString(__props.label), 11, _hoisted_3$g),
5685
5527
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index2) => {
5686
5528
  return openBlock(), createElementBlock("div", {
5687
5529
  key: `${option.value}-${index2}`,
@@ -5702,7 +5544,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5702
5544
  onChange: handleChange,
5703
5545
  onFocus: handleFocus,
5704
5546
  onBlur: handleBlur
5705
- }), null, 16, _hoisted_4$a), [
5547
+ }), null, 16, _hoisted_4$b), [
5706
5548
  [vModelRadio, selectedValue.value]
5707
5549
  ]),
5708
5550
  createElementVNode("label", {
@@ -5716,17 +5558,17 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5716
5558
  key: 0,
5717
5559
  class: normalizeClass(helperClasses.value)
5718
5560
  }, toDisplayString(__props.helperText), 3)) : createCommentVNode("", true)
5719
- ], 10, _hoisted_1$g);
5561
+ ], 10, _hoisted_1$h);
5720
5562
  };
5721
5563
  }
5722
5564
  });
5723
- const _hoisted_1$f = ["for"];
5724
- const _hoisted_2$f = {
5565
+ const _hoisted_1$g = ["for"];
5566
+ const _hoisted_2$g = {
5725
5567
  key: 0,
5726
5568
  class: "ina-year-picker__required"
5727
5569
  };
5728
- const _hoisted_3$d = { class: "ina-year-picker__wrapper" };
5729
- const _hoisted_4$9 = ["id", "disabled", "aria-expanded", "aria-labelledby"];
5570
+ const _hoisted_3$f = { class: "ina-year-picker__wrapper" };
5571
+ const _hoisted_4$a = ["id", "disabled", "aria-expanded", "aria-labelledby"];
5730
5572
  const _hoisted_5$9 = {
5731
5573
  key: 0,
5732
5574
  class: "ina-year-picker__prefix-icon"
@@ -5738,7 +5580,7 @@ const _hoisted_9$6 = { class: "ina-year-picker__decade-range" };
5738
5580
  const _hoisted_10$5 = ["disabled"];
5739
5581
  const _hoisted_11$5 = { class: "ina-year-picker__grid" };
5740
5582
  const _hoisted_12$4 = ["disabled", "onClick", "onMouseenter"];
5741
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
5583
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5742
5584
  __name: "YearPicker",
5743
5585
  props: {
5744
5586
  modelValue: { default: void 0 },
@@ -6028,9 +5870,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6028
5870
  class: "ina-year-picker__label"
6029
5871
  }, [
6030
5872
  createTextVNode(toDisplayString(__props.label) + " ", 1),
6031
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$f, "*")) : createCommentVNode("", true)
6032
- ], 8, _hoisted_1$f)) : createCommentVNode("", true),
6033
- createElementVNode("div", _hoisted_3$d, [
5873
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$g, "*")) : createCommentVNode("", true)
5874
+ ], 8, _hoisted_1$g)) : createCommentVNode("", true),
5875
+ createElementVNode("div", _hoisted_3$f, [
6034
5876
  createElementVNode("button", {
6035
5877
  id: triggerId.value,
6036
5878
  ref_key: "triggerRef",
@@ -6070,7 +5912,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6070
5912
  })
6071
5913
  ], -1)
6072
5914
  ])])) : createCommentVNode("", true)
6073
- ], 42, _hoisted_4$9),
5915
+ ], 42, _hoisted_4$a),
6074
5916
  createVNode(Transition, { name: "panel" }, {
6075
5917
  default: withCtx(() => [
6076
5918
  isOpen.value ? (openBlock(), createElementBlock("div", {
@@ -6129,14 +5971,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6129
5971
  };
6130
5972
  }
6131
5973
  });
6132
- const YearPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-336f52a7"]]);
6133
- const _hoisted_1$e = ["for"];
6134
- const _hoisted_2$e = {
5974
+ const YearPicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-336f52a7"]]);
5975
+ const _hoisted_1$f = ["for"];
5976
+ const _hoisted_2$f = {
6135
5977
  key: 0,
6136
5978
  class: "ina-date-picker__required"
6137
5979
  };
6138
- const _hoisted_3$c = ["id", "disabled"];
6139
- const _hoisted_4$8 = {
5980
+ const _hoisted_3$e = ["id", "disabled"];
5981
+ const _hoisted_4$9 = {
6140
5982
  key: 0,
6141
5983
  class: "ina-date-picker__calendar-container"
6142
5984
  };
@@ -6146,21 +5988,25 @@ const _hoisted_7$7 = { class: "ina-date-picker__dropdown-container" };
6146
5988
  const _hoisted_8$5 = { class: "ina-date-picker__dropdown-container" };
6147
5989
  const _hoisted_9$5 = { class: "ina-date-picker__calendar-grid" };
6148
5990
  const _hoisted_10$4 = ["disabled", "onClick"];
6149
- const _hoisted_11$4 = { class: "ina-date-picker__calendar-container" };
6150
- const _hoisted_12$3 = { class: "ina-date-picker__calendar-header" };
6151
- const _hoisted_13$3 = { class: "ina-date-picker__header-controls" };
6152
- const _hoisted_14$2 = { class: "ina-date-picker__dropdown-container" };
5991
+ const _hoisted_11$4 = {
5992
+ key: 0,
5993
+ class: "ina-date-picker__today-label"
5994
+ };
5995
+ const _hoisted_12$3 = { class: "ina-date-picker__calendar-container" };
5996
+ const _hoisted_13$3 = { class: "ina-date-picker__calendar-header" };
5997
+ const _hoisted_14$2 = { class: "ina-date-picker__header-controls" };
6153
5998
  const _hoisted_15$2 = { class: "ina-date-picker__dropdown-container" };
6154
- const _hoisted_16$1 = { class: "ina-date-picker__calendar-grid" };
6155
- const _hoisted_17$1 = ["disabled", "onClick"];
6156
- const _hoisted_18$1 = { class: "ina-date-picker__calendar" };
6157
- const _hoisted_19$1 = { class: "ina-date-picker__next-month-header" };
6158
- const _hoisted_20$1 = { class: "ina-date-picker__next-month-controls" };
6159
- const _hoisted_21$1 = { class: "ina-date-picker__dropdown-container" };
5999
+ const _hoisted_16$1 = { class: "ina-date-picker__dropdown-container" };
6000
+ const _hoisted_17$1 = { class: "ina-date-picker__calendar-grid" };
6001
+ const _hoisted_18$1 = ["disabled", "onClick"];
6002
+ const _hoisted_19$1 = { class: "ina-date-picker__calendar" };
6003
+ const _hoisted_20$1 = { class: "ina-date-picker__next-month-header" };
6004
+ const _hoisted_21$1 = { class: "ina-date-picker__next-month-controls" };
6160
6005
  const _hoisted_22 = { class: "ina-date-picker__dropdown-container" };
6161
- const _hoisted_23 = { class: "ina-date-picker__calendar-grid" };
6162
- const _hoisted_24 = ["disabled", "onClick"];
6163
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
6006
+ const _hoisted_23 = { class: "ina-date-picker__dropdown-container" };
6007
+ const _hoisted_24 = { class: "ina-date-picker__calendar-grid" };
6008
+ const _hoisted_25 = ["disabled", "onClick"];
6009
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6164
6010
  __name: "DatePicker",
6165
6011
  props: {
6166
6012
  modelValue: { default: "" },
@@ -6756,7 +6602,29 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6756
6602
  } else {
6757
6603
  targetMonth = getFirstEnabledMonth();
6758
6604
  }
6759
- if (targetEndDate) {
6605
+ if (props.mode === "range") {
6606
+ if (targetDate && targetEndDate) {
6607
+ const startMonth = new Date(
6608
+ targetDate.getFullYear(),
6609
+ targetDate.getMonth(),
6610
+ 1
6611
+ );
6612
+ const endMonth = new Date(
6613
+ targetEndDate.getFullYear(),
6614
+ targetEndDate.getMonth(),
6615
+ 1
6616
+ );
6617
+ if (startMonth.getFullYear() === endMonth.getFullYear() && startMonth.getMonth() === endMonth.getMonth()) {
6618
+ targetNextMonth = new Date(startMonth);
6619
+ targetNextMonth.setMonth(targetNextMonth.getMonth() + 1);
6620
+ } else {
6621
+ targetNextMonth = endMonth;
6622
+ }
6623
+ } else if (targetDate && !targetEndDate) {
6624
+ targetNextMonth = new Date(targetMonth);
6625
+ targetNextMonth.setMonth(targetNextMonth.getMonth() + 1);
6626
+ }
6627
+ } else if (targetEndDate) {
6760
6628
  targetNextMonth = new Date(
6761
6629
  targetEndDate.getFullYear(),
6762
6630
  targetEndDate.getMonth(),
@@ -6769,9 +6637,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6769
6637
  if (targetNextMonth) {
6770
6638
  nextDate.value = targetNextMonth;
6771
6639
  } else {
6772
- const nextMonthDate = new Date(targetMonth);
6773
- nextMonthDate.setMonth(nextMonthDate.getMonth() + 1);
6774
- nextDate.value = nextMonthDate;
6640
+ if (props.mode === "multiple") {
6641
+ const nextMonthDate = new Date(targetMonth);
6642
+ nextMonthDate.setMonth(nextMonthDate.getMonth() + 1);
6643
+ nextDate.value = nextMonthDate;
6644
+ } else if (props.mode === "range") {
6645
+ const range = props.modelValue;
6646
+ const hasNoDates = !range || !range[0] && !range[1];
6647
+ if (hasNoDates) {
6648
+ const nextMonthDate = new Date(targetMonth);
6649
+ nextMonthDate.setMonth(nextMonthDate.getMonth() + 1);
6650
+ nextDate.value = nextMonthDate;
6651
+ }
6652
+ }
6775
6653
  }
6776
6654
  }
6777
6655
  }
@@ -6907,8 +6785,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6907
6785
  class: "ina-date-picker__label"
6908
6786
  }, [
6909
6787
  createTextVNode(toDisplayString(__props.label) + " ", 1),
6910
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$e, "*")) : createCommentVNode("", true)
6911
- ], 8, _hoisted_1$e)) : createCommentVNode("", true),
6788
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$f, "*")) : createCommentVNode("", true)
6789
+ ], 8, _hoisted_1$f)) : createCommentVNode("", true),
6912
6790
  createElementVNode("button", {
6913
6791
  id: triggerId.value,
6914
6792
  ref_key: "triggerRef",
@@ -6938,7 +6816,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6938
6816
  class: "ina-date-picker__clear-icon"
6939
6817
  })
6940
6818
  ])) : createCommentVNode("", true)
6941
- ], 46, _hoisted_3$c),
6819
+ ], 46, _hoisted_3$e),
6942
6820
  isOpen.value && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("div", {
6943
6821
  key: 1,
6944
6822
  ref_key: "panelRef",
@@ -6949,7 +6827,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6949
6827
  createElementVNode("div", {
6950
6828
  class: normalizeClass(panelContentClasses.value)
6951
6829
  }, [
6952
- __props.mode === "single" ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
6830
+ __props.mode === "single" ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
6953
6831
  createElementVNode("div", _hoisted_5$8, [
6954
6832
  createElementVNode("button", {
6955
6833
  type: "button",
@@ -7009,12 +6887,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7009
6887
  class: normalizeClass(getDayClasses(day)),
7010
6888
  disabled: isDayDisabled(day.date),
7011
6889
  onClick: ($event) => selectDay(day)
7012
- }, toDisplayString(day.date.getDate()), 11, _hoisted_10$4);
6890
+ }, [
6891
+ createTextVNode(toDisplayString(day.date.getDate()) + " ", 1),
6892
+ day.isToday ? (openBlock(), createElementBlock("span", _hoisted_11$4, " Hari ini ")) : createCommentVNode("", true)
6893
+ ], 10, _hoisted_10$4);
7013
6894
  }), 128))
7014
6895
  ])
7015
6896
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7016
- createElementVNode("div", _hoisted_11$4, [
7017
- createElementVNode("div", _hoisted_12$3, [
6897
+ createElementVNode("div", _hoisted_12$3, [
6898
+ createElementVNode("div", _hoisted_13$3, [
7018
6899
  createElementVNode("button", {
7019
6900
  type: "button",
7020
6901
  class: "ina-date-picker__nav-button",
@@ -7025,8 +6906,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7025
6906
  class: "ina-date-picker__nav-icon"
7026
6907
  })
7027
6908
  ]),
7028
- createElementVNode("div", _hoisted_13$3, [
7029
- createElementVNode("div", _hoisted_14$2, [
6909
+ createElementVNode("div", _hoisted_14$2, [
6910
+ createElementVNode("div", _hoisted_15$2, [
7030
6911
  createVNode(MonthPicker, {
7031
6912
  "model-value": currentMonth.value,
7032
6913
  disabled: __props.disabled,
@@ -7035,7 +6916,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7035
6916
  "onUpdate:modelValue": handleMonthChange
7036
6917
  }, null, 8, ["model-value", "disabled", "readonly"])
7037
6918
  ]),
7038
- createElementVNode("div", _hoisted_15$2, [
6919
+ createElementVNode("div", _hoisted_16$1, [
7039
6920
  createVNode(YearPicker, {
7040
6921
  "model-value": currentYear.value,
7041
6922
  "min-year": 1900,
@@ -7059,7 +6940,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7059
6940
  })
7060
6941
  ])
7061
6942
  ]),
7062
- createElementVNode("div", _hoisted_16$1, [
6943
+ createElementVNode("div", _hoisted_17$1, [
7063
6944
  (openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
7064
6945
  return createElementVNode("div", {
7065
6946
  key: `lh-${day}`,
@@ -7073,12 +6954,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7073
6954
  class: normalizeClass(getDayClasses(day)),
7074
6955
  disabled: isDayDisabled(day.date),
7075
6956
  onClick: ($event) => selectDay(day)
7076
- }, toDisplayString(day.date.getDate()), 11, _hoisted_17$1);
6957
+ }, toDisplayString(day.date.getDate()), 11, _hoisted_18$1);
7077
6958
  }), 128))
7078
6959
  ])
7079
6960
  ]),
7080
- createElementVNode("div", _hoisted_18$1, [
7081
- createElementVNode("div", _hoisted_19$1, [
6961
+ createElementVNode("div", _hoisted_19$1, [
6962
+ createElementVNode("div", _hoisted_20$1, [
7082
6963
  createElementVNode("button", {
7083
6964
  type: "button",
7084
6965
  class: "ina-date-picker__nav-button",
@@ -7089,8 +6970,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7089
6970
  class: "ina-date-picker__nav-icon"
7090
6971
  })
7091
6972
  ]),
7092
- createElementVNode("div", _hoisted_20$1, [
7093
- createElementVNode("div", _hoisted_21$1, [
6973
+ createElementVNode("div", _hoisted_21$1, [
6974
+ createElementVNode("div", _hoisted_22, [
7094
6975
  createVNode(MonthPicker, {
7095
6976
  "model-value": nextMonth.value,
7096
6977
  disabled: __props.disabled,
@@ -7099,7 +6980,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7099
6980
  "onUpdate:modelValue": handleNextMonthChange
7100
6981
  }, null, 8, ["model-value", "disabled", "readonly"])
7101
6982
  ]),
7102
- createElementVNode("div", _hoisted_22, [
6983
+ createElementVNode("div", _hoisted_23, [
7103
6984
  createVNode(YearPicker, {
7104
6985
  "model-value": nextYear.value,
7105
6986
  "min-year": 1900,
@@ -7123,7 +7004,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7123
7004
  })
7124
7005
  ])
7125
7006
  ]),
7126
- createElementVNode("div", _hoisted_23, [
7007
+ createElementVNode("div", _hoisted_24, [
7127
7008
  (openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
7128
7009
  return createElementVNode("div", {
7129
7010
  key: `rh-${day}`,
@@ -7137,7 +7018,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7137
7018
  class: normalizeClass(getDayClasses(day)),
7138
7019
  disabled: isDayDisabled(day.date),
7139
7020
  onClick: ($event) => selectDay(day)
7140
- }, toDisplayString(day.date.getDate()), 11, _hoisted_24);
7021
+ }, toDisplayString(day.date.getDate()), 11, _hoisted_25);
7141
7022
  }), 128))
7142
7023
  ])
7143
7024
  ])
@@ -7152,17 +7033,17 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7152
7033
  };
7153
7034
  }
7154
7035
  });
7155
- const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b36c8028"]]);
7156
- const _hoisted_1$d = ["disabled"];
7157
- const _hoisted_2$d = {
7036
+ const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2e07b81c"]]);
7037
+ const _hoisted_1$e = ["disabled"];
7038
+ const _hoisted_2$e = {
7158
7039
  key: 0,
7159
7040
  class: "ina-select-dropdown__trigger-prefix"
7160
7041
  };
7161
- const _hoisted_3$b = {
7042
+ const _hoisted_3$d = {
7162
7043
  key: 0,
7163
7044
  class: "ina-select-dropdown__search"
7164
7045
  };
7165
- const _hoisted_4$7 = ["aria-label", "disabled"];
7046
+ const _hoisted_4$8 = ["aria-label", "disabled"];
7166
7047
  const _hoisted_5$7 = {
7167
7048
  key: 1,
7168
7049
  class: "ina-select-dropdown__preview"
@@ -7204,7 +7085,7 @@ const _hoisted_20 = {
7204
7085
  class: "ina-select-dropdown__loading"
7205
7086
  };
7206
7087
  const _hoisted_21 = { class: "ina-select-dropdown__loading-spinner" };
7207
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
7088
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7208
7089
  __name: "SelectDropdown",
7209
7090
  props: {
7210
7091
  modelValue: { default: null },
@@ -7479,7 +7360,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7479
7360
  class: normalizeClass(triggerClasses.value),
7480
7361
  onClick: toggleDropdown
7481
7362
  }, [
7482
- __props.prefixNode ? (openBlock(), createElementBlock("span", _hoisted_2$d, [
7363
+ __props.prefixNode ? (openBlock(), createElementBlock("span", _hoisted_2$e, [
7483
7364
  (openBlock(), createBlock(resolveDynamicComponent(__props.prefixNode)))
7484
7365
  ])) : createCommentVNode("", true),
7485
7366
  createElementVNode("span", {
@@ -7494,7 +7375,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7494
7375
  size: __props.size === "sm" ? 16 : 20,
7495
7376
  class: normalizeClass(triggerIconClasses.value)
7496
7377
  }, null, 8, ["size", "class"]))
7497
- ], 10, _hoisted_1$d),
7378
+ ], 10, _hoisted_1$e),
7498
7379
  createVNode(Transition, { name: "dropdown" }, {
7499
7380
  default: withCtx(() => [
7500
7381
  isOpen.value && !__props.disabled ? (openBlock(), createElementBlock("div", {
@@ -7504,7 +7385,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7504
7385
  class: normalizeClass(panelClasses.value),
7505
7386
  style: normalizeStyle(panelStyle.value)
7506
7387
  }, [
7507
- __props.searchable ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
7388
+ __props.searchable ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
7508
7389
  withDirectives(createElementVNode("input", {
7509
7390
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalSearchTerm.value = $event),
7510
7391
  type: "text",
@@ -7513,7 +7394,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7513
7394
  disabled: __props.disabled,
7514
7395
  class: normalizeClass(searchInputClasses.value),
7515
7396
  onInput: handleSearchInput
7516
- }, null, 42, _hoisted_4$7), [
7397
+ }, null, 42, _hoisted_4$8), [
7517
7398
  [vModelText, internalSearchTerm.value]
7518
7399
  ])
7519
7400
  ])) : createCommentVNode("", true),
@@ -7631,21 +7512,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7631
7512
  };
7632
7513
  }
7633
7514
  });
7634
- const SelectDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-48ba2789"]]);
7635
- const _hoisted_1$c = ["aria-labelledby", "aria-describedby"];
7636
- const _hoisted_2$c = {
7515
+ const SelectDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-48ba2789"]]);
7516
+ const _hoisted_1$d = ["aria-labelledby", "aria-describedby"];
7517
+ const _hoisted_2$d = {
7637
7518
  key: 0,
7638
7519
  class: "ina-drawer__header"
7639
7520
  };
7640
- const _hoisted_3$a = ["id"];
7641
- const _hoisted_4$6 = ["aria-label"];
7521
+ const _hoisted_3$c = ["id"];
7522
+ const _hoisted_4$7 = ["aria-label"];
7642
7523
  const _hoisted_5$6 = { class: "ina-drawer__content" };
7643
7524
  const _hoisted_6$5 = ["id"];
7644
7525
  const _hoisted_7$5 = {
7645
7526
  key: 1,
7646
7527
  class: "ina-drawer__footer"
7647
7528
  };
7648
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
7529
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7649
7530
  __name: "Drawer",
7650
7531
  props: {
7651
7532
  modelValue: { type: Boolean, default: false },
@@ -7768,7 +7649,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7768
7649
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
7769
7650
  }, ["stop"]))
7770
7651
  }, [
7771
- __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
7652
+ __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
7772
7653
  createElementVNode("h2", {
7773
7654
  id: titleId.value,
7774
7655
  class: "ina-drawer__title"
@@ -7776,7 +7657,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7776
7657
  renderSlot(_ctx.$slots, "title", {}, () => [
7777
7658
  createTextVNode(toDisplayString(__props.title), 1)
7778
7659
  ], true)
7779
- ], 8, _hoisted_3$a),
7660
+ ], 8, _hoisted_3$c),
7780
7661
  __props.showCloseButton ? (openBlock(), createElementBlock("button", {
7781
7662
  key: 0,
7782
7663
  type: "button",
@@ -7799,7 +7680,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7799
7680
  "stroke-linejoin": "round"
7800
7681
  })
7801
7682
  ], -1)
7802
- ])], 8, _hoisted_4$6)) : createCommentVNode("", true)
7683
+ ])], 8, _hoisted_4$7)) : createCommentVNode("", true)
7803
7684
  ])) : createCommentVNode("", true),
7804
7685
  createElementVNode("div", _hoisted_5$6, [
7805
7686
  __props.description ? (openBlock(), createElementBlock("div", {
@@ -7812,7 +7693,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7812
7693
  __props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
7813
7694
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
7814
7695
  ])) : createCommentVNode("", true)
7815
- ], 10, _hoisted_1$c)
7696
+ ], 10, _hoisted_1$d)
7816
7697
  ], 2)) : createCommentVNode("", true)
7817
7698
  ]),
7818
7699
  _: 3
@@ -7821,8 +7702,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7821
7702
  };
7822
7703
  }
7823
7704
  });
7824
- const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d7406981"]]);
7825
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
7705
+ const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d7406981"]]);
7706
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7826
7707
  __name: "Skeleton",
7827
7708
  props: {
7828
7709
  width: { default: "100%" },
@@ -7860,16 +7741,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
7860
7741
  };
7861
7742
  }
7862
7743
  });
7863
- const _hoisted_1$b = ["aria-label"];
7864
- const _hoisted_2$b = {
7744
+ const _hoisted_1$c = ["aria-label"];
7745
+ const _hoisted_2$c = {
7865
7746
  key: 0,
7866
7747
  class: "ina-spinner__title"
7867
7748
  };
7868
- const _hoisted_3$9 = {
7749
+ const _hoisted_3$b = {
7869
7750
  key: 1,
7870
7751
  class: "ina-spinner__subtitle"
7871
7752
  };
7872
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
7753
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
7873
7754
  __name: "Spinner",
7874
7755
  props: {
7875
7756
  size: { default: 32 },
@@ -7916,15 +7797,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
7916
7797
  class: normalizeClass(["ina-spinner__element", elementClasses.value]),
7917
7798
  style: normalizeStyle(elementStyle.value)
7918
7799
  }, null, 6),
7919
- !__props.spinnerOnly ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
7920
- !__props.spinnerOnly ? (openBlock(), createElementBlock("div", _hoisted_3$9, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
7921
- ], 10, _hoisted_1$b);
7800
+ !__props.spinnerOnly ? (openBlock(), createElementBlock("div", _hoisted_2$c, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
7801
+ !__props.spinnerOnly ? (openBlock(), createElementBlock("div", _hoisted_3$b, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
7802
+ ], 10, _hoisted_1$c);
7922
7803
  };
7923
7804
  }
7924
7805
  });
7925
- const _hoisted_1$a = ["onClick"];
7926
- const _hoisted_2$a = { class: "ina-stepper__icon-wrapper" };
7927
- const _hoisted_3$8 = {
7806
+ const _hoisted_1$b = ["onClick"];
7807
+ const _hoisted_2$b = { class: "ina-stepper__icon-wrapper" };
7808
+ const _hoisted_3$a = {
7928
7809
  key: 0,
7929
7810
  xmlns: "http://www.w3.org/2000/svg",
7930
7811
  class: "ina-stepper__check-icon",
@@ -7937,12 +7818,12 @@ const _hoisted_3$8 = {
7937
7818
  "stroke-linecap": "round",
7938
7819
  "stroke-linejoin": "round"
7939
7820
  };
7940
- const _hoisted_4$5 = {
7821
+ const _hoisted_4$6 = {
7941
7822
  key: 2,
7942
7823
  class: "ina-stepper__step-number"
7943
7824
  };
7944
7825
  const _hoisted_5$5 = { class: "ina-stepper__label" };
7945
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
7826
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
7946
7827
  __name: "Stepper",
7947
7828
  props: {
7948
7829
  steps: {},
@@ -7984,22 +7865,22 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7984
7865
  return !step.disabled && ((_a = props.onStepClick) == null ? void 0 : _a.call(props, index2));
7985
7866
  }
7986
7867
  }, [
7987
- createElementVNode("div", _hoisted_2$a, [
7988
- index2 < props.currentStep ? (openBlock(), createElementBlock("svg", _hoisted_3$8, [..._cache[0] || (_cache[0] = [
7868
+ createElementVNode("div", _hoisted_2$b, [
7869
+ index2 < props.currentStep ? (openBlock(), createElementBlock("svg", _hoisted_3$a, [..._cache[0] || (_cache[0] = [
7989
7870
  createElementVNode("path", {
7990
7871
  stroke: "none",
7991
7872
  d: "M0 0h24v24H0z",
7992
7873
  fill: "none"
7993
7874
  }, null, -1),
7994
7875
  createElementVNode("path", { d: "M5 12l5 5l10 -10" }, null, -1)
7995
- ])])) : step.icon ? (openBlock(), createBlock(resolveDynamicComponent(step.icon), { key: 1 })) : (openBlock(), createElementBlock("span", _hoisted_4$5, toDisplayString(index2 + 1), 1))
7876
+ ])])) : step.icon ? (openBlock(), createBlock(resolveDynamicComponent(step.icon), { key: 1 })) : (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(index2 + 1), 1))
7996
7877
  ]),
7997
7878
  createElementVNode("div", _hoisted_5$5, [
7998
7879
  typeof step.label === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7999
7880
  createTextVNode(toDisplayString(step.label), 1)
8000
7881
  ], 64)) : (openBlock(), createBlock(resolveDynamicComponent(step.label), { key: 1 }))
8001
7882
  ])
8002
- ], 10, _hoisted_1$a),
7883
+ ], 10, _hoisted_1$b),
8003
7884
  index2 < props.steps.length - 1 ? (openBlock(), createElementBlock("div", {
8004
7885
  key: 0,
8005
7886
  class: normalizeClass([
@@ -8015,18 +7896,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8015
7896
  };
8016
7897
  }
8017
7898
  });
8018
- const Stepper = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-91ea04f2"]]);
8019
- const _hoisted_1$9 = ["aria-selected", "aria-disabled", "disabled", "onClick", "onKeydown"];
8020
- const _hoisted_2$9 = { key: 0 };
8021
- const _hoisted_3$7 = { key: 1 };
8022
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
7899
+ const Stepper = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-91ea04f2"]]);
7900
+ const _hoisted_1$a = ["aria-selected", "aria-disabled", "disabled", "onClick", "onKeydown"];
7901
+ const _hoisted_2$a = { key: 0 };
7902
+ const _hoisted_3$9 = { key: 1 };
7903
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8023
7904
  __name: "TabHorizontal",
8024
7905
  props: {
8025
7906
  items: {},
8026
7907
  value: {},
8027
7908
  defaultValue: {},
8028
7909
  onChange: {},
8029
- size: { default: "md" },
7910
+ size: { default: "sm" },
8030
7911
  variant: { default: "outline" },
8031
7912
  fullWidth: { type: Boolean, default: false },
8032
7913
  useBrandColor: { type: Boolean, default: false },
@@ -8149,26 +8030,27 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8149
8030
  onClick: ($event) => handleTabClick(item.value, item.disabled),
8150
8031
  onKeydown: ($event) => handleKeyDown($event, item.value, item.disabled)
8151
8032
  }, [
8152
- typeof item.label !== "string" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
8033
+ typeof item.label !== "string" ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
8153
8034
  (openBlock(), createBlock(resolveDynamicComponent(item.label)))
8154
- ])) : (openBlock(), createElementBlock("span", _hoisted_3$7, toDisplayString(item.label), 1))
8155
- ], 42, _hoisted_1$9);
8035
+ ])) : (openBlock(), createElementBlock("span", _hoisted_3$9, toDisplayString(item.label), 1))
8036
+ ], 42, _hoisted_1$a);
8156
8037
  }), 128))
8157
8038
  ], 2)
8158
8039
  ], 2);
8159
8040
  };
8160
8041
  }
8161
8042
  });
8162
- const _hoisted_1$8 = ["aria-selected", "aria-disabled", "disabled", "onClick", "onKeydown"];
8163
- const _hoisted_2$8 = { key: 1 };
8164
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
8043
+ const _hoisted_1$9 = ["aria-selected", "aria-disabled", "disabled", "onClick", "onKeydown"];
8044
+ const _hoisted_2$9 = { key: 0 };
8045
+ const _hoisted_3$8 = { key: 1 };
8046
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8165
8047
  __name: "TabVertical",
8166
8048
  props: {
8167
8049
  items: {},
8168
8050
  value: {},
8169
8051
  defaultValue: {},
8170
8052
  onChange: {},
8171
- size: { default: "md" },
8053
+ size: { default: "sm" },
8172
8054
  variant: { default: "outline" },
8173
8055
  useBrandColor: { type: Boolean, default: false },
8174
8056
  disabled: { type: Boolean, default: false },
@@ -8182,9 +8064,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8182
8064
  var _a;
8183
8065
  const props = __props;
8184
8066
  const emit = __emit;
8185
- const internalValue = ref(
8186
- props.defaultValue || ((_a = props.items[0]) == null ? void 0 : _a.value) || ""
8187
- );
8067
+ const internalValue = ref(props.defaultValue || ((_a = props.items[0]) == null ? void 0 : _a.value) || "");
8188
8068
  const currentValue = computed(() => {
8189
8069
  return props.value !== void 0 ? props.value : internalValue.value;
8190
8070
  });
@@ -8290,15 +8170,17 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8290
8170
  onClick: ($event) => handleTabClick(item.value, item.disabled),
8291
8171
  onKeydown: ($event) => handleKeyDown($event, item.value, item.disabled)
8292
8172
  }, [
8293
- typeof item.label !== "string" ? (openBlock(), createBlock(resolveDynamicComponent(item.label), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_2$8, toDisplayString(item.label), 1))
8294
- ], 42, _hoisted_1$8);
8173
+ typeof item.label !== "string" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
8174
+ (openBlock(), createBlock(resolveDynamicComponent(item.label)))
8175
+ ])) : (openBlock(), createElementBlock("span", _hoisted_3$8, toDisplayString(item.label), 1))
8176
+ ], 42, _hoisted_1$9);
8295
8177
  }), 128))
8296
8178
  ], 2)
8297
8179
  ], 6);
8298
8180
  };
8299
8181
  }
8300
8182
  });
8301
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8183
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8302
8184
  __name: "TableProgressBar",
8303
8185
  props: {
8304
8186
  visible: { type: Boolean, default: true },
@@ -8359,7 +8241,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8359
8241
  key: 0,
8360
8242
  class: normalizeClass(containerClasses.value)
8361
8243
  }, [
8362
- createVNode(_sfc_main$l, {
8244
+ createVNode(_sfc_main$m, {
8363
8245
  visible: true,
8364
8246
  progress: progress.value,
8365
8247
  variant: __props.variant,
@@ -8371,13 +8253,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8371
8253
  };
8372
8254
  }
8373
8255
  });
8374
- const _hoisted_1$7 = { class: "ina-table__search-controls" };
8375
- const _hoisted_2$7 = {
8256
+ const _hoisted_1$8 = { class: "ina-table__search-controls" };
8257
+ const _hoisted_2$8 = {
8376
8258
  key: 0,
8377
8259
  class: "ina-table__header-cell"
8378
8260
  };
8379
- const _hoisted_3$6 = { class: "ina-table__sort-controls" };
8380
- const _hoisted_4$4 = {
8261
+ const _hoisted_3$7 = { class: "ina-table__sort-controls" };
8262
+ const _hoisted_4$5 = {
8381
8263
  key: 1,
8382
8264
  class: "ina-table__sort-icon"
8383
8265
  };
@@ -8393,7 +8275,7 @@ const _hoisted_10$2 = {
8393
8275
  const _hoisted_11$2 = ["tabindex"];
8394
8276
  const _hoisted_12$1 = ["onClick"];
8395
8277
  const _hoisted_13$1 = { class: "ina-table__pagination" };
8396
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8278
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8397
8279
  __name: "Table",
8398
8280
  props: {
8399
8281
  columns: {},
@@ -8647,15 +8529,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8647
8529
  key: 0,
8648
8530
  class: normalizeClass(searchContainerClasses.value)
8649
8531
  }, [
8650
- createElementVNode("div", _hoisted_1$7, [
8651
- createVNode(_sfc_main$z, {
8532
+ createElementVNode("div", _hoisted_1$8, [
8533
+ createVNode(_sfc_main$A, {
8652
8534
  modelValue: searchInput.value,
8653
8535
  placeholder: props.searchPlaceholder || props.placeholderSearch || "Input pencarian",
8654
8536
  disabled: loading.value,
8655
8537
  "onUpdate:modelValue": handleSearchChange,
8656
8538
  onKeydown: handleSearchKeyDown
8657
8539
  }, null, 8, ["modelValue", "placeholder", "disabled"]),
8658
- createVNode(_sfc_main$D, {
8540
+ createVNode(_sfc_main$E, {
8659
8541
  disabled: loading.value,
8660
8542
  onClick: handleSearchButton
8661
8543
  }, {
@@ -8666,7 +8548,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8666
8548
  }, 8, ["disabled"])
8667
8549
  ])
8668
8550
  ], 2)) : createCommentVNode("", true),
8669
- createVNode(_sfc_main$9, {
8551
+ createVNode(_sfc_main$a, {
8670
8552
  visible: loading.value,
8671
8553
  loading: loading.value,
8672
8554
  variant: "primary",
@@ -8681,8 +8563,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8681
8563
  class: normalizeClass(tableHeaderClasses.value)
8682
8564
  }, [
8683
8565
  createElementVNode("tr", null, [
8684
- __props.selectable ? (openBlock(), createElementBlock("th", _hoisted_2$7, [
8685
- createVNode(_sfc_main$A, {
8566
+ __props.selectable ? (openBlock(), createElementBlock("th", _hoisted_2$8, [
8567
+ createVNode(_sfc_main$B, {
8686
8568
  id: `${reactId.value}-select-all`,
8687
8569
  label: "",
8688
8570
  modelValue: allSelected.value,
@@ -8698,7 +8580,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8698
8580
  col.sortable && "ina-table__header-cell--sortable"
8699
8581
  ])
8700
8582
  }, [
8701
- createElementVNode("div", _hoisted_3$6, [
8583
+ createElementVNode("div", _hoisted_3$7, [
8702
8584
  createTextVNode(toDisplayString(col.header) + " ", 1),
8703
8585
  col.sortable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
8704
8586
  __props.renderSortIndicator ? renderSlot(_ctx.$slots, "sort-indicator", {
@@ -8708,7 +8590,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8708
8590
  isSorted: isSorted(col),
8709
8591
  sortOrder: sortOrder.value,
8710
8592
  handleSort: (order) => handleSort(col, order)
8711
- }) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
8593
+ }) : (openBlock(), createElementBlock("div", _hoisted_4$5, [
8712
8594
  createElementVNode("div", {
8713
8595
  class: normalizeClass([
8714
8596
  "ina-table__sort-button",
@@ -8760,7 +8642,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8760
8642
  onClick: (e) => handleRowClick(row, e)
8761
8643
  }, [
8762
8644
  __props.selectable ? (openBlock(), createElementBlock("td", _hoisted_10$2, [
8763
- createVNode(_sfc_main$A, {
8645
+ createVNode(_sfc_main$B, {
8764
8646
  id: `${reactId.value}-select-${String(row[__props.rowKey])}`,
8765
8647
  label: "",
8766
8648
  modelValue: selectedMap.value[String(row[__props.rowKey])] || false,
@@ -8810,7 +8692,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8810
8692
  ], 2)
8811
8693
  ], 2),
8812
8694
  createElementVNode("div", _hoisted_13$1, [
8813
- createVNode(_sfc_main$o, {
8695
+ createVNode(_sfc_main$p, {
8814
8696
  modelValue: page.value,
8815
8697
  totalPages: totalPages.value,
8816
8698
  pageSize: pageSize.value,
@@ -8825,13 +8707,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8825
8707
  };
8826
8708
  }
8827
8709
  });
8828
- const _hoisted_1$6 = ["for"];
8829
- const _hoisted_2$6 = {
8710
+ const _hoisted_1$7 = ["for"];
8711
+ const _hoisted_2$7 = {
8830
8712
  key: 0,
8831
8713
  class: "ina-text-area__required"
8832
8714
  };
8833
- const _hoisted_3$5 = ["id", "placeholder", "disabled", "readonly", "maxlength", "rows", "autocomplete", "spellcheck", "autocapitalize", "autocorrect", "dir"];
8834
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8715
+ const _hoisted_3$6 = ["id", "placeholder", "disabled", "readonly", "maxlength", "rows", "autocomplete", "spellcheck", "autocapitalize", "autocorrect", "dir"];
8716
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8835
8717
  __name: "TextArea",
8836
8718
  props: {
8837
8719
  modelValue: { default: "" },
@@ -9028,8 +8910,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
9028
8910
  class: "ina-text-area__label"
9029
8911
  }, [
9030
8912
  createTextVNode(toDisplayString(__props.label) + " ", 1),
9031
- __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$6, "*")) : createCommentVNode("", true)
9032
- ], 8, _hoisted_1$6)) : createCommentVNode("", true),
8913
+ __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$7, "*")) : createCommentVNode("", true)
8914
+ ], 8, _hoisted_1$7)) : createCommentVNode("", true),
9033
8915
  createElementVNode("div", {
9034
8916
  class: normalizeClass(["ina-text-area__wrapper", wrapperClasses.value])
9035
8917
  }, [
@@ -9053,7 +8935,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
9053
8935
  onInput: handleInput,
9054
8936
  onBlur: handleBlur,
9055
8937
  onFocus: handleFocus
9056
- }), null, 16, _hoisted_3$5), [
8938
+ }), null, 16, _hoisted_3$6), [
9057
8939
  [vModelText, inputValue.value]
9058
8940
  ]),
9059
8941
  __props.showClearButton && inputValue.value !== "" && !__props.disabled ? (openBlock(), createElementBlock("button", {
@@ -9081,6 +8963,249 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
9081
8963
  };
9082
8964
  }
9083
8965
  });
8966
+ const _hoisted_1$6 = {
8967
+ key: 0,
8968
+ class: "ina-one-time-password__title"
8969
+ };
8970
+ const _hoisted_2$6 = {
8971
+ key: 1,
8972
+ class: "ina-one-time-password__description"
8973
+ };
8974
+ const _hoisted_3$5 = { class: "ina-one-time-password__container" };
8975
+ const _hoisted_4$4 = ["value", "disabled", "readonly", "aria-label", "onInput", "onKeydown", "onFocus"];
8976
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8977
+ __name: "OneTimePassword",
8978
+ props: {
8979
+ modelValue: { default: "" },
8980
+ length: { default: 6 },
8981
+ title: {},
8982
+ description: {},
8983
+ helperText: {},
8984
+ error: { type: Boolean, default: false },
8985
+ disabled: { type: Boolean, default: false },
8986
+ readonly: { type: Boolean, default: false },
8987
+ className: {},
8988
+ autoFocus: { type: Boolean, default: false }
8989
+ },
8990
+ emits: ["update:modelValue", "complete"],
8991
+ setup(__props, { emit: __emit }) {
8992
+ const props = __props;
8993
+ const emit = __emit;
8994
+ const inputRefs = ref([]);
8995
+ const isInternalUpdate = ref(false);
8996
+ const setInputRef = (el, index2) => {
8997
+ if (el) {
8998
+ inputRefs.value[index2] = el;
8999
+ }
9000
+ };
9001
+ watch(
9002
+ () => props.length,
9003
+ () => {
9004
+ inputRefs.value = inputRefs.value.slice(0, props.length);
9005
+ },
9006
+ { immediate: true }
9007
+ );
9008
+ onMounted(() => {
9009
+ if (props.autoFocus && inputRefs.value[0] && !props.disabled && !props.readonly) {
9010
+ inputRefs.value[0].focus();
9011
+ }
9012
+ });
9013
+ watch(
9014
+ () => props.modelValue,
9015
+ (newValue, oldValue) => {
9016
+ if (isInternalUpdate.value) {
9017
+ isInternalUpdate.value = false;
9018
+ return;
9019
+ }
9020
+ const currentValue = newValue || "";
9021
+ const previousValue = oldValue || "";
9022
+ if (currentValue.length === props.length && previousValue.length !== props.length) {
9023
+ nextTick(() => {
9024
+ emit("complete", currentValue);
9025
+ });
9026
+ }
9027
+ }
9028
+ );
9029
+ const containerClasses = computed(() => {
9030
+ return clsx("ina-one-time-password", props.className);
9031
+ });
9032
+ const inputClasses = computed(() => {
9033
+ return clsx(
9034
+ "ina-one-time-password__input",
9035
+ props.error && "ina-one-time-password__input--error"
9036
+ );
9037
+ });
9038
+ const helperTextClasses = computed(() => {
9039
+ return clsx(
9040
+ "ina-one-time-password__helper-text",
9041
+ props.error && "ina-one-time-password__helper-text--error"
9042
+ );
9043
+ });
9044
+ const getDigitValue = (index2) => {
9045
+ var _a;
9046
+ return ((_a = props.modelValue) == null ? void 0 : _a[index2]) || "";
9047
+ };
9048
+ const handleChange = (index2, event) => {
9049
+ var _a;
9050
+ const target = event.target;
9051
+ const inputValue = target.value;
9052
+ if (inputValue && !/^\d$/.test(inputValue)) {
9053
+ target.value = ((_a = props.modelValue) == null ? void 0 : _a[index2]) || "";
9054
+ return;
9055
+ }
9056
+ const currentValue = props.modelValue || "";
9057
+ const newValue = currentValue.split("");
9058
+ newValue[index2] = inputValue;
9059
+ const updatedValue = newValue.join("").slice(0, props.length);
9060
+ isInternalUpdate.value = true;
9061
+ emit("update:modelValue", updatedValue);
9062
+ if (updatedValue.length === props.length) {
9063
+ nextTick(() => {
9064
+ emit("complete", updatedValue);
9065
+ });
9066
+ }
9067
+ if (inputValue && index2 < props.length - 1) {
9068
+ const nextIndex = index2 + 1;
9069
+ nextTick(() => {
9070
+ var _a2;
9071
+ if (inputRefs.value[nextIndex] && !props.disabled && !props.readonly) {
9072
+ (_a2 = inputRefs.value[nextIndex]) == null ? void 0 : _a2.focus();
9073
+ }
9074
+ });
9075
+ }
9076
+ };
9077
+ const handleKeyDown = (index2, event) => {
9078
+ var _a, _b, _c;
9079
+ if (event.key === "Backspace") {
9080
+ const currentValue = props.modelValue || "";
9081
+ if (!currentValue[index2] && index2 > 0) {
9082
+ const prevIndex = index2 - 1;
9083
+ if (inputRefs.value[prevIndex]) {
9084
+ (_a = inputRefs.value[prevIndex]) == null ? void 0 : _a.focus();
9085
+ const newValue = (props.modelValue || "").split("");
9086
+ newValue[prevIndex] = "";
9087
+ const updatedValue = newValue.join("");
9088
+ isInternalUpdate.value = true;
9089
+ emit("update:modelValue", updatedValue);
9090
+ }
9091
+ } else {
9092
+ const newValue = (props.modelValue || "").split("");
9093
+ newValue[index2] = "";
9094
+ const updatedValue = newValue.join("");
9095
+ isInternalUpdate.value = true;
9096
+ emit("update:modelValue", updatedValue);
9097
+ }
9098
+ }
9099
+ if (event.key === "ArrowLeft" && index2 > 0) {
9100
+ event.preventDefault();
9101
+ (_b = inputRefs.value[index2 - 1]) == null ? void 0 : _b.focus();
9102
+ }
9103
+ if (event.key === "ArrowRight" && index2 < props.length - 1) {
9104
+ event.preventDefault();
9105
+ (_c = inputRefs.value[index2 + 1]) == null ? void 0 : _c.focus();
9106
+ }
9107
+ if ((event.ctrlKey || event.metaKey) && event.key === "v") {
9108
+ event.preventDefault();
9109
+ navigator.clipboard.readText().then((text) => {
9110
+ const digits = text.replace(/\D/g, "").slice(0, props.length);
9111
+ if (digits) {
9112
+ isInternalUpdate.value = true;
9113
+ emit("update:modelValue", digits);
9114
+ if (digits.length === props.length) {
9115
+ nextTick(() => {
9116
+ emit("complete", digits);
9117
+ });
9118
+ }
9119
+ const focusIndex = Math.min(digits.length - 1, props.length - 1);
9120
+ nextTick(() => {
9121
+ var _a2;
9122
+ if (inputRefs.value[focusIndex]) {
9123
+ (_a2 = inputRefs.value[focusIndex]) == null ? void 0 : _a2.focus();
9124
+ }
9125
+ });
9126
+ }
9127
+ });
9128
+ }
9129
+ };
9130
+ const handleFocus = (index2) => {
9131
+ nextTick(() => {
9132
+ var _a;
9133
+ if (inputRefs.value[index2]) {
9134
+ (_a = inputRefs.value[index2]) == null ? void 0 : _a.select();
9135
+ }
9136
+ });
9137
+ };
9138
+ const handleBlur = () => {
9139
+ };
9140
+ const handlePaste = (event) => {
9141
+ event.preventDefault();
9142
+ const pastedText = event.clipboardData.getData("text");
9143
+ const digits = pastedText.replace(/\D/g, "").slice(0, props.length);
9144
+ if (digits) {
9145
+ isInternalUpdate.value = true;
9146
+ emit("update:modelValue", digits);
9147
+ if (digits.length === props.length) {
9148
+ nextTick(() => {
9149
+ emit("complete", digits);
9150
+ });
9151
+ }
9152
+ const focusIndex = Math.min(digits.length - 1, props.length - 1);
9153
+ nextTick(() => {
9154
+ var _a;
9155
+ if (inputRefs.value[focusIndex]) {
9156
+ (_a = inputRefs.value[focusIndex]) == null ? void 0 : _a.focus();
9157
+ }
9158
+ });
9159
+ }
9160
+ };
9161
+ return (_ctx, _cache) => {
9162
+ return openBlock(), createElementBlock("div", {
9163
+ class: normalizeClass(containerClasses.value)
9164
+ }, [
9165
+ __props.title ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
9166
+ typeof __props.title === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
9167
+ createTextVNode(toDisplayString(__props.title), 1)
9168
+ ], 64)) : (openBlock(), createBlock(resolveDynamicComponent(__props.title), { key: 1 }))
9169
+ ])) : createCommentVNode("", true),
9170
+ __props.description ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
9171
+ typeof __props.description === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
9172
+ createTextVNode(toDisplayString(__props.description), 1)
9173
+ ], 64)) : (openBlock(), createBlock(resolveDynamicComponent(__props.description), { key: 1 }))
9174
+ ])) : createCommentVNode("", true),
9175
+ createElementVNode("div", _hoisted_3$5, [
9176
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.length, (_, index2) => {
9177
+ return openBlock(), createElementBlock("input", {
9178
+ key: index2,
9179
+ ref_for: true,
9180
+ ref: (el) => setInputRef(el, index2),
9181
+ type: "text",
9182
+ inputmode: "numeric",
9183
+ maxlength: "1",
9184
+ value: getDigitValue(index2),
9185
+ disabled: __props.disabled,
9186
+ readonly: __props.readonly,
9187
+ class: normalizeClass(inputClasses.value),
9188
+ "aria-label": `Digit ${index2 + 1} of ${__props.length}`,
9189
+ onInput: ($event) => handleChange(index2, $event),
9190
+ onKeydown: ($event) => handleKeyDown(index2, $event),
9191
+ onFocus: ($event) => handleFocus(index2),
9192
+ onBlur: handleBlur,
9193
+ onPaste: _cache[0] || (_cache[0] = ($event) => handlePaste($event))
9194
+ }, null, 42, _hoisted_4$4);
9195
+ }), 128))
9196
+ ]),
9197
+ __props.helperText ? (openBlock(), createElementBlock("div", {
9198
+ key: 2,
9199
+ class: normalizeClass(helperTextClasses.value)
9200
+ }, [
9201
+ typeof __props.helperText === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
9202
+ createTextVNode(toDisplayString(__props.helperText), 1)
9203
+ ], 64)) : (openBlock(), createBlock(resolveDynamicComponent(__props.helperText), { key: 1 }))
9204
+ ], 2)) : createCommentVNode("", true)
9205
+ ], 2);
9206
+ };
9207
+ }
9208
+ });
9084
9209
  const _hoisted_1$5 = {
9085
9210
  key: 0,
9086
9211
  class: "ina-theme-toggle__label"
@@ -10624,47 +10749,48 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10624
10749
  }
10625
10750
  });
10626
10751
  const index = {
10627
- Accordion: _sfc_main$M,
10752
+ Accordion: _sfc_main$N,
10628
10753
  AccordionCard,
10629
10754
  AccordionGroup,
10630
10755
  ActionDropdown,
10631
- Alert: _sfc_main$I,
10632
- Avatar: _sfc_main$H,
10633
- Badge: _sfc_main$G,
10634
- BottomSheet: _sfc_main$F,
10635
- Breadcrumb: _sfc_main$E,
10636
- Button: _sfc_main$D,
10637
- ButtonGroup: _sfc_main$C,
10638
- Card: _sfc_main$B,
10639
- Checkbox: _sfc_main$A,
10640
- Chip: _sfc_main$y,
10756
+ Alert: _sfc_main$J,
10757
+ Avatar: _sfc_main$I,
10758
+ Badge: _sfc_main$H,
10759
+ BottomSheet: _sfc_main$G,
10760
+ Breadcrumb: _sfc_main$F,
10761
+ Button: _sfc_main$E,
10762
+ ButtonGroup: _sfc_main$D,
10763
+ Card: _sfc_main$C,
10764
+ Checkbox: _sfc_main$B,
10765
+ Chip: _sfc_main$z,
10641
10766
  Collapse,
10642
- Divider: _sfc_main$w,
10767
+ Divider: _sfc_main$x,
10643
10768
  Drawer,
10644
10769
  Dropdown,
10645
- FieldInputTable: _sfc_main$u,
10646
- FileUpload: _sfc_main$t,
10647
- InputSearch: _sfc_main$s,
10770
+ FieldInputTable: _sfc_main$v,
10771
+ FileUpload: _sfc_main$u,
10772
+ InputSearch: _sfc_main$t,
10648
10773
  Modal,
10649
10774
  MonthPicker,
10650
- MultipleChoiceGrid: _sfc_main$p,
10651
- Pagination: _sfc_main$o,
10652
- PasswordInput: _sfc_main$n,
10775
+ MultipleChoiceGrid: _sfc_main$q,
10776
+ Pagination: _sfc_main$p,
10777
+ PasswordInput: _sfc_main$o,
10653
10778
  PhoneInput,
10654
- ProgressBar: _sfc_main$l,
10655
- LinearProgressIndicator: _sfc_main$k,
10656
- RadioInput: _sfc_main$j,
10779
+ ProgressBar: _sfc_main$m,
10780
+ LinearProgressIndicator: _sfc_main$l,
10781
+ RadioInput: _sfc_main$k,
10657
10782
  DatePicker,
10658
10783
  SelectDropdown,
10659
- Skeleton: _sfc_main$e,
10660
- Spinner: _sfc_main$d,
10784
+ Skeleton: _sfc_main$f,
10785
+ Spinner: _sfc_main$e,
10661
10786
  Stepper,
10662
- TabHorizontal: _sfc_main$b,
10663
- TabVertical: _sfc_main$a,
10664
- Table: _sfc_main$8,
10665
- TableProgressBar: _sfc_main$9,
10666
- TextArea: _sfc_main$7,
10667
- TextField: _sfc_main$z,
10787
+ TabHorizontal: _sfc_main$c,
10788
+ TabVertical: _sfc_main$b,
10789
+ Table: _sfc_main$9,
10790
+ TableProgressBar: _sfc_main$a,
10791
+ TextArea: _sfc_main$8,
10792
+ TextField: _sfc_main$A,
10793
+ OneTimePassword: _sfc_main$7,
10668
10794
  ThemeToggle: _sfc_main$6,
10669
10795
  TimePicker: _sfc_main$5,
10670
10796
  Toast: _sfc_main$4,
@@ -10675,48 +10801,49 @@ const index = {
10675
10801
  setBrandTheme
10676
10802
  };
10677
10803
  export {
10678
- _sfc_main$M as Accordion,
10804
+ _sfc_main$N as Accordion,
10679
10805
  AccordionCard,
10680
10806
  AccordionGroup,
10681
10807
  ActionDropdown,
10682
- _sfc_main$I as Alert,
10683
- _sfc_main$H as Avatar,
10684
- _sfc_main$G as Badge,
10685
- _sfc_main$F as BottomSheet,
10686
- _sfc_main$E as Breadcrumb,
10687
- _sfc_main$D as Button,
10688
- _sfc_main$C as ButtonGroup,
10689
- _sfc_main$B as Card,
10690
- _sfc_main$A as Checkbox,
10691
- _sfc_main$y as Chip,
10808
+ _sfc_main$J as Alert,
10809
+ _sfc_main$I as Avatar,
10810
+ _sfc_main$H as Badge,
10811
+ _sfc_main$G as BottomSheet,
10812
+ _sfc_main$F as Breadcrumb,
10813
+ _sfc_main$E as Button,
10814
+ _sfc_main$D as ButtonGroup,
10815
+ _sfc_main$C as Card,
10816
+ _sfc_main$B as Checkbox,
10817
+ _sfc_main$z as Chip,
10692
10818
  Collapse,
10693
10819
  DatePicker,
10694
- _sfc_main$w as Divider,
10820
+ _sfc_main$x as Divider,
10695
10821
  Drawer,
10696
10822
  Dropdown,
10697
- _sfc_main$u as FieldInputTable,
10698
- _sfc_main$t as FileUpload,
10699
- _sfc_main$s as InputSearch,
10700
- _sfc_main$k as LinearProgressIndicator,
10823
+ _sfc_main$v as FieldInputTable,
10824
+ _sfc_main$u as FileUpload,
10825
+ _sfc_main$t as InputSearch,
10826
+ _sfc_main$l as LinearProgressIndicator,
10701
10827
  Modal,
10702
10828
  MonthPicker,
10703
- _sfc_main$p as MultipleChoiceGrid,
10704
- _sfc_main$o as Pagination,
10705
- _sfc_main$n as PasswordInput,
10829
+ _sfc_main$q as MultipleChoiceGrid,
10830
+ _sfc_main$7 as OneTimePassword,
10831
+ _sfc_main$p as Pagination,
10832
+ _sfc_main$o as PasswordInput,
10706
10833
  PhoneInput,
10707
- _sfc_main$l as ProgressBar,
10708
- _sfc_main$j as RadioInput,
10834
+ _sfc_main$m as ProgressBar,
10835
+ _sfc_main$k as RadioInput,
10709
10836
  SelectDropdown,
10710
10837
  _sfc_main as SingleFileUpload,
10711
- _sfc_main$e as Skeleton,
10712
- _sfc_main$d as Spinner,
10838
+ _sfc_main$f as Skeleton,
10839
+ _sfc_main$e as Spinner,
10713
10840
  Stepper,
10714
- _sfc_main$b as TabHorizontal,
10715
- _sfc_main$a as TabVertical,
10716
- _sfc_main$8 as Table,
10717
- _sfc_main$9 as TableProgressBar,
10718
- _sfc_main$7 as TextArea,
10719
- _sfc_main$z as TextField,
10841
+ _sfc_main$c as TabHorizontal,
10842
+ _sfc_main$b as TabVertical,
10843
+ _sfc_main$9 as Table,
10844
+ _sfc_main$a as TableProgressBar,
10845
+ _sfc_main$8 as TextArea,
10846
+ _sfc_main$A as TextField,
10720
10847
  _sfc_main$6 as ThemeToggle,
10721
10848
  _sfc_main$5 as TimePicker,
10722
10849
  _sfc_main$4 as Toast,