@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,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ReservationStatus = void 0;
7
+ let ReservationStatus = exports.ReservationStatus = /*#__PURE__*/function (ReservationStatus) {
8
+ ReservationStatus["Pending"] = "pending";
9
+ ReservationStatus["Confirmed"] = "confirmed";
10
+ ReservationStatus["Cancelled"] = "cancelled";
11
+ return ReservationStatus;
12
+ }({});
13
+ //# sourceMappingURL=reservation.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ReservationStatus","exports"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/reservation/reservation.model.ts"],"mappings":";;;;;;IAEYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Reservation = Reservation;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _themeUtils = require("../../../../utils/theme.utils.js");
10
+ var _reservationUtils = require("../../../../utils/reservation.utils.js");
11
+ var _i18nUtils = require("../../../../utils/i18n.utils.js");
12
+ var _useExpandableList = require("../../../../utils/use-expandable-list.js");
13
+ var _collapsibleNative = require("../common/collapsible.native.js");
14
+ var _calendarIconNative = require("../common/calendar-icon.native.js");
15
+ var _chevronIconNative = require("../common/chevron-icon.native.js");
16
+ var _chatModel = require("../../model/chat.model.js");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ function Reservation({
19
+ data,
20
+ theme = _chatModel.Theme.Dark,
21
+ language,
22
+ actionLabel,
23
+ onAction,
24
+ onSelect
25
+ }) {
26
+ const c = (0, _themeUtils.getThemeClasses)(theme);
27
+ const list = Array.isArray(data) ? data[0] : data;
28
+ const reservations = list?.reservations ?? [];
29
+ const {
30
+ head,
31
+ rest,
32
+ expanded,
33
+ hasMore,
34
+ toggle
35
+ } = (0, _useExpandableList.useExpandableList)(reservations);
36
+ if (!list) return null;
37
+ const onSelectRow = onSelect;
38
+ const title = (0, _i18nUtils.resolveText)(list.title, language);
39
+ const subtitle = list.subtitle ? (0, _i18nUtils.resolveText)(list.subtitle, language) : undefined;
40
+ const totalLabel = list.totalLabel ? (0, _i18nUtils.resolveText)(list.totalLabel, language) : undefined;
41
+ const action = list.actionLabel ? (0, _i18nUtils.resolveText)(list.actionLabel, language) : typeof actionLabel === 'function' ? actionLabel(list) : actionLabel;
42
+ const headerStyle = (0, _reservationUtils.getReservationStatusStyle)(list.status, theme);
43
+ const headerStatusLabel = list.statusLabel ? (0, _i18nUtils.resolveText)(list.statusLabel, language) : headerStyle.label;
44
+ const renderRow = row => {
45
+ const s = (0, _reservationUtils.getReservationStatusStyle)(row.status, theme);
46
+ const statusLabel = row.statusLabel ? (0, _i18nUtils.resolveText)(row.statusLabel, language) : s.label;
47
+ const name = (0, _i18nUtils.resolveText)(row.name, language);
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
49
+ className: "flex-row items-center gap-3 py-2.5",
50
+ onPress: () => onSelectRow?.(row),
51
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
52
+ className: `h-11 w-11 items-center justify-center rounded-xl ${c.mutedIconBg}`,
53
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_calendarIconNative.CalendarIcon, {
54
+ size: 18,
55
+ color: c.mutedIconColor
56
+ })
57
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
58
+ className: "flex-1 gap-1",
59
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
60
+ className: "flex-row items-center justify-between gap-2",
61
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
62
+ className: `flex-1 text-sm font-semibold ${c.title}`,
63
+ numberOfLines: 1,
64
+ children: name
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
66
+ className: `text-sm font-bold ${c.price}`,
67
+ children: row.price
68
+ })]
69
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
70
+ className: "flex-row items-center justify-between gap-2",
71
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
72
+ className: `flex-1 text-xs ${c.subtitle}`,
73
+ numberOfLines: 1,
74
+ children: [row.date, " \xB7 ", row.time, row.duration ? ` · ${row.duration}` : '']
75
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
76
+ className: `rounded-full px-2 py-0.5 ${s.badgeBg}`,
77
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
78
+ className: `text-[11px] font-semibold ${s.badgeText}`,
79
+ children: statusLabel
80
+ })
81
+ })]
82
+ })]
83
+ })]
84
+ });
85
+ };
86
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
87
+ className: `rounded-2xl border p-3.5 ${c.surface} ${c.border}`,
88
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
89
+ className: "flex-row items-center gap-3",
90
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
91
+ className: `h-11 w-11 items-center justify-center rounded-xl ${c.iconBg}`,
92
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_calendarIconNative.CalendarIcon, {
93
+ size: 20,
94
+ color: c.iconColor
95
+ })
96
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
97
+ className: "flex-1",
98
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
99
+ className: `text-base font-bold ${c.title}`,
100
+ numberOfLines: 1,
101
+ children: title
102
+ }), subtitle ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
103
+ className: `text-xs ${c.subtitle}`,
104
+ numberOfLines: 1,
105
+ children: subtitle
106
+ }) : null]
107
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
108
+ className: `rounded-full px-2.5 py-1 ${headerStyle.badgeBg}`,
109
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
110
+ className: `text-xs font-semibold ${headerStyle.badgeText}`,
111
+ children: headerStatusLabel
112
+ })
113
+ })]
114
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
115
+ className: `my-3 h-px ${c.divider}`
116
+ }), head.map((row, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
117
+ children: [index > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
118
+ className: `h-px ${c.divider}`
119
+ }) : null, renderRow(row)]
120
+ }, row.id)), hasMore ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsibleNative.Collapsible, {
121
+ expanded: expanded,
122
+ children: rest.map(row => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
123
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
124
+ className: `h-px ${c.divider}`
125
+ }), renderRow(row)]
126
+ }, row.id))
127
+ }) : null, hasMore ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
128
+ onPress: toggle,
129
+ className: "mt-1 flex-row items-center justify-between gap-2 py-2",
130
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
131
+ className: "flex-row items-center gap-2",
132
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
133
+ className: `h-7 w-7 items-center justify-center rounded-full ${c.iconBg}`,
134
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
135
+ className: `text-xs font-semibold ${c.iconText}`,
136
+ children: ["+", rest.length]
137
+ })
138
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
139
+ className: `text-sm ${c.subtitle}`,
140
+ children: expanded ? `Showing all ${reservations.length} requests` : `Showing ${head.length} of ${reservations.length} requests`
141
+ })]
142
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
143
+ className: "flex-row items-center gap-1",
144
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
145
+ className: `text-sm font-semibold ${c.iconText}`,
146
+ children: expanded ? 'Show less' : 'View all'
147
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
148
+ className: expanded ? 'rotate-180' : undefined,
149
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIconNative.ChevronIcon, {
150
+ size: 14,
151
+ color: c.iconColor
152
+ })
153
+ })]
154
+ })]
155
+ }) : null, list.total || action ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
156
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
157
+ className: `my-3 h-px ${c.divider}`
158
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
159
+ className: "flex-row items-center justify-between gap-3",
160
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
161
+ children: [totalLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
162
+ className: `text-xs ${c.subtitle}`,
163
+ children: totalLabel
164
+ }) : null, list.total ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
165
+ className: `text-lg font-bold ${c.title}`,
166
+ children: list.total
167
+ }) : null]
168
+ }), action ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
169
+ onPress: () => onAction?.(list, _chatModel.ItemAction.Manage),
170
+ className: "rounded-xl bg-indigo-500 px-4 py-2",
171
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
172
+ className: "text-sm font-semibold text-white",
173
+ children: action
174
+ })
175
+ }) : null]
176
+ })]
177
+ }) : null]
178
+ });
179
+ }
180
+ //# sourceMappingURL=reservation.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_themeUtils","_reservationUtils","_i18nUtils","_useExpandableList","_collapsibleNative","_calendarIconNative","_chevronIconNative","_chatModel","_jsxRuntime","Reservation","data","theme","Theme","Dark","language","actionLabel","onAction","onSelect","c","getThemeClasses","list","Array","isArray","reservations","head","rest","expanded","hasMore","toggle","useExpandableList","onSelectRow","title","resolveText","subtitle","undefined","totalLabel","action","headerStyle","getReservationStatusStyle","status","headerStatusLabel","statusLabel","label","renderRow","row","s","name","jsxs","Pressable","className","onPress","children","jsx","View","mutedIconBg","CalendarIcon","size","color","mutedIconColor","Text","numberOfLines","price","date","time","duration","badgeBg","badgeText","surface","border","iconBg","iconColor","divider","map","index","Fragment","id","Collapsible","iconText","length","ChevronIcon","total","ItemAction","Manage"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/reservation/reservation.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAA2D,IAAAU,WAAA,GAAAV,OAAA;AAIpD,SAASW,WAAWA,CAAC;EAC1BC,IAAI;EACJC,KAAK,GAAGC,gBAAK,CAACC,IAAI;EAClBC,QAAQ;EACRC,WAAW;EACXC,QAAQ;EACRC;AACuC,CAAC,EAAE;EAC1C,MAAMC,CAAC,GAAG,IAAAC,2BAAe,EAACR,KAAK,CAAC;EAChC,MAAMS,IAAI,GAAGC,KAAK,CAACC,OAAO,CAACZ,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA,IAAI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AAC,6CAA6C;QAAAE,QAAA,gBAC3D,IAAA3C,WAAA,CAAAuC,IAAA,EAAChD,YAAA,CAAAsD,IAAI;UAAAF,QAAA,GACFhB,UAAU,gBAAG,IAAA3B,WAAA,CAAA4C,GAAA,EAACrD,YAAA,CAAA4D,IAAI;YAACV,SAAS,EAAE,WAAW/B,CAAC,CAACe,QAAQ,EAAG;YAAAkB,QAAA,EAAEhB;UAAU,CAAO,CAAC,GAAG,IAAI,EACjFf,IAAI,CAAC4D,KAAK,gBAAG,IAAAxE,WAAA,CAAA4C,GAAA,EAACrD,YAAA,CAAA4D,IAAI;YAACV,SAAS,EAAE,qBAAqB/B,CAAC,CAACa,KAAK,EAAG;YAAAoB,QAAA,EAAE/B,IAAI,CAAC4D;UAAK,CAAO,CAAC,GAAG,IAAI;QAAA,CACrF,CAAC,EAEN5C,MAAM,gBACL,IAAA5B,WAAA,CAAA4C,GAAA,EAACrD,YAAA,CAAAiD,SAAS;UACRE,OAAO,EAAEA,CAAA,KAAMlC,QAAQ,GAAGI,IAAI,EAAE6D,qBAAU,CAACC,MAAM,CAAE;UACnDjC,SAAS,EAAC,oCAAoC;UAAAE,QAAA,eAE9C,IAAA3C,WAAA,CAAA4C,GAAA,EAACrD,YAAA,CAAA4D,IAAI;YAACV,SAAS,EAAC,kCAAkC;YAAAE,QAAA,EAAEf;UAAM,CAAO;QAAC,CACzD,CAAC,GACV,IAAI;MAAA,CACJ,CAAC;IAAA,CACP,CAAC,GACD,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Theme = exports.ItemAction = exports.ComponentType = void 0;
6
+ exports.Theme = exports.ItemAction = exports.FlightStatus = exports.ComponentType = void 0;
7
7
  let Theme = exports.Theme = /*#__PURE__*/function (Theme) {
8
8
  Theme["Dark"] = "dark";
9
9
  Theme["Light"] = "light";
@@ -17,10 +17,26 @@ let ComponentType = exports.ComponentType = /*#__PURE__*/function (ComponentType
17
17
  ComponentType["Event"] = "event";
18
18
  ComponentType["EventList"] = "eventList";
19
19
  ComponentType["Info"] = "info";
20
+ ComponentType["Flight"] = "flight";
21
+ ComponentType["FlightList"] = "flightList";
22
+ ComponentType["FlightBoard"] = "flightBoard";
23
+ ComponentType["Order"] = "order";
24
+ ComponentType["Reservation"] = "reservation";
25
+ ComponentType["ReservationList"] = "reservationList";
20
26
  return ComponentType;
21
27
  }({});
22
28
  let ItemAction = exports.ItemAction = /*#__PURE__*/function (ItemAction) {
23
29
  ItemAction["Add"] = "add";
30
+ ItemAction["Manage"] = "manage";
31
+ ItemAction["Track"] = "track";
24
32
  return ItemAction;
25
33
  }({});
34
+ let FlightStatus = exports.FlightStatus = /*#__PURE__*/function (FlightStatus) {
35
+ FlightStatus["OnTime"] = "onTime";
36
+ FlightStatus["Delayed"] = "delayed";
37
+ FlightStatus["Boarding"] = "boarding";
38
+ FlightStatus["Landed"] = "landed";
39
+ FlightStatus["Cancelled"] = "cancelled";
40
+ return FlightStatus;
41
+ }({});
26
42
  //# sourceMappingURL=chat.model.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Theme","exports","ComponentType","ItemAction"],"sourceRoot":"../../../../../src","sources":["features/chat/model/chat.model.ts"],"mappings":";;;;;;IAAYA,KAAK,GAAAC,OAAA,CAAAD,KAAA,0BAALA,KAAK;EAALA,KAAK;EAALA,KAAK;EAAA,OAALA,KAAK;AAAA;AAAA,IAQLE,aAAa,GAAAD,OAAA,CAAAC,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAA,IAUbC,UAAU,GAAAF,OAAA,CAAAE,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["Theme","exports","ComponentType","ItemAction","FlightStatus"],"sourceRoot":"../../../../../src","sources":["features/chat/model/chat.model.ts"],"mappings":";;;;;;IAAYA,KAAK,GAAAC,OAAA,CAAAD,KAAA,0BAALA,KAAK;EAALA,KAAK;EAALA,KAAK;EAAA,OAALA,KAAK;AAAA;AAAA,IAQLE,aAAa,GAAAD,OAAA,CAAAC,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAA,IAgBbC,UAAU,GAAAF,OAAA,CAAAE,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAA,IAMVC,YAAY,GAAAH,OAAA,CAAAG,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
@@ -8,6 +8,10 @@ var _product = require("../components/product/product");
8
8
  var _service = require("../components/service/service");
9
9
  var _event = require("../components/event/event");
10
10
  var _info = require("../components/info/info");
11
+ var _flight = require("../components/flight/flight");
12
+ var _flightBoard = require("../components/flight-board/flight-board");
13
+ var _order = require("../components/order/order");
14
+ var _reservation = require("../components/reservation/reservation");
11
15
  var _chatModel = require("../model/chat.model.js");
12
16
  var _jsxRuntime = require("react/jsx-runtime");
13
17
  function ChatComponentRenderer({
@@ -38,6 +42,28 @@ function ChatComponentRenderer({
38
42
  type: type,
39
43
  ...rest
40
44
  });
45
+ case _chatModel.ComponentType.Flight:
46
+ case _chatModel.ComponentType.FlightList:
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_flight.Flight, {
48
+ type: type,
49
+ ...rest
50
+ });
51
+ case _chatModel.ComponentType.FlightBoard:
52
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_flightBoard.FlightBoard, {
53
+ type: type,
54
+ ...rest
55
+ });
56
+ case _chatModel.ComponentType.Order:
57
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_order.Order, {
58
+ type: type,
59
+ ...rest
60
+ });
61
+ case _chatModel.ComponentType.Reservation:
62
+ case _chatModel.ComponentType.ReservationList:
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reservation.Reservation, {
64
+ type: type,
65
+ ...rest
66
+ });
41
67
  default:
