@mhmo91/schmancy 0.2.179 → 0.2.184

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 (258) hide show
  1. package/dist/{animated-text-CkOuJUK9.cjs → animated-text-BAEi04S6.cjs} +2 -2
  2. package/dist/{animated-text-CkOuJUK9.cjs.map → animated-text-BAEi04S6.cjs.map} +1 -1
  3. package/dist/{animated-text-Xt-2aEHG.js → animated-text-DhGPJ-G5.js} +3 -3
  4. package/dist/{animated-text-Xt-2aEHG.js.map → animated-text-DhGPJ-G5.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-DJpavQee.cjs → area.component-BAaqhl3k.cjs} +2 -2
  9. package/dist/{area.component-DJpavQee.cjs.map → area.component-BAaqhl3k.cjs.map} +1 -1
  10. package/dist/{area.component-CIz5wQ1b.js → area.component-DNmuUCm9.js} +3 -3
  11. package/dist/{area.component-CIz5wQ1b.js.map → area.component-DNmuUCm9.js.map} +1 -1
  12. package/dist/area.js +1 -1
  13. package/dist/{autocomplete-B1QsJ_x-.js → autocomplete-CuiPRSlC.js} +3 -3
  14. package/dist/{autocomplete-B1QsJ_x-.js.map → autocomplete-CuiPRSlC.js.map} +1 -1
  15. package/dist/{autocomplete-BeC5nqSA.cjs → autocomplete-DErik5Xw.cjs} +2 -2
  16. package/dist/{autocomplete-BeC5nqSA.cjs.map → autocomplete-DErik5Xw.cjs.map} +1 -1
  17. package/dist/autocomplete.cjs +1 -1
  18. package/dist/autocomplete.js +1 -1
  19. package/dist/{avatar-BF6652TX.cjs → avatar-BYgWyhEZ.cjs} +56 -25
  20. package/dist/avatar-BYgWyhEZ.cjs.map +1 -0
  21. package/dist/{avatar-nGtrl569.js → avatar-BwyUTdF_.js} +166 -135
  22. package/dist/avatar-BwyUTdF_.js.map +1 -0
  23. package/dist/badge.cjs +1 -1
  24. package/dist/badge.js +1 -1
  25. package/dist/busy.cjs +1 -1
  26. package/dist/busy.js +1 -1
  27. package/dist/button.cjs +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/card.cjs +1 -1
  30. package/dist/card.js +1 -1
  31. package/dist/{checkbox-D2rdBv1d.cjs → checkbox-DI4NuFAx.cjs} +2 -2
  32. package/dist/{checkbox-D2rdBv1d.cjs.map → checkbox-DI4NuFAx.cjs.map} +1 -1
  33. package/dist/{checkbox-BDBWkxtE.js → checkbox-DcIrn_Wq.js} +2 -2
  34. package/dist/{checkbox-BDBWkxtE.js.map → checkbox-DcIrn_Wq.js.map} +1 -1
  35. package/dist/checkbox.cjs +1 -1
  36. package/dist/checkbox.js +1 -1
  37. package/dist/{chips-CEEnmVL5.js → chips-BL-ltDVQ.js} +3 -3
  38. package/dist/{chips-CEEnmVL5.js.map → chips-BL-ltDVQ.js.map} +1 -1
  39. package/dist/{chips-SeAzMV_K.cjs → chips-CkgwKojL.cjs} +2 -2
  40. package/dist/{chips-SeAzMV_K.cjs.map → chips-CkgwKojL.cjs.map} +1 -1
  41. package/dist/chips.cjs +1 -1
  42. package/dist/chips.js +1 -1
  43. package/dist/components.cjs +1 -1
  44. package/dist/components.js +1 -1
  45. package/dist/content-drawer.cjs +1 -1
  46. package/dist/content-drawer.js +1 -1
  47. package/dist/{date-range-CYUXWjf7.js → date-range-SzxBN8Rn.js} +3 -3
  48. package/dist/{date-range-CYUXWjf7.js.map → date-range-SzxBN8Rn.js.map} +1 -1
  49. package/dist/{date-range-B6vemmh0.cjs → date-range-YVE-UrJS.cjs} +2 -2
  50. package/dist/{date-range-B6vemmh0.cjs.map → date-range-YVE-UrJS.cjs.map} +1 -1
  51. package/dist/date-range.cjs +1 -1
  52. package/dist/date-range.js +1 -1
  53. package/dist/{delay-D7tikEF6.js → delay-BPbI-RNJ.js} +2 -2
  54. package/dist/{delay-D7tikEF6.js.map → delay-BPbI-RNJ.js.map} +1 -1
  55. package/dist/{delay-CAcU-vht.cjs → delay-CH5NYBY7.cjs} +2 -2
  56. package/dist/{delay-CAcU-vht.cjs.map → delay-CH5NYBY7.cjs.map} +1 -1
  57. package/dist/delay.cjs +1 -1
  58. package/dist/delay.js +1 -1
  59. package/dist/{dialog-service-Dp9n-iYw.js → dialog-service-DmKX7FDG.js} +60 -76
  60. package/dist/dialog-service-DmKX7FDG.js.map +1 -0
  61. package/dist/dialog-service-DqApS78r.cjs +49 -0
  62. package/dist/dialog-service-DqApS78r.cjs.map +1 -0
  63. package/dist/dialog.cjs +1 -1
  64. package/dist/dialog.js +1 -1
  65. package/dist/{divider-fs54fGfB.cjs → divider-BFD3qlpM.cjs} +2 -2
  66. package/dist/{divider-fs54fGfB.cjs.map → divider-BFD3qlpM.cjs.map} +1 -1
  67. package/dist/{divider-6PQ2zS2m.js → divider-BL4lnwZy.js} +3 -3
  68. package/dist/{divider-6PQ2zS2m.js.map → divider-BL4lnwZy.js.map} +1 -1
  69. package/dist/divider.cjs +1 -1
  70. package/dist/divider.js +1 -1
  71. package/dist/{dropdown-content-Dxra1QoF.js → dropdown-content-BEiowQZ8.js} +3 -3
  72. package/dist/{dropdown-content-Dxra1QoF.js.map → dropdown-content-BEiowQZ8.js.map} +1 -1
  73. package/dist/{dropdown-content-KHVgwXu2.cjs → dropdown-content-DNNtXu16.cjs} +2 -2
  74. package/dist/{dropdown-content-KHVgwXu2.cjs.map → dropdown-content-DNNtXu16.cjs.map} +1 -1
  75. package/dist/dropdown.cjs +1 -1
  76. package/dist/dropdown.js +1 -1
  77. package/dist/extra.cjs +1 -1
  78. package/dist/extra.js +1 -1
  79. package/dist/{flex-B_52M97W.cjs → flex-B7APKtrH.cjs} +2 -2
  80. package/dist/{flex-B_52M97W.cjs.map → flex-B7APKtrH.cjs.map} +1 -1
  81. package/dist/{flex-Ba1VHord.js → flex-BSL-IFKp.js} +2 -2
  82. package/dist/{flex-Ba1VHord.js.map → flex-BSL-IFKp.js.map} +1 -1
  83. package/dist/{form-BT700HyQ.js → form-C94CbzJg.js} +2 -2
  84. package/dist/{form-BT700HyQ.js.map → form-C94CbzJg.js.map} +1 -1
  85. package/dist/{form-DJ9KHgsz.cjs → form-IUb8CPsc.cjs} +2 -2
  86. package/dist/{form-DJ9KHgsz.cjs.map → form-IUb8CPsc.cjs.map} +1 -1
  87. package/dist/form.cjs +1 -1
  88. package/dist/form.js +1 -1
  89. package/dist/{icon-0HBHJdBz.js → icon-BxZTVwvU.js} +3 -3
  90. package/dist/{icon-0HBHJdBz.js.map → icon-BxZTVwvU.js.map} +1 -1
  91. package/dist/{icon-ByVRi1IP.cjs → icon-D5NFCVL-.cjs} +2 -2
  92. package/dist/{icon-ByVRi1IP.cjs.map → icon-D5NFCVL-.cjs.map} +1 -1
  93. package/dist/{icon-button-Bt-ZY_dS.cjs → icon-button-D7AWWFQH.cjs} +2 -2
  94. package/dist/{icon-button-Bt-ZY_dS.cjs.map → icon-button-D7AWWFQH.cjs.map} +1 -1
  95. package/dist/{icon-button-YUz9lEvX.js → icon-button-I7gYsJRy.js} +3 -3
  96. package/dist/{icon-button-YUz9lEvX.js.map → icon-button-I7gYsJRy.js.map} +1 -1
  97. package/dist/icons.cjs +1 -1
  98. package/dist/icons.js +1 -1
  99. package/dist/index.cjs +1 -1
  100. package/dist/index.js +38 -38
  101. package/dist/{input-5LPv7UUL.cjs → input-C2w1MOUz.cjs} +2 -2
  102. package/dist/{input-5LPv7UUL.cjs.map → input-C2w1MOUz.cjs.map} +1 -1
  103. package/dist/{input-B_PdFYbP.js → input-ykJRRidv.js} +2 -2
  104. package/dist/{input-B_PdFYbP.js.map → input-ykJRRidv.js.map} +1 -1
  105. package/dist/input.cjs +1 -1
  106. package/dist/input.js +1 -1
  107. package/dist/layout.cjs +1 -1
  108. package/dist/layout.js +1 -1
  109. package/dist/{list-C-r1rTUh.cjs → list-BdqnqwJo.cjs} +2 -2
  110. package/dist/{list-C-r1rTUh.cjs.map → list-BdqnqwJo.cjs.map} +1 -1
  111. package/dist/{list-DLxupHod.js → list-CpJuuk0j.js} +2 -2
  112. package/dist/{list-DLxupHod.js.map → list-CpJuuk0j.js.map} +1 -1
  113. package/dist/list.cjs +1 -1
  114. package/dist/list.js +1 -1
  115. package/dist/{litElement.mixin-DLa9lBCo.cjs → litElement.mixin-DiwfL0tu.cjs} +2 -2
  116. package/dist/{litElement.mixin-DLa9lBCo.cjs.map → litElement.mixin-DiwfL0tu.cjs.map} +1 -1
  117. package/dist/{litElement.mixin-COog0CXV.js → litElement.mixin-vo7nRHAa.js} +2 -2
  118. package/dist/{litElement.mixin-COog0CXV.js.map → litElement.mixin-vo7nRHAa.js.map} +1 -1
  119. package/dist/{menu-DPHp4gMi.js → menu-AIxfPp33.js} +3 -3
  120. package/dist/{menu-DPHp4gMi.js.map → menu-AIxfPp33.js.map} +1 -1
  121. package/dist/{menu-EAL2iLY1.cjs → menu-BcTyOQZD.cjs} +2 -2
  122. package/dist/{menu-EAL2iLY1.cjs.map → menu-BcTyOQZD.cjs.map} +1 -1
  123. package/dist/menu.cjs +1 -1
  124. package/dist/menu.js +1 -1
  125. package/dist/nav-drawer.cjs +1 -1
  126. package/dist/nav-drawer.js +1 -1
  127. package/dist/{notification-service-MrCfqWvW.js → notification-service-Bv3QP-o4.js} +103 -86
  128. package/dist/notification-service-Bv3QP-o4.js.map +1 -0
  129. package/dist/notification-service-m4UPhHgL.cjs +141 -0
  130. package/dist/notification-service-m4UPhHgL.cjs.map +1 -0
  131. package/dist/notification.cjs +1 -1
  132. package/dist/notification.js +1 -1
  133. package/dist/{option-DNdHkboR.js → option-Cb9gjwRp.js} +2 -2
  134. package/dist/{option-DNdHkboR.js.map → option-Cb9gjwRp.js.map} +1 -1
  135. package/dist/{option-BHrf1jEo.cjs → option-Dzesvfvz.cjs} +2 -2
  136. package/dist/{option-BHrf1jEo.cjs.map → option-Dzesvfvz.cjs.map} +1 -1
  137. package/dist/option.cjs +1 -1
  138. package/dist/option.js +1 -1
  139. package/dist/{payment-card-form-BZ8owKyu.cjs → payment-card-form-D9KX1kSR.cjs} +2 -2
  140. package/dist/{payment-card-form-BZ8owKyu.cjs.map → payment-card-form-D9KX1kSR.cjs.map} +1 -1
  141. package/dist/{payment-card-form-BidM0Uhz.js → payment-card-form-S1sRlrgq.js} +3 -3
  142. package/dist/{payment-card-form-BidM0Uhz.js.map → payment-card-form-S1sRlrgq.js.map} +1 -1
  143. package/dist/{radio-group-ay0sh7ZE.js → radio-group-DdqAPgzK.js} +2 -2
  144. package/dist/{radio-group-ay0sh7ZE.js.map → radio-group-DdqAPgzK.js.map} +1 -1
  145. package/dist/{radio-group-BeCwdi7V.cjs → radio-group-l74bQ1Nl.cjs} +2 -2
  146. package/dist/{radio-group-BeCwdi7V.cjs.map → radio-group-l74bQ1Nl.cjs.map} +1 -1
  147. package/dist/radio-group.cjs +1 -1
  148. package/dist/radio-group.js +1 -1
  149. package/dist/{schmancy-steps-container-C7zsS6C6.js → schmancy-steps-container-BiUnWy6H.js} +2 -2
  150. package/dist/{schmancy-steps-container-C7zsS6C6.js.map → schmancy-steps-container-BiUnWy6H.js.map} +1 -1
  151. package/dist/{schmancy-steps-container-b2ccybFR.cjs → schmancy-steps-container-CFnGlw1m.cjs} +2 -2
  152. package/dist/{schmancy-steps-container-b2ccybFR.cjs.map → schmancy-steps-container-CFnGlw1m.cjs.map} +1 -1
  153. package/dist/{select-BXous56R.js → select-DnXezNTS.js} +3 -3
  154. package/dist/{select-BXous56R.js.map → select-DnXezNTS.js.map} +1 -1
  155. package/dist/{select-C6GpEJgA.cjs → select-rBWiHljv.cjs} +2 -2
  156. package/dist/{select-C6GpEJgA.cjs.map → select-rBWiHljv.cjs.map} +1 -1
  157. package/dist/select.cjs +1 -1
  158. package/dist/select.js +1 -1
  159. package/dist/{sheet-DOkKWfz2.js → sheet-CBEF7EAx.js} +3 -3
  160. package/dist/{sheet-DOkKWfz2.js.map → sheet-CBEF7EAx.js.map} +1 -1
  161. package/dist/{sheet-DPkzSrBn.cjs → sheet-DMxlpzAP.cjs} +2 -2
  162. package/dist/{sheet-DPkzSrBn.cjs.map → sheet-DMxlpzAP.cjs.map} +1 -1
  163. package/dist/sheet.cjs +1 -1
  164. package/dist/sheet.js +1 -1
  165. package/dist/{slider-B0lO6KRr.cjs → slider-8JuaGGiq.cjs} +2 -2
  166. package/dist/{slider-B0lO6KRr.cjs.map → slider-8JuaGGiq.cjs.map} +1 -1
  167. package/dist/{slider-DOEXErC5.js → slider-ChmRrorI.js} +3 -3
  168. package/dist/{slider-DOEXErC5.js.map → slider-ChmRrorI.js.map} +1 -1
  169. package/dist/slider.cjs +1 -1
  170. package/dist/slider.js +1 -1
  171. package/dist/{spinner-CQOXrtow.js → spinner-Cx-GWgNp.js} +3 -3
  172. package/dist/{spinner-CQOXrtow.js.map → spinner-Cx-GWgNp.js.map} +1 -1
  173. package/dist/{spinner-DDvtIu98.cjs → spinner-D9V2GA_A.cjs} +2 -2
  174. package/dist/{spinner-DDvtIu98.cjs.map → spinner-D9V2GA_A.cjs.map} +1 -1
  175. package/dist/steps.cjs +1 -1
  176. package/dist/steps.js +1 -1
  177. package/dist/{surface-Dl4S5qYM.cjs → surface-CV4Khong.cjs} +2 -2
  178. package/dist/{surface-Dl4S5qYM.cjs.map → surface-CV4Khong.cjs.map} +1 -1
  179. package/dist/{surface-F1HQR3OS.js → surface-OND0TEqD.js} +2 -2
  180. package/dist/{surface-F1HQR3OS.js.map → surface-OND0TEqD.js.map} +1 -1
  181. package/dist/surface.cjs +1 -1
  182. package/dist/surface.js +1 -1
  183. package/dist/{table-nUo4-lAM.cjs → table-cYNDiHTJ.cjs} +2 -2
  184. package/dist/{table-nUo4-lAM.cjs.map → table-cYNDiHTJ.cjs.map} +1 -1
  185. package/dist/{table-CGsVUEWl.js → table-n1DqMDki.js} +2 -2
  186. package/dist/{table-CGsVUEWl.js.map → table-n1DqMDki.js.map} +1 -1
  187. package/dist/table.cjs +1 -1
  188. package/dist/table.js +1 -1
  189. package/dist/{tabs-group-C2RLxc1l.cjs → tabs-group-CfRiO3NP.cjs} +2 -2
  190. package/dist/{tabs-group-C2RLxc1l.cjs.map → tabs-group-CfRiO3NP.cjs.map} +1 -1
  191. package/dist/{tabs-group-FdbxH4M2.js → tabs-group-R7j5l5H-.js} +2 -2
  192. package/dist/{tabs-group-FdbxH4M2.js.map → tabs-group-R7j5l5H-.js.map} +1 -1
  193. package/dist/tabs.cjs +1 -1
  194. package/dist/tabs.js +1 -1
  195. package/dist/{tailwind.mixin-qCpNU5bd.js → tailwind.mixin-Bne2X3xd.js} +2 -2
  196. package/dist/{tailwind.mixin-qCpNU5bd.js.map → tailwind.mixin-Bne2X3xd.js.map} +1 -1
  197. package/dist/{tailwind.mixin-C1TWeByU.cjs → tailwind.mixin-Dg65LrA_.cjs} +2 -2
  198. package/dist/{tailwind.mixin-C1TWeByU.cjs.map → tailwind.mixin-Dg65LrA_.cjs.map} +1 -1
  199. package/dist/teleport.cjs +1 -1
  200. package/dist/teleport.js +1 -1
  201. package/dist/{textarea-Cjez0oFA.cjs → textarea-6qrdQDUV.cjs} +2 -2
  202. package/dist/{textarea-Cjez0oFA.cjs.map → textarea-6qrdQDUV.cjs.map} +1 -1
  203. package/dist/{textarea-4PL9LQT_.js → textarea-CXmKiBQx.js} +2 -2
  204. package/dist/{textarea-4PL9LQT_.js.map → textarea-CXmKiBQx.js.map} +1 -1
  205. package/dist/textarea.cjs +1 -1
  206. package/dist/textarea.js +1 -1
  207. package/dist/{theme-button-D19t0FIY.js → theme-button-C8LA_gnm.js} +2 -2
  208. package/dist/{theme-button-D19t0FIY.js.map → theme-button-C8LA_gnm.js.map} +1 -1
  209. package/dist/{theme-button-B0wpbNVl.cjs → theme-button-CkmIJuH2.cjs} +2 -2
  210. package/dist/{theme-button-B0wpbNVl.cjs.map → theme-button-CkmIJuH2.cjs.map} +1 -1
  211. package/dist/theme-button.cjs +1 -1
  212. package/dist/theme-button.js +1 -1
  213. package/dist/theme.cjs +1 -1
  214. package/dist/{theme.component-iEu6bM2h.cjs → theme.component-BRozWeb_.cjs} +2 -2
  215. package/dist/{theme.component-iEu6bM2h.cjs.map → theme.component-BRozWeb_.cjs.map} +1 -1
  216. package/dist/{theme.component-C7j176AP.js → theme.component-CznJ2sba.js} +2 -2
  217. package/dist/{theme.component-C7j176AP.js.map → theme.component-CznJ2sba.js.map} +1 -1
  218. package/dist/theme.js +1 -1
  219. package/dist/{timezone-DRyTNStR.cjs → timezone-BpEReA4Q.cjs} +2 -2
  220. package/dist/{timezone-DRyTNStR.cjs.map → timezone-BpEReA4Q.cjs.map} +1 -1
  221. package/dist/{timezone-BwvYFc82.js → timezone-C4yDzDx_.js} +3 -3
  222. package/dist/{timezone-BwvYFc82.js.map → timezone-C4yDzDx_.js.map} +1 -1
  223. package/dist/{tooltip-BsjGf8jh.cjs → tooltip-BOzRGoik.cjs} +2 -2
  224. package/dist/{tooltip-BsjGf8jh.cjs.map → tooltip-BOzRGoik.cjs.map} +1 -1
  225. package/dist/{tooltip-hdpdVnSj.js → tooltip-D8c1qu-0.js} +2 -2
  226. package/dist/{tooltip-hdpdVnSj.js.map → tooltip-D8c1qu-0.js.map} +1 -1
  227. package/dist/tooltip.cjs +1 -1
  228. package/dist/tooltip.js +1 -1
  229. package/dist/{tree-V6zBBSFp.js → tree-Djtylxg3.js} +2 -2
  230. package/dist/{tree-V6zBBSFp.js.map → tree-Djtylxg3.js.map} +1 -1
  231. package/dist/{tree-DM5TVX_j.cjs → tree-PR1A8SwB.cjs} +2 -2
  232. package/dist/{tree-DM5TVX_j.cjs.map → tree-PR1A8SwB.cjs.map} +1 -1
  233. package/dist/tree.cjs +1 -1
  234. package/dist/tree.js +1 -1
  235. package/dist/{typewriter-Bj9qdc_5.js → typewriter-BZHC-sUN.js} +4 -4
  236. package/dist/{typewriter-Bj9qdc_5.js.map → typewriter-BZHC-sUN.js.map} +1 -1
  237. package/dist/{typewriter-CYLG1mNR.cjs → typewriter-CmlPmEWp.cjs} +2 -2
  238. package/dist/{typewriter-CYLG1mNR.cjs.map → typewriter-CmlPmEWp.cjs.map} +1 -1
  239. package/dist/typewriter.cjs +1 -1
  240. package/dist/typewriter.js +1 -1
  241. package/dist/{typography-BRnX9hbT.js → typography-BZIT81T6.js} +2 -2
  242. package/dist/{typography-BRnX9hbT.js.map → typography-BZIT81T6.js.map} +1 -1
  243. package/dist/{typography-n-wJY4zw.cjs → typography-CMOaUfF9.cjs} +2 -2
  244. package/dist/{typography-n-wJY4zw.cjs.map → typography-CMOaUfF9.cjs.map} +1 -1
  245. package/dist/typography.cjs +1 -1
  246. package/dist/typography.js +1 -1
  247. package/package.json +1 -1
  248. package/types/src/badge/badge.d.ts +2 -0
  249. package/types/src/dialog/dailog.d.ts +5 -4
  250. package/types/src/dialog/dialog-service.d.ts +1 -1
  251. package/dist/avatar-BF6652TX.cjs.map +0 -1
  252. package/dist/avatar-nGtrl569.js.map +0 -1
  253. package/dist/dialog-service-Dp9n-iYw.js.map +0 -1
  254. package/dist/dialog-service-O39dDHTt.cjs +0 -65
  255. package/dist/dialog-service-O39dDHTt.cjs.map +0 -1
  256. package/dist/notification-service-MrCfqWvW.js.map +0 -1
  257. package/dist/notification-service-PbxB-uRp.cjs +0 -124
  258. package/dist/notification-service-PbxB-uRp.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const l=require("lit"),a=require("lit/decorators.js"),n=require("rxjs");require("./animated-text-CkOuJUK9.cjs");const M=require("./area.component-DJpavQee.cjs");require("./autocomplete-BeC5nqSA.cjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const x=require("./tailwind.mixin-C1TWeByU.cjs"),g=require("./ripple-C2BHbhcS.cjs");require("./spinner-DDvtIu98.cjs"),require("./icon-button-Bt-ZY_dS.cjs");const h=require("./theme.interface-Xg5Zi46a.cjs");require("./checkbox-D2rdBv1d.cjs"),require("./chips-SeAzMV_K.cjs"),require("./payment-card-form-BZ8owKyu.cjs");const m=require("./types.cjs"),d=require("./provide-BGGp1Iks.cjs"),b=require("./litElement.mixin-DLa9lBCo.cjs"),p=require("./consume-uKrSupzs.cjs");require("./date-range-B6vemmh0.cjs"),require("./delay-CAcU-vht.cjs"),require("./dialog-service-O39dDHTt.cjs"),require("./divider-fs54fGfB.cjs"),require("./dropdown-content-KHVgwXu2.cjs"),require("./timezone-DRyTNStR.cjs"),require("./form-DJ9KHgsz.cjs"),require("./icon-ByVRi1IP.cjs"),require("./input-5LPv7UUL.cjs"),require("./flex-B_52M97W.cjs"),require("./list-C-r1rTUh.cjs"),require("./menu-EAL2iLY1.cjs");const U=require("lit/directives/when.js");require("./notification-service-PbxB-uRp.cjs"),require("./option-BHrf1jEo.cjs"),require("./radio-group-BeCwdi7V.cjs"),require("./index-DyJ0oDpR.cjs"),require("./select-C6GpEJgA.cjs");const B=require("./sheet-DPkzSrBn.cjs");require("./slider-B0lO6KRr.cjs"),require("./schmancy-steps-container-b2ccybFR.cjs"),require("./context-object-CP7HbDFQ.cjs");const P=require("rxjs/operators");require("./surface-Dl4S5qYM.cjs"),require("./table-nUo4-lAM.cjs"),require("./tabs-group-C2RLxc1l.cjs"),require("./textarea-Cjez0oFA.cjs"),require("./theme.component-iEu6bM2h.cjs"),require("./theme-button-B0wpbNVl.cjs"),require("./tooltip-BsjGf8jh.cjs"),require("./tree-DM5TVX_j.cjs"),require("./typewriter-CYLG1mNR.cjs"),require("./typography-n-wJY4zw.cjs");var F=Object.defineProperty,G=Object.getOwnPropertyDescriptor,w=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?G(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&F(t,s,r),r};exports.SchmancyBadgeV2=class extends x.TailwindElement(l.css`
1
+ "use strict";const l=require("lit"),a=require("lit/decorators.js"),n=require("rxjs");require("./animated-text-BAEi04S6.cjs");const k=require("./area.component-BAaqhl3k.cjs");require("./autocomplete-DErik5Xw.cjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const x=require("./tailwind.mixin-Dg65LrA_.cjs"),g=require("./ripple-C2BHbhcS.cjs");require("./spinner-D9V2GA_A.cjs"),require("./icon-button-D7AWWFQH.cjs");const o=require("./theme.interface-Xg5Zi46a.cjs");require("./checkbox-DI4NuFAx.cjs"),require("./chips-CkgwKojL.cjs"),require("./payment-card-form-D9KX1kSR.cjs");const p=require("./types.cjs"),d=require("./provide-BGGp1Iks.cjs"),b=require("./litElement.mixin-DiwfL0tu.cjs"),m=require("./consume-uKrSupzs.cjs");require("./date-range-YVE-UrJS.cjs"),require("./delay-CH5NYBY7.cjs"),require("./dialog-service-DqApS78r.cjs"),require("./divider-BFD3qlpM.cjs"),require("./dropdown-content-DNNtXu16.cjs"),require("./timezone-BpEReA4Q.cjs"),require("./form-IUb8CPsc.cjs"),require("./icon-D5NFCVL-.cjs"),require("./input-C2w1MOUz.cjs"),require("./flex-B7APKtrH.cjs"),require("./list-BdqnqwJo.cjs"),require("./menu-BcTyOQZD.cjs");const U=require("lit/directives/when.js");require("./notification-service-m4UPhHgL.cjs"),require("./option-Dzesvfvz.cjs"),require("./radio-group-l74bQ1Nl.cjs"),require("./index-DyJ0oDpR.cjs"),require("./select-rBWiHljv.cjs");const B=require("./sheet-DMxlpzAP.cjs");require("./slider-8JuaGGiq.cjs"),require("./schmancy-steps-container-CFnGlw1m.cjs"),require("./context-object-CP7HbDFQ.cjs");const P=require("rxjs/operators");require("./surface-CV4Khong.cjs"),require("./table-cYNDiHTJ.cjs"),require("./tabs-group-CfRiO3NP.cjs"),require("./textarea-6qrdQDUV.cjs"),require("./theme.component-BRozWeb_.cjs"),require("./theme-button-CkmIJuH2.cjs"),require("./tooltip-BOzRGoik.cjs"),require("./tree-PR1A8SwB.cjs"),require("./typewriter-CmlPmEWp.cjs"),require("./typography-CMOaUfF9.cjs");var F=Object.defineProperty,G=Object.getOwnPropertyDescriptor,v=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?G(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&F(t,s,r),r};exports.SchmancyBadgeV2=class extends x.TailwindElement(l.css`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  }
@@ -7,6 +7,8 @@
7
7
  display: flex;
8
8
  align-items: center;
9
9
  line-height: 1;
10
+ letter-spacing: 0.01em;
11
+ font-kerning: normal;
10
12
  }
11
13
 
12
14
  /* Improved vertical alignment for icon and text */
@@ -33,11 +35,40 @@
33
35
  align-items: center;
34
36
  justify-content: center;
35
37
  }
