@g9tm/lynxcontrols-chat 0.0.0-stage → 2.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/README.md +21 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/chat.css +348 -0
- package/dist/chat.css.map +1 -0
- package/dist/chat.d.ts +96 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.jsx +237 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.jsx +2 -0
- package/dist/model.d.ts +66 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.jsx +172 -0
- package/package.json +34 -4
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @g9tm/lynxcontrols-chat
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A conversation UI: runs of bubbles, ticks, typing, a growing composer. Opt-in.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { G9ChatComposer, G9ChatThread, G9ConversationRow } from '@g9tm/lynxcontrols-chat';
|
|
7
|
+
|
|
8
|
+
<G9ConversationRow name="Sara" preview="Two please" at={lastAt} unread={2} online />
|
|
9
|
+
<G9ChatThread messages={messages} me={myId} typing={otherIsTyping} onLoadOlder={loadOlder} />
|
|
10
|
+
<G9ChatComposer placeholder="Message…" onSend={(text) => send(text)} onAttach={pickFile} />
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
| Component | What it is |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| **`G9ChatThread`** | The conversation on the recycler. It opens at the newest message and follows new ones while the reader is at the end (someone reading older messages is left where they are). Day dividers stick, and older pages load near the top. |
|
|
16
|
+
| **`G9MessageBubble`** | One message in its run: the corners join the bubbles of one sender, the time on the last, the ticks (sent ✓, delivered ✓✓, read in blue), a retry on a failed one. |
|
|
17
|
+
| **`G9ChatComposer`** | The message box: grows to five lines, attach and emoji at the start, send at the end (only when there is text). Lynx's `<textarea>` has no controlled value, so clearing after a send and a draft set from outside are written with `setValue`. |
|
|
18
|
+
| **`G9ConversationRow`** | A conversation in a list: avatar with the online dot, name, last message, time, unread count. |
|
|
19
|
+
| **`G9TypingDots`** | Three dots that rise in turn (CSS animation). |
|
|
20
|
+
| **`G9EmojiPicker`** | Emoji by category: tabs over a grid of 44 dp targets (`g9EmojiSets`), for the composer. |
|
|
21
|
+
|
|
22
|
+
Model (pure, tested): `threadRows` (days, runs and their positions), `previewText`, `statusGlyph`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/bidi.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/coordinates.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/natural-date.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/text.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/packs.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/layout/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/feedback.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/keys.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/aliases.d.ts","../../foundation/dist/tokens/shape.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/brand.d.ts","../../foundation/dist/theme/appearance.d.ts","../../foundation/dist/theme/contrast.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/css-color.d.ts","../../foundation/dist/theme/design.d.ts","../../foundation/dist/theme/oklch.d.ts","../../foundation/dist/theme/recipe.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/derived.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../controls/dist/anchor/registry.d.ts","../../controls/dist/anchor/hooks.d.ts","../../controls/dist/base/control.d.ts","../../controls/dist/base/corner-badge.d.ts","../../controls/dist/base/disposer.d.ts","../../controls/dist/base/press.d.ts","../../controls/dist/base/pressable.d.ts","../../controls/dist/display/shimmer.d.ts","../../controls/dist/sheet/options.d.ts","../../controls/dist/guide/settings.d.ts","../../controls/dist/popup/types.d.ts","../../controls/dist/provider/settings.d.ts","../../controls/dist/icon/icon.d.ts","../../controls/dist/base/selection-item.d.ts","../../controls/dist/base/timers.d.ts","../../controls/dist/base/tone.d.ts","../../controls/dist/base/use-controllable-state.d.ts","../../controls/dist/base/use-stable-callback.d.ts","../../controls/dist/base/index.d.ts","../../controls/dist/button/visuals.d.ts","../../controls/dist/button/button.d.ts","../../controls/dist/button/header-action-button.d.ts","../../controls/dist/button/icon-button.d.ts","../../controls/dist/button/nav-card.d.ts","../../controls/dist/button/safe.d.ts","../../controls/dist/button/safe-tap.d.ts","../../controls/dist/button/vertical-icon-text-button.d.ts","../../controls/dist/button/index.d.ts","../../controls/dist/display/activity-indicator.d.ts","../../controls/dist/display/culture-date-time-label.d.ts","../../controls/dist/display/extras.d.ts","../../controls/dist/display/figures.d.ts","../../controls/dist/display/status.d.ts","../../controls/dist/display/figures-index.d.ts","../../controls/dist/display/image.d.ts","../../controls/dist/display/keycap.d.ts","../../controls/dist/display/motion-figures.d.ts","../../controls/dist/display/progress-bar.d.ts","../../controls/dist/display/separator.d.ts","../../controls/dist/display/theme-preview.d.ts","../../controls/dist/display/title-with-line.d.ts","../../controls/dist/display/index.d.ts","../../controls/dist/fields/dictation.d.ts","../../controls/dist/fields/slot-layout.d.ts","../../controls/dist/fields/outlined-field.d.ts","../../controls/dist/fields/validator.d.ts","../../controls/dist/anchor/context.d.ts","../../controls/dist/anchor/measure.d.ts","../../controls/dist/anchor/scroll.d.ts","../../controls/dist/anchor/index.d.ts","../../controls/dist/cascade/model.d.ts","../../controls/dist/cascade/cascade-panel.d.ts","../../controls/dist/cascade/index.d.ts","../../controls/dist/commands/keys.d.ts","../../controls/dist/commands/palette.d.ts","../../controls/dist/commands/index.d.ts","../../controls/dist/deferred/readiness-signal.d.ts","../../controls/dist/deferred/deferred-content.d.ts","../../controls/dist/deferred/index.d.ts","../../controls/dist/edge-panel/types.d.ts","../../controls/dist/edge-panel/edge-panel.d.ts","../../controls/dist/host/layers.d.ts","../../controls/dist/host/back.d.ts","../../controls/dist/host/readiness.d.ts","../../controls/dist/host/registry.d.ts","../../controls/dist/edge-panel/helper.d.ts","../../controls/dist/edge-panel/index.d.ts","../../controls/dist/effects/effects.d.ts","../../controls/dist/effects/index.d.ts","../../controls/dist/expander/expander.d.ts","../../controls/dist/expander/index.d.ts","../../controls/dist/route/router.d.ts","../../controls/dist/guide/service.d.ts","../../controls/dist/guide/journey.d.ts","../../controls/dist/guide/placement.d.ts","../../controls/dist/guide/index.d.ts","../../controls/dist/header/app-bar.d.ts","../../controls/dist/header/index.d.ts","../../controls/dist/host/hooks.d.ts","../../controls/dist/host/host.d.ts","../../controls/dist/host/keyboard.d.ts","../../controls/dist/host/page-loading-overlay.d.ts","../../controls/dist/host/index.d.ts","../../controls/dist/icon/slot.d.ts","../../controls/dist/icon/swatch.d.ts","../../controls/dist/icon/index.d.ts","../../controls/dist/layout/containers.d.ts","../../controls/dist/layout/scroll-spy.d.ts","../../controls/dist/layout/scrollers.d.ts","../../controls/dist/layout/index.d.ts","../../controls/dist/list/gestures.d.ts","../../controls/dist/list/rows.d.ts","../../controls/dist/list/virtual-list.d.ts","../../controls/dist/list/index.d.ts","../../controls/dist/orb/hold.d.ts","../../controls/dist/orb/hold-button.d.ts","../../controls/dist/orb/model.d.ts","../../controls/dist/orb/orb.d.ts","../../controls/dist/orb/index.d.ts","../../controls/dist/pickers/trigger.d.ts","../../controls/dist/pickers/combo-box.d.ts","../../controls/dist/pickers/date-time.d.ts","../../controls/dist/pickers/date-time-picker.d.ts","../../controls/dist/pickers/day-stepper.d.ts","../../controls/dist/pickers/picker.d.ts","../../controls/dist/sheet/height-memo.d.ts","../../controls/dist/sheet/stack.d.ts","../../controls/dist/sheet/processing.d.ts","../../controls/dist/sheet/service.d.ts","../../controls/dist/pickers/picker-sheet.d.ts","../../controls/dist/pickers/timespan.d.ts","../../controls/dist/pickers/timespan-picker.d.ts","../../controls/dist/pickers/wheel-column.d.ts","../../controls/dist/pickers/index.d.ts","../../controls/dist/plus-button/model.d.ts","../../controls/dist/plus-button/plus-button.d.ts","../../controls/dist/plus-button/index.d.ts","../../controls/dist/popover/position.d.ts","../../controls/dist/popover/popover.d.ts","../../controls/dist/popover/index.d.ts","../../controls/dist/popup/frame.d.ts","../../controls/dist/popup/input.d.ts","../../controls/dist/popup/input-form.d.ts","../../controls/dist/popup/popup-view.d.ts","../../controls/dist/popup/queue.d.ts","../../controls/dist/popup/service.d.ts","../../controls/dist/popup/index.d.ts","../../controls/dist/provider/contexts.d.ts","../../controls/dist/provider/activity.d.ts","../../controls/dist/provider/hooks.d.ts","../../controls/dist/provider/keep-alive.d.ts","../../controls/dist/provider/provider.d.ts","../../controls/dist/provider/index.d.ts","../../controls/dist/range-slider/math.d.ts","../../controls/dist/range-slider/range-slider.d.ts","../../controls/dist/range-slider/step-slider.d.ts","../../controls/dist/range-slider/index.d.ts","../../controls/dist/route/hooks.d.ts","../../controls/dist/route/index.d.ts","../../controls/dist/selection/model.d.ts","../../controls/dist/selection/selection-sheet.d.ts","../../controls/dist/selection/use-selection-model.d.ts","../../controls/dist/selection/window.d.ts","../../controls/dist/selection/index.d.ts","../../controls/dist/sheet/backdrop-scope.d.ts","../../controls/dist/sheet/context.d.ts","../../controls/dist/sheet/frame.d.ts","../../controls/dist/sheet/header.d.ts","../../controls/dist/sheet/loadable.d.ts","../../controls/dist/sheet/sizing.d.ts","../../controls/dist/sheet/motion.d.ts","../../controls/dist/sheet/scroll-indicator.d.ts","../../controls/dist/sheet/scroll-region.d.ts","../../controls/dist/sheet/sheet.d.ts","../../controls/dist/sheet/index.d.ts","../../controls/dist/tab-bar/metrics.d.ts","../../controls/dist/tab-bar/model.d.ts","../../controls/dist/tab-bar/tab-bar.d.ts","../../controls/dist/shell/shell.d.ts","../../controls/dist/shell/index.d.ts","../../controls/dist/survey/survey.d.ts","../../controls/dist/survey/index.d.ts","../../controls/dist/swipe/model.d.ts","../../controls/dist/swipe/swipe-view.d.ts","../../controls/dist/swipe/index.d.ts","../../controls/dist/tab-bar/index.d.ts","../../controls/dist/tabs/model.d.ts","../../controls/dist/tabs/tab-view.d.ts","../../controls/dist/tabs/index.d.ts","../../controls/dist/toast/store.d.ts","../../controls/dist/toast/service.d.ts","../../controls/dist/toast/index.d.ts","../../controls/dist/toggle/checkbox.d.ts","../../controls/dist/toggle/checkbox-math.d.ts","../../controls/dist/toggle/chip-group.d.ts","../../controls/dist/toggle/choice.d.ts","../../controls/dist/toggle/switch.d.ts","../../controls/dist/toggle/index.d.ts","../../controls/dist/index.d.ts","../../controls/dist/fields/use-dictation.d.ts","../../controls/dist/fields/use-text-input.d.ts","../../controls/dist/fields/editor.d.ts","../../controls/dist/fields/extra-entries.d.ts","../../controls/dist/fields/input-policy.d.ts","../../controls/dist/fields/notch.d.ts","../../controls/dist/fields/pin-entry.d.ts","../../controls/dist/fields/text-entry.d.ts","../../controls/dist/fields/search-entry.d.ts","../../controls/dist/fields/index.d.ts","../src/model.ts","../src/chat.tsx","../src/index.ts"],"fileIdsList":[[41,96,97,129],[102,103,108,114],[41,103],[41,102,103,108,114],[41,123],[99,102,104,106,108,109,110,112,113,126],[41,114,115,116,117,118,119,124,125],[104,105],[102,108],[41,96,129],[41,96,102,111,129],[102],[120],[122],[121],[41,96,98,128,129],[41,104,126,127],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[100,102,103,107],[100,101],[98,129,195,214,223,237,289,328,373,384,385],[98,385,386],[98,195],[41,196],[96,129,196],[196,197,242,243,244],[96,129,195],[195,196],[96,129,196,197],[129],[198,199,200,201,202,209,210,211,212,213],[129,198,201],[195,208],[129,195,198,208,215],[129,195,198,208],[215,216,217,218,219,220,221,222],[195],[41,195,216,218],[129,195,198],[129,195,246],[246,247],[129,195],[249,250],[129,208],[41,96,129,195,252],[252,253],[129,198,208,211],[227,228],[41,129,198,208,211],[129,198,208],[203,224,225,226,229,230,231,232,233,234,235,236],[129,198],[129,208,255],[129,255,256,260],[255,256,261],[129,195,208],[41,129,196,198],[263],[41,129,195,198,208],[265],[41,376],[41,129,198,240],[238,239,240,241,375,376,377,378,379,380,381,382,383],[96,129,195,196,208,239],[41,195],[41,195,382],[41,241,376],[41,96,129,195,240,241,374,375],[205,268,269,270],[195,267,268],[196],[195,196,205,260,267],[195,204],[41,129,198],[272],[257],[129,195,257,258,259,260],[41,129,195,257,258,259,260],[257,258,259,260,274,275,276,277],[195,196,257,258,259],[41,129,195,207],[208,279,280],[214,223,237,245,248,251,254,262,264,266,271,273,278,281,285,289,294,309,312,315,322,328,332,334,339,350,355,357,360,361,364,367,373,384],[41,129,198,208],[282,283,284],[286,287,288],[41,198,290],[290,291,292,293],[41,129,198,290,292],[129,195,209,295],[129,195,295],[295,296,297,298,299,300,305,306,307,308],[129,304],[129,209,295],[129,195,295,306],[129,195,209,240],[129,297],[310,311],[208],[129,310],[313,314],[41,96,129,196,198,208,313],[129,206],[206,316,317,318,319,320,321],[129,317],[195,206],[129,316],[206],[129,195,206,260,317,320],[129,323],[41,195,196,207],[195,207,323],[207,323,324,325,326,327],[129,195,207],[129,195,204,205,206],[329,330,331],[129,195,267],[267,333],[209,335,336,337,338],[195,204,209,304],[335],[41,195,302],[129,204,301,302,341],[129,204],[204,301,302,303,304,340,342,343,344,345,346,347,348,349],[129,195,203],[345],[129,195,203,208],[129,195,302],[204,260,301,302,303],[129,204,302],[204],[354],[41,129,198,208,353],[356],[358,359],[129,358],[351,352,353],[208,351],[129,351,352],[362,363],[129,195,362],[365,366],[260,365],[41,195,198],[129,195,198,209],[41,129,195,198,208,211],[368,369,370,371,372],[133],[132],[132,133,134],[131,132,133,134,135,136,137,138,139,140,141,142],[134],[140],[146,148,150,151],[147],[140,146,147,148,149,150],[146,149],[155],[154],[153,154,155,156,157,158,159],[130,143,144,145,152,160,161,168,174,193,194],[145],[145,162],[162,163,164,165,166,167],[163],[162,163,165],[162],[145,147,149,165,169,170],[147,149,169,170,171,172,173],[175],[175,177,179,180],[175,178,179],[178,179],[178],[177,179],[176,178,179,180,181,182,183,184,185,186,187,192],[175,178],[144,175,178,191],[175,188,189],[175,190],[175,177,188,189,190,191]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","706c787ed201e67534e550d765eecfb18a8c39f46e04fcec600d0bb9d1bb6231","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","08521f5befe6ec3f1c3a881651321f875ca6fc79db15a6130283d409f5d47d1b","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","2dbadaab8fa70d9d874b29e23e808b0978fd2dbaf34e3caf8303508e2b88c603","54b8f865e3bea736798e54bc95b49435f472599aea762bd17bb02a18b198c7d1","5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","5c1d368a451520260ebb6c06121201f18abf86d80540290df6e424d372c5d0ed","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","2c8b86d9d29c4ea62762c3815ffe4fdb0c5dbc0dd096b9703236010f4a17c255","7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db","f858a10d167e011155bfe5a3532f599e677bced6727c07366f380c02010650d4","465f5d53f09ac1978002bc264b8a4c0aea749c79dd2bd1917dffe57fddcb9543","cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","773c827d0235c76288ab0092202c357730c5b21314241831b7dd88ef6017818e","ced97526e899f0222df6d805e008cd5bc63fee326838a9002919453f9a2a8c9b","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","be77edbe4d276441584b1c7b297bd8596c78913c22c590dc136d987b82a3976c","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","931d70c96033881193232b90c39210c6cd14865f28b339843c56b5688e7fd10d","0a995ec8876b2bdf48ad2a95dbd7c38d37d2b77940cd39d6f68947e1c383d940","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","67fe56b931e013e9980dec2a605908d44484c7bbd81d2ee9912872c11bc76515","d4924e2b191fee9b43aaeef651c87a7084281d425a30a9a8cf50de8f92b64f6d","8fc678b640b298b07d4f52a5a4f0b3a57e07e45da7a0ad25f1ffde53a152d3be","a59554ba3751ea9ad27f6948f1c71ef57f1e28bb526a53eacb0dfa76bc1df452","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","da401323d4c96e3f5b8fa8b7ecd200d47a9e340b09cefbea553d2b2b5a345e60","ead4a7fd25e5e2b756a5e71546bd8eae855c7b0ecbffd891f7fb0b6f7d80c0c1","eaea9f8e5b90d87160a885c2afc4afcd2434e149ae5a5368d4b61eed66a6a597","cc44cf86b3ddb7d61f7de3fd32116089decb662a8b6421013bd4a8ee9a079881","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","24a588d942a36d853d18dfe63711e9b180ea0448b956dadce7833f4d6455f0c8","c263cc53a55cc822c360481e94d0fe999acebf92f01f2ca84225a168a182657f","11aba4fbd2d4539d8440169f219974378731ad1e65d4656bd9d8a579b79241e6","b2792748a96701780faae92a11922b38e9e37d54b31df3df70acd32fd586c508","56cac1d8d4be53381e236d675f43c1b2342161ca45d31dfaaf340b0612d14bc5","121adbf7463954a594a796c4914376017a201d6c7bb40cb33b6b6e2f7f3c1bb8","1dd2073db39016abc797e46c711630cd39c497c28063e3a75993940c72eb9792","ad4f365726b33c965a6cf7e20ee8a7984866e08632a6c37b13bbe4d08c6e0a03","1492a06643311a66d01dc0c15259c0dbe7c4d336e7a85cb7ece67085afd2e84f","47ace7a5fa09cb19907ed7cb83a867b05ecff3e10bb229888e24f82b2c03b869","65f72380cb90b44b22370dfb07890bdd557d2e211ffb023363d8c87621c2535a","42278f72f154d26b400dcce641e8ed2227fb0102bff628f831bae44018ec4313","c1e64c51dadfcea7b7995040c64b5ac7e8f954f2a4adf4eb92e7a462ba5275e8","0cf0840523da6e63c4d0d096f3a1220da866a39314acc8d624551d4580d5567e","15e170fc85990c9cbdc7d3799b9490183b2d15202f1ccd0794abe5afb6f351eb","2f166c686866f475aee63ff5f7cf42413169d34e60c03fc5c761b2281ea49df0","40eef65c285d2b03f5c07d8455c675ecac1b90330cffd6d97f7008811ff8dd22","4f257d6caa2adab87c7532a456be55604cbd3861d81f38458812eedd84555e04","a270eff1cca84fc69223b8f4ce8db3cb4b4abf0dad0d054f7b3bcfb99ba9a343","665236eec0c0da8d3f7cdba8f01f98233425d8c065058e513b33385e417a56d2","1e771191631caaa4b5d3429c51e23c23c2f609ea1e99f4183e913c5e7fd2311b","50e8918146f4e8a9240bf867a07cf8aa0deb21fee8d4507e74ff62c8c6af42e9","666640b08e3ce76b6a8c76ce1f9f5b986923d3c76663b7fa4bc36e3af734ec46","6454e0780201a5e155d56f4fd4609a3a626d49e2c0300a2a74bf3f65e8c7fb92","ae6bf3e7fb36353315f1556fd23d00750f6a21bbc326ff00c1f1ae641375b138","46af33d573233017f5cc8af7081b8cae11b09112d1dd8ba84ae8fb52bdff3fa7","4715928125944c4c5f19d73e14b6104e192b7de6f8d1d2d16ccb5c5412716d8d","1c1fcc68382a99b15b35e193b89da169b9c3861ec4630765f62ed6ac9b9754ea","7ffdf2881f33b7f3600540883081ba83b9e50e0ce9a36417393ae3d8137d027a","09a66153ea0f485d886a8cb3fa99c6d4854d12780acde17d8798039949d5b468","12b36faab2cca51d73cf516f5b1d623d1b9aa65199112b6678db5af1c2c3c8f5","a4372188a04177bcacc9675a498e5b7db0cf1780db7a7bc54fc342e19fb31d91","bcc85da2796bd50bfcd5242d6ad8550774fcddaa0488ba1955fb9a763eda7457","cd64b34e8875a6ac5d727f237344998d529ad7a4bef401908de1587cc8c8c7ca","8aef56fa48c05b90e1342fac86649d390de81b985cc9c40c5a1024b331626344","dbf424b021c39ec2867559d8010c59cfeba8b586c8666e8bcd63d9171f62a221","54108c19c2abcb26345f6fbb94d34162ef931a08d33b7259f0487341907193fa","b6d6f48520aff9185bd814b54510f115e12bb5e15e408e38689763710e900932","91a7d42ac6f43a995eeb6cef2254610c441b759614a70432ab94953e29491365","d90a223fd9170c6d2ac39d2efb9a25416e6d1d9bac6e70a6f820b626eb1db0b6","69bf87b45bd3695dccff62d2139c5d7cec3c721e510538765f91dfe280ddd249","98c3b0d21cdc03ad12fdb52e0f8a8b00b3b11ad576663c98eda96da9f8df3c7d","7a82c7b4bfaea3d44e2241353697693daed6881743cec95d1814c23fbfb993bd","61bb1099994be652580d1ac07986a6aa7bf04643fe20ea3fd15148b0ef0f9c4c","3e4b9537242c4a29d439f4026e404cbae0cb957310f6bce728ee15b72cad1477","0f734c3a2e7c958fa9f82068c541ba3a3fd119dcfb242bbf761b49e91098ce7b","c747eeae3f3246152f6eadd5c1d41d283d522287c437acfb9ed75fae69996a47","81a2560c073f9b6b2a9905920928047cb1015307e573896319c6f0c545509d2f","e66bcb283e827cf0eccbf7795782b8d29963d75ca6a0d19f5ebee62d0f3ba527","ee80a403201ca2238a833312d5cf8a613fc92ffb03ed580541f8d89c9102a509","84cd1439e1dd7acff9eadb61505b0b00472b49cfbeae20bd35180b565cc83f27","eaaa0a5c96721891e62c355ef24c64ab2f9ee8f68710a8dc28c8c8466fc1b78e","867e795f61bdd0f21ef87d297a7e37fb8d2c13637d393dc9f70a90e4e5698882","0b914e80763228fe4c10b36f05b6857ede812ebeeb598c3ea56545be91b51c07","411bd7b6460732791f1c37805de49827fbed59090e00add6c384fa9f1984b36d","e24ba8dd2891c4f553d9f607721a0c2f2edd5454cdad96dba6466e4bc0e6fddc","c8d3c2e2e39fffa2e6ff8a999a44e3dc807ab0bf9038a1a53c047186749eac1f","dcf954eb7b2464b1f9e8a13dd4e313f2ab7107eef297237310abf13ef12d1828","40489d24dbf27194957757b32e13aeb2e18311bda5896510455c368b319ad9f9","1f28ccabde5dba08f73d06af3cff87916590d226b0847b36c3f0705be02012c5","d5892bb156458fbf3c60449f1574afc8074b2fbdebda2335459f2d3965e79643","5c2c855cd63f6c959fa374e0a24781ddf820473765bcfd343d6ed222e54a16fe","d425b2b680c595fedb6c4eeb46571dce53f356cffac11b47111f01ef09706ee3","82949b7c51ae44d4df0618a0796d3a5b4a0e2c0f4bcf342928a04652b598e623","5e2147eac2391841dfa8bd75f16e1aef47c116cae7c1d26997a89f4a8c214ce6","120ddbcefa2a45d794975849e1895889297c7d9068fd604e3208cb380743ad75","11a7d49d00dc02610fba5f792bb98a4830da21cd279e42b86b8c10387b7a9e70","e4a0dec5576f1f3a0efa482480eb53db258ae24f505a938a880fcfd11c402657","18c56c5a13d01291c50fbae2658bd5f7a2f94984071a4cf1c302869287002470","695bd1e37d5ea63f1a62d1364c98a134af3b5f4856d9a4411ad5758ddc541517","51f586fcbae4af8c36c620d8c56370ee24b523fa1563ddce007868fd7e600078","7479a45fe0442c2406d0b59779b5b6667b18a8176e94dd842f6b51d34754b619","e2d4d73a6e30333b0c1c2e48860c85a08c9df8e59a9941933bcf0348114cd70d","0480e4130292939cdbfc6ea59331a74c033f0b8de88460f7379c5ceb61961746","ec626c4a536d6af8e154046d7c02fe24b5aa5d0e8d07b31d1fdaa347e56c5d28","7ec0bfcc69cd9bc0bfc7055f0a0c3423192888c241f6c68ada1f12c0764c33e0","b1fa2c597b3f0f608912f2e46fe07e9ac850ef8f020f5d3ae9bc1cdf6dc249e6","913be48df162cf2211e60311ea69e9e9189e897790790d29b9ebc2eae98689f3","cf157fa1ad66d003fe04ded0150b7fbba305d563f7949c834f6bc943ad8a483d","0c79f1c3d1d63601ddf75544821c85ef4532a8e9bef2f7ea55d4d989f4840e88","4fbbf9164ba17e5bfb1337fa3f210f97c39b72089042185209f84c11ce05987c","afcf1ee2d77d66380003a4c466267df42a3199ffaf90c496a972a2b0bf45255b","723451f828842c0ad14caa625693d7c4939f4bfed08dd8af0b515cacc6ba15e8","69219e61a9cac62094baa9f26079a19099cb3c84d23101af6ccf358f24a8ae1b","42e872b330a6ab5b7ff1897cef8d8c7bf04d953e524679624d3f41addec2f154","a0f0c22f7b7afd4173cbe844a19ea1adc7956f5fdbde6767c3e20a1e7dbc10dd","482923ec0d1e3817f9fbc00435690b10761fdbc95c8034b43d9b3a0622b820f0","2d79e80c6c0ab98c01dd7526c570c2197384005624bb707cc2f2835df783aedd","8b157145ca9be70e446f1885f4418babbc9f991704b419106d59584a1670810b","ee57677277db2c2c2b43ff9a860a1a77a47e904170fa856bc3b717d741da0955","312cb6345dc8601ec30c58fbf3a3bed42bffe091ebefe7e9d07179c99245fcc3","11055c627628d484ec176770d66b9dc2c079336c4dd3ade4f22a7e28d0875a48","4cbb870a366b1374028874b47cea1a101b07c9001f5663bdafeac3aad5c1f3bd","d514f6ef0db6d229c8791cf73b08ab9c7064effaa69110df9818eb96f142ec53","9f41190ce2695f8b58e3ee96cc55844725b5bdfcdf714a63eb700db3f16b9307","691d1d817000afad746f7e077c2eef602bebde4bee156b7792175ca49d334c3f","12afe6cfbcece2a06267f37f3bbb6f123b9d1f3a6012522a7cec91a6a7b7daf7","4819ed1f2e82a0dbb5661db46f7330a4f1aae71fc8cbbe912c0ec86d97870a3a","c42fdaadfd7fd8a6ba48946075698a299acf6721052cd577796a540f6a3394a0","94cadef767d7b5bdc05ca54ee1f10f02c2bd15c83e10b12c05a70af7642e0e89","5dd25607d53b11431b3d957358f223052cf14306abd60c217eb9fe0546a37c42","07e1f32fc513e4d7d74511f1e0f1de13f98477c507bc0de66d24150ec14a8406","fa1b7cf068708b76f5bf15e478c75c798becb8aabfaa7bd6a6468e800b93fb84","17fed63d6a14e044b1ec988ef72bac5ebd9f5b82bf914c2853cd3cea92dff750","9048b694c445d9fc0f8450c7e478dc4da766c1d9ac0b87de4b25c2d8b432ac0b","fe80446e005bb4d82cf60f9277582ad0abed938a52882ede02258bfcd2136fbc","f9f31abf6f0661c550cd28c0215246596d91dfea4f7342768477d246935b89ce","68e3f7c012efa9bd78bc17745b92ed071f8dceef4991b768e91bf3049938fd92","c009830a6ba0d1d424a590b352964d4b15bc1479bf32dcf2ff080bfe2d34b443","116f841998cf3fb553d4356d723351e91946af1f8119a20d3a07fcc70188956b","85d0b9f7d84dde00a6f5090983a97524851244c29d9d591312e9a35ba37f6f25","8ef57f5c49173911a97f7fdce1aef8f503ddc9d790614fc384d0358f9ef2e204","5f06dd9941c04a35759b204a6e6d939c90ad160a94735ae22c97398fb40415af","c18e89d533cfdc50c35476de58a8c31b06771d8fe07e2336636b213f44f8f52a","ad24bb4ca0fac1c1ed54aa72b23ab9fefdd6d753ac06f254027881bd602c8b12","768383269a84ce64ceb69747b076090f472b2fe2799f7e131f7c8e9472a70e08","82b9c42e1013849c1ef4370d8af8ec2055abb8f46840a85828497a92be97a4a8","5316e3eb64719411065409734c073f1592979c9f2b139dc43454e7b0180a6f34","2dfe2328ca05836f514293f9abe193641f25e94ade3b8d6e44649cc2217cc394","0a2937f6a53ff4e6bffadb455f3bd1bfe93dd3fe5fcde7dc320e10f9591ef9be","78bc1f6f878ee77d6569dd66411a06f7f0346eb4289a28953a1f5951445c211d","6c781d9da77cd461287e8db8accc4346f5afc279c082015d8035f5fd8cca00d2","c20549364ff7591fe3ed1f3475d86729a22dc6b771680ce9eb2140f3d1260d59","336765e929e6b74f54beedf004efb99bd9f502dfffa05d5131170d6c1ca602dd","90d335db4c18e23adc3a888e6485b55059d1275b051d7ac3bce0527070960f1d","cb541cd1942b87afc0482615c304c6d5cb9515f35c4c42880408e61342c639c1","282c752e32d2c2abc592822674677a536d19a5d99563d3c375a37dc34b2b2e52","d3eb60418200608eb2ace33be703ae2fb87d87ffec89f47ec9783651acc36c89","cc9b424e1017c3d3251ae801d1f1e6e81ad34a7ce747c41a94ad16efe1cec53c","6b5c2546a3d73bb23045da6078b6b7601fe1a53f2c59a39ed0359f3c9cfc8c15","849ce5f35eee196863e7c8f44c0d0dbd85c004d031485703167ad16a30b1dd35","e0b5a35552fb940910daaeb5794cb5f04143f4c3e77f318d1c47c8d6e53cc429","1298eb4957af19f5d5c283d38f872953085ee4464decb1cfef669411af42c9be","bba3388b8d3c079e0f4dde365643b0a1108ecc91d4d66aca2ebbfc5beffc649e","dc3b234cbc8f5e9d6c7bdcdbef9ef0a0b83a867075751f04471c5ae9fb4e8167","b822c4e98f5d014a3e64e6c4f50cf2d09491e7eb21621114a62ee5eb9e3ec44b","039290b509ce3199d69cff5591430f2e218da1d80ddaff23c58fd193a23c7c89","2ea0ad0652a48d8f881bddef97866b2f6df74e8b628bcf22bc8cb2c8ebf46fa2","a3bf978ba74dd0d218074206e61e371a5d7b5a6a2f23f8a8aada3f774f9a5fc1","9b15d2bb1ea6e1c15c204f2544ae2da500f8777f7ff59797a9d993ca19287806","ec04ed14d8ebd488b39ce330a18ec239b2a3f6e8080501909016a59b3cd1954b","6eecc5b79703475a999ee5bac73339c7fe6304e32064fc86a1ac3910a58d888d","0b0d3340d074ec56a989acb475828d5cb19ac0c05a2b51aed396a105313515a4","92531ce0c009abeb7edd8d6483208ad1f3b33e6165d77b3e38f1ad4c04a226d4","6de9f2a41325a1523ea7d720c6f4d2a6df568cd53aca65ac9c1dadf2ba00816a","5b526f9ca76055ed6b412d7e557d1903e1d28c89db0a5b5d8785ad98e9482922","7b5b8048c35445b01c39fb46a2d0b94a1495f680a604dd298accf16d6acb8fff","8254c7487dce3dc4b67cc62863c03ed24b8b026bc07b8e78cd65c546e52af1e6","3dbbf5878c4e5d98841e182213a8d5176487e025a0ec12261c50c6d4ac7e2272","4ec4fa6321eedbde22c6022abe355cee9c2234f38ae50e5c112e93b70fe6f7e3","2cc926424d5c4b6d529b788e77424dd9ad07f801032d8de76743a4409c7eecd5","050bb43d3bf4b5aacbdc52b94dbaac3a6ef2d333633cbaf34148386fedc94635","9d91754a7b24d67c5eac2049a414cf2d7b6ed4506462f669007dc8db624e8807","d705d5013df402461cf339a27190f44a03d36b0513bbaabd79d7577765e2df69","ce95da0d29dde67a670eb054a1c18fef35573194d92c64028cc2fc928dca29f1","e92f70263fa30a8d7e267a78526c9b54320e546a9e4af24f5c46f0c97e163540","d10111aad10a43fb1beb4bbed7ea4ba3d8ab8d205a8384f564a1cd2f3831e3b6","cd577bac2d030a5ac79cae1197edc58f19f5dbc0368c1932f3f31248a1464227","929fb117df95718dbdd79c458843acf44e0f5c1c4b9302d25fcb56db708595d9","5a442f84e1796d09d62795b7bb5ef8f19bb0a6cb51ebadba42146fbd60d9daec","18c41c21bd44352c9e3174c78c137cf1340e47b6c1a08c12119e27f97ba09239","45e7d8d32c3e85edd9a38ad51d246a7fc1d1f3f28b8848f02f40d46858a71622","003a5f0bc8f8b3b2c907bf3a0c7214c7eb5b13f674b0e05987b7f990ed4c83d7","99f7612f2eef9c61bad9deee79881cb313d49f008972eec84ef667879d520fa8","1e322e94cbc6155331f1c9d61fb57d46de8d5521cc9725535d00ed9b032898ec","8716a0ad1a088801964b5c7615446978b231a3bb9d20cdfa2876b473f9bb102b","4720ca973210950d58fa5201ffbe43ec706a6d2a33e456498127fd37087e0189","2491224795c5885295e00d874b8c98e2faf976f2e24ce285e001ec5ca5d673e9","e79f395900b6e646409d04dd7b3a5f1c2dcd09d4158e21c118cb3e3500c05000","a009c5e779e926eaf631d46d48be8058573c0b055cd95f4cd535af5878424bf7","3e923571b9fc8397ca677b0896df5babd2030d4544b82e234268c1e12944fb0b","0ea58265438797324d37e863e39be2d5b1ba2df950f007b171a3f30e4a55ecad","74c535d8283f0993d275f1389efafe302ef2ac708339ebd20a316abbc92b7068","38ed48692e7fe9b93f8ce722cee20597ad0ab703c17a8b9a5bac600016a45c29","8083c84dc581292b86634ca31ce50de58da43d7058a8f92f44e8d6435e3a9979","ee1f748c91c68a9c96978d5e3cebaaabf44fd668f8a4cc60313a28627ca260df","d4e3b7c303074abab1abd8eceb2095eda6ad6d57e3456877ca758112d17c10f0","ddd478067db3e594afc28f3824c3ee74dc124dd22c9f6fc94b4f145c490fed30","18118332cf60dfe061ef415b4bdf7189ed18d66ef897e4e4fcbe7024beb0e5b5","4b55851f1b1b241b458042c96a7f700e9065598241f25b0c8d7836b6ce4e3112","c62cb0764f2ed89876d81a79343776c1c10e2e4dc8d4235f6ed0a9873c1891ed","ea50f63a80ae70cb585b62cd5e80e43a9a90c5ae75a16cae6da357d4033e4aa1","80d84fe00782eba2fefee733d00053091eb995a331cdb6d93a642860603ca3f2","48d885a7c383c113b1c3fec6668ac9b376b059c6d9a82c65251eadd00cc57fed","d88767e77141e5d76b380dd987e4a94dfff884263feab1277320476760703133","ee08a2cefe02b3d7e66d1fe2a8d96d934cb0553c82e9a2a3b4ec089edc84f7bf","2378689f33f250754fde8db9392c07feb4642c89f64bb2f3c68745110127bf59","1484b2242f26d0f712526d4ab4e9a2070634f8a119b10aef8d5de8a97c3939bd","ae64b7dad8b449e736e6b21d8e327ea7cbd68fc5bdd01999e4c67f3896da4cb1","fe45a19f125e7c356c6bf78b890b384b01444c4124fede1d4c9cc0d667ef5501","35ef5e22ee548fc5e444c437cf660750a4f9345e955c00d940fb2aa2af2ab71b","f6a8ba5be1959c533c9021a694d6f9713d280ba4c88d6fc9ed49af57202c2468","77fad278743a2cf5cf66fe2cd6fabf97cdb40a324b9c00bd474f243683983f11","8a561544b0e1acff2e2b370dd9a7192804670402ea4a24af81ca55738927e506",{"version":"a560f4b96e21509251152f7fe22a4af4d23c4d7c544dfe3379029916e0a68e97","signature":"4190ac1422a7ad63f86e272e30c3fa93c10f02219222743878f90cfaf99135f8"},{"version":"26ce0f77d0be37258066b3d48ca340a0b527370cd68dfbcf3eaa5ca442ae9569","signature":"9b30de20a4e42d10a67956b0b28c2817f2575886daf5cfc91d2464010ddae285"},{"version":"4073e07d5cc8a75c34da07ff5fbabee49a066714a512998ad4dbcfb3adf1416a","signature":"15a90c1001a6f1d85098fe3ef5a7696519405a205c31b561d299938ec2fb73fa"}],"root":[[385,387]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[115,2],[104,3],[116,4],[124,5],[127,6],[126,7],[106,8],[109,9],[110,10],[112,11],[113,12],[121,13],[120,14],[122,15],[123,14],[129,16],[128,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[108,47],[107,12],[103,12],[101,12],[102,48],[100,12],[386,49],[387,50],[385,51],[242,52],[197,53],[245,54],[243,53],[196,55],[244,56],[198,57],[199,58],[214,59],[202,60],[209,61],[216,62],[217,63],[218,63],[223,64],[219,63],[221,65],[220,66],[222,67],[215,65],[247,68],[248,69],[246,70],[251,71],[249,65],[250,72],[253,73],[254,74],[224,58],[225,67],[226,75],[229,76],[227,77],[230,78],[237,79],[231,80],[232,77],[233,67],[234,63],[203,58],[228,75],[235,70],[236,80],[256,81],[261,82],[262,83],[255,84],[263,85],[264,86],[265,87],[266,88],[238,65],[377,89],[378,90],[384,91],[379,65],[240,92],[381,93],[383,94],[382,95],[376,96],[271,97],[269,98],[270,99],[268,100],[205,101],[272,102],[273,103],[258,104],[274,105],[275,106],[278,107],[276,65],[257,58],[277,58],[259,65],[260,108],[208,109],[281,110],[279,84],[280,70],[374,111],[282,112],[285,113],[283,58],[284,80],[286,58],[289,114],[287,77],[288,80],[291,115],[294,116],[293,117],[296,118],[298,119],[297,65],[299,67],[309,120],[305,121],[300,122],[307,123],[306,65],[295,124],[308,125],[312,126],[310,127],[311,128],[315,129],[314,130],[313,99],[316,131],[322,132],[318,133],[317,134],[319,135],[320,136],[321,137],[206,84],[324,138],[323,139],[325,140],[328,141],[326,58],[327,142],[207,143],[332,144],[329,65],[330,70],[331,80],[333,145],[334,146],[267,56],[339,147],[336,148],[337,149],[340,58],[341,150],[342,151],[343,152],[350,153],[344,154],[346,155],[204,156],[303,157],[347,58],[348,58],[304,158],[349,159],[345,160],[302,152],[355,161],[354,162],[357,163],[356,78],[360,164],[358,127],[359,165],[361,166],[352,167],[353,168],[364,169],[362,84],[363,170],[367,171],[366,172],[365,127],[368,173],[370,174],[371,175],[373,176],[372,102],[134,177],[135,178],[133,178],[136,179],[143,180],[138,181],[139,178],[141,182],[140,177],[142,178],[152,183],[148,184],[151,185],[150,186],[156,187],[157,187],[155,188],[160,189],[159,188],[195,190],[162,191],[163,192],[168,193],[164,194],[166,195],[165,196],[171,197],[174,198],[176,199],[181,200],[180,201],[178,191],[182,199],[183,202],[184,203],[185,204],[193,205],[186,203],[187,200],[179,206],[192,207],[190,208],[191,209],[194,210]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/chat.css
ADDED
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
.g9-msg {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
padding: 0 12px;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.g9-msg--gap {
|
|
8
|
+
margin-top: 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.g9-msg--tight {
|
|
12
|
+
margin-top: 2px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.g9-msg__sender {
|
|
16
|
+
color: var(--g9-primary);
|
|
17
|
+
margin: 0 8px 2px;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.g9-msg__bubble {
|
|
23
|
+
border-radius: 18px;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
max-width: 78%;
|
|
26
|
+
padding: 8px 12px 6px;
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.g9-msg__bubble--mine {
|
|
31
|
+
background-color: var(--g9-primary-container);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.g9-msg__bubble--theirs {
|
|
35
|
+
background-color: var(--g9-surface-container-high);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.g9-msg__bubble--right-first {
|
|
39
|
+
border-bottom-right-radius: 6px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.g9-msg__bubble--right-middle {
|
|
43
|
+
border-top-right-radius: 6px;
|
|
44
|
+
border-bottom-right-radius: 6px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.g9-msg__bubble--right-last {
|
|
48
|
+
border-top-right-radius: 6px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.g9-msg__bubble--right-single {
|
|
52
|
+
border-bottom-right-radius: 6px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.g9-msg__bubble--left-first {
|
|
56
|
+
border-bottom-left-radius: 6px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.g9-msg__bubble--left-middle {
|
|
60
|
+
border-top-left-radius: 6px;
|
|
61
|
+
border-bottom-left-radius: 6px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.g9-msg__bubble--left-last {
|
|
65
|
+
border-top-left-radius: 6px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.g9-msg__bubble--left-single {
|
|
69
|
+
border-bottom-left-radius: 6px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.g9-msg__text {
|
|
73
|
+
font-size: 15px;
|
|
74
|
+
line-height: 22px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.g9-msg__text--mine {
|
|
78
|
+
color: var(--g9-on-primary-container);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.g9-msg__text--theirs {
|
|
82
|
+
color: var(--g9-text-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.g9-msg__reply {
|
|
86
|
+
border-left-style: solid;
|
|
87
|
+
border-left-width: 3px;
|
|
88
|
+
border-radius: 8px;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
margin-bottom: 4px;
|
|
91
|
+
padding: 4px 8px;
|
|
92
|
+
display: flex;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.g9-msg__reply--mine {
|
|
96
|
+
border-left-color: var(--g9-primary);
|
|
97
|
+
background-color: var(--g9-overlay-light);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.g9-msg__reply--theirs {
|
|
101
|
+
border-left-color: var(--g9-tertiary);
|
|
102
|
+
background-color: var(--g9-surface-container);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.g9-msg__reply-from {
|
|
106
|
+
color: var(--g9-primary);
|
|
107
|
+
font-size: 12px;
|
|
108
|
+
font-weight: 700;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.g9-msg__reply-text {
|
|
112
|
+
color: var(--g9-text-secondary);
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.g9-msg__meta {
|
|
117
|
+
align-self: flex-end;
|
|
118
|
+
align-items: center;
|
|
119
|
+
column-gap: 4px;
|
|
120
|
+
margin-top: 2px;
|
|
121
|
+
display: flex;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.g9-msg__time {
|
|
125
|
+
font-size: 10px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.g9-msg__time--mine {
|
|
129
|
+
color: var(--g9-on-primary-container);
|
|
130
|
+
opacity: .7;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.g9-msg__time--theirs {
|
|
134
|
+
color: var(--g9-text-tertiary);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.g9-msg__status {
|
|
138
|
+
color: var(--g9-text-tertiary);
|
|
139
|
+
font-size: 11px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.g9-msg__status--read {
|
|
143
|
+
color: var(--g9-info);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.g9-msg__status--failed {
|
|
147
|
+
color: var(--g9-error);
|
|
148
|
+
font-weight: 800;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.g9-thread {
|
|
152
|
+
flex: 1;
|
|
153
|
+
min-height: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.g9-thread__day {
|
|
157
|
+
justify-content: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
height: 36px;
|
|
160
|
+
display: flex;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.g9-thread__day-text {
|
|
164
|
+
color: var(--g9-text-secondary);
|
|
165
|
+
background-color: var(--g9-surface-container);
|
|
166
|
+
border-radius: 10px;
|
|
167
|
+
padding: 3px 10px;
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.g9-thread__system {
|
|
172
|
+
justify-content: center;
|
|
173
|
+
padding: 6px 24px;
|
|
174
|
+
display: flex;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.g9-thread__system-text {
|
|
178
|
+
text-align: center;
|
|
179
|
+
color: var(--g9-text-tertiary);
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.g9-thread__typing {
|
|
184
|
+
padding: 8px 12px;
|
|
185
|
+
display: flex;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.g9-typing {
|
|
189
|
+
background-color: var(--g9-surface-container-high);
|
|
190
|
+
border-radius: 16px;
|
|
191
|
+
flex-direction: row;
|
|
192
|
+
align-items: center;
|
|
193
|
+
column-gap: 4px;
|
|
194
|
+
height: 32px;
|
|
195
|
+
padding: 0 12px;
|
|
196
|
+
display: flex;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.g9-typing__dot {
|
|
200
|
+
background-color: var(--g9-text-tertiary);
|
|
201
|
+
border-radius: 4px;
|
|
202
|
+
width: 7px;
|
|
203
|
+
height: 7px;
|
|
204
|
+
animation-name: g9-typing-dot;
|
|
205
|
+
animation-duration: 1.1s;
|
|
206
|
+
animation-timing-function: ease-in-out;
|
|
207
|
+
animation-iteration-count: infinite;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.g9-typing__dot--2 {
|
|
211
|
+
animation-delay: .16s;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.g9-typing__dot--3 {
|
|
215
|
+
animation-delay: .32s;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@keyframes g9-typing-dot {
|
|
219
|
+
0% {
|
|
220
|
+
opacity: .5;
|
|
221
|
+
transform: translateY(0);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
30% {
|
|
225
|
+
opacity: 1;
|
|
226
|
+
transform: translateY(-4px);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
60% {
|
|
230
|
+
opacity: .5;
|
|
231
|
+
transform: translateY(0);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
100% {
|
|
235
|
+
opacity: .5;
|
|
236
|
+
transform: translateY(0);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.g9-composer {
|
|
241
|
+
background-color: var(--g9-surface);
|
|
242
|
+
border-top-style: solid;
|
|
243
|
+
border-top-width: 1px;
|
|
244
|
+
border-top-color: var(--g9-divider);
|
|
245
|
+
align-items: flex-end;
|
|
246
|
+
column-gap: 4px;
|
|
247
|
+
padding: 8px;
|
|
248
|
+
display: flex;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.g9-composer__box {
|
|
252
|
+
background-color: var(--g9-surface-container);
|
|
253
|
+
border-radius: 20px;
|
|
254
|
+
flex: 1;
|
|
255
|
+
min-width: 0;
|
|
256
|
+
padding: 0 12px;
|
|
257
|
+
display: flex;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.g9-composer__input {
|
|
261
|
+
color: var(--g9-text-primary);
|
|
262
|
+
flex: 1;
|
|
263
|
+
padding: 8px 0;
|
|
264
|
+
font-size: 15px;
|
|
265
|
+
line-height: 20px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.g9-convo {
|
|
269
|
+
align-items: center;
|
|
270
|
+
column-gap: 12px;
|
|
271
|
+
min-height: 72px;
|
|
272
|
+
padding: 8px 16px;
|
|
273
|
+
display: flex;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.g9-convo__body {
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
flex: 1;
|
|
279
|
+
row-gap: 4px;
|
|
280
|
+
min-width: 0;
|
|
281
|
+
display: flex;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.g9-convo__top, .g9-convo__bottom {
|
|
285
|
+
align-items: center;
|
|
286
|
+
column-gap: 8px;
|
|
287
|
+
display: flex;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.g9-convo__name {
|
|
291
|
+
min-width: 0;
|
|
292
|
+
color: var(--g9-text-primary);
|
|
293
|
+
flex: 1;
|
|
294
|
+
font-size: 15px;
|
|
295
|
+
font-weight: 700;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.g9-convo__time {
|
|
299
|
+
color: var(--g9-text-tertiary);
|
|
300
|
+
font-size: 11px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.g9-convo__time--unread {
|
|
304
|
+
color: var(--g9-primary);
|
|
305
|
+
font-weight: 700;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.g9-convo__preview {
|
|
309
|
+
min-width: 0;
|
|
310
|
+
color: var(--g9-text-secondary);
|
|
311
|
+
flex: 1;
|
|
312
|
+
font-size: 13px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.g9-convo__preview--typing {
|
|
316
|
+
color: var(--g9-primary);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.g9-emoji {
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
row-gap: 8px;
|
|
322
|
+
display: flex;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.g9-emoji__grid {
|
|
326
|
+
flex-direction: column;
|
|
327
|
+
display: flex;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.g9-emoji__row {
|
|
331
|
+
flex-direction: row;
|
|
332
|
+
display: flex;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.g9-emoji__cell {
|
|
336
|
+
flex: 1;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
align-items: center;
|
|
339
|
+
height: 44px;
|
|
340
|
+
display: flex;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.g9-emoji__glyph {
|
|
344
|
+
font-size: 26px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
/*# sourceMappingURL=chat.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./src/chat.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,eAAe;AACjB;;AAGA;EAAE,eAAe;AACjB;;AAGA;EAAE,wBAAwB;EACxB,iBAAiB;EACjB,eAAe;EACf,gBAAgB;AAClB;;AAGA;EAAE,mBAAmB;EACnB,sBAAsB;EACtB,cAAc;EACd,qBAAqB;EACrB,aAAa;AACf;;AAGA;EAAE,6CAA6C;AAC/C;;AAGA;EAAE,kDAAkD;AACpD;;AAIA;EADE,+BAA+B;AACjC;;AAIA;EADE,4BAA4B;EAC5B,+BAA+B;AACjC;;AAIA;EADE,4BAA4B;AAC9B;;AAIA;EADE,+BAA+B;AACjC;;AAIA;EADE,8BAA8B;AAChC;;AAIA;EADE,2BAA2B;EAC3B,8BAA8B;AAChC;;AAIA;EADE,2BAA2B;AAC7B;;AAIA;EADE,8BAA8B;AAChC;;AAIA;EADE,eAAe;EACf,iBAAiB;AACnB;;AAIA;EADE,qCAAqC;AACvC;;AAIA;EADE,6BAA6B;AAC/B;;AAIA;EADE,wBAAwB;EACxB,sBAAsB;EACtB,kBAAkB;EAClB,sBAAsB;EACtB,kBAAkB;EAClB,gBAAgB;EAChB,aAAa;AACf;;AAIA;EADE,oCAAoC;EACpC,yCAAyC;AAC3C;;AAIA;EADE,qCAAqC;EACrC,6CAA6C;AAC/C;;AAIA;EADE,wBAAwB;EACxB,eAAe;EACf,gBAAgB;AAClB;;AAIA;EADE,+BAA+B;EAC/B,eAAe;AACjB;;AAIA;EADE,oBAAoB;EACpB,mBAAmB;EACnB,eAAe;EACf,eAAe;EACf,aAAa;AACf;;AAIA;EADE,eAAe;AACjB;;AAIA;EADE,qCAAqC;EACrC,WAAW;AACb;;AAIA;EADE,8BAA8B;AAChC;;AAIA;EADE,8BAA8B;EAC9B,eAAe;AACjB;;AAIA;EADE,qBAAqB;AACvB;;AAIA;EADE,sBAAsB;EACtB,gBAAgB;AAClB;;AAIA;EADE,OAAO;EACP,aAAa;AACf;;AAIA;EADE,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,+BAA+B;EAC/B,6CAA6C;EAC7C,mBAAmB;EACnB,iBAAiB;EACjB,eAAe;AACjB;;AAIA;EADE,uBAAuB;EACvB,iBAAiB;EACjB,aAAa;AACf;;AAIA;EADE,kBAAkB;EAClB,8BAA8B;EAC9B,eAAe;AACjB;;AAIA;EADE,iBAAiB;EACjB,aAAa;AACf;;AAIA;EADE,kDAAkD;EAClD,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,eAAe;EACf,aAAa;AACf;;AAIA;EADE,yCAAyC;EACzC,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,6BAA6B;EAC7B,wBAAwB;EACxB,sCAAsC;EACtC,mCAAmC;AACrC;;AAIA;EADE,qBAAqB;AACvB;;AAIA;EADE,qBAAqB;AACvB;;AAIA;EADE;IACE,WAAW;IACX,wBAAwB;EAC1B;;EAEA;IACE,UAAU;IACV,2BAA2B;EAC7B;;EAEA;IACE,WAAW;IACX,wBAAwB;EAC1B;;EAEA;IACE,WAAW;IACX,wBAAwB;EAC1B;AACF;;AACA;EAEE,mCAAmC;EACnC,uBAAuB;EACvB,qBAAqB;EACrB,mCAAmC;EACnC,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ,aAAa;AACf;;AACA;EAEE,6CAA6C;EAC7C,mBAAmB;EACnB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,aAAa;AACf;;AACA;EAEE,6BAA6B;EAC7B,OAAO;EACP,cAAc;EACd,eAAe;EACf,iBAAiB;AACnB;;AACA;EAEE,mBAAmB;EACnB,gBAAgB;EAChB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;AACf;;AACA;EAEE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,YAAY;EACZ,aAAa;AACf;;AACA;EAEE,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAOA;EAJE,YAAY;EACZ,6BAA6B;EAC7B,OAAO;EACP,eAAe;EACf,gBAAgB;AAClB;;AAOA;EAJE,8BAA8B;EAC9B,eAAe;AACjB;;AAOA;EAJE,wBAAwB;EACxB,gBAAgB;AAClB;;AAOA;EAJE,YAAY;EACZ,+BAA+B;EAC/B,OAAO;EACP,eAAe;AACjB;;AAOA;EAJE,wBAAwB;AAC1B;;AAOA;EAJE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,sBAAsB;EACtB,aAAa;AACf;;AAOA;EAJE,mBAAmB;EACnB,aAAa;AACf;;AAOA;EAJE,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,eAAe;AACjB","sourcesContent":["/* Chat controls. One class per selector; colours are theme variables; motion is CSS only. */\n.g9-msg {\n display: flex;\n flex-direction: column;\n padding: 0px 12px;\n}\n\n.g9-msg--gap {\n margin-top: 8px;\n}\n\n.g9-msg--tight {\n margin-top: 2px;\n}\n\n.g9-msg__sender {\n margin: 0px 8px 2px 8px;\n font-size: 12px;\n font-weight: 700;\n color: var(--g9-primary);\n}\n\n.g9-msg__bubble {\n display: flex;\n flex-direction: column;\n max-width: 78%;\n padding: 8px 12px 6px 12px;\n border-radius: 18px;\n}\n\n.g9-msg__bubble--mine {\n background-color: var(--g9-primary-container);\n}\n\n.g9-msg__bubble--theirs {\n background-color: var(--g9-surface-container-high);\n}\n\n/* corners toward the sender tighten inside a run */\n.g9-msg__bubble--right-first {\n border-bottom-right-radius: 6px;\n}\n\n.g9-msg__bubble--right-middle {\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n}\n\n.g9-msg__bubble--right-last {\n border-top-right-radius: 6px;\n}\n\n.g9-msg__bubble--right-single {\n border-bottom-right-radius: 6px;\n}\n\n.g9-msg__bubble--left-first {\n border-bottom-left-radius: 6px;\n}\n\n.g9-msg__bubble--left-middle {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n}\n\n.g9-msg__bubble--left-last {\n border-top-left-radius: 6px;\n}\n\n.g9-msg__bubble--left-single {\n border-bottom-left-radius: 6px;\n}\n\n.g9-msg__text {\n font-size: 15px;\n line-height: 22px;\n}\n\n.g9-msg__text--mine {\n color: var(--g9-on-primary-container);\n}\n\n.g9-msg__text--theirs {\n color: var(--g9-text-primary);\n}\n\n.g9-msg__reply {\n display: flex;\n flex-direction: column;\n margin-bottom: 4px;\n padding: 4px 8px;\n border-radius: 8px;\n border-left-width: 3px;\n border-left-style: solid;\n}\n\n.g9-msg__reply--mine {\n border-left-color: var(--g9-primary);\n background-color: var(--g9-overlay-light);\n}\n\n.g9-msg__reply--theirs {\n border-left-color: var(--g9-tertiary);\n background-color: var(--g9-surface-container);\n}\n\n.g9-msg__reply-from {\n font-size: 12px;\n font-weight: 700;\n color: var(--g9-primary);\n}\n\n.g9-msg__reply-text {\n font-size: 12px;\n color: var(--g9-text-secondary);\n}\n\n.g9-msg__meta {\n display: flex;\n align-self: flex-end;\n align-items: center;\n column-gap: 4px;\n margin-top: 2px;\n}\n\n.g9-msg__time {\n font-size: 10px;\n}\n\n.g9-msg__time--mine {\n color: var(--g9-on-primary-container);\n opacity: 0.7;\n}\n\n.g9-msg__time--theirs {\n color: var(--g9-text-tertiary);\n}\n\n.g9-msg__status {\n font-size: 11px;\n color: var(--g9-text-tertiary);\n}\n\n.g9-msg__status--read {\n color: var(--g9-info);\n}\n\n.g9-msg__status--failed {\n font-weight: 800;\n color: var(--g9-error);\n}\n\n.g9-thread {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-thread__day {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 36px;\n}\n\n.g9-thread__day-text {\n padding: 3px 10px;\n border-radius: 10px;\n font-size: 12px;\n color: var(--g9-text-secondary);\n background-color: var(--g9-surface-container);\n}\n\n.g9-thread__system {\n display: flex;\n justify-content: center;\n padding: 6px 24px;\n}\n\n.g9-thread__system-text {\n font-size: 12px;\n text-align: center;\n color: var(--g9-text-tertiary);\n}\n\n.g9-thread__typing {\n display: flex;\n padding: 8px 12px;\n}\n\n.g9-typing {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 4px;\n height: 32px;\n padding: 0px 12px;\n border-radius: 16px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-typing__dot {\n width: 7px;\n height: 7px;\n border-radius: 4px;\n background-color: var(--g9-text-tertiary);\n animation-name: g9-typing-dot;\n animation-duration: 1100ms;\n animation-iteration-count: infinite;\n animation-timing-function: ease-in-out;\n}\n\n.g9-typing__dot--2 {\n animation-delay: 160ms;\n}\n\n.g9-typing__dot--3 {\n animation-delay: 320ms;\n}\n\n@keyframes g9-typing-dot {\n 0% {\n transform: translateY(0px);\n opacity: 0.5;\n }\n 30% {\n transform: translateY(-4px);\n opacity: 1;\n }\n 60% {\n transform: translateY(0px);\n opacity: 0.5;\n }\n 100% {\n transform: translateY(0px);\n opacity: 0.5;\n }\n}\n\n.g9-composer {\n display: flex;\n align-items: flex-end;\n column-gap: 4px;\n padding: 8px;\n background-color: var(--g9-surface);\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-divider);\n}\n\n.g9-composer__box {\n display: flex;\n flex: 1;\n min-width: 0px;\n padding: 0px 12px;\n border-radius: 20px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-composer__input {\n flex: 1;\n padding: 8px 0px;\n font-size: 15px;\n line-height: 20px;\n color: var(--g9-text-primary);\n}\n\n.g9-convo {\n display: flex;\n align-items: center;\n column-gap: 12px;\n min-height: 72px;\n padding: 8px 16px;\n}\n\n.g9-convo__body {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n row-gap: 4px;\n}\n\n.g9-convo__top {\n display: flex;\n align-items: center;\n column-gap: 8px;\n}\n\n.g9-convo__bottom {\n display: flex;\n align-items: center;\n column-gap: 8px;\n}\n\n.g9-convo__name {\n flex: 1;\n min-width: 0px;\n font-size: 15px;\n font-weight: 700;\n color: var(--g9-text-primary);\n}\n\n.g9-convo__time {\n font-size: 11px;\n color: var(--g9-text-tertiary);\n}\n\n.g9-convo__time--unread {\n color: var(--g9-primary);\n font-weight: 700;\n}\n\n.g9-convo__preview {\n flex: 1;\n min-width: 0px;\n font-size: 13px;\n color: var(--g9-text-secondary);\n}\n\n.g9-convo__preview--typing {\n color: var(--g9-primary);\n}\n\n.g9-emoji {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n}\n\n.g9-emoji__grid {\n display: flex;\n flex-direction: column;\n}\n\n.g9-emoji__row {\n display: flex;\n flex-direction: row;\n}\n\n.g9-emoji__cell {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n height: 44px;\n}\n\n.g9-emoji__glyph {\n font-size: 26px;\n}\n"],"sourceRoot":""}
|
package/dist/chat.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import './chat.css';
|
|
2
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
3
|
+
import { type G9BubblePosition, type G9Message } from './model.js';
|
|
4
|
+
/** Props of {@link G9MessageBubble}. */
|
|
5
|
+
export interface G9MessageBubbleProps {
|
|
6
|
+
readonly message: G9Message;
|
|
7
|
+
readonly mine: boolean;
|
|
8
|
+
readonly position?: G9BubblePosition;
|
|
9
|
+
readonly showTime?: boolean;
|
|
10
|
+
/** The sender's name above a run of someone else's bubbles (group chats). */
|
|
11
|
+
readonly senderName?: string;
|
|
12
|
+
/** What the bubble carries under the text (an image, a voice note): the app draws it. */
|
|
13
|
+
readonly attachment?: ReactNode;
|
|
14
|
+
readonly onLongPress?: (message: G9Message) => void;
|
|
15
|
+
readonly onRetry?: (message: G9Message) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* One message: mine on the end side in the primary container colour, theirs on the start side on the surface;
|
|
19
|
+
* the corner toward the sender is tightened inside a run (first/middle/last), the time and the status ticks under
|
|
20
|
+
* the last bubble of a run.
|
|
21
|
+
*/
|
|
22
|
+
export declare const G9MessageBubble: import("react").NamedExoticComponent<G9MessageBubbleProps>;
|
|
23
|
+
/** Props of {@link G9ChatThread}. */
|
|
24
|
+
export interface G9ChatThreadProps {
|
|
25
|
+
readonly id?: string;
|
|
26
|
+
readonly className?: string;
|
|
27
|
+
readonly messages: readonly G9Message[];
|
|
28
|
+
readonly me: string;
|
|
29
|
+
/** Names for group chats (shown above a run from someone else). */
|
|
30
|
+
readonly names?: Readonly<Record<string, string>>;
|
|
31
|
+
readonly dayLabel?: (dayStartMs: number) => string;
|
|
32
|
+
/** Older messages: called when the top is near. */
|
|
33
|
+
readonly onLoadOlder?: () => void;
|
|
34
|
+
readonly renderAttachment?: (message: G9Message) => ReactNode;
|
|
35
|
+
readonly onLongPress?: (message: G9Message) => void;
|
|
36
|
+
readonly onRetry?: (message: G9Message) => void;
|
|
37
|
+
/** Shown under the last message (the other side typing). */
|
|
38
|
+
readonly typing?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A conversation on the recycler: starts at the newest message, day dividers sticky, rows rendered as they come into
|
|
42
|
+
* view (deferred list items), older pages asked for near the top.
|
|
43
|
+
*/
|
|
44
|
+
export declare function G9ChatThread(props: G9ChatThreadProps): ReactNode;
|
|
45
|
+
/** Three dots that rise in turn (CSS animation: nothing runs in script). */
|
|
46
|
+
export declare function G9TypingDots(props: {
|
|
47
|
+
readonly label?: string;
|
|
48
|
+
}): ReactNode;
|
|
49
|
+
/** Props of {@link G9ChatComposer}. */
|
|
50
|
+
export interface G9ChatComposerProps {
|
|
51
|
+
readonly id?: string;
|
|
52
|
+
readonly placeholder: string;
|
|
53
|
+
readonly onSend: (text: string) => void;
|
|
54
|
+
readonly onAttach?: () => void;
|
|
55
|
+
readonly onEmoji?: () => void;
|
|
56
|
+
readonly sendLabel?: string;
|
|
57
|
+
readonly attachLabel?: string;
|
|
58
|
+
readonly disabled?: boolean;
|
|
59
|
+
/** Text typed so far is kept by the composer; `value` / `onChange` make it controlled (a draft saved per chat). */
|
|
60
|
+
readonly value?: string;
|
|
61
|
+
readonly onChange?: (text: string) => void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The message box: a growing text area (up to 5 lines), attach and emoji at the start, send at the end — send only
|
|
65
|
+
* when there is text; Enter on a hardware keyboard sends, Shift+Enter breaks the line.
|
|
66
|
+
*/
|
|
67
|
+
export declare function G9ChatComposer(props: G9ChatComposerProps): ReactNode;
|
|
68
|
+
/** Props of {@link G9ConversationRow}. */
|
|
69
|
+
export interface G9ConversationRowProps {
|
|
70
|
+
readonly id?: string;
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly avatar?: string | null;
|
|
73
|
+
readonly preview: string;
|
|
74
|
+
readonly at: number;
|
|
75
|
+
readonly unread?: number;
|
|
76
|
+
readonly muted?: boolean;
|
|
77
|
+
readonly online?: boolean;
|
|
78
|
+
readonly typing?: boolean;
|
|
79
|
+
readonly typingText?: string;
|
|
80
|
+
readonly onPress?: () => void;
|
|
81
|
+
}
|
|
82
|
+
/** A conversation in the inbox: avatar (with presence), name, the last message or «typing…», its time, unread count. */
|
|
83
|
+
export declare const G9ConversationRow: import("react").NamedExoticComponent<G9ConversationRowProps>;
|
|
84
|
+
/** Props of {@link G9EmojiPicker}. */
|
|
85
|
+
export interface G9EmojiPickerProps {
|
|
86
|
+
readonly id?: string;
|
|
87
|
+
readonly onPick: (emoji: string) => void;
|
|
88
|
+
/** Category → emoji (default {@link g9EmojiSets}). */
|
|
89
|
+
readonly sets?: Readonly<Record<string, readonly string[]>>;
|
|
90
|
+
/** Tab labels per category (default the first emoji of each). */
|
|
91
|
+
readonly labels?: Readonly<Record<string, string>>;
|
|
92
|
+
readonly columns?: number;
|
|
93
|
+
}
|
|
94
|
+
/** Emoji by category: tabs over a grid of 44 dp targets. */
|
|
95
|
+
export declare function G9EmojiPicker(props: G9EmojiPickerProps): ReactNode;
|
|
96
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.tsx"],"names":[],"mappings":"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"}
|
package/dist/chat.jsx
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import "./chat.css";
|
|
2
|
+
import { g9IdProps } from "@g9tm/lynxcontrols/base";
|
|
3
|
+
import { G9IconButton } from "@g9tm/lynxcontrols/button";
|
|
4
|
+
import { G9Avatar, G9Badge } from "@g9tm/lynxcontrols/display";
|
|
5
|
+
import { G9VirtualList } from "@g9tm/lynxcontrols/list";
|
|
6
|
+
import { useG9Culture, useG9Direction } from "@g9tm/lynxcontrols/provider";
|
|
7
|
+
import { G9Segmented } from "@g9tm/lynxcontrols/toggle";
|
|
8
|
+
import { formatLocalDateTime, g9Haptic, localDateTimeFromEpochMs } from "@g9tm/lynxcontrols-foundation";
|
|
9
|
+
import { memo, useEffect, useMemo, useRef, useState } from "@lynx-js/react";
|
|
10
|
+
import { g9EmojiSets, statusGlyph, threadRows } from "./model.jsx";
|
|
11
|
+
const rowDir = (rtl)=>({
|
|
12
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
13
|
+
direction: 'ltr'
|
|
14
|
+
});
|
|
15
|
+
function useClock() {
|
|
16
|
+
const culture = useG9Culture();
|
|
17
|
+
return (at)=>formatLocalDateTime(localDateTimeFromEpochMs(at, -new Date(at).getTimezoneOffset()), 'HH:mm', culture);
|
|
18
|
+
}
|
|
19
|
+
const G9MessageBubble = memo(function(props) {
|
|
20
|
+
var _props_position, _m_text;
|
|
21
|
+
const rtl = 'rtl' === useG9Direction();
|
|
22
|
+
const clock = useClock();
|
|
23
|
+
const m = props.message;
|
|
24
|
+
const pos = null != (_props_position = props.position) ? _props_position : 'single';
|
|
25
|
+
const endSide = props.mine !== rtl ? 'right' : 'left';
|
|
26
|
+
const status = props.mine ? statusGlyph(m.status) : null;
|
|
27
|
+
return <view className={`g9-msg g9-msg--${'single' === pos || 'first' === pos ? 'gap' : 'tight'}`} style={{
|
|
28
|
+
alignItems: 'right' === endSide ? 'flex-end' : 'flex-start'
|
|
29
|
+
}}>
|
|
30
|
+
{props.senderName && !props.mine && ('single' === pos || 'first' === pos) ? <text className="g9-msg__sender">{props.senderName}</text> : null}
|
|
31
|
+
<view className={`g9-msg__bubble g9-msg__bubble--${props.mine ? 'mine' : 'theirs'} g9-msg__bubble--${endSide}-${pos}`} {...props.onLongPress ? {
|
|
32
|
+
bindlongpress: ()=>{
|
|
33
|
+
var _props_onLongPress;
|
|
34
|
+
return g9Haptic('impact'), null == (_props_onLongPress = props.onLongPress) ? void 0 : _props_onLongPress.call(props, m);
|
|
35
|
+
}
|
|
36
|
+
} : {}} accessibility-element={true} accessibility-label={`${null != (_m_text = m.text) ? _m_text : ''} ${clock(m.at)}`}>
|
|
37
|
+
{m.replyTo ? <view className={`g9-msg__reply g9-msg__reply--${props.mine ? 'mine' : 'theirs'}`}>
|
|
38
|
+
<text className="g9-msg__reply-from">{m.replyTo.from}</text>
|
|
39
|
+
<text className="g9-msg__reply-text" text-maxline="2">
|
|
40
|
+
{m.replyTo.text}
|
|
41
|
+
</text>
|
|
42
|
+
</view> : null}
|
|
43
|
+
{props.attachment}
|
|
44
|
+
{m.text ? <text className={`g9-msg__text g9-msg__text--${props.mine ? 'mine' : 'theirs'}`}>{m.text}</text> : null}
|
|
45
|
+
{false !== props.showTime ? <view className="g9-msg__meta" style={rowDir(false)}>
|
|
46
|
+
<text className={`g9-msg__time g9-msg__time--${props.mine ? 'mine' : 'theirs'}`}>{clock(m.at)}</text>
|
|
47
|
+
{status ? <text className={`g9-msg__status${status.read ? ' g9-msg__status--read' : ''}${'failed' === m.status ? ' g9-msg__status--failed' : ''}`} {...'failed' === m.status && props.onRetry ? {
|
|
48
|
+
bindtap: ()=>{
|
|
49
|
+
var _props_onRetry;
|
|
50
|
+
return null == (_props_onRetry = props.onRetry) ? void 0 : _props_onRetry.call(props, m);
|
|
51
|
+
}
|
|
52
|
+
} : {}}>
|
|
53
|
+
{status.text}
|
|
54
|
+
</text> : null}
|
|
55
|
+
</view> : null}
|
|
56
|
+
</view>
|
|
57
|
+
</view>;
|
|
58
|
+
});
|
|
59
|
+
function G9ChatThread(props) {
|
|
60
|
+
const culture = useG9Culture();
|
|
61
|
+
const rows = useMemo(()=>threadRows(props.messages, {
|
|
62
|
+
me: props.me,
|
|
63
|
+
culture,
|
|
64
|
+
utcOffsetMinutes: -new Date().getTimezoneOffset(),
|
|
65
|
+
...props.dayLabel ? {
|
|
66
|
+
dayLabel: props.dayLabel
|
|
67
|
+
} : {}
|
|
68
|
+
}), [
|
|
69
|
+
props.messages,
|
|
70
|
+
props.me,
|
|
71
|
+
culture,
|
|
72
|
+
props.dayLabel
|
|
73
|
+
]);
|
|
74
|
+
const items = props.typing ? [
|
|
75
|
+
...rows,
|
|
76
|
+
{
|
|
77
|
+
kind: 'typing',
|
|
78
|
+
key: '__typing'
|
|
79
|
+
}
|
|
80
|
+
] : rows;
|
|
81
|
+
return <G9VirtualList {...props.id ? {
|
|
82
|
+
id: props.id
|
|
83
|
+
} : {}} className={`g9-thread${props.className ? ` ${props.className}` : ''}`} items={items} getKey={(r)=>r.key} reuseKey={(r)=>'message' === r.kind ? r.mine ? 'mine' : 'theirs' : r.kind} startAtEnd progressive={false} estimatedSize={(r)=>'day' === r.kind ? 36 : 'typing' === r.kind ? 40 : 56} isSticky={(r)=>'day' === r.kind} {...props.onLoadOlder ? {
|
|
84
|
+
onStartReached: props.onLoadOlder
|
|
85
|
+
} : {}} renderItem={(r)=>{
|
|
86
|
+
var _props_names;
|
|
87
|
+
return 'day' === r.kind ? <view className="g9-thread__day">
|
|
88
|
+
<text className="g9-thread__day-text">{r.label}</text>
|
|
89
|
+
</view> : 'system' === r.kind ? <view className="g9-thread__system">
|
|
90
|
+
<text className="g9-thread__system-text">{r.message.text}</text>
|
|
91
|
+
</view> : 'typing' === r.kind ? <view className="g9-thread__typing">
|
|
92
|
+
<G9TypingDots/>
|
|
93
|
+
</view> : <G9MessageBubble message={r.message} mine={r.mine} position={r.position} showTime={r.showTime} {...(null == (_props_names = props.names) ? void 0 : _props_names[r.message.from]) ? {
|
|
94
|
+
senderName: props.names[r.message.from]
|
|
95
|
+
} : {}} {...props.renderAttachment && r.message.kind && 'text' !== r.message.kind ? {
|
|
96
|
+
attachment: props.renderAttachment(r.message)
|
|
97
|
+
} : {}} {...props.onLongPress ? {
|
|
98
|
+
onLongPress: props.onLongPress
|
|
99
|
+
} : {}} {...props.onRetry ? {
|
|
100
|
+
onRetry: props.onRetry
|
|
101
|
+
} : {}}/>;
|
|
102
|
+
}}/>;
|
|
103
|
+
}
|
|
104
|
+
function G9TypingDots(props) {
|
|
105
|
+
var _props_label;
|
|
106
|
+
return <view className="g9-typing" accessibility-element={true} accessibility-label={null != (_props_label = props.label) ? _props_label : '…'}>
|
|
107
|
+
<view className="g9-typing__dot g9-typing__dot--1"/>
|
|
108
|
+
<view className="g9-typing__dot g9-typing__dot--2"/>
|
|
109
|
+
<view className="g9-typing__dot g9-typing__dot--3"/>
|
|
110
|
+
</view>;
|
|
111
|
+
}
|
|
112
|
+
function G9ChatComposer(props) {
|
|
113
|
+
var _props_value, _props_attachLabel, _props_sendLabel;
|
|
114
|
+
const rtl = 'rtl' === useG9Direction();
|
|
115
|
+
const [own, setOwn] = useState('');
|
|
116
|
+
const text1 = null != (_props_value = props.value) ? _props_value : own;
|
|
117
|
+
const set = (t)=>{
|
|
118
|
+
var _props_onChange;
|
|
119
|
+
if (void 0 === props.value) setOwn(t);
|
|
120
|
+
null == (_props_onChange = props.onChange) || _props_onChange.call(props, t);
|
|
121
|
+
};
|
|
122
|
+
const [lines, setLines] = useState(1);
|
|
123
|
+
const node = useRef(null);
|
|
124
|
+
const typed = useRef(text1);
|
|
125
|
+
const write = (value)=>{
|
|
126
|
+
typed.current = value;
|
|
127
|
+
try {
|
|
128
|
+
var _node_current;
|
|
129
|
+
null == (_node_current = node.current) || _node_current.invoke({
|
|
130
|
+
method: 'setValue',
|
|
131
|
+
params: {
|
|
132
|
+
value
|
|
133
|
+
},
|
|
134
|
+
success: ()=>{},
|
|
135
|
+
fail: ()=>{}
|
|
136
|
+
}).exec();
|
|
137
|
+
} catch {}
|
|
138
|
+
};
|
|
139
|
+
useEffect(()=>{
|
|
140
|
+
if (void 0 !== props.value && props.value !== typed.current) write(props.value);
|
|
141
|
+
}, [
|
|
142
|
+
props.value
|
|
143
|
+
]);
|
|
144
|
+
const send = ()=>{
|
|
145
|
+
const t = text1.trim();
|
|
146
|
+
if (!t || props.disabled) return;
|
|
147
|
+
g9Haptic('tap');
|
|
148
|
+
props.onSend(t);
|
|
149
|
+
set('');
|
|
150
|
+
write('');
|
|
151
|
+
setLines(1);
|
|
152
|
+
};
|
|
153
|
+
return <view className="g9-composer" {...g9IdProps(props.id)} style={rowDir(rtl)}>
|
|
154
|
+
{props.onAttach ? <G9IconButton {...props.id ? {
|
|
155
|
+
id: `${props.id}.Attach`
|
|
156
|
+
} : {}} icon="plus" isGhost accessibilityText={null != (_props_attachLabel = props.attachLabel) ? _props_attachLabel : '+'} onPress={props.onAttach}/> : null}
|
|
157
|
+
{props.onEmoji ? <G9IconButton {...props.id ? {
|
|
158
|
+
id: `${props.id}.Emoji`
|
|
159
|
+
} : {}} emoji="🙂" isGhost accessibilityText="emoji" onPress={props.onEmoji}/> : null}
|
|
160
|
+
<view className="g9-composer__box">
|
|
161
|
+
<textarea ref={(r)=>{
|
|
162
|
+
node.current = r;
|
|
163
|
+
}} className="g9-composer__input" {...props.id ? {
|
|
164
|
+
id: `${props.id}_Input`
|
|
165
|
+
} : {}} placeholder={props.placeholder} default-value={text1} maxlines={5} style={{
|
|
166
|
+
height: `${20 * Math.min(5, lines) + 16}px`,
|
|
167
|
+
textAlign: rtl ? 'right' : 'left'
|
|
168
|
+
}} bindinput={(e)=>{
|
|
169
|
+
var _e_detail_lineCount;
|
|
170
|
+
typed.current = e.detail.value;
|
|
171
|
+
set(e.detail.value);
|
|
172
|
+
const n = null != (_e_detail_lineCount = e.detail.lineCount) ? _e_detail_lineCount : e.detail.value.split('\n').length;
|
|
173
|
+
if (n !== lines) setLines(Math.max(1, n));
|
|
174
|
+
}} bindconfirm={send}/>
|
|
175
|
+
</view>
|
|
176
|
+
<G9IconButton {...props.id ? {
|
|
177
|
+
id: `${props.id}.Send`
|
|
178
|
+
} : {}} icon="check" variant={text1.trim() ? 'primary' : 'surface'} isCircular disabled={!text1.trim() || true === props.disabled} accessibilityText={null != (_props_sendLabel = props.sendLabel) ? _props_sendLabel : 'Send'} onPress={send}/>
|
|
179
|
+
</view>;
|
|
180
|
+
}
|
|
181
|
+
const G9ConversationRow = memo(function(props) {
|
|
182
|
+
var _props_avatar, _props_typingText;
|
|
183
|
+
const rtl = 'rtl' === useG9Direction();
|
|
184
|
+
const clock = useClock();
|
|
185
|
+
const align = {
|
|
186
|
+
textAlign: rtl ? 'right' : 'left'
|
|
187
|
+
};
|
|
188
|
+
return <view className="g9-convo" {...g9IdProps(props.id)} style={rowDir(rtl)} {...props.onPress ? {
|
|
189
|
+
bindtap: props.onPress
|
|
190
|
+
} : {}} accessibility-element={true} accessibility-traits="button" accessibility-label={`${props.name}${props.unread ? ` (${props.unread})` : ''}: ${props.preview}`}>
|
|
191
|
+
<G9Avatar name={props.name} image={null != (_props_avatar = props.avatar) ? _props_avatar : null} size="md" {...props.online ? {
|
|
192
|
+
status: 'online'
|
|
193
|
+
} : {}}/>
|
|
194
|
+
<view className="g9-convo__body">
|
|
195
|
+
<view className="g9-convo__top" style={rowDir(rtl)}>
|
|
196
|
+
<text className="g9-convo__name" text-maxline="1" style={align}>
|
|
197
|
+
{props.name}
|
|
198
|
+
</text>
|
|
199
|
+
<text className={`g9-convo__time${props.unread ? ' g9-convo__time--unread' : ''}`}>{clock(props.at)}</text>
|
|
200
|
+
</view>
|
|
201
|
+
<view className="g9-convo__bottom" style={rowDir(rtl)}>
|
|
202
|
+
<text className={`g9-convo__preview${props.typing ? ' g9-convo__preview--typing' : ''}`} text-maxline="1" style={align}>
|
|
203
|
+
{props.typing ? null != (_props_typingText = props.typingText) ? _props_typingText : '…' : props.preview}
|
|
204
|
+
</text>
|
|
205
|
+
{props.unread ? <G9Badge value={props.unread} tone={props.muted ? 'neutral' : 'primary'} appearance="solid"/> : null}
|
|
206
|
+
</view>
|
|
207
|
+
</view>
|
|
208
|
+
</view>;
|
|
209
|
+
});
|
|
210
|
+
function G9EmojiPicker(props) {
|
|
211
|
+
var _props_sets, _keys_, _props_columns, _sets_cat;
|
|
212
|
+
const sets = null != (_props_sets = props.sets) ? _props_sets : g9EmojiSets;
|
|
213
|
+
const keys = Object.keys(sets);
|
|
214
|
+
const [cat, setCat] = useState(null != (_keys_ = keys[0]) ? _keys_ : '');
|
|
215
|
+
const cols = null != (_props_columns = props.columns) ? _props_columns : 8;
|
|
216
|
+
const list = null != (_sets_cat = sets[cat]) ? _sets_cat : [];
|
|
217
|
+
const rows = [];
|
|
218
|
+
for(let i = 0; i < list.length; i += cols)rows.push(list.slice(i, i + cols));
|
|
219
|
+
return <view className="g9-emoji" {...g9IdProps(props.id)}>
|
|
220
|
+
<G9Segmented size="sm" fit="content" value={cat} onChange={setCat} items={keys.map((k)=>{
|
|
221
|
+
var _ref, _ref1;
|
|
222
|
+
var _props_labels, _sets_k;
|
|
223
|
+
return {
|
|
224
|
+
key: k,
|
|
225
|
+
label: null != (_ref = null != (_ref1 = null == (_props_labels = props.labels) ? void 0 : _props_labels[k]) ? _ref1 : null == (_sets_k = sets[k]) ? void 0 : _sets_k[0]) ? _ref : k
|
|
226
|
+
};
|
|
227
|
+
})}/>
|
|
228
|
+
<view className="g9-emoji__grid">
|
|
229
|
+
{rows.map((r, i)=><view key={i} className="g9-emoji__row">
|
|
230
|
+
{r.map((e)=><view key={e} className="g9-emoji__cell" bindtap={()=>(g9Haptic('select'), props.onPick(e))} accessibility-element={true} accessibility-traits="button" accessibility-label={e}>
|
|
231
|
+
<text className="g9-emoji__glyph">{e}</text>
|
|
232
|
+
</view>)}
|
|
233
|
+
</view>)}
|
|
234
|
+
</view>
|
|
235
|
+
</view>;
|
|
236
|
+
}
|
|
237
|
+
export { G9ChatComposer, G9ChatThread, G9ConversationRow, G9EmojiPicker, G9MessageBubble, G9TypingDots };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { G9ChatComposer, type G9ChatComposerProps, G9ChatThread, type G9ChatThreadProps, G9ConversationRow, type G9ConversationRowProps, G9EmojiPicker, type G9EmojiPickerProps, G9MessageBubble, type G9MessageBubbleProps, G9TypingDots, } from './chat.js';
|
|
2
|
+
export * from './model.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,aAAa,EACb,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,oBAAoB,EACzB,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,cAAc,SAAS,CAAC"}
|
package/dist/index.jsx
ADDED
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type G9Culture } from '@g9tm/lynxcontrols-foundation';
|
|
2
|
+
/** Where a message of the current user is: sending, sent (✓), delivered (✓✓), read (blue ✓✓) or failed (retry). */
|
|
3
|
+
export type G9MessageStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
4
|
+
/** One message. */
|
|
5
|
+
export interface G9Message {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly from: string;
|
|
8
|
+
/** Epoch ms. */
|
|
9
|
+
readonly at: number;
|
|
10
|
+
readonly text?: string;
|
|
11
|
+
/** An attachment drawn by the app (image, voice, file) under the text. */
|
|
12
|
+
readonly kind?: 'text' | 'image' | 'voice' | 'file' | 'system';
|
|
13
|
+
readonly status?: G9MessageStatus;
|
|
14
|
+
/** The message this one answers (a quoted line above the text). */
|
|
15
|
+
readonly replyTo?: {
|
|
16
|
+
readonly from: string;
|
|
17
|
+
readonly text: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** Where a bubble sits in its run: the corners and the avatar follow it. */
|
|
21
|
+
export type G9BubblePosition = 'single' | 'first' | 'middle' | 'last';
|
|
22
|
+
/** One row of a thread as {@link threadRows} lays it out: a day divider, a message in its run, or a system line. */
|
|
23
|
+
export type G9ThreadRow = {
|
|
24
|
+
readonly kind: 'day';
|
|
25
|
+
readonly key: string;
|
|
26
|
+
readonly label: string;
|
|
27
|
+
} | {
|
|
28
|
+
readonly kind: 'message';
|
|
29
|
+
readonly key: string;
|
|
30
|
+
readonly message: G9Message;
|
|
31
|
+
readonly mine: boolean;
|
|
32
|
+
readonly position: G9BubblePosition;
|
|
33
|
+
readonly showTime: boolean;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: 'system';
|
|
36
|
+
readonly key: string;
|
|
37
|
+
readonly message: G9Message;
|
|
38
|
+
};
|
|
39
|
+
/** How {@link threadRows} groups messages: whose they are, when a run breaks, and how days are labelled. */
|
|
40
|
+
export interface G9ThreadOptions {
|
|
41
|
+
/** The current user's id (their bubbles go to the end side). */
|
|
42
|
+
readonly me: string;
|
|
43
|
+
/** Messages further apart than this start a new run. Default 5 minutes. */
|
|
44
|
+
readonly runGapMs?: number;
|
|
45
|
+
/** Day labels («امروز», «دیروز», a date); default: the culture's date. */
|
|
46
|
+
readonly dayLabel?: (dayStartMs: number) => string;
|
|
47
|
+
readonly culture?: G9Culture;
|
|
48
|
+
/** Offset of the local day from UTC in minutes. Default 0 (the device's clock is the caller's to apply). */
|
|
49
|
+
readonly utcOffsetMinutes?: number;
|
|
50
|
+
}
|
|
51
|
+
/** The thread's rows in order (oldest first), with day dividers and bubble runs. */
|
|
52
|
+
export declare function threadRows(messages: readonly G9Message[], options: G9ThreadOptions): G9ThreadRow[];
|
|
53
|
+
/** The status ticks: one for sent, two for delivered, two coloured for read, a clock while sending, ! when failed. */
|
|
54
|
+
export declare function statusGlyph(status: G9MessageStatus | undefined): {
|
|
55
|
+
readonly text: string;
|
|
56
|
+
readonly read: boolean;
|
|
57
|
+
} | null;
|
|
58
|
+
/** A conversation's preview line: the last message, or what it was («🖼 Photo», «🎤 Voice»). */
|
|
59
|
+
export declare function previewText(m: G9Message | undefined, words: {
|
|
60
|
+
readonly image: string;
|
|
61
|
+
readonly voice: string;
|
|
62
|
+
readonly file: string;
|
|
63
|
+
}): string;
|
|
64
|
+
/** Emoji by category for {@link G9EmojiPicker} (a compact set; an app can pass its own). */
|
|
65
|
+
export declare const g9EmojiSets: Readonly<Record<string, readonly string[]>>;
|
|
66
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"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"}
|
package/dist/model.jsx
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { formatLocalDateTime, localDateTimeFromEpochMs } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
+
const dayKey = (at, offset)=>Math.floor((at + 60000 * offset) / 86400000);
|
|
3
|
+
function threadRows(messages, options) {
|
|
4
|
+
var _options_runGapMs, _options_utcOffsetMinutes;
|
|
5
|
+
const gap = null != (_options_runGapMs = options.runGapMs) ? _options_runGapMs : 300000;
|
|
6
|
+
const offset = null != (_options_utcOffsetMinutes = options.utcOffsetMinutes) ? _options_utcOffsetMinutes : 0;
|
|
7
|
+
const rows = [];
|
|
8
|
+
let lastDay = null;
|
|
9
|
+
for(let i = 0; i < messages.length; i++){
|
|
10
|
+
const m = messages[i];
|
|
11
|
+
const day = dayKey(m.at, offset);
|
|
12
|
+
if (day !== lastDay) {
|
|
13
|
+
lastDay = day;
|
|
14
|
+
const start = 86400000 * day - 60000 * offset;
|
|
15
|
+
rows.push({
|
|
16
|
+
kind: 'day',
|
|
17
|
+
key: `day-${day}`,
|
|
18
|
+
label: options.dayLabel ? options.dayLabel(start) : defaultDayLabel(start, offset, options.culture)
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
if ('system' === m.kind) {
|
|
22
|
+
rows.push({
|
|
23
|
+
kind: 'system',
|
|
24
|
+
key: m.id,
|
|
25
|
+
message: m
|
|
26
|
+
});
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const prev = messages[i - 1];
|
|
30
|
+
const next = messages[i + 1];
|
|
31
|
+
const joinsPrev = !!prev && 'system' !== prev.kind && prev.from === m.from && m.at - prev.at <= gap && dayKey(prev.at, offset) === day;
|
|
32
|
+
const joinsNext = !!next && 'system' !== next.kind && next.from === m.from && next.at - m.at <= gap && dayKey(next.at, offset) === day;
|
|
33
|
+
const position = joinsPrev ? joinsNext ? 'middle' : 'last' : joinsNext ? 'first' : 'single';
|
|
34
|
+
rows.push({
|
|
35
|
+
kind: 'message',
|
|
36
|
+
key: m.id,
|
|
37
|
+
message: m,
|
|
38
|
+
mine: m.from === options.me,
|
|
39
|
+
position,
|
|
40
|
+
showTime: !joinsNext
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return rows;
|
|
44
|
+
}
|
|
45
|
+
function defaultDayLabel(startMs, offset, culture) {
|
|
46
|
+
const d = localDateTimeFromEpochMs(startMs, offset);
|
|
47
|
+
return culture ? formatLocalDateTime(d, 'd MMMM yyyy', culture) : `${d.year}-${String(d.month).padStart(2, '0')}-${String(d.day).padStart(2, '0')}`;
|
|
48
|
+
}
|
|
49
|
+
function statusGlyph(status) {
|
|
50
|
+
switch(status){
|
|
51
|
+
case 'sending':
|
|
52
|
+
return {
|
|
53
|
+
text: '◷',
|
|
54
|
+
read: false
|
|
55
|
+
};
|
|
56
|
+
case 'sent':
|
|
57
|
+
return {
|
|
58
|
+
text: '✓',
|
|
59
|
+
read: false
|
|
60
|
+
};
|
|
61
|
+
case 'delivered':
|
|
62
|
+
return {
|
|
63
|
+
text: '✓✓',
|
|
64
|
+
read: false
|
|
65
|
+
};
|
|
66
|
+
case 'read':
|
|
67
|
+
return {
|
|
68
|
+
text: '✓✓',
|
|
69
|
+
read: true
|
|
70
|
+
};
|
|
71
|
+
case 'failed':
|
|
72
|
+
return {
|
|
73
|
+
text: '!',
|
|
74
|
+
read: false
|
|
75
|
+
};
|
|
76
|
+
default:
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function previewText(m, words) {
|
|
81
|
+
var _m_text;
|
|
82
|
+
if (!m) return '';
|
|
83
|
+
if ('image' === m.kind) return `🖼 ${m.text || words.image}`;
|
|
84
|
+
if ('voice' === m.kind) return `🎤 ${words.voice}`;
|
|
85
|
+
if ('file' === m.kind) return `📎 ${m.text || words.file}`;
|
|
86
|
+
return (null != (_m_text = m.text) ? _m_text : '').replace(/\s+/g, ' ').trim();
|
|
87
|
+
}
|
|
88
|
+
const g9EmojiSets = Object.freeze({
|
|
89
|
+
smileys: [
|
|
90
|
+
'😀',
|
|
91
|
+
'😁',
|
|
92
|
+
'😂',
|
|
93
|
+
'🤣',
|
|
94
|
+
'😊',
|
|
95
|
+
'😍',
|
|
96
|
+
'😘',
|
|
97
|
+
'😎',
|
|
98
|
+
'🤩',
|
|
99
|
+
'🥳',
|
|
100
|
+
'😇',
|
|
101
|
+
'🙂',
|
|
102
|
+
'😉',
|
|
103
|
+
'😌',
|
|
104
|
+
'🤔',
|
|
105
|
+
'🤨',
|
|
106
|
+
'😐',
|
|
107
|
+
'😴',
|
|
108
|
+
'😢',
|
|
109
|
+
'😭',
|
|
110
|
+
'😡',
|
|
111
|
+
'🤯',
|
|
112
|
+
'😱',
|
|
113
|
+
'🥺'
|
|
114
|
+
],
|
|
115
|
+
gestures: [
|
|
116
|
+
'👍',
|
|
117
|
+
'👎',
|
|
118
|
+
'👏',
|
|
119
|
+
'🙏',
|
|
120
|
+
'🤝',
|
|
121
|
+
'👌',
|
|
122
|
+
'✌️',
|
|
123
|
+
'🤞',
|
|
124
|
+
'💪',
|
|
125
|
+
'👋',
|
|
126
|
+
'🙌',
|
|
127
|
+
'🫶'
|
|
128
|
+
],
|
|
129
|
+
hearts: [
|
|
130
|
+
'❤️',
|
|
131
|
+
'🧡',
|
|
132
|
+
'💛',
|
|
133
|
+
'💚',
|
|
134
|
+
'💙',
|
|
135
|
+
'💜',
|
|
136
|
+
'🖤',
|
|
137
|
+
'🤍',
|
|
138
|
+
'💔',
|
|
139
|
+
'💕',
|
|
140
|
+
'💯',
|
|
141
|
+
'✨'
|
|
142
|
+
],
|
|
143
|
+
food: [
|
|
144
|
+
'☕',
|
|
145
|
+
'🍵',
|
|
146
|
+
'🧁',
|
|
147
|
+
'🍰',
|
|
148
|
+
'🍕',
|
|
149
|
+
'🍔',
|
|
150
|
+
'🥗',
|
|
151
|
+
'🍎',
|
|
152
|
+
'🍉',
|
|
153
|
+
'🍫',
|
|
154
|
+
'🍪',
|
|
155
|
+
'🥤'
|
|
156
|
+
],
|
|
157
|
+
things: [
|
|
158
|
+
'🎉',
|
|
159
|
+
'🎁',
|
|
160
|
+
'📦',
|
|
161
|
+
'🛒',
|
|
162
|
+
'💳',
|
|
163
|
+
'📍',
|
|
164
|
+
'⏰',
|
|
165
|
+
'📅',
|
|
166
|
+
'📷',
|
|
167
|
+
'🎵',
|
|
168
|
+
'⚽',
|
|
169
|
+
'🚗'
|
|
170
|
+
]
|
|
171
|
+
});
|
|
172
|
+
export { g9EmojiSets, previewText, statusGlyph, threadRows };
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-chat",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Chat controls for G9LynxControls: message grouping and day dividers, G9MessageBubble, G9ChatThread, G9ChatComposer, G9TypingDots, G9ConversationRow and G9EmojiPicker (Hub messages, SAC support).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"source": "./src/index.ts",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.jsx"
|
|
15
|
+
},
|
|
16
|
+
"./model": {
|
|
17
|
+
"source": "./src/model.ts",
|
|
18
|
+
"types": "./dist/model.d.ts",
|
|
19
|
+
"default": "./dist/model.jsx"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "rslib build"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@g9tm/lynxcontrols-foundation": "2.1.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@g9tm/lynxcontrols": "2.1.0",
|
|
34
|
+
"@lynx-js/react": ">=0.129.3 <0.130.0"
|
|
35
|
+
}
|
|
36
|
+
}
|