42
68
  return null;
43
69
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_product","require","_service","_event","_info","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList","Event","EventList","Info"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAKA,IAAAI,UAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAG7C,SAASM,qBAAqBA,CAEnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACb,QAAA,CAAAW,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACX,QAAA,CAAAY,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACM,KAAK;IACxB,KAAKN,wBAAa,CAACO,SAAS;MAC1B,oBAAO,IAAAX,WAAA,CAAAO,GAAA,EAACV,MAAA,CAAAa,KAAK;QAACR,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKC,wBAAa,CAACQ,IAAI;MACrB,oBAAO,IAAAZ,WAAA,CAAAO,GAAA,EAACT,KAAA,CAAAc,IAAI;QAACV,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_product","require","_service","_event","_info","_flight","_flightBoard","_order","_reservation","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList","Event","EventList","Info","Flight","FlightList","FlightBoard","Order","Reservation","ReservationList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AASA,IAAAQ,UAAA,GAAAR,OAAA;AAAoD,IAAAS,WAAA,GAAAT,OAAA;AAG7C,SAASU,qBAAqBA,CAUnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACjB,QAAA,CAAAe,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,C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AwE,CAAC;IAE/G;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
@@ -8,6 +8,10 @@ var _productNative = require("../components/product/product.native.js");
8
8
  var _serviceNative = require("../components/service/service.native.js");
