@strands.gg/accui 2.6.4 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
- import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, resolveComponent, resolveDynamicComponent, createSlots, h as h$1, ref, nextTick, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, getCurrentInstance, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, reactive, createStaticVNode, vModelText, Transition, mergeProps, inject, withKeys, isMemoSame } from "vue";
1
+ import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, resolveComponent, resolveDynamicComponent, createSlots, h as h$1, ref, nextTick, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, getCurrentInstance, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, mergeProps, reactive, createStaticVNode, vModelText, Transition, inject, withKeys, isMemoSame } from "vue";
2
2
  import { u as useStrandsConfig, p as provideStrandsConfig } from "./useStrandsConfig-f200kXFG.es.js";
3
3
  import { s } from "./useStrandsConfig-f200kXFG.es.js";
4
4
  import { u as useStrandsAuth } from "./useStrandsAuth-B0jI8Gbq.es.js";
5
- const _hoisted_1$T = { class: "app-content" };
6
- const _hoisted_2$K = {
5
+ const _hoisted_1$U = { class: "app-content" };
6
+ const _hoisted_2$L = {
7
7
  key: 0,
8
8
  class: "ui-app-loading-overlay"
9
9
  };
10
- const _hoisted_3$H = { class: "ui-app-loading-content" };
11
- const _hoisted_4$E = {
10
+ const _hoisted_3$I = { class: "ui-app-loading-content" };
11
+ const _hoisted_4$F = {
12
12
  key: 0,
13
13
  class: "ui-app-loading-message"
14
14
  };
15
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
15
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
16
16
  __name: "UiApp",
17
17
  props: {
18
18
  theme: { default: "auto" },
@@ -57,17 +57,17 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
57
57
  return openBlock(), createElementBlock("div", {
58
58
  class: normalizeClass(["ui-app", appClasses.value])
59
59
  }, [
60
- createElementVNode("div", _hoisted_1$T, [
60
+ createElementVNode("div", _hoisted_1$U, [
61
61
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
62
62
  ]),
63
63
  (openBlock(), createBlock(Teleport, { to: "body" }, [
64
64
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-app-notifications" }, null, -1))
65
65
  ])),
66
66
  (openBlock(), createBlock(Teleport, { to: "body" }, [
67
- isGlobalLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
68
- createElementVNode("div", _hoisted_3$H, [
67
+ isGlobalLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
68
+ createElementVNode("div", _hoisted_3$I, [
69
69
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "ui-app-loading-spinner" }, null, -1)),
70
- _ctx.loadingMessage ? (openBlock(), createElementBlock("p", _hoisted_4$E, toDisplayString(_ctx.loadingMessage), 1)) : createCommentVNode("", true)
70
+ _ctx.loadingMessage ? (openBlock(), createElementBlock("p", _hoisted_4$F, toDisplayString(_ctx.loadingMessage), 1)) : createCommentVNode("", true)
71
71
  ])
72
72
  ])) : createCommentVNode("", true)
73
73
  ]))
@@ -82,23 +82,23 @@ const _export_sfc = (sfc, props) => {
82
82
  }
83
83
  return target;
84
84
  };
85
- const UiApp = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-f18c1706"]]);
86
- const _hoisted_1$S = { class: "accui-component-scope" };
87
- const _hoisted_2$J = { class: "alert-content" };
88
- const _hoisted_3$G = { class: "alert-icon-container" };
89
- const _hoisted_4$D = {
85
+ const UiApp = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-f18c1706"]]);
86
+ const _hoisted_1$T = { class: "accui-component-scope" };
87
+ const _hoisted_2$K = { class: "alert-content" };
88
+ const _hoisted_3$H = { class: "alert-icon-container" };
89
+ const _hoisted_4$E = {
90
90
  class: "alert-main-icon",
91
91
  fill: "currentColor",
92
92
  viewBox: "0 0 20 20",
93
93
  "aria-hidden": "true"
94
94
  };
95
- const _hoisted_5$y = ["d"];
95
+ const _hoisted_5$z = ["d"];
96
96
  const _hoisted_6$t = { class: "alert-text-container" };
97
97
  const _hoisted_7$s = {
98
98
  key: 0,
99
99
  class: "alert-dismiss-container"
100
100
  };
101
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
101
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
102
102
  __name: "UiAlert",
103
103
  props: {
104
104
  variant: { default: "info" },
@@ -134,19 +134,19 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
134
134
  return icons[props.variant];
135
135
  });
136
136
  return (_ctx, _cache) => {
137
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
137
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
138
138
  createElementVNode("div", {
139
139
  class: normalizeClass(alertClasses.value),
140
140
  role: "alert"
141
141
  }, [
142
- createElementVNode("div", _hoisted_2$J, [
143
- createElementVNode("div", _hoisted_3$G, [
144
- (openBlock(), createElementBlock("svg", _hoisted_4$D, [
142
+ createElementVNode("div", _hoisted_2$K, [
143
+ createElementVNode("div", _hoisted_3$H, [
144
+ (openBlock(), createElementBlock("svg", _hoisted_4$E, [
145
145
  createElementVNode("path", {
146
146
  "fill-rule": "evenodd",
147
147
  d: iconPath.value,
148
148
  "clip-rule": "evenodd"
149
- }, null, 8, _hoisted_5$y)
149
+ }, null, 8, _hoisted_5$z)
150
150
  ]))
151
151
  ]),
152
152
  createElementVNode("div", _hoisted_6$t, [
@@ -188,22 +188,22 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
188
188
  };
189
189
  }
190
190
  });
191
- const StrandsUiAlert = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-1beb49ad"]]);
191
+ const StrandsUiAlert = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-1beb49ad"]]);
192
192
  const logo = '<svg width="302" height="438" viewBox="0 0 302 438" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M71.5001 96C71.5001 96 132 106 137 61.5C142 17 117.5 3.50005 94.5001 1.50003C71.5001 -0.499996 16.0001 8.5 2.00014 72.5C-6.5 130.5 71.5003 227.5 165 218C258.5 208.5 280.758 148.5 283.5 121C286.242 93.5 277.5 61.5 238.5 61.5C153 61.5 150.501 185 170.5 235C190.5 285 199 279 213 314C227.001 349 217.296 411.458 183 427C129.456 450.65 92 426 78.5 407.5C65 389 68.0003 357 94.5001 344.5C121 332 212.41 393.5 301.5 361" stroke="black"/>\n</svg>\n';
193
- const _hoisted_1$R = {
193
+ const _hoisted_1$S = {
194
194
  key: 0,
195
195
  class: "loader-icon"
196
196
  };
197
- const _hoisted_2$I = ["width", "height"];
198
- const _hoisted_3$F = ["d"];
199
- const _hoisted_4$C = ["stroke-width"];
200
- const _hoisted_5$x = ["stroke-width"];
197
+ const _hoisted_2$J = ["width", "height"];
198
+ const _hoisted_3$G = ["d"];
199
+ const _hoisted_4$D = ["stroke-width"];
200
+ const _hoisted_5$y = ["stroke-width"];
201
201
  const _hoisted_6$s = ["width", "height"];
202
202
  const _hoisted_7$r = {
203
203
  key: 3,
204
204
  class: "loader-text"
205
205
  };
206
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
206
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
207
207
  __name: "UiLoader",
208
208
  props: {
209
209
  size: { default: "md" },
@@ -237,7 +237,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
237
237
  `loader-color-${_ctx.color}`
238
238
  ]])
239
239
  }, [
240
- _ctx.variant === "spinner" ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
240
+ _ctx.variant === "spinner" ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
241
241
  (openBlock(), createElementBlock("svg", {
242
242
  width: computedSize.value,
243
243
  height: computedSize.value,
@@ -248,7 +248,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
248
248
  id: "logo-path",
249
249
  d: unref(d),
250
250
  transform: "translate(81, 13) scale(1.0)"
251
- }, null, 8, _hoisted_3$F)
251
+ }, null, 8, _hoisted_3$G)
252
252
  ]),
253
253
  createElementVNode("use", {
254
254
  href: "#logo-path",
@@ -257,7 +257,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
257
257
  "stroke-width": _ctx.weight,
258
258
  "stroke-linecap": "round",
259
259
  "stroke-linejoin": "round"
260
- }, null, 8, _hoisted_4$C),
260
+ }, null, 8, _hoisted_4$D),
261
261
  createElementVNode("use", {
262
262
  href: "#logo-path",
263
263
  fill: "none",
@@ -266,8 +266,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
266
266
  "stroke-linecap": "round",
267
267
  "stroke-linejoin": "round",
268
268
  class: "loader-animated-path"
269
- }, null, 8, _hoisted_5$x)
270
- ], 8, _hoisted_2$I))
269
+ }, null, 8, _hoisted_5$y)
270
+ ], 8, _hoisted_2$J))
271
271
  ])) : _ctx.variant === "circle" ? (openBlock(), createElementBlock("div", {
272
272
  key: 1,
273
273
  class: "loader-circle",
@@ -306,21 +306,21 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
306
306
  };
307
307
  }
308
308
  });
