@webority/ui-elements 0.179.0 → 0.181.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 (249) hide show
  1. package/README.md +10 -0
  2. package/THIRD-PARTY-NOTICES.txt +3 -3
  3. package/dist/WuiCalendarViews-Dg9yRY1I.js +1 -0
  4. package/dist/{WuiCommandPalette-u1XD5WMv.js → WuiCommandPalette-CpmlKjzH.js} +2 -2
  5. package/dist/{WuiCommentThread-e5t7HceL.js → WuiCommentThread-Cp7AVHvt.js} +1 -1
  6. package/dist/WuiDashboardGrid-DFpX8Vx0.js +1 -0
  7. package/dist/WuiDataTable-CSgcwxU5.js +1 -0
  8. package/dist/WuiDatePicker-CRqjwyf2.js +1 -0
  9. package/dist/WuiDateRange-BBm_Q69p.js +1 -0
  10. package/dist/WuiEntryGrid-Z69-1YBh.js +3 -0
  11. package/dist/WuiGantt-DvmVKJX2.js +1 -0
  12. package/dist/WuiInlineEdit-JT83k3Nk.js +1 -0
  13. package/dist/WuiMentionInput-DPCCSQRZ.js +1 -0
  14. package/dist/WuiMiniCalendar-BhUTIGwe.js +1 -0
  15. package/dist/WuiNotificationCenter-D5bBM8Lp.js +1 -0
  16. package/dist/WuiOfflineBanner-DGTFCtyM.js +1 -0
  17. package/dist/{WuiPhone--w-taM5Q.js → WuiPhone-B5ZLabTY.js} +1 -1
  18. package/dist/{WuiSavedViews-BR6ZHd9Y.js → WuiSavedViews-CH7IvwgZ.js} +1 -1
  19. package/dist/WuiSelect-DIW_WXH7.js +1 -0
  20. package/dist/WuiTimePicker-BKFPf8Fn.js +1 -0
  21. package/dist/{WuiTree-BjtuCasB.js → WuiTree-Db83Uztv.js} +1 -1
  22. package/dist/WuiWizardStep-BBkw94dD.js +1 -0
  23. package/dist/{chips-BdpsN50B.js → chips-paLEDoxn.js} +1 -1
  24. package/dist/commandPalette.g-DP-Zl8SU.js +1 -0
  25. package/dist/dashboardGrid.g-vkCZGw6G.js +1 -0
  26. package/dist/{dataTable-VB3nBucm.js → dataTable-C0q14bkP.js} +1 -1
  27. package/dist/{dataTable.g-DazoWWps.js → dataTable.g-1PsmN1Nj.js} +1 -1
  28. package/dist/drawerDiscard-D_LMpaFv.js +1 -0
  29. package/dist/elements/calendar-views.js +1 -0
  30. package/dist/elements/command-palette.js +1 -1
  31. package/dist/elements/comment-thread.js +1 -1
  32. package/dist/elements/dashboard-grid.js +1 -0
  33. package/dist/elements/data-table.js +1 -1
  34. package/dist/elements/date-range.js +1 -1
  35. package/dist/elements/datepicker.js +1 -1
  36. package/dist/elements/entry-grid.js +1 -1
  37. package/dist/elements/gantt.js +1 -1
  38. package/dist/elements/inline-edit.js +1 -1
  39. package/dist/elements/kanban.js +1 -1
  40. package/dist/elements/mention-input.js +1 -1
  41. package/dist/elements/mini-calendar.js +1 -0
  42. package/dist/elements/notification-center.js +1 -1
  43. package/dist/elements/offline-banner.js +1 -0
  44. package/dist/elements/phone.js +1 -1
  45. package/dist/elements/saved-views.js +1 -1
  46. package/dist/elements/select.js +1 -1
  47. package/dist/elements/timepicker.js +1 -1
  48. package/dist/elements/tree.js +1 -1
  49. package/dist/elements/wizard.js +1 -1
  50. package/dist/gantt.g-CWvMXwBR.js +1 -0
  51. package/dist/helpers.js +1 -1
  52. package/dist/initials-DKg3IeUa.js +1 -0
  53. package/dist/inlineEdit.g-DKIhYoPF.js +1 -0
  54. package/dist/{kanban-jQCTLG3Q.js → kanban-Dayig7ic.js} +1 -1
  55. package/dist/loader-DUCcKxjq.js +1 -0
  56. package/dist/{notificationCentre.g-UsAurkUz.js → notificationCentre.g-Cees-vKg.js} +1 -1
  57. package/dist/{notificationDays-wMr8rZko.js → notificationDays-B1R0RFAY.js} +1 -1
  58. package/dist/refreshAfter-DhYgWXmQ.js +1 -0
  59. package/dist/{search-Dl07KqWw.js → search-C46tnoPd.js} +1 -1
  60. package/dist/server.js +1 -1
  61. package/dist/shell.g-BhC11Oe3.js +1 -0
  62. package/dist/tableSelect-juA3KcQh.js +1 -0
  63. package/dist/tableSelect.g-DwI5_9Nw.js +1 -0
  64. package/dist/testing.js +1 -0
  65. package/dist/text/en.json +119 -10
  66. package/dist/text.js +1 -1
  67. package/dist/themeTransition-C5nAlClG.js +1 -0
  68. package/dist/toast.g-CJ8c0BNZ.js +1 -0
  69. package/dist/ui-calendar.global.js +1 -1
  70. package/dist/ui-calendar.js +1 -1
  71. package/dist/ui-chart.global.js +15 -15
  72. package/dist/ui-chart.js +2 -2
  73. package/dist/ui-elements/calendar-views.global.js +1 -0
  74. package/dist/ui-elements/carousel.global.js +1 -1
  75. package/dist/ui-elements/code-block.global.js +1 -1
  76. package/dist/ui-elements/command-palette.global.js +2 -2
  77. package/dist/ui-elements/comment-thread.global.js +1 -1
  78. package/dist/ui-elements/consent-banner.global.js +1 -1
  79. package/dist/ui-elements/context-menu.global.js +1 -1
  80. package/dist/ui-elements/dashboard-grid.global.js +1 -0
  81. package/dist/ui-elements/data-table.global.js +1 -1
  82. package/dist/ui-elements/date-range.global.js +1 -1
  83. package/dist/ui-elements/date-time.global.js +1 -1
  84. package/dist/ui-elements/datepicker.global.js +1 -1
  85. package/dist/ui-elements/dock.global.js +1 -1
  86. package/dist/ui-elements/drawer.global.js +1 -1
  87. package/dist/ui-elements/dropdown.global.js +1 -1
  88. package/dist/ui-elements/entry-grid.global.js +2 -2
  89. package/dist/ui-elements/gantt.global.js +1 -1
  90. package/dist/ui-elements/glyphs.global.js +1 -1
  91. package/dist/ui-elements/hover-card.global.js +1 -1
  92. package/dist/ui-elements/image-crop.global.js +1 -1
  93. package/dist/ui-elements/inline-edit.global.js +1 -1
  94. package/dist/ui-elements/kanban.global.js +1 -1
  95. package/dist/ui-elements/lead-popup.global.js +1 -1
  96. package/dist/ui-elements/lightbox.global.js +1 -1
  97. package/dist/ui-elements/markdown.global.js +1 -1
  98. package/dist/ui-elements/mini-calendar.global.js +1 -0
  99. package/dist/ui-elements/navigation-menu.global.js +1 -1
  100. package/dist/ui-elements/notification-center.global.js +1 -1
  101. package/dist/ui-elements/offline-banner.global.js +1 -0
  102. package/dist/ui-elements/onboarding-checklist.global.js +1 -1
  103. package/dist/ui-elements/org-tree.global.js +1 -1
  104. package/dist/ui-elements/otp.global.js +1 -1
  105. package/dist/ui-elements/overflow.global.js +1 -1
  106. package/dist/ui-elements/phone.global.js +1 -1
  107. package/dist/ui-elements/popover.global.js +1 -1
  108. package/dist/ui-elements/rating.global.js +1 -1
  109. package/dist/ui-elements/record-pager.global.js +1 -1
  110. package/dist/ui-elements/relative-time.global.js +1 -1
  111. package/dist/ui-elements/saved-views.global.js +1 -1
  112. package/dist/ui-elements/select-chips.global.js +1 -1
  113. package/dist/ui-elements/select-recents.global.js +1 -1
  114. package/dist/ui-elements/select-search.global.js +1 -1
  115. package/dist/ui-elements/select-window.global.js +1 -1
  116. package/dist/ui-elements/server.global.js +1 -0
  117. package/dist/ui-elements/shell.global.js +1 -0
  118. package/dist/ui-elements/shortcuts.global.js +1 -1
  119. package/dist/ui-elements/show-more.global.js +1 -1
  120. package/dist/ui-elements/slider.global.js +1 -1
  121. package/dist/ui-elements/sortable.global.js +1 -1
  122. package/dist/ui-elements/status-icon.global.js +1 -1
  123. package/dist/ui-elements/table-export.global.js +1 -1
  124. package/dist/ui-elements/timepicker.global.js +1 -1
  125. package/dist/ui-elements/tour.global.js +1 -1
  126. package/dist/ui-elements/tree-picker.global.js +1 -1
  127. package/dist/ui-elements/tree.global.js +1 -1
  128. package/dist/ui-elements/truncate.global.js +1 -1
  129. package/dist/ui-elements/whats-new.global.js +1 -1
  130. package/dist/ui-elements/wizard.global.js +1 -1
  131. package/dist/ui-elements.global.js +1 -1
  132. package/dist/ui-elements.js +1 -1
  133. package/dist/ui-file-viewer.global.js +1 -1
  134. package/dist/ui-file-viewer.js +1 -1
  135. package/dist/wizard.g-UKG1dMs_.js +1 -0
  136. package/dist/wuiHttp-8CYWEbRz.js +1 -0
  137. package/package.json +25 -5
  138. package/types/WuiCalendar.d.ts +9 -1
  139. package/types/WuiCalendarViews.d.ts +34 -0
  140. package/types/WuiDashboardGrid.d.ts +35 -0
  141. package/types/WuiDataTable.d.ts +1 -0
  142. package/types/WuiEntryGrid.d.ts +4 -0
  143. package/types/WuiFileViewer.d.ts +7 -0
  144. package/types/WuiGantt.d.ts +6 -1
  145. package/types/WuiInlineEdit.d.ts +2 -1
  146. package/types/WuiMiniCalendar.d.ts +27 -0
  147. package/types/WuiNotificationCenter.d.ts +1 -0
  148. package/types/WuiOfflineBanner.d.ts +35 -0
  149. package/types/WuiSelect.d.ts +1 -0
  150. package/types/WuiTimePicker.d.ts +1 -0
  151. package/types/WuiWizard.d.ts +13 -0
  152. package/types/calendarAdapter.d.ts +9 -0
  153. package/types/calendarModel.d.ts +11 -0
  154. package/types/chartSpec.d.ts +3 -0
  155. package/types/dataTable.d.ts +10 -1
  156. package/types/elements/calendar-views.d.ts +2 -0
  157. package/types/elements/dashboard-grid.d.ts +1 -0
  158. package/types/elements/mini-calendar.d.ts +2 -0
  159. package/types/elements/offline-banner.d.ts +2 -0
  160. package/types/ganttLayout.d.ts +41 -7
  161. package/types/ganttTypes.d.ts +15 -0
  162. package/types/global/chunkChecks.d.ts +1 -0
  163. package/types/global/chunks.d.ts +4 -0
  164. package/types/global/core.d.ts +3 -2
  165. package/types/global/glyphs.d.ts +2 -0
  166. package/types/global/loader.d.ts +9 -2
  167. package/types/global/parts/server.d.ts +1 -0
  168. package/types/global/parts/shell.d.ts +1 -0
  169. package/types/global/server.d.ts +18 -0
  170. package/types/global/serverGuard.d.ts +2 -0
  171. package/types/global/shared.d.ts +22 -0
  172. package/types/global/tableExport.d.ts +2 -0
  173. package/types/globals.d.ts +8 -0
  174. package/types/helpers.d.ts +2 -1
  175. package/types/index.d.ts +5 -1
  176. package/types/razor-js/modules/api.d.ts +10 -5
  177. package/types/razor-js/modules/serverBridge.d.ts +1 -0
  178. package/types/razor-js/modules/stickyStack.d.ts +1 -0
  179. package/types/razor-js/webority-ui.d.ts +4 -1
  180. package/types/select/list.d.ts +2 -0
  181. package/types/server/behaviours.d.ts +6 -0
  182. package/types/server/core.d.ts +10 -0
  183. package/types/server/flash.d.ts +16 -0
  184. package/types/server/flashToasts.d.ts +2 -0
  185. package/types/server/index.d.ts +2 -10
  186. package/types/server/postError.d.ts +17 -0
  187. package/types/server/refreshAfter.d.ts +45 -0
  188. package/types/server/regions.d.ts +5 -0
  189. package/types/server/serverActions.d.ts +18 -10
  190. package/types/server/serverMessage.d.ts +5 -0
  191. package/types/server/serverTable.d.ts +0 -2
  192. package/types/server/serverTableRegistry.d.ts +7 -0
  193. package/types/server/shellParts.d.ts +1 -3
  194. package/types/server/shellRegistry.d.ts +7 -0
  195. package/types/server/toastAction.d.ts +7 -3
  196. package/types/server/wuiHost.d.ts +1 -0
  197. package/types/server/wuiHttp.d.ts +9 -2
  198. package/types/stickyStack.d.ts +6 -0
  199. package/types/tableSelect.d.ts +10 -0
  200. package/types/testing.d.ts +4 -0
  201. package/types/text/web/agenda.g.d.ts +7 -0
  202. package/types/text/web/asyncBlock.g.d.ts +3 -0
  203. package/types/text/web/calendar.g.d.ts +2 -0
  204. package/types/text/web/catalogue.g.d.ts +20 -0
  205. package/types/text/web/changeList.g.d.ts +5 -0
  206. package/types/text/web/chart.g.d.ts +1 -0
  207. package/types/text/web/commandPalette.g.d.ts +1 -0
  208. package/types/text/web/dashboardGrid.g.d.ts +18 -0
  209. package/types/text/web/dashboardHeader.g.d.ts +6 -0
  210. package/types/text/web/dataTable.g.d.ts +4 -0
  211. package/types/text/web/entryGrid.g.d.ts +2 -0
  212. package/types/text/web/formActions.g.d.ts +9 -0
  213. package/types/text/web/gantt.g.d.ts +2 -0
  214. package/types/text/web/index.g.d.ts +10 -0
  215. package/types/text/web/kpiTile.g.d.ts +1 -0
  216. package/types/text/web/miniCalendar.g.d.ts +4 -0
  217. package/types/text/web/notificationCentre.g.d.ts +4 -0
  218. package/types/text/web/offlineBanner.g.d.ts +8 -0
  219. package/types/text/web/queueBundle.g.d.ts +11 -0
  220. package/types/text/web/resultBlock.g.d.ts +6 -0
  221. package/types/text/web/routeError.g.d.ts +14 -0
  222. package/types/text/web/settingRow.g.d.ts +10 -0
  223. package/types/text/web/shell.g.d.ts +0 -7
  224. package/types/text/web/tableSelect.g.d.ts +1 -0
  225. package/types/text/web/unsavedChanges.g.d.ts +1 -0
  226. package/types/text/web/wizard.g.d.ts +6 -0
  227. package/types/toastTypes.d.ts +1 -1
  228. package/dist/WuiDataTable-Ble3hl5L.js +0 -1
  229. package/dist/WuiDatePicker-3D33rzH4.js +0 -1
  230. package/dist/WuiDateRange-BnEJ2WpL.js +0 -1
  231. package/dist/WuiEntryGrid-DkW0tIDy.js +0 -3
  232. package/dist/WuiGantt-BqNhYIr6.js +0 -1
  233. package/dist/WuiInlineEdit-D7AuEv1R.js +0 -1
  234. package/dist/WuiMentionInput-DPpEVL2s.js +0 -1
  235. package/dist/WuiNotificationCenter-DuvGrqwr.js +0 -1
  236. package/dist/WuiSelect-CNff3FNi.js +0 -1
  237. package/dist/WuiTimePicker-DYLFaWDc.js +0 -1
  238. package/dist/WuiWizardStep-gFtuUzsL.js +0 -1
  239. package/dist/commandPalette.g-DFWnCufa.js +0 -1
  240. package/dist/drawerDiscard-APy8TZxi.js +0 -1
  241. package/dist/gantt.g-TdTxeruW.js +0 -1
  242. package/dist/initials-Qb6ITcri.js +0 -1
  243. package/dist/inlineEdit.g-DLDVospu.js +0 -1
  244. package/dist/loader-A38-PdcB.js +0 -1
  245. package/dist/shell.g-C2Ht5xl2.js +0 -1
  246. package/dist/tableSelect.g-Bmd-ExRE.js +0 -1
  247. package/dist/themeTransition-TF0BqM20.js +0 -1
  248. package/dist/wizard.g-DOZSBUc5.js +0 -1
  249. package/dist/wuiHttp-Cw7V8u2w.js +0 -1
