@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,1996 @@
|
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useRef,useEffect,useState,useMemo,useId}from'react';import {StyleSheet,Animated,Easing,View,Text,Pressable,ActivityIndicator,StatusBar,Platform}from'react-native';import Svg,{Defs,RadialGradient,Stop,Ellipse,LinearGradient,Rect,Circle,Path}from'react-native-svg';import {Ionicons}from'@expo/vector-icons';import {MARK,Mark}from'../components/Logo.js';import {fonts}from'../theme/fonts.js';import {ui}from'../theme/muse.js';import {WIND_BACK,WORD_MS,rollRows,yearsLabel,odometerColumns,WORD_FADE_MS}from'./flow.js';import {ticks,writing,reel,thud,success,powerOn,tap}from'./haptics.js';import {POWER_ON,tickLitAt}from'./powerOn.js';import {play}from'./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
|
+
function pressed(action) {
|
|
21
|
+
tap();
|
|
22
|
+
action();
|
|
23
|
+
}
|
|
24
|
+
const EASE = Easing.bezier(0.2, 0.7, 0.2, 1);
|
|
25
|
+
const hidden = {
|
|
26
|
+
accessibilityElementsHidden: true,
|
|
27
|
+
importantForAccessibility: "no-hide-descendants"
|
|
28
|
+
};
|
|
29
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
30
|
+
function useSvgId(name) {
|
|
31
|
+
return `${name}${useId().replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
32
|
+
}
|
|
33
|
+
function glowShadow(radius, opacity) {
|
|
34
|
+
return Platform.OS === "ios" ? {
|
|
35
|
+
shadowColor: ui.accent,
|
|
36
|
+
shadowOpacity: opacity,
|
|
37
|
+
shadowRadius: radius,
|
|
38
|
+
shadowOffset: {
|
|
39
|
+
width: 0,
|
|
40
|
+
height: 0
|
|
41
|
+
}
|
|
42
|
+
} : {};
|
|
43
|
+
}
|
|
44
|
+
function Reveal({
|
|
45
|
+
delay = 0,
|
|
46
|
+
still = false,
|
|
47
|
+
rise = 12,
|
|
48
|
+
from = 0,
|
|
49
|
+
to = 1,
|
|
50
|
+
style,
|
|
51
|
+
children
|
|
52
|
+
}) {
|
|
53
|
+
const v = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (still) {
|
|
56
|
+
v.setValue(1);
|
|
57
|
+
return void 0;
|
|
58
|
+
}
|
|
59
|
+
const anim = Animated.timing(v, {
|
|
60
|
+
toValue: 1,
|
|
61
|
+
duration: 650,
|
|
62
|
+
delay,
|
|
63
|
+
easing: EASE,
|
|
64
|
+
useNativeDriver: true
|
|
65
|
+
});
|
|
66
|
+
anim.start();
|
|
67
|
+
return () => anim.stop();
|
|
68
|
+
}, [delay, still, v]);
|
|
69
|
+
return /* @__PURE__ */ jsx(Animated.View, { style: [style, {
|
|
70
|
+
opacity: v.interpolate({
|
|
71
|
+
inputRange: [0, 1],
|
|
72
|
+
outputRange: [from, to]
|
|
73
|
+
}),
|
|
74
|
+
transform: [{
|
|
75
|
+
translateY: v.interpolate({
|
|
76
|
+
inputRange: [0, 1],
|
|
77
|
+
outputRange: [rise, 0]
|
|
78
|
+
})
|
|
79
|
+
}]
|
|
80
|
+
}], children });
|
|
81
|
+
}
|
|
82
|
+
function Words({
|
|
83
|
+
words,
|
|
84
|
+
label,
|
|
85
|
+
start = 0,
|
|
86
|
+
still = false,
|
|
87
|
+
style,
|
|
88
|
+
accent,
|
|
89
|
+
center = false,
|
|
90
|
+
gap = 5
|
|
91
|
+
}) {
|
|
92
|
+
const span = WORD_FADE_MS / WORD_MS;
|
|
93
|
+
const total = words.length + span;
|
|
94
|
+
const p = useRef(new Animated.Value(still ? total : 0)).current;
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
if (still) {
|
|
97
|
+
p.setValue(total);
|
|
98
|
+
return void 0;
|
|
99
|
+
}
|
|
100
|
+
const anim = Animated.timing(p, {
|
|
101
|
+
toValue: total,
|
|
102
|
+
duration: total * WORD_MS,
|
|
103
|
+
delay: start,
|
|
104
|
+
easing: Easing.linear,
|
|
105
|
+
useNativeDriver: true
|
|
106
|
+
});
|
|
107
|
+
anim.start();
|
|
108
|
+
const cancel = writing(words.length, WORD_MS, start + 120);
|
|
109
|
+
return () => {
|
|
110
|
+
anim.stop();
|
|
111
|
+
cancel();
|
|
112
|
+
};
|
|
113
|
+
}, [p, start, still, total, words.length]);
|
|
114
|
+
return /* @__PURE__ */ jsx(View, { accessible: true, accessibilityRole: "text", accessibilityLabel: label, style: [s.words, {
|
|
115
|
+
columnGap: gap
|
|
116
|
+
}, center && s.wordsCenter], children: words.map((w, i) => /* @__PURE__ */ jsxs(Animated.Text, __spreadProps(__spreadValues({}, hidden), { style: [style, {
|
|
117
|
+
opacity: p.interpolate({
|
|
118
|
+
inputRange: [i, i + span],
|
|
119
|
+
outputRange: [0, 1],
|
|
120
|
+
extrapolate: "clamp"
|
|
121
|
+
}),
|
|
122
|
+
transform: [{
|
|
123
|
+
translateY: p.interpolate({
|
|
124
|
+
inputRange: [i, i + span],
|
|
125
|
+
outputRange: [7, 0],
|
|
126
|
+
extrapolate: "clamp"
|
|
127
|
+
})
|
|
128
|
+
}]
|
|
129
|
+
}], children: [
|
|
130
|
+
w.a ? /* @__PURE__ */ jsx(Text, { style: accent, children: w.a }) : null,
|
|
131
|
+
w.b
|
|
132
|
+
] }), i)) });
|
|
133
|
+
}
|
|
134
|
+
function StaticWords({
|
|
135
|
+
words,
|
|
136
|
+
label,
|
|
137
|
+
style,
|
|
138
|
+
accent,
|
|
139
|
+
gap = 5
|
|
140
|
+
}) {
|
|
141
|
+
return /* @__PURE__ */ jsx(View, { accessible: true, accessibilityRole: "text", accessibilityLabel: label, style: [s.words, {
|
|
142
|
+
columnGap: gap
|
|
143
|
+
}], children: words.map((w, i) => /* @__PURE__ */ jsxs(Text, __spreadProps(__spreadValues({}, hidden), { style, children: [
|
|
144
|
+
w.a ? /* @__PURE__ */ jsx(Text, { style: accent, children: w.a }) : null,
|
|
145
|
+
w.b
|
|
146
|
+
] }), i)) });
|
|
147
|
+
}
|
|
148
|
+
function LucyOrb({
|
|
149
|
+
size = 92,
|
|
150
|
+
think = false,
|
|
151
|
+
still = false
|
|
152
|
+
}) {
|
|
153
|
+
const face = useSvgId("orbFace");
|
|
154
|
+
const spec = useSvgId("orbSpec");
|
|
155
|
+
const halo = useSvgId("orbHalo");
|
|
156
|
+
const turn = useRef(new Animated.Value(0)).current;
|
|
157
|
+
const breathe = useRef(new Animated.Value(0.5)).current;
|
|
158
|
+
useEffect(() => {
|
|
159
|
+
turn.setValue(0);
|
|
160
|
+
if (still)
|
|
161
|
+
return void 0;
|
|
162
|
+
const loop = Animated.loop(Animated.timing(turn, {
|
|
163
|
+
toValue: 1,
|
|
164
|
+
duration: think ? 750 : 2400,
|
|
165
|
+
easing: think ? Easing.linear : Easing.inOut(Easing.cubic),
|
|
166
|
+
useNativeDriver: true
|
|
167
|
+
}));
|
|
168
|
+
loop.start();
|
|
169
|
+
return () => loop.stop();
|
|
170
|
+
}, [still, think, turn]);
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
if (still) {
|
|
173
|
+
breathe.setValue(0.5);
|
|
174
|
+
return void 0;
|
|
175
|
+
}
|
|
176
|
+
const loop = Animated.loop(Animated.sequence([Animated.timing(breathe, {
|
|
177
|
+
toValue: 1,
|
|
178
|
+
duration: 1800,
|
|
179
|
+
easing: Easing.inOut(Easing.sin),
|
|
180
|
+
useNativeDriver: true
|
|
181
|
+
}), Animated.timing(breathe, {
|
|
182
|
+
toValue: 0,
|
|
183
|
+
duration: 1800,
|
|
184
|
+
easing: Easing.inOut(Easing.sin),
|
|
185
|
+
useNativeDriver: true
|
|
186
|
+
})]));
|
|
187
|
+
loop.start();
|
|
188
|
+
return () => loop.stop();
|
|
189
|
+
}, [breathe, still]);
|
|
190
|
+
const unit = size / 18;
|
|
191
|
+
const dx = (MARK.PIVOT.x + 1 - 9) * unit;
|
|
192
|
+
const dy = (MARK.PIVOT.y + 1 - 9) * unit;
|
|
193
|
+
const rotate = turn.interpolate({
|
|
194
|
+
inputRange: [0, 1],
|
|
195
|
+
outputRange: ["0deg", "-360deg"]
|
|
196
|
+
});
|
|
197
|
+
const H = size * 2.6;
|
|
198
|
+
return /* @__PURE__ */ jsxs(View, __spreadProps(__spreadValues({ style: {
|
|
199
|
+
width: size,
|
|
200
|
+
height: size
|
|
201
|
+
} }, hidden), { children: [
|
|
202
|
+
/* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: {
|
|
203
|
+
position: "absolute",
|
|
204
|
+
left: (size - H) / 2,
|
|
205
|
+
top: (size - H) / 2,
|
|
206
|
+
width: H,
|
|
207
|
+
height: H,
|
|
208
|
+
opacity: breathe.interpolate({
|
|
209
|
+
inputRange: [0, 1],
|
|
210
|
+
outputRange: [0.7, 1]
|
|
211
|
+
}),
|
|
212
|
+
transform: [{
|
|
213
|
+
scale: breathe.interpolate({
|
|
214
|
+
inputRange: [0, 1],
|
|
215
|
+
outputRange: [0.94, 1.06]
|
|
216
|
+
})
|
|
217
|
+
}]
|
|
218
|
+
}, children: /* @__PURE__ */ jsxs(Svg, { width: H, height: H, children: [
|
|
219
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: halo, cx: "50%", cy: "50%", r: "50%", children: [
|
|
220
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF6A14", stopOpacity: 0.36 }),
|
|
221
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.45", stopColor: "#FF5A00", stopOpacity: 0.12 }),
|
|
222
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF5A00", stopOpacity: 0 })
|
|
223
|
+
] }) }),
|
|
224
|
+
/* @__PURE__ */ jsx(Circle, { cx: H / 2, cy: H / 2, r: H / 2, fill: `url(#${halo})` })
|
|
225
|
+
] }) }),
|
|
226
|
+
/* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, s.orbShadow], children: /* @__PURE__ */ jsxs(Svg, { width: size, height: size, viewBox: "-1 -1 18 18", children: [
|
|
227
|
+
/* @__PURE__ */ jsxs(Defs, { children: [
|
|
228
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: face, cx: "36%", cy: "30%", r: "80%", children: [
|
|
229
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFC08F" }),
|
|
230
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.38", stopColor: "#FF7A2C" }),
|
|
231
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.72", stopColor: "#FF5A00" }),
|
|
232
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#D64700" })
|
|
233
|
+
] }),
|
|
234
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: spec, cx: "50%", cy: "50%", r: "50%", children: [
|
|
235
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFFFFF", stopOpacity: 0.75 }),
|
|
236
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFFFFF", stopOpacity: 0 })
|
|
237
|
+
] })
|
|
238
|
+
] }),
|
|
239
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.BACK, fill: "#FF5A00", opacity: 0.28 }),
|
|
240
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.FACE, fill: `url(#${face})` }),
|
|
241
|
+
/* @__PURE__ */ jsx(Ellipse, { cx: 5.3, cy: 4.5, rx: 3.2, ry: 2, fill: `url(#${spec})`, transform: "rotate(-28 5.3 4.5)" }),
|
|
242
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.HOUR, fill: "none", stroke: "#fff", strokeWidth: 0.86, strokeLinecap: "round" })
|
|
243
|
+
] }) }),
|
|
244
|
+
/* @__PURE__ */ jsx(Animated.View, { style: {
|
|
245
|
+
position: "absolute",
|
|
246
|
+
width: size,
|
|
247
|
+
height: size,
|
|
248
|
+
transform: [{
|
|
249
|
+
translateX: dx
|
|
250
|
+
}, {
|
|
251
|
+
translateY: dy
|
|
252
|
+
}, {
|
|
253
|
+
rotate
|
|
254
|
+
}, {
|
|
255
|
+
translateX: -dx
|
|
256
|
+
}, {
|
|
257
|
+
translateY: -dy
|
|
258
|
+
}]
|
|
259
|
+
}, children: /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "-1 -1 18 18", children: /* @__PURE__ */ jsx(Path, { d: MARK.MINUTE, fill: "none", stroke: "#fff", strokeWidth: 0.86, strokeLinecap: "round" }) }) })
|
|
260
|
+
] }));
|
|
261
|
+
}
|
|
262
|
+
function Glow({
|
|
263
|
+
mode,
|
|
264
|
+
width,
|
|
265
|
+
top,
|
|
266
|
+
dialY,
|
|
267
|
+
yayY,
|
|
268
|
+
still
|
|
269
|
+
}) {
|
|
270
|
+
const id = useSvgId("glow");
|
|
271
|
+
const warm = useSvgId("warm");
|
|
272
|
+
const W = width * 2.2;
|
|
273
|
+
const H = width * 1.9;
|
|
274
|
+
const at = {
|
|
275
|
+
dim: {
|
|
276
|
+
o: 0.35,
|
|
277
|
+
y: top - 70,
|
|
278
|
+
s: 1
|
|
279
|
+
},
|
|
280
|
+
on: {
|
|
281
|
+
o: 1,
|
|
282
|
+
y: top - 40,
|
|
283
|
+
s: 1
|
|
284
|
+
},
|
|
285
|
+
lit: {
|
|
286
|
+
o: 1,
|
|
287
|
+
y: dialY,
|
|
288
|
+
s: 0.9
|
|
289
|
+
},
|
|
290
|
+
wide: {
|
|
291
|
+
o: 0.9,
|
|
292
|
+
y: top - 20,
|
|
293
|
+
s: 1.12
|
|
294
|
+
},
|
|
295
|
+
yay: {
|
|
296
|
+
o: 1,
|
|
297
|
+
y: yayY,
|
|
298
|
+
s: 1
|
|
299
|
+
},
|
|
300
|
+
off: {
|
|
301
|
+
o: 0,
|
|
302
|
+
y: top - 40,
|
|
303
|
+
s: 1
|
|
304
|
+
}
|
|
305
|
+
}[mode];
|
|
306
|
+
const op = useRef(new Animated.Value(at.o)).current;
|
|
307
|
+
const ty = useRef(new Animated.Value(at.y - H / 2)).current;
|
|
308
|
+
const sc = useRef(new Animated.Value(at.s)).current;
|
|
309
|
+
const drift = useRef(new Animated.Value(0)).current;
|
|
310
|
+
useEffect(() => {
|
|
311
|
+
const cfg = {
|
|
312
|
+
duration: still ? 0 : 1300,
|
|
313
|
+
easing: EASE,
|
|
314
|
+
useNativeDriver: true
|
|
315
|
+
};
|
|
316
|
+
const anim = Animated.parallel([Animated.timing(op, __spreadProps(__spreadValues({}, cfg), {
|
|
317
|
+
toValue: at.o
|
|
318
|
+
})), Animated.timing(ty, __spreadProps(__spreadValues({}, cfg), {
|
|
319
|
+
toValue: at.y - H / 2
|
|
320
|
+
})), Animated.timing(sc, __spreadProps(__spreadValues({}, cfg), {
|
|
321
|
+
toValue: at.s
|
|
322
|
+
}))]);
|
|
323
|
+
anim.start();
|
|
324
|
+
return () => anim.stop();
|
|
325
|
+
}, [H, at.o, at.s, at.y, op, sc, still, ty]);
|
|
326
|
+
useEffect(() => {
|
|
327
|
+
if (still)
|
|
328
|
+
return void 0;
|
|
329
|
+
const loop = Animated.loop(Animated.sequence([Animated.timing(drift, {
|
|
330
|
+
toValue: 1,
|
|
331
|
+
duration: 1e4,
|
|
332
|
+
easing: Easing.inOut(Easing.sin),
|
|
333
|
+
useNativeDriver: true
|
|
334
|
+
}), Animated.timing(drift, {
|
|
335
|
+
toValue: 0,
|
|
336
|
+
duration: 1e4,
|
|
337
|
+
easing: Easing.inOut(Easing.sin),
|
|
338
|
+
useNativeDriver: true
|
|
339
|
+
})]));
|
|
340
|
+
loop.start();
|
|
341
|
+
return () => loop.stop();
|
|
342
|
+
}, [drift, still]);
|
|
343
|
+
return /* @__PURE__ */ jsxs(Animated.View, __spreadProps(__spreadValues({ pointerEvents: "none" }, hidden), { style: {
|
|
344
|
+
position: "absolute",
|
|
345
|
+
left: (width - W) / 2,
|
|
346
|
+
top: 0,
|
|
347
|
+
width: W,
|
|
348
|
+
height: H,
|
|
349
|
+
opacity: op,
|
|
350
|
+
transform: [{
|
|
351
|
+
translateY: ty
|
|
352
|
+
}, {
|
|
353
|
+
scale: sc
|
|
354
|
+
}]
|
|
355
|
+
}, children: [
|
|
356
|
+
/* @__PURE__ */ jsxs(Svg, { width: W, height: H, children: [
|
|
357
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id, cx: "50%", cy: "50%", r: "50%", children: [
|
|
358
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF6A14", stopOpacity: 0.26 }),
|
|
359
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.55", stopColor: "#FFB27A", stopOpacity: 0.22 }),
|
|
360
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFB27A", stopOpacity: 0 })
|
|
361
|
+
] }) }),
|
|
362
|
+
/* @__PURE__ */ jsx(Ellipse, { cx: W / 2, cy: H / 2, rx: W / 2, ry: H / 2, fill: `url(#${id})` })
|
|
363
|
+
] }),
|
|
364
|
+
/* @__PURE__ */ jsx(Animated.View, { style: {
|
|
365
|
+
position: "absolute",
|
|
366
|
+
left: W * 0.22,
|
|
367
|
+
top: H * 0.44,
|
|
368
|
+
width: W * 0.56,
|
|
369
|
+
height: H * 0.34,
|
|
370
|
+
transform: [{
|
|
371
|
+
translateX: drift.interpolate({
|
|
372
|
+
inputRange: [0, 1],
|
|
373
|
+
outputRange: [-W * 0.08, W * 0.1]
|
|
374
|
+
})
|
|
375
|
+
}]
|
|
376
|
+
}, children: /* @__PURE__ */ jsxs(Svg, { width: W * 0.56, height: H * 0.34, children: [
|
|
377
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: warm, cx: "50%", cy: "50%", r: "50%", children: [
|
|
378
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFC878", stopOpacity: 0.3 }),
|
|
379
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFC878", stopOpacity: 0 })
|
|
380
|
+
] }) }),
|
|
381
|
+
/* @__PURE__ */ jsx(Ellipse, { cx: W * 0.28, cy: H * 0.17, rx: W * 0.28, ry: H * 0.17, fill: `url(#${warm})` })
|
|
382
|
+
] }) })
|
|
383
|
+
] }));
|
|
384
|
+
}
|
|
385
|
+
function useHand(period, dir, rest, still) {
|
|
386
|
+
const angle = useRef(new Animated.Value(rest)).current;
|
|
387
|
+
useEffect(() => {
|
|
388
|
+
if (still) {
|
|
389
|
+
angle.stopAnimation();
|
|
390
|
+
angle.setValue(rest);
|
|
391
|
+
return void 0;
|
|
392
|
+
}
|
|
393
|
+
let loop = null;
|
|
394
|
+
let alive = true;
|
|
395
|
+
angle.stopAnimation((from) => {
|
|
396
|
+
if (!alive)
|
|
397
|
+
return;
|
|
398
|
+
const start = Number.isFinite(from) ? from % 360 : rest;
|
|
399
|
+
angle.setValue(start);
|
|
400
|
+
loop = Animated.loop(Animated.timing(angle, {
|
|
401
|
+
toValue: start + dir * 360,
|
|
402
|
+
duration: period,
|
|
403
|
+
easing: Easing.linear,
|
|
404
|
+
useNativeDriver: true
|
|
405
|
+
}));
|
|
406
|
+
loop.start();
|
|
407
|
+
});
|
|
408
|
+
return () => {
|
|
409
|
+
alive = false;
|
|
410
|
+
loop == null ? void 0 : loop.stop();
|
|
411
|
+
};
|
|
412
|
+
}, [angle, dir, period, rest, still]);
|
|
413
|
+
return angle;
|
|
414
|
+
}
|
|
415
|
+
function Hand({
|
|
416
|
+
angle,
|
|
417
|
+
size,
|
|
418
|
+
length,
|
|
419
|
+
width,
|
|
420
|
+
glow
|
|
421
|
+
}) {
|
|
422
|
+
const r = size / 2;
|
|
423
|
+
const rotate = angle.interpolate({
|
|
424
|
+
inputRange: [-3600, 3600],
|
|
425
|
+
outputRange: ["-3600deg", "3600deg"]
|
|
426
|
+
});
|
|
427
|
+
return /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
428
|
+
transform: [{
|
|
429
|
+
rotate
|
|
430
|
+
}]
|
|
431
|
+
}], children: /* @__PURE__ */ jsx(View, { style: [s.hand, {
|
|
432
|
+
left: r - width / 2,
|
|
433
|
+
top: r - length,
|
|
434
|
+
width,
|
|
435
|
+
height: length,
|
|
436
|
+
borderRadius: width / 2
|
|
437
|
+
}, glow && glowShadow(8, 0.9)] }) });
|
|
438
|
+
}
|
|
439
|
+
const TICKS = Array.from({
|
|
440
|
+
length: 60
|
|
441
|
+
}, (_, i) => i);
|
|
442
|
+
function Dial({
|
|
443
|
+
beat,
|
|
444
|
+
size,
|
|
445
|
+
still
|
|
446
|
+
}) {
|
|
447
|
+
const lit = useRef(new Animated.Value(beat >= 3 ? 1 : 0)).current;
|
|
448
|
+
const scale = useRef(new Animated.Value(beat === 1 ? 1 : beat === 4 ? 0.32 : 1.2)).current;
|
|
449
|
+
const fade = useRef(new Animated.Value(beat === 4 ? 0 : 1)).current;
|
|
450
|
+
useEffect(() => {
|
|
451
|
+
const ms = (n) => still ? 0 : n;
|
|
452
|
+
const anim = Animated.parallel([Animated.timing(scale, {
|
|
453
|
+
toValue: beat === 1 ? 1 : beat === 4 ? 0.32 : 1.2,
|
|
454
|
+
duration: ms(1200),
|
|
455
|
+
easing: EASE,
|
|
456
|
+
useNativeDriver: true
|
|
457
|
+
}), Animated.timing(fade, {
|
|
458
|
+
toValue: beat === 4 ? 0 : 1,
|
|
459
|
+
duration: ms(900),
|
|
460
|
+
easing: EASE,
|
|
461
|
+
useNativeDriver: true
|
|
462
|
+
}), Animated.timing(lit, {
|
|
463
|
+
toValue: beat >= 3 ? 1 : 0,
|
|
464
|
+
duration: ms(WIND_BACK.lit),
|
|
465
|
+
easing: Easing.linear,
|
|
466
|
+
useNativeDriver: true
|
|
467
|
+
})]);
|
|
468
|
+
anim.start();
|
|
469
|
+
const winding = beat === 3 && !still;
|
|
470
|
+
const cancel = winding ? ticks(WIND_BACK.count, WIND_BACK.every, WIND_BACK.start) : () => void 0;
|
|
471
|
+
const hush = winding ? play("windBack") : () => void 0;
|
|
472
|
+
return () => {
|
|
473
|
+
anim.stop();
|
|
474
|
+
cancel();
|
|
475
|
+
hush();
|
|
476
|
+
};
|
|
477
|
+
}, [beat, fade, lit, scale, still]);
|
|
478
|
+
const back = beat >= 3;
|
|
479
|
+
const minute = useHand(beat === 1 ? 4e3 : beat === 2 ? 1e4 : 1e3, back ? -1 : 1, 60, still);
|
|
480
|
+
const hour = useHand(beat === 1 ? 48e3 : beat === 2 ? 12e4 : 12e3, back ? -1 : 1, -60, still);
|
|
481
|
+
const r = size / 2;
|
|
482
|
+
return /* @__PURE__ */ jsxs(Animated.View, __spreadProps(__spreadValues({}, hidden), { style: {
|
|
483
|
+
width: size,
|
|
484
|
+
height: size,
|
|
485
|
+
opacity: fade,
|
|
486
|
+
transform: [{
|
|
487
|
+
scale
|
|
488
|
+
}]
|
|
489
|
+
}, children: [
|
|
490
|
+
/* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, {
|
|
491
|
+
borderRadius: r,
|
|
492
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
493
|
+
borderColor: ui.hairline
|
|
494
|
+
}] }),
|
|
495
|
+
TICKS.map((i) => /* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, {
|
|
496
|
+
transform: [{
|
|
497
|
+
rotate: `${i * 6}deg`
|
|
498
|
+
}]
|
|
499
|
+
}], children: /* @__PURE__ */ jsx(View, { style: i % 5 === 0 ? s.tickMajor : s.tick }) }, i)),
|
|
500
|
+
TICKS.map((i) => {
|
|
501
|
+
const k = (60 - i) % 60;
|
|
502
|
+
return /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
503
|
+
opacity: lit.interpolate({
|
|
504
|
+
inputRange: [k / 60, Math.min(1, (k + 4) / 60)],
|
|
505
|
+
outputRange: [0, 1],
|
|
506
|
+
extrapolate: "clamp"
|
|
507
|
+
}),
|
|
508
|
+
transform: [{
|
|
509
|
+
rotate: `${i * 6}deg`
|
|
510
|
+
}]
|
|
511
|
+
}], children: /* @__PURE__ */ jsx(View, { style: [i % 5 === 0 ? s.tickMajor : s.tick, i % 5 === 0 ? s.tickMajorLit : s.tickLit] }) }, `lit${i}`);
|
|
512
|
+
}),
|
|
513
|
+
/* @__PURE__ */ jsx(Hand, { angle: hour, size, length: size * 0.25, width: 5 }),
|
|
514
|
+
/* @__PURE__ */ jsx(Hand, { angle: minute, size, length: size * 0.386, width: 3, glow: back }),
|
|
515
|
+
/* @__PURE__ */ jsx(View, { style: [s.pin, back && s.pinLit, {
|
|
516
|
+
left: r - 6.5,
|
|
517
|
+
top: r - 6.5
|
|
518
|
+
}] })
|
|
519
|
+
] }));
|
|
520
|
+
}
|
|
521
|
+
function curve(t, keys) {
|
|
522
|
+
const input = [keys[0][0]];
|
|
523
|
+
const output = [keys[0][1]];
|
|
524
|
+
for (let k = 1; k < keys.length; k++) {
|
|
525
|
+
const [t0, v0] = keys[k - 1];
|
|
526
|
+
const [t1, v1, ease] = keys[k];
|
|
527
|
+
const steps = ease ? 10 : 1;
|
|
528
|
+
for (let i = 1; i <= steps; i++) {
|
|
529
|
+
const f = i / steps;
|
|
530
|
+
input.push(t0 + (t1 - t0) * f);
|
|
531
|
+
output.push(v0 + (v1 - v0) * (ease ? ease(f) : f));
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
return t.interpolate({
|
|
535
|
+
inputRange: input,
|
|
536
|
+
outputRange: output,
|
|
537
|
+
extrapolate: "clamp"
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
function ring(t, at, ms, alpha, from, to) {
|
|
541
|
+
return {
|
|
542
|
+
opacity: curve(t, [[at - 1, 0], [at, alpha], [at + ms, 0, OUT]]),
|
|
543
|
+
scale: curve(t, [[at, from], [at + ms, to, OUT]])
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
function fromPin(scale, length) {
|
|
547
|
+
return scale.interpolate({
|
|
548
|
+
inputRange: [0, 1],
|
|
549
|
+
outputRange: [length / 2, 0]
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
const OUT = Easing.out(Easing.cubic);
|
|
553
|
+
const IN = Easing.in(Easing.cubic);
|
|
554
|
+
const IN_OUT = Easing.inOut(Easing.cubic);
|
|
555
|
+
const SNAP = Easing.bezier(0.2, 0.9, 0.25, 1.35);
|
|
556
|
+
const INK_BG = "#0E0B09";
|
|
557
|
+
const EMBER = "#FF8A3D";
|
|
558
|
+
const PO_MARK = 112;
|
|
559
|
+
const PO_GLOW = 320;
|
|
560
|
+
const PO_FLASH = 170;
|
|
561
|
+
const PO_CREAM = 100;
|
|
562
|
+
function PowerOn({
|
|
563
|
+
size,
|
|
564
|
+
center,
|
|
565
|
+
width,
|
|
566
|
+
height,
|
|
567
|
+
onDone
|
|
568
|
+
}) {
|
|
569
|
+
const t = useRef(new Animated.Value(0)).current;
|
|
570
|
+
const done = useRef(onDone);
|
|
571
|
+
done.current = onDone;
|
|
572
|
+
const [dark, setDark] = useState(true);
|
|
573
|
+
const glowId = useSvgId("poGlow");
|
|
574
|
+
const flashId = useSvgId("poFlash");
|
|
575
|
+
useEffect(() => {
|
|
576
|
+
let playedThrough = false;
|
|
577
|
+
const anim = Animated.timing(t, {
|
|
578
|
+
toValue: POWER_ON.done,
|
|
579
|
+
duration: POWER_ON.done,
|
|
580
|
+
easing: Easing.linear,
|
|
581
|
+
useNativeDriver: true
|
|
582
|
+
});
|
|
583
|
+
anim.start(({
|
|
584
|
+
finished
|
|
585
|
+
}) => {
|
|
586
|
+
if (!finished)
|
|
587
|
+
return;
|
|
588
|
+
playedThrough = true;
|
|
589
|
+
done.current();
|
|
590
|
+
});
|
|
591
|
+
const stopBuzz = powerOn();
|
|
592
|
+
const stopSound = play("powerOn");
|
|
593
|
+
const cream = setTimeout(() => setDark(false), POWER_ON.ignite + 160);
|
|
594
|
+
return () => {
|
|
595
|
+
anim.stop();
|
|
596
|
+
stopBuzz();
|
|
597
|
+
if (!playedThrough)
|
|
598
|
+
stopSound();
|
|
599
|
+
clearTimeout(cream);
|
|
600
|
+
};
|
|
601
|
+
}, [t]);
|
|
602
|
+
const r = size / 2;
|
|
603
|
+
const minute = size * 0.386;
|
|
604
|
+
const hour = size * 0.25;
|
|
605
|
+
const reach = Math.hypot(Math.max(center.x, width - center.x), Math.max(center.y, height - center.y)) + 24;
|
|
606
|
+
const c = useMemo(() => {
|
|
607
|
+
const toPaper = [[POWER_ON.paper, 1], [POWER_ON.paper + 560, 0, IN_OUT]];
|
|
608
|
+
const minuteLength = curve(t, [[POWER_ON.click, 0.55], [POWER_ON.click + 240, 1, OUT]]);
|
|
609
|
+
const hourLength = curve(t, [[1700, 1e-3], [2220, 1, OUT]]);
|
|
610
|
+
const [b0, b1] = POWER_ON.beats;
|
|
611
|
+
return {
|
|
612
|
+
dimOut: curve(t, toPaper),
|
|
613
|
+
inkIn: curve(t, [[POWER_ON.paper, 0], [POWER_ON.paper + 560, 1, IN_OUT]]),
|
|
614
|
+
lit: TICKS.map((i) => {
|
|
615
|
+
const at = tickLitAt(i);
|
|
616
|
+
return curve(t, [[at, 0], [at + 140, 1, OUT], ...toPaper]);
|
|
617
|
+
}),
|
|
618
|
+
flash: curve(t, [[POWER_ON.click, 0], [POWER_ON.click + 50, 1], [POWER_ON.click + 340, 0, OUT]]),
|
|
619
|
+
minuteShow: curve(t, [[POWER_ON.click, 0], [POWER_ON.click + 90, 1]]),
|
|
620
|
+
minuteAngle: curve(t, [[POWER_ON.click, -32], [POWER_ON.click + 240, 0, SNAP], [POWER_ON.settle, 0], [POWER_ON.settle + 620, 60, IN_OUT]]).interpolate({
|
|
621
|
+
inputRange: [-360, 360],
|
|
622
|
+
outputRange: ["-360deg", "360deg"]
|
|
623
|
+
}),
|
|
624
|
+
minuteLength,
|
|
625
|
+
minuteFromPin: fromPin(minuteLength, minute),
|
|
626
|
+
hourShow: curve(t, [[1700, 0], [1760, 1]]),
|
|
627
|
+
hourLength,
|
|
628
|
+
hourFromPin: fromPin(hourLength, hour),
|
|
629
|
+
pin: curve(t, [[1780, 0], [2020, 1, OUT]]),
|
|
630
|
+
cream: curve(t, [[1020, 1e-3], [1660, reach * 2 / PO_CREAM, OUT]]),
|
|
631
|
+
glowShow: curve(t, [[POWER_ON.ignite, 0], [1225, 1, OUT], [1600, 0.55, IN_OUT], [2100, 0, IN_OUT]]),
|
|
632
|
+
glowScale: curve(t, [[POWER_ON.ignite, 0.4], [1225, 1.15, OUT], [1900, 1, IN_OUT]]),
|
|
633
|
+
flashShow: curve(t, [[POWER_ON.ignite, 0], [1050, 0.85, OUT], [1300, 0, IN_OUT]]),
|
|
634
|
+
markShow: curve(t, [[POWER_ON.ignite, 0], [1180, 1, OUT], [POWER_ON.sink, 1], [POWER_ON.sink + 380, 0, IN]]),
|
|
635
|
+
markScale: curve(t, [[POWER_ON.ignite, 0.3], [1180, 1.15, OUT], [b0, 1, IN_OUT], [b0 + 88, 1.08, IN_OUT], [b1, 1, IN_OUT], [b1 + 80, 1.04, IN_OUT], [POWER_ON.sink, 1, IN_OUT], [POWER_ON.sink + 380, 0.07, IN]]),
|
|
636
|
+
rings: [ring(t, POWER_ON.ignite, 780, 0.9, 0.7, 4.4), ring(t, b0, 620, 0.5, 0.95, 2.1), ring(t, b1, 560, 0.32, 0.95, 1.7)]
|
|
637
|
+
};
|
|
638
|
+
}, [hour, minute, reach, t]);
|
|
639
|
+
return /* @__PURE__ */ jsxs(Pressable, { style: StyleSheet.absoluteFill, onPress: () => {
|
|
640
|
+
t.stopAnimation();
|
|
641
|
+
done.current();
|
|
642
|
+
}, accessibilityRole: "button", accessibilityLabel: "Skip the intro", children: [
|
|
643
|
+
/* @__PURE__ */ jsx(StatusBar, { barStyle: dark ? "light-content" : "dark-content", animated: true }),
|
|
644
|
+
/* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, {
|
|
645
|
+
backgroundColor: INK_BG
|
|
646
|
+
}] }),
|
|
647
|
+
/* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [s.poCream, {
|
|
648
|
+
left: center.x - PO_CREAM / 2,
|
|
649
|
+
top: center.y - PO_CREAM / 2,
|
|
650
|
+
transform: [{
|
|
651
|
+
scale: c.cream
|
|
652
|
+
}]
|
|
653
|
+
}] }),
|
|
654
|
+
/* @__PURE__ */ jsxs(View, __spreadProps(__spreadValues({ pointerEvents: "none" }, hidden), { style: {
|
|
655
|
+
position: "absolute",
|
|
656
|
+
left: center.x - r,
|
|
657
|
+
top: center.y - r,
|
|
658
|
+
width: size,
|
|
659
|
+
height: size
|
|
660
|
+
}, children: [
|
|
661
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.poRim, {
|
|
662
|
+
borderRadius: r,
|
|
663
|
+
opacity: c.dimOut
|
|
664
|
+
}] }),
|
|
665
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.poRimPaper, {
|
|
666
|
+
borderRadius: r,
|
|
667
|
+
opacity: c.inkIn
|
|
668
|
+
}] }),
|
|
669
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
670
|
+
opacity: c.dimOut
|
|
671
|
+
}], children: TICKS.map((i) => /* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, {
|
|
672
|
+
transform: [{
|
|
673
|
+
rotate: `${i * 6}deg`
|
|
674
|
+
}]
|
|
675
|
+
}], children: /* @__PURE__ */ jsx(View, { style: [i % 5 === 0 ? s.tickMajor : s.tick, i % 5 === 0 ? s.tickMajorDim : s.tickDim] }) }, i)) }),
|
|
676
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
677
|
+
opacity: c.inkIn
|
|
678
|
+
}], children: TICKS.map((i) => /* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, {
|
|
679
|
+
transform: [{
|
|
680
|
+
rotate: `${i * 6}deg`
|
|
681
|
+
}]
|
|
682
|
+
}], children: /* @__PURE__ */ jsx(View, { style: i % 5 === 0 ? s.tickMajor : s.tick }) }, i)) }),
|
|
683
|
+
TICKS.map((i) => /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
684
|
+
opacity: c.lit[i],
|
|
685
|
+
transform: [{
|
|
686
|
+
rotate: `${i * 6}deg`
|
|
687
|
+
}]
|
|
688
|
+
}], children: /* @__PURE__ */ jsx(View, { style: [i % 5 === 0 ? s.tickMajor : s.tick, i % 5 === 0 ? s.tickMajorLit : s.tickLit] }) }, `lit${i}`)),
|
|
689
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.poFlashRing, {
|
|
690
|
+
borderRadius: r,
|
|
691
|
+
opacity: c.flash
|
|
692
|
+
}] }),
|
|
693
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
694
|
+
opacity: c.hourShow,
|
|
695
|
+
transform: [{
|
|
696
|
+
rotate: "-60deg"
|
|
697
|
+
}]
|
|
698
|
+
}], children: /* @__PURE__ */ jsx(Animated.View, { style: [s.hand, {
|
|
699
|
+
left: r - 2.5,
|
|
700
|
+
top: r - hour,
|
|
701
|
+
width: 5,
|
|
702
|
+
height: hour,
|
|
703
|
+
borderRadius: 2.5
|
|
704
|
+
}, {
|
|
705
|
+
transform: [{
|
|
706
|
+
translateY: c.hourFromPin
|
|
707
|
+
}, {
|
|
708
|
+
scaleY: c.hourLength
|
|
709
|
+
}]
|
|
710
|
+
}] }) }),
|
|
711
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, {
|
|
712
|
+
opacity: c.minuteShow,
|
|
713
|
+
transform: [{
|
|
714
|
+
rotate: c.minuteAngle
|
|
715
|
+
}]
|
|
716
|
+
}], children: /* @__PURE__ */ jsxs(Animated.View, { style: {
|
|
717
|
+
position: "absolute",
|
|
718
|
+
left: r - 1.5,
|
|
719
|
+
top: r - minute,
|
|
720
|
+
width: 3,
|
|
721
|
+
height: minute,
|
|
722
|
+
transform: [{
|
|
723
|
+
translateY: c.minuteFromPin
|
|
724
|
+
}, {
|
|
725
|
+
scaleY: c.minuteLength
|
|
726
|
+
}]
|
|
727
|
+
}, children: [
|
|
728
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.poEmberHand, {
|
|
729
|
+
opacity: c.dimOut
|
|
730
|
+
}] }),
|
|
731
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.poInkHand, {
|
|
732
|
+
opacity: c.inkIn
|
|
733
|
+
}] })
|
|
734
|
+
] }) }),
|
|
735
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [s.pin, {
|
|
736
|
+
left: r - 6.5,
|
|
737
|
+
top: r - 6.5,
|
|
738
|
+
opacity: c.pin
|
|
739
|
+
}] })
|
|
740
|
+
] })),
|
|
741
|
+
/* @__PURE__ */ jsx(Animated.View, __spreadProps(__spreadValues({ pointerEvents: "none" }, hidden), { style: {
|
|
742
|
+
position: "absolute",
|
|
743
|
+
left: center.x - PO_GLOW / 2,
|
|
744
|
+
top: center.y - PO_GLOW / 2,
|
|
745
|
+
width: PO_GLOW,
|
|
746
|
+
height: PO_GLOW,
|
|
747
|
+
opacity: c.glowShow,
|
|
748
|
+
transform: [{
|
|
749
|
+
scale: c.glowScale
|
|
750
|
+
}]
|
|
751
|
+
}, children: /* @__PURE__ */ jsxs(Svg, { width: PO_GLOW, height: PO_GLOW, children: [
|
|
752
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: glowId, cx: "50%", cy: "50%", r: "50%", children: [
|
|
753
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF8A3D", stopOpacity: 0.85 }),
|
|
754
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.45", stopColor: "#FF5A00", stopOpacity: 0.28 }),
|
|
755
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF5A00", stopOpacity: 0 })
|
|
756
|
+
] }) }),
|
|
757
|
+
/* @__PURE__ */ jsx(Circle, { cx: PO_GLOW / 2, cy: PO_GLOW / 2, r: PO_GLOW / 2, fill: `url(#${glowId})` })
|
|
758
|
+
] }) })),
|
|
759
|
+
c.rings.map((wave, n) => /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [s.poRing, {
|
|
760
|
+
left: center.x - PO_MARK / 2,
|
|
761
|
+
top: center.y - PO_MARK / 2,
|
|
762
|
+
opacity: wave.opacity,
|
|
763
|
+
transform: [{
|
|
764
|
+
scale: wave.scale
|
|
765
|
+
}]
|
|
766
|
+
}] }, n)),
|
|
767
|
+
/* @__PURE__ */ jsx(Animated.View, __spreadProps(__spreadValues({ pointerEvents: "none" }, hidden), { style: {
|
|
768
|
+
position: "absolute",
|
|
769
|
+
left: center.x - PO_MARK / 2,
|
|
770
|
+
top: center.y - PO_MARK / 2,
|
|
771
|
+
opacity: c.markShow,
|
|
772
|
+
transform: [{
|
|
773
|
+
scale: c.markScale
|
|
774
|
+
}]
|
|
775
|
+
}, children: /* @__PURE__ */ jsx(Mark, { size: PO_MARK }) })),
|
|
776
|
+
/* @__PURE__ */ jsx(Animated.View, __spreadProps(__spreadValues({ pointerEvents: "none" }, hidden), { style: {
|
|
777
|
+
position: "absolute",
|
|
778
|
+
left: center.x - PO_FLASH / 2,
|
|
779
|
+
top: center.y - PO_FLASH / 2,
|
|
780
|
+
width: PO_FLASH,
|
|
781
|
+
height: PO_FLASH,
|
|
782
|
+
opacity: c.flashShow
|
|
783
|
+
}, children: /* @__PURE__ */ jsxs(Svg, { width: PO_FLASH, height: PO_FLASH, children: [
|
|
784
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: flashId, cx: "50%", cy: "50%", r: "50%", children: [
|
|
785
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFFFFF", stopOpacity: 0.9 }),
|
|
786
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFFFFF", stopOpacity: 0 })
|
|
787
|
+
] }) }),
|
|
788
|
+
/* @__PURE__ */ jsx(Circle, { cx: PO_FLASH / 2, cy: PO_FLASH / 2, r: PO_FLASH / 2, fill: `url(#${flashId})` })
|
|
789
|
+
] }) }))
|
|
790
|
+
] });
|
|
791
|
+
}
|
|
792
|
+
function GlowButton({
|
|
793
|
+
label,
|
|
794
|
+
onPress,
|
|
795
|
+
disabled = false,
|
|
796
|
+
busy = false,
|
|
797
|
+
icon,
|
|
798
|
+
variant = "ink",
|
|
799
|
+
style
|
|
800
|
+
}) {
|
|
801
|
+
const gold = useSvgId("gold");
|
|
802
|
+
const ember = useSvgId("ember");
|
|
803
|
+
const coral = useSvgId("coral");
|
|
804
|
+
const fill = useSvgId("fill");
|
|
805
|
+
const ink = variant === "ink";
|
|
806
|
+
const text2 = ink ? "#FFFAF5" : ui.ink;
|
|
807
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => pressed(onPress), disabled: disabled || busy, accessibilityRole: "button", accessibilityLabel: label, accessibilityState: {
|
|
808
|
+
disabled,
|
|
809
|
+
busy
|
|
810
|
+
}, style: ({
|
|
811
|
+
pressed: pressed2
|
|
812
|
+
}) => [s.btn, ink ? s.btnInk : s.btnOrange, style, pressed2 && s.pressed], children: [
|
|
813
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, s.btnClip], children: /* @__PURE__ */ jsxs(Svg, { width: "100%", height: "100%", viewBox: "0 0 350 58", preserveAspectRatio: "none", children: [
|
|
814
|
+
/* @__PURE__ */ jsx(Defs, { children: ink ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
815
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: gold, cx: "28%", cy: "118%", r: "52%", children: [
|
|
816
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFC66E", stopOpacity: 0.95 }),
|
|
817
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFC66E", stopOpacity: 0 })
|
|
818
|
+
] }),
|
|
819
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: ember, cx: "52%", cy: "122%", r: "58%", children: [
|
|
820
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF5A00", stopOpacity: 1 }),
|
|
821
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF5A00", stopOpacity: 0 })
|
|
822
|
+
] }),
|
|
823
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: coral, cx: "78%", cy: "118%", r: "46%", children: [
|
|
824
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF4F6B", stopOpacity: 0.85 }),
|
|
825
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF4F6B", stopOpacity: 0 })
|
|
826
|
+
] })
|
|
827
|
+
] }) : /* @__PURE__ */ jsxs(LinearGradient, { id: fill, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
828
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF9B50" }),
|
|
829
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.55", stopColor: "#FF6A14" }),
|
|
830
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF5A00" })
|
|
831
|
+
] }) }),
|
|
832
|
+
ink ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
833
|
+
/* @__PURE__ */ jsx(Rect, { width: "350", height: "58", fill: `url(#${gold})`, opacity: disabled ? 0.3 : 1 }),
|
|
834
|
+
/* @__PURE__ */ jsx(Rect, { width: "350", height: "58", fill: `url(#${ember})`, opacity: disabled ? 0.3 : 1 }),
|
|
835
|
+
/* @__PURE__ */ jsx(Rect, { width: "350", height: "58", fill: `url(#${coral})`, opacity: disabled ? 0.3 : 1 })
|
|
836
|
+
] }) : /* @__PURE__ */ jsx(Rect, { width: "350", height: "58", fill: `url(#${fill})` })
|
|
837
|
+
] }) }),
|
|
838
|
+
busy ? /* @__PURE__ */ jsx(ActivityIndicator, { color: text2 }) : icon ? /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 18, color: text2 }) : null,
|
|
839
|
+
/* @__PURE__ */ jsx(Text, { style: [s.btnLabel, {
|
|
840
|
+
color: text2
|
|
841
|
+
}, disabled && s.btnLabelOff], children: label })
|
|
842
|
+
] });
|
|
843
|
+
}
|
|
844
|
+
function SoftButton({
|
|
845
|
+
label,
|
|
846
|
+
onPress,
|
|
847
|
+
icon,
|
|
848
|
+
busy = false,
|
|
849
|
+
style
|
|
850
|
+
}) {
|
|
851
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => pressed(onPress), disabled: busy, accessibilityRole: "button", accessibilityLabel: label, accessibilityState: {
|
|
852
|
+
busy
|
|
853
|
+
}, style: ({
|
|
854
|
+
pressed: pressed2
|
|
855
|
+
}) => [s.soft, style, pressed2 && s.pressed], children: [
|
|
856
|
+
busy ? /* @__PURE__ */ jsx(ActivityIndicator, { color: ui.ink }) : icon ? /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 18, color: ui.accentText }) : null,
|
|
857
|
+
/* @__PURE__ */ jsx(Text, { style: s.softLabel, children: label })
|
|
858
|
+
] });
|
|
859
|
+
}
|
|
860
|
+
function LinkButton({
|
|
861
|
+
label,
|
|
862
|
+
onPress,
|
|
863
|
+
icon,
|
|
864
|
+
style
|
|
865
|
+
}) {
|
|
866
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => pressed(onPress), hitSlop: 8, accessibilityRole: "button", accessibilityLabel: label, style: ({
|
|
867
|
+
pressed: pressed2
|
|
868
|
+
}) => [s.link, style, pressed2 && {
|
|
869
|
+
opacity: 0.6
|
|
870
|
+
}], children: [
|
|
871
|
+
icon ? /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 16, color: ui.muted }) : null,
|
|
872
|
+
/* @__PURE__ */ jsx(Text, { style: s.linkLabel, children: label })
|
|
873
|
+
] });
|
|
874
|
+
}
|
|
875
|
+
function OptionRow({
|
|
876
|
+
label,
|
|
877
|
+
icon,
|
|
878
|
+
selected,
|
|
879
|
+
onPress,
|
|
880
|
+
delay,
|
|
881
|
+
still
|
|
882
|
+
}) {
|
|
883
|
+
return /* @__PURE__ */ jsx(Reveal, { delay, still, rise: 18, children: /* @__PURE__ */ jsxs(Pressable, { onPress: () => pressed(onPress), accessibilityRole: "button", accessibilityLabel: label, accessibilityState: {
|
|
884
|
+
selected
|
|
885
|
+
}, style: ({
|
|
886
|
+
pressed: pressed2
|
|
887
|
+
}) => [s.opt, selected && s.optOn, pressed2 && s.pressed], children: [
|
|
888
|
+
icon ? /* @__PURE__ */ jsx(View, { style: s.optIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 19, color: ui.accentText }) }) : null,
|
|
889
|
+
/* @__PURE__ */ jsx(Text, { style: [s.optLabel, !icon && s.optLabelPlain], children: label }),
|
|
890
|
+
/* @__PURE__ */ jsx(View, { style: [s.optCheck, selected && s.optCheckOn], children: selected ? /* @__PURE__ */ jsx(Ionicons, { name: "checkmark", size: 14, color: ui.ink }) : null })
|
|
891
|
+
] }) });
|
|
892
|
+
}
|
|
893
|
+
function NumberChip({
|
|
894
|
+
label,
|
|
895
|
+
a11y,
|
|
896
|
+
selected,
|
|
897
|
+
onPress,
|
|
898
|
+
delay,
|
|
899
|
+
still
|
|
900
|
+
}) {
|
|
901
|
+
return /* @__PURE__ */ jsx(Reveal, { delay, still, rise: 18, children: /* @__PURE__ */ jsx(Pressable, { onPress: () => pressed(onPress), accessibilityRole: "button", accessibilityLabel: a11y, accessibilityState: {
|
|
902
|
+
selected
|
|
903
|
+
}, style: ({
|
|
904
|
+
pressed: pressed2
|
|
905
|
+
}) => [s.num, selected && s.numOn, pressed2 && s.pressedSmall], children: /* @__PURE__ */ jsx(Text, { style: [s.numLabel, selected && s.numLabelOn], children: label }) }) });
|
|
906
|
+
}
|
|
907
|
+
function FillBar({
|
|
908
|
+
delay,
|
|
909
|
+
duration,
|
|
910
|
+
still
|
|
911
|
+
}) {
|
|
912
|
+
const v = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
913
|
+
const id = useSvgId("bar");
|
|
914
|
+
useEffect(() => {
|
|
915
|
+
if (still) {
|
|
916
|
+
v.setValue(1);
|
|
917
|
+
return void 0;
|
|
918
|
+
}
|
|
919
|
+
const anim = Animated.timing(v, {
|
|
920
|
+
toValue: 1,
|
|
921
|
+
duration,
|
|
922
|
+
delay,
|
|
923
|
+
easing: Easing.bezier(0.45, 0.05, 0.25, 1),
|
|
924
|
+
useNativeDriver: true
|
|
925
|
+
});
|
|
926
|
+
anim.start();
|
|
927
|
+
return () => anim.stop();
|
|
928
|
+
}, [delay, duration, still, v]);
|
|
929
|
+
return /* @__PURE__ */ jsx(View, { style: s.track, accessibilityRole: "progressbar", accessibilityLabel: "Adding it up", children: /* @__PURE__ */ jsx(Animated.View, { style: [s.trackFill, {
|
|
930
|
+
transformOrigin: "left",
|
|
931
|
+
transform: [{
|
|
932
|
+
scaleX: v
|
|
933
|
+
}]
|
|
934
|
+
}], children: /* @__PURE__ */ jsxs(Svg, { width: "100%", height: "100%", preserveAspectRatio: "none", viewBox: "0 0 100 6", children: [
|
|
935
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(LinearGradient, { id, x1: "0", y1: "0", x2: "1", y2: "0", children: [
|
|
936
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFC66E" }),
|
|
937
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.45", stopColor: "#FF8A3D" }),
|
|
938
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF5A00" })
|
|
939
|
+
] }) }),
|
|
940
|
+
/* @__PURE__ */ jsx(Rect, { width: "100", height: "6", fill: `url(#${id})` })
|
|
941
|
+
] }) }) });
|
|
942
|
+
}
|
|
943
|
+
const ROW = 100;
|
|
944
|
+
const ROLL_EASE = Easing.bezier(0.14, 0.8, 0.22, 1);
|
|
945
|
+
function Roller({
|
|
946
|
+
years,
|
|
947
|
+
still
|
|
948
|
+
}) {
|
|
949
|
+
const {
|
|
950
|
+
rows,
|
|
951
|
+
target
|
|
952
|
+
} = rollRows(years);
|
|
953
|
+
const end = -(target - 1) * ROW;
|
|
954
|
+
const y = useRef(new Animated.Value(still ? end : ROW)).current;
|
|
955
|
+
const settle = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
956
|
+
useEffect(() => {
|
|
957
|
+
if (still) {
|
|
958
|
+
y.setValue(end);
|
|
959
|
+
settle.setValue(1);
|
|
960
|
+
return void 0;
|
|
961
|
+
}
|
|
962
|
+
const anim = Animated.sequence([Animated.delay(1300), Animated.timing(y, {
|
|
963
|
+
toValue: end,
|
|
964
|
+
duration: 2400,
|
|
965
|
+
easing: ROLL_EASE,
|
|
966
|
+
useNativeDriver: true
|
|
967
|
+
}), Animated.timing(settle, {
|
|
968
|
+
toValue: 1,
|
|
969
|
+
duration: 700,
|
|
970
|
+
easing: EASE,
|
|
971
|
+
useNativeDriver: true
|
|
972
|
+
})]);
|
|
973
|
+
anim.start();
|
|
974
|
+
const passing = reel(target, 2400, 1300, ROLL_EASE);
|
|
975
|
+
const landed = setTimeout(thud, 3600);
|
|
976
|
+
return () => {
|
|
977
|
+
anim.stop();
|
|
978
|
+
passing();
|
|
979
|
+
clearTimeout(landed);
|
|
980
|
+
};
|
|
981
|
+
}, [end, settle, still, target, y]);
|
|
982
|
+
const fadeOut = settle.interpolate({
|
|
983
|
+
inputRange: [0, 1],
|
|
984
|
+
outputRange: [1, 0]
|
|
985
|
+
});
|
|
986
|
+
return /* @__PURE__ */ jsx(View, { style: s.rollWindow, accessible: true, accessibilityRole: "text", accessibilityLabel: yearsLabel(years), children: /* @__PURE__ */ jsx(Animated.View, __spreadProps(__spreadValues({ style: {
|
|
987
|
+
transform: [{
|
|
988
|
+
translateY: y
|
|
989
|
+
}]
|
|
990
|
+
} }, hidden), { children: rows.map((n, i) => {
|
|
991
|
+
const centred = (1 - i) * ROW;
|
|
992
|
+
const near = y.interpolate({
|
|
993
|
+
inputRange: [centred - ROW * 1.5, centred, centred + ROW * 1.5],
|
|
994
|
+
outputRange: [0, 1, 0],
|
|
995
|
+
extrapolate: "clamp"
|
|
996
|
+
});
|
|
997
|
+
return /* @__PURE__ */ jsx(Animated.Text, { style: [s.rollRow, {
|
|
998
|
+
opacity: i === target ? near : Animated.multiply(near, fadeOut)
|
|
999
|
+
}], children: yearsLabel(n) }, n);
|
|
1000
|
+
}) })) });
|
|
1001
|
+
}
|
|
1002
|
+
const DIGIT = 132;
|
|
1003
|
+
const ODO_START = 950;
|
|
1004
|
+
const odoTurn = (col) => 1700 + col * 420;
|
|
1005
|
+
const odoLock = (col) => ODO_START + odoTurn(col) - 100;
|
|
1006
|
+
function OdoColumn({
|
|
1007
|
+
digits,
|
|
1008
|
+
stop,
|
|
1009
|
+
col,
|
|
1010
|
+
still
|
|
1011
|
+
}) {
|
|
1012
|
+
const y = useRef(new Animated.Value(still ? -stop * DIGIT : 0)).current;
|
|
1013
|
+
useEffect(() => {
|
|
1014
|
+
if (still) {
|
|
1015
|
+
y.setValue(-stop * DIGIT);
|
|
1016
|
+
return void 0;
|
|
1017
|
+
}
|
|
1018
|
+
const anim = Animated.timing(y, {
|
|
1019
|
+
toValue: -stop * DIGIT,
|
|
1020
|
+
duration: odoTurn(col),
|
|
1021
|
+
delay: ODO_START,
|
|
1022
|
+
easing: Easing.bezier(0.16, 0.84, 0.2, 1),
|
|
1023
|
+
useNativeDriver: true
|
|
1024
|
+
});
|
|
1025
|
+
anim.start();
|
|
1026
|
+
const locked = setTimeout(thud, odoLock(col));
|
|
1027
|
+
return () => {
|
|
1028
|
+
anim.stop();
|
|
1029
|
+
clearTimeout(locked);
|
|
1030
|
+
};
|
|
1031
|
+
}, [col, still, stop, y]);
|
|
1032
|
+
return /* @__PURE__ */ jsx(View, { style: s.odoCol, children: /* @__PURE__ */ jsx(Animated.View, { style: {
|
|
1033
|
+
transform: [{
|
|
1034
|
+
translateY: y
|
|
1035
|
+
}]
|
|
1036
|
+
}, children: digits.map((d, k) => /* @__PURE__ */ jsx(Text, { style: s.odoDigit, children: d }, k)) }) });
|
|
1037
|
+
}
|
|
1038
|
+
function Odometer({
|
|
1039
|
+
value,
|
|
1040
|
+
still
|
|
1041
|
+
}) {
|
|
1042
|
+
const cols = odometerColumns(value);
|
|
1043
|
+
const last = cols.length - 1;
|
|
1044
|
+
useEffect(() => {
|
|
1045
|
+
if (still)
|
|
1046
|
+
return void 0;
|
|
1047
|
+
const landed = setTimeout(() => play("hoursBack"), odoLock(last));
|
|
1048
|
+
return () => clearTimeout(landed);
|
|
1049
|
+
}, [last, still]);
|
|
1050
|
+
return /* @__PURE__ */ jsxs(View, { style: s.odoRow, accessible: true, accessibilityRole: "text", accessibilityLabel: `${value} hours`, children: [
|
|
1051
|
+
/* @__PURE__ */ jsx(View, __spreadProps(__spreadValues({ style: s.odoNum }, hidden), { children: cols.map((c, i) => /* @__PURE__ */ jsx(OdoColumn, { digits: c.digits, stop: c.stop, col: i, still }, i)) })),
|
|
1052
|
+
/* @__PURE__ */ jsx(Text, __spreadProps(__spreadValues({ style: s.odoUnit }, hidden), { children: "hours" }))
|
|
1053
|
+
] });
|
|
1054
|
+
}
|
|
1055
|
+
function PrimeFrame({
|
|
1056
|
+
still,
|
|
1057
|
+
children
|
|
1058
|
+
}) {
|
|
1059
|
+
const pulse = useRef(new Animated.Value(0)).current;
|
|
1060
|
+
useEffect(() => {
|
|
1061
|
+
if (still)
|
|
1062
|
+
return void 0;
|
|
1063
|
+
const loop = Animated.loop(Animated.sequence([Animated.timing(pulse, {
|
|
1064
|
+
toValue: 1,
|
|
1065
|
+
duration: 1600,
|
|
1066
|
+
easing: Easing.inOut(Easing.sin),
|
|
1067
|
+
useNativeDriver: true
|
|
1068
|
+
}), Animated.timing(pulse, {
|
|
1069
|
+
toValue: 0,
|
|
1070
|
+
duration: 1600,
|
|
1071
|
+
easing: Easing.inOut(Easing.sin),
|
|
1072
|
+
useNativeDriver: true
|
|
1073
|
+
})]));
|
|
1074
|
+
loop.start();
|
|
1075
|
+
return () => loop.stop();
|
|
1076
|
+
}, [pulse, still]);
|
|
1077
|
+
return /* @__PURE__ */ jsxs(View, { style: s.frameWrap, children: [
|
|
1078
|
+
/* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, s.frameGlow, {
|
|
1079
|
+
opacity: pulse.interpolate({
|
|
1080
|
+
inputRange: [0, 1],
|
|
1081
|
+
outputRange: [0.6, 1]
|
|
1082
|
+
})
|
|
1083
|
+
}] }),
|
|
1084
|
+
/* @__PURE__ */ jsx(View, { style: s.frame, children })
|
|
1085
|
+
] });
|
|
1086
|
+
}
|
|
1087
|
+
function SystemPrompt({
|
|
1088
|
+
title,
|
|
1089
|
+
body,
|
|
1090
|
+
deny,
|
|
1091
|
+
allow,
|
|
1092
|
+
onDeny,
|
|
1093
|
+
onAllow
|
|
1094
|
+
}) {
|
|
1095
|
+
return /* @__PURE__ */ jsxs(View, { style: s.alert, children: [
|
|
1096
|
+
/* @__PURE__ */ jsx(Text, { style: s.alertTitle, children: title }),
|
|
1097
|
+
/* @__PURE__ */ jsx(Text, { style: s.alertBody, children: body }),
|
|
1098
|
+
/* @__PURE__ */ jsxs(View, { style: s.alertButtons, children: [
|
|
1099
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => pressed(onDeny), accessibilityRole: "button", accessibilityLabel: deny, style: ({
|
|
1100
|
+
pressed: pressed2
|
|
1101
|
+
}) => [s.alertBtn, pressed2 && s.pressed], children: /* @__PURE__ */ jsx(Text, { style: s.alertBtnLabel, children: deny }) }),
|
|
1102
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => pressed(onAllow), accessibilityRole: "button", accessibilityLabel: allow, style: ({
|
|
1103
|
+
pressed: pressed2
|
|
1104
|
+
}) => [s.alertBtn, s.alertBtnYes, pressed2 && s.pressed], children: /* @__PURE__ */ jsx(Text, { style: [s.alertBtnLabel, s.alertBtnLabelYes], children: allow }) })
|
|
1105
|
+
] })
|
|
1106
|
+
] });
|
|
1107
|
+
}
|
|
1108
|
+
function DrawnArrow({
|
|
1109
|
+
delay = 1e3,
|
|
1110
|
+
still
|
|
1111
|
+
}) {
|
|
1112
|
+
const d = useRef(new Animated.Value(still ? 0 : 1)).current;
|
|
1113
|
+
useEffect(() => {
|
|
1114
|
+
if (still) {
|
|
1115
|
+
d.setValue(0);
|
|
1116
|
+
return void 0;
|
|
1117
|
+
}
|
|
1118
|
+
const anim = Animated.timing(d, {
|
|
1119
|
+
toValue: 0,
|
|
1120
|
+
duration: 900,
|
|
1121
|
+
delay,
|
|
1122
|
+
easing: Easing.bezier(0.5, 0, 0.2, 1),
|
|
1123
|
+
useNativeDriver: false
|
|
1124
|
+
});
|
|
1125
|
+
anim.start();
|
|
1126
|
+
return () => anim.stop();
|
|
1127
|
+
}, [d, delay, still]);
|
|
1128
|
+
return /* @__PURE__ */ jsx(View, __spreadProps(__spreadValues({ style: s.arrow }, hidden), { children: /* @__PURE__ */ jsxs(Svg, { width: 120, height: 104, viewBox: "0 0 120 104", children: [
|
|
1129
|
+
/* @__PURE__ */ jsx(AnimatedPath, { d: "M24 100 C 20 66 40 32 76 8", fill: "none", stroke: ui.accent, strokeWidth: 2.2, strokeLinecap: "round", strokeDasharray: "140", strokeDashoffset: d.interpolate({
|
|
1130
|
+
inputRange: [0, 1],
|
|
1131
|
+
outputRange: [0, 140]
|
|
1132
|
+
}) }),
|
|
1133
|
+
/* @__PURE__ */ jsx(AnimatedPath, { d: "M61 9 L 76 8 L 69 21", fill: "none", stroke: ui.accent, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", opacity: d.interpolate({
|
|
1134
|
+
inputRange: [0, 0.12, 1],
|
|
1135
|
+
outputRange: [1, 0, 0]
|
|
1136
|
+
}) })
|
|
1137
|
+
] }) }));
|
|
1138
|
+
}
|
|
1139
|
+
const BURST_ICONS = ["time-outline", "call-outline", "receipt-outline", "calendar-outline", "cart-outline", "airplane-outline", "sparkles-outline", "checkmark-circle-outline"];
|
|
1140
|
+
const BURST_COLORS = ["#FF8A3D", "#F0A040", ui.accentText, ui.accent];
|
|
1141
|
+
const PARTS = Array.from({
|
|
1142
|
+
length: 26
|
|
1143
|
+
}, (_, i) => {
|
|
1144
|
+
const angle = (i * (360 / 26) + i * 37 % 11 - 5) * Math.PI / 180;
|
|
1145
|
+
const dist = [122, 176, 236][i % 3];
|
|
1146
|
+
return {
|
|
1147
|
+
x: Math.sin(angle) * dist,
|
|
1148
|
+
y: -Math.cos(angle) * dist,
|
|
1149
|
+
icon: i % 2 === 0 ? BURST_ICONS[Math.floor(i / 2) % BURST_ICONS.length] : null,
|
|
1150
|
+
sliver: i % 4 === 3,
|
|
1151
|
+
color: BURST_COLORS[i * 3 % 4],
|
|
1152
|
+
spin: i % 2 === 0 ? -140 : 120
|
|
1153
|
+
};
|
|
1154
|
+
});
|
|
1155
|
+
function Burst({
|
|
1156
|
+
centerY,
|
|
1157
|
+
still
|
|
1158
|
+
}) {
|
|
1159
|
+
const p = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
1160
|
+
const fade = useRef(new Animated.Value(1)).current;
|
|
1161
|
+
const ring1 = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
1162
|
+
const ring2 = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
1163
|
+
useEffect(() => {
|
|
1164
|
+
if (still)
|
|
1165
|
+
return void 0;
|
|
1166
|
+
const ring3 = (v, delay) => Animated.timing(v, {
|
|
1167
|
+
toValue: 1,
|
|
1168
|
+
duration: 1500,
|
|
1169
|
+
delay,
|
|
1170
|
+
easing: Easing.bezier(0.2, 0.7, 0.3, 1),
|
|
1171
|
+
useNativeDriver: true
|
|
1172
|
+
});
|
|
1173
|
+
const anim = Animated.parallel([Animated.timing(p, {
|
|
1174
|
+
toValue: 1,
|
|
1175
|
+
duration: 1300,
|
|
1176
|
+
easing: Easing.bezier(0.12, 0.82, 0.25, 1),
|
|
1177
|
+
useNativeDriver: true
|
|
1178
|
+
}), Animated.sequence([Animated.delay(1750), Animated.timing(fade, {
|
|
1179
|
+
toValue: 0,
|
|
1180
|
+
duration: 900,
|
|
1181
|
+
useNativeDriver: true
|
|
1182
|
+
})]), ring3(ring1, 200), ring3(ring2, 500)]);
|
|
1183
|
+
anim.start();
|
|
1184
|
+
success();
|
|
1185
|
+
play("youreIn");
|
|
1186
|
+
return () => anim.stop();
|
|
1187
|
+
}, [fade, p, ring1, ring2, still]);
|
|
1188
|
+
const shown = Animated.multiply(p.interpolate({
|
|
1189
|
+
inputRange: [0, 0.18],
|
|
1190
|
+
outputRange: [0, 1],
|
|
1191
|
+
extrapolate: "clamp"
|
|
1192
|
+
}), fade);
|
|
1193
|
+
const ringStyle = (v) => ({
|
|
1194
|
+
opacity: v.interpolate({
|
|
1195
|
+
inputRange: [0, 1],
|
|
1196
|
+
outputRange: [0.95, 0]
|
|
1197
|
+
}),
|
|
1198
|
+
transform: [{
|
|
1199
|
+
scale: v.interpolate({
|
|
1200
|
+
inputRange: [0, 1],
|
|
1201
|
+
outputRange: [0.4, 3.4]
|
|
1202
|
+
})
|
|
1203
|
+
}]
|
|
1204
|
+
});
|
|
1205
|
+
return /* @__PURE__ */ jsxs(View, __spreadProps(__spreadValues({ pointerEvents: "none", style: [s.burst, {
|
|
1206
|
+
top: centerY
|
|
1207
|
+
}] }, hidden), { children: [
|
|
1208
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [s.ring, ringStyle(ring1)] }),
|
|
1209
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [s.ring, ringStyle(ring2)] }),
|
|
1210
|
+
PARTS.map((part, i) => /* @__PURE__ */ jsx(Animated.View, { style: [s.part, {
|
|
1211
|
+
opacity: shown,
|
|
1212
|
+
transform: [{
|
|
1213
|
+
translateX: p.interpolate({
|
|
1214
|
+
inputRange: [0, 1],
|
|
1215
|
+
outputRange: [0, part.x]
|
|
1216
|
+
})
|
|
1217
|
+
}, {
|
|
1218
|
+
translateY: p.interpolate({
|
|
1219
|
+
inputRange: [0, 1],
|
|
1220
|
+
outputRange: [0, part.y]
|
|
1221
|
+
})
|
|
1222
|
+
}, {
|
|
1223
|
+
rotate: p.interpolate({
|
|
1224
|
+
inputRange: [0, 1],
|
|
1225
|
+
outputRange: [`${part.spin}deg`, "0deg"]
|
|
1226
|
+
})
|
|
1227
|
+
}, {
|
|
1228
|
+
scale: p.interpolate({
|
|
1229
|
+
inputRange: [0, 1],
|
|
1230
|
+
outputRange: [0.2, 1]
|
|
1231
|
+
})
|
|
1232
|
+
}]
|
|
1233
|
+
}], children: part.icon ? /* @__PURE__ */ jsx(Ionicons, { name: part.icon, size: 21, color: part.color }) : /* @__PURE__ */ jsx(View, { style: [part.sliver ? s.sliver : s.dot, {
|
|
1234
|
+
backgroundColor: part.color
|
|
1235
|
+
}] }) }, i))
|
|
1236
|
+
] }));
|
|
1237
|
+
}
|
|
1238
|
+
function Sunset({
|
|
1239
|
+
width,
|
|
1240
|
+
height,
|
|
1241
|
+
still
|
|
1242
|
+
}) {
|
|
1243
|
+
const sky = useSvgId("sky");
|
|
1244
|
+
const sun = useSvgId("sun");
|
|
1245
|
+
const sunGlow = useSvgId("sunGlow");
|
|
1246
|
+
const fadeId = useSvgId("fade");
|
|
1247
|
+
const rise = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
1248
|
+
const drift = useRef(new Animated.Value(0)).current;
|
|
1249
|
+
useEffect(() => {
|
|
1250
|
+
if (still)
|
|
1251
|
+
return void 0;
|
|
1252
|
+
const anim = Animated.timing(rise, {
|
|
1253
|
+
toValue: 1,
|
|
1254
|
+
duration: 2400,
|
|
1255
|
+
easing: EASE,
|
|
1256
|
+
useNativeDriver: true
|
|
1257
|
+
});
|
|
1258
|
+
const loop = Animated.loop(Animated.sequence([Animated.timing(drift, {
|
|
1259
|
+
toValue: 1,
|
|
1260
|
+
duration: 14e3,
|
|
1261
|
+
easing: Easing.inOut(Easing.sin),
|
|
1262
|
+
useNativeDriver: true
|
|
1263
|
+
}), Animated.timing(drift, {
|
|
1264
|
+
toValue: 0,
|
|
1265
|
+
duration: 14e3,
|
|
1266
|
+
easing: Easing.inOut(Easing.sin),
|
|
1267
|
+
useNativeDriver: true
|
|
1268
|
+
})]));
|
|
1269
|
+
anim.start();
|
|
1270
|
+
loop.start();
|
|
1271
|
+
return () => {
|
|
1272
|
+
anim.stop();
|
|
1273
|
+
loop.stop();
|
|
1274
|
+
};
|
|
1275
|
+
}, [drift, rise, still]);
|
|
1276
|
+
const SUN = 220;
|
|
1277
|
+
const GLOW = 420;
|
|
1278
|
+
const sunTop = height * 0.636;
|
|
1279
|
+
return /* @__PURE__ */ jsxs(View, __spreadProps(__spreadValues({ pointerEvents: "none", style: {
|
|
1280
|
+
position: "absolute",
|
|
1281
|
+
left: 0,
|
|
1282
|
+
top: 0,
|
|
1283
|
+
width,
|
|
1284
|
+
height,
|
|
1285
|
+
overflow: "hidden"
|
|
1286
|
+
} }, hidden), { children: [
|
|
1287
|
+
/* @__PURE__ */ jsxs(Svg, { width, height, style: StyleSheet.absoluteFill, children: [
|
|
1288
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(LinearGradient, { id: sky, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1289
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFF1E2" }),
|
|
1290
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.3", stopColor: "#FFE2C4" }),
|
|
1291
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.52", stopColor: "#FFC594" }),
|
|
1292
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.68", stopColor: "#FF9E5E" }),
|
|
1293
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.76", stopColor: "#FF8442" }),
|
|
1294
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.84", stopColor: "#FFB47A" }),
|
|
1295
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFB47A" })
|
|
1296
|
+
] }) }),
|
|
1297
|
+
/* @__PURE__ */ jsx(Rect, { width, height, fill: `url(#${sky})` })
|
|
1298
|
+
] }),
|
|
1299
|
+
/* @__PURE__ */ jsxs(Animated.View, { style: {
|
|
1300
|
+
position: "absolute",
|
|
1301
|
+
left: (width - GLOW) / 2,
|
|
1302
|
+
top: sunTop + SUN / 2 - GLOW / 2,
|
|
1303
|
+
width: GLOW,
|
|
1304
|
+
height: GLOW,
|
|
1305
|
+
opacity: rise.interpolate({
|
|
1306
|
+
inputRange: [0, 1],
|
|
1307
|
+
outputRange: [0.6, 1]
|
|
1308
|
+
}),
|
|
1309
|
+
transform: [{
|
|
1310
|
+
translateY: rise.interpolate({
|
|
1311
|
+
inputRange: [0, 1],
|
|
1312
|
+
outputRange: [34, 0]
|
|
1313
|
+
})
|
|
1314
|
+
}]
|
|
1315
|
+
}, children: [
|
|
1316
|
+
/* @__PURE__ */ jsxs(Svg, { width: GLOW, height: GLOW, children: [
|
|
1317
|
+
/* @__PURE__ */ jsxs(Defs, { children: [
|
|
1318
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: sunGlow, cx: "50%", cy: "50%", r: "50%", children: [
|
|
1319
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.3", stopColor: "#FFD08A", stopOpacity: 0.55 }),
|
|
1320
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFD08A", stopOpacity: 0 })
|
|
1321
|
+
] }),
|
|
1322
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: sun, cx: "50%", cy: "42%", r: "55%", children: [
|
|
1323
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFF4DC" }),
|
|
1324
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.38", stopColor: "#FFD08A" }),
|
|
1325
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.7", stopColor: "#FF9A4D" }),
|
|
1326
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF7A2A" })
|
|
1327
|
+
] })
|
|
1328
|
+
] }),
|
|
1329
|
+
/* @__PURE__ */ jsx(Circle, { cx: GLOW / 2, cy: GLOW / 2, r: GLOW / 2, fill: `url(#${sunGlow})` }),
|
|
1330
|
+
/* @__PURE__ */ jsx(Circle, { cx: GLOW / 2, cy: GLOW / 2, r: SUN / 2, fill: `url(#${sun})` })
|
|
1331
|
+
] }),
|
|
1332
|
+
/* @__PURE__ */ jsxs(Svg, { width: SUN * 0.64, height: SUN * 0.64, viewBox: "0 0 16 16", style: {
|
|
1333
|
+
position: "absolute",
|
|
1334
|
+
left: GLOW / 2 - SUN * 0.32,
|
|
1335
|
+
top: GLOW / 2 - SUN * 0.32
|
|
1336
|
+
}, children: [
|
|
1337
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.HOUR, fill: "none", stroke: "rgba(150,52,0,0.3)", strokeWidth: 0.7, strokeLinecap: "round" }),
|
|
1338
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.MINUTE, fill: "none", stroke: "rgba(150,52,0,0.3)", strokeWidth: 0.7, strokeLinecap: "round" })
|
|
1339
|
+
] })
|
|
1340
|
+
] }),
|
|
1341
|
+
/* @__PURE__ */ jsx(Animated.View, { style: {
|
|
1342
|
+
position: "absolute",
|
|
1343
|
+
left: 0,
|
|
1344
|
+
top: height * 0.27,
|
|
1345
|
+
width,
|
|
1346
|
+
height: 120,
|
|
1347
|
+
transform: [{
|
|
1348
|
+
translateX: drift.interpolate({
|
|
1349
|
+
inputRange: [0, 1],
|
|
1350
|
+
outputRange: [0, 26]
|
|
1351
|
+
})
|
|
1352
|
+
}, {
|
|
1353
|
+
translateY: drift.interpolate({
|
|
1354
|
+
inputRange: [0, 1],
|
|
1355
|
+
outputRange: [0, -8]
|
|
1356
|
+
})
|
|
1357
|
+
}]
|
|
1358
|
+
}, children: /* @__PURE__ */ jsx(Svg, { width, height: 120, viewBox: "0 0 390 120", children: /* @__PURE__ */ jsx(Path, { d: "M118 52q5-5 10 0q5-5 10 0 M150 70q4-4 8 0q4-4 8 0 M96 84q3.5-3.5 7 0q3.5-3.5 7 0 M232 46q4.5-4.5 9 0q4.5-4.5 9 0 M262 66q3-3 6 0q3-3 6 0", fill: "none", stroke: "rgba(110,44,16,0.55)", strokeWidth: 1.6, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
1359
|
+
/* @__PURE__ */ jsxs(Svg, { width, height: 200, viewBox: "0 0 390 200", preserveAspectRatio: "none", style: {
|
|
1360
|
+
position: "absolute",
|
|
1361
|
+
left: 0,
|
|
1362
|
+
bottom: 0
|
|
1363
|
+
}, children: [
|
|
1364
|
+
/* @__PURE__ */ jsx(Path, { d: "M0 104 C 48 86 92 96 140 88 C 196 78 236 96 286 86 C 330 78 362 86 390 92 L 390 200 L 0 200 Z", fill: "#F08A4E" }),
|
|
1365
|
+
/* @__PURE__ */ jsx(Path, { d: "M0 132 C 60 116 110 132 170 120 C 230 108 270 126 320 118 C 352 113 374 118 390 122 L 390 200 L 0 200 Z", fill: "#D2663A" }),
|
|
1366
|
+
/* @__PURE__ */ jsx(Path, { d: "M0 158 C 70 142 130 160 200 150 C 262 141 318 156 390 146 L 390 200 L 0 200 Z", fill: "#A94A26" })
|
|
1367
|
+
] }),
|
|
1368
|
+
/* @__PURE__ */ jsxs(Svg, { width, height: 190, style: {
|
|
1369
|
+
position: "absolute",
|
|
1370
|
+
left: 0,
|
|
1371
|
+
bottom: 0
|
|
1372
|
+
}, children: [
|
|
1373
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(LinearGradient, { id: fadeId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1374
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: ui.bg, stopOpacity: 0 }),
|
|
1375
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.88", stopColor: ui.bg, stopOpacity: 1 }),
|
|
1376
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: ui.bg, stopOpacity: 1 })
|
|
1377
|
+
] }) }),
|
|
1378
|
+
/* @__PURE__ */ jsx(Rect, { width, height: 190, fill: `url(#${fadeId})` })
|
|
1379
|
+
] })
|
|
1380
|
+
] }));
|
|
1381
|
+
}
|
|
1382
|
+
function LockPreview({
|
|
1383
|
+
date,
|
|
1384
|
+
days
|
|
1385
|
+
}) {
|
|
1386
|
+
const wall = useSvgId("wall");
|
|
1387
|
+
const fadeId = useSvgId("lockFade");
|
|
1388
|
+
return /* @__PURE__ */ jsx(View, __spreadProps(__spreadValues({ style: s.lockWrap }, hidden), { children: /* @__PURE__ */ jsxs(View, { style: s.lock, children: [
|
|
1389
|
+
/* @__PURE__ */ jsxs(Svg, { width: "100%", height: "100%", style: StyleSheet.absoluteFill, viewBox: "0 0 214 290", preserveAspectRatio: "none", children: [
|
|
1390
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: wall, cx: "50%", cy: "100%", r: "75%", children: [
|
|
1391
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF6A14", stopOpacity: 0.4 }),
|
|
1392
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF6A14", stopOpacity: 0 })
|
|
1393
|
+
] }) }),
|
|
1394
|
+
/* @__PURE__ */ jsx(Rect, { width: "214", height: "290", fill: "#FFEDE0" }),
|
|
1395
|
+
/* @__PURE__ */ jsx(Rect, { width: "214", height: "290", fill: `url(#${wall})` })
|
|
1396
|
+
] }),
|
|
1397
|
+
/* @__PURE__ */ jsx(Text, { style: s.lockDate, children: date }),
|
|
1398
|
+
/* @__PURE__ */ jsx(Text, { style: s.lockTime, children: "9:41" }),
|
|
1399
|
+
/* @__PURE__ */ jsxs(View, { style: s.note, children: [
|
|
1400
|
+
/* @__PURE__ */ jsx(View, { style: s.noteIcon, children: /* @__PURE__ */ jsx(Mark, { size: 20 }) }),
|
|
1401
|
+
/* @__PURE__ */ jsxs(View, { style: s.noteText, children: [
|
|
1402
|
+
/* @__PURE__ */ jsxs(View, { style: s.noteHead, children: [
|
|
1403
|
+
/* @__PURE__ */ jsx(Text, { style: s.noteApp, children: "Clockbook" }),
|
|
1404
|
+
/* @__PURE__ */ jsx(Text, { style: s.noteWhen, children: "now" })
|
|
1405
|
+
] }),
|
|
1406
|
+
/* @__PURE__ */ jsxs(Text, { style: s.noteBody, children: [
|
|
1407
|
+
"Your free week ends in ",
|
|
1408
|
+
days,
|
|
1409
|
+
" days. Keep it, or cancel in Settings."
|
|
1410
|
+
] })
|
|
1411
|
+
] })
|
|
1412
|
+
] }),
|
|
1413
|
+
/* @__PURE__ */ jsxs(Svg, { width: "100%", height: 90, style: s.lockFade, children: [
|
|
1414
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(LinearGradient, { id: fadeId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1415
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: ui.bg, stopOpacity: 0 }),
|
|
1416
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: ui.bg, stopOpacity: 1 })
|
|
1417
|
+
] }) }),
|
|
1418
|
+
/* @__PURE__ */ jsx(Rect, { width: "100%", height: 90, fill: `url(#${fadeId})` })
|
|
1419
|
+
] })
|
|
1420
|
+
] }) }));
|
|
1421
|
+
}
|
|
1422
|
+
const text = StyleSheet.create({
|
|
1423
|
+
lucy: {
|
|
1424
|
+
fontFamily: fonts.sans,
|
|
1425
|
+
fontSize: 21,
|
|
1426
|
+
lineHeight: 29,
|
|
1427
|
+
letterSpacing: -0.3,
|
|
1428
|
+
color: ui.ink
|
|
1429
|
+
},
|
|
1430
|
+
you: {
|
|
1431
|
+
fontFamily: fonts.serifItalic,
|
|
1432
|
+
fontSize: 28,
|
|
1433
|
+
lineHeight: 34,
|
|
1434
|
+
color: ui.accentText
|
|
1435
|
+
},
|
|
1436
|
+
accent: {
|
|
1437
|
+
color: ui.accentText
|
|
1438
|
+
},
|
|
1439
|
+
beat: {
|
|
1440
|
+
fontFamily: fonts.serif,
|
|
1441
|
+
fontSize: 40,
|
|
1442
|
+
lineHeight: 44,
|
|
1443
|
+
letterSpacing: -0.8,
|
|
1444
|
+
color: ui.ink
|
|
1445
|
+
},
|
|
1446
|
+
display: {
|
|
1447
|
+
fontFamily: fonts.serif,
|
|
1448
|
+
fontSize: 39,
|
|
1449
|
+
lineHeight: 42,
|
|
1450
|
+
letterSpacing: -0.8,
|
|
1451
|
+
color: ui.ink
|
|
1452
|
+
},
|
|
1453
|
+
lead: {
|
|
1454
|
+
fontFamily: fonts.sansMedium,
|
|
1455
|
+
fontSize: 23,
|
|
1456
|
+
lineHeight: 30,
|
|
1457
|
+
letterSpacing: -0.4,
|
|
1458
|
+
color: ui.ink
|
|
1459
|
+
},
|
|
1460
|
+
sub: {
|
|
1461
|
+
fontFamily: fonts.sans,
|
|
1462
|
+
fontSize: 17,
|
|
1463
|
+
lineHeight: 24,
|
|
1464
|
+
color: ui.muted
|
|
1465
|
+
},
|
|
1466
|
+
body: {
|
|
1467
|
+
fontFamily: fonts.sans,
|
|
1468
|
+
fontSize: 19,
|
|
1469
|
+
lineHeight: 26,
|
|
1470
|
+
color: ui.ink2
|
|
1471
|
+
},
|
|
1472
|
+
note: {
|
|
1473
|
+
fontFamily: fonts.sans,
|
|
1474
|
+
fontSize: 15,
|
|
1475
|
+
lineHeight: 21,
|
|
1476
|
+
color: ui.muted
|
|
1477
|
+
},
|
|
1478
|
+
foot: {
|
|
1479
|
+
fontFamily: fonts.sans,
|
|
1480
|
+
fontSize: 12,
|
|
1481
|
+
lineHeight: 18,
|
|
1482
|
+
color: ui.muted
|
|
1483
|
+
},
|
|
1484
|
+
cue: {
|
|
1485
|
+
fontFamily: fonts.sansSemi,
|
|
1486
|
+
fontSize: 12,
|
|
1487
|
+
letterSpacing: 2.4,
|
|
1488
|
+
color: ui.accentText
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
const s = StyleSheet.create({
|
|
1492
|
+
words: {
|
|
1493
|
+
flexDirection: "row",
|
|
1494
|
+
flexWrap: "wrap"
|
|
1495
|
+
},
|
|
1496
|
+
wordsCenter: {
|
|
1497
|
+
justifyContent: "center"
|
|
1498
|
+
},
|
|
1499
|
+
pressed: {
|
|
1500
|
+
transform: [{
|
|
1501
|
+
scale: 0.985
|
|
1502
|
+
}]
|
|
1503
|
+
},
|
|
1504
|
+
pressedSmall: {
|
|
1505
|
+
transform: [{
|
|
1506
|
+
scale: 0.94
|
|
1507
|
+
}]
|
|
1508
|
+
},
|
|
1509
|
+
orbShadow: Platform.select({
|
|
1510
|
+
ios: {
|
|
1511
|
+
shadowColor: "#FF5A00",
|
|
1512
|
+
shadowOpacity: 0.32,
|
|
1513
|
+
shadowRadius: 16,
|
|
1514
|
+
shadowOffset: {
|
|
1515
|
+
width: 0,
|
|
1516
|
+
height: 10
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
default: {}
|
|
1520
|
+
}),
|
|
1521
|
+
tick: {
|
|
1522
|
+
position: "absolute",
|
|
1523
|
+
top: 8,
|
|
1524
|
+
left: "50%",
|
|
1525
|
+
marginLeft: -1,
|
|
1526
|
+
width: 2,
|
|
1527
|
+
height: 9,
|
|
1528
|
+
borderRadius: 1,
|
|
1529
|
+
backgroundColor: "rgba(26,23,20,0.18)"
|
|
1530
|
+
},
|
|
1531
|
+
tickMajor: {
|
|
1532
|
+
position: "absolute",
|
|
1533
|
+
top: 8,
|
|
1534
|
+
left: "50%",
|
|
1535
|
+
marginLeft: -1.5,
|
|
1536
|
+
width: 3,
|
|
1537
|
+
height: 17,
|
|
1538
|
+
borderRadius: 1.5,
|
|
1539
|
+
backgroundColor: "rgba(26,23,20,0.42)"
|
|
1540
|
+
},
|
|
1541
|
+
tickLit: __spreadValues({
|
|
1542
|
+
backgroundColor: "#FF6A14"
|
|
1543
|
+
}, glowShadow(5, 0.9)),
|
|
1544
|
+
tickMajorLit: __spreadValues({
|
|
1545
|
+
backgroundColor: "#FF9A4D"
|
|
1546
|
+
}, glowShadow(5, 0.9)),
|
|
1547
|
+
hand: {
|
|
1548
|
+
position: "absolute",
|
|
1549
|
+
backgroundColor: ui.ink
|
|
1550
|
+
},
|
|
1551
|
+
pin: {
|
|
1552
|
+
position: "absolute",
|
|
1553
|
+
width: 13,
|
|
1554
|
+
height: 13,
|
|
1555
|
+
borderRadius: 6.5,
|
|
1556
|
+
backgroundColor: ui.ink,
|
|
1557
|
+
borderWidth: 4,
|
|
1558
|
+
borderColor: ui.bg
|
|
1559
|
+
},
|
|
1560
|
+
pinLit: {
|
|
1561
|
+
backgroundColor: ui.accent
|
|
1562
|
+
},
|
|
1563
|
+
tickDim: {
|
|
1564
|
+
backgroundColor: "#2B231D"
|
|
1565
|
+
},
|
|
1566
|
+
tickMajorDim: {
|
|
1567
|
+
backgroundColor: "#4A3C31"
|
|
1568
|
+
},
|
|
1569
|
+
poRim: {
|
|
1570
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
1571
|
+
borderColor: "rgba(255,255,255,0.08)"
|
|
1572
|
+
},
|
|
1573
|
+
poRimPaper: {
|
|
1574
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
1575
|
+
borderColor: ui.hairline
|
|
1576
|
+
},
|
|
1577
|
+
poFlashRing: {
|
|
1578
|
+
borderWidth: 2,
|
|
1579
|
+
borderColor: "rgba(255,170,110,0.9)"
|
|
1580
|
+
},
|
|
1581
|
+
poEmberHand: __spreadValues({
|
|
1582
|
+
borderRadius: 1.5,
|
|
1583
|
+
backgroundColor: EMBER
|
|
1584
|
+
}, glowShadow(8, 0.9)),
|
|
1585
|
+
poInkHand: {
|
|
1586
|
+
borderRadius: 1.5,
|
|
1587
|
+
backgroundColor: ui.ink
|
|
1588
|
+
},
|
|
1589
|
+
poRing: {
|
|
1590
|
+
position: "absolute",
|
|
1591
|
+
width: PO_MARK,
|
|
1592
|
+
height: PO_MARK,
|
|
1593
|
+
borderRadius: PO_MARK / 2,
|
|
1594
|
+
borderWidth: 2,
|
|
1595
|
+
borderColor: "rgba(255,138,61,0.9)"
|
|
1596
|
+
},
|
|
1597
|
+
poCream: {
|
|
1598
|
+
position: "absolute",
|
|
1599
|
+
width: PO_CREAM,
|
|
1600
|
+
height: PO_CREAM,
|
|
1601
|
+
borderRadius: PO_CREAM / 2,
|
|
1602
|
+
backgroundColor: ui.bg
|
|
1603
|
+
},
|
|
1604
|
+
btn: {
|
|
1605
|
+
height: 58,
|
|
1606
|
+
borderRadius: 29,
|
|
1607
|
+
flexDirection: "row",
|
|
1608
|
+
alignItems: "center",
|
|
1609
|
+
justifyContent: "center",
|
|
1610
|
+
columnGap: 10,
|
|
1611
|
+
alignSelf: "stretch"
|
|
1612
|
+
},
|
|
1613
|
+
btnInk: {
|
|
1614
|
+
backgroundColor: ui.ink
|
|
1615
|
+
},
|
|
1616
|
+
btnOrange: Platform.select({
|
|
1617
|
+
ios: {
|
|
1618
|
+
shadowColor: "#FF5A00",
|
|
1619
|
+
shadowOpacity: 0.55,
|
|
1620
|
+
shadowRadius: 18,
|
|
1621
|
+
shadowOffset: {
|
|
1622
|
+
width: 0,
|
|
1623
|
+
height: 12
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
default: {
|
|
1627
|
+
elevation: 3
|
|
1628
|
+
}
|
|
1629
|
+
}),
|
|
1630
|
+
btnClip: {
|
|
1631
|
+
borderRadius: 29,
|
|
1632
|
+
overflow: "hidden"
|
|
1633
|
+
},
|
|
1634
|
+
btnLabel: {
|
|
1635
|
+
fontFamily: fonts.sansSemi,
|
|
1636
|
+
fontSize: 17,
|
|
1637
|
+
letterSpacing: -0.2
|
|
1638
|
+
},
|
|
1639
|
+
btnLabelOff: {
|
|
1640
|
+
opacity: 0.45
|
|
1641
|
+
},
|
|
1642
|
+
soft: {
|
|
1643
|
+
height: 54,
|
|
1644
|
+
borderRadius: 27,
|
|
1645
|
+
flexDirection: "row",
|
|
1646
|
+
alignItems: "center",
|
|
1647
|
+
justifyContent: "center",
|
|
1648
|
+
columnGap: 10,
|
|
1649
|
+
alignSelf: "stretch",
|
|
1650
|
+
backgroundColor: ui.surface,
|
|
1651
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
1652
|
+
borderColor: "rgba(26,23,20,0.12)"
|
|
1653
|
+
},
|
|
1654
|
+
softLabel: {
|
|
1655
|
+
fontFamily: fonts.sansMedium,
|
|
1656
|
+
fontSize: 16.5,
|
|
1657
|
+
color: ui.ink
|
|
1658
|
+
},
|
|
1659
|
+
link: {
|
|
1660
|
+
minHeight: 44,
|
|
1661
|
+
flexDirection: "row",
|
|
1662
|
+
alignItems: "center",
|
|
1663
|
+
justifyContent: "center",
|
|
1664
|
+
columnGap: 6,
|
|
1665
|
+
alignSelf: "center",
|
|
1666
|
+
paddingHorizontal: 8
|
|
1667
|
+
},
|
|
1668
|
+
linkLabel: {
|
|
1669
|
+
fontFamily: fonts.sansMedium,
|
|
1670
|
+
fontSize: 15,
|
|
1671
|
+
color: ui.ink2
|
|
1672
|
+
},
|
|
1673
|
+
opt: {
|
|
1674
|
+
height: 58,
|
|
1675
|
+
borderRadius: 20,
|
|
1676
|
+
flexDirection: "row",
|
|
1677
|
+
alignItems: "center",
|
|
1678
|
+
columnGap: 14,
|
|
1679
|
+
paddingLeft: 11,
|
|
1680
|
+
paddingRight: 16,
|
|
1681
|
+
backgroundColor: ui.surface,
|
|
1682
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
1683
|
+
borderColor: "rgba(26,23,20,0.1)"
|
|
1684
|
+
},
|
|
1685
|
+
optOn: {
|
|
1686
|
+
borderWidth: 1.5,
|
|
1687
|
+
borderColor: ui.accent,
|
|
1688
|
+
backgroundColor: "#FFF1E8"
|
|
1689
|
+
},
|
|
1690
|
+
optIcon: {
|
|
1691
|
+
width: 36,
|
|
1692
|
+
height: 36,
|
|
1693
|
+
borderRadius: 12,
|
|
1694
|
+
alignItems: "center",
|
|
1695
|
+
justifyContent: "center",
|
|
1696
|
+
backgroundColor: ui.accentSoft
|
|
1697
|
+
},
|
|
1698
|
+
optLabel: {
|
|
1699
|
+
flex: 1,
|
|
1700
|
+
fontFamily: fonts.sansMedium,
|
|
1701
|
+
fontSize: 17,
|
|
1702
|
+
color: ui.ink
|
|
1703
|
+
},
|
|
1704
|
+
optLabelPlain: {
|
|
1705
|
+
marginLeft: 9
|
|
1706
|
+
},
|
|
1707
|
+
optCheck: {
|
|
1708
|
+
width: 24,
|
|
1709
|
+
height: 24,
|
|
1710
|
+
borderRadius: 12,
|
|
1711
|
+
alignItems: "center",
|
|
1712
|
+
justifyContent: "center"
|
|
1713
|
+
},
|
|
1714
|
+
optCheckOn: {
|
|
1715
|
+
backgroundColor: ui.accent
|
|
1716
|
+
},
|
|
1717
|
+
num: {
|
|
1718
|
+
width: 52,
|
|
1719
|
+
height: 52,
|
|
1720
|
+
borderRadius: 26,
|
|
1721
|
+
alignItems: "center",
|
|
1722
|
+
justifyContent: "center",
|
|
1723
|
+
backgroundColor: ui.surface,
|
|
1724
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
1725
|
+
borderColor: "rgba(26,23,20,0.1)"
|
|
1726
|
+
},
|
|
1727
|
+
numOn: {
|
|
1728
|
+
backgroundColor: ui.accent,
|
|
1729
|
+
borderColor: ui.accent
|
|
1730
|
+
},
|
|
1731
|
+
numLabel: {
|
|
1732
|
+
fontFamily: fonts.serif,
|
|
1733
|
+
fontSize: 26,
|
|
1734
|
+
color: ui.ink
|
|
1735
|
+
},
|
|
1736
|
+
numLabelOn: {
|
|
1737
|
+
color: ui.ink
|
|
1738
|
+
},
|
|
1739
|
+
track: {
|
|
1740
|
+
height: 6,
|
|
1741
|
+
borderRadius: 3,
|
|
1742
|
+
backgroundColor: ui.fill,
|
|
1743
|
+
overflow: "hidden",
|
|
1744
|
+
marginHorizontal: 8,
|
|
1745
|
+
marginTop: 6
|
|
1746
|
+
},
|
|
1747
|
+
trackFill: {
|
|
1748
|
+
height: 6,
|
|
1749
|
+
width: "100%",
|
|
1750
|
+
borderRadius: 3,
|
|
1751
|
+
overflow: "hidden"
|
|
1752
|
+
},
|
|
1753
|
+
rollWindow: {
|
|
1754
|
+
height: ROW * 3,
|
|
1755
|
+
alignSelf: "stretch",
|
|
1756
|
+
overflow: "hidden",
|
|
1757
|
+
marginTop: 8
|
|
1758
|
+
},
|
|
1759
|
+
rollRow: {
|
|
1760
|
+
height: ROW,
|
|
1761
|
+
lineHeight: ROW,
|
|
1762
|
+
fontFamily: fonts.serif,
|
|
1763
|
+
fontSize: 92,
|
|
1764
|
+
letterSpacing: -2.5,
|
|
1765
|
+
textAlign: "center",
|
|
1766
|
+
color: ui.accent,
|
|
1767
|
+
includeFontPadding: false
|
|
1768
|
+
},
|
|
1769
|
+
odoRow: {
|
|
1770
|
+
flexDirection: "row",
|
|
1771
|
+
alignItems: "flex-end",
|
|
1772
|
+
justifyContent: "center",
|
|
1773
|
+
columnGap: 12
|
|
1774
|
+
},
|
|
1775
|
+
odoNum: {
|
|
1776
|
+
flexDirection: "row",
|
|
1777
|
+
height: DIGIT,
|
|
1778
|
+
overflow: "hidden"
|
|
1779
|
+
},
|
|
1780
|
+
odoCol: {
|
|
1781
|
+
height: DIGIT,
|
|
1782
|
+
overflow: "hidden"
|
|
1783
|
+
},
|
|
1784
|
+
odoDigit: {
|
|
1785
|
+
height: DIGIT,
|
|
1786
|
+
lineHeight: DIGIT,
|
|
1787
|
+
fontFamily: fonts.serif,
|
|
1788
|
+
fontSize: 124,
|
|
1789
|
+
letterSpacing: -2,
|
|
1790
|
+
textAlign: "center",
|
|
1791
|
+
color: ui.accent,
|
|
1792
|
+
includeFontPadding: false
|
|
1793
|
+
},
|
|
1794
|
+
odoUnit: {
|
|
1795
|
+
fontFamily: fonts.serifItalic,
|
|
1796
|
+
fontSize: 44,
|
|
1797
|
+
lineHeight: 50,
|
|
1798
|
+
color: ui.accentText,
|
|
1799
|
+
marginBottom: 18
|
|
1800
|
+
},
|
|
1801
|
+
frameWrap: {
|
|
1802
|
+
alignSelf: "center",
|
|
1803
|
+
width: "100%",
|
|
1804
|
+
maxWidth: 334
|
|
1805
|
+
},
|
|
1806
|
+
frameGlow: __spreadValues({
|
|
1807
|
+
borderRadius: 42,
|
|
1808
|
+
borderWidth: 1.5,
|
|
1809
|
+
borderColor: "rgba(255,138,61,0.8)",
|
|
1810
|
+
backgroundColor: "rgba(255,90,0,0.035)"
|
|
1811
|
+
}, glowShadow(20, 0.45)),
|
|
1812
|
+
frame: {
|
|
1813
|
+
padding: 15
|
|
1814
|
+
},
|
|
1815
|
+
alert: __spreadValues({
|
|
1816
|
+
borderRadius: 30,
|
|
1817
|
+
backgroundColor: "rgba(242,237,232,0.98)",
|
|
1818
|
+
paddingTop: 20,
|
|
1819
|
+
paddingHorizontal: 16,
|
|
1820
|
+
paddingBottom: 14
|
|
1821
|
+
}, Platform.select({
|
|
1822
|
+
ios: {
|
|
1823
|
+
shadowColor: "#2B1A0C",
|
|
1824
|
+
shadowOpacity: 0.12,
|
|
1825
|
+
shadowRadius: 18,
|
|
1826
|
+
shadowOffset: {
|
|
1827
|
+
width: 0,
|
|
1828
|
+
height: 10
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1831
|
+
default: {
|
|
1832
|
+
elevation: 2
|
|
1833
|
+
}
|
|
1834
|
+
})),
|
|
1835
|
+
alertTitle: {
|
|
1836
|
+
fontFamily: fonts.sansSemi,
|
|
1837
|
+
fontSize: 17,
|
|
1838
|
+
lineHeight: 22,
|
|
1839
|
+
color: ui.ink,
|
|
1840
|
+
paddingHorizontal: 4,
|
|
1841
|
+
marginBottom: 8
|
|
1842
|
+
},
|
|
1843
|
+
alertBody: {
|
|
1844
|
+
fontFamily: fonts.sans,
|
|
1845
|
+
fontSize: 14.5,
|
|
1846
|
+
lineHeight: 20,
|
|
1847
|
+
color: ui.ink2,
|
|
1848
|
+
paddingHorizontal: 4,
|
|
1849
|
+
marginBottom: 16
|
|
1850
|
+
},
|
|
1851
|
+
alertButtons: {
|
|
1852
|
+
flexDirection: "row",
|
|
1853
|
+
columnGap: 8
|
|
1854
|
+
},
|
|
1855
|
+
alertBtn: {
|
|
1856
|
+
flex: 1,
|
|
1857
|
+
height: 46,
|
|
1858
|
+
borderRadius: 23,
|
|
1859
|
+
alignItems: "center",
|
|
1860
|
+
justifyContent: "center",
|
|
1861
|
+
backgroundColor: "rgba(26,23,20,0.07)"
|
|
1862
|
+
},
|
|
1863
|
+
alertBtnYes: {
|
|
1864
|
+
backgroundColor: "rgba(26,23,20,0.13)"
|
|
1865
|
+
},
|
|
1866
|
+
alertBtnLabel: {
|
|
1867
|
+
fontFamily: fonts.sansMedium,
|
|
1868
|
+
fontSize: 16,
|
|
1869
|
+
color: ui.ink
|
|
1870
|
+
},
|
|
1871
|
+
alertBtnLabelYes: {
|
|
1872
|
+
fontFamily: fonts.sansSemi
|
|
1873
|
+
},
|
|
1874
|
+
arrow: {
|
|
1875
|
+
width: 120,
|
|
1876
|
+
height: 104,
|
|
1877
|
+
marginTop: -2,
|
|
1878
|
+
alignSelf: "center",
|
|
1879
|
+
left: 50
|
|
1880
|
+
},
|
|
1881
|
+
burst: {
|
|
1882
|
+
position: "absolute",
|
|
1883
|
+
left: "50%",
|
|
1884
|
+
width: 0,
|
|
1885
|
+
height: 0
|
|
1886
|
+
},
|
|
1887
|
+
ring: __spreadValues({
|
|
1888
|
+
position: "absolute",
|
|
1889
|
+
left: -85,
|
|
1890
|
+
top: -85,
|
|
1891
|
+
width: 170,
|
|
1892
|
+
height: 170,
|
|
1893
|
+
borderRadius: 85,
|
|
1894
|
+
borderWidth: 2,
|
|
1895
|
+
borderColor: "rgba(255,138,61,0.75)"
|
|
1896
|
+
}, glowShadow(16, 0.5)),
|
|
1897
|
+
part: {
|
|
1898
|
+
position: "absolute",
|
|
1899
|
+
left: -13,
|
|
1900
|
+
top: -13,
|
|
1901
|
+
width: 26,
|
|
1902
|
+
height: 26,
|
|
1903
|
+
alignItems: "center",
|
|
1904
|
+
justifyContent: "center"
|
|
1905
|
+
},
|
|
1906
|
+
dot: {
|
|
1907
|
+
width: 9,
|
|
1908
|
+
height: 9,
|
|
1909
|
+
borderRadius: 4.5
|
|
1910
|
+
},
|
|
1911
|
+
sliver: {
|
|
1912
|
+
width: 5,
|
|
1913
|
+
height: 15,
|
|
1914
|
+
borderRadius: 3
|
|
1915
|
+
},
|
|
1916
|
+
lockWrap: {
|
|
1917
|
+
width: 214,
|
|
1918
|
+
height: 290,
|
|
1919
|
+
alignSelf: "center"
|
|
1920
|
+
},
|
|
1921
|
+
lock: {
|
|
1922
|
+
width: 214,
|
|
1923
|
+
height: 290,
|
|
1924
|
+
borderTopLeftRadius: 44,
|
|
1925
|
+
borderTopRightRadius: 44,
|
|
1926
|
+
overflow: "hidden",
|
|
1927
|
+
borderWidth: 1.5,
|
|
1928
|
+
borderBottomWidth: 0,
|
|
1929
|
+
borderColor: "rgba(255,138,61,0.75)",
|
|
1930
|
+
paddingTop: 26,
|
|
1931
|
+
paddingHorizontal: 12,
|
|
1932
|
+
alignItems: "center"
|
|
1933
|
+
},
|
|
1934
|
+
lockDate: {
|
|
1935
|
+
fontFamily: fonts.sansMedium,
|
|
1936
|
+
fontSize: 13,
|
|
1937
|
+
color: ui.ink,
|
|
1938
|
+
opacity: 0.8
|
|
1939
|
+
},
|
|
1940
|
+
lockTime: {
|
|
1941
|
+
fontFamily: fonts.serif,
|
|
1942
|
+
fontSize: 76,
|
|
1943
|
+
lineHeight: 82,
|
|
1944
|
+
letterSpacing: -1.5,
|
|
1945
|
+
color: ui.ink
|
|
1946
|
+
},
|
|
1947
|
+
note: {
|
|
1948
|
+
position: "absolute",
|
|
1949
|
+
left: 10,
|
|
1950
|
+
right: 10,
|
|
1951
|
+
top: 150,
|
|
1952
|
+
flexDirection: "row",
|
|
1953
|
+
alignItems: "flex-start",
|
|
1954
|
+
columnGap: 9,
|
|
1955
|
+
padding: 11,
|
|
1956
|
+
borderRadius: 18,
|
|
1957
|
+
backgroundColor: "rgba(255,255,255,0.86)"
|
|
1958
|
+
},
|
|
1959
|
+
noteIcon: {
|
|
1960
|
+
width: 28,
|
|
1961
|
+
height: 28,
|
|
1962
|
+
borderRadius: 8,
|
|
1963
|
+
backgroundColor: "#FFFFFF",
|
|
1964
|
+
alignItems: "center",
|
|
1965
|
+
justifyContent: "center"
|
|
1966
|
+
},
|
|
1967
|
+
noteText: {
|
|
1968
|
+
flex: 1,
|
|
1969
|
+
rowGap: 2
|
|
1970
|
+
},
|
|
1971
|
+
noteHead: {
|
|
1972
|
+
flexDirection: "row",
|
|
1973
|
+
justifyContent: "space-between"
|
|
1974
|
+
},
|
|
1975
|
+
noteApp: {
|
|
1976
|
+
fontFamily: fonts.sansSemi,
|
|
1977
|
+
fontSize: 11.5,
|
|
1978
|
+
color: ui.ink
|
|
1979
|
+
},
|
|
1980
|
+
noteWhen: {
|
|
1981
|
+
fontFamily: fonts.sans,
|
|
1982
|
+
fontSize: 11.5,
|
|
1983
|
+
color: ui.muted
|
|
1984
|
+
},
|
|
1985
|
+
noteBody: {
|
|
1986
|
+
fontFamily: fonts.sans,
|
|
1987
|
+
fontSize: 11.5,
|
|
1988
|
+
lineHeight: 15,
|
|
1989
|
+
color: ui.ink2
|
|
1990
|
+
},
|
|
1991
|
+
lockFade: {
|
|
1992
|
+
position: "absolute",
|
|
1993
|
+
left: 0,
|
|
1994
|
+
bottom: 0
|
|
1995
|
+
}
|
|
1996
|
+
});export{Burst,Dial,DrawnArrow,FillBar,Glow,GlowButton,LinkButton,LockPreview,LucyOrb,NumberChip,Odometer,OptionRow,PowerOn,PrimeFrame,Reveal,Roller,SoftButton,StaticWords,Sunset,SystemPrompt,Words,text};//# sourceMappingURL=parts.js.map
|