@inorain_development/hotel-smarters-chat-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/features/chat/components/common/clock-icon.js +32 -0
- package/lib/commonjs/features/chat/components/common/clock-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/clock-icon.native.js +32 -0
- package/lib/commonjs/features/chat/components/common/clock-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/event/event.js +97 -0
- package/lib/commonjs/features/chat/components/event/event.js.map +1 -0
- package/lib/commonjs/features/chat/components/event/event.model.js +6 -0
- package/lib/commonjs/features/chat/components/event/event.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/event/event.native.js +107 -0
- package/lib/commonjs/features/chat/components/event/event.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/event/index.js +13 -0
- package/lib/commonjs/features/chat/components/event/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/info/index.js +13 -0
- package/lib/commonjs/features/chat/components/info/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/info/info.js +32 -0
- package/lib/commonjs/features/chat/components/info/info.js.map +1 -0
- package/lib/commonjs/features/chat/components/info/info.model.js +6 -0
- package/lib/commonjs/features/chat/components/info/info.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/info/info.native.js +33 -0
- package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -0
- package/lib/commonjs/features/chat/message/index.js +20 -0
- package/lib/commonjs/features/chat/message/index.js.map +1 -0
- package/lib/commonjs/features/chat/message/message.js +49 -0
- package/lib/commonjs/features/chat/message/message.js.map +1 -0
- package/lib/commonjs/features/chat/message/message.logic.js +48 -0
- package/lib/commonjs/features/chat/message/message.logic.js.map +1 -0
- package/lib/commonjs/features/chat/message/message.model.js +6 -0
- package/lib/commonjs/features/chat/message/message.model.js.map +1 -0
- package/lib/commonjs/features/chat/message/message.native.js +50 -0
- package/lib/commonjs/features/chat/message/message.native.js.map +1 -0
- package/lib/commonjs/features/chat/model/chat.model.js +3 -0
- package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
- package/lib/commonjs/features/chat/renderer/renderer.js +13 -0
- package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
- package/lib/commonjs/features/chat/renderer/renderer.native.js +13 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
- package/lib/commonjs/native.js +28 -0
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/utils/price.utils.js +15 -0
- package/lib/commonjs/utils/price.utils.js.map +1 -0
- package/lib/commonjs/utils/theme.utils.js +2 -0
- package/lib/commonjs/utils/theme.utils.js.map +1 -1
- package/lib/commonjs/web.js +28 -0
- package/lib/commonjs/web.js.map +1 -1
- package/lib/module/features/chat/components/common/clock-icon.js +28 -0
- package/lib/module/features/chat/components/common/clock-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/clock-icon.native.js +28 -0
- package/lib/module/features/chat/components/common/clock-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/event/event.js +93 -0
- package/lib/module/features/chat/components/event/event.js.map +1 -0
- package/lib/module/features/chat/components/event/event.model.js +4 -0
- package/lib/module/features/chat/components/event/event.model.js.map +1 -0
- package/lib/module/features/chat/components/event/event.native.js +103 -0
- package/lib/module/features/chat/components/event/event.native.js.map +1 -0
- package/lib/module/features/chat/components/event/index.js +4 -0
- package/lib/module/features/chat/components/event/index.js.map +1 -0
- package/lib/module/features/chat/components/info/index.js +4 -0
- package/lib/module/features/chat/components/info/index.js.map +1 -0
- package/lib/module/features/chat/components/info/info.js +28 -0
- package/lib/module/features/chat/components/info/info.js.map +1 -0
- package/lib/module/features/chat/components/info/info.model.js +4 -0
- package/lib/module/features/chat/components/info/info.model.js.map +1 -0
- package/lib/module/features/chat/components/info/info.native.js +29 -0
- package/lib/module/features/chat/components/info/info.native.js.map +1 -0
- package/lib/module/features/chat/message/index.js +5 -0
- package/lib/module/features/chat/message/index.js.map +1 -0
- package/lib/module/features/chat/message/message.js +45 -0
- package/lib/module/features/chat/message/message.js.map +1 -0
- package/lib/module/features/chat/message/message.logic.js +44 -0
- package/lib/module/features/chat/message/message.logic.js.map +1 -0
- package/lib/module/features/chat/message/message.model.js +4 -0
- package/lib/module/features/chat/message/message.model.js.map +1 -0
- package/lib/module/features/chat/message/message.native.js +46 -0
- package/lib/module/features/chat/message/message.native.js.map +1 -0
- package/lib/module/features/chat/model/chat.model.js +3 -0
- package/lib/module/features/chat/model/chat.model.js.map +1 -1
- package/lib/module/features/chat/renderer/renderer.js +13 -0
- package/lib/module/features/chat/renderer/renderer.js.map +1 -1
- package/lib/module/features/chat/renderer/renderer.native.js +13 -0
- package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
- package/lib/module/native.js +4 -0
- package/lib/module/native.js.map +1 -1
- package/lib/module/utils/price.utils.js +11 -0
- package/lib/module/utils/price.utils.js.map +1 -0
- package/lib/module/utils/theme.utils.js +2 -0
- package/lib/module/utils/theme.utils.js.map +1 -1
- package/lib/module/web.js +4 -0
- package/lib/module/web.js.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/common/clock-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/clock-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/clock-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/clock-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/event/event.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/event/event.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts +11 -0
- package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/event/event.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/event/event.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/event/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/event/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/info/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/info/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/message/index.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/message/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/message/message.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/message/message.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/message/message.logic.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/message/message.logic.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/message/message.model.d.ts +29 -0
- package/lib/typescript/commonjs/features/chat/message/message.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/message/message.native.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/message/message.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +4 -1
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +3 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +3 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/native.d.ts +7 -0
- package/lib/typescript/commonjs/native.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/price.utils.d.ts +2 -0
- package/lib/typescript/commonjs/utils/price.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts +1 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +7 -0
- package/lib/typescript/commonjs/web.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/common/clock-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/clock-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/clock-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/clock-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/event/event.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/event/event.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/event/event.model.d.ts +11 -0
- package/lib/typescript/module/features/chat/components/event/event.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/event/event.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/event/event.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/event/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/event/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/info/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/info/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/info/info.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/info/info.model.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/info/info.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/message/index.d.ts +4 -0
- package/lib/typescript/module/features/chat/message/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/message/message.d.ts +3 -0
- package/lib/typescript/module/features/chat/message/message.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/message/message.logic.d.ts +3 -0
- package/lib/typescript/module/features/chat/message/message.logic.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/message/message.model.d.ts +29 -0
- package/lib/typescript/module/features/chat/message/message.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/message/message.native.d.ts +3 -0
- package/lib/typescript/module/features/chat/message/message.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts +4 -1
- package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts +3 -1
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +3 -1
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
- package/lib/typescript/module/native.d.ts +7 -0
- package/lib/typescript/module/native.d.ts.map +1 -1
- package/lib/typescript/module/utils/price.utils.d.ts +2 -0
- package/lib/typescript/module/utils/price.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/theme.utils.d.ts +1 -0
- package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +7 -0
- package/lib/typescript/module/web.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chat/components/common/clock-icon.native.tsx +19 -0
- package/src/features/chat/components/common/clock-icon.tsx +19 -0
- package/src/features/chat/components/event/event.model.ts +11 -0
- package/src/features/chat/components/event/event.native.tsx +101 -0
- package/src/features/chat/components/event/event.tsx +97 -0
- package/src/features/chat/components/event/index.ts +2 -0
- package/src/features/chat/components/info/index.ts +2 -0
- package/src/features/chat/components/info/info.model.ts +6 -0
- package/src/features/chat/components/info/info.native.tsx +24 -0
- package/src/features/chat/components/info/info.tsx +23 -0
- package/src/features/chat/message/index.ts +9 -0
- package/src/features/chat/message/message.logic.ts +37 -0
- package/src/features/chat/message/message.model.ts +34 -0
- package/src/features/chat/message/message.native.tsx +51 -0
- package/src/features/chat/message/message.tsx +50 -0
- package/src/features/chat/model/chat.model.ts +3 -0
- package/src/features/chat/renderer/renderer.native.tsx +14 -6
- package/src/features/chat/renderer/renderer.tsx +14 -6
- package/src/native.ts +13 -0
- package/src/utils/price.utils.ts +10 -0
- package/src/utils/theme.utils.ts +3 -0
- package/src/web.ts +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_themeUtils","_rendererNative","_chatModel","_messageLogic","_jsxRuntime","ChatMessageRenderer","content","blocks","language","theme","Theme","Dark","onAction","onSelect","actionLabel","counts","c","getThemeClasses","segments","useMemo","parseMessage","jsx","View","className","children","map","seg","i","kind","text","trim","Text","subtitle","ChatComponentRenderer","type","block","data"],"sourceRoot":"../../../../../src","sources":["features/chat/message/message.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAA+C,IAAAM,WAAA,GAAAN,OAAA;AAGxC,SAASO,mBAAmBA,CAAC;EAClCC,OAAO;EACPC,MAAM;EACNC,QAAQ;EACRC,KAAK,GAAGC,gBAAK,CAACC,IAAI;EAClBC,QAAQ;EACRC,QAAQ;EACRC,WAAW;EACXC;AACgB,CAAC,EAAE;EACnB,MAAMC,CAAC,GAAG,IAAAC,2BAAe,EAACR,KAAK,CAAC;EAChC,MAAMS,QAAQ,GAAG,IAAAC,cAAO,EAAC,MAAM,IAAAC,0BAAY,EAACd,OAAO,EAAEC,MAAM,CAAC,EAAE,CAACD,OAAO,EAAEC,MAAM,CAAC,CAAC;EAEhF,oBACE,IAAAH,WAAA,CAAAiB,GAAA,EAACtB,YAAA,CAAAuB,IAAI;IAACC,SAAS,EAAC,OAAO;IAAAC,QAAA,EACpBN,QAAQ,CAACO,GAAG,CAAC,CAACC,GAAG,EAAEC,CAAC,KAAK;MACxB,IAAID,GAAG,CAACE,IAAI,KAAK,MAAM,EAAE;QACvB,MAAMC,IAAI,GAAGH,GAAG,CAACG,IAAI,CAACC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAACD,IAAI,EAAE,OAAO,IAAI;QACtB,oBACE,IAAAzB,WAAA,CAAAiB,GAAA,EAACtB,YAAA,CAAAgC,IAAI;UAASR,SAAS,EAAE,2BAA2BP,CAAC,CAACgB,QAAQ,EAAG;UAAAR,QAAA,EAC9DK;QAAI,GADIF,CAEL,CAAC;MAEX;MAEA,oBACE,IAAAvB,WAAA,CAAAiB,GAAA,EAACpB,eAAA,CAAAgC,qBAAqB;QAEpBC,IAAI,EAAER,GAAG,CAACS,KAAK,CAACD,IAAK;QACrBE,IAAI,EAAEV,GAAG,CAACS,KAAK,CAACC,IAAc;QAC9B5B,QAAQ,EAAEA,QAAS;QACnBC,KAAK,EAAEA,KAAM;QACbG,QAAQ,EAAEA,QAAS;QACnBC,QAAQ,EAAEA,QAAS;QACnBC,WAAW,EAAEA,WAAY;QACzBC,MAAM,EAAEA;MAAO,GARVY,CASN,CAAC;IAEN,CAAC;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
|
|
@@ -14,6 +14,9 @@ let ComponentType = exports.ComponentType = /*#__PURE__*/function (ComponentType
|
|
|
14
14
|
ComponentType["ProductList"] = "productList";
|
|
15
15
|
ComponentType["Service"] = "service";
|
|
16
16
|
ComponentType["ServiceList"] = "serviceList";
|
|
17
|
+
ComponentType["Event"] = "event";
|
|
18
|
+
ComponentType["EventList"] = "eventList";
|
|
19
|
+
ComponentType["Info"] = "info";
|
|
17
20
|
return ComponentType;
|
|
18
21
|
}({});
|
|
19
22
|
let ItemAction = exports.ItemAction = /*#__PURE__*/function (ItemAction) {
|
|
@@ -1 +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,
|
|
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;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAA,IAUbC,UAAU,GAAAF,OAAA,CAAAE,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ChatComponentRenderer = ChatComponentRenderer;
|
|
7
7
|
var _product = require("../components/product/product");
|
|
8
8
|
var _service = require("../components/service/service");
|
|
9
|
+
var _event = require("../components/event/event");
|
|
10
|
+
var _info = require("../components/info/info");
|
|
9
11
|
var _chatModel = require("../model/chat.model.js");
|
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
13
|
function ChatComponentRenderer({
|
|
@@ -25,6 +27,17 @@ function ChatComponentRenderer({
|
|
|
25
27
|
type: type,
|
|
26
28
|
...rest
|
|
27
29
|
});
|
|
30
|
+
case _chatModel.ComponentType.Event:
|
|
31
|
+
case _chatModel.ComponentType.EventList:
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_event.Event, {
|
|
33
|
+
type: type,
|
|
34
|
+
...rest
|
|
35
|
+
});
|
|
36
|
+
case _chatModel.ComponentType.Info:
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_info.Info, {
|
|
38
|
+
type: type,
|
|
39
|
+
...rest
|
|
40
|
+
});
|
|
28
41
|
default:
|
|
29
42
|
return null;
|
|
30
43
|
}
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"names":["_product","require","_service","_event","_info","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList","Event","EventList","Info"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAKA,IAAAI,UAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAG7C,SAASM,qBAAqBA,CAEnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACb,QAAA,CAAAW,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACX,QAAA,CAAAY,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACM,KAAK;IACxB,KAAKN,wBAAa,CAACO,SAAS;MAC1B,oBAAO,IAAAX,WAAA,CAAAO,GAAA,EAACV,MAAA,CAAAa,KAAK;QAACR,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKC,wBAAa,CAACQ,IAAI;MACrB,oBAAO,IAAAZ,WAAA,CAAAO,GAAA,EAACT,KAAA,CAAAc,IAAI;QAACV,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ChatComponentRenderer = ChatComponentRenderer;
|
|
7
7
|
var _productNative = require("../components/product/product.native.js");
|
|
8
8
|
var _serviceNative = require("../components/service/service.native.js");
|
|
9
|
+
var _eventNative = require("../components/event/event.native.js");
|
|
10
|
+
var _infoNative = require("../components/info/info.native.js");
|
|
9
11
|
var _chatModel = require("../model/chat.model.js");
|
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
13
|
function ChatComponentRenderer({
|
|
@@ -25,6 +27,17 @@ function ChatComponentRenderer({
|
|
|
25
27
|
type: type,
|
|
26
28
|
...rest
|
|
27
29
|
});
|
|
30
|
+
case _chatModel.ComponentType.Event:
|
|
31
|
+
case _chatModel.ComponentType.EventList:
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_eventNative.Event, {
|
|
33
|
+
type: type,
|
|
34
|
+
...rest
|
|
35
|
+
});
|
|
36
|
+
case _chatModel.ComponentType.Info:
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_infoNative.Info, {
|
|
38
|
+
type: type,
|
|
39
|
+
...rest
|
|
40
|
+
});
|
|
28
41
|
default:
|
|
29
42
|
return null;
|
|
30
43
|
}
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"names":["_productNative","require","_serviceNative","_eventNative","_infoNative","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList","Event","EventList","Info"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAKA,IAAAI,UAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAG7C,SAASM,qBAAqBA,CAEnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACb,cAAA,CAAAW,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACX,cAAA,CAAAY,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACM,KAAK;IACxB,KAAKN,wBAAa,CAACO,SAAS;MAC1B,oBAAO,IAAAX,WAAA,CAAAO,GAAA,EAACV,YAAA,CAAAa,KAAK;QAACR,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKC,wBAAa,CAACQ,IAAI;MACrB,oBAAO,IAAAZ,WAAA,CAAAO,GAAA,EAACT,WAAA,CAAAc,IAAI;QAACV,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
|
package/lib/commonjs/native.js
CHANGED
|
@@ -9,12 +9,30 @@ Object.defineProperty(exports, "ChatComponentRenderer", {
|
|
|
9
9
|
return _rendererNative.ChatComponentRenderer;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "ChatMessageRenderer", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _messageNative.ChatMessageRenderer;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "ComponentType", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function () {
|
|
15
21
|
return _chatModel.ComponentType;
|
|
16
22
|
}
|
|
17
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "Event", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _eventNative.Event;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "Info", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _infoNative.Info;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
18
36
|
Object.defineProperty(exports, "ItemAction", {
|
|
19
37
|
enumerable: true,
|
|
20
38
|
get: function () {
|
|
@@ -39,8 +57,18 @@ Object.defineProperty(exports, "Theme", {
|
|
|
39
57
|
return _chatModel.Theme;
|
|
40
58
|
}
|
|
41
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "parseMessage", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _messageLogic.parseMessage;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
42
66
|
var _productNative = require("./features/chat/components/product/product.native.js");
|
|
43
67
|
var _serviceNative = require("./features/chat/components/service/service.native.js");
|
|
68
|
+
var _eventNative = require("./features/chat/components/event/event.native.js");
|
|
69
|
+
var _infoNative = require("./features/chat/components/info/info.native.js");
|
|
44
70
|
var _rendererNative = require("./features/chat/renderer/renderer.native.js");
|
|
71
|
+
var _messageNative = require("./features/chat/message/message.native.js");
|
|
72
|
+
var _messageLogic = require("./features/chat/message/message.logic.js");
|
|
45
73
|
var _chatModel = require("./features/chat/model/chat.model.js");
|
|
46
74
|
//# sourceMappingURL=native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_productNative","require","_serviceNative","_rendererNative","_chatModel"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_productNative","require","_serviceNative","_eventNative","_infoNative","_rendererNative","_messageNative","_messageLogic","_chatModel"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isFreePrice = isFreePrice;
|
|
7
|
+
function isFreePrice(price) {
|
|
8
|
+
if (price == null) return true;
|
|
9
|
+
if (typeof price === 'number') return price === 0;
|
|
10
|
+
const trimmed = price.trim();
|
|
11
|
+
if (trimmed === '') return true;
|
|
12
|
+
const numeric = parseFloat(trimmed.replace(/[^0-9.,-]/g, '').replace(',', '.'));
|
|
13
|
+
return Number.isFinite(numeric) && numeric === 0;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=price.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isFreePrice","price","trimmed","trim","numeric","parseFloat","replace","Number","isFinite"],"sourceRoot":"../../../src","sources":["utils/price.utils.ts"],"mappings":";;;;;;AAAO,SAASA,WAAWA,CAACC,KAA8B,EAAW;EACnE,IAAIA,KAAK,IAAI,IAAI,EAAE,OAAO,IAAI;EAC9B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK,KAAK,CAAC;EAEjD,MAAMC,OAAO,GAAGD,KAAK,CAACE,IAAI,CAAC,CAAC;EAC5B,IAAID,OAAO,KAAK,EAAE,EAAE,OAAO,IAAI;EAE/B,MAAME,OAAO,GAAGC,UAAU,CAACH,OAAO,CAACI,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;EAC/E,OAAOC,MAAM,CAACC,QAAQ,CAACJ,OAAO,CAAC,IAAIA,OAAO,KAAK,CAAC;AAClD","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ const DARK = {
|
|
|
11
11
|
title: 'text-white',
|
|
12
12
|
subtitle: 'text-chat-subtitle-dark',
|
|
13
13
|
price: 'text-white',
|
|
14
|
+
free: 'text-emerald-400',
|
|
14
15
|
actionBorder: 'border-neutral-700',
|
|
15
16
|
actionText: 'text-white',
|
|
16
17
|
divider: 'bg-neutral-800',
|
|
@@ -24,6 +25,7 @@ const LIGHT = {
|
|
|
24
25
|
title: 'text-neutral-900',
|
|
25
26
|
subtitle: 'text-neutral-500',
|
|
26
27
|
price: 'text-neutral-900',
|
|
28
|
+
free: 'text-emerald-600',
|
|
27
29
|
actionBorder: 'border-slate-400',
|
|
28
30
|
actionText: 'text-neutral-900',
|
|
29
31
|
divider: 'bg-slate-300',
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"names":["_chatModel","require","DARK","surface","border","title","subtitle","price","free","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;AAiBA,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,IAAI,EAAE,kBAAkB;EACxBC,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;EAC1BZ,OAAO,EAAE,uBAAuB;EAChCC,MAAM,EAAE,0BAA0B;EAClCC,KAAK,EAAE,kBAAkB;EACzBC,QAAQ,EAAE,kBAAkB;EAC5BC,KAAK,EAAE,kBAAkB;EACzBC,IAAI,EAAE,kBAAkB;EACxBC,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,GAAGb,IAAI;AAC7C","ignoreList":[]}
|
package/lib/commonjs/web.js
CHANGED
|
@@ -9,12 +9,30 @@ Object.defineProperty(exports, "ChatComponentRenderer", {
|
|
|
9
9
|
return _renderer.ChatComponentRenderer;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "ChatMessageRenderer", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _message.ChatMessageRenderer;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "ComponentType", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function () {
|
|
15
21
|
return _chatModel.ComponentType;
|
|
16
22
|
}
|
|
17
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "Event", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _event.Event;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "Info", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _info.Info;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
18
36
|
Object.defineProperty(exports, "ItemAction", {
|
|
19
37
|
enumerable: true,
|
|
20
38
|
get: function () {
|
|
@@ -39,8 +57,18 @@ Object.defineProperty(exports, "Theme", {
|
|
|
39
57
|
return _chatModel.Theme;
|
|
40
58
|
}
|
|
41
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "parseMessage", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _messageLogic.parseMessage;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
42
66
|
var _product = require("./features/chat/components/product/product");
|
|
43
67
|
var _service = require("./features/chat/components/service/service");
|
|
68
|
+
var _event = require("./features/chat/components/event/event");
|
|
69
|
+
var _info = require("./features/chat/components/info/info");
|
|
44
70
|
var _renderer = require("./features/chat/renderer/renderer");
|
|
71
|
+
var _message = require("./features/chat/message/message");
|
|
72
|
+
var _messageLogic = require("./features/chat/message/message.logic.js");
|
|
45
73
|
var _chatModel = require("./features/chat/model/chat.model.js");
|
|
46
74
|
//# sourceMappingURL=web.js.map
|
package/lib/commonjs/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_product","require","_service","_renderer","_chatModel"],"sourceRoot":"../../src","sources":["web.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_product","require","_service","_event","_info","_renderer","_message","_messageLogic","_chatModel"],"sourceRoot":"../../src","sources":["web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
export function ClockIcon({
|
|
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("circle", {
|
|
14
|
+
cx: "12",
|
|
15
|
+
cy: "12",
|
|
16
|
+
r: "9",
|
|
17
|
+
stroke: color,
|
|
18
|
+
strokeWidth: 1.8
|
|
19
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
20
|
+
d: "M12 7.5V12l3 1.8",
|
|
21
|
+
stroke: color,
|
|
22
|
+
strokeWidth: 1.8,
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round"
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=clock-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ClockIcon","size","color","_jsxs","width","height","viewBox","fill","children","_jsx","cx","cy","r","stroke","strokeWidth","d","strokeLinecap","strokeLinejoin"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/common/clock-icon.tsx"],"mappings":";;;AAKA,OAAO,SAASA,SAASA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAA+B,CAAC,EAAE;EAC/E,oBACEC,KAAA;IAAKC,KAAK,EAAEH,IAAK;IAACI,MAAM,EAAEJ,IAAK;IAACK,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAC7DC,IAAA;MAAQC,EAAE,EAAC,IAAI;MAACC,EAAE,EAAC,IAAI;MAACC,CAAC,EAAC,GAAG;MAACC,MAAM,EAAEX,KAAM;MAACY,WAAW,EAAE;IAAI,CAAE,CAAC,eACjEL,IAAA;MACEM,CAAC,EAAC,kBAAkB;MACpBF,MAAM,EAAEX,KAAM;MACdY,WAAW,EAAE,GAAI;MACjBE,aAAa,EAAC,OAAO;MACrBC,cAAc,EAAC;IAAO,CACvB,CAAC;EAAA,CACC,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
export function ClockIcon({
|
|
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("circle", {
|
|
14
|
+
cx: "12",
|
|
15
|
+
cy: "12",
|
|
16
|
+
r: "9",
|
|
17
|
+
stroke: color,
|
|
18
|
+
strokeWidth: 1.8
|
|
19
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
20
|
+
d: "M12 7.5V12l3 1.8",
|
|
21
|
+
stroke: color,
|
|
22
|
+
strokeWidth: 1.8,
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round"
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=clock-icon.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ClockIcon","size","color","_jsxs","width","height","viewBox","fill","children","_jsx","cx","cy","r","stroke","strokeWidth","d","strokeLinecap","strokeLinejoin"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/common/clock-icon.native.tsx"],"mappings":";;;AAKA,OAAO,SAASA,SAASA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAA+B,CAAC,EAAE;EAC/E,oBACEC,KAAA;IAAKC,KAAK,EAAEH,IAAK;IAACI,MAAM,EAAEJ,IAAK;IAACK,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAC7DC,IAAA;MAAQC,EAAE,EAAC,IAAI;MAACC,EAAE,EAAC,IAAI;MAACC,CAAC,EAAC,GAAG;MAACC,MAAM,EAAEX,KAAM;MAACY,WAAW,EAAE;IAAI,CAAE,CAAC,eACjEL,IAAA;MACEM,CAAC,EAAC,kBAAkB;MACpBF,MAAM,EAAEX,KAAM;MACdY,WAAW,EAAE,GAAI;MACjBE,aAAa,EAAC,OAAO;MACrBC,cAAc,EAAC;IAAO,CACvB,CAAC;EAAA,CACC,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getThemeClasses } from "../../../../utils/theme.utils.js";
|
|
4
|
+
import { resolveText } from "../../../../utils/i18n.utils.js";
|
|
5
|
+
import { isFreePrice } from "../../../../utils/price.utils.js";
|
|
6
|
+
import { useExpandableList } from "../../../../utils/use-expandable-list.js";
|
|
7
|
+
import { Collapsible } from '../common/collapsible';
|
|
8
|
+
import { ClockIcon } from '../common/clock-icon';
|
|
9
|
+
import { Theme } from "../../model/chat.model.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
const FREE_LABEL = 'Free';
|
|
12
|
+
export function Event({
|
|
13
|
+
data,
|
|
14
|
+
theme = Theme.Dark,
|
|
15
|
+
language,
|
|
16
|
+
onSelect
|
|
17
|
+
}) {
|
|
18
|
+
const c = getThemeClasses(theme);
|
|
19
|
+
const items = Array.isArray(data) ? data : [data];
|
|
20
|
+
const {
|
|
21
|
+
head,
|
|
22
|
+
rest,
|
|
23
|
+
expanded,
|
|
24
|
+
hasMore,
|
|
25
|
+
toggle
|
|
26
|
+
} = useExpandableList(items);
|
|
27
|
+
const renderCard = item => {
|
|
28
|
+
const name = resolveText(item.name, language);
|
|
29
|
+
const location = resolveText(item.location, language);
|
|
30
|
+
const description = item.description ? resolveText(item.description, language) : '';
|
|
31
|
+
const isFree = isFreePrice(item.price);
|
|
32
|
+
return /*#__PURE__*/_jsx("div", {
|
|
33
|
+
className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
|
|
34
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
35
|
+
className: "flex gap-3",
|
|
36
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
37
|
+
src: item.image,
|
|
38
|
+
alt: name,
|
|
39
|
+
onClick: () => onSelect?.(item),
|
|
40
|
+
className: `h-16 w-16 shrink-0 cursor-pointer rounded-xl object-cover down-sm:h-14 down-sm:w-14 ${c.iconBg}`
|
|
41
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
42
|
+
className: "flex min-w-0 flex-1 cursor-pointer flex-col justify-center gap-1",
|
|
43
|
+
onClick: () => onSelect?.(item),
|
|
44
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
45
|
+
className: "flex items-start justify-between gap-2",
|
|
46
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
47
|
+
className: `flex-1 truncate text-lg font-bold down-sm:text-base ${c.title}`,
|
|
48
|
+
children: name
|
|
49
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
50
|
+
className: `shrink-0 text-lg font-bold down-sm:text-base ${isFree ? c.free : c.price}`,
|
|
51
|
+
children: isFree ? FREE_LABEL : item.price
|
|
52
|
+
})]
|
|
53
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
54
|
+
className: "flex items-center gap-1.5",
|
|
55
|
+
children: [/*#__PURE__*/_jsx(ClockIcon, {
|
|
56
|
+
size: 16,
|
|
57
|
+
color: c.iconColor
|
|
58
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
59
|
+
className: `truncate text-sm down-sm:text-xs ${c.subtitle}`,
|
|
60
|
+
children: [item.time, " \xB7 ", location]
|
|
61
|
+
})]
|
|
62
|
+
}), description ? /*#__PURE__*/_jsx("span", {
|
|
63
|
+
className: `line-clamp-2 text-sm down-sm:text-xs ${c.subtitle}`,
|
|
64
|
+
children: description
|
|
65
|
+
}) : null]
|
|
66
|
+
})]
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
71
|
+
children: [head.map((item, index) => /*#__PURE__*/_jsx("div", {
|
|
72
|
+
className: index > 0 ? 'mt-3' : undefined,
|
|
73
|
+
children: renderCard(item)
|
|
74
|
+
}, item.id)), hasMore ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
75
|
+
children: [/*#__PURE__*/_jsx(Collapsible, {
|
|
76
|
+
expanded: expanded,
|
|
77
|
+
children: rest.map(item => /*#__PURE__*/_jsx("div", {
|
|
78
|
+
className: "mt-3",
|
|
79
|
+
children: renderCard(item)
|
|
80
|
+
}, item.id))
|
|
81
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
82
|
+
className: "mt-3 flex justify-center",
|
|
83
|
+
children: /*#__PURE__*/_jsx("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
onClick: toggle,
|
|
86
|
+
className: `rounded-xl border px-4 py-1.5 text-sm font-medium ${c.actionBorder} ${c.actionText}`,
|
|
87
|
+
children: expanded ? 'Show less' : 'Show more'
|
|
88
|
+
})
|
|
89
|
+
})]
|
|
90
|
+
}) : null]
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getThemeClasses","resolveText","isFreePrice","useExpandableList","Collapsible","ClockIcon","Theme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","FREE_LABEL","Event","data","theme","Dark","language","onSelect","c","items","Array","isArray","head","rest","expanded","hasMore","toggle","renderCard","item","name","location","description","isFree","price","className","surface","border","children","src","image","alt","onClick","iconBg","title","free","size","color","iconColor","subtitle","time","map","index","undefined","id","type","actionBorder","actionText"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/event/event.tsx"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,kCAA+B;AAC/D,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,WAAW,QAAQ,kCAA+B;AAC3D,SAASC,iBAAiB,QA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ACGf,IAAI,CAAC4B,GAAG,CAAC,CAACtB,IAAI,EAAEuB,KAAK,kBACpB7C,IAAA;MAAmB4B,SAAS,EAAEiB,KAAK,GAAG,CAAC,GAAG,MAAM,GAAGC,SAAU;MAAAf,QAAA,EAC1DV,UAAU,CAACC,IAAI;IAAC,GADTA,IAAI,CAACyB,EAEV,CACN,CAAC,EAED5B,OAAO,gBACNjB,KAAA,CAAAE,SAAA;MAAA2B,QAAA,gBACE/B,IAAA,CAACJ,WAAW;QAACsB,QAAQ,EAAEA,QAAS;QAAAa,QAAA,EAC7Bd,IAAI,CAAC2B,GAAG,CAAEtB,IAAI,iBACbtB,IAAA;UAAmB4B,SAAS,EAAC,MAAM;UAAAG,QAAA,EAChCV,UAAU,CAACC,IAAI;QAAC,GADTA,IAAI,CAACyB,EAEV,CACN;MAAC,CACS,CAAC,eAEd/C,IAAA;QAAK4B,SAAS,EAAC,0BAA0B;QAAAG,QAAA,eACvC/B,IAAA;UACEgD,IAAI,EAAC,QAAQ;UACbb,OAAO,EAAEf,MAAO;UAChBQ,SAAS,EAAE,qDAAqDhB,CAAC,CAACqC,YAAY,IAAIrC,CAAC,CAACsC,UAAU,EAAG;UAAAnB,QAAA,EAEhGb,QAAQ,GAAG,WAAW,GAAG;QAAW,CAC/B;MAAC,CACN,CAAC;IAAA,CACN,CAAC,GACD,IAAI;EAAA,CACL,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["features/chat/components/event/event.model.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Image, Pressable, Text, View } from 'react-native';
|
|
4
|
+
import { getThemeClasses } from "../../../../utils/theme.utils.js";
|
|
5
|
+
import { resolveText } from "../../../../utils/i18n.utils.js";
|
|
6
|
+
import { isFreePrice } from "../../../../utils/price.utils.js";
|
|
7
|
+
import { useExpandableList } from "../../../../utils/use-expandable-list.js";
|
|
8
|
+
import { Collapsible } from "../common/collapsible.native.js";
|
|
9
|
+
import { ClockIcon } from "../common/clock-icon.native.js";
|
|
10
|
+
import { Theme } from "../../model/chat.model.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
const FREE_LABEL = 'Free';
|
|
13
|
+
export function Event({
|
|
14
|
+
data,
|
|
15
|
+
theme = Theme.Dark,
|
|
16
|
+
language,
|
|
17
|
+
onSelect
|
|
18
|
+
}) {
|
|
19
|
+
const c = getThemeClasses(theme);
|
|
20
|
+
const items = Array.isArray(data) ? data : [data];
|
|
21
|
+
const {
|
|
22
|
+
head,
|
|
23
|
+
rest,
|
|
24
|
+
expanded,
|
|
25
|
+
hasMore,
|
|
26
|
+
toggle
|
|
27
|
+
} = useExpandableList(items);
|
|
28
|
+
const renderCard = item => {
|
|
29
|
+
const name = resolveText(item.name, language);
|
|
30
|
+
const location = resolveText(item.location, language);
|
|
31
|
+
const description = item.description ? resolveText(item.description, language) : '';
|
|
32
|
+
const isFree = isFreePrice(item.price);
|
|
33
|
+
return /*#__PURE__*/_jsx(View, {
|
|
34
|
+
className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
|
|
35
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
36
|
+
className: "flex-row gap-3",
|
|
37
|
+
children: [/*#__PURE__*/_jsx(Pressable, {
|
|
38
|
+
onPress: () => onSelect?.(item),
|
|
39
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
40
|
+
accessibilityLabel: name,
|
|
41
|
+
source: {
|
|
42
|
+
uri: item.image
|
|
43
|
+
},
|
|
44
|
+
className: `h-16 w-16 rounded-xl down-sm:h-14 down-sm:w-14 ${c.iconBg}`
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/_jsxs(Pressable, {
|
|
47
|
+
className: "flex-1 justify-center gap-1",
|
|
48
|
+
onPress: () => onSelect?.(item),
|
|
49
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
50
|
+
className: "flex-row items-start justify-between gap-2",
|
|
51
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
52
|
+
className: `flex-1 text-lg font-bold down-sm:text-base ${c.title}`,
|
|
53
|
+
numberOfLines: 1,
|
|
54
|
+
children: name
|
|
55
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
56
|
+
className: `text-lg font-bold down-sm:text-base ${isFree ? c.free : c.price}`,
|
|
57
|
+
children: isFree ? FREE_LABEL : item.price
|
|
58
|
+
})]
|
|
59
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
60
|
+
className: "flex-row items-center gap-1.5",
|
|
61
|
+
children: [/*#__PURE__*/_jsx(ClockIcon, {
|
|
62
|
+
size: 16,
|
|
63
|
+
color: c.iconColor
|
|
64
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
65
|
+
className: `flex-1 text-sm down-sm:text-xs ${c.subtitle}`,
|
|
66
|
+
numberOfLines: 1,
|
|
67
|
+
children: [item.time, " \xB7 ", location]
|
|
68
|
+
})]
|
|
69
|
+
}), description ? /*#__PURE__*/_jsx(Text, {
|
|
70
|
+
className: `text-sm down-sm:text-xs ${c.subtitle}`,
|
|
71
|
+
numberOfLines: 2,
|
|
72
|
+
children: description
|
|
73
|
+
}) : null]
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
79
|
+
children: [head.map((item, index) => /*#__PURE__*/_jsx(View, {
|
|
80
|
+
className: index > 0 ? 'mt-3' : undefined,
|
|
81
|
+
children: renderCard(item)
|
|
82
|
+
}, item.id)), hasMore ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
83
|
+
children: [/*#__PURE__*/_jsx(Collapsible, {
|
|
84
|
+
expanded: expanded,
|
|
85
|
+
children: rest.map(item => /*#__PURE__*/_jsx(View, {
|
|
86
|
+
className: "mt-3",
|
|
87
|
+
children: renderCard(item)
|
|
88
|
+
}, item.id))
|
|
89
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
90
|
+
className: "mt-3 items-center",
|
|
91
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
92
|
+
onPress: toggle,
|
|
93
|
+
className: `rounded-xl border px-4 py-1.5 ${c.actionBorder}`,
|
|
94
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
95
|
+
className: `text-sm font-medium ${c.actionText}`,
|
|
96
|
+
children: expanded ? 'Show less' : 'Show more'
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
}) : null]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=event.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Image","Pressable","Text","View","getThemeClasses","resolveText","isFreePrice","useExpandableList","Collapsible","ClockIcon","Theme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","FREE_LABEL","Event","data","theme","Dark","language","onSelect","c","items","Array","isArray","head","rest","expanded","hasMore","toggle","renderCard","item","name","location","description","isFree","price","className","surface","border","children","onPress","accessibilityLabel","source","uri","image","iconBg","title","numberOfLines","free","size","color","iconColor","subtitle","time","map","index","undefined","id","actionBorder","actionText"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/event/event.native.tsx"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC3D,SAASC,eAAe,QAAQ,kCAA+B;AAC/D,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,WAAW,QAAQ,kCAA+B;AAC3D,SAASC,iBAAiB,QAAQ,0CAAuC;AACzE,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,SAAS,QAAQ,gCAA6B;AACvD,SAASC,KAAK,QAAQ,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,I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CAAC,GACL,IAAI;QAAA,CACC,CAAC;MAAA,CACR;IAAC,CACH,CAAC;EAEX,CAAC;EAED,oBACEvB,KAAA,CAACX,IAAI;IAAAwC,QAAA,GACFf,IAAI,CAAC8B,GAAG,CAAC,CAACxB,IAAI,EAAEyB,KAAK,kBACpB/C,IAAA,CAACT,IAAI;MAAeqC,SAAS,EAAEmB,KAAK,GAAG,CAAC,GAAG,MAAM,GAAGC,SAAU;MAAAjB,QAAA,EAC3DV,UAAU,CAACC,IAAI;IAAC,GADRA,IAAI,CAAC2B,EAEV,CACP,CAAC,EAED9B,OAAO,gBACNjB,KAAA,CAAAE,SAAA;MAAA2B,QAAA,gBACE/B,IAAA,CAACJ,WAAW;QAACsB,QAAQ,EAAEA,QAAS;QAAAa,QAAA,EAC7Bd,IAAI,CAAC6B,GAAG,CAAExB,IAAI,iBACbtB,IAAA,CAACT,IAAI;UAAeqC,SAAS,EAAC,MAAM;UAAAG,QAAA,EACjCV,UAAU,CAACC,IAAI;QAAC,GADRA,IAAI,CAAC2B,EAEV,CACP;MAAC,CACS,CAAC,eAEdjD,IAAA,CAACT,IAAI;QAACqC,SAAS,EAAC,mBAAmB;QAAAG,QAAA,eACjC/B,IAAA,CAACX,SAAS;UACR2C,OAAO,EAAEZ,MAAO;UAChBQ,SAAS,EAAE,iCAAiChB,CAAC,CAACsC,YAAY,EAAG;UAAAnB,QAAA,eAE7D/B,IAAA,CAACV,IAAI;YAACsC,SAAS,EAAE,uBAAuBhB,CAAC,CAACuC,UAAU,EAAG;YAAApB,QAAA,EACpDb,QAAQ,GAAG,WAAW,GAAG;UAAW,CACjC;QAAC,CACE;MAAC,CACR,CAAC;IAAA,CACP,CAAC,GACD,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Event"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/event/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Info"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/info/index.ts"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getThemeClasses } from "../../../../utils/theme.utils.js";
|
|
4
|
+
import { resolveText } from "../../../../utils/i18n.utils.js";
|
|
5
|
+
import { Theme } from "../../model/chat.model.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export function Info({
|
|
8
|
+
data,
|
|
9
|
+
theme = Theme.Dark,
|
|
10
|
+
language
|
|
11
|
+
}) {
|
|
12
|
+
const c = getThemeClasses(theme);
|
|
13
|
+
const item = Array.isArray(data) ? data[0] : data;
|
|
14
|
+
if (!item) return null;
|
|
15
|
+
const name = resolveText(item.name, language);
|
|
16
|
+
const description = resolveText(item.description, language);
|
|
17
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
18
|
+
className: `rounded-2xl border p-4 ${c.surface} ${c.border}`,
|
|
19
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
20
|
+
className: `block text-base font-bold down-sm:text-sm ${c.title}`,
|
|
21
|
+
children: name
|
|
22
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
23
|
+
className: `mt-1 block text-sm leading-relaxed down-sm:text-xs ${c.subtitle}`,
|
|
24
|
+
children: description
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getThemeClasses","resolveText","Theme","jsx","_jsx","jsxs","_jsxs","Info","data","theme","Dark","language","c","item","Array","isArray","name","description","className","surface","border","children","title","subtitle"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/info/info.tsx"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,kCAA+B;AAC/D,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,KAAK,QAAQ,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAI/C,OAAO,SAASC,IAAIA,CAAC;EAAEC,IAAI;EAAEC,KAAK,GAAGP,KAAK,CAACQ,IAAI;EAAEC;AAAuC,CAAC,EAAE;EACzF,MAAMC,CAAC,GAAGZ,eAAe,CAACS,KAAK,CAAC;EAChC,MAAMI,IAAI,GAAGC,KAAK,CAACC,OAAO,CAACP,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA,IAAI;EACjD,IAAI,CAACK,IAAI,EAAE,OAAO,IAAI;EAEtB,MAAMG,IAAI,GAAGf,WAAW,CAACY,IAAI,CAACG,IAAI,EAAEL,QAAQ,CAAC;EAC7C,MAAMM,WAAW,GAAGhB,WAAW,CAACY,IAAI,CAACI,WAAW,EAAEN,QAAQ,CAAC;EAE3D,oBACEL,KAAA;IAAKY,SAAS,EAAE,0BAA0BN,CAAC,CAACO,OAAO,IAAIP,CAAC,CAACQ,MAAM,EAAG;IAAAC,QAAA,gBAChEjB,IAAA;MAAMc,SAAS,EAAE,6CAA6CN,CAAC,CAACU,KAAK,EAAG;MAAAD,QAAA,EAAEL;IAAI,CAAO,CAAC,eACtFZ,IAAA;MAAMc,SAAS,EAAE,sDAAsDN,CAAC,CAACW,QAAQ,EAAG;MAAAF,QAAA,EACjFJ;IAAW,CACR,CAAC;EAAA,CACJ,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["features/chat/components/info/info.model.ts"],"mappings":"","ignoreList":[]}
|