@inorain_development/hotel-smarters-chat-ui 1.2.2 → 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 (339) 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/flight/flight-card.js +130 -0
  16. package/lib/commonjs/features/chat/components/flight/flight-card.js.map +1 -0
  17. package/lib/commonjs/features/chat/components/flight/flight-card.native.js +132 -0
  18. package/lib/commonjs/features/chat/components/flight/flight-card.native.js.map +1 -0
  19. package/lib/commonjs/features/chat/components/flight/flight.js +149 -0
  20. package/lib/commonjs/features/chat/components/flight/flight.js.map +1 -0
  21. package/lib/commonjs/features/chat/components/flight/flight.model.js +6 -0
  22. package/lib/commonjs/features/chat/components/flight/flight.model.js.map +1 -0
  23. package/lib/commonjs/features/chat/components/flight/flight.native.js +151 -0
  24. package/lib/commonjs/features/chat/components/flight/flight.native.js.map +1 -0
  25. package/lib/commonjs/features/chat/components/flight/index.js +13 -0
  26. package/lib/commonjs/features/chat/components/flight/index.js.map +1 -0
  27. package/lib/commonjs/features/chat/components/flight-board/flight-board.js +154 -0
  28. package/lib/commonjs/features/chat/components/flight-board/flight-board.js.map +1 -0
  29. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js +6 -0
  30. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  31. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js +165 -0
  32. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  33. package/lib/commonjs/features/chat/components/flight-board/index.js +13 -0
  34. package/lib/commonjs/features/chat/components/flight-board/index.js.map +1 -0
  35. package/lib/commonjs/features/chat/components/info/info.js +41 -14
  36. package/lib/commonjs/features/chat/components/info/info.js.map +1 -1
  37. package/lib/commonjs/features/chat/components/info/info.native.js +45 -14
  38. package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -1
  39. package/lib/commonjs/features/chat/components/order/index.js +20 -0
  40. package/lib/commonjs/features/chat/components/order/index.js.map +1 -0
  41. package/lib/commonjs/features/chat/components/order/order.js +171 -0
  42. package/lib/commonjs/features/chat/components/order/order.js.map +1 -0
  43. package/lib/commonjs/features/chat/components/order/order.model.js +15 -0
  44. package/lib/commonjs/features/chat/components/order/order.model.js.map +1 -0
  45. package/lib/commonjs/features/chat/components/order/order.native.js +192 -0
  46. package/lib/commonjs/features/chat/components/order/order.native.js.map +1 -0
  47. package/lib/commonjs/features/chat/components/reservation/index.js +20 -0
  48. package/lib/commonjs/features/chat/components/reservation/index.js.map +1 -0
  49. package/lib/commonjs/features/chat/components/reservation/reservation.js +164 -0
  50. package/lib/commonjs/features/chat/components/reservation/reservation.js.map +1 -0
  51. package/lib/commonjs/features/chat/components/reservation/reservation.model.js +13 -0
  52. package/lib/commonjs/features/chat/components/reservation/reservation.model.js.map +1 -0
  53. package/lib/commonjs/features/chat/components/reservation/reservation.native.js +180 -0
  54. package/lib/commonjs/features/chat/components/reservation/reservation.native.js.map +1 -0
  55. package/lib/commonjs/features/chat/model/chat.model.js +17 -1
  56. package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
  57. package/lib/commonjs/features/chat/renderer/renderer.js +26 -0
  58. package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
  59. package/lib/commonjs/features/chat/renderer/renderer.native.js +26 -0
  60. package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
  61. package/lib/commonjs/native.js +48 -0
  62. package/lib/commonjs/native.js.map +1 -1
  63. package/lib/commonjs/utils/flight.utils.js +86 -0
  64. package/lib/commonjs/utils/flight.utils.js.map +1 -0
  65. package/lib/commonjs/utils/order.utils.js +24 -0
  66. package/lib/commonjs/utils/order.utils.js.map +1 -0
  67. package/lib/commonjs/utils/reservation.utils.js +22 -0
  68. package/lib/commonjs/utils/reservation.utils.js.map +1 -0
  69. package/lib/commonjs/utils/status-badge.utils.js +75 -0
  70. package/lib/commonjs/utils/status-badge.utils.js.map +1 -0
  71. package/lib/commonjs/utils/theme.utils.js +8 -2
  72. package/lib/commonjs/utils/theme.utils.js.map +1 -1
  73. package/lib/commonjs/web.js +48 -0
  74. package/lib/commonjs/web.js.map +1 -1
  75. package/lib/module/features/chat/components/common/calendar-icon.js +29 -0
  76. package/lib/module/features/chat/components/common/calendar-icon.js.map +1 -0
  77. package/lib/module/features/chat/components/common/calendar-icon.native.js +29 -0
  78. package/lib/module/features/chat/components/common/calendar-icon.native.js.map +1 -0
  79. package/lib/module/features/chat/components/common/cart-icon.js +32 -0
  80. package/lib/module/features/chat/components/common/cart-icon.js.map +1 -0
  81. package/lib/module/features/chat/components/common/chevron-icon.js +22 -0
  82. package/lib/module/features/chat/components/common/chevron-icon.js.map +1 -0
  83. package/lib/module/features/chat/components/common/chevron-icon.native.js +22 -0
  84. package/lib/module/features/chat/components/common/chevron-icon.native.js.map +1 -0
  85. package/lib/module/features/chat/components/common/plane-icon.js +19 -0
  86. package/lib/module/features/chat/components/common/plane-icon.js.map +1 -0
  87. package/lib/module/features/chat/components/common/plane-icon.native.js +19 -0
  88. package/lib/module/features/chat/components/common/plane-icon.native.js.map +1 -0
  89. package/lib/module/features/chat/components/flight/flight-card.js +126 -0
  90. package/lib/module/features/chat/components/flight/flight-card.js.map +1 -0
  91. package/lib/module/features/chat/components/flight/flight-card.native.js +128 -0
  92. package/lib/module/features/chat/components/flight/flight-card.native.js.map +1 -0
  93. package/lib/module/features/chat/components/flight/flight.js +145 -0
  94. package/lib/module/features/chat/components/flight/flight.js.map +1 -0
  95. package/lib/module/features/chat/components/flight/flight.model.js +4 -0
  96. package/lib/module/features/chat/components/flight/flight.model.js.map +1 -0
  97. package/lib/module/features/chat/components/flight/flight.native.js +147 -0
  98. package/lib/module/features/chat/components/flight/flight.native.js.map +1 -0
  99. package/lib/module/features/chat/components/flight/index.js +4 -0
  100. package/lib/module/features/chat/components/flight/index.js.map +1 -0
  101. package/lib/module/features/chat/components/flight-board/flight-board.js +150 -0
  102. package/lib/module/features/chat/components/flight-board/flight-board.js.map +1 -0
  103. package/lib/module/features/chat/components/flight-board/flight-board.model.js +4 -0
  104. package/lib/module/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  105. package/lib/module/features/chat/components/flight-board/flight-board.native.js +161 -0
  106. package/lib/module/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  107. package/lib/module/features/chat/components/flight-board/index.js +4 -0
  108. package/lib/module/features/chat/components/flight-board/index.js.map +1 -0
  109. package/lib/module/features/chat/components/info/info.js +41 -14
  110. package/lib/module/features/chat/components/info/info.js.map +1 -1
  111. package/lib/module/features/chat/components/info/info.native.js +46 -15
  112. package/lib/module/features/chat/components/info/info.native.js.map +1 -1
  113. package/lib/module/features/chat/components/order/index.js +5 -0
  114. package/lib/module/features/chat/components/order/index.js.map +1 -0
  115. package/lib/module/features/chat/components/order/order.js +167 -0
  116. package/lib/module/features/chat/components/order/order.js.map +1 -0
  117. package/lib/module/features/chat/components/order/order.model.js +11 -0
  118. package/lib/module/features/chat/components/order/order.model.js.map +1 -0
  119. package/lib/module/features/chat/components/order/order.native.js +188 -0
  120. package/lib/module/features/chat/components/order/order.native.js.map +1 -0
  121. package/lib/module/features/chat/components/reservation/index.js +5 -0
  122. package/lib/module/features/chat/components/reservation/index.js.map +1 -0
  123. package/lib/module/features/chat/components/reservation/reservation.js +160 -0
  124. package/lib/module/features/chat/components/reservation/reservation.js.map +1 -0
  125. package/lib/module/features/chat/components/reservation/reservation.model.js +9 -0
  126. package/lib/module/features/chat/components/reservation/reservation.model.js.map +1 -0
  127. package/lib/module/features/chat/components/reservation/reservation.native.js +176 -0
  128. package/lib/module/features/chat/components/reservation/reservation.native.js.map +1 -0
  129. package/lib/module/features/chat/model/chat.model.js +16 -0
  130. package/lib/module/features/chat/model/chat.model.js.map +1 -1
  131. package/lib/module/features/chat/renderer/renderer.js +26 -0
  132. package/lib/module/features/chat/renderer/renderer.js.map +1 -1
  133. package/lib/module/features/chat/renderer/renderer.native.js +26 -0
  134. package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
  135. package/lib/module/native.js +7 -1
  136. package/lib/module/native.js.map +1 -1
  137. package/lib/module/utils/flight.utils.js +82 -0
  138. package/lib/module/utils/flight.utils.js.map +1 -0
  139. package/lib/module/utils/order.utils.js +20 -0
  140. package/lib/module/utils/order.utils.js.map +1 -0
  141. package/lib/module/utils/reservation.utils.js +18 -0
  142. package/lib/module/utils/reservation.utils.js.map +1 -0
  143. package/lib/module/utils/status-badge.utils.js +70 -0
  144. package/lib/module/utils/status-badge.utils.js.map +1 -0
  145. package/lib/module/utils/theme.utils.js +8 -2
  146. package/lib/module/utils/theme.utils.js.map +1 -1
  147. package/lib/module/web.js +7 -1
  148. package/lib/module/web.js.map +1 -1
  149. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts +6 -0
  150. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  152. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts +6 -0
  154. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts +6 -0
  156. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  158. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts +6 -0
  160. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts +6 -0
  162. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts +12 -0
  164. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts +12 -0
  166. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts +4 -0
  168. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts +19 -0
  170. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts +4 -0
  172. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts +3 -0
  174. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts +4 -0
  176. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  178. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  180. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts +3 -0
  182. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +1 -1
  184. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +3 -0
  186. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +1 -1
  188. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts +4 -0
  190. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts +4 -0
  192. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts +30 -0
  194. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts +4 -0
  196. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts +4 -0
  198. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts +4 -0
  200. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts +27 -0
  202. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts +4 -0
  204. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +17 -2
  206. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -1
  208. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -1
  210. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/native.d.ts +11 -1
  212. package/lib/typescript/commonjs/native.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/utils/flight.utils.d.ts +10 -0
  214. package/lib/typescript/commonjs/utils/flight.utils.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/utils/order.utils.d.ts +7 -0
  216. package/lib/typescript/commonjs/utils/order.utils.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/utils/reservation.utils.d.ts +7 -0
  218. package/lib/typescript/commonjs/utils/reservation.utils.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts +15 -0
  220. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/utils/theme.utils.d.ts +3 -0
  222. package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/web.d.ts +11 -1
  224. package/lib/typescript/commonjs/web.d.ts.map +1 -1
  225. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts +6 -0
  226. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  227. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  228. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  229. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts +6 -0
  230. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts.map +1 -0
  231. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts +6 -0
  232. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  233. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  234. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  235. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts +6 -0
  236. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts.map +1 -0
  237. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts +6 -0
  238. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  239. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts +12 -0
  240. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts.map +1 -0
  241. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts +12 -0
  242. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  243. package/lib/typescript/module/features/chat/components/flight/flight.d.ts +4 -0
  244. package/lib/typescript/module/features/chat/components/flight/flight.d.ts.map +1 -0
  245. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts +19 -0
  246. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts.map +1 -0
  247. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts +4 -0
  248. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts.map +1 -0
  249. package/lib/typescript/module/features/chat/components/flight/index.d.ts +3 -0
  250. package/lib/typescript/module/features/chat/components/flight/index.d.ts.map +1 -0
  251. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts +4 -0
  252. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  253. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  254. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  255. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  256. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  257. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts +3 -0
  258. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts.map +1 -0
  259. package/lib/typescript/module/features/chat/components/info/info.d.ts +1 -1
  260. package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -1
  261. package/lib/typescript/module/features/chat/components/info/info.model.d.ts +3 -0
  262. package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -1
  263. package/lib/typescript/module/features/chat/components/info/info.native.d.ts +1 -1
  264. package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -1
  265. package/lib/typescript/module/features/chat/components/order/index.d.ts +4 -0
  266. package/lib/typescript/module/features/chat/components/order/index.d.ts.map +1 -0
  267. package/lib/typescript/module/features/chat/components/order/order.d.ts +4 -0
  268. package/lib/typescript/module/features/chat/components/order/order.d.ts.map +1 -0
  269. package/lib/typescript/module/features/chat/components/order/order.model.d.ts +30 -0
  270. package/lib/typescript/module/features/chat/components/order/order.model.d.ts.map +1 -0
  271. package/lib/typescript/module/features/chat/components/order/order.native.d.ts +4 -0
  272. package/lib/typescript/module/features/chat/components/order/order.native.d.ts.map +1 -0
  273. package/lib/typescript/module/features/chat/components/reservation/index.d.ts +4 -0
  274. package/lib/typescript/module/features/chat/components/reservation/index.d.ts.map +1 -0
  275. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts +4 -0
  276. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts.map +1 -0
  277. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts +27 -0
  278. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  279. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts +4 -0
  280. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  281. package/lib/typescript/module/features/chat/model/chat.model.d.ts +17 -2
  282. package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
  283. package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -1
  284. package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
  285. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -1
  286. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
  287. package/lib/typescript/module/native.d.ts +11 -1
  288. package/lib/typescript/module/native.d.ts.map +1 -1
  289. package/lib/typescript/module/utils/flight.utils.d.ts +10 -0
  290. package/lib/typescript/module/utils/flight.utils.d.ts.map +1 -0
  291. package/lib/typescript/module/utils/order.utils.d.ts +7 -0
  292. package/lib/typescript/module/utils/order.utils.d.ts.map +1 -0
  293. package/lib/typescript/module/utils/reservation.utils.d.ts +7 -0
  294. package/lib/typescript/module/utils/reservation.utils.d.ts.map +1 -0
  295. package/lib/typescript/module/utils/status-badge.utils.d.ts +15 -0
  296. package/lib/typescript/module/utils/status-badge.utils.d.ts.map +1 -0
  297. package/lib/typescript/module/utils/theme.utils.d.ts +3 -0
  298. package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
  299. package/lib/typescript/module/web.d.ts +11 -1
  300. package/lib/typescript/module/web.d.ts.map +1 -1
  301. package/package.json +1 -1
  302. package/src/features/chat/components/common/calendar-icon.native.tsx +13 -0
  303. package/src/features/chat/components/common/calendar-icon.tsx +13 -0
  304. package/src/features/chat/components/common/cart-icon.tsx +20 -0
  305. package/src/features/chat/components/common/chevron-icon.native.tsx +18 -0
  306. package/src/features/chat/components/common/chevron-icon.tsx +18 -0
  307. package/src/features/chat/components/common/plane-icon.native.tsx +15 -0
  308. package/src/features/chat/components/common/plane-icon.tsx +15 -0
  309. package/src/features/chat/components/flight/flight-card.native.tsx +100 -0
  310. package/src/features/chat/components/flight/flight-card.tsx +100 -0
  311. package/src/features/chat/components/flight/flight.model.ts +20 -0
  312. package/src/features/chat/components/flight/flight.native.tsx +131 -0
  313. package/src/features/chat/components/flight/flight.tsx +131 -0
  314. package/src/features/chat/components/flight/index.ts +2 -0
  315. package/src/features/chat/components/flight-board/flight-board.model.ts +23 -0
  316. package/src/features/chat/components/flight-board/flight-board.native.tsx +155 -0
  317. package/src/features/chat/components/flight-board/flight-board.tsx +160 -0
  318. package/src/features/chat/components/flight-board/index.ts +2 -0
  319. package/src/features/chat/components/info/info.model.ts +3 -0
  320. package/src/features/chat/components/info/info.native.tsx +47 -11
  321. package/src/features/chat/components/info/info.tsx +43 -10
  322. package/src/features/chat/components/order/index.ts +3 -0
  323. package/src/features/chat/components/order/order.model.ts +32 -0
  324. package/src/features/chat/components/order/order.native.tsx +175 -0
  325. package/src/features/chat/components/order/order.tsx +176 -0
  326. package/src/features/chat/components/reservation/index.ts +3 -0
  327. package/src/features/chat/components/reservation/reservation.model.ts +29 -0
  328. package/src/features/chat/components/reservation/reservation.native.tsx +159 -0
  329. package/src/features/chat/components/reservation/reservation.tsx +161 -0
  330. package/src/features/chat/model/chat.model.ts +16 -0
  331. package/src/features/chat/renderer/renderer.native.tsx +29 -1
  332. package/src/features/chat/renderer/renderer.tsx +29 -1
  333. package/src/native.ts +11 -1
  334. package/src/utils/flight.utils.ts +35 -0
  335. package/src/utils/order.utils.ts +28 -0
  336. package/src/utils/reservation.utils.ts +23 -0
  337. package/src/utils/status-badge.utils.ts +36 -0
  338. package/src/utils/theme.utils.ts +9 -0
  339. package/src/web.ts +11 -1
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+
3
+ import { Fragment } from 'react';
4
+ import { getThemeClasses } from "../../../../utils/theme.utils.js";
5
+ import { getReservationStatusStyle } from "../../../../utils/reservation.utils.js";
6
+ import { resolveText } from "../../../../utils/i18n.utils.js";
7
+ import { useExpandableList } from "../../../../utils/use-expandable-list.js";
8
+ import { Collapsible } from '../common/collapsible';
9
+ import { CalendarIcon } from '../common/calendar-icon';
10
+ import { ChevronIcon } from '../common/chevron-icon';
11
+ import { ItemAction, Theme } from "../../model/chat.model.js";
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ export function Reservation({
14
+ data,
15
+ theme = Theme.Dark,
16
+ language,
17
+ actionLabel,
18
+ onAction,
19
+ onSelect
20
+ }) {
21
+ const c = getThemeClasses(theme);
22
+ const list = Array.isArray(data) ? data[0] : data;
23
+ const reservations = list?.reservations ?? [];
24
+ const {
25
+ head,
26
+ rest,
27
+ expanded,
28
+ hasMore,
29
+ toggle
30
+ } = useExpandableList(reservations);
31
+ if (!list) return null;
32
+ const onSelectRow = onSelect;
33
+ const title = resolveText(list.title, language);
34
+ const subtitle = list.subtitle ? resolveText(list.subtitle, language) : undefined;
35
+ const totalLabel = list.totalLabel ? resolveText(list.totalLabel, language) : undefined;
36
+ const action = list.actionLabel ? resolveText(list.actionLabel, language) : typeof actionLabel === 'function' ? actionLabel(list) : actionLabel;
37
+ const headerStyle = getReservationStatusStyle(list.status, theme);
38
+ const headerStatusLabel = list.statusLabel ? resolveText(list.statusLabel, language) : headerStyle.label;
39
+ const renderRow = row => {
40
+ const s = getReservationStatusStyle(row.status, theme);
41
+ const statusLabel = row.statusLabel ? resolveText(row.statusLabel, language) : s.label;
42
+ const name = resolveText(row.name, language);
43
+ return /*#__PURE__*/_jsxs("button", {
44
+ type: "button",
45
+ className: "flex w-full items-center gap-3 py-2.5 text-left",
46
+ onClick: () => onSelectRow?.(row),
47
+ children: [/*#__PURE__*/_jsx("div", {
48
+ className: `flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${c.mutedIconBg}`,
49
+ children: /*#__PURE__*/_jsx(CalendarIcon, {
50
+ size: 18,
51
+ color: c.mutedIconColor
52
+ })
53
+ }), /*#__PURE__*/_jsxs("div", {
54
+ className: "flex min-w-0 flex-1 flex-col gap-1",
55
+ children: [/*#__PURE__*/_jsxs("div", {
56
+ className: "flex items-center justify-between gap-2",
57
+ children: [/*#__PURE__*/_jsx("span", {
58
+ className: `truncate text-sm font-semibold ${c.title}`,
59
+ children: name
60
+ }), /*#__PURE__*/_jsx("span", {
61
+ className: `shrink-0 text-sm font-bold ${c.price}`,
62
+ children: row.price
63
+ })]
64
+ }), /*#__PURE__*/_jsxs("div", {
65
+ className: "flex items-center justify-between gap-2",
66
+ children: [/*#__PURE__*/_jsxs("span", {
67
+ className: `truncate text-xs ${c.subtitle}`,
68
+ children: [row.date, " \xB7 ", row.time, row.duration ? ` · ${row.duration}` : '']
69
+ }), /*#__PURE__*/_jsx("span", {
70
+ className: `shrink-0 rounded-full px-2 py-0.5 text-[11px] font-semibold ${s.badgeBg} ${s.badgeText}`,
71
+ children: statusLabel
72
+ })]
73
+ })]
74
+ })]
75
+ });
76
+ };
77
+ return /*#__PURE__*/_jsxs("div", {
78
+ className: `rounded-2xl border p-3.5 ${c.surface} ${c.border}`,
79
+ children: [/*#__PURE__*/_jsxs("div", {
80
+ className: "flex items-center gap-3",
81
+ children: [/*#__PURE__*/_jsx("div", {
82
+ className: `flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${c.iconBg}`,
83
+ children: /*#__PURE__*/_jsx(CalendarIcon, {
84
+ size: 20,
85
+ color: c.iconColor
86
+ })
87
+ }), /*#__PURE__*/_jsxs("div", {
88
+ className: "flex min-w-0 flex-1 flex-col",
89
+ children: [/*#__PURE__*/_jsx("span", {
90
+ className: `truncate text-base font-bold ${c.title}`,
91
+ children: title
92
+ }), subtitle ? /*#__PURE__*/_jsx("span", {
93
+ className: `truncate text-xs ${c.subtitle}`,
94
+ children: subtitle
95
+ }) : null]
96
+ }), /*#__PURE__*/_jsx("span", {
97
+ className: `shrink-0 rounded-full px-2.5 py-1 text-xs font-semibold ${headerStyle.badgeBg} ${headerStyle.badgeText}`,
98
+ children: headerStatusLabel
99
+ })]
100
+ }), /*#__PURE__*/_jsx("div", {
101
+ className: `my-3 h-px ${c.divider}`
102
+ }), head.map((row, index) => /*#__PURE__*/_jsxs(Fragment, {
103
+ children: [index > 0 ? /*#__PURE__*/_jsx("div", {
104
+ className: `h-px ${c.divider}`
105
+ }) : null, renderRow(row)]
106
+ }, row.id)), hasMore ? /*#__PURE__*/_jsx(Collapsible, {
107
+ expanded: expanded,
108
+ children: rest.map(row => /*#__PURE__*/_jsxs(Fragment, {
109
+ children: [/*#__PURE__*/_jsx("div", {
110
+ className: `h-px ${c.divider}`
111
+ }), renderRow(row)]
112
+ }, row.id))
113
+ }) : null, hasMore ? /*#__PURE__*/_jsxs("button", {
114
+ type: "button",
115
+ onClick: toggle,
116
+ className: `mt-1 flex w-full items-center justify-between gap-2 rounded-xl py-2`,
117
+ children: [/*#__PURE__*/_jsxs("div", {
118
+ className: "flex items-center gap-2",
119
+ children: [/*#__PURE__*/_jsxs("span", {
120
+ className: `flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold ${c.iconBg} ${c.iconText}`,
121
+ children: ["+", rest.length]
122
+ }), /*#__PURE__*/_jsx("span", {
123
+ className: `text-sm ${c.subtitle}`,
124
+ children: expanded ? `Showing all ${reservations.length} requests` : `Showing ${head.length} of ${reservations.length} requests`
125
+ })]
126
+ }), /*#__PURE__*/_jsxs("span", {
127
+ className: `flex shrink-0 items-center gap-1 text-sm font-semibold ${c.iconText}`,
128
+ children: [expanded ? 'Show less' : 'View all', /*#__PURE__*/_jsx("span", {
129
+ className: `transition-transform ${expanded ? 'rotate-180' : ''}`,
130
+ children: /*#__PURE__*/_jsx(ChevronIcon, {
131
+ size: 14,
132
+ color: "currentColor"
133
+ })
134
+ })]
135
+ })]
136
+ }) : null, list.total || action ? /*#__PURE__*/_jsxs(_Fragment, {
137
+ children: [/*#__PURE__*/_jsx("div", {
138
+ className: `my-3 h-px ${c.divider}`
139
+ }), /*#__PURE__*/_jsxs("div", {
140
+ className: "flex items-center justify-between gap-3",
141
+ children: [/*#__PURE__*/_jsxs("div", {
142
+ className: "flex flex-col",
143
+ children: [totalLabel ? /*#__PURE__*/_jsx("span", {
144
+ className: `text-xs ${c.subtitle}`,
145
+ children: totalLabel
146
+ }) : null, list.total ? /*#__PURE__*/_jsx("span", {
147
+ className: `text-lg font-bold ${c.title}`,
148
+ children: list.total
149
+ }) : null]
150
+ }), action ? /*#__PURE__*/_jsx("button", {
151
+ type: "button",
152
+ onClick: () => onAction?.(list, ItemAction.Manage),
153
+ className: "rounded-xl bg-indigo-500 px-4 py-2 text-sm font-semibold text-white",
154
+ children: action
155
+ }) : null]
156
+ })]
157
+ }) : null]
158
+ });
159
+ }
160
+ //# sourceMappingURL=reservation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Fragment","getThemeClasses","getReservationStatusStyle","resolveText","useExpandableList","Collapsible","CalendarIcon","ChevronIcon","ItemAction","Theme","jsx","_jsx","jsxs","_jsxs","_Fragment","Reservation","data","theme","Dark","language","actionLabel","onAction","onSelect","c","list","Array","isArray","reservations","head","rest","expanded","hasMore","toggle","onSelectRow","title","subtitle","undefined","totalLabel","action","headerStyle","status","headerStatusLabel","statusLabel","label","renderRow","row","s","name","type","className","onClick","children","mutedIconBg","size","color","mutedIconColor","price","date","time","duration","badgeBg","badgeText","surface","border","iconBg","iconColor","divider","map","index","id","iconText","length","total","Manage"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/reservation/reservation.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,eAAe,QAAQ,kCAA+B;AAC/D,SAASC,yBAAyB,QAAQ,wCAAqC;AAC/E,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,iBAAiB,QAAQ,0CAAuC;AACzE,SAASC,WAAW,QAAQ,uBAAuB;AACnD,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,U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ACEqC,IAAI,EAAC,QAAQ;UACbE,OAAO,EAAEA,CAAA,KAAM7B,QAAQ,GAAGG,IAAI,EAAEhB,UAAU,CAACiE,MAAM,CAAE;UACnDxB,SAAS,EAAC,qEAAqE;UAAAE,QAAA,EAE9Eb;QAAM,CACD,CAAC,GACP,IAAI;MAAA,CACL,CAAC;IAAA,CACN,CAAC,GACD,IAAI;EAAA,CACL,CAAC;AAEV","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export let ReservationStatus = /*#__PURE__*/function (ReservationStatus) {
4
+ ReservationStatus["Pending"] = "pending";
5
+ ReservationStatus["Confirmed"] = "confirmed";
6
+ ReservationStatus["Cancelled"] = "cancelled";
7
+ return ReservationStatus;
8
+ }({});
9
+ //# sourceMappingURL=reservation.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ReservationStatus"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/reservation/reservation.model.ts"],"mappings":";;AAEA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+
3
+ import { Fragment } from 'react';
4
+ import { Pressable, Text, View } from 'react-native';
5
+ import { getThemeClasses } from "../../../../utils/theme.utils.js";
6
+ import { getReservationStatusStyle } from "../../../../utils/reservation.utils.js";
7
+ import { resolveText } from "../../../../utils/i18n.utils.js";
8
+ import { useExpandableList } from "../../../../utils/use-expandable-list.js";
9
+ import { Collapsible } from "../common/collapsible.native.js";
10
+ import { CalendarIcon } from "../common/calendar-icon.native.js";
11
+ import { ChevronIcon } from "../common/chevron-icon.native.js";
12
+ import { ItemAction, Theme } from "../../model/chat.model.js";
13
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
+ export function Reservation({
15
+ data,
16
+ theme = Theme.Dark,
17
+ language,
18
+ actionLabel,
19
+ onAction,
20
+ onSelect
21
+ }) {
22
+ const c = getThemeClasses(theme);
23
+ const list = Array.isArray(data) ? data[0] : data;
24
+ const reservations = list?.reservations ?? [];
25
+ const {
26
+ head,
27
+ rest,
28
+ expanded,
29
+ hasMore,
30
+ toggle
31
+ } = useExpandableList(reservations);
32
+ if (!list) return null;
33
+ const onSelectRow = onSelect;
34
+ const title = resolveText(list.title, language);
35
+ const subtitle = list.subtitle ? resolveText(list.subtitle, language) : undefined;
36
+ const totalLabel = list.totalLabel ? resolveText(list.totalLabel, language) : undefined;
37
+ const action = list.actionLabel ? resolveText(list.actionLabel, language) : typeof actionLabel === 'function' ? actionLabel(list) : actionLabel;
38
+ const headerStyle = getReservationStatusStyle(list.status, theme);
39
+ const headerStatusLabel = list.statusLabel ? resolveText(list.statusLabel, language) : headerStyle.label;
40
+ const renderRow = row => {
41
+ const s = getReservationStatusStyle(row.status, theme);
42
+ const statusLabel = row.statusLabel ? resolveText(row.statusLabel, language) : s.label;
43
+ const name = resolveText(row.name, language);
44
+ return /*#__PURE__*/_jsxs(Pressable, {
45
+ className: "flex-row items-center gap-3 py-2.5",
46
+ onPress: () => onSelectRow?.(row),
47
+ children: [/*#__PURE__*/_jsx(View, {
48
+ className: `h-11 w-11 items-center justify-center rounded-xl ${c.mutedIconBg}`,
49
+ children: /*#__PURE__*/_jsx(CalendarIcon, {
50
+ size: 18,
51
+ color: c.mutedIconColor
52
+ })
53
+ }), /*#__PURE__*/_jsxs(View, {
54
+ className: "flex-1 gap-1",
55
+ children: [/*#__PURE__*/_jsxs(View, {
56
+ className: "flex-row items-center justify-between gap-2",
57
+ children: [/*#__PURE__*/_jsx(Text, {
58
+ className: `flex-1 text-sm font-semibold ${c.title}`,
59
+ numberOfLines: 1,
60
+ children: name
61
+ }), /*#__PURE__*/_jsx(Text, {
62
+ className: `text-sm font-bold ${c.price}`,
63
+ children: row.price
64
+ })]
65
+ }), /*#__PURE__*/_jsxs(View, {
66
+ className: "flex-row items-center justify-between gap-2",
67
+ children: [/*#__PURE__*/_jsxs(Text, {
68
+ className: `flex-1 text-xs ${c.subtitle}`,
69
+ numberOfLines: 1,
70
+ children: [row.date, " \xB7 ", row.time, row.duration ? ` · ${row.duration}` : '']
71
+ }), /*#__PURE__*/_jsx(View, {
72
+ className: `rounded-full px-2 py-0.5 ${s.badgeBg}`,
73
+ children: /*#__PURE__*/_jsx(Text, {
74
+ className: `text-[11px] font-semibold ${s.badgeText}`,
75
+ children: statusLabel
76
+ })
77
+ })]
78
+ })]
79
+ })]
80
+ });
81
+ };
82
+ return /*#__PURE__*/_jsxs(View, {
83
+ className: `rounded-2xl border p-3.5 ${c.surface} ${c.border}`,
84
+ children: [/*#__PURE__*/_jsxs(View, {
85
+ className: "flex-row items-center gap-3",
86
+ children: [/*#__PURE__*/_jsx(View, {
87
+ className: `h-11 w-11 items-center justify-center rounded-xl ${c.iconBg}`,
88
+ children: /*#__PURE__*/_jsx(CalendarIcon, {
89
+ size: 20,
90
+ color: c.iconColor
91
+ })
92
+ }), /*#__PURE__*/_jsxs(View, {
93
+ className: "flex-1",
94
+ children: [/*#__PURE__*/_jsx(Text, {
95
+ className: `text-base font-bold ${c.title}`,
96
+ numberOfLines: 1,
97
+ children: title
98
+ }), subtitle ? /*#__PURE__*/_jsx(Text, {
99
+ className: `text-xs ${c.subtitle}`,
100
+ numberOfLines: 1,
101
+ children: subtitle
102
+ }) : null]
103
+ }), /*#__PURE__*/_jsx(View, {
104
+ className: `rounded-full px-2.5 py-1 ${headerStyle.badgeBg}`,
105
+ children: /*#__PURE__*/_jsx(Text, {
106
+ className: `text-xs font-semibold ${headerStyle.badgeText}`,
107
+ children: headerStatusLabel
108
+ })
109
+ })]
110
+ }), /*#__PURE__*/_jsx(View, {
111
+ className: `my-3 h-px ${c.divider}`
112
+ }), head.map((row, index) => /*#__PURE__*/_jsxs(Fragment, {
113
+ children: [index > 0 ? /*#__PURE__*/_jsx(View, {
114
+ className: `h-px ${c.divider}`
115
+ }) : null, renderRow(row)]
116
+ }, row.id)), hasMore ? /*#__PURE__*/_jsx(Collapsible, {
117
+ expanded: expanded,
118
+ children: rest.map(row => /*#__PURE__*/_jsxs(Fragment, {
119
+ children: [/*#__PURE__*/_jsx(View, {
120
+ className: `h-px ${c.divider}`
121
+ }), renderRow(row)]
122
+ }, row.id))
123
+ }) : null, hasMore ? /*#__PURE__*/_jsxs(Pressable, {
124
+ onPress: toggle,
125
+ className: "mt-1 flex-row items-center justify-between gap-2 py-2",
126
+ children: [/*#__PURE__*/_jsxs(View, {
127
+ className: "flex-row items-center gap-2",
128
+ children: [/*#__PURE__*/_jsx(View, {
129
+ className: `h-7 w-7 items-center justify-center rounded-full ${c.iconBg}`,
130
+ children: /*#__PURE__*/_jsxs(Text, {
131
+ className: `text-xs font-semibold ${c.iconText}`,
132
+ children: ["+", rest.length]
133
+ })
134
+ }), /*#__PURE__*/_jsx(Text, {
135
+ className: `text-sm ${c.subtitle}`,
136
+ children: expanded ? `Showing all ${reservations.length} requests` : `Showing ${head.length} of ${reservations.length} requests`
137
+ })]
138
+ }), /*#__PURE__*/_jsxs(View, {
139
+ className: "flex-row items-center gap-1",
140
+ children: [/*#__PURE__*/_jsx(Text, {
141
+ className: `text-sm font-semibold ${c.iconText}`,
142
+ children: expanded ? 'Show less' : 'View all'
143
+ }), /*#__PURE__*/_jsx(View, {
144
+ className: expanded ? 'rotate-180' : undefined,
145
+ children: /*#__PURE__*/_jsx(ChevronIcon, {
146
+ size: 14,
147
+ color: c.iconColor
148
+ })
149
+ })]
150
+ })]
151
+ }) : null, list.total || action ? /*#__PURE__*/_jsxs(_Fragment, {
152
+ children: [/*#__PURE__*/_jsx(View, {
153
+ className: `my-3 h-px ${c.divider}`
154
+ }), /*#__PURE__*/_jsxs(View, {
155
+ className: "flex-row items-center justify-between gap-3",
156
+ children: [/*#__PURE__*/_jsxs(View, {
157
+ children: [totalLabel ? /*#__PURE__*/_jsx(Text, {
158
+ className: `text-xs ${c.subtitle}`,
159
+ children: totalLabel
160
+ }) : null, list.total ? /*#__PURE__*/_jsx(Text, {
161
+ className: `text-lg font-bold ${c.title}`,
162
+ children: list.total
163
+ }) : null]
164
+ }), action ? /*#__PURE__*/_jsx(Pressable, {
165
+ onPress: () => onAction?.(list, ItemAction.Manage),
166
+ className: "rounded-xl bg-indigo-500 px-4 py-2",
167
+ children: /*#__PURE__*/_jsx(Text, {
168
+ className: "text-sm font-semibold text-white",
169
+ children: action
170
+ })
171
+ }) : null]
172
+ })]
173
+ }) : null]
174
+ });
175
+ }
176
+ //# sourceMappingURL=reservation.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Fragment","Pressable","Text","View","getThemeClasses","getReservationStatusStyle","resolveText","useExpandableList","Collapsible","CalendarIcon","ChevronIcon","ItemAction","Theme","jsx","_jsx","jsxs","_jsxs","_Fragment","Reservation","data","theme","Dark","language","actionLabel","onAction","onSelect","c","list","Array","isArray","reservations","head","rest","expanded","hasMore","toggle","onSelectRow","title","subtitle","undefined","totalLabel","action","headerStyle","status","headerStatusLabel","statusLabel","label","renderRow","row","s","name","className","onPress","children","mutedIconBg","size","color","mutedIconColor","numberOfLines","price","date","time","duration","badgeBg","badgeText","surface","border","iconBg","iconColor","divider","map","index","id","iconText","length","total","Manage"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/reservation/reservation.native.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACpD,SAASC,eAAe,QAAQ,kCAA+B;AAC/D,SAASC,yBAAyB,QAAQ,wCAAqC;AAC/E,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,iBAAiB,QAAQ,0CAAuC;AACzE,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,YAAY,QAAQ,mCAAgC;AAC7D,SAASC,WAAW,QAAQ,kCAA+B;AAC3D,SAASC,UAAU,EAAEC,KAAK,QAAQ,2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CAACgD,KAAK,IAAIlC,MAAM,gBACnBzB,KAAA,CAAAC,SAAA;MAAAoC,QAAA,gBACEvC,IAAA,CAACX,IAAI;QAACgD,SAAS,EAAE,aAAazB,CAAC,CAAC2C,OAAO;MAAG,CAAE,CAAC,eAC7CrD,KAAA,CAACb,IAAI;QAACgD,SAAS,EAAC,6CAA6C;QAAAE,QAAA,gBAC3DrC,KAAA,CAACb,IAAI;UAAAkD,QAAA,GACFb,UAAU,gBAAG1B,IAAA,CAACZ,IAAI;YAACiD,SAAS,EAAE,WAAWzB,CAAC,CAACY,QAAQ,EAAG;YAAAe,QAAA,EAAEb;UAAU,CAAO,CAAC,GAAG,IAAI,EACjFb,IAAI,CAACgD,KAAK,gBAAG7D,IAAA,CAACZ,IAAI;YAACiD,SAAS,EAAE,qBAAqBzB,CAAC,CAACW,KAAK,EAAG;YAAAgB,QAAA,EAAE1B,IAAI,CAACgD;UAAK,CAAO,CAAC,GAAG,IAAI;QAAA,CACrF,CAAC,EAENlC,MAAM,gBACL3B,IAAA,CAACb,SAAS;UACRmD,OAAO,EAAEA,CAAA,KAAM5B,QAAQ,GAAGG,IAAI,EAAEhB,UAAU,CAACiE,MAAM,CAAE;UACnDzB,SAAS,EAAC,oCAAoC;UAAAE,QAAA,eAE9CvC,IAAA,CAACZ,IAAI;YAACiD,SAAS,EAAC,kCAAkC;YAAAE,QAAA,EAAEZ;UAAM,CAAO;QAAC,CACzD,CAAC,GACV,IAAI;MAAA,CACJ,CAAC;IAAA,CACP,CAAC,GACD,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
@@ -13,10 +13,26 @@ export let ComponentType = /*#__PURE__*/function (ComponentType) {
13
13
  ComponentType["Event"] = "event";
14
14
  ComponentType["EventList"] = "eventList";
15
15
  ComponentType["Info"] = "info";
16
+ ComponentType["Flight"] = "flight";
17
+ ComponentType["FlightList"] = "flightList";
18
+ ComponentType["FlightBoard"] = "flightBoard";
19
+ ComponentType["Order"] = "order";
20
+ ComponentType["Reservation"] = "reservation";
21
+ ComponentType["ReservationList"] = "reservationList";
16
22
  return ComponentType;
17
23
  }({});
