@webority/ui-elements 0.191.3 → 0.193.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 (218) hide show
  1. package/dist/{WuiCodeBlock-C4GqrGyO.js → WuiCodeBlock-BnRpTBm_.js} +1 -1
  2. package/dist/{WuiCommandPalette-CNwakljH.js → WuiCommandPalette-BSWDxEPw.js} +1 -1
  3. package/dist/{WuiDataTable-DKfTPdsn.js → WuiDataTable-D_9TWU-r.js} +1 -1
  4. package/dist/{WuiDatePicker-gZUfaTkZ.js → WuiDatePicker-B77M2_E7.js} +1 -1
  5. package/dist/{WuiDateRange-CNDyrPUT.js → WuiDateRange-BQ1GH9Mu.js} +1 -1
  6. package/dist/{WuiGantt-iEbrAdTQ.js → WuiGantt-wx8VSXiZ.js} +1 -1
  7. package/dist/WuiImageCrop-Cl97BHN4.js +1 -0
  8. package/dist/{WuiLightbox-DqAm2n8s.js → WuiLightbox-DFaHN2Fb.js} +1 -1
  9. package/dist/{WuiPhone-9dBrkfZf.js → WuiPhone-qw_6W3Q2.js} +1 -1
  10. package/dist/{WuiSelect-bvcpSY50.js → WuiSelect-DqHu2OW_.js} +1 -1
  11. package/dist/{WuiTimePicker-BIuLkZqU.js → WuiTimePicker-Bl3GcIS_.js} +1 -1
  12. package/dist/{WuiTour-CFRs1xE-.js → WuiTour-BS7Jd1Tt.js} +1 -1
  13. package/dist/{WuiTree-MMiIcWOJ.js → WuiTree-Qno7SM6z.js} +1 -1
  14. package/dist/{WuiTreePicker-CCkoPctd.js → WuiTreePicker-DWCLntLz.js} +1 -1
  15. package/dist/{WuiWizardStep-Cnc0DYg1.js → WuiWizardStep-CSS4B8g4.js} +1 -1
  16. package/dist/a.g-BUrXZ0Qj.js +1 -0
  17. package/dist/b.g-c7AZ9uVu.js +1 -0
  18. package/dist/c.g-1tKnlc4e.js +1 -0
  19. package/dist/{chips-DZpPt2SC.js → chips-DCkeuEvb.js} +1 -1
  20. package/dist/d.g-Cl1m1hN-.js +1 -0
  21. package/dist/{drawerDiscard-BsVbaCgB.js → drawerDiscard-mFYviRfI.js} +1 -1
  22. package/dist/e.g-BvqbeKNX.js +1 -0
  23. package/dist/elements/code-block.js +1 -1
  24. package/dist/elements/command-palette.js +1 -1
  25. package/dist/elements/data-table.js +1 -1
  26. package/dist/elements/date-range.js +1 -1
  27. package/dist/elements/datepicker.js +1 -1
  28. package/dist/elements/gantt.js +1 -1
  29. package/dist/elements/image-crop.js +1 -1
  30. package/dist/elements/lightbox.js +1 -1
  31. package/dist/elements/phone.js +1 -1
  32. package/dist/elements/select.js +1 -1
  33. package/dist/elements/status-icon.js +1 -1
  34. package/dist/elements/timepicker.js +1 -1
  35. package/dist/elements/tour.js +1 -1
  36. package/dist/elements/tree-picker.js +1 -1
  37. package/dist/elements/tree.js +1 -1
  38. package/dist/elements/wizard.js +1 -1
  39. package/dist/f.g-CNmxMCET.js +1 -0
  40. package/dist/fileViewer.g-DnuE1_o9.js +1 -0
  41. package/dist/{fileViewerImage-DnzDd-rQ.js → fileViewerImage-BxvHyZ4w.js} +1 -1
  42. package/dist/{fileViewerMedia-Dm99qAjY.js → fileViewerMedia-I9wn32xJ.js} +1 -1
  43. package/dist/{fileViewerPdf-BET_tiP6.js → fileViewerPdf-COm4n8i7.js} +1 -1
  44. package/dist/g.g-B-tbDuHa.js +1 -0
  45. package/dist/h.g-D63tQoPL.js +1 -0
  46. package/dist/helpers.js +1 -1
  47. package/dist/i.g-DRCcFvgj.js +1 -0
  48. package/dist/iconGlyphs.g-DRNDTVOs.js +1 -0
  49. package/dist/j.g-6OVN_siI.js +1 -0
  50. package/dist/k.g-BWqvhE7s.js +1 -0
  51. package/dist/l.g-BHoPnVck.js +1 -0
  52. package/dist/loader-sSdQNOg6.js +1 -0
  53. package/dist/m.g-BVQq45TF.js +1 -0
  54. package/dist/n.g-CFb-ps6H.js +1 -0
  55. package/dist/o.g-CGJASwcf.js +1 -0
  56. package/dist/{optionLabel-wbpl8OTJ.js → optionLabel-CuShfg_A.js} +1 -1
  57. package/dist/p.g-DRXC-OFe.js +1 -0
  58. package/dist/q.g-CIah8JGo.js +1 -0
  59. package/dist/r.g-BlQw7Aox.js +1 -0
  60. package/dist/s.g-DwIkkKgS.js +1 -0
  61. package/dist/{search-BtwgxJ0e.js → search-OPWGeniZ.js} +1 -1
  62. package/dist/server.js +1 -1
  63. package/dist/statusIcons-DISKRFbg.js +1 -0
  64. package/dist/{svgNodes-CyPS2oFH.js → svgNodes-CaPMDvv7.js} +1 -1
  65. package/dist/t.g-045-l40U.js +1 -0
  66. package/dist/u.g-CK8fmXKY.js +1 -0
  67. package/dist/ui-elements/calendar-views.global.js +1 -1
  68. package/dist/ui-elements/carousel.global.js +1 -1
  69. package/dist/ui-elements/code-block.global.js +1 -1
  70. package/dist/ui-elements/command-palette.global.js +2 -2
  71. package/dist/ui-elements/comment-thread.global.js +1 -1
  72. package/dist/ui-elements/consent-banner.global.js +1 -1
  73. package/dist/ui-elements/context-menu.global.js +1 -1
  74. package/dist/ui-elements/dashboard-grid.global.js +1 -1
  75. package/dist/ui-elements/data-table.global.js +1 -1
  76. package/dist/ui-elements/date-range.global.js +1 -1
  77. package/dist/ui-elements/date-time.global.js +1 -1
  78. package/dist/ui-elements/datepicker.global.js +1 -1
  79. package/dist/ui-elements/dock.global.js +1 -1
  80. package/dist/ui-elements/drawer.global.js +1 -1
  81. package/dist/ui-elements/dropdown.global.js +1 -1
  82. package/dist/ui-elements/entry-grid.global.js +1 -1
  83. package/dist/ui-elements/gantt.global.js +1 -1
  84. package/dist/ui-elements/glyphs-a.global.js +1 -0
  85. package/dist/ui-elements/glyphs-b.global.js +1 -0
  86. package/dist/ui-elements/glyphs-c.global.js +1 -0
  87. package/dist/ui-elements/glyphs-d.global.js +1 -0
  88. package/dist/ui-elements/glyphs-e.global.js +1 -0
  89. package/dist/ui-elements/glyphs-f.global.js +1 -0
  90. package/dist/ui-elements/glyphs-g.global.js +1 -0
  91. package/dist/ui-elements/glyphs-h.global.js +1 -0
  92. package/dist/ui-elements/glyphs-i.global.js +1 -0
  93. package/dist/ui-elements/glyphs-j.global.js +1 -0
  94. package/dist/ui-elements/glyphs-k.global.js +1 -0
  95. package/dist/ui-elements/glyphs-l.global.js +1 -0
  96. package/dist/ui-elements/glyphs-m.global.js +1 -0
  97. package/dist/ui-elements/glyphs-n.global.js +1 -0
  98. package/dist/ui-elements/glyphs-o.global.js +1 -0
  99. package/dist/ui-elements/glyphs-p.global.js +1 -0
  100. package/dist/ui-elements/glyphs-q.global.js +1 -0
  101. package/dist/ui-elements/glyphs-r.global.js +1 -0
  102. package/dist/ui-elements/glyphs-s.global.js +1 -0
  103. package/dist/ui-elements/glyphs-t.global.js +1 -0
  104. package/dist/ui-elements/glyphs-u.global.js +1 -0
  105. package/dist/ui-elements/glyphs-v.global.js +1 -0
  106. package/dist/ui-elements/glyphs-w.global.js +1 -0
  107. package/dist/ui-elements/glyphs-x.global.js +1 -0
  108. package/dist/ui-elements/glyphs-z.global.js +1 -0
  109. package/dist/ui-elements/glyphs.global.js +1 -1
  110. package/dist/ui-elements/hover-card.global.js +1 -1
  111. package/dist/ui-elements/image-crop.global.js +1 -1
  112. package/dist/ui-elements/inline-edit.global.js +1 -1
  113. package/dist/ui-elements/kanban.global.js +1 -1
  114. package/dist/ui-elements/lead-popup.global.js +1 -1
  115. package/dist/ui-elements/lightbox.global.js +1 -1
  116. package/dist/ui-elements/markdown.global.js +1 -1
  117. package/dist/ui-elements/mini-calendar.global.js +1 -1
  118. package/dist/ui-elements/navigation-menu.global.js +1 -1
  119. package/dist/ui-elements/notification-center.global.js +1 -1
  120. package/dist/ui-elements/offline-banner.global.js +1 -1
  121. package/dist/ui-elements/onboarding-checklist.global.js +1 -1
  122. package/dist/ui-elements/org-tree.global.js +1 -1
  123. package/dist/ui-elements/otp.global.js +1 -1
  124. package/dist/ui-elements/overflow.global.js +1 -1
  125. package/dist/ui-elements/phone.global.js +1 -1
  126. package/dist/ui-elements/popover.global.js +1 -1
  127. package/dist/ui-elements/rating.global.js +1 -1
  128. package/dist/ui-elements/record-pager.global.js +1 -1
  129. package/dist/ui-elements/relative-time.global.js +1 -1
  130. package/dist/ui-elements/saved-views.global.js +1 -1
  131. package/dist/ui-elements/select-chips.global.js +1 -1
  132. package/dist/ui-elements/select-recents.global.js +1 -1
  133. package/dist/ui-elements/select-search.global.js +1 -1
  134. package/dist/ui-elements/select-window.global.js +1 -1
  135. package/dist/ui-elements/server.global.js +1 -1
  136. package/dist/ui-elements/shell.global.js +1 -1
  137. package/dist/ui-elements/shortcuts.global.js +1 -1
  138. package/dist/ui-elements/show-more.global.js +1 -1
  139. package/dist/ui-elements/slider.global.js +1 -1
  140. package/dist/ui-elements/sortable.global.js +1 -1
  141. package/dist/ui-elements/status-icon.global.js +1 -1
  142. package/dist/ui-elements/table-export.global.js +1 -1
  143. package/dist/ui-elements/timepicker.global.js +1 -1
  144. package/dist/ui-elements/tour.global.js +1 -1
  145. package/dist/ui-elements/tree-picker.global.js +1 -1
  146. package/dist/ui-elements/tree.global.js +1 -1
  147. package/dist/ui-elements/truncate.global.js +1 -1
  148. package/dist/ui-elements/whats-new.global.js +1 -1
  149. package/dist/ui-elements/wizard.global.js +1 -1
  150. package/dist/ui-elements.global.js +1 -1
  151. package/dist/ui-elements.js +1 -1
  152. package/dist/ui-file-viewer.global.js +10 -10
  153. package/dist/ui-file-viewer.js +1 -1
  154. package/dist/v.g-BpLD1c9M.js +1 -0
  155. package/dist/w.g-CDqV9dT6.js +1 -0
  156. package/dist/x.g-T5k9qAoo.js +1 -0
  157. package/dist/z.g-B8smtOck.js +1 -0
  158. package/package.json +5 -5
  159. package/types/global/glyphChunks.g.d.ts +1 -0
  160. package/types/global/glyphs.d.ts +9 -12
  161. package/types/global/parts/glyphs-a.g.d.ts +1 -0
  162. package/types/global/parts/glyphs-b.g.d.ts +1 -0
  163. package/types/global/parts/glyphs-c.g.d.ts +1 -0
  164. package/types/global/parts/glyphs-d.g.d.ts +1 -0
  165. package/types/global/parts/glyphs-e.g.d.ts +1 -0
  166. package/types/global/parts/glyphs-f.g.d.ts +1 -0
  167. package/types/global/parts/glyphs-g.g.d.ts +1 -0
  168. package/types/global/parts/glyphs-h.g.d.ts +1 -0
  169. package/types/global/parts/glyphs-i.g.d.ts +1 -0
  170. package/types/global/parts/glyphs-j.g.d.ts +1 -0
  171. package/types/global/parts/glyphs-k.g.d.ts +1 -0
  172. package/types/global/parts/glyphs-l.g.d.ts +1 -0
  173. package/types/global/parts/glyphs-m.g.d.ts +1 -0
  174. package/types/global/parts/glyphs-n.g.d.ts +1 -0
  175. package/types/global/parts/glyphs-o.g.d.ts +1 -0
  176. package/types/global/parts/glyphs-p.g.d.ts +1 -0
  177. package/types/global/parts/glyphs-q.g.d.ts +1 -0
  178. package/types/global/parts/glyphs-r.g.d.ts +1 -0
  179. package/types/global/parts/glyphs-s.g.d.ts +1 -0
  180. package/types/global/parts/glyphs-t.g.d.ts +1 -0
  181. package/types/global/parts/glyphs-u.g.d.ts +1 -0
  182. package/types/global/parts/glyphs-v.g.d.ts +1 -0
  183. package/types/global/parts/glyphs-w.g.d.ts +1 -0
  184. package/types/global/parts/glyphs-x.g.d.ts +1 -0
  185. package/types/global/parts/glyphs-z.g.d.ts +1 -0
  186. package/types/glyphTable.d.ts +23 -0
  187. package/types/iconCatalog/a.g.d.ts +2 -0
  188. package/types/iconCatalog/b.g.d.ts +2 -0
  189. package/types/iconCatalog/c.g.d.ts +2 -0
  190. package/types/iconCatalog/d.g.d.ts +2 -0
  191. package/types/iconCatalog/e.g.d.ts +2 -0
  192. package/types/iconCatalog/f.g.d.ts +2 -0
  193. package/types/iconCatalog/g.g.d.ts +2 -0
  194. package/types/iconCatalog/h.g.d.ts +2 -0
  195. package/types/iconCatalog/i.g.d.ts +2 -0
  196. package/types/iconCatalog/j.g.d.ts +2 -0
  197. package/types/iconCatalog/k.g.d.ts +2 -0
  198. package/types/iconCatalog/l.g.d.ts +2 -0
  199. package/types/iconCatalog/m.g.d.ts +2 -0
  200. package/types/iconCatalog/n.g.d.ts +2 -0
  201. package/types/iconCatalog/o.g.d.ts +2 -0
  202. package/types/iconCatalog/p.g.d.ts +2 -0
  203. package/types/iconCatalog/q.g.d.ts +2 -0
  204. package/types/iconCatalog/r.g.d.ts +2 -0
  205. package/types/iconCatalog/s.g.d.ts +2 -0
  206. package/types/iconCatalog/t.g.d.ts +2 -0
  207. package/types/iconCatalog/u.g.d.ts +2 -0
  208. package/types/iconCatalog/v.g.d.ts +2 -0
  209. package/types/iconCatalog/w.g.d.ts +2 -0
  210. package/types/iconCatalog/x.g.d.ts +2 -0
  211. package/types/iconCatalog/z.g.d.ts +2 -0
  212. package/types/iconCatalogNames.g.d.ts +1 -0
  213. package/types/iconGlyphs.g.d.ts +3 -6
  214. package/dist/WuiImageCrop-97d50aEw.js +0 -1
  215. package/dist/fileViewer.g-D_zLw_p-.js +0 -1
  216. package/dist/iconGlyphs.g-a9FtjPXh.js +0 -1
  217. package/dist/loader-X2uBXCDm.js +0 -1
  218. package/dist/statusIcons-Cd3GJcBR.js +0 -1
