@juspay/svelte-ui-components 4.52.0 → 4.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { onMount, onDestroy } from 'svelte';
2
+ import { onMount, onDestroy, tick } from 'svelte';
3
3
  import { get } from 'svelte/store';
4
4
  import Button from '../Button/Button.svelte';
5
5
  import Card from '../Card/Card.svelte';
@@ -43,6 +43,7 @@
43
43
  showConfirm = true,
44
44
  showEmptyParameters = true,
45
45
  countdownSeconds = 10,
46
+ expiresAt,
46
47
  autoCancelSeconds = 0,
47
48
  isMicMuted = false,
48
49
  // The resolver this replaced defaulted to null, and the call sites test for
@@ -88,9 +89,14 @@
88
89
  // Seeded from the prop; startCountdown re-seeds it on every (re)start.
89
90
  // svelte-ignore state_referenced_locally
90
91
  let timeRemaining = $state(countdownSeconds);
92
+ // svelte-ignore state_referenced_locally
93
+ let countdownDuration = $state(countdownSeconds);
94
+ let relativeDeadline: number | null = null;
95
+ let countdownDeadline: number | null = null;
91
96
  let countdownInterval: ReturnType<typeof setInterval> | null = null;
92
97
  let autoCancelTimeout: ReturnType<typeof setTimeout> | null = null;
93
98
  let originalMicState: boolean | null = null;
99
+ let initialMicToggle: Promise<void> | null = null;
94
100
 
95
101
  // Expiry from the caller takes precedence, including during a live request.
96
102
  // History mode renders the settled state from props; live mode from local state.
@@ -111,7 +117,7 @@
111
117
  });
112
118
  const isCompleted = $derived(userResponse !== null);
113
119
  const isApproved = $derived(userResponse === 'approved' || userResponse === 'auto-approved');
114
- const elapsedTime = $derived(countdownSeconds - timeRemaining);
120
+ const elapsedTime = $derived(Math.max(0, countdownDuration - timeRemaining));
115
121
  const approvalBlocked = (action: HITLAction): boolean => action !== 'rejected' && confirmDisabled;
116
122
 
117
123
  const completionText = $derived(
@@ -140,6 +146,13 @@
140
146
  };
141
147
 
142
148
  const restoreMicState = async (): Promise<void> => {
149
+ // An elapsed deadline may decide in the same mount that starts auto-mute.
150
+ // Finish that call and flush its controlled prop before restoring it.
151
+ if (initialMicToggle !== null) {
152
+ await initialMicToggle;
153
+ await tick();
154
+ initialMicToggle = null;
155
+ }
143
156
  // Consume restoration before awaiting: a failed decision may be retried
144
157
  // before the caller has updated isMicMuted, but must not toggle twice.
145
158
  const stateToRestore = originalMicState;
@@ -214,19 +227,41 @@
214
227
  return;
215
228
  }
216
229
  countdownActive = true;
217
- timeRemaining = countdownSeconds;
218
- countdownInterval = setInterval(() => {
230
+ const now = Date.now();
231
+ // Relative duration is anchored once; rerenders must not extend it. An
232
+ // explicit absolute expiry remains live while this timer is running.
233
+ relativeDeadline ??= now + countdownSeconds * 1000;
234
+ const updateCountdown = (): void => {
219
235
  // A sibling card's interaction pauses this countdown on its next tick.
220
- if (confirmDisabled || get(pauseAllConfirmationTimers)) {
236
+ if (
237
+ countdownSeconds <= 0 ||
238
+ confirmDisabled ||
239
+ isHistoryMode ||
240
+ isCompleted ||
241
+ get(pauseAllConfirmationTimers)
242
+ ) {
221
243
  stopCountdown();
222
244
  return;
223
245
  }
224
- timeRemaining = timeRemaining - 0.1;
246
+ const currentTime = Date.now();
247
+ const nextDeadline =
248
+ typeof expiresAt === 'number' && Number.isFinite(expiresAt)
249
+ ? expiresAt
250
+ : (relativeDeadline ?? now);
251
+ if (nextDeadline !== countdownDeadline) {
252
+ countdownDeadline = nextDeadline;
253
+ countdownDuration = Math.max(0, (nextDeadline - currentTime) / 1000);
254
+ }
255
+ timeRemaining = Math.max(0, (nextDeadline - currentTime) / 1000);
225
256
  if (timeRemaining <= 0) {
226
257
  stopCountdown();
227
258
  void decide('auto-approved');
228
259
  }
229
- }, 100);
260
+ };
261
+ updateCountdown();
262
+ if (countdownActive) {
263
+ countdownInterval = setInterval(updateCountdown, 100);
264
+ }
230
265
  };
231
266
 
232
267
  // Any interaction pauses this card's own countdown and every sibling's.
@@ -345,9 +380,15 @@
345
380
  if (onmictoggle !== null) {
346
381
  originalMicState = isMicMuted;
347
382
  if (!isMicMuted) {
348
- void Promise.resolve(onmictoggle()).catch(() => {
349
- // Auto-mute is best-effort.
350
- });
383
+ try {
384
+ // Preserve the existing synchronous mount invocation. Only the
385
+ // decision waits for its result and the controlled prop update.
386
+ initialMicToggle = Promise.resolve(onmictoggle()).catch(() => {
387
+ // Auto-mute is best-effort; settlement still follows a failed call.
388
+ });
389
+ } catch {
390
+ initialMicToggle = Promise.resolve();
391
+ }
351
392
  }
352
393
  }
353
394
  pauseAllConfirmationTimers.set(false);
@@ -679,7 +720,7 @@
679
720
  <div class="confirm-button">
