@katajere/recap 2.1.7 → 2.1.9

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 (436) hide show
  1. package/dist/App.css +8 -0
  2. package/dist/LoginScreen.css +6 -139
  3. package/dist/OtpScreen.css +5 -127
  4. package/dist/RecapApp.d.ts +4 -1
  5. package/dist/RecapApp.d.ts.map +1 -1
  6. package/dist/RecapApp.js +2 -2
  7. package/dist/RecapLoadingScreen.css +11 -0
  8. package/dist/RecapStory.d.ts +8 -4
  9. package/dist/RecapStory.d.ts.map +1 -1
  10. package/dist/RecapStory.js +5 -254
  11. package/dist/StoryProgress.d.ts +2 -2
  12. package/dist/StoryProgress.d.ts.map +1 -1
  13. package/dist/StoryProgress.js +11 -68
  14. package/dist/assets/fluctuating/notification-left.svg +30 -0
  15. package/dist/assets/fluctuating/notification-right.svg +30 -0
  16. package/dist/assets/fluctuating/notification-top.svg +30 -0
  17. package/dist/assets/fluctuating/phone-body.svg +18 -0
  18. package/dist/assets/fluctuating/phone-detail.svg +6 -0
  19. package/dist/assets/fluctuating/phone-floor.svg +5 -0
  20. package/dist/assets/fluctuating/phone-marks.svg +8 -0
  21. package/dist/assets/fluctuating/phone-pulse.svg +7 -0
  22. package/dist/assets/fluctuating/wave-mask.svg +5 -0
  23. package/dist/assets/fluctuating/wave.svg +24 -0
  24. package/dist/assets/low-data/book-left-page.svg +7 -0
  25. package/dist/assets/low-data/book-right-leaf.svg +6 -0
  26. package/dist/assets/low-data/book-right-page.svg +5 -0
  27. package/dist/assets/low-data/book-spine.svg +5 -0
  28. package/dist/assets/low-data/sign-cord-left.svg +17 -0
  29. package/dist/assets/low-data/sign-cord-right.svg +17 -0
  30. package/dist/assets/low-data/sign-edge.svg +5 -0
  31. package/dist/assets/low-data/sign-eyelet-left.svg +15 -0
  32. package/dist/assets/low-data/sign-eyelet-right.svg +15 -0
  33. package/dist/assets/low-data/sign-face-detail.svg +18 -0
  34. package/dist/assets/low-data/sign-face.svg +10 -0
  35. package/dist/assets/low-data/sign-inner-bevel.svg +11 -0
  36. package/dist/assets/low-data/sign-lettering.svg +26 -0
  37. package/dist/assets/low-data/sign-pin.svg +15 -0
  38. package/dist/assets/low-data/sign-plaque.svg +19 -0
  39. package/dist/assets/low-data/sign-rim-bottom.svg +3 -0
  40. package/dist/assets/low-data/sign-rim-top.svg +3 -0
  41. package/dist/assets/low-data/store-browser.svg +10 -0
  42. package/dist/assets/low-data/store-cursor.svg +5 -0
  43. package/dist/assets/low-data/store-ground.svg +5 -0
  44. package/dist/assets/recap-intro/close.svg +5 -0
  45. package/dist/assets/recap-intro/loading-bar-1.png +0 -0
  46. package/dist/assets/recap-intro/loading-bar-2.png +0 -0
  47. package/dist/assets/recap-intro/tunnel.svg +516 -0
  48. package/dist/assets/steady/bag/badge.svg +9 -0
  49. package/dist/assets/steady/bag/body.svg +105 -0
  50. package/dist/assets/steady/bag/front-handle-inner.svg +353 -0
  51. package/dist/assets/steady/bag/front-handle.svg +10 -0
  52. package/dist/assets/steady/bag/hand.svg +208 -0
  53. package/dist/assets/steady/bag/rear-handle-inner.svg +297 -0
  54. package/dist/assets/steady/bag/rear-handle-top.svg +3 -0
  55. package/dist/assets/steady/bag/rear-handle.svg +10 -0
  56. package/dist/assets/steady/bag/shadow.svg +7 -0
  57. package/dist/assets/steady/calendar/base.png +0 -0
  58. package/dist/assets/steady/calendar/tick.svg +6 -0
  59. package/dist/assets/steady/coin/shimmer-mask.svg +5 -0
  60. package/dist/assets/steady/coin/shimmer.svg +16 -0
  61. package/dist/assets/steady/coin.png +0 -0
  62. package/dist/assets/steady/tree.svg +790 -0
  63. package/dist/assets/top10/biggest-day/coin-left.svg +21 -0
  64. package/dist/assets/top10/biggest-day/coin-right.svg +21 -0
  65. package/dist/assets/top10/biggest-day/coin-top.svg +21 -0
  66. package/dist/assets/top10/biggest-day/floor.svg +5 -0
  67. package/dist/assets/top10/biggest-day/illustration.png +0 -0
  68. package/dist/assets/top10/biggest-day/marks.svg +8 -0
  69. package/dist/assets/top10/biggest-day/mask.svg +5 -0
  70. package/dist/assets/top10/biggest-day/phone-body.svg +18 -0
  71. package/dist/assets/top10/biggest-day/phone-detail.svg +6 -0
  72. package/dist/assets/top10/closing/imgHccStaticHaloScale.svg +5 -0
  73. package/dist/assets/top10/closing/imgHccStaticHaloScale1.svg +12 -0
  74. package/dist/assets/top10/closing/imgHccStaticP0Tumble.svg +5 -0
  75. package/dist/assets/top10/closing/imgHccStaticP10Tumble.svg +5 -0
  76. package/dist/assets/top10/closing/imgHccStaticP11Tumble.svg +5 -0
  77. package/dist/assets/top10/closing/imgHccStaticP12Tumble.svg +5 -0
  78. package/dist/assets/top10/closing/imgHccStaticP13Tumble.svg +5 -0
  79. package/dist/assets/top10/closing/imgHccStaticP14Tumble.svg +5 -0
  80. package/dist/assets/top10/closing/imgHccStaticP15Tumble.svg +5 -0
  81. package/dist/assets/top10/closing/imgHccStaticP16Tumble.svg +5 -0
  82. package/dist/assets/top10/closing/imgHccStaticP17Tumble.svg +5 -0
  83. package/dist/assets/top10/closing/imgHccStaticP18Tumble.svg +5 -0
  84. package/dist/assets/top10/closing/imgHccStaticP19Tumble.svg +5 -0
  85. package/dist/assets/top10/closing/imgHccStaticP1Tumble.svg +5 -0
  86. package/dist/assets/top10/closing/imgHccStaticP20Tumble.svg +5 -0
  87. package/dist/assets/top10/closing/imgHccStaticP21Tumble.svg +5 -0
  88. package/dist/assets/top10/closing/imgHccStaticP22Tumble.svg +5 -0
  89. package/dist/assets/top10/closing/imgHccStaticP23Tumble.svg +5 -0
  90. package/dist/assets/top10/closing/imgHccStaticP24Tumble.svg +5 -0
  91. package/dist/assets/top10/closing/imgHccStaticP25Tumble.svg +5 -0
  92. package/dist/assets/top10/closing/imgHccStaticP26Tumble.svg +5 -0
  93. package/dist/assets/top10/closing/imgHccStaticP27Tumble.svg +5 -0
  94. package/dist/assets/top10/closing/imgHccStaticP28Tumble.svg +5 -0
  95. package/dist/assets/top10/closing/imgHccStaticP29Tumble.svg +5 -0
  96. package/dist/assets/top10/closing/imgHccStaticP2Tumble.svg +5 -0
  97. package/dist/assets/top10/closing/imgHccStaticP30Tumble.svg +5 -0
  98. package/dist/assets/top10/closing/imgHccStaticP31Tumble.svg +5 -0
  99. package/dist/assets/top10/closing/imgHccStaticP32Tumble.svg +5 -0
  100. package/dist/assets/top10/closing/imgHccStaticP33Tumble.svg +5 -0
  101. package/dist/assets/top10/closing/imgHccStaticP34Tumble.svg +5 -0
  102. package/dist/assets/top10/closing/imgHccStaticP35Tumble.svg +5 -0
  103. package/dist/assets/top10/closing/imgHccStaticP36Tumble.svg +5 -0
  104. package/dist/assets/top10/closing/imgHccStaticP37Tumble.svg +5 -0
  105. package/dist/assets/top10/closing/imgHccStaticP38Tumble.svg +5 -0
  106. package/dist/assets/top10/closing/imgHccStaticP39Tumble.svg +5 -0
  107. package/dist/assets/top10/closing/imgHccStaticP3Tumble.svg +5 -0
  108. package/dist/assets/top10/closing/imgHccStaticP40Tumble.svg +5 -0
  109. package/dist/assets/top10/closing/imgHccStaticP41Tumble.svg +5 -0
  110. package/dist/assets/top10/closing/imgHccStaticP42Tumble.svg +5 -0
  111. package/dist/assets/top10/closing/imgHccStaticP43Tumble.svg +5 -0
  112. package/dist/assets/top10/closing/imgHccStaticP44Tumble.svg +5 -0
  113. package/dist/assets/top10/closing/imgHccStaticP45Tumble.svg +5 -0
  114. package/dist/assets/top10/closing/imgHccStaticP46Tumble.svg +5 -0
  115. package/dist/assets/top10/closing/imgHccStaticP47Tumble.svg +5 -0
  116. package/dist/assets/top10/closing/imgHccStaticP48Tumble.svg +5 -0
  117. package/dist/assets/top10/closing/imgHccStaticP49Tumble.svg +5 -0
  118. package/dist/assets/top10/closing/imgHccStaticP4Tumble.svg +5 -0
  119. package/dist/assets/top10/closing/imgHccStaticP50Tumble.svg +5 -0
  120. package/dist/assets/top10/closing/imgHccStaticP51Tumble.svg +5 -0
  121. package/dist/assets/top10/closing/imgHccStaticP52Tumble.svg +5 -0
  122. package/dist/assets/top10/closing/imgHccStaticP53Tumble.svg +5 -0
  123. package/dist/assets/top10/closing/imgHccStaticP54Tumble.svg +5 -0
  124. package/dist/assets/top10/closing/imgHccStaticP55Tumble.svg +5 -0
  125. package/dist/assets/top10/closing/imgHccStaticP5Tumble.svg +5 -0
  126. package/dist/assets/top10/closing/imgHccStaticP6Tumble.svg +5 -0
  127. package/dist/assets/top10/closing/imgHccStaticP7Tumble.svg +5 -0
  128. package/dist/assets/top10/closing/imgHccStaticP8Tumble.svg +5 -0
  129. package/dist/assets/top10/closing/imgHccStaticP9Tumble.svg +5 -0
  130. package/dist/assets/top10/closing/imgVector.png +0 -0
  131. package/dist/assets/top10/closing/replay.svg +7 -0
  132. package/dist/assets/top10/closing/share.svg +6 -0
  133. package/dist/assets/top10/customers/arrow.svg +6 -0
  134. package/dist/assets/top10/customers/avatar.svg +61 -0
  135. package/dist/assets/top10/customers/illustration.png +0 -0
  136. package/dist/assets/top10/favourite/emoji.svg +9 -0
  137. package/dist/assets/top10/favourite/heart.svg +8 -0
  138. package/dist/assets/top10/growth/coin.svg +10 -0
  139. package/dist/assets/top10/growth/counter-shadow.svg +12 -0
  140. package/dist/assets/top10/growth/counter.svg +8 -0
  141. package/dist/assets/top10/growth/highlight.svg +12 -0
  142. package/dist/assets/top10/growth/illustration.png +0 -0
  143. package/dist/assets/top10/milestone/illustration.png +0 -0
  144. package/dist/assets/top10/orders/giver.svg +18 -0
  145. package/dist/assets/top10/orders/illustration.png +0 -0
  146. package/dist/assets/top10/orders/mask.svg +5 -0
  147. package/dist/assets/top10/orders/parcel.svg +16 -0
  148. package/dist/assets/top10/orders/receiver.svg +20 -0
  149. package/dist/assets/top10/orders/seal.svg +8 -0
  150. package/dist/assets/top10/recognition/contact-mask.svg +6 -0
  151. package/dist/assets/top10/recognition/contact.svg +14 -0
  152. package/dist/assets/top10/recognition/mask.svg +5 -0
  153. package/dist/assets/top10/recognition/plug-left.svg +27 -0
  154. package/dist/assets/top10/recognition/plug-right.svg +23 -0
  155. package/dist/assets/top10/recognition/pulse.svg +15 -0
  156. package/dist/assets/top10/recognition/ring.svg +3 -0
  157. package/dist/assets/top10/shared/avatar.png +0 -0
  158. package/dist/assets/top10/shared/close-dark.svg +5 -0
  159. package/dist/assets/top10/shared/close-light.svg +5 -0
  160. package/dist/assets/top10/signature/glow.svg +13 -0
  161. package/dist/assets/top10/signature/horizon.svg +12 -0
  162. package/dist/assets/top10/signature/inner-glow.svg +13 -0
  163. package/dist/assets/top10/signature/mask.svg +5 -0
  164. package/dist/assets/top10/signature/rim-glow.svg +13 -0
  165. package/dist/assets/top10/signature/rim.svg +13 -0
  166. package/dist/assets/top10/signature/year-mask.svg +5 -0
  167. package/dist/assets/top10/signature/year-shadow.svg +8 -0
  168. package/dist/assets/top10/signature/year.svg +30 -0
  169. package/dist/assets/top10/surprise/illustration.png +0 -0
  170. package/dist/assets/top10/surprise/note-front.svg +275 -0
  171. package/dist/assets/zero-order/catalogue-card.svg +15 -0
  172. package/dist/assets/zero-order/catalogue-ground.svg +3 -0
  173. package/dist/assets/zero-order/catalogue-window.svg +15 -0
  174. package/dist/assets/zero-order/storefront-awning.svg +145 -0
  175. package/dist/assets/zero-order/storefront-chrome.svg +15 -0
  176. package/dist/assets/zero-order/storefront-door-frame.svg +3 -0
  177. package/dist/assets/zero-order/storefront-door-glass.svg +14 -0
  178. package/dist/assets/zero-order/storefront-door-handle-light.svg +3 -0
  179. package/dist/assets/zero-order/storefront-door-handle-shadow.svg +3 -0
  180. package/dist/assets/zero-order/storefront-door-handle.svg +3 -0
  181. package/dist/assets/zero-order/storefront-door-mask.svg +5 -0
  182. package/dist/assets/zero-order/storefront-door-pane.svg +10 -0
  183. package/dist/assets/zero-order/storefront-door-panel.svg +3 -0
  184. package/dist/assets/zero-order/storefront-door-sill.svg +3 -0
  185. package/dist/assets/zero-order/storefront-ground.svg +3 -0
  186. package/dist/assets/zero-order/storefront-shell.svg +19 -0
  187. package/dist/assets/zero-order/storefront-step.svg +8 -0
  188. package/dist/assets/zero-order/storefront-wall.svg +13 -0
  189. package/dist/assets/zero-order/storefront-window-frame.svg +3 -0
  190. package/dist/assets/zero-order/storefront-window-glass.svg +16 -0
  191. package/dist/assets/zero-order/storefront-window-ledge-edge.svg +3 -0
  192. package/dist/assets/zero-order/storefront-window-ledge-line.svg +3 -0
  193. package/dist/assets/zero-order/storefront-window-ledge.svg +3 -0
  194. package/dist/assets/zero-order/storefront-window-mask.svg +5 -0
  195. package/dist/assets/zero-order/storefront-window-pane.svg +10 -0
  196. package/dist/assets/zero-order/storefront-window-sill.svg +3 -0
  197. package/dist/categories.d.ts +15 -0
  198. package/dist/categories.d.ts.map +1 -0
  199. package/dist/categories.js +25 -0
  200. package/dist/components/RecapIntroLayout.css +225 -0
  201. package/dist/components/RecapIntroLayout.d.ts +16 -0
  202. package/dist/components/RecapIntroLayout.d.ts.map +1 -0
  203. package/dist/components/RecapIntroLayout.js +19 -0
  204. package/dist/data/mock.d.ts +12 -2
  205. package/dist/data/mock.d.ts.map +1 -1
  206. package/dist/data/mock.js +99 -59
  207. package/dist/data/recapCopy.d.ts +1 -0
  208. package/dist/data/recapCopy.d.ts.map +1 -1
  209. package/dist/data/recapCopy.js +30 -21
  210. package/dist/data/remoteAssets.d.ts +3 -0
  211. package/dist/data/remoteAssets.d.ts.map +1 -0
  212. package/dist/data/remoteAssets.js +3 -0
  213. package/dist/hooks/useBackgroundMusic.d.ts +8 -8
  214. package/dist/hooks/useBackgroundMusic.d.ts.map +1 -1
  215. package/dist/hooks/useBackgroundMusic.js +38 -43
  216. package/dist/hooks/useCountUp.d.ts +16 -0
  217. package/dist/hooks/useCountUp.d.ts.map +1 -0
  218. package/dist/hooks/useCountUp.js +15 -0
  219. package/dist/hooks/useFrameImages.d.ts +5 -0
  220. package/dist/hooks/useFrameImages.d.ts.map +1 -0
  221. package/dist/hooks/useFrameImages.js +18 -0
  222. package/dist/hooks/useSessionValidator.d.ts +14 -0
  223. package/dist/hooks/useSessionValidator.d.ts.map +1 -0
  224. package/dist/hooks/useSessionValidator.js +97 -0
  225. package/dist/hooks/useShareCardPrecapture.d.ts +17 -0
  226. package/dist/hooks/useShareCardPrecapture.d.ts.map +1 -0
  227. package/dist/hooks/useShareCardPrecapture.js +35 -0
  228. package/dist/hooks/useStatusBarColor.d.ts +6 -0
  229. package/dist/hooks/useStatusBarColor.d.ts.map +1 -0
  230. package/dist/hooks/useStatusBarColor.js +34 -0
  231. package/dist/index.css +1 -1
  232. package/dist/index.d.ts +3 -0
  233. package/dist/index.d.ts.map +1 -1
  234. package/dist/index.js +5 -0
  235. package/dist/slides/Slide10Final.d.ts.map +1 -1
  236. package/dist/slides/Slide10Final.js +2 -50
  237. package/dist/slides/Slide1Intro.css +1 -2
  238. package/dist/slides/Slide1Intro.d.ts.map +1 -1
  239. package/dist/slides/Slide1Intro.js +21 -25
  240. package/dist/slides/Slide2Days.d.ts.map +1 -1
  241. package/dist/slides/Slide2Days.js +7 -44
  242. package/dist/slides/Slide3Revenue.d.ts.map +1 -1
  243. package/dist/slides/Slide3Revenue.js +5 -22
  244. package/dist/slides/Slide4Orders.d.ts.map +1 -1
  245. package/dist/slides/Slide4Orders.js +12 -41
  246. package/dist/slides/Slide5Buyers.d.ts.map +1 -1
  247. package/dist/slides/Slide5Buyers.js +9 -43
  248. package/dist/slides/Slide6Customer.d.ts.map +1 -1
  249. package/dist/slides/Slide6Customer.js +3 -19
  250. package/dist/slides/Slide9Year.d.ts.map +1 -1
  251. package/dist/slides/Slide9Year.js +3 -21
  252. package/dist/slides/registry.d.ts +7 -0
  253. package/dist/slides/registry.d.ts.map +1 -0
  254. package/dist/slides/registry.js +84 -0
  255. package/dist/store/auth.d.ts +40 -0
  256. package/dist/store/auth.d.ts.map +1 -0
  257. package/dist/store/auth.js +40 -0
  258. package/dist/story/StoryProgressBars.d.ts +13 -0
  259. package/dist/story/StoryProgressBars.d.ts.map +1 -0
  260. package/dist/story/StoryProgressBars.js +12 -0
  261. package/dist/story/index.d.ts +12 -0
  262. package/dist/story/index.d.ts.map +1 -0
  263. package/dist/story/index.js +10 -0
  264. package/dist/story/resolveStories.d.ts +9 -0
  265. package/dist/story/resolveStories.d.ts.map +1 -0
  266. package/dist/story/resolveStories.js +23 -0
  267. package/dist/story/storyPlayerReducer.d.ts +33 -0
  268. package/dist/story/storyPlayerReducer.d.ts.map +1 -0
  269. package/dist/story/storyPlayerReducer.js +55 -0
  270. package/dist/story/types.d.ts +55 -0
  271. package/dist/story/types.d.ts.map +1 -0
  272. package/dist/story/types.js +1 -0
  273. package/dist/story/usePreloadAssets.d.ts +8 -0
  274. package/dist/story/usePreloadAssets.d.ts.map +1 -0
  275. package/dist/story/usePreloadAssets.js +21 -0
  276. package/dist/story/useStoryGestures.d.ts +23 -0
  277. package/dist/story/useStoryGestures.d.ts.map +1 -0
  278. package/dist/story/useStoryGestures.js +60 -0
  279. package/dist/story/useStoryKeyboard.d.ts +10 -0
  280. package/dist/story/useStoryKeyboard.d.ts.map +1 -0
  281. package/dist/story/useStoryKeyboard.js +43 -0
  282. package/dist/story/useStoryPlayer.d.ts +26 -0
  283. package/dist/story/useStoryPlayer.d.ts.map +1 -0
  284. package/dist/story/useStoryPlayer.js +64 -0
  285. package/dist/story/useStoryTimer.d.ts +16 -0
  286. package/dist/story/useStoryTimer.d.ts.map +1 -0
  287. package/dist/story/useStoryTimer.js +34 -0
  288. package/dist/story/useVideoCaptureBridge.d.ts +6 -0
  289. package/dist/story/useVideoCaptureBridge.d.ts.map +1 -0
  290. package/dist/story/useVideoCaptureBridge.js +22 -0
  291. package/dist/top10/RecapStory2026.d.ts +20 -0
  292. package/dist/top10/RecapStory2026.d.ts.map +1 -0
  293. package/dist/top10/RecapStory2026.js +67 -0
  294. package/dist/top10/Top10Chrome.d.ts +16 -0
  295. package/dist/top10/Top10Chrome.d.ts.map +1 -0
  296. package/dist/top10/Top10Chrome.js +15 -0
  297. package/dist/top10/Top10Slides.css +308 -0
  298. package/dist/top10/Top10Story.css +250 -0
  299. package/dist/top10/fluctuatingSlides.d.ts +5 -0
  300. package/dist/top10/fluctuatingSlides.d.ts.map +1 -0
  301. package/dist/top10/fluctuatingSlides.js +30 -0
  302. package/dist/top10/format.d.ts +17 -0
  303. package/dist/top10/format.d.ts.map +1 -0
  304. package/dist/top10/format.js +57 -0
  305. package/dist/top10/illustrations/IllustrationLayers.d.ts +51 -0
  306. package/dist/top10/illustrations/IllustrationLayers.d.ts.map +1 -0
  307. package/dist/top10/illustrations/IllustrationLayers.js +51 -0
  308. package/dist/top10/illustrations/closingAssets.d.ts +2 -0
  309. package/dist/top10/illustrations/closingAssets.d.ts.map +1 -0
  310. package/dist/top10/illustrations/closingAssets.js +119 -0
  311. package/dist/top10/illustrations/closingLayers.json +461 -0
  312. package/dist/top10/illustrations/index.d.ts +45 -0
  313. package/dist/top10/illustrations/index.d.ts.map +1 -0
  314. package/dist/top10/illustrations/index.js +646 -0
  315. package/dist/top10/lowDataSlides.d.ts +9 -0
  316. package/dist/top10/lowDataSlides.d.ts.map +1 -0
  317. package/dist/top10/lowDataSlides.js +50 -0
  318. package/dist/top10/motion.d.ts +18 -0
  319. package/dist/top10/motion.d.ts.map +1 -0
  320. package/dist/top10/motion.js +43 -0
  321. package/dist/top10/registry.d.ts +21 -0
  322. package/dist/top10/registry.d.ts.map +1 -0
  323. package/dist/top10/registry.js +313 -0
  324. package/dist/top10/slides.d.ts +87 -0
  325. package/dist/top10/slides.d.ts.map +1 -0
  326. package/dist/top10/slides.js +137 -0
  327. package/dist/top10/steadySlides.d.ts +16 -0
  328. package/dist/top10/steadySlides.d.ts.map +1 -0
  329. package/dist/top10/steadySlides.js +78 -0
  330. package/dist/top10/useCanvasScale.d.ts +18 -0
  331. package/dist/top10/useCanvasScale.d.ts.map +1 -0
  332. package/dist/top10/useCanvasScale.js +50 -0
  333. package/dist/top10/zeroOrderSlides.d.ts +9 -0
  334. package/dist/top10/zeroOrderSlides.d.ts.map +1 -0
  335. package/dist/top10/zeroOrderSlides.js +34 -0
  336. package/dist/types.d.ts +74 -14
  337. package/dist/types.d.ts.map +1 -1
  338. package/dist/types.js +1 -1
  339. package/dist/utils/Helpers.d.ts +7 -0
  340. package/dist/utils/Helpers.d.ts.map +1 -0
  341. package/dist/utils/Helpers.js +21 -0
  342. package/dist/utils/RecapApi.d.ts +3 -0
  343. package/dist/utils/RecapApi.d.ts.map +1 -0
  344. package/dist/utils/RecapApi.js +35 -0
  345. package/dist/utils/Services/AuthServices.d.ts +49 -0
  346. package/dist/utils/Services/AuthServices.d.ts.map +1 -0
  347. package/dist/utils/Services/AuthServices.js +16 -0
  348. package/dist/utils/Services/mockApi.d.ts +49 -0
  349. package/dist/utils/Services/mockApi.d.ts.map +1 -0
  350. package/dist/utils/Services/mockApi.js +60 -0
  351. package/dist/utils/analytics.d.ts +4 -0
  352. package/dist/utils/analytics.d.ts.map +1 -0
  353. package/dist/utils/analytics.js +12 -0
  354. package/dist/utils/shareRecapVideo.d.ts +6 -0
  355. package/dist/utils/shareRecapVideo.d.ts.map +1 -0
  356. package/dist/utils/shareRecapVideo.js +40 -0
  357. package/dist/utils/vendorApp.d.ts +2 -0
  358. package/dist/utils/vendorApp.d.ts.map +1 -0
  359. package/dist/utils/vendorApp.js +4 -0
  360. package/package.json +25 -10
  361. package/src/App.css +8 -0
  362. package/src/App.tsx +75 -22
  363. package/src/LoginScreen.css +6 -139
  364. package/src/LoginScreen.tsx +126 -36
  365. package/src/OtpScreen.css +5 -127
  366. package/src/OtpScreen.tsx +84 -37
  367. package/src/RecapApp.tsx +6 -3
  368. package/src/RecapLoadingScreen.css +11 -0
  369. package/src/RecapLoadingScreen.tsx +64 -0
  370. package/src/RecapStory.tsx +11 -423
  371. package/src/StoryProgress.tsx +18 -104
  372. package/src/categories.ts +30 -0
  373. package/src/components/RecapIntroLayout.css +225 -0
  374. package/src/components/RecapIntroLayout.tsx +64 -0
  375. package/src/data/mock.ts +110 -67
  376. package/src/data/recapCopy.ts +33 -21
  377. package/src/data/remoteAssets.ts +3 -0
  378. package/src/hooks/useBackgroundMusic.ts +46 -48
  379. package/src/hooks/useCountUp.ts +36 -0
  380. package/src/hooks/useFrameImages.ts +19 -0
  381. package/src/hooks/useSessionValidator.ts +115 -0
  382. package/src/hooks/useShareCardPrecapture.ts +50 -0
  383. package/src/hooks/useStatusBarColor.ts +36 -0
  384. package/src/index.css +1 -1
  385. package/src/index.ts +24 -0
  386. package/src/lib/queryClient.ts +34 -0
  387. package/src/main.tsx +44 -0
  388. package/src/queries/recap.ts +15 -0
  389. package/src/slides/Slide10Final.tsx +2 -56
  390. package/src/slides/Slide1Intro.css +1 -2
  391. package/src/slides/Slide1Intro.tsx +22 -32
  392. package/src/slides/Slide2Days.tsx +7 -55
  393. package/src/slides/Slide3Revenue.tsx +5 -29
  394. package/src/slides/Slide4Orders.tsx +12 -53
  395. package/src/slides/Slide5Buyers.tsx +9 -52
  396. package/src/slides/Slide6Customer.tsx +3 -21
  397. package/src/slides/Slide9Year.tsx +3 -26
  398. package/src/slides/registry.tsx +129 -0
  399. package/src/store/auth.tsx +72 -0
  400. package/src/story/StoryProgressBars.tsx +42 -0
  401. package/src/story/index.ts +11 -0
  402. package/src/story/resolveStories.ts +31 -0
  403. package/src/story/storyPlayerReducer.ts +80 -0
  404. package/src/story/types.ts +49 -0
  405. package/src/story/usePreloadAssets.ts +28 -0
  406. package/src/story/useStoryGestures.ts +95 -0
  407. package/src/story/useStoryKeyboard.ts +56 -0
  408. package/src/story/useStoryPlayer.ts +120 -0
  409. package/src/story/useStoryTimer.ts +55 -0
  410. package/src/story/useVideoCaptureBridge.ts +30 -0
  411. package/src/top10/RecapStory2026.tsx +136 -0
  412. package/src/top10/Top10Chrome.tsx +66 -0
  413. package/src/top10/Top10Slides.css +308 -0
  414. package/src/top10/Top10Story.css +250 -0
  415. package/src/top10/fluctuatingSlides.tsx +88 -0
  416. package/src/top10/format.ts +61 -0
  417. package/src/top10/illustrations/IllustrationLayers.tsx +150 -0
  418. package/src/top10/illustrations/closingAssets.ts +120 -0
  419. package/src/top10/illustrations/index.tsx +753 -0
  420. package/src/top10/lowDataSlides.tsx +178 -0
  421. package/src/top10/motion.ts +65 -0
  422. package/src/top10/registry.tsx +370 -0
  423. package/src/top10/slides.tsx +560 -0
  424. package/src/top10/steadySlides.tsx +199 -0
  425. package/src/top10/useCanvasScale.ts +66 -0
  426. package/src/top10/zeroOrderSlides.tsx +120 -0
  427. package/src/types.ts +95 -19
  428. package/src/utils/Helpers.tsx +25 -0
  429. package/src/utils/RecapApi.tsx +39 -0
  430. package/src/utils/Services/AuthServices.tsx +18 -0
  431. package/src/utils/Services/mockApi.ts +77 -0
  432. package/src/utils/analytics.ts +15 -0
  433. package/src/utils/shareRecapVideo.ts +44 -0
  434. package/src/utils/vendorApp.ts +5 -0
  435. package/src/vite-env.d.ts +1 -0
  436. package/src/react-app-env.d.ts +0 -26