18
24
  export let ItemAction = /*#__PURE__*/function (ItemAction) {
19
25
  ItemAction["Add"] = "add";
26
+ ItemAction["Manage"] = "manage";
27
+ ItemAction["Track"] = "track";
20
28
  return ItemAction;
21
29
  }({});
30
+ export let FlightStatus = /*#__PURE__*/function (FlightStatus) {
31
+ FlightStatus["OnTime"] = "onTime";
32
+ FlightStatus["Delayed"] = "delayed";
33
+ FlightStatus["Boarding"] = "boarding";
34
+ FlightStatus["Landed"] = "landed";
35
+ FlightStatus["Cancelled"] = "cancelled";
36
+ return FlightStatus;
37
+ }({});
22
38
  //# sourceMappingURL=chat.model.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Theme","ComponentType","ItemAction"],"sourceRoot":"../../../../../src","sources":["features/chat/model/chat.model.ts"],"mappings":";;AAAA,WAAYA,KAAK,0BAALA,KAAK;EAALA,KAAK;EAALA,KAAK;EAAA,OAALA,KAAK;AAAA;AAQjB,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAUzB,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["Theme","ComponentType","ItemAction","FlightStatus"],"sourceRoot":"../../../../../src","sources":["features/chat/model/chat.model.ts"],"mappings":";;AAAA,WAAYA,KAAK,0BAALA,KAAK;EAALA,KAAK;EAALA,KAAK;EAAA,OAALA,KAAK;AAAA;AAQjB,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAgBzB,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAMtB,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
