@wirabyte/ui 2.0.0-beta.0 → 2.1.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 (247) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +6 -6
  3. package/avatar/avatar.component.d.ts +4 -2
  4. package/avatar/avatar.types.d.ts +3 -0
  5. package/breadcrumb/breadcrumb.component.d.ts +3 -1
  6. package/button/button.styles.d.ts +1 -1
  7. package/chat/chat.component.d.ts +118 -0
  8. package/chat/chat.module.d.ts +8 -0
  9. package/chat/chat.types.d.ts +64 -0
  10. package/chat/index.d.ts +5 -0
  11. package/chat/public-api.d.ts +3 -0
  12. package/config/options.d.ts +13 -0
  13. package/config/theme.service.d.ts +5 -0
  14. package/config/wu-config.service.d.ts +16 -0
  15. package/core/catalog.d.ts +6 -1
  16. package/core/overrides.d.ts +7 -0
  17. package/core/thai/locale.d.ts +47 -0
  18. package/datepicker/datepicker.component.d.ts +3 -2
  19. package/descriptions/descriptions.component.d.ts +56 -0
  20. package/descriptions/descriptions.module.d.ts +8 -0
  21. package/descriptions/index.d.ts +5 -0
  22. package/descriptions/public-api.d.ts +2 -0
  23. package/esm2022/accordion/accordion.component.mjs +4 -4
  24. package/esm2022/alert/alert-dialog.component.mjs +3 -3
  25. package/esm2022/asidemenu/asidemenu.component.mjs +3 -3
  26. package/esm2022/avatar/avatar.component.mjs +11 -5
  27. package/esm2022/avatar/avatar.types.mjs +2 -2
  28. package/esm2022/breadcrumb/breadcrumb.component.mjs +5 -3
  29. package/esm2022/button/button.component.mjs +2 -2
  30. package/esm2022/button/button.styles.mjs +2 -2
  31. package/esm2022/card/card.component.mjs +8 -8
  32. package/esm2022/chat/chat.component.mjs +370 -0
  33. package/esm2022/chat/chat.module.mjs +17 -0
  34. package/esm2022/chat/chat.types.mjs +2 -0
  35. package/esm2022/chat/public-api.mjs +4 -0
  36. package/esm2022/chat/wirabyte-ui-chat.mjs +5 -0
  37. package/esm2022/config/options.mjs +1 -1
  38. package/esm2022/config/theme.service.mjs +35 -3
  39. package/esm2022/config/wu-config.service.mjs +22 -1
  40. package/esm2022/core/catalog.mjs +22 -2
  41. package/esm2022/core/families.mjs +43 -1
  42. package/esm2022/core/overrides.mjs +26 -1
  43. package/esm2022/core/thai/locale.mjs +67 -1
  44. package/esm2022/datepicker/datepicker.component.mjs +6 -5
  45. package/esm2022/descriptions/descriptions.component.mjs +112 -0
  46. package/esm2022/descriptions/descriptions.module.mjs +17 -0
  47. package/esm2022/descriptions/public-api.mjs +3 -0
  48. package/esm2022/descriptions/wirabyte-ui-descriptions.mjs +5 -0
  49. package/esm2022/dialog/dialog.component.mjs +3 -3
  50. package/esm2022/drawer/drawer.component.mjs +3 -3
  51. package/esm2022/emptystate/emptystate.component.mjs +3 -3
  52. package/esm2022/errorpage/errorpage.component.mjs +3 -3
  53. package/esm2022/fieldset/fieldset.component.mjs +4 -4
  54. package/esm2022/metergroup/metergroup.component.mjs +19 -5
  55. package/esm2022/metergroup/metergroup.types.mjs +1 -1
  56. package/esm2022/navbar/navbar.component.mjs +3 -3
  57. package/esm2022/panel/panel.component.mjs +6 -6
  58. package/esm2022/popover/popover.base.mjs +3 -3
  59. package/esm2022/result/result.component.mjs +3 -3
  60. package/esm2022/scheduler/public-api.mjs +4 -0
  61. package/esm2022/scheduler/scheduler.component.mjs +484 -0
  62. package/esm2022/scheduler/scheduler.module.mjs +17 -0
  63. package/esm2022/scheduler/scheduler.types.mjs +2 -0
  64. package/esm2022/scheduler/wirabyte-ui-scheduler.mjs +5 -0
  65. package/esm2022/selectbutton/selectbutton.component.mjs +25 -4
  66. package/esm2022/signaturepad/public-api.mjs +3 -0
  67. package/esm2022/signaturepad/signaturepad.component.mjs +289 -0
  68. package/esm2022/signaturepad/signaturepad.module.mjs +17 -0
  69. package/esm2022/signaturepad/wirabyte-ui-signaturepad.mjs +5 -0
  70. package/esm2022/sitefooter/sitefooter.component.mjs +2 -2
  71. package/esm2022/stat/public-api.mjs +3 -0
  72. package/esm2022/stat/stat.component.mjs +128 -0
  73. package/esm2022/stat/stat.module.mjs +17 -0
  74. package/esm2022/stat/wirabyte-ui-stat.mjs +5 -0
  75. package/esm2022/table/table.celleditor.mjs +4 -4
  76. package/esm2022/tabs/tabs.component.mjs +3 -3
  77. package/esm2022/tag/tag.component.mjs +2 -2
  78. package/esm2022/textarea/textarea.directive.mjs +33 -1
  79. package/esm2022/thai/thai.pipes.mjs +3 -3
  80. package/esm2022/toolbar/toolbar.component.mjs +7 -7
  81. package/fesm2022/wirabyte-ui-accordion.mjs +3 -3
  82. package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
  83. package/fesm2022/wirabyte-ui-alert.mjs +2 -2
  84. package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
  85. package/fesm2022/wirabyte-ui-asidemenu.mjs +2 -2
  86. package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
  87. package/fesm2022/wirabyte-ui-avatar.mjs +12 -5
  88. package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
  89. package/fesm2022/wirabyte-ui-breadcrumb.mjs +4 -2
  90. package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
  91. package/fesm2022/wirabyte-ui-button.mjs +3 -3
  92. package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
  93. package/fesm2022/wirabyte-ui-card.mjs +7 -7
  94. package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
  95. package/fesm2022/wirabyte-ui-chat.mjs +391 -0
  96. package/fesm2022/wirabyte-ui-chat.mjs.map +1 -0
  97. package/fesm2022/wirabyte-ui-config.mjs +55 -2
  98. package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
  99. package/fesm2022/wirabyte-ui-core.mjs +155 -2
  100. package/fesm2022/wirabyte-ui-core.mjs.map +1 -1
  101. package/fesm2022/wirabyte-ui-datepicker.mjs +6 -5
  102. package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
  103. package/fesm2022/wirabyte-ui-descriptions.mjs +133 -0
  104. package/fesm2022/wirabyte-ui-descriptions.mjs.map +1 -0
  105. package/fesm2022/wirabyte-ui-dialog.mjs +2 -2
  106. package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
  107. package/fesm2022/wirabyte-ui-drawer.mjs +2 -2
  108. package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/wirabyte-ui-emptystate.mjs +2 -2
  110. package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
  111. package/fesm2022/wirabyte-ui-errorpage.mjs +2 -2
  112. package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
  113. package/fesm2022/wirabyte-ui-fieldset.mjs +3 -3
  114. package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
  115. package/fesm2022/wirabyte-ui-metergroup.mjs +18 -4
  116. package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
  117. package/fesm2022/wirabyte-ui-navbar.mjs +2 -2
  118. package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
  119. package/fesm2022/wirabyte-ui-panel.mjs +5 -5
  120. package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
  121. package/fesm2022/wirabyte-ui-popover.mjs +2 -2
  122. package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
  123. package/fesm2022/wirabyte-ui-result.mjs +2 -2
  124. package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
  125. package/fesm2022/wirabyte-ui-scheduler.mjs +505 -0
  126. package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -0
  127. package/fesm2022/wirabyte-ui-selectbutton.mjs +24 -3
  128. package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
  129. package/fesm2022/wirabyte-ui-signaturepad.mjs +310 -0
  130. package/fesm2022/wirabyte-ui-signaturepad.mjs.map +1 -0
  131. package/fesm2022/wirabyte-ui-sitefooter.mjs +1 -1
  132. package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
  133. package/fesm2022/wirabyte-ui-stat.mjs +149 -0
  134. package/fesm2022/wirabyte-ui-stat.mjs.map +1 -0
  135. package/fesm2022/wirabyte-ui-table.mjs +3 -3
  136. package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
  137. package/fesm2022/wirabyte-ui-tabs.mjs +2 -2
  138. package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
  139. package/fesm2022/wirabyte-ui-tag.mjs +2 -2
  140. package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
  141. package/fesm2022/wirabyte-ui-textarea.mjs +32 -0
  142. package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
  143. package/fesm2022/wirabyte-ui-thai.mjs +2 -2
  144. package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
  145. package/fesm2022/wirabyte-ui-toolbar.mjs +6 -6
  146. package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
  147. package/metergroup/metergroup.component.d.ts +11 -2
  148. package/metergroup/metergroup.types.d.ts +6 -0
  149. package/package.json +77 -47
  150. package/scheduler/index.d.ts +5 -0
  151. package/scheduler/public-api.d.ts +3 -0
  152. package/scheduler/scheduler.component.d.ts +143 -0
  153. package/scheduler/scheduler.module.d.ts +8 -0
  154. package/scheduler/scheduler.types.d.ts +46 -0
  155. package/schematics/core/catalog.cjs +22 -1
  156. package/schematics/core/families.cjs +42 -0
  157. package/schematics/core/overrides.cjs +25 -0
  158. package/schematics/core/thai/locale.cjs +66 -0
  159. package/schematics/ng-add/index.cjs +3 -1
  160. package/selectbutton/selectbutton.component.d.ts +12 -1
  161. package/signaturepad/index.d.ts +5 -0
  162. package/signaturepad/public-api.d.ts +2 -0
  163. package/signaturepad/signaturepad.component.d.ts +98 -0
  164. package/signaturepad/signaturepad.module.d.ts +8 -0
  165. package/stat/index.d.ts +5 -0
  166. package/stat/public-api.d.ts +2 -0
  167. package/stat/stat.component.d.ts +61 -0
  168. package/stat/stat.module.d.ts +8 -0
  169. package/textarea/textarea.directive.d.ts +3 -0
  170. package/theme/_data.scss +239 -7
  171. package/theme/_index.scss +29 -0
  172. package/themes/mali/amber.css +30 -1
  173. package/themes/mali/blue.css +30 -1
  174. package/themes/mali/cyan.css +30 -1
  175. package/themes/mali/emerald.css +30 -1
  176. package/themes/mali/fuchsia.css +30 -1
  177. package/themes/mali/green.css +30 -1
  178. package/themes/mali/indigo.css +30 -1
  179. package/themes/mali/lime.css +30 -1
  180. package/themes/mali/orange.css +30 -1
  181. package/themes/mali/pink.css +30 -1
  182. package/themes/mali/purple.css +30 -1
  183. package/themes/mali/red.css +30 -1
  184. package/themes/mali/rose.css +30 -1
  185. package/themes/mali/sky.css +30 -1
  186. package/themes/mali/teal.css +30 -1
  187. package/themes/mali/theme.css +30 -1
  188. package/themes/mali/violet.css +30 -1
  189. package/themes/mali/wira.css +30 -1
  190. package/themes/mali/yellow.css +30 -1
  191. package/themes/material/amber.css +30 -1
  192. package/themes/material/blue.css +30 -1
  193. package/themes/material/cyan.css +30 -1
  194. package/themes/material/emerald.css +30 -1
  195. package/themes/material/fuchsia.css +30 -1
  196. package/themes/material/green.css +30 -1
  197. package/themes/material/indigo.css +30 -1
  198. package/themes/material/lime.css +30 -1
  199. package/themes/material/orange.css +30 -1
  200. package/themes/material/pink.css +30 -1
  201. package/themes/material/purple.css +30 -1
  202. package/themes/material/red.css +30 -1
  203. package/themes/material/rose.css +30 -1
  204. package/themes/material/sky.css +30 -1
  205. package/themes/material/teal.css +30 -1
  206. package/themes/material/theme.css +30 -1
  207. package/themes/material/violet.css +30 -1
  208. package/themes/material/wira.css +30 -1
  209. package/themes/material/yellow.css +30 -1
  210. package/themes/phet/amber.css +30 -1
  211. package/themes/phet/blue.css +30 -1
  212. package/themes/phet/cyan.css +30 -1
  213. package/themes/phet/emerald.css +30 -1
  214. package/themes/phet/fuchsia.css +30 -1
  215. package/themes/phet/green.css +30 -1
  216. package/themes/phet/indigo.css +30 -1
  217. package/themes/phet/lime.css +30 -1
  218. package/themes/phet/orange.css +30 -1
  219. package/themes/phet/pink.css +30 -1
  220. package/themes/phet/purple.css +30 -1
  221. package/themes/phet/red.css +30 -1
  222. package/themes/phet/rose.css +30 -1
  223. package/themes/phet/sky.css +30 -1
  224. package/themes/phet/teal.css +30 -1
  225. package/themes/phet/theme.css +30 -1
  226. package/themes/phet/violet.css +30 -1
  227. package/themes/phet/wira.css +30 -1
  228. package/themes/phet/yellow.css +30 -1
  229. package/themes/sila/amber.css +30 -1
  230. package/themes/sila/blue.css +30 -1
  231. package/themes/sila/cyan.css +30 -1
  232. package/themes/sila/emerald.css +30 -1
  233. package/themes/sila/fuchsia.css +30 -1
  234. package/themes/sila/green.css +30 -1
  235. package/themes/sila/indigo.css +30 -1
  236. package/themes/sila/lime.css +30 -1
  237. package/themes/sila/orange.css +30 -1
  238. package/themes/sila/pink.css +30 -1
  239. package/themes/sila/purple.css +30 -1
  240. package/themes/sila/red.css +30 -1
  241. package/themes/sila/rose.css +30 -1
  242. package/themes/sila/sky.css +30 -1
  243. package/themes/sila/teal.css +30 -1
  244. package/themes/sila/theme.css +30 -1
  245. package/themes/sila/violet.css +30 -1
  246. package/themes/sila/wira.css +30 -1
  247. package/themes/sila/yellow.css +30 -1