@@ -0,0 +1,753 @@
1
+ import React from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import IllustrationLayers, { type IllustrationLayer, type LayerMotion } from './IllustrationLayers';
4
+ import closingLayerData from './closingLayers.json';
5
+ import { closingAssets } from './closingAssets';
6
+ import parcel from '../../assets/top10/orders/parcel.svg';
7
+ import seal from '../../assets/top10/orders/seal.svg';
8
+ import giver from '../../assets/top10/orders/giver.svg';
9
+ import receiver from '../../assets/top10/orders/receiver.svg';
10
+ import floor from '../../assets/top10/biggest-day/floor.svg';
11
+ import marks from '../../assets/top10/biggest-day/marks.svg';
12
+ import phoneBody from '../../assets/top10/biggest-day/phone-body.svg';
13
+ import phoneDetail from '../../assets/top10/biggest-day/phone-detail.svg';
14
+ import coinLeft from '../../assets/top10/biggest-day/coin-left.svg';
15
+ import coinTop from '../../assets/top10/biggest-day/coin-top.svg';
16
+ import coinRight from '../../assets/top10/biggest-day/coin-right.svg';
17
+ import growthCoin from '../../assets/top10/growth/coin.svg';
18
+ import growthCounter from '../../assets/top10/growth/counter.svg';
19
+ import growthCounterShadow from '../../assets/top10/growth/counter-shadow.svg';
20
+ import growthHighlight from '../../assets/top10/growth/highlight.svg';
21
+ import customersAvatar from '../../assets/top10/customers/avatar.svg';
22
+ import customersArrow from '../../assets/top10/customers/arrow.svg';
23
+ import cashNote from '../../assets/top10/surprise/note-front.svg';
24
+ import plugMask from '../../assets/top10/recognition/mask.svg';
25
+ import plugLeft from '../../assets/top10/recognition/plug-left.svg';
26
+ import plugRight from '../../assets/top10/recognition/plug-right.svg';
27
+ import contactMask from '../../assets/top10/recognition/contact-mask.svg';
28
+ import contact from '../../assets/top10/recognition/contact.svg';
29
+ import pulse from '../../assets/top10/recognition/pulse.svg';
30
+ import glow from '../../assets/top10/signature/glow.svg';
31
+ import innerGlow from '../../assets/top10/signature/inner-glow.svg';
32
+ import yearMask from '../../assets/top10/signature/year-mask.svg';
33
+ import yearShadow from '../../assets/top10/signature/year-shadow.svg';
34
+ import year from '../../assets/top10/signature/year.svg';
35
+ import horizon from '../../assets/top10/signature/horizon.svg';
36
+ import rimGlow from '../../assets/top10/signature/rim-glow.svg';
37
+ import rim from '../../assets/top10/signature/rim.svg';
38
+ import busyFloor from '../../assets/fluctuating/phone-floor.svg';
39
+ import busyMarks from '../../assets/fluctuating/phone-marks.svg';
40
+ import busyPhoneBody from '../../assets/fluctuating/phone-body.svg';
41
+ import busyPulse from '../../assets/fluctuating/phone-pulse.svg';
42
+ import busyPhoneDetail from '../../assets/fluctuating/phone-detail.svg';
43
+ import busyNotificationLeft from '../../assets/fluctuating/notification-left.svg';
44
+ import busyNotificationTop from '../../assets/fluctuating/notification-top.svg';
45
+ import busyNotificationRight from '../../assets/fluctuating/notification-right.svg';
46
+ import wave from '../../assets/fluctuating/wave.svg';
47
+ import waveMask from '../../assets/fluctuating/wave-mask.svg';
48
+ import bagShadow from '../../assets/steady/bag/shadow.svg';
49
+ import bagRearHandle from '../../assets/steady/bag/rear-handle.svg';
50
+ import bagRearHandleInner from '../../assets/steady/bag/rear-handle-inner.svg';
51
+ import bagRearHandleTop from '../../assets/steady/bag/rear-handle-top.svg';
52
+ import bagBody from '../../assets/steady/bag/body.svg';
53
+ import bagFrontHandle from '../../assets/steady/bag/front-handle.svg';
54
+ import bagFrontHandleInner from '../../assets/steady/bag/front-handle-inner.svg';
55
+ import bagHand from '../../assets/steady/bag/hand.svg';
56
+ import bagBadge from '../../assets/steady/bag/badge.svg';
57
+ import calendarBase from '../../assets/steady/calendar/base.png';
58
+ import calendarTick from '../../assets/steady/calendar/tick.svg';
59
+ import milestoneCoin from '../../assets/steady/coin.png';
60
+ import milestoneShimmer from '../../assets/steady/coin/shimmer.svg';
61
+ import milestoneShimmerMask from '../../assets/steady/coin/shimmer-mask.svg';
62
+ import signEdge from '../../assets/low-data/sign-edge.svg';
63
+ import signPlaque from '../../assets/low-data/sign-plaque.svg';
64
+ import signRimTop from '../../assets/low-data/sign-rim-top.svg';
65
+ import signInnerBevel from '../../assets/low-data/sign-inner-bevel.svg';
66
+ import signFace from '../../assets/low-data/sign-face.svg';
67
+ import signFaceDetail from '../../assets/low-data/sign-face-detail.svg';
68
+ import signRimBottom from '../../assets/low-data/sign-rim-bottom.svg';
69
+ import signLettering from '../../assets/low-data/sign-lettering.svg';
70
+ import signEyeletLeft from '../../assets/low-data/sign-eyelet-left.svg';
71
+ import signEyeletRight from '../../assets/low-data/sign-eyelet-right.svg';
72
+ import signCordLeft from '../../assets/low-data/sign-cord-left.svg';
73
+ import signCordRight from '../../assets/low-data/sign-cord-right.svg';
74
+ import signPin from '../../assets/low-data/sign-pin.svg';
75
+ import storeGround from '../../assets/low-data/store-ground.svg';
76
+ import storeBrowser from '../../assets/low-data/store-browser.svg';
77
+ import storeCursor from '../../assets/low-data/store-cursor.svg';
78
+ import bookRightPage from '../../assets/low-data/book-right-page.svg';
79
+ import bookRightLeaf from '../../assets/low-data/book-right-leaf.svg';
80
+ import bookLeftPage from '../../assets/low-data/book-left-page.svg';
81
+ import bookSpine from '../../assets/low-data/book-spine.svg';
82
+ import catalogueGround from '../../assets/zero-order/catalogue-ground.svg';
83
+ import catalogueWindow from '../../assets/zero-order/catalogue-window.svg';
84
+ import catalogueCard from '../../assets/zero-order/catalogue-card.svg';
85
+ import storefrontGround from '../../assets/zero-order/storefront-ground.svg';
86
+ import storefrontShell from '../../assets/zero-order/storefront-shell.svg';
87
+ import storefrontChrome from '../../assets/zero-order/storefront-chrome.svg';
88
+ import storefrontWall from '../../assets/zero-order/storefront-wall.svg';
89
+ import storefrontWindowFrame from '../../assets/zero-order/storefront-window-frame.svg';
90
+ import storefrontWindowPane from '../../assets/zero-order/storefront-window-pane.svg';
91
+ import storefrontWindowMask from '../../assets/zero-order/storefront-window-mask.svg';
92
+ import storefrontWindowGlass from '../../assets/zero-order/storefront-window-glass.svg';
93
+ import storefrontWindowSill from '../../assets/zero-order/storefront-window-sill.svg';
94
+ import storefrontWindowLedge from '../../assets/zero-order/storefront-window-ledge.svg';
95
+ import storefrontWindowLedgeLine from '../../assets/zero-order/storefront-window-ledge-line.svg';
96
+ import storefrontWindowLedgeEdge from '../../assets/zero-order/storefront-window-ledge-edge.svg';
97
+ import storefrontDoorFrame from '../../assets/zero-order/storefront-door-frame.svg';
98
+ import storefrontDoorPane from '../../assets/zero-order/storefront-door-pane.svg';
99
+ import storefrontDoorMask from '../../assets/zero-order/storefront-door-mask.svg';
100
+ import storefrontDoorGlass from '../../assets/zero-order/storefront-door-glass.svg';
101
+ import storefrontDoorPanel from '../../assets/zero-order/storefront-door-panel.svg';
102
+ import storefrontDoorHandleShadow from '../../assets/zero-order/storefront-door-handle-shadow.svg';
103
+ import storefrontDoorHandle from '../../assets/zero-order/storefront-door-handle.svg';
104
+ import storefrontDoorHandleLight from '../../assets/zero-order/storefront-door-handle-light.svg';
105
+ import storefrontDoorSill from '../../assets/zero-order/storefront-door-sill.svg';
106
+ import storefrontStep from '../../assets/zero-order/storefront-step.svg';
107
+ import storefrontAwning from '../../assets/zero-order/storefront-awning.svg';
108
+ import { loop, popIn, sequence } from '../motion';
109
+
110
+ /* Motion follows the designer's recap video; delays are seconds after the slide starts fading in.
111
+ Each layer's Figma position is where it rests, so motion values are offsets from that. */
112
+
113
+ // Giver brings the parcel in, receiver reaches in, giver lets go as the parcel slides across, then the seal stamps.
114
+ const HANDOFF = [0, 0.4, 2.1, 2.7];
115
+
116
+ // Figma: huxxle-parcel-handoff-illustration 18617:30005
117
+ const ORDERS_LAYERS: IllustrationLayer[] = [
118
+ { src: parcel, inset: '26.06% 22.87% 47.41% 26.67%', width: 'hypot(98.062cqw, -5.5133cqh)', height: 'hypot(1.93801cqw, 94.4867cqh)', transform: 'rotate(-1.94deg)',
119
+ motion: sequence(0.9, HANDOFF, { x: [-80, -20, -20, 0], opacity: [0, 1, 1, 1] }) },
120
+ { src: seal, inset: '39.31% 28.43% 52.31% 62.22%', width: 'hypot(96.6134cqw, -3.18502cqh)', height: 'hypot(3.3866cqw, 96.815cqh)', transform: 'rotate(-1.94deg)',
121
+ motion: sequence(3.9, [0, 0.2, 0.35], { scale: [0, 1.25, 1], opacity: [0, 1, 1] }, 'easeOut') },
122
+ { src: giver, inset: '46.79% 49.58% 12.29% -0.1%', width: 'hypot(73.0504cqw, 34.9519cqh)', height: 'hypot(-26.9496cqw, 65.0481cqh)', transform: 'rotate(24deg)',
123
+ motion: sequence(0.9, HANDOFF, { x: [-60, 0, 0, 0], y: [-30, -30, -30, 0], opacity: [0, 1, 1, 1] }) },
124
+ { src: receiver, inset: '44.4% 2.65% 30.07% 49.86%', width: 'hypot(98.0166cqw, -5.39146cqh)', height: 'hypot(1.98344cqw, 94.6085cqh)', transform: 'rotate(-1.94deg)',
125
+ motion: sequence(1.9, [0, 0.35], { x: [60, 0], opacity: [0, 1] }, 'easeOut') },
126
+ ];
127
+
128
+ // Phone buzzes, coins burst out of its top to their Figma spots, then drift off; repeats every 2.9s.
129
+ const BUZZ_DELAY = 1.5;
130
+ const BUZZ_PERIOD = 2.9;
131
+ const phoneShake = loop(BUZZ_DELAY, BUZZ_PERIOD, [0, 0.07, 0.14, 0.21, 0.28, 0.35, BUZZ_PERIOD], { x: [0, -3, 3, -3, 3, 0, 0] }, 'easeInOut');
132
+ const coinBurst = (index: number, fromX: number, fromY: number) =>
133
+ loop(BUZZ_DELAY + 0.2 + index * 0.05, BUZZ_PERIOD, [0, 0.35, 0.9, 1.5, BUZZ_PERIOD], {
134
+ x: [fromX, 0, 0, -fromX * 0.25, -fromX * 0.25],
135
+ y: [fromY, 0, 0, 22, 22],
136
+ scale: [0.4, 1, 1, 0.9, 0.9],
137
+ opacity: [0, 1, 1, 0, 0],
138
+ });
139
+
140
+ // Figma: huxxle-phone-pop-illustration 18635:57808
141
+ const BIGGEST_DAY_LAYERS: IllustrationLayer[] = [
142
+ { src: floor, inset: '87.17% 34.58% 8.28% 32.62%', opacity: 0.09, motion: popIn(0.5) },
143
+ { src: marks, inset: '42.14% 31.1% 37.65% 32%', opacity: 0.7,
144
+ motion: loop(BUZZ_DELAY, BUZZ_PERIOD, [0, 0.1, 0.45, 0.7, BUZZ_PERIOD], { opacity: [0, 1, 1, 0, 0] }) },
145
+ { src: phoneBody, inset: '27% 37% 10.05% 36.94%', motion: popIn(0.6, { scale: 0.85, y: 12 }), imageMotion: phoneShake },
146
+ { src: phoneDetail, inset: '30.38% 46.52% 15.13% 44.1%', motion: popIn(0.6, { scale: 0.85, y: 12 }), imageMotion: phoneShake },
147
+ { src: coinLeft, inset: '10.67% 58.31% 74.69% 30.65%', width: 'hypot(80.9481cqw, -20.8939cqh)', height: 'hypot(19.0519cqw, 79.1061cqh)', transform: 'rotate(-14deg)',
148
+ motion: coinBurst(0, 47, 42) },
149
+ { src: coinTop, inset: '4.39% 27.14% 80.39% 61.29%', width: 'hypot(86.9935cqw, 14.3678cqh)', height: 'hypot(-13.0065cqw, 85.6322cqh)', transform: 'rotate(9deg)',
150
+ motion: coinBurst(1, -59, 58) },
151
+ { src: coinRight, inset: '31.91% 19.5% 55.92% 71.15%', width: 'hypot(95.286cqw, -5.25981cqh)', height: 'hypot(4.71396cqw, 94.7402cqh)', transform: 'rotate(-3deg)',
152
+ motion: coinBurst(2, -88, -8) },
153
+ ];
154
+
155
+ /** Stack of identical coins. Tops step up by `step`%; bottom coin uses `bottom`/`left`/`right`. */
156
+ function coinStack({
157
+ count,
158
+ left,
159
+ right,
160
+ bottom,
161
+ step,
162
+ delay,
163
+ stagger,
164
+ drop = 0,
165
+ }: {
166
+ count: number;
167
+ left: number;
168
+ right: number;
169
+ bottom: number;
170
+ step: number;
171
+ delay: number;
172
+ stagger: number;
173
+ drop?: number;
174
+ }): IllustrationLayer[] {
175
+ const height = 3.26;
176
+ return Array.from({ length: count }, (_, index) => {
177
+ const top = 100 - bottom - height - index * step;
178
+ return {
179
+ src: growthCoin,
180
+ inset: `${top.toFixed(2)}% ${right}% ${(bottom + index * step).toFixed(2)}% ${left}%`,
181
+ motion: sequence(delay + index * stagger, [0, 0.25], {
182
+ y: [drop, 0],
183
+ opacity: [0, 1],
184
+ }, 'easeOut'),
185
+ };
186
+ });
187
+ }
188
+
189
+ // Platform, short stack, then 40 coins drop onto the tall stack; a sheen sweeps after they settle.
190
+ // Figma: huxxle-coin-growth-illustration 18643:59321
191
+ const GROWTH_LAYERS: IllustrationLayer[] = [
192
+ { src: growthCounterShadow, inset: '87.94% 7.73% 10.28% 7.73%', motion: popIn(1.0) },
193
+ { src: growthCounter, inset: '81.73% 5.98% 12.5% 5.98%', motion: popIn(1.1, { y: 8 }) },
194
+ ...coinStack({ count: 10, left: 14.58, right: 60.93, bottom: 18.27, step: 1.28, delay: 1.15, stagger: 0.04, drop: -12 }),
195
+ ...coinStack({ count: 40, left: 58.89, right: 16.62, bottom: 18.27, step: 1.28, delay: 1.5, stagger: 0.075, drop: -90 }),
196
+ {
197
+ src: growthHighlight,
198
+ inset: '28.61% 16.62% 18.27% 14.58%',
199
+ opacity: 0.55,
200
+ motion: sequence(6.5, [0, 0.8, 1.6], { x: [-180, 40, 220], opacity: [0, 0.7, 0] }, 'easeInOut'),
201
+ },
202
+ ];
203
+
204
+ // Avatar pops in, then the return arrow draws itself clockwise from its tail at about 4 o'clock, holds,
205
+ // fades, stays hidden for a beat and redraws; the cycle repeats every 5.2s.
206
+ // `--sweep` is how many degrees of the arrow the conic mask reveals.
207
+ const ARROW_PERIOD = 5.2;
208
+ const arrowDraw = loop(1.0, ARROW_PERIOD, [0, 1.1, 3.9, 4.1, 4.15, ARROW_PERIOD], {
209
+ '--sweep': [0, 360, 360, 360, 0, 0],
210
+ opacity: [1, 1, 1, 0, 0, 0],
211
+ }, 'easeInOut');
212
+
213
+ // Figma: huxxle-customer-return-illustration 18738:3163 (assets 19051:5655, 19051:5708)
214
+ const CUSTOMERS_LAYERS: IllustrationLayer[] = [
215
+ {
216
+ src: customersAvatar,
217
+ inset: '8.63% 21.12% 9.43% 22.85%',
218
+ motion: popIn(0.6, { scale: 0.82 }),
219
+ },
220
+ {
221
+ src: customersArrow,
222
+ inset: '5% 20.28%',
223
+ mask: {
224
+ image: 'conic-gradient(from 120deg, #000 calc(var(--sweep, 0) * 1deg), transparent 0)',
225
+ position: '0 0',
226
+ size: '100% 100%',
227
+ },
228
+ motion: arrowDraw,
229
+ },
230
+ ];
231
+
232
+ // Fourteen notes fall through the frame at a steady ~65px/s, swaying, tilting and flipping as they go.
233
+ // Each starts at its Figma spot (wrapped into the frame), so the rain is already falling when the slide opens;
234
+ // a note re-enters from above the frame once it has left the bottom.
235
+ // Figma: huxxle-cash-rain-illustration 18743:3698 (note art 19051:5709)
236
+ const CASH_NOTES: Array<{ inset: string; rotate: number }> = [
237
+ { inset: '43.02% 62.00% 35.79% 7.30%', rotate: -16 },
238
+ { inset: '29.97% 20.71% 57.01% 57.88%', rotate: 12 },
239
+ { inset: '16.15% 37.84% 60.52% 33.81%', rotate: -8 },
240
+ { inset: '9.17% 80.55% 79.91% 13.77%', rotate: 22 },
241
+ { inset: '-5.03% 1.49% 79.98% 66.83%', rotate: -22 },
242
+ { inset: '-14.36% 44.49% 96.41% 37.70%', rotate: 8 },
243
+ { inset: '-21.84% 23.73% 105.71% 48.14%', rotate: -12 },
244
+ { inset: '109.47% 62.24% -31.13% 9.75%', rotate: 18 },
245
+ { inset: '106.33% 6.93% -20.02% 71.50%', rotate: -6 },
246
+ { inset: '109.44% 40.07% -24.90% 29.00%', rotate: 14 },
247
+ { inset: '84.64% 78.24% 1.17% 8.28%', rotate: -20 },
248
+ { inset: '73.26% 22.72% 5.03% 50.47%', rotate: 10 },
249
+ { inset: '59.13% 57.09% 23.64% 25.91%', rotate: -14 },
250
+ { inset: '49.40% -2.98% 29.52% 77.47%', rotate: 6 },
251
+ ];
252
+
253
+ const CASH_SIZE = { width: 343, height: 330 };
254
+ const CASH_SPEED = 65;
255
+
256
+ function cashFall(inset: string, index: number): LayerMotion {
257
+ const [top, , bottom] = inset.split(' ').map(parseFloat);
258
+ const frame = CASH_SIZE.height;
259
+ const noteHeight = ((100 - top - bottom) / 100) * frame;
260
+ const lap = frame + noteHeight;
261
+ const figmaTop = (top / 100) * frame;
262
+ const startTop = ((((figmaTop + noteHeight) % lap) + lap) % lap) - noteHeight;
263
+ const exitAt = Math.min((frame - startTop) / lap, 0.999);
264
+ const sway = 1.8 + (index % 5) * 0.3;
265
+ const side = index % 2 ? 1 : -1;
266
+ const swing = (duration: number) => ({ duration, repeat: Infinity, repeatType: 'mirror' as const, ease: 'easeInOut' as const });
267
+ return {
268
+ initial: { y: startTop - figmaTop, x: -8 * side, rotate: -10 * side, rotateX: 0 },
269
+ animate: {
270
+ y: [startTop - figmaTop, frame - figmaTop, -noteHeight - figmaTop, startTop - figmaTop],
271
+ x: [-8 * side, 8 * side],
272
+ rotate: [-10 * side, 10 * side],
273
+ rotateX: [0, 55],
274
+ },
275
+ transition: {
276
+ y: { duration: lap / CASH_SPEED, times: [0, exitAt, exitAt + 0.0005, 1], ease: 'linear', repeat: Infinity },
277
+ x: swing(sway),
278
+ rotate: swing(sway * 1.3),
279
+ rotateX: swing(sway * 0.8),
280
+ },
281
+ };
282
+ }
283
+
284
+ const SURPRISE_LAYERS: IllustrationLayer[] = CASH_NOTES.map((note, index) => ({
285
+ src: cashNote,
286
+ inset: note.inset,
287
+ // Keep the Figma tilt on the CSS transform; the motion layer adds the fall and flutter on top.
288
+ transform: `rotate(${note.rotate}deg)`,
289
+ motion: cashFall(note.inset, index),
290
+ }));
291
+
292
+ // Notes fade in under the heading and out above the order count instead of cutting at the frame edges.
293
+ const CASH_EDGE_FADE = 'linear-gradient(to bottom, transparent, #000 14%, #000 88%, transparent)';
294
+
295
+ const plugMaskOnly = (position: string) => ({ image: `url("${plugMask}")`, position, size: '116px 116px', alpha: true });
296
+ const plugMasks = (plugPosition: string, contactPosition: string) => ({
297
+ image: `url("${plugMask}"), url("${contactMask}")`,
298
+ position: `${plugPosition}, ${contactPosition}`,
299
+ size: '116px 116px, 154.767px 68.722px',
300
+ });
301
+
302
+ // The two plugs start apart and push together along the cable (the art is rotated, so x runs along it);
303
+ // moving the art inside its mask keeps the ring's circular clip fixed.
304
+ // Opacity stays on the outer layer: Chromium drops masked art whose own opacity is animated.
305
+ const plugIn = (fromX: number) => ({
306
+ motion: sequence(0.1, [0, 0.3], { opacity: [0, 1] }, 'easeOut'),
307
+ imageMotion: sequence(0.1, [0, 0.3, 0.9], { x: [fromX, fromX, 0] }),
308
+ });
309
+
310
+ // Figma: huxxle-top-plug-illustration 18755:3028 (119×119)
311
+ const PLUG_LAYERS: IllustrationLayer[] = [
312
+ { src: plugLeft, inset: '21.13% 41.24% 37.77% -14.04%', width: 'hypot(92.1653cqw, 34.7039cqh)', height: 'hypot(-7.83475cqw, 65.2961cqh)', transform: 'rotate(12deg)', mask: plugMaskOnly('18.208px -23.65px'), ...plugIn(-12) },
313
+ { src: plugRight, inset: '38.72% -13.9% 21.12% 42.9%', width: 'hypot(92.1392cqw, 34.6224cqh)', height: 'hypot(-7.86077cqw, 65.3776cqh)', transform: 'rotate(12deg)', mask: plugMaskOnly('-49.548px -44.578px'), ...plugIn(12) },
314
+ { src: contact, inset: '39.3% 49.66% 39.63% 44.18%', width: 'hypot(28.6532cqw, 1.78212cqh)', height: 'hypot(-71.3468cqw, 98.2179cqh)', transform: 'rotate(12deg)', mask: plugMasks('-51.074px -45.27px', '-70.469px -21.62px'), ...plugIn(-12) },
315
+ { src: pulse, inset: '43.35% -35.87% 11.09% 115.88%', width: 'hypot(53.9952cqw, 5.03571cqh)', height: 'hypot(-46.0048cqw, 94.9643cqh)', transform: 'rotate(12deg)', mask: plugMasks('-136.397px -50.087px', '-155.792px -26.437px') },
316
+ { src: contact, inset: '39.3% 49.66% 39.63% 44.18%', width: 'hypot(28.6532cqw, 1.78212cqh)', height: 'hypot(-71.3468cqw, 98.2179cqh)', transform: 'rotate(12deg)', mask: plugMasks('-51.074px -45.27px', '-70.469px -21.62px'), ...plugIn(-12) },
317
+ ];
318
+
319
+ const yearClip = (position: string) => ({ image: `url("${yearMask}")`, position, size: '343px 271px' });
320
+
321
+ // The rim lights up, then the year rises from behind the horizon: the sky shape of year-mask.svg,
322
+ // which sits at the illustration's origin, clips it while it moves.
323
+ const yearRise = { clipPath: "path('M0 0H343V271C260 216 83 216 0 271V0Z')", motion: sequence(0.6, [0, 0.7], { y: [120, 0] }, [0.22, 1, 0.36, 1]) };
324
+ const glowIn = (delay: number, duration: number) => ({ motion: sequence(delay, [0, duration], { opacity: [0, 1] }, 'easeOut') });
325
+
326
+ // Figma: huxxle-new-horizon-illustration 18679:60296
327
+ const HORIZON_LAYERS: IllustrationLayer[] = [
328
+ { src: glow, inset: '32.1% -0.06% 1.59% -0.06%', ...glowIn(0.2, 0.8) },
329
+ { src: innerGlow, inset: '45.68% 17.38% 15.17% 17.38%', ...glowIn(0.2, 0.8) },
330
+ { src: yearShadow, inset: '30.71% 8.6% 41.92% 8.6%', width: '100cqw', height: '100cqh', transform: 'rotate(-180deg) scaleX(-1)', opacity: 0.44, mask: yearClip('-29.5px -108.729px'), ...yearRise },
331
+ { src: year, inset: '29.98% 8.6% 42.66% 8.6%', width: '100cqw', height: '100cqh', transform: 'rotate(-180deg) scaleX(-1)', mask: yearClip('-29.5px -106.129px'), ...yearRise },
332
+ { src: horizon, inset: '64.9% 0 0 0' },
333
+ { src: rimGlow, inset: '64.9% 0 23.45% 0', imageInset: '-5.58% -0.67%', ...glowIn(0.15, 0.35) },
334
+ { src: rim, inset: '64.9% 0 23.45% 0', imageInset: '-1.33% -0.16%', ...glowIn(0.15, 0.35) },
335
+ ];
336
+
337
+ // Confetti gathers just above the middle, the logo pops in as it bursts out to its Figma spots and falls away;
338
+ // the logo fades and the burst repeats every 5.2s.
339
+ const CELEBRATION_DELAY = 0.2;
340
+ const CELEBRATION_PERIOD = 5.2;
341
+ const CLOSING_SIZE = { width: 343, height: 310 };
342
+
343
+ const logoPop = loop(CELEBRATION_DELAY, CELEBRATION_PERIOD, [0, 0.15, 0.5, 4, 4.5, CELEBRATION_PERIOD], {
344
+ opacity: [0, 0, 1, 1, 0, 0],
345
+ scale: [0.6, 0.6, 1, 1, 0.9, 0.9],
346
+ });
347
+
348
+ function confettiBurst(inset: string, index: number) {
349
+ const [top, right, bottom, left] = inset.split(' ').map(parseFloat);
350
+ const fromX = ((50 - (left + 100 - right) / 2) / 100) * CLOSING_SIZE.width * 0.9;
351
+ const fromY = ((40 - (top + 100 - bottom) / 2) / 100) * CLOSING_SIZE.height * 0.9;
352
+ return loop(CELEBRATION_DELAY + (index % 7) * 0.03, CELEBRATION_PERIOD, [0, 0.15, 0.6, 1.6, CELEBRATION_PERIOD], {
353
+ x: [fromX, fromX, 0, 0, 0],
354
+ y: [fromY, fromY, 0, 30, 30],
355
+ rotate: [0, 0, 0, 90, 90],
356
+ opacity: [0, 1, 1, 0, 0],
357
+ });
358
+ }
359
+
360
+ // Figma: huxxle-closing-celebration-illustration 18597:29626 (halo, 56 confetti pieces, logo)
361
+ const CLOSING_LAYERS: IllustrationLayer[] = (closingLayerData as Array<IllustrationLayer & { src: string }>).map(
362
+ (layer, index, layers) => ({
363
+ ...layer,
364
+ src: closingAssets[layer.src],
365
+ motion: index === 0 || index === layers.length - 1 ? logoPop : confettiBurst(layer.inset, index),
366
+ })
367
+ );
368
+
369
+ // Figma has no motion for these two; the slide brings each in whole.
370
+ // Figma: huxxle-busy-phone-illustration 18940:8095 (Fluctuating Milestone)
371
+ /* Busy phone (Fluctuating Milestone): phone lands, then buzzes while notifications pop in a loop — seasonal video. */
372
+ const BUSY_BUZZ_DELAY = 1.1;
373
+ const BUSY_BUZZ_PERIOD = 3.0;
374
+ const busyPhoneShake = loop(BUSY_BUZZ_DELAY, BUSY_BUZZ_PERIOD, [0, 0.07, 0.14, 0.21, 0.28, 0.35, BUSY_BUZZ_PERIOD], {
375
+ x: [0, -3, 3, -3, 3, 0, 0],
376
+ }, 'easeInOut');
377
+ const busyNotifPop = (delay: number) =>
378
+ loop(delay, BUSY_BUZZ_PERIOD, [0, 0.2, 0.35, 1.6, 1.8, BUSY_BUZZ_PERIOD], {
379
+ scale: [0, 1.15, 1, 1, 0, 0],
380
+ opacity: [0, 1, 1, 1, 0, 0],
381
+ }, 'easeOut');
382
+
383
+ const BUSY_PHONE_LAYERS: IllustrationLayer[] = [
384
+ { src: busyFloor, inset: '86.23% 33.04% 9.93% 30.88%', opacity: 0.09, motion: popIn(0.45) },
385
+ {
386
+ src: busyMarks,
387
+ inset: '48.25% 29.21% 34.71% 30.2%',
388
+ opacity: 0.55,
389
+ motion: loop(BUSY_BUZZ_DELAY, BUSY_BUZZ_PERIOD, [0, 0.1, 0.45, 0.7, BUSY_BUZZ_PERIOD], { opacity: [0, 1, 1, 0, 0] }),
390
+ },
391
+ {
392
+ src: busyPhoneBody,
393
+ inset: '35.48% 35.7% 11.42% 35.63%',
394
+ motion: popIn(0.55, { scale: 0.85, y: 12 }),
395
+ imageMotion: busyPhoneShake,
396
+ },
397
+ {
398
+ src: busyPulse,
399
+ inset: '50.29% 40.43% 28.46% 39.85%',
400
+ opacity: 0.84,
401
+ motion: popIn(0.55, { scale: 0.85, y: 12 }),
402
+ imageMotion: loop(BUSY_BUZZ_DELAY, BUSY_BUZZ_PERIOD, [0, 0.35, 0.7, BUSY_BUZZ_PERIOD], { opacity: [0.4, 1, 0.55, 0.4] }, 'easeInOut'),
403
+ },
404
+ {
405
+ src: busyPhoneDetail,
406
+ inset: '38.33% 46.18% 15.71% 43.51%',
407
+ motion: popIn(0.55, { scale: 0.85, y: 12 }),
408
+ imageMotion: busyPhoneShake,
409
+ },
410
+ {
411
+ src: busyNotificationTop,
412
+ inset: '12.58% 34.11% 72.64% 39.07%',
413
+ imageInset: '-1.66% -3.8% -8.3% -3.8%',
414
+ motion: busyNotifPop(BUSY_BUZZ_DELAY + 0.15),
415
+ },
416
+ {
417
+ src: busyNotificationLeft,
418
+ inset: '33.13% 68.8% 52.7% 6.12%',
419
+ imageInset: '-1.73% -4.07% -8.66% -4.07%',
420
+ motion: busyNotifPop(BUSY_BUZZ_DELAY + 0.28),
421
+ },
422
+ {
423
+ src: busyNotificationRight,
424
+ inset: '48.47% 6.12% 37.36% 69.39%',
425
+ imageInset: '-1.73% -4.17% -8.66% -4.17%',
426
+ motion: busyNotifPop(BUSY_BUZZ_DELAY + 0.4),
427
+ },
428
+ ];
429
+
430
+ // Figma: huxxle-seasonal-wave-illustration 18944:9018 (Fluctuating Recognition), clipped to the ring's circle
431
+ const SEASONAL_WAVE_LAYERS: IllustrationLayer[] = [
432
+ {
433
+ src: wave,
434
+ inset: '31.32% -13.33% -10% -13.33%',
435
+ mask: { image: `url("${waveMask}")`, position: '17.1px -36.484px', size: '117.801px 117.8px', alpha: true },
436
+ motion: popIn(0.3, { scale: 0.85 }),
437
+ // Gentle swell so the liquid reads as moving (seasonal video).
438
+ imageMotion: loop(0.8, 4.2, [0, 1.2, 2.4, 4.2], { y: [0, -4, 2, 0], scale: [1, 1.04, 0.98, 1] }, 'easeInOut'),
439
+ },
440
+ ];
441
+
442
+ // Figma: huxxle-steady-bag-pickup-illustration 18870:188037 / 18947:183166 (Steady Orders, Low data First order).
443
+ // The node exports with its slide's background baked in, so it is rebuilt from its layers.
444
+ const BAG_TILT = 'rotate(0.98deg)';
445
+ const BAG_REAR_HANDLE_BOX = {
446
+ inset: '15.49% 36.86% 70.62% 42.91%',
447
+ width: 'hypot(98.6789cqw, 2.14145cqh)',
448
+ height: 'hypot(-1.32108cqw, 97.8585cqh)',
449
+ transform: BAG_TILT,
450
+ };
451
+ /* Steady bag pickup (video): hand reaches in, badge stamps, bag lifts off, then the cycle repeats. */
452
+ const BAG_DELAY = 0.8;
453
+ const BAG_PERIOD = 4.6;
454
+ const bagLift = loop(BAG_DELAY, BAG_PERIOD, [0, 0.6, 1.3, 2.1, 2.9, 3.6, BAG_PERIOD], {
455
+ y: [0, 0, 0, -36, -140, -140, 0],
456
+ opacity: [1, 1, 1, 1, 0, 0, 1],
457
+ });
458
+ const bagHandReach = loop(BAG_DELAY, BAG_PERIOD, [0, 0.35, 0.7, 1.3, 2.1, 2.9, 3.6, BAG_PERIOD], {
459
+ y: [-90, 0, 0, 0, -36, -140, -140, -90],
460
+ opacity: [0, 1, 1, 1, 1, 0, 0, 0],
461
+ });
462
+ const bagBadgeStamp = loop(BAG_DELAY, BAG_PERIOD, [0, 0.85, 1.0, 1.15, 1.3, 2.1, 2.9, 3.6, BAG_PERIOD], {
463
+ scale: [0, 0, 1.28, 1, 1, 1, 1, 0, 0],
464
+ opacity: [0, 0, 1, 1, 1, 1, 0, 0, 0],
465
+ y: [0, 0, 0, 0, 0, -36, -140, -140, 0],
466
+ });
467
+ const bagShadowPulse = loop(BAG_DELAY, BAG_PERIOD, [0, 1.3, 2.1, 2.9, 3.6, BAG_PERIOD], {
468
+ opacity: [0.06, 0.06, 0.03, 0, 0, 0.06],
469
+ scale: [1, 1, 0.85, 0.6, 0.6, 1],
470
+ });
471
+
472
+ const BAG_LAYERS: IllustrationLayer[] = [
473
+ { src: bagShadow, inset: '85.78% 34.59% 10.65% 33.95%', motion: bagShadowPulse },
474
+ { src: bagRearHandle, ...BAG_REAR_HANDLE_BOX, imageInset: '-5.22% -4.08%', motion: bagLift },
475
+ { src: bagRearHandleInner, inset: '14.79% 35.45% 67.39% 42.03%', width: 'hypot(98.4729cqw, 1.8541cqh)', height: 'hypot(-1.52711cqw, 98.1459cqh)', transform: BAG_TILT, motion: bagLift },
476
+ { src: bagRearHandleTop, ...BAG_REAR_HANDLE_BOX, imageInset: '-4.96% -3.88%', motion: bagLift },
477
+ { src: bagBody, inset: '27.74% 23.27% 26.98% 23.39%', width: 'hypot(98.3601cqw, 1.72686cqh)', height: 'hypot(-1.63988cqw, 98.2731cqh)', transform: BAG_TILT, imageInset: '-0.22% -0.13% -0.13% -0.13%', motion: bagLift },
478
+ { src: bagFrontHandle, inset: '14.67% 39.87% 65.16% 38.42%', width: 'hypot(98.2021cqw, 1.575cqh)', height: 'hypot(-1.79788cqw, 98.425cqh)', transform: BAG_TILT, imageInset: '-4.19% -4.46% -4.17% -4.46%', motion: bagLift },
479
+ { src: bagFrontHandleInner, inset: '13.83% 38.56% 61.45% 37.28%', width: 'hypot(98.0171cqw, 1.4275cqh)', height: 'hypot(-1.98287cqw, 98.5725cqh)', transform: BAG_TILT, motion: bagLift },
480
+ { src: bagHand, inset: '-15.06% -17.37% 66.22% 44.81%', width: 'hypot(85.7412cqw, 28.6825cqh)', height: 'hypot(-14.2588cqw, 71.3175cqh)', transform: 'rotate(14.5deg)', motion: bagHandReach },
481
+ { src: bagBadge, inset: '46.6% 16.63% 37.92% 65.58%', width: 'hypot(98.3172cqw, 1.68282cqh)', height: 'hypot(-1.68282cqw, 98.3172cqh)', transform: BAG_TILT, motion: bagBadgeStamp },
482
+ ];
483
+
484
+ /* Figma: huxxle-steady-calendar-illustration 18868:181438 — tick stamp sc-stamp-2 18868:181507.
485
+ Only the busiest month (most orders) is stamped; insets keep the March stamp offset inside each cell. */
486
+ const CALENDAR_MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] as const;
487
+ const CALENDAR_TICK_INSETS: Record<(typeof CALENDAR_MONTHS)[number], string> = {
488
+ Jan: '30.61% 72.33% 62.45% 19.69%',
489
+ Feb: '30.61% 46.24% 62.45% 45.79%',
490
+ Mar: '30.61% 20.71% 62.56% 71.45%',
491
+ Apr: '47.09% 72.31% 45.97% 19.71%',
492
+ May: '47.09% 46.23% 45.97% 45.80%',
493
+ Jun: '47.08% 20.56% 45.97% 71.46%',
494
+ Jul: '63.65% 72.32% 29.41% 19.70%',
495
+ Aug: '63.64% 46.19% 29.42% 45.84%',
496
+ Sep: '63.64% 20.63% 29.42% 71.40%',
497
+ Oct: '80.28% 72.33% 12.78% 19.70%',
498
+ Nov: '80.27% 46.16% 12.79% 45.87%',
499
+ Dec: '80.28% 20.65% 12.78% 71.38%',
500
+ };
501
+
502
+ const CALENDAR_TICK_START = 1.05;
503
+ const CALENDAR_TICK_BOX = {
504
+ width: 'hypot(96.6258cqw, -3.37425cqh)',
505
+ height: 'hypot(3.37425cqw, 96.6258cqh)',
506
+ transform: 'rotate(-2deg)',
507
+ imageInset: '-2.6%',
508
+ } as const;
509
+
510
+ const calendarTickKey = (month: string): (typeof CALENDAR_MONTHS)[number] => {
511
+ const key = CALENDAR_MONTHS.find((name) => name.toLowerCase().startsWith(month.slice(0, 3).toLowerCase()));
512
+ return key ?? 'Nov';
513
+ };
514
+
515
+ const calendarLayers = (month: string): IllustrationLayer[] => [
516
+ { src: calendarBase, inset: '0% 0% 0% 0%', motion: popIn(0.5, { scale: 0.94, y: 12 }) },
517
+ {
518
+ src: calendarTick,
519
+ inset: CALENDAR_TICK_INSETS[calendarTickKey(month)],
520
+ ...CALENDAR_TICK_BOX,
521
+ motion: sequence(CALENDAR_TICK_START, [0, 0.18, 0.32], { scale: [0, 1.28, 1], opacity: [0, 1, 1] }, 'easeOut'),
522
+ },
523
+ ];
524
+
525
+ /* Figma: huxxle-open-sign-illustration 18949:183401 (Low data First chapter).
526
+ Layer names os-swing-once / os-swing-idle: plaque+cords swing from the pin, then idle sway. */
527
+ const OPEN_SIGN_PIN: IllustrationLayer = {
528
+ src: signPin,
529
+ inset: '30% 47.42% 64.72% 47.65%',
530
+ imageInset: '-1.18%',
531
+ motion: popIn(0.45, { scale: 0.9 }),
532
+ };
533
+ const OPEN_SIGN_SWING_LAYERS: IllustrationLayer[] = [
534
+ { src: signEdge, inset: '46.56% 49.3% 27.29% 49.3%' },
535
+ { src: signPlaque, inset: '45.94% 7.73% 26.66% 7.73%', imageInset: '-0.51% -0.16%' },
536
+ { src: signRimTop, inset: '46.34% 8.45% 47.81% 8.54%', imageInset: '-3.21% -0.21%' },
537
+ { src: signInnerBevel, inset: '48.78% 10.32% 29.25% 10.26%' },
538
+ { src: signFace, inset: '49.06% 10.58% 29.53% 10.52%' },
539
+ { src: signFaceDetail, inset: '49.06% 10.58% 29.53% 10.52%' },
540
+ { src: signRimBottom, inset: '66.28% 10% 29.47% 14.52%', imageInset: '-3.31% -0.17%' },
541
+ { src: signLettering, inset: '53.08% 22.46% 31.97% 22.19%' },
542
+ { src: signEyeletLeft, inset: '49.63% 80.76% 47.15% 16.24%', imageInset: '-1.94%' },
543
+ { src: signEyeletRight, inset: '49.63% 16.18% 47.15% 80.82%', imageInset: '-1.94%' },
544
+ { src: signCordLeft, inset: '33.32% 51.05% 48.76% 17.73%', imageInset: '-1.61% -1.47% -2.74% -1.47%' },
545
+ { src: signCordRight, inset: '33.32% 17.67% 48.76% 51.28%', imageInset: '-1.61% -1.48% -2.74% -1.48%' },
546
+ ];
547
+ const OPEN_SIGN_LAYERS: IllustrationLayer[] = [...OPEN_SIGN_SWING_LAYERS, OPEN_SIGN_PIN];
548
+ /** Pin center in the 343×320 box — swing pivot (Figma mounting pin). */
549
+ const OPEN_SIGN_PIVOT = '50% 32.6%';
550
+ const openSignSwingOnce = sequence(
551
+ 0.5,
552
+ [0, 0.2, 0.55, 0.9, 1.25, 1.6],
553
+ { rotate: [-12, -12, 9, -5, 2.5, 0], opacity: [0, 1, 1, 1, 1, 1] },
554
+ 'easeOut'
555
+ );
556
+ const openSignSwingIdle = loop(2.15, 2.8, [0, 0.7, 1.4, 2.1, 2.8], { rotate: [0, 2.4, 0, -2.4, 0] }, 'easeInOut');
557
+
558
+ // Figma: huxxle-minimal-store-page-illustration 19021:4063 (Low data Store online)
559
+ const STORE_CURSOR_PERIOD = 3.4;
560
+ const STORE_PAGE_LAYERS: IllustrationLayer[] = [
561
+ { src: storeGround, inset: '78.43% 23.32% 19% 23.62%', motion: popIn(0.55, { scale: 0.92, y: 8 }) },
562
+ {
563
+ src: storeBrowser,
564
+ inset: '23.43% 11.95% 22% 11.87%',
565
+ imageInset: '-0.63% -0.46%',
566
+ motion: popIn(0.7, { scale: 0.9, y: 16 }),
567
+ imageMotion: loop(1.2, 4.0, [0, 1.2, 2.4, 4.0], { y: [0, -3, 2, 0] }, 'easeInOut'),
568
+ },
569
+ {
570
+ src: storeCursor,
571
+ inset: '55.71% 30.29% 33.71% 61.52%',
572
+ imageInset: '-2.84% -3.74%',
573
+ // Cursor arrives, clicks the shop, drifts, then repeats (preview video ~36–42 s).
574
+ motion: loop(1.1, STORE_CURSOR_PERIOD, [0, 0.35, 0.55, 0.7, 0.85, 1.6, 2.2, STORE_CURSOR_PERIOD], {
575
+ opacity: [0, 1, 1, 1, 1, 1, 0, 0],
576
+ x: [28, 0, 0, 0, 0, 10, 22, 28],
577
+ y: [36, 0, 0, 4, 0, -8, 18, 36],
578
+ scale: [0.85, 1, 1, 0.88, 1, 1, 0.9, 0.85],
579
+ }),
580
+ },
581
+ ];
582
+
583
+ // Figma: book art inside the Low data recognition ring 19024:4109 (119×119)
584
+ const BOOK_LAYERS: IllustrationLayer[] = [
585
+ { src: bookRightPage, inset: '27.98% 14.71% 24.37% 50%', motion: popIn(0.3, { scale: 0.85, y: 6 }) },
586
+ { src: bookRightLeaf, inset: '27.31% 17.9% 25.21% 50%', motion: popIn(0.35, { scale: 0.85, y: 6 }) },
587
+ { src: bookLeftPage, inset: '27.31% 50% 24.37% 14.71%', motion: popIn(0.4, { scale: 0.85, y: 6 }) },
588
+ { src: bookSpine, inset: '35.97% 48.91% 24.41% 48.76%', motion: popIn(0.32, { scale: 0.85 }) },
589
+ ];
590
+
591
+ /* Figma: huxxle-catalogue-card-illustration 19075:9327 (Zero order Products).
592
+ Video: empty window (+ slot) pops in, then the product card stamps into the slot. */
593
+ const CATALOGUE_LAYERS: IllustrationLayer[] = [
594
+ { src: catalogueGround, inset: '88.47% 13.85% 8.25% 13.85%', motion: popIn(0.45, { scale: 0.92, y: 8 }) },
595
+ {
596
+ src: catalogueWindow,
597
+ inset: '27.68% 14.72% 12.71% 15.6%',
598
+ imageInset: '-0.52% 0 0 -0.46%',
599
+ motion: popIn(0.55, { scale: 0.92, y: 14 }),
600
+ },
601
+ {
602
+ src: catalogueCard,
603
+ inset: '40.4% 32.8% 18.93% 33.67%',
604
+ imageInset: '-0.62% 0 0 -0.78%',
605
+ motion: sequence(1.15, [0, 0.22, 0.38], { scale: [0, 1.18, 1], opacity: [0, 1, 1], y: [-24, 4, 0] }, 'easeOut'),
606
+ },
607
+ ];
608
+
609
+ const storefrontMask = (image: string, position: string, size: string) => ({ image: `url("${image}")`, position, size, alpha: true });
610
+
611
+ /* Figma: huxxle-digital-storefront-illustration 19081:9431 (Zero order Digital presence).
612
+ Video: storefront fades/scales in as one piece, then a soft bob. */
613
+ const STOREFRONT_GROUND: IllustrationLayer = {
614
+ src: storefrontGround,
615
+ inset: '86.72% 12.97% 9.6% 12.97%',
616
+ motion: popIn(0.45, { scale: 0.92, y: 8 }),
617
+ };
618
+ const STOREFRONT_BUILDING_LAYERS: IllustrationLayer[] = [
619
+ { src: storefrontShell, inset: '16.95% 5.69% 14.41% 6.85%', imageInset: '-0.3% 0 0 -0.24%' },
620
+ { src: storefrontChrome, inset: '17.18% 7.08% 71.19% 7.08%', imageInset: '0 0 -1.52% 0' },
621
+ { src: storefrontWall, inset: '41.81% 14.43% 21.47% 14.43%', imageInset: '-0.4% -0.22%' },
622
+ { src: storefrontWindowFrame, inset: '49.44% 40.96% 26.84% 17.35%', imageInset: '-0.71% -0.42%' },
623
+ { src: storefrontWindowPane, inset: '50.57% 42.13% 27.97% 18.51%', imageInset: '-0.66% -0.37%' },
624
+ { src: storefrontWindowGlass, inset: '49.44% 41.98% 26.84% 18.51%', mask: storefrontMask(storefrontWindowMask, '0px 4px', '135px 76px') },
625
+ { src: storefrontWindowSill, inset: '69.49% 43.47% 27.54% 18.1%', imageInset: '-5% -0.4%' },
626
+ { src: storefrontWindowLedge, inset: '72.6% 40.15% 26.16% 16.53%' },
627
+ { src: storefrontWindowLedgeLine, inset: '71.89% 40.09% 26.61% 16.47%', imageInset: '-7.55% -0.27%' },
628
+ { src: storefrontWindowLedgeEdge, inset: '72.2% 40.82% 27.8% 17.2%', imageInset: '-0.45px -0.31%' },
629
+ { src: storefrontDoorFrame, inset: '49.15% 20.99% 21.47% 63.26%', imageInset: '-0.55% -1.06%' },
630
+ { src: storefrontDoorPane, inset: '51.13% 22.74% 25.14% 65.01%', imageInset: '-0.54% -1.07%' },
631
+ { src: storefrontDoorGlass, inset: '50.28% 18.08% 24.29% 61.22%', mask: storefrontMask(storefrontDoorMask, '13px 3px', '42px 84px') },
632
+ { src: storefrontDoorPanel, inset: '51.41% 21.43% 21.86% 63.67%', imageInset: '0 0 -0.58% -1.08%' },
633
+ { src: storefrontDoorHandleShadow, inset: '63.62% 34.17% 32.99% 65.83%', imageInset: '-12.92% -1.55px' },
634
+ { src: storefrontDoorHandle, inset: '63.42% 34.37% 33.39% 65.63%', imageInset: '-11.5% -1.3px' },
635
+ { src: storefrontDoorHandleLight, inset: '63.42% 34.37% 33.39% 65.63%', imageInset: '-3.1% -0.35px' },
636
+ { src: storefrontDoorSill, inset: '76.41% 22.74% 23.59% 65.01%', imageInset: '-0.55px -1.31%' },
637
+ { src: storefrontStep, inset: '77.97% 13.85% 19.92% 13.85%', imageInset: '-8.67% -0.26% -4.67% -0.26%' },
638
+ { src: storefrontAwning, inset: '34.89% 11.95% 44.31% 11.95%', imageInset: '-0.54% -1.23% -4.35% -1.23%' },
639
+ ];
640
+ const STOREFRONT_LAYERS: IllustrationLayer[] = [STOREFRONT_GROUND, ...STOREFRONT_BUILDING_LAYERS];
641
+ const storefrontIn = popIn(0.55, { scale: 0.9, y: 18 });
642
+ const storefrontBob = loop(1.4, 4.2, [0, 1.2, 2.4, 4.2], { y: [0, -3, 2, 0] }, 'easeInOut');
643
+
644
+ export const OrdersIllustration = () => <IllustrationLayers layers={ORDERS_LAYERS} width={343} height={394} />;
645
+ export const BiggestDayIllustration = () => <IllustrationLayers layers={BIGGEST_DAY_LAYERS} width={343} height={250} />;
646
+ export const GrowthIllustration = () => <IllustrationLayers layers={GROWTH_LAYERS} width={343} height={394} />;
647
+ export const CustomersIllustration = () => <IllustrationLayers layers={CUSTOMERS_LAYERS} width={343} height={240} />;
648
+ export const SurpriseIllustration = () => (
649
+ <IllustrationLayers
650
+ layers={SURPRISE_LAYERS}
651
+ {...CASH_SIZE}
652
+ style={{ maskImage: CASH_EDGE_FADE, WebkitMaskImage: CASH_EDGE_FADE }}
653
+ />
654
+ );
655
+ export const PlugIllustration = () => <IllustrationLayers layers={PLUG_LAYERS} width={119} height={119} />;
656
+ export const HorizonIllustration = () => <IllustrationLayers layers={HORIZON_LAYERS} width={343} height={354} />;
657
+ export const ClosingIllustration = () => <IllustrationLayers layers={CLOSING_LAYERS} {...CLOSING_SIZE} />;
658
+
659
+ export const BusyPhoneIllustration = () => <IllustrationLayers layers={BUSY_PHONE_LAYERS} width={343} height={326} />;
660
+ export const SeasonalWaveIllustration = () => <IllustrationLayers layers={SEASONAL_WAVE_LAYERS} width={120} height={120} />;
661
+ export const BagIllustration = () => <IllustrationLayers layers={BAG_LAYERS} width={343} height={394} />;
662
+ export const CalendarIllustration = ({ month }: { month: string }) => (
663
+ <IllustrationLayers layers={calendarLayers(month)} width={343} height={394} />
664
+ );
665
+
666
+ /** Single calendar tick settles around this delay (seconds into the slide). */
667
+ export const CALENDAR_TICK_DONE_S = CALENDAR_TICK_START + 0.32;
668
+
669
+ /* Figma: huxxle-steady-milestone-coin-illustration 18879:188255 — mc-shimmer-position sweeps a lit band across the coin. */
670
+ const MILESTONE_SHIMMER_PERIOD = 3.4;
671
+ const MILESTONE_COIN_LAYERS: IllustrationLayer[] = [
672
+ {
673
+ src: milestoneCoin,
674
+ inset: '0% 0% 0% 0%',
675
+ motion: sequence(0.5, [0, 0.35, 0.5], { scale: [0.35, 1.08, 1], opacity: [0, 1, 1] }, 'easeOut'),
676
+ },
677
+ {
678
+ src: milestoneShimmer,
679
+ inset: '-26.64% 66.88% 0.02% -38.71%',
680
+ width: 'hypot(27.9567cqw, -7.78136cqh)',
681
+ height: 'hypot(72.0433cqw, 92.2186cqh)',
682
+ transform: 'rotate(-25deg)',
683
+ blendMode: 'screen',
684
+ mask: {
685
+ image: `url("${milestoneShimmerMask}")`,
686
+ position: '189.67px 134.31px',
687
+ size: '229.23px 231.08px',
688
+ alpha: true,
689
+ },
690
+ // After the coin lands, a diagonal sheen sweeps L→R, then rests before repeating (video ~54–62 s).
691
+ motion: loop(1.15, MILESTONE_SHIMMER_PERIOD, [0, 0.85, 1.7, MILESTONE_SHIMMER_PERIOD], {
692
+ x: [0, 200, 380, 380],
693
+ opacity: [0, 0.95, 0, 0],
694
+ }, 'easeInOut'),
695
+ },
696
+ ];
697
+
698
+ export const MilestoneCoinIllustration = () => (
699
+ <IllustrationLayers layers={MILESTONE_COIN_LAYERS} width={343} height={326} />
700
+ );
701
+
702
+ /** OPEN sign: pin stays put; plaque + cords swing once then idle (preview video). */
703
+ export const OpenSignIllustration = () => (
704
+ <div style={{ position: 'relative', width: 343, height: 320, overflow: 'hidden' }} aria-hidden="true">
705
+ <motion.div style={{ position: 'absolute', inset: 0, transformOrigin: OPEN_SIGN_PIVOT }} {...openSignSwingOnce}>
706
+ <motion.div style={{ position: 'absolute', inset: 0, transformOrigin: OPEN_SIGN_PIVOT }} {...openSignSwingIdle}>
707
+ <IllustrationLayers layers={OPEN_SIGN_SWING_LAYERS} width={343} height={320} style={{ overflow: 'visible' }} />
708
+ </motion.div>
709
+ </motion.div>
710
+ <IllustrationLayers
711
+ layers={[OPEN_SIGN_PIN]}
712
+ width={343}
713
+ height={320}
714
+ style={{ position: 'absolute', inset: 0, overflow: 'visible' }}
715
+ />
716
+ </div>
717
+ );
718
+
719
+ export const StorePageIllustration = () => <IllustrationLayers layers={STORE_PAGE_LAYERS} width={343} height={350} />;
720
+ export const BookIllustration = () => <IllustrationLayers layers={BOOK_LAYERS} width={119} height={119} />;
721
+ export const CatalogueIllustration = () => <IllustrationLayers layers={CATALOGUE_LAYERS} width={343} height={354} />;
722
+ /** Storefront: ground stays put; building pops in then soft-bobs (zero-order video). */
723
+ export const StorefrontIllustration = () => (
724
+ <div style={{ position: 'relative', width: 343, height: 354, overflow: 'hidden' }} aria-hidden="true">
725
+ <IllustrationLayers layers={[STOREFRONT_GROUND]} width={343} height={354} style={{ position: 'absolute', inset: 0, overflow: 'visible' }} />
726
+ <motion.div style={{ position: 'absolute', inset: 0 }} {...storefrontIn}>
727
+ <motion.div style={{ position: 'absolute', inset: 0 }} {...storefrontBob}>
728
+ <IllustrationLayers layers={STOREFRONT_BUILDING_LAYERS} width={343} height={354} style={{ overflow: 'visible' }} />
729
+ </motion.div>
730
+ </motion.div>
731
+ </div>
732
+ );
733
+
734
+ export const ILLUSTRATION_ASSETS = {
735
+ orders: ORDERS_LAYERS.map((layer) => layer.src),
736
+ biggestDay: BIGGEST_DAY_LAYERS.map((layer) => layer.src),
737
+ growth: GROWTH_LAYERS.map((layer) => layer.src),
738
+ customers: CUSTOMERS_LAYERS.map((layer) => layer.src),
739
+ surprise: SURPRISE_LAYERS.map((layer) => layer.src),
740
+ plug: PLUG_LAYERS.map((layer) => layer.src),
741
+ horizon: HORIZON_LAYERS.map((layer) => layer.src),
742
+ closing: CLOSING_LAYERS.map((layer) => layer.src),
743
+ busyPhone: BUSY_PHONE_LAYERS.map((layer) => layer.src),
744
+ seasonalWave: [wave, waveMask],
745
+ bag: BAG_LAYERS.map((layer) => layer.src),
746
+ calendar: [calendarBase, calendarTick],
747
+ milestoneCoin: MILESTONE_COIN_LAYERS.map((layer) => layer.src).concat(milestoneShimmerMask),
748
+ openSign: OPEN_SIGN_LAYERS.map((layer) => layer.src),
749
+ storePage: STORE_PAGE_LAYERS.map((layer) => layer.src),
750
+ book: BOOK_LAYERS.map((layer) => layer.src),
751
+ catalogue: CATALOGUE_LAYERS.map((layer) => layer.src),
752
+ storefront: [...STOREFRONT_LAYERS.map((layer) => layer.src), storefrontWindowMask, storefrontDoorMask],
753
+ };