snice 5.2.3 → 6.0.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 (653) hide show
  1. package/README.md +5 -8
  2. package/adapters/react/SniceProvider.js +1 -1
  3. package/adapters/react/SniceRouter.js +1 -1
  4. package/adapters/react/audio-recorder.d.ts +0 -4
  5. package/adapters/react/audio-recorder.d.ts.map +1 -1
  6. package/adapters/react/audio-recorder.js +1 -1
  7. package/adapters/react/audio-recorder.js.map +1 -1
  8. package/adapters/react/audio-recorder.tsx +1 -5
  9. package/adapters/react/avatar.d.ts +0 -1
  10. package/adapters/react/avatar.d.ts.map +1 -1
  11. package/adapters/react/avatar.js +1 -1
  12. package/adapters/react/avatar.js.map +1 -1
  13. package/adapters/react/avatar.tsx +1 -2
  14. package/adapters/react/breadcrumbs.d.ts +0 -1
  15. package/adapters/react/breadcrumbs.d.ts.map +1 -1
  16. package/adapters/react/breadcrumbs.js +1 -1
  17. package/adapters/react/breadcrumbs.js.map +1 -1
  18. package/adapters/react/breadcrumbs.tsx +1 -2
  19. package/adapters/react/camera-annotate.d.ts +0 -5
  20. package/adapters/react/camera-annotate.d.ts.map +1 -1
  21. package/adapters/react/camera-annotate.js +1 -1
  22. package/adapters/react/camera-annotate.js.map +1 -1
  23. package/adapters/react/camera-annotate.tsx +1 -6
  24. package/adapters/react/card.d.ts +0 -2
  25. package/adapters/react/card.d.ts.map +1 -1
  26. package/adapters/react/card.js +1 -1
  27. package/adapters/react/card.js.map +1 -1
  28. package/adapters/react/card.tsx +1 -3
  29. package/adapters/react/carousel.d.ts +0 -1
  30. package/adapters/react/carousel.d.ts.map +1 -1
  31. package/adapters/react/carousel.js +1 -1
  32. package/adapters/react/carousel.js.map +1 -1
  33. package/adapters/react/carousel.tsx +1 -2
  34. package/adapters/react/cart.d.ts +0 -1
  35. package/adapters/react/cart.d.ts.map +1 -1
  36. package/adapters/react/cart.js +1 -1
  37. package/adapters/react/cart.js.map +1 -1
  38. package/adapters/react/cart.tsx +1 -2
  39. package/adapters/react/chart.d.ts +0 -5
  40. package/adapters/react/chart.d.ts.map +1 -1
  41. package/adapters/react/chart.js +1 -1
  42. package/adapters/react/chart.js.map +1 -1
  43. package/adapters/react/chart.tsx +1 -6
  44. package/adapters/react/chat.d.ts +4 -1
  45. package/adapters/react/chat.d.ts.map +1 -1
  46. package/adapters/react/chat.js +2 -2
  47. package/adapters/react/chat.js.map +1 -1
  48. package/adapters/react/chat.tsx +6 -3
  49. package/adapters/react/chip.d.ts +0 -1
  50. package/adapters/react/chip.d.ts.map +1 -1
  51. package/adapters/react/chip.js +1 -1
  52. package/adapters/react/chip.js.map +1 -1
  53. package/adapters/react/chip.tsx +1 -2
  54. package/adapters/react/command-palette.d.ts +0 -4
  55. package/adapters/react/command-palette.d.ts.map +1 -1
  56. package/adapters/react/command-palette.js +1 -1
  57. package/adapters/react/command-palette.js.map +1 -1
  58. package/adapters/react/command-palette.tsx +1 -5
  59. package/adapters/react/comments.d.ts +0 -1
  60. package/adapters/react/comments.d.ts.map +1 -1
  61. package/adapters/react/comments.js +1 -1
  62. package/adapters/react/comments.js.map +1 -1
  63. package/adapters/react/comments.tsx +1 -2
  64. package/adapters/react/countdown.d.ts +0 -4
  65. package/adapters/react/countdown.d.ts.map +1 -1
  66. package/adapters/react/countdown.js +1 -1
  67. package/adapters/react/countdown.js.map +1 -1
  68. package/adapters/react/countdown.tsx +1 -5
  69. package/adapters/react/date-time-picker.d.ts +0 -1
  70. package/adapters/react/date-time-picker.d.ts.map +1 -1
  71. package/adapters/react/date-time-picker.js +1 -1
  72. package/adapters/react/date-time-picker.js.map +1 -1
  73. package/adapters/react/date-time-picker.tsx +1 -2
  74. package/adapters/react/file-upload.d.ts +0 -2
  75. package/adapters/react/file-upload.d.ts.map +1 -1
  76. package/adapters/react/file-upload.js +1 -1
  77. package/adapters/react/file-upload.js.map +1 -1
  78. package/adapters/react/file-upload.tsx +1 -3
  79. package/adapters/react/heatmap.d.ts +0 -4
  80. package/adapters/react/heatmap.d.ts.map +1 -1
  81. package/adapters/react/heatmap.js +1 -1
  82. package/adapters/react/heatmap.js.map +1 -1
  83. package/adapters/react/heatmap.tsx +1 -5
  84. package/adapters/react/image.d.ts +0 -2
  85. package/adapters/react/image.d.ts.map +1 -1
  86. package/adapters/react/image.js +1 -1
  87. package/adapters/react/image.js.map +1 -1
  88. package/adapters/react/image.tsx +1 -3
  89. package/adapters/react/kanban.d.ts +0 -4
  90. package/adapters/react/kanban.d.ts.map +1 -1
  91. package/adapters/react/kanban.js +1 -1
  92. package/adapters/react/kanban.js.map +1 -1
  93. package/adapters/react/kanban.tsx +1 -5
  94. package/adapters/react/key-value.d.ts +0 -2
  95. package/adapters/react/key-value.d.ts.map +1 -1
  96. package/adapters/react/key-value.js +1 -1
  97. package/adapters/react/key-value.js.map +1 -1
  98. package/adapters/react/key-value.tsx +1 -3
  99. package/adapters/react/leaderboard.d.ts +0 -1
  100. package/adapters/react/leaderboard.d.ts.map +1 -1
  101. package/adapters/react/leaderboard.js +1 -1
  102. package/adapters/react/leaderboard.js.map +1 -1
  103. package/adapters/react/leaderboard.tsx +1 -2
  104. package/adapters/react/map.d.ts +0 -3
  105. package/adapters/react/map.d.ts.map +1 -1
  106. package/adapters/react/map.js +1 -1
  107. package/adapters/react/map.js.map +1 -1
  108. package/adapters/react/map.tsx +1 -4
  109. package/adapters/react/markdown.d.ts +1 -1
  110. package/adapters/react/markdown.d.ts.map +1 -1
  111. package/adapters/react/markdown.js +1 -1
  112. package/adapters/react/markdown.js.map +1 -1
  113. package/adapters/react/markdown.tsx +2 -2
  114. package/adapters/react/matchRoute.d.ts +1 -1
  115. package/adapters/react/matchRoute.js +38 -4
  116. package/adapters/react/matchRoute.js.map +1 -1
  117. package/adapters/react/message-strip.d.ts +1 -1
  118. package/adapters/react/message-strip.js +1 -1
  119. package/adapters/react/message-strip.tsx +2 -2
  120. package/adapters/react/music-player.d.ts +0 -1
  121. package/adapters/react/music-player.d.ts.map +1 -1
  122. package/adapters/react/music-player.js +1 -1
  123. package/adapters/react/music-player.js.map +1 -1
  124. package/adapters/react/music-player.tsx +1 -2
  125. package/adapters/react/org-chart.d.ts +0 -1
  126. package/adapters/react/org-chart.d.ts.map +1 -1
  127. package/adapters/react/org-chart.js +1 -1
  128. package/adapters/react/org-chart.js.map +1 -1
  129. package/adapters/react/org-chart.tsx +1 -2
  130. package/adapters/react/paint.d.ts +0 -1
  131. package/adapters/react/paint.d.ts.map +1 -1
  132. package/adapters/react/paint.js +1 -1
  133. package/adapters/react/paint.js.map +1 -1
  134. package/adapters/react/paint.tsx +1 -2
  135. package/adapters/react/podcast-player.d.ts +0 -2
  136. package/adapters/react/podcast-player.d.ts.map +1 -1
  137. package/adapters/react/podcast-player.js +1 -1
  138. package/adapters/react/podcast-player.js.map +1 -1
  139. package/adapters/react/podcast-player.tsx +1 -3
  140. package/adapters/react/product-card.d.ts +0 -3
  141. package/adapters/react/product-card.d.ts.map +1 -1
  142. package/adapters/react/product-card.js +1 -1
  143. package/adapters/react/product-card.js.map +1 -1
  144. package/adapters/react/product-card.tsx +1 -4
  145. package/adapters/react/qr-reader.d.ts +0 -4
  146. package/adapters/react/qr-reader.d.ts.map +1 -1
  147. package/adapters/react/qr-reader.js +1 -1
  148. package/adapters/react/qr-reader.js.map +1 -1
  149. package/adapters/react/qr-reader.tsx +1 -5
  150. package/adapters/react/recipe.d.ts +0 -5
  151. package/adapters/react/recipe.d.ts.map +1 -1
  152. package/adapters/react/recipe.js +1 -1
  153. package/adapters/react/recipe.js.map +1 -1
  154. package/adapters/react/recipe.tsx +1 -6
  155. package/adapters/react/route-specificity.d.ts +1 -0
  156. package/adapters/react/spotlight.d.ts +0 -2
  157. package/adapters/react/spotlight.d.ts.map +1 -1
  158. package/adapters/react/spotlight.js +1 -1
  159. package/adapters/react/spotlight.js.map +1 -1
  160. package/adapters/react/spotlight.tsx +1 -3
  161. package/adapters/react/tag-input.d.ts +0 -4
  162. package/adapters/react/tag-input.d.ts.map +1 -1
  163. package/adapters/react/tag-input.js +1 -1
  164. package/adapters/react/tag-input.js.map +1 -1
  165. package/adapters/react/tag-input.tsx +1 -5
  166. package/adapters/react/terminal.d.ts +0 -1
  167. package/adapters/react/terminal.d.ts.map +1 -1
  168. package/adapters/react/terminal.js +1 -1
  169. package/adapters/react/terminal.js.map +1 -1
  170. package/adapters/react/terminal.tsx +1 -2
  171. package/adapters/react/time-picker.d.ts +0 -1
  172. package/adapters/react/time-picker.d.ts.map +1 -1
  173. package/adapters/react/time-picker.js +1 -1
  174. package/adapters/react/time-picker.js.map +1 -1
  175. package/adapters/react/time-picker.tsx +1 -2
  176. package/adapters/react/timer.d.ts +0 -1
  177. package/adapters/react/timer.d.ts.map +1 -1
  178. package/adapters/react/timer.js +1 -1
  179. package/adapters/react/timer.js.map +1 -1
  180. package/adapters/react/timer.tsx +1 -2
  181. package/adapters/react/useRequestHandler.js +1 -1
  182. package/adapters/react/video-player.d.ts +0 -6
  183. package/adapters/react/video-player.d.ts.map +1 -1
  184. package/adapters/react/video-player.js +1 -1
  185. package/adapters/react/video-player.js.map +1 -1
  186. package/adapters/react/video-player.tsx +1 -7
  187. package/adapters/react/virtual-scroller.d.ts +0 -1
  188. package/adapters/react/virtual-scroller.d.ts.map +1 -1
  189. package/adapters/react/virtual-scroller.js +1 -1
  190. package/adapters/react/virtual-scroller.js.map +1 -1
  191. package/adapters/react/virtual-scroller.tsx +1 -2
  192. package/bin/templates/default/tests/services/jwt.test.ts +8 -1
  193. package/bin/templates/react/tests/services/jwt.test.ts +10 -3
  194. package/dist/cdn/accordion/snice-accordion.js +1 -1
  195. package/dist/cdn/accordion/snice-accordion.min.js +1 -1
  196. package/dist/cdn/action-bar/README.md +2 -2
  197. package/dist/cdn/action-bar/snice-action-bar.js +2 -2
  198. package/dist/cdn/action-bar/snice-action-bar.js.map +1 -1
  199. package/dist/cdn/action-bar/snice-action-bar.min.js +2 -2
  200. package/dist/cdn/action-bar/snice-action-bar.min.js.map +1 -1
  201. package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
  202. package/dist/cdn/activity-feed/snice-activity-feed.min.js +1 -1
  203. package/dist/cdn/alert/snice-alert.js +1 -1
  204. package/dist/cdn/alert/snice-alert.js.map +1 -1
  205. package/dist/cdn/alert/snice-alert.min.js +1 -1
  206. package/dist/cdn/alert/snice-alert.min.js.map +1 -1
  207. package/dist/cdn/app-tiles/snice-app-tiles.js +1 -1
  208. package/dist/cdn/app-tiles/snice-app-tiles.min.js +1 -1
  209. package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
  210. package/dist/cdn/approval-flow/snice-approval-flow.js.map +1 -1
  211. package/dist/cdn/approval-flow/snice-approval-flow.min.js +1 -1
  212. package/dist/cdn/approval-flow/snice-approval-flow.min.js.map +1 -1
  213. package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
  214. package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
  215. package/dist/cdn/availability/snice-availability.js +1 -1
  216. package/dist/cdn/availability/snice-availability.min.js +1 -1
  217. package/dist/cdn/avatar/snice-avatar.js +1 -1
  218. package/dist/cdn/avatar/snice-avatar.min.js +1 -1
  219. package/dist/cdn/avatar-group/snice-avatar-group.js +1 -1
  220. package/dist/cdn/avatar-group/snice-avatar-group.min.js +1 -1
  221. package/dist/cdn/badge/snice-badge.js +1 -1
  222. package/dist/cdn/badge/snice-badge.js.map +1 -1
  223. package/dist/cdn/badge/snice-badge.min.js +1 -1
  224. package/dist/cdn/badge/snice-badge.min.js.map +1 -1
  225. package/dist/cdn/banner/README.md +1 -1
  226. package/dist/cdn/banner/snice-banner.js +2 -2
  227. package/dist/cdn/banner/snice-banner.js.map +1 -1
  228. package/dist/cdn/banner/snice-banner.min.js +2 -2
  229. package/dist/cdn/banner/snice-banner.min.js.map +1 -1
  230. package/dist/cdn/binpack/snice-binpack.js +1 -1
  231. package/dist/cdn/binpack/snice-binpack.min.js +1 -1
  232. package/dist/cdn/book/snice-book.js +1 -1
  233. package/dist/cdn/book/snice-book.min.js +1 -1
  234. package/dist/cdn/booking/snice-booking.js +1 -1
  235. package/dist/cdn/booking/snice-booking.min.js +1 -1
  236. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
  237. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js.map +1 -1
  238. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
  239. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js.map +1 -1
  240. package/dist/cdn/button/snice-button.js +1 -1
  241. package/dist/cdn/button/snice-button.js.map +1 -1
  242. package/dist/cdn/button/snice-button.min.js +1 -1
  243. package/dist/cdn/button/snice-button.min.js.map +1 -1
  244. package/dist/cdn/calendar/snice-calendar.js +1 -1
  245. package/dist/cdn/calendar/snice-calendar.min.js +1 -1
  246. package/dist/cdn/camera/snice-camera.js +1 -1
  247. package/dist/cdn/camera/snice-camera.min.js +1 -1
  248. package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
  249. package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
  250. package/dist/cdn/candlestick/snice-candlestick.js +1 -1
  251. package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
  252. package/dist/cdn/card/snice-card.js +1 -1
  253. package/dist/cdn/card/snice-card.min.js +1 -1
  254. package/dist/cdn/carousel/snice-carousel.js +1 -1
  255. package/dist/cdn/carousel/snice-carousel.min.js +1 -1
  256. package/dist/cdn/cart/snice-cart.js +1 -1
  257. package/dist/cdn/cart/snice-cart.min.js +1 -1
  258. package/dist/cdn/chart/snice-chart.js +1 -1
  259. package/dist/cdn/chart/snice-chart.js.map +1 -1
  260. package/dist/cdn/chart/snice-chart.min.js +1 -1
  261. package/dist/cdn/chart/snice-chart.min.js.map +1 -1
  262. package/dist/cdn/chat/README.md +2 -2
  263. package/dist/cdn/chat/snice-chat.js +785 -89
  264. package/dist/cdn/chat/snice-chat.js.map +1 -1
  265. package/dist/cdn/chat/snice-chat.min.js +71 -75
  266. package/dist/cdn/chat/snice-chat.min.js.map +1 -1
  267. package/dist/cdn/checkbox/snice-checkbox.js +1 -1
  268. package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
  269. package/dist/cdn/chip/snice-chip.js +1 -1
  270. package/dist/cdn/chip/snice-chip.js.map +1 -1
  271. package/dist/cdn/chip/snice-chip.min.js +1 -1
  272. package/dist/cdn/chip/snice-chip.min.js.map +1 -1
  273. package/dist/cdn/code-block/snice-code-block.js +1 -1
  274. package/dist/cdn/code-block/snice-code-block.min.js +1 -1
  275. package/dist/cdn/color-display/snice-color-display.js +1 -1
  276. package/dist/cdn/color-display/snice-color-display.min.js +1 -1
  277. package/dist/cdn/color-picker/snice-color-picker.js +1 -1
  278. package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
  279. package/dist/cdn/command-palette/README.md +1 -1
  280. package/dist/cdn/command-palette/snice-command-palette.js +2 -2
  281. package/dist/cdn/command-palette/snice-command-palette.js.map +1 -1
  282. package/dist/cdn/command-palette/snice-command-palette.min.js +2 -2
  283. package/dist/cdn/command-palette/snice-command-palette.min.js.map +1 -1
  284. package/dist/cdn/comments/snice-comments.js +1 -1
  285. package/dist/cdn/comments/snice-comments.min.js +1 -1
  286. package/dist/cdn/countdown/snice-countdown.js +1 -1
  287. package/dist/cdn/countdown/snice-countdown.min.js +1 -1
  288. package/dist/cdn/cropper/snice-cropper.js +1 -1
  289. package/dist/cdn/cropper/snice-cropper.min.js +1 -1
  290. package/dist/cdn/data-card/snice-data-card.js +1 -1
  291. package/dist/cdn/data-card/snice-data-card.js.map +1 -1
  292. package/dist/cdn/data-card/snice-data-card.min.js +1 -1
  293. package/dist/cdn/data-card/snice-data-card.min.js.map +1 -1
  294. package/dist/cdn/date-picker/snice-date-picker.js +1 -1
  295. package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
  296. package/dist/cdn/date-range-picker/snice-date-range-picker.js +1 -1
  297. package/dist/cdn/date-range-picker/snice-date-range-picker.min.js +1 -1
  298. package/dist/cdn/date-time-picker/snice-date-time-picker.js +1 -1
  299. package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +1 -1
  300. package/dist/cdn/diff/snice-diff.js +1 -1
  301. package/dist/cdn/diff/snice-diff.min.js +1 -1
  302. package/dist/cdn/divider/snice-divider.js +1 -1
  303. package/dist/cdn/divider/snice-divider.min.js +1 -1
  304. package/dist/cdn/doc/snice-doc.js +1 -1
  305. package/dist/cdn/doc/snice-doc.min.js +1 -1
  306. package/dist/cdn/draw/snice-draw.js +1 -1
  307. package/dist/cdn/draw/snice-draw.min.js +1 -1
  308. package/dist/cdn/drawer/snice-drawer.js +1 -1
  309. package/dist/cdn/drawer/snice-drawer.js.map +1 -1
  310. package/dist/cdn/drawer/snice-drawer.min.js +1 -1
  311. package/dist/cdn/drawer/snice-drawer.min.js.map +1 -1
  312. package/dist/cdn/empty-state/snice-empty-state.js +1 -1
  313. package/dist/cdn/empty-state/snice-empty-state.js.map +1 -1
  314. package/dist/cdn/empty-state/snice-empty-state.min.js +1 -1
  315. package/dist/cdn/empty-state/snice-empty-state.min.js.map +1 -1
  316. package/dist/cdn/estimate/snice-estimate.js +1 -1
  317. package/dist/cdn/estimate/snice-estimate.min.js +1 -1
  318. package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
  319. package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
  320. package/dist/cdn/file-upload/snice-file-upload.js +1 -1
  321. package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
  322. package/dist/cdn/flip-card/snice-flip-card.js +1 -1
  323. package/dist/cdn/flip-card/snice-flip-card.min.js +1 -1
  324. package/dist/cdn/flow/snice-flow.js +1 -1
  325. package/dist/cdn/flow/snice-flow.min.js +1 -1
  326. package/dist/cdn/form-layout/snice-form-layout.js +1 -1
  327. package/dist/cdn/form-layout/snice-form-layout.min.js +1 -1
  328. package/dist/cdn/funnel/snice-funnel.js +1 -1
  329. package/dist/cdn/funnel/snice-funnel.js.map +1 -1
  330. package/dist/cdn/funnel/snice-funnel.min.js +1 -1
  331. package/dist/cdn/funnel/snice-funnel.min.js.map +1 -1
  332. package/dist/cdn/gantt/snice-gantt.js +1 -1
  333. package/dist/cdn/gantt/snice-gantt.min.js +1 -1
  334. package/dist/cdn/gauge/snice-gauge.js +1 -1
  335. package/dist/cdn/gauge/snice-gauge.min.js +1 -1
  336. package/dist/cdn/grid/snice-grid.js +1 -1
  337. package/dist/cdn/grid/snice-grid.min.js +1 -1
  338. package/dist/cdn/heatmap/snice-heatmap.js +1 -1
  339. package/dist/cdn/heatmap/snice-heatmap.min.js +1 -1
  340. package/dist/cdn/image/snice-image.js +1 -1
  341. package/dist/cdn/image/snice-image.js.map +1 -1
  342. package/dist/cdn/image/snice-image.min.js +1 -1
  343. package/dist/cdn/image/snice-image.min.js.map +1 -1
  344. package/dist/cdn/input/snice-input.js +1 -1
  345. package/dist/cdn/input/snice-input.js.map +1 -1
  346. package/dist/cdn/input/snice-input.min.js +1 -1
  347. package/dist/cdn/input/snice-input.min.js.map +1 -1
  348. package/dist/cdn/invoice/README.md +1 -1
  349. package/dist/cdn/invoice/snice-invoice.js +2 -2
  350. package/dist/cdn/invoice/snice-invoice.js.map +1 -1
  351. package/dist/cdn/invoice/snice-invoice.min.js +2 -2
  352. package/dist/cdn/invoice/snice-invoice.min.js.map +1 -1
  353. package/dist/cdn/kanban/snice-kanban.js +1 -1
  354. package/dist/cdn/kanban/snice-kanban.min.js +1 -1
  355. package/dist/cdn/key-value/snice-key-value.js +1 -1
  356. package/dist/cdn/key-value/snice-key-value.min.js +1 -1
  357. package/dist/cdn/kpi/snice-kpi.js +1 -1
  358. package/dist/cdn/kpi/snice-kpi.js.map +1 -1
  359. package/dist/cdn/kpi/snice-kpi.min.js +1 -1
  360. package/dist/cdn/kpi/snice-kpi.min.js.map +1 -1
  361. package/dist/cdn/layout/snice-layout.js +1 -1
  362. package/dist/cdn/layout/snice-layout.min.js +1 -1
  363. package/dist/cdn/leaderboard/snice-leaderboard.js +1 -1
  364. package/dist/cdn/leaderboard/snice-leaderboard.min.js +1 -1
  365. package/dist/cdn/link/snice-link.js +1 -1
  366. package/dist/cdn/link/snice-link.min.js +1 -1
  367. package/dist/cdn/link-preview/snice-link-preview.js +1 -1
  368. package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
  369. package/dist/cdn/list/snice-list.js +1 -1
  370. package/dist/cdn/list/snice-list.js.map +1 -1
  371. package/dist/cdn/list/snice-list.min.js +1 -1
  372. package/dist/cdn/list/snice-list.min.js.map +1 -1
  373. package/dist/cdn/location/snice-location.js +1 -1
  374. package/dist/cdn/location/snice-location.js.map +1 -1
  375. package/dist/cdn/location/snice-location.min.js +1 -1
  376. package/dist/cdn/location/snice-location.min.js.map +1 -1
  377. package/dist/cdn/login/snice-login.js +3 -1
  378. package/dist/cdn/login/snice-login.js.map +1 -1
  379. package/dist/cdn/login/snice-login.min.js +1 -1
  380. package/dist/cdn/login/snice-login.min.js.map +1 -1
  381. package/dist/cdn/map/snice-map.js +1 -1
  382. package/dist/cdn/map/snice-map.min.js +1 -1
  383. package/dist/cdn/markdown/README.md +2 -2
  384. package/dist/cdn/markdown/snice-markdown.js +16 -3
  385. package/dist/cdn/markdown/snice-markdown.js.map +1 -1
  386. package/dist/cdn/markdown/snice-markdown.min.js +3 -3
  387. package/dist/cdn/markdown/snice-markdown.min.js.map +1 -1
  388. package/dist/cdn/masonry/snice-masonry.js +1 -1
  389. package/dist/cdn/masonry/snice-masonry.min.js +1 -1
  390. package/dist/cdn/menu/snice-menu.js +2 -2
  391. package/dist/cdn/menu/snice-menu.js.map +1 -1
  392. package/dist/cdn/menu/snice-menu.min.js +2 -2
  393. package/dist/cdn/menu/snice-menu.min.js.map +1 -1
  394. package/dist/cdn/message-strip/snice-message-strip.js +9 -9
  395. package/dist/cdn/message-strip/snice-message-strip.js.map +1 -1
  396. package/dist/cdn/message-strip/snice-message-strip.min.js +3 -3
  397. package/dist/cdn/message-strip/snice-message-strip.min.js.map +1 -1
  398. package/dist/cdn/metric-table/snice-metric-table.js +1 -1
  399. package/dist/cdn/metric-table/snice-metric-table.min.js +1 -1
  400. package/dist/cdn/modal/snice-modal.js +1 -1
  401. package/dist/cdn/modal/snice-modal.js.map +1 -1
  402. package/dist/cdn/modal/snice-modal.min.js +1 -1
  403. package/dist/cdn/modal/snice-modal.min.js.map +1 -1
  404. package/dist/cdn/music-player/snice-music-player.js +1 -1
  405. package/dist/cdn/music-player/snice-music-player.min.js +1 -1
  406. package/dist/cdn/nav/snice-nav.js +1 -1
  407. package/dist/cdn/nav/snice-nav.min.js +1 -1
  408. package/dist/cdn/network-graph/snice-network-graph.js +1 -1
  409. package/dist/cdn/network-graph/snice-network-graph.js.map +1 -1
  410. package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
  411. package/dist/cdn/network-graph/snice-network-graph.min.js.map +1 -1
  412. package/dist/cdn/notification-center/snice-notification-center.js +1 -1
  413. package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
  414. package/dist/cdn/notification-center/snice-notification-center.min.js +1 -1
  415. package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
  416. package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
  417. package/dist/cdn/order-tracker/snice-order-tracker.min.js +1 -1
  418. package/dist/cdn/org-chart/snice-org-chart.js +1 -1
  419. package/dist/cdn/org-chart/snice-org-chart.min.js +1 -1
  420. package/dist/cdn/pagination/snice-pagination.js +1 -1
  421. package/dist/cdn/pagination/snice-pagination.min.js +1 -1
  422. package/dist/cdn/paint/snice-paint.js +1 -1
  423. package/dist/cdn/paint/snice-paint.min.js +1 -1
  424. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +1 -1
  425. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +1 -1
  426. package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
  427. package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +1 -1
  428. package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
  429. package/dist/cdn/podcast-player/snice-podcast-player.min.js +1 -1
  430. package/dist/cdn/popover/snice-popover.js +1 -1
  431. package/dist/cdn/popover/snice-popover.min.js +1 -1
  432. package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
  433. package/dist/cdn/pricing-table/snice-pricing-table.min.js +1 -1
  434. package/dist/cdn/product-card/snice-product-card.js +3 -3
  435. package/dist/cdn/product-card/snice-product-card.js.map +1 -1
  436. package/dist/cdn/product-card/snice-product-card.min.js +3 -3
  437. package/dist/cdn/product-card/snice-product-card.min.js.map +1 -1
  438. package/dist/cdn/progress/README.md +1 -1
  439. package/dist/cdn/progress/snice-progress.js +2 -2
  440. package/dist/cdn/progress/snice-progress.js.map +1 -1
  441. package/dist/cdn/progress/snice-progress.min.js +2 -2
  442. package/dist/cdn/progress/snice-progress.min.js.map +1 -1
  443. package/dist/cdn/progress-ring/snice-progress-ring.js +2 -2
  444. package/dist/cdn/progress-ring/snice-progress-ring.js.map +1 -1
  445. package/dist/cdn/progress-ring/snice-progress-ring.min.js +2 -2
  446. package/dist/cdn/progress-ring/snice-progress-ring.min.js.map +1 -1
  447. package/dist/cdn/qr-code/snice-qr-code.js +1 -1
  448. package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
  449. package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
  450. package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
  451. package/dist/cdn/radio/snice-radio.js +1 -1
  452. package/dist/cdn/radio/snice-radio.min.js +1 -1
  453. package/dist/cdn/range-slider/snice-range-slider.js +1 -1
  454. package/dist/cdn/range-slider/snice-range-slider.min.js +1 -1
  455. package/dist/cdn/rating/snice-rating.js +1 -1
  456. package/dist/cdn/rating/snice-rating.min.js +1 -1
  457. package/dist/cdn/receipt/snice-receipt.js +1 -1
  458. package/dist/cdn/receipt/snice-receipt.min.js +1 -1
  459. package/dist/cdn/recipe/snice-recipe.js +1 -1
  460. package/dist/cdn/recipe/snice-recipe.min.js +1 -1
  461. package/dist/cdn/runtime/README.md +2 -2
  462. package/dist/cdn/runtime/snice-runtime.esm.js +644 -172
  463. package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
  464. package/dist/cdn/runtime/snice-runtime.esm.min.js +8 -8
  465. package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
  466. package/dist/cdn/runtime/snice-runtime.js +644 -172
  467. package/dist/cdn/runtime/snice-runtime.js.map +1 -1
  468. package/dist/cdn/runtime/snice-runtime.min.js +8 -8
  469. package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
  470. package/dist/cdn/sankey/snice-sankey.js +1 -1
  471. package/dist/cdn/sankey/snice-sankey.js.map +1 -1
  472. package/dist/cdn/sankey/snice-sankey.min.js +1 -1
  473. package/dist/cdn/sankey/snice-sankey.min.js.map +1 -1
  474. package/dist/cdn/segmented-control/snice-segmented-control.js +1 -1
  475. package/dist/cdn/segmented-control/snice-segmented-control.min.js +1 -1
  476. package/dist/cdn/select/snice-select.js +1 -1
  477. package/dist/cdn/select/snice-select.min.js +1 -1
  478. package/dist/cdn/skeleton/snice-skeleton.js +1 -1
  479. package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
  480. package/dist/cdn/slider/snice-slider.js +1 -1
  481. package/dist/cdn/slider/snice-slider.min.js +1 -1
  482. package/dist/cdn/sortable/snice-sortable.js +1 -1
  483. package/dist/cdn/sortable/snice-sortable.min.js +1 -1
  484. package/dist/cdn/sparkline/snice-sparkline.js +1 -1
  485. package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
  486. package/dist/cdn/spinner/snice-spinner.js +1 -1
  487. package/dist/cdn/spinner/snice-spinner.min.js +1 -1
  488. package/dist/cdn/split-button/snice-split-button.js +1 -1
  489. package/dist/cdn/split-button/snice-split-button.js.map +1 -1
  490. package/dist/cdn/split-button/snice-split-button.min.js +1 -1
  491. package/dist/cdn/split-button/snice-split-button.min.js.map +1 -1
  492. package/dist/cdn/split-pane/snice-split-pane.js +1 -1
  493. package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
  494. package/dist/cdn/spotlight/snice-spotlight.js +1 -1
  495. package/dist/cdn/spotlight/snice-spotlight.min.js +1 -1
  496. package/dist/cdn/stat-group/snice-stat-group.js +1 -1
  497. package/dist/cdn/stat-group/snice-stat-group.min.js +1 -1
  498. package/dist/cdn/step-input/snice-step-input.js +1 -1
  499. package/dist/cdn/step-input/snice-step-input.min.js +1 -1
  500. package/dist/cdn/stepper/snice-stepper.js +1 -1
  501. package/dist/cdn/stepper/snice-stepper.min.js +1 -1
  502. package/dist/cdn/switch/snice-switch.js +1 -1
  503. package/dist/cdn/switch/snice-switch.min.js +1 -1
  504. package/dist/cdn/table/README.md +1 -1
  505. package/dist/cdn/table/snice-table.js +14 -4
  506. package/dist/cdn/table/snice-table.js.map +1 -1
  507. package/dist/cdn/table/snice-table.min.js +14 -4
  508. package/dist/cdn/table/snice-table.min.js.map +1 -1
  509. package/dist/cdn/tabs/snice-tabs.js +1 -1
  510. package/dist/cdn/tabs/snice-tabs.min.js +1 -1
  511. package/dist/cdn/tag/snice-tag.js +1 -1
  512. package/dist/cdn/tag/snice-tag.min.js +1 -1
  513. package/dist/cdn/tag-input/snice-tag-input.js +2 -2
  514. package/dist/cdn/tag-input/snice-tag-input.js.map +1 -1
  515. package/dist/cdn/tag-input/snice-tag-input.min.js +2 -2
  516. package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -1
  517. package/dist/cdn/terminal/snice-terminal.js +1 -1
  518. package/dist/cdn/terminal/snice-terminal.min.js +1 -1
  519. package/dist/cdn/testimonial/snice-testimonial.js +1 -1
  520. package/dist/cdn/testimonial/snice-testimonial.min.js +1 -1
  521. package/dist/cdn/textarea/snice-textarea.js +1 -1
  522. package/dist/cdn/textarea/snice-textarea.min.js +1 -1
  523. package/dist/cdn/time-picker/README.md +1 -1
  524. package/dist/cdn/time-picker/snice-time-picker.js +18 -13
  525. package/dist/cdn/time-picker/snice-time-picker.js.map +1 -1
  526. package/dist/cdn/time-picker/snice-time-picker.min.js +3 -3
  527. package/dist/cdn/time-picker/snice-time-picker.min.js.map +1 -1
  528. package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
  529. package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
  530. package/dist/cdn/timeline/snice-timeline.js +1 -1
  531. package/dist/cdn/timeline/snice-timeline.js.map +1 -1
  532. package/dist/cdn/timeline/snice-timeline.min.js +1 -1
  533. package/dist/cdn/timeline/snice-timeline.min.js.map +1 -1
  534. package/dist/cdn/timer/snice-timer.js +1 -1
  535. package/dist/cdn/timer/snice-timer.min.js +1 -1
  536. package/dist/cdn/toast/snice-toast.js +1 -1
  537. package/dist/cdn/toast/snice-toast.js.map +1 -1
  538. package/dist/cdn/toast/snice-toast.min.js +1 -1
  539. package/dist/cdn/toast/snice-toast.min.js.map +1 -1
  540. package/dist/cdn/tooltip/snice-tooltip.js +1 -1
  541. package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
  542. package/dist/cdn/tree/snice-tree.js +1 -1
  543. package/dist/cdn/tree/snice-tree.min.js +1 -1
  544. package/dist/cdn/treemap/snice-treemap.js +1 -1
  545. package/dist/cdn/treemap/snice-treemap.js.map +1 -1
  546. package/dist/cdn/treemap/snice-treemap.min.js +1 -1
  547. package/dist/cdn/treemap/snice-treemap.min.js.map +1 -1
  548. package/dist/cdn/user-card/snice-user-card.js +1 -1
  549. package/dist/cdn/user-card/snice-user-card.min.js +1 -1
  550. package/dist/cdn/video-player/snice-video-player.js +1 -1
  551. package/dist/cdn/video-player/snice-video-player.min.js +1 -1
  552. package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
  553. package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
  554. package/dist/cdn/waterfall/snice-waterfall.js +1 -1
  555. package/dist/cdn/waterfall/snice-waterfall.min.js +1 -1
  556. package/dist/cdn/weather/snice-weather.js +1 -1
  557. package/dist/cdn/weather/snice-weather.min.js +1 -1
  558. package/dist/cdn/work-order/snice-work-order.js +1 -1
  559. package/dist/cdn/work-order/snice-work-order.min.js +1 -1
  560. package/dist/components/action-bar/snice-action-bar.js +1 -1
  561. package/dist/components/action-bar/snice-action-bar.js.map +1 -1
  562. package/dist/components/banner/snice-banner.js +1 -1
  563. package/dist/components/banner/snice-banner.js.map +1 -1
  564. package/dist/components/chat/snice-chat-message.d.ts +32 -0
  565. package/dist/components/chat/snice-chat-message.js +127 -0
  566. package/dist/components/chat/snice-chat-message.js.map +1 -0
  567. package/dist/components/chat/snice-chat-message.types.d.ts +30 -0
  568. package/dist/components/chat/snice-chat.d.ts +31 -4
  569. package/dist/components/chat/snice-chat.js +363 -90
  570. package/dist/components/chat/snice-chat.js.map +1 -1
  571. package/dist/components/chat/snice-chat.types.d.ts +34 -3
  572. package/dist/components/command-palette/snice-command-palette.js +1 -1
  573. package/dist/components/command-palette/snice-command-palette.js.map +1 -1
  574. package/dist/components/icons/index.d.ts +4 -0
  575. package/dist/components/icons/index.js +5 -1
  576. package/dist/components/icons/index.js.map +1 -1
  577. package/dist/components/invoice/snice-invoice.js +1 -1
  578. package/dist/components/invoice/snice-invoice.js.map +1 -1
  579. package/dist/components/login/snice-login.d.ts +2 -2
  580. package/dist/components/login/snice-login.js +2 -0
  581. package/dist/components/login/snice-login.js.map +1 -1
  582. package/dist/components/login/snice-login.types.d.ts +4 -0
  583. package/dist/components/markdown/snice-markdown.d.ts +1 -0
  584. package/dist/components/markdown/snice-markdown.js +15 -2
  585. package/dist/components/markdown/snice-markdown.js.map +1 -1
  586. package/dist/components/menu/snice-menu.js +1 -1
  587. package/dist/components/menu/snice-menu.js.map +1 -1
  588. package/dist/components/message-strip/snice-message-strip.d.ts +1 -1
  589. package/dist/components/message-strip/snice-message-strip.js +8 -8
  590. package/dist/components/message-strip/snice-message-strip.types.d.ts +1 -1
  591. package/dist/components/product-card/snice-product-card.js +2 -2
  592. package/dist/components/product-card/snice-product-card.js.map +1 -1
  593. package/dist/components/progress/snice-progress.js +1 -1
  594. package/dist/components/progress/snice-progress.js.map +1 -1
  595. package/dist/components/progress-ring/snice-progress-ring.js +1 -1
  596. package/dist/components/progress-ring/snice-progress-ring.js.map +1 -1
  597. package/dist/components/table/snice-table.js +13 -3
  598. package/dist/components/table/snice-table.js.map +1 -1
  599. package/dist/components/tag-input/snice-tag-input.js +1 -1
  600. package/dist/components/tag-input/snice-tag-input.js.map +1 -1
  601. package/dist/components/time-picker/snice-time-picker.js +17 -12
  602. package/dist/components/time-picker/snice-time-picker.js.map +1 -1
  603. package/dist/components/utils.d.ts +6 -0
  604. package/dist/components/utils.js +1 -1
  605. package/dist/components/utils.js.map +1 -1
  606. package/dist/element.d.ts +2 -1
  607. package/dist/events.d.ts +6 -0
  608. package/dist/index.cjs +641 -169
  609. package/dist/index.cjs.map +1 -1
  610. package/dist/index.esm.js +641 -169
  611. package/dist/index.esm.js.map +1 -1
  612. package/dist/index.iife.js +641 -169
  613. package/dist/index.iife.js.map +1 -1
  614. package/dist/parts.d.ts +1 -8
  615. package/dist/react/SniceProvider.js +1 -1
  616. package/dist/react/SniceRouter.js +1 -1
  617. package/dist/react/index.js +1 -1
  618. package/dist/react/matchRoute.d.ts +1 -1
  619. package/dist/react/matchRoute.js +38 -4
  620. package/dist/react/matchRoute.js.map +1 -1
  621. package/dist/react/route-specificity.d.ts +1 -0
  622. package/dist/react/useRequestHandler.js +1 -1
  623. package/dist/render.d.ts +7 -0
  624. package/dist/route-specificity.d.ts +1 -0
  625. package/dist/symbols.cjs +14 -1
  626. package/dist/symbols.cjs.map +1 -1
  627. package/dist/symbols.d.ts +3 -0
  628. package/dist/symbols.esm.js +12 -2
  629. package/dist/symbols.esm.js.map +1 -1
  630. package/dist/transitions.cjs +1 -1
  631. package/dist/transitions.esm.js +1 -1
  632. package/dist/types/context.d.ts +5 -2
  633. package/dist/types/dispatch-options.d.ts +7 -0
  634. package/dist/types/index.d.ts +1 -0
  635. package/dist/types/on-options.d.ts +14 -0
  636. package/dist/types/watch-options.d.ts +9 -0
  637. package/dist/utils.d.ts +26 -0
  638. package/docs/ai/DEVELOPMENT.md +1 -1
  639. package/docs/ai/README.md +11 -0
  640. package/docs/ai/api.md +24 -5
  641. package/docs/ai/cdn.md +31 -0
  642. package/docs/ai/components/chat.md +57 -1
  643. package/docs/ai/components/message-strip.md +3 -3
  644. package/docs/ai/decorators.md +44 -5
  645. package/docs/cdn.md +56 -0
  646. package/docs/components/chat.md +108 -2
  647. package/docs/components/message-strip.md +8 -8
  648. package/docs/elements.md +21 -0
  649. package/docs/events.md +88 -0
  650. package/docs/superpowers/specs/2026-05-26-chat-styling-design.md +155 -0
  651. package/docs/superpowers/specs/2026-05-27-chat-theming-REMAINING.md +83 -0
  652. package/docs/superpowers/specs/2026-06-09-chat-custom-content-design.md +233 -0
  653. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"snice-invoice.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/invoice/snice-invoice.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 { __esDecorate, __runInitializers } from 'tslib';\nimport { element, property, watch, dispatch, render, styles, html, css } from 'snice';\n\nvar cssContent = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);width:100%;--invoice-max-width:50rem;--invoice-padding:var(--snice-spacing-xl, 2rem);--invoice-section-gap:var(--snice-spacing-xl, 2rem);--invoice-bg:var(--snice-color-surface, rgb(255 255 255));--invoice-text:var(--snice-color-text, rgb(23 23 23));--invoice-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--invoice-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--invoice-accent:var(--snice-color-primary, rgb(37 99 235));--invoice-border:var(--snice-color-border, rgb(226 226 226));--invoice-bg-element:var(--snice-color-surface-container-high, rgb(252 251 249));--invoice-success:var(--snice-color-success, rgb(22 163 74));--invoice-danger:var(--snice-color-danger, rgb(220 38 38));--invoice-header-bg:transparent;--invoice-header-text:var(--invoice-text);--invoice-header-padding:0;--invoice-header-border:none;--invoice-table-header-bg:transparent;--invoice-table-header-text:var(--invoice-text-tertiary);--invoice-table-stripe-bg:var(--invoice-bg-element);--invoice-table-border:var(--invoice-border);--invoice-table-cell-padding:var(--snice-spacing-sm, 0.75rem) var(--snice-spacing-xs, 0.5rem);--invoice-summary-width:16rem;--invoice-total-border:2px solid var(--invoice-border);--invoice-total-font-size:var(--snice-font-size-lg, 1.125rem);--invoice-total-font-weight:var(--snice-font-weight-bold, 700);--invoice-status-draft-bg:var(--snice-color-surface-container, rgb(229 231 235));--invoice-status-draft-text:var(--snice-color-neutral-strong, rgb(55 65 81));--invoice-status-sent-bg:var(--snice-color-primary-subtle, rgb(219 234 254));--invoice-status-sent-text:var(--snice-color-primary-strong, rgb(29 78 216));--invoice-status-paid-bg:var(--snice-color-success-subtle, rgb(220 252 231));--invoice-status-paid-text:var(--snice-color-success-strong, rgb(21 128 61));--invoice-status-overdue-bg:var(--snice-color-danger-subtle, rgb(254 226 226));--invoice-status-overdue-text:var(--snice-color-danger-strong, rgb(185 28 28));--invoice-status-cancelled-bg:var(--snice-color-neutral-subtle, rgb(243 244 246));--invoice-status-cancelled-text:var(--snice-color-neutral, rgb(107 114 128));--invoice-font-family:inherit;--invoice-title-font-size:var(--snice-font-size-2xl, 1.5rem);--invoice-title-font-weight:var(--snice-font-weight-bold, 700);--invoice-label-font-size:var(--snice-font-size-sm, 0.875rem);--invoice-body-font-size:var(--snice-font-size-md, 1rem);--invoice-notes-bg:var(--invoice-bg-element);--invoice-notes-border:none;--invoice-notes-padding:var(--snice-spacing-md, 1rem);--invoice-qr-size:6rem;--invoice-qr-border:1px dashed var(--invoice-border);--invoice-shadow:none;--invoice-border-width:1px;--invoice-border-color:var(--invoice-border);--invoice-border-radius:var(--snice-border-radius-lg, 0.5rem)}.invoice{background:var(--invoice-bg);border:var(--invoice-border-width) solid var(--invoice-border-color);border-radius:var(--invoice-border-radius);padding:var(--invoice-padding);color:var(--invoice-text);max-width:var(--invoice-max-width);font-family:var(--invoice-font-family);font-size:var(--invoice-body-font-size);box-shadow:var(--invoice-shadow);position:relative;line-height:var(--snice-line-height-normal, 1.5)}.invoice__header{font-family:var(--snice-font-family-display);display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--invoice-section-gap);gap:var(--snice-spacing-lg,1.5rem);background:var(--invoice-header-bg);color:var(--invoice-header-text);padding:var(--invoice-header-padding);border-bottom:var(--invoice-header-border);position:relative}.invoice__header-left{font-family:var(--snice-font-family-display);display:flex;flex-direction:column;gap:var(--snice-spacing-xs,.5rem)}.invoice__title{font-family:var(--snice-font-family-display);font-size:var(--invoice-title-font-size);font-weight:var(--invoice-title-font-weight);color:inherit;margin:0;line-height:1.2}.invoice__logo{max-height:3rem;max-width:10rem;object-fit:contain;margin-bottom:var(--snice-spacing-2xs,.25rem)}.invoice__meta{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem);text-align:right}.invoice__meta-label{font-size:var(--invoice-label-font-size);color:var(--invoice-text-tertiary)}.invoice__meta-value{font-size:var(--invoice-body-font-size);font-weight:var(--snice-font-weight-medium,500);color:var(--invoice-text)}.invoice__status{display:inline-flex;align-items:center;padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--invoice-label-font-size);font-weight:var(--snice-font-weight-semibold,600);text-transform:uppercase;letter-spacing:var(--snice-tracking-wide)}.invoice__status--draft{background:var(--invoice-status-draft-bg);color:var(--invoice-status-draft-text)}.invoice__status--sent{background:var(--invoice-status-sent-bg);color:var(--invoice-status-sent-text)}.invoice__status--paid{background:var(--invoice-status-paid-bg);color:var(--invoice-status-paid-text)}.invoice__status--overdue{background:var(--invoice-status-overdue-bg);color:var(--invoice-status-overdue-text)}.invoice__status--cancelled{background:var(--invoice-status-cancelled-bg);color:var(--invoice-status-cancelled-text);text-decoration:line-through}.invoice__parties{display:grid;grid-template-columns:1fr 1fr;gap:var(--invoice-section-gap);margin-bottom:var(--invoice-section-gap)}.invoice__party-label{font-size:var(--invoice-label-font-size);font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-text-tertiary);text-transform:uppercase;letter-spacing:var(--snice-tracking-wide);margin-bottom:var(--snice-spacing-xs,.5rem)}.invoice__party-name{font-size:var(--invoice-body-font-size);font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-text);margin-bottom:var(--snice-spacing-2xs,.25rem)}.invoice__party-detail{font-size:var(--invoice-label-font-size);color:var(--invoice-text-secondary);line-height:var(--snice-line-height-normal, 1.5);white-space:pre-line}.invoice__table{width:100%;border-collapse:collapse;margin-bottom:var(--snice-spacing-lg,1.5rem)}.invoice__table thead{background:var(--invoice-table-header-bg)}.invoice__table th{text-align:left;font-size:var(--invoice-label-font-size);font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-table-header-text);padding:var(--invoice-table-cell-padding);border-bottom:2px solid var(--invoice-table-border);text-transform:uppercase;letter-spacing:var(--snice-tracking-wide)}.invoice__table td:last-child,.invoice__table th:last-child{text-align:right}.invoice__table td.invoice__col-price,.invoice__table td.invoice__col-qty,.invoice__table th.invoice__col-price,.invoice__table th.invoice__col-qty{text-align:right;width:6.5rem}.invoice__table td{font-size:var(--invoice-body-font-size);color:var(--invoice-text);padding:var(--invoice-table-cell-padding);border-bottom:1px solid var(--invoice-table-border)}.invoice__table tbody tr:last-child td{border-bottom:2px solid var(--invoice-table-border)}.invoice__summary{display:flex;justify-content:flex-end;margin-bottom:var(--invoice-section-gap)}.invoice__summary-table{width:var(--invoice-summary-width)}.invoice__summary-row{display:flex;justify-content:space-between;padding:var(--snice-spacing-2xs,.25rem) 0;font-size:var(--invoice-body-font-size);color:var(--invoice-text-secondary)}.invoice__summary-row--discount{color:var(--invoice-success)}.invoice__summary-row--total{border-top:var(--invoice-total-border);margin-top:var(--snice-spacing-xs,.5rem);padding-top:var(--snice-spacing-xs,.5rem);font-size:var(--invoice-total-font-size);font-weight:var(--invoice-total-font-weight);color:var(--invoice-text)}.invoice__notes{padding:var(--invoice-notes-padding);background:var(--invoice-notes-bg);border:var(--invoice-notes-border);border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--invoice-label-font-size);color:var(--invoice-text-secondary);line-height:var(--snice-line-height-normal, 1.5);margin-bottom:var(--snice-spacing-lg,1.5rem)}.invoice__notes-label{font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-text);margin-bottom:var(--snice-spacing-2xs,.25rem)}.invoice__qr{width:var(--invoice-qr-size);height:var(--invoice-qr-size);border:var(--invoice-qr-border);border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;overflow:hidden}.invoice__qr--top-right{position:absolute;top:0;right:0}.invoice__qr--bottom-right{position:absolute;bottom:var(--invoice-padding);right:var(--invoice-padding)}.invoice__qr--bottom-left{position:absolute;bottom:var(--invoice-padding);left:var(--invoice-padding)}.invoice__qr--footer{position:static;margin-top:var(--snice-spacing-md,1rem)}.invoice__qr-placeholder{font-size:var(--snice-font-size-sm, .875rem);color:var(--invoice-text-tertiary);text-align:center;padding:var(--snice-spacing-xs,.5rem)}.invoice__footer{margin-top:var(--snice-spacing-md,1rem)}:host([variant=modern]){--invoice-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--invoice-header-bg:var(--invoice-accent);--invoice-header-text:var(--snice-color-text-inverse, rgb(255 255 255));--invoice-header-padding:var(--snice-spacing-lg, 1.5rem);--invoice-border-width:0;--invoice-table-header-bg:var(--invoice-bg-element);--invoice-table-header-text:var(--invoice-text)}:host([variant=modern]) .invoice__header{font-family:var(--snice-font-family-display);border-radius:var(--snice-border-radius-md,.25rem);margin:calc(-1 * var(--invoice-padding));margin-bottom:var(--invoice-section-gap);padding:var(--snice-spacing-lg,1.5rem) var(--invoice-padding);border-bottom:none}:host([variant=modern]) .invoice__meta-label{color:var(--snice-color-text-inverse-secondary,rgb(255 255 255 / .7))}:host([variant=modern]) .invoice__meta-value{color:var(--snice-color-text-inverse,rgb(255 255 255))}:host([variant=modern]) .invoice__status{background:var(--snice-color-text-inverse-subtle,rgb(255 255 255 / .2));color:var(--snice-color-text-inverse,rgb(255 255 255));text-decoration:none}:host([variant=modern]) .invoice__parties{background:var(--invoice-bg-element);border-radius:var(--snice-border-radius-md,.25rem);padding:var(--snice-spacing-lg,1.5rem)}:host([variant=modern]) .invoice__table th{text-transform:none;letter-spacing:normal;font-weight:var(--snice-font-weight-bold,700);border-bottom:3px solid var(--invoice-accent)}:host([variant=modern]) .invoice__summary-row--total{border-top:3px solid var(--invoice-accent);color:var(--invoice-accent)}:host([variant=modern]) .invoice__notes{border-left:3px solid var(--invoice-accent);border-radius:0;background:var(--invoice-bg-element)}:host([variant=classic]){--invoice-font-family:'Georgia','Times New Roman','Palatino Linotype',serif;--invoice-title-font-size:1.75rem;--invoice-title-font-weight:var(--snice-font-weight-bold, 700);--invoice-border-radius:0;--invoice-border-width:2px;--invoice-border-color:var(--invoice-text);--invoice-header-border:2px solid var(--invoice-text);--invoice-header-padding:0 0 var(--snice-spacing-md, 1rem) 0}:host([variant=classic]) .invoice__status{border-radius:0;border:1px solid currentColor;background:0 0}:host([variant=classic]) .invoice__status--draft{color:var(--invoice-status-draft-text)}:host([variant=classic]) .invoice__status--sent{color:var(--invoice-status-sent-text)}:host([variant=classic]) .invoice__status--paid{color:var(--invoice-status-paid-text)}:host([variant=classic]) .invoice__status--overdue{color:var(--invoice-status-overdue-text)}:host([variant=classic]) .invoice__status--cancelled{color:var(--invoice-status-cancelled-text)}:host([variant=classic]) .invoice__party-label{text-transform:none;letter-spacing:normal;font-style:italic;font-weight:var(--snice-font-weight-medium,500)}:host([variant=classic]) .invoice__table th{text-transform:none;letter-spacing:normal;font-style:italic;border-bottom:2px double var(--invoice-text)}:host([variant=classic]) .invoice__table td{border-bottom:1px solid var(--invoice-border)}:host([variant=classic]) .invoice__table tbody tr:last-child td{border-bottom:2px double var(--invoice-text)}:host([variant=classic]) .invoice__summary-row--total{border-top:2px double var(--invoice-text)}:host([variant=classic]) .invoice__notes{background:0 0;border-top:1px solid var(--invoice-border);border-radius:0;padding:var(--snice-spacing-md,1rem) 0}:host([variant=minimal]){--invoice-border-width:0;--invoice-padding:var(--snice-spacing-xl, 2rem) var(--snice-spacing-xl, 2rem);--invoice-section-gap:var(--snice-spacing-xl, 2rem);--invoice-title-font-weight:var(--snice-font-weight-light, 300);--invoice-title-font-size:2rem;--invoice-table-border:transparent;--invoice-table-header-text:var(--invoice-text-secondary);--invoice-total-border:1px solid var(--invoice-border);--invoice-notes-bg:transparent;--invoice-notes-padding:0;--invoice-shadow:none}:host([variant=minimal]) .invoice__status{background:0 0;padding:0;font-weight:var(--snice-font-weight-normal,400);text-transform:none;letter-spacing:normal;font-size:var(--invoice-body-font-size)}:host([variant=minimal]) .invoice__status--draft{color:var(--invoice-status-draft-text)}:host([variant=minimal]) .invoice__status--sent{color:var(--invoice-status-sent-text)}:host([variant=minimal]) .invoice__status--paid{color:var(--invoice-status-paid-text)}:host([variant=minimal]) .invoice__status--overdue{color:var(--invoice-status-overdue-text)}:host([variant=minimal]) .invoice__status--cancelled{color:var(--invoice-status-cancelled-text)}:host([variant=minimal]) .invoice__party-label{text-transform:none;letter-spacing:normal;font-weight:var(--snice-font-weight-normal,400)}:host([variant=minimal]) .invoice__table th{text-transform:none;letter-spacing:normal;font-weight:var(--snice-font-weight-normal,400);border-bottom:1px solid var(--invoice-border)}:host([variant=minimal]) .invoice__table td{border-bottom:none;padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-xs,.5rem)}:host([variant=minimal]) .invoice__table tbody tr:last-child td{border-bottom:1px solid var(--invoice-border)}:host([variant=minimal]) .invoice__notes{border-top:1px solid var(--invoice-border);padding-top:var(--snice-spacing-md,1rem)}:host([variant=detailed]){--invoice-padding:var(--snice-spacing-lg, 1.5rem);--invoice-section-gap:var(--snice-spacing-lg, 1.5rem);--invoice-body-font-size:var(--snice-font-size-sm, 0.875rem);--invoice-label-font-size:0.75rem;--invoice-title-font-size:var(--snice-font-size-lg, 1.125rem);--invoice-summary-width:20rem;--invoice-table-cell-padding:var(--snice-spacing-2xs, 0.25rem) var(--snice-spacing-xs, 0.5rem);--invoice-table-header-bg:var(--invoice-bg-element)}:host([variant=detailed]) .invoice__header{font-family:var(--snice-font-family-display);margin-bottom:var(--snice-spacing-md,1rem)}:host([variant=detailed]) .invoice__table th{font-size:.6875rem}:host([variant=detailed]) .invoice__table tbody tr:nth-child(2n){background:var(--invoice-table-stripe-bg)}:host([variant=detailed]) .invoice__item-line-num{color:var(--invoice-text-tertiary);font-size:.75rem;min-width:1.5rem;text-align:center}:host([variant=detailed]) .invoice__item-tax{display:block;font-size:.75rem;color:var(--invoice-text-tertiary)}:host([variant=detailed]) .invoice__summary-row{font-size:var(--snice-font-size-sm, .875rem)}:host([variant=detailed]) .invoice__notes{font-size:.75rem}:host(:not([variant=detailed])) .invoice__item-line-num{display:none}:host(:not([variant=detailed])) .invoice__item-tax{display:none}:host(:not([variant=detailed])) .invoice__col-line{display:none}@media print{:host{--invoice-shadow:none;--invoice-border-width:0;--invoice-border-radius:0;--invoice-bg:white;--invoice-text:black;--invoice-text-secondary:rgb(60 60 60);--invoice-text-tertiary:rgb(100 100 100);--invoice-accent:black;--invoice-border:rgb(180 180 180)}.invoice{padding:0;border:none;box-shadow:none;border-radius:0;max-width:none}.invoice__header{font-family:var(--snice-font-family-display);background:0 0!important;color:#000!important;border-bottom:2px solid #000;padding:0 0 .5rem;font-family:var(--snice-font-family-display);break-inside:avoid}:host([variant=modern]) .invoice__header{font-family:var(--snice-font-family-display);margin:0 0 1rem}:host([variant=modern]) .invoice__meta-label,:host([variant=modern]) .invoice__meta-value{color:#000!important}.invoice__parties{background:0 0!important;padding:0;break-inside:avoid}.invoice__status{background:0 0!important;border:1px solid currentColor;color:#000!important;text-decoration:none}.invoice__status--cancelled{text-decoration:line-through}.invoice__table th{background:0 0!important;border-bottom:2px solid #000;color:#000}.invoice__table td{border-bottom:1px solid rgb(180 180 180)}.invoice__table tbody tr:last-child td{border-bottom:2px solid #000}.invoice__table tbody tr{background:0 0!important}.invoice__summary-row--total{border-top:2px solid #000;color:#000}.invoice__summary-row--discount{color:#000}.invoice__notes{background:0 0!important;border:1px solid rgb(180 180 180);border-left:3px solid #000}:host([variant=classic]) .invoice__notes,:host([variant=minimal]) .invoice__notes{border:none;border-top:1px solid rgb(180 180 180)}.invoice__table{break-inside:auto}.invoice__table thead{display:table-header-group}.invoice__notes,.invoice__summary,.invoice__table tr{break-inside:avoid}.invoice__qr{border:1px solid rgb(180 180 180);break-inside:avoid}.invoice__print-btn,.invoice__qr-placeholder{display:none}}\";\n\nlet SniceInvoice = (() => {\n let _classDecorators = [element('snice-invoice')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _invoiceNumber_decorators;\n let _invoiceNumber_initializers = [];\n let _invoiceNumber_extraInitializers = [];\n let _date_decorators;\n let _date_initializers = [];\n let _date_extraInitializers = [];\n let _dueDate_decorators;\n let _dueDate_initializers = [];\n let _dueDate_extraInitializers = [];\n let _status_decorators;\n let _status_initializers = [];\n let _status_extraInitializers = [];\n let _currency_decorators;\n let _currency_initializers = [];\n let _currency_extraInitializers = [];\n let _taxRate_decorators;\n let _taxRate_initializers = [];\n let _taxRate_extraInitializers = [];\n let _discount_decorators;\n let _discount_initializers = [];\n let _discount_extraInitializers = [];\n let _from_decorators;\n let _from_initializers = [];\n let _from_extraInitializers = [];\n let _to_decorators;\n let _to_initializers = [];\n let _to_extraInitializers = [];\n let _items_decorators;\n let _items_initializers = [];\n let _items_extraInitializers = [];\n let _notes_decorators;\n let _notes_initializers = [];\n let _notes_extraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _showQr_decorators;\n let _showQr_initializers = [];\n let _showQr_extraInitializers = [];\n let _qrData_decorators;\n let _qrData_initializers = [];\n let _qrData_extraInitializers = [];\n let _qrPosition_decorators;\n let _qrPosition_initializers = [];\n let _qrPosition_extraInitializers = [];\n let _handleStatusChange_decorators;\n let _handleItemsChange_decorators;\n let _emitItemChange_decorators;\n let _emitStatusChange_decorators;\n let _renderContent_decorators;\n let _componentStyles_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _invoiceNumber_decorators = [property()];\n _date_decorators = [property()];\n _dueDate_decorators = [property()];\n _status_decorators = [property()];\n _currency_decorators = [property()];\n _taxRate_decorators = [property({ type: Number })];\n _discount_decorators = [property({ type: Number })];\n _from_decorators = [property({ type: Object, attribute: false })];\n _to_decorators = [property({ type: Object, attribute: false })];\n _items_decorators = [property({ type: Array, attribute: false })];\n _notes_decorators = [property()];\n _variant_decorators = [property()];\n _showQr_decorators = [property({ type: Boolean })];\n _qrData_decorators = [property()];\n _qrPosition_decorators = [property()];\n _handleStatusChange_decorators = [watch('status')];\n _handleItemsChange_decorators = [watch('items')];\n _emitItemChange_decorators = [dispatch('invoice-item-change', { bubbles: true, composed: true })];\n _emitStatusChange_decorators = [dispatch('invoice-status-change', { bubbles: true, composed: true })];\n _renderContent_decorators = [render()];\n _componentStyles_decorators = [styles()];\n __esDecorate(this, null, _handleStatusChange_decorators, { kind: \"method\", name: \"handleStatusChange\", static: false, private: false, access: { has: obj => \"handleStatusChange\" in obj, get: obj => obj.handleStatusChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleItemsChange_decorators, { kind: \"method\", name: \"handleItemsChange\", static: false, private: false, access: { has: obj => \"handleItemsChange\" in obj, get: obj => obj.handleItemsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitItemChange_decorators, { kind: \"method\", name: \"emitItemChange\", static: false, private: false, access: { has: obj => \"emitItemChange\" in obj, get: obj => obj.emitItemChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitStatusChange_decorators, { kind: \"method\", name: \"emitStatusChange\", static: false, private: false, access: { has: obj => \"emitStatusChange\" in obj, get: obj => obj.emitStatusChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _renderContent_decorators, { kind: \"method\", name: \"renderContent\", static: false, private: false, access: { has: obj => \"renderContent\" in obj, get: obj => obj.renderContent }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _componentStyles_decorators, { kind: \"method\", name: \"componentStyles\", static: false, private: false, access: { has: obj => \"componentStyles\" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _invoiceNumber_decorators, { kind: \"field\", name: \"invoiceNumber\", static: false, private: false, access: { has: obj => \"invoiceNumber\" in obj, get: obj => obj.invoiceNumber, set: (obj, value) => { obj.invoiceNumber = value; } }, metadata: _metadata }, _invoiceNumber_initializers, _invoiceNumber_extraInitializers);\n __esDecorate(null, null, _date_decorators, { kind: \"field\", name: \"date\", static: false, private: false, access: { has: obj => \"date\" in obj, get: obj => obj.date, set: (obj, value) => { obj.date = value; } }, metadata: _metadata }, _date_initializers, _date_extraInitializers);\n __esDecorate(null, null, _dueDate_decorators, { kind: \"field\", name: \"dueDate\", static: false, private: false, access: { has: obj => \"dueDate\" in obj, get: obj => obj.dueDate, set: (obj, value) => { obj.dueDate = value; } }, metadata: _metadata }, _dueDate_initializers, _dueDate_extraInitializers);\n __esDecorate(null, null, _status_decorators, { kind: \"field\", name: \"status\", static: false, private: false, access: { has: obj => \"status\" in obj, get: obj => obj.status, set: (obj, value) => { obj.status = value; } }, metadata: _metadata }, _status_initializers, _status_extraInitializers);\n __esDecorate(null, null, _currency_decorators, { kind: \"field\", name: \"currency\", static: false, private: false, access: { has: obj => \"currency\" in obj, get: obj => obj.currency, set: (obj, value) => { obj.currency = value; } }, metadata: _metadata }, _currency_initializers, _currency_extraInitializers);\n __esDecorate(null, null, _taxRate_decorators, { kind: \"field\", name: \"taxRate\", static: false, private: false, access: { has: obj => \"taxRate\" in obj, get: obj => obj.taxRate, set: (obj, value) => { obj.taxRate = value; } }, metadata: _metadata }, _taxRate_initializers, _taxRate_extraInitializers);\n __esDecorate(null, null, _discount_decorators, { kind: \"field\", name: \"discount\", static: false, private: false, access: { has: obj => \"discount\" in obj, get: obj => obj.discount, set: (obj, value) => { obj.discount = value; } }, metadata: _metadata }, _discount_initializers, _discount_extraInitializers);\n __esDecorate(null, null, _from_decorators, { kind: \"field\", name: \"from\", static: false, private: false, access: { has: obj => \"from\" in obj, get: obj => obj.from, set: (obj, value) => { obj.from = value; } }, metadata: _metadata }, _from_initializers, _from_extraInitializers);\n __esDecorate(null, null, _to_decorators, { kind: \"field\", name: \"to\", static: false, private: false, access: { has: obj => \"to\" in obj, get: obj => obj.to, set: (obj, value) => { obj.to = value; } }, metadata: _metadata }, _to_initializers, _to_extraInitializers);\n __esDecorate(null, null, _items_decorators, { kind: \"field\", name: \"items\", static: false, private: false, access: { has: obj => \"items\" in obj, get: obj => obj.items, set: (obj, value) => { obj.items = value; } }, metadata: _metadata }, _items_initializers, _items_extraInitializers);\n __esDecorate(null, null, _notes_decorators, { kind: \"field\", name: \"notes\", static: false, private: false, access: { has: obj => \"notes\" in obj, get: obj => obj.notes, set: (obj, value) => { obj.notes = value; } }, metadata: _metadata }, _notes_initializers, _notes_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, _showQr_decorators, { kind: \"field\", name: \"showQr\", static: false, private: false, access: { has: obj => \"showQr\" in obj, get: obj => obj.showQr, set: (obj, value) => { obj.showQr = value; } }, metadata: _metadata }, _showQr_initializers, _showQr_extraInitializers);\n __esDecorate(null, null, _qrData_decorators, { kind: \"field\", name: \"qrData\", static: false, private: false, access: { has: obj => \"qrData\" in obj, get: obj => obj.qrData, set: (obj, value) => { obj.qrData = value; } }, metadata: _metadata }, _qrData_initializers, _qrData_extraInitializers);\n __esDecorate(null, null, _qrPosition_decorators, { kind: \"field\", name: \"qrPosition\", static: false, private: false, access: { has: obj => \"qrPosition\" in obj, get: obj => obj.qrPosition, set: (obj, value) => { obj.qrPosition = value; } }, metadata: _metadata }, _qrPosition_initializers, _qrPosition_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 handleStatusChange(oldVal, newVal) {\n if (oldVal && oldVal !== newVal) {\n this.emitStatusChange({ oldStatus: oldVal, newStatus: newVal });\n }\n }\n handleItemsChange() {\n this.emitItemChange({\n items: this.items,\n subtotal: this.getSubtotal(),\n tax: this.getTaxAmount(),\n total: this.getTotal()\n });\n }\n emitItemChange(detail) {\n return detail;\n }\n emitStatusChange(detail) {\n return detail;\n }\n getItemAmount(item) {\n if (item.amount !== undefined)\n return item.amount;\n return item.quantity * item.unitPrice;\n }\n getSubtotal() {\n return this.items.reduce((sum, item) => sum + this.getItemAmount(item), 0);\n }\n getTaxAmount() {\n const subtotal = this.getSubtotal();\n const afterDiscount = subtotal - this.getDiscountAmount();\n return afterDiscount * (this.taxRate / 100);\n }\n getDiscountAmount() {\n return this.getSubtotal() * (this.discount / 100);\n }\n getTotal() {\n const subtotal = this.getSubtotal();\n const discountAmt = this.getDiscountAmount();\n const taxAmt = (subtotal - discountAmt) * (this.taxRate / 100);\n return subtotal - discountAmt + taxAmt;\n }\n formatCurrency(amount) {\n try {\n return new Intl.NumberFormat(undefined, {\n style: 'currency',\n currency: this.currency\n }).format(amount);\n }\n catch {\n return `${this.currency} ${amount.toFixed(2)}`;\n }\n }\n print() {\n window.print();\n }\n toJSON() {\n return {\n invoiceNumber: this.invoiceNumber,\n date: this.date,\n dueDate: this.dueDate,\n status: this.status,\n currency: this.currency,\n taxRate: this.taxRate,\n discount: this.discount,\n from: { ...this.from },\n to: { ...this.to },\n items: this.items.map(i => ({ ...i })),\n notes: this.notes,\n variant: this.variant,\n showQr: this.showQr,\n qrData: this.qrData,\n qrPosition: this.qrPosition,\n subtotal: this.getSubtotal(),\n tax: this.getTaxAmount(),\n discount_amount: this.getDiscountAmount(),\n total: this.getTotal()\n };\n }\n renderParty(label, party) {\n const hasContent = party.name || party.address || party.email || party.phone;\n if (!hasContent)\n return html ``;\n return html /*html*/ `\n <div class=\"invoice__party\" part=\"party\">\n <div class=\"invoice__party-label\" part=\"party-label\">${label}</div>\n <if ${party.name}>\n <div class=\"invoice__party-name\" part=\"party-name\">${party.name}</div>\n </if>\n <if ${party.address}>\n <div class=\"invoice__party-detail\" part=\"party-detail\">${party.address}</div>\n </if>\n <if ${party.email}>\n <div class=\"invoice__party-detail\" part=\"party-detail\">${party.email}</div>\n </if>\n <if ${party.phone}>\n <div class=\"invoice__party-detail\" part=\"party-detail\">${party.phone}</div>\n </if>\n </div>\n `;\n }\n renderItemRow(item, index) {\n const amount = this.getItemAmount(item);\n const hasItemTax = item.tax !== undefined;\n return html /*html*/ `\n <tr part=\"table-row\">\n <td class=\"invoice__col-line\" part=\"table-cell\">\n <span class=\"invoice__item-line-num\">${index + 1}</span>\n </td>\n <td part=\"table-cell\">\n ${item.description}\n <if ${hasItemTax}>\n <span class=\"invoice__item-tax\">Tax: ${item.tax}%</span>\n </if>\n </td>\n <td class=\"invoice__col-qty\" part=\"table-cell\">${item.quantity}</td>\n <td class=\"invoice__col-price\" part=\"table-cell\">${this.formatCurrency(item.unitPrice)}</td>\n <td part=\"table-cell\">${this.formatCurrency(amount)}</td>\n </tr>\n `;\n }\n renderQr(position) {\n if (!this.showQr)\n return html ``;\n return html /*html*/ `\n <div class=\"invoice__qr invoice__qr--${position}\" part=\"qr-container\">\n <div part=\"qr\">\n <slot name=\"qr\">\n <div class=\"invoice__qr-placeholder\">QR</div>\n </slot>\n </div>\n </div>\n `;\n }\n renderContent() {\n const subtotal = this.getSubtotal();\n const discountAmt = this.getDiscountAmount();\n const taxAmt = this.getTaxAmount();\n const total = this.getTotal();\n const hasDiscount = this.discount > 0;\n const hasTax = this.taxRate > 0;\n const hasFrom = this.from.name || this.from.address;\n const hasTo = this.to.name || this.to.address;\n const hasParties = hasFrom || hasTo;\n const isDetailed = this.variant === 'detailed';\n const isQrTopRight = this.showQr && this.qrPosition === 'top-right';\n const isQrBottomRight = this.showQr && this.qrPosition === 'bottom-right';\n const isQrBottomLeft = this.showQr && this.qrPosition === 'bottom-left';\n const isQrFooter = this.showQr && this.qrPosition === 'footer';\n return html /*html*/ `\n <div class=\"invoice\" part=\"base\">\n <div class=\"invoice__header\" part=\"header\">\n <div class=\"invoice__header-left\">\n <if ${this.from.logo}>\n <img class=\"invoice__logo\" src=\"${this.from.logo}\" alt=\"${this.from.name}\" part=\"logo\" />\n </if>\n <h2 class=\"invoice__title\" part=\"title\">Invoice</h2>\n <span class=\"invoice__status invoice__status--${this.status}\" part=\"status\">${this.status}</span>\n </div>\n <div class=\"invoice__meta\" part=\"meta\">\n <if ${this.invoiceNumber}>\n <div>\n <span class=\"invoice__meta-label\">Invoice # </span>\n <span class=\"invoice__meta-value\">${this.invoiceNumber}</span>\n </div>\n </if>\n <if ${this.date}>\n <div>\n <span class=\"invoice__meta-label\">Date: </span>\n <span class=\"invoice__meta-value\">${this.date}</span>\n </div>\n </if>\n <if ${this.dueDate}>\n <div>\n <span class=\"invoice__meta-label\">Due Date: </span>\n <span class=\"invoice__meta-value\">${this.dueDate}</span>\n </div>\n </if>\n </div>\n <if ${isQrTopRight}>\n ${this.renderQr('top-right')}\n </if>\n </div>\n\n <if ${hasParties}>\n <div class=\"invoice__parties\" part=\"parties\">\n ${this.renderParty('From', this.from)}\n ${this.renderParty('Bill To', this.to)}\n </div>\n </if>\n\n <if ${this.items.length > 0}>\n <table class=\"invoice__table\" part=\"table\">\n <thead part=\"table-header\">\n <tr>\n <if ${isDetailed}>\n <th class=\"invoice__col-line\">#</th>\n </if>\n <th>Description</th>\n <th class=\"invoice__col-qty\">Qty</th>\n <th class=\"invoice__col-price\">Unit Price</th>\n <th>Amount</th>\n </tr>\n </thead>\n <tbody>\n ${this.items.map((item, i) => this.renderItemRow(item, i))}\n </tbody>\n </table>\n </if>\n\n <div class=\"invoice__summary\" part=\"summary\">\n <div class=\"invoice__summary-table\">\n <div class=\"invoice__summary-row\" part=\"summary-row\">\n <span part=\"summary-label\">Subtotal</span>\n <span part=\"summary-value\">${this.formatCurrency(subtotal)}</span>\n </div>\n <if ${hasDiscount}>\n <div class=\"invoice__summary-row invoice__summary-row--discount\" part=\"discount-row\">\n <span part=\"summary-label\">Discount (${this.discount}%)</span>\n <span part=\"summary-value\">-${this.formatCurrency(discountAmt)}</span>\n </div>\n </if>\n <if ${hasTax}>\n <div class=\"invoice__summary-row\" part=\"tax-row\">\n <span part=\"summary-label\">Tax (${this.taxRate}%)</span>\n <span part=\"summary-value\">${this.formatCurrency(taxAmt)}</span>\n </div>\n </if>\n <div class=\"invoice__summary-row invoice__summary-row--total\" part=\"total\">\n <span part=\"summary-label\">Total</span>\n <span part=\"summary-value\">${this.formatCurrency(total)}</span>\n </div>\n </div>\n </div>\n\n <if ${this.notes}>\n <div class=\"invoice__notes\" part=\"notes\">\n <div class=\"invoice__notes-label\" part=\"notes-label\">Notes</div>\n <div part=\"notes-content\">${this.notes}</div>\n </div>\n </if>\n\n <if ${isQrBottomRight}>\n ${this.renderQr('bottom-right')}\n </if>\n <if ${isQrBottomLeft}>\n ${this.renderQr('bottom-left')}\n </if>\n <if ${isQrFooter}>\n ${this.renderQr('footer')}\n </if>\n\n <div class=\"invoice__footer\" part=\"footer\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n componentStyles() {\n return css /*css*/ `${cssContent}`;\n }\n constructor() {\n super(...arguments);\n this.invoiceNumber = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _invoiceNumber_initializers, ''));\n this.date = (__runInitializers(this, _invoiceNumber_extraInitializers), __runInitializers(this, _date_initializers, ''));\n this.dueDate = (__runInitializers(this, _date_extraInitializers), __runInitializers(this, _dueDate_initializers, ''));\n this.status = (__runInitializers(this, _dueDate_extraInitializers), __runInitializers(this, _status_initializers, 'draft'));\n this.currency = (__runInitializers(this, _status_extraInitializers), __runInitializers(this, _currency_initializers, 'USD'));\n this.taxRate = (__runInitializers(this, _currency_extraInitializers), __runInitializers(this, _taxRate_initializers, 0));\n this.discount = (__runInitializers(this, _taxRate_extraInitializers), __runInitializers(this, _discount_initializers, 0));\n this.from = (__runInitializers(this, _discount_extraInitializers), __runInitializers(this, _from_initializers, { name: '' }));\n this.to = (__runInitializers(this, _from_extraInitializers), __runInitializers(this, _to_initializers, { name: '' }));\n this.items = (__runInitializers(this, _to_extraInitializers), __runInitializers(this, _items_initializers, []));\n this.notes = (__runInitializers(this, _items_extraInitializers), __runInitializers(this, _notes_initializers, ''));\n this.variant = (__runInitializers(this, _notes_extraInitializers), __runInitializers(this, _variant_initializers, 'standard'));\n this.showQr = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _showQr_initializers, false));\n this.qrData = (__runInitializers(this, _showQr_extraInitializers), __runInitializers(this, _qrData_initializers, ''));\n this.qrPosition = (__runInitializers(this, _qrData_extraInitializers), __runInitializers(this, _qrPosition_initializers, 'bottom-right'));\n __runInitializers(this, _qrPosition_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SniceInvoice };\n//# sourceMappingURL=snice-invoice.js.map\n"],"names":["element","property","watch","dispatch","render","styles","html","css"],"mappings":";;;;;;;;;;EAAA;EACA;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;EAmDO,SAAS,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE;EACzG,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,MAAM,IAAI,OAAO,C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AAE,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;EAC3H,YAAY,IAAI,CAAC,KAAK,IAAI,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;EAC9H,YAAY,IAAI,CAAC,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,EAAE,UAAU,CAAC,CAAC;EAC1I,YAAY,IAAI,CAAC,MAAM,IAAI,iBAAiB,CAAC,IAAI,EAAE,0BAA0B,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;EACrI,YAAY,IAAI,CAAC,MAAM,IAAI,iBAAiB,CAAC,IAAI,EAAE,yBAAyB,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,EAAE,EAAE,CAAC,CAAC;EACjI,YAAY,IAAI,CAAC,UAAU,IAAI,iBAAiB,CAAC,IAAI,EAAE,yBAAyB,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,EAAE,cAAc,CAAC,CAAC;EACrJ,YAAY,iBAAiB,CAAC,IAAI,EAAE,6BAA6B,CAAC;EAClE,QAAQ;EACR,KAAK;EACL,IAAI,OAAO,UAAU;EACrB,CAAC;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"snice-invoice.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/invoice/snice-invoice.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 { __esDecorate, __runInitializers } from 'tslib';\nimport { element, property, watch, dispatch, render, styles, html, css } from 'snice';\n\nvar cssContent = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);width:100%;--invoice-max-width:50rem;--invoice-padding:var(--snice-spacing-xl, 2rem);--invoice-section-gap:var(--snice-spacing-xl, 2rem);--invoice-bg:var(--snice-color-surface, rgb(255 255 255));--invoice-text:var(--snice-color-text, rgb(23 23 23));--invoice-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--invoice-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--invoice-accent:var(--snice-color-primary, rgb(37 99 235));--invoice-border:var(--snice-color-border, rgb(226 226 226));--invoice-bg-element:var(--snice-color-surface-container-high, rgb(252 251 249));--invoice-success:var(--snice-color-success, rgb(22 163 74));--invoice-danger:var(--snice-color-danger, rgb(220 38 38));--invoice-header-bg:transparent;--invoice-header-text:var(--invoice-text);--invoice-header-padding:0;--invoice-header-border:none;--invoice-table-header-bg:transparent;--invoice-table-header-text:var(--invoice-text-tertiary);--invoice-table-stripe-bg:var(--invoice-bg-element);--invoice-table-border:var(--invoice-border);--invoice-table-cell-padding:var(--snice-spacing-sm, 0.75rem) var(--snice-spacing-xs, 0.5rem);--invoice-summary-width:16rem;--invoice-total-border:2px solid var(--invoice-border);--invoice-total-font-size:var(--snice-font-size-lg, 1.125rem);--invoice-total-font-weight:var(--snice-font-weight-bold, 700);--invoice-status-draft-bg:var(--snice-color-surface-container, rgb(229 231 235));--invoice-status-draft-text:var(--snice-color-neutral-strong, rgb(55 65 81));--invoice-status-sent-bg:var(--snice-color-primary-subtle, rgb(219 234 254));--invoice-status-sent-text:var(--snice-color-primary-strong, rgb(29 78 216));--invoice-status-paid-bg:var(--snice-color-success-subtle, rgb(220 252 231));--invoice-status-paid-text:var(--snice-color-success-strong, rgb(21 128 61));--invoice-status-overdue-bg:var(--snice-color-danger-subtle, rgb(254 226 226));--invoice-status-overdue-text:var(--snice-color-danger-strong, rgb(185 28 28));--invoice-status-cancelled-bg:var(--snice-color-neutral-subtle, rgb(243 244 246));--invoice-status-cancelled-text:var(--snice-color-neutral, rgb(107 114 128));--invoice-font-family:inherit;--invoice-title-font-size:var(--snice-font-size-2xl, 1.5rem);--invoice-title-font-weight:var(--snice-font-weight-bold, 700);--invoice-label-font-size:var(--snice-font-size-sm, 0.875rem);--invoice-body-font-size:var(--snice-font-size-md, 1rem);--invoice-notes-bg:var(--invoice-bg-element);--invoice-notes-border:none;--invoice-notes-padding:var(--snice-spacing-md, 1rem);--invoice-qr-size:6rem;--invoice-qr-border:1px dashed var(--invoice-border);--invoice-shadow:none;--invoice-border-width:1px;--invoice-border-color:var(--invoice-border);--invoice-border-radius:var(--snice-border-radius-lg, 0.5rem)}.invoice{background:var(--invoice-bg);border:var(--invoice-border-width) solid var(--invoice-border-color);border-radius:var(--invoice-border-radius);padding:var(--invoice-padding);color:var(--invoice-text);max-width:var(--invoice-max-width);font-family:var(--invoice-font-family);font-size:var(--invoice-body-font-size);box-shadow:var(--invoice-shadow);position:relative;line-height:var(--snice-line-height-normal, 1.5)}.invoice__header{font-family:var(--snice-font-family-display);display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--invoice-section-gap);gap:var(--snice-spacing-lg,1.5rem);background:var(--invoice-header-bg);color:var(--invoice-header-text);padding:var(--invoice-header-padding);border-bottom:var(--invoice-header-border);position:relative}.invoice__header-left{font-family:var(--snice-font-family-display);display:flex;flex-direction:column;gap:var(--snice-spacing-xs,.5rem)}.invoice__title{font-family:var(--snice-font-family-display);font-size:var(--invoice-title-font-size);font-weight:var(--invoice-title-font-weight);color:inherit;margin:0;line-height:1.2}.invoice__logo{max-height:3rem;max-width:10rem;object-fit:contain;margin-bottom:var(--snice-spacing-2xs,.25rem)}.invoice__meta{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem);text-align:right}.invoice__meta-label{font-size:var(--invoice-label-font-size);color:var(--invoice-text-tertiary)}.invoice__meta-value{font-size:var(--invoice-body-font-size);font-weight:var(--snice-font-weight-medium,500);color:var(--invoice-text)}.invoice__status{display:inline-flex;align-items:center;padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--invoice-label-font-size);font-weight:var(--snice-font-weight-semibold,600);text-transform:uppercase;letter-spacing:var(--snice-tracking-wide)}.invoice__status--draft{background:var(--invoice-status-draft-bg);color:var(--invoice-status-draft-text)}.invoice__status--sent{background:var(--invoice-status-sent-bg);color:var(--invoice-status-sent-text)}.invoice__status--paid{background:var(--invoice-status-paid-bg);color:var(--invoice-status-paid-text)}.invoice__status--overdue{background:var(--invoice-status-overdue-bg);color:var(--invoice-status-overdue-text)}.invoice__status--cancelled{background:var(--invoice-status-cancelled-bg);color:var(--invoice-status-cancelled-text);text-decoration:line-through}.invoice__parties{display:grid;grid-template-columns:1fr 1fr;gap:var(--invoice-section-gap);margin-bottom:var(--invoice-section-gap)}.invoice__party-label{font-size:var(--invoice-label-font-size);font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-text-tertiary);text-transform:uppercase;letter-spacing:var(--snice-tracking-wide);margin-bottom:var(--snice-spacing-xs,.5rem)}.invoice__party-name{font-size:var(--invoice-body-font-size);font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-text);margin-bottom:var(--snice-spacing-2xs,.25rem)}.invoice__party-detail{font-size:var(--invoice-label-font-size);color:var(--invoice-text-secondary);line-height:var(--snice-line-height-normal, 1.5);white-space:pre-line}.invoice__table{width:100%;border-collapse:collapse;margin-bottom:var(--snice-spacing-lg,1.5rem)}.invoice__table thead{background:var(--invoice-table-header-bg)}.invoice__table th{text-align:left;font-size:var(--invoice-label-font-size);font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-table-header-text);padding:var(--invoice-table-cell-padding);border-bottom:2px solid var(--invoice-table-border);text-transform:uppercase;letter-spacing:var(--snice-tracking-wide)}.invoice__table td:last-child,.invoice__table th:last-child{text-align:right}.invoice__table td.invoice__col-price,.invoice__table td.invoice__col-qty,.invoice__table th.invoice__col-price,.invoice__table th.invoice__col-qty{text-align:right;width:6.5rem}.invoice__table td{font-size:var(--invoice-body-font-size);color:var(--invoice-text);padding:var(--invoice-table-cell-padding);border-bottom:1px solid var(--invoice-table-border)}.invoice__table tbody tr:last-child td{border-bottom:2px solid var(--invoice-table-border)}.invoice__summary{display:flex;justify-content:flex-end;margin-bottom:var(--invoice-section-gap)}.invoice__summary-table{width:var(--invoice-summary-width)}.invoice__summary-row{display:flex;justify-content:space-between;padding:var(--snice-spacing-2xs,.25rem) 0;font-size:var(--invoice-body-font-size);color:var(--invoice-text-secondary)}.invoice__summary-row--discount{color:var(--invoice-success)}.invoice__summary-row--total{border-top:var(--invoice-total-border);margin-top:var(--snice-spacing-xs,.5rem);padding-top:var(--snice-spacing-xs,.5rem);font-size:var(--invoice-total-font-size);font-weight:var(--invoice-total-font-weight);color:var(--invoice-text)}.invoice__notes{padding:var(--invoice-notes-padding);background:var(--invoice-notes-bg);border:var(--invoice-notes-border);border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--invoice-label-font-size);color:var(--invoice-text-secondary);line-height:var(--snice-line-height-normal, 1.5);margin-bottom:var(--snice-spacing-lg,1.5rem)}.invoice__notes-label{font-weight:var(--snice-font-weight-semibold,600);color:var(--invoice-text);margin-bottom:var(--snice-spacing-2xs,.25rem)}.invoice__qr{width:var(--invoice-qr-size);height:var(--invoice-qr-size);border:var(--invoice-qr-border);border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;overflow:hidden}.invoice__qr--top-right{position:absolute;top:0;right:0}.invoice__qr--bottom-right{position:absolute;bottom:var(--invoice-padding);right:var(--invoice-padding)}.invoice__qr--bottom-left{position:absolute;bottom:var(--invoice-padding);left:var(--invoice-padding)}.invoice__qr--footer{position:static;margin-top:var(--snice-spacing-md,1rem)}.invoice__qr-placeholder{font-size:var(--snice-font-size-sm, .875rem);color:var(--invoice-text-tertiary);text-align:center;padding:var(--snice-spacing-xs,.5rem)}.invoice__footer{margin-top:var(--snice-spacing-md,1rem)}:host([variant=modern]){--invoice-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--invoice-header-bg:var(--invoice-accent);--invoice-header-text:var(--snice-color-text-inverse, rgb(255 255 255));--invoice-header-padding:var(--snice-spacing-lg, 1.5rem);--invoice-border-width:0;--invoice-table-header-bg:var(--invoice-bg-element);--invoice-table-header-text:var(--invoice-text)}:host([variant=modern]) .invoice__header{font-family:var(--snice-font-family-display);border-radius:var(--snice-border-radius-md,.25rem);margin:calc(-1 * var(--invoice-padding));margin-bottom:var(--invoice-section-gap);padding:var(--snice-spacing-lg,1.5rem) var(--invoice-padding);border-bottom:none}:host([variant=modern]) .invoice__meta-label{color:var(--snice-color-text-inverse-secondary,rgb(255 255 255 / .7))}:host([variant=modern]) .invoice__meta-value{color:var(--snice-color-text-inverse,rgb(255 255 255))}:host([variant=modern]) .invoice__status{background:var(--snice-color-text-inverse-subtle,rgb(255 255 255 / .2));color:var(--snice-color-text-inverse,rgb(255 255 255));text-decoration:none}:host([variant=modern]) .invoice__parties{background:var(--invoice-bg-element);border-radius:var(--snice-border-radius-md,.25rem);padding:var(--snice-spacing-lg,1.5rem)}:host([variant=modern]) .invoice__table th{text-transform:none;letter-spacing:normal;font-weight:var(--snice-font-weight-bold,700);border-bottom:3px solid var(--invoice-accent)}:host([variant=modern]) .invoice__summary-row--total{border-top:3px solid var(--invoice-accent);color:var(--invoice-accent)}:host([variant=modern]) .invoice__notes{border-left:3px solid var(--invoice-accent);border-radius:0;background:var(--invoice-bg-element)}:host([variant=classic]){--invoice-font-family:'Georgia','Times New Roman','Palatino Linotype',serif;--invoice-title-font-size:1.75rem;--invoice-title-font-weight:var(--snice-font-weight-bold, 700);--invoice-border-radius:0;--invoice-border-width:2px;--invoice-border-color:var(--invoice-text);--invoice-header-border:2px solid var(--invoice-text);--invoice-header-padding:0 0 var(--snice-spacing-md, 1rem) 0}:host([variant=classic]) .invoice__status{border-radius:0;border:1px solid currentColor;background:0 0}:host([variant=classic]) .invoice__status--draft{color:var(--invoice-status-draft-text)}:host([variant=classic]) .invoice__status--sent{color:var(--invoice-status-sent-text)}:host([variant=classic]) .invoice__status--paid{color:var(--invoice-status-paid-text)}:host([variant=classic]) .invoice__status--overdue{color:var(--invoice-status-overdue-text)}:host([variant=classic]) .invoice__status--cancelled{color:var(--invoice-status-cancelled-text)}:host([variant=classic]) .invoice__party-label{text-transform:none;letter-spacing:normal;font-style:italic;font-weight:var(--snice-font-weight-medium,500)}:host([variant=classic]) .invoice__table th{text-transform:none;letter-spacing:normal;font-style:italic;border-bottom:2px double var(--invoice-text)}:host([variant=classic]) .invoice__table td{border-bottom:1px solid var(--invoice-border)}:host([variant=classic]) .invoice__table tbody tr:last-child td{border-bottom:2px double var(--invoice-text)}:host([variant=classic]) .invoice__summary-row--total{border-top:2px double var(--invoice-text)}:host([variant=classic]) .invoice__notes{background:0 0;border-top:1px solid var(--invoice-border);border-radius:0;padding:var(--snice-spacing-md,1rem) 0}:host([variant=minimal]){--invoice-border-width:0;--invoice-padding:var(--snice-spacing-xl, 2rem) var(--snice-spacing-xl, 2rem);--invoice-section-gap:var(--snice-spacing-xl, 2rem);--invoice-title-font-weight:var(--snice-font-weight-light, 300);--invoice-title-font-size:2rem;--invoice-table-border:transparent;--invoice-table-header-text:var(--invoice-text-secondary);--invoice-total-border:1px solid var(--invoice-border);--invoice-notes-bg:transparent;--invoice-notes-padding:0;--invoice-shadow:none}:host([variant=minimal]) .invoice__status{background:0 0;padding:0;font-weight:var(--snice-font-weight-normal,400);text-transform:none;letter-spacing:normal;font-size:var(--invoice-body-font-size)}:host([variant=minimal]) .invoice__status--draft{color:var(--invoice-status-draft-text)}:host([variant=minimal]) .invoice__status--sent{color:var(--invoice-status-sent-text)}:host([variant=minimal]) .invoice__status--paid{color:var(--invoice-status-paid-text)}:host([variant=minimal]) .invoice__status--overdue{color:var(--invoice-status-overdue-text)}:host([variant=minimal]) .invoice__status--cancelled{color:var(--invoice-status-cancelled-text)}:host([variant=minimal]) .invoice__party-label{text-transform:none;letter-spacing:normal;font-weight:var(--snice-font-weight-normal,400)}:host([variant=minimal]) .invoice__table th{text-transform:none;letter-spacing:normal;font-weight:var(--snice-font-weight-normal,400);border-bottom:1px solid var(--invoice-border)}:host([variant=minimal]) .invoice__table td{border-bottom:none;padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-xs,.5rem)}:host([variant=minimal]) .invoice__table tbody tr:last-child td{border-bottom:1px solid var(--invoice-border)}:host([variant=minimal]) .invoice__notes{border-top:1px solid var(--invoice-border);padding-top:var(--snice-spacing-md,1rem)}:host([variant=detailed]){--invoice-padding:var(--snice-spacing-lg, 1.5rem);--invoice-section-gap:var(--snice-spacing-lg, 1.5rem);--invoice-body-font-size:var(--snice-font-size-sm, 0.875rem);--invoice-label-font-size:0.75rem;--invoice-title-font-size:var(--snice-font-size-lg, 1.125rem);--invoice-summary-width:20rem;--invoice-table-cell-padding:var(--snice-spacing-2xs, 0.25rem) var(--snice-spacing-xs, 0.5rem);--invoice-table-header-bg:var(--invoice-bg-element)}:host([variant=detailed]) .invoice__header{font-family:var(--snice-font-family-display);margin-bottom:var(--snice-spacing-md,1rem)}:host([variant=detailed]) .invoice__table th{font-size:.6875rem}:host([variant=detailed]) .invoice__table tbody tr:nth-child(2n){background:var(--invoice-table-stripe-bg)}:host([variant=detailed]) .invoice__item-line-num{color:var(--invoice-text-tertiary);font-size:.75rem;min-width:1.5rem;text-align:center}:host([variant=detailed]) .invoice__item-tax{display:block;font-size:.75rem;color:var(--invoice-text-tertiary)}:host([variant=detailed]) .invoice__summary-row{font-size:var(--snice-font-size-sm, .875rem)}:host([variant=detailed]) .invoice__notes{font-size:.75rem}:host(:not([variant=detailed])) .invoice__item-line-num{display:none}:host(:not([variant=detailed])) .invoice__item-tax{display:none}:host(:not([variant=detailed])) .invoice__col-line{display:none}@media print{:host{--invoice-shadow:none;--invoice-border-width:0;--invoice-border-radius:0;--invoice-bg:white;--invoice-text:black;--invoice-text-secondary:rgb(60 60 60);--invoice-text-tertiary:rgb(100 100 100);--invoice-accent:black;--invoice-border:rgb(180 180 180)}.invoice{padding:0;border:none;box-shadow:none;border-radius:0;max-width:none}.invoice__header{font-family:var(--snice-font-family-display);background:0 0!important;color:#000!important;border-bottom:2px solid #000;padding:0 0 .5rem;font-family:var(--snice-font-family-display);break-inside:avoid}:host([variant=modern]) .invoice__header{font-family:var(--snice-font-family-display);margin:0 0 1rem}:host([variant=modern]) .invoice__meta-label,:host([variant=modern]) .invoice__meta-value{color:#000!important}.invoice__parties{background:0 0!important;padding:0;break-inside:avoid}.invoice__status{background:0 0!important;border:1px solid currentColor;color:#000!important;text-decoration:none}.invoice__status--cancelled{text-decoration:line-through}.invoice__table th{background:0 0!important;border-bottom:2px solid #000;color:#000}.invoice__table td{border-bottom:1px solid rgb(180 180 180)}.invoice__table tbody tr:last-child td{border-bottom:2px solid #000}.invoice__table tbody tr{background:0 0!important}.invoice__summary-row--total{border-top:2px solid #000;color:#000}.invoice__summary-row--discount{color:#000}.invoice__notes{background:0 0!important;border:1px solid rgb(180 180 180);border-left:3px solid #000}:host([variant=classic]) .invoice__notes,:host([variant=minimal]) .invoice__notes{border:none;border-top:1px solid rgb(180 180 180)}.invoice__table{break-inside:auto}.invoice__table thead{display:table-header-group}.invoice__notes,.invoice__summary,.invoice__table tr{break-inside:avoid}.invoice__qr{border:1px solid rgb(180 180 180);break-inside:avoid}.invoice__print-btn,.invoice__qr-placeholder{display:none}}\";\n\nlet SniceInvoice = (() => {\n let _classDecorators = [element('snice-invoice')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _invoiceNumber_decorators;\n let _invoiceNumber_initializers = [];\n let _invoiceNumber_extraInitializers = [];\n let _date_decorators;\n let _date_initializers = [];\n let _date_extraInitializers = [];\n let _dueDate_decorators;\n let _dueDate_initializers = [];\n let _dueDate_extraInitializers = [];\n let _status_decorators;\n let _status_initializers = [];\n let _status_extraInitializers = [];\n let _currency_decorators;\n let _currency_initializers = [];\n let _currency_extraInitializers = [];\n let _taxRate_decorators;\n let _taxRate_initializers = [];\n let _taxRate_extraInitializers = [];\n let _discount_decorators;\n let _discount_initializers = [];\n let _discount_extraInitializers = [];\n let _from_decorators;\n let _from_initializers = [];\n let _from_extraInitializers = [];\n let _to_decorators;\n let _to_initializers = [];\n let _to_extraInitializers = [];\n let _items_decorators;\n let _items_initializers = [];\n let _items_extraInitializers = [];\n let _notes_decorators;\n let _notes_initializers = [];\n let _notes_extraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _showQr_decorators;\n let _showQr_initializers = [];\n let _showQr_extraInitializers = [];\n let _qrData_decorators;\n let _qrData_initializers = [];\n let _qrData_extraInitializers = [];\n let _qrPosition_decorators;\n let _qrPosition_initializers = [];\n let _qrPosition_extraInitializers = [];\n let _handleStatusChange_decorators;\n let _handleItemsChange_decorators;\n let _emitItemChange_decorators;\n let _emitStatusChange_decorators;\n let _renderContent_decorators;\n let _componentStyles_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _invoiceNumber_decorators = [property()];\n _date_decorators = [property()];\n _dueDate_decorators = [property()];\n _status_decorators = [property()];\n _currency_decorators = [property()];\n _taxRate_decorators = [property({ type: Number })];\n _discount_decorators = [property({ type: Number })];\n _from_decorators = [property({ type: Object, attribute: false })];\n _to_decorators = [property({ type: Object, attribute: false })];\n _items_decorators = [property({ type: Array, attribute: false })];\n _notes_decorators = [property()];\n _variant_decorators = [property()];\n _showQr_decorators = [property({ type: Boolean })];\n _qrData_decorators = [property()];\n _qrPosition_decorators = [property()];\n _handleStatusChange_decorators = [watch('status')];\n _handleItemsChange_decorators = [watch('items', { immediate: false })];\n _emitItemChange_decorators = [dispatch('invoice-item-change', { bubbles: true, composed: true })];\n _emitStatusChange_decorators = [dispatch('invoice-status-change', { bubbles: true, composed: true })];\n _renderContent_decorators = [render()];\n _componentStyles_decorators = [styles()];\n __esDecorate(this, null, _handleStatusChange_decorators, { kind: \"method\", name: \"handleStatusChange\", static: false, private: false, access: { has: obj => \"handleStatusChange\" in obj, get: obj => obj.handleStatusChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleItemsChange_decorators, { kind: \"method\", name: \"handleItemsChange\", static: false, private: false, access: { has: obj => \"handleItemsChange\" in obj, get: obj => obj.handleItemsChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitItemChange_decorators, { kind: \"method\", name: \"emitItemChange\", static: false, private: false, access: { has: obj => \"emitItemChange\" in obj, get: obj => obj.emitItemChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitStatusChange_decorators, { kind: \"method\", name: \"emitStatusChange\", static: false, private: false, access: { has: obj => \"emitStatusChange\" in obj, get: obj => obj.emitStatusChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _renderContent_decorators, { kind: \"method\", name: \"renderContent\", static: false, private: false, access: { has: obj => \"renderContent\" in obj, get: obj => obj.renderContent }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _componentStyles_decorators, { kind: \"method\", name: \"componentStyles\", static: false, private: false, access: { has: obj => \"componentStyles\" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _invoiceNumber_decorators, { kind: \"field\", name: \"invoiceNumber\", static: false, private: false, access: { has: obj => \"invoiceNumber\" in obj, get: obj => obj.invoiceNumber, set: (obj, value) => { obj.invoiceNumber = value; } }, metadata: _metadata }, _invoiceNumber_initializers, _invoiceNumber_extraInitializers);\n __esDecorate(null, null, _date_decorators, { kind: \"field\", name: \"date\", static: false, private: false, access: { has: obj => \"date\" in obj, get: obj => obj.date, set: (obj, value) => { obj.date = value; } }, metadata: _metadata }, _date_initializers, _date_extraInitializers);\n __esDecorate(null, null, _dueDate_decorators, { kind: \"field\", name: \"dueDate\", static: false, private: false, access: { has: obj => \"dueDate\" in obj, get: obj => obj.dueDate, set: (obj, value) => { obj.dueDate = value; } }, metadata: _metadata }, _dueDate_initializers, _dueDate_extraInitializers);\n __esDecorate(null, null, _status_decorators, { kind: \"field\", name: \"status\", static: false, private: false, access: { has: obj => \"status\" in obj, get: obj => obj.status, set: (obj, value) => { obj.status = value; } }, metadata: _metadata }, _status_initializers, _status_extraInitializers);\n __esDecorate(null, null, _currency_decorators, { kind: \"field\", name: \"currency\", static: false, private: false, access: { has: obj => \"currency\" in obj, get: obj => obj.currency, set: (obj, value) => { obj.currency = value; } }, metadata: _metadata }, _currency_initializers, _currency_extraInitializers);\n __esDecorate(null, null, _taxRate_decorators, { kind: \"field\", name: \"taxRate\", static: false, private: false, access: { has: obj => \"taxRate\" in obj, get: obj => obj.taxRate, set: (obj, value) => { obj.taxRate = value; } }, metadata: _metadata }, _taxRate_initializers, _taxRate_extraInitializers);\n __esDecorate(null, null, _discount_decorators, { kind: \"field\", name: \"discount\", static: false, private: false, access: { has: obj => \"discount\" in obj, get: obj => obj.discount, set: (obj, value) => { obj.discount = value; } }, metadata: _metadata }, _discount_initializers, _discount_extraInitializers);\n __esDecorate(null, null, _from_decorators, { kind: \"field\", name: \"from\", static: false, private: false, access: { has: obj => \"from\" in obj, get: obj => obj.from, set: (obj, value) => { obj.from = value; } }, metadata: _metadata }, _from_initializers, _from_extraInitializers);\n __esDecorate(null, null, _to_decorators, { kind: \"field\", name: \"to\", static: false, private: false, access: { has: obj => \"to\" in obj, get: obj => obj.to, set: (obj, value) => { obj.to = value; } }, metadata: _metadata }, _to_initializers, _to_extraInitializers);\n __esDecorate(null, null, _items_decorators, { kind: \"field\", name: \"items\", static: false, private: false, access: { has: obj => \"items\" in obj, get: obj => obj.items, set: (obj, value) => { obj.items = value; } }, metadata: _metadata }, _items_initializers, _items_extraInitializers);\n __esDecorate(null, null, _notes_decorators, { kind: \"field\", name: \"notes\", static: false, private: false, access: { has: obj => \"notes\" in obj, get: obj => obj.notes, set: (obj, value) => { obj.notes = value; } }, metadata: _metadata }, _notes_initializers, _notes_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, _showQr_decorators, { kind: \"field\", name: \"showQr\", static: false, private: false, access: { has: obj => \"showQr\" in obj, get: obj => obj.showQr, set: (obj, value) => { obj.showQr = value; } }, metadata: _metadata }, _showQr_initializers, _showQr_extraInitializers);\n __esDecorate(null, null, _qrData_decorators, { kind: \"field\", name: \"qrData\", static: false, private: false, access: { has: obj => \"qrData\" in obj, get: obj => obj.qrData, set: (obj, value) => { obj.qrData = value; } }, metadata: _metadata }, _qrData_initializers, _qrData_extraInitializers);\n __esDecorate(null, null, _qrPosition_decorators, { kind: \"field\", name: \"qrPosition\", static: false, private: false, access: { has: obj => \"qrPosition\" in obj, get: obj => obj.qrPosition, set: (obj, value) => { obj.qrPosition = value; } }, metadata: _metadata }, _qrPosition_initializers, _qrPosition_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 handleStatusChange(oldVal, newVal) {\n if (oldVal && oldVal !== newVal) {\n this.emitStatusChange({ oldStatus: oldVal, newStatus: newVal });\n }\n }\n handleItemsChange() {\n this.emitItemChange({\n items: this.items,\n subtotal: this.getSubtotal(),\n tax: this.getTaxAmount(),\n total: this.getTotal()\n });\n }\n emitItemChange(detail) {\n return detail;\n }\n emitStatusChange(detail) {\n return detail;\n }\n getItemAmount(item) {\n if (item.amount !== undefined)\n return item.amount;\n return item.quantity * item.unitPrice;\n }\n getSubtotal() {\n return this.items.reduce((sum, item) => sum + this.getItemAmount(item), 0);\n }\n getTaxAmount() {\n const subtotal = this.getSubtotal();\n const afterDiscount = subtotal - this.getDiscountAmount();\n return afterDiscount * (this.taxRate / 100);\n }\n getDiscountAmount() {\n return this.getSubtotal() * (this.discount / 100);\n }\n getTotal() {\n const subtotal = this.getSubtotal();\n const discountAmt = this.getDiscountAmount();\n const taxAmt = (subtotal - discountAmt) * (this.taxRate / 100);\n return subtotal - discountAmt + taxAmt;\n }\n formatCurrency(amount) {\n try {\n return new Intl.NumberFormat(undefined, {\n style: 'currency',\n currency: this.currency\n }).format(amount);\n }\n catch {\n return `${this.currency} ${amount.toFixed(2)}`;\n }\n }\n print() {\n window.print();\n }\n toJSON() {\n return {\n invoiceNumber: this.invoiceNumber,\n date: this.date,\n dueDate: this.dueDate,\n status: this.status,\n currency: this.currency,\n taxRate: this.taxRate,\n discount: this.discount,\n from: { ...this.from },\n to: { ...this.to },\n items: this.items.map(i => ({ ...i })),\n notes: this.notes,\n variant: this.variant,\n showQr: this.showQr,\n qrData: this.qrData,\n qrPosition: this.qrPosition,\n subtotal: this.getSubtotal(),\n tax: this.getTaxAmount(),\n discount_amount: this.getDiscountAmount(),\n total: this.getTotal()\n };\n }\n renderParty(label, party) {\n const hasContent = party.name || party.address || party.email || party.phone;\n if (!hasContent)\n return html ``;\n return html /*html*/ `\n <div class=\"invoice__party\" part=\"party\">\n <div class=\"invoice__party-label\" part=\"party-label\">${label}</div>\n <if ${party.name}>\n <div class=\"invoice__party-name\" part=\"party-name\">${party.name}</div>\n </if>\n <if ${party.address}>\n <div class=\"invoice__party-detail\" part=\"party-detail\">${party.address}</div>\n </if>\n <if ${party.email}>\n <div class=\"invoice__party-detail\" part=\"party-detail\">${party.email}</div>\n </if>\n <if ${party.phone}>\n <div class=\"invoice__party-detail\" part=\"party-detail\">${party.phone}</div>\n </if>\n </div>\n `;\n }\n renderItemRow(item, index) {\n const amount = this.getItemAmount(item);\n const hasItemTax = item.tax !== undefined;\n return html /*html*/ `\n <tr part=\"table-row\">\n <td class=\"invoice__col-line\" part=\"table-cell\">\n <span class=\"invoice__item-line-num\">${index + 1}</span>\n </td>\n <td part=\"table-cell\">\n ${item.description}\n <if ${hasItemTax}>\n <span class=\"invoice__item-tax\">Tax: ${item.tax}%</span>\n </if>\n </td>\n <td class=\"invoice__col-qty\" part=\"table-cell\">${item.quantity}</td>\n <td class=\"invoice__col-price\" part=\"table-cell\">${this.formatCurrency(item.unitPrice)}</td>\n <td part=\"table-cell\">${this.formatCurrency(amount)}</td>\n </tr>\n `;\n }\n renderQr(position) {\n if (!this.showQr)\n return html ``;\n return html /*html*/ `\n <div class=\"invoice__qr invoice__qr--${position}\" part=\"qr-container\">\n <div part=\"qr\">\n <slot name=\"qr\">\n <div class=\"invoice__qr-placeholder\">QR</div>\n </slot>\n </div>\n </div>\n `;\n }\n renderContent() {\n const subtotal = this.getSubtotal();\n const discountAmt = this.getDiscountAmount();\n const taxAmt = this.getTaxAmount();\n const total = this.getTotal();\n const hasDiscount = this.discount > 0;\n const hasTax = this.taxRate > 0;\n const hasFrom = this.from.name || this.from.address;\n const hasTo = this.to.name || this.to.address;\n const hasParties = hasFrom || hasTo;\n const isDetailed = this.variant === 'detailed';\n const isQrTopRight = this.showQr && this.qrPosition === 'top-right';\n const isQrBottomRight = this.showQr && this.qrPosition === 'bottom-right';\n const isQrBottomLeft = this.showQr && this.qrPosition === 'bottom-left';\n const isQrFooter = this.showQr && this.qrPosition === 'footer';\n return html /*html*/ `\n <div class=\"invoice\" part=\"base\">\n <div class=\"invoice__header\" part=\"header\">\n <div class=\"invoice__header-left\">\n <if ${this.from.logo}>\n <img class=\"invoice__logo\" src=\"${this.from.logo}\" alt=\"${this.from.name}\" part=\"logo\" />\n </if>\n <h2 class=\"invoice__title\" part=\"title\">Invoice</h2>\n <span class=\"invoice__status invoice__status--${this.status}\" part=\"status\">${this.status}</span>\n </div>\n <div class=\"invoice__meta\" part=\"meta\">\n <if ${this.invoiceNumber}>\n <div>\n <span class=\"invoice__meta-label\">Invoice # </span>\n <span class=\"invoice__meta-value\">${this.invoiceNumber}</span>\n </div>\n </if>\n <if ${this.date}>\n <div>\n <span class=\"invoice__meta-label\">Date: </span>\n <span class=\"invoice__meta-value\">${this.date}</span>\n </div>\n </if>\n <if ${this.dueDate}>\n <div>\n <span class=\"invoice__meta-label\">Due Date: </span>\n <span class=\"invoice__meta-value\">${this.dueDate}</span>\n </div>\n </if>\n </div>\n <if ${isQrTopRight}>\n ${this.renderQr('top-right')}\n </if>\n </div>\n\n <if ${hasParties}>\n <div class=\"invoice__parties\" part=\"parties\">\n ${this.renderParty('From', this.from)}\n ${this.renderParty('Bill To', this.to)}\n </div>\n </if>\n\n <if ${this.items.length > 0}>\n <table class=\"invoice__table\" part=\"table\">\n <thead part=\"table-header\">\n <tr>\n <if ${isDetailed}>\n <th class=\"invoice__col-line\">#</th>\n </if>\n <th>Description</th>\n <th class=\"invoice__col-qty\">Qty</th>\n <th class=\"invoice__col-price\">Unit Price</th>\n <th>Amount</th>\n </tr>\n </thead>\n <tbody>\n ${this.items.map((item, i) => this.renderItemRow(item, i))}\n </tbody>\n </table>\n </if>\n\n <div class=\"invoice__summary\" part=\"summary\">\n <div class=\"invoice__summary-table\">\n <div class=\"invoice__summary-row\" part=\"summary-row\">\n <span part=\"summary-label\">Subtotal</span>\n <span part=\"summary-value\">${this.formatCurrency(subtotal)}</span>\n </div>\n <if ${hasDiscount}>\n <div class=\"invoice__summary-row invoice__summary-row--discount\" part=\"discount-row\">\n <span part=\"summary-label\">Discount (${this.discount}%)</span>\n <span part=\"summary-value\">-${this.formatCurrency(discountAmt)}</span>\n </div>\n </if>\n <if ${hasTax}>\n <div class=\"invoice__summary-row\" part=\"tax-row\">\n <span part=\"summary-label\">Tax (${this.taxRate}%)</span>\n <span part=\"summary-value\">${this.formatCurrency(taxAmt)}</span>\n </div>\n </if>\n <div class=\"invoice__summary-row invoice__summary-row--total\" part=\"total\">\n <span part=\"summary-label\">Total</span>\n <span part=\"summary-value\">${this.formatCurrency(total)}</span>\n </div>\n </div>\n </div>\n\n <if ${this.notes}>\n <div class=\"invoice__notes\" part=\"notes\">\n <div class=\"invoice__notes-label\" part=\"notes-label\">Notes</div>\n <div part=\"notes-content\">${this.notes}</div>\n </div>\n </if>\n\n <if ${isQrBottomRight}>\n ${this.renderQr('bottom-right')}\n </if>\n <if ${isQrBottomLeft}>\n ${this.renderQr('bottom-left')}\n </if>\n <if ${isQrFooter}>\n ${this.renderQr('footer')}\n </if>\n\n <div class=\"invoice__footer\" part=\"footer\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n componentStyles() {\n return css /*css*/ `${cssContent}`;\n }\n constructor() {\n super(...arguments);\n this.invoiceNumber = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _invoiceNumber_initializers, ''));\n this.date = (__runInitializers(this, _invoiceNumber_extraInitializers), __runInitializers(this, _date_initializers, ''));\n this.dueDate = (__runInitializers(this, _date_extraInitializers), __runInitializers(this, _dueDate_initializers, ''));\n this.status = (__runInitializers(this, _dueDate_extraInitializers), __runInitializers(this, _status_initializers, 'draft'));\n this.currency = (__runInitializers(this, _status_extraInitializers), __runInitializers(this, _currency_initializers, 'USD'));\n this.taxRate = (__runInitializers(this, _currency_extraInitializers), __runInitializers(this, _taxRate_initializers, 0));\n this.discount = (__runInitializers(this, _taxRate_extraInitializers), __runInitializers(this, _discount_initializers, 0));\n this.from = (__runInitializers(this, _discount_extraInitializers), __runInitializers(this, _from_initializers, { name: '' }));\n this.to = (__runInitializers(this, _from_extraInitializers), __runInitializers(this, _to_initializers, { name: '' }));\n this.items = (__runInitializers(this, _to_extraInitializers), __runInitializers(this, _items_initializers, []));\n this.notes = (__runInitializers(this, _items_extraInitializers), __runInitializers(this, _notes_initializers, ''));\n this.variant = (__runInitializers(this, _notes_extraInitializers), __runInitializers(this, _variant_initializers, 'standard'));\n this.showQr = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _showQr_initializers, false));\n this.qrData = (__runInitializers(this, _showQr_extraInitializers), __runInitializers(this, _qrData_initializers, ''));\n this.qrPosition = (__runInitializers(this, _qrData_extraInitializers), __runInitializers(this, _qrPosition_initializers, 'bottom-right'));\n __runInitializers(this, _qrPosition_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SniceInvoice };\n//# sourceMappingURL=snice-invoice.js.map\n"],"names":["element","property","watch","dispatch","render","styles","html","css"],"mappings":";;;;;;;;;;EAAA;EACA;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;EAmDO,SAAS,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE;EACzG,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,MAAM,IAAI,OAAO,CAAC,KAAK,UAAU,EAAE,MAAM,IAAI,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;EACxH,EAAE,IAAI,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,KAAK,QAAQ,GAAG,KAAK,GAAG,IAAI,KAAK,QAAQ,GAAG,KAAK,GAAG,OAAO;EAClG,EAAE,IAAI,MAAM,GAAG,CAAC,YAAY,IAAI,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI;EACzF,EAAE,IAAI,UAAU,GAAG,YAAY,KAAK,MAAM,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;EAC1G,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,KAAK;EACrB,EAAE,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;EACnD,MAAM,IAAI,OAAO,GAAG,EAAE;EACtB,MAAM,KAAK,IAAI,CAAC,IAAI,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK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BAAwB,EAAE,cAAc,CAAC,CAAC;EACrJ,YAAY,iBAAiB,CAAC,IAAI,EAAE,6BAA6B,CAAC;EAClE,QAAQ;EACR,KAAK;EACL,IAAI,OAAO,UAAU;EACrB,CAAC;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * snice v5.2.3
2
+ * snice v6.0.0
3
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-invoice.min.js");var SniceInvoice=function(i,e){"use strict";function t(i,e,t,a,n,o){function r(i){if(void 0!==i&&"function"!=typeof i)throw new TypeError("Function expected");return i}for(var s,c=a.kind,v="getter"===c?"get":"setter"===c?"set":"value",l=!e&&i?a.static?i:i.prototype:null,d=e||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),m=!1,h=t.length-1;h>=0;h--){var p={};for(var b in a)p[b]="access"===b?{}:a[b];for(var b in a.access)p.access[b]=a.access[b];p.addInitializer=function(i){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(i||null))};var u=(0,t[h])("accessor"===c?{get:d.get,set:d.set}:d[v],p);if("accessor"===c){if(void 0===u)continue;if(null===u||"object"!=typeof u)throw new TypeError("Object expected");(s=r(u.get))&&(d.get=s),(s=r(u.set))&&(d.set=s),(s=r(u.init))&&n.unshift(s)}else(s=r(u))&&("field"===c?n.unshift(s):d[v]=s)}l&&Object.defineProperty(l,a.name,d),m=!0}function a(i,e,t){for(var a=arguments.length>2,n=0;n<e.length;n++)t=a?e[n].call(i,t):e[n].call(i);return a?t:void 0}"function"==typeof SuppressedError&&SuppressedError;let n=(()=>{let i,n,o,r,s,c,v,l,d,m,h,p,b,u,g,_,f,y,x,w,k,z,$,q=[e.element("snice-invoice")],S=[],C=HTMLElement,D=[],I=[],P=[],Q=[],T=[],R=[],j=[],A=[],N=[],O=[],E=[],F=[],B=[],U=[],H=[],L=[],M=[],G=[],J=[],K=[],V=[],W=[],X=[],Y=[],Z=[],ii=[],ei=[],ti=[],ai=[],ni=[],oi=[];return class extends C{static{n=this}static{const ri="function"==typeof Symbol&&Symbol.metadata?Object.create(C[Symbol.metadata]??null):void 0;o=[e.property()],r=[e.property()],s=[e.property()],c=[e.property()],v=[e.property()],l=[e.property({type:Number})],d=[e.property({type:Number})],m=[e.property({type:Object,attribute:!1})],h=[e.property({type:Object,attribute:!1})],p=[e.property({type:Array,attribute:!1})],b=[e.property()],u=[e.property()],g=[e.property({type:Boolean})],_=[e.property()],f=[e.property()],y=[e.watch("status")],x=[e.watch("items")],w=[e.dispatch("invoice-item-change",{bubbles:!0,composed:!0})],k=[e.dispatch("invoice-status-change",{bubbles:!0,composed:!0})],z=[e.render()],$=[e.styles()],t(this,null,y,{kind:"method",name:"handleStatusChange",static:!1,private:!1,access:{has:i=>"handleStatusChange"in i,get:i=>i.handleStatusChange},metadata:ri},null,D),t(this,null,x,{kind:"method",name:"handleItemsChange",static:!1,private:!1,access:{has:i=>"handleItemsChange"in i,get:i=>i.handleItemsChange},metadata:ri},null,D),t(this,null,w,{kind:"method",name:"emitItemChange",static:!1,private:!1,access:{has:i=>"emitItemChange"in i,get:i=>i.emitItemChange},metadata:ri},null,D),t(this,null,k,{kind:"method",name:"emitStatusChange",static:!1,private:!1,access:{has:i=>"emitStatusChange"in i,get:i=>i.emitStatusChange},metadata:ri},null,D),t(this,null,z,{kind:"method",name:"renderContent",static:!1,private:!1,access:{has:i=>"renderContent"in i,get:i=>i.renderContent},metadata:ri},null,D),t(this,null,$,{kind:"method",name:"componentStyles",static:!1,private:!1,access:{has:i=>"componentStyles"in i,get:i=>i.componentStyles},metadata:ri},null,D),t(null,null,o,{kind:"field",name:"invoiceNumber",static:!1,private:!1,access:{has:i=>"invoiceNumber"in i,get:i=>i.invoiceNumber,set:(i,e)=>{i.invoiceNumber=e}},metadata:ri},I,P),t(null,null,r,{kind:"field",name:"date",static:!1,private:!1,access:{has:i=>"date"in i,get:i=>i.date,set:(i,e)=>{i.date=e}},metadata:ri},Q,T),t(null,null,s,{kind:"field",name:"dueDate",static:!1,private:!1,access:{has:i=>"dueDate"in i,get:i=>i.dueDate,set:(i,e)=>{i.dueDate=e}},metadata:ri},R,j),t(null,null,c,{kind:"field",name:"status",static:!1,private:!1,access:{has:i=>"status"in i,get:i=>i.status,set:(i,e)=>{i.status=e}},metadata:ri},A,N),t(null,null,v,{kind:"field",name:"currency",static:!1,private:!1,access:{has:i=>"currency"in i,get:i=>i.currency,set:(i,e)=>{i.currency=e}},metadata:ri},O,E),t(null,null,l,{kind:"field",name:"taxRate",static:!1,private:!1,access:{has:i=>"taxRate"in i,get:i=>i.taxRate,set:(i,e)=>{i.taxRate=e}},metadata:ri},F,B),t(null,null,d,{kind:"field",name:"discount",static:!1,private:!1,access:{has:i=>"discount"in i,get:i=>i.discount,set:(i,e)=>{i.discount=e}},metadata:ri},U,H),t(null,null,m,{kind:"field",name:"from",static:!1,private:!1,access:{has:i=>"from"in i,get:i=>i.from,set:(i,e)=>{i.from=e}},metadata:ri},L,M),t(null,null,h,{kind:"field",name:"to",static:!1,private:!1,access:{has:i=>"to"in i,get:i=>i.to,set:(i,e)=>{i.to=e}},metadata:ri},G,J),t(null,null,p,{kind:"field",name:"items",static:!1,private:!1,access:{has:i=>"items"in i,get:i=>i.items,set:(i,e)=>{i.items=e}},metadata:ri},K,V),t(null,null,b,{kind:"field",name:"notes",static:!1,private:!1,access:{has:i=>"notes"in i,get:i=>i.notes,set:(i,e)=>{i.notes=e}},metadata:ri},W,X),t(null,null,u,{kind:"field",name:"variant",static:!1,private:!1,access:{has:i=>"variant"in i,get:i=>i.variant,set:(i,e)=>{i.variant=e}},metadata:ri},Y,Z),t(null,null,g,{kind:"field",name:"showQr",static:!1,private:!1,access:{has:i=>"showQr"in i,get:i=>i.showQr,set:(i,e)=>{i.showQr=e}},metadata:ri},ii,ei),t(null,null,_,{kind:"field",name:"qrData",static:!1,private:!1,access:{has:i=>"qrData"in i,get:i=>i.qrData,set:(i,e)=>{i.qrData=e}},metadata:ri},ti,ai),t(null,null,f,{kind:"field",name:"qrPosition",static:!1,private:!1,access:{has:i=>"qrPosition"in i,get:i=>i.qrPosition,set:(i,e)=>{i.qrPosition=e}},metadata:ri},ni,oi),t(null,i={value:n},q,{kind:"class",name:n.name,metadata:ri},null,S),n=i.value,ri&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ri}),a(n,S)}handleStatusChange(i,e){i&&i!==e&&this.emitStatusChange({oldStatus:i,newStatus:e})}handleItemsChange(){this.emitItemChange({items:this.items,subtotal:this.getSubtotal(),tax:this.getTaxAmount(),total:this.getTotal()})}emitItemChange(i){return i}emitStatusChange(i){return i}getItemAmount(i){return void 0!==i.amount?i.amount:i.quantity*i.unitPrice}getSubtotal(){return this.items.reduce((i,e)=>i+this.getItemAmount(e),0)}getTaxAmount(){return(this.getSubtotal()-this.getDiscountAmount())*(this.taxRate/100)}getDiscountAmount(){return this.getSubtotal()*(this.discount/100)}getTotal(){const i=this.getSubtotal(),e=this.getDiscountAmount();return i-e+(i-e)*(this.taxRate/100)}formatCurrency(i){try{return new Intl.NumberFormat(void 0,{style:"currency",currency:this.currency}).format(i)}catch{return`${this.currency} ${i.toFixed(2)}`}}print(){window.print()}toJSON(){return{invoiceNumber:this.invoiceNumber,date:this.date,dueDate:this.dueDate,status:this.status,currency:this.currency,taxRate:this.taxRate,discount:this.discount,from:{...this.from},to:{...this.to},items:this.items.map(i=>({...i})),notes:this.notes,variant:this.variant,showQr:this.showQr,qrData:this.qrData,qrPosition:this.qrPosition,subtotal:this.getSubtotal(),tax:this.getTaxAmount(),discount_amount:this.getDiscountAmount(),total:this.getTotal()}}renderParty(i,t){return t.name||t.address||t.email||t.phone?e.html`
7
+ void 0===globalThis.Snice&&console.warn("[snice] snice-runtime.min.js must be loaded before snice-invoice.min.js");var SniceInvoice=function(i,e){"use strict";function t(i,e,t,a,n,o){function r(i){if(void 0!==i&&"function"!=typeof i)throw new TypeError("Function expected");return i}for(var s,c=a.kind,v="getter"===c?"get":"setter"===c?"set":"value",l=!e&&i?a.static?i:i.prototype:null,d=e||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),m=!1,h=t.length-1;h>=0;h--){var p={};for(var b in a)p[b]="access"===b?{}:a[b];for(var b in a.access)p.access[b]=a.access[b];p.addInitializer=function(i){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(i||null))};var u=(0,t[h])("accessor"===c?{get:d.get,set:d.set}:d[v],p);if("accessor"===c){if(void 0===u)continue;if(null===u||"object"!=typeof u)throw new TypeError("Object expected");(s=r(u.get))&&(d.get=s),(s=r(u.set))&&(d.set=s),(s=r(u.init))&&n.unshift(s)}else(s=r(u))&&("field"===c?n.unshift(s):d[v]=s)}l&&Object.defineProperty(l,a.name,d),m=!0}function a(i,e,t){for(var a=arguments.length>2,n=0;n<e.length;n++)t=a?e[n].call(i,t):e[n].call(i);return a?t:void 0}"function"==typeof SuppressedError&&SuppressedError;let n=(()=>{let i,n,o,r,s,c,v,l,d,m,h,p,b,u,g,_,f,y,x,w,k,z,$,q=[e.element("snice-invoice")],S=[],C=HTMLElement,D=[],I=[],P=[],Q=[],T=[],R=[],j=[],A=[],N=[],O=[],E=[],F=[],B=[],U=[],H=[],L=[],M=[],G=[],J=[],K=[],V=[],W=[],X=[],Y=[],Z=[],ii=[],ei=[],ti=[],ai=[],ni=[],oi=[];return class extends C{static{n=this}static{const ri="function"==typeof Symbol&&Symbol.metadata?Object.create(C[Symbol.metadata]??null):void 0;o=[e.property()],r=[e.property()],s=[e.property()],c=[e.property()],v=[e.property()],l=[e.property({type:Number})],d=[e.property({type:Number})],m=[e.property({type:Object,attribute:!1})],h=[e.property({type:Object,attribute:!1})],p=[e.property({type:Array,attribute:!1})],b=[e.property()],u=[e.property()],g=[e.property({type:Boolean})],_=[e.property()],f=[e.property()],y=[e.watch("status")],x=[e.watch("items",{immediate:!1})],w=[e.dispatch("invoice-item-change",{bubbles:!0,composed:!0})],k=[e.dispatch("invoice-status-change",{bubbles:!0,composed:!0})],z=[e.render()],$=[e.styles()],t(this,null,y,{kind:"method",name:"handleStatusChange",static:!1,private:!1,access:{has:i=>"handleStatusChange"in i,get:i=>i.handleStatusChange},metadata:ri},null,D),t(this,null,x,{kind:"method",name:"handleItemsChange",static:!1,private:!1,access:{has:i=>"handleItemsChange"in i,get:i=>i.handleItemsChange},metadata:ri},null,D),t(this,null,w,{kind:"method",name:"emitItemChange",static:!1,private:!1,access:{has:i=>"emitItemChange"in i,get:i=>i.emitItemChange},metadata:ri},null,D),t(this,null,k,{kind:"method",name:"emitStatusChange",static:!1,private:!1,access:{has:i=>"emitStatusChange"in i,get:i=>i.emitStatusChange},metadata:ri},null,D),t(this,null,z,{kind:"method",name:"renderContent",static:!1,private:!1,access:{has:i=>"renderContent"in i,get:i=>i.renderContent},metadata:ri},null,D),t(this,null,$,{kind:"method",name:"componentStyles",static:!1,private:!1,access:{has:i=>"componentStyles"in i,get:i=>i.componentStyles},metadata:ri},null,D),t(null,null,o,{kind:"field",name:"invoiceNumber",static:!1,private:!1,access:{has:i=>"invoiceNumber"in i,get:i=>i.invoiceNumber,set:(i,e)=>{i.invoiceNumber=e}},metadata:ri},I,P),t(null,null,r,{kind:"field",name:"date",static:!1,private:!1,access:{has:i=>"date"in i,get:i=>i.date,set:(i,e)=>{i.date=e}},metadata:ri},Q,T),t(null,null,s,{kind:"field",name:"dueDate",static:!1,private:!1,access:{has:i=>"dueDate"in i,get:i=>i.dueDate,set:(i,e)=>{i.dueDate=e}},metadata:ri},R,j),t(null,null,c,{kind:"field",name:"status",static:!1,private:!1,access:{has:i=>"status"in i,get:i=>i.status,set:(i,e)=>{i.status=e}},metadata:ri},A,N),t(null,null,v,{kind:"field",name:"currency",static:!1,private:!1,access:{has:i=>"currency"in i,get:i=>i.currency,set:(i,e)=>{i.currency=e}},metadata:ri},O,E),t(null,null,l,{kind:"field",name:"taxRate",static:!1,private:!1,access:{has:i=>"taxRate"in i,get:i=>i.taxRate,set:(i,e)=>{i.taxRate=e}},metadata:ri},F,B),t(null,null,d,{kind:"field",name:"discount",static:!1,private:!1,access:{has:i=>"discount"in i,get:i=>i.discount,set:(i,e)=>{i.discount=e}},metadata:ri},U,H),t(null,null,m,{kind:"field",name:"from",static:!1,private:!1,access:{has:i=>"from"in i,get:i=>i.from,set:(i,e)=>{i.from=e}},metadata:ri},L,M),t(null,null,h,{kind:"field",name:"to",static:!1,private:!1,access:{has:i=>"to"in i,get:i=>i.to,set:(i,e)=>{i.to=e}},metadata:ri},G,J),t(null,null,p,{kind:"field",name:"items",static:!1,private:!1,access:{has:i=>"items"in i,get:i=>i.items,set:(i,e)=>{i.items=e}},metadata:ri},K,V),t(null,null,b,{kind:"field",name:"notes",static:!1,private:!1,access:{has:i=>"notes"in i,get:i=>i.notes,set:(i,e)=>{i.notes=e}},metadata:ri},W,X),t(null,null,u,{kind:"field",name:"variant",static:!1,private:!1,access:{has:i=>"variant"in i,get:i=>i.variant,set:(i,e)=>{i.variant=e}},metadata:ri},Y,Z),t(null,null,g,{kind:"field",name:"showQr",static:!1,private:!1,access:{has:i=>"showQr"in i,get:i=>i.showQr,set:(i,e)=>{i.showQr=e}},metadata:ri},ii,ei),t(null,null,_,{kind:"field",name:"qrData",static:!1,private:!1,access:{has:i=>"qrData"in i,get:i=>i.qrData,set:(i,e)=>{i.qrData=e}},metadata:ri},ti,ai),t(null,null,f,{kind:"field",name:"qrPosition",static:!1,private:!1,access:{has:i=>"qrPosition"in i,get:i=>i.qrPosition,set:(i,e)=>{i.qrPosition=e}},metadata:ri},ni,oi),t(null,i={value:n},q,{kind:"class",name:n.name,metadata:ri},null,S),n=i.value,ri&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ri}),a(n,S)}handleStatusChange(i,e){i&&i!==e&&this.emitStatusChange({oldStatus:i,newStatus:e})}handleItemsChange(){this.emitItemChange({items:this.items,subtotal:this.getSubtotal(),tax:this.getTaxAmount(),total:this.getTotal()})}emitItemChange(i){return i}emitStatusChange(i){return i}getItemAmount(i){return void 0!==i.amount?i.amount:i.quantity*i.unitPrice}getSubtotal(){return this.items.reduce((i,e)=>i+this.getItemAmount(e),0)}getTaxAmount(){return(this.getSubtotal()-this.getDiscountAmount())*(this.taxRate/100)}getDiscountAmount(){return this.getSubtotal()*(this.discount/100)}getTotal(){const i=this.getSubtotal(),e=this.getDiscountAmount();return i-e+(i-e)*(this.taxRate/100)}formatCurrency(i){try{return new Intl.NumberFormat(void 0,{style:"currency",currency:this.currency}).format(i)}catch{return`${this.currency} ${i.toFixed(2)}`}}print(){window.print()}toJSON(){return{invoiceNumber:this.invoiceNumber,date:this.date,dueDate:this.dueDate,status:this.status,currency:this.currency,taxRate:this.taxRate,discount:this.discount,from:{...this.from},to:{...this.to},items:this.items.map(i=>({...i})),notes:this.notes,variant:this.variant,showQr:this.showQr,qrData:this.qrData,qrPosition:this.qrPosition,subtotal:this.getSubtotal(),tax:this.getTaxAmount(),discount_amount:this.getDiscountAmount(),total:this.getTotal()}}renderParty(i,t){return t.name||t.address||t.email||t.phone?e.html`
8
8
  <div class="invoice__party" part="party">
9
9
  <div class="invoice__party-label" part="party-label">${i}</div>
10
10
  <if ${t.name}>