@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,624 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect,useRef,useId}from'react';import {Animated,Easing,Pressable,StyleSheet,View,Text,Platform}from'react-native';import Svg,{Defs,RadialGradient,Stop,Ellipse,Circle,Path}from'react-native-svg';import {Ionicons}from'@expo/vector-icons';import {MARK}from'../components/Logo.js';import {useReducedMotion}from'../hooks/useReducedMotion.js';import {fonts}from'../theme/fonts.js';import {tap}from'../welcome/haptics.js';import {timeLeft,offerWords,leftSentence,leftShort,countdownTiles}from'./blackFriday.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const ink = {
|
|
21
|
+
bg: "#0E0B09",
|
|
22
|
+
surface: "#1A1613",
|
|
23
|
+
surface2: "#241E1A",
|
|
24
|
+
line2: "rgba(255,238,222,0.17)",
|
|
25
|
+
text: "#FFF5EC",
|
|
26
|
+
text2: "#E3D6CA",
|
|
27
|
+
muted: "#A3978B",
|
|
28
|
+
accent: "#FF8A3D"
|
|
29
|
+
};
|
|
30
|
+
const hidden = {
|
|
31
|
+
accessibilityElementsHidden: true,
|
|
32
|
+
importantForAccessibility: "no-hide-descendants"
|
|
33
|
+
};
|
|
34
|
+
function useSvgIds(...names) {
|
|
35
|
+
const uid = useId().replace(/[^A-Za-z0-9]/g, "");
|
|
36
|
+
return Object.fromEntries(names.map((n) => [n, `${n}${uid}`]));
|
|
37
|
+
}
|
|
38
|
+
function useNow(every, active = true) {
|
|
39
|
+
const [now, setNow] = useState(() => new Date());
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (!active)
|
|
42
|
+
return void 0;
|
|
43
|
+
setNow(new Date());
|
|
44
|
+
const id = setInterval(() => setNow(new Date()), every);
|
|
45
|
+
return () => clearInterval(id);
|
|
46
|
+
}, [active, every]);
|
|
47
|
+
return now;
|
|
48
|
+
}
|
|
49
|
+
function MidnightMark({
|
|
50
|
+
size,
|
|
51
|
+
delay = 0,
|
|
52
|
+
still = false,
|
|
53
|
+
struck = false,
|
|
54
|
+
onStrike
|
|
55
|
+
}) {
|
|
56
|
+
const id = useSvgIds("face", "spec", "halo");
|
|
57
|
+
const pop = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
58
|
+
const sweep = useRef(new Animated.Value(still || struck ? 1 : 0)).current;
|
|
59
|
+
const ring = useRef(new Animated.Value(1)).current;
|
|
60
|
+
const breathe = useRef(new Animated.Value(0.5)).current;
|
|
61
|
+
const strike = useRef(onStrike);
|
|
62
|
+
strike.current = onStrike;
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (still) {
|
|
65
|
+
pop.setValue(1);
|
|
66
|
+
sweep.setValue(1);
|
|
67
|
+
return void 0;
|
|
68
|
+
}
|
|
69
|
+
const arrive = Animated.timing(pop, {
|
|
70
|
+
toValue: 1,
|
|
71
|
+
duration: 800,
|
|
72
|
+
delay,
|
|
73
|
+
easing: Easing.bezier(0.2, 0.9, 0.25, 1.15),
|
|
74
|
+
useNativeDriver: true
|
|
75
|
+
});
|
|
76
|
+
const hand = struck ? null : Animated.sequence([Animated.delay(delay + 120), Animated.timing(sweep, {
|
|
77
|
+
toValue: 1,
|
|
78
|
+
duration: 1400,
|
|
79
|
+
easing: Easing.bezier(0.65, 0, 0.35, 1),
|
|
80
|
+
useNativeDriver: true
|
|
81
|
+
})]);
|
|
82
|
+
const glow = Animated.loop(Animated.sequence([Animated.timing(breathe, {
|
|
83
|
+
toValue: 1,
|
|
84
|
+
duration: 1800,
|
|
85
|
+
easing: Easing.inOut(Easing.sin),
|
|
86
|
+
useNativeDriver: true
|
|
87
|
+
}), Animated.timing(breathe, {
|
|
88
|
+
toValue: 0,
|
|
89
|
+
duration: 1800,
|
|
90
|
+
easing: Easing.inOut(Easing.sin),
|
|
91
|
+
useNativeDriver: true
|
|
92
|
+
})]));
|
|
93
|
+
arrive.start();
|
|
94
|
+
glow.start();
|
|
95
|
+
hand == null ? void 0 : hand.start(({
|
|
96
|
+
finished
|
|
97
|
+
}) => {
|
|
98
|
+
var _a;
|
|
99
|
+
if (!finished)
|
|
100
|
+
return;
|
|
101
|
+
(_a = strike.current) == null ? void 0 : _a.call(strike);
|
|
102
|
+
ring.setValue(0);
|
|
103
|
+
Animated.timing(ring, {
|
|
104
|
+
toValue: 1,
|
|
105
|
+
duration: 1500,
|
|
106
|
+
easing: Easing.bezier(0.2, 0.7, 0.3, 1),
|
|
107
|
+
useNativeDriver: true
|
|
108
|
+
}).start();
|
|
109
|
+
});
|
|
110
|
+
return () => {
|
|
111
|
+
arrive.stop();
|
|
112
|
+
glow.stop();
|
|
113
|
+
hand == null ? void 0 : hand.stop();
|
|
114
|
+
};
|
|
115
|
+
}, [breathe, delay, pop, ring, still, struck, sweep]);
|
|
116
|
+
const unit = size / 18;
|
|
117
|
+
const dx = (MARK.PIVOT.x - 8) * unit;
|
|
118
|
+
const dy = (MARK.PIVOT.y - 8) * unit;
|
|
119
|
+
const rotate = sweep.interpolate({
|
|
120
|
+
inputRange: [0, 1],
|
|
121
|
+
outputRange: ["0deg", "222deg"]
|
|
122
|
+
});
|
|
123
|
+
const H = size * 2.6;
|
|
124
|
+
return /* @__PURE__ */ jsxs(Animated.View, __spreadProps(__spreadValues({}, hidden), { style: {
|
|
125
|
+
width: size,
|
|
126
|
+
height: size,
|
|
127
|
+
opacity: pop,
|
|
128
|
+
transform: [{
|
|
129
|
+
scale: pop.interpolate({
|
|
130
|
+
inputRange: [0, 1],
|
|
131
|
+
outputRange: [0.55, 1]
|
|
132
|
+
})
|
|
133
|
+
}]
|
|
134
|
+
}, children: [
|
|
135
|
+
/* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: {
|
|
136
|
+
position: "absolute",
|
|
137
|
+
left: (size - H) / 2,
|
|
138
|
+
top: (size - H) / 2,
|
|
139
|
+
width: H,
|
|
140
|
+
height: H,
|
|
141
|
+
opacity: breathe.interpolate({
|
|
142
|
+
inputRange: [0, 1],
|
|
143
|
+
outputRange: [0.7, 1]
|
|
144
|
+
}),
|
|
145
|
+
transform: [{
|
|
146
|
+
scale: breathe.interpolate({
|
|
147
|
+
inputRange: [0, 1],
|
|
148
|
+
outputRange: [0.94, 1.06]
|
|
149
|
+
})
|
|
150
|
+
}]
|
|
151
|
+
}, children: /* @__PURE__ */ jsxs(Svg, { width: H, height: H, children: [
|
|
152
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: id.halo, cx: "50%", cy: "50%", r: "50%", children: [
|
|
153
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF6A14", stopOpacity: 0.42 }),
|
|
154
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.45", stopColor: "#FF5A00", stopOpacity: 0.14 }),
|
|
155
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF5A00", stopOpacity: 0 })
|
|
156
|
+
] }) }),
|
|
157
|
+
/* @__PURE__ */ jsx(Circle, { cx: H / 2, cy: H / 2, r: H / 2, fill: `url(#${id.halo})` })
|
|
158
|
+
] }) }),
|
|
159
|
+
[0.55, 0.4].map((from) => /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [st.strike, {
|
|
160
|
+
width: size,
|
|
161
|
+
height: size,
|
|
162
|
+
borderRadius: size / 2,
|
|
163
|
+
opacity: ring.interpolate({
|
|
164
|
+
inputRange: [0, 1],
|
|
165
|
+
outputRange: [0.85, 0]
|
|
166
|
+
}),
|
|
167
|
+
transform: [{
|
|
168
|
+
scale: ring.interpolate({
|
|
169
|
+
inputRange: [0, 1],
|
|
170
|
+
outputRange: [from, from * 3.4]
|
|
171
|
+
})
|
|
172
|
+
}]
|
|
173
|
+
}] }, from)),
|
|
174
|
+
/* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, st.markShadow], children: /* @__PURE__ */ jsxs(Svg, { width: size, height: size, viewBox: "-1 -1 18 18", children: [
|
|
175
|
+
/* @__PURE__ */ jsxs(Defs, { children: [
|
|
176
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: id.face, cx: "36%", cy: "30%", r: "80%", children: [
|
|
177
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFC08F" }),
|
|
178
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.38", stopColor: "#FF7A2C" }),
|
|
179
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.72", stopColor: "#FF5A00" }),
|
|
180
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#D64700" })
|
|
181
|
+
] }),
|
|
182
|
+
/* @__PURE__ */ jsxs(RadialGradient, { id: id.spec, cx: "50%", cy: "50%", r: "50%", children: [
|
|
183
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFFFFF", stopOpacity: 0.75 }),
|
|
184
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FFFFFF", stopOpacity: 0 })
|
|
185
|
+
] })
|
|
186
|
+
] }),
|
|
187
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.BACK, fill: "#FF5A00", opacity: 0.28 }),
|
|
188
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.FACE, fill: `url(#${id.face})` }),
|
|
189
|
+
/* @__PURE__ */ jsx(Ellipse, { cx: 5.3, cy: 4.5, rx: 3.2, ry: 2, fill: `url(#${id.spec})`, transform: "rotate(-28 5.3 4.5)" }),
|
|
190
|
+
/* @__PURE__ */ jsx(Path, { d: MARK.HOUR, fill: "none", stroke: "#fff", strokeWidth: 0.86, strokeLinecap: "round" })
|
|
191
|
+
] }) }),
|
|
192
|
+
/* @__PURE__ */ jsx(Animated.View, { style: {
|
|
193
|
+
position: "absolute",
|
|
194
|
+
width: size,
|
|
195
|
+
height: size,
|
|
196
|
+
transform: [{
|
|
197
|
+
translateX: dx
|
|
198
|
+
}, {
|
|
199
|
+
translateY: dy
|
|
200
|
+
}, {
|
|
201
|
+
rotate
|
|
202
|
+
}, {
|
|
203
|
+
translateX: -dx
|
|
204
|
+
}, {
|
|
205
|
+
translateY: -dy
|
|
206
|
+
}]
|
|
207
|
+
}, 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" }) }) })
|
|
208
|
+
] }));
|
|
209
|
+
}
|
|
210
|
+
function Ember({
|
|
211
|
+
width,
|
|
212
|
+
top,
|
|
213
|
+
delay = 0,
|
|
214
|
+
still = false
|
|
215
|
+
}) {
|
|
216
|
+
const id = useSvgIds("ember");
|
|
217
|
+
const rise = useRef(new Animated.Value(still ? 1 : 0)).current;
|
|
218
|
+
const breathe = useRef(new Animated.Value(0)).current;
|
|
219
|
+
useEffect(() => {
|
|
220
|
+
if (still) {
|
|
221
|
+
rise.setValue(1);
|
|
222
|
+
return void 0;
|
|
223
|
+
}
|
|
224
|
+
const up = Animated.timing(rise, {
|
|
225
|
+
toValue: 1,
|
|
226
|
+
duration: 1800,
|
|
227
|
+
delay,
|
|
228
|
+
easing: Easing.bezier(0.2, 0.7, 0.2, 1),
|
|
229
|
+
useNativeDriver: true
|
|
230
|
+
});
|
|
231
|
+
const loop = Animated.loop(Animated.sequence([Animated.timing(breathe, {
|
|
232
|
+
toValue: 1,
|
|
233
|
+
duration: 3e3,
|
|
234
|
+
easing: Easing.inOut(Easing.sin),
|
|
235
|
+
useNativeDriver: true
|
|
236
|
+
}), Animated.timing(breathe, {
|
|
237
|
+
toValue: 0,
|
|
238
|
+
duration: 3e3,
|
|
239
|
+
easing: Easing.inOut(Easing.sin),
|
|
240
|
+
useNativeDriver: true
|
|
241
|
+
})]));
|
|
242
|
+
up.start();
|
|
243
|
+
loop.start();
|
|
244
|
+
return () => {
|
|
245
|
+
up.stop();
|
|
246
|
+
loop.stop();
|
|
247
|
+
};
|
|
248
|
+
}, [breathe, delay, rise, still]);
|
|
249
|
+
const W = width * 2.1;
|
|
250
|
+
const H = W * 0.78;
|
|
251
|
+
return /* @__PURE__ */ jsx(Animated.View, __spreadProps(__spreadValues({ pointerEvents: "none" }, hidden), { style: {
|
|
252
|
+
position: "absolute",
|
|
253
|
+
left: (width - W) / 2,
|
|
254
|
+
top,
|
|
255
|
+
width: W,
|
|
256
|
+
height: H,
|
|
257
|
+
opacity: rise,
|
|
258
|
+
transform: [{
|
|
259
|
+
translateY: Animated.add(rise.interpolate({
|
|
260
|
+
inputRange: [0, 1],
|
|
261
|
+
outputRange: [180, 0]
|
|
262
|
+
}), breathe.interpolate({
|
|
263
|
+
inputRange: [0, 1],
|
|
264
|
+
outputRange: [0, -18]
|
|
265
|
+
}))
|
|
266
|
+
}, {
|
|
267
|
+
scale: breathe.interpolate({
|
|
268
|
+
inputRange: [0, 1],
|
|
269
|
+
outputRange: [1, 1.04]
|
|
270
|
+
})
|
|
271
|
+
}]
|
|
272
|
+
}, children: /* @__PURE__ */ jsxs(Svg, { width: W, height: H, children: [
|
|
273
|
+
/* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: id.ember, cx: "50%", cy: "50%", r: "50%", children: [
|
|
274
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF5A00", stopOpacity: 0.52 }),
|
|
275
|
+
/* @__PURE__ */ jsx(Stop, { offset: "0.55", stopColor: "#FF8C3C", stopOpacity: 0.16 }),
|
|
276
|
+
/* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF8C3C", stopOpacity: 0 })
|
|
277
|
+
] }) }),
|
|
278
|
+
/* @__PURE__ */ jsx(Ellipse, { cx: W / 2, cy: H / 2, rx: W / 2, ry: H / 2, fill: `url(#${id.ember})` })
|
|
279
|
+
] }) }));
|
|
280
|
+
}
|
|
281
|
+
const SPARKS = Array.from({
|
|
282
|
+
length: 14
|
|
283
|
+
}, (_, i) => ({
|
|
284
|
+
x: i * 97 % 100 / 100,
|
|
285
|
+
ms: 5600 + i * 733 % 3400,
|
|
286
|
+
wait: i * 419 % 4200,
|
|
287
|
+
drift: i % 2 ? -24 : 22,
|
|
288
|
+
size: i % 3 === 0 ? 4 : 3
|
|
289
|
+
}));
|
|
290
|
+
function Sparks({
|
|
291
|
+
width,
|
|
292
|
+
height,
|
|
293
|
+
delay = 0
|
|
294
|
+
}) {
|
|
295
|
+
const values = useRef(SPARKS.map(() => new Animated.Value(0))).current;
|
|
296
|
+
useEffect(() => {
|
|
297
|
+
const runs = values.map((v, i) => Animated.sequence([Animated.delay(delay + SPARKS[i].wait), Animated.loop(Animated.timing(v, {
|
|
298
|
+
toValue: 1,
|
|
299
|
+
duration: SPARKS[i].ms,
|
|
300
|
+
easing: Easing.linear,
|
|
301
|
+
useNativeDriver: true
|
|
302
|
+
}))]));
|
|
303
|
+
runs.forEach((r) => r.start());
|
|
304
|
+
return () => runs.forEach((r) => r.stop());
|
|
305
|
+
}, [delay, values]);
|
|
306
|
+
return /* @__PURE__ */ jsx(View, __spreadProps(__spreadValues({ pointerEvents: "none", style: StyleSheet.absoluteFill }, hidden), { children: SPARKS.map((p, i) => /* @__PURE__ */ jsx(Animated.View, { style: [st.spark, {
|
|
307
|
+
left: p.x * width,
|
|
308
|
+
top: height - 24,
|
|
309
|
+
width: p.size,
|
|
310
|
+
height: p.size,
|
|
311
|
+
borderRadius: p.size / 2,
|
|
312
|
+
opacity: values[i].interpolate({
|
|
313
|
+
inputRange: [0, 0.14, 1],
|
|
314
|
+
outputRange: [0, 0.9, 0]
|
|
315
|
+
}),
|
|
316
|
+
transform: [{
|
|
317
|
+
translateY: values[i].interpolate({
|
|
318
|
+
inputRange: [0, 1],
|
|
319
|
+
outputRange: [0, -height * 0.78]
|
|
320
|
+
})
|
|
321
|
+
}, {
|
|
322
|
+
translateX: values[i].interpolate({
|
|
323
|
+
inputRange: [0, 1],
|
|
324
|
+
outputRange: [0, p.drift]
|
|
325
|
+
})
|
|
326
|
+
}]
|
|
327
|
+
}] }, i)) }));
|
|
328
|
+
}
|
|
329
|
+
function Countdown({
|
|
330
|
+
left,
|
|
331
|
+
small = false,
|
|
332
|
+
still = false
|
|
333
|
+
}) {
|
|
334
|
+
return /* @__PURE__ */ jsx(View, { style: [st.clock, small && st.clockSmall], accessible: true, accessibilityRole: "timer", accessibilityLabel: leftSentence(left), children: countdownTiles(left).map((t) => /* @__PURE__ */ jsx(Tile, { value: t.value, unit: t.unit, small, still }, t.unit)) });
|
|
335
|
+
}
|
|
336
|
+
function Tile({
|
|
337
|
+
value,
|
|
338
|
+
unit,
|
|
339
|
+
small,
|
|
340
|
+
still
|
|
341
|
+
}) {
|
|
342
|
+
const drop = useRef(new Animated.Value(1)).current;
|
|
343
|
+
const shown = useRef(value);
|
|
344
|
+
useEffect(() => {
|
|
345
|
+
if (shown.current === value)
|
|
346
|
+
return;
|
|
347
|
+
shown.current = value;
|
|
348
|
+
if (still)
|
|
349
|
+
return;
|
|
350
|
+
drop.setValue(0);
|
|
351
|
+
Animated.timing(drop, {
|
|
352
|
+
toValue: 1,
|
|
353
|
+
duration: 420,
|
|
354
|
+
easing: Easing.bezier(0.2, 0.8, 0.2, 1),
|
|
355
|
+
useNativeDriver: true
|
|
356
|
+
}).start();
|
|
357
|
+
}, [drop, still, value]);
|
|
358
|
+
return /* @__PURE__ */ jsxs(View, { style: [st.tile, small && st.tileSmall], children: [
|
|
359
|
+
/* @__PURE__ */ jsx(View, { style: st.seam }),
|
|
360
|
+
/* @__PURE__ */ jsx(Animated.Text, { style: [st.num, small && st.numSmall, {
|
|
361
|
+
opacity: drop,
|
|
362
|
+
transform: [{
|
|
363
|
+
translateY: drop.interpolate({
|
|
364
|
+
inputRange: [0, 1],
|
|
365
|
+
outputRange: [-12, 0]
|
|
366
|
+
})
|
|
367
|
+
}]
|
|
368
|
+
}], children: value }),
|
|
369
|
+
/* @__PURE__ */ jsx(Text, { style: st.unit, children: unit })
|
|
370
|
+
] });
|
|
371
|
+
}
|
|
372
|
+
function OfferChip({
|
|
373
|
+
offer,
|
|
374
|
+
now,
|
|
375
|
+
onPress,
|
|
376
|
+
onLongPress
|
|
377
|
+
}) {
|
|
378
|
+
const reduced = useReducedMotion();
|
|
379
|
+
const ping = useRef(new Animated.Value(0)).current;
|
|
380
|
+
const arrive = useRef(new Animated.Value(reduced ? 1 : 0)).current;
|
|
381
|
+
useEffect(() => {
|
|
382
|
+
if (reduced) {
|
|
383
|
+
arrive.setValue(1);
|
|
384
|
+
return void 0;
|
|
385
|
+
}
|
|
386
|
+
const pop = Animated.spring(arrive, {
|
|
387
|
+
toValue: 1,
|
|
388
|
+
useNativeDriver: true,
|
|
389
|
+
speed: 14,
|
|
390
|
+
bounciness: 10
|
|
391
|
+
});
|
|
392
|
+
const loop = Animated.loop(Animated.timing(ping, {
|
|
393
|
+
toValue: 1,
|
|
394
|
+
duration: 1800,
|
|
395
|
+
easing: Easing.out(Easing.quad),
|
|
396
|
+
useNativeDriver: true
|
|
397
|
+
}));
|
|
398
|
+
pop.start();
|
|
399
|
+
loop.start();
|
|
400
|
+
return () => {
|
|
401
|
+
pop.stop();
|
|
402
|
+
loop.stop();
|
|
403
|
+
};
|
|
404
|
+
}, [arrive, ping, reduced]);
|
|
405
|
+
const left = timeLeft(now, offer.ends);
|
|
406
|
+
const w = offerWords(offer.discount);
|
|
407
|
+
return /* @__PURE__ */ jsx(Animated.View, { style: {
|
|
408
|
+
opacity: arrive,
|
|
409
|
+
transform: [{
|
|
410
|
+
scale: arrive.interpolate({
|
|
411
|
+
inputRange: [0, 1],
|
|
412
|
+
outputRange: [0.6, 1]
|
|
413
|
+
})
|
|
414
|
+
}]
|
|
415
|
+
}, children: /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
|
|
416
|
+
tap();
|
|
417
|
+
onPress();
|
|
418
|
+
}, onLongPress, hitSlop: 6, accessibilityRole: "button", accessibilityLabel: `Black Friday, ${w.off}. ${leftSentence(left)}`, accessibilityHint: "Opens the offer", style: ({
|
|
419
|
+
pressed
|
|
420
|
+
}) => [st.chip, pressed && st.chipPressed], children: [
|
|
421
|
+
/* @__PURE__ */ jsxs(View, { style: st.dotBox, children: [
|
|
422
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [st.dot, st.dotPing, {
|
|
423
|
+
opacity: ping.interpolate({
|
|
424
|
+
inputRange: [0, 1],
|
|
425
|
+
outputRange: [0.6, 0]
|
|
426
|
+
}),
|
|
427
|
+
transform: [{
|
|
428
|
+
scale: ping.interpolate({
|
|
429
|
+
inputRange: [0, 1],
|
|
430
|
+
outputRange: [1, 2.6]
|
|
431
|
+
})
|
|
432
|
+
}]
|
|
433
|
+
}] }),
|
|
434
|
+
/* @__PURE__ */ jsx(View, { style: st.dot })
|
|
435
|
+
] }),
|
|
436
|
+
/* @__PURE__ */ jsx(Text, { style: st.chipText, children: "Black Friday" }),
|
|
437
|
+
/* @__PURE__ */ jsx(Text, { style: st.chipSub, children: `${w.off} \xB7 ${leftShort(left)}` }),
|
|
438
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "chevron-forward", size: 14, color: "#FFB27A" })
|
|
439
|
+
] }) });
|
|
440
|
+
}
|
|
441
|
+
function InkLink({
|
|
442
|
+
label,
|
|
443
|
+
onPress
|
|
444
|
+
}) {
|
|
445
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => {
|
|
446
|
+
tap();
|
|
447
|
+
onPress();
|
|
448
|
+
}, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: label, style: ({
|
|
449
|
+
pressed
|
|
450
|
+
}) => [st.link, pressed && {
|
|
451
|
+
opacity: 0.6
|
|
452
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: st.linkText, children: label }) });
|
|
453
|
+
}
|
|
454
|
+
function CreamButton({
|
|
455
|
+
label,
|
|
456
|
+
onPress
|
|
457
|
+
}) {
|
|
458
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => {
|
|
459
|
+
tap();
|
|
460
|
+
onPress();
|
|
461
|
+
}, accessibilityRole: "button", accessibilityLabel: label, style: ({
|
|
462
|
+
pressed
|
|
463
|
+
}) => [st.cream, pressed && {
|
|
464
|
+
transform: [{
|
|
465
|
+
scale: 0.985
|
|
466
|
+
}]
|
|
467
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: st.creamText, children: label }) });
|
|
468
|
+
}
|
|
469
|
+
const st = StyleSheet.create({
|
|
470
|
+
strike: {
|
|
471
|
+
position: "absolute",
|
|
472
|
+
borderWidth: 2,
|
|
473
|
+
borderColor: "#FF8A3D"
|
|
474
|
+
},
|
|
475
|
+
markShadow: Platform.select({
|
|
476
|
+
ios: {
|
|
477
|
+
shadowColor: "#FF5A00",
|
|
478
|
+
shadowOpacity: 0.4,
|
|
479
|
+
shadowRadius: 18,
|
|
480
|
+
shadowOffset: {
|
|
481
|
+
width: 0,
|
|
482
|
+
height: 10
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
default: {}
|
|
486
|
+
}),
|
|
487
|
+
spark: {
|
|
488
|
+
position: "absolute",
|
|
489
|
+
backgroundColor: "#FFB874"
|
|
490
|
+
},
|
|
491
|
+
clock: {
|
|
492
|
+
flexDirection: "row",
|
|
493
|
+
justifyContent: "center",
|
|
494
|
+
columnGap: 10
|
|
495
|
+
},
|
|
496
|
+
clockSmall: {
|
|
497
|
+
justifyContent: "space-between",
|
|
498
|
+
columnGap: 0
|
|
499
|
+
},
|
|
500
|
+
tile: {
|
|
501
|
+
width: 72,
|
|
502
|
+
height: 80,
|
|
503
|
+
borderRadius: 20,
|
|
504
|
+
backgroundColor: ink.surface,
|
|
505
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
506
|
+
borderColor: ink.line2,
|
|
507
|
+
alignItems: "center",
|
|
508
|
+
justifyContent: "center",
|
|
509
|
+
rowGap: 6,
|
|
510
|
+
overflow: "hidden"
|
|
511
|
+
},
|
|
512
|
+
tileSmall: {
|
|
513
|
+
width: 68,
|
|
514
|
+
height: 70,
|
|
515
|
+
borderRadius: 18,
|
|
516
|
+
backgroundColor: ink.surface2,
|
|
517
|
+
rowGap: 4
|
|
518
|
+
},
|
|
519
|
+
seam: {
|
|
520
|
+
position: "absolute",
|
|
521
|
+
left: 0,
|
|
522
|
+
right: 0,
|
|
523
|
+
top: "41%",
|
|
524
|
+
height: StyleSheet.hairlineWidth,
|
|
525
|
+
backgroundColor: ink.line2
|
|
526
|
+
},
|
|
527
|
+
num: {
|
|
528
|
+
fontFamily: fonts.sansSemi,
|
|
529
|
+
fontSize: 32,
|
|
530
|
+
lineHeight: 36,
|
|
531
|
+
letterSpacing: -0.8,
|
|
532
|
+
color: ink.text,
|
|
533
|
+
fontVariant: ["tabular-nums"]
|
|
534
|
+
},
|
|
535
|
+
numSmall: {
|
|
536
|
+
fontSize: 27,
|
|
537
|
+
lineHeight: 31
|
|
538
|
+
},
|
|
539
|
+
unit: {
|
|
540
|
+
fontFamily: fonts.sansSemi,
|
|
541
|
+
fontSize: 10,
|
|
542
|
+
letterSpacing: 1.6,
|
|
543
|
+
color: ink.muted,
|
|
544
|
+
textTransform: "uppercase"
|
|
545
|
+
},
|
|
546
|
+
chip: __spreadValues({
|
|
547
|
+
flexDirection: "row",
|
|
548
|
+
alignItems: "center",
|
|
549
|
+
columnGap: 8,
|
|
550
|
+
height: 36,
|
|
551
|
+
paddingLeft: 14,
|
|
552
|
+
paddingRight: 12,
|
|
553
|
+
borderRadius: 18,
|
|
554
|
+
backgroundColor: "#1A1714"
|
|
555
|
+
}, Platform.select({
|
|
556
|
+
ios: {
|
|
557
|
+
shadowColor: "#FF5A00",
|
|
558
|
+
shadowOpacity: 0.4,
|
|
559
|
+
shadowRadius: 12,
|
|
560
|
+
shadowOffset: {
|
|
561
|
+
width: 0,
|
|
562
|
+
height: 8
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
default: {
|
|
566
|
+
elevation: 4
|
|
567
|
+
}
|
|
568
|
+
})),
|
|
569
|
+
chipPressed: {
|
|
570
|
+
transform: [{
|
|
571
|
+
scale: 0.97
|
|
572
|
+
}]
|
|
573
|
+
},
|
|
574
|
+
dotBox: {
|
|
575
|
+
width: 8,
|
|
576
|
+
height: 8,
|
|
577
|
+
alignItems: "center",
|
|
578
|
+
justifyContent: "center"
|
|
579
|
+
},
|
|
580
|
+
dot: {
|
|
581
|
+
width: 8,
|
|
582
|
+
height: 8,
|
|
583
|
+
borderRadius: 4,
|
|
584
|
+
backgroundColor: "#FF5A00"
|
|
585
|
+
},
|
|
586
|
+
dotPing: {
|
|
587
|
+
position: "absolute"
|
|
588
|
+
},
|
|
589
|
+
chipText: {
|
|
590
|
+
fontFamily: fonts.sansSemi,
|
|
591
|
+
fontSize: 13,
|
|
592
|
+
color: "#FFFAF5"
|
|
593
|
+
},
|
|
594
|
+
chipSub: {
|
|
595
|
+
fontFamily: fonts.sansMedium,
|
|
596
|
+
fontSize: 13,
|
|
597
|
+
color: "#FFB27A"
|
|
598
|
+
},
|
|
599
|
+
link: {
|
|
600
|
+
alignSelf: "center",
|
|
601
|
+
height: 44,
|
|
602
|
+
justifyContent: "center",
|
|
603
|
+
paddingHorizontal: 12
|
|
604
|
+
},
|
|
605
|
+
linkText: {
|
|
606
|
+
fontFamily: fonts.sansMedium,
|
|
607
|
+
fontSize: 15.5,
|
|
608
|
+
color: ink.text
|
|
609
|
+
},
|
|
610
|
+
cream: {
|
|
611
|
+
alignSelf: "stretch",
|
|
612
|
+
height: 58,
|
|
613
|
+
borderRadius: 29,
|
|
614
|
+
backgroundColor: ink.text,
|
|
615
|
+
alignItems: "center",
|
|
616
|
+
justifyContent: "center"
|
|
617
|
+
},
|
|
618
|
+
creamText: {
|
|
619
|
+
fontFamily: fonts.sansSemi,
|
|
620
|
+
fontSize: 17,
|
|
621
|
+
letterSpacing: -0.2,
|
|
622
|
+
color: "#1A1714"
|
|
623
|
+
}
|
|
624
|
+
});export{Countdown,CreamButton,Ember,InkLink,MidnightMark,OfferChip,Sparks,ink,useNow};//# sourceMappingURL=parts.js.map
|