@@ -225,11 +225,11 @@ class WuDrawer {
225
225
  this.onHide.emit();
226
226
  }
227
227
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
228
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuDrawer, isStandalone: true, selector: "wu-drawer, wu-sidebar", inputs: { visible: "visible", position: "position", fullScreen: "fullScreen", header: "header", modal: "modal", dismissible: "dismissible", blockScroll: "blockScroll", showCloseIcon: "showCloseIcon", closable: "closable", closeOnEscape: "closeOnEscape", closeIcon: "closeIcon", ariaCloseLabel: "ariaCloseLabel", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style", maskStyleClass: "maskStyleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", transitionOptions: "transitionOptions" }, outputs: { visibleChange: "visibleChange", onShow: "onShow", onHide: "onHide" }, queries: [{ propertyName: "headerRef", first: true, predicate: ["header"] }, { propertyName: "footerRef", first: true, predicate: ["footer"] }, { propertyName: "contentRef", first: true, predicate: ["content"] }, { propertyName: "headlessRef", first: true, predicate: ["headless"] }, { propertyName: "closeIconRef", first: true, predicate: ["closeicon"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "maskRef", first: true, predicate: ["mask"], descendants: true }], ngImport: i0, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
228
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuDrawer, isStandalone: true, selector: "wu-drawer, wu-sidebar", inputs: { visible: "visible", position: "position", fullScreen: "fullScreen", header: "header", modal: "modal", dismissible: "dismissible", blockScroll: "blockScroll", showCloseIcon: "showCloseIcon", closable: "closable", closeOnEscape: "closeOnEscape", closeIcon: "closeIcon", ariaCloseLabel: "ariaCloseLabel", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style", maskStyleClass: "maskStyleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", transitionOptions: "transitionOptions" }, outputs: { visibleChange: "visibleChange", onShow: "onShow", onHide: "onHide" }, queries: [{ propertyName: "headerRef", first: true, predicate: ["header"] }, { propertyName: "footerRef", first: true, predicate: ["footer"] }, { propertyName: "contentRef", first: true, predicate: ["content"] }, { propertyName: "headlessRef", first: true, predicate: ["headless"] }, { propertyName: "closeIconRef", first: true, predicate: ["closeicon"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "maskRef", first: true, predicate: ["mask"], descendants: true }], ngImport: i0, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{font-family:var(--wu-heading-font-family);min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
229
229
  }
230
230
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDrawer, decorators: [{
231
231
  type: Component,
232
- args: [{ selector: 'wu-drawer, wu-sidebar', standalone: true, imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"] }]
232
+ args: [{ selector: 'wu-drawer, wu-sidebar', standalone: true, imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{font-family:var(--wu-heading-font-family);min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"] }]
233
233
  }], ctorParameters: () => [], propDecorators: { visible: [{
234
234
  type: Input
235
235
  }], position: [{
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-drawer.mjs","sources":["../../lib/drawer/drawer.component.ts","../../lib/drawer/drawer.component.html","../../lib/drawer/drawer.module.ts","../../lib/drawer/wirabyte-ui-drawer.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵlockScroll,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵuniqueId,\n ɵWU_SKIP_VERSION_CHECK,\n ɵWuStyleLoader,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { ɵbuttonClass, ɵWU_BUTTON_CSS } from '@wirabyte/ui/button';\nimport { WuLocale } from '@wirabyte/ui/core';\n\nexport type WuDrawerPosition = 'left' | 'right' | 'top' | 'bottom' | 'full';\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\n\n/**\n * A panel that slides in from an edge of the window: `<wu-drawer [(visible)]=\"menuOpen\" header=\"เมนู\" position=\"left\">`\n * (`<wu-sidebar>` works too). It is a native `<dialog>`: modal by default (the page behind is inert and dimmed,\n * focus stays inside), closed with the × button, Escape or a click on the dimmed page.\n */\n@Component({\n selector: 'wu-drawer, wu-sidebar',\n standalone: true,\n imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet],\n templateUrl: './drawer.component.html',\n styleUrls: ['./drawer.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDrawer implements AfterViewChecked, OnDestroy {\n /** Two-way: `[(visible)]`. */\n @Input() set visible(v: unknown) { this.setVisible(ɵtoBool(v)); }\n get visible(): boolean { return this._visible; }\n @Input() position: WuDrawerPosition = 'left';\n /** Covers the whole window (same as `position=\"full\"`). */\n @Input() set fullScreen(v: unknown) { this._fullScreen = ɵtoBool(v); }\n get fullScreen(): boolean { return this._fullScreen; }\n @Input() header?: string;\n /** Dim the page and keep focus in the drawer. Default true. */\n @Input() set modal(v: unknown) { this._modal = v === undefined || ɵtoBool(v); }\n get modal(): boolean { return this._modal; }\n /** A click on the dimmed page closes it. Default true. */\n @Input() set dismissible(v: unknown) { this._dismissible = v === undefined || ɵtoBool(v); }\n /** Stop the page scrolling while open. Default: when modal. */\n @Input() set blockScroll(v: unknown) { this._blockScroll = v === undefined || v === null ? null : ɵtoBool(v); }\n /** The × button. Default true. */\n @Input() set showCloseIcon(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n @Input() set closable(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n get closable(): boolean { return this._closeButton; }\n @Input() set closeOnEscape(v: unknown) { this._closeOnEscape = v === undefined || ɵtoBool(v); }\n @Input() closeIcon?: string;\n @Input() ariaCloseLabel?: string;\n @Input() ariaLabel?: string;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | null;\n @Input() maskStyleClass?: string;\n /** Accepted for templates moving over: the drawer is in the top layer. */\n @Input() appendTo: unknown;\n @Input() autoZIndex: unknown;\n @Input() baseZIndex: unknown;\n @Input() transitionOptions: unknown;\n\n @Output() readonly visibleChange = new EventEmitter<boolean>();\n @Output() readonly onShow = new EventEmitter<void>();\n @Output() readonly onHide = new EventEmitter<void>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('header', { descendants: false }) protected headerRef?: unknown;\n @ContentChild('footer', { descendants: false }) protected footerRef?: unknown;\n @ContentChild('content', { descendants: false }) protected contentRef?: unknown;\n @ContentChild('headless', { descendants: false }) protected headlessRef?: unknown;\n @ContentChild('closeicon', { descendants: false }) protected closeIconRef?: unknown;\n @ViewChild('mask') protected maskRef?: ElementRef<HTMLDialogElement>;\n\n readonly titleId = ɵuniqueId('wu-drawer-title');\n /** The `<dialog>` is in the DOM (it stays a moment after closing, for the slide-out). */\n rendered = false;\n leaving = false;\n private _visible = false;\n private _fullScreen = false;\n private _modal = true;\n private _dismissible = true;\n private _blockScroll: boolean | null = null;\n private _closeButton = true;\n private _closeOnEscape = true;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly doc = inject(DOCUMENT);\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('button', ɵWU_BUTTON_CSS);\n }\n\n // ---------- what the template reads ----------\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get side(): WuDrawerPosition {\n return this._fullScreen ? 'full' : this.position || 'left';\n }\n get panelClass(): string {\n const s = this.side;\n return `wu-drawer-${s} p-drawer-${s} p-sidebar-${s}${s === 'full' ? ' p-drawer-full p-sidebar-full' : ''} ${this.styleClass || ''}`;\n }\n get closeClass(): string {\n return ɵbuttonClass('p-button-text p-button-secondary p-button-rounded') + ' wu-btn-icon-only wu-drawer-close p-drawer-close-button p-sidebar-close';\n }\n get headerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headerRef) || ɵfindTemplate(this.templates, 'header');\n }\n get footerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.footerRef) || ɵfindTemplate(this.templates, 'footer');\n }\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get headlessTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headlessRef) || ɵfindTemplate(this.templates, 'headless');\n }\n get closeIconTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.closeIconRef) || ɵfindTemplate(this.templates, 'closeicon');\n }\n get labelledBy(): string | null {\n return this.ariaLabel ? null : this.header || this.headerTemplate ? this.titleId : null;\n }\n\n ngAfterViewChecked(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n if (!el) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n if (this._modal) el.showModal();\n else el.show();\n } catch {\n el.setAttribute('open', '');\n }\n }\n if (this._blockScroll ?? this._modal) this.unlockScroll = ɵlockScroll(this.doc);\n if (this._modal) this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n const auto = el.querySelector('[autofocus]') as HTMLElement | null;\n if (auto) auto.focus();\n else if (!this._modal) (el.querySelector('.wu-drawer') as HTMLElement | null)?.focus();\n Promise.resolve().then(() => this.onShow.emit());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n const el = this.maskRef?.nativeElement;\n if (el?.open) el.close();\n }\n\n /** Closes the drawer and tells the model (`visibleChange`). */\n close(event?: Event): void {\n if (!this._visible) return;\n event?.preventDefault();\n this._visible = false;\n this.visibleChange.emit(false);\n this.beginClose();\n }\n\n /** Opens it from code. */\n show(): void {\n if (this._visible) return;\n this.setVisible(true);\n this.visibleChange.emit(true);\n }\n\n hide(): void {\n this.close();\n }\n\n // ---------- template events ----------\n\n keydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n cancel(event: Event): void {\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n nativeClose(): void {\n if (this._visible && !this.leaving) this.close();\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (onMask && this._dismissible && this._modal) this.close(event);\n }\n\n // ---------- internals ----------\n\n private setVisible(v: boolean): void {\n if (v === this._visible) return;\n this._visible = v;\n if (v) this.beginOpen();\n else this.beginClose();\n }\n\n private beginOpen(): void {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n this.leaving = false;\n this.cdr.markForCheck();\n return;\n }\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n this.rendered = true;\n this.leaving = false;\n this.pendingShow = true;\n this.cdr.markForCheck();\n }\n\n private beginClose(): void {\n this.pendingShow = false;\n if (!this.rendered || this.closeTimer) return;\n this.leaving = true;\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n this.closeTimer = setTimeout(() => this.finishClose(), reduce ? 0 : 200);\n }\n\n private finishClose(): void {\n this.closeTimer = null;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.cdr.markForCheck();\n this.onHide.emit();\n }\n}\n","<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n","import { NgModule } from '@angular/core';\nimport { WuDrawer } from './drawer.component';\n\n/** For NgModule apps. Standalone apps can import `WuDrawer` directly. */\n@NgModule({\n imports: [WuDrawer],\n exports: [WuDrawer],\n})\nexport class WuDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵuniqueId","ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_BUTTON_CSS","ɵbuttonClass","ɵfindTemplate","ɵlockScroll"],"mappings":";;;;;;AAoCA,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC;AAErG;;;;AAIG;MAUU,QAAQ,CAAA;;AAEnB,IAAA,IAAa,OAAO,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,UAAU,CAACA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,IAAI,OAAO,KAAc,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;;AAG/C,IAAA,IAAa,UAAU,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,WAAW,GAAGA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,IAAI,UAAU,KAAc,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;;AAGrD,IAAA,IAAa,KAAK,CAAC,CAAU,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,SAAS,IAAIA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,IAAI,KAAK,KAAc,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;;AAE3C,IAAA,IAAa,WAAW,CAAC,CAAU,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,KAAK,SAAS,IAAIA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;;AAE1F,IAAA,IAAa,WAAW,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,YAAY,GAAG,CAAC,KAAK,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A,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA;gHAEP,cAAc,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;AACpB,iBAAA;;;ACPD;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-drawer.mjs","sources":["../../lib/drawer/drawer.component.ts","../../lib/drawer/drawer.component.html","../../lib/drawer/drawer.module.ts","../../lib/drawer/wirabyte-ui-drawer.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵlockScroll,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵuniqueId,\n ɵWU_SKIP_VERSION_CHECK,\n ɵWuStyleLoader,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { ɵbuttonClass, ɵWU_BUTTON_CSS } from '@wirabyte/ui/button';\nimport { WuLocale } from '@wirabyte/ui/core';\n\nexport type WuDrawerPosition = 'left' | 'right' | 'top' | 'bottom' | 'full';\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\n\n/**\n * A panel that slides in from an edge of the window: `<wu-drawer [(visible)]=\"menuOpen\" header=\"เมนู\" position=\"left\">`\n * (`<wu-sidebar>` works too). It is a native `<dialog>`: modal by default (the page behind is inert and dimmed,\n * focus stays inside), closed with the × button, Escape or a click on the dimmed page.\n */\n@Component({\n selector: 'wu-drawer, wu-sidebar',\n standalone: true,\n imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet],\n templateUrl: './drawer.component.html',\n styleUrls: ['./drawer.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDrawer implements AfterViewChecked, OnDestroy {\n /** Two-way: `[(visible)]`. */\n @Input() set visible(v: unknown) { this.setVisible(ɵtoBool(v)); }\n get visible(): boolean { return this._visible; }\n @Input() position: WuDrawerPosition = 'left';\n /** Covers the whole window (same as `position=\"full\"`). */\n @Input() set fullScreen(v: unknown) { this._fullScreen = ɵtoBool(v); }\n get fullScreen(): boolean { return this._fullScreen; }\n @Input() header?: string;\n /** Dim the page and keep focus in the drawer. Default true. */\n @Input() set modal(v: unknown) { this._modal = v === undefined || ɵtoBool(v); }\n get modal(): boolean { return this._modal; }\n /** A click on the dimmed page closes it. Default true. */\n @Input() set dismissible(v: unknown) { this._dismissible = v === undefined || ɵtoBool(v); }\n /** Stop the page scrolling while open. Default: when modal. */\n @Input() set blockScroll(v: unknown) { this._blockScroll = v === undefined || v === null ? null : ɵtoBool(v); }\n /** The × button. Default true. */\n @Input() set showCloseIcon(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n @Input() set closable(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n get closable(): boolean { return this._closeButton; }\n @Input() set closeOnEscape(v: unknown) { this._closeOnEscape = v === undefined || ɵtoBool(v); }\n @Input() closeIcon?: string;\n @Input() ariaCloseLabel?: string;\n @Input() ariaLabel?: string;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | null;\n @Input() maskStyleClass?: string;\n /** Accepted for templates moving over: the drawer is in the top layer. */\n @Input() appendTo: unknown;\n @Input() autoZIndex: unknown;\n @Input() baseZIndex: unknown;\n @Input() transitionOptions: unknown;\n\n @Output() readonly visibleChange = new EventEmitter<boolean>();\n @Output() readonly onShow = new EventEmitter<void>();\n @Output() readonly onHide = new EventEmitter<void>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('header', { descendants: false }) protected headerRef?: unknown;\n @ContentChild('footer', { descendants: false }) protected footerRef?: unknown;\n @ContentChild('content', { descendants: false }) protected contentRef?: unknown;\n @ContentChild('headless', { descendants: false }) protected headlessRef?: unknown;\n @ContentChild('closeicon', { descendants: false }) protected closeIconRef?: unknown;\n @ViewChild('mask') protected maskRef?: ElementRef<HTMLDialogElement>;\n\n readonly titleId = ɵuniqueId('wu-drawer-title');\n /** The `<dialog>` is in the DOM (it stays a moment after closing, for the slide-out). */\n rendered = false;\n leaving = false;\n private _visible = false;\n private _fullScreen = false;\n private _modal = true;\n private _dismissible = true;\n private _blockScroll: boolean | null = null;\n private _closeButton = true;\n private _closeOnEscape = true;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly doc = inject(DOCUMENT);\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('button', ɵWU_BUTTON_CSS);\n }\n\n // ---------- what the template reads ----------\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get side(): WuDrawerPosition {\n return this._fullScreen ? 'full' : this.position || 'left';\n }\n get panelClass(): string {\n const s = this.side;\n return `wu-drawer-${s} p-drawer-${s} p-sidebar-${s}${s === 'full' ? ' p-drawer-full p-sidebar-full' : ''} ${this.styleClass || ''}`;\n }\n get closeClass(): string {\n return ɵbuttonClass('p-button-text p-button-secondary p-button-rounded') + ' wu-btn-icon-only wu-drawer-close p-drawer-close-button p-sidebar-close';\n }\n get headerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headerRef) || ɵfindTemplate(this.templates, 'header');\n }\n get footerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.footerRef) || ɵfindTemplate(this.templates, 'footer');\n }\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get headlessTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headlessRef) || ɵfindTemplate(this.templates, 'headless');\n }\n get closeIconTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.closeIconRef) || ɵfindTemplate(this.templates, 'closeicon');\n }\n get labelledBy(): string | null {\n return this.ariaLabel ? null : this.header || this.headerTemplate ? this.titleId : null;\n }\n\n ngAfterViewChecked(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n if (!el) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n if (this._modal) el.showModal();\n else el.show();\n } catch {\n el.setAttribute('open', '');\n }\n }\n if (this._blockScroll ?? this._modal) this.unlockScroll = ɵlockScroll(this.doc);\n if (this._modal) this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n const auto = el.querySelector('[autofocus]') as HTMLElement | null;\n if (auto) auto.focus();\n else if (!this._modal) (el.querySelector('.wu-drawer') as HTMLElement | null)?.focus();\n Promise.resolve().then(() => this.onShow.emit());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n const el = this.maskRef?.nativeElement;\n if (el?.open) el.close();\n }\n\n /** Closes the drawer and tells the model (`visibleChange`). */\n close(event?: Event): void {\n if (!this._visible) return;\n event?.preventDefault();\n this._visible = false;\n this.visibleChange.emit(false);\n this.beginClose();\n }\n\n /** Opens it from code. */\n show(): void {\n if (this._visible) return;\n this.setVisible(true);\n this.visibleChange.emit(true);\n }\n\n hide(): void {\n this.close();\n }\n\n // ---------- template events ----------\n\n keydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n cancel(event: Event): void {\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n nativeClose(): void {\n if (this._visible && !this.leaving) this.close();\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (onMask && this._dismissible && this._modal) this.close(event);\n }\n\n // ---------- internals ----------\n\n private setVisible(v: boolean): void {\n if (v === this._visible) return;\n this._visible = v;\n if (v) this.beginOpen();\n else this.beginClose();\n }\n\n private beginOpen(): void {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n this.leaving = false;\n this.cdr.markForCheck();\n return;\n }\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n this.rendered = true;\n this.leaving = false;\n this.pendingShow = true;\n this.cdr.markForCheck();\n }\n\n private beginClose(): void {\n this.pendingShow = false;\n if (!this.rendered || this.closeTimer) return;\n this.leaving = true;\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n this.closeTimer = setTimeout(() => this.finishClose(), reduce ? 0 : 200);\n }\n\n private finishClose(): void {\n this.closeTimer = null;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.cdr.markForCheck();\n this.onHide.emit();\n }\n}\n","<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n","import { NgModule } from '@angular/core';\nimport { WuDrawer } from './drawer.component';\n\n/** For NgModule apps. Standalone apps can import `WuDrawer` directly. */\n@NgModule({\n imports: [WuDrawer],\n exports: [WuDrawer],\n})\nexport class WuDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵuniqueId","ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_BUTTON_CSS","ɵbuttonClass","ɵfindTemplate","ɵlockScroll"],"mappings":";;;;;;AAoCA,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC;AAErG;;;;AAIG;MAUU,QAAQ,CAAA;;AAEnB,IAAA,IAAa,OAAO,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,UAAU,CAACA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,IAAI,OAAO,KAAc,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;;AAG/C,IAAA,IAAa,UAAU,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,WAAW,GAAGA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,IAAI,UAAU,KAAc,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;;AAGrD,IAAA,IAAa,KAAK,CAAC,CAAU,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,SAAS,IAAIA,OAAO,CAAC,CAAC,CAAC,CAAC,CAA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AA,UAAU,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;gBACa,YAAY,EAAA,CAAA;sBAAxE,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;gBACpB,OAAO,EAAA,CAAA;sBAAnC,SAAS;uBAAC,MAAM;;;AE7FnB;MAKa,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA;gHAEP,cAAc,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;AACpB,iBAAA;;;ACPD;;AAEG;;"}
@@ -50,11 +50,11 @@ class WuEmptyState {
50
50
  return this.style && typeof this.style === 'object' ? this.style : null;
51
51
  }
52
52
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuEmptyState, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
53
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuEmptyState, isStandalone: true, selector: "wu-empty-state, wu-emptyState, wu-empty", inputs: { type: "type", title: "title", description: "description", icon: "icon", image: "image", imageAlt: "imageAlt", showImage: "showImage", size: "size", styleClass: "styleClass", style: "style" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-empty-state-host" }, ngImport: i0, template: "<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-empty-state,wu-emptyState,wu-empty){display:block}.wu-empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--wu-empty-state-gap);padding:var(--wu-empty-state-padding);text-align:center;font-family:var(--wu-font-family)}.wu-empty-state-art,.wu-empty-state-image{display:block;width:var(--wu-empty-state-art-width);max-width:100%;height:auto;margin-bottom:.5rem}.wu-empty-state-image{object-fit:contain}.wu-empty-state-art{overflow:visible;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.wu-es-bg{fill:var(--wu-empty-state-art-bg);stroke:none}.wu-es-paper{fill:var(--wu-empty-state-art-paper);stroke:var(--wu-empty-state-art-line)}.wu-es-line{stroke:var(--wu-empty-state-art-line)}.wu-es-line-fill{fill:var(--wu-empty-state-art-line);stroke:none}.wu-es-soft{fill:var(--wu-empty-state-art-soft);stroke:none}.wu-es-tray{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-line)}.wu-es-lens{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-accent);stroke-width:3}.wu-es-accent{stroke:var(--wu-empty-state-art-accent)}.wu-es-thick{stroke-width:6}.wu-es-accent-fill{fill:var(--wu-empty-state-art-accent);stroke:none}.wu-es-danger{stroke:var(--wu-empty-state-art-danger);stroke-width:3.5}.wu-empty-state-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-empty-state-icon-box);height:var(--wu-empty-state-icon-box);margin-bottom:.5rem;border-radius:50%;background:var(--wu-empty-state-icon-bg);color:var(--wu-empty-state-icon-color);font-size:var(--wu-empty-state-icon-size);line-height:1}.wu-empty-state-title{margin:0;color:var(--wu-empty-state-title-color);font-size:var(--wu-empty-state-title-size);font-weight:var(--wu-empty-state-title-weight);line-height:var(--wu-line-height)}.wu-empty-state-description{margin:0;max-width:32rem;color:var(--wu-empty-state-description-color);font-size:var(--wu-empty-state-description-size);line-height:var(--wu-line-height)}.wu-empty-state-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--wu-empty-state-actions-gap);margin-top:.75rem}.wu-empty-state-actions:empty{display:none}.wu-empty-state-sm{padding:var(--wu-empty-state-sm-padding)}.wu-empty-state-sm :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-sm-width);margin-bottom:.25rem}.wu-empty-state-sm .wu-empty-state-icon{width:calc(var(--wu-empty-state-icon-box) * .75);height:calc(var(--wu-empty-state-icon-box) * .75);font-size:calc(var(--wu-empty-state-icon-size) * .8)}.wu-empty-state-sm .wu-empty-state-title{font-size:var(--wu-empty-state-description-size)}.wu-empty-state-sm .wu-empty-state-description{font-size:.875em}.wu-empty-state-sm .wu-empty-state-actions{margin-top:.375rem}.wu-empty-state-lg{padding:var(--wu-empty-state-lg-padding)}.wu-empty-state-lg :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-lg-width)}.wu-empty-state-lg .wu-empty-state-title{font-size:calc(var(--wu-empty-state-title-size) * 1.25)}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
53
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuEmptyState, isStandalone: true, selector: "wu-empty-state, wu-emptyState, wu-empty", inputs: { type: "type", title: "title", description: "description", icon: "icon", image: "image", imageAlt: "imageAlt", showImage: "showImage", size: "size", styleClass: "styleClass", style: "style" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-empty-state-host" }, ngImport: i0, template: "<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-empty-state,wu-emptyState,wu-empty){display:block}.wu-empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--wu-empty-state-gap);padding:var(--wu-empty-state-padding);text-align:center;font-family:var(--wu-font-family)}.wu-empty-state-art,.wu-empty-state-image{display:block;width:var(--wu-empty-state-art-width);max-width:100%;height:auto;margin-bottom:.5rem}.wu-empty-state-image{object-fit:contain}.wu-empty-state-art{overflow:visible;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.wu-es-bg{fill:var(--wu-empty-state-art-bg);stroke:none}.wu-es-paper{fill:var(--wu-empty-state-art-paper);stroke:var(--wu-empty-state-art-line)}.wu-es-line{stroke:var(--wu-empty-state-art-line)}.wu-es-line-fill{fill:var(--wu-empty-state-art-line);stroke:none}.wu-es-soft{fill:var(--wu-empty-state-art-soft);stroke:none}.wu-es-tray{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-line)}.wu-es-lens{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-accent);stroke-width:3}.wu-es-accent{stroke:var(--wu-empty-state-art-accent)}.wu-es-thick{stroke-width:6}.wu-es-accent-fill{fill:var(--wu-empty-state-art-accent);stroke:none}.wu-es-danger{stroke:var(--wu-empty-state-art-danger);stroke-width:3.5}.wu-empty-state-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-empty-state-icon-box);height:var(--wu-empty-state-icon-box);margin-bottom:.5rem;border-radius:50%;background:var(--wu-empty-state-icon-bg);color:var(--wu-empty-state-icon-color);font-size:var(--wu-empty-state-icon-size);line-height:1}.wu-empty-state-title{font-family:var(--wu-heading-font-family);margin:0;color:var(--wu-empty-state-title-color);font-size:var(--wu-empty-state-title-size);font-weight:var(--wu-empty-state-title-weight);line-height:var(--wu-line-height)}.wu-empty-state-description{margin:0;max-width:32rem;color:var(--wu-empty-state-description-color);font-size:var(--wu-empty-state-description-size);line-height:var(--wu-line-height)}.wu-empty-state-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--wu-empty-state-actions-gap);margin-top:.75rem}.wu-empty-state-actions:empty{display:none}.wu-empty-state-sm{padding:var(--wu-empty-state-sm-padding)}.wu-empty-state-sm :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-sm-width);margin-bottom:.25rem}.wu-empty-state-sm .wu-empty-state-icon{width:calc(var(--wu-empty-state-icon-box) * .75);height:calc(var(--wu-empty-state-icon-box) * .75);font-size:calc(var(--wu-empty-state-icon-size) * .8)}.wu-empty-state-sm .wu-empty-state-title{font-size:var(--wu-empty-state-description-size)}.wu-empty-state-sm .wu-empty-state-description{font-size:.875em}.wu-empty-state-sm .wu-empty-state-actions{margin-top:.375rem}.wu-empty-state-lg{padding:var(--wu-empty-state-lg-padding)}.wu-empty-state-lg :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-lg-width)}.wu-empty-state-lg .wu-empty-state-title{font-size:calc(var(--wu-empty-state-title-size) * 1.25)}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
54
54
  }