@@ -4,6 +4,10 @@ import { Product } from '../components/product/product';
4
4
  import { Service } from '../components/service/service';
5
5
  import { Event } from '../components/event/event';
6
6
  import { Info } from '../components/info/info';
7
+ import { Flight } from '../components/flight/flight';
8
+ import { FlightBoard } from '../components/flight-board/flight-board';
9
+ import { Order } from '../components/order/order';
10
+ import { Reservation } from '../components/reservation/reservation';
7
11
  import { ComponentType } from "../model/chat.model.js";
8
12
  import { jsx as _jsx } from "react/jsx-runtime";
9
13
  export function ChatComponentRenderer({
@@ -34,6 +38,28 @@ export function ChatComponentRenderer({
34
38
  type: type,
35
39
  ...rest
36
40
  });
41
+ case ComponentType.Flight:
42
+ case ComponentType.FlightList:
43
+ return /*#__PURE__*/_jsx(Flight, {
44
+ type: type,
45
+ ...rest
46
+ });
47
+ case ComponentType.FlightBoard:
48
+ return /*#__PURE__*/_jsx(FlightBoard, {
49
+ type: type,
50
+ ...rest
51
+ });
52
+ case ComponentType.Order:
53
+ return /*#__PURE__*/_jsx(Order, {
54
+ type: type,
55
+ ...rest
56
+ });
57
+ case ComponentType.Reservation:
58
+ case ComponentType.ReservationList:
59
+ return /*#__PURE__*/_jsx(Reservation, {
60
+ type: type,
61
+ ...rest
62
+ });
37
63
  default:
38
64
  return null;
39
65
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Product","Service","Event","Info","ComponentType","jsx","_jsx","ChatComponentRenderer","type","rest","ProductList","ServiceList","EventList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,+BAA+B;AACvD,SAASC,OAAO,QAAQ,+BAA+B;AACvD,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,IAAI,QAAQ,yBAAyB;AAK9C,SAASC,aAAa,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpD,OAAO,SAASC,qBAAqBA,CAEnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKJ,aAAa,CAACJ,OAAO;IAC1B,KAAKI,aAAa,CAACM,WAAW;MAC5B,oBAAOJ,IAAA,CAACN,OAAO;QAACQ,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKL,aAAa,CAACH,OAAO;IAC1B,KAAKG,aAAa,CAACO,WAAW;MAC5B,oBAAOL,IAAA,CAACL,OAAO;QAACO,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKL,aAAa,CAACF,KAAK;IACxB,KAAKE,aAAa,CAACQ,SAAS;MAC1B,oBAAON,IAAA,CAACJ,KAAK;QAACM,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKL,aAAa,CAACD,IAAI;MACrB,oBAAOG,IAAA,CAACH,IAAI;QAACK,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
1
+ {"version":3,"names":["Product","Service","Event","Info","Flight","FlightBoard","Order","Reservation","ComponentType","jsx","_jsx","ChatComponentRenderer","type","rest","ProductList","ServiceList","EventList","FlightList","ReservationList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,+BAA+B;AACvD,SAASC,OAAO,QAAQ,+BAA+B;AACvD,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,IAAI,QAA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AA,CAACJ,KAAK;QAACM,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAkE,CAAC;IACxG,KAAKL,aAAa,CAACD,WAAW;IAC9B,KAAKC,aAAa,CAACU,eAAe;MAChC,oBACER,IAAA,CAACH,WAAW;QAACK,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAwE,CAAC;IAE/G;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
@@ -4,6 +4,10 @@ import { Product } from "../components/product/product.native.js";
4
4
  import { Service } from "../components/service/service.native.js";
5
5
  import { Event } from "../components/event/event.native.js";
6
6
  import { Info } from "../components/info/info.native.js";
7
+ import { Flight } from "../components/flight/flight.native.js";
8
+ import { FlightBoard } from "../components/flight-board/flight-board.native.js";
9
+ import { Order } from "../components/order/order.native.js";
10
+ import { Reservation } from "../components/reservation/reservation.native.js";
7
11
  import { ComponentType } from "../model/chat.model.js";
8
12
  import { jsx as _jsx } from "react/jsx-runtime";
9
13
  export function ChatComponentRenderer({
@@ -34,6 +38,28 @@ export function ChatComponentRenderer({
34
38
  type: type,
35
39
  ...rest
36
40
  });
41
+ case ComponentType.Flight:
42
+ case ComponentType.FlightList:
43
+ return /*#__PURE__*/_jsx(Flight, {
44
+ type: type,
45
+ ...rest
46
+ });
47
+ case ComponentType.FlightBoard:
48
+ return /*#__PURE__*/_jsx(FlightBoard, {
49
+ type: type,
50
+ ...rest
51
+ });
52
+ case ComponentType.Order:
53
+ return /*#__PURE__*/_jsx(Order, {
54
+ type: type,
55
+ ...rest
56
+ });
57
+ case ComponentType.Reservation:
58
+ case ComponentType.ReservationList:
59
+ return /*#__PURE__*/_jsx(Reservation, {
60
+ type: type,
61
+ ...rest
62
+ });
37
63
  default:
38
64
  return null;
39
65
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Product","Service","Event","Info","ComponentType","jsx","_jsx","ChatComponentRenderer","type","rest","ProductList","ServiceList","EventList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.native.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yCAAsC;AAC9D,SAASC,OAAO,QAAQ,yCAAsC;AAC9D,SAASC,KAAK,QAAQ,qCAAkC;AACxD,SAASC,IAAI,QAAQ,mCAAgC;AAKrD,SAASC,aAAa,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpD,OAAO,SAASC,qBAAqBA,CAEnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKJ,aAAa,CAACJ,OAAO;IAC1B,KAAKI,aAAa,CAACM,WAAW;MAC5B,oBAAOJ,IAAA,CAACN,OAAO;QAACQ,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKL,aAAa,CAACH,OAAO;IAC1B,KAAKG,aAAa,CAACO,WAAW;MAC5B,oBAAOL,IAAA,CAACL,OAAO;QAACO,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKL,aAAa,CAACF,KAAK;IACxB,KAAKE,aAAa,CAACQ,SAAS;MAC1B,oBAAON,IAAA,CAACJ,KAAK;QAACM,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKL,aAAa,CAACD,IAAI;MACrB,oBAAOG,IAAA,CAACH,IAAI;QAACK,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
1
+ {"version":3,"names":["Product","Service","Event","Info","Flight","FlightBoard","Order","Reservation","ComponentType","jsx","_jsx","ChatComponentRenderer","type","rest","ProductList","ServiceList","EventList","FlightList","ReservationList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.native.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yCAAsC;AAC9D,SAASC,OAAO,QAAQ,yCAAsC;AAC9D,SAASC,KAAK,QAAQ,q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a,CAACF,KAAK;MACtB,oBAAOI,IAAA,CAACJ,KAAK;QAACM,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAkE,CAAC;IACxG,KAAKL,aAAa,CAACD,WAAW;IAC9B,KAAKC,aAAa,CAACU,eAAe;MAChC,oBACER,IAAA,CAACH,WAAW;QAACK,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAwE,CAAC;IAE/G;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
@@ -4,8 +4,14 @@ export { Product } from "./features/chat/components/product/product.native.js";
4
4
  export { Service } from "./features/chat/components/service/service.native.js";
5
5
  export { Event } from "./features/chat/components/event/event.native.js";
6
6
  export { Info } from "./features/chat/components/info/info.native.js";
7
+ export { Flight } from "./features/chat/components/flight/flight.native.js";
8
+ export { FlightBoard } from "./features/chat/components/flight-board/flight-board.native.js";
9
+ export { Order } from "./features/chat/components/order/order.native.js";
10
+ export { Reservation } from "./features/chat/components/reservation/reservation.native.js";
7
11
  export { ChatComponentRenderer } from "./features/chat/renderer/renderer.native.js";
8
12
  export { ChatMessageRenderer } from "./features/chat/message/message.native.js";
9
13
  export { parseMessage } from "./features/chat/message/message.logic.js";
10
- export { ComponentType, ItemAction, Theme } from "./features/chat/model/chat.model.js";
14
+ export { ComponentType, ItemAction, Theme, FlightStatus } from "./features/chat/model/chat.model.js";
15
+ export { OrderStatus } from "./features/chat/components/order/order.model.js";
16
+ export { ReservationStatus } from "./features/chat/components/reservation/reservation.model.js";
11
17
  //# sourceMappingURL=native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Product","Service","Event","Info","ChatComponentRenderer","ChatMessageRenderer","parseMessage","ComponentType","ItemAction","Theme"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,KAAK,QAAQ,kDAA+C;AACrE,SAASC,IAAI,QAAQ,gDAA6C;AAClE,SAASC,qBAAqB,QAAQ,6CAA0C;AAChF,SAASC,mBAAmB,QAAQ,2CAAwC;AAC5E,SAASC,YAAY,QAAQ,0CAAuC;AACpE,SAASC,aAAa,EAAEC,UAAU,EAAEC,KAAK,QAAQ,qCAAkC","ignoreList":[]}
1
+ {"version":3,"names":["Product","Service","Event","Info","Flight","FlightBoard","Order","Reservation","ChatComponentRenderer","ChatMessageRenderer","parseMessage","ComponentType","ItemAction","Theme","FlightStatus","OrderStatus","ReservationStatus"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,KAAK,QAAQ,kDAA+C;AACrE,SAASC,IAAI,QAAQ,gDAA6C;AAClE,SAASC,MAAM,QAAQ,oDAAiD;AACxE,SAASC,WAAW,QAAQ,gEAA6D;AACzF,SAASC,KAAK,QAAQ,kDAA+C;AACrE,SAASC,WAAW,QAAQ,8DAA2D;AACvF,SAASC,qBAAqB,QAAQ,6CAA0C;AAChF,SAASC,mBAAmB,QAAQ,2CAAwC;AAC5E,SAASC,YAAY,QAAQ,0CAAuC;AACpE,SAASC,aAAa,EAAEC,UAAU,EAAEC,KAAK,EAAEC,YAAY,QAAQ,qCAAkC;AACjG,SAASC,WAAW,QAAQ,iDAA8C;AAC1E,SAASC,iBAAiB,QAAQ,6DAA0D","ignoreList":[]}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ import { FlightStatus, Theme } from "../features/chat/model/chat.model.js";
4
+ const DARK = {
5
+ [FlightStatus.OnTime]: {
6
+ dot: 'bg-emerald-400',
7
+ badgeBg: 'bg-emerald-500/15',
8
+ badgeText: 'text-emerald-400',
9
+ showDot: true,
10
+ label: 'On time'
11
+ },
12
+ [FlightStatus.Delayed]: {
13
+ dot: 'bg-amber-400',
14
+ badgeBg: 'bg-amber-500/15',
15
+ badgeText: 'text-amber-400',
16
+ showDot: false,
17
+ label: 'Delayed'
18
+ },
19
+ [FlightStatus.Boarding]: {
20
+ dot: 'bg-indigo-300',
21
+ badgeBg: 'bg-indigo-500/25',
22
+ badgeText: 'text-indigo-300',
23
+ showDot: false,
24
+ label: 'Boarding'
25
+ },
26
+ [FlightStatus.Landed]: {
27
+ dot: 'bg-sky-400',
28
+ badgeBg: 'bg-sky-500/15',
29
+ badgeText: 'text-sky-400',
30
+ showDot: true,
31
+ label: 'Landed'
32
+ },
33
+ [FlightStatus.Cancelled]: {
34
+ dot: 'bg-red-400',
35
+ badgeBg: 'bg-red-500/15',
36
+ badgeText: 'text-red-400',
37
+ showDot: false,
38
+ label: 'Cancelled'
39
+ }
40
+ };
41
+ const LIGHT = {
42
+ [FlightStatus.OnTime]: {
43
+ dot: 'bg-emerald-500',
44
+ badgeBg: 'bg-emerald-500/15',
45
+ badgeText: 'text-emerald-600',
46
+ showDot: true,
47
+ label: 'On time'
48
+ },
49
+ [FlightStatus.Delayed]: {
50
+ dot: 'bg-amber-500',
51
+ badgeBg: 'bg-amber-500/20',
52
+ badgeText: 'text-amber-600',
53
+ showDot: false,
54
+ label: 'Delayed'
55
+ },
56
+ [FlightStatus.Boarding]: {
57
+ dot: 'bg-indigo-500',
58
+ badgeBg: 'bg-indigo-500/15',
59
+ badgeText: 'text-indigo-600',
60
+ showDot: false,
61
+ label: 'Boarding'
62
+ },
63
+ [FlightStatus.Landed]: {
64
+ dot: 'bg-sky-500',
65
+ badgeBg: 'bg-sky-500/15',
66
+ badgeText: 'text-sky-600',
67
+ showDot: true,
68
+ label: 'Landed'
69
+ },
70
+ [FlightStatus.Cancelled]: {
71
+ dot: 'bg-red-500',
72
+ badgeBg: 'bg-red-500/15',
73
+ badgeText: 'text-red-600',
74
+ showDot: false,
75
+ label: 'Cancelled'
76
+ }
77
+ };
78
+ export function getFlightStatusStyle(status = FlightStatus.OnTime, theme = Theme.Dark) {
79
+ const map = theme === Theme.Light ? LIGHT : DARK;
80
+ return map[status] ?? map[FlightStatus.OnTime];
81
+ }
82
+ //# sourceMappingURL=flight.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlightStatus","Theme","DARK","OnTime","dot","badgeBg","badgeText","showDot","label","Delayed","Boarding","Landed","Cancelled","LIGHT","getFlightStatusStyle","status","theme","Dark","map","Light"],"sourceRoot":"../../../src","sources":["utils/flight.utils.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,KAAK,QAAQ,sCAAmC;AAYvE,MAAMC,IAAe,GAAG;EACtB,CAACF,YAAY,CAACG,MAAM,GAAG;IAAEC,GAAG,EAAE,gBAAgB;IAAEC,OAAO,EAAE,mBAAmB;IAAEC,SAAS,EAAE,kBAAkB;IAAEC,OAAO,EAAE,IAAI;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC9I,CAACR,YAAY,CAACS,OAAO,GAAG;IAAEL,GAAG,EAAE,cAAc;IAAEC,OAAO,EAAE,iBAAiB;IAAEC,SAAS,EAAE,gBAAgB;IAAEC,OAAO,EAAE,KAAK;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC1I,CAACR,YAAY,CAACU,QAAQ,GAAG;IAAEN,GAAG,EAAE,eAAe;IAAEC,OAAO,EAAE,kBAAkB;IAAEC,SAAS,EAAE,iBAAiB;IAAEC,OAAO,EAAE,KAAK;IAAEC,KAAK,EAAE;EAAW,CAAC;EAC/I,CAACR,YAAY,CAACW,MAAM,GAAG;IAAEP,GAAG,EAAE,YAAY;IAAEC,OAAO,EAAE,eAAe;IAAEC,SAAS,EAAE,cAAc;IAAEC,OAAO,EAAE,IAAI;IAAEC,KAAK,EAAE;EAAS,CAAC;EACjI,CAACR,YAAY,CAACY,SAAS,GAAG;IAAER,GAAG,EAAE,YAAY;IAAEC,OAAO,EAAE,eAAe;IAAEC,SAAS,EAAE,cAAc;IAAEC,OAAO,EAAE,KAAK;IAAEC,KAAK,EAAE;EAAY;AACzI,CAAC;AAED,MAAMK,KAAgB,GAAG;EACvB,CAACb,YAAY,CAACG,MAAM,GAAG;IAAEC,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