@adminide-stack/clock-tik-mobile 0.0.0-stage → 12.0.37-alpha.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/.claude-flow/data/pending-insights.jsonl +43 -0
- package/.claude-flow/sessions/session-1794323376548.json +14 -0
- package/CHANGELOG.md +31 -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 +42 -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 +21 -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 +2711 -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 +179 -0
- package/src/__tests__/choresList.test.ts +100 -0
- package/src/__tests__/content.test.ts +54 -0
- package/src/__tests__/dictation.test.ts +186 -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 +65 -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 +37 -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 +2773 -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,1066 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {useState,useCallback,useEffect,useRef}from'react';import {useWindowDimensions,Animated,View,StyleSheet,StatusBar,Text,Pressable,KeyboardAvoidingView,ScrollView,TextInput,Platform,Easing}from'react-native';import {useNavigation}from'@react-navigation/native';import {useSafeAreaInsets}from'react-native-safe-area-context';import {Ionicons}from'@expo/vector-icons';import {useIsUserAuthenticated,AuthMobileNavigationRoutesEnum}from'@adminide-stack/user-auth0-client';import {BottomSheet}from'../../components/BottomSheet.js';import {displayName,PersonAvatar}from'../../components/ChatSheets.js';import {ConnectorLogo}from'../../components/ConnectorLogo.js';import {useSignInGate}from'../../components/SignInPrompt.js';import {connectLink}from'../../chat/connectors.js';import {drawerRoute,CLOCKBOOK_ROUTES}from'../../config/routes.js';import {HERO_CHORES}from'../../content.js';import {useReducedMotion}from'../../hooks/useReducedMotion.js';import {registerForPush,notifications}from'../../push/push.js';import {useClockbookFonts,fonts}from'../../theme/fonts.js';import {ui}from'../../theme/muse.js';import {yantraAppUrl}from'../../utils/links.js';import {openYantraUrl}from'../../utils/yantraLinks.js';import {DEFAULT_ANSWERS,cleanName,autoAdvance,buildChat,controlsDelay,lifeAdmin,TIME,reminderDates,FIRST_CHORES,PAIN,isIntro,TAP_NEXT,isChat,PAIN_KEYS,HOME_SIZES,HOME,TIME_KEYS,FILL_MS,longDate}from'../../welcome/flow.js';import {Glow,Dial,Words,text,Reveal,LinkButton,GlowButton,SoftButton,OptionRow,NumberChip,FillBar,Roller,Odometer,PrimeFrame,DrawnArrow,SystemPrompt,Burst,Sunset,LockPreview,LucyOrb,PowerOn,StaticWords}from'../../welcome/parts.js';import {tap,thud}from'../../welcome/haptics.js';import {markWelcomeSeen}from'../../welcome/seen.js';import {prepare,release,play}from'../../welcome/sound.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 TRIAL = __DEV__;
|
|
21
|
+
const OPTS = {
|
|
22
|
+
trial: TRIAL
|
|
23
|
+
};
|
|
24
|
+
const ORB = 92;
|
|
25
|
+
const EASE = Easing.bezier(0.2, 0.7, 0.2, 1);
|
|
26
|
+
const CHORE_ICONS = {
|
|
27
|
+
"Cancel my gym": "call-outline",
|
|
28
|
+
"Lower my internet bill": "receipt-outline",
|
|
29
|
+
"Book the dentist": "calendar-outline",
|
|
30
|
+
"Get my flight refund": "airplane-outline"
|
|
31
|
+
};
|
|
32
|
+
const BEATS = {
|
|
33
|
+
i1: {
|
|
34
|
+
title: "Every week, hours slip away.",
|
|
35
|
+
sub: "On hold. On forms. On to-do lists."
|
|
36
|
+
},
|
|
37
|
+
i2: {
|
|
38
|
+
title: "Watch the hands.",
|
|
39
|
+
sub: "Each one is a minute you meant to spend on something else."
|
|
40
|
+
},
|
|
41
|
+
i3: {
|
|
42
|
+
title: "Now, wind them back.",
|
|
43
|
+
sub: "That\u2019s what Clockbook is for."
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function glowFor(step) {
|
|
47
|
+
if (step === "i1" || step === "i2")
|
|
48
|
+
return "dim";
|
|
49
|
+
if (step === "i3" || step === "i4")
|
|
50
|
+
return "lit";
|
|
51
|
+
if (step === "news" || step === "bad" || step === "good")
|
|
52
|
+
return "wide";
|
|
53
|
+
if (step === "yay")
|
|
54
|
+
return "yay";
|
|
55
|
+
if (step === "pay")
|
|
56
|
+
return "off";
|
|
57
|
+
return "on";
|
|
58
|
+
}
|
|
59
|
+
function ChatLineView({
|
|
60
|
+
line,
|
|
61
|
+
still
|
|
62
|
+
}) {
|
|
63
|
+
const style = line.who === "you" ? text.you : text.lucy;
|
|
64
|
+
const gap = line.who === "you" ? 7 : 5;
|
|
65
|
+
if (line.age > 0) {
|
|
66
|
+
return /* @__PURE__ */ jsx(Reveal, { still, rise: 28, from: line.age === 1 ? 1 : 0.58, to: line.age === 1 ? 0.58 : 0.24, children: /* @__PURE__ */ jsx(StaticWords, { words: line.words, label: line.plain, style, accent: text.accent, gap }) });
|
|
67
|
+
}
|
|
68
|
+
if (line.who === "you") {
|
|
69
|
+
return /* @__PURE__ */ jsx(Reveal, { delay: line.start, still, rise: 14, children: /* @__PURE__ */ jsx(StaticWords, { words: line.words, label: line.plain, style, accent: text.accent, gap }) });
|
|
70
|
+
}
|
|
71
|
+
return /* @__PURE__ */ jsx(Words, { words: line.words, label: line.plain, start: line.start, still, style, accent: text.accent, gap });
|
|
72
|
+
}
|
|
73
|
+
function WelcomeScreen({
|
|
74
|
+
initialStep = "i1",
|
|
75
|
+
initialAnswers
|
|
76
|
+
} = {}) {
|
|
77
|
+
var _a;
|
|
78
|
+
const navigation = useNavigation();
|
|
79
|
+
const insets = useSafeAreaInsets();
|
|
80
|
+
const {
|
|
81
|
+
width,
|
|
82
|
+
height
|
|
83
|
+
} = useWindowDimensions();
|
|
84
|
+
const fontsReady = useClockbookFonts();
|
|
85
|
+
const still = useReducedMotion();
|
|
86
|
+
const {
|
|
87
|
+
authenticated,
|
|
88
|
+
user
|
|
89
|
+
} = useIsUserAuthenticated();
|
|
90
|
+
const person = user != null ? user : null;
|
|
91
|
+
const {
|
|
92
|
+
gate,
|
|
93
|
+
prompt
|
|
94
|
+
} = useSignInGate((route, params) => navigation.navigate(route, params));
|
|
95
|
+
const [step, setStep] = useState(initialStep);
|
|
96
|
+
const [answers, setAnswers] = useState(__spreadValues(__spreadValues({}, DEFAULT_ANSWERS), initialAnswers));
|
|
97
|
+
const [draft, setDraft] = useState("");
|
|
98
|
+
const [picking, setPicking] = useState(null);
|
|
99
|
+
const [sheet, setSheet] = useState(false);
|
|
100
|
+
const [busy, setBusy] = useState(null);
|
|
101
|
+
const [remind, setRemind] = useState(2);
|
|
102
|
+
const [powering, setPowering] = useState(initialStep === "i1");
|
|
103
|
+
const powered = useCallback(() => setPowering(false), []);
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (!still || !powering)
|
|
106
|
+
return;
|
|
107
|
+
setPowering(false);
|
|
108
|
+
tap();
|
|
109
|
+
}, [powering, still]);
|
|
110
|
+
const timers = useRef([]);
|
|
111
|
+
const later = useCallback((fn, ms) => {
|
|
112
|
+
timers.current.push(setTimeout(fn, ms));
|
|
113
|
+
}, []);
|
|
114
|
+
useEffect(() => () => timers.current.forEach(clearTimeout), []);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
prepare();
|
|
117
|
+
return release;
|
|
118
|
+
}, []);
|
|
119
|
+
const chatScroll = useRef(null);
|
|
120
|
+
const go = useCallback((next) => {
|
|
121
|
+
setPicking(null);
|
|
122
|
+
setBusy(null);
|
|
123
|
+
setSheet(false);
|
|
124
|
+
setStep(next);
|
|
125
|
+
}, []);
|
|
126
|
+
const accountFirst = (person == null ? void 0 : person.given_name) || ((person == null ? void 0 : person.name) && !person.name.includes("@") ? person.name : "") || "";
|
|
127
|
+
const offered = useRef(false);
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
if (offered.current || !accountFirst)
|
|
130
|
+
return;
|
|
131
|
+
offered.current = true;
|
|
132
|
+
setDraft((d) => d || cleanName(accountFirst));
|
|
133
|
+
}, [accountFirst]);
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
if (step !== "i4")
|
|
136
|
+
return;
|
|
137
|
+
thud();
|
|
138
|
+
play("meetLucy");
|
|
139
|
+
}, [step]);
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
const auto = autoAdvance(step, answers, OPTS);
|
|
142
|
+
if (!auto)
|
|
143
|
+
return void 0;
|
|
144
|
+
const t = setTimeout(() => go(auto.to), still ? Math.min(auto.after, 1400) : auto.after);
|
|
145
|
+
return () => clearTimeout(t);
|
|
146
|
+
}, [step, go, still]);
|
|
147
|
+
const wasSignedIn = useRef(authenticated);
|
|
148
|
+
useEffect(() => {
|
|
149
|
+
const justSignedIn = authenticated && !wasSignedIn.current;
|
|
150
|
+
wasSignedIn.current = authenticated;
|
|
151
|
+
if (!justSignedIn || step !== "signin")
|
|
152
|
+
return void 0;
|
|
153
|
+
const t = setTimeout(() => go("pain"), 700);
|
|
154
|
+
return () => clearTimeout(t);
|
|
155
|
+
}, [authenticated, go, step]);
|
|
156
|
+
const top = insets.top;
|
|
157
|
+
const orbTop = top + 18;
|
|
158
|
+
const dialSize = Math.min(280, width * 0.72);
|
|
159
|
+
const dialY = height * 0.54;
|
|
160
|
+
const yayY = height * 0.42;
|
|
161
|
+
const place = (() => {
|
|
162
|
+
if (step === "i1" || step === "i2" || step === "i3")
|
|
163
|
+
return {
|
|
164
|
+
y: dialY - ORB / 2,
|
|
165
|
+
s: 0.3,
|
|
166
|
+
o: 0
|
|
167
|
+
};
|
|
168
|
+
if (step === "i4")
|
|
169
|
+
return {
|
|
170
|
+
y: dialY - ORB / 2,
|
|
171
|
+
s: 1.55,
|
|
172
|
+
o: 1
|
|
173
|
+
};
|
|
174
|
+
if (step === "yay")
|
|
175
|
+
return {
|
|
176
|
+
y: yayY - ORB / 2,
|
|
177
|
+
s: 1.75,
|
|
178
|
+
o: 1
|
|
179
|
+
};
|
|
180
|
+
if (isChat(step) || step === "done")
|
|
181
|
+
return {
|
|
182
|
+
y: orbTop,
|
|
183
|
+
s: 1,
|
|
184
|
+
o: 1
|
|
185
|
+
};
|
|
186
|
+
return {
|
|
187
|
+
y: top - 30,
|
|
188
|
+
s: 0.6,
|
|
189
|
+
o: 0
|
|
190
|
+
};
|
|
191
|
+
})();
|
|
192
|
+
const orbY = useRef(new Animated.Value(place.y)).current;
|
|
193
|
+
const orbS = useRef(new Animated.Value(place.s)).current;
|
|
194
|
+
const orbO = useRef(new Animated.Value(place.o)).current;
|
|
195
|
+
useEffect(() => {
|
|
196
|
+
const cfg = {
|
|
197
|
+
duration: still ? 0 : 1100,
|
|
198
|
+
easing: EASE,
|
|
199
|
+
useNativeDriver: true
|
|
200
|
+
};
|
|
201
|
+
const anim = Animated.parallel([Animated.timing(orbY, __spreadProps(__spreadValues({}, cfg), {
|
|
202
|
+
toValue: place.y
|
|
203
|
+
})), Animated.timing(orbS, __spreadProps(__spreadValues({}, cfg), {
|
|
204
|
+
toValue: place.s
|
|
205
|
+
})), Animated.timing(orbO, __spreadProps(__spreadValues({}, cfg), {
|
|
206
|
+
duration: still ? 0 : 700,
|
|
207
|
+
toValue: place.o
|
|
208
|
+
}))]);
|
|
209
|
+
anim.start();
|
|
210
|
+
return () => anim.stop();
|
|
211
|
+
}, [orbO, orbS, orbY, place.o, place.s, place.y, still]);
|
|
212
|
+
const choose = (key, patch, next) => {
|
|
213
|
+
if (picking)
|
|
214
|
+
return;
|
|
215
|
+
setPicking(key);
|
|
216
|
+
setAnswers((a) => __spreadValues(__spreadValues({}, a), patch));
|
|
217
|
+
later(() => go(next), 340);
|
|
218
|
+
};
|
|
219
|
+
const submitName = () => {
|
|
220
|
+
const name2 = cleanName(draft);
|
|
221
|
+
if (!name2)
|
|
222
|
+
return;
|
|
223
|
+
setAnswers((a) => __spreadProps(__spreadValues({}, a), {
|
|
224
|
+
name: name2
|
|
225
|
+
}));
|
|
226
|
+
go("hello");
|
|
227
|
+
};
|
|
228
|
+
const connectCalendar = async () => {
|
|
229
|
+
setBusy("cal");
|
|
230
|
+
try {
|
|
231
|
+
const url = connectLink(yantraAppUrl(), "google-calendar");
|
|
232
|
+
if (url)
|
|
233
|
+
await openYantraUrl(url);
|
|
234
|
+
} catch (e) {
|
|
235
|
+
}
|
|
236
|
+
go("notif");
|
|
237
|
+
};
|
|
238
|
+
const allowNotifications = async () => {
|
|
239
|
+
var _a2;
|
|
240
|
+
setBusy("notif");
|
|
241
|
+
try {
|
|
242
|
+
if (authenticated)
|
|
243
|
+
await registerForPush({
|
|
244
|
+
ask: true
|
|
245
|
+
});
|
|
246
|
+
else
|
|
247
|
+
await ((_a2 = notifications()) == null ? void 0 : _a2.requestPermissionsAsync({
|
|
248
|
+
ios: {
|
|
249
|
+
allowAlert: true,
|
|
250
|
+
allowBadge: true,
|
|
251
|
+
allowSound: true
|
|
252
|
+
}
|
|
253
|
+
}));
|
|
254
|
+
} catch (e) {
|
|
255
|
+
}
|
|
256
|
+
go("plan");
|
|
257
|
+
};
|
|
258
|
+
const leave = () => {
|
|
259
|
+
void markWelcomeSeen();
|
|
260
|
+
if (navigation.canGoBack())
|
|
261
|
+
navigation.goBack();
|
|
262
|
+
else
|
|
263
|
+
navigation.navigate(...drawerRoute(CLOCKBOOK_ROUTES.HOME, {
|
|
264
|
+
at: Date.now()
|
|
265
|
+
}));
|
|
266
|
+
};
|
|
267
|
+
const startChore = (chore) => {
|
|
268
|
+
void markWelcomeSeen();
|
|
269
|
+
gate("chat", () => navigation.navigate(...drawerRoute(CLOCKBOOK_ROUTES.CHAT, {
|
|
270
|
+
prompt: chore.prompt,
|
|
271
|
+
at: Date.now()
|
|
272
|
+
})), chore.prompt);
|
|
273
|
+
};
|
|
274
|
+
const replay = () => {
|
|
275
|
+
if (!still)
|
|
276
|
+
setPowering(true);
|
|
277
|
+
setAnswers(DEFAULT_ANSWERS);
|
|
278
|
+
setDraft("");
|
|
279
|
+
setRemind(2);
|
|
280
|
+
go("i1");
|
|
281
|
+
};
|
|
282
|
+
if (!fontsReady) {
|
|
283
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.root, powering && styles.dark], children: powering ? /* @__PURE__ */ jsx(StatusBar, { barStyle: "light-content" }) : null });
|
|
284
|
+
}
|
|
285
|
+
const chat = buildChat(step, answers);
|
|
286
|
+
const ctl = controlsDelay(step, answers);
|
|
287
|
+
const n = lifeAdmin(TIME[answers.time].min);
|
|
288
|
+
const name = answers.name;
|
|
289
|
+
const beat = step === "i2" ? 2 : step === "i3" ? 3 : step === "i4" ? 4 : 1;
|
|
290
|
+
const tapNext = TAP_NEXT[step];
|
|
291
|
+
const trial = reminderDates(new Date());
|
|
292
|
+
const remindOn = (_a = trial.options.find((o) => o.daysBefore === remind)) != null ? _a : trial.options[0];
|
|
293
|
+
const firstChores = FIRST_CHORES.map((label) => HERO_CHORES.find((c) => c.label === label)).filter((c) => Boolean(c));
|
|
294
|
+
const pain = PAIN[answers.pain];
|
|
295
|
+
const other = answers.pain === "calls" ? PAIN.bills : PAIN.calls;
|
|
296
|
+
const plan = [{
|
|
297
|
+
icon: pain.icon,
|
|
298
|
+
title: pain.title,
|
|
299
|
+
body: pain.body
|
|
300
|
+
}, {
|
|
301
|
+
icon: other.icon,
|
|
302
|
+
title: other.title,
|
|
303
|
+
body: other.body
|
|
304
|
+
}, {
|
|
305
|
+
icon: "time-outline",
|
|
306
|
+
title: `${n.week} hours back every week`,
|
|
307
|
+
body: `About ${n.yearHours} hours this year, for the things you\u2019d rather do.`
|
|
308
|
+
}];
|
|
309
|
+
const page = {
|
|
310
|
+
paddingTop: top + 48,
|
|
311
|
+
paddingBottom: insets.bottom + 20
|
|
312
|
+
};
|
|
313
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
|
|
314
|
+
/* @__PURE__ */ jsx(StatusBar, { barStyle: "dark-content" }),
|
|
315
|
+
/* @__PURE__ */ jsx(Glow, { mode: powering ? "off" : glowFor(step), width, top: orbTop + ORB / 2, dialY, yayY, still }),
|
|
316
|
+
isIntro(step) && !powering ? /* @__PURE__ */ jsxs(View, { style: StyleSheet.absoluteFill, children: [
|
|
317
|
+
/* @__PURE__ */ jsx(View, { style: [styles.dial, {
|
|
318
|
+
top: dialY - dialSize / 2,
|
|
319
|
+
left: (width - dialSize) / 2
|
|
320
|
+
}], children: /* @__PURE__ */ jsx(Dial, { beat, size: dialSize, still }) }),
|
|
321
|
+
BEATS[step] ? /* @__PURE__ */ jsxs(View, { style: [styles.beat, {
|
|
322
|
+
top: top + 56
|
|
323
|
+
}], children: [
|
|
324
|
+
/* @__PURE__ */ jsx(Words, { words: BEATS[step].title.split(" ").map((b) => ({
|
|
325
|
+
a: "",
|
|
326
|
+
b
|
|
327
|
+
})), label: BEATS[step].title, start: 200, still, style: [text.beat, styles.center], center: true, gap: 9 }),
|
|
328
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 700, still, children: /* @__PURE__ */ jsx(Text, { style: [text.sub, styles.center, styles.beatSub], children: BEATS[step].sub }) })
|
|
329
|
+
] }, step) : null,
|
|
330
|
+
step === "i4" ? /* @__PURE__ */ jsx(Reveal, { delay: 700, still, style: [styles.meet, {
|
|
331
|
+
top: dialY + ORB * 0.85 + 24
|
|
332
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [styles.meetText, styles.center], children: "Meet Lucy." }) }) : null,
|
|
333
|
+
tapNext ? /* @__PURE__ */ jsx(Pressable, { style: StyleSheet.absoluteFill, onPress: () => {
|
|
334
|
+
tap();
|
|
335
|
+
go(tapNext);
|
|
336
|
+
}, accessibilityRole: "button", accessibilityLabel: "Tap to continue", children: /* @__PURE__ */ jsx(Reveal, { delay: 1400, still, style: [styles.cue, {
|
|
337
|
+
bottom: insets.bottom + 44
|
|
338
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [text.cue, styles.center], children: "TAP TO CONTINUE" }) }, `cue-${step}`) }) : null,
|
|
339
|
+
tapNext ? /* @__PURE__ */ jsx(LinkButton, { label: "Skip", onPress: leave, style: [styles.skip, {
|
|
340
|
+
top: top + 6
|
|
341
|
+
}] }) : null
|
|
342
|
+
] }) : null,
|
|
343
|
+
isChat(step) ? /* @__PURE__ */ jsx(KeyboardAvoidingView, { behavior: Platform.OS === "ios" ? "padding" : void 0, style: [styles.chat, {
|
|
344
|
+
paddingTop: orbTop + ORB + 26
|
|
345
|
+
}], children: /* @__PURE__ */ jsxs(ScrollView, { ref: chatScroll, style: styles.flex, contentContainerStyle: [styles.chatBody, {
|
|
346
|
+
paddingBottom: insets.bottom + 20
|
|
347
|
+
}], keyboardShouldPersistTaps: "handled", showsVerticalScrollIndicator: false, alwaysBounceVertical: false, onContentSizeChange: () => {
|
|
348
|
+
var _a2;
|
|
349
|
+
return (_a2 = chatScroll.current) == null ? void 0 : _a2.scrollToEnd({
|
|
350
|
+
animated: !still
|
|
351
|
+
});
|
|
352
|
+
}, onLayout: () => {
|
|
353
|
+
var _a2;
|
|
354
|
+
return (_a2 = chatScroll.current) == null ? void 0 : _a2.scrollToEnd({
|
|
355
|
+
animated: false
|
|
356
|
+
});
|
|
357
|
+
}, children: [
|
|
358
|
+
/* @__PURE__ */ jsx(View, { style: styles.stack, children: chat.lines.map((line) => /* @__PURE__ */ jsx(ChatLineView, { line, still }, line.key)) }, `lines-${step}`),
|
|
359
|
+
/* @__PURE__ */ jsxs(View, { style: styles.controls, children: [
|
|
360
|
+
step === "name" ? /* @__PURE__ */ jsxs(Reveal, { delay: ctl, still, rise: 18, style: styles.stackGap, children: [
|
|
361
|
+
/* @__PURE__ */ jsx(TextInput, { value: draft, onChangeText: setDraft, placeholder: "Your first name", placeholderTextColor: ui.muted, style: styles.input, autoCapitalize: "words", autoCorrect: false, autoComplete: "given-name", textContentType: "givenName", returnKeyType: "next", onSubmitEditing: submitName, maxLength: 40, accessibilityLabel: "Your first name" }),
|
|
362
|
+
/* @__PURE__ */ jsx(GlowButton, { label: "Continue", onPress: submitName, disabled: !cleanName(draft) })
|
|
363
|
+
] }) : null,
|
|
364
|
+
step === "signin" && authenticated ? /* @__PURE__ */ jsx(Reveal, { delay: ctl, still, rise: 18, children: /* @__PURE__ */ jsxs(Pressable, { onPress: () => go("pain"), accessibilityRole: "button", accessibilityLabel: `Continue as ${displayName(person)}`, style: ({
|
|
365
|
+
pressed
|
|
366
|
+
}) => [styles.account, pressed && styles.pressed], children: [
|
|
367
|
+
/* @__PURE__ */ jsx(PersonAvatar, { person, size: 42 }),
|
|
368
|
+
/* @__PURE__ */ jsxs(View, { style: styles.flex, children: [
|
|
369
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.accountName, numberOfLines: 1, children: [
|
|
370
|
+
"Continue as ",
|
|
371
|
+
displayName(person)
|
|
372
|
+
] }),
|
|
373
|
+
/* @__PURE__ */ jsx(Text, { style: styles.accountSub, children: "Signed in on this phone" })
|
|
374
|
+
] }),
|
|
375
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "chevron-forward", size: 18, color: ui.muted })
|
|
376
|
+
] }) }) : null,
|
|
377
|
+
step === "signin" && !authenticated ? /* @__PURE__ */ jsxs(Reveal, { delay: ctl, still, rise: 18, style: styles.stackGap, children: [
|
|
378
|
+
/* @__PURE__ */ jsx(GlowButton, { label: "Sign in", icon: "log-in-outline", onPress: () => navigation.navigate(AuthMobileNavigationRoutesEnum.Login, {
|
|
379
|
+
redirect: "back"
|
|
380
|
+
}) }),
|
|
381
|
+
/* @__PURE__ */ jsx(SoftButton, { label: "Create an account", icon: "person-add-outline", onPress: () => navigation.navigate(AuthMobileNavigationRoutesEnum.SignUp, {
|
|
382
|
+
redirect: "back"
|
|
383
|
+
}) }),
|
|
384
|
+
/* @__PURE__ */ jsx(LinkButton, { label: "Not now", onPress: () => go("pain") }),
|
|
385
|
+
/* @__PURE__ */ jsx(Text, { style: [text.foot, styles.center], children: "You sign in with Yantra, which Clockbook runs on, then come straight back here." })
|
|
386
|
+
] }) : null,
|
|
387
|
+
step === "pain" ? /* @__PURE__ */ jsx(View, { style: styles.options, children: PAIN_KEYS.map((key, i) => /* @__PURE__ */ jsx(OptionRow, { label: PAIN[key].label, icon: PAIN[key].icon, selected: picking === key, onPress: () => choose(key, {
|
|
388
|
+
pain: key
|
|
389
|
+
}, "pain2"), delay: ctl + i * 60, still }, key)) }) : null,
|
|
390
|
+
step === "home" ? /* @__PURE__ */ jsxs(View, { style: styles.stackGap, children: [
|
|
391
|
+
/* @__PURE__ */ jsx(View, { style: styles.nums, accessibilityRole: "radiogroup", accessibilityLabel: "People at home", children: HOME_SIZES.map((size, i) => /* @__PURE__ */ jsx(NumberChip, { label: size === 6 ? "6+" : String(size), a11y: HOME[size].label, selected: picking === String(size), onPress: () => choose(String(size), {
|
|
392
|
+
home: size
|
|
393
|
+
}, "home2"), delay: ctl + i * 50, still }, size)) }),
|
|
394
|
+
/* @__PURE__ */ jsx(Reveal, { delay: ctl + 380, still, children: /* @__PURE__ */ jsx(Text, { style: [text.note, styles.hint], children: "Count everyone whose admin lands on you, you included." }) })
|
|
395
|
+
] }) : null,
|
|
396
|
+
step === "time" ? /* @__PURE__ */ jsx(View, { style: styles.options, children: TIME_KEYS.map((key, i) => /* @__PURE__ */ jsx(OptionRow, { label: TIME[key].label, selected: picking === key, onPress: () => choose(key, {
|
|
397
|
+
time: key
|
|
398
|
+
}, "time2"), delay: ctl + i * 60, still }, key)) }) : null,
|
|
399
|
+
step === "review" ? /* @__PURE__ */ jsx(Reveal, { delay: ctl, still, rise: 8, children: /* @__PURE__ */ jsx(FillBar, { delay: ctl, duration: FILL_MS, still }) }) : null,
|
|
400
|
+
step === "help" ? /* @__PURE__ */ jsx(Reveal, { delay: ctl, still, rise: 18, children: /* @__PURE__ */ jsx(GlowButton, { label: "Show me", onPress: () => go("news") }) }) : null
|
|
401
|
+
] }, `controls-${step}`)
|
|
402
|
+
] }) }) : null,
|
|
403
|
+
step === "news" ? /* @__PURE__ */ jsxs(View, { style: [StyleSheet.absoluteFill, styles.centered], children: [
|
|
404
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 150, still, children: /* @__PURE__ */ jsx(Text, { style: [styles.newsLine, styles.center], children: "First the bad news." }) }),
|
|
405
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1e3, still, children: /* @__PURE__ */ jsx(Text, { style: [styles.newsLine, styles.newsAccent, styles.center], children: "Then the good." }) })
|
|
406
|
+
] }) : null,
|
|
407
|
+
step === "bad" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, page], children: [
|
|
408
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 120, still, children: /* @__PURE__ */ jsxs(Text, { style: [text.lead, styles.center], children: [
|
|
409
|
+
"At this pace, life admin will take ",
|
|
410
|
+
/* @__PURE__ */ jsxs(Text, { style: text.accent, children: [
|
|
411
|
+
n.wakingDays,
|
|
412
|
+
" days"
|
|
413
|
+
] }),
|
|
414
|
+
" of your waking time this year."
|
|
415
|
+
] }) }),
|
|
416
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 900, still, children: /* @__PURE__ */ jsx(Text, { style: [text.sub, styles.center, styles.gapTop], children: "Over a lifetime, that adds up to" }) }),
|
|
417
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1200, still, children: /* @__PURE__ */ jsx(Roller, { years: n.lifetimeYears, still }) }),
|
|
418
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 3500, still, children: /* @__PURE__ */ jsx(Text, { style: [text.body, styles.center], children: "of your waking life, spent on hold, on forms and on to-do lists." }) }),
|
|
419
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
420
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 3900, still, children: /* @__PURE__ */ jsxs(Text, { style: [text.foot, styles.center, styles.foot], children: [
|
|
421
|
+
"Projection of about ",
|
|
422
|
+
n.min,
|
|
423
|
+
" minutes a day, counted in 16-hour waking days over the next 50 years. Illustrative, based on the U.S. BLS American Time Use Survey 2025."
|
|
424
|
+
] }) }),
|
|
425
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 4200, still, children: /* @__PURE__ */ jsx(GlowButton, { label: "Now the good news", onPress: () => go("good") }) })
|
|
426
|
+
] }) : null,
|
|
427
|
+
step === "good" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, page], children: [
|
|
428
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 120, still, children: /* @__PURE__ */ jsx(Text, { style: [text.lead, styles.center], children: "Here\u2019s the good news. Lucy can hand you back" }) }),
|
|
429
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 700, still, style: styles.odometer, children: /* @__PURE__ */ jsx(Odometer, { value: n.yearHours, still }) }),
|
|
430
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 3300, still, children: /* @__PURE__ */ jsxs(Text, { style: [text.body, styles.center, styles.gapTopSmall], children: [
|
|
431
|
+
"every year. That\u2019s about ",
|
|
432
|
+
n.week,
|
|
433
|
+
" hours a week, starting with this one."
|
|
434
|
+
] }) }),
|
|
435
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
436
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 3700, still, children: /* @__PURE__ */ jsxs(Text, { style: [text.foot, styles.center, styles.foot], children: [
|
|
437
|
+
"Illustrative estimate: about ",
|
|
438
|
+
n.backMin,
|
|
439
|
+
" of ",
|
|
440
|
+
n.min,
|
|
441
|
+
" minutes a day handed to Lucy, based on the U.S. BLS American Time Use Survey 2025. Results vary by household."
|
|
442
|
+
] }) }),
|
|
443
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 4e3, still, children: /* @__PURE__ */ jsx(GlowButton, { label: "Get my time back", onPress: () => go("cal") }) })
|
|
444
|
+
] }) : null,
|
|
445
|
+
step === "cal" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, page], children: [
|
|
446
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 80, still, children: /* @__PURE__ */ jsx(Text, { style: [text.lead, styles.center, styles.primeTitle], children: "Connect your calendar, so Lucy can book around your life." }) }),
|
|
447
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 380, still, children: /* @__PURE__ */ jsx(PrimeFrame, { still, children: /* @__PURE__ */ jsxs(View, { style: styles.connect, children: [
|
|
448
|
+
/* @__PURE__ */ jsxs(View, { style: styles.connectRow, children: [
|
|
449
|
+
/* @__PURE__ */ jsx(ConnectorLogo, { id: "google-calendar", size: 44 }),
|
|
450
|
+
/* @__PURE__ */ jsxs(View, { style: styles.flex, children: [
|
|
451
|
+
/* @__PURE__ */ jsx(Text, { style: styles.connectTitle, children: "Google Calendar" }),
|
|
452
|
+
/* @__PURE__ */ jsx(Text, { style: styles.connectBody, children: "Lucy checks when you\u2019re free, so calls and appointments land where they fit." })
|
|
453
|
+
] })
|
|
454
|
+
] }),
|
|
455
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setSheet(true), accessibilityRole: "button", accessibilityLabel: "Connect Google Calendar", style: ({
|
|
456
|
+
pressed
|
|
457
|
+
}) => [styles.connectBtn, pressed && styles.pressed], children: /* @__PURE__ */ jsx(Text, { style: styles.connectBtnLabel, children: "Connect" }) })
|
|
458
|
+
] }) }) }),
|
|
459
|
+
/* @__PURE__ */ jsx(DrawnArrow, { delay: 1e3, still }),
|
|
460
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1500, still, children: /* @__PURE__ */ jsx(Text, { style: [text.note, styles.center], children: "Lucy never books, pays or changes anything without your yes." }) }),
|
|
461
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
462
|
+
/* @__PURE__ */ jsxs(Reveal, { delay: 1700, still, style: styles.stackGapSmall, children: [
|
|
463
|
+
/* @__PURE__ */ jsx(GlowButton, { label: "Continue", onPress: () => setSheet(true) }),
|
|
464
|
+
/* @__PURE__ */ jsx(LinkButton, { label: "Not now", onPress: () => go("notif") })
|
|
465
|
+
] }),
|
|
466
|
+
/* @__PURE__ */ jsxs(BottomSheet, { visible: sheet, onClose: () => setSheet(false), style: [styles.sheet, {
|
|
467
|
+
paddingBottom: Math.max(insets.bottom, 14) + 8
|
|
468
|
+
}], children: [
|
|
469
|
+
/* @__PURE__ */ jsx(View, { style: styles.grabber }),
|
|
470
|
+
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles.sheetTitle, styles.center], children: "Your yes comes first." }),
|
|
471
|
+
/* @__PURE__ */ jsxs(View, { style: styles.sheetCard, children: [
|
|
472
|
+
/* @__PURE__ */ jsx(Text, { style: styles.sheetKicker, children: "LUCY NEVER" }),
|
|
473
|
+
["Pays for anything without your approval", "Changes an account without asking you first", "Asks for your passwords or card numbers"].map((line, i) => /* @__PURE__ */ jsxs(View, { style: [styles.sheetRow, i > 0 && styles.sheetRowLine], children: [
|
|
474
|
+
/* @__PURE__ */ jsx(View, { style: styles.sheetX, children: /* @__PURE__ */ jsx(Ionicons, { name: "close", size: 14, color: ui.accentText }) }),
|
|
475
|
+
/* @__PURE__ */ jsx(Text, { style: styles.sheetRowText, children: line })
|
|
476
|
+
] }, line))
|
|
477
|
+
] }),
|
|
478
|
+
/* @__PURE__ */ jsx(Text, { style: [text.foot, styles.center, styles.sheetNote], children: "You can disconnect it any time in Connectors." }),
|
|
479
|
+
/* @__PURE__ */ jsx(GlowButton, { label: "Connect Google Calendar", busy: busy === "cal", onPress: connectCalendar })
|
|
480
|
+
] })
|
|
481
|
+
] }) : null,
|
|
482
|
+
step === "notif" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, page], children: [
|
|
483
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 80, still, children: /* @__PURE__ */ jsx(Text, { style: [text.lead, styles.center, styles.primeTitle], children: "Get a nudge when something needs your yes." }) }),
|
|
484
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 380, still, children: /* @__PURE__ */ jsx(PrimeFrame, { still, children: /* @__PURE__ */ jsx(SystemPrompt, { title: Platform.OS === "ios" ? "\u201CClockbook\u201D Would Like to Send You Notifications" : "Allow Clockbook to send you notifications?", body: "Notifications may include alerts, sounds and icon badges. These can be configured in Settings.", deny: Platform.OS === "ios" ? "Don\u2019t Allow" : "Don\u2019t allow", allow: "Allow", onDeny: () => go("plan"), onAllow: allowNotifications }) }) }),
|
|
485
|
+
/* @__PURE__ */ jsx(DrawnArrow, { delay: 1e3, still }),
|
|
486
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1500, still, children: /* @__PURE__ */ jsx(Text, { style: [text.note, styles.center], children: "Only for approvals, call updates and the reminders you ask for." }) }),
|
|
487
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
488
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1700, still, children: /* @__PURE__ */ jsx(GlowButton, { label: "Continue", busy: busy === "notif", onPress: allowNotifications }) })
|
|
489
|
+
] }) : null,
|
|
490
|
+
step === "plan" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, page], children: [
|
|
491
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 80, still, children: /* @__PURE__ */ jsxs(Text, { style: [text.display, styles.center, styles.planTitle], children: [
|
|
492
|
+
name ? `${name}, here\u2019s` : "Here\u2019s",
|
|
493
|
+
" your plan to win back",
|
|
494
|
+
" ",
|
|
495
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.displayAccent, children: [
|
|
496
|
+
n.yearHours,
|
|
497
|
+
" hours"
|
|
498
|
+
] }),
|
|
499
|
+
" this year."
|
|
500
|
+
] }) }),
|
|
501
|
+
/* @__PURE__ */ jsx(View, { style: styles.planRows, children: plan.map((row, i) => /* @__PURE__ */ jsxs(Reveal, { delay: 480 + i * 240, still, style: styles.planRow, children: [
|
|
502
|
+
/* @__PURE__ */ jsx(View, { style: styles.planIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: row.icon, size: 21, color: ui.accentText }) }),
|
|
503
|
+
/* @__PURE__ */ jsxs(View, { style: styles.flex, children: [
|
|
504
|
+
/* @__PURE__ */ jsx(Text, { style: styles.planHead, children: row.title }),
|
|
505
|
+
/* @__PURE__ */ jsx(Text, { style: styles.planBody, children: row.body })
|
|
506
|
+
] })
|
|
507
|
+
] }, row.title)) }),
|
|
508
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
509
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1400, still, children: /* @__PURE__ */ jsx(Text, { style: [text.note, styles.center, styles.planCaption], children: "One tap and Lucy gets to work." }) }),
|
|
510
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 1500, still, children: /* @__PURE__ */ jsx(GlowButton, { label: "Let\u2019s go", icon: "sparkles-outline", onPress: () => go("yay") }) })
|
|
511
|
+
] }) : null,
|
|
512
|
+
step === "yay" ? /* @__PURE__ */ jsxs(View, { style: StyleSheet.absoluteFill, children: [
|
|
513
|
+
/* @__PURE__ */ jsx(Burst, { centerY: yayY, still }),
|
|
514
|
+
/* @__PURE__ */ jsxs(Reveal, { delay: 650, still, style: [styles.yayText, {
|
|
515
|
+
top: yayY + ORB * 0.9 + 40
|
|
516
|
+
}], children: [
|
|
517
|
+
/* @__PURE__ */ jsxs(Text, { style: [text.display, styles.center], children: [
|
|
518
|
+
"You\u2019re in",
|
|
519
|
+
name ? `, ${name}` : "",
|
|
520
|
+
"."
|
|
521
|
+
] }),
|
|
522
|
+
/* @__PURE__ */ jsx(Text, { style: [text.sub, styles.center, styles.yaySub], children: "Let\u2019s get your evenings back." })
|
|
523
|
+
] })
|
|
524
|
+
] }) : null,
|
|
525
|
+
step === "pay" ? /* @__PURE__ */ jsxs(View, { style: StyleSheet.absoluteFill, children: [
|
|
526
|
+
/* @__PURE__ */ jsx(Sunset, { width, height: height * 0.66, still }),
|
|
527
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.payBody, {
|
|
528
|
+
paddingBottom: insets.bottom + 20
|
|
529
|
+
}], children: [
|
|
530
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 200, still, children: /* @__PURE__ */ jsxs(Text, { style: [styles.payTitle, styles.center], children: [
|
|
531
|
+
"Take your ",
|
|
532
|
+
/* @__PURE__ */ jsx(Text, { style: styles.displayAccent, children: "evenings" }),
|
|
533
|
+
" back."
|
|
534
|
+
] }) }),
|
|
535
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 420, still, children: /* @__PURE__ */ jsxs(Text, { style: [text.sub, styles.center, styles.paySub], children: [
|
|
536
|
+
"Hand Lucy the life admin, about ",
|
|
537
|
+
n.week,
|
|
538
|
+
" hours a week of it. Your first week is free."
|
|
539
|
+
] }) }),
|
|
540
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 620, still, children: /* @__PURE__ */ jsx(GlowButton, { variant: "orange", label: "Start my free week", onPress: () => go("remind") }) }),
|
|
541
|
+
/* @__PURE__ */ jsxs(Reveal, { delay: 760, still, style: styles.payNote, children: [
|
|
542
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "checkmark", size: 15, color: ui.accentText }),
|
|
543
|
+
/* @__PURE__ */ jsx(Text, { style: text.foot, children: "No payment due now. Cancel anytime." })
|
|
544
|
+
] })
|
|
545
|
+
] })
|
|
546
|
+
] }) : null,
|
|
547
|
+
step === "remind" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, {
|
|
548
|
+
paddingTop: top + 40,
|
|
549
|
+
paddingBottom: insets.bottom + 20
|
|
550
|
+
}], children: [
|
|
551
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 80, still, children: /* @__PURE__ */ jsx(Text, { style: [styles.remindTitle, styles.center], children: "When should we remind you that your free week is ending?" }) }),
|
|
552
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 300, still, style: styles.lock, children: /* @__PURE__ */ jsx(LockPreview, { date: longDate(remindOn.date), days: remind }) }),
|
|
553
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 520, still, style: styles.choices, children: /* @__PURE__ */ jsx(View, { accessibilityRole: "radiogroup", accessibilityLabel: "Reminder", children: trial.options.map((o, i) => {
|
|
554
|
+
const on = remind === o.daysBefore;
|
|
555
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => setRemind(o.daysBefore), accessibilityRole: "radio", accessibilityState: {
|
|
556
|
+
checked: on
|
|
557
|
+
}, accessibilityLabel: `${o.daysBefore} days before, ${longDate(o.date)}`, style: [styles.choice, i > 0 && styles.choiceLine], children: [
|
|
558
|
+
/* @__PURE__ */ jsxs(View, { style: styles.flex, children: [
|
|
559
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.choiceTitle, children: [
|
|
560
|
+
o.daysBefore,
|
|
561
|
+
" days before"
|
|
562
|
+
] }),
|
|
563
|
+
/* @__PURE__ */ jsx(Text, { style: styles.choiceDate, children: longDate(o.date) })
|
|
564
|
+
] }),
|
|
565
|
+
/* @__PURE__ */ jsx(View, { style: [styles.radio, on && styles.radioOn], children: on ? /* @__PURE__ */ jsx(Ionicons, { name: "checkmark", size: 15, color: ui.ink }) : null })
|
|
566
|
+
] }, o.daysBefore);
|
|
567
|
+
}) }) }),
|
|
568
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
569
|
+
/* @__PURE__ */ jsxs(Reveal, { delay: 700, still, children: [
|
|
570
|
+
/* @__PURE__ */ jsx(GlowButton, { label: "Continue", onPress: () => go("done") }),
|
|
571
|
+
/* @__PURE__ */ jsx(Text, { style: [text.foot, styles.center, styles.remindNote], children: "Turn on notifications to get this reminder." })
|
|
572
|
+
] })
|
|
573
|
+
] }) : null,
|
|
574
|
+
step === "done" ? /* @__PURE__ */ jsxs(View, { style: [styles.page, styles.done, {
|
|
575
|
+
paddingTop: orbTop + ORB + 40,
|
|
576
|
+
paddingBottom: insets.bottom + 12
|
|
577
|
+
}], children: [
|
|
578
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 300, still, children: /* @__PURE__ */ jsxs(Text, { style: styles.doneTitle, children: [
|
|
579
|
+
"You\u2019re all set",
|
|
580
|
+
name ? `, ${name}` : "",
|
|
581
|
+
"."
|
|
582
|
+
] }) }),
|
|
583
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 500, still, children: /* @__PURE__ */ jsx(Text, { style: [text.body, styles.doneSub], children: "What should I take off your plate first?" }) }),
|
|
584
|
+
/* @__PURE__ */ jsx(Reveal, { delay: 700, still, style: styles.chips, children: firstChores.map((chore) => {
|
|
585
|
+
var _a2;
|
|
586
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
|
|
587
|
+
tap();
|
|
588
|
+
startChore(chore);
|
|
589
|
+
}, accessibilityRole: "button", accessibilityLabel: chore.label, style: ({
|
|
590
|
+
pressed
|
|
591
|
+
}) => [styles.chip, pressed && styles.pressed], children: [
|
|
592
|
+
/* @__PURE__ */ jsx(Ionicons, { name: (_a2 = CHORE_ICONS[chore.label]) != null ? _a2 : "sparkles-outline", size: 18, color: ui.accentText }),
|
|
593
|
+
/* @__PURE__ */ jsx(Text, { style: styles.chipLabel, children: chore.label })
|
|
594
|
+
] }, chore.label);
|
|
595
|
+
}) }),
|
|
596
|
+
/* @__PURE__ */ jsx(View, { style: styles.flex }),
|
|
597
|
+
/* @__PURE__ */ jsx(LinkButton, { label: "I\u2019ll look around first", onPress: leave }),
|
|
598
|
+
__DEV__ ? /* @__PURE__ */ jsx(LinkButton, { label: "Replay the welcome", icon: "refresh-outline", onPress: replay }) : null
|
|
599
|
+
] }) : null,
|
|
600
|
+
/* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [styles.orb, {
|
|
601
|
+
left: (width - ORB) / 2,
|
|
602
|
+
opacity: orbO,
|
|
603
|
+
transform: [{
|
|
604
|
+
translateY: orbY
|
|
605
|
+
}, {
|
|
606
|
+
scale: orbS
|
|
607
|
+
}]
|
|
608
|
+
}], children: /* @__PURE__ */ jsx(LucyOrb, { size: ORB, think: step === "review" || step === "yay", still }) }),
|
|
609
|
+
powering ? /* @__PURE__ */ jsx(PowerOn, { size: dialSize, center: {
|
|
610
|
+
x: width / 2,
|
|
611
|
+
y: dialY
|
|
612
|
+
}, width, height, onDone: powered }) : null,
|
|
613
|
+
prompt
|
|
614
|
+
] });
|
|
615
|
+
}
|
|
616
|
+
const styles = StyleSheet.create({
|
|
617
|
+
root: {
|
|
618
|
+
flex: 1,
|
|
619
|
+
backgroundColor: ui.bg,
|
|
620
|
+
overflow: "hidden"
|
|
621
|
+
},
|
|
622
|
+
dark: {
|
|
623
|
+
backgroundColor: "#0E0B09"
|
|
624
|
+
},
|
|
625
|
+
flex: {
|
|
626
|
+
flex: 1
|
|
627
|
+
},
|
|
628
|
+
center: {
|
|
629
|
+
textAlign: "center"
|
|
630
|
+
},
|
|
631
|
+
centered: {
|
|
632
|
+
alignItems: "center",
|
|
633
|
+
justifyContent: "center",
|
|
634
|
+
paddingHorizontal: 36
|
|
635
|
+
},
|
|
636
|
+
pressed: {
|
|
637
|
+
transform: [{
|
|
638
|
+
scale: 0.985
|
|
639
|
+
}]
|
|
640
|
+
},
|
|
641
|
+
orb: {
|
|
642
|
+
position: "absolute",
|
|
643
|
+
top: 0,
|
|
644
|
+
width: ORB,
|
|
645
|
+
height: ORB
|
|
646
|
+
},
|
|
647
|
+
dial: {
|
|
648
|
+
position: "absolute"
|
|
649
|
+
},
|
|
650
|
+
beat: {
|
|
651
|
+
position: "absolute",
|
|
652
|
+
left: 28,
|
|
653
|
+
right: 28
|
|
654
|
+
},
|
|
655
|
+
beatSub: {
|
|
656
|
+
marginTop: 14
|
|
657
|
+
},
|
|
658
|
+
meet: {
|
|
659
|
+
position: "absolute",
|
|
660
|
+
left: 0,
|
|
661
|
+
right: 0
|
|
662
|
+
},
|
|
663
|
+
meetText: {
|
|
664
|
+
fontFamily: fonts.serifItalic,
|
|
665
|
+
fontSize: 40,
|
|
666
|
+
lineHeight: 46,
|
|
667
|
+
color: ui.ink
|
|
668
|
+
},
|
|
669
|
+
cue: {
|
|
670
|
+
position: "absolute",
|
|
671
|
+
left: 0,
|
|
672
|
+
right: 0
|
|
673
|
+
},
|
|
674
|
+
skip: {
|
|
675
|
+
position: "absolute",
|
|
676
|
+
right: 12
|
|
677
|
+
},
|
|
678
|
+
chat: {
|
|
679
|
+
flex: 1
|
|
680
|
+
},
|
|
681
|
+
chatBody: {
|
|
682
|
+
flexGrow: 1,
|
|
683
|
+
justifyContent: "flex-end"
|
|
684
|
+
},
|
|
685
|
+
stack: {
|
|
686
|
+
flexGrow: 1,
|
|
687
|
+
justifyContent: "flex-end",
|
|
688
|
+
paddingHorizontal: 28,
|
|
689
|
+
paddingBottom: 22,
|
|
690
|
+
rowGap: 16
|
|
691
|
+
},
|
|
692
|
+
controls: {
|
|
693
|
+
minHeight: 176,
|
|
694
|
+
paddingHorizontal: 20
|
|
695
|
+
},
|
|
696
|
+
stackGap: {
|
|
697
|
+
rowGap: 12
|
|
698
|
+
},
|
|
699
|
+
stackGapSmall: {
|
|
700
|
+
rowGap: 4
|
|
701
|
+
},
|
|
702
|
+
options: {
|
|
703
|
+
rowGap: 10
|
|
704
|
+
},
|
|
705
|
+
nums: {
|
|
706
|
+
flexDirection: "row",
|
|
707
|
+
justifyContent: "space-between"
|
|
708
|
+
},
|
|
709
|
+
hint: {
|
|
710
|
+
paddingHorizontal: 8
|
|
711
|
+
},
|
|
712
|
+
input: {
|
|
713
|
+
height: 58,
|
|
714
|
+
borderRadius: 20,
|
|
715
|
+
paddingHorizontal: 20,
|
|
716
|
+
backgroundColor: ui.surface,
|
|
717
|
+
borderWidth: 1,
|
|
718
|
+
borderColor: "rgba(26,23,20,0.14)",
|
|
719
|
+
fontFamily: fonts.sans,
|
|
720
|
+
fontSize: 18,
|
|
721
|
+
color: ui.ink
|
|
722
|
+
},
|
|
723
|
+
account: {
|
|
724
|
+
height: 68,
|
|
725
|
+
borderRadius: 22,
|
|
726
|
+
flexDirection: "row",
|
|
727
|
+
alignItems: "center",
|
|
728
|
+
columnGap: 12,
|
|
729
|
+
paddingLeft: 12,
|
|
730
|
+
paddingRight: 16,
|
|
731
|
+
backgroundColor: ui.surface,
|
|
732
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
733
|
+
borderColor: "rgba(26,23,20,0.1)"
|
|
734
|
+
},
|
|
735
|
+
accountName: {
|
|
736
|
+
fontFamily: fonts.sansSemi,
|
|
737
|
+
fontSize: 16,
|
|
738
|
+
color: ui.ink
|
|
739
|
+
},
|
|
740
|
+
accountSub: {
|
|
741
|
+
fontFamily: fonts.sans,
|
|
742
|
+
fontSize: 13,
|
|
743
|
+
color: ui.muted,
|
|
744
|
+
marginTop: 3
|
|
745
|
+
},
|
|
746
|
+
page: {
|
|
747
|
+
flex: 1,
|
|
748
|
+
paddingHorizontal: 26,
|
|
749
|
+
alignItems: "stretch"
|
|
750
|
+
},
|
|
751
|
+
gapTop: {
|
|
752
|
+
marginTop: 26
|
|
753
|
+
},
|
|
754
|
+
gapTopSmall: {
|
|
755
|
+
marginTop: 18
|
|
756
|
+
},
|
|
757
|
+
foot: {
|
|
758
|
+
marginBottom: 16,
|
|
759
|
+
paddingHorizontal: 6
|
|
760
|
+
},
|
|
761
|
+
newsLine: {
|
|
762
|
+
fontFamily: fonts.serif,
|
|
763
|
+
fontSize: 40,
|
|
764
|
+
lineHeight: 44,
|
|
765
|
+
letterSpacing: -0.8,
|
|
766
|
+
color: ui.ink
|
|
767
|
+
},
|
|
768
|
+
newsAccent: {
|
|
769
|
+
fontFamily: fonts.serifItalic,
|
|
770
|
+
color: ui.accentText
|
|
771
|
+
},
|
|
772
|
+
odometer: {
|
|
773
|
+
marginTop: 70
|
|
774
|
+
},
|
|
775
|
+
primeTitle: {
|
|
776
|
+
marginBottom: 34,
|
|
777
|
+
paddingHorizontal: 8
|
|
778
|
+
},
|
|
779
|
+
connect: {
|
|
780
|
+
borderRadius: 26,
|
|
781
|
+
backgroundColor: ui.surface,
|
|
782
|
+
padding: 16,
|
|
783
|
+
rowGap: 14,
|
|
784
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
785
|
+
borderColor: "rgba(26,23,20,0.08)"
|
|
786
|
+
},
|
|
787
|
+
connectRow: {
|
|
788
|
+
flexDirection: "row",
|
|
789
|
+
columnGap: 12,
|
|
790
|
+
alignItems: "flex-start"
|
|
791
|
+
},
|
|
792
|
+
connectTitle: {
|
|
793
|
+
fontFamily: fonts.sansSemi,
|
|
794
|
+
fontSize: 17,
|
|
795
|
+
color: ui.ink
|
|
796
|
+
},
|
|
797
|
+
connectBody: {
|
|
798
|
+
fontFamily: fonts.sans,
|
|
799
|
+
fontSize: 14.5,
|
|
800
|
+
lineHeight: 20,
|
|
801
|
+
color: ui.ink2,
|
|
802
|
+
marginTop: 4
|
|
803
|
+
},
|
|
804
|
+
connectBtn: {
|
|
805
|
+
alignSelf: "flex-end",
|
|
806
|
+
height: 44,
|
|
807
|
+
minWidth: 120,
|
|
808
|
+
paddingHorizontal: 20,
|
|
809
|
+
borderRadius: 22,
|
|
810
|
+
backgroundColor: ui.ink,
|
|
811
|
+
alignItems: "center",
|
|
812
|
+
justifyContent: "center"
|
|
813
|
+
},
|
|
814
|
+
connectBtnLabel: {
|
|
815
|
+
fontFamily: fonts.sansSemi,
|
|
816
|
+
fontSize: 15.5,
|
|
817
|
+
color: "#FFFAF5"
|
|
818
|
+
},
|
|
819
|
+
sheet: {
|
|
820
|
+
backgroundColor: ui.surface,
|
|
821
|
+
borderTopLeftRadius: 28,
|
|
822
|
+
borderTopRightRadius: 28,
|
|
823
|
+
paddingHorizontal: 20,
|
|
824
|
+
paddingTop: 10
|
|
825
|
+
},
|
|
826
|
+
grabber: {
|
|
827
|
+
alignSelf: "center",
|
|
828
|
+
width: 36,
|
|
829
|
+
height: 5,
|
|
830
|
+
borderRadius: 3,
|
|
831
|
+
backgroundColor: ui.fill,
|
|
832
|
+
marginBottom: 18
|
|
833
|
+
},
|
|
834
|
+
sheetTitle: {
|
|
835
|
+
fontFamily: fonts.serif,
|
|
836
|
+
fontSize: 34,
|
|
837
|
+
lineHeight: 38,
|
|
838
|
+
letterSpacing: -0.6,
|
|
839
|
+
color: ui.ink,
|
|
840
|
+
marginBottom: 18
|
|
841
|
+
},
|
|
842
|
+
sheetCard: {
|
|
843
|
+
borderRadius: 24,
|
|
844
|
+
backgroundColor: ui.soft,
|
|
845
|
+
paddingHorizontal: 16,
|
|
846
|
+
paddingTop: 16,
|
|
847
|
+
paddingBottom: 4,
|
|
848
|
+
marginBottom: 14
|
|
849
|
+
},
|
|
850
|
+
sheetKicker: {
|
|
851
|
+
fontFamily: fonts.sansSemi,
|
|
852
|
+
fontSize: 12,
|
|
853
|
+
letterSpacing: 1.2,
|
|
854
|
+
color: ui.muted,
|
|
855
|
+
marginBottom: 4
|
|
856
|
+
},
|
|
857
|
+
sheetRow: {
|
|
858
|
+
flexDirection: "row",
|
|
859
|
+
alignItems: "center",
|
|
860
|
+
columnGap: 12,
|
|
861
|
+
paddingVertical: 12
|
|
862
|
+
},
|
|
863
|
+
sheetRowLine: {
|
|
864
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
865
|
+
borderTopColor: "rgba(26,23,20,0.1)"
|
|
866
|
+
},
|
|
867
|
+
sheetX: {
|
|
868
|
+
width: 26,
|
|
869
|
+
height: 26,
|
|
870
|
+
borderRadius: 13,
|
|
871
|
+
backgroundColor: ui.accentSoft,
|
|
872
|
+
alignItems: "center",
|
|
873
|
+
justifyContent: "center"
|
|
874
|
+
},
|
|
875
|
+
sheetRowText: {
|
|
876
|
+
flex: 1,
|
|
877
|
+
fontFamily: fonts.sans,
|
|
878
|
+
fontSize: 15.5,
|
|
879
|
+
lineHeight: 21,
|
|
880
|
+
color: ui.ink
|
|
881
|
+
},
|
|
882
|
+
sheetNote: {
|
|
883
|
+
marginBottom: 14
|
|
884
|
+
},
|
|
885
|
+
planTitle: {
|
|
886
|
+
marginBottom: 34
|
|
887
|
+
},
|
|
888
|
+
displayAccent: {
|
|
889
|
+
fontFamily: fonts.serifItalic,
|
|
890
|
+
color: ui.accentText
|
|
891
|
+
},
|
|
892
|
+
planRows: {
|
|
893
|
+
rowGap: 24
|
|
894
|
+
},
|
|
895
|
+
planRow: {
|
|
896
|
+
flexDirection: "row",
|
|
897
|
+
columnGap: 16,
|
|
898
|
+
alignItems: "flex-start"
|
|
899
|
+
},
|
|
900
|
+
planIcon: {
|
|
901
|
+
width: 46,
|
|
902
|
+
height: 46,
|
|
903
|
+
borderRadius: 15,
|
|
904
|
+
backgroundColor: ui.accentSoft,
|
|
905
|
+
alignItems: "center",
|
|
906
|
+
justifyContent: "center"
|
|
907
|
+
},
|
|
908
|
+
planHead: {
|
|
909
|
+
fontFamily: fonts.sansSemi,
|
|
910
|
+
fontSize: 17,
|
|
911
|
+
lineHeight: 22,
|
|
912
|
+
color: ui.ink,
|
|
913
|
+
marginTop: 2
|
|
914
|
+
},
|
|
915
|
+
planBody: {
|
|
916
|
+
fontFamily: fonts.sans,
|
|
917
|
+
fontSize: 15,
|
|
918
|
+
lineHeight: 21,
|
|
919
|
+
color: ui.muted,
|
|
920
|
+
marginTop: 4
|
|
921
|
+
},
|
|
922
|
+
planCaption: {
|
|
923
|
+
marginBottom: 14
|
|
924
|
+
},
|
|
925
|
+
yayText: {
|
|
926
|
+
position: "absolute",
|
|
927
|
+
left: 26,
|
|
928
|
+
right: 26
|
|
929
|
+
},
|
|
930
|
+
yaySub: {
|
|
931
|
+
marginTop: 10
|
|
932
|
+
},
|
|
933
|
+
payBody: {
|
|
934
|
+
position: "absolute",
|
|
935
|
+
left: 0,
|
|
936
|
+
right: 0,
|
|
937
|
+
bottom: 0,
|
|
938
|
+
paddingHorizontal: 26,
|
|
939
|
+
alignItems: "stretch"
|
|
940
|
+
},
|
|
941
|
+
payTitle: {
|
|
942
|
+
fontFamily: fonts.serif,
|
|
943
|
+
fontSize: 50,
|
|
944
|
+
lineHeight: 52,
|
|
945
|
+
letterSpacing: -1.2,
|
|
946
|
+
color: ui.ink,
|
|
947
|
+
marginBottom: 14
|
|
948
|
+
},
|
|
949
|
+
paySub: {
|
|
950
|
+
marginBottom: 26,
|
|
951
|
+
paddingHorizontal: 10
|
|
952
|
+
},
|
|
953
|
+
payNote: {
|
|
954
|
+
flexDirection: "row",
|
|
955
|
+
alignItems: "center",
|
|
956
|
+
justifyContent: "center",
|
|
957
|
+
columnGap: 6,
|
|
958
|
+
marginTop: 14
|
|
959
|
+
},
|
|
960
|
+
remindTitle: {
|
|
961
|
+
fontFamily: fonts.sansSemi,
|
|
962
|
+
fontSize: 24,
|
|
963
|
+
lineHeight: 30,
|
|
964
|
+
letterSpacing: -0.4,
|
|
965
|
+
color: ui.ink,
|
|
966
|
+
paddingHorizontal: 10
|
|
967
|
+
},
|
|
968
|
+
lock: {
|
|
969
|
+
marginTop: 26
|
|
970
|
+
},
|
|
971
|
+
choices: __spreadValues({
|
|
972
|
+
marginTop: -56,
|
|
973
|
+
borderRadius: 26,
|
|
974
|
+
backgroundColor: ui.surface,
|
|
975
|
+
overflow: "hidden",
|
|
976
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
977
|
+
borderColor: "rgba(26,23,20,0.08)"
|
|
978
|
+
}, Platform.select({
|
|
979
|
+
ios: {
|
|
980
|
+
shadowColor: "#2B1A0C",
|
|
981
|
+
shadowOpacity: 0.1,
|
|
982
|
+
shadowRadius: 22,
|
|
983
|
+
shadowOffset: {
|
|
984
|
+
width: 0,
|
|
985
|
+
height: 14
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
default: {
|
|
989
|
+
elevation: 3
|
|
990
|
+
}
|
|
991
|
+
})),
|
|
992
|
+
choice: {
|
|
993
|
+
height: 70,
|
|
994
|
+
flexDirection: "row",
|
|
995
|
+
alignItems: "center",
|
|
996
|
+
columnGap: 12,
|
|
997
|
+
paddingHorizontal: 18
|
|
998
|
+
},
|
|
999
|
+
choiceLine: {
|
|
1000
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
1001
|
+
borderTopColor: "rgba(26,23,20,0.1)"
|
|
1002
|
+
},
|
|
1003
|
+
choiceTitle: {
|
|
1004
|
+
fontFamily: fonts.sansSemi,
|
|
1005
|
+
fontSize: 17,
|
|
1006
|
+
color: ui.ink
|
|
1007
|
+
},
|
|
1008
|
+
choiceDate: {
|
|
1009
|
+
fontFamily: fonts.sans,
|
|
1010
|
+
fontSize: 14,
|
|
1011
|
+
color: ui.muted,
|
|
1012
|
+
marginTop: 4
|
|
1013
|
+
},
|
|
1014
|
+
radio: {
|
|
1015
|
+
width: 26,
|
|
1016
|
+
height: 26,
|
|
1017
|
+
borderRadius: 13,
|
|
1018
|
+
borderWidth: 1.5,
|
|
1019
|
+
borderColor: "rgba(26,23,20,0.18)",
|
|
1020
|
+
alignItems: "center",
|
|
1021
|
+
justifyContent: "center"
|
|
1022
|
+
},
|
|
1023
|
+
radioOn: {
|
|
1024
|
+
backgroundColor: ui.accent,
|
|
1025
|
+
borderColor: ui.accent
|
|
1026
|
+
},
|
|
1027
|
+
remindNote: {
|
|
1028
|
+
marginTop: 10
|
|
1029
|
+
},
|
|
1030
|
+
done: {
|
|
1031
|
+
paddingHorizontal: 24
|
|
1032
|
+
},
|
|
1033
|
+
doneTitle: {
|
|
1034
|
+
fontFamily: fonts.serif,
|
|
1035
|
+
fontSize: 44,
|
|
1036
|
+
lineHeight: 46,
|
|
1037
|
+
letterSpacing: -1.1,
|
|
1038
|
+
color: ui.ink
|
|
1039
|
+
},
|
|
1040
|
+
doneSub: {
|
|
1041
|
+
marginTop: 10,
|
|
1042
|
+
marginBottom: 24
|
|
1043
|
+
},
|
|
1044
|
+
chips: {
|
|
1045
|
+
flexDirection: "row",
|
|
1046
|
+
flexWrap: "wrap",
|
|
1047
|
+
gap: 10
|
|
1048
|
+
},
|
|
1049
|
+
chip: {
|
|
1050
|
+
height: 46,
|
|
1051
|
+
borderRadius: 23,
|
|
1052
|
+
flexDirection: "row",
|
|
1053
|
+
alignItems: "center",
|
|
1054
|
+
columnGap: 8,
|
|
1055
|
+
paddingLeft: 13,
|
|
1056
|
+
paddingRight: 16,
|
|
1057
|
+
backgroundColor: ui.surface,
|
|
1058
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
1059
|
+
borderColor: "rgba(26,23,20,0.12)"
|
|
1060
|
+
},
|
|
1061
|
+
chipLabel: {
|
|
1062
|
+
fontFamily: fonts.sansMedium,
|
|
1063
|
+
fontSize: 15,
|
|
1064
|
+
color: ui.ink
|
|
1065
|
+
}
|
|
1066
|
+
});export{WelcomeScreen as default};//# sourceMappingURL=index.js.map
|