@adminide-stack/clock-tik-mobile 0.0.0-stage → 12.0.37-alpha.1
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/.claude-flow/data/pending-insights.jsonl +43 -0
- package/.claude-flow/sessions/session-1794323376548.json +14 -0
- package/CHANGELOG.md +41 -0
- package/jest.config.cjs +22 -0
- package/lib/assets/home/loop-day.jpg +0 -0
- package/lib/assets/home/loop-day.mp4 +0 -0
- package/lib/assets/home/loop-time-back.jpg +0 -0
- package/lib/assets/home/loop-time-back.mp4 +0 -0
- package/lib/assets/home/loop-where.jpg +0 -0
- package/lib/assets/home/loop-where.mp4 +0 -0
- package/lib/assets/home/reel-gym.jpg +0 -0
- package/lib/assets/home/reel-gym.mp4 +0 -0
- package/lib/assets/home/reel-internet.jpg +0 -0
- package/lib/assets/home/reel-internet.mp4 +0 -0
- package/lib/assets/icon.png +0 -0
- package/lib/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
- package/lib/assets/lottie/lucy-mark-calendar.json +1827 -0
- package/lib/assets/lottie/lucy-mark-call.json +1470 -0
- package/lib/assets/lottie/lucy-mark-connect.json +2552 -0
- package/lib/assets/lottie/lucy-mark-details.json +1735 -0
- package/lib/assets/lottie/lucy-mark-email.json +1363 -0
- package/lib/assets/lottie/lucy-mark-message.json +1154 -0
- package/lib/assets/lottie/lucy-mark-search.json +1067 -0
- package/lib/assets/lottie/lucy-mark-think.json +1253 -0
- package/lib/assets/lottie/lucy-mark-write.json +1532 -0
- package/lib/assets/lottie/time-back.json +16458 -0
- package/lib/assets/lottie/where-lucy-works-chat.json +6170 -0
- package/lib/assets/lottie/where-lucy-works-cloud.json +10066 -0
- package/lib/assets/lottie/where-lucy-works-mine-none.json +2478 -0
- package/lib/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
- package/lib/assets/lottie/where-lucy-works-mine-online.json +7881 -0
- package/lib/assets/sounds/hours-back.m4a +0 -0
- package/lib/assets/sounds/meet-lucy.m4a +0 -0
- package/lib/assets/sounds/power-on.m4a +0 -0
- package/lib/assets/sounds/wind-back.m4a +0 -0
- package/lib/assets/sounds/youre-in.m4a +0 -0
- package/lib/chat/agent.js +358 -0
- package/lib/chat/agent.js.map +1 -0
- package/lib/chat/appFront.js +32 -0
- package/lib/chat/appFront.js.map +1 -0
- package/lib/chat/auth.js +370 -0
- package/lib/chat/auth.js.map +1 -0
- package/lib/chat/chores.js +360 -0
- package/lib/chat/chores.js.map +1 -0
- package/lib/chat/connectors.js +45 -0
- package/lib/chat/connectors.js.map +1 -0
- package/lib/chat/jobs.js +223 -0
- package/lib/chat/jobs.js.map +1 -0
- package/lib/chat/lucyMotion.js +6 -0
- package/lib/chat/lucyMotion.js.map +1 -0
- package/lib/chat/protocol.js +111 -0
- package/lib/chat/protocol.js.map +1 -0
- package/lib/chat/results.js +133 -0
- package/lib/chat/results.js.map +1 -0
- package/lib/chat/store.js +81 -0
- package/lib/chat/store.js.map +1 -0
- package/lib/chat/useDictation.js +168 -0
- package/lib/chat/useDictation.js.map +1 -0
- package/lib/chat/useLucyChat.js +451 -0
- package/lib/chat/useLucyChat.js.map +1 -0
- package/lib/chat/useMyComputer.js +32 -0
- package/lib/chat/useMyComputer.js.map +1 -0
- package/lib/chat/whereLucyWorks.js +52 -0
- package/lib/chat/whereLucyWorks.js.map +1 -0
- package/lib/chat/workspace.js +124 -0
- package/lib/chat/workspace.js.map +1 -0
- package/lib/components/AreaShot.js +289 -0
- package/lib/components/AreaShot.js.map +1 -0
- package/lib/components/Backdrops.js +262 -0
- package/lib/components/Backdrops.js.map +1 -0
- package/lib/components/BottomSheet.js +61 -0
- package/lib/components/BottomSheet.js.map +1 -0
- package/lib/components/ChatSheets.js +429 -0
- package/lib/components/ChatSheets.js.map +1 -0
- package/lib/components/ConnectorLogo.js +91 -0
- package/lib/components/ConnectorLogo.js.map +1 -0
- package/lib/components/CustomDrawer.js +534 -0
- package/lib/components/CustomDrawer.js.map +1 -0
- package/lib/components/IdeasPane.js +394 -0
- package/lib/components/IdeasPane.js.map +1 -0
- package/lib/components/ImessageSheet.js +261 -0
- package/lib/components/ImessageSheet.js.map +1 -0
- package/lib/components/KeyboardAvoider.js +29 -0
- package/lib/components/KeyboardAvoider.js.map +1 -0
- package/lib/components/Logo.js +81 -0
- package/lib/components/Logo.js.map +1 -0
- package/lib/components/LucyWorking.js +67 -0
- package/lib/components/LucyWorking.js.map +1 -0
- package/lib/components/Markdown.js +260 -0
- package/lib/components/Markdown.js.map +1 -0
- package/lib/components/Media.js +93 -0
- package/lib/components/Media.js.map +1 -0
- package/lib/components/MessagesAppIcon.js +23 -0
- package/lib/components/MessagesAppIcon.js.map +1 -0
- package/lib/components/MicButton.js +71 -0
- package/lib/components/MicButton.js.map +1 -0
- package/lib/components/ResultCards.js +974 -0
- package/lib/components/ResultCards.js.map +1 -0
- package/lib/components/SignInPrompt.js +148 -0
- package/lib/components/SignInPrompt.js.map +1 -0
- package/lib/components/SignedOut.js +38 -0
- package/lib/components/SignedOut.js.map +1 -0
- package/lib/components/TalkToLucyHero.js +487 -0
- package/lib/components/TalkToLucyHero.js.map +1 -0
- package/lib/components/TalkToLucySheet.js +182 -0
- package/lib/components/TalkToLucySheet.js.map +1 -0
- package/lib/components/WhereLucyWorks.js +277 -0
- package/lib/components/WhereLucyWorks.js.map +1 -0
- package/lib/components/WorkspaceSection.js +271 -0
- package/lib/components/WorkspaceSection.js.map +1 -0
- package/lib/components/YantraMark.js +13 -0
- package/lib/components/YantraMark.js.map +1 -0
- package/lib/components/drawerHeader.js +38 -0
- package/lib/components/drawerHeader.js.map +1 -0
- package/lib/components/lottieInstalled.js +6 -0
- package/lib/components/lottieInstalled.js.map +1 -0
- package/lib/components/ui.js +550 -0
- package/lib/components/ui.js.map +1 -0
- package/lib/components/useSignOut.js +7 -0
- package/lib/components/useSignOut.js.map +1 -0
- package/lib/components/viewport.js +121 -0
- package/lib/components/viewport.js.map +1 -0
- package/lib/components/voiceDial.js +10 -0
- package/lib/components/voiceDial.js.map +1 -0
- package/lib/compute.js +157 -0
- package/lib/compute.js.map +1 -0
- package/lib/config/env-config.js +27 -0
- package/lib/config/env-config.js.map +1 -0
- package/lib/config/routes.js +15 -0
- package/lib/config/routes.js.map +1 -0
- package/lib/content.js +25 -0
- package/lib/content.js.map +1 -0
- package/lib/hooks/keyboardCover.js +39 -0
- package/lib/hooks/keyboardCover.js.map +1 -0
- package/lib/hooks/useKeyboard.js +121 -0
- package/lib/hooks/useKeyboard.js.map +1 -0
- package/lib/hooks/useReducedMotion.js +13 -0
- package/lib/hooks/useReducedMotion.js.map +1 -0
- package/lib/imessage/openMessages.js +25 -0
- package/lib/imessage/openMessages.js.map +1 -0
- package/lib/imessage/platform.js +12 -0
- package/lib/imessage/platform.js.map +1 -0
- package/lib/imessage/textLink.js +262 -0
- package/lib/imessage/textLink.js.map +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/live/card.js +28 -0
- package/lib/live/card.js.map +1 -0
- package/lib/live/liveActivity.js +144 -0
- package/lib/live/liveActivity.js.map +1 -0
- package/lib/module.js +3 -0
- package/lib/module.js.map +1 -0
- package/lib/offer/BlackFridayOffer.js +378 -0
- package/lib/offer/BlackFridayOffer.js.map +1 -0
- package/lib/offer/blackFriday.js +78 -0
- package/lib/offer/blackFriday.js.map +1 -0
- package/lib/offer/parts.js +624 -0
- package/lib/offer/parts.js.map +1 -0
- package/lib/offer/state.js +63 -0
- package/lib/offer/state.js.map +1 -0
- package/lib/push/push.js +142 -0
- package/lib/push/push.js.map +1 -0
- package/lib/push/usePushNotifications.js +39 -0
- package/lib/push/usePushNotifications.js.map +1 -0
- package/lib/routes.json +175 -0
- package/lib/screens/Account/index.js +209 -0
- package/lib/screens/Account/index.js.map +1 -0
- package/lib/screens/Chat/index.js +710 -0
- package/lib/screens/Chat/index.js.map +1 -0
- package/lib/screens/Chores/index.js +18 -0
- package/lib/screens/Chores/index.js.map +1 -0
- package/lib/screens/Connectors/index.js +17 -0
- package/lib/screens/Connectors/index.js.map +1 -0
- package/lib/screens/History/index.js +380 -0
- package/lib/screens/History/index.js.map +1 -0
- package/lib/screens/Home/index.js +2715 -0
- package/lib/screens/Home/index.js.map +1 -0
- package/lib/screens/Home/media.js +25 -0
- package/lib/screens/Home/media.js.map +1 -0
- package/lib/screens/Welcome/index.js +1066 -0
- package/lib/screens/Welcome/index.js.map +1 -0
- package/lib/talk/talkToLucy.js +139 -0
- package/lib/talk/talkToLucy.js.map +1 -0
- package/lib/theme/colors.js +29 -0
- package/lib/theme/colors.js.map +1 -0
- package/lib/theme/fonts.js +17 -0
- package/lib/theme/fonts.js.map +1 -0
- package/lib/theme/muse.js +134 -0
- package/lib/theme/muse.js.map +1 -0
- package/lib/utils/links.js +54 -0
- package/lib/utils/links.js.map +1 -0
- package/lib/utils/yantraLinks.js +68 -0
- package/lib/utils/yantraLinks.js.map +1 -0
- package/lib/welcome/flow.js +375 -0
- package/lib/welcome/flow.js.map +1 -0
- package/lib/welcome/haptics.js +125 -0
- package/lib/welcome/haptics.js.map +1 -0
- package/lib/welcome/parts.js +1996 -0
- package/lib/welcome/parts.js.map +1 -0
- package/lib/welcome/powerOn.js +29 -0
- package/lib/welcome/powerOn.js.map +1 -0
- package/lib/welcome/seen.js +41 -0
- package/lib/welcome/seen.js.map +1 -0
- package/lib/welcome/sound.js +110 -0
- package/lib/welcome/sound.js.map +1 -0
- package/package.json +66 -5
- package/rollup.config.mjs +42 -0
- package/src/.claude-flow/data/pending-insights.jsonl +19 -0
- package/src/.claude-flow/sessions/session-1795013028422.json +14 -0
- package/src/__tests__/auth.test.ts +94 -0
- package/src/__tests__/blackFriday.test.ts +75 -0
- package/src/__tests__/cardTokens.test.ts +77 -0
- package/src/__tests__/chores.test.ts +188 -0
- package/src/__tests__/choresList.test.ts +100 -0
- package/src/__tests__/connectLink.test.ts +21 -0
- package/src/__tests__/content.test.ts +54 -0
- package/src/__tests__/dictation.test.ts +186 -0
- package/src/__tests__/envConfig.test.ts +14 -0
- package/src/__tests__/haptics.test.ts +202 -0
- package/src/__tests__/jobs.test.ts +130 -0
- package/src/__tests__/keyboardCover.test.ts +84 -0
- package/src/__tests__/liveCard.test.ts +39 -0
- package/src/__tests__/lockedPhone.test.ts +355 -0
- package/src/__tests__/lucyMotion.test.ts +34 -0
- package/src/__tests__/platform.test.ts +32 -0
- package/src/__tests__/powerOn.test.ts +62 -0
- package/src/__tests__/protocol.test.ts +125 -0
- package/src/__tests__/push.test.ts +111 -0
- package/src/__tests__/results.test.ts +256 -0
- package/src/__tests__/sound.test.ts +248 -0
- package/src/__tests__/talkToLucy.test.ts +205 -0
- package/src/__tests__/textLink.test.ts +91 -0
- package/src/__tests__/voiceDial.test.ts +53 -0
- package/src/__tests__/welcomeFlow.test.ts +157 -0
- package/src/__tests__/whereLucyWorks.test.ts +81 -0
- package/src/__tests__/yantraLinks.test.ts +96 -0
- package/src/assets/home/loop-day.jpg +0 -0
- package/src/assets/home/loop-day.mp4 +0 -0
- package/src/assets/home/loop-time-back.jpg +0 -0
- package/src/assets/home/loop-time-back.mp4 +0 -0
- package/src/assets/home/loop-where.jpg +0 -0
- package/src/assets/home/loop-where.mp4 +0 -0
- package/src/assets/home/reel-gym.jpg +0 -0
- package/src/assets/home/reel-gym.mp4 +0 -0
- package/src/assets/home/reel-internet.jpg +0 -0
- package/src/assets/home/reel-internet.mp4 +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
- package/src/assets/lottie/lucy-mark-calendar.json +1827 -0
- package/src/assets/lottie/lucy-mark-call.json +1470 -0
- package/src/assets/lottie/lucy-mark-connect.json +2552 -0
- package/src/assets/lottie/lucy-mark-details.json +1735 -0
- package/src/assets/lottie/lucy-mark-email.json +1363 -0
- package/src/assets/lottie/lucy-mark-message.json +1154 -0
- package/src/assets/lottie/lucy-mark-search.json +1067 -0
- package/src/assets/lottie/lucy-mark-think.json +1253 -0
- package/src/assets/lottie/lucy-mark-write.json +1532 -0
- package/src/assets/lottie/time-back.json +16458 -0
- package/src/assets/lottie/where-lucy-works-chat.json +6170 -0
- package/src/assets/lottie/where-lucy-works-cloud.json +10066 -0
- package/src/assets/lottie/where-lucy-works-mine-none.json +2478 -0
- package/src/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
- package/src/assets/lottie/where-lucy-works-mine-online.json +7881 -0
- package/src/assets/sounds/hours-back.m4a +0 -0
- package/src/assets/sounds/meet-lucy.m4a +0 -0
- package/src/assets/sounds/power-on.m4a +0 -0
- package/src/assets/sounds/wind-back.m4a +0 -0
- package/src/assets/sounds/youre-in.m4a +0 -0
- package/src/chat/.claude-flow/data/pending-insights.jsonl +1 -0
- package/src/chat/agent.ts +376 -0
- package/src/chat/appFront.ts +39 -0
- package/src/chat/auth.ts +433 -0
- package/src/chat/chores.ts +394 -0
- package/src/chat/connectors.ts +75 -0
- package/src/chat/jobs.ts +228 -0
- package/src/chat/lucyMotion.ts +33 -0
- package/src/chat/protocol.ts +192 -0
- package/src/chat/results.ts +224 -0
- package/src/chat/store.ts +87 -0
- package/src/chat/useDictation.ts +201 -0
- package/src/chat/useLucyChat.ts +458 -0
- package/src/chat/useMyComputer.ts +41 -0
- package/src/chat/whereLucyWorks.ts +97 -0
- package/src/chat/workspace.ts +127 -0
- package/src/components/.claude-flow/data/pending-insights.jsonl +3 -0
- package/src/components/AreaShot.tsx +239 -0
- package/src/components/Backdrops.tsx +323 -0
- package/src/components/BottomSheet.tsx +96 -0
- package/src/components/ChatSheets.tsx +565 -0
- package/src/components/ConnectorLogo.tsx +116 -0
- package/src/components/CustomDrawer.tsx +526 -0
- package/src/components/IdeasPane.tsx +318 -0
- package/src/components/ImessageSheet.tsx +280 -0
- package/src/components/KeyboardAvoider.tsx +45 -0
- package/src/components/Logo.tsx +97 -0
- package/src/components/LucyWorking.tsx +122 -0
- package/src/components/Markdown.tsx +219 -0
- package/src/components/Media.tsx +173 -0
- package/src/components/MessagesAppIcon.tsx +51 -0
- package/src/components/MicButton.tsx +92 -0
- package/src/components/ResultCards.tsx +1067 -0
- package/src/components/SignInPrompt.tsx +182 -0
- package/src/components/SignedOut.tsx +47 -0
- package/src/components/TalkToLucyHero.tsx +540 -0
- package/src/components/TalkToLucySheet.tsx +208 -0
- package/src/components/VoiceOrb.tsx +364 -0
- package/src/components/WhereLucyWorks.tsx +261 -0
- package/src/components/WorkspaceSection.tsx +307 -0
- package/src/components/YantraMark.tsx +30 -0
- package/src/components/drawerHeader.tsx +46 -0
- package/src/components/kit.tsx +309 -0
- package/src/components/lottieInstalled.ts +7 -0
- package/src/components/ui.tsx +700 -0
- package/src/components/useSignOut.ts +21 -0
- package/src/components/viewport.tsx +166 -0
- package/src/components/voiceDial.ts +45 -0
- package/src/compute.ts +168 -0
- package/src/config/env-config.ts +50 -0
- package/src/config/routes.ts +28 -0
- package/src/content.ts +217 -0
- package/src/hooks/keyboardCover.ts +70 -0
- package/src/hooks/useKeyboard.ts +135 -0
- package/src/hooks/useReducedMotion.ts +19 -0
- package/src/imessage/openMessages.ts +53 -0
- package/src/imessage/platform.ts +32 -0
- package/src/imessage/textLink.ts +307 -0
- package/src/index.ts +24 -0
- package/src/live/card.ts +62 -0
- package/src/live/liveActivity.ts +192 -0
- package/src/module.ts +8 -0
- package/src/offer/BlackFridayOffer.tsx +394 -0
- package/src/offer/blackFriday.ts +109 -0
- package/src/offer/parts.tsx +650 -0
- package/src/offer/state.ts +78 -0
- package/src/push/push.ts +171 -0
- package/src/push/usePushNotifications.ts +47 -0
- package/src/screens/Account/index.tsx +310 -0
- package/src/screens/Chat/.claude-flow/data/pending-insights.jsonl +4 -0
- package/src/screens/Chat/index.tsx +891 -0
- package/src/screens/Chores/index.tsx +35 -0
- package/src/screens/Connectors/index.tsx +35 -0
- package/src/screens/History/index.tsx +346 -0
- package/src/screens/Home/index.tsx +2776 -0
- package/src/screens/Home/media.ts +31 -0
- package/src/screens/Welcome/index.tsx +1182 -0
- package/src/talk/talkToLucy.ts +187 -0
- package/src/theme/colors.ts +38 -0
- package/src/theme/fonts.ts +30 -0
- package/src/theme/muse.ts +86 -0
- package/src/utils/links.ts +84 -0
- package/src/utils/yantraLinks.ts +94 -0
- package/src/welcome/flow.ts +418 -0
- package/src/welcome/haptics.ts +179 -0
- package/src/welcome/parts.tsx +2160 -0
- package/src/welcome/powerOn.ts +84 -0
- package/src/welcome/seen.ts +68 -0
- package/src/welcome/sound.ts +173 -0
- package/tools/lottie/chat.motion +0 -0
- package/tools/lottie/cloud.motion +0 -0
- package/tools/lottie/generate.mjs +1209 -0
- package/tools/lottie/inter-glyphs.json +4416 -0
- package/tools/lottie/lucy-mark-calendar.motion +0 -0
- package/tools/lottie/lucy-mark-call.motion +0 -0
- package/tools/lottie/lucy-mark-connect.motion +0 -0
- package/tools/lottie/lucy-mark-details.motion +0 -0
- package/tools/lottie/lucy-mark-email.motion +0 -0
- package/tools/lottie/lucy-mark-message.motion +0 -0
- package/tools/lottie/lucy-mark-search.motion +0 -0
- package/tools/lottie/lucy-mark-think.motion +0 -0
- package/tools/lottie/lucy-mark-write.motion +0 -0
- package/tools/lottie/mark.json +1 -0
- package/tools/lottie/mine-none.motion +0 -0
- package/tools/lottie/mine-offline.motion +0 -0
- package/tools/lottie/mine-online.motion +0 -0
- package/tools/lottie/time-back.mjs +604 -0
- package/tools/sounds/render.mjs +730 -0
- package/tsconfig.json +17 -0
- package/README.md +0 -3
|
@@ -0,0 +1,974 @@
|
|
|
1
|
+
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {memo,useMemo,useState}from'react';import {View,StyleSheet,ScrollView,Text,Pressable,LayoutAnimation,Image}from'react-native';import Svg,{Path}from'react-native-svg';import {MARK}from'./Logo.js';import {useReducedMotion}from'../hooks/useReducedMotion.js';import {tick,tap}from'../welcome/haptics.js';import {yantraAppUrl,openInSheet}from'../utils/links.js';import {shownRows,noteFor,actionWord,moreSurface,surfaceUrl,describeFlight,legWhen,conditionOf,describeItem,beyondLabel,BADGES,splitClock}from'../chat/results.js';import {ui,radius,lift}from'../theme/muse.js';import {cardPicks,isFallbackFavicon}from'@adminide-stack/clock-tik-browser/lib/pages/Home/chat/results.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const ring = (cx, cy, r) => `M${cx - r} ${cy}a${r} ${r} 0 1 0 ${2 * r} 0a${r} ${r} 0 1 0 ${ -2 * r} 0`;
|
|
21
|
+
const GLYPHS = {
|
|
22
|
+
plane: ["M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"],
|
|
23
|
+
bag: ["M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z", "M3 6h18", "M16 10a4 4 0 0 1-8 0"],
|
|
24
|
+
bed: ["M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8", "M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4", "M12 4v6", "M2 18h20"],
|
|
25
|
+
car: ["M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2", ring(7, 17, 2), "M9 17h6", ring(17, 17, 2)],
|
|
26
|
+
train: ["M8 3.1V7a4 4 0 0 0 8 0V3.1", "M9 15l-1-1", "M15 15l1-1", "M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z", "M8 19l-2 3", "M16 19l2 3"],
|
|
27
|
+
bus: ["M8 6v6", "M15 6v6", "M2 12h19.6", "M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3", ring(7, 18, 2), "M9 18h5", ring(16, 18, 2)],
|
|
28
|
+
luggage: ["M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2", "M8 18V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14", "M10 20h4", ring(16, 20, 2), ring(8, 20, 2)],
|
|
29
|
+
out: ["M7 7h10v10", "M7 17 17 7"],
|
|
30
|
+
check: ["M20 6 9 17l-5-5"],
|
|
31
|
+
down: ["m6 9 6 6 6-6"],
|
|
32
|
+
warn: ["m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3", "M12 9v4", "M12 17h.01"]
|
|
33
|
+
};
|
|
34
|
+
function Glyph({
|
|
35
|
+
name,
|
|
36
|
+
size = 18,
|
|
37
|
+
color = ui.ink,
|
|
38
|
+
weight = 1.9,
|
|
39
|
+
style
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", style, accessibilityElementsHidden: true, importantForAccessibility: "no", children: GLYPHS[name].map((d) => /* @__PURE__ */ jsx(Path, { d, fill: "none", stroke: color, strokeWidth: weight, strokeLinecap: "round", strokeLinejoin: "round" }, d)) });
|
|
42
|
+
}
|
|
43
|
+
const KIND_ICONS = {
|
|
44
|
+
flights: "plane",
|
|
45
|
+
products: "bag",
|
|
46
|
+
stays: "bed",
|
|
47
|
+
cars: "car",
|
|
48
|
+
trains: "train",
|
|
49
|
+
buses: "bus",
|
|
50
|
+
travel: "luggage"
|
|
51
|
+
};
|
|
52
|
+
const failedImages = /* @__PURE__ */ new Set();
|
|
53
|
+
function useImage(src) {
|
|
54
|
+
const [failed, setFailed] = useState(() => !src || failedImages.has(src));
|
|
55
|
+
const fail = () => {
|
|
56
|
+
if (src)
|
|
57
|
+
failedImages.add(src);
|
|
58
|
+
setFailed(true);
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
show: Boolean(src) && !failed && !failedImages.has(src),
|
|
62
|
+
fail
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const BADGE_TONES = {
|
|
66
|
+
pick: {
|
|
67
|
+
bg: ui.accentSoft,
|
|
68
|
+
fg: ui.accentText
|
|
69
|
+
},
|
|
70
|
+
cheapest: {
|
|
71
|
+
bg: "#E2F3E9",
|
|
72
|
+
fg: "#166B45"
|
|
73
|
+
},
|
|
74
|
+
fastest: {
|
|
75
|
+
bg: "#E6EEFB",
|
|
76
|
+
fg: "#1F4F9A"
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
function Badge({
|
|
80
|
+
badge
|
|
81
|
+
}) {
|
|
82
|
+
const tone = BADGE_TONES[badge];
|
|
83
|
+
return /* @__PURE__ */ jsxs(View, { style: [c.badge, {
|
|
84
|
+
backgroundColor: tone.bg
|
|
85
|
+
}], children: [
|
|
86
|
+
badge === "pick" ? /* @__PURE__ */ jsx(Svg, { width: 9, height: 9, viewBox: "0 0 16 16", accessibilityElementsHidden: true, importantForAccessibility: "no", children: /* @__PURE__ */ jsx(Path, { fill: ui.accent, d: MARK.FACE }) }) : null,
|
|
87
|
+
/* @__PURE__ */ jsx(Text, { style: [c.badgeText, {
|
|
88
|
+
color: tone.fg
|
|
89
|
+
}], children: BADGES[badge] })
|
|
90
|
+
] });
|
|
91
|
+
}
|
|
92
|
+
function BrandMark({
|
|
93
|
+
logo,
|
|
94
|
+
monogram
|
|
95
|
+
}) {
|
|
96
|
+
const image = useImage(logo);
|
|
97
|
+
return /* @__PURE__ */ jsx(View, { style: c.mark, children: image.show && logo ? /* @__PURE__ */ jsx(Image, { source: {
|
|
98
|
+
uri: logo
|
|
99
|
+
}, style: c.markImage, resizeMode: "contain", onError: image.fail, onLoad: (e) => {
|
|
100
|
+
var _a, _b, _c;
|
|
101
|
+
if (isFallbackFavicon({
|
|
102
|
+
src: logo,
|
|
103
|
+
naturalWidth: (_c = (_b = (_a = e.nativeEvent) == null ? void 0 : _a.source) == null ? void 0 : _b.width) != null ? _c : 0
|
|
104
|
+
})) {
|
|
105
|
+
image.fail();
|
|
106
|
+
}
|
|
107
|
+
} }) : /* @__PURE__ */ jsx(Text, { style: c.markText, allowFontScaling: false, children: monogram }) });
|
|
108
|
+
}
|
|
109
|
+
function ReplyButton({
|
|
110
|
+
label,
|
|
111
|
+
action,
|
|
112
|
+
sent,
|
|
113
|
+
locked,
|
|
114
|
+
waiting,
|
|
115
|
+
full,
|
|
116
|
+
onPress
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: sent ? `Sent: ${action}` : action, accessibilityState: {
|
|
119
|
+
disabled: locked
|
|
120
|
+
}, disabled: locked, onPress, hitSlop: {
|
|
121
|
+
top: 4,
|
|
122
|
+
bottom: 4,
|
|
123
|
+
left: 2,
|
|
124
|
+
right: 2
|
|
125
|
+
}, style: ({
|
|
126
|
+
pressed
|
|
127
|
+
}) => [c.reply, full && c.replyFull, sent && c.replySent, waiting && c.replyWait, pressed && c.replyPressed], children: sent ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
128
|
+
/* @__PURE__ */ jsx(Glyph, { name: "check", size: 15, color: OK_TEXT, weight: 2.4 }),
|
|
129
|
+
/* @__PURE__ */ jsx(Text, { style: [c.replyText, {
|
|
130
|
+
color: OK_TEXT
|
|
131
|
+
}], children: "Sent" })
|
|
132
|
+
] }) : /* @__PURE__ */ jsx(Text, { style: c.replyText, children: label }) });
|
|
133
|
+
}
|
|
134
|
+
function OutLink({
|
|
135
|
+
link,
|
|
136
|
+
small
|
|
137
|
+
}) {
|
|
138
|
+
if (!link)
|
|
139
|
+
return null;
|
|
140
|
+
return /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "link", accessibilityLabel: link.label, accessibilityHint: "Opens in the browser", hitSlop: small ? 6 : 3, onPress: () => openInSheet(link.href), style: ({
|
|
141
|
+
pressed
|
|
142
|
+
}) => [c.out, small && c.outSmall, pressed && {
|
|
143
|
+
backgroundColor: ui.fill
|
|
144
|
+
}], children: /* @__PURE__ */ jsx(Glyph, { name: "out", size: small ? 14 : 16, weight: 2 }) });
|
|
145
|
+
}
|
|
146
|
+
function useMore(kind) {
|
|
147
|
+
return useMemo(() => {
|
|
148
|
+
const more = moreSurface(kind);
|
|
149
|
+
const href = more ? surfaceUrl(more.host, yantraAppUrl()) : "";
|
|
150
|
+
return more && href ? {
|
|
151
|
+
more,
|
|
152
|
+
href
|
|
153
|
+
} : null;
|
|
154
|
+
}, [kind]);
|
|
155
|
+
}
|
|
156
|
+
function openSurface(href) {
|
|
157
|
+
tap();
|
|
158
|
+
openInSheet(href);
|
|
159
|
+
}
|
|
160
|
+
function SurfaceRow({
|
|
161
|
+
more,
|
|
162
|
+
href,
|
|
163
|
+
count,
|
|
164
|
+
icon
|
|
165
|
+
}) {
|
|
166
|
+
return /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "link", accessibilityLabel: `${more.label}. ${beyondLabel(count)}.`, accessibilityHint: `Opens ${more.title}`, onPress: () => openSurface(href), style: ({
|
|
167
|
+
pressed
|
|
168
|
+
}) => [c.surface, pressed && c.surfacePressed], children: [
|
|
169
|
+
/* @__PURE__ */ jsx(View, { style: c.surfaceIcon, children: /* @__PURE__ */ jsx(Glyph, { name: icon, size: 18, color: ui.accentText }) }),
|
|
170
|
+
/* @__PURE__ */ jsxs(View, { style: c.surfaceText, children: [
|
|
171
|
+
/* @__PURE__ */ jsx(Text, { style: c.surfaceTitle, children: more.label }),
|
|
172
|
+
/* @__PURE__ */ jsx(Text, { style: c.surfaceSub, children: beyondLabel(count) })
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ jsx(Glyph, { name: "out", size: 18, color: ui.ink2 })
|
|
175
|
+
] });
|
|
176
|
+
}
|
|
177
|
+
function Frame({
|
|
178
|
+
card,
|
|
179
|
+
toggle,
|
|
180
|
+
open,
|
|
181
|
+
onToggle,
|
|
182
|
+
note,
|
|
183
|
+
surface,
|
|
184
|
+
children
|
|
185
|
+
}) {
|
|
186
|
+
const icon = KIND_ICONS[card.kind];
|
|
187
|
+
return /* @__PURE__ */ jsx(View, { style: c.lift, children: /* @__PURE__ */ jsxs(View, { style: c.card, children: [
|
|
188
|
+
/* @__PURE__ */ jsxs(View, { style: c.head, children: [
|
|
189
|
+
/* @__PURE__ */ jsx(View, { style: c.headIcon, children: /* @__PURE__ */ jsx(Glyph, { name: icon, size: 18, color: ui.accentText }) }),
|
|
190
|
+
/* @__PURE__ */ jsxs(View, { style: c.headText, children: [
|
|
191
|
+
/* @__PURE__ */ jsx(Text, { style: c.title, accessibilityRole: "header", numberOfLines: 2, children: card.title }),
|
|
192
|
+
card.subtitle ? /* @__PURE__ */ jsx(Text, { style: c.sub, numberOfLines: 2, children: card.subtitle }) : null
|
|
193
|
+
] })
|
|
194
|
+
] }),
|
|
195
|
+
children,
|
|
196
|
+
toggle ? /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", accessibilityState: {
|
|
197
|
+
expanded: open
|
|
198
|
+
}, onPress: onToggle, style: ({
|
|
199
|
+
pressed
|
|
200
|
+
}) => [c.more, pressed && {
|
|
201
|
+
backgroundColor: ui.bg
|
|
202
|
+
}], children: [
|
|
203
|
+
/* @__PURE__ */ jsx(Text, { style: c.moreText, children: toggle }),
|
|
204
|
+
/* @__PURE__ */ jsx(Glyph, { name: "down", size: 16, color: ui.accentText, weight: 2.2, style: open ? c.flip : void 0 })
|
|
205
|
+
] }) : null,
|
|
206
|
+
/* @__PURE__ */ jsxs(View, { style: c.foot, children: [
|
|
207
|
+
/* @__PURE__ */ jsx(Text, { style: c.note, accessibilityLiveRegion: "polite", children: note }),
|
|
208
|
+
surface ? /* @__PURE__ */ jsx(SurfaceRow, { more: surface.more, href: surface.href, count: card.rows.length, icon }) : null
|
|
209
|
+
] })
|
|
210
|
+
] }) });
|
|
211
|
+
}
|
|
212
|
+
function Clock({
|
|
213
|
+
clock,
|
|
214
|
+
shift
|
|
215
|
+
}) {
|
|
216
|
+
const {
|
|
217
|
+
time,
|
|
218
|
+
half
|
|
219
|
+
} = splitClock(clock);
|
|
220
|
+
return /* @__PURE__ */ jsxs(View, { style: c.clock, children: [
|
|
221
|
+
/* @__PURE__ */ jsx(Text, { style: c.time, children: time }),
|
|
222
|
+
half ? /* @__PURE__ */ jsx(Text, { style: c.half, children: half }) : null,
|
|
223
|
+
shift ? /* @__PURE__ */ jsx(Text, { style: c.shift, children: shift }) : null
|
|
224
|
+
] });
|
|
225
|
+
}
|
|
226
|
+
function Leg({
|
|
227
|
+
leg,
|
|
228
|
+
when
|
|
229
|
+
}) {
|
|
230
|
+
var _a, _b, _c;
|
|
231
|
+
const dots = Math.min((_a = leg.stopCount) != null ? _a : 0, 3);
|
|
232
|
+
return /* @__PURE__ */ jsxs(View, { style: c.legWrap, children: [
|
|
233
|
+
when ? /* @__PURE__ */ jsx(Text, { style: c.when, children: when }) : null,
|
|
234
|
+
/* @__PURE__ */ jsxs(View, { style: c.leg, children: [
|
|
235
|
+
/* @__PURE__ */ jsxs(View, { children: [
|
|
236
|
+
/* @__PURE__ */ jsx(Clock, { clock: leg.departs }),
|
|
237
|
+
/* @__PURE__ */ jsx(Text, { style: c.code, children: (_b = leg.from) != null ? _b : "" })
|
|
238
|
+
] }),
|
|
239
|
+
/* @__PURE__ */ jsxs(View, { style: c.mid, children: [
|
|
240
|
+
/* @__PURE__ */ jsxs(View, { style: c.route, children: [
|
|
241
|
+
/* @__PURE__ */ jsx(View, { style: c.line }),
|
|
242
|
+
/* @__PURE__ */ jsx(View, { style: [c.end, c.endL] }),
|
|
243
|
+
/* @__PURE__ */ jsx(View, { style: [c.end, c.endR] }),
|
|
244
|
+
dots === 0 ? /* @__PURE__ */ jsx(View, { style: c.plane, children: /* @__PURE__ */ jsx(Glyph, { name: "plane", size: 14, color: ui.muted, weight: 1.8, style: c.planeTurn }) }) : Array.from({
|
|
245
|
+
length: dots
|
|
246
|
+
}, (_, i) => /* @__PURE__ */ jsx(View, { style: [c.stop, {
|
|
247
|
+
left: `${(i + 1) * 100 / (dots + 1)}%`
|
|
248
|
+
}] }, i))
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ jsx(Text, { style: c.span, numberOfLines: 1, children: [leg.duration, leg.stops].filter(Boolean).join(" \xB7 ") }),
|
|
251
|
+
leg.via ? /* @__PURE__ */ jsxs(Text, { style: c.via, numberOfLines: 1, children: [
|
|
252
|
+
"via ",
|
|
253
|
+
leg.via
|
|
254
|
+
] }) : null
|
|
255
|
+
] }),
|
|
256
|
+
/* @__PURE__ */ jsxs(View, { style: c.right, children: [
|
|
257
|
+
/* @__PURE__ */ jsx(Clock, { clock: leg.arrives, shift: leg.dayShift }),
|
|
258
|
+
/* @__PURE__ */ jsx(Text, { style: c.code, children: (_c = leg.to) != null ? _c : "" })
|
|
259
|
+
] })
|
|
260
|
+
] })
|
|
261
|
+
] });
|
|
262
|
+
}
|
|
263
|
+
function FlightItem({
|
|
264
|
+
row,
|
|
265
|
+
datedRows,
|
|
266
|
+
sent,
|
|
267
|
+
dim,
|
|
268
|
+
locked,
|
|
269
|
+
waiting,
|
|
270
|
+
onBook
|
|
271
|
+
}) {
|
|
272
|
+
return /* @__PURE__ */ jsxs(View, { style: [c.row, dim && c.dim], children: [
|
|
273
|
+
/* @__PURE__ */ jsxs(View, { accessible: true, accessibilityLabel: describeFlight(row), children: [
|
|
274
|
+
/* @__PURE__ */ jsxs(View, { style: c.r1, children: [
|
|
275
|
+
/* @__PURE__ */ jsx(BrandMark, { logo: row.logo, monogram: row.monogram }),
|
|
276
|
+
/* @__PURE__ */ jsxs(View, { style: c.name, children: [
|
|
277
|
+
/* @__PURE__ */ jsx(Text, { style: c.airline, numberOfLines: 1, children: row.airline }),
|
|
278
|
+
row.flightNumber ? /* @__PURE__ */ jsx(Text, { style: c.number, children: row.flightNumber }) : null,
|
|
279
|
+
row.badges.map((badge) => /* @__PURE__ */ jsx(Badge, { badge }, badge))
|
|
280
|
+
] }),
|
|
281
|
+
row.price ? /* @__PURE__ */ jsx(Text, { style: c.price, children: row.price }) : null
|
|
282
|
+
] }),
|
|
283
|
+
row.legs.map((leg, i) => /* @__PURE__ */ jsx(Leg, { leg, when: legWhen(datedRows, row.legs.length, i, leg.date) }, i))
|
|
284
|
+
] }),
|
|
285
|
+
/* @__PURE__ */ jsxs(View, { style: c.r4, children: [
|
|
286
|
+
/* @__PURE__ */ jsxs(View, { style: c.fare, children: [
|
|
287
|
+
row.fare ? /* @__PURE__ */ jsx(Text, { style: c.fareText, numberOfLines: 2, children: row.fare }) : null,
|
|
288
|
+
row.selfTransfer ? /* @__PURE__ */ jsxs(View, { style: c.warn, children: [
|
|
289
|
+
/* @__PURE__ */ jsx(Glyph, { name: "warn", size: 12, color: ui.danger, weight: 2.2 }),
|
|
290
|
+
/* @__PURE__ */ jsx(Text, { style: c.warnText, children: "Separate tickets" })
|
|
291
|
+
] }) : null
|
|
292
|
+
] }),
|
|
293
|
+
/* @__PURE__ */ jsxs(View, { style: c.acts, children: [
|
|
294
|
+
/* @__PURE__ */ jsx(ReplyButton, { label: "Book", action: row.action, sent, locked, waiting, onPress: onBook }),
|
|
295
|
+
/* @__PURE__ */ jsx(OutLink, { link: row.link })
|
|
296
|
+
] })
|
|
297
|
+
] })
|
|
298
|
+
] });
|
|
299
|
+
}
|
|
300
|
+
function FlightsResults({
|
|
301
|
+
card,
|
|
302
|
+
pick,
|
|
303
|
+
busy,
|
|
304
|
+
onReply
|
|
305
|
+
}) {
|
|
306
|
+
const [open, setOpen] = useState(false);
|
|
307
|
+
const reduced = useReducedMotion();
|
|
308
|
+
const surface = useMore("flights");
|
|
309
|
+
const shown = shownRows(card.rows, open, pick);
|
|
310
|
+
const glide = () => {
|
|
311
|
+
if (!reduced)
|
|
312
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
313
|
+
};
|
|
314
|
+
return /* @__PURE__ */ jsx(Frame, { card, toggle: shown.toggle, open, onToggle: () => {
|
|
315
|
+
tick();
|
|
316
|
+
glide();
|
|
317
|
+
setOpen(!open);
|
|
318
|
+
}, note: noteFor("flights", Boolean(pick), busy), surface, children: shown.rows.map((row) => /* @__PURE__ */ jsx(FlightItem, { row, datedRows: card.datedRows, sent: row.reply === pick, dim: Boolean(pick) && row.reply !== pick, locked: Boolean(pick) || busy, waiting: busy && !pick, onBook: () => {
|
|
319
|
+
glide();
|
|
320
|
+
setOpen(false);
|
|
321
|
+
onReply(card.key, row.reply);
|
|
322
|
+
} }, row.key)) });
|
|
323
|
+
}
|
|
324
|
+
const TILE = 150;
|
|
325
|
+
const GAP = 10;
|
|
326
|
+
function Tile({
|
|
327
|
+
kind,
|
|
328
|
+
row,
|
|
329
|
+
label,
|
|
330
|
+
sent,
|
|
331
|
+
dim,
|
|
332
|
+
locked,
|
|
333
|
+
waiting,
|
|
334
|
+
onChoose
|
|
335
|
+
}) {
|
|
336
|
+
const image = useImage(row.imageUrl);
|
|
337
|
+
const condition = kind === "products" ? conditionOf(row.title) : void 0;
|
|
338
|
+
const meta = [row.seller, row.rating ? `\u2605 ${row.rating}${row.reviews ? ` (${row.reviews})` : ""}` : void 0].filter(Boolean).join(" \xB7 ");
|
|
339
|
+
return /* @__PURE__ */ jsxs(View, { style: [c.tile, dim && c.dim], children: [
|
|
340
|
+
/* @__PURE__ */ jsxs(View, { accessible: true, accessibilityLabel: describeItem(row, condition), children: [
|
|
341
|
+
/* @__PURE__ */ jsxs(View, { style: [c.photo, image.show && c.photoReal], children: [
|
|
342
|
+
image.show && row.imageUrl ? /* @__PURE__ */ jsx(Image, { source: {
|
|
343
|
+
uri: row.imageUrl
|
|
344
|
+
}, style: c.photoImage, resizeMode: "contain", onError: image.fail }) : /* @__PURE__ */ jsx(Glyph, { name: KIND_ICONS[kind], size: 30, color: PHOTO_INK, weight: 1.6, style: c.photoGlyph }),
|
|
345
|
+
row.badges.length ? /* @__PURE__ */ jsx(View, { style: c.photoTags, children: row.badges.map((badge) => /* @__PURE__ */ jsx(Badge, { badge }, badge)) }) : null,
|
|
346
|
+
condition ? /* @__PURE__ */ jsx(View, { style: c.cond, children: /* @__PURE__ */ jsx(Text, { style: c.condText, children: condition }) }) : null
|
|
347
|
+
] }),
|
|
348
|
+
/* @__PURE__ */ jsxs(View, { style: c.tileText, children: [
|
|
349
|
+
/* @__PURE__ */ jsxs(View, { style: c.tilePriceRow, children: [
|
|
350
|
+
row.price ? /* @__PURE__ */ jsx(Text, { style: c.tilePrice, children: row.price }) : null,
|
|
351
|
+
row.priceUnit ? /* @__PURE__ */ jsx(Text, { style: c.unit, children: row.priceUnit }) : null,
|
|
352
|
+
row.wasPrice ? /* @__PURE__ */ jsx(Text, { style: c.was, children: row.wasPrice }) : null
|
|
353
|
+
] }),
|
|
354
|
+
/* @__PURE__ */ jsx(Text, { style: c.tileTitle, numberOfLines: 3, children: row.title }),
|
|
355
|
+
meta ? /* @__PURE__ */ jsx(Text, { style: c.tileMeta, numberOfLines: 1, children: meta }) : null,
|
|
356
|
+
row.detail ? /* @__PURE__ */ jsx(Text, { style: c.tileDetail, numberOfLines: 2, children: row.detail }) : null
|
|
357
|
+
] })
|
|
358
|
+
] }),
|
|
359
|
+
/* @__PURE__ */ jsx(View, { style: c.tileFoot, children: /* @__PURE__ */ jsx(ReplyButton, { full: true, label, action: row.action, sent, locked, waiting, onPress: onChoose }) }),
|
|
360
|
+
row.link ? /* @__PURE__ */ jsx(View, { style: c.tileOut, children: /* @__PURE__ */ jsx(OutLink, { link: row.link, small: true }) }) : null
|
|
361
|
+
] });
|
|
362
|
+
}
|
|
363
|
+
function EndTile({
|
|
364
|
+
surface,
|
|
365
|
+
count,
|
|
366
|
+
icon
|
|
367
|
+
}) {
|
|
368
|
+
return /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "link", accessibilityLabel: `${surface.more.label}. ${beyondLabel(count)}.`, accessibilityHint: `Opens ${surface.more.title}`, onPress: () => openSurface(surface.href), style: ({
|
|
369
|
+
pressed
|
|
370
|
+
}) => [c.tile, c.endTile, pressed && c.surfacePressed], children: [
|
|
371
|
+
/* @__PURE__ */ jsx(View, { style: c.endIcon, children: /* @__PURE__ */ jsx(Glyph, { name: icon, size: 22, color: ui.accentText }) }),
|
|
372
|
+
/* @__PURE__ */ jsx(Text, { style: c.endTitle, children: surface.more.label }),
|
|
373
|
+
/* @__PURE__ */ jsx(Text, { style: c.endSub, children: beyondLabel(count) }),
|
|
374
|
+
/* @__PURE__ */ jsx(Glyph, { name: "out", size: 18, color: ui.ink2, style: c.endArrow })
|
|
375
|
+
] });
|
|
376
|
+
}
|
|
377
|
+
function ListResults({
|
|
378
|
+
card,
|
|
379
|
+
pick,
|
|
380
|
+
busy,
|
|
381
|
+
onReply
|
|
382
|
+
}) {
|
|
383
|
+
const surface = useMore(card.kind);
|
|
384
|
+
const label = actionWord(card.kind);
|
|
385
|
+
return /* @__PURE__ */ jsx(Frame, { card, toggle: "", open: false, onToggle: () => void 0, note: noteFor(card.kind, Boolean(pick), busy), surface, children: /* @__PURE__ */ jsxs(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, decelerationRate: "fast", snapToInterval: TILE + GAP, contentContainerStyle: c.rail, children: [
|
|
386
|
+
card.rows.map((row) => /* @__PURE__ */ jsx(Tile, { kind: card.kind, row, label, sent: row.reply === pick, dim: Boolean(pick) && row.reply !== pick, locked: Boolean(pick) || busy, waiting: busy && !pick, onChoose: () => onReply(card.key, row.reply) }, row.key)),
|
|
387
|
+
surface ? /* @__PURE__ */ jsx(EndTile, { surface, count: card.rows.length, icon: KIND_ICONS[card.kind] }) : null
|
|
388
|
+
] }) });
|
|
389
|
+
}
|
|
390
|
+
const ResultCards = memo(function ResultCards2({
|
|
391
|
+
cards,
|
|
392
|
+
later,
|
|
393
|
+
busy,
|
|
394
|
+
onReply
|
|
395
|
+
}) {
|
|
396
|
+
const sent = useMemo(() => cardPicks(cards, later), [cards, later]);
|
|
397
|
+
const [tapped, setTapped] = useState({});
|
|
398
|
+
if (!cards.length)
|
|
399
|
+
return null;
|
|
400
|
+
const reply = (card, words) => {
|
|
401
|
+
if (busy || sent[card] || tapped[card])
|
|
402
|
+
return;
|
|
403
|
+
tap();
|
|
404
|
+
setTapped((before) => __spreadProps(__spreadValues({}, before), {
|
|
405
|
+
[card]: words
|
|
406
|
+
}));
|
|
407
|
+
onReply(words);
|
|
408
|
+
};
|
|
409
|
+
return /* @__PURE__ */ jsx(View, { style: c.stack, children: cards.map((card) => {
|
|
410
|
+
var _a;
|
|
411
|
+
const pick = (_a = sent[card.key]) != null ? _a : tapped[card.key];
|
|
412
|
+
return card.kind === "flights" ? /* @__PURE__ */ jsx(FlightsResults, { card, pick, busy, onReply: reply }, card.key) : /* @__PURE__ */ jsx(ListResults, { card, pick, busy, onReply: reply }, card.key);
|
|
413
|
+
}) });
|
|
414
|
+
});
|
|
415
|
+
const OK_TEXT = "#166B45";
|
|
416
|
+
const CREAM = "#FFF8F2";
|
|
417
|
+
const PHOTO_INK = "#8D837A";
|
|
418
|
+
const LINE = "rgba(26,23,20,0.11)";
|
|
419
|
+
const c = StyleSheet.create({
|
|
420
|
+
stack: {
|
|
421
|
+
gap: 12
|
|
422
|
+
},
|
|
423
|
+
lift: __spreadValues({
|
|
424
|
+
borderRadius: 22,
|
|
425
|
+
backgroundColor: ui.surface
|
|
426
|
+
}, lift),
|
|
427
|
+
card: {
|
|
428
|
+
borderRadius: 22,
|
|
429
|
+
overflow: "hidden",
|
|
430
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
431
|
+
borderColor: "rgba(26,23,20,0.08)",
|
|
432
|
+
backgroundColor: ui.surface
|
|
433
|
+
},
|
|
434
|
+
head: {
|
|
435
|
+
flexDirection: "row",
|
|
436
|
+
alignItems: "center",
|
|
437
|
+
gap: 12,
|
|
438
|
+
paddingHorizontal: 16,
|
|
439
|
+
paddingTop: 14,
|
|
440
|
+
paddingBottom: 13
|
|
441
|
+
},
|
|
442
|
+
headIcon: {
|
|
443
|
+
width: 34,
|
|
444
|
+
height: 34,
|
|
445
|
+
borderRadius: 11,
|
|
446
|
+
backgroundColor: ui.accentSoft,
|
|
447
|
+
alignItems: "center",
|
|
448
|
+
justifyContent: "center"
|
|
449
|
+
},
|
|
450
|
+
headText: {
|
|
451
|
+
flex: 1,
|
|
452
|
+
minWidth: 0
|
|
453
|
+
},
|
|
454
|
+
title: {
|
|
455
|
+
fontSize: 16,
|
|
456
|
+
lineHeight: 21,
|
|
457
|
+
fontWeight: "600",
|
|
458
|
+
letterSpacing: -0.2,
|
|
459
|
+
color: ui.ink
|
|
460
|
+
},
|
|
461
|
+
sub: {
|
|
462
|
+
fontSize: 12.5,
|
|
463
|
+
lineHeight: 17,
|
|
464
|
+
color: ui.muted
|
|
465
|
+
},
|
|
466
|
+
row: {
|
|
467
|
+
paddingHorizontal: 16,
|
|
468
|
+
paddingVertical: 14,
|
|
469
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
470
|
+
borderTopColor: ui.hairline
|
|
471
|
+
},
|
|
472
|
+
dim: {
|
|
473
|
+
opacity: 0.42
|
|
474
|
+
},
|
|
475
|
+
r1: {
|
|
476
|
+
flexDirection: "row",
|
|
477
|
+
alignItems: "center",
|
|
478
|
+
gap: 10
|
|
479
|
+
},
|
|
480
|
+
mark: {
|
|
481
|
+
width: 28,
|
|
482
|
+
height: 28,
|
|
483
|
+
borderRadius: 8,
|
|
484
|
+
backgroundColor: ui.fill,
|
|
485
|
+
alignItems: "center",
|
|
486
|
+
justifyContent: "center",
|
|
487
|
+
overflow: "hidden"
|
|
488
|
+
},
|
|
489
|
+
markImage: {
|
|
490
|
+
width: 20,
|
|
491
|
+
height: 20
|
|
492
|
+
},
|
|
493
|
+
markText: {
|
|
494
|
+
fontSize: 10.5,
|
|
495
|
+
fontWeight: "700",
|
|
496
|
+
letterSpacing: 0.2,
|
|
497
|
+
color: ui.ink2
|
|
498
|
+
},
|
|
499
|
+
name: {
|
|
500
|
+
flex: 1,
|
|
501
|
+
minWidth: 0,
|
|
502
|
+
flexDirection: "row",
|
|
503
|
+
flexWrap: "wrap",
|
|
504
|
+
alignItems: "center",
|
|
505
|
+
columnGap: 8,
|
|
506
|
+
rowGap: 4
|
|
507
|
+
},
|
|
508
|
+
airline: {
|
|
509
|
+
flexShrink: 1,
|
|
510
|
+
fontSize: 15,
|
|
511
|
+
lineHeight: 20,
|
|
512
|
+
fontWeight: "600",
|
|
513
|
+
letterSpacing: -0.15,
|
|
514
|
+
color: ui.ink
|
|
515
|
+
},
|
|
516
|
+
number: {
|
|
517
|
+
fontSize: 12.5,
|
|
518
|
+
lineHeight: 20,
|
|
519
|
+
fontWeight: "500",
|
|
520
|
+
color: ui.muted
|
|
521
|
+
},
|
|
522
|
+
price: {
|
|
523
|
+
alignSelf: "flex-start",
|
|
524
|
+
fontSize: 17,
|
|
525
|
+
lineHeight: 28,
|
|
526
|
+
fontWeight: "600",
|
|
527
|
+
letterSpacing: -0.3,
|
|
528
|
+
color: ui.ink,
|
|
529
|
+
fontVariant: ["tabular-nums"]
|
|
530
|
+
},
|
|
531
|
+
badge: {
|
|
532
|
+
flexDirection: "row",
|
|
533
|
+
alignItems: "center",
|
|
534
|
+
gap: 4,
|
|
535
|
+
height: 20,
|
|
536
|
+
paddingHorizontal: 7,
|
|
537
|
+
borderRadius: 6
|
|
538
|
+
},
|
|
539
|
+
badgeText: {
|
|
540
|
+
fontSize: 11.5,
|
|
541
|
+
fontWeight: "600"
|
|
542
|
+
},
|
|
543
|
+
legWrap: {
|
|
544
|
+
marginTop: 12
|
|
545
|
+
},
|
|
546
|
+
when: {
|
|
547
|
+
marginBottom: 4,
|
|
548
|
+
fontSize: 12,
|
|
549
|
+
lineHeight: 16,
|
|
550
|
+
fontWeight: "600",
|
|
551
|
+
color: ui.muted
|
|
552
|
+
},
|
|
553
|
+
leg: {
|
|
554
|
+
flexDirection: "row",
|
|
555
|
+
alignItems: "flex-start",
|
|
556
|
+
gap: 12
|
|
557
|
+
},
|
|
558
|
+
clock: {
|
|
559
|
+
flexDirection: "row",
|
|
560
|
+
alignItems: "baseline"
|
|
561
|
+
},
|
|
562
|
+
time: {
|
|
563
|
+
fontSize: 21,
|
|
564
|
+
lineHeight: 26,
|
|
565
|
+
fontWeight: "600",
|
|
566
|
+
letterSpacing: -0.5,
|
|
567
|
+
color: ui.ink,
|
|
568
|
+
fontVariant: ["tabular-nums"]
|
|
569
|
+
},
|
|
570
|
+
half: {
|
|
571
|
+
marginLeft: 3,
|
|
572
|
+
fontSize: 11.5,
|
|
573
|
+
fontWeight: "600",
|
|
574
|
+
letterSpacing: 0.2,
|
|
575
|
+
color: ui.ink2
|
|
576
|
+
},
|
|
577
|
+
shift: {
|
|
578
|
+
alignSelf: "flex-start",
|
|
579
|
+
marginLeft: 2,
|
|
580
|
+
marginTop: 1,
|
|
581
|
+
fontSize: 11,
|
|
582
|
+
lineHeight: 13,
|
|
583
|
+
fontWeight: "700",
|
|
584
|
+
color: ui.accentText
|
|
585
|
+
},
|
|
586
|
+
code: {
|
|
587
|
+
marginTop: 2,
|
|
588
|
+
fontSize: 12,
|
|
589
|
+
lineHeight: 16,
|
|
590
|
+
fontWeight: "600",
|
|
591
|
+
letterSpacing: 0.8,
|
|
592
|
+
color: ui.ink2
|
|
593
|
+
},
|
|
594
|
+
right: {
|
|
595
|
+
alignItems: "flex-end"
|
|
596
|
+
},
|
|
597
|
+
mid: {
|
|
598
|
+
flex: 1,
|
|
599
|
+
minWidth: 0,
|
|
600
|
+
alignItems: "center"
|
|
601
|
+
},
|
|
602
|
+
route: {
|
|
603
|
+
alignSelf: "stretch",
|
|
604
|
+
height: 26
|
|
605
|
+
},
|
|
606
|
+
line: {
|
|
607
|
+
position: "absolute",
|
|
608
|
+
left: 3,
|
|
609
|
+
right: 3,
|
|
610
|
+
top: 12,
|
|
611
|
+
height: 2,
|
|
612
|
+
borderRadius: 1,
|
|
613
|
+
backgroundColor: "rgba(26,23,20,0.14)"
|
|
614
|
+
},
|
|
615
|
+
end: {
|
|
616
|
+
position: "absolute",
|
|
617
|
+
top: 10,
|
|
618
|
+
width: 6,
|
|
619
|
+
height: 6,
|
|
620
|
+
borderRadius: 3,
|
|
621
|
+
backgroundColor: "rgba(26,23,20,0.3)"
|
|
622
|
+
},
|
|
623
|
+
endL: {
|
|
624
|
+
left: 0
|
|
625
|
+
},
|
|
626
|
+
endR: {
|
|
627
|
+
right: 0
|
|
628
|
+
},
|
|
629
|
+
plane: {
|
|
630
|
+
position: "absolute",
|
|
631
|
+
left: "50%",
|
|
632
|
+
top: 5,
|
|
633
|
+
width: 24,
|
|
634
|
+
height: 16,
|
|
635
|
+
marginLeft: -12,
|
|
636
|
+
alignItems: "center",
|
|
637
|
+
justifyContent: "center",
|
|
638
|
+
backgroundColor: ui.surface
|
|
639
|
+
},
|
|
640
|
+
planeTurn: {
|
|
641
|
+
transform: [{
|
|
642
|
+
rotate: "45deg"
|
|
643
|
+
}]
|
|
644
|
+
},
|
|
645
|
+
stop: {
|
|
646
|
+
position: "absolute",
|
|
647
|
+
top: 8,
|
|
648
|
+
width: 10,
|
|
649
|
+
height: 10,
|
|
650
|
+
marginLeft: -5,
|
|
651
|
+
borderRadius: 5,
|
|
652
|
+
borderWidth: 2,
|
|
653
|
+
borderColor: ui.accent,
|
|
654
|
+
backgroundColor: ui.surface
|
|
655
|
+
},
|
|
656
|
+
span: {
|
|
657
|
+
marginTop: 2,
|
|
658
|
+
fontSize: 12.5,
|
|
659
|
+
lineHeight: 16,
|
|
660
|
+
color: ui.muted
|
|
661
|
+
},
|
|
662
|
+
via: {
|
|
663
|
+
fontSize: 12,
|
|
664
|
+
lineHeight: 16,
|
|
665
|
+
color: ui.muted
|
|
666
|
+
},
|
|
667
|
+
r4: {
|
|
668
|
+
flexDirection: "row",
|
|
669
|
+
alignItems: "center",
|
|
670
|
+
justifyContent: "space-between",
|
|
671
|
+
gap: 10,
|
|
672
|
+
marginTop: 12
|
|
673
|
+
},
|
|
674
|
+
fare: {
|
|
675
|
+
flex: 1,
|
|
676
|
+
minWidth: 0,
|
|
677
|
+
gap: 3
|
|
678
|
+
},
|
|
679
|
+
fareText: {
|
|
680
|
+
fontSize: 12.5,
|
|
681
|
+
lineHeight: 17,
|
|
682
|
+
color: ui.muted
|
|
683
|
+
},
|
|
684
|
+
warn: {
|
|
685
|
+
flexDirection: "row",
|
|
686
|
+
alignItems: "center",
|
|
687
|
+
gap: 4
|
|
688
|
+
},
|
|
689
|
+
warnText: {
|
|
690
|
+
fontSize: 12,
|
|
691
|
+
lineHeight: 16,
|
|
692
|
+
fontWeight: "600",
|
|
693
|
+
color: ui.danger
|
|
694
|
+
},
|
|
695
|
+
acts: {
|
|
696
|
+
flexDirection: "row",
|
|
697
|
+
alignItems: "center",
|
|
698
|
+
gap: 8
|
|
699
|
+
},
|
|
700
|
+
reply: {
|
|
701
|
+
flexDirection: "row",
|
|
702
|
+
alignItems: "center",
|
|
703
|
+
justifyContent: "center",
|
|
704
|
+
gap: 5,
|
|
705
|
+
height: 38,
|
|
706
|
+
paddingHorizontal: 18,
|
|
707
|
+
borderRadius: radius.pill,
|
|
708
|
+
backgroundColor: ui.ink
|
|
709
|
+
},
|
|
710
|
+
replyFull: {
|
|
711
|
+
alignSelf: "stretch",
|
|
712
|
+
height: 36,
|
|
713
|
+
paddingHorizontal: 0
|
|
714
|
+
},
|
|
715
|
+
replySent: {
|
|
716
|
+
backgroundColor: "#E2F3E9"
|
|
717
|
+
},
|
|
718
|
+
replyWait: {
|
|
719
|
+
opacity: 0.45
|
|
720
|
+
},
|
|
721
|
+
replyPressed: {
|
|
722
|
+
backgroundColor: "#000000",
|
|
723
|
+
transform: [{
|
|
724
|
+
scale: 0.96
|
|
725
|
+
}]
|
|
726
|
+
},
|
|
727
|
+
replyText: {
|
|
728
|
+
fontSize: 14.5,
|
|
729
|
+
fontWeight: "600",
|
|
730
|
+
letterSpacing: -0.1,
|
|
731
|
+
color: "#FFFAF5"
|
|
732
|
+
},
|
|
733
|
+
out: {
|
|
734
|
+
width: 38,
|
|
735
|
+
height: 38,
|
|
736
|
+
borderRadius: 19,
|
|
737
|
+
borderWidth: 1,
|
|
738
|
+
borderColor: LINE,
|
|
739
|
+
backgroundColor: ui.surface,
|
|
740
|
+
alignItems: "center",
|
|
741
|
+
justifyContent: "center"
|
|
742
|
+
},
|
|
743
|
+
outSmall: __spreadValues({
|
|
744
|
+
width: 32,
|
|
745
|
+
height: 32,
|
|
746
|
+
borderRadius: 16,
|
|
747
|
+
borderColor: "rgba(26,23,20,0.06)"
|
|
748
|
+
}, lift),
|
|
749
|
+
more: {
|
|
750
|
+
flexDirection: "row",
|
|
751
|
+
alignItems: "center",
|
|
752
|
+
justifyContent: "center",
|
|
753
|
+
gap: 6,
|
|
754
|
+
height: 46,
|
|
755
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
756
|
+
borderTopColor: ui.hairline
|
|
757
|
+
},
|
|
758
|
+
moreText: {
|
|
759
|
+
fontSize: 14,
|
|
760
|
+
fontWeight: "600",
|
|
761
|
+
color: ui.accentText
|
|
762
|
+
},
|
|
763
|
+
flip: {
|
|
764
|
+
transform: [{
|
|
765
|
+
rotate: "180deg"
|
|
766
|
+
}]
|
|
767
|
+
},
|
|
768
|
+
foot: {
|
|
769
|
+
paddingHorizontal: 14,
|
|
770
|
+
paddingTop: 12,
|
|
771
|
+
paddingBottom: 14,
|
|
772
|
+
backgroundColor: CREAM,
|
|
773
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
774
|
+
borderTopColor: ui.hairline
|
|
775
|
+
},
|
|
776
|
+
note: {
|
|
777
|
+
paddingHorizontal: 2,
|
|
778
|
+
fontSize: 12.5,
|
|
779
|
+
lineHeight: 17,
|
|
780
|
+
color: ui.muted
|
|
781
|
+
},
|
|
782
|
+
surface: {
|
|
783
|
+
flexDirection: "row",
|
|
784
|
+
alignItems: "center",
|
|
785
|
+
gap: 12,
|
|
786
|
+
minHeight: 56,
|
|
787
|
+
marginTop: 10,
|
|
788
|
+
paddingVertical: 9,
|
|
789
|
+
paddingLeft: 10,
|
|
790
|
+
paddingRight: 14,
|
|
791
|
+
borderRadius: 16,
|
|
792
|
+
borderWidth: 1,
|
|
793
|
+
borderColor: LINE,
|
|
794
|
+
backgroundColor: ui.surface
|
|
795
|
+
},
|
|
796
|
+
surfacePressed: {
|
|
797
|
+
transform: [{
|
|
798
|
+
scale: 0.985
|
|
799
|
+
}],
|
|
800
|
+
backgroundColor: ui.bg
|
|
801
|
+
},
|
|
802
|
+
surfaceIcon: {
|
|
803
|
+
width: 36,
|
|
804
|
+
height: 36,
|
|
805
|
+
borderRadius: 11,
|
|
806
|
+
backgroundColor: ui.accentSoft,
|
|
807
|
+
alignItems: "center",
|
|
808
|
+
justifyContent: "center"
|
|
809
|
+
},
|
|
810
|
+
surfaceText: {
|
|
811
|
+
flex: 1,
|
|
812
|
+
minWidth: 0
|
|
813
|
+
},
|
|
814
|
+
surfaceTitle: {
|
|
815
|
+
fontSize: 14.5,
|
|
816
|
+
lineHeight: 19,
|
|
817
|
+
fontWeight: "600",
|
|
818
|
+
color: ui.ink
|
|
819
|
+
},
|
|
820
|
+
surfaceSub: {
|
|
821
|
+
fontSize: 12.5,
|
|
822
|
+
lineHeight: 17,
|
|
823
|
+
color: ui.muted
|
|
824
|
+
},
|
|
825
|
+
rail: {
|
|
826
|
+
gap: GAP,
|
|
827
|
+
paddingLeft: 14,
|
|
828
|
+
paddingRight: 14,
|
|
829
|
+
paddingTop: 2,
|
|
830
|
+
paddingBottom: 16
|
|
831
|
+
},
|
|
832
|
+
tile: {
|
|
833
|
+
width: TILE,
|
|
834
|
+
borderRadius: 16,
|
|
835
|
+
borderWidth: 1,
|
|
836
|
+
borderColor: LINE,
|
|
837
|
+
backgroundColor: ui.surface,
|
|
838
|
+
overflow: "hidden"
|
|
839
|
+
},
|
|
840
|
+
photo: {
|
|
841
|
+
height: 120,
|
|
842
|
+
alignItems: "center",
|
|
843
|
+
justifyContent: "center",
|
|
844
|
+
backgroundColor: "#F4EEE8"
|
|
845
|
+
},
|
|
846
|
+
photoReal: {
|
|
847
|
+
backgroundColor: "#FFFFFF",
|
|
848
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
849
|
+
borderBottomColor: ui.hairline
|
|
850
|
+
},
|
|
851
|
+
photoImage: {
|
|
852
|
+
position: "absolute",
|
|
853
|
+
left: 10,
|
|
854
|
+
right: 10,
|
|
855
|
+
top: 10,
|
|
856
|
+
bottom: 10
|
|
857
|
+
},
|
|
858
|
+
photoGlyph: {
|
|
859
|
+
marginTop: 16
|
|
860
|
+
},
|
|
861
|
+
photoTags: {
|
|
862
|
+
position: "absolute",
|
|
863
|
+
left: 8,
|
|
864
|
+
top: 8,
|
|
865
|
+
alignItems: "flex-start",
|
|
866
|
+
gap: 4
|
|
867
|
+
},
|
|
868
|
+
cond: {
|
|
869
|
+
position: "absolute",
|
|
870
|
+
left: 8,
|
|
871
|
+
bottom: 8,
|
|
872
|
+
height: 20,
|
|
873
|
+
paddingHorizontal: 7,
|
|
874
|
+
borderRadius: 6,
|
|
875
|
+
justifyContent: "center",
|
|
876
|
+
backgroundColor: "rgba(26,23,20,0.72)"
|
|
877
|
+
},
|
|
878
|
+
condText: {
|
|
879
|
+
fontSize: 11,
|
|
880
|
+
fontWeight: "600",
|
|
881
|
+
color: "#FFFFFF"
|
|
882
|
+
},
|
|
883
|
+
tileOut: {
|
|
884
|
+
position: "absolute",
|
|
885
|
+
top: 8,
|
|
886
|
+
right: 8
|
|
887
|
+
},
|
|
888
|
+
tileText: {
|
|
889
|
+
paddingHorizontal: 12,
|
|
890
|
+
paddingTop: 10
|
|
891
|
+
},
|
|
892
|
+
tilePriceRow: {
|
|
893
|
+
flexDirection: "row",
|
|
894
|
+
alignItems: "baseline",
|
|
895
|
+
flexWrap: "wrap",
|
|
896
|
+
columnGap: 5
|
|
897
|
+
},
|
|
898
|
+
tilePrice: {
|
|
899
|
+
fontSize: 17,
|
|
900
|
+
lineHeight: 22,
|
|
901
|
+
fontWeight: "600",
|
|
902
|
+
letterSpacing: -0.3,
|
|
903
|
+
color: ui.ink,
|
|
904
|
+
fontVariant: ["tabular-nums"]
|
|
905
|
+
},
|
|
906
|
+
unit: {
|
|
907
|
+
fontSize: 12,
|
|
908
|
+
color: ui.muted
|
|
909
|
+
},
|
|
910
|
+
was: {
|
|
911
|
+
fontSize: 12,
|
|
912
|
+
color: ui.muted,
|
|
913
|
+
textDecorationLine: "line-through"
|
|
914
|
+
},
|
|
915
|
+
tileTitle: {
|
|
916
|
+
marginTop: 3,
|
|
917
|
+
minHeight: 54,
|
|
918
|
+
fontSize: 13,
|
|
919
|
+
lineHeight: 18,
|
|
920
|
+
color: ui.ink2
|
|
921
|
+
},
|
|
922
|
+
tileMeta: {
|
|
923
|
+
marginTop: 6,
|
|
924
|
+
fontSize: 12,
|
|
925
|
+
lineHeight: 16,
|
|
926
|
+
color: ui.muted
|
|
927
|
+
},
|
|
928
|
+
tileDetail: {
|
|
929
|
+
marginTop: 2,
|
|
930
|
+
fontSize: 12,
|
|
931
|
+
lineHeight: 16,
|
|
932
|
+
color: ui.muted
|
|
933
|
+
},
|
|
934
|
+
tileFoot: {
|
|
935
|
+
marginTop: "auto",
|
|
936
|
+
paddingHorizontal: 12,
|
|
937
|
+
paddingTop: 10,
|
|
938
|
+
paddingBottom: 12
|
|
939
|
+
},
|
|
940
|
+
endTile: {
|
|
941
|
+
alignItems: "center",
|
|
942
|
+
justifyContent: "center",
|
|
943
|
+
paddingHorizontal: 12,
|
|
944
|
+
paddingVertical: 16,
|
|
945
|
+
borderColor: "rgba(184,65,0,0.16)",
|
|
946
|
+
backgroundColor: CREAM
|
|
947
|
+
},
|
|
948
|
+
endIcon: {
|
|
949
|
+
width: 52,
|
|
950
|
+
height: 52,
|
|
951
|
+
borderRadius: 26,
|
|
952
|
+
marginBottom: 10,
|
|
953
|
+
backgroundColor: ui.accentSoft,
|
|
954
|
+
alignItems: "center",
|
|
955
|
+
justifyContent: "center"
|
|
956
|
+
},
|
|
957
|
+
endTitle: {
|
|
958
|
+
fontSize: 14.5,
|
|
959
|
+
lineHeight: 19,
|
|
960
|
+
fontWeight: "600",
|
|
961
|
+
color: ui.ink,
|
|
962
|
+
textAlign: "center"
|
|
963
|
+
},
|
|
964
|
+
endSub: {
|
|
965
|
+
marginTop: 4,
|
|
966
|
+
fontSize: 12.5,
|
|
967
|
+
lineHeight: 17,
|
|
968
|
+
color: ui.muted,
|
|
969
|
+
textAlign: "center"
|
|
970
|
+
},
|
|
971
|
+
endArrow: {
|
|
972
|
+
marginTop: 8
|
|
973
|
+
}
|
|
974
|
+
});export{ResultCards};//# sourceMappingURL=ResultCards.js.map
|