@adminide-stack/clock-tik-mobile 0.0.0-stage → 12.0.37-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/.claude-flow/data/pending-insights.jsonl +43 -0
  2. package/.claude-flow/sessions/session-1794323376548.json +14 -0
  3. package/CHANGELOG.md +31 -0
  4. package/jest.config.cjs +22 -0
  5. package/lib/assets/home/loop-day.jpg +0 -0
  6. package/lib/assets/home/loop-day.mp4 +0 -0
  7. package/lib/assets/home/loop-time-back.jpg +0 -0
  8. package/lib/assets/home/loop-time-back.mp4 +0 -0
  9. package/lib/assets/home/loop-where.jpg +0 -0
  10. package/lib/assets/home/loop-where.mp4 +0 -0
  11. package/lib/assets/home/reel-gym.jpg +0 -0
  12. package/lib/assets/home/reel-gym.mp4 +0 -0
  13. package/lib/assets/home/reel-internet.jpg +0 -0
  14. package/lib/assets/home/reel-internet.mp4 +0 -0
  15. package/lib/assets/icon.png +0 -0
  16. package/lib/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  17. package/lib/assets/lottie/lucy-mark-calendar.json +1827 -0
  18. package/lib/assets/lottie/lucy-mark-call.json +1470 -0
  19. package/lib/assets/lottie/lucy-mark-connect.json +2552 -0
  20. package/lib/assets/lottie/lucy-mark-details.json +1735 -0
  21. package/lib/assets/lottie/lucy-mark-email.json +1363 -0
  22. package/lib/assets/lottie/lucy-mark-message.json +1154 -0
  23. package/lib/assets/lottie/lucy-mark-search.json +1067 -0
  24. package/lib/assets/lottie/lucy-mark-think.json +1253 -0
  25. package/lib/assets/lottie/lucy-mark-write.json +1532 -0
  26. package/lib/assets/lottie/time-back.json +16458 -0
  27. package/lib/assets/lottie/where-lucy-works-chat.json +6170 -0
  28. package/lib/assets/lottie/where-lucy-works-cloud.json +10066 -0
  29. package/lib/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  30. package/lib/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  31. package/lib/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  32. package/lib/assets/sounds/hours-back.m4a +0 -0
  33. package/lib/assets/sounds/meet-lucy.m4a +0 -0
  34. package/lib/assets/sounds/power-on.m4a +0 -0
  35. package/lib/assets/sounds/wind-back.m4a +0 -0
  36. package/lib/assets/sounds/youre-in.m4a +0 -0
  37. package/lib/chat/agent.js +358 -0
  38. package/lib/chat/agent.js.map +1 -0
  39. package/lib/chat/appFront.js +32 -0
  40. package/lib/chat/appFront.js.map +1 -0
  41. package/lib/chat/auth.js +370 -0
  42. package/lib/chat/auth.js.map +1 -0
  43. package/lib/chat/chores.js +360 -0
  44. package/lib/chat/chores.js.map +1 -0
  45. package/lib/chat/connectors.js +42 -0
  46. package/lib/chat/connectors.js.map +1 -0
  47. package/lib/chat/jobs.js +223 -0
  48. package/lib/chat/jobs.js.map +1 -0
  49. package/lib/chat/lucyMotion.js +6 -0
  50. package/lib/chat/lucyMotion.js.map +1 -0
  51. package/lib/chat/protocol.js +111 -0
  52. package/lib/chat/protocol.js.map +1 -0
  53. package/lib/chat/results.js +133 -0
  54. package/lib/chat/results.js.map +1 -0
  55. package/lib/chat/store.js +81 -0
  56. package/lib/chat/store.js.map +1 -0
  57. package/lib/chat/useDictation.js +168 -0
  58. package/lib/chat/useDictation.js.map +1 -0
  59. package/lib/chat/useLucyChat.js +451 -0
  60. package/lib/chat/useLucyChat.js.map +1 -0
  61. package/lib/chat/useMyComputer.js +32 -0
  62. package/lib/chat/useMyComputer.js.map +1 -0
  63. package/lib/chat/whereLucyWorks.js +52 -0
  64. package/lib/chat/whereLucyWorks.js.map +1 -0
  65. package/lib/chat/workspace.js +124 -0
  66. package/lib/chat/workspace.js.map +1 -0
  67. package/lib/components/AreaShot.js +289 -0
  68. package/lib/components/AreaShot.js.map +1 -0
  69. package/lib/components/Backdrops.js +262 -0
  70. package/lib/components/Backdrops.js.map +1 -0
  71. package/lib/components/BottomSheet.js +61 -0
  72. package/lib/components/BottomSheet.js.map +1 -0
  73. package/lib/components/ChatSheets.js +429 -0
  74. package/lib/components/ChatSheets.js.map +1 -0
  75. package/lib/components/ConnectorLogo.js +91 -0
  76. package/lib/components/ConnectorLogo.js.map +1 -0
  77. package/lib/components/CustomDrawer.js +534 -0
  78. package/lib/components/CustomDrawer.js.map +1 -0
  79. package/lib/components/IdeasPane.js +394 -0
  80. package/lib/components/IdeasPane.js.map +1 -0
  81. package/lib/components/ImessageSheet.js +261 -0
  82. package/lib/components/ImessageSheet.js.map +1 -0
  83. package/lib/components/KeyboardAvoider.js +29 -0
  84. package/lib/components/KeyboardAvoider.js.map +1 -0
  85. package/lib/components/Logo.js +81 -0
  86. package/lib/components/Logo.js.map +1 -0
  87. package/lib/components/LucyWorking.js +67 -0
  88. package/lib/components/LucyWorking.js.map +1 -0
  89. package/lib/components/Markdown.js +260 -0
  90. package/lib/components/Markdown.js.map +1 -0
  91. package/lib/components/Media.js +93 -0
  92. package/lib/components/Media.js.map +1 -0
  93. package/lib/components/MessagesAppIcon.js +23 -0
  94. package/lib/components/MessagesAppIcon.js.map +1 -0
  95. package/lib/components/MicButton.js +71 -0
  96. package/lib/components/MicButton.js.map +1 -0
  97. package/lib/components/ResultCards.js +974 -0
  98. package/lib/components/ResultCards.js.map +1 -0
  99. package/lib/components/SignInPrompt.js +148 -0
  100. package/lib/components/SignInPrompt.js.map +1 -0
  101. package/lib/components/SignedOut.js +38 -0
  102. package/lib/components/SignedOut.js.map +1 -0
  103. package/lib/components/TalkToLucyHero.js +487 -0
  104. package/lib/components/TalkToLucyHero.js.map +1 -0
  105. package/lib/components/TalkToLucySheet.js +182 -0
  106. package/lib/components/TalkToLucySheet.js.map +1 -0
  107. package/lib/components/WhereLucyWorks.js +277 -0
  108. package/lib/components/WhereLucyWorks.js.map +1 -0
  109. package/lib/components/WorkspaceSection.js +271 -0
  110. package/lib/components/WorkspaceSection.js.map +1 -0
  111. package/lib/components/YantraMark.js +13 -0
  112. package/lib/components/YantraMark.js.map +1 -0
  113. package/lib/components/drawerHeader.js +38 -0
  114. package/lib/components/drawerHeader.js.map +1 -0
  115. package/lib/components/lottieInstalled.js +6 -0
  116. package/lib/components/lottieInstalled.js.map +1 -0
  117. package/lib/components/ui.js +550 -0
  118. package/lib/components/ui.js.map +1 -0
  119. package/lib/components/useSignOut.js +7 -0
  120. package/lib/components/useSignOut.js.map +1 -0
  121. package/lib/components/viewport.js +121 -0
  122. package/lib/components/viewport.js.map +1 -0
  123. package/lib/components/voiceDial.js +10 -0
  124. package/lib/components/voiceDial.js.map +1 -0
  125. package/lib/compute.js +157 -0
  126. package/lib/compute.js.map +1 -0
  127. package/lib/config/env-config.js +21 -0
  128. package/lib/config/env-config.js.map +1 -0
  129. package/lib/config/routes.js +15 -0
  130. package/lib/config/routes.js.map +1 -0
  131. package/lib/content.js +25 -0
  132. package/lib/content.js.map +1 -0
  133. package/lib/hooks/keyboardCover.js +39 -0
  134. package/lib/hooks/keyboardCover.js.map +1 -0
  135. package/lib/hooks/useKeyboard.js +121 -0
  136. package/lib/hooks/useKeyboard.js.map +1 -0
  137. package/lib/hooks/useReducedMotion.js +13 -0
  138. package/lib/hooks/useReducedMotion.js.map +1 -0
  139. package/lib/imessage/openMessages.js +25 -0
  140. package/lib/imessage/openMessages.js.map +1 -0
  141. package/lib/imessage/platform.js +12 -0
  142. package/lib/imessage/platform.js.map +1 -0
  143. package/lib/imessage/textLink.js +262 -0
  144. package/lib/imessage/textLink.js.map +1 -0
  145. package/lib/index.js +1 -0
  146. package/lib/index.js.map +1 -0
  147. package/lib/live/card.js +28 -0
  148. package/lib/live/card.js.map +1 -0
  149. package/lib/live/liveActivity.js +144 -0
  150. package/lib/live/liveActivity.js.map +1 -0
  151. package/lib/module.js +3 -0
  152. package/lib/module.js.map +1 -0
  153. package/lib/offer/BlackFridayOffer.js +378 -0
  154. package/lib/offer/BlackFridayOffer.js.map +1 -0
  155. package/lib/offer/blackFriday.js +78 -0
  156. package/lib/offer/blackFriday.js.map +1 -0
  157. package/lib/offer/parts.js +624 -0
  158. package/lib/offer/parts.js.map +1 -0
  159. package/lib/offer/state.js +63 -0
  160. package/lib/offer/state.js.map +1 -0
  161. package/lib/push/push.js +142 -0
  162. package/lib/push/push.js.map +1 -0
  163. package/lib/push/usePushNotifications.js +39 -0
  164. package/lib/push/usePushNotifications.js.map +1 -0
  165. package/lib/routes.json +175 -0
  166. package/lib/screens/Account/index.js +209 -0
  167. package/lib/screens/Account/index.js.map +1 -0
  168. package/lib/screens/Chat/index.js +710 -0
  169. package/lib/screens/Chat/index.js.map +1 -0
  170. package/lib/screens/Chores/index.js +18 -0
  171. package/lib/screens/Chores/index.js.map +1 -0
  172. package/lib/screens/Connectors/index.js +17 -0
  173. package/lib/screens/Connectors/index.js.map +1 -0
  174. package/lib/screens/History/index.js +380 -0
  175. package/lib/screens/History/index.js.map +1 -0
  176. package/lib/screens/Home/index.js +2711 -0
  177. package/lib/screens/Home/index.js.map +1 -0
  178. package/lib/screens/Home/media.js +25 -0
  179. package/lib/screens/Home/media.js.map +1 -0
  180. package/lib/screens/Welcome/index.js +1066 -0
  181. package/lib/screens/Welcome/index.js.map +1 -0
  182. package/lib/talk/talkToLucy.js +139 -0
  183. package/lib/talk/talkToLucy.js.map +1 -0
  184. package/lib/theme/colors.js +29 -0
  185. package/lib/theme/colors.js.map +1 -0
  186. package/lib/theme/fonts.js +17 -0
  187. package/lib/theme/fonts.js.map +1 -0
  188. package/lib/theme/muse.js +134 -0
  189. package/lib/theme/muse.js.map +1 -0
  190. package/lib/utils/links.js +54 -0
  191. package/lib/utils/links.js.map +1 -0
  192. package/lib/utils/yantraLinks.js +68 -0
  193. package/lib/utils/yantraLinks.js.map +1 -0
  194. package/lib/welcome/flow.js +375 -0
  195. package/lib/welcome/flow.js.map +1 -0
  196. package/lib/welcome/haptics.js +125 -0
  197. package/lib/welcome/haptics.js.map +1 -0
  198. package/lib/welcome/parts.js +1996 -0
  199. package/lib/welcome/parts.js.map +1 -0
  200. package/lib/welcome/powerOn.js +29 -0
  201. package/lib/welcome/powerOn.js.map +1 -0
  202. package/lib/welcome/seen.js +41 -0
  203. package/lib/welcome/seen.js.map +1 -0
  204. package/lib/welcome/sound.js +110 -0
  205. package/lib/welcome/sound.js.map +1 -0
  206. package/package.json +66 -5
  207. package/rollup.config.mjs +42 -0
  208. package/src/.claude-flow/data/pending-insights.jsonl +19 -0
  209. package/src/.claude-flow/sessions/session-1795013028422.json +14 -0
  210. package/src/__tests__/auth.test.ts +94 -0
  211. package/src/__tests__/blackFriday.test.ts +75 -0
  212. package/src/__tests__/cardTokens.test.ts +77 -0
  213. package/src/__tests__/chores.test.ts +179 -0
  214. package/src/__tests__/choresList.test.ts +100 -0
  215. package/src/__tests__/content.test.ts +54 -0
  216. package/src/__tests__/dictation.test.ts +186 -0
  217. package/src/__tests__/haptics.test.ts +202 -0
  218. package/src/__tests__/jobs.test.ts +130 -0
  219. package/src/__tests__/keyboardCover.test.ts +84 -0
  220. package/src/__tests__/liveCard.test.ts +39 -0
  221. package/src/__tests__/lockedPhone.test.ts +355 -0
  222. package/src/__tests__/lucyMotion.test.ts +34 -0
  223. package/src/__tests__/platform.test.ts +32 -0
  224. package/src/__tests__/powerOn.test.ts +62 -0
  225. package/src/__tests__/protocol.test.ts +125 -0
  226. package/src/__tests__/push.test.ts +111 -0
  227. package/src/__tests__/results.test.ts +256 -0
  228. package/src/__tests__/sound.test.ts +248 -0
  229. package/src/__tests__/talkToLucy.test.ts +205 -0
  230. package/src/__tests__/textLink.test.ts +91 -0
  231. package/src/__tests__/voiceDial.test.ts +53 -0
  232. package/src/__tests__/welcomeFlow.test.ts +157 -0
  233. package/src/__tests__/whereLucyWorks.test.ts +81 -0
  234. package/src/__tests__/yantraLinks.test.ts +96 -0
  235. package/src/assets/home/loop-day.jpg +0 -0
  236. package/src/assets/home/loop-day.mp4 +0 -0
  237. package/src/assets/home/loop-time-back.jpg +0 -0
  238. package/src/assets/home/loop-time-back.mp4 +0 -0
  239. package/src/assets/home/loop-where.jpg +0 -0
  240. package/src/assets/home/loop-where.mp4 +0 -0
  241. package/src/assets/home/reel-gym.jpg +0 -0
  242. package/src/assets/home/reel-gym.mp4 +0 -0
  243. package/src/assets/home/reel-internet.jpg +0 -0
  244. package/src/assets/home/reel-internet.mp4 +0 -0
  245. package/src/assets/icon.png +0 -0
  246. package/src/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  247. package/src/assets/lottie/lucy-mark-calendar.json +1827 -0
  248. package/src/assets/lottie/lucy-mark-call.json +1470 -0
  249. package/src/assets/lottie/lucy-mark-connect.json +2552 -0
  250. package/src/assets/lottie/lucy-mark-details.json +1735 -0
  251. package/src/assets/lottie/lucy-mark-email.json +1363 -0
  252. package/src/assets/lottie/lucy-mark-message.json +1154 -0
  253. package/src/assets/lottie/lucy-mark-search.json +1067 -0
  254. package/src/assets/lottie/lucy-mark-think.json +1253 -0
  255. package/src/assets/lottie/lucy-mark-write.json +1532 -0
  256. package/src/assets/lottie/time-back.json +16458 -0
  257. package/src/assets/lottie/where-lucy-works-chat.json +6170 -0
  258. package/src/assets/lottie/where-lucy-works-cloud.json +10066 -0
  259. package/src/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  260. package/src/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  261. package/src/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  262. package/src/assets/sounds/hours-back.m4a +0 -0
  263. package/src/assets/sounds/meet-lucy.m4a +0 -0
  264. package/src/assets/sounds/power-on.m4a +0 -0
  265. package/src/assets/sounds/wind-back.m4a +0 -0
  266. package/src/assets/sounds/youre-in.m4a +0 -0
  267. package/src/chat/.claude-flow/data/pending-insights.jsonl +1 -0
  268. package/src/chat/agent.ts +376 -0
  269. package/src/chat/appFront.ts +39 -0
  270. package/src/chat/auth.ts +433 -0
  271. package/src/chat/chores.ts +394 -0
  272. package/src/chat/connectors.ts +65 -0
  273. package/src/chat/jobs.ts +228 -0
  274. package/src/chat/lucyMotion.ts +33 -0
  275. package/src/chat/protocol.ts +192 -0
  276. package/src/chat/results.ts +224 -0
  277. package/src/chat/store.ts +87 -0
  278. package/src/chat/useDictation.ts +201 -0
  279. package/src/chat/useLucyChat.ts +458 -0
  280. package/src/chat/useMyComputer.ts +41 -0
  281. package/src/chat/whereLucyWorks.ts +97 -0
  282. package/src/chat/workspace.ts +127 -0
  283. package/src/components/.claude-flow/data/pending-insights.jsonl +3 -0
  284. package/src/components/AreaShot.tsx +239 -0
  285. package/src/components/Backdrops.tsx +323 -0
  286. package/src/components/BottomSheet.tsx +96 -0
  287. package/src/components/ChatSheets.tsx +565 -0
  288. package/src/components/ConnectorLogo.tsx +116 -0
  289. package/src/components/CustomDrawer.tsx +526 -0
  290. package/src/components/IdeasPane.tsx +318 -0
  291. package/src/components/ImessageSheet.tsx +280 -0
  292. package/src/components/KeyboardAvoider.tsx +45 -0
  293. package/src/components/Logo.tsx +97 -0
  294. package/src/components/LucyWorking.tsx +122 -0
  295. package/src/components/Markdown.tsx +219 -0
  296. package/src/components/Media.tsx +173 -0
  297. package/src/components/MessagesAppIcon.tsx +51 -0
  298. package/src/components/MicButton.tsx +92 -0
  299. package/src/components/ResultCards.tsx +1067 -0
  300. package/src/components/SignInPrompt.tsx +182 -0
  301. package/src/components/SignedOut.tsx +47 -0
  302. package/src/components/TalkToLucyHero.tsx +540 -0
  303. package/src/components/TalkToLucySheet.tsx +208 -0
  304. package/src/components/VoiceOrb.tsx +364 -0
  305. package/src/components/WhereLucyWorks.tsx +261 -0
  306. package/src/components/WorkspaceSection.tsx +307 -0
  307. package/src/components/YantraMark.tsx +30 -0
  308. package/src/components/drawerHeader.tsx +46 -0
  309. package/src/components/kit.tsx +309 -0
  310. package/src/components/lottieInstalled.ts +7 -0
  311. package/src/components/ui.tsx +700 -0
  312. package/src/components/useSignOut.ts +21 -0
  313. package/src/components/viewport.tsx +166 -0
  314. package/src/components/voiceDial.ts +45 -0
  315. package/src/compute.ts +168 -0
  316. package/src/config/env-config.ts +37 -0
  317. package/src/config/routes.ts +28 -0
  318. package/src/content.ts +217 -0
  319. package/src/hooks/keyboardCover.ts +70 -0
  320. package/src/hooks/useKeyboard.ts +135 -0
  321. package/src/hooks/useReducedMotion.ts +19 -0
  322. package/src/imessage/openMessages.ts +53 -0
  323. package/src/imessage/platform.ts +32 -0
  324. package/src/imessage/textLink.ts +307 -0
  325. package/src/index.ts +24 -0
  326. package/src/live/card.ts +62 -0
  327. package/src/live/liveActivity.ts +192 -0
  328. package/src/module.ts +8 -0
  329. package/src/offer/BlackFridayOffer.tsx +394 -0
  330. package/src/offer/blackFriday.ts +109 -0
  331. package/src/offer/parts.tsx +650 -0
  332. package/src/offer/state.ts +78 -0
  333. package/src/push/push.ts +171 -0
  334. package/src/push/usePushNotifications.ts +47 -0
  335. package/src/screens/Account/index.tsx +310 -0
  336. package/src/screens/Chat/.claude-flow/data/pending-insights.jsonl +4 -0
  337. package/src/screens/Chat/index.tsx +891 -0
  338. package/src/screens/Chores/index.tsx +35 -0
  339. package/src/screens/Connectors/index.tsx +35 -0
  340. package/src/screens/History/index.tsx +346 -0
  341. package/src/screens/Home/index.tsx +2773 -0
  342. package/src/screens/Home/media.ts +31 -0
  343. package/src/screens/Welcome/index.tsx +1182 -0
  344. package/src/talk/talkToLucy.ts +187 -0
  345. package/src/theme/colors.ts +38 -0
  346. package/src/theme/fonts.ts +30 -0
  347. package/src/theme/muse.ts +86 -0
  348. package/src/utils/links.ts +84 -0
  349. package/src/utils/yantraLinks.ts +94 -0
  350. package/src/welcome/flow.ts +418 -0
  351. package/src/welcome/haptics.ts +179 -0
  352. package/src/welcome/parts.tsx +2160 -0
  353. package/src/welcome/powerOn.ts +84 -0
  354. package/src/welcome/seen.ts +68 -0
  355. package/src/welcome/sound.ts +173 -0
  356. package/tools/lottie/chat.motion +0 -0
  357. package/tools/lottie/cloud.motion +0 -0
  358. package/tools/lottie/generate.mjs +1209 -0
  359. package/tools/lottie/inter-glyphs.json +4416 -0
  360. package/tools/lottie/lucy-mark-calendar.motion +0 -0
  361. package/tools/lottie/lucy-mark-call.motion +0 -0
  362. package/tools/lottie/lucy-mark-connect.motion +0 -0
  363. package/tools/lottie/lucy-mark-details.motion +0 -0
  364. package/tools/lottie/lucy-mark-email.motion +0 -0
  365. package/tools/lottie/lucy-mark-message.motion +0 -0
  366. package/tools/lottie/lucy-mark-search.motion +0 -0
  367. package/tools/lottie/lucy-mark-think.motion +0 -0
  368. package/tools/lottie/lucy-mark-write.motion +0 -0
  369. package/tools/lottie/mark.json +1 -0
  370. package/tools/lottie/mine-none.motion +0 -0
  371. package/tools/lottie/mine-offline.motion +0 -0
  372. package/tools/lottie/mine-online.motion +0 -0
  373. package/tools/lottie/time-back.mjs +604 -0
  374. package/tools/sounds/render.mjs +730 -0
  375. package/tsconfig.json +17 -0
  376. package/README.md +0 -3
