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