snice 4.24.0 → 4.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/README.md +4 -39
  2. package/bin/mcp-server.js +32 -0
  3. package/dist/cdn/accordion/snice-accordion.js +2 -2
  4. package/dist/cdn/accordion/snice-accordion.min.js +2 -2
  5. package/dist/cdn/activity-feed/snice-activity-feed.js +3 -3
  6. package/dist/cdn/activity-feed/snice-activity-feed.js.map +1 -1
  7. package/dist/cdn/activity-feed/snice-activity-feed.min.js +3 -3
  8. package/dist/cdn/activity-feed/snice-activity-feed.min.js.map +1 -1
  9. package/dist/cdn/alert/snice-alert.js +8 -4
  10. package/dist/cdn/alert/snice-alert.js.map +1 -1
  11. package/dist/cdn/alert/snice-alert.min.js +2 -2
  12. package/dist/cdn/alert/snice-alert.min.js.map +1 -1
  13. package/dist/cdn/app-tiles/snice-app-tiles.js +2 -2
  14. package/dist/cdn/app-tiles/snice-app-tiles.min.js +2 -2
  15. package/dist/cdn/approval-flow/snice-approval-flow.js +3 -3
  16. package/dist/cdn/approval-flow/snice-approval-flow.js.map +1 -1
  17. package/dist/cdn/approval-flow/snice-approval-flow.min.js +3 -3
  18. package/dist/cdn/approval-flow/snice-approval-flow.min.js.map +1 -1
  19. package/dist/cdn/audio-recorder/README.md +1 -1
  20. package/dist/cdn/audio-recorder/snice-audio-recorder.js +2 -2
  21. package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +2 -2
  22. package/dist/cdn/availability/snice-availability.js +2 -2
  23. package/dist/cdn/availability/snice-availability.min.js +2 -2
  24. package/dist/cdn/avatar/snice-avatar.js +2 -2
  25. package/dist/cdn/avatar/snice-avatar.min.js +2 -2
  26. package/dist/cdn/avatar-group/snice-avatar-group.js +3 -3
  27. package/dist/cdn/avatar-group/snice-avatar-group.js.map +1 -1
  28. package/dist/cdn/avatar-group/snice-avatar-group.min.js +16 -16
  29. package/dist/cdn/avatar-group/snice-avatar-group.min.js.map +1 -1
  30. package/dist/cdn/badge/snice-badge.js +2 -2
  31. package/dist/cdn/badge/snice-badge.min.js +2 -2
  32. package/dist/cdn/banner/snice-banner.js +9 -5
  33. package/dist/cdn/banner/snice-banner.js.map +1 -1
  34. package/dist/cdn/banner/snice-banner.min.js +3 -3
  35. package/dist/cdn/banner/snice-banner.min.js.map +1 -1
  36. package/dist/cdn/book/snice-book.js +2 -2
  37. package/dist/cdn/book/snice-book.min.js +2 -2
  38. package/dist/cdn/booking/snice-booking.js +2 -2
  39. package/dist/cdn/booking/snice-booking.min.js +2 -2
  40. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +8 -4
  41. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js.map +1 -1
  42. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +2 -2
  43. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js.map +1 -1
  44. package/dist/cdn/button/snice-button.js +8 -4
  45. package/dist/cdn/button/snice-button.js.map +1 -1
  46. package/dist/cdn/button/snice-button.min.js +2 -2
  47. package/dist/cdn/button/snice-button.min.js.map +1 -1
  48. package/dist/cdn/calendar/snice-calendar.js +2 -2
  49. package/dist/cdn/calendar/snice-calendar.min.js +2 -2
  50. package/dist/cdn/camera/snice-camera.js +2 -2
  51. package/dist/cdn/camera/snice-camera.min.js +2 -2
  52. package/dist/cdn/camera-annotate/snice-camera-annotate.js +2 -2
  53. package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +2 -2
  54. package/dist/cdn/candlestick/snice-candlestick.js +2 -2
  55. package/dist/cdn/candlestick/snice-candlestick.min.js +2 -2
  56. package/dist/cdn/card/README.md +1 -1
  57. package/dist/cdn/card/snice-card.js +2 -2
  58. package/dist/cdn/card/snice-card.min.js +2 -2
  59. package/dist/cdn/carousel/snice-carousel.js +2 -2
  60. package/dist/cdn/carousel/snice-carousel.min.js +2 -2
  61. package/dist/cdn/cart/snice-cart.js +3 -3
  62. package/dist/cdn/cart/snice-cart.js.map +1 -1
  63. package/dist/cdn/cart/snice-cart.min.js +3 -3
  64. package/dist/cdn/cart/snice-cart.min.js.map +1 -1
  65. package/dist/cdn/chart/snice-chart.js +2 -2
  66. package/dist/cdn/chart/snice-chart.min.js +2 -2
  67. package/dist/cdn/chat/snice-chat.js +9 -5
  68. package/dist/cdn/chat/snice-chat.js.map +1 -1
  69. package/dist/cdn/chat/snice-chat.min.js +3 -3
  70. package/dist/cdn/chat/snice-chat.min.js.map +1 -1
  71. package/dist/cdn/checkbox/snice-checkbox.js +2 -2
  72. package/dist/cdn/checkbox/snice-checkbox.min.js +2 -2
  73. package/dist/cdn/chip/README.md +1 -1
  74. package/dist/cdn/chip/snice-chip.js +8 -4
  75. package/dist/cdn/chip/snice-chip.js.map +1 -1
  76. package/dist/cdn/chip/snice-chip.min.js +2 -2
  77. package/dist/cdn/chip/snice-chip.min.js.map +1 -1
  78. package/dist/cdn/code-block/snice-code-block.js +2 -2
  79. package/dist/cdn/code-block/snice-code-block.min.js +2 -2
  80. package/dist/cdn/color-display/snice-color-display.js +3 -3
  81. package/dist/cdn/color-display/snice-color-display.js.map +1 -1
  82. package/dist/cdn/color-display/snice-color-display.min.js +4 -4
  83. package/dist/cdn/color-display/snice-color-display.min.js.map +1 -1
  84. package/dist/cdn/color-picker/snice-color-picker.js +2 -2
  85. package/dist/cdn/color-picker/snice-color-picker.min.js +2 -2
  86. package/dist/cdn/command-palette/README.md +1 -1
  87. package/dist/cdn/command-palette/snice-command-palette.js +2 -2
  88. package/dist/cdn/command-palette/snice-command-palette.min.js +2 -2
  89. package/dist/cdn/comments/snice-comments.js +3 -3
  90. package/dist/cdn/comments/snice-comments.js.map +1 -1
  91. package/dist/cdn/comments/snice-comments.min.js +3 -3
  92. package/dist/cdn/comments/snice-comments.min.js.map +1 -1
  93. package/dist/cdn/countdown/README.md +1 -1
  94. package/dist/cdn/countdown/snice-countdown.js +2 -2
  95. package/dist/cdn/countdown/snice-countdown.min.js +2 -2
  96. package/dist/cdn/cropper/snice-cropper.js +2 -2
  97. package/dist/cdn/cropper/snice-cropper.min.js +2 -2
  98. package/dist/cdn/data-card/snice-data-card.js +3 -3
  99. package/dist/cdn/data-card/snice-data-card.js.map +1 -1
  100. package/dist/cdn/data-card/snice-data-card.min.js +3 -3
  101. package/dist/cdn/data-card/snice-data-card.min.js.map +1 -1
  102. package/dist/cdn/date-picker/snice-date-picker.js +2 -2
  103. package/dist/cdn/date-picker/snice-date-picker.min.js +2 -2
  104. package/dist/cdn/date-time-picker/README.md +2 -2
  105. package/dist/cdn/date-time-picker/snice-date-time-picker.js +2 -2
  106. package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +2 -2
  107. package/dist/cdn/diff/snice-diff.js +2 -2
  108. package/dist/cdn/diff/snice-diff.min.js +2 -2
  109. package/dist/cdn/divider/snice-divider.js +2 -2
  110. package/dist/cdn/divider/snice-divider.min.js +2 -2
  111. package/dist/cdn/doc/snice-doc.js +2 -2
  112. package/dist/cdn/doc/snice-doc.min.js +2 -2
  113. package/dist/cdn/draw/snice-draw.js +2 -2
  114. package/dist/cdn/draw/snice-draw.min.js +2 -2
  115. package/dist/cdn/drawer/README.md +1 -1
  116. package/dist/cdn/drawer/snice-drawer.js +12 -6
  117. package/dist/cdn/drawer/snice-drawer.js.map +1 -1
  118. package/dist/cdn/drawer/snice-drawer.min.js +4 -4
  119. package/dist/cdn/drawer/snice-drawer.min.js.map +1 -1
  120. package/dist/cdn/empty-state/snice-empty-state.js +9 -5
  121. package/dist/cdn/empty-state/snice-empty-state.js.map +1 -1
  122. package/dist/cdn/empty-state/snice-empty-state.min.js +3 -3
  123. package/dist/cdn/empty-state/snice-empty-state.min.js.map +1 -1
  124. package/dist/cdn/estimate/snice-estimate.js +3 -3
  125. package/dist/cdn/estimate/snice-estimate.js.map +1 -1
  126. package/dist/cdn/estimate/snice-estimate.min.js +3 -3
  127. package/dist/cdn/estimate/snice-estimate.min.js.map +1 -1
  128. package/dist/cdn/file-gallery/snice-file-gallery.js +2 -2
  129. package/dist/cdn/file-gallery/snice-file-gallery.min.js +2 -2
  130. package/dist/cdn/file-upload/snice-file-upload.js +3 -3
  131. package/dist/cdn/file-upload/snice-file-upload.js.map +1 -1
  132. package/dist/cdn/file-upload/snice-file-upload.min.js +3 -3
  133. package/dist/cdn/file-upload/snice-file-upload.min.js.map +1 -1
  134. package/dist/cdn/flip-card/snice-flip-card.js +2 -2
  135. package/dist/cdn/flip-card/snice-flip-card.min.js +2 -2
  136. package/dist/cdn/flow/README.md +1 -1
  137. package/dist/cdn/flow/snice-flow.js +2 -2
  138. package/dist/cdn/flow/snice-flow.min.js +2 -2
  139. package/dist/cdn/form-layout/snice-form-layout.js +3 -3
  140. package/dist/cdn/form-layout/snice-form-layout.js.map +1 -1
  141. package/dist/cdn/form-layout/snice-form-layout.min.js +3 -3
  142. package/dist/cdn/form-layout/snice-form-layout.min.js.map +1 -1
  143. package/dist/cdn/funnel/README.md +2 -2
  144. package/dist/cdn/funnel/snice-funnel.js +2 -2
  145. package/dist/cdn/funnel/snice-funnel.min.js +2 -2
  146. package/dist/cdn/gantt/README.md +1 -1
  147. package/dist/cdn/gantt/snice-gantt.js +2 -2
  148. package/dist/cdn/gantt/snice-gantt.min.js +2 -2
  149. package/dist/cdn/gauge/snice-gauge.js +2 -2
  150. package/dist/cdn/gauge/snice-gauge.min.js +2 -2
  151. package/dist/cdn/heatmap/README.md +1 -1
  152. package/dist/cdn/heatmap/snice-heatmap.js +2 -2
  153. package/dist/cdn/heatmap/snice-heatmap.min.js +2 -2
  154. package/dist/cdn/image/snice-image.js +3 -3
  155. package/dist/cdn/image/snice-image.js.map +1 -1
  156. package/dist/cdn/image/snice-image.min.js +3 -3
  157. package/dist/cdn/image/snice-image.min.js.map +1 -1
  158. package/dist/cdn/input/README.md +1 -1
  159. package/dist/cdn/input/snice-input.js +9 -5
  160. package/dist/cdn/input/snice-input.js.map +1 -1
  161. package/dist/cdn/input/snice-input.min.js +3 -3
  162. package/dist/cdn/input/snice-input.min.js.map +1 -1
  163. package/dist/cdn/invoice/snice-invoice.js +3 -3
  164. package/dist/cdn/invoice/snice-invoice.js.map +1 -1
  165. package/dist/cdn/invoice/snice-invoice.min.js +4 -4
  166. package/dist/cdn/invoice/snice-invoice.min.js.map +1 -1
  167. package/dist/cdn/kanban/snice-kanban.js +2 -2
  168. package/dist/cdn/kanban/snice-kanban.min.js +2 -2
  169. package/dist/cdn/key-value/snice-key-value.js +3 -3
  170. package/dist/cdn/key-value/snice-key-value.js.map +1 -1
  171. package/dist/cdn/key-value/snice-key-value.min.js +3 -3
  172. package/dist/cdn/key-value/snice-key-value.min.js.map +1 -1
  173. package/dist/cdn/kpi/snice-kpi.js +3 -3
  174. package/dist/cdn/kpi/snice-kpi.js.map +1 -1
  175. package/dist/cdn/kpi/snice-kpi.min.js +3 -3
  176. package/dist/cdn/kpi/snice-kpi.min.js.map +1 -1
  177. package/dist/cdn/layout/snice-layout.js +3 -3
  178. package/dist/cdn/layout/snice-layout.js.map +1 -1
  179. package/dist/cdn/layout/snice-layout.min.js +3 -3
  180. package/dist/cdn/layout/snice-layout.min.js.map +1 -1
  181. package/dist/cdn/leaderboard/snice-leaderboard.js +3 -3
  182. package/dist/cdn/leaderboard/snice-leaderboard.js.map +1 -1
  183. package/dist/cdn/leaderboard/snice-leaderboard.min.js +3 -3
  184. package/dist/cdn/leaderboard/snice-leaderboard.min.js.map +1 -1
  185. package/dist/cdn/link/snice-link.js +3 -3
  186. package/dist/cdn/link/snice-link.js.map +1 -1
  187. package/dist/cdn/link/snice-link.min.js +3 -3
  188. package/dist/cdn/link/snice-link.min.js.map +1 -1
  189. package/dist/cdn/link-preview/snice-link-preview.js +3 -3
  190. package/dist/cdn/link-preview/snice-link-preview.js.map +1 -1
  191. package/dist/cdn/link-preview/snice-link-preview.min.js +3 -3
  192. package/dist/cdn/link-preview/snice-link-preview.min.js.map +1 -1
  193. package/dist/cdn/list/snice-list.js +10 -6
  194. package/dist/cdn/list/snice-list.js.map +1 -1
  195. package/dist/cdn/list/snice-list.min.js +4 -4
  196. package/dist/cdn/list/snice-list.min.js.map +1 -1
  197. package/dist/cdn/location/snice-location.js +8 -4
  198. package/dist/cdn/location/snice-location.js.map +1 -1
  199. package/dist/cdn/location/snice-location.min.js +2 -2
  200. package/dist/cdn/location/snice-location.min.js.map +1 -1
  201. package/dist/cdn/login/snice-login.js +8 -4
  202. package/dist/cdn/login/snice-login.js.map +1 -1
  203. package/dist/cdn/login/snice-login.min.js +2 -2
  204. package/dist/cdn/login/snice-login.min.js.map +1 -1
  205. package/dist/cdn/map/README.md +1 -1
  206. package/dist/cdn/map/snice-map.js +2 -2
  207. package/dist/cdn/map/snice-map.min.js +2 -2
  208. package/dist/cdn/markdown/snice-markdown.js +2 -2
  209. package/dist/cdn/markdown/snice-markdown.min.js +2 -2
  210. package/dist/cdn/masonry/snice-masonry.js +2 -2
  211. package/dist/cdn/masonry/snice-masonry.min.js +2 -2
  212. package/dist/cdn/menu/snice-menu.js +2 -2
  213. package/dist/cdn/menu/snice-menu.min.js +2 -2
  214. package/dist/cdn/message-strip/snice-message-strip.js +8 -4
  215. package/dist/cdn/message-strip/snice-message-strip.js.map +1 -1
  216. package/dist/cdn/message-strip/snice-message-strip.min.js +2 -2
  217. package/dist/cdn/message-strip/snice-message-strip.min.js.map +1 -1
  218. package/dist/cdn/metric-table/snice-metric-table.js +3 -3
  219. package/dist/cdn/metric-table/snice-metric-table.js.map +1 -1
  220. package/dist/cdn/metric-table/snice-metric-table.min.js +8 -8
  221. package/dist/cdn/metric-table/snice-metric-table.min.js.map +1 -1
  222. package/dist/cdn/modal/README.md +1 -1
  223. package/dist/cdn/modal/snice-modal.js +2 -2
  224. package/dist/cdn/modal/snice-modal.min.js +2 -2
  225. package/dist/cdn/music-player/snice-music-player.js +2 -2
  226. package/dist/cdn/music-player/snice-music-player.min.js +2 -2
  227. package/dist/cdn/nav/snice-nav.js +3 -3
  228. package/dist/cdn/nav/snice-nav.js.map +1 -1
  229. package/dist/cdn/nav/snice-nav.min.js +3 -3
  230. package/dist/cdn/nav/snice-nav.min.js.map +1 -1
  231. package/dist/cdn/network-graph/snice-network-graph.js +2 -2
  232. package/dist/cdn/network-graph/snice-network-graph.min.js +2 -2
  233. package/dist/cdn/notification-center/snice-notification-center.js +9 -5
  234. package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
  235. package/dist/cdn/notification-center/snice-notification-center.min.js +3 -3
  236. package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
  237. package/dist/cdn/order-tracker/snice-order-tracker.js +3 -3
  238. package/dist/cdn/order-tracker/snice-order-tracker.js.map +1 -1
  239. package/dist/cdn/order-tracker/snice-order-tracker.min.js +3 -3
  240. package/dist/cdn/order-tracker/snice-order-tracker.min.js.map +1 -1
  241. package/dist/cdn/org-chart/README.md +1 -1
  242. package/dist/cdn/org-chart/snice-org-chart.js +2 -2
  243. package/dist/cdn/org-chart/snice-org-chart.min.js +2 -2
  244. package/dist/cdn/pagination/snice-pagination.js +2 -2
  245. package/dist/cdn/pagination/snice-pagination.min.js +2 -2
  246. package/dist/cdn/paint/snice-paint.js +2 -2
  247. package/dist/cdn/paint/snice-paint.min.js +2 -2
  248. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +2 -2
  249. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +2 -2
  250. package/dist/cdn/permission-matrix/snice-permission-matrix.js +3 -3
  251. package/dist/cdn/permission-matrix/snice-permission-matrix.js.map +1 -1
  252. package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +12 -12
  253. package/dist/cdn/permission-matrix/snice-permission-matrix.min.js.map +1 -1
  254. package/dist/cdn/podcast-player/snice-podcast-player.js +2 -2
  255. package/dist/cdn/podcast-player/snice-podcast-player.min.js +2 -2
  256. package/dist/cdn/pricing-table/README.md +1 -1
  257. package/dist/cdn/pricing-table/snice-pricing-table.js +3 -3
  258. package/dist/cdn/pricing-table/snice-pricing-table.js.map +1 -1
  259. package/dist/cdn/pricing-table/snice-pricing-table.min.js +3 -3
  260. package/dist/cdn/pricing-table/snice-pricing-table.min.js.map +1 -1
  261. package/dist/cdn/product-card/snice-product-card.js +3 -3
  262. package/dist/cdn/product-card/snice-product-card.js.map +1 -1
  263. package/dist/cdn/product-card/snice-product-card.min.js +3 -3
  264. package/dist/cdn/product-card/snice-product-card.min.js.map +1 -1
  265. package/dist/cdn/progress/README.md +1 -1
  266. package/dist/cdn/progress/snice-progress.js +2 -2
  267. package/dist/cdn/progress/snice-progress.min.js +2 -2
  268. package/dist/cdn/progress-ring/snice-progress-ring.js +2 -2
  269. package/dist/cdn/progress-ring/snice-progress-ring.min.js +2 -2
  270. package/dist/cdn/qr-code/snice-qr-code.js +2 -2
  271. package/dist/cdn/qr-code/snice-qr-code.min.js +2 -2
  272. package/dist/cdn/qr-reader/README.md +1 -1
  273. package/dist/cdn/qr-reader/snice-qr-reader.js +2 -2
  274. package/dist/cdn/qr-reader/snice-qr-reader.min.js +2 -2
  275. package/dist/cdn/radio/snice-radio.js +3 -3
  276. package/dist/cdn/radio/snice-radio.js.map +1 -1
  277. package/dist/cdn/radio/snice-radio.min.js +3 -3
  278. package/dist/cdn/radio/snice-radio.min.js.map +1 -1
  279. package/dist/cdn/range-slider/snice-range-slider.js +2 -2
  280. package/dist/cdn/range-slider/snice-range-slider.min.js +2 -2
  281. package/dist/cdn/rating/snice-rating.js +2 -2
  282. package/dist/cdn/rating/snice-rating.min.js +2 -2
  283. package/dist/cdn/receipt/snice-receipt.js +3 -3
  284. package/dist/cdn/receipt/snice-receipt.js.map +1 -1
  285. package/dist/cdn/receipt/snice-receipt.min.js +7 -7
  286. package/dist/cdn/receipt/snice-receipt.min.js.map +1 -1
  287. package/dist/cdn/recipe/snice-recipe.js +3 -3
  288. package/dist/cdn/recipe/snice-recipe.js.map +1 -1
  289. package/dist/cdn/recipe/snice-recipe.min.js +3 -3
  290. package/dist/cdn/recipe/snice-recipe.min.js.map +1 -1
  291. package/dist/cdn/runtime/README.md +1 -1
  292. package/dist/cdn/runtime/snice-runtime.esm.js +8 -8
  293. package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
  294. package/dist/cdn/runtime/snice-runtime.esm.min.js +8 -8
  295. package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
  296. package/dist/cdn/runtime/snice-runtime.js +8 -8
  297. package/dist/cdn/runtime/snice-runtime.js.map +1 -1
  298. package/dist/cdn/runtime/snice-runtime.min.js +8 -8
  299. package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
  300. package/dist/cdn/sankey/README.md +1 -1
  301. package/dist/cdn/sankey/snice-sankey.js +2 -2
  302. package/dist/cdn/sankey/snice-sankey.min.js +2 -2
  303. package/dist/cdn/segmented-control/snice-segmented-control.js +2 -2
  304. package/dist/cdn/segmented-control/snice-segmented-control.min.js +2 -2
  305. package/dist/cdn/select/snice-select.js +2 -2
  306. package/dist/cdn/select/snice-select.min.js +2 -2
  307. package/dist/cdn/skeleton/snice-skeleton.js +2 -2
  308. package/dist/cdn/skeleton/snice-skeleton.min.js +2 -2
  309. package/dist/cdn/slider/README.md +1 -1
  310. package/dist/cdn/slider/snice-slider.js +2 -2
  311. package/dist/cdn/slider/snice-slider.min.js +2 -2
  312. package/dist/cdn/sortable/README.md +1 -1
  313. package/dist/cdn/sortable/snice-sortable.js +2 -2
  314. package/dist/cdn/sortable/snice-sortable.min.js +2 -2
  315. package/dist/cdn/sparkline/README.md +1 -1
  316. package/dist/cdn/sparkline/snice-sparkline.js +2 -2
  317. package/dist/cdn/sparkline/snice-sparkline.min.js +2 -2
  318. package/dist/cdn/spinner/README.md +2 -2
  319. package/dist/cdn/spinner/snice-spinner.js +2 -2
  320. package/dist/cdn/spinner/snice-spinner.min.js +2 -2
  321. package/dist/cdn/split-button/snice-split-button.js +2 -2
  322. package/dist/cdn/split-button/snice-split-button.min.js +2 -2
  323. package/dist/cdn/split-pane/snice-split-pane.js +2 -2
  324. package/dist/cdn/split-pane/snice-split-pane.min.js +2 -2
  325. package/dist/cdn/spotlight/snice-spotlight.js +2 -2
  326. package/dist/cdn/spotlight/snice-spotlight.min.js +2 -2
  327. package/dist/cdn/spreadsheet/README.md +2 -2
  328. package/dist/cdn/spreadsheet/snice-spreadsheet.js +2 -2
  329. package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +2 -2
  330. package/dist/cdn/stat-group/snice-stat-group.js +3 -3
  331. package/dist/cdn/stat-group/snice-stat-group.js.map +1 -1
  332. package/dist/cdn/stat-group/snice-stat-group.min.js +4 -4
  333. package/dist/cdn/stat-group/snice-stat-group.min.js.map +1 -1
  334. package/dist/cdn/step-input/snice-step-input.js +3 -3
  335. package/dist/cdn/step-input/snice-step-input.js.map +1 -1
  336. package/dist/cdn/step-input/snice-step-input.min.js +3 -3
  337. package/dist/cdn/step-input/snice-step-input.min.js.map +1 -1
  338. package/dist/cdn/stepper/README.md +1 -1
  339. package/dist/cdn/stepper/snice-stepper.js +3 -3
  340. package/dist/cdn/stepper/snice-stepper.js.map +1 -1
  341. package/dist/cdn/stepper/snice-stepper.min.js +4 -4
  342. package/dist/cdn/stepper/snice-stepper.min.js.map +1 -1
  343. package/dist/cdn/switch/snice-switch.js +2 -2
  344. package/dist/cdn/switch/snice-switch.min.js +2 -2
  345. package/dist/cdn/table/README.md +1 -1
  346. package/dist/cdn/table/snice-table.js +9 -5
  347. package/dist/cdn/table/snice-table.js.map +1 -1
  348. package/dist/cdn/table/snice-table.min.js +3 -3
  349. package/dist/cdn/table/snice-table.min.js.map +1 -1
  350. package/dist/cdn/tabs/README.md +1 -1
  351. package/dist/cdn/tabs/snice-tabs.js +2 -2
  352. package/dist/cdn/tabs/snice-tabs.min.js +2 -2
  353. package/dist/cdn/tag/snice-tag.js +2 -2
  354. package/dist/cdn/tag/snice-tag.min.js +2 -2
  355. package/dist/cdn/tag-input/snice-tag-input.js +3 -3
  356. package/dist/cdn/tag-input/snice-tag-input.js.map +1 -1
  357. package/dist/cdn/tag-input/snice-tag-input.min.js +11 -11
  358. package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -1
  359. package/dist/cdn/terminal/snice-terminal.js +2 -2
  360. package/dist/cdn/terminal/snice-terminal.min.js +2 -2
  361. package/dist/cdn/testimonial/snice-testimonial.js +2 -2
  362. package/dist/cdn/testimonial/snice-testimonial.min.js +2 -2
  363. package/dist/cdn/textarea/README.md +1 -1
  364. package/dist/cdn/textarea/snice-textarea.js +2 -2
  365. package/dist/cdn/textarea/snice-textarea.min.js +2 -2
  366. package/dist/cdn/time-picker/snice-time-picker.js +2 -2
  367. package/dist/cdn/time-picker/snice-time-picker.min.js +2 -2
  368. package/dist/cdn/time-range-picker/snice-time-range-picker.js +3 -3
  369. package/dist/cdn/time-range-picker/snice-time-range-picker.js.map +1 -1
  370. package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +3 -3
  371. package/dist/cdn/time-range-picker/snice-time-range-picker.min.js.map +1 -1
  372. package/dist/cdn/timeline/snice-timeline.js +3 -3
  373. package/dist/cdn/timeline/snice-timeline.js.map +1 -1
  374. package/dist/cdn/timeline/snice-timeline.min.js +4 -4
  375. package/dist/cdn/timeline/snice-timeline.min.js.map +1 -1
  376. package/dist/cdn/timer/snice-timer.js +3 -3
  377. package/dist/cdn/timer/snice-timer.js.map +1 -1
  378. package/dist/cdn/timer/snice-timer.min.js +3 -3
  379. package/dist/cdn/timer/snice-timer.min.js.map +1 -1
  380. package/dist/cdn/toast/snice-toast.js +2 -2
  381. package/dist/cdn/toast/snice-toast.min.js +2 -2
  382. package/dist/cdn/tooltip/snice-tooltip.js +2 -2
  383. package/dist/cdn/tooltip/snice-tooltip.min.js +2 -2
  384. package/dist/cdn/tree/README.md +2 -2
  385. package/dist/cdn/tree/snice-tree.js +2 -2
  386. package/dist/cdn/tree/snice-tree.min.js +2 -2
  387. package/dist/cdn/treemap/snice-treemap.js +2 -2
  388. package/dist/cdn/treemap/snice-treemap.min.js +2 -2
  389. package/dist/cdn/user-card/snice-user-card.js +3 -3
  390. package/dist/cdn/user-card/snice-user-card.js.map +1 -1
  391. package/dist/cdn/user-card/snice-user-card.min.js +7 -7
  392. package/dist/cdn/user-card/snice-user-card.min.js.map +1 -1
  393. package/dist/cdn/video-player/snice-video-player.js +2 -2
  394. package/dist/cdn/video-player/snice-video-player.min.js +2 -2
  395. package/dist/cdn/virtual-scroller/README.md +1 -1
  396. package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +2 -2
  397. package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +2 -2
  398. package/dist/cdn/waterfall/README.md +1 -1
  399. package/dist/cdn/waterfall/snice-waterfall.js +2 -2
  400. package/dist/cdn/waterfall/snice-waterfall.min.js +2 -2
  401. package/dist/cdn/weather/snice-weather.js +2 -2
  402. package/dist/cdn/weather/snice-weather.min.js +2 -2
  403. package/dist/cdn/work-order/snice-work-order.js +3 -3
  404. package/dist/cdn/work-order/snice-work-order.js.map +1 -1
  405. package/dist/cdn/work-order/snice-work-order.min.js +3 -3
  406. package/dist/cdn/work-order/snice-work-order.min.js.map +1 -1
  407. package/dist/components/activity-feed/snice-activity-feed.js +1 -1
  408. package/dist/components/activity-feed/snice-activity-feed.js.map +1 -1
  409. package/dist/components/approval-flow/snice-approval-flow.js +1 -1
  410. package/dist/components/approval-flow/snice-approval-flow.js.map +1 -1
  411. package/dist/components/avatar-group/snice-avatar-group.js +1 -1
  412. package/dist/components/avatar-group/snice-avatar-group.js.map +1 -1
  413. package/dist/components/banner/snice-banner.js +1 -1
  414. package/dist/components/banner/snice-banner.js.map +1 -1
  415. package/dist/components/cart/snice-cart.js +1 -1
  416. package/dist/components/cart/snice-cart.js.map +1 -1
  417. package/dist/components/color-display/snice-color-display.js +1 -1
  418. package/dist/components/color-display/snice-color-display.js.map +1 -1
  419. package/dist/components/comments/snice-comments.js +1 -1
  420. package/dist/components/comments/snice-comments.js.map +1 -1
  421. package/dist/components/data-card/snice-data-card.js +1 -1
  422. package/dist/components/data-card/snice-data-card.js.map +1 -1
  423. package/dist/components/drawer/snice-drawer.js +10 -4
  424. package/dist/components/drawer/snice-drawer.js.map +1 -1
  425. package/dist/components/empty-state/snice-empty-state.js +1 -1
  426. package/dist/components/empty-state/snice-empty-state.js.map +1 -1
  427. package/dist/components/estimate/snice-estimate.js +1 -1
  428. package/dist/components/estimate/snice-estimate.js.map +1 -1
  429. package/dist/components/file-upload/snice-file-upload.js +1 -1
  430. package/dist/components/file-upload/snice-file-upload.js.map +1 -1
  431. package/dist/components/form-layout/snice-form-layout.js +1 -1
  432. package/dist/components/form-layout/snice-form-layout.js.map +1 -1
  433. package/dist/components/image/snice-image.js +1 -1
  434. package/dist/components/image/snice-image.js.map +1 -1
  435. package/dist/components/input/snice-input.js +1 -1
  436. package/dist/components/input/snice-input.js.map +1 -1
  437. package/dist/components/invoice/snice-invoice.js +1 -1
  438. package/dist/components/invoice/snice-invoice.js.map +1 -1
  439. package/dist/components/key-value/snice-key-value.js +1 -1
  440. package/dist/components/key-value/snice-key-value.js.map +1 -1
  441. package/dist/components/kpi/snice-kpi.js +1 -1
  442. package/dist/components/kpi/snice-kpi.js.map +1 -1
  443. package/dist/components/leaderboard/snice-leaderboard.js +1 -1
  444. package/dist/components/leaderboard/snice-leaderboard.js.map +1 -1
  445. package/dist/components/link/snice-link.js +1 -1
  446. package/dist/components/link/snice-link.js.map +1 -1
  447. package/dist/components/link-preview/snice-link-preview.js +1 -1
  448. package/dist/components/link-preview/snice-link-preview.js.map +1 -1
  449. package/dist/components/list/snice-list-item.js +1 -1
  450. package/dist/components/list/snice-list-item.js.map +1 -1
  451. package/dist/components/metric-table/snice-metric-table.js +1 -1
  452. package/dist/components/metric-table/snice-metric-table.js.map +1 -1
  453. package/dist/components/nav/snice-nav.js +1 -1
  454. package/dist/components/nav/snice-nav.js.map +1 -1
  455. package/dist/components/order-tracker/snice-order-tracker.js +1 -1
  456. package/dist/components/order-tracker/snice-order-tracker.js.map +1 -1
  457. package/dist/components/permission-matrix/snice-permission-matrix.js +1 -1
  458. package/dist/components/permission-matrix/snice-permission-matrix.js.map +1 -1
  459. package/dist/components/pricing-table/snice-pricing-table.js +1 -1
  460. package/dist/components/pricing-table/snice-pricing-table.js.map +1 -1
  461. package/dist/components/product-card/snice-product-card.js +1 -1
  462. package/dist/components/product-card/snice-product-card.js.map +1 -1
  463. package/dist/components/radio/snice-radio.js +1 -1
  464. package/dist/components/radio/snice-radio.js.map +1 -1
  465. package/dist/components/receipt/snice-receipt.js +1 -1
  466. package/dist/components/receipt/snice-receipt.js.map +1 -1
  467. package/dist/components/recipe/snice-recipe.js +1 -1
  468. package/dist/components/recipe/snice-recipe.js.map +1 -1
  469. package/dist/components/stat-group/snice-stat-group.js +1 -1
  470. package/dist/components/stat-group/snice-stat-group.js.map +1 -1
  471. package/dist/components/step-input/snice-step-input.js +1 -1
  472. package/dist/components/step-input/snice-step-input.js.map +1 -1
  473. package/dist/components/stepper/snice-stepper.js +1 -1
  474. package/dist/components/stepper/snice-stepper.js.map +1 -1
  475. package/dist/components/tag-input/snice-tag-input.js +1 -1
  476. package/dist/components/tag-input/snice-tag-input.js.map +1 -1
  477. package/dist/components/time-range-picker/snice-time-range-picker.js +1 -1
  478. package/dist/components/time-range-picker/snice-time-range-picker.js.map +1 -1
  479. package/dist/components/timeline/snice-timeline.js +1 -1
  480. package/dist/components/timeline/snice-timeline.js.map +1 -1
  481. package/dist/components/timer/snice-timer.js +1 -1
  482. package/dist/components/timer/snice-timer.js.map +1 -1
  483. package/dist/components/user-card/snice-user-card.js +1 -1
  484. package/dist/components/user-card/snice-user-card.js.map +1 -1
  485. package/dist/components/utils.d.ts +6 -2
  486. package/dist/components/utils.js +6 -2
  487. package/dist/components/utils.js.map +1 -1
  488. package/dist/components/work-order/snice-work-order.js +1 -1
  489. package/dist/components/work-order/snice-work-order.js.map +1 -1
  490. package/dist/index.cjs +2 -2
  491. package/dist/index.esm.js +2 -2
  492. package/dist/index.iife.js +2 -2
  493. package/dist/symbols.cjs +2 -2
  494. package/dist/symbols.esm.js +2 -2
  495. package/dist/transitions.cjs +2 -2
  496. package/dist/transitions.esm.js +2 -2
  497. package/docs/ai/components/alert.md +10 -9
  498. package/docs/ai/components/banner.md +8 -7
  499. package/docs/ai/components/breadcrumbs.md +4 -3
  500. package/docs/ai/components/button.md +20 -16
  501. package/docs/ai/components/chip.md +9 -8
  502. package/docs/ai/components/empty-state.md +9 -11
  503. package/docs/ai/components/input.md +16 -18
  504. package/docs/ai/components/location.md +1 -1
  505. package/docs/components/alert.md +8 -6
  506. package/docs/components/breadcrumbs.md +2 -2
  507. package/docs/components/button.md +58 -33
  508. package/docs/components/chip.md +8 -6
  509. package/docs/components/empty-state.md +1 -1
  510. package/docs/components/input.md +24 -10
  511. package/docs/components/location.md +1 -1
  512. package/package.json +4 -3
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * snice v4.23.0
3
- * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
2
+ * snice v4.25.0
3
+ * A decorator-driven web component library with differential rendering, routing, controllers, and 130+ ready-made UI components. Use as much or as little as you want. Zero dependencies, works anywhere.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
6
6
  */