package/dist/server.js CHANGED
@@ -1 +1 @@
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-Dh5iyZSR.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,g as u,h as d,i as f,l as p,m as ee,n as m,p as h,s as g,t as _}from"./wuiHttp-8CYWEbRz.js";import{n as te,t as ne}from"./buttonClass-C8BRtTk8.js";import{E as v,M as y,N as b,b as x,k as S,y as C}from"./dataTable-D48Rwq1a.js";import{n as w,t as re}from"./devWarn-DXdRWZs3.js";import{t as ie}from"./iconGlyphs.g-a9FtjPXh.js";import{LIST_QUERY_RESERVED as ae,SEARCH_PARAM as oe}from"./listQuery.js";import{a as se,c as ce,i as le,n as T,r as ue,s as de}from"./tableSelect-B2lLTEj1.js";import{t as fe}from"./dataTable.g-1PsmN1Nj.js";import{t as pe}from"./httpFailure.g-DjZzGxPj.js";import{S as E,_ as D,b as O,c as me,d as he,g as k,h as ge,i as _e,m as ve,n as A,p as ye,v as j,y as M}from"./refreshAfter-DhYgWXmQ.js";import{S as N,_ as be,a as xe,b as Se,c as P,d as Ce,f as we,g as F,h as Te,i as I,l as L,m as R,n as Ee,o as z,p as De,r as Oe,s as ke,t as Ae,u as je,v as B,x as Me,y as Ne}from"./drawerDiscard-BsVbaCgB.js";var V=()=>r(`dataTable`,fe),Pe=5,Fe=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLObjectElement||e instanceof HTMLOutputElement,Ie=e=>e instanceof HTMLObjectElement||e instanceof HTMLOutputElement?!1:e.disabled,Le=e=>Fe(e)&&`type`in e&&e.type===`hidden`,H=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n),U=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},W=(e,t,n)=>{let r=e.closest(t);return r instanceof n?r:null},Re=e=>e.localName===`wui-select`,G=(e,t)=>{let n=Number(e);return Number.isInteger(n)?n:t},ze=e=>({total:G(e.dataset.total,0),totalCapped:e.dataset.totalCapped===`true`,page:G(e.dataset.page,1),pageSize:G(e.dataset.pageSize,0),sortBy:e.dataset.sortBy||``,sortOrder:e.dataset.sortOrder===`desc`?`desc`:`asc`,pending:e.dataset.totalPending===`true`,rowCount:G(e.dataset.rowCount,0)}),Be=(e,t)=>{e&&D().toast(e,{variant:t})},Ve=(e,t)=>{if(!e)return;let n=new Set([...e.elements].filter(e=>!Le(e)||e.hasAttribute(`data-range-mirror`)).map(e=>e.getAttribute(`name`)).filter(e=>e&&!ae.includes(e))),r=[...t].some(([e,t])=>t!==``&&n.has(e));for(let t of H(e,`[data-wui-filter-clear]`,HTMLElement))t.hidden=!r},He=new Intl.NumberFormat(`en-IN`),Ue=(e,t)=>t?`${He.format(e)}+`:He.format(e),We=(e,t,n)=>{let r=e.closest(`.wui-list-card`),i=r?U(r,`.wui-list-card-count`,HTMLElement):null;i&&(i.textContent=Ue(t,n))};function Ge(e=document){let t=H(e,`[data-wui-server]`,HTMLElement);e instanceof HTMLElement&&e.matches(`[data-wui-server]`)&&t.unshift(e);for(let e of t){if(ve(e))continue;let t=Ke(e);ge(e,t),e.hasAttribute(`data-load-first-page`)&&t.reload()}}function Ke(n){let a=U(n,`.table-wrap`,HTMLElement),s=a?U(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=U(a,`:scope > [data-wui-table-state]`,HTMLElement),u=U(n,`[data-wui-table-pager]`,HTMLElement),d=U(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||V().loadingText,errorText:n.dataset.errorText||V().errorText,timeoutMs:h(n.getAttribute(`data-wui-timeout`))??3e4},m=new URL(c,window.location.href),g=n.dataset.totalSrc||null,_=g===null?null:new URL(g,window.location.href),fe=/* @__PURE__ */ new Set([...m.searchParams.keys(),..._?.searchParams.keys()??[]]),E=s.hasAttribute(`data-app-datatable-selectable`),O=/* @__PURE__ */ new Set,k=!1,ge=p(),ve=new AbortController,A={signal:ve.signal},ye=U(s,`:scope > tbody[data-wui-rows]`,HTMLTableSectionElement),j=e(ye,`A server-paged table needs its rows in <app-table-rows> (tbody[data-wui-rows]).`),M=ze(j),N=null,be=null,xe=e=>{let t=new URLSearchParams;for(let[n,r]of new URLSearchParams(e))fe.has(n)||t.append(n,r);return t},Se=e=>xe(new URL(e,window.location.href).search),P=e=>{let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`},Ce=(e,t)=>{let n=new URL(e.href);for(let[e,r]of t)fe.has(e)||n.searchParams.append(e,r);return n.origin===window.location.origin?`${n.pathname}${n.search}`:n.href},we=e=>Ce(m,e),F=(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},I=F(f.urlState?xe(window.location.search):new URLSearchParams,M);f.urlState&&P(I)!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&window.history.replaceState(window.history.state,``,P(I));let L=(e,t)=>a.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:t})),R=e=>{d&&(d.textContent=e)},Ee=e=>{if(e.pending)return e.rowCount===0?V().emptyLabel:i(V().pageTextPending,{page:e.page});if(e.total===0)return V().emptyLabel;let t=e.pageSize>0?Math.max(1,Math.ceil(e.total/e.pageSize)):1,n=e.totalCapped?Ue(e.total,!0):`${e.total}`;return i(e.total===1?V().pageTextOne:V().pageTextOther,{page:e.page,pages:t,total:n})},z=()=>H(s,`:scope > thead > tr:first-child > th`,HTMLTableCellElement),De=e=>{if(E&&H(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.`)},Oe=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`)}},ke=e=>{if(E){ue(e);for(let t of e){let e=U(t,`.${T} .form-check-input:not(:disabled)`,HTMLInputElement);e&&(k&&O.add(t.dataset.rowKey),e.checked=O.has(t.dataset.rowKey))}ce(s)}Oe(e);let t=z();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`)})},Ae=e=>ke(H(e,`:scope > tr`,HTMLTableRowElement)),je=e=>{for(let t of e.querySelectorAll(`:scope > template[data-wui-pager], :scope > template[data-wui-empty], :scope > template[data-wui-filters]`))t.remove()},B=e=>e?.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0})),Me=(e,t)=>{if(!l)return;let n=U(e,`:scope > template[data-wui-empty]`,HTMLTemplateElement);B(l),(t.pending?t.rowCount:t.total)===0&&n?(l.replaceChildren(n.content.cloneNode(!0)),l.hidden=!1):(l.replaceChildren(),l.hidden=!0)},Ne=e=>{u&&(B(u),u.replaceChildren(...e?[e.content.cloneNode(!0)]:[]),u.hidden=!1)},He=e=>{let t=f.filtersRegion&&e?U(document,f.filtersRegion,HTMLElement):null;return t&&e&&(B(t),t.replaceChildren(e.content.cloneNode(!0))),t},Ge=0,Ke=e=>{let t=ze(e);t.pending&&Object.assign(t,{total:M.total,totalCapped:M.totalCapped});let n=t.sortBy!==M.sortBy||t.sortOrder!==M.sortOrder?C(j.rows):null;Ne(U(e,`:scope > template[data-wui-pager]`,HTMLTemplateElement)),Me(e,t);let r=He(U(e,`:scope > template[data-wui-filters]`,HTMLTemplateElement));je(e),B(j),s.replaceChild(e,j),j=e,Ge+=1;let i=k&&t.total!==M.total;return M=t,i&&(k=!1),a.removeAttribute(`data-wui-table-error`),Ae(e),rt(),v(e.rows,n),i&&Z(),r},qe=e=>{let t=U(o(`<table>${e}</table>`),`tbody[data-wui-rows]`,HTMLTableSectionElement);return t&&De(t),t?document.importNode(t,!0):null},Je=(e,t=z())=>{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},Ye=()=>{if(j.querySelector(`:scope > tr:not([data-wui-skeleton])`))return;let e=Math.max(1,z().length);j.replaceChildren(...Array.from({length:Pe},()=>{let t=Je(e);return t.setAttribute(`data-wui-skeleton`,``),t})),a.removeAttribute(`data-wui-table-error`),l&&(l.hidden=!0)},K=e=>{e?(a.setAttribute(`aria-busy`,`true`),Ye()):a.removeAttribute(`aria-busy`)},Xe=e=>e===`forbidden`?V().forbiddenMessage:e===`networkCheck`?r(`httpFailure`,pe).networkCheckText:e===`network`?V().networkMessage:e===`timeout`?V().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=ie(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=te(`primary`,`outline`,`sm`),s.dataset.wui=ne,s.setAttribute(`data-wui-table-retry`,``),s.textContent=V().retryLabel,o.append(s),n.append(r,a,o),B(l),l.replaceChildren(n),l.hidden=!1}R(t)},Qe=()=>f.filtersForm?U(document,f.filtersForm,HTMLFormElement):null,q=async(e,t=`none`,{quiet:r=!1}={})=>{let i=new URLSearchParams(e);r||(N={query:i,mode:t},K(!0),R(f.loadingText)),L(`wui:table:loading`,{query:i.toString()});let o=await ge.run(we(i),{timeoutMs:f.timeoutMs});if(o.kind===`aborted`||o.kind===`stale`||o.kind===`session`)return o;r||K(!1);let s=null;if(o.ok)try{s=qe(o.html)}catch(e){re(e)}if(!o.ok||!s){let e=o.ok?`server`:o.kind;return r?w(`A quiet server table refresh failed; the rows on screen are kept.`,e):Ze(e),L(`wui:table:error`,{status:o.status,kind:e,message:Xe(e)}),o}let c=Ke(s);return I=F(i,M),Ve(Qe(),I),f.urlState&&t===`push`?window.history.pushState(window.history.state,``,P(I)):f.urlState&&t===`replace`&&window.history.replaceState(window.history.state,``,P(I)),r||R(Ee(M)),D().refresh(a),c&&D().refresh(c),M.pending?nt():We(n,M.total,M.totalCapped),L(`wui:table:loaded`,{...M,query:I.toString()}),o},J=[],$e=null,et=()=>{if(J.length===0||a.getAttribute(`aria-busy`)===`true`)return;let e=J;J=[],q(I,`none`,{quiet:!0}).then(t=>{for(let n of e)n.resolve(t)},t=>{for(let n of e)n.reject(t)})},Y=async(e,t=`none`,n={})=>{let r;try{r=await q(e,t,n)}catch(e){let t=J;J=[];for(let n of t)n.reject(e);throw e}r.kind===`session`&&($e=r);let i=r.kind===`aborted`&&a.getAttribute(`aria-busy`)===`true`;if(r.kind===`session`||r.kind===`aborted`&&!i){let e=J;J=[];for(let t of e)t.resolve(r)}return et(),r},tt=e=>(e.delete(`page`),e),nt=()=>{if(!_||!M.pending)return;let e=Ge;ee(Ce(_,I),{timeoutMs:f.timeoutMs}).then(t=>{if(e!==Ge)return;if(!t.ok){w(`[@webority/ui-elements] A server table's total did not load; its pager keeps Previous and Next.`,t.kind);return}let r=U(o(t.html),`div[data-wui-total]`,HTMLElement);if(!r){w(`[@webority/ui-elements] A server table's count answer has no div[data-wui-total]; its pager keeps Previous and Next.`);return}if(G(r.dataset.page,-1)!==M.page||G(r.dataset.pageSize,-1)!==M.pageSize)return;let i=G(r.dataset.total,-1);if(i<0){w(`[@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=k&&i!==M.total;M={...M,total:i,totalCapped:a,pending:!1},s&&(k=!1);let c=U(r,`:scope > template[data-wui-pager]`,HTMLTemplateElement);c&&Ne(c);let l=He(U(r,`:scope > template[data-wui-filters]`,HTMLTemplateElement));l&&D().refresh(l),We(n,M.total,M.totalCapped),R(Ee(M)),s&&Z(),L(`wui:table:total`,{total:i,totalCapped:a})})},X=()=>H(s,`:scope > thead th[data-sort-key]`,HTMLTableCellElement),rt=()=>{for(let e of X()){let t=e.dataset.sortKey===M.sortBy;e.setAttribute(`aria-sort`,t?M.sortOrder===`desc`?`descending`:`ascending`:`none`)}};for(let e of X())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=ie(`chevrons-up-down`,{size:14});r&&n.replaceChildren(r),t?e.prepend(n):e.append(n)}let it=e=>{let t=tt(new URLSearchParams(I)),n=M.sortBy===e&&M.sortOrder===`asc`?`desc`:`asc`;return t.set(`sortBy`,e),t.set(`sortOrder`,n),Y(t,`push`)};s.addEventListener(`click`,e=>{let t=e.target instanceof Element?W(e.target,`th[data-sort-key]`,HTMLTableCellElement):null;t&&s.tHead?.contains(t)&&it(t.dataset.sortKey??``)}),s.addEventListener(`keydown`,e=>{if(e.key!==`Enter`&&e.key!==` `)return;let t=e.target instanceof Element?W(e.target,`th[data-sort-key]`,HTMLTableCellElement):null;t&&s.tHead?.contains(t)&&(e.preventDefault(),it(t.dataset.sortKey??``))});let Z=()=>{ce(s),de(s);let e=k?{selected:M.total,total:M.total,allMatching:k}:{selected:O.size,total:M.total};s.dispatchEvent(new CustomEvent(`selectionchange`,{bubbles:!0,detail:e}))};E&&(se(s,(e,t)=>{for(let n of e){let e=W(n,`tr`,HTMLTableRowElement)?.dataset.rowKey;e&&(t?O.add(e):O.delete(e))}t||(k=!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||(k=!1),s.tHead?.contains(t))for(let e of H(j,`:scope > tr:not(.wui-group-row)`,HTMLTableRowElement)){let n=U(e,`.${T} .form-check-input:not(:disabled)`,HTMLInputElement);n&&(n.checked=t.checked,t.checked?O.add(e.dataset.rowKey):O.delete(e.dataset.rowKey))}else if(W(t,`tr`,HTMLTableRowElement)?.classList.contains(`wui-group-row`)){let e=W(t,`tr`,HTMLTableRowElement);for(let n=e?.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`tr.wui-group-row`);n=n.nextElementSibling){let e=U(n,`.${T} .form-check-input:not(:disabled)`,HTMLInputElement),r=n.dataset.rowKey;e&&r&&(e.checked=t.checked,t.checked?O.add(r):O.delete(r))}}else{let e=W(t,`tr`,HTMLTableRowElement)?.dataset.rowKey;if(!e)return;t.checked?O.add(e):O.delete(e)}Z()}})),u&&(u.addEventListener(`click`,e=>{let t=e.target instanceof Element?W(e.target,`a[href]`,HTMLAnchorElement):null;!t||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(e.preventDefault(),Y(Se(t.getAttribute(`href`)??``),`push`))}),u.addEventListener(`change`,e=>{let t=e.target;t instanceof HTMLSelectElement&&t.classList.contains(`tpg-select`)&&t.value&&(e.stopPropagation(),Y(Se(t.value),`push`))}));let Q=()=>{if(!f.searchInput)return null;let e=U(document,f.searchInput,HTMLElement);return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:e?U(e,`input`,HTMLInputElement):null},$=()=>n.isConnected?!0:(ve.abort(),clearTimeout(be??void 0),!1),at=(e,t)=>{let n=[...e.elements].filter(Fe),r=/* @__PURE__ */ new Set;for(let e of n)e.name&&!Le(e)&&r.add(e.name);let i=[];for(let e of n)if(e.name&&!Ie(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},ot=(e,t)=>{let n=new Set([...e.elements].filter(Fe).map(e=>e.name).filter(Boolean)),r=new URLSearchParams,i=e=>e!==`search`&&ae.includes(e);for(let[e,t]of I)e!==`page`&&(i(e)||!n.has(e))&&r.append(e,t);for(let[n,a]of at(e,t))a===``||i(n)||fe.has(n)||r.append(n,a);let a=Q();if(a){r.delete(oe);let e=a.value.trim();e&&r.set(oe,e)}return Y(r,`push`)},st=e=>f.filtersForm&&e.closest?.(f.filtersForm)||f.filtersRegion&&e.closest?.(f.filtersRegion)||null;document.addEventListener(`submit`,e=>{$()&&f.filtersForm&&e.target instanceof HTMLFormElement&&e.target.matches(f.filtersForm)&&(e.preventDefault(),ot(e.target,e.submitter))},A),document.addEventListener(`change`,e=>{if(!$()||!f.filtersForm||!(e.target instanceof Element))return;let t=W(e.target,f.filtersForm,HTMLFormElement);!t||e.target===Q()||t.hasAttribute(`data-wui-apply-on-change`)||e.target.closest(`wui-filter-popover`)||ot(t)},A);let ct=(e,t)=>{if(!e)return;let n=e=>t.get(e)??``;for(let r of H(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 H(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(Re)){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(!$())return;let t=e.target instanceof Element?W(e.target,`a[href]`,HTMLAnchorElement):null;if(!t||!st(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=tt(Se(n.href));ct(t.closest(`form`),r),Ve(t.closest(`form`),r),Y(r,`push`)},A),document.addEventListener(`input`,e=>{if(!$())return;let t=Q();t&&e.target===t&&(clearTimeout(be??void 0),be=setTimeout(()=>{if(!$())return;let e=tt(new URLSearchParams(I)),n=t.value.trim();n?e.set(oe,n):e.delete(oe),e.toString()!==I.toString()&&Y(e,`replace`)},300))},A),f.urlState&&window.addEventListener(`popstate`,()=>{if(!$())return;let e=xe(window.location.search),t=Q();t&&(t.value=e.get(`search`)??``),Ve(Qe(),e),Y(e,`none`)},A),l?.addEventListener(`click`,e=>{e.target instanceof Element&&e.target.closest(`[data-wui-table-retry]`)&&N&&Y(N.query,N.mode)});let lt=e=>[...j.rows].find(t=>t.dataset.rowKey===e)??null,ut=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=H(t,`table > tbody > tr[data-row-key]`,HTMLTableRowElement);return n.length?n.map(e=>document.importNode(e,!0)):null},dt=(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:lt(n.dataset.rowKey);e&&(B(e),e.replaceWith(n),i.push(n))}return ke(i),D().refresh(a),r},ft=e=>e.message||(e.kind===`forbidden`?V().actionForbiddenMessage:V().actionFailedMessage),pt=e=>{e?.isConnected&&e.getAttribute(`data-wui-save-state`)===`saving`&&b(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:lt(String(o));if(!c&&!u)throw Error(`saveRow found no row with data-row-key="${o}" on this page.`);let d=z().filter(e=>!e.classList.contains(T)),f=s===void 0?u??Je(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||j.insertBefore(f,j.firstChild),f!==u&&ke([f]),l&&!a.hasAttribute(`data-wui-table-error`)&&(l.hidden=!0),b(f,`saving`);let p=S(f),m=await ee(e,{method:r.toUpperCase(),body:i});if(m.kind===`session`)return!1;if(m.ok){if(!_e(n)&&he(m))return pt(f),L(`wui:table:saved`,{key:c?null:String(o),added:c,status:m.status}),await me(m,{origin:n}),!0;let e=ut(m.html),t=e&&f.isConnected?dt(e,f,c):null;return t&&R(y(S(t)||p)),Te(m,m.toastVariant||`success`),_e(n)||await me(m,{skip:t?n:null,origin:n}),pt(f),L(`wui:table:saved`,{key:t?.dataset.rowKey??(c?null:String(o)),added:c,status:m.status}),!0}let h=ft(m),g=f;return u&&f!==u&&f.isConnected?(f.replaceWith(u),g=u):c&&!s&&(f.remove(),g=null,l?.childElementCount&&!j.querySelector(`:scope > tr`)&&(l.hidden=!1)),g?.isConnected&&b(g,`error`,h),m.kind!==`aborted`&&Be(h,`danger`),R(x(p,h)),L(`wui:table:failed`,{key:c?null:String(o),added:c,status:m.status,kind:m.kind,message:h}),!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=W(e,`tr`,HTMLTableRowElement),i=r?.dataset.rowKey??null,a=e.dataset.wuiRowAction||``,o=r?S(r):``;e.disabled=!0,e.setAttribute(`aria-busy`,`true`),r&&b(r,`saving`);let s=await ee(t,{method:(e.dataset.method||`post`).toUpperCase()});if(e.disabled=!1,e.removeAttribute(`aria-busy`),s.kind===`session`||s.kind===`aborted`)pt(r);else if(s.ok&&!_e(e)&&he(s))pt(r),L(`wui:table:action`,{action:a,key:i,ok:s.ok,status:s.status}),await me(s,{origin:e});else{if(s.ok){Te(s,s.toastVariant||`success`);let t=r?.isConnected?ut(s.html):null,i=t&&r?dt(t,r,!1):null;i&&R(y(S(i)||o)),_e(e)||await me(s,{skip:i?n:null,origin:e}),pt(r)}else{let e=ft(s);Be(e,`danger`),r?.isConnected&&b(r,`error`,e),R(x(o,e))}L(`wui:table:action`,{action:a,key:i,ok:s.ok,status:s.status})}};return s.addEventListener(`click`,e=>{let t=e.target instanceof Element?W(e.target,`[data-wui-row-action]`,HTMLButtonElement):null;t&&j.contains(t)&&!t.disabled&&(e.preventDefault(),ht(t))}),De(j),je(j),E&&le(s),Ae(j),rt(),M.pending&&(R(Ee(M)),nt()),{el:n,reload:async e=>{if($e)return $e;let t=e?.quiet===!0;return t&&a.getAttribute(`aria-busy`)===`true`?new Promise((e,t)=>{J.push({resolve:e,reject:t})}):Y(I,`none`,{quiet:t})},query:()=>new URLSearchParams(I),setQuery:e=>{let t=new URLSearchParams(I);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`),Y(t,`push`)},saveRow:mt,setActiveRow:e=>{n.dataset.activeRowKey=e==null?``:String(e),Oe(H(j,`:scope > tr`,HTMLTableRowElement))},selection:{keys:()=>[...O],count:()=>k?M.total:O.size,allMatching:()=>k,selectAllMatching:()=>{if(M.pending)w(`[@webority/ui-elements] select all matching needs the total; the table is still waiting for its count.`);else{k=!0;for(let e of H(j,`:scope > tr:not(.wui-group-row)`,HTMLTableRowElement)){let t=U(e,`.${T} .form-check-input`,HTMLInputElement);t?.disabled||(t&&(t.checked=!0),e.dataset.rowKey&&O.add(e.dataset.rowKey))}Z()}},clear:()=>{k=!1,O.clear();for(let e of H(j,`:scope > tr > .${T} .form-check-input:not(:disabled)`,HTMLInputElement))e.checked=!1;Z()}}}}var qe=/* @__PURE__ */ new WeakSet;function Je(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(!O(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${M.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&F(n,t)}}function Ye(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!qe.has(t)){qe.add(t);let e=E();e&&F(e.message,e.variant,e.action)}Je(e)}var K=/* @__PURE__ */ new WeakMap;function Xe(e,t){K.set(e,t)}function Ze(e){K.delete(e)}function Qe(e){let t=e?.closest(`[data-app-shell]`);return(t&&K.get(t))??null}var q=()=>r(`shell`,a),J=31536e3;function $e(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?et(n):String(n)}var et=e=>e>99?`99+`:String(e),Y=(e,t)=>Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,()=>String(n)),e);function tt(e,t,n=document){try{n.cookie=`${e}=${t?`1`:`0`}; Path=/; Max-Age=${J}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}function nt(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=${J}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}var X=(e,t,n)=>{let r=e?.querySelector(t);return r instanceof n?r:null},rt=(e,t,n)=>{let r=e?.closest(t);return r instanceof n?r:null},it=(e,t,n)=>e?[...e.querySelectorAll(t)].filter(e=>e instanceof n):[],Z=e=>{if(!(e.target instanceof Element))throw Error(`event target is not an element`);return e.target},Q=e=>{let t=e.getAttribute(`href`);if(t===null)throw Error(`search hit has no href`);return t},$=(e,t)=>{let n=document.createElement(`div`);return n.className=e,n.textContent=t,n},at=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),ot=(e,t,n)=>`${e}${e.includes(`?`)?`&`:`?`}${encodeURIComponent(t)}=${encodeURIComponent(n)}`;function st(t,r){let i=e(X(t,`input.search-input`,HTMLInputElement),`search input missing`),a=X(t,`.wui-topsearch-results`,HTMLElement),s=()=>e(a,`search results missing`),c=X(t,`.wui-topsearch-open`,HTMLElement),l=X(t,`[data-wui-topsearch-live]`,HTMLElement),{src:u,param:d=`q`,resultsHref:f}=t.dataset,ee=Number(t.dataset.minChars??2),m=Number(t.dataset.debounceMs??250),h=t.dataset.noResultsText??q().noResultsText,g=t.dataset.resultsCountText??q().resultsCountText,_=t.dataset.resultCountText??q().resultCountText,te=p(),ne,v=-1,y=()=>it(s(),`.wui-topsearch-hit`,HTMLElement),b=e=>{let t=y();v=t.length===0?-1:(e+t.length)%t.length,t.forEach((e,t)=>{let n=t===v;e.classList.toggle(`is-active`,n),e.setAttribute(`aria-selected`,n?`true`:`false`)});let n=v>=0?t[v]:void 0;n?(i.setAttribute(`aria-activedescendant`,n.id),n.scrollIntoView?.({block:`nearest`})):i.removeAttribute(`aria-activedescendant`)},x=()=>{s().hidden=!0,i.setAttribute(`aria-expanded`,`false`),i.removeAttribute(`aria-activedescendant`),v=-1},S=()=>{s().hidden=!1,i.setAttribute(`aria-expanded`,`true`)},C=e=>{t.classList.toggle(`is-open`,e),c?.setAttribute(`aria-expanded`,e?`true`:`false`)},w=e=>{let n=new CustomEvent(`wui:search:select`,{bubbles:!0,cancelable:!0,detail:{href:e}});t.dispatchEvent(n)&&window.location.assign(e)},re=async e=>{if(t.classList.add(`is-loading`),u===void 0)throw Error(`search has no data-src`);let n=await te.run(ot(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=X(e,`[data-wui-count]`,HTMLElement);s().replaceChildren(e),y().forEach((e,t)=>{e.id=`${s().id}-opt-${t}`});let r=t?Number(t.getAttribute(`data-wui-count`)):y().length;l&&(l.textContent=r===0?h:Y(r===1?_:g,{count:r}))}else s().replaceChildren($(`wui-topsearch-empty`,q().searchUnavailableMessage));v=-1,S()}};i.addEventListener(`input`,()=>{clearTimeout(ne);let e=i.value.trim();e.length<ee?(te.abort(),t.classList.remove(`is-loading`),s().replaceChildren(),x()):ne=setTimeout(()=>re(e),m)}),i.addEventListener(`keydown`,e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(s().hidden||y().length===0)return;e.preventDefault(),b(v+(e.key===`ArrowDown`?1:-1))}else if(n(e)){let t=y(),n=v>=0?t[v]:void 0;!s().hidden&&n?(e.preventDefault(),w(Q(n))):f&&i.value.trim()!==``&&(e.preventDefault(),w(ot(f,d,i.value.trim())))}else e.key===`Escape`&&(s().hidden?t.classList.contains(`is-open`)&&(e.preventDefault(),e.stopPropagation(),C(!1),c?.focus()):(e.preventDefault(),e.stopPropagation(),x()))}),s().addEventListener(`click`,e=>{let t=rt(Z(e),`.wui-topsearch-hit`,HTMLElement);!t||e.ctrlKey||e.metaKey||e.shiftKey||e.button===1||(e.preventDefault(),w(Q(t)))}),c?.addEventListener(`click`,()=>{let e=!t.classList.contains(`is-open`);C(e),e&&i.focus()});let ie=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||at(e.target)||(e.preventDefault(),C(!0),i.focus())},ae=e=>{e.target instanceof Node&&t.contains(e.target)||(x(),t.classList.contains(`is-open`)&&C(!1))};document.addEventListener(`keydown`,ie),document.addEventListener(`pointerdown`,ae),r.push(()=>{clearTimeout(ne),te.abort(),document.removeEventListener(`keydown`,ie),document.removeEventListener(`pointerdown`,ae)})}function ct(e){let t=[],n=e.dataset.wuiCollapsedCookie;n&&e.addEventListener(`wui:shell:collapse`,e=>{tt(n,!!e.detail?.collapsed)});let r=e.dataset.wuiFoldedCookie;r&&e.addEventListener(`wui:shell:nav-fold`,e=>{nt(r,e.detail?.key,!!e.detail?.folded)}),e.addEventListener(`click`,t=>{Z(t).closest(`[data-wui-tabbar-more]`)&&X(e,`[data-app-shell-menu]`,HTMLElement)?.click()});let i=X(e,`[data-wui-topsearch]`,HTMLElement);i&&st(i,t);let a={el:e,setTabCount(t,n,r){$e(e,t,n,r)},get collapsed(){return e.classList.contains(`collapsed`)},set collapsed(t){if(!!t===e.classList.contains(`collapsed`))return;let n=X(e,`[data-app-shell-collapse]`,HTMLElement);n?n.click():e.classList.toggle(`collapsed`,!!t)}};Xe(e,a);let o=n=>{if(n.target===e||n.target instanceof Node&&n.target.contains(e)){for(let e of t)e();Ze(e),delete e.dataset.wuiPartsWired,document.removeEventListener(`wui:teardown`,o)}};return document.addEventListener(`wui:teardown`,o),a}function lt(e=document){let t=[];e instanceof HTMLElement&&e.matches(`[data-app-shell]`)&&t.push(e),t.push(...it(e,`[data-app-shell]`,HTMLElement));for(let e of t)e.dataset.wuiPartsWired||(e.dataset.wuiPartsWired=`1`,ct(e))}function ut(e){let t=rt(e,`[data-app-shell]`,HTMLElement);return t?(Qe(t)||lt(t),Qe(t)):null}export{ke as CONFIRM_DIALOG_ID,P as CONFIRM_TONES,_ as CSRF_META_NAME,m as DEFAULT_CSRF_HEADER,Ae as DISCARD_EVENT,j as FLASH_STORAGE_KEY,M as FLASH_VARIANTS,f as HTTP_KINDS,d as TOAST_ACTION_METHODS,De as TOAST_ACTION_MS,s as WUI_HEADERS,N as WuiPostError,A as applyRefresh,g as classifyStatus,be as closeRemotePane,c as configureCsrf,L as confirmAction,Ee as createDiscardPrompt,p as createRequestQueue,I as formValues,ye as getServerTable,ut as getShell,Oe as initDrawerDiscard,Ye as initFlashToasts,B as initRemoteModals,je as initServerActions,Ge as initServerTables,lt as initShellParts,xe as initUnsavedChanges,Ne as loadRemoteDrawer,Se as loadRemoteModal,Me as loadRemotePane,o as parseServerHtml,u as parseToastAction,Ce as postAction,l as readCsrf,me as refreshAfter,k as refreshRegions,he as reloadsPage,z as resetUnsavedChanges,R as runToastAction,Te as showResultToast,F as showToast,h as timeoutFromAttribute,ee as wuiFetch,we 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-Dh5iyZSR.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,g as u,h as d,i as f,l as p,m as ee,n as m,p as h,s as g,t as _}from"./wuiHttp-8CYWEbRz.js";import{n as te,t as ne}from"./buttonClass-C8BRtTk8.js";import{E as v,M as y,N as b,b as x,k as S,y as C}from"./dataTable-D48Rwq1a.js";import{n as w,t as re}from"./devWarn-DXdRWZs3.js";import{t as ie}from"./iconGlyphs.g-DRNDTVOs.js";import{LIST_QUERY_RESERVED as ae,SEARCH_PARAM as oe}from"./listQuery.js";import{a as se,c as ce,i as le,n as T,r as ue,s as de}from"./tableSelect-B2lLTEj1.js";import{t as fe}from"./dataTable.g-1PsmN1Nj.js";import{t as pe}from"./httpFailure.g-DjZzGxPj.js";import{S as E,_ as D,b as O,c as me,d as he,g as k,h as ge,i as _e,m as ve,n as A,p as ye,v as j,y as M}from"./refreshAfter-DhYgWXmQ.js";import{S as N,_ as be,a as xe,b as Se,c as P,d as Ce,f as we,g as F,h as Te,i as I,l as L,m as R,n as Ee,o as z,p as De,r as Oe,s as ke,t as Ae,u as je,v as B,x as Me,y as Ne}from"./drawerDiscard-mFYviRfI.js";var V=()=>r(`dataTable`,fe),Pe=5,Fe=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLObjectElement||e instanceof HTMLOutputElement,Ie=e=>e instanceof HTMLObjectElement||e instanceof HTMLOutputElement?!1:e.disabled,Le=e=>Fe(e)&&`type`in e&&e.type===`hidden`,H=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n),U=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},W=(e,t,n)=>{let r=e.closest(t);return r instanceof n?r:null},Re=e=>e.localName===`wui-select`,G=(e,t)=>{let n=Number(e);return Number.isInteger(n)?n:t},ze=e=>({total:G(e.dataset.total,0),totalCapped:e.dataset.totalCapped===`true`,page:G(e.dataset.page,1),pageSize:G(e.dataset.pageSize,0),sortBy:e.dataset.sortBy||``,sortOrder:e.dataset.sortOrder===`desc`?`desc`:`asc`,pending:e.dataset.totalPending===`true`,rowCount:G(e.dataset.rowCount,0)}),Be=(e,t)=>{e&&D().toast(e,{variant:t})},Ve=(e,t)=>{if(!e)return;let n=new Set([...e.elements].filter(e=>!Le(e)||e.hasAttribute(`data-range-mirror`)).map(e=>e.getAttribute(`name`)).filter(e=>e&&!ae.includes(e))),r=[...t].some(([e,t])=>t!==``&&n.has(e));for(let t of H(e,`[data-wui-filter-clear]`,HTMLElement))t.hidden=!r},He=new Intl.NumberFormat(`en-IN`),Ue=(e,t)=>t?`${He.format(e)}+`:He.format(e),We=(e,t,n)=>{let r=e.closest(`.wui-list-card`),i=r?U(r,`.wui-list-card-count`,HTMLElement):null;i&&(i.textContent=Ue(t,n))};function Ge(e=document){let t=H(e,`[data-wui-server]`,HTMLElement);e instanceof HTMLElement&&e.matches(`[data-wui-server]`)&&t.unshift(e);for(let e of t){if(ve(e))continue;let t=Ke(e);ge(e,t),e.hasAttribute(`data-load-first-page`)&&t.reload()}}function Ke(n){let a=U(n,`.table-wrap`,HTMLElement),s=a?U(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=U(a,`:scope > [data-wui-table-state]`,HTMLElement),u=U(n,`[data-wui-table-pager]`,HTMLElement),d=U(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||V().loadingText,errorText:n.dataset.errorText||V().errorText,timeoutMs:h(n.getAttribute(`data-wui-timeout`))??3e4},m=new URL(c,window.location.href),g=n.dataset.totalSrc||null,_=g===null?null:new URL(g,window.location.href),fe=/* @__PURE__ */ new Set([...m.searchParams.keys(),..._?.searchParams.keys()??[]]),E=s.hasAttribute(`data-app-datatable-selectable`),O=/* @__PURE__ */ new Set,k=!1,ge=p(),ve=new AbortController,A={signal:ve.signal},ye=U(s,`:scope > tbody[data-wui-rows]`,HTMLTableSectionElement),j=e(ye,`A server-paged table needs its rows in <app-table-rows> (tbody[data-wui-rows]).`),M=ze(j),N=null,be=null,xe=e=>{let t=new URLSearchParams;for(let[n,r]of new URLSearchParams(e))fe.has(n)||t.append(n,r);return t},Se=e=>xe(new URL(e,window.location.href).search),P=e=>{let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`},Ce=(e,t)=>{let n=new URL(e.href);for(let[e,r]of t)fe.has(e)||n.searchParams.append(e,r);return n.origin===window.location.origin?`${n.pathname}${n.search}`:n.href},we=e=>Ce(m,e),F=(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},I=F(f.urlState?xe(window.location.search):new URLSearchParams,M);f.urlState&&P(I)!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&window.history.replaceState(window.history.state,``,P(I));let L=(e,t)=>a.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:t})),R=e=>{d&&(d.textContent=e)},Ee=e=>{if(e.pending)return e.rowCount===0?V().emptyLabel:i(V().pageTextPending,{page:e.page});if(e.total===0)return V().emptyLabel;let t=e.pageSize>0?Math.max(1,Math.ceil(e.total/e.pageSize)):1,n=e.totalCapped?Ue(e.total,!0):`${e.total}`;return i(e.total===1?V().pageTextOne:V().pageTextOther,{page:e.page,pages:t,total:n})},z=()=>H(s,`:scope > thead > tr:first-child > th`,HTMLTableCellElement),De=e=>{if(E&&H(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.`)},Oe=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`)}},ke=e=>{if(E){ue(e);for(let t of e){let e=U(t,`.${T} .form-check-input:not(:disabled)`,HTMLInputElement);e&&(k&&O.add(t.dataset.rowKey),e.checked=O.has(t.dataset.rowKey))}ce(s)}Oe(e);let t=z();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`)})},Ae=e=>ke(H(e,`:scope > tr`,HTMLTableRowElement)),je=e=>{for(let t of e.querySelectorAll(`:scope > template[data-wui-pager], :scope > template[data-wui-empty], :scope > template[data-wui-filters]`))t.remove()},B=e=>e?.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0})),Me=(e,t)=>{if(!l)return;let n=U(e,`:scope > template[data-wui-empty]`,HTMLTemplateElement);B(l),(t.pending?t.rowCount:t.total)===0&&n?(l.replaceChildren(n.content.cloneNode(!0)),l.hidden=!1):(l.replaceChildren(),l.hidden=!0)},Ne=e=>{u&&(B(u),u.replaceChildren(...e?[e.content.cloneNode(!0)]:[]),u.hidden=!1)},He=e=>{let t=f.filtersRegion&&e?U(document,f.filtersRegion,HTMLElement):null;return t&&e&&(B(t),t.replaceChildren(e.content.cloneNode(!0))),t},Ge=0,Ke=e=>{let t=ze(e);t.pending&&Object.assign(t,{total:M.total,totalCapped:M.totalCapped});let n=t.sortBy!==M.sortBy||t.sortOrder!==M.sortOrder?C(j.rows):null;Ne(U(e,`:scope > template[data-wui-pager]`,HTMLTemplateElement)),Me(e,t);let r=He(U(e,`:scope > template[data-wui-filters]`,HTMLTemplateElement));je(e),B(j),s.replaceChild(e,j),j=e,Ge+=1;let i=k&&t.total!==M.total;return M=t,i&&(k=!1),a.removeAttribute(`data-wui-table-error`),Ae(e),rt(),v(e.rows,n),i&&Z(),r},qe=e=>{let t=U(o(`<table>${e}</table>`),`tbody[data-wui-rows]`,HTMLTableSectionElement);return t&&De(t),t?document.importNode(t,!0):null},Je=(e,t=z())=>{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},Ye=()=>{if(j.querySelector(`:scope > tr:not([data-wui-skeleton])`))return;let e=Math.max(1,z().length);j.replaceChildren(...Array.from({length:Pe},()=>{let t=Je(e);return t.setAttribute(`data-wui-skeleton`,``),t})),a.removeAttribute(`data-wui-table-error`),l&&(l.hidden=!0)},K=e=>{e?(a.setAttribute(`aria-busy`,`true`),Ye()):a.removeAttribute(`aria-busy`)},Xe=e=>e===`forbidden`?V().forbiddenMessage:e===`networkCheck`?r(`httpFailure`,pe).networkCheckText:e===`network`?V().networkMessage:e===`timeout`?V().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=ie(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=te(`primary`,`outline`,`sm`),s.dataset.wui=ne,s.setAttribute(`data-wui-table-retry`,``),s.textContent=V().retryLabel,o.append(s),n.append(r,a,o),B(l),l.replaceChildren(n),l.hidden=!1}R(t)},Qe=()=>f.filtersForm?U(document,f.filtersForm,HTMLFormElement):null,q=async(e,t=`none`,{quiet:r=!1}={})=>{let i=new URLSearchParams(e);r||(N={query:i,mode:t},K(!0),R(f.loadingText)),L(`wui:table:loading`,{query:i.toString()});let o=await ge.run(we(i),{timeoutMs:f.timeoutMs});if(o.kind===`aborted`||o.kind===`stale`||o.kind===`session`)return o;r||K(!1);let s=null;if(o.ok)try{s=qe(o.html)}catch(e){re(e)}if(!o.ok||!s){let e=o.ok?`server`:o.kind;return r?w(`A quiet server table refresh failed; the rows on screen are kept.`,e):Ze(e),L(`wui:table:error`,{status:o.status,kind:e,message:Xe(e)}),o}let c=Ke(s);return I=F(i,M),Ve(Qe(),I),f.urlState&&t===`push`?window.history.pushState(window.history.state,``,P(I)):f.urlState&&t===`replace`&&window.history.replaceState(window.history.state,``,P(I)),r||R(Ee(M)),D().refresh(a),c&&D().refresh(c),M.pending?nt():We(n,M.total,M.totalCapped),L(`wui:table:loaded`,{...M,query:I.toString()}),o},J=[],$e=null,et=()=>{if(J.length===0||a.getAttribute(`aria-busy`)===`true`)return;let e=J;J=[],q(I,`none`,{quiet:!0}).then(t=>{for(let n of e)n.resolve(t)},t=>{for(let n of e)n.reject(t)})},Y=async(e,t=`none`,n={})=>{let r;try{r=await q(e,t,n)}catch(e){let t=J;J=[];for(let n of t)n.reject(e);throw e}r.kind===`session`&&($e=r);let i=r.kind===`aborted`&&a.getAttribute(`aria-busy`)===`true`;if(r.kind===`session`||r.kind===`aborted`&&!i){let e=J;J=[];for(let t of e)t.resolve(r)}return et(),r},tt=e=>(e.delete(`page`),e),nt=()=>{if(!_||!M.pending)return;let e=Ge;ee(Ce(_,I),{timeoutMs:f.timeoutMs}).then(t=>{if(e!==Ge)return;if(!t.ok){w(`[@webority/ui-elements] A server table's total did not load; its pager keeps Previous and Next.`,t.kind);return}let r=U(o(t.html),`div[data-wui-total]`,HTMLElement);if(!r){w(`[@webority/ui-elements] A server table's count answer has no div[data-wui-total]; its pager keeps Previous and Next.`);return}if(G(r.dataset.page,-1)!==M.page||G(r.dataset.pageSize,-1)!==M.pageSize)return;let i=G(r.dataset.total,-1);if(i<0){w(`[@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=k&&i!==M.total;M={...M,total:i,totalCapped:a,pending:!1},s&&(k=!1);let c=U(r,`:scope > template[data-wui-pager]`,HTMLTemplateElement);c&&Ne(c);let l=He(U(r,`:scope > template[data-wui-filters]`,HTMLTemplateElement));l&&D().refresh(l),We(n,M.total,M.totalCapped),R(Ee(M)),s&&Z(),L(`wui:table:total`,{total:i,totalCapped:a})})},X=()=>H(s,`:scope > thead th[data-sort-key]`,HTMLTableCellElement),rt=()=>{for(let e of X()){let t=e.dataset.sortKey===M.sortBy;e.setAttribute(`aria-sort`,t?M.sortOrder===`desc`?`descending`:`ascending`:`none`)}};for(let e of X())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=ie(`chevrons-up-down`,{size:14});r&&n.replaceChildren(r),t?e.prepend(n):e.append(n)}let it=e=>{let t=tt(new URLSearchParams(I)),n=M.sortBy===e&&M.sortOrder===`asc`?`desc`:`asc`;return t.set(`sortBy`,e),t.set(`sortOrder`,n),Y(t,`push`)};s.addEventListener(`click`,e=>{let t=e.target instanceof Element?W(e.target,`th[data-sort-key]`,HTMLTableCellElement):null;t&&s.tHead?.contains(t)&&it(t.dataset.sortKey??``)}),s.addEventListener(`keydown`,e=>{if(e.key!==`Enter`&&e.key!==` `)return;let t=e.target instanceof Element?W(e.target,`th[data-sort-key]`,HTMLTableCellElement):null;t&&s.tHead?.contains(t)&&(e.preventDefault(),it(t.dataset.sortKey??``))});let Z=()=>{ce(s),de(s);let e=k?{selected:M.total,total:M.total,allMatching:k}:{selected:O.size,total:M.total};s.dispatchEvent(new CustomEvent(`selectionchange`,{bubbles:!0,detail:e}))};E&&(se(s,(e,t)=>{for(let n of e){let e=W(n,`tr`,HTMLTableRowElement)?.dataset.rowKey;e&&(t?O.add(e):O.delete(e))}t||(k=!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||(k=!1),s.tHead?.contains(t))for(let e of H(j,`:scope > tr:not(.wui-group-row)`,HTMLTableRowElement)){let n=U(e,`.${T} .form-check-input:not(:disabled)`,HTMLInputElement);n&&(n.checked=t.checked,t.checked?O.add(e.dataset.rowKey):O.delete(e.dataset.rowKey))}else if(W(t,`tr`,HTMLTableRowElement)?.classList.contains(`wui-group-row`)){let e=W(t,`tr`,HTMLTableRowElement);for(let n=e?.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`tr.wui-group-row`);n=n.nextElementSibling){let e=U(n,`.${T} .form-check-input:not(:disabled)`,HTMLInputElement),r=n.dataset.rowKey;e&&r&&(e.checked=t.checked,t.checked?O.add(r):O.delete(r))}}else{let e=W(t,`tr`,HTMLTableRowElement)?.dataset.rowKey;if(!e)return;t.checked?O.add(e):O.delete(e)}Z()}})),u&&(u.addEventListener(`click`,e=>{let t=e.target instanceof Element?W(e.target,`a[href]`,HTMLAnchorElement):null;!t||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(e.preventDefault(),Y(Se(t.getAttribute(`href`)??``),`push`))}),u.addEventListener(`change`,e=>{let t=e.target;t instanceof HTMLSelectElement&&t.classList.contains(`tpg-select`)&&t.value&&(e.stopPropagation(),Y(Se(t.value),`push`))}));let Q=()=>{if(!f.searchInput)return null;let e=U(document,f.searchInput,HTMLElement);return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:e?U(e,`input`,HTMLInputElement):null},$=()=>n.isConnected?!0:(ve.abort(),clearTimeout(be??void 0),!1),at=(e,t)=>{let n=[...e.elements].filter(Fe),r=/* @__PURE__ */ new Set;for(let e of n)e.name&&!Le(e)&&r.add(e.name);let i=[];for(let e of n)if(e.name&&!Ie(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},ot=(e,t)=>{let n=new Set([...e.elements].filter(Fe).map(e=>e.name).filter(Boolean)),r=new URLSearchParams,i=e=>e!==`search`&&ae.includes(e);for(let[e,t]of I)e!==`page`&&(i(e)||!n.has(e))&&r.append(e,t);for(let[n,a]of at(e,t))a===``||i(n)||fe.has(n)||r.append(n,a);let a=Q();if(a){r.delete(oe);let e=a.value.trim();e&&r.set(oe,e)}return Y(r,`push`)},st=e=>f.filtersForm&&e.closest?.(f.filtersForm)||f.filtersRegion&&e.closest?.(f.filtersRegion)||null;document.addEventListener(`submit`,e=>{$()&&f.filtersForm&&e.target instanceof HTMLFormElement&&e.target.matches(f.filtersForm)&&(e.preventDefault(),ot(e.target,e.submitter))},A),document.addEventListener(`change`,e=>{if(!$()||!f.filtersForm||!(e.target instanceof Element))return;let t=W(e.target,f.filtersForm,HTMLFormElement);!t||e.target===Q()||t.hasAttribute(`data-wui-apply-on-change`)||e.target.closest(`wui-filter-popover`)||ot(t)},A);let ct=(e,t)=>{if(!e)return;let n=e=>t.get(e)??``;for(let r of H(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 H(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(Re)){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(!$())return;let t=e.target instanceof Element?W(e.target,`a[href]`,HTMLAnchorElement):null;if(!t||!st(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=tt(Se(n.href));ct(t.closest(`form`),r),Ve(t.closest(`form`),r),Y(r,`push`)},A),document.addEventListener(`input`,e=>{if(!$())return;let t=Q();t&&e.target===t&&(clearTimeout(be??void 0),be=setTimeout(()=>{if(!$())return;let e=tt(new URLSearchParams(I)),n=t.value.trim();n?e.set(oe,n):e.delete(oe),e.toString()!==I.toString()&&Y(e,`replace`)},300))},A),f.urlState&&window.addEventListener(`popstate`,()=>{if(!$())return;let e=xe(window.location.search),t=Q();t&&(t.value=e.get(`search`)??``),Ve(Qe(),e),Y(e,`none`)},A),l?.addEventListener(`click`,e=>{e.target instanceof Element&&e.target.closest(`[data-wui-table-retry]`)&&N&&Y(N.query,N.mode)});let lt=e=>[...j.rows].find(t=>t.dataset.rowKey===e)??null,ut=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=H(t,`table > tbody > tr[data-row-key]`,HTMLTableRowElement);return n.length?n.map(e=>document.importNode(e,!0)):null},dt=(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:lt(n.dataset.rowKey);e&&(B(e),e.replaceWith(n),i.push(n))}return ke(i),D().refresh(a),r},ft=e=>e.message||(e.kind===`forbidden`?V().actionForbiddenMessage:V().actionFailedMessage),pt=e=>{e?.isConnected&&e.getAttribute(`data-wui-save-state`)===`saving`&&b(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:lt(String(o));if(!c&&!u)throw Error(`saveRow found no row with data-row-key="${o}" on this page.`);let d=z().filter(e=>!e.classList.contains(T)),f=s===void 0?u??Je(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||j.insertBefore(f,j.firstChild),f!==u&&ke([f]),l&&!a.hasAttribute(`data-wui-table-error`)&&(l.hidden=!0),b(f,`saving`);let p=S(f),m=await ee(e,{method:r.toUpperCase(),body:i});if(m.kind===`session`)return!1;if(m.ok){if(!_e(n)&&he(m))return pt(f),L(`wui:table:saved`,{key:c?null:String(o),added:c,status:m.status}),await me(m,{origin:n}),!0;let e=ut(m.html),t=e&&f.isConnected?dt(e,f,c):null;return t&&R(y(S(t)||p)),Te(m,m.toastVariant||`success`),_e(n)||await me(m,{skip:t?n:null,origin:n}),pt(f),L(`wui:table:saved`,{key:t?.dataset.rowKey??(c?null:String(o)),added:c,status:m.status}),!0}let h=ft(m),g=f;return u&&f!==u&&f.isConnected?(f.replaceWith(u),g=u):c&&!s&&(f.remove(),g=null,l?.childElementCount&&!j.querySelector(`:scope > tr`)&&(l.hidden=!1)),g?.isConnected&&b(g,`error`,h),m.kind!==`aborted`&&Be(h,`danger`),R(x(p,h)),L(`wui:table:failed`,{key:c?null:String(o),added:c,status:m.status,kind:m.kind,message:h}),!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=W(e,`tr`,HTMLTableRowElement),i=r?.dataset.rowKey??null,a=e.dataset.wuiRowAction||``,o=r?S(r):``;e.disabled=!0,e.setAttribute(`aria-busy`,`true`),r&&b(r,`saving`);let s=await ee(t,{method:(e.dataset.method||`post`).toUpperCase()});if(e.disabled=!1,e.removeAttribute(`aria-busy`),s.kind===`session`||s.kind===`aborted`)pt(r);else if(s.ok&&!_e(e)&&he(s))pt(r),L(`wui:table:action`,{action:a,key:i,ok:s.ok,status:s.status}),await me(s,{origin:e});else{if(s.ok){Te(s,s.toastVariant||`success`);let t=r?.isConnected?ut(s.html):null,i=t&&r?dt(t,r,!1):null;i&&R(y(S(i)||o)),_e(e)||await me(s,{skip:i?n:null,origin:e}),pt(r)}else{let e=ft(s);Be(e,`danger`),r?.isConnected&&b(r,`error`,e),R(x(o,e))}L(`wui:table:action`,{action:a,key:i,ok:s.ok,status:s.status})}};return s.addEventListener(`click`,e=>{let t=e.target instanceof Element?W(e.target,`[data-wui-row-action]`,HTMLButtonElement):null;t&&j.contains(t)&&!t.disabled&&(e.preventDefault(),ht(t))}),De(j),je(j),E&&le(s),Ae(j),rt(),M.pending&&(R(Ee(M)),nt()),{el:n,reload:async e=>{if($e)return $e;let t=e?.quiet===!0;return t&&a.getAttribute(`aria-busy`)===`true`?new Promise((e,t)=>{J.push({resolve:e,reject:t})}):Y(I,`none`,{quiet:t})},query:()=>new URLSearchParams(I),setQuery:e=>{let t=new URLSearchParams(I);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`),Y(t,`push`)},saveRow:mt,setActiveRow:e=>{n.dataset.activeRowKey=e==null?``:String(e),Oe(H(j,`:scope > tr`,HTMLTableRowElement))},selection:{keys:()=>[...O],count:()=>k?M.total:O.size,allMatching:()=>k,selectAllMatching:()=>{if(M.pending)w(`[@webority/ui-elements] select all matching needs the total; the table is still waiting for its count.`);else{k=!0;for(let e of H(j,`:scope > tr:not(.wui-group-row)`,HTMLTableRowElement)){let t=U(e,`.${T} .form-check-input`,HTMLInputElement);t?.disabled||(t&&(t.checked=!0),e.dataset.rowKey&&O.add(e.dataset.rowKey))}Z()}},clear:()=>{k=!1,O.clear();for(let e of H(j,`:scope > tr > .${T} .form-check-input:not(:disabled)`,HTMLInputElement))e.checked=!1;Z()}}}}var qe=/* @__PURE__ */ new WeakSet;function Je(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(!O(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${M.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&F(n,t)}}function Ye(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!qe.has(t)){qe.add(t);let e=E();e&&F(e.message,e.variant,e.action)}Je(e)}var K=/* @__PURE__ */ new WeakMap;function Xe(e,t){K.set(e,t)}function Ze(e){K.delete(e)}function Qe(e){let t=e?.closest(`[data-app-shell]`);return(t&&K.get(t))??null}var q=()=>r(`shell`,a),J=31536e3;function $e(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?et(n):String(n)}var et=e=>e>99?`99+`:String(e),Y=(e,t)=>Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,()=>String(n)),e);function tt(e,t,n=document){try{n.cookie=`${e}=${t?`1`:`0`}; Path=/; Max-Age=${J}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}function nt(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=${J}; SameSite=Lax`}catch(e){if(!(e instanceof DOMException&&e.name===`SecurityError`))throw e}}var X=(e,t,n)=>{let r=e?.querySelector(t);return r instanceof n?r:null},rt=(e,t,n)=>{let r=e?.closest(t);return r instanceof n?r:null},it=(e,t,n)=>e?[...e.querySelectorAll(t)].filter(e=>e instanceof n):[],Z=e=>{if(!(e.target instanceof Element))throw Error(`event target is not an element`);return e.target},Q=e=>{let t=e.getAttribute(`href`);if(t===null)throw Error(`search hit has no href`);return t},$=(e,t)=>{let n=document.createElement(`div`);return n.className=e,n.textContent=t,n},at=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),ot=(e,t,n)=>`${e}${e.includes(`?`)?`&`:`?`}${encodeURIComponent(t)}=${encodeURIComponent(n)}`;function st(t,r){let i=e(X(t,`input.search-input`,HTMLInputElement),`search input missing`),a=X(t,`.wui-topsearch-results`,HTMLElement),s=()=>e(a,`search results missing`),c=X(t,`.wui-topsearch-open`,HTMLElement),l=X(t,`[data-wui-topsearch-live]`,HTMLElement),{src:u,param:d=`q`,resultsHref:f}=t.dataset,ee=Number(t.dataset.minChars??2),m=Number(t.dataset.debounceMs??250),h=t.dataset.noResultsText??q().noResultsText,g=t.dataset.resultsCountText??q().resultsCountText,_=t.dataset.resultCountText??q().resultCountText,te=p(),ne,v=-1,y=()=>it(s(),`.wui-topsearch-hit`,HTMLElement),b=e=>{let t=y();v=t.length===0?-1:(e+t.length)%t.length,t.forEach((e,t)=>{let n=t===v;e.classList.toggle(`is-active`,n),e.setAttribute(`aria-selected`,n?`true`:`false`)});let n=v>=0?t[v]:void 0;n?(i.setAttribute(`aria-activedescendant`,n.id),n.scrollIntoView?.({block:`nearest`})):i.removeAttribute(`aria-activedescendant`)},x=()=>{s().hidden=!0,i.setAttribute(`aria-expanded`,`false`),i.removeAttribute(`aria-activedescendant`),v=-1},S=()=>{s().hidden=!1,i.setAttribute(`aria-expanded`,`true`)},C=e=>{t.classList.toggle(`is-open`,e),c?.setAttribute(`aria-expanded`,e?`true`:`false`)},w=e=>{let n=new CustomEvent(`wui:search:select`,{bubbles:!0,cancelable:!0,detail:{href:e}});t.dispatchEvent(n)&&window.location.assign(e)},re=async e=>{if(t.classList.add(`is-loading`),u===void 0)throw Error(`search has no data-src`);let n=await te.run(ot(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=X(e,`[data-wui-count]`,HTMLElement);s().replaceChildren(e),y().forEach((e,t)=>{e.id=`${s().id}-opt-${t}`});let r=t?Number(t.getAttribute(`data-wui-count`)):y().length;l&&(l.textContent=r===0?h:Y(r===1?_:g,{count:r}))}else s().replaceChildren($(`wui-topsearch-empty`,q().searchUnavailableMessage));v=-1,S()}};i.addEventListener(`input`,()=>{clearTimeout(ne);let e=i.value.trim();e.length<ee?(te.abort(),t.classList.remove(`is-loading`),s().replaceChildren(),x()):ne=setTimeout(()=>re(e),m)}),i.addEventListener(`keydown`,e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(s().hidden||y().length===0)return;e.preventDefault(),b(v+(e.key===`ArrowDown`?1:-1))}else if(n(e)){let t=y(),n=v>=0?t[v]:void 0;!s().hidden&&n?(e.preventDefault(),w(Q(n))):f&&i.value.trim()!==``&&(e.preventDefault(),w(ot(f,d,i.value.trim())))}else e.key===`Escape`&&(s().hidden?t.classList.contains(`is-open`)&&(e.preventDefault(),e.stopPropagation(),C(!1),c?.focus()):(e.preventDefault(),e.stopPropagation(),x()))}),s().addEventListener(`click`,e=>{let t=rt(Z(e),`.wui-topsearch-hit`,HTMLElement);!t||e.ctrlKey||e.metaKey||e.shiftKey||e.button===1||(e.preventDefault(),w(Q(t)))}),c?.addEventListener(`click`,()=>{let e=!t.classList.contains(`is-open`);C(e),e&&i.focus()});let ie=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||at(e.target)||(e.preventDefault(),C(!0),i.focus())},ae=e=>{e.target instanceof Node&&t.contains(e.target)||(x(),t.classList.contains(`is-open`)&&C(!1))};document.addEventListener(`keydown`,ie),document.addEventListener(`pointerdown`,ae),r.push(()=>{clearTimeout(ne),te.abort(),document.removeEventListener(`keydown`,ie),document.removeEventListener(`pointerdown`,ae)})}function ct(e){let t=[],n=e.dataset.wuiCollapsedCookie;n&&e.addEventListener(`wui:shell:collapse`,e=>{tt(n,!!e.detail?.collapsed)});let r=e.dataset.wuiFoldedCookie;r&&e.addEventListener(`wui:shell:nav-fold`,e=>{nt(r,e.detail?.key,!!e.detail?.folded)}),e.addEventListener(`click`,t=>{Z(t).closest(`[data-wui-tabbar-more]`)&&X(e,`[data-app-shell-menu]`,HTMLElement)?.click()});let i=X(e,`[data-wui-topsearch]`,HTMLElement);i&&st(i,t);let a={el:e,setTabCount(t,n,r){$e(e,t,n,r)},get collapsed(){return e.classList.contains(`collapsed`)},set collapsed(t){if(!!t===e.classList.contains(`collapsed`))return;let n=X(e,`[data-app-shell-collapse]`,HTMLElement);n?n.click():e.classList.toggle(`collapsed`,!!t)}};Xe(e,a);let o=n=>{if(n.target===e||n.target instanceof Node&&n.target.contains(e)){for(let e of t)e();Ze(e),delete e.dataset.wuiPartsWired,document.removeEventListener(`wui:teardown`,o)}};return document.addEventListener(`wui:teardown`,o),a}function lt(e=document){let t=[];e instanceof HTMLElement&&e.matches(`[data-app-shell]`)&&t.push(e),t.push(...it(e,`[data-app-shell]`,HTMLElement));for(let e of t)e.dataset.wuiPartsWired||(e.dataset.wuiPartsWired=`1`,ct(e))}function ut(e){let t=rt(e,`[data-app-shell]`,HTMLElement);return t?(Qe(t)||lt(t),Qe(t)):null}export{ke as CONFIRM_DIALOG_ID,P as CONFIRM_TONES,_ as CSRF_META_NAME,m as DEFAULT_CSRF_HEADER,Ae as DISCARD_EVENT,j as FLASH_STORAGE_KEY,M as FLASH_VARIANTS,f as HTTP_KINDS,d as TOAST_ACTION_METHODS,De as TOAST_ACTION_MS,s as WUI_HEADERS,N as WuiPostError,A as applyRefresh,g as classifyStatus,be as closeRemotePane,c as configureCsrf,L as confirmAction,Ee as createDiscardPrompt,p as createRequestQueue,I as formValues,ye as getServerTable,ut as getShell,Oe as initDrawerDiscard,Ye as initFlashToasts,B as initRemoteModals,je as initServerActions,Ge as initServerTables,lt as initShellParts,xe as initUnsavedChanges,Ne as loadRemoteDrawer,Se as loadRemoteModal,Me as loadRemotePane,o as parseServerHtml,u as parseToastAction,Ce as postAction,l as readCsrf,me as refreshAfter,k as refreshRegions,he as reloadsPage,z as resetUnsavedChanges,R as runToastAction,Te as showResultToast,F as showToast,h as timeoutFromAttribute,ee as wuiFetch,we as wuiUpload};
@@ -0,0 +1 @@
1
+ import{r as e}from"./dom-DMQu--xV.js";import{t}from"./elementBase-Cxeyx0tU.js";import{n}from"./svgNodes-CaPMDvv7.js";var r={delete:`data:image/webp;base64,UklGRh4RAABXRUJQVlA4WAoAAAAQAAAAFwEAFwEAQUxQSGwFAAABkFXbbh1JgiAIhmAIZjBhEDOIGcQMqhgkDKoZCEIgCIIh6KO7Xokt6WtWREwAjBxDykvdNjqYWZ42ZqLHVpecIpgbY67b0eSEjR51SmginJYHy+mPR53QMnHZWC7MjyVZJC7UpIONlmgJzFuTjvI2owlwIekwzUF5uJB0m+agNlxIOk8zaizdmwywbUlZuJAMk2fUU1ibDJW3oKNEMuAt6SeRDJpm3SSSgfOsl0QyeJ51kkgUSFEfgUSJW9AFrqLIW1DE0kSVPGshkqiTgwbwJipdcXiJRan8b2x4E8VuYWCJRbWcRoU3Ue86pnCIgjkMaGmi4lZGgzdR8w2HElgUzWEgUxNVt2kYq6h7HQNuovAbDiAcovIjdC+wKJ1D52ITtXPs2txE8W3u2CLKL91aRf1rp1Yx4NqlVUy4dmgVI67dWcWMa2dWMeTalUVMWToyiz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+CoxGSIAzwyGF57YiDt90pO7R94NP1ZankVp1dtEccWyzU9DrUI8iLKYeKwy6Gvokz/NZHnpQd6ehlmIduqYS27V0kM0LbdpYI0qLGlVFA22uCW61dbyfUDaur9N+Tw6rwH/kW97h8HUyAQCnXLSDNgFqRN/1Xgdp0r0dzKU7ImzaKzjS1tYxLXAf/kXCghSyLnGF+uTjhAAAAAA=`},i={error:[[`rect`,{width:`174`,height:`174`,rx:`87`,fill:`var(--wui-danger-5)`}],[`rect`,{x:`24`,y:`24`,width:`126`,height:`126`,rx:`63`,stroke:`var(--wui-danger-20)`,"stroke-width":`16`}],[`g`,{"clip-path":`url(#wui_error_clip0)`},[[`rect`,{x:`32`,y:`32`,width:`110`,height:`110`,rx:`55`,fill:`var(--wui-danger)`}],[`rect`,{x:`110.758`,y:`62`,width:`75.5044`,height:`69.9535`,transform:`rotate(45 110.758 62)`,fill:`var(--wui-danger-active)`}],[`g`,{"clip-path":`url(#wui_error_clip1)`},[[`path`,{d:`M95.9285 87.0037L112.943 69.9887C114.823 68.1087 114.823 65.0608 112.943 63.1838L110.675 60.9155C108.795 59.0349 105.747 59.0349 103.87 60.9155L86.8552 77.9298L69.8403 60.9119C67.9603 59.032 64.9124 59.032 63.0353 60.9119L60.7635 63.1802C58.8835 65.0608 58.8835 68.1087 60.7635 69.9858L77.7814 87.0037L60.767 104.018C58.8865 105.899 58.8865 108.947 60.767 110.824L63.0353 113.092C64.9153 114.972 67.9632 114.972 69.8403 113.092L86.8552 96.0769L103.87 113.092C105.75 114.972 108.798 114.972 110.675 113.092L112.943 110.824C114.823 108.943 114.823 105.895 112.943 104.018L95.9285 87.0037Z`,fill:`white`}]]]]],[`defs`,{},[[`clipPath`,{id:`wui_error_clip0`},[[`rect`,{x:`32`,y:`32`,width:`110`,height:`110`,rx:`55`,fill:`white`}]]],[`clipPath`,{id:`wui_error_clip1`},[[`rect`,{width:`55`,height:`55`,fill:`white`,transform:`translate(59.3535 59.502)`}]]]]]]},a=[`success`,`error`,`warning`,`info`,`delete`,`primary`],o=class extends t{static get observedAttributes(){return[`tone`,`size`]}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}render(){let t=this.getAttribute(`tone`),a=Number.parseInt(String(this.getAttribute(`size`)),10)||72,o=i[String(t)];if(o){this.replaceChildren(n({width:a,height:a,viewBox:`0 0 174 174`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},o));return}let s=r[String(t)]||r.info;this.replaceChildren(e(`img`,{src:s,width:a,height:a,alt:``,"aria-hidden":`true`,draggable:`false`}))}};export{o as n,a as t};
@@ -1 +1 @@
1
- var e=`http://www.w3.org/2000/svg`;function t(e){return e.map(r)}function n(n,r){let a=document.createElementNS(e,`svg`);return i(a,n),a.append(...t(r)),a}function r(n){let[r,a,o]=n,s=document.createElementNS(e,r);return i(s,a),typeof o==`string`?s.append(document.createTextNode(o)):o&&s.append(...t(o)),s}function i(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}export{n as t};
1
+ var e=`http://www.w3.org/2000/svg`;function t(e){return e.map(r)}function n(n,r){let a=document.createElementNS(e,`svg`);return i(a,n),a.append(...t(r)),a}function r(n){let[r,a,o]=n,s=document.createElementNS(e,r);return i(s,a),typeof o==`string`?s.append(document.createTextNode(o)):o&&s.append(...t(o)),s}function i(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}export{n,t};
@@ -0,0 +1 @@
1
+ var e={"table-document":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM15.75 9h-7.5M15.75 15h-7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"table-lamp":[[`path`,{d:`M5.79 14.69h12.42c1.66 0 2.66-1.31 2.23-2.91l-2.2-8.07C17.98 2.77 16.97 2 16.01 2H7.99c-.96 0-1.97.77-2.22 1.7l-2.2 8.07c-.44 1.61.56 2.92 2.22 2.92ZM12 15v7M8 22h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"tag-2":[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"tag-cross":[[`path`,{d:`M10.28 20.25H17c2.76 0 5-2.24 5-5v-6.5c0-2.76-2.24-5-5-5h-6.72c-1.41 0-2.75.59-3.7 1.64L3.05 9.27a4.053 4.053 0 0 0 0 5.46l3.53 3.88a4.978 4.978 0 0 0 3.7 1.64Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m16 14.47-4.94-4.94M11.06 14.47 16 9.53`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],"tag-right":[[`path`,{d:`M4.22 3.1h11.44c.68 0 1.53.47 1.89 1.05l4.18 6.68c.4.65.36 1.67-.1 2.28l-5.18 6.9c-.37.49-1.17.89-1.78.89H4.22c-1.75 0-2.81-1.92-1.89-3.41l2.77-4.43c.37-.59.37-1.55 0-2.14L2.33 6.49c-.92-1.47.15-3.39 1.89-3.39Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"tag-user":[[`path`,{d:`M18 18.86h-.76c-.8 0-1.56.31-2.12.87l-1.71 1.69c-.78.77-2.05.77-2.83 0l-1.71-1.69c-.56-.56-1.33-.87-2.12-.87H6c-1.66 0-3-1.33-3-2.97V4.97C3 3.33 4.34 2 6 2h12c1.66 0 3 1.33 3 2.97v10.91c0 1.64-1.34 2.98-3 2.98Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12.07 8.95h-.15A1.945 1.945 0 0 1 10.04 7c0-1.08.87-1.95 1.95-1.95s1.95.88 1.95 1.95c.01 1.06-.82 1.92-1.87 1.95ZM9.25 11.96c-1.33.89-1.33 2.34 0 3.23 1.51 1.01 3.99 1.01 5.5 0 1.33-.89 1.33-2.34 0-3.23-1.51-1-3.98-1-5.5 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],teacher:[[`path`,{d:`M10.05 2.53 4.03 6.46c-1.93 1.26-1.93 4.08 0 5.34l6.02 3.93c1.08.71 2.86.71 3.94 0l5.99-3.93c1.92-1.26 1.92-4.07 0-5.33l-5.99-3.93c-1.08-.72-2.86-.72-3.94-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m5.63 13.08-.01 4.69c0 1.27.98 2.63 2.18 3.03l3.19 1.06c.55.18 1.46.18 2.02 0l3.19-1.06c1.2-.4 2.18-1.76 2.18-3.03v-4.64M21.4 15V9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tenx:[[`path`,{d:`M12 12 8.8 8.8 5.5 12l3.3 3.2 6.4-6.4 3.3 3.2-3.3 3.2L12 12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],tether:[[`path`,{d:`M7.47 3.35h9.06c1.06 0 2.31.77 2.78 1.72l2.4 4.82c.58 1.16.26 2.81-.69 3.68l-6.93 6.29c-1.15 1.04-3.02 1.04-4.17 0l-6.93-6.29c-.96-.87-1.27-2.52-.69-3.68l2.4-4.82c.46-.95 1.71-1.72 2.77-1.72ZM12 14.5v-6M8 8.5h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"text-block":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 8.89c3.15-1.57 6.85-1.57 10 0M12 16.3V7.93`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"text-bold":[[`path`,{d:`M4.88 4.5c0-1.1.9-2 2-2H12c2.62 0 4.75 2.13 4.75 4.75S14.62 12 12 12H4.88V4.5ZM4.88 12h9.5c2.62 0 4.75 2.13 4.75 4.75S17 21.5 14.38 21.5h-7.5c-1.1 0-2-.9-2-2V12v0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"text-italic":[[`path`,{d:`M9.62 3h9.25M5.12 21h9.25M14.25 3l-4.5 18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"text-underline":[[`path`,{d:`M5 21h14M5 3v7c0 3.87 3.13 7 7 7s7-3.13 7-7V3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"textalign-center":[[`path`,{d:`M3 4.5h18M7.26 9.5h9.48M3 14.5h18M7.26 19.5h9.48`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"textalign-justifycenter":[[`path`,{d:`M3 4.5h18M3 9.5h18M3 14.5h18M3 19.5h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"textalign-justifyleft":[[`path`,{d:`M12 4.5H3M12 9.5H3M21 14.5H3M21 19.5H3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"textalign-justifyright":[[`path`,{d:`M12 4.5h9M12 9.5h9M3 14.5h18M3 19.5h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"textalign-left":[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"textalign-right":[[`path`,{d:`M3 4.5h18M11.53 9.5H21M3 14.5h18M11.53 19.5H21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"the-graph":[[`path`,{d:`M11.3 14a3.4 3.4 0 1 0 0-6.8 3.4 3.4 0 0 0 0 6.8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`m15.1 14.8-3 3M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M16.5 7.313v0`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],theta:[[`path`,{d:`M15.1 18H8.9c-1 0-1.9-.8-1.9-1.9V7.9C7 6.8 7.8 6 8.9 6h6.3c1 0 1.9.8 1.9 1.9v8.3c-.1 1-.9 1.8-2 1.8ZM12 8.5v2M10 10.5h4M12 15.5v-2M10 13.5h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15 22H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h6c5 0 7 2 7 7v6c0 5-2 7-7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],thorchain:[[`path`,{d:`m12.7 11.7 4.1 4.1c.5.6.3 1.5-.4 1.8L6.1 21.9c-1.1.5-2-.9-1.2-1.7l7.8-8.5Zm0 0L8.6 7.6c-.5-.5-.3-1.5.4-1.8l8.9-3.7c1.1-.4 2 .8 1.3 1.7l-6.5 7.9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"tick-square":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ticket:[[`path`,{d:`M19.5 12.5A2.5 2.5 0 0 1 22 10V9c0-4-1-5-5-5H7C3 4 2 5 2 9v.5a2.5 2.5 0 0 1 0 5v.5c0 4 1 5 5 5h10c4 0 5-1 5-5a2.5 2.5 0 0 1-2.5-2.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M10 4v16`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-dasharray":`5 5`}]],"ticket-2":[[`path`,{d:`M18.91 14.692c0 1.29 1.06 2.34 2.35 2.34 0 3.75-.94 4.69-4.69 4.69H7.19c-3.75 0-4.69-.94-4.69-4.69v-.46a2.36 2.36 0 0 0 2.35-2.35 2.36 2.36 0 0 0-2.35-2.35v-.46c.01-3.75.94-4.69 4.69-4.69h9.37c3.75 0 4.69.94 4.69 4.69v.94c-1.29 0-2.34 1.04-2.34 2.34Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M16.211 6.723h-9.09l2.93-2.93c2.39-2.39 3.59-2.39 5.98 0l.6.6c-.63.63-.78 1.56-.42 2.33Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.879 6.723v15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-dasharray":`5 5`}]],"ticket-discount":[[`path`,{d:`M19.5 12.5A2.5 2.5 0 0 1 22 10V9c0-4-1-5-5-5H7C3 4 2 5 2 9v.5a2.5 2.5 0 0 1 0 5v.5c0 4 1 5 5 5h10c4 0 5-1 5-5a2.5 2.5 0 0 1-2.5-2.5ZM9 14.75l6-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.995 14.75h.009M8.995 9.25h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"ticket-expired":[[`path`,{d:`M10.902 19.87h6.47c3.7 0 4.62-.92 4.62-4.62-1.28 0-2.31-1.04-2.31-2.31 0-1.28 1.03-2.32 2.31-2.32V9.7c0-3.7-.92-4.62-4.62-4.62h-6.38v6.79`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M10.994 16.87v3h-2.77c-1.48 0-2.35-1.01-3.31-3.33l-.18-.45A2.35 2.35 0 0 0 6.024 13a2.37 2.37 0 0 0-3.1-1.29l-.17-.43c-1.44-3.52-.94-4.75 2.58-6.2L7.974 4l3.02 7.32v2.55M8.162 19.87h-.17`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"ticket-star":[[`path`,{d:`M16.995 4h-10c-3.83 0-4.9.92-4.99 4.5 1.93 0 3.49 1.57 3.49 3.5s-1.56 3.49-3.49 3.5c.09 3.58 1.16 4.5 4.99 4.5h10c4 0 5-1 5-5V9c0-4-1-5-5-5ZM8.993 4v3.5M8.993 16.5V20`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.025 9.33.62 1.25c.06.12.18.21.31.23l1.38.2c.34.05.48.47.23.71l-1 .97c-.1.09-.14.23-.12.37l.24 1.37c.06.34-.3.6-.6.44l-1.23-.65a.445.445 0 0 0-.39 0l-1.23.65c-.31.16-.66-.1-.6-.44l.24-1.37a.422.422 0 0 0-.12-.37l-.99-.97a.416.416 0 0 1 .23-.71l1.38-.2c.14-.02.25-.1.31-.23l.61-1.25c.14-.31.58-.31.73 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],timer:[[`path`,{d:`M15.24 2H8.76C5 2 4.71 5.38 6.74 7.22l10.52 9.56C19.29 18.62 19 22 15.24 22H8.76C5 22 4.71 18.62 6.74 16.78l10.52-9.56C19.29 5.38 19 2 15.24 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"timer-1":[[`path`,{d:`M20.75 13.25c0 4.83-3.92 8.75-8.75 8.75s-8.75-3.92-8.75-8.75S7.17 4.5 12 4.5s8.75 3.92 8.75 8.75ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 2h6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"timer-pause":[[`path`,{d:`M12 22c-4.83 0-8.75-3.92-8.75-8.75S7.17 4.5 12 4.5s8.75 3.92 8.75 8.75M12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 2h6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M19 17v4M16 17v4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"timer-start":[[`path`,{d:`M12 8v5M12 22c-4.83 0-8.75-3.92-8.75-8.75S7.17 4.5 12 4.5s8.75 3.92 8.75 8.75`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 2h6M14.9 18.5v-1.16c0-1.43 1.02-2.02 2.26-1.3l1 .58 1 .58c1.24.72 1.24 1.89 0 2.61l-1 .58-1 .58c-1.24.72-2.26.13-2.26-1.3V18.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"toggle-off":[[`path`,{d:`M8.3 16h2.4c2 0 2.8-.8 2.8-2.8v-2.4c0-2-.8-2.8-2.8-2.8H8.3c-2 0-2.8.8-2.8 2.8v2.4c0 2 .8 2.8 2.8 2.8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 20H7c-4 0-5-1-5-5V9c0-4 1-5 5-5h10c4 0 5 1 5 5v6c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"toggle-off-circle":[[`path`,{d:`M10 4h4c4.42 0 8 3.58 8 8s-3.58 8-8 8h-4c-4.42 0-8-3.58-8-8s3.58-8 8-8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M10 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"toggle-on":[[`path`,{d:`M13.3 16h2.4c2 0 2.8-.8 2.8-2.8v-2.4c0-2-.8-2.8-2.8-2.8h-2.4c-2 0-2.8.8-2.8 2.8v2.4c0 2 .8 2.8 2.8 2.8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 20H7c-4 0-5-1-5-5V9c0-4 1-5 5-5h10c4 0 5 1 5 5v6c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"toggle-on-circle":[[`path`,{d:`M10 4h4c4.42 0 8 3.58 8 8s-3.58 8-8 8h-4c-4.42 0-8-3.58-8-8s3.58-8 8-8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],trade:[[`path`,{d:`M22 8.5a6.5 6.5 0 0 1-7.02 6.48 6.509 6.509 0 0 0-5.96-5.96A6.5 6.5 0 1 1 22 8.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15 15.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM5.59 2H3c-.55 0-1 .45-1 1v2.59c0 .89 1.08 1.34 1.71.71L6.3 3.71C6.92 3.08 6.48 2 5.59 2ZM18.41 22H21c.55 0 1-.45 1-1v-2.59c0-.89-1.08-1.34-1.71-.71l-2.59 2.59c-.62.63-.18 1.71.71 1.71Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"transaction-minus":[[`path`,{d:`M6.728 19.7c.82-.88 2.07-.81 2.79.15l1.01 1.35c.81 1.07 2.12 1.07 2.93 0l1.01-1.35c.72-.96 1.97-1.03 2.79-.15 1.78 1.9 3.23 1.27 3.23-1.39V7.04c0-4.03-.94-5.04-4.72-5.04h-7.56c-3.78 0-4.72 1.01-4.72 5.04V18.3c.01 2.67 1.47 3.29 3.24 1.4ZM9.25 10h5.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],translate:[[`path`,{d:`m19.06 18.67-2.14-4.27-2.14 4.27M15.17 17.91h3.52`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M16.92 22a5.08 5.08 0 1 1 .002-10.162A5.08 5.08 0 0 1 16.92 22ZM5.02 2h3.92c2.07 0 3.07 1 3.02 3.02v3.92c.05 2.07-.95 3.07-3.02 3.02H5.02C3 12 2 11 2 8.93V5.01C2 3 3 2 5.02 2ZM9.01 5.85H4.95M6.97 5.17v.68`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7.99 5.84c0 1.75-1.37 3.17-3.05 3.17`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.01 9.01c-.73 0-1.39-.39-1.85-1.01M2 15c0 3.87 3.13 7 7 7l-1.05-1.75M22 9c0-3.87-3.13-7-7-7l1.05 1.75`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],transmit:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M3.5 22h17M5 3.5l14 14M5 13.77V3.5h10.27`}]],"transmit-sqaure-2":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7z`}],[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M10.59 7.68h4.24v4.25M14.83 7.68l-5.66 5.66M6 16.51c3.89 1.3 8.11 1.3 12 0`}]],"transmit-square":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7z`}],[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9 9.51l3-3 3 3M12 6.51v8M6 16.51c3.89 1.3 8.11 1.3 12 0`}]],tree:[[`path`,{d:`M16.17 10.06H7.83c-1.18 0-1.59-.79-.9-1.75l4.17-5.84c.49-.7 1.31-.7 1.79 0l4.17 5.84c.7.96.29 1.75-.89 1.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.59 18H6.42c-1.58 0-2.12-1.05-1.19-2.33l3.99-5.61h5.57l3.99 5.61c.93 1.28.39 2.33-1.19 2.33ZM12 22v-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],trello:[[`path`,{d:`M15 22H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h6c5 0 7 2 7 7v6c0 5-2 7-7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.55 17.72H7.1c-.67 0-1.22-.55-1.22-1.22V7.51c0-.67.55-1.22 1.22-1.22h2.45c.67 0 1.22.55 1.22 1.22v8.98c0 .68-.55 1.23-1.22 1.23ZM17.14 13.63H14.2c-.54 0-.98-.44-.98-.98V7.27c0-.54.44-.98.98-.98h2.94c.54 0 .98.44.98.98v5.39c.01.53-.44.97-.98.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"trend-down":[[`path`,{d:`m16.5 14.5-4.2-4.2-1.6 2.4-3.2-3.2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 14.5h2v-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"trend-up":[[`path`,{d:`m16.5 9.5-4.2 4.2-1.6-2.4-3.2 3.2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 9.5h2v2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"triangle-logo":[[`path`,{d:`M10.9 2 .9 12l10 10v-4l-6-6 6-6V2ZM12.9 2l10 10-10 10v-4l6-6-6-6V2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m10.9 9-3 3 3 3V9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],trontron:[[`path`,{d:`m2.6 3.6 6.7 16.8c.4.9 1.1 1 1.7.2l9.4-11.9c.3-.4.3-1-.1-1.3l-3.1-3.1c-.1-.2-.4-.3-.5-.3l-13-1.7c-.9-.2-1.4.4-1.1 1.3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m10 21 1-11-8-7.1M17 4l-6 6 9-1.8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],truck:[[`path`,{d:`M15 2v10c0 1.1-.9 2-2 2H2V6c0-2.21 1.79-4 4-4h9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 14v3c0 1.66-1.34 3-3 3h-1c0-1.1-.9-2-2-2s-2 .9-2 2h-4c0-1.1-.9-2-2-2s-2 .9-2 2H5c-1.66 0-3-1.34-3-3v-3h11c1.1 0 2-.9 2-2V5h1.84c.72 0 1.38.39 1.74 1.01L20.29 9H19c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M8 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM22 12v2h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1.29L22 12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"truck-fast":[[`path`,{d:`M12 14h1c1.1 0 2-.9 2-2V2H6c-1.5 0-2.81.83-3.49 2.05`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2 17c0 1.66 1.34 3 3 3h1c0-1.1.9-2 2-2s2 .9 2 2h4c0-1.1.9-2 2-2s2 .9 2 2h1c1.66 0 3-1.34 3-3v-3h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1.29l-1.71-2.99A2.016 2.016 0 0 0 16.84 5H15v7c0 1.1-.9 2-2 2h-1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M8 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM22 12v2h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1.29L22 12ZM2 8h6M2 11h4M2 14h2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"truck-remove":[[`path`,{d:`M15 2v10c0 1.1-.9 2-2 2H2V7.62c.73.87 1.85 1.41 3.09 1.38 1.01-.02 1.92-.41 2.6-1.06.31-.26.57-.59.77-.95.36-.61.56-1.33.54-2.08-.03-1.17-.55-2.2-1.36-2.91H15Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 14v3c0 1.66-1.34 3-3 3h-1c0-1.1-.9-2-2-2s-2 .9-2 2h-4c0-1.1-.9-2-2-2s-2 .9-2 2H5c-1.66 0-3-1.34-3-3v-3h11c1.1 0 2-.9 2-2V5h1.84c.72 0 1.38.39 1.74 1.01L20.29 9H19c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M8 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM22 12v2h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1.29L22 12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 5c0 .75-.21 1.46-.58 2.06-.21.36-.48.68-.79.94-.7.63-1.62 1-2.63 1a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 5c0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 9 5ZM6.07 6.04 3.96 3.93M6.04 3.96 3.93 6.07`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"truck-tick":[[`path`,{d:`M15 2v10c0 1.1-.9 2-2 2H2V7.62c.73.87 1.85 1.41 3.09 1.38 1.01-.02 1.92-.41 2.6-1.06.31-.26.57-.59.77-.95.36-.61.56-1.33.54-2.08-.03-1.17-.55-2.2-1.36-2.91H15Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 14v3c0 1.66-1.34 3-3 3h-1c0-1.1-.9-2-2-2s-2 .9-2 2h-4c0-1.1-.9-2-2-2s-2 .9-2 2H5c-1.66 0-3-1.34-3-3v-3h11c1.1 0 2-.9 2-2V5h1.84c.72 0 1.38.39 1.74 1.01L20.29 9H19c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M8 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM22 12v2h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1.29L22 12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 4.91c.02.75-.18 1.47-.54 2.08-.2.36-.46.69-.77.95-.68.65-1.59 1.04-2.6 1.06-1.24.03-2.36-.51-3.09-1.38-.14-.15-.26-.32-.37-.49-.39-.59-.61-1.29-.63-2.04a3.99 3.99 0 0 1 1.43-3.16c.68-.56 1.54-.91 2.48-.93 1.05-.02 2.01.36 2.73 1 .81.71 1.33 1.74 1.36 2.91Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m3.44 5.03 1.01.96 2.09-2.02`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"truck-time":[[`path`,{d:`M15 2v10c0 1.1-.9 2-2 2H2V7.62c.73.87 1.85 1.41 3.09 1.38 1.01-.02 1.92-.41 2.6-1.06.31-.26.57-.59.77-.95.36-.61.56-1.33.54-2.08-.03-1.17-.55-2.2-1.36-2.91H15Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 14v3c0 1.66-1.34 3-3 3h-1c0-1.1-.9-2-2-2s-2 .9-2 2h-4c0-1.1-.9-2-2-2s-2 .9-2 2H5c-1.66 0-3-1.34-3-3v-3h11c1.1 0 2-.9 2-2V5h1.84c.72 0 1.38.39 1.74 1.01L20.29 9H19c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M8 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM22 12v2h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1.29L22 12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 5c0 1.2-.53 2.27-1.36 3A4 4 0 0 1 5 9C2.79 9 1 7.21 1 5c0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 9 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M5.25 3.75v1.5L4 6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"trush-square":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.9 9.05a65.54 65.54 0 0 0-6.57-.33c-1.3 0-2.6.07-3.89.2l-1.34.13M9.71 8.39l.14-.86c.1-.62.18-1.09 1.29-1.09h1.72c1.11 0 1.19.49 1.29 1.09l.14.85M16.49 9.13l-.43 6.6c-.07 1.03-.13 1.83-1.96 1.83H9.89c-1.83 0-1.89-.8-1.96-1.83l-.43-6.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],twitch:[[`path`,{"clip-rule":`evenodd`,d:`M4.5 2h17v12l-5 5h-5l-2 3h-3v-3h-4V5l2-3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11 7H9v6h2V7ZM16 7h-2v6h2V7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]};export{e as GLYPHS};
@@ -0,0 +1 @@
1
+ var e={"ui-8":[[`path`,{d:`M19 9.9v6.9c0 .8-.4 1.5-1.1 1.8l-6.5 3.1c-.5.2-1.2.2-1.7 0l-6.5-3.1c-.7-.3-1.1-1-1.1-1.8V9.3c0-.8.4-1.5 1.1-1.8l6.5-3.1c.5-.2 1.2-.2 1.7 0L14 5.7V6c0 2.2 1.8 4 4 4 .4 0 .7 0 1-.1Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linejoin":`round`}],[`path`,{d:`M7 10.5v3c0 1.1.9 2 2 2s2-.9 2-2v-3M14 10.5v4.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`}],[`path`,{d:`M22 6c0 1.9-1.3 3.4-3 3.9-.3.1-.6.1-1 .1-2.2 0-4-1.8-4-4v-.3c.2-2 1.9-3.7 4-3.7 2.2 0 4 1.8 4 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M19.1 5.9c.2-.2.4-.5.4-.8 0-.8-.6-1.3-1.5-1.3s-1.5.5-1.5 1.3c0 .3.1.6.4.8-.3.2-.5.6-.5 1 0 .8.6 1.3 1.6 1.3s1.6-.5 1.6-1.3c0-.4-.2-.8-.5-1ZM18 5.5c-.3 0-.4-.1-.4-.4 0-.3.2-.4.4-.4s.4.1.4.4c0 .3-.1.4-.4.4Zm0 .8c.3 0 .6.1.6.5 0 .3-.2.5-.6.5-.4 0-.6-.2-.6-.5 0-.4.5-.5.6-.5Z`,fill:`currentColor`}]],unlimited:[[`path`,{d:`M10.18 9.32a4.474 4.474 0 0 0-3.64-1.87c-2.51 0-4.55 2.04-4.55 4.55s2.04 4.55 4.55 4.55c1.69 0 3.26-.89 4.13-2.34L12 12l1.32-2.21a4.821 4.821 0 0 1 4.13-2.34C19.96 7.45 22 9.49 22 12s-2.04 4.55-4.55 4.55c-1.5 0-2.81-.74-3.64-1.87`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],unlock:[[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5ZM6 10V8c0-3.31 1-6 6-6 4.5 0 6 2 6 5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"usd-coin":[[`path`,{d:`M16.9 16.9c2.7-2.7 2.7-7.2 0-9.9M7.1 7.1c-2.7 2.7-2.7 7.2 0 9.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.7 13.6c0 .9.7 1.6 1.6 1.6H13c.7 0 1.4-.6 1.4-1.4 0-.9-.4-1.2-.9-1.4l-2.8-1c-.7-.1-1-.4-1-1.2 0-.8.6-1.4 1.4-1.4h1.8c.9 0 1.6.7 1.6 1.6M12 7.8v8.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-add":[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM3.41 22c0-3.87 3.85-7 8.59-7 .96 0 1.89.13 2.76.37`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 18c0 .32-.04.63-.12.93-.09.4-.25.79-.46 1.13A3.97 3.97 0 0 1 18 22a3.92 3.92 0 0 1-2.66-1.03c-.3-.26-.56-.57-.76-.91A3.92 3.92 0 0 1 14 18a3.995 3.995 0 0 1 4-4c1.18 0 2.25.51 2.97 1.33.64.71 1.03 1.65 1.03 2.67ZM19.49 17.98h-2.98M18 16.52v2.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-cirlce-add":[[`path`,{d:`M11.46 13.73a2.81 2.81 0 1 0 0-5.62 2.81 2.81 0 0 0 0 5.62ZM16.65 20.2c0-2.33-2.32-4.23-5.19-4.23-2.87 0-5.19 1.89-5.19 4.23`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 12.5c0 5.25-4.25 9.5-9.5 9.5S2 17.75 2 12.5 6.25 3 11.5 3c1.31 0 2.56.26 3.7.74-.13.4-.2.82-.2 1.26 0 .75.21 1.46.58 2.06.2.34.46.65.76.91C17.04 8.61 17.97 9 19 9c.44 0 .86-.07 1.25-.21.48 1.14.75 2.4.75 3.71Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M23 5c0 .32-.04.63-.12.93-.09.4-.25.79-.46 1.13-.48.81-1.25 1.44-2.17 1.73-.39.14-.81.21-1.25.21a3.92 3.92 0 0 1-2.66-1.03c-.3-.26-.56-.57-.76-.91A3.92 3.92 0 0 1 15 5c0-.44.07-.86.2-1.26A3.995 3.995 0 0 1 19 1c1.18 0 2.25.51 2.97 1.33C22.61 3.04 23 3.98 23 5ZM20.49 4.98h-2.98M19 3.52v2.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-octagon":[[`path`,{d:`M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 11a2.33 2.33 0 1 0 0-4.66A2.33 2.33 0 0 0 12 11ZM16 16.66c0-1.8-1.79-3.26-4-3.26s-4 1.46-4 3.26`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-remove":[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM3.41 22c0-3.87 3.85-7 8.59-7 .96 0 1.89.13 2.76.37`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 18c0 .32-.04.63-.12.93-.09.4-.25.79-.46 1.13A3.97 3.97 0 0 1 18 22a3.92 3.92 0 0 1-2.66-1.03c-.3-.26-.56-.57-.76-.91A3.92 3.92 0 0 1 14 18a3.995 3.995 0 0 1 4-4c1.18 0 2.25.51 2.97 1.33.64.71 1.03 1.65 1.03 2.67ZM19.03 16.94l-2.11 2.11M16.94 16.96l2.12 2.11`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-search":[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM3.41 22c0-3.87 3.85-7 8.59-7M18.2 21.4a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4ZM22 22l-1-1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-square":[[`path`,{d:`M18.14 21.62c-.88.26-1.92.38-3.14.38H9c-1.22 0-2.26-.12-3.14-.38.22-2.6 2.89-4.65 6.14-4.65 3.25 0 5.92 2.05 6.14 4.65Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15 2H9C4 2 2 4 2 9v6c0 3.78 1.14 5.85 3.86 6.62.22-2.6 2.89-4.65 6.14-4.65 3.25 0 5.92 2.05 6.14 4.65C20.86 20.85 22 18.78 22 15V9c0-5-2-7-7-7Zm-3 12.17c-1.98 0-3.58-1.61-3.58-3.59C8.42 8.6 10.02 7 12 7s3.58 1.6 3.58 3.58-1.6 3.59-3.58 3.59Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.58 10.58c0 1.98-1.6 3.59-3.58 3.59s-3.58-1.61-3.58-3.59C8.42 8.6 10.02 7 12 7s3.58 1.6 3.58 3.58Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-tag":[[`path`,{d:`M18 18.86h-.76c-.8 0-1.56.31-2.12.87l-1.71 1.69c-.78.77-2.05.77-2.83 0l-1.71-1.69c-.56-.56-1.33-.87-2.12-.87H6c-1.66 0-3-1.33-3-2.97V4.98c0-1.64 1.34-2.97 3-2.97h12c1.66 0 3 1.33 3 2.97v10.91c0 1.63-1.34 2.97-3 2.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 10a2.33 2.33 0 1 0 0-4.66A2.33 2.33 0 0 0 12 10ZM16 15.66c0-1.8-1.79-3.26-4-3.26s-4 1.46-4 3.26`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"user-tick":[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM3.41 22c0-3.87 3.85-7 8.59-7 .96 0 1.89.13 2.76.37`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 18c0 .75-.21 1.46-.58 2.06-.21.36-.48.68-.79.94-.7.63-1.62 1-2.63 1a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 14 18c0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 22 18Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m16.44 18 .99.99 2.13-1.97`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]};export{e as GLYPHS};
@@ -1 +1 @@
1
- (function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=globalThis.WeborityUiElementsInternal?.version;if(r!==`0.191.3`)throw Error(`[webority-ui] calendar-views expects ui-elements 0.191.3 but the page loaded `+r+`.`);function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){if(i(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function o(e){var t=a(e,`string`);return i(t)==`symbol`?t:t+``}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=`#view=`,l=`wui-calendar-views:view-change`,u=`wui-calendar-views:period-change`,d=[`previous`,`next`,`today`],f=`.wui-cal-views-switch input[type='radio']`,p=class extends n.ElementBase{constructor(){super(),s(this,`_onChange`,void 0),s(this,`_onClick`,void 0),this._onChange=e=>this._choose(e),this._onClick=e=>this._step(e)}static get observedAttributes(){return[`view`]}connectedCallback(){if(this.addEventListener(`change`,this._onChange),this.addEventListener(`click`,this._onClick),!this.hasAttribute(`data-controlled`)){let e=m(this._views());e&&this.setAttribute(`view`,e)}if(!this.hasAttribute(`view`)){let e=this._views()[0];e&&this.setAttribute(`view`,e)}this._sync()}disconnectedCallback(){this.removeEventListener(`change`,this._onChange),this.removeEventListener(`click`,this._onClick)}attributeChangedCallback(){this._sync()}_views(){return Array.from(this.querySelectorAll(f),e=>e.value)}_sync(){let e=this.getAttribute(`view`)??``;for(let t of this.querySelectorAll(f))t.checked=t.value===e;for(let t of this.querySelectorAll(`:scope > .wui-cal-views-body[data-view]`))t.hidden=t.dataset.view!==e}_choose(e){let t=e.target;if(!(t instanceof HTMLInputElement)||t.type!==`radio`||!this.contains(t))return;let n=t.value;this.hasAttribute(`data-controlled`)||this.setAttribute(`view`,n),h(n),this.dispatchEvent(new CustomEvent(l,{bubbles:!0,detail:{view:n}})),this._sync()}_step(e){let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`button[data-step]`),r=n?.getAttribute(`data-step`)??``;n&&this.contains(n)&&d.includes(r)&&this.dispatchEvent(new CustomEvent(u,{bubbles:!0,detail:{step:r}}))}};function m(e){if(!window.location.hash.startsWith(c))return null;let t=window.location.hash.slice(6);return e.includes(t)?t:null}function h(e){let t=new URL(window.location.href);t.hash=`view=${e}`,window.history.replaceState(window.history.state,``,t)}(0,t.defineElement)(`wui-calendar-views`,p),e.WuiCalendarViews=p})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.elementBase);
1
+ (function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=globalThis.WeborityUiElementsInternal?.version;if(r!==`0.193.0`)throw Error(`[webority-ui] calendar-views expects ui-elements 0.193.0 but the page loaded `+r+`.`);function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){if(i(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function o(e){var t=a(e,`string`);return i(t)==`symbol`?t:t+``}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=`#view=`,l=`wui-calendar-views:view-change`,u=`wui-calendar-views:period-change`,d=[`previous`,`next`,`today`],f=`.wui-cal-views-switch input[type='radio']`,p=class extends n.ElementBase{constructor(){super(),s(this,`_onChange`,void 0),s(this,`_onClick`,void 0),this._onChange=e=>this._choose(e),this._onClick=e=>this._step(e)}static get observedAttributes(){return[`view`]}connectedCallback(){if(this.addEventListener(`change`,this._onChange),this.addEventListener(`click`,this._onClick),!this.hasAttribute(`data-controlled`)){let e=m(this._views());e&&this.setAttribute(`view`,e)}if(!this.hasAttribute(`view`)){let e=this._views()[0];e&&this.setAttribute(`view`,e)}this._sync()}disconnectedCallback(){this.removeEventListener(`change`,this._onChange),this.removeEventListener(`click`,this._onClick)}attributeChangedCallback(){this._sync()}_views(){return Array.from(this.querySelectorAll(f),e=>e.value)}_sync(){let e=this.getAttribute(`view`)??``;for(let t of this.querySelectorAll(f))t.checked=t.value===e;for(let t of this.querySelectorAll(`:scope > .wui-cal-views-body[data-view]`))t.hidden=t.dataset.view!==e}_choose(e){let t=e.target;if(!(t instanceof HTMLInputElement)||t.type!==`radio`||!this.contains(t))return;let n=t.value;this.hasAttribute(`data-controlled`)||this.setAttribute(`view`,n),h(n),this.dispatchEvent(new CustomEvent(l,{bubbles:!0,detail:{view:n}})),this._sync()}_step(e){let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`button[data-step]`),r=n?.getAttribute(`data-step`)??``;n&&this.contains(n)&&d.includes(r)&&this.dispatchEvent(new CustomEvent(u,{bubbles:!0,detail:{step:r}}))}};function m(e){if(!window.location.hash.startsWith(c))return null;let t=window.location.hash.slice(6);return e.includes(t)?t:null}function h(e){let t=new URL(window.location.href);t.hash=`view=${e}`,window.history.replaceState(window.history.state,``,t)}(0,t.defineElement)(`wui-calendar-views`,p),e.WuiCalendarViews=p})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.elementBase);
@@ -1 +1 @@
1
- (function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=globalThis.WeborityUiElementsInternal?.version;if(a!==`0.191.3`)throw Error(`[webority-ui] carousel expects ui-elements 0.191.3 but the page loaded `+a+`.`);var o={carouselLabel:`carousel`,dotLabel:`Go to slide`,nextLabel:`Next slide`,pauseLabel:`Pause`,playLabel:`Play`,previousLabel:`Previous slide`,slideLabel:`slide`,slideText:`{n} of {total}`,statusTextOne:`Slide {first} of {total}`,statusTextOther:`Slides {first} to {last} of {total}`};function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=()=>(0,i.readText)(`carousel`,o),f=120,p=class extends n.ElementBase{static get observedAttributes(){return[`autoplay`]}constructor(){super(),u(this,`_page`,void 0),u(this,`_pages`,void 0),u(this,`_perView`,void 0),u(this,`_paused`,void 0),u(this,`_hover`,void 0),u(this,`_focus`,void 0),u(this,`_timer`,void 0),u(this,`_settleTimer`,void 0),u(this,`_status`,void 0),u(this,`_ready`,void 0),u(this,`_motion`,void 0),u(this,`_mutations`,void 0),u(this,`_resizer`,void 0),u(this,`_doc`,void 0),u(this,`_track`,void 0),u(this,`_onClick`,void 0),u(this,`_onKeyDown`,void 0),u(this,`_onScroll`,void 0),u(this,`_onEnter`,void 0),u(this,`_onLeave`,void 0),u(this,`_onFocusIn`,void 0),u(this,`_onFocusOut`,void 0),u(this,`_onVisibility`,void 0),u(this,`_onMotion`,void 0),u(this,`_tick`,void 0),this._page=0,this._pages=1,this._perView=1,this._paused=!1,this._hover=!1,this._focus=!1,this._timer=null,this._settleTimer=null,this._status=``,this._ready=!1,this._motion=null,this._mutations=null,this._resizer=null,this._doc=null,this._track=null,this._onClick=e=>this._click(e),this._onKeyDown=e=>this._key(e),this._onScroll=()=>{this._settleTimer!==null&&clearTimeout(this._settleTimer),this._settleTimer=setTimeout(()=>this._settle(),f)},this._onEnter=()=>this._hold({hover:!0}),this._onLeave=()=>this._hold({hover:!1}),this._onFocusIn=()=>this._hold({focus:!0}),this._onFocusOut=e=>this._hold({focus:e.relatedTarget instanceof Node&&this.contains(e.relatedTarget)}),this._onVisibility=()=>this._sync(),this._onMotion=()=>this._sync(),this._tick=()=>{this._timer=null,this._go(this._page+1<this._pages?this._page+1:0)}}connectedCallback(){let e=this.querySelector(`.wui-carousel-track`);if(this._track=e instanceof HTMLElement?e:null,!this._track){this.ownerDocument.readyState===`loading`&&this.ownerDocument.addEventListener(`DOMContentLoaded`,()=>this.isConnected&&this.connectedCallback(),{once:!0});return}this._doc=this.ownerDocument;let t=this.getAttribute(`data-wui-style`);if(t){for(let e of t.split(`;`)){let t=e.indexOf(`:`);t>0&&this.style.setProperty(e.slice(0,t).trim(),e.slice(t+1).trim())}this.removeAttribute(`data-wui-style`)}this._motion=typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(`(prefers-reduced-motion: reduce)`):null,this._motion?.addEventListener(`change`,this._onMotion),this.addEventListener(`click`,this._onClick),this.addEventListener(`mouseenter`,this._onEnter),this.addEventListener(`mouseleave`,this._onLeave),this.addEventListener(`focusin`,this._onFocusIn),this.addEventListener(`focusout`,this._onFocusOut),this._track.addEventListener(`keydown`,this._onKeyDown),this._track.addEventListener(`scroll`,this._onScroll,{passive:!0}),this._doc.addEventListener(`visibilitychange`,this._onVisibility),typeof MutationObserver<`u`&&(this._mutations=new MutationObserver(()=>this._refresh()),this._mutations.observe(this._track,{childList:!0})),typeof ResizeObserver<`u`&&(this._resizer=new ResizeObserver(()=>this._refresh()),this._resizer.observe(this._track)),this._ready=!0,this._refresh()}disconnectedCallback(){this._ready=!1,this._timer!==null&&clearTimeout(this._timer),this._settleTimer!==null&&clearTimeout(this._settleTimer),this._timer=null,this._motion?.removeEventListener(`change`,this._onMotion),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`mouseenter`,this._onEnter),this.removeEventListener(`mouseleave`,this._onLeave),this.removeEventListener(`focusin`,this._onFocusIn),this.removeEventListener(`focusout`,this._onFocusOut),this._track?.removeEventListener(`keydown`,this._onKeyDown),this._track?.removeEventListener(`scroll`,this._onScroll),this._doc?.removeEventListener(`visibilitychange`,this._onVisibility),this._mutations?.disconnect(),this._resizer?.disconnect(),this._mutations=this._resizer=this._motion=this._doc=null}attributeChangedCallback(){this._ready&&this._sync()}get paused(){return this._paused}set paused(e){this._paused=!!e,this._ready&&this._sync()}next(){this._page+1<this._pages?this._go(this._page+1):this.hasAttribute(`loop`)&&this._go(0)}prev(){this._page>0?this._go(this._page-1):this.hasAttribute(`loop`)&&this._go(this._pages-1)}goTo(e){this._go(Number(e))}_interval(){let e=Number.parseInt(this.getAttribute(`autoplay`)??``,10);return Math.max(e||0,0)}_slides(){let e=this._track;if(!e)throw Error(`WuiCarousel used before it was connected`);return Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.classList.contains(`wui-carousel-slide`))}_playing(){return this._interval()>0&&this._pages>1&&!this._paused&&!this._hover&&!this._focus&&!this._motion?.matches&&!this._doc?.hidden}_hold({hover:e=this._hover,focus:t=this._focus}){this._hover=e,this._focus=t,this._sync()}_click(e){let t=(e.target instanceof Element?e.target:null)?.closest(`.wui-carousel-pause, .wui-carousel-prev, .wui-carousel-next, .wui-carousel-dot`),n=t instanceof HTMLElement?t:null;if(!n||!this.contains(n))return;let r=this._track;if(!r)throw Error(`WuiCarousel used before it was connected`);r.contains(n)||(n.classList.contains(`wui-carousel-pause`)?(this._paused=!this._paused,this._hover=!1,this._focus=!1,this._sync()):n.getAttribute(`aria-disabled`)===`true`?e.preventDefault():n.classList.contains(`wui-carousel-prev`)?this.prev():n.classList.contains(`wui-carousel-next`)?this.next():this._go(Number(n.dataset.page)))}_key(e){if(e.target!==this._track||e.altKey||e.ctrlKey||e.metaKey)return;let t={ArrowRight:()=>this.next(),ArrowLeft:()=>this.prev(),Home:()=>this._go(0),End:()=>this._go(this._pages-1)}[(0,r.mirrorKey)(e.key,(0,r.isRtl)(this))];t&&(e.preventDefault(),t())}_perViewNow(){let e=``;if(typeof window<`u`){let t=this._track;if(!t)throw Error(`WuiCarousel used before it was connected`);e=window.getComputedStyle(t).getPropertyValue(`--wui-carousel-view`)}return Math.max(Number.parseInt(e,10)||0,1)}_start(e){return Math.min(e*this._perView,Math.max(0,this._slides().length-this._perView))}_label(){let e=this._slides();return e.forEach((t,n)=>{let r=(0,i.fillText)(d().slideText,{n:n+1,total:e.length});t.getAttribute(`aria-label`)!==r&&t.setAttribute(`aria-label`,r)}),e.length}_refresh(){let e=this._label();this._perView=this._perViewNow();let t=Math.max(1,Math.ceil(e/this._perView)),n=this.querySelector(`.wui-carousel-dots`);if(n&&n.children.length!==t){let e=this.getAttribute(`dot-label`)||d().dotLabel;n.replaceChildren(...Array.from({length:t},(t,n)=>{let r=this.ownerDocument.createElement(`button`);return r.type=`button`,r.className=`wui-carousel-dot`,r.dataset.page=String(n),r.setAttribute(`aria-label`,`${e} ${this._start(n)+1}`),r}))}this._pages=t,this._page=Math.min(this._page,t-1),this.toggleAttribute(`data-single`,t<=1),this._render(!1),this._sync()}_settle(){let e=this._track;if(!e)throw Error(`WuiCarousel used before it was connected`);let t=this._slides();if(!t.length)return;let n;if(e.scrollWidth>e.clientWidth&&e.scrollLeft+e.clientWidth>=e.scrollWidth-2)n=this._pages-1;else{let r=0,i=1/0;t.forEach((t,n)=>{let a=Math.abs(t.offsetLeft-e.scrollLeft);a<i&&(i=a,r=n)}),n=Math.min(this._pages-1,Math.round(r/this._perView))}n!==this._page&&(this._page=n,this._render(!0),this._sync())}_go(e){if(!Number.isInteger(e))return;this._page=Math.max(0,Math.min(this._pages-1,e));let t=this._track;if(!t)throw Error(`WuiCarousel used before it was connected`);let n=this._slides()[this._start(this._page)];if(n){let e=this._motion?.matches?`auto`:`smooth`;typeof t.scrollTo==`function`?t.scrollTo({left:n.offsetLeft,behavior:e}):t.scrollLeft=n.offsetLeft}this._render(!0),this._sync()}_render(e){let t=this.hasAttribute(`loop`);for(let e of this.querySelectorAll(`.wui-carousel-dot`))e instanceof HTMLElement&&(Number(e.dataset.page)===this._page?e.setAttribute(`aria-current`,`true`):e.removeAttribute(`aria-current`));this.querySelector(`.wui-carousel-prev`)?.setAttribute(`aria-disabled`,String(!t&&this._page===0)),this.querySelector(`.wui-carousel-next`)?.setAttribute(`aria-disabled`,String(!t&&this._page===this._pages-1));let n=this._slides().length,r=this._start(this._page)+1,a=Math.min(n,r+this._perView-1),o=r===a?(0,i.fillText)(d().statusTextOne,{first:r,total:n}):(0,i.fillText)(d().statusTextOther,{first:r,last:a,total:n});if(o===this._status||(this._status=o,!e))return;let s=this.querySelector(`[data-wui-status]`);s&&!this._playing()&&(s.textContent=o),this.dispatchEvent(new CustomEvent(`wui:carousel:change`,{bubbles:!0,detail:{page:this._page,pages:this._pages}}))}_sync(){this._timer!==null&&clearTimeout(this._timer),this._timer=null;let e=this._interval(),t=this.querySelector(`.wui-carousel-pause`);if(t instanceof HTMLElement){t.hidden=e===0||this._pages<=1||!!this._motion?.matches;let n=this._paused?this.getAttribute(`play-label`)||d().playLabel:this.getAttribute(`pause-label`)||d().pauseLabel,r=t.querySelector(`.wui-carousel-pause-text`);r&&r.textContent!==n&&(r.textContent=n),this.toggleAttribute(`data-paused`,this._paused)}this._playing()&&(this._timer=setTimeout(this._tick,e))}};(0,t.defineElement)(`wui-carousel`,p),e.WuiCarousel=p})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.rtl,WeborityUiElementsInternal.modules.textStore);
1
+ (function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=globalThis.WeborityUiElementsInternal?.version;if(a!==`0.193.0`)throw Error(`[webority-ui] carousel expects ui-elements 0.193.0 but the page loaded `+a+`.`);var o={carouselLabel:`carousel`,dotLabel:`Go to slide`,nextLabel:`Next slide`,pauseLabel:`Pause`,playLabel:`Play`,previousLabel:`Previous slide`,slideLabel:`slide`,slideText:`{n} of {total}`,statusTextOne:`Slide {first} of {total}`,statusTextOther:`Slides {first} to {last} of {total}`};function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=()=>(0,i.readText)(`carousel`,o),f=120,p=class extends n.ElementBase{static get observedAttributes(){return[`autoplay`]}constructor(){super(),u(this,`_page`,void 0),u(this,`_pages`,void 0),u(this,`_perView`,void 0),u(this,`_paused`,void 0),u(this,`_hover`,void 0),u(this,`_focus`,void 0),u(this,`_timer`,void 0),u(this,`_settleTimer`,void 0),u(this,`_status`,void 0),u(this,`_ready`,void 0),u(this,`_motion`,void 0),u(this,`_mutations`,void 0),u(this,`_resizer`,void 0),u(this,`_doc`,void 0),u(this,`_track`,void 0),u(this,`_onClick`,void 0),u(this,`_onKeyDown`,void 0),u(this,`_onScroll`,void 0),u(this,`_onEnter`,void 0),u(this,`_onLeave`,void 0),u(this,`_onFocusIn`,void 0),u(this,`_onFocusOut`,void 0),u(this,`_onVisibility`,void 0),u(this,`_onMotion`,void 0),u(this,`_tick`,void 0),this._page=0,this._pages=1,this._perView=1,this._paused=!1,this._hover=!1,this._focus=!1,this._timer=null,this._settleTimer=null,this._status=``,this._ready=!1,this._motion=null,this._mutations=null,this._resizer=null,this._doc=null,this._track=null,this._onClick=e=>this._click(e),this._onKeyDown=e=>this._key(e),this._onScroll=()=>{this._settleTimer!==null&&clearTimeout(this._settleTimer),this._settleTimer=setTimeout(()=>this._settle(),f)},this._onEnter=()=>this._hold({hover:!0}),this._onLeave=()=>this._hold({hover:!1}),this._onFocusIn=()=>this._hold({focus:!0}),this._onFocusOut=e=>this._hold({focus:e.relatedTarget instanceof Node&&this.contains(e.relatedTarget)}),this._onVisibility=()=>this._sync(),this._onMotion=()=>this._sync(),this._tick=()=>{this._timer=null,this._go(this._page+1<this._pages?this._page+1:0)}}connectedCallback(){let e=this.querySelector(`.wui-carousel-track`);if(this._track=e instanceof HTMLElement?e:null,!this._track){this.ownerDocument.readyState===`loading`&&this.ownerDocument.addEventListener(`DOMContentLoaded`,()=>this.isConnected&&this.connectedCallback(),{once:!0});return}this._doc=this.ownerDocument;let t=this.getAttribute(`data-wui-style`);if(t){for(let e of t.split(`;`)){let t=e.indexOf(`:`);t>0&&this.style.setProperty(e.slice(0,t).trim(),e.slice(t+1).trim())}this.removeAttribute(`data-wui-style`)}this._motion=typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(`(prefers-reduced-motion: reduce)`):null,this._motion?.addEventListener(`change`,this._onMotion),this.addEventListener(`click`,this._onClick),this.addEventListener(`mouseenter`,this._onEnter),this.addEventListener(`mouseleave`,this._onLeave),this.addEventListener(`focusin`,this._onFocusIn),this.addEventListener(`focusout`,this._onFocusOut),this._track.addEventListener(`keydown`,this._onKeyDown),this._track.addEventListener(`scroll`,this._onScroll,{passive:!0}),this._doc.addEventListener(`visibilitychange`,this._onVisibility),typeof MutationObserver<`u`&&(this._mutations=new MutationObserver(()=>this._refresh()),this._mutations.observe(this._track,{childList:!0})),typeof ResizeObserver<`u`&&(this._resizer=new ResizeObserver(()=>this._refresh()),this._resizer.observe(this._track)),this._ready=!0,this._refresh()}disconnectedCallback(){this._ready=!1,this._timer!==null&&clearTimeout(this._timer),this._settleTimer!==null&&clearTimeout(this._settleTimer),this._timer=null,this._motion?.removeEventListener(`change`,this._onMotion),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`mouseenter`,this._onEnter),this.removeEventListener(`mouseleave`,this._onLeave),this.removeEventListener(`focusin`,this._onFocusIn),this.removeEventListener(`focusout`,this._onFocusOut),this._track?.removeEventListener(`keydown`,this._onKeyDown),this._track?.removeEventListener(`scroll`,this._onScroll),this._doc?.removeEventListener(`visibilitychange`,this._onVisibility),this._mutations?.disconnect(),this._resizer?.disconnect(),this._mutations=this._resizer=this._motion=this._doc=null}attributeChangedCallback(){this._ready&&this._sync()}get paused(){return this._paused}set paused(e){this._paused=!!e,this._ready&&this._sync()}next(){this._page+1<this._pages?this._go(this._page+1):this.hasAttribute(`loop`)&&this._go(0)}prev(){this._page>0?this._go(this._page-1):this.hasAttribute(`loop`)&&this._go(this._pages-1)}goTo(e){this._go(Number(e))}_interval(){let e=Number.parseInt(this.getAttribute(`autoplay`)??``,10);return Math.max(e||0,0)}_slides(){let e=this._track;if(!e)throw Error(`WuiCarousel used before it was connected`);return Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.classList.contains(`wui-carousel-slide`))}_playing(){return this._interval()>0&&this._pages>1&&!this._paused&&!this._hover&&!this._focus&&!this._motion?.matches&&!this._doc?.hidden}_hold({hover:e=this._hover,focus:t=this._focus}){this._hover=e,this._focus=t,this._sync()}_click(e){let t=(e.target instanceof Element?e.target:null)?.closest(`.wui-carousel-pause, .wui-carousel-prev, .wui-carousel-next, .wui-carousel-dot`),n=t instanceof HTMLElement?t:null;if(!n||!this.contains(n))return;let r=this._track;if(!r)throw Error(`WuiCarousel used before it was connected`);r.contains(n)||(n.classList.contains(`wui-carousel-pause`)?(this._paused=!this._paused,this._hover=!1,this._focus=!1,this._sync()):n.getAttribute(`aria-disabled`)===`true`?e.preventDefault():n.classList.contains(`wui-carousel-prev`)?this.prev():n.classList.contains(`wui-carousel-next`)?this.next():this._go(Number(n.dataset.page)))}_key(e){if(e.target!==this._track||e.altKey||e.ctrlKey||e.metaKey)return;let t={ArrowRight:()=>this.next(),ArrowLeft:()=>this.prev(),Home:()=>this._go(0),End:()=>this._go(this._pages-1)}[(0,r.mirrorKey)(e.key,(0,r.isRtl)(this))];t&&(e.preventDefault(),t())}_perViewNow(){let e=``;if(typeof window<`u`){let t=this._track;if(!t)throw Error(`WuiCarousel used before it was connected`);e=window.getComputedStyle(t).getPropertyValue(`--wui-carousel-view`)}return Math.max(Number.parseInt(e,10)||0,1)}_start(e){return Math.min(e*this._perView,Math.max(0,this._slides().length-this._perView))}_label(){let e=this._slides();return e.forEach((t,n)=>{let r=(0,i.fillText)(d().slideText,{n:n+1,total:e.length});t.getAttribute(`aria-label`)!==r&&t.setAttribute(`aria-label`,r)}),e.length}_refresh(){let e=this._label();this._perView=this._perViewNow();let t=Math.max(1,Math.ceil(e/this._perView)),n=this.querySelector(`.wui-carousel-dots`);if(n&&n.children.length!==t){let e=this.getAttribute(`dot-label`)||d().dotLabel;n.replaceChildren(...Array.from({length:t},(t,n)=>{let r=this.ownerDocument.createElement(`button`);return r.type=`button`,r.className=`wui-carousel-dot`,r.dataset.page=String(n),r.setAttribute(`aria-label`,`${e} ${this._start(n)+1}`),r}))}this._pages=t,this._page=Math.min(this._page,t-1),this.toggleAttribute(`data-single`,t<=1),this._render(!1),this._sync()}_settle(){let e=this._track;if(!e)throw Error(`WuiCarousel used before it was connected`);let t=this._slides();if(!t.length)return;let n;if(e.scrollWidth>e.clientWidth&&e.scrollLeft+e.clientWidth>=e.scrollWidth-2)n=this._pages-1;else{let r=0,i=1/0;t.forEach((t,n)=>{let a=Math.abs(t.offsetLeft-e.scrollLeft);a<i&&(i=a,r=n)}),n=Math.min(this._pages-1,Math.round(r/this._perView))}n!==this._page&&(this._page=n,this._render(!0),this._sync())}_go(e){if(!Number.isInteger(e))return;this._page=Math.max(0,Math.min(this._pages-1,e));let t=this._track;if(!t)throw Error(`WuiCarousel used before it was connected`);let n=this._slides()[this._start(this._page)];if(n){let e=this._motion?.matches?`auto`:`smooth`;typeof t.scrollTo==`function`?t.scrollTo({left:n.offsetLeft,behavior:e}):t.scrollLeft=n.offsetLeft}this._render(!0),this._sync()}_render(e){let t=this.hasAttribute(`loop`);for(let e of this.querySelectorAll(`.wui-carousel-dot`))e instanceof HTMLElement&&(Number(e.dataset.page)===this._page?e.setAttribute(`aria-current`,`true`):e.removeAttribute(`aria-current`));this.querySelector(`.wui-carousel-prev`)?.setAttribute(`aria-disabled`,String(!t&&this._page===0)),this.querySelector(`.wui-carousel-next`)?.setAttribute(`aria-disabled`,String(!t&&this._page===this._pages-1));let n=this._slides().length,r=this._start(this._page)+1,a=Math.min(n,r+this._perView-1),o=r===a?(0,i.fillText)(d().statusTextOne,{first:r,total:n}):(0,i.fillText)(d().statusTextOther,{first:r,last:a,total:n});if(o===this._status||(this._status=o,!e))return;let s=this.querySelector(`[data-wui-status]`);s&&!this._playing()&&(s.textContent=o),this.dispatchEvent(new CustomEvent(`wui:carousel:change`,{bubbles:!0,detail:{page:this._page,pages:this._pages}}))}_sync(){this._timer!==null&&clearTimeout(this._timer),this._timer=null;let e=this._interval(),t=this.querySelector(`.wui-carousel-pause`);if(t instanceof HTMLElement){t.hidden=e===0||this._pages<=1||!!this._motion?.matches;let n=this._paused?this.getAttribute(`play-label`)||d().playLabel:this.getAttribute(`pause-label`)||d().pauseLabel,r=t.querySelector(`.wui-carousel-pause-text`);r&&r.textContent!==n&&(r.textContent=n),this.toggleAttribute(`data-paused`,this._paused)}this._playing()&&(this._timer=setTimeout(this._tick,e))}};(0,t.defineElement)(`wui-carousel`,p),e.WuiCarousel=p})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.rtl,WeborityUiElementsInternal.modules.textStore);
@@ -1 +1 @@
1
- (function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.191.3`)throw Error(`[webority-ui] code-block expects ui-elements 0.191.3 but the page loaded `+c+`.`);Object.freeze([`text`,`json`,`js`,`cs`,`sql`,`bash`,`http`,`html`,`razor`,`css`]);var l=Object.freeze({text:``,json:`JSON`,js:`JavaScript`,cs:`C#`,sql:`SQL`,bash:`Bash`,http:`HTTP`,html:`HTML`,razor:`Razor`,css:`CSS`}),u=e=>RegExp(`\\b(?:${e.join(`|`)})\\b`),d=`(?![\\s\\S])`,f=RegExp(`/\\*[\\s\\S]*?(?:\\*/|${d})`).source,p=[[`attr`,/"(?:[^"\\\n]|\\.)*"(?=\s*:)/],[`string`,/"(?:[^"\\\n]|\\.)*"?/],[`number`,/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/],[`literal`,u([`true`,`false`,`null`])],[`punct`,/[{}[\],:]/]],m=[[`comment`,RegExp(`//[^\\n]*|${f}`)],[`string`,/"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?|`(?:[^`\\]|\\[\s\S])*`?/],[`number`,/\b(?:0[xX][\da-fA-F_]+|\d[\d_]*\.?\d*(?:[eE][+-]?\d+)?n?)\b/],[`keyword`,u(`async.await.break.case.catch.class.const.continue.default.delete.do.else.export.extends.finally.for.from.function.if.import.in.instanceof.let.new.of.return.static.super.switch.this.throw.try.typeof.var.void.while.yield`.split(`.`))],[`literal`,u([`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`])],[`function`,RegExp(`(?<![\\w$])[A-Za-z_$][\\w$]*(?=\\s*\\()`,``)],[`type`,RegExp(`(?<![\\w$])[A-Z][\\w$]*`,``)],[`punct`,/[{}()[\];,]/]],h=[[`comment`,RegExp(`//[^\\n]*|${f}`)],[`string`,/@"(?:[^"]|"")*"?|\$@?"(?:[^"\\\n]|\\.)*"?|"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?/],[`number`,/\b\d[\d_]*\.?\d*(?:[eE][+-]?\d+)?[fFdDmMlLuU]{0,2}\b/],[`keyword`,u(`abstract.as.async.await.base.bool.break.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.else.enum.event.explicit.extern.finally.fixed.float.for.foreach.get.goto.if.implicit.in.init.int.interface.internal.is.lock.long.namespace.new.object.operator.out.override.params.private.protected.public.readonly.record.ref.required.return.sbyte.sealed.set.short.sizeof.static.string.struct.switch.this.throw.try.typeof.uint.ulong.unchecked.unsafe.ushort.using.var.virtual.void.volatile.when.while.with`.split(`.`))],[`literal`,u([`true`,`false`,`null`])],[`function`,RegExp(`(?<!\\w)[A-Za-z_]\\w*(?=\\s*\\()`,``)],[`type`,RegExp(`(?<!\\w)[A-Z]\\w*`,``)],[`punct`,/[{}()[\];,]/]],g=[[`comment`,RegExp(`--[^\\n]*|${f}`)],[`string`,/'(?:[^']|'')*'?/],[`variable`,/@@?\w+/],[`number`,/\b\d+(?:\.\d+)?\b/],[`keyword`,u(`add.all.alter.and.as.asc.begin.between.by.case.check.column.commit.constraint.create.cross.database.declare.default.delete.desc.distinct.drop.else.end.exec.execute.exists.foreign.from.full.function.group.having.if.in.index.inner.insert.into.is.join.key.left.like.limit.not.null.offset.on.or.order.outer.over.partition.primary.procedure.references.return.returns.right.rollback.select.set.table.then.top.transaction.union.unique.update.values.view.when.where.while.with`.split(`.`))],[`literal`,u([`true`,`false`])],[`type`,u([`bigint`,`bit`,`char`,`date`,`datetime`,`datetime2`,`decimal`,`float`,`int`,`money`,`nchar`,`numeric`,`nvarchar`,`real`,`smallint`,`text`,`time`,`tinyint`,`uniqueidentifier`,`varchar`])],[`function`,/\b[A-Za-z_]\w*(?=\s*\()/],[`punct`,/[(),;]/]],_=[[`comment`,RegExp(`(?<![^\\s;|&(])#[^\\n]*`,``)],[`string`,/"(?:[^"\\]|\\[\s\S])*"?|'[^']*'?/],[`variable`,/\$(?:\{[^}\n]*\}?|[A-Za-z_]\w*|[0-9@#?$!*-])/],[`attr`,RegExp(`(?<![\\w-])--?[A-Za-z][\\w-]*`,``)],[`number`,RegExp(`(?<![\\w.-])\\d+(?:\\.\\d+)?\\b`,``)],[`keyword`,u([`case`,`do`,`done`,`elif`,`else`,`esac`,`exit`,`export`,`fi`,`for`,`function`,`if`,`in`,`local`,`return`,`select`,`then`,`until`,`while`])],[`function`,u(`awk.az.cat.cd.chmod.chown.cp.curl.docker.dotnet.echo.gcloud.git.grep.kubectl.ls.mkdir.mv.npm.npx.pnpm.rm.sed.source.sudo.wget`.split(`.`))],[`punct`,/[|&;<>(){}[\]]+/]],v=[[`comment`,/^#[^\n]*/m],[`keyword`,/^(?:GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS|TRACE|CONNECT)(?= )/m],[`literal`,/HTTP\/\d(?:\.\d)?/],[`number`,RegExp(`(?<=^HTTP\\/\\d(?:\\.\\d)? )\\d{3}\\b`,`m`)],[`function`,RegExp(`(?<=^[A-Z]+ )\\S+`,`m`)],[`attr`,/^[A-Za-z][\w-]*(?=:)/m],[`string`,RegExp(`(?<=^[A-Za-z][\\w-]*:[ \\t]*)[^\\n]+`,`m`)]],y=[[`comment`,RegExp(`<!--[\\s\\S]*?(?:-->|${d})`)],[`keyword`,/<![A-Za-z][^>]*>?/],[`tag`,/<\/?[A-Za-z][^<>]*>?/],[`literal`,/&#?\w+;/]],b=[[`tag`,/^<\/?[\w:.-]+/],[`string`,/"[^"]*"?|'[^']*'?/],[`attr`,RegExp(`(?<=\\s)[^\\s=<>/"']+`,``)],[`punct`,/\/?>|=/]],x={json:p,js:m,cs:h,sql:g,bash:_,http:v,css:[[`comment`,new RegExp(f)],[`string`,/"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?/],[`keyword`,/@[\w-]+|!important/],[`attr`,/[\w-]+(?=\s*:[^{};]*[;}])/],[`number`,RegExp(`#[0-9a-fA-F]{3,8}\\b|(?<![\\w-])-?(?:\\d+\\.?\\d*|\\.\\d+)(?:%|[A-Za-z]{1,4})?`,``)],[`function`,/[\w-]+(?=\()/],[`type`,/[.#](?!\d)[A-Za-z_][\w-]*/],[`punct`,/[{}();:,]/]],html:y,htmlTag:b},S=e=>(0,r.hasOwn)(x,e),C=new Map;function w(e){let t=C.get(e);if(!t){let n=x[e],r=e===`sql`?`gi`:`g`,i=n.map(([,e])=>`(${e.source})`).join(`|`);t={re:new RegExp(i,`${r}m`),types:n.map(([e])=>e)},C.set(e,t)}return t}function T(e,t,n){if(!n)return;let r=e[e.length-1];r&&r[0]===t?r[1]+=n:e.push([t,n])}function E(e,t,n=[]){let{re:r,types:i}=w(e),a=0;for(let o of t.matchAll(r)){let r=o[0];if(!r)continue;T(n,`plain`,t.slice(a,o.index));let s=i.findIndex((e,t)=>o[t+1]!==void 0);e===`html`&&i[s]===`tag`?E(`htmlTag`,r,n):T(n,i[s]??`plain`,r),a=o.index+r.length}return T(n,`plain`,t.slice(a)),n}function D(e){let t=/\r?\n\r?\n/.exec(e);if(!t)return E(`http`,e);let n=t[0]??``,r=E(`http`,e.slice(0,t.index+n.length)),i=e.slice(t.index+n.length),a=i.trimStart()[0];return a===`{`||a===`[`?E(`json`,i,r):a===`<`?E(`html`,i,r):(T(r,`plain`,i),r)}function O(e,t){let n=String(e??``);if(!n||n.length>1e5)return n?[[`plain`,n]]:[];if(t===`http`)return D(n);let r=t===`razor`?`html`:t;return!S(r)||r===`htmlTag`?[[`plain`,n]]:E(r,n)}function k(e,t){let n=[],r=[n];for(let[i,a]of O(e,t))a.split(/\r\n|\r|\n/).forEach((e,t)=>{t>0&&(n=[],r.push(n)),e&&n.push([i,e])});return r.length>1&&n.length===0&&r.pop(),r}var A={copiedLabel:`Copied`,copyLabel:`Copy`,label:`Code`};function j(e){"@babel/helpers - typeof";return j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},j(e)}function M(e,t){if(j(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(j(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function N(e){var t=M(e,`string`);return j(t)==`symbol`?t:t+``}function P(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=()=>(0,s.readText)(`codeBlock`,A);function I(e){return(0,r.hasOwn)(l,e)}var L=class extends a.ElementBase{constructor(){super(),P(this,`_title`,void 0),P(this,`_view`,void 0),P(this,`_codeEl`,void 0),P(this,`_copyIcon`,void 0),P(this,`_copyText`,void 0),P(this,`_chrome`,null),P(this,`_copied`,!1),P(this,`_observer`,null),P(this,`_timer`,0),P(this,`_cancelFrame`,null);let e=this.ownerDocument;this._title=e.createElement(`span`),this._title.className=`wui-code-title`,this._view=e.createElement(`div`),this._codeEl=e.createElement(`code`),this._copyIcon=e.createElement(`span`),this._copyIcon.className=`wui-code-copy-icon`,this._copyText=e.createElement(`span`)}static get observedAttributes(){return[`language`,`line-numbers`,`wrap`,`label`,`copy-label`,`copied-label`]}connectedCallback(){this._render(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(e=>{e.some(e=>!this._chrome?.contains(e.target))&&this._schedule()}),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0}))}disconnectedCallback(){this._observer?.disconnect(),this._observer=null,this._cancelPending()}attributeChangedCallback(){this.isConnected&&this._render()}_source(){return Array.from(this.children).find(e=>e.classList.contains(`wui-code-source`))}_code(){return(this._source()?.textContent??``).replace(/\r?\n$/,``)}_schedule(){if(this._cancelFrame)return;let e=()=>{this._cancelFrame=null,this._render()};if(typeof requestAnimationFrame==`function`){let t=requestAnimationFrame(e);this._cancelFrame=()=>cancelAnimationFrame(t)}else{let t=!0;queueMicrotask(()=>{t&&e()}),this._cancelFrame=()=>{t=!1}}}_cancelPending(){this._cancelFrame?.(),this._cancelFrame=null}_render(){if(!this._source())return;this._cancelPending();let e=this.ownerDocument;this._chrome||this._build(e);let t=this.getAttribute(`language`),n=t!==null&&I(t)?t:`text`,r=this.getAttribute(`label`)||``,i=k(this._code(),n);this._title.textContent=r||l[n],this._view.setAttribute(`aria-label`,r||F().label),this._view.style.setProperty(`--wui-code-digits`,String(String(i.length).length)),this._codeEl.replaceChildren(...i.map(t=>R(e,t))),this._copied||(this._copyText.textContent=this._copyLabel()),this.setAttribute(`data-wui-ready`,``),this._observer?.takeRecords()}_build(e){let t=e.createElement(`div`);t.className=`wui-code-chrome`,t.append(this._bar(e));let n=this._view;n.className=`wui-code-view`,n.setAttribute(`role`,`region`),n.tabIndex=0;let r=e.createElement(`pre`);r.className=`wui-code-pre`,r.append(this._codeEl),n.append(r),t.append(n),this._chrome=t,this.append(t)}_bar(e){let t=e.createElement(`div`);t.className=`wui-code-bar`;let r=e.createElement(`button`);return r.type=`button`,r.className=`${(0,n.buttonClass)(`primary`,`ghost`,`sm`)} wui-code-copy`,r.dataset.wui=n.APP_BUTTON_MARKER,r.setAttribute(`aria-live`,`polite`),this._setCopied(!1),r.append(this._copyIcon,this._copyText),r.addEventListener(`click`,async()=>{await(0,i.copyTextToClipboard)(this._code())&&(this._setCopied(!0),clearTimeout(this._timer),this._timer=window.setTimeout(()=>this._setCopied(!1),i.COPY_FEEDBACK_MS))}),t.append(this._title,r),t}_setCopied(e){this._copied=e;let t=(0,o.glyphNode)(e?`check`:`files`,{size:14});this._copyIcon.replaceChildren(...t?[t]:[]),this._copyText.textContent=this._copyLabel()}_copyLabel(){return this._copied?this.getAttribute(`copied-label`)||F().copiedLabel:this.getAttribute(`copy-label`)||F().copyLabel}};function R(e,t){let n=e.createElement(`span`);n.className=`wui-code-line`;for(let[r,i]of t){if(r===`plain`){n.append(i);continue}let t=e.createElement(`span`);t.className=`wui-code-t-${r}`,t.textContent=i,n.append(t)}return n}(0,t.defineElement)(`wui-code-block`,L),e.WuiCodeBlock=L})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.buttonClass,WeborityUiElementsInternal.modules.hasOwn,WeborityUiElementsInternal.modules.copyText,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.iconGlyphs,WeborityUiElementsInternal.modules.textStore);
1
+ (function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.193.0`)throw Error(`[webority-ui] code-block expects ui-elements 0.193.0 but the page loaded `+c+`.`);Object.freeze([`text`,`json`,`js`,`cs`,`sql`,`bash`,`http`,`html`,`razor`,`css`]);var l=Object.freeze({text:``,json:`JSON`,js:`JavaScript`,cs:`C#`,sql:`SQL`,bash:`Bash`,http:`HTTP`,html:`HTML`,razor:`Razor`,css:`CSS`}),u=e=>RegExp(`\\b(?:${e.join(`|`)})\\b`),d=`(?![\\s\\S])`,f=RegExp(`/\\*[\\s\\S]*?(?:\\*/|${d})`).source,p=[[`attr`,/"(?:[^"\\\n]|\\.)*"(?=\s*:)/],[`string`,/"(?:[^"\\\n]|\\.)*"?/],[`number`,/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/],[`literal`,u([`true`,`false`,`null`])],[`punct`,/[{}[\],:]/]],m=[[`comment`,RegExp(`//[^\\n]*|${f}`)],[`string`,/"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?|`(?:[^`\\]|\\[\s\S])*`?/],[`number`,/\b(?:0[xX][\da-fA-F_]+|\d[\d_]*\.?\d*(?:[eE][+-]?\d+)?n?)\b/],[`keyword`,u(`async.await.break.case.catch.class.const.continue.default.delete.do.else.export.extends.finally.for.from.function.if.import.in.instanceof.let.new.of.return.static.super.switch.this.throw.try.typeof.var.void.while.yield`.split(`.`))],[`literal`,u([`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`])],[`function`,RegExp(`(?<![\\w$])[A-Za-z_$][\\w$]*(?=\\s*\\()`,``)],[`type`,RegExp(`(?<![\\w$])[A-Z][\\w$]*`,``)],[`punct`,/[{}()[\];,]/]],h=[[`comment`,RegExp(`//[^\\n]*|${f}`)],[`string`,/@"(?:[^"]|"")*"?|\$@?"(?:[^"\\\n]|\\.)*"?|"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?/],[`number`,/\b\d[\d_]*\.?\d*(?:[eE][+-]?\d+)?[fFdDmMlLuU]{0,2}\b/],[`keyword`,u(`abstract.as.async.await.base.bool.break.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.else.enum.event.explicit.extern.finally.fixed.float.for.foreach.get.goto.if.implicit.in.init.int.interface.internal.is.lock.long.namespace.new.object.operator.out.override.params.private.protected.public.readonly.record.ref.required.return.sbyte.sealed.set.short.sizeof.static.string.struct.switch.this.throw.try.typeof.uint.ulong.unchecked.unsafe.ushort.using.var.virtual.void.volatile.when.while.with`.split(`.`))],[`literal`,u([`true`,`false`,`null`])],[`function`,RegExp(`(?<!\\w)[A-Za-z_]\\w*(?=\\s*\\()`,``)],[`type`,RegExp(`(?<!\\w)[A-Z]\\w*`,``)],[`punct`,/[{}()[\];,]/]],g=[[`comment`,RegExp(`--[^\\n]*|${f}`)],[`string`,/'(?:[^']|'')*'?/],[`variable`,/@@?\w+/],[`number`,/\b\d+(?:\.\d+)?\b/],[`keyword`,u(`add.all.alter.and.as.asc.begin.between.by.case.check.column.commit.constraint.create.cross.database.declare.default.delete.desc.distinct.drop.else.end.exec.execute.exists.foreign.from.full.function.group.having.if.in.index.inner.insert.into.is.join.key.left.like.limit.not.null.offset.on.or.order.outer.over.partition.primary.procedure.references.return.returns.right.rollback.select.set.table.then.top.transaction.union.unique.update.values.view.when.where.while.with`.split(`.`))],[`literal`,u([`true`,`false`])],[`type`,u([`bigint`,`bit`,`char`,`date`,`datetime`,`datetime2`,`decimal`,`float`,`int`,`money`,`nchar`,`numeric`,`nvarchar`,`real`,`smallint`,`text`,`time`,`tinyint`,`uniqueidentifier`,`varchar`])],[`function`,/\b[A-Za-z_]\w*(?=\s*\()/],[`punct`,/[(),;]/]],_=[[`comment`,RegExp(`(?<![^\\s;|&(])#[^\\n]*`,``)],[`string`,/"(?:[^"\\]|\\[\s\S])*"?|'[^']*'?/],[`variable`,/\$(?:\{[^}\n]*\}?|[A-Za-z_]\w*|[0-9@#?$!*-])/],[`attr`,RegExp(`(?<![\\w-])--?[A-Za-z][\\w-]*`,``)],[`number`,RegExp(`(?<![\\w.-])\\d+(?:\\.\\d+)?\\b`,``)],[`keyword`,u([`case`,`do`,`done`,`elif`,`else`,`esac`,`exit`,`export`,`fi`,`for`,`function`,`if`,`in`,`local`,`return`,`select`,`then`,`until`,`while`])],[`function`,u(`awk.az.cat.cd.chmod.chown.cp.curl.docker.dotnet.echo.gcloud.git.grep.kubectl.ls.mkdir.mv.npm.npx.pnpm.rm.sed.source.sudo.wget`.split(`.`))],[`punct`,/[|&;<>(){}[\]]+/]],v=[[`comment`,/^#[^\n]*/m],[`keyword`,/^(?:GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS|TRACE|CONNECT)(?= )/m],[`literal`,/HTTP\/\d(?:\.\d)?/],[`number`,RegExp(`(?<=^HTTP\\/\\d(?:\\.\\d)? )\\d{3}\\b`,`m`)],[`function`,RegExp(`(?<=^[A-Z]+ )\\S+`,`m`)],[`attr`,/^[A-Za-z][\w-]*(?=:)/m],[`string`,RegExp(`(?<=^[A-Za-z][\\w-]*:[ \\t]*)[^\\n]+`,`m`)]],y=[[`comment`,RegExp(`<!--[\\s\\S]*?(?:-->|${d})`)],[`keyword`,/<![A-Za-z][^>]*>?/],[`tag`,/<\/?[A-Za-z][^<>]*>?/],[`literal`,/&#?\w+;/]],b=[[`tag`,/^<\/?[\w:.-]+/],[`string`,/"[^"]*"?|'[^']*'?/],[`attr`,RegExp(`(?<=\\s)[^\\s=<>/"']+`,``)],[`punct`,/\/?>|=/]],x={json:p,js:m,cs:h,sql:g,bash:_,http:v,css:[[`comment`,new RegExp(f)],[`string`,/"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?/],[`keyword`,/@[\w-]+|!important/],[`attr`,/[\w-]+(?=\s*:[^{};]*[;}])/],[`number`,RegExp(`#[0-9a-fA-F]{3,8}\\b|(?<![\\w-])-?(?:\\d+\\.?\\d*|\\.\\d+)(?:%|[A-Za-z]{1,4})?`,``)],[`function`,/[\w-]+(?=\()/],[`type`,/[.#](?!\d)[A-Za-z_][\w-]*/],[`punct`,/[{}();:,]/]],html:y,htmlTag:b},S=e=>(0,r.hasOwn)(x,e),C=new Map;function w(e){let t=C.get(e);if(!t){let n=x[e],r=e===`sql`?`gi`:`g`,i=n.map(([,e])=>`(${e.source})`).join(`|`);t={re:new RegExp(i,`${r}m`),types:n.map(([e])=>e)},C.set(e,t)}return t}function T(e,t,n){if(!n)return;let r=e[e.length-1];r&&r[0]===t?r[1]+=n:e.push([t,n])}function E(e,t,n=[]){let{re:r,types:i}=w(e),a=0;for(let o of t.matchAll(r)){let r=o[0];if(!r)continue;T(n,`plain`,t.slice(a,o.index));let s=i.findIndex((e,t)=>o[t+1]!==void 0);e===`html`&&i[s]===`tag`?E(`htmlTag`,r,n):T(n,i[s]??`plain`,r),a=o.index+r.length}return T(n,`plain`,t.slice(a)),n}function D(e){let t=/\r?\n\r?\n/.exec(e);if(!t)return E(`http`,e);let n=t[0]??``,r=E(`http`,e.slice(0,t.index+n.length)),i=e.slice(t.index+n.length),a=i.trimStart()[0];return a===`{`||a===`[`?E(`json`,i,r):a===`<`?E(`html`,i,r):(T(r,`plain`,i),r)}function O(e,t){let n=String(e??``);if(!n||n.length>1e5)return n?[[`plain`,n]]:[];if(t===`http`)return D(n);let r=t===`razor`?`html`:t;return!S(r)||r===`htmlTag`?[[`plain`,n]]:E(r,n)}function k(e,t){let n=[],r=[n];for(let[i,a]of O(e,t))a.split(/\r\n|\r|\n/).forEach((e,t)=>{t>0&&(n=[],r.push(n)),e&&n.push([i,e])});return r.length>1&&n.length===0&&r.pop(),r}var A={copiedLabel:`Copied`,copyLabel:`Copy`,label:`Code`};function j(e){"@babel/helpers - typeof";return j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},j(e)}function M(e,t){if(j(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(j(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function N(e){var t=M(e,`string`);return j(t)==`symbol`?t:t+``}function P(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=()=>(0,s.readText)(`codeBlock`,A);function I(e){return(0,r.hasOwn)(l,e)}var L=class extends a.ElementBase{constructor(){super(),P(this,`_title`,void 0),P(this,`_view`,void 0),P(this,`_codeEl`,void 0),P(this,`_copyIcon`,void 0),P(this,`_copyText`,void 0),P(this,`_chrome`,null),P(this,`_copied`,!1),P(this,`_observer`,null),P(this,`_timer`,0),P(this,`_cancelFrame`,null);let e=this.ownerDocument;this._title=e.createElement(`span`),this._title.className=`wui-code-title`,this._view=e.createElement(`div`),this._codeEl=e.createElement(`code`),this._copyIcon=e.createElement(`span`),this._copyIcon.className=`wui-code-copy-icon`,this._copyText=e.createElement(`span`)}static get observedAttributes(){return[`language`,`line-numbers`,`wrap`,`label`,`copy-label`,`copied-label`]}connectedCallback(){this._render(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(e=>{e.some(e=>!this._chrome?.contains(e.target))&&this._schedule()}),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0}))}disconnectedCallback(){this._observer?.disconnect(),this._observer=null,this._cancelPending()}attributeChangedCallback(){this.isConnected&&this._render()}_source(){return Array.from(this.children).find(e=>e.classList.contains(`wui-code-source`))}_code(){return(this._source()?.textContent??``).replace(/\r?\n$/,``)}_schedule(){if(this._cancelFrame)return;let e=()=>{this._cancelFrame=null,this._render()};if(typeof requestAnimationFrame==`function`){let t=requestAnimationFrame(e);this._cancelFrame=()=>cancelAnimationFrame(t)}else{let t=!0;queueMicrotask(()=>{t&&e()}),this._cancelFrame=()=>{t=!1}}}_cancelPending(){this._cancelFrame?.(),this._cancelFrame=null}_render(){if(!this._source())return;this._cancelPending();let e=this.ownerDocument;this._chrome||this._build(e);let t=this.getAttribute(`language`),n=t!==null&&I(t)?t:`text`,r=this.getAttribute(`label`)||``,i=k(this._code(),n);this._title.textContent=r||l[n],this._view.setAttribute(`aria-label`,r||F().label),this._view.style.setProperty(`--wui-code-digits`,String(String(i.length).length)),this._codeEl.replaceChildren(...i.map(t=>R(e,t))),this._copied||(this._copyText.textContent=this._copyLabel()),this.setAttribute(`data-wui-ready`,``),this._observer?.takeRecords()}_build(e){let t=e.createElement(`div`);t.className=`wui-code-chrome`,t.append(this._bar(e));let n=this._view;n.className=`wui-code-view`,n.setAttribute(`role`,`region`),n.tabIndex=0;let r=e.createElement(`pre`);r.className=`wui-code-pre`,r.append(this._codeEl),n.append(r),t.append(n),this._chrome=t,this.append(t)}_bar(e){let t=e.createElement(`div`);t.className=`wui-code-bar`;let r=e.createElement(`button`);return r.type=`button`,r.className=`${(0,n.buttonClass)(`primary`,`ghost`,`sm`)} wui-code-copy`,r.dataset.wui=n.APP_BUTTON_MARKER,r.setAttribute(`aria-live`,`polite`),this._setCopied(!1),r.append(this._copyIcon,this._copyText),r.addEventListener(`click`,async()=>{await(0,i.copyTextToClipboard)(this._code())&&(this._setCopied(!0),clearTimeout(this._timer),this._timer=window.setTimeout(()=>this._setCopied(!1),i.COPY_FEEDBACK_MS))}),t.append(this._title,r),t}_setCopied(e){this._copied=e;let t=(0,o.glyphNode)(e?`check`:`files`,{size:14});this._copyIcon.replaceChildren(...t?[t]:[]),this._copyText.textContent=this._copyLabel()}_copyLabel(){return this._copied?this.getAttribute(`copied-label`)||F().copiedLabel:this.getAttribute(`copy-label`)||F().copyLabel}};function R(e,t){let n=e.createElement(`span`);n.className=`wui-code-line`;for(let[r,i]of t){if(r===`plain`){n.append(i);continue}let t=e.createElement(`span`);t.className=`wui-code-t-${r}`,t.textContent=i,n.append(t)}return n}(0,t.defineElement)(`wui-code-block`,L),e.WuiCodeBlock=L})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.buttonClass,WeborityUiElementsInternal.modules.hasOwn,WeborityUiElementsInternal.modules.copyText,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.iconGlyphs,WeborityUiElementsInternal.modules.textStore);
@@ -1,2 +1,2 @@
1
- (function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=globalThis.WeborityUiElementsInternal?.version;if(o!==`0.191.3`)throw Error(`[webority-ui] command-palette expects ui-elements 0.191.3 but the page loaded `+o+`.`);var s={allCountText:`All ({count})`,ariaLabel:`Search`,backLabel:`Back`,emptyText:`No results`,errorRetryLabel:`Try again`,placeholder:`Search…`,recentsLabel:`Recent`,resultGroupsLabel:`Result groups`,resultsLabel:`Results`,rootLabel:`All`};function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(e,t){if(c(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(c(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function u(e){var t=l(e,`string`);return c(t)==`symbol`?t:t+``}function d(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=`[role="option"]`,p=()=>(0,i.readText)(`commandPalette`,s),m=5,h=20,g=`.wui-cmd-back, [data-depth]`,_=`[data-group-tab]`,v=`.wui-cmd-error-retry`,y=0;function b(e,t){if(!(e instanceof Element))return null;let n=e.closest(t);return n instanceof HTMLElement?n:null}var x=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},S=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n),C=class extends r.ElementBase{static get observedAttributes(){return[`filter`,`group-filter`,`highlight`,`empty-text`,`path`,`root-label`,`recents-key`,`recents-limit`,`recents-label`]}constructor(){super(),d(this,`_path`,void 0),d(this,`_group`,void 0),d(this,`_crumbSig`,void 0),d(this,`_modal`,void 0),d(this,`_recentsId`,void 0),d(this,`_onModalClosed`,void 0),d(this,`_activeId`,void 0),d(this,`_lastQuery`,void 0),d(this,`_lastIds`,void 0),d(this,`_userChose`,void 0),d(this,`_onKeyDown`,void 0),d(this,`_onClick`,void 0),d(this,`_onMouseDown`,void 0),d(this,`_onMouseMove`,void 0),d(this,`_onInput`,void 0),this._path=[],this._group=null,this._crumbSig=null,this._modal=null,this._recentsId=`wui-cmd-recents-${++y}`,this._onModalClosed=()=>{this._setKeyboard(!1),this._reset(),this.hasAttribute(`path`)&&this._restart()},this._activeId=null,this._lastQuery=null,this._lastIds=null,this._userChose=!1,this._onKeyDown=e=>this._handleKeyDown(e),this._onClick=e=>{let t=b(e.target,v);if(t&&this.contains(t)){this.dispatchEvent(new CustomEvent(`wui-command-palette:retry`,{bubbles:!0}));return}let n=b(e.target,g);if(n&&this.contains(n)){let e=n.matches(`.wui-cmd-back`)?this._path.length-1:Number(n.dataset.depth);this._goTo(this._path.slice(0,e));return}let r=b(e.target,_);if(r&&this.contains(r)){this._pickGroup(r.dataset.groupTab||null);return}let i=this._optionFrom(e.target);i&&this._select(i)},this._onMouseDown=e=>{let t=b(e.target,g),n=b(e.target,_);(t&&this.contains(t)||n&&this.contains(n)||this._optionFrom(e.target,!0))&&e.preventDefault()},this._onMouseMove=e=>{let t=this._optionFrom(e.target);t&&t.id!==this._activeId&&(this._setKeyboard(!1),this._userChose=!0,this._setActive(t,!1))},this._onInput=e=>{this.hasAttribute(`filter`)&&e.target===this._input()&&(this._group=null,this._applyFilter(),this.refresh())}}connectedCallback(){this._teardown(),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`click`,this._onClick),this.addEventListener(`mousedown`,this._onMouseDown),this.addEventListener(`mousemove`,this._onMouseMove),this.addEventListener(`input`,this._onInput),this._modal=this.closest(`wui-modal`),this._modal?.addEventListener(`wui-modal-closed`,this._onModalClosed),this._readPath(),this.hasAttribute(`filter`)&&this._applyFilter(),this.refresh()}disconnectedCallback(){this._teardown()}attributeChangedCallback(e){this.isConnected&&(e===`path`&&this._readPath(),this.hasAttribute(`filter`)&&this._applyFilter(),this.refresh())}get filter(){return this.hasAttribute(`filter`)}set filter(e){this.toggleAttribute(`filter`,!!e)}get highlight(){return this.getAttribute(`highlight`)!==`false`}set highlight(e){this.setAttribute(`highlight`,e?`true`:`false`)}get emptyText(){return this.getAttribute(`empty-text`)??p().emptyText}set emptyText(e){this.setAttribute(`empty-text`,String(e??``))}refresh(){this._renderRecents(),this._renderCrumbs(),this._syncTabs();let e=this._input(),t=e?e.value:``,n=t!==this._lastQuery;this._lastQuery=t;let r=this._selectableOptions(),i=r.map(e=>e.id).join(`
2
- `),a=i!==this._lastIds;this._lastIds=i;let o=!n&&(this._userChose||!a)?r.find(e=>e.id===this._activeId):null;o||(this._userChose=!1,this._setKeyboard(!1)),this._setActive(o??r[0]??null,n)}_input(){let e=this.querySelector(`[role="combobox"]`);return e instanceof HTMLInputElement?e:null}_optionFrom(e,t=!1){let n=b(e,f);return n&&this.contains(n)&&!this._isHidden(n)&&(t||!this._isDisabled(n))?n:null}_isDisabled(e){return e.getAttribute(`aria-disabled`)===`true`}_isHidden(e){return e.hidden!==!1||(b(e,`[role="group"]`)?.hidden??!1)!==!1}_selectableOptions(){return S(this,f,HTMLElement).filter(e=>!this._isHidden(e)&&!this._isDisabled(e))}_setActive(e,t){this._activeId=e?e.id:null;for(let t of S(this,f,HTMLElement))t.setAttribute(`aria-selected`,t===e?`true`:`false`);let n=this._input();n&&(e?n.setAttribute(`aria-activedescendant`,e.id):n.removeAttribute(`aria-activedescendant`)),e&&t&&e.scrollIntoView({block:`nearest`})}_move(e){let t=this._selectableOptions();if(!t.length)return;let n=t.findIndex(e=>e.id===this._activeId),r=n<0?e>0?0:t.length-1:(n+e+t.length)%t.length;this._userChose=!0,this._setKeyboard(!0),this._setActive(t[r]??null,!0)}_setKeyboard(e){this.toggleAttribute(`data-keyboard`,e)}_handleKeyDown(e){let t=this._input();if(t&&e.target===t){if(e.key===`ArrowDown`||e.key===`ArrowUp`)e.preventDefault(),this._move(e.key===`ArrowDown`?1:-1);else if(e.key===`Tab`&&this._groupActive()&&this._tabs().length)e.preventDefault(),this._cycleGroup(e.shiftKey?-1:1);else if(e.key===`Backspace`&&!e.isComposing&&this._path.length&&!t.value)e.preventDefault(),this._goTo(this._path.slice(0,-1));else if(e.key===`Enter`&&!e.isComposing){let t=this._selectableOptions().find(e=>e.id===this._activeId);if(!t)return;e.preventDefault(),this._select(t)}}}_select(e){this._remember(e),this.dispatchEvent(new CustomEvent(`wui-command-palette:select`,{bubbles:!0,cancelable:!0,detail:{key:e.dataset.key??null,groupKey:e.dataset.groupKey??null,id:e.id}}))&&(e.dataset.opens?this._open(e.dataset.opens):e.dataset.href&&this._navigate(e.dataset.href))}_open(e){let t=S(this,`.wui-cmd-page`,HTMLElement).find(t=>t.dataset.page===e);this._goTo([...this._path,{key:e,label:t?.dataset.label??e}])}_goTo(e){this._input()?.focus(),this.dispatchEvent(new CustomEvent(`wui-command-palette:navigate`,{bubbles:!0,cancelable:!0,detail:{path:e}}))&&(this._path=e,this._restart())}_tabs(){return S(this,_,HTMLElement)}_groupActive(){return this.hasAttribute(`group-filter`)&&this._path.length===0}_pickGroup(e){this._group=e,this._applyFilter(),this.refresh()}_cycleGroup(e){let t=this._tabs().map(e=>e.dataset.groupTab||null),n=Math.max(0,t.indexOf(this._group));this._pickGroup(t[(n+e+t.length)%t.length]??null)}_syncTabs(){if(!this.hasAttribute(`group-filter`))return;let e=x(this,`.wui-cmd-tabs`,HTMLElement);e&&(e.hidden=!this._groupActive());for(let e of this._tabs())e.setAttribute(`aria-selected`,String((e.dataset.groupTab||null)===this._group))}_restart(){this._group=null;let e=this._input();e&&(e.value=``),this.hasAttribute(`filter`)&&this._applyFilter(),this.refresh()}_reset(){this.hasAttribute(`path`)||(this._path=[],this._restart())}_readPath(){let e=this.getAttribute(`path`);if(e==null)return;let t=JSON.parse(e);this._path=Array.isArray(t)?t.filter(e=>e&&typeof e.key==`string`&&typeof e.label==`string`):[]}_renderCrumbs(){let e=x(this,`.wui-cmd-crumbs`,HTMLElement);if(!e)return;let t=this.getAttribute(`root-label`)??p().rootLabel,n=JSON.stringify([t,this._path]);if(e.hidden=this._path.length===0,n===this._crumbSig)return;this._crumbSig=n;let r=x(e,`.wui-cmd-trail`,HTMLElement);if(!r)return;let i=[t,...this._path.map(e=>e.label)];r.replaceChildren(...i.map((e,t)=>{let n=document.createElement(`li`),r=t===i.length-1,a=document.createElement(r?`span`:`button`);if(a.className=`wui-cmd-crumb`,a.textContent=e,r)a.setAttribute(`aria-current`,`page`);else{if(!(a instanceof HTMLButtonElement))throw Error(`breadcrumb button missing`);a.type=`button`,a.dataset.depth=String(t)}return n.append(a),n}))}_recentsHost(){return x(this,`.wui-cmd-recents`,HTMLElement)}_realOptions(){let e=this._recentsHost();return S(this,f,HTMLElement).filter(t=>!e?.contains(t))}_recentEntries(){let e=this.getAttribute(`recents-key`);if(!e)return[];let t;try{t=JSON.parse(globalThis.localStorage?.getItem(e)??`[]`)}catch{return[]}return Array.isArray(t)?t.filter(e=>e&&typeof e.g==`string`&&typeof e.k==`string`):[]}_recentsLimit(){let e=Number.parseInt(this.getAttribute(`recents-limit`)??``,10);return Number.isFinite(e)&&e>0?Math.min(e,h):m}_remember(e){let t=this.getAttribute(`recents-key`),{groupKey:n,key:r,opens:i}=e.dataset;if(!t||i||n==null||r==null)return;let a=[{g:n,k:r},...this._recentEntries().filter(e=>e.g!==n||e.k!==r)];try{globalThis.localStorage?.setItem(t,JSON.stringify(a.slice(0,this._recentsLimit())))}catch(e){if(!(e instanceof DOMException))throw e}}_renderRecents(){let e=this._recentsHost();if(!e)return;let t=this._input(),n=this._groupActive()?this._group:null,r=this._path.length===0&&!(t?.value??``).trim()?this._recentEntries().filter(e=>!n||e.g===n):[],i=this._realOptions(),a=[];for(let e of r){let t=i.find(t=>t.dataset.groupKey===e.g&&t.dataset.key===e.k);if(t&&!t.dataset.opens&&!this._isDisabled(t)&&a.push(t),a.length>=this._recentsLimit())break}if(!a.length){e.firstChild&&e.replaceChildren();return}let o=`${this._recentsId}-label`,s=document.createElement(`div`);s.className=`wui-cmd-group`,s.setAttribute(`role`,`group`),s.setAttribute(`aria-labelledby`,o);let c=document.createElement(`div`);c.className=`wui-cmd-group-label`,c.setAttribute(`role`,`presentation`),c.id=o,c.textContent=this.getAttribute(`recents-label`)??p().recentsLabel,s.append(c);for(let e of a){let t=e.cloneNode(!0);if(!(t instanceof HTMLElement))throw Error(`recent option copy is not an element`);t.id=`${this._recentsId}-${e.id}`,t.hidden=!1,t.removeAttribute(`aria-selected`),s.append(t)}e.replaceChildren(s)}_inScope(e,t){return!t||(b(e,`.wui-cmd-page`)?.dataset.page??null)===(this._path[this._path.length-1]?.key??null)}_navigate(e){window.location.assign(e)}_applyFilter(){let e=this._input(),t=(e?e.value:``).trim(),r=t.toLowerCase(),i=this.highlight,o=S(this,`.wui-cmd-page`,HTMLElement),s=o.length>0,c=this._path[this._path.length-1]?.key??null;for(let e of o)e.hidden=e.dataset.page!==c;let l=this._groupActive()?this._group:null,u=0;for(let e of this._realOptions()){let o=x(e,`.wui-cmd-item-label`,HTMLElement),c=e.dataset.label??o?.textContent??``,d=(e.dataset.keywords??``).split(/\s+/).filter(Boolean),f=!r||c.toLowerCase().includes(r)||d.some(e=>e.toLowerCase().includes(r)),p=this._inScope(e,s)&&(!l||e.dataset.groupKey===l)&&f;e.hidden=!p,p&&u++,o&&o.replaceChildren(...(0,a.matchSegments)(c,i?t:``).map(e=>e.match?(0,n.make)(`mark`,{class:`wui-cmd-mark`},e.text):e.text))}let d=this._recentsHost();for(let e of S(this,`[role="group"]`,HTMLElement))d?.contains(e)||(e.hidden=!S(e,f,HTMLElement).some(e=>!e.hidden));let p=x(this,`[role="listbox"]`,HTMLElement);p&&(p.hidden=u===0);let m=x(this,`.wui-cmd-empty`,HTMLElement);m&&(m.textContent=r&&u===0?this.emptyText:``)}_teardown(){this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`mousedown`,this._onMouseDown),this.removeEventListener(`mousemove`,this._onMouseMove),this.removeEventListener(`input`,this._onInput),this._modal?.removeEventListener(`wui-modal-closed`,this._onModalClosed),this._modal=null}};(0,t.defineElement)(`wui-command-palette`,C),e.WuiCommandPalette=C})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.dom,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.textStore,WeborityUiElementsInternal.modules.textMatch);
1
+ (function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=globalThis.WeborityUiElementsInternal?.version;if(o!==`0.193.0`)throw Error(`[webority-ui] command-palette expects ui-elements 0.193.0 but the page loaded `+o+`.`);var s={allCountText:`All ({count})`,ariaLabel:`Search`,backLabel:`Back`,emptyText:`No results`,errorRetryLabel:`Try again`,placeholder:`Search…`,recentsLabel:`Recent`,resultGroupsLabel:`Result groups`,resultsLabel:`Results`,rootLabel:`All`};function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(e,t){if(c(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(c(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function u(e){var t=l(e,`string`);return c(t)==`symbol`?t:t+``}function d(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=`[role="option"]`,p=()=>(0,i.readText)(`commandPalette`,s),m=5,h=20,g=`.wui-cmd-back, [data-depth]`,_=`[data-group-tab]`,v=`.wui-cmd-error-retry`,y=0;function b(e,t){if(!(e instanceof Element))return null;let n=e.closest(t);return n instanceof HTMLElement?n:null}var x=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},S=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n),C=class extends r.ElementBase{static get observedAttributes(){return[`filter`,`group-filter`,`highlight`,`empty-text`,`path`,`root-label`,`recents-key`,`recents-limit`,`recents-label`]}constructor(){super(),d(this,`_path`,void 0),d(this,`_group`,void 0),d(this,`_crumbSig`,void 0),d(this,`_modal`,void 0),d(this,`_recentsId`,void 0),d(this,`_onModalClosed`,void 0),d(this,`_activeId`,void 0),d(this,`_lastQuery`,void 0),d(this,`_lastIds`,void 0),d(this,`_userChose`,void 0),d(this,`_onKeyDown`,void 0),d(this,`_onClick`,void 0),d(this,`_onMouseDown`,void 0),d(this,`_onMouseMove`,void 0),d(this,`_onInput`,void 0),this._path=[],this._group=null,this._crumbSig=null,this._modal=null,this._recentsId=`wui-cmd-recents-${++y}`,this._onModalClosed=()=>{this._setKeyboard(!1),this._reset(),this.hasAttribute(`path`)&&this._restart()},this._activeId=null,this._lastQuery=null,this._lastIds=null,this._userChose=!1,this._onKeyDown=e=>this._handleKeyDown(e),this._onClick=e=>{let t=b(e.target,v);if(t&&this.contains(t)){this.dispatchEvent(new CustomEvent(`wui-command-palette:retry`,{bubbles:!0}));return}let n=b(e.target,g);if(n&&this.contains(n)){let e=n.matches(`.wui-cmd-back`)?this._path.length-1:Number(n.dataset.depth);this._goTo(this._path.slice(0,e));return}let r=b(e.target,_);if(r&&this.contains(r)){this._pickGroup(r.dataset.groupTab||null);return}let i=this._optionFrom(e.target);i&&this._select(i)},this._onMouseDown=e=>{let t=b(e.target,g),n=b(e.target,_);(t&&this.contains(t)||n&&this.contains(n)||this._optionFrom(e.target,!0))&&e.preventDefault()},this._onMouseMove=e=>{let t=this._optionFrom(e.target);t&&t.id!==this._activeId&&(this._setKeyboard(!1),this._userChose=!0,this._setActive(t,!1))},this._onInput=e=>{this.hasAttribute(`filter`)&&e.target===this._input()&&(this._group=null,this._applyFilter(),this.refresh())}}connectedCallback(){this._teardown(),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`click`,this._onClick),this.addEventListener(`mousedown`,this._onMouseDown),this.addEventListener(`mousemove`,this._onMouseMove),this.addEventListener(`input`,this._onInput),this._modal=this.closest(`wui-modal`),this._modal?.addEventListener(`wui-modal-closed`,this._onModalClosed),this._readPath(),this.hasAttribute(`filter`)&&this._applyFilter(),this.refresh()}disconnectedCallback(){this._teardown()}attributeChangedCallback(e){this.isConnected&&(e===`path`&&this._readPath(),this.hasAttribute(`filter`)&&this._applyFilter(),this.refresh())}get filter(){return this.hasAttribute(`filter`)}set filter(e){this.toggleAttribute(`filter`,!!e)}get highlight(){return this.getAttribute(`highlight`)!==`false`}set highlight(e){this.setAttribute(`highlight`,e?`true`:`false`)}get emptyText(){return this.getAttribute(`empty-text`)??p().emptyText}set emptyText(e){this.setAttribute(`empty-text`,String(e??``))}refresh(){this._renderRecents(),this._renderCrumbs(),this._syncTabs();let e=this._input(),t=e?e.value:``,n=t!==this._lastQuery;this._lastQuery=t;let r=this._selectableOptions(),i=r.map(e=>e.id).join(`
2
+ `),a=i!==this._lastIds;this._lastIds=i;let o=!n&&(this._userChose||!a)?r.find(e=>e.id===this._activeId):null;o||(this._userChose=!1,this._setKeyboard(!1)),this._setActive(o??r[0]??null,n)}_input(){let e=this.querySelector(`[role="combobox"]`);return e instanceof HTMLInputElement?e:null}_optionFrom(e,t=!1){let n=b(e,f);return n&&this.contains(n)&&!this._isHidden(n)&&(t||!this._isDisabled(n))?n:null}_isDisabled(e){return e.getAttribute(`aria-disabled`)===`true`}_isHidden(e){return e.hidden!==!1||(b(e,`[role="group"]`)?.hidden??!1)!==!1}_selectableOptions(){return S(this,f,HTMLElement).filter(e=>!this._isHidden(e)&&!this._isDisabled(e))}_setActive(e,t){this._activeId=e?e.id:null;for(let t of S(this,f,HTMLElement))t.setAttribute(`aria-selected`,t===e?`true`:`false`);let n=this._input();n&&(e?n.setAttribute(`aria-activedescendant`,e.id):n.removeAttribute(`aria-activedescendant`)),e&&t&&e.scrollIntoView({block:`nearest`})}_move(e){let t=this._selectableOptions();if(!t.length)return;let n=t.findIndex(e=>e.id===this._activeId),r=n<0?e>0?0:t.length-1:(n+e+t.length)%t.length;this._userChose=!0,this._setKeyboard(!0),this._setActive(t[r]??null,!0)}_setKeyboard(e){this.toggleAttribute(`data-keyboard`,e)}_handleKeyDown(e){let t=this._input();if(t&&e.target===t){if(e.key===`ArrowDown`||e.key===`ArrowUp`)e.preventDefault(),this._move(e.key===`ArrowDown`?1:-1);else if(e.key===`Tab`&&this._groupActive()&&this._tabs().length)e.preventDefault(),this._cycleGroup(e.shiftKey?-1:1);else if(e.key===`Backspace`&&!e.isComposing&&this._path.length&&!t.value)e.preventDefault(),this._goTo(this._path.slice(0,-1));else if(e.key===`Enter`&&!e.isComposing){let t=this._selectableOptions().find(e=>e.id===this._activeId);if(!t)return;e.preventDefault(),this._select(t)}}}_select(e){this._remember(e),this.dispatchEvent(new CustomEvent(`wui-command-palette:select`,{bubbles:!0,cancelable:!0,detail:{key:e.dataset.key??null,groupKey:e.dataset.groupKey??null,id:e.id}}))&&(e.dataset.opens?this._open(e.dataset.opens):e.dataset.href&&this._navigate(e.dataset.href))}_open(e){let t=S(this,`.wui-cmd-page`,HTMLElement).find(t=>t.dataset.page===e);this._goTo([...this._path,{key:e,label:t?.dataset.label??e}])}_goTo(e){this._input()?.focus(),this.dispatchEvent(new CustomEvent(`wui-command-palette:navigate`,{bubbles:!0,cancelable:!0,detail:{path:e}}))&&(this._path=e,this._restart())}_tabs(){return S(this,_,HTMLElement)}_groupActive(){return this.hasAttribute(`group-filter`)&&this._path.length===0}_pickGroup(e){this._group=e,this._applyFilter(),this.refresh()}_cycleGroup(e){let t=this._tabs().map(e=>e.dataset.groupTab||null),n=Math.max(0,t.indexOf(this._group));this._pickGroup(t[(n+e+t.length)%t.length]??null)}_syncTabs(){if(!this.hasAttribute(`group-filter`))return;let e=x(this,`.wui-cmd-tabs`,HTMLElement);e&&(e.hidden=!this._groupActive());for(let e of this._tabs())e.setAttribute(`aria-selected`,String((e.dataset.groupTab||null)===this._group))}_restart(){this._group=null;let e=this._input();e&&(e.value=``),this.hasAttribute(`filter`)&&this._applyFilter(),this.refresh()}_reset(){this.hasAttribute(`path`)||(this._path=[],this._restart())}_readPath(){let e=this.getAttribute(`path`);if(e==null)return;let t=JSON.parse(e);this._path=Array.isArray(t)?t.filter(e=>e&&typeof e.key==`string`&&typeof e.label==`string`):[]}_renderCrumbs(){let e=x(this,`.wui-cmd-crumbs`,HTMLElement);if(!e)return;let t=this.getAttribute(`root-label`)??p().rootLabel,n=JSON.stringify([t,this._path]);if(e.hidden=this._path.length===0,n===this._crumbSig)return;this._crumbSig=n;let r=x(e,`.wui-cmd-trail`,HTMLElement);if(!r)return;let i=[t,...this._path.map(e=>e.label)];r.replaceChildren(...i.map((e,t)=>{let n=document.createElement(`li`),r=t===i.length-1,a=document.createElement(r?`span`:`button`);if(a.className=`wui-cmd-crumb`,a.textContent=e,r)a.setAttribute(`aria-current`,`page`);else{if(!(a instanceof HTMLButtonElement))throw Error(`breadcrumb button missing`);a.type=`button`,a.dataset.depth=String(t)}return n.append(a),n}))}_recentsHost(){return x(this,`.wui-cmd-recents`,HTMLElement)}_realOptions(){let e=this._recentsHost();return S(this,f,HTMLElement).filter(t=>!e?.contains(t))}_recentEntries(){let e=this.getAttribute(`recents-key`);if(!e)return[];let t;try{t=JSON.parse(globalThis.localStorage?.getItem(e)??`[]`)}catch{return[]}return Array.isArray(t)?t.filter(e=>e&&typeof e.g==`string`&&typeof e.k==`string`):[]}_recentsLimit(){let e=Number.parseInt(this.getAttribute(`recents-limit`)??``,10);return Number.isFinite(e)&&e>0?Math.min(e,h):m}_remember(e){let t=this.getAttribute(`recents-key`),{groupKey:n,key:r,opens:i}=e.dataset;if(!t||i||n==null||r==null)return;let a=[{g:n,k:r},...this._recentEntries().filter(e=>e.g!==n||e.k!==r)];try{globalThis.localStorage?.setItem(t,JSON.stringify(a.slice(0,this._recentsLimit())))}catch(e){if(!(e instanceof DOMException))throw e}}_renderRecents(){let e=this._recentsHost();if(!e)return;let t=this._input(),n=this._groupActive()?this._group:null,r=this._path.length===0&&!(t?.value??``).trim()?this._recentEntries().filter(e=>!n||e.g===n):[],i=this._realOptions(),a=[];for(let e of r){let t=i.find(t=>t.dataset.groupKey===e.g&&t.dataset.key===e.k);if(t&&!t.dataset.opens&&!this._isDisabled(t)&&a.push(t),a.length>=this._recentsLimit())break}if(!a.length){e.firstChild&&e.replaceChildren();return}let o=`${this._recentsId}-label`,s=document.createElement(`div`);s.className=`wui-cmd-group`,s.setAttribute(`role`,`group`),s.setAttribute(`aria-labelledby`,o);let c=document.createElement(`div`);c.className=`wui-cmd-group-label`,c.setAttribute(`role`,`presentation`),c.id=o,c.textContent=this.getAttribute(`recents-label`)??p().recentsLabel,s.append(c);for(let e of a){let t=e.cloneNode(!0);if(!(t instanceof HTMLElement))throw Error(`recent option copy is not an element`);t.id=`${this._recentsId}-${e.id}`,t.hidden=!1,t.removeAttribute(`aria-selected`),s.append(t)}e.replaceChildren(s)}_inScope(e,t){return!t||(b(e,`.wui-cmd-page`)?.dataset.page??null)===(this._path[this._path.length-1]?.key??null)}_navigate(e){window.location.assign(e)}_applyFilter(){let e=this._input(),t=(e?e.value:``).trim(),r=t.toLowerCase(),i=this.highlight,o=S(this,`.wui-cmd-page`,HTMLElement),s=o.length>0,c=this._path[this._path.length-1]?.key??null;for(let e of o)e.hidden=e.dataset.page!==c;let l=this._groupActive()?this._group:null,u=0;for(let e of this._realOptions()){let o=x(e,`.wui-cmd-item-label`,HTMLElement),c=e.dataset.label??o?.textContent??``,d=(e.dataset.keywords??``).split(/\s+/).filter(Boolean),f=!r||c.toLowerCase().includes(r)||d.some(e=>e.toLowerCase().includes(r)),p=this._inScope(e,s)&&(!l||e.dataset.groupKey===l)&&f;e.hidden=!p,p&&u++,o&&o.replaceChildren(...(0,a.matchSegments)(c,i?t:``).map(e=>e.match?(0,n.make)(`mark`,{class:`wui-cmd-mark`},e.text):e.text))}let d=this._recentsHost();for(let e of S(this,`[role="group"]`,HTMLElement))d?.contains(e)||(e.hidden=!S(e,f,HTMLElement).some(e=>!e.hidden));let p=x(this,`[role="listbox"]`,HTMLElement);p&&(p.hidden=u===0||x(this,`.wui-cmd-error`,HTMLElement)!==null);let m=x(this,`.wui-cmd-empty`,HTMLElement);m&&(m.textContent=r&&u===0?this.emptyText:``)}_teardown(){this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`mousedown`,this._onMouseDown),this.removeEventListener(`mousemove`,this._onMouseMove),this.removeEventListener(`input`,this._onInput),this._modal?.removeEventListener(`wui-modal-closed`,this._onModalClosed),this._modal=null}};(0,t.defineElement)(`wui-command-palette`,C),e.WuiCommandPalette=C})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.dom,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.textStore,WeborityUiElementsInternal.modules.textMatch);