@wssto2/vue-core 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +3 -0
  2. package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js → AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js} +1 -1
  3. package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js} +1 -1
  4. package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js → ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js} +2 -2
  5. package/dist/{Activity-DviO0VQ8.js → Activity-2gGxQn7v.js} +9 -9
  6. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js} +3 -3
  7. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js → AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js} +1 -1
  8. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js → AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js} +4 -4
  9. package/dist/{Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js → Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js} +1 -1
  10. package/dist/{Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js → Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js} +1 -1
  11. package/dist/{Changes-DlT5mN9G.js → Changes-Bm8xvagD.js} +8 -8
  12. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js → CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js} +176 -172
  13. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js → DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js} +1 -1
  14. package/dist/DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js +255 -0
  15. package/dist/DeadLetters-CMRtXn_N.js +104 -0
  16. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js} +1 -1
  17. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js → EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js} +1 -1
  18. package/dist/{FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js → FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js} +1 -1
  19. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js → FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js} +10 -10
  20. package/dist/{FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js → FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js} +2 -2
  21. package/dist/{General-BD-Hcz0a.js → General-CTqd0SLK.js} +8 -8
  22. package/dist/HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js +45 -0
  23. package/dist/{Icon.vue_vue_type_script_lang-VvcV2Bzo.js → Icon.vue_vue_type_script_lang-D7oC-d-S.js} +33 -29
  24. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js → IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js} +1 -1
  25. package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js} +1 -1
  26. package/dist/{Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js → Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js} +30 -26
  27. package/dist/{Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js → Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js} +2 -2
  28. package/dist/{NewRolePage-Dla4YnMs.js → NewRolePage-DTOWIxxC.js} +4 -4
  29. package/dist/{NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js → NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js} +1 -1
  30. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js → NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js} +1 -1
  31. package/dist/{PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js → PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js} +1 -1
  32. package/dist/{Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js → Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js} +1 -1
  33. package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +46 -0
  34. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js → PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js} +1 -1
  35. package/dist/ProfilePage-BlpiWH_W.js +654 -0
  36. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js → RecordHeader.vue_vue_type_script_setup_true_lang-C_ymvhHU.js} +2 -2
  37. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js → ResourcePage.vue_vue_type_script_setup_true_lang-CwI_sROp.js} +5 -5
  38. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js → RoleEditor.vue_vue_type_script_setup_true_lang-CmwvSytD.js} +30 -29
  39. package/dist/{RolePage-bZzv_E4l.js → RolePage-DZk7BZOc.js} +13 -13
  40. package/dist/{RolesPage-BniZv0nB.js → RolesPage-DzGGCMnm.js} +9 -9
  41. package/dist/{SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js → SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js} +3 -3
  42. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js → SectionNavigator.vue_vue_type_script_setup_true_lang-DSMXEaCs.js} +5 -5
  43. package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js → SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js} +1 -1
  44. package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js → SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js} +15 -14
  45. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js → SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js} +4 -4
  46. package/dist/{Sessions-Co5-xdeb.js → Sessions-CWqjjTr1.js} +6 -6
  47. package/dist/SettingsPage-C4s0IdkW.js +255 -0
  48. package/dist/{Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js → Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js} +48 -45
  49. package/dist/{SignIn-BWwFbxki.js → SignIn-zzKY__df.js} +7 -7
  50. package/dist/{SignInPage-FnLtoi2q.js → SignInPage-Rqnus_s-.js} +6 -6
  51. package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js → SignInTable.vue_vue_type_script_setup_true_lang-CEbAvZ_C.js} +1 -1
  52. package/dist/{SignIns-3UcI64_h.js → SignIns-Cnf9BVR0.js} +6 -6
  53. package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js → SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js} +1 -1
  54. package/dist/SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js +64 -0
  55. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js → Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js} +1 -1
  56. package/dist/{TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js → TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js} +3 -3
  57. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js +68 -0
  58. package/dist/TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js +164 -0
  59. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js → Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js} +1 -1
  60. package/dist/{UserRecord-Ci8HfwbX.js → UserRecord-DqigxVxH.js} +12 -12
  61. package/dist/{UsersList-vEJ-cgkT.js → UsersList-DNlZsI9J.js} +8 -8
  62. package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js → ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js} +1 -1
  63. package/dist/access/index.js +1 -1
  64. package/dist/app/index.js +9 -9
  65. package/dist/button/index.js +1 -1
  66. package/dist/client/index.js +11 -19
  67. package/dist/{client-Bw0aM5Gu.js → client-k9euDWF4.js} +19 -19
  68. package/dist/collection/definition.d.ts +3 -0
  69. package/dist/collection/index.js +6 -6
  70. package/dist/collection/useCollection.d.ts +2 -0
  71. package/dist/content/index.js +2 -2
  72. package/dist/{contributions-CDDg3fKp.js → contributions-DsfmDoRD.js} +1 -1
  73. package/dist/control-7EP4tjYy.js +313 -0
  74. package/dist/controls/index.js +4 -4
  75. package/dist/form/index.js +987 -1134
  76. package/dist/{guards-Cd1V28oG.js → guards-Dve61KjR.js} +1 -1
  77. package/dist/{http-DGGSKWvU.js → http-CNcDHSOj.js} +9 -8
  78. package/dist/i18n/index.js +20 -20
  79. package/dist/icon/core.d.ts +4 -0
  80. package/dist/icon/index.js +1 -1
  81. package/dist/identity/index.js +1 -1
  82. package/dist/index-BsJ92eub.js +504 -0
  83. package/dist/{index-BAcl44SC.js → index-CGv-u1Ws.js} +19 -19
  84. package/dist/{index-B2dbYZR9.js → index-GcLnFF-z.js} +15 -15
  85. package/dist/index.d.ts +1 -1
  86. package/dist/index.js +1 -1
  87. package/dist/modal/Sheet.vue.d.ts +2 -0
  88. package/dist/modal/index.js +5 -5
  89. package/dist/modules/events/entities.d.ts +16 -0
  90. package/dist/modules/events/routes.d.ts +17 -0
  91. package/dist/modules/events/schemas.d.ts +16 -0
  92. package/dist/modules/notification/entities.d.ts +46 -0
  93. package/dist/modules/notification/routes.d.ts +26 -0
  94. package/dist/modules/notification/schemas.d.ts +25 -0
  95. package/dist/{navigation-BPWa63ge.js → navigation-Cm3iChlR.js} +1 -1
  96. package/dist/{neighbors-D0WRBxXI.js → neighbors-DpaIMQAL.js} +1 -1
  97. package/dist/notifications/InboxPanel.vue.d.ts +16 -0
  98. package/dist/notifications/MarkAllRead.vue.d.ts +7 -0
  99. package/dist/notifications/NotificationBell.vue.d.ts +2 -0
  100. package/dist/notifications/SettingsLink.vue.d.ts +6 -0
  101. package/dist/notifications/context.d.ts +20 -0
  102. package/dist/notifications/deadletters/DeadLetters.vue.d.ts +2 -0
  103. package/dist/notifications/deadletters/access.d.ts +3 -0
  104. package/dist/notifications/deadletters/list.d.ts +3 -0
  105. package/dist/notifications/deadletters/routes.d.ts +13 -0
  106. package/dist/notifications/feature.d.ts +31 -0
  107. package/dist/notifications/inbox.d.ts +62 -0
  108. package/dist/notifications/index.d.ts +13 -0
  109. package/dist/notifications/index.js +8 -0
  110. package/dist/notifications/settings/EmailPanel.vue.d.ts +14 -0
  111. package/dist/notifications/settings/QuietHoursPanel.vue.d.ts +14 -0
  112. package/dist/notifications/settings/SettingsMenuItem.vue.d.ts +2 -0
  113. package/dist/notifications/settings/SettingsPage.vue.d.ts +2 -0
  114. package/dist/notifications/settings/categoryText.d.ts +9 -0
  115. package/dist/notifications/settings/routes.d.ts +13 -0
  116. package/dist/notifications/settings/settings.d.ts +18 -0
  117. package/dist/notifications/settings/state.d.ts +16 -0
  118. package/dist/notifications/state.d.ts +27 -0
  119. package/dist/notifications/stream.d.ts +21 -0
  120. package/dist/options-Ba_0uLWN.js +18 -0
  121. package/dist/overlay/index.js +3 -3
  122. package/dist/page/index.js +7 -7
  123. package/dist/phone/index.js +68 -67
  124. package/dist/platform/index.js +2 -2
  125. package/dist/{platform-hunMqFdB.js → platform-q3cjODLx.js} +1 -1
  126. package/dist/resource/index.js +1 -1
  127. package/dist/route-goWMxDUN.js +13 -0
  128. package/dist/router/index.js +4 -4
  129. package/dist/{rowLayout-BI7a3Kom.js → rowLayout-BqTEhEuy.js} +5 -5
  130. package/dist/{sections-BEqW1dOc.js → sections-CntvUTxn.js} +1 -1
  131. package/dist/shell/index.js +460 -496
  132. package/dist/state/index.js +4 -4
  133. package/dist/{status-C9aXR-Jb.js → status-BuP3ULjH.js} +2 -2
  134. package/dist/styles.css +1 -1
  135. package/dist/{suggestions-BJAqOj4c.js → suggestions-BxMm6MQA.js} +1 -1
  136. package/dist/testing/index.js +1 -1
  137. package/dist/transport-BnP7WC0Y.js +4 -0
  138. package/dist/{useCommand-BgRwnYlV.js → useCommand-BkONMn3X.js} +2 -2
  139. package/dist/{useResourceForm-Bgc9jMcu.js → useResourceForm-D1hIpwW5.js} +1 -1
  140. package/dist/useTypedEntry-aTfPBAhw.js +857 -0
  141. package/package.json +6 -2
  142. package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +0 -1099
  143. package/dist/ProfilePage-OJMQ8cr8.js +0 -691
  144. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +0 -127
  145. package/dist/options-BXkMR63B.js +0 -329