7
- void 0===globalThis.Snice&&console.warn("[snice] snice-runtime.min.js must be loaded before snice-recipe.min.js");var SniceRecipe=function(e,i){"use strict";function t(e,i,t,r,s,n){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,o=r.kind,p="getter"===o?"get":"setter"===o?"set":"value",l=!i&&e?r.static?e:e.prototype:null,d=i||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),m=!1,g=t.length-1;g>=0;g--){var v={};for(var h in r)v[h]="access"===h?{}:r[h];for(var h in r.access)v.access[h]=r.access[h];v.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");n.push(a(e||null))};var u=(0,t[g])("accessor"===o?{get:d.get,set:d.set}:d[p],v);if("accessor"===o){if(void 0===u)continue;if(null===u||"object"!=typeof u)throw new TypeError("Object expected");(c=a(u.get))&&(d.get=c),(c=a(u.set))&&(d.set=c),(c=a(u.init))&&s.unshift(c)}else(c=a(u))&&("field"===o?s.unshift(c):d[p]=c)}l&&Object.defineProperty(l,r.name,d),m=!0}function r(e,i,t){for(var r=arguments.length>2,s=0;s<i.length;s++)t=r?i[s].call(e,t):i[s].call(e);return r?t:void 0}"function"==typeof SuppressedError&&SuppressedError;let s=(()=>{let e,s,n,a,c,o,p,l,d,m,g,v,h,u,_,f,b,y,x,k,S,$,w,T,z,I,C,M,j,A=[i.element("snice-recipe")],P=[],N=HTMLElement,V=[],E=[],F=[],O=[],B=[],D=[],R=[],H=[],L=[],U=[],q=[],G=[],J=[],K=[],Q=[],W=[],X=[],Y=[],Z=[],ee=[],ie=[],te=[],re=[],se=[],ne=[],ae=[],ce=[],oe=[],pe=[],le=[],de=[],me=[],ge=[],ve=[],he=[],ue=[],_e=[],fe=[],be=[];return class extends N{static{s=this}constructor(){super(...arguments),this.title=(r(this,V),r(this,E,"")),this.description=(r(this,F),r(this,O,"")),this.image=(r(this,B),r(this,D,"")),this.author=(r(this,R),r(this,H,"")),this.prepTime=(r(this,L),r(this,U,0)),this.cookTime=(r(this,q),r(this,G,0)),this.servings=(r(this,J),r(this,K,4)),this.difficulty=(r(this,Q),r(this,W,"medium")),this.cuisine=(r(this,X),r(this,Y,"")),this.variant=(r(this,Z),r(this,ee,"full")),this.ingredients=(r(this,ie),r(this,te,[])),this.steps=(r(this,re),r(this,se,[])),this.nutrition=(r(this,ne),r(this,ae,null)),this.tags=(r(this,ce),r(this,oe,[])),this.currentServings=(r(this,pe),r(this,le,0)),this.checkedIngredients=(r(this,de),r(this,me,[])),this.completedSteps=(r(this,ge),r(this,ve,[])),this.activeStep=(r(this,he),r(this,ue,-1)),this.timerVersion=(r(this,_e),r(this,fe,0)),this.activeTimers=(r(this,be),new Map),this.baseServings=0}static{const ye="function"==typeof Symbol&&Symbol.metadata?Object.create(N[Symbol.metadata]??null):void 0;n=[i.property()],a=[i.property()],c=[i.property()],o=[i.property()],p=[i.property({type:Number,attribute:"prep-time"})],l=[i.property({type:Number,attribute:"cook-time"})],d=[i.property({type:Number})],m=[i.property()],g=[i.property()],v=[i.property()],h=[i.property({type:Array,attribute:!1})],u=[i.property({type:Array,attribute:!1})],_=[i.property({type:Object,attribute:!1})],f=[i.property({type:Array,attribute:!1})],b=[i.property({type:Number})],y=[i.property({type:Array})],x=[i.property({type:Array})],k=[i.property({type:Number})],S=[i.property({type:Number})],$=[i.watch("servings")],w=[i.watch("ingredients")],T=[i.watch("steps")],z=[i.dispatch("recipe-serving-change",{bubbles:!0,composed:!0})],I=[i.dispatch("recipe-step-complete",{bubbles:!0,composed:!0})],C=[i.dispatch("recipe-ingredient-check",{bubbles:!0,composed:!0})],M=[i.styles()],j=[i.render()],t(this,null,$,{kind:"method",name:"onServingsChange",static:!1,private:!1,access:{has:e=>"onServingsChange"in e,get:e=>e.onServingsChange},metadata:ye},null,V),t(this,null,w,{kind:"method",name:"onIngredientsChange",static:!1,private:!1,access:{has:e=>"onIngredientsChange"in e,get:e=>e.onIngredientsChange},metadata:ye},null,V),t(this,null,T,{kind:"method",name:"onStepsChange",static:!1,private:!1,access:{has:e=>"onStepsChange"in e,get:e=>e.onStepsChange},metadata:ye},null,V),t(this,null,z,{kind:"method",name:"emitServingChange",static:!1,private:!1,access:{has:e=>"emitServingChange"in e,get:e=>e.emitServingChange},metadata:ye},null,V),t(this,null,I,{kind:"method",name:"emitStepComplete",static:!1,private:!1,access:{has:e=>"emitStepComplete"in e,get:e=>e.emitStepComplete},metadata:ye},null,V),t(this,null,C,{kind:"method",name:"emitIngredientCheck",static:!1,private:!1,access:{has:e=>"emitIngredientCheck"in e,get:e=>e.emitIngredientCheck},metadata:ye},null,V),t(this,null,M,{kind:"method",name:"styles",static:!1,private:!1,access:{has:e=>"styles"in e,get:e=>e.styles},metadata:ye},null,V),t(this,null,j,{kind:"method",name:"template",static:!1,private:!1,access:{has:e=>"template"in e,get:e=>e.template},metadata:ye},null,V),t(null,null,n,{kind:"field",name:"title",static:!1,private:!1,access:{has:e=>"title"in e,get:e=>e.title,set:(e,i)=>{e.title=i}},metadata:ye},E,F),t(null,null,a,{kind:"field",name:"description",static:!1,private:!1,access:{has:e=>"description"in e,get:e=>e.description,set:(e,i)=>{e.description=i}},metadata:ye},O,B),t(null,null,c,{kind:"field",name:"image",static:!1,private:!1,access:{has:e=>"image"in e,get:e=>e.image,set:(e,i)=>{e.image=i}},metadata:ye},D,R),t(null,null,o,{kind:"field",name:"author",static:!1,private:!1,access:{has:e=>"author"in e,get:e=>e.author,set:(e,i)=>{e.author=i}},metadata:ye},H,L),t(null,null,p,{kind:"field",name:"prepTime",static:!1,private:!1,access:{has:e=>"prepTime"in e,get:e=>e.prepTime,set:(e,i)=>{e.prepTime=i}},metadata:ye},U,q),t(null,null,l,{kind:"field",name:"cookTime",static:!1,private:!1,access:{has:e=>"cookTime"in e,get:e=>e.cookTime,set:(e,i)=>{e.cookTime=i}},metadata:ye},G,J),t(null,null,d,{kind:"field",name:"servings",static:!1,private:!1,access:{has:e=>"servings"in e,get:e=>e.servings,set:(e,i)=>{e.servings=i}},metadata:ye},K,Q),t(null,null,m,{kind:"field",name:"difficulty",static:!1,private:!1,access:{has:e=>"difficulty"in e,get:e=>e.difficulty,set:(e,i)=>{e.difficulty=i}},metadata:ye},W,X),t(null,null,g,{kind:"field",name:"cuisine",static:!1,private:!1,access:{has:e=>"cuisine"in e,get:e=>e.cuisine,set:(e,i)=>{e.cuisine=i}},metadata:ye},Y,Z),t(null,null,v,{kind:"field",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,i)=>{e.variant=i}},metadata:ye},ee,ie),t(null,null,h,{kind:"field",name:"ingredients",static:!1,private:!1,access:{has:e=>"ingredients"in e,get:e=>e.ingredients,set:(e,i)=>{e.ingredients=i}},metadata:ye},te,re),t(null,null,u,{kind:"field",name:"steps",static:!1,private:!1,access:{has:e=>"steps"in e,get:e=>e.steps,set:(e,i)=>{e.steps=i}},metadata:ye},se,ne),t(null,null,_,{kind:"field",name:"nutrition",static:!1,private:!1,access:{has:e=>"nutrition"in e,get:e=>e.nutrition,set:(e,i)=>{e.nutrition=i}},metadata:ye},ae,ce),t(null,null,f,{kind:"field",name:"tags",static:!1,private:!1,access:{has:e=>"tags"in e,get:e=>e.tags,set:(e,i)=>{e.tags=i}},metadata:ye},oe,pe),t(null,null,b,{kind:"field",name:"currentServings",static:!1,private:!1,access:{has:e=>"currentServings"in e,get:e=>e.currentServings,set:(e,i)=>{e.currentServings=i}},metadata:ye},le,de),t(null,null,y,{kind:"field",name:"checkedIngredients",static:!1,private:!1,access:{has:e=>"checkedIngredients"in e,get:e=>e.checkedIngredients,set:(e,i)=>{e.checkedIngredients=i}},metadata:ye},me,ge),t(null,null,x,{kind:"field",name:"completedSteps",static:!1,private:!1,access:{has:e=>"completedSteps"in e,get:e=>e.completedSteps,set:(e,i)=>{e.completedSteps=i}},metadata:ye},ve,he),t(null,null,k,{kind:"field",name:"activeStep",static:!1,private:!1,access:{has:e=>"activeStep"in e,get:e=>e.activeStep,set:(e,i)=>{e.activeStep=i}},metadata:ye},ue,_e),t(null,null,S,{kind:"field",name:"timerVersion",static:!1,private:!1,access:{has:e=>"timerVersion"in e,get:e=>e.timerVersion,set:(e,i)=>{e.timerVersion=i}},metadata:ye},fe,be),t(null,e={value:s},A,{kind:"class",name:s.name,metadata:ye},null,P),s=e.value,ye&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ye}),r(s,P)}onServingsChange(){0===this.baseServings&&(this.baseServings=this.servings,this.currentServings=this.servings)}onIngredientsChange(){this.checkedIngredients=new Array(this.ingredients.length).fill(!1)}onStepsChange(){this.completedSteps=new Array(this.steps.length).fill(!1),this.activeStep=-1}setServings(e){if(e<1)return;const i=this.currentServings;this.currentServings=e,this.emitServingChange(i)}print(){window.print()}reset(){this.checkedIngredients=new Array(this.ingredients.length).fill(!1),this.completedSteps=new Array(this.steps.length).fill(!1),this.activeStep=-1,this.currentServings=this.baseServings||this.servings;for(const[,e]of this.activeTimers.entries())clearInterval(e.intervalId);this.activeTimers.clear(),this.timerVersion++}scaleAmount(e){const i=this.baseServings||this.servings;if(0===i)return e;const t=e*this.currentServings/i;return Math.round(100*t)/100}formatAmount(e){const i=this.scaleAmount(e);if(i===Math.floor(i))return i.toString();const t=i-Math.floor(i),r=Math.floor(i),s=[[.25,"¼"],[.33,"⅓"],[.5,"½"],[.67,"⅔"],[.75,"¾"]];for(const[e,i]of s)if(Math.abs(t-e)<.05)return r>0?`${r}${i}`:i;return i.toFixed(1)}toggleIngredient(e){const i=[...this.checkedIngredients];i[e]=!i[e],this.checkedIngredients=i,this.emitIngredientCheck(e,i[e])}toggleStepComplete(e){const i=[...this.completedSteps];i[e]=!i[e],this.completedSteps=i,this.emitStepComplete(e,i[e])}decrementServings(){this.currentServings>1&&this.setServings(this.currentServings-1)}incrementServings(){this.setServings(this.currentServings+1)}goToPrevStep(){this.activeStep>0&&(this.activeStep=this.activeStep-1)}goToNextStep(){this.activeStep<this.steps.length-1?this.activeStep=this.activeStep+1:this.activeStep=-1}startStepByStep(){this.activeStep=0}startTimer(e,i){if(this.activeTimers.has(e))return;const t=60*i,r=window.setInterval(()=>{const i=this.activeTimers.get(e);if(i){if(i.remaining<=1)return clearInterval(i.intervalId),this.activeTimers.set(e,{...i,remaining:0,done:!0}),void this.timerVersion++;this.activeTimers.set(e,{...i,remaining:i.remaining-1}),this.timerVersion++}},1e3);this.activeTimers.set(e,{remaining:t,intervalId:r,done:!1}),this.timerVersion++}cancelTimer(e){const i=this.activeTimers.get(e);i&&(clearInterval(i.intervalId),this.activeTimers.delete(e),this.timerVersion++)}formatTimer(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")}`}formatMinutes(e){if(e<60)return`${e} min`;const i=Math.floor(e/60),t=e%60;return t>0?`${i}h ${t}m`:`${i}h`}emitServingChange(e){return{servings:this.currentServings,previousServings:e}}emitStepComplete(e,i){return{stepIndex:e,completed:i}}emitIngredientCheck(e,i){return{ingredientIndex:e,checked:i,ingredient:this.ingredients[e]}}styles(){return i.css`${":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);color:var(--snice-color-text,rgb(23 23 23));contain:layout style paint;width:100%;--recipe-bg:var(--snice-color-background-element, rgb(252 251 249));--recipe-border:var(--snice-color-border, rgb(226 226 226));--recipe-text:var(--snice-color-text, rgb(23 23 23));--recipe-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--recipe-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--recipe-primary:var(--snice-color-primary, rgb(37 99 235));--recipe-success:var(--snice-color-success, rgb(22 163 74));--recipe-danger:var(--snice-color-danger, rgb(220 38 38));--recipe-radius:var(--snice-border-radius-lg, 0.5rem);--recipe-shadow:var(--snice-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))}.recipe{background:var(--recipe-bg);border-radius:var(--recipe-radius);box-shadow:var(--recipe-shadow);overflow:hidden}.recipe__hero{position:relative;width:100%;overflow:hidden}.recipe__hero img{width:100%;height:auto;display:block;object-fit:cover;max-height:25rem}.recipe__header{padding:var(--snice-spacing-lg,1.5rem)}.recipe__title{margin:0 0 var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-2xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__description{margin:0 0 var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-md, 1rem);color:var(--recipe-text-secondary);line-height:var(--snice-line-height-normal, 1.5)}.recipe__author{font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-tertiary)}.recipe__tags{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__tag{display:inline-flex;align-items:center;padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-xs, .75rem);border-radius:9999px;background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--recipe-border);color:var(--recipe-text-secondary)}.recipe__meta{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border);border-bottom:1px solid var(--recipe-border);background:var(--snice-color-background,rgb(255 255 255))}.recipe__meta-item{display:flex;flex-direction:column;align-items:center;gap:var(--snice-spacing-3xs,.125rem);min-width:4rem}.recipe__meta-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);text-transform:uppercase;letter-spacing:.05em}.recipe__meta-value{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__difficulty--easy{color:var(--recipe-success)}.recipe__difficulty--medium{color:var(--snice-color-warning,rgb(234 179 8))}.recipe__difficulty--hard{color:var(--recipe-danger)}.recipe__content{display:grid;grid-template-columns:1fr 2fr;gap:var(--snice-spacing-lg,1.5rem);padding:var(--snice-spacing-lg,1.5rem)}@media (max-width:768px){.recipe__content{grid-template-columns:1fr}}.recipe__servings-adjuster{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-md,1rem)}.recipe__servings-adjuster span{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__servings-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--recipe-border);border-radius:50%;background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-lg, 1.125rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms);padding:0;line-height:1}.recipe__servings-btn:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__servings-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__servings-count{min-width:2rem;text-align:center;font-weight:var(--snice-font-weight-bold,700);font-size:var(--snice-font-size-lg, 1.125rem)}.recipe__ingredients-section{position:relative}.recipe__section-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0 0 var(--snice-spacing-sm,.75rem);color:var(--recipe-text)}.recipe__ingredient-group-title{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-medium,500);color:var(--recipe-text-secondary);margin:var(--snice-spacing-sm,.75rem) 0 var(--snice-spacing-2xs,.25rem)}.recipe__ingredients-list{list-style:none;padding:0;margin:0}.recipe__ingredient{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) 0;border-bottom:1px solid var(--recipe-border);cursor:pointer;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__ingredient:last-child{border-bottom:none}.recipe__ingredient--checked{opacity:.5}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:line-through}.recipe__ingredient-checkbox{appearance:none;width:1.125rem;height:1.125rem;border:2px solid var(--recipe-border);border-radius:3px;cursor:pointer;flex-shrink:0;position:relative;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__ingredient-checkbox:checked{background:var(--recipe-primary);border-color:var(--recipe-primary)}.recipe__ingredient-checkbox:checked::after{content:'';position:absolute;left:3px;top:0;width:.375rem;height:.625rem;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.recipe__ingredient-checkbox:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__ingredient-amount{font-weight:var(--snice-font-weight-semibold,600);white-space:nowrap;color:var(--recipe-text)}.recipe__ingredient-text{color:var(--recipe-text-secondary)}.recipe__steps-section{position:relative}.recipe__steps-list{list-style:none;padding:0;margin:0;counter-reset:step-counter}.recipe__step{display:flex;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) 0;border-bottom:1px solid var(--recipe-border);counter-increment:step-counter;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__step:last-child{border-bottom:none}.recipe__step--completed{opacity:.5}.recipe__step--active{background:var(--snice-color-primary-subtle,rgb(239 246 255));margin:0 calc(-1 * var(--snice-spacing-sm,.75rem));padding-left:var(--snice-spacing-sm,.75rem);padding-right:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-number{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--recipe-primary);color:var(--snice-color-text-inverse,rgb(250 250 250));font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-bold,700);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step--completed .recipe__step-number{background:var(--recipe-success)}.recipe__step-number:hover{opacity:.8}.recipe__step-body{flex:1;min-width:0}.recipe__step-text{font-size:var(--snice-font-size-md, 1rem);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__step-tip{margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-left:3px solid var(--recipe-primary);border-radius:0 var(--snice-border-radius-md,.25rem) var(--snice-border-radius-md,.25rem) 0;font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-secondary)}.recipe__step-image{margin-top:var(--snice-spacing-xs,.5rem);width:100%;max-width:20rem;border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-timer-btn{display:inline-flex;align-items:center;gap:var(--snice-spacing-3xs,.125rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--recipe-primary);border-radius:var(--snice-border-radius-md,.25rem);background:0 0;color:var(--recipe-primary);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step-timer-btn:hover{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-timer-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__step-timer-btn svg{width:.875rem;height:.875rem}.recipe__active-timer{display:inline-flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-primary)}.recipe__active-timer--done{background:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--recipe-success)}.recipe__timer-cancel{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:none;border-radius:50%;background:0 0;color:inherit;cursor:pointer;padding:0;font-size:.75rem}.recipe__timer-cancel:hover{background:rgb(0 0 0 / .1)}.recipe__nutrition{padding:var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__nutrition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__nutrition-item{text-align:center;padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-background,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);border:1px solid var(--recipe-border)}.recipe__nutrition-value{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-bold,700);color:var(--recipe-text)}.recipe__nutrition-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);margin-top:var(--snice-spacing-3xs,.125rem)}.recipe__step-controls{display:flex;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__step-controls button{padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);border:1px solid var(--recipe-border);border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__step-controls button:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-controls button:disabled{opacity:.4;cursor:not-allowed}.recipe__step-controls button:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__print-btn{margin-left:auto}:host([variant=card]) .recipe__content{grid-template-columns:1fr;padding:var(--snice-spacing-md,1rem)}:host([variant=card]) .recipe__hero img{max-height:15rem}:host([variant=card]) .recipe__header{padding:var(--snice-spacing-md,1rem)}@media print{.recipe{box-shadow:none;border:1px solid #ccc}.recipe__active-timer,.recipe__servings-btn,.recipe__step-controls,.recipe__step-timer-btn,.recipe__timer-cancel{display:none!important}.recipe__ingredient--checked,.recipe__step--completed{opacity:1}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:none}}[hidden]{display:none!important}"}`}template(){0===this.baseServings&&this.servings>0&&(this.baseServings=this.servings,this.currentServings=this.servings);const e=this.prepTime+this.cookTime,t=new Map;this.ingredients.forEach((e,i)=>{const r=e.group||"";t.has(r)||t.set(r,[]),t.get(r).push({ingredient:e,index:i})});const r=this.activeStep>=0,s=this.tags.length>0||this.cuisine.length>0,n=this.cuisine.length>0,a=this.ingredients.length>0,c=this.steps.length>0,o=a||c,p=this.prepTime>0||this.cookTime>0||this.servings>0||this.difficulty.length>0,l=null!==this.nutrition,d=l?this.nutrition.calories:0,m=l?this.nutrition.protein:0,g=l?this.nutrition.carbs:0,v=l?this.nutrition.fat:0,h=l?this.nutrition.fiber:0,u=l?this.nutrition.sodium:0,_=l&&void 0!==this.nutrition.fiber,f=l&&void 0!==this.nutrition.sodium,b=[];for(const[e,r]of t.entries()){e&&b.push(i.html`<li class="recipe__ingredient-group-title">${e}</li>`);for(const{ingredient:e,index:t}of r){const r=this.checkedIngredients[t]||!1,s=r?"recipe__ingredient--checked":"";b.push(i.html`
7
+ void 0===globalThis.Snice&&console.warn("[snice] snice-runtime.min.js must be loaded before snice-recipe.min.js");var SniceRecipe=function(e,i){"use strict";function t(e,i,t,r,s,n){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,o=r.kind,p="getter"===o?"get":"setter"===o?"set":"value",l=!i&&e?r.static?e:e.prototype:null,d=i||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),m=!1,g=t.length-1;g>=0;g--){var v={};for(var h in r)v[h]="access"===h?{}:r[h];for(var h in r.access)v.access[h]=r.access[h];v.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");n.push(a(e||null))};var u=(0,t[g])("accessor"===o?{get:d.get,set:d.set}:d[p],v);if("accessor"===o){if(void 0===u)continue;if(null===u||"object"!=typeof u)throw new TypeError("Object expected");(c=a(u.get))&&(d.get=c),(c=a(u.set))&&(d.set=c),(c=a(u.init))&&s.unshift(c)}else(c=a(u))&&("field"===o?s.unshift(c):d[p]=c)}l&&Object.defineProperty(l,r.name,d),m=!0}function r(e,i,t){for(var r=arguments.length>2,s=0;s<i.length;s++)t=r?i[s].call(e,t):i[s].call(e);return r?t:void 0}"function"==typeof SuppressedError&&SuppressedError;let s=(()=>{let e,s,n,a,c,o,p,l,d,m,g,v,h,u,_,f,b,y,x,k,S,$,w,T,z,I,C,M,j,A=[i.element("snice-recipe")],P=[],N=HTMLElement,V=[],E=[],F=[],O=[],B=[],D=[],R=[],H=[],L=[],U=[],q=[],G=[],J=[],K=[],Q=[],W=[],X=[],Y=[],Z=[],ee=[],ie=[],te=[],re=[],se=[],ne=[],ae=[],ce=[],oe=[],pe=[],le=[],de=[],me=[],ge=[],ve=[],he=[],ue=[],_e=[],fe=[],be=[];return class extends N{static{s=this}constructor(){super(...arguments),this.title=(r(this,V),r(this,E,"")),this.description=(r(this,F),r(this,O,"")),this.image=(r(this,B),r(this,D,"")),this.author=(r(this,R),r(this,H,"")),this.prepTime=(r(this,L),r(this,U,0)),this.cookTime=(r(this,q),r(this,G,0)),this.servings=(r(this,J),r(this,K,4)),this.difficulty=(r(this,Q),r(this,W,"medium")),this.cuisine=(r(this,X),r(this,Y,"")),this.variant=(r(this,Z),r(this,ee,"full")),this.ingredients=(r(this,ie),r(this,te,[])),this.steps=(r(this,re),r(this,se,[])),this.nutrition=(r(this,ne),r(this,ae,null)),this.tags=(r(this,ce),r(this,oe,[])),this.currentServings=(r(this,pe),r(this,le,0)),this.checkedIngredients=(r(this,de),r(this,me,[])),this.completedSteps=(r(this,ge),r(this,ve,[])),this.activeStep=(r(this,he),r(this,ue,-1)),this.timerVersion=(r(this,_e),r(this,fe,0)),this.activeTimers=(r(this,be),new Map),this.baseServings=0}static{const ye="function"==typeof Symbol&&Symbol.metadata?Object.create(N[Symbol.metadata]??null):void 0;n=[i.property()],a=[i.property()],c=[i.property()],o=[i.property()],p=[i.property({type:Number,attribute:"prep-time"})],l=[i.property({type:Number,attribute:"cook-time"})],d=[i.property({type:Number})],m=[i.property()],g=[i.property()],v=[i.property()],h=[i.property({type:Array,attribute:!1})],u=[i.property({type:Array,attribute:!1})],_=[i.property({type:Object,attribute:!1})],f=[i.property({type:Array,attribute:!1})],b=[i.property({type:Number})],y=[i.property({type:Array})],x=[i.property({type:Array})],k=[i.property({type:Number})],S=[i.property({type:Number})],$=[i.watch("servings")],w=[i.watch("ingredients")],T=[i.watch("steps")],z=[i.dispatch("recipe-serving-change",{bubbles:!0,composed:!0})],I=[i.dispatch("recipe-step-complete",{bubbles:!0,composed:!0})],C=[i.dispatch("recipe-ingredient-check",{bubbles:!0,composed:!0})],M=[i.styles()],j=[i.render()],t(this,null,$,{kind:"method",name:"onServingsChange",static:!1,private:!1,access:{has:e=>"onServingsChange"in e,get:e=>e.onServingsChange},metadata:ye},null,V),t(this,null,w,{kind:"method",name:"onIngredientsChange",static:!1,private:!1,access:{has:e=>"onIngredientsChange"in e,get:e=>e.onIngredientsChange},metadata:ye},null,V),t(this,null,T,{kind:"method",name:"onStepsChange",static:!1,private:!1,access:{has:e=>"onStepsChange"in e,get:e=>e.onStepsChange},metadata:ye},null,V),t(this,null,z,{kind:"method",name:"emitServingChange",static:!1,private:!1,access:{has:e=>"emitServingChange"in e,get:e=>e.emitServingChange},metadata:ye},null,V),t(this,null,I,{kind:"method",name:"emitStepComplete",static:!1,private:!1,access:{has:e=>"emitStepComplete"in e,get:e=>e.emitStepComplete},metadata:ye},null,V),t(this,null,C,{kind:"method",name:"emitIngredientCheck",static:!1,private:!1,access:{has:e=>"emitIngredientCheck"in e,get:e=>e.emitIngredientCheck},metadata:ye},null,V),t(this,null,M,{kind:"method",name:"styles",static:!1,private:!1,access:{has:e=>"styles"in e,get:e=>e.styles},metadata:ye},null,V),t(this,null,j,{kind:"method",name:"template",static:!1,private:!1,access:{has:e=>"template"in e,get:e=>e.template},metadata:ye},null,V),t(null,null,n,{kind:"field",name:"title",static:!1,private:!1,access:{has:e=>"title"in e,get:e=>e.title,set:(e,i)=>{e.title=i}},metadata:ye},E,F),t(null,null,a,{kind:"field",name:"description",static:!1,private:!1,access:{has:e=>"description"in e,get:e=>e.description,set:(e,i)=>{e.description=i}},metadata:ye},O,B),t(null,null,c,{kind:"field",name:"image",static:!1,private:!1,access:{has:e=>"image"in e,get:e=>e.image,set:(e,i)=>{e.image=i}},metadata:ye},D,R),t(null,null,o,{kind:"field",name:"author",static:!1,private:!1,access:{has:e=>"author"in e,get:e=>e.author,set:(e,i)=>{e.author=i}},metadata:ye},H,L),t(null,null,p,{kind:"field",name:"prepTime",static:!1,private:!1,access:{has:e=>"prepTime"in e,get:e=>e.prepTime,set:(e,i)=>{e.prepTime=i}},metadata:ye},U,q),t(null,null,l,{kind:"field",name:"cookTime",static:!1,private:!1,access:{has:e=>"cookTime"in e,get:e=>e.cookTime,set:(e,i)=>{e.cookTime=i}},metadata:ye},G,J),t(null,null,d,{kind:"field",name:"servings",static:!1,private:!1,access:{has:e=>"servings"in e,get:e=>e.servings,set:(e,i)=>{e.servings=i}},metadata:ye},K,Q),t(null,null,m,{kind:"field",name:"difficulty",static:!1,private:!1,access:{has:e=>"difficulty"in e,get:e=>e.difficulty,set:(e,i)=>{e.difficulty=i}},metadata:ye},W,X),t(null,null,g,{kind:"field",name:"cuisine",static:!1,private:!1,access:{has:e=>"cuisine"in e,get:e=>e.cuisine,set:(e,i)=>{e.cuisine=i}},metadata:ye},Y,Z),t(null,null,v,{kind:"field",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,i)=>{e.variant=i}},metadata:ye},ee,ie),t(null,null,h,{kind:"field",name:"ingredients",static:!1,private:!1,access:{has:e=>"ingredients"in e,get:e=>e.ingredients,set:(e,i)=>{e.ingredients=i}},metadata:ye},te,re),t(null,null,u,{kind:"field",name:"steps",static:!1,private:!1,access:{has:e=>"steps"in e,get:e=>e.steps,set:(e,i)=>{e.steps=i}},metadata:ye},se,ne),t(null,null,_,{kind:"field",name:"nutrition",static:!1,private:!1,access:{has:e=>"nutrition"in e,get:e=>e.nutrition,set:(e,i)=>{e.nutrition=i}},metadata:ye},ae,ce),t(null,null,f,{kind:"field",name:"tags",static:!1,private:!1,access:{has:e=>"tags"in e,get:e=>e.tags,set:(e,i)=>{e.tags=i}},metadata:ye},oe,pe),t(null,null,b,{kind:"field",name:"currentServings",static:!1,private:!1,access:{has:e=>"currentServings"in e,get:e=>e.currentServings,set:(e,i)=>{e.currentServings=i}},metadata:ye},le,de),t(null,null,y,{kind:"field",name:"checkedIngredients",static:!1,private:!1,access:{has:e=>"checkedIngredients"in e,get:e=>e.checkedIngredients,set:(e,i)=>{e.checkedIngredients=i}},metadata:ye},me,ge),t(null,null,x,{kind:"field",name:"completedSteps",static:!1,private:!1,access:{has:e=>"completedSteps"in e,get:e=>e.completedSteps,set:(e,i)=>{e.completedSteps=i}},metadata:ye},ve,he),t(null,null,k,{kind:"field",name:"activeStep",static:!1,private:!1,access:{has:e=>"activeStep"in e,get:e=>e.activeStep,set:(e,i)=>{e.activeStep=i}},metadata:ye},ue,_e),t(null,null,S,{kind:"field",name:"timerVersion",static:!1,private:!1,access:{has:e=>"timerVersion"in e,get:e=>e.timerVersion,set:(e,i)=>{e.timerVersion=i}},metadata:ye},fe,be),t(null,e={value:s},A,{kind:"class",name:s.name,metadata:ye},null,P),s=e.value,ye&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ye}),r(s,P)}onServingsChange(){0===this.baseServings&&(this.baseServings=this.servings,this.currentServings=this.servings)}onIngredientsChange(){this.checkedIngredients=new Array(this.ingredients.length).fill(!1)}onStepsChange(){this.completedSteps=new Array(this.steps.length).fill(!1),this.activeStep=-1}setServings(e){if(e<1)return;const i=this.currentServings;this.currentServings=e,this.emitServingChange(i)}print(){window.print()}reset(){this.checkedIngredients=new Array(this.ingredients.length).fill(!1),this.completedSteps=new Array(this.steps.length).fill(!1),this.activeStep=-1,this.currentServings=this.baseServings||this.servings;for(const[,e]of this.activeTimers.entries())clearInterval(e.intervalId);this.activeTimers.clear(),this.timerVersion++}scaleAmount(e){const i=this.baseServings||this.servings;if(0===i)return e;const t=e*this.currentServings/i;return Math.round(100*t)/100}formatAmount(e){const i=this.scaleAmount(e);if(i===Math.floor(i))return i.toString();const t=i-Math.floor(i),r=Math.floor(i),s=[[.25,"¼"],[.33,"⅓"],[.5,"½"],[.67,"⅔"],[.75,"¾"]];for(const[e,i]of s)if(Math.abs(t-e)<.05)return r>0?`${r}${i}`:i;return i.toFixed(1)}toggleIngredient(e){const i=[...this.checkedIngredients];i[e]=!i[e],this.checkedIngredients=i,this.emitIngredientCheck(e,i[e])}toggleStepComplete(e){const i=[...this.completedSteps];i[e]=!i[e],this.completedSteps=i,this.emitStepComplete(e,i[e])}decrementServings(){this.currentServings>1&&this.setServings(this.currentServings-1)}incrementServings(){this.setServings(this.currentServings+1)}goToPrevStep(){this.activeStep>0&&(this.activeStep=this.activeStep-1)}goToNextStep(){this.activeStep<this.steps.length-1?this.activeStep=this.activeStep+1:this.activeStep=-1}startStepByStep(){this.activeStep=0}startTimer(e,i){if(this.activeTimers.has(e))return;const t=60*i,r=window.setInterval(()=>{const i=this.activeTimers.get(e);if(i){if(i.remaining<=1)return clearInterval(i.intervalId),this.activeTimers.set(e,{...i,remaining:0,done:!0}),void this.timerVersion++;this.activeTimers.set(e,{...i,remaining:i.remaining-1}),this.timerVersion++}},1e3);this.activeTimers.set(e,{remaining:t,intervalId:r,done:!1}),this.timerVersion++}cancelTimer(e){const i=this.activeTimers.get(e);i&&(clearInterval(i.intervalId),this.activeTimers.delete(e),this.timerVersion++)}formatTimer(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")}`}formatMinutes(e){if(e<60)return`${e} min`;const i=Math.floor(e/60),t=e%60;return t>0?`${i}h ${t}m`:`${i}h`}emitServingChange(e){return{servings:this.currentServings,previousServings:e}}emitStepComplete(e,i){return{stepIndex:e,completed:i}}emitIngredientCheck(e,i){return{ingredientIndex:e,checked:i,ingredient:this.ingredients[e]}}styles(){return i.css`${":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);color:var(--snice-color-text,rgb(23 23 23));width:100%;--recipe-bg:var(--snice-color-background-element, rgb(252 251 249));--recipe-border:var(--snice-color-border, rgb(226 226 226));--recipe-text:var(--snice-color-text, rgb(23 23 23));--recipe-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--recipe-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--recipe-primary:var(--snice-color-primary, rgb(37 99 235));--recipe-success:var(--snice-color-success, rgb(22 163 74));--recipe-danger:var(--snice-color-danger, rgb(220 38 38));--recipe-radius:var(--snice-border-radius-lg, 0.5rem);--recipe-shadow:var(--snice-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))}.recipe{background:var(--recipe-bg);border-radius:var(--recipe-radius);box-shadow:var(--recipe-shadow);overflow:hidden}.recipe__hero{position:relative;width:100%;overflow:hidden}.recipe__hero img{width:100%;height:auto;display:block;object-fit:cover;max-height:25rem}.recipe__header{padding:var(--snice-spacing-lg,1.5rem)}.recipe__title{margin:0 0 var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-2xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__description{margin:0 0 var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-md, 1rem);color:var(--recipe-text-secondary);line-height:var(--snice-line-height-normal, 1.5)}.recipe__author{font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-tertiary)}.recipe__tags{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__tag{display:inline-flex;align-items:center;padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-xs, .75rem);border-radius:9999px;background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--recipe-border);color:var(--recipe-text-secondary)}.recipe__meta{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border);border-bottom:1px solid var(--recipe-border);background:var(--snice-color-background,rgb(255 255 255))}.recipe__meta-item{display:flex;flex-direction:column;align-items:center;gap:var(--snice-spacing-3xs,.125rem);min-width:4rem}.recipe__meta-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);text-transform:uppercase;letter-spacing:.05em}.recipe__meta-value{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__difficulty--easy{color:var(--recipe-success)}.recipe__difficulty--medium{color:var(--snice-color-warning,rgb(234 179 8))}.recipe__difficulty--hard{color:var(--recipe-danger)}.recipe__content{display:grid;grid-template-columns:1fr 2fr;gap:var(--snice-spacing-lg,1.5rem);padding:var(--snice-spacing-lg,1.5rem)}@media (max-width:768px){.recipe__content{grid-template-columns:1fr}}.recipe__servings-adjuster{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-md,1rem)}.recipe__servings-adjuster span{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__servings-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--recipe-border);border-radius:50%;background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-lg, 1.125rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms);padding:0;line-height:1}.recipe__servings-btn:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__servings-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__servings-count{min-width:2rem;text-align:center;font-weight:var(--snice-font-weight-bold,700);font-size:var(--snice-font-size-lg, 1.125rem)}.recipe__ingredients-section{position:relative}.recipe__section-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0 0 var(--snice-spacing-sm,.75rem);color:var(--recipe-text)}.recipe__ingredient-group-title{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-medium,500);color:var(--recipe-text-secondary);margin:var(--snice-spacing-sm,.75rem) 0 var(--snice-spacing-2xs,.25rem)}.recipe__ingredients-list{list-style:none;padding:0;margin:0}.recipe__ingredient{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) 0;border-bottom:1px solid var(--recipe-border);cursor:pointer;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__ingredient:last-child{border-bottom:none}.recipe__ingredient--checked{opacity:.5}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:line-through}.recipe__ingredient-checkbox{appearance:none;width:1.125rem;height:1.125rem;border:2px solid var(--recipe-border);border-radius:3px;cursor:pointer;flex-shrink:0;position:relative;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__ingredient-checkbox:checked{background:var(--recipe-primary);border-color:var(--recipe-primary)}.recipe__ingredient-checkbox:checked::after{content:'';position:absolute;left:3px;top:0;width:.375rem;height:.625rem;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.recipe__ingredient-checkbox:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__ingredient-amount{font-weight:var(--snice-font-weight-semibold,600);white-space:nowrap;color:var(--recipe-text)}.recipe__ingredient-text{color:var(--recipe-text-secondary)}.recipe__steps-section{position:relative}.recipe__steps-list{list-style:none;padding:0;margin:0;counter-reset:step-counter}.recipe__step{display:flex;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) 0;border-bottom:1px solid var(--recipe-border);counter-increment:step-counter;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__step:last-child{border-bottom:none}.recipe__step--completed{opacity:.5}.recipe__step--active{background:var(--snice-color-primary-subtle,rgb(239 246 255));margin:0 calc(-1 * var(--snice-spacing-sm,.75rem));padding-left:var(--snice-spacing-sm,.75rem);padding-right:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-number{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--recipe-primary);color:var(--snice-color-text-inverse,rgb(250 250 250));font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-bold,700);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step--completed .recipe__step-number{background:var(--recipe-success)}.recipe__step-number:hover{opacity:.8}.recipe__step-body{flex:1;min-width:0}.recipe__step-text{font-size:var(--snice-font-size-md, 1rem);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__step-tip{margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-left:3px solid var(--recipe-primary);border-radius:0 var(--snice-border-radius-md,.25rem) var(--snice-border-radius-md,.25rem) 0;font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-secondary)}.recipe__step-image{margin-top:var(--snice-spacing-xs,.5rem);width:100%;max-width:20rem;border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-timer-btn{display:inline-flex;align-items:center;gap:var(--snice-spacing-3xs,.125rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--recipe-primary);border-radius:var(--snice-border-radius-md,.25rem);background:0 0;color:var(--recipe-primary);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step-timer-btn:hover{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-timer-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__step-timer-btn svg{width:.875rem;height:.875rem}.recipe__active-timer{display:inline-flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-primary)}.recipe__active-timer--done{background:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--recipe-success)}.recipe__timer-cancel{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:none;border-radius:50%;background:0 0;color:inherit;cursor:pointer;padding:0;font-size:.75rem}.recipe__timer-cancel:hover{background:rgb(0 0 0 / .1)}.recipe__nutrition{padding:var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__nutrition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__nutrition-item{text-align:center;padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-background,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);border:1px solid var(--recipe-border)}.recipe__nutrition-value{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-bold,700);color:var(--recipe-text)}.recipe__nutrition-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);margin-top:var(--snice-spacing-3xs,.125rem)}.recipe__step-controls{display:flex;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__step-controls button{padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);border:1px solid var(--recipe-border);border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__step-controls button:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-controls button:disabled{opacity:.4;cursor:not-allowed}.recipe__step-controls button:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__print-btn{margin-left:auto}:host([variant=card]) .recipe__content{grid-template-columns:1fr;padding:var(--snice-spacing-md,1rem)}:host([variant=card]) .recipe__hero img{max-height:15rem}:host([variant=card]) .recipe__header{padding:var(--snice-spacing-md,1rem)}@media print{.recipe{box-shadow:none;border:1px solid #ccc}.recipe__active-timer,.recipe__servings-btn,.recipe__step-controls,.recipe__step-timer-btn,.recipe__timer-cancel{display:none!important}.recipe__ingredient--checked,.recipe__step--completed{opacity:1}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:none}}[hidden]{display:none!important}"}`}template(){0===this.baseServings&&this.servings>0&&(this.baseServings=this.servings,this.currentServings=this.servings);const e=this.prepTime+this.cookTime,t=new Map;this.ingredients.forEach((e,i)=>{const r=e.group||"";t.has(r)||t.set(r,[]),t.get(r).push({ingredient:e,index:i})});const r=this.activeStep>=0,s=this.tags.length>0||this.cuisine.length>0,n=this.cuisine.length>0,a=this.ingredients.length>0,c=this.steps.length>0,o=a||c,p=this.prepTime>0||this.cookTime>0||this.servings>0||this.difficulty.length>0,l=null!==this.nutrition,d=l?this.nutrition.calories:0,m=l?this.nutrition.protein:0,g=l?this.nutrition.carbs:0,v=l?this.nutrition.fat:0,h=l?this.nutrition.fiber:0,u=l?this.nutrition.sodium:0,_=l&&void 0!==this.nutrition.fiber,f=l&&void 0!==this.nutrition.sodium,b=[];for(const[e,r]of t.entries()){e&&b.push(i.html`<li class="recipe__ingredient-group-title">${e}</li>`);for(const{ingredient:e,index:t}of r){const r=this.checkedIngredients[t]||!1,s=r?"recipe__ingredient--checked":"";b.push(i.html`
8
8
  <li class="recipe__ingredient ${s}" @click=${()=>this.toggleIngredient(t)}>