309
- const StrandsUiLoader = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-4b565c5d"]]);
310
- const _hoisted_1$Q = {
309
+ const StrandsUiLoader = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-4b565c5d"]]);
310
+ const _hoisted_1$R = {
311
311
  key: 0,
312
312
  class: "button-loading-content"
313
313
  };
314
- const _hoisted_2$H = { key: 0 };
315
- const _hoisted_3$E = {
314
+ const _hoisted_2$I = { key: 0 };
315
+ const _hoisted_3$F = {
316
316
  key: 0,
317
317
  class: "leading-icon"
318
318
  };
319
- const _hoisted_4$B = {
319
+ const _hoisted_4$C = {
320
320
  key: 1,
321
321
  class: "trailing-icon"
322
322
  };
323
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
323
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
324
324
  __name: "UiButton.Content",
325
325
  props: {
326
326
  loading: { type: Boolean, default: false },
@@ -362,25 +362,25 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
362
362
  return props.size ? `button-content-${props.size}` : "button-content-md";
363
363
  });
364
364
  return (_ctx, _cache) => {
365
- return _ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_1$Q, [
365
+ return _ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_1$R, [
366
366
  createVNode(StrandsUiLoader, {
367
367
  variant: "circle",
368
368
  size: loaderSize.value,
369
369
  centered: false,
370
370
  color: "white"
371
371
  }, null, 8, ["size"]),
372
- !_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$H, toDisplayString(_ctx.loadingText || "Loading..."), 1)) : createCommentVNode("", true)
372
+ !_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$I, toDisplayString(_ctx.loadingText || "Loading..."), 1)) : createCommentVNode("", true)
373
373
  ])) : (openBlock(), createElementBlock("span", {
374
374
  key: 1,
375
375
  class: normalizeClass(["button-content", sizeClass.value])
376
376
  }, [
377
377
  _ctx.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }, void 0, true) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
378
- hasLeadingIconSlot.value ? (openBlock(), createElementBlock("span", _hoisted_3$E, [
378
+ hasLeadingIconSlot.value ? (openBlock(), createElementBlock("span", _hoisted_3$F, [
379
379
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
380
380
  ])) : createCommentVNode("", true),
381
381
  renderSlot(_ctx.$slots, "icon", {}, void 0, true),
382
382
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
383
- hasTrailingIconSlot.value ? (openBlock(), createElementBlock("span", _hoisted_4$B, [
383
+ hasTrailingIconSlot.value ? (openBlock(), createElementBlock("span", _hoisted_4$C, [
384
384
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
385
385
  ])) : createCommentVNode("", true)
386
386
  ], 64))
@@ -388,9 +388,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
388
388
  };
389
389
  }
390
390
  });
391
- const UiButtonContent = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-5aa4146e"]]);
392
- const _hoisted_1$P = ["href", "target", "rel"];
393
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
391
+ const UiButtonContent = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-5aa4146e"]]);
392
+ const _hoisted_1$Q = ["href", "target", "rel"];
393
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
394
394
  __name: "UiButton.Anchor",
395
395
  props: {
396
396
  to: {},
@@ -454,11 +454,11 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
454
454
  ]),
455
455
  _: 3
456
456
  }, 8, ["loading", "loading-text", "icon"])
457
- ], 14, _hoisted_1$P);
457
+ ], 14, _hoisted_1$Q);
458
458
  };
459
459
  }
460
460
  });
461
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
461
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
462
462
  __name: "UiButton.Nuxt",
463
463
  props: {
464
464
  to: {},
@@ -522,7 +522,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
522
522
  };
523
523
  }
524
524
  });
525
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
525
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
526
526
  __name: "UiButton.Vue",
527
527
  props: {
528
528
  to: {},
@@ -578,8 +578,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
578
578
  };
579
579
  }
580
580
  });
581
- const _hoisted_1$O = ["type", "disabled"];
582
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
581
+ const _hoisted_1$P = ["type", "disabled"];
582
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
583
583
  __name: "UiButton",
584
584
  props: {
585
585
  variant: { default: "primary" },
@@ -676,7 +676,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
676
676
  key: "1"
677
677
  } : void 0
678
678
  ]), 1032, ["loading", "loading-text", "icon", "size"])
679
- ], 14, _hoisted_1$O)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$W, {
679
+ ], 14, _hoisted_1$P)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
680
680
  key: 1,
681
681
  to: _ctx.to,
682
682
  disabled: _ctx.disabled,
@@ -709,7 +709,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
709
709
  ]),
710
710
  key: "1"
711
711
  } : void 0
712
- ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles"])) : isVueRouterAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$V, {
712
+ ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles"])) : isVueRouterAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$W, {
713
713
  key: 2,
714
714
  to: _ctx.to,
715
715
  disabled: _ctx.disabled,
@@ -742,7 +742,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
742
742
  ]),
743
743
  key: "1"
744
744
  } : void 0
745
- ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles"])) : (openBlock(), createBlock(_sfc_main$X, {
745
+ ]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles"])) : (openBlock(), createBlock(_sfc_main$Y, {
746
746
  key: 3,
747
747
  to: _ctx.to,
748
748
  href: _ctx.href,
@@ -781,22 +781,22 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
781
781
  };
782
782
  }
783
783
  });
784
- const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-a5942725"]]);
784
+ const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-a5942725"]]);
785
785
  const CompoundUiButton = StrandsUiButton;
786
786
  CompoundUiButton.Content = UiButtonContent;
787
- CompoundUiButton.Anchor = _sfc_main$X;
788
- CompoundUiButton.Nuxt = _sfc_main$W;
789
- CompoundUiButton.Vue = _sfc_main$V;
790
- const _hoisted_1$N = {
787
+ CompoundUiButton.Anchor = _sfc_main$Y;
788
+ CompoundUiButton.Nuxt = _sfc_main$X;
789
+ CompoundUiButton.Vue = _sfc_main$W;
790
+ const _hoisted_1$O = {
791
791
  key: 0,
792
792
  class: "ui-card-header"
793
793
  };
794
- const _hoisted_2$G = { class: "ui-card-content" };
795
- const _hoisted_3$D = {
794
+ const _hoisted_2$H = { class: "ui-card-content" };
795
+ const _hoisted_3$E = {
796
796
  key: 1,
797
797
  class: "ui-card-footer"
798
798
  };
799
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
799
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
800
800
  __name: "UiCard",
801
801
  props: {
802
802
  variant: { default: "default" },
@@ -814,20 +814,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
814
814
  `ui-card-color-${_ctx.color}`
815
815
  ]])
816
816
  }, [
817
- _ctx.$slots["header"] ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
817
+ _ctx.$slots["header"] ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
818
818
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
819
819
  ])) : createCommentVNode("", true),
820
- createElementVNode("div", _hoisted_2$G, [
820
+ createElementVNode("div", _hoisted_2$H, [
821
821
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
822
822
  ]),
823
- _ctx.$slots["footer"] ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
823
+ _ctx.$slots["footer"] ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
824
824
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
825
825
  ])) : createCommentVNode("", true)
826
826
  ], 2);
827
827
  };
828
828
  }
829
829
  });
