snice 5.2.0 → 5.2.1
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.
- package/adapters/react/SniceProvider.js +1 -1
- package/adapters/react/SniceRouter.js +1 -1
- package/adapters/react/matchRoute.js +1 -1
- package/adapters/react/useRequestHandler.js +1 -1
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/accordion/snice-accordion.min.js +1 -1
- package/dist/cdn/action-bar/snice-action-bar.js +1 -1
- package/dist/cdn/action-bar/snice-action-bar.min.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.min.js +1 -1
- package/dist/cdn/alert/snice-alert.js +1 -1
- package/dist/cdn/alert/snice-alert.min.js +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.js +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.min.js +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
- package/dist/cdn/availability/snice-availability.js +1 -1
- package/dist/cdn/availability/snice-availability.min.js +1 -1
- package/dist/cdn/avatar/snice-avatar.js +1 -1
- package/dist/cdn/avatar/snice-avatar.min.js +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.js +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.min.js +1 -1
- package/dist/cdn/badge/snice-badge.js +1 -1
- package/dist/cdn/badge/snice-badge.min.js +1 -1
- package/dist/cdn/banner/snice-banner.js +1 -1
- package/dist/cdn/banner/snice-banner.min.js +1 -1
- package/dist/cdn/binpack/snice-binpack.js +1 -1
- package/dist/cdn/binpack/snice-binpack.min.js +1 -1
- package/dist/cdn/book/snice-book.js +1 -1
- package/dist/cdn/book/snice-book.min.js +1 -1
- package/dist/cdn/booking/snice-booking.js +1 -1
- package/dist/cdn/booking/snice-booking.min.js +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
- package/dist/cdn/button/snice-button.js +1 -1
- package/dist/cdn/button/snice-button.min.js +1 -1
- package/dist/cdn/calendar/snice-calendar.js +1 -1
- package/dist/cdn/calendar/snice-calendar.min.js +1 -1
- package/dist/cdn/camera/snice-camera.js +1 -1
- package/dist/cdn/camera/snice-camera.min.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
- package/dist/cdn/card/snice-card.js +1 -1
- package/dist/cdn/card/snice-card.min.js +1 -1
- package/dist/cdn/carousel/snice-carousel.js +1 -1
- package/dist/cdn/carousel/snice-carousel.min.js +1 -1
- package/dist/cdn/cart/snice-cart.js +1 -1
- package/dist/cdn/cart/snice-cart.min.js +1 -1
- package/dist/cdn/chart/snice-chart.js +1 -1
- package/dist/cdn/chart/snice-chart.min.js +1 -1
- package/dist/cdn/chat/README.md +1 -1
- package/dist/cdn/chat/snice-chat.js +3 -3
- package/dist/cdn/chat/snice-chat.js.map +1 -1
- package/dist/cdn/chat/snice-chat.min.js +3 -3
- package/dist/cdn/chat/snice-chat.min.js.map +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
- package/dist/cdn/chip/snice-chip.js +1 -1
- package/dist/cdn/chip/snice-chip.min.js +1 -1
- package/dist/cdn/code-block/snice-code-block.js +1 -1
- package/dist/cdn/code-block/snice-code-block.min.js +1 -1
- package/dist/cdn/color-display/snice-color-display.js +1 -1
- package/dist/cdn/color-display/snice-color-display.min.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.min.js +1 -1
- package/dist/cdn/comments/snice-comments.js +1 -1
- package/dist/cdn/comments/snice-comments.min.js +1 -1
- package/dist/cdn/countdown/snice-countdown.js +1 -1
- package/dist/cdn/countdown/snice-countdown.min.js +1 -1
- package/dist/cdn/cropper/snice-cropper.js +1 -1
- package/dist/cdn/cropper/snice-cropper.min.js +1 -1
- package/dist/cdn/data-card/snice-data-card.js +1 -1
- package/dist/cdn/data-card/snice-data-card.min.js +1 -1
- package/dist/cdn/date-picker/snice-date-picker.js +1 -1
- package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
- package/dist/cdn/date-range-picker/snice-date-range-picker.js +1 -1
- package/dist/cdn/date-range-picker/snice-date-range-picker.min.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +1 -1
- package/dist/cdn/diff/snice-diff.js +1 -1
- package/dist/cdn/diff/snice-diff.min.js +1 -1
- package/dist/cdn/divider/snice-divider.js +1 -1
- package/dist/cdn/divider/snice-divider.min.js +1 -1
- package/dist/cdn/doc/snice-doc.js +1 -1
- package/dist/cdn/doc/snice-doc.min.js +1 -1
- package/dist/cdn/draw/snice-draw.js +1 -1
- package/dist/cdn/draw/snice-draw.min.js +1 -1
- package/dist/cdn/drawer/snice-drawer.js +1 -1
- package/dist/cdn/drawer/snice-drawer.min.js +1 -1
- package/dist/cdn/empty-state/README.md +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +3 -3
- package/dist/cdn/empty-state/snice-empty-state.js.map +1 -1
- package/dist/cdn/empty-state/snice-empty-state.min.js +4 -4
- package/dist/cdn/empty-state/snice-empty-state.min.js.map +1 -1
- package/dist/cdn/estimate/snice-estimate.js +1 -1
- package/dist/cdn/estimate/snice-estimate.min.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
- package/dist/cdn/flip-card/snice-flip-card.js +1 -1
- package/dist/cdn/flip-card/snice-flip-card.min.js +1 -1
- package/dist/cdn/flow/snice-flow.js +1 -1
- package/dist/cdn/flow/snice-flow.min.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.min.js +1 -1
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/funnel/snice-funnel.min.js +1 -1
- package/dist/cdn/gantt/snice-gantt.js +1 -1
- package/dist/cdn/gantt/snice-gantt.min.js +1 -1
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/gauge/snice-gauge.min.js +1 -1
- package/dist/cdn/grid/snice-grid.js +1 -1
- package/dist/cdn/grid/snice-grid.min.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.min.js +1 -1
- package/dist/cdn/image/snice-image.js +1 -1
- package/dist/cdn/image/snice-image.min.js +1 -1
- package/dist/cdn/input/snice-input.js +1 -1
- package/dist/cdn/input/snice-input.min.js +1 -1
- package/dist/cdn/invoice/snice-invoice.js +1 -1
- package/dist/cdn/invoice/snice-invoice.min.js +1 -1
- package/dist/cdn/kanban/snice-kanban.js +1 -1
- package/dist/cdn/kanban/snice-kanban.min.js +1 -1
- package/dist/cdn/key-value/snice-key-value.js +1 -1
- package/dist/cdn/key-value/snice-key-value.min.js +1 -1
- package/dist/cdn/kpi/snice-kpi.js +1 -1
- package/dist/cdn/kpi/snice-kpi.min.js +1 -1
- package/dist/cdn/layout/snice-layout.js +1 -1
- package/dist/cdn/layout/snice-layout.min.js +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.js +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.min.js +1 -1
- package/dist/cdn/link/snice-link.js +1 -1
- package/dist/cdn/link/snice-link.min.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
- package/dist/cdn/list/README.md +1 -1
- package/dist/cdn/list/snice-list.js +3 -3
- package/dist/cdn/list/snice-list.js.map +1 -1
- package/dist/cdn/list/snice-list.min.js +7 -7
- package/dist/cdn/list/snice-list.min.js.map +1 -1
- package/dist/cdn/location/snice-location.js +1 -1
- package/dist/cdn/location/snice-location.min.js +1 -1
- package/dist/cdn/login/snice-login.js +1 -1
- package/dist/cdn/login/snice-login.min.js +1 -1
- package/dist/cdn/map/snice-map.js +1 -1
- package/dist/cdn/map/snice-map.min.js +1 -1
- package/dist/cdn/markdown/snice-markdown.js +1 -1
- package/dist/cdn/markdown/snice-markdown.min.js +1 -1
- package/dist/cdn/masonry/snice-masonry.js +1 -1
- package/dist/cdn/masonry/snice-masonry.min.js +1 -1
- package/dist/cdn/menu/snice-menu.js +1 -1
- package/dist/cdn/menu/snice-menu.min.js +1 -1
- package/dist/cdn/message-strip/snice-message-strip.js +1 -1
- package/dist/cdn/message-strip/snice-message-strip.min.js +1 -1
- package/dist/cdn/metric-table/snice-metric-table.js +1 -1
- package/dist/cdn/metric-table/snice-metric-table.min.js +1 -1
- package/dist/cdn/modal/snice-modal.js +1 -1
- package/dist/cdn/modal/snice-modal.min.js +1 -1
- package/dist/cdn/music-player/snice-music-player.js +1 -1
- package/dist/cdn/music-player/snice-music-player.min.js +1 -1
- package/dist/cdn/nav/snice-nav.js +1 -1
- package/dist/cdn/nav/snice-nav.min.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
- package/dist/cdn/notification-center/README.md +1 -1
- package/dist/cdn/notification-center/snice-notification-center.js +3 -3
- package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
- package/dist/cdn/notification-center/snice-notification-center.min.js +3 -3
- package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.min.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.min.js +1 -1
- package/dist/cdn/pagination/snice-pagination.js +1 -1
- package/dist/cdn/pagination/snice-pagination.min.js +1 -1
- package/dist/cdn/paint/snice-paint.js +1 -1
- package/dist/cdn/paint/snice-paint.min.js +1 -1
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +1 -1
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +1 -1
- package/dist/cdn/popover/snice-popover.js +1 -1
- package/dist/cdn/popover/snice-popover.min.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +1 -1
- package/dist/cdn/product-card/snice-product-card.js +1 -1
- package/dist/cdn/product-card/snice-product-card.min.js +1 -1
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress/snice-progress.min.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.min.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
- package/dist/cdn/radio/snice-radio.js +1 -1
- package/dist/cdn/radio/snice-radio.min.js +1 -1
- package/dist/cdn/range-slider/snice-range-slider.js +1 -1
- package/dist/cdn/range-slider/snice-range-slider.min.js +1 -1
- package/dist/cdn/rating/snice-rating.js +1 -1
- package/dist/cdn/rating/snice-rating.min.js +1 -1
- package/dist/cdn/receipt/snice-receipt.js +1 -1
- package/dist/cdn/receipt/snice-receipt.min.js +1 -1
- package/dist/cdn/recipe/snice-recipe.js +1 -1
- package/dist/cdn/recipe/snice-recipe.min.js +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.js +4 -4
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +4 -4
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +4 -4
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +4 -4
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/snice-sankey.js +1 -1
- package/dist/cdn/sankey/snice-sankey.min.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.min.js +1 -1
- package/dist/cdn/select/snice-select.js +1 -1
- package/dist/cdn/select/snice-select.min.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
- package/dist/cdn/slider/snice-slider.js +1 -1
- package/dist/cdn/slider/snice-slider.min.js +1 -1
- package/dist/cdn/sortable/snice-sortable.js +1 -1
- package/dist/cdn/sortable/snice-sortable.min.js +1 -1
- package/dist/cdn/sparkline/snice-sparkline.js +1 -1
- package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
- package/dist/cdn/spinner/snice-spinner.js +1 -1
- package/dist/cdn/spinner/snice-spinner.min.js +1 -1
- package/dist/cdn/split-button/snice-split-button.js +1 -1
- package/dist/cdn/split-button/snice-split-button.min.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
- package/dist/cdn/spotlight/snice-spotlight.js +1 -1
- package/dist/cdn/spotlight/snice-spotlight.min.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.min.js +1 -1
- package/dist/cdn/step-input/snice-step-input.js +1 -1
- package/dist/cdn/step-input/snice-step-input.min.js +1 -1
- package/dist/cdn/stepper/snice-stepper.js +1 -1
- package/dist/cdn/stepper/snice-stepper.min.js +1 -1
- package/dist/cdn/switch/snice-switch.js +1 -1
- package/dist/cdn/switch/snice-switch.min.js +1 -1
- package/dist/cdn/table/README.md +1 -1
- package/dist/cdn/table/snice-table.js +3 -3
- package/dist/cdn/table/snice-table.js.map +1 -1
- package/dist/cdn/table/snice-table.min.js +24 -24
- package/dist/cdn/table/snice-table.min.js.map +1 -1
- package/dist/cdn/tabs/snice-tabs.js +1 -1
- package/dist/cdn/tabs/snice-tabs.min.js +1 -1
- package/dist/cdn/tag/snice-tag.js +1 -1
- package/dist/cdn/tag/snice-tag.min.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.min.js +1 -1
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/terminal/snice-terminal.min.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.min.js +1 -1
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/textarea/snice-textarea.min.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.min.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
- package/dist/cdn/timeline/snice-timeline.js +1 -1
- package/dist/cdn/timeline/snice-timeline.min.js +1 -1
- package/dist/cdn/timer/snice-timer.js +1 -1
- package/dist/cdn/timer/snice-timer.min.js +1 -1
- package/dist/cdn/toast/snice-toast.js +1 -1
- package/dist/cdn/toast/snice-toast.min.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
- package/dist/cdn/tree/snice-tree.js +1 -1
- package/dist/cdn/tree/snice-tree.min.js +1 -1
- package/dist/cdn/treemap/snice-treemap.js +1 -1
- package/dist/cdn/treemap/snice-treemap.min.js +1 -1
- package/dist/cdn/user-card/snice-user-card.js +1 -1
- package/dist/cdn/user-card/snice-user-card.min.js +1 -1
- package/dist/cdn/video-player/snice-video-player.js +1 -1
- package/dist/cdn/video-player/snice-video-player.min.js +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
- package/dist/cdn/waterfall/snice-waterfall.js +1 -1
- package/dist/cdn/waterfall/snice-waterfall.min.js +1 -1
- package/dist/cdn/weather/snice-weather.js +1 -1
- package/dist/cdn/weather/snice-weather.min.js +1 -1
- package/dist/cdn/work-order/snice-work-order.js +1 -1
- package/dist/cdn/work-order/snice-work-order.min.js +1 -1
- package/dist/components/empty-state/snice-empty-state.js +2 -2
- package/dist/components/empty-state/snice-empty-state.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/react/SniceProvider.js +1 -1
- package/dist/react/SniceRouter.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/matchRoute.js +1 -1
- package/dist/react/useRequestHandler.js +1 -1
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/controllers.md +41 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snice-chat.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/empty-state/snice-empty-state.js","../../components/utils.js","../../components/chat/snice-chat.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, render, styles, dispatch, html, css } from 'snice';\nimport { renderIcon } from '../utils.js';\n\nvar cssContent = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--snice-spacing-2xl,3rem) var(--snice-spacing-xl,2rem);color:var(--snice-color-text-secondary,rgb(82 82 82));animation:snice-empty-in 360ms var(--snice-ease-out,ease) backwards}@keyframes snice-empty-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.empty-state--small{padding:var(--snice-spacing-xl,2rem) var(--snice-spacing-lg,1.5rem)}.empty-state--medium{padding:var(--snice-spacing-2xl,3rem) var(--snice-spacing-xl,2rem)}.empty-state--large{padding:var(--snice-spacing-3xl,4rem) var(--snice-spacing-2xl,2.5rem)}.empty-state__icon-wrapper{display:flex;align-items:center;justify-content:center;margin-bottom:var(--snice-spacing-lg,1.5rem);position:relative;width:calc(var(--snice-font-size-4xl,4rem) * 1.8);height:calc(var(--snice-font-size-4xl,4rem) * 1.8)}.empty-state__icon-wrapper::before{content:'';position:absolute;inset:0;border-radius:50%;border:1px dashed color-mix(in srgb,var(--snice-color-border,#ddd) 70%,transparent);animation:18s linear infinite snice-empty-halo}@keyframes snice-empty-halo{to{transform:rotate(360deg)}}.empty-state__icon{font-size:var(--snice-font-size-4xl, 4rem);opacity:.5;line-height:1}.empty-state__icon-wrapper ::slotted(*){display:flex;align-items:center;justify-content:center;font-size:var(--snice-font-size-4xl, 4rem);opacity:.5;line-height:1}.empty-state__icon-wrapper ::slotted(svg){width:var(--snice-font-size-4xl,4rem);height:var(--snice-font-size-4xl,4rem)}.empty-state__icon-wrapper ::slotted(img){width:var(--snice-font-size-4xl,4rem);height:var(--snice-font-size-4xl,4rem);object-fit:contain}.empty-state--small .empty-state__icon-wrapper{margin-bottom:var(--snice-spacing-md,1rem);width:calc(var(--snice-font-size-3xl,3rem) * 1.8);height:calc(var(--snice-font-size-3xl,3rem) * 1.8)}.empty-state--small .empty-state__icon{font-size:var(--snice-font-size-3xl, 3rem)}.empty-state--small .empty-state__icon-wrapper ::slotted(*){font-size:var(--snice-font-size-3xl, 3rem)}.empty-state--small .empty-state__icon-wrapper ::slotted(img),.empty-state--small .empty-state__icon-wrapper ::slotted(svg){width:var(--snice-font-size-3xl,3rem);height:var(--snice-font-size-3xl,3rem)}.empty-state--large .empty-state__icon-wrapper{margin-bottom:var(--snice-spacing-xl,2rem);width:calc(var(--snice-font-size-5xl,5rem) * 1.8);height:calc(var(--snice-font-size-5xl,5rem) * 1.8)}.empty-state--large .empty-state__icon{font-size:var(--snice-font-size-5xl, 5rem)}.empty-state--large .empty-state__icon-wrapper ::slotted(*){font-size:var(--snice-font-size-5xl, 5rem)}.empty-state--large .empty-state__icon-wrapper ::slotted(img),.empty-state--large .empty-state__icon-wrapper ::slotted(svg){width:var(--snice-font-size-5xl,5rem);height:var(--snice-font-size-5xl,5rem)}.empty-state__title{font-family:var(--snice-font-family-display);font-size:var(--snice-heading-lg, 1.25rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin:0 0 var(--snice-spacing-xs,.5rem) 0}.empty-state--small .empty-state__title{font-family:var(--snice-font-family-display);font-size:var(--snice-heading-md, 1.125rem);margin-bottom:var(--snice-spacing-2xs,.375rem)}.empty-state--large .empty-state__title{font-family:var(--snice-font-family-display);font-size:var(--snice-heading-xl, 1.5rem);margin-bottom:var(--snice-spacing-sm,.75rem)}.empty-state__description{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));margin:0 0 var(--snice-spacing-lg,1.5rem) 0;max-width:32rem;line-height:var(--snice-line-height-normal, 1.5)}.empty-state--small .empty-state__description{font-size:var(--snice-font-size-xs, .8125rem);margin-bottom:var(--snice-spacing-md,1rem)}.empty-state--large .empty-state__description{font-size:var(--snice-font-size-md, 1rem);margin-bottom:var(--snice-spacing-xl,2rem)}.empty-state__action{display:inline-flex;align-items:center;justify-content:center;padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-medium,500);color:var(--snice-color-text-inverse,rgb(250 250 250));background:var(--snice-color-primary,rgb(37 99 235));border:none;border-radius:var(--snice-border-radius-md,.375rem);text-decoration:none;cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.empty-state__action:hover{background:var(--snice-color-primary-hover,rgb(29 78 216))}.empty-state--small .empty-state__action{padding:var(--snice-spacing-2xs,.375rem) var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-xs, .8125rem)}.empty-state--large .empty-state__action{padding:var(--snice-spacing-sm,.625rem) var(--snice-spacing-lg,1.25rem);font-size:var(--snice-font-size-md, 1rem)}::slotted(*){margin-top:var(--snice-spacing-md,1rem)}\";\n\nlet SniceEmptyState = (() => {\n let _classDecorators = [element('snice-empty-state')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _icon_decorators;\n let _icon_initializers = [];\n let _icon_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _description_decorators;\n let _description_initializers = [];\n let _description_extraInitializers = [];\n let _actionText_decorators;\n let _actionText_initializers = [];\n let _actionText_extraInitializers = [];\n let _actionHref_decorators;\n let _actionHref_initializers = [];\n let _actionHref_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _dispatchActionEvent_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 _size_decorators = [property({})];\n _icon_decorators = [property({})];\n _title_decorators = [property({})];\n _description_decorators = [property({})];\n _actionText_decorators = [property({ attribute: 'action-text', })];\n _actionHref_decorators = [property({ attribute: 'action-href', })];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _dispatchActionEvent_decorators = [dispatch('empty-state-action', { bubbles: true, composed: true })];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchActionEvent_decorators, { kind: \"method\", name: \"dispatchActionEvent\", static: false, private: false, access: { has: obj => \"dispatchActionEvent\" in obj, get: obj => obj.dispatchActionEvent }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _icon_decorators, { kind: \"field\", name: \"icon\", static: false, private: false, access: { has: obj => \"icon\" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _description_decorators, { kind: \"field\", name: \"description\", static: false, private: false, access: { has: obj => \"description\" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);\n __esDecorate(null, null, _actionText_decorators, { kind: \"field\", name: \"actionText\", static: false, private: false, access: { has: obj => \"actionText\" in obj, get: obj => obj.actionText, set: (obj, value) => { obj.actionText = value; } }, metadata: _metadata }, _actionText_initializers, _actionText_extraInitializers);\n __esDecorate(null, null, _actionHref_decorators, { kind: \"field\", name: \"actionHref\", static: false, private: false, access: { has: obj => \"actionHref\" in obj, get: obj => obj.actionHref, set: (obj, value) => { obj.actionHref = value; } }, metadata: _metadata }, _actionHref_initializers, _actionHref_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 render() {\n const emptyStateClasses = ['empty-state', `empty-state--${this.size}`].filter(Boolean).join(' ');\n return html /*html*/ `\n <div class=\"${emptyStateClasses}\" part=\"container\">\n <div class=\"empty-state__icon-wrapper\" part=\"icon\">\n <slot name=\"icon\">\n ${renderIcon(this.icon, 'empty-state__icon')}\n </slot>\n </div>\n <h3 class=\"empty-state__title\" part=\"title\">${this.title}</h3>\n <if ${this.description}>\n <p class=\"empty-state__description\" part=\"description\">${this.description}</p>\n </if>\n <if ${this.actionText}>\n <case ${this.actionHref ? 'link' : 'button'}>\n <when value=\"link\">\n <a\n href=\"${this.actionHref}\"\n class=\"empty-state__action\"\n part=\"action\"\n @click=${this.handleActionClick}\n >${this.actionText}</a>\n </when>\n <when value=\"button\">\n <button\n class=\"empty-state__action\"\n part=\"action\"\n type=\"button\"\n @click=${this.handleActionClick}\n >${this.actionText}</button>\n </when>\n </case>\n </if>\n <slot></slot>\n </div>\n `;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n handleActionClick(e) {\n if (!this.actionHref) {\n e.preventDefault();\n }\n this.dispatchActionEvent();\n }\n dispatchActionEvent() {\n return { emptyState: this };\n }\n constructor() {\n super(...arguments);\n this.size = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.icon = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _icon_initializers, '📭'));\n this.title = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _title_initializers, 'No data'));\n this.description = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _description_initializers, ''));\n this.actionText = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _actionText_initializers, ''));\n this.actionHref = (__runInitializers(this, _actionText_extraInitializers), __runInitializers(this, _actionHref_initializers, ''));\n __runInitializers(this, _actionHref_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SniceEmptyState };\n//# sourceMappingURL=snice-empty-state.js.map\n","import { html } from 'snice';\n\n/**\n * Detects icon type and returns appropriate template\n *\n * Scheme overrides:\n * - img://path -> forces <img> element\n * - text://content -> forces text content\n *\n * Auto-detection (when no scheme):\n * - URLs (http://, https://, /, ./, ../, data:) -> <img>\n * - Image extensions (svg, png, jpg, jpeg, jfif, pjp, gif, webp, avif, jxl,\n * ico, cur, bmp, tif, tiff, heic, heif, apng) -> <img>\n * - Everything else -> span with text content (emoji, plain text)\n *\n * ⚠️ \"home\" or \"settings\" renders as PLAIN TEXT, not a Material icon.\n * For Material Symbols, use the icon slot instead:\n * <span slot=\"icon\" class=\"material-symbols-outlined\">home</span>\n *\n * Examples:\n * - \"/path/icon.svg\" -> <img>\n * - \"icon.png\" -> <img>\n * - \"img://filename\" -> <img> (forced)\n * - \"🏠\" -> <span> text (emoji)\n * - \"home\" -> <span> text (plain text, NOT a Material icon)\n * - \"text:///not/a/path\" -> <span> text (forced)\n */\nfunction renderIcon(icon, className = 'icon') {\n if (!icon)\n return html ``;\n // Check for scheme overrides first\n if (icon.startsWith('img://')) {\n const src = icon.slice(6);\n return html `<img class=\"${className}\" src=\"${src}\" alt=\"\" part=\"icon\" />`;\n }\n if (icon.startsWith('text://')) {\n const content = icon.slice(7);\n return html `<span class=\"${className}\" part=\"icon\">${content}</span>`;\n }\n // Auto-detect: Check if it's a URL pattern\n if (/^(https?:\\/\\/|\\/|\\.\\/|\\.\\.\\/|data:)/.test(icon)) {\n return html `<img class=\"${className}\" src=\"${icon}\" alt=\"\" part=\"icon\" />`;\n }\n // Auto-detect: Check if it's a file with image extension\n // Must have at least one char before the dot, and no unsupported protocol prefix\n // Covers: SVG, PNG, JPEG variants, GIF, WebP, AVIF, JPEG XL, ICO, BMP, TIFF, HEIC/HEIF, APNG\n if (/^[^:]*\\w\\.(svg|png|jpe?g|jfif|pjp|gif|webp|avif|jxl|ico|cur|bmp|tiff?|heic|heif|apng)(\\?.*)?$/i.test(icon)) {\n return html `<img class=\"${className}\" src=\"${icon}\" alt=\"\" part=\"icon\" />`;\n }\n // Default: text content (emoji, font icon ligature names)\n // All content is escaped - no HTML injection possible\n // Detect ligature icon names (lowercase words with underscores, e.g. \"search\", \"check_circle\")\n // vs emoji/other text — apply --snice-icon-font (defaults to Material Symbols Outlined)\n if (/^[a-z][a-z0-9_]*$/.test(icon)) {\n return html `<span class=\"${className} snice-icon-ligature\" style=\"font-family:var(--snice-icon-font,'Material Symbols Outlined'),sans-serif\" part=\"icon\">${icon}</span>`;\n }\n return html `<span class=\"${className}\" part=\"icon\">${icon}</span>`;\n}\n/**\n * Fallback accent hues (muted/business tones). Used when CSS vars haven't\n * been applied (test environments, SSR) or when the 8 accent tokens have\n * been stripped. Keep in lockstep with `theme.css` --snice-color-accent-1..8.\n */\nconst FALLBACK_ACCENTS = [\n 'hsl(214 55% 48%)', 'hsl(27 62% 50%)', 'hsl(160 40% 40%)', 'hsl(275 32% 52%)',\n 'hsl(42 62% 48%)', 'hsl(340 42% 55%)', 'hsl(110 32% 42%)', 'hsl(195 45% 46%)',\n];\n/**\n * Returns the 8-slot accent palette resolved against the current document's\n * CSS variables, with in-process fallback for non-browser contexts. Data-vis\n * components call this instead of hard-coding color arrays so themes flow\n * through automatically.\n *\n * The returned strings are safe for `canvas.fillStyle`, `svg fill`, or\n * inline `style` — they're either a `hsl(...)` literal or whatever the\n * consumer set as `--snice-color-accent-N`.\n */\nfunction getAccentPalette(root) {\n if (typeof getComputedStyle !== 'function')\n return FALLBACK_ACCENTS;\n const target = root ?? document.documentElement;\n const cs = getComputedStyle(target);\n return FALLBACK_ACCENTS.map((fallback, i) => {\n const v = cs.getPropertyValue(`--snice-color-accent-${i + 1}`).trim();\n return v || fallback;\n });\n}\n/**\n * Parses a CSS color string into sRGB components in [0,1]. Handles `rgb()`,\n * `rgba()`, `hsl()`, `hsla()`, and `#hex`. Returns null if unparseable.\n */\nfunction parseCssColor(value) {\n if (!value)\n return null;\n const s = value.trim();\n // Hex: #RGB #RRGGBB #RGBA #RRGGBBAA\n if (s[0] === '#') {\n const hex = s.slice(1);\n const norm = hex.length === 3 || hex.length === 4\n ? hex.slice(0, 3).split('').map(c => c + c).join('')\n : hex.slice(0, 6);\n if (norm.length !== 6)\n return null;\n const n = parseInt(norm, 16);\n return [((n >> 16) & 255) / 255, ((n >> 8) & 255) / 255, (n & 255) / 255];\n }\n // rgb() / rgba()\n const rgbMatch = s.match(/^rgba?\\(\\s*([\\d.]+)[,\\s]+([\\d.]+)[,\\s]+([\\d.]+)/i);\n if (rgbMatch) {\n return [+rgbMatch[1] / 255, +rgbMatch[2] / 255, +rgbMatch[3] / 255];\n }\n // hsl() / hsla() — quick conversion via an offscreen element for accuracy\n // (skip manual HSL→RGB to keep this helper small; browsers will resolve\n // any hsl() via getComputedStyle on the element anyway).\n if (/^hsla?\\(/i.test(s) && typeof document !== 'undefined') {\n const probe = document.createElement('span');\n probe.style.color = s;\n document.body.appendChild(probe);\n const resolved = getComputedStyle(probe).color;\n probe.remove();\n return parseCssColor(resolved);\n }\n return null;\n}\n/**\n * Relative luminance per WCAG 2.x, input in sRGB [0,1].\n */\nfunction luminance(rgb) {\n const lin = rgb.map(c => c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4));\n return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];\n}\n/**\n * Picks a readable text color for the given `bg`, choosing between the\n * theme's existing text tokens. Light bg → `--snice-color-text` (dark text);\n * dark bg → `--snice-color-text-inverse` (light text). Falls back to inverse\n * for unparseable bg (safe default for colored fills).\n *\n * Used by badge/chip (and anything else pairing a colored fill with a label)\n * so the text stays legible regardless of theme — without hardcoding #fff.\n */\nfunction pickContrastColor(bg) {\n const rgb = parseCssColor(bg);\n if (!rgb)\n return 'var(--snice-color-text-inverse)';\n // Threshold 0.55 keeps saturated blues/greens (luminance ~0.2) using the\n // inverse (light) text, and pastels/lightened fills (> 0.55) using the\n // main text token (dark).\n return luminance(rgb) > 0.55\n ? 'var(--snice-color-text)'\n : 'var(--snice-color-text-inverse)';\n}\nconst themeListeners = new Set();\nlet themeObserver = null;\nfunction onThemeChange(fn) {\n if (typeof document === 'undefined')\n return () => { };\n themeListeners.add(fn);\n if (!themeObserver) {\n themeObserver = new MutationObserver(() => {\n for (const listener of themeListeners) {\n try {\n listener();\n }\n catch { }\n }\n });\n themeObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['data-theme', 'class', 'data-theme-variant'],\n });\n }\n return () => {\n themeListeners.delete(fn);\n if (themeListeners.size === 0 && themeObserver) {\n themeObserver.disconnect();\n themeObserver = null;\n }\n };\n}\n\nexport { getAccentPalette, onThemeChange, pickContrastColor, renderIcon };\n//# sourceMappingURL=utils.js.map\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, query, styles, ready, dispose, watch, dispatch, render, css, html } from 'snice';\nimport '../empty-state/snice-empty-state.js';\nimport '../utils.js';\n\nvar cssContent = \":host{display:flex;flex-direction:column;height:var(--snice-chat-height,37.5rem);font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-size:var(--snice-font-size-md, 1rem);line-height:1.5;color:var(--snice-color-text,rgb(23 23 23));background:var(--snice-color-surface-container-high,rgb(252 251 249));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);overflow:hidden;box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.chat-container{display:flex;flex-direction:column;height:100%}.messages-area{flex:1;overflow-y:auto;padding:var(--snice-spacing-md,1rem);display:flex;flex-direction:column;gap:var(--snice-spacing-sm,.75rem)}.messages-area::-webkit-scrollbar{width:8px}.messages-area::-webkit-scrollbar-track{background:0 0}.messages-area::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.messages-area::-webkit-scrollbar-thumb:hover{background:var(--snice-color-text-secondary,rgb(82 82 82))}.message{display:flex;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-2xs,.25rem) 0;position:relative}.message:hover .message-actions{opacity:1}.message-avatar{width:2.25rem;height:2.25rem;border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-surface-container-low,rgb(250 250 250));display:flex;align-items:center;justify-content:center;color:var(--snice-color-text-secondary,rgb(82 82 82));font-weight:var(--snice-font-weight-semibold,600);font-size:var(--snice-font-size-sm, .875rem);flex-shrink:0}.message-avatar img{width:100%;height:100%;border-radius:var(--snice-border-radius-md,.25rem);object-fit:cover}.message-content{flex:1;min-width:0}.message-header{font-family:var(--snice-font-family-display);display:flex;align-items:baseline;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-3xs,.125rem)}.message-author{font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23))}.message-timestamp{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.message-edited{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-secondary,rgb(82 82 82));font-style:italic}.message-text{word-wrap:break-word;white-space:pre-wrap;color:var(--snice-color-text,rgb(23 23 23))}.message.system{justify-content:center}.message.system .message-text{text-align:center;color:var(--snice-color-text-secondary,rgb(82 82 82));font-size:var(--snice-font-size-sm, .875rem);font-style:italic}.message-attachment{margin-top:var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);overflow:hidden;max-width:25rem}.message-attachment img{max-width:100%;display:block}.attachment-file{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-surface-container-low,rgb(250 250 250))}.attachment-icon{width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:var(--snice-color-surface,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.attachment-info{flex:1;min-width:0}.attachment-name{font-weight:var(--snice-font-weight-medium,500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-size{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.message-reactions{display:flex;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-2xs,.25rem);flex-wrap:wrap}.reaction{display:flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-surface-container-low,rgb(250 250 250));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:12px;font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:all var(--snice-transition-fast, 150ms)}.reaction:hover{background:var(--snice-color-surface-hover,rgb(242 242 242))}.reaction.active{background:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-primary,rgb(37 99 235))}.reaction-emoji{font-size:var(--snice-font-size-sm, .875rem)}.reaction-count{font-size:var(--snice-font-size-xs, .75rem);font-weight:var(--snice-font-weight-medium,500)}.message-actions{position:absolute;top:-.75rem;right:var(--snice-spacing-md,1rem);background:var(--snice-color-surface-container-high,rgb(252 251 249));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1));display:flex;gap:var(--snice-spacing-3xs,.125rem);opacity:0;transition:opacity var(--snice-transition-fast, 150ms);padding:var(--snice-spacing-3xs,.125rem)}.action-button{width:1.75rem;height:1.75rem;border:none;background:0 0;cursor:pointer;border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;color:var(--snice-color-text-secondary,rgb(82 82 82));transition:background var(--snice-transition-fast, 150ms)}.action-button:hover{background:var(--snice-color-surface-hover,rgb(242 242 242))}.action-button svg{width:1rem;height:1rem}.typing-indicators{padding:0 var(--snice-spacing-md,1rem) var(--snice-spacing-xs,.5rem);min-height:1.5rem}.typing-indicator{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));font-style:italic}.typing-dots{display:flex;gap:.1875rem}.typing-dot{width:6px;height:6px;background:var(--snice-color-text-secondary,rgb(82 82 82));border-radius:50%;animation:1.4s ease-in-out infinite typing-bounce}.typing-dot:first-child{animation-delay:0s}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,100%,60%{transform:translateY(0)}30%{transform:translateY(-4px)}}.input-area{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding:var(--snice-spacing-md,1rem);background:var(--snice-color-surface-container-high,rgb(252 251 249))}.input-container{display:flex;align-items:flex-end;gap:var(--snice-spacing-xs,.5rem);background:var(--snice-color-surface-container-lowest,rgb(255 255 255));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);padding:var(--snice-spacing-xs,.5rem);transition:border-color var(--snice-transition-fast, 150ms)}.input-container:focus-within{border-color:var(--snice-color-primary,rgb(37 99 235))}.input-field{flex:1;border:none;outline:0;resize:none;font-family:inherit;font-size:var(--snice-font-size-md, 1rem);line-height:1.5;min-height:1.375rem;max-height:9.375rem;overflow-y:auto;background:0 0;color:var(--snice-color-text,rgb(23 23 23))}.input-field::placeholder{color:var(--snice-color-text-secondary,rgb(82 82 82))}.input-field::-webkit-scrollbar{width:4px}.input-field::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-sm,.125rem)}.input-buttons{display:flex;gap:var(--snice-spacing-2xs,.25rem)}.input-button{width:2rem;height:2rem;border:none;background:0 0;cursor:pointer;border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;color:var(--snice-color-text-secondary,rgb(82 82 82));transition:background var(--snice-transition-fast, 150ms)}.input-button:hover{background:var(--snice-color-surface-hover,rgb(242 242 242))}.input-button:disabled{opacity:.5;cursor:not-allowed}.input-button.send{color:var(--snice-color-text-inverse,rgb(250 250 250));background:var(--snice-color-primary,rgb(37 99 235))}.input-button.send:hover:not(:disabled){background:var(--snice-color-primary-hover,rgb(29 78 216))}.input-button svg{width:1.125rem;height:1.125rem}input[type=file]{display:none}\";\n\n/**\n * Generate unique ID\n */\nfunction generateId() {\n return `msg_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`;\n}\n/**\n * Format file size\n */\nfunction formatFileSize(bytes) {\n if (bytes < 1024)\n return `${bytes} B`;\n if (bytes < 1024 * 1024)\n return `${(bytes / 1024).toFixed(1)} KB`;\n return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;\n}\n/**\n * Format timestamp\n */\nfunction formatTime(date) {\n const d = typeof date === 'string' ? new Date(date) : date;\n const hours = d.getHours().toString().padStart(2, '0');\n const minutes = d.getMinutes().toString().padStart(2, '0');\n return `${hours}:${minutes}`;\n}\n/**\n * Get initials from name\n */\nfunction getInitials(name) {\n return name\n .split(' ')\n .map((part) => part[0])\n .join('')\n .toUpperCase()\n .substring(0, 2);\n}\n/**\n * snice-chat - Chat interface component\n *\n * A Slack-style chat interface with messages, typing indicators, and file uploads\n *\n * @element snice-chat\n *\n * @fires {CustomEvent<{ message: string; attachments?: File[] }>} message-send - Fires when sending a message\n * @fires {CustomEvent<{ messageId: string; newContent: string }>} message-edit - Fires when editing a message\n * @fires {CustomEvent<{ messageId: string }>} message-delete - Fires when deleting a message\n * @fires {CustomEvent<{ messageId: string; emoji: string }>} message-react - Fires when reacting to a message\n * @fires {CustomEvent<{ messageId: string }>} message-thread - Fires when starting a thread\n * @fires {CustomEvent<{}>} typing-start - Fires when user starts typing\n * @fires {CustomEvent<{}>} typing-stop - Fires when user stops typing\n */\nlet SniceChat = (() => {\n let _classDecorators = [element('snice-chat')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _messages_decorators;\n let _messages_initializers = [];\n let _messages_extraInitializers = [];\n let _currentUser_decorators;\n let _currentUser_initializers = [];\n let _currentUser_extraInitializers = [];\n let _currentAvatar_decorators;\n let _currentAvatar_initializers = [];\n let _currentAvatar_extraInitializers = [];\n let _placeholder_decorators;\n let _placeholder_initializers = [];\n let _placeholder_extraInitializers = [];\n let _allowFiles_decorators;\n let _allowFiles_initializers = [];\n let _allowFiles_extraInitializers = [];\n let _showTyping_decorators;\n let _showTyping_initializers = [];\n let _showTyping_extraInitializers = [];\n let _showAvatars_decorators;\n let _showAvatars_initializers = [];\n let _showAvatars_extraInitializers = [];\n let _showTimestamps_decorators;\n let _showTimestamps_initializers = [];\n let _showTimestamps_extraInitializers = [];\n let _messagesArea_decorators;\n let _messagesArea_initializers = [];\n let _messagesArea_extraInitializers = [];\n let _inputField_decorators;\n let _inputField_initializers = [];\n let _inputField_extraInitializers = [];\n let _styles_decorators;\n let _init_decorators;\n let _cleanup_decorators;\n let _messagesChanged_decorators;\n let _emitMessageSend_decorators;\n let _emitMessageEdit_decorators;\n let _emitMessageDelete_decorators;\n let _emitMessageReact_decorators;\n let _emitMessageThread_decorators;\n let _emitTypingStart_decorators;\n let _emitTypingStop_decorators;\n let _render_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.messages = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _messages_initializers, []));\n this.currentUser = (__runInitializers(this, _messages_extraInitializers), __runInitializers(this, _currentUser_initializers, 'You'));\n this.currentAvatar = (__runInitializers(this, _currentUser_extraInitializers), __runInitializers(this, _currentAvatar_initializers, ''));\n this.placeholder = (__runInitializers(this, _currentAvatar_extraInitializers), __runInitializers(this, _placeholder_initializers, 'Type a message...'));\n this.allowFiles = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _allowFiles_initializers, true));\n this.showTyping = (__runInitializers(this, _allowFiles_extraInitializers), __runInitializers(this, _showTyping_initializers, true));\n this.showAvatars = (__runInitializers(this, _showTyping_extraInitializers), __runInitializers(this, _showAvatars_initializers, true));\n this.showTimestamps = (__runInitializers(this, _showAvatars_extraInitializers), __runInitializers(this, _showTimestamps_initializers, true));\n this.messagesArea = (__runInitializers(this, _showTimestamps_extraInitializers), __runInitializers(this, _messagesArea_initializers, void 0));\n this.inputField = (__runInitializers(this, _messagesArea_extraInitializers), __runInitializers(this, _inputField_initializers, void 0));\n this.typingIndicators = (__runInitializers(this, _inputField_extraInitializers), new Map());\n this.typingTimeout = null;\n this.fileInput = null;\n this.handleKeyDown = (e) => {\n const target = e.target;\n if (target !== this.inputField)\n return;\n if (e.key === 'Enter' && !e.shiftKey) {\n e.preventDefault();\n this.sendMessage();\n }\n };\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _messages_decorators = [property({ type: Array, attribute: false })];\n _currentUser_decorators = [property({ type: String, attribute: 'current-user' })];\n _currentAvatar_decorators = [property({ type: String, attribute: 'current-avatar' })];\n _placeholder_decorators = [property({ type: String })];\n _allowFiles_decorators = [property({ type: Boolean, attribute: 'allow-files' })];\n _showTyping_decorators = [property({ type: Boolean, attribute: 'show-typing' })];\n _showAvatars_decorators = [property({ type: Boolean, attribute: 'show-avatars' })];\n _showTimestamps_decorators = [property({ type: Boolean, attribute: 'show-timestamps' })];\n _messagesArea_decorators = [query('.messages-area')];\n _inputField_decorators = [query('.input-field')];\n _styles_decorators = [styles()];\n _init_decorators = [ready()];\n _cleanup_decorators = [dispose()];\n _messagesChanged_decorators = [watch('messages')];\n _emitMessageSend_decorators = [dispatch('message-send', { bubbles: true, composed: true })];\n _emitMessageEdit_decorators = [dispatch('message-edit', { bubbles: true, composed: true })];\n _emitMessageDelete_decorators = [dispatch('message-delete', { bubbles: true, composed: true })];\n _emitMessageReact_decorators = [dispatch('message-react', { bubbles: true, composed: true })];\n _emitMessageThread_decorators = [dispatch('message-thread', { bubbles: true, composed: true })];\n _emitTypingStart_decorators = [dispatch('typing-start', { bubbles: true, composed: true })];\n _emitTypingStop_decorators = [dispatch('typing-stop', { bubbles: true, composed: true })];\n _render_decorators = [render()];\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _messagesChanged_decorators, { kind: \"method\", name: \"messagesChanged\", static: false, private: false, access: { has: obj => \"messagesChanged\" in obj, get: obj => obj.messagesChanged }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageSend_decorators, { kind: \"method\", name: \"emitMessageSend\", static: false, private: false, access: { has: obj => \"emitMessageSend\" in obj, get: obj => obj.emitMessageSend }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageEdit_decorators, { kind: \"method\", name: \"emitMessageEdit\", static: false, private: false, access: { has: obj => \"emitMessageEdit\" in obj, get: obj => obj.emitMessageEdit }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageDelete_decorators, { kind: \"method\", name: \"emitMessageDelete\", static: false, private: false, access: { has: obj => \"emitMessageDelete\" in obj, get: obj => obj.emitMessageDelete }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageReact_decorators, { kind: \"method\", name: \"emitMessageReact\", static: false, private: false, access: { has: obj => \"emitMessageReact\" in obj, get: obj => obj.emitMessageReact }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageThread_decorators, { kind: \"method\", name: \"emitMessageThread\", static: false, private: false, access: { has: obj => \"emitMessageThread\" in obj, get: obj => obj.emitMessageThread }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitTypingStart_decorators, { kind: \"method\", name: \"emitTypingStart\", static: false, private: false, access: { has: obj => \"emitTypingStart\" in obj, get: obj => obj.emitTypingStart }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitTypingStop_decorators, { kind: \"method\", name: \"emitTypingStop\", static: false, private: false, access: { has: obj => \"emitTypingStop\" in obj, get: obj => obj.emitTypingStop }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _messages_decorators, { kind: \"field\", name: \"messages\", static: false, private: false, access: { has: obj => \"messages\" in obj, get: obj => obj.messages, set: (obj, value) => { obj.messages = value; } }, metadata: _metadata }, _messages_initializers, _messages_extraInitializers);\n __esDecorate(null, null, _currentUser_decorators, { kind: \"field\", name: \"currentUser\", static: false, private: false, access: { has: obj => \"currentUser\" in obj, get: obj => obj.currentUser, set: (obj, value) => { obj.currentUser = value; } }, metadata: _metadata }, _currentUser_initializers, _currentUser_extraInitializers);\n __esDecorate(null, null, _currentAvatar_decorators, { kind: \"field\", name: \"currentAvatar\", static: false, private: false, access: { has: obj => \"currentAvatar\" in obj, get: obj => obj.currentAvatar, set: (obj, value) => { obj.currentAvatar = value; } }, metadata: _metadata }, _currentAvatar_initializers, _currentAvatar_extraInitializers);\n __esDecorate(null, null, _placeholder_decorators, { kind: \"field\", name: \"placeholder\", static: false, private: false, access: { has: obj => \"placeholder\" in obj, get: obj => obj.placeholder, set: (obj, value) => { obj.placeholder = value; } }, metadata: _metadata }, _placeholder_initializers, _placeholder_extraInitializers);\n __esDecorate(null, null, _allowFiles_decorators, { kind: \"field\", name: \"allowFiles\", static: false, private: false, access: { has: obj => \"allowFiles\" in obj, get: obj => obj.allowFiles, set: (obj, value) => { obj.allowFiles = value; } }, metadata: _metadata }, _allowFiles_initializers, _allowFiles_extraInitializers);\n __esDecorate(null, null, _showTyping_decorators, { kind: \"field\", name: \"showTyping\", static: false, private: false, access: { has: obj => \"showTyping\" in obj, get: obj => obj.showTyping, set: (obj, value) => { obj.showTyping = value; } }, metadata: _metadata }, _showTyping_initializers, _showTyping_extraInitializers);\n __esDecorate(null, null, _showAvatars_decorators, { kind: \"field\", name: \"showAvatars\", static: false, private: false, access: { has: obj => \"showAvatars\" in obj, get: obj => obj.showAvatars, set: (obj, value) => { obj.showAvatars = value; } }, metadata: _metadata }, _showAvatars_initializers, _showAvatars_extraInitializers);\n __esDecorate(null, null, _showTimestamps_decorators, { kind: \"field\", name: \"showTimestamps\", static: false, private: false, access: { has: obj => \"showTimestamps\" in obj, get: obj => obj.showTimestamps, set: (obj, value) => { obj.showTimestamps = value; } }, metadata: _metadata }, _showTimestamps_initializers, _showTimestamps_extraInitializers);\n __esDecorate(null, null, _messagesArea_decorators, { kind: \"field\", name: \"messagesArea\", static: false, private: false, access: { has: obj => \"messagesArea\" in obj, get: obj => obj.messagesArea, set: (obj, value) => { obj.messagesArea = value; } }, metadata: _metadata }, _messagesArea_initializers, _messagesArea_extraInitializers);\n __esDecorate(null, null, _inputField_decorators, { kind: \"field\", name: \"inputField\", static: false, private: false, access: { has: obj => \"inputField\" in obj, get: obj => obj.inputField, set: (obj, value) => { obj.inputField = value; } }, metadata: _metadata }, _inputField_initializers, _inputField_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 styles() {\n return css /*css*/ `${cssContent}`;\n }\n init() {\n this.addEventListener('keydown', this.handleKeyDown);\n }\n cleanup() {\n this.removeEventListener('keydown', this.handleKeyDown);\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n }\n }\n messagesChanged() {\n // Scroll to bottom when new message added\n setTimeout(() => this.scrollToBottom(), 0);\n }\n emitMessageSend(message, attachments) {\n return { message, attachments };\n }\n emitMessageEdit(messageId, newContent) {\n return { messageId, newContent };\n }\n emitMessageDelete(messageId) {\n return { messageId };\n }\n emitMessageReact(messageId, emoji) {\n return { messageId, emoji };\n }\n emitMessageThread(messageId) {\n return { messageId };\n }\n emitTypingStart() {\n return {};\n }\n emitTypingStop() {\n return {};\n }\n /**\n * Add a message\n */\n addMessage(message) {\n const newMessage = {\n ...message,\n id: generateId(),\n };\n this.messages = [...this.messages, newMessage];\n }\n /**\n * Update a message\n */\n updateMessage(messageId, updates) {\n this.messages = this.messages.map((msg) => msg.id === messageId ? { ...msg, ...updates } : msg);\n }\n /**\n * Delete a message\n */\n deleteMessage(messageId) {\n this.messages = this.messages.filter((msg) => msg.id !== messageId);\n }\n /**\n * Add typing indicator\n */\n addTypingIndicator(user) {\n this.typingIndicators.set(user, { user, timestamp: new Date() });\n }\n /**\n * Remove typing indicator\n */\n removeTypingIndicator(user) {\n this.typingIndicators.delete(user);\n }\n /**\n * Clear all messages\n */\n clear() {\n this.messages = [];\n }\n /**\n * Scroll to bottom\n */\n scrollToBottom() {\n if (this.messagesArea) {\n this.messagesArea.scrollTop = this.messagesArea.scrollHeight;\n }\n }\n /**\n * Scroll to message\n */\n scrollToMessage(messageId) {\n // Using dynamic querySelector for data attributes is acceptable\n const messageEl = this.shadowRoot?.querySelector(`[data-message-id=\"${messageId}\"]`);\n if (messageEl) {\n messageEl.scrollIntoView({ behavior: 'smooth', block: 'center' });\n }\n }\n handleInput() {\n // Start typing indicator\n if (!this.typingTimeout) {\n this.emitTypingStart();\n }\n // Reset typing timeout\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n }\n this.typingTimeout = window.setTimeout(() => {\n this.emitTypingStop();\n this.typingTimeout = null;\n }, 1000);\n }\n sendMessage() {\n const message = this.inputField.value.trim();\n if (!message)\n return;\n this.emitMessageSend(message);\n this.inputField.value = '';\n this.adjustTextareaHeight();\n // Stop typing\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n this.typingTimeout = null;\n }\n this.emitTypingStop();\n }\n handleFileClick() {\n if (!this.fileInput) {\n this.fileInput = document.createElement('input');\n this.fileInput.type = 'file';\n this.fileInput.multiple = true;\n this.fileInput.addEventListener('change', () => this.handleFileSelect());\n }\n this.fileInput.click();\n }\n handleFileSelect() {\n if (!this.fileInput?.files || this.fileInput.files.length === 0)\n return;\n const files = Array.from(this.fileInput.files);\n this.emitMessageSend('', files);\n this.fileInput.value = '';\n }\n adjustTextareaHeight() {\n if (!this.inputField)\n return;\n this.inputField.style.height = 'auto';\n this.inputField.style.height = `${Math.min(this.inputField.scrollHeight, 150)}px`;\n }\n handleReaction(messageId, emoji) {\n this.emitMessageReact(messageId, emoji);\n }\n handleEdit(messageId) {\n const message = this.messages.find((m) => m.id === messageId);\n if (!message)\n return;\n // Simple prompt for now - in a real app, this would be inline editing\n const newContent = prompt('Edit message:', message.content);\n if (newContent && newContent !== message.content) {\n this.emitMessageEdit(messageId, newContent);\n }\n }\n handleDelete(messageId) {\n if (confirm('Delete this message?')) {\n this.emitMessageDelete(messageId);\n }\n }\n handleThread(messageId) {\n this.emitMessageThread(messageId);\n }\n render() {\n return html /*html*/ `\n <div part=\"base\" class=\"chat-container\">\n <div part=\"messages\" class=\"messages-area\">\n ${this.messages.length === 0\n ? this.renderEmptyState()\n : this.messages.map((msg) => this.renderMessage(msg))}\n </div>\n ${this.showTyping && this.typingIndicators.size > 0 ? this.renderTypingIndicators() : ''}\n ${this.renderInputArea()}\n </div>\n `;\n }\n renderEmptyState() {\n return html /*html*/ `\n <div style=\"padding: 2rem;\">\n <snice-empty-state \n icon=\"💬\" \n title=\"No messages yet\" \n description=\"Start the conversation!\"\n size=\"medium\">\n </snice-empty-state>\n </div>\n `;\n }\n renderMessage(message) {\n const isSystem = message.type === 'system';\n const isCurrentUser = message.author === this.currentUser;\n if (isSystem) {\n return html /*html*/ `\n <div class=\"message system\" data-message-id=\"${message.id}\">\n <div class=\"message-content\">\n <div class=\"message-text\">${message.content}</div>\n </div>\n </div>\n `;\n }\n return html /*html*/ `\n <div class=\"message\" data-message-id=\"${message.id}\">\n ${this.showAvatars\n ? html `\n <div class=\"message-avatar\">\n ${message.avatar\n ? html `<img src=\"${message.avatar}\" alt=\"${message.author}\" />`\n : getInitials(message.author)}\n </div>\n `\n : ''}\n <div class=\"message-content\">\n <div class=\"message-header\">\n <span class=\"message-author\">${message.author}</span>\n ${this.showTimestamps\n ? html `<span class=\"message-timestamp\">${formatTime(message.timestamp)}</span>`\n : ''}\n ${message.edited ? html `<span class=\"message-edited\">(edited)</span>` : ''}\n </div>\n ${message.content ? html `<div class=\"message-text\">${message.content}</div>` : ''}\n ${message.attachment ? this.renderAttachment(message.attachment) : ''}\n ${message.reactions && message.reactions.length > 0\n ? this.renderReactions(message.id, message.reactions, isCurrentUser)\n : ''}\n </div>\n ${isCurrentUser\n ? html `\n <div class=\"message-actions\">\n <button\n class=\"action-button\"\n @click=\"${() => this.handleReaction(message.id, '👍')}\"\n title=\"React\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.5 7.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm5 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM8 11c1.5 0 2.7-1 3.2-2H4.8c.5 1 1.7 2 3.2 2z\"\n />\n </svg>\n </button>\n <button\n class=\"action-button\"\n @click=\"${() => this.handleEdit(message.id)}\"\n title=\"Edit\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25a1.75 1.75 0 0 1 .445-.758l8.61-8.61z\"\n />\n </svg>\n </button>\n <button\n class=\"action-button\"\n @click=\"${() => this.handleDelete(message.id)}\"\n title=\"Delete\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15z\"\n />\n </svg>\n </button>\n </div>\n `\n : ''}\n </div>\n `;\n }\n renderAttachment(attachment) {\n if (!attachment)\n return '';\n if (attachment.type === 'image') {\n return html /*html*/ `\n <div class=\"message-attachment\">\n <img src=\"${attachment.url}\" alt=\"${attachment.name}\" />\n </div>\n `;\n }\n return html /*html*/ `\n <div class=\"message-attachment\">\n <div class=\"attachment-file\">\n <div class=\"attachment-icon\">\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M3.5 1.75a.25.25 0 0 1 .25-.25h3.5a.75.75 0 0 0 0 1.5h.75a.25.25 0 0 1 .25.25v2.75a.75.75 0 0 0 1.5 0V2.25c0-.69-.56-1.25-1.25-1.25h-.75c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v11.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V6.25a.75.75 0 0 0-1.5 0v7.5a.25.25 0 0 1-.25.25h-8.5a.25.25 0 0 1-.25-.25V1.75z\"\n />\n </svg>\n </div>\n <div class=\"attachment-info\">\n <div class=\"attachment-name\">${attachment.name}</div>\n ${attachment.size\n ? html `<div class=\"attachment-size\">${formatFileSize(attachment.size)}</div>`\n : ''}\n </div>\n </div>\n </div>\n `;\n }\n renderReactions(messageId, reactions, isCurrentUser) {\n if (!reactions || reactions.length === 0)\n return '';\n return html /*html*/ `\n <div class=\"message-reactions\">\n ${reactions.map((reaction) => html `\n <div\n class=\"reaction ${reaction.users.includes(this.currentUser) ? 'active' : ''}\"\n @click=\"${() => this.handleReaction(messageId, reaction.emoji)}\"\n >\n <span class=\"reaction-emoji\">${reaction.emoji}</span>\n <span class=\"reaction-count\">${reaction.count}</span>\n </div>\n `)}\n </div>\n `;\n }\n renderTypingIndicators() {\n const users = Array.from(this.typingIndicators.values());\n if (users.length === 0)\n return '';\n return html /*html*/ `\n <div class=\"typing-indicators\">\n <div class=\"typing-indicator\">\n <span>${users.map((u) => u.user).join(', ')} ${users.length === 1 ? 'is' : 'are'} typing</span>\n <div class=\"typing-dots\">\n <div class=\"typing-dot\"></div>\n <div class=\"typing-dot\"></div>\n <div class=\"typing-dot\"></div>\n </div>\n </div>\n </div>\n `;\n }\n renderInputArea() {\n return html /*html*/ `\n <div part=\"input-area\" class=\"input-area\">\n <div part=\"input-container\" class=\"input-container\">\n <textarea\n part=\"input\"\n class=\"input-field\"\n placeholder=\"${this.placeholder}\"\n @input=\"${() => this.handleInput()}\"\n @focus=\"${() => this.adjustTextareaHeight()}\"\n rows=\"1\"\n ></textarea>\n <div class=\"input-buttons\">\n ${this.allowFiles\n ? html `\n <button\n class=\"input-button\"\n @click=\"${() => this.handleFileClick()}\"\n title=\"Attach file\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M11.28 6.22a.75.75 0 0 0-1.06 0L7.25 9.19 5.78 7.72a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 0 0 0-1.06zM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0z\"\n />\n </svg>\n </button>\n `\n : ''}\n <button class=\"input-button send\" @click=\"${() => this.sendMessage()}\" title=\"Send\">\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M1.724 2.016a.75.75 0 0 1 1.048-.964l12.5 7a.75.75 0 0 1 0 1.292l-12.5 7a.75.75 0 0 1-1.048-.964l1.5-6.5a.75.75 0 0 1 .584-.584l5.916-1.188-5.916-1.188a.75.75 0 0 1-.584-.584l-1.5-6.5z\"\n />\n </svg>\n </button>\n </div>\n </div>\n </div>\n `;\n }\n });\n return _classThis;\n})();\n\nexport { SniceChat };\n//# sourceMappingURL=snice-chat.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","_classDescriptor","_classThis","_size_decorators","_icon_decorators","_title_decorators","_description_decorators","_actionText_decorators","_actionHref_decorators","_render_decorators","_styles_decorators","_dispatchActionEvent_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_size_initializers","_size_extraInitializers","_icon_initializers","_icon_extraInitializers","_title_initializers","_title_extraInitializers","_description_initializers","_description_extraInitializers","_actionText_initializers","_actionText_extraInitializers","_actionHref_initializers","_actionHref_extraInitializers","this","_metadata","Symbol","metadata","create","property","attribute","render","styles","dispatch","bubbles","composed","static","private","has","obj","dispatchActionEvent","size","icon","title","description","actionText","actionHref","enumerable","configurable","writable","emptyStateClasses","filter","Boolean","join","html","className","startsWith","src","slice","content","test","renderIcon","handleActionClick","css","e","preventDefault","emptyState","constructor","super","SniceChat","_messages_decorators","_currentUser_decorators","_currentAvatar_decorators","_placeholder_decorators","_allowFiles_decorators","_showTyping_decorators","_showAvatars_decorators","_showTimestamps_decorators","_messagesArea_decorators","_inputField_decorators","_init_decorators","_cleanup_decorators","_messagesChanged_decorators","_emitMessageSend_decorators","_emitMessageEdit_decorators","_emitMessageDelete_decorators","_emitMessageReact_decorators","_emitMessageThread_decorators","_emitTypingStart_decorators","_emitTypingStop_decorators","_messages_initializers","_messages_extraInitializers","_currentUser_initializers","_currentUser_extraInitializers","_currentAvatar_initializers","_currentAvatar_extraInitializers","_placeholder_initializers","_placeholder_extraInitializers","_allowFiles_initializers","_allowFiles_extraInitializers","_showTyping_initializers","_showTyping_extraInitializers","_showAvatars_initializers","_showAvatars_extraInitializers","_showTimestamps_initializers","_showTimestamps_extraInitializers","_messagesArea_initializers","_messagesArea_extraInitializers","_inputField_initializers","_inputField_extraInitializers","messages","currentUser","currentAvatar","placeholder","allowFiles","showTyping","showAvatars","showTimestamps","messagesArea","inputField","typingIndicators","Map","typingTimeout","fileInput","handleKeyDown","shiftKey","sendMessage","type","Array","String","query","ready","dispose","watch","cleanup","messagesChanged","emitMessageSend","emitMessageEdit","emitMessageDelete","emitMessageReact","emitMessageThread","emitTypingStart","emitTypingStop","addEventListener","removeEventListener","clearTimeout","setTimeout","scrollToBottom","message","attachments","messageId","newContent","emoji","addMessage","newMessage","id","Date","now","Math","random","toString","substring","updateMessage","updates","map","msg","deleteMessage","addTypingIndicator","user","timestamp","removeTypingIndicator","delete","clear","scrollTop","scrollHeight","scrollToMessage","messageEl","shadowRoot","querySelector","scrollIntoView","behavior","block","handleInput","window","trim","adjustTextareaHeight","handleFileClick","document","createElement","multiple","handleFileSelect","click","files","from","style","height","min","handleReaction","handleEdit","find","m","prompt","handleDelete","confirm","handleThread","renderEmptyState","renderMessage","renderTypingIndicators","renderInputArea","isSystem","isCurrentUser","author","avatar","split","part","toUpperCase","date","d","getHours","padStart","getMinutes","formatTime","edited","attachment","renderAttachment","reactions","renderReactions","url","bytes","toFixed","reaction","users","includes","count","values","u"],"mappings":";;;;;;yJAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,GAAS,EAAIxB,EAAWiB,IAAa,aAATT,EAAsB,CAAEiB,IAAKb,EAAWa,IAAKC,IAAKd,EAAWc,KAAQd,EAAWH,GAAMU,GACtH,GAAa,aAATX,EAAqB,CACrB,QAAe,IAAXgB,EAAmB,SACvB,GAA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K,gCA9cC8K,EA8c8CL,EAAWtL,KA7czE2L,EAAQ,KACD,GAAGA,MACVA,EAAQ,QACD,IAAIA,EAAQ,MAAMC,QAAQ,QAC9B,IAAID,WAAuBC,QAAQ,gBA0c5B;;;;MAtBK,GAzbvB,IAAwBD,CAodhB,CACA,eAAAF,CAAgB5E,EAAW2E,EAAWf,GAClC,OAAKe,GAAkC,IAArBA,EAAUzP,OAErB8E,MAAc;;UAEvB2K,EAAU7D,IAAKkE,GAAahL,EAAAA,IAAK;;gCAEXgL,EAASC,MAAMC,SAAShN,KAAKuF,aAAe,SAAW;wBAC/D,IAAMvF,KAAK6K,eAAe/C,EAAWgF,EAAS9E;;6CAEzB8E,EAAS9E;6CACT8E,EAASG;;;;MAT/B,EAcf,CACA,sBAAA1B,GACI,MAAMwB,EAAQvG,MAAMiE,KAAKzK,KAAKgG,iBAAiBkH,UAC/C,OAAqB,IAAjBH,EAAM/P,OACC,GACJ8E,MAAc;;;kBAGfiL,EAAMnE,IAAKuE,GAAMA,EAAEnE,MAAMnH,KAAK,SAA0B,IAAjBkL,EAAM/P,OAAe,KAAO;;;;;;;;KAS7E,CACA,eAAAwO,GACI,OAAO1J,MAAc;;;;;;2BAMN9B,KAAKyF;sBACV,IAAMzF,KAAK8J;sBACX,IAAM9J,KAAKiK;;;;cAInBjK,KAAK0F,WACD5D,MAAK;;;8BAGO,IAAM9B,KAAKkK;;;;;;;;;kBAUvB;wDACsC,IAAMlK,KAAKsG;;;;;;;;;;KAW3D,GAEGlI,CACV,EAvfe","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"snice-chat.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/empty-state/snice-empty-state.js","../../components/utils.js","../../components/chat/snice-chat.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, render, styles, dispatch, html, css } from 'snice';\nimport { renderIcon } from '../utils.js';\n\nvar cssContent = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--snice-spacing-2xl,3rem) var(--snice-spacing-xl,2rem);color:var(--snice-color-text-secondary,rgb(82 82 82));animation:snice-empty-in 360ms var(--snice-ease-out,ease) backwards}@keyframes snice-empty-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.empty-state--small{padding:var(--snice-spacing-xl,2rem) var(--snice-spacing-lg,1.5rem)}.empty-state--medium{padding:var(--snice-spacing-2xl,3rem) var(--snice-spacing-xl,2rem)}.empty-state--large{padding:var(--snice-spacing-3xl,4rem) var(--snice-spacing-2xl,2.5rem)}.empty-state__icon-wrapper{display:flex;align-items:center;justify-content:center;margin-bottom:var(--snice-spacing-lg,1.5rem);position:relative;width:calc(var(--snice-font-size-4xl,4rem) * 1.8);height:calc(var(--snice-font-size-4xl,4rem) * 1.8)}.empty-state__icon-wrapper::before{content:'';position:absolute;inset:0;border-radius:50%;border:1px dashed color-mix(in srgb,var(--snice-color-border,#ddd) 70%,transparent);animation:18s linear infinite snice-empty-halo}@keyframes snice-empty-halo{to{transform:rotate(360deg)}}.empty-state__icon{font-size:var(--snice-font-size-4xl, 4rem);opacity:.5;line-height:1}.empty-state__icon-wrapper ::slotted(*){display:flex;align-items:center;justify-content:center;font-size:var(--snice-font-size-4xl, 4rem);opacity:.5;line-height:1}.empty-state__icon-wrapper ::slotted(svg){width:var(--snice-font-size-4xl,4rem);height:var(--snice-font-size-4xl,4rem)}.empty-state__icon-wrapper ::slotted(img){width:var(--snice-font-size-4xl,4rem);height:var(--snice-font-size-4xl,4rem);object-fit:contain}.empty-state--small .empty-state__icon-wrapper{margin-bottom:var(--snice-spacing-md,1rem);width:calc(var(--snice-font-size-3xl,3rem) * 1.8);height:calc(var(--snice-font-size-3xl,3rem) * 1.8)}.empty-state--small .empty-state__icon{font-size:var(--snice-font-size-3xl, 3rem)}.empty-state--small .empty-state__icon-wrapper ::slotted(*){font-size:var(--snice-font-size-3xl, 3rem)}.empty-state--small .empty-state__icon-wrapper ::slotted(img),.empty-state--small .empty-state__icon-wrapper ::slotted(svg){width:var(--snice-font-size-3xl,3rem);height:var(--snice-font-size-3xl,3rem)}.empty-state--large .empty-state__icon-wrapper{margin-bottom:var(--snice-spacing-xl,2rem);width:calc(var(--snice-font-size-5xl,5rem) * 1.8);height:calc(var(--snice-font-size-5xl,5rem) * 1.8)}.empty-state--large .empty-state__icon{font-size:var(--snice-font-size-5xl, 5rem)}.empty-state--large .empty-state__icon-wrapper ::slotted(*){font-size:var(--snice-font-size-5xl, 5rem)}.empty-state--large .empty-state__icon-wrapper ::slotted(img),.empty-state--large .empty-state__icon-wrapper ::slotted(svg){width:var(--snice-font-size-5xl,5rem);height:var(--snice-font-size-5xl,5rem)}.empty-state__title{font-family:var(--snice-font-family-display);font-size:var(--snice-heading-lg, 1.25rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin:0 0 var(--snice-spacing-xs,.5rem) 0}.empty-state--small .empty-state__title{font-family:var(--snice-font-family-display);font-size:var(--snice-heading-md, 1.125rem);margin-bottom:var(--snice-spacing-2xs,.375rem)}.empty-state--large .empty-state__title{font-family:var(--snice-font-family-display);font-size:var(--snice-heading-xl, 1.5rem);margin-bottom:var(--snice-spacing-sm,.75rem)}.empty-state__description{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));margin:0 0 var(--snice-spacing-lg,1.5rem) 0;max-width:32rem;line-height:var(--snice-line-height-normal, 1.5)}.empty-state--small .empty-state__description{font-size:var(--snice-font-size-xs, .8125rem);margin-bottom:var(--snice-spacing-md,1rem)}.empty-state--large .empty-state__description{font-size:var(--snice-font-size-md, 1rem);margin-bottom:var(--snice-spacing-xl,2rem)}.empty-state__action{display:inline-flex;align-items:center;justify-content:center;padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-medium,500);color:var(--snice-color-text-inverse,rgb(250 250 250));background:var(--snice-color-primary,rgb(37 99 235));border:none;border-radius:var(--snice-border-radius-md,.375rem);text-decoration:none;cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.empty-state__action:hover{background:var(--snice-color-primary-hover,rgb(29 78 216))}.empty-state--small .empty-state__action{padding:var(--snice-spacing-2xs,.375rem) var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-xs, .8125rem)}.empty-state--large .empty-state__action{padding:var(--snice-spacing-sm,.625rem) var(--snice-spacing-lg,1.25rem);font-size:var(--snice-font-size-md, 1rem)}.empty-state__extra ::slotted(*){margin-top:var(--snice-spacing-md,1rem)}\";\n\nlet SniceEmptyState = (() => {\n let _classDecorators = [element('snice-empty-state')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _icon_decorators;\n let _icon_initializers = [];\n let _icon_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _description_decorators;\n let _description_initializers = [];\n let _description_extraInitializers = [];\n let _actionText_decorators;\n let _actionText_initializers = [];\n let _actionText_extraInitializers = [];\n let _actionHref_decorators;\n let _actionHref_initializers = [];\n let _actionHref_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _dispatchActionEvent_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 _size_decorators = [property({})];\n _icon_decorators = [property({})];\n _title_decorators = [property({})];\n _description_decorators = [property({})];\n _actionText_decorators = [property({ attribute: 'action-text', })];\n _actionHref_decorators = [property({ attribute: 'action-href', })];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _dispatchActionEvent_decorators = [dispatch('empty-state-action', { bubbles: true, composed: true })];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchActionEvent_decorators, { kind: \"method\", name: \"dispatchActionEvent\", static: false, private: false, access: { has: obj => \"dispatchActionEvent\" in obj, get: obj => obj.dispatchActionEvent }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _icon_decorators, { kind: \"field\", name: \"icon\", static: false, private: false, access: { has: obj => \"icon\" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _description_decorators, { kind: \"field\", name: \"description\", static: false, private: false, access: { has: obj => \"description\" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);\n __esDecorate(null, null, _actionText_decorators, { kind: \"field\", name: \"actionText\", static: false, private: false, access: { has: obj => \"actionText\" in obj, get: obj => obj.actionText, set: (obj, value) => { obj.actionText = value; } }, metadata: _metadata }, _actionText_initializers, _actionText_extraInitializers);\n __esDecorate(null, null, _actionHref_decorators, { kind: \"field\", name: \"actionHref\", static: false, private: false, access: { has: obj => \"actionHref\" in obj, get: obj => obj.actionHref, set: (obj, value) => { obj.actionHref = value; } }, metadata: _metadata }, _actionHref_initializers, _actionHref_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 render() {\n const emptyStateClasses = ['empty-state', `empty-state--${this.size}`].filter(Boolean).join(' ');\n return html /*html*/ `\n <div class=\"${emptyStateClasses}\" part=\"container\">\n <div class=\"empty-state__icon-wrapper\" part=\"icon\">\n <slot name=\"icon\">\n ${renderIcon(this.icon, 'empty-state__icon')}\n </slot>\n </div>\n <h3 class=\"empty-state__title\" part=\"title\">${this.title}</h3>\n <if ${this.description}>\n <p class=\"empty-state__description\" part=\"description\">${this.description}</p>\n </if>\n <if ${this.actionText}>\n <case ${this.actionHref ? 'link' : 'button'}>\n <when value=\"link\">\n <a\n href=\"${this.actionHref}\"\n class=\"empty-state__action\"\n part=\"action\"\n @click=${this.handleActionClick}\n >${this.actionText}</a>\n </when>\n <when value=\"button\">\n <button\n class=\"empty-state__action\"\n part=\"action\"\n type=\"button\"\n @click=${this.handleActionClick}\n >${this.actionText}</button>\n </when>\n </case>\n </if>\n <div class=\"empty-state__extra\"><slot></slot></div>\n </div>\n `;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n handleActionClick(e) {\n if (!this.actionHref) {\n e.preventDefault();\n }\n this.dispatchActionEvent();\n }\n dispatchActionEvent() {\n return { emptyState: this };\n }\n constructor() {\n super(...arguments);\n this.size = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.icon = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _icon_initializers, '📭'));\n this.title = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _title_initializers, 'No data'));\n this.description = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _description_initializers, ''));\n this.actionText = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _actionText_initializers, ''));\n this.actionHref = (__runInitializers(this, _actionText_extraInitializers), __runInitializers(this, _actionHref_initializers, ''));\n __runInitializers(this, _actionHref_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SniceEmptyState };\n//# sourceMappingURL=snice-empty-state.js.map\n","import { html } from 'snice';\n\n/**\n * Detects icon type and returns appropriate template\n *\n * Scheme overrides:\n * - img://path -> forces <img> element\n * - text://content -> forces text content\n *\n * Auto-detection (when no scheme):\n * - URLs (http://, https://, /, ./, ../, data:) -> <img>\n * - Image extensions (svg, png, jpg, jpeg, jfif, pjp, gif, webp, avif, jxl,\n * ico, cur, bmp, tif, tiff, heic, heif, apng) -> <img>\n * - Everything else -> span with text content (emoji, plain text)\n *\n * ⚠️ \"home\" or \"settings\" renders as PLAIN TEXT, not a Material icon.\n * For Material Symbols, use the icon slot instead:\n * <span slot=\"icon\" class=\"material-symbols-outlined\">home</span>\n *\n * Examples:\n * - \"/path/icon.svg\" -> <img>\n * - \"icon.png\" -> <img>\n * - \"img://filename\" -> <img> (forced)\n * - \"🏠\" -> <span> text (emoji)\n * - \"home\" -> <span> text (plain text, NOT a Material icon)\n * - \"text:///not/a/path\" -> <span> text (forced)\n */\nfunction renderIcon(icon, className = 'icon') {\n if (!icon)\n return html ``;\n // Check for scheme overrides first\n if (icon.startsWith('img://')) {\n const src = icon.slice(6);\n return html `<img class=\"${className}\" src=\"${src}\" alt=\"\" part=\"icon\" />`;\n }\n if (icon.startsWith('text://')) {\n const content = icon.slice(7);\n return html `<span class=\"${className}\" part=\"icon\">${content}</span>`;\n }\n // Auto-detect: Check if it's a URL pattern\n if (/^(https?:\\/\\/|\\/|\\.\\/|\\.\\.\\/|data:)/.test(icon)) {\n return html `<img class=\"${className}\" src=\"${icon}\" alt=\"\" part=\"icon\" />`;\n }\n // Auto-detect: Check if it's a file with image extension\n // Must have at least one char before the dot, and no unsupported protocol prefix\n // Covers: SVG, PNG, JPEG variants, GIF, WebP, AVIF, JPEG XL, ICO, BMP, TIFF, HEIC/HEIF, APNG\n if (/^[^:]*\\w\\.(svg|png|jpe?g|jfif|pjp|gif|webp|avif|jxl|ico|cur|bmp|tiff?|heic|heif|apng)(\\?.*)?$/i.test(icon)) {\n return html `<img class=\"${className}\" src=\"${icon}\" alt=\"\" part=\"icon\" />`;\n }\n // Default: text content (emoji, font icon ligature names)\n // All content is escaped - no HTML injection possible\n // Detect ligature icon names (lowercase words with underscores, e.g. \"search\", \"check_circle\")\n // vs emoji/other text — apply --snice-icon-font (defaults to Material Symbols Outlined)\n if (/^[a-z][a-z0-9_]*$/.test(icon)) {\n return html `<span class=\"${className} snice-icon-ligature\" style=\"font-family:var(--snice-icon-font,'Material Symbols Outlined'),sans-serif\" part=\"icon\">${icon}</span>`;\n }\n return html `<span class=\"${className}\" part=\"icon\">${icon}</span>`;\n}\n/**\n * Fallback accent hues (muted/business tones). Used when CSS vars haven't\n * been applied (test environments, SSR) or when the 8 accent tokens have\n * been stripped. Keep in lockstep with `theme.css` --snice-color-accent-1..8.\n */\nconst FALLBACK_ACCENTS = [\n 'hsl(214 55% 48%)', 'hsl(27 62% 50%)', 'hsl(160 40% 40%)', 'hsl(275 32% 52%)',\n 'hsl(42 62% 48%)', 'hsl(340 42% 55%)', 'hsl(110 32% 42%)', 'hsl(195 45% 46%)',\n];\n/**\n * Returns the 8-slot accent palette resolved against the current document's\n * CSS variables, with in-process fallback for non-browser contexts. Data-vis\n * components call this instead of hard-coding color arrays so themes flow\n * through automatically.\n *\n * The returned strings are safe for `canvas.fillStyle`, `svg fill`, or\n * inline `style` — they're either a `hsl(...)` literal or whatever the\n * consumer set as `--snice-color-accent-N`.\n */\nfunction getAccentPalette(root) {\n if (typeof getComputedStyle !== 'function')\n return FALLBACK_ACCENTS;\n const target = root ?? document.documentElement;\n const cs = getComputedStyle(target);\n return FALLBACK_ACCENTS.map((fallback, i) => {\n const v = cs.getPropertyValue(`--snice-color-accent-${i + 1}`).trim();\n return v || fallback;\n });\n}\n/**\n * Parses a CSS color string into sRGB components in [0,1]. Handles `rgb()`,\n * `rgba()`, `hsl()`, `hsla()`, and `#hex`. Returns null if unparseable.\n */\nfunction parseCssColor(value) {\n if (!value)\n return null;\n const s = value.trim();\n // Hex: #RGB #RRGGBB #RGBA #RRGGBBAA\n if (s[0] === '#') {\n const hex = s.slice(1);\n const norm = hex.length === 3 || hex.length === 4\n ? hex.slice(0, 3).split('').map(c => c + c).join('')\n : hex.slice(0, 6);\n if (norm.length !== 6)\n return null;\n const n = parseInt(norm, 16);\n return [((n >> 16) & 255) / 255, ((n >> 8) & 255) / 255, (n & 255) / 255];\n }\n // rgb() / rgba()\n const rgbMatch = s.match(/^rgba?\\(\\s*([\\d.]+)[,\\s]+([\\d.]+)[,\\s]+([\\d.]+)/i);\n if (rgbMatch) {\n return [+rgbMatch[1] / 255, +rgbMatch[2] / 255, +rgbMatch[3] / 255];\n }\n // hsl() / hsla() — quick conversion via an offscreen element for accuracy\n // (skip manual HSL→RGB to keep this helper small; browsers will resolve\n // any hsl() via getComputedStyle on the element anyway).\n if (/^hsla?\\(/i.test(s) && typeof document !== 'undefined') {\n const probe = document.createElement('span');\n probe.style.color = s;\n document.body.appendChild(probe);\n const resolved = getComputedStyle(probe).color;\n probe.remove();\n return parseCssColor(resolved);\n }\n return null;\n}\n/**\n * Relative luminance per WCAG 2.x, input in sRGB [0,1].\n */\nfunction luminance(rgb) {\n const lin = rgb.map(c => c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4));\n return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];\n}\n/**\n * Picks a readable text color for the given `bg`, choosing between the\n * theme's existing text tokens. Light bg → `--snice-color-text` (dark text);\n * dark bg → `--snice-color-text-inverse` (light text). Falls back to inverse\n * for unparseable bg (safe default for colored fills).\n *\n * Used by badge/chip (and anything else pairing a colored fill with a label)\n * so the text stays legible regardless of theme — without hardcoding #fff.\n */\nfunction pickContrastColor(bg) {\n const rgb = parseCssColor(bg);\n if (!rgb)\n return 'var(--snice-color-text-inverse)';\n // Threshold 0.55 keeps saturated blues/greens (luminance ~0.2) using the\n // inverse (light) text, and pastels/lightened fills (> 0.55) using the\n // main text token (dark).\n return luminance(rgb) > 0.55\n ? 'var(--snice-color-text)'\n : 'var(--snice-color-text-inverse)';\n}\nconst themeListeners = new Set();\nlet themeObserver = null;\nfunction onThemeChange(fn) {\n if (typeof document === 'undefined')\n return () => { };\n themeListeners.add(fn);\n if (!themeObserver) {\n themeObserver = new MutationObserver(() => {\n for (const listener of themeListeners) {\n try {\n listener();\n }\n catch { }\n }\n });\n themeObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['data-theme', 'class', 'data-theme-variant'],\n });\n }\n return () => {\n themeListeners.delete(fn);\n if (themeListeners.size === 0 && themeObserver) {\n themeObserver.disconnect();\n themeObserver = null;\n }\n };\n}\n\nexport { getAccentPalette, onThemeChange, pickContrastColor, renderIcon };\n//# sourceMappingURL=utils.js.map\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, query, styles, ready, dispose, watch, dispatch, render, css, html } from 'snice';\nimport '../empty-state/snice-empty-state.js';\nimport '../utils.js';\n\nvar cssContent = \":host{display:flex;flex-direction:column;height:var(--snice-chat-height,37.5rem);font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-size:var(--snice-font-size-md, 1rem);line-height:1.5;color:var(--snice-color-text,rgb(23 23 23));background:var(--snice-color-surface-container-high,rgb(252 251 249));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);overflow:hidden;box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.chat-container{display:flex;flex-direction:column;height:100%}.messages-area{flex:1;overflow-y:auto;padding:var(--snice-spacing-md,1rem);display:flex;flex-direction:column;gap:var(--snice-spacing-sm,.75rem)}.messages-area::-webkit-scrollbar{width:8px}.messages-area::-webkit-scrollbar-track{background:0 0}.messages-area::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.messages-area::-webkit-scrollbar-thumb:hover{background:var(--snice-color-text-secondary,rgb(82 82 82))}.message{display:flex;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-2xs,.25rem) 0;position:relative}.message:hover .message-actions{opacity:1}.message-avatar{width:2.25rem;height:2.25rem;border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-surface-container-low,rgb(250 250 250));display:flex;align-items:center;justify-content:center;color:var(--snice-color-text-secondary,rgb(82 82 82));font-weight:var(--snice-font-weight-semibold,600);font-size:var(--snice-font-size-sm, .875rem);flex-shrink:0}.message-avatar img{width:100%;height:100%;border-radius:var(--snice-border-radius-md,.25rem);object-fit:cover}.message-content{flex:1;min-width:0}.message-header{font-family:var(--snice-font-family-display);display:flex;align-items:baseline;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-3xs,.125rem)}.message-author{font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23))}.message-timestamp{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.message-edited{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-secondary,rgb(82 82 82));font-style:italic}.message-text{word-wrap:break-word;white-space:pre-wrap;color:var(--snice-color-text,rgb(23 23 23))}.message.system{justify-content:center}.message.system .message-text{text-align:center;color:var(--snice-color-text-secondary,rgb(82 82 82));font-size:var(--snice-font-size-sm, .875rem);font-style:italic}.message-attachment{margin-top:var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);overflow:hidden;max-width:25rem}.message-attachment img{max-width:100%;display:block}.attachment-file{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-surface-container-low,rgb(250 250 250))}.attachment-icon{width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:var(--snice-color-surface,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.attachment-info{flex:1;min-width:0}.attachment-name{font-weight:var(--snice-font-weight-medium,500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-size{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.message-reactions{display:flex;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-2xs,.25rem);flex-wrap:wrap}.reaction{display:flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-surface-container-low,rgb(250 250 250));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:12px;font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:all var(--snice-transition-fast, 150ms)}.reaction:hover{background:var(--snice-color-surface-hover,rgb(242 242 242))}.reaction.active{background:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-primary,rgb(37 99 235))}.reaction-emoji{font-size:var(--snice-font-size-sm, .875rem)}.reaction-count{font-size:var(--snice-font-size-xs, .75rem);font-weight:var(--snice-font-weight-medium,500)}.message-actions{position:absolute;top:-.75rem;right:var(--snice-spacing-md,1rem);background:var(--snice-color-surface-container-high,rgb(252 251 249));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1));display:flex;gap:var(--snice-spacing-3xs,.125rem);opacity:0;transition:opacity var(--snice-transition-fast, 150ms);padding:var(--snice-spacing-3xs,.125rem)}.action-button{width:1.75rem;height:1.75rem;border:none;background:0 0;cursor:pointer;border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;color:var(--snice-color-text-secondary,rgb(82 82 82));transition:background var(--snice-transition-fast, 150ms)}.action-button:hover{background:var(--snice-color-surface-hover,rgb(242 242 242))}.action-button svg{width:1rem;height:1rem}.typing-indicators{padding:0 var(--snice-spacing-md,1rem) var(--snice-spacing-xs,.5rem);min-height:1.5rem}.typing-indicator{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));font-style:italic}.typing-dots{display:flex;gap:.1875rem}.typing-dot{width:6px;height:6px;background:var(--snice-color-text-secondary,rgb(82 82 82));border-radius:50%;animation:1.4s ease-in-out infinite typing-bounce}.typing-dot:first-child{animation-delay:0s}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,100%,60%{transform:translateY(0)}30%{transform:translateY(-4px)}}.input-area{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding:var(--snice-spacing-md,1rem);background:var(--snice-color-surface-container-high,rgb(252 251 249))}.input-container{display:flex;align-items:flex-end;gap:var(--snice-spacing-xs,.5rem);background:var(--snice-color-surface-container-lowest,rgb(255 255 255));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);padding:var(--snice-spacing-xs,.5rem);transition:border-color var(--snice-transition-fast, 150ms)}.input-container:focus-within{border-color:var(--snice-color-primary,rgb(37 99 235))}.input-field{flex:1;border:none;outline:0;resize:none;font-family:inherit;font-size:var(--snice-font-size-md, 1rem);line-height:1.5;min-height:1.375rem;max-height:9.375rem;overflow-y:auto;background:0 0;color:var(--snice-color-text,rgb(23 23 23))}.input-field::placeholder{color:var(--snice-color-text-secondary,rgb(82 82 82))}.input-field::-webkit-scrollbar{width:4px}.input-field::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-sm,.125rem)}.input-buttons{display:flex;gap:var(--snice-spacing-2xs,.25rem)}.input-button{width:2rem;height:2rem;border:none;background:0 0;cursor:pointer;border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;color:var(--snice-color-text-secondary,rgb(82 82 82));transition:background var(--snice-transition-fast, 150ms)}.input-button:hover{background:var(--snice-color-surface-hover,rgb(242 242 242))}.input-button:disabled{opacity:.5;cursor:not-allowed}.input-button.send{color:var(--snice-color-text-inverse,rgb(250 250 250));background:var(--snice-color-primary,rgb(37 99 235))}.input-button.send:hover:not(:disabled){background:var(--snice-color-primary-hover,rgb(29 78 216))}.input-button svg{width:1.125rem;height:1.125rem}input[type=file]{display:none}\";\n\n/**\n * Generate unique ID\n */\nfunction generateId() {\n return `msg_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`;\n}\n/**\n * Format file size\n */\nfunction formatFileSize(bytes) {\n if (bytes < 1024)\n return `${bytes} B`;\n if (bytes < 1024 * 1024)\n return `${(bytes / 1024).toFixed(1)} KB`;\n return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;\n}\n/**\n * Format timestamp\n */\nfunction formatTime(date) {\n const d = typeof date === 'string' ? new Date(date) : date;\n const hours = d.getHours().toString().padStart(2, '0');\n const minutes = d.getMinutes().toString().padStart(2, '0');\n return `${hours}:${minutes}`;\n}\n/**\n * Get initials from name\n */\nfunction getInitials(name) {\n return name\n .split(' ')\n .map((part) => part[0])\n .join('')\n .toUpperCase()\n .substring(0, 2);\n}\n/**\n * snice-chat - Chat interface component\n *\n * A Slack-style chat interface with messages, typing indicators, and file uploads\n *\n * @element snice-chat\n *\n * @fires {CustomEvent<{ message: string; attachments?: File[] }>} message-send - Fires when sending a message\n * @fires {CustomEvent<{ messageId: string; newContent: string }>} message-edit - Fires when editing a message\n * @fires {CustomEvent<{ messageId: string }>} message-delete - Fires when deleting a message\n * @fires {CustomEvent<{ messageId: string; emoji: string }>} message-react - Fires when reacting to a message\n * @fires {CustomEvent<{ messageId: string }>} message-thread - Fires when starting a thread\n * @fires {CustomEvent<{}>} typing-start - Fires when user starts typing\n * @fires {CustomEvent<{}>} typing-stop - Fires when user stops typing\n */\nlet SniceChat = (() => {\n let _classDecorators = [element('snice-chat')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _messages_decorators;\n let _messages_initializers = [];\n let _messages_extraInitializers = [];\n let _currentUser_decorators;\n let _currentUser_initializers = [];\n let _currentUser_extraInitializers = [];\n let _currentAvatar_decorators;\n let _currentAvatar_initializers = [];\n let _currentAvatar_extraInitializers = [];\n let _placeholder_decorators;\n let _placeholder_initializers = [];\n let _placeholder_extraInitializers = [];\n let _allowFiles_decorators;\n let _allowFiles_initializers = [];\n let _allowFiles_extraInitializers = [];\n let _showTyping_decorators;\n let _showTyping_initializers = [];\n let _showTyping_extraInitializers = [];\n let _showAvatars_decorators;\n let _showAvatars_initializers = [];\n let _showAvatars_extraInitializers = [];\n let _showTimestamps_decorators;\n let _showTimestamps_initializers = [];\n let _showTimestamps_extraInitializers = [];\n let _messagesArea_decorators;\n let _messagesArea_initializers = [];\n let _messagesArea_extraInitializers = [];\n let _inputField_decorators;\n let _inputField_initializers = [];\n let _inputField_extraInitializers = [];\n let _styles_decorators;\n let _init_decorators;\n let _cleanup_decorators;\n let _messagesChanged_decorators;\n let _emitMessageSend_decorators;\n let _emitMessageEdit_decorators;\n let _emitMessageDelete_decorators;\n let _emitMessageReact_decorators;\n let _emitMessageThread_decorators;\n let _emitTypingStart_decorators;\n let _emitTypingStop_decorators;\n let _render_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.messages = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _messages_initializers, []));\n this.currentUser = (__runInitializers(this, _messages_extraInitializers), __runInitializers(this, _currentUser_initializers, 'You'));\n this.currentAvatar = (__runInitializers(this, _currentUser_extraInitializers), __runInitializers(this, _currentAvatar_initializers, ''));\n this.placeholder = (__runInitializers(this, _currentAvatar_extraInitializers), __runInitializers(this, _placeholder_initializers, 'Type a message...'));\n this.allowFiles = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _allowFiles_initializers, true));\n this.showTyping = (__runInitializers(this, _allowFiles_extraInitializers), __runInitializers(this, _showTyping_initializers, true));\n this.showAvatars = (__runInitializers(this, _showTyping_extraInitializers), __runInitializers(this, _showAvatars_initializers, true));\n this.showTimestamps = (__runInitializers(this, _showAvatars_extraInitializers), __runInitializers(this, _showTimestamps_initializers, true));\n this.messagesArea = (__runInitializers(this, _showTimestamps_extraInitializers), __runInitializers(this, _messagesArea_initializers, void 0));\n this.inputField = (__runInitializers(this, _messagesArea_extraInitializers), __runInitializers(this, _inputField_initializers, void 0));\n this.typingIndicators = (__runInitializers(this, _inputField_extraInitializers), new Map());\n this.typingTimeout = null;\n this.fileInput = null;\n this.handleKeyDown = (e) => {\n const target = e.target;\n if (target !== this.inputField)\n return;\n if (e.key === 'Enter' && !e.shiftKey) {\n e.preventDefault();\n this.sendMessage();\n }\n };\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _messages_decorators = [property({ type: Array, attribute: false })];\n _currentUser_decorators = [property({ type: String, attribute: 'current-user' })];\n _currentAvatar_decorators = [property({ type: String, attribute: 'current-avatar' })];\n _placeholder_decorators = [property({ type: String })];\n _allowFiles_decorators = [property({ type: Boolean, attribute: 'allow-files' })];\n _showTyping_decorators = [property({ type: Boolean, attribute: 'show-typing' })];\n _showAvatars_decorators = [property({ type: Boolean, attribute: 'show-avatars' })];\n _showTimestamps_decorators = [property({ type: Boolean, attribute: 'show-timestamps' })];\n _messagesArea_decorators = [query('.messages-area')];\n _inputField_decorators = [query('.input-field')];\n _styles_decorators = [styles()];\n _init_decorators = [ready()];\n _cleanup_decorators = [dispose()];\n _messagesChanged_decorators = [watch('messages')];\n _emitMessageSend_decorators = [dispatch('message-send', { bubbles: true, composed: true })];\n _emitMessageEdit_decorators = [dispatch('message-edit', { bubbles: true, composed: true })];\n _emitMessageDelete_decorators = [dispatch('message-delete', { bubbles: true, composed: true })];\n _emitMessageReact_decorators = [dispatch('message-react', { bubbles: true, composed: true })];\n _emitMessageThread_decorators = [dispatch('message-thread', { bubbles: true, composed: true })];\n _emitTypingStart_decorators = [dispatch('typing-start', { bubbles: true, composed: true })];\n _emitTypingStop_decorators = [dispatch('typing-stop', { bubbles: true, composed: true })];\n _render_decorators = [render()];\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _messagesChanged_decorators, { kind: \"method\", name: \"messagesChanged\", static: false, private: false, access: { has: obj => \"messagesChanged\" in obj, get: obj => obj.messagesChanged }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageSend_decorators, { kind: \"method\", name: \"emitMessageSend\", static: false, private: false, access: { has: obj => \"emitMessageSend\" in obj, get: obj => obj.emitMessageSend }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageEdit_decorators, { kind: \"method\", name: \"emitMessageEdit\", static: false, private: false, access: { has: obj => \"emitMessageEdit\" in obj, get: obj => obj.emitMessageEdit }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageDelete_decorators, { kind: \"method\", name: \"emitMessageDelete\", static: false, private: false, access: { has: obj => \"emitMessageDelete\" in obj, get: obj => obj.emitMessageDelete }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageReact_decorators, { kind: \"method\", name: \"emitMessageReact\", static: false, private: false, access: { has: obj => \"emitMessageReact\" in obj, get: obj => obj.emitMessageReact }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitMessageThread_decorators, { kind: \"method\", name: \"emitMessageThread\", static: false, private: false, access: { has: obj => \"emitMessageThread\" in obj, get: obj => obj.emitMessageThread }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitTypingStart_decorators, { kind: \"method\", name: \"emitTypingStart\", static: false, private: false, access: { has: obj => \"emitTypingStart\" in obj, get: obj => obj.emitTypingStart }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitTypingStop_decorators, { kind: \"method\", name: \"emitTypingStop\", static: false, private: false, access: { has: obj => \"emitTypingStop\" in obj, get: obj => obj.emitTypingStop }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _messages_decorators, { kind: \"field\", name: \"messages\", static: false, private: false, access: { has: obj => \"messages\" in obj, get: obj => obj.messages, set: (obj, value) => { obj.messages = value; } }, metadata: _metadata }, _messages_initializers, _messages_extraInitializers);\n __esDecorate(null, null, _currentUser_decorators, { kind: \"field\", name: \"currentUser\", static: false, private: false, access: { has: obj => \"currentUser\" in obj, get: obj => obj.currentUser, set: (obj, value) => { obj.currentUser = value; } }, metadata: _metadata }, _currentUser_initializers, _currentUser_extraInitializers);\n __esDecorate(null, null, _currentAvatar_decorators, { kind: \"field\", name: \"currentAvatar\", static: false, private: false, access: { has: obj => \"currentAvatar\" in obj, get: obj => obj.currentAvatar, set: (obj, value) => { obj.currentAvatar = value; } }, metadata: _metadata }, _currentAvatar_initializers, _currentAvatar_extraInitializers);\n __esDecorate(null, null, _placeholder_decorators, { kind: \"field\", name: \"placeholder\", static: false, private: false, access: { has: obj => \"placeholder\" in obj, get: obj => obj.placeholder, set: (obj, value) => { obj.placeholder = value; } }, metadata: _metadata }, _placeholder_initializers, _placeholder_extraInitializers);\n __esDecorate(null, null, _allowFiles_decorators, { kind: \"field\", name: \"allowFiles\", static: false, private: false, access: { has: obj => \"allowFiles\" in obj, get: obj => obj.allowFiles, set: (obj, value) => { obj.allowFiles = value; } }, metadata: _metadata }, _allowFiles_initializers, _allowFiles_extraInitializers);\n __esDecorate(null, null, _showTyping_decorators, { kind: \"field\", name: \"showTyping\", static: false, private: false, access: { has: obj => \"showTyping\" in obj, get: obj => obj.showTyping, set: (obj, value) => { obj.showTyping = value; } }, metadata: _metadata }, _showTyping_initializers, _showTyping_extraInitializers);\n __esDecorate(null, null, _showAvatars_decorators, { kind: \"field\", name: \"showAvatars\", static: false, private: false, access: { has: obj => \"showAvatars\" in obj, get: obj => obj.showAvatars, set: (obj, value) => { obj.showAvatars = value; } }, metadata: _metadata }, _showAvatars_initializers, _showAvatars_extraInitializers);\n __esDecorate(null, null, _showTimestamps_decorators, { kind: \"field\", name: \"showTimestamps\", static: false, private: false, access: { has: obj => \"showTimestamps\" in obj, get: obj => obj.showTimestamps, set: (obj, value) => { obj.showTimestamps = value; } }, metadata: _metadata }, _showTimestamps_initializers, _showTimestamps_extraInitializers);\n __esDecorate(null, null, _messagesArea_decorators, { kind: \"field\", name: \"messagesArea\", static: false, private: false, access: { has: obj => \"messagesArea\" in obj, get: obj => obj.messagesArea, set: (obj, value) => { obj.messagesArea = value; } }, metadata: _metadata }, _messagesArea_initializers, _messagesArea_extraInitializers);\n __esDecorate(null, null, _inputField_decorators, { kind: \"field\", name: \"inputField\", static: false, private: false, access: { has: obj => \"inputField\" in obj, get: obj => obj.inputField, set: (obj, value) => { obj.inputField = value; } }, metadata: _metadata }, _inputField_initializers, _inputField_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 styles() {\n return css /*css*/ `${cssContent}`;\n }\n init() {\n this.addEventListener('keydown', this.handleKeyDown);\n }\n cleanup() {\n this.removeEventListener('keydown', this.handleKeyDown);\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n }\n }\n messagesChanged() {\n // Scroll to bottom when new message added\n setTimeout(() => this.scrollToBottom(), 0);\n }\n emitMessageSend(message, attachments) {\n return { message, attachments };\n }\n emitMessageEdit(messageId, newContent) {\n return { messageId, newContent };\n }\n emitMessageDelete(messageId) {\n return { messageId };\n }\n emitMessageReact(messageId, emoji) {\n return { messageId, emoji };\n }\n emitMessageThread(messageId) {\n return { messageId };\n }\n emitTypingStart() {\n return {};\n }\n emitTypingStop() {\n return {};\n }\n /**\n * Add a message\n */\n addMessage(message) {\n const newMessage = {\n ...message,\n id: generateId(),\n };\n this.messages = [...this.messages, newMessage];\n }\n /**\n * Update a message\n */\n updateMessage(messageId, updates) {\n this.messages = this.messages.map((msg) => msg.id === messageId ? { ...msg, ...updates } : msg);\n }\n /**\n * Delete a message\n */\n deleteMessage(messageId) {\n this.messages = this.messages.filter((msg) => msg.id !== messageId);\n }\n /**\n * Add typing indicator\n */\n addTypingIndicator(user) {\n this.typingIndicators.set(user, { user, timestamp: new Date() });\n }\n /**\n * Remove typing indicator\n */\n removeTypingIndicator(user) {\n this.typingIndicators.delete(user);\n }\n /**\n * Clear all messages\n */\n clear() {\n this.messages = [];\n }\n /**\n * Scroll to bottom\n */\n scrollToBottom() {\n if (this.messagesArea) {\n this.messagesArea.scrollTop = this.messagesArea.scrollHeight;\n }\n }\n /**\n * Scroll to message\n */\n scrollToMessage(messageId) {\n // Using dynamic querySelector for data attributes is acceptable\n const messageEl = this.shadowRoot?.querySelector(`[data-message-id=\"${messageId}\"]`);\n if (messageEl) {\n messageEl.scrollIntoView({ behavior: 'smooth', block: 'center' });\n }\n }\n handleInput() {\n // Start typing indicator\n if (!this.typingTimeout) {\n this.emitTypingStart();\n }\n // Reset typing timeout\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n }\n this.typingTimeout = window.setTimeout(() => {\n this.emitTypingStop();\n this.typingTimeout = null;\n }, 1000);\n }\n sendMessage() {\n const message = this.inputField.value.trim();\n if (!message)\n return;\n this.emitMessageSend(message);\n this.inputField.value = '';\n this.adjustTextareaHeight();\n // Stop typing\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n this.typingTimeout = null;\n }\n this.emitTypingStop();\n }\n handleFileClick() {\n if (!this.fileInput) {\n this.fileInput = document.createElement('input');\n this.fileInput.type = 'file';\n this.fileInput.multiple = true;\n this.fileInput.addEventListener('change', () => this.handleFileSelect());\n }\n this.fileInput.click();\n }\n handleFileSelect() {\n if (!this.fileInput?.files || this.fileInput.files.length === 0)\n return;\n const files = Array.from(this.fileInput.files);\n this.emitMessageSend('', files);\n this.fileInput.value = '';\n }\n adjustTextareaHeight() {\n if (!this.inputField)\n return;\n this.inputField.style.height = 'auto';\n this.inputField.style.height = `${Math.min(this.inputField.scrollHeight, 150)}px`;\n }\n handleReaction(messageId, emoji) {\n this.emitMessageReact(messageId, emoji);\n }\n handleEdit(messageId) {\n const message = this.messages.find((m) => m.id === messageId);\n if (!message)\n return;\n // Simple prompt for now - in a real app, this would be inline editing\n const newContent = prompt('Edit message:', message.content);\n if (newContent && newContent !== message.content) {\n this.emitMessageEdit(messageId, newContent);\n }\n }\n handleDelete(messageId) {\n if (confirm('Delete this message?')) {\n this.emitMessageDelete(messageId);\n }\n }\n handleThread(messageId) {\n this.emitMessageThread(messageId);\n }\n render() {\n return html /*html*/ `\n <div part=\"base\" class=\"chat-container\">\n <div part=\"messages\" class=\"messages-area\">\n ${this.messages.length === 0\n ? this.renderEmptyState()\n : this.messages.map((msg) => this.renderMessage(msg))}\n </div>\n ${this.showTyping && this.typingIndicators.size > 0 ? this.renderTypingIndicators() : ''}\n ${this.renderInputArea()}\n </div>\n `;\n }\n renderEmptyState() {\n return html /*html*/ `\n <div style=\"padding: 2rem;\">\n <snice-empty-state \n icon=\"💬\" \n title=\"No messages yet\" \n description=\"Start the conversation!\"\n size=\"medium\">\n </snice-empty-state>\n </div>\n `;\n }\n renderMessage(message) {\n const isSystem = message.type === 'system';\n const isCurrentUser = message.author === this.currentUser;\n if (isSystem) {\n return html /*html*/ `\n <div class=\"message system\" data-message-id=\"${message.id}\">\n <div class=\"message-content\">\n <div class=\"message-text\">${message.content}</div>\n </div>\n </div>\n `;\n }\n return html /*html*/ `\n <div class=\"message\" data-message-id=\"${message.id}\">\n ${this.showAvatars\n ? html `\n <div class=\"message-avatar\">\n ${message.avatar\n ? html `<img src=\"${message.avatar}\" alt=\"${message.author}\" />`\n : getInitials(message.author)}\n </div>\n `\n : ''}\n <div class=\"message-content\">\n <div class=\"message-header\">\n <span class=\"message-author\">${message.author}</span>\n ${this.showTimestamps\n ? html `<span class=\"message-timestamp\">${formatTime(message.timestamp)}</span>`\n : ''}\n ${message.edited ? html `<span class=\"message-edited\">(edited)</span>` : ''}\n </div>\n ${message.content ? html `<div class=\"message-text\">${message.content}</div>` : ''}\n ${message.attachment ? this.renderAttachment(message.attachment) : ''}\n ${message.reactions && message.reactions.length > 0\n ? this.renderReactions(message.id, message.reactions, isCurrentUser)\n : ''}\n </div>\n ${isCurrentUser\n ? html `\n <div class=\"message-actions\">\n <button\n class=\"action-button\"\n @click=\"${() => this.handleReaction(message.id, '👍')}\"\n title=\"React\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.5 7.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm5 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM8 11c1.5 0 2.7-1 3.2-2H4.8c.5 1 1.7 2 3.2 2z\"\n />\n </svg>\n </button>\n <button\n class=\"action-button\"\n @click=\"${() => this.handleEdit(message.id)}\"\n title=\"Edit\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25a1.75 1.75 0 0 1 .445-.758l8.61-8.61z\"\n />\n </svg>\n </button>\n <button\n class=\"action-button\"\n @click=\"${() => this.handleDelete(message.id)}\"\n title=\"Delete\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15z\"\n />\n </svg>\n </button>\n </div>\n `\n : ''}\n </div>\n `;\n }\n renderAttachment(attachment) {\n if (!attachment)\n return '';\n if (attachment.type === 'image') {\n return html /*html*/ `\n <div class=\"message-attachment\">\n <img src=\"${attachment.url}\" alt=\"${attachment.name}\" />\n </div>\n `;\n }\n return html /*html*/ `\n <div class=\"message-attachment\">\n <div class=\"attachment-file\">\n <div class=\"attachment-icon\">\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M3.5 1.75a.25.25 0 0 1 .25-.25h3.5a.75.75 0 0 0 0 1.5h.75a.25.25 0 0 1 .25.25v2.75a.75.75 0 0 0 1.5 0V2.25c0-.69-.56-1.25-1.25-1.25h-.75c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v11.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V6.25a.75.75 0 0 0-1.5 0v7.5a.25.25 0 0 1-.25.25h-8.5a.25.25 0 0 1-.25-.25V1.75z\"\n />\n </svg>\n </div>\n <div class=\"attachment-info\">\n <div class=\"attachment-name\">${attachment.name}</div>\n ${attachment.size\n ? html `<div class=\"attachment-size\">${formatFileSize(attachment.size)}</div>`\n : ''}\n </div>\n </div>\n </div>\n `;\n }\n renderReactions(messageId, reactions, isCurrentUser) {\n if (!reactions || reactions.length === 0)\n return '';\n return html /*html*/ `\n <div class=\"message-reactions\">\n ${reactions.map((reaction) => html `\n <div\n class=\"reaction ${reaction.users.includes(this.currentUser) ? 'active' : ''}\"\n @click=\"${() => this.handleReaction(messageId, reaction.emoji)}\"\n >\n <span class=\"reaction-emoji\">${reaction.emoji}</span>\n <span class=\"reaction-count\">${reaction.count}</span>\n </div>\n `)}\n </div>\n `;\n }\n renderTypingIndicators() {\n const users = Array.from(this.typingIndicators.values());\n if (users.length === 0)\n return '';\n return html /*html*/ `\n <div class=\"typing-indicators\">\n <div class=\"typing-indicator\">\n <span>${users.map((u) => u.user).join(', ')} ${users.length === 1 ? 'is' : 'are'} typing</span>\n <div class=\"typing-dots\">\n <div class=\"typing-dot\"></div>\n <div class=\"typing-dot\"></div>\n <div class=\"typing-dot\"></div>\n </div>\n </div>\n </div>\n `;\n }\n renderInputArea() {\n return html /*html*/ `\n <div part=\"input-area\" class=\"input-area\">\n <div part=\"input-container\" class=\"input-container\">\n <textarea\n part=\"input\"\n class=\"input-field\"\n placeholder=\"${this.placeholder}\"\n @input=\"${() => this.handleInput()}\"\n @focus=\"${() => this.adjustTextareaHeight()}\"\n rows=\"1\"\n ></textarea>\n <div class=\"input-buttons\">\n ${this.allowFiles\n ? html `\n <button\n class=\"input-button\"\n @click=\"${() => this.handleFileClick()}\"\n title=\"Attach file\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M11.28 6.22a.75.75 0 0 0-1.06 0L7.25 9.19 5.78 7.72a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 0 0 0-1.06zM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0z\"\n />\n </svg>\n </button>\n `\n : ''}\n <button class=\"input-button send\" @click=\"${() => this.sendMessage()}\" title=\"Send\">\n <svg viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path\n d=\"M1.724 2.016a.75.75 0 0 1 1.048-.964l12.5 7a.75.75 0 0 1 0 1.292l-12.5 7a.75.75 0 0 1-1.048-.964l1.5-6.5a.75.75 0 0 1 .584-.584l5.916-1.188-5.916-1.188a.75.75 0 0 1-.584-.584l-1.5-6.5z\"\n />\n </svg>\n </button>\n </div>\n </div>\n </div>\n `;\n }\n });\n return _classThis;\n})();\n\nexport { SniceChat };\n//# sourceMappingURL=snice-chat.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","_classDescriptor","_classThis","_size_decorators","_icon_decorators","_title_decorators","_description_decorators","_actionText_decorators","_actionHref_decorators","_render_decorators","_styles_decorators","_dispatchActionEvent_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_size_initializers","_size_extraInitializers","_icon_initializers","_icon_extraInitializers","_title_initializers","_title_extraInitializers","_description_initializers","_description_extraInitializers","_actionText_initializers","_actionText_extraInitializers","_actionHref_initializers","_actionHref_extraInitializers","this","_metadata","Symbol","metadata","create","property","attribute","render","styles","dispatch","bubbles","composed","static","private","has","obj","dispatchActionEvent","size","icon","title","description","actionText","actionHref","enumerable","configurable","writable","emptyStateClasses","filter","Boolean","join","html","className","startsWith","src","slice","content","test","renderIcon","handleActionClick","css","e","preventDefault","emptyState","constructor","super","SniceChat","_messages_decorators","_currentUser_decorators","_currentAvatar_decorators","_placeholder_decorators","_allowFiles_decorators","_showTyping_decorators","_showAvatars_decorators","_showTimestamps_decorators","_messagesArea_decorators","_inputField_decorators","_init_decorators","_cleanup_decorators","_messagesChanged_decorators","_emitMessageSend_decorators","_emitMessageEdit_decorators","_emitMessageDelete_decorators","_emitMessageReact_decorators","_emitMessageThread_decorators","_emitTypingStart_decorators","_emitTypingStop_decorators","_messages_initializers","_messages_extraInitializers","_currentUser_initializers","_currentUser_extraInitializers","_currentAvatar_initializers","_currentAvatar_extraInitializers","_placeholder_initializers","_placeholder_extraInitializers","_allowFiles_initializers","_allowFiles_extraInitializers","_showTyping_initializers","_showTyping_extraInitializers","_showAvatars_initializers","_showAvatars_extraInitializers","_showTimestamps_initializers","_showTimestamps_extraInitializers","_messagesArea_initializers","_messagesArea_extraInitializers","_inputField_initializers","_inputField_extraInitializers","messages","currentUser","currentAvatar","placeholder","allowFiles","showTyping","showAvatars","showTimestamps","messagesArea","inputField","typingIndicators","Map","typingTimeout","fileInput","handleKeyDown","shiftKey","sendMessage","type","Array","String","query","ready","dispose","watch","cleanup","messagesChanged","emitMessageSend","emitMessageEdit","emitMessageDelete","emitMessageReact","emitMessageThread","emitTypingStart","emitTypingStop","addEventListener","removeEventListener","clearTimeout","setTimeout","scrollToBottom","message","attachments","messageId","newContent","emoji","addMessage","newMessage","id","Date","now","Math","random","toString","substring","updateMessage","updates","map","msg","deleteMessage","addTypingIndicator","user","timestamp","removeTypingIndicator","delete","clear","scrollTop","scrollHeight","scrollToMessage","messageEl","shadowRoot","querySelector","scrollIntoView","behavior","block","handleInput","window","trim","adjustTextareaHeight","handleFileClick","document","createElement","multiple","handleFileSelect","click","files","from","style","height","min","handleReaction","handleEdit","find","m","prompt","handleDelete","confirm","handleThread","renderEmptyState","renderMessage","renderTypingIndicators","renderInputArea","isSystem","isCurrentUser","author","avatar","split","part","toUpperCase","date","d","getHours","padStart","getMinutes","formatTime","edited","attachment","renderAttachment","reactions","renderReactions","url","bytes","toFixed","reaction","users","includes","count","values","u"],"mappings":";;;;;;yJAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,GAAS,EAAIxB,EAAWiB,IAAa,aAATT,EAAsB,CAAEiB,IAAKb,EAAWa,IAAKC,IAAKd,EAAWc,KAAQd,EAAWH,GAAMU,GACtH,GAAa,aAATX,EAAqB,CACrB,QAAe,IAAXgB,EAAmB,SACvB,GAAe,OAAXA,GAAqC,iBAAXA,EAAqB,MAAM,IAAIlB,UAAU,oBACnEC,EAAIH,EAAOoB,EAAOC,QAAMb,EAAWa,IAAMlB,IACz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C9B,IAAID,WAAuBC,QAAQ,gBA0c5B;;;;MAtBK,GAzbvB,IAAwBD,CAodhB,CACA,eAAAF,CAAgB5E,EAAW2E,EAAWf,GAClC,OAAKe,GAAkC,IAArBA,EAAUzP,OAErB8E,MAAc;;UAEvB2K,EAAU7D,IAAKkE,GAAahL,EAAAA,IAAK;;gCAEXgL,EAASC,MAAMC,SAAShN,KAAKuF,aAAe,SAAW;wBAC/D,IAAMvF,KAAK6K,eAAe/C,EAAWgF,EAAS9E;;6CAEzB8E,EAAS9E;6CACT8E,EAASG;;;;MAT/B,EAcf,CACA,sBAAA1B,GACI,MAAMwB,EAAQvG,MAAMiE,KAAKzK,KAAKgG,iBAAiBkH,UAC/C,OAAqB,IAAjBH,EAAM/P,OACC,GACJ8E,MAAc;;;kBAGfiL,EAAMnE,IAAKuE,GAAMA,EAAEnE,MAAMnH,KAAK,SAA0B,IAAjBkL,EAAM/P,OAAe,KAAO;;;;;;;;KAS7E,CACA,eAAAwO,GACI,OAAO1J,MAAc;;;;;;2BAMN9B,KAAKyF;sBACV,IAAMzF,KAAK8J;sBACX,IAAM9J,KAAKiK;;;;cAInBjK,KAAK0F,WACD5D,MAAK;;;8BAGO,IAAM9B,KAAKkK;;;;;;;;;kBAUvB;wDACsC,IAAMlK,KAAKsG;;;;;;;;;;KAW3D,GAEGlI,CACV,EAvfe","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.2.
|
|
2
|
+
* snice v5.2.1
|
|
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.
|