@@ -1,58 +1,62 @@
1
- import { _ as Ee, s as Ue, c as $e, f as Ze } from "../FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js";
2
- import { E as Ro, u as Eo } from "../FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js";
3
- import { f as ze } from "../useCommand-BgRwnYlV.js";
4
- import { _ as Go, a as No, u as Ko } from "../useCommand-BgRwnYlV.js";
5
- import { ref as G, computed as h, defineComponent as N, openBlock as i, createBlock as z, mergeProps as J, unref as l, withCtx as w, createElementVNode as p, normalizeClass as O, createElementBlock as y, Fragment as te, renderList as xe, createVNode as j, createCommentVNode as V, toDisplayString as S, mergeDefaults as re, useModel as ae, useId as Ie, withKeys as Ce, withModifiers as he, renderSlot as ne, createTextVNode as W, mergeModels as le, useTemplateRef as K, shallowRef as Te, watch as de, nextTick as ce, provide as je, inject as et, createSlots as tt, onBeforeUnmount as Ge, onMounted as dt, toRef as ct, toValue as Me, getCurrentScope as ft, onScopeDispose as mt, shallowReactive as Ye, normalizeStyle as vt, resolveDynamicComponent as pt } from "vue";
6
- import { a as Ne } from "../leaveGuard-Cc8yeLxM.js";
7
- import { M as Ao, c as Uo, i as Yo, l as Wo, u as Jo } from "../leaveGuard-Cc8yeLxM.js";
8
- import { _ as Qo } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js";
9
- import { u as Zo } from "../useResourceForm-Bgc9jMcu.js";
10
- import { _ as Z } from "../Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
11
- import { u as at, _ as fe, f as ie, b as ue, a as lt, g as Le, e as bt, j as ht, k as yt, d as gt } from "../options-BXkMR63B.js";
12
- import { h as ts, m as as } from "../options-BXkMR63B.js";
13
- import { useI18n as ee } from "vue-i18n";
14
- import { b as xt } from "../controlSurface-t7OEFESJ.js";
15
- import { a as kt } from "../TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js";
16
- import { _ as os } from "../TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js";
17
- import { u as _t, l as wt } from "../suggestions-BJAqOj4c.js";
18
- import { r as ns } from "../suggestions-BJAqOj4c.js";
19
- import { d as $t, r as St, t as Se, p as Ct, u as Ft, s as _e, a as Oe, i as Re, j as we, b as Fe, c as Bt, e as Lt, f as ot, g as qt, h as st, k as nt, l as Vt, m as Dt, n as zt, o as Tt } from "../DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js";
20
- import { _ as is } from "../DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js";
21
- import { _ as Ke } from "../DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js";
22
- import { u as rt } from "../format-B8mJm946.js";
23
- import { u as qe } from "../mediaQuery-CygcXmFW.js";
24
- import { _ as Ve } from "../Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
25
- import { _ as ye } from "../Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js";
26
- import { _ as jt, r as Mt } from "../FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js";
27
- import { a as ds, c as cs, p as fs, u as ms } from "../FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js";
28
- import { _ as ps } from "../FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js";
29
- import { a as Ot } from "../environment-Dva-SG8D.js";
30
- import { _ as Rt } from "../NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js";
31
- import { _ as Et } from "../Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js";
32
- import { u as It, a as We } from "../SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js";
33
- import { _ as hs, b as ys } from "../SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js";
34
- import { _ as xs } from "../OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js";
35
- import { _ as Je } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js";
36
- import { _ as _s } from "../SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js";
37
- import { _ as $s, a as Ss } from "../TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js";
38
- import { _ as Gt } from "../Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js";
39
- import { _ as He } from "../Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js";
40
- import { D as Nt } from "../useWaitStatus-fsacMl4W.js";
41
- import { t as Kt } from "../toast-D9Z5To38.js";
42
- import { a as Pt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js";
43
- import { _ as At, a as Ut } from "../SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js";
44
- import { p as Yt } from "../sectionIndex-BS0ic5W7.js";
45
- import { u as Wt } from "../useSaveChrome-chi6D3HY.js";
46
- import { matchedRouteKey as Jt, onBeforeRouteLeave as Ht } from "vue-router";
47
- function Qt(o) {
48
- const t = G(null);
1
+ import { _ as Me, s as Ke, c as $e, f as Xe } from "../FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js";
2
+ import { E as qo, u as Mo } from "../FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js";
3
+ import { f as ze } from "../useCommand-BkONMn3X.js";
4
+ import { _ as jo, a as Ro, u as To } from "../useCommand-BkONMn3X.js";
5
+ import { ref as I, computed as y, defineComponent as G, openBlock as i, createBlock as q, mergeProps as J, unref as s, withCtx as C, createElementVNode as p, normalizeClass as R, createElementBlock as g, Fragment as ne, renderList as xe, createVNode as M, createCommentVNode as D, toDisplayString as $, mergeDefaults as ie, useModel as oe, useId as Oe, withKeys as Se, withModifiers as pe, renderSlot as le, createTextVNode as Y, mergeModels as se, useTemplateRef as P, shallowRef as De, watch as re, nextTick as ye, provide as Ve, inject as Qe, createSlots as Ze, onBeforeUnmount as je, onMounted as ot, toRef as st, toValue as qe, getCurrentScope as nt, onScopeDispose as rt, shallowReactive as Pe, normalizeStyle as it, resolveDynamicComponent as ut } from "vue";
6
+ import { a as Re } from "../leaveGuard-Cc8yeLxM.js";
7
+ import { M as Io, c as Go, i as No, l as Ko, u as Po } from "../leaveGuard-Cc8yeLxM.js";
8
+ import { _ as Uo } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js";
9
+ import { u as Wo } from "../useResourceForm-D1hIpwW5.js";
10
+ import { _ as H } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
11
+ import { u as et, _ as ge, f as ue, b as de, a as tt, c as Te, e as dt, h as ct, i as ft, d as mt } from "../control-7EP4tjYy.js";
12
+ import { useI18n as Q } from "vue-i18n";
13
+ import { b as vt } from "../controlSurface-t7OEFESJ.js";
14
+ import { a as pt } from "../TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
15
+ import { _ as Ho } from "../TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
16
+ import { u as bt, l as gt } from "../suggestions-BxMm6MQA.js";
17
+ import { r as Qo } from "../suggestions-BxMm6MQA.js";
18
+ import { s as ke, u as Ae, i as ht, o as we, e as Ce, k as yt, _ as xt, l as _t, c as kt, b as wt, t as Be, g as $t, q as St } from "../useTypedEntry-aTfPBAhw.js";
19
+ import { u as Ct, a as Ft, s as Lt } from "../DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js";
20
+ import { _ as es } from "../DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js";
21
+ import { _ as at } from "../DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js";
22
+ import { u as Bt } from "../format-B8mJm946.js";
23
+ import { u as Ee } from "../mediaQuery-CygcXmFW.js";
24
+ import { _ as Ie } from "../Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
25
+ import { u as zt } from "../TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js";
26
+ import { _ as as } from "../TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js";
27
+ import { _ as be } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
28
+ import { _ as Dt, r as Vt } from "../FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
29
+ import { a as os, c as ss, p as ns, u as rs } from "../FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
30
+ import { _ as us } from "../FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js";
31
+ import { a as qt } from "../environment-Dva-SG8D.js";
32
+ import { _ as Mt } from "../NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js";
33
+ import { _ as Ot } from "../Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js";
34
+ import { u as jt, a as Ue } from "../SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js";
35
+ import { _ as cs, b as fs } from "../SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js";
36
+ import { g as vs, m as ps } from "../options-Ba_0uLWN.js";
37
+ import { _ as gs } from "../OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js";
38
+ import { _ as Ye } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js";
39
+ import { _ as ys } from "../SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js";
40
+ import { _ as _s } from "../SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js";
41
+ import { _ as ws } from "../TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js";
42
+ import { _ as Rt } from "../Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js";
43
+ import { _ as We } from "../Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
44
+ import { D as Tt } from "../useWaitStatus-fsacMl4W.js";
45
+ import { t as Et } from "../toast-D9Z5To38.js";
46
+ import { a as It } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js";
47
+ import { _ as Gt, a as Nt } from "../SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js";
48
+ import { p as Kt } from "../sectionIndex-BS0ic5W7.js";
49
+ import { u as Pt } from "../useSaveChrome-chi6D3HY.js";
50
+ import { matchedRouteKey as At, onBeforeRouteLeave as Ut } from "vue-router";
51
+ function Yt(o) {
52
+ const t = I(null);
49
53
  return {
50
- isDirty: h(() => t.value !== null && JSON.stringify(o()) !== t.value),
54
+ isDirty: y(() => t.value !== null && JSON.stringify(o()) !== t.value),
51
55
  markClean: () => t.value = JSON.stringify(o())
52
56
  };
53
57
  }
54
- function vo(o) {
55
- const t = G(!1), e = Qt(o), { confirmDiscard: a } = Ne(() => t.value && e.isDirty.value);
58
+ function uo(o) {
59
+ const t = I(!1), e = Yt(o), { confirmDiscard: a } = Re(() => t.value && e.isDirty.value);
56
60
  return {
57
61
  /** The sheet was just filled: its current values are the baseline. */
58
62
  opened: () => {
@@ -65,16 +69,16 @@ function vo(o) {
65
69
  beforeDismiss: a
66
70
  };
67
71
  }
68
- const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name", "value", "checked", "disabled", "onChange"], ea = { class: "min-w-0 flex-1" }, ta = { class: "block text-body font-semibold text-content-strong" }, aa = {
72
+ const Wt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Jt = ["name", "value", "checked", "disabled", "onChange"], Ht = { class: "min-w-0 flex-1" }, Xt = { class: "block text-body font-semibold text-content-strong" }, Qt = {
69
73
  key: 0,
70
74
  class: "mt-0.5 block text-footnote text-content-muted"
71
- }, la = {
75
+ }, Zt = {
72
76
  key: 1,
73
77
  class: "flex size-5 shrink-0 items-center justify-center rounded-full bg-control-on text-white",
74
78
  "aria-hidden": "true"
75
- }, po = /* @__PURE__ */ N({
79
+ }, co = /* @__PURE__ */ G({
76
80
  __name: "CardSelectField",
77
- props: /* @__PURE__ */ re({
81
+ props: /* @__PURE__ */ ie({
78
82
  label: {},
79
83
  hint: {},
80
84
  error: {},
@@ -87,68 +91,68 @@ const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
87
91
  modelValue: {},
88
92
  options: {},
89
93
  columns: {}
90
- }, { ...ue, modelValue: null, columns: 2 }),
94
+ }, { ...de, modelValue: null, columns: 2 }),
91
95
  emits: ["update:modelValue"],
92
96
  setup(o, { emit: t }) {
93
- const e = o, a = t, { editable: n } = at(e), s = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4" }, d = h(() => s[e.columns]);
94
- return (c, b) => (i(), z(fe, J(l(ie)(e), {
95
- value: e.options.find((g) => g.value === e.modelValue)?.label ?? null,
97
+ const e = o, a = t, { editable: n } = et(e), l = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4" }, d = y(() => l[e.columns]);
98
+ return (m, b) => (i(), q(ge, J(s(ue)(e), {
99
+ value: e.options.find((h) => h.value === e.modelValue)?.label ?? null,
96
100
  "row-layout": "stacked"
97
101
  }), {
98
- default: w(({ id: g, describedby: _, invalid: x }) => [
102
+ default: C(({ id: h, describedby: k, invalid: x }) => [
99
103
  p("div", {
100
- id: g,
104
+ id: h,
101
105
  role: "radiogroup",
102
106
  "aria-label": e.label,
103
- "aria-describedby": _,
107
+ "aria-describedby": k,
104
108
  "aria-invalid": x || void 0,
105
- class: O(["grid w-full gap-2.5", d.value]),
109
+ class: R(["grid w-full gap-2.5", d.value]),
106
110
  "data-test": "card-select"
107
111
  }, [
108
- (i(!0), y(te, null, xe(e.options, (r) => (i(), y("label", {
112
+ (i(!0), g(ne, null, xe(e.options, (r) => (i(), g("label", {
109
113
  key: r.value,
110
- class: O(["relative flex items-center gap-3 rounded-group bg-fill p-3.5 transition-colors duration-motion-fast focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus", [r.value === e.modelValue ? "bg-tint-soft ring-[1.5px] ring-inset ring-border-selected" : "hover:bg-fill-strong", e.disabled || !l(n) || r.disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"]])
114
+ class: R(["relative flex items-center gap-3 rounded-group bg-fill p-3.5 transition-colors duration-motion-fast focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus", [r.value === e.modelValue ? "bg-tint-soft ring-[1.5px] ring-inset ring-border-selected" : "hover:bg-fill-strong", e.disabled || !s(n) || r.disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"]])
111
115
  }, [
112
116
  p("input", {
113
117
  type: "radio",
114
118
  class: "sr-only",
115
- name: e.name ?? g,
119
+ name: e.name ?? h,
116
120
  value: r.value,
117
121
  checked: r.value === e.modelValue,
118
- disabled: e.disabled || !l(n) || r.disabled,
122
+ disabled: e.disabled || !s(n) || r.disabled,
119
123
  onChange: (u) => a("update:modelValue", r.value)
120
- }, null, 40, Zt),
121
- r.icon ? (i(), y("span", {
124
+ }, null, 40, Jt),
125
+ r.icon ? (i(), g("span", {
122
126
  key: 0,
123
- class: O(["flex size-9 shrink-0 items-center justify-center rounded-control", r.value === e.modelValue ? "bg-control-on text-white" : "bg-fill-strong text-content-muted"])
127
+ class: R(["flex size-9 shrink-0 items-center justify-center rounded-control", r.value === e.modelValue ? "bg-control-on text-white" : "bg-fill-strong text-content-muted"])
124
128
  }, [
125
- j(l(Z), {
129
+ M(s(H), {
126
130
  name: r.icon,
127
131
  size: 18
128
132
  }, null, 8, ["name"])
129
- ], 2)) : V("", !0),
130
- p("span", ea, [
131
- p("span", ta, S(r.label), 1),
132
- r.description ? (i(), y("span", aa, S(r.description), 1)) : V("", !0)
133
+ ], 2)) : D("", !0),
134
+ p("span", Ht, [
135
+ p("span", Xt, $(r.label), 1),
136
+ r.description ? (i(), g("span", Qt, $(r.description), 1)) : D("", !0)
133
137
  ]),
134
- r.value === e.modelValue ? (i(), y("span", la, [
135
- j(l(Z), {
138
+ r.value === e.modelValue ? (i(), g("span", Zt, [
139
+ M(s(H), {
136
140
  name: "checkCustom",
137
141
  size: 12
138
142
  })
139
- ])) : V("", !0)
143
+ ])) : D("", !0)
140
144
  ], 2))), 128))
141
- ], 10, Xt)
145
+ ], 10, Wt)
142
146
  ]),
143
147
  _: 1
144
148
  }, 16, ["value"]));
145
149
  }
146
- }), oa = ["data-field-error"], sa = ["aria-checked", "aria-disabled", "aria-describedby", "aria-invalid", "tabindex", "onKeydown"], na = { class: "flex min-w-0 flex-1 flex-col items-start" }, ra = {
150
+ }), ea = ["data-field-error"], ta = ["aria-checked", "aria-disabled", "aria-describedby", "aria-invalid", "tabindex", "onKeydown"], aa = { class: "flex min-w-0 flex-1 flex-col items-start" }, la = {
147
151
  key: 0,
148
152
  class: "flex shrink-0 items-center gap-2.5"
149
- }, ia = ["id"], bo = /* @__PURE__ */ N({
153
+ }, oa = ["id"], fo = /* @__PURE__ */ G({
150
154
  __name: "CheckboxField",
151
- props: /* @__PURE__ */ le({
155
+ props: /* @__PURE__ */ se({
152
156
  label: {},
153
157
  description: { default: void 0 },
154
158
  disabled: { type: Boolean, default: !1 },
@@ -160,76 +164,76 @@ const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
160
164
  }),
161
165
  emits: ["update:modelValue"],
162
166
  setup(o) {
163
- const t = o, e = ae(o, "modelValue"), a = !!lt(), n = Ie(), s = () => {
167
+ const t = o, e = oe(o, "modelValue"), a = !!tt(), n = Oe(), l = () => {
164
168
  t.disabled || (e.value = !e.value);
165
169
  };
166
- return (d, c) => (i(), y("div", {
170
+ return (d, m) => (i(), g("div", {
167
171
  "data-field-error": t.error ? "true" : void 0
168
172
  }, [
169
173
  p("div", {
170
174
  role: "checkbox",
171
175
  "aria-checked": e.value,
172
176
  "aria-disabled": t.disabled || void 0,
173
- "aria-describedby": t.error ? `${l(n)}-error` : void 0,
177
+ "aria-describedby": t.error ? `${s(n)}-error` : void 0,
174
178
  "aria-invalid": t.error ? !0 : void 0,
175
179
  tabindex: t.disabled ? -1 : 0,
176
180
  "data-test": "checkbox",
177
- class: O(["group/check flex items-center transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-border-focus", [t.variant === "row" ? "gap-3 pl-row-inset focus-visible:-outline-offset-2" : "gap-2.5 rounded-control px-2 py-1.5 focus-visible:outline-offset-1", a && t.variant === "row" ? "first:rounded-t-group last:rounded-b-group" : "", t.disabled ? "cursor-not-allowed" : t.variant === "row" ? "cursor-pointer hover:bg-fill/60 active:bg-fill" : "cursor-pointer hover:bg-fill"]]),
178
- onClick: s,
181
+ class: R(["group/check flex items-center transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-border-focus", [t.variant === "row" ? "gap-3 pl-row-inset focus-visible:-outline-offset-2" : "gap-2.5 rounded-control px-2 py-1.5 focus-visible:outline-offset-1", a && t.variant === "row" ? "first:rounded-t-group last:rounded-b-group" : "", t.disabled ? "cursor-not-allowed" : t.variant === "row" ? "cursor-pointer hover:bg-fill/60 active:bg-fill" : "cursor-pointer hover:bg-fill"]]),
182
+ onClick: l,
179
183
  onKeydown: [
180
- Ce(he(s, ["prevent"]), ["space"]),
181
- Ce(he(s, ["prevent"]), ["enter"])
184
+ Se(pe(l, ["prevent"]), ["space"]),
185
+ Se(pe(l, ["prevent"]), ["enter"])
182
186
  ]
183
187
  }, [
184
188
  p("span", {
185
- class: O(["flex shrink-0 items-center justify-center rounded-full border-2", [t.variant === "row" ? "size-5.5" : "size-5", e.value ? t.disabled ? "border-content-disabled bg-content-disabled text-white" : "border-control-on bg-control-on text-white" : "border-border-control"]]),
189
+ class: R(["flex shrink-0 items-center justify-center rounded-full border-2", [t.variant === "row" ? "size-5.5" : "size-5", e.value ? t.disabled ? "border-content-disabled bg-content-disabled text-white" : "border-control-on bg-control-on text-white" : "border-border-control"]]),
186
190
  "aria-hidden": "true"
187
191
  }, [
188
- e.value ? (i(), z(l(Z), {
192
+ e.value ? (i(), q(s(H), {
189
193
  key: 0,
190
194
  name: "checkCustom",
191
195
  size: 12
192
- })) : V("", !0)
196
+ })) : D("", !0)
193
197
  ], 2),
194
198
  p("div", {
195
- class: O(["flex min-w-0 flex-1 items-center gap-3", t.variant === "row" ? "min-h-row border-t border-border-separator py-2 pr-row-inset group-first/check:border-t-0" : ""])
199
+ class: R(["flex min-w-0 flex-1 items-center gap-3", t.variant === "row" ? "min-h-row border-t border-border-separator py-2 pr-row-inset group-first/check:border-t-0" : ""])
196
200
  }, [
197
- p("div", na, [
201
+ p("div", aa, [
198
202
  p("p", {
199
- class: O(["w-full text-body", [t.variant === "row" ? "break-words" : "truncate", t.disabled ? "text-content-muted" : e.value ? "text-content-strong" : "text-content"]])
200
- }, S(t.label), 3),
201
- t.description ? (i(), y("p", {
203
+ class: R(["w-full text-body", [t.variant === "row" ? "break-words" : "truncate", t.disabled ? "text-content-muted" : e.value ? "text-content-strong" : "text-content"]])
204
+ }, $(t.label), 3),
205
+ t.description ? (i(), g("p", {
202
206
  key: 0,
203
- class: O(["tabular-nums text-content-muted", t.variant === "row" ? "text-footnote" : "text-xs"])
204
- }, S(t.description), 3)) : V("", !0),
205
- ne(d.$slots, "default")
207
+ class: R(["tabular-nums text-content-muted", t.variant === "row" ? "text-footnote" : "text-xs"])
208
+ }, $(t.description), 3)) : D("", !0),
209
+ le(d.$slots, "default")
206
210
  ]),
207
- d.$slots.trailing ? (i(), y("div", ra, [
208
- ne(d.$slots, "trailing")
209
- ])) : V("", !0)
211
+ d.$slots.trailing ? (i(), g("div", la, [
212
+ le(d.$slots, "trailing")
213
+ ])) : D("", !0)
210
214
  ], 2)
211
- ], 42, sa),
212
- t.error ? (i(), y("p", {
215
+ ], 42, ta),
216
+ t.error ? (i(), g("p", {
213
217
  key: 0,
214
- id: `${l(n)}-error`,
218
+ id: `${s(n)}-error`,
215
219
  role: "alert",
216
220
  class: "flex items-start gap-1.5 px-2 pt-1 text-footnote text-content-destructive"
217
221
  }, [
218
- j(l(Z), {
222
+ M(s(H), {
219
223
  name: "alertTriangle",
220
224
  size: 14,
221
225
  class: "mt-px shrink-0"
222
226
  }),
223
- W(" " + S(t.error), 1)
224
- ], 8, ia)) : V("", !0)
225
- ], 8, oa));
227
+ Y(" " + $(t.error), 1)
228
+ ], 8, oa)) : D("", !0)
229
+ ], 8, ea));
226
230
  }
227
- }), ua = {
231
+ }), sa = {
228
232
  key: 0,
229
233
  class: "text-body text-content-muted"
230
- }, da = ["id", "aria-label", "aria-describedby", "aria-invalid"], ca = ["aria-pressed", "disabled", "onClick"], ho = /* @__PURE__ */ N({
234
+ }, na = ["id", "aria-label", "aria-describedby", "aria-invalid"], ra = ["aria-pressed", "disabled", "onClick"], mo = /* @__PURE__ */ G({
231
235
  __name: "ChoiceChips",
232
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
236
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
233
237
  label: {},
234
238
  hint: {},
235
239
  error: {},
@@ -240,51 +244,51 @@ const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
240
244
  presentation: {},
241
245
  name: {},
242
246
  options: {}
243
- }, { ...ue }), {
247
+ }, { ...de }), {
244
248
  modelValue: { default: () => [] },
245
249
  modelModifiers: {}
246
250
  }),
247
251
  emits: ["update:modelValue"],
248
252
  setup(o) {
249
- const t = o, e = ae(o, "modelValue"), a = (n) => e.value = e.value.includes(n) ? e.value.filter((s) => s !== n) : [...e.value, n];
250
- return (n, s) => (i(), z(fe, J(l(ie)(t), {
253
+ const t = o, e = oe(o, "modelValue"), a = (n) => e.value = e.value.includes(n) ? e.value.filter((l) => l !== n) : [...e.value, n];
254
+ return (n, l) => (i(), q(ge, J(s(ue)(t), {
251
255
  value: t.options.filter((d) => e.value.includes(d.value)).map((d) => d.label).join(", ") || null,
252
256
  "row-layout": "stacked"
253
257
  }), {
254
- default: w(({ id: d, describedby: c, invalid: b }) => [
255
- t.options.length === 0 ? (i(), y("span", ua, "—")) : (i(), y("div", {
258
+ default: C(({ id: d, describedby: m, invalid: b }) => [
259
+ t.options.length === 0 ? (i(), g("span", sa, "—")) : (i(), g("div", {
256
260
  key: 1,
257
261
  id: d,
258
262
  role: "group",
259
263
  "aria-label": t.label,
260
- "aria-describedby": c,
264
+ "aria-describedby": m,
261
265
  "aria-invalid": b || void 0,
262
266
  class: "flex flex-wrap gap-1.5 py-1",
263
267
  "data-test": "choice-chips"
264
268
  }, [
265
- (i(!0), y(te, null, xe(t.options, (g) => (i(), y("button", {
266
- key: g.value,
269
+ (i(!0), g(ne, null, xe(t.options, (h) => (i(), g("button", {
270
+ key: h.value,
267
271
  type: "button",
268
- "aria-pressed": e.value.includes(g.value),
269
- disabled: t.disabled || g.disabled,
270
- class: O(["inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full px-3 text-subheadline transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-60", e.value.includes(g.value) ? "bg-tint-soft font-semibold text-content-link" : "bg-fill font-medium text-content-strong hover:bg-fill-strong"]),
271
- onClick: (_) => a(g.value)
272
+ "aria-pressed": e.value.includes(h.value),
273
+ disabled: t.disabled || h.disabled,
274
+ class: R(["inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full px-3 text-subheadline transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-60", e.value.includes(h.value) ? "bg-tint-soft font-semibold text-content-link" : "bg-fill font-medium text-content-strong hover:bg-fill-strong"]),
275
+ onClick: (k) => a(h.value)
272
276
  }, [
273
- e.value.includes(g.value) ? (i(), z(l(Z), {
277
+ e.value.includes(h.value) ? (i(), q(s(H), {
274
278
  key: 0,
275
279
  name: "checkCustom",
276
280
  size: 12
277
- })) : V("", !0),
278
- W(" " + S(g.label), 1)
279
- ], 10, ca))), 128))
280
- ], 8, da))
281
+ })) : D("", !0),
282
+ Y(" " + $(h.label), 1)
283
+ ], 10, ra))), 128))
284
+ ], 8, na))
281
285
  ]),
282
286
  _: 1
283
287
  }, 16, ["value"]));
284
288
  }
285
- }), fa = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], yo = /* @__PURE__ */ N({
289
+ }), ia = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], vo = /* @__PURE__ */ G({
286
290
  __name: "ComboField",
287
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
291
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
288
292
  label: {},
289
293
  hint: {},
290
294
  error: {},
@@ -303,52 +307,52 @@ const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
303
307
  limit: {},
304
308
  recents: {},
305
309
  width: {}
306
- }, { ...ue, options: void 0, search: void 0, selected: null, placeholder: void 0, minLength: 1, debounce: 300, limit: 30, recents: void 0, width: "md" }), {
310
+ }, { ...de, options: void 0, search: void 0, selected: null, placeholder: void 0, minLength: 1, debounce: 300, limit: 30, recents: void 0, width: "md" }), {
307
311
  modelValue: { default: null },
308
312
  modelModifiers: {}
309
313
  }),
310
- emits: /* @__PURE__ */ le(["picked"], ["update:modelValue"]),
314
+ emits: /* @__PURE__ */ se(["picked"], ["update:modelValue"]),
311
315
  setup(o, { expose: t, emit: e }) {
312
- const a = o, n = ae(o, "modelValue"), s = e, { t: d } = ee(), c = !!lt(), b = Le("text", () => a.error ? "error" : a.disabled ? "locked" : "rest"), g = h(() => c ? xt(a.width) : "w-full"), _ = K("input"), x = K("anchor"), r = Te(null), u = Te(""), v = _t({
316
+ const a = o, n = oe(o, "modelValue"), l = e, { t: d } = Q(), m = !!tt(), b = Te("text", () => a.error ? "error" : a.disabled ? "locked" : "rest"), h = y(() => m ? vt(a.width) : "w-full"), k = P("input"), x = P("anchor"), r = De(null), u = De(""), v = bt({
313
317
  source: () => a.search ?? a.options,
314
318
  minLength: () => a.minLength,
315
319
  debounce: () => a.debounce,
316
320
  limit: () => a.limit,
317
321
  listAllWhenEmpty: !0,
318
322
  recents: () => a.recents
319
- }), { items: C, open: B, status: k, highlighted: E, showingRecent: $ } = v, q = h(() => {
320
- const I = n.value;
321
- return I === null ? null : [r.value, a.selected, ...a.options ?? []].find((A) => A?.value === I) ?? null;
323
+ }), { items: F, open: B, status: _, highlighted: E, showingRecent: w } = v, O = y(() => {
324
+ const N = n.value;
325
+ return N === null ? null : [r.value, a.selected, ...a.options ?? []].find((W) => W?.value === N) ?? null;
322
326
  });
323
- de(q, (I) => {
324
- B.value || (u.value = I?.label ?? "");
327
+ re(O, (N) => {
328
+ B.value || (u.value = N?.label ?? "");
325
329
  }, { immediate: !0 });
326
- function M(I) {
327
- u.value = I.target.value, v.ask(u.value), u.value === "" && (n.value = null, r.value = null);
330
+ function T(N) {
331
+ u.value = N.target.value, v.ask(u.value), u.value === "" && (n.value = null, r.value = null);
328
332
  }
329
- function P() {
333
+ function A() {
330
334
  a.disabled || v.show("");
331
335
  }
332
- function Q(I) {
333
- v.close(), v.remember(I), r.value = I, n.value = I.value, u.value = I.label, s("picked", I);
336
+ function Z(N) {
337
+ v.close(), v.remember(N), r.value = N, n.value = N.value, u.value = N.label, l("picked", N);
334
338
  }
335
- function X() {
336
- v.close(), u.value = q.value?.label ?? "";
339
+ function ee() {
340
+ v.close(), u.value = O.value?.label ?? "";
337
341
  }
338
- const Y = h(() => wt(B.value, C.value.length, k.value, !0));
339
- return t({ focus: () => _.value?.focus() }), (I, A) => (i(), z(fe, J(l(ie)(a), {
340
- value: q.value?.label ?? null
342
+ const X = y(() => gt(B.value, F.value.length, _.value, !0));
343
+ return t({ focus: () => k.value?.focus() }), (N, W) => (i(), q(ge, J(s(ue)(a), {
344
+ value: O.value?.label ?? null
341
345
  }), {
342
- default: w(({ id: H, describedby: U, invalid: oe }) => [
346
+ default: C(({ id: U, describedby: K, invalid: te }) => [
343
347
  p("div", {
344
348
  ref_key: "anchor",
345
349
  ref: x,
346
- class: O(["flex items-center gap-1.5", [l(b), g.value]])
350
+ class: R(["flex items-center gap-1.5", [s(b), h.value]])
347
351
  }, [
348
352
  p("input", {
349
- id: H,
353
+ id: U,
350
354
  ref_key: "input",
351
- ref: _,
355
+ ref: k,
352
356
  role: "combobox",
353
357
  type: "text",
354
358
  autocomplete: "off",
@@ -358,64 +362,51 @@ const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
358
362
  disabled: a.disabled,
359
363
  required: a.required,
360
364
  "aria-autocomplete": "list",
361
- "aria-expanded": Y.value,
362
- "aria-controls": `${H}-list`,
363
- "aria-activedescendant": Y.value && l(C).length > 0 ? `${H}-option-${l(E)}` : void 0,
365
+ "aria-expanded": X.value,
366
+ "aria-controls": `${U}-list`,
367
+ "aria-activedescendant": X.value && s(F).length > 0 ? `${U}-option-${s(E)}` : void 0,
364
368
  "aria-required": a.required || void 0,
365
- "aria-invalid": oe || void 0,
366
- "aria-describedby": U,
367
- class: O(["block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed", c ? "compact:text-right" : ""]),
368
- onInput: M,
369
- onFocus: P,
370
- onBlur: X,
371
- onKeydown: A[0] || (A[0] = (se) => l(v).keydown(se, { pick: Q, enterNeedsMove: !1 }))
372
- }, null, 42, fa),
373
- j(l(Z), {
369
+ "aria-invalid": te || void 0,
370
+ "aria-describedby": K,
371
+ class: R(["block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed", m ? "compact:text-right" : ""]),
372
+ onInput: T,
373
+ onFocus: A,
374
+ onBlur: ee,
375
+ onKeydown: W[0] || (W[0] = (ae) => s(v).keydown(ae, { pick: Z, enterNeedsMove: !1 }))
376
+ }, null, 42, ia),
377
+ M(s(H), {
374
378
  name: "search",
375
379
  size: 14,
376
380
  class: "shrink-0 text-content-muted"
377
381
  })
378
382
  ], 2),
379
- j(kt, {
380
- id: H,
383
+ M(pt, {
384
+ id: U,
381
385
  anchor: x.value,
382
- open: l(B),
383
- items: l(C),
384
- highlighted: l(E),
386
+ open: s(B),
387
+ items: s(F),
388
+ highlighted: s(E),
385
389
  query: u.value,
386
- status: l(k),
387
- recent: l($),
390
+ status: s(_),
391
+ recent: s(w),
388
392
  "empty-message": !0,
389
- hint: l(d)("core.form.suggestions.keys_pick"),
390
- onPick: Q,
391
- onHover: A[1] || (A[1] = (se) => l(v).highlight(se))
393
+ hint: s(d)("core.form.suggestions.keys_pick"),
394
+ onPick: Z,
395
+ onHover: W[1] || (W[1] = (ae) => s(v).highlight(ae))
392
396
  }, null, 8, ["id", "anchor", "open", "items", "highlighted", "query", "status", "recent", "hint"])
393
397
  ]),
394
398
  _: 1
395
399
  }, 16, ["value"]));
396
400
  }
397
- });
398
- function it(o) {
399
- const { t } = ee(), e = h(() => [t("core.form.time.words.now").toLowerCase(), "now"]);
400
- return {
401
- placeholder: h(() => t("core.form.time.placeholder")),
402
- parse(a) {
403
- if (e.value.includes(a.trim().toLowerCase())) return { value: Se(o()) };
404
- const n = Ct(a, o());
405
- return "time" in n ? { value: n.time } : { error: n.error === "step" ? t("core.form.time.step", { step: o() }) : t("core.form.time.invalid") };
406
- },
407
- shortcuts: (a) => (a ?? $t).map((n) => St(n, t("core.form.time.now"), Se(o())))
408
- };
409
- }
410
- const ma = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], va = ["aria-label", "onClick"], pa = {
401
+ }), ua = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], da = ["aria-label", "onClick"], ca = {
411
402
  class: "-m-3 flex",
412
403
  "data-test": "date-time-popover"
413
- }, ba = { class: "flex w-75 flex-col gap-2.5 border-r border-border-separator p-3.5" }, ha = {
404
+ }, fa = { class: "flex w-75 flex-col gap-2.5 border-r border-border-separator p-3.5" }, ma = {
414
405
  key: 0,
415
406
  class: "border-t border-border-separator pt-2.5"
416
- }, ya = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, ga = ["for"], xa = ["id", "value", "placeholder", "aria-invalid"], ka = ["onClick"], go = /* @__PURE__ */ N({
407
+ }, va = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, pa = ["for"], ba = ["id", "value", "placeholder", "aria-invalid"], ga = ["onClick"], po = /* @__PURE__ */ G({
417
408
  __name: "DateTimeField",
418
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
409
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
419
410
  label: {},
420
411
  hint: {},
421
412
  error: {},
@@ -431,185 +422,185 @@ const ma = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
431
422
  openOn: {},
432
423
  minuteStep: {},
433
424
  quickPicks: {}
434
- }, { ...ue, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, minuteStep: 1, quickPicks: void 0 }), {
425
+ }, { ...de, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, minuteStep: 1, quickPicks: void 0 }), {
435
426
  modelValue: { default: null },
436
427
  modelModifiers: {}
437
428
  }),
438
429
  emits: ["update:modelValue"],
439
430
  setup(o, { expose: t }) {
440
- const e = o, a = ae(o, "modelValue"), { t: n } = ee(), s = rt(), d = qe(), c = K("input"), b = K("popover"), g = K("calendar"), _ = K("sheet"), x = h(() => ({ min: e.min?.slice(0, 10), max: e.max?.slice(0, 10), disabled: e.disabledDates })), r = h(() => e.min && e.min.length === 10 ? `${e.min}T00:00` : e.min), u = h(() => e.max && e.max.length === 10 ? `${e.max}T23:59` : e.max), v = (F, R) => !Dt(R, { disabled: e.disabledDates }) && (!r.value || F >= r.value) && (!u.value || F <= u.value), C = Ft(() => x.value), B = it(() => e.minuteStep), k = h(() => _e(a.value));
441
- function E(F) {
442
- const { date: R, time: ve } = Vt(F), f = R === null ? k.value.day ?? Fe() : C.parse(R);
443
- if (!f) return { error: C.invalidMessage() };
444
- let T = k.value.time ?? Se(e.minuteStep);
445
- if (ve !== null) {
446
- const L = B.parse(ve);
431
+ const e = o, a = oe(o, "modelValue"), { t: n } = Q(), l = Bt(), d = Ee(), m = P("input"), b = P("popover"), h = P("calendar"), k = P("sheet"), x = y(() => ({ min: e.min?.slice(0, 10), max: e.max?.slice(0, 10), disabled: e.disabledDates })), r = y(() => e.min && e.min.length === 10 ? `${e.min}T00:00` : e.min), u = y(() => e.max && e.max.length === 10 ? `${e.max}T23:59` : e.max), v = (S, j) => !$t(j, { disabled: e.disabledDates }) && (!r.value || S >= r.value) && (!u.value || S <= u.value), F = Ct(() => x.value), B = zt(() => e.minuteStep), _ = y(() => ke(a.value));
432
+ function E(S) {
433
+ const { date: j, time: fe } = Lt(S), c = j === null ? _.value.day ?? Ce() : F.parse(j);
434
+ if (!c) return { error: F.invalidMessage() };
435
+ let V = _.value.time ?? Be(e.minuteStep);
436
+ if (fe !== null) {
437
+ const L = B.parse(fe);
447
438
  if ("error" in L) return L;
448
- T = L.value;
439
+ V = L.value;
449
440
  }
450
- const m = we(f, T);
451
- return v(m, f) ? { value: m } : { error: C.unavailableMessage() };
441
+ const f = we(c, V);
442
+ return v(f, c) ? { value: f } : { error: F.unavailableMessage() };
452
443
  }
453
- const $ = Oe({ model: a, display: (F) => `${s.date(_e(F).day)} ${_e(F).time ?? ""}`.trim(), parse: E }), q = h({
454
- get: () => k.value.time,
455
- set: (F) => {
456
- F && Re(F) && (a.value = we(k.value.day ?? Fe(), F));
444
+ const w = Ae({ model: a, display: (S) => `${l.date(ke(S).day)} ${ke(S).time ?? ""}`.trim(), parse: E }), O = y({
445
+ get: () => _.value.time,
446
+ set: (S) => {
447
+ S && ht(S) && (a.value = we(_.value.day ?? Ce(), S));
457
448
  }
458
- }), M = Oe({ model: q, display: (F) => F, parse: B.parse }), P = Bt(() => e.quickPicks ?? (d.value ? void 0 : []), () => d.value, () => x.value), Q = h(() => e.error || $.message.value || M.message.value), X = h(() => a.value ? s.dateTime(a.value) : null), Y = Le("date", () => Q.value ? "error" : e.disabled ? "locked" : "rest"), I = h(() => {
459
- const F = $.typed.value;
460
- return F ? _e(F).day ?? null : null;
461
- }), A = h(() => I.value ?? (Lt(k.value.day) ? k.value.day : null)), H = h(() => $.typed.value ? _e($.typed.value).time : k.value.time);
462
- function U(F) {
463
- F && $.set(we(F, k.value.time ?? Se(e.minuteStep)));
449
+ }), T = Ae({ model: O, display: (S) => S, parse: B.parse }), A = Ft(() => e.quickPicks ?? (d.value ? void 0 : []), () => d.value, () => x.value), Z = y(() => e.error || w.message.value || T.message.value), ee = y(() => a.value ? l.dateTime(a.value) : null), X = Te("date", () => Z.value ? "error" : e.disabled ? "locked" : "rest"), N = y(() => {
450
+ const S = w.typed.value;
451
+ return S ? ke(S).day ?? null : null;
452
+ }), W = y(() => N.value ?? (yt(_.value.day) ? _.value.day : null)), U = y(() => w.typed.value ? ke(w.typed.value).time : _.value.time);
453
+ function K(S) {
454
+ S && w.set(we(S, _.value.time ?? Be(e.minuteStep)));
464
455
  }
465
- function oe(F) {
466
- F && $.set(we(k.value.day ?? Fe(), F));
456
+ function te(S) {
457
+ S && w.set(we(_.value.day ?? Ce(), S));
467
458
  }
468
- function se(F) {
469
- $.set(we(Fe(), Se(e.minuteStep))), F();
459
+ function ae(S) {
460
+ w.set(we(Ce(), Be(e.minuteStep))), S();
470
461
  }
471
- const ge = Ie();
472
- async function me(F) {
473
- e.disabled || (b.value?.present(), F && (await ce(), await ce(), g.value?.focus()));
462
+ const he = Oe();
463
+ async function ce(S) {
464
+ e.disabled || (b.value?.present(), S && (await ye(), await ye(), h.value?.focus()));
474
465
  }
475
- function ke(F) {
476
- F.key === "Enter" ? ($.commit(), b.value?.dismiss()) : F.key === "ArrowDown" && (F.preventDefault(), me(!0));
466
+ function _e(S) {
467
+ S.key === "Enter" ? (w.commit(), b.value?.dismiss()) : S.key === "ArrowDown" && (S.preventDefault(), ce(!0));
477
468
  }
478
- return t({ focus: () => c.value?.focus() }), (F, R) => (i(), z(fe, J({ ...l(ie)(e), error: Q.value }, {
479
- value: X.value,
469
+ return t({ focus: () => m.value?.focus() }), (S, j) => (i(), q(ge, J({ ...s(ue)(e), error: Z.value }, {
470
+ value: ee.value,
480
471
  "value-style": "numeric"
481
472
  }), {
482
- default: w(({ id: ve, describedby: f, invalid: T }) => [
483
- l(d) ? (i(), y(te, { key: 0 }, [
484
- j(Ke, J({ id: ve, "aria-describedby": f }, {
473
+ default: C(({ id: fe, describedby: c, invalid: V }) => [
474
+ s(d) ? (i(), g(ne, { key: 0 }, [
475
+ M(at, J({ id: fe, "aria-describedby": c }, {
485
476
  disabled: e.disabled,
486
- invalid: T,
487
- placeholder: l(n)("core.form.select.choose"),
488
- onClick: R[0] || (R[0] = (m) => _.value?.present())
477
+ invalid: V,
478
+ placeholder: s(n)("core.form.select.choose"),
479
+ onClick: j[0] || (j[0] = (f) => k.value?.present())
489
480
  }), {
490
- default: w(() => [
491
- a.value ? (i(), y(te, { key: 0 }, [
492
- W(S(l($).text.value), 1)
493
- ], 64)) : V("", !0)
481
+ default: C(() => [
482
+ a.value ? (i(), g(ne, { key: 0 }, [
483
+ Y($(s(w).text.value), 1)
484
+ ], 64)) : D("", !0)
494
485
  ]),
495
486
  _: 1
496
487
  }, 16, ["disabled", "invalid", "placeholder"]),
497
- j(ot, {
488
+ M(xt, {
498
489
  ref_key: "sheet",
499
- ref: _,
500
- title: e.label ?? l(n)("core.form.date.calendar"),
490
+ ref: k,
491
+ title: e.label ?? s(n)("core.form.date.calendar"),
501
492
  mode: "datetime",
502
493
  "model-value": a.value,
503
494
  min: x.value.min,
504
495
  max: x.value.max,
505
496
  "disabled-dates": e.disabledDates,
506
497
  "open-on": e.openOn,
507
- shortcuts: l(P),
498
+ shortcuts: s(A),
508
499
  step: e.minuteStep,
509
500
  clearable: !e.required,
510
- "onUpdate:modelValue": l($).set
501
+ "onUpdate:modelValue": s(w).set
511
502
  }, null, 8, ["title", "model-value", "min", "max", "disabled-dates", "open-on", "shortcuts", "step", "clearable", "onUpdate:modelValue"])
512
- ], 64)) : (i(), z(Ve, {
503
+ ], 64)) : (i(), q(Ie, {
513
504
  key: 1,
514
505
  ref_key: "popover",
515
506
  ref: b,
516
- label: e.label ?? l(n)("core.form.date.calendar"),
507
+ label: e.label ?? s(n)("core.form.date.calendar"),
517
508
  width: "auto",
518
509
  placement: "bottom-start",
519
510
  arrow: !1,
520
511
  autofocus: !1
521
512
  }, {
522
- trigger: w(({ attrs: m, presented: L }) => [
513
+ trigger: C(({ attrs: f, presented: L }) => [
523
514
  p("div", {
524
- class: O(["inline-flex max-w-full items-center gap-2", l(Y)])
515
+ class: R(["inline-flex max-w-full items-center gap-2", s(X)])
525
516
  }, [
526
517
  p("input", J({
527
- id: ve,
518
+ id: fe,
528
519
  ref_key: "input",
529
- ref: c
530
- }, m, {
520
+ ref: m
521
+ }, f, {
531
522
  type: "text",
532
523
  role: "combobox",
533
524
  autocomplete: "off",
534
525
  size: "20",
535
526
  name: e.name,
536
- value: l($).text.value,
537
- placeholder: l(C).placeholder.value,
527
+ value: s(w).text.value,
528
+ placeholder: s(F).placeholder.value,
538
529
  disabled: e.disabled,
539
530
  required: e.required,
540
531
  "aria-required": e.required || void 0,
541
- "aria-invalid": T || void 0,
542
- "aria-describedby": f,
532
+ "aria-invalid": V || void 0,
533
+ "aria-describedby": c,
543
534
  class: "block min-h-7 min-w-0 border-0 bg-transparent py-1 pl-2.5 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
544
- onInput: R[1] || (R[1] = (D) => l($).input(D.target.value)),
545
- onBlur: R[2] || (R[2] = (D) => l($).commit()),
546
- onKeydown: ke,
547
- onClick: R[3] || (R[3] = (D) => me(!1))
548
- }), null, 16, ma),
549
- e.disabled ? V("", !0) : (i(), y("button", {
535
+ onInput: j[1] || (j[1] = (z) => s(w).input(z.target.value)),
536
+ onBlur: j[2] || (j[2] = (z) => s(w).commit()),
537
+ onKeydown: _e,
538
+ onClick: j[3] || (j[3] = (z) => ce(!1))
539
+ }), null, 16, ua),
540
+ e.disabled ? D("", !0) : (i(), g("button", {
550
541
  key: 0,
551
542
  type: "button",
552
543
  tabindex: "-1",
553
- "aria-label": l(n)("core.form.date.open"),
544
+ "aria-label": s(n)("core.form.date.open"),
554
545
  class: "mr-2 flex shrink-0 cursor-pointer items-center text-content-link",
555
- onClick: (D) => L ? b.value?.dismiss() : me(!0)
546
+ onClick: (z) => L ? b.value?.dismiss() : ce(!0)
556
547
  }, [
557
- j(l(Z), {
548
+ M(s(H), {
558
549
  name: "calendarLine",
559
550
  size: 18
560
551
  })
561
- ], 8, va))
552
+ ], 8, da))
562
553
  ], 2)
563
554
  ]),
564
- default: w(({ dismiss: m }) => [
565
- p("div", pa, [
566
- p("div", ba, [
567
- j(qt, {
555
+ default: C(({ dismiss: f }) => [
556
+ p("div", ca, [
557
+ p("div", fa, [
558
+ M(_t, {
568
559
  ref_key: "calendar",
569
- ref: g,
570
- "model-value": A.value,
560
+ ref: h,
561
+ "model-value": W.value,
571
562
  min: x.value.min,
572
563
  max: x.value.max,
573
564
  "disabled-dates": e.disabledDates,
574
565
  "open-on": e.openOn,
575
- "onUpdate:modelValue": U
566
+ "onUpdate:modelValue": K
576
567
  }, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on"]),
577
- l(P).length > 0 ? (i(), y("div", ha, [
578
- j(st, {
579
- items: l(P),
580
- selected: A.value,
581
- onPick: U
568
+ s(A).length > 0 ? (i(), g("div", ma, [
569
+ M(kt, {
570
+ items: s(A),
571
+ selected: W.value,
572
+ onPick: K
582
573
  }, null, 8, ["items", "selected"])
583
- ])) : V("", !0)
574
+ ])) : D("", !0)
584
575
  ]),
585
- p("div", ya, [
576
+ p("div", va, [
586
577
  p("label", {
587
- for: l(ge),
578
+ for: s(he),
588
579
  class: "text-footnote font-semibold text-content-muted"
589
- }, S(l(n)("core.form.time.label")), 9, ga),
580
+ }, $(s(n)("core.form.time.label")), 9, pa),
590
581
  p("input", {
591
- id: l(ge),
582
+ id: s(he),
592
583
  type: "text",
593
584
  autocomplete: "off",
594
585
  inputmode: "numeric",
595
- value: l(M).text.value,
596
- placeholder: l(B).placeholder.value,
597
- "aria-invalid": l(M).message.value ? !0 : void 0,
586
+ value: s(T).text.value,
587
+ placeholder: s(B).placeholder.value,
588
+ "aria-invalid": s(T).message.value ? !0 : void 0,
598
589
  class: "rounded-control bg-fill p-1.5 text-center text-[20px] font-semibold tabular-nums text-content-strong placeholder:text-base placeholder:font-normal placeholder:text-content-disabled focus:outline-2 focus:outline-border-focus",
599
- onInput: R[4] || (R[4] = (L) => l(M).input(L.target.value)),
600
- onBlur: R[5] || (R[5] = (L) => l(M).commit()),
601
- onKeydown: R[6] || (R[6] = Ce(he((L) => l(M).commit(), ["prevent"]), ["enter"]))
602
- }, null, 40, xa),
603
- j(nt, {
604
- "model-value": H.value,
590
+ onInput: j[4] || (j[4] = (L) => s(T).input(L.target.value)),
591
+ onBlur: j[5] || (j[5] = (L) => s(T).commit()),
592
+ onKeydown: j[6] || (j[6] = Se(pe((L) => s(T).commit(), ["prevent"]), ["enter"]))
593
+ }, null, 40, ba),
594
+ M(wt, {
595
+ "model-value": U.value,
605
596
  step: e.minuteStep,
606
- "onUpdate:modelValue": oe
597
+ "onUpdate:modelValue": te
607
598
  }, null, 8, ["model-value", "step"]),
608
599
  p("button", {
609
600
  type: "button",
610
601
  class: "cursor-pointer self-start rounded-full bg-tint-soft px-2.5 py-1.5 text-footnote font-medium text-content-link focus-visible:outline-2 focus-visible:outline-border-focus",
611
- onClick: (L) => se(m)
612
- }, S(l(n)("core.form.time.now")), 9, ka)
602
+ onClick: (L) => ae(f)
603
+ }, $(s(n)("core.form.time.now")), 9, ga)
613
604
  ])
614
605
  ])
615
606
  ]),
@@ -620,27 +611,27 @@ const ma = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
620
611
  }, 16, ["value"]));
621
612
  }
622
613
  });
623
- function ut(o, t = {}) {
614
+ function lt(o, t = {}) {
624
615
  const e = t.accept ?? [];
625
616
  if (e.length > 0) {
626
- const a = o.name.lastIndexOf("."), n = a === -1 ? "" : o.name.slice(a).toLowerCase(), s = o.type.toLowerCase();
627
- if (!e.some((c) => {
628
- const b = c.trim().toLowerCase();
629
- return b.startsWith(".") ? b === n : b.endsWith("/*") ? s.startsWith(b.slice(0, -1)) : b === s;
617
+ const a = o.name.lastIndexOf("."), n = a === -1 ? "" : o.name.slice(a).toLowerCase(), l = o.type.toLowerCase();
618
+ if (!e.some((m) => {
619
+ const b = m.trim().toLowerCase();
620
+ return b.startsWith(".") ? b === n : b.endsWith("/*") ? l.startsWith(b.slice(0, -1)) : b === l;
630
621
  })) return "invalid_type";
631
622
  }
632
623
  return (t.maxSize ?? 0) > 0 && o.size > (t.maxSize ?? 0) ? "too_large" : null;
633
624
  }
634
- function Be(o) {
625
+ function Fe(o) {
635
626
  return o < 1024 ? `${o} B` : o < 1024 * 1024 ? `${Math.round(o / 1024)} KB` : `${(o / (1024 * 1024)).toFixed(o % (1024 * 1024) === 0 ? 0 : 1)} MB`;
636
627
  }
637
- const _a = { class: "w-full" }, wa = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], $a = {
628
+ const ha = { class: "w-full" }, ya = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], xa = {
638
629
  key: 0,
639
630
  class: "flex items-center gap-3 rounded-group bg-fill p-3",
640
631
  "data-test": "file-selected"
641
- }, Sa = { class: "min-w-0 flex-1" }, Ca = { class: "truncate text-body font-medium text-content-strong" }, Fa = { class: "text-footnote text-content-muted" }, Ba = ["disabled", "aria-label", "title"], La = ["aria-disabled"], qa = { class: "font-semibold text-content-link" }, Va = { class: "text-content-muted" }, xo = /* @__PURE__ */ N({
632
+ }, _a = { class: "min-w-0 flex-1" }, ka = { class: "truncate text-body font-medium text-content-strong" }, wa = { class: "text-footnote text-content-muted" }, $a = ["disabled", "aria-label", "title"], Sa = ["aria-disabled"], Ca = { class: "font-semibold text-content-link" }, Fa = { class: "text-content-muted" }, bo = /* @__PURE__ */ G({
642
633
  __name: "FileField",
643
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
634
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
644
635
  label: {},
645
636
  hint: {},
646
637
  error: {},
@@ -653,91 +644,91 @@ const _a = { class: "w-full" }, wa = ["id", "accept", "disabled", "aria-describe
653
644
  variant: {},
654
645
  accept: {},
655
646
  maxSize: {}
656
- }, { ...ue, variant: "button", accept: () => [], maxSize: 0 }), {
647
+ }, { ...de, variant: "button", accept: () => [], maxSize: 0 }), {
657
648
  modelValue: { default: null },
658
649
  modelModifiers: {}
659
650
  }),
660
651
  emits: ["update:modelValue"],
661
652
  setup(o, { expose: t }) {
662
- const e = o, a = ae(o, "modelValue"), { t: n } = ee(), s = K("chooser"), d = G(!1), c = G(null), b = h(() => {
653
+ const e = o, a = oe(o, "modelValue"), { t: n } = Q(), l = P("chooser"), d = I(!1), m = I(null), b = y(() => {
663
654
  if (e.hint) return e.hint;
664
655
  const x = [];
665
- return e.accept.length && x.push(n("core.form.file.allowed", { formats: e.accept.map((r) => r.replace(/^\./, "").toUpperCase()).join(", ") })), e.maxSize > 0 && x.push(n("core.form.file.max_size", { size: Be(e.maxSize) })), x.join(" · ") || void 0;
656
+ return e.accept.length && x.push(n("core.form.file.allowed", { formats: e.accept.map((r) => r.replace(/^\./, "").toUpperCase()).join(", ") })), e.maxSize > 0 && x.push(n("core.form.file.max_size", { size: Fe(e.maxSize) })), x.join(" · ") || void 0;
666
657
  });
667
- function g(x) {
658
+ function h(x) {
668
659
  if (!x) return;
669
- const r = ut(x, { accept: e.accept, maxSize: e.maxSize });
670
- r ? (c.value = r === "invalid_type" ? n("core.form.file.invalid_type") : n("core.form.file.too_large", { size: Be(e.maxSize) }), a.value = null) : (c.value = null, a.value = x);
660
+ const r = lt(x, { accept: e.accept, maxSize: e.maxSize });
661
+ r ? (m.value = r === "invalid_type" ? n("core.form.file.invalid_type") : n("core.form.file.too_large", { size: Fe(e.maxSize) }), a.value = null) : (m.value = null, a.value = x);
671
662
  }
672
- function _() {
673
- a.value = null, c.value = null;
663
+ function k() {
664
+ a.value = null, m.value = null;
674
665
  }
675
- return de(a, (x) => {
676
- !x && s.value && (s.value.value = "");
677
- }), t({ clear: _ }), (x, r) => (i(), z(fe, J({ ...l(ie)(e), hint: b.value, error: c.value ?? e.error }, {
666
+ return re(a, (x) => {
667
+ !x && l.value && (l.value.value = "");
668
+ }), t({ clear: k }), (x, r) => (i(), q(ge, J({ ...s(ue)(e), hint: b.value, error: m.value ?? e.error }, {
678
669
  value: a.value?.name ?? null,
679
670
  "row-layout": "stacked"
680
671
  }), {
681
- default: w(({ id: u, describedby: v, invalid: C }) => [
682
- p("div", _a, [
672
+ default: C(({ id: u, describedby: v, invalid: F }) => [
673
+ p("div", ha, [
683
674
  p("input", {
684
675
  id: u,
685
676
  ref_key: "chooser",
686
- ref: s,
677
+ ref: l,
687
678
  type: "file",
688
679
  class: "sr-only",
689
680
  tabindex: "-1",
690
681
  accept: e.accept.join(",") || void 0,
691
682
  disabled: e.disabled,
692
683
  "aria-describedby": v,
693
- "aria-invalid": C || void 0,
694
- onChange: r[0] || (r[0] = (B) => g(B.target.files?.[0]))
695
- }, null, 40, wa),
696
- a.value ? (i(), y("div", $a, [
697
- p("div", Sa, [
698
- p("p", Ca, S(a.value.name), 1),
699
- p("p", Fa, S(l(Be)(a.value.size)), 1)
684
+ "aria-invalid": F || void 0,
685
+ onChange: r[0] || (r[0] = (B) => h(B.target.files?.[0]))
686
+ }, null, 40, ya),
687
+ a.value ? (i(), g("div", xa, [
688
+ p("div", _a, [
689
+ p("p", ka, $(a.value.name), 1),
690
+ p("p", wa, $(s(Fe)(a.value.size)), 1)
700
691
  ]),
701
692
  p("button", {
702
693
  type: "button",
703
694
  disabled: e.disabled,
704
- "aria-label": l(n)("core.form.file.remove"),
705
- title: l(n)("core.form.file.remove"),
695
+ "aria-label": s(n)("core.form.file.remove"),
696
+ title: s(n)("core.form.file.remove"),
706
697
  class: "flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-border-focus disabled:cursor-not-allowed",
707
- onClick: _
698
+ onClick: k
708
699
  }, [
709
- j(l(Z), {
700
+ M(s(H), {
710
701
  name: "close",
711
702
  size: 14
712
703
  })
713
- ], 8, Ba)
714
- ])) : e.variant === "dropzone" ? (i(), y("div", {
704
+ ], 8, $a)
705
+ ])) : e.variant === "dropzone" ? (i(), g("div", {
715
706
  key: 1,
716
707
  role: "button",
717
708
  tabindex: "0",
718
709
  "data-test": "file-dropzone",
719
710
  "aria-disabled": e.disabled || void 0,
720
- class: O(["cursor-pointer rounded-group border-2 border-dashed p-6 text-center text-body transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-border-focus", d.value ? "border-border-focus bg-tint-soft" : "border-border-control hover:bg-fill"]),
721
- onClick: r[1] || (r[1] = (B) => !e.disabled && s.value?.click()),
711
+ class: R(["cursor-pointer rounded-group border-2 border-dashed p-6 text-center text-body transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-border-focus", d.value ? "border-border-focus bg-tint-soft" : "border-border-control hover:bg-fill"]),
712
+ onClick: r[1] || (r[1] = (B) => !e.disabled && l.value?.click()),
722
713
  onKeydown: [
723
- r[2] || (r[2] = Ce(he((B) => !e.disabled && s.value?.click(), ["prevent"]), ["enter"])),
724
- r[3] || (r[3] = Ce(he((B) => !e.disabled && s.value?.click(), ["prevent"]), ["space"]))
714
+ r[2] || (r[2] = Se(pe((B) => !e.disabled && l.value?.click(), ["prevent"]), ["enter"])),
715
+ r[3] || (r[3] = Se(pe((B) => !e.disabled && l.value?.click(), ["prevent"]), ["space"]))
725
716
  ],
726
- onDragover: r[4] || (r[4] = he((B) => d.value = !0, ["prevent"])),
727
- onDragleave: r[5] || (r[5] = he((B) => d.value = !1, ["prevent"])),
728
- onDrop: r[6] || (r[6] = he((B) => {
729
- d.value = !1, e.disabled || g(B.dataTransfer?.files?.[0]);
717
+ onDragover: r[4] || (r[4] = pe((B) => d.value = !0, ["prevent"])),
718
+ onDragleave: r[5] || (r[5] = pe((B) => d.value = !1, ["prevent"])),
719
+ onDrop: r[6] || (r[6] = pe((B) => {
720
+ d.value = !1, e.disabled || h(B.dataTransfer?.files?.[0]);
730
721
  }, ["prevent"]))
731
722
  }, [
732
- p("span", qa, S(l(n)("core.form.file.choose")), 1),
733
- p("span", Va, S(l(n)("core.form.file.drop")), 1)
734
- ], 42, La)) : (i(), z(ye, {
723
+ p("span", Ca, $(s(n)("core.form.file.choose")), 1),
724
+ p("span", Fa, $(s(n)("core.form.file.drop")), 1)
725
+ ], 42, Sa)) : (i(), q(be, {
735
726
  key: 2,
736
727
  disabled: e.disabled,
737
- onClick: r[7] || (r[7] = (B) => s.value?.click())
728
+ onClick: r[7] || (r[7] = (B) => l.value?.click())
738
729
  }, {
739
- default: w(() => [
740
- W(S(l(n)("core.form.file.choose")), 1)
730
+ default: C(() => [
731
+ Y($(s(n)("core.form.file.choose")), 1)
741
732
  ]),
742
733
  _: 1
743
734
  }, 8, ["disabled"]))
@@ -746,7 +737,7 @@ const _a = { class: "w-full" }, wa = ["id", "accept", "disabled", "aria-describe
746
737
  _: 1
747
738
  }, 16, ["value"]));
748
739
  }
749
- }), Da = ["disabled"], ko = /* @__PURE__ */ N({
740
+ }), La = ["disabled"], go = /* @__PURE__ */ G({
750
741
  __name: "FormGroupButton",
751
742
  props: {
752
743
  label: {},
@@ -756,16 +747,16 @@ const _a = { class: "w-full" }, wa = ["id", "accept", "disabled", "aria-describe
756
747
  emits: ["click"],
757
748
  setup(o, { emit: t }) {
758
749
  const e = o, a = t;
759
- return (n, s) => (i(), z(jt, null, {
760
- default: w(() => [
761
- j(bt, { layout: "stacked" }, {
762
- default: w(() => [
750
+ return (n, l) => (i(), q(Dt, null, {
751
+ default: C(() => [
752
+ M(dt, { layout: "stacked" }, {
753
+ default: C(() => [
763
754
  p("button", {
764
755
  type: "button",
765
756
  disabled: e.disabled,
766
- class: O(["w-full py-1 text-center text-body focus-visible:outline-2 focus-visible:outline-border-focus disabled:text-content-disabled", e.tone === "critical" ? "text-content-destructive" : "text-content-link"]),
767
- onClick: s[0] || (s[0] = (d) => a("click"))
768
- }, S(e.label), 11, Da)
757
+ class: R(["w-full py-1 text-center text-body focus-visible:outline-2 focus-visible:outline-border-focus disabled:text-content-disabled", e.tone === "critical" ? "text-content-destructive" : "text-content-link"]),
758
+ onClick: l[0] || (l[0] = (d) => a("click"))
759
+ }, $(e.label), 11, La)
769
760
  ]),
770
761
  _: 1
771
762
  })
@@ -773,31 +764,31 @@ const _a = { class: "w-full" }, wa = ["id", "accept", "disabled", "aria-describe
773
764
  _: 1
774
765
  }));
775
766
  }
776
- }), _o = /* @__PURE__ */ N({
767
+ }), ho = /* @__PURE__ */ G({
777
768
  __name: "FormIndent",
778
769
  setup(o) {
779
- return je(ht, yt() + 1), (t, e) => ne(t.$slots, "default");
770
+ return Ve(ct, ft() + 1), (t, e) => le(t.$slots, "default");
780
771
  }
781
772
  });
782
- function za(o, t) {
773
+ function Ba(o, t) {
783
774
  return t.filter((e) => (o?.[e] ?? "").trim() === "");
784
775
  }
785
- const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Ma = ["id", "value", "lang", "name", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Oa = {
776
+ const za = ["id", "aria-labelledby"], Da = ["id", "value", "lang", "name", "rows", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Va = ["id", "value", "lang", "name", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], qa = {
786
777
  key: 0,
787
778
  class: "mt-1.5 flex items-center gap-2"
788
- }, Ra = {
779
+ }, Ma = {
789
780
  key: 0,
790
781
  class: "flex-1 text-footnote text-status-warning-content",
791
782
  "data-test": "i18n-missing"
792
- }, Ea = {
783
+ }, Oa = {
793
784
  key: 1,
794
785
  class: "flex-1"
795
- }, Ia = ["aria-label"], Ga = ["id", "aria-selected", "tabindex", "aria-controls", "aria-label", "title", "onClick", "onKeydown"], Na = ["data-state"], Ka = { class: "w-full" }, Pa = { class: "whitespace-pre-line break-words text-body text-content-strong" }, Aa = ["aria-expanded"], Ua = { class: "flex-1" }, Ya = {
786
+ }, ja = ["aria-label"], Ra = ["id", "aria-selected", "tabindex", "aria-controls", "aria-label", "title", "onClick", "onKeydown"], Ta = ["data-state"], Ea = { class: "w-full" }, Ia = { class: "whitespace-pre-line break-words text-body text-content-strong" }, Ga = ["aria-expanded"], Na = { class: "flex-1" }, Ka = {
796
787
  key: 0,
797
788
  class: "mt-1 flex flex-col gap-1.5"
798
- }, Wa = ["title"], wo = /* @__PURE__ */ N({
789
+ }, Pa = ["title"], yo = /* @__PURE__ */ G({
799
790
  __name: "I18nField",
800
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
791
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
801
792
  label: {},
802
793
  hint: {},
803
794
  error: {},
@@ -814,191 +805,191 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
814
805
  rows: {},
815
806
  placeholder: {},
816
807
  maxLength: {}
817
- }, { ...ue, locales: void 0, defaultLocale: void 0, requiredLocales: () => [], multiline: !1, rows: 3, placeholder: void 0, maxLength: void 0 }), {
808
+ }, { ...de, locales: void 0, defaultLocale: void 0, requiredLocales: () => [], multiline: !1, rows: 3, placeholder: void 0, maxLength: void 0 }), {
818
809
  modelValue: { default: () => ({}) },
819
810
  modelModifiers: {}
820
811
  }),
821
812
  emits: ["update:modelValue"],
822
813
  setup(o, { expose: t }) {
823
- const e = o, a = ae(o, "modelValue"), { t: n, locale: s, availableLocales: d } = ee(), c = et(Ot, null), b = Ie(), g = K("field"), _ = K("root"), { editable: x } = at(e), r = Le(e.multiline ? "area" : "text", () => e.error || oe.value ? "error" : e.disabled ? "locked" : "rest"), u = h(() => e.locales ?? c?.locales ?? d), v = h(() => e.defaultLocale ?? u.value[0] ?? ""), C = h(() => u.value.includes(v.value) ? [v.value, ...u.value.filter((m) => m !== v.value)] : u.value), B = G(null), k = h(() => B.value !== null && C.value.includes(B.value) ? B.value : C.value.includes(s.value) ? s.value : v.value), E = (m) => a.value[m] ?? "", $ = (m) => E(m).trim() !== "", q = (m) => m.toUpperCase();
824
- function M(m) {
814
+ const e = o, a = oe(o, "modelValue"), { t: n, locale: l, availableLocales: d } = Q(), m = Qe(qt, null), b = Oe(), h = P("field"), k = P("root"), { editable: x } = et(e), r = Te(e.multiline ? "area" : "text", () => e.error || te.value ? "error" : e.disabled ? "locked" : "rest"), u = y(() => e.locales ?? m?.locales ?? d), v = y(() => e.defaultLocale ?? u.value[0] ?? ""), F = y(() => u.value.includes(v.value) ? [v.value, ...u.value.filter((f) => f !== v.value)] : u.value), B = I(null), _ = y(() => B.value !== null && F.value.includes(B.value) ? B.value : F.value.includes(l.value) ? l.value : v.value), E = (f) => a.value[f] ?? "", w = (f) => E(f).trim() !== "", O = (f) => f.toUpperCase();
815
+ function T(f) {
825
816
  try {
826
- return new Intl.DisplayNames([s.value], { type: "language" }).of(m) ?? q(m);
817
+ return new Intl.DisplayNames([l.value], { type: "language" }).of(f) ?? O(f);
827
818
  } catch {
828
- return q(m);
819
+ return O(f);
829
820
  }
830
821
  }
831
- const P = (m) => m.map(M).join(", ");
832
- function Q(m, L) {
833
- a.value = { ...a.value, [m]: L };
822
+ const A = (f) => f.map(T).join(", ");
823
+ function Z(f, L) {
824
+ a.value = { ...a.value, [f]: L };
834
825
  }
835
- const X = (m) => `${b}-tab-${m}`;
836
- function Y(m, L) {
837
- B.value = m, L && ce(() => g.value?.focus());
826
+ const ee = (f) => `${b}-tab-${f}`;
827
+ function X(f, L) {
828
+ B.value = f, L && ye(() => h.value?.focus());
838
829
  }
839
- function I(m, L) {
840
- const D = C.value.length - 1, pe = { ArrowRight: L + 1, ArrowLeft: L - 1, Home: 0, End: D }[m.key];
841
- if (pe === void 0) return;
842
- m.preventDefault();
843
- const be = C.value[(pe + C.value.length) % C.value.length];
844
- be !== void 0 && (Y(be, !1), ce(() => document.getElementById(X(be))?.focus()));
830
+ function N(f, L) {
831
+ const z = F.value.length - 1, me = { ArrowRight: L + 1, ArrowLeft: L - 1, Home: 0, End: z }[f.key];
832
+ if (me === void 0) return;
833
+ f.preventDefault();
834
+ const ve = F.value[(me + F.value.length) % F.value.length];
835
+ ve !== void 0 && (X(ve, !1), ye(() => document.getElementById(ee(ve))?.focus()));
845
836
  }
846
- const A = G(!1);
847
- function H(m) {
848
- _.value?.contains(m.relatedTarget) || (A.value = !0);
837
+ const W = I(!1);
838
+ function U(f) {
839
+ k.value?.contains(f.relatedTarget) || (W.value = !0);
849
840
  }
850
- const U = h(() => za(a.value, e.requiredLocales)), oe = h(() => A.value && U.value.length > 0 ? n("core.form.i18n.required", { languages: P(U.value) }) : void 0), se = h(() => e.requiredLocales.length > 0 ? U.value.length === 0 : C.value.some($)), ge = h(() => C.value.filter((m) => !$(m) && !(oe.value && U.value.includes(m)))), me = h(() => $(v.value) && C.value.some((m) => m !== v.value && !$(m)));
851
- function ke() {
852
- const m = E(v.value);
853
- a.value = { ...a.value, ...Object.fromEntries(C.value.filter((L) => !$(L)).map((L) => [L, m])) };
841
+ const K = y(() => Ba(a.value, e.requiredLocales)), te = y(() => W.value && K.value.length > 0 ? n("core.form.i18n.required", { languages: A(K.value) }) : void 0), ae = y(() => e.requiredLocales.length > 0 ? K.value.length === 0 : F.value.some(w)), he = y(() => F.value.filter((f) => !w(f) && !(te.value && K.value.includes(f)))), ce = y(() => w(v.value) && F.value.some((f) => f !== v.value && !w(f)));
842
+ function _e() {
843
+ const f = E(v.value);
844
+ a.value = { ...a.value, ...Object.fromEntries(F.value.filter((L) => !w(L)).map((L) => [L, f])) };
854
845
  }
855
- const F = h(() => [s.value, v.value, ...C.value].find((m) => C.value.includes(m) && $(m))), R = h(() => C.value.filter((m) => m !== F.value)), ve = h(() => R.value.filter($).length), f = G(!1), T = h(() => e.label && !x.value && F.value ? `${e.label} · ${q(F.value)}` : e.label);
856
- return t({ focus: () => g.value?.focus() }), (m, L) => (i(), z(fe, J({ ...l(ie)(e), label: T.value, error: e.error ?? oe.value, required: e.required || e.requiredLocales.length > 0 }, {
857
- value: l(x) ? se.value ? "written" : null : F.value ? E(F.value) : null,
846
+ const S = y(() => [l.value, v.value, ...F.value].find((f) => F.value.includes(f) && w(f))), j = y(() => F.value.filter((f) => f !== S.value)), fe = y(() => j.value.filter(w).length), c = I(!1), V = y(() => e.label && !x.value && S.value ? `${e.label} · ${O(S.value)}` : e.label);
847
+ return t({ focus: () => h.value?.focus() }), (f, L) => (i(), q(ge, J({ ...s(ue)(e), label: V.value, error: e.error ?? te.value, required: e.required || e.requiredLocales.length > 0 }, {
848
+ value: s(x) ? ae.value ? "written" : null : S.value ? E(S.value) : null,
858
849
  "row-layout": "stacked"
859
- }), tt({
860
- default: w(({ id: D, describedby: pe, invalid: be }) => [
850
+ }), Ze({
851
+ default: C(({ id: z, describedby: me, invalid: ve }) => [
861
852
  p("div", {
862
853
  ref_key: "root",
863
- ref: _,
854
+ ref: k,
864
855
  class: "w-full",
865
- onFocusout: H
856
+ onFocusout: U
866
857
  }, [
867
858
  p("div", {
868
- id: `${l(b)}-panel`,
859
+ id: `${s(b)}-panel`,
869
860
  role: "tabpanel",
870
- "aria-labelledby": X(k.value)
861
+ "aria-labelledby": ee(_.value)
871
862
  }, [
872
863
  p("div", {
873
- class: O(["w-full", l(r)])
864
+ class: R(["w-full", s(r)])
874
865
  }, [
875
- e.multiline ? (i(), y("textarea", {
866
+ e.multiline ? (i(), g("textarea", {
876
867
  key: 0,
877
- id: D,
868
+ id: z,
878
869
  ref_key: "field",
879
- ref: g,
880
- value: E(k.value),
881
- lang: k.value,
870
+ ref: h,
871
+ value: E(_.value),
872
+ lang: _.value,
882
873
  name: e.name,
883
874
  rows: e.rows,
884
875
  placeholder: e.placeholder,
885
876
  maxlength: e.maxLength,
886
877
  disabled: e.disabled,
887
878
  "aria-required": e.required || void 0,
888
- "aria-invalid": be || void 0,
889
- "aria-describedby": pe,
879
+ "aria-invalid": ve || void 0,
880
+ "aria-describedby": me,
890
881
  "data-test": "i18n-input",
891
882
  class: "block w-full resize-y border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
892
- onInput: L[0] || (L[0] = (De) => Q(k.value, De.target.value))
893
- }, null, 40, ja)) : (i(), y("input", {
883
+ onInput: L[0] || (L[0] = (Le) => Z(_.value, Le.target.value))
884
+ }, null, 40, Da)) : (i(), g("input", {
894
885
  key: 1,
895
- id: D,
886
+ id: z,
896
887
  ref_key: "field",
897
- ref: g,
898
- value: E(k.value),
899
- lang: k.value,
888
+ ref: h,
889
+ value: E(_.value),
890
+ lang: _.value,
900
891
  type: "text",
901
892
  name: e.name,
902
893
  placeholder: e.placeholder,
903
894
  maxlength: e.maxLength,
904
895
  disabled: e.disabled,
905
896
  "aria-required": e.required || void 0,
906
- "aria-invalid": be || void 0,
907
- "aria-describedby": pe,
897
+ "aria-invalid": ve || void 0,
898
+ "aria-describedby": me,
908
899
  "data-test": "i18n-input",
909
900
  class: "block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
910
- onInput: L[1] || (L[1] = (De) => Q(k.value, De.target.value))
911
- }, null, 40, Ma))
901
+ onInput: L[1] || (L[1] = (Le) => Z(_.value, Le.target.value))
902
+ }, null, 40, Va))
912
903
  ], 2)
913
- ], 8, Ta),
914
- ge.value.length > 0 || me.value ? (i(), y("div", Oa, [
915
- ge.value.length > 0 ? (i(), y("p", Ra, S(l(n)("core.form.i18n.missing", { languages: P(ge.value) })), 1)) : (i(), y("span", Ea)),
916
- me.value && !e.disabled ? (i(), y("button", {
904
+ ], 8, za),
905
+ he.value.length > 0 || ce.value ? (i(), g("div", qa, [
906
+ he.value.length > 0 ? (i(), g("p", Ma, $(s(n)("core.form.i18n.missing", { languages: A(he.value) })), 1)) : (i(), g("span", Oa)),
907
+ ce.value && !e.disabled ? (i(), g("button", {
917
908
  key: 2,
918
909
  type: "button",
919
910
  "data-test": "i18n-copy",
920
911
  class: "shrink-0 cursor-pointer rounded-control bg-tint-soft px-2.5 py-1.5 text-footnote font-medium text-content-link transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
921
- onClick: ke
922
- }, S(l(n)("core.form.i18n.copy", { language: q(v.value) })), 1)) : V("", !0)
923
- ])) : V("", !0)
912
+ onClick: _e
913
+ }, $(s(n)("core.form.i18n.copy", { language: O(v.value) })), 1)) : D("", !0)
914
+ ])) : D("", !0)
924
915
  ], 544)
925
916
  ]),
926
- labelTrailing: w(() => [
917
+ labelTrailing: C(() => [
927
918
  p("div", {
928
919
  role: "tablist",
929
- "aria-label": l(n)("core.form.i18n.languages"),
920
+ "aria-label": s(n)("core.form.i18n.languages"),
930
921
  class: "flex shrink-0 gap-0.5 rounded-control bg-fill p-0.5",
931
922
  "data-test": "i18n-tabs"
932
923
  }, [
933
- (i(!0), y(te, null, xe(C.value, (D, pe) => (i(), y("button", {
934
- id: X(D),
935
- key: D,
924
+ (i(!0), g(ne, null, xe(F.value, (z, me) => (i(), g("button", {
925
+ id: ee(z),
926
+ key: z,
936
927
  type: "button",
937
928
  role: "tab",
938
- "aria-selected": D === k.value,
939
- tabindex: D === k.value ? 0 : -1,
940
- "aria-controls": `${l(b)}-panel`,
941
- "aria-label": l(n)($(D) ? "core.form.i18n.tab_written" : "core.form.i18n.tab_empty", { language: M(D) }),
942
- title: M(D),
943
- class: O(["flex min-h-7 cursor-pointer items-center gap-1.5 rounded-control px-2.5 py-1 text-footnote font-semibold transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", D === k.value ? "bg-segment-selected text-content-strong shadow-sm" : "text-content-muted hover:text-content-strong"]),
944
- onClick: (be) => Y(D, !0),
945
- onKeydown: (be) => I(be, pe)
929
+ "aria-selected": z === _.value,
930
+ tabindex: z === _.value ? 0 : -1,
931
+ "aria-controls": `${s(b)}-panel`,
932
+ "aria-label": s(n)(w(z) ? "core.form.i18n.tab_written" : "core.form.i18n.tab_empty", { language: T(z) }),
933
+ title: T(z),
934
+ class: R(["flex min-h-7 cursor-pointer items-center gap-1.5 rounded-control px-2.5 py-1 text-footnote font-semibold transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", z === _.value ? "bg-segment-selected text-content-strong shadow-sm" : "text-content-muted hover:text-content-strong"]),
935
+ onClick: (ve) => X(z, !0),
936
+ onKeydown: (ve) => N(ve, me)
946
937
  }, [
947
- W(S(q(D)) + " ", 1),
938
+ Y($(O(z)) + " ", 1),
948
939
  p("span", {
949
940
  "aria-hidden": "true",
950
- class: O(["size-1.5 rounded-full", $(D) ? "bg-status-success-solid" : oe.value && U.value.includes(D) ? "bg-content-destructive" : "bg-content-disabled"]),
941
+ class: R(["size-1.5 rounded-full", w(z) ? "bg-status-success-solid" : te.value && K.value.includes(z) ? "bg-content-destructive" : "bg-content-disabled"]),
951
942
  "data-test": "i18n-dot",
952
- "data-state": $(D) ? "written" : oe.value && U.value.includes(D) ? "required" : "empty"
953
- }, null, 10, Na)
954
- ], 42, Ga))), 128))
955
- ], 8, Ia)
943
+ "data-state": w(z) ? "written" : te.value && K.value.includes(z) ? "required" : "empty"
944
+ }, null, 10, Ta)
945
+ ], 42, Ra))), 128))
946
+ ], 8, ja)
956
947
  ]),
957
948
  _: 2
958
949
  }, [
959
- F.value ? {
950
+ S.value ? {
960
951
  name: "readonly",
961
- fn: w(() => [
962
- p("div", Ka, [
963
- p("p", Pa, S(E(F.value)), 1),
964
- R.value.length > 0 ? (i(), y(te, { key: 0 }, [
952
+ fn: C(() => [
953
+ p("div", Ea, [
954
+ p("p", Ia, $(E(S.value)), 1),
955
+ j.value.length > 0 ? (i(), g(ne, { key: 0 }, [
965
956
  p("button", {
966
957
  type: "button",
967
- "aria-expanded": f.value,
958
+ "aria-expanded": c.value,
968
959
  class: "mt-1.5 flex w-full cursor-pointer items-center gap-2 text-left text-footnote text-content-muted focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
969
- onClick: L[2] || (L[2] = (D) => f.value = !f.value)
960
+ onClick: L[2] || (L[2] = (z) => c.value = !c.value)
970
961
  }, [
971
- p("span", Ua, S(l(n)("core.form.i18n.more", { count: R.value.length, filled: ve.value })), 1),
972
- j(l(Z), {
962
+ p("span", Na, $(s(n)("core.form.i18n.more", { count: j.value.length, filled: fe.value })), 1),
963
+ M(s(H), {
973
964
  name: "arrowRightSLine",
974
965
  size: 16,
975
- class: O(["shrink-0 transition-transform duration-motion-fast", f.value ? "rotate-90" : ""])
966
+ class: R(["shrink-0 transition-transform duration-motion-fast", c.value ? "rotate-90" : ""])
976
967
  }, null, 8, ["class"])
977
- ], 8, Aa),
978
- f.value ? (i(), y("dl", Ya, [
979
- (i(!0), y(te, null, xe(R.value, (D) => (i(), y("div", {
980
- key: D,
968
+ ], 8, Ga),
969
+ c.value ? (i(), g("dl", Ka, [
970
+ (i(!0), g(ne, null, xe(j.value, (z) => (i(), g("div", {
971
+ key: z,
981
972
  class: "flex gap-2 text-body"
982
973
  }, [
983
974
  p("dt", {
984
975
  class: "w-8 shrink-0 text-footnote font-semibold leading-6 text-content-muted",
985
- title: M(D)
986
- }, S(q(D)), 9, Wa),
976
+ title: T(z)
977
+ }, $(O(z)), 9, Pa),
987
978
  p("dd", {
988
- class: O(["min-w-0 flex-1 whitespace-pre-line break-words", $(D) ? "text-content-strong" : "text-content-disabled"])
989
- }, S($(D) ? E(D) : l(n)("core.state.no_value")), 3)
979
+ class: R(["min-w-0 flex-1 whitespace-pre-line break-words", w(z) ? "text-content-strong" : "text-content-disabled"])
980
+ }, $(w(z) ? E(z) : s(n)("core.state.no_value")), 3)
990
981
  ]))), 128))
991
- ])) : V("", !0)
992
- ], 64)) : V("", !0)
982
+ ])) : D("", !0)
983
+ ], 64)) : D("", !0)
993
984
  ])
994
985
  ]),
995
986
  key: "0"
996
987
  } : void 0
997
988
  ]), 1040, ["value"]));
998
989
  }
999
- }), $o = /* @__PURE__ */ N({
990
+ }), xo = /* @__PURE__ */ G({
1000
991
  __name: "MoneyField",
1001
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
992
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
1002
993
  label: {},
1003
994
  hint: {},
1004
995
  error: {},
@@ -1012,28 +1003,28 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1012
1003
  decimals: {},
1013
1004
  negative: { type: Boolean },
1014
1005
  width: {}
1015
- }, { ...ue, decimals: 2, negative: !1, width: "sm" }), {
1006
+ }, { ...de, decimals: 2, negative: !1, width: "sm" }), {
1016
1007
  modelValue: { default: null },
1017
1008
  modelModifiers: {}
1018
1009
  }),
1019
1010
  emits: ["update:modelValue"],
1020
1011
  setup(o, { expose: t }) {
1021
- const e = o, a = ae(o, "modelValue"), n = K("field");
1022
- return t({ focus: () => n.value?.focus() }), (s, d) => (i(), z(Rt, J({
1012
+ const e = o, a = oe(o, "modelValue"), n = P("field");
1013
+ return t({ focus: () => n.value?.focus() }), (l, d) => (i(), q(Mt, J({
1023
1014
  ref_key: "field",
1024
1015
  ref: n,
1025
1016
  modelValue: a.value,
1026
- "onUpdate:modelValue": d[0] || (d[0] = (c) => a.value = c)
1027
- }, l(ie)(e), {
1017
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => a.value = m)
1018
+ }, s(ue)(e), {
1028
1019
  decimals: e.decimals,
1029
1020
  negative: e.negative,
1030
1021
  suffix: e.currency,
1031
1022
  width: e.width
1032
1023
  }), null, 16, ["modelValue", "decimals", "negative", "suffix", "width"]));
1033
1024
  }
1034
- }), Ja = { class: "flex flex-col gap-2" }, Ha = ["onClick"], So = /* @__PURE__ */ N({
1025
+ }), Aa = { class: "flex flex-col gap-2" }, Ua = ["onClick"], _o = /* @__PURE__ */ G({
1035
1026
  __name: "MonthYearField",
1036
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
1027
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
1037
1028
  label: {},
1038
1029
  hint: {},
1039
1030
  error: {},
@@ -1045,7 +1036,7 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1045
1036
  name: {},
1046
1037
  minYear: {},
1047
1038
  maxYear: {}
1048
- }, { ...ue, minYear: 1970, maxYear: () => (/* @__PURE__ */ new Date()).getFullYear() + 1 }), {
1039
+ }, { ...de, minYear: 1970, maxYear: () => (/* @__PURE__ */ new Date()).getFullYear() + 1 }), {
1049
1040
  month: { default: null },
1050
1041
  monthModifiers: {},
1051
1042
  year: { default: null },
@@ -1053,58 +1044,58 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1053
1044
  }),
1054
1045
  emits: ["update:month", "update:year"],
1055
1046
  setup(o) {
1056
- const t = o, e = ae(o, "month"), a = ae(o, "year"), { t: n } = ee(), s = h(() => e.value !== null && e.value >= 1 && e.value <= 12), d = (_, x) => n(`core.form.months.${x}.${_}`), c = h(() => s.value && a.value !== null ? n("core.form.months.with_year", { month: d(e.value, "long"), year: a.value }) : a.value !== null ? String(a.value) : s.value ? d(e.value, "long") : "");
1057
- function b(_, x) {
1058
- e.value = _.month, a.value = _.year, x();
1047
+ const t = o, e = oe(o, "month"), a = oe(o, "year"), { t: n } = Q(), l = y(() => e.value !== null && e.value >= 1 && e.value <= 12), d = (k, x) => n(`core.form.months.${x}.${k}`), m = y(() => l.value && a.value !== null ? n("core.form.months.with_year", { month: d(e.value, "long"), year: a.value }) : a.value !== null ? String(a.value) : l.value ? d(e.value, "long") : "");
1048
+ function b(k, x) {
1049
+ e.value = k.month, a.value = k.year, x();
1059
1050
  }
1060
- function g(_) {
1061
- e.value = null, a.value = null, _();
1051
+ function h(k) {
1052
+ e.value = null, a.value = null, k();
1062
1053
  }
1063
- return (_, x) => (i(), z(fe, J(l(ie)(t), {
1064
- value: c.value || null
1054
+ return (k, x) => (i(), q(ge, J(s(ue)(t), {
1055
+ value: m.value || null
1065
1056
  }), {
1066
- default: w(({ id: r, describedby: u, invalid: v }) => [
1067
- j(Ve, {
1068
- label: t.label ?? c.value,
1057
+ default: C(({ id: r, describedby: u, invalid: v }) => [
1058
+ M(Ie, {
1059
+ label: t.label ?? m.value,
1069
1060
  width: "sm",
1070
1061
  placement: "bottom-start",
1071
1062
  arrow: !1
1072
1063
  }, {
1073
- trigger: w(({ toggle: C, presented: B }) => [
1074
- j(Ke, J({ id: r, "aria-describedby": u }, {
1064
+ trigger: C(({ toggle: F, presented: B }) => [
1065
+ M(at, J({ id: r, "aria-describedby": u }, {
1075
1066
  expanded: B,
1076
1067
  disabled: t.disabled,
1077
1068
  invalid: v,
1078
- onClick: C
1069
+ onClick: F
1079
1070
  }), {
1080
- default: w(() => [
1081
- c.value ? (i(), y(te, { key: 0 }, [
1082
- W(S(c.value), 1),
1083
- j(l(Z), {
1071
+ default: C(() => [
1072
+ m.value ? (i(), g(ne, { key: 0 }, [
1073
+ Y($(m.value), 1),
1074
+ M(s(H), {
1084
1075
  name: "calendarLine",
1085
1076
  size: 16,
1086
1077
  class: "ml-2 shrink-0 text-content-muted"
1087
1078
  })
1088
- ], 64)) : V("", !0)
1079
+ ], 64)) : D("", !0)
1089
1080
  ]),
1090
1081
  _: 1
1091
1082
  }, 16, ["expanded", "disabled", "invalid", "onClick"])
1092
1083
  ]),
1093
- default: w(({ dismiss: C }) => [
1094
- p("div", Ja, [
1095
- j(zt, {
1084
+ default: C(({ dismiss: F }) => [
1085
+ p("div", Aa, [
1086
+ M(St, {
1096
1087
  month: e.value,
1097
1088
  year: a.value,
1098
1089
  "min-year": t.minYear,
1099
1090
  "max-year": t.maxYear,
1100
- onPick: (B) => b(B, C)
1091
+ onPick: (B) => b(B, F)
1101
1092
  }, null, 8, ["month", "year", "min-year", "max-year", "onPick"]),
1102
- s.value || a.value !== null ? (i(), y("button", {
1093
+ l.value || a.value !== null ? (i(), g("button", {
1103
1094
  key: 0,
1104
1095
  type: "button",
1105
1096
  class: "cursor-pointer self-start rounded-control px-1 text-footnote text-content-link",
1106
- onClick: (B) => g(C)
1107
- }, S(l(n)("core.form.select.clear")), 9, Ha)) : V("", !0)
1097
+ onClick: (B) => h(F)
1098
+ }, $(s(n)("core.form.select.clear")), 9, Ua)) : D("", !0)
1108
1099
  ])
1109
1100
  ]),
1110
1101
  _: 2
@@ -1113,9 +1104,9 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1113
1104
  _: 1
1114
1105
  }, 16, ["value"]));
1115
1106
  }
1116
- }), Qa = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, Xa = { class: "truncate" }, Za = ["disabled", "aria-label", "onClick"], el = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], tl = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], al = { class: "max-h-72 overflow-y-auto" }, ll = { class: "flex items-center justify-between gap-2" }, Qe = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45", Co = /* @__PURE__ */ N({
1107
+ }), Ya = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, Wa = { class: "truncate" }, Ja = ["disabled", "aria-label", "onClick"], Ha = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], Xa = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], Qa = { class: "max-h-72 overflow-y-auto" }, Za = { class: "flex items-center justify-between gap-2" }, Je = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45", ko = /* @__PURE__ */ G({
1117
1108
  __name: "MultiSelectField",
1118
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
1109
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
1119
1110
  label: {},
1120
1111
  hint: {},
1121
1112
  error: {},
@@ -1129,49 +1120,49 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1129
1120
  selected: {},
1130
1121
  placeholder: {},
1131
1122
  searchFrom: {}
1132
- }, { ...ue, selected: () => [], placeholder: void 0, searchFrom: 9 }), {
1123
+ }, { ...de, selected: () => [], placeholder: void 0, searchFrom: 9 }), {
1133
1124
  modelValue: { default: () => [] },
1134
1125
  modelModifiers: {}
1135
1126
  }),
1136
1127
  emits: ["update:modelValue"],
1137
1128
  setup(o) {
1138
- const t = o, e = ae(o, "modelValue"), { t: a } = ee(), n = qe(), s = K("sheet"), d = G(!1), c = It(() => t.options, (r) => {
1139
- const u = e.value.filter((v) => r.some((C) => C.value === v));
1129
+ const t = o, e = oe(o, "modelValue"), { t: a } = Q(), n = Ee(), l = P("sheet"), d = I(!1), m = jt(() => t.options, (r) => {
1130
+ const u = e.value.filter((v) => r.some((F) => F.value === v));
1140
1131
  u.length !== e.value.length && (e.value = u);
1141
- }), b = h(() => e.value.flatMap((r) => {
1142
- const u = c.known.value.find((v) => v.value === r) ?? t.selected.find((v) => v.value === r);
1132
+ }), b = y(() => e.value.flatMap((r) => {
1133
+ const u = m.known.value.find((v) => v.value === r) ?? t.selected.find((v) => v.value === r);
1143
1134
  return u ? [u] : [];
1144
- })), g = h(() => t.placeholder ?? a("core.form.select.choose"));
1145
- function _(r) {
1135
+ })), h = y(() => t.placeholder ?? a("core.form.select.choose"));
1136
+ function k(r) {
1146
1137
  r !== null && (e.value = e.value.includes(r) ? e.value.filter((u) => u !== r) : [...e.value, r]);
1147
1138
  }
1148
1139
  const x = (r) => e.value = e.value.filter((u) => u !== r);
1149
- return (r, u) => (i(), z(fe, J(l(ie)(t), {
1140
+ return (r, u) => (i(), q(ge, J(s(ue)(t), {
1150
1141
  value: b.value.length ? b.value.map((v) => v.label).join(", ") : null,
1151
1142
  "row-layout": "stacked"
1152
1143
  }), {
1153
- default: w(({ id: v, describedby: C, invalid: B }) => [
1154
- p("div", Qa, [
1155
- (i(!0), y(te, null, xe(b.value, (k) => (i(), y("span", {
1156
- key: String(k.value),
1144
+ default: C(({ id: v, describedby: F, invalid: B }) => [
1145
+ p("div", Ya, [
1146
+ (i(!0), g(ne, null, xe(b.value, (_) => (i(), g("span", {
1147
+ key: String(_.value),
1157
1148
  "data-test": "chip",
1158
1149
  class: "inline-flex min-h-7 max-w-full items-center gap-1 rounded-full bg-tint-soft pl-3 pr-1 text-subheadline font-medium text-content-link"
1159
1150
  }, [
1160
- p("span", Xa, S(k.label), 1),
1151
+ p("span", Wa, $(_.label), 1),
1161
1152
  p("button", {
1162
1153
  type: "button",
1163
1154
  disabled: t.disabled,
1164
- "aria-label": `${l(a)("core.form.select.clear")}: ${k.label}`,
1155
+ "aria-label": `${s(a)("core.form.select.clear")}: ${_.label}`,
1165
1156
  class: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full hover:bg-fill focus-visible:outline-2 focus-visible:outline-border-focus disabled:cursor-not-allowed",
1166
- onClick: (E) => x(k.value)
1157
+ onClick: (E) => x(_.value)
1167
1158
  }, [
1168
- j(l(Z), {
1159
+ M(s(H), {
1169
1160
  name: "close",
1170
1161
  size: 12
1171
1162
  })
1172
- ], 8, Za)
1163
+ ], 8, Ja)
1173
1164
  ]))), 128)),
1174
- l(n) ? (i(), y("button", {
1165
+ s(n) ? (i(), g("button", {
1175
1166
  key: 0,
1176
1167
  id: v,
1177
1168
  type: "button",
@@ -1179,27 +1170,27 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1179
1170
  "aria-haspopup": "dialog",
1180
1171
  "aria-expanded": d.value,
1181
1172
  "aria-invalid": B || void 0,
1182
- "aria-describedby": C,
1183
- "aria-busy": l(c).loading.value || void 0,
1184
- class: O(Qe),
1185
- onClick: u[0] || (u[0] = (k) => s.value?.present())
1173
+ "aria-describedby": F,
1174
+ "aria-busy": s(m).loading.value || void 0,
1175
+ class: R(Je),
1176
+ onClick: u[0] || (u[0] = (_) => l.value?.present())
1186
1177
  }, [
1187
- l(c).loading.value ? (i(), z(l(Z), {
1178
+ s(m).loading.value ? (i(), q(s(H), {
1188
1179
  key: 0,
1189
1180
  name: "loader4Line",
1190
1181
  size: 14,
1191
1182
  class: "shrink-0 animate-spin"
1192
- })) : V("", !0),
1193
- W(" " + S(b.value.length ? l(a)("core.actions.edit") : g.value), 1)
1194
- ], 8, el)) : (i(), z(Ve, {
1183
+ })) : D("", !0),
1184
+ Y(" " + $(b.value.length ? s(a)("core.actions.edit") : h.value), 1)
1185
+ ], 8, Ha)) : (i(), q(Ie, {
1195
1186
  key: 1,
1196
- label: t.label ?? g.value,
1187
+ label: t.label ?? h.value,
1197
1188
  width: "md",
1198
1189
  "match-trigger-width": "",
1199
1190
  placement: "bottom-start",
1200
1191
  arrow: !1
1201
1192
  }, {
1202
- trigger: w(({ toggle: k, attrs: E }) => [
1193
+ trigger: C(({ toggle: _, attrs: E }) => [
1203
1194
  p("button", J({
1204
1195
  id: v,
1205
1196
  type: "button"
@@ -1207,89 +1198,89 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1207
1198
  "aria-haspopup": "listbox",
1208
1199
  disabled: t.disabled,
1209
1200
  "aria-invalid": B || void 0,
1210
- "aria-describedby": C,
1211
- "aria-busy": l(c).loading.value || void 0,
1212
- class: Qe,
1213
- onClick: k
1201
+ "aria-describedby": F,
1202
+ "aria-busy": s(m).loading.value || void 0,
1203
+ class: Je,
1204
+ onClick: _
1214
1205
  }), [
1215
- l(c).loading.value ? (i(), z(l(Z), {
1206
+ s(m).loading.value ? (i(), q(s(H), {
1216
1207
  key: 0,
1217
1208
  name: "loader4Line",
1218
1209
  size: 14,
1219
1210
  class: "shrink-0 animate-spin"
1220
- })) : V("", !0),
1221
- W(" " + S(b.value.length ? l(a)("core.actions.edit") : g.value), 1)
1222
- ], 16, tl)
1211
+ })) : D("", !0),
1212
+ Y(" " + $(b.value.length ? s(a)("core.actions.edit") : h.value), 1)
1213
+ ], 16, Xa)
1223
1214
  ]),
1224
- default: w(() => [
1225
- p("div", al, [
1226
- j(We, {
1227
- options: l(c).rows.value,
1228
- status: l(c).status.value,
1215
+ default: C(() => [
1216
+ p("div", Qa, [
1217
+ M(Ue, {
1218
+ options: s(m).rows.value,
1219
+ status: s(m).status.value,
1229
1220
  "model-value": e.value,
1230
1221
  multiple: "",
1231
1222
  "search-from": t.searchFrom,
1232
1223
  presentation: "plain",
1233
- onSelect: _,
1234
- onRetry: u[1] || (u[1] = (k) => l(c).reload())
1224
+ onSelect: k,
1225
+ onRetry: u[1] || (u[1] = (_) => s(m).reload())
1235
1226
  }, null, 8, ["options", "status", "model-value", "search-from"])
1236
1227
  ])
1237
1228
  ]),
1238
1229
  _: 2
1239
1230
  }, 1032, ["label"]))
1240
1231
  ]),
1241
- l(n) ? (i(), z(Et, {
1232
+ s(n) ? (i(), q(Ot, {
1242
1233
  key: 0,
1243
1234
  ref_key: "sheet",
1244
- ref: s,
1245
- title: t.label ?? g.value,
1235
+ ref: l,
1236
+ title: t.label ?? h.value,
1246
1237
  grouped: "",
1247
- onPresented: u[5] || (u[5] = (k) => d.value = !0),
1248
- onDismissed: u[6] || (u[6] = (k) => d.value = !1)
1238
+ onPresented: u[5] || (u[5] = (_) => d.value = !0),
1239
+ onDismissed: u[6] || (u[6] = (_) => d.value = !1)
1249
1240
  }, {
1250
- footer: w(() => [
1251
- p("div", ll, [
1252
- j(ye, {
1241
+ footer: C(() => [
1242
+ p("div", Za, [
1243
+ M(be, {
1253
1244
  prominence: "plain",
1254
1245
  disabled: e.value.length === 0,
1255
- onClick: u[3] || (u[3] = (k) => e.value = [])
1246
+ onClick: u[3] || (u[3] = (_) => e.value = [])
1256
1247
  }, {
1257
- default: w(() => [
1258
- W(S(l(a)("core.form.select.clear")), 1)
1248
+ default: C(() => [
1249
+ Y($(s(a)("core.form.select.clear")), 1)
1259
1250
  ]),
1260
1251
  _: 1
1261
1252
  }, 8, ["disabled"]),
1262
- j(ye, {
1253
+ M(be, {
1263
1254
  prominence: "primary",
1264
- onClick: u[4] || (u[4] = (k) => s.value?.dismiss())
1255
+ onClick: u[4] || (u[4] = (_) => l.value?.dismiss())
1265
1256
  }, {
1266
- default: w(() => [
1267
- W(S(l(a)("core.form.select.done")), 1)
1257
+ default: C(() => [
1258
+ Y($(s(a)("core.form.select.done")), 1)
1268
1259
  ]),
1269
1260
  _: 1
1270
1261
  })
1271
1262
  ])
1272
1263
  ]),
1273
- default: w(() => [
1274
- j(We, {
1275
- options: l(c).rows.value,
1276
- status: l(c).status.value,
1264
+ default: C(() => [
1265
+ M(Ue, {
1266
+ options: s(m).rows.value,
1267
+ status: s(m).status.value,
1277
1268
  "model-value": e.value,
1278
1269
  multiple: "",
1279
1270
  "search-from": t.searchFrom,
1280
- onSelect: _,
1281
- onRetry: u[2] || (u[2] = (k) => l(c).reload())
1271
+ onSelect: k,
1272
+ onRetry: u[2] || (u[2] = (_) => s(m).reload())
1282
1273
  }, null, 8, ["options", "status", "model-value", "search-from"])
1283
1274
  ]),
1284
1275
  _: 1
1285
- }, 8, ["title"])) : V("", !0)
1276
+ }, 8, ["title"])) : D("", !0)
1286
1277
  ]),
1287
1278
  _: 1
1288
1279
  }, 16, ["value"]));
1289
1280
  }
1290
- }), ol = ["aria-label"], sl = ["src"], nl = { class: "flex flex-wrap items-center gap-3" }, rl = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], il = ["aria-label"], ul = ["src"], Fo = /* @__PURE__ */ N({
1281
+ }), el = ["aria-label"], tl = ["src"], al = { class: "flex flex-wrap items-center gap-3" }, ll = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], ol = ["aria-label"], sl = ["src"], wo = /* @__PURE__ */ G({
1291
1282
  __name: "PhotoField",
1292
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
1283
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ie({
1293
1284
  label: {},
1294
1285
  hint: {},
1295
1286
  error: {},
@@ -1301,57 +1292,57 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1301
1292
  name: {},
1302
1293
  accept: {},
1303
1294
  maxSize: {}
1304
- }, { ...ue, accept: () => ["image/jpeg", "image/png", "image/webp", "image/gif"], maxSize: 5 * 1024 * 1024 }), {
1295
+ }, { ...de, accept: () => ["image/jpeg", "image/png", "image/webp", "image/gif"], maxSize: 5 * 1024 * 1024 }), {
1305
1296
  modelValue: { default: null },
1306
1297
  modelModifiers: {}
1307
1298
  }),
1308
1299
  emits: ["update:modelValue"],
1309
1300
  setup(o) {
1310
- const t = o, e = ae(o, "modelValue"), { t: a } = ee(), n = K("chooser"), s = G(null), d = G(null);
1311
- function c() {
1301
+ const t = o, e = oe(o, "modelValue"), { t: a } = Q(), n = P("chooser"), l = I(null), d = I(null);
1302
+ function m() {
1312
1303
  d.value && URL.revokeObjectURL(d.value), d.value = null;
1313
1304
  }
1314
- de(
1305
+ re(
1315
1306
  e,
1316
1307
  (r) => {
1317
- c(), r instanceof File && (d.value = URL.createObjectURL(r)), r === null && n.value && (n.value.value = "");
1308
+ m(), r instanceof File && (d.value = URL.createObjectURL(r)), r === null && n.value && (n.value.value = "");
1318
1309
  },
1319
1310
  { immediate: !0 }
1320
- ), Ge(c);
1321
- const b = h(() => e.value instanceof File ? d.value : e.value), g = K("viewer"), _ = h(() => b.value ? [{ src: b.value, alt: t.label ?? a("core.viewer.label"), downloadName: e.value instanceof File ? e.value.name : void 0 }] : []);
1311
+ ), je(m);
1312
+ const b = y(() => e.value instanceof File ? d.value : e.value), h = P("viewer"), k = y(() => b.value ? [{ src: b.value, alt: t.label ?? a("core.viewer.label"), downloadName: e.value instanceof File ? e.value.name : void 0 }] : []);
1322
1313
  function x(r) {
1323
1314
  if (!r) return;
1324
- const u = ut(r, { accept: t.accept, maxSize: t.maxSize });
1325
- u ? s.value = u === "invalid_type" ? a("core.form.file.invalid_type") : a("core.form.file.too_large", { size: Be(t.maxSize) }) : (s.value = null, e.value = r);
1315
+ const u = lt(r, { accept: t.accept, maxSize: t.maxSize });
1316
+ u ? l.value = u === "invalid_type" ? a("core.form.file.invalid_type") : a("core.form.file.too_large", { size: Fe(t.maxSize) }) : (l.value = null, e.value = r);
1326
1317
  }
1327
- return (r, u) => (i(), z(fe, J({ ...l(ie)(t), error: s.value ?? t.error }, {
1328
- value: b.value ? l(a)("core.form.file.choose") : null,
1318
+ return (r, u) => (i(), q(ge, J({ ...s(ue)(t), error: l.value ?? t.error }, {
1319
+ value: b.value ? s(a)("core.form.file.choose") : null,
1329
1320
  "row-layout": "stacked"
1330
1321
  }), {
1331
- readonly: w(() => [
1332
- b.value ? (i(), y("button", {
1322
+ readonly: C(() => [
1323
+ b.value ? (i(), g("button", {
1333
1324
  key: 0,
1334
1325
  type: "button",
1335
- "aria-label": l(a)("core.viewer.open"),
1326
+ "aria-label": s(a)("core.viewer.open"),
1336
1327
  "data-test": "photo-open",
1337
1328
  class: "block cursor-zoom-in rounded-group focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
1338
- onClick: u[0] || (u[0] = (v) => g.value?.present(0))
1329
+ onClick: u[0] || (u[0] = (v) => h.value?.present(0))
1339
1330
  }, [
1340
1331
  p("img", {
1341
1332
  src: b.value,
1342
1333
  alt: "",
1343
1334
  class: "size-40 rounded-group object-cover"
1344
- }, null, 8, sl)
1345
- ], 8, ol)) : V("", !0),
1346
- b.value ? (i(), z(Je, {
1335
+ }, null, 8, tl)
1336
+ ], 8, el)) : D("", !0),
1337
+ b.value ? (i(), q(Ye, {
1347
1338
  key: 1,
1348
1339
  ref_key: "viewer",
1349
- ref: g,
1350
- items: _.value
1351
- }, null, 8, ["items"])) : V("", !0)
1340
+ ref: h,
1341
+ items: k.value
1342
+ }, null, 8, ["items"])) : D("", !0)
1352
1343
  ]),
1353
- default: w(({ id: v, describedby: C, invalid: B }) => [
1354
- p("div", nl, [
1344
+ default: C(({ id: v, describedby: F, invalid: B }) => [
1345
+ p("div", al, [
1355
1346
  p("input", {
1356
1347
  id: v,
1357
1348
  ref_key: "chooser",
@@ -1361,198 +1352,60 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1361
1352
  tabindex: "-1",
1362
1353
  accept: t.accept.join(","),
1363
1354
  disabled: t.disabled,
1364
- "aria-describedby": C,
1355
+ "aria-describedby": F,
1365
1356
  "aria-invalid": B || void 0,
1366
- onChange: u[1] || (u[1] = (k) => x(k.target.files?.[0]))
1367
- }, null, 40, rl),
1368
- b.value ? (i(), y("button", {
1357
+ onChange: u[1] || (u[1] = (_) => x(_.target.files?.[0]))
1358
+ }, null, 40, ll),
1359
+ b.value ? (i(), g("button", {
1369
1360
  key: 0,
1370
1361
  type: "button",
1371
- "aria-label": l(a)("core.viewer.open"),
1362
+ "aria-label": s(a)("core.viewer.open"),
1372
1363
  "data-test": "photo-open",
1373
1364
  class: "block cursor-zoom-in rounded-group focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
1374
- onClick: u[2] || (u[2] = (k) => g.value?.present(0))
1365
+ onClick: u[2] || (u[2] = (_) => h.value?.present(0))
1375
1366
  }, [
1376
1367
  p("img", {
1377
1368
  src: b.value,
1378
1369
  alt: "",
1379
1370
  "data-test": "photo-preview",
1380
1371
  class: "size-28 rounded-group object-cover"
1381
- }, null, 8, ul)
1382
- ], 8, il)) : V("", !0),
1383
- j(ye, {
1372
+ }, null, 8, sl)
1373
+ ], 8, ol)) : D("", !0),
1374
+ M(be, {
1384
1375
  disabled: t.disabled,
1385
- onClick: u[3] || (u[3] = (k) => n.value?.click())
1376
+ onClick: u[3] || (u[3] = (_) => n.value?.click())
1386
1377
  }, {
1387
- default: w(() => [
1388
- W(S(l(a)("core.form.file.choose")), 1)
1378
+ default: C(() => [
1379
+ Y($(s(a)("core.form.file.choose")), 1)
1389
1380
  ]),
1390
1381
  _: 1
1391
1382
  }, 8, ["disabled"]),
1392
- b.value ? (i(), z(ye, {
1383
+ b.value ? (i(), q(be, {
1393
1384
  key: 1,
1394
1385
  prominence: "plain",
1395
1386
  tone: "critical",
1396
1387
  disabled: t.disabled,
1397
- onClick: u[4] || (u[4] = (k) => {
1398
- e.value = null, s.value = null;
1388
+ onClick: u[4] || (u[4] = (_) => {
1389
+ e.value = null, l.value = null;
1399
1390
  })
1400
1391
  }, {
1401
- default: w(() => [
1402
- W(S(l(a)("core.form.file.remove")), 1)
1392
+ default: C(() => [
1393
+ Y($(s(a)("core.form.file.remove")), 1)
1403
1394
  ]),
1404
1395
  _: 1
1405
- }, 8, ["disabled"])) : V("", !0)
1396
+ }, 8, ["disabled"])) : D("", !0)
1406
1397
  ]),
1407
- b.value ? (i(), z(Je, {
1398
+ b.value ? (i(), q(Ye, {
1408
1399
  key: 0,
1409
1400
  ref_key: "viewer",
1410
- ref: g,
1411
- items: _.value
1412
- }, null, 8, ["items"])) : V("", !0)
1413
- ]),
1414
- _: 1
1415
- }, 16, ["value"]));
1416
- }
1417
- }), dl = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], cl = ["aria-label", "onClick"], Bo = /* @__PURE__ */ N({
1418
- __name: "TimeField",
1419
- props: /* @__PURE__ */ le(/* @__PURE__ */ re({
1420
- label: {},
1421
- hint: {},
1422
- error: {},
1423
- required: { type: Boolean },
1424
- editable: { type: Boolean },
1425
- disabled: { type: Boolean },
1426
- lockedReason: {},
1427
- presentation: {},
1428
- name: {},
1429
- minuteStep: {},
1430
- quickTimes: {}
1431
- }, { ...ue, minuteStep: 1, quickTimes: void 0 }), {
1432
- modelValue: { default: null },
1433
- modelModifiers: {}
1434
- }),
1435
- emits: ["update:modelValue"],
1436
- setup(o, { expose: t }) {
1437
- const e = o, a = ae(o, "modelValue"), { t: n } = ee(), s = rt(), d = qe(), c = K("input"), b = K("popover"), g = K("panel"), _ = K("sheet"), x = it(() => e.minuteStep), r = Oe({ model: a, display: (q) => q, parse: x.parse }), u = h(() => x.shortcuts(e.quickTimes)), v = h(() => e.error || r.message.value), C = Le("date", () => v.value ? "error" : e.disabled ? "locked" : "rest"), B = h(() => {
1438
- const q = Tt(a.value);
1439
- return q ? s.time(new Date(2e3, 0, 1, q.hour, q.minute)) : null;
1440
- }), k = h(() => Re(r.typed.value) ? r.typed.value : Re(a.value) ? a.value : null);
1441
- async function E(q) {
1442
- e.disabled || (b.value?.present(), q && (await ce(), await ce(), g.value?.querySelector("[role=listbox]")?.focus()));
1443
- }
1444
- function $(q) {
1445
- q.key === "Enter" ? (r.commit(), b.value?.dismiss()) : q.key === "ArrowDown" && (q.preventDefault(), E(!0));
1446
- }
1447
- return t({ focus: () => c.value?.focus() }), (q, M) => (i(), z(fe, J({ ...l(ie)(e), error: v.value }, {
1448
- value: B.value,
1449
- "value-style": "numeric"
1450
- }), {
1451
- default: w(({ id: P, describedby: Q, invalid: X }) => [
1452
- l(d) ? (i(), y(te, { key: 0 }, [
1453
- j(Ke, J({ id: P, "aria-describedby": Q }, {
1454
- disabled: e.disabled,
1455
- invalid: X,
1456
- placeholder: l(n)("core.form.select.choose"),
1457
- onClick: M[0] || (M[0] = (Y) => _.value?.present())
1458
- }), {
1459
- default: w(() => [
1460
- a.value ? (i(), y(te, { key: 0 }, [
1461
- W(S(a.value), 1)
1462
- ], 64)) : V("", !0)
1463
- ]),
1464
- _: 1
1465
- }, 16, ["disabled", "invalid", "placeholder"]),
1466
- j(ot, {
1467
- ref_key: "sheet",
1468
- ref: _,
1469
- title: e.label ?? l(n)("core.form.time.label"),
1470
- mode: "time",
1471
- "model-value": a.value,
1472
- shortcuts: u.value,
1473
- step: e.minuteStep,
1474
- clearable: !e.required,
1475
- "onUpdate:modelValue": l(r).set
1476
- }, null, 8, ["title", "model-value", "shortcuts", "step", "clearable", "onUpdate:modelValue"])
1477
- ], 64)) : (i(), z(Ve, {
1478
- key: 1,
1479
- ref_key: "popover",
1480
- ref: b,
1481
- label: e.label ?? l(n)("core.form.time.label"),
1482
- width: "sm",
1483
- placement: "bottom-start",
1484
- arrow: !1,
1485
- autofocus: !1
1486
- }, {
1487
- trigger: w(({ attrs: Y, presented: I }) => [
1488
- p("div", {
1489
- class: O(["inline-flex max-w-full items-center gap-2", l(C)])
1490
- }, [
1491
- p("input", J({
1492
- id: P,
1493
- ref_key: "input",
1494
- ref: c
1495
- }, Y, {
1496
- type: "text",
1497
- role: "combobox",
1498
- autocomplete: "off",
1499
- size: "10",
1500
- name: e.name,
1501
- value: l(r).text.value,
1502
- placeholder: l(x).placeholder.value,
1503
- disabled: e.disabled,
1504
- required: e.required,
1505
- "aria-required": e.required || void 0,
1506
- "aria-invalid": X || void 0,
1507
- "aria-describedby": Q,
1508
- class: "block min-h-7 min-w-0 border-0 bg-transparent py-1 pl-2.5 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
1509
- onInput: M[1] || (M[1] = (A) => l(r).input(A.target.value)),
1510
- onBlur: M[2] || (M[2] = (A) => l(r).commit()),
1511
- onKeydown: $,
1512
- onClick: M[3] || (M[3] = (A) => E(!1))
1513
- }), null, 16, dl),
1514
- e.disabled ? V("", !0) : (i(), y("button", {
1515
- key: 0,
1516
- type: "button",
1517
- tabindex: "-1",
1518
- "aria-label": l(n)("core.form.time.open"),
1519
- class: "mr-2 flex shrink-0 cursor-pointer items-center text-content-link",
1520
- onClick: (A) => I ? b.value?.dismiss() : E(!0)
1521
- }, [
1522
- j(l(Z), {
1523
- name: "timeLine",
1524
- size: 18
1525
- })
1526
- ], 8, cl))
1527
- ], 2)
1528
- ]),
1529
- default: w(({ dismiss: Y }) => [
1530
- p("div", {
1531
- ref_key: "panel",
1532
- ref: g,
1533
- class: "flex flex-col gap-2.5"
1534
- }, [
1535
- j(nt, {
1536
- "model-value": k.value,
1537
- step: e.minuteStep,
1538
- "onUpdate:modelValue": l(r).set
1539
- }, null, 8, ["model-value", "step", "onUpdate:modelValue"]),
1540
- j(st, {
1541
- items: u.value,
1542
- selected: k.value,
1543
- onPick: (I) => {
1544
- l(r).set(I), Y();
1545
- }
1546
- }, null, 8, ["items", "selected", "onPick"])
1547
- ], 512)
1548
- ]),
1549
- _: 2
1550
- }, 1032, ["label"]))
1401
+ ref: h,
1402
+ items: k.value
1403
+ }, null, 8, ["items"])) : D("", !0)
1551
1404
  ]),
1552
1405
  _: 1
1553
1406
  }, 16, ["value"]));
1554
1407
  }
1555
- }), fl = { class: "text-footnote" }, ml = { class: "text-footnote" }, Lo = /* @__PURE__ */ N({
1408
+ }), nl = { class: "text-footnote" }, rl = { class: "text-footnote" }, $o = /* @__PURE__ */ G({
1556
1409
  __name: "GroupSheet",
1557
1410
  props: {
1558
1411
  sheet: {},
@@ -1565,72 +1418,72 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1565
1418
  },
1566
1419
  emits: ["saved"],
1567
1420
  setup(o, { emit: t }) {
1568
- const e = o, a = t, { t: n } = ee(), s = K("modal"), d = K("body"), c = G(!1);
1421
+ const e = o, a = t, { t: n } = Q(), l = P("modal"), d = P("body"), m = I(!1);
1569
1422
  let b = null;
1570
- de(() => e.sheet.open.value, (x) => {
1571
- x ? (c.value = !1, s.value?.present()) : s.value?.dismiss();
1572
- }), dt(() => {
1573
- e.sheet.open.value && s.value?.present();
1574
- }), Ge(() => {
1423
+ re(() => e.sheet.open.value, (x) => {
1424
+ x ? (m.value = !1, l.value?.present()) : l.value?.dismiss();
1425
+ }), ot(() => {
1426
+ e.sheet.open.value && l.value?.present();
1427
+ }), je(() => {
1575
1428
  b && clearTimeout(b);
1576
1429
  });
1577
- async function g() {
1578
- await e.sheet.save() && (c.value = !0, a("saved"), b = setTimeout(() => e.sheet.dismiss(), Nt));
1430
+ async function h() {
1431
+ await e.sheet.save() && (m.value = !0, a("saved"), b = setTimeout(() => e.sheet.dismiss(), Tt));
1579
1432
  }
1580
- const _ = h(() => e.sheet.saving.value ? "processing" : c.value ? "done" : "idle");
1581
- return (x, r) => (i(), z(Gt, {
1433
+ const k = y(() => e.sheet.saving.value ? "processing" : m.value ? "done" : "idle");
1434
+ return (x, r) => (i(), q(Rt, {
1582
1435
  ref_key: "modal",
1583
- ref: s,
1436
+ ref: l,
1584
1437
  size: e.size,
1585
1438
  grouped: "",
1586
1439
  title: e.title,
1587
1440
  subtitle: e.subtitle,
1588
1441
  "before-dismiss": e.sheet.beforeDismiss,
1589
- "primary-label": e.editable ? l(n)("core.actions.save") : void 0,
1590
- status: _.value,
1591
- "processing-label": l(n)("core.actions.saving"),
1592
- "done-label": l(n)("core.actions.saved"),
1593
- onPrimary: g,
1442
+ "primary-label": e.editable ? s(n)("core.actions.save") : void 0,
1443
+ status: k.value,
1444
+ "processing-label": s(n)("core.actions.saving"),
1445
+ "done-label": s(n)("core.actions.saved"),
1446
+ onPrimary: h,
1594
1447
  onDismissed: r[0] || (r[0] = (u) => e.sheet.closed())
1595
1448
  }, {
1596
- default: w(() => [
1449
+ default: C(() => [
1597
1450
  p("div", {
1598
1451
  ref_key: "body",
1599
1452
  ref: d,
1600
1453
  class: "flex min-w-0 flex-col gap-group-gap"
1601
1454
  }, [
1602
- e.sheet.notice.value ? (i(), z(He, {
1455
+ e.sheet.notice.value ? (i(), q(We, {
1603
1456
  key: 0,
1604
1457
  tone: "warning",
1605
1458
  "data-test": "group-sheet-notice"
1606
1459
  }, {
1607
- default: w(() => [
1608
- p("p", fl, S(e.sheet.notice.value), 1)
1460
+ default: C(() => [
1461
+ p("p", nl, $(e.sheet.notice.value), 1)
1609
1462
  ]),
1610
1463
  _: 1
1611
- })) : V("", !0),
1612
- e.sheet.foreignGroups.value.length ? (i(), z(He, {
1464
+ })) : D("", !0),
1465
+ e.sheet.foreignGroups.value.length ? (i(), q(We, {
1613
1466
  key: 1,
1614
1467
  tone: "warning",
1615
1468
  "data-test": "group-sheet-foreign"
1616
1469
  }, {
1617
- default: w(() => [
1618
- p("p", ml, S(l(n)("core.form.group.foreign", { groups: e.sheet.foreignGroups.value.map(e.groupLabel).join(", ") })), 1)
1470
+ default: C(() => [
1471
+ p("p", rl, $(s(n)("core.form.group.foreign", { groups: e.sheet.foreignGroups.value.map(e.groupLabel).join(", ") })), 1)
1619
1472
  ]),
1620
1473
  _: 1
1621
- })) : V("", !0),
1622
- j(Ee, {
1474
+ })) : D("", !0),
1475
+ M(Me, {
1623
1476
  form: e.sheet.form,
1624
1477
  label: e.fieldLabel,
1625
1478
  scope: d.value
1626
1479
  }, null, 8, ["form", "label", "scope"]),
1627
- ne(x.$slots, "default")
1480
+ le(x.$slots, "default")
1628
1481
  ], 512)
1629
1482
  ]),
1630
1483
  _: 3
1631
1484
  }, 8, ["size", "title", "subtitle", "before-dismiss", "primary-label", "status", "processing-label", "done-label"]));
1632
1485
  }
1633
- }), vl = ["data-group"], qo = /* @__PURE__ */ N({
1486
+ }), il = ["data-group"], So = /* @__PURE__ */ G({
1634
1487
  __name: "RecordGroupScope",
1635
1488
  props: {
1636
1489
  only: {},
@@ -1638,82 +1491,82 @@ const Ta = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1638
1491
  },
1639
1492
  setup(o) {
1640
1493
  const t = o;
1641
- return je(Mt, { only: ct(t, "only") }), je(gt, h(() => t.editable)), (e, a) => (i(), y("div", {
1494
+ return Ve(Vt, { only: st(t, "only") }), Ve(mt, y(() => t.editable)), (e, a) => (i(), g("div", {
1642
1495
  class: "flex min-w-0 flex-col gap-group-gap",
1643
1496
  "data-test": "record-group-scope",
1644
1497
  "data-group": t.only
1645
1498
  }, [
1646
- ne(e.$slots, "default")
1647
- ], 8, vl));
1499
+ le(e.$slots, "default")
1500
+ ], 8, il));
1648
1501
  }
1649
1502
  });
1650
- function Vo(o) {
1503
+ function Co(o) {
1651
1504
  const { form: t } = o;
1652
1505
  if (o.rebase && !t.rebase) throw new Error("useGroupSheet: `rebase` needs a record form (useResourceForm), which can take the freshly read record as its base.");
1653
- const e = () => typeof o.fields == "function" ? o.fields() : o.fields, a = () => Me(o.restore) ?? e(), n = G(!1), s = G(!1), d = G([]), c = G(null), b = Te({});
1654
- let g = {};
1655
- const _ = ($) => Object.fromEntries($.map((q) => [q, $e(t.values[q])])), x = h(() => n.value && !Ue(_(a()), b.value)), { confirmDiscard: r } = Ne(() => x.value);
1506
+ const e = () => typeof o.fields == "function" ? o.fields() : o.fields, a = () => qe(o.restore) ?? e(), n = I(!1), l = I(!1), d = I([]), m = I(null), b = De({});
1507
+ let h = {};
1508
+ const k = (w) => Object.fromEntries(w.map((O) => [O, $e(t.values[O])])), x = y(() => n.value && !Ke(k(a()), b.value)), { confirmDiscard: r } = Re(() => x.value);
1656
1509
  function u() {
1657
- g = _(a()), b.value = $e(g);
1510
+ h = k(a()), b.value = $e(h);
1658
1511
  }
1659
1512
  function v() {
1660
- u(), d.value = [], c.value = null, t.dismissFailure(), n.value = !0;
1513
+ u(), d.value = [], m.value = null, t.dismissFailure(), n.value = !0;
1661
1514
  }
1662
- function C() {
1515
+ function F() {
1663
1516
  if (n.value) {
1664
- x.value && Object.assign(t.values, $e(g));
1665
- for (const $ of e()) t.errors.clear($);
1517
+ x.value && Object.assign(t.values, $e(h));
1518
+ for (const w of e()) t.errors.clear(w);
1666
1519
  t.dismissFailure(), n.value = !1;
1667
1520
  }
1668
1521
  }
1669
- function B($) {
1670
- const q = new Set(e()), M = Me(o.group), P = /* @__PURE__ */ new Set();
1671
- for (const Q of Object.keys($.all())) {
1672
- const X = Ze(Q);
1673
- if (q.has(X)) continue;
1674
- const Y = o.groupOf?.(X) ?? o.fallbackGroup;
1675
- Y && Y !== M && P.add(Y);
1522
+ function B(w) {
1523
+ const O = new Set(e()), T = qe(o.group), A = /* @__PURE__ */ new Set();
1524
+ for (const Z of Object.keys(w.all())) {
1525
+ const ee = Xe(Z);
1526
+ if (O.has(ee)) continue;
1527
+ const X = o.groupOf?.(ee) ?? o.fallbackGroup;
1528
+ X && X !== T && A.add(X);
1676
1529
  }
1677
- d.value = [...P];
1530
+ d.value = [...A];
1678
1531
  }
1679
- async function k($) {
1680
- const q = $e(_(e().filter((M) => !Ue(t.values[M], b.value[M]))));
1532
+ async function _(w) {
1533
+ const O = $e(k(e().filter((T) => !Ke(t.values[T], b.value[T]))));
1681
1534
  try {
1682
- await $.reload();
1535
+ await w.reload();
1683
1536
  } catch {
1684
1537
  return;
1685
1538
  }
1686
- t.rebase?.() && (u(), Object.assign(t.values, q), c.value = $.message());
1539
+ t.rebase?.() && (u(), Object.assign(t.values, O), m.value = w.message());
1687
1540
  }
1688
1541
  async function E() {
1689
- if (s.value) return !1;
1690
- s.value = !0, d.value = [], c.value = null;
1542
+ if (l.value) return !1;
1543
+ l.value = !0, d.value = [], m.value = null;
1691
1544
  try {
1692
- const $ = o.onSaved ? () => o.onSaved?.() : void 0;
1693
- let q;
1694
- if (o.save) q = await t.submitFields(e(), o.save, { refresh: $ });
1695
- else if (t.save) q = await t.save({ refresh: $ });
1545
+ const w = o.onSaved ? () => o.onSaved?.() : void 0;
1546
+ let O;
1547
+ if (o.save) O = await t.submitFields(e(), o.save, { refresh: w });
1548
+ else if (t.save) O = await t.save({ refresh: w });
1696
1549
  else throw new Error("useGroupSheet: the form has no full-record save(), so give the sheet its own `save` for a dedicated endpoint.");
1697
- switch (q.status) {
1550
+ switch (O.status) {
1698
1551
  case "saved":
1699
1552
  return u(), !0;
1700
1553
  case "saved-refresh-failed":
1701
- return u(), Kt.warning(t.failure.value?.message ?? ""), !0;
1554
+ return u(), Et.warning(t.failure.value?.message ?? ""), !0;
1702
1555
  case "aborted":
1703
1556
  return !1;
1704
1557
  case "failed":
1705
- return q.failure.kind === "conflict" && o.rebase ? await k(o.rebase) : B(t.errors), !1;
1558
+ return O.failure.kind === "conflict" && o.rebase ? await _(o.rebase) : B(t.errors), !1;
1706
1559
  }
1707
1560
  } finally {
1708
- s.value = !1;
1561
+ l.value = !1;
1709
1562
  }
1710
1563
  }
1711
1564
  return {
1712
1565
  open: n,
1713
- saving: s,
1566
+ saving: l,
1714
1567
  dirty: x,
1715
1568
  foreignGroups: d,
1716
- notice: c,
1569
+ notice: m,
1717
1570
  failure: t.failure,
1718
1571
  form: t,
1719
1572
  present: v,
@@ -1722,56 +1575,56 @@ function Vo(o) {
1722
1575
  },
1723
1576
  save: E,
1724
1577
  beforeDismiss: r,
1725
- closed: C
1578
+ closed: F
1726
1579
  };
1727
1580
  }
1728
- const pl = { hidden: "" }, bl = /* @__PURE__ */ N({
1581
+ const ul = { hidden: "" }, dl = /* @__PURE__ */ G({
1729
1582
  __name: "EditorChrome",
1730
1583
  props: {
1731
1584
  options: {}
1732
1585
  },
1733
1586
  setup(o) {
1734
- return Wt(o.options), (e, a) => (i(), y("span", pl));
1587
+ return Pt(o.options), (e, a) => (i(), g("span", ul));
1735
1588
  }
1736
1589
  });
1737
- function hl(o) {
1738
- const t = G(0);
1590
+ function cl(o) {
1591
+ const t = I(0);
1739
1592
  let e = 0;
1740
1593
  const a = () => {
1741
1594
  e || (e = requestAnimationFrame(() => {
1742
1595
  e = 0, t.value++;
1743
1596
  }));
1744
1597
  }, n = typeof MutationObserver > "u" ? null : new MutationObserver(a);
1745
- de(
1598
+ re(
1746
1599
  () => o.sections.value,
1747
- (c) => {
1600
+ (m) => {
1748
1601
  n?.disconnect();
1749
- for (const b of c)
1602
+ for (const b of m)
1750
1603
  n?.observe(b.element, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["data-field-error", "data-field-required", "data-field-filled"] });
1751
1604
  a();
1752
1605
  },
1753
1606
  { immediate: !0 }
1754
- ), ft() && mt(() => {
1607
+ ), nt() && rt(() => {
1755
1608
  n?.disconnect(), e && cancelAnimationFrame(e);
1756
1609
  });
1757
- const s = h(() => (t.value, Object.fromEntries(
1758
- o.sections.value.map((c) => [
1759
- c.id,
1610
+ const l = y(() => (t.value, Object.fromEntries(
1611
+ o.sections.value.map((m) => [
1612
+ m.id,
1760
1613
  {
1761
- errors: c.element.querySelectorAll("[data-field-error]").length,
1762
- required: { total: c.element.querySelectorAll("[data-field-required]").length, filled: c.element.querySelectorAll("[data-field-required][data-field-filled]").length }
1614
+ errors: m.element.querySelectorAll("[data-field-error]").length,
1615
+ required: { total: m.element.querySelectorAll("[data-field-required]").length, filled: m.element.querySelectorAll("[data-field-required][data-field-filled]").length }
1763
1616
  }
1764
1617
  ])
1765
- ))), d = h(() => Object.values(s.value).reduce((c, b) => ({ filled: c.filled + b.required.filled, total: c.total + b.required.total }), { filled: 0, total: 0 }));
1766
- return { states: s, totals: d };
1618
+ ))), d = y(() => Object.values(l.value).reduce((m, b) => ({ filled: m.filled + b.required.filled, total: m.total + b.required.total }), { filled: 0, total: 0 }));
1619
+ return { states: l, totals: d };
1767
1620
  }
1768
- const yl = {
1621
+ const fl = {
1769
1622
  class: "grid min-w-0 grid-cols-1 items-start gap-8 lg:grid-cols-[12.5rem_minmax(0,1fr)]",
1770
1623
  "data-test": "editor-page"
1771
- }, gl = {
1624
+ }, ml = {
1772
1625
  key: 0,
1773
1626
  class: "sticky top-[calc(var(--app-bar-height)+1.5rem+var(--shell-banner-h,0px))] hidden min-w-0 flex-col gap-4 self-start lg:flex"
1774
- }, Do = /* @__PURE__ */ N({
1627
+ }, Fo = /* @__PURE__ */ G({
1775
1628
  __name: "EditorPage",
1776
1629
  props: {
1777
1630
  title: {},
@@ -1783,7 +1636,7 @@ const yl = {
1783
1636
  },
1784
1637
  emits: ["save", "cancel"],
1785
1638
  setup(o, { emit: t }) {
1786
- const e = o, a = t, { t: n } = ee(), s = qe(), d = Yt(), { states: c, totals: b } = hl(d), g = K("content"), _ = h(
1639
+ const e = o, a = t, { t: n } = Q(), l = Ee(), d = Kt(), { states: m, totals: b } = cl(d), h = P("content"), k = y(
1787
1640
  () => e.form ? {
1788
1641
  form: e.form,
1789
1642
  label: () => e.saveLabel ?? n("core.actions.save"),
@@ -1796,90 +1649,90 @@ const yl = {
1796
1649
  }
1797
1650
  } : null
1798
1651
  );
1799
- de(
1652
+ re(
1800
1653
  () => e.form?.failure.value,
1801
1654
  async (r) => {
1802
- r?.kind === "invalid" && (await ce(), await ze(g.value ?? document, d));
1655
+ r?.kind === "invalid" && (await ye(), await ze(h.value ?? document, d));
1803
1656
  }
1804
1657
  );
1805
1658
  function x(r) {
1806
1659
  const u = d.sections.value.find((v) => v.id === r)?.element;
1807
- u && ce(() => ze(u));
1660
+ u && ye(() => ze(u));
1808
1661
  }
1809
- return (r, u) => (i(), z(Pt, {
1662
+ return (r, u) => (i(), q(It, {
1810
1663
  title: e.title,
1811
1664
  back: e.back,
1812
1665
  width: "content"
1813
- }, tt({
1814
- default: w(() => [
1815
- _.value ? (i(), z(bl, {
1666
+ }, Ze({
1667
+ default: C(() => [
1668
+ k.value ? (i(), q(dl, {
1816
1669
  key: 0,
1817
- options: _.value
1818
- }, null, 8, ["options"])) : V("", !0),
1819
- p("div", yl, [
1820
- l(s) ? V("", !0) : (i(), y("aside", gl, [
1821
- j(At, {
1670
+ options: k.value
1671
+ }, null, 8, ["options"])) : D("", !0),
1672
+ p("div", fl, [
1673
+ s(l) ? D("", !0) : (i(), g("aside", ml, [
1674
+ M(Gt, {
1822
1675
  standalone: "",
1823
- states: l(c),
1824
- progress: l(b),
1676
+ states: s(m),
1677
+ progress: s(b),
1825
1678
  onSelect: x
1826
1679
  }, null, 8, ["states", "progress"]),
1827
- ne(r.$slots, "aside")
1680
+ le(r.$slots, "aside")
1828
1681
  ])),
1829
1682
  p("div", {
1830
1683
  ref_key: "content",
1831
- ref: g,
1684
+ ref: h,
1832
1685
  class: "flex min-w-0 flex-col gap-section-gap"
1833
1686
  }, [
1834
- e.form ? (i(), z(Ee, {
1687
+ e.form ? (i(), q(Me, {
1835
1688
  key: 0,
1836
1689
  form: e.form,
1837
1690
  label: e.fieldLabel,
1838
- scope: g.value
1839
- }, null, 8, ["form", "label", "scope"])) : V("", !0),
1840
- ne(r.$slots, "default")
1691
+ scope: h.value
1692
+ }, null, 8, ["form", "label", "scope"])) : D("", !0),
1693
+ le(r.$slots, "default")
1841
1694
  ], 512)
1842
1695
  ]),
1843
- l(s) ? (i(), z(Ut, {
1696
+ s(l) ? (i(), q(Nt, {
1844
1697
  key: 1,
1845
- states: l(c)
1846
- }, null, 8, ["states"])) : V("", !0)
1698
+ states: s(m)
1699
+ }, null, 8, ["states"])) : D("", !0)
1847
1700
  ]),
1848
1701
  _: 2
1849
1702
  }, [
1850
1703
  r.$slots.header ? {
1851
1704
  name: "header",
1852
- fn: w(() => [
1853
- ne(r.$slots, "header")
1705
+ fn: C(() => [
1706
+ le(r.$slots, "header")
1854
1707
  ]),
1855
1708
  key: "0"
1856
1709
  } : void 0,
1857
1710
  r.$slots.pager ? {
1858
1711
  name: "pager",
1859
- fn: w(() => [
1860
- ne(r.$slots, "pager")
1712
+ fn: C(() => [
1713
+ le(r.$slots, "pager")
1861
1714
  ]),
1862
1715
  key: "1"
1863
1716
  } : void 0,
1864
1717
  r.$slots.notices ? {
1865
1718
  name: "notices",
1866
- fn: w(() => [
1867
- ne(r.$slots, "notices")
1719
+ fn: C(() => [
1720
+ le(r.$slots, "notices")
1868
1721
  ]),
1869
1722
  key: "2"
1870
1723
  } : void 0,
1871
1724
  r.$slots.bottom ? {
1872
1725
  name: "bottom",
1873
- fn: w(() => [
1874
- ne(r.$slots, "bottom")
1726
+ fn: C(() => [
1727
+ le(r.$slots, "bottom")
1875
1728
  ]),
1876
1729
  key: "3"
1877
1730
  } : void 0
1878
1731
  ]), 1032, ["title", "back"]));
1879
1732
  }
1880
- }), xl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], zo = /* @__PURE__ */ N({
1733
+ }), vl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], Lo = /* @__PURE__ */ G({
1881
1734
  __name: "NumberCell",
1882
- props: /* @__PURE__ */ le({
1735
+ props: /* @__PURE__ */ se({
1883
1736
  label: {},
1884
1737
  min: { default: 0 },
1885
1738
  max: { default: 9999 },
@@ -1893,13 +1746,13 @@ const yl = {
1893
1746
  }),
1894
1747
  emits: ["update:modelValue"],
1895
1748
  setup(o) {
1896
- const t = o, e = ae(o, "modelValue");
1897
- function a(s) {
1898
- const d = s.target.value.replace(/\D/g, "");
1749
+ const t = o, e = oe(o, "modelValue");
1750
+ function a(l) {
1751
+ const d = l.target.value.replace(/\D/g, "");
1899
1752
  e.value = d === "" ? null : Math.min(t.max, Math.max(t.min, Number(d)));
1900
1753
  }
1901
- const n = (s) => s.target.value = e.value === null ? "" : String(e.value);
1902
- return (s, d) => (i(), y("input", {
1754
+ const n = (l) => l.target.value = e.value === null ? "" : String(e.value);
1755
+ return (l, d) => (i(), g("input", {
1903
1756
  value: e.value ?? "",
1904
1757
  type: "text",
1905
1758
  inputmode: "numeric",
@@ -1908,22 +1761,22 @@ const yl = {
1908
1761
  disabled: t.disabled,
1909
1762
  "aria-invalid": t.invalid || void 0,
1910
1763
  placeholder: t.placeholder,
1911
- class: O(["rounded-control bg-fill px-2 py-1 text-right text-body tabular-nums text-content-strong transition-[background-color,box-shadow] duration-motion-fast ease-motion-standard placeholder:text-content-disabled focus:bg-surface-cell focus:outline-none focus:ring-[1.5px] focus:ring-inset focus:ring-border-focus disabled:opacity-45", [t.wide ? "w-28" : "w-16", t.invalid ? "bg-status-danger-surface ring-[1.5px] ring-inset ring-border-destructive" : ""]]),
1764
+ class: R(["rounded-control bg-fill px-2 py-1 text-right text-body tabular-nums text-content-strong transition-[background-color,box-shadow] duration-motion-fast ease-motion-standard placeholder:text-content-disabled focus:bg-surface-cell focus:outline-none focus:ring-[1.5px] focus:ring-inset focus:ring-border-focus disabled:opacity-45", [t.wide ? "w-28" : "w-16", t.invalid ? "bg-status-danger-surface ring-[1.5px] ring-inset ring-border-destructive" : ""]]),
1912
1765
  onInput: a,
1913
1766
  onBlur: n
1914
- }, null, 42, xl));
1767
+ }, null, 42, vl));
1915
1768
  }
1916
- }), Pe = "vue-core:step-draft:";
1917
- function Ae(o) {
1769
+ }), Ge = "vue-core:step-draft:";
1770
+ function Ne(o) {
1918
1771
  try {
1919
1772
  return (o.storage === "local" ? window.localStorage : window.sessionStorage) ?? null;
1920
1773
  } catch {
1921
1774
  return null;
1922
1775
  }
1923
1776
  }
1924
- function kl(o) {
1777
+ function pl(o) {
1925
1778
  try {
1926
- const t = Ae(o)?.getItem(Pe + o.key);
1779
+ const t = Ne(o)?.getItem(Ge + o.key);
1927
1780
  if (!t) return null;
1928
1781
  const e = JSON.parse(t);
1929
1782
  return !e || e.version !== (o.version ?? 1) || typeof e.values != "object" || e.values === null || typeof e.step != "string" || !Array.isArray(e.passed) ? null : e;
@@ -1931,308 +1784,308 @@ function kl(o) {
1931
1784
  return null;
1932
1785
  }
1933
1786
  }
1934
- function _l(o, t) {
1787
+ function bl(o, t) {
1935
1788
  try {
1936
- const e = Ae(o);
1789
+ const e = Ne(o);
1937
1790
  if (!e) return !1;
1938
- const a = (n, s) => typeof Blob < "u" && s instanceof Blob ? null : s;
1939
- return e.setItem(Pe + o.key, JSON.stringify({ version: o.version ?? 1, ...t }, a)), !0;
1791
+ const a = (n, l) => typeof Blob < "u" && l instanceof Blob ? null : l;
1792
+ return e.setItem(Ge + o.key, JSON.stringify({ version: o.version ?? 1, ...t }, a)), !0;
1940
1793
  } catch {
1941
1794
  return !1;
1942
1795
  }
1943
1796
  }
1944
- function Xe(o) {
1797
+ function He(o) {
1945
1798
  try {
1946
- Ae(o)?.removeItem(Pe + o.key);
1799
+ Ne(o)?.removeItem(Ge + o.key);
1947
1800
  } catch {
1948
1801
  }
1949
1802
  }
1950
- function wl(o, t) {
1803
+ function gl(o, t) {
1951
1804
  for (const [e, a] of Object.entries(o)) {
1952
1805
  if (!(e in t)) continue;
1953
1806
  const n = t[e];
1954
1807
  (n === null || a === null || a === void 0 || typeof n == typeof a && Array.isArray(n) === Array.isArray(a)) && (o[e] = n);
1955
1808
  }
1956
1809
  }
1957
- function To(o, t) {
1958
- const { t: e } = ee(), a = h(() => Me(t.steps));
1810
+ function Bo(o, t) {
1811
+ const { t: e } = Q(), a = y(() => qe(t.steps));
1959
1812
  if (a.value.length === 0) throw new Error("useStepForm: a flow needs at least one step.");
1960
- const n = G(a.value[0].name), s = Ye(/* @__PURE__ */ new Set()), d = Ye(/* @__PURE__ */ new Set([a.value[0].name])), c = G(null), b = G(!1), g = G(0), _ = G(!1), x = G(!1);
1813
+ const n = I(a.value[0].name), l = Pe(/* @__PURE__ */ new Set()), d = Pe(/* @__PURE__ */ new Set([a.value[0].name])), m = I(null), b = I(!1), h = I(0), k = I(!1), x = I(!1);
1961
1814
  let r = !1, u = 0;
1962
- const v = h(() => Math.max(0, a.value.findIndex((f) => f.name === n.value))), C = (f) => f.fields?.filter((T) => o.errors.has(T)).length ?? 0, B = h(
1963
- () => a.value.map((f, T) => {
1964
- const m = C(f), L = T === v.value;
1815
+ const v = y(() => Math.max(0, a.value.findIndex((c) => c.name === n.value))), F = (c) => c.fields?.filter((V) => o.errors.has(V)).length ?? 0, B = y(
1816
+ () => a.value.map((c, V) => {
1817
+ const f = F(c), L = V === v.value;
1965
1818
  return {
1966
- name: f.name,
1967
- label: f.label,
1968
- position: T + 1,
1969
- state: L ? "current" : s.has(f.name) && m === 0 ? "done" : "todo",
1970
- errors: m,
1971
- reachable: !L && (d.has(f.name) || T < v.value)
1819
+ name: c.name,
1820
+ label: c.label,
1821
+ position: V + 1,
1822
+ state: L ? "current" : l.has(c.name) && f === 0 ? "done" : "todo",
1823
+ errors: f,
1824
+ reachable: !L && (d.has(c.name) || V < v.value)
1972
1825
  };
1973
1826
  })
1974
- ), k = h(() => B.value[v.value]), E = h(() => B.value.length), $ = h(() => v.value === 0), q = h(() => v.value === E.value - 1), M = h(() => b.value || o.submitting.value);
1975
- function P(f) {
1976
- const T = a.value[f];
1977
- T && (c.value = f > v.value ? "forward" : "back", n.value = T.name, d.add(T.name), u = f, _.value = !1);
1827
+ ), _ = y(() => B.value[v.value]), E = y(() => B.value.length), w = y(() => v.value === 0), O = y(() => v.value === E.value - 1), T = y(() => b.value || o.submitting.value);
1828
+ function A(c) {
1829
+ const V = a.value[c];
1830
+ V && (m.value = c > v.value ? "forward" : "back", n.value = V.name, d.add(V.name), u = c, k.value = !1);
1978
1831
  }
1979
- de(
1980
- () => a.value.map((f) => f.name).join("\0"),
1832
+ re(
1833
+ () => a.value.map((c) => c.name).join("\0"),
1981
1834
  () => {
1982
- const f = a.value, T = f.findIndex((L) => L.name === n.value), m = T === -1 ? Math.min(u, f.length - 1) : T;
1983
- n.value = f[m].name, u = m, f.forEach((L, D) => {
1984
- D > m && (s.delete(L.name), d.delete(L.name));
1835
+ const c = a.value, V = c.findIndex((L) => L.name === n.value), f = V === -1 ? Math.min(u, c.length - 1) : V;
1836
+ n.value = c[f].name, u = f, c.forEach((L, z) => {
1837
+ z > f && (l.delete(L.name), d.delete(L.name));
1985
1838
  }), d.add(n.value);
1986
- for (const L of [s, d]) for (const D of [...L]) f.some((pe) => pe.name === D) || L.delete(D);
1839
+ for (const L of [l, d]) for (const z of [...L]) c.some((me) => me.name === z) || L.delete(z);
1987
1840
  }
1988
1841
  );
1989
- function Q(f) {
1990
- const T = f.fields;
1991
- if (!T?.length) return !0;
1992
- const m = Object.entries(o.errors.all()).filter(([D]) => !T.includes(Ze(D))), L = o.check(f.fields);
1993
- return m.length > 0 && o.errors.set({ ...Object.fromEntries(m), ...o.errors.all() }), L;
1842
+ function Z(c) {
1843
+ const V = c.fields;
1844
+ if (!V?.length) return !0;
1845
+ const f = Object.entries(o.errors.all()).filter(([z]) => !V.includes(Xe(z))), L = o.check(c.fields);
1846
+ return f.length > 0 && o.errors.set({ ...Object.fromEntries(f), ...o.errors.all() }), L;
1994
1847
  }
1995
- async function X(f) {
1996
- if (!Q(f))
1997
- return g.value++, !1;
1998
- if (!f.beforeNext) return !0;
1848
+ async function ee(c) {
1849
+ if (!Z(c))
1850
+ return h.value++, !1;
1851
+ if (!c.beforeNext) return !0;
1999
1852
  b.value = !0;
2000
1853
  try {
2001
- if (await f.beforeNext()) return !0;
1854
+ if (await c.beforeNext()) return !0;
2002
1855
  } finally {
2003
1856
  b.value = !1;
2004
1857
  }
2005
- return g.value++, !1;
1858
+ return h.value++, !1;
2006
1859
  }
2007
- async function Y() {
2008
- const f = await o.submit(t.submit, t.submitOptions);
2009
- if (f.status === "saved" || f.status === "saved-refresh-failed")
2010
- return r = !0, se(), t.onSaved?.(f.value), !0;
2011
- if (f.status === "failed" && (g.value++, k.value.errors === 0)) {
2012
- const T = B.value.findIndex((m) => m.errors > 0);
2013
- T !== -1 && P(T);
1860
+ async function X() {
1861
+ const c = await o.submit(t.submit, t.submitOptions);
1862
+ if (c.status === "saved" || c.status === "saved-refresh-failed")
1863
+ return r = !0, ae(), t.onSaved?.(c.value), !0;
1864
+ if (c.status === "failed" && (h.value++, _.value.errors === 0)) {
1865
+ const V = B.value.findIndex((f) => f.errors > 0);
1866
+ V !== -1 && A(V);
2014
1867
  }
2015
1868
  return !1;
2016
1869
  }
2017
- async function I() {
2018
- if (M.value) return !1;
2019
- const f = a.value[v.value];
2020
- return await X(f) ? (s.add(f.name), v.value < E.value - 1 ? (P(v.value + 1), !0) : Y()) : !1;
1870
+ async function N() {
1871
+ if (T.value) return !1;
1872
+ const c = a.value[v.value];
1873
+ return await ee(c) ? (l.add(c.name), v.value < E.value - 1 ? (A(v.value + 1), !0) : X()) : !1;
2021
1874
  }
2022
- async function A(f) {
2023
- if (M.value) return !1;
2024
- const T = a.value.findIndex((m) => m.name === f);
2025
- if (T === -1) return !1;
2026
- if (T <= v.value)
2027
- return T < v.value && P(T), !0;
2028
- if (!d.has(f)) return !1;
2029
- for (; v.value < T; ) if (!await I()) return !1;
2030
- return v.value === T;
1875
+ async function W(c) {
1876
+ if (T.value) return !1;
1877
+ const V = a.value.findIndex((f) => f.name === c);
1878
+ if (V === -1) return !1;
1879
+ if (V <= v.value)
1880
+ return V < v.value && A(V), !0;
1881
+ if (!d.has(c)) return !1;
1882
+ for (; v.value < V; ) if (!await N()) return !1;
1883
+ return v.value === V;
2031
1884
  }
2032
- const H = t.draft;
2033
- let U;
2034
- function oe() {
2035
- if (U = void 0, !(!H || r)) {
1885
+ const U = t.draft;
1886
+ let K;
1887
+ function te() {
1888
+ if (K = void 0, !(!U || r)) {
2036
1889
  if (!o.dirty.value) {
2037
- Xe(H), x.value = !1;
1890
+ He(U), x.value = !1;
2038
1891
  return;
2039
1892
  }
2040
- x.value = _l(H, { values: $e(o.values), step: n.value, passed: [...s] });
1893
+ x.value = bl(U, { values: $e(o.values), step: n.value, passed: [...l] });
2041
1894
  }
2042
1895
  }
2043
- function se() {
2044
- r = !0, clearTimeout(U), U = void 0, x.value = !1, H && Xe(H);
1896
+ function ae() {
1897
+ r = !0, clearTimeout(K), K = void 0, x.value = !1, U && He(U);
2045
1898
  }
2046
- if (H) {
2047
- const f = kl(H);
2048
- if (f) {
2049
- wl(o.values, f.values);
2050
- const T = a.value.map((m) => m.name);
2051
- T.includes(f.step) && (n.value = f.step);
2052
- for (const m of f.passed) T.includes(m) && s.add(m);
2053
- for (const m of [...s, n.value]) d.add(m);
2054
- u = v.value, _.value = o.dirty.value, x.value = _.value;
1899
+ if (U) {
1900
+ const c = pl(U);
1901
+ if (c) {
1902
+ gl(o.values, c.values);
1903
+ const V = a.value.map((f) => f.name);
1904
+ V.includes(c.step) && (n.value = c.step);
1905
+ for (const f of c.passed) V.includes(f) && l.add(f);
1906
+ for (const f of [...l, n.value]) d.add(f);
1907
+ u = v.value, k.value = o.dirty.value, x.value = k.value;
2055
1908
  }
2056
- de(
2057
- [() => o.values, n, () => [...s].join("\0")],
1909
+ re(
1910
+ [() => o.values, n, () => [...l].join("\0")],
2058
1911
  () => {
2059
- r || (clearTimeout(U), U = setTimeout(oe, 400));
1912
+ r || (clearTimeout(K), K = setTimeout(te, 400));
2060
1913
  },
2061
1914
  { deep: !0 }
2062
- ), Ge(() => {
2063
- U !== void 0 && (clearTimeout(U), oe());
1915
+ ), je(() => {
1916
+ K !== void 0 && (clearTimeout(K), te());
2064
1917
  });
2065
1918
  }
2066
- const { confirmDiscard: ge } = Ne(() => !r && o.dirty.value);
2067
- et(Jt, null) && Ht(() => (r || se(), !0));
2068
- async function me() {
2069
- const f = await ge();
2070
- return f && se(), f;
1919
+ const { confirmDiscard: he } = Re(() => !r && o.dirty.value);
1920
+ Qe(At, null) && Ut(() => (r || ae(), !0));
1921
+ async function ce() {
1922
+ const c = await he();
1923
+ return c && ae(), c;
2071
1924
  }
2072
- function ke() {
2073
- o.reset(), s.clear(), d.clear(), c.value = null, n.value = a.value[0].name, d.add(n.value), u = 0, _.value = !1, se(), r = !1;
1925
+ function _e() {
1926
+ o.reset(), l.clear(), d.clear(), m.value = null, n.value = a.value[0].name, d.add(n.value), u = 0, k.value = !1, ae(), r = !1;
2074
1927
  }
2075
- const F = h(() => {
2076
- const f = [e("core.steps.position", { current: v.value + 1, total: E.value }), k.value.label];
2077
- return x.value && f.push(e("core.steps.draft_saved")), f.join(" · ");
2078
- }), R = h(() => {
2079
- const f = a.value[v.value];
2080
- return f.nextLabel ? f.nextLabel : q.value ? t.submitLabel ?? e("core.actions.save") : e("core.steps.next_named", { step: a.value[v.value + 1].label });
2081
- }), ve = h(() => $.value ? null : a.value[v.value - 1].label);
1928
+ const S = y(() => {
1929
+ const c = [e("core.steps.position", { current: v.value + 1, total: E.value }), _.value.label];
1930
+ return x.value && c.push(e("core.steps.draft_saved")), c.join(" · ");
1931
+ }), j = y(() => {
1932
+ const c = a.value[v.value];
1933
+ return c.nextLabel ? c.nextLabel : O.value ? t.submitLabel ?? e("core.actions.save") : e("core.steps.next_named", { step: a.value[v.value + 1].label });
1934
+ }), fe = y(() => w.value ? null : a.value[v.value - 1].label);
2082
1935
  return {
2083
1936
  steps: B,
2084
- current: k,
1937
+ current: _,
2085
1938
  index: v,
2086
1939
  count: E,
2087
- isFirst: $,
2088
- isLast: q,
2089
- busy: M,
2090
- direction: c,
2091
- subtitle: F,
2092
- nextLabel: R,
2093
- backLabel: ve,
2094
- restored: _,
2095
- refusals: g,
1940
+ isFirst: w,
1941
+ isLast: O,
1942
+ busy: T,
1943
+ direction: m,
1944
+ subtitle: S,
1945
+ nextLabel: j,
1946
+ backLabel: fe,
1947
+ restored: k,
1948
+ refusals: h,
2096
1949
  errors: o.errors,
2097
1950
  failure: o.failure,
2098
- next: I,
2099
- back: () => P(v.value - 1),
2100
- goTo: A,
2101
- restart: ke,
2102
- confirmDiscard: me,
2103
- bindDialog: () => ({ subtitle: F.value, primaryLabel: R.value, status: M.value ? "processing" : "idle", beforeDismiss: me })
1951
+ next: N,
1952
+ back: () => A(v.value - 1),
1953
+ goTo: W,
1954
+ restart: _e,
1955
+ confirmDiscard: ce,
1956
+ bindDialog: () => ({ subtitle: S.value, primaryLabel: j.value, status: T.value ? "processing" : "idle", beforeDismiss: ce })
2104
1957
  };
2105
1958
  }
2106
- const $l = {
1959
+ const hl = {
2107
1960
  class: "flex flex-wrap items-center gap-2.5 border-t border-border-separator pt-3.5",
2108
1961
  "data-test": "step-navigation"
2109
- }, Sl = /* @__PURE__ */ N({
1962
+ }, yl = /* @__PURE__ */ G({
2110
1963
  __name: "StepNavigation",
2111
1964
  props: {
2112
1965
  flow: {}
2113
1966
  },
2114
1967
  emits: ["cancel"],
2115
1968
  setup(o) {
2116
- const t = o, { t: e } = ee();
2117
- return (a, n) => (i(), y("div", $l, [
2118
- t.flow.backLabel.value ? (i(), z(ye, {
1969
+ const t = o, { t: e } = Q();
1970
+ return (a, n) => (i(), g("div", hl, [
1971
+ t.flow.backLabel.value ? (i(), q(be, {
2119
1972
  key: 0,
2120
1973
  prominence: "plain",
2121
1974
  icon: "arrowLeftSLine",
2122
1975
  disabled: t.flow.busy.value,
2123
1976
  "data-test": "step-back",
2124
- onClick: n[0] || (n[0] = (s) => t.flow.back())
1977
+ onClick: n[0] || (n[0] = (l) => t.flow.back())
2125
1978
  }, {
2126
- default: w(() => [
2127
- W(S(t.flow.backLabel.value), 1)
1979
+ default: C(() => [
1980
+ Y($(t.flow.backLabel.value), 1)
2128
1981
  ]),
2129
1982
  _: 1
2130
- }, 8, ["disabled"])) : V("", !0),
1983
+ }, 8, ["disabled"])) : D("", !0),
2131
1984
  n[3] || (n[3] = p("div", { class: "grow" }, null, -1)),
2132
- j(ye, {
1985
+ M(be, {
2133
1986
  prominence: "plain",
2134
1987
  "data-test": "step-cancel",
2135
- onClick: n[1] || (n[1] = (s) => a.$emit("cancel"))
1988
+ onClick: n[1] || (n[1] = (l) => a.$emit("cancel"))
2136
1989
  }, {
2137
- default: w(() => [
2138
- W(S(l(e)("core.actions.cancel")), 1)
1990
+ default: C(() => [
1991
+ Y($(s(e)("core.actions.cancel")), 1)
2139
1992
  ]),
2140
1993
  _: 1
2141
1994
  }),
2142
- j(ye, {
1995
+ M(be, {
2143
1996
  prominence: "primary",
2144
1997
  processing: t.flow.busy.value,
2145
1998
  "data-test": "step-next",
2146
- onClick: n[2] || (n[2] = (s) => t.flow.next())
1999
+ onClick: n[2] || (n[2] = (l) => t.flow.next())
2147
2000
  }, {
2148
- default: w(() => [
2149
- W(S(t.flow.nextLabel.value), 1)
2001
+ default: C(() => [
2002
+ Y($(t.flow.nextLabel.value), 1)
2150
2003
  ]),
2151
2004
  _: 1
2152
2005
  }, 8, ["processing"])
2153
2006
  ]));
2154
2007
  }
2155
- }), Cl = ["aria-label"], Fl = ["aria-current"], Bl = ["aria-label"], Ll = {
2008
+ }), xl = ["aria-label"], _l = ["aria-current"], kl = ["aria-label"], wl = {
2156
2009
  key: 2,
2157
2010
  class: "sr-only"
2158
- }, ql = {
2011
+ }, $l = {
2159
2012
  key: 1,
2160
2013
  "data-test": "step-dots",
2161
2014
  class: "flex justify-center gap-1.5",
2162
2015
  "aria-hidden": "true"
2163
- }, Vl = ["data-state"], Dl = /* @__PURE__ */ N({
2016
+ }, Sl = ["data-state"], Cl = /* @__PURE__ */ G({
2164
2017
  __name: "StepProgress",
2165
2018
  props: {
2166
2019
  flow: {},
2167
2020
  progress: { default: "bar" }
2168
2021
  },
2169
2022
  setup(o) {
2170
- const t = o, { t: e } = ee();
2171
- return (a, n) => t.progress === "bar" ? (i(), y("ol", {
2023
+ const t = o, { t: e } = Q();
2024
+ return (a, n) => t.progress === "bar" ? (i(), g("ol", {
2172
2025
  key: 0,
2173
- "aria-label": l(e)("core.steps.label"),
2026
+ "aria-label": s(e)("core.steps.label"),
2174
2027
  "data-test": "step-bar",
2175
2028
  class: "grid min-w-0 gap-2",
2176
- style: vt({ gridTemplateColumns: `repeat(${t.flow.count.value}, minmax(0, 1fr))` })
2029
+ style: it({ gridTemplateColumns: `repeat(${t.flow.count.value}, minmax(0, 1fr))` })
2177
2030
  }, [
2178
- (i(!0), y(te, null, xe(t.flow.steps.value, (s) => (i(), y("li", {
2179
- key: s.name,
2031
+ (i(!0), g(ne, null, xe(t.flow.steps.value, (l) => (i(), g("li", {
2032
+ key: l.name,
2180
2033
  class: "flex min-w-0",
2181
- "aria-current": s.state === "current" ? "step" : void 0
2034
+ "aria-current": l.state === "current" ? "step" : void 0
2182
2035
  }, [
2183
- (i(), z(pt(s.reachable ? "button" : "div"), {
2184
- type: s.reachable ? "button" : void 0,
2185
- disabled: s.reachable ? t.flow.busy.value : void 0,
2186
- "data-test": `step-${s.name}`,
2187
- "data-state": s.errors > 0 ? "error" : s.state,
2188
- class: O(["group flex min-w-0 flex-1 flex-col gap-1.5 text-left", s.reachable ? "cursor-pointer rounded-control focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-default" : ""]),
2189
- onClick: (d) => s.reachable ? t.flow.goTo(s.name) : void 0
2036
+ (i(), q(ut(l.reachable ? "button" : "div"), {
2037
+ type: l.reachable ? "button" : void 0,
2038
+ disabled: l.reachable ? t.flow.busy.value : void 0,
2039
+ "data-test": `step-${l.name}`,
2040
+ "data-state": l.errors > 0 ? "error" : l.state,
2041
+ class: R(["group flex min-w-0 flex-1 flex-col gap-1.5 text-left", l.reachable ? "cursor-pointer rounded-control focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-default" : ""]),
2042
+ onClick: (d) => l.reachable ? t.flow.goTo(l.name) : void 0
2190
2043
  }, {
2191
- default: w(() => [
2044
+ default: C(() => [
2192
2045
  p("span", {
2193
- class: O(["h-1 rounded-full transition-colors duration-motion-normal", s.errors > 0 ? "bg-status-danger-solid" : s.state === "current" ? "bg-tint" : s.state === "done" ? "bg-control-on" : "bg-fill-strong"]),
2046
+ class: R(["h-1 rounded-full transition-colors duration-motion-normal", l.errors > 0 ? "bg-status-danger-solid" : l.state === "current" ? "bg-tint" : l.state === "done" ? "bg-control-on" : "bg-fill-strong"]),
2194
2047
  "aria-hidden": "true"
2195
2048
  }, null, 2),
2196
2049
  p("span", {
2197
- class: O(["flex min-w-0 items-center gap-1.5 text-footnote", s.state === "current" ? "font-bold text-content-strong" : s.state === "done" ? "font-medium text-content-link" : "font-medium text-content-muted"])
2050
+ class: R(["flex min-w-0 items-center gap-1.5 text-footnote", l.state === "current" ? "font-bold text-content-strong" : l.state === "done" ? "font-medium text-content-link" : "font-medium text-content-muted"])
2198
2051
  }, [
2199
- s.state === "done" ? (i(), z(l(Z), {
2052
+ l.state === "done" ? (i(), q(s(H), {
2200
2053
  key: 0,
2201
2054
  name: "checkCustom",
2202
2055
  size: 12,
2203
2056
  class: "shrink-0"
2204
- })) : V("", !0),
2057
+ })) : D("", !0),
2205
2058
  p("span", {
2206
- class: O(["truncate", s.reachable ? "group-hover:text-content-link" : ""])
2207
- }, S(s.position) + ". " + S(s.label), 3),
2208
- s.errors > 0 ? (i(), y("span", {
2059
+ class: R(["truncate", l.reachable ? "group-hover:text-content-link" : ""])
2060
+ }, $(l.position) + ". " + $(l.label), 3),
2061
+ l.errors > 0 ? (i(), g("span", {
2209
2062
  key: 1,
2210
2063
  "data-test": "step-errors",
2211
- "aria-label": l(e)("core.form.sections.errors", { count: s.errors }),
2064
+ "aria-label": s(e)("core.form.sections.errors", { count: l.errors }),
2212
2065
  class: "min-w-4.5 shrink-0 rounded-full bg-status-danger-solid px-1.5 text-center text-caption font-semibold text-white"
2213
- }, S(s.errors), 9, Bl)) : V("", !0),
2214
- s.state === "done" ? (i(), y("span", Ll, S(l(e)("core.steps.done")), 1)) : V("", !0)
2066
+ }, $(l.errors), 9, kl)) : D("", !0),
2067
+ l.state === "done" ? (i(), g("span", wl, $(s(e)("core.steps.done")), 1)) : D("", !0)
2215
2068
  ], 2)
2216
2069
  ]),
2217
2070
  _: 2
2218
2071
  }, 1032, ["type", "disabled", "data-test", "data-state", "class", "onClick"]))
2219
- ], 8, Fl))), 128))
2220
- ], 12, Cl)) : (i(), y("div", ql, [
2221
- (i(!0), y(te, null, xe(t.flow.steps.value, (s) => (i(), y("span", {
2222
- key: s.name,
2223
- class: O(["h-1.5 rounded-full transition-all duration-motion-fast", [s.state === "current" ? "w-4.5" : "w-1.5", s.errors > 0 ? "bg-status-danger-solid" : s.state === "todo" && s.position > t.flow.index.value ? "bg-fill-strong" : "bg-tint"]]),
2224
- "data-state": s.errors > 0 ? "error" : s.state
2225
- }, null, 10, Vl))), 128))
2072
+ ], 8, _l))), 128))
2073
+ ], 12, xl)) : (i(), g("div", $l, [
2074
+ (i(!0), g(ne, null, xe(t.flow.steps.value, (l) => (i(), g("span", {
2075
+ key: l.name,
2076
+ class: R(["h-1.5 rounded-full transition-all duration-motion-fast", [l.state === "current" ? "w-4.5" : "w-1.5", l.errors > 0 ? "bg-status-danger-solid" : l.state === "todo" && l.position > t.flow.index.value ? "bg-fill-strong" : "bg-tint"]]),
2077
+ "data-state": l.errors > 0 ? "error" : l.state
2078
+ }, null, 10, Sl))), 128))
2226
2079
  ]));
2227
2080
  }
2228
- }), zl = ["data-step"], Tl = {
2081
+ }), Fl = ["data-step"], Ll = {
2229
2082
  class: "sr-only",
2230
2083
  "aria-live": "polite"
2231
- }, jl = {
2084
+ }, Bl = {
2232
2085
  key: 1,
2233
2086
  "data-test": "step-restored",
2234
2087
  class: "flex items-center gap-2 text-footnote text-content-muted"
2235
- }, jo = /* @__PURE__ */ N({
2088
+ }, zo = /* @__PURE__ */ G({
2236
2089
  __name: "StepForm",
2237
2090
  props: {
2238
2091
  flow: {},
@@ -2241,136 +2094,136 @@ const $l = {
2241
2094
  },
2242
2095
  emits: ["cancel"],
2243
2096
  setup(o) {
2244
- const t = o, { t: e } = ee(), a = K("body");
2245
- return de(() => t.flow.current.value.name, async () => {
2246
- await ce(), a.value?.focus();
2247
- }), de(() => t.flow.refusals.value, async () => {
2248
- await ce(), a.value && await ze(a.value);
2249
- }), (n, s) => (i(), y("div", {
2097
+ const t = o, { t: e } = Q(), a = P("body");
2098
+ return re(() => t.flow.current.value.name, async () => {
2099
+ await ye(), a.value?.focus();
2100
+ }), re(() => t.flow.refusals.value, async () => {
2101
+ await ye(), a.value && await ze(a.value);
2102
+ }), (n, l) => (i(), g("div", {
2250
2103
  class: "flex min-w-0 flex-col gap-group-gap",
2251
2104
  "data-test": "step-form",
2252
2105
  "data-step": t.flow.current.value.name
2253
2106
  }, [
2254
- t.progress !== "none" ? (i(), z(Dl, {
2107
+ t.progress !== "none" ? (i(), q(Cl, {
2255
2108
  key: 0,
2256
2109
  flow: t.flow,
2257
2110
  progress: t.progress
2258
- }, null, 8, ["flow", "progress"])) : V("", !0),
2259
- p("p", Tl, S(t.flow.subtitle.value), 1),
2260
- t.flow.restored.value ? (i(), y("div", jl, [
2261
- p("span", null, S(l(e)("core.steps.restored")), 1),
2262
- j(ye, {
2111
+ }, null, 8, ["flow", "progress"])) : D("", !0),
2112
+ p("p", Ll, $(t.flow.subtitle.value), 1),
2113
+ t.flow.restored.value ? (i(), g("div", Bl, [
2114
+ p("span", null, $(s(e)("core.steps.restored")), 1),
2115
+ M(be, {
2263
2116
  prominence: "link",
2264
2117
  size: "sm",
2265
- onClick: s[0] || (s[0] = (d) => t.flow.restart())
2118
+ onClick: l[0] || (l[0] = (d) => t.flow.restart())
2266
2119
  }, {
2267
- default: w(() => [
2268
- W(S(l(e)("core.steps.start_over")), 1)
2120
+ default: C(() => [
2121
+ Y($(s(e)("core.steps.start_over")), 1)
2269
2122
  ]),
2270
2123
  _: 1
2271
2124
  })
2272
- ])) : V("", !0),
2273
- (i(), z(Ee, {
2125
+ ])) : D("", !0),
2126
+ (i(), q(Me, {
2274
2127
  key: t.flow.current.value.name,
2275
2128
  form: t.flow
2276
2129
  }, null, 8, ["form"])),
2277
- (i(), y("form", {
2130
+ (i(), g("form", {
2278
2131
  key: t.flow.current.value.name,
2279
2132
  ref_key: "body",
2280
2133
  ref: a,
2281
2134
  tabindex: "-1",
2282
2135
  novalidate: "",
2283
2136
  "data-test": "step-body",
2284
- class: O(["flex min-w-0 flex-col gap-group-gap outline-none", t.flow.direction.value === "back" ? "animate-step-back" : t.flow.direction.value === "forward" ? "animate-step-in" : ""]),
2285
- onSubmit: s[1] || (s[1] = he((d) => t.flow.next(), ["prevent"]))
2137
+ class: R(["flex min-w-0 flex-col gap-group-gap outline-none", t.flow.direction.value === "back" ? "animate-step-back" : t.flow.direction.value === "forward" ? "animate-step-in" : ""]),
2138
+ onSubmit: l[1] || (l[1] = pe((d) => t.flow.next(), ["prevent"]))
2286
2139
  }, [
2287
- ne(n.$slots, t.flow.current.value.name),
2288
- s[3] || (s[3] = p("button", {
2140
+ le(n.$slots, t.flow.current.value.name),
2141
+ l[3] || (l[3] = p("button", {
2289
2142
  type: "submit",
2290
2143
  class: "sr-only",
2291
2144
  tabindex: "-1",
2292
2145
  "aria-hidden": "true"
2293
2146
  }, null, -1))
2294
2147
  ], 34)),
2295
- t.navigation === "inline" ? (i(), z(Sl, {
2148
+ t.navigation === "inline" ? (i(), q(yl, {
2296
2149
  key: 2,
2297
2150
  flow: t.flow,
2298
- onCancel: s[2] || (s[2] = (d) => n.$emit("cancel"))
2299
- }, null, 8, ["flow"])) : V("", !0)
2300
- ], 8, zl));
2151
+ onCancel: l[2] || (l[2] = (d) => n.$emit("cancel"))
2152
+ }, null, 8, ["flow"])) : D("", !0)
2153
+ ], 8, Fl));
2301
2154
  }
2302
2155
  });
2303
2156
  export {
2304
- qt as Calendar,
2305
- po as CardSelectField,
2306
- bo as CheckboxField,
2307
- ho as ChoiceChips,
2308
- yo as ComboField,
2309
- Go as CommandDialog,
2310
- is as DateField,
2311
- go as DateTimeField,
2312
- Do as EditorPage,
2313
- Ro as ErrorBag,
2314
- fe as Field,
2315
- xo as FileField,
2316
- Ee as FormErrors,
2317
- jt as FormGroup,
2318
- ko as FormGroupButton,
2319
- _o as FormIndent,
2320
- bt as FormRow,
2321
- ps as FormView,
2322
- ds as GroupEditAction,
2323
- Lo as GroupSheet,
2324
- wo as I18nField,
2325
- Qo as LeaveGuardRoot,
2326
- Ao as MissingLeaveGuardRootError,
2327
- $o as MoneyField,
2328
- So as MonthYearField,
2329
- Co as MultiSelectField,
2330
- zo as NumberCell,
2331
- Rt as NumberField,
2332
- We as OptionList,
2333
- xs as OtpInput,
2334
- Fo as PhotoField,
2335
- qo as RecordGroupScope,
2336
- _s as SegmentedField,
2337
- hs as SelectField,
2338
- jo as StepForm,
2339
- Sl as StepNavigation,
2340
- Dl as StepProgress,
2341
- $s as SwitchField,
2342
- os as TextField,
2343
- Ss as TextareaField,
2344
- Bo as TimeField,
2345
- ut as checkFile,
2346
- cs as createFieldGroups,
2347
- Uo as createLeaveGuard,
2348
- ue as fieldDefaults,
2349
- No as fieldKey,
2350
- ie as fieldProps,
2157
+ _t as Calendar,
2158
+ co as CardSelectField,
2159
+ fo as CheckboxField,
2160
+ mo as ChoiceChips,
2161
+ vo as ComboField,
2162
+ jo as CommandDialog,
2163
+ es as DateField,
2164
+ po as DateTimeField,
2165
+ Fo as EditorPage,
2166
+ qo as ErrorBag,
2167
+ ge as Field,
2168
+ bo as FileField,
2169
+ Me as FormErrors,
2170
+ Dt as FormGroup,
2171
+ go as FormGroupButton,
2172
+ ho as FormIndent,
2173
+ dt as FormRow,
2174
+ us as FormView,
2175
+ os as GroupEditAction,
2176
+ $o as GroupSheet,
2177
+ yo as I18nField,
2178
+ Uo as LeaveGuardRoot,
2179
+ Io as MissingLeaveGuardRootError,
2180
+ xo as MoneyField,
2181
+ _o as MonthYearField,
2182
+ ko as MultiSelectField,
2183
+ Lo as NumberCell,
2184
+ Mt as NumberField,
2185
+ Ue as OptionList,
2186
+ gs as OtpInput,
2187
+ wo as PhotoField,
2188
+ So as RecordGroupScope,
2189
+ ys as SegmentedField,
2190
+ cs as SelectField,
2191
+ zo as StepForm,
2192
+ yl as StepNavigation,
2193
+ Cl as StepProgress,
2194
+ _s as SwitchField,
2195
+ Ho as TextField,
2196
+ ws as TextareaField,
2197
+ as as TimeField,
2198
+ lt as checkFile,
2199
+ ss as createFieldGroups,
2200
+ Go as createLeaveGuard,
2201
+ de as fieldDefaults,
2202
+ Ro as fieldKey,
2203
+ ue as fieldProps,
2351
2204
  ze as focusFirstError,
2352
- gt as formEditableKey,
2353
- Be as formatBytes,
2354
- ts as groupOptions,
2355
- Yo as installLeaveGuard,
2356
- Wo as leaveGuardKey,
2357
- as as matchOptions,
2358
- za as missingLocales,
2359
- fs as provideRecordGroups,
2360
- ns as recentChoicesKey,
2361
- Mt as recordGroupsKey,
2362
- Ko as useCommand,
2363
- Qt as useDirtySnapshot,
2364
- at as useFieldMode,
2365
- Eo as useForm,
2366
- Vo as useGroupSheet,
2367
- Ne as useLeaveGuard,
2368
- Jo as useLeaveGuardContext,
2369
- ys as useOptions,
2370
- ms as useRecordGroups,
2371
- Zo as useResourceForm,
2372
- Wt as useSaveChrome,
2373
- hl as useSectionStates,
2374
- vo as useSheetDiscardGuard,
2375
- To as useStepForm
2205
+ mt as formEditableKey,
2206
+ Fe as formatBytes,
2207
+ vs as groupOptions,
2208
+ No as installLeaveGuard,
2209
+ Ko as leaveGuardKey,
2210
+ ps as matchOptions,
2211
+ Ba as missingLocales,
2212
+ ns as provideRecordGroups,
2213
+ Qo as recentChoicesKey,
2214
+ Vt as recordGroupsKey,
2215
+ To as useCommand,
2216
+ Yt as useDirtySnapshot,
2217
+ et as useFieldMode,
2218
+ Mo as useForm,
2219
+ Co as useGroupSheet,
2220
+ Re as useLeaveGuard,
2221
+ Po as useLeaveGuardContext,
2222
+ fs as useOptions,
2223
+ rs as useRecordGroups,
2224
+ Wo as useResourceForm,
2225
+ Pt as useSaveChrome,
2226
+ cl as useSectionStates,
2227
+ uo as useSheetDiscardGuard,
2228
+ Bo as useStepForm
2376
2229
  };