@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.
- 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/event/event.js +5 -3
- package/lib/commonjs/features/chat/components/event/event.js.map +1 -1
- package/lib/commonjs/features/chat/components/event/event.native.js +5 -3
- package/lib/commonjs/features/chat/components/event/event.native.js.map +1 -1
- 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/price.utils.js +4 -4
- package/lib/commonjs/utils/price.utils.js.map +1 -1
- 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/utils/time.utils.js +51 -0
- package/lib/commonjs/utils/time.utils.js.map +1 -0
- 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/event/event.js +5 -3
- package/lib/module/features/chat/components/event/event.js.map +1 -1
- package/lib/module/features/chat/components/event/event.native.js +5 -3
- package/lib/module/features/chat/components/event/event.native.js.map +1 -1
- 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/price.utils.js +4 -4
- package/lib/module/utils/price.utils.js.map +1 -1
- 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/utils/time.utils.js +46 -0
- package/lib/module/utils/time.utils.js.map +1 -0
- 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/event/event.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts +3 -1
- package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/event/event.native.d.ts.map +1 -1
- 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/utils/time.utils.d.ts +3 -0
- package/lib/typescript/commonjs/utils/time.utils.d.ts.map +1 -0
- 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/event/event.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/event/event.model.d.ts +3 -1
- package/lib/typescript/module/features/chat/components/event/event.model.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/event/event.native.d.ts.map +1 -1
- 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/utils/time.utils.d.ts +3 -0
- package/lib/typescript/module/utils/time.utils.d.ts.map +1 -0
- 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/event/event.model.ts +3 -1
- package/src/features/chat/components/event/event.native.tsx +6 -2
- package/src/features/chat/components/event/event.tsx +6 -2
- 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/price.utils.ts +4 -4
- 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/utils/time.utils.ts +58 -0
- package/src/web.ts +11 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FlightCard = FlightCard;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _themeUtils = require("../../../../utils/theme.utils.js");
|
|
10
|
+
var _flightUtils = require("../../../../utils/flight.utils.js");
|
|
11
|
+
var _i18nUtils = require("../../../../utils/i18n.utils.js");
|
|
12
|
+
var _collapsibleNative = require("../common/collapsible.native.js");
|
|
13
|
+
var _planeIconNative = require("../common/plane-icon.native.js");
|
|
14
|
+
var _chevronIconNative = require("../common/chevron-icon.native.js");
|
|
15
|
+
var _chatModel = require("../../model/chat.model.js");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function FlightCard({
|
|
18
|
+
item,
|
|
19
|
+
theme,
|
|
20
|
+
language,
|
|
21
|
+
accent,
|
|
22
|
+
defaultExpanded,
|
|
23
|
+
onSelect
|
|
24
|
+
}) {
|
|
25
|
+
const c = (0, _themeUtils.getThemeClasses)(theme);
|
|
26
|
+
const [expanded, setExpanded] = (0, _react.useState)(defaultExpanded);
|
|
27
|
+
const s = (0, _flightUtils.getFlightStatusStyle)(item.status ?? _chatModel.FlightStatus.OnTime, theme);
|
|
28
|
+
const statusLabel = item.statusLabel ? (0, _i18nUtils.resolveText)(item.statusLabel, language) : s.label;
|
|
29
|
+
const airline = (0, _i18nUtils.resolveText)(item.airline, language);
|
|
30
|
+
const fromCity = (0, _i18nUtils.resolveText)(item.from.city, language);
|
|
31
|
+
const toCity = (0, _i18nUtils.resolveText)(item.to.city, language);
|
|
32
|
+
const subline = item.date ? `${(0, _i18nUtils.resolveText)(item.date, language)}${item.terminal ? ` · ${(0, _i18nUtils.resolveText)(item.terminal, language)}` : ''}` : '';
|
|
33
|
+
const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
|
|
34
|
+
const iconBg = accent ? c.iconBg : c.mutedIconBg;
|
|
35
|
+
const iconColor = accent ? c.iconColor : c.mutedIconColor;
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
37
|
+
className: `rounded-2xl border p-3 ${c.surface} ${c.border}`,
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
39
|
+
className: "flex-row items-center gap-3",
|
|
40
|
+
onPress: () => {
|
|
41
|
+
setExpanded(v => !v);
|
|
42
|
+
onSelect?.(item);
|
|
43
|
+
},
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
45
|
+
className: `h-11 w-11 items-center justify-center rounded-xl ${iconBg}`,
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
|
|
47
|
+
size: 20,
|
|
48
|
+
color: iconColor
|
|
49
|
+
})
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
51
|
+
className: "flex-1 gap-0.5",
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
53
|
+
className: `text-base font-bold down-sm:text-sm ${c.title}`,
|
|
54
|
+
numberOfLines: 2,
|
|
55
|
+
children: [airline, " \xB7 ", item.flightNumber]
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
57
|
+
className: `text-xs ${c.subtitle}`,
|
|
58
|
+
numberOfLines: 1,
|
|
59
|
+
children: expanded ? subline || compact : compact
|
|
60
|
+
})]
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
62
|
+
className: `flex-row items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`,
|
|
63
|
+
children: [s.showDot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
64
|
+
className: `h-1.5 w-1.5 rounded-full ${s.dot}`
|
|
65
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
66
|
+
className: `text-xs font-semibold ${s.badgeText}`,
|
|
67
|
+
children: statusLabel
|
|
68
|
+
})]
|
|
69
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
70
|
+
className: expanded ? 'rotate-180' : undefined,
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chevronIconNative.ChevronIcon, {
|
|
72
|
+
size: 18,
|
|
73
|
+
color: c.mutedIconColor
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsibleNative.Collapsible, {
|
|
77
|
+
expanded: expanded,
|
|
78
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
79
|
+
className: "mt-4 flex-row items-center",
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
81
|
+
className: "items-start",
|
|
82
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
83
|
+
className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
|
|
84
|
+
children: item.from.code
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
86
|
+
className: `text-base font-semibold ${c.title}`,
|
|
87
|
+
children: item.from.time
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
89
|
+
className: `text-xs ${c.subtitle}`,
|
|
90
|
+
children: fromCity
|
|
91
|
+
})]
|
|
92
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
93
|
+
className: "flex-1 items-center px-3",
|
|
94
|
+
children: [item.duration ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
95
|
+
className: `mb-1 text-xs ${c.subtitle}`,
|
|
96
|
+
children: item.duration
|
|
97
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
98
|
+
className: "w-full flex-row items-center",
|
|
99
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
100
|
+
className: `h-2 w-2 rounded-full ${s.dot}`
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
102
|
+
className: `flex-1 border-t border-dashed ${c.dashLine}`
|
|
103
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
104
|
+
className: "rotate-90",
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_planeIconNative.PlaneIcon, {
|
|
106
|
+
size: 16,
|
|
107
|
+
color: c.iconColor
|
|
108
|
+
})
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
110
|
+
className: `flex-1 border-t border-dashed ${c.dashLine}`
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
112
|
+
className: `h-2 w-2 rounded-full ${s.dot}`
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
116
|
+
className: "items-end",
|
|
117
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
118
|
+
className: `text-3xl font-bold down-sm:text-2xl ${c.title}`,
|
|
119
|
+
children: item.to.code
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
121
|
+
className: `text-base font-semibold ${c.title}`,
|
|
122
|
+
children: item.to.time
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
124
|
+
className: `text-xs ${c.subtitle}`,
|
|
125
|
+
children: toCity
|
|
126
|
+
})]
|
|
127
|
+
})]
|
|
128
|
+
})
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=flight-card.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_themeUtils","_flightUtils","_i18nUtils","_collapsibleNative","_planeIconNative","_chevronIconNative","_chatModel","_jsxRuntime","FlightCard","item","theme","language","accent","defaultExpanded","onSelect","c","getThemeClasses","expanded","setExpanded","useState","s","getFlightStatusStyle","status","FlightStatus","OnTime","statusLabel","resolveText","label","airline","fromCity","from","city","toCity","to","subline","date","terminal","compact","code","time","iconBg","mutedIconBg","iconColor","mutedIconColor","jsxs","View","className","surface","border","children","Pressable","onPress","v","jsx","PlaneIcon","size","color","Text","title","numberOfLines","flightNumber","subtitle","badgeBg","showDot","dot","badgeText","undefined","ChevronIcon","Collapsible","duration","dashLine"],"sourceRoot":"../../../../../../src","sources":["features/chat/components/flight/flight-card.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAA6D,IAAAS,WAAA,GAAAT,OAAA;AAY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ACH;IAAC,CACI,CAAC;EAAA,CACV,CAAC;AAEX","ignoreList":[]}
|
|
@@ -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,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;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C,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;EACnD,MAAMkB,QAAQ,GAAG,IAAAH,sBAAW,EAACjB,IAAI,CAACqB,IAAI,CAACC,IAAI,EAAEpB,QAAQ,CAAC;EACtD,MAAMqB,MAAM,GAAG,IAAAN,sBAAW,EAACjB,IAAI,CAACwB,EAAE,CAACF,IAAI,EAAEpB,QAAQ,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|
|
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":[]}
|