830
- const StrandsUiCard = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-2c11aaa2"]]);
830
+ const StrandsUiCard = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-2c11aaa2"]]);
831
831
  /**
832
832
  * @license lucide-vue-next v0.542.0 - ISC
833
833
  *
@@ -1381,24 +1381,24 @@ const X = createLucideIcon("x", [
1381
1381
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1382
1382
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1383
1383
  ]);
1384
- const _hoisted_1$M = {
1384
+ const _hoisted_1$N = {
1385
1385
  key: 0,
1386
1386
  class: "input-leading-icon"
1387
1387
  };
1388
- const _hoisted_2$F = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck"];
1389
- const _hoisted_3$C = {
1388
+ const _hoisted_2$G = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck"];
1389
+ const _hoisted_3$D = {
1390
1390
  key: 1,
1391
1391
  class: "input-trailing-icon"
1392
1392
  };
1393
- const _hoisted_4$A = {
1393
+ const _hoisted_4$B = {
1394
1394
  key: 2,
1395
1395
  class: "input-trailing-icon"
1396
1396
  };
1397
- const _hoisted_5$w = {
1397
+ const _hoisted_5$x = {
1398
1398
  key: 3,
1399
1399
  class: "input-trailing-icon"
1400
1400
  };
1401
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
1401
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1402
1402
  __name: "UiInput.Text",
1403
1403
  props: {
1404
1404
  type: { default: "text" },
@@ -1481,7 +1481,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1481
1481
  return openBlock(), createElementBlock("div", {
1482
1482
  class: normalizeClass(["input-field-wrapper", wrapperClasses.value])
1483
1483
  }, [
1484
- _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
1484
+ _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
1485
1485
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
1486
1486
  ])) : createCommentVNode("", true),
1487
1487
  createElementVNode("input", {
@@ -1502,8 +1502,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1502
1502
  onBlur: handleBlur,
1503
1503
  onFocus: handleFocus,
1504
1504
  onKeydown: handleKeydown
1505
- }, null, 42, _hoisted_2$F),
1506
- _ctx.type === "password" ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
1505
+ }, null, 42, _hoisted_2$G),
1506
+ _ctx.type === "password" ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
1507
1507
  createVNode(StrandsUiButton, {
1508
1508
  color: showPassword.value ? "primary" : "secondary",
1509
1509
  variant: showPassword.value ? "primary" : "ghost",
@@ -1518,7 +1518,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1518
1518
  ]),
1519
1519
  _: 1
1520
1520
  }, 8, ["color", "variant", "aria-label"])
1521
- ])) : _ctx.type === "search" && _ctx.modelValue && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("div", _hoisted_4$A, [
1521
+ ])) : _ctx.type === "search" && _ctx.modelValue && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("div", _hoisted_4$B, [
1522
1522
  createVNode(StrandsUiButton, {
1523
1523
  color: "danger",
1524
1524
  variant: "ghost",
@@ -1533,24 +1533,24 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1533
1533
  ]),
1534
1534
  _: 1
1535
1535
  })
1536
- ])) : hasTrailingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_5$w, [
1536
+ ])) : hasTrailingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_5$x, [
1537
1537
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
1538
1538
  ])) : createCommentVNode("", true)
1539
1539
  ], 2);
1540
1540
  };
1541
1541
  }
1542
1542
  });
1543
- const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-728dfbde"]]);
1544
- const _hoisted_1$L = {
1543
+ const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-728dfbde"]]);
1544
+ const _hoisted_1$M = {
1545
1545
  key: 0,
1546
1546
  class: "input-leading-icon"
1547
1547
  };
1548
- const _hoisted_2$E = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck"];
1549
- const _hoisted_3$B = {
1548
+ const _hoisted_2$F = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck"];
1549
+ const _hoisted_3$C = {
1550
1550
  key: 1,
1551
1551
  class: "input-trailing-icon"
1552
1552
  };
1553
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
1553
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1554
1554
  __name: "UiInput.Textarea",
1555
1555
  props: {
1556
1556
  modelValue: {},
@@ -1612,7 +1612,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1612
1612
  return openBlock(), createElementBlock("div", {
1613
1613
  class: normalizeClass(["input-field-wrapper input-textarea", wrapperClasses.value])
1614
1614
  }, [
1615
- _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
1615
+ _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
1616
1616
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
1617
1617
  ])) : createCommentVNode("", true),
1618
1618
  createElementVNode("div", {
@@ -1638,16 +1638,16 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1638
1638
  onBlur: handleBlur,
1639
1639
  onFocus: handleFocus,
1640
1640
  onKeydown: handleKeydown
1641
- }, null, 42, _hoisted_2$E)
1641
+ }, null, 42, _hoisted_2$F)
1642
1642
  ], 2),
1643
- _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
1643
+ _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
1644
1644
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
1645
1645
  ])) : createCommentVNode("", true)
1646
1646
  ], 2);
1647
1647
  };
1648
1648
  }
1649
1649
  });
1650
- const UiInputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-acf98514"]]);
1650
+ const UiInputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-acf98514"]]);
1651
1651
  function useFloatingPosition(options) {
1652
1652
  const {
1653
1653
  trigger,
@@ -1850,17 +1850,17 @@ function useFloatingPosition(options) {
1850
1850
  cleanup
1851
1851
  };
1852
1852
  }
1853
- const _hoisted_1$K = {
1853
+ const _hoisted_1$L = {
1854
1854
  key: 0,
1855
1855
  class: "input-leading-icon"
1856
1856
  };
1857
- const _hoisted_2$D = ["aria-expanded", "aria-controls"];
1858
- const _hoisted_3$A = { class: "input-select-value" };
1859
- const _hoisted_4$z = {
1857
+ const _hoisted_2$E = ["aria-expanded", "aria-controls"];
1858
+ const _hoisted_3$B = { class: "input-select-value" };
1859
+ const _hoisted_4$A = {
1860
1860
  key: 0,
1861
1861
  class: "input-select-text"
1862
1862
  };
1863
- const _hoisted_5$v = {
1863
+ const _hoisted_5$w = {
1864
1864
  key: 1,
1865
1865
  class: "input-select-placeholder"
1866
1866
  };
@@ -1888,7 +1888,7 @@ const _hoisted_14$l = {
1888
1888
  key: 0,
1889
1889
  class: "input-dropdown-option-check"
1890
1890
  };
1891
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1891
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1892
1892
  __name: "UiInput.Select",
1893
1893
  props: {
1894
1894
  modelValue: {},
@@ -2153,7 +2153,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2153
2153
  paddingClasses.value
2154
2154
  ]])
2155
2155
  }, [
2156
- _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
2156
+ _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
2157
2157
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
2158
2158
  ])) : createCommentVNode("", true),
2159
2159
  createElementVNode("div", {
@@ -2168,15 +2168,15 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2168
2168
  "aria-haspopup": true,
2169
2169
  "aria-controls": dropdownId.value
2170
2170
  }, [
2171
- createElementVNode("div", _hoisted_3$A, [
2172
- displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$z, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$v, toDisplayString(_ctx.placeholder || "Select an option..."), 1))
2171
+ createElementVNode("div", _hoisted_3$B, [
2172
+ displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$A, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$w, toDisplayString(_ctx.placeholder || "Select an option..."), 1))
2173
2173
  ]),
2174
2174
  createElementVNode("div", {
2175
2175
  class: normalizeClass(["input-select-arrow", { "input-select-arrow-open": dropdownState.value.isOpen }])
2176
2176
  }, [
2177
2177
  createVNode(unref(ChevronDown))
2178
2178
  ], 2)
2179
- ], 42, _hoisted_2$D),
2179
+ ], 42, _hoisted_2$E),
2180
2180
  _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_6$r, [
2181
2181
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
2182
2182
  ])) : createCommentVNode("", true)
@@ -2245,12 +2245,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2245
2245
  };
2246
2246
  }
2247
2247
  });
2248
- const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-985cba8d"]]);
2249
- const _hoisted_1$J = { class: "input-leading-icon" };
2250
- const _hoisted_2$C = ["src"];
2251
- const _hoisted_3$z = ["id", "accept", "multiple", "disabled", "required"];
2252
- const _hoisted_4$y = { class: "input-file-content" };
2253
- const _hoisted_5$u = {
2248
+ const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-985cba8d"]]);
2249
+ const _hoisted_1$K = { class: "input-leading-icon" };
2250
+ const _hoisted_2$D = ["src"];
2251
+ const _hoisted_3$A = ["id", "accept", "multiple", "disabled", "required"];
2252
+ const _hoisted_4$z = { class: "input-file-content" };
2253
+ const _hoisted_5$v = {
2254
2254
  key: 0,
2255
2255
  class: "input-file-prompt"
2256
2256
  };
@@ -2275,7 +2275,7 @@ const _hoisted_14$k = {
2275
2275
  key: 1,
2276
2276
  class: "input-trailing-icon"
2277
2277
  };
2278
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
2278
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2279
2279
  __name: "UiInput.File",
2280
2280
  props: {
2281
2281
  modelValue: {},
@@ -2453,13 +2453,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2453
2453
  paddingClasses.value
2454
2454
  ]])
2455
2455
  }, [
2456
- createElementVNode("div", _hoisted_1$J, [
2456
+ createElementVNode("div", _hoisted_1$K, [
2457
2457
  hasImageSelected.value && imagePreviewUrl.value ? (openBlock(), createElementBlock("img", {
2458
2458
  key: 0,
2459
2459
  src: imagePreviewUrl.value,
2460
2460
  alt: "Preview",
2461
2461
  class: "input-file-preview"
2462
- }, null, 8, _hoisted_2$C)) : _ctx.$slots["leading-icon"] ? renderSlot(_ctx.$slots, "leading-icon", { key: 1 }, void 0, true) : (openBlock(), createBlock(unref(FileInput), { key: 2 }))
2462
+ }, null, 8, _hoisted_2$D)) : _ctx.$slots["leading-icon"] ? renderSlot(_ctx.$slots, "leading-icon", { key: 1 }, void 0, true) : (openBlock(), createBlock(unref(FileInput), { key: 2 }))
2463
2463
  ]),
2464
2464
  createElementVNode("div", {
2465
2465
  class: normalizeClass(["input-file-area", {
@@ -2484,9 +2484,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2484
2484
  onChange: handleFileSelect,
2485
2485
  onBlur: handleBlur,
2486
2486
  onFocus: handleFocus
2487
- }, null, 40, _hoisted_3$z),
2488
- createElementVNode("div", _hoisted_4$y, [
2489
- selectedFiles.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$u, [
2487
+ }, null, 40, _hoisted_3$A),
2488
+ createElementVNode("div", _hoisted_4$z, [
2489
+ selectedFiles.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$v, [
2490
2490
  createElementVNode("div", _hoisted_6$q, toDisplayString(_ctx.dragDropText || "Click to select or drag and drop"), 1),
2491
2491
  _ctx.accept ? (openBlock(), createElementBlock("div", _hoisted_7$p, toDisplayString(_ctx.accept), 1)) : createCommentVNode("", true)
2492
2492
  ])) : (openBlock(), createElementBlock("div", _hoisted_8$n, [
@@ -2521,19 +2521,19 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2521
2521
  };
2522
2522
  }
2523
2523
  });
2524
- const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-1328dc4f"]]);
2525
- const _hoisted_1$I = { class: "tabs-wrapper" };
2526
- const _hoisted_2$B = {
2524
+ const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-1328dc4f"]]);
2525
+ const _hoisted_1$J = { class: "tabs-wrapper" };
2526
+ const _hoisted_2$C = {
2527
2527
  key: 0,
2528
2528
  class: "tabs-before"
2529
2529
  };
2530
- const _hoisted_3$y = ["aria-selected", "id", "onClick"];
2531
- const _hoisted_4$x = {
2530
+ const _hoisted_3$z = ["aria-selected", "id", "onClick"];
2531
+ const _hoisted_4$y = {
2532
2532
  key: 1,
2533
2533
  class: "tabs-after"
2534
2534
  };
2535
- const _hoisted_5$t = ["aria-labelledby"];
2536
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
2535
+ const _hoisted_5$u = ["aria-labelledby"];
2536
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2537
2537
  __name: "UiTabs",
2538
2538
  props: {
2539
2539
  modelValue: {},
@@ -2860,7 +2860,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2860
2860
  { "tabs-container--with-content": hasContentSlot.value }
2861
2861
  ]])
2862
2862
  }, [
2863
- createElementVNode("div", _hoisted_1$I, [
2863
+ createElementVNode("div", _hoisted_1$J, [
2864
2864
  createElementVNode("div", {
2865
2865
  class: normalizeClass(["tabs-list", [
2866
2866
  `tabs-list--${_ctx.orientation}`,
@@ -2869,7 +2869,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2869
2869
  ]]),
2870
2870
  style: normalizeStyle(_ctx.sticky ? { position: "sticky", [_ctx.sticky.side]: `${_ctx.sticky.offset}px`, zIndex: 10 } : {})
2871
2871
  }, [
2872
- _ctx.$slots["before"] ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
2872
+ _ctx.$slots["before"] ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
2873
2873
  renderSlot(_ctx.$slots, "before", {}, void 0, true)
2874
2874
  ])) : createCommentVNode("", true),
2875
2875
  createElementVNode("div", {
@@ -2893,7 +2893,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2893
2893
  id: `tab-${tab.value}`,
2894
2894
  role: "tab",
2895
2895
  onClick: ($event) => handleTabClick(tab.value, index)
2896
- }, toDisplayString(tab.label), 11, _hoisted_3$y);
2896
+ }, toDisplayString(tab.label), 11, _hoisted_3$z);
2897
2897
  }), 128)),
2898
2898
  createElementVNode("div", {
2899
2899
  class: normalizeClass(["tab-background", { "no-transition": !enableTransitions.value }]),
@@ -2904,7 +2904,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2904
2904
  style: normalizeStyle(underlineStyle.value)
2905
2905
  }, null, 6)
2906
2906
  ], 2),
2907
- _ctx.$slots["after"] ? (openBlock(), createElementBlock("div", _hoisted_4$x, [
2907
+ _ctx.$slots["after"] ? (openBlock(), createElementBlock("div", _hoisted_4$y, [
2908
2908
  renderSlot(_ctx.$slots, "after", {}, void 0, true)
2909
2909
  ])) : createCommentVNode("", true)
2910
2910
  ], 6)
@@ -2917,17 +2917,17 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2917
2917
  id: "tabpanel"
2918
2918
  }, [
2919
2919
  renderSlot(_ctx.$slots, "content", { activeTab: activeTab.value }, void 0, true)
2920
- ], 10, _hoisted_5$t)) : createCommentVNode("", true)
2920
+ ], 10, _hoisted_5$u)) : createCommentVNode("", true)
2921
2921
  ], 2);
2922
2922
  };
2923
2923
  }
2924
2924
  });
2925
- const StrandsUiTabs = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-edff91a5"]]);
2926
- const _hoisted_1$H = {
2925
+ const StrandsUiTabs = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-edff91a5"]]);
2926
+ const _hoisted_1$I = {
2927
2927
  key: 0,
2928
2928
  class: "ui-divider-text"
2929
2929
  };
2930
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
2930
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2931
2931
  __name: "UiDivider",
2932
2932
  props: {
2933
2933
  orientation: { default: "horizontal" },
@@ -2981,7 +2981,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
2981
2981
  ]),
2982
2982
  style: normalizeStyle(dividerStyle.value)
2983
2983
  }, [
2984
- hasText.value ? (openBlock(), createElementBlock("span", _hoisted_1$H, [
2984
+ hasText.value ? (openBlock(), createElementBlock("span", _hoisted_1$I, [
2985
2985
  renderSlot(_ctx.$slots, "default", {}, () => [
2986
2986
  createTextVNode(toDisplayString(_ctx.text), 1)
2987
2987
  ], true)
@@ -2990,15 +2990,15 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
2990
2990
  };
2991
2991
  }
2992
2992
  });
2993
- const UiDivider = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-1c798024"]]);
2994
- const _hoisted_1$G = { class: "datetime-picker-wrapper" };
2995
- const _hoisted_2$A = { class: "datetime-picker-leading-icon" };
2996
- const _hoisted_3$x = { class: "datetime-picker-display" };
2997
- const _hoisted_4$w = {
2993
+ const UiDivider = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-1c798024"]]);
2994
+ const _hoisted_1$H = { class: "datetime-picker-wrapper" };
2995
+ const _hoisted_2$B = { class: "datetime-picker-leading-icon" };
2996
+ const _hoisted_3$y = { class: "datetime-picker-display" };
2997
+ const _hoisted_4$x = {
2998
2998
  key: 0,
2999
2999
  class: "datetime-picker-value"
3000
3000
  };
3001
- const _hoisted_5$s = {
3001
+ const _hoisted_5$t = {
3002
3002
  key: 1,
3003
3003
  class: "datetime-picker-placeholder"
3004
3004
  };
@@ -3031,7 +3031,7 @@ const _hoisted_20$b = {
3031
3031
  };
3032
3032
  const _hoisted_21$b = { class: "time-scroll" };
3033
3033
  const _hoisted_22$9 = { class: "datetime-picker-footer" };
3034
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
3034
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
3035
3035
  __name: "UiDateTimePicker",
3036
3036
  props: {
3037
3037
  modelValue: {},
@@ -3363,7 +3363,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3363
3363
  cleanupFloating();
3364
3364
  });
3365
3365
  return (_ctx, _cache) => {
3366
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
3366
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
3367
3367
  createElementVNode("div", {
3368
3368
  ref_key: "triggerElement",
3369
3369
  ref: triggerElement,
@@ -3373,11 +3373,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3373
3373
  ]]),
3374
3374
  onClick: togglePicker
3375
3375
  }, [
3376
- createElementVNode("div", _hoisted_2$A, [
3376
+ createElementVNode("div", _hoisted_2$B, [
3377
3377
  _ctx.type === "date" ? (openBlock(), createBlock(unref(Calendar), { key: 0 })) : _ctx.type === "time" ? (openBlock(), createBlock(unref(Clock), { key: 1 })) : (openBlock(), createBlock(unref(CalendarClock), { key: 2 }))
3378
3378
  ]),
3379
- createElementVNode("div", _hoisted_3$x, [
3380
- displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$w, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$s, toDisplayString(_ctx.placeholder || getDefaultPlaceholder()), 1))
3379
+ createElementVNode("div", _hoisted_3$y, [
3380
+ displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$x, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$t, toDisplayString(_ctx.placeholder || getDefaultPlaceholder()), 1))
3381
3381
  ]),
3382
3382
  _ctx.modelValue && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("div", {
3383
3383
  key: 0,
@@ -3632,8 +3632,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3632
3632
  };
3633
3633
  }
3634
3634
  });
3635
- const UiDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-10c66504"]]);
3636
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
3635
+ const UiDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-10c66504"]]);
3636
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3637
3637
  __name: "UiInput.Date",
3638
3638
  props: {
3639
3639
  modelValue: {},
@@ -3676,7 +3676,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3676
3676
  };
3677
3677
  }
3678
3678
  });
3679
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
3679
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3680
3680
  __name: "UiInput.Time",
3681
3681
  props: {
3682
3682
  modelValue: {},
@@ -3717,7 +3717,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3717
3717
  };
3718
3718
  }
3719
3719
  });
3720
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
3720
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3721
3721
  __name: "UiInput.DateTime",
3722
3722
  props: {
3723
3723
  modelValue: {},
@@ -24716,14 +24716,14 @@ var TextAlign = Extension.create({
24716
24716
  });
24717
24717
  var index_default$1 = TextAlign;
24718
24718
  var index_default = Placeholder;
24719
- const _hoisted_1$F = { class: "input-richtext-toolbar" };
24720
- const _hoisted_2$z = { class: "input-richtext-group" };
24721
- const _hoisted_3$w = { class: "input-richtext-group" };
24722
- const _hoisted_4$v = { class: "input-richtext-group" };
24723
- const _hoisted_5$r = { class: "input-richtext-group" };
24719
+ const _hoisted_1$G = { class: "input-richtext-toolbar" };
24720
+ const _hoisted_2$A = { class: "input-richtext-group" };
24721
+ const _hoisted_3$x = { class: "input-richtext-group" };
24722
+ const _hoisted_4$w = { class: "input-richtext-group" };
24723
+ const _hoisted_5$s = { class: "input-richtext-group" };
24724
24724
  const _hoisted_6$o = { class: "input-richtext-group" };
24725
24725
  const _hoisted_7$n = { class: "input-richtext-editor-wrapper" };
24726
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
24726
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
24727
24727
  __name: "UiInput.RichText",
24728
24728
  props: {
24729
24729
  modelValue: {},
@@ -24803,8 +24803,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
24803
24803
  "input-disabled": _ctx.disabled
24804
24804
  }])
24805
24805
  }, [
24806
- createElementVNode("div", _hoisted_1$F, [
24807
- createElementVNode("div", _hoisted_2$z, [
24806
+ createElementVNode("div", _hoisted_1$G, [
24807
+ createElementVNode("div", _hoisted_2$A, [
24808
24808
  createVNode(StrandsUiButton, {
24809
24809
  color: unref(editor)?.isActive("bold") ? "primary" : "secondary",
24810
24810
  size: "sm",
@@ -24867,7 +24867,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
24867
24867
  spacing: "28px",
24868
24868
  margin: "4px"
24869
24869
  }),
24870
- createElementVNode("div", _hoisted_3$w, [
24870
+ createElementVNode("div", _hoisted_3$x, [
24871
24871
  createVNode(StrandsUiButton, {
24872
24872
  color: unref(editor)?.isActive("heading", { level: 1 }) ? "primary" : "secondary",
24873
24873
  size: "sm",
@@ -24916,7 +24916,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
24916
24916
  spacing: "28px",
24917
24917
  margin: "4px"
24918
24918
  }),
24919
- createElementVNode("div", _hoisted_4$v, [
24919
+ createElementVNode("div", _hoisted_4$w, [
24920
24920
  createVNode(StrandsUiButton, {
24921
24921
  color: unref(editor)?.isActive({ textAlign: "left" }) ? "primary" : "secondary",
24922
24922
  size: "sm",
@@ -24965,7 +24965,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
24965
24965
  spacing: "28px",
24966
24966
  margin: "4px"
24967
24967
  }),
24968
- createElementVNode("div", _hoisted_5$r, [
24968
+ createElementVNode("div", _hoisted_5$s, [
24969
24969
  createVNode(StrandsUiButton, {
24970
24970
  color: unref(editor)?.isActive("bulletList") ? "primary" : "secondary",
24971
24971
  size: "sm",
@@ -25084,7 +25084,241 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25084
25084
  };
25085
25085
  }
25086
25086
  });
25087
- const UiInputRichText = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-1031412d"]]);
25087
+ const UiInputRichText = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-1031412d"]]);
25088
+ const _hoisted_1$F = { class: "pincode-inputs" };
25089
+ const _hoisted_2$z = {
25090
+ key: 0,
25091
+ class: "pincode-icon pincode-icon-leading"
25092
+ };
25093
+ const _hoisted_3$w = ["value", "disabled", "readonly", "tabindex", "data-index", "onInput", "onKeydown", "onFocus"];
25094
+ const _hoisted_4$v = {
25095
+ key: 1,
25096
+ class: "pincode-divider"
25097
+ };
25098
+ const _hoisted_5$r = {
25099
+ key: 1,
25100
+ class: "pincode-icon pincode-icon-trailing"
25101
+ };
25102
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25103
+ __name: "UiInput.Pincode",
25104
+ props: {
25105
+ modelValue: {},
25106
+ maxLength: { default: 6 },
25107
+ variant: { default: "numeric" },
25108
+ divider: {},
25109
+ disabled: { type: Boolean },
25110
+ readonly: { type: Boolean },
25111
+ error: { type: [Boolean, String] },
25112
+ size: { default: "md" },
25113
+ inputId: {}
25114
+ },
25115
+ emits: ["update:modelValue", "blur", "focus", "complete"],
25116
+ setup(__props, { emit: __emit }) {
25117
+ const props = __props;
25118
+ const emit = __emit;
25119
+ const pincodeRefs = ref([]);
25120
+ const focusedIndex = ref(-1);
25121
+ const values = computed(() => {
25122
+ const val = props.modelValue || "";
25123
+ const arr = val.split("");
25124
+ while (arr.length < props.maxLength) {
25125
+ arr.push("");
25126
+ }
25127
+ return arr.slice(0, props.maxLength);
25128
+ });
25129
+ const dividerCount = computed(() => {
25130
+ if (!props.divider) return 0;
25131
+ if (typeof props.divider === "number") return props.divider;
25132
+ return props.divider.count;
25133
+ });
25134
+ const dividerCharacter = computed(() => {
25135
+ if (!props.divider) return "";
25136
+ if (typeof props.divider === "number") return "-";
25137
+ if (typeof props.divider === "object" && "character" in props.divider) {
25138
+ return props.divider.character || "-";
25139
+ }
25140
+ return "-";
25141
+ });
25142
+ const useCustomDivider = computed(() => {
25143
+ return typeof props.divider === "object" && "component" in props.divider && props.divider.component === "divider";
25144
+ });
25145
+ const dividerProps = computed(() => {
25146
+ if (!useCustomDivider.value) return {};
25147
+ const divider = props.divider;
25148
+ return {
25149
+ orientation: "vertical",
25150
+ variant: "solid",
25151
+ thickness: "1px",
25152
+ margin: "0",
25153
+ spacing: "1.5rem",
25154
+ ...divider.props
25155
+ };
25156
+ });
25157
+ const shouldShowDivider = (index) => {
25158
+ if (!dividerCount.value || index === props.maxLength) return false;
25159
+ return index % dividerCount.value === 0;
25160
+ };
25161
+ const getValidationPattern = () => {
25162
+ switch (props.variant) {
25163
+ case "numeric":
25164
+ return /^[0-9]$/;
25165
+ case "alpha":
25166
+ return /^[a-zA-Z]$/;
25167
+ case "alphanumeric":
25168
+ return /^[a-zA-Z0-9]$/;
25169
+ default:
25170
+ return /^[0-9]$/;
25171
+ }
25172
+ };
25173
+ const handleInput = (event, index) => {
25174
+ const target = event.target;
25175
+ const value = target.value;
25176
+ const char = value.slice(-1);
25177
+ const pattern = getValidationPattern();
25178
+ if (!pattern.test(char) && char !== "") {
25179
+ target.value = values.value[index];
25180
+ return;
25181
+ }
25182
+ const newValues = [...values.value];
25183
+ newValues[index] = char;
25184
+ const newModelValue = newValues.join("");
25185
+ emit("update:modelValue", newModelValue);
25186
+ if (char && index < props.maxLength - 1) {
25187
+ nextTick(() => {
25188
+ const nextInput = pincodeRefs.value[index + 1];
25189
+ if (nextInput) {
25190
+ nextInput.focus();
25191
+ nextInput.select();
25192
+ }
25193
+ });
25194
+ }
25195
+ if (newModelValue.length === props.maxLength) {
25196
+ emit("complete", newModelValue);
25197
+ }
25198
+ };
25199
+ const handleKeydown = (event, index) => {
25200
+ const key = event.key;
25201
+ if (key === "Backspace") {
25202
+ event.preventDefault();
25203
+ const newValues = [...values.value];
25204
+ if (values.value[index]) {
25205
+ newValues[index] = "";
25206
+ emit("update:modelValue", newValues.join(""));
25207
+ } else if (index > 0) {
25208
+ newValues[index - 1] = "";
25209
+ emit("update:modelValue", newValues.join(""));
25210
+ nextTick(() => {
25211
+ const prevInput = pincodeRefs.value[index - 1];
25212
+ if (prevInput) {
25213
+ prevInput.focus();
25214
+ }
25215
+ });
25216
+ }
25217
+ } else if (key === "ArrowLeft" && index > 0) {
25218
+ event.preventDefault();
25219
+ const prevInput = pincodeRefs.value[index - 1];
25220
+ if (prevInput) {
25221
+ prevInput.focus();
25222
+ }
25223
+ } else if (key === "ArrowRight" && index < props.maxLength - 1) {
25224
+ event.preventDefault();
25225
+ const nextInput = pincodeRefs.value[index + 1];
25226
+ if (nextInput) {
25227
+ nextInput.focus();
25228
+ }
25229
+ } else if (key === "Delete") {
25230
+ event.preventDefault();
25231
+ const newValues = [...values.value];
25232
+ newValues[index] = "";
25233
+ emit("update:modelValue", newValues.join(""));
25234
+ }
25235
+ };
25236
+ const handlePaste = (event) => {
25237
+ event.preventDefault();
25238
+ const pastedText = event.clipboardData?.getData("text") || "";
25239
+ const pattern = getValidationPattern();
25240
+ const filteredText = pastedText.split("").filter((char) => pattern.test(char)).slice(0, props.maxLength).join("");
25241
+ if (filteredText) {
25242
+ emit("update:modelValue", filteredText);
25243
+ const nextEmptyIndex = filteredText.length < props.maxLength ? filteredText.length : props.maxLength - 1;
25244
+ nextTick(() => {
25245
+ const targetInput = pincodeRefs.value[nextEmptyIndex];
25246
+ if (targetInput) {
25247
+ targetInput.focus();
25248
+ }
25249
+ });
25250
+ if (filteredText.length === props.maxLength) {
25251
+ emit("complete", filteredText);
25252
+ }
25253
+ }
25254
+ };
25255
+ const handleFocus = (index) => {
25256
+ focusedIndex.value = index;
25257
+ const input = pincodeRefs.value[index];
25258
+ if (input) {
25259
+ input.select();
25260
+ }
25261
+ };
25262
+ const handleBlur = (event) => {
25263
+ focusedIndex.value = -1;
25264
+ emit("blur", event);
25265
+ };
25266
+ watch(() => props.modelValue, (newValue) => {
25267
+ if (!newValue) {
25268
+ nextTick(() => {
25269
+ const firstInput = pincodeRefs.value[0];
25270
+ if (firstInput && !props.disabled && !props.readonly) {
25271
+ firstInput.focus();
25272
+ }
25273
+ });
25274
+ }
25275
+ });
25276
+ return (_ctx, _cache) => {
25277
+ return openBlock(), createElementBlock("div", {
25278
+ class: normalizeClass(["pincode-wrapper", [`pincode-size-${_ctx.size}`, { "pincode-error": _ctx.error }]])
25279
+ }, [
25280
+ createElementVNode("div", _hoisted_1$F, [
25281
+ _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
25282
+ renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25283
+ ])) : createCommentVNode("", true),
25284
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.maxLength, (index) => {
25285
+ return openBlock(), createElementBlock(Fragment$1, { key: index }, [
25286
+ createElementVNode("input", {
25287
+ ref_for: true,
25288
+ ref_key: "pincodeRefs",
25289
+ ref: pincodeRefs,
25290
+ type: "text",
25291
+ class: normalizeClass(["pincode-input", {
25292
+ "pincode-input-filled": values.value[index - 1],
25293
+ "pincode-input-focused": focusedIndex.value === index - 1
25294
+ }]),
25295
+ value: values.value[index - 1],
25296
+ disabled: _ctx.disabled,
25297
+ readonly: _ctx.readonly,
25298
+ tabindex: _ctx.disabled ? -1 : 0,
25299
+ "data-index": index - 1,
25300
+ maxlength: "1",
25301
+ onInput: ($event) => handleInput($event, index - 1),
25302
+ onKeydown: ($event) => handleKeydown($event, index - 1),
25303
+ onFocus: ($event) => handleFocus(index - 1),
25304
+ onBlur: handleBlur,
25305
+ onPaste: handlePaste
25306
+ }, null, 42, _hoisted_3$w),
25307
+ shouldShowDivider(index) && useCustomDivider.value ? (openBlock(), createBlock(UiDivider, mergeProps({
25308
+ key: 0,
25309
+ ref_for: true
25310
+ }, dividerProps.value, { class: "pincode-custom-divider" }), null, 16)) : shouldShowDivider(index) ? (openBlock(), createElementBlock("span", _hoisted_4$v, toDisplayString(dividerCharacter.value), 1)) : createCommentVNode("", true)
25311
+ ], 64);
25312
+ }), 128)),
25313
+ _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_5$r, [
25314
+ renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25315
+ ])) : createCommentVNode("", true)
25316
+ ])
25317
+ ], 2);
25318
+ };
25319
+ }
25320
+ });
25321
+ const UiInputPincode = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-25372cfe"]]);
25088
25322
  const _hoisted_1$E = { class: "input-container" };
25089
25323
  const _hoisted_2$y = ["for"];
25090
25324
  const _hoisted_3$v = {
@@ -25092,11 +25326,11 @@ const _hoisted_3$v = {
25092
25326
  class: "input-required"
25093
25327
  };
25094
25328
  const _hoisted_4$u = {
25095
- key: 9,
25329
+ key: 10,
25096
25330
  class: "input-error-text"
25097
25331
  };
25098
25332
  const _hoisted_5$q = {
25099
- key: 10,
25333
+ key: 11,
25100
25334
  class: "input-help-text"
25101
25335
  };
25102
25336
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
@@ -25135,10 +25369,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25135
25369
  minuteStep: {},
25136
25370
  minHeight: {},
25137
25371
  maxHeight: {},
25372
+ maxLength: {},
25373
+ variant: {},
25374
+ divider: {},
25138
25375
  label: {},
25139
25376
  helpText: {}
25140
25377
  },
25141
- emits: ["update:modelValue", "blur", "focus", "keydown", "file-error"],
25378
+ emits: ["update:modelValue", "blur", "focus", "keydown", "file-error", "complete"],
25142
25379
  setup(__props, { emit: __emit }) {
25143
25380
  const props = __props;
25144
25381
  const emit = __emit;
@@ -25163,6 +25400,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25163
25400
  const handleFileError = (error) => {
25164
25401
  emit("file-error", error);
25165
25402
  };
25403
+ const handlePincodeComplete = (value) => {
25404
+ emit("complete", value);
25405
+ };
25166
25406
  return (_ctx, _cache) => {
25167
25407
  return openBlock(), createElementBlock("div", _hoisted_1$E, [
25168
25408
  props.label ? (openBlock(), createElementBlock("label", {
@@ -25307,7 +25547,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25307
25547
  ]),
25308
25548
  key: "1"
25309
25549
  } : void 0
25310
- ]), 1032, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "disabled", "required", "input-id", "error", "size"])) : _ctx.type === "date" ? (openBlock(), createBlock(_sfc_main$L, {
25550
+ ]), 1032, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "disabled", "required", "input-id", "error", "size"])) : _ctx.type === "date" ? (openBlock(), createBlock(_sfc_main$M, {
25311
25551
  key: 5,
25312
25552
  "model-value": _ctx.modelValue,
25313
25553
  placeholder: _ctx.placeholder,
@@ -25322,7 +25562,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25322
25562
  "onUpdate:modelValue": handleInput,
25323
25563
  onBlur: handleBlur,
25324
25564
  onFocus: handleFocus
25325
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size"])) : _ctx.type === "time" ? (openBlock(), createBlock(_sfc_main$K, {
25565
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size"])) : _ctx.type === "time" ? (openBlock(), createBlock(_sfc_main$L, {
25326
25566
  key: 6,
25327
25567
  "model-value": _ctx.modelValue,
25328
25568
  placeholder: _ctx.placeholder,
@@ -25335,7 +25575,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25335
25575
  "onUpdate:modelValue": handleInput,
25336
25576
  onBlur: handleBlur,
25337
25577
  onFocus: handleFocus
25338
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "input-id", "error", "size"])) : _ctx.type === "datetime" ? (openBlock(), createBlock(_sfc_main$J, {
25578
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "input-id", "error", "size"])) : _ctx.type === "datetime" ? (openBlock(), createBlock(_sfc_main$K, {
25339
25579
  key: 7,
25340
25580
  "model-value": _ctx.modelValue,
25341
25581
  placeholder: _ctx.placeholder,
@@ -25363,13 +25603,43 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25363
25603
  "onUpdate:modelValue": handleInput,
25364
25604
  onBlur: handleBlur,
25365
25605
  onFocus: handleFocus
25366
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "input-id", "error", "min-height", "max-height"])) : createCommentVNode("", true),
25606
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "input-id", "error", "min-height", "max-height"])) : _ctx.type === "pincode" ? (openBlock(), createBlock(UiInputPincode, {
25607
+ key: 9,
25608
+ "model-value": _ctx.modelValue,
25609
+ "max-length": props.maxLength || 6,
25610
+ variant: props.variant || "numeric",
25611
+ divider: props.divider,
25612
+ disabled: _ctx.disabled,
25613
+ readonly: _ctx.readonly,
25614
+ "input-id": inputId.value,
25615
+ error: props.error,
25616
+ size: props.size,
25617
+ "onUpdate:modelValue": handleInput,
25618
+ onBlur: handleBlur,
25619
+ onFocus: handleFocus,
25620
+ onComplete: handlePincodeComplete
25621
+ }, createSlots({ _: 2 }, [
25622
+ _ctx.$slots["leading-icon"] ? {
25623
+ name: "leading-icon",
25624
+ fn: withCtx(() => [
25625
+ renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25626
+ ]),
25627
+ key: "0"
25628
+ } : void 0,
25629
+ _ctx.$slots["trailing-icon"] ? {
25630
+ name: "trailing-icon",
25631
+ fn: withCtx(() => [
25632
+ renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25633
+ ]),
25634
+ key: "1"
25635
+ } : void 0
25636
+ ]), 1032, ["model-value", "max-length", "variant", "divider", "disabled", "readonly", "input-id", "error", "size"])) : createCommentVNode("", true),
25367
25637
  props.error && props.error !== true ? (openBlock(), createElementBlock("p", _hoisted_4$u, toDisplayString(typeof props.error === "string" ? props.error : props.error?.message || String(props.error)), 1)) : props.helpText ? (openBlock(), createElementBlock("p", _hoisted_5$q, toDisplayString(props.helpText), 1)) : createCommentVNode("", true)
25368
25638
  ]);
25369
25639
  };
25370
25640
  }
25371
25641
  });
25372
- const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-10a4eb0c"]]);
25642
+ const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-adf737f4"]]);
25373
25643
  const _hoisted_1$D = ["disabled", "aria-disabled"];
25374
25644
  const _hoisted_2$x = ["href", "target", "rel", "aria-disabled"];
25375
25645
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
@@ -32050,7 +32320,7 @@ function useStrandsMfa() {
32050
32320
  let errorMessage = `Request failed: ${response.status} ${response.statusText}`;
32051
32321
  try {
32052
32322
  const errorData = JSON.parse(errorText);
32053
- errorMessage = errorData.message || errorMessage;
32323
+ errorMessage = errorData.error?.message || errorData.message || errorMessage;
32054
32324
  } catch {
32055
32325
  if (errorText) {
32056
32326
  errorMessage = errorText;
@@ -32497,16 +32767,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
32497
32767
  emailCodeSent.value = false;
32498
32768
  showBackupCodeInput.value = false;
32499
32769
  };
32500
- const onCodeInput = (value) => {
32501
- verificationCode.value = value.replace(/\D/g, "").slice(0, 6);
32502
- verificationError.value = "";
32503
- };
32504
- const onCodePaste = (event) => {
32505
- event.preventDefault();
32506
- const pastedData = event.clipboardData?.getData("text/plain") || "";
32507
- const cleanedData = pastedData.replace(/\D/g, "").slice(0, 6);
32508
- verificationCode.value = cleanedData;
32770
+ const onCodeComplete = (value) => {
32509
32771
  verificationError.value = "";
32772
+ if (value.length === 6) {
32773
+ verify();
32774
+ }
32510
32775
  };
32511
32776
  const onBackupCodeInput = (value) => {
32512
32777
  let cleaned = value.replace(/[^a-zA-Z0-9-]/g, "").toLowerCase();
@@ -32867,33 +33132,20 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
32867
33132
  createVNode(unref(StrandsUiInput), {
32868
33133
  modelValue: verificationCode.value,
32869
33134
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => verificationCode.value = $event),
33135
+ type: "pincode",
32870
33136
  label: "Verification Code",
32871
- placeholder: selectedMethod.value.device_type === "totp" ? "123456" : "123456",
32872
- maxlength: "6",
33137
+ "max-length": 6,
33138
+ variant: "numeric",
32873
33139
  error: verificationError.value,
32874
33140
  disabled: loading2.value,
32875
- onInput: onCodeInput,
32876
- onKeydown: withKeys(verify, ["enter"]),
32877
- onPaste: onCodePaste,
33141
+ onComplete: onCodeComplete,
32878
33142
  autofocus: "",
32879
- name: "totp",
32880
- id: "totp-input",
32881
- autocomplete: "one-time-code",
32882
- inputmode: "numeric",
32883
- "data-lpignore": "false",
32884
- "data-form-type": "other",
32885
- "data-bwignore": "false",
32886
- "data-1p-ignore": "false",
32887
- "data-testid": "totp-input",
32888
- spellcheck: "false",
32889
- "aria-label": "Enter your verification code",
32890
- "aria-describedby": "totp-description",
32891
33143
  role: "textbox",
32892
33144
  tabindex: "0",
32893
33145
  pattern: "[0-9]{6}",
32894
33146
  minlength: "6",
32895
33147
  title: "Enter 6-digit verification code"
32896
- }, null, 8, ["modelValue", "placeholder", "error", "disabled"]),
33148
+ }, null, 8, ["modelValue", "error", "disabled"]),
32897
33149
  selectedMethod.value.device_type === "totp" ? (openBlock(), createElementBlock("div", _hoisted_30$4, [
32898
33150
  _cache[13] || (_cache[13] = createTextVNode(" Open your authenticator app and enter the 6-digit code for ", -1)),
32899
33151
  createElementVNode("span", _hoisted_31$4, '"' + toDisplayString(selectedMethod.value.device_name) + '"', 1)
@@ -32969,7 +33221,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
32969
33221
  };
32970
33222
  }
32971
33223
  });
32972
- const StrandsMfaVerification = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0d8b9530"]]);
33224
+ const StrandsMfaVerification = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-f0750b5a"]]);
32973
33225
  const providersCache = /* @__PURE__ */ new Map();
