@mhmo91/schmancy 0.2.160 → 0.2.162

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 (254) hide show
  1. package/dist/{animated-text-ButDz3vC.cjs → animated-text-CSOz5SCF.cjs} +2 -2
  2. package/dist/{animated-text-ButDz3vC.cjs.map → animated-text-CSOz5SCF.cjs.map} +1 -1
  3. package/dist/{animated-text-Be992jA_.js → animated-text-DUB2OEsp.js} +3 -3
  4. package/dist/{animated-text-Be992jA_.js.map → animated-text-DUB2OEsp.js.map} +1 -1
  5. package/dist/animated-text.cjs +1 -1
  6. package/dist/animated-text.js +1 -1
  7. package/dist/area.cjs +1 -1
  8. package/dist/{area.component-BNFH4xlv.js → area.component-BWaTpFPB.js} +6 -6
  9. package/dist/{area.component-BNFH4xlv.js.map → area.component-BWaTpFPB.js.map} +1 -1
  10. package/dist/{area.component-H7yKE0i1.cjs → area.component-kK1WKJY2.cjs} +2 -2
  11. package/dist/{area.component-H7yKE0i1.cjs.map → area.component-kK1WKJY2.cjs.map} +1 -1
  12. package/dist/area.js +1 -1
  13. package/dist/{autocomplete-BoqVyf_5.cjs → autocomplete-BKPUk9e5.cjs} +2 -2
  14. package/dist/{autocomplete-BoqVyf_5.cjs.map → autocomplete-BKPUk9e5.cjs.map} +1 -1
  15. package/dist/{autocomplete-Dq94h33i.js → autocomplete-Di9kiTER.js} +3 -3
  16. package/dist/{autocomplete-Dq94h33i.js.map → autocomplete-Di9kiTER.js.map} +1 -1
  17. package/dist/autocomplete.cjs +1 -1
  18. package/dist/autocomplete.js +1 -1
  19. package/dist/badge.cjs +1 -1
  20. package/dist/badge.js +1 -1
  21. package/dist/busy.cjs +1 -1
  22. package/dist/busy.js +1 -1
  23. package/dist/button.cjs +1 -1
  24. package/dist/button.js +1 -1
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.js +1 -1
  27. package/dist/{checkbox-C3oCN6-m.cjs → checkbox-CwMYYFc5.cjs} +2 -2
  28. package/dist/{checkbox-C3oCN6-m.cjs.map → checkbox-CwMYYFc5.cjs.map} +1 -1
  29. package/dist/{checkbox-D82AhpUU.js → checkbox-Dr_Nv_NO.js} +2 -2
  30. package/dist/{checkbox-D82AhpUU.js.map → checkbox-Dr_Nv_NO.js.map} +1 -1
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.js +1 -1
  33. package/dist/{chips-C1lJe-VM.cjs → chips-CMSDxpu9.cjs} +2 -2
  34. package/dist/{chips-C1lJe-VM.cjs.map → chips-CMSDxpu9.cjs.map} +1 -1
  35. package/dist/{chips-BImfI_Cy.js → chips-Dy8t83by.js} +3 -3
  36. package/dist/{chips-BImfI_Cy.js.map → chips-Dy8t83by.js.map} +1 -1
  37. package/dist/chips.cjs +1 -1
  38. package/dist/chips.js +1 -1
  39. package/dist/components.cjs +1 -1
  40. package/dist/components.js +1 -1
  41. package/dist/content-drawer.cjs +1 -1
  42. package/dist/content-drawer.js +1 -1
  43. package/dist/{date-range-D_TITodq.cjs → date-range-B2cD9hQe.cjs} +2 -2
  44. package/dist/{date-range-D_TITodq.cjs.map → date-range-B2cD9hQe.cjs.map} +1 -1
  45. package/dist/{date-range-B36NwQJj.js → date-range-BSRsyfMM.js} +3 -3
  46. package/dist/{date-range-B36NwQJj.js.map → date-range-BSRsyfMM.js.map} +1 -1
  47. package/dist/date-range.cjs +1 -1
  48. package/dist/date-range.js +1 -1
  49. package/dist/{delay-u3ZtuHuD.js → delay-DN-mtGtE.js} +11 -11
  50. package/dist/{delay-u3ZtuHuD.js.map → delay-DN-mtGtE.js.map} +1 -1
  51. package/dist/{delay-BZANXguW.cjs → delay-DUjqSk9U.cjs} +2 -2
  52. package/dist/{delay-BZANXguW.cjs.map → delay-DUjqSk9U.cjs.map} +1 -1
  53. package/dist/delay.cjs +1 -1
  54. package/dist/delay.js +1 -1
  55. package/dist/{divider-4xKbeJOK.js → divider-CwrrRepk.js} +3 -3
  56. package/dist/{divider-4xKbeJOK.js.map → divider-CwrrRepk.js.map} +1 -1
  57. package/dist/{divider-BGh7WiTm.cjs → divider-D-3b8xBH.cjs} +2 -2
  58. package/dist/{divider-BGh7WiTm.cjs.map → divider-D-3b8xBH.cjs.map} +1 -1
  59. package/dist/divider.cjs +1 -1
  60. package/dist/divider.js +1 -1
  61. package/dist/extra.cjs +1 -1
  62. package/dist/extra.js +1 -1
  63. package/dist/flex-BJPUKHgq.cjs +41 -0
  64. package/dist/flex-BJPUKHgq.cjs.map +1 -0
  65. package/dist/flex-D4HMvbL2.js +238 -0
  66. package/dist/flex-D4HMvbL2.js.map +1 -0
  67. package/dist/{form-DwRU18it.cjs → form-CPm25cLE.cjs} +2 -2
  68. package/dist/{form-DwRU18it.cjs.map → form-CPm25cLE.cjs.map} +1 -1
  69. package/dist/{form-DEWs5VTx.js → form-D-CN4Npb.js} +2 -2
  70. package/dist/{form-DEWs5VTx.js.map → form-D-CN4Npb.js.map} +1 -1
  71. package/dist/form.cjs +1 -1
  72. package/dist/form.js +1 -1
  73. package/dist/{icon-Bpgf3d2W.cjs → icon-DUTbI5sF.cjs} +2 -2
  74. package/dist/{icon-Bpgf3d2W.cjs.map → icon-DUTbI5sF.cjs.map} +1 -1
  75. package/dist/{icon-D8bGIsnU.js → icon-baMFKlix.js} +3 -3
  76. package/dist/{icon-D8bGIsnU.js.map → icon-baMFKlix.js.map} +1 -1
  77. package/dist/{icon-button-BShbUJzz.js → icon-button-Dytz2u7f.js} +3 -3
  78. package/dist/{icon-button-BShbUJzz.js.map → icon-button-Dytz2u7f.js.map} +1 -1
  79. package/dist/{icon-button-Rmv2a0U5.cjs → icon-button-M79Lwelv.cjs} +2 -2
  80. package/dist/{icon-button-Rmv2a0U5.cjs.map → icon-button-M79Lwelv.cjs.map} +1 -1
  81. package/dist/icons.cjs +1 -1
  82. package/dist/icons.js +1 -1
  83. package/dist/index.cjs +1 -1
  84. package/dist/index.js +119 -121
  85. package/dist/index.js.map +1 -1
  86. package/dist/{input-CAJ-MBq7.cjs → input-C2wFU_S6.cjs} +2 -2
  87. package/dist/{input-CAJ-MBq7.cjs.map → input-C2wFU_S6.cjs.map} +1 -1
  88. package/dist/{input-D211jB9f.js → input-D390Osy4.js} +2 -2
  89. package/dist/{input-D211jB9f.js.map → input-D390Osy4.js.map} +1 -1
  90. package/dist/input.cjs +1 -1
  91. package/dist/input.js +1 -1
  92. package/dist/layout.cjs +1 -1
  93. package/dist/layout.js +1 -1
  94. package/dist/{list-DMXqpSCh.js → list-BJFvg0LF.js} +2 -2
  95. package/dist/{list-DMXqpSCh.js.map → list-BJFvg0LF.js.map} +1 -1
  96. package/dist/{list-CwdYlei9.cjs → list-Bn-B6Pbl.cjs} +2 -2
  97. package/dist/{list-CwdYlei9.cjs.map → list-Bn-B6Pbl.cjs.map} +1 -1
  98. package/dist/list.cjs +1 -1
  99. package/dist/list.js +1 -1
  100. package/dist/{litElement.mixin-B1zxT55T.js → litElement.mixin-CRbxrdrS.js} +2 -2
  101. package/dist/{litElement.mixin-B1zxT55T.js.map → litElement.mixin-CRbxrdrS.js.map} +1 -1
  102. package/dist/{litElement.mixin-Bl5r_3iS.cjs → litElement.mixin-CwAqMl79.cjs} +2 -2
  103. package/dist/{litElement.mixin-Bl5r_3iS.cjs.map → litElement.mixin-CwAqMl79.cjs.map} +1 -1
  104. package/dist/{menu-phn2-8UA.js → menu-5krKi7zq.js} +3 -3
  105. package/dist/{menu-phn2-8UA.js.map → menu-5krKi7zq.js.map} +1 -1
  106. package/dist/{menu-CBin71yi.cjs → menu-D6SHzgaV.cjs} +2 -2
  107. package/dist/{menu-CBin71yi.cjs.map → menu-D6SHzgaV.cjs.map} +1 -1
  108. package/dist/menu.cjs +1 -1
  109. package/dist/menu.js +1 -1
  110. package/dist/nav-drawer.cjs +1 -1
  111. package/dist/nav-drawer.js +1 -1
  112. package/dist/{notification-container-CRjLSf2l.cjs → notification-service-BFfFPd1Q.cjs} +19 -19
  113. package/dist/notification-service-BFfFPd1Q.cjs.map +1 -0
  114. package/dist/{notification-container-C5o2dqpe.js → notification-service-DA3l75i3.js} +127 -94
  115. package/dist/notification-service-DA3l75i3.js.map +1 -0
  116. package/dist/notification.cjs +1 -1
  117. package/dist/notification.js +5 -7
  118. package/dist/notification.js.map +1 -1
  119. package/dist/{option-CAZq8vIE.js → option-BAMNOMye.js} +2 -2
  120. package/dist/{option-CAZq8vIE.js.map → option-BAMNOMye.js.map} +1 -1
  121. package/dist/{option-DO30M5mj.cjs → option-DBh0pEws.cjs} +2 -2
  122. package/dist/{option-DO30M5mj.cjs.map → option-DBh0pEws.cjs.map} +1 -1
  123. package/dist/option.cjs +1 -1
  124. package/dist/option.js +1 -1
  125. package/dist/{payment-card-form-CFYt0jpm.js → payment-card-form-CNWsIJhu.js} +3 -3
  126. package/dist/{payment-card-form-CFYt0jpm.js.map → payment-card-form-CNWsIJhu.js.map} +1 -1
  127. package/dist/{payment-card-form-C0ib712J.cjs → payment-card-form-CklVDo7L.cjs} +2 -2
  128. package/dist/{payment-card-form-C0ib712J.cjs.map → payment-card-form-CklVDo7L.cjs.map} +1 -1
  129. package/dist/{radio-group-Xgv957h3.cjs → radio-group-8d4MJqaa.cjs} +2 -2
  130. package/dist/{radio-group-Xgv957h3.cjs.map → radio-group-8d4MJqaa.cjs.map} +1 -1
  131. package/dist/{radio-group-yCmH2g1m.js → radio-group-CRXQ4ajE.js} +2 -2
  132. package/dist/{radio-group-yCmH2g1m.js.map → radio-group-CRXQ4ajE.js.map} +1 -1
  133. package/dist/radio-group.cjs +1 -1
  134. package/dist/radio-group.js +1 -1
  135. package/dist/rxjs-utils.js +4 -4
  136. package/dist/{schmancy-steps-container-DozeItXT.js → schmancy-steps-container-DzeJED2U.js} +2 -2
  137. package/dist/{schmancy-steps-container-DozeItXT.js.map → schmancy-steps-container-DzeJED2U.js.map} +1 -1
  138. package/dist/{schmancy-steps-container-BUUNK6-a.cjs → schmancy-steps-container-KinQK3rz.cjs} +2 -2
  139. package/dist/{schmancy-steps-container-BUUNK6-a.cjs.map → schmancy-steps-container-KinQK3rz.cjs.map} +1 -1
  140. package/dist/{select-hrpNF0ay.cjs → select-DlblA74_.cjs} +2 -2
  141. package/dist/{select-hrpNF0ay.cjs.map → select-DlblA74_.cjs.map} +1 -1
  142. package/dist/{select-D1GqH9az.js → select-dxNE4mnd.js} +3 -3
  143. package/dist/{select-D1GqH9az.js.map → select-dxNE4mnd.js.map} +1 -1
  144. package/dist/select.cjs +1 -1
  145. package/dist/select.js +1 -1
  146. package/dist/selector-hook-omsuyAOu.js.map +1 -1
  147. package/dist/{sheet-BheMSUgv.js → sheet-BmIoE7Ej.js} +12 -12
  148. package/dist/{sheet-BheMSUgv.js.map → sheet-BmIoE7Ej.js.map} +1 -1
  149. package/dist/{sheet-j8iBPQ6T.cjs → sheet-D2sUghqi.cjs} +2 -2
  150. package/dist/{sheet-j8iBPQ6T.cjs.map → sheet-D2sUghqi.cjs.map} +1 -1
  151. package/dist/sheet.cjs +1 -1
  152. package/dist/sheet.js +1 -1
  153. package/dist/{slider-5_06CQZJ.js → slider-DCysIErg.js} +3 -3
  154. package/dist/{slider-5_06CQZJ.js.map → slider-DCysIErg.js.map} +1 -1
  155. package/dist/{slider-Dk2AGCrw.cjs → slider-VShAooYp.cjs} +2 -2
  156. package/dist/{slider-Dk2AGCrw.cjs.map → slider-VShAooYp.cjs.map} +1 -1
  157. package/dist/slider.cjs +1 -1
  158. package/dist/slider.js +1 -1
  159. package/dist/{spinner-CmaRhtzu.cjs → spinner-Dv-uGeoR.cjs} +2 -2
  160. package/dist/{spinner-CmaRhtzu.cjs.map → spinner-Dv-uGeoR.cjs.map} +1 -1
  161. package/dist/{spinner-DQPVv48S.js → spinner-UC31R_xS.js} +3 -3
  162. package/dist/{spinner-DQPVv48S.js.map → spinner-UC31R_xS.js.map} +1 -1
  163. package/dist/steps.cjs +1 -1
  164. package/dist/steps.js +1 -1
  165. package/dist/{surface-D5Jqe0bf.js → surface-B3v9NfAj.js} +2 -2
  166. package/dist/{surface-D5Jqe0bf.js.map → surface-B3v9NfAj.js.map} +1 -1
  167. package/dist/{surface-DAkIsvJB.cjs → surface-ClnnQP3o.cjs} +2 -2
  168. package/dist/{surface-DAkIsvJB.cjs.map → surface-ClnnQP3o.cjs.map} +1 -1
  169. package/dist/surface.cjs +1 -1
  170. package/dist/surface.js +1 -1
  171. package/dist/{table-CdsT8VSZ.js → table-BZ4h621V.js} +2 -2
  172. package/dist/{table-CdsT8VSZ.js.map → table-BZ4h621V.js.map} +1 -1
  173. package/dist/{table-CljxYE7x.cjs → table-CWDtSTrW.cjs} +2 -2
  174. package/dist/{table-CljxYE7x.cjs.map → table-CWDtSTrW.cjs.map} +1 -1
  175. package/dist/table.cjs +1 -1
  176. package/dist/table.js +1 -1
  177. package/dist/{tabs-group-DLwYQyDv.cjs → tabs-group-Bb4uOpJc.cjs} +2 -2
  178. package/dist/{tabs-group-DLwYQyDv.cjs.map → tabs-group-Bb4uOpJc.cjs.map} +1 -1
  179. package/dist/{tabs-group-BmHljUlz.js → tabs-group-WJjM75TT.js} +2 -2
  180. package/dist/{tabs-group-BmHljUlz.js.map → tabs-group-WJjM75TT.js.map} +1 -1
  181. package/dist/tabs.cjs +1 -1
  182. package/dist/tabs.js +1 -1
  183. package/dist/tailwind.mixin-B_hJc1PP.js +43 -0
  184. package/dist/{tailwind.mixin-Q2P-9IKt.js.map → tailwind.mixin-B_hJc1PP.js.map} +1 -1
  185. package/dist/tailwind.mixin-DLuYz9Iz.cjs +2 -0
  186. package/dist/{tailwind.mixin-CryL2ZOy.cjs.map → tailwind.mixin-DLuYz9Iz.cjs.map} +1 -1
  187. package/dist/teleport.cjs +1 -1
  188. package/dist/{teleport.component-CnH7tw9d.cjs → teleport.component-CNVTORt3.cjs} +2 -2
  189. package/dist/{teleport.component-CnH7tw9d.cjs.map → teleport.component-CNVTORt3.cjs.map} +1 -1
  190. package/dist/{teleport.component-CX0EcZsB.js → teleport.component-DSs12GIK.js} +38 -38
  191. package/dist/{teleport.component-CX0EcZsB.js.map → teleport.component-DSs12GIK.js.map} +1 -1
  192. package/dist/teleport.js +1 -1
  193. package/dist/{textarea-BFtirUYQ.cjs → textarea-B3_G9W-u.cjs} +2 -2
  194. package/dist/{textarea-BFtirUYQ.cjs.map → textarea-B3_G9W-u.cjs.map} +1 -1
  195. package/dist/{textarea-C-ZczaeA.js → textarea-B5V4jvIX.js} +2 -2
  196. package/dist/{textarea-C-ZczaeA.js.map → textarea-B5V4jvIX.js.map} +1 -1
  197. package/dist/textarea.cjs +1 -1
  198. package/dist/textarea.js +1 -1
  199. package/dist/{theme-button-Co1FWQZy.cjs → theme-button-C6pyxtwQ.cjs} +2 -2
  200. package/dist/{theme-button-Co1FWQZy.cjs.map → theme-button-C6pyxtwQ.cjs.map} +1 -1
  201. package/dist/{theme-button-DkSJ3DGG.js → theme-button-D-ojrnYh.js} +2 -2
  202. package/dist/{theme-button-DkSJ3DGG.js.map → theme-button-D-ojrnYh.js.map} +1 -1
  203. package/dist/theme-button.cjs +1 -1
  204. package/dist/theme-button.js +1 -1
  205. package/dist/theme.cjs +1 -1
  206. package/dist/{theme.component-DPvN4am3.js → theme.component-B6Hvc574.js} +2 -2
  207. package/dist/{theme.component-DPvN4am3.js.map → theme.component-B6Hvc574.js.map} +1 -1
  208. package/dist/{theme.component-kt0rSKAw.cjs → theme.component-DR4uOck9.cjs} +2 -2
  209. package/dist/{theme.component-kt0rSKAw.cjs.map → theme.component-DR4uOck9.cjs.map} +1 -1
  210. package/dist/theme.js +1 -1
  211. package/dist/{timezone-CoXF6uCH.js → timezone-CyDIsW4A.js} +3 -3
  212. package/dist/{timezone-CoXF6uCH.js.map → timezone-CyDIsW4A.js.map} +1 -1
  213. package/dist/{timezone-BAw4bWdz.cjs → timezone-vGpDPCRT.cjs} +2 -2
  214. package/dist/{timezone-BAw4bWdz.cjs.map → timezone-vGpDPCRT.cjs.map} +1 -1
  215. package/dist/{tooltip-FWNQFOV4.cjs → tooltip-BJ_lQc8I.cjs} +2 -2
  216. package/dist/{tooltip-FWNQFOV4.cjs.map → tooltip-BJ_lQc8I.cjs.map} +1 -1
  217. package/dist/{tooltip-Dl2N0nLg.js → tooltip-Ck-JUG_m.js} +2 -2
  218. package/dist/{tooltip-Dl2N0nLg.js.map → tooltip-Ck-JUG_m.js.map} +1 -1
  219. package/dist/tooltip.cjs +1 -1
  220. package/dist/tooltip.js +1 -1
  221. package/dist/{tree-DNotOnkS.js → tree-BE0sci4r.js} +2 -2
  222. package/dist/{tree-DNotOnkS.js.map → tree-BE0sci4r.js.map} +1 -1
  223. package/dist/{tree-DE0EGUP8.cjs → tree-plC4VSNF.cjs} +2 -2
  224. package/dist/{tree-DE0EGUP8.cjs.map → tree-plC4VSNF.cjs.map} +1 -1
  225. package/dist/tree.cjs +1 -1
  226. package/dist/tree.js +1 -1
  227. package/dist/{typewriter--Sc6E-hJ.js → typewriter-CFULjoNm.js} +11 -11
  228. package/dist/{typewriter--Sc6E-hJ.js.map → typewriter-CFULjoNm.js.map} +1 -1
  229. package/dist/{typewriter-DxMBpsNX.cjs → typewriter-CwrZhpWq.cjs} +2 -2
  230. package/dist/{typewriter-DxMBpsNX.cjs.map → typewriter-CwrZhpWq.cjs.map} +1 -1
  231. package/dist/typewriter.cjs +1 -1
  232. package/dist/typewriter.js +1 -1
  233. package/dist/{typography-CXGW5mh2.js → typography-BB5uUnkZ.js} +2 -2
  234. package/dist/{typography-CXGW5mh2.js.map → typography-BB5uUnkZ.js.map} +1 -1
  235. package/dist/{typography-CbJoawFE.cjs → typography-CRoZbt0O.cjs} +2 -2
  236. package/dist/{typography-CbJoawFE.cjs.map → typography-CRoZbt0O.cjs.map} +1 -1
  237. package/dist/typography.cjs +1 -1
  238. package/dist/typography.js +1 -1
  239. package/package.json +1 -1
  240. package/types/src/layout/scroll/scroll.d.ts +36 -1
  241. package/types/src/notification/index.d.ts +1 -1
  242. package/types/src/notification/notification-service.d.ts +20 -0
  243. package/dist/flex-5tU3sgUP.js +0 -232
  244. package/dist/flex-5tU3sgUP.js.map +0 -1
  245. package/dist/flex-M_YoqXnB.cjs +0 -41
  246. package/dist/flex-M_YoqXnB.cjs.map +0 -1
  247. package/dist/notification-container-C5o2dqpe.js.map +0 -1
  248. package/dist/notification-container-CRjLSf2l.cjs.map +0 -1
  249. package/dist/notification-service-DWeUoHi2.js +0 -29
  250. package/dist/notification-service-DWeUoHi2.js.map +0 -1
  251. package/dist/notification-service-DXXrRCmK.cjs +0 -2
  252. package/dist/notification-service-DXXrRCmK.cjs.map +0 -1
  253. package/dist/tailwind.mixin-CryL2ZOy.cjs +0 -2
  254. package/dist/tailwind.mixin-Q2P-9IKt.js +0 -43
