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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) 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 +41 -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 +45 -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 +27 -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 +2715 -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 +188 -0
  214. package/src/__tests__/choresList.test.ts +100 -0
  215. package/src/__tests__/connectLink.test.ts +21 -0
  216. package/src/__tests__/content.test.ts +54 -0
  217. package/src/__tests__/dictation.test.ts +186 -0
  218. package/src/__tests__/envConfig.test.ts +14 -0
  219. package/src/__tests__/haptics.test.ts +202 -0
  220. package/src/__tests__/jobs.test.ts +130 -0
  221. package/src/__tests__/keyboardCover.test.ts +84 -0
  222. package/src/__tests__/liveCard.test.ts +39 -0
  223. package/src/__tests__/lockedPhone.test.ts +355 -0
  224. package/src/__tests__/lucyMotion.test.ts +34 -0
  225. package/src/__tests__/platform.test.ts +32 -0
  226. package/src/__tests__/powerOn.test.ts +62 -0
  227. package/src/__tests__/protocol.test.ts +125 -0
  228. package/src/__tests__/push.test.ts +111 -0
  229. package/src/__tests__/results.test.ts +256 -0
  230. package/src/__tests__/sound.test.ts +248 -0
  231. package/src/__tests__/talkToLucy.test.ts +205 -0
  232. package/src/__tests__/textLink.test.ts +91 -0
  233. package/src/__tests__/voiceDial.test.ts +53 -0
  234. package/src/__tests__/welcomeFlow.test.ts +157 -0
  235. package/src/__tests__/whereLucyWorks.test.ts +81 -0
  236. package/src/__tests__/yantraLinks.test.ts +96 -0
  237. package/src/assets/home/loop-day.jpg +0 -0
  238. package/src/assets/home/loop-day.mp4 +0 -0
  239. package/src/assets/home/loop-time-back.jpg +0 -0
  240. package/src/assets/home/loop-time-back.mp4 +0 -0
  241. package/src/assets/home/loop-where.jpg +0 -0
  242. package/src/assets/home/loop-where.mp4 +0 -0
  243. package/src/assets/home/reel-gym.jpg +0 -0
  244. package/src/assets/home/reel-gym.mp4 +0 -0
  245. package/src/assets/home/reel-internet.jpg +0 -0
  246. package/src/assets/home/reel-internet.mp4 +0 -0
  247. package/src/assets/icon.png +0 -0
  248. package/src/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  249. package/src/assets/lottie/lucy-mark-calendar.json +1827 -0
  250. package/src/assets/lottie/lucy-mark-call.json +1470 -0
  251. package/src/assets/lottie/lucy-mark-connect.json +2552 -0
  252. package/src/assets/lottie/lucy-mark-details.json +1735 -0
  253. package/src/assets/lottie/lucy-mark-email.json +1363 -0
  254. package/src/assets/lottie/lucy-mark-message.json +1154 -0
  255. package/src/assets/lottie/lucy-mark-search.json +1067 -0
  256. package/src/assets/lottie/lucy-mark-think.json +1253 -0
  257. package/src/assets/lottie/lucy-mark-write.json +1532 -0
  258. package/src/assets/lottie/time-back.json +16458 -0
  259. package/src/assets/lottie/where-lucy-works-chat.json +6170 -0
  260. package/src/assets/lottie/where-lucy-works-cloud.json +10066 -0
  261. package/src/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  262. package/src/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  263. package/src/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  264. package/src/assets/sounds/hours-back.m4a +0 -0
  265. package/src/assets/sounds/meet-lucy.m4a +0 -0
  266. package/src/assets/sounds/power-on.m4a +0 -0
  267. package/src/assets/sounds/wind-back.m4a +0 -0
  268. package/src/assets/sounds/youre-in.m4a +0 -0
  269. package/src/chat/.claude-flow/data/pending-insights.jsonl +1 -0
  270. package/src/chat/agent.ts +376 -0
  271. package/src/chat/appFront.ts +39 -0
  272. package/src/chat/auth.ts +433 -0
  273. package/src/chat/chores.ts +394 -0
  274. package/src/chat/connectors.ts +75 -0
  275. package/src/chat/jobs.ts +228 -0
  276. package/src/chat/lucyMotion.ts +33 -0
  277. package/src/chat/protocol.ts +192 -0
  278. package/src/chat/results.ts +224 -0
  279. package/src/chat/store.ts +87 -0
  280. package/src/chat/useDictation.ts +201 -0
  281. package/src/chat/useLucyChat.ts +458 -0
  282. package/src/chat/useMyComputer.ts +41 -0
  283. package/src/chat/whereLucyWorks.ts +97 -0
  284. package/src/chat/workspace.ts +127 -0
  285. package/src/components/.claude-flow/data/pending-insights.jsonl +3 -0
  286. package/src/components/AreaShot.tsx +239 -0
  287. package/src/components/Backdrops.tsx +323 -0
  288. package/src/components/BottomSheet.tsx +96 -0
  289. package/src/components/ChatSheets.tsx +565 -0
  290. package/src/components/ConnectorLogo.tsx +116 -0
  291. package/src/components/CustomDrawer.tsx +526 -0
  292. package/src/components/IdeasPane.tsx +318 -0
  293. package/src/components/ImessageSheet.tsx +280 -0
  294. package/src/components/KeyboardAvoider.tsx +45 -0
  295. package/src/components/Logo.tsx +97 -0
  296. package/src/components/LucyWorking.tsx +122 -0
  297. package/src/components/Markdown.tsx +219 -0
  298. package/src/components/Media.tsx +173 -0
  299. package/src/components/MessagesAppIcon.tsx +51 -0
  300. package/src/components/MicButton.tsx +92 -0
  301. package/src/components/ResultCards.tsx +1067 -0
  302. package/src/components/SignInPrompt.tsx +182 -0
  303. package/src/components/SignedOut.tsx +47 -0
  304. package/src/components/TalkToLucyHero.tsx +540 -0
  305. package/src/components/TalkToLucySheet.tsx +208 -0
  306. package/src/components/VoiceOrb.tsx +364 -0
  307. package/src/components/WhereLucyWorks.tsx +261 -0
  308. package/src/components/WorkspaceSection.tsx +307 -0
  309. package/src/components/YantraMark.tsx +30 -0
  310. package/src/components/drawerHeader.tsx +46 -0
  311. package/src/components/kit.tsx +309 -0
  312. package/src/components/lottieInstalled.ts +7 -0
  313. package/src/components/ui.tsx +700 -0
  314. package/src/components/useSignOut.ts +21 -0
  315. package/src/components/viewport.tsx +166 -0
  316. package/src/components/voiceDial.ts +45 -0
  317. package/src/compute.ts +168 -0
  318. package/src/config/env-config.ts +50 -0
  319. package/src/config/routes.ts +28 -0
  320. package/src/content.ts +217 -0
  321. package/src/hooks/keyboardCover.ts +70 -0
  322. package/src/hooks/useKeyboard.ts +135 -0
  323. package/src/hooks/useReducedMotion.ts +19 -0
  324. package/src/imessage/openMessages.ts +53 -0
  325. package/src/imessage/platform.ts +32 -0
  326. package/src/imessage/textLink.ts +307 -0
  327. package/src/index.ts +24 -0
  328. package/src/live/card.ts +62 -0
  329. package/src/live/liveActivity.ts +192 -0
  330. package/src/module.ts +8 -0
  331. package/src/offer/BlackFridayOffer.tsx +394 -0
  332. package/src/offer/blackFriday.ts +109 -0
  333. package/src/offer/parts.tsx +650 -0
  334. package/src/offer/state.ts +78 -0
  335. package/src/push/push.ts +171 -0
  336. package/src/push/usePushNotifications.ts +47 -0
  337. package/src/screens/Account/index.tsx +310 -0
  338. package/src/screens/Chat/.claude-flow/data/pending-insights.jsonl +4 -0
  339. package/src/screens/Chat/index.tsx +891 -0
  340. package/src/screens/Chores/index.tsx +35 -0
  341. package/src/screens/Connectors/index.tsx +35 -0
  342. package/src/screens/History/index.tsx +346 -0
  343. package/src/screens/Home/index.tsx +2776 -0
  344. package/src/screens/Home/media.ts +31 -0
  345. package/src/screens/Welcome/index.tsx +1182 -0
  346. package/src/talk/talkToLucy.ts +187 -0
  347. package/src/theme/colors.ts +38 -0
  348. package/src/theme/fonts.ts +30 -0
  349. package/src/theme/muse.ts +86 -0
  350. package/src/utils/links.ts +84 -0
  351. package/src/utils/yantraLinks.ts +94 -0
  352. package/src/welcome/flow.ts +418 -0
  353. package/src/welcome/haptics.ts +179 -0
  354. package/src/welcome/parts.tsx +2160 -0
  355. package/src/welcome/powerOn.ts +84 -0
  356. package/src/welcome/seen.ts +68 -0
  357. package/src/welcome/sound.ts +173 -0
  358. package/tools/lottie/chat.motion +0 -0
  359. package/tools/lottie/cloud.motion +0 -0
  360. package/tools/lottie/generate.mjs +1209 -0
  361. package/tools/lottie/inter-glyphs.json +4416 -0
  362. package/tools/lottie/lucy-mark-calendar.motion +0 -0
  363. package/tools/lottie/lucy-mark-call.motion +0 -0
  364. package/tools/lottie/lucy-mark-connect.motion +0 -0
  365. package/tools/lottie/lucy-mark-details.motion +0 -0
  366. package/tools/lottie/lucy-mark-email.motion +0 -0
  367. package/tools/lottie/lucy-mark-message.motion +0 -0
  368. package/tools/lottie/lucy-mark-search.motion +0 -0
  369. package/tools/lottie/lucy-mark-think.motion +0 -0
  370. package/tools/lottie/lucy-mark-write.motion +0 -0
  371. package/tools/lottie/mark.json +1 -0
  372. package/tools/lottie/mine-none.motion +0 -0
  373. package/tools/lottie/mine-offline.motion +0 -0
  374. package/tools/lottie/mine-online.motion +0 -0
  375. package/tools/lottie/time-back.mjs +604 -0
  376. package/tools/sounds/render.mjs +730 -0
  377. package/tsconfig.json +17 -0
  378. package/README.md +0 -3