32974
33226
  const CACHE_DURATION = 5 * 60 * 1e3;
32975
33227
  function useOAuthProviders(options = {}) {
@@ -34994,9 +35246,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
34994
35246
  deviceNameError.value = error instanceof Error ? error.message : "Failed to setup TOTP";
34995
35247
  }
34996
35248
  };
34997
- const onVerificationCodeInput = (value) => {
34998
- verificationCode.value = value.replace(/\D/g, "").slice(0, 6);
35249
+ const onVerificationComplete = (value) => {
34999
35250
  verificationError.value = "";
35251
+ if (value.length === 6) {
35252
+ verifySetup();
35253
+ }
35000
35254
  };
35001
35255
  const verifySetup = async () => {
35002
35256
  if (!totpSetupData.value || !verificationCode.value) {
@@ -35140,12 +35394,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
35140
35394
  createVNode(unref(StrandsUiInput), {
35141
35395
  modelValue: verificationCode.value,
35142
35396
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => verificationCode.value = $event),
35397
+ type: "pincode",
35143
35398
  label: "Verification Code",
35144
- placeholder: "123456",
35145
- maxlength: "6",
35399
+ "max-length": 6,
35400
+ variant: "numeric",
35146
35401
  error: verificationError.value,
35147
35402
  disabled: unref(loading2),
35148
- onInput: onVerificationCodeInput
35403
+ onComplete: onVerificationComplete
35149
35404
  }, null, 8, ["modelValue", "error", "disabled"]),
35150
35405
  createElementVNode("div", _hoisted_13$8, [
35151
35406
  createVNode(unref(CompoundUiButton), {
@@ -35250,7 +35505,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
35250
35505
  };
35251
35506
  }
35252
35507
  });
35253
- const StrandsTotpSetupModal = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-85fffc4c"]]);
35508
+ const StrandsTotpSetupModal = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-a23ed8a3"]]);
35254
35509
  const _hoisted_1$e = {
35255
35510
  key: 0,
35256
35511
  class: "email-mfa-setup-step"
@@ -35310,6 +35565,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35310
35565
  }
35311
35566
  }
35312
35567
  });