@@ -1,18 +1,18 @@
1
- import { fromEvent as A, takeUntil as _ } from "rxjs";
2
- import { classMap as x } from "lit/directives/class-map.js";
3
- import { styleMap as S } from "lit/directives/style-map.js";
4
- import { $ as T } from "./litElement.mixin-B1zxT55T.js";
5
- import "./tailwind.mixin-Q2P-9IKt.js";
6
- import { c as w } from "./ripple-BumgqsDT.js";
7
- import { S as h } from "./theme.interface-C5Kj6WjD.js";
1
+ import { fromEvent as S, takeUntil as C } from "rxjs";
2
+ import { classMap as b } from "lit/directives/class-map.js";
3
+ import { styleMap as V } from "lit/directives/style-map.js";
4
+ import { $ as A } from "./litElement.mixin-CRbxrdrS.js";
5
+ import "./tailwind.mixin-B_hJc1PP.js";
6
+ import { c as x } from "./ripple-BumgqsDT.js";
7
+ import { S as f } from "./theme.interface-C5Kj6WjD.js";
8
8
  import { html as d } from "lit";
9
- import { property as p, state as f, customElement as b } from "lit/decorators.js";
10
- import { repeat as C } from "lit/directives/repeat.js";
11
- var V = Object.defineProperty, k = Object.getOwnPropertyDescriptor, u = (a, t, e, i) => {
12
- for (var o, n = i > 1 ? void 0 : i ? k(t, e) : t, s = a.length - 1; s >= 0; s--) (o = a[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
13
- return i && n && V(t, e, n), n;
9
+ import { property as p, state as g, customElement as _ } from "lit/decorators.js";
10
+ import { repeat as k } from "lit/directives/repeat.js";
11
+ var $ = Object.defineProperty, R = Object.getOwnPropertyDescriptor, u = (s, t, e, i) => {
12
+ for (var o, n = i > 1 ? void 0 : i ? R(t, e) : t, a = s.length - 1; a >= 0; a--) (o = s[a]) && (n = (i ? o(t, e, n) : o(n)) || n);
13
+ return i && n && $(t, e, n), n;
14
14
  };
15
- let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child{margin-bottom:0}.notification{width:100%;max-width:400px;border-radius:8px;box-shadow:var(--schmancy-sys-elevation-2);overflow:hidden;transform:translate(0);opacity:1;transition:transform .3s ease-out,opacity .3s ease-out;background-color:var(--schmancy-sys-color-surface-container);color:var(--schmancy-sys-color-surface-on)}.notification.info{border-left:4px solid var(--schmancy-sys-color-primary-default)}.notification.success{border-left:4px solid var(--schmancy-sys-color-success-default)}.notification.warning{border-left:4px solid var(--schmancy-sys-color-tertiary-default)}.notification.error{border-left:4px solid var(--schmancy-sys-color-error-default)}.notification.closing{transform:translate(120%);opacity:0}.notification .notification-content{display:flex;padding:16px;align-items:flex-start;position:relative}.notification .icon-container{flex-shrink:0;margin-right:12px;display:flex;align-items:center;justify-content:center}.notification .content{flex:1;min-width:0;display:flex;flex-direction:column}.notification .title{font-weight:600;font-size:16px;margin-bottom:4px;word-break:break-word}.notification .message{font-size:14px;word-break:break-word}.notification .close-button{background:transparent;border:none;cursor:pointer;color:var(--schmancy-sys-color-surface-onVariant);padding:4px;margin-left:8px;border-radius:4px;display:flex;align-items:center;justify-content:center}.notification .close-button:hover{background-color:#0000000d}.notification .close-button:focus{outline:none;box-shadow:0 0 0 2px var(--schmancy-sys-color-primary-default)}.notification .progress-bar-container{height:4px;width:100%;background-color:#0000001a;overflow:hidden}.notification .progress-bar{height:100%;width:100%;transition:width .1s linear}") {
15
+ let l = class extends A(":host{display:block;margin-bottom:10px}:host:last-child{margin-bottom:0}.notification{width:100%;max-width:400px;border-radius:8px;box-shadow:var(--schmancy-sys-elevation-2);overflow:hidden;transform:translate(0);opacity:1;transition:transform .3s ease-out,opacity .3s ease-out;background-color:var(--schmancy-sys-color-surface-container);color:var(--schmancy-sys-color-surface-on)}.notification.info{border-left:4px solid var(--schmancy-sys-color-primary-default)}.notification.success{border-left:4px solid var(--schmancy-sys-color-success-default)}.notification.warning{border-left:4px solid var(--schmancy-sys-color-tertiary-default)}.notification.error{border-left:4px solid var(--schmancy-sys-color-error-default)}.notification.closing{transform:translate(120%);opacity:0}.notification .notification-content{display:flex;padding:16px;align-items:flex-start;position:relative}.notification .icon-container{flex-shrink:0;margin-right:12px;display:flex;align-items:center;justify-content:center}.notification .content{flex:1;min-width:0;display:flex;flex-direction:column}.notification .title{font-weight:600;font-size:16px;margin-bottom:4px;word-break:break-word}.notification .message{font-size:14px;word-break:break-word}.notification .close-button{background:transparent;border:none;cursor:pointer;color:var(--schmancy-sys-color-surface-onVariant);padding:4px;margin-left:8px;border-radius:4px;display:flex;align-items:center;justify-content:center}.notification .close-button:hover{background-color:#0000000d}.notification .close-button:focus{outline:none;box-shadow:0 0 0 2px var(--schmancy-sys-color-primary-default)}.notification .progress-bar-container{height:4px;width:100%;background-color:#0000001a;overflow:hidden}.notification .progress-bar{height:100%;width:100%;transition:width .1s linear}") {
16
16
  constructor() {
17
17
  super(...arguments), this.title = "", this.message = "", this.type = "info", this.closable = !0, this.duration = 5e3, this.id = `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, this.playSound = !0, this._visible = !0, this._progress = 100, this._hovered = !1, this._closing = !1;
18
18
  }
@@ -22,17 +22,17 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
22
22
  disconnectedCallback() {
23
23
  this._clearTimers(), super.disconnectedCallback();
24
24
  }
25
- updated(a) {
26
- super.updated(a), a.has("duration") && this.duration > 0 && (this._clearTimers(), this._startAutoCloseTimer());
25
+ updated(s) {
26
+ super.updated(s), s.has("duration") && this.duration > 0 && (this._clearTimers(), this._startAutoCloseTimer());
27
27
  }
28
28
  _startAutoCloseTimer() {
29
29
  if (this.duration <= 0) return;
30
- const a = Date.now() + this.duration;
30
+ const s = Date.now() + this.duration;
31
31
  this._autoCloseTimer = window.setTimeout(() => {
32
32
  this.close();
33
33
  }, this.duration), this._progressTimer = window.setInterval(() => {
34
34
  if (this._hovered) return;
35
- const t = Date.now(), e = Math.max(0, a - t);
35
+ const t = Date.now(), e = Math.max(0, s - t);
36
36
  this._progress = e / this.duration * 100, e <= 0 && this._clearTimers();
37
37
  }, 16);
38
38
  }
@@ -44,16 +44,16 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
44
44
  }
45
45
  _resumeTimers() {
46
46
  if (this.duration > 0) {
47
- const a = this._progress / 100 * this.duration;
48
- if (a > 0) {
47
+ const s = this._progress / 100 * this.duration;
48
+ if (s > 0) {
49
49
  this._autoCloseTimer = window.setTimeout(() => {
50
50
  this.close();
51
- }, a);
52
- const t = Date.now() + a;
51
+ }, s);
52
+ const t = Date.now() + s;
53
53
  this._progressTimer = window.setInterval(() => {
54
54
  if (this._hovered) return;
55
55
  const e = Date.now(), i = Math.max(0, t - e);
56
- this._progress = i / a * 100, i <= 0 && this._clearTimers();
56
+ this._progress = i / s * 100, i <= 0 && this._clearTimers();
57
57
  }, 16);
58
58
  }
59
59
  }
@@ -74,17 +74,17 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
74
74
  }
75
75
  render() {
76
76
  if (!this._visible && this._closing) return d``;
77
- const a = this._getTypeStyles();
77
+ const s = this._getTypeStyles();
78
78
  return d`
79
79
  <div
80
- class=${x({ notification: !0, closing: this._closing, [this.type]: !0 })}
80
+ class=${b({ notification: !0, closing: this._closing, [this.type]: !0 })}
81
81
  role="alert"
82
- style=${S({ transform: this._closing ? "translateX(120%)" : "translateX(0)", opacity: this._closing ? "0" : "1" })}
82
+ style=${V({ transform: this._closing ? "translateX(120%)" : "translateX(0)", opacity: this._closing ? "0" : "1" })}
83
83
  @mouseenter=${this._handleMouseEnter}
84
84
  @mouseleave=${this._handleMouseLeave}
85
85
  >
86
86
  <div class="notification-content">
87
- <div class="icon-container" ${w({ color: a.iconColor })}>${a.icon}</div>
87
+ <div class="icon-container" ${x({ color: s.iconColor })}>${s.icon}</div>
88
88
 
89
89
  <div class="content">
90
90
  ${this.title ? d` <div class="title">${this.title}</div> ` : ""}
@@ -116,7 +116,7 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
116
116
  <div
117
117
  class="progress-bar"
118
118
  style="width: ${this._progress}%"
119
- ${w({ bgColor: a.progressColor })}
119
+ ${x({ bgColor: s.progressColor })}
120
120
  ></div>
121
121
  </div>
122
122
  ` : ""}
@@ -140,7 +140,7 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
140
140
  <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
141
141
  <polyline points="22 4 12 14.01 9 11.01"></polyline>
142
142
  </svg>
143
- `, iconColor: h.sys.color.success.default, progressColor: h.sys.color.success.default };
143
+ `, iconColor: f.sys.color.success.default, progressColor: f.sys.color.success.default };
144
144
  case "warning":
145
145
  return { icon: d`
146
146
  <svg
@@ -157,7 +157,7 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
157
157
  <line x1="12" y1="9" x2="12" y2="13"></line>
158
158
  <line x1="12" y1="17" x2="12.01" y2="17"></line>
159
159
  </svg>
160
- `, iconColor: h.sys.color.tertiary.default, progressColor: h.sys.color.tertiary.default };
160
+ `, iconColor: f.sys.color.tertiary.default, progressColor: f.sys.color.tertiary.default };
161
161
  case "error":
162
162
  return { icon: d`
163
163
  <svg
@@ -174,7 +174,7 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
174
174
  <line x1="15" y1="9" x2="9" y2="15"></line>
175
175
  <line x1="9" y1="9" x2="15" y2="15"></line>
176
176
  </svg>
177
- `, iconColor: h.sys.color.error.default, progressColor: h.sys.color.error.default };
177
+ `, iconColor: f.sys.color.error.default, progressColor: f.sys.color.error.default };
178
178
  default:
179
179
  return { icon: d`
180
180
  <svg
@@ -191,12 +191,12 @@ let c = class extends T(":host{display:block;margin-bottom:10px}:host:last-child
191
191
  <line x1="12" y1="16" x2="12" y2="12"></line>
192
192
  <line x1="12" y1="8" x2="12.01" y2="8"></line>
193
193
  </svg>
194
- `, iconColor: h.sys.color.primary.default, progressColor: h.sys.color.primary.default };
194
+ `, iconColor: f.sys.color.primary.default, progressColor: f.sys.color.primary.default };
195
195
  }
196
196
  }
197
197
  };
198
- u([p({ type: String })], c.prototype, "title", 2), u([p({ type: String })], c.prototype, "message", 2), u([p({ type: String })], c.prototype, "type", 2), u([p({ type: Boolean })], c.prototype, "closable", 2), u([p({ type: Number })], c.prototype, "duration", 2), u([p({ type: String })], c.prototype, "id", 2), u([p({ type: Boolean })], c.prototype, "playSound", 2), u([f()], c.prototype, "_visible", 2), u([f()], c.prototype, "_progress", 2), u([f()], c.prototype, "_hovered", 2), u([f()], c.prototype, "_closing", 2), u([f()], c.prototype, "_autoCloseTimer", 2), u([f()], c.prototype, "_progressTimer", 2), c = u([b("sch-notification")], c);
199
- class $ {
198
+ u([p({ type: String })], l.prototype, "title", 2), u([p({ type: String })], l.prototype, "message", 2), u([p({ type: String })], l.prototype, "type", 2), u([p({ type: Boolean })], l.prototype, "closable", 2), u([p({ type: Number })], l.prototype, "duration", 2), u([p({ type: String })], l.prototype, "id", 2), u([p({ type: Boolean })], l.prototype, "playSound", 2), u([g()], l.prototype, "_visible", 2), u([g()], l.prototype, "_progress", 2), u([g()], l.prototype, "_hovered", 2), u([g()], l.prototype, "_closing", 2), u([g()], l.prototype, "_autoCloseTimer", 2), u([g()], l.prototype, "_progressTimer", 2), l = u([_("sch-notification")], l);
199
+ class O {
200
200
  constructor() {
201
201
  this.audioContext = null;
202
202
  }
@@ -208,71 +208,71 @@ class $ {
208
208
  return this.audioContext;
209
209
  }
210
210
  playInfoSound(t = 0.2) {
211
- const e = this.getAudioContext(), i = e.currentTime, o = e.createOscillator(), n = e.createGain(), s = e.createBiquadFilter();
212
- o.type = "sine", o.frequency.setValueAtTime(392, i), o.frequency.exponentialRampToValueAtTime(523.25, i + 0.25), s.type = "lowpass", s.frequency.value = 1500, n.gain.setValueAtTime(1e-4, i), n.gain.exponentialRampToValueAtTime(t, i + 0.15), n.gain.exponentialRampToValueAtTime(1e-4, i + 0.4), o.connect(s).connect(n).connect(e.destination), o.start(i), o.stop(i + 0.45);
211
+ const e = this.getAudioContext(), i = e.currentTime, o = e.createOscillator(), n = e.createGain(), a = e.createBiquadFilter();
212
+ o.type = "sine", o.frequency.setValueAtTime(392, i), o.frequency.exponentialRampToValueAtTime(523.25, i + 0.25), a.type = "lowpass", a.frequency.value = 1500, n.gain.setValueAtTime(1e-4, i), n.gain.exponentialRampToValueAtTime(t, i + 0.15), n.gain.exponentialRampToValueAtTime(1e-4, i + 0.4), o.connect(a).connect(n).connect(e.destination), o.start(i), o.stop(i + 0.45);
213
213
  }
214
214
  playSuccessSound(t = 0.2) {
215
- const e = this.getAudioContext(), i = e.currentTime, o = (n, s, r) => {
216
- const l = e.createOscillator(), y = e.createGain(), v = e.createBiquadFilter();
217
- l.type = "sine", l.frequency.setValueAtTime(n, i), v.type = "lowpass", v.frequency.value = 4 * n, y.gain.setValueAtTime(1e-4, i), y.gain.exponentialRampToValueAtTime(t, i + 0.1), y.gain.exponentialRampToValueAtTime(1e-4, i + r), l.connect(v).connect(y).connect(e.destination), l.start(i + s), l.stop(i + r);
215
+ const e = this.getAudioContext(), i = e.currentTime, o = (n, a, r) => {
216
+ const c = e.createOscillator(), w = e.createGain(), T = e.createBiquadFilter();
217
+ c.type = "sine", c.frequency.setValueAtTime(n, i), T.type = "lowpass", T.frequency.value = 4 * n, w.gain.setValueAtTime(1e-4, i), w.gain.exponentialRampToValueAtTime(t, i + 0.1), w.gain.exponentialRampToValueAtTime(1e-4, i + r), c.connect(T).connect(w).connect(e.destination), c.start(i + a), c.stop(i + r);
218
218
  };
219
219
  o(659.25, 0, 0.6), o(523.25, 0.05, 0.55);
220
220
  }
221
221
  playWarningSound(t = 0.25) {
222
- const e = this.getAudioContext(), i = e.currentTime, o = e.createOscillator(), n = e.createOscillator(), s = e.createGain(), r = e.createBiquadFilter();
223
- o.type = "sine", n.type = "sine", o.frequency.setValueAtTime(349.23, i), n.frequency.setValueAtTime(440, i), r.type = "lowpass", r.frequency.value = 1e3, s.gain.setValueAtTime(1e-4, i), s.gain.exponentialRampToValueAtTime(t, i + 0.08), s.gain.exponentialRampToValueAtTime(1e-4, i + 0.5), o.connect(r), n.connect(r), r.connect(s).connect(e.destination), o.start(i), n.start(i), o.stop(i + 0.55), n.stop(i + 0.55);
222
+ const e = this.getAudioContext(), i = e.currentTime, o = e.createOscillator(), n = e.createOscillator(), a = e.createGain(), r = e.createBiquadFilter();
223
+ o.type = "sine", n.type = "sine", o.frequency.setValueAtTime(349.23, i), n.frequency.setValueAtTime(440, i), r.type = "lowpass", r.frequency.value = 1e3, a.gain.setValueAtTime(1e-4, i), a.gain.exponentialRampToValueAtTime(t, i + 0.08), a.gain.exponentialRampToValueAtTime(1e-4, i + 0.5), o.connect(r), n.connect(r), r.connect(a).connect(e.destination), o.start(i), n.start(i), o.stop(i + 0.55), n.stop(i + 0.55);
224
224
  }
225
225
  playErrorSound(t = 0.25) {
226
- const e = this.getAudioContext(), i = e.currentTime, o = e.createOscillator(), n = e.createGain(), s = e.createBiquadFilter();
227
- o.type = "triangle", o.frequency.setValueAtTime(220, i), o.frequency.exponentialRampToValueAtTime(1760, i + 0.3), s.type = "lowpass", s.frequency.value = 800, s.Q.value = 0.5, n.gain.setValueAtTime(1e-4, i), n.gain.exponentialRampToValueAtTime(0.8 * t, i + 0.1), n.gain.exponentialRampToValueAtTime(1e-4, i + 0.7), o.connect(s).connect(n).connect(e.destination), o.start(i), o.stop(i + 0.75);
226
+ const e = this.getAudioContext(), i = e.currentTime, o = e.createOscillator(), n = e.createGain(), a = e.createBiquadFilter();
227
+ o.type = "triangle", o.frequency.setValueAtTime(220, i), o.frequency.exponentialRampToValueAtTime(1760, i + 0.3), a.type = "lowpass", a.frequency.value = 800, a.Q.value = 0.5, n.gain.setValueAtTime(1e-4, i), n.gain.exponentialRampToValueAtTime(0.8 * t, i + 0.1), n.gain.exponentialRampToValueAtTime(1e-4, i + 0.7), o.connect(a).connect(n).connect(e.destination), o.start(i), o.stop(i + 0.75);
228
228
  }
229
229
  async generateAudioFiles(t = 0.25) {
230
230
  const i = {};
231
231
  return i.info = await this.generateAudioFile(async (o) => {
232
232
  const n = o.createOscillator();
233
233
  n.type = "sine", n.frequency.setValueAtTime(320, 0), n.frequency.exponentialRampToValueAtTime(520, 0.3);
234
- const s = o.createGain();
235
- s.gain.setValueAtTime(0, 0), s.gain.linearRampToValueAtTime(t, 0.1), s.gain.linearRampToValueAtTime(0, 0.5), n.connect(s), s.connect(o.destination), n.start(), n.stop(0.5);
234
+ const a = o.createGain();
235
+ a.gain.setValueAtTime(0, 0), a.gain.linearRampToValueAtTime(t, 0.1), a.gain.linearRampToValueAtTime(0, 0.5), n.connect(a), a.connect(o.destination), n.start(), n.stop(0.5);
236
236
  }, 44100, 1), i.success = await this.generateAudioFile(async (o) => {
237
237
  const n = o.createOscillator();
238
238
  n.type = "sine", n.frequency.setValueAtTime(660, 0);
239
- const s = o.createOscillator();
240
- s.type = "sine", s.frequency.setValueAtTime(440, 0);
239
+ const a = o.createOscillator();
240
+ a.type = "sine", a.frequency.setValueAtTime(440, 0);
241
241
  const r = o.createGain();
242
242
  r.gain.setValueAtTime(0, 0), r.gain.linearRampToValueAtTime(t, 0.1), r.gain.linearRampToValueAtTime(0, 0.5);
243
- const l = o.createGain();
244
- l.gain.setValueAtTime(0, 0), l.gain.linearRampToValueAtTime(0.6 * t, 0.15), l.gain.linearRampToValueAtTime(0, 0.7), n.connect(r), r.connect(o.destination), s.connect(l), l.connect(o.destination), n.start(), s.start(0.15), n.stop(0.5), s.stop(0.7);
243
+ const c = o.createGain();
244
+ c.gain.setValueAtTime(0, 0), c.gain.linearRampToValueAtTime(0.6 * t, 0.15), c.gain.linearRampToValueAtTime(0, 0.7), n.connect(r), r.connect(o.destination), a.connect(c), c.connect(o.destination), n.start(), a.start(0.15), n.stop(0.5), a.stop(0.7);
245
245
  }, 44100, 1), i.warning = await this.generateAudioFile(async (o) => {
246
246
  const n = o.createOscillator();
247
247
  n.type = "sine", n.frequency.setValueAtTime(293.66, 0);
248
- const s = o.createOscillator();
249
- s.type = "sine", s.frequency.setValueAtTime(349.23, 0);
248
+ const a = o.createOscillator();
249
+ a.type = "sine", a.frequency.setValueAtTime(349.23, 0);
250
250
  const r = o.createGain();
251
- r.gain.setValueAtTime(0, 0), r.gain.linearRampToValueAtTime(t, 0.1), r.gain.linearRampToValueAtTime(0.6 * t, 0.2), r.gain.linearRampToValueAtTime(0.8 * t, 0.3), r.gain.linearRampToValueAtTime(0, 0.6), n.connect(r), s.connect(r), r.connect(o.destination), n.start(), s.start(), n.stop(0.6), s.stop(0.6);
251
+ r.gain.setValueAtTime(0, 0), r.gain.linearRampToValueAtTime(t, 0.1), r.gain.linearRampToValueAtTime(0.6 * t, 0.2), r.gain.linearRampToValueAtTime(0.8 * t, 0.3), r.gain.linearRampToValueAtTime(0, 0.6), n.connect(r), a.connect(r), r.connect(o.destination), n.start(), a.start(), n.stop(0.6), a.stop(0.6);
252
252
  }, 44100, 1), i.error = await this.generateAudioFile(async (o) => {
253
253
  const n = o.createOscillator();
254
254
  n.type = "sine", n.frequency.setValueAtTime(196, 0);
255
- const s = o.createGain();
256
- s.gain.setValueAtTime(0, 0), s.gain.linearRampToValueAtTime(t, 0.1), s.gain.linearRampToValueAtTime(0.4 * t, 0.2), s.gain.linearRampToValueAtTime(0.6 * t, 0.3), s.gain.linearRampToValueAtTime(0, 0.7);
255
+ const a = o.createGain();
256
+ a.gain.setValueAtTime(0, 0), a.gain.linearRampToValueAtTime(t, 0.1), a.gain.linearRampToValueAtTime(0.4 * t, 0.2), a.gain.linearRampToValueAtTime(0.6 * t, 0.3), a.gain.linearRampToValueAtTime(0, 0.7);
257
257
  const r = o.createBiquadFilter();
258
- r.type = "lowpass", r.frequency.value = 600, r.Q.value = 0.7, n.connect(r), r.connect(s), s.connect(o.destination), n.start(), n.stop(0.7);
258
+ r.type = "lowpass", r.frequency.value = 600, r.Q.value = 0.7, n.connect(r), r.connect(a), a.connect(o.destination), n.start(), n.stop(0.7);
259
259
  }, 44100, 1), i;
260
260
  }
261
261
  async generateAudioFile(t, e = 44100, i = 1) {
262
262
  const o = new OfflineAudioContext(2, e * i, e);
263
263
  await t(o);
264
- const n = await o.startRendering(), s = this.audioBufferToWav(n);
265
- return URL.createObjectURL(s);
264
+ const n = await o.startRendering(), a = this.audioBufferToWav(n);
265
+ return URL.createObjectURL(a);
266
266
  }
267
267
  audioBufferToWav(t) {
268
- const e = t.numberOfChannels, i = t.sampleRate, o = 2 * e, n = this.getAudioSamples(t, 16), s = 2 * n.length, r = new ArrayBuffer(44 + s), l = new DataView(r);
269
- return this.writeString(l, 0, "RIFF"), l.setUint32(4, 36 + s, !0), this.writeString(l, 8, "WAVE"), this.writeString(l, 12, "fmt "), l.setUint32(16, 16, !0), l.setUint16(20, 1, !0), l.setUint16(22, e, !0), l.setUint32(24, i, !0), l.setUint32(28, i * o, !0), l.setUint16(32, o, !0), l.setUint16(34, 16, !0), this.writeString(l, 36, "data"), l.setUint32(40, s, !0), this.writeInt16Samples(l, 44, n), new Blob([r], { type: "audio/wav" });
268
+ const e = t.numberOfChannels, i = t.sampleRate, o = 2 * e, n = this.getAudioSamples(t, 16), a = 2 * n.length, r = new ArrayBuffer(44 + a), c = new DataView(r);
269
+ return this.writeString(c, 0, "RIFF"), c.setUint32(4, 36 + a, !0), this.writeString(c, 8, "WAVE"), this.writeString(c, 12, "fmt "), c.setUint32(16, 16, !0), c.setUint16(20, 1, !0), c.setUint16(22, e, !0), c.setUint32(24, i, !0), c.setUint32(28, i * o, !0), c.setUint16(32, o, !0), c.setUint16(34, 16, !0), this.writeString(c, 36, "data"), c.setUint32(40, a, !0), this.writeInt16Samples(c, 44, n), new Blob([r], { type: "audio/wav" });
270
270
  }
271
271
  getAudioSamples(t, e) {
272
- const i = t.numberOfChannels, o = t.length, n = [], s = e === 16 ? 32768 : 128;
273
- for (let r = 0; r < o; r++) for (let l = 0; l < i; l++) {
274
- const y = t.getChannelData(l)[r], v = Math.max(-1, Math.min(1, y));
275
- n.push(v * s);
272
+ const i = t.numberOfChannels, o = t.length, n = [], a = e === 16 ? 32768 : 128;
273
+ for (let r = 0; r < o; r++) for (let c = 0; c < i; c++) {
274
+ const w = t.getChannelData(c)[r], T = Math.max(-1, Math.min(1, w));
275
+ n.push(T * a);
276
276
  }
277
277
  return n;
278
278
  }
@@ -283,9 +283,9 @@ class $ {
283
283
  for (let o = 0; o < i.length; o++) t.setUint8(e + o, i.charCodeAt(o));
284
284
  }
285
285
  }
286
- class R {
286
+ class B {
287
287
  constructor() {
288
- this.audioContext = null, this.soundBuffers = /* @__PURE__ */ new Map(), this.volume = 0.5, this.muted = !1, this.soundGenerator = new $(), this.soundUrls = { info: "/assets/sounds/notification-info.mp3", success: "/assets/sounds/notification-success.mp3", warning: "/assets/sounds/notification-warning.mp3", error: "/assets/sounds/notification-error.mp3" }, this.initializeAudioFiles();
288
+ this.audioContext = null, this.soundBuffers = /* @__PURE__ */ new Map(), this.volume = 0.5, this.muted = !1, this.soundGenerator = new O(), this.soundUrls = { info: "/assets/sounds/notification-info.mp3", success: "/assets/sounds/notification-success.mp3", warning: "/assets/sounds/notification-warning.mp3", error: "/assets/sounds/notification-error.mp3" }, this.initializeAudioFiles();
289
289
  }
290
290
  async initializeAudioFiles() {
291
291
  try {
@@ -324,8 +324,8 @@ class R {
324
324
  const e = this.getAudioContext();
325
325
  if (e.state === "suspended" && await e.resume(), this.soundUrls[t].startsWith("blob:")) return void this.playFallbackSound(t);
326
326
  if (!this.soundBuffers.has(t)) try {
327
- const s = await this.loadSound(t);
328
- this.soundBuffers.set(t, s);
327
+ const a = await this.loadSound(t);
328
+ this.soundBuffers.set(t, a);
329
329
  } catch {
330
330
  return void this.playDirectGeneratedSound(t);
331
331
  }
@@ -391,45 +391,45 @@ class R {
391
391
  return this.soundUrls[t];
392
392
  }
393
393
  }
394
- var B = Object.defineProperty, q = Object.getOwnPropertyDescriptor, g = (a, t, e, i) => {
395
- for (var o, n = i > 1 ? void 0 : i ? q(t, e) : t, s = a.length - 1; s >= 0; s--) (o = a[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
396
- return i && n && B(t, e, n), n;
394
+ var U = Object.defineProperty, q = Object.getOwnPropertyDescriptor, v = (s, t, e, i) => {
395
+ for (var o, n = i > 1 ? void 0 : i ? q(t, e) : t, a = s.length - 1; a >= 0; a--) (o = s[a]) && (n = (i ? o(t, e, n) : o(n)) || n);
396
+ return i && n && U(t, e, n), n;
397
397
  };
398
- let m = class extends T(":host{display:block}.notification-container{position:fixed;z-index:9999;padding:12px;pointer-events:none;width:100%;max-width:424px}.notification-container sch-notification{pointer-events:auto}.notification-container.top-right{top:0;right:0;display:flex;flex-direction:column-reverse}.notification-container.top-left{top:0;left:0;display:flex;flex-direction:column-reverse}.notification-container.bottom-right{bottom:0;right:0;display:flex;flex-direction:column}.notification-container.bottom-left{bottom:0;left:0;display:flex;flex-direction:column}.notification-container.top-center{top:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column-reverse}.notification-container.bottom-center{bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column}") {
398
+ let y = class extends A(":host{display:block}.notification-container{position:fixed;z-index:9999;padding:12px;pointer-events:none;width:100%;max-width:424px}.notification-container sch-notification{pointer-events:auto}.notification-container.top-right{top:0;right:0;display:flex;flex-direction:column-reverse}.notification-container.top-left{top:0;left:0;display:flex;flex-direction:column-reverse}.notification-container.bottom-right{bottom:0;right:0;display:flex;flex-direction:column}.notification-container.bottom-left{bottom:0;left:0;display:flex;flex-direction:column}.notification-container.top-center{top:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column-reverse}.notification-container.bottom-center{bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column}") {
399
399
  constructor() {
400
- super(...arguments), this.position = "top-right", this.maxVisibleNotifications = 5, this.playSound = !1, this.audioVolume = 0.5, this._notifications = [], this._audioService = new R();
400
+ super(...arguments), this.position = "top-right", this.maxVisibleNotifications = 2, this.playSound = !1, this.audioVolume = 0.1, this._notifications = [], this._audioService = new B();
401
401
  }
402
402
  connectedCallback() {
403
- super.connectedCallback(), this._audioService.setVolume(this.audioVolume), A(window, "schmancy-notification").pipe(_(this.disconnecting)).subscribe((a) => {
404
- this.addNotification(a.detail);
405
- }), this.addEventListener("playsound", (a) => {
406
- this.playSound && this._audioService.playSound(a.detail.type);
403
+ super.connectedCallback(), this._audioService.setVolume(this.audioVolume), S(window, "schmancy-notification").pipe(C(this.disconnecting)).subscribe((s) => {
404
+ this.addNotification(s.detail);
405
+ }), this.addEventListener("playsound", (s) => {
406
+ this.playSound && this._audioService.playSound(s.detail.type);
407
407
  });
408
408
  }
409
- addNotification(a) {
410
- const t = a.id || `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, e = { id: t, title: a.title || "", message: a.message, type: a.type || "info", duration: a.duration !== void 0 ? a.duration : 750, closable: a.closable === void 0 || a.closable, playSound: a.playSound !== void 0 ? a.playSound : this.playSound };
409
+ addNotification(s) {
410
+ const t = s.id || `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, e = { id: t, title: s.title || "", message: s.message, type: s.type || "info", duration: s.duration !== void 0 ? s.duration : 750, closable: s.closable === void 0 || s.closable, playSound: s.playSound !== void 0 ? s.playSound : this.playSound };
411
411
  return this.position.startsWith("top") ? this._notifications = [...this._notifications, e] : this._notifications = [e, ...this._notifications], this._notifications.length > this.maxVisibleNotifications && (this._notifications = this._notifications.slice(-this.maxVisibleNotifications)), e.playSound && this._audioService.playSound(e.type), t;
412
412
  }
413
- removeNotification(a) {
414
- this._notifications = this._notifications.filter((t) => t.id !== a);
413
+ removeNotification(s) {
414
+ this._notifications = this._notifications.filter((t) => t.id !== s);
415
415
  }
416
- _handleClose(a) {
417
- const t = a.detail.id;
416
+ _handleClose(s) {
417
+ const t = s.detail.id;
418
418
  this.removeNotification(t);
419
419
  }
420
420
  render() {
421
421
  return d`
422
422
  <div
423
- class=${x({ "notification-container": !0, [this.position]: !0 })}
423
+ class=${b({ "notification-container": !0, [this.position]: !0 })}
424
424
  >
425
- ${C(this._notifications, (a) => a.id, (a) => d`
425
+ ${k(this._notifications, (s) => s.id, (s) => d`
426
426
  <sch-notification
427
- .id=${a.id}
428
- .title=${a.title}
429
- .message=${a.message}
430
- .type=${a.type}
431
- .duration=${a.duration}
432
- ?closable=${a.closable}
427
+ .id=${s.id}
428
+ .title=${s.title}
429
+ .message=${s.message}
430
+ .type=${s.type}
431
+ .duration=${s.duration}
432
+ ?closable=${s.closable}
433
433
  ?playSound=${!1} /* We already played the sound on add */
434
434
  @close=${this._handleClose}
435
435
  ></sch-notification>
@@ -438,10 +438,43 @@ let m = class extends T(":host{display:block}.notification-container{position:fi
438
438
  `;
439
439
  }
440
440
  };
441
- g([p({ type: String })], m.prototype, "position", 2), g([p({ type: Number })], m.prototype, "maxVisibleNotifications", 2), g([p({ type: Boolean })], m.prototype, "playSound", 2), g([p({ type: Number })], m.prototype, "audioVolume", 2), g([f()], m.prototype, "_notifications", 2), m = g([b("sch-notification-container")], m);
441
+ v([p({ type: String })], y.prototype, "position", 2), v([p({ type: Number })], y.prototype, "maxVisibleNotifications", 2), v([p({ type: Boolean })], y.prototype, "playSound", 2), v([p({ type: Number })], y.prototype, "audioVolume", 2), v([g()], y.prototype, "_notifications", 2), y = v([_("sch-notification-container")], y);
442
+ const m = class m {
443
+ constructor() {
444
+ }
445
+ static getInstance() {
446
+ return m.instance || (m.instance = new m()), m.instance;
447
+ }
448
+ notify(t) {
449
+ const e = { ...m.DEFAULT_OPTIONS, ...t, duration: t.duration ?? m.DEFAULT_OPTIONS.duration }, i = e.id || `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, o = new CustomEvent("schmancy-notification", { bubbles: !0, composed: !0, detail: { ...e, id: i } });
450
+ return window.dispatchEvent(o), i;
451
+ }
452
+ info(t, e = {}) {
453
+ return this.notify({ message: t, type: "info", ...e });
454
+ }
455
+ success(t, e = {}) {
456
+ return this.notify({ message: t, type: "success", ...e });
457
+ }
458
+ warning(t, e = {}) {
459
+ return this.notify({ message: t, type: "warning", ...e });
460
+ }
461
+ error(t, e = {}) {
462
+ return this.notify({ message: t, type: "error", ...e });
463
+ }
464
+ customDuration(t, e, i = {}) {
465
+ return this.notify({ message: t, duration: e, ...i });
466
+ }
467
+ persistent(t, e = {}) {
468
+ return this.notify({ message: t, duration: 0, ...e });
469
+ }
470
+ };
471
+ m.DEFAULT_OPTIONS = { duration: 1e3, closable: !0, playSound: !0 };
472
+ let h = m;
473
+ const P = { show: (s) => h.getInstance().notify(s), info: (s, t = {}) => h.getInstance().info(s, t), success: (s, t = {}) => h.getInstance().success(s, t), warning: (s, t = {}) => h.getInstance().warning(s, t), error: (s, t = {}) => h.getInstance().error(s, t), customDuration: (s, t, e = {}) => h.getInstance().customDuration(s, t, e), persistent: (s, t = {}) => h.getInstance().persistent(s, t) };
442
474
  export {
443
- R as N,
444
- c as S,
445
- m as a
475
+ P as $,
476
+ B as N,
477
+ l as S,
478
+ y as a
446
479
  };
447
- //# sourceMappingURL=notification-container-C5o2dqpe.js.map
480
+ //# sourceMappingURL=notification-service-DA3l75i3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-service-DA3l75i3.js","sources":["../src/notification/notification.ts","../src/notification/notification-audio-generator.ts","../src/notification/notification-audio.ts","../src/notification/notification-container.ts","../src/notification/notification-service.ts"],"sourcesContent":["import { $LitElement } from '@mixins/index'\nimport { color } from '@schmancy/directives'\nimport { SchmancyTheme } from '@schmancy/theme/theme.interface'\nimport { html, PropertyValues } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport style from './notification.scss?inline'\n\nexport type NotificationType = 'info' | 'success' | 'warning' | 'error'\n\n/**\n * @fires close - When notification is closed\n */\n@customElement('sch-notification')\nexport default class SchmancyNotification extends $LitElement(style) {\n\t@property({ type: String }) title = ''\n\t@property({ type: String }) message = ''\n\t@property({ type: String }) type: NotificationType = 'info'\n\t@property({ type: Boolean }) closable = true\n\t@property({ type: Number }) duration = 5000 // 0 means no auto-close\n\t@property({ type: String }) id = `notification-${Date.now()}-${Math.floor(Math.random() * 10000)}`\n\t@property({ type: Boolean }) playSound = true\n\n\t@state() private _visible = true\n\t@state() private _progress = 100\n\t@state() private _hovered = false\n\t@state() private _closing = false\n\t@state() private _autoCloseTimer?: number\n\t@state() private _progressTimer?: number\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tif (this.duration > 0) {\n\t\t\tthis._startAutoCloseTimer()\n\t\t}\n\n\t\tif (this.playSound) {\n\t\t\tthis._playSound()\n\t\t}\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis._clearTimers()\n\t\tsuper.disconnectedCallback()\n\t}\n\n\tupdated(changedProps: PropertyValues) {\n\t\tsuper.updated(changedProps)\n\n\t\tif (changedProps.has('duration') && this.duration > 0) {\n\t\t\tthis._clearTimers()\n\t\t\tthis._startAutoCloseTimer()\n\t\t}\n\t}\n\n\tprivate _startAutoCloseTimer() {\n\t\tif (this.duration <= 0) return\n\n\t\tconst startTime = Date.now()\n\t\tconst endTime = startTime + this.duration\n\n\t\t// Setup the auto-close timer\n\t\tthis._autoCloseTimer = window.setTimeout(() => {\n\t\t\tthis.close()\n\t\t}, this.duration)\n\n\t\t// Setup the progress timer to update every 16ms (60fps)\n\t\tthis._progressTimer = window.setInterval(() => {\n\t\t\tif (this._hovered) return\n\n\t\t\tconst now = Date.now()\n\t\t\tconst remaining = Math.max(0, endTime - now)\n\t\t\tthis._progress = (remaining / this.duration) * 100\n\n\t\t\tif (remaining <= 0) {\n\t\t\t\tthis._clearTimers()\n\t\t\t}\n\t\t}, 16)\n\t}\n\n\tprivate _clearTimers() {\n\t\tif (this._autoCloseTimer) {\n\t\t\tclearTimeout(this._autoCloseTimer)\n\t\t\tthis._autoCloseTimer = undefined\n\t\t}\n\n\t\tif (this._progressTimer) {\n\t\t\tclearInterval(this._progressTimer)\n\t\t\tthis._progressTimer = undefined\n\t\t}\n\t}\n\n\tprivate _pauseTimers() {\n\t\tthis._clearTimers()\n\t}\n\n\tprivate _resumeTimers() {\n\t\tif (this.duration > 0) {\n\t\t\t// Calculate remaining time based on progress\n\t\t\tconst remainingTime = (this._progress / 100) * this.duration\n\n\t\t\tif (remainingTime > 0) {\n\t\t\t\tthis._autoCloseTimer = window.setTimeout(() => {\n\t\t\t\t\tthis.close()\n\t\t\t\t}, remainingTime)\n\n\t\t\t\tconst startTime = Date.now()\n\t\t\t\tconst endTime = startTime + remainingTime\n\n\t\t\t\tthis._progressTimer = window.setInterval(() => {\n\t\t\t\t\tif (this._hovered) return\n\n\t\t\t\t\tconst now = Date.now()\n\t\t\t\t\tconst remaining = Math.max(0, endTime - now)\n\t\t\t\t\tthis._progress = (remaining / remainingTime) * 100\n\n\t\t\t\t\tif (remaining <= 0) {\n\t\t\t\t\t\tthis._clearTimers()\n\t\t\t\t\t}\n\t\t\t\t}, 16)\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _playSound() {\n\t\t// Dispatch event to play sound through audio service\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('playsound', {\n\t\t\t\tdetail: { type: this.type },\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\tprivate _handleMouseEnter() {\n\t\tthis._hovered = true\n\t\tthis._pauseTimers()\n\t}\n\n\tprivate _handleMouseLeave() {\n\t\tthis._hovered = false\n\t\tthis._resumeTimers()\n\t}\n\n\tpublic close() {\n\t\tif (this._closing) return\n\n\t\tthis._closing = true\n\t\tthis._clearTimers()\n\n\t\t// Add closing animation\n\t\tthis._visible = false\n\n\t\t// Dispatch close event\n\t\tsetTimeout(() => {\n\t\t\tthis.dispatchEvent(\n\t\t\t\tnew CustomEvent('close', {\n\t\t\t\t\tdetail: { id: this.id },\n\t\t\t\t\tbubbles: true,\n\t\t\t\t\tcomposed: true,\n\t\t\t\t}),\n\t\t\t)\n\t\t}, 300) // Match animation duration\n\t}\n\n\trender() {\n\t\tif (!this._visible && this._closing) return html``\n\n\t\tconst typeStyles = this._getTypeStyles()\n\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=${classMap({\n\t\t\t\t\tnotification: true,\n\t\t\t\t\tclosing: this._closing,\n\t\t\t\t\t[this.type]: true,\n\t\t\t\t})}\n\t\t\t\trole=\"alert\"\n\t\t\t\tstyle=${styleMap({\n\t\t\t\t\ttransform: this._closing ? 'translateX(120%)' : 'translateX(0)',\n\t\t\t\t\topacity: this._closing ? '0' : '1',\n\t\t\t\t})}\n\t\t\t\t@mouseenter=${this._handleMouseEnter}\n\t\t\t\t@mouseleave=${this._handleMouseLeave}\n\t\t\t>\n\t\t\t\t<div class=\"notification-content\">\n\t\t\t\t\t<div class=\"icon-container\" ${color({ color: typeStyles.iconColor })}>${typeStyles.icon}</div>\n\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t${this.title ? html` <div class=\"title\">${this.title}</div> ` : ''}\n\n\t\t\t\t\t\t<div class=\"message\">${this.message}</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t${this.closable\n\t\t\t\t\t\t? html`\n\t\t\t\t\t\t\t\t<button class=\"close-button\" aria-label=\"Close notification\" @click=${this.close}>\n\t\t\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\t\t\twidth=\"16\"\n\t\t\t\t\t\t\t\t\t\theight=\"16\"\n\t\t\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n\t\t\t\t\t\t\t\t\t\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t`\n\t\t\t\t\t\t: ''}\n\t\t\t\t</div>\n\n\t\t\t\t${this.duration > 0\n\t\t\t\t\t? html`\n\t\t\t\t\t\t\t<div class=\"progress-bar-container\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"progress-bar\"\n\t\t\t\t\t\t\t\t\tstyle=\"width: ${this._progress}%\"\n\t\t\t\t\t\t\t\t\t${color({ bgColor: typeStyles.progressColor })}\n\t\t\t\t\t\t\t\t></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t`\n\t\t\t\t\t: ''}\n\t\t\t</div>\n\t\t`\n\t}\n\n\tprivate _getTypeStyles() {\n\t\tswitch (this.type) {\n\t\t\tcase 'success':\n\t\t\t\treturn {\n\t\t\t\t\ticon: html`\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path>\n\t\t\t\t\t\t\t<polyline points=\"22 4 12 14.01 9 11.01\"></polyline>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t`,\n\t\t\t\t\ticonColor: SchmancyTheme.sys.color.success.default,\n\t\t\t\t\tprogressColor: SchmancyTheme.sys.color.success.default,\n\t\t\t\t}\n\t\t\tcase 'warning':\n\t\t\t\treturn {\n\t\t\t\t\ticon: html`\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"></path>\n\t\t\t\t\t\t\t<line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"></line>\n\t\t\t\t\t\t\t<line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"></line>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t`,\n\t\t\t\t\ticonColor: SchmancyTheme.sys.color.tertiary.default,\n\t\t\t\t\tprogressColor: SchmancyTheme.sys.color.tertiary.default,\n\t\t\t\t}\n\t\t\tcase 'error':\n\t\t\t\treturn {\n\t\t\t\t\ticon: html`\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n\t\t\t\t\t\t\t<line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"></line>\n\t\t\t\t\t\t\t<line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"></line>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t`,\n\t\t\t\t\ticonColor: SchmancyTheme.sys.color.error.default,\n\t\t\t\t\tprogressColor: SchmancyTheme.sys.color.error.default,\n\t\t\t\t}\n\t\t\tcase 'info':\n\t\t\tdefault:\n\t\t\t\treturn {\n\t\t\t\t\ticon: html`\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n\t\t\t\t\t\t\t<line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"></line>\n\t\t\t\t\t\t\t<line x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"></line>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t`,\n\t\t\t\t\ticonColor: SchmancyTheme.sys.color.primary.default,\n\t\t\t\t\tprogressColor: SchmancyTheme.sys.color.primary.default,\n\t\t\t\t}\n\t\t}\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sch-notification': SchmancyNotification\n\t}\n}\n","/**\n * Programmatic sound generator for Schmancy notifications\n * Uses Web Audio API to generate gentle, subtle and soft sounds for each notification type\n */\nexport class NotificationSoundGenerator {\n\tprivate audioContext: AudioContext | null = null\n\n\t/**\n\t * Get or create AudioContext\n\t */\n\tprivate getAudioContext(): AudioContext {\n\t\tif (!this.audioContext) {\n\t\t\tconst AudioContextClass = window.AudioContext || (window as any).webkitAudioContext\n\t\t\tthis.audioContext = new AudioContextClass()\n\t\t}\n\t\treturn this.audioContext\n\t}\n\n\tpublic playInfoSound(volume = 0.2): void {\n\t\tconst ctx = this.getAudioContext()\n\t\tconst now = ctx.currentTime\n\n\t\tconst oscillator = ctx.createOscillator()\n\t\tconst gainNode = ctx.createGain()\n\t\tconst filter = ctx.createBiquadFilter()\n\n\t\toscillator.type = 'sine'\n\t\toscillator.frequency.setValueAtTime(392, now) // G4\n\t\toscillator.frequency.exponentialRampToValueAtTime(523.25, now + 0.25) // C5\n\n\t\tfilter.type = 'lowpass'\n\t\tfilter.frequency.value = 1500\n\n\t\tgainNode.gain.setValueAtTime(0.0001, now)\n\t\tgainNode.gain.exponentialRampToValueAtTime(volume, now + 0.15)\n\t\tgainNode.gain.exponentialRampToValueAtTime(0.0001, now + 0.4)\n\n\t\toscillator.connect(filter).connect(gainNode).connect(ctx.destination)\n\t\toscillator.start(now)\n\t\toscillator.stop(now + 0.45)\n\t}\n\n\tpublic playSuccessSound(volume = 0.2): void {\n\t\tconst ctx = this.getAudioContext()\n\t\tconst now = ctx.currentTime\n\n\t\tconst createBell = (freq: number, start: number, duration: number) => {\n\t\t\tconst osc = ctx.createOscillator()\n\t\t\tconst gain = ctx.createGain()\n\t\t\tconst filter = ctx.createBiquadFilter()\n\n\t\t\tosc.type = 'sine'\n\t\t\tosc.frequency.setValueAtTime(freq, now)\n\t\t\tfilter.type = 'lowpass'\n\t\t\tfilter.frequency.value = freq * 4\n\n\t\t\tgain.gain.setValueAtTime(0.0001, now)\n\t\t\tgain.gain.exponentialRampToValueAtTime(volume, now + 0.1)\n\t\t\tgain.gain.exponentialRampToValueAtTime(0.0001, now + duration)\n\n\t\t\tosc.connect(filter).connect(gain).connect(ctx.destination)\n\t\t\tosc.start(now + start)\n\t\t\tosc.stop(now + duration)\n\t\t}\n\n\t\tcreateBell(659.25, 0, 0.6) // E5\n\t\tcreateBell(523.25, 0.05, 0.55) // C5\n\t}\n\n\tpublic playWarningSound(volume = 0.25): void {\n\t\tconst ctx = this.getAudioContext()\n\t\tconst now = ctx.currentTime\n\n\t\tconst osc1 = ctx.createOscillator()\n\t\tconst osc2 = ctx.createOscillator()\n\t\tconst gain = ctx.createGain()\n\t\tconst filter = ctx.createBiquadFilter()\n\n\t\tosc1.type = 'sine'\n\t\tosc2.type = 'sine'\n\t\tosc1.frequency.setValueAtTime(349.23, now) // F4\n\t\tosc2.frequency.setValueAtTime(440, now) // A4\n\n\t\tfilter.type = 'lowpass'\n\t\tfilter.frequency.value = 1000\n\n\t\tgain.gain.setValueAtTime(0.0001, now)\n\t\tgain.gain.exponentialRampToValueAtTime(volume, now + 0.08)\n\t\tgain.gain.exponentialRampToValueAtTime(0.0001, now + 0.5)\n\n\t\tosc1.connect(filter)\n\t\tosc2.connect(filter)\n\t\tfilter.connect(gain).connect(ctx.destination)\n\n\t\tosc1.start(now)\n\t\tosc2.start(now)\n\t\tosc1.stop(now + 0.55)\n\t\tosc2.stop(now + 0.55)\n\t}\n\n\tpublic playErrorSound(volume = 0.25): void {\n\t\tconst ctx = this.getAudioContext()\n\t\tconst now = ctx.currentTime\n\n\t\tconst osc = ctx.createOscillator()\n\t\tconst gain = ctx.createGain()\n\t\tconst filter = ctx.createBiquadFilter()\n\n\t\tosc.type = 'triangle'\n\t\tosc.frequency.setValueAtTime(220, now) // A3\n\t\tosc.frequency.exponentialRampToValueAtTime(1760, now + 0.3) // A6\n\n\t\tfilter.type = 'lowpass'\n\t\tfilter.frequency.value = 800\n\t\tfilter.Q.value = 0.5\n\n\t\tgain.gain.setValueAtTime(0.0001, now)\n\t\tgain.gain.exponentialRampToValueAtTime(volume * 0.8, now + 0.1)\n\t\tgain.gain.exponentialRampToValueAtTime(0.0001, now + 0.7)\n\n\t\tosc.connect(filter).connect(gain).connect(ctx.destination)\n\t\tosc.start(now)\n\t\tosc.stop(now + 0.75)\n\t}\n\n\t/**\n\t * Generate audio blob files for all notification sounds\n\t * Returns a Promise that resolves with URLs to the generated audio files\n\t */\n\tpublic async generateAudioFiles(volume = 0.25): Promise<Record<string, string>> {\n\t\t// Create offline audio context for rendering\n\t\tconst sampleRate = 44100\n\t\tconst duration = 1 // 1 second duration to capture the full sound\n\n\t\tconst audioUrls: Record<string, string> = {}\n\n\t\t// Generate info sound\n\t\taudioUrls.info = await this.generateAudioFile(\n\t\t\tasync ctx => {\n\t\t\t\t// Create oscillator for main tone\n\t\t\t\tconst oscillator = ctx.createOscillator()\n\t\t\t\toscillator.type = 'sine'\n\t\t\t\toscillator.frequency.setValueAtTime(320, 0)\n\t\t\t\toscillator.frequency.exponentialRampToValueAtTime(520, 0.3)\n\n\t\t\t\t// Create gain node for volume control with softer attack/release\n\t\t\t\tconst gainNode = ctx.createGain()\n\t\t\t\tgainNode.gain.setValueAtTime(0, 0)\n\t\t\t\tgainNode.gain.linearRampToValueAtTime(volume, 0.1)\n\t\t\t\tgainNode.gain.linearRampToValueAtTime(0, 0.5)\n\n\t\t\t\t// Connect and play\n\t\t\t\toscillator.connect(gainNode)\n\t\t\t\tgainNode.connect(ctx.destination)\n\t\t\t\toscillator.start()\n\t\t\t\toscillator.stop(0.5)\n\t\t\t},\n\t\t\tsampleRate,\n\t\t\tduration,\n\t\t)\n\n\t\t// Generate success sound\n\t\taudioUrls.success = await this.generateAudioFile(\n\t\t\tasync ctx => {\n\t\t\t\t// Create main oscillator (higher note)\n\t\t\t\tconst osc1 = ctx.createOscillator()\n\t\t\t\tosc1.type = 'sine'\n\t\t\t\tosc1.frequency.setValueAtTime(660, 0)\n\n\t\t\t\t// Create secondary oscillator (lower note)\n\t\t\t\tconst osc2 = ctx.createOscillator()\n\t\t\t\tosc2.type = 'sine'\n\t\t\t\tosc2.frequency.setValueAtTime(440, 0)\n\n\t\t\t\t// Create gain nodes with softer envelope\n\t\t\t\tconst gain1 = ctx.createGain()\n\t\t\t\tgain1.gain.setValueAtTime(0, 0)\n\t\t\t\tgain1.gain.linearRampToValueAtTime(volume, 0.1)\n\t\t\t\tgain1.gain.linearRampToValueAtTime(0, 0.5)\n\n\t\t\t\tconst gain2 = ctx.createGain()\n\t\t\t\tgain2.gain.setValueAtTime(0, 0)\n\t\t\t\tgain2.gain.linearRampToValueAtTime(volume * 0.6, 0.15)\n\t\t\t\tgain2.gain.linearRampToValueAtTime(0, 0.7)\n\n\t\t\t\t// Connect and play\n\t\t\t\tosc1.connect(gain1)\n\t\t\t\tgain1.connect(ctx.destination)\n\n\t\t\t\tosc2.connect(gain2)\n\t\t\t\tgain2.connect(ctx.destination)\n\n\t\t\t\tosc1.start()\n\t\t\t\tosc2.start(0.15)\n\n\t\t\t\tosc1.stop(0.5)\n\t\t\t\tosc2.stop(0.7)\n\t\t\t},\n\t\t\tsampleRate,\n\t\t\tduration,\n\t\t)\n\n\t\t// Generate warning sound\n\t\taudioUrls.warning = await this.generateAudioFile(\n\t\t\tasync ctx => {\n\t\t\t\t// Create oscillators for a two-tone warning\n\t\t\t\tconst osc1 = ctx.createOscillator()\n\t\t\t\tosc1.type = 'sine'\n\t\t\t\tosc1.frequency.setValueAtTime(293.66, 0)\n\n\t\t\t\tconst osc2 = ctx.createOscillator()\n\t\t\t\tosc2.type = 'sine'\n\t\t\t\tosc2.frequency.setValueAtTime(349.23, 0)\n\n\t\t\t\t// Create gain node with softer envelope\n\t\t\t\tconst gain = ctx.createGain()\n\t\t\t\tgain.gain.setValueAtTime(0, 0)\n\t\t\t\tgain.gain.linearRampToValueAtTime(volume, 0.1)\n\t\t\t\tgain.gain.linearRampToValueAtTime(volume * 0.6, 0.2)\n\t\t\t\tgain.gain.linearRampToValueAtTime(volume * 0.8, 0.3)\n\t\t\t\tgain.gain.linearRampToValueAtTime(0, 0.6)\n\n\t\t\t\t// Connect and play\n\t\t\t\tosc1.connect(gain)\n\t\t\t\tosc2.connect(gain)\n\t\t\t\tgain.connect(ctx.destination)\n\n\t\t\t\tosc1.start()\n\t\t\t\tosc2.start()\n\n\t\t\t\tosc1.stop(0.6)\n\t\t\t\tosc2.stop(0.6)\n\t\t\t},\n\t\t\tsampleRate,\n\t\t\tduration,\n\t\t)\n\n\t\t// Generate error sound\n\t\taudioUrls.error = await this.generateAudioFile(\n\t\t\tasync ctx => {\n\t\t\t\t// Create main oscillator\n\t\t\t\tconst osc = ctx.createOscillator()\n\t\t\t\tosc.type = 'sine'\n\t\t\t\tosc.frequency.setValueAtTime(196, 0)\n\n\t\t\t\t// Create gain node with softer envelope\n\t\t\t\tconst gain = ctx.createGain()\n\t\t\t\tgain.gain.setValueAtTime(0, 0)\n\t\t\t\tgain.gain.linearRampToValueAtTime(volume, 0.1)\n\t\t\t\tgain.gain.linearRampToValueAtTime(volume * 0.4, 0.2)\n\t\t\t\tgain.gain.linearRampToValueAtTime(volume * 0.6, 0.3)\n\t\t\t\tgain.gain.linearRampToValueAtTime(0, 0.7)\n\n\t\t\t\t// Additional filter to make it even softer\n\t\t\t\tconst filter = ctx.createBiquadFilter()\n\t\t\t\tfilter.type = 'lowpass'\n\t\t\t\tfilter.frequency.value = 600\n\t\t\t\tfilter.Q.value = 0.7\n\n\t\t\t\t// Connect and play\n\t\t\t\tosc.connect(filter)\n\t\t\t\tfilter.connect(gain)\n\t\t\t\tgain.connect(ctx.destination)\n\n\t\t\t\tosc.start()\n\t\t\t\tosc.stop(0.7)\n\t\t\t},\n\t\t\tsampleRate,\n\t\t\tduration,\n\t\t)\n\n\t\treturn audioUrls\n\t}\n\n\t/**\n\t * Generate an audio file from a sound generation function\n\t * @param renderFunction Function that creates the sound in the provided context\n\t * @param sampleRate Sample rate for the audio\n\t * @param duration Duration in seconds\n\t * @returns Promise that resolves with the URL to the generated audio file\n\t */\n\tprivate async generateAudioFile(\n\t\trenderFunction: (ctx: OfflineAudioContext) => Promise<void>,\n\t\tsampleRate = 44100,\n\t\tduration = 1,\n\t): Promise<string> {\n\t\t// Create offline context\n\t\tconst offlineCtx = new OfflineAudioContext(2, sampleRate * duration, sampleRate)\n\n\t\t// Render the sound\n\t\tawait renderFunction(offlineCtx)\n\n\t\t// Render the audio\n\t\tconst audioBuffer = await offlineCtx.startRendering()\n\n\t\t// Convert to WAV format\n\t\tconst wavBlob = this.audioBufferToWav(audioBuffer)\n\n\t\t// Create URL\n\t\treturn URL.createObjectURL(wavBlob)\n\t}\n\n\t/**\n\t * Convert AudioBuffer to WAV format\n\t * Based on https://github.com/Jam3/audiobuffer-to-wav\n\t */\n\tprivate audioBufferToWav(buffer: AudioBuffer): Blob {\n\t\tconst numChannels = buffer.numberOfChannels\n\t\tconst sampleRate = buffer.sampleRate\n\t\tconst format = 1 // PCM\n\t\tconst bitDepth = 16\n\n\t\tconst bytesPerSample = bitDepth / 8\n\t\tconst blockAlign = numChannels * bytesPerSample\n\n\t\tconst samples = this.getAudioSamples(buffer, bitDepth)\n\t\tconst dataLength = samples.length * bytesPerSample\n\n\t\t// Create WAV header\n\t\tconst headerLength = 44\n\t\tconst wavBuffer = new ArrayBuffer(headerLength + dataLength)\n\t\tconst view = new DataView(wavBuffer)\n\n\t\t// RIFF identifier\n\t\tthis.writeString(view, 0, 'RIFF')\n\t\t// File length minus RIFF identifier and file size\n\t\tview.setUint32(4, 36 + dataLength, true)\n\t\t// RIFF type\n\t\tthis.writeString(view, 8, 'WAVE')\n\t\t// Format chunk identifier\n\t\tthis.writeString(view, 12, 'fmt ')\n\t\t// Format chunk length\n\t\tview.setUint32(16, 16, true)\n\t\t// Sample format (PCM)\n\t\tview.setUint16(20, format, true)\n\t\t// Channel count\n\t\tview.setUint16(22, numChannels, true)\n\t\t// Sample rate\n\t\tview.setUint32(24, sampleRate, true)\n\t\t// Byte rate (sample rate * block align)\n\t\tview.setUint32(28, sampleRate * blockAlign, true)\n\t\t// Block align (channel count * bytes per sample)\n\t\tview.setUint16(32, blockAlign, true)\n\t\t// Bits per sample\n\t\tview.setUint16(34, bitDepth, true)\n\t\t// Data chunk identifier\n\t\tthis.writeString(view, 36, 'data')\n\t\t// Data chunk length\n\t\tview.setUint32(40, dataLength, true)\n\n\t\t// Write the audio data\n\t\tif (bitDepth === 16) {\n\t\t\tthis.writeInt16Samples(view, headerLength, samples)\n\t\t} else {\n\t\t\tthrow new Error('Only 16-bit audio is supported')\n\t\t}\n\n\t\treturn new Blob([wavBuffer], { type: 'audio/wav' })\n\t}\n\n\t/**\n\t * Get audio samples from an AudioBuffer\n\t */\n\tprivate getAudioSamples(buffer: AudioBuffer, bitDepth: number): number[] {\n\t\tconst numChannels = buffer.numberOfChannels\n\t\tconst length = buffer.length\n\t\tconst samples: number[] = []\n\t\tconst scale = bitDepth === 16 ? 32768 : 128\n\n\t\t// Get samples from all channels\n\t\tfor (let i = 0; i < length; i++) {\n\t\t\tfor (let channel = 0; channel < numChannels; channel++) {\n\t\t\t\tconst sample = buffer.getChannelData(channel)[i]\n\t\t\t\t// Convert float32 to int16 or int8\n\t\t\t\tconst intSample = Math.max(-1, Math.min(1, sample))\n\t\t\t\tsamples.push(intSample * scale)\n\t\t\t}\n\t\t}\n\n\t\treturn samples\n\t}\n\n\t/**\n\t * Write 16-bit samples to a DataView\n\t */\n\tprivate writeInt16Samples(view: DataView, offset: number, samples: number[]): void {\n\t\tfor (let i = 0; i < samples.length; i++) {\n\t\t\tview.setInt16(offset + i * 2, samples[i], true)\n\t\t}\n\t}\n\n\t/**\n\t * Write a string to a DataView\n\t */\n\tprivate writeString(view: DataView, offset: number, string: string): void {\n\t\tfor (let i = 0; i < string.length; i++) {\n\t\t\tview.setUint8(offset + i, string.charCodeAt(i))\n\t\t}\n\t}\n}\n","import { NotificationType } from './notification'\nimport { NotificationSoundGenerator } from './notification-audio-generator'\n\n/**\n * Audio service for playing notification sounds.\n * Uses Web Audio API with fallback to HTML5 Audio.\n */\nexport class NotificationAudioService {\n\tprivate audioContext: AudioContext | null = null\n\tprivate soundBuffers: Map<NotificationType, AudioBuffer> = new Map()\n\tprivate volume: number = 0.5\n\tprivate muted: boolean = false\n\tprivate soundGenerator = new NotificationSoundGenerator()\n\n\t// Default sound URLs (will be generated programmatically as fallback)\n\tprivate soundUrls: Record<NotificationType, string> = {\n\t\tinfo: '/assets/sounds/notification-info.mp3',\n\t\tsuccess: '/assets/sounds/notification-success.mp3',\n\t\twarning: '/assets/sounds/notification-warning.mp3',\n\t\terror: '/assets/sounds/notification-error.mp3',\n\t}\n\n\tconstructor() {\n\t\t// Initialize audio context when first needed\n\t\tthis.initializeAudioFiles()\n\t}\n\n\t/**\n\t * Initialize audio files - generate programmatically if needed\n\t */\n\tprivate async initializeAudioFiles(): Promise<void> {\n\t\ttry {\n\t\t\t// Try to load from default URLs\n\t\t\tawait this.preloadSounds()\n\t\t} catch (err) {\n\t\t\tconsole.log('Generating programmatic notification sounds')\n\n\t\t\t// If loading fails, generate programmatically\n\t\t\ttry {\n\t\t\t\tconst generatedUrls = await this.soundGenerator.generateAudioFiles(this.volume)\n\t\t\t\tthis.soundUrls = generatedUrls\n\t\t\t} catch (genErr) {\n\t\t\t\tconsole.warn('Failed to generate notification sounds:', genErr)\n\t\t\t\t// Will fall back to direct playback when needed\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Lazy-initialize the audio context\n\t */\n\tprivate getAudioContext(): AudioContext {\n\t\tif (!this.audioContext) {\n\t\t\t// Use AudioContext with webkit prefix fallback for Safari\n\t\t\tconst AudioContextClass = window.AudioContext || (window as any).webkitAudioContext\n\t\t\tthis.audioContext = new AudioContextClass()\n\t\t}\n\n\t\treturn this.audioContext\n\t}\n\n\t/**\n\t * Preload all notification sounds\n\t */\n\tprivate async preloadSounds(): Promise<void> {\n\t\tconst types: NotificationType[] = ['info', 'success', 'warning', 'error']\n\n\t\tfor (const type of types) {\n\t\t\ttry {\n\t\t\t\tconst buffer = await this.loadSound(type)\n\t\t\t\tthis.soundBuffers.set(type, buffer)\n\t\t\t} catch (err) {\n\t\t\t\tconsole.warn(`Failed to preload ${type} sound:`, err)\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Load a sound file and decode it\n\t */\n\tprivate async loadSound(type: NotificationType): Promise<AudioBuffer> {\n\t\tconst url = this.soundUrls[type]\n\t\tconst response = await fetch(url)\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error(`Failed to load sound from ${url}: ${response.statusText}`)\n\t\t}\n\n\t\tconst arrayBuffer = await response.arrayBuffer()\n\t\treturn await this.getAudioContext().decodeAudioData(arrayBuffer)\n\t}\n\n\t/**\n\t * Play a notification sound\n\t */\n\tpublic async playSound(type: NotificationType): Promise<void> {\n\t\tif (this.muted) return\n\n\t\ttry {\n\t\t\t// Try to use Web Audio API first\n\t\t\tconst context = this.getAudioContext()\n\n\t\t\t// Ensure audio context is resumed (needed due to autoplay policy)\n\t\t\tif (context.state === 'suspended') {\n\t\t\t\tawait context.resume()\n\t\t\t}\n\n\t\t\t// Try to use programmatically generated sound first\n\t\t\tif (this.soundUrls[type].startsWith('blob:')) {\n\t\t\t\tthis.playFallbackSound(type)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Load sound if not already cached\n\t\t\tif (!this.soundBuffers.has(type)) {\n\t\t\t\ttry {\n\t\t\t\t\tconst buffer = await this.loadSound(type)\n\t\t\t\t\tthis.soundBuffers.set(type, buffer)\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Fall back to direct generator\n\t\t\t\t\tthis.playDirectGeneratedSound(type)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst buffer = this.soundBuffers.get(type)\n\t\t\tif (!buffer) {\n\t\t\t\tthrow new Error(`Sound buffer for ${type} not available`)\n\t\t\t}\n\n\t\t\t// Create source and gain nodes\n\t\t\tconst source = context.createBufferSource()\n\t\t\tsource.buffer = buffer\n\n\t\t\tconst gainNode = context.createGain()\n\t\t\tgainNode.gain.value = this.volume\n\n\t\t\t// Connect and play\n\t\t\tsource.connect(gainNode)\n\t\t\tgainNode.connect(context.destination)\n\t\t\tsource.start(0)\n\t\t} catch (err) {\n\t\t\tconsole.warn(`Web Audio API buffer playback failed, trying direct generation:`, err)\n\t\t\tthis.playDirectGeneratedSound(type)\n\t\t}\n\t}\n\n\t/**\n\t * Play a directly generated sound when other methods fail\n\t */\n\tprivate playDirectGeneratedSound(type: NotificationType): void {\n\t\tif (this.muted) return\n\n\t\ttry {\n\t\t\tswitch (type) {\n\t\t\t\tcase 'info':\n\t\t\t\t\tthis.soundGenerator.playInfoSound(this.volume)\n\t\t\t\t\tbreak\n\t\t\t\tcase 'success':\n\t\t\t\t\tthis.soundGenerator.playSuccessSound(this.volume)\n\t\t\t\t\tbreak\n\t\t\t\tcase 'warning':\n\t\t\t\t\tthis.soundGenerator.playWarningSound(this.volume)\n\t\t\t\t\tbreak\n\t\t\t\tcase 'error':\n\t\t\t\t\tthis.soundGenerator.playErrorSound(this.volume)\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tconsole.error(`Failed to play generated sound for ${type}:`, err)\n\t\t}\n\t}\n\n\t/**\n\t * Play sound using HTML5 Audio as a fallback\n\t */\n\tprivate playFallbackSound(type: NotificationType): void {\n\t\tif (this.muted) return\n\n\t\ttry {\n\t\t\tconst audio = new Audio(this.soundUrls[type])\n\t\t\taudio.volume = this.volume\n\n\t\t\t// Add event listener to clean up after playback\n\t\t\taudio.addEventListener('ended', () => {\n\t\t\t\taudio.remove()\n\t\t\t})\n\n\t\t\taudio.play().catch(err => {\n\t\t\t\tconsole.error(`Failed to play fallback sound for ${type}:`, err)\n\t\t\t\tthis.playDirectGeneratedSound(type)\n\t\t\t})\n\t\t} catch (err) {\n\t\t\tconsole.error('HTML5 Audio fallback failed:', err)\n\t\t\tthis.playDirectGeneratedSound(type)\n\t\t}\n\t}\n\n\t/**\n\t * Set volume for notification sounds (0.0 to 1.0)\n\t */\n\tpublic setVolume(volume: number): void {\n\t\tthis.volume = Math.max(0, Math.min(1, volume))\n\t}\n\n\t/**\n\t * Get current volume level\n\t */\n\tpublic getVolume(): number {\n\t\treturn this.volume\n\t}\n\n\t/**\n\t * Mute notification sounds\n\t */\n\tpublic mute(): void {\n\t\tthis.muted = true\n\t}\n\n\t/**\n\t * Unmute notification sounds\n\t */\n\tpublic unmute(): void {\n\t\tthis.muted = false\n\t}\n\n\t/**\n\t * Check if notification sounds are muted\n\t */\n\tpublic isMuted(): boolean {\n\t\treturn this.muted\n\t}\n\n\t/**\n\t * Set custom sound URL for a notification type\n\t */\n\tpublic setSoundUrl(type: NotificationType, url: string): void {\n\t\tthis.soundUrls[type] = url\n\n\t\t// Clear cached buffer to force reload\n\t\tthis.soundBuffers.delete(type)\n\t}\n\n\t/**\n\t * Get the current sound URL for a notification type\n\t */\n\tpublic getSoundUrl(type: NotificationType): string {\n\t\treturn this.soundUrls[type]\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { repeat } from 'lit/directives/repeat.js'\nimport { fromEvent, takeUntil } from 'rxjs'\nimport { NotificationType } from './notification'\nimport { NotificationAudioService } from './notification-audio'\nimport style from './notification-container.scss?inline'\n\nexport interface NotificationItem {\n\tid: string\n\ttitle: string\n\tmessage: string\n\ttype: NotificationType\n\tduration: number\n\tclosable: boolean\n\tplaySound: boolean\n}\n\nexport interface NotificationOptions {\n\tid?: string\n\ttitle?: string\n\tmessage: string\n\ttype?: NotificationType\n\tduration?: number\n\tclosable?: boolean\n\tplaySound?: boolean\n}\n\n/**\n * Container component for displaying stacked notifications.\n *\n * @element sch-notification-container\n */\n@customElement('sch-notification-container')\nexport default class SchmancyNotificationContainer extends $LitElement(style) {\n\t@property({ type: String }) position:\n\t\t| 'top-right'\n\t\t| 'top-left'\n\t\t| 'bottom-right'\n\t\t| 'bottom-left'\n\t\t| 'top-center'\n\t\t| 'bottom-center' = 'top-right'\n\t@property({ type: Number }) maxVisibleNotifications = 2\n\t@property({ type: Boolean }) playSound = false\n\t@property({ type: Number }) audioVolume = 0.1\n\n\t@state() private _notifications: NotificationItem[] = []\n\n\t// Audio service\n\tprivate _audioService = new NotificationAudioService()\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\t// Set audio volume\n\t\tthis._audioService.setVolume(this.audioVolume)\n\n\t\t// Listen for notification events\n\t\tfromEvent<CustomEvent<NotificationOptions>>(window, 'schmancy-notification')\n\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t.subscribe(event => {\n\t\t\t\tthis.addNotification(event.detail)\n\t\t\t})\n\n\t\t// Listen for play sound events from child notifications\n\t\tthis.addEventListener('playsound', ((event: CustomEvent) => {\n\t\t\tif (this.playSound) {\n\t\t\t\tthis._audioService.playSound(event.detail.type)\n\t\t\t}\n\t\t}) as EventListener)\n\t}\n\n\t// Public API to add notifications\n\tpublic addNotification(options: NotificationOptions): string {\n\t\tconst id = options.id || `notification-${Date.now()}-${Math.floor(Math.random() * 10000)}`\n\n\t\tconst notification: NotificationItem = {\n\t\t\tid,\n\t\t\ttitle: options.title || '',\n\t\t\tmessage: options.message,\n\t\t\ttype: options.type || 'info',\n\t\t\tduration: options.duration !== undefined ? options.duration : 750,\n\t\t\tclosable: options.closable !== undefined ? options.closable : true,\n\t\t\tplaySound: options.playSound !== undefined ? options.playSound : this.playSound,\n\t\t}\n\n\t\t// Add new notification (top for top-* positions, bottom for bottom-* positions)\n\t\tif (this.position.startsWith('top')) {\n\t\t\tthis._notifications = [...this._notifications, notification]\n\t\t} else {\n\t\t\tthis._notifications = [notification, ...this._notifications]\n\t\t}\n\n\t\t// Enforce max visible notifications\n\t\tif (this._notifications.length > this.maxVisibleNotifications) {\n\t\t\tthis._notifications = this._notifications.slice(-this.maxVisibleNotifications)\n\t\t}\n\n\t\t// Play sound if enabled\n\t\tif (notification.playSound) {\n\t\t\tthis._audioService.playSound(notification.type)\n\t\t}\n\n\t\treturn id\n\t}\n\n\tpublic removeNotification(id: string) {\n\t\tthis._notifications = this._notifications.filter(n => n.id !== id)\n\t}\n\n\tprivate _handleClose(e: CustomEvent) {\n\t\tconst id = e.detail.id\n\t\tthis.removeNotification(id)\n\t}\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=${classMap({\n\t\t\t\t\t'notification-container': true,\n\t\t\t\t\t[this.position]: true,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t${repeat(\n\t\t\t\t\tthis._notifications,\n\t\t\t\t\tnotification => notification.id,\n\t\t\t\t\tnotification => html`\n <sch-notification\n .id=${notification.id}\n .title=${notification.title}\n .message=${notification.message}\n .type=${notification.type}\n .duration=${notification.duration}\n ?closable=${notification.closable}\n ?playSound=${false} /* We already played the sound on add */\n @close=${this._handleClose}\n ></sch-notification>\n `,\n\t\t\t\t)}\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sch-notification-container': SchmancyNotificationContainer\n\t}\n}\n","import { NotificationOptions } from './notification-container'\n\n/**\n * Notification service for centralized notification management.\n * Provides a simple API for showing notifications.\n */\nexport class NotificationService {\n\tprivate static instance: NotificationService\n\n\t// Default notification options\n\tprivate static DEFAULT_OPTIONS: Partial<NotificationOptions> = {\n\t\tduration: 1000, // 1 seconds - long enough to be readable\n\t\tclosable: true,\n\t\tplaySound: true,\n\t}\n\n\t// Private constructor for singleton pattern\n\tprivate constructor() {}\n\n\t/**\n\t * Get the singleton instance\n\t */\n\tpublic static getInstance(): NotificationService {\n\t\tif (!NotificationService.instance) {\n\t\t\tNotificationService.instance = new NotificationService()\n\t\t}\n\t\treturn NotificationService.instance\n\t}\n\n\t/**\n\t * Show a notification\n\t * @returns The ID of the created notification\n\t */\n\tpublic notify(options: NotificationOptions): string {\n\t\t// Apply default options\n\t\tconst completeOptions = {\n\t\t\t...NotificationService.DEFAULT_OPTIONS,\n\t\t\t...options,\n\t\t\t// Override with duraton from options if provided, otherwise use default\n\t\t\tduration: options.duration ?? NotificationService.DEFAULT_OPTIONS.duration,\n\t\t}\n\n\t\tconst id = completeOptions.id || `notification-${Date.now()}-${Math.floor(Math.random() * 10000)}`\n\n\t\t// Create and dispatch event\n\t\tconst event = new CustomEvent('schmancy-notification', {\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t\tdetail: {\n\t\t\t\t...completeOptions,\n\t\t\t\tid,\n\t\t\t},\n\t\t})\n\n\t\twindow.dispatchEvent(event)\n\t\treturn id\n\t}\n\n\t/**\n\t * Show an info notification\n\t */\n\tpublic info(message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string {\n\t\treturn this.notify({\n\t\t\tmessage,\n\t\t\ttype: 'info',\n\t\t\t...options,\n\t\t})\n\t}\n\n\t/**\n\t * Show a success notification\n\t */\n\tpublic success(message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string {\n\t\treturn this.notify({\n\t\t\tmessage,\n\t\t\ttype: 'success',\n\t\t\t...options,\n\t\t})\n\t}\n\n\t/**\n\t * Show a warning notification\n\t */\n\tpublic warning(message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string {\n\t\treturn this.notify({\n\t\t\tmessage,\n\t\t\ttype: 'warning',\n\t\t\t...options,\n\t\t})\n\t}\n\n\t/**\n\t * Show an error notification\n\t */\n\tpublic error(message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string {\n\t\treturn this.notify({\n\t\t\tmessage,\n\t\t\ttype: 'error',\n\t\t\t...options,\n\t\t})\n\t}\n\n\t/**\n\t * Show a notification with a custom duration\n\t */\n\tpublic customDuration(\n\t\tmessage: string,\n\t\tduration: number,\n\t\toptions: Partial<Omit<NotificationOptions, 'message' | 'duration'>> = {},\n\t): string {\n\t\treturn this.notify({\n\t\t\tmessage,\n\t\t\tduration,\n\t\t\t...options,\n\t\t})\n\t}\n\n\t/**\n\t * Show a persistent notification (won't auto-dismiss)\n\t */\n\tpublic persistent(message: string, options: Partial<Omit<NotificationOptions, 'message' | 'duration'>> = {}): string {\n\t\treturn this.notify({\n\t\t\tmessage,\n\t\t\tduration: 0, // Zero duration means no auto-close\n\t\t\t...options,\n\t\t})\n\t}\n}\n\n/**\n * Global notification utility - provides a quick way to show notifications\n */\nexport const $notify = {\n\t/**\n\t * Show a notification\n\t */\n\tshow: (options: NotificationOptions): string => {\n\t\treturn NotificationService.getInstance().notify(options)\n\t},\n\n\t/**\n\t * Show an info notification\n\t */\n\tinfo: (message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string => {\n\t\treturn NotificationService.getInstance().info(message, options)\n\t},\n\n\t/**\n\t * Show a success notification\n\t */\n\tsuccess: (message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string => {\n\t\treturn NotificationService.getInstance().success(message, options)\n\t},\n\n\t/**\n\t * Show a warning notification\n\t */\n\twarning: (message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string => {\n\t\treturn NotificationService.getInstance().warning(message, options)\n\t},\n\n\t/**\n\t * Show an error notification\n\t */\n\terror: (message: string, options: Partial<Omit<NotificationOptions, 'message' | 'type'>> = {}): string => {\n\t\treturn NotificationService.getInstance().error(message, options)\n\t},\n\n\t/**\n\t * Show a notification with a custom duration\n\t * @param message The notification message\n\t * @param duration Duration in milliseconds before auto-dismissing (0 for no auto-dismiss)\n\t * @param options Additional notification options\n\t */\n\tcustomDuration: (\n\t\tmessage: string,\n\t\tduration: number,\n\t\toptions: Partial<Omit<NotificationOptions, 'message' | 'duration'>> = {},\n\t): string => {\n\t\treturn NotificationService.getInstance().customDuration(message, duration, options)\n\t},\n\n\t/**\n\t * Show a persistent notification that won't auto-dismiss\n\t */\n\tpersistent: (message: string, options: Partial<Omit<NotificationOptions, 'message' | 'duration'>> = {}): string => {\n\t\treturn NotificationService.getInstance().persistent(message, options)\n\t},\n}\n\nexport default NotificationService\n"],"names":["SchmancyNotification","$LitElement","super","arguments","this","title","message","type","closable","duration","id","Date","now","Math","floor","random","playSound","_visible","_progress","_hovered","_closing","connectedCallback","_startAutoCloseTimer","_playSound","disconnectedCallback","_clearTimers","changedProps","updated","has","endTime","_autoCloseTimer","window","setTimeout","close","_progressTimer","setInterval","remaining","max","clearTimeout","clearInterval","_pauseTimers","remainingTime","dispatchEvent","CustomEvent","detail","bubbles","composed","_resumeTimers","html","typeStyles","_getTypeStyles","classMap","notification","closing","styleMap","transform","opacity","_handleMouseEnter","_handleMouseLeave","color","iconColor","icon","bgColor","progressColor","SchmancyTheme","sys","success","default","tertiary","error","primary","__decorateClass","property","String","prototype","Boolean","Number","state","customElement","NotificationSoundGenerator","audioContext","getAudioContext","AudioContextClass","AudioContext","webkitAudioContext","volume","ctx","currentTime","oscillator","createOscillator","gainNode","createGain","filter","createBiquadFilter","frequency","setValueAtTime","exponentialRampToValueAtTime","value","gain","connect","destination","start","stop","createBell","freq","osc","osc1","osc2","Q","generateAudioFiles","audioUrls","info","generateAudioFile","async","linearRampToValueAtTime","sampleRate","gain1","gain2","warning","renderFunction","offlineCtx","OfflineAudioContext","audioBuffer","startRendering","wavBlob","audioBufferToWav","URL","createObjectURL","buffer","numChannels","numberOfChannels","blockAlign","bitDepth","samples","getAudioSamples","dataLength","length","wavBuffer","ArrayBuffer","view","DataView","writeString","setUint32","setUint16","writeInt16Samples","Blob","scale","i","channel","sample","getChannelData","intSample","min","push","offset","setInt16","string","setUint8","charCodeAt","NotificationAudioService","constructor","soundBuffers","Map","muted","soundGenerator","soundUrls","initializeAudioFiles","preloadSounds","err","generatedUrls","types","loadSound","set","url","response","fetch","ok","Error","statusText","arrayBuffer","decodeAudioData","context","resume","startsWith","playFallbackSound","playDirectGeneratedSound","get","source","createBufferSource","playInfoSound","playSuccessSound","playWarningSound","playErrorSound","audio","Audio","addEventListener","remove","play","catch","mute","unmute","delete","SchmancyNotificationContainer","position","maxVisibleNotifications","audioVolume","_notifications","_audioService","setVolume","fromEvent","pipe","takeUntil","disconnecting","subscribe","event","addNotification","options","slice","n","e","removeNotification","repeat","_handleClose","NotificationService","instance","completeOptions","DEFAULT_OPTIONS","s","notify","_k","$notify","show","getInstance","customDuration","persistent"],"mappings":";;;;;;;;;;;;;;AAeA,IAAqBA,IAArB,cAAkDC;EAAlD,cAAAC;AAAAA,UAAAA,GAAAC,YACqCC,KAAAC,QAAA,IACED,KAAAE,UAAA,IACeF,KAAAG,OAAA,QACbH,KAAAI,WAAA,IACDJ,KAAAK,WAAA,KACNL,KAAAM,KAAA,gBAAgBC,KAAKC,IAASC,CAAAA,IAAAA,KAAKC,MAAsB,MAAhBD,KAAKE,aACtCX,KAAAY,YAAAA,IAEhCZ,KAAQa,WAAAA,IACRb,KAAQc,YAAY,KACpBd,KAAQe,WAAAA,IACRf,KAAQgB,WAAAA;AAAAA,EAAW;AAAA,EAI5B;AACClB,UAAMmB,kBAAAA,GAEFjB,KAAKK,WAAW,KACnBL,KAAKkB,qBAGFlB,GAAAA,KAAKY,aACRZ,KAAKmB,WAAAA;AAAAA,EACN;AAAA,EAGD,uBAAAC;AACCpB,SAAKqB,aAAAA,GACLvB,MAAMsB,qBAAAA;AAAAA,EAAqB;AAAA,EAG5B,QAAQE;AACPxB,UAAMyB,QAAQD,IAEVA,EAAaE,IAAI,eAAexB,KAAKK,WAAW,MACnDL,KAAKqB,aAAAA,GACLrB,KAAKkB,qBACN;AAAA,EAAA;AAAA,EAGO,uBACH;AAAA,QAAAlB,KAAKK,YAAY,EAAG;AAElB,UACAoB,IADYlB,KAAKC,IACKR,IAAAA,KAAKK;AAG5BL,SAAA0B,kBAAkBC,OAAOC,WAAW,MAAA;AACxC5B,WAAK6B,MAAM;AAAA,IAAA,GACT7B,KAAKK,QAGHL,GAAAA,KAAA8B,iBAAiBH,OAAOI,YAAY,MACxC;AAAA,UAAI/B,KAAKe,SAAU;AAEb,YAAAP,IAAMD,KAAKC,IACXwB,GAAAA,IAAYvB,KAAKwB,IAAI,GAAGR,IAAUjB,CACnCR;AAAAA,WAAAc,YAAakB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E,WAAWpO,GAASkN;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./notification-container-CRjLSf2l.cjs"),e=require("./notification-service-DXXrRCmK.cjs");exports.NotificationAudioService=i.NotificationAudioService,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>i.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationContainer",{enumerable:!0,get:()=>i.SchmancyNotificationContainer}),exports.$notify=e.$notify,exports.NotificationService=e.NotificationService;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./notification-service-BFfFPd1Q.cjs");exports.$notify=e.$notify,exports.NotificationAudioService=e.NotificationAudioService,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>e.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationContainer",{enumerable:!0,get:()=>e.SchmancyNotificationContainer});
2
2
  //# sourceMappingURL=notification.cjs.map
@@ -1,10 +1,8 @@
1
- import { N as a, S as t, a as c } from "./notification-container-C5o2dqpe.js";
2
- import { $ as e, N as f } from "./notification-service-DWeUoHi2.js";
1
+ import { $ as o, N as t, S as c, a as n } from "./notification-service-DA3l75i3.js";
3
2
  export {
4
- e as $notify,
5
- a as NotificationAudioService,
6
- f as NotificationService,
7
- t as SchmancyNotification,
8
- c as SchmancyNotificationContainer
3
+ o as $notify,
4
+ t as NotificationAudioService,
5
+ c as SchmancyNotification,
6
+ n as SchmancyNotificationContainer
9
7
  };
10
8
  //# sourceMappingURL=notification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,7 +1,7 @@
1
1
  import "rxjs";
2
2
  import "lit/directives/class-map.js";
3
3
  import "lit/directives/style-map.js";
4
- import { T as h } from "./tailwind.mixin-Q2P-9IKt.js";
4
+ import { T as h } from "./tailwind.mixin-B_hJc1PP.js";
5
5
  import { css as d, html as p } from "lit";
6
6
  import { property as n, customElement as u } from "lit/decorators.js";
7
7
  var y = Object.defineProperty, v = Object.getOwnPropertyDescriptor, i = (e, o, r, l) => {
@@ -73,4 +73,4 @@ let t = class extends h(d`
73
73
  }
74
74
  };
75
75
  i([n({ type: String })], t.prototype, "value", 2), i([n({ type: String })], t.prototype, "label", 2), i([n({ type: Boolean, reflect: !0 })], t.prototype, "selected", 2), i([n({ type: Boolean, reflect: !0 })], t.prototype, "disabled", 2), i([n({ type: String })], t.prototype, "group", 2), i([n({ type: String })], t.prototype, "icon", 2), t = i([u("schmancy-option")], t);
76
- //# sourceMappingURL=option-CAZq8vIE.js.map
76
+ //# sourceMappingURL=option-BAMNOMye.js.map