@inorain_development/hotel-smarters-chat-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +110 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.native.js +36 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/collapsible.js +20 -0
- package/lib/commonjs/features/chat/components/common/collapsible.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/collapsible.native.js +38 -0
- package/lib/commonjs/features/chat/components/common/collapsible.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/index.js +13 -0
- package/lib/commonjs/features/chat/components/product/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/product.js +83 -0
- package/lib/commonjs/features/chat/components/product/product.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/product.model.js +6 -0
- package/lib/commonjs/features/chat/components/product/product.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/product.native.js +125 -0
- package/lib/commonjs/features/chat/components/product/product.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/index.js +13 -0
- package/lib/commonjs/features/chat/components/service/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/service.js +83 -0
- package/lib/commonjs/features/chat/components/service/service.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/service.model.js +6 -0
- package/lib/commonjs/features/chat/components/service/service.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/service.native.js +106 -0
- package/lib/commonjs/features/chat/components/service/service.native.js.map +1 -0
- package/lib/commonjs/features/chat/index.d.js +6 -0
- package/lib/commonjs/features/chat/index.d.js.map +1 -0
- package/lib/commonjs/features/chat/index.d.ts.map +1 -0
- package/lib/commonjs/features/chat/index.js +46 -0
- package/lib/commonjs/features/chat/index.js.map +1 -0
- package/lib/commonjs/features/chat/model/chat.model.js +23 -0
- package/lib/commonjs/features/chat/model/chat.model.js.map +1 -0
- package/lib/commonjs/features/chat/renderer/index.js +13 -0
- package/lib/commonjs/features/chat/renderer/index.js.map +1 -0
- package/lib/commonjs/features/chat/renderer/renderer.js +32 -0
- package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js +32 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -0
- package/lib/commonjs/index.d.js +17 -0
- package/lib/commonjs/index.d.js.map +1 -0
- package/lib/commonjs/index.d.ts.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/native.d.js +6 -0
- package/lib/commonjs/native.d.js.map +1 -0
- package/lib/commonjs/native.d.ts.map +1 -0
- package/lib/commonjs/native.js +46 -0
- package/lib/commonjs/native.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/styles/global.css +3 -0
- package/lib/commonjs/utils/i18n.utils.js +12 -0
- package/lib/commonjs/utils/i18n.utils.js.map +1 -0
- package/lib/commonjs/utils/theme.utils.js +37 -0
- package/lib/commonjs/utils/theme.utils.js.map +1 -0
- package/lib/commonjs/utils/use-expandable-list.js +23 -0
- package/lib/commonjs/utils/use-expandable-list.js.map +1 -0
- package/lib/commonjs/web.d.js +6 -0
- package/lib/commonjs/web.d.js.map +1 -0
- package/lib/commonjs/web.d.ts.map +1 -0
- package/lib/commonjs/web.js +46 -0
- package/lib/commonjs/web.js.map +1 -0
- package/lib/module/features/chat/components/common/cart-icon.native.js +32 -0
- package/lib/module/features/chat/components/common/cart-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/common/collapsible.js +16 -0
- package/lib/module/features/chat/components/common/collapsible.js.map +1 -0
- package/lib/module/features/chat/components/common/collapsible.native.js +34 -0
- package/lib/module/features/chat/components/common/collapsible.native.js.map +1 -0
- package/lib/module/features/chat/components/product/index.js +4 -0
- package/lib/module/features/chat/components/product/index.js.map +1 -0
- package/lib/module/features/chat/components/product/product.js +79 -0
- package/lib/module/features/chat/components/product/product.js.map +1 -0
- package/lib/module/features/chat/components/product/product.model.js +4 -0
- package/lib/module/features/chat/components/product/product.model.js.map +1 -0
- package/lib/module/features/chat/components/product/product.native.js +121 -0
- package/lib/module/features/chat/components/product/product.native.js.map +1 -0
- package/lib/module/features/chat/components/service/index.js +4 -0
- package/lib/module/features/chat/components/service/index.js.map +1 -0
- package/lib/module/features/chat/components/service/service.js +79 -0
- package/lib/module/features/chat/components/service/service.js.map +1 -0
- package/lib/module/features/chat/components/service/service.model.js +4 -0
- package/lib/module/features/chat/components/service/service.model.js.map +1 -0
- package/lib/module/features/chat/components/service/service.native.js +102 -0
- package/lib/module/features/chat/components/service/service.native.js.map +1 -0
- package/lib/module/features/chat/index.d.js +10 -0
- package/lib/module/features/chat/index.d.js.map +1 -0
- package/lib/module/features/chat/index.d.ts.map +1 -0
- package/lib/module/features/chat/index.js +7 -0
- package/lib/module/features/chat/index.js.map +1 -0
- package/lib/module/features/chat/model/chat.model.js +19 -0
- package/lib/module/features/chat/model/chat.model.js.map +1 -0
- package/lib/module/features/chat/renderer/index.js +4 -0
- package/lib/module/features/chat/renderer/index.js.map +1 -0
- package/lib/module/features/chat/renderer/renderer.js +28 -0
- package/lib/module/features/chat/renderer/renderer.js.map +1 -0
- package/lib/module/features/chat/renderer/renderer.native.js +28 -0
- package/lib/module/features/chat/renderer/renderer.native.js.map +1 -0
- package/lib/module/index.d.js +13 -0
- package/lib/module/index.d.js.map +1 -0
- package/lib/module/index.d.ts.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native.d.js +11 -0
- package/lib/module/native.d.js.map +1 -0
- package/lib/module/native.d.ts.map +1 -0
- package/lib/module/native.js +7 -0
- package/lib/module/native.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/styles/global.css +3 -0
- package/lib/module/utils/i18n.utils.js +8 -0
- package/lib/module/utils/i18n.utils.js.map +1 -0
- package/lib/module/utils/theme.utils.js +33 -0
- package/lib/module/utils/theme.utils.js.map +1 -0
- package/lib/module/utils/use-expandable-list.js +19 -0
- package/lib/module/utils/use-expandable-list.js.map +1 -0
- package/lib/module/web.d.js +10 -0
- package/lib/module/web.d.js.map +1 -0
- package/lib/module/web.d.ts.map +1 -0
- package/lib/module/web.js +7 -0
- package/lib/module/web.js.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/product/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.model.d.ts +10 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/service/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.model.d.ts +10 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/index.d.ts +8 -0
- package/lib/typescript/commonjs/features/chat/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +31 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/renderer/index.d.ts +2 -0
- package/lib/typescript/commonjs/features/chat/renderer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +11 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/native.d.ts +8 -0
- package/lib/typescript/commonjs/native.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/utils/i18n.utils.d.ts +3 -0
- package/lib/typescript/commonjs/utils/i18n.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts +16 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/use-expandable-list.d.ts +8 -0
- package/lib/typescript/commonjs/utils/use-expandable-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/web.d.ts +8 -0
- package/lib/typescript/commonjs/web.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/product/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/product.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/product/product.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/product.model.d.ts +10 -0
- package/lib/typescript/module/features/chat/components/product/product.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/product.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/product/product.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/service/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/service.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/service/service.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/service.model.d.ts +10 -0
- package/lib/typescript/module/features/chat/components/service/service.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/service.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/service/service.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/index.d.ts +8 -0
- package/lib/typescript/module/features/chat/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts +31 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/renderer/index.d.ts +2 -0
- package/lib/typescript/module/features/chat/renderer/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -0
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -0
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +11 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/native.d.ts +8 -0
- package/lib/typescript/module/native.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/utils/i18n.utils.d.ts +3 -0
- package/lib/typescript/module/utils/i18n.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/theme.utils.d.ts +16 -0
- package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/use-expandable-list.d.ts +8 -0
- package/lib/typescript/module/utils/use-expandable-list.d.ts.map +1 -0
- package/lib/typescript/module/web.d.ts +8 -0
- package/lib/typescript/module/web.d.ts.map +1 -0
- package/nativewind-env.d.ts +1 -0
- package/package.json +142 -0
- package/src/features/chat/components/common/cart-icon.native.tsx +20 -0
- package/src/features/chat/components/common/collapsible.native.tsx +28 -0
- package/src/features/chat/components/common/collapsible.tsx +13 -0
- package/src/features/chat/components/product/index.ts +2 -0
- package/src/features/chat/components/product/product.model.ts +10 -0
- package/src/features/chat/components/product/product.native.tsx +117 -0
- package/src/features/chat/components/product/product.tsx +80 -0
- package/src/features/chat/components/service/index.ts +2 -0
- package/src/features/chat/components/service/service.model.ts +10 -0
- package/src/features/chat/components/service/service.native.tsx +96 -0
- package/src/features/chat/components/service/service.tsx +80 -0
- package/src/features/chat/index.d.ts +8 -0
- package/src/features/chat/index.d.ts.map +1 -0
- package/src/features/chat/index.ts +13 -0
- package/src/features/chat/model/chat.model.ts +36 -0
- package/src/features/chat/renderer/index.ts +1 -0
- package/src/features/chat/renderer/renderer.native.tsx +22 -0
- package/src/features/chat/renderer/renderer.tsx +22 -0
- package/src/index.d.ts +11 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +10 -0
- package/src/native.d.ts +9 -0
- package/src/native.d.ts.map +1 -0
- package/src/native.ts +13 -0
- package/src/styles/global.css +3 -0
- package/src/utils/i18n.utils.ts +7 -0
- package/src/utils/theme.utils.ts +47 -0
- package/src/utils/use-expandable-list.ts +12 -0
- package/src/web.d.ts +8 -0
- package/src/web.d.ts.map +1 -0
- package/src/web.ts +13 -0
- package/tailwind.config.js +43 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Service = Service;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _themeUtils = require("../../../../utils/theme.utils.js");
|
|
10
|
+
var _i18nUtils = require("../../../../utils/i18n.utils.js");
|
|
11
|
+
var _useExpandableList = require("../../../../utils/use-expandable-list.js");
|
|
12
|
+
var _collapsibleNative = require("../common/collapsible.native.js");
|
|
13
|
+
var _chatModel = require("../../model/chat.model.js");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function Service({
|
|
16
|
+
data,
|
|
17
|
+
theme = _chatModel.Theme.Dark,
|
|
18
|
+
language,
|
|
19
|
+
actionLabel = 'Request',
|
|
20
|
+
onAction,
|
|
21
|
+
onSelect
|
|
22
|
+
}) {
|
|
23
|
+
const c = (0, _themeUtils.getThemeClasses)(theme);
|
|
24
|
+
const items = Array.isArray(data) ? data : [data];
|
|
25
|
+
const {
|
|
26
|
+
head,
|
|
27
|
+
rest,
|
|
28
|
+
expanded,
|
|
29
|
+
hasMore,
|
|
30
|
+
toggle
|
|
31
|
+
} = (0, _useExpandableList.useExpandableList)(items);
|
|
32
|
+
const renderRow = item => {
|
|
33
|
+
const name = (0, _i18nUtils.resolveText)(item.name, language);
|
|
34
|
+
const description = (0, _i18nUtils.resolveText)(item.description, language);
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
36
|
+
className: "flex-row items-center gap-3",
|
|
37
|
+
onPress: () => onSelect?.(item),
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
39
|
+
accessibilityLabel: name,
|
|
40
|
+
source: {
|
|
41
|
+
uri: item.image
|
|
42
|
+
},
|
|
43
|
+
className: `h-14 w-14 rounded-lg down-sm:h-12 down-sm:w-12 ${c.iconBg}`
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
45
|
+
className: "flex-1 gap-1",
|
|
46
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
47
|
+
className: "flex-row items-center justify-between gap-2",
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
49
|
+
className: `flex-1 text-base font-bold down-sm:text-sm ${c.title}`,
|
|
50
|
+
numberOfLines: 1,
|
|
51
|
+
children: name
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
53
|
+
className: `text-base font-bold down-sm:text-sm ${c.price}`,
|
|
54
|
+
children: item.price
|
|
55
|
+
})]
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
57
|
+
className: "flex-row items-center justify-between gap-2",
|
|
58
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
59
|
+
className: `flex-1 text-sm down-sm:text-xs ${c.subtitle}`,
|
|
60
|
+
numberOfLines: 2,
|
|
61
|
+
children: description
|
|
62
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
63
|
+
accessibilityRole: "button",
|
|
64
|
+
onPress: () => onAction?.(item),
|
|
65
|
+
className: `rounded-xl border px-3 py-1.5 ${c.actionBorder}`,
|
|
66
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
67
|
+
className: `text-sm font-medium ${c.actionText}`,
|
|
68
|
+
children: actionLabel
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
76
|
+
className: "gap-2",
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
78
|
+
className: `rounded-2xl border px-3 py-2 ${c.surface} ${c.border}`,
|
|
79
|
+
children: [head.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
80
|
+
children: [index > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
81
|
+
className: `my-2.5 h-px ${c.divider}`
|
|
82
|
+
}) : null, renderRow(item)]
|
|
83
|
+
}, item.id)), hasMore ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
84
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsibleNative.Collapsible, {
|
|
85
|
+
expanded: expanded,
|
|
86
|
+
children: rest.map(item => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
87
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
88
|
+
className: `my-2.5 h-px ${c.divider}`
|
|
89
|
+
}), renderRow(item)]
|
|
90
|
+
}, item.id))
|
|
91
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
92
|
+
className: "mt-2 items-center",
|
|
93
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
94
|
+
onPress: toggle,
|
|
95
|
+
className: `rounded-xl border px-4 py-1.5 ${c.actionBorder}`,
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
97
|
+
className: `text-sm font-medium ${c.actionText}`,
|
|
98
|
+
children: expanded ? 'Show less' : 'Show more'
|
|
99
|
+
})
|
|
100
|
+
})
|
|
101
|
+
})]
|
|
102
|
+
}) : null]
|
|
103
|
+
})
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=service.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_themeUtils","_i18nUtils","_useExpandableList","_collapsibleNative","_chatModel","_jsxRuntime","Service","data","theme","Theme","Dark","language","actionLabel","onAction","onSelect","c","getThemeClasses","items","Array","isArray","head","rest","expanded","hasMore","toggle","useExpandableList","renderRow","item","name","resolveText","description","jsxs","Pressable","className","onPress","children","jsx","Image","accessibilityLabel","source","uri","image","iconBg","View","Text","title","numberOfLines","price","subtitle","accessibilityRole","actionBorder","actionText","surface","border","map","index","Fragment","divider","id","Collapsible"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/service/service.native.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ChatComponentRenderer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _index3.ChatComponentRenderer;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ComponentType", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _chatModel.ComponentType;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ItemAction", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _chatModel.ItemAction;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "Product", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _index.Product;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "Service", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _index2.Service;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "Theme", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _chatModel.Theme;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _index = require("./components/product/index.js");
|
|
43
|
+
var _index2 = require("./components/service/index.js");
|
|
44
|
+
var _index3 = require("./renderer/index.js");
|
|
45
|
+
var _chatModel = require("./model/chat.model.js");
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","_index2","_index3","_chatModel"],"sourceRoot":"../../../../src","sources":["features/chat/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Theme = exports.ItemAction = exports.ComponentType = void 0;
|
|
7
|
+
let Theme = exports.Theme = /*#__PURE__*/function (Theme) {
|
|
8
|
+
Theme["Dark"] = "dark";
|
|
9
|
+
Theme["Light"] = "light";
|
|
10
|
+
return Theme;
|
|
11
|
+
}({});
|
|
12
|
+
let ComponentType = exports.ComponentType = /*#__PURE__*/function (ComponentType) {
|
|
13
|
+
ComponentType["Product"] = "product";
|
|
14
|
+
ComponentType["ProductList"] = "productList";
|
|
15
|
+
ComponentType["Service"] = "service";
|
|
16
|
+
ComponentType["ServiceList"] = "serviceList";
|
|
17
|
+
return ComponentType;
|
|
18
|
+
}({});
|
|
19
|
+
let ItemAction = exports.ItemAction = /*#__PURE__*/function (ItemAction) {
|
|
20
|
+
ItemAction["Add"] = "add";
|
|
21
|
+
return ItemAction;
|
|
22
|
+
}({});
|
|
23
|
+
//# sourceMappingURL=chat.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Theme","exports","ComponentType","ItemAction"],"sourceRoot":"../../../../../src","sources":["features/chat/model/chat.model.ts"],"mappings":";;;;;;IAAYA,KAAK,GAAAC,OAAA,CAAAD,KAAA,0BAALA,KAAK;EAALA,KAAK;EAALA,KAAK;EAAA,OAALA,KAAK;AAAA;AAAA,IAQLE,aAAa,GAAAD,OAAA,CAAAC,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAA,IAObC,UAAU,GAAAF,OAAA,CAAAE,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ChatComponentRenderer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _renderer.ChatComponentRenderer;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _renderer = require("./renderer");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_renderer","require"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ChatComponentRenderer = ChatComponentRenderer;
|
|
7
|
+
var _product = require("../components/product/product");
|
|
8
|
+
var _service = require("../components/service/service");
|
|
9
|
+
var _chatModel = require("../model/chat.model.js");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function ChatComponentRenderer({
|
|
12
|
+
type,
|
|
13
|
+
...rest
|
|
14
|
+
}) {
|
|
15
|
+
switch (type) {
|
|
16
|
+
case _chatModel.ComponentType.Product:
|
|
17
|
+
case _chatModel.ComponentType.ProductList:
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_product.Product, {
|
|
19
|
+
type: type,
|
|
20
|
+
...rest
|
|
21
|
+
});
|
|
22
|
+
case _chatModel.ComponentType.Service:
|
|
23
|
+
case _chatModel.ComponentType.ServiceList:
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_service.Service, {
|
|
25
|
+
type: type,
|
|
26
|
+
...rest
|
|
27
|
+
});
|
|
28
|
+
default:
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_product","require","_service","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGA,IAAAE,UAAA,GAAAF,OAAA;AAAoD,IAAAG,WAAA,GAAAH,OAAA;AAG7C,SAASI,qBAAqBA,CAAC;EACpCC,IAAI;EACJ,GAAGC;AAC0C,CAAC,EAAE;EAChD,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACX,QAAA,CAAAS,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAqD,CAAC;IAC7F,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACT,QAAA,CAAAU,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAqD,CAAC;IAC7F;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ChatComponentRenderer = ChatComponentRenderer;
|
|
7
|
+
var _productNative = require("../components/product/product.native.js");
|
|
8
|
+
var _serviceNative = require("../components/service/service.native.js");
|
|
9
|
+
var _chatModel = require("../model/chat.model.js");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function ChatComponentRenderer({
|
|
12
|
+
type,
|
|
13
|
+
...rest
|
|
14
|
+
}) {
|
|
15
|
+
switch (type) {
|
|
16
|
+
case _chatModel.ComponentType.Product:
|
|
17
|
+
case _chatModel.ComponentType.ProductList:
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_productNative.Product, {
|
|
19
|
+
type: type,
|
|
20
|
+
...rest
|
|
21
|
+
});
|
|
22
|
+
case _chatModel.ComponentType.Service:
|
|
23
|
+
case _chatModel.ComponentType.ServiceList:
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_serviceNative.Service, {
|
|
25
|
+
type: type,
|
|
26
|
+
...rest
|
|
27
|
+
});
|
|
28
|
+
default:
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=renderer.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_productNative","require","_serviceNative","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAGA,IAAAE,UAAA,GAAAF,OAAA;AAAoD,IAAAG,WAAA,GAAAH,OAAA;AAG7C,SAASI,qBAAqBA,CAAC;EACpCC,IAAI;EACJ,GAAGC;AAC0C,CAAC,EAAE;EAChD,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACX,cAAA,CAAAS,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAqD,CAAC;IAC7F,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACT,cAAA,CAAAU,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAqD,CAAC;IAC7F;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _web = require("./web.js");
|
|
7
|
+
Object.keys(_web).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _web[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _web[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_web","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;AASA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _web = require("./web.js");
|
|
7
|
+
Object.keys(_web).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _web[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _web[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_web","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;AASA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["native.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ChatComponentRenderer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _rendererNative.ChatComponentRenderer;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ComponentType", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _chatModel.ComponentType;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ItemAction", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _chatModel.ItemAction;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "Product", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _productNative.Product;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "Service", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _serviceNative.Service;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "Theme", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _chatModel.Theme;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _productNative = require("./features/chat/components/product/product.native.js");
|
|
43
|
+
var _serviceNative = require("./features/chat/components/service/service.native.js");
|
|
44
|
+
var _rendererNative = require("./features/chat/renderer/renderer.native.js");
|
|
45
|
+
var _chatModel = require("./features/chat/model/chat.model.js");
|
|
46
|
+
//# sourceMappingURL=native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_productNative","require","_serviceNative","_rendererNative","_chatModel"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveText = resolveText;
|
|
7
|
+
function resolveText(text, language) {
|
|
8
|
+
if (language && text[language] != null) return text[language];
|
|
9
|
+
const first = Object.values(text)[0];
|
|
10
|
+
return first ?? '';
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=i18n.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolveText","text","language","first","Object","values"],"sourceRoot":"../../../src","sources":["utils/i18n.utils.ts"],"mappings":";;;;;;AAEO,SAASA,WAAWA,CAACC,IAAmB,EAAEC,QAAmB,EAAU;EAC5E,IAAIA,QAAQ,IAAID,IAAI,CAACC,QAAQ,CAAC,IAAI,IAAI,EAAE,OAAOD,IAAI,CAACC,QAAQ,CAAC;EAC7D,MAAMC,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACJ,IAAI,CAAC,CAAC,CAAC,CAAC;EACpC,OAAOE,KAAK,IAAI,EAAE;AACpB","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getThemeClasses = getThemeClasses;
|
|
7
|
+
var _chatModel = require("../features/chat/model/chat.model.js");
|
|
8
|
+
const DARK = {
|
|
9
|
+
surface: 'bg-chat-surface-dark',
|
|
10
|
+
border: 'border-chat-border-dark',
|
|
11
|
+
title: 'text-white',
|
|
12
|
+
subtitle: 'text-chat-subtitle-dark',
|
|
13
|
+
price: 'text-white',
|
|
14
|
+
actionBorder: 'border-neutral-700',
|
|
15
|
+
actionText: 'text-white',
|
|
16
|
+
divider: 'bg-neutral-800',
|
|
17
|
+
iconBg: 'bg-indigo-500/20',
|
|
18
|
+
iconText: 'text-indigo-300',
|
|
19
|
+
iconColor: '#a5b4fc'
|
|
20
|
+
};
|
|
21
|
+
const LIGHT = {
|
|
22
|
+
surface: 'bg-chat-surface-light',
|
|
23
|
+
border: 'border-chat-border-light',
|
|
24
|
+
title: 'text-neutral-900',
|
|
25
|
+
subtitle: 'text-neutral-500',
|
|
26
|
+
price: 'text-neutral-900',
|
|
27
|
+
actionBorder: 'border-slate-400',
|
|
28
|
+
actionText: 'text-neutral-900',
|
|
29
|
+
divider: 'bg-slate-300',
|
|
30
|
+
iconBg: 'bg-indigo-500/15',
|
|
31
|
+
iconText: 'text-indigo-500',
|
|
32
|
+
iconColor: '#6366f1'
|
|
33
|
+
};
|
|
34
|
+
function getThemeClasses(theme = _chatModel.Theme.Dark) {
|
|
35
|
+
return theme === _chatModel.Theme.Light ? LIGHT : DARK;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=theme.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_chatModel","require","DARK","surface","border","title","subtitle","price","actionBorder","actionText","divider","iconBg","iconText","iconColor","LIGHT","getThemeClasses","theme","Theme","Dark","Light"],"sourceRoot":"../../../src","sources":["utils/theme.utils.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAgBA,MAAMC,IAAkB,GAAG;EACzBC,OAAO,EAAE,sBAAsB;EAC/BC,MAAM,EAAE,yBAAyB;EACjCC,KAAK,EAAE,YAAY;EACnBC,QAAQ,EAAE,yBAAyB;EACnCC,KAAK,EAAE,YAAY;EACnBC,YAAY,EAAE,oBAAoB;EAClCC,UAAU,EAAE,YAAY;EACxBC,OAAO,EAAE,gBAAgB;EACzBC,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,iBAAiB;EAC3BC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,KAAmB,GAAG;EAC1BX,OAAO,EAAE,uBAAuB;EAChCC,MAAM,EAAE,0BAA0B;EAClCC,KAAK,EAAE,kBAAkB;EACzBC,QAAQ,EAAE,kBAAkB;EAC5BC,KAAK,EAAE,kBAAkB;EACzBC,YAAY,EAAE,kBAAkB;EAChCC,UAAU,EAAE,kBAAkB;EAC9BC,OAAO,EAAE,cAAc;EACvBC,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,iBAAiB;EAC3BC,SAAS,EAAE;AACb,CAAC;AAEM,SAASE,eAAeA,CAACC,KAAY,GAAGC,gBAAK,CAACC,IAAI,EAAgB;EACvE,OAAOF,KAAK,KAAKC,gBAAK,CAACE,KAAK,GAAGL,KAAK,GAAGZ,IAAI;AAC7C","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useExpandableList = useExpandableList;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const COLLAPSED_COUNT = 3;
|
|
9
|
+
function useExpandableList(items, limit = COLLAPSED_COUNT) {
|
|
10
|
+
const [expanded, setExpanded] = (0, _react.useState)(false);
|
|
11
|
+
const hasMore = items.length > limit;
|
|
12
|
+
const head = hasMore ? items.slice(0, limit) : items;
|
|
13
|
+
const rest = hasMore ? items.slice(limit) : [];
|
|
14
|
+
const toggle = () => setExpanded(v => !v);
|
|
15
|
+
return {
|
|
16
|
+
head,
|
|
17
|
+
rest,
|
|
18
|
+
expanded,
|
|
19
|
+
hasMore,
|
|
20
|
+
toggle
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=use-expandable-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","COLLAPSED_COUNT","useExpandableList","items","limit","expanded","setExpanded","useState","hasMore","length","head","slice","rest","toggle","v"],"sourceRoot":"../../../src","sources":["utils/use-expandable-list.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,MAAMC,eAAe,GAAG,CAAC;AAElB,SAASC,iBAAiBA,CAAIC,KAAU,EAAEC,KAAK,GAAGH,eAAe,EAAE;EACxE,MAAM,CAACI,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC/C,MAAMC,OAAO,GAAGL,KAAK,CAACM,MAAM,GAAGL,KAAK;EACpC,MAAMM,IAAI,GAAGF,OAAO,GAAGL,KAAK,CAACQ,KAAK,CAAC,CAAC,EAAEP,KAAK,CAAC,GAAGD,KAAK;EACpD,MAAMS,IAAI,GAAGJ,OAAO,GAAGL,KAAK,CAACQ,KAAK,CAACP,KAAK,CAAC,GAAG,EAAE;EAC9C,MAAMS,MAAM,GAAGA,CAAA,KAAMP,WAAW,CAAEQ,CAAC,IAAK,CAACA,CAAC,CAAC;EAC3C,OAAO;IAAEJ,IAAI;IAAEE,IAAI;IAAEP,QAAQ;IAAEG,OAAO;IAAEK;EAAO,CAAC;AAClD","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["web.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ChatComponentRenderer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _renderer.ChatComponentRenderer;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ComponentType", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _chatModel.ComponentType;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ItemAction", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _chatModel.ItemAction;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "Product", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _product.Product;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "Service", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _service.Service;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "Theme", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _chatModel.Theme;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _product = require("./features/chat/components/product/product");
|
|
43
|
+
var _service = require("./features/chat/components/service/service");
|
|
44
|
+
var _renderer = require("./features/chat/renderer/renderer");
|
|
45
|
+
var _chatModel = require("./features/chat/model/chat.model.js");
|
|
46
|
+
//# sourceMappingURL=web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_product","require","_service","_renderer","_chatModel"],"sourceRoot":"../../src","sources":["web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
export function CartIcon({
|
|
5
|
+
size = 16,
|
|
6
|
+
color = 'currentColor'
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
9
|
+
width: size,
|
|
10
|
+
height: size,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
14
|
+
d: "M3 4h2l2.4 11.2a1.5 1.5 0 0 0 1.47 1.18h7.86a1.5 1.5 0 0 0 1.47-1.18L21 8H6",
|
|
15
|
+
stroke: color,
|
|
16
|
+
strokeWidth: 1.8,
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}), /*#__PURE__*/_jsx("circle", {
|
|
20
|
+
cx: "9.5",
|
|
21
|
+
cy: "20",
|
|
22
|
+
r: "1.4",
|
|
23
|
+
fill: color
|
|
24
|
+
}), /*#__PURE__*/_jsx("circle", {
|
|
25
|
+
cx: "17",
|
|
26
|
+
cy: "20",
|
|
27
|
+
r: "1.4",
|
|
28
|
+
fill: color
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=cart-icon.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CartIcon","size","color","_jsxs","width","height","viewBox","fill","children","_jsx","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","cx","cy","r"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/common/cart-icon.native.tsx"],"mappings":";;;AAKA,OAAO,SAASA,QAAQA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAA8B,CAAC,EAAE;EAC7E,oBACEC,KAAA;IAAKC,KAAK,EAAEH,IAAK;IAACI,MAAM,EAAEJ,IAAK;IAACK,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAC7DC,IAAA;MACEC,CAAC,EAAC,6EAA6E;MAC/EC,MAAM,EAAET,KAAM;MACdU,WAAW,EAAE,GAAI;MACjBC,aAAa,EAAC,OAAO;MACrBC,cAAc,EAAC;IAAO,CACvB,CAAC,eACFL,IAAA;MAAQM,EAAE,EAAC,KAAK;MAACC,EAAE,EAAC,IAAI;MAACC,CAAC,EAAC,KAAK;MAACV,IAAI,EAAEL;IAAM,CAAE,CAAC,eAChDO,IAAA;MAAQM,EAAE,EAAC,IAAI;MAACC,EAAE,EAAC,IAAI;MAACC,CAAC,EAAC,KAAK;MAACV,IAAI,EAAEL;IAAM,CAAE,CAAC;EAAA,CAC5C,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export function Collapsible({
|
|
5
|
+
expanded,
|
|
6
|
+
children
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/_jsx("div", {
|
|
9
|
+
className: `grid transition-[grid-template-rows] duration-300 ease-in-out ${expanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`,
|
|
10
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
11
|
+
className: "min-h-0 overflow-hidden",
|
|
12
|
+
children: children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Collapsible","expanded","children","_jsx","className"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/common/collapsible.tsx"],"mappings":";;;AAEA,OAAO,SAASA,WAAWA,CAAC;EAAEC,QAAQ;EAAEC;AAAqD,CAAC,EAAE;EAC9F,oBACEC,IAAA;IACEC,SAAS,EAAE,iEACTH,QAAQ,GAAG,iBAAiB,GAAG,iBAAiB,EAC/C;IAAAC,QAAA,eAEHC,IAAA;MAAKC,SAAS,EAAC,yBAAyB;MAAAF,QAAA,EAAEA;IAAQ,CAAM;EAAC,CACtD,CAAC;AAEV","ignoreList":[]}
|