@simai-studio/chat 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +182 -0
- package/README.md +67 -2
- package/dist/package-receipt.json +1553 -0
- package/dist/set.json +107 -0
- package/dist/smart/chat-composer/aliases.json +67 -0
- package/dist/smart/chat-composer/aliases.json.gz +0 -0
- package/dist/smart/chat-composer/component.json +698 -0
- package/dist/smart/chat-composer/component.json.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.css +223 -0
- package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
- package/dist/smart/chat-composer/examples.json +550 -0
- package/dist/smart/chat-composer/examples.json.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.js +1028 -0
- package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js +73 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
- package/dist/smart/chat-composer/lang/en.json +28 -0
- package/dist/smart/chat-composer/lang/en.json.gz +0 -0
- package/dist/smart/chat-composer/lang/ru.json +28 -0
- package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
- package/dist/smart/chat-composer/probe.json +416 -0
- package/dist/smart/chat-composer/probe.json.gz +0 -0
- package/dist/smart/chat-composer/smart.manifest.json +651 -0
- package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-composer/static/default/busy.html +20 -0
- package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/disabled.html +20 -0
- package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/files.html +99 -0
- package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
- package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/reference.html +20 -0
- package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-composer/static/sheets.json +110 -0
- package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
- package/dist/smart/chat-composer/studio.fixture.json +18 -0
- package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-composer/studio.scenario.json +37 -0
- package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-composer/template/default.css +198 -0
- package/dist/smart/chat-composer/template/default.css.gz +0 -0
- package/dist/smart/chat-composer/template/default.js +109 -0
- package/dist/smart/chat-composer/template/default.js.gz +0 -0
- package/dist/smart/chat-composer/template/parts.js +89 -0
- package/dist/smart/chat-composer/template/parts.js.gz +0 -0
- package/dist/smart/chat-interlocutor/aliases.json +20 -0
- package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
- package/dist/smart/chat-interlocutor/component.json +436 -0
- package/dist/smart/chat-interlocutor/component.json.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +72 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
- package/dist/smart/chat-interlocutor/examples.json +379 -0
- package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/en.json +13 -0
- package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
- package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
- package/dist/smart/chat-interlocutor/probe.json +204 -0
- package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/sheets.json +110 -0
- package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.css +58 -0
- package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.js +43 -0
- package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
- package/dist/smart/chat-message/aliases.json +125 -0
- package/dist/smart/chat-message/aliases.json.gz +0 -0
- package/dist/smart/chat-message/component.json +850 -0
- package/dist/smart/chat-message/component.json.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.css +2260 -0
- package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.min.css +2 -0
- package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
- package/dist/smart/chat-message/examples.json +1626 -0
- package/dist/smart/chat-message/examples.json.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.js +5859 -0
- package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.min.js +15 -0
- package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
- package/dist/smart/chat-message/lang/en.json +176 -0
- package/dist/smart/chat-message/lang/en.json.gz +0 -0
- package/dist/smart/chat-message/lang/ru.json +180 -0
- package/dist/smart/chat-message/lang/ru.json.gz +0 -0
- package/dist/smart/chat-message/probe.json +1051 -0
- package/dist/smart/chat-message/probe.json.gz +0 -0
- package/dist/smart/chat-message/smart.manifest.json +824 -0
- package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-card.html +2 -0
- package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
- package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
- package/dist/smart/chat-message/static/default/deliverables.html +2 -0
- package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
- package/dist/smart/chat-message/static/default/document.html +13 -0
- package/dist/smart/chat-message/static/default/document.html.gz +0 -0
- package/dist/smart/chat-message/static/default/failed.html +2 -0
- package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
- package/dist/smart/chat-message/static/default/limit.html +2 -0
- package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
- package/dist/smart/chat-message/static/default/proposal.html +40 -0
- package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-message/static/default/question.html +22 -0
- package/dist/smart/chat-message/static/default/question.html.gz +0 -0
- package/dist/smart/chat-message/static/default/reference.html +2 -0
- package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-message/static/default/steps.html +2 -0
- package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
- package/dist/smart/chat-message/static/default/stopped.html +2 -0
- package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
- package/dist/smart/chat-message/static/default/waiting.html +2 -0
- package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-own.html +2 -0
- package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-reply.html +2 -0
- package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person.html +12 -0
- package/dist/smart/chat-message/static/person/person.html.gz +0 -0
- package/dist/smart/chat-message/static/sheets.json +452 -0
- package/dist/smart/chat-message/static/sheets.json.gz +0 -0
- package/dist/smart/chat-message/studio.fixture.json +27 -0
- package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-message/studio.scenario.json +22 -0
- package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-message/template/default.css +1805 -0
- package/dist/smart/chat-message/template/default.css.gz +0 -0
- package/dist/smart/chat-message/template/default.js +27 -0
- package/dist/smart/chat-message/template/default.js.gz +0 -0
- package/dist/smart/chat-message/template/person.js +11 -0
- package/dist/smart/chat-message/template/person.js.gz +0 -0
- package/dist/smart/chat-threads/aliases.json +174 -0
- package/dist/smart/chat-threads/aliases.json.gz +0 -0
- package/dist/smart/chat-threads/component.json +1240 -0
- package/dist/smart/chat-threads/component.json.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.css +134 -0
- package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
- package/dist/smart/chat-threads/examples.json +689 -0
- package/dist/smart/chat-threads/examples.json.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.js +859 -0
- package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
- package/dist/smart/chat-threads/lang/en.json +18 -0
- package/dist/smart/chat-threads/lang/en.json.gz +0 -0
- package/dist/smart/chat-threads/lang/ru.json +18 -0
- package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
- package/dist/smart/chat-threads/probe.json +406 -0
- package/dist/smart/chat-threads/probe.json.gz +0 -0
- package/dist/smart/chat-threads/smart.manifest.json +1159 -0
- package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.html +145 -0
- package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html +145 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.html +58 -0
- package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html +58 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.html +116 -0
- package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html +116 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/empty.html +50 -0
- package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/loading.html +50 -0
- package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.html +104 -0
- package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html +104 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.html +123 -0
- package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html +123 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html +99 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +99 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/sheets.json +503 -0
- package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
- package/dist/smart/chat-threads/studio.fixture.json +23 -0
- package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-threads/template/default.css +113 -0
- package/dist/smart/chat-threads/template/default.css.gz +0 -0
- package/dist/smart/chat-threads/template/default.js +62 -0
- package/dist/smart/chat-threads/template/default.js.gz +0 -0
- package/dist/smart/chat-window/aliases.json +395 -0
- package/dist/smart/chat-window/aliases.json.gz +0 -0
- package/dist/smart/chat-window/component.json +2819 -0
- package/dist/smart/chat-window/component.json.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.css +1509 -0
- package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.min.css +2 -0
- package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
- package/dist/smart/chat-window/examples.json +2798 -0
- package/dist/smart/chat-window/examples.json.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.js +12780 -0
- package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.min.js +1 -0
- package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
- package/dist/smart/chat-window/lang/en.json +212 -0
- package/dist/smart/chat-window/lang/en.json.gz +0 -0
- package/dist/smart/chat-window/lang/ru.json +218 -0
- package/dist/smart/chat-window/lang/ru.json.gz +0 -0
- package/dist/smart/chat-window/probe.json +2023 -0
- package/dist/smart/chat-window/probe.json.gz +0 -0
- package/dist/smart/chat-window/smart.manifest.json +2844 -0
- package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-window/static/default/archived.html +100 -0
- package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
- package/dist/smart/chat-window/static/default/embedded.html +125 -0
- package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
- package/dist/smart/chat-window/static/default/greeting.html +125 -0
- package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
- package/dist/smart/chat-window/static/default/people.html +104 -0
- package/dist/smart/chat-window/static/default/people.html.gz +0 -0
- package/dist/smart/chat-window/static/default/proposal.html +161 -0
- package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-window/static/default/reference.html +123 -0
- package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-window/static/default/waiting.html +123 -0
- package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-window/static/sheets.json +526 -0
- package/dist/smart/chat-window/static/sheets.json.gz +0 -0
- package/dist/smart/chat-window/studio.fixture.json +13 -0
- package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-window/studio.scenario.json +95 -0
- package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-window/template/default.css +1168 -0
- package/dist/smart/chat-window/template/default.css.gz +0 -0
- package/dist/smart/chat-window/template/default.js +12 -0
- package/dist/smart/chat-window/template/default.js.gz +0 -0
- package/dist/smart/rule.js +193 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +29 -4
|
@@ -0,0 +1,859 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ "26a07784f30a"
|
|
6
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
|
|
8
|
+
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony import */ var _core_js_smart_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("deb1a4d61565");
|
|
11
|
+
/* harmony import */ var _core_js_element_manifest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("5b7d7695b41b");
|
|
12
|
+
/* harmony import */ var _core_js_deprecations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d3818183b14c");
|
|
13
|
+
/* harmony import */ var _js_templates_default_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("087808edd63a");
|
|
14
|
+
/* harmony import */ var _component_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("99f949a3941b");
|
|
15
|
+
/* harmony import */ var _aliases_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("0ccefade0afb");
|
|
16
|
+
/* harmony import */ var _lang_en_json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("86e6dcdc95d2");
|
|
17
|
+
/* harmony import */ var _lang_ru_json__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("0a15015f52cc");
|
|
18
|
+
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_core_js_smart_base__WEBPACK_IMPORTED_MODULE_0__, _core_js_element_manifest__WEBPACK_IMPORTED_MODULE_1__, _core_js_deprecations__WEBPACK_IMPORTED_MODULE_2__, _js_templates_default_js__WEBPACK_IMPORTED_MODULE_3__]);
|
|
19
|
+
([_core_js_smart_base__WEBPACK_IMPORTED_MODULE_0__, _core_js_element_manifest__WEBPACK_IMPORTED_MODULE_1__, _core_js_deprecations__WEBPACK_IMPORTED_MODULE_2__, _js_templates_default_js__WEBPACK_IMPORTED_MODULE_3__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
20
|
+
/* harmony import */ var _core_js_smart_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_smart_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
21
|
+
/* harmony import */ var _core_js_element_manifest__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_core_js_element_manifest__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
+
/* harmony import */ var _core_js_deprecations__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_core_js_deprecations__WEBPACK_IMPORTED_MODULE_2__);
|
|
23
|
+
// A person's conversations, newest first. It came from simai/ui-chat as
|
|
24
|
+
// sf-chat-thread-list and was promoted here under a neutral name (owner,
|
|
25
|
+
// 2026-10-25): an assistant's conversations and the chats between people in
|
|
26
|
+
// simai.chat are the same list -- a title, a quiet second line, how many are
|
|
27
|
+
// unread, which one is open, a few things one can do to a row.
|
|
28
|
+
//
|
|
29
|
+
// What a conversation is stays with the host. A thread is data: an id, a title,
|
|
30
|
+
// when it last changed, and optionally a caption (who it is with, the last
|
|
31
|
+
// message), an unread count, where the work in it is, and an avatar. The list
|
|
32
|
+
// draws exactly that and interprets none of it.
|
|
33
|
+
//
|
|
34
|
+
// 2.0.0 (owner, 2026-11-06, q-3b313e2246): the rows are the Framework's
|
|
35
|
+
// sf-list 1.1. A thread becomes its item -- title the text, caption the
|
|
36
|
+
// supporting line, updated-at the date, unread the count, activity a badge,
|
|
37
|
+
// avatar and pinned as they are -- and the list's events become this list's.
|
|
38
|
+
// The groups by day, the pinned ones first, one Tab stop and the arrows,
|
|
39
|
+
// renaming in place, the row's menu and the next page are sf-list's. What stays
|
|
40
|
+
// here is what is around the rows: starting a conversation, the archive and
|
|
41
|
+
// the way back, a sentence in place of the rows, the footer.
|
|
42
|
+
//
|
|
43
|
+
// With `archived` it shows the archive instead: a way back, no «New
|
|
44
|
+
// conversation», «Restore» instead of «Archive». Which list it holds is the
|
|
45
|
+
// host's call. `no-create` takes «New conversation» away, `no-manage` a row's
|
|
46
|
+
// actions and `no-archive` the archive: what a host does not offer is not shown.
|
|
47
|
+
// `create-commands` (1.5.0) stand in for the one «New conversation».
|
|
48
|
+
//
|
|
49
|
+
// From its component.json (standard simai.smart-component 1.3.8 §3, §4, §8,
|
|
50
|
+
// §11, §18): the settings are attributes and properties made by
|
|
51
|
+
// core/js/element-manifest.js, its words are lang/<locale>.json, the actions
|
|
52
|
+
// answer outcomes, and the events take the vocabulary's verbs (open, restore,
|
|
53
|
+
// apply, toggle); the old names sf-thread-list-select, -unarchive, -action and
|
|
54
|
+
// -view follow until 2026-12-01 (aliases.json).
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// A title longer than this is not a title; the field stops there, as the
|
|
63
|
+
// server that stores it most likely does.
|
|
64
|
+
|
|
65
|
+
const TITLE_LIMIT = 120; // Where the work in a conversation is, as a badge of the row: its word and
|
|
66
|
+
// the tone of the Framework's status set (sf-badge's own activity marks).
|
|
67
|
+
|
|
68
|
+
const ACTIVITY_TONES = {
|
|
69
|
+
running: "neutral",
|
|
70
|
+
waiting: "warning",
|
|
71
|
+
done: "success",
|
|
72
|
+
stopped: "neutral",
|
|
73
|
+
failed: "error"
|
|
74
|
+
}; // The host's own row actions, apart from the list's own archive and restore.
|
|
75
|
+
|
|
76
|
+
const OWN = "host:";
|
|
77
|
+
|
|
78
|
+
const applied = () => ({
|
|
79
|
+
outcome: "applied"
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const refused = reason => ({
|
|
83
|
+
outcome: "refused",
|
|
84
|
+
reason
|
|
85
|
+
}); // The 1.0 forms a host still writes, read until the aliases' day and noted
|
|
86
|
+
// (§16 item 20): a setter that became a setting, an entry field in snake case
|
|
87
|
+
// that became kebab-case (§18.1).
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
const legacy = (kind, from, to) => (0,_core_js_deprecations__WEBPACK_IMPORTED_MODULE_2__.noteDeprecated)({
|
|
91
|
+
component: "sf-chat-threads",
|
|
92
|
+
tag: "sf-chat-threads",
|
|
93
|
+
kind,
|
|
94
|
+
from,
|
|
95
|
+
to,
|
|
96
|
+
since: _aliases_json__WEBPACK_IMPORTED_MODULE_5__.since,
|
|
97
|
+
remove_after: _aliases_json__WEBPACK_IMPORTED_MODULE_5__.remove_after
|
|
98
|
+
}); // One conversation as the list holds it: id a string, the fields kebab-case.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
const normalThread = thread => {
|
|
102
|
+
const {
|
|
103
|
+
updated_at: updatedAt,
|
|
104
|
+
...rest
|
|
105
|
+
} = thread;
|
|
106
|
+
const out = { ...rest,
|
|
107
|
+
id: String(thread.id)
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
if (out["updated-at"] === undefined && updatedAt !== undefined) {
|
|
111
|
+
legacy("entry-field", "updated_at", "updated-at");
|
|
112
|
+
out["updated-at"] = updatedAt;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (thread.avatar && typeof thread.avatar === "object") {
|
|
116
|
+
const {
|
|
117
|
+
image_url: imageUrl,
|
|
118
|
+
...avatar
|
|
119
|
+
} = thread.avatar;
|
|
120
|
+
|
|
121
|
+
if (avatar["image-url"] === undefined && imageUrl !== undefined) {
|
|
122
|
+
legacy("entry-field", "avatar.image_url", "avatar.image-url");
|
|
123
|
+
avatar["image-url"] = imageUrl;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
out.avatar = avatar;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return out;
|
|
130
|
+
}; // set-threads(list, {hasMore}) is the 1.0 call; set-threads({threads,
|
|
131
|
+
// has-more}) the manifest's (§4.4: one object in declared order).
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
const pageArguments = (first, second) => {
|
|
135
|
+
if (first && !Array.isArray(first) && typeof first === "object" && Array.isArray(first.threads)) {
|
|
136
|
+
return {
|
|
137
|
+
threads: first.threads,
|
|
138
|
+
hasMore: Boolean(first["has-more"] ?? first.hasMore)
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
threads: Array.isArray(first) ? first : [],
|
|
144
|
+
hasMore: Boolean(second?.hasMore ?? second?.["has-more"])
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const ThreadListElement = (0,_core_js_element_manifest__WEBPACK_IMPORTED_MODULE_1__.elementFromManifest)(_component_json__WEBPACK_IMPORTED_MODULE_4__, {
|
|
149
|
+
base: (_core_js_smart_base__WEBPACK_IMPORTED_MODULE_0___default()),
|
|
150
|
+
lang: {
|
|
151
|
+
en: _lang_en_json__WEBPACK_IMPORTED_MODULE_6__,
|
|
152
|
+
ru: _lang_ru_json__WEBPACK_IMPORTED_MODULE_7__
|
|
153
|
+
},
|
|
154
|
+
source: "ru",
|
|
155
|
+
aliases: _aliases_json__WEBPACK_IMPORTED_MODULE_5__
|
|
156
|
+
}); // Newest first by the last change; a thread without a readable date goes last
|
|
157
|
+
// rather than first, where an unknown date would otherwise sort a string.
|
|
158
|
+
|
|
159
|
+
const byUpdated = (a, b) => {
|
|
160
|
+
const left = Date.parse(a["updated-at"] ?? "");
|
|
161
|
+
const right = Date.parse(b["updated-at"] ?? "");
|
|
162
|
+
return (Number.isFinite(right) ? right : -Infinity) - (Number.isFinite(left) ? left : -Infinity);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
class SfThreadList extends ThreadListElement {
|
|
166
|
+
static get props() {
|
|
167
|
+
return { ...super.props,
|
|
168
|
+
templateName: {
|
|
169
|
+
attribute: "template",
|
|
170
|
+
default: "default"
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
constructor() {
|
|
176
|
+
super();
|
|
177
|
+
this._threads = [];
|
|
178
|
+
this._actions = [];
|
|
179
|
+
this._createCommands = []; // The rows given to sf-list: written to it after a draw, as a page
|
|
180
|
+
// (setItems ends its page request), once per change.
|
|
181
|
+
|
|
182
|
+
this._version = 0;
|
|
183
|
+
this._given = -1; // A value set as a property before the element was defined is an own
|
|
184
|
+
// property that would hide the accessor; it is taken through it.
|
|
185
|
+
|
|
186
|
+
for (const name of ["threads", "actions", "createCommands"]) {
|
|
187
|
+
if (!Object.prototype.hasOwnProperty.call(this, name)) continue;
|
|
188
|
+
const early = this[name];
|
|
189
|
+
delete this[name];
|
|
190
|
+
this[name] = early;
|
|
191
|
+
}
|
|
192
|
+
} // ── words ────────────────────────────────────────────────────────────────
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
text(key, vars = {}) {
|
|
196
|
+
return this.sfWord(key, {
|
|
197
|
+
vars
|
|
198
|
+
});
|
|
199
|
+
} // ── state the host sets ──────────────────────────────────────────────────
|
|
200
|
+
// A printed skeleton (data-sf-first-paint="skeleton") stays until the host
|
|
201
|
+
// gives the threads (standard 1.3.8 §5.4): the first render then draws them
|
|
202
|
+
// over it in one frame. An empty list given is an answer too -- the empty
|
|
203
|
+
// state draws -- where the base's test counts it as not yet given.
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
sfAwaitingData() {
|
|
207
|
+
return this.getAttribute("data-sf-first-paint") === "skeleton" && !this._sfDataGiven;
|
|
208
|
+
}
|
|
209
|
+
/** The conversations shown, newest first, as the host gave them (§18.4: entries by id). */
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
get threads() {
|
|
213
|
+
return this._threads.map(thread => ({ ...thread
|
|
214
|
+
}));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
set threads(value) {
|
|
218
|
+
this._sfDataGiven = true;
|
|
219
|
+
const archived = this.archived;
|
|
220
|
+
this._threads = (Array.isArray(value) ? value : []).filter(thread => thread && thread.id != null && Boolean(thread.archived) === archived).map(normalThread);
|
|
221
|
+
this._version += 1;
|
|
222
|
+
this.requestComponentUpdate("threads");
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Row actions of the host's own, after «Rename» and «Archive»: [{id, text,
|
|
226
|
+
* icon?}]. Chosen, one leaves as sf-chat-threads-apply {action, scope: entry, ids}.
|
|
227
|
+
*/
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
get actions() {
|
|
231
|
+
return this._actions.map(action => ({ ...action
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
set actions(value) {
|
|
236
|
+
this._actions = Array.isArray(value) ? value.filter(action => action && action.id && action.text).map(action => ({ ...action,
|
|
237
|
+
id: String(action.id)
|
|
238
|
+
})) : []; // The menu is built when it opens: a host that sets its actions just
|
|
239
|
+
// before (sf-chat-window's «Pin» or «Unpin» for that row) is heard.
|
|
240
|
+
|
|
241
|
+
const list = this.list;
|
|
242
|
+
if (list) list.actions = this.rowActions();
|
|
243
|
+
this.requestComponentUpdate("actions");
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The commands in the head in place of «New conversation»: [{id, text,
|
|
247
|
+
* icon?}]. Pressed, one leaves as sf-chat-threads-create {kind: id}.
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
get createCommands() {
|
|
252
|
+
return this._createCommands.map(command => ({ ...command
|
|
253
|
+
}));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
set createCommands(value) {
|
|
257
|
+
this._createCommands = Array.isArray(value) ? value.filter(command => command && command.id && command.text).map(command => ({ ...command,
|
|
258
|
+
id: String(command.id)
|
|
259
|
+
})) : [];
|
|
260
|
+
this.requestComponentUpdate("create-commands");
|
|
261
|
+
}
|
|
262
|
+
/** The rows: the Framework's sf-list inside the navigation. */
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
get list() {
|
|
266
|
+
return this.querySelector(":scope > .sf-thread-list > .sf-thread-list__scroller > .sf-thread-list__rows");
|
|
267
|
+
} // ── actions (§4.4) ───────────────────────────────────────────────────────
|
|
268
|
+
|
|
269
|
+
/** The whole list and whether more follows, together; ends a page request. */
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
setThreads(first = [], second = {}) {
|
|
273
|
+
const {
|
|
274
|
+
threads,
|
|
275
|
+
hasMore
|
|
276
|
+
} = pageArguments(first, second);
|
|
277
|
+
this.threads = threads;
|
|
278
|
+
if (this.loading) this.loading = false;
|
|
279
|
+
this.hasMore = hasMore;
|
|
280
|
+
return applied();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
appendThreads(first = [], second = {}) {
|
|
284
|
+
const {
|
|
285
|
+
threads,
|
|
286
|
+
hasMore
|
|
287
|
+
} = pageArguments(first, second);
|
|
288
|
+
const known = new Set(this._threads.map(thread => thread.id));
|
|
289
|
+
return this.setThreads([...this._threads, ...threads.filter(thread => thread && !known.has(String(thread.id)))], {
|
|
290
|
+
hasMore
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/** A new or changed conversation moves to where its date puts it. */
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
upsert(params) {
|
|
297
|
+
const thread = params?.thread && typeof params.thread === "object" && params.id === undefined ? params.thread : params;
|
|
298
|
+
if (!thread || thread.id == null) return refused("no-id");
|
|
299
|
+
const id = String(thread.id);
|
|
300
|
+
|
|
301
|
+
const rest = this._threads.filter(one => one.id !== id);
|
|
302
|
+
|
|
303
|
+
return this.setThreads([normalThread(thread), ...rest].sort(byUpdated), {
|
|
304
|
+
hasMore: this.hasMore
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
removeThread(params) {
|
|
309
|
+
const id = String(params?.id ?? params);
|
|
310
|
+
if (!this._threads.some(thread => thread.id === id)) return refused("unknown");
|
|
311
|
+
return this.setThreads(this._threads.filter(thread => thread.id !== id), {
|
|
312
|
+
hasMore: this.hasMore
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/** The 1.0 setter of `loading`; noted. */
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
setLoading(loading) {
|
|
319
|
+
legacy("action", "setLoading", "loading");
|
|
320
|
+
this.loading = Boolean(loading);
|
|
321
|
+
if (this.loading) this.status = "";
|
|
322
|
+
return applied();
|
|
323
|
+
}
|
|
324
|
+
/** The 1.0 setter of `status`; noted. */
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
setStatus(message) {
|
|
328
|
+
legacy("action", "setStatus", "status");
|
|
329
|
+
this.status = String(message ?? "");
|
|
330
|
+
return applied();
|
|
331
|
+
}
|
|
332
|
+
/** The next page could not be loaded: reaching the end asks again. */
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
moreFailed() {
|
|
336
|
+
this.list?.moreFailed?.();
|
|
337
|
+
return applied();
|
|
338
|
+
}
|
|
339
|
+
/** Rename in place, as F2 does. */
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
rename(params) {
|
|
343
|
+
const id = String(params?.id ?? params ?? "");
|
|
344
|
+
if (this.getProp("noManage")) return refused("no-manage");
|
|
345
|
+
if (!this._threads.some(thread => thread.id === id)) return refused("unknown");
|
|
346
|
+
return this.list?.rename?.(id) ?? refused("unknown");
|
|
347
|
+
}
|
|
348
|
+
/** Open the row's actions, as the «⋯» button and Shift+F10 do. */
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
openMenu(params, anchor = null) {
|
|
352
|
+
const id = String(params?.id ?? params ?? "");
|
|
353
|
+
if (this.getProp("noManage")) return refused("no-manage");
|
|
354
|
+
if (!this._threads.some(thread => thread.id === id)) return refused("unknown");
|
|
355
|
+
return this.list?.openMenu?.(id, anchor) ?? refused("unknown");
|
|
356
|
+
} // ── what is drawn ────────────────────────────────────────────────────────
|
|
357
|
+
// The row's menu after the list's own «Rename»: Archive or Restore, then
|
|
358
|
+
// the host's own.
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
rowActions() {
|
|
362
|
+
if (this.getProp("noManage")) return [];
|
|
363
|
+
return [...(this.getProp("noArchive") ? [] : [this.archived ? {
|
|
364
|
+
id: "restore",
|
|
365
|
+
text: this.sfWord("unarchive-text"),
|
|
366
|
+
icon: "unarchive"
|
|
367
|
+
} : {
|
|
368
|
+
id: "archive",
|
|
369
|
+
text: this.sfWord("archive-text"),
|
|
370
|
+
icon: "archive"
|
|
371
|
+
}]), ...this._actions.map(action => ({
|
|
372
|
+
id: `${OWN}${action.id}`,
|
|
373
|
+
text: action.text,
|
|
374
|
+
...(action.icon ? {
|
|
375
|
+
icon: action.icon
|
|
376
|
+
} : {})
|
|
377
|
+
}))];
|
|
378
|
+
} // A thread as sf-list's item. Only the activity words the badge knows
|
|
379
|
+
// draw a mark: an unknown one draws none rather than a badge with no state.
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
itemOf(thread) {
|
|
383
|
+
const unread = Number(thread.unread) > 0 ? Math.floor(Number(thread.unread)) : 0;
|
|
384
|
+
const tone = ACTIVITY_TONES[thread.activity];
|
|
385
|
+
const avatar = thread.avatar && typeof thread.avatar === "object" ? thread.avatar : null;
|
|
386
|
+
return {
|
|
387
|
+
id: thread.id,
|
|
388
|
+
text: String(thread.title ?? ""),
|
|
389
|
+
...(thread.caption ? {
|
|
390
|
+
supporting: String(thread.caption)
|
|
391
|
+
} : {}),
|
|
392
|
+
...(thread["updated-at"] ? {
|
|
393
|
+
date: thread["updated-at"]
|
|
394
|
+
} : {}),
|
|
395
|
+
...(thread.pinned === true ? {
|
|
396
|
+
pinned: true
|
|
397
|
+
} : {}),
|
|
398
|
+
...(avatar ? {
|
|
399
|
+
avatar
|
|
400
|
+
} : {}),
|
|
401
|
+
...(unread ? {
|
|
402
|
+
count: unread
|
|
403
|
+
} : {}),
|
|
404
|
+
...(tone ? {
|
|
405
|
+
badge: {
|
|
406
|
+
text: this.sfWord(`activity-${thread.activity}`),
|
|
407
|
+
tone
|
|
408
|
+
}
|
|
409
|
+
} : {})
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
templateContext() {
|
|
414
|
+
const archived = this.archived;
|
|
415
|
+
return {
|
|
416
|
+
component: this,
|
|
417
|
+
// The setting's own words win; without them the word follows what
|
|
418
|
+
// is shown, the conversations or the archive.
|
|
419
|
+
label: this.getAttribute("label") || this.sfWord(archived ? "archive-view" : "label"),
|
|
420
|
+
archived,
|
|
421
|
+
canCreate: !archived && !this.getProp("noCreate"),
|
|
422
|
+
createCommands: this._createCommands,
|
|
423
|
+
canArchive: !this.getProp("noArchive"),
|
|
424
|
+
manage: !this.getProp("noManage"),
|
|
425
|
+
loading: this.loading,
|
|
426
|
+
hasMore: this.hasMore,
|
|
427
|
+
grouped: this.getProp("groupBy") !== "none",
|
|
428
|
+
selected: this.selected ?? "",
|
|
429
|
+
rowActions: this.rowActions(),
|
|
430
|
+
status: this.status,
|
|
431
|
+
empty: this._threads.length === 0,
|
|
432
|
+
emptyText: this.sfWord(archived ? "archive-empty-text" : "empty-text"),
|
|
433
|
+
createText: this.sfWord("create-text"),
|
|
434
|
+
backText: this.sfWord("back-text"),
|
|
435
|
+
archiveView: this.sfWord("archive-view"),
|
|
436
|
+
hasFooter: this.hasSlotContent("footer"),
|
|
437
|
+
footer: this.hasSlotContent("footer") ? this.getSlotContent("footer") : null
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
template() {
|
|
442
|
+
return (0,_js_templates_default_js__WEBPACK_IMPORTED_MODULE_3__.renderThreadListTemplate)(this.templateContext());
|
|
443
|
+
} // The rows go to sf-list as a page once they change: setItems ends the
|
|
444
|
+
// list's own page request, as setThreads ends this one. Before sf-list is
|
|
445
|
+
// defined they are its property, taken when it upgrades.
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
afterRender(changed) {
|
|
449
|
+
super.afterRender?.(changed);
|
|
450
|
+
const list = this.list;
|
|
451
|
+
if (!list || this._given === this._version) return;
|
|
452
|
+
this._given = this._version;
|
|
453
|
+
|
|
454
|
+
const items = this._threads.map(thread => this.itemOf(thread));
|
|
455
|
+
|
|
456
|
+
if (typeof list.setItems === "function") list.setItems(items, {
|
|
457
|
+
hasMore: this.hasMore
|
|
458
|
+
});else list.items = items;
|
|
459
|
+
} // ── what a person does ───────────────────────────────────────────────────
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
create(kind) {
|
|
463
|
+
this.sfEmit("create", kind ? {
|
|
464
|
+
kind
|
|
465
|
+
} : {});
|
|
466
|
+
} // A press asks for the conversation (selected is controlled, §4.3): the
|
|
467
|
+
// host opens it and writes selected back.
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
open(id) {
|
|
471
|
+
this.sfEmit("open", {
|
|
472
|
+
id: String(id)
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
showArchive(archived) {
|
|
477
|
+
this.sfEmit("toggle", {
|
|
478
|
+
archived: Boolean(archived)
|
|
479
|
+
});
|
|
480
|
+
} // sf-list's events are this list's own: they stop at it and leave as
|
|
481
|
+
// sf-chat-threads-*, the names a host listens to.
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
onListOpen(event) {
|
|
485
|
+
event.stopPropagation();
|
|
486
|
+
this.open(event.detail?.id);
|
|
487
|
+
} // Shown at once; the host that cannot keep it says so by upserting the
|
|
488
|
+
// conversation with its old title. A title stops at TITLE_LIMIT.
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
onListRename(event) {
|
|
492
|
+
event.stopPropagation();
|
|
493
|
+
const id = String(event.detail?.id ?? "");
|
|
494
|
+
|
|
495
|
+
const thread = this._threads.find(one => one.id === id);
|
|
496
|
+
|
|
497
|
+
const title = String(event.detail?.text ?? "").trim().slice(0, TITLE_LIMIT);
|
|
498
|
+
if (!thread || !title) return;
|
|
499
|
+
if (title !== event.detail.text) this.list?.upsert?.({ ...this.itemOf(thread),
|
|
500
|
+
text: title
|
|
501
|
+
});
|
|
502
|
+
thread.title = title;
|
|
503
|
+
this.sfEmit("rename", {
|
|
504
|
+
id,
|
|
505
|
+
title
|
|
506
|
+
});
|
|
507
|
+
} // Vocabulary §5: archive and restore take ids; a row's own action is
|
|
508
|
+
// apply {action, scope: entry, ids} (§18.3). id stays for the 1.0 names.
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
onListApply(event) {
|
|
512
|
+
event.stopPropagation();
|
|
513
|
+
const id = String(event.detail?.ids?.[0] ?? "");
|
|
514
|
+
const action = String(event.detail?.action ?? "");
|
|
515
|
+
if (!id || !action) return;
|
|
516
|
+
if (action === "archive") this.sfEmit("archive", {
|
|
517
|
+
ids: [id],
|
|
518
|
+
id
|
|
519
|
+
});else if (action === "restore") this.sfEmit("restore", {
|
|
520
|
+
ids: [id],
|
|
521
|
+
id
|
|
522
|
+
});else if (action.startsWith(OWN)) this.sfEmit("apply", {
|
|
523
|
+
action: action.slice(OWN.length),
|
|
524
|
+
scope: "entry",
|
|
525
|
+
ids: [id],
|
|
526
|
+
id
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
onListMore(event) {
|
|
531
|
+
event.stopPropagation();
|
|
532
|
+
this.sfEmit("load-more", {
|
|
533
|
+
direction: "after"
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
SfThreadList.define("sf-chat-threads");
|
|
540
|
+
__webpack_async_result__();
|
|
541
|
+
} catch(e) { __webpack_async_result__(e); } });
|
|
542
|
+
|
|
543
|
+
/***/ },
|
|
544
|
+
|
|
545
|
+
/***/ "087808edd63a"
|
|
546
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
547
|
+
|
|
548
|
+
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
549
|
+
__webpack_require__.r(__webpack_exports__);
|
|
550
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
551
|
+
/* harmony export */ renderThreadListTemplate: () => (/* binding */ renderThreadListTemplate)
|
|
552
|
+
/* harmony export */ });
|
|
553
|
+
/* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2a080a730149");
|
|
554
|
+
/* harmony import */ var _default_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("f920012381c3");
|
|
555
|
+
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([lit__WEBPACK_IMPORTED_MODULE_0__]);
|
|
556
|
+
var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
557
|
+
lit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
|
|
558
|
+
/* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lit__WEBPACK_IMPORTED_MODULE_0__);
|
|
559
|
+
|
|
560
|
+
// The list, drawn in the component's light DOM: a navigation with a head (the
|
|
561
|
+
// way to start a conversation, or the way back from the archive), the rows, a
|
|
562
|
+
// foot (the archive, and whatever the host puts in the `footer` slot).
|
|
563
|
+
//
|
|
564
|
+
// The rows are the Framework's sf-list (since 2.0.0): its rows, groups by day,
|
|
565
|
+
// pinned ones first, one Tab stop, renaming, the row's menu and the next page
|
|
566
|
+
// are the list's. What stays here is what a list of conversations has around
|
|
567
|
+
// its rows: starting one, the archive and the way back, a sentence under the
|
|
568
|
+
// rows (in their place when there are none), the footer. The rows reach sf-list from the
|
|
569
|
+
// component after a draw (index.js afterRender), as a page.
|
|
570
|
+
|
|
571
|
+
const command = (icon, label, action, onClick, hidden = false) => (0,lit__WEBPACK_IMPORTED_MODULE_0__.html)`
|
|
572
|
+
<button type="button" class="sf-thread-list__command" data-action=${action} ?hidden=${hidden} @click=${onClick}>
|
|
573
|
+
<sf-icon icon=${icon} size="2" aria-hidden="true"></sf-icon>
|
|
574
|
+
<span>${label}</span>
|
|
575
|
+
</button>
|
|
576
|
+
`;
|
|
577
|
+
|
|
578
|
+
function renderThreadListTemplate(context) {
|
|
579
|
+
const {
|
|
580
|
+
component
|
|
581
|
+
} = context;
|
|
582
|
+
return (0,lit__WEBPACK_IMPORTED_MODULE_0__.html)`
|
|
583
|
+
<nav class="sf-thread-list ${context.archived ? "sf-thread-list--archive" : ""}" aria-label=${context.label}>
|
|
584
|
+
<div class="sf-thread-list__head" ?hidden=${!context.canCreate && !context.archived}>
|
|
585
|
+
${context.createCommands.length ? context.createCommands.map(one => command(one.icon || "edit_square", one.text, `create:${one.id}`, () => component.create(one.id), !context.canCreate)) : command("edit_square", context.createText, "create", () => component.create(), !context.canCreate)}
|
|
586
|
+
${command("arrow_back", context.backText, "back", () => component.showArchive(false), !context.archived)}
|
|
587
|
+
${context.archived ? (0,lit__WEBPACK_IMPORTED_MODULE_0__.html)`<h2 class="sf-thread-list__heading-view">${context.archiveView}</h2>` : lit__WEBPACK_IMPORTED_MODULE_0__.nothing}
|
|
588
|
+
</div>
|
|
589
|
+
<div class="sf-thread-list__scroller">
|
|
590
|
+
<sf-list
|
|
591
|
+
class="sf-thread-list__rows"
|
|
592
|
+
?hidden=${Boolean(context.status) && context.empty}
|
|
593
|
+
label=${context.label}
|
|
594
|
+
group-by=${context.grouped ? "day" : "none"}
|
|
595
|
+
heading-level="2"
|
|
596
|
+
no-wrap
|
|
597
|
+
empty-text=${context.emptyText}
|
|
598
|
+
selected=${context.selected}
|
|
599
|
+
?renamable=${context.manage}
|
|
600
|
+
?has-more=${context.hasMore}
|
|
601
|
+
?loading=${context.loading}
|
|
602
|
+
.actions=${context.rowActions}
|
|
603
|
+
@sf-list-open=${event => component.onListOpen(event)}
|
|
604
|
+
@sf-list-rename=${event => component.onListRename(event)}
|
|
605
|
+
@sf-list-apply=${event => component.onListApply(event)}
|
|
606
|
+
@sf-list-load-more=${event => component.onListMore(event)}
|
|
607
|
+
></sf-list>
|
|
608
|
+
<p class="sf-thread-list__status" role="status" ?hidden=${!context.status || context.loading}>${context.status}</p>
|
|
609
|
+
</div>
|
|
610
|
+
<div class="sf-thread-list__footer" ?hidden=${!(context.canArchive && !context.archived) && !context.hasFooter}>
|
|
611
|
+
${context.canArchive && !context.archived ? command("inventory_2", context.archiveView, "archive-view", () => component.showArchive(true)) : lit__WEBPACK_IMPORTED_MODULE_0__.nothing}
|
|
612
|
+
${context.hasFooter ? (0,lit__WEBPACK_IMPORTED_MODULE_0__.html)`<div class="sf-thread-list__extra">${context.footer}</div>` : lit__WEBPACK_IMPORTED_MODULE_0__.nothing}
|
|
613
|
+
</div>
|
|
614
|
+
</nav>
|
|
615
|
+
`;
|
|
616
|
+
}
|
|
617
|
+
__webpack_async_result__();
|
|
618
|
+
} catch(e) { __webpack_async_result__(e); } });
|
|
619
|
+
|
|
620
|
+
/***/ },
|
|
621
|
+
|
|
622
|
+
/***/ "f920012381c3"
|
|
623
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
624
|
+
|
|
625
|
+
__webpack_require__.r(__webpack_exports__);
|
|
626
|
+
// extracted by mini-css-extract-plugin
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/***/ },
|
|
630
|
+
|
|
631
|
+
/***/ "d3818183b14c"
|
|
632
|
+
(module) {
|
|
633
|
+
|
|
634
|
+
module.exports = (globalThis.SF && globalThis.SF.runtimeModule ? globalThis.SF.runtimeModule("deprecations", 1) : new Promise((resolve, reject) => globalThis.addEventListener("sf-runtime-ready", () => globalThis.SF.runtimeModule("deprecations", 1).then(resolve, reject), { once: true })));
|
|
635
|
+
|
|
636
|
+
/***/ },
|
|
637
|
+
|
|
638
|
+
/***/ "5b7d7695b41b"
|
|
639
|
+
(module) {
|
|
640
|
+
|
|
641
|
+
module.exports = (globalThis.SF && globalThis.SF.runtimeModule ? globalThis.SF.runtimeModule("element-manifest", 1) : new Promise((resolve, reject) => globalThis.addEventListener("sf-runtime-ready", () => globalThis.SF.runtimeModule("element-manifest", 1).then(resolve, reject), { once: true })));
|
|
642
|
+
|
|
643
|
+
/***/ },
|
|
644
|
+
|
|
645
|
+
/***/ "2a080a730149"
|
|
646
|
+
(module) {
|
|
647
|
+
|
|
648
|
+
module.exports = (globalThis.SF && globalThis.SF.runtimeModule ? globalThis.SF.runtimeModule("lit", 1) : new Promise((resolve, reject) => globalThis.addEventListener("sf-runtime-ready", () => globalThis.SF.runtimeModule("lit", 1).then(resolve, reject), { once: true })));
|
|
649
|
+
|
|
650
|
+
/***/ },
|
|
651
|
+
|
|
652
|
+
/***/ "deb1a4d61565"
|
|
653
|
+
(module) {
|
|
654
|
+
|
|
655
|
+
module.exports = (globalThis.SF && globalThis.SF.runtimeModule ? globalThis.SF.runtimeModule("smart-base", 1) : new Promise((resolve, reject) => globalThis.addEventListener("sf-runtime-ready", () => globalThis.SF.runtimeModule("smart-base", 1).then(resolve, reject), { once: true })));
|
|
656
|
+
|
|
657
|
+
/***/ },
|
|
658
|
+
|
|
659
|
+
/***/ "0ccefade0afb"
|
|
660
|
+
(module) {
|
|
661
|
+
|
|
662
|
+
module.exports = /*#__PURE__*/JSON.parse('{"$comment":"Dated aliases of sf-chat-threads for the shim (core/js/aliases.js, standard §16 item 20). create, rename, archive and load-more keep their DOM names (archive and load-more gain the vocabulary\'s ids and direction beside the old fields). setLoading and setStatus became the settings loading and status: the component reads them and notes each call (no shim row can map a method to a setting).","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","aliases":[{"from":"sf-thread-list-select","to":"sf-thread-list-open","kind":"event","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","mode":"same-detail","cancelable":false,"section":"§8, vocabulary §5 open"},{"from":"sf-thread-list-unarchive","to":"sf-thread-list-restore","kind":"event","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","mode":"detail-adds","cancelable":false,"section":"§8, vocabulary §5 restore","note":"{id} becomes {ids, id}"},{"from":"sf-thread-list-action","to":"sf-thread-list-apply","kind":"event","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","mode":"detail-adds","cancelable":false,"section":"§8, §18.3, vocabulary §5 apply","note":"{id, action} becomes {action, scope: entry, ids, id}"},{"from":"sf-thread-list-view","to":"sf-thread-list-toggle","kind":"event","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","mode":"same-detail","cancelable":false,"section":"§8, §3.1 (view is reserved)"},{"from":"setLoading","to":null,"kind":"action","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","mode":"retired","section":"§4.4","note":"the setting loading; the method stays until the date and notes each call"},{"from":"setStatus","to":null,"kind":"action","component":"sf-chat-threads","since":"2026-10-27","remove_after":"2026-12-01","mode":"retired","section":"§4.4","note":"the setting status; the method stays until the date and notes each call"},{"from":"sf-thread-list","to":"sf-chat-threads","kind":"tag","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","section":"rename plan R2 (ui-control RENAME-PLAN-2026-11-03), naming decision 2026-11-02","note":"the element is sf-chat-threads; sf-thread-list is a subclass defined beside it until the date"},{"from":"sf-thread-list-create","to":"sf-chat-threads-create","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-open","to":"sf-chat-threads-open","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-rename","to":"sf-chat-threads-rename","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-archive","to":"sf-chat-threads-archive","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-restore","to":"sf-chat-threads-restore","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-apply","to":"sf-chat-threads-apply","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-load-more","to":"sf-chat-threads-load-more","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"},{"from":"sf-thread-list-toggle","to":"sf-chat-threads-toggle","kind":"event","component":"sf-chat-threads","since":"2026-11-03","remove_after":"2027-01-01","mode":"same-detail","section":"§8","note":"the event name carries the tag"}]}');
|
|
663
|
+
|
|
664
|
+
/***/ },
|
|
665
|
+
|
|
666
|
+
/***/ "99f949a3941b"
|
|
667
|
+
(module) {
|
|
668
|
+
|
|
669
|
+
module.exports = /*#__PURE__*/JSON.parse('{"id":"smart.chat-threads","tag":"sf-chat-threads","version":"2.0.5","kind":"leaf","settings":{"threads":{"type":"list","default":[],"of":{"id":"id","title":{"type":"string","optional":true},"updated-at":{"type":"date","optional":true},"caption":{"type":"string","optional":true},"activity":{"type":"enum","values":["running","waiting","done","stopped","failed"],"optional":true},"unread":{"type":"number","integer":true,"min":0,"optional":true},"avatar":{"type":"object","optional":true},"archived":{"type":"boolean","optional":true},"pinned":{"type":"boolean","optional":true}},"entries":{"key":"id","changes":"content"}},"has-more":{"type":"boolean","default":false},"archived":{"type":"boolean","default":false},"no-create":{"type":"boolean","default":false},"create-commands":{"type":"list","default":[],"of":{"id":"id","text":"string","icon":{"type":"string","optional":true}}},"no-manage":{"type":"boolean","default":false},"no-archive":{"type":"boolean","default":false},"group-by":{"type":"enum","values":["day","none"],"default":"day"},"label":{"type":"string","default-from":"runtime.label"},"loading":{"type":"boolean","default":false},"status":{"type":"string","default":""},"actions":{"type":"list","default":[],"of":{"id":"id","text":"string","icon":{"type":"icon","optional":true}}}},"values":{"selected":{"type":"id","default":"","controlled":true}},"events":{"create":{"carries":{"kind":{"type":"string","optional":true}}},"open":{"carries":{"id":"id"}},"rename":{"carries":{"id":"id","title":{"type":"string","schema":{"minLength":1,"maxLength":120}}}},"archive":{"carries":{"ids":{"type":"list","schema":{"items":{"type":"string"}},"optional":true},"id":"id"}},"restore":{"carries":{"ids":{"type":"list","schema":{"items":{"type":"string"}},"optional":true},"id":"id"}},"apply":{"carries":{"action":"string","scope":{"type":"enum","values":["entry"],"optional":true},"ids":{"type":"list","schema":{"items":{"type":"string"}},"optional":true},"id":"id"}},"load-more":{"carries":{"direction":{"type":"enum","values":["after"]}}},"toggle":{"carries":{"archived":"boolean"}}},"actions":{"set-threads":{"with":{"threads":{"type":"list","schema":{"items":{"type":"object","properties":{"id":{"type":["string","number"]},"title":{"type":"string"},"updated_at":{"type":"string"},"archived":{"type":"boolean"},"pinned":{"type":"boolean"},"caption":{"type":"string"},"activity":{"type":"string","enum":["running","waiting","done","stopped","failed"]},"unread":{"type":"integer","minimum":0},"avatar":{"type":"object","properties":{"image_url":{"type":"string"},"text":{"type":"string"}}}},"required":["id","title"]}}},"has-more":{"type":"boolean","optional":true}}},"append-threads":{"with":{"threads":{"type":"list","schema":{"items":{"type":"object","properties":{"id":{"type":["string","number"]},"title":{"type":"string"},"updated_at":{"type":"string"},"archived":{"type":"boolean"},"pinned":{"type":"boolean"},"caption":{"type":"string"},"activity":{"type":"string","enum":["running","waiting","done","stopped","failed"]},"unread":{"type":"integer","minimum":0},"avatar":{"type":"object","properties":{"image_url":{"type":"string"},"text":{"type":"string"}}}},"required":["id","title"]}}},"has-more":{"type":"boolean","optional":true}}},"upsert":{"with":{"thread":{"type":"object","schema":{"properties":{"id":{"type":["string","number"]},"title":{"type":"string"},"updated_at":{"type":"string"},"archived":{"type":"boolean"},"pinned":{"type":"boolean"},"caption":{"type":"string"},"activity":{"type":"string","enum":["running","waiting","done","stopped","failed"]},"unread":{"type":"integer","minimum":0},"avatar":{"type":"object","properties":{"image_url":{"type":"string"},"text":{"type":"string"}}}},"required":["id","title"]}}}},"remove-thread":{"with":{"id":"id"}},"more-failed":{},"rename":{"with":{"id":"id"}},"open-menu":{"with":{"id":"id"}}},"presentation":{"skeleton":{"late":["threads"]}},"host-states":{},"css-variables":{"--sf-thread-list-inset":{"type":"length","state":"default"},"--sf-thread-list-row-height":{"type":"length","state":"default"},"--sf-thread-list-radius":{"type":"length","state":"default"},"--sf-thread-list-hover-background-color":{"type":"color","state":"hover"},"--sf-thread-list-current-background-color":{"type":"color","state":"current"}}}');
|
|
670
|
+
|
|
671
|
+
/***/ },
|
|
672
|
+
|
|
673
|
+
/***/ "86e6dcdc95d2"
|
|
674
|
+
(module) {
|
|
675
|
+
|
|
676
|
+
module.exports = /*#__PURE__*/JSON.parse('{"title":"Thread list","runtime":{"activity-done":"Ready","activity-failed":"Failed","activity-running":"Running","activity-stopped":"Stopped","activity-waiting":"Needs your input","archive-empty-text":"The archive is empty","archive-text":"Archive","archive-view":"Archive","back-text":"Back to conversations","create-text":"New conversation","empty-text":"No conversations yet","label":"Conversations","unarchive-text":"Restore from archive"}}');
|
|
677
|
+
|
|
678
|
+
/***/ },
|
|
679
|
+
|
|
680
|
+
/***/ "0a15015f52cc"
|
|
681
|
+
(module) {
|
|
682
|
+
|
|
683
|
+
module.exports = /*#__PURE__*/JSON.parse('{"title":"Список разговоров","runtime":{"activity-done":"Готово","activity-failed":"Не удалось","activity-running":"Выполняется","activity-stopped":"Остановлено","activity-waiting":"Нужен ваш ответ","archive-empty-text":"В архиве пусто","archive-text":"В архив","archive-view":"Архив","back-text":"К разговорам","create-text":"Новый разговор","empty-text":"Разговоров пока нет","label":"Разговоры","unarchive-text":"Вернуть из архива"}}');
|
|
684
|
+
|
|
685
|
+
/***/ }
|
|
686
|
+
|
|
687
|
+
/******/ });
|
|
688
|
+
/************************************************************************/
|
|
689
|
+
/******/ // The module cache
|
|
690
|
+
/******/ const __webpack_module_cache__ = {};
|
|
691
|
+
/******/
|
|
692
|
+
/******/ // The require function
|
|
693
|
+
/******/ function __webpack_require__(moduleId) {
|
|
694
|
+
/******/ // Check if module is in cache
|
|
695
|
+
/******/ const cachedModule = __webpack_module_cache__[moduleId];
|
|
696
|
+
/******/ if (cachedModule !== undefined) {
|
|
697
|
+
/******/ return cachedModule.exports;
|
|
698
|
+
/******/ }
|
|
699
|
+
/******/ // Create a new module (and put it into the cache)
|
|
700
|
+
/******/ const module = __webpack_module_cache__[moduleId] = {
|
|
701
|
+
/******/ // no module.id needed
|
|
702
|
+
/******/ // no module.loaded needed
|
|
703
|
+
/******/ exports: {}
|
|
704
|
+
/******/ };
|
|
705
|
+
/******/
|
|
706
|
+
/******/ // Execute the module function
|
|
707
|
+
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
708
|
+
/******/ delete __webpack_module_cache__[moduleId];
|
|
709
|
+
/******/ const e = new Error("Cannot find module '" + moduleId + "'");
|
|
710
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
711
|
+
/******/ throw e;
|
|
712
|
+
/******/ }
|
|
713
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
714
|
+
/******/
|
|
715
|
+
/******/ // Return the exports of the module
|
|
716
|
+
/******/ return module.exports;
|
|
717
|
+
/******/ }
|
|
718
|
+
/******/
|
|
719
|
+
/************************************************************************/
|
|
720
|
+
/******/ /* webpack/runtime/async module */
|
|
721
|
+
/******/ (() => {
|
|
722
|
+
/******/ const hasSymbol = typeof Symbol === "function";
|
|
723
|
+
/******/ const webpackQueues = hasSymbol ? Symbol("webpack queues") : "__webpack_queues__";
|
|
724
|
+
/******/ const webpackExports = hasSymbol ? Symbol("webpack exports") : "__webpack_exports__";
|
|
725
|
+
/******/ const webpackError = hasSymbol ? Symbol("webpack error") : "__webpack_error__";
|
|
726
|
+
/******/
|
|
727
|
+
/******/ const resolveQueue = (queue) => {
|
|
728
|
+
/******/ if(queue?.d < 1) {
|
|
729
|
+
/******/ queue.d = 1;
|
|
730
|
+
/******/ queue.forEach((fn) => (fn.r--));
|
|
731
|
+
/******/ queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
|
|
732
|
+
/******/ }
|
|
733
|
+
/******/ }
|
|
734
|
+
/******/ const wrapDeps = (deps) => (deps.map((dep) => {
|
|
735
|
+
/******/ if(dep !== null && typeof dep === "object") {
|
|
736
|
+
/******/
|
|
737
|
+
/******/ if(dep[webpackQueues]) return dep;
|
|
738
|
+
/******/ if(dep.then) {
|
|
739
|
+
/******/ const queue = [];
|
|
740
|
+
/******/ queue.d = 0;
|
|
741
|
+
/******/ dep.then((r) => {
|
|
742
|
+
/******/ obj[webpackExports] = r;
|
|
743
|
+
/******/ resolveQueue(queue);
|
|
744
|
+
/******/ }, (e) => {
|
|
745
|
+
/******/ obj[webpackError] = e;
|
|
746
|
+
/******/ resolveQueue(queue);
|
|
747
|
+
/******/ });
|
|
748
|
+
/******/ const obj = {};
|
|
749
|
+
/******/
|
|
750
|
+
/******/ obj[webpackQueues] = (fn) => (fn(queue));
|
|
751
|
+
/******/ return obj;
|
|
752
|
+
/******/ }
|
|
753
|
+
/******/ }
|
|
754
|
+
/******/ const ret = {};
|
|
755
|
+
/******/ ret[webpackQueues] = x => {};
|
|
756
|
+
/******/ ret[webpackExports] = dep;
|
|
757
|
+
/******/ return ret;
|
|
758
|
+
/******/ }));
|
|
759
|
+
/******/ __webpack_require__.a = (module, body, hasAwait) => {
|
|
760
|
+
/******/ let queue;
|
|
761
|
+
/******/ hasAwait && ((queue = []).d = -1);
|
|
762
|
+
/******/ const depQueues = new Set();
|
|
763
|
+
/******/ const exports = module.exports;
|
|
764
|
+
/******/ let currentDeps;
|
|
765
|
+
/******/ let outerResolve;
|
|
766
|
+
/******/ let reject;
|
|
767
|
+
/******/ const promise = new Promise((resolve, rej) => {
|
|
768
|
+
/******/ reject = rej;
|
|
769
|
+
/******/ outerResolve = resolve;
|
|
770
|
+
/******/ });
|
|
771
|
+
/******/ promise[webpackExports] = exports;
|
|
772
|
+
/******/ promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {}));
|
|
773
|
+
/******/ module.exports = promise;
|
|
774
|
+
/******/ const handle = (deps) => {
|
|
775
|
+
/******/ currentDeps = wrapDeps(deps);
|
|
776
|
+
/******/ let fn;
|
|
777
|
+
/******/ const getResult = () => (currentDeps.map((d) => {
|
|
778
|
+
/******/
|
|
779
|
+
/******/ if(d[webpackError]) throw d[webpackError];
|
|
780
|
+
/******/ return d[webpackExports];
|
|
781
|
+
/******/ }))
|
|
782
|
+
/******/ const promise = new Promise((resolve) => {
|
|
783
|
+
/******/ fn = () => (resolve(getResult));
|
|
784
|
+
/******/ fn.r = 0;
|
|
785
|
+
/******/ const fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));
|
|
786
|
+
/******/ currentDeps.map((dep) => (dep[webpackQueues](fnQueue)));
|
|
787
|
+
/******/ });
|
|
788
|
+
/******/ return fn.r ? promise : getResult();
|
|
789
|
+
/******/ }
|
|
790
|
+
/******/ const done = (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue))
|
|
791
|
+
/******/ body(handle, done);
|
|
792
|
+
/******/ queue?.d < 0 && (queue.d = 0);
|
|
793
|
+
/******/ };
|
|
794
|
+
/******/ })();
|
|
795
|
+
/******/
|
|
796
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
797
|
+
/******/ (() => {
|
|
798
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
799
|
+
/******/ __webpack_require__.n = (module) => {
|
|
800
|
+
/******/ const getter = module && module.__esModule ?
|
|
801
|
+
/******/ () => (module['default']) :
|
|
802
|
+
/******/ () => (module);
|
|
803
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
804
|
+
/******/ return getter;
|
|
805
|
+
/******/ };
|
|
806
|
+
/******/ })();
|
|
807
|
+
/******/
|
|
808
|
+
/******/ /* webpack/runtime/define property getters */
|
|
809
|
+
/******/ (() => {
|
|
810
|
+
/******/ // define getter/value functions for harmony exports
|
|
811
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
812
|
+
/******/ if(Array.isArray(definition)) {
|
|
813
|
+
/******/ var i = 0;
|
|
814
|
+
/******/ while(i < definition.length) {
|
|
815
|
+
/******/ var key = definition[i++];
|
|
816
|
+
/******/ var binding = definition[i++];
|
|
817
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
818
|
+
/******/ if(binding === 0) {
|
|
819
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
820
|
+
/******/ } else {
|
|
821
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
822
|
+
/******/ }
|
|
823
|
+
/******/ } else if(binding === 0) { i++; }
|
|
824
|
+
/******/ }
|
|
825
|
+
/******/ } else {
|
|
826
|
+
/******/ for(var key in definition) {
|
|
827
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
828
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
829
|
+
/******/ }
|
|
830
|
+
/******/ }
|
|
831
|
+
/******/ }
|
|
832
|
+
/******/ };
|
|
833
|
+
/******/ })();
|
|
834
|
+
/******/
|
|
835
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
836
|
+
/******/ (() => {
|
|
837
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
838
|
+
/******/ })();
|
|
839
|
+
/******/
|
|
840
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
841
|
+
/******/ (() => {
|
|
842
|
+
/******/ // define __esModule on exports
|
|
843
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
844
|
+
/******/ if(Symbol.toStringTag) {
|
|
845
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
846
|
+
/******/ }
|
|
847
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
848
|
+
/******/ };
|
|
849
|
+
/******/ })();
|
|
850
|
+
/******/
|
|
851
|
+
/************************************************************************/
|
|
852
|
+
/******/
|
|
853
|
+
/******/ // startup
|
|
854
|
+
/******/ // Load entry module and return exports
|
|
855
|
+
/******/ // This entry module used 'module' so it can't be inlined
|
|
856
|
+
/******/ let __webpack_exports__ = __webpack_require__("26a07784f30a");
|
|
857
|
+
/******/
|
|
858
|
+
/******/ })()
|
|
859
|
+
;
|