@@ -0,0 +1,2715 @@
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 {isTestBuild,config}from'../../config/env-config.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 TEST_BUILD = isTestBuild({
1109
+ dev: __DEV__,
1110
+ channel: config.RELEASE_CHANNEL
1111
+ });
1112
+ const OFFER_ON = TEST_BUILD;
1113
+ function HomeScreen() {
1114
+ var _a, _b, _c;
1115
+ const navigation = useNavigation();
1116
+ const route = useRoute();
1117
+ const {
1118
+ width,
1119
+ height: winH
1120
+ } = useWindowDimensions();
1121
+ const headerHeight = useHeaderHeight();
1122
+ const scrollY = useRef(new Animated.Value(0)).current;
1123
+ const page = useRef(null);
1124
+ const {
1125
+ keyboard,
1126
+ covers,
1127
+ onLayout: onPageLayout
1128
+ } = useKeyboardCover(page);
1129
+ const scrollAt = useRef(0);
1130
+ const focusedBox = useRef(null);
1131
+ const [focusTurn, setFocusTurn] = useState(0);
1132
+ const onComposerFocus = (box) => {
1133
+ focusedBox.current = box;
1134
+ if (box)
1135
+ setFocusTurn((n) => n + 1);
1136
+ };
1137
+ const [lift2, setLift] = useState(0);
1138
+ useEffect(() => {
1139
+ if (!keyboard.shown) {
1140
+ setLift(0);
1141
+ return void 0;
1142
+ }
1143
+ const dock = () => {
1144
+ var _a2;
1145
+ return (_a2 = page.current) == null ? void 0 : _a2.measureInWindow((_px, pageY, _pw, pageH) => {
1146
+ var _a3;
1147
+ return (_a3 = focusedBox.current) == null ? void 0 : _a3.measureInWindow((_x, y, _w, h) => {
1148
+ var _a4, _b2;
1149
+ const top = pageY + pageH - covers;
1150
+ const by = Math.round(y + h + KEYBOARD_GAP - top);
1151
+ if (Math.abs(by) <= 1)
1152
+ return;
1153
+ const to = scrollAt.current + by;
1154
+ if (to < 0) {
1155
+ setLift((l) => l - to);
1156
+ (_a4 = scrollRef.current) == null ? void 0 : _a4.scrollTo({
1157
+ y: 0,
1158
+ animated: true
1159
+ });
1160
+ } else {
1161
+ (_b2 = scrollRef.current) == null ? void 0 : _b2.scrollTo({
1162
+ y: to,
1163
+ animated: true
1164
+ });
1165
+ }
1166
+ });
1167
+ });
1168
+ };
1169
+ const first = Platform.OS === "ios" ? keyboard.duration + 60 : 80;
1170
+ const timers = [setTimeout(dock, first), setTimeout(dock, first + 300)];
1171
+ return () => timers.forEach(clearTimeout);
1172
+ }, [keyboard.shown, keyboard.duration, covers, focusTurn]);
1173
+ const scrollRef = useRef(null);
1174
+ const {
1175
+ viewport,
1176
+ handlers: viewportHandlers,
1177
+ contentRef
1178
+ } = useViewportController();
1179
+ const offsets = useRef({});
1180
+ const [imessageOpen, setImessageOpen] = useState(false);
1181
+ const totalMin = MINUTES.reduce((sum, m) => sum + m.min, 0);
1182
+ const areaWidth = Math.min(width * 0.78, 330);
1183
+ const {
1184
+ authenticated,
1185
+ gate,
1186
+ prompt
1187
+ } = useSignInGate((r, params) => navigation.navigate(r, params));
1188
+ const {
1189
+ user
1190
+ } = useIsUserAuthenticated();
1191
+ const person = authenticated && user ? user : null;
1192
+ ((person == null ? void 0 : person.given_name) || (person == null ? void 0 : person.name) || "").trim().split(/\s+/)[0] || "";
1193
+ useChoreCount(Boolean(person));
1194
+ const welcomeSeen = useWelcomeSeen();
1195
+ useEffect(() => {
1196
+ if (welcomeSeen === false)
1197
+ navigation.navigate(CLOCKBOOK_ROUTES.WELCOME);
1198
+ }, [navigation, welcomeSeen]);
1199
+ useEffect(() => {
1200
+ if (welcomeSeen !== true)
1201
+ return void 0;
1202
+ return watchTalkRequests(() => navigation.navigate(...drawerRoute(CLOCKBOOK_ROUTES.HOME, listeningHome())));
1203
+ }, [navigation, welcomeSeen]);
1204
+ usePushNotifications(Boolean(authenticated) && welcomeSeen === true, () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT, {
1205
+ at: Date.now()
1206
+ }));
1207
+ const onHome = useIsFocused();
1208
+ const offerSeen = useOfferSeen(BLACK_FRIDAY.id);
1209
+ const minute = useNow(6e4, OFFER_ON);
1210
+ const offerOn = offerShows(minute, BLACK_FRIDAY, {
1211
+ on: OFFER_ON,
1212
+ early: TEST_BUILD
1213
+ });
1214
+ const [offerOpen, setOfferOpen] = useState(null);
1215
+ const [offerSheet, setOfferSheet] = useState(false);
1216
+ const [offerAt, setOfferAt] = useState(null);
1217
+ const markBox = useRef(null);
1218
+ const eyebrowBox = useRef(null);
1219
+ const openOffer = useCallback((mode) => {
1220
+ const centre = (box, then) => {
1221
+ if (!box)
1222
+ return then(null);
1223
+ box.measureInWindow((x, y, w, h) => then(w > 0 && h > 0 ? {
1224
+ x: x + w / 2,
1225
+ y: y + h / 2
1226
+ } : null));
1227
+ };
1228
+ centre(markBox.current, (origin) => centre(eyebrowBox.current, (target) => {
1229
+ setOfferAt(origin ? {
1230
+ origin,
1231
+ target: target != null ? target : origin
1232
+ } : null);
1233
+ setOfferOpen(mode);
1234
+ }));
1235
+ }, []);
1236
+ useEffect(() => {
1237
+ if (!offerOn || !authenticated || welcomeSeen !== true || !onHome || offerSeen !== "new")
1238
+ return void 0;
1239
+ const timer = setTimeout(() => {
1240
+ markOffer(BLACK_FRIDAY.id, "seen").catch(() => void 0);
1241
+ openOffer("offer");
1242
+ }, 700);
1243
+ return () => clearTimeout(timer);
1244
+ }, [authenticated, offerOn, offerSeen, onHome, openOffer, welcomeSeen]);
1245
+ const handOver = (chore) => gate("chat", () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT, {
1246
+ prompt: chore,
1247
+ at: Date.now()
1248
+ }), chore);
1249
+ const onChip = (c) => handOver(c.prompt);
1250
+ const textLucy = () => gate("imessage", () => setImessageOpen(true));
1251
+ const textLucyRef = useRef(textLucy);
1252
+ textLucyRef.current = textLucy;
1253
+ const openChatRef = useRef(() => gate("chat", () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT)));
1254
+ openChatRef.current = () => gate("chat", () => navigation.navigate(CLOCKBOOK_ROUTES.CHAT));
1255
+ const anchor = (key) => (e) => {
1256
+ offsets.current[key] = e.nativeEvent.layout.y;
1257
+ };
1258
+ const {
1259
+ section,
1260
+ at,
1261
+ listen
1262
+ } = (_a = route.params) != null ? _a : {};
1263
+ useEffect(() => {
1264
+ var _a2;
1265
+ if (!at)
1266
+ return;
1267
+ const y = section ? offsets.current[section] : 0;
1268
+ if (y === void 0)
1269
+ return;
1270
+ (_a2 = scrollRef.current) == null ? void 0 : _a2.scrollTo({
1271
+ y: Math.max(0, y - headerHeight - 12),
1272
+ animated: true
1273
+ });
1274
+ }, [section, at, headerHeight]);
1275
+ useLayoutEffect(() => {
1276
+ navigation.setOptions({
1277
+ headerTitle: () => null,
1278
+ headerTransparent: true,
1279
+ headerBackground: () => /* @__PURE__ */ jsx(View, { style: StyleSheet.absoluteFill, children: /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, s.headerFill, {
1280
+ opacity: scrollY.interpolate({
1281
+ inputRange: [0, 40],
1282
+ outputRange: [0, 1],
1283
+ extrapolate: "clamp"
1284
+ })
1285
+ }] }) }),
1286
+ headerLeft: () => /* @__PURE__ */ jsx(View, { style: [s.headerSide, {
1287
+ marginLeft: PAD,
1288
+ alignItems: "flex-start"
1289
+ }], children: /* @__PURE__ */ jsx(FloatingButton, { icon: "menu", label: "Menu", onPress: () => navigation.dispatch(DrawerActions.toggleDrawer()) }) }),
1290
+ headerRight: () => /* @__PURE__ */ jsx(View, { style: [s.headerSide, {
1291
+ marginRight: PAD,
1292
+ alignItems: "flex-end"
1293
+ }], children: /* @__PURE__ */ jsxs(View, { style: s.iconCapsule, children: [
1294
+ /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: TEXT_LUCY, onPress: () => textLucyRef.current(), hitSlop: 12, style: ({
1295
+ pressed
1296
+ }) => [s.iconCapsuleBtn, pressed && {
1297
+ opacity: 0.5
1298
+ }], children: /* @__PURE__ */ jsx(MessagesAppIcon, { size: 18 }) }),
1299
+ /* @__PURE__ */ jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: "Chat with Lucy", onPress: () => openChatRef.current(), hitSlop: 12, style: ({
1300
+ pressed
1301
+ }) => [s.iconCapsuleBtn, pressed && {
1302
+ opacity: 0.5
1303
+ }], children: /* @__PURE__ */ jsx(View, { style: s.chatAppIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: "chatbubble-ellipses", size: 10, color: "#FFFFFF" }) }) })
1304
+ ] }) }),
1305
+ headerShadowVisible: false
1306
+ });
1307
+ }, [navigation, scrollY]);
1308
+ return /* @__PURE__ */ jsxs(View, { ref: page, collapsable: false, style: s.page, onLayout: onPageLayout, children: [
1309
+ /* @__PURE__ */ jsx(ViewportProvider, { value: viewport, children: /* @__PURE__ */ jsx(ScrollView, __spreadProps(__spreadValues({ ref: scrollRef, style: s.page, contentContainerStyle: {
1310
+ paddingTop: lift2,
1311
+ paddingBottom: 28 + covers
1312
+ }, keyboardShouldPersistTaps: "handled", keyboardDismissMode: "on-drag", showsVerticalScrollIndicator: false }, viewportHandlers), { scrollEventThrottle: 16, onScroll: (e) => {
1313
+ viewportHandlers.onScroll(e);
1314
+ scrollY.setValue(e.nativeEvent.contentOffset.y);
1315
+ scrollAt.current = e.nativeEvent.contentOffset.y;
1316
+ }, children: /* @__PURE__ */ jsxs(View, { ref: contentRef, collapsable: false, children: [
1317
+ /* @__PURE__ */ jsxs(View, { style: [s.heroZone, {
1318
+ paddingTop: headerHeight
1319
+ }], children: [
1320
+ /* @__PURE__ */ jsx(Aurora, {}),
1321
+ /* @__PURE__ */ jsxs(View, { style: s.hero, children: [
1322
+ /* @__PURE__ */ jsx(Rise, { style: {
1323
+ alignSelf: "center"
1324
+ }, children: /* @__PURE__ */ jsx(View, { ref: markBox, collapsable: false, children: /* @__PURE__ */ jsx(HaloMark, {}) }) }),
1325
+ /* @__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: TEST_BUILD ? () => openOffer("offer") : void 0 }) : /* @__PURE__ */ jsx(
1326
+ Text,
1327
+ {
1328
+ style: [s.heroEyebrow, {
1329
+ textAlign: "center"
1330
+ }],
1331
+ onLongPress: TEST_BUILD ? () => resetOffer(BLACK_FRIDAY.id).catch(() => void 0) : void 0,
1332
+ children: "For everyone with a to-do list"
1333
+ }
1334
+ ) }) }),
1335
+ /* @__PURE__ */ jsx(Rise, { delay: 140, children: /* @__PURE__ */ jsx(Heading, { pre: "Get your evenings ", em: "back.", large: true, center: true, style: {
1336
+ marginTop: 8
1337
+ } }) }),
1338
+ /* @__PURE__ */ jsx(Rise, { delay: 210, children: /* @__PURE__ */ jsx(Text, { style: [s.lead, {
1339
+ textAlign: "center"
1340
+ }], children: "Clockbook takes the life admin off your plate: the calls, the bills, the cancellations, the groceries and the appointments." }) }),
1341
+ /* @__PURE__ */ jsx(Rise, { delay: 280, children: /* @__PURE__ */ jsx(Composer, { onSubmit: handOver, onFocusBox: onComposerFocus, bigMic: true, listenAt: listen }) })
1342
+ ] }),
1343
+ /* @__PURE__ */ jsxs(Rise, { delay: 350, children: [
1344
+ /* @__PURE__ */ jsx(Text, { style: s.tryLabel, children: "Try" }),
1345
+ /* @__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)) })
1346
+ ] }),
1347
+ /* @__PURE__ */ jsx(Rise, { delay: 420, children: /* @__PURE__ */ jsxs(View, { style: s.textCard, children: [
1348
+ /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", onPress: textLucy, style: ({
1349
+ pressed
1350
+ }) => [s.textCardRow, pressed && {
1351
+ backgroundColor: ui.fill
1352
+ }], children: [
1353
+ /* @__PURE__ */ jsx(MessagesAppIcon, { size: 36 }),
1354
+ /* @__PURE__ */ jsx(Text, { style: s.textCardTitle, children: TEXT_LUCY }),
1355
+ /* @__PURE__ */ jsx(Ionicons, { name: "chevron-forward", size: 18, color: ui.faint })
1356
+ ] }),
1357
+ /* @__PURE__ */ jsx(View, { style: s.textCardTrust, children: /* @__PURE__ */ jsx(Trust, { children: "Nothing is paid or changed without your yes" }) })
1358
+ ] }) })
1359
+ ] }),
1360
+ /* @__PURE__ */ jsxs(View, { style: s.strip, children: [
1361
+ /* @__PURE__ */ jsx(Marquee, { chores: STRIP_CHORES.slice(0, 11), onChore: onChip }),
1362
+ /* @__PURE__ */ jsx(Marquee, { chores: STRIP_CHORES.slice(11), onChore: onChip, reverse: true }),
1363
+ /* @__PURE__ */ jsx(EdgeFade, { side: "left" }),
1364
+ /* @__PURE__ */ jsx(EdgeFade, { side: "right" })
1365
+ ] }),
1366
+ /* @__PURE__ */ jsxs(Reveal, { style: s.sectionList, onLayout: anchor("how"), children: [
1367
+ /* @__PURE__ */ jsxs(View, { style: s.sectionHead, children: [
1368
+ /* @__PURE__ */ jsx(Eyebrow, { children: "How it works" }),
1369
+ /* @__PURE__ */ jsx(Heading, { pre: "Text it. It gets ", em: "done." })
1370
+ ] }),
1371
+ /* @__PURE__ */ jsx(View, { style: s.steps, children: STEPS.map((step, i) => {
1372
+ var _a2;
1373
+ const last = i === STEPS.length - 1;
1374
+ return /* @__PURE__ */ jsxs(View, { style: s.step, children: [
1375
+ /* @__PURE__ */ jsxs(View, { style: s.stepRail, children: [
1376
+ /* @__PURE__ */ jsx(View, { style: s.stepIcon, children: /* @__PURE__ */ jsx(Ionicons, { name: (_a2 = STEP_ICONS[i]) != null ? _a2 : "sparkles-outline", size: 20, color: ui.accentText }) }),
1377
+ last ? null : /* @__PURE__ */ jsx(View, { style: s.stepLine })
1378
+ ] }),
1379
+ /* @__PURE__ */ jsxs(View, { style: [s.stepBody, last && {
1380
+ paddingBottom: 0
1381
+ }], children: [
1382
+ /* @__PURE__ */ jsx(Text, { style: s.stepTitle, children: step.title }),
1383
+ /* @__PURE__ */ jsx(Text, { style: s.body, children: step.body })
1384
+ ] })
1385
+ ] }, step.title);
1386
+ }) })
1387
+ ] }),
1388
+ /* @__PURE__ */ jsx(Reveal, { style: s.sectionTight, children: /* @__PURE__ */ jsx(View, { style: s.timeCardShadow, children: /* @__PURE__ */ jsxs(View, { style: s.timeCard, children: [
1389
+ /* @__PURE__ */ jsx(DarkFill, {}),
1390
+ /* @__PURE__ */ jsx(TimeBackLottie, {}),
1391
+ /* @__PURE__ */ jsxs(View, { style: s.timeCopy, children: [
1392
+ /* @__PURE__ */ jsx(Eyebrow, { dark: true, children: "Time back" }),
1393
+ /* @__PURE__ */ jsx(Heading, { dark: true, pre: "After work, sleep and chores, the evening is ", em: "short.", style: s.timeTitle }),
1394
+ /* @__PURE__ */ jsx(View, { style: s.stats, children: STATS.map((st) => /* @__PURE__ */ jsxs(View, { style: s.stat, children: [
1395
+ /* @__PURE__ */ jsxs(View, { style: s.statRow, children: [
1396
+ /* @__PURE__ */ jsx(CountUp, { to: st.to, decimals: st.decimals, style: s.statValue }),
1397
+ /* @__PURE__ */ jsxs(Text, { style: s.statUnit, children: [
1398
+ " ",
1399
+ st.unit
1400
+ ] })
1401
+ ] }),
1402
+ /* @__PURE__ */ jsx(Text, { style: s.statLabel, children: st.label })
1403
+ ] }, st.label)) }),
1404
+ /* @__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" })
1405
+ ] })
1406
+ ] }) }) }),
1407
+ /* @__PURE__ */ jsxs(Reveal, { style: s.section, onLayout: anchor("calls"), children: [
1408
+ /* @__PURE__ */ jsx(Eyebrow, { icon: /* @__PURE__ */ jsx(Ionicons, { name: "call-outline", size: 14, color: ui.muted }), children: "Lucy makes the call" }),
1409
+ /* @__PURE__ */ jsx(Heading, { pre: "Never sit on ", em: "hold", post: " again." }),
1410
+ /* @__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." }),
1411
+ /* @__PURE__ */ jsx(CallCard, {})
1412
+ ] }),
1413
+ /* @__PURE__ */ jsx(Reveal, { style: s.reels, delay: 90, children: REELS.map((r, i) => /* @__PURE__ */ jsx(View, { style: [s.reel, i === 1 && {
1414
+ marginTop: 40
1415
+ }], children: /* @__PURE__ */ jsx(Reel, __spreadValues({}, r)) }, r.title)) }),
1416
+ /* @__PURE__ */ jsx(Text, { style: [s.note, {
1417
+ paddingHorizontal: PAD + 4
1418
+ }], children: VIDEO_NOTE }),
1419
+ /* @__PURE__ */ jsxs(Reveal, { style: [s.section, s.band], onLayout: anchor("imessage"), children: [
1420
+ /* @__PURE__ */ jsx(SoftFill, {}),
1421
+ /* @__PURE__ */ jsx(Eyebrow, { icon: /* @__PURE__ */ jsx(MessagesAppIcon, { size: 16 }), children: `Now on ${MESSAGES_APP}` }),
1422
+ /* @__PURE__ */ jsx(Heading, { pre: "Text Lucy like you\u2019d text a ", em: "friend." }),
1423
+ /* @__PURE__ */ jsxs(Text, { style: s.bodyLead, children: [
1424
+ "Lucy is in Messages too. Send her a chore from ",
1425
+ TEXT_FROM,
1426
+ ", and she texts back as it gets done. Same Lucy, same account, nothing to install."
1427
+ ] }),
1428
+ /* @__PURE__ */ jsx(PhoneThread, {}),
1429
+ /* @__PURE__ */ jsx(View, { style: s.textSteps, children: textSteps(TEXT_STEPS).map((step, i) => /* @__PURE__ */ jsxs(View, { style: s.textStep, children: [
1430
+ /* @__PURE__ */ jsx(View, { style: s.textN, children: /* @__PURE__ */ jsx(Text, { style: s.textNText, children: i + 1 }) }),
1431
+ /* @__PURE__ */ jsxs(View, { style: {
1432
+ flex: 1
1433
+ }, children: [
1434
+ /* @__PURE__ */ jsx(Text, { style: s.textStepTitle, children: step.title }),
1435
+ /* @__PURE__ */ jsx(Text, { style: s.body, children: step.body })
1436
+ ] })
1437
+ ] }, step.title)) }),
1438
+ /* @__PURE__ */ jsxs(Pressable, { accessibilityRole: "button", onPress: textLucy, style: ({
1439
+ pressed
1440
+ }) => [s.btn, pressed && s.btnPressed], children: [
1441
+ /* @__PURE__ */ jsx(MessagesAppIcon, { size: 22 }),
1442
+ /* @__PURE__ */ jsx(Text, { style: s.btnText, children: TEXT_LUCY })
1443
+ ] }),
1444
+ /* @__PURE__ */ jsx(Text, { style: [s.note, {
1445
+ textAlign: "center"
1446
+ }], children: "Message and data rates may apply." })
1447
+ ] }),
1448
+ /* @__PURE__ */ jsxs(Reveal, { style: s.sectionHeadOnly, onLayout: anchor("areas"), children: [
1449
+ /* @__PURE__ */ jsx(Eyebrow, { children: "What it handles" }),
1450
+ /* @__PURE__ */ jsx(Heading, { pre: "Hand over every corner of ", em: "home life." })
1451
+ ] }),
1452
+ /* @__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, {
1453
+ width: areaWidth
1454
+ }], children: [
1455
+ /* @__PURE__ */ jsx(AreaShot, { area: a.key }),
1456
+ /* @__PURE__ */ jsx(Text, { style: s.areaTitle, children: a.title }),
1457
+ /* @__PURE__ */ jsx(Text, { style: s.body, children: a.blurb }),
1458
+ /* @__PURE__ */ jsx(View, { style: s.areaChips, children: a.chores.map((c) => /* @__PURE__ */ jsx(ChoreChip, { chore: c, onPress: onChip, small: true }, c.label)) })
1459
+ ] }, a.key)) }),
1460
+ /* @__PURE__ */ jsxs(Reveal, { style: [s.section, s.band], children: [
1461
+ /* @__PURE__ */ jsx(SoftFill, {}),
1462
+ /* @__PURE__ */ jsx(Eyebrow, { children: "Where it comes from" }),
1463
+ /* @__PURE__ */ jsx(Heading, { pre: `${totalMin} minutes, chore by `, em: "chore." }),
1464
+ /* @__PURE__ */ jsx(MinutesPicker, {}),
1465
+ /* @__PURE__ */ jsxs(Text, { style: [s.body, {
1466
+ marginTop: 14
1467
+ }], children: [
1468
+ "Clockbook can't fold the laundry. The ",
1469
+ HOUSEWORK_MIN,
1470
+ " minutes a day of cleaning and washing stay yours; the rest you can hand over.\xB9"
1471
+ ] })
1472
+ ] }),
1473
+ /* @__PURE__ */ jsxs(Reveal, { style: s.sectionList, onLayout: anchor("faq"), children: [
1474
+ /* @__PURE__ */ jsxs(View, { style: s.sectionHead, children: [
1475
+ /* @__PURE__ */ jsx(Eyebrow, { children: "Questions" }),
1476
+ /* @__PURE__ */ jsx(Heading, { pre: "Good to ", em: "know." })
1477
+ ] }),
1478
+ /* @__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)) })
1479
+ ] }),
1480
+ /* @__PURE__ */ jsx(Reveal, { style: s.final, children: /* @__PURE__ */ jsx(View, { style: s.finalShadow, children: /* @__PURE__ */ jsxs(View, { style: s.finalCard, children: [
1481
+ /* @__PURE__ */ jsx(FinalFill, {}),
1482
+ /* @__PURE__ */ jsx(TimeBackMark, { size: 40 }),
1483
+ /* @__PURE__ */ jsx(Heading, { pre: "What\u2019s the first chore you\u2019d ", em: "hand over?", center: true, style: s.finalTitle }),
1484
+ /* @__PURE__ */ jsx(View, { style: {
1485
+ alignSelf: "stretch"
1486
+ }, children: /* @__PURE__ */ jsx(Composer, { onSubmit: handOver, onFocusBox: onComposerFocus }) }),
1487
+ /* @__PURE__ */ jsxs(View, { style: s.finalChannels, children: [
1488
+ /* @__PURE__ */ jsx(ImessagePill, { onPress: textLucy }),
1489
+ /* @__PURE__ */ jsx(View, { style: {
1490
+ alignSelf: "stretch"
1491
+ }, children: /* @__PURE__ */ jsx(Trust, { children: "Lucy asks before she pays for anything or changes an account" }) })
1492
+ ] })
1493
+ ] }) }) }),
1494
+ /* @__PURE__ */ jsx(Reveal, { style: s.sectionTight, children: /* @__PURE__ */ jsxs(View, { style: s.yantraCard, children: [
1495
+ /* @__PURE__ */ jsxs(View, { style: s.yantraHead, children: [
1496
+ /* @__PURE__ */ jsx(View, { style: s.yantraIcon, children: /* @__PURE__ */ jsx(YantraMark, { size: 24 }) }),
1497
+ /* @__PURE__ */ jsx(Heading, { pre: "Running a business? That\u2019s ", em: "Yantra.", style: s.yantraTitle })
1498
+ ] }),
1499
+ /* @__PURE__ */ jsx(Text, { style: [s.body, {
1500
+ marginTop: 8
1501
+ }], 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." }),
1502
+ /* @__PURE__ */ jsx(Button, { label: "Go to yantra.app", icon: "open-outline", variant: "secondary", onPress: () => openYantraUrl(yantraAppUrl()), style: {
1503
+ marginTop: 18,
1504
+ alignSelf: "flex-start"
1505
+ } })
1506
+ ] }) }),
1507
+ /* @__PURE__ */ jsxs(View, { style: s.footer, children: [
1508
+ /* @__PURE__ */ jsx(View, { style: s.footerRule }),
1509
+ /* @__PURE__ */ jsx(Mark, { size: 28 }),
1510
+ /* @__PURE__ */ jsx(Text, { style: s.footerName, children: "Clockbook" }),
1511
+ /* @__PURE__ */ jsx(Text, { style: s.footerTag, children: "Time back, every day." }),
1512
+ /* @__PURE__ */ jsxs(Text, { style: s.footnote, children: [
1513
+ "\xB9 ",
1514
+ FOOTNOTE,
1515
+ " ",
1516
+ VIDEO_NOTE
1517
+ ] })
1518
+ ] })
1519
+ ] }) })) }),
1520
+ prompt,
1521
+ /* @__PURE__ */ jsx(ImessageSheet, { visible: imessageOpen, onClose: () => setImessageOpen(false), onChatHere: () => {
1522
+ setImessageOpen(false);
1523
+ navigation.navigate(CLOCKBOOK_ROUTES.CHAT, {
1524
+ at: Date.now()
1525
+ });
1526
+ }, onSignIn: () => {
1527
+ setImessageOpen(false);
1528
+ navigation.navigate(AuthMobileNavigationRoutesEnum.Login, {
1529
+ redirect: "back"
1530
+ });
1531
+ } }),
1532
+ /* @__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) }),
1533
+ /* @__PURE__ */ jsx(OfferSheet, { visible: offerSheet, offer: BLACK_FRIDAY, onClose: () => setOfferSheet(false), onClaim: () => {
1534
+ setOfferSheet(false);
1535
+ markOffer(BLACK_FRIDAY.id, "claimed").catch(() => void 0);
1536
+ setTimeout(() => openOffer("claimed"), 320);
1537
+ } })
1538
+ ] });
1539
+ }
1540
+ const CALL_GREEN = "#1FA855";
1541
+ const CARD_W = 248;
1542
+ const TIME_PEACH = "#FFB48A";
1543
+ const TIME_LABEL = "#D8CEC5";
1544
+ const s = StyleSheet.create({
1545
+ page: {
1546
+ flex: 1,
1547
+ backgroundColor: ui.bg
1548
+ },
1549
+ headerActions: {
1550
+ flexDirection: "row",
1551
+ alignItems: "center",
1552
+ gap: 8
1553
+ },
1554
+ iconCapsule: __spreadValues({
1555
+ flexDirection: "row",
1556
+ alignItems: "center",
1557
+ gap: 12,
1558
+ height: 38,
1559
+ paddingHorizontal: 14,
1560
+ borderRadius: 19,
1561
+ backgroundColor: ui.surface
1562
+ }, float),
1563
+ iconCapsuleBtn: {
1564
+ width: 20,
1565
+ height: 20,
1566
+ alignItems: "center",
1567
+ justifyContent: "center"
1568
+ },
1569
+ chatAppIcon: {
1570
+ width: 18,
1571
+ height: 18,
1572
+ borderRadius: 5,
1573
+ backgroundColor: ui.accent,
1574
+ alignItems: "center",
1575
+ justifyContent: "center"
1576
+ },
1577
+ headerSide: {
1578
+ minWidth: 84
1579
+ },
1580
+ headerFill: {
1581
+ backgroundColor: ui.bg,
1582
+ borderBottomWidth: StyleSheet.hairlineWidth,
1583
+ borderBottomColor: ui.hairline
1584
+ },
1585
+ eyebrowRow: {
1586
+ flexDirection: "row",
1587
+ alignItems: "center",
1588
+ gap: 6,
1589
+ marginBottom: 8
1590
+ },
1591
+ eyebrow: __spreadProps(__spreadValues({}, type.groupLabel), {
1592
+ fontWeight: "600"
1593
+ }),
1594
+ eyebrowDark: {
1595
+ color: TIME_PEACH
1596
+ },
1597
+ heading: __spreadProps(__spreadValues({}, type.title), {
1598
+ fontSize: 24,
1599
+ lineHeight: 30
1600
+ }),
1601
+ headingLarge: __spreadProps(__spreadValues({}, type.largeTitle), {
1602
+ fontSize: 28,
1603
+ lineHeight: 34,
1604
+ letterSpacing: -0.6
1605
+ }),
1606
+ headingEm: {
1607
+ color: ui.accentText
1608
+ },
1609
+ headingDark: {
1610
+ color: "#FFFFFF"
1611
+ },
1612
+ headingEmDark: {
1613
+ color: "#FF8A3D"
1614
+ },
1615
+ lead: __spreadProps(__spreadValues({}, type.callout), {
1616
+ fontSize: 15.5,
1617
+ lineHeight: 22,
1618
+ marginTop: 8,
1619
+ marginBottom: 18
1620
+ }),
1621
+ body: __spreadValues({}, type.callout),
1622
+ bodyLead: __spreadProps(__spreadValues({}, type.callout), {
1623
+ fontSize: 16,
1624
+ lineHeight: 23,
1625
+ marginTop: 10,
1626
+ marginBottom: 22
1627
+ }),
1628
+ note: __spreadProps(__spreadValues({}, type.footnote), {
1629
+ fontSize: 12,
1630
+ lineHeight: 17,
1631
+ marginTop: 10
1632
+ }),
1633
+ heroZone: {
1634
+ paddingBottom: 8
1635
+ },
1636
+ hero: {
1637
+ paddingHorizontal: PAD,
1638
+ paddingTop: 8,
1639
+ paddingBottom: 4
1640
+ },
1641
+ halo: {
1642
+ width: 60,
1643
+ height: 60,
1644
+ marginTop: 14,
1645
+ alignItems: "center",
1646
+ justifyContent: "center"
1647
+ },
1648
+ haloGlow: {
1649
+ position: "absolute",
1650
+ width: 120,
1651
+ height: 120,
1652
+ left: -30,
1653
+ top: -30
1654
+ },
1655
+ haloTile: __spreadValues({
1656
+ width: 60,
1657
+ height: 60,
1658
+ borderRadius: 18,
1659
+ backgroundColor: ui.surface,
1660
+ borderWidth: StyleSheet.hairlineWidth,
1661
+ borderColor: ui.hairline,
1662
+ alignItems: "center",
1663
+ justifyContent: "center"
1664
+ }, float),
1665
+ eyebrowBox: {
1666
+ alignItems: "center"
1667
+ },
1668
+ heroEyebrow: {
1669
+ fontSize: 12,
1670
+ lineHeight: 16,
1671
+ fontWeight: "700",
1672
+ letterSpacing: 1.6,
1673
+ textTransform: "uppercase",
1674
+ color: ui.accentText,
1675
+ marginTop: 22
1676
+ },
1677
+ composerRow: {
1678
+ flexDirection: "row",
1679
+ alignItems: "center",
1680
+ gap: 8,
1681
+ paddingLeft: 2
1682
+ },
1683
+ composerHint: __spreadProps(__spreadValues({}, type.footnote), {
1684
+ flex: 1,
1685
+ color: ui.ink2
1686
+ }),
1687
+ ghostBox: {
1688
+ position: "absolute",
1689
+ left: 0,
1690
+ right: 8,
1691
+ top: 9
1692
+ },
1693
+ caretText: {
1694
+ color: ui.accent,
1695
+ fontWeight: "300"
1696
+ },
1697
+ tryHead: {
1698
+ paddingHorizontal: PAD + 4,
1699
+ marginTop: 26,
1700
+ marginBottom: 10,
1701
+ gap: 1
1702
+ },
1703
+ card: __spreadValues({
1704
+ width: CARD_W,
1705
+ padding: 16,
1706
+ borderRadius: 20,
1707
+ backgroundColor: ui.surface,
1708
+ borderWidth: StyleSheet.hairlineWidth,
1709
+ borderColor: ui.hairline
1710
+ }, lift),
1711
+ cardHead: {
1712
+ flexDirection: "row",
1713
+ alignItems: "center",
1714
+ gap: 12
1715
+ },
1716
+ cardIcon: {
1717
+ width: 36,
1718
+ height: 36,
1719
+ borderRadius: 12,
1720
+ backgroundColor: ui.accentSoft,
1721
+ alignItems: "center",
1722
+ justifyContent: "center"
1723
+ },
1724
+ cardTitle: __spreadProps(__spreadValues({}, type.headline), {
1725
+ flex: 1,
1726
+ fontSize: 15.5,
1727
+ lineHeight: 20
1728
+ }),
1729
+ cardGo: {
1730
+ width: 28,
1731
+ height: 28,
1732
+ borderRadius: 14,
1733
+ backgroundColor: ui.fill,
1734
+ alignItems: "center",
1735
+ justifyContent: "center",
1736
+ transform: [{
1737
+ rotate: "45deg"
1738
+ }]
1739
+ },
1740
+ cardBody: __spreadProps(__spreadValues({}, type.footnote), {
1741
+ fontSize: 13.5,
1742
+ lineHeight: 19,
1743
+ marginTop: 12
1744
+ }),
1745
+ fade: {
1746
+ position: "absolute",
1747
+ top: 0,
1748
+ bottom: 0,
1749
+ width: 28
1750
+ },
1751
+ ghost: {
1752
+ flexShrink: 1,
1753
+ fontSize: 15.5,
1754
+ lineHeight: 21,
1755
+ color: ui.muted
1756
+ },
1757
+ tryLabel: {
1758
+ fontSize: 17,
1759
+ lineHeight: 22,
1760
+ fontWeight: "600",
1761
+ color: ui.ink,
1762
+ paddingHorizontal: PAD + 4,
1763
+ marginTop: 32,
1764
+ marginBottom: 12
1765
+ },
1766
+ tryRow: {
1767
+ paddingHorizontal: PAD,
1768
+ gap: 12,
1769
+ paddingBottom: 8
1770
+ },
1771
+ channels: {
1772
+ paddingHorizontal: PAD + 4,
1773
+ marginTop: 14
1774
+ },
1775
+ textCard: __spreadValues({
1776
+ marginTop: 24,
1777
+ marginHorizontal: PAD,
1778
+ borderRadius: 20,
1779
+ overflow: "hidden",
1780
+ backgroundColor: ui.surface,
1781
+ borderWidth: StyleSheet.hairlineWidth,
1782
+ borderColor: ui.hairline
1783
+ }, lift),
1784
+ textCardRow: {
1785
+ flexDirection: "row",
1786
+ alignItems: "center",
1787
+ gap: 12,
1788
+ paddingHorizontal: 16,
1789
+ paddingVertical: 14
1790
+ },
1791
+ textCardTitle: {
1792
+ flex: 1,
1793
+ fontSize: 16,
1794
+ fontWeight: "600",
1795
+ letterSpacing: -0.2,
1796
+ color: ui.ink
1797
+ },
1798
+ textCardTrust: {
1799
+ paddingHorizontal: 16,
1800
+ paddingVertical: 12,
1801
+ backgroundColor: ui.okSoft
1802
+ },
1803
+ composer: __spreadValues({
1804
+ backgroundColor: ui.surface,
1805
+ borderRadius: 22,
1806
+ borderWidth: StyleSheet.hairlineWidth,
1807
+ borderColor: ui.hairline,
1808
+ paddingLeft: 16,
1809
+ paddingRight: 8,
1810
+ paddingTop: 6,
1811
+ paddingBottom: 8
1812
+ }, lift),
1813
+ composerFocused: {
1814
+ borderColor: "rgba(255,90,0,0.35)"
1815
+ },
1816
+ stage: {
1817
+ paddingHorizontal: PAD,
1818
+ paddingTop: 16,
1819
+ paddingBottom: 16
1820
+ },
1821
+ stageMiddle: {
1822
+ alignItems: "center",
1823
+ marginTop: 8,
1824
+ marginBottom: 16
1825
+ },
1826
+ stageTitle: {
1827
+ fontSize: 28,
1828
+ lineHeight: 34,
1829
+ fontWeight: "700",
1830
+ letterSpacing: -0.6,
1831
+ color: ui.ink,
1832
+ textAlign: "center",
1833
+ marginTop: 8
1834
+ },
1835
+ bigMic: {
1836
+ alignItems: "center"
1837
+ },
1838
+ bigMicStage: {
1839
+ width: 176,
1840
+ height: 176,
1841
+ alignItems: "center",
1842
+ justifyContent: "center"
1843
+ },
1844
+ dial: {
1845
+ width: DIAL,
1846
+ height: DIAL,
1847
+ alignItems: "center",
1848
+ justifyContent: "center"
1849
+ },
1850
+ sphere: {
1851
+ width: SPHERE,
1852
+ height: SPHERE,
1853
+ borderRadius: SPHERE / 2,
1854
+ alignItems: "center",
1855
+ justifyContent: "center",
1856
+ overflow: "visible",
1857
+ shadowColor: ui.accent,
1858
+ shadowOpacity: 0.35,
1859
+ shadowRadius: 20,
1860
+ shadowOffset: {
1861
+ width: 0,
1862
+ height: 10
1863
+ },
1864
+ elevation: 8
1865
+ },
1866
+ sphereRing: {
1867
+ position: "absolute",
1868
+ width: SPHERE,
1869
+ height: SPHERE,
1870
+ borderRadius: SPHERE / 2,
1871
+ backgroundColor: ui.accent
1872
+ },
1873
+ typeBox: __spreadValues({
1874
+ flexDirection: "row",
1875
+ alignItems: "flex-end",
1876
+ gap: 8,
1877
+ minHeight: 96,
1878
+ paddingLeft: 18,
1879
+ paddingRight: 10,
1880
+ paddingTop: 12,
1881
+ paddingBottom: 10,
1882
+ borderRadius: 22,
1883
+ backgroundColor: ui.surface,
1884
+ borderWidth: StyleSheet.hairlineWidth,
1885
+ borderColor: ui.hairline
1886
+ }, lift),
1887
+ typeBoxInput: __spreadValues({
1888
+ flex: 1,
1889
+ alignSelf: "stretch",
1890
+ fontSize: 15.5,
1891
+ lineHeight: 21,
1892
+ color: ui.ink,
1893
+ minHeight: 72,
1894
+ maxHeight: 140,
1895
+ paddingTop: 2,
1896
+ textAlignVertical: "top"
1897
+ }, field),
1898
+ ring: {
1899
+ position: "absolute"
1900
+ },
1901
+ hello: {
1902
+ fontSize: 15,
1903
+ lineHeight: 20,
1904
+ fontWeight: "600",
1905
+ color: ui.accentText,
1906
+ textAlign: "center"
1907
+ },
1908
+ steps: {
1909
+ paddingHorizontal: PAD + 4,
1910
+ marginTop: 16
1911
+ },
1912
+ step: {
1913
+ flexDirection: "row",
1914
+ gap: 16
1915
+ },
1916
+ stepRail: {
1917
+ width: 44,
1918
+ alignItems: "center"
1919
+ },
1920
+ stepIcon: {
1921
+ width: 44,
1922
+ height: 44,
1923
+ borderRadius: 22,
1924
+ backgroundColor: ui.accentSoft,
1925
+ alignItems: "center",
1926
+ justifyContent: "center"
1927
+ },
1928
+ stepLine: {
1929
+ flex: 1,
1930
+ width: 2,
1931
+ marginVertical: 4,
1932
+ borderRadius: 1,
1933
+ backgroundColor: "rgba(255,90,0,0.18)"
1934
+ },
1935
+ stepBody: {
1936
+ flex: 1,
1937
+ paddingTop: 10,
1938
+ paddingBottom: 24
1939
+ },
1940
+ stepTitle: __spreadProps(__spreadValues({}, type.headline), {
1941
+ fontSize: 16,
1942
+ marginBottom: 4
1943
+ }),
1944
+ heroSub: {
1945
+ fontSize: 15,
1946
+ lineHeight: 20,
1947
+ color: ui.muted,
1948
+ marginTop: 8,
1949
+ textAlign: "center"
1950
+ },
1951
+ onIt: {
1952
+ alignSelf: "center",
1953
+ flexDirection: "row",
1954
+ alignItems: "center",
1955
+ gap: 8,
1956
+ marginTop: 12,
1957
+ height: 32,
1958
+ paddingHorizontal: 12,
1959
+ borderRadius: 16,
1960
+ backgroundColor: ui.accentSoft
1961
+ },
1962
+ onItDot: {
1963
+ width: 8,
1964
+ height: 8,
1965
+ borderRadius: 4,
1966
+ backgroundColor: ui.accent
1967
+ },
1968
+ onItText: {
1969
+ fontSize: 13,
1970
+ fontWeight: "600",
1971
+ color: ui.accentText
1972
+ },
1973
+ ideaChipsScroll: {
1974
+ flexGrow: 0,
1975
+ marginHorizontal: -16,
1976
+ marginBottom: 12
1977
+ },
1978
+ ideaChips: {
1979
+ flexDirection: "row",
1980
+ gap: 8,
1981
+ paddingHorizontal: PAD
1982
+ },
1983
+ ideaChip: {
1984
+ flexDirection: "row",
1985
+ alignItems: "center",
1986
+ gap: 8,
1987
+ height: 40,
1988
+ paddingHorizontal: 16,
1989
+ borderRadius: 20,
1990
+ backgroundColor: ui.surface,
1991
+ borderWidth: StyleSheet.hairlineWidth,
1992
+ borderColor: "rgba(255,90,0,0.18)"
1993
+ },
1994
+ ideaChipText: {
1995
+ fontSize: 13,
1996
+ fontWeight: "600",
1997
+ color: ui.ink
1998
+ },
1999
+ bigMicOuter: {
2000
+ width: 132,
2001
+ height: 132,
2002
+ borderRadius: 66,
2003
+ backgroundColor: ui.accentSoft,
2004
+ alignItems: "center",
2005
+ justifyContent: "center"
2006
+ },
2007
+ bigMicInner: {
2008
+ width: 108,
2009
+ height: 108,
2010
+ borderRadius: 54,
2011
+ backgroundColor: "#FFD9C2",
2012
+ alignItems: "center",
2013
+ justifyContent: "center"
2014
+ },
2015
+ bigMicLift: {
2016
+ borderRadius: 36,
2017
+ shadowColor: ui.accent,
2018
+ shadowOpacity: 0.35,
2019
+ shadowRadius: 14,
2020
+ shadowOffset: {
2021
+ width: 0,
2022
+ height: 8
2023
+ },
2024
+ elevation: 6
2025
+ },
2026
+ bigMicLabel: __spreadProps(__spreadValues({}, type.headline), {
2027
+ fontSize: 17,
2028
+ marginTop: 12
2029
+ }),
2030
+ bigMicSubRow: {
2031
+ flexDirection: "row",
2032
+ alignItems: "center",
2033
+ gap: 6,
2034
+ marginTop: 4
2035
+ },
2036
+ typeLine: __spreadValues({
2037
+ flexDirection: "row",
2038
+ alignItems: "flex-end",
2039
+ gap: 8,
2040
+ minHeight: 52,
2041
+ paddingLeft: 18,
2042
+ paddingRight: 8,
2043
+ paddingVertical: 8,
2044
+ borderRadius: 26,
2045
+ backgroundColor: ui.surface,
2046
+ borderWidth: StyleSheet.hairlineWidth,
2047
+ borderColor: ui.hairline
2048
+ }, lift),
2049
+ pillListening: {
2050
+ backgroundColor: "#FFF6F0",
2051
+ borderColor: "rgba(255,90,0,0.35)"
2052
+ },
2053
+ pillInput: __spreadValues({
2054
+ flex: 1,
2055
+ fontSize: 15.5,
2056
+ lineHeight: 21,
2057
+ color: ui.ink,
2058
+ minHeight: 36,
2059
+ maxHeight: 120,
2060
+ paddingTop: 7,
2061
+ paddingBottom: 7
2062
+ }, field),
2063
+ pillHint: __spreadProps(__spreadValues({}, type.footnote), {
2064
+ color: ui.accentText,
2065
+ textAlign: "center",
2066
+ marginTop: 8
2067
+ }),
2068
+ bigMicSub: __spreadProps(__spreadValues({}, type.subhead), {
2069
+ fontSize: 14.5,
2070
+ marginTop: 2
2071
+ }),
2072
+ composerInput: __spreadValues({
2073
+ fontSize: 15.5,
2074
+ lineHeight: 21,
2075
+ color: ui.ink,
2076
+ minHeight: 58,
2077
+ maxHeight: 140,
2078
+ paddingTop: 9,
2079
+ paddingBottom: 4,
2080
+ paddingRight: 8
2081
+ }, field),
2082
+ composerNote: __spreadProps(__spreadValues({}, type.footnote), {
2083
+ textAlign: "center",
2084
+ marginTop: 10
2085
+ }),
2086
+ send: {
2087
+ width: 36,
2088
+ height: 36,
2089
+ borderRadius: 18,
2090
+ alignItems: "center",
2091
+ justifyContent: "center"
2092
+ },
2093
+ chip: {
2094
+ flexDirection: "row",
2095
+ alignItems: "center",
2096
+ gap: 6,
2097
+ paddingVertical: 8,
2098
+ paddingHorizontal: 13,
2099
+ borderRadius: radius.pill,
2100
+ backgroundColor: ui.surface,
2101
+ borderWidth: StyleSheet.hairlineWidth,
2102
+ borderColor: ui.hairline
2103
+ },
2104
+ chipSmall: {
2105
+ paddingVertical: 6,
2106
+ paddingHorizontal: 12,
2107
+ gap: 6
2108
+ },
2109
+ chipPressed: {
2110
+ backgroundColor: ui.accentSoft
2111
+ },
2112
+ chipText: {
2113
+ fontSize: 14,
2114
+ fontWeight: "500",
2115
+ color: ui.ink
2116
+ },
2117
+ chipTextSmall: {
2118
+ fontSize: 13,
2119
+ color: ui.ink2
2120
+ },
2121
+ pill: __spreadValues({
2122
+ flexDirection: "row",
2123
+ alignItems: "center",
2124
+ gap: 8,
2125
+ paddingVertical: 9,
2126
+ paddingLeft: 9,
2127
+ paddingRight: 16,
2128
+ borderRadius: radius.pill,
2129
+ backgroundColor: ui.surface
2130
+ }, lift),
2131
+ pillText: {
2132
+ fontSize: 15,
2133
+ fontWeight: "600",
2134
+ color: ui.ink
2135
+ },
2136
+ trust: {
2137
+ flexDirection: "row",
2138
+ alignItems: "center",
2139
+ gap: 6
2140
+ },
2141
+ trustText: __spreadProps(__spreadValues({}, type.footnote), {
2142
+ flexShrink: 1
2143
+ }),
2144
+ strip: {
2145
+ marginTop: 32,
2146
+ gap: 8,
2147
+ paddingVertical: 4
2148
+ },
2149
+ marquee: {
2150
+ overflow: "hidden"
2151
+ },
2152
+ marqueeRow: {
2153
+ flexDirection: "row",
2154
+ gap: 8,
2155
+ paddingRight: 8
2156
+ },
2157
+ section: {
2158
+ paddingHorizontal: PAD + 4,
2159
+ paddingTop: 48,
2160
+ paddingBottom: 8
2161
+ },
2162
+ sectionList: {
2163
+ paddingTop: 48
2164
+ },
2165
+ sectionHead: {
2166
+ paddingHorizontal: PAD + 4,
2167
+ marginBottom: 4
2168
+ },
2169
+ sectionHeadOnly: {
2170
+ paddingHorizontal: PAD + 4,
2171
+ paddingTop: 48,
2172
+ marginBottom: 16
2173
+ },
2174
+ sectionTight: {
2175
+ paddingHorizontal: PAD,
2176
+ paddingTop: 32
2177
+ },
2178
+ band: {
2179
+ backgroundColor: ui.soft,
2180
+ marginTop: 48,
2181
+ paddingTop: 40,
2182
+ paddingBottom: 32
2183
+ },
2184
+ timeCardShadow: __spreadValues({
2185
+ borderRadius: 24,
2186
+ backgroundColor: "#1A1714"
2187
+ }, float),
2188
+ timeCard: {
2189
+ borderRadius: 24,
2190
+ overflow: "hidden"
2191
+ },
2192
+ timeLottie: {
2193
+ margin: 10,
2194
+ marginBottom: 0,
2195
+ borderRadius: 18,
2196
+ overflow: "hidden",
2197
+ backgroundColor: "#FFF7F2"
2198
+ },
2199
+ timeLottieView: {
2200
+ width: "100%",
2201
+ aspectRatio: 1
2202
+ },
2203
+ panelRow: {
2204
+ flexDirection: "row",
2205
+ alignItems: "baseline"
2206
+ },
2207
+ minutesPanel: __spreadValues({
2208
+ flexDirection: "row",
2209
+ alignItems: "center",
2210
+ gap: 18,
2211
+ marginTop: 16,
2212
+ padding: 16,
2213
+ borderRadius: radius.card,
2214
+ backgroundColor: ui.surface
2215
+ }, lift),
2216
+ minutesOutOf: __spreadProps(__spreadValues({}, type.caption), {
2217
+ fontWeight: "400",
2218
+ marginTop: 6
2219
+ }),
2220
+ panelValue: {
2221
+ fontSize: 46,
2222
+ lineHeight: 52,
2223
+ fontWeight: "800",
2224
+ letterSpacing: -1.6,
2225
+ color: ui.ink,
2226
+ fontVariant: ["tabular-nums"]
2227
+ },
2228
+ panelUnit: {
2229
+ fontSize: 22,
2230
+ fontWeight: "800",
2231
+ letterSpacing: -0.5,
2232
+ color: ui.accent,
2233
+ marginLeft: 3
2234
+ },
2235
+ panelLabel: {
2236
+ fontSize: 15,
2237
+ fontWeight: "600",
2238
+ color: ui.ink2,
2239
+ marginTop: -2
2240
+ },
2241
+ timeCopy: {
2242
+ padding: 16,
2243
+ paddingTop: 14,
2244
+ paddingBottom: 18
2245
+ },
2246
+ timeTitle: {
2247
+ fontSize: 21,
2248
+ lineHeight: 26,
2249
+ letterSpacing: -0.3
2250
+ },
2251
+ stats: {
2252
+ flexDirection: "row",
2253
+ gap: 12,
2254
+ marginTop: 16
2255
+ },
2256
+ stat: {
2257
+ flex: 1,
2258
+ paddingTop: 10,
2259
+ borderTopWidth: StyleSheet.hairlineWidth,
2260
+ borderTopColor: "rgba(255,255,255,0.16)"
2261
+ },
2262
+ statValue: {
2263
+ fontSize: 24,
2264
+ lineHeight: 29,
2265
+ fontWeight: "600",
2266
+ letterSpacing: -0.8,
2267
+ color: TIME_PEACH,
2268
+ fontVariant: ["tabular-nums"]
2269
+ },
2270
+ statRow: {
2271
+ flexDirection: "row",
2272
+ alignItems: "baseline"
2273
+ },
2274
+ statUnit: {
2275
+ fontSize: 12.5,
2276
+ fontWeight: "500",
2277
+ color: TIME_PEACH
2278
+ },
2279
+ statLabel: __spreadProps(__spreadValues({}, type.caption), {
2280
+ fontWeight: "400",
2281
+ fontSize: 12,
2282
+ color: TIME_LABEL,
2283
+ marginTop: 3
2284
+ }),
2285
+ timeNote: __spreadProps(__spreadValues({}, type.footnote), {
2286
+ fontSize: 13,
2287
+ lineHeight: 19,
2288
+ color: TIME_LABEL,
2289
+ marginTop: 14
2290
+ }),
2291
+ callCard: __spreadValues({
2292
+ borderRadius: radius.card + 4,
2293
+ backgroundColor: ui.surface,
2294
+ paddingHorizontal: 18,
2295
+ paddingVertical: 16
2296
+ }, float),
2297
+ callHead: {
2298
+ flexDirection: "row",
2299
+ alignItems: "center",
2300
+ gap: 12,
2301
+ paddingBottom: 14,
2302
+ marginBottom: 6,
2303
+ borderBottomWidth: StyleSheet.hairlineWidth,
2304
+ borderBottomColor: ui.hairline
2305
+ },
2306
+ callAvatar: {
2307
+ width: 40,
2308
+ height: 40,
2309
+ borderRadius: 20,
2310
+ backgroundColor: ui.accentSoft,
2311
+ alignItems: "center",
2312
+ justifyContent: "center"
2313
+ },
2314
+ callTitle: __spreadProps(__spreadValues({}, type.headline), {
2315
+ fontSize: 16
2316
+ }),
2317
+ callSub: __spreadProps(__spreadValues({}, type.footnote), {
2318
+ fontVariant: ["tabular-nums"]
2319
+ }),
2320
+ live: {
2321
+ flexDirection: "row",
2322
+ alignItems: "center",
2323
+ gap: 6,
2324
+ paddingVertical: 5,
2325
+ paddingHorizontal: 10,
2326
+ borderRadius: radius.pill,
2327
+ backgroundColor: ui.okSoft
2328
+ },
2329
+ liveDotWrap: {
2330
+ width: 8,
2331
+ height: 8,
2332
+ alignItems: "center",
2333
+ justifyContent: "center"
2334
+ },
2335
+ liveDot: {
2336
+ width: 8,
2337
+ height: 8,
2338
+ borderRadius: 4,
2339
+ backgroundColor: CALL_GREEN
2340
+ },
2341
+ liveRing: {
2342
+ position: "absolute",
2343
+ width: 8,
2344
+ height: 8,
2345
+ borderRadius: 4,
2346
+ backgroundColor: CALL_GREEN
2347
+ },
2348
+ liveText: {
2349
+ fontSize: 12.5,
2350
+ fontWeight: "600",
2351
+ color: ui.ok
2352
+ },
2353
+ callStep: {
2354
+ flexDirection: "row",
2355
+ gap: 12,
2356
+ paddingVertical: 9
2357
+ },
2358
+ callDot: {
2359
+ width: 22,
2360
+ height: 22,
2361
+ borderRadius: 11,
2362
+ borderWidth: 1.5,
2363
+ borderColor: "#E3DCD3",
2364
+ backgroundColor: ui.surface,
2365
+ alignItems: "center",
2366
+ justifyContent: "center",
2367
+ marginTop: 1
2368
+ },
2369
+ callLabel: {
2370
+ fontSize: 15,
2371
+ fontWeight: "500",
2372
+ color: ui.ink
2373
+ },
2374
+ callDetail: __spreadProps(__spreadValues({}, type.footnote), {
2375
+ marginTop: 1
2376
+ }),
2377
+ reels: {
2378
+ flexDirection: "row",
2379
+ alignItems: "flex-start",
2380
+ paddingHorizontal: PAD + 4,
2381
+ gap: 14,
2382
+ marginTop: 24
2383
+ },
2384
+ reel: {
2385
+ flex: 1
2386
+ },
2387
+ phone: {
2388
+ borderRadius: 22,
2389
+ backgroundColor: ui.bg,
2390
+ paddingHorizontal: 12,
2391
+ paddingTop: 12,
2392
+ paddingBottom: 10,
2393
+ borderWidth: StyleSheet.hairlineWidth,
2394
+ borderColor: ui.hairline
2395
+ },
2396
+ phoneHead: {
2397
+ alignItems: "center",
2398
+ paddingBottom: 6,
2399
+ marginBottom: 4
2400
+ },
2401
+ phoneAvatar: {
2402
+ width: 34,
2403
+ height: 34,
2404
+ borderRadius: 17,
2405
+ backgroundColor: ui.accentSoft,
2406
+ alignItems: "center",
2407
+ justifyContent: "center"
2408
+ },
2409
+ phoneName: {
2410
+ fontSize: 13,
2411
+ fontWeight: "600",
2412
+ color: ui.ink,
2413
+ marginTop: 3
2414
+ },
2415
+ phoneDay: __spreadProps(__spreadValues({}, type.caption), {
2416
+ fontWeight: "400",
2417
+ marginTop: 2
2418
+ }),
2419
+ bubble: {
2420
+ maxWidth: "82%",
2421
+ paddingVertical: 7,
2422
+ paddingHorizontal: 12,
2423
+ borderRadius: 17,
2424
+ marginTop: 5
2425
+ },
2426
+ bubbleYou: {
2427
+ alignSelf: "flex-end",
2428
+ backgroundColor: ui.bubbleYou
2429
+ },
2430
+ bubbleLucy: {
2431
+ alignSelf: "flex-start",
2432
+ backgroundColor: ui.bubbleLucy
2433
+ },
2434
+ bubbleText: {
2435
+ fontSize: 14,
2436
+ lineHeight: 19,
2437
+ color: ui.ink
2438
+ },
2439
+ delivered: __spreadProps(__spreadValues({
2440
+ alignSelf: "flex-end"
2441
+ }, type.caption), {
2442
+ fontWeight: "400",
2443
+ marginTop: 4
2444
+ }),
2445
+ typing: {
2446
+ flexDirection: "row",
2447
+ alignItems: "center",
2448
+ paddingVertical: 5,
2449
+ paddingHorizontal: 11
2450
+ },
2451
+ textSteps: {
2452
+ gap: 12,
2453
+ marginTop: 18
2454
+ },
2455
+ textStep: {
2456
+ flexDirection: "row",
2457
+ gap: 12
2458
+ },
2459
+ textN: {
2460
+ width: 26,
2461
+ height: 26,
2462
+ borderRadius: 13,
2463
+ backgroundColor: ui.fill,
2464
+ alignItems: "center",
2465
+ justifyContent: "center"
2466
+ },
2467
+ textNText: {
2468
+ fontSize: 13,
2469
+ fontWeight: "700",
2470
+ color: ui.ink
2471
+ },
2472
+ textStepTitle: __spreadProps(__spreadValues({}, type.headline), {
2473
+ fontSize: 15,
2474
+ marginBottom: 1
2475
+ }),
2476
+ btn: {
2477
+ flexDirection: "row",
2478
+ alignItems: "center",
2479
+ justifyContent: "center",
2480
+ gap: 10,
2481
+ marginTop: 24,
2482
+ height: 50,
2483
+ borderRadius: radius.pill,
2484
+ backgroundColor: ui.ink
2485
+ },
2486
+ btnPressed: {
2487
+ opacity: 0.88
2488
+ },
2489
+ btnText: {
2490
+ fontSize: 16,
2491
+ fontWeight: "600",
2492
+ color: ui.surface
2493
+ },
2494
+ areas: {
2495
+ paddingHorizontal: PAD,
2496
+ gap: 12,
2497
+ paddingBottom: 10
2498
+ },
2499
+ area: __spreadValues({
2500
+ borderRadius: radius.card + 4,
2501
+ backgroundColor: ui.surface,
2502
+ padding: 16
2503
+ }, lift),
2504
+ areaTitle: __spreadProps(__spreadValues({}, type.headline), {
2505
+ fontSize: 19,
2506
+ marginBottom: 4
2507
+ }),
2508
+ areaChips: {
2509
+ flexDirection: "row",
2510
+ flexWrap: "wrap",
2511
+ gap: 7,
2512
+ marginTop: 14
2513
+ },
2514
+ minutesHint: __spreadProps(__spreadValues({}, type.subhead), {
2515
+ marginTop: 16
2516
+ }),
2517
+ minutes: {
2518
+ marginTop: 10,
2519
+ borderRadius: radius.group,
2520
+ backgroundColor: ui.surface,
2521
+ overflow: "hidden"
2522
+ },
2523
+ minuteRow: {
2524
+ flexDirection: "row",
2525
+ alignItems: "center",
2526
+ gap: 12,
2527
+ paddingVertical: 12,
2528
+ paddingHorizontal: 14,
2529
+ borderBottomWidth: StyleSheet.hairlineWidth,
2530
+ borderBottomColor: ui.hairline
2531
+ },
2532
+ minuteLast: {
2533
+ borderBottomWidth: 0
2534
+ },
2535
+ swatch: {
2536
+ width: 12,
2537
+ height: 12,
2538
+ borderRadius: 4,
2539
+ borderWidth: 1,
2540
+ borderColor: "rgba(90,45,10,0.1)"
2541
+ },
2542
+ swatchNone: {
2543
+ backgroundColor: "transparent"
2544
+ },
2545
+ minuteOff: {
2546
+ color: ui.muted,
2547
+ textDecorationLine: "line-through"
2548
+ },
2549
+ minuteCheck: {
2550
+ width: 22,
2551
+ height: 22,
2552
+ borderRadius: 11,
2553
+ borderWidth: 1.5,
2554
+ borderColor: "#E3DCD3",
2555
+ backgroundColor: ui.surface,
2556
+ alignItems: "center",
2557
+ justifyContent: "center"
2558
+ },
2559
+ minuteCheckOn: {
2560
+ backgroundColor: CALL_GREEN,
2561
+ borderColor: CALL_GREEN
2562
+ },
2563
+ minutesTotal: {
2564
+ marginTop: 14
2565
+ },
2566
+ minutesTotalText: __spreadProps(__spreadValues({}, type.callout), {
2567
+ fontSize: 15
2568
+ }),
2569
+ minutesTotalB: {
2570
+ fontWeight: "600",
2571
+ color: ui.accentText,
2572
+ fontVariant: ["tabular-nums"]
2573
+ },
2574
+ minuteTop: {
2575
+ flexDirection: "row",
2576
+ justifyContent: "space-between"
2577
+ },
2578
+ minuteLabel: {
2579
+ fontSize: 15,
2580
+ fontWeight: "500",
2581
+ color: ui.ink
2582
+ },
2583
+ minuteValue: {
2584
+ fontSize: 14,
2585
+ fontWeight: "600",
2586
+ color: ui.ink,
2587
+ fontVariant: ["tabular-nums"]
2588
+ },
2589
+ bar: {
2590
+ height: 8,
2591
+ borderRadius: radius.pill,
2592
+ backgroundColor: ui.fill,
2593
+ overflow: "hidden"
2594
+ },
2595
+ barFill: {
2596
+ height: "100%",
2597
+ borderRadius: radius.pill
2598
+ },
2599
+ faqs: __spreadValues({
2600
+ marginTop: 16,
2601
+ marginHorizontal: PAD,
2602
+ borderRadius: 20,
2603
+ overflow: "hidden",
2604
+ backgroundColor: ui.surface
2605
+ }, lift),
2606
+ faq: {
2607
+ paddingHorizontal: 16,
2608
+ borderBottomWidth: StyleSheet.hairlineWidth,
2609
+ borderBottomColor: ui.hairline
2610
+ },
2611
+ faqQ: {
2612
+ flexDirection: "row",
2613
+ alignItems: "center",
2614
+ gap: 12,
2615
+ paddingVertical: 16
2616
+ },
2617
+ faqQText: __spreadProps(__spreadValues({}, type.headline), {
2618
+ flex: 1,
2619
+ fontSize: 16
2620
+ }),
2621
+ faqIcon: {
2622
+ width: 28,
2623
+ height: 28,
2624
+ borderRadius: 14,
2625
+ backgroundColor: ui.fill,
2626
+ alignItems: "center",
2627
+ justifyContent: "center"
2628
+ },
2629
+ faqA: __spreadProps(__spreadValues({}, type.callout), {
2630
+ paddingBottom: 16,
2631
+ marginTop: -4
2632
+ }),
2633
+ final: {
2634
+ paddingHorizontal: PAD,
2635
+ paddingTop: 36
2636
+ },
2637
+ finalChannels: {
2638
+ alignSelf: "stretch",
2639
+ alignItems: "center",
2640
+ gap: 8,
2641
+ marginTop: 14
2642
+ },
2643
+ finalTitle: {
2644
+ fontSize: 21,
2645
+ lineHeight: 27,
2646
+ marginTop: 12,
2647
+ marginBottom: 16
2648
+ },
2649
+ finalShadow: __spreadValues({
2650
+ borderRadius: 24,
2651
+ backgroundColor: ui.surface
2652
+ }, float),
2653
+ finalCard: {
2654
+ alignItems: "center",
2655
+ borderRadius: 24,
2656
+ overflow: "hidden",
2657
+ borderWidth: StyleSheet.hairlineWidth,
2658
+ borderColor: ui.hairline,
2659
+ paddingHorizontal: 16,
2660
+ paddingTop: 24,
2661
+ paddingBottom: 18
2662
+ },
2663
+ yantraCard: __spreadValues({
2664
+ borderRadius: radius.card + 4,
2665
+ padding: 16,
2666
+ backgroundColor: ui.surface
2667
+ }, lift),
2668
+ yantraHead: {
2669
+ flexDirection: "row",
2670
+ alignItems: "center",
2671
+ gap: 12
2672
+ },
2673
+ yantraTitle: {
2674
+ flex: 1,
2675
+ fontSize: 21,
2676
+ lineHeight: 26
2677
+ },
2678
+ yantraIcon: {
2679
+ width: 40,
2680
+ height: 40,
2681
+ borderRadius: 12,
2682
+ backgroundColor: ui.fill,
2683
+ alignItems: "center",
2684
+ justifyContent: "center"
2685
+ },
2686
+ yantraKicker: __spreadProps(__spreadValues({}, type.groupLabel), {
2687
+ fontWeight: "600"
2688
+ }),
2689
+ footer: {
2690
+ alignItems: "center",
2691
+ paddingHorizontal: 28,
2692
+ paddingTop: 44,
2693
+ paddingBottom: 12
2694
+ },
2695
+ footerRule: {
2696
+ width: 36,
2697
+ height: 3,
2698
+ borderRadius: 2,
2699
+ backgroundColor: ui.hairline,
2700
+ marginBottom: 28
2701
+ },
2702
+ footerName: __spreadProps(__spreadValues({}, type.headline), {
2703
+ marginTop: 10
2704
+ }),
2705
+ footerTag: __spreadProps(__spreadValues({}, type.subhead), {
2706
+ marginTop: 2
2707
+ }),
2708
+ footnote: __spreadProps(__spreadValues({}, type.caption), {
2709
+ fontWeight: "400",
2710
+ fontSize: 11,
2711
+ lineHeight: 16,
2712
+ textAlign: "center",
2713
+ marginTop: 18
2714
+ })
2715
+ });export{HomeScreen as default};//# sourceMappingURL=index.js.map