9
9
  var _eventNative = require("../components/event/event.native.js");
10
10
  var _infoNative = require("../components/info/info.native.js");
11
+ var _flightNative = require("../components/flight/flight.native.js");
12
+ var _flightBoardNative = require("../components/flight-board/flight-board.native.js");
13
+ var _orderNative = require("../components/order/order.native.js");
14
+ var _reservationNative = require("../components/reservation/reservation.native.js");
11
15
  var _chatModel = require("../model/chat.model.js");
12
16
  var _jsxRuntime = require("react/jsx-runtime");
13
17
  function ChatComponentRenderer({
@@ -38,6 +42,28 @@ function ChatComponentRenderer({
38
42
  type: type,
39
43
  ...rest
40
44
  });
45
+ case _chatModel.ComponentType.Flight:
46
+ case _chatModel.ComponentType.FlightList:
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_flightNative.Flight, {
48
+ type: type,
49
+ ...rest
50
+ });
51
+ case _chatModel.ComponentType.FlightBoard:
52
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_flightBoardNative.FlightBoard, {
53
+ type: type,
54
+ ...rest
55
+ });
56
+ case _chatModel.ComponentType.Order:
57
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_orderNative.Order, {
58
+ type: type,
59
+ ...rest
60
+ });
61
+ case _chatModel.ComponentType.Reservation:
62
+ case _chatModel.ComponentType.ReservationList:
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reservationNative.Reservation, {
64
+ type: type,
65
+ ...rest
66
+ });
41
67
  default:
42
68
  return null;
43
69
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_productNative","require","_serviceNative","_eventNative","_infoNative","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList","Event","EventList","Info"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAKA,IAAAI,UAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAG7C,SAASM,qBAAqBA,CAEnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACb,cAAA,CAAAW,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACX,cAAA,CAAAY,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACM,KAAK;IACxB,KAAKN,wBAAa,CAACO,SAAS;MAC1B,oBAAO,IAAAX,WAAA,CAAAO,GAAA,EAACV,YAAA,CAAAa,KAAK;QAACR,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKC,wBAAa,CAACQ,IAAI;MACrB,oBAAO,IAAAZ,WAAA,CAAAO,GAAA,EAACT,WAAA,CAAAc,IAAI;QAACV,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_productNative","require","_serviceNative","_eventNative","_infoNative","_flightNative","_flightBoardNative","_orderNative","_reservationNative","_chatModel","_jsxRuntime","ChatComponentRenderer","type","rest","ComponentType","Product","ProductList","jsx","Service","ServiceList","Event","EventList","Info","Flight","FlightList","FlightBoard","Order","Reservation","ReservationList"],"sourceRoot":"../../../../../src","sources":["features/chat/renderer/renderer.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AASA,IAAAQ,UAAA,GAAAR,OAAA;AAAoD,IAAAS,WAAA,GAAAT,OAAA;AAG7C,SAASU,qBAAqBA,CAUnC;EAAEC,IAAI;EAAE,GAAGC;AAAgC,CAAC,EAAE;EAC9C,QAAQD,IAAI;IACV,KAAKE,wBAAa,CAACC,OAAO;IAC1B,KAAKD,wBAAa,CAACE,WAAW;MAC5B,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACjB,cAAA,CAAAe,OAAO;QAACH,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACI,OAAO;IAC1B,KAAKJ,wBAAa,CAACK,WAAW;MAC5B,oBAAO,IAAAT,WAAA,CAAAO,GAAA,EAACf,cAAA,CAAAgB,OAAO;QAACN,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAgE,CAAC;IACxG,KAAKC,wBAAa,CAACM,KAAK;IACxB,KAAKN,wBAAa,CAACO,SAAS;MAC1B,oBAAO,IAAAX,WAAA,CAAAO,GAAA,EAACd,YAAA,CAAAiB,KAAK;QAACR,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA8D,CAAC;IACpG,KAAKC,wBAAa,CAACQ,IAAI;MACrB,oBAAO,IAAAZ,WAAA,CAAAO,GAAA,EAACb,WAAA,CAAAkB,IAAI;QAACV,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA6D,CAAC;IAClG,KAAKC,wBAAa,CAACS,MAAM;IACzB,KAAKT,wBAAa,CAACU,UAAU;MAC3B,oBAAO,IAAAd,WAAA,CAAAO,GAAA,EAACZ,aAAA,CAAAkB,MAAM;QAACX,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAA+D,CAAC;IACtG,KAAKC,wBAAa,CAACW,WAAW;MAC5B,oBAAO,IAAAf,WAAA,CAAAO,GAAA,EAACX,kBAAA,CAAAmB,WAAW;QAACb,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAoE,CAAC;IAChH,KAAKC,wBAAa,CAACY,KAAK;MACtB,oBAAO,IAAAhB,WAAA,CAAAO,GAAA,EAACV,YAAA,CAAAmB,KAAK;QAACd,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAkE,CAAC;IACxG,KAAKC,wBAAa,CAACa,WAAW;IAC9B,KAAKb,wBAAa,CAACc,eAAe;MAChC,oBACE,IAAAlB,WAAA,CAAAO,GAAA,EAACT,kBAAA,CAAAmB,WAAW;QAACf,IAAI,EAAEA,IAAK;QAAA,GAAMC;MAAI,CAAwE,CAAC;IAE/G;MACE,OAAO,IAAI;EACf;AACF","ignoreList":[]}
@@ -27,6 +27,24 @@ Object.defineProperty(exports, "Event", {
27
27
  return _eventNative.Event;
28
28
  }
29
29
  });