35568
+ watch(verificationCode, () => {
35569
+ if (verificationError.value) {
35570
+ verificationError.value = "";
35571
+ }
35572
+ });
35313
35573
  onBeforeUnmount(() => {
35314
35574
  if (cooldownInterval) {
35315
35575
  clearInterval(cooldownInterval);
@@ -35335,9 +35595,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35335
35595
  deviceNameError.value = error instanceof Error ? error.message : "Failed to setup email MFA";
35336
35596
  }
35337
35597
  };
35338
- const onVerificationCodeInput = (value) => {
35339
- verificationCode.value = value.replace(/\D/g, "").slice(0, 6);
35598
+ const onVerificationComplete = (value) => {
35340
35599
  verificationError.value = "";
35600
+ if (value.length === 6) {
35601
+ verifySetup();
35602
+ }
35341
35603
  };
35342
35604
  const verifySetup = async () => {
35343
35605
  if (!emailMfaDeviceId.value || !verificationCode.value) {
@@ -35416,7 +35678,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35416
35678
  }),
35417
35679
  createElementVNode("div", _hoisted_2$c, [
35418
35680
  createVNode(unref(CompoundUiButton), {
35419
- variant: "secondary",
35681
+ color: "secondary",
35420
35682
  onClick: closeModal,
35421
35683
  disabled: unref(loading2)
35422
35684
  }, {
@@ -35426,7 +35688,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35426
35688
  _: 1
35427
35689
  }, 8, ["disabled"]),
35428
35690
  createVNode(unref(CompoundUiButton), {
35429
- variant: "primary",
35430
35691
  onClick: startSetup,
35431
35692
  disabled: !deviceName.value.trim() || unref(loading2),
35432
35693
  loading: unref(loading2)
@@ -35465,16 +35726,17 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35465
35726
  createVNode(unref(StrandsUiInput), {
35466
35727
  modelValue: verificationCode.value,
35467
35728
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => verificationCode.value = $event),
35729
+ type: "pincode",
35468
35730
  label: "Verification Code",
35469
- placeholder: "123456",
35470
- maxlength: "6",
35731
+ "max-length": 6,
35732
+ variant: "numeric",
35471
35733
  error: verificationError.value,
35472
35734
  disabled: unref(loading2),
35473
- onInput: onVerificationCodeInput
35735
+ onComplete: onVerificationComplete
35474
35736
  }, null, 8, ["modelValue", "error", "disabled"]),
35475
35737
  createElementVNode("div", _hoisted_4$b, [
35476
35738
  createVNode(unref(CompoundUiButton), {
35477
- variant: "secondary",
35739
+ color: "secondary",
35478
35740
  size: "sm",
35479
35741
  onClick: resendCode,
35480
35742
  disabled: unref(loading2) || cooldownActive.value
@@ -35487,7 +35749,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35487
35749
  ]),
35488
35750
  createElementVNode("div", _hoisted_5$9, [
35489
35751
  createVNode(unref(CompoundUiButton), {
35490
- variant: "secondary",
35752
+ color: "secondary",
35491
35753
  onClick: _cache[2] || (_cache[2] = ($event) => step.value = 1),
35492
35754
  disabled: unref(loading2)
35493
35755
  }, {
@@ -35497,7 +35759,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35497
35759
  _: 1
35498
35760
  }, 8, ["disabled"]),
35499
35761
  createVNode(unref(CompoundUiButton), {
35500
- variant: "primary",
35501
35762
  onClick: verifySetup,
35502
35763
  disabled: verificationCode.value.length !== 6 || unref(loading2),
35503
35764
  loading: unref(loading2)
@@ -35566,7 +35827,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35566
35827
  };
35567
35828
  }
35568
35829
  });
35569
- const StrandsEmailMfaSetupModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-238346d9"]]);
35830
+ const StrandsEmailMfaSetupModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-34ee7825"]]);
35570
35831
  const _hoisted_1$d = {
35571
35832
  key: 0,
35572
35833
  class: "hardware-key-setup-step"