package/dist/server.js CHANGED
@@ -1 +1 @@
1
- import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as b,y as x}from"./drawerDiscard-APy8TZxi.js";import{t as S}from"./serverHtml-BC6tAyAl.js";import{i as C}from"./dom-DMQu--xV.js";import{n as w}from"./imeSafeEnter-DeO_3lXy.js";import{s as T}from"./nativeOverlay-BHD2QV02.js";import{r as E}from"./textStore-DBplASiZ.js";import{t as D}from"./shell.g-C2Ht5xl2.js";import{a as O,c as k,d as A,f as j,g as ee,h as te,i as M,l as N,m as P,n as ne,o as re,p as ie,s as F,t as I,u as L}from"./wuiHttp-Cw7V8u2w.js";var R=()=>E(`shell`,D),z=31536e3,B=/* @__PURE__ */ new WeakMap;function ae(e,t,n,r){let i=[...e.querySelectorAll(`nav.wui-tabbar a.wui-tabbar-item`)].find(e=>e.getAttribute(`href`)===t);if(!i)throw Error(`setTabCount: no tab bar item links to ${t}.`);let a=i.querySelector(`:scope > .wui-tabbar-badge`);if(n===null||n===0){a?.remove();return}a||(a=document.createElement(`span`),i.append(a)),a.className=`wui-tabbar-badge${r?` tone-${r}`:``}`;let o=e.querySelector(`nav.wui-tabbar`)?.hasAttribute(`data-wui-cap-badges`)===!0;a.textContent=o?V(n):String(n)}var V=e=>e>99?`99+`:String(e),H=(e,t)=>Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,()=>String(n)),e);function U(e,t,n=document){try{n.cookie=`${e}=${t?`1`:`0`}; Path=/; Max-Age=${z}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}function W(e,t,n,r=document){try{let i=`${e}=`,a=r.cookie.split(`;`).map(e=>e.trim()).find(e=>e.startsWith(i)),o=new Set(a?a.slice(i.length).split(`.`).filter(Boolean):[]);n?o.add(t):o.delete(t),r.cookie=`${e}=${[...o].join(`.`)}; Path=/; Max-Age=${z}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}var G=(e,t,n)=>{let r=e?.querySelector(t);return r instanceof n?r:null},K=(e,t,n)=>{let r=e?.closest(t);return r instanceof n?r:null},q=(e,t,n)=>e?[...e.querySelectorAll(t)].filter(e=>e instanceof n):[],J=e=>{if(!(e.target instanceof Element))throw Error(`event target is not an element`);return e.target},Y=e=>{let t=e.getAttribute(`href`);if(t===null)throw Error(`search hit has no href`);return t},X=(e,t)=>{let n=document.createElement(`div`);return n.className=e,n.textContent=t,n};function oe(e,t){let n=G(e,`.wui-bell-trigger`,HTMLElement),r=G(e,`.wui-bell-count`,HTMLElement),i=G(e,`[data-wui-bell-live]`,HTMLElement),a=G(e,`[data-wui-bell-list]`,HTMLElement),o=()=>C(a,`bell list missing`),s=G(e,`.wui-bell-menu`,HTMLElement),{src:c,readAction:l}=e.dataset,u=e.dataset.label||R().label,d=e.dataset.emptyText||R().emptyText,f=e.dataset.loadingText??R().loadingNotificationsText,p=e.dataset.noUnreadText??R().noUnreadText,m=e.dataset.unreadText??R().unreadNotificationsText,h=e.dataset.bellLabel??R().unreadBellLabel,g=Number(e.dataset.pollSeconds??60),_=N(),v=Number(e.dataset.unread)||0,y=(t,a=!0)=>{let o=Math.max(0,Number(t)||0),s=o!==v;v=o,e.dataset.unread=String(o),r&&(r.textContent=V(o),r.hidden=o===0),n?.setAttribute(`aria-label`,o===0?u:H(h,{label:u,count:V(o)})),a&&s&&i&&(i.textContent=o===0?p:H(m,{count:V(o)}))},b=()=>s?T(s):!1,x=()=>{let e=X(`wui-bell-state`,`${R().notificationsLoadErrorMessage} `),t=document.createElement(`button`);t.type=`button`,t.className=`btn btn-link btn-sm`,t.dataset.wuiBellRetry=``,t.textContent=R().retryLabel,e.append(t),o().replaceChildren(e)},w=async t=>{if(t&&(o().setAttribute(`aria-busy`,`true`),o().querySelector(`.wui-bell-item`)||o().replaceChildren(X(`wui-bell-state`,f))),c===void 0)throw Error(`bell has no data-src`);let n=await _.run(c);if(n.kind===`aborted`||n.kind===`stale`||n.kind===`session`)return;if(o().removeAttribute(`aria-busy`),!n.ok){t&&x();return}let r=S(n.html),i=G(r,`[data-wui-unread]`,HTMLElement),a=i?Number(i.getAttribute(`data-wui-unread`)):v;y(a),(t||b())&&(r.querySelector(`.wui-bell-item`)?o().replaceChildren(r):o().replaceChildren(X(`wui-bell-state`,d))),e.dispatchEvent(new CustomEvent(`wui:notifications:loaded`,{bubbles:!0,detail:{unread:a}}))};s?.addEventListener(`beforetoggle`,e=>{`newState`in e&&e.newState===`open`&&w(!0)}),e.addEventListener(`click`,async e=>{let t=J(e);if(t.closest(`[data-wui-bell-retry]`)){await w(!0);return}let n=K(t,`[data-wui-bell-read]`,HTMLButtonElement);if(!n||!l)return;n.disabled=!0;let r=await P(l,{method:`POST`});n.disabled=!1,r.ok&&(y(0),await w(!0))});let E=null,D=()=>{g>0&&E===null&&(E=setInterval(()=>w(b()),g*1e3))},O=()=>{E!==null&&clearInterval(E),E=null},k=()=>{document.hidden?O():(w(b()),D())};return g>0&&(document.addEventListener(`visibilitychange`,k),document.hidden||D()),t.push(()=>{O(),_.abort(),document.removeEventListener(`visibilitychange`,k)}),{setUnread:e=>y(e),refresh:()=>w(b())}}var se=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),Z=(e,t,n)=>`${e}${e.includes(`?`)?`&`:`?`}${encodeURIComponent(t)}=${encodeURIComponent(n)}`;function ce(e,t){let n=C(G(e,`input.search-input`,HTMLInputElement),`search input missing`),r=G(e,`.wui-topsearch-results`,HTMLElement),i=()=>C(r,`search results missing`),a=G(e,`.wui-topsearch-open`,HTMLElement),o=G(e,`[data-wui-topsearch-live]`,HTMLElement),{src:s,param:c=`q`,resultsHref:l}=e.dataset,u=Number(e.dataset.minChars??2),d=Number(e.dataset.debounceMs??250),f=e.dataset.noResultsText??R().noResultsText,p=e.dataset.resultsCountText??R().resultsCountText,m=e.dataset.resultCountText??R().resultCountText,h=N(),g,_=-1,v=()=>q(i(),`.wui-topsearch-hit`,HTMLElement),y=e=>{let t=v();_=t.length===0?-1:(e+t.length)%t.length,t.forEach((e,t)=>{let n=t===_;e.classList.toggle(`is-active`,n),e.setAttribute(`aria-selected`,n?`true`:`false`)});let r=_>=0?t[_]:void 0;r?(n.setAttribute(`aria-activedescendant`,r.id),r.scrollIntoView?.({block:`nearest`})):n.removeAttribute(`aria-activedescendant`)},b=()=>{i().hidden=!0,n.setAttribute(`aria-expanded`,`false`),n.removeAttribute(`aria-activedescendant`),_=-1},x=()=>{i().hidden=!1,n.setAttribute(`aria-expanded`,`true`)},T=t=>{e.classList.toggle(`is-open`,t),a?.setAttribute(`aria-expanded`,t?`true`:`false`)},E=t=>{let n=new CustomEvent(`wui:search:select`,{bubbles:!0,cancelable:!0,detail:{href:t}});e.dispatchEvent(n)&&window.location.assign(t)},D=async t=>{if(e.classList.add(`is-loading`),s===void 0)throw Error(`search has no data-src`);let n=await h.run(Z(s,c,t));if(n.kind!==`aborted`&&n.kind!==`stale`&&n.kind!==`session`){if(e.classList.remove(`is-loading`),n.ok){let e=S(n.html),t=G(e,`[data-wui-count]`,HTMLElement);i().replaceChildren(e),v().forEach((e,t)=>{e.id=`${i().id}-opt-${t}`});let r=t?Number(t.getAttribute(`data-wui-count`)):v().length;o&&(o.textContent=r===0?f:H(r===1?m:p,{count:r}))}else i().replaceChildren(X(`wui-topsearch-empty`,R().searchUnavailableMessage));_=-1,x()}};n.addEventListener(`input`,()=>{clearTimeout(g);let t=n.value.trim();t.length<u?(h.abort(),e.classList.remove(`is-loading`),i().replaceChildren(),b()):g=setTimeout(()=>D(t),d)}),n.addEventListener(`keydown`,t=>{if(t.key===`ArrowDown`||t.key===`ArrowUp`){if(i().hidden||v().length===0)return;t.preventDefault(),y(_+(t.key===`ArrowDown`?1:-1))}else if(w(t)){let e=v(),r=_>=0?e[_]:void 0;!i().hidden&&r?(t.preventDefault(),E(Y(r))):l&&n.value.trim()!==``&&(t.preventDefault(),E(Z(l,c,n.value.trim())))}else t.key===`Escape`&&(i().hidden?e.classList.contains(`is-open`)&&(t.preventDefault(),t.stopPropagation(),T(!1),a?.focus()):(t.preventDefault(),t.stopPropagation(),b()))}),i().addEventListener(`click`,e=>{let t=K(J(e),`.wui-topsearch-hit`,HTMLElement);!t||e.ctrlKey||e.metaKey||e.shiftKey||e.button===1||(e.preventDefault(),E(Y(t)))}),a?.addEventListener(`click`,()=>{let t=!e.classList.contains(`is-open`);T(t),t&&n.focus()});let O=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||se(e.target)||(e.preventDefault(),T(!0),n.focus())},k=t=>{t.target instanceof Node&&e.contains(t.target)||(b(),e.classList.contains(`is-open`)&&T(!1))};document.addEventListener(`keydown`,O),document.addEventListener(`pointerdown`,k),t.push(()=>{clearTimeout(g),h.abort(),document.removeEventListener(`keydown`,O),document.removeEventListener(`pointerdown`,k)})}function le(e){let t=[],n=e.dataset.wuiCollapsedCookie;n&&e.addEventListener(`wui:shell:collapse`,e=>{U(n,!!e.detail?.collapsed)});let r=e.dataset.wuiFoldedCookie;r&&e.addEventListener(`wui:shell:nav-fold`,e=>{W(r,e.detail?.key,!!e.detail?.folded)}),e.addEventListener(`click`,t=>{J(t).closest(`[data-wui-tabbar-more]`)&&G(e,`[data-app-shell-menu]`,HTMLElement)?.click()});let i=G(e,`[data-wui-bell]`,HTMLElement),a=i?oe(i,t):null,o=G(e,`[data-wui-topsearch]`,HTMLElement);o&&ce(o,t);let s={el:e,setUnread(e){C(a,`WUI.shell: this <app-shell> has no <app-shell-notifications>.`).setUnread(e)},setTabCount(t,n,r){ae(e,t,n,r)},refreshNotifications(){return C(a,`WUI.shell: this <app-shell> has no <app-shell-notifications>.`).refresh()},get collapsed(){return e.classList.contains(`collapsed`)},set collapsed(t){if(!!t===e.classList.contains(`collapsed`))return;let n=G(e,`[data-app-shell-collapse]`,HTMLElement);n?n.click():e.classList.toggle(`collapsed`,!!t)}};B.set(e,s);let c=n=>{if(n.target===e||n.target instanceof Node&&n.target.contains(e)){for(let e of t)e();B.delete(e),delete e.dataset.wuiPartsWired,document.removeEventListener(`wui:teardown`,c)}};return document.addEventListener(`wui:teardown`,c),s}function Q(e=document){let t=[];e instanceof HTMLElement&&e.matches(`[data-app-shell]`)&&t.push(e),t.push(...q(e,`[data-app-shell]`,HTMLElement));for(let e of t)e.dataset.wuiPartsWired||(e.dataset.wuiPartsWired=`1`,le(e))}function $(e){let t=K(e,`[data-app-shell]`,HTMLElement);return t?(B.has(t)||Q(t),B.get(t)??null):null}var ue=/* @__PURE__ */ new Set([204,205,304]),de=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function fe(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[re]:`1`,...n.headers};if(L(e)){let e=A();e&&(i[e.header]=e.token)}let a=n.signal;return a?.aborted?j(`aborted`):new Promise(o=>{let s=new XMLHttpRequest,c=!1,l,u=()=>s.abort(),d=(e,t=null,n=``)=>{l!==void 0&&clearTimeout(l),a?.removeEventListener(`abort`,u),o(j(e,t,n))};s.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},s.onload=()=>{let e=s.status;if(e===0){d(`network`);return}let t=de(s.getAllResponseHeaders()),n=F(e,t),r=s.responseText,i=n===`ok`||n===`validation`?r:``;if(e<200||e>599){d(n,null,i);return}let a=new Response(ue.has(e)?null:r,{status:e,headers:t});d(n,a,i)},s.onerror=()=>d(`network`),s.onabort=()=>{d(a?.aborted?`aborted`:c?`timeout`:`aborted`)},r!==void 0&&(l=setTimeout(()=>{c=!0,s.abort()},r)),a?.addEventListener(`abort`,u,{once:!0}),s.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))s.setRequestHeader(e,t);s.send(t)})}export{g as CONFIRM_DIALOG_ID,i as CONFIRM_TONES,I as CSRF_META_NAME,ne as DEFAULT_CSRF_HEADER,_ as DISCARD_EVENT,u as FLASH_STORAGE_KEY,v as FLASH_VARIANTS,M as HTTP_KINDS,te as TOAST_ACTION_METHODS,y as TOAST_ACTION_MS,O as WUI_HEADERS,F as classifyStatus,m as closeRemotePane,k as configureCsrf,a as confirmAction,f as createDiscardPrompt,N as createRequestQueue,l as formValues,b as getServerTable,$ as getShell,h as initDrawerDiscard,d as initRemoteModals,o as initServerActions,e as initServerTables,Q as initShellParts,n as initUnsavedChanges,c as loadRemoteDrawer,s as loadRemoteModal,t as loadRemotePane,S as parseServerHtml,ee as parseToastAction,A as readCsrf,p as resetUnsavedChanges,x as runToastAction,r as showResultToast,ie as timeoutFromAttribute,P as wuiFetch,fe as wuiUpload};
1
+ import{i as e,n as t}from"./dom-DMQu--xV.js";import{n}from"./imeSafeEnter-DeO_3lXy.js";import{r,t as i}from"./textStore-DBplASiZ.js";import{t as a}from"./shell.g-BhC11Oe3.js";import{t as o}from"./serverHtml-BC6tAyAl.js";import{a as s,c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,n as g,o as _,p as ee,s as v,t as y,u as b}from"./wuiHttp-8CYWEbRz.js";import{n as x,t as te}from"./buttonClass-C8BRtTk8.js";import{E as ne,M as re,N as S,b as C,k as w,y as ie}from"./dataTable-C0q14bkP.js";import{n as T,t as ae}from"./devWarn-DXdRWZs3.js";import{t as oe}from"./iconGlyphs.g-a9FtjPXh.js";import{LIST_QUERY_RESERVED as se,SEARCH_PARAM as ce}from"./listQuery.js";import{a as le,c as ue,i as de,n as E,r as fe,s as pe}from"./tableSelect-juA3KcQh.js";import{t as D}from"./dataTable.g-1PsmN1Nj.js";import{t as me}from"./httpFailure.g-DjZzGxPj.js";import{S as he,_ as O,b as ge,c as k,d as _e,g as A,h as ve,i as j,m as M,n as N,p as P,v as ye,y as F}from"./refreshAfter-DhYgWXmQ.js";import{_ as be,a as I,b as xe,c as Se,d as Ce,f as L,g as R,h as z,i as we,l as B,m as Te,n as Ee,o as De,p as Oe,r as ke,s as Ae,t as V,u as je,v as Me,x as Ne,y as Pe}from"./drawerDiscard-D_LMpaFv.js";var H=()=>r(`dataTable`,D),Fe=5,Ie=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLObjectElement||e instanceof HTMLOutputElement,Le=e=>e instanceof HTMLObjectElement||e instanceof HTMLOutputElement?!1:e.disabled,Re=e=>Ie(e)&&`type`in e&&e.type===`hidden`,U=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n),W=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},G=(e,t,n)=>{let r=e.closest(t);return r instanceof n?r:null},ze=e=>e.localName===`wui-select`,K=(e,t)=>{let n=Number(e);return Number.isInteger(n)?n:t},Be=e=>({total:K(e.dataset.total,0),totalCapped:e.dataset.totalCapped===`true`,page:K(e.dataset.page,1),pageSize:K(e.dataset.pageSize,0),sortBy:e.dataset.sortBy||``,sortOrder:e.dataset.sortOrder===`desc`?`desc`:`asc`,pending:e.dataset.totalPending===`true`,rowCount:K(e.dataset.rowCount,0)}),Ve=(e,t)=>{e&&O().toast(e,{variant:t})},He=(e,t)=>{if(!e)return;let n=new Set([...e.elements].filter(e=>!Re(e)||e.hasAttribute(`data-range-mirror`)).map(e=>e.getAttribute(`name`)).filter(e=>e&&!se.includes(e))),r=[...t].some(([e,t])=>t!==``&&n.has(e));for(let t of U(e,`[data-wui-filter-clear]`,HTMLElement))t.hidden=!r},Ue=new Intl.NumberFormat(`en-IN`),We=(e,t)=>t?`${Ue.format(e)}+`:Ue.format(e),Ge=(e,t,n)=>{let r=e.closest(`.wui-list-card`),i=r?W(r,`.wui-list-card-count`,HTMLElement):null;i&&(i.textContent=We(t,n))};function Ke(e=document){let t=U(e,`[data-wui-server]`,HTMLElement);e instanceof HTMLElement&&e.matches(`[data-wui-server]`)&&t.unshift(e);for(let e of t){if(M(e))continue;let t=qe(e);ve(e,t),e.hasAttribute(`data-load-first-page`)&&t.reload()}}function qe(n){let a=W(n,`.table-wrap`,HTMLElement),s=a?W(a,`:scope > table`,HTMLTableElement):null,c=n.dataset.src;if(!a||!s||!c)throw Error(`A server-paged table needs data-src and a .table-wrap > table: render it with <app-data-table src>.`);let l=W(a,`:scope > [data-wui-table-state]`,HTMLElement),u=W(n,`[data-wui-table-pager]`,HTMLElement),d=W(n,`[data-wui-table-status]`,HTMLElement),f={urlState:n.dataset.urlState!==`false`,filtersForm:n.dataset.filtersForm||null,filtersRegion:n.dataset.filtersRegion||null,searchInput:n.dataset.searchInput||null,loadingText:n.dataset.loadingText||H().loadingText,errorText:n.dataset.errorText||H().errorText,timeoutMs:ee(n.getAttribute(`data-wui-timeout`))??3e4},p=new URL(c,window.location.href),g=n.dataset.totalSrc||null,_=g===null?null:new URL(g,window.location.href),v=/* @__PURE__ */ new Set([...p.searchParams.keys(),..._?.searchParams.keys()??[]]),y=s.hasAttribute(`data-app-datatable-selectable`),b=/* @__PURE__ */ new Set,D=!1,he=m(),ge=new AbortController,A={signal:ge.signal},ve=W(s,`:scope > tbody[data-wui-rows]`,HTMLTableSectionElement),M=e(ve,`A server-paged table needs its rows in <app-table-rows> (tbody[data-wui-rows]).`),N=Be(M),P=null,ye=null,F=e=>{let t=new URLSearchParams;for(let[n,r]of new URLSearchParams(e))v.has(n)||t.append(n,r);return t},be=e=>F(new URL(e,window.location.href).search),I=e=>{let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`},xe=(e,t)=>{let n=new URL(e.href);for(let[e,r]of t)v.has(e)||n.searchParams.append(e,r);return n.origin===window.location.origin?`${n.pathname}${n.search}`:n.href},Se=e=>xe(p,e),Ce=(e,t)=>{let n=new URLSearchParams(e);return n.has(`page`)&&n.set(`page`,String(t.page)),n.has(`pageSize`)&&n.set(`pageSize`,String(t.pageSize)),n.has(`sortBy`)?t.sortBy?(n.set(`sortBy`,t.sortBy),n.set(`sortOrder`,t.sortOrder)):(n.delete(`sortBy`),n.delete(`sortOrder`)):n.delete(`sortOrder`),n},L=Ce(f.urlState?F(window.location.search):new URLSearchParams,N);f.urlState&&I(L)!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&window.history.replaceState(window.history.state,``,I(L));let R=(e,t)=>a.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:t})),z=e=>{d&&(d.textContent=e)},we=e=>{if(e.pending)return e.rowCount===0?H().emptyLabel:i(H().pageTextPending,{page:e.page});if(e.total===0)return H().emptyLabel;let t=e.pageSize>0?Math.max(1,Math.ceil(e.total/e.pageSize)):1,n=e.totalCapped?We(e.total,!0):`${e.total}`;return i(e.total===1?H().pageTextOne:H().pageTextOther,{page:e.page,pages:t,total:n})},B=()=>U(s,`:scope > thead > tr:first-child > th`,HTMLTableCellElement),Ee=e=>{if(y&&U(e,`:scope > tr:not(.wui-group-row, .wui-virtual-spacer)`,HTMLTableRowElement).some(e=>!e.dataset.rowKey))throw Error(`A selectable server-paged table needs data-row-key on every row, so a selection can span pages.`)},De=e=>{let t=n.dataset.activeRowKey;if(t!==void 0)for(let n of e){let e=n.classList.contains(`wui-row-active`),r=t!==``&&n.dataset.rowKey===t;n.classList.toggle(`wui-row-active`,r),r?n.setAttribute(`aria-current`,`true`):e&&n.removeAttribute(`aria-current`)}},Oe=e=>{if(y){fe(e);for(let t of e){let e=W(t,`.${E} .form-check-input:not(:disabled)`,HTMLInputElement);e&&(D&&b.add(t.dataset.rowKey),e.checked=b.has(t.dataset.rowKey))}ue(s)}De(e);let t=B();if(s.classList.contains(`wui-table-stack`))for(let n of e)[...n.cells].forEach((e,n)=>{let r=t[n]?.textContent?.trim();r&&!e.hasAttribute(`data-label`)&&e.setAttribute(`data-label`,r)});t.forEach((t,n)=>{if(t.classList.contains(`wui-col-hidden`))for(let t of e)t.cells[n]?.classList.add(`wui-col-hidden`)})},ke=e=>Oe(U(e,`:scope > tr`,HTMLTableRowElement)),Ae=e=>{for(let t of e.querySelectorAll(`:scope > template[data-wui-pager], :scope > template[data-wui-empty], :scope > template[data-wui-filters]`))t.remove()},V=e=>e?.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0})),je=(e,t)=>{if(!l)return;let n=W(e,`:scope > template[data-wui-empty]`,HTMLTemplateElement);V(l),(t.pending?t.rowCount:t.total)===0&&n?(l.replaceChildren(n.content.cloneNode(!0)),l.hidden=!1):(l.replaceChildren(),l.hidden=!0)},Me=e=>{u&&(V(u),u.replaceChildren(...e?[e.content.cloneNode(!0)]:[]),u.hidden=!1)},Ne=e=>{let t=f.filtersRegion&&e?W(document,f.filtersRegion,HTMLElement):null;return t&&e&&(V(t),t.replaceChildren(e.content.cloneNode(!0))),t},Pe=0,Ue=e=>{let t=Be(e);t.pending&&Object.assign(t,{total:N.total,totalCapped:N.totalCapped});let n=t.sortBy!==N.sortBy||t.sortOrder!==N.sortOrder?ie(M.rows):null;Me(W(e,`:scope > template[data-wui-pager]`,HTMLTemplateElement)),je(e,t);let r=Ne(W(e,`:scope > template[data-wui-filters]`,HTMLTemplateElement));Ae(e),V(M),s.replaceChild(e,M),M=e,Pe+=1;let i=D&&t.total!==N.total;return N=t,i&&(D=!1),a.removeAttribute(`data-wui-table-error`),ke(e),it(),ne(e.rows,n),i&&X(),r},Ke=e=>{let t=W(o(`<table>${e}</table>`),`tbody[data-wui-rows]`,HTMLTableSectionElement);return t&&Ee(t),t?document.importNode(t,!0):null},qe=(e,t=B())=>{let n=document.createElement(`tr`);for(let r=0;r<e;r++){let e=t[r],i=e?.classList.contains(`text-center`),a=!i&&(e?.classList.contains(`num`)||e?.classList.contains(`text-end`)||e?.classList.contains(`wui-cell-end`)),o=document.createElement(`td`);i?o.classList.add(`text-center`):a&&o.classList.add(e?.classList.contains(`num`)?`num`:`wui-cell-end`);let s=document.createElement(`span`);s.className=`skeleton`,s.setAttribute(`aria-hidden`,`true`);let c=i?44:a?56:60;s.style.cssText=`display:block;width:${c}%;height:12px;border-radius:6px`,o.append(s),n.append(o)}return n},Je=()=>{if(M.querySelector(`:scope > tr:not([data-wui-skeleton])`))return;let e=Math.max(1,B().length);M.replaceChildren(...Array.from({length:Fe},()=>{let t=qe(e);return t.setAttribute(`data-wui-skeleton`,``),t})),a.removeAttribute(`data-wui-table-error`),l&&(l.hidden=!0)},Ye=e=>{e?(a.setAttribute(`aria-busy`,`true`),Je()):a.removeAttribute(`aria-busy`)},Xe=e=>e===`forbidden`?H().forbiddenMessage:e===`networkCheck`?r(`httpFailure`,me).networkCheckText:e===`network`?H().networkMessage:e===`timeout`?H().timeoutMessage:f.errorText,Ze=e=>{let t=Xe(e);if(a.setAttribute(`data-wui-table-error`,e),u&&(u.hidden=!0),l){let n=document.createElement(`div`);n.className=`empty-state wui-empty-state-table wui-table-error`,n.setAttribute(`role`,`alert`);let r=document.createElement(`span`);r.className=`empty-state-icon`;let i=oe(e===`forbidden`?`lock`:`alert-circle`,{size:24});i&&r.replaceChildren(i);let a=document.createElement(`div`);a.className=`empty-state-title`,a.textContent=t;let o=document.createElement(`div`);o.className=`empty-state-action`;let s=document.createElement(`button`);s.type=`button`,s.className=x(`primary`,`outline`,`sm`),s.dataset.wui=te,s.setAttribute(`data-wui-table-retry`,``),s.textContent=H().retryLabel,o.append(s),n.append(r,a,o),V(l),l.replaceChildren(n),l.hidden=!1}z(t)},Qe=()=>f.filtersForm?W(document,f.filtersForm,HTMLFormElement):null,$e=async(e,t=`none`,{quiet:r=!1}={})=>{let i=new URLSearchParams(e);r||(P={query:i,mode:t},Ye(!0),z(f.loadingText)),R(`wui:table:loading`,{query:i.toString()});let o=await he.run(Se(i),{timeoutMs:f.timeoutMs});if(o.kind===`aborted`||o.kind===`stale`||o.kind===`session`)return o;r||Ye(!1);let s=null;if(o.ok)try{s=Ke(o.html)}catch(e){ae(e)}if(!o.ok||!s){let e=o.ok?`server`:o.kind;return r?T(`A quiet server table refresh failed; the rows on screen are kept.`,e):Ze(e),R(`wui:table:error`,{status:o.status,kind:e,message:Xe(e)}),o}let c=Ue(s);return L=Ce(i,N),He(Qe(),L),f.urlState&&t===`push`?window.history.pushState(window.history.state,``,I(L)):f.urlState&&t===`replace`&&window.history.replaceState(window.history.state,``,I(L)),r||z(we(N)),O().refresh(a),c&&O().refresh(c),N.pending?nt():Ge(n,N.total,N.totalCapped),R(`wui:table:loaded`,{...N,query:L.toString()}),o},q=[],et=null,tt=()=>{if(q.length===0||a.getAttribute(`aria-busy`)===`true`)return;let e=q;q=[],$e(L,`none`,{quiet:!0}).then(t=>{for(let n of e)n.resolve(t)},t=>{for(let n of e)n.reject(t)})},J=async(e,t=`none`,n={})=>{let r;try{r=await $e(e,t,n)}catch(e){let t=q;q=[];for(let n of t)n.reject(e);throw e}r.kind===`session`&&(et=r);let i=r.kind===`aborted`&&a.getAttribute(`aria-busy`)===`true`;if(r.kind===`session`||r.kind===`aborted`&&!i){let e=q;q=[];for(let t of e)t.resolve(r)}return tt(),r},Y=e=>(e.delete(`page`),e),nt=()=>{if(!_||!N.pending)return;let e=Pe;h(xe(_,L),{timeoutMs:f.timeoutMs}).then(t=>{if(e!==Pe)return;if(!t.ok){T(`[@webority/ui-elements] A server table's total did not load; its pager keeps Previous and Next.`,t.kind);return}let r=W(o(t.html),`div[data-wui-total]`,HTMLElement);if(!r){T(`[@webority/ui-elements] A server table's count answer has no div[data-wui-total]; its pager keeps Previous and Next.`);return}if(K(r.dataset.page,-1)!==N.page||K(r.dataset.pageSize,-1)!==N.pageSize)return;let i=K(r.dataset.total,-1);if(i<0){T(`[@webority/ui-elements] A server table's count answer has no whole data-total; its pager keeps Previous and Next.`);return}let a=r.dataset.totalCapped===`true`,s=D&&i!==N.total;N={...N,total:i,totalCapped:a,pending:!1},s&&(D=!1);let c=W(r,`:scope > template[data-wui-pager]`,HTMLTemplateElement);c&&Me(c);let l=Ne(W(r,`:scope > template[data-wui-filters]`,HTMLTemplateElement));l&&O().refresh(l),Ge(n,N.total,N.totalCapped),z(we(N)),s&&X(),R(`wui:table:total`,{total:i,totalCapped:a})})},rt=()=>U(s,`:scope > thead th[data-sort-key]`,HTMLTableCellElement),it=()=>{for(let e of rt()){let t=e.dataset.sortKey===N.sortBy;e.setAttribute(`aria-sort`,t?N.sortOrder===`desc`?`descending`:`ascending`:`none`)}};for(let e of rt())if(e.classList.add(`sortable`),e.tabIndex=0,!e.querySelector(`.sort-icon`)){let t=e.classList.contains(`num`)||e.classList.contains(`text-end`),n=document.createElement(`span`);n.className=t?`sort-icon wui-sort-lead`:`sort-icon`;let r=oe(`chevrons-up-down`,{size:14});r&&n.replaceChildren(r),t?e.prepend(n):e.append(n)}let at=e=>{let t=Y(new URLSearchParams(L)),n=N.sortBy===e&&N.sortOrder===`asc`?`desc`:`asc`;return t.set(`sortBy`,e),t.set(`sortOrder`,n),J(t,`push`)};s.addEventListener(`click`,e=>{let t=e.target instanceof Element?G(e.target,`th[data-sort-key]`,HTMLTableCellElement):null;t&&s.tHead?.contains(t)&&at(t.dataset.sortKey??``)}),s.addEventListener(`keydown`,e=>{if(e.key!==`Enter`&&e.key!==` `)return;let t=e.target instanceof Element?G(e.target,`th[data-sort-key]`,HTMLTableCellElement):null;t&&s.tHead?.contains(t)&&(e.preventDefault(),at(t.dataset.sortKey??``))});let X=()=>{ue(s),pe(s);let e=D?{selected:N.total,total:N.total,allMatching:D}:{selected:b.size,total:N.total};s.dispatchEvent(new CustomEvent(`selectionchange`,{bubbles:!0,detail:e}))};y&&(le(s,(e,t)=>{for(let n of e){let e=G(n,`tr`,HTMLTableRowElement)?.dataset.rowKey;e&&(t?b.add(e):b.delete(e))}t||(D=!1)}),s.addEventListener(`change`,e=>{let t=e.target;if(t instanceof HTMLInputElement&&t.matches(`.wui-select-cell .form-check-input:not(:disabled)`)){if(t.checked||(D=!1),s.tHead?.contains(t))for(let e of U(M,`:scope > tr:not(.wui-group-row)`,HTMLTableRowElement)){let n=W(e,`.${E} .form-check-input:not(:disabled)`,HTMLInputElement);n&&(n.checked=t.checked,t.checked?b.add(e.dataset.rowKey):b.delete(e.dataset.rowKey))}else if(G(t,`tr`,HTMLTableRowElement)?.classList.contains(`wui-group-row`)){let e=G(t,`tr`,HTMLTableRowElement);for(let n=e?.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`tr.wui-group-row`);n=n.nextElementSibling){let e=W(n,`.${E} .form-check-input:not(:disabled)`,HTMLInputElement),r=n.dataset.rowKey;e&&r&&(e.checked=t.checked,t.checked?b.add(r):b.delete(r))}}else{let e=G(t,`tr`,HTMLTableRowElement)?.dataset.rowKey;if(!e)return;t.checked?b.add(e):b.delete(e)}X()}})),u&&(u.addEventListener(`click`,e=>{let t=e.target instanceof Element?G(e.target,`a[href]`,HTMLAnchorElement):null;!t||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(e.preventDefault(),J(be(t.getAttribute(`href`)??``),`push`))}),u.addEventListener(`change`,e=>{let t=e.target;t instanceof HTMLSelectElement&&t.classList.contains(`tpg-select`)&&t.value&&(e.stopPropagation(),J(be(t.value),`push`))}));let Z=()=>{if(!f.searchInput)return null;let e=W(document,f.searchInput,HTMLElement);return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:e?W(e,`input`,HTMLInputElement):null},Q=()=>n.isConnected?!0:(ge.abort(),clearTimeout(ye??void 0),!1),ot=(e,t)=>{let n=[...e.elements].filter(Ie),r=/* @__PURE__ */ new Set;for(let e of n)e.name&&!Re(e)&&r.add(e.name);let i=[];for(let e of n)if(e.name&&!Le(e)){if(e instanceof HTMLInputElement&&e.matches(`input[type="hidden"][data-wui-carried]`))r.has(e.name)||i.push([e.name,e.value]);else if(e instanceof HTMLInputElement&&e.matches(`input[type=checkbox], input[type=radio]`))e.checked&&i.push([e.name,e.value]);else if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)e.matches(`[type=submit], [type=button], [type=reset], [type=image], [type=file]`)||i.push([e.name,e.value]);else if(e instanceof HTMLSelectElement)for(let t of e.selectedOptions)i.push([e.name,t.value])}return(t instanceof HTMLButtonElement||t instanceof HTMLInputElement)&&t.name&&!t.disabled&&i.push([t.name,t.value]),i},st=(e,t)=>{let n=new Set([...e.elements].filter(Ie).map(e=>e.name).filter(Boolean)),r=new URLSearchParams,i=e=>e!==`search`&&se.includes(e);for(let[e,t]of L)e!==`page`&&(i(e)||!n.has(e))&&r.append(e,t);for(let[n,a]of ot(e,t))a===``||i(n)||v.has(n)||r.append(n,a);let a=Z();if(a){r.delete(ce);let e=a.value.trim();e&&r.set(ce,e)}return J(r,`push`)},ct=e=>f.filtersForm&&e.closest?.(f.filtersForm)||f.filtersRegion&&e.closest?.(f.filtersRegion)||null;document.addEventListener(`submit`,e=>{Q()&&f.filtersForm&&e.target instanceof HTMLFormElement&&e.target.matches(f.filtersForm)&&(e.preventDefault(),st(e.target,e.submitter))},A),document.addEventListener(`change`,e=>{if(!Q()||!f.filtersForm||!(e.target instanceof Element))return;let t=G(e.target,f.filtersForm,HTMLFormElement);!t||e.target===Z()||t.hasAttribute(`data-wui-apply-on-change`)||e.target.closest(`wui-filter-popover`)||st(t)},A);let lt=(e,t)=>{if(!e)return;let n=e=>t.get(e)??``;for(let r of U(e,`input[name]:not([type=hidden])`,HTMLInputElement))if(r.type===`checkbox`)r.checked=t.getAll(r.name).includes(r.value);else if(r.type===`radio`){let e=n(r.name)===r.value;if(r.checked===e)continue;r.checked=e,e&&r.dispatchEvent(new Event(`change`))}else r.value!==n(r.name)&&(r.value=n(r.name),r.dispatchEvent(new Event(`input`,{bubbles:!0})));for(let r of U(e,`select[name]`,HTMLSelectElement))if(!r.multiple)r.value=n(r.name);else for(let e of r.options)e.selected=t.getAll(r.name).includes(e.value);for(let r of[...e.querySelectorAll(`wui-select[name]`)].filter(ze)){let e=r.getAttribute(`name`)??``;r.value=r.mode===`multiple`||r.mode===`tag`?t.getAll(e):n(e)}for(let t of e.querySelectorAll(`wui-date-range`)){let e=t.getAttribute(`start-name`),r=t.getAttribute(`end-name`);t.value={start:e?n(e):``,end:r?n(r):``}}};document.addEventListener(`click`,e=>{if(!Q())return;let t=e.target instanceof Element?G(e.target,`a[href]`,HTMLAnchorElement):null;if(!t||!ct(t)||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let n=new URL(t.getAttribute(`href`)??``,window.location.href);if(n.origin!==window.location.origin||n.pathname!==window.location.pathname)return;e.preventDefault();let r=Y(be(n.href));lt(t.closest(`form`),r),He(t.closest(`form`),r),J(r,`push`)},A),document.addEventListener(`input`,e=>{if(!Q())return;let t=Z();t&&e.target===t&&(clearTimeout(ye??void 0),ye=setTimeout(()=>{if(!Q())return;let e=Y(new URLSearchParams(L)),n=t.value.trim();n?e.set(ce,n):e.delete(ce),e.toString()!==L.toString()&&J(e,`replace`)},300))},A),f.urlState&&window.addEventListener(`popstate`,()=>{if(!Q())return;let e=F(window.location.search),t=Z();t&&(t.value=e.get(`search`)??``),He(Qe(),e),J(e,`none`)},A),l?.addEventListener(`click`,e=>{e.target instanceof Element&&e.target.closest(`[data-wui-table-retry]`)&&P&&J(P.query,P.mode)});let ut=e=>[...M.rows].find(t=>t.dataset.rowKey===e)??null,dt=e=>{if(!e?.trim())return null;let t=o(`<table><tbody>${e}</tbody></table>`);if(t.querySelector(`tbody[data-wui-rows]`))return null;let n=U(t,`table > tbody > tr[data-row-key]`,HTMLTableRowElement);return n.length?n.map(e=>document.importNode(e,!0)):null},ft=(e,t,n)=>{let r=n?e[0]:e.find(e=>e.dataset.rowKey===t.dataset.rowKey);if(!r)return null;let i=[];for(let n of e){let e=n===r?t:ut(n.dataset.rowKey);e&&(V(e),e.replaceWith(n),i.push(n))}return Oe(i),O().refresh(a),r},pt=e=>e.message||(e.kind===`forbidden`?H().actionForbiddenMessage:H().actionFailedMessage),$=e=>{e?.isConnected&&e.getAttribute(`data-wui-save-state`)===`saving`&&S(e,null)},mt=async({url:e,method:r=`POST`,body:i,key:o,row:s}={})=>{if(!e)throw Error("saveRow needs `url`: the handler that saves the row.");let c=o==null,u=c?null:ut(String(o));if(!c&&!u)throw Error(`saveRow found no row with data-row-key="${o}" on this page.`);let d=B().filter(e=>!e.classList.contains(E)),f=s===void 0?u??qe(Math.max(1,d.length),d):t(s,HTMLTableRowElement,"saveRow's `row` is required to be a row element: the <tr> as it will read, not its HTML.");u&&f!==u?u.replaceWith(f):u||M.insertBefore(f,M.firstChild),f!==u&&Oe([f]),l&&!a.hasAttribute(`data-wui-table-error`)&&(l.hidden=!0),S(f,`saving`);let p=w(f),m=await h(e,{method:r.toUpperCase(),body:i});if(m.kind===`session`)return!1;if(m.ok){if(!j(n)&&_e(m))return $(f),R(`wui:table:saved`,{key:c?null:String(o),added:c,status:m.status}),await k(m,{origin:n}),!0;let e=dt(m.html),t=e&&f.isConnected?ft(e,f,c):null;return t&&z(re(w(t)||p)),Te(m,m.toastVariant||`success`),j(n)||await k(m,{skip:t?n:null,origin:n}),$(f),R(`wui:table:saved`,{key:t?.dataset.rowKey??(c?null:String(o)),added:c,status:m.status}),!0}let g=pt(m),_=f;return u&&f!==u&&f.isConnected?(f.replaceWith(u),_=u):c&&!s&&(f.remove(),_=null,l?.childElementCount&&!M.querySelector(`:scope > tr`)&&(l.hidden=!1)),_?.isConnected&&S(_,`error`,g),m.kind!==`aborted`&&Ve(g,`danger`),z(C(p,g)),R(`wui:table:failed`,{key:c?null:String(o),added:c,status:m.status,kind:m.kind,message:g}),!1},ht=async e=>{let t=e.dataset.url;if(!t)throw Error(`A data-wui-row-action button needs data-url: the handler the action posts to.`);let r=G(e,`tr`,HTMLTableRowElement),i=r?.dataset.rowKey??null,a=e.dataset.wuiRowAction||``,o=r?w(r):``;e.disabled=!0,e.setAttribute(`aria-busy`,`true`),r&&S(r,`saving`);let s=await h(t,{method:(e.dataset.method||`post`).toUpperCase()});if(e.disabled=!1,e.removeAttribute(`aria-busy`),s.kind===`session`||s.kind===`aborted`)$(r);else if(s.ok&&!j(e)&&_e(s))$(r),R(`wui:table:action`,{action:a,key:i,ok:s.ok,status:s.status}),await k(s,{origin:e});else{if(s.ok){Te(s,s.toastVariant||`success`);let t=r?.isConnected?dt(s.html):null,i=t&&r?ft(t,r,!1):null;i&&z(re(w(i)||o)),j(e)||await k(s,{skip:i?n:null,origin:e}),$(r)}else{let e=pt(s);Ve(e,`danger`),r?.isConnected&&S(r,`error`,e),z(C(o,e))}R(`wui:table:action`,{action:a,key:i,ok:s.ok,status:s.status})}};return s.addEventListener(`click`,e=>{let t=e.target instanceof Element?G(e.target,`[data-wui-row-action]`,HTMLButtonElement):null;t&&M.contains(t)&&!t.disabled&&(e.preventDefault(),ht(t))}),Ee(M),Ae(M),y&&de(s),ke(M),it(),N.pending&&(z(we(N)),nt()),{el:n,reload:async e=>{if(et)return et;let t=e?.quiet===!0;return t&&a.getAttribute(`aria-busy`)===`true`?new Promise((e,t)=>{q.push({resolve:e,reject:t})}):J(L,`none`,{quiet:t})},query:()=>new URLSearchParams(L),setQuery:e=>{let t=new URLSearchParams(L);for(let[n,r]of Object.entries(e??{})){t.delete(n);for(let e of Array.isArray(r)?r:[r])e!=null&&e!==``&&t.append(n,String(e))}return e&&`page`in e||t.delete(`page`),J(t,`push`)},saveRow:mt,setActiveRow:e=>{n.dataset.activeRowKey=e==null?``:String(e),De(U(M,`:scope > tr`,HTMLTableRowElement))},selection:{keys:()=>[...b],count:()=>D?N.total:b.size,allMatching:()=>D,selectAllMatching:()=>{if(N.pending)T(`[@webority/ui-elements] select all matching needs the total; the table is still waiting for its count.`);else{D=!0;for(let e of U(M,`:scope > tr:not(.wui-group-row)`,HTMLTableRowElement)){let t=W(e,`.${E} .form-check-input`,HTMLInputElement);t?.disabled||(t&&(t.checked=!0),e.dataset.rowKey&&b.add(e.dataset.rowKey))}X()}},clear:()=>{D=!1,b.clear();for(let e of U(M,`:scope > tr > .${E} .form-check-input:not(:disabled)`,HTMLInputElement))e.checked=!1;X()}}}}var Je=/* @__PURE__ */ new WeakSet;function Ye(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!ge(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${F.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&z(n,t)}}function Xe(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!Je.has(t)){Je.add(t);let e=he();e&&z(e.message,e.variant,e.action)}Ye(e)}var Ze=/* @__PURE__ */ new Set([204,205,304]),Qe=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function $e(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[_]:`1`,...n.headers};if(b(e)){let e=l();e&&(i[e.header]=e.token)}let a=n.signal;return a?.aborted?u(`aborted`):new Promise(o=>{let s=new XMLHttpRequest,c=!1,l,d=()=>s.abort(),f=(e,t=null,n=``)=>{l!==void 0&&clearTimeout(l),a?.removeEventListener(`abort`,d),o(u(e,t,n))};s.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},s.onload=()=>{let e=s.status;if(e===0){f(`network`);return}let t=Qe(s.getAllResponseHeaders()),n=v(e,t),r=s.responseText,i=n===`ok`||n===`validation`?r:``;if(e<200||e>599){f(n,null,i);return}let a=new Response(Ze.has(e)?null:r,{status:e,headers:t});f(n,a,i)},s.onerror=()=>f(`network`),s.onabort=()=>{f(a?.aborted?`aborted`:c?`timeout`:`aborted`)},r!==void 0&&(l=setTimeout(()=>{c=!0,s.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),s.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))s.setRequestHeader(e,t);s.send(t)})}var q=/* @__PURE__ */ new WeakMap;function et(e,t){q.set(e,t)}function tt(e){q.delete(e)}function J(e){let t=e?.closest(`[data-app-shell]`);return(t&&q.get(t))??null}var Y=()=>r(`shell`,a),nt=31536e3;function rt(e,t,n,r){let i=[...e.querySelectorAll(`nav.wui-tabbar a.wui-tabbar-item`)].find(e=>e.getAttribute(`href`)===t);if(!i)throw Error(`setTabCount: no tab bar item links to ${t}.`);let a=i.querySelector(`:scope > .wui-tabbar-badge`);if(n===null||n===0){a?.remove();return}a||(a=document.createElement(`span`),i.append(a)),a.className=`wui-tabbar-badge${r?` tone-${r}`:``}`;let o=e.querySelector(`nav.wui-tabbar`)?.hasAttribute(`data-wui-cap-badges`)===!0;a.textContent=o?it(n):String(n)}var it=e=>e>99?`99+`:String(e),at=(e,t)=>Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,()=>String(n)),e);function X(e,t,n=document){try{n.cookie=`${e}=${t?`1`:`0`}; Path=/; Max-Age=${nt}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}function Z(e,t,n,r=document){try{let i=`${e}=`,a=r.cookie.split(`;`).map(e=>e.trim()).find(e=>e.startsWith(i)),o=new Set(a?a.slice(i.length).split(`.`).filter(Boolean):[]);n?o.add(t):o.delete(t),r.cookie=`${e}=${[...o].join(`.`)}; Path=/; Max-Age=${nt}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}var Q=(e,t,n)=>{let r=e?.querySelector(t);return r instanceof n?r:null},ot=(e,t,n)=>{let r=e?.closest(t);return r instanceof n?r:null},st=(e,t,n)=>e?[...e.querySelectorAll(t)].filter(e=>e instanceof n):[],ct=e=>{if(!(e.target instanceof Element))throw Error(`event target is not an element`);return e.target},lt=e=>{let t=e.getAttribute(`href`);if(t===null)throw Error(`search hit has no href`);return t},ut=(e,t)=>{let n=document.createElement(`div`);return n.className=e,n.textContent=t,n},dt=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),ft=(e,t,n)=>`${e}${e.includes(`?`)?`&`:`?`}${encodeURIComponent(t)}=${encodeURIComponent(n)}`;function pt(t,r){let i=e(Q(t,`input.search-input`,HTMLInputElement),`search input missing`),a=Q(t,`.wui-topsearch-results`,HTMLElement),s=()=>e(a,`search results missing`),c=Q(t,`.wui-topsearch-open`,HTMLElement),l=Q(t,`[data-wui-topsearch-live]`,HTMLElement),{src:u,param:d=`q`,resultsHref:f}=t.dataset,p=Number(t.dataset.minChars??2),h=Number(t.dataset.debounceMs??250),g=t.dataset.noResultsText??Y().noResultsText,_=t.dataset.resultsCountText??Y().resultsCountText,ee=t.dataset.resultCountText??Y().resultCountText,v=m(),y,b=-1,x=()=>st(s(),`.wui-topsearch-hit`,HTMLElement),te=e=>{let t=x();b=t.length===0?-1:(e+t.length)%t.length,t.forEach((e,t)=>{let n=t===b;e.classList.toggle(`is-active`,n),e.setAttribute(`aria-selected`,n?`true`:`false`)});let n=b>=0?t[b]:void 0;n?(i.setAttribute(`aria-activedescendant`,n.id),n.scrollIntoView?.({block:`nearest`})):i.removeAttribute(`aria-activedescendant`)},ne=()=>{s().hidden=!0,i.setAttribute(`aria-expanded`,`false`),i.removeAttribute(`aria-activedescendant`),b=-1},re=()=>{s().hidden=!1,i.setAttribute(`aria-expanded`,`true`)},S=e=>{t.classList.toggle(`is-open`,e),c?.setAttribute(`aria-expanded`,e?`true`:`false`)},C=e=>{let n=new CustomEvent(`wui:search:select`,{bubbles:!0,cancelable:!0,detail:{href:e}});t.dispatchEvent(n)&&window.location.assign(e)},w=async e=>{if(t.classList.add(`is-loading`),u===void 0)throw Error(`search has no data-src`);let n=await v.run(ft(u,d,e));if(n.kind!==`aborted`&&n.kind!==`stale`&&n.kind!==`session`){if(t.classList.remove(`is-loading`),n.ok){let e=o(n.html),t=Q(e,`[data-wui-count]`,HTMLElement);s().replaceChildren(e),x().forEach((e,t)=>{e.id=`${s().id}-opt-${t}`});let r=t?Number(t.getAttribute(`data-wui-count`)):x().length;l&&(l.textContent=r===0?g:at(r===1?ee:_,{count:r}))}else s().replaceChildren(ut(`wui-topsearch-empty`,Y().searchUnavailableMessage));b=-1,re()}};i.addEventListener(`input`,()=>{clearTimeout(y);let e=i.value.trim();e.length<p?(v.abort(),t.classList.remove(`is-loading`),s().replaceChildren(),ne()):y=setTimeout(()=>w(e),h)}),i.addEventListener(`keydown`,e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(s().hidden||x().length===0)return;e.preventDefault(),te(b+(e.key===`ArrowDown`?1:-1))}else if(n(e)){let t=x(),n=b>=0?t[b]:void 0;!s().hidden&&n?(e.preventDefault(),C(lt(n))):f&&i.value.trim()!==``&&(e.preventDefault(),C(ft(f,d,i.value.trim())))}else e.key===`Escape`&&(s().hidden?t.classList.contains(`is-open`)&&(e.preventDefault(),e.stopPropagation(),S(!1),c?.focus()):(e.preventDefault(),e.stopPropagation(),ne()))}),s().addEventListener(`click`,e=>{let t=ot(ct(e),`.wui-topsearch-hit`,HTMLElement);!t||e.ctrlKey||e.metaKey||e.shiftKey||e.button===1||(e.preventDefault(),C(lt(t)))}),c?.addEventListener(`click`,()=>{let e=!t.classList.contains(`is-open`);S(e),e&&i.focus()});let ie=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||dt(e.target)||(e.preventDefault(),S(!0),i.focus())},T=e=>{e.target instanceof Node&&t.contains(e.target)||(ne(),t.classList.contains(`is-open`)&&S(!1))};document.addEventListener(`keydown`,ie),document.addEventListener(`pointerdown`,T),r.push(()=>{clearTimeout(y),v.abort(),document.removeEventListener(`keydown`,ie),document.removeEventListener(`pointerdown`,T)})}function $(e){let t=[],n=e.dataset.wuiCollapsedCookie;n&&e.addEventListener(`wui:shell:collapse`,e=>{X(n,!!e.detail?.collapsed)});let r=e.dataset.wuiFoldedCookie;r&&e.addEventListener(`wui:shell:nav-fold`,e=>{Z(r,e.detail?.key,!!e.detail?.folded)}),e.addEventListener(`click`,t=>{ct(t).closest(`[data-wui-tabbar-more]`)&&Q(e,`[data-app-shell-menu]`,HTMLElement)?.click()});let i=Q(e,`[data-wui-topsearch]`,HTMLElement);i&&pt(i,t);let a={el:e,setTabCount(t,n,r){rt(e,t,n,r)},get collapsed(){return e.classList.contains(`collapsed`)},set collapsed(t){if(!!t===e.classList.contains(`collapsed`))return;let n=Q(e,`[data-app-shell-collapse]`,HTMLElement);n?n.click():e.classList.toggle(`collapsed`,!!t)}};et(e,a);let o=n=>{if(n.target===e||n.target instanceof Node&&n.target.contains(e)){for(let e of t)e();tt(e),delete e.dataset.wuiPartsWired,document.removeEventListener(`wui:teardown`,o)}};return document.addEventListener(`wui:teardown`,o),a}function mt(e=document){let t=[];e instanceof HTMLElement&&e.matches(`[data-app-shell]`)&&t.push(e),t.push(...st(e,`[data-app-shell]`,HTMLElement));for(let e of t)e.dataset.wuiPartsWired||(e.dataset.wuiPartsWired=`1`,$(e))}function ht(e){let t=ot(e,`[data-app-shell]`,HTMLElement);return t?(J(t)||mt(t),J(t)):null}export{Ae as CONFIRM_DIALOG_ID,Se as CONFIRM_TONES,y as CSRF_META_NAME,g as DEFAULT_CSRF_HEADER,V as DISCARD_EVENT,ye as FLASH_STORAGE_KEY,F as FLASH_VARIANTS,p as HTTP_KINDS,f as TOAST_ACTION_METHODS,L as TOAST_ACTION_MS,s as WUI_HEADERS,Ne as WuiPostError,N as applyRefresh,v as classifyStatus,R as closeRemotePane,c as configureCsrf,B as confirmAction,Ee as createDiscardPrompt,m as createRequestQueue,we as formValues,P as getServerTable,ht as getShell,ke as initDrawerDiscard,Xe as initFlashToasts,be as initRemoteModals,je as initServerActions,Ke as initServerTables,mt as initShellParts,I as initUnsavedChanges,Me as loadRemoteDrawer,Pe as loadRemoteModal,xe as loadRemotePane,o as parseServerHtml,d as parseToastAction,Ce as postAction,l as readCsrf,k as refreshAfter,A as refreshRegions,_e as reloadsPage,De as resetUnsavedChanges,Oe as runToastAction,Te as showResultToast,z as showToast,ee as timeoutFromAttribute,h as wuiFetch,$e as wuiUpload};
@@ -0,0 +1 @@
1
+ var e={accountMenuLabel:`Account menu for {name}`,collapseNavLabel:`Collapse navigation`,emptyText:`You are all caught up.`,expandNavLabel:`Expand navigation`,label:`Notifications`,logoutLabel:`Sign out`,moreLabel:`More`,navLabel:`Main navigation`,newLabel:`New`,noResultsForText:`No results for “{value}”`,noResultsText:`No results`,notificationsLoadErrorMessage:`Could not load notifications.`,openNavLabel:`Open navigation`,placeholder:`Search`,profileLabel:`My profile`,resultCountText:`{count} result`,resultsCountText:`{count} results`,retryLabel:`Retry`,roleLabel:`Role:`,rolesLabel:`Roles:`,searchResultsLabel:`Search results`,searchUnavailableMessage:`Search is unavailable right now.`,seeAllResultsForText:`See all results for “{query}”`,skipLabel:`Skip to content`,tabBarLabel:`Quick navigation`,togglePagesLabel:`Show or hide {name} pages`};export{e as t};
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./textStore-DBplASiZ.js";import{t as n}from"./tableSelect.g-DwI5_9Nw.js";var r=()=>e(`tableSelect`,n),i=`wui-select-cell`,a=`wui-group-select`,o=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function s(e=document){let t=e.createElement(`th`);return t.className=i,t.appendChild(o(e,r().selectAllLabel)),t}function c(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=i;let a=o(e,r().selectRowLabel);return a.disabled=t,n.appendChild(a),n}function l(e=document){let t=e.createElement(`td`);return t.className=i,t}function u(e,n){let s=e.createElement(`td`);return s.className=`${i} ${a}`,s.appendChild(o(e,t(r().selectGroupLabel,{group:n}))),s}function d(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var f=e=>e.firstElementChild?.classList.contains(i),p=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),m=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function h(e){for(let t of e){if(f(t)||p(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(c(t.ownerDocument,{disabled:e}),t.firstChild)}}function g(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;f(t)||t.insertBefore(s(e.ownerDocument),t.firstChild),h(m(e,`tbody tr`,HTMLTableRowElement));for(let t of m(e,`tfoot tr`,HTMLTableRowElement))f(t)||t.insertBefore(l(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${i} .form-check-input`);return n instanceof HTMLInputElement?n:null}function _(e){let t=e.querySelector(`thead .${i} .form-check-input`),n=m(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,a=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&a===r,t.indeterminate=a>0&&a<r);for(let t of m(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:a,total:r}}function v(e){for(let t of m(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${a} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=d(t).flatMap(e=>m(e,`.${i} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var y=`tbody tr:not(.wui-group-row) .${i} .form-check-input:not(:disabled)`;function b(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=m(e,y,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}export{b as a,_ as c,g as i,i as n,u as o,h as r,v as s,a as t};
@@ -0,0 +1 @@
1
+ var e={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`};export{e as t};
@@ -0,0 +1 @@
1
+ var e=/* @__PURE__ */ new Set,t=/* @__PURE__ */ new Set,n=`wui-fake-popover-open`,r=!1,i=!1,a=!1,o=/* @__PURE__ */ new WeakMap;function s(){for(let t of e)t.isConnected||(e.delete(t),t.removeAttribute(`data-fake-popover-open`));for(let e of t)e.isConnected||t.delete(e)}function c(t){return s(),e.has(t)}function l(e,t,n){t in e||Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t,n){return Object.assign(new Event(e),{oldState:t,newState:n})}function d(t,n){let r=e.has(t);if(r===n)return;let i=r?`open`:`closed`,a=n?`open`:`closed`;t.dispatchEvent(u(`beforetoggle`,i,a)),n?e.add(t):e.delete(t),t.toggleAttribute(`data-fake-popover-open`,n),t.dispatchEvent(u(`toggle`,i,a))}function f(){let e=window.Element.prototype,t=e.matches;Object.defineProperty(e,"matches",{value:function(e){return e===`:popover-open`?this instanceof HTMLElement&&c(this):t.call(this,e)},writable:!0,configurable:!0})}function p(){if(document.getElementById(n))return;let e=document.createElement(`style`);e.id=n,e.textContent=`[popover][data-fake-popover-open][data-fake-popover-open]:not([hidden]){display:block}`,document.head.appendChild(e)}function m(){s();let e;for(let n of t)n.hasAttribute(`open`)&&(e=n);return e}function h(){s();let t;for(let n of e)n.getAttribute(`popover`)===`auto`&&(t=n);return t}function g(){if(typeof window>`u`)return;let n=window.HTMLDialogElement.prototype,i=window.HTMLElement.prototype;l(n,`showModal`,function(){this.setAttribute(`open`,``),t.delete(this),t.add(this)}),l(n,`show`,function(){this.setAttribute(`open`,``)}),l(n,`close`,function(){t.delete(this),this.hasAttribute(`open`)&&(this.removeAttribute(`open`),this.dispatchEvent(new Event(`close`)))}),l(i,`showPopover`,function(){d(this,!0)}),l(i,`hidePopover`,function(){d(this,!1)}),l(i,`togglePopover`,function(t){let n=t??!e.has(this);return d(this,n),n}),r||(r=!0,f()),p()}function _(){typeof window>`u`||i||(i=!0,window.addEventListener(`keydown`,e=>{if(e.key!==`Escape`||e.defaultPrevented)return;let t=m();if(t){let e=new Event(`cancel`,{cancelable:!0});t.dispatchEvent(e),e.defaultPrevented||t.close()}else h()?.hidePopover()}))}function v(){if(typeof window>`u`||a)return;a=!0;let e=window.HTMLDialogElement.prototype,t=e.showModal,n=e.close,r=window.HTMLElement.prototype.focus;e.showModal=function(){let e=this.ownerDocument.activeElement;e instanceof HTMLElement&&e!==this.ownerDocument.body&&!this.hasAttribute(`open`)&&o.set(this,e),t.call(this)},e.close=function(){let e=this.hasAttribute(`open`);if(n.call(this),!e)return;let t=o.get(this);o.delete(this);let r=this.ownerDocument.activeElement;t?.isConnected&&(r===this.ownerDocument.body||this.contains(r))&&t.focus()},window.HTMLElement.prototype.focus=function(e){let t=this.closest(`dialog`);if(t&&!t.hasAttribute(`open`))return;let n=m();(!n||n.contains(this))&&r.call(this,e)}}export{_ as installNativeEscape,v as installNativeModalFocus,g as installNativeOverlayFakes,c as isFakePopoverOpen};
package/dist/text/en.json CHANGED
@@ -4,13 +4,22 @@
4
4
  "accountSwitcher": {
5
5
  "label": "Switch account"
6
6
  },
7
+ "agenda": {
8
+ "addLabel": "Add",
9
+ "empty": "Nothing to show",
10
+ "label": "Agenda",
11
+ "showMore": "Show {count} more"
12
+ },
7
13
  "alert": {
8
14
  "closeLabel": "Close alert"
9
15
  },
10
16
  "asyncBlock": {
11
17
  "emptyTitle": "Nothing here yet",
12
18
  "errorTitle": "That didn't load",
19
+ "failedOnce": "Failed 1 time",
20
+ "failedTimes": "Failed {count} times",
13
21
  "loadingLabel": "Loading",
22
+ "retryFailedTitle": "That still didn't load",
14
23
  "retryLabel": "Try again"
15
24
  },
16
25
  "avatar": {
@@ -26,6 +35,7 @@
26
35
  "moreLabel": "Show hidden levels"
27
36
  },
28
37
  "calendar": {
38
+ "agendaLabel": "Agenda",
29
39
  "allDayDateText": "all day, {start}",
30
40
  "allDayLabel": "All day",
31
41
  "calendarViewLabel": "Calendar view",
@@ -40,6 +50,7 @@
40
50
  "nextLabel": "Next",
41
51
  "previousLabel": "Previous",
42
52
  "rangeTitleText": "{start} to {last}",
53
+ "timelineLabel": "Timeline",
43
54
  "todayLabel": "Today",
44
55
  "tryAgainLabel": "Try again",
45
56
  "weekLabel": "Week"
@@ -59,6 +70,10 @@
59
70
  "statusTextOne": "Slide {first} of {total}",
60
71
  "statusTextOther": "Slides {first} to {last} of {total}"
61
72
  },
73
+ "changeList": {
74
+ "now": "Now",
75
+ "was": "Was"
76
+ },
62
77
  "chart": {
63
78
  "aboveLabel": "Above",
64
79
  "areaChartLabel": "Area chart",
@@ -141,6 +156,7 @@
141
156
  "sharedAxisText": ", sharing one x axis",
142
157
  "showingFirstRowsDownloadText": "Showing the first {rows} of {total} rows. Download the CSV for all of them.",
143
158
  "smallMultiplesLabel": "Small multiples",
159
+ "soFarText": "so far",
144
160
  "stackedPercentText": ", stacked to 100%",
145
161
  "stackedText": ", stacked",
146
162
  "stageLabel": "Stage",
@@ -211,6 +227,7 @@
211
227
  "ariaLabel": "Search",
212
228
  "backLabel": "Back",
213
229
  "emptyText": "No results",
230
+ "errorRetryLabel": "Try again",
214
231
  "placeholder": "Search…",
215
232
  "recentsLabel": "Recent",
216
233
  "resultGroupsLabel": "Result groups",
@@ -298,6 +315,28 @@
298
315
  "customRule": {
299
316
  "invalidMessage": "Enter a valid value."
300
317
  },
318
+ "dashboardGrid": {
319
+ "addEmptyText": "Every widget is shown.",
320
+ "addLabel": "Add a widget",
321
+ "earlierLabel": "Move {title} earlier",
322
+ "earlierText": "Earlier",
323
+ "editLabel": "Arrange widgets",
324
+ "hiddenText": "{title} hidden.",
325
+ "hideLabel": "Hide {title}",
326
+ "hideText": "Hide",
327
+ "laterLabel": "Move {title} later",
328
+ "laterText": "Later",
329
+ "movedText": "{title} moved to position {position} of {count}.",
330
+ "resetLabel": "Reset to default",
331
+ "resetText": "Layout reset to the default.",
332
+ "showLabel": "Add {title}",
333
+ "shownText": "{title} shown at position {position} of {count}."
334
+ },
335
+ "dashboardHeader": {
336
+ "amLabel": "am",
337
+ "pmLabel": "pm",
338
+ "updatedLabel": "Updated {time} IST"
339
+ },
301
340
  "dataTable": {
302
341
  "actionFailedMessage": "That did not work. Try again.",
303
342
  "actionForbiddenMessage": "You do not have permission to do that.",
@@ -329,8 +368,12 @@
329
368
  "rowSavedText": "Row saved.",
330
369
  "rowWasNotSavedText": "Row was not saved.",
331
370
  "rowsSavedText": "{n} rows saved.",
371
+ "saveBusyLabel": "Saving",
372
+ "saveDoneLabel": "Saved",
373
+ "saveFailedLabel": "Not saved",
332
374
  "savedText": "{label} saved.",
333
375
  "selectAllRowsLabel": "Select all rows",
376
+ "selectGroupLabel": "Select all in {group}",
334
377
  "selectRowLabel": "Select row",
335
378
  "timeoutMessage": "The server did not answer in time. Check your connection and try again.",
336
379
  "wasNotSavedText": "{label} was not saved."
@@ -407,6 +450,7 @@
407
450
  },
408
451
  "entryGrid": {
409
452
  "addLabel": "Add line",
453
+ "cancelLabel": "Cancel",
410
454
  "commitNextLabel": "Save and go to the next line",
411
455
  "commitStayLabel": "Save",
412
456
  "dirtyLabel": "Changed",
@@ -416,6 +460,7 @@
416
460
  "label": "Entry lines",
417
461
  "moveLabel": "Move between lines",
418
462
  "removeLineLabel": "Remove line",
463
+ "rowActionsLabel": "Actions",
419
464
  "savedLabel": "Saved",
420
465
  "savingLabel": "Saving",
421
466
  "statusLabel": "Status"
@@ -551,6 +596,14 @@
551
596
  "floatingDock": {
552
597
  "ariaLabel": "Quick navigation"
553
598
  },
599
+ "formActions": {
600
+ "dirty": "Unsaved changes",
601
+ "invalidOne": "1 field needs attention",
602
+ "invalidOther": "{count} fields need attention",
603
+ "pristine": "No changes yet",
604
+ "saved": "Saved at {time}",
605
+ "saving": "Saving changes"
606
+ },
554
607
  "formatters": {
555
608
  "aprShortLabel": "Apr",
556
609
  "aprilLabel": "April",
@@ -611,6 +664,8 @@
611
664
  "addTaskLabel": "Add task",
612
665
  "barLabel": "{name}, {start} to {end}, {percent} percent, {status}",
613
666
  "barLabelAfter": "{label}, after {names}",
667
+ "clashLabel": "Clash",
668
+ "countLabel": "Count",
614
669
  "dayLabel": "Day",
615
670
  "detailsCloseLabel": "Close details",
616
671
  "detailsDates": "Dates",
@@ -777,6 +832,7 @@
777
832
  "escLabel": "Esc"
778
833
  },
779
834
  "kpiTile": {
835
+ "noData": "No data",
780
836
  "periodLabel": "vs last period"
781
837
  },
782
838
  "labelHelp": {
@@ -832,6 +888,9 @@
832
888
  "searchFailedMessage": "Couldn't load people. Keep typing to try again.",
833
889
  "searchingLabel": "Searching…"
834
890
  },
891
+ "miniCalendar": {
892
+ "label": "Calendar"
893
+ },
835
894
  "modal": {
836
895
  "backLabel": "Back",
837
896
  "clientMessage": "It may have been moved or deleted.",
@@ -865,12 +924,16 @@
865
924
  "allReadText": "All notifications marked as read.",
866
925
  "archivedLabel": "Archived",
867
926
  "clientMessage": "These could not be marked as read. Refresh the page and try again.",
927
+ "earlierLabel": "See earlier",
868
928
  "emptyText": "You are all caught up.",
929
+ "errorText": "Notifications did not load",
869
930
  "forbiddenMessage": "You do not have permission to mark these as read.",
870
931
  "label": "Notifications",
932
+ "loadingText": "Loading notifications…",
871
933
  "markAllLabel": "Mark all read",
872
934
  "networkMessage": "Could not reach the server, so these were not marked as read. Check your connection and try again.",
873
935
  "noneUnreadText": "No unread notifications",
936
+ "retryLabel": "Try again",
874
937
  "scrollTabsBackwardLabel": "Scroll tabs backward",
875
938
  "scrollTabsForwardLabel": "Scroll tabs forward",
876
939
  "serverMessage": "Something went wrong on our side, so these were not marked as read. Try again in a moment.",
@@ -889,6 +952,13 @@
889
952
  "increaseLabel": "Increase",
890
953
  "optionalLabel": "(optional)"
891
954
  },
955
+ "offlineBanner": {
956
+ "backOnlineText": "You are back online",
957
+ "checkAgainLabel": "Check again",
958
+ "loadedAtText": "Showing what loaded at {time}.",
959
+ "loadedText": "Showing what loaded.",
960
+ "offlineText": "You are offline."
961
+ },
892
962
  "onboardingChecklist": {
893
963
  "dismissLabel": "Dismiss checklist",
894
964
  "donePrefixText": "Done:",
@@ -1023,6 +1093,16 @@
1023
1093
  "valueRequiredText": "Enter a value",
1024
1094
  "yesLabel": "Yes"
1025
1095
  },
1096
+ "queueBundle": {
1097
+ "allApprovedLabel": "All approved",
1098
+ "approveLabel": "Approve {count}",
1099
+ "approveMoreLabel": "Approve {count} more",
1100
+ "checkListLabel": "Check the list",
1101
+ "runningLabel": "{done} of {total} approved",
1102
+ "statusBusyLabel": "Approving",
1103
+ "statusDoneLabel": "Approved",
1104
+ "statusFailedLabel": "Not approved"
1105
+ },
1026
1106
  "radio": {
1027
1107
  "helpLabel": "More information"
1028
1108
  },
@@ -1061,6 +1141,11 @@
1061
1141
  "addLabel": "Add another",
1062
1142
  "removeLabel": "Remove row"
1063
1143
  },
1144
+ "resultBlock": {
1145
+ "copiedLabel": "Copied",
1146
+ "copyLabel": "Copy reference",
1147
+ "referenceLabel": "Reference"
1148
+ },
1064
1149
  "richText": {
1065
1150
  "applyLabel": "Apply",
1066
1151
  "ariaLabel": "Rich text",
@@ -1086,13 +1171,27 @@
1086
1171
  "undoLabel": "Undo"
1087
1172
  },
1088
1173
  "routeError": {
1174
+ "checkAgainLabel": "Check again",
1175
+ "copyReferenceLabel": "Copy reference",
1089
1176
  "errorText": "Something went wrong on our side. Try again in a moment.",
1090
1177
  "errorTitle": "This page did not load",
1178
+ "forbiddenText": "Ask your administrator for access, or go to the home page.",
1179
+ "forbiddenTitle": "You do not have access to this page",
1091
1180
  "homeLabel": "Go to the home page",
1181
+ "maintenanceBackBy": "We expect it back by {time} IST.",
1182
+ "maintenanceText": "This page is back shortly. Check again in a few minutes.",
1183
+ "maintenanceTitle": "We are doing some maintenance",
1092
1184
  "notFoundText": "Check the address, or go to the home page.",
1093
1185
  "notFoundTitle": "We could not find that page",
1186
+ "offlineText": "Check your connection, then try again.",
1187
+ "offlineTitle": "You are offline",
1188
+ "referenceLabel": "Reference",
1094
1189
  "reloadLabel": "Reload",
1190
+ "requestAccessLabel": "Request access",
1095
1191
  "retryLabel": "Try again",
1192
+ "signInLabel": "Sign in again",
1193
+ "signedOutText": "Sign in again to carry on where you were.",
1194
+ "signedOutTitle": "You are signed out",
1096
1195
  "staleText": "This app was updated while you had it open. Reload to get the new version.",
1097
1196
  "staleTitle": "A new version is ready"
1098
1197
  },
@@ -1168,21 +1267,27 @@
1168
1267
  "suggestedLabel": "Suggested",
1169
1268
  "tagPlaceholder": "Add…"
1170
1269
  },
1270
+ "settingRow": {
1271
+ "cancel": "Cancel",
1272
+ "confirmHint": "Type {word} to turn on {action}.",
1273
+ "confirmWordLabel": "Type {word} to confirm",
1274
+ "edit": "Edit",
1275
+ "keepEditing": "Keep editing",
1276
+ "save": "Save",
1277
+ "was": "Was {value}"
1278
+ },
1171
1279
  "shell": {
1172
1280
  "accountMenuLabel": "Account menu for {name}",
1173
1281
  "collapseNavLabel": "Collapse navigation",
1174
1282
  "emptyText": "You are all caught up.",
1175
1283
  "expandNavLabel": "Expand navigation",
1176
1284
  "label": "Notifications",
1177
- "loadingNotificationsText": "Loading…",
1178
1285
  "logoutLabel": "Sign out",
1179
- "markAllReadLabel": "Mark all read",
1180
1286
  "moreLabel": "More",
1181
1287
  "navLabel": "Main navigation",
1182
1288
  "newLabel": "New",
1183
1289
  "noResultsForText": "No results for “{value}”",
1184
1290
  "noResultsText": "No results",
1185
- "noUnreadText": "No unread notifications",
1186
1291
  "notificationsLoadErrorMessage": "Could not load notifications.",
1187
1292
  "openNavLabel": "Open navigation",
1188
1293
  "placeholder": "Search",
@@ -1197,11 +1302,7 @@
1197
1302
  "seeAllResultsForText": "See all results for “{query}”",
1198
1303
  "skipLabel": "Skip to content",
1199
1304
  "tabBarLabel": "Quick navigation",
1200
- "togglePagesLabel": "Show or hide {name} pages",
1201
- "unreadBellLabel": "{label}, {count} unread",
1202
- "unreadLabel": "Unread",
1203
- "unreadNotificationsText": "{count} unread notifications",
1204
- "viewAllLabel": "View all"
1305
+ "togglePagesLabel": "Show or hide {name} pages"
1205
1306
  },
1206
1307
  "shortcutKeys": {
1207
1308
  "closeLabel": "Close",
@@ -1296,6 +1397,7 @@
1296
1397
  },
1297
1398
  "tableSelect": {
1298
1399
  "selectAllLabel": "Select all rows",
1400
+ "selectGroupLabel": "Select all in {group}",
1299
1401
  "selectRowLabel": "Select row"
1300
1402
  },
1301
1403
  "tableToolbar": {
@@ -1397,9 +1499,10 @@
1397
1499
  "selectedText": "{n} selected"
1398
1500
  },
1399
1501
  "unsavedChanges": {
1400
- "leaveLabel": "Leave",
1502
+ "keepLabel": "Keep editing",
1503
+ "leaveLabel": "Discard changes",
1401
1504
  "message": "Your changes on this page are not saved. If you leave now, they are lost.",
1402
- "title": "Leave without saving?"
1505
+ "title": "Discard changes?"
1403
1506
  },
1404
1507
  "updateBar": {
1405
1508
  "description": "A new version of this app is ready.",
@@ -1420,9 +1523,15 @@
1420
1523
  "backLabel": "Back",
1421
1524
  "closeLabel": "Close",
1422
1525
  "doneLabel": "Done",
1526
+ "errorCountText": "{count} to fix",
1423
1527
  "errorLabel": "Error",
1424
1528
  "finishLabel": "Finish",
1425
1529
  "label": "Progress",
1530
+ "leaveDiscardLabel": "Discard draft",
1531
+ "leaveKeepLabel": "Keep editing",
1532
+ "leaveMessage": "Your changes have not been saved.",
1533
+ "leaveSaveLabel": "Save draft and leave",
1534
+ "leaveTitle": "Leave this form?",
1426
1535
  "nextLabel": "Next",
1427
1536
  "pendingLabel": "To do",
1428
1537
  "skipLabel": "Skip",
package/dist/text.js CHANGED
@@ -1 +1 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"./textStore-DBplASiZ.js";import{t as o}from"./shortcutKeys.g-C0TeAfYL.js";import{t as s}from"./formatters.g-BNAu1PMe.js";import{t as c}from"./kanban.g-dtKYyIpr.js";import{t as l}from"./httpFailure.g-DjZzGxPj.js";import{t as u}from"./carousel.g-Bw_pFDzc.js";import{t as d}from"./codeBlock.g-BCF2IlK-.js";import{t as f}from"./commandPalette.g-DFWnCufa.js";import{t as p}from"./commentThread.g-C7L18Tvy.js";import{t as m}from"./mentionInput.g-DJo6d2Gm.js";import{t as h}from"./consentBanner.g-CZAb1BLJ.js";import{t as g}from"./dataTable.g-DazoWWps.js";import{t as _}from"./datePicker.g-sGQE8c3n.js";import{t as v}from"./dateRangePicker.g-Pnc37vgX.js";import{t as y}from"./drawer.g-B-zYKBfQ.js";import{t as b}from"./gantt.g-TdTxeruW.js";import{t as x}from"./imageCrop.g-BnbAeH2Q.js";import{n as S,t as C}from"./inlineEdit.g-DLDVospu.js";import{t as w}from"./leadPopup.g-BfMPz9nH.js";import{t as T}from"./lightbox.g-DDrycPou.js";import{t as E}from"./notificationCentre.g-UsAurkUz.js";import{t as D}from"./orgTree.g-CIg75quV.js";import{t as O}from"./overflow.g-BfcGEhwR.js";import{t as k}from"./phone.g-P66U-SK5.js";import{t as A}from"./relativeTime.g-BH90tjJM.js";import{t as j}from"./savedViews.g-CzzEliTR.js";import{n as M,r as N,t as P}from"./search.g-B5d1s59A.js";import{t as F}from"./showMore.g-BdQ5MUSd.js";import{t as I}from"./slider.g-BPNfxZEV.js";import{t as L}from"./sortable.g-BsTKys5-.js";import{t as R}from"./timePicker.g-IEczeE48.js";import{n as z,t as B}from"./tourAdvance.g-BJqDnqag.js";import{t as V}from"./tree.g-RId8xZSk.js";import{t as H}from"./treePicker.g-BR35ru5f.js";import{t as U}from"./wizard.g-DOZSBUc5.js";import{t as W}from"./rowDrop.g-DQpB10Ey.js";import{a as G,i as K,n as q,r as J,t as Y}from"./tableSelect.g-Bmd-ExRE.js";import{i as X,n as Z,r as Q,t as $}from"./passwordRules.g-CMYrohdd.js";import{t as ee}from"./customRule.g-Cfkl3_ZC.js";import{t as te}from"./shell.g-C2Ht5xl2.js";var ne={label:`Switch account`},re={closeLabel:`Close alert`},ie={photoLabel:`Profile photo`},ae={moreLabel:`{count} more`},oe={dismissLabel:`Dismiss`},se={moreLabel:`Show hidden levels`},ce={allDayDateText:`all day, {start}`,allDayLabel:`All day`,calendarViewLabel:`Calendar view`,dayLabel:`Day`,emptyText:`Nothing scheduled in this period.`,errorText:`The events couldn't load. Try again in a moment.`,label:`Calendar`,listLabel:`List`,loadFailedText:`This calendar couldn't load. Try again in a moment.`,monthLabel:`Month`,moveThroughCalendarLabel:`Move through the calendar`,nextLabel:`Next`,previousLabel:`Previous`,rangeTitleText:`{start} to {last}`,todayLabel:`Today`,tryAgainLabel:`Try again`,weekLabel:`Week`},le={closeLabel:`Close`},ue={aboveLabel:`Above`,areaChartLabel:`Area chart`,arrowKeysText:`{title}: use the arrow keys to read the values`,bandLabel:`Band`,barChartLabel:`Bar chart`,belowLabel:`Below`,bubbleChartLabel:`Bubble chart`,calendarHeatmapLabel:`Calendar heatmap`,calendarRangeText:`, from {first} to {last}`,calendarSummaryTextOne:`Calendar heatmap of {label}, {n} day.`,calendarSummaryTextOther:`Calendar heatmap of {label}, {n} days{range}.`,categoryLabel:`Category`,centerLabel:`Total`,changeLabel:`Change`,chartLabel:`chart`,columnChartLabel:`Column chart`,columnFallbackLabel:`column`,columnXLabel:`X`,constantSpanText:`{label} is {lo}.`,currencyFormatText:`This chart's currency format needs a currency code, such as "INR", in its currency field.`,dataSuffixLabel:`data`,dateLabel:`Date`,donutChartLabel:`Donut chart`,donutLargestText:`{top} is the largest, at {share}.`,donutSummaryTextOne:`Donut chart of {label} in {rows} part, {total} in all.`,donutSummaryTextOther:`Donut chart of {label} in {rows} parts, {total} in all.`,emptyText:`No data to show for this chart.`,errorText:`This chart couldn't load. Try again in a moment.`,everySeriesHiddenText:`Every series is hidden.`,firstStageLabel:`first stage`,fromLabel:`From`,funnelChartLabel:`Funnel chart`,funnelPreviousStepText:`{share} of previous step`,funnelStartText:`{first} is {firstValue} and {last} is {lastValue}, {share} of the start.`,funnelSummaryText:`Funnel chart of {label} in {n} stages.`,gaugeBandText:`, in the {band} band`,gaugeLabel:`Gauge`,gaugeSummaryText:`{type}: {label} is {value} on a scale from {min} to {max}{band}.`,groupLabel:`Group`,groupsTextOne:` in {count} group: {groups}`,groupsTextOther:` in {count} groups: {groups}`,heatmapLabel:`Heatmap`,heatmapSummaryText:`Heatmap of {label} by {group} and {x}, {n} cells.`,highestAtLowestAtText:`Highest is {highValue} at {highGroup}, {high}; lowest is {lowValue} at {lowGroup}, {low}.`,highestLowestText:`Highest is {maxValue} on {max}; lowest is {minValue} on {min}.`,itemLabel:`Item`,largestFallText:`The largest fall is {xText}, {signed}.`,largestFlowText:`The largest flow is {xText} to {toText}, {fmtAt}.`,largestRiseText:`The largest rise is {xText}, {signed}.`,latestText:`Latest {latest}`,legendLabel:`Legend`,lessLabel:`Less`,lineChartLabel:`Line chart`,loadingText:`Loading chart`,measureLabel:`Measure`,moreLabel:`More`,ofFirstStepText:`Of {first}`,ofPreviousStepLabel:`Of previous step`,openingShareText:`{share} of opening`,opensAtClosesAtText:`It opens at {opening} and closes at {closing}.`,otherLabel:`Other`,pointsSummaryTextOne:`{n} point, {first}.`,pointsSummaryTextOther:`{n} points, from {first} to {last}.`,rangeSpanText:`{label} runs from {lo} to {hi}.`,rowFallbackLabel:`row`,rowLabel:`Row`,runningTotalLabel:`Running total`,sankeyLabel:`Sankey diagram`,sankeySummaryText:`Sankey diagram of {label}: {n} flows between {nodes} places.`,scaleLabel:`Scale`,scaleRangeText:`{min} to {max}`,scatterPlotLabel:`Scatter plot`,scatterSummaryText:`{type} of {label} against {xLabel}, {count} points{groups}.`,shareLabel:`Share`,shareOfAllLabel:`Share of all`,shareOfGroupLabel:`Share of group`,shareOfParentText:`Share of {parent}`,shareOfStepText:`{share} of {first}`,sharedAxisText:`, sharing one x axis`,showingFirstRowsDownloadText:`Showing the first {rows} of {total} rows. Download the CSV for all of them.`,smallMultiplesLabel:`Small multiples`,stackedPercentText:`, stacked to 100%`,stackedText:`, stacked`,stageLabel:`Stage`,stepLabel:`Step`,summaryText:`{type} of {series}{stacked}{sharedAxis}.`,targetGapText:`{direction} {label} by {gap}`,targetLabel:`target`,toLabel:`To`,tooManyGroupsText:`This chart has more groups than it can show clearly.`,tooManySeriesText:`This chart has more series than it can show clearly.`,totalText:`Total {total}`,treemapEmptyText:`Treemap of {label}: no items.`,treemapLabel:`Treemap`,treemapLargestGroupText:`{name} is the largest group, at {share}.`,treemapSummaryText:`Treemap of {label}: {n} items in {totals} groups, {total} in all.`,trendLabel:`Trend`,untitledLabel:`Chart`,waterfallLabel:`Waterfall chart`,waterfallSummaryText:`Waterfall chart of {label}.`},de={chartViewLabel:`Chart`,downloadCsvLabel:`Download CSV`,downloadPngLabel:`Download PNG`,legendLabel:`Show legend`,legendTitle:`Show or hide the legend`,moreActionsForLabel:`More actions for {title}`,moreActionsLabel:`More actions`,retryLabel:`Try again`,tableViewLabel:`Table`,viewLabel:`View`},fe={helpLabel:`More information`},pe={helpLabel:`More information`},me={removeLabel:`Remove`,removeText:`Remove {content}`},he={moreLabel:`More`},ge={helpLabel:`More information`},_e={helpLabel:`More information`},ve={colourLabel:`Colour`,colourPickerLabel:`{label}, colour picker`,helpLabel:`More information`,optionalLabel:`(optional)`},ye={label:`Columns`},be={noLabel:`No`,partialLabel:`Partial`,warningLabel:`Warning`,yesLabel:`Yes`},xe={title:`Are you sure?`},Se={ariaLabel:`Context menu`,searchPlaceholder:`Search`},Ce={copiedLabel:`Copied`,label:`Copy`},we={label:`Menu`,noMatch:`No matches.`,noMatchText:`No matches.`,searchPlaceholder:`Search`},Te={anyTypeText:`Any file type`,browseLabel:`Click to upload`,dropLabel:`or drag & drop`,maxSizeText:`up to {size} MB`,removeAttachmentLabel:`Remove attachment`},Ee={daysLeftLabel:`{days} days left`,dueInLabel:`Due in {days} days`,dueTodayLabel:`Due today`,dueTomorrowLabel:`Due tomorrow`,notSetLabel:`Not set`,oneDayLeftLabel:`1 day left`,overdueSinceLabel:`Overdue since {date}`},De={addLabel:`Add line`,commitNextLabel:`Save and go to the next line`,commitStayLabel:`Save`,dirtyLabel:`Changed`,discardLabel:`Discard changes`,emptyLabel:`No lines yet`,failedLabel:`Not saved`,label:`Entry lines`,moveLabel:`Move between lines`,removeLineLabel:`Remove line`,savedLabel:`Saved`,savingLabel:`Saving`,statusLabel:`Status`},Oe={reloadPageLabel:`Reload the page`},ke={titleOne:`Fix {count} field to continue`,titleOther:`Fix {count} fields to continue`},Ae={attachmentLabel:`attachment`,browseLabel:`Browse`,dropFileTitleOne:`Add a file`,dropFileTitleOther:`Add files`,dropImageTitleOne:`Add an image`,dropImageTitleOther:`Add images`,dropTitleOne:`Add {article} {noun}`,dropTitleOther:`Add {noun}s`,label:`Attachment`,maxSizeText:`Up to {size} MB`,optionalLabel:`(optional)`,removeFileLabel:`Remove {name}`,removeLabel:`Remove attachment`,typesAndMaxSizeText:`{types}, up to {size} MB`,uploadingLabel:`Uploading {name}`},je={browseLabel:`Click to upload`,buttonLabel:`Add file`,changeFileLabel:`Change file`,changeImageLabel:`Change image`,changeNamedText:`Change {label}`,dropLabel:`or drag & drop`,fileLabel:`file`,helpLabel:`More information`,imageLabel:`image`,loadingLabel:`Loading`,maxFilesText:`Up to {count} files.`,maxSizeText:`up to {size} MB`,optionalLabel:`(optional)`,previewAltText:`{label} preview`,removeFileLabel:`Remove {name}`,removeNamedText:`Remove {label}`,selectedPreviewText:`Selected {noun} preview`},Me={audioLabel:`Audio`,captionsLabel:`Captions`,closeSearchLabel:`Close search`,documentLabel:`Document`,documentPagesLabel:`Document pages`,documentPrintingTitle:`Document for printing`,downloadLabel:`Download`,exitFullScreenLabel:`Exit full screen`,fitLabel:`Fit`,fitPageLabel:`Fit page`,fitWidthLabel:`Fit width`,fullScreenLabel:`Full screen`,goToPageText:`Go to page {targetPage}`,hideCaptionsLabel:`Hide captions`,hideThumbnailsLabel:`Hide thumbnails`,imageLabel:`Image`,imagePrintingTitle:`Image for printing`,loadingText:`Loading...`,muteLabel:`Mute`,nextMatchLabel:`Next match`,nextPageLabel:`Next page`,noFileText:`No file to show.`,noMatchesText:`No matches`,openFailedText:`Couldn't open this file.`,pageNumberLabel:`Page number`,pauseLabel:`Pause`,playLabel:`Play`,playbackSpeedLabel:`Playback speed`,playbackSpeedText:`Playback speed, {label}`,preparingPrintLabel:`Preparing to print`,previousMatchLabel:`Previous match`,previousPageLabel:`Previous page`,printLabel:`Print`,rotateLeftLabel:`Rotate left`,rotateRightLabel:`Rotate right`,searchDocumentLabel:`Search the document`,searchPositionText:`{position} of {total}{plus}`,searchUnavailableText:`Search isn't available for this document.`,searchingText:`Searching...`,seekLabel:`Seek`,seekValueText:`{now} of {total}`,showCaptionsLabel:`Show captions`,showThumbnailsLabel:`Show thumbnails`,twoPageViewLabel:`Two-page view`,unmuteLabel:`Unmute`,unsupportedFileText:`This file can't be shown here.`,videoLabel:`Video`,volumeLabel:`Volume`,zoomInLabel:`Zoom in`,zoomLabel:`Zoom`,zoomOutLabel:`Zoom out`,zoomText:`Zoom, {percent}%`},Ne={allLabel:`All`,anyLabel:`Any`,appliesAtOnceText:`Changes apply at once.`,applyLabel:`Apply`,clearAllLabel:`Clear all`,dateFromText:`From {date}`,dateRangeText:`{from} to {to}`,dateUntilText:`Until {date}`,filtersActiveLabel:`Filters, {count} active`,filtersLabel:`Filters`,keepOpenLabel:`Keep open`,removeChipLabel:`Remove {facet} filter {value}`},Pe={ariaLabel:`Quick navigation`},Fe={divideLabel:`divided by`,equalLabel:`equals`,label:`Calculation`,minusLabel:`minus`,plusLabel:`plus`,timesLabel:`times`},Ie={loadingLabel:`Loading`},Le={description:`You will be signed out in {time} because there has been no activity.`,signOutLabel:`Sign out`,stayLabel:`Stay signed in`,title:`Are you still there?`},Re={label:`More information`},ze={clearLabel:`Clear`,helpLabel:`More information`,hidePasswordLabel:`Hide password`,optionalLabel:`(optional)`,requirementMetLabel:`: met`,requirementNotMetLabel:`: not met`,requirementsTitle:`Password requirements`,showPasswordLabel:`Show password`},Be={ctrlLabel:`Ctrl`,enterLabel:`Enter`,escLabel:`Esc`},Ve={periodLabel:`vs last period`},He={helpLabel:`More information`},Ue={failedText:`Could not load more`,finishedText:`You are all caught up.`,loadMoreLabel:`Load more`,loadingLabel:`Loading more`,retryLabel:`Try again`},We={backLabel:`Back`,closeLabel:`Close`},Ge={backLabel:`Back`},Ke={cancelLabel:`Cancel`,submitLabel:`Save`},qe={ariaLabel:`Main`},Je={decreaseLabel:`Decrease`,helpLabel:`More information`,increaseLabel:`Increase`,optionalLabel:`(optional)`},Ye={dismissLabel:`Dismiss checklist`,donePrefixText:`Done:`,headCountSkippedText:`{done} of {total} done, {skipped} skipped`,headCountText:`{done} of {total} done`,restoreLabel:`Show setup checklist`,skippedPrefixText:`Skipped:`,title:`Get started`},Xe={helpLabel:`More information`,optionalLabel:`(optional)`},Ze={moreLabel:`More`,selectedText:`{count} selected`},Qe={applyLabel:`Apply`,dayCountOne:`1 day`,dayCountOther:`{count} days`,financialYearText:`FY {startYear}-{endYear}`,label:`Period`,nextMonthLabel:`Next month`,previousMonthLabel:`Previous month`,quarterPrefixText:`Q`,shortDaySuffixText:`d`,startEndPlaceholder:`Start to End`},$e={youLabel:`You`},et={helpLabel:`More information`,label:`Phone number`,optionalLabel:`(optional)`},tt={badge:`Most popular`},nt={title:`QR code`},rt={addConditionLabel:`Add condition`,addGroupLabel:`Add group`,andLabel:`and`,applyLabel:`Apply filter`,cancelLabel:`Cancel`,clearAllLabel:`Clear all`,closeLabel:`Close filters`,conditionCountTextOne:`{count} condition`,conditionCountTextOther:`{count} conditions`,datePlaceholder:`DD-MMM-YYYY`,emptySummaryText:`No conditions. The whole list shows.`,emptyText:`Add a condition to narrow the list.`,emptyTitle:`No conditions yet`,emptyValueText:`…`,fieldLabel:`Field`,filtersCountLabel:`Filters · {count}`,filtersLabel:`Filters`,groupCountTextOne:`in {count} group`,groupCountTextOther:`in {count} groups`,incompleteTextOne:`{count} condition is incomplete`,incompleteTextOther:`{count} conditions are incomplete`,matchAllLabel:`All`,matchAnyLabel:`Any`,matchLabel:`Match`,matchSuffixText:`of these`,maxPlaceholder:`Max`,minPlaceholder:`Min`,multiPlaceholder:`Select values`,noLabel:`No`,operatorBetween:`is between`,operatorContains:`contains`,operatorGt:`is over`,operatorGtDate:`is after`,operatorInLast:`in the last`,operatorIs:`is`,operatorIsAnyOf:`is any of`,operatorIsEmpty:`is empty`,operatorIsNot:`is not`,operatorLabel:`Operator`,operatorLt:`is under`,operatorLtDate:`is before`,orLabel:`or`,panelTitle:`Filters`,rangeJoinText:`and`,removeClauseLabel:`Remove filter: {clause}`,removeConditionLabel:`Remove condition`,removeGroupLabel:`Remove group`,singlePlaceholder:`Select a value`,textPlaceholder:`Type to match`,unitDays:`days`,unitLabel:`Unit`,unitMonths:`months`,unitWeeks:`weeks`,valueLabel:`Value`,valueRequiredText:`Enter a value`,yesLabel:`Yes`},it={helpLabel:`More information`},at={helpLabel:`More information`,optionalLabel:`(optional)`},ot={helpLabel:`More information`,ratingLabel:`Rating`,starLabel:`{count} star`,starsLabel:`{count} stars`,valueText:`{value} out of {max}`},st={nextLabel:`Next`,positionText:`{position} of {total}`,prevLabel:`Previous`},ct={addLabel:`Add another`,removeLabel:`Remove row`},lt={applyLabel:`Apply`,ariaLabel:`Rich text`,boldLabel:`Bold`,bulletedListLabel:`Bulleted list`,cancelLabel:`Cancel`,closeLinkBoxLabel:`Close link box`,codeBlockLabel:`Code block`,heading2Label:`Heading 2`,heading3Label:`Heading 3`,helpLabel:`More information`,inlineCodeLabel:`Inline code`,italicLabel:`Italic`,linkAddressLabel:`Link address`,linkErrorMessage:`Use a web address, an email address or a phone number.`,linkLabel:`Link`,loadFailedText:`The editor couldn't load. Reload the page and try again.`,numberedListLabel:`Numbered list`,quoteLabel:`Quote`,redoLabel:`Redo`,removeLinkLabel:`Remove link`,textFormattingLabel:`Text formatting`,undoLabel:`Undo`},ut={errorText:`Something went wrong on our side. Try again in a moment.`,errorTitle:`This page did not load`,homeLabel:`Go to the home page`,notFoundText:`Check the address, or go to the home page.`,notFoundTitle:`We could not find that page`,reloadLabel:`Reload`,retryLabel:`Try again`,staleText:`This app was updated while you had it open. Reload to get the new version.`,staleTitle:`A new version is ready`},dt={menuLabel:`More actions`},ft={scoreLabel:`Score`},pt={companyLabel:`Company`,emailLabel:`Email`,invalidEmailText:`Enter an email address such as name@example.com.`,messageLabel:`Message`,nameLabel:`Name`,phoneLabel:`Phone number`,requiredText:`This field is required.`,submitErrorText:`We could not send your message. Please try again.`,submitLabel:`Send`},mt={helpLabel:`More information`},ht={loadingLabel:`Loading`},gt={reorderLabel:`Reorder {name}`},_t={namedTrendLabel:`{label} trend`,oneValueText:`{name} has one value, {value}.`,rangeText:`{name} from {from} to {to} across {count} points.`,trendLabel:`Trend`},vt={label:`Loading`},yt={label:`Loading`},bt={menuLabel:`More actions`},xt={empty:`Nothing here yet.`,errorText:`This item did not load. Try again.`,forbiddenText:`You do not have access to this item.`,itemsLabel:`Items`,loadingLabel:`Loading`,moveLabel:`Move`,networkText:`The connection dropped before this item loaded. Check it and try again.`,nextItemLabel:`Next item`,openLabel:`Open`,previousItemLabel:`Previous item`,readingPaneLabel:`Reading pane`,retryLabel:`Retry`,selectAllLabel:`Select all items`,selectItemLabel:`Select {title}`,selectedLabel:`{count} selected`,untitledItemLabel:`item`},St={label:`Progress`,stepLabel:`Step {number}`},Ct={helpLabel:`More information`},wt={ariaLabel:`Pagination`,nextLabel:`Next page`,pageLabel:`Page {page}`,pageSizeLabel:`{count} per page`,previousLabel:`Previous page`,rangeText:`Page {page} of {pages}`,rowsPerPageLabel:`Rows per page`,summaryText:`Showing {first} to {last} of {total}`},Tt={emptyTitle:`No records found`},Et={allSelectedLabel:`All {count} selected`,clearLabel:`Clear`,clearSelectionLabel:`Clear selection`,selectAllMatchingLabel:`Select all {count} matching`,selectedLabel:`{count} selected`},Dt={moreLabel:`More`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`},Ot={clearLabel:`Clear`,helpLabel:`More information`,optionalLabel:`(optional)`},kt={autoLabel:`System`,autoModeLabel:`follows your device`,darkLabel:`Dark`,darkModeLabel:`dark`,label:`Theme`,lightLabel:`Light`,lightModeLabel:`light`},At={stepLabel:`Step {number}`},jt={addAllLabel:`Add all shown`,addLabel:`Add {name}`,availableTitle:`Available`,chosenTitle:`Chosen`,dragHintText:`Press Space to pick up a row, then Left or Right to move it across, or Up and Down to reorder the chosen rows.`,emptyAvailableText:`Remove an item from Chosen to see it here.`,emptyAvailableTitle:`Everything is chosen`,emptyChosenText:`Use Add on an item, or press Enter on it.`,emptyChosenTitle:`Nothing chosen yet`,noMatchText:`No matches for "{query}"`,orderHintText:`The order of Chosen is kept. Drag the grip to reorder.`,removeAllLabel:`Remove all`,removeLabel:`Remove {name}`,searchLabel:`Search {title}`,searchPlaceholder:`Search`},Mt={description:`A new version of this app is ready.`,dismissLabel:`Dismiss`,reloadLabel:`Reload`},Nt={emptyText:`Not set`},Pt={emptyText:`Nothing new yet`,label:`What's new`,linkLabel:`Learn more`,unreadLabel:`unread`},Ft={ariaLabel:`Workspace {currentName}`,createLabel:`Create workspace`,noMatchText:`No workspaces match.`,searchPlaceholder:`Search workspaces`,triggerLabel:`Workspace {currentName}`},It=e=>t(e);export{ne as ACCOUNT_SWITCHER_TEXT,re as ALERT_TEXT,S as ASYNC_BLOCK_TEXT,ae as AVATAR_GROUP_TEXT,ie as AVATAR_TEXT,oe as BANNER_TEXT,se as BREADCRUMBS_TEXT,ce as CALENDAR_TEXT,le as CARD_TEXT,u as CAROUSEL_TEXT,de as CHART_CARD_TEXT,ue as CHART_TEXT,pe as CHECKBOX_TEXT,fe as CHECK_TEXT,he as CHIP_GROUP_TEXT,me as CHIP_TEXT,ge as CHOICE_CARD_TEXT,_e as CHOICE_CHIP_TEXT,d as CODE_BLOCK_TEXT,ve as COLOUR_FIELD_TEXT,ye as COLUMN_MENU_TEXT,f as COMMAND_PALETTE_TEXT,p as COMMENT_THREAD_TEXT,be as COMPARE_TABLE_TEXT,K as CONFIRM_DIALOG_TEXT,xe as CONFIRM_PROVIDER_TEXT,h as CONSENT_BANNER_TEXT,Se as CONTEXT_MENU_TEXT,Ce as COPY_BUTTON_TEXT,ee as CUSTOM_RULE_TEXT,g as DATA_TABLE_TEXT,_ as DATE_PICKER_TEXT,v as DATE_RANGE_PICKER_TEXT,y as DRAWER_TEXT,we as DROPDOWN_TEXT,Te as DROP_ZONE_TEXT,Ee as DUE_DATE_TEXT,De as ENTRY_GRID_TEXT,Oe as ERROR_BOUNDARY_TEXT,ke as ERROR_SUMMARY_TEXT,M as FIELD_TEXT,Ae as FILE_ATTACHMENT_TEXT,je as FILE_PICKER_TEXT,Q as FILE_VALIDATION_TEXT,Me as FILE_VIEWER_TEXT,Ne as FILTER_BAR_TEXT,Pe as FLOATING_DOCK_TEXT,s as FORMATTERS_TEXT,Fe as FORMULA_STEPS_TEXT,b as GANTT_TEXT,Ie as HOVER_CARD_TEXT,l as HTTP_FAILURE_TEXT,Le as IDLE_TIMEOUT_DIALOG_TEXT,x as IMAGE_CROP_TEXT,X as IMAGE_PICKER_TEXT,Re as INFO_TIP_TEXT,C as INLINE_EDIT_TEXT,Z as INPUT_MASK_TEXT,ze as INPUT_TEXT,c as KANBAN_TEXT,Be as KBD_TEXT,Ve as KPI_TILE_TEXT,He as LABEL_HELP_TEXT,w as LEAD_POPUP_TEXT,T as LIGHTBOX_TEXT,Ue as LOAD_MORE_TEXT,m as MENTION_INPUT_TEXT,We as MODAL_CARD_RENDERER_TEXT,Ge as MODAL_CONTENT_TEXT,Ke as MODAL_FORM_TEXT,J as MODAL_TEXT,qe as NAVIGATION_MENU_TEXT,E as NOTIFICATION_CENTRE_TEXT,Je as NUMBER_INPUT_TEXT,Ye as ONBOARDING_CHECKLIST_TEXT,D as ORG_TREE_TEXT,Xe as OTP_INPUT_TEXT,O as OVERFLOW_TEXT,Ze as PAGE_HEADER_TEXT,$ as PASSWORD_RULES_TEXT,Qe as PERIOD_PICKER_TEXT,$e as PERSON_TEXT,et as PHONE_NUMBER_INPUT_TEXT,k as PHONE_TEXT,tt as PRICING_CARD_TEXT,nt as QR_CODE_TEXT,rt as QUERY_BUILDER_TEXT,at as RADIO_GROUP_TEXT,it as RADIO_TEXT,ot as RATING_TEXT,st as RECORD_PAGER_TEXT,A as RELATIVE_TIME_TEXT,ct as REPEATER_TEXT,lt as RICH_TEXT_TEXT,ut as ROUTE_ERROR_TEXT,dt as ROW_ACTIONS_TEXT,W as ROW_DROP_TEXT,j as SAVED_VIEWS_TEXT,ft as SCORE_SCALE_TEXT,P as SEARCH_TEXT,pt as SECTION_LEAD_CAPTURE_TEXT,mt as SEGMENTED_TEXT,N as SELECT_TEXT,te as SHELL_TEXT,o as SHORTCUT_KEYS_TEXT,F as SHOW_MORE_TEXT,ht as SKELETON_SHAPES_TEXT,I as SLIDER_TEXT,gt as SORTABLE_LIST_TEXT,L as SORTABLE_TEXT,_t as SPARKLINE_TEXT,vt as SPINNER_TEXT,yt as SPLASH_TEXT,bt as SPLIT_BUTTON_TEXT,xt as SPLIT_VIEW_TEXT,St as STEPPER_TEXT,Ct as SWITCH_TEXT,wt as TABLE_PAGINATION_TEXT,Tt as TABLE_ROWS_TEXT,Y as TABLE_SELECT_TEXT,Et as TABLE_TOOLBAR_TEXT,Dt as TABS_TEXT,Ot as TEXTAREA_TEXT,kt as THEME_TOGGLE_TEXT,At as TIMELINE_TEXT,R as TIME_PICKER_TEXT,q as TOAST_TEXT,B as TOUR_ADVANCE_TEXT,z as TOUR_TEXT,jt as TRANSFER_LIST_TEXT,H as TREE_PICKER_TEXT,V as TREE_TEXT,G as UNSAVED_CHANGES_TEXT,Mt as UPDATE_BAR_TEXT,Nt as VALUE_TEXT,Pt as WHATS_NEW_TEXT,U as WIZARD_TEXT,Ft as WORKSPACE_SWITCHER_TEXT,a as fillText,n as pluralText,i as readText,It as setWuiText,e as subscribeText,r as textLocale};
1
+ import{a as e,i as t,n,o as r,r as i,t as a}from"./textStore-DBplASiZ.js";import{t as o}from"./shortcutKeys.g-C0TeAfYL.js";import{t as s}from"./formatters.g-BNAu1PMe.js";import{t as c}from"./kanban.g-dtKYyIpr.js";import{t as l}from"./httpFailure.g-DjZzGxPj.js";import{t as u}from"./carousel.g-Bw_pFDzc.js";import{t as d}from"./codeBlock.g-BCF2IlK-.js";import{t as f}from"./commandPalette.g-DP-Zl8SU.js";import{t as p}from"./commentThread.g-C7L18Tvy.js";import{t as m}from"./mentionInput.g-DJo6d2Gm.js";import{t as h}from"./consentBanner.g-CZAb1BLJ.js";import{t as g}from"./dashboardGrid.g-vkCZGw6G.js";import{t as _}from"./dataTable.g-1PsmN1Nj.js";import{t as v}from"./tableSelect.g-DwI5_9Nw.js";import{t as y}from"./datePicker.g-sGQE8c3n.js";import{t as b}from"./dateRangePicker.g-Pnc37vgX.js";import{t as x}from"./drawer.g-B-zYKBfQ.js";import{t as S}from"./gantt.g-CWvMXwBR.js";import{t as C}from"./imageCrop.g-BnbAeH2Q.js";import{n as w,t as T}from"./inlineEdit.g-DKIhYoPF.js";import{t as E}from"./leadPopup.g-BfMPz9nH.js";import{t as D}from"./lightbox.g-DDrycPou.js";import{t as O}from"./notificationCentre.g-Cees-vKg.js";import{t as k}from"./orgTree.g-CIg75quV.js";import{t as A}from"./overflow.g-BfcGEhwR.js";import{t as j}from"./phone.g-P66U-SK5.js";import{t as M}from"./relativeTime.g-BH90tjJM.js";import{t as N}from"./savedViews.g-CzzEliTR.js";import{n as P,r as F,t as I}from"./search.g-B5d1s59A.js";import{t as L}from"./showMore.g-BdQ5MUSd.js";import{t as R}from"./slider.g-BPNfxZEV.js";import{t as z}from"./sortable.g-BsTKys5-.js";import{t as B}from"./timePicker.g-IEczeE48.js";import{n as V,t as H}from"./tourAdvance.g-BJqDnqag.js";import{t as U}from"./tree.g-RId8xZSk.js";import{t as W}from"./treePicker.g-BR35ru5f.js";import{t as G}from"./wizard.g-UKG1dMs_.js";import{t as K}from"./rowDrop.g-DQpB10Ey.js";import{i as q,n as J,r as Y,t as X}from"./toast.g-CJ8c0BNZ.js";import{i as Z,n as Q,r as $,t as ee}from"./passwordRules.g-CMYrohdd.js";import{t as te}from"./customRule.g-Cfkl3_ZC.js";import{t as ne}from"./shell.g-BhC11Oe3.js";var re={label:`Switch account`},ie={addLabel:`Add`,empty:`Nothing to show`,label:`Agenda`,showMore:`Show {count} more`},ae={closeLabel:`Close alert`},oe={photoLabel:`Profile photo`},se={moreLabel:`{count} more`},ce={dismissLabel:`Dismiss`},le={moreLabel:`Show hidden levels`},ue={agendaLabel:`Agenda`,allDayDateText:`all day, {start}`,allDayLabel:`All day`,calendarViewLabel:`Calendar view`,dayLabel:`Day`,emptyText:`Nothing scheduled in this period.`,errorText:`The events couldn't load. Try again in a moment.`,label:`Calendar`,listLabel:`List`,loadFailedText:`This calendar couldn't load. Try again in a moment.`,monthLabel:`Month`,moveThroughCalendarLabel:`Move through the calendar`,nextLabel:`Next`,previousLabel:`Previous`,rangeTitleText:`{start} to {last}`,timelineLabel:`Timeline`,todayLabel:`Today`,tryAgainLabel:`Try again`,weekLabel:`Week`},de={closeLabel:`Close`},fe={now:`Now`,was:`Was`},pe={aboveLabel:`Above`,areaChartLabel:`Area chart`,arrowKeysText:`{title}: use the arrow keys to read the values`,bandLabel:`Band`,barChartLabel:`Bar chart`,belowLabel:`Below`,bubbleChartLabel:`Bubble chart`,calendarHeatmapLabel:`Calendar heatmap`,calendarRangeText:`, from {first} to {last}`,calendarSummaryTextOne:`Calendar heatmap of {label}, {n} day.`,calendarSummaryTextOther:`Calendar heatmap of {label}, {n} days{range}.`,categoryLabel:`Category`,centerLabel:`Total`,changeLabel:`Change`,chartLabel:`chart`,columnChartLabel:`Column chart`,columnFallbackLabel:`column`,columnXLabel:`X`,constantSpanText:`{label} is {lo}.`,currencyFormatText:`This chart's currency format needs a currency code, such as "INR", in its currency field.`,dataSuffixLabel:`data`,dateLabel:`Date`,donutChartLabel:`Donut chart`,donutLargestText:`{top} is the largest, at {share}.`,donutSummaryTextOne:`Donut chart of {label} in {rows} part, {total} in all.`,donutSummaryTextOther:`Donut chart of {label} in {rows} parts, {total} in all.`,emptyText:`No data to show for this chart.`,errorText:`This chart couldn't load. Try again in a moment.`,everySeriesHiddenText:`Every series is hidden.`,firstStageLabel:`first stage`,fromLabel:`From`,funnelChartLabel:`Funnel chart`,funnelPreviousStepText:`{share} of previous step`,funnelStartText:`{first} is {firstValue} and {last} is {lastValue}, {share} of the start.`,funnelSummaryText:`Funnel chart of {label} in {n} stages.`,gaugeBandText:`, in the {band} band`,gaugeLabel:`Gauge`,gaugeSummaryText:`{type}: {label} is {value} on a scale from {min} to {max}{band}.`,groupLabel:`Group`,groupsTextOne:` in {count} group: {groups}`,groupsTextOther:` in {count} groups: {groups}`,heatmapLabel:`Heatmap`,heatmapSummaryText:`Heatmap of {label} by {group} and {x}, {n} cells.`,highestAtLowestAtText:`Highest is {highValue} at {highGroup}, {high}; lowest is {lowValue} at {lowGroup}, {low}.`,highestLowestText:`Highest is {maxValue} on {max}; lowest is {minValue} on {min}.`,itemLabel:`Item`,largestFallText:`The largest fall is {xText}, {signed}.`,largestFlowText:`The largest flow is {xText} to {toText}, {fmtAt}.`,largestRiseText:`The largest rise is {xText}, {signed}.`,latestText:`Latest {latest}`,legendLabel:`Legend`,lessLabel:`Less`,lineChartLabel:`Line chart`,loadingText:`Loading chart`,measureLabel:`Measure`,moreLabel:`More`,ofFirstStepText:`Of {first}`,ofPreviousStepLabel:`Of previous step`,openingShareText:`{share} of opening`,opensAtClosesAtText:`It opens at {opening} and closes at {closing}.`,otherLabel:`Other`,pointsSummaryTextOne:`{n} point, {first}.`,pointsSummaryTextOther:`{n} points, from {first} to {last}.`,rangeSpanText:`{label} runs from {lo} to {hi}.`,rowFallbackLabel:`row`,rowLabel:`Row`,runningTotalLabel:`Running total`,sankeyLabel:`Sankey diagram`,sankeySummaryText:`Sankey diagram of {label}: {n} flows between {nodes} places.`,scaleLabel:`Scale`,scaleRangeText:`{min} to {max}`,scatterPlotLabel:`Scatter plot`,scatterSummaryText:`{type} of {label} against {xLabel}, {count} points{groups}.`,shareLabel:`Share`,shareOfAllLabel:`Share of all`,shareOfGroupLabel:`Share of group`,shareOfParentText:`Share of {parent}`,shareOfStepText:`{share} of {first}`,sharedAxisText:`, sharing one x axis`,showingFirstRowsDownloadText:`Showing the first {rows} of {total} rows. Download the CSV for all of them.`,smallMultiplesLabel:`Small multiples`,soFarText:`so far`,stackedPercentText:`, stacked to 100%`,stackedText:`, stacked`,stageLabel:`Stage`,stepLabel:`Step`,summaryText:`{type} of {series}{stacked}{sharedAxis}.`,targetGapText:`{direction} {label} by {gap}`,targetLabel:`target`,toLabel:`To`,tooManyGroupsText:`This chart has more groups than it can show clearly.`,tooManySeriesText:`This chart has more series than it can show clearly.`,totalText:`Total {total}`,treemapEmptyText:`Treemap of {label}: no items.`,treemapLabel:`Treemap`,treemapLargestGroupText:`{name} is the largest group, at {share}.`,treemapSummaryText:`Treemap of {label}: {n} items in {totals} groups, {total} in all.`,trendLabel:`Trend`,untitledLabel:`Chart`,waterfallLabel:`Waterfall chart`,waterfallSummaryText:`Waterfall chart of {label}.`},me={chartViewLabel:`Chart`,downloadCsvLabel:`Download CSV`,downloadPngLabel:`Download PNG`,legendLabel:`Show legend`,legendTitle:`Show or hide the legend`,moreActionsForLabel:`More actions for {title}`,moreActionsLabel:`More actions`,retryLabel:`Try again`,tableViewLabel:`Table`,viewLabel:`View`},he={helpLabel:`More information`},ge={helpLabel:`More information`},_e={removeLabel:`Remove`,removeText:`Remove {content}`},ve={moreLabel:`More`},ye={helpLabel:`More information`},be={helpLabel:`More information`},xe={colourLabel:`Colour`,colourPickerLabel:`{label}, colour picker`,helpLabel:`More information`,optionalLabel:`(optional)`},Se={label:`Columns`},Ce={noLabel:`No`,partialLabel:`Partial`,warningLabel:`Warning`,yesLabel:`Yes`},we={title:`Are you sure?`},Te={ariaLabel:`Context menu`,searchPlaceholder:`Search`},Ee={copiedLabel:`Copied`,label:`Copy`},De={amLabel:`am`,pmLabel:`pm`,updatedLabel:`Updated {time} IST`},Oe={label:`Menu`,noMatch:`No matches.`,noMatchText:`No matches.`,searchPlaceholder:`Search`},ke={anyTypeText:`Any file type`,browseLabel:`Click to upload`,dropLabel:`or drag & drop`,maxSizeText:`up to {size} MB`,removeAttachmentLabel:`Remove attachment`},Ae={daysLeftLabel:`{days} days left`,dueInLabel:`Due in {days} days`,dueTodayLabel:`Due today`,dueTomorrowLabel:`Due tomorrow`,notSetLabel:`Not set`,oneDayLeftLabel:`1 day left`,overdueSinceLabel:`Overdue since {date}`},je={addLabel:`Add line`,cancelLabel:`Cancel`,commitNextLabel:`Save and go to the next line`,commitStayLabel:`Save`,dirtyLabel:`Changed`,discardLabel:`Discard changes`,emptyLabel:`No lines yet`,failedLabel:`Not saved`,label:`Entry lines`,moveLabel:`Move between lines`,removeLineLabel:`Remove line`,rowActionsLabel:`Actions`,savedLabel:`Saved`,savingLabel:`Saving`,statusLabel:`Status`},Me={reloadPageLabel:`Reload the page`},Ne={titleOne:`Fix {count} field to continue`,titleOther:`Fix {count} fields to continue`},Pe={attachmentLabel:`attachment`,browseLabel:`Browse`,dropFileTitleOne:`Add a file`,dropFileTitleOther:`Add files`,dropImageTitleOne:`Add an image`,dropImageTitleOther:`Add images`,dropTitleOne:`Add {article} {noun}`,dropTitleOther:`Add {noun}s`,label:`Attachment`,maxSizeText:`Up to {size} MB`,optionalLabel:`(optional)`,removeFileLabel:`Remove {name}`,removeLabel:`Remove attachment`,typesAndMaxSizeText:`{types}, up to {size} MB`,uploadingLabel:`Uploading {name}`},Fe={browseLabel:`Click to upload`,buttonLabel:`Add file`,changeFileLabel:`Change file`,changeImageLabel:`Change image`,changeNamedText:`Change {label}`,dropLabel:`or drag & drop`,fileLabel:`file`,helpLabel:`More information`,imageLabel:`image`,loadingLabel:`Loading`,maxFilesText:`Up to {count} files.`,maxSizeText:`up to {size} MB`,optionalLabel:`(optional)`,previewAltText:`{label} preview`,removeFileLabel:`Remove {name}`,removeNamedText:`Remove {label}`,selectedPreviewText:`Selected {noun} preview`},Ie={audioLabel:`Audio`,captionsLabel:`Captions`,closeSearchLabel:`Close search`,documentLabel:`Document`,documentPagesLabel:`Document pages`,documentPrintingTitle:`Document for printing`,downloadLabel:`Download`,exitFullScreenLabel:`Exit full screen`,fitLabel:`Fit`,fitPageLabel:`Fit page`,fitWidthLabel:`Fit width`,fullScreenLabel:`Full screen`,goToPageText:`Go to page {targetPage}`,hideCaptionsLabel:`Hide captions`,hideThumbnailsLabel:`Hide thumbnails`,imageLabel:`Image`,imagePrintingTitle:`Image for printing`,loadingText:`Loading...`,muteLabel:`Mute`,nextMatchLabel:`Next match`,nextPageLabel:`Next page`,noFileText:`No file to show.`,noMatchesText:`No matches`,openFailedText:`Couldn't open this file.`,pageNumberLabel:`Page number`,pauseLabel:`Pause`,playLabel:`Play`,playbackSpeedLabel:`Playback speed`,playbackSpeedText:`Playback speed, {label}`,preparingPrintLabel:`Preparing to print`,previousMatchLabel:`Previous match`,previousPageLabel:`Previous page`,printLabel:`Print`,rotateLeftLabel:`Rotate left`,rotateRightLabel:`Rotate right`,searchDocumentLabel:`Search the document`,searchPositionText:`{position} of {total}{plus}`,searchUnavailableText:`Search isn't available for this document.`,searchingText:`Searching...`,seekLabel:`Seek`,seekValueText:`{now} of {total}`,showCaptionsLabel:`Show captions`,showThumbnailsLabel:`Show thumbnails`,twoPageViewLabel:`Two-page view`,unmuteLabel:`Unmute`,unsupportedFileText:`This file can't be shown here.`,videoLabel:`Video`,volumeLabel:`Volume`,zoomInLabel:`Zoom in`,zoomLabel:`Zoom`,zoomOutLabel:`Zoom out`,zoomText:`Zoom, {percent}%`},Le={allLabel:`All`,anyLabel:`Any`,appliesAtOnceText:`Changes apply at once.`,applyLabel:`Apply`,clearAllLabel:`Clear all`,dateFromText:`From {date}`,dateRangeText:`{from} to {to}`,dateUntilText:`Until {date}`,filtersActiveLabel:`Filters, {count} active`,filtersLabel:`Filters`,keepOpenLabel:`Keep open`,removeChipLabel:`Remove {facet} filter {value}`},Re={ariaLabel:`Quick navigation`},ze={dirty:`Unsaved changes`,invalidOne:`1 field needs attention`,invalidOther:`{count} fields need attention`,pristine:`No changes yet`,saved:`Saved at {time}`,saving:`Saving changes`},Be={divideLabel:`divided by`,equalLabel:`equals`,label:`Calculation`,minusLabel:`minus`,plusLabel:`plus`,timesLabel:`times`},Ve={loadingLabel:`Loading`},He={description:`You will be signed out in {time} because there has been no activity.`,signOutLabel:`Sign out`,stayLabel:`Stay signed in`,title:`Are you still there?`},Ue={label:`More information`},We={clearLabel:`Clear`,helpLabel:`More information`,hidePasswordLabel:`Hide password`,optionalLabel:`(optional)`,requirementMetLabel:`: met`,requirementNotMetLabel:`: not met`,requirementsTitle:`Password requirements`,showPasswordLabel:`Show password`},Ge={ctrlLabel:`Ctrl`,enterLabel:`Enter`,escLabel:`Esc`},Ke={noData:`No data`,periodLabel:`vs last period`},qe={helpLabel:`More information`},Je={failedText:`Could not load more`,finishedText:`You are all caught up.`,loadMoreLabel:`Load more`,loadingLabel:`Loading more`,retryLabel:`Try again`},Ye={label:`Calendar`},Xe={backLabel:`Back`,closeLabel:`Close`},Ze={backLabel:`Back`},Qe={cancelLabel:`Cancel`,submitLabel:`Save`},$e={ariaLabel:`Main`},et={decreaseLabel:`Decrease`,helpLabel:`More information`,increaseLabel:`Increase`,optionalLabel:`(optional)`},tt={backOnlineText:`You are back online`,checkAgainLabel:`Check again`,loadedAtText:`Showing what loaded at {time}.`,loadedText:`Showing what loaded.`,offlineText:`You are offline.`},nt={dismissLabel:`Dismiss checklist`,donePrefixText:`Done:`,headCountSkippedText:`{done} of {total} done, {skipped} skipped`,headCountText:`{done} of {total} done`,restoreLabel:`Show setup checklist`,skippedPrefixText:`Skipped:`,title:`Get started`},rt={helpLabel:`More information`,optionalLabel:`(optional)`},it={moreLabel:`More`,selectedText:`{count} selected`},at={applyLabel:`Apply`,dayCountOne:`1 day`,dayCountOther:`{count} days`,financialYearText:`FY {startYear}-{endYear}`,label:`Period`,nextMonthLabel:`Next month`,previousMonthLabel:`Previous month`,quarterPrefixText:`Q`,shortDaySuffixText:`d`,startEndPlaceholder:`Start to End`},ot={youLabel:`You`},st={helpLabel:`More information`,label:`Phone number`,optionalLabel:`(optional)`},ct={badge:`Most popular`},lt={title:`QR code`},ut={addConditionLabel:`Add condition`,addGroupLabel:`Add group`,andLabel:`and`,applyLabel:`Apply filter`,cancelLabel:`Cancel`,clearAllLabel:`Clear all`,closeLabel:`Close filters`,conditionCountTextOne:`{count} condition`,conditionCountTextOther:`{count} conditions`,datePlaceholder:`DD-MMM-YYYY`,emptySummaryText:`No conditions. The whole list shows.`,emptyText:`Add a condition to narrow the list.`,emptyTitle:`No conditions yet`,emptyValueText:`…`,fieldLabel:`Field`,filtersCountLabel:`Filters · {count}`,filtersLabel:`Filters`,groupCountTextOne:`in {count} group`,groupCountTextOther:`in {count} groups`,incompleteTextOne:`{count} condition is incomplete`,incompleteTextOther:`{count} conditions are incomplete`,matchAllLabel:`All`,matchAnyLabel:`Any`,matchLabel:`Match`,matchSuffixText:`of these`,maxPlaceholder:`Max`,minPlaceholder:`Min`,multiPlaceholder:`Select values`,noLabel:`No`,operatorBetween:`is between`,operatorContains:`contains`,operatorGt:`is over`,operatorGtDate:`is after`,operatorInLast:`in the last`,operatorIs:`is`,operatorIsAnyOf:`is any of`,operatorIsEmpty:`is empty`,operatorIsNot:`is not`,operatorLabel:`Operator`,operatorLt:`is under`,operatorLtDate:`is before`,orLabel:`or`,panelTitle:`Filters`,rangeJoinText:`and`,removeClauseLabel:`Remove filter: {clause}`,removeConditionLabel:`Remove condition`,removeGroupLabel:`Remove group`,singlePlaceholder:`Select a value`,textPlaceholder:`Type to match`,unitDays:`days`,unitLabel:`Unit`,unitMonths:`months`,unitWeeks:`weeks`,valueLabel:`Value`,valueRequiredText:`Enter a value`,yesLabel:`Yes`},dt={allApprovedLabel:`All approved`,approveLabel:`Approve {count}`,approveMoreLabel:`Approve {count} more`,checkListLabel:`Check the list`,runningLabel:`{done} of {total} approved`,statusBusyLabel:`Approving`,statusDoneLabel:`Approved`,statusFailedLabel:`Not approved`},ft={helpLabel:`More information`},pt={helpLabel:`More information`,optionalLabel:`(optional)`},mt={helpLabel:`More information`,ratingLabel:`Rating`,starLabel:`{count} star`,starsLabel:`{count} stars`,valueText:`{value} out of {max}`},ht={nextLabel:`Next`,positionText:`{position} of {total}`,prevLabel:`Previous`},gt={addLabel:`Add another`,removeLabel:`Remove row`},_t={copiedLabel:`Copied`,copyLabel:`Copy reference`,referenceLabel:`Reference`},vt={applyLabel:`Apply`,ariaLabel:`Rich text`,boldLabel:`Bold`,bulletedListLabel:`Bulleted list`,cancelLabel:`Cancel`,closeLinkBoxLabel:`Close link box`,codeBlockLabel:`Code block`,heading2Label:`Heading 2`,heading3Label:`Heading 3`,helpLabel:`More information`,inlineCodeLabel:`Inline code`,italicLabel:`Italic`,linkAddressLabel:`Link address`,linkErrorMessage:`Use a web address, an email address or a phone number.`,linkLabel:`Link`,loadFailedText:`The editor couldn't load. Reload the page and try again.`,numberedListLabel:`Numbered list`,quoteLabel:`Quote`,redoLabel:`Redo`,removeLinkLabel:`Remove link`,textFormattingLabel:`Text formatting`,undoLabel:`Undo`},yt={checkAgainLabel:`Check again`,copyReferenceLabel:`Copy reference`,errorText:`Something went wrong on our side. Try again in a moment.`,errorTitle:`This page did not load`,forbiddenText:`Ask your administrator for access, or go to the home page.`,forbiddenTitle:`You do not have access to this page`,homeLabel:`Go to the home page`,maintenanceBackBy:`We expect it back by {time} IST.`,maintenanceText:`This page is back shortly. Check again in a few minutes.`,maintenanceTitle:`We are doing some maintenance`,notFoundText:`Check the address, or go to the home page.`,notFoundTitle:`We could not find that page`,offlineText:`Check your connection, then try again.`,offlineTitle:`You are offline`,referenceLabel:`Reference`,reloadLabel:`Reload`,requestAccessLabel:`Request access`,retryLabel:`Try again`,signInLabel:`Sign in again`,signedOutText:`Sign in again to carry on where you were.`,signedOutTitle:`You are signed out`,staleText:`This app was updated while you had it open. Reload to get the new version.`,staleTitle:`A new version is ready`},bt={menuLabel:`More actions`},xt={scoreLabel:`Score`},St={companyLabel:`Company`,emailLabel:`Email`,invalidEmailText:`Enter an email address such as name@example.com.`,messageLabel:`Message`,nameLabel:`Name`,phoneLabel:`Phone number`,requiredText:`This field is required.`,submitErrorText:`We could not send your message. Please try again.`,submitLabel:`Send`},Ct={helpLabel:`More information`},wt={cancel:`Cancel`,confirmHint:`Type {word} to turn on {action}.`,confirmWordLabel:`Type {word} to confirm`,edit:`Edit`,keepEditing:`Keep editing`,save:`Save`,was:`Was {value}`},Tt={loadingLabel:`Loading`},Et={reorderLabel:`Reorder {name}`},Dt={namedTrendLabel:`{label} trend`,oneValueText:`{name} has one value, {value}.`,rangeText:`{name} from {from} to {to} across {count} points.`,trendLabel:`Trend`},Ot={label:`Loading`},kt={label:`Loading`},At={menuLabel:`More actions`},jt={empty:`Nothing here yet.`,errorText:`This item did not load. Try again.`,forbiddenText:`You do not have access to this item.`,itemsLabel:`Items`,loadingLabel:`Loading`,moveLabel:`Move`,networkText:`The connection dropped before this item loaded. Check it and try again.`,nextItemLabel:`Next item`,openLabel:`Open`,previousItemLabel:`Previous item`,readingPaneLabel:`Reading pane`,retryLabel:`Retry`,selectAllLabel:`Select all items`,selectItemLabel:`Select {title}`,selectedLabel:`{count} selected`,untitledItemLabel:`item`},Mt={label:`Progress`,stepLabel:`Step {number}`},Nt={helpLabel:`More information`},Pt={ariaLabel:`Pagination`,nextLabel:`Next page`,pageLabel:`Page {page}`,pageSizeLabel:`{count} per page`,previousLabel:`Previous page`,rangeText:`Page {page} of {pages}`,rowsPerPageLabel:`Rows per page`,summaryText:`Showing {first} to {last} of {total}`},Ft={emptyTitle:`No records found`},It={allSelectedLabel:`All {count} selected`,clearLabel:`Clear`,clearSelectionLabel:`Clear selection`,selectAllMatchingLabel:`Select all {count} matching`,selectedLabel:`{count} selected`},Lt={moreLabel:`More`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`},Rt={clearLabel:`Clear`,helpLabel:`More information`,optionalLabel:`(optional)`},zt={autoLabel:`System`,autoModeLabel:`follows your device`,darkLabel:`Dark`,darkModeLabel:`dark`,label:`Theme`,lightLabel:`Light`,lightModeLabel:`light`},Bt={stepLabel:`Step {number}`},Vt={addAllLabel:`Add all shown`,addLabel:`Add {name}`,availableTitle:`Available`,chosenTitle:`Chosen`,dragHintText:`Press Space to pick up a row, then Left or Right to move it across, or Up and Down to reorder the chosen rows.`,emptyAvailableText:`Remove an item from Chosen to see it here.`,emptyAvailableTitle:`Everything is chosen`,emptyChosenText:`Use Add on an item, or press Enter on it.`,emptyChosenTitle:`Nothing chosen yet`,noMatchText:`No matches for "{query}"`,orderHintText:`The order of Chosen is kept. Drag the grip to reorder.`,removeAllLabel:`Remove all`,removeLabel:`Remove {name}`,searchLabel:`Search {title}`,searchPlaceholder:`Search`},Ht={description:`A new version of this app is ready.`,dismissLabel:`Dismiss`,reloadLabel:`Reload`},Ut={emptyText:`Not set`},Wt={emptyText:`Nothing new yet`,label:`What's new`,linkLabel:`Learn more`,unreadLabel:`unread`},Gt={ariaLabel:`Workspace {currentName}`,createLabel:`Create workspace`,noMatchText:`No workspaces match.`,searchPlaceholder:`Search workspaces`,triggerLabel:`Workspace {currentName}`},Kt=e=>t(e);export{re as ACCOUNT_SWITCHER_TEXT,ie as AGENDA_TEXT,ae as ALERT_TEXT,w as ASYNC_BLOCK_TEXT,se as AVATAR_GROUP_TEXT,oe as AVATAR_TEXT,ce as BANNER_TEXT,le as BREADCRUMBS_TEXT,ue as CALENDAR_TEXT,de as CARD_TEXT,u as CAROUSEL_TEXT,fe as CHANGE_LIST_TEXT,me as CHART_CARD_TEXT,pe as CHART_TEXT,ge as CHECKBOX_TEXT,he as CHECK_TEXT,ve as CHIP_GROUP_TEXT,_e as CHIP_TEXT,ye as CHOICE_CARD_TEXT,be as CHOICE_CHIP_TEXT,d as CODE_BLOCK_TEXT,xe as COLOUR_FIELD_TEXT,Se as COLUMN_MENU_TEXT,f as COMMAND_PALETTE_TEXT,p as COMMENT_THREAD_TEXT,Ce as COMPARE_TABLE_TEXT,Y as CONFIRM_DIALOG_TEXT,we as CONFIRM_PROVIDER_TEXT,h as CONSENT_BANNER_TEXT,Te as CONTEXT_MENU_TEXT,Ee as COPY_BUTTON_TEXT,te as CUSTOM_RULE_TEXT,g as DASHBOARD_GRID_TEXT,De as DASHBOARD_HEADER_TEXT,_ as DATA_TABLE_TEXT,y as DATE_PICKER_TEXT,b as DATE_RANGE_PICKER_TEXT,x as DRAWER_TEXT,Oe as DROPDOWN_TEXT,ke as DROP_ZONE_TEXT,Ae as DUE_DATE_TEXT,je as ENTRY_GRID_TEXT,Me as ERROR_BOUNDARY_TEXT,Ne as ERROR_SUMMARY_TEXT,P as FIELD_TEXT,Pe as FILE_ATTACHMENT_TEXT,Fe as FILE_PICKER_TEXT,$ as FILE_VALIDATION_TEXT,Ie as FILE_VIEWER_TEXT,Le as FILTER_BAR_TEXT,Re as FLOATING_DOCK_TEXT,s as FORMATTERS_TEXT,Be as FORMULA_STEPS_TEXT,ze as FORM_ACTIONS_TEXT,S as GANTT_TEXT,Ve as HOVER_CARD_TEXT,l as HTTP_FAILURE_TEXT,He as IDLE_TIMEOUT_DIALOG_TEXT,C as IMAGE_CROP_TEXT,Z as IMAGE_PICKER_TEXT,Ue as INFO_TIP_TEXT,T as INLINE_EDIT_TEXT,Q as INPUT_MASK_TEXT,We as INPUT_TEXT,c as KANBAN_TEXT,Ge as KBD_TEXT,Ke as KPI_TILE_TEXT,qe as LABEL_HELP_TEXT,E as LEAD_POPUP_TEXT,D as LIGHTBOX_TEXT,Je as LOAD_MORE_TEXT,m as MENTION_INPUT_TEXT,Ye as MINI_CALENDAR_TEXT,Xe as MODAL_CARD_RENDERER_TEXT,Ze as MODAL_CONTENT_TEXT,Qe as MODAL_FORM_TEXT,J as MODAL_TEXT,$e as NAVIGATION_MENU_TEXT,O as NOTIFICATION_CENTRE_TEXT,et as NUMBER_INPUT_TEXT,tt as OFFLINE_BANNER_TEXT,nt as ONBOARDING_CHECKLIST_TEXT,k as ORG_TREE_TEXT,rt as OTP_INPUT_TEXT,A as OVERFLOW_TEXT,it as PAGE_HEADER_TEXT,ee as PASSWORD_RULES_TEXT,at as PERIOD_PICKER_TEXT,ot as PERSON_TEXT,st as PHONE_NUMBER_INPUT_TEXT,j as PHONE_TEXT,ct as PRICING_CARD_TEXT,lt as QR_CODE_TEXT,ut as QUERY_BUILDER_TEXT,dt as QUEUE_BUNDLE_TEXT,pt as RADIO_GROUP_TEXT,ft as RADIO_TEXT,mt as RATING_TEXT,ht as RECORD_PAGER_TEXT,M as RELATIVE_TIME_TEXT,gt as REPEATER_TEXT,_t as RESULT_BLOCK_TEXT,vt as RICH_TEXT_TEXT,yt as ROUTE_ERROR_TEXT,bt as ROW_ACTIONS_TEXT,K as ROW_DROP_TEXT,N as SAVED_VIEWS_TEXT,xt as SCORE_SCALE_TEXT,I as SEARCH_TEXT,St as SECTION_LEAD_CAPTURE_TEXT,Ct as SEGMENTED_TEXT,F as SELECT_TEXT,wt as SETTING_ROW_TEXT,ne as SHELL_TEXT,o as SHORTCUT_KEYS_TEXT,L as SHOW_MORE_TEXT,Tt as SKELETON_SHAPES_TEXT,R as SLIDER_TEXT,Et as SORTABLE_LIST_TEXT,z as SORTABLE_TEXT,Dt as SPARKLINE_TEXT,Ot as SPINNER_TEXT,kt as SPLASH_TEXT,At as SPLIT_BUTTON_TEXT,jt as SPLIT_VIEW_TEXT,Mt as STEPPER_TEXT,Nt as SWITCH_TEXT,Pt as TABLE_PAGINATION_TEXT,Ft as TABLE_ROWS_TEXT,v as TABLE_SELECT_TEXT,It as TABLE_TOOLBAR_TEXT,Lt as TABS_TEXT,Rt as TEXTAREA_TEXT,zt as THEME_TOGGLE_TEXT,Bt as TIMELINE_TEXT,B as TIME_PICKER_TEXT,X as TOAST_TEXT,H as TOUR_ADVANCE_TEXT,V as TOUR_TEXT,Vt as TRANSFER_LIST_TEXT,W as TREE_PICKER_TEXT,U as TREE_TEXT,q as UNSAVED_CHANGES_TEXT,Ht as UPDATE_BAR_TEXT,Ut as VALUE_TEXT,Wt as WHATS_NEW_TEXT,G as WIZARD_TEXT,Gt as WORKSPACE_SWITCHER_TEXT,a as fillText,n as pluralText,i as readText,Kt as setWuiText,e as subscribeText,r as textLocale};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./dom-DMQu--xV.js";import{r as n,t as r}from"./textStore-DBplASiZ.js";import{t as i}from"./devWarn-DXdRWZs3.js";import{n as a}from"./imeSafeEnter-DeO_3lXy.js";import{t as o}from"./rowDrop.g-DQpB10Ey.js";var s=`wui:row-drop`,c=`is-drop-over`,l=`application/x-wui-rows`,u=`wui-row-dragging`,d=`[data-wui-drop-target]`,f=`tbody tr[data-row-key]`,ee=`input, button, a, select, textarea, label`,p=`.wui-select-cell .form-check-input`,m=/* @__PURE__ */ new WeakMap,h=/* @__PURE__ */ new WeakSet,g=null,_=null;function v(e){let t=e.querySelector(p);return t instanceof HTMLInputElement&&t.checked}function y(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&v(n)&&t.push(n.dataset.rowKey);return t}function b(e,n){return t(e,n)}function x(e,t){let n=b(e,t);return n instanceof HTMLElement?n:null}function te(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var S=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function C(){g=null,document.body.classList.remove(u);for(let e of document.querySelectorAll(`${d}.${c}`))e.classList.remove(c)}function w(e,t,n){e.dispatchEvent(new CustomEvent(s,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function T(t){let n=x(t.target,d);if(!n||!g)return;t.preventDefault();let r=e(t.dataTransfer,`A drag event arrived without its DataTransfer.`);r.dropEffect=`move`,n.classList.add(c)}function ne(e){let t=x(e.target,d);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(c)}function re(e){let t=x(e.target,d);if(!t||!g)return;e.preventDefault(),t.classList.remove(c);let{root:n,keys:r}=g;w(n,r,t),C()}function E(e){let t=x(e.target,d);t&&_?.keys.length&&(e.preventDefault(),w(_.root,_.keys,t))}function ie(e){(a(e)||e.key===` `)&&E(e)}function ae(e){h.has(e)||(h.add(e),e.addEventListener(`dragover`,T),e.addEventListener(`dragenter`,T),e.addEventListener(`dragleave`,ne),e.addEventListener(`drop`,re),e.addEventListener(`click`,E),e.addEventListener(`keydown`,ie))}function oe(t){let n=m.get(t);if(n)return n;ae(t.ownerDocument||t);let r=e=>{let n=x(e.target,f);if(!n||!t.contains(n))return;let r=b(e.target,ee);r&&n.contains(r)||(n.draggable=!0)},i=n=>{let r=x(n.target,f);if(!r||!t.contains(r))return;let i=v(r)?y(t):[r.dataset.rowKey],a=e(n.dataTransfer,`A drag event arrived without its DataTransfer.`);a.setData(l,JSON.stringify(i)),a.setData(`text/plain`,i.join(`,`)),a.effectAllowed=`move`,g={root:t,keys:i},document.body.classList.add(u)},a=e=>{let n=e instanceof CustomEvent?e.detail:void 0;if(S(n)){let{keys:e}=n;n.selected>0?_={root:t,keys:Array.isArray(e)?e:y(t)}:n.selected===0&&(_=null)}O(document)};t.addEventListener(`pointerdown`,r),t.addEventListener(`dragstart`,i),t.addEventListener(`dragend`,C),t.addEventListener(`selectionchange`,a);let o=()=>{t.removeEventListener(`pointerdown`,r),t.removeEventListener(`dragstart`,i),t.removeEventListener(`dragend`,C),t.removeEventListener(`selectionchange`,a),m.delete(t)};return m.set(t,o),o}var D=()=>n(`rowDrop`,o);function O(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${p}:checked`)!==null;for(let n of e.querySelectorAll(d)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||te(n);n.setAttribute(`aria-label`,r(D().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,D().moveLabel))}var k=[`light`,`dark`,`auto`],A=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],j=`fade`,M=`theme`,N={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},P=`wui-theme-switching`,F=`wui:theme:change`,I=`(prefers-color-scheme: dark)`,L=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,R=e=>k.some(t=>t===e);function z(e){return e===`dark`||e===`auto`&&L(I)?`dark`:`light`}function B(e=M){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return R(t)?t:`auto`}function V(e,t=M){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function H(e){let t=document.documentElement,n=z(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(F,{detail:{mode:n,preference:e}}))}var U=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function W(e=M){return`${U}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function G(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function K(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(I),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var q=60,se=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,J=e=>e.toFixed(1),Y=(e,t)=>`${J(e)}px ${J(t)}px`,X={amplitude:22,segments:36,cycles:1.5,ripples:2},Z=6,ce=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=X,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Y(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Y(n,i))}return d.push(Y(e,u)),`polygon(${d.join(`, `)})`},le=(e,t,n,r)=>{let i=t/Z,a=[];for(let t=0;t<Z;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Y(0,c),Y(e,c),Y(e,l),Y(0,l))}return`polygon(${a.join(`, `)})`};function Q(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=q;r++){let s=r/q,c=se(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${J(a*c)}px at ${J(e)}px ${J(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${J(e)}px 0px 0px 0px)`:`inset(0px 0px ${J(e)}px 0px)`});break}case`blinds`:o.push({clipPath:le(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:ce(t,n,c,s*X.ripples*2*Math.PI,a)})}}return o}var $=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||i(`[@webority/ui-elements] The theme view transition failed:`,e)};function ue(e,{effect:t=j,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||L(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(P);let s=document.startViewTransition(e),c=i??N[t]??N.fade;return s.ready.then(()=>{let e=Q(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch($),s.finished.catch($).finally(()=>a.classList.remove(P)).then(()=>!0)}export{s as _,N as a,H as c,z as d,V as f,K as g,ue as h,A as i,G as l,Q as m,M as n,k as o,W as p,F as r,P as s,j as t,B as u,oe as v,O as y};
@@ -0,0 +1 @@
1
+ var e={keepLabel:`Keep editing`,leaveLabel:`Discard changes`,message:`Your changes on this page are not saved. If you leave now, they are lost.`,title:`Discard changes?`},t={cancelLabel:`Cancel`,confirmLabel:`Confirm`,confirmTitle:`Are you sure?`,failedMessage:`That did not work. Try again.`,forbiddenMessage:`You do not have permission to do that.`,networkMessage:`Could not reach the server. Check your connection and try again.`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,typePhraseLabel:`Type {phrase} to confirm`},n={backLabel:`Back`,clientMessage:`It may have been moved or deleted.`,closeLabel:`Close`,errorTitle:`This could not be loaded`,forbiddenMessage:`You do not have access to this.`,invalidMessage:`Some fields need attention.`,loadingLabel:`Loading`,networkMessage:`Could not reach the server. Check your connection and try again.`,retryLabel:`Try again`,serverMessage:`Something went wrong on our side. Try again in a moment.`,submitFailedMessage:`Your changes were not saved.`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`},r={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`};export{e as i,n,t as r,r as t};