30
+ Object.defineProperty(exports, "Flight", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _flightNative.Flight;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "FlightBoard", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _flightBoardNative.FlightBoard;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "FlightStatus", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _chatModel.FlightStatus;
46
+ }
47
+ });
30
48
  Object.defineProperty(exports, "Info", {
31
49
  enumerable: true,
32
50
  get: function () {
@@ -39,12 +57,36 @@ Object.defineProperty(exports, "ItemAction", {
39
57
  return _chatModel.ItemAction;
40
58
  }
41
59
  });
60
+ Object.defineProperty(exports, "Order", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _orderNative.Order;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "OrderStatus", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _orderModel.OrderStatus;
70
+ }
71
+ });
42
72
  Object.defineProperty(exports, "Product", {
43
73
  enumerable: true,
44
74
  get: function () {
45
75
  return _productNative.Product;
46
76
  }
47
77
  });
78
+ Object.defineProperty(exports, "Reservation", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _reservationNative.Reservation;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "ReservationStatus", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _reservationModel.ReservationStatus;
88
+ }
89
+ });
48
90
  Object.defineProperty(exports, "Service", {
49
91
  enumerable: true,
50
92
  get: function () {
@@ -67,8 +109,14 @@ var _productNative = require("./features/chat/components/product/product.native.
67
109
  var _serviceNative = require("./features/chat/components/service/service.native.js");
68
110
  var _eventNative = require("./features/chat/components/event/event.native.js");
69
111
  var _infoNative = require("./features/chat/components/info/info.native.js");
112
+ var _flightNative = require("./features/chat/components/flight/flight.native.js");
113
+ var _flightBoardNative = require("./features/chat/components/flight-board/flight-board.native.js");
114
+ var _orderNative = require("./features/chat/components/order/order.native.js");
115
+ var _reservationNative = require("./features/chat/components/reservation/reservation.native.js");
70
116
  var _rendererNative = require("./features/chat/renderer/renderer.native.js");
71
117
  var _messageNative = require("./features/chat/message/message.native.js");
72
118
  var _messageLogic = require("./features/chat/message/message.logic.js");
73
119
  var _chatModel = require("./features/chat/model/chat.model.js");
120
+ var _orderModel = require("./features/chat/components/order/order.model.js");
121
+ var _reservationModel = require("./features/chat/components/reservation/reservation.model.js");
74
122
  //# sourceMappingURL=native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_productNative","require","_serviceNative","_eventNative","_infoNative","_rendererNative","_messageNative","_messageLogic","_chatModel"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_productNative","require","_serviceNative","_eventNative","_infoNative","_flightNative","_flightBoardNative","_orderNative","_reservationNative","_rendererNative","_messageNative","_messageLogic","_chatModel","_orderModel","_reservationModel"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,WAAA,GAAAZ,OAAA;AACA,IAAAa,iBAAA,GAAAb,OAAA","ignoreList":[]}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getFlightStatusStyle = getFlightStatusStyle;
7
+ var _chatModel = require("../features/chat/model/chat.model.js");
8
+ const DARK = {
9
+ [_chatModel.FlightStatus.OnTime]: {
10
+ dot: 'bg-emerald-400',
11
+ badgeBg: 'bg-emerald-500/15',
12
+ badgeText: 'text-emerald-400',
13
+ showDot: true,
14
+ label: 'On time'
15
+ },
16
+ [_chatModel.FlightStatus.Delayed]: {
17
+ dot: 'bg-amber-400',
18
+ badgeBg: 'bg-amber-500/15',
19
+ badgeText: 'text-amber-400',
20
+ showDot: false,
21
+ label: 'Delayed'
22
+ },
23
+ [_chatModel.FlightStatus.Boarding]: {
24
+ dot: 'bg-indigo-300',
25
+ badgeBg: 'bg-indigo-500/25',
26
+ badgeText: 'text-indigo-300',
27
+ showDot: false,
28
+ label: 'Boarding'
29
+ },
30
+ [_chatModel.FlightStatus.Landed]: {
31
+ dot: 'bg-sky-400',
32
+ badgeBg: 'bg-sky-500/15',
33
+ badgeText: 'text-sky-400',
34
+ showDot: true,
35
+ label: 'Landed'
36
+ },
37
+ [_chatModel.FlightStatus.Cancelled]: {
38
+ dot: 'bg-red-400',
39
+ badgeBg: 'bg-red-500/15',
40
+ badgeText: 'text-red-400',
41
+ showDot: false,
42
+ label: 'Cancelled'
43
+ }
44
+ };
45
+ const LIGHT = {
46
+ [_chatModel.FlightStatus.OnTime]: {
47
+ dot: 'bg-emerald-500',
48
+ badgeBg: 'bg-emerald-500/15',
49
+ badgeText: 'text-emerald-600',
50
+ showDot: true,
51
+ label: 'On time'
52
+ },
53
+ [_chatModel.FlightStatus.Delayed]: {
54
+ dot: 'bg-amber-500',
55
+ badgeBg: 'bg-amber-500/20',
56
+ badgeText: 'text-amber-600',
57
+ showDot: false,
58
+ label: 'Delayed'
59
+ },
60
+ [_chatModel.FlightStatus.Boarding]: {
61
+ dot: 'bg-indigo-500',
62
+ badgeBg: 'bg-indigo-500/15',
63
+ badgeText: 'text-indigo-600',
64
+ showDot: false,
65
+ label: 'Boarding'
66
+ },
67
+ [_chatModel.FlightStatus.Landed]: {
68
+ dot: 'bg-sky-500',
69
+ badgeBg: 'bg-sky-500/15',
70
+ badgeText: 'text-sky-600',
71
+ showDot: true,
72
+ label: 'Landed'
73
+ },
74
+ [_chatModel.FlightStatus.Cancelled]: {
75
+ dot: 'bg-red-500',
76
+ badgeBg: 'bg-red-500/15',
77
+ badgeText: 'text-red-600',
78
+ showDot: false,
79
+ label: 'Cancelled'
80
+ }
81
+ };
82
+ function getFlightStatusStyle(status = _chatModel.FlightStatus.OnTime, theme = _chatModel.Theme.Dark) {
83
+ const map = theme === _chatModel.Theme.Light ? LIGHT : DARK;
84
+ return map[status] ?? map[_chatModel.FlightStatus.OnTime];
85
+ }
86
+ //# sourceMappingURL=flight.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_chatModel","require","DARK","FlightStatus","OnTime","dot","badgeBg","badgeText","showDot","label","Delayed","Boarding","Landed","Cancelled","LIGHT","getFlightStatusStyle","status","theme","Theme","Dark","map","Light"],"sourceRoot":"../../../src","sources":["utils/flight.utils.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAYA,MAAMC,IAAe,GAAG;EACtB,CAACC,uBAAY,CAACC,MAAM,GAAG;IAAEC,GAAG,EAAE,gBAAgB;IAAEC,OAAO,EAAE,mBAAmB;IAAEC,SAAS,EAAE,kBAAkB;IAAEC,OAAO,EAAE,IAAI;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC9I,CAACN,uBAAY,CAACO,OAAO,GAAG;IAAEL,GAAG,EAAE,cAAc;IAAEC,OAAO,EAAE,iBAAiB;IAAEC,SAAS,EAAE,gBAAgB;IAAEC,OAAO,EAAE,KAAK;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC1I,CAACN,uBAAY,CAACQ,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,CAACN,u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AAEM,SAASM,oBAAoBA,CAClCC,MAAoB,GAAGb,uBAAY,CAACC,MAAM,EAC1Ca,KAAY,GAAGC,gBAAK,CAACC,IAAI,EACN;EACnB,MAAMC,GAAG,GAAGH,KAAK,KAAKC,gBAAK,CAACG,KAAK,GAAGP,KAAK,GAAGZ,IAAI;EAChD,OAAOkB,GAAG,CAACJ,MAAM,CAAC,IAAII,GAAG,CAACjB,uBAAY,CAACC,MAAM,CAAC;AAChD","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getOrderStatusStyle = getOrderStatusStyle;
7
+ var _chatModel = require("../features/chat/model/chat.model.js");
8
+ var _orderModel = require("../features/chat/components/order/order.model.js");
9
+ var _statusBadgeUtils = require("./status-badge.utils.js");
10
+ const LABEL = {
11
+ [_orderModel.OrderStatus.Pending]: 'Pending',
12
+ [_orderModel.OrderStatus.Preparing]: 'Preparing',
13
+ [_orderModel.OrderStatus.Accepted]: 'Accepted',
14
+ [_orderModel.OrderStatus.Rejected]: 'Rejected',
15
+ [_orderModel.OrderStatus.Delivered]: 'Delivered'
16
+ };
17
+ function getOrderStatusStyle(status = _orderModel.OrderStatus.Pending, theme = _chatModel.Theme.Dark) {
18
+ const tone = status === _orderModel.OrderStatus.Accepted || status === _orderModel.OrderStatus.Delivered ? _statusBadgeUtils.StatusTone.Success : status === _orderModel.OrderStatus.Rejected ? _statusBadgeUtils.StatusTone.Danger : status === _orderModel.OrderStatus.Preparing ? _statusBadgeUtils.StatusTone.Info : _statusBadgeUtils.StatusTone.Pending;
19
+ return {
20
+ ...(0, _statusBadgeUtils.getStatusBadgeStyle)(tone, theme),
21
+ label: LABEL[status] ?? LABEL[_orderModel.OrderStatus.Pending]
22
+ };
23
+ }
24
+ //# sourceMappingURL=order.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_chatModel","require","_orderModel","_statusBadgeUtils","LABEL","OrderStatus","Pending","Preparing","Accepted","Rejected","Delivered","getOrderStatusStyle","status","theme","Theme","Dark","tone","StatusTone","Success","Danger","Info","getStatusBadgeStyle","label"],"sourceRoot":"../../../src","sources":["utils/order.utils.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAGA,MAAMG,KAAkC,GAAG;EACzC,CAACC,uBAAW,CAACC,OAAO,GAAG,SAAS;EAChC,CAACD,uBAAW,CAACE,SAAS,GAAG,WAAW;EACpC,CAACF,uBAAW,CAACG,QAAQ,GAAG,UAAU;EAClC,CAACH,uBAAW,CAACI,QAAQ,GAAG,UAAU;EAClC,CAACJ,uBAAW,CAACK,SAAS,GAAG;AAC3B,CAAC;AAEM,SAASC,mBAAmBA,CACjCC,MAAmB,GAAGP,uBAAW,CAACC,OAAO,EACzCO,KAAY,GAAGC,gBAAK,CAACC,IAAI,EACa;EACtC,MAAMC,IAAI,GACRJ,MAAM,KAAKP,uBAAW,CAACG,QAAQ,IAAII,MAAM,KAAKP,uBAAW,CAACK,SAAS,GAC/DO,4BAAU,CAACC,OAAO,GAClBN,MAAM,KAAKP,uBAAW,CAACI,QAAQ,GAC7BQ,4BAAU,CAACE,MAAM,GACjBP,MAAM,KAAKP,uBAAW,CAACE,SAAS,GAC9BU,4BAAU,CAACG,IAAI,GACfH,4BAAU,CAACX,OAAO;EAE5B,OAAO;IAAE,GAAG,IAAAe,qCAAmB,EAACL,IAAI,EAAEH,KAAK,CAAC;IAAES,KAAK,EAAElB,KAAK,CAACQ,MAAM,CAAC,IAAIR,KAAK,CAACC,uBAAW,CAACC,OAAO;EAAE,CAAC;AACpG","ignoreList":[]}
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.isFreePrice = isFreePrice;
7
7
  function isFreePrice(price) {
8
8
  if (price == null) return true;
9
- if (typeof price === 'number') return price === 0;
10
- const trimmed = price.trim();
11
- if (trimmed === '') return true;
9
+ if (typeof price === 'number') return !Number.isFinite(price) || price === 0;
10
+ const trimmed = price.trim().toLowerCase();
11
+ if (trimmed === '' || trimmed.includes('undefined') || trimmed.includes('null')) return true;
12
12
  const numeric = parseFloat(trimmed.replace(/[^0-9.,-]/g, '').replace(',', '.'));
13
- return Number.isFinite(numeric) && numeric === 0;
13
+ return !Number.isFinite(numeric) || numeric === 0;
14
14
  }
15
15
  //# sourceMappingURL=price.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isFreePrice","price","trimmed","trim","numeric","parseFloat","replace","Number","isFinite"],"sourceRoot":"../../../src","sources":["utils/price.utils.ts"],"mappings":";;;;;;AAAO,SAASA,WAAWA,CAACC,KAA8B,EAAW;EACnE,IAAIA,KAAK,IAAI,IAAI,EAAE,OAAO,IAAI;EAC9B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK,KAAK,CAAC;EAEjD,MAAMC,OAAO,GAAGD,KAAK,CAACE,IAAI,CAAC,CAAC;EAC5B,IAAID,OAAO,KAAK,EAAE,EAAE,OAAO,IAAI;EAE/B,MAAME,OAAO,GAAGC,UAAU,CAACH,OAAO,CAACI,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;EAC/E,OAAOC,MAAM,CAACC,QAAQ,CAACJ,OAAO,CAAC,IAAIA,OAAO,KAAK,CAAC;AAClD","ignoreList":[]}
1
+ {"version":3,"names":["isFreePrice","price","Number","isFinite","trimmed","trim","toLowerCase","includes","numeric","parseFloat","replace"],"sourceRoot":"../../../src","sources":["utils/price.utils.ts"],"mappings":";;;;;;AAAO,SAASA,WAAWA,CAACC,KAA8B,EAAW;EACnE,IAAIA,KAAK,IAAI,IAAI,EAAE,OAAO,IAAI;EAC9B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAO,CAACC,MAAM,CAACC,QAAQ,CAACF,KAAK,CAAC,IAAIA,KAAK,KAAK,CAAC;EAE5E,MAAMG,OAAO,GAAGH,KAAK,CAACI,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EAC1C,IAAIF,OAAO,KAAK,EAAE,IAAIA,OAAO,CAACG,QAAQ,CAAC,WAAW,CAAC,IAAIH,OAAO,CAACG,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,IAAI;EAE5F,MAAMC,OAAO,GAAGC,UAAU,CAACL,OAAO,CAACM,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;EAC/E,OAAO,CAACR,MAAM,CAACC,QAAQ,CAACK,OAAO,CAAC,IAAIA,OAAO,KAAK,CAAC;AACnD","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getReservationStatusStyle = getReservationStatusStyle;
7
+ var _chatModel = require("../features/chat/model/chat.model.js");
8
+ var _reservationModel = require("../features/chat/components/reservation/reservation.model.js");
9
+ var _statusBadgeUtils = require("./status-badge.utils.js");
10
+ const LABEL = {
11
+ [_reservationModel.ReservationStatus.Pending]: 'Pending',
12
+ [_reservationModel.ReservationStatus.Confirmed]: 'Confirmed',
13
+ [_reservationModel.ReservationStatus.Cancelled]: 'Cancelled'
14
+ };
15
+ function getReservationStatusStyle(status = _reservationModel.ReservationStatus.Pending, theme = _chatModel.Theme.Dark) {
16
+ const tone = status === _reservationModel.ReservationStatus.Confirmed ? _statusBadgeUtils.StatusTone.Success : status === _reservationModel.ReservationStatus.Cancelled ? _statusBadgeUtils.StatusTone.Danger : _statusBadgeUtils.StatusTone.Pending;
17
+ return {
18
+ ...(0, _statusBadgeUtils.getStatusBadgeStyle)(tone, theme),
19
+ label: LABEL[status] ?? LABEL[_reservationModel.ReservationStatus.Pending]
20
+ };
21
+ }
22
+ //# sourceMappingURL=reservation.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_chatModel","require","_reservationModel","_statusBadgeUtils","LABEL","ReservationStatus","Pending","Confirmed","Cancelled","getReservationStatusStyle","status","theme","Theme","Dark","tone","StatusTone","Success","Danger","getStatusBadgeStyle","label"],"sourceRoot":"../../../src","sources":["utils/reservation.utils.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAGA,MAAMG,KAAwC,GAAG;EAC/C,CAACC,mCAAiB,CAACC,OAAO,GAAG,SAAS;EACtC,CAACD,mCAAiB,CAACE,SAAS,GAAG,WAAW;EAC1C,CAACF,mCAAiB,CAACG,SAAS,GAAG;AACjC,CAAC;AAEM,SAASC,yBAAyBA,CACvCC,MAAyB,GAAGL,mCAAiB,CAACC,OAAO,EACrDK,KAAY,GAAGC,gBAAK,CAACC,IAAI,EACa;EACtC,MAAMC,IAAI,GAAGJ,MAAM,KAAKL,mCAAiB,CAACE,SAAS,GAC/CQ,4BAAU,CAACC,OAAO,GAClBN,MAAM,KAAKL,mCAAiB,CAACG,SAAS,GACpCO,4BAAU,CAACE,MAAM,GACjBF,4BAAU,CAACT,OAAO;EAExB,OAAO;IAAE,GAAG,IAAAY,qCAAmB,EAACJ,IAAI,EAAEH,KAAK,CAAC;IAAEQ,KAAK,EAAEf,KAAK,CAACM,MAAM,CAAC,IAAIN,KAAK,CAACC,mCAAiB,CAACC,OAAO;EAAE,CAAC;AAC1G","ignoreList":[]}