55
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuEmptyState, decorators: [{
56
56
  type: Component,
57
- args: [{ selector: 'wu-empty-state, wu-emptyState, wu-empty', standalone: true, imports: [NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-empty-state-host', '[attr.title]': 'null' }, template: "<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-empty-state,wu-emptyState,wu-empty){display:block}.wu-empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--wu-empty-state-gap);padding:var(--wu-empty-state-padding);text-align:center;font-family:var(--wu-font-family)}.wu-empty-state-art,.wu-empty-state-image{display:block;width:var(--wu-empty-state-art-width);max-width:100%;height:auto;margin-bottom:.5rem}.wu-empty-state-image{object-fit:contain}.wu-empty-state-art{overflow:visible;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.wu-es-bg{fill:var(--wu-empty-state-art-bg);stroke:none}.wu-es-paper{fill:var(--wu-empty-state-art-paper);stroke:var(--wu-empty-state-art-line)}.wu-es-line{stroke:var(--wu-empty-state-art-line)}.wu-es-line-fill{fill:var(--wu-empty-state-art-line);stroke:none}.wu-es-soft{fill:var(--wu-empty-state-art-soft);stroke:none}.wu-es-tray{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-line)}.wu-es-lens{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-accent);stroke-width:3}.wu-es-accent{stroke:var(--wu-empty-state-art-accent)}.wu-es-thick{stroke-width:6}.wu-es-accent-fill{fill:var(--wu-empty-state-art-accent);stroke:none}.wu-es-danger{stroke:var(--wu-empty-state-art-danger);stroke-width:3.5}.wu-empty-state-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-empty-state-icon-box);height:var(--wu-empty-state-icon-box);margin-bottom:.5rem;border-radius:50%;background:var(--wu-empty-state-icon-bg);color:var(--wu-empty-state-icon-color);font-size:var(--wu-empty-state-icon-size);line-height:1}.wu-empty-state-title{margin:0;color:var(--wu-empty-state-title-color);font-size:var(--wu-empty-state-title-size);font-weight:var(--wu-empty-state-title-weight);line-height:var(--wu-line-height)}.wu-empty-state-description{margin:0;max-width:32rem;color:var(--wu-empty-state-description-color);font-size:var(--wu-empty-state-description-size);line-height:var(--wu-line-height)}.wu-empty-state-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--wu-empty-state-actions-gap);margin-top:.75rem}.wu-empty-state-actions:empty{display:none}.wu-empty-state-sm{padding:var(--wu-empty-state-sm-padding)}.wu-empty-state-sm :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-sm-width);margin-bottom:.25rem}.wu-empty-state-sm .wu-empty-state-icon{width:calc(var(--wu-empty-state-icon-box) * .75);height:calc(var(--wu-empty-state-icon-box) * .75);font-size:calc(var(--wu-empty-state-icon-size) * .8)}.wu-empty-state-sm .wu-empty-state-title{font-size:var(--wu-empty-state-description-size)}.wu-empty-state-sm .wu-empty-state-description{font-size:.875em}.wu-empty-state-sm .wu-empty-state-actions{margin-top:.375rem}.wu-empty-state-lg{padding:var(--wu-empty-state-lg-padding)}.wu-empty-state-lg :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-lg-width)}.wu-empty-state-lg .wu-empty-state-title{font-size:calc(var(--wu-empty-state-title-size) * 1.25)}}\n"] }]
57
+ args: [{ selector: 'wu-empty-state, wu-emptyState, wu-empty', standalone: true, imports: [NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-empty-state-host', '[attr.title]': 'null' }, template: "<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-empty-state,wu-emptyState,wu-empty){display:block}.wu-empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--wu-empty-state-gap);padding:var(--wu-empty-state-padding);text-align:center;font-family:var(--wu-font-family)}.wu-empty-state-art,.wu-empty-state-image{display:block;width:var(--wu-empty-state-art-width);max-width:100%;height:auto;margin-bottom:.5rem}.wu-empty-state-image{object-fit:contain}.wu-empty-state-art{overflow:visible;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.wu-es-bg{fill:var(--wu-empty-state-art-bg);stroke:none}.wu-es-paper{fill:var(--wu-empty-state-art-paper);stroke:var(--wu-empty-state-art-line)}.wu-es-line{stroke:var(--wu-empty-state-art-line)}.wu-es-line-fill{fill:var(--wu-empty-state-art-line);stroke:none}.wu-es-soft{fill:var(--wu-empty-state-art-soft);stroke:none}.wu-es-tray{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-line)}.wu-es-lens{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-accent);stroke-width:3}.wu-es-accent{stroke:var(--wu-empty-state-art-accent)}.wu-es-thick{stroke-width:6}.wu-es-accent-fill{fill:var(--wu-empty-state-art-accent);stroke:none}.wu-es-danger{stroke:var(--wu-empty-state-art-danger);stroke-width:3.5}.wu-empty-state-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-empty-state-icon-box);height:var(--wu-empty-state-icon-box);margin-bottom:.5rem;border-radius:50%;background:var(--wu-empty-state-icon-bg);color:var(--wu-empty-state-icon-color);font-size:var(--wu-empty-state-icon-size);line-height:1}.wu-empty-state-title{font-family:var(--wu-heading-font-family);margin:0;color:var(--wu-empty-state-title-color);font-size:var(--wu-empty-state-title-size);font-weight:var(--wu-empty-state-title-weight);line-height:var(--wu-line-height)}.wu-empty-state-description{margin:0;max-width:32rem;color:var(--wu-empty-state-description-color);font-size:var(--wu-empty-state-description-size);line-height:var(--wu-line-height)}.wu-empty-state-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--wu-empty-state-actions-gap);margin-top:.75rem}.wu-empty-state-actions:empty{display:none}.wu-empty-state-sm{padding:var(--wu-empty-state-sm-padding)}.wu-empty-state-sm :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-sm-width);margin-bottom:.25rem}.wu-empty-state-sm .wu-empty-state-icon{width:calc(var(--wu-empty-state-icon-box) * .75);height:calc(var(--wu-empty-state-icon-box) * .75);font-size:calc(var(--wu-empty-state-icon-size) * .8)}.wu-empty-state-sm .wu-empty-state-title{font-size:var(--wu-empty-state-description-size)}.wu-empty-state-sm .wu-empty-state-description{font-size:.875em}.wu-empty-state-sm .wu-empty-state-actions{margin-top:.375rem}.wu-empty-state-lg{padding:var(--wu-empty-state-lg-padding)}.wu-empty-state-lg :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-lg-width)}.wu-empty-state-lg .wu-empty-state-title{font-size:calc(var(--wu-empty-state-title-size) * 1.25)}}\n"] }]
58
58
  }], ctorParameters: () => [], propDecorators: { type: [{
59
59
  type: Input
60
60
  }], title: [{
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-emptystate.mjs","sources":["../../lib/emptystate/emptystate.component.ts","../../lib/emptystate/emptystate.component.html","../../lib/emptystate/emptystate.module.ts","../../lib/emptystate/wirabyte-ui-emptystate.ts"],"sourcesContent":["import { NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, Input, OnDestroy, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig } from '@wirabyte/ui/config';\nimport { WuEmptyStateType } from '@wirabyte/ui/core';\n\nexport type { WuEmptyStateType };\nexport type WuEmptyStateSize = 'small' | 'normal' | 'large';\n\nconst TYPES: readonly WuEmptyStateType[] = ['nodata', 'search', 'inbox', 'folder', 'error', 'offline'];\n\n/**\n * What a list, table or page shows when there is nothing in it:\n * `<wu-empty-state type=\"search\"><wu-button label=\"ล้างตัวกรอง\" (onClick)=\"clear()\"></wu-button></wu-empty-state>`.\n * A drawing per `type` (no data, nothing found, empty inbox, empty folder, failed load, offline) in the theme's colours,\n * a title and a line under it in the app's language (both replaceable), and whatever is inside the tag as actions.\n * `icon` or `image` replace the drawing; `size=\"small\"` fits inside a table's empty row.\n */\n@Component({\n selector: 'wu-empty-state, wu-emptyState, wu-empty',\n standalone: true,\n imports: [NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault],\n templateUrl: './emptystate.component.html',\n styleUrls: ['./emptystate.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n // `title` is an input here: keep it off the host so the whole block gets no browser tooltip.\n host: { class: 'wu-empty-state-host', '[attr.title]': 'null' },\n})\nexport class WuEmptyState implements OnDestroy {\n /** Which drawing and default text. Default `'nodata'`. */\n @Input() set type(v: WuEmptyStateType | string | null | undefined) {\n this._type = TYPES.includes(v as WuEmptyStateType) ? (v as WuEmptyStateType) : 'nodata';\n }\n get type(): WuEmptyStateType {\n return this._type;\n }\n /** The title. Default: the locale's title for `type`; `''` shows none. */\n @Input() title?: string | null;\n /** The line under the title. Default: the locale's line for `type`; `''` shows none. */\n @Input() description?: string | null;\n /** An icon class (`'wi wi-users'`) in a soft circle, instead of the drawing. */\n @Input() icon?: string | null;\n /** A picture of your own instead of the drawing. */\n @Input() image?: string | null;\n @Input() imageAlt?: string | null;\n /** `false` leaves out the drawing (and icon / image). */\n @Input() showImage: boolean | string | null | undefined = true;\n /** `'small'` for inside tables and cards, `'large'` for a whole page. */\n @Input() size: WuEmptyStateSize | null | undefined = 'normal';\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n private _type: WuEmptyStateType = 'nodata';\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get titleText(): string {\n return this.title ?? this.config.translation.emptyState?.[this._type]?.title ?? '';\n }\n get descriptionText(): string {\n return this.description ?? this.config.translation.emptyState?.[this._type]?.description ?? '';\n }\n get pictured(): boolean {\n return this.showImage !== false && this.showImage !== 'false';\n }\n get sizeClass(): string {\n return this.size === 'small' ? 'wu-empty-state-sm' : this.size === 'large' ? 'wu-empty-state-lg' : '';\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n}\n","<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuEmptyState } from './emptystate.component';\n\n/** For NgModule apps. Standalone apps can import `WuEmptyState` directly. */\n@NgModule({\n imports: [WuEmptyState],\n exports: [WuEmptyState],\n})\nexport class WuEmptyStateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;;AAQA,MAAM,KAAK,GAAgC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAEtG;;;;;;AAMG;MAYU,YAAY,CAAA;;IAEvB,IAAa,IAAI,CAAC,CAA+C,EAAA;AAC/D,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAqB,CAAC,GAAI,CAAsB,GAAG,QAAQ;IACzF;AACA,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK;IACnB;AAsBA,IAAA,WAAA,GAAA;;QAXS,IAAA,CAAA,SAAS,GAA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EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;ACPD;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-emptystate.mjs","sources":["../../lib/emptystate/emptystate.component.ts","../../lib/emptystate/emptystate.component.html","../../lib/emptystate/emptystate.module.ts","../../lib/emptystate/wirabyte-ui-emptystate.ts"],"sourcesContent":["import { NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, Input, OnDestroy, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig } from '@wirabyte/ui/config';\nimport { WuEmptyStateType } from '@wirabyte/ui/core';\n\nexport type { WuEmptyStateType };\nexport type WuEmptyStateSize = 'small' | 'normal' | 'large';\n\nconst TYPES: readonly WuEmptyStateType[] = ['nodata', 'search', 'inbox', 'folder', 'error', 'offline'];\n\n/**\n * What a list, table or page shows when there is nothing in it:\n * `<wu-empty-state type=\"search\"><wu-button label=\"ล้างตัวกรอง\" (onClick)=\"clear()\"></wu-button></wu-empty-state>`.\n * A drawing per `type` (no data, nothing found, empty inbox, empty folder, failed load, offline) in the theme's colours,\n * a title and a line under it in the app's language (both replaceable), and whatever is inside the tag as actions.\n * `icon` or `image` replace the drawing; `size=\"small\"` fits inside a table's empty row.\n */\n@Component({\n selector: 'wu-empty-state, wu-emptyState, wu-empty',\n standalone: true,\n imports: [NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault],\n templateUrl: './emptystate.component.html',\n styleUrls: ['./emptystate.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n // `title` is an input here: keep it off the host so the whole block gets no browser tooltip.\n host: { class: 'wu-empty-state-host', '[attr.title]': 'null' },\n})\nexport class WuEmptyState implements OnDestroy {\n /** Which drawing and default text. Default `'nodata'`. */\n @Input() set type(v: WuEmptyStateType | string | null | undefined) {\n this._type = TYPES.includes(v as WuEmptyStateType) ? (v as WuEmptyStateType) : 'nodata';\n }\n get type(): WuEmptyStateType {\n return this._type;\n }\n /** The title. Default: the locale's title for `type`; `''` shows none. */\n @Input() title?: string | null;\n /** The line under the title. Default: the locale's line for `type`; `''` shows none. */\n @Input() description?: string | null;\n /** An icon class (`'wi wi-users'`) in a soft circle, instead of the drawing. */\n @Input() icon?: string | null;\n /** A picture of your own instead of the drawing. */\n @Input() image?: string | null;\n @Input() imageAlt?: string | null;\n /** `false` leaves out the drawing (and icon / image). */\n @Input() showImage: boolean | string | null | undefined = true;\n /** `'small'` for inside tables and cards, `'large'` for a whole page. */\n @Input() size: WuEmptyStateSize | null | undefined = 'normal';\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n private _type: WuEmptyStateType = 'nodata';\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get titleText(): string {\n return this.title ?? this.config.translation.emptyState?.[this._type]?.title ?? '';\n }\n get descriptionText(): string {\n return this.description ?? this.config.translation.emptyState?.[this._type]?.description ?? '';\n }\n get pictured(): boolean {\n return this.showImage !== false && this.showImage !== 'false';\n }\n get sizeClass(): string {\n return this.size === 'small' ? 'wu-empty-state-sm' : this.size === 'large' ? 'wu-empty-state-lg' : '';\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n}\n","<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuEmptyState } from './emptystate.component';\n\n/** For NgModule apps. Standalone apps can import `WuEmptyState` directly. */\n@NgModule({\n imports: [WuEmptyState],\n exports: [WuEmptyState],\n})\nexport class WuEmptyStateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;;AAQA,MAAM,KAAK,GAAgC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAEtG;;;;;;AAMG;MAYU,YAAY,CAAA;;IAEvB,IAAa,IAAI,CAAC,CAA+C,EAAA;AAC/D,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAqB,CAAC,GAAI,CAAsB,GAAG,QAAQ;IACzF;AACA,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK;IACnB;AAsBA,IAAA,WAAA,GAAA;;QAXS,IAAA,CAAA,SAAS,GAAwC,IAAI;;QAErD,IAAA,CAAA,IAAI,GAAwC,QAAQ;QAKrD,IAAA,CAAA,KAAK,GAAqB,QAAQ;AACzB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;QACzB,IAAA,CAAA,IAAI,GAAGA,qBAAqB,EAAE;AAG7C,QAAAC,uBAAuB,CAAC,MAAM,CAACC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7E;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,IA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AE,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAA,QAAA,EAAA,s+HAAA,EAAA,MAAA,EAAA,CAAA,ygGAAA,CAAA,EAAA;wDAIjD,IAAI,EAAA,CAAA;sBAAhB;gBAOQ,KAAK,EAAA,CAAA;sBAAb;gBAEQ,WAAW,EAAA,CAAA;sBAAnB;gBAEQ,IAAI,EAAA,CAAA;sBAAZ;gBAEQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;gBAEQ,SAAS,EAAA,CAAA;sBAAjB;gBAEQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBAEQ,KAAK,EAAA,CAAA;sBAAb;;;AEhDH;MAKa,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,OAAA,EAAA,CAHnB,YAAY,CAAA,EAAA,OAAA,EAAA,CACZ,YAAY,CAAA,EAAA,CAAA,CAAA;gHAEX,kBAAkB,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;ACPD;;AAEG;;"}
@@ -129,11 +129,11 @@ class WuErrorPage {
129
129
  }
130
130
  }
131
131
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuErrorPage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
132
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuErrorPage, isStandalone: true, selector: "wu-error-page, wu-errorPage", inputs: { code: "code", look: "look", title: "title", description: "description", reference: "reference", actions: "actions", homeLink: "homeLink", signInLink: "signInLink", fullPage: "fullPage", headingLevel: "headingLevel", styleClass: "styleClass", style: "style" }, outputs: { action: "action" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-error-page-host" }, ngImport: i0, template: "<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{wu-error-page,wu-errorPage{display:block}.wu-error-page{display:flex;flex-direction:column;align-items:center;gap:var(--wu-error-page-gap);padding:var(--wu-error-page-padding);text-align:center;font-family:var(--wu-font-family)}.wu-error-page-full{box-sizing:border-box;justify-content:center;min-height:100vh;min-height:100dvh}.wu-ep-art{display:flex;flex-direction:column;align-items:center;margin-bottom:.5rem}.wu-ep-badge{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-error-page-badge-size);height:var(--wu-error-page-badge-size);margin-bottom:1rem;border-radius:var(--wu-radius-lg);background:var(--wu-error-page-badge-bg);color:var(--wu-error-page-badge-color)}.wu-ep-badge svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-ep-label{color:var(--wu-error-page-label-color);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.wu-ep-code{background:linear-gradient(180deg,var(--wu-error-page-code-from),var(--wu-error-page-code-to));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:var(--wu-error-page-code-size);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.wu-ep-mascot{display:block;width:var(--wu-error-page-mascot-width);max-width:100%;height:auto;overflow:visible}.wu-ep-k-blob{fill:var(--wu-error-page-k-blob)}.wu-ep-k-spark{fill:var(--wu-error-page-k-spark);transform-box:fill-box;transform-origin:center;animation:wu-ep-twinkle 2.4s ease-in-out infinite}.wu-ep-k-spark-2{animation-delay:.8s}.wu-ep-k-spark-3{animation-delay:1.6s}.wu-ep-k-shadow{fill:var(--wu-error-page-k-ink);opacity:.12;transform-box:fill-box;transform-origin:center;animation:wu-ep-shadow 3s ease-in-out infinite}.wu-ep-k-bob{animation:wu-ep-bob 3s ease-in-out infinite}.wu-ep-k-body,.wu-ep-k-bubble{fill:var(--wu-error-page-k-body);stroke:var(--wu-error-page-k-ink);stroke-width:3.5;stroke-linejoin:round}.wu-ep-k-bubble{stroke-width:3}.wu-ep-k-blush{fill:var(--wu-error-page-k-blush)}.wu-ep-k-ink{fill:var(--wu-error-page-k-ink)}.wu-ep-k-shine{fill:#fff}.wu-ep-k-line{fill:none;stroke:var(--wu-error-page-k-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wu-ep-k-thin{stroke-width:2.5}.wu-ep-k-eyes{transform-box:fill-box;transform-origin:center;animation:wu-ep-blink 4.5s infinite}.wu-ep-k-sign{fill:var(--wu-error-page-k-sign)}.wu-ep-k-outline{stroke:var(--wu-error-page-k-ink);stroke-width:3}.wu-ep-k-code{fill:var(--wu-error-page-k-sign-text);font-family:var(--wu-font-family);font-size:25px;font-weight:800;letter-spacing:.02em}.wu-ep-k-mark{fill:var(--wu-error-page-k-sign);font-family:var(--wu-font-family);font-size:22px;font-weight:800}.wu-ep-k-small{font-size:15px}.wu-ep-k-drop{fill:var(--wu-error-page-k-drop);stroke:var(--wu-error-page-k-ink);stroke-width:2;animation:wu-ep-drip 1.6s ease-in infinite}.wu-ep-k-drop-2{animation-delay:.6s}.wu-ep-k-orbit{transform-box:view-box;transform-origin:130px 56px;animation:wu-ep-orbit 3.2s linear infinite}.wu-ep-k-snore{animation:wu-ep-snore 2.6s ease-in-out infinite}@keyframes wu-ep-bob{50%{transform:translateY(-5px)}}@keyframes wu-ep-shadow{50%{transform:scaleX(.86);opacity:.08}}@keyframes wu-ep-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes wu-ep-twinkle{50%{transform:scale(.55) rotate(20deg);opacity:.55}}@keyframes wu-ep-drip{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}to{transform:translateY(8px);opacity:0}}@keyframes wu-ep-orbit{to{transform:rotate(360deg)}}@keyframes wu-ep-snore{50%{transform:translate(4px,-5px);opacity:.6}}.wu-ep-title{margin:0;color:var(--wu-error-page-title-color);font-size:var(--wu-error-page-title-size);font-weight:var(--wu-error-page-title-weight);line-height:var(--wu-line-height)}.wu-ep-description{margin:0;max-width:34rem;color:var(--wu-error-page-description-color);line-height:var(--wu-line-height)}.wu-ep-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem}.wu-ep-actions:empty{display:none}.wu-ep-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1.125rem;border:1px solid var(--wu-error-page-button-border);border-radius:var(--wu-error-page-button-radius);background:var(--wu-error-page-button-bg);color:var(--wu-error-page-button-color);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition),transform var(--wu-transition)}.wu-ep-button:hover{background:var(--wu-hover-bg)}.wu-ep-button-main{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-ep-button-main:hover{background:var(--wu-primary-hover);border-color:var(--wu-primary-hover)}.wu-ep-button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-error-page-kawaii .wu-ep-button{border-radius:999px;box-shadow:0 3px 0 var(--wu-error-page-button-border)}.wu-error-page-kawaii .wu-ep-button-main{box-shadow:0 3px 0 var(--wu-error-page-k-button-shadow)}.wu-error-page-kawaii .wu-ep-button:active{transform:translateY(2px);box-shadow:none}.wu-ep-reference{margin:.5rem 0 0;color:var(--wu-error-page-description-color);font-size:.8125rem}.wu-ep-reference code{padding:.125rem .375rem;border-radius:var(--wu-radius-sm);background:var(--wu-hover-bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:all;user-select:all}.wu-ep-content{box-sizing:border-box;width:100%;max-width:36rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:var(--wu-radius-md);background:var(--wu-hover-bg);text-align:start}.wu-ep-content:empty{display:none}@media (prefers-reduced-motion: reduce){.wu-ep-k-spark,.wu-ep-k-shadow,.wu-ep-k-bob,.wu-ep-k-eyes,.wu-ep-k-drop,.wu-ep-k-orbit,.wu-ep-k-snore{animation:none}}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
132
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuErrorPage, isStandalone: true, selector: "wu-error-page, wu-errorPage", inputs: { code: "code", look: "look", title: "title", description: "description", reference: "reference", actions: "actions", homeLink: "homeLink", signInLink: "signInLink", fullPage: "fullPage", headingLevel: "headingLevel", styleClass: "styleClass", style: "style" }, outputs: { action: "action" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-error-page-host" }, ngImport: i0, template: "<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{wu-error-page,wu-errorPage{display:block}.wu-error-page{display:flex;flex-direction:column;align-items:center;gap:var(--wu-error-page-gap);padding:var(--wu-error-page-padding);text-align:center;font-family:var(--wu-font-family)}.wu-error-page-full{box-sizing:border-box;justify-content:center;min-height:100vh;min-height:100dvh}.wu-ep-art{display:flex;flex-direction:column;align-items:center;margin-bottom:.5rem}.wu-ep-badge{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-error-page-badge-size);height:var(--wu-error-page-badge-size);margin-bottom:1rem;border-radius:var(--wu-radius-lg);background:var(--wu-error-page-badge-bg);color:var(--wu-error-page-badge-color)}.wu-ep-badge svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-ep-label{color:var(--wu-error-page-label-color);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.wu-ep-code{background:linear-gradient(180deg,var(--wu-error-page-code-from),var(--wu-error-page-code-to));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:var(--wu-error-page-code-size);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.wu-ep-mascot{display:block;width:var(--wu-error-page-mascot-width);max-width:100%;height:auto;overflow:visible}.wu-ep-k-blob{fill:var(--wu-error-page-k-blob)}.wu-ep-k-spark{fill:var(--wu-error-page-k-spark);transform-box:fill-box;transform-origin:center;animation:wu-ep-twinkle 2.4s ease-in-out infinite}.wu-ep-k-spark-2{animation-delay:.8s}.wu-ep-k-spark-3{animation-delay:1.6s}.wu-ep-k-shadow{fill:var(--wu-error-page-k-ink);opacity:.12;transform-box:fill-box;transform-origin:center;animation:wu-ep-shadow 3s ease-in-out infinite}.wu-ep-k-bob{animation:wu-ep-bob 3s ease-in-out infinite}.wu-ep-k-body,.wu-ep-k-bubble{fill:var(--wu-error-page-k-body);stroke:var(--wu-error-page-k-ink);stroke-width:3.5;stroke-linejoin:round}.wu-ep-k-bubble{stroke-width:3}.wu-ep-k-blush{fill:var(--wu-error-page-k-blush)}.wu-ep-k-ink{fill:var(--wu-error-page-k-ink)}.wu-ep-k-shine{fill:#fff}.wu-ep-k-line{fill:none;stroke:var(--wu-error-page-k-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wu-ep-k-thin{stroke-width:2.5}.wu-ep-k-eyes{transform-box:fill-box;transform-origin:center;animation:wu-ep-blink 4.5s infinite}.wu-ep-k-sign{fill:var(--wu-error-page-k-sign)}.wu-ep-k-outline{stroke:var(--wu-error-page-k-ink);stroke-width:3}.wu-ep-k-code{fill:var(--wu-error-page-k-sign-text);font-family:var(--wu-font-family);font-size:25px;font-weight:800;letter-spacing:.02em}.wu-ep-k-mark{fill:var(--wu-error-page-k-sign);font-family:var(--wu-font-family);font-size:22px;font-weight:800}.wu-ep-k-small{font-size:15px}.wu-ep-k-drop{fill:var(--wu-error-page-k-drop);stroke:var(--wu-error-page-k-ink);stroke-width:2;animation:wu-ep-drip 1.6s ease-in infinite}.wu-ep-k-drop-2{animation-delay:.6s}.wu-ep-k-orbit{transform-box:view-box;transform-origin:130px 56px;animation:wu-ep-orbit 3.2s linear infinite}.wu-ep-k-snore{animation:wu-ep-snore 2.6s ease-in-out infinite}@keyframes wu-ep-bob{50%{transform:translateY(-5px)}}@keyframes wu-ep-shadow{50%{transform:scaleX(.86);opacity:.08}}@keyframes wu-ep-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes wu-ep-twinkle{50%{transform:scale(.55) rotate(20deg);opacity:.55}}@keyframes wu-ep-drip{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}to{transform:translateY(8px);opacity:0}}@keyframes wu-ep-orbit{to{transform:rotate(360deg)}}@keyframes wu-ep-snore{50%{transform:translate(4px,-5px);opacity:.6}}.wu-ep-title{font-family:var(--wu-heading-font-family);margin:0;color:var(--wu-error-page-title-color);font-size:var(--wu-error-page-title-size);font-weight:var(--wu-error-page-title-weight);line-height:var(--wu-line-height)}.wu-ep-description{margin:0;max-width:34rem;color:var(--wu-error-page-description-color);line-height:var(--wu-line-height)}.wu-ep-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem}.wu-ep-actions:empty{display:none}.wu-ep-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1.125rem;border:1px solid var(--wu-error-page-button-border);border-radius:var(--wu-error-page-button-radius);background:var(--wu-error-page-button-bg);color:var(--wu-error-page-button-color);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition),transform var(--wu-transition)}.wu-ep-button:hover{background:var(--wu-hover-bg)}.wu-ep-button-main{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-ep-button-main:hover{background:var(--wu-primary-hover);border-color:var(--wu-primary-hover)}.wu-ep-button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-error-page-kawaii .wu-ep-button{border-radius:999px;box-shadow:0 3px 0 var(--wu-error-page-button-border)}.wu-error-page-kawaii .wu-ep-button-main{box-shadow:0 3px 0 var(--wu-error-page-k-button-shadow)}.wu-error-page-kawaii .wu-ep-button:active{transform:translateY(2px);box-shadow:none}.wu-ep-reference{margin:.5rem 0 0;color:var(--wu-error-page-description-color);font-size:.8125rem}.wu-ep-reference code{padding:.125rem .375rem;border-radius:var(--wu-radius-sm);background:var(--wu-hover-bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:all;user-select:all}.wu-ep-content{box-sizing:border-box;width:100%;max-width:36rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:var(--wu-radius-md);background:var(--wu-hover-bg);text-align:start}.wu-ep-content:empty{display:none}@media (prefers-reduced-motion: reduce){.wu-ep-k-spark,.wu-ep-k-shadow,.wu-ep-k-bob,.wu-ep-k-eyes,.wu-ep-k-drop,.wu-ep-k-orbit,.wu-ep-k-snore{animation:none}}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
133
133
  }
134
134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuErrorPage, decorators: [{
135
135
  type: Component,
136
- args: [{ selector: 'wu-error-page, wu-errorPage', standalone: true, imports: [NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-error-page-host', '[attr.title]': 'null' }, template: "<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{wu-error-page,wu-errorPage{display:block}.wu-error-page{display:flex;flex-direction:column;align-items:center;gap:var(--wu-error-page-gap);padding:var(--wu-error-page-padding);text-align:center;font-family:var(--wu-font-family)}.wu-error-page-full{box-sizing:border-box;justify-content:center;min-height:100vh;min-height:100dvh}.wu-ep-art{display:flex;flex-direction:column;align-items:center;margin-bottom:.5rem}.wu-ep-badge{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-error-page-badge-size);height:var(--wu-error-page-badge-size);margin-bottom:1rem;border-radius:var(--wu-radius-lg);background:var(--wu-error-page-badge-bg);color:var(--wu-error-page-badge-color)}.wu-ep-badge svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-ep-label{color:var(--wu-error-page-label-color);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.wu-ep-code{background:linear-gradient(180deg,var(--wu-error-page-code-from),var(--wu-error-page-code-to));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:var(--wu-error-page-code-size);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.wu-ep-mascot{display:block;width:var(--wu-error-page-mascot-width);max-width:100%;height:auto;overflow:visible}.wu-ep-k-blob{fill:var(--wu-error-page-k-blob)}.wu-ep-k-spark{fill:var(--wu-error-page-k-spark);transform-box:fill-box;transform-origin:center;animation:wu-ep-twinkle 2.4s ease-in-out infinite}.wu-ep-k-spark-2{animation-delay:.8s}.wu-ep-k-spark-3{animation-delay:1.6s}.wu-ep-k-shadow{fill:var(--wu-error-page-k-ink);opacity:.12;transform-box:fill-box;transform-origin:center;animation:wu-ep-shadow 3s ease-in-out infinite}.wu-ep-k-bob{animation:wu-ep-bob 3s ease-in-out infinite}.wu-ep-k-body,.wu-ep-k-bubble{fill:var(--wu-error-page-k-body);stroke:var(--wu-error-page-k-ink);stroke-width:3.5;stroke-linejoin:round}.wu-ep-k-bubble{stroke-width:3}.wu-ep-k-blush{fill:var(--wu-error-page-k-blush)}.wu-ep-k-ink{fill:var(--wu-error-page-k-ink)}.wu-ep-k-shine{fill:#fff}.wu-ep-k-line{fill:none;stroke:var(--wu-error-page-k-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wu-ep-k-thin{stroke-width:2.5}.wu-ep-k-eyes{transform-box:fill-box;transform-origin:center;animation:wu-ep-blink 4.5s infinite}.wu-ep-k-sign{fill:var(--wu-error-page-k-sign)}.wu-ep-k-outline{stroke:var(--wu-error-page-k-ink);stroke-width:3}.wu-ep-k-code{fill:var(--wu-error-page-k-sign-text);font-family:var(--wu-font-family);font-size:25px;font-weight:800;letter-spacing:.02em}.wu-ep-k-mark{fill:var(--wu-error-page-k-sign);font-family:var(--wu-font-family);font-size:22px;font-weight:800}.wu-ep-k-small{font-size:15px}.wu-ep-k-drop{fill:var(--wu-error-page-k-drop);stroke:var(--wu-error-page-k-ink);stroke-width:2;animation:wu-ep-drip 1.6s ease-in infinite}.wu-ep-k-drop-2{animation-delay:.6s}.wu-ep-k-orbit{transform-box:view-box;transform-origin:130px 56px;animation:wu-ep-orbit 3.2s linear infinite}.wu-ep-k-snore{animation:wu-ep-snore 2.6s ease-in-out infinite}@keyframes wu-ep-bob{50%{transform:translateY(-5px)}}@keyframes wu-ep-shadow{50%{transform:scaleX(.86);opacity:.08}}@keyframes wu-ep-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes wu-ep-twinkle{50%{transform:scale(.55) rotate(20deg);opacity:.55}}@keyframes wu-ep-drip{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}to{transform:translateY(8px);opacity:0}}@keyframes wu-ep-orbit{to{transform:rotate(360deg)}}@keyframes wu-ep-snore{50%{transform:translate(4px,-5px);opacity:.6}}.wu-ep-title{margin:0;color:var(--wu-error-page-title-color);font-size:var(--wu-error-page-title-size);font-weight:var(--wu-error-page-title-weight);line-height:var(--wu-line-height)}.wu-ep-description{margin:0;max-width:34rem;color:var(--wu-error-page-description-color);line-height:var(--wu-line-height)}.wu-ep-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem}.wu-ep-actions:empty{display:none}.wu-ep-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1.125rem;border:1px solid var(--wu-error-page-button-border);border-radius:var(--wu-error-page-button-radius);background:var(--wu-error-page-button-bg);color:var(--wu-error-page-button-color);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition),transform var(--wu-transition)}.wu-ep-button:hover{background:var(--wu-hover-bg)}.wu-ep-button-main{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-ep-button-main:hover{background:var(--wu-primary-hover);border-color:var(--wu-primary-hover)}.wu-ep-button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-error-page-kawaii .wu-ep-button{border-radius:999px;box-shadow:0 3px 0 var(--wu-error-page-button-border)}.wu-error-page-kawaii .wu-ep-button-main{box-shadow:0 3px 0 var(--wu-error-page-k-button-shadow)}.wu-error-page-kawaii .wu-ep-button:active{transform:translateY(2px);box-shadow:none}.wu-ep-reference{margin:.5rem 0 0;color:var(--wu-error-page-description-color);font-size:.8125rem}.wu-ep-reference code{padding:.125rem .375rem;border-radius:var(--wu-radius-sm);background:var(--wu-hover-bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:all;user-select:all}.wu-ep-content{box-sizing:border-box;width:100%;max-width:36rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:var(--wu-radius-md);background:var(--wu-hover-bg);text-align:start}.wu-ep-content:empty{display:none}@media (prefers-reduced-motion: reduce){.wu-ep-k-spark,.wu-ep-k-shadow,.wu-ep-k-bob,.wu-ep-k-eyes,.wu-ep-k-drop,.wu-ep-k-orbit,.wu-ep-k-snore{animation:none}}}\n"] }]
136
+ args: [{ selector: 'wu-error-page, wu-errorPage', standalone: true, imports: [NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-error-page-host', '[attr.title]': 'null' }, template: "<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{wu-error-page,wu-errorPage{display:block}.wu-error-page{display:flex;flex-direction:column;align-items:center;gap:var(--wu-error-page-gap);padding:var(--wu-error-page-padding);text-align:center;font-family:var(--wu-font-family)}.wu-error-page-full{box-sizing:border-box;justify-content:center;min-height:100vh;min-height:100dvh}.wu-ep-art{display:flex;flex-direction:column;align-items:center;margin-bottom:.5rem}.wu-ep-badge{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-error-page-badge-size);height:var(--wu-error-page-badge-size);margin-bottom:1rem;border-radius:var(--wu-radius-lg);background:var(--wu-error-page-badge-bg);color:var(--wu-error-page-badge-color)}.wu-ep-badge svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-ep-label{color:var(--wu-error-page-label-color);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.wu-ep-code{background:linear-gradient(180deg,var(--wu-error-page-code-from),var(--wu-error-page-code-to));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:var(--wu-error-page-code-size);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.wu-ep-mascot{display:block;width:var(--wu-error-page-mascot-width);max-width:100%;height:auto;overflow:visible}.wu-ep-k-blob{fill:var(--wu-error-page-k-blob)}.wu-ep-k-spark{fill:var(--wu-error-page-k-spark);transform-box:fill-box;transform-origin:center;animation:wu-ep-twinkle 2.4s ease-in-out infinite}.wu-ep-k-spark-2{animation-delay:.8s}.wu-ep-k-spark-3{animation-delay:1.6s}.wu-ep-k-shadow{fill:var(--wu-error-page-k-ink);opacity:.12;transform-box:fill-box;transform-origin:center;animation:wu-ep-shadow 3s ease-in-out infinite}.wu-ep-k-bob{animation:wu-ep-bob 3s ease-in-out infinite}.wu-ep-k-body,.wu-ep-k-bubble{fill:var(--wu-error-page-k-body);stroke:var(--wu-error-page-k-ink);stroke-width:3.5;stroke-linejoin:round}.wu-ep-k-bubble{stroke-width:3}.wu-ep-k-blush{fill:var(--wu-error-page-k-blush)}.wu-ep-k-ink{fill:var(--wu-error-page-k-ink)}.wu-ep-k-shine{fill:#fff}.wu-ep-k-line{fill:none;stroke:var(--wu-error-page-k-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wu-ep-k-thin{stroke-width:2.5}.wu-ep-k-eyes{transform-box:fill-box;transform-origin:center;animation:wu-ep-blink 4.5s infinite}.wu-ep-k-sign{fill:var(--wu-error-page-k-sign)}.wu-ep-k-outline{stroke:var(--wu-error-page-k-ink);stroke-width:3}.wu-ep-k-code{fill:var(--wu-error-page-k-sign-text);font-family:var(--wu-font-family);font-size:25px;font-weight:800;letter-spacing:.02em}.wu-ep-k-mark{fill:var(--wu-error-page-k-sign);font-family:var(--wu-font-family);font-size:22px;font-weight:800}.wu-ep-k-small{font-size:15px}.wu-ep-k-drop{fill:var(--wu-error-page-k-drop);stroke:var(--wu-error-page-k-ink);stroke-width:2;animation:wu-ep-drip 1.6s ease-in infinite}.wu-ep-k-drop-2{animation-delay:.6s}.wu-ep-k-orbit{transform-box:view-box;transform-origin:130px 56px;animation:wu-ep-orbit 3.2s linear infinite}.wu-ep-k-snore{animation:wu-ep-snore 2.6s ease-in-out infinite}@keyframes wu-ep-bob{50%{transform:translateY(-5px)}}@keyframes wu-ep-shadow{50%{transform:scaleX(.86);opacity:.08}}@keyframes wu-ep-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes wu-ep-twinkle{50%{transform:scale(.55) rotate(20deg);opacity:.55}}@keyframes wu-ep-drip{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}to{transform:translateY(8px);opacity:0}}@keyframes wu-ep-orbit{to{transform:rotate(360deg)}}@keyframes wu-ep-snore{50%{transform:translate(4px,-5px);opacity:.6}}.wu-ep-title{font-family:var(--wu-heading-font-family);margin:0;color:var(--wu-error-page-title-color);font-size:var(--wu-error-page-title-size);font-weight:var(--wu-error-page-title-weight);line-height:var(--wu-line-height)}.wu-ep-description{margin:0;max-width:34rem;color:var(--wu-error-page-description-color);line-height:var(--wu-line-height)}.wu-ep-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem}.wu-ep-actions:empty{display:none}.wu-ep-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1.125rem;border:1px solid var(--wu-error-page-button-border);border-radius:var(--wu-error-page-button-radius);background:var(--wu-error-page-button-bg);color:var(--wu-error-page-button-color);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition),transform var(--wu-transition)}.wu-ep-button:hover{background:var(--wu-hover-bg)}.wu-ep-button-main{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-ep-button-main:hover{background:var(--wu-primary-hover);border-color:var(--wu-primary-hover)}.wu-ep-button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-error-page-kawaii .wu-ep-button{border-radius:999px;box-shadow:0 3px 0 var(--wu-error-page-button-border)}.wu-error-page-kawaii .wu-ep-button-main{box-shadow:0 3px 0 var(--wu-error-page-k-button-shadow)}.wu-error-page-kawaii .wu-ep-button:active{transform:translateY(2px);box-shadow:none}.wu-ep-reference{margin:.5rem 0 0;color:var(--wu-error-page-description-color);font-size:.8125rem}.wu-ep-reference code{padding:.125rem .375rem;border-radius:var(--wu-radius-sm);background:var(--wu-hover-bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:all;user-select:all}.wu-ep-content{box-sizing:border-box;width:100%;max-width:36rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:var(--wu-radius-md);background:var(--wu-hover-bg);text-align:start}.wu-ep-content:empty{display:none}@media (prefers-reduced-motion: reduce){.wu-ep-k-spark,.wu-ep-k-shadow,.wu-ep-k-bob,.wu-ep-k-eyes,.wu-ep-k-drop,.wu-ep-k-orbit,.wu-ep-k-snore{animation:none}}}\n"] }]
137
137
  }], ctorParameters: () => [], propDecorators: { code: [{
138
138
  type: Input
139
139
  }], look: [{