@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.
- package/lib/commonjs/features/chat/components/common/calendar-icon.js +33 -0
- package/lib/commonjs/features/chat/components/common/calendar-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/calendar-icon.native.js +33 -0
- package/lib/commonjs/features/chat/components/common/calendar-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.js +36 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.js +26 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.native.js +26 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.js +23 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.native.js +23 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.js +130 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.native.js +132 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight.js +149 -0
- package/lib/commonjs/features/chat/components/flight/flight.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight.model.js +6 -0
- package/lib/commonjs/features/chat/components/flight/flight.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight.native.js +151 -0
- package/lib/commonjs/features/chat/components/flight/flight.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/index.js +13 -0
- package/lib/commonjs/features/chat/components/flight/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.js +154 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js +6 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js +165 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/index.js +13 -0
- package/lib/commonjs/features/chat/components/flight-board/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/info/info.js +41 -14
- package/lib/commonjs/features/chat/components/info/info.js.map +1 -1
- package/lib/commonjs/features/chat/components/info/info.native.js +45 -14
- package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -1
- package/lib/commonjs/features/chat/components/order/index.js +20 -0
- package/lib/commonjs/features/chat/components/order/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/order/order.js +171 -0
- package/lib/commonjs/features/chat/components/order/order.js.map +1 -0
- package/lib/commonjs/features/chat/components/order/order.model.js +15 -0
- package/lib/commonjs/features/chat/components/order/order.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/order/order.native.js +192 -0
- package/lib/commonjs/features/chat/components/order/order.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/index.js +20 -0
- package/lib/commonjs/features/chat/components/reservation/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.js +164 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.model.js +13 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.native.js +180 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.native.js.map +1 -0
- package/lib/commonjs/features/chat/model/chat.model.js +17 -1
- package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
- package/lib/commonjs/features/chat/renderer/renderer.js +26 -0
- package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
- package/lib/commonjs/features/chat/renderer/renderer.native.js +26 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
- package/lib/commonjs/native.js +48 -0
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/utils/flight.utils.js +86 -0
- package/lib/commonjs/utils/flight.utils.js.map +1 -0
- package/lib/commonjs/utils/order.utils.js +24 -0
- package/lib/commonjs/utils/order.utils.js.map +1 -0
- package/lib/commonjs/utils/reservation.utils.js +22 -0
- package/lib/commonjs/utils/reservation.utils.js.map +1 -0
- package/lib/commonjs/utils/status-badge.utils.js +75 -0
- package/lib/commonjs/utils/status-badge.utils.js.map +1 -0
- package/lib/commonjs/utils/theme.utils.js +8 -2
- package/lib/commonjs/utils/theme.utils.js.map +1 -1
- package/lib/commonjs/web.js +48 -0
- package/lib/commonjs/web.js.map +1 -1
- package/lib/module/features/chat/components/common/calendar-icon.js +29 -0
- package/lib/module/features/chat/components/common/calendar-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/calendar-icon.native.js +29 -0
- package/lib/module/features/chat/components/common/calendar-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/common/cart-icon.js +32 -0
- package/lib/module/features/chat/components/common/cart-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/chevron-icon.js +22 -0
- package/lib/module/features/chat/components/common/chevron-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/chevron-icon.native.js +22 -0
- package/lib/module/features/chat/components/common/chevron-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/common/plane-icon.js +19 -0
- package/lib/module/features/chat/components/common/plane-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/plane-icon.native.js +19 -0
- package/lib/module/features/chat/components/common/plane-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight-card.js +126 -0
- package/lib/module/features/chat/components/flight/flight-card.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight-card.native.js +128 -0
- package/lib/module/features/chat/components/flight/flight-card.native.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight.js +145 -0
- package/lib/module/features/chat/components/flight/flight.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight.model.js +4 -0
- package/lib/module/features/chat/components/flight/flight.model.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight.native.js +147 -0
- package/lib/module/features/chat/components/flight/flight.native.js.map +1 -0
- package/lib/module/features/chat/components/flight/index.js +4 -0
- package/lib/module/features/chat/components/flight/index.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/flight-board.js +150 -0
- package/lib/module/features/chat/components/flight-board/flight-board.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/flight-board.model.js +4 -0
- package/lib/module/features/chat/components/flight-board/flight-board.model.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/flight-board.native.js +161 -0
- package/lib/module/features/chat/components/flight-board/flight-board.native.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/index.js +4 -0
- package/lib/module/features/chat/components/flight-board/index.js.map +1 -0
- package/lib/module/features/chat/components/info/info.js +41 -14
- package/lib/module/features/chat/components/info/info.js.map +1 -1
- package/lib/module/features/chat/components/info/info.native.js +46 -15
- package/lib/module/features/chat/components/info/info.native.js.map +1 -1
- package/lib/module/features/chat/components/order/index.js +5 -0
- package/lib/module/features/chat/components/order/index.js.map +1 -0
- package/lib/module/features/chat/components/order/order.js +167 -0
- package/lib/module/features/chat/components/order/order.js.map +1 -0
- package/lib/module/features/chat/components/order/order.model.js +11 -0
- package/lib/module/features/chat/components/order/order.model.js.map +1 -0
- package/lib/module/features/chat/components/order/order.native.js +188 -0
- package/lib/module/features/chat/components/order/order.native.js.map +1 -0
- package/lib/module/features/chat/components/reservation/index.js +5 -0
- package/lib/module/features/chat/components/reservation/index.js.map +1 -0
- package/lib/module/features/chat/components/reservation/reservation.js +160 -0
- package/lib/module/features/chat/components/reservation/reservation.js.map +1 -0
- package/lib/module/features/chat/components/reservation/reservation.model.js +9 -0
- package/lib/module/features/chat/components/reservation/reservation.model.js.map +1 -0
- package/lib/module/features/chat/components/reservation/reservation.native.js +176 -0
- package/lib/module/features/chat/components/reservation/reservation.native.js.map +1 -0
- package/lib/module/features/chat/model/chat.model.js +16 -0
- package/lib/module/features/chat/model/chat.model.js.map +1 -1
- package/lib/module/features/chat/renderer/renderer.js +26 -0
- package/lib/module/features/chat/renderer/renderer.js.map +1 -1
- package/lib/module/features/chat/renderer/renderer.native.js +26 -0
- package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
- package/lib/module/native.js +7 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/utils/flight.utils.js +82 -0
- package/lib/module/utils/flight.utils.js.map +1 -0
- package/lib/module/utils/order.utils.js +20 -0
- package/lib/module/utils/order.utils.js.map +1 -0
- package/lib/module/utils/reservation.utils.js +18 -0
- package/lib/module/utils/reservation.utils.js.map +1 -0
- package/lib/module/utils/status-badge.utils.js +70 -0
- package/lib/module/utils/status-badge.utils.js.map +1 -0
- package/lib/module/utils/theme.utils.js +8 -2
- package/lib/module/utils/theme.utils.js.map +1 -1
- package/lib/module/web.js +7 -1
- package/lib/module/web.js.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts +12 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts +12 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts +19 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/order/index.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/order/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts +30 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts +27 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +17 -2
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/native.d.ts +11 -1
- package/lib/typescript/commonjs/native.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/flight.utils.d.ts +10 -0
- package/lib/typescript/commonjs/utils/flight.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/order.utils.d.ts +7 -0
- package/lib/typescript/commonjs/utils/order.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/reservation.utils.d.ts +7 -0
- package/lib/typescript/commonjs/utils/reservation.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/status-badge.utils.d.ts +15 -0
- package/lib/typescript/commonjs/utils/status-badge.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts +3 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +11 -1
- package/lib/typescript/commonjs/web.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts +12 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts +12 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight/flight.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts +19 -0
- package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/flight/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/flight-board/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/info/info.d.ts +1 -1
- package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/info/info.model.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/info/info.native.d.ts +1 -1
- package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/order/index.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/order/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/order/order.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/order/order.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/order/order.model.d.ts +30 -0
- package/lib/typescript/module/features/chat/components/order/order.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/order/order.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/order/order.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/index.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/reservation/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts +27 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts +17 -2
- package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -1
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -1
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
- package/lib/typescript/module/native.d.ts +11 -1
- package/lib/typescript/module/native.d.ts.map +1 -1
- package/lib/typescript/module/utils/flight.utils.d.ts +10 -0
- package/lib/typescript/module/utils/flight.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/order.utils.d.ts +7 -0
- package/lib/typescript/module/utils/order.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/reservation.utils.d.ts +7 -0
- package/lib/typescript/module/utils/reservation.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/status-badge.utils.d.ts +15 -0
- package/lib/typescript/module/utils/status-badge.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/theme.utils.d.ts +3 -0
- package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +11 -1
- package/lib/typescript/module/web.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chat/components/common/calendar-icon.native.tsx +13 -0
- package/src/features/chat/components/common/calendar-icon.tsx +13 -0
- package/src/features/chat/components/common/cart-icon.tsx +20 -0
- package/src/features/chat/components/common/chevron-icon.native.tsx +18 -0
- package/src/features/chat/components/common/chevron-icon.tsx +18 -0
- package/src/features/chat/components/common/plane-icon.native.tsx +15 -0
- package/src/features/chat/components/common/plane-icon.tsx +15 -0
- package/src/features/chat/components/flight/flight-card.native.tsx +100 -0
- package/src/features/chat/components/flight/flight-card.tsx +100 -0
- package/src/features/chat/components/flight/flight.model.ts +20 -0
- package/src/features/chat/components/flight/flight.native.tsx +131 -0
- package/src/features/chat/components/flight/flight.tsx +131 -0
- package/src/features/chat/components/flight/index.ts +2 -0
- package/src/features/chat/components/flight-board/flight-board.model.ts +23 -0
- package/src/features/chat/components/flight-board/flight-board.native.tsx +155 -0
- package/src/features/chat/components/flight-board/flight-board.tsx +160 -0
- package/src/features/chat/components/flight-board/index.ts +2 -0
- package/src/features/chat/components/info/info.model.ts +3 -0
- package/src/features/chat/components/info/info.native.tsx +47 -11
- package/src/features/chat/components/info/info.tsx +43 -10
- package/src/features/chat/components/order/index.ts +3 -0
- package/src/features/chat/components/order/order.model.ts +32 -0
- package/src/features/chat/components/order/order.native.tsx +175 -0
- package/src/features/chat/components/order/order.tsx +176 -0
- package/src/features/chat/components/reservation/index.ts +3 -0
- package/src/features/chat/components/reservation/reservation.model.ts +29 -0
- package/src/features/chat/components/reservation/reservation.native.tsx +159 -0
- package/src/features/chat/components/reservation/reservation.tsx +161 -0
- package/src/features/chat/model/chat.model.ts +16 -0
- package/src/features/chat/renderer/renderer.native.tsx +29 -1
- package/src/features/chat/renderer/renderer.tsx +29 -1
- package/src/native.ts +11 -1
- package/src/utils/flight.utils.ts +35 -0
- package/src/utils/order.utils.ts +28 -0
- package/src/utils/reservation.utils.ts +23 -0
- package/src/utils/status-badge.utils.ts +36 -0
- package/src/utils/theme.utils.ts +9 -0
- package/src/web.ts +11 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Flight = Flight;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _themeUtils = require("../../../../utils/theme.utils.js");
|
|
9
|
+
var _flightUtils = require("../../../../utils/flight.utils.js");
|
|
10
|
+
var _i18nUtils = require("../../../../utils/i18n.utils.js");
|
|
11
|
+
var _collapsible = require("../common/collapsible");
|
|
12
|
+
var _planeIcon = require("../common/plane-icon");
|
|
13
|
+
var _chevronIcon = require("../common/chevron-icon");
|
|
14
|
+
var _chatModel = require("../../model/chat.model.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function FlightCard({
|
|
17
|
+
item,
|
|
18
|
+
theme,
|
|
19
|
+
language,
|
|
20
|
+
accent,
|
|
21
|
+
defaultExpanded,
|
|
22
|
+
onSelect
|
|
23
|
+
}) {
|
|
24
|
+
const c = (0, _themeUtils.getThemeClasses)(theme);
|
|
25
|
+
const [expanded, setExpanded] = (0, _react.useState)(defaultExpanded);
|
|
26
|
+
const s = (0, _flightUtils.getFlightStatusStyle)(item.status ?? _chatModel.FlightStatus.OnTime, theme);
|
|
27
|
+
const statusLabel = item.statusLabel ? (0, _i18nUtils.resolveText)(item.statusLabel, language) : s.label;
|
|
28
|
+
const airline = (0, _i18nUtils.resolveText)(item.airline, language);
|
|
29
|
+
const fromCity = (0, _i18nUtils.resolveText)(item.from.city, language);
|
|
30
|
+
const toCity = (0, _i18nUtils.resolveText)(item.to.city, language);
|
|
31
|
+
const subline = item.date ? `${(0, _i18nUtils.resolveText)(item.date, language)}${item.terminal ? ` · ${(0, _i18nUtils.resolveText)(item.terminal, language)}` : ''}` : '';
|
|
32
|
+
const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
|
|
33
|
+
const iconBg = accent ? c.iconBg : c.mutedIconBg;
|
|
34
|
+
const iconColor = accent ? c.iconColor : c.mutedIconColor;
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
|
+
className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
className: "flex w-full items-center gap-3 text-left",
|
|
40
|
+
onClick: () => {
|
|
41
|
+
setExpanded(v => !v);
|
|
42
|
+
onSelect?.(item);
|
|
43
|
+
},
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
+
className: `flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${iconBg}`,
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIcon.PlaneIcon, {
|
|
47
|
+
size: 20,
|
|
48
|
+
color: iconColor
|
|
49
|
+
})
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
51
|
+
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
53
|
+
className: `text-base font-bold down-sm:text-sm ${c.title}`,
|
|
54
|
+
children: [airline, " \xB7 ", item.flightNumber]
|
|
55
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
56
|
+
className: `truncate text-xs ${c.subtitle}`,
|
|
57
|
+
children: expanded ? subline || compact : compact
|
|
58
|
+
})]
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
60
|
+
className: `flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`,
|
|
61
|
+
children: [s.showDot ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
62
|
+
className: `h-1.5 w-1.5 rounded-full ${s.dot}`
|
|
63
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
64
|
+
className: `text-xs font-semibold ${s.badgeText}`,
|
|
65
|
+
children: statusLabel
|
|
66
|
+
})]
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
68
|
+
className: `shrink-0 transition-transform ${expanded ? 'rotate-180' : ''}`,
|
|
69
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIcon.ChevronIcon, {
|
|
70
|
+
size: 18,
|
|
71
|
+
color: c.mutedIconColor
|
|
72
|
+
})
|
|
73
|
+
})]
|
|
74
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsible.Collapsible, {
|
|
75
|
+
expanded: expanded,
|
|
76
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
+
className: "mt-4 flex items-center",
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
79
|
+
className: "flex flex-col items-start",
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
81
|
+
className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
|
|
82
|
+
children: item.from.code
|
|
83
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
84
|
+
className: `text-base font-semibold ${c.title}`,
|
|
85
|
+
children: item.from.time
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
87
|
+
className: `text-xs ${c.subtitle}`,
|
|
88
|
+
children: fromCity
|
|
89
|
+
})]
|
|
90
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
91
|
+
className: "flex flex-1 flex-col items-center px-3",
|
|
92
|
+
children: [item.duration ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
93
|
+
className: `mb-1 text-xs ${c.subtitle}`,
|
|
94
|
+
children: item.duration
|
|
95
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
96
|
+
className: "flex w-full items-center",
|
|
97
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
98
|
+
className: `h-2 w-2 shrink-0 rounded-full ${s.dot}`
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
100
|
+
className: `flex-1 border-t border-dashed ${c.dashLine}`
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
102
|
+
className: "rotate-90",
|
|
103
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIcon.PlaneIcon, {
|
|
104
|
+
size: 16,
|
|
105
|
+
color: c.iconColor
|
|
106
|
+
})
|
|
107
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
108
|
+
className: `flex-1 border-t border-dashed ${c.dashLine}`
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
110
|
+
className: `h-2 w-2 shrink-0 rounded-full ${s.dot}`
|
|
111
|
+
})]
|
|
112
|
+
})]
|
|
113
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
114
|
+
className: "flex flex-col items-end",
|
|
115
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
116
|
+
className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
|
|
117
|
+
children: item.to.code
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
119
|
+
className: `text-base font-semibold ${c.title}`,
|
|
120
|
+
children: item.to.time
|
|
121
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
122
|
+
className: `text-xs ${c.subtitle}`,
|
|
123
|
+
children: toCity
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
})
|
|
127
|
+
})]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function Flight({
|
|
131
|
+
data,
|
|
132
|
+
theme = _chatModel.Theme.Dark,
|
|
133
|
+
language,
|
|
134
|
+
onSelect
|
|
135
|
+
}) {
|
|
136
|
+
const items = Array.isArray(data) ? data : [data];
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
138
|
+
className: "flex flex-col gap-3",
|
|
139
|
+
children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(FlightCard, {
|
|
140
|
+
item: item,
|
|
141
|
+
theme: theme,
|
|
142
|
+
language: language,
|
|
143
|
+
accent: index === 0,
|
|
144
|
+
defaultExpanded: index === 0,
|
|
145
|
+
onSelect: onSelect
|
|
146
|
+
}, item.id))
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=flight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_themeUtils","_flightUtils","_i18nUtils","_collapsible","_planeIcon","_chevronIcon","_chatModel","_jsxRuntime","FlightCard","item","theme","language","accent","defaultExpanded","onSelect","c","getThemeClasses","expanded","setExpanded","useState","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","resolveText","label","airline","fromCity","from","city","toCity","to","subline","date","terminal","compact","code","time","iconBg","mutedIconBg","iconColor","mutedIconColor","jsxs","className","surface","border","children","type","onClick","v","jsx","PlaneIcon","size","color","title","flightNumber","subtitle","badgeBg","showDot","dot","badgeText","ChevronIcon","Collapsible","duration","dashLine","Flight","data","Theme","Dark","items","Array","isArray","map","index","id"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,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KAAK,EAAEA,KAAM;MACbC,QAAQ,EAAEA,QAAS;MACnBC,MAAM,EAAE+D,KAAK,KAAK,CAAE;MACpB9D,eAAe,EAAE8D,KAAK,KAAK,CAAE;MAC7B7D,QAAQ,EAAEA;IAAS,GANdL,IAAI,CAACmE,EAOX,CACF;EAAC,CACC,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight.model.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Flight = Flight;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _themeUtils = require("../../../../utils/theme.utils.js");
|
|
10
|
+
var _flightUtils = require("../../../../utils/flight.utils.js");
|
|
11
|
+
var _i18nUtils = require("../../../../utils/i18n.utils.js");
|
|
12
|
+
var _collapsibleNative = require("../common/collapsible.native.js");
|
|
13
|
+
var _planeIconNative = require("../common/plane-icon.native.js");
|
|
14
|
+
var _chevronIconNative = require("../common/chevron-icon.native.js");
|
|
15
|
+
var _chatModel = require("../../model/chat.model.js");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function FlightCard({
|
|
18
|
+
item,
|
|
19
|
+
theme,
|
|
20
|
+
language,
|
|
21
|
+
accent,
|
|
22
|
+
defaultExpanded,
|
|
23
|
+
onSelect
|
|
24
|
+
}) {
|
|
25
|
+
const c = (0, _themeUtils.getThemeClasses)(theme);
|
|
26
|
+
const [expanded, setExpanded] = (0, _react.useState)(defaultExpanded);
|
|
27
|
+
const s = (0, _flightUtils.getFlightStatusStyle)(item.status ?? _chatModel.FlightStatus.OnTime, theme);
|
|
28
|
+
const statusLabel = item.statusLabel ? (0, _i18nUtils.resolveText)(item.statusLabel, language) : s.label;
|
|
29
|
+
const airline = (0, _i18nUtils.resolveText)(item.airline, language);
|
|
30
|
+
const fromCity = (0, _i18nUtils.resolveText)(item.from.city, language);
|
|
31
|
+
const toCity = (0, _i18nUtils.resolveText)(item.to.city, language);
|
|
32
|
+
const subline = item.date ? `${(0, _i18nUtils.resolveText)(item.date, language)}${item.terminal ? ` · ${(0, _i18nUtils.resolveText)(item.terminal, language)}` : ''}` : '';
|
|
33
|
+
const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
|
|
34
|
+
const iconBg = accent ? c.iconBg : c.mutedIconBg;
|
|
35
|
+
const iconColor = accent ? c.iconColor : c.mutedIconColor;
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
37
|
+
className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
39
|
+
className: "flex-row items-center gap-3",
|
|
40
|
+
onPress: () => {
|
|
41
|
+
setExpanded(v => !v);
|
|
42
|
+
onSelect?.(item);
|
|
43
|
+
},
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
45
|
+
className: `h-11 w-11 items-center justify-center rounded-xl ${iconBg}`,
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
|
|
47
|
+
size: 20,
|
|
48
|
+
color: iconColor
|
|
49
|
+
})
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
51
|
+
className: "flex-1 gap-0.5",
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
53
|
+
className: `text-base font-bold down-sm:text-sm ${c.title}`,
|
|
54
|
+
numberOfLines: 2,
|
|
55
|
+
children: [airline, " \xB7 ", item.flightNumber]
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
57
|
+
className: `text-xs ${c.subtitle}`,
|
|
58
|
+
numberOfLines: 1,
|
|
59
|
+
children: expanded ? subline || compact : compact
|
|
60
|
+
})]
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
62
|
+
className: `flex-row items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`,
|
|
63
|
+
children: [s.showDot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
64
|
+
className: `h-1.5 w-1.5 rounded-full ${s.dot}`
|
|
65
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
66
|
+
className: `text-xs font-semibold ${s.badgeText}`,
|
|
67
|
+
children: statusLabel
|
|
68
|
+
})]
|
|
69
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
70
|
+
className: expanded ? 'rotate-180' : undefined,
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIconNative.ChevronIcon, {
|
|
72
|
+
size: 18,
|
|
73
|
+
color: c.mutedIconColor
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsibleNative.Collapsible, {
|
|
77
|
+
expanded: expanded,
|
|
78
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
79
|
+
className: "mt-4 flex-row items-center",
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
81
|
+
className: "items-start",
|
|
82
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
83
|
+
className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
|
|
84
|
+
children: item.from.code
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
86
|
+
className: `text-base font-semibold ${c.title}`,
|
|
87
|
+
children: item.from.time
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
89
|
+
className: `text-xs ${c.subtitle}`,
|
|
90
|
+
children: fromCity
|
|
91
|
+
})]
|
|
92
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
93
|
+
className: "flex-1 items-center px-3",
|
|
94
|
+
children: [item.duration ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
95
|
+
className: `mb-1 text-xs ${c.subtitle}`,
|
|
96
|
+
children: item.duration
|
|
97
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
98
|
+
className: "w-full flex-row items-center",
|
|
99
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
100
|
+
className: `h-2 w-2 rounded-full ${s.dot}`
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
102
|
+
className: `flex-1 border-t border-dashed ${c.dashLine}`
|
|
103
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
104
|
+
className: "rotate-90",
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
|
|
106
|
+
size: 16,
|
|
107
|
+
color: c.iconColor
|
|
108
|
+
})
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
110
|
+
className: `flex-1 border-t border-dashed ${c.dashLine}`
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
112
|
+
className: `h-2 w-2 rounded-full ${s.dot}`
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
116
|
+
className: "items-end",
|
|
117
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
118
|
+
className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
|
|
119
|
+
children: item.to.code
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
121
|
+
className: `text-base font-semibold ${c.title}`,
|
|
122
|
+
children: item.to.time
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
124
|
+
className: `text-xs ${c.subtitle}`,
|
|
125
|
+
children: toCity
|
|
126
|
+
})]
|
|
127
|
+
})]
|
|
128
|
+
})
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function Flight({
|
|
133
|
+
data,
|
|
134
|
+
theme = _chatModel.Theme.Dark,
|
|
135
|
+
language,
|
|
136
|
+
onSelect
|
|
137
|
+
}) {
|
|
138
|
+
const items = Array.isArray(data) ? data : [data];
|
|
139
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
140
|
+
className: "gap-3",
|
|
141
|
+
children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(FlightCard, {
|
|
142
|
+
item: item,
|
|
143
|
+
theme: theme,
|
|
144
|
+
language: language,
|
|
145
|
+
accent: index === 0,
|
|
146
|
+
defaultExpanded: index === 0,
|
|
147
|
+
onSelect: onSelect
|
|
148
|
+
}, item.id))
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=flight.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_themeUtils","_flightUtils","_i18nUtils","_collapsibleNative","_planeIconNative","_chevronIconNative","_chatModel","_jsxRuntime","FlightCard","item","theme","language","accent","defaultExpanded","onSelect","c","getThemeClasses","expanded","setExpanded","useState","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","resolveText","label","airline","fromCity","from","city","toCity","to","subline","date","terminal","compact","code","time","iconBg","mutedIconBg","iconColor","mutedIconColor","jsxs","View","className","surface","border","children","Pressable","onPress","v","jsx","PlaneIcon","size","color","Text","title","numberOfLines","flightNumber","subtitle","badgeBg","showDot","dot","badgeText","undefined","ChevronIcon","Collapsible","duration","dashLine","Flight","data","Theme","Dark","items","Array","isArray","map","index","id"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAA6D,IAAAS,WAAA,GAAAT,OAAA;AAI7D,SAASU,UAAUA,CAAC;EAClBC,IAAI;EACJC,KAAK;EACLC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC;AAQF,CAAC,EAAE;EACD,MAAMC,CAAC,GAAG,IAAAC,2BAAe,EAACN,KAAK,CAAC;EAChC,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAACN,eAAe,CAAC;EAEzD,MAAMO,CAAC,GAAG,IAAAC,iCAAoB,EAACZ,IAAI,CAACa,MAAM,IAAIC,uBAAY,CAACC,MAAM,EAAEd,KAAK,CAAC;EACzE,MAAMe,WAAW,GAAGhB,IAAI,CAACgB,WAAW,GAAG,IAAAC,sBAAW,EAACjB,IAAI,CAACgB,WAAW,EAAEd,QAAQ,CAAC,GAAGS,CAAC,CAACO,KAAK;EACxF,MAAMC,OAAO,GAAG,IAAAF,sBAAW,EAACjB,IAAI,CAACmB,OAAO,EAAEjB,QAAQ,CAAC;EAC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;MACpBlE,eAAe,EAAEkE,KAAK,KAAK,CAAE;MAC7BjE,QAAQ,EAAEA;IAAS,GANdL,IAAI,CAACuE,EAOX,CACF;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Flight", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _flight.Flight;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _flight = require("./flight");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_flight","require"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FlightBoard = FlightBoard;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _themeUtils = require("../../../../utils/theme.utils.js");
|
|
9
|
+
var _flightUtils = require("../../../../utils/flight.utils.js");
|
|
10
|
+
var _i18nUtils = require("../../../../utils/i18n.utils.js");
|
|
11
|
+
var _useExpandableList = require("../../../../utils/use-expandable-list.js");
|
|
12
|
+
var _collapsible = require("../common/collapsible");
|
|
13
|
+
var _planeIcon = require("../common/plane-icon");
|
|
14
|
+
var _chevronIcon = require("../common/chevron-icon");
|
|
15
|
+
var _chatModel = require("../../model/chat.model.js");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
const BOARD_COLLAPSED_COUNT = 5;
|
|
18
|
+
function FlightBoard({
|
|
19
|
+
data,
|
|
20
|
+
theme = _chatModel.Theme.Dark,
|
|
21
|
+
language,
|
|
22
|
+
onSelect
|
|
23
|
+
}) {
|
|
24
|
+
const c = (0, _themeUtils.getThemeClasses)(theme);
|
|
25
|
+
const board = Array.isArray(data) ? data[0] : data;
|
|
26
|
+
const [tab, setTab] = (0, _react.useState)('departures');
|
|
27
|
+
const onSelectRow = onSelect;
|
|
28
|
+
const arrivals = board?.arrivals ?? [];
|
|
29
|
+
const hasArrivals = arrivals.length > 0;
|
|
30
|
+
const rows = tab === 'arrivals' ? arrivals : board?.departures ?? [];
|
|
31
|
+
const {
|
|
32
|
+
head,
|
|
33
|
+
rest,
|
|
34
|
+
expanded,
|
|
35
|
+
hasMore,
|
|
36
|
+
toggle
|
|
37
|
+
} = (0, _useExpandableList.useExpandableList)(rows, BOARD_COLLAPSED_COUNT);
|
|
38
|
+
if (!board) return null;
|
|
39
|
+
const airport = (0, _i18nUtils.resolveText)(board.airport, language);
|
|
40
|
+
const noun = tab === 'arrivals' ? 'arrivals' : 'departures';
|
|
41
|
+
const renderRow = row => {
|
|
42
|
+
const s = (0, _flightUtils.getFlightStatusStyle)(row.status ?? _chatModel.FlightStatus.OnTime, theme);
|
|
43
|
+
const statusLabel = row.statusLabel ? (0, _i18nUtils.resolveText)(row.statusLabel, language) : s.label;
|
|
44
|
+
const city = (0, _i18nUtils.resolveText)(row.city, language);
|
|
45
|
+
const airline = (0, _i18nUtils.resolveText)(row.airline, language);
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
className: "flex w-full items-center gap-2 py-2.5 text-left",
|
|
49
|
+
onClick: () => onSelectRow?.(row),
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
51
|
+
className: `w-12 shrink-0 text-sm font-bold ${c.title}`,
|
|
52
|
+
children: row.time
|
|
53
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
54
|
+
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
55
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
56
|
+
className: "h-2 w-2 shrink-0 rounded-full",
|
|
57
|
+
style: {
|
|
58
|
+
backgroundColor: row.accent ?? c.iconColor
|
|
59
|
+
}
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
61
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
63
|
+
className: `truncate text-sm font-semibold ${c.title}`,
|
|
64
|
+
children: [city, " \xB7 ", row.code]
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
66
|
+
className: `truncate text-xs ${c.subtitle}`,
|
|
67
|
+
children: [airline, " \xB7 ", row.flightNumber]
|
|
68
|
+
})]
|
|
69
|
+
})]
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
71
|
+
className: `w-10 shrink-0 text-center text-sm font-semibold ${c.title}`,
|
|
72
|
+
children: row.gate ?? '—'
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
74
|
+
className: `shrink-0 rounded-full px-2 py-1 text-xs font-semibold ${s.badgeBg} ${s.badgeText}`,
|
|
75
|
+
children: statusLabel
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
80
|
+
className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
|
|
81
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
82
|
+
className: "flex items-center gap-3",
|
|
83
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
84
|
+
className: `flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${c.iconBg}`,
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIcon.PlaneIcon, {
|
|
86
|
+
size: 20,
|
|
87
|
+
color: c.iconColor
|
|
88
|
+
})
|
|
89
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
90
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
91
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
92
|
+
className: `truncate text-base font-bold ${c.title}`,
|
|
93
|
+
children: [airport, " \xB7 ", board.code]
|
|
94
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
95
|
+
className: "flex items-center gap-1.5",
|
|
96
|
+
children: [board.live ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
97
|
+
className: "h-1.5 w-1.5 rounded-full bg-emerald-400"
|
|
98
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
99
|
+
className: `truncate text-xs ${c.subtitle}`,
|
|
100
|
+
children: [board.live ? 'Live' : 'Schedule', board.updatedAt ? ` · updated ${board.updatedAt}` : '']
|
|
101
|
+
})]
|
|
102
|
+
})]
|
|
103
|
+
}), hasArrivals ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
|
+
className: "flex shrink-0 rounded-full bg-black/20 p-0.5",
|
|
105
|
+
children: ['departures', 'arrivals'].map(t => /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
106
|
+
type: "button",
|
|
107
|
+
onClick: () => setTab(t),
|
|
108
|
+
className: `rounded-full px-3 py-1 text-xs font-semibold ${tab === t ? 'bg-indigo-500 text-white' : c.subtitle}`,
|
|
109
|
+
children: t === 'arrivals' ? 'Arrivals' : 'Departures'
|
|
110
|
+
}, t))
|
|
111
|
+
}) : null]
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
+
className: `my-3 h-px ${c.divider}`
|
|
114
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
115
|
+
className: "flex items-center gap-2 pb-1",
|
|
116
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
117
|
+
className: `w-12 shrink-0 text-[10px] font-semibold uppercase tracking-wide ${c.subtitle}`,
|
|
118
|
+
children: "Time"
|
|
119
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
120
|
+
className: `flex-1 text-[10px] font-semibold uppercase tracking-wide ${c.subtitle}`,
|
|
121
|
+
children: "Flight \xB7 Destination"
|
|
122
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
123
|
+
className: `w-10 shrink-0 text-center text-[10px] font-semibold uppercase tracking-wide ${c.subtitle}`,
|
|
124
|
+
children: "Gate"
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
126
|
+
className: `text-[10px] font-semibold uppercase tracking-wide ${c.subtitle}`,
|
|
127
|
+
children: "Status"
|
|
128
|
+
})]
|
|
129
|
+
}), head.map((row, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
130
|
+
children: [index > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
|
+
className: `h-px ${c.divider}`
|
|
132
|
+
}) : null, renderRow(row)]
|
|
133
|
+
}, row.id)), hasMore ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsible.Collapsible, {
|
|
134
|
+
expanded: expanded,
|
|
135
|
+
children: rest.map(row => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
136
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
137
|
+
className: `h-px ${c.divider}`
|
|
138
|
+
}), renderRow(row)]
|
|
139
|
+
}, row.id))
|
|
140
|
+
}) : null, hasMore ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
141
|
+
type: "button",
|
|
142
|
+
onClick: toggle,
|
|
143
|
+
className: `mt-2 flex w-full items-center justify-center gap-1.5 rounded-xl border py-2 text-sm font-medium ${c.actionBorder} ${c.actionText}`,
|
|
144
|
+
children: [expanded ? 'Show less' : `View all ${noun}`, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
145
|
+
className: `transition-transform ${expanded ? 'rotate-180' : ''}`,
|
|
146
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIcon.ChevronIcon, {
|
|
147
|
+
size: 16,
|
|
148
|
+
color: c.mutedIconColor
|
|
149
|
+
})
|
|
150
|
+
})]
|
|
151
|
+
}) : null]
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=flight-board.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_themeUtils","_flightUtils","_i18nUtils","_useExpandableList","_collapsible","_planeIcon","_chevronIcon","_chatModel","_jsxRuntime","BOARD_COLLAPSED_COUNT","FlightBoard","data","theme","Theme","Dark","language","onSelect","c","getThemeClasses","board","Array","isArray","tab","setTab","useState","onSelectRow","arrivals","hasArrivals","length","rows","departures","head","rest","expanded","hasMore","toggle","useExpandableList","airport","resolveText","noun","renderRow","row","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","label","city","airline","jsxs","type","className","onClick","children","jsx","title","time","style","backgroundColor","accent","iconColor","code","subtitle","flightNumber","gate","badgeBg","badgeText","surface","border","iconBg","PlaneIcon","size","color","live","updatedAt","map","t","divider","index","Fragment","id","Collapsible","actionBorder","actionText","ChevronIcon","mutedIconColor"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight-board/flight-board.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IA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D,OAAO,gBACN,IAAA1B,WAAA,CAAA2C,IAAA;MACEC,IAAI,EAAC,QAAQ;MACbE,OAAO,EAAEnB,MAAO;MAChBkB,SAAS,EAAE,mGAAmGpC,CAAC,CAACmE,YAAY,IAAInE,CAAC,CAACoE,UAAU,EAAG;MAAA9B,QAAA,GAE9ItB,QAAQ,GAAG,WAAW,GAAG,YAAYM,IAAI,EAAE,eAC5C,IAAA/B,WAAA,CAAAgD,GAAA;QAAMH,SAAS,EAAE,wBAAwBpB,QAAQ,GAAG,YAAY,GAAG,EAAE,EAAG;QAAAsB,QAAA,eACtE,IAAA/C,WAAA,CAAAgD,GAAA,EAAClD,YAAA,CAAAgF,WAAW;UAACb,IAAI,EAAE,EAAG;UAACC,KAAK,EAAEzD,CAAC,CAACsE;QAAe,CAAE;MAAC,CAC9C,CAAC;IAAA,CACD,CAAC,GACP,IAAI;EAAA,CACL,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight-board/flight-board.model.ts"],"mappings":"","ignoreList":[]}
|