36
- `){constructor(){super(...arguments),this.color="primary",this.size="md",this.shape="pill",this.outlined=!1,this.icon="",this.pulse=!1}getSizeClasses(){switch(this.size){case"xs":return"text-xs py-1 px-1.5 gap-0.5 leading-none";case"sm":return"text-xs py-1.5 px-2 gap-0.5 tracking-wide leading-none";case"lg":return"text-base py-2 px-3 gap-1 tracking-wide";default:return"text-sm py-1.5 px-2.5 gap-0.5"}}getShapeClasses(){switch(this.shape){case"square":return"rounded";case"rounded":return"rounded-md";default:return"rounded-full"}}getIconSize(){switch(this.size){case"xs":return"11px";case"sm":return"13px";case"lg":return"18px";default:return"15px"}}getExoticStyles(){const e={};return this.size==="lg"&&(e.letterSpacing="0.03em",e.fontWeight="500"),this.size==="sm"&&(e.letterSpacing="0.02em"),e}getColorStyles(){return{primary:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.primary.container,text:this.outlined?h.SchmancyTheme.sys.color.primary.default:h.SchmancyTheme.sys.color.primary.onContainer,border:this.outlined?h.SchmancyTheme.sys.color.primary.default:void 0},secondary:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.secondary.container,text:this.outlined?h.SchmancyTheme.sys.color.secondary.default:h.SchmancyTheme.sys.color.secondary.onContainer,border:this.outlined?h.SchmancyTheme.sys.color.secondary.default:void 0},tertiary:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.tertiary.container,text:this.outlined?h.SchmancyTheme.sys.color.tertiary.default:h.SchmancyTheme.sys.color.tertiary.onContainer,border:this.outlined?h.SchmancyTheme.sys.color.tertiary.default:void 0},success:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.success.container,text:this.outlined?h.SchmancyTheme.sys.color.success.default:h.SchmancyTheme.sys.color.success.onContainer,border:this.outlined?h.SchmancyTheme.sys.color.success.default:void 0},warning:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.tertiary.container,text:this.outlined?h.SchmancyTheme.sys.color.tertiary.default:h.SchmancyTheme.sys.color.tertiary.onContainer,border:this.outlined?h.SchmancyTheme.sys.color.tertiary.default:void 0},error:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.error.container,text:this.outlined?h.SchmancyTheme.sys.color.error.default:h.SchmancyTheme.sys.color.error.onContainer,border:this.outlined?h.SchmancyTheme.sys.color.error.default:void 0},neutral:{bg:this.outlined?"transparent":h.SchmancyTheme.sys.color.surface.high,text:(this.outlined,h.SchmancyTheme.sys.color.surface.on),border:this.outlined?h.SchmancyTheme.sys.color.outline:void 0}}[this.color]}render(){const e=this.getSizeClasses(),t=this.getShapeClasses(),s=this.getColorStyles(),i=this.getIconSize(),o=this.getExoticStyles(),r={"inline-flex items-center justify-center font-medium":!0,[e]:!0,[t]:!0,"animate-pulse":this.pulse,"border border-solid":this.outlined,"shadow-sm":!this.outlined&&this.size!=="xs"},c={borderColor:s.border,...o};return l.html`
38
+
39
+ /* Elegant hover effect for better interactivity */
40
+ :host([outlined]) div[part="badge"] {
41
+ transition: all 0.2s ease;
42
+ }
43
+
44
+ :host([outlined]) div[part="badge"]:hover {
45
+ filter: brightness(0.95);
46
+ transform: translateY(-1px);
47
+ }
48
+
49
+ /* Non-outlined badges get subtle hover effects */
50
+ :host(:not([outlined])) div[part="badge"]:hover {
51
+ filter: brightness(0.98);
52
+ }
53
+
54
+ /* Enhanced pulse animation for better attention-getting */
55
+ @keyframes elegant-pulse {
56
+ 0%, 100% {
57
+ opacity: 1;
58
+ }
59
+ 50% {
60
+ opacity: 0.85;
61
+ }
62
+ }
63
+
64
+ .animate-pulse {
65
+ animation: elegant-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
66
+ }
67
+ `){constructor(){super(...arguments),this.color="primary",this.size="md",this.shape="pill",this.outlined=!1,this.icon="",this.pulse=!1}getSizeClasses(){switch(this.size){case"xs":return"text-xs py-0.75 px-1.5 gap-0.5 leading-none";case"sm":return"text-xs py-1.5 px-2.5 gap-0.5 tracking-wide leading-none";case"lg":return"text-base py-2 px-4 gap-1 tracking-wide";default:return"text-sm py-1.5 px-3 gap-0.5"}}getShapeClasses(){switch(this.shape){case"square":return"rounded";case"rounded":return"rounded-md";default:return"rounded-full"}}getIconSize(){switch(this.size){case"xs":return"11px";case"sm":return"13px";case"lg":return"18px";default:return"15px"}}getExoticStyles(){const e={};return this.size==="lg"&&(e.letterSpacing="0.03em",e.fontWeight="500"),this.size==="sm"&&(e.letterSpacing="0.02em"),e}getColorStyles(){return{primary:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.primary.container} 92%, ${o.SchmancyTheme.sys.color.primary.default} 8%)`,text:this.outlined?o.SchmancyTheme.sys.color.primary.default:o.SchmancyTheme.sys.color.primary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.primary.default} 90%, ${o.SchmancyTheme.sys.color.surface.highest} 10%)`:void 0},secondary:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.secondary.container} 95%, ${o.SchmancyTheme.sys.color.secondary.default} 5%)`,text:this.outlined?o.SchmancyTheme.sys.color.secondary.default:o.SchmancyTheme.sys.color.secondary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.secondary.default} 85%, ${o.SchmancyTheme.sys.color.surface.highest} 15%)`:void 0},tertiary:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.container} 94%, ${o.SchmancyTheme.sys.color.tertiary.default} 6%)`,text:this.outlined?o.SchmancyTheme.sys.color.tertiary.default:o.SchmancyTheme.sys.color.tertiary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.default} 88%, ${o.SchmancyTheme.sys.color.surface.highest} 12%)`:void 0},success:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.success.container} 90%, ${o.SchmancyTheme.sys.color.success.default} 10%)`,text:this.outlined?o.SchmancyTheme.sys.color.success.default:o.SchmancyTheme.sys.color.success.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.success.default} 85%, ${o.SchmancyTheme.sys.color.surface.bright} 15%)`:void 0},warning:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.container} 85%, ${o.SchmancyTheme.sys.color.tertiary.default} 15%)`,text:this.outlined?o.SchmancyTheme.sys.color.tertiary.default:o.SchmancyTheme.sys.color.tertiary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.default} 90%, ${o.SchmancyTheme.sys.color.surface.highest} 10%)`:void 0},error:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.error.container} 92%, ${o.SchmancyTheme.sys.color.error.default} 8%)`,text:this.outlined?o.SchmancyTheme.sys.color.error.default:o.SchmancyTheme.sys.color.error.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.error.default} 88%, ${o.SchmancyTheme.sys.color.surface.bright} 12%)`:void 0},neutral:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.surface.high} 95%, ${o.SchmancyTheme.sys.color.outline} 5%)`,text:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.surface.on} 95%, ${o.SchmancyTheme.sys.color.surface.default} 5%)`:o.SchmancyTheme.sys.color.surface.on,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.outline} 85%, ${o.SchmancyTheme.sys.color.surface.highest} 15%)`:void 0}}[this.color]}render(){const e=this.getSizeClasses(),t=this.getShapeClasses(),s=this.getColorStyles(),i=this.getIconSize(),c=this.getExoticStyles(),r={"inline-flex items-center justify-center font-medium":!0,[e]:!0,[t]:!0,"animate-pulse":this.pulse,"border border-solid":this.outlined,"shadow-sm":!this.outlined&&this.size==="sm",shadow:!this.outlined&&this.size==="md","shadow-md":!this.outlined&&this.size==="lg"},h={borderColor:s.border,transition:"all 0.2s ease",...this.outlined?{backdropFilter:"blur(4px)",borderWidth:"1px"}:{},...this.size!=="lg"||this.outlined?{}:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1)"},...c};return l.html`
37
68
  <div
38
69
  part="badge"
39
70
  class="${this.classMap(r)}"
40
- style="${this.styleMap(c)}"
71
+ style="${this.styleMap(h)}"
41
72
  ${g.color({bgColor:s.bg,color:s.text})}
42
73
  >
43
74
  <!-- Icon slot or named icon -->
@@ -54,13 +85,13 @@
54
85
  <slot></slot>
55
86
  </div>
56
87
  </div>
57
- `}},w([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"color",2),w([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"size",2),w([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"shape",2),w([a.property({type:Boolean,reflect:!0})],exports.SchmancyBadgeV2.prototype,"outlined",2),w([a.property({type:String})],exports.SchmancyBadgeV2.prototype,"icon",2),w([a.property({type:Boolean,reflect:!0})],exports.SchmancyBadgeV2.prototype,"pulse",2),exports.SchmancyBadgeV2=w([a.customElement("sch-badge")],exports.SchmancyBadgeV2);var J=Object.getOwnPropertyDescriptor;let V=class extends x.TailwindElement(l.css`
88
+ `}},v([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"color",2),v([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"size",2),v([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"shape",2),v([a.property({type:Boolean,reflect:!0})],exports.SchmancyBadgeV2.prototype,"outlined",2),v([a.property({type:String})],exports.SchmancyBadgeV2.prototype,"icon",2),v([a.property({type:Boolean,reflect:!0})],exports.SchmancyBadgeV2.prototype,"pulse",2),exports.SchmancyBadgeV2=v([a.customElement("sch-badge")],exports.SchmancyBadgeV2);var J=Object.getOwnPropertyDescriptor;let V=class extends x.TailwindElement(l.css`
58
89
  :host {
59
90
  display: block;
60
91
  }
61
- `){render(){return l.html` <section class="pb-4 px-4"><slot> </slot></section> `}};V=((e,t,s,i)=>{for(var o,r=i>1?void 0:i?J(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=o(r)||r);return r})([a.customElement("schmancy-card-action")],V);var Q=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,A=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?Z(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&Q(t,s,r),r};let E=class extends x.TailwindElement(){constructor(){super(...arguments),this.type="elevated",this.elevation=0}render(){const e={"rounded-md":!0,"shadow-xs":this.elevation===1,"shadow-sm":this.elevation===2,"shadow-md":this.elevation===3,"shadow-lg":this.elevation===4,"shadow-5":this.elevation===5,"hover:shadow-xs":["outlined","filled"].includes(this.type),"bg-surface-low shadow-xs hover:shadow-sm":this.type==="elevated","bg-surface-highest":this.type==="filled","bg-surface-default border border-solid border-1 border-outlineVariant":this.type==="outlined"};return l.html`<div class="${this.classMap(e)}">
92
+ `){render(){return l.html` <section class="pb-4 px-4"><slot> </slot></section> `}};V=((e,t,s,i)=>{for(var c,r=i>1?void 0:i?J(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=c(r)||r);return r})([a.customElement("schmancy-card-action")],V);var Q=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,A=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?Z(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&Q(t,s,r),r};let $=class extends x.TailwindElement(){constructor(){super(...arguments),this.type="elevated",this.elevation=0}render(){const e={"rounded-md":!0,"shadow-xs":this.elevation===1,"shadow-sm":this.elevation===2,"shadow-md":this.elevation===3,"shadow-lg":this.elevation===4,"shadow-5":this.elevation===5,"hover:shadow-xs":["outlined","filled"].includes(this.type),"bg-surface-low shadow-xs hover:shadow-sm":this.type==="elevated","bg-surface-highest":this.type==="filled","bg-surface-default border border-solid border-1 border-outlineVariant":this.type==="outlined"};return l.html`<div class="${this.classMap(e)}">
62
93
  <slot> </slot>
63
- </div>`}};A([a.property()],E.prototype,"type",2),A([a.property({type:Number})],E.prototype,"elevation",2),E=A([a.customElement("schmancy-card")],E);var ee=Object.getOwnPropertyDescriptor;let L=class extends x.TailwindElement(){render(){const e=h.SchmancyTheme.sys.color.surface.on,t=h.SchmancyTheme.sys.color.surface.onVariant;return l.html`<schmancy-grid gap="md" class="${this.classMap({"px-[16px] py-[24px]":!0})}">
94
+ </div>`}};A([a.property()],$.prototype,"type",2),A([a.property({type:Number})],$.prototype,"elevation",2),$=A([a.customElement("schmancy-card")],$);var ee=Object.getOwnPropertyDescriptor;let L=class extends x.TailwindElement(){render(){const e=o.SchmancyTheme.sys.color.surface.on,t=o.SchmancyTheme.sys.color.surface.onVariant;return l.html`<schmancy-grid gap="md" class="${this.classMap({"px-[16px] py-[24px]":!0})}">
64
95
  <schmancy-grid gap="xs">
65
96
  <schmancy-typography
66
97
  ${g.color({color:e})}
@@ -80,20 +111,20 @@
80
111
  >
81
112
  <slot></slot>
82
113
  </schmancy-typography>
83
- </schmancy-grid>`}};L=((e,t,s,i)=>{for(var o,r=i>1?void 0:i?ee(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=o(r)||r);return r})([a.customElement("schmancy-card-content")],L);var te=Object.defineProperty,re=Object.getOwnPropertyDescriptor,I=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?re(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&te(t,s,r),r};let T=class extends x.TailwindElement(l.css`
114
+ </schmancy-grid>`}};L=((e,t,s,i)=>{for(var c,r=i>1?void 0:i?ee(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=c(r)||r);return r})([a.customElement("schmancy-card-content")],L);var te=Object.defineProperty,re=Object.getOwnPropertyDescriptor,I=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?re(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&te(t,s,r),r};let E=class extends x.TailwindElement(l.css`
84
115
  :host {
85
116
  display: block;
86
117
  }
87
118
  `){constructor(){super(...arguments),this.src="",this.fit="contain"}render(){const e={"object-center":!0,"object-contain":this.fit==="contain","object-cover w-full":this.fit==="cover","object-fill":this.fit==="fill","object-none":this.fit==="none","object-scale-down":this.fit==="scale-down"};return l.html`<schmancy-grid align="stretch" justify="stretch" gap="md">
88
119
  <img src="${this.src}" style=${this.styleMap({height:"200px"})} class="${this.classMap(e)}" />
89
- </schmancy-grid>`}};I([a.property({type:String,reflect:!0})],T.prototype,"src",2),I([a.property({type:String})],T.prototype,"fit",2),T=I([a.customElement("schmancy-card-media")],T);const se=new class{constructor(){this.$drawer=new n.Subject,this.$drawer.pipe().subscribe(e=>{e.action==="dismiss"?e.ref.dispatchEvent(new CustomEvent(m.SchmancyEvents.ContentDrawerToggle,{detail:{state:"close"},bubbles:!0,composed:!0})):e.action==="render"&&(e.ref.dispatchEvent(new CustomEvent(m.SchmancyEvents.ContentDrawerToggle,{detail:{state:"open"},bubbles:!0,composed:!0})),e.ref.dispatchEvent(new CustomEvent("schmancy-content-drawer-render",{detail:{component:e.component,title:e.title},bubbles:!0,composed:!0})))})}dimiss(e){this.$drawer.next({action:"dismiss",ref:e})}render(e,t,s){e.dispatchEvent(new CustomEvent("custom-event")),this.$drawer.next({action:"render",ref:e,component:t,title:s})}},k=d.n("push"),_=d.n("close"),R=d.n(Math.floor(Math.random()*Date.now()).toString()),N=d.n("100%"),j=d.n({});var ne=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,v=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?ie(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&ne(t,s,r),r};exports.SchmancyContentDrawer=class extends b.$LitElement(l.css`
120
+ </schmancy-grid>`}};I([a.property({type:String,reflect:!0})],E.prototype,"src",2),I([a.property({type:String})],E.prototype,"fit",2),E=I([a.customElement("schmancy-card-media")],E);const se=new class{constructor(){this.$drawer=new n.Subject,this.$drawer.pipe().subscribe(e=>{e.action==="dismiss"?e.ref.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerToggle,{detail:{state:"close"},bubbles:!0,composed:!0})):e.action==="render"&&(e.ref.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerToggle,{detail:{state:"open"},bubbles:!0,composed:!0})),e.ref.dispatchEvent(new CustomEvent("schmancy-content-drawer-render",{detail:{component:e.component,title:e.title},bubbles:!0,composed:!0})))})}dimiss(e){this.$drawer.next({action:"dismiss",ref:e})}render(e,t,s){e.dispatchEvent(new CustomEvent("custom-event")),this.$drawer.next({action:"render",ref:e,component:t,title:s})}},M=d.n("push"),_=d.n("close"),R=d.n(Math.floor(Math.random()*Date.now()).toString()),z=d.n("100%"),N=d.n({});var ne=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,w=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?ie(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ne(t,s,r),r};exports.SchmancyContentDrawer=class extends b.$LitElement(l.css`
90
121
  :host {
91
122
  position: relative;
92
123
  inset: 0;
93
124
  display: block;
94
125
  overflow: hidden;
95
126
  }
96
- `){constructor(){super(...arguments),this.minWidth={main:360,sheet:576},this.schmancyContentDrawerID=Math.floor(Math.random()*Date.now()).toString(),this.maxHeight="100%"}firstUpdated(){n.merge(n.fromEvent(window,"resize"),n.fromEvent(window,m.SchmancyEvents.ContentDrawerResize)).pipe(n.startWith(!0),n.tap(()=>{}),n.map(()=>this.clientWidth?this.clientWidth:window.innerWidth),n.map(e=>e>=this.minWidth.main+this.minWidth.sheet),n.debounceTime(100),n.tap(()=>{this.maxHeight=window.innerHeight-this.getOffsetTop(this)-32+"px",this.style.setProperty("max-height",this.maxHeight)}),n.distinctUntilChanged(),n.takeUntil(this.disconnecting)).subscribe(e=>{e?(this.mode="push",this.open="open"):(this.mode="overlay",this.open="close")}),n.fromEvent(window,m.SchmancyEvents.ContentDrawerToggle).pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail.state),n.takeUntil(this.disconnecting)).subscribe(e=>{this.open=e}),n.fromEvent(window,"schmancy-content-drawer-render").pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail),n.takeUntil(this.disconnecting)).subscribe(({component:e,title:t})=>{this.mode==="push"?(M.area.push({area:this.schmancyContentDrawerID,component:"empty",historyStrategy:"silent"}),M.area.push({area:this.schmancyContentDrawerID,component:e,historyStrategy:"silent"})):(this.mode="overlay")&&B.sheet.open({component:e,uid:this.schmancyContentDrawerID,title:t})})}getOffsetTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}render(){return this.mode&&this.open?l.html`
127
+ `){constructor(){super(...arguments),this.minWidth={main:360,sheet:576},this.schmancyContentDrawerID=Math.floor(Math.random()*Date.now()).toString(),this.maxHeight="100%"}firstUpdated(){n.merge(n.fromEvent(window,"resize"),n.fromEvent(window,p.SchmancyEvents.ContentDrawerResize)).pipe(n.startWith(!0),n.tap(()=>{}),n.map(()=>this.clientWidth?this.clientWidth:window.innerWidth),n.map(e=>e>=this.minWidth.main+this.minWidth.sheet),n.debounceTime(100),n.tap(()=>{this.maxHeight=window.innerHeight-this.getOffsetTop(this)-32+"px",this.style.setProperty("max-height",this.maxHeight)}),n.distinctUntilChanged(),n.takeUntil(this.disconnecting)).subscribe(e=>{e?(this.mode="push",this.open="open"):(this.mode="overlay",this.open="close")}),n.fromEvent(window,p.SchmancyEvents.ContentDrawerToggle).pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail.state),n.takeUntil(this.disconnecting)).subscribe(e=>{this.open=e}),n.fromEvent(window,"schmancy-content-drawer-render").pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail),n.takeUntil(this.disconnecting)).subscribe(({component:e,title:t})=>{this.mode==="push"?(k.area.push({area:this.schmancyContentDrawerID,component:"empty",historyStrategy:"silent"}),k.area.push({area:this.schmancyContentDrawerID,component:e,historyStrategy:"silent"})):(this.mode="overlay")&&B.sheet.open({component:e,uid:this.schmancyContentDrawerID,title:t})})}getOffsetTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}render(){return this.mode&&this.open?l.html`
97
128
  <schmancy-grid
98
129
  cols=${this.mode==="overlay"?"1fr":"auto 1fr"}
99
130
  rows="1fr"
@@ -103,12 +134,12 @@
103
134
  >
104
135
  <slot></slot>
105
136
  </schmancy-grid>
106
- `:l.nothing}},v([d.e({context:j})],exports.SchmancyContentDrawer.prototype,"minWidth",2),v([d.e({context:_}),a.property()],exports.SchmancyContentDrawer.prototype,"open",2),v([d.e({context:k}),a.state()],exports.SchmancyContentDrawer.prototype,"mode",2),v([d.e({context:R})],exports.SchmancyContentDrawer.prototype,"schmancyContentDrawerID",2),v([d.e({context:N})],exports.SchmancyContentDrawer.prototype,"maxHeight",2),v([a.queryAssignedElements({flatten:!0})],exports.SchmancyContentDrawer.prototype,"assignedElements",2),exports.SchmancyContentDrawer=v([a.customElement("schmancy-content-drawer")],exports.SchmancyContentDrawer);var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,D=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?oe(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&ae(t,s,r),r};exports.SchmancyContentDrawerMain=class extends b.$LitElement(l.css`
137
+ `:l.nothing}},w([d.e({context:N})],exports.SchmancyContentDrawer.prototype,"minWidth",2),w([d.e({context:_}),a.property()],exports.SchmancyContentDrawer.prototype,"open",2),w([d.e({context:M}),a.state()],exports.SchmancyContentDrawer.prototype,"mode",2),w([d.e({context:R})],exports.SchmancyContentDrawer.prototype,"schmancyContentDrawerID",2),w([d.e({context:z})],exports.SchmancyContentDrawer.prototype,"maxHeight",2),w([a.queryAssignedElements({flatten:!0})],exports.SchmancyContentDrawer.prototype,"assignedElements",2),exports.SchmancyContentDrawer=w([a.customElement("schmancy-content-drawer")],exports.SchmancyContentDrawer);var oe=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,D=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?ae(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&oe(t,s,r),r};exports.SchmancyContentDrawerMain=class extends b.$LitElement(l.css`
107
138
  :host {
108
139
  display: block;
109
140
  overflow: hidden;
110
141
  }
111
- `){connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.main=this.minWidth:this.minWidth=this.drawerMinWidth.main}update(e){super.update(e),e.has("minWidth")&&this.minWidth&&(this.drawerMinWidth.main=this.minWidth,this.dispatchEvent(new CustomEvent(m.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0})))}render(){const e={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return l.html`
142
+ `){connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.main=this.minWidth:this.minWidth=this.drawerMinWidth.main}update(e){super.update(e),e.has("minWidth")&&this.minWidth&&(this.drawerMinWidth.main=this.minWidth,this.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0})))}render(){const e={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return l.html`
112
143
  <section class="relative inset-0 h-full">
113
144
  <schmancy-grid
114
145
  class="h-full relative overflow-scroll"
@@ -124,17 +155,17 @@
124
155
  </schmancy-grid>
125
156
  ${U.when(this.mode==="push",()=>l.html` <schmancy-divider class="absolute right-0 top-0" orientation="vertical"></schmancy-divider>`)}
126
157
  </section>
127
- `}},D([a.property({type:Number})],exports.SchmancyContentDrawerMain.prototype,"minWidth",2),D([p.c({context:j,subscribe:!0})],exports.SchmancyContentDrawerMain.prototype,"drawerMinWidth",2),D([p.c({context:k,subscribe:!0}),a.state()],exports.SchmancyContentDrawerMain.prototype,"mode",2),D([p.c({context:N,subscribe:!0}),a.state()],exports.SchmancyContentDrawerMain.prototype,"maxHeight",2),exports.SchmancyContentDrawerMain=D([a.customElement("schmancy-content-drawer-main")],exports.SchmancyContentDrawerMain);var ce=Object.defineProperty,he=Object.getOwnPropertyDescriptor,y=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?he(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&ce(t,s,r),r};exports.SchmancyContentDrawerSheet=class extends b.$LitElement(l.css`
158
+ `}},D([a.property({type:Number})],exports.SchmancyContentDrawerMain.prototype,"minWidth",2),D([m.c({context:N,subscribe:!0})],exports.SchmancyContentDrawerMain.prototype,"drawerMinWidth",2),D([m.c({context:M,subscribe:!0}),a.state()],exports.SchmancyContentDrawerMain.prototype,"mode",2),D([m.c({context:z,subscribe:!0}),a.state()],exports.SchmancyContentDrawerMain.prototype,"maxHeight",2),exports.SchmancyContentDrawerMain=D([a.customElement("schmancy-content-drawer-main")],exports.SchmancyContentDrawerMain);var ce=Object.defineProperty,he=Object.getOwnPropertyDescriptor,y=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?he(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ce(t,s,r),r};exports.SchmancyContentDrawerSheet=class extends b.$LitElement(l.css`
128
159
  :host {
129
160
  overflow: scroll;
130
161
  }
131
- `){connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.sheet=this.minWidth:this.minWidth=this.drawerMinWidth.sheet}updated(e){super.updated(e),e.has("minWidth")&&this.minWidth?(this.drawerMinWidth.sheet=this.minWidth,this.dispatchEvent(new CustomEvent(m.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0}))):(e.has("state")||e.has("mode"))&&(this.mode==="overlay"?this.state==="close"?this.closeAll():this.state:this.mode==="push"&&(B.sheet.dismiss(this.schmancyContentDrawerID),this.state==="close"?this.closeAll():this.state==="open"&&this.open()))}open(){this.mode==="overlay"?this.sheet.style.position="fixed":this.sheet.style.position="relative",this.sheet.style.display="block",this.sheet.animate([{opacity:0,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0%)"}],{duration:500,easing:"cubic-bezier(0.5, 0.01, 0.25, 1)"})}closeAll(){n.merge(n.from(this.closeModalSheet()),n.from(this.closeSheet())).pipe(n.takeUntil(this.disconnecting)).subscribe()}closeModalSheet(){return n.of(!0).pipe(n.tap(()=>B.sheet.dismiss(this.schmancyContentDrawerID)))}closeSheet(){return new n.Observable(e=>{this.sheet.animate([{opacity:1,transform:"translateX(0%)"},{opacity:1,transform:"translateX(100%)"}],{duration:500,easing:"cubic-bezier(0.5, 0.01, 0.25, 1)"}).onfinish=()=>{this.sheet.style.display="none",e.next(),e.complete()}})}render(){const e={block:this.mode==="push","absolute z-50":this.mode==="overlay","opacity-1":this.mode==="overlay"&&this.state==="open"},t={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return l.html`
162
+ `){connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.sheet=this.minWidth:this.minWidth=this.drawerMinWidth.sheet}updated(e){super.updated(e),e.has("minWidth")&&this.minWidth?(this.drawerMinWidth.sheet=this.minWidth,this.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0}))):(e.has("state")||e.has("mode"))&&(this.mode==="overlay"?this.state==="close"?this.closeAll():this.state:this.mode==="push"&&(B.sheet.dismiss(this.schmancyContentDrawerID),this.state==="close"?this.closeAll():this.state==="open"&&this.open()))}open(){this.mode==="overlay"?this.sheet.style.position="fixed":this.sheet.style.position="relative",this.sheet.style.display="block",this.sheet.animate([{opacity:0,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0%)"}],{duration:500,easing:"cubic-bezier(0.5, 0.01, 0.25, 1)"})}closeAll(){n.merge(n.from(this.closeModalSheet()),n.from(this.closeSheet())).pipe(n.takeUntil(this.disconnecting)).subscribe()}closeModalSheet(){return n.of(!0).pipe(n.tap(()=>B.sheet.dismiss(this.schmancyContentDrawerID)))}closeSheet(){return new n.Observable(e=>{this.sheet.animate([{opacity:1,transform:"translateX(0%)"},{opacity:1,transform:"translateX(100%)"}],{duration:500,easing:"cubic-bezier(0.5, 0.01, 0.25, 1)"}).onfinish=()=>{this.sheet.style.display="none",e.next(),e.complete()}})}render(){const e={block:this.mode==="push","absolute z-50":this.mode==="overlay","opacity-1":this.mode==="overlay"&&this.state==="open"},t={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return l.html`
132
163
  <section id="sheet" class="${this.classMap(e)}" style=${this.styleMap(t)}>
133
164
  <schmancy-area name="${this.schmancyContentDrawerID}">
134
165
  <slot name="placeholder"></slot>
135
166
  </schmancy-area>
136
167
  </section>
137
- `}},y([a.property({type:Number})],exports.SchmancyContentDrawerSheet.prototype,"minWidth",2),y([p.c({context:k,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"mode",2),y([p.c({context:_,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"state",2),y([p.c({context:R})],exports.SchmancyContentDrawerSheet.prototype,"schmancyContentDrawerID",2),y([a.query("#sheet")],exports.SchmancyContentDrawerSheet.prototype,"sheet",2),y([a.queryAssignedElements({flatten:!0,slot:void 0})],exports.SchmancyContentDrawerSheet.prototype,"defaultSlot",2),y([p.c({context:j,subscribe:!0})],exports.SchmancyContentDrawerSheet.prototype,"drawerMinWidth",2),y([p.c({context:N,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"maxHeight",2),exports.SchmancyContentDrawerSheet=y([a.customElement("schmancy-content-drawer-sheet")],exports.SchmancyContentDrawerSheet);const Y=new class{constructor(){this.$drawer=new n.Subject,this.$drawer.pipe(n.debounceTime(10)).subscribe(e=>{e.state?window.dispatchEvent(new CustomEvent(m.SchmancyEvents.NavDrawer_toggle,{detail:{state:"open"},bubbles:!0,composed:!0})):window.dispatchEvent(new CustomEvent(m.SchmancyEvents.NavDrawer_toggle,{detail:{state:"close"},bubbles:!0,composed:!0}))})}open(e){this.$drawer.next({self:e,state:!0})}close(e){this.$drawer.next({self:e,state:!1})}},le=Y,z=d.n("push"),W=d.n("close");var de=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,$=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?pe(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&de(t,s,r),r};exports.SchmancyDrawerAppbar=class extends x.TailwindElement(l.css`
168
+ `}},y([a.property({type:Number})],exports.SchmancyContentDrawerSheet.prototype,"minWidth",2),y([m.c({context:M,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"mode",2),y([m.c({context:_,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"state",2),y([m.c({context:R})],exports.SchmancyContentDrawerSheet.prototype,"schmancyContentDrawerID",2),y([a.query("#sheet")],exports.SchmancyContentDrawerSheet.prototype,"sheet",2),y([a.queryAssignedElements({flatten:!0,slot:void 0})],exports.SchmancyContentDrawerSheet.prototype,"defaultSlot",2),y([m.c({context:N,subscribe:!0})],exports.SchmancyContentDrawerSheet.prototype,"drawerMinWidth",2),y([m.c({context:z,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"maxHeight",2),exports.SchmancyContentDrawerSheet=y([a.customElement("schmancy-content-drawer-sheet")],exports.SchmancyContentDrawerSheet);const Y=new class{constructor(){this.$drawer=new n.Subject,this.$drawer.pipe(n.debounceTime(10)).subscribe(e=>{e.state?window.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:"open"},bubbles:!0,composed:!0})):window.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:"close"},bubbles:!0,composed:!0}))})}open(e){this.$drawer.next({self:e,state:!0})}close(e){this.$drawer.next({self:e,state:!1})}},le=Y,j=d.n("push"),W=d.n("close");var de=Object.defineProperty,me=Object.getOwnPropertyDescriptor,T=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?me(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&de(t,s,r),r};exports.SchmancyDrawerAppbar=class extends x.TailwindElement(l.css`
138
169
  :host {
139
170
  display: block;
140
171
  }
@@ -149,7 +180,7 @@
149
180
  ${U.when(this.sidebarMode==="overlay"&&this.toggler,()=>l.html`<slot name="toggler">
150
181
  <div class="${this.classMap(e)}">
151
182
  <schmancy-icon-button
152
- @click=${()=>{this.dispatchEvent(new CustomEvent(m.SchmancyEvents.NavDrawer_toggle,{detail:{state:this.sidebarOpen==="open"?"close":"open"},bubbles:!0,composed:!0}))}}
183
+ @click=${()=>{this.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:this.sidebarOpen==="open"?"close":"open"},bubbles:!0,composed:!0}))}}
153
184
  >
154
185
  ${U.when(this.sidebarOpen==="close",()=>l.html`menu`,()=>l.html`menu_open`)}
155
186
  </schmancy-icon-button>
@@ -158,14 +189,14 @@
158
189
 
159
190
  <slot> </slot>
160
191
  </schmancy-grid>
161
- `}},$([p.c({context:z,subscribe:!0}),a.state()],exports.SchmancyDrawerAppbar.prototype,"sidebarMode",2),$([p.c({context:W,subscribe:!0}),a.state()],exports.SchmancyDrawerAppbar.prototype,"sidebarOpen",2),$([a.property({type:Boolean})],exports.SchmancyDrawerAppbar.prototype,"toggler",2),exports.SchmancyDrawerAppbar=$([a.customElement("schmancy-nav-drawer-appbar")],exports.SchmancyDrawerAppbar);var me=Object.getOwnPropertyDescriptor;exports.SchmancyNavigationDrawerContent=class extends b.$LitElement(l.css`
192
+ `}},T([m.c({context:j,subscribe:!0}),a.state()],exports.SchmancyDrawerAppbar.prototype,"sidebarMode",2),T([m.c({context:W,subscribe:!0}),a.state()],exports.SchmancyDrawerAppbar.prototype,"sidebarOpen",2),T([a.property({type:Boolean})],exports.SchmancyDrawerAppbar.prototype,"toggler",2),exports.SchmancyDrawerAppbar=T([a.customElement("schmancy-nav-drawer-appbar")],exports.SchmancyDrawerAppbar);var pe=Object.getOwnPropertyDescriptor;exports.SchmancyNavigationDrawerContent=class extends b.$LitElement(l.css`
162
193
  :host {
163
194
  display: block;
164
195
  position: relative;
165
196
  inset: 0;
166
197
  overflow-y: auto;
167
198
  }
168
- `){connectedCallback(){super.connectedCallback(),n.fromEvent(this,"scroll").pipe(n.takeUntil(this.disconnecting)).subscribe(e=>{this.parentElement.dispatchEvent(new CustomEvent("scroll",{detail:e,bubbles:!0,composed:!0}))})}render(){return l.html` <slot></slot> `}},exports.SchmancyNavigationDrawerContent=((e,t,s,i)=>{for(var o,r=i>1?void 0:i?me(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=o(r)||r);return r})([a.customElement("schmancy-nav-drawer-content")],exports.SchmancyNavigationDrawerContent);var ye=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,S=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?ue(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&ye(t,s,r),r};exports.SchmancyNavigationDrawer=class extends b.$LitElement(l.css`
199
+ `){connectedCallback(){super.connectedCallback(),n.fromEvent(this,"scroll").pipe(n.takeUntil(this.disconnecting)).subscribe(e=>{this.parentElement.dispatchEvent(new CustomEvent("scroll",{detail:e,bubbles:!0,composed:!0}))})}render(){return l.html` <slot></slot> `}},exports.SchmancyNavigationDrawerContent=((e,t,s,i)=>{for(var c,r=i>1?void 0:i?pe(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=c(r)||r);return r})([a.customElement("schmancy-nav-drawer-content")],exports.SchmancyNavigationDrawerContent);var ye=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,S=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?ue(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ye(t,s,r),r};exports.SchmancyNavigationDrawer=class extends b.$LitElement(l.css`
169
200
  :host {
170
201
  display: flex;
171
202
  flex-grow: 1;
@@ -177,7 +208,7 @@
177
208
  :host([data-ready]) {
178
209
  visibility: visible;
179
210
  }
180
- `){constructor(){super(...arguments),this.fullscreen=!1,this.breakpoint="md",this._initialized=!1}firstUpdated(){this.updateState(window.innerWidth),this._initialized=!0,this.setAttribute("data-ready",""),n.fromEvent(window,"resize").pipe(n.map(e=>e.target.innerWidth),n.map(e=>e>=exports.SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint]),n.distinctUntilChanged(),n.debounceTime(100),n.takeUntil(this.disconnecting)).subscribe(e=>{e?(this.mode="push",this.open="open"):(this.mode="overlay",this.open="close")}),n.fromEvent(window,m.SchmancyEvents.NavDrawer_toggle).pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail.state),n.distinctUntilChanged(),n.takeUntil(this.disconnecting),n.debounceTime(10)).subscribe(e=>{this.mode==="push"&&e==="close"||(this.open=e)})}updateState(e){const t=e>=exports.SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint];this.mode=t?"push":"overlay",this.open=t?"open":"close"}render(){return this._initialized?l.html`
211
+ `){constructor(){super(...arguments),this.fullscreen=!1,this.breakpoint="md",this._initialized=!1}firstUpdated(){this.updateState(window.innerWidth),this._initialized=!0,this.setAttribute("data-ready",""),n.fromEvent(window,"resize").pipe(n.map(e=>e.target.innerWidth),n.map(e=>e>=exports.SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint]),n.distinctUntilChanged(),n.debounceTime(100),n.takeUntil(this.disconnecting)).subscribe(e=>{e?(this.mode="push",this.open="open"):(this.mode="overlay",this.open="close")}),n.fromEvent(window,p.SchmancyEvents.NavDrawer_toggle).pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail.state),n.distinctUntilChanged(),n.takeUntil(this.disconnecting),n.debounceTime(10)).subscribe(e=>{this.mode==="push"&&e==="close"||(this.open=e)})}updateState(e){const t=e>=exports.SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint];this.mode=t?"push":"overlay",this.open=t?"open":"close"}render(){return this._initialized?l.html`
181
212
  <schmancy-grid
182
213
  cols=${this.fullscreen?"1fr":"auto 1fr"}
183
214
  rows="1fr"
@@ -188,25 +219,25 @@
188
219
  >
189
220
  <slot></slot>
190
221
  </schmancy-grid>
191
- `:l.nothing}},exports.SchmancyNavigationDrawer.BREAKPOINTS={sm:640,md:768,lg:1024,xl:1280},S([a.property({type:Boolean})],exports.SchmancyNavigationDrawer.prototype,"fullscreen",2),S([a.property({type:String,attribute:"breakpoint"})],exports.SchmancyNavigationDrawer.prototype,"breakpoint",2),S([d.e({context:z}),a.state()],exports.SchmancyNavigationDrawer.prototype,"mode",2),S([d.e({context:W}),a.property()],exports.SchmancyNavigationDrawer.prototype,"open",2),S([a.state()],exports.SchmancyNavigationDrawer.prototype,"_initialized",2),exports.SchmancyNavigationDrawer=S([a.customElement("schmancy-nav-drawer")],exports.SchmancyNavigationDrawer);var ge=Object.defineProperty,be=Object.getOwnPropertyDescriptor,f=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?be(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&ge(t,s,r),r};const q="cubic-bezier(0.5, 0.01, 0.25, 1)";exports.SchmancyNavigationDrawerSidebar=class extends b.$LitElement(){constructor(){super(...arguments),this.width="320px",this._initialized=!1}firstUpdated(){this.mode==="overlay"?this.drawerState==="close"?(this.nav.style.transform="translateX(-100%)",this.overlay.style.display="none"):this.drawerState==="open"&&(this.nav.style.transform="translateX(0)",this.overlay.style.display="block",this.overlay.style.opacity="0.4"):this.mode==="push"&&(this.nav.style.transform="translateX(0)",this.overlay.style.display="none"),this._initialized=!0}updated(e){this._initialized&&(e.has("drawerState")||e.has("mode"))&&(this.mode==="overlay"?this.drawerState==="open"?this.nav.style.transform!=="translateX(0)"&&(this.openOverlay(),this.showNavDrawer()):this.drawerState==="close"&&this.nav.style.transform!=="translateX(-100%)"&&(this.hideNavDrawer(),this.closeOverlay()):this.mode==="push"&&(this.nav.style.transform!=="translateX(0)"&&this.showNavDrawer(),this.overlay.style.display!=="none"&&this.closeOverlay()))}openOverlay(){this.overlay.style.display="block",this.overlay.animate([{opacity:0},{opacity:.4}],{duration:200,easing:q,fill:"forwards"})}closeOverlay(){this.overlay.animate([{opacity:.4},{opacity:0}],{duration:150,easing:q,fill:"forwards"}).onfinish=()=>{this.overlay.style.display="none"}}showNavDrawer(){this.nav.animate([{transform:"translateX(-100%)"},{transform:"translateX(0)"}],{duration:200,easing:q,fill:"forwards"}).onfinish=()=>{this.nav.style.transform="translateX(0)"}}hideNavDrawer(){this.nav.animate([{transform:"translateX(0)"},{transform:"translateX(-100%)"}],{duration:200,easing:q,fill:"forwards"}).onfinish=()=>{this.nav.style.transform="translateX(-100%)"}}handleOverlayClick(){window.dispatchEvent(new CustomEvent(m.SchmancyEvents.NavDrawer_toggle,{detail:{state:"close"},bubbles:!0,composed:!0}))}render(){const e={"p-[16px] max-w-[360px] w-fit h-full overflow-auto":!0,block:this.mode==="push","fixed inset-0 z-50":this.mode==="overlay"},t={width:this.width};return l.html`
222
+ `:l.nothing}},exports.SchmancyNavigationDrawer.BREAKPOINTS={sm:640,md:768,lg:1024,xl:1280},S([a.property({type:Boolean})],exports.SchmancyNavigationDrawer.prototype,"fullscreen",2),S([a.property({type:String,attribute:"breakpoint"})],exports.SchmancyNavigationDrawer.prototype,"breakpoint",2),S([d.e({context:j}),a.state()],exports.SchmancyNavigationDrawer.prototype,"mode",2),S([d.e({context:W}),a.property()],exports.SchmancyNavigationDrawer.prototype,"open",2),S([a.state()],exports.SchmancyNavigationDrawer.prototype,"_initialized",2),exports.SchmancyNavigationDrawer=S([a.customElement("schmancy-nav-drawer")],exports.SchmancyNavigationDrawer);var ge=Object.defineProperty,be=Object.getOwnPropertyDescriptor,f=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?be(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ge(t,s,r),r};const q="cubic-bezier(0.5, 0.01, 0.25, 1)";exports.SchmancyNavigationDrawerSidebar=class extends b.$LitElement(){constructor(){super(...arguments),this.width="320px",this._initialized=!1}firstUpdated(){this.mode==="overlay"?this.drawerState==="close"?(this.nav.style.transform="translateX(-100%)",this.overlay.style.display="none"):this.drawerState==="open"&&(this.nav.style.transform="translateX(0)",this.overlay.style.display="block",this.overlay.style.opacity="0.4"):this.mode==="push"&&(this.nav.style.transform="translateX(0)",this.overlay.style.display="none"),this._initialized=!0}updated(e){this._initialized&&(e.has("drawerState")||e.has("mode"))&&(this.mode==="overlay"?this.drawerState==="open"?this.nav.style.transform!=="translateX(0)"&&(this.openOverlay(),this.showNavDrawer()):this.drawerState==="close"&&this.nav.style.transform!=="translateX(-100%)"&&(this.hideNavDrawer(),this.closeOverlay()):this.mode==="push"&&(this.nav.style.transform!=="translateX(0)"&&this.showNavDrawer(),this.overlay.style.display!=="none"&&this.closeOverlay()))}openOverlay(){this.overlay.style.display="block",this.overlay.animate([{opacity:0},{opacity:.4}],{duration:200,easing:q,fill:"forwards"})}closeOverlay(){this.overlay.animate([{opacity:.4},{opacity:0}],{duration:150,easing:q,fill:"forwards"}).onfinish=()=>{this.overlay.style.display="none"}}showNavDrawer(){this.nav.animate([{transform:"translateX(-100%)"},{transform:"translateX(0)"}],{duration:200,easing:q,fill:"forwards"}).onfinish=()=>{this.nav.style.transform="translateX(0)"}}hideNavDrawer(){this.nav.animate([{transform:"translateX(0)"},{transform:"translateX(-100%)"}],{duration:200,easing:q,fill:"forwards"}).onfinish=()=>{this.nav.style.transform="translateX(-100%)"}}handleOverlayClick(){window.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:"close"},bubbles:!0,composed:!0}))}render(){const e={"p-[16px] max-w-[360px] w-fit h-full overflow-auto":!0,block:this.mode==="push","fixed inset-0 z-50":this.mode==="overlay"},t={width:this.width};return l.html`
192
223
  <nav
193
224
  style=${this.styleMap(t)}
194
225
  class="${this.classMap({...e})}"
195
- ${g.color({bgColor:h.SchmancyTheme.sys.color.surface.container})}
226
+ ${g.color({bgColor:o.SchmancyTheme.sys.color.surface.container})}
196
227
  >
197
228
  <slot></slot>
198
229
  </nav>
199
230
  <div
200
231
  id="overlay"
201
- ${g.color({bgColor:h.SchmancyTheme.sys.color.scrim})}
232
+ ${g.color({bgColor:o.SchmancyTheme.sys.color.scrim})}
202
233
  @click=${this.handleOverlayClick}
203
234
  class="${this.classMap({"fixed inset-0 z-49 hidden":!0})}"
204
235
  ></div>
205
- `}},f([p.c({context:z,subscribe:!0}),a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"mode",2),f([p.c({context:W,subscribe:!0}),a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"drawerState",2),f([a.query("#overlay")],exports.SchmancyNavigationDrawerSidebar.prototype,"overlay",2),f([a.query("nav")],exports.SchmancyNavigationDrawerSidebar.prototype,"nav",2),f([a.property({type:String})],exports.SchmancyNavigationDrawerSidebar.prototype,"width",2),f([a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"_initialized",2),exports.SchmancyNavigationDrawerSidebar=f([a.customElement("schmancy-nav-drawer-navbar")],exports.SchmancyNavigationDrawerSidebar);const X="whereAreYouRicky",H="hereMorty",C=new class{constructor(){this.activeTeleportations=new Map,this.flipRequests=new n.Subject,this.find=e=>n.zip([n.fromEvent(window,H).pipe(n.filter(t=>!!t.detail.component.uuid&&!!e.id&&t.detail.component.id===e.id&&t.detail.component.uuid!==e.uuid),n.map(t=>t.detail.component),n.take(1)),n.of(e).pipe(n.tap(()=>{window.dispatchEvent(new CustomEvent(X,{detail:{id:e.id,callerID:e.uuid}}))}))]).pipe(n.map(([t])=>t),n.timeout(0)),this.flip=e=>{const{from:t,to:s}=e,i=s.element.style.zIndex;s.element.style.transformOrigin="top left",s.element.style.setProperty("visibility","visible"),s.element.style.zIndex="1000";const o=[{transform:`translate(${t.rect.left-s.rect.left}px, ${t.rect.top-s.rect.top}px) scale(${t.rect.width/s.rect.width}, ${t.rect.height/s.rect.height})`},{transform:"translate(0, 0) scale(1, 1)"}];s.element.animate(o,{duration:250,delay:10,easing:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"}).onfinish=()=>{s.element.style.zIndex=i,s.element.style.transformOrigin=""}},this.flipRequests.pipe(n.bufferTime(1),n.map(e=>e.map(({from:t,to:s,host:i},o)=>({from:t,to:s,host:i,i:o}))),n.concatMap(e=>n.zip(e.map(t=>n.of(this.flip(t)))))).subscribe()}};function K(e){return n.interval(50).pipe(P.map(()=>e.getBoundingClientRect()),P.distinctUntilChanged((t,s)=>t.width===s.width&&t.height===s.height&&t.top===s.top&&t.right===s.right&&t.bottom===s.bottom&&t.left===s.left),P.take(1))}var we=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,O=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?ve(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&we(t,s,r),r};exports.SchmancyTeleportation=class extends b.$LitElement(l.css``){constructor(){super(...arguments),this.uuid=Math.floor(Math.random()*Date.now()),this.delay=0,this.debugging=!1}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}connectedCallback(){if(this.id===void 0)throw new Error("id is required");super.connectedCallback(),n.merge(n.fromEvent(window,M.FINDING_MORTIES).pipe(n.tap({next:()=>{this.dispatchEvent(new CustomEvent(M.HERE_RICKY,{detail:{component:this},bubbles:!0,composed:!0}))}})),n.fromEvent(window,X).pipe(n.tap({next:e=>{e.detail.id===this.id&&this.uuid&&e.detail.callerID!==this.uuid&&this.dispatchEvent(new CustomEvent(H,{detail:{component:this},bubbles:!0,composed:!0}))}}))).pipe(n.takeUntil(this.disconnecting)).subscribe()}async firstUpdated(){n.of(C.activeTeleportations.get(this.id)).pipe(n.filter(e=>!!e),n.takeUntil(this.disconnecting),n.throwIfEmpty()).subscribe({next:e=>{this.style.setProperty("visibility","hidden"),K(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:t=>{C.activeTeleportations.set(this.id,t),C.flipRequests.next({from:{rect:e},to:{rect:t,element:this._slottedChildren[0]},host:this})}})},error:()=>{this.style.setProperty("visibility","visible"),K(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:e=>{C.activeTeleportations.set(this.id,e)}})},complete:()=>{}})}render(){return l.html`<slot></slot>`}},O([a.property({type:Number,reflect:!0})],exports.SchmancyTeleportation.prototype,"uuid",2),O([a.property({type:String})],exports.SchmancyTeleportation.prototype,"id",2),O([a.property({type:Number})],exports.SchmancyTeleportation.prototype,"delay",2),exports.SchmancyTeleportation=O([a.customElement("schmancy-teleport")],exports.SchmancyTeleportation);var fe=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,u=(e,t,s,i)=>{for(var o,r=i>1?void 0:i?Se(t,s):t,c=e.length-1;c>=0;c--)(o=e[c])&&(r=(i?o(t,s,r):o(r))||r);return i&&r&&fe(t,s,r),r};exports.SchmancyAvatar=class extends b.$LitElement(){constructor(){super(...arguments),this.initials="",this.src="",this.icon="",this.size="md",this.color="primary",this.shape="circle",this.bordered=!1,this.status="none"}render(){let e;e=this.src?l.html`<img class="w-full h-full object-cover" src="${this.src}" alt="Avatar" />`:this.initials?l.html`<span class="text-center font-medium">${this.initials.substring(0,2).toUpperCase()}</span>`:this.icon?l.html`<schmancy-icon>${this.icon}</schmancy-icon>`:l.html`<schmancy-icon>person</schmancy-icon>`;const t={"relative flex items-center justify-center overflow-hidden":!0,[{xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-16 h-16 text-xl"}[this.size]]:!0,[{circle:"rounded-full",square:"rounded-md"}[this.shape]]:!0,"border-2 border-surface-container":this.bordered},s=this.getColorAttributes();return l.html`
236
+ `}},f([m.c({context:j,subscribe:!0}),a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"mode",2),f([m.c({context:W,subscribe:!0}),a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"drawerState",2),f([a.query("#overlay")],exports.SchmancyNavigationDrawerSidebar.prototype,"overlay",2),f([a.query("nav")],exports.SchmancyNavigationDrawerSidebar.prototype,"nav",2),f([a.property({type:String})],exports.SchmancyNavigationDrawerSidebar.prototype,"width",2),f([a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"_initialized",2),exports.SchmancyNavigationDrawerSidebar=f([a.customElement("schmancy-nav-drawer-navbar")],exports.SchmancyNavigationDrawerSidebar);const X="whereAreYouRicky",H="hereMorty",C=new class{constructor(){this.activeTeleportations=new Map,this.flipRequests=new n.Subject,this.find=e=>n.zip([n.fromEvent(window,H).pipe(n.filter(t=>!!t.detail.component.uuid&&!!e.id&&t.detail.component.id===e.id&&t.detail.component.uuid!==e.uuid),n.map(t=>t.detail.component),n.take(1)),n.of(e).pipe(n.tap(()=>{window.dispatchEvent(new CustomEvent(X,{detail:{id:e.id,callerID:e.uuid}}))}))]).pipe(n.map(([t])=>t),n.timeout(0)),this.flip=e=>{const{from:t,to:s}=e,i=s.element.style.zIndex;s.element.style.transformOrigin="top left",s.element.style.setProperty("visibility","visible"),s.element.style.zIndex="1000";const c=[{transform:`translate(${t.rect.left-s.rect.left}px, ${t.rect.top-s.rect.top}px) scale(${t.rect.width/s.rect.width}, ${t.rect.height/s.rect.height})`},{transform:"translate(0, 0) scale(1, 1)"}];s.element.animate(c,{duration:250,delay:10,easing:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"}).onfinish=()=>{s.element.style.zIndex=i,s.element.style.transformOrigin=""}},this.flipRequests.pipe(n.bufferTime(1),n.map(e=>e.map(({from:t,to:s,host:i},c)=>({from:t,to:s,host:i,i:c}))),n.concatMap(e=>n.zip(e.map(t=>n.of(this.flip(t)))))).subscribe()}};function K(e){return n.interval(50).pipe(P.map(()=>e.getBoundingClientRect()),P.distinctUntilChanged((t,s)=>t.width===s.width&&t.height===s.height&&t.top===s.top&&t.right===s.right&&t.bottom===s.bottom&&t.left===s.left),P.take(1))}var ve=Object.defineProperty,we=Object.getOwnPropertyDescriptor,O=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?we(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ve(t,s,r),r};exports.SchmancyTeleportation=class extends b.$LitElement(l.css``){constructor(){super(...arguments),this.uuid=Math.floor(Math.random()*Date.now()),this.delay=0,this.debugging=!1}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}connectedCallback(){if(this.id===void 0)throw new Error("id is required");super.connectedCallback(),n.merge(n.fromEvent(window,k.FINDING_MORTIES).pipe(n.tap({next:()=>{this.dispatchEvent(new CustomEvent(k.HERE_RICKY,{detail:{component:this},bubbles:!0,composed:!0}))}})),n.fromEvent(window,X).pipe(n.tap({next:e=>{e.detail.id===this.id&&this.uuid&&e.detail.callerID!==this.uuid&&this.dispatchEvent(new CustomEvent(H,{detail:{component:this},bubbles:!0,composed:!0}))}}))).pipe(n.takeUntil(this.disconnecting)).subscribe()}async firstUpdated(){n.of(C.activeTeleportations.get(this.id)).pipe(n.filter(e=>!!e),n.takeUntil(this.disconnecting),n.throwIfEmpty()).subscribe({next:e=>{this.style.setProperty("visibility","hidden"),K(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:t=>{C.activeTeleportations.set(this.id,t),C.flipRequests.next({from:{rect:e},to:{rect:t,element:this._slottedChildren[0]},host:this})}})},error:()=>{this.style.setProperty("visibility","visible"),K(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:e=>{C.activeTeleportations.set(this.id,e)}})},complete:()=>{}})}render(){return l.html`<slot></slot>`}},O([a.property({type:Number,reflect:!0})],exports.SchmancyTeleportation.prototype,"uuid",2),O([a.property({type:String})],exports.SchmancyTeleportation.prototype,"id",2),O([a.property({type:Number})],exports.SchmancyTeleportation.prototype,"delay",2),exports.SchmancyTeleportation=O([a.customElement("schmancy-teleport")],exports.SchmancyTeleportation);var fe=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,u=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?Se(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&fe(t,s,r),r};exports.SchmancyAvatar=class extends b.$LitElement(){constructor(){super(...arguments),this.initials="",this.src="",this.icon="",this.size="md",this.color="primary",this.shape="circle",this.bordered=!1,this.status="none"}render(){let e;e=this.src?l.html`<img class="w-full h-full object-cover" src="${this.src}" alt="Avatar" />`:this.initials?l.html`<span class="text-center font-medium">${this.initials.substring(0,2).toUpperCase()}</span>`:this.icon?l.html`<schmancy-icon>${this.icon}</schmancy-icon>`:l.html`<schmancy-icon>person</schmancy-icon>`;const t={"relative flex items-center justify-center overflow-hidden":!0,[{xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-16 h-16 text-xl"}[this.size]]:!0,[{circle:"rounded-full",square:"rounded-md"}[this.shape]]:!0,"border-2 border-surface-container":this.bordered},s=this.getColorAttributes();return l.html`
206
237
  <div class="${this.classMap(t)}" ${s}>
207
238
  ${e} ${this.status!=="none"?this.renderStatusIndicator():""}
208
239
  </div>
209
- `}getColorAttributes(){const e={primary:{bgColor:h.SchmancyTheme.sys.color.primary.container,color:h.SchmancyTheme.sys.color.primary.onContainer},secondary:{bgColor:h.SchmancyTheme.sys.color.secondary.container,color:h.SchmancyTheme.sys.color.secondary.onContainer},tertiary:{bgColor:h.SchmancyTheme.sys.color.tertiary.container,color:h.SchmancyTheme.sys.color.tertiary.onContainer},success:{bgColor:h.SchmancyTheme.sys.color.success.container,color:h.SchmancyTheme.sys.color.success.onContainer},error:{bgColor:h.SchmancyTheme.sys.color.error.container,color:h.SchmancyTheme.sys.color.error.onContainer},neutral:{bgColor:h.SchmancyTheme.sys.color.surface.container,color:h.SchmancyTheme.sys.color.surface.on}};return g.color(e[this.color])}renderStatusIndicator(){const e={online:h.SchmancyTheme.sys.color.success.default,offline:h.SchmancyTheme.sys.color.surface.onVariant,busy:h.SchmancyTheme.sys.color.error.default,away:h.SchmancyTheme.sys.color.tertiary.default},t={"absolute bottom-0 right-0 rounded-full border-2 border-surface-default":!0,[{xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3",xl:"w-4 h-4"}[this.size]]:!0};return l.html`
240
+ `}getColorAttributes(){const e={primary:{bgColor:o.SchmancyTheme.sys.color.primary.container,color:o.SchmancyTheme.sys.color.primary.onContainer},secondary:{bgColor:o.SchmancyTheme.sys.color.secondary.container,color:o.SchmancyTheme.sys.color.secondary.onContainer},tertiary:{bgColor:o.SchmancyTheme.sys.color.tertiary.container,color:o.SchmancyTheme.sys.color.tertiary.onContainer},success:{bgColor:o.SchmancyTheme.sys.color.success.container,color:o.SchmancyTheme.sys.color.success.onContainer},error:{bgColor:o.SchmancyTheme.sys.color.error.container,color:o.SchmancyTheme.sys.color.error.onContainer},neutral:{bgColor:o.SchmancyTheme.sys.color.surface.container,color:o.SchmancyTheme.sys.color.surface.on}};return g.color(e[this.color])}renderStatusIndicator(){const e={online:o.SchmancyTheme.sys.color.success.default,offline:o.SchmancyTheme.sys.color.surface.onVariant,busy:o.SchmancyTheme.sys.color.error.default,away:o.SchmancyTheme.sys.color.tertiary.default},t={"absolute bottom-0 right-0 rounded-full border-2 border-surface-default":!0,[{xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3",xl:"w-4 h-4"}[this.size]]:!0};return l.html`
210
241
  <div class="${this.classMap(t)}" style="background-color: ${e[this.status]};"></div>
211
- `}},u([a.property({type:String})],exports.SchmancyAvatar.prototype,"initials",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"src",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"icon",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"size",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"color",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"shape",2),u([a.property({type:Boolean})],exports.SchmancyAvatar.prototype,"bordered",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"status",2),exports.SchmancyAvatar=u([a.customElement("schmancy-avatar")],exports.SchmancyAvatar),exports.$drawer=le,exports.HereMorty=H,exports.SchmancyContentDrawerID=R,exports.SchmancyContentDrawerMaxHeight=N,exports.SchmancyContentDrawerMinWidth=j,exports.SchmancyContentDrawerSheetMode=k,exports.SchmancyContentDrawerSheetState=_,exports.SchmancyDrawerNavbarMode=z,exports.SchmancyDrawerNavbarState=W,exports.WhereAreYouRicky=X,exports.schmancyContentDrawer=se,exports.schmancyNavDrawer=Y,exports.teleport=C;
212
- //# sourceMappingURL=avatar-BF6652TX.cjs.map
242
+ `}},u([a.property({type:String})],exports.SchmancyAvatar.prototype,"initials",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"src",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"icon",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"size",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"color",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"shape",2),u([a.property({type:Boolean})],exports.SchmancyAvatar.prototype,"bordered",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"status",2),exports.SchmancyAvatar=u([a.customElement("schmancy-avatar")],exports.SchmancyAvatar),exports.$drawer=le,exports.HereMorty=H,exports.SchmancyContentDrawerID=R,exports.SchmancyContentDrawerMaxHeight=z,exports.SchmancyContentDrawerMinWidth=N,exports.SchmancyContentDrawerSheetMode=M,exports.SchmancyContentDrawerSheetState=_,exports.SchmancyDrawerNavbarMode=j,exports.SchmancyDrawerNavbarState=W,exports.WhereAreYouRicky=X,exports.schmancyContentDrawer=se,exports.schmancyNavDrawer=Y,exports.teleport=C;
243
+ //# sourceMappingURL=avatar-BYgWyhEZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-BYgWyhEZ.cjs","sources":["../src/badge/badge.ts","../src/card/actions.ts","../src/card/card.ts","../src/card/content.ts","../src/card/media.ts","../src/content-drawer/$sheet.ts","../src/content-drawer/context.ts","../src/content-drawer/drawer.ts","../src/content-drawer/main.ts","../src/content-drawer/sheet.ts","../src/nav-drawer/$navbar.ts","../src/nav-drawer/context.ts","../src/nav-drawer/appbar.ts","../src/nav-drawer/content.ts","../src/nav-drawer/drawer.ts","../src/nav-drawer/navbar.ts","../src/teleport/teleport.service.ts","../src/teleport/watcher.ts","../src/teleport/teleport.component.ts","../src/avatar.ts"],"sourcesContent":["import { TailwindElement } from '@mixins/index'\nimport { color } from '@schmancy/directives'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { SchmancyTheme } from '..'\n\n/**\n * Badge color types for predefined styles\n */\nexport type BadgeColor = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error' | 'neutral'\n\n/**\n * Badge size variants\n */\nexport type BadgeSize = 'xs' | 'sm' | 'md' | 'lg'\n\n/**\n * Badge shape variants\n */\nexport type BadgeShape = 'rounded' | 'pill' | 'square'\n\n/**\n * @element sch-badge\n * A versatile badge component for status indicators, labels, and counts\n *\n * @slot - The content of the badge (text or HTML)\n * @slot icon - Optional icon to display before the content\n *\n * @csspart badge - The badge element container\n * @csspart content - The content container\n * @csspart icon - The icon container\n */\n@customElement('sch-badge')\nexport class SchmancyBadgeV2 extends TailwindElement(css`\n\t:host {\n\t\tdisplay: inline-flex;\n\t}\n\n\t.badge-content {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tline-height: 1;\n\t\tletter-spacing: 0.01em;\n\t\tfont-kerning: normal;\n\t}\n\n\t/* Improved vertical alignment for icon and text */\n\t::slotted(*) {\n\t\tvertical-align: middle;\n\t}\n\n\t/* Add space between icon and text */\n\t.icon-container {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tline-height: 1;\n\t}\n\n\t/* Icon spacing adjustments - based on golden ratio principles */\n\t.icon-container + .badge-content {\n\t\tmargin-left: 0.38em; /* Approximately 1/1.618 of 0.618em */\n\t}\n\n\t/* Ensure the icon is properly centered */\n\tschmancy-icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t}\n\n\t/* Elegant hover effect for better interactivity */\n\t:host([outlined]) div[part=\"badge\"] {\n\t\ttransition: all 0.2s ease;\n\t}\n\n\t:host([outlined]) div[part=\"badge\"]:hover {\n\t\tfilter: brightness(0.95);\n\t\ttransform: translateY(-1px);\n\t}\n\n\t/* Non-outlined badges get subtle hover effects */\n\t:host(:not([outlined])) div[part=\"badge\"]:hover {\n\t\tfilter: brightness(0.98);\n\t}\n\n\t/* Enhanced pulse animation for better attention-getting */\n\t@keyframes elegant-pulse {\n\t\t0%, 100% {\n\t\t\topacity: 1;\n\t\t}\n\t\t50% {\n\t\t\topacity: 0.85;\n\t\t}\n\t}\n\n\t.animate-pulse {\n\t\tanimation: elegant-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n\t}\n`) {\n\t/**\n\t * The color variant of the badge\n\t * @attr\n\t */\n\t@property({ type: String, reflect: true })\n\tcolor: BadgeColor = 'primary'\n\n\t/**\n\t * The size of the badge\n\t * @attr\n\t */\n\t@property({ type: String, reflect: true })\n\tsize: BadgeSize = 'md'\n\n\t/**\n\t * The shape of the badge\n\t * @attr\n\t */\n\t@property({ type: String, reflect: true })\n\tshape: BadgeShape = 'pill'\n\n\t/**\n\t * Whether the badge has an outlined style\n\t * @attr\n\t */\n\t@property({ type: Boolean, reflect: true })\n\toutlined = false\n\n\t/**\n\t * Custom icon name to display (if no icon slot is provided)\n\t * @attr\n\t */\n\t@property({ type: String })\n\ticon = ''\n\n\t/**\n\t * Whether to make the badge pulse to draw attention\n\t * @attr\n\t */\n\t@property({ type: Boolean, reflect: true })\n\tpulse = false\n\n\t/**\n\t * Convert the size to appropriate Tailwind classes for the badge container\n\t * Using harmonious padding ratios based on golden ratio principles\n\t * Refined for more elegant proportions\n\t */\n\tprivate getSizeClasses(): string {\n\t\tswitch (this.size) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'text-xs py-0.75 px-1.5 gap-0.5 leading-none'\n\t\t\tcase 'sm':\n\t\t\t\treturn 'text-xs py-1.5 px-2.5 gap-0.5 tracking-wide leading-none'\n\t\t\tcase 'lg':\n\t\t\t\treturn 'text-base py-2 px-4 gap-1 tracking-wide'\n\t\t\tcase 'md':\n\t\t\tdefault:\n\t\t\t\treturn 'text-sm py-1.5 px-3 gap-0.5'\n\t\t}\n\t}\n\n\t/**\n\t * Get shape classes based on selected shape\n\t */\n\tprivate getShapeClasses(): string {\n\t\tswitch (this.shape) {\n\t\t\tcase 'square':\n\t\t\t\treturn 'rounded'\n\t\t\tcase 'rounded':\n\t\t\t\treturn 'rounded-md'\n\t\t\tcase 'pill':\n\t\t\tdefault:\n\t\t\t\treturn 'rounded-full'\n\t\t}\n\t}\n\n\t/**\n\t * Get icon size based on badge size with harmonious proportions\n\t * Using golden ratio-inspired proportions relative to text size\n\t */\n\tprivate getIconSize(): string {\n\t\tswitch (this.size) {\n\t\t\tcase 'xs':\n\t\t\t\treturn '11px' // Approximately 0.9 × text size (12px × 0.9)\n\t\t\tcase 'sm':\n\t\t\t\treturn '13px' // Approximately 1.1 × text size (12px × 1.1)\n\t\t\tcase 'lg':\n\t\t\t\treturn '18px' // Approximately 1.1 × text size (16px × 1.1)\n\t\t\tcase 'md':\n\t\t\tdefault:\n\t\t\t\treturn '15px' // Approximately 1.1 × text size (14px × 1.1)\n\t\t}\n\t}\n\n\t/**\n\t * Get additional styling for specific sizes\n\t */\n\tprivate getExoticStyles(): Record<string, string> {\n\t\tconst styles: Record<string, string> = {}\n\n\t\tif (this.size === 'lg') {\n\t\t\tstyles.letterSpacing = '0.03em'\n\t\t\tstyles.fontWeight = '500'\n\t\t}\n\n\t\tif (this.size === 'sm') {\n\t\t\tstyles.letterSpacing = '0.02em'\n\t\t}\n\n\t\treturn styles\n\t}\n\n\t/**\n\t * Get background and text colors based on selected color variant\n\t * Enhanced for more elegant color combinations with refined contrasts\n\t */\n\tprivate getColorStyles() {\n\t\tconst colors: Record<BadgeColor, { bg: string; text: string; border?: string }> = {\n\t\t\tprimary: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.primary.container} 92%, ${SchmancyTheme.sys.color.primary.default} 8%)`,\n\t\t\t\ttext: this.outlined ? SchmancyTheme.sys.color.primary.default : SchmancyTheme.sys.color.primary.onContainer,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.primary.default} 90%, ${SchmancyTheme.sys.color.surface.highest} 10%)` : undefined,\n\t\t\t},\n\t\t\tsecondary: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.secondary.container} 95%, ${SchmancyTheme.sys.color.secondary.default} 5%)`,\n\t\t\t\ttext: this.outlined ? SchmancyTheme.sys.color.secondary.default : SchmancyTheme.sys.color.secondary.onContainer,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.secondary.default} 85%, ${SchmancyTheme.sys.color.surface.highest} 15%)` : undefined,\n\t\t\t},\n\t\t\ttertiary: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.tertiary.container} 94%, ${SchmancyTheme.sys.color.tertiary.default} 6%)`,\n\t\t\t\ttext: this.outlined ? SchmancyTheme.sys.color.tertiary.default : SchmancyTheme.sys.color.tertiary.onContainer,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.tertiary.default} 88%, ${SchmancyTheme.sys.color.surface.highest} 12%)` : undefined,\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.success.container} 90%, ${SchmancyTheme.sys.color.success.default} 10%)`,\n\t\t\t\ttext: this.outlined ? SchmancyTheme.sys.color.success.default : SchmancyTheme.sys.color.success.onContainer,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.success.default} 85%, ${SchmancyTheme.sys.color.surface.bright} 15%)` : undefined,\n\t\t\t},\n\t\t\twarning: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.tertiary.container} 85%, ${SchmancyTheme.sys.color.tertiary.default} 15%)`,\n\t\t\t\ttext: this.outlined ? SchmancyTheme.sys.color.tertiary.default : SchmancyTheme.sys.color.tertiary.onContainer,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.tertiary.default} 90%, ${SchmancyTheme.sys.color.surface.highest} 10%)` : undefined,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.error.container} 92%, ${SchmancyTheme.sys.color.error.default} 8%)`,\n\t\t\t\ttext: this.outlined ? SchmancyTheme.sys.color.error.default : SchmancyTheme.sys.color.error.onContainer,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.error.default} 88%, ${SchmancyTheme.sys.color.surface.bright} 12%)` : undefined,\n\t\t\t},\n\t\t\tneutral: {\n\t\t\t\tbg: this.outlined ? 'transparent' : `color-mix(in srgb, ${SchmancyTheme.sys.color.surface.high} 95%, ${SchmancyTheme.sys.color.outline} 5%)`,\n\t\t\t\ttext: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.surface.on} 95%, ${SchmancyTheme.sys.color.surface.default} 5%)` : SchmancyTheme.sys.color.surface.on,\n\t\t\t\tborder: this.outlined ? `color-mix(in srgb, ${SchmancyTheme.sys.color.outline} 85%, ${SchmancyTheme.sys.color.surface.highest} 15%)` : undefined,\n\t\t\t},\n\t\t}\n\n\t\treturn colors[this.color]\n\t}\n\n\trender() {\n\t\tconst sizeClasses = this.getSizeClasses()\n\t\tconst shapeClasses = this.getShapeClasses()\n\t\tconst colorStyles = this.getColorStyles()\n\t\tconst iconSize = this.getIconSize()\n\t\tconst exoticStyles = this.getExoticStyles()\n\n\t\tconst badgeClasses = {\n\t\t\t'inline-flex items-center justify-center font-medium': true,\n\t\t\t[sizeClasses]: true,\n\t\t\t[shapeClasses]: true,\n\t\t\t'animate-pulse': this.pulse,\n\t\t\t'border border-solid': this.outlined,\n\t\t\t'shadow-sm': !this.outlined && this.size === 'sm',\n\t\t\t'shadow': !this.outlined && this.size === 'md',\n\t\t\t'shadow-md': !this.outlined && this.size === 'lg',\n\t\t}\n\n\t\t// Refined styles for a more elegant look\n\t\tconst styles = {\n\t\t\tborderColor: colorStyles.border,\n\t\t\ttransition: 'all 0.2s ease',\n\t\t\t...(this.outlined ? {\n\t\t\t\tbackdropFilter: 'blur(4px)',\n\t\t\t\tborderWidth: '1px',\n\t\t\t} : {}),\n\t\t\t...(this.size === 'lg' && !this.outlined ? {\n\t\t\t\tboxShadow: '0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1)'\n\t\t\t} : {}),\n\t\t\t...exoticStyles,\n\t\t}\n\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tpart=\"badge\"\n\t\t\t\tclass=\"${this.classMap(badgeClasses)}\"\n\t\t\t\tstyle=\"${this.styleMap(styles)}\"\n\t\t\t\t${color({\n\t\t\t\t\tbgColor: colorStyles.bg,\n\t\t\t\t\tcolor: colorStyles.text,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<!-- Icon slot or named icon -->\n\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t${this.icon\n\t\t\t\t\t\t? html`\n\t\t\t\t\t\t\t\t<div part=\"icon\" class=\"icon-container flex-shrink-0 flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<schmancy-icon .size=${iconSize} class=\"flex items-center\">${this.icon}</schmancy-icon>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t`\n\t\t\t\t\t\t: ''}\n\t\t\t\t</slot>\n\n\t\t\t\t<!-- Content -->\n\t\t\t\t<div part=\"content\" class=\"badge-content\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sch-badge': SchmancyBadgeV2\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n/**\n * @element schmancy-card-action\n * @slot - The content of the action\n */\n@customElement('schmancy-card-action')\nexport default class SchmancyCardMedia extends TailwindElement(css`\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\tprotected render(): unknown {\n\t\treturn html` <section class=\"pb-4 px-4\"><slot> </slot></section> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-card-action': SchmancyCardMedia\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\n@customElement('schmancy-card')\nexport default class SchmancyCard extends TailwindElement() {\n\t@property() type: 'elevated' | 'filled' | 'outlined' = 'elevated'\n\t@property({ type: Number }) elevation: 0 | 1 | 2 | 3 | 4 | 5 = 0\n\tprotected render(): unknown {\n\t\tconst classes = {\n\t\t\t'rounded-md': true,\n\t\t\t'shadow-xs': this.elevation === 1,\n\t\t\t'shadow-sm': this.elevation === 2,\n\t\t\t'shadow-md': this.elevation === 3,\n\t\t\t'shadow-lg': this.elevation === 4,\n\t\t\t'shadow-5': this.elevation === 5,\n\t\t\t'hover:shadow-xs': ['outlined', 'filled'].includes(this.type),\n\t\t\t'bg-surface-low shadow-xs hover:shadow-sm': this.type === 'elevated',\n\t\t\t'bg-surface-highest': this.type === 'filled',\n\t\t\t'bg-surface-default border border-solid border-1 border-outlineVariant': this.type === 'outlined',\n\t\t}\n\t\treturn html`<div class=\"${this.classMap(classes)}\">\n\t\t\t<slot> </slot>\n\t\t</div>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-card': SchmancyCard\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { SchmancyTheme } from '@schmancy/theme/theme.interface'\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport { color } from '..'\n\n/**\n * @element schmancy-card-content\n * @slot headline\n * @slot subhead\n * @slot default - The content of the card\n */\n@customElement('schmancy-card-content')\nexport default class SchmancyCardContent extends TailwindElement() {\n\tprotected render(): unknown {\n\t\tconst classes = {\n\t\t\t'px-[16px] py-[24px]': true,\n\t\t}\n\t\tconst onSurface = SchmancyTheme.sys.color.surface.on\n\t\tconst onSurfaceVariant = SchmancyTheme.sys.color.surface.onVariant\n\t\treturn html`<schmancy-grid gap=\"md\" class=\"${this.classMap(classes)}\">\n\t\t\t<schmancy-grid gap=\"xs\">\n\t\t\t\t<schmancy-typography\n\t\t\t\t\t${color({\n\t\t\t\t\t\tcolor: onSurface,\n\t\t\t\t\t})}\n\t\t\t\t\ttype=\"body\"\n\t\t\t\t\ttoken=\"lg\"\n\t\t\t\t\t><slot name=\"headline\"> </slot\n\t\t\t\t></schmancy-typography>\n\t\t\t\t<schmancy-typography\n\t\t\t\t\t${color({\n\t\t\t\t\t\tcolor: onSurfaceVariant,\n\t\t\t\t\t})}\n\t\t\t\t\ttype=\"body\"\n\t\t\t\t\t><slot name=\"subhead\"></slot>\n\t\t\t\t</schmancy-typography>\n\t\t\t</schmancy-grid>\n\t\t\t<schmancy-typography\n\t\t\t\ttype=\"body\"\n\t\t\t\t${color({\n\t\t\t\t\tcolor: onSurfaceVariant,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</schmancy-typography>\n\t\t</schmancy-grid>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-card-content': SchmancyCardContent\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\n/**\n * @element schmancy-card-media\n */\n@customElement('schmancy-card-media')\nexport default class SchmancyCardMedia extends TailwindElement(css`\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\t@property({ type: String, reflect: true })\n\tsrc: string = ''\n\n\t@property({ type: String })\n\tfit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' = 'contain'\n\n\tprotected render(): unknown {\n\t\tconst styles = {\n\t\t\theight: '200px',\n\t\t}\n\t\tconst classes = {\n\t\t\t'object-center': true,\n\t\t\t'object-contain': this.fit === 'contain',\n\t\t\t'object-cover w-full': this.fit === 'cover',\n\t\t\t'object-fill': this.fit === 'fill',\n\t\t\t'object-none': this.fit === 'none',\n\t\t\t'object-scale-down': this.fit === 'scale-down',\n\t\t}\n\t\treturn html`<schmancy-grid align=\"stretch\" justify=\"stretch\" gap=\"md\">\n\t\t\t<img src=\"${this.src}\" style=${this.styleMap(styles)} class=\"${this.classMap(classes)}\" />\n\t\t</schmancy-grid>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-card-media': SchmancyCardMedia\n\t}\n}\n","import { SchmancyEvents } from '@schmancy/types/events'\nimport { Subject } from 'rxjs'\n\ntype DrawerAction = 'dismiss' | 'render'\ntype TRef = Element | Window\ntype TRenderRequest = HTMLElement\nexport type TRenderCustomEvent = CustomEvent<{\n\tcomponent: TRenderRequest\n\ttitle?: string\n}>\nclass Drawer {\n\tprivate $drawer = new Subject<{\n\t\tref: TRef\n\t\taction: DrawerAction\n\t\tcomponent?: TRenderRequest\n\t\ttitle?: string\n\t}>()\n\tconstructor() {\n\t\tthis.$drawer.pipe().subscribe(data => {\n\t\t\tif (data.action === 'dismiss') {\n\t\t\t\tdata.ref.dispatchEvent(\n\t\t\t\t\tnew CustomEvent(SchmancyEvents.ContentDrawerToggle, {\n\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\tstate: 'close',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t} else if (data.action === 'render') {\n\t\t\t\tdata.ref.dispatchEvent(\n\t\t\t\t\tnew CustomEvent(SchmancyEvents.ContentDrawerToggle, {\n\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\tstate: 'open',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t\tdata.ref.dispatchEvent(\n\t\t\t\t\tnew CustomEvent('schmancy-content-drawer-render', {\n\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\tcomponent: data.component,\n\t\t\t\t\t\t\ttitle: data.title,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t}\n\t\t})\n\t}\n\n\tdimiss(ref: TRef) {\n\t\tthis.$drawer.next({\n\t\t\taction: 'dismiss',\n\t\t\tref: ref,\n\t\t})\n\t}\n\n\trender(ref: TRef, component: TRenderRequest, title?: string) {\n\t\tref.dispatchEvent(new CustomEvent('custom-event'))\n\t\tthis.$drawer.next({\n\t\t\taction: 'render',\n\t\t\tref: ref,\n\t\t\tcomponent: component,\n\t\t\ttitle,\n\t\t})\n\t}\n}\n\nexport const schmancyContentDrawer = new Drawer()\n","import { createContext } from '@lit/context'\nexport type TSchmancyContentDrawerSheetMode = 'push' | 'overlay'\nexport const SchmancyContentDrawerSheetMode = createContext<TSchmancyContentDrawerSheetMode>('push')\n\nexport type TSchmancyContentDrawerSheetState = 'open' | 'close'\nexport const SchmancyContentDrawerSheetState = createContext<TSchmancyContentDrawerSheetState>('close')\n\nexport const SchmancyContentDrawerID = createContext<string>(Math.floor(Math.random() * Date.now()).toString())\nexport const SchmancyContentDrawerMaxHeight = createContext<string>('100%')\nexport const SchmancyContentDrawerMinWidth = createContext<{\n\tmain: number\n\tsheet: number\n}>({})\n","import { provide } from '@lit/context'\nimport { $LitElement } from '@mixins/index'\nimport { css, html, nothing } from 'lit'\nimport { customElement, property, queryAssignedElements, state } from 'lit/decorators.js'\nimport { debounceTime, distinctUntilChanged, fromEvent, map, merge, startWith, takeUntil, tap } from 'rxjs'\nimport { SchmancyEvents, TRenderCustomEvent, area, sheet } from '..'\nimport {\n\tSchmancyContentDrawerID,\n\tSchmancyContentDrawerMaxHeight,\n\tSchmancyContentDrawerMinWidth,\n\tSchmancyContentDrawerSheetMode,\n\tSchmancyContentDrawerSheetState,\n\tTSchmancyContentDrawerSheetMode,\n\tTSchmancyContentDrawerSheetState,\n} from './context'\n\n/**\n * @element schmancy-content-drawer\n * @slot appbar - The appbar slot\n * @slot - The content slot\n */\n@customElement('schmancy-content-drawer')\nexport class SchmancyContentDrawer extends $LitElement(css`\n\t:host {\n\t\tposition: relative;\n\t\tinset: 0;\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t}\n`) {\n\t/**\n\t * The minimum width of the sheet\n\t * @attr\tminWidth\n\t * @type {number}\n\t * @memberof SchmancyContentDrawer\n\t */\n\n\t@provide({ context: SchmancyContentDrawerMinWidth })\n\tminWidth: typeof SchmancyContentDrawerMinWidth.__context__ = {\n\t\tmain: 360,\n\t\tsheet: 576,\n\t}\n\n\t/**\n\t * The state of the sheet\n\t * @attr open\n\t * @type {TSchmancyContentDrawerSheetState}\n\t */\n\t@provide({ context: SchmancyContentDrawerSheetState })\n\t@property()\n\topen: TSchmancyContentDrawerSheetState\n\n\t/**\n\t * The mode of the sheet\n\t * @type {TSchmancyContentDrawerSheetMode}\n\t * @memberof SchmancyContentDrawer\n\t * @protected\n\t */\n\t@provide({ context: SchmancyContentDrawerSheetMode })\n\t@state()\n\tmode: TSchmancyContentDrawerSheetMode\n\n\t@provide({ context: SchmancyContentDrawerID })\n\tschmancyContentDrawerID = Math.floor(Math.random() * Date.now()).toString()\n\n\t@provide({ context: SchmancyContentDrawerMaxHeight })\n\tmaxHeight = '100%'\n\n\t@queryAssignedElements({ flatten: true })\n\tassignedElements!: HTMLElement[]\n\tfirstUpdated(): void {\n\t\tmerge(fromEvent<CustomEvent>(window, 'resize'), fromEvent<CustomEvent>(window, SchmancyEvents.ContentDrawerResize))\n\t\t\t.pipe(\n\t\t\t\tstartWith(true),\n\t\t\t\ttap(() => console.log(this.minWidth)),\n\t\t\t\tmap(() => (this.clientWidth ? this.clientWidth : window.innerWidth)),\n\t\t\t\tmap(width => width >= this.minWidth.main + this.minWidth.sheet),\n\t\t\t\tdebounceTime(100),\n\t\t\t\ttap(() => {\n\t\t\t\t\tthis.maxHeight = `${window.innerHeight - this.getOffsetTop(this) - 32}px`\n\t\t\t\t\tthis.style.setProperty('max-height', this.maxHeight)\n\t\t\t\t}),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe(lgScreen => {\n\t\t\t\tif (lgScreen) {\n\t\t\t\t\tthis.mode = 'push'\n\t\t\t\t\tthis.open = 'open'\n\t\t\t\t} else {\n\t\t\t\t\tthis.mode = 'overlay'\n\t\t\t\t\tthis.open = 'close'\n\t\t\t\t}\n\t\t\t})\n\n\t\t/*\n\t\t * Listen to the toggle event\n\t\t */\n\t\tfromEvent<CustomEvent>(window, SchmancyEvents.ContentDrawerToggle)\n\t\t\t.pipe(\n\t\t\t\ttap(event => {\n\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t}),\n\t\t\t\tmap(event => event.detail.state),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe(state => {\n\t\t\t\tthis.open = state\n\t\t\t})\n\n\t\tfromEvent<TRenderCustomEvent>(window, 'schmancy-content-drawer-render')\n\t\t\t.pipe(\n\t\t\t\ttap(event => {\n\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t}),\n\t\t\t\tmap(event => event.detail),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe(({ component, title }) => {\n\t\t\t\tif (this.mode === 'push') {\n\t\t\t\t\t// TODO: Fix the router to render if constructor has different arguments\n\t\t\t\t\tarea.push({\n\t\t\t\t\t\tarea: this.schmancyContentDrawerID,\n\t\t\t\t\t\tcomponent: 'empty',\n\t\t\t\t\t\thistoryStrategy: 'silent',\n\t\t\t\t\t})\n\t\t\t\t\tarea.push({\n\t\t\t\t\t\tarea: this.schmancyContentDrawerID,\n\t\t\t\t\t\tcomponent: component,\n\t\t\t\t\t\thistoryStrategy: 'silent',\n\t\t\t\t\t})\n\t\t\t\t} else if ((this.mode = 'overlay')) {\n\t\t\t\t\tsheet.open({ component: component, uid: this.schmancyContentDrawerID, title })\n\t\t\t\t}\n\t\t\t})\n\t}\n\n\tgetOffsetTop(element) {\n\t\tlet offsetTop = 0\n\t\twhile (element) {\n\t\t\toffsetTop += element.offsetTop\n\t\t\telement = element.offsetParent\n\t\t}\n\t\treturn offsetTop\n\t}\n\n\tprotected render() {\n\t\tif (!this.mode || !this.open) return nothing\n\t\treturn html`\n\t\t\t<schmancy-grid\n\t\t\t\tcols=${this.mode === 'overlay' ? '1fr' : 'auto 1fr'}\n\t\t\t\trows=\"1fr\"\n\t\t\t\tflow=\"col\"\n\t\t\t\tjustify=\"stretch\"\n\t\t\t\talign=\"stretch\"\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</schmancy-grid>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-content-drawer': SchmancyContentDrawer\n\t}\n}\n","import { consume } from '@lit/context'\nimport { $LitElement } from '@mixins/index'\nimport { PropertyValueMap, css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { SchmancyEvents } from '..'\nimport {\n\tSchmancyContentDrawerMaxHeight,\n\tSchmancyContentDrawerMinWidth,\n\tSchmancyContentDrawerSheetMode,\n\tTSchmancyContentDrawerSheetMode,\n} from './context'\nimport { when } from 'lit/directives/when.js'\n\n@customElement('schmancy-content-drawer-main')\nexport class SchmancyContentDrawerMain extends $LitElement(css`\n\t:host {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t}\n`) {\n\t@property({ type: Number })\n\tminWidth\n\n\t@consume({ context: SchmancyContentDrawerMinWidth, subscribe: true })\n\tdrawerMinWidth: typeof SchmancyContentDrawerMinWidth.__context__\n\n\t@consume({ context: SchmancyContentDrawerSheetMode, subscribe: true })\n\t@state()\n\tmode: TSchmancyContentDrawerSheetMode\n\n\t@consume({ context: SchmancyContentDrawerMaxHeight, subscribe: true })\n\t@state()\n\tmaxHeight\n\n\tconnectedCallback(): void {\n\t\tsuper.connectedCallback()\n\t\tif (this.minWidth) this.drawerMinWidth.main = this.minWidth\n\t\telse this.minWidth = this.drawerMinWidth.main\n\t}\n\n\tprotected update(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {\n\t\tsuper.update(changedProperties)\n\t\tif (changedProperties.has('minWidth') && this.minWidth) {\n\t\t\tthis.drawerMinWidth.main = this.minWidth\n\t\t\tthis.dispatchEvent(new CustomEvent(SchmancyEvents.ContentDrawerResize, { bubbles: true, composed: true }))\n\t\t}\n\t}\n\n\trender() {\n\t\tconst styles = {\n\t\t\tminWidth: `${this.minWidth}px`,\n\t\t\tmaxHeight: this.maxHeight,\n\t\t}\n\t\treturn html`\n\t\t\t<section class=\"relative inset-0 h-full\">\n\t\t\t\t<schmancy-grid\n\t\t\t\t\tclass=\"h-full relative overflow-scroll\"\n\t\t\t\t\tcols=\"${this.mode === 'push' ? 'auto 1fr' : '1fr'}\"\n\t\t\t\t\trows=\"1fr\"\n\t\t\t\t\tflow=\"col\"\n\t\t\t\t\talign=\"stretch\"\n\t\t\t\t\tjustify=\"stretch\"\n\t\t\t\t>\n\t\t\t\t\t<section style=${this.styleMap(styles)}>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</section>\n\t\t\t\t</schmancy-grid>\n\t\t\t\t${when(\n\t\t\t\t\tthis.mode === 'push',\n\t\t\t\t\t() => html` <schmancy-divider class=\"absolute right-0 top-0\" orientation=\"vertical\"></schmancy-divider>`,\n\t\t\t\t)}\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-content-drawer-main': SchmancyContentDrawerMain\n\t}\n}\n","import { consume } from '@lit/context'\nimport { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property, query, queryAssignedElements, state } from 'lit/decorators.js'\nimport { from, merge, Observable, of, takeUntil, tap } from 'rxjs'\nimport { SchmancyEvents, sheet } from '..'\nimport {\n\tSchmancyContentDrawerID,\n\tSchmancyContentDrawerMaxHeight,\n\tSchmancyContentDrawerMinWidth,\n\tSchmancyContentDrawerSheetMode,\n\tSchmancyContentDrawerSheetState,\n\tTSchmancyContentDrawerSheetMode,\n\tTSchmancyContentDrawerSheetState,\n} from './context'\n\n// --- 1) Removed the custom animate import\n// import { animate } from '@packages/anime-beta-master'\n\n@customElement('schmancy-content-drawer-sheet')\nexport class SchmancyContentDrawerSheet extends $LitElement(css`\n\t:host {\n\t\toverflow: scroll;\n\t}\n`) {\n\t@property({ type: Number })\n\tminWidth\n\n\t@consume({ context: SchmancyContentDrawerSheetMode, subscribe: true })\n\t@state()\n\tmode: TSchmancyContentDrawerSheetMode\n\n\t@consume({ context: SchmancyContentDrawerSheetState, subscribe: true })\n\t@state()\n\tstate: TSchmancyContentDrawerSheetState\n\n\t@consume({ context: SchmancyContentDrawerID })\n\tschmancyContentDrawerID\n\n\t@query('#sheet') sheet!: HTMLElement\n\t@queryAssignedElements({ flatten: true, slot: undefined }) defaultSlot!: HTMLElement[]\n\n\t@consume({ context: SchmancyContentDrawerMinWidth, subscribe: true })\n\tdrawerMinWidth: typeof SchmancyContentDrawerMinWidth.__context__\n\n\t@consume({ context: SchmancyContentDrawerMaxHeight, subscribe: true })\n\t@state()\n\tmaxHeight\n\n\tconnectedCallback(): void {\n\t\tsuper.connectedCallback()\n\t\tif (this.minWidth) {\n\t\t\tthis.drawerMinWidth.sheet = this.minWidth\n\t\t} else {\n\t\t\tthis.minWidth = this.drawerMinWidth.sheet\n\t\t}\n\t}\n\n\tupdated(changedProperties: Map<string, any>) {\n\t\tsuper.updated(changedProperties)\n\t\tif (changedProperties.has('minWidth') && this.minWidth) {\n\t\t\t// If the 'minWidth' property changed\n\t\t\tthis.drawerMinWidth.sheet = this.minWidth\n\t\t\tthis.dispatchEvent(new CustomEvent(SchmancyEvents.ContentDrawerResize, { bubbles: true, composed: true }))\n\t\t} else if (changedProperties.has('state') || changedProperties.has('mode')) {\n\t\t\tif (this.mode === 'overlay') {\n\t\t\t\tif (this.state === 'close') {\n\t\t\t\t\tthis.closeAll()\n\t\t\t\t} else if (this.state === 'open') {\n\t\t\t\t\t// Overlay open logic if needed\n\t\t\t\t\t// this.open()\n\t\t\t\t}\n\t\t\t} else if (this.mode === 'push') {\n\t\t\t\tsheet.dismiss(this.schmancyContentDrawerID)\n\t\t\t\tif (this.state === 'close') {\n\t\t\t\t\tthis.closeAll()\n\t\t\t\t} else if (this.state === 'open') {\n\t\t\t\t\tthis.open()\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Open the sheet by sliding it into view.\n\t */\n\topen() {\n\t\t// \"onBegin\" logic from the old `animate(...)`\n\t\tif (this.mode === 'overlay') {\n\t\t\tthis.sheet.style.position = 'fixed'\n\t\t} else {\n\t\t\tthis.sheet.style.position = 'relative'\n\t\t}\n\t\tthis.sheet.style.display = 'block'\n\n\t\t// --- 2) Use native Web Animations API ---\n\t\tthis.sheet.animate(\n\t\t\t[\n\t\t\t\t{ opacity: 0, transform: 'translateX(100%)' },\n\t\t\t\t{ opacity: 1, transform: 'translateX(0%)' },\n\t\t\t],\n\t\t\t{\n\t\t\t\tduration: 500,\n\t\t\t\teasing: 'cubic-bezier(0.5, 0.01, 0.25, 1)',\n\t\t\t},\n\t\t)\n\t\t// No return is needed if you don't rely on the result\n\t}\n\n\t/**\n\t * Close everything (modal sheet + the sheet itself).\n\t */\n\tcloseAll() {\n\t\t// Merge them into a single subscription,\n\t\t// so that everything closes in parallel.\n\t\tmerge(from(this.closeModalSheet()), from(this.closeSheet())).pipe(takeUntil(this.disconnecting)).subscribe()\n\t}\n\n\t/**\n\t * Dismiss the \"modal sheet.\"\n\t * This just returns an Observable that completes immediately.\n\t */\n\tcloseModalSheet() {\n\t\treturn of(true).pipe(tap(() => sheet.dismiss(this.schmancyContentDrawerID)))\n\t}\n\n\t/**\n\t * Slide the sheet out of view + hide it.\n\t * Return an Observable so we can merge it with other close operations.\n\t */\n\tcloseSheet() {\n\t\t// --- 2) Use native Web Animations API and wrap in an Observable ---\n\t\treturn new Observable<void>(observer => {\n\t\t\tconst animation = this.sheet.animate(\n\t\t\t\t[\n\t\t\t\t\t{ opacity: 1, transform: 'translateX(0%)' },\n\t\t\t\t\t{ opacity: 1, transform: 'translateX(100%)' },\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tduration: 500,\n\t\t\t\t\teasing: 'cubic-bezier(0.5, 0.01, 0.25, 1)',\n\t\t\t\t},\n\t\t\t)\n\n\t\t\tanimation.onfinish = () => {\n\t\t\t\t// \"onComplete\" logic\n\t\t\t\tthis.sheet.style.display = 'none'\n\t\t\t\tobserver.next()\n\t\t\t\tobserver.complete()\n\t\t\t}\n\t\t})\n\t}\n\n\tprotected render() {\n\t\tconst sheetClasses = {\n\t\t\tblock: this.mode === 'push',\n\t\t\t'absolute z-50': this.mode === 'overlay',\n\t\t\t'opacity-1': this.mode === 'overlay' && this.state === 'open',\n\t\t}\n\n\t\tconst styles = {\n\t\t\tminWidth: `${this.minWidth}px`,\n\t\t\tmaxHeight: this.maxHeight,\n\t\t}\n\n\t\treturn html`\n\t\t\t<section id=\"sheet\" class=\"${this.classMap(sheetClasses)}\" style=${this.styleMap(styles)}>\n\t\t\t\t<schmancy-area name=\"${this.schmancyContentDrawerID}\">\n\t\t\t\t\t<slot name=\"placeholder\"></slot>\n\t\t\t\t</schmancy-area>\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-content-drawer-sheet': SchmancyContentDrawerSheet\n\t}\n}\n","import { SchmancyEvents } from '@schmancy/types/events'\nimport { debounceTime, Subject } from 'rxjs'\n\nclass Drawer {\n\tprivate $drawer = new Subject<{\n\t\tself: HTMLElement\n\t\tstate: boolean\n\t}>()\n\tconstructor() {\n\t\tthis.$drawer.pipe(debounceTime(10)).subscribe(data => {\n\t\t\tif (data.state) {\n\t\t\t\twindow.dispatchEvent(\n\t\t\t\t\tnew CustomEvent(SchmancyEvents.NavDrawer_toggle, {\n\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\tstate: 'open',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t} else {\n\t\t\t\twindow.dispatchEvent(\n\t\t\t\t\tnew CustomEvent(SchmancyEvents.NavDrawer_toggle, {\n\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\tstate: 'close',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t}\n\t\t})\n\t}\n\topen(self?: HTMLElement) {\n\t\tthis.$drawer.next({\n\t\t\tself,\n\t\t\tstate: true,\n\t\t})\n\t}\n\tclose(self?: HTMLElement) {\n\t\tthis.$drawer.next({\n\t\t\tself,\n\t\t\tstate: false,\n\t\t})\n\t}\n}\n\nexport const schmancyNavDrawer = new Drawer()\nconst $drawer = schmancyNavDrawer\n\nexport { $drawer }\n","import { createContext } from '@lit/context'\nexport type TSchmancyDrawerNavbarMode = 'push' | 'overlay' | undefined\nexport const SchmancyDrawerNavbarMode = createContext<TSchmancyDrawerNavbarMode>('push')\n\nexport type TSchmancyDrawerNavbarState = 'open' | 'close' | undefined\nexport const SchmancyDrawerNavbarState = createContext<TSchmancyDrawerNavbarState>('close')\n","import { consume } from '@lit/context'\nimport { TailwindElement } from '@mixins/index'\nimport {\n\tSchmancyDrawerNavbarMode,\n\tSchmancyDrawerNavbarState,\n\tTSchmancyDrawerNavbarMode,\n} from '@schmancy/nav-drawer/context'\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { when } from 'lit/directives/when.js'\nimport { SchmancyEvents } from '..'\n\n/**\n * @element schmancy-nav-drawer-appbar\n * @slot toggler - The toggler slot\n * @slot - The default slot\n */\n@customElement('schmancy-nav-drawer-appbar')\nexport class SchmancyDrawerAppbar extends TailwindElement(css`\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\t@consume({ context: SchmancyDrawerNavbarMode, subscribe: true })\n\t@state()\n\tsidebarMode: TSchmancyDrawerNavbarMode\n\n\t@consume({ context: SchmancyDrawerNavbarState, subscribe: true })\n\t@state()\n\tsidebarOpen\n\n\t@property({ type: Boolean }) toggler = true\n\n\trender() {\n\t\tconst appbarClasses = {\n\t\t\t'block z-50': true,\n\t\t}\n\t\tconst sidebarToggler = {\n\t\t\t'block left-3 z-50': this.sidebarMode === 'overlay',\n\t\t\thidden: this.sidebarMode === 'push',\n\t\t}\n\t\treturn html`\n\t\t\t<schmancy-grid\n\t\t\t\tcols=${this.sidebarMode === 'overlay' && this.toggler ? 'auto 1fr' : '1fr'}\n\t\t\t\tflow=\"col\"\n\t\t\t\tclass=${this.classMap(appbarClasses)}\n\t\t\t\tgap=\"sm\"\n\t\t\t\talign=\"center\"\n\t\t\t>\n\t\t\t\t${when(\n\t\t\t\t\tthis.sidebarMode === 'overlay' && this.toggler,\n\t\t\t\t\t() =>\n\t\t\t\t\t\thtml`<slot name=\"toggler\">\n\t\t\t\t\t\t\t<div class=\"${this.classMap(sidebarToggler)}\">\n\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\t@click=${() => {\n\t\t\t\t\t\t\t\t\t\tthis.dispatchEvent(\n\t\t\t\t\t\t\t\t\t\t\tnew CustomEvent(SchmancyEvents.NavDrawer_toggle, {\n\t\t\t\t\t\t\t\t\t\t\t\tdetail: { state: this.sidebarOpen === 'open' ? 'close' : 'open' },\n\t\t\t\t\t\t\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\t\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\t\t\t\tthis.sidebarOpen === 'close',\n\t\t\t\t\t\t\t\t\t\t() => html`menu`,\n\t\t\t\t\t\t\t\t\t\t() => html`menu_open`,\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</slot>`,\n\t\t\t\t)}\n\n\t\t\t\t<slot> </slot>\n\t\t\t</schmancy-grid>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-nav-drawer-appbar': SchmancyDrawerAppbar\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport { fromEvent, takeUntil } from 'rxjs'\n\n@customElement('schmancy-nav-drawer-content')\nexport class SchmancyNavigationDrawerContent extends $LitElement(css`\n\t:host {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\tinset: 0;\n\t\toverflow-y: auto;\n\t}\n`) {\n\tconnectedCallback(): void {\n\t\tsuper.connectedCallback()\n\t\tfromEvent(this, 'scroll')\n\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t.subscribe(e => {\n\t\t\t\tthis.parentElement.dispatchEvent(new CustomEvent('scroll', { detail: e, bubbles: true, composed: true }))\n\t\t\t})\n\t}\n\trender() {\n\t\treturn html` <slot></slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-nav-drawer-content': SchmancyNavigationDrawerContent\n\t}\n}\n","import { provide } from '@lit/context'\nimport { $LitElement } from '@mixins/index'\nimport { css, html, nothing } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { debounceTime, distinctUntilChanged, fromEvent, map, takeUntil, tap } from 'rxjs'\nimport { SchmancyEvents } from '..'\nimport { fullHeight } from './../directives/height'\nimport {\n\tSchmancyDrawerNavbarMode,\n\tSchmancyDrawerNavbarState,\n\tTSchmancyDrawerNavbarMode,\n\tTSchmancyDrawerNavbarState,\n} from './context'\n\n/**\n * @element schmancy-nav-drawer\n * @slot appbar - The appbar slot\n * @slot - The content slot\n */\n@customElement('schmancy-nav-drawer')\nexport class SchmancyNavigationDrawer extends $LitElement(css`\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\toverflow: hidden;\n\t\t/* Initially hide the component until it’s ready */\n\t\tvisibility: hidden;\n\t}\n\t/* Once the component is ready, remove the hidden style */\n\t:host([data-ready]) {\n\t\tvisibility: visible;\n\t}\n`) {\n\t// fullscreen property\n\t@property({ type: Boolean })\n\tfullscreen: boolean = false\n\n\t/**\n\t * The breakpoint for the sidebar based on Tailwind CSS breakpoints.\n\t * Accepts: \"sm\", \"md\", \"lg\", or \"xl\".\n\t *\n\t * The following default values are used:\n\t * - sm: 640px\n\t * - md: 768px (default)\n\t * - lg: 1024px\n\t * - xl: 1280px\n\t *\n\t * @attr breakpoint\n\t * @type {\"sm\" | \"md\" | \"lg\" | \"xl\"}\n\t */\n\t@property({ type: String, attribute: 'breakpoint' })\n\tbreakpoint: 'sm' | 'md' | 'lg' | 'xl' = 'md'\n\n\t/**\n\t * Mapping of Tailwind breakpoint tokens to their numeric pixel values.\n\t */\n\tprivate static BREAKPOINTS: Record<'sm' | 'md' | 'lg' | 'xl', number> = {\n\t\tsm: 640,\n\t\tmd: 768,\n\t\tlg: 1024,\n\t\txl: 1280,\n\t}\n\n\t/**\n\t * The mode of the sidebar.\n\t */\n\t@provide({ context: SchmancyDrawerNavbarMode })\n\t@state()\n\tmode: TSchmancyDrawerNavbarMode\n\n\t/**\n\t * The open/close state of the sidebar.\n\t */\n\t@provide({ context: SchmancyDrawerNavbarState })\n\t@property()\n\topen: TSchmancyDrawerNavbarState\n\n\t/**\n\t * A flag indicating that the initial state has been set.\n\t */\n\t@state()\n\tprivate _initialized = false\n\n\t/**\n\t * In firstUpdated, we can safely read attribute-set properties.\n\t * We also initialize our state and subscribe to events.\n\t */\n\tfirstUpdated() {\n\t\t// Set the initial state based on the current window width.\n\t\tthis.updateState(window.innerWidth)\n\t\t// Mark the component as ready\n\t\tthis._initialized = true\n\t\tthis.setAttribute('data-ready', '')\n\n\t\t// Subscribe to window resize events.\n\t\tfromEvent(window, 'resize')\n\t\t\t.pipe(\n\t\t\t\t// Extract the inner width.\n\t\t\t\tmap(event => (event.target as Window).innerWidth),\n\t\t\t\t// Determine if we're above the breakpoint.\n\t\t\t\tmap(width => width >= SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint]),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\tdebounceTime(100),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe(isLargeScreen => {\n\t\t\t\tif (isLargeScreen) {\n\t\t\t\t\tthis.mode = 'push'\n\t\t\t\t\tthis.open = 'open'\n\t\t\t\t} else {\n\t\t\t\t\tthis.mode = 'overlay'\n\t\t\t\t\tthis.open = 'close'\n\t\t\t\t}\n\t\t\t})\n\n\t\t// Listen to the custom toggle event.\n\t\tfromEvent(window, SchmancyEvents.NavDrawer_toggle)\n\t\t\t.pipe(\n\t\t\t\ttap((event: CustomEvent) => {\n\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t}),\n\t\t\t\tmap((event: CustomEvent) => event.detail.state),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t\tdebounceTime(10),\n\t\t\t)\n\t\t\t.subscribe(state => {\n\t\t\t\tconsole.log('Received toggle event:', state)\n\t\t\t\t// When in push mode, ignore a request to close the sidebar.\n\t\t\t\tif (this.mode === 'push' && state === 'close') return\n\t\t\t\tthis.open = state\n\t\t\t})\n\t}\n\n\t/**\n\t * Helper method to update state based on a given width.\n\t */\n\tprivate updateState(width: number) {\n\t\tconst isLargeScreen = width >= SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint]\n\t\tthis.mode = isLargeScreen ? 'push' : 'overlay'\n\t\tthis.open = isLargeScreen ? 'open' : 'close'\n\t}\n\n\tprotected render() {\n\t\t// Optionally, you can check _initialized here,\n\t\t// but the CSS will already hide the component until it's ready.\n\t\tif (!this._initialized) return nothing\n\n\t\treturn html`\n\t\t\t<schmancy-grid\n\t\t\t\tcols=${this.fullscreen ? '1fr' : 'auto 1fr'}\n\t\t\t\trows=\"1fr\"\n\t\t\t\tflow=\"col\"\n\t\t\t\tjustify=\"stretch\"\n\t\t\t\talign=\"stretch\"\n\t\t\t\t${fullHeight()}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</schmancy-grid>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-nav-drawer': SchmancyNavigationDrawer\n\t}\n}\n","import { consume } from '@lit/context'\nimport { $LitElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { SchmancyEvents, SchmancyTheme, color } from '..'\nimport {\n\tSchmancyDrawerNavbarMode,\n\tSchmancyDrawerNavbarState,\n\tTSchmancyDrawerNavbarMode,\n\tTSchmancyDrawerNavbarState,\n} from './context'\n\n// Animation configuration constants.\nconst ANIMATION_EASING = 'cubic-bezier(0.5, 0.01, 0.25, 1)'\nconst OVERLAY_ANIM_DURATION_OPEN = 200\nconst OVERLAY_ANIM_DURATION_CLOSE = 150\nconst NAV_ANIM_DURATION = 200\n\n@customElement('schmancy-nav-drawer-navbar')\nexport class SchmancyNavigationDrawerSidebar extends $LitElement() {\n\t// Consume context values. Renamed from \"state\" to \"drawerState\" to avoid confusion.\n\t@consume({ context: SchmancyDrawerNavbarMode, subscribe: true })\n\t@state()\n\tmode!: TSchmancyDrawerNavbarMode\n\n\t@consume({ context: SchmancyDrawerNavbarState, subscribe: true })\n\t@state()\n\tdrawerState!: TSchmancyDrawerNavbarState\n\n\t@query('#overlay') overlay!: HTMLElement\n\t@query('nav') nav!: HTMLElement\n\n\t@property({ type: String }) width = '320px'\n\t@state() private _initialized = false\n\n\t/**\n\t * firstUpdated()\n\t * Set initial styles based on the current mode and consumed state.\n\t */\n\tfirstUpdated() {\n\t\tif (this.mode === 'overlay') {\n\t\t\tif (this.drawerState === 'close') {\n\t\t\t\tthis.nav.style.transform = 'translateX(-100%)'\n\t\t\t\tthis.overlay.style.display = 'none'\n\t\t\t} else if (this.drawerState === 'open') {\n\t\t\t\tthis.nav.style.transform = 'translateX(0)'\n\t\t\t\tthis.overlay.style.display = 'block'\n\t\t\t\tthis.overlay.style.opacity = '0.4'\n\t\t\t}\n\t\t} else if (this.mode === 'push') {\n\t\t\t// In push mode, the nav is always visible and the overlay hidden.\n\t\t\tthis.nav.style.transform = 'translateX(0)'\n\t\t\tthis.overlay.style.display = 'none'\n\t\t}\n\t\tthis._initialized = true\n\t}\n\n\t/**\n\t * updated()\n\t * Trigger animations when either the consumed mode or state changes.\n\t */\n\tupdated(changedProperties: Map<string, any>) {\n\t\tconsole.log(this._initialized, changedProperties)\n\t\tif (!this._initialized) return\n\n\t\tif (changedProperties.has('drawerState') || changedProperties.has('mode')) {\n\t\t\tconsole.log('State updated:', this.drawerState, this.mode)\n\t\t\tif (this.mode === 'overlay') {\n\t\t\t\tif (this.drawerState === 'open') {\n\t\t\t\t\t// Animate only if the nav isn’t already open.\n\t\t\t\t\tif (this.nav.style.transform !== 'translateX(0)') {\n\t\t\t\t\t\tthis.openOverlay()\n\t\t\t\t\t\tthis.showNavDrawer()\n\t\t\t\t\t}\n\t\t\t\t} else if (this.drawerState === 'close') {\n\t\t\t\t\tconsole.log(this.nav.style.transform)\n\t\t\t\t\tif (this.nav.style.transform !== 'translateX(-100%)') {\n\t\t\t\t\t\tthis.hideNavDrawer()\n\t\t\t\t\t\tthis.closeOverlay()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (this.mode === 'push') {\n\t\t\t\tif (this.nav.style.transform !== 'translateX(0)') {\n\t\t\t\t\tthis.showNavDrawer()\n\t\t\t\t}\n\t\t\t\tif (this.overlay.style.display !== 'none') {\n\t\t\t\t\tthis.closeOverlay()\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Animate the overlay to fade in.\n\t */\n\topenOverlay() {\n\t\tthis.overlay.style.display = 'block'\n\t\tthis.overlay.animate([{ opacity: 0 }, { opacity: 0.4 }], {\n\t\t\tduration: OVERLAY_ANIM_DURATION_OPEN,\n\t\t\teasing: ANIMATION_EASING,\n\t\t\tfill: 'forwards',\n\t\t})\n\t}\n\n\t/**\n\t * Animate the overlay to fade out, then hide it.\n\t */\n\tcloseOverlay() {\n\t\tconst animation = this.overlay.animate([{ opacity: 0.4 }, { opacity: 0 }], {\n\t\t\tduration: OVERLAY_ANIM_DURATION_CLOSE,\n\t\t\teasing: ANIMATION_EASING,\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tanimation.onfinish = () => {\n\t\t\tthis.overlay.style.display = 'none'\n\t\t}\n\t}\n\tshowNavDrawer() {\n\t\t// Use computed style if needed, but here we directly update inline style after animation.\n\t\tconst animation = this.nav.animate([{ transform: 'translateX(-100%)' }, { transform: 'translateX(0)' }], {\n\t\t\tduration: NAV_ANIM_DURATION,\n\t\t\teasing: ANIMATION_EASING,\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tanimation.onfinish = () => {\n\t\t\tthis.nav.style.transform = 'translateX(0)'\n\t\t}\n\t}\n\n\thideNavDrawer() {\n\t\tconst animation = this.nav.animate([{ transform: 'translateX(0)' }, { transform: 'translateX(-100%)' }], {\n\t\t\tduration: NAV_ANIM_DURATION,\n\t\t\teasing: ANIMATION_EASING,\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tanimation.onfinish = () => {\n\t\t\tthis.nav.style.transform = 'translateX(-100%)'\n\t\t}\n\t}\n\n\t/**\n\t * Handle overlay click events by dispatching a custom event\n\t * to close the navigation drawer.\n\t */\n\tprivate handleOverlayClick() {\n\t\twindow.dispatchEvent(\n\t\t\tnew CustomEvent(SchmancyEvents.NavDrawer_toggle, {\n\t\t\t\tdetail: { state: 'close' },\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\tprotected render() {\n\t\tconst sidebarClasses = {\n\t\t\t'p-[16px] max-w-[360px] w-fit h-full overflow-auto': true,\n\t\t\tblock: this.mode === 'push',\n\t\t\t'fixed inset-0 z-50': this.mode === 'overlay',\n\t\t}\n\t\tconst overlayClass = {\n\t\t\t'fixed inset-0 z-49 hidden': true,\n\t\t}\n\t\tconst styleMap = {\n\t\t\twidth: this.width,\n\t\t}\n\n\t\treturn html`\n\t\t\t<nav\n\t\t\t\tstyle=${this.styleMap(styleMap)}\n\t\t\t\tclass=\"${this.classMap({ ...sidebarClasses })}\"\n\t\t\t\t${color({\n\t\t\t\t\tbgColor: SchmancyTheme.sys.color.surface.container,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</nav>\n\t\t\t<div\n\t\t\t\tid=\"overlay\"\n\t\t\t\t${color({\n\t\t\t\t\tbgColor: SchmancyTheme.sys.color.scrim,\n\t\t\t\t})}\n\t\t\t\t@click=${this.handleOverlayClick}\n\t\t\t\tclass=\"${this.classMap({ ...overlayClass })}\"\n\t\t\t></div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-nav-drawer-navbar': SchmancyNavigationDrawerSidebar\n\t}\n}\n","import { bufferTime, concatMap, filter, fromEvent, map, of, Subject, take, tap, timeout, zip } from 'rxjs'\nimport { SchmancyTeleportation } from './teleport.component'\n\nexport type WhereAreYouRickyEvent = CustomEvent<{\n\tid: string\n\tcallerID: number\n}>\n\nexport const WhereAreYouRicky = 'whereAreYouRicky'\n\nexport type HereMortyEvent = CustomEvent<{\n\tcomponent: SchmancyTeleportation\n}>\n\nexport type FLIP_REQUEST = {\n\tfrom: {\n\t\trect: DOMRect\n\t\telement?: HTMLElement\n\t}\n\tto: {\n\t\trect: DOMRect\n\t\telement: HTMLElement\n\t}\n\tstagger?: number\n\thost: HTMLElement\n}\nexport const HereMorty = 'hereMorty'\n\nclass Teleportation {\n\tactiveTeleportations = new Map<string, DOMRect>()\n\tflipRequests = new Subject<FLIP_REQUEST>()\n\n\tconstructor() {\n\t\tthis.flipRequests\n\t\t\t.pipe(\n\t\t\t\tbufferTime(1),\n\t\t\t\tmap(requests =>\n\t\t\t\t\trequests.map(({ from, to, host }, i) => ({\n\t\t\t\t\t\tfrom,\n\t\t\t\t\t\tto,\n\t\t\t\t\t\thost,\n\t\t\t\t\t\ti,\n\t\t\t\t\t})),\n\t\t\t\t),\n\t\t\t\tconcatMap(requests => zip(requests.map(request => of(this.flip(request))))),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\tfind = (component: SchmancyTeleportation) => {\n\t\treturn zip([\n\t\t\tfromEvent<HereMortyEvent>(window, HereMorty).pipe(\n\t\t\t\tfilter(\n\t\t\t\t\te =>\n\t\t\t\t\t\t!!e.detail.component.uuid &&\n\t\t\t\t\t\t!!component.id &&\n\t\t\t\t\t\te.detail.component.id === component.id &&\n\t\t\t\t\t\te.detail.component.uuid !== component.uuid,\n\t\t\t\t),\n\t\t\t\tmap(e => e.detail.component),\n\t\t\t\ttake(1),\n\t\t\t),\n\t\t\tof(component).pipe(\n\t\t\t\ttap(() => {\n\t\t\t\t\twindow.dispatchEvent(\n\t\t\t\t\t\tnew CustomEvent<WhereAreYouRickyEvent['detail']>(WhereAreYouRicky, {\n\t\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t\tid: component.id,\n\t\t\t\t\t\t\t\tcallerID: component.uuid,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}),\n\t\t\t\t\t)\n\t\t\t\t}),\n\t\t\t),\n\t\t]).pipe(\n\t\t\tmap(([component]) => component),\n\t\t\ttimeout(0),\n\t\t)\n\t}\n\n\tflip = (request: {\n\t\tfrom: {\n\t\t\trect: DOMRect\n\t\t}\n\t\tto: {\n\t\t\telement: HTMLElement\n\t\t\trect: DOMRect\n\t\t}\n\t\thost: HTMLElement\n\t\ti: number\n\t}) => {\n\t\tconst { from, to } = request\n\n\t\t// Prepare the element for animation\n\t\tconst originalZIndex = to.element.style.zIndex\n\t\tto.element.style.transformOrigin = 'top left'\n\t\tto.element.style.setProperty('visibility', 'visible')\n\t\tto.element.style.zIndex = '1000'\n\n\t\t// \"onBegin\" logic goes here (since Web Animations doesn't have onBegin).\n\t\t// If you had more logic, place it here:\n\t\t// e.g., console.log('Starting FLIP animation...');\n\n\t\t// Calculate starting and ending transforms\n\t\tconst startX = from.rect.left - to.rect.left\n\t\tconst startY = from.rect.top - to.rect.top\n\t\tconst startScaleX = from.rect.width / to.rect.width\n\t\tconst startScaleY = from.rect.height / to.rect.height\n\n\t\t// Create keyframes\n\t\tconst keyframes: Keyframe[] = [\n\t\t\t{\n\t\t\t\ttransform: `translate(${startX}px, ${startY}px) scale(${startScaleX}, ${startScaleY})`,\n\t\t\t},\n\t\t\t{\n\t\t\t\ttransform: 'translate(0, 0) scale(1, 1)',\n\t\t\t},\n\t\t]\n\n\t\t// Use native Web Animations API\n\t\tconst animation = to.element.animate(keyframes, {\n\t\t\tduration: 250,\n\t\t\tdelay: 10, // if desired\n\t\t\t// Approximate 'inOutQuad' via a cubic-bezier easing.\n\t\t\t// You can adjust these values to taste, or use a standard one:\n\t\t\teasing: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)',\n\t\t\t// or simply 'ease-in-out'\n\t\t})\n\n\t\t// \"onComplete\" logic goes here\n\t\tanimation.onfinish = () => {\n\t\t\tto.element.style.zIndex = originalZIndex\n\t\t\tto.element.style.transformOrigin = ''\n\t\t\t// If you have additional cleanup, place it here\n\t\t\t// e.g., console.log('FLIP animation completed!');\n\t\t}\n\t}\n}\n\nexport const teleport = new Teleportation()\nexport default teleport\n","import { Observable, interval } from 'rxjs'\nimport { distinctUntilChanged, map, take } from 'rxjs/operators'\n\n// Function to monitor element's bounding client rect\nexport function watchElementRect(element: Element): Observable<DOMRectReadOnly> {\n\treturn interval(50).pipe(\n\t\t// startWith(true),\n\t\tmap(() => element.getBoundingClientRect()),\n\t\tdistinctUntilChanged(\n\t\t\t(prev, curr) =>\n\t\t\t\tprev.width === curr.width &&\n\t\t\t\tprev.height === curr.height &&\n\t\t\t\tprev.top === curr.top &&\n\t\t\t\tprev.right === curr.right &&\n\t\t\t\tprev.bottom === curr.bottom &&\n\t\t\t\tprev.left === curr.left,\n\t\t),\n\t\ttake(1),\n\t)\n}\n","import { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { filter, fromEvent, merge, of, takeUntil, tap, throwIfEmpty } from 'rxjs'\nimport { FINDING_MORTIES, FINDING_MORTIES_EVENT, HERE_RICKY, HERE_RICKY_EVENT } from '..'\nimport {\n\tHereMorty,\n\tHereMortyEvent,\n\tWhereAreYouRicky,\n\tWhereAreYouRickyEvent,\n\tdefault as teleport,\n\tdefault as teleportationService,\n} from './teleport.service'\nimport { watchElementRect } from './watcher'\nimport { $LitElement } from '@mixins/index'\n@customElement('schmancy-teleport')\nexport class SchmancyTeleportation extends $LitElement(css``) {\n\t/**\n\t * @attr {string} uuid - The component tag to teleport\n\t * @readonly\n\t */\n\t@property({ type: Number, reflect: true }) uuid = Math.floor(Math.random() * Date.now())\n\n\t/**\n\t * @attr {string} id - The component tag to teleport\n\t * @required\n\t */\n\t@property({ type: String }) id!: string\n\n\t@property({ type: Number }) delay = 0\n\n\tdebugging = import.meta.env.DEV ? true : false\n\n\tget _slottedChildren() {\n\t\tconst slot = this.shadowRoot.querySelector('slot')\n\t\treturn slot.assignedElements({ flatten: true })\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (this.id === undefined) throw new Error('id is required')\n\t\tsuper.connectedCallback()\n\t\tmerge(\n\t\t\tfromEvent<FINDING_MORTIES_EVENT>(window, FINDING_MORTIES).pipe(\n\t\t\t\ttap({\n\t\t\t\t\tnext: () => {\n\t\t\t\t\t\tthis.dispatchEvent(\n\t\t\t\t\t\t\tnew CustomEvent<HERE_RICKY_EVENT['detail']>(HERE_RICKY, {\n\t\t\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t\t\tcomponent: this,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t),\n\t\t\tfromEvent<WhereAreYouRickyEvent>(window, WhereAreYouRicky).pipe(\n\t\t\t\ttap({\n\t\t\t\t\tnext: e => {\n\t\t\t\t\t\tif (e.detail.id === this.id && this.uuid && e.detail.callerID !== this.uuid) {\n\t\t\t\t\t\t\tthis.dispatchEvent(\n\t\t\t\t\t\t\t\tnew CustomEvent<HereMortyEvent['detail']>(HereMorty, {\n\t\t\t\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t\t\t\tcomponent: this,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t.subscribe()\n\t}\n\n\tasync firstUpdated() {\n\t\tof(teleportationService.activeTeleportations.get(this.id))\n\t\t\t.pipe(\n\t\t\t\tfilter(a => !!a),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t\tthrowIfEmpty(),\n\t\t\t)\n\t\t\t.subscribe({\n\t\t\t\tnext: domRect => {\n\t\t\t\t\tconsole.count('teleport')\n\t\t\t\t\tthis.style.setProperty('visibility', 'hidden')\n\t\t\t\t\t// teleport.flipRequests.next({ from: component, to: this, stagger: 0 })\n\t\t\t\t\twatchElementRect(this)\n\t\t\t\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t\t\t\t.subscribe({\n\t\t\t\t\t\t\tnext: e => {\n\t\t\t\t\t\t\t\t// console.log(e)\n\t\t\t\t\t\t\t\tteleportationService.activeTeleportations.set(this.id, e)\n\t\t\t\t\t\t\t\tteleport.flipRequests.next({\n\t\t\t\t\t\t\t\t\tfrom: {\n\t\t\t\t\t\t\t\t\t\trect: domRect,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tto: {\n\t\t\t\t\t\t\t\t\t\trect: e,\n\t\t\t\t\t\t\t\t\t\telement: this._slottedChildren[0] as HTMLElement,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\thost: this,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\terror: () => {\n\t\t\t\t\tthis.style.setProperty('visibility', 'visible')\n\t\t\t\t\twatchElementRect(this)\n\t\t\t\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t\t\t\t.subscribe({\n\t\t\t\t\t\t\tnext: e => {\n\t\t\t\t\t\t\t\tconsole.log(e)\n\t\t\t\t\t\t\t\tteleportationService.activeTeleportations.set(this.id, e)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\tcomplete: () => {},\n\t\t\t})\n\t}\n\n\trender() {\n\t\treturn html`<slot></slot>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-teleport': SchmancyTeleportation\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { color } from '@schmancy/directives'\nimport { SchmancyTheme } from '@schmancy/theme/theme.interface'\n\nexport type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'\nexport type AvatarColor = 'primary' | 'secondary' | 'tertiary' | 'success' | 'error' | 'neutral'\nexport type AvatarShape = 'circle' | 'square'\nexport type AvatarStatus = 'online' | 'offline' | 'busy' | 'away' | 'none'\n\n/**\n * A customizable avatar component that displays initials or an icon\n * Designed to match the Schmancy design system\n *\n * @element schmancy-avatar\n *\n * @property {string} initials - Text initials to display (limited to 2 characters)\n * @property {string} src - URL of an image to display\n * @property {string} icon - Name of an icon to display\n * @property {AvatarSize} size - Size of the avatar (xs, sm, md, lg, xl)\n * @property {AvatarColor} color - Color theme of the avatar\n * @property {AvatarShape} shape - Shape of the avatar (circle or square)\n * @property {boolean} bordered - Whether to add a border around the avatar\n * @property {AvatarStatus} status - Optional status indicator to display\n *\n * @example\n * <schmancy-avatar\n * initials=\"JD\"\n * size=\"md\"\n * color=\"primary\"\n * ></schmancy-avatar>\n */\n@customElement('schmancy-avatar')\nexport class SchmancyAvatar extends $LitElement() {\n\t@property({ type: String }) initials: string = ''\n\t@property({ type: String }) src: string = ''\n\t@property({ type: String }) icon: string = ''\n\t@property({ type: String }) size: AvatarSize = 'md'\n\t@property({ type: String }) color: AvatarColor = 'primary'\n\t@property({ type: String }) shape: AvatarShape = 'circle'\n\t@property({ type: Boolean }) bordered: boolean = false\n\t@property({ type: String }) status: AvatarStatus = 'none'\n\n\trender() {\n\t\t// Determine content to display (image, initials, or icon)\n\t\tlet content\n\t\tif (this.src) {\n\t\t\tcontent = html`<img class=\"w-full h-full object-cover\" src=\"${this.src}\" alt=\"Avatar\" />`\n\t\t} else if (this.initials) {\n\t\t\tcontent = html`<span class=\"text-center font-medium\">${this.initials.substring(0, 2).toUpperCase()}</span>`\n\t\t} else if (this.icon) {\n\t\t\tcontent = html`<schmancy-icon>${this.icon}</schmancy-icon>`\n\t\t} else {\n\t\t\tcontent = html`<schmancy-icon>person</schmancy-icon>`\n\t\t}\n\n\t\t// Size classes\n\t\tconst sizeClasses = {\n\t\t\txs: 'w-6 h-6 text-xs',\n\t\t\tsm: 'w-8 h-8 text-sm',\n\t\t\tmd: 'w-10 h-10 text-base',\n\t\t\tlg: 'w-12 h-12 text-lg',\n\t\t\txl: 'w-16 h-16 text-xl',\n\t\t}\n\n\t\t// Shape classes\n\t\tconst shapeClasses = {\n\t\t\tcircle: 'rounded-full',\n\t\t\tsquare: 'rounded-md',\n\t\t}\n\n\t\t// Combine classes\n\t\tconst avatarClasses = {\n\t\t\t'relative flex items-center justify-center overflow-hidden': true,\n\t\t\t[sizeClasses[this.size]]: true,\n\t\t\t[shapeClasses[this.shape]]: true,\n\t\t\t'border-2 border-surface-container': this.bordered,\n\t\t}\n\n\t\t// Get theme colors\n\t\tconst colorAttrs = this.getColorAttributes()\n\n\t\treturn html`\n\t\t\t<div class=\"${this.classMap(avatarClasses)}\" ${colorAttrs}>\n\t\t\t\t${content} ${this.status !== 'none' ? this.renderStatusIndicator() : ''}\n\t\t\t</div>\n\t\t`\n\t}\n\n\tprivate getColorAttributes() {\n\t\tconst colorMap = {\n\t\t\tprimary: {\n\t\t\t\tbgColor: SchmancyTheme.sys.color.primary.container,\n\t\t\t\tcolor: SchmancyTheme.sys.color.primary.onContainer,\n\t\t\t},\n\t\t\tsecondary: {\n\t\t\t\tbgColor: SchmancyTheme.sys.color.secondary.container,\n\t\t\t\tcolor: SchmancyTheme.sys.color.secondary.onContainer,\n\t\t\t},\n\t\t\ttertiary: {\n\t\t\t\tbgColor: SchmancyTheme.sys.color.tertiary.container,\n\t\t\t\tcolor: SchmancyTheme.sys.color.tertiary.onContainer,\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\tbgColor: SchmancyTheme.sys.color.success.container,\n\t\t\t\tcolor: SchmancyTheme.sys.color.success.onContainer,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tbgColor: SchmancyTheme.sys.color.error.container,\n\t\t\t\tcolor: SchmancyTheme.sys.color.error.onContainer,\n\t\t\t},\n\t\t\tneutral: {\n\t\t\t\tbgColor: SchmancyTheme.sys.color.surface.container,\n\t\t\t\tcolor: SchmancyTheme.sys.color.surface.on,\n\t\t\t},\n\t\t}\n\n\t\treturn color(colorMap[this.color])\n\t}\n\n\tprivate renderStatusIndicator() {\n\t\tconst statusColors = {\n\t\t\tonline: SchmancyTheme.sys.color.success.default,\n\t\t\toffline: SchmancyTheme.sys.color.surface.onVariant,\n\t\t\tbusy: SchmancyTheme.sys.color.error.default,\n\t\t\taway: SchmancyTheme.sys.color.tertiary.default,\n\t\t}\n\n\t\tconst sizeMap = {\n\t\t\txs: 'w-1.5 h-1.5',\n\t\t\tsm: 'w-2 h-2',\n\t\t\tmd: 'w-2.5 h-2.5',\n\t\t\tlg: 'w-3 h-3',\n\t\t\txl: 'w-4 h-4',\n\t\t}\n\n\t\tconst statusClasses = {\n\t\t\t'absolute bottom-0 right-0 rounded-full border-2 border-surface-default': true,\n\t\t\t[sizeMap[this.size]]: true,\n\t\t}\n\n\t\treturn html`\n\t\t\t<div class=\"${this.classMap(statusClasses)}\" style=\"background-color: ${statusColors[this.status]};\"></div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-avatar': SchmancyAvatar\n\t}\n}\n"],"names":["SchmancyBadgeV2","TailwindElement","css","super","arguments","this","color","size","shape","outlined","icon","pulse","getIconSize","styles","letterSpacing","fontWeight","primary","bg","SchmancyTheme","sys","container","default","text","onContainer","border","surface","highest","secondary","tertiary","success","bright","warning","error","neutral","high","outline","on","sizeClasses","getSizeClasses","shapeClasses","getShapeClasses","colorStyles","getColorStyles","iconSize","exoticStyles","getExoticStyles","badgeClasses","shadow","borderColor","transition","backdropFilter","borderWidth","boxShadow","html","classMap","styleMap","bgColor","__decorateClass","property","type","String","reflect","prototype","Boolean","customElement","SchmancyCardMedia","SchmancyCard","elevation","classes","includes","Number","SchmancyCardContent","render","onSurface","onSurfaceVariant","onVariant","src","fit","height","schmancyContentDrawer","$drawer","Subject","pipe","subscribe","data","action","ref","dispatchEvent","CustomEvent","SchmancyEvents","ContentDrawerToggle","detail","state","bubbles","composed","component","title","next","t","SchmancyContentDrawerSheetMode","createContext","SchmancyContentDrawerSheetState","SchmancyContentDrawerID","n","Math","floor","random","Date","now","toString","SchmancyContentDrawerMaxHeight","SchmancyContentDrawerMinWidth","SchmancyContentDrawer","$LitElement","constructor","minWidth","main","sheet","schmancyContentDrawerID","maxHeight","merge","fromEvent","window","ContentDrawerResize","startWith","tap","map","clientWidth","innerWidth","width","debounceTime","innerHeight","getOffsetTop","style","setProperty","distinctUntilChanged","takeUntil","disconnecting","lgScreen","mode","open","event","stopPropagation","area","push","historyStrategy","uid","element","offsetTop","offsetParent","nothing","provide","context","queryAssignedElements","flatten","SchmancyContentDrawerMain","connectedCallback","drawerMinWidth","changedProperties","update","has","when","consume","SchmancyContentDrawerSheet","updated","closeAll","dismiss","position","display","animate","opacity","transform","duration","easing","from","closeModalSheet","closeSheet","of","Observable","observer","onfinish","complete","sheetClasses","block","query","slot","schmancyNavDrawer","NavDrawer_toggle","self","SchmancyDrawerNavbarMode","SchmancyDrawerNavbarState","SchmancyDrawerAppbar","toggler","sidebarToggler","sidebarMode","hidden","sidebarOpen","SchmancyNavigationDrawerContent","e","parentElement","SchmancyNavigationDrawer","fullscreen","breakpoint","_initialized","firstUpdated","updateState","setAttribute","target","BREAKPOINTS","isLargeScreen","fullHeight","sm","md","lg","xl","attribute","ANIMATION_EASING","SchmancyNavigationDrawerSidebar","drawerState","nav","overlay","openOverlay","showNavDrawer","hideNavDrawer","closeOverlay","fill","sidebarClasses","scrim","handleOverlayClick","WhereAreYouRicky","HereMorty","teleport","activeTeleportations","Map","flipRequests","find","zip","filter","uuid","id","take","callerID","timeout","flip","request","to","originalZIndex","zIndex","transformOrigin","keyframes","rect","left","top","delay","bufferTime","requests","host","i","concatMap","watchElementRect","interval","getBoundingClientRect","prev","curr","right","bottom","SchmancyTeleportation","debugging","_slottedChildren","shadowRoot","querySelector","assignedElements","Error","FINDING_MORTIES","HERE_RICKY","teleportationService","get","a","throwIfEmpty","domRect","set","SchmancyAvatar","initials","bordered","status","content","substring","toUpperCase","avatarClasses","xs","circle","square","colorAttrs","getColorAttributes","renderStatusIndicator","colorMap","statusColors","online","offline","busy","away","statusClasses"],"mappings":"2lEAiCaA,QAAAA,gBAAN,cAA8BC,EAAAA,gBAAgBC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAA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