680
721
  {#if countdownActive && !confirmDisabled}
681
722
  <div class="progress-anchor">
682
- <Progress value={elapsedTime} max={countdownSeconds} />
723
+ <Progress value={elapsedTime} max={countdownDuration} />
683
724
  </div>
684
725
  {/if}
685
726
  <Button
@@ -144,6 +144,11 @@ export type OptionalHITLProperties = {
144
144
  * button. `0` disables auto-approval.
145
145
  */
146
146
  countdownSeconds?: number;
147
+ /**
148
+ * Absolute server expiry in Unix milliseconds. Updates affect a running
149
+ * countdown; paused or settled cards never restart. Zero keeps manual-only approval.
150
+ */
151
+ expiresAt?: number;
147
152
  /**
148
153
  * Seconds until an untouched card auto-rejects — for confirmations that must
149
154
  * not auto-approve (e.g. OAuth) but should not block a conversation forever.
@@ -77,7 +77,7 @@
77
77
  let placementRequest: SelectPlacement = $derived(
78
78
  placement ?? (dropdownAlign === 'right' ? 'bottom-right' : 'bottom-left')
79
79
  );
80
- let placementPinned: boolean = $derived(placement != null);
80
+ let placementPinned: boolean = $derived(placement != null && placement !== 'auto');
81
81
 
82
82
  /** Corner an `'auto'` measuring pass settled on; null until it has run. */
83
83
  let autoResolved: Exclude<SelectPlacement, 'auto'> | null = $state(null);
@@ -333,8 +333,8 @@
333
333
  dropdown: { width: dropdownWidth, height: dropdownHeight },
334
334
  viewport,
335
335
  align: placementAlign,
336
- /* Unset `placement` keeps the fit-based flip this path always had; a pinned
337
- corner is honoured on both axes instead. */
336
+ /* Unset and explicit 'auto' placements keep the fit-based flip and viewport
337
+ clamp; only a caller-pinned corner overrides the vertical fit. */
338
338
  vertical: placementPinned
339
339
  ? resolvedPlacement === 'top-left' || resolvedPlacement === 'top-right'
340
340
  ? 'top'
@@ -31,6 +31,7 @@
31
31
  // or the no-exit path in hideToast) and however many times hideToast runs
32
32
  // (the close button after the auto-hide timer already fired).
33
33
  let hideNotified = false;
34
+ let hideGeneration = 0;
34
35
 
35
36
  const rootClass = $derived(
36
37
  ['toast', type ?? '', classes ?? ''].filter((cls) => cls.length > 0).join(' ')
@@ -96,19 +97,46 @@
96
97
  }
97
98
 
98
99
  function hideToast() {
100
+ const generation = ++hideGeneration;
99
101
  showToast = false;
100
- // The closed rule's `display: none` only keeps the toast on screen for its
101
- // exit through a discrete `display` transition (`allow-discrete`). An engine
102
- // without one -- Firefox 150, as shipped in Playwright 1.60 -- applies
103
- // `display: none` at once, which cancels the exit before it starts, so no
104
- // `transitionend` is ever dispatched and the consumer's `ontoasthide` cleanup
105
- // would never run.
106
- // If the toast is already not displayed once the closed state has applied,
107
- // there is no exit left to wait for: report the hide now. Where the
108
- // transition does run the toast is still displayed here, and the
109
- // `transitionend` below remains the only path.
110
- void tick().then(() => {
111
- if (!showToast && rootEl !== null && getComputedStyle(rootEl).display === 'none') {
102
+ void tick().then(async () => {
103
+ const element = rootEl;
104
+ if (generation !== hideGeneration || showToast || !element?.isConnected) {
105
+ return;
106
+ }
107
+ const style = getComputedStyle(element);
108
+ if (style.display === 'none') {
109
+ notifyHidden();
110
+ return;
111
+ }
112
+
113
+ // An exit can be cancelled before transitionrun/transitioncancel is dispatched.
114
+ // Its animation promise still settles, including rejection on cancellation.
115
+ // Keep transitionend as the normal path; both paths share the exactly-once guard.
116
+ const opacityExits =
117
+ element
118
+ .getAnimations?.()
119
+ .filter(
120
+ (animation) =>
121
+ 'transitionProperty' in animation && animation.transitionProperty === 'opacity'
122
+ ) ?? [];
123
+ if (opacityExits.length > 0) {
124
+ const completions = await Promise.allSettled(
125
+ opacityExits.map((animation) => animation.finished)
126
+ );
127
+ // A fulfilled promise settles before transitionend is dispatched. Preserve that
128
+ // normal event path so consumers and motion observers receive the complete exit.
129
+ if (
130
+ completions.some((completion) => completion.status === 'rejected') &&
131
+ generation === hideGeneration &&
132
+ !showToast &&
133
+ rootEl === element &&
134
+ element.isConnected
135
+ ) {
136
+ notifyHidden();
137
+ }
138
+ } else if (style.opacity === '0') {
139
+ // A coalesced first frame or consumer-disabled motion has no animation to await.
112
140
  notifyHidden();
113
141
  }
114
142
  });
@@ -144,6 +172,7 @@
144
172
  void duration;
145
173
 
146
174
  untrack(() => {
175
+ hideGeneration++;
147
176
  showToast = true;
148
177
  hideNotified = false;
149
178
  });
@@ -152,6 +181,7 @@
152
181
 
153
182
  return () => {
154
183
  clearTimeout(id);
184
+ hideGeneration++;
155
185
  };
156
186
  });
157
187
  </script>
@@ -108,7 +108,9 @@
108
108
  pointer-events: none;
109
109
  }
110
110
  .chart-label-backdrop {
111
- fill: var(--chart-label-background, light-dark(#fff, #111827));
111
+ /* Keep the default literal: consumer CSS compilers may lower light-dark()
112
+ into private variables that their inherited theme never initializes. */
113
+ fill: var(--chart-label-background, #fff);
112
114
  stroke: none;
113
115
  }
114
116
  </style>
@@ -709,6 +709,9 @@
709
709
  --radio-disabled-background: #1a1a26;
710
710
  --radio-selected-background: #1e1e2e;
711
711
 
712
+ /* Shared opaque label plates for charts. Consumer overrides remain authoritative. */
713
+ --chart-label-background: #111827;
714
+
712
715
  /* SankeyChart */
713
716
  --sankey-col-label-color: #9ca3af;
714
717
  --sankey-label-color: #d1d5db;
package/dist-wc/index.js CHANGED
@@ -21778,7 +21778,7 @@ function Select(e, t) {
21778
21778
  label: e
21779
21779
  } : e);
21780
21780
  }
21781
- let _t = /* @__PURE__ */ user_derived(() => gt(i())), vt = /* @__PURE__ */ state(""), yt = !1, bt = /* @__PURE__ */ state(-1), xt = /* @__PURE__ */ state(null), St = /* @__PURE__ */ state(null), Ct = /* @__PURE__ */ state(null), wt = /* @__PURE__ */ state(null), Tt = /* @__PURE__ */ state(0), Et = /* @__PURE__ */ state(0), Dt = /* @__PURE__ */ state(0), Ot = 4, kt = 8, At = /* @__PURE__ */ user_derived(() => ut() ?? (lt() === "right" ? "bottom-right" : "bottom-left")), jt = /* @__PURE__ */ user_derived(() => ut() != null), Mt = /* @__PURE__ */ state(null), Nt = /* @__PURE__ */ user_derived(() => get(At) === "auto" ? get(Mt) ?? "bottom-left" : get(At)), Pt = /* @__PURE__ */ user_derived(() => get(At) === "auto" && get(Mt) === null), It = /* @__PURE__ */ user_derived(() => get(Nt) === "bottom-right" || get(Nt) === "top-right" ? "right" : "left");
21781
+ let _t = /* @__PURE__ */ user_derived(() => gt(i())), vt = /* @__PURE__ */ state(""), yt = !1, bt = /* @__PURE__ */ state(-1), xt = /* @__PURE__ */ state(null), St = /* @__PURE__ */ state(null), Ct = /* @__PURE__ */ state(null), wt = /* @__PURE__ */ state(null), Tt = /* @__PURE__ */ state(0), Et = /* @__PURE__ */ state(0), Dt = /* @__PURE__ */ state(0), Ot = 4, kt = 8, At = /* @__PURE__ */ user_derived(() => ut() ?? (lt() === "right" ? "bottom-right" : "bottom-left")), jt = /* @__PURE__ */ user_derived(() => ut() != null && ut() !== "auto"), Mt = /* @__PURE__ */ state(null), Nt = /* @__PURE__ */ user_derived(() => get(At) === "auto" ? get(Mt) ?? "bottom-left" : get(At)), Pt = /* @__PURE__ */ user_derived(() => get(At) === "auto" && get(Mt) === null), It = /* @__PURE__ */ user_derived(() => get(Nt) === "bottom-right" || get(Nt) === "top-right" ? "right" : "left");
21782
21782
  function Lt(e) {
21783
21783
  if (get(xt) === null || typeof window > "u") return "bottom-left";
21784
21784
  let t = get(xt).getBoundingClientRect(), n = e.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight, o = t.left + n.width > i - 8, s = t.right - n.width >= 8, c = o && s ? "right" : "left", l = t.bottom + n.height > a - 8, u = t.top - n.height >= 8;
@@ -26351,12 +26351,12 @@ var root$41 = /* @__PURE__ */ from_html("<div class=\"toast-icon-wrapper svelte-
26351
26351
  };
26352
26352
  function Toast(e, t) {
26353
26353
  push(t, !0), append_styles$1(e, $$css$84);
26354
- let n = prop(t, "duration", 7, 2e3), i = prop(t, "leftIcon", 7), a = prop(t, "message", 7, ""), o = prop(t, "subtext", 7), s = prop(t, "rightIcon", 7), c = prop(t, "type", 7), l = prop(t, "direction", 7), u = prop(t, "overlapPage", 7, !0), f = prop(t, "inAnimationOffset", 7), p = prop(t, "inAnimationDuration", 7), h = prop(t, "outAnimationOffset", 7), S = prop(t, "outAnimationDuration", 7), C = prop(t, "testId", 7), k = prop(t, "messageTestId", 7), R = prop(t, "subTextTestId", 7), te = prop(t, "closeIconTestId", 7), ne = prop(t, "ontoasthide", 7), G = prop(t, "bottomContent", 7), re = prop(t, "classes", 7), be = /* @__PURE__ */ state(!0), Me = /* @__PURE__ */ state(null), Re = !1, Ue = /* @__PURE__ */ user_derived(() => [
26354
+ let n = prop(t, "duration", 7, 2e3), i = prop(t, "leftIcon", 7), a = prop(t, "message", 7, ""), o = prop(t, "subtext", 7), s = prop(t, "rightIcon", 7), c = prop(t, "type", 7), l = prop(t, "direction", 7), u = prop(t, "overlapPage", 7, !0), f = prop(t, "inAnimationOffset", 7), p = prop(t, "inAnimationDuration", 7), h = prop(t, "outAnimationOffset", 7), S = prop(t, "outAnimationDuration", 7), C = prop(t, "testId", 7), k = prop(t, "messageTestId", 7), R = prop(t, "subTextTestId", 7), te = prop(t, "closeIconTestId", 7), ne = prop(t, "ontoasthide", 7), G = prop(t, "bottomContent", 7), re = prop(t, "classes", 7), be = /* @__PURE__ */ state(!0), Me = /* @__PURE__ */ state(null), Re = !1, Ue = 0, it = /* @__PURE__ */ user_derived(() => [
26355
26355
  "toast",
26356
26356
  c() ?? "",
26357
26357
  re() ?? ""
26358
- ].filter((e) => e.length > 0).join(" ")), it = /* @__PURE__ */ user_derived(() => l() ?? "top-to-bottom");
26359
- function at(e, t) {
26358
+ ].filter((e) => e.length > 0).join(" ")), at = /* @__PURE__ */ user_derived(() => l() ?? "top-to-bottom");
26359
+ function ot(e, t) {
26360
26360
  switch (e) {
26361
26361
  case "left-to-right": return { x: -t };
26362
26362
  case "right-to-left": return { x: t };
@@ -26364,35 +26364,44 @@ function Toast(e, t) {
26364
26364
  default: return { y: -t };
26365
26365
  }
26366
26366
  }
26367
- let ot = /* @__PURE__ */ user_derived(() => {
26367
+ let ct = /* @__PURE__ */ user_derived(() => {
26368
26368
  let e = f() ?? h();
26369
- return e == null ? {} : at(get(it), e);
26370
- }), ct = (e) => typeof e == "number" ? `${e}px` : null;
26371
- function lt(e) {
26369
+ return e == null ? {} : ot(get(at), e);
26370
+ }), lt = (e) => typeof e == "number" ? `${e}px` : null;
26371
+ function ut(e) {
26372
26372
  return typeof e == "number" ? `${Math.max(e, 50)}ms` : null;
26373
26373
  }
26374
- let ut = /* @__PURE__ */ user_derived(() => lt(p())), dt = /* @__PURE__ */ user_derived(() => lt(S()));
26375
- function ft() {
26374
+ let dt = /* @__PURE__ */ user_derived(() => ut(p())), ft = /* @__PURE__ */ user_derived(() => ut(S()));
26375
+ function pt() {
26376
26376
  Re || (Re = !0, ne()?.());
26377
26377
  }
26378
- function pt() {
26379
- set(be, !1), tick().then(() => {
26380
- !get(be) && get(Me) !== null && getComputedStyle(get(Me)).display === "none" && ft();
26378
+ function mt() {
26379
+ let e = ++Ue;
26380
+ set(be, !1), tick().then(async () => {
26381
+ let t = get(Me);
26382
+ if (e !== Ue || get(be) || !t?.isConnected) return;
26383
+ let n = getComputedStyle(t);
26384
+ if (n.display === "none") {
26385
+ pt();
26386
+ return;
26387
+ }
26388
+ let i = t.getAnimations?.().filter((e) => "transitionProperty" in e && e.transitionProperty === "opacity") ?? [];
26389
+ i.length > 0 ? (await Promise.allSettled(i.map((e) => e.finished))).some((e) => e.status === "rejected") && e === Ue && !get(be) && get(Me) === t && t.isConnected && pt() : n.opacity === "0" && pt();
26381
26390
  });
26382
26391
  }
26383
- function mt(e) {
26384
- e.target === e.currentTarget && e.propertyName === "opacity" && !get(be) && ft();
26392
+ function ht(e) {
26393
+ e.target === e.currentTarget && e.propertyName === "opacity" && !get(be) && pt();
26385
26394
  }
26386
26395
  user_effect(() => {
26387
26396
  a(), n(), untrack(() => {
26388
- set(be, !0), Re = !1;
26397
+ Ue++, set(be, !0), Re = !1;
26389
26398
  });
26390
- let e = setTimeout(pt, n());
26399
+ let e = setTimeout(mt, n());
26391
26400
  return () => {
26392
- clearTimeout(e);
26401
+ clearTimeout(e), Ue++;
26393
26402
  };
26394
26403
  });
26395
- var ht = {
26404
+ var gt = {
26396
26405
  get duration() {
26397
26406
  return n();
26398
26407
  },
@@ -26507,9 +26516,9 @@ function Toast(e, t) {
26507
26516
  set classes(e) {
26508
26517
  re(e), flushSync();
26509
26518
  }
26510
- }, gt = root_3$29();
26511
- let _t, vt;
26512
- var yt = child(gt), bt = (e) => {
26519
+ }, _t = root_3$29();
26520
+ let vt, yt;
26521
+ var bt = child(_t), xt = (e) => {
26513
26522
  var t = root$41();
26514
26523
  Img(child(t), {
26515
26524
  inlineSvg: !0,
@@ -26520,26 +26529,26 @@ function Toast(e, t) {
26520
26529
  fallback: ""
26521
26530
  }), reset(t), append(e, t);
26522
26531
  };
26523
- if_block(yt, (e) => {
26524
- typeof i() == "string" && i().length > 0 && e(bt);
26532
+ if_block(bt, (e) => {
26533
+ typeof i() == "string" && i().length > 0 && e(xt);
26525
26534
  });
26526
- var xt = sibling(yt, 2), St = child(xt), Ct = sibling(St), wt = (e) => {
26535
+ var St = sibling(bt, 2), Ct = child(St), wt = sibling(Ct), Tt = (e) => {
26527
26536
  var t = root_1$39(), n = child(t, !0);
26528
26537
  reset(t), template_effect(() => {
26529
26538
  set_attribute(t, "data-pw", R()), set_attribute(t, "testid", R()), set_text(n, o());
26530
26539
  }), append(e, t);
26531
26540
  };
26532
- if_block(Ct, (e) => {
26533
- typeof o() == "string" && o().length > 0 && e(wt);
26541
+ if_block(wt, (e) => {
26542
+ typeof o() == "string" && o().length > 0 && e(Tt);
26534
26543
  });
26535
- var Tt = sibling(Ct, 2), Et = (e) => {
26544
+ var Et = sibling(wt, 2), Dt = (e) => {
26536
26545
  var t = comment();
26537
26546
  snippet(first_child(t), G), append(e, t);
26538
26547
  };
26539
- if_block(Tt, (e) => {
26540
- typeof G() == "function" && e(Et);
26541
- }), reset(xt);
26542
- var Dt = sibling(xt, 2), Ot = (e) => {
26548
+ if_block(Et, (e) => {
26549
+ typeof G() == "function" && e(Dt);
26550
+ }), reset(St);
26551
+ var Ot = sibling(St, 2), kt = (e) => {
26543
26552
  var t = root_2$31();
26544
26553
  Img(child(t), {
26545
26554
  inlineSvg: !0,
@@ -26550,23 +26559,23 @@ function Toast(e, t) {
26550
26559
  fallback: ""
26551
26560
  }), reset(t), template_effect(() => {
26552
26561
  set_attribute(t, "data-pw", te()), set_attribute(t, "testid", te());
26553
- }), delegated("click", t, pt), delegated("keydown", t, (e) => {
26554
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), pt());
26562
+ }), delegated("click", t, mt), delegated("keydown", t, (e) => {
26563
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), mt());
26555
26564
  }), append(e, t);
26556
26565
  };
26557
- return if_block(Dt, (e) => {
26558
- typeof s() == "string" && s().length > 0 && e(Ot);
26559
- }), reset(gt), bind_this(gt, (e) => set(Me, e), () => get(Me)), template_effect((e) => {
26560
- _t = set_class(gt, 1, clsx(get(Ue)), "svelte-37crwe", _t, {
26566
+ return if_block(Ot, (e) => {
26567
+ typeof s() == "string" && s().length > 0 && e(kt);
26568
+ }), reset(_t), bind_this(_t, (e) => set(Me, e), () => get(Me)), template_effect((e) => {
26569
+ vt = set_class(_t, 1, clsx(get(it)), "svelte-37crwe", vt, {
26561
26570
  "is-visible": get(be),
26562
26571
  "no-page-overlap": !u()
26563
- }), set_attribute(gt, "data-direction", get(it)), set_attribute(gt, "data-pw", C()), set_attribute(gt, "testid", C()), vt = set_style(gt, "", vt, e), set_attribute(xt, "data-pw", k()), set_attribute(xt, "testid", k()), set_text(St, `${a() ?? ""} `);
26572
+ }), set_attribute(_t, "data-direction", get(at)), set_attribute(_t, "data-pw", C()), set_attribute(_t, "testid", C()), yt = set_style(_t, "", yt, e), set_attribute(St, "data-pw", k()), set_attribute(St, "testid", k()), set_text(Ct, `${a() ?? ""} `);
26564
26573
  }, [() => ({
26565
- "--toast-open-duration": get(ut),
26566
- "--toast-close-duration": get(dt),
26567
- "--toast-enter-x": ct(get(ot).x),
26568
- "--toast-enter-y": ct(get(ot).y)
26569
- })]), event("transitionend", gt, mt), append(e, gt), pop(ht);
26574
+ "--toast-open-duration": get(dt),
26575
+ "--toast-close-duration": get(ft),
26576
+ "--toast-enter-x": lt(get(ct).x),
26577
+ "--toast-enter-y": lt(get(ct).y)
26578
+ })]), event("transitionend", _t, ht), append(e, _t), pop(gt);
26570
26579
  }
26571
26580
  delegate(["click", "keydown"]), create_custom_element(Toast, {
26572
26581
  duration: {},
@@ -36790,7 +36799,7 @@ create_custom_element(ChartContainer, {
36790
36799
  //#region src/lib/_chart/LabelPlate.svelte
36791
36800
  var root$31 = /* @__PURE__ */ from_svg("<rect class=\"chart-label-backdrop svelte-5z0yhx\" rx=\"2\" aria-hidden=\"true\"></rect>"), root_1$31 = /* @__PURE__ */ from_svg("<g class=\"chart-label-plate svelte-5z0yhx\"><!><!></g>"), $$css$68 = {
36792
36801
  hash: "svelte-5z0yhx",
36793
- code: ".chart-label-plate.svelte-5z0yhx {pointer-events:none;}.chart-label-backdrop.svelte-5z0yhx {fill:var(--chart-label-background, light-dark(#fff, #111827));stroke:none;}"
36802
+ code: ".chart-label-plate.svelte-5z0yhx {pointer-events:none;}.chart-label-backdrop.svelte-5z0yhx {\n /* Keep the default literal: consumer CSS compilers may lower light-dark()\n into private variables that their inherited theme never initializes. */fill:var(--chart-label-background, #fff);stroke:none;}"
36794
36803
  };
36795
36804
  function LabelPlate(e, t) {
36796
36805
  push(t, !0), append_styles$1(e, $$css$68);
@@ -58960,25 +58969,26 @@ var pauseAllConfirmationTimers = writable(!1), root$4 = /* @__PURE__ */ from_htm
58960
58969
  };
58961
58970
  function HITL(e, t) {
58962
58971
  push(t, !0), append_styles$1(e, $$css$10);
58963
- let n = prop(t, "confirmationId", 7), i = prop(t, "title", 7), a = prop(t, "description", 7), o = prop(t, "sections", 7), s = prop(t, "details", 7), c = prop(t, "functionArguments", 7), l = prop(t, "hiddenKeys", 7), u = prop(t, "onconfirm", 7), f = prop(t, "confirmLabel", 7, "Confirm"), p = prop(t, "confirmDisabled", 7, !1), h = prop(t, "cancelLabel", 7, "Cancel"), S = prop(t, "showCancel", 7, !0), C = prop(t, "showConfirm", 7, !0), k = prop(t, "showEmptyParameters", 7, !0), R = prop(t, "countdownSeconds", 7, 10), te = prop(t, "autoCancelSeconds", 7, 0), ne = prop(t, "isMicMuted", 7, !1), G = prop(t, "onmictoggle", 7, null), re = prop(t, "isHistoryMode", 7, !1), be = prop(t, "initialState", 7, null), Me = prop(t, "approvedIcon", 7), Re = prop(t, "rejectedIcon", 7), Ue = prop(t, "badgeLabel", 7, "ACTION"), it = prop(t, "approvedLabel", 7, "Approved"), at = prop(t, "autoApprovedLabel", 7, "Completed"), ot = prop(t, "rejectedLabel", 7, "Action halted"), ct = prop(t, "expiredLabel", 7, "Action timed out"), lt = prop(t, "testId", 7), ut = prop(t, "confirmTestId", 7), dt = prop(t, "cancelTestId", 7), ft = prop(t, "completionTestId", 7), pt = prop(t, "completionTextTestId", 7), mt = prop(t, "actions", 7), ht = prop(t, "questions", 7), gt = prop(t, "answerOnSelect", 7, !1), _t = prop(t, "questionsSettleAs", 7, "approved"), vt = prop(t, "sendAnswersLabel", 7, "Send answers"), yt = prop(t, "optionClasses", 7), bt = prop(t, "selectedOptionClasses", 7), xt = prop(t, "children", 7), St = prop(t, "classes", 7), Ct = [
58972
+ let n = prop(t, "confirmationId", 7), i = prop(t, "title", 7), a = prop(t, "description", 7), o = prop(t, "sections", 7), s = prop(t, "details", 7), c = prop(t, "functionArguments", 7), l = prop(t, "hiddenKeys", 7), u = prop(t, "onconfirm", 7), f = prop(t, "confirmLabel", 7, "Confirm"), p = prop(t, "confirmDisabled", 7, !1), h = prop(t, "cancelLabel", 7, "Cancel"), S = prop(t, "showCancel", 7, !0), C = prop(t, "showConfirm", 7, !0), k = prop(t, "showEmptyParameters", 7, !0), R = prop(t, "countdownSeconds", 7, 10), te = prop(t, "expiresAt", 7), ne = prop(t, "autoCancelSeconds", 7, 0), G = prop(t, "isMicMuted", 7, !1), re = prop(t, "onmictoggle", 7, null), be = prop(t, "isHistoryMode", 7, !1), Me = prop(t, "initialState", 7, null), Re = prop(t, "approvedIcon", 7), Ue = prop(t, "rejectedIcon", 7), it = prop(t, "badgeLabel", 7, "ACTION"), at = prop(t, "approvedLabel", 7, "Approved"), ot = prop(t, "autoApprovedLabel", 7, "Completed"), ct = prop(t, "rejectedLabel", 7, "Action halted"), lt = prop(t, "expiredLabel", 7, "Action timed out"), ut = prop(t, "testId", 7), dt = prop(t, "confirmTestId", 7), ft = prop(t, "cancelTestId", 7), pt = prop(t, "completionTestId", 7), mt = prop(t, "completionTextTestId", 7), ht = prop(t, "actions", 7), gt = prop(t, "questions", 7), _t = prop(t, "answerOnSelect", 7, !1), vt = prop(t, "questionsSettleAs", 7, "approved"), yt = prop(t, "sendAnswersLabel", 7, "Send answers"), bt = prop(t, "optionClasses", 7), xt = prop(t, "selectedOptionClasses", 7), St = prop(t, "children", 7), Ct = prop(t, "classes", 7), wt = [
58964
58973
  "action",
58965
58974
  "userhasconfirmed",
58966
58975
  "confirmed",
58967
58976
  "userid",
58968
58977
  "sessionid",
58969
58978
  "timestamp"
58970
- ], wt = /* @__PURE__ */ state(!1), Tt = /* @__PURE__ */ state(null), Et = /* @__PURE__ */ state(!1), Dt = /* @__PURE__ */ state(proxy(R())), Ot = null, kt = null, At = null, jt = /* @__PURE__ */ user_derived(() => be()?.status === "EXPIRED" ? "expired" : re() ? be() === null ? "expired" : be().approved === !0 ? "approved" : "rejected" : get(Tt)), Mt = /* @__PURE__ */ user_derived(() => get(jt) !== null), Nt = /* @__PURE__ */ user_derived(() => get(jt) === "approved" || get(jt) === "auto-approved"), Pt = /* @__PURE__ */ user_derived(() => R() - get(Dt)), It = (e) => e !== "rejected" && p(), Lt = /* @__PURE__ */ user_derived(() => get(jt) === "auto-approved" ? at() : get(jt) === "approved" ? it() : get(jt) === "expired" ? ct() : ot()), Rt = () => {
58971
- Ot !== null && (clearInterval(Ot), Ot = null), set(Et, !1);
58972
- }, zt = () => {
58973
- kt !== null && (clearTimeout(kt), kt = null);
58974
- }, Bt = async () => {
58975
- let e = At;
58976
- if (At = null, G() !== null && e !== null && ne() !== e) try {
58977
- await G()();
58979
+ ], Tt = /* @__PURE__ */ state(!1), Et = /* @__PURE__ */ state(null), Dt = /* @__PURE__ */ state(!1), Ot = /* @__PURE__ */ state(proxy(R())), kt = /* @__PURE__ */ state(proxy(R())), At = null, jt = null, Mt = null, Nt = null, Pt = null, It = null, Lt = /* @__PURE__ */ user_derived(() => Me()?.status === "EXPIRED" ? "expired" : be() ? Me() === null ? "expired" : Me().approved === !0 ? "approved" : "rejected" : get(Et)), Rt = /* @__PURE__ */ user_derived(() => get(Lt) !== null), zt = /* @__PURE__ */ user_derived(() => get(Lt) === "approved" || get(Lt) === "auto-approved"), Bt = /* @__PURE__ */ user_derived(() => Math.max(0, get(kt) - get(Ot))), Ht = (e) => e !== "rejected" && p(), Gt = /* @__PURE__ */ user_derived(() => get(Lt) === "auto-approved" ? ot() : get(Lt) === "approved" ? at() : get(Lt) === "expired" ? lt() : ct()), qt = () => {
58980
+ Mt !== null && (clearInterval(Mt), Mt = null), set(Dt, !1);
58981
+ }, Zt = () => {
58982
+ Nt !== null && (clearTimeout(Nt), Nt = null);
58983
+ }, Qt = async () => {
58984
+ It !== null && (await It, await tick(), It = null);
58985
+ let e = Pt;
58986
+ if (Pt = null, re() !== null && e !== null && G() !== e) try {
58987
+ await re()();
58978
58988
  } catch {}
58979
- }, Ht = !1, Gt = async (e, t = {}) => {
58980
- if (get(Mt) || It(e)) {
58981
- It(e) && (Ht = !1);
58989
+ }, $t = !1, en = async (e, t = {}) => {
58990
+ if (get(Rt) || Ht(e)) {
58991
+ Ht(e) && ($t = !1);
58982
58992
  return;
58983
58993
  }
58984
58994
  try {
@@ -58989,80 +58999,93 @@ function HITL(e, t) {
58989
58999
  ...typeof t.value == "string" ? { value: t.value } : {},
58990
59000
  ...typeof t.message == "string" ? { message: t.message } : {},
58991
59001
  ...Array.isArray(t.answers) ? { answers: t.answers } : {}
58992
- }), !get(Mt) && !It(e) ? set(Tt, e, !0) : It(e) && (Ht = !1);
59002
+ }), !get(Rt) && !Ht(e) ? set(Et, e, !0) : Ht(e) && ($t = !1);
58993
59003
  } catch {
58994
- Ht = !1;
59004
+ $t = !1;
58995
59005
  }
58996
- }, qt = async (e, t = {}) => {
58997
- if (!(Ht || get(Mt) || It(e))) {
58998
- Ht = !0, set(wt, !0);
59006
+ }, tn = async (e, t = {}) => {
59007
+ if (!($t || get(Rt) || Ht(e))) {
59008
+ $t = !0, set(Tt, !0);
58999
59009
  try {
59000
- if (await Bt(), It(e)) {
59001
- Ht = !1;
59010
+ if (await Qt(), Ht(e)) {
59011
+ $t = !1;
59002
59012
  return;
59003
59013
  }
59004
- await Gt(e, t);
59014
+ await en(e, t);
59005
59015
  } finally {
59006
- set(wt, !1);
59016
+ set(Tt, !1);
59007
59017
  }
59008
59018
  }
59009
- }, Zt = () => {
59010
- p() || (set(Et, !0), set(Dt, R()), Ot = setInterval(() => {
59011
- if (p() || get$1(pauseAllConfirmationTimers)) {
59012
- Rt();
59019
+ }, nn = () => {
59020
+ if (p()) return;
59021
+ set(Dt, !0);
59022
+ let e = Date.now();
59023
+ At ??= e + R() * 1e3;
59024
+ let t = () => {
59025
+ if (R() <= 0 || p() || be() || get(Rt) || get$1(pauseAllConfirmationTimers)) {
59026
+ qt();
59013
59027
  return;
59014
59028
  }
59015
- set(Dt, get(Dt) - .1), get(Dt) <= 0 && (Rt(), qt("auto-approved"));
59016
- }, 100));
59017
- }, Qt = () => {
59018
- pauseAllConfirmationTimers.set(!0), Rt(), zt();
59019
- }, $t = async (e, t = {}) => {
59020
- It(e) || (Qt(), await qt(e, t));
59021
- }, en = /* @__PURE__ */ state(null), tn = /* @__PURE__ */ state(""), nn = /* @__PURE__ */ user_derived(() => get(tn).trim().length > 0 && !get(wt)), rn = (e) => {
59022
- if (!(Ht || get(wt) || get(Mt))) {
59029
+ let t = Date.now(), n = typeof te() == "number" && Number.isFinite(te()) ? te() : At ?? e;
59030
+ n !== jt && (jt = n, set(kt, Math.max(0, (n - t) / 1e3), !0)), set(Ot, Math.max(0, (n - t) / 1e3), !0), get(Ot) <= 0 && (qt(), tn("auto-approved"));
59031
+ };
59032
+ t(), get(Dt) && (Mt = setInterval(t, 100));
59033
+ }, rn = () => {
59034
+ pauseAllConfirmationTimers.set(!0), qt(), Zt();
59035
+ }, an = async (e, t = {}) => {
59036
+ Ht(e) || (rn(), await tn(e, t));
59037
+ }, on = /* @__PURE__ */ state(null), sn = /* @__PURE__ */ state(""), cn = /* @__PURE__ */ user_derived(() => get(sn).trim().length > 0 && !get(Tt)), ln = (e) => {
59038
+ if (!($t || get(Tt) || get(Rt))) {
59023
59039
  if (e.kind === "decision") {
59024
- $t(e.settleAs, { value: e.value });
59040
+ an(e.settleAs, { value: e.value });
59025
59041
  return;
59026
59042
  }
59027
- if (Qt(), e.kind === "ask-for-text") {
59028
- set(tn, ""), set(en, e, !0);
59043
+ if (rn(), e.kind === "ask-for-text") {
59044
+ set(sn, ""), set(on, e, !0);
59029
59045
  return;
59030
59046
  }
59031
59047
  e.onSelect();
59032
59048
  }
59033
- }, an = () => {
59034
- let e = get(tn).trim();
59035
- get(en) === null || e.length === 0 || qt(get(en).settleAs, {
59036
- value: get(en).value,
59049
+ }, un = () => {
59050
+ let e = get(sn).trim();
59051
+ get(on) === null || e.length === 0 || tn(get(on).settleAs, {
59052
+ value: get(on).value,
59037
59053
  message: e
59038
59054
  });
59039
- }, on = () => {
59040
- set(en, null), set(tn, "");
59041
- }, sn = /* @__PURE__ */ state(proxy([])), cn = /* @__PURE__ */ user_derived(() => ht() ?? []), ln = (e) => gt() && e.multiSelect !== !0, un = /* @__PURE__ */ user_derived(() => get(cn).length > 0 && get(cn).some((e) => !ln(e))), dn = /* @__PURE__ */ user_derived(() => !get(wt) && get(cn).every((e, t) => ln(e) || (get(sn)[t] ?? []).length > 0)), fn = (e, t) => ({
59055
+ }, dn = () => {
59056
+ set(on, null), set(sn, "");
59057
+ }, fn = /* @__PURE__ */ state(proxy([])), pn = /* @__PURE__ */ user_derived(() => gt() ?? []), mn = (e) => _t() && e.multiSelect !== !0, hn = /* @__PURE__ */ user_derived(() => get(pn).length > 0 && get(pn).some((e) => !mn(e))), gn = /* @__PURE__ */ user_derived(() => !get(Tt) && get(pn).every((e, t) => mn(e) || (get(fn)[t] ?? []).length > 0)), _n = (e, t) => ({
59042
59058
  ...typeof e.header == "string" ? { header: e.header } : {},
59043
59059
  question: e.question,
59044
59060
  picks: t
59045
- }), pn = (e, t) => {
59046
- let n = get(cn).at(e);
59047
- if (Ht || get(wt) || get(Mt) || typeof n != "object") return;
59048
- if (ln(n)) {
59049
- $t(_t(), { answers: [fn(n, [t])] });
59061
+ }), vn = (e, t) => {
59062
+ let n = get(pn).at(e);
59063
+ if ($t || get(Tt) || get(Rt) || typeof n != "object") return;
59064
+ if (mn(n)) {
59065
+ an(vt(), { answers: [_n(n, [t])] });
59050
59066
  return;
59051
59067
  }
59052
- Qt();
59053
- let i = get(sn)[e] ?? [], a = i.includes(t), o = n.multiSelect === !0 ? a ? i.filter((e) => e !== t) : [...i, t] : a ? [] : [t];
59054
- set(sn, get(cn).map((t, n) => n === e ? o : get(sn)[n] ?? []), !0);
59055
- }, mn = () => {
59056
- get(dn) && $t(_t(), { answers: get(cn).map((e, t) => fn(e, get(sn)[t] ?? [])) });
59068
+ rn();
59069
+ let i = get(fn)[e] ?? [], a = i.includes(t), o = n.multiSelect === !0 ? a ? i.filter((e) => e !== t) : [...i, t] : a ? [] : [t];
59070
+ set(fn, get(pn).map((t, n) => n === e ? o : get(fn)[n] ?? []), !0);
59071
+ }, yn = () => {
59072
+ get(gn) && an(vt(), { answers: get(pn).map((e, t) => _n(e, get(fn)[t] ?? [])) });
59057
59073
  };
59058
59074
  onMount(() => {
59059
- re() || (G() !== null && (At = ne(), ne() || Promise.resolve(G()()).catch(() => {})), pauseAllConfirmationTimers.set(!1), R() > 0 ? p() || Zt() : te() > 0 && (kt = setTimeout(() => {
59060
- qt("rejected");
59061
- }, te() * 1e3)));
59075
+ if (!be()) {
59076
+ if (re() !== null && (Pt = G(), !G())) try {
59077
+ It = Promise.resolve(re()()).catch(() => {});
59078
+ } catch {
59079
+ It = Promise.resolve();
59080
+ }
59081
+ pauseAllConfirmationTimers.set(!1), R() > 0 ? p() || nn() : ne() > 0 && (Nt = setTimeout(() => {
59082
+ tn("rejected");
59083
+ }, ne() * 1e3));
59084
+ }
59062
59085
  }), onDestroy(() => {
59063
- Rt(), zt();
59086
+ qt(), Zt();
59064
59087
  });
59065
- let hn = (e) => e.replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()), gn = (e, t) => {
59088
+ let bn = (e) => e.replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()), xn = (e, t) => {
59066
59089
  let n = " ".repeat(t);
59067
59090
  if (e === null) return "";
59068
59091
  if (typeof e == "string") {
@@ -59071,40 +59094,40 @@ function HITL(e, t) {
59071
59094
  }
59072
59095
  if (typeof e == "number") return e.toString();
59073
59096
  if (typeof e == "boolean") return e ? "Yes" : "No";
59074
- if (Array.isArray(e)) return e.map((e) => typeof e == "object" && e ? gn(e, t + 1) : `${n}• ${gn(e, 0)}`).filter((e) => e).join("\n");
59097
+ if (Array.isArray(e)) return e.map((e) => typeof e == "object" && e ? xn(e, t + 1) : `${n}• ${xn(e, 0)}`).filter((e) => e).join("\n");
59075
59098
  if (typeof e == "object") {
59076
59099
  let i = Object.entries(e);
59077
59100
  return i.length === 0 ? "{}" : i.map(([e, i]) => {
59078
- let a = hn(String(e));
59079
- if (typeof i == "object" && i && !Array.isArray(i)) return `${n}${a}:\n${gn(i, t + 1)}`;
59080
- let o = gn(i, t + 1);
59101
+ let a = bn(String(e));
59102
+ if (typeof i == "object" && i && !Array.isArray(i)) return `${n}${a}:\n${xn(i, t + 1)}`;
59103
+ let o = xn(i, t + 1);
59081
59104
  return o ? `${n}${a}: ${o}` : "";
59082
59105
  }).filter((e) => e).join("\n");
59083
59106
  }
59084
59107
  return JSON.stringify(e);
59085
- }, _n = (e) => {
59086
- let t = (l() ?? Ct).map((e) => e.toLowerCase()), n = [];
59108
+ }, Sn = (e) => {
59109
+ let t = (l() ?? wt).map((e) => e.toLowerCase()), n = [];
59087
59110
  for (let [i, a] of Object.entries(e)) {
59088
59111
  if (t.includes(i.toLowerCase()) || a === null) continue;
59089
- let e = i.replace(/([A-Z])/g, " $1").trim().replace(/\btype\b/gi, "").trim(), o = typeof a == "string" && a.trim() === "*" ? `All ${e}s` : gn(a, 0);
59112
+ let e = i.replace(/([A-Z])/g, " $1").trim().replace(/\btype\b/gi, "").trim(), o = typeof a == "string" && a.trim() === "*" ? `All ${e}s` : xn(a, 0);
59090
59113
  o.trim() && n.push({
59091
59114
  label: i.replace(/([A-Z])/g, " $1").trim(),
59092
59115
  value: o
59093
59116
  });
59094
59117
  }
59095
59118
  return n;
59096
- }, vn = /* @__PURE__ */ user_derived(() => get(cn).length > 0 || !k() ? [] : [{
59119
+ }, Cn = /* @__PURE__ */ user_derived(() => get(pn).length > 0 || !k() ? [] : [{
59097
59120
  label: "PARAMETERS",
59098
59121
  value: "No parameters"
59099
- }]), yn = /* @__PURE__ */ user_derived(() => {
59122
+ }]), wn = /* @__PURE__ */ user_derived(() => {
59100
59123
  if (o() && o().length > 0) return o();
59101
59124
  if (c() && Object.keys(c()).length > 0) {
59102
- let e = _n(c());
59103
- return e.length > 0 ? e : get(vn);
59125
+ let e = Sn(c());
59126
+ return e.length > 0 ? e : get(Cn);
59104
59127
  }
59105
- return get(vn);
59128
+ return get(Cn);
59106
59129
  });
59107
- var bn = {
59130
+ var Tn = {
59108
59131
  get confirmationId() {
59109
59132
  return n();
59110
59133
  },
@@ -59195,164 +59218,170 @@ function HITL(e, t) {
59195
59218
  set countdownSeconds(e = 10) {
59196
59219
  R(e), flushSync();
59197
59220
  },
59198
- get autoCancelSeconds() {
59221
+ get expiresAt() {
59199
59222
  return te();
59200
59223
  },
59201
- set autoCancelSeconds(e = 0) {
59224
+ set expiresAt(e) {
59202
59225
  te(e), flushSync();
59203
59226
  },
59204
- get isMicMuted() {
59227
+ get autoCancelSeconds() {
59205
59228
  return ne();
59206
59229
  },
59207
- set isMicMuted(e = !1) {
59230
+ set autoCancelSeconds(e = 0) {
59208
59231
  ne(e), flushSync();
59209
59232
  },
59210
- get onmictoggle() {
59233
+ get isMicMuted() {
59211
59234
  return G();
59212
59235
  },
59213
- set onmictoggle(e = null) {
59236
+ set isMicMuted(e = !1) {
59214
59237
  G(e), flushSync();
59215
59238
  },
59216
- get isHistoryMode() {
59239
+ get onmictoggle() {
59217
59240
  return re();
59218
59241
  },
59219
- set isHistoryMode(e = !1) {
59242
+ set onmictoggle(e = null) {
59220
59243
  re(e), flushSync();
59221
59244
  },
59222
- get initialState() {
59245
+ get isHistoryMode() {
59223
59246
  return be();
59224
59247
  },
59225
- set initialState(e = null) {
59248
+ set isHistoryMode(e = !1) {
59226
59249
  be(e), flushSync();
59227
59250
  },
59228
- get approvedIcon() {
59251
+ get initialState() {
59229
59252
  return Me();
59230
59253
  },
59231
- set approvedIcon(e) {
59254
+ set initialState(e = null) {
59232
59255
  Me(e), flushSync();
59233
59256
  },
59234
- get rejectedIcon() {
59257
+ get approvedIcon() {
59235
59258
  return Re();
59236
59259
  },
59237
- set rejectedIcon(e) {
59260
+ set approvedIcon(e) {
59238
59261
  Re(e), flushSync();
59239
59262
  },
59240
- get badgeLabel() {
59263
+ get rejectedIcon() {
59241
59264
  return Ue();
59242
59265
  },
59243
- set badgeLabel(e = "ACTION") {
59266
+ set rejectedIcon(e) {
59244
59267
  Ue(e), flushSync();
59245
59268
  },
59246
- get approvedLabel() {
59269
+ get badgeLabel() {
59247
59270
  return it();
59248
59271
  },
59249
- set approvedLabel(e = "Approved") {
59272
+ set badgeLabel(e = "ACTION") {
59250
59273
  it(e), flushSync();
59251
59274
  },
59252
- get autoApprovedLabel() {
59275
+ get approvedLabel() {
59253
59276
  return at();
59254
59277
  },
59255
- set autoApprovedLabel(e = "Completed") {
59278
+ set approvedLabel(e = "Approved") {
59256
59279
  at(e), flushSync();
59257
59280
  },
59258
- get rejectedLabel() {
59281
+ get autoApprovedLabel() {
59259
59282
  return ot();
59260
59283
  },
59261
- set rejectedLabel(e = "Action halted") {
59284
+ set autoApprovedLabel(e = "Completed") {
59262
59285
  ot(e), flushSync();
59263
59286
  },
59264
- get expiredLabel() {
59287
+ get rejectedLabel() {
59265
59288
  return ct();
59266
59289
  },
59267
- set expiredLabel(e = "Action timed out") {
59290
+ set rejectedLabel(e = "Action halted") {
59268
59291
  ct(e), flushSync();
59269
59292
  },
59270
- get testId() {
59293
+ get expiredLabel() {
59271
59294
  return lt();
59272
59295
  },
59273
- set testId(e) {
59296
+ set expiredLabel(e = "Action timed out") {
59274
59297
  lt(e), flushSync();
59275
59298
  },
59276
- get confirmTestId() {
59299
+ get testId() {
59277
59300
  return ut();
59278
59301
  },
59279
- set confirmTestId(e) {
59302
+ set testId(e) {
59280
59303
  ut(e), flushSync();
59281
59304
  },
59282
- get cancelTestId() {
59305
+ get confirmTestId() {
59283
59306
  return dt();
59284
59307
  },
59285
- set cancelTestId(e) {
59308
+ set confirmTestId(e) {
59286
59309
  dt(e), flushSync();
59287
59310
  },
59288
- get completionTestId() {
59311
+ get cancelTestId() {
59289
59312
  return ft();
59290
59313
  },
59291
- set completionTestId(e) {
59314
+ set cancelTestId(e) {
59292
59315
  ft(e), flushSync();
59293
59316
  },
59294
- get completionTextTestId() {
59317
+ get completionTestId() {
59295
59318
  return pt();
59296
59319
  },
59297
- set completionTextTestId(e) {
59320
+ set completionTestId(e) {
59298
59321
  pt(e), flushSync();
59299
59322
  },
59300
- get actions() {
59323
+ get completionTextTestId() {
59301
59324
  return mt();
59302
59325
  },
59303
- set actions(e) {
59326
+ set completionTextTestId(e) {
59304
59327
  mt(e), flushSync();
59305
59328
  },
59306
- get questions() {
59329
+ get actions() {
59307
59330
  return ht();
59308
59331
  },
59309
- set questions(e) {
59332
+ set actions(e) {
59310
59333
  ht(e), flushSync();
59311
59334
  },
59312
- get answerOnSelect() {
59335
+ get questions() {
59313
59336
  return gt();
59314
59337
  },
59315
- set answerOnSelect(e = !1) {
59338
+ set questions(e) {
59316
59339
  gt(e), flushSync();
59317
59340
  },
59318
- get questionsSettleAs() {
59341
+ get answerOnSelect() {
59319
59342
  return _t();
59320
59343
  },
59321
- set questionsSettleAs(e = "approved") {
59344
+ set answerOnSelect(e = !1) {
59322
59345
  _t(e), flushSync();
59323
59346
  },
59324
- get sendAnswersLabel() {
59347
+ get questionsSettleAs() {
59325
59348
  return vt();
59326
59349
  },
59327
- set sendAnswersLabel(e = "Send answers") {
59350
+ set questionsSettleAs(e = "approved") {
59328
59351
  vt(e), flushSync();
59329
59352
  },
59330
- get optionClasses() {
59353
+ get sendAnswersLabel() {
59331
59354
  return yt();
59332
59355
  },
59333
- set optionClasses(e) {
59356
+ set sendAnswersLabel(e = "Send answers") {
59334
59357
  yt(e), flushSync();
59335
59358
  },
59336
- get selectedOptionClasses() {
59359
+ get optionClasses() {
59337
59360
  return bt();
59338
59361
  },
59339
- set selectedOptionClasses(e) {
59362
+ set optionClasses(e) {
59340
59363
  bt(e), flushSync();
59341
59364
  },
59342
- get children() {
59365
+ get selectedOptionClasses() {
59343
59366
  return xt();
59344
59367
  },
59345
- set children(e) {
59368
+ set selectedOptionClasses(e) {
59346
59369
  xt(e), flushSync();
59347
59370
  },
59348
- get classes() {
59371
+ get children() {
59349
59372
  return St();
59350
59373
  },
59351
- set classes(e) {
59374
+ set children(e) {
59352
59375
  St(e), flushSync();
59376
+ },
59377
+ get classes() {
59378
+ return Ct();
59379
+ },
59380
+ set classes(e) {
59381
+ Ct(e), flushSync();
59353
59382
  }
59354
- }, xn = root_19();
59355
- return Card(child(xn), {
59383
+ }, En = root_19();
59384
+ return Card(child(En), {
59356
59385
  cssVars: {
59357
59386
  "--card-background": "var(--hitl-background, #ffffff)",
59358
59387
  "--card-border": "var(--hitl-border, 1px solid #e4e4e7)",
@@ -59366,21 +59395,21 @@ function HITL(e, t) {
59366
59395
  reset(c);
59367
59396
  var u = sibling(c, 2), k = child(u, !0);
59368
59397
  reset(u), reset(o);
59369
- var te = sibling(o, 4), ne = (e) => {
59398
+ var R = sibling(o, 4), te = (e) => {
59370
59399
  var t = root$4(), n = child(t, !0);
59371
59400
  reset(t), template_effect(() => {
59372
- set_attribute(t, "data-pw", lt() && `${lt()}-description`), set_text(n, a());
59401
+ set_attribute(t, "data-pw", ut() && `${ut()}-description`), set_text(n, a());
59373
59402
  }), append(e, t);
59374
59403
  };
59375
- if_block(te, (e) => {
59376
- typeof a() == "string" && a().length > 0 && e(ne);
59404
+ if_block(R, (e) => {
59405
+ typeof a() == "string" && a().length > 0 && e(te);
59377
59406
  });
59378
- var G = sibling(te, 2), re = child(G), be = (e) => {
59407
+ var ne = sibling(R, 2), G = child(ne), re = (e) => {
59379
59408
  var t = root_1$3();
59380
59409
  snippet(child(t), s), reset(t), append(e, t);
59381
- }, it = (e) => {
59410
+ }, be = (e) => {
59382
59411
  var t = comment();
59383
- each(first_child(t), 17, () => get(yn), index, (e, t) => {
59412
+ each(first_child(t), 17, () => get(wn), index, (e, t) => {
59384
59413
  var n = root_2$1(), i = child(n), a = child(i, !0);
59385
59414
  reset(i);
59386
59415
  var o = sibling(i, 2), s = child(o, !0);
@@ -59389,48 +59418,48 @@ function HITL(e, t) {
59389
59418
  }), append(e, n);
59390
59419
  }), append(e, t);
59391
59420
  };
59392
- if_block(re, (e) => {
59393
- typeof s() == "function" ? e(be) : e(it, -1);
59421
+ if_block(G, (e) => {
59422
+ typeof s() == "function" ? e(re) : e(be, -1);
59394
59423
  });
59395
- var at = sibling(re, 2), ot = (e) => {
59424
+ var Me = sibling(G, 2), at = (e) => {
59396
59425
  var t = root_5(), n = child(t);
59397
59426
  let i;
59398
59427
  var a = child(n), o = (e) => {
59399
59428
  var t = comment(), n = first_child(t), i = (e) => {
59400
59429
  var t = comment();
59401
- snippet(first_child(t), Me), append(e, t);
59430
+ snippet(first_child(t), Re), append(e, t);
59402
59431
  }, a = (e) => {
59403
59432
  append(e, root_3$1());
59404
59433
  };
59405
59434
  if_block(n, (e) => {
59406
- Me() ? e(i) : e(a, -1);
59435
+ Re() ? e(i) : e(a, -1);
59407
59436
  }), append(e, t);
59408
59437
  }, s = (e) => {
59409
59438
  var t = comment();
59410
- snippet(first_child(t), Re), append(e, t);
59439
+ snippet(first_child(t), Ue), append(e, t);
59411
59440
  }, c = (e) => {
59412
59441
  append(e, root_4$1());
59413
59442
  };
59414
59443
  if_block(a, (e) => {
59415
- get(Nt) ? e(o) : Re() ? e(s, 1) : e(c, -1);
59444
+ get(zt) ? e(o) : Ue() ? e(s, 1) : e(c, -1);
59416
59445
  }), reset(n);
59417
59446
  var l = sibling(n, 2);
59418
59447
  let u;
59419
59448
  var f = child(l, !0);
59420
59449
  reset(l), reset(t), template_effect(() => {
59421
- set_attribute(t, "data-pw", ft() ?? (lt() && `${lt()}-completion`) ?? null), i = set_class(n, 1, "completion-icon svelte-13vzr9e", null, i, { halted: !get(Nt) }), u = set_class(l, 1, "completion-text svelte-13vzr9e", null, u, { halted: !get(Nt) }), set_attribute(l, "data-pw", pt() ?? (lt() && `${lt()}-completion-text`) ?? null), set_text(f, get(Lt));
59450
+ set_attribute(t, "data-pw", pt() ?? (ut() && `${ut()}-completion`) ?? null), i = set_class(n, 1, "completion-icon svelte-13vzr9e", null, i, { halted: !get(zt) }), u = set_class(l, 1, "completion-text svelte-13vzr9e", null, u, { halted: !get(zt) }), set_attribute(l, "data-pw", mt() ?? (ut() && `${ut()}-completion-text`) ?? null), set_text(f, get(Gt));
59422
59451
  }), append(e, t);
59423
- }, ct = (e) => {
59452
+ }, ot = (e) => {
59424
59453
  var t = root_17(), n = first_child(t), i = (e) => {
59425
59454
  var t = root_6();
59426
- snippet(child(t), xt), reset(t), append(e, t);
59455
+ snippet(child(t), St), reset(t), append(e, t);
59427
59456
  };
59428
59457
  if_block(n, (e) => {
59429
- xt() && e(i);
59458
+ St() && e(i);
59430
59459
  });
59431
59460
  var a = sibling(n, 2), o = (e) => {
59432
59461
  var t = root_9();
59433
- each(t, 21, () => get(cn), index, (e, t, n) => {
59462
+ each(t, 21, () => get(pn), index, (e, t, n) => {
59434
59463
  var i = root_8(), a = child(i), o = (e) => {
59435
59464
  var n = root_7(), i = child(n, !0);
59436
59465
  reset(n), template_effect(() => set_text(i, get(t).header)), append(e, n);
@@ -59442,9 +59471,9 @@ function HITL(e, t) {
59442
59471
  reset(s);
59443
59472
  var l = sibling(s, 2);
59444
59473
  each(l, 23, () => get(t).options, (e) => e.label, (e, i, a) => {
59445
- let o = /* @__PURE__ */ user_derived(() => (get(sn)[n] ?? []).includes(get(i).label));
59474
+ let o = /* @__PURE__ */ user_derived(() => (get(fn)[n] ?? []).includes(get(i).label));
59446
59475
  {
59447
- let s = /* @__PURE__ */ user_derived(() => ln(get(t)) ? {} : { ariaPressed: get(o) }), c = /* @__PURE__ */ user_derived(() => !get(wt)), l = /* @__PURE__ */ user_derived(() => [yt(), get(o) ? bt() : ""].filter((e) => typeof e == "string" && e.length > 0).join(" ")), u = /* @__PURE__ */ user_derived(() => lt() && `${lt()}-question-${n}-option-${get(a)}`);
59476
+ let s = /* @__PURE__ */ user_derived(() => mn(get(t)) ? {} : { ariaPressed: get(o) }), c = /* @__PURE__ */ user_derived(() => !get(Tt)), l = /* @__PURE__ */ user_derived(() => [bt(), get(o) ? xt() : ""].filter((e) => typeof e == "string" && e.length > 0).join(" ")), u = /* @__PURE__ */ user_derived(() => ut() && `${ut()}-question-${n}-option-${get(a)}`);
59448
59477
  Button(e, spread_props({
59449
59478
  variant: "secondary",
59450
59479
  get text() {
@@ -59463,21 +59492,21 @@ function HITL(e, t) {
59463
59492
  get testId() {
59464
59493
  return get(u);
59465
59494
  },
59466
- onclick: () => pn(n, get(i).label)
59495
+ onclick: () => vn(n, get(i).label)
59467
59496
  }));
59468
59497
  }
59469
59498
  }), reset(l), reset(i), template_effect(() => {
59470
- set_attribute(i, "aria-label", get(t).header ?? get(t).question), set_attribute(i, "data-pw", lt() && `${lt()}-question-${n}`), set_text(c, get(t).question);
59499
+ set_attribute(i, "aria-label", get(t).header ?? get(t).question), set_attribute(i, "data-pw", ut() && `${ut()}-question-${n}`), set_text(c, get(t).question);
59471
59500
  }), append(e, i);
59472
59501
  }), reset(t), append(e, t);
59473
59502
  };
59474
59503
  if_block(a, (e) => {
59475
- get(cn).length > 0 && e(o);
59504
+ get(pn).length > 0 && e(o);
59476
59505
  });
59477
59506
  var s = sibling(a, 2), c = (e) => {
59478
59507
  var t = root_10(), n = child(t);
59479
59508
  {
59480
- let e = /* @__PURE__ */ user_derived(() => get(en).placeholder ?? ""), t = /* @__PURE__ */ user_derived(() => get(en).ariaLabel ?? get(en).label), i = /* @__PURE__ */ user_derived(() => get(en).multiline === !0), a = /* @__PURE__ */ user_derived(() => get(en).multiline === !0), o = /* @__PURE__ */ user_derived(() => lt() && `${lt()}-reply-input`);
59509
+ let e = /* @__PURE__ */ user_derived(() => get(on).placeholder ?? ""), t = /* @__PURE__ */ user_derived(() => get(on).ariaLabel ?? get(on).label), i = /* @__PURE__ */ user_derived(() => get(on).multiline === !0), a = /* @__PURE__ */ user_derived(() => get(on).multiline === !0), o = /* @__PURE__ */ user_derived(() => ut() && `${ut()}-reply-input`);
59481
59510
  Input(n, {
59482
59511
  get placeholder() {
59483
59512
  return get(e);
@@ -59499,20 +59528,20 @@ function HITL(e, t) {
59499
59528
  return get(o);
59500
59529
  },
59501
59530
  onkeydown: (e) => {
59502
- let t = get(en)?.multiline === !0 ? e.metaKey || e.ctrlKey : !0;
59503
- e.key === "Enter" && t && (e.preventDefault(), an());
59531
+ let t = get(on)?.multiline === !0 ? e.metaKey || e.ctrlKey : !0;
59532
+ e.key === "Enter" && t && (e.preventDefault(), un());
59504
59533
  },
59505
59534
  get value() {
59506
- return get(tn);
59535
+ return get(sn);
59507
59536
  },
59508
59537
  set value(e) {
59509
- set(tn, e, !0);
59538
+ set(sn, e, !0);
59510
59539
  }
59511
59540
  });
59512
59541
  }
59513
59542
  var i = sibling(n, 2), a = child(i), o = child(a);
59514
59543
  {
59515
- let e = /* @__PURE__ */ user_derived(() => get(en).backLabel ?? "Back"), t = /* @__PURE__ */ user_derived(() => !get(wt)), n = /* @__PURE__ */ user_derived(() => lt() && `${lt()}-reply-back`);
59544
+ let e = /* @__PURE__ */ user_derived(() => get(on).backLabel ?? "Back"), t = /* @__PURE__ */ user_derived(() => !get(Tt)), n = /* @__PURE__ */ user_derived(() => ut() && `${ut()}-reply-back`);
59516
59545
  Button(o, {
59517
59546
  variant: "secondary",
59518
59547
  get text() {
@@ -59524,35 +59553,35 @@ function HITL(e, t) {
59524
59553
  get testId() {
59525
59554
  return get(n);
59526
59555
  },
59527
- onclick: on
59556
+ onclick: dn
59528
59557
  });
59529
59558
  }
59530
59559
  reset(a);
59531
59560
  var s = sibling(a, 2), c = child(s);
59532
59561
  {
59533
- let e = /* @__PURE__ */ user_derived(() => get(en).submitLabel ?? "Send"), t = /* @__PURE__ */ user_derived(() => lt() && `${lt()}-reply-send`);
59562
+ let e = /* @__PURE__ */ user_derived(() => get(on).submitLabel ?? "Send"), t = /* @__PURE__ */ user_derived(() => ut() && `${ut()}-reply-send`);
59534
59563
  Button(c, {
59535
59564
  get text() {
59536
59565
  return get(e);
59537
59566
  },
59538
59567
  get classes() {
59539
- return get(en).submitClasses;
59568
+ return get(on).submitClasses;
59540
59569
  },
59541
59570
  get enable() {
59542
- return get(nn);
59571
+ return get(cn);
59543
59572
  },
59544
59573
  get testId() {
59545
59574
  return get(t);
59546
59575
  },
59547
- onclick: an
59576
+ onclick: un
59548
59577
  });
59549
59578
  }
59550
- reset(s), reset(i), reset(t), template_effect(() => set_attribute(t, "data-pw", lt() && `${lt()}-reply`)), append(e, t);
59579
+ reset(s), reset(i), reset(t), template_effect(() => set_attribute(t, "data-pw", ut() && `${ut()}-reply`)), append(e, t);
59551
59580
  }, l = (e) => {
59552
59581
  var t = root_16(), n = child(t), i = (e) => {
59553
59582
  var t = root_11(), n = child(t);
59554
59583
  {
59555
- let e = /* @__PURE__ */ user_derived(() => !get(wt)), t = /* @__PURE__ */ user_derived(() => dt() ?? (lt() && `${lt()}-cancel`));
59584
+ let e = /* @__PURE__ */ user_derived(() => !get(Tt)), t = /* @__PURE__ */ user_derived(() => ft() ?? (ut() && `${ut()}-cancel`));
59556
59585
  Button(n, {
59557
59586
  variant: "secondary",
59558
59587
  get text() {
@@ -59564,7 +59593,7 @@ function HITL(e, t) {
59564
59593
  get testId() {
59565
59594
  return get(t);
59566
59595
  },
59567
- onclick: () => $t("rejected")
59596
+ onclick: () => an("rejected")
59568
59597
  });
59569
59598
  }
59570
59599
  reset(t), append(e, t);
@@ -59573,10 +59602,10 @@ function HITL(e, t) {
59573
59602
  S() && e(i);
59574
59603
  });
59575
59604
  var a = sibling(n, 2);
59576
- each(a, 19, () => mt() ?? [], (e, t) => e.testId ?? `${t}-${e.label}`, (e, t, n) => {
59605
+ each(a, 19, () => ht() ?? [], (e, t) => e.testId ?? `${t}-${e.label}`, (e, t, n) => {
59577
59606
  var i = root_12(), a = child(i);
59578
59607
  {
59579
- let e = /* @__PURE__ */ user_derived(() => !get(wt)), i = /* @__PURE__ */ user_derived(() => get(t).testId ?? (lt() && `${lt()}-action-${get(n)}`));
59608
+ let e = /* @__PURE__ */ user_derived(() => !get(Tt)), i = /* @__PURE__ */ user_derived(() => get(t).testId ?? (ut() && `${ut()}-action-${get(n)}`));
59580
59609
  Button(a, {
59581
59610
  variant: "secondary",
59582
59611
  get text() {
@@ -59594,7 +59623,7 @@ function HITL(e, t) {
59594
59623
  get ariaLabel() {
59595
59624
  return get(t).ariaLabel;
59596
59625
  },
59597
- onclick: () => rn(get(t))
59626
+ onclick: () => ln(get(t))
59598
59627
  });
59599
59628
  }
59600
59629
  reset(i), append(e, i);
@@ -59602,43 +59631,43 @@ function HITL(e, t) {
59602
59631
  var o = sibling(a, 2), s = (e) => {
59603
59632
  var t = root_13(), n = child(t);
59604
59633
  {
59605
- let e = /* @__PURE__ */ user_derived(() => lt() && `${lt()}-send-answers`);
59634
+ let e = /* @__PURE__ */ user_derived(() => ut() && `${ut()}-send-answers`);
59606
59635
  Button(n, {
59607
59636
  get text() {
59608
- return vt();
59637
+ return yt();
59609
59638
  },
59610
59639
  get enable() {
59611
- return get(dn);
59640
+ return get(gn);
59612
59641
  },
59613
59642
  get testId() {
59614
59643
  return get(e);
59615
59644
  },
59616
- onclick: mn
59645
+ onclick: yn
59617
59646
  });
59618
59647
  }
59619
59648
  reset(t), append(e, t);
59620
59649
  };
59621
59650
  if_block(o, (e) => {
59622
- get(un) && e(s);
59651
+ get(hn) && e(s);
59623
59652
  });
59624
59653
  var c = sibling(o, 2), l = (e) => {
59625
59654
  var t = root_15(), n = child(t), i = (e) => {
59626
59655
  var t = root_14();
59627
59656
  Progress(child(t), {
59628
59657
  get value() {
59629
- return get(Pt);
59658
+ return get(Bt);
59630
59659
  },
59631
59660
  get max() {
59632
- return R();
59661
+ return get(kt);
59633
59662
  }
59634
59663
  }), reset(t), append(e, t);
59635
59664
  };
59636
59665
  if_block(n, (e) => {
59637
- get(Et) && !p() && e(i);
59666
+ get(Dt) && !p() && e(i);
59638
59667
  });
59639
59668
  var a = sibling(n, 2);
59640
59669
  {
59641
- let e = /* @__PURE__ */ user_derived(() => !get(wt) && !p()), t = /* @__PURE__ */ user_derived(() => ut() ?? (lt() && `${lt()}-confirm`));
59670
+ let e = /* @__PURE__ */ user_derived(() => !get(Tt) && !p()), t = /* @__PURE__ */ user_derived(() => dt() ?? (ut() && `${ut()}-confirm`));
59642
59671
  Button(a, {
59643
59672
  get text() {
59644
59673
  return f();
@@ -59649,7 +59678,7 @@ function HITL(e, t) {
59649
59678
  get testId() {
59650
59679
  return get(t);
59651
59680
  },
59652
- onclick: () => $t("approved")
59681
+ onclick: () => an("approved")
59653
59682
  });
59654
59683
  }
59655
59684
  reset(t), append(e, t);
@@ -59659,19 +59688,19 @@ function HITL(e, t) {
59659
59688
  }), reset(t), append(e, t);
59660
59689
  };
59661
59690
  if_block(s, (e) => {
59662
- get(en) === null ? e(l, -1) : e(c);
59691
+ get(on) === null ? e(l, -1) : e(c);
59663
59692
  }), append(e, t);
59664
59693
  };
59665
- if_block(at, (e) => {
59666
- get(Mt) && get(jt) !== null ? e(ot) : e(ct, -1);
59667
- }), reset(G), template_effect(() => {
59668
- set_text(l, Ue()), set_attribute(u, "data-pw", lt() && `${lt()}-title`), set_text(k, i());
59694
+ if_block(Me, (e) => {
59695
+ get(Rt) && get(Lt) !== null ? e(at) : e(ot, -1);
59696
+ }), reset(ne), template_effect(() => {
59697
+ set_text(l, it()), set_attribute(u, "data-pw", ut() && `${ut()}-title`), set_text(k, i());
59669
59698
  }), append(e, n);
59670
59699
  },
59671
59700
  $$slots: { default: !0 }
59672
- }), reset(xn), template_effect(() => {
59673
- set_class(xn, 1, `hitl ${St() ?? "" ?? ""}`, "svelte-13vzr9e"), set_attribute(xn, "data-confirmation-id", n()), set_attribute(xn, "data-pw", typeof lt() == "string" ? lt() : null), set_attribute(xn, "testid", typeof lt() == "string" ? lt() : null);
59674
- }), append(e, xn), pop(bn);
59701
+ }), reset(En), template_effect(() => {
59702
+ set_class(En, 1, `hitl ${Ct() ?? "" ?? ""}`, "svelte-13vzr9e"), set_attribute(En, "data-confirmation-id", n()), set_attribute(En, "data-pw", typeof ut() == "string" ? ut() : null), set_attribute(En, "testid", typeof ut() == "string" ? ut() : null);
59703
+ }), append(e, En), pop(Tn);
59675
59704
  }
59676
59705
  create_custom_element(HITL, {
59677
59706
  confirmationId: {},
@@ -59689,6 +59718,7 @@ create_custom_element(HITL, {
59689
59718
  showConfirm: {},
59690
59719
  showEmptyParameters: {},
59691
59720
  countdownSeconds: {},
59721
+ expiresAt: {},
59692
59722
  autoCancelSeconds: {},
59693
59723
  isMicMuted: {},
59694
59724
  onmictoggle: {},
@@ -59826,6 +59856,10 @@ customElements.define("sui-hitl", create_custom_element(HITL_wc, {
59826
59856
  attribute: "countdown-seconds",
59827
59857
  type: "Number"
59828
59858
  },
59859
+ expiresAt: {
59860
+ attribute: "expires-at",
59861
+ type: "Number"
59862
+ },
59829
59863
  autoCancelSeconds: {
59830
59864
  attribute: "auto-cancel-seconds",
59831
59865
  type: "Number"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "4.52.0",
3
+ "version": "4.52.1",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",