@inorain_development/hotel-smarters-chat-ui 1.2.1 → 1.3.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.
Files changed (372) hide show
  1. package/lib/commonjs/features/chat/components/common/calendar-icon.js +33 -0
  2. package/lib/commonjs/features/chat/components/common/calendar-icon.js.map +1 -0
  3. package/lib/commonjs/features/chat/components/common/calendar-icon.native.js +33 -0
  4. package/lib/commonjs/features/chat/components/common/calendar-icon.native.js.map +1 -0
  5. package/lib/commonjs/features/chat/components/common/cart-icon.js +36 -0
  6. package/lib/commonjs/features/chat/components/common/cart-icon.js.map +1 -0
  7. package/lib/commonjs/features/chat/components/common/chevron-icon.js +26 -0
  8. package/lib/commonjs/features/chat/components/common/chevron-icon.js.map +1 -0
  9. package/lib/commonjs/features/chat/components/common/chevron-icon.native.js +26 -0
  10. package/lib/commonjs/features/chat/components/common/chevron-icon.native.js.map +1 -0
  11. package/lib/commonjs/features/chat/components/common/plane-icon.js +23 -0
  12. package/lib/commonjs/features/chat/components/common/plane-icon.js.map +1 -0
  13. package/lib/commonjs/features/chat/components/common/plane-icon.native.js +23 -0
  14. package/lib/commonjs/features/chat/components/common/plane-icon.native.js.map +1 -0
  15. package/lib/commonjs/features/chat/components/event/event.js +5 -3
  16. package/lib/commonjs/features/chat/components/event/event.js.map +1 -1
  17. package/lib/commonjs/features/chat/components/event/event.native.js +5 -3
  18. package/lib/commonjs/features/chat/components/event/event.native.js.map +1 -1
  19. package/lib/commonjs/features/chat/components/flight/flight-card.js +130 -0
  20. package/lib/commonjs/features/chat/components/flight/flight-card.js.map +1 -0
  21. package/lib/commonjs/features/chat/components/flight/flight-card.native.js +132 -0
  22. package/lib/commonjs/features/chat/components/flight/flight-card.native.js.map +1 -0
  23. package/lib/commonjs/features/chat/components/flight/flight.js +149 -0
  24. package/lib/commonjs/features/chat/components/flight/flight.js.map +1 -0
  25. package/lib/commonjs/features/chat/components/flight/flight.model.js +6 -0
  26. package/lib/commonjs/features/chat/components/flight/flight.model.js.map +1 -0
  27. package/lib/commonjs/features/chat/components/flight/flight.native.js +151 -0
  28. package/lib/commonjs/features/chat/components/flight/flight.native.js.map +1 -0
  29. package/lib/commonjs/features/chat/components/flight/index.js +13 -0
  30. package/lib/commonjs/features/chat/components/flight/index.js.map +1 -0
  31. package/lib/commonjs/features/chat/components/flight-board/flight-board.js +154 -0
  32. package/lib/commonjs/features/chat/components/flight-board/flight-board.js.map +1 -0
  33. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js +6 -0
  34. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  35. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js +165 -0
  36. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  37. package/lib/commonjs/features/chat/components/flight-board/index.js +13 -0
  38. package/lib/commonjs/features/chat/components/flight-board/index.js.map +1 -0
  39. package/lib/commonjs/features/chat/components/info/info.js +41 -14
  40. package/lib/commonjs/features/chat/components/info/info.js.map +1 -1
  41. package/lib/commonjs/features/chat/components/info/info.native.js +45 -14
  42. package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -1
  43. package/lib/commonjs/features/chat/components/order/index.js +20 -0
  44. package/lib/commonjs/features/chat/components/order/index.js.map +1 -0
  45. package/lib/commonjs/features/chat/components/order/order.js +171 -0
  46. package/lib/commonjs/features/chat/components/order/order.js.map +1 -0
  47. package/lib/commonjs/features/chat/components/order/order.model.js +15 -0
  48. package/lib/commonjs/features/chat/components/order/order.model.js.map +1 -0
  49. package/lib/commonjs/features/chat/components/order/order.native.js +192 -0
  50. package/lib/commonjs/features/chat/components/order/order.native.js.map +1 -0
  51. package/lib/commonjs/features/chat/components/reservation/index.js +20 -0
  52. package/lib/commonjs/features/chat/components/reservation/index.js.map +1 -0
  53. package/lib/commonjs/features/chat/components/reservation/reservation.js +164 -0
  54. package/lib/commonjs/features/chat/components/reservation/reservation.js.map +1 -0
  55. package/lib/commonjs/features/chat/components/reservation/reservation.model.js +13 -0
  56. package/lib/commonjs/features/chat/components/reservation/reservation.model.js.map +1 -0
  57. package/lib/commonjs/features/chat/components/reservation/reservation.native.js +180 -0
  58. package/lib/commonjs/features/chat/components/reservation/reservation.native.js.map +1 -0
  59. package/lib/commonjs/features/chat/model/chat.model.js +17 -1
  60. package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
  61. package/lib/commonjs/features/chat/renderer/renderer.js +26 -0
  62. package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
  63. package/lib/commonjs/features/chat/renderer/renderer.native.js +26 -0
  64. package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
  65. package/lib/commonjs/native.js +48 -0
  66. package/lib/commonjs/native.js.map +1 -1
  67. package/lib/commonjs/utils/flight.utils.js +86 -0
  68. package/lib/commonjs/utils/flight.utils.js.map +1 -0
  69. package/lib/commonjs/utils/order.utils.js +24 -0
  70. package/lib/commonjs/utils/order.utils.js.map +1 -0
  71. package/lib/commonjs/utils/price.utils.js +4 -4
  72. package/lib/commonjs/utils/price.utils.js.map +1 -1
  73. package/lib/commonjs/utils/reservation.utils.js +22 -0
  74. package/lib/commonjs/utils/reservation.utils.js.map +1 -0
  75. package/lib/commonjs/utils/status-badge.utils.js +75 -0
  76. package/lib/commonjs/utils/status-badge.utils.js.map +1 -0
  77. package/lib/commonjs/utils/theme.utils.js +8 -2
  78. package/lib/commonjs/utils/theme.utils.js.map +1 -1
  79. package/lib/commonjs/utils/time.utils.js +51 -0
  80. package/lib/commonjs/utils/time.utils.js.map +1 -0
  81. package/lib/commonjs/web.js +48 -0
  82. package/lib/commonjs/web.js.map +1 -1
  83. package/lib/module/features/chat/components/common/calendar-icon.js +29 -0
  84. package/lib/module/features/chat/components/common/calendar-icon.js.map +1 -0
  85. package/lib/module/features/chat/components/common/calendar-icon.native.js +29 -0
  86. package/lib/module/features/chat/components/common/calendar-icon.native.js.map +1 -0
  87. package/lib/module/features/chat/components/common/cart-icon.js +32 -0
  88. package/lib/module/features/chat/components/common/cart-icon.js.map +1 -0
  89. package/lib/module/features/chat/components/common/chevron-icon.js +22 -0
  90. package/lib/module/features/chat/components/common/chevron-icon.js.map +1 -0
  91. package/lib/module/features/chat/components/common/chevron-icon.native.js +22 -0
  92. package/lib/module/features/chat/components/common/chevron-icon.native.js.map +1 -0
  93. package/lib/module/features/chat/components/common/plane-icon.js +19 -0
  94. package/lib/module/features/chat/components/common/plane-icon.js.map +1 -0
  95. package/lib/module/features/chat/components/common/plane-icon.native.js +19 -0
  96. package/lib/module/features/chat/components/common/plane-icon.native.js.map +1 -0
  97. package/lib/module/features/chat/components/event/event.js +5 -3
  98. package/lib/module/features/chat/components/event/event.js.map +1 -1
  99. package/lib/module/features/chat/components/event/event.native.js +5 -3
  100. package/lib/module/features/chat/components/event/event.native.js.map +1 -1
  101. package/lib/module/features/chat/components/flight/flight-card.js +126 -0
  102. package/lib/module/features/chat/components/flight/flight-card.js.map +1 -0
  103. package/lib/module/features/chat/components/flight/flight-card.native.js +128 -0
  104. package/lib/module/features/chat/components/flight/flight-card.native.js.map +1 -0
  105. package/lib/module/features/chat/components/flight/flight.js +145 -0
  106. package/lib/module/features/chat/components/flight/flight.js.map +1 -0
  107. package/lib/module/features/chat/components/flight/flight.model.js +4 -0
  108. package/lib/module/features/chat/components/flight/flight.model.js.map +1 -0
  109. package/lib/module/features/chat/components/flight/flight.native.js +147 -0
  110. package/lib/module/features/chat/components/flight/flight.native.js.map +1 -0
  111. package/lib/module/features/chat/components/flight/index.js +4 -0
  112. package/lib/module/features/chat/components/flight/index.js.map +1 -0
  113. package/lib/module/features/chat/components/flight-board/flight-board.js +150 -0
  114. package/lib/module/features/chat/components/flight-board/flight-board.js.map +1 -0
  115. package/lib/module/features/chat/components/flight-board/flight-board.model.js +4 -0
  116. package/lib/module/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  117. package/lib/module/features/chat/components/flight-board/flight-board.native.js +161 -0
  118. package/lib/module/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  119. package/lib/module/features/chat/components/flight-board/index.js +4 -0
  120. package/lib/module/features/chat/components/flight-board/index.js.map +1 -0
  121. package/lib/module/features/chat/components/info/info.js +41 -14
  122. package/lib/module/features/chat/components/info/info.js.map +1 -1
  123. package/lib/module/features/chat/components/info/info.native.js +46 -15
  124. package/lib/module/features/chat/components/info/info.native.js.map +1 -1
  125. package/lib/module/features/chat/components/order/index.js +5 -0
  126. package/lib/module/features/chat/components/order/index.js.map +1 -0
  127. package/lib/module/features/chat/components/order/order.js +167 -0
  128. package/lib/module/features/chat/components/order/order.js.map +1 -0
  129. package/lib/module/features/chat/components/order/order.model.js +11 -0
  130. package/lib/module/features/chat/components/order/order.model.js.map +1 -0
  131. package/lib/module/features/chat/components/order/order.native.js +188 -0
  132. package/lib/module/features/chat/components/order/order.native.js.map +1 -0
  133. package/lib/module/features/chat/components/reservation/index.js +5 -0
  134. package/lib/module/features/chat/components/reservation/index.js.map +1 -0
  135. package/lib/module/features/chat/components/reservation/reservation.js +160 -0
  136. package/lib/module/features/chat/components/reservation/reservation.js.map +1 -0
  137. package/lib/module/features/chat/components/reservation/reservation.model.js +9 -0
  138. package/lib/module/features/chat/components/reservation/reservation.model.js.map +1 -0
  139. package/lib/module/features/chat/components/reservation/reservation.native.js +176 -0
  140. package/lib/module/features/chat/components/reservation/reservation.native.js.map +1 -0
  141. package/lib/module/features/chat/model/chat.model.js +16 -0
  142. package/lib/module/features/chat/model/chat.model.js.map +1 -1
  143. package/lib/module/features/chat/renderer/renderer.js +26 -0
  144. package/lib/module/features/chat/renderer/renderer.js.map +1 -1
  145. package/lib/module/features/chat/renderer/renderer.native.js +26 -0
  146. package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
  147. package/lib/module/native.js +7 -1
  148. package/lib/module/native.js.map +1 -1
  149. package/lib/module/utils/flight.utils.js +82 -0
  150. package/lib/module/utils/flight.utils.js.map +1 -0
  151. package/lib/module/utils/order.utils.js +20 -0
  152. package/lib/module/utils/order.utils.js.map +1 -0
  153. package/lib/module/utils/price.utils.js +4 -4
  154. package/lib/module/utils/price.utils.js.map +1 -1
  155. package/lib/module/utils/reservation.utils.js +18 -0
  156. package/lib/module/utils/reservation.utils.js.map +1 -0
  157. package/lib/module/utils/status-badge.utils.js +70 -0
  158. package/lib/module/utils/status-badge.utils.js.map +1 -0
  159. package/lib/module/utils/theme.utils.js +8 -2
  160. package/lib/module/utils/theme.utils.js.map +1 -1
  161. package/lib/module/utils/time.utils.js +46 -0
  162. package/lib/module/utils/time.utils.js.map +1 -0
  163. package/lib/module/web.js +7 -1
  164. package/lib/module/web.js.map +1 -1
  165. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts +6 -0
  166. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  168. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts +6 -0
  170. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts +6 -0
  172. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  174. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts +6 -0
  176. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts +6 -0
  178. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/features/chat/components/event/event.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts +3 -1
  181. package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/features/chat/components/event/event.native.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts +12 -0
  184. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts +12 -0
  186. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts +4 -0
  188. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts +19 -0
  190. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts +4 -0
  192. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts +3 -0
  194. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts +4 -0
  196. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  198. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  200. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts +3 -0
  202. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +1 -1
  204. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +3 -0
  206. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +1 -1
  208. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts +4 -0
  210. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts +4 -0
  212. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts +30 -0
  214. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts +4 -0
  216. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts +4 -0
  218. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts +4 -0
  220. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts +27 -0
  222. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts +4 -0
  224. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +17 -2
  226. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -1
  228. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -1
  230. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/native.d.ts +11 -1
  232. package/lib/typescript/commonjs/native.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/utils/flight.utils.d.ts +10 -0
  234. package/lib/typescript/commonjs/utils/flight.utils.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/utils/order.utils.d.ts +7 -0
  236. package/lib/typescript/commonjs/utils/order.utils.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/utils/reservation.utils.d.ts +7 -0
  238. package/lib/typescript/commonjs/utils/reservation.utils.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts +15 -0
  240. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/utils/theme.utils.d.ts +3 -0
  242. package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/utils/time.utils.d.ts +3 -0
  244. package/lib/typescript/commonjs/utils/time.utils.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/web.d.ts +11 -1
  246. package/lib/typescript/commonjs/web.d.ts.map +1 -1
  247. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts +6 -0
  248. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  249. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  250. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  251. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts +6 -0
  252. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts.map +1 -0
  253. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts +6 -0
  254. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  255. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  256. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  257. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts +6 -0
  258. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts.map +1 -0
  259. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts +6 -0
  260. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  261. package/lib/typescript/module/features/chat/components/event/event.d.ts.map +1 -1
  262. package/lib/typescript/module/features/chat/components/event/event.model.d.ts +3 -1
  263. package/lib/typescript/module/features/chat/components/event/event.model.d.ts.map +1 -1
  264. package/lib/typescript/module/features/chat/components/event/event.native.d.ts.map +1 -1
  265. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts +12 -0
  266. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts.map +1 -0
  267. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts +12 -0
  268. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  269. package/lib/typescript/module/features/chat/components/flight/flight.d.ts +4 -0
  270. package/lib/typescript/module/features/chat/components/flight/flight.d.ts.map +1 -0
  271. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts +19 -0
  272. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts.map +1 -0
  273. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts +4 -0
  274. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts.map +1 -0
  275. package/lib/typescript/module/features/chat/components/flight/index.d.ts +3 -0
  276. package/lib/typescript/module/features/chat/components/flight/index.d.ts.map +1 -0
  277. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts +4 -0
  278. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  279. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  280. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  281. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  282. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  283. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts +3 -0
  284. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts.map +1 -0
  285. package/lib/typescript/module/features/chat/components/info/info.d.ts +1 -1
  286. package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -1
  287. package/lib/typescript/module/features/chat/components/info/info.model.d.ts +3 -0
  288. package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -1
  289. package/lib/typescript/module/features/chat/components/info/info.native.d.ts +1 -1
  290. package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -1
  291. package/lib/typescript/module/features/chat/components/order/index.d.ts +4 -0
  292. package/lib/typescript/module/features/chat/components/order/index.d.ts.map +1 -0
  293. package/lib/typescript/module/features/chat/components/order/order.d.ts +4 -0
  294. package/lib/typescript/module/features/chat/components/order/order.d.ts.map +1 -0
  295. package/lib/typescript/module/features/chat/components/order/order.model.d.ts +30 -0
  296. package/lib/typescript/module/features/chat/components/order/order.model.d.ts.map +1 -0
  297. package/lib/typescript/module/features/chat/components/order/order.native.d.ts +4 -0
  298. package/lib/typescript/module/features/chat/components/order/order.native.d.ts.map +1 -0
  299. package/lib/typescript/module/features/chat/components/reservation/index.d.ts +4 -0
  300. package/lib/typescript/module/features/chat/components/reservation/index.d.ts.map +1 -0
  301. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts +4 -0
  302. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts.map +1 -0
  303. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts +27 -0
  304. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  305. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts +4 -0
  306. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  307. package/lib/typescript/module/features/chat/model/chat.model.d.ts +17 -2
  308. package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
  309. package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -1
  310. package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
  311. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -1
  312. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
  313. package/lib/typescript/module/native.d.ts +11 -1
  314. package/lib/typescript/module/native.d.ts.map +1 -1
  315. package/lib/typescript/module/utils/flight.utils.d.ts +10 -0
  316. package/lib/typescript/module/utils/flight.utils.d.ts.map +1 -0
  317. package/lib/typescript/module/utils/order.utils.d.ts +7 -0
  318. package/lib/typescript/module/utils/order.utils.d.ts.map +1 -0
  319. package/lib/typescript/module/utils/reservation.utils.d.ts +7 -0
  320. package/lib/typescript/module/utils/reservation.utils.d.ts.map +1 -0
  321. package/lib/typescript/module/utils/status-badge.utils.d.ts +15 -0
  322. package/lib/typescript/module/utils/status-badge.utils.d.ts.map +1 -0
  323. package/lib/typescript/module/utils/theme.utils.d.ts +3 -0
  324. package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
  325. package/lib/typescript/module/utils/time.utils.d.ts +3 -0
  326. package/lib/typescript/module/utils/time.utils.d.ts.map +1 -0
  327. package/lib/typescript/module/web.d.ts +11 -1
  328. package/lib/typescript/module/web.d.ts.map +1 -1
  329. package/package.json +1 -1
  330. package/src/features/chat/components/common/calendar-icon.native.tsx +13 -0
  331. package/src/features/chat/components/common/calendar-icon.tsx +13 -0
  332. package/src/features/chat/components/common/cart-icon.tsx +20 -0
  333. package/src/features/chat/components/common/chevron-icon.native.tsx +18 -0
  334. package/src/features/chat/components/common/chevron-icon.tsx +18 -0
  335. package/src/features/chat/components/common/plane-icon.native.tsx +15 -0
  336. package/src/features/chat/components/common/plane-icon.tsx +15 -0
  337. package/src/features/chat/components/event/event.model.ts +3 -1
  338. package/src/features/chat/components/event/event.native.tsx +6 -2
  339. package/src/features/chat/components/event/event.tsx +6 -2
  340. package/src/features/chat/components/flight/flight-card.native.tsx +100 -0
  341. package/src/features/chat/components/flight/flight-card.tsx +100 -0
  342. package/src/features/chat/components/flight/flight.model.ts +20 -0
  343. package/src/features/chat/components/flight/flight.native.tsx +131 -0
  344. package/src/features/chat/components/flight/flight.tsx +131 -0
  345. package/src/features/chat/components/flight/index.ts +2 -0
  346. package/src/features/chat/components/flight-board/flight-board.model.ts +23 -0
  347. package/src/features/chat/components/flight-board/flight-board.native.tsx +155 -0
  348. package/src/features/chat/components/flight-board/flight-board.tsx +160 -0
  349. package/src/features/chat/components/flight-board/index.ts +2 -0
  350. package/src/features/chat/components/info/info.model.ts +3 -0
  351. package/src/features/chat/components/info/info.native.tsx +47 -11
  352. package/src/features/chat/components/info/info.tsx +43 -10
  353. package/src/features/chat/components/order/index.ts +3 -0
  354. package/src/features/chat/components/order/order.model.ts +32 -0
  355. package/src/features/chat/components/order/order.native.tsx +175 -0
  356. package/src/features/chat/components/order/order.tsx +176 -0
  357. package/src/features/chat/components/reservation/index.ts +3 -0
  358. package/src/features/chat/components/reservation/reservation.model.ts +29 -0
  359. package/src/features/chat/components/reservation/reservation.native.tsx +159 -0
  360. package/src/features/chat/components/reservation/reservation.tsx +161 -0
  361. package/src/features/chat/model/chat.model.ts +16 -0
  362. package/src/features/chat/renderer/renderer.native.tsx +29 -1
  363. package/src/features/chat/renderer/renderer.tsx +29 -1
  364. package/src/native.ts +11 -1
  365. package/src/utils/flight.utils.ts +35 -0
  366. package/src/utils/order.utils.ts +28 -0
  367. package/src/utils/price.utils.ts +4 -4
  368. package/src/utils/reservation.utils.ts +23 -0
  369. package/src/utils/status-badge.utils.ts +36 -0
  370. package/src/utils/theme.utils.ts +9 -0
  371. package/src/utils/time.utils.ts +58 -0
  372. package/src/web.ts +11 -1
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FlightCard = FlightCard;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _themeUtils = require("../../../../utils/theme.utils.js");
10
+ var _flightUtils = require("../../../../utils/flight.utils.js");
11
+ var _i18nUtils = require("../../../../utils/i18n.utils.js");
12
+ var _collapsibleNative = require("../common/collapsible.native.js");
13
+ var _planeIconNative = require("../common/plane-icon.native.js");
14
+ var _chevronIconNative = require("../common/chevron-icon.native.js");
15
+ var _chatModel = require("../../model/chat.model.js");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ function FlightCard({
18
+ item,
19
+ theme,
20
+ language,
21
+ accent,
22
+ defaultExpanded,
23
+ onSelect
24
+ }) {
25
+ const c = (0, _themeUtils.getThemeClasses)(theme);
26
+ const [expanded, setExpanded] = (0, _react.useState)(defaultExpanded);
27
+ const s = (0, _flightUtils.getFlightStatusStyle)(item.status ?? _chatModel.FlightStatus.OnTime, theme);
28
+ const statusLabel = item.statusLabel ? (0, _i18nUtils.resolveText)(item.statusLabel, language) : s.label;
29
+ const airline = (0, _i18nUtils.resolveText)(item.airline, language);
30
+ const fromCity = (0, _i18nUtils.resolveText)(item.from.city, language);
31
+ const toCity = (0, _i18nUtils.resolveText)(item.to.city, language);
32
+ const subline = item.date ? `${(0, _i18nUtils.resolveText)(item.date, language)}${item.terminal ? ` · ${(0, _i18nUtils.resolveText)(item.terminal, language)}` : ''}` : '';
33
+ const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
34
+ const iconBg = accent ? c.iconBg : c.mutedIconBg;
35
+ const iconColor = accent ? c.iconColor : c.mutedIconColor;
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
37
+ className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
38
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
39
+ className: "flex-row items-center gap-3",
40
+ onPress: () => {
41
+ setExpanded(v => !v);
42
+ onSelect?.(item);
43
+ },
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
45
+ className: `h-11 w-11 items-center justify-center rounded-xl ${iconBg}`,
46
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
47
+ size: 20,
48
+ color: iconColor
49
+ })
50
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
51
+ className: "flex-1 gap-0.5",
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
53
+ className: `text-base font-bold down-sm:text-sm ${c.title}`,
54
+ numberOfLines: 2,
55
+ children: [airline, " \xB7 ", item.flightNumber]
56
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
57
+ className: `text-xs ${c.subtitle}`,
58
+ numberOfLines: 1,
59
+ children: expanded ? subline || compact : compact
60
+ })]
61
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
62
+ className: `flex-row items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`,
63
+ children: [s.showDot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
64
+ className: `h-1.5 w-1.5 rounded-full ${s.dot}`
65
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
66
+ className: `text-xs font-semibold ${s.badgeText}`,
67
+ children: statusLabel
68
+ })]
69
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
70
+ className: expanded ? 'rotate-180' : undefined,
71
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIconNative.ChevronIcon, {
72
+ size: 18,
73
+ color: c.mutedIconColor
74
+ })
75
+ })]
76
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsibleNative.Collapsible, {
77
+ expanded: expanded,
78
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
79
+ className: "mt-4 flex-row items-center",
80
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
81
+ className: "items-start",
82
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
83
+ className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
84
+ children: item.from.code
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
86
+ className: `text-base font-semibold ${c.title}`,
87
+ children: item.from.time
88
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
89
+ className: `text-xs ${c.subtitle}`,
90
+ children: fromCity
91
+ })]
92
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
93
+ className: "flex-1 items-center px-3",
94
+ children: [item.duration ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
95
+ className: `mb-1 text-xs ${c.subtitle}`,
96
+ children: item.duration
97
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
98
+ className: "w-full flex-row items-center",
99
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
100
+ className: `h-2 w-2 rounded-full ${s.dot}`
101
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
102
+ className: `flex-1 border-t border-dashed ${c.dashLine}`
103
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
104
+ className: "rotate-90",
105
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
106
+ size: 16,
107
+ color: c.iconColor
108
+ })
109
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
110
+ className: `flex-1 border-t border-dashed ${c.dashLine}`
111
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
112
+ className: `h-2 w-2 rounded-full ${s.dot}`
113
+ })]
114
+ })]
115
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
116
+ className: "items-end",
117
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
118
+ className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
119
+ children: item.to.code
120
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
121
+ className: `text-base font-semibold ${c.title}`,
122
+ children: item.to.time
123
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
124
+ className: `text-xs ${c.subtitle}`,
125
+ children: toCity
126
+ })]
127
+ })]
128
+ })
129
+ })]
130
+ });
131
+ }
132
+ //# sourceMappingURL=flight-card.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_themeUtils","_flightUtils","_i18nUtils","_collapsibleNative","_planeIconNative","_chevronIconNative","_chatModel","_jsxRuntime","FlightCard","item","theme","language","accent","defaultExpanded","onSelect","c","getThemeClasses","expanded","setExpanded","useState","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","resolveText","label","airline","fromCity","from","city","toCity","to","subline","date","terminal","compact","code","time","iconBg","mutedIconBg","iconColor","mutedIconColor","jsxs","View","className","surface","border","children","Pressable","onPress","v","jsx","PlaneIcon","size","color","Text","title","numberOfLines","flightNumber","subtitle","badgeBg","showDot","dot","badgeText","undefined","ChevronIcon","Collapsible","duration","dashLine"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight-card.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAA6D,IAAAS,WAAA,GAAAT,OAAA;AAYtD,SAASU,UAAUA,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC,QAAQ;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 +1,149 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Flight = Flight;
7
+ var _react = require("react");
8
+ var _themeUtils = require("../../../../utils/theme.utils.js");
9
+ var _flightUtils = require("../../../../utils/flight.utils.js");
10
+ var _i18nUtils = require("../../../../utils/i18n.utils.js");
11
+ var _collapsible = require("../common/collapsible");
12
+ var _planeIcon = require("../common/plane-icon");
13
+ var _chevronIcon = require("../common/chevron-icon");
14
+ var _chatModel = require("../../model/chat.model.js");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function FlightCard({
17
+ item,
18
+ theme,
19
+ language,
20
+ accent,
21
+ defaultExpanded,
22
+ onSelect
23
+ }) {
24
+ const c = (0, _themeUtils.getThemeClasses)(theme);
25
+ const [expanded, setExpanded] = (0, _react.useState)(defaultExpanded);
26
+ const s = (0, _flightUtils.getFlightStatusStyle)(item.status ?? _chatModel.FlightStatus.OnTime, theme);
27
+ const statusLabel = item.statusLabel ? (0, _i18nUtils.resolveText)(item.statusLabel, language) : s.label;
28
+ const airline = (0, _i18nUtils.resolveText)(item.airline, language);
29
+ const fromCity = (0, _i18nUtils.resolveText)(item.from.city, language);
30
+ const toCity = (0, _i18nUtils.resolveText)(item.to.city, language);
31
+ const subline = item.date ? `${(0, _i18nUtils.resolveText)(item.date, language)}${item.terminal ? ` · ${(0, _i18nUtils.resolveText)(item.terminal, language)}` : ''}` : '';
32
+ const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
33
+ const iconBg = accent ? c.iconBg : c.mutedIconBg;
34
+ const iconColor = accent ? c.iconColor : c.mutedIconColor;
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
36
+ className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
37
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
38
+ type: "button",
39
+ className: "flex w-full items-center gap-3 text-left",
40
+ onClick: () => {
41
+ setExpanded(v => !v);
42
+ onSelect?.(item);
43
+ },
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
45
+ className: `flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${iconBg}`,
46
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIcon.PlaneIcon, {
47
+ size: 20,
48
+ color: iconColor
49
+ })
50
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
51
+ className: "flex min-w-0 flex-1 flex-col gap-0.5",
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
53
+ className: `text-base font-bold down-sm:text-sm ${c.title}`,
54
+ children: [airline, " \xB7 ", item.flightNumber]
55
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
56
+ className: `truncate text-xs ${c.subtitle}`,
57
+ children: expanded ? subline || compact : compact
58
+ })]
59
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
60
+ className: `flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`,
61
+ children: [s.showDot ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
62
+ className: `h-1.5 w-1.5 rounded-full ${s.dot}`
63
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
64
+ className: `text-xs font-semibold ${s.badgeText}`,
65
+ children: statusLabel
66
+ })]
67
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
68
+ className: `shrink-0 transition-transform ${expanded ? 'rotate-180' : ''}`,
69
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIcon.ChevronIcon, {
70
+ size: 18,
71
+ color: c.mutedIconColor
72
+ })
73
+ })]
74
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsible.Collapsible, {
75
+ expanded: expanded,
76
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
77
+ className: "mt-4 flex items-center",
78
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
79
+ className: "flex flex-col items-start",
80
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
81
+ className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
82
+ children: item.from.code
83
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
84
+ className: `text-base font-semibold ${c.title}`,
85
+ children: item.from.time
86
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
87
+ className: `text-xs ${c.subtitle}`,
88
+ children: fromCity
89
+ })]
90
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
91
+ className: "flex flex-1 flex-col items-center px-3",
92
+ children: [item.duration ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
93
+ className: `mb-1 text-xs ${c.subtitle}`,
94
+ children: item.duration
95
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
96
+ className: "flex w-full items-center",
97
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
98
+ className: `h-2 w-2 shrink-0 rounded-full ${s.dot}`
99
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
100
+ className: `flex-1 border-t border-dashed ${c.dashLine}`
101
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
102
+ className: "rotate-90",
103
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIcon.PlaneIcon, {
104
+ size: 16,
105
+ color: c.iconColor
106
+ })
107
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
108
+ className: `flex-1 border-t border-dashed ${c.dashLine}`
109
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
110
+ className: `h-2 w-2 shrink-0 rounded-full ${s.dot}`
111
+ })]
112
+ })]
113
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
114
+ className: "flex flex-col items-end",
115
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
116
+ className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
117
+ children: item.to.code
118
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
119
+ className: `text-base font-semibold ${c.title}`,
120
+ children: item.to.time
121
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
122
+ className: `text-xs ${c.subtitle}`,
123
+ children: toCity
124
+ })]
125
+ })]
126
+ })
127
+ })]
128
+ });
129
+ }
130
+ function Flight({
131
+ data,
132
+ theme = _chatModel.Theme.Dark,
133
+ language,
134
+ onSelect
135
+ }) {
136
+ const items = Array.isArray(data) ? data : [data];
137
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
138
+ className: "flex flex-col gap-3",
139
+ children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(FlightCard, {
140
+ item: item,
141
+ theme: theme,
142
+ language: language,
143
+ accent: index === 0,
144
+ defaultExpanded: index === 0,
145
+ onSelect: onSelect
146
+ }, item.id))
147
+ });
148
+ }
149
+ //# sourceMappingURL=flight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_themeUtils","_flightUtils","_i18nUtils","_collapsible","_planeIcon","_chevronIcon","_chatModel","_jsxRuntime","FlightCard","item","theme","language","accent","defaultExpanded","onSelect","c","getThemeClasses","expanded","setExpanded","useState","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","resolveText","label","airline","fromCity","from","city","toCity","to","subline","date","terminal","compact","code","time","iconBg","mutedIconBg","iconColor","mutedIconColor","jsxs","className","surface","border","children","type","onClick","v","jsx","PlaneIcon","size","color","title","flightNumber","subtitle","badgeBg","showDot","dot","badgeText","ChevronIcon","Collapsible","duration","dashLine","Flight","data","Theme","Dark","items","Array","isArray","map","index","id"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ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E;MAC7B7D,QAAQ,EAAEA;IAAS,GANdL,IAAI,CAACmE,EAOX,CACF;EAAC,CACC,CAAC;AAEV","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=flight.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight.model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Flight = Flight;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _themeUtils = require("../../../../utils/theme.utils.js");
10
+ var _flightUtils = require("../../../../utils/flight.utils.js");
11
+ var _i18nUtils = require("../../../../utils/i18n.utils.js");
12
+ var _collapsibleNative = require("../common/collapsible.native.js");
13
+ var _planeIconNative = require("../common/plane-icon.native.js");
14
+ var _chevronIconNative = require("../common/chevron-icon.native.js");
15
+ var _chatModel = require("../../model/chat.model.js");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ function FlightCard({
18
+ item,
19
+ theme,
20
+ language,
21
+ accent,
22
+ defaultExpanded,
23
+ onSelect
24
+ }) {
25
+ const c = (0, _themeUtils.getThemeClasses)(theme);
26
+ const [expanded, setExpanded] = (0, _react.useState)(defaultExpanded);
27
+ const s = (0, _flightUtils.getFlightStatusStyle)(item.status ?? _chatModel.FlightStatus.OnTime, theme);
28
+ const statusLabel = item.statusLabel ? (0, _i18nUtils.resolveText)(item.statusLabel, language) : s.label;
29
+ const airline = (0, _i18nUtils.resolveText)(item.airline, language);
30
+ const fromCity = (0, _i18nUtils.resolveText)(item.from.city, language);
31
+ const toCity = (0, _i18nUtils.resolveText)(item.to.city, language);
32
+ const subline = item.date ? `${(0, _i18nUtils.resolveText)(item.date, language)}${item.terminal ? ` · ${(0, _i18nUtils.resolveText)(item.terminal, language)}` : ''}` : '';
33
+ const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
34
+ const iconBg = accent ? c.iconBg : c.mutedIconBg;
35
+ const iconColor = accent ? c.iconColor : c.mutedIconColor;
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
37
+ className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
38
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
39
+ className: "flex-row items-center gap-3",
40
+ onPress: () => {
41
+ setExpanded(v => !v);
42
+ onSelect?.(item);
43
+ },
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
45
+ className: `h-11 w-11 items-center justify-center rounded-xl ${iconBg}`,
46
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
47
+ size: 20,
48
+ color: iconColor
49
+ })
50
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
51
+ className: "flex-1 gap-0.5",
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
53
+ className: `text-base font-bold down-sm:text-sm ${c.title}`,
54
+ numberOfLines: 2,
55
+ children: [airline, " \xB7 ", item.flightNumber]
56
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
57
+ className: `text-xs ${c.subtitle}`,
58
+ numberOfLines: 1,
59
+ children: expanded ? subline || compact : compact
60
+ })]
61
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
62
+ className: `flex-row items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`,
63
+ children: [s.showDot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
64
+ className: `h-1.5 w-1.5 rounded-full ${s.dot}`
65
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
66
+ className: `text-xs font-semibold ${s.badgeText}`,
67
+ children: statusLabel
68
+ })]
69
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
70
+ className: expanded ? 'rotate-180' : undefined,
71
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIconNative.ChevronIcon, {
72
+ size: 18,
73
+ color: c.mutedIconColor
74
+ })
75
+ })]
76
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsibleNative.Collapsible, {
77
+ expanded: expanded,
78
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
79
+ className: "mt-4 flex-row items-center",
80
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
81
+ className: "items-start",
82
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
83
+ className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
84
+ children: item.from.code
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
86
+ className: `text-base font-semibold ${c.title}`,
87
+ children: item.from.time
88
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
89
+ className: `text-xs ${c.subtitle}`,
90
+ children: fromCity
91
+ })]
92
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
93
+ className: "flex-1 items-center px-3",
94
+ children: [item.duration ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
95
+ className: `mb-1 text-xs ${c.subtitle}`,
96
+ children: item.duration
97
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
98
+ className: "w-full flex-row items-center",
99
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
100
+ className: `h-2 w-2 rounded-full ${s.dot}`
101
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
102
+ className: `flex-1 border-t border-dashed ${c.dashLine}`
103
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
104
+ className: "rotate-90",
105
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
106
+ size: 16,
107
+ color: c.iconColor
108
+ })
109
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
110
+ className: `flex-1 border-t border-dashed ${c.dashLine}`
111
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
112
+ className: `h-2 w-2 rounded-full ${s.dot}`
113
+ })]
114
+ })]
115
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
116
+ className: "items-end",
117
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
118
+ className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
119
+ children: item.to.code
120
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
121
+ className: `text-base font-semibold ${c.title}`,
122
+ children: item.to.time
123
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
124
+ className: `text-xs ${c.subtitle}`,
125
+ children: toCity
126
+ })]
127
+ })]
128
+ })
129
+ })]
130
+ });
131
+ }
132
+ function Flight({
133
+ data,
134
+ theme = _chatModel.Theme.Dark,
135
+ language,
136
+ onSelect
137
+ }) {
138
+ const items = Array.isArray(data) ? data : [data];
139
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
140
+ className: "gap-3",
141
+ children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(FlightCard, {
142
+ item: item,
143
+ theme: theme,
144
+ language: language,
145
+ accent: index === 0,
146
+ defaultExpanded: index === 0,
147
+ onSelect: onSelect
148
+ }, item.id))
149
+ });
150
+ }
151
+ //# sourceMappingURL=flight.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_themeUtils","_flightUtils","_i18nUtils","_collapsibleNative","_planeIconNative","_chevronIconNative","_chatModel","_jsxRuntime","FlightCard","item","theme","language","accent","defaultExpanded","onSelect","c","getThemeClasses","expanded","setExpanded","useState","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","resolveText","label","airline","fromCity","from","city","toCity","to","subline","date","terminal","compact","code","time","iconBg","mutedIconBg","iconColor","mutedIconColor","jsxs","View","className","surface","border","children","Pressable","onPress","v","jsx","PlaneIcon","size","color","Text","title","numberOfLines","flightNumber","subtitle","badgeBg","showDot","dot","badgeText","undefined","ChevronIcon","Collapsible","duration","dashLine","Flight","data","Theme","Dark","items","Array","isArray","map","index","id"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAA6D,IAAAS,WAAA,GAAAT,OAAA;AAI7D,SAASU,UAAUA,CAAC;EAClBC,IAAI;EACJC,KAAK;EACLC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC;AAQF,CAAC,EAAE;EACD,MAAMC,CAAC,GAAG,IAAAC,2BAAe,EAACN,KAAK,CAAC;EAChC,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAACN,eAAe,CAAC;EAEzD,MAAMO,CAAC,GAAG,IAAAC,iCAAoB,EAACZ,IAAI,CAACa,MAAM,IAAIC,uBAAY,CAACC,MAAM,EAAEd,KAAK,CAAC;EACzE,MAAMe,WAAW,GAAGhB,IAAI,CAACgB,WAAW,GAAG,IAAAC,sBAAW,EAACjB,IAAI,CAACgB,WAAW,EAAEd,QAAQ,CAAC,GAAGS,CAAC,CAACO,KAA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K;MACXC,KAAK,EAAEA,KAAM;MACbC,QAAQ,EAAEA,QAAS;MACnBC,MAAM,EAAEmE,KAAK,KAAK,CAAE;MACpBlE,eAAe,EAAEkE,KAAK,KAAK,CAAE;MAC7BjE,QAAQ,EAAEA;IAAS,GANdL,IAAI,CAACuE,EAOX,CACF;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Flight", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _flight.Flight;
10
+ }
11
+ });
12
+ var _flight = require("./flight");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_flight","require"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}