@@ -0,0 +1,2711 @@
1
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useRef,useState,useEffect,useCallback,useLayoutEffect}from'react';import {useWindowDimensions,Animated,Platform,View,StyleSheet,Pressable,ScrollView,Text,Easing,TextInput,LayoutAnimation,UIManager}from'react-native';import {useNavigation,useRoute,useIsFocused,DrawerActions}from'@react-navigation/native';import {useHeaderHeight}from'@react-navigation/elements';import Svg,{Defs,RadialGradient,Stop,Circle,LinearGradient,Rect,Line,Path}from'react-native-svg';import {Ionicons}from'@expo/vector-icons';import {MINUTES,HERO_CHORES,STRIP_CHORES,STEPS,VIDEO_NOTE,AREAS,HOUSEWORK_MIN,FAQS,FOOTNOTE,CALL_STEPS,TEXT_THREAD,TYPED_CHORES,TEXT_STEPS}from'@adminide-stack/clock-tik-browser/lib/pages/Home/content.js';import {Mark}from'../../components/Logo.js';import LottieView from'lottie-react-native';import {LucyWorking}from'../../components/LucyWorking.js';import {lottieInstalled}from'../../components/lottieInstalled.js';import {motionFor}from'../../chat/lucyMotion.js';import {AreaShot}from'../../components/AreaShot.js';import {Aurora,DarkFill,SoftFill,FinalFill}from'../../components/Backdrops.js';import {YantraMark}from'../../components/YantraMark.js';import {Reel}from'../../components/Media.js';import {useSignInGate}from'../../components/SignInPrompt.js';import {ImessageSheet}from'../../components/ImessageSheet.js';import {MessagesAppIcon}from'../../components/MessagesAppIcon.js';import {FloatingButton,Button}from'../../components/ui.js';import {TEXT_LUCY,MESSAGES_APP,TEXT_FROM,textSteps}from'../../imessage/platform.js';import {useIsUserAuthenticated,AuthMobileNavigationRoutesEnum}from'@adminide-stack/user-auth0-client';import {useReducedMotion}from'../../hooks/useReducedMotion.js';import {useDictation}from'../../chat/useDictation.js';import {useChoreCount}from'../../components/ChatSheets.js';import {MicButton,dictationProblem}from'../../components/MicButton.js';import {useKeyboardCover}from'../../hooks/useKeyboard.js';import {yantraAppUrl,PROMPT_MAX}from'../../utils/links.js';import {openYantraUrl}from'../../utils/yantraLinks.js';import {CLOCKBOOK_ROUTES,drawerRoute}from'../../config/routes.js';import {watchTalkRequests,listeningHome}from'../../talk/talkToLucy.js';import {usePushNotifications}from'../../push/usePushNotifications.js';import {useWelcomeSeen}from'../../welcome/seen.js';import {offerShows,BLACK_FRIDAY}from'../../offer/blackFriday.js';import {useOfferSeen,markOffer,resetOffer}from'../../offer/state.js';import {BlackFridayOffer,OfferSheet}from'../../offer/BlackFridayOffer.js';import {useNow,OfferChip}from'../../offer/parts.js';import {click,release}from'../../welcome/haptics.js';import {PAD,ui,radius,type,lift,float,field}from'../../theme/muse.js';import {REELS}from'./media.js';import {useViewportController,ViewportProvider,useInView}from'../../components/viewport.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
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ if (Platform.OS === "android" && UIManager.setLayoutAnimationEnabledExperimental) {
33
+ UIManager.setLayoutAnimationEnabledExperimental(true);
34
+ }
35
+ const STATS = [{
36
+ to: 38,
37
+ decimals: 0,
38
+ unit: "min",
39
+ label: "every day"
40
+ }, {
41
+ to: 4.4,
42
+ decimals: 1,
43
+ unit: "hrs",
44
+ label: "every week"
45
+ }, {
46
+ to: 229,
47
+ decimals: 0,
48
+ unit: "hrs",
49
+ label: "every year"
50
+ }];
51
+ const COUNT_MS = 1400;
52
+ const STEP_ICONS = ["chatbubble-ellipses-outline", "call-outline", "checkmark-done-outline"];
53
+ const CHORE_ICONS = {
54
+ schedule: "calendar-outline",
55
+ call: "call-outline",
56
+ bill: "receipt-outline",
57
+ meals: "restaurant-outline",
58
+ dentist: "happy-outline",
59
+ travel: "airplane-outline",
60
+ bank: "card-outline",
61
+ return: "cube-outline"
62
+ };
63
+ function choreIcon(c) {
64
+ if (c.icon && CHORE_ICONS[c.icon])
65
+ return CHORE_ICONS[c.icon];
66
+ const l = c.label.toLowerCase();
67
+ if (l.includes("gym") || l.includes("cancel"))
68
+ return "close-circle-outline";
69
+ if (l.includes("call"))
70
+ return "call-outline";
71
+ if (l.includes("bill") || l.includes("internet"))
72
+ return "receipt-outline";
73
+ if (l.includes("dinner") || l.includes("grocer"))
74
+ return "restaurant-outline";
75
+ return "sparkles-outline";
76
+ }
77
+ function Eyebrow({
78
+ children,
79
+ icon,
80
+ center,
81
+ dark
82
+ }) {
83
+ return /* @__PURE__ */ jsxs(View, { style: [s.eyebrowRow, center && {
84
+ justifyContent: "center"
85
+ }], children: [
86
+ icon,
87
+ /* @__PURE__ */ jsx(Text, { style: [s.eyebrow, dark && s.eyebrowDark], children })
88
+ ] });
89
+ }
90
+ function Heading({
91
+ pre,
92
+ em,
93
+ post,
94
+ large,
95
+ center,
96
+ dark,
97
+ style
98
+ }) {
99
+ return /* @__PURE__ */ jsxs(Text, { accessibilityRole: "header", style: [large ? s.headingLarge : s.heading, center && {
100
+ textAlign: "center"
101
+ }, dark && s.headingDark, style], children: [
102
+ pre,
103
+ /* @__PURE__ */ jsx(Text, { style: [s.headingEm, dark && s.headingEmDark], children: em }),
104
+ post != null ? post : ""
105
+ ] });
106
+ }
107
+ function IdeaCard({
108
+ chore,
109
+ onPress
110
+ }) {
111
+ return /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", accessibilityLabel: chore.label, accessibilityHint: "Hands this chore to Lucy", onPress: () => onPress(chore), style: ({
112
+ pressed
113
+ }) => [s.card, pressed && {
114
+ transform: [{
115
+ scale: 0.97
116
+ }],
117
+ backgroundColor: ui.fill
118
+ }], children: [
119
+ /* @__PURE__ */ jsxs(View, { style: s.cardHead, children: [
120
+ /* @__PURE__ */ jsx(View, { style: s.cardIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: choreIcon(chore), size: 18, color: ui.accentText }) }),
121
+ /* @__PURE__ */ jsx(Text, { style: s.cardTitle, numberOfLines: 1, children: chore.label }),
122
+ /* @__PURE__ */ jsx(View, { style: s.cardGo, children: /* @__PURE__ */ jsx(Ionicons, { name: "arrow-up", size: 14, color: ui.accentText }) })
123
+ ] }),
124
+ /* @__PURE__ */ jsx(Text, { style: s.cardBody, numberOfLines: 2, children: chore.prompt })
125
+ ] });
126
+ }
127
+ function EdgeFade({
128
+ side
129
+ }) {
130
+ const id = `fade-${side}`;
131
+ return /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [s.fade, side === "left" ? {
132
+ left: 0
133
+ } : {
134
+ right: 0
135
+ }], children: /* @__PURE__ */ jsxs(Svg, { width: "100%", height: "100%", children: [
136
+ /* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(LinearGradient, { id, x1: "0", y1: "0", x2: "1", y2: "0", children: [
137
+ /* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: ui.bg, stopOpacity: side === "left" ? 1 : 0 }),
138
+ /* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: ui.bg, stopOpacity: side === "left" ? 0 : 1 })
139
+ ] }) }),
140
+ /* @__PURE__ */ jsx(Rect, { width: "100%", height: "100%", fill: `url(#${id})` })
141
+ ] }) });
142
+ }
143
+ function ChoreChip({
144
+ chore,
145
+ onPress,
146
+ small
147
+ }) {
148
+ return /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", accessibilityHint: "Hands this chore to Lucy", onPress: () => onPress(chore), style: ({
149
+ pressed
150
+ }) => [s.chip, small && s.chipSmall, pressed && s.chipPressed], children: [
151
+ /* @__PURE__ */ jsx(Ionicons, { name: choreIcon(chore), size: small ? 13 : 15, color: ui.accentText }),
152
+ /* @__PURE__ */ jsx(Text, { style: [s.chipText, small && s.chipTextSmall], children: chore.label })
153
+ ] });
154
+ }
155
+ const TYPE_START_MS = 700;
156
+ const TYPE_MS = 34;
157
+ const TYPE_JITTER_MS = 36;
158
+ const TYPE_HOLD_MS = 1800;
159
+ const TYPE_DELETE_MS = 16;
160
+ const TYPE_GAP_MS = 420;
161
+ function useTypewriter(phrases, active) {
162
+ const [text, setText] = useState(null);
163
+ const phraseRef = useRef(0);
164
+ useEffect(() => {
165
+ if (!active || !phrases.length) {
166
+ setText(null);
167
+ return void 0;
168
+ }
169
+ let shown = 0;
170
+ let deleting = false;
171
+ let timer;
172
+ const step = () => {
173
+ const full = phrases[phraseRef.current % phrases.length];
174
+ if (!deleting) {
175
+ shown += 1;
176
+ setText(full.slice(0, shown));
177
+ if (shown >= full.length) {
178
+ deleting = true;
179
+ timer = setTimeout(step, TYPE_HOLD_MS);
180
+ } else
181
+ timer = setTimeout(step, TYPE_MS + Math.random() * TYPE_JITTER_MS);
182
+ return;
183
+ }
184
+ shown = Math.max(0, shown - 2);
185
+ setText(full.slice(0, shown));
186
+ if (shown > 0) {
187
+ timer = setTimeout(step, TYPE_DELETE_MS);
188
+ return;
189
+ }
190
+ deleting = false;
191
+ phraseRef.current += 1;
192
+ timer = setTimeout(step, TYPE_GAP_MS);
193
+ };
194
+ setText("");
195
+ timer = setTimeout(step, TYPE_START_MS);
196
+ return () => clearTimeout(timer);
197
+ }, [phrases, active]);
198
+ return text;
199
+ }
200
+ function Caret() {
201
+ const [on, setOn] = useState(true);
202
+ useEffect(() => {
203
+ const id = setInterval(() => setOn((v) => !v), 525);
204
+ return () => clearInterval(id);
205
+ }, []);
206
+ return /* @__PURE__ */ jsx(Text, { style: [s.caretText, !on && {
207
+ color: "transparent"
208
+ }], children: "|" });
209
+ }
210
+ function TimeBackMark({
211
+ size
212
+ }) {
213
+ return /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: /* @__PURE__ */ jsx(LucyWorking, { size, motion: "think" }) });
214
+ }
215
+ function HaloMark() {
216
+ const reduced = useReducedMotion();
217
+ const t = useRef(new Animated.Value(0)).current;
218
+ useEffect(() => {
219
+ if (reduced)
220
+ return void 0;
221
+ const loop = Animated.loop(Animated.sequence([Animated.timing(t, {
222
+ toValue: 1,
223
+ duration: 7e3,
224
+ easing: Easing.inOut(Easing.sin),
225
+ useNativeDriver: true
226
+ }), Animated.timing(t, {
227
+ toValue: 0,
228
+ duration: 7e3,
229
+ easing: Easing.inOut(Easing.sin),
230
+ useNativeDriver: true
231
+ })]));
232
+ loop.start();
233
+ return () => loop.stop();
234
+ }, [reduced, t]);
235
+ const scale = t.interpolate({
236
+ inputRange: [0, 1],
237
+ outputRange: [0.94, 1.06]
238
+ });
239
+ const rotate = t.interpolate({
240
+ inputRange: [0, 1],
241
+ outputRange: ["0deg", "180deg"]
242
+ });
243
+ return /* @__PURE__ */ jsxs(View, { style: s.halo, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: [
244
+ /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [s.haloGlow, {
245
+ transform: [{
246
+ scale
247
+ }, {
248
+ rotate
249
+ }]
250
+ }], children: /* @__PURE__ */ jsxs(Svg, { width: "100%", height: "100%", children: [
251
+ /* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: "halo", cx: "45%", cy: "40%", r: "50%", children: [
252
+ /* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FF7A2E", stopOpacity: "0.5" }),
253
+ /* @__PURE__ */ jsx(Stop, { offset: "0.55", stopColor: "#FFB36B", stopOpacity: "0.28" }),
254
+ /* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#FF9A8A", stopOpacity: "0" })
255
+ ] }) }),
256
+ /* @__PURE__ */ jsx(Circle, { cx: "50%", cy: "50%", r: "50%", fill: "url(#halo)" })
257
+ ] }) }),
258
+ /* @__PURE__ */ jsx(View, { style: s.haloTile, children: /* @__PURE__ */ jsx(TimeBackMark, { size: 38 }) })
259
+ ] });
260
+ }
261
+ function Rise({
262
+ children,
263
+ delay = 0,
264
+ style
265
+ }) {
266
+ const reduced = useReducedMotion();
267
+ const t = useRef(new Animated.Value(reduced ? 1 : 0)).current;
268
+ useEffect(() => {
269
+ if (reduced) {
270
+ t.setValue(1);
271
+ return;
272
+ }
273
+ Animated.timing(t, {
274
+ toValue: 1,
275
+ duration: 800,
276
+ delay,
277
+ easing: Easing.bezier(0.16, 1, 0.3, 1),
278
+ useNativeDriver: true
279
+ }).start();
280
+ }, [reduced, delay, t]);
281
+ const translateY = t.interpolate({
282
+ inputRange: [0, 1],
283
+ outputRange: [14, 0]
284
+ });
285
+ return /* @__PURE__ */ jsx(Animated.View, { style: [style, {
286
+ opacity: t,
287
+ transform: [{
288
+ translateY
289
+ }]
290
+ }], children });
291
+ }
292
+ const KEYBOARD_GAP = 12;
293
+ const DIAL = 184;
294
+ const DIAL_TICKS = Array.from({
295
+ length: 60
296
+ }, (_, i) => {
297
+ const major = i % 5 === 0;
298
+ const angle = i / 60 * Math.PI * 2;
299
+ const r1 = DIAL / 2 - 2;
300
+ const r2 = r1 - (major ? 11 : 6);
301
+ const c = DIAL / 2;
302
+ return {
303
+ key: i,
304
+ x1: c + r1 * Math.sin(angle),
305
+ y1: c - r1 * Math.cos(angle),
306
+ x2: c + r2 * Math.sin(angle),
307
+ y2: c - r2 * Math.cos(angle),
308
+ major
309
+ };
310
+ });
311
+ const SPHERE = 96;
312
+ function BigMic({
313
+ listening,
314
+ onPress
315
+ }) {
316
+ const reduced = useReducedMotion();
317
+ const sweep = useRef(new Animated.Value(0)).current;
318
+ const pulse = useRef(new Animated.Value(0)).current;
319
+ useEffect(() => {
320
+ if (reduced) {
321
+ sweep.setValue(0.3);
322
+ return void 0;
323
+ }
324
+ sweep.setValue(0);
325
+ const loop = Animated.loop(Animated.timing(sweep, {
326
+ toValue: 1,
327
+ duration: listening ? 3e3 : 6e4,
328
+ easing: Easing.linear,
329
+ useNativeDriver: true
330
+ }));
331
+ loop.start();
332
+ return () => loop.stop();
333
+ }, [reduced, listening, sweep]);
334
+ useEffect(() => {
335
+ if (!listening || reduced) {
336
+ pulse.setValue(0);
337
+ return void 0;
338
+ }
339
+ const loop = Animated.loop(Animated.timing(pulse, {
340
+ toValue: 1,
341
+ duration: 1200,
342
+ easing: Easing.out(Easing.quad),
343
+ useNativeDriver: true
344
+ }));
345
+ loop.start();
346
+ return () => loop.stop();
347
+ }, [listening, reduced, pulse]);
348
+ return /* @__PURE__ */ jsxs(View, { style: s.bigMic, children: [
349
+ /* @__PURE__ */ jsxs(View, { style: s.dial, children: [
350
+ /* @__PURE__ */ jsx(Svg, { width: DIAL, height: DIAL, style: StyleSheet.absoluteFill, pointerEvents: "none", children: DIAL_TICKS.map((t) => /* @__PURE__ */ jsx(Line, { x1: t.x1, y1: t.y1, x2: t.x2, y2: t.y2, stroke: t.major ? "rgba(26,23,20,0.38)" : "rgba(26,23,20,0.16)", strokeWidth: t.major ? 2 : 1.2, strokeLinecap: "round" }, t.key)) }),
351
+ /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, {
352
+ transform: [{
353
+ rotate: sweep.interpolate({
354
+ inputRange: [0, 1],
355
+ outputRange: ["0deg", "360deg"]
356
+ })
357
+ }]
358
+ }], children: /* @__PURE__ */ jsx(Svg, { width: DIAL, height: DIAL, children: /* @__PURE__ */ jsx(Line, { x1: DIAL / 2, y1: 2, x2: DIAL / 2, y2: 16, stroke: ui.accent, strokeWidth: 2.5, strokeLinecap: "round" }) }) }),
359
+ listening ? /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [s.sphereRing, {
360
+ opacity: pulse.interpolate({
361
+ inputRange: [0, 1],
362
+ outputRange: [0.4, 0]
363
+ }),
364
+ transform: [{
365
+ scale: pulse.interpolate({
366
+ inputRange: [0, 1],
367
+ outputRange: [1, 1.5]
368
+ })
369
+ }]
370
+ }] }) : null,
371
+ /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", accessibilityLabel: listening ? "Stop listening" : "Tell Lucy by voice", accessibilityState: {
372
+ selected: listening
373
+ }, onPress: () => {
374
+ (listening ? release : click)();
375
+ onPress();
376
+ }, style: ({
377
+ pressed
378
+ }) => [s.sphere, pressed && {
379
+ transform: [{
380
+ scale: 0.96
381
+ }]
382
+ }], children: [
383
+ /* @__PURE__ */ jsxs(Svg, { width: SPHERE, height: SPHERE, style: StyleSheet.absoluteFill, children: [
384
+ /* @__PURE__ */ jsx(Defs, { children: /* @__PURE__ */ jsxs(RadialGradient, { id: "micSphere", cx: "38%", cy: "30%", r: "75%", children: [
385
+ /* @__PURE__ */ jsx(Stop, { offset: "0", stopColor: "#FFB383" }),
386
+ /* @__PURE__ */ jsx(Stop, { offset: "0.45", stopColor: "#FF6A1A" }),
387
+ /* @__PURE__ */ jsx(Stop, { offset: "1", stopColor: "#D94600" })
388
+ ] }) }),
389
+ /* @__PURE__ */ jsx(Circle, { cx: SPHERE / 2, cy: SPHERE / 2, r: SPHERE / 2, fill: "url(#micSphere)" })
390
+ ] }),
391
+ /* @__PURE__ */ jsx(Ionicons, { name: listening ? "stop" : "mic-outline", size: listening ? 30 : 36, color: ui.surface })
392
+ ] })
393
+ ] }),
394
+ /* @__PURE__ */ jsx(Text, { style: [s.bigMicLabel, listening && {
395
+ color: ui.accentText
396
+ }], children: listening ? "Listening\u2026 tap to stop" : "Tap and tell Lucy" }),
397
+ /* @__PURE__ */ jsx(Text, { style: s.bigMicSub, children: listening ? "Your words land in the box below" : "Or type it in the box below" })
398
+ ] });
399
+ }
400
+ const LISTEN_FRESH_MS = 1e4;
401
+ function Composer({
402
+ onSubmit,
403
+ large,
404
+ onFocusBox,
405
+ bigMic,
406
+ between,
407
+ listenAt
408
+ }) {
409
+ const [text, setText] = useState("");
410
+ const [focused, setFocused] = useState(false);
411
+ const ready = text.trim().length > 0;
412
+ const reduced = useReducedMotion();
413
+ const box = useRef(null);
414
+ const onScreen = useInView(box, {
415
+ minFraction: 0.5
416
+ }) !== false;
417
+ const input = useRef(null);
418
+ const [keyboardHint, setKeyboardHint] = useState(false);
419
+ const dictation = useDictation({
420
+ onText: setText,
421
+ onProblem: (problem, detail) => {
422
+ var _a;
423
+ if (problem === "unavailable") {
424
+ setKeyboardHint(true);
425
+ (_a = input.current) == null ? void 0 : _a.focus();
426
+ return;
427
+ }
428
+ dictationProblem(problem, detail);
429
+ }
430
+ });
431
+ const ghost = useTypewriter(TYPED_CHORES, !bigMic && !reduced && onScreen && !focused && !text && !dictation.listening);
432
+ const submit = () => {
433
+ if (!ready)
434
+ return;
435
+ if (dictation.listening)
436
+ dictation.cancel();
437
+ onSubmit(text.trim());
438
+ setText("");
439
+ };
440
+ const mic = () => dictation.listening ? dictation.stop() : dictation.start(text);
441
+ useEffect(() => {
442
+ if (!listenAt || Date.now() - listenAt > LISTEN_FRESH_MS || dictation.listening)
443
+ return;
444
+ click();
445
+ dictation.start(text);
446
+ }, [listenAt]);
447
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
448
+ bigMic ? /* @__PURE__ */ jsxs(Fragment, { children: [
449
+ /* @__PURE__ */ jsx(View, { style: s.stageMiddle, children: /* @__PURE__ */ jsx(BigMic, { listening: dictation.listening, onPress: mic }) }),
450
+ between,
451
+ /* @__PURE__ */ jsxs(View, { ref: box, collapsable: false, style: [bigMic ? s.typeBox : s.typeLine, focused && s.composerFocused, dictation.listening && s.pillListening], children: [
452
+ /* @__PURE__ */ jsx(TextInput, { ref: input, value: text, onChangeText: setText, onFocus: () => {
453
+ setFocused(true);
454
+ onFocusBox == null ? void 0 : onFocusBox(box.current);
455
+ }, onBlur: () => {
456
+ setFocused(false);
457
+ setKeyboardHint(false);
458
+ onFocusBox == null ? void 0 : onFocusBox(null);
459
+ }, maxLength: PROMPT_MAX, placeholder: dictation.listening ? "Listening\u2026" : "What should Lucy take off your plate?", placeholderTextColor: dictation.listening ? ui.accentText : ui.faint, style: bigMic ? s.typeBoxInput : s.pillInput, multiline: true, accessibilityLabel: "A chore to hand over", returnKeyType: "send", submitBehavior: "blurAndSubmit", onSubmitEditing: submit }),
460
+ ready ? /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: "Hand it over", onPress: submit, hitSlop: 8, style: ({
461
+ pressed
462
+ }) => [s.send, {
463
+ backgroundColor: pressed ? ui.accentPressed : ui.accent
464
+ }], children: /* @__PURE__ */ jsx(Ionicons, { name: "arrow-up", size: 19, color: ui.surface }) }) : null
465
+ ] }),
466
+ keyboardHint ? /* @__PURE__ */ jsx(Text, { style: s.pillHint, children: "Tap the mic on your keyboard to speak" }) : null
467
+ ] }) : null,
468
+ bigMic ? null : /* @__PURE__ */ jsxs(View, { ref: box, collapsable: false, style: [s.composer, focused && s.composerFocused], children: [
469
+ /* @__PURE__ */ jsxs(View, { children: [
470
+ ghost !== null ? /* @__PURE__ */ jsxs(Text, { style: [s.ghost, s.ghostBox], pointerEvents: "none", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: [
471
+ ghost,
472
+ /* @__PURE__ */ jsx(Caret, {})
473
+ ] }) : null,
474
+ /* @__PURE__ */ jsx(TextInput, { ref: input, value: text, onChangeText: setText, onFocus: () => {
475
+ setFocused(true);
476
+ onFocusBox == null ? void 0 : onFocusBox(box.current);
477
+ }, onBlur: () => {
478
+ setFocused(false);
479
+ setKeyboardHint(false);
480
+ onFocusBox == null ? void 0 : onFocusBox(null);
481
+ }, maxLength: PROMPT_MAX, placeholder: dictation.listening ? "Listening\u2026" : ghost !== null ? "" : "What should Lucy take off your plate?", placeholderTextColor: dictation.listening ? ui.accentText : ui.faint, style: [s.composerInput, large && {
482
+ minHeight: 64
483
+ }], multiline: true, accessibilityLabel: "A chore to hand over", returnKeyType: "send", submitBehavior: "blurAndSubmit", onSubmitEditing: submit })
484
+ ] }),
485
+ /* @__PURE__ */ jsxs(View, { style: s.composerRow, children: [
486
+ /* @__PURE__ */ jsx(Ionicons, { name: keyboardHint ? "mic-outline" : "call-outline", size: 14, color: ui.accentText }),
487
+ /* @__PURE__ */ jsx(Text, { style: [s.composerHint, keyboardHint && {
488
+ color: ui.accentText
489
+ }], children: keyboardHint ? "Tap the mic on your keyboard to speak" : "Lucy calls, books and keeps track" }),
490
+ !bigMic && (!ready || dictation.listening) ? /* @__PURE__ */ jsx(MicButton, { listening: dictation.listening, onPress: mic, size: 36 }) : null,
491
+ ready ? /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: "Hand it over", onPress: submit, hitSlop: 8, style: ({
492
+ pressed
493
+ }) => [s.send, {
494
+ backgroundColor: pressed ? ui.accentPressed : ui.accent
495
+ }], children: /* @__PURE__ */ jsx(Ionicons, { name: "arrow-up", size: 19, color: ui.surface }) }) : null
496
+ ] })
497
+ ] })
498
+ ] });
499
+ }
500
+ function ImessagePill({
501
+ onPress
502
+ }) {
503
+ return /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", onPress, style: ({
504
+ pressed
505
+ }) => [s.pill, pressed && s.chipPressed], children: [
506
+ /* @__PURE__ */ jsx(MessagesAppIcon, { size: 22 }),
507
+ /* @__PURE__ */ jsx(Text, { style: s.pillText, children: TEXT_LUCY })
508
+ ] });
509
+ }
510
+ function Trust({
511
+ children
512
+ }) {
513
+ return /* @__PURE__ */ jsxs(View, { style: s.trust, children: [
514
+ /* @__PURE__ */ jsx(Ionicons, { name: "shield-checkmark-outline", size: 15, color: ui.ok }),
515
+ /* @__PURE__ */ jsx(Text, { style: s.trustText, children })
516
+ ] });
517
+ }
518
+ function Marquee({
519
+ chores,
520
+ onChore,
521
+ reverse
522
+ }) {
523
+ const reduced = useReducedMotion();
524
+ const [width, setWidth] = useState(0);
525
+ const x = useRef(new Animated.Value(0)).current;
526
+ const box = useRef(null);
527
+ const visible = useInView(box, {
528
+ minFraction: 0.01
529
+ }) !== false;
530
+ useEffect(() => {
531
+ if (reduced || !width || !visible)
532
+ return void 0;
533
+ x.setValue(reverse ? -width : 0);
534
+ const loop = Animated.loop(Animated.timing(x, {
535
+ toValue: reverse ? 0 : -width,
536
+ duration: width * 32,
537
+ easing: Easing.linear,
538
+ useNativeDriver: true
539
+ }));
540
+ loop.start();
541
+ return () => loop.stop();
542
+ }, [reduced, width, reverse, x, visible]);
543
+ const row = (copy) => /* @__PURE__ */ jsx(View, { style: s.marqueeRow, onLayout: copy === 0 ? (e) => setWidth(e.nativeEvent.layout.width) : void 0, accessibilityElementsHidden: copy > 0, importantForAccessibility: copy > 0 ? "no-hide-descendants" : "auto", children: chores.map((c) => /* @__PURE__ */ jsx(ChoreChip, { chore: c, onPress: onChore, small: true }, `${copy}-${c.label}`)) });
544
+ if (reduced) {
545
+ return /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: {
546
+ paddingHorizontal: 20
547
+ }, children: row(0) });
548
+ }
549
+ return /* @__PURE__ */ jsx(View, { ref: box, collapsable: false, style: s.marquee, children: /* @__PURE__ */ jsxs(Animated.View, { style: {
550
+ flexDirection: "row",
551
+ transform: [{
552
+ translateX: x
553
+ }]
554
+ }, children: [
555
+ row(0),
556
+ row(1)
557
+ ] }) });
558
+ }
559
+ const CALL_STEP_MS = 1500;
560
+ const CALL_HOLD_MS = 3400;
561
+ function useSequence(length, active, stepMs, holdMs) {
562
+ const [done, setDone] = useState(length);
563
+ useEffect(() => {
564
+ if (!active) {
565
+ setDone(length);
566
+ return void 0;
567
+ }
568
+ let n = 0;
569
+ let timer;
570
+ const next = () => {
571
+ n = n >= length ? 0 : n + 1;
572
+ setDone(n);
573
+ timer = setTimeout(next, n >= length ? holdMs : stepMs);
574
+ };
575
+ setDone(0);
576
+ timer = setTimeout(next, stepMs);
577
+ return () => clearTimeout(timer);
578
+ }, [active, length, stepMs, holdMs]);
579
+ return done;
580
+ }
581
+ function useLoop(running, duration) {
582
+ const t = useRef(new Animated.Value(0)).current;
583
+ useEffect(() => {
584
+ if (!running) {
585
+ t.setValue(0);
586
+ return void 0;
587
+ }
588
+ const loop = Animated.loop(Animated.timing(t, {
589
+ toValue: 1,
590
+ duration,
591
+ easing: Easing.linear,
592
+ useNativeDriver: true
593
+ }));
594
+ loop.start();
595
+ return () => loop.stop();
596
+ }, [running, duration, t]);
597
+ return t;
598
+ }
599
+ function CallDot({
600
+ state
601
+ }) {
602
+ const spin = useLoop(state === "now", 800);
603
+ if (state === "done") {
604
+ return /* @__PURE__ */ jsx(View, { style: [s.callDot, {
605
+ backgroundColor: CALL_GREEN,
606
+ borderColor: CALL_GREEN
607
+ }], children: /* @__PURE__ */ jsx(Ionicons, { name: "checkmark", size: 13, color: ui.surface }) });
608
+ }
609
+ if (state === "now") {
610
+ return /* @__PURE__ */ jsx(Animated.View, { style: [s.callDot, {
611
+ borderColor: ui.accent,
612
+ borderTopColor: "transparent",
613
+ transform: [{
614
+ rotate: spin.interpolate({
615
+ inputRange: [0, 1],
616
+ outputRange: ["0deg", "360deg"]
617
+ })
618
+ }]
619
+ }] });
620
+ }
621
+ return /* @__PURE__ */ jsx(View, { style: s.callDot });
622
+ }
623
+ function LiveDot({
624
+ live
625
+ }) {
626
+ const t = useLoop(live, 2e3);
627
+ return /* @__PURE__ */ jsxs(View, { style: s.liveDotWrap, children: [
628
+ live ? /* @__PURE__ */ jsx(Animated.View, { style: [s.liveRing, {
629
+ opacity: t.interpolate({
630
+ inputRange: [0, 0.7, 1],
631
+ outputRange: [0.55, 0, 0]
632
+ }),
633
+ transform: [{
634
+ scale: t.interpolate({
635
+ inputRange: [0, 0.7, 1],
636
+ outputRange: [1, 2.6, 2.6]
637
+ })
638
+ }]
639
+ }] }) : null,
640
+ /* @__PURE__ */ jsx(View, { style: s.liveDot })
641
+ ] });
642
+ }
643
+ function CallCard() {
644
+ const ref = useRef(null);
645
+ const reduced = useReducedMotion();
646
+ const focused = useIsFocused();
647
+ const onScreen = useOnScreen(ref, focused && !reduced);
648
+ const done = useSequence(CALL_STEPS.length, onScreen && !reduced, CALL_STEP_MS, CALL_HOLD_MS);
649
+ const finished = done >= CALL_STEPS.length;
650
+ return /* @__PURE__ */ jsxs(View, { ref, collapsable: false, style: s.callCard, accessible: true, accessibilityLabel: "Illustration: Lucy calls an internet provider, gets through the phone menu, waits on hold, and comes back with a lower rate.", children: [
651
+ /* @__PURE__ */ jsxs(View, { style: s.callHead, children: [
652
+ /* @__PURE__ */ jsx(View, { style: s.callAvatar, children: /* @__PURE__ */ jsx(Mark, { size: 22 }) }),
653
+ /* @__PURE__ */ jsxs(View, { style: {
654
+ flex: 1
655
+ }, children: [
656
+ /* @__PURE__ */ jsx(Text, { style: s.callTitle, children: finished ? "Call finished" : "Lucy is on the call" }),
657
+ /* @__PURE__ */ jsx(Text, { style: s.callSub, children: "Internet provider \xB7 18:42" })
658
+ ] }),
659
+ /* @__PURE__ */ jsxs(View, { style: [s.live, finished && {
660
+ backgroundColor: ui.fill
661
+ }], children: [
662
+ /* @__PURE__ */ jsx(LiveDot, { live: !finished }),
663
+ /* @__PURE__ */ jsx(Text, { style: [s.liveText, finished && {
664
+ color: ui.muted
665
+ }], children: finished ? "Done" : "Live" })
666
+ ] })
667
+ ] }),
668
+ CALL_STEPS.map((step, i) => {
669
+ const state = i < done ? "done" : i === done ? "now" : "next";
670
+ return /* @__PURE__ */ jsxs(View, { style: [s.callStep, state === "next" && {
671
+ opacity: 0.35
672
+ }], children: [
673
+ /* @__PURE__ */ jsx(CallDot, { state }),
674
+ /* @__PURE__ */ jsxs(View, { style: {
675
+ flex: 1
676
+ }, children: [
677
+ /* @__PURE__ */ jsx(Text, { style: s.callLabel, children: step.label }),
678
+ /* @__PURE__ */ jsx(Text, { style: s.callDetail, children: step.detail })
679
+ ] })
680
+ ] }, step.label);
681
+ })
682
+ ] });
683
+ }
684
+ const THREAD = TEXT_THREAD;
685
+ function useOnScreen(ref, enabled) {
686
+ return useInView(ref, {
687
+ enabled
688
+ }) === true;
689
+ }
690
+ function Bubble({
691
+ line,
692
+ animate
693
+ }) {
694
+ const t = useRef(new Animated.Value(animate ? 0 : 1)).current;
695
+ useEffect(() => {
696
+ if (!animate)
697
+ return;
698
+ Animated.timing(t, {
699
+ toValue: 1,
700
+ duration: 260,
701
+ easing: Easing.out(Easing.cubic),
702
+ useNativeDriver: true
703
+ }).start();
704
+ }, [animate, t]);
705
+ return /* @__PURE__ */ jsx(Animated.View, { style: [s.bubble, line.from === "you" ? s.bubbleYou : s.bubbleLucy, {
706
+ opacity: t,
707
+ transform: [{
708
+ translateY: t.interpolate({
709
+ inputRange: [0, 1],
710
+ outputRange: [10, 0]
711
+ })
712
+ }, {
713
+ scale: t.interpolate({
714
+ inputRange: [0, 1],
715
+ outputRange: [0.96, 1]
716
+ })
717
+ }]
718
+ }], children: /* @__PURE__ */ jsx(Text, { style: s.bubbleText, children: line.text }) });
719
+ }
720
+ function Typing({
721
+ next
722
+ }) {
723
+ return /* @__PURE__ */ jsx(View, { style: [s.bubble, s.bubbleLucy, s.typing], accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: /* @__PURE__ */ jsx(LucyWorking, { size: 22, motion: motionFor(next) }) });
724
+ }
725
+ function PhoneThread() {
726
+ var _a, _b;
727
+ const ref = useRef(null);
728
+ const reduced = useReducedMotion();
729
+ const focused = useIsFocused();
730
+ const onScreen = useOnScreen(ref, focused && !reduced);
731
+ const [shown, setShown] = useState(THREAD.length);
732
+ const [typing, setTyping] = useState(false);
733
+ const [round, setRound] = useState(0);
734
+ const [fullHeight, setFullHeight] = useState(0);
735
+ useEffect(() => {
736
+ if (reduced || !onScreen) {
737
+ setShown(THREAD.length);
738
+ setTyping(false);
739
+ return void 0;
740
+ }
741
+ const timers = [];
742
+ const at = (ms, run) => timers.push(setTimeout(run, ms));
743
+ let t = 0;
744
+ setShown(0);
745
+ setTyping(false);
746
+ THREAD.forEach((line, i) => {
747
+ if (line.from === "lucy") {
748
+ t += 600;
749
+ at(t, () => setTyping(true));
750
+ t += 1500;
751
+ at(t, () => {
752
+ setTyping(false);
753
+ setShown(i + 1);
754
+ });
755
+ } else {
756
+ t += i === 0 ? 400 : 1400;
757
+ at(t, () => setShown(i + 1));
758
+ }
759
+ });
760
+ at(t + 5e3, () => setRound((r) => r + 1));
761
+ return () => timers.forEach(clearTimeout);
762
+ }, [reduced, onScreen, round]);
763
+ const animate = onScreen && !reduced;
764
+ return /* @__PURE__ */ jsxs(View, { ref, collapsable: false, style: s.phone, accessible: true, accessibilityLabel: `An illustrative ${MESSAGES_APP} thread with Lucy. ${THREAD.map((m) => m.text).join(" ")}`, children: [
765
+ /* @__PURE__ */ jsxs(View, { style: s.phoneHead, children: [
766
+ /* @__PURE__ */ jsx(View, { style: s.phoneAvatar, children: /* @__PURE__ */ jsx(Mark, { size: 20 }) }),
767
+ /* @__PURE__ */ jsx(Text, { style: s.phoneName, children: "Lucy" }),
768
+ /* @__PURE__ */ jsx(Text, { style: s.phoneDay, children: `${MESSAGES_APP} \xB7 Today` })
769
+ ] }),
770
+ /* @__PURE__ */ jsxs(View, { style: fullHeight ? {
771
+ minHeight: fullHeight
772
+ } : void 0, onLayout: (e) => {
773
+ if (!fullHeight && shown === THREAD.length)
774
+ setFullHeight(e.nativeEvent.layout.height);
775
+ }, children: [
776
+ THREAD.slice(0, shown).map((m) => /* @__PURE__ */ jsx(Bubble, { line: m, animate }, `${round}-${m.text}`)),
777
+ typing ? /* @__PURE__ */ jsx(Typing, { next: (_b = (_a = THREAD[shown]) == null ? void 0 : _a.text) != null ? _b : "" }) : null,
778
+ shown === THREAD.length ? /* @__PURE__ */ jsx(Text, { style: s.delivered, children: "Delivered" }) : null
779
+ ] })
780
+ ] });
781
+ }
782
+ function Reveal(_a) {
783
+ var _b = _a, {
784
+ children,
785
+ delay = 0
786
+ } = _b, rest = __objRest(_b, [
787
+ "children",
788
+ "delay"
789
+ ]);
790
+ const ref = useRef(null);
791
+ const reduced = useReducedMotion();
792
+ const t = useRef(new Animated.Value(1)).current;
793
+ const inView = useInView(ref, {
794
+ enabled: !reduced,
795
+ edge: 0.92,
796
+ once: true
797
+ });
798
+ const decided = useRef(false);
799
+ const waiting = useRef(false);
800
+ useEffect(() => {
801
+ if (reduced || inView === void 0)
802
+ return;
803
+ if (!decided.current) {
804
+ decided.current = true;
805
+ if (!inView) {
806
+ waiting.current = true;
807
+ t.setValue(0);
808
+ }
809
+ return;
810
+ }
811
+ if (inView && waiting.current) {
812
+ waiting.current = false;
813
+ Animated.timing(t, {
814
+ toValue: 1,
815
+ duration: 600,
816
+ delay,
817
+ easing: Easing.out(Easing.quad),
818
+ useNativeDriver: true
819
+ }).start();
820
+ }
821
+ }, [inView, reduced, t, delay]);
822
+ return /* @__PURE__ */ jsx(Animated.View, __spreadProps(__spreadValues({ ref, collapsable: false }, rest), { style: [rest.style, reduced ? null : {
823
+ opacity: t,
824
+ transform: [{
825
+ translateY: t.interpolate({
826
+ inputRange: [0, 1],
827
+ outputRange: [24, 0]
828
+ })
829
+ }]
830
+ }], children }));
831
+ }
832
+ function CountUp({
833
+ to,
834
+ decimals = 0,
835
+ style
836
+ }) {
837
+ const ref = useRef(null);
838
+ const reduced = useReducedMotion();
839
+ const focused = useIsFocused();
840
+ const onScreen = useInView(ref, {
841
+ enabled: focused && !reduced,
842
+ once: true
843
+ }) === true;
844
+ const [value, setValue] = useState(to);
845
+ const counted = useRef(false);
846
+ useEffect(() => {
847
+ if (!onScreen || counted.current)
848
+ return void 0;
849
+ counted.current = true;
850
+ const t = new Animated.Value(0);
851
+ let shown = "";
852
+ const id = t.addListener(({
853
+ value: p
854
+ }) => {
855
+ const next = (to * (1 - (1 - p) ** 3)).toFixed(decimals);
856
+ if (next !== shown) {
857
+ shown = next;
858
+ setValue(Number(next));
859
+ }
860
+ });
861
+ Animated.timing(t, {
862
+ toValue: 1,
863
+ duration: COUNT_MS,
864
+ easing: Easing.linear,
865
+ useNativeDriver: false
866
+ }).start();
867
+ return () => t.removeListener(id);
868
+ }, [onScreen, to, decimals]);
869
+ return /* @__PURE__ */ jsx(View, { ref, collapsable: false, accessible: true, accessibilityLabel: to.toFixed(decimals), children: /* @__PURE__ */ jsx(Text, { style, children: value.toFixed(decimals) }) });
870
+ }
871
+ const TIME_BACK = require("../../assets/lottie/time-back.json");
872
+ const TIME_BACK_STILL = 150 / 534;
873
+ function TimeBackLottie() {
874
+ const reduced = useReducedMotion();
875
+ const [hasLottie] = useState(lottieInstalled);
876
+ return /* @__PURE__ */ jsx(View, { style: s.timeLottie, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: hasLottie ? /* @__PURE__ */ jsx(
877
+ LottieView,
878
+ {
879
+ source: TIME_BACK,
880
+ autoPlay: !reduced,
881
+ loop: true,
882
+ progress: reduced ? TIME_BACK_STILL : void 0,
883
+ renderMode: Platform.OS === "android" ? "SOFTWARE" : "AUTOMATIC",
884
+ resizeMode: "contain",
885
+ style: s.timeLottieView
886
+ }
887
+ ) : /* @__PURE__ */ jsx(View, { style: [s.timeLottieView, {
888
+ alignItems: "center",
889
+ justifyContent: "center"
890
+ }], children: /* @__PURE__ */ jsx(Mark, { size: 72 }) }) });
891
+ }
892
+ const PIE_FILL_MS = 1500;
893
+ const PIE_SIZE = 112;
894
+ function MinutesPanel({
895
+ picked
896
+ }) {
897
+ const all = MINUTES;
898
+ const whole = all.reduce((sum, m) => sum + m.min, 0);
899
+ const total = all.reduce((sum, m) => picked.has(m.label) ? sum + m.min : sum, 0);
900
+ const ref = useRef(null);
901
+ const reduced = useReducedMotion();
902
+ const focused = useIsFocused();
903
+ const onScreen = useInView(ref, {
904
+ enabled: focused && !reduced
905
+ }) === true;
906
+ const [sweep, setSweep] = useState(1);
907
+ const [shown, setShown] = useState(total);
908
+ const count = useRef(new Animated.Value(total)).current;
909
+ useEffect(() => {
910
+ const id = count.addListener(({
911
+ value
912
+ }) => setShown(Math.round(value)));
913
+ return () => count.removeListener(id);
914
+ }, [count]);
915
+ useEffect(() => {
916
+ if (!onScreen)
917
+ return void 0;
918
+ const t = new Animated.Value(0);
919
+ let last = -1;
920
+ const id = t.addListener(({
921
+ value
922
+ }) => {
923
+ const next = Math.round(value * 100) / 100;
924
+ if (next !== last) {
925
+ last = next;
926
+ setSweep(next);
927
+ }
928
+ });
929
+ count.setValue(0);
930
+ const easing = Easing.out(Easing.cubic);
931
+ const run = Animated.parallel([Animated.timing(t, {
932
+ toValue: 1,
933
+ duration: PIE_FILL_MS,
934
+ easing,
935
+ useNativeDriver: false
936
+ }), Animated.timing(count, {
937
+ toValue: total,
938
+ duration: PIE_FILL_MS,
939
+ easing,
940
+ useNativeDriver: false
941
+ })]);
942
+ run.start();
943
+ return () => {
944
+ run.stop();
945
+ t.removeListener(id);
946
+ setSweep(1);
947
+ };
948
+ }, [onScreen]);
949
+ useEffect(() => {
950
+ if (reduced) {
951
+ count.setValue(total);
952
+ return void 0;
953
+ }
954
+ const run = Animated.timing(count, {
955
+ toValue: total,
956
+ duration: 450,
957
+ easing: Easing.out(Easing.cubic),
958
+ useNativeDriver: false
959
+ });
960
+ run.start();
961
+ return () => run.stop();
962
+ }, [total, reduced, count]);
963
+ const r = PIE_SIZE / 2;
964
+ const at = (a) => `${r + r * Math.cos(a)} ${r + r * Math.sin(a)}`;
965
+ let from = 0;
966
+ return /* @__PURE__ */ jsxs(View, { ref, collapsable: false, style: s.minutesPanel, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: [
967
+ /* @__PURE__ */ jsx(Svg, { width: PIE_SIZE, height: PIE_SIZE, children: all.map((m) => {
968
+ const share = m.min / whole;
969
+ const start = from;
970
+ from += share;
971
+ const end = Math.min(start + share, sweep);
972
+ if (end <= start)
973
+ return null;
974
+ const a0 = -Math.PI / 2 + start * Math.PI * 2;
975
+ const a1 = -Math.PI / 2 + end * Math.PI * 2;
976
+ const d = end - start >= 0.9999 ? `M ${r} 0 A ${r} ${r} 0 1 1 ${r - 0.01} 0 Z` : `M ${r} ${r} L ${at(a0)} A ${r} ${r} 0 ${a1 - a0 > Math.PI ? 1 : 0} 1 ${at(a1)} Z`;
977
+ return /* @__PURE__ */ jsx(Path, { d, fill: m.color, fillOpacity: picked.has(m.label) ? 1 : 0.18, stroke: "#FFFFFF", strokeWidth: 2 }, m.label);
978
+ }) }),
979
+ /* @__PURE__ */ jsxs(View, { style: {
980
+ flex: 1
981
+ }, children: [
982
+ /* @__PURE__ */ jsxs(View, { style: s.panelRow, children: [
983
+ /* @__PURE__ */ jsx(Text, { style: s.panelValue, children: shown }),
984
+ /* @__PURE__ */ jsx(Text, { style: s.panelUnit, children: "min" })
985
+ ] }),
986
+ /* @__PURE__ */ jsx(Text, { style: s.panelLabel, children: "back, every day" }),
987
+ /* @__PURE__ */ jsx(Text, { style: s.minutesOutOf, children: "out of 169 minutes of daily life admin" })
988
+ ] })
989
+ ] });
990
+ }
991
+ function MinutesPicker() {
992
+ const all = MINUTES;
993
+ const max = Math.max(...all.map((m) => m.min));
994
+ const [picked, setPicked] = useState(() => new Set(all.map((m) => m.label)));
995
+ const total = all.reduce((sum, m) => picked.has(m.label) ? sum + m.min : sum, 0);
996
+ const year = Math.round(Math.round(total * 7 / 6) / 10 * 52);
997
+ const toggle = (label) => {
998
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
999
+ setPicked((prev) => {
1000
+ const next = new Set(prev);
1001
+ if (!next.delete(label))
1002
+ next.add(label);
1003
+ return next;
1004
+ });
1005
+ };
1006
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1007
+ /* @__PURE__ */ jsx(MinutesPanel, { picked }),
1008
+ /* @__PURE__ */ jsx(Text, { style: s.minutesHint, children: "Tap to pick what you\u2019d hand over." }),
1009
+ /* @__PURE__ */ jsxs(View, { style: s.minutes, children: [
1010
+ all.map((m) => {
1011
+ const on = picked.has(m.label);
1012
+ return /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "checkbox", accessibilityState: {
1013
+ checked: on
1014
+ }, accessibilityLabel: `${m.label}, ${m.min} minutes a day`, onPress: () => toggle(m.label), style: ({
1015
+ pressed
1016
+ }) => [s.minuteRow, pressed && {
1017
+ backgroundColor: ui.fill
1018
+ }], children: [
1019
+ /* @__PURE__ */ jsx(View, { style: [s.swatch, {
1020
+ backgroundColor: m.color,
1021
+ opacity: on ? 1 : 0.3
1022
+ }] }),
1023
+ /* @__PURE__ */ jsxs(View, { style: {
1024
+ flex: 1,
1025
+ gap: 6
1026
+ }, children: [
1027
+ /* @__PURE__ */ jsxs(View, { style: s.minuteTop, children: [
1028
+ /* @__PURE__ */ jsx(Text, { style: [s.minuteLabel, !on && {
1029
+ color: ui.muted
1030
+ }], children: m.label }),
1031
+ /* @__PURE__ */ jsxs(Text, { style: [s.minuteValue, !on && s.minuteOff], children: [
1032
+ m.min,
1033
+ " min"
1034
+ ] })
1035
+ ] }),
1036
+ /* @__PURE__ */ jsx(View, { style: s.bar, children: /* @__PURE__ */ jsx(View, { style: [s.barFill, {
1037
+ width: on ? `${m.min / max * 100}%` : "0%",
1038
+ backgroundColor: m.color === "#FFE4D2" ? "#FFC29C" : m.color
1039
+ }] }) })
1040
+ ] }),
1041
+ /* @__PURE__ */ jsx(View, { style: [s.minuteCheck, on && s.minuteCheckOn], children: on ? /* @__PURE__ */ jsx(Ionicons, { name: "checkmark", size: 12, color: ui.surface }) : null })
1042
+ ] }, m.label);
1043
+ }),
1044
+ /* @__PURE__ */ jsxs(View, { style: [s.minuteRow, s.minuteLast, {
1045
+ opacity: 0.55
1046
+ }], children: [
1047
+ /* @__PURE__ */ jsx(View, { style: [s.swatch, s.swatchNone] }),
1048
+ /* @__PURE__ */ jsxs(View, { style: {
1049
+ flex: 1,
1050
+ gap: 6
1051
+ }, children: [
1052
+ /* @__PURE__ */ jsxs(View, { style: s.minuteTop, children: [
1053
+ /* @__PURE__ */ jsx(Text, { style: [s.minuteLabel, {
1054
+ color: ui.muted
1055
+ }], children: "Housework" }),
1056
+ /* @__PURE__ */ jsx(Text, { style: [s.minuteValue, {
1057
+ color: ui.muted
1058
+ }], children: "0 min" })
1059
+ ] }),
1060
+ /* @__PURE__ */ jsx(View, { style: s.bar })
1061
+ ] }),
1062
+ /* @__PURE__ */ jsx(View, { style: {
1063
+ width: 20
1064
+ } })
1065
+ ] })
1066
+ ] }),
1067
+ /* @__PURE__ */ jsx(View, { style: s.minutesTotal, accessibilityLiveRegion: "polite", children: total ? /* @__PURE__ */ jsxs(Text, { style: s.minutesTotalText, children: [
1068
+ picked.size === all.length ? "All of it" : "Your pick",
1069
+ ":",
1070
+ " ",
1071
+ /* @__PURE__ */ jsxs(Text, { style: s.minutesTotalB, children: [
1072
+ total,
1073
+ " min"
1074
+ ] }),
1075
+ " a day, about",
1076
+ " ",
1077
+ /* @__PURE__ */ jsxs(Text, { style: s.minutesTotalB, children: [
1078
+ year,
1079
+ " hours"
1080
+ ] }),
1081
+ " a year.\xB9"
1082
+ ] }) : /* @__PURE__ */ jsx(Text, { style: s.minutesTotalText, children: "Pick a chore to see the time it gives back." }) })
1083
+ ] });
1084
+ }
1085
+ function Faq({
1086
+ q,
1087
+ a,
1088
+ last
1089
+ }) {
1090
+ const [open, setOpen] = useState(false);
1091
+ return /* @__PURE__ */ jsxs(View, { style: [s.faq, last && {
1092
+ borderBottomWidth: 0
1093
+ }], children: [
1094
+ /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", accessibilityState: {
1095
+ expanded: open
1096
+ }, onPress: () => {
1097
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
1098
+ setOpen((o) => !o);
1099
+ }, style: s.faqQ, children: [
1100
+ /* @__PURE__ */ jsx(Text, { style: s.faqQText, children: q }),
1101
+ /* @__PURE__ */ jsx(View, { style: [s.faqIcon, open && {
1102
+ backgroundColor: ui.ink
1103
+ }], children: /* @__PURE__ */ jsx(Ionicons, { name: open ? "remove" : "add", size: 16, color: open ? ui.surface : ui.ink }) })
1104
+ ] }),
1105
+ open ? /* @__PURE__ */ jsx(Text, { style: s.faqA, children: a }) : null
1106
+ ] });
1107
+ }
1108
+ const OFFER_ON = __DEV__;
1109
+ function HomeScreen() {
1110
+ var _a, _b, _c;
1111
+ const navigation = useNavigation();
1112
+ const route = useRoute();
1113
+ const {
1114
+ width,
1115
+ height: winH
1116
+ } = useWindowDimensions();
1117
+ const headerHeight = useHeaderHeight();
1118
+ const scrollY = useRef(new Animated.Value(0)).current;
1119
+ const page = useRef(null);
1120
+ const {
1121
+ keyboard,
1122
+ covers,
1123
+ onLayout: onPageLayout
1124
+ } = useKeyboardCover(page);
1125
+ const scrollAt = useRef(0);
1126
+ const focusedBox = useRef(null);
1127
+ const [focusTurn, setFocusTurn] = useState(0);
1128
+ const onComposerFocus = (box) => {
1129
+ focusedBox.current = box;
1130
+ if (box)
1131
+ setFocusTurn((n) => n + 1);
1132
+ };
1133
+ const [lift2, setLift] = useState(0);
1134
+ useEffect(() => {
1135
+ if (!keyboard.shown) {
1136
+ setLift(0);
1137
+ return void 0;
1138
+ }
1139
+ const dock = () => {
1140
+ var _a2;
1141
+ return (_a2 = page.current) == null ? void 0 : _a2.measureInWindow((_px, pageY, _pw, pageH) => {
1142
+ var _a3;
1143
+ return (_a3 = focusedBox.current) == null ? void 0 : _a3.measureInWindow((_x, y, _w, h) => {
1144
+ var _a4, _b2;
1145
+ const top = pageY + pageH - covers;
1146
+ const by = Math.round(y + h + KEYBOARD_GAP - top);
1147
+ if (Math.abs(by) <= 1)
1148
+ return;
1149
+ const to = scrollAt.current + by;
1150
+ if (to < 0) {
1151
+ setLift((l) => l - to);
1152
+ (_a4 = scrollRef.current) == null ? void 0 : _a4.scrollTo({
1153
+ y: 0,
1154
+ animated: true
1155
+ });
1156
+ } else {
1157
+ (_b2 = scrollRef.current) == null ? void 0 : _b2.scrollTo({
1158
+ y: to,
1159
+ animated: true
1160
+ });
1161
+ }
1162
+ });
1163
+ });
1164
+ };
1165
+ const first = Platform.OS === "ios" ? keyboard.duration + 60 : 80;
1166
+ const timers = [setTimeout(dock, first), setTimeout(dock, first + 300)];
1167
+ return () => timers.forEach(clearTimeout);
1168
+ }, [keyboard.shown, keyboard.duration, covers, focusTurn]);
1169
+ const scrollRef = useRef(null);
1170
+ const {
1171
+ viewport,
1172
+ handlers: viewportHandlers,
1173
+ contentRef
1174
+ } = useViewportController();
1175
+ const offsets = useRef({});
1176
+ const [imessageOpen, setImessageOpen] = useState(false);
1177
+ const totalMin = MINUTES.reduce((sum, m) => sum + m.min, 0);
1178
+ const areaWidth = Math.min(width * 0.78, 330);
1179
+ const {
1180
+ authenticated,
1181
+ gate,
1182
+ prompt
1183
+ } = useSignInGate((r, params) => navigation.navigate(r, params));
1184
+ const {
1185
+ user
1186
+ } = useIsUserAuthenticated();
1187
+ const person = authenticated && user ? user : null;
1188
+ ((person == null ? void 0 : person.given_name) || (person == null ? void 0 : person.name) || "").trim().split(/\s+/)[0] || "";
1189
+ useChoreCount(Boolean(person));
1190
+ const welcomeSeen = useWelcomeSeen();
1191
+ useEffect(() => {
1192
+ if (welcomeSeen === false)
1193
+ navigation.navigate(CLOCKBOOK_ROUTES.WELCOME);
1194
+ }, [navigation, welcomeSeen]);
1195
+ useEffect(() => {
1196
+ if (welcomeSeen !== true)
1197
+ return void 0;
1198
+ return watchTalkRequests(() => navigation.navigate(...drawerRoute(CLOCKBOOK_ROUTES.HOME, listeningHome())));
1199
+ }, [navigation, welcomeSeen]);
1200
+ usePushNotifications(Boolean(authenticated) && welcomeSeen === true, () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT, {
1201
+ at: Date.now()
1202
+ }));
1203
+ const onHome = useIsFocused();
1204
+ const offerSeen = useOfferSeen(BLACK_FRIDAY.id);
1205
+ const minute = useNow(6e4, OFFER_ON);
1206
+ const offerOn = offerShows(minute, BLACK_FRIDAY, {
1207
+ on: OFFER_ON,
1208
+ early: __DEV__
1209
+ });
1210
+ const [offerOpen, setOfferOpen] = useState(null);
1211
+ const [offerSheet, setOfferSheet] = useState(false);
1212
+ const [offerAt, setOfferAt] = useState(null);
1213
+ const markBox = useRef(null);
1214
+ const eyebrowBox = useRef(null);
1215
+ const openOffer = useCallback((mode) => {
1216
+ const centre = (box, then) => {
1217
+ if (!box)
1218
+ return then(null);
1219
+ box.measureInWindow((x, y, w, h) => then(w > 0 && h > 0 ? {
1220
+ x: x + w / 2,
1221
+ y: y + h / 2
1222
+ } : null));
1223
+ };
1224
+ centre(markBox.current, (origin) => centre(eyebrowBox.current, (target) => {
1225
+ setOfferAt(origin ? {
1226
+ origin,
1227
+ target: target != null ? target : origin
1228
+ } : null);
1229
+ setOfferOpen(mode);
1230
+ }));
1231
+ }, []);
1232
+ useEffect(() => {
1233
+ if (!offerOn || !authenticated || welcomeSeen !== true || !onHome || offerSeen !== "new")
1234
+ return void 0;
1235
+ const timer = setTimeout(() => {
1236
+ markOffer(BLACK_FRIDAY.id, "seen").catch(() => void 0);
1237
+ openOffer("offer");
1238
+ }, 700);
1239
+ return () => clearTimeout(timer);
1240
+ }, [authenticated, offerOn, offerSeen, onHome, openOffer, welcomeSeen]);
1241
+ const handOver = (chore) => gate("chat", () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT, {
1242
+ prompt: chore,
1243
+ at: Date.now()
1244
+ }), chore);
1245
+ const onChip = (c) => handOver(c.prompt);
1246
+ const textLucy = () => gate("imessage", () => setImessageOpen(true));
1247
+ const textLucyRef = useRef(textLucy);
1248
+ textLucyRef.current = textLucy;
1249
+ const openChatRef = useRef(() => gate("chat", () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT)));
1250
+ openChatRef.current = () => gate("chat", () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT));
1251
+ const anchor = (key) => (e) => {
1252
+ offsets.current[key] = e.nativeEvent.layout.y;
1253
+ };
1254
+ const {
1255
+ section,
1256
+ at,
1257
+ listen
1258
+ } = (_a = route.params) != null ? _a : {};
1259
+ useEffect(() => {
1260
+ var _a2;
1261
+ if (!at)
1262
+ return;
1263
+ const y = section ? offsets.current[section] : 0;
1264
+ if (y === void 0)
1265
+ return;
1266
+ (_a2 = scrollRef.current) == null ? void 0 : _a2.scrollTo({
1267
+ y: Math.max(0, y - headerHeight - 12),
1268
+ animated: true
1269
+ });
1270
+ }, [section, at, headerHeight]);
1271
+ useLayoutEffect(() => {
1272
+ navigation.setOptions({
1273
+ headerTitle: () => null,
1274
+ headerTransparent: true,
1275
+ headerBackground: () => /* @__PURE__ */ jsx(View, { style: StyleSheet.absoluteFill, children: /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.headerFill, {
1276
+ opacity: scrollY.interpolate({
1277
+ inputRange: [0, 40],
1278
+ outputRange: [0, 1],
1279
+ extrapolate: "clamp"
1280
+ })
1281
+ }] }) }),
1282
+ headerLeft: () => /* @__PURE__ */ jsx(View, { style: [s.headerSide, {
1283
+ marginLeft: PAD,
1284
+ alignItems: "flex-start"
1285
+ }], children: /* @__PURE__ */ jsx(FloatingButton, { icon: "menu", label: "Menu", onPress: () => navigation.dispatch(DrawerActions.toggleDrawer()) }) }),
1286
+ headerRight: () => /* @__PURE__ */ jsx(View, { style: [s.headerSide, {
1287
+ marginRight: PAD,
1288
+ alignItems: "flex-end"
1289
+ }], children: /* @__PURE__ */ jsxs(View, { style: s.iconCapsule, children: [
1290
+ /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: TEXT_LUCY, onPress: () => textLucyRef.current(), hitSlop: 12, style: ({
1291
+ pressed
1292
+ }) => [s.iconCapsuleBtn, pressed && {
1293
+ opacity: 0.5
1294
+ }], children: /* @__PURE__ */ jsx(MessagesAppIcon, { size: 18 }) }),
1295
+ /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: "Chat with Lucy", onPress: () => openChatRef.current(), hitSlop: 12, style: ({
1296
+ pressed
1297
+ }) => [s.iconCapsuleBtn, pressed && {
1298
+ opacity: 0.5
1299
+ }], children: /* @__PURE__ */ jsx(View, { style: s.chatAppIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: "chatbubble-ellipses", size: 10, color: "#FFFFFF" }) }) })
1300
+ ] }) }),
1301
+ headerShadowVisible: false
1302
+ });
1303
+ }, [navigation, scrollY]);
1304
+ return /* @__PURE__ */ jsxs(View, { ref: page, collapsable: false, style: s.page, onLayout: onPageLayout, children: [
1305
+ /* @__PURE__ */ jsx(ViewportProvider, { value: viewport, children: /* @__PURE__ */ jsx(ScrollView, __spreadProps(__spreadValues({ ref: scrollRef, style: s.page, contentContainerStyle: {
1306
+ paddingTop: lift2,
1307
+ paddingBottom: 28 + covers
1308
+ }, keyboardShouldPersistTaps: "handled", keyboardDismissMode: "on-drag", showsVerticalScrollIndicator: false }, viewportHandlers), { scrollEventThrottle: 16, onScroll: (e) => {
1309
+ viewportHandlers.onScroll(e);
1310
+ scrollY.setValue(e.nativeEvent.contentOffset.y);
1311
+ scrollAt.current = e.nativeEvent.contentOffset.y;
1312
+ }, children: /* @__PURE__ */ jsxs(View, { ref: contentRef, collapsable: false, children: [
1313
+ /* @__PURE__ */ jsxs(View, { style: [s.heroZone, {
1314
+ paddingTop: headerHeight
1315
+ }], children: [
1316
+ /* @__PURE__ */ jsx(Aurora, {}),
1317
+ /* @__PURE__ */ jsxs(View, { style: s.hero, children: [
1318
+ /* @__PURE__ */ jsx(Rise, { style: {
1319
+ alignSelf: "center"
1320
+ }, children: /* @__PURE__ */ jsx(View, { ref: markBox, collapsable: false, children: /* @__PURE__ */ jsx(HaloMark, {}) }) }),
1321
+ /* @__PURE__ */ jsx(Rise, { delay: 70, children: /* @__PURE__ */ jsx(View, { ref: eyebrowBox, collapsable: false, style: s.eyebrowBox, children: offerOn && offerSeen === "seen" ? /* @__PURE__ */ jsx(OfferChip, { offer: BLACK_FRIDAY, now: minute, onPress: () => setOfferSheet(true), onLongPress: __DEV__ ? () => openOffer("offer") : void 0 }) : /* @__PURE__ */ jsx(
1322
+ Text,
1323
+ {
1324
+ style: [s.heroEyebrow, {
1325
+ textAlign: "center"
1326
+ }],
1327
+ onLongPress: OFFER_ON ? () => resetOffer(BLACK_FRIDAY.id).catch(() => void 0) : void 0,
1328
+ children: "For everyone with a to-do list"
1329
+ }
1330
+ ) }) }),
1331
+ /* @__PURE__ */ jsx(Rise, { delay: 140, children: /* @__PURE__ */ jsx(Heading, { pre: "Get your evenings ", em: "back.", large: true, center: true, style: {
1332
+ marginTop: 8
1333
+ } }) }),
1334
+ /* @__PURE__ */ jsx(Rise, { delay: 210, children: /* @__PURE__ */ jsx(Text, { style: [s.lead, {
1335
+ textAlign: "center"
1336
+ }], children: "Clockbook takes the life admin off your plate: the calls, the bills, the cancellations, the groceries and the appointments." }) }),
1337
+ /* @__PURE__ */ jsx(Rise, { delay: 280, children: /* @__PURE__ */ jsx(Composer, { onSubmit: handOver, onFocusBox: onComposerFocus, bigMic: true, listenAt: listen }) })
1338
+ ] }),
1339
+ /* @__PURE__ */ jsxs(Rise, { delay: 350, children: [
1340
+ /* @__PURE__ */ jsx(Text, { style: s.tryLabel, children: "Try" }),
1341
+ /* @__PURE__ */ jsx(ScrollView, { horizontal: true, nestedScrollEnabled: true, showsHorizontalScrollIndicator: false, decelerationRate: "fast", snapToInterval: CARD_W + 12, contentContainerStyle: s.tryRow, children: HERO_CHORES.slice(0, 5).map((c) => /* @__PURE__ */ jsx(IdeaCard, { chore: c, onPress: onChip }, c.label)) })
1342
+ ] }),
1343
+ /* @__PURE__ */ jsx(Rise, { delay: 420, children: /* @__PURE__ */ jsxs(View, { style: s.textCard, children: [
1344
+ /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", onPress: textLucy, style: ({
1345
+ pressed
1346
+ }) => [s.textCardRow, pressed && {
1347
+ backgroundColor: ui.fill
1348
+ }], children: [
1349
+ /* @__PURE__ */ jsx(MessagesAppIcon, { size: 36 }),
1350
+ /* @__PURE__ */ jsx(Text, { style: s.textCardTitle, children: TEXT_LUCY }),
1351
+ /* @__PURE__ */ jsx(Ionicons, { name: "chevron-forward", size: 18, color: ui.faint })
1352
+ ] }),
1353
+ /* @__PURE__ */ jsx(View, { style: s.textCardTrust, children: /* @__PURE__ */ jsx(Trust, { children: "Nothing is paid or changed without your yes" }) })
1354
+ ] }) })
1355
+ ] }),
1356
+ /* @__PURE__ */ jsxs(View, { style: s.strip, children: [
1357
+ /* @__PURE__ */ jsx(Marquee, { chores: STRIP_CHORES.slice(0, 11), onChore: onChip }),
1358
+ /* @__PURE__ */ jsx(Marquee, { chores: STRIP_CHORES.slice(11), onChore: onChip, reverse: true }),
1359
+ /* @__PURE__ */ jsx(EdgeFade, { side: "left" }),
1360
+ /* @__PURE__ */ jsx(EdgeFade, { side: "right" })
1361
+ ] }),
1362
+ /* @__PURE__ */ jsxs(Reveal, { style: s.sectionList, onLayout: anchor("how"), children: [
1363
+ /* @__PURE__ */ jsxs(View, { style: s.sectionHead, children: [
1364
+ /* @__PURE__ */ jsx(Eyebrow, { children: "How it works" }),
1365
+ /* @__PURE__ */ jsx(Heading, { pre: "Text it. It gets ", em: "done." })
1366
+ ] }),
1367
+ /* @__PURE__ */ jsx(View, { style: s.steps, children: STEPS.map((step, i) => {
1368
+ var _a2;
1369
+ const last = i === STEPS.length - 1;
1370
+ return /* @__PURE__ */ jsxs(View, { style: s.step, children: [
1371
+ /* @__PURE__ */ jsxs(View, { style: s.stepRail, children: [
1372
+ /* @__PURE__ */ jsx(View, { style: s.stepIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: (_a2 = STEP_ICONS[i]) != null ? _a2 : "sparkles-outline", size: 20, color: ui.accentText }) }),
1373
+ last ? null : /* @__PURE__ */ jsx(View, { style: s.stepLine })
1374
+ ] }),
1375
+ /* @__PURE__ */ jsxs(View, { style: [s.stepBody, last && {
1376
+ paddingBottom: 0
1377
+ }], children: [
1378
+ /* @__PURE__ */ jsx(Text, { style: s.stepTitle, children: step.title }),
1379
+ /* @__PURE__ */ jsx(Text, { style: s.body, children: step.body })
1380
+ ] })
1381
+ ] }, step.title);
1382
+ }) })
1383
+ ] }),
1384
+ /* @__PURE__ */ jsx(Reveal, { style: s.sectionTight, children: /* @__PURE__ */ jsx(View, { style: s.timeCardShadow, children: /* @__PURE__ */ jsxs(View, { style: s.timeCard, children: [
1385
+ /* @__PURE__ */ jsx(DarkFill, {}),
1386
+ /* @__PURE__ */ jsx(TimeBackLottie, {}),
1387
+ /* @__PURE__ */ jsxs(View, { style: s.timeCopy, children: [
1388
+ /* @__PURE__ */ jsx(Eyebrow, { dark: true, children: "Time back" }),
1389
+ /* @__PURE__ */ jsx(Heading, { dark: true, pre: "After work, sleep and chores, the evening is ", em: "short.", style: s.timeTitle }),
1390
+ /* @__PURE__ */ jsx(View, { style: s.stats, children: STATS.map((st) => /* @__PURE__ */ jsxs(View, { style: s.stat, children: [
1391
+ /* @__PURE__ */ jsxs(View, { style: s.statRow, children: [
1392
+ /* @__PURE__ */ jsx(CountUp, { to: st.to, decimals: st.decimals, style: s.statValue }),
1393
+ /* @__PURE__ */ jsxs(Text, { style: s.statUnit, children: [
1394
+ " ",
1395
+ st.unit
1396
+ ] })
1397
+ ] }),
1398
+ /* @__PURE__ */ jsx(Text, { style: s.statLabel, children: st.label })
1399
+ ] }, st.label)) }),
1400
+ /* @__PURE__ */ jsx(Text, { style: s.timeNote, children: "A working adult spends about 2.8 hours a day on life admin. Clockbook gives you 38 minutes of it back, every day: about 229 hours a year, or 28 workdays.\xB9" })
1401
+ ] })
1402
+ ] }) }) }),
1403
+ /* @__PURE__ */ jsxs(Reveal, { style: s.section, onLayout: anchor("calls"), children: [
1404
+ /* @__PURE__ */ jsx(Eyebrow, { icon: /* @__PURE__ */ jsx(Ionicons, { name: "call-outline", size: 14, color: ui.muted }), children: "Lucy makes the call" }),
1405
+ /* @__PURE__ */ jsx(Heading, { pre: "Never sit on ", em: "hold", post: " again." }),
1406
+ /* @__PURE__ */ jsx(Text, { style: s.bodyLead, children: "Text Lucy what you need. She calls, works the phone menu, waits through the hold music and talks to a real person. When they need to hear from you, she rings you in." }),
1407
+ /* @__PURE__ */ jsx(CallCard, {})
1408
+ ] }),
1409
+ /* @__PURE__ */ jsx(Reveal, { style: s.reels, delay: 90, children: REELS.map((r, i) => /* @__PURE__ */ jsx(View, { style: [s.reel, i === 1 && {
1410
+ marginTop: 40
1411
+ }], children: /* @__PURE__ */ jsx(Reel, __spreadValues({}, r)) }, r.title)) }),
1412
+ /* @__PURE__ */ jsx(Text, { style: [s.note, {
1413
+ paddingHorizontal: PAD + 4
1414
+ }], children: VIDEO_NOTE }),
1415
+ /* @__PURE__ */ jsxs(Reveal, { style: [s.section, s.band], onLayout: anchor("imessage"), children: [
1416
+ /* @__PURE__ */ jsx(SoftFill, {}),
1417
+ /* @__PURE__ */ jsx(Eyebrow, { icon: /* @__PURE__ */ jsx(MessagesAppIcon, { size: 16 }), children: `Now on ${MESSAGES_APP}` }),
1418
+ /* @__PURE__ */ jsx(Heading, { pre: "Text Lucy like you\u2019d text a ", em: "friend." }),
1419
+ /* @__PURE__ */ jsxs(Text, { style: s.bodyLead, children: [
1420
+ "Lucy is in Messages too. Send her a chore from ",
1421
+ TEXT_FROM,
1422
+ ", and she texts back as it gets done. Same Lucy, same account, nothing to install."
1423
+ ] }),
1424
+ /* @__PURE__ */ jsx(PhoneThread, {}),
1425
+ /* @__PURE__ */ jsx(View, { style: s.textSteps, children: textSteps(TEXT_STEPS).map((step, i) => /* @__PURE__ */ jsxs(View, { style: s.textStep, children: [
1426
+ /* @__PURE__ */ jsx(View, { style: s.textN, children: /* @__PURE__ */ jsx(Text, { style: s.textNText, children: i + 1 }) }),
1427
+ /* @__PURE__ */ jsxs(View, { style: {
1428
+ flex: 1
1429
+ }, children: [
1430
+ /* @__PURE__ */ jsx(Text, { style: s.textStepTitle, children: step.title }),
1431
+ /* @__PURE__ */ jsx(Text, { style: s.body, children: step.body })
1432
+ ] })
1433
+ ] }, step.title)) }),
1434
+ /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", onPress: textLucy, style: ({
1435
+ pressed
1436
+ }) => [s.btn, pressed && s.btnPressed], children: [
1437
+ /* @__PURE__ */ jsx(MessagesAppIcon, { size: 22 }),
1438
+ /* @__PURE__ */ jsx(Text, { style: s.btnText, children: TEXT_LUCY })
1439
+ ] }),
1440
+ /* @__PURE__ */ jsx(Text, { style: [s.note, {
1441
+ textAlign: "center"
1442
+ }], children: "Message and data rates may apply." })
1443
+ ] }),
1444
+ /* @__PURE__ */ jsxs(Reveal, { style: s.sectionHeadOnly, onLayout: anchor("areas"), children: [
1445
+ /* @__PURE__ */ jsx(Eyebrow, { children: "What it handles" }),
1446
+ /* @__PURE__ */ jsx(Heading, { pre: "Hand over every corner of ", em: "home life." })
1447
+ ] }),
1448
+ /* @__PURE__ */ jsx(ScrollView, { horizontal: true, nestedScrollEnabled: true, showsHorizontalScrollIndicator: false, contentContainerStyle: s.areas, decelerationRate: "fast", snapToInterval: areaWidth + 12, children: AREAS.map((a) => /* @__PURE__ */ jsxs(View, { style: [s.area, {
1449
+ width: areaWidth
1450
+ }], children: [
1451
+ /* @__PURE__ */ jsx(AreaShot, { area: a.key }),
1452
+ /* @__PURE__ */ jsx(Text, { style: s.areaTitle, children: a.title }),
1453
+ /* @__PURE__ */ jsx(Text, { style: s.body, children: a.blurb }),
1454
+ /* @__PURE__ */ jsx(View, { style: s.areaChips, children: a.chores.map((c) => /* @__PURE__ */ jsx(ChoreChip, { chore: c, onPress: onChip, small: true }, c.label)) })
1455
+ ] }, a.key)) }),
1456
+ /* @__PURE__ */ jsxs(Reveal, { style: [s.section, s.band], children: [
1457
+ /* @__PURE__ */ jsx(SoftFill, {}),
1458
+ /* @__PURE__ */ jsx(Eyebrow, { children: "Where it comes from" }),
1459
+ /* @__PURE__ */ jsx(Heading, { pre: `${totalMin} minutes, chore by `, em: "chore." }),
1460
+ /* @__PURE__ */ jsx(MinutesPicker, {}),
1461
+ /* @__PURE__ */ jsxs(Text, { style: [s.body, {
1462
+ marginTop: 14
1463
+ }], children: [
1464
+ "Clockbook can't fold the laundry. The ",
1465
+ HOUSEWORK_MIN,
1466
+ " minutes a day of cleaning and washing stay yours; the rest you can hand over.\xB9"
1467
+ ] })
1468
+ ] }),
1469
+ /* @__PURE__ */ jsxs(Reveal, { style: s.sectionList, onLayout: anchor("faq"), children: [
1470
+ /* @__PURE__ */ jsxs(View, { style: s.sectionHead, children: [
1471
+ /* @__PURE__ */ jsx(Eyebrow, { children: "Questions" }),
1472
+ /* @__PURE__ */ jsx(Heading, { pre: "Good to ", em: "know." })
1473
+ ] }),
1474
+ /* @__PURE__ */ jsx(View, { style: s.faqs, children: FAQS.map((f, i) => /* @__PURE__ */ jsx(Faq, { q: f.q, a: f.a, last: i === FAQS.length - 1 }, f.q)) })
1475
+ ] }),
1476
+ /* @__PURE__ */ jsx(Reveal, { style: s.final, children: /* @__PURE__ */ jsx(View, { style: s.finalShadow, children: /* @__PURE__ */ jsxs(View, { style: s.finalCard, children: [
1477
+ /* @__PURE__ */ jsx(FinalFill, {}),
1478
+ /* @__PURE__ */ jsx(TimeBackMark, { size: 40 }),
1479
+ /* @__PURE__ */ jsx(Heading, { pre: "What\u2019s the first chore you\u2019d ", em: "hand over?", center: true, style: s.finalTitle }),
1480
+ /* @__PURE__ */ jsx(View, { style: {
1481
+ alignSelf: "stretch"
1482
+ }, children: /* @__PURE__ */ jsx(Composer, { onSubmit: handOver, onFocusBox: onComposerFocus }) }),
1483
+ /* @__PURE__ */ jsxs(View, { style: s.finalChannels, children: [
1484
+ /* @__PURE__ */ jsx(ImessagePill, { onPress: textLucy }),
1485
+ /* @__PURE__ */ jsx(View, { style: {
1486
+ alignSelf: "stretch"
1487
+ }, children: /* @__PURE__ */ jsx(Trust, { children: "Lucy asks before she pays for anything or changes an account" }) })
1488
+ ] })
1489
+ ] }) }) }),
1490
+ /* @__PURE__ */ jsx(Reveal, { style: s.sectionTight, children: /* @__PURE__ */ jsxs(View, { style: s.yantraCard, children: [
1491
+ /* @__PURE__ */ jsxs(View, { style: s.yantraHead, children: [
1492
+ /* @__PURE__ */ jsx(View, { style: s.yantraIcon, children: /* @__PURE__ */ jsx(YantraMark, { size: 24 }) }),
1493
+ /* @__PURE__ */ jsx(Heading, { pre: "Running a business? That\u2019s ", em: "Yantra.", style: s.yantraTitle })
1494
+ ] }),
1495
+ /* @__PURE__ */ jsx(Text, { style: [s.body, {
1496
+ marginTop: 8
1497
+ }], children: "Clockbook keeps life admin easy for everyone. For your team\u2019s work, from timesheets and invoices to the workflows between them, there\u2019s Yantra, the AI workspace Clockbook runs on." }),
1498
+ /* @__PURE__ */ jsx(Button, { label: "Go to yantra.app", icon: "open-outline", variant: "secondary", onPress: () => openYantraUrl(yantraAppUrl()), style: {
1499
+ marginTop: 18,
1500
+ alignSelf: "flex-start"
1501
+ } })
1502
+ ] }) }),
1503
+ /* @__PURE__ */ jsxs(View, { style: s.footer, children: [
1504
+ /* @__PURE__ */ jsx(View, { style: s.footerRule }),
1505
+ /* @__PURE__ */ jsx(Mark, { size: 28 }),
1506
+ /* @__PURE__ */ jsx(Text, { style: s.footerName, children: "Clockbook" }),
1507
+ /* @__PURE__ */ jsx(Text, { style: s.footerTag, children: "Time back, every day." }),
1508
+ /* @__PURE__ */ jsxs(Text, { style: s.footnote, children: [
1509
+ "\xB9 ",
1510
+ FOOTNOTE,
1511
+ " ",
1512
+ VIDEO_NOTE
1513
+ ] })
1514
+ ] })
1515
+ ] }) })) }),
1516
+ prompt,
1517
+ /* @__PURE__ */ jsx(ImessageSheet, { visible: imessageOpen, onClose: () => setImessageOpen(false), onChatHere: () => {
1518
+ setImessageOpen(false);
1519
+ navigation.navigate(CLOCKBOOK_ROUTES.CHAT, {
1520
+ at: Date.now()
1521
+ });
1522
+ }, onSignIn: () => {
1523
+ setImessageOpen(false);
1524
+ navigation.navigate(AuthMobileNavigationRoutesEnum.Login, {
1525
+ redirect: "back"
1526
+ });
1527
+ } }),
1528
+ /* @__PURE__ */ jsx(BlackFridayOffer, { visible: offerOpen !== null, mode: offerOpen != null ? offerOpen : "offer", offer: BLACK_FRIDAY, origin: (_b = offerAt == null ? void 0 : offerAt.origin) != null ? _b : null, target: (_c = offerAt == null ? void 0 : offerAt.target) != null ? _c : null, onClaim: () => markOffer(BLACK_FRIDAY.id, "claimed").catch(() => void 0), onClose: () => setOfferOpen(null) }),
1529
+ /* @__PURE__ */ jsx(OfferSheet, { visible: offerSheet, offer: BLACK_FRIDAY, onClose: () => setOfferSheet(false), onClaim: () => {
1530
+ setOfferSheet(false);
1531
+ markOffer(BLACK_FRIDAY.id, "claimed").catch(() => void 0);
1532
+ setTimeout(() => openOffer("claimed"), 320);
1533
+ } })
1534
+ ] });
1535
+ }
1536
+ const CALL_GREEN = "#1FA855";
1537
+ const CARD_W = 248;
1538
+ const TIME_PEACH = "#FFB48A";
1539
+ const TIME_LABEL = "#D8CEC5";
1540
+ const s = StyleSheet.create({
1541
+ page: {
1542
+ flex: 1,
1543
+ backgroundColor: ui.bg
1544
+ },
1545
+ headerActions: {
1546
+ flexDirection: "row",
1547
+ alignItems: "center",
1548
+ gap: 8
1549
+ },
1550
+ iconCapsule: __spreadValues({
1551
+ flexDirection: "row",
1552
+ alignItems: "center",
1553
+ gap: 12,
1554
+ height: 38,
1555
+ paddingHorizontal: 14,
1556
+ borderRadius: 19,
1557
+ backgroundColor: ui.surface
1558
+ }, float),
1559
+ iconCapsuleBtn: {
1560
+ width: 20,
1561
+ height: 20,
1562
+ alignItems: "center",
1563
+ justifyContent: "center"
1564
+ },
1565
+ chatAppIcon: {
1566
+ width: 18,
1567
+ height: 18,
1568
+ borderRadius: 5,
1569
+ backgroundColor: ui.accent,
1570
+ alignItems: "center",
1571
+ justifyContent: "center"
1572
+ },
1573
+ headerSide: {
1574
+ minWidth: 84
1575
+ },
1576
+ headerFill: {
1577
+ backgroundColor: ui.bg,
1578
+ borderBottomWidth: StyleSheet.hairlineWidth,
1579
+ borderBottomColor: ui.hairline
1580
+ },
1581
+ eyebrowRow: {
1582
+ flexDirection: "row",
1583
+ alignItems: "center",
1584
+ gap: 6,
1585
+ marginBottom: 8
1586
+ },
1587
+ eyebrow: __spreadProps(__spreadValues({}, type.groupLabel), {
1588
+ fontWeight: "600"
1589
+ }),
1590
+ eyebrowDark: {
1591
+ color: TIME_PEACH
1592
+ },
1593
+ heading: __spreadProps(__spreadValues({}, type.title), {
1594
+ fontSize: 24,
1595
+ lineHeight: 30
1596
+ }),
1597
+ headingLarge: __spreadProps(__spreadValues({}, type.largeTitle), {
1598
+ fontSize: 28,
1599
+ lineHeight: 34,
1600
+ letterSpacing: -0.6
1601
+ }),
1602
+ headingEm: {
1603
+ color: ui.accentText
1604
+ },
1605
+ headingDark: {
1606
+ color: "#FFFFFF"
1607
+ },
1608
+ headingEmDark: {
1609
+ color: "#FF8A3D"
1610
+ },
1611
+ lead: __spreadProps(__spreadValues({}, type.callout), {
1612
+ fontSize: 15.5,
1613
+ lineHeight: 22,
1614
+ marginTop: 8,
1615
+ marginBottom: 18
1616
+ }),
1617
+ body: __spreadValues({}, type.callout),
1618
+ bodyLead: __spreadProps(__spreadValues({}, type.callout), {
1619
+ fontSize: 16,
1620
+ lineHeight: 23,
1621
+ marginTop: 10,
1622
+ marginBottom: 22
1623
+ }),
1624
+ note: __spreadProps(__spreadValues({}, type.footnote), {
1625
+ fontSize: 12,
1626
+ lineHeight: 17,
1627
+ marginTop: 10
1628
+ }),
1629
+ heroZone: {
1630
+ paddingBottom: 8
1631
+ },
1632
+ hero: {
1633
+ paddingHorizontal: PAD,
1634
+ paddingTop: 8,
1635
+ paddingBottom: 4
1636
+ },
1637
+ halo: {
1638
+ width: 60,
1639
+ height: 60,
1640
+ marginTop: 14,
1641
+ alignItems: "center",
1642
+ justifyContent: "center"
1643
+ },
1644
+ haloGlow: {
1645
+ position: "absolute",
1646
+ width: 120,
1647
+ height: 120,
1648
+ left: -30,
1649
+ top: -30
1650
+ },
1651
+ haloTile: __spreadValues({
1652
+ width: 60,
1653
+ height: 60,
1654
+ borderRadius: 18,
1655
+ backgroundColor: ui.surface,
1656
+ borderWidth: StyleSheet.hairlineWidth,
1657
+ borderColor: ui.hairline,
1658
+ alignItems: "center",
1659
+ justifyContent: "center"
1660
+ }, float),
1661
+ eyebrowBox: {
1662
+ alignItems: "center"
1663
+ },
1664
+ heroEyebrow: {
1665
+ fontSize: 12,
1666
+ lineHeight: 16,
1667
+ fontWeight: "700",
1668
+ letterSpacing: 1.6,
1669
+ textTransform: "uppercase",
1670
+ color: ui.accentText,
1671
+ marginTop: 22
1672
+ },
1673
+ composerRow: {
1674
+ flexDirection: "row",
1675
+ alignItems: "center",
1676
+ gap: 8,
1677
+ paddingLeft: 2
1678
+ },
1679
+ composerHint: __spreadProps(__spreadValues({}, type.footnote), {
1680
+ flex: 1,
1681
+ color: ui.ink2
1682
+ }),
1683
+ ghostBox: {
1684
+ position: "absolute",
1685
+ left: 0,
1686
+ right: 8,
1687
+ top: 9
1688
+ },
1689
+ caretText: {
1690
+ color: ui.accent,
1691
+ fontWeight: "300"
1692
+ },
1693
+ tryHead: {
1694
+ paddingHorizontal: PAD + 4,
1695
+ marginTop: 26,
1696
+ marginBottom: 10,
1697
+ gap: 1
1698
+ },
1699
+ card: __spreadValues({
1700
+ width: CARD_W,
1701
+ padding: 16,
1702
+ borderRadius: 20,
1703
+ backgroundColor: ui.surface,
1704
+ borderWidth: StyleSheet.hairlineWidth,
1705
+ borderColor: ui.hairline
1706
+ }, lift),
1707
+ cardHead: {
1708
+ flexDirection: "row",
1709
+ alignItems: "center",
1710
+ gap: 12
1711
+ },
1712
+ cardIcon: {
1713
+ width: 36,
1714
+ height: 36,
1715
+ borderRadius: 12,
1716
+ backgroundColor: ui.accentSoft,
1717
+ alignItems: "center",
1718
+ justifyContent: "center"
1719
+ },
1720
+ cardTitle: __spreadProps(__spreadValues({}, type.headline), {
1721
+ flex: 1,
1722
+ fontSize: 15.5,
1723
+ lineHeight: 20
1724
+ }),
1725
+ cardGo: {
1726
+ width: 28,
1727
+ height: 28,
1728
+ borderRadius: 14,
1729
+ backgroundColor: ui.fill,
1730
+ alignItems: "center",
1731
+ justifyContent: "center",
1732
+ transform: [{
1733
+ rotate: "45deg"
1734
+ }]
1735
+ },
1736
+ cardBody: __spreadProps(__spreadValues({}, type.footnote), {
1737
+ fontSize: 13.5,
1738
+ lineHeight: 19,
1739
+ marginTop: 12
1740
+ }),
1741
+ fade: {
1742
+ position: "absolute",
1743
+ top: 0,
1744
+ bottom: 0,
1745
+ width: 28
1746
+ },
1747
+ ghost: {
1748
+ flexShrink: 1,
1749
+ fontSize: 15.5,
1750
+ lineHeight: 21,
1751
+ color: ui.muted
1752
+ },
1753
+ tryLabel: {
1754
+ fontSize: 17,
1755
+ lineHeight: 22,
1756
+ fontWeight: "600",
1757
+ color: ui.ink,
1758
+ paddingHorizontal: PAD + 4,
1759
+ marginTop: 32,
1760
+ marginBottom: 12
1761
+ },
1762
+ tryRow: {
1763
+ paddingHorizontal: PAD,
1764
+ gap: 12,
1765
+ paddingBottom: 8
1766
+ },
1767
+ channels: {
1768
+ paddingHorizontal: PAD + 4,
1769
+ marginTop: 14
1770
+ },
1771
+ textCard: __spreadValues({
1772
+ marginTop: 24,
1773
+ marginHorizontal: PAD,
1774
+ borderRadius: 20,
1775
+ overflow: "hidden",
1776
+ backgroundColor: ui.surface,
1777
+ borderWidth: StyleSheet.hairlineWidth,
1778
+ borderColor: ui.hairline
1779
+ }, lift),
1780
+ textCardRow: {
1781
+ flexDirection: "row",
1782
+ alignItems: "center",
1783
+ gap: 12,
1784
+ paddingHorizontal: 16,
1785
+ paddingVertical: 14
1786
+ },
1787
+ textCardTitle: {
1788
+ flex: 1,
1789
+ fontSize: 16,
1790
+ fontWeight: "600",
1791
+ letterSpacing: -0.2,
1792
+ color: ui.ink
1793
+ },
1794
+ textCardTrust: {
1795
+ paddingHorizontal: 16,
1796
+ paddingVertical: 12,
1797
+ backgroundColor: ui.okSoft
1798
+ },
1799
+ composer: __spreadValues({
1800
+ backgroundColor: ui.surface,
1801
+ borderRadius: 22,
1802
+ borderWidth: StyleSheet.hairlineWidth,
1803
+ borderColor: ui.hairline,
1804
+ paddingLeft: 16,
1805
+ paddingRight: 8,
1806
+ paddingTop: 6,
1807
+ paddingBottom: 8
1808
+ }, lift),
1809
+ composerFocused: {
1810
+ borderColor: "rgba(255,90,0,0.35)"
1811
+ },
1812
+ stage: {
1813
+ paddingHorizontal: PAD,
1814
+ paddingTop: 16,
1815
+ paddingBottom: 16
1816
+ },
1817
+ stageMiddle: {
1818
+ alignItems: "center",
1819
+ marginTop: 8,
1820
+ marginBottom: 16
1821
+ },
1822
+ stageTitle: {
1823
+ fontSize: 28,
1824
+ lineHeight: 34,
1825
+ fontWeight: "700",
1826
+ letterSpacing: -0.6,
1827
+ color: ui.ink,
1828
+ textAlign: "center",
1829
+ marginTop: 8
1830
+ },
1831
+ bigMic: {
1832
+ alignItems: "center"
1833
+ },
1834
+ bigMicStage: {
1835
+ width: 176,
1836
+ height: 176,
1837
+ alignItems: "center",
1838
+ justifyContent: "center"
1839
+ },
1840
+ dial: {
1841
+ width: DIAL,
1842
+ height: DIAL,
1843
+ alignItems: "center",
1844
+ justifyContent: "center"
1845
+ },
1846
+ sphere: {
1847
+ width: SPHERE,
1848
+ height: SPHERE,
1849
+ borderRadius: SPHERE / 2,
1850
+ alignItems: "center",
1851
+ justifyContent: "center",
1852
+ overflow: "visible",
1853
+ shadowColor: ui.accent,
1854
+ shadowOpacity: 0.35,
1855
+ shadowRadius: 20,
1856
+ shadowOffset: {
1857
+ width: 0,
1858
+ height: 10
1859
+ },
1860
+ elevation: 8
1861
+ },
1862
+ sphereRing: {
1863
+ position: "absolute",
1864
+ width: SPHERE,
1865
+ height: SPHERE,
1866
+ borderRadius: SPHERE / 2,
1867
+ backgroundColor: ui.accent
1868
+ },
1869
+ typeBox: __spreadValues({
1870
+ flexDirection: "row",
1871
+ alignItems: "flex-end",
1872
+ gap: 8,
1873
+ minHeight: 96,
1874
+ paddingLeft: 18,
1875
+ paddingRight: 10,
1876
+ paddingTop: 12,
1877
+ paddingBottom: 10,
1878
+ borderRadius: 22,
1879
+ backgroundColor: ui.surface,
1880
+ borderWidth: StyleSheet.hairlineWidth,
1881
+ borderColor: ui.hairline
1882
+ }, lift),
1883
+ typeBoxInput: __spreadValues({
1884
+ flex: 1,
1885
+ alignSelf: "stretch",
1886
+ fontSize: 15.5,
1887
+ lineHeight: 21,
1888
+ color: ui.ink,
1889
+ minHeight: 72,
1890
+ maxHeight: 140,
1891
+ paddingTop: 2,
1892
+ textAlignVertical: "top"
1893
+ }, field),
1894
+ ring: {
1895
+ position: "absolute"
1896
+ },
1897
+ hello: {
1898
+ fontSize: 15,
1899
+ lineHeight: 20,
1900
+ fontWeight: "600",
1901
+ color: ui.accentText,
1902
+ textAlign: "center"
1903
+ },
1904
+ steps: {
1905
+ paddingHorizontal: PAD + 4,
1906
+ marginTop: 16
1907
+ },
1908
+ step: {
1909
+ flexDirection: "row",
1910
+ gap: 16
1911
+ },
1912
+ stepRail: {
1913
+ width: 44,
1914
+ alignItems: "center"
1915
+ },
1916
+ stepIcon: {
1917
+ width: 44,
1918
+ height: 44,
1919
+ borderRadius: 22,
1920
+ backgroundColor: ui.accentSoft,
1921
+ alignItems: "center",
1922
+ justifyContent: "center"
1923
+ },
1924
+ stepLine: {
1925
+ flex: 1,
1926
+ width: 2,
1927
+ marginVertical: 4,
1928
+ borderRadius: 1,
1929
+ backgroundColor: "rgba(255,90,0,0.18)"
1930
+ },
1931
+ stepBody: {
1932
+ flex: 1,
1933
+ paddingTop: 10,
1934
+ paddingBottom: 24
1935
+ },
1936
+ stepTitle: __spreadProps(__spreadValues({}, type.headline), {
1937
+ fontSize: 16,
1938
+ marginBottom: 4
1939
+ }),
1940
+ heroSub: {
1941
+ fontSize: 15,
1942
+ lineHeight: 20,
1943
+ color: ui.muted,
1944
+ marginTop: 8,
1945
+ textAlign: "center"
1946
+ },
1947
+ onIt: {
1948
+ alignSelf: "center",
1949
+ flexDirection: "row",
1950
+ alignItems: "center",
1951
+ gap: 8,
1952
+ marginTop: 12,
1953
+ height: 32,
1954
+ paddingHorizontal: 12,
1955
+ borderRadius: 16,
1956
+ backgroundColor: ui.accentSoft
1957
+ },
1958
+ onItDot: {
1959
+ width: 8,
1960
+ height: 8,
1961
+ borderRadius: 4,
1962
+ backgroundColor: ui.accent
1963
+ },
1964
+ onItText: {
1965
+ fontSize: 13,
1966
+ fontWeight: "600",
1967
+ color: ui.accentText
1968
+ },
1969
+ ideaChipsScroll: {
1970
+ flexGrow: 0,
1971
+ marginHorizontal: -16,
1972
+ marginBottom: 12
1973
+ },
1974
+ ideaChips: {
1975
+ flexDirection: "row",
1976
+ gap: 8,
1977
+ paddingHorizontal: PAD
1978
+ },
1979
+ ideaChip: {
1980
+ flexDirection: "row",
1981
+ alignItems: "center",
1982
+ gap: 8,
1983
+ height: 40,
1984
+ paddingHorizontal: 16,
1985
+ borderRadius: 20,
1986
+ backgroundColor: ui.surface,
1987
+ borderWidth: StyleSheet.hairlineWidth,
1988
+ borderColor: "rgba(255,90,0,0.18)"
1989
+ },
1990
+ ideaChipText: {
1991
+ fontSize: 13,
1992
+ fontWeight: "600",
1993
+ color: ui.ink
1994
+ },
1995
+ bigMicOuter: {
1996
+ width: 132,
1997
+ height: 132,
1998
+ borderRadius: 66,
1999
+ backgroundColor: ui.accentSoft,
2000
+ alignItems: "center",
2001
+ justifyContent: "center"
2002
+ },
2003
+ bigMicInner: {
2004
+ width: 108,
2005
+ height: 108,
2006
+ borderRadius: 54,
2007
+ backgroundColor: "#FFD9C2",
2008
+ alignItems: "center",
2009
+ justifyContent: "center"
2010
+ },
2011
+ bigMicLift: {
2012
+ borderRadius: 36,
2013
+ shadowColor: ui.accent,
2014
+ shadowOpacity: 0.35,
2015
+ shadowRadius: 14,
2016
+ shadowOffset: {
2017
+ width: 0,
2018
+ height: 8
2019
+ },
2020
+ elevation: 6
2021
+ },
2022
+ bigMicLabel: __spreadProps(__spreadValues({}, type.headline), {
2023
+ fontSize: 17,
2024
+ marginTop: 12
2025
+ }),
2026
+ bigMicSubRow: {
2027
+ flexDirection: "row",
2028
+ alignItems: "center",
2029
+ gap: 6,
2030
+ marginTop: 4
2031
+ },
2032
+ typeLine: __spreadValues({
2033
+ flexDirection: "row",
2034
+ alignItems: "flex-end",
2035
+ gap: 8,
2036
+ minHeight: 52,
2037
+ paddingLeft: 18,
2038
+ paddingRight: 8,
2039
+ paddingVertical: 8,
2040
+ borderRadius: 26,
2041
+ backgroundColor: ui.surface,
2042
+ borderWidth: StyleSheet.hairlineWidth,
2043
+ borderColor: ui.hairline
2044
+ }, lift),
2045
+ pillListening: {
2046
+ backgroundColor: "#FFF6F0",
2047
+ borderColor: "rgba(255,90,0,0.35)"
2048
+ },
2049
+ pillInput: __spreadValues({
2050
+ flex: 1,
2051
+ fontSize: 15.5,
2052
+ lineHeight: 21,
2053
+ color: ui.ink,
2054
+ minHeight: 36,
2055
+ maxHeight: 120,
2056
+ paddingTop: 7,
2057
+ paddingBottom: 7
2058
+ }, field),
2059
+ pillHint: __spreadProps(__spreadValues({}, type.footnote), {
2060
+ color: ui.accentText,
2061
+ textAlign: "center",
2062
+ marginTop: 8
2063
+ }),
2064
+ bigMicSub: __spreadProps(__spreadValues({}, type.subhead), {
2065
+ fontSize: 14.5,
2066
+ marginTop: 2
2067
+ }),
2068
+ composerInput: __spreadValues({
2069
+ fontSize: 15.5,
2070
+ lineHeight: 21,
2071
+ color: ui.ink,
2072
+ minHeight: 58,
2073
+ maxHeight: 140,
2074
+ paddingTop: 9,
2075
+ paddingBottom: 4,
2076
+ paddingRight: 8
2077
+ }, field),
2078
+ composerNote: __spreadProps(__spreadValues({}, type.footnote), {
2079
+ textAlign: "center",
2080
+ marginTop: 10
2081
+ }),
2082
+ send: {
2083
+ width: 36,
2084
+ height: 36,
2085
+ borderRadius: 18,
2086
+ alignItems: "center",
2087
+ justifyContent: "center"
2088
+ },
2089
+ chip: {
2090
+ flexDirection: "row",
2091
+ alignItems: "center",
2092
+ gap: 6,
2093
+ paddingVertical: 8,
2094
+ paddingHorizontal: 13,
2095
+ borderRadius: radius.pill,
2096
+ backgroundColor: ui.surface,
2097
+ borderWidth: StyleSheet.hairlineWidth,
2098
+ borderColor: ui.hairline
2099
+ },
2100
+ chipSmall: {
2101
+ paddingVertical: 6,
2102
+ paddingHorizontal: 12,
2103
+ gap: 6
2104
+ },
2105
+ chipPressed: {
2106
+ backgroundColor: ui.accentSoft
2107
+ },
2108
+ chipText: {
2109
+ fontSize: 14,
2110
+ fontWeight: "500",
2111
+ color: ui.ink
2112
+ },
2113
+ chipTextSmall: {
2114
+ fontSize: 13,
2115
+ color: ui.ink2
2116
+ },
2117
+ pill: __spreadValues({
2118
+ flexDirection: "row",
2119
+ alignItems: "center",
2120
+ gap: 8,
2121
+ paddingVertical: 9,
2122
+ paddingLeft: 9,
2123
+ paddingRight: 16,
2124
+ borderRadius: radius.pill,
2125
+ backgroundColor: ui.surface
2126
+ }, lift),
2127
+ pillText: {
2128
+ fontSize: 15,
2129
+ fontWeight: "600",
2130
+ color: ui.ink
2131
+ },
2132
+ trust: {
2133
+ flexDirection: "row",
2134
+ alignItems: "center",
2135
+ gap: 6
2136
+ },
2137
+ trustText: __spreadProps(__spreadValues({}, type.footnote), {
2138
+ flexShrink: 1
2139
+ }),
2140
+ strip: {
2141
+ marginTop: 32,
2142
+ gap: 8,
2143
+ paddingVertical: 4
2144
+ },
2145
+ marquee: {
2146
+ overflow: "hidden"
2147
+ },
2148
+ marqueeRow: {
2149
+ flexDirection: "row",
2150
+ gap: 8,
2151
+ paddingRight: 8
2152
+ },
2153
+ section: {
2154
+ paddingHorizontal: PAD + 4,
2155
+ paddingTop: 48,
2156
+ paddingBottom: 8
2157
+ },
2158
+ sectionList: {
2159
+ paddingTop: 48
2160
+ },
2161
+ sectionHead: {
2162
+ paddingHorizontal: PAD + 4,
2163
+ marginBottom: 4
2164
+ },
2165
+ sectionHeadOnly: {
2166
+ paddingHorizontal: PAD + 4,
2167
+ paddingTop: 48,
2168
+ marginBottom: 16
2169
+ },
2170
+ sectionTight: {
2171
+ paddingHorizontal: PAD,
2172
+ paddingTop: 32
2173
+ },
2174
+ band: {
2175
+ backgroundColor: ui.soft,
2176
+ marginTop: 48,
2177
+ paddingTop: 40,
2178
+ paddingBottom: 32
2179
+ },
2180
+ timeCardShadow: __spreadValues({
2181
+ borderRadius: 24,
2182
+ backgroundColor: "#1A1714"
2183
+ }, float),
2184
+ timeCard: {
2185
+ borderRadius: 24,
2186
+ overflow: "hidden"
2187
+ },
2188
+ timeLottie: {
2189
+ margin: 10,
2190
+ marginBottom: 0,
2191
+ borderRadius: 18,
2192
+ overflow: "hidden",
2193
+ backgroundColor: "#FFF7F2"
2194
+ },
2195
+ timeLottieView: {
2196
+ width: "100%",
2197
+ aspectRatio: 1
2198
+ },
2199
+ panelRow: {
2200
+ flexDirection: "row",
2201
+ alignItems: "baseline"
2202
+ },
2203
+ minutesPanel: __spreadValues({
2204
+ flexDirection: "row",
2205
+ alignItems: "center",
2206
+ gap: 18,
2207
+ marginTop: 16,
2208
+ padding: 16,
2209
+ borderRadius: radius.card,
2210
+ backgroundColor: ui.surface
2211
+ }, lift),
2212
+ minutesOutOf: __spreadProps(__spreadValues({}, type.caption), {
2213
+ fontWeight: "400",
2214
+ marginTop: 6
2215
+ }),
2216
+ panelValue: {
2217
+ fontSize: 46,
2218
+ lineHeight: 52,
2219
+ fontWeight: "800",
2220
+ letterSpacing: -1.6,
2221
+ color: ui.ink,
2222
+ fontVariant: ["tabular-nums"]
2223
+ },
2224
+ panelUnit: {
2225
+ fontSize: 22,
2226
+ fontWeight: "800",
2227
+ letterSpacing: -0.5,
2228
+ color: ui.accent,
2229
+ marginLeft: 3
2230
+ },
2231
+ panelLabel: {
2232
+ fontSize: 15,
2233
+ fontWeight: "600",
2234
+ color: ui.ink2,
2235
+ marginTop: -2
2236
+ },
2237
+ timeCopy: {
2238
+ padding: 16,
2239
+ paddingTop: 14,
2240
+ paddingBottom: 18
2241
+ },
2242
+ timeTitle: {
2243
+ fontSize: 21,
2244
+ lineHeight: 26,
2245
+ letterSpacing: -0.3
2246
+ },
2247
+ stats: {
2248
+ flexDirection: "row",
2249
+ gap: 12,
2250
+ marginTop: 16
2251
+ },
2252
+ stat: {
2253
+ flex: 1,
2254
+ paddingTop: 10,
2255
+ borderTopWidth: StyleSheet.hairlineWidth,
2256
+ borderTopColor: "rgba(255,255,255,0.16)"
2257
+ },
2258
+ statValue: {
2259
+ fontSize: 24,
2260
+ lineHeight: 29,
2261
+ fontWeight: "600",
2262
+ letterSpacing: -0.8,
2263
+ color: TIME_PEACH,
2264
+ fontVariant: ["tabular-nums"]
2265
+ },
2266
+ statRow: {
2267
+ flexDirection: "row",
2268
+ alignItems: "baseline"
2269
+ },
2270
+ statUnit: {
2271
+ fontSize: 12.5,
2272
+ fontWeight: "500",
2273
+ color: TIME_PEACH
2274
+ },
2275
+ statLabel: __spreadProps(__spreadValues({}, type.caption), {
2276
+ fontWeight: "400",
2277
+ fontSize: 12,
2278
+ color: TIME_LABEL,
2279
+ marginTop: 3
2280
+ }),
2281
+ timeNote: __spreadProps(__spreadValues({}, type.footnote), {
2282
+ fontSize: 13,
2283
+ lineHeight: 19,
2284
+ color: TIME_LABEL,
2285
+ marginTop: 14
2286
+ }),
2287
+ callCard: __spreadValues({
2288
+ borderRadius: radius.card + 4,
2289
+ backgroundColor: ui.surface,
2290
+ paddingHorizontal: 18,
2291
+ paddingVertical: 16
2292
+ }, float),
2293
+ callHead: {
2294
+ flexDirection: "row",
2295
+ alignItems: "center",
2296
+ gap: 12,
2297
+ paddingBottom: 14,
2298
+ marginBottom: 6,
2299
+ borderBottomWidth: StyleSheet.hairlineWidth,
2300
+ borderBottomColor: ui.hairline
2301
+ },
2302
+ callAvatar: {
2303
+ width: 40,
2304
+ height: 40,
2305
+ borderRadius: 20,
2306
+ backgroundColor: ui.accentSoft,
2307
+ alignItems: "center",
2308
+ justifyContent: "center"
2309
+ },
2310
+ callTitle: __spreadProps(__spreadValues({}, type.headline), {
2311
+ fontSize: 16
2312
+ }),
2313
+ callSub: __spreadProps(__spreadValues({}, type.footnote), {
2314
+ fontVariant: ["tabular-nums"]
2315
+ }),
2316
+ live: {
2317
+ flexDirection: "row",
2318
+ alignItems: "center",
2319
+ gap: 6,
2320
+ paddingVertical: 5,
2321
+ paddingHorizontal: 10,
2322
+ borderRadius: radius.pill,
2323
+ backgroundColor: ui.okSoft
2324
+ },
2325
+ liveDotWrap: {
2326
+ width: 8,
2327
+ height: 8,
2328
+ alignItems: "center",
2329
+ justifyContent: "center"
2330
+ },
2331
+ liveDot: {
2332
+ width: 8,
2333
+ height: 8,
2334
+ borderRadius: 4,
2335
+ backgroundColor: CALL_GREEN
2336
+ },
2337
+ liveRing: {
2338
+ position: "absolute",
2339
+ width: 8,
2340
+ height: 8,
2341
+ borderRadius: 4,
2342
+ backgroundColor: CALL_GREEN
2343
+ },
2344
+ liveText: {
2345
+ fontSize: 12.5,
2346
+ fontWeight: "600",
2347
+ color: ui.ok
2348
+ },
2349
+ callStep: {
2350
+ flexDirection: "row",
2351
+ gap: 12,
2352
+ paddingVertical: 9
2353
+ },
2354
+ callDot: {
2355
+ width: 22,
2356
+ height: 22,
2357
+ borderRadius: 11,
2358
+ borderWidth: 1.5,
2359
+ borderColor: "#E3DCD3",
2360
+ backgroundColor: ui.surface,
2361
+ alignItems: "center",
2362
+ justifyContent: "center",
2363
+ marginTop: 1
2364
+ },
2365
+ callLabel: {
2366
+ fontSize: 15,
2367
+ fontWeight: "500",
2368
+ color: ui.ink
2369
+ },
2370
+ callDetail: __spreadProps(__spreadValues({}, type.footnote), {
2371
+ marginTop: 1
2372
+ }),
2373
+ reels: {
2374
+ flexDirection: "row",
2375
+ alignItems: "flex-start",
2376
+ paddingHorizontal: PAD + 4,
2377
+ gap: 14,
2378
+ marginTop: 24
2379
+ },
2380
+ reel: {
2381
+ flex: 1
2382
+ },
2383
+ phone: {
2384
+ borderRadius: 22,
2385
+ backgroundColor: ui.bg,
2386
+ paddingHorizontal: 12,
2387
+ paddingTop: 12,
2388
+ paddingBottom: 10,
2389
+ borderWidth: StyleSheet.hairlineWidth,
2390
+ borderColor: ui.hairline
2391
+ },
2392
+ phoneHead: {
2393
+ alignItems: "center",
2394
+ paddingBottom: 6,
2395
+ marginBottom: 4
2396
+ },
2397
+ phoneAvatar: {
2398
+ width: 34,
2399
+ height: 34,
2400
+ borderRadius: 17,
2401
+ backgroundColor: ui.accentSoft,
2402
+ alignItems: "center",
2403
+ justifyContent: "center"
2404
+ },
2405
+ phoneName: {
2406
+ fontSize: 13,
2407
+ fontWeight: "600",
2408
+ color: ui.ink,
2409
+ marginTop: 3
2410
+ },
2411
+ phoneDay: __spreadProps(__spreadValues({}, type.caption), {
2412
+ fontWeight: "400",
2413
+ marginTop: 2
2414
+ }),
2415
+ bubble: {
2416
+ maxWidth: "82%",
2417
+ paddingVertical: 7,
2418
+ paddingHorizontal: 12,
2419
+ borderRadius: 17,
2420
+ marginTop: 5
2421
+ },
2422
+ bubbleYou: {
2423
+ alignSelf: "flex-end",
2424
+ backgroundColor: ui.bubbleYou
2425
+ },
2426
+ bubbleLucy: {
2427
+ alignSelf: "flex-start",
2428
+ backgroundColor: ui.bubbleLucy
2429
+ },
2430
+ bubbleText: {
2431
+ fontSize: 14,
2432
+ lineHeight: 19,
2433
+ color: ui.ink
2434
+ },
2435
+ delivered: __spreadProps(__spreadValues({
2436
+ alignSelf: "flex-end"
2437
+ }, type.caption), {
2438
+ fontWeight: "400",
2439
+ marginTop: 4
2440
+ }),
2441
+ typing: {
2442
+ flexDirection: "row",
2443
+ alignItems: "center",
2444
+ paddingVertical: 5,
2445
+ paddingHorizontal: 11
2446
+ },
2447
+ textSteps: {
2448
+ gap: 12,
2449
+ marginTop: 18
2450
+ },
2451
+ textStep: {
2452
+ flexDirection: "row",
2453
+ gap: 12
2454
+ },
2455
+ textN: {
2456
+ width: 26,
2457
+ height: 26,
2458
+ borderRadius: 13,
2459
+ backgroundColor: ui.fill,
2460
+ alignItems: "center",
2461
+ justifyContent: "center"
2462
+ },
2463
+ textNText: {
2464
+ fontSize: 13,
2465
+ fontWeight: "700",
2466
+ color: ui.ink
2467
+ },
2468
+ textStepTitle: __spreadProps(__spreadValues({}, type.headline), {
2469
+ fontSize: 15,
2470
+ marginBottom: 1
2471
+ }),
2472
+ btn: {
2473
+ flexDirection: "row",
2474
+ alignItems: "center",
2475
+ justifyContent: "center",
2476
+ gap: 10,
2477
+ marginTop: 24,
2478
+ height: 50,
2479
+ borderRadius: radius.pill,
2480
+ backgroundColor: ui.ink
2481
+ },
2482
+ btnPressed: {
2483
+ opacity: 0.88
2484
+ },
2485
+ btnText: {
2486
+ fontSize: 16,
2487
+ fontWeight: "600",
2488
+ color: ui.surface
2489
+ },
2490
+ areas: {
2491
+ paddingHorizontal: PAD,
2492
+ gap: 12,
2493
+ paddingBottom: 10
2494
+ },
2495
+ area: __spreadValues({
2496
+ borderRadius: radius.card + 4,
2497
+ backgroundColor: ui.surface,
2498
+ padding: 16
2499
+ }, lift),
2500
+ areaTitle: __spreadProps(__spreadValues({}, type.headline), {
2501
+ fontSize: 19,
2502
+ marginBottom: 4
2503
+ }),
2504
+ areaChips: {
2505
+ flexDirection: "row",
2506
+ flexWrap: "wrap",
2507
+ gap: 7,
2508
+ marginTop: 14
2509
+ },
2510
+ minutesHint: __spreadProps(__spreadValues({}, type.subhead), {
2511
+ marginTop: 16
2512
+ }),
2513
+ minutes: {
2514
+ marginTop: 10,
2515
+ borderRadius: radius.group,
2516
+ backgroundColor: ui.surface,
2517
+ overflow: "hidden"
2518
+ },
2519
+ minuteRow: {
2520
+ flexDirection: "row",
2521
+ alignItems: "center",
2522
+ gap: 12,
2523
+ paddingVertical: 12,
2524
+ paddingHorizontal: 14,
2525
+ borderBottomWidth: StyleSheet.hairlineWidth,
2526
+ borderBottomColor: ui.hairline
2527
+ },
2528
+ minuteLast: {
2529
+ borderBottomWidth: 0
2530
+ },
2531
+ swatch: {
2532
+ width: 12,
2533
+ height: 12,
2534
+ borderRadius: 4,
2535
+ borderWidth: 1,
2536
+ borderColor: "rgba(90,45,10,0.1)"
2537
+ },
2538
+ swatchNone: {
2539
+ backgroundColor: "transparent"
2540
+ },
2541
+ minuteOff: {
2542
+ color: ui.muted,
2543
+ textDecorationLine: "line-through"
2544
+ },
2545
+ minuteCheck: {
2546
+ width: 22,
2547
+ height: 22,
2548
+ borderRadius: 11,
2549
+ borderWidth: 1.5,
2550
+ borderColor: "#E3DCD3",
2551
+ backgroundColor: ui.surface,
2552
+ alignItems: "center",
2553
+ justifyContent: "center"
2554
+ },
2555
+ minuteCheckOn: {
2556
+ backgroundColor: CALL_GREEN,
2557
+ borderColor: CALL_GREEN
2558
+ },
2559
+ minutesTotal: {
2560
+ marginTop: 14
2561
+ },
2562
+ minutesTotalText: __spreadProps(__spreadValues({}, type.callout), {
2563
+ fontSize: 15
2564
+ }),
2565
+ minutesTotalB: {
2566
+ fontWeight: "600",
2567
+ color: ui.accentText,
2568
+ fontVariant: ["tabular-nums"]
2569
+ },
2570
+ minuteTop: {
2571
+ flexDirection: "row",
2572
+ justifyContent: "space-between"
2573
+ },
2574
+ minuteLabel: {
2575
+ fontSize: 15,
2576
+ fontWeight: "500",
2577
+ color: ui.ink
2578
+ },
2579
+ minuteValue: {
2580
+ fontSize: 14,
2581
+ fontWeight: "600",
2582
+ color: ui.ink,
2583
+ fontVariant: ["tabular-nums"]
2584
+ },
2585
+ bar: {
2586
+ height: 8,
2587
+ borderRadius: radius.pill,
2588
+ backgroundColor: ui.fill,
2589
+ overflow: "hidden"
2590
+ },
2591
+ barFill: {
2592
+ height: "100%",
2593
+ borderRadius: radius.pill
2594
+ },
2595
+ faqs: __spreadValues({
2596
+ marginTop: 16,
2597
+ marginHorizontal: PAD,
2598
+ borderRadius: 20,
2599
+ overflow: "hidden",
2600
+ backgroundColor: ui.surface
2601
+ }, lift),
2602
+ faq: {
2603
+ paddingHorizontal: 16,
2604
+ borderBottomWidth: StyleSheet.hairlineWidth,
2605
+ borderBottomColor: ui.hairline
2606
+ },
2607
+ faqQ: {
2608
+ flexDirection: "row",
2609
+ alignItems: "center",
2610
+ gap: 12,
2611
+ paddingVertical: 16
2612
+ },
2613
+ faqQText: __spreadProps(__spreadValues({}, type.headline), {
2614
+ flex: 1,
2615
+ fontSize: 16
2616
+ }),
2617
+ faqIcon: {
2618
+ width: 28,
2619
+ height: 28,
2620
+ borderRadius: 14,
2621
+ backgroundColor: ui.fill,
2622
+ alignItems: "center",
2623
+ justifyContent: "center"
2624
+ },
2625
+ faqA: __spreadProps(__spreadValues({}, type.callout), {
2626
+ paddingBottom: 16,
2627
+ marginTop: -4
2628
+ }),
2629
+ final: {
2630
+ paddingHorizontal: PAD,
2631
+ paddingTop: 36
2632
+ },
2633
+ finalChannels: {
2634
+ alignSelf: "stretch",
2635
+ alignItems: "center",
2636
+ gap: 8,
2637
+ marginTop: 14
2638
+ },
2639
+ finalTitle: {
2640
+ fontSize: 21,
2641
+ lineHeight: 27,
2642
+ marginTop: 12,
2643
+ marginBottom: 16
2644
+ },
2645
+ finalShadow: __spreadValues({
2646
+ borderRadius: 24,
2647
+ backgroundColor: ui.surface
2648
+ }, float),
2649
+ finalCard: {
2650
+ alignItems: "center",
2651
+ borderRadius: 24,
2652
+ overflow: "hidden",
2653
+ borderWidth: StyleSheet.hairlineWidth,
2654
+ borderColor: ui.hairline,
2655
+ paddingHorizontal: 16,
2656
+ paddingTop: 24,
2657
+ paddingBottom: 18
2658
+ },
2659
+ yantraCard: __spreadValues({
2660
+ borderRadius: radius.card + 4,
2661
+ padding: 16,
2662
+ backgroundColor: ui.surface
2663
+ }, lift),
2664
+ yantraHead: {
2665
+ flexDirection: "row",
2666
+ alignItems: "center",
2667
+ gap: 12
2668
+ },
2669
+ yantraTitle: {
2670
+ flex: 1,
2671
+ fontSize: 21,
2672
+ lineHeight: 26
2673
+ },
2674
+ yantraIcon: {
2675
+ width: 40,
2676
+ height: 40,
2677
+ borderRadius: 12,
2678
+ backgroundColor: ui.fill,
2679
+ alignItems: "center",
2680
+ justifyContent: "center"
2681
+ },
2682
+ yantraKicker: __spreadProps(__spreadValues({}, type.groupLabel), {
2683
+ fontWeight: "600"
2684
+ }),
2685
+ footer: {
2686
+ alignItems: "center",
2687
+ paddingHorizontal: 28,
2688
+ paddingTop: 44,
2689
+ paddingBottom: 12
2690
+ },
2691
+ footerRule: {
2692
+ width: 36,
2693
+ height: 3,
2694
+ borderRadius: 2,
2695
+ backgroundColor: ui.hairline,
2696
+ marginBottom: 28
2697
+ },
2698
+ footerName: __spreadProps(__spreadValues({}, type.headline), {
2699
+ marginTop: 10
2700
+ }),
2701
+ footerTag: __spreadProps(__spreadValues({}, type.subhead), {
2702
+ marginTop: 2
2703
+ }),
2704
+ footnote: __spreadProps(__spreadValues({}, type.caption), {
2705
+ fontWeight: "400",
2706
+ fontSize: 11,
2707
+ lineHeight: 16,
2708
+ textAlign: "center",
2709
+ marginTop: 18
2710
+ })
2711
+ });export{HomeScreen as default};//# sourceMappingURL=index.js.map