9
9
  <input type="checkbox" class="recipe__ingredient-checkbox" ?checked=${r} @click=${e=>e.stopPropagation()} @change=${()=>this.toggleIngredient(t)} />
10
10
  <span class="recipe__ingredient-amount">${this.formatAmount(e.amount)} ${e.unit}</span>
@@ -1 +1 @@
1
- {"version":3,"file":"snice-recipe.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/recipe/snice-recipe.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, watch, dispatch, styles, render, css, html } from 'snice';\n\nvar cssContent = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);color:var(--snice-color-text,rgb(23 23 23));contain:layout style paint;width:100%;--recipe-bg:var(--snice-color-background-element, rgb(252 251 249));--recipe-border:var(--snice-color-border, rgb(226 226 226));--recipe-text:var(--snice-color-text, rgb(23 23 23));--recipe-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--recipe-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--recipe-primary:var(--snice-color-primary, rgb(37 99 235));--recipe-success:var(--snice-color-success, rgb(22 163 74));--recipe-danger:var(--snice-color-danger, rgb(220 38 38));--recipe-radius:var(--snice-border-radius-lg, 0.5rem);--recipe-shadow:var(--snice-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))}.recipe{background:var(--recipe-bg);border-radius:var(--recipe-radius);box-shadow:var(--recipe-shadow);overflow:hidden}.recipe__hero{position:relative;width:100%;overflow:hidden}.recipe__hero img{width:100%;height:auto;display:block;object-fit:cover;max-height:25rem}.recipe__header{padding:var(--snice-spacing-lg,1.5rem)}.recipe__title{margin:0 0 var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-2xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__description{margin:0 0 var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-md, 1rem);color:var(--recipe-text-secondary);line-height:var(--snice-line-height-normal, 1.5)}.recipe__author{font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-tertiary)}.recipe__tags{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__tag{display:inline-flex;align-items:center;padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-xs, .75rem);border-radius:9999px;background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--recipe-border);color:var(--recipe-text-secondary)}.recipe__meta{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border);border-bottom:1px solid var(--recipe-border);background:var(--snice-color-background,rgb(255 255 255))}.recipe__meta-item{display:flex;flex-direction:column;align-items:center;gap:var(--snice-spacing-3xs,.125rem);min-width:4rem}.recipe__meta-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);text-transform:uppercase;letter-spacing:.05em}.recipe__meta-value{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__difficulty--easy{color:var(--recipe-success)}.recipe__difficulty--medium{color:var(--snice-color-warning,rgb(234 179 8))}.recipe__difficulty--hard{color:var(--recipe-danger)}.recipe__content{display:grid;grid-template-columns:1fr 2fr;gap:var(--snice-spacing-lg,1.5rem);padding:var(--snice-spacing-lg,1.5rem)}@media (max-width:768px){.recipe__content{grid-template-columns:1fr}}.recipe__servings-adjuster{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-md,1rem)}.recipe__servings-adjuster span{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__servings-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--recipe-border);border-radius:50%;background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-lg, 1.125rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms);padding:0;line-height:1}.recipe__servings-btn:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__servings-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__servings-count{min-width:2rem;text-align:center;font-weight:var(--snice-font-weight-bold,700);font-size:var(--snice-font-size-lg, 1.125rem)}.recipe__ingredients-section{position:relative}.recipe__section-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0 0 var(--snice-spacing-sm,.75rem);color:var(--recipe-text)}.recipe__ingredient-group-title{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-medium,500);color:var(--recipe-text-secondary);margin:var(--snice-spacing-sm,.75rem) 0 var(--snice-spacing-2xs,.25rem)}.recipe__ingredients-list{list-style:none;padding:0;margin:0}.recipe__ingredient{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) 0;border-bottom:1px solid var(--recipe-border);cursor:pointer;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__ingredient:last-child{border-bottom:none}.recipe__ingredient--checked{opacity:.5}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:line-through}.recipe__ingredient-checkbox{appearance:none;width:1.125rem;height:1.125rem;border:2px solid var(--recipe-border);border-radius:3px;cursor:pointer;flex-shrink:0;position:relative;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__ingredient-checkbox:checked{background:var(--recipe-primary);border-color:var(--recipe-primary)}.recipe__ingredient-checkbox:checked::after{content:'';position:absolute;left:3px;top:0;width:.375rem;height:.625rem;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.recipe__ingredient-checkbox:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__ingredient-amount{font-weight:var(--snice-font-weight-semibold,600);white-space:nowrap;color:var(--recipe-text)}.recipe__ingredient-text{color:var(--recipe-text-secondary)}.recipe__steps-section{position:relative}.recipe__steps-list{list-style:none;padding:0;margin:0;counter-reset:step-counter}.recipe__step{display:flex;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) 0;border-bottom:1px solid var(--recipe-border);counter-increment:step-counter;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__step:last-child{border-bottom:none}.recipe__step--completed{opacity:.5}.recipe__step--active{background:var(--snice-color-primary-subtle,rgb(239 246 255));margin:0 calc(-1 * var(--snice-spacing-sm,.75rem));padding-left:var(--snice-spacing-sm,.75rem);padding-right:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-number{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--recipe-primary);color:var(--snice-color-text-inverse,rgb(250 250 250));font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-bold,700);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step--completed .recipe__step-number{background:var(--recipe-success)}.recipe__step-number:hover{opacity:.8}.recipe__step-body{flex:1;min-width:0}.recipe__step-text{font-size:var(--snice-font-size-md, 1rem);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__step-tip{margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-left:3px solid var(--recipe-primary);border-radius:0 var(--snice-border-radius-md,.25rem) var(--snice-border-radius-md,.25rem) 0;font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-secondary)}.recipe__step-image{margin-top:var(--snice-spacing-xs,.5rem);width:100%;max-width:20rem;border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-timer-btn{display:inline-flex;align-items:center;gap:var(--snice-spacing-3xs,.125rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--recipe-primary);border-radius:var(--snice-border-radius-md,.25rem);background:0 0;color:var(--recipe-primary);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step-timer-btn:hover{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-timer-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__step-timer-btn svg{width:.875rem;height:.875rem}.recipe__active-timer{display:inline-flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-primary)}.recipe__active-timer--done{background:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--recipe-success)}.recipe__timer-cancel{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:none;border-radius:50%;background:0 0;color:inherit;cursor:pointer;padding:0;font-size:.75rem}.recipe__timer-cancel:hover{background:rgb(0 0 0 / .1)}.recipe__nutrition{padding:var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__nutrition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__nutrition-item{text-align:center;padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-background,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);border:1px solid var(--recipe-border)}.recipe__nutrition-value{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-bold,700);color:var(--recipe-text)}.recipe__nutrition-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);margin-top:var(--snice-spacing-3xs,.125rem)}.recipe__step-controls{display:flex;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__step-controls button{padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);border:1px solid var(--recipe-border);border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__step-controls button:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-controls button:disabled{opacity:.4;cursor:not-allowed}.recipe__step-controls button:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__print-btn{margin-left:auto}:host([variant=card]) .recipe__content{grid-template-columns:1fr;padding:var(--snice-spacing-md,1rem)}:host([variant=card]) .recipe__hero img{max-height:15rem}:host([variant=card]) .recipe__header{padding:var(--snice-spacing-md,1rem)}@media print{.recipe{box-shadow:none;border:1px solid #ccc}.recipe__active-timer,.recipe__servings-btn,.recipe__step-controls,.recipe__step-timer-btn,.recipe__timer-cancel{display:none!important}.recipe__ingredient--checked,.recipe__step--completed{opacity:1}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:none}}[hidden]{display:none!important}\";\n\nlet SniceRecipe = (() => {\n let _classDecorators = [element('snice-recipe')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _description_decorators;\n let _description_initializers = [];\n let _description_extraInitializers = [];\n let _image_decorators;\n let _image_initializers = [];\n let _image_extraInitializers = [];\n let _author_decorators;\n let _author_initializers = [];\n let _author_extraInitializers = [];\n let _prepTime_decorators;\n let _prepTime_initializers = [];\n let _prepTime_extraInitializers = [];\n let _cookTime_decorators;\n let _cookTime_initializers = [];\n let _cookTime_extraInitializers = [];\n let _servings_decorators;\n let _servings_initializers = [];\n let _servings_extraInitializers = [];\n let _difficulty_decorators;\n let _difficulty_initializers = [];\n let _difficulty_extraInitializers = [];\n let _cuisine_decorators;\n let _cuisine_initializers = [];\n let _cuisine_extraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _ingredients_decorators;\n let _ingredients_initializers = [];\n let _ingredients_extraInitializers = [];\n let _steps_decorators;\n let _steps_initializers = [];\n let _steps_extraInitializers = [];\n let _nutrition_decorators;\n let _nutrition_initializers = [];\n let _nutrition_extraInitializers = [];\n let _tags_decorators;\n let _tags_initializers = [];\n let _tags_extraInitializers = [];\n let _currentServings_decorators;\n let _currentServings_initializers = [];\n let _currentServings_extraInitializers = [];\n let _checkedIngredients_decorators;\n let _checkedIngredients_initializers = [];\n let _checkedIngredients_extraInitializers = [];\n let _completedSteps_decorators;\n let _completedSteps_initializers = [];\n let _completedSteps_extraInitializers = [];\n let _activeStep_decorators;\n let _activeStep_initializers = [];\n let _activeStep_extraInitializers = [];\n let _timerVersion_decorators;\n let _timerVersion_initializers = [];\n let _timerVersion_extraInitializers = [];\n let _onServingsChange_decorators;\n let _onIngredientsChange_decorators;\n let _onStepsChange_decorators;\n let _emitServingChange_decorators;\n let _emitStepComplete_decorators;\n let _emitIngredientCheck_decorators;\n let _styles_decorators;\n let _template_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.title = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _title_initializers, ''));\n this.description = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _description_initializers, ''));\n this.image = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _image_initializers, ''));\n this.author = (__runInitializers(this, _image_extraInitializers), __runInitializers(this, _author_initializers, ''));\n this.prepTime = (__runInitializers(this, _author_extraInitializers), __runInitializers(this, _prepTime_initializers, 0));\n this.cookTime = (__runInitializers(this, _prepTime_extraInitializers), __runInitializers(this, _cookTime_initializers, 0));\n this.servings = (__runInitializers(this, _cookTime_extraInitializers), __runInitializers(this, _servings_initializers, 4));\n this.difficulty = (__runInitializers(this, _servings_extraInitializers), __runInitializers(this, _difficulty_initializers, 'medium'));\n this.cuisine = (__runInitializers(this, _difficulty_extraInitializers), __runInitializers(this, _cuisine_initializers, ''));\n this.variant = (__runInitializers(this, _cuisine_extraInitializers), __runInitializers(this, _variant_initializers, 'full'));\n this.ingredients = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _ingredients_initializers, []));\n this.steps = (__runInitializers(this, _ingredients_extraInitializers), __runInitializers(this, _steps_initializers, []));\n this.nutrition = (__runInitializers(this, _steps_extraInitializers), __runInitializers(this, _nutrition_initializers, null));\n this.tags = (__runInitializers(this, _nutrition_extraInitializers), __runInitializers(this, _tags_initializers, []));\n // Internal state\n this.currentServings = (__runInitializers(this, _tags_extraInitializers), __runInitializers(this, _currentServings_initializers, 0));\n this.checkedIngredients = (__runInitializers(this, _currentServings_extraInitializers), __runInitializers(this, _checkedIngredients_initializers, []));\n this.completedSteps = (__runInitializers(this, _checkedIngredients_extraInitializers), __runInitializers(this, _completedSteps_initializers, []));\n this.activeStep = (__runInitializers(this, _completedSteps_extraInitializers), __runInitializers(this, _activeStep_initializers, -1));\n this.timerVersion = (__runInitializers(this, _activeStep_extraInitializers), __runInitializers(this, _timerVersion_initializers, 0));\n this.activeTimers = (__runInitializers(this, _timerVersion_extraInitializers), new Map());\n this.baseServings = 0;\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _title_decorators = [property()];\n _description_decorators = [property()];\n _image_decorators = [property()];\n _author_decorators = [property()];\n _prepTime_decorators = [property({ type: Number, attribute: 'prep-time' })];\n _cookTime_decorators = [property({ type: Number, attribute: 'cook-time' })];\n _servings_decorators = [property({ type: Number })];\n _difficulty_decorators = [property()];\n _cuisine_decorators = [property()];\n _variant_decorators = [property()];\n _ingredients_decorators = [property({ type: Array, attribute: false })];\n _steps_decorators = [property({ type: Array, attribute: false })];\n _nutrition_decorators = [property({ type: Object, attribute: false })];\n _tags_decorators = [property({ type: Array, attribute: false })];\n _currentServings_decorators = [property({ type: Number })];\n _checkedIngredients_decorators = [property({ type: Array })];\n _completedSteps_decorators = [property({ type: Array })];\n _activeStep_decorators = [property({ type: Number })];\n _timerVersion_decorators = [property({ type: Number })];\n _onServingsChange_decorators = [watch('servings')];\n _onIngredientsChange_decorators = [watch('ingredients')];\n _onStepsChange_decorators = [watch('steps')];\n _emitServingChange_decorators = [dispatch('recipe-serving-change', { bubbles: true, composed: true })];\n _emitStepComplete_decorators = [dispatch('recipe-step-complete', { bubbles: true, composed: true })];\n _emitIngredientCheck_decorators = [dispatch('recipe-ingredient-check', { bubbles: true, composed: true })];\n _styles_decorators = [styles()];\n _template_decorators = [render()];\n __esDecorate(this, null, _onServingsChange_decorators, { kind: \"method\", name: \"onServingsChange\", static: false, private: false, access: { has: obj => \"onServingsChange\" in obj, get: obj => obj.onServingsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _onIngredientsChange_decorators, { kind: \"method\", name: \"onIngredientsChange\", static: false, private: false, access: { has: obj => \"onIngredientsChange\" in obj, get: obj => obj.onIngredientsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _onStepsChange_decorators, { kind: \"method\", name: \"onStepsChange\", static: false, private: false, access: { has: obj => \"onStepsChange\" in obj, get: obj => obj.onStepsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitServingChange_decorators, { kind: \"method\", name: \"emitServingChange\", static: false, private: false, access: { has: obj => \"emitServingChange\" in obj, get: obj => obj.emitServingChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitStepComplete_decorators, { kind: \"method\", name: \"emitStepComplete\", static: false, private: false, access: { has: obj => \"emitStepComplete\" in obj, get: obj => obj.emitStepComplete }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitIngredientCheck_decorators, { kind: \"method\", name: \"emitIngredientCheck\", static: false, private: false, access: { has: obj => \"emitIngredientCheck\" in obj, get: obj => obj.emitIngredientCheck }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _template_decorators, { kind: \"method\", name: \"template\", static: false, private: false, access: { has: obj => \"template\" in obj, get: obj => obj.template }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _description_decorators, { kind: \"field\", name: \"description\", static: false, private: false, access: { has: obj => \"description\" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);\n __esDecorate(null, null, _image_decorators, { kind: \"field\", name: \"image\", static: false, private: false, access: { has: obj => \"image\" in obj, get: obj => obj.image, set: (obj, value) => { obj.image = value; } }, metadata: _metadata }, _image_initializers, _image_extraInitializers);\n __esDecorate(null, null, _author_decorators, { kind: \"field\", name: \"author\", static: false, private: false, access: { has: obj => \"author\" in obj, get: obj => obj.author, set: (obj, value) => { obj.author = value; } }, metadata: _metadata }, _author_initializers, _author_extraInitializers);\n __esDecorate(null, null, _prepTime_decorators, { kind: \"field\", name: \"prepTime\", static: false, private: false, access: { has: obj => \"prepTime\" in obj, get: obj => obj.prepTime, set: (obj, value) => { obj.prepTime = value; } }, metadata: _metadata }, _prepTime_initializers, _prepTime_extraInitializers);\n __esDecorate(null, null, _cookTime_decorators, { kind: \"field\", name: \"cookTime\", static: false, private: false, access: { has: obj => \"cookTime\" in obj, get: obj => obj.cookTime, set: (obj, value) => { obj.cookTime = value; } }, metadata: _metadata }, _cookTime_initializers, _cookTime_extraInitializers);\n __esDecorate(null, null, _servings_decorators, { kind: \"field\", name: \"servings\", static: false, private: false, access: { has: obj => \"servings\" in obj, get: obj => obj.servings, set: (obj, value) => { obj.servings = value; } }, metadata: _metadata }, _servings_initializers, _servings_extraInitializers);\n __esDecorate(null, null, _difficulty_decorators, { kind: \"field\", name: \"difficulty\", static: false, private: false, access: { has: obj => \"difficulty\" in obj, get: obj => obj.difficulty, set: (obj, value) => { obj.difficulty = value; } }, metadata: _metadata }, _difficulty_initializers, _difficulty_extraInitializers);\n __esDecorate(null, null, _cuisine_decorators, { kind: \"field\", name: \"cuisine\", static: false, private: false, access: { has: obj => \"cuisine\" in obj, get: obj => obj.cuisine, set: (obj, value) => { obj.cuisine = value; } }, metadata: _metadata }, _cuisine_initializers, _cuisine_extraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _ingredients_decorators, { kind: \"field\", name: \"ingredients\", static: false, private: false, access: { has: obj => \"ingredients\" in obj, get: obj => obj.ingredients, set: (obj, value) => { obj.ingredients = value; } }, metadata: _metadata }, _ingredients_initializers, _ingredients_extraInitializers);\n __esDecorate(null, null, _steps_decorators, { kind: \"field\", name: \"steps\", static: false, private: false, access: { has: obj => \"steps\" in obj, get: obj => obj.steps, set: (obj, value) => { obj.steps = value; } }, metadata: _metadata }, _steps_initializers, _steps_extraInitializers);\n __esDecorate(null, null, _nutrition_decorators, { kind: \"field\", name: \"nutrition\", static: false, private: false, access: { has: obj => \"nutrition\" in obj, get: obj => obj.nutrition, set: (obj, value) => { obj.nutrition = value; } }, metadata: _metadata }, _nutrition_initializers, _nutrition_extraInitializers);\n __esDecorate(null, null, _tags_decorators, { kind: \"field\", name: \"tags\", static: false, private: false, access: { has: obj => \"tags\" in obj, get: obj => obj.tags, set: (obj, value) => { obj.tags = value; } }, metadata: _metadata }, _tags_initializers, _tags_extraInitializers);\n __esDecorate(null, null, _currentServings_decorators, { kind: \"field\", name: \"currentServings\", static: false, private: false, access: { has: obj => \"currentServings\" in obj, get: obj => obj.currentServings, set: (obj, value) => { obj.currentServings = value; } }, metadata: _metadata }, _currentServings_initializers, _currentServings_extraInitializers);\n __esDecorate(null, null, _checkedIngredients_decorators, { kind: \"field\", name: \"checkedIngredients\", static: false, private: false, access: { has: obj => \"checkedIngredients\" in obj, get: obj => obj.checkedIngredients, set: (obj, value) => { obj.checkedIngredients = value; } }, metadata: _metadata }, _checkedIngredients_initializers, _checkedIngredients_extraInitializers);\n __esDecorate(null, null, _completedSteps_decorators, { kind: \"field\", name: \"completedSteps\", static: false, private: false, access: { has: obj => \"completedSteps\" in obj, get: obj => obj.completedSteps, set: (obj, value) => { obj.completedSteps = value; } }, metadata: _metadata }, _completedSteps_initializers, _completedSteps_extraInitializers);\n __esDecorate(null, null, _activeStep_decorators, { kind: \"field\", name: \"activeStep\", static: false, private: false, access: { has: obj => \"activeStep\" in obj, get: obj => obj.activeStep, set: (obj, value) => { obj.activeStep = value; } }, metadata: _metadata }, _activeStep_initializers, _activeStep_extraInitializers);\n __esDecorate(null, null, _timerVersion_decorators, { kind: \"field\", name: \"timerVersion\", static: false, private: false, access: { has: obj => \"timerVersion\" in obj, get: obj => obj.timerVersion, set: (obj, value) => { obj.timerVersion = value; } }, metadata: _metadata }, _timerVersion_initializers, _timerVersion_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n onServingsChange() {\n if (this.baseServings === 0) {\n this.baseServings = this.servings;\n this.currentServings = this.servings;\n }\n }\n onIngredientsChange() {\n this.checkedIngredients = new Array(this.ingredients.length).fill(false);\n }\n onStepsChange() {\n this.completedSteps = new Array(this.steps.length).fill(false);\n this.activeStep = -1;\n }\n setServings(count) {\n if (count < 1)\n return;\n const previous = this.currentServings;\n this.currentServings = count;\n this.emitServingChange(previous);\n }\n print() {\n window.print();\n }\n reset() {\n this.checkedIngredients = new Array(this.ingredients.length).fill(false);\n this.completedSteps = new Array(this.steps.length).fill(false);\n this.activeStep = -1;\n this.currentServings = this.baseServings || this.servings;\n // Clear all active timers\n for (const [, timer] of this.activeTimers.entries()) {\n clearInterval(timer.intervalId);\n }\n this.activeTimers.clear();\n this.timerVersion++;\n }\n scaleAmount(amount) {\n const base = this.baseServings || this.servings;\n if (base === 0)\n return amount;\n const scaled = (amount * this.currentServings) / base;\n return Math.round(scaled * 100) / 100;\n }\n formatAmount(amount) {\n const scaled = this.scaleAmount(amount);\n if (scaled === Math.floor(scaled))\n return scaled.toString();\n // Common fractions\n const frac = scaled - Math.floor(scaled);\n const whole = Math.floor(scaled);\n const fractionMap = [\n [0.25, '\\u00BC'], [0.33, '\\u2153'], [0.5, '\\u00BD'],\n [0.67, '\\u2154'], [0.75, '\\u00BE'],\n ];\n for (const [val, sym] of fractionMap) {\n if (Math.abs(frac - val) < 0.05) {\n return whole > 0 ? `${whole}${sym}` : sym;\n }\n }\n return scaled.toFixed(1);\n }\n toggleIngredient(index) {\n const updated = [...this.checkedIngredients];\n updated[index] = !updated[index];\n this.checkedIngredients = updated;\n this.emitIngredientCheck(index, updated[index]);\n }\n toggleStepComplete(index) {\n const updated = [...this.completedSteps];\n updated[index] = !updated[index];\n this.completedSteps = updated;\n this.emitStepComplete(index, updated[index]);\n }\n decrementServings() {\n if (this.currentServings > 1) {\n this.setServings(this.currentServings - 1);\n }\n }\n incrementServings() {\n this.setServings(this.currentServings + 1);\n }\n goToPrevStep() {\n if (this.activeStep > 0) {\n this.activeStep = this.activeStep - 1;\n }\n }\n goToNextStep() {\n if (this.activeStep < this.steps.length - 1) {\n this.activeStep = this.activeStep + 1;\n }\n else {\n this.activeStep = -1;\n }\n }\n startStepByStep() {\n this.activeStep = 0;\n }\n startTimer(stepIndex, minutes) {\n if (this.activeTimers.has(stepIndex))\n return;\n const remaining = minutes * 60;\n const intervalId = window.setInterval(() => {\n const timer = this.activeTimers.get(stepIndex);\n if (!timer)\n return;\n if (timer.remaining <= 1) {\n clearInterval(timer.intervalId);\n this.activeTimers.set(stepIndex, { ...timer, remaining: 0, done: true });\n this.timerVersion++;\n return;\n }\n this.activeTimers.set(stepIndex, { ...timer, remaining: timer.remaining - 1 });\n this.timerVersion++;\n }, 1000);\n this.activeTimers.set(stepIndex, { remaining, intervalId, done: false });\n this.timerVersion++;\n }\n cancelTimer(stepIndex) {\n const timer = this.activeTimers.get(stepIndex);\n if (timer) {\n clearInterval(timer.intervalId);\n this.activeTimers.delete(stepIndex);\n this.timerVersion++;\n }\n }\n formatTimer(seconds) {\n const m = Math.floor(seconds / 60);\n const s = seconds % 60;\n return `${m}:${s.toString().padStart(2, '0')}`;\n }\n formatMinutes(minutes) {\n if (minutes < 60)\n return `${minutes} min`;\n const hrs = Math.floor(minutes / 60);\n const mins = minutes % 60;\n return mins > 0 ? `${hrs}h ${mins}m` : `${hrs}h`;\n }\n emitServingChange(previousServings) {\n return { servings: this.currentServings, previousServings };\n }\n emitStepComplete(stepIndex, completed) {\n return { stepIndex, completed };\n }\n emitIngredientCheck(ingredientIndex, checked) {\n return { ingredientIndex, checked, ingredient: this.ingredients[ingredientIndex] };\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n template() {\n // Initialize base servings on first render\n if (this.baseServings === 0 && this.servings > 0) {\n this.baseServings = this.servings;\n this.currentServings = this.servings;\n }\n const totalTime = this.prepTime + this.cookTime;\n // Group ingredients\n const groups = new Map();\n this.ingredients.forEach((ing, i) => {\n const group = ing.group || '';\n if (!groups.has(group))\n groups.set(group, []);\n groups.get(group).push({ ingredient: ing, index: i });\n });\n const hasStepByStep = this.activeStep >= 0;\n const hasTags = this.tags.length > 0 || this.cuisine.length > 0;\n const hasCuisine = this.cuisine.length > 0;\n const hasIngredients = this.ingredients.length > 0;\n const hasSteps = this.steps.length > 0;\n const hasContent = hasIngredients || hasSteps;\n const hasMeta = this.prepTime > 0 || this.cookTime > 0 || this.servings > 0 || this.difficulty.length > 0;\n // Pre-compute nutrition values to avoid null access in template\n const hasNutrition = this.nutrition !== null;\n const nutritionCalories = hasNutrition ? this.nutrition.calories : 0;\n const nutritionProtein = hasNutrition ? this.nutrition.protein : 0;\n const nutritionCarbs = hasNutrition ? this.nutrition.carbs : 0;\n const nutritionFat = hasNutrition ? this.nutrition.fat : 0;\n const nutritionFiber = hasNutrition ? this.nutrition.fiber : 0;\n const nutritionSodium = hasNutrition ? this.nutrition.sodium : 0;\n const hasFiber = hasNutrition && this.nutrition.fiber !== undefined;\n const hasSodium = hasNutrition && this.nutrition.sodium !== undefined;\n // Pre-build ingredient items to avoid nested template issues\n const ingredientItems = [];\n for (const [groupName, items] of groups.entries()) {\n if (groupName) {\n ingredientItems.push(html `<li class=\"recipe__ingredient-group-title\">${groupName}</li>`);\n }\n for (const { ingredient, index } of items) {\n const isChecked = this.checkedIngredients[index] || false;\n const checkedClass = isChecked ? 'recipe__ingredient--checked' : '';\n ingredientItems.push(html `\n <li class=\"recipe__ingredient ${checkedClass}\" @click=${() => this.toggleIngredient(index)}>\n <input type=\"checkbox\" class=\"recipe__ingredient-checkbox\" ?checked=${isChecked} @click=${(e) => e.stopPropagation()} @change=${() => this.toggleIngredient(index)} />\n <span class=\"recipe__ingredient-amount\">${this.formatAmount(ingredient.amount)} ${ingredient.unit}</span>\n <span class=\"recipe__ingredient-text\">${ingredient.name}</span>\n </li>\n `);\n }\n }\n return html /*html*/ `\n <div class=\"recipe\" part=\"container\">\n <if ${this.image}>\n <div class=\"recipe__hero\" part=\"hero\">\n <img src=\"${this.image}\" alt=\"${this.title}\" loading=\"lazy\" />\n </div>\n </if>\n\n <div class=\"recipe__header\" part=\"header\">\n <h2 class=\"recipe__title\">${this.title}</h2>\n <if ${this.description}>\n <p class=\"recipe__description\">${this.description}</p>\n </if>\n <if ${this.author}>\n <span class=\"recipe__author\">By ${this.author}</span>\n </if>\n <if ${hasTags}>\n <div class=\"recipe__tags\">\n <if ${hasCuisine}>\n <span class=\"recipe__tag\">${this.cuisine}</span>\n </if>\n ${this.tags.map(tag => html `<span class=\"recipe__tag\">${tag}</span>`)}\n </div>\n </if>\n </div>\n\n <if ${hasMeta}>\n <div class=\"recipe__meta\" part=\"meta\">\n <if ${this.prepTime > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Prep</span>\n <span class=\"recipe__meta-value\">${this.formatMinutes(this.prepTime)}</span>\n </div>\n </if>\n <if ${this.cookTime > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Cook</span>\n <span class=\"recipe__meta-value\">${this.formatMinutes(this.cookTime)}</span>\n </div>\n </if>\n <if ${totalTime > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Total</span>\n <span class=\"recipe__meta-value\">${this.formatMinutes(totalTime)}</span>\n </div>\n </if>\n <if ${this.currentServings > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Servings</span>\n <span class=\"recipe__meta-value\">${this.currentServings}</span>\n </div>\n </if>\n <if ${this.difficulty}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Difficulty</span>\n <span class=\"recipe__meta-value recipe__difficulty--${this.difficulty}\">${this.difficulty}</span>\n </div>\n </if>\n </div>\n </if>\n\n <if ${hasContent}>\n <div class=\"recipe__content\" part=\"content\">\n <if ${hasIngredients}>\n <div class=\"recipe__ingredients-section\" part=\"ingredients\">\n <h3 class=\"recipe__section-title\">Ingredients</h3>\n <div class=\"recipe__servings-adjuster\">\n <button class=\"recipe__servings-btn\" @click=${() => this.decrementServings()} aria-label=\"Decrease servings\">-</button>\n <span class=\"recipe__servings-count\">${this.currentServings}</span>\n <button class=\"recipe__servings-btn\" @click=${() => this.incrementServings()} aria-label=\"Increase servings\">+</button>\n <span>servings</span>\n </div>\n <ul class=\"recipe__ingredients-list\">\n ${ingredientItems}\n </ul>\n </div>\n </if>\n\n <if ${hasSteps}>\n <div class=\"recipe__steps-section\" part=\"steps\">\n <h3 class=\"recipe__section-title\">Instructions</h3>\n <ol class=\"recipe__steps-list\">\n ${this.steps.map((step, i) => {\n const isCompleted = this.completedSteps[i] || false;\n const isActive = this.activeStep === i;\n const timer = this.activeTimers.get(i);\n const hasTimer = timer !== undefined;\n const timerDone = hasTimer && timer.done;\n const timerClass = timerDone ? 'recipe__active-timer--done' : '';\n const timerText = hasTimer ? (timer.done ? 'Done!' : this.formatTimer(timer.remaining)) : '';\n const showTimerBtn = step.time && !hasTimer;\n return html `\n <li class=\"recipe__step ${isCompleted ? 'recipe__step--completed' : ''} ${isActive ? 'recipe__step--active' : ''}\">\n <span class=\"recipe__step-number\" @click=${() => this.toggleStepComplete(i)} title=\"${isCompleted ? 'Mark incomplete' : 'Mark complete'}\">\n ${isCompleted ? '\\u2713' : i + 1}\n </span>\n <div class=\"recipe__step-body\">\n <div class=\"recipe__step-text\">${step.text}</div>\n <if ${step.tip}>\n <div class=\"recipe__step-tip\">${step.tip}</div>\n </if>\n <if ${step.image}>\n <img class=\"recipe__step-image\" src=\"${step.image}\" alt=\"Step ${i + 1}\" loading=\"lazy\" />\n </if>\n <if ${showTimerBtn}>\n <button class=\"recipe__step-timer-btn\" @click=${() => this.startTimer(i, step.time)}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/>\n </svg>\n ${this.formatMinutes(step.time)}\n </button>\n </if>\n <if ${hasTimer}>\n <span class=\"recipe__active-timer ${timerClass}\">\n ${timerText}\n <button class=\"recipe__timer-cancel\" @click=${() => this.cancelTimer(i)} title=\"Cancel timer\">\\u2715</button>\n </span>\n </if>\n </div>\n </li>\n `;\n })}\n </ol>\n </div>\n </if>\n </div>\n </if>\n\n <if ${hasNutrition}>\n <div class=\"recipe__nutrition\" part=\"nutrition\">\n <h3 class=\"recipe__section-title\">Nutrition Facts</h3>\n <span class=\"recipe__author\">Per serving</span>\n <div class=\"recipe__nutrition-grid\">\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionCalories}</div>\n <div class=\"recipe__nutrition-label\">Calories</div>\n </div>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionProtein}g</div>\n <div class=\"recipe__nutrition-label\">Protein</div>\n </div>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionCarbs}g</div>\n <div class=\"recipe__nutrition-label\">Carbs</div>\n </div>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionFat}g</div>\n <div class=\"recipe__nutrition-label\">Fat</div>\n </div>\n <if ${hasFiber}>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionFiber}g</div>\n <div class=\"recipe__nutrition-label\">Fiber</div>\n </div>\n </if>\n <if ${hasSodium}>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionSodium}mg</div>\n <div class=\"recipe__nutrition-label\">Sodium</div>\n </div>\n </if>\n </div>\n </div>\n </if>\n\n <if ${hasSteps}>\n <div class=\"recipe__step-controls\" part=\"controls\">\n <if ${!hasStepByStep}>\n <button @click=${() => this.startStepByStep()}>Step-by-Step</button>\n </if>\n <if ${hasStepByStep}>\n <button @click=${() => this.goToPrevStep()} ?disabled=${this.activeStep <= 0}>Previous</button>\n <button @click=${() => this.goToNextStep()}>\n ${this.activeStep >= this.steps.length - 1 ? 'Finish' : 'Next'}\n </button>\n </if>\n <button class=\"recipe__print-btn\" @click=${() => this.print()}>Print</button>\n <button @click=${() => this.reset()}>Reset</button>\n </div>\n </if>\n </div>\n `;\n }\n });\n return _classThis;\n})();\n\nexport { SniceRecipe };\n//# sourceMappingURL=snice-recipe.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","SniceRecipe","_classDescriptor","_classThis","_title_decorators","_description_decorators","_image_decorators","_author_decorators","_prepTime_decorators","_cookTime_decorators","_servings_decorators","_difficulty_decorators","_cuisine_decorators","_variant_decorators","_ingredients_decorators","_steps_decorators","_nutrition_decorators","_tags_decorators","_currentServings_decorators","_checkedIngredients_decorators","_completedSteps_decorators","_activeStep_decorators","_timerVersion_decorators","_onServingsChange_decorators","_onIngredientsChange_decorators","_onStepsChange_decorators","_emitServingChange_decorators","_emitStepComplete_decorators","_emitIngredientCheck_decorators","_styles_decorators","_template_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_title_initializers","_title_extraInitializers","_description_initializers","_description_extraInitializers","_image_initializers","_image_extraInitializers","_author_initializers","_author_extraInitializers","_prepTime_initializers","_prepTime_extraInitializers","_cookTime_initializers","_cookTime_extraInitializers","_servings_initializers","_servings_extraInitializers","_difficulty_initializers","_difficulty_extraInitializers","_cuisine_initializers","_cuisine_extraInitializers","_variant_initializers","_variant_extraInitializers","_ingredients_initializers","_ingredients_extraInitializers","_steps_initializers","_steps_extraInitializers","_nutrition_initializers","_nutrition_extraInitializers","_tags_initializers","_tags_extraInitializers","_currentServings_initializers","_currentServings_extraInitializers","_checkedIngredients_initializers","_checkedIngredients_extraInitializers","_completedSteps_initializers","_completedSteps_extraInitializers","_activeStep_initializers","_activeStep_extraInitializers","_timerVersion_initializers","_timerVersion_extraInitializers","this","constructor","super","title","description","image","author","prepTime","cookTime","servings","difficulty","cuisine","variant","ingredients","steps","nutrition","tags","currentServings","checkedIngredients","completedSteps","activeStep","timerVersion","activeTimers","Map","baseServings","_metadata","Symbol","metadata","create","property","type","Number","attribute","Array","watch","dispatch","bubbles","composed","styles","render","static","private","has","obj","onServingsChange","onIngredientsChange","onStepsChange","emitServingChange","emitStepComplete","emitIngredientCheck","template","enumerable","configurable","writable","fill","setServings","count","previous","print","window","reset","timer","entries","clearInterval","intervalId","clear","scaleAmount","amount","base","scaled","Math","round","formatAmount","floor","toString","frac","whole","fractionMap","val","sym","abs","toFixed","toggleIngredient","index","updated","toggleStepComplete","decrementServings","incrementServings","goToPrevStep","goToNextStep","startStepByStep","startTimer","stepIndex","minutes","remaining","setInterval","cancelTimer","delete","formatTimer","seconds","padStart","formatMinutes","hrs","mins","previousServings","completed","ingredientIndex","checked","ingredient","css","totalTime","groups","forEach","ing","group","hasStepByStep","hasTags","hasCuisine","hasIngredients","hasSteps","hasContent","hasMeta","hasNutrition","nutritionCalories","calories","nutritionProtein","protein","nutritionCarbs","carbs","nutritionFat","fat","nutritionFiber","fiber","nutritionSodium","sodium","hasFiber","undefined","hasSodium","ingredientItems","groupName","items","html","isChecked","checkedClass","e","stopPropagation","unit","map","tag","step","isCompleted","isActive","hasTimer","timerClass","timerText","showTimerBtn","time","text","tip"],"mappings":";;;;;;6JAiEO,SAASA,EA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yB;mEACjE,IAAMvJ,KAAKqF,mBAAmBnL,aAAaoP,EAAc,kBAAoB;4BACpHA,EAAc,IAAWpP,EAAI;;;2DAGEmP,EAAKQ;gCAChCR,EAAKS;4DACuBT,EAAKS;;gCAEjCT,EAAKhJ;mEAC8BgJ,EAAKhJ,oBAAoBnG,EAAI;;gCAEhEyP;4EAC4C,IAAM3J,KAAK2F,WAAWzL,EAAGmP,EAAKO;;;;gCAI1E5J,KAAKqG,cAAcgD,EAAKO;;;gCAGxBJ;gEACgCC;gCAChCC;4EAC4C,IAAM1J,KAAKgG,YAAY9L;;;;;;;;;;;;cAarFwN;;;;;;uDAMyCC;;;;uDAIAE;;;;uDAIAE;;;;uDAIAE;;;oBAGnCM;;yDAEqCJ;;;;oBAIrCM;;yDAEqCJ;;;;;;;;cAQ3Cd;;mBAEKJ;+BACY,IAAMnH,KAAK0F;;kBAExByB;+BACa,IAAMnH,KAAKwF,4BAA4BxF,KAAKoB,YAAc;+BAC1D,IAAMpB,KAAKyF;kBACxBzF,KAAKoB,YAAcpB,KAAKc,MAAM3G,OAAS,EAAI,SAAW;;;uDAGjB,IAAM6F,KAAK0D;6BACrC,IAAM1D,KAAK4D;;;;KAKhC,GAEGpI,CACV,EA/hBiB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"snice-recipe.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/recipe/snice-recipe.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, watch, dispatch, styles, render, css, html } from 'snice';\n\nvar cssContent = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);color:var(--snice-color-text,rgb(23 23 23));width:100%;--recipe-bg:var(--snice-color-background-element, rgb(252 251 249));--recipe-border:var(--snice-color-border, rgb(226 226 226));--recipe-text:var(--snice-color-text, rgb(23 23 23));--recipe-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--recipe-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--recipe-primary:var(--snice-color-primary, rgb(37 99 235));--recipe-success:var(--snice-color-success, rgb(22 163 74));--recipe-danger:var(--snice-color-danger, rgb(220 38 38));--recipe-radius:var(--snice-border-radius-lg, 0.5rem);--recipe-shadow:var(--snice-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))}.recipe{background:var(--recipe-bg);border-radius:var(--recipe-radius);box-shadow:var(--recipe-shadow);overflow:hidden}.recipe__hero{position:relative;width:100%;overflow:hidden}.recipe__hero img{width:100%;height:auto;display:block;object-fit:cover;max-height:25rem}.recipe__header{padding:var(--snice-spacing-lg,1.5rem)}.recipe__title{margin:0 0 var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-2xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__description{margin:0 0 var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-md, 1rem);color:var(--recipe-text-secondary);line-height:var(--snice-line-height-normal, 1.5)}.recipe__author{font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-tertiary)}.recipe__tags{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__tag{display:inline-flex;align-items:center;padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-xs, .75rem);border-radius:9999px;background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--recipe-border);color:var(--recipe-text-secondary)}.recipe__meta{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border);border-bottom:1px solid var(--recipe-border);background:var(--snice-color-background,rgb(255 255 255))}.recipe__meta-item{display:flex;flex-direction:column;align-items:center;gap:var(--snice-spacing-3xs,.125rem);min-width:4rem}.recipe__meta-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);text-transform:uppercase;letter-spacing:.05em}.recipe__meta-value{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__difficulty--easy{color:var(--recipe-success)}.recipe__difficulty--medium{color:var(--snice-color-warning,rgb(234 179 8))}.recipe__difficulty--hard{color:var(--recipe-danger)}.recipe__content{display:grid;grid-template-columns:1fr 2fr;gap:var(--snice-spacing-lg,1.5rem);padding:var(--snice-spacing-lg,1.5rem)}@media (max-width:768px){.recipe__content{grid-template-columns:1fr}}.recipe__servings-adjuster{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-md,1rem)}.recipe__servings-adjuster span{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__servings-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--recipe-border);border-radius:50%;background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-lg, 1.125rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms);padding:0;line-height:1}.recipe__servings-btn:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__servings-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__servings-count{min-width:2rem;text-align:center;font-weight:var(--snice-font-weight-bold,700);font-size:var(--snice-font-size-lg, 1.125rem)}.recipe__ingredients-section{position:relative}.recipe__section-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0 0 var(--snice-spacing-sm,.75rem);color:var(--recipe-text)}.recipe__ingredient-group-title{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-medium,500);color:var(--recipe-text-secondary);margin:var(--snice-spacing-sm,.75rem) 0 var(--snice-spacing-2xs,.25rem)}.recipe__ingredients-list{list-style:none;padding:0;margin:0}.recipe__ingredient{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) 0;border-bottom:1px solid var(--recipe-border);cursor:pointer;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__ingredient:last-child{border-bottom:none}.recipe__ingredient--checked{opacity:.5}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:line-through}.recipe__ingredient-checkbox{appearance:none;width:1.125rem;height:1.125rem;border:2px solid var(--recipe-border);border-radius:3px;cursor:pointer;flex-shrink:0;position:relative;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__ingredient-checkbox:checked{background:var(--recipe-primary);border-color:var(--recipe-primary)}.recipe__ingredient-checkbox:checked::after{content:'';position:absolute;left:3px;top:0;width:.375rem;height:.625rem;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.recipe__ingredient-checkbox:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__ingredient-amount{font-weight:var(--snice-font-weight-semibold,600);white-space:nowrap;color:var(--recipe-text)}.recipe__ingredient-text{color:var(--recipe-text-secondary)}.recipe__steps-section{position:relative}.recipe__steps-list{list-style:none;padding:0;margin:0;counter-reset:step-counter}.recipe__step{display:flex;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) 0;border-bottom:1px solid var(--recipe-border);counter-increment:step-counter;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__step:last-child{border-bottom:none}.recipe__step--completed{opacity:.5}.recipe__step--active{background:var(--snice-color-primary-subtle,rgb(239 246 255));margin:0 calc(-1 * var(--snice-spacing-sm,.75rem));padding-left:var(--snice-spacing-sm,.75rem);padding-right:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-number{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--recipe-primary);color:var(--snice-color-text-inverse,rgb(250 250 250));font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-bold,700);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step--completed .recipe__step-number{background:var(--recipe-success)}.recipe__step-number:hover{opacity:.8}.recipe__step-body{flex:1;min-width:0}.recipe__step-text{font-size:var(--snice-font-size-md, 1rem);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__step-tip{margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-left:3px solid var(--recipe-primary);border-radius:0 var(--snice-border-radius-md,.25rem) var(--snice-border-radius-md,.25rem) 0;font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-secondary)}.recipe__step-image{margin-top:var(--snice-spacing-xs,.5rem);width:100%;max-width:20rem;border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-timer-btn{display:inline-flex;align-items:center;gap:var(--snice-spacing-3xs,.125rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--recipe-primary);border-radius:var(--snice-border-radius-md,.25rem);background:0 0;color:var(--recipe-primary);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step-timer-btn:hover{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-timer-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__step-timer-btn svg{width:.875rem;height:.875rem}.recipe__active-timer{display:inline-flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-primary)}.recipe__active-timer--done{background:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--recipe-success)}.recipe__timer-cancel{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:none;border-radius:50%;background:0 0;color:inherit;cursor:pointer;padding:0;font-size:.75rem}.recipe__timer-cancel:hover{background:rgb(0 0 0 / .1)}.recipe__nutrition{padding:var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__nutrition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__nutrition-item{text-align:center;padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-background,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);border:1px solid var(--recipe-border)}.recipe__nutrition-value{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-bold,700);color:var(--recipe-text)}.recipe__nutrition-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);margin-top:var(--snice-spacing-3xs,.125rem)}.recipe__step-controls{display:flex;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__step-controls button{padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);border:1px solid var(--recipe-border);border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__step-controls button:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-controls button:disabled{opacity:.4;cursor:not-allowed}.recipe__step-controls button:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__print-btn{margin-left:auto}:host([variant=card]) .recipe__content{grid-template-columns:1fr;padding:var(--snice-spacing-md,1rem)}:host([variant=card]) .recipe__hero img{max-height:15rem}:host([variant=card]) .recipe__header{padding:var(--snice-spacing-md,1rem)}@media print{.recipe{box-shadow:none;border:1px solid #ccc}.recipe__active-timer,.recipe__servings-btn,.recipe__step-controls,.recipe__step-timer-btn,.recipe__timer-cancel{display:none!important}.recipe__ingredient--checked,.recipe__step--completed{opacity:1}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:none}}[hidden]{display:none!important}\";\n\nlet SniceRecipe = (() => {\n let _classDecorators = [element('snice-recipe')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _description_decorators;\n let _description_initializers = [];\n let _description_extraInitializers = [];\n let _image_decorators;\n let _image_initializers = [];\n let _image_extraInitializers = [];\n let _author_decorators;\n let _author_initializers = [];\n let _author_extraInitializers = [];\n let _prepTime_decorators;\n let _prepTime_initializers = [];\n let _prepTime_extraInitializers = [];\n let _cookTime_decorators;\n let _cookTime_initializers = [];\n let _cookTime_extraInitializers = [];\n let _servings_decorators;\n let _servings_initializers = [];\n let _servings_extraInitializers = [];\n let _difficulty_decorators;\n let _difficulty_initializers = [];\n let _difficulty_extraInitializers = [];\n let _cuisine_decorators;\n let _cuisine_initializers = [];\n let _cuisine_extraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _ingredients_decorators;\n let _ingredients_initializers = [];\n let _ingredients_extraInitializers = [];\n let _steps_decorators;\n let _steps_initializers = [];\n let _steps_extraInitializers = [];\n let _nutrition_decorators;\n let _nutrition_initializers = [];\n let _nutrition_extraInitializers = [];\n let _tags_decorators;\n let _tags_initializers = [];\n let _tags_extraInitializers = [];\n let _currentServings_decorators;\n let _currentServings_initializers = [];\n let _currentServings_extraInitializers = [];\n let _checkedIngredients_decorators;\n let _checkedIngredients_initializers = [];\n let _checkedIngredients_extraInitializers = [];\n let _completedSteps_decorators;\n let _completedSteps_initializers = [];\n let _completedSteps_extraInitializers = [];\n let _activeStep_decorators;\n let _activeStep_initializers = [];\n let _activeStep_extraInitializers = [];\n let _timerVersion_decorators;\n let _timerVersion_initializers = [];\n let _timerVersion_extraInitializers = [];\n let _onServingsChange_decorators;\n let _onIngredientsChange_decorators;\n let _onStepsChange_decorators;\n let _emitServingChange_decorators;\n let _emitStepComplete_decorators;\n let _emitIngredientCheck_decorators;\n let _styles_decorators;\n let _template_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.title = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _title_initializers, ''));\n this.description = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _description_initializers, ''));\n this.image = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _image_initializers, ''));\n this.author = (__runInitializers(this, _image_extraInitializers), __runInitializers(this, _author_initializers, ''));\n this.prepTime = (__runInitializers(this, _author_extraInitializers), __runInitializers(this, _prepTime_initializers, 0));\n this.cookTime = (__runInitializers(this, _prepTime_extraInitializers), __runInitializers(this, _cookTime_initializers, 0));\n this.servings = (__runInitializers(this, _cookTime_extraInitializers), __runInitializers(this, _servings_initializers, 4));\n this.difficulty = (__runInitializers(this, _servings_extraInitializers), __runInitializers(this, _difficulty_initializers, 'medium'));\n this.cuisine = (__runInitializers(this, _difficulty_extraInitializers), __runInitializers(this, _cuisine_initializers, ''));\n this.variant = (__runInitializers(this, _cuisine_extraInitializers), __runInitializers(this, _variant_initializers, 'full'));\n this.ingredients = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _ingredients_initializers, []));\n this.steps = (__runInitializers(this, _ingredients_extraInitializers), __runInitializers(this, _steps_initializers, []));\n this.nutrition = (__runInitializers(this, _steps_extraInitializers), __runInitializers(this, _nutrition_initializers, null));\n this.tags = (__runInitializers(this, _nutrition_extraInitializers), __runInitializers(this, _tags_initializers, []));\n // Internal state\n this.currentServings = (__runInitializers(this, _tags_extraInitializers), __runInitializers(this, _currentServings_initializers, 0));\n this.checkedIngredients = (__runInitializers(this, _currentServings_extraInitializers), __runInitializers(this, _checkedIngredients_initializers, []));\n this.completedSteps = (__runInitializers(this, _checkedIngredients_extraInitializers), __runInitializers(this, _completedSteps_initializers, []));\n this.activeStep = (__runInitializers(this, _completedSteps_extraInitializers), __runInitializers(this, _activeStep_initializers, -1));\n this.timerVersion = (__runInitializers(this, _activeStep_extraInitializers), __runInitializers(this, _timerVersion_initializers, 0));\n this.activeTimers = (__runInitializers(this, _timerVersion_extraInitializers), new Map());\n this.baseServings = 0;\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _title_decorators = [property()];\n _description_decorators = [property()];\n _image_decorators = [property()];\n _author_decorators = [property()];\n _prepTime_decorators = [property({ type: Number, attribute: 'prep-time' })];\n _cookTime_decorators = [property({ type: Number, attribute: 'cook-time' })];\n _servings_decorators = [property({ type: Number })];\n _difficulty_decorators = [property()];\n _cuisine_decorators = [property()];\n _variant_decorators = [property()];\n _ingredients_decorators = [property({ type: Array, attribute: false })];\n _steps_decorators = [property({ type: Array, attribute: false })];\n _nutrition_decorators = [property({ type: Object, attribute: false })];\n _tags_decorators = [property({ type: Array, attribute: false })];\n _currentServings_decorators = [property({ type: Number })];\n _checkedIngredients_decorators = [property({ type: Array })];\n _completedSteps_decorators = [property({ type: Array })];\n _activeStep_decorators = [property({ type: Number })];\n _timerVersion_decorators = [property({ type: Number })];\n _onServingsChange_decorators = [watch('servings')];\n _onIngredientsChange_decorators = [watch('ingredients')];\n _onStepsChange_decorators = [watch('steps')];\n _emitServingChange_decorators = [dispatch('recipe-serving-change', { bubbles: true, composed: true })];\n _emitStepComplete_decorators = [dispatch('recipe-step-complete', { bubbles: true, composed: true })];\n _emitIngredientCheck_decorators = [dispatch('recipe-ingredient-check', { bubbles: true, composed: true })];\n _styles_decorators = [styles()];\n _template_decorators = [render()];\n __esDecorate(this, null, _onServingsChange_decorators, { kind: \"method\", name: \"onServingsChange\", static: false, private: false, access: { has: obj => \"onServingsChange\" in obj, get: obj => obj.onServingsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _onIngredientsChange_decorators, { kind: \"method\", name: \"onIngredientsChange\", static: false, private: false, access: { has: obj => \"onIngredientsChange\" in obj, get: obj => obj.onIngredientsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _onStepsChange_decorators, { kind: \"method\", name: \"onStepsChange\", static: false, private: false, access: { has: obj => \"onStepsChange\" in obj, get: obj => obj.onStepsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitServingChange_decorators, { kind: \"method\", name: \"emitServingChange\", static: false, private: false, access: { has: obj => \"emitServingChange\" in obj, get: obj => obj.emitServingChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitStepComplete_decorators, { kind: \"method\", name: \"emitStepComplete\", static: false, private: false, access: { has: obj => \"emitStepComplete\" in obj, get: obj => obj.emitStepComplete }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitIngredientCheck_decorators, { kind: \"method\", name: \"emitIngredientCheck\", static: false, private: false, access: { has: obj => \"emitIngredientCheck\" in obj, get: obj => obj.emitIngredientCheck }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _template_decorators, { kind: \"method\", name: \"template\", static: false, private: false, access: { has: obj => \"template\" in obj, get: obj => obj.template }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _description_decorators, { kind: \"field\", name: \"description\", static: false, private: false, access: { has: obj => \"description\" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);\n __esDecorate(null, null, _image_decorators, { kind: \"field\", name: \"image\", static: false, private: false, access: { has: obj => \"image\" in obj, get: obj => obj.image, set: (obj, value) => { obj.image = value; } }, metadata: _metadata }, _image_initializers, _image_extraInitializers);\n __esDecorate(null, null, _author_decorators, { kind: \"field\", name: \"author\", static: false, private: false, access: { has: obj => \"author\" in obj, get: obj => obj.author, set: (obj, value) => { obj.author = value; } }, metadata: _metadata }, _author_initializers, _author_extraInitializers);\n __esDecorate(null, null, _prepTime_decorators, { kind: \"field\", name: \"prepTime\", static: false, private: false, access: { has: obj => \"prepTime\" in obj, get: obj => obj.prepTime, set: (obj, value) => { obj.prepTime = value; } }, metadata: _metadata }, _prepTime_initializers, _prepTime_extraInitializers);\n __esDecorate(null, null, _cookTime_decorators, { kind: \"field\", name: \"cookTime\", static: false, private: false, access: { has: obj => \"cookTime\" in obj, get: obj => obj.cookTime, set: (obj, value) => { obj.cookTime = value; } }, metadata: _metadata }, _cookTime_initializers, _cookTime_extraInitializers);\n __esDecorate(null, null, _servings_decorators, { kind: \"field\", name: \"servings\", static: false, private: false, access: { has: obj => \"servings\" in obj, get: obj => obj.servings, set: (obj, value) => { obj.servings = value; } }, metadata: _metadata }, _servings_initializers, _servings_extraInitializers);\n __esDecorate(null, null, _difficulty_decorators, { kind: \"field\", name: \"difficulty\", static: false, private: false, access: { has: obj => \"difficulty\" in obj, get: obj => obj.difficulty, set: (obj, value) => { obj.difficulty = value; } }, metadata: _metadata }, _difficulty_initializers, _difficulty_extraInitializers);\n __esDecorate(null, null, _cuisine_decorators, { kind: \"field\", name: \"cuisine\", static: false, private: false, access: { has: obj => \"cuisine\" in obj, get: obj => obj.cuisine, set: (obj, value) => { obj.cuisine = value; } }, metadata: _metadata }, _cuisine_initializers, _cuisine_extraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _ingredients_decorators, { kind: \"field\", name: \"ingredients\", static: false, private: false, access: { has: obj => \"ingredients\" in obj, get: obj => obj.ingredients, set: (obj, value) => { obj.ingredients = value; } }, metadata: _metadata }, _ingredients_initializers, _ingredients_extraInitializers);\n __esDecorate(null, null, _steps_decorators, { kind: \"field\", name: \"steps\", static: false, private: false, access: { has: obj => \"steps\" in obj, get: obj => obj.steps, set: (obj, value) => { obj.steps = value; } }, metadata: _metadata }, _steps_initializers, _steps_extraInitializers);\n __esDecorate(null, null, _nutrition_decorators, { kind: \"field\", name: \"nutrition\", static: false, private: false, access: { has: obj => \"nutrition\" in obj, get: obj => obj.nutrition, set: (obj, value) => { obj.nutrition = value; } }, metadata: _metadata }, _nutrition_initializers, _nutrition_extraInitializers);\n __esDecorate(null, null, _tags_decorators, { kind: \"field\", name: \"tags\", static: false, private: false, access: { has: obj => \"tags\" in obj, get: obj => obj.tags, set: (obj, value) => { obj.tags = value; } }, metadata: _metadata }, _tags_initializers, _tags_extraInitializers);\n __esDecorate(null, null, _currentServings_decorators, { kind: \"field\", name: \"currentServings\", static: false, private: false, access: { has: obj => \"currentServings\" in obj, get: obj => obj.currentServings, set: (obj, value) => { obj.currentServings = value; } }, metadata: _metadata }, _currentServings_initializers, _currentServings_extraInitializers);\n __esDecorate(null, null, _checkedIngredients_decorators, { kind: \"field\", name: \"checkedIngredients\", static: false, private: false, access: { has: obj => \"checkedIngredients\" in obj, get: obj => obj.checkedIngredients, set: (obj, value) => { obj.checkedIngredients = value; } }, metadata: _metadata }, _checkedIngredients_initializers, _checkedIngredients_extraInitializers);\n __esDecorate(null, null, _completedSteps_decorators, { kind: \"field\", name: \"completedSteps\", static: false, private: false, access: { has: obj => \"completedSteps\" in obj, get: obj => obj.completedSteps, set: (obj, value) => { obj.completedSteps = value; } }, metadata: _metadata }, _completedSteps_initializers, _completedSteps_extraInitializers);\n __esDecorate(null, null, _activeStep_decorators, { kind: \"field\", name: \"activeStep\", static: false, private: false, access: { has: obj => \"activeStep\" in obj, get: obj => obj.activeStep, set: (obj, value) => { obj.activeStep = value; } }, metadata: _metadata }, _activeStep_initializers, _activeStep_extraInitializers);\n __esDecorate(null, null, _timerVersion_decorators, { kind: \"field\", name: \"timerVersion\", static: false, private: false, access: { has: obj => \"timerVersion\" in obj, get: obj => obj.timerVersion, set: (obj, value) => { obj.timerVersion = value; } }, metadata: _metadata }, _timerVersion_initializers, _timerVersion_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n onServingsChange() {\n if (this.baseServings === 0) {\n this.baseServings = this.servings;\n this.currentServings = this.servings;\n }\n }\n onIngredientsChange() {\n this.checkedIngredients = new Array(this.ingredients.length).fill(false);\n }\n onStepsChange() {\n this.completedSteps = new Array(this.steps.length).fill(false);\n this.activeStep = -1;\n }\n setServings(count) {\n if (count < 1)\n return;\n const previous = this.currentServings;\n this.currentServings = count;\n this.emitServingChange(previous);\n }\n print() {\n window.print();\n }\n reset() {\n this.checkedIngredients = new Array(this.ingredients.length).fill(false);\n this.completedSteps = new Array(this.steps.length).fill(false);\n this.activeStep = -1;\n this.currentServings = this.baseServings || this.servings;\n // Clear all active timers\n for (const [, timer] of this.activeTimers.entries()) {\n clearInterval(timer.intervalId);\n }\n this.activeTimers.clear();\n this.timerVersion++;\n }\n scaleAmount(amount) {\n const base = this.baseServings || this.servings;\n if (base === 0)\n return amount;\n const scaled = (amount * this.currentServings) / base;\n return Math.round(scaled * 100) / 100;\n }\n formatAmount(amount) {\n const scaled = this.scaleAmount(amount);\n if (scaled === Math.floor(scaled))\n return scaled.toString();\n // Common fractions\n const frac = scaled - Math.floor(scaled);\n const whole = Math.floor(scaled);\n const fractionMap = [\n [0.25, '\\u00BC'], [0.33, '\\u2153'], [0.5, '\\u00BD'],\n [0.67, '\\u2154'], [0.75, '\\u00BE'],\n ];\n for (const [val, sym] of fractionMap) {\n if (Math.abs(frac - val) < 0.05) {\n return whole > 0 ? `${whole}${sym}` : sym;\n }\n }\n return scaled.toFixed(1);\n }\n toggleIngredient(index) {\n const updated = [...this.checkedIngredients];\n updated[index] = !updated[index];\n this.checkedIngredients = updated;\n this.emitIngredientCheck(index, updated[index]);\n }\n toggleStepComplete(index) {\n const updated = [...this.completedSteps];\n updated[index] = !updated[index];\n this.completedSteps = updated;\n this.emitStepComplete(index, updated[index]);\n }\n decrementServings() {\n if (this.currentServings > 1) {\n this.setServings(this.currentServings - 1);\n }\n }\n incrementServings() {\n this.setServings(this.currentServings + 1);\n }\n goToPrevStep() {\n if (this.activeStep > 0) {\n this.activeStep = this.activeStep - 1;\n }\n }\n goToNextStep() {\n if (this.activeStep < this.steps.length - 1) {\n this.activeStep = this.activeStep + 1;\n }\n else {\n this.activeStep = -1;\n }\n }\n startStepByStep() {\n this.activeStep = 0;\n }\n startTimer(stepIndex, minutes) {\n if (this.activeTimers.has(stepIndex))\n return;\n const remaining = minutes * 60;\n const intervalId = window.setInterval(() => {\n const timer = this.activeTimers.get(stepIndex);\n if (!timer)\n return;\n if (timer.remaining <= 1) {\n clearInterval(timer.intervalId);\n this.activeTimers.set(stepIndex, { ...timer, remaining: 0, done: true });\n this.timerVersion++;\n return;\n }\n this.activeTimers.set(stepIndex, { ...timer, remaining: timer.remaining - 1 });\n this.timerVersion++;\n }, 1000);\n this.activeTimers.set(stepIndex, { remaining, intervalId, done: false });\n this.timerVersion++;\n }\n cancelTimer(stepIndex) {\n const timer = this.activeTimers.get(stepIndex);\n if (timer) {\n clearInterval(timer.intervalId);\n this.activeTimers.delete(stepIndex);\n this.timerVersion++;\n }\n }\n formatTimer(seconds) {\n const m = Math.floor(seconds / 60);\n const s = seconds % 60;\n return `${m}:${s.toString().padStart(2, '0')}`;\n }\n formatMinutes(minutes) {\n if (minutes < 60)\n return `${minutes} min`;\n const hrs = Math.floor(minutes / 60);\n const mins = minutes % 60;\n return mins > 0 ? `${hrs}h ${mins}m` : `${hrs}h`;\n }\n emitServingChange(previousServings) {\n return { servings: this.currentServings, previousServings };\n }\n emitStepComplete(stepIndex, completed) {\n return { stepIndex, completed };\n }\n emitIngredientCheck(ingredientIndex, checked) {\n return { ingredientIndex, checked, ingredient: this.ingredients[ingredientIndex] };\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n template() {\n // Initialize base servings on first render\n if (this.baseServings === 0 && this.servings > 0) {\n this.baseServings = this.servings;\n this.currentServings = this.servings;\n }\n const totalTime = this.prepTime + this.cookTime;\n // Group ingredients\n const groups = new Map();\n this.ingredients.forEach((ing, i) => {\n const group = ing.group || '';\n if (!groups.has(group))\n groups.set(group, []);\n groups.get(group).push({ ingredient: ing, index: i });\n });\n const hasStepByStep = this.activeStep >= 0;\n const hasTags = this.tags.length > 0 || this.cuisine.length > 0;\n const hasCuisine = this.cuisine.length > 0;\n const hasIngredients = this.ingredients.length > 0;\n const hasSteps = this.steps.length > 0;\n const hasContent = hasIngredients || hasSteps;\n const hasMeta = this.prepTime > 0 || this.cookTime > 0 || this.servings > 0 || this.difficulty.length > 0;\n // Pre-compute nutrition values to avoid null access in template\n const hasNutrition = this.nutrition !== null;\n const nutritionCalories = hasNutrition ? this.nutrition.calories : 0;\n const nutritionProtein = hasNutrition ? this.nutrition.protein : 0;\n const nutritionCarbs = hasNutrition ? this.nutrition.carbs : 0;\n const nutritionFat = hasNutrition ? this.nutrition.fat : 0;\n const nutritionFiber = hasNutrition ? this.nutrition.fiber : 0;\n const nutritionSodium = hasNutrition ? this.nutrition.sodium : 0;\n const hasFiber = hasNutrition && this.nutrition.fiber !== undefined;\n const hasSodium = hasNutrition && this.nutrition.sodium !== undefined;\n // Pre-build ingredient items to avoid nested template issues\n const ingredientItems = [];\n for (const [groupName, items] of groups.entries()) {\n if (groupName) {\n ingredientItems.push(html `<li class=\"recipe__ingredient-group-title\">${groupName}</li>`);\n }\n for (const { ingredient, index } of items) {\n const isChecked = this.checkedIngredients[index] || false;\n const checkedClass = isChecked ? 'recipe__ingredient--checked' : '';\n ingredientItems.push(html `\n <li class=\"recipe__ingredient ${checkedClass}\" @click=${() => this.toggleIngredient(index)}>\n <input type=\"checkbox\" class=\"recipe__ingredient-checkbox\" ?checked=${isChecked} @click=${(e) => e.stopPropagation()} @change=${() => this.toggleIngredient(index)} />\n <span class=\"recipe__ingredient-amount\">${this.formatAmount(ingredient.amount)} ${ingredient.unit}</span>\n <span class=\"recipe__ingredient-text\">${ingredient.name}</span>\n </li>\n `);\n }\n }\n return html /*html*/ `\n <div class=\"recipe\" part=\"container\">\n <if ${this.image}>\n <div class=\"recipe__hero\" part=\"hero\">\n <img src=\"${this.image}\" alt=\"${this.title}\" loading=\"lazy\" />\n </div>\n </if>\n\n <div class=\"recipe__header\" part=\"header\">\n <h2 class=\"recipe__title\">${this.title}</h2>\n <if ${this.description}>\n <p class=\"recipe__description\">${this.description}</p>\n </if>\n <if ${this.author}>\n <span class=\"recipe__author\">By ${this.author}</span>\n </if>\n <if ${hasTags}>\n <div class=\"recipe__tags\">\n <if ${hasCuisine}>\n <span class=\"recipe__tag\">${this.cuisine}</span>\n </if>\n ${this.tags.map(tag => html `<span class=\"recipe__tag\">${tag}</span>`)}\n </div>\n </if>\n </div>\n\n <if ${hasMeta}>\n <div class=\"recipe__meta\" part=\"meta\">\n <if ${this.prepTime > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Prep</span>\n <span class=\"recipe__meta-value\">${this.formatMinutes(this.prepTime)}</span>\n </div>\n </if>\n <if ${this.cookTime > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Cook</span>\n <span class=\"recipe__meta-value\">${this.formatMinutes(this.cookTime)}</span>\n </div>\n </if>\n <if ${totalTime > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Total</span>\n <span class=\"recipe__meta-value\">${this.formatMinutes(totalTime)}</span>\n </div>\n </if>\n <if ${this.currentServings > 0}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Servings</span>\n <span class=\"recipe__meta-value\">${this.currentServings}</span>\n </div>\n </if>\n <if ${this.difficulty}>\n <div class=\"recipe__meta-item\">\n <span class=\"recipe__meta-label\">Difficulty</span>\n <span class=\"recipe__meta-value recipe__difficulty--${this.difficulty}\">${this.difficulty}</span>\n </div>\n </if>\n </div>\n </if>\n\n <if ${hasContent}>\n <div class=\"recipe__content\" part=\"content\">\n <if ${hasIngredients}>\n <div class=\"recipe__ingredients-section\" part=\"ingredients\">\n <h3 class=\"recipe__section-title\">Ingredients</h3>\n <div class=\"recipe__servings-adjuster\">\n <button class=\"recipe__servings-btn\" @click=${() => this.decrementServings()} aria-label=\"Decrease servings\">-</button>\n <span class=\"recipe__servings-count\">${this.currentServings}</span>\n <button class=\"recipe__servings-btn\" @click=${() => this.incrementServings()} aria-label=\"Increase servings\">+</button>\n <span>servings</span>\n </div>\n <ul class=\"recipe__ingredients-list\">\n ${ingredientItems}\n </ul>\n </div>\n </if>\n\n <if ${hasSteps}>\n <div class=\"recipe__steps-section\" part=\"steps\">\n <h3 class=\"recipe__section-title\">Instructions</h3>\n <ol class=\"recipe__steps-list\">\n ${this.steps.map((step, i) => {\n const isCompleted = this.completedSteps[i] || false;\n const isActive = this.activeStep === i;\n const timer = this.activeTimers.get(i);\n const hasTimer = timer !== undefined;\n const timerDone = hasTimer && timer.done;\n const timerClass = timerDone ? 'recipe__active-timer--done' : '';\n const timerText = hasTimer ? (timer.done ? 'Done!' : this.formatTimer(timer.remaining)) : '';\n const showTimerBtn = step.time && !hasTimer;\n return html `\n <li class=\"recipe__step ${isCompleted ? 'recipe__step--completed' : ''} ${isActive ? 'recipe__step--active' : ''}\">\n <span class=\"recipe__step-number\" @click=${() => this.toggleStepComplete(i)} title=\"${isCompleted ? 'Mark incomplete' : 'Mark complete'}\">\n ${isCompleted ? '\\u2713' : i + 1}\n </span>\n <div class=\"recipe__step-body\">\n <div class=\"recipe__step-text\">${step.text}</div>\n <if ${step.tip}>\n <div class=\"recipe__step-tip\">${step.tip}</div>\n </if>\n <if ${step.image}>\n <img class=\"recipe__step-image\" src=\"${step.image}\" alt=\"Step ${i + 1}\" loading=\"lazy\" />\n </if>\n <if ${showTimerBtn}>\n <button class=\"recipe__step-timer-btn\" @click=${() => this.startTimer(i, step.time)}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/>\n </svg>\n ${this.formatMinutes(step.time)}\n </button>\n </if>\n <if ${hasTimer}>\n <span class=\"recipe__active-timer ${timerClass}\">\n ${timerText}\n <button class=\"recipe__timer-cancel\" @click=${() => this.cancelTimer(i)} title=\"Cancel timer\">\\u2715</button>\n </span>\n </if>\n </div>\n </li>\n `;\n })}\n </ol>\n </div>\n </if>\n </div>\n </if>\n\n <if ${hasNutrition}>\n <div class=\"recipe__nutrition\" part=\"nutrition\">\n <h3 class=\"recipe__section-title\">Nutrition Facts</h3>\n <span class=\"recipe__author\">Per serving</span>\n <div class=\"recipe__nutrition-grid\">\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionCalories}</div>\n <div class=\"recipe__nutrition-label\">Calories</div>\n </div>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionProtein}g</div>\n <div class=\"recipe__nutrition-label\">Protein</div>\n </div>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionCarbs}g</div>\n <div class=\"recipe__nutrition-label\">Carbs</div>\n </div>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionFat}g</div>\n <div class=\"recipe__nutrition-label\">Fat</div>\n </div>\n <if ${hasFiber}>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionFiber}g</div>\n <div class=\"recipe__nutrition-label\">Fiber</div>\n </div>\n </if>\n <if ${hasSodium}>\n <div class=\"recipe__nutrition-item\">\n <div class=\"recipe__nutrition-value\">${nutritionSodium}mg</div>\n <div class=\"recipe__nutrition-label\">Sodium</div>\n </div>\n </if>\n </div>\n </div>\n </if>\n\n <if ${hasSteps}>\n <div class=\"recipe__step-controls\" part=\"controls\">\n <if ${!hasStepByStep}>\n <button @click=${() => this.startStepByStep()}>Step-by-Step</button>\n </if>\n <if ${hasStepByStep}>\n <button @click=${() => this.goToPrevStep()} ?disabled=${this.activeStep <= 0}>Previous</button>\n <button @click=${() => this.goToNextStep()}>\n ${this.activeStep >= this.steps.length - 1 ? 'Finish' : 'Next'}\n </button>\n </if>\n <button class=\"recipe__print-btn\" @click=${() => this.print()}>Print</button>\n <button @click=${() => this.reset()}>Reset</button>\n </div>\n </if>\n </div>\n `;\n }\n });\n return _classThis;\n})();\n\nexport { SniceRecipe };\n//# sourceMappingURL=snice-recipe.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","SniceRecipe","_classDescriptor","_classThis","_title_decorators","_description_decorators","_image_decorators","_author_decorators","_prepTime_decorators","_cookTime_decorators","_servings_decorators","_difficulty_decorators","_cuisine_decorators","_variant_decorators","_ingredients_decorators","_steps_decorators","_nutrition_decorators","_tags_decorators","_currentServings_decorators","_checkedIngredients_decorators","_completedSteps_decorators","_activeStep_decorators","_timerVersion_decorators","_onServingsChange_decorators","_onIngredientsChange_decorators","_onStepsChange_decorators","_emitServingChange_decorators","_emitStepComplete_decorators","_emitIngredientCheck_decorators","_styles_decorators","_template_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_title_initializers","_title_extraInitializers","_description_initializers","_description_extraInitializers","_image_initializers","_image_extraInitializers","_author_initializers","_author_extraInitializers","_prepTime_initializers","_prepTime_extraInitializers","_cookTime_initializers","_cookTime_extraInitializers","_servings_initializers","_servings_extraInitializers","_difficulty_initializers","_difficulty_extraInitializers","_cuisine_initializers","_cuisine_extraInitializers","_variant_initializers","_variant_extraInitializers","_ingredients_initializers","_ingredients_extraInitializers","_steps_initializers","_steps_extraInitializers","_nutrition_initializers","_nutrition_extraInitializers","_tags_initializers","_tags_extraInitializers","_currentServings_initializers","_currentServings_extraInitializers","_checkedIngredients_initializers","_checkedIngredients_extraInitializers","_completedSteps_initializers","_completedSteps_extraInitializers","_activeStep_initializers","_activeStep_extraInitializers","_timerVersion_initializers","_timerVersion_extraInitializers","this","constructor","super","title","description","image","author","prepTime","cookTime","servings","difficulty","cuisine","variant","ingredients","steps","nutrition","tags","currentServings","checkedIngredients","completedSteps","activeStep","timerVersion","activeTimers","Map","baseServings","_metadata","Symbol","metadata","create","property","type","Number","attribute","Array","watch","dispatch","bubbles","composed","styles","render","static","private","has","obj","onServingsChange","onIngredientsChange","onStepsChange","emitServingChange","emitStepComplete","emitIngredientCheck","template","enumerable","configurable","writable","fill","setServings","count","previous","print","window","reset","timer","entries","clearInterval","intervalId","clear","scaleAmount","amount","base","scaled","Math","round","formatAmount","floor","toString","frac","whole","fractionMap","val","sym","abs","toFixed","toggleIngredient","index","updated","toggleStepComplete","decrementServings","incrementServings","goToPrevStep","goToNextStep","startStepByStep","startTimer","stepIndex","minutes","remaining","setInterval","cancelTimer","delete","formatTimer","seconds","padStart","formatMinutes","hrs","mins","previousServings","completed","ingredientIndex","checked","ingredient","css","totalTime","groups","forEach","ing","group","hasStepByStep","hasTags","hasCuisine","hasIngredients","hasSteps","hasContent","hasMeta","hasNutrition","nutritionCalories","calories","nutritionProtein","protein","nutritionCarbs","carbs","nutritionFat","fat","nutritionFiber","fiber","nutritionSodium","sodium","hasFiber","undefined","hasSodium","ingredientItems","groupName","items","html","isChecked","checkedClass","e","stopPropagation","unit","map","tag","step","isCompleted","isActive","hasTimer","timerClass","timerText","showTimerBtn","time","text","tip"],"mappings":";;;;;;6JAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,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6F,KAAK0D;6BACrC,IAAM1D,KAAK4D;;;;KAKhC,GAEGpI,CACV,EA/hBiB","x_google_ignoreList":[0]}
@@ -17,7 +17,7 @@ Load the runtime once, then load any CDN components:
17
17
  ```
18
18
 
19
19
  ## Size
20
- - Minified: 57.1 KB
20
+ - Minified: 57.2 KB
21
21
  - Gzipped: 17.4 KB
22
22
 
23
23
  ## Documentation