@wix/himalaya-cli 0.1767.0 → 0.1768.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +9 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
  3. package/dist/browser-plane/assets.json +5 -5
  4. package/dist/browser-plane/preview-deferred/{cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin → 7977d7340513225ef7609b9983b621e2b48c10deb7427e059e595d2fc66f7983.bin} +1 -1
  5. package/dist/browser-plane/sw.js +8 -8
  6. package/dist/cli.mjs +209 -83
  7. package/dist/preview-assets.generated.bin +0 -0
  8. package/guides/capabilities.md +6 -4
  9. package/guides/component-reference.json +1 -1
  10. package/guides/component-reference.md +4 -0
  11. package/guides/himi-json-output.md +16 -4
  12. package/guides/one-app-to-himi-app.md +19 -9
  13. package/package.json +2 -2
  14. package/templates/beauty-salon/l10n/ar.json +45 -0
  15. package/templates/beauty-salon/l10n/cs.json +45 -0
  16. package/templates/beauty-salon/l10n/da.json +45 -0
  17. package/templates/beauty-salon/l10n/de.json +45 -0
  18. package/templates/beauty-salon/l10n/el.json +45 -0
  19. package/templates/beauty-salon/l10n/en.json +1 -1
  20. package/templates/beauty-salon/l10n/es.json +45 -0
  21. package/templates/beauty-salon/l10n/fi.json +45 -0
  22. package/templates/beauty-salon/l10n/fr.json +45 -0
  23. package/templates/beauty-salon/l10n/he.json +36 -0
  24. package/templates/beauty-salon/l10n/hu.json +45 -0
  25. package/templates/beauty-salon/l10n/id.json +45 -0
  26. package/templates/beauty-salon/l10n/it.json +45 -0
  27. package/templates/beauty-salon/l10n/ja.json +45 -0
  28. package/templates/beauty-salon/l10n/ko.json +45 -0
  29. package/templates/beauty-salon/l10n/lt.json +45 -0
  30. package/templates/beauty-salon/l10n/nl.json +45 -0
  31. package/templates/beauty-salon/l10n/no.json +45 -0
  32. package/templates/beauty-salon/l10n/pl.json +45 -0
  33. package/templates/beauty-salon/l10n/pt.json +45 -0
  34. package/templates/beauty-salon/l10n/ru.json +45 -0
  35. package/templates/beauty-salon/l10n/sv.json +45 -0
  36. package/templates/beauty-salon/l10n/th.json +45 -0
  37. package/templates/beauty-salon/l10n/tr.json +45 -0
  38. package/templates/beauty-salon/l10n/uk.json +45 -0
  39. package/templates/beauty-salon/l10n/vi.json +45 -0
  40. package/templates/beauty-salon/l10n/zh.json +45 -0
  41. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  42. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
  43. package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +67 -0
  44. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +56 -12
  45. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +5 -0
  46. package/templates/branded-lite/config.ts +9 -0
  47. package/templates/branded-lite/dev/index.ts +1086 -85
  48. package/templates/branded-lite/himalaya.content.json +3 -0
  49. package/templates/branded-lite/l10n/ar.json +139 -0
  50. package/templates/branded-lite/l10n/cs.json +139 -0
  51. package/templates/branded-lite/l10n/da.json +139 -0
  52. package/templates/branded-lite/l10n/de.json +139 -0
  53. package/templates/branded-lite/l10n/el.json +139 -0
  54. package/templates/branded-lite/l10n/en.json +65 -2
  55. package/templates/branded-lite/l10n/es.json +139 -0
  56. package/templates/branded-lite/l10n/fi.json +139 -0
  57. package/templates/branded-lite/l10n/fr.json +139 -0
  58. package/templates/branded-lite/l10n/he.json +113 -0
  59. package/templates/branded-lite/l10n/hu.json +139 -0
  60. package/templates/branded-lite/l10n/id.json +139 -0
  61. package/templates/branded-lite/l10n/it.json +139 -0
  62. package/templates/branded-lite/l10n/ja.json +139 -0
  63. package/templates/branded-lite/l10n/ko.json +139 -0
  64. package/templates/branded-lite/l10n/lt.json +139 -0
  65. package/templates/branded-lite/l10n/nl.json +139 -0
  66. package/templates/branded-lite/l10n/no.json +139 -0
  67. package/templates/branded-lite/l10n/pl.json +139 -0
  68. package/templates/branded-lite/l10n/pt.json +139 -0
  69. package/templates/branded-lite/l10n/ru.json +139 -0
  70. package/templates/branded-lite/l10n/sv.json +139 -0
  71. package/templates/branded-lite/l10n/th.json +139 -0
  72. package/templates/branded-lite/l10n/tr.json +139 -0
  73. package/templates/branded-lite/l10n/uk.json +139 -0
  74. package/templates/branded-lite/l10n/vi.json +139 -0
  75. package/templates/branded-lite/l10n/zh.json +139 -0
  76. package/templates/branded-lite/recipes/programs-card.json +2 -2
  77. package/templates/branded-lite/recipes/programs-carousel.json +2 -2
  78. package/templates/branded-lite/recipes/programs-participant-carousel.json +2 -2
  79. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  80. package/templates/branded-lite/tier5-src/_shared/program-standing.ts +21 -0
  81. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +8 -4
  82. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +56 -12
  83. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +5 -0
  84. package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  85. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +17 -3
  86. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
  87. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
  88. package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  89. package/templates/community-club/l10n/ar.json +30 -0
  90. package/templates/community-club/l10n/cs.json +30 -0
  91. package/templates/community-club/l10n/da.json +30 -0
  92. package/templates/community-club/l10n/de.json +30 -0
  93. package/templates/community-club/l10n/el.json +30 -0
  94. package/templates/community-club/l10n/en.json +2 -2
  95. package/templates/community-club/l10n/es.json +30 -0
  96. package/templates/community-club/l10n/fi.json +30 -0
  97. package/templates/community-club/l10n/fr.json +30 -0
  98. package/templates/community-club/l10n/he.json +24 -0
  99. package/templates/community-club/l10n/hu.json +30 -0
  100. package/templates/community-club/l10n/id.json +30 -0
  101. package/templates/community-club/l10n/it.json +30 -0
  102. package/templates/community-club/l10n/ja.json +30 -0
  103. package/templates/community-club/l10n/ko.json +30 -0
  104. package/templates/community-club/l10n/lt.json +30 -0
  105. package/templates/community-club/l10n/nl.json +30 -0
  106. package/templates/community-club/l10n/no.json +30 -0
  107. package/templates/community-club/l10n/pl.json +30 -0
  108. package/templates/community-club/l10n/pt.json +30 -0
  109. package/templates/community-club/l10n/ru.json +30 -0
  110. package/templates/community-club/l10n/sv.json +30 -0
  111. package/templates/community-club/l10n/th.json +30 -0
  112. package/templates/community-club/l10n/tr.json +30 -0
  113. package/templates/community-club/l10n/uk.json +30 -0
  114. package/templates/community-club/l10n/vi.json +30 -0
  115. package/templates/community-club/l10n/zh.json +30 -0
  116. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  117. package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
  118. package/templates/community-club/tier5-src/_shared/program-standing.ts +67 -0
  119. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +5 -0
  120. package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  121. package/templates/events-meetups/l10n/ar.json +30 -0
  122. package/templates/events-meetups/l10n/cs.json +30 -0
  123. package/templates/events-meetups/l10n/da.json +30 -0
  124. package/templates/events-meetups/l10n/de.json +30 -0
  125. package/templates/events-meetups/l10n/el.json +30 -0
  126. package/templates/events-meetups/l10n/en.json +1 -1
  127. package/templates/events-meetups/l10n/es.json +30 -0
  128. package/templates/events-meetups/l10n/fi.json +30 -0
  129. package/templates/events-meetups/l10n/fr.json +30 -0
  130. package/templates/events-meetups/l10n/he.json +24 -0
  131. package/templates/events-meetups/l10n/hu.json +30 -0
  132. package/templates/events-meetups/l10n/id.json +30 -0
  133. package/templates/events-meetups/l10n/it.json +30 -0
  134. package/templates/events-meetups/l10n/ja.json +30 -0
  135. package/templates/events-meetups/l10n/ko.json +30 -0
  136. package/templates/events-meetups/l10n/lt.json +30 -0
  137. package/templates/events-meetups/l10n/nl.json +30 -0
  138. package/templates/events-meetups/l10n/no.json +30 -0
  139. package/templates/events-meetups/l10n/pl.json +30 -0
  140. package/templates/events-meetups/l10n/pt.json +30 -0
  141. package/templates/events-meetups/l10n/ru.json +30 -0
  142. package/templates/events-meetups/l10n/sv.json +30 -0
  143. package/templates/events-meetups/l10n/th.json +30 -0
  144. package/templates/events-meetups/l10n/tr.json +30 -0
  145. package/templates/events-meetups/l10n/uk.json +30 -0
  146. package/templates/events-meetups/l10n/vi.json +30 -0
  147. package/templates/events-meetups/l10n/zh.json +30 -0
  148. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  149. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
  150. package/templates/events-meetups/tier5-src/_shared/program-standing.ts +67 -0
  151. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +5 -0
  152. package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  153. package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +21 -0
  154. package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +56 -12
  155. package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  156. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +17 -3
  157. package/templates/gym-fitness/l10n/ar.json +45 -0
  158. package/templates/gym-fitness/l10n/cs.json +45 -0
  159. package/templates/gym-fitness/l10n/da.json +45 -0
  160. package/templates/gym-fitness/l10n/de.json +45 -0
  161. package/templates/gym-fitness/l10n/el.json +45 -0
  162. package/templates/gym-fitness/l10n/en.json +1 -1
  163. package/templates/gym-fitness/l10n/es.json +45 -0
  164. package/templates/gym-fitness/l10n/fi.json +45 -0
  165. package/templates/gym-fitness/l10n/fr.json +45 -0
  166. package/templates/gym-fitness/l10n/he.json +36 -0
  167. package/templates/gym-fitness/l10n/hu.json +45 -0
  168. package/templates/gym-fitness/l10n/id.json +45 -0
  169. package/templates/gym-fitness/l10n/it.json +45 -0
  170. package/templates/gym-fitness/l10n/ja.json +45 -0
  171. package/templates/gym-fitness/l10n/ko.json +45 -0
  172. package/templates/gym-fitness/l10n/lt.json +45 -0
  173. package/templates/gym-fitness/l10n/nl.json +45 -0
  174. package/templates/gym-fitness/l10n/no.json +45 -0
  175. package/templates/gym-fitness/l10n/pl.json +45 -0
  176. package/templates/gym-fitness/l10n/pt.json +45 -0
  177. package/templates/gym-fitness/l10n/ru.json +45 -0
  178. package/templates/gym-fitness/l10n/sv.json +45 -0
  179. package/templates/gym-fitness/l10n/th.json +45 -0
  180. package/templates/gym-fitness/l10n/tr.json +45 -0
  181. package/templates/gym-fitness/l10n/uk.json +45 -0
  182. package/templates/gym-fitness/l10n/vi.json +45 -0
  183. package/templates/gym-fitness/l10n/zh.json +45 -0
  184. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  185. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
  186. package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +67 -0
  187. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +56 -12
  188. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +5 -0
  189. package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  190. package/templates/medical-services/tier5-src/himi-booking-time/index.ts +56 -12
  191. package/templates/nonprofit-cause/l10n/ar.json +30 -0
  192. package/templates/nonprofit-cause/l10n/cs.json +30 -0
  193. package/templates/nonprofit-cause/l10n/da.json +30 -0
  194. package/templates/nonprofit-cause/l10n/de.json +30 -0
  195. package/templates/nonprofit-cause/l10n/el.json +30 -0
  196. package/templates/nonprofit-cause/l10n/en.json +1 -1
  197. package/templates/nonprofit-cause/l10n/es.json +30 -0
  198. package/templates/nonprofit-cause/l10n/fi.json +30 -0
  199. package/templates/nonprofit-cause/l10n/fr.json +30 -0
  200. package/templates/nonprofit-cause/l10n/he.json +24 -0
  201. package/templates/nonprofit-cause/l10n/hu.json +30 -0
  202. package/templates/nonprofit-cause/l10n/id.json +30 -0
  203. package/templates/nonprofit-cause/l10n/it.json +30 -0
  204. package/templates/nonprofit-cause/l10n/ja.json +30 -0
  205. package/templates/nonprofit-cause/l10n/ko.json +30 -0
  206. package/templates/nonprofit-cause/l10n/lt.json +30 -0
  207. package/templates/nonprofit-cause/l10n/nl.json +30 -0
  208. package/templates/nonprofit-cause/l10n/no.json +30 -0
  209. package/templates/nonprofit-cause/l10n/pl.json +30 -0
  210. package/templates/nonprofit-cause/l10n/pt.json +30 -0
  211. package/templates/nonprofit-cause/l10n/ru.json +30 -0
  212. package/templates/nonprofit-cause/l10n/sv.json +30 -0
  213. package/templates/nonprofit-cause/l10n/th.json +30 -0
  214. package/templates/nonprofit-cause/l10n/tr.json +30 -0
  215. package/templates/nonprofit-cause/l10n/uk.json +30 -0
  216. package/templates/nonprofit-cause/l10n/vi.json +30 -0
  217. package/templates/nonprofit-cause/l10n/zh.json +30 -0
  218. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  219. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
  220. package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +67 -0
  221. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +5 -0
  222. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  223. package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +56 -12
  224. package/templates/podcast-creator/l10n/ar.json +35 -0
  225. package/templates/podcast-creator/l10n/cs.json +35 -0
  226. package/templates/podcast-creator/l10n/da.json +35 -0
  227. package/templates/podcast-creator/l10n/de.json +35 -0
  228. package/templates/podcast-creator/l10n/el.json +35 -0
  229. package/templates/podcast-creator/l10n/en.json +1 -1
  230. package/templates/podcast-creator/l10n/es.json +35 -0
  231. package/templates/podcast-creator/l10n/fi.json +35 -0
  232. package/templates/podcast-creator/l10n/fr.json +35 -0
  233. package/templates/podcast-creator/l10n/he.json +28 -0
  234. package/templates/podcast-creator/l10n/hu.json +35 -0
  235. package/templates/podcast-creator/l10n/id.json +35 -0
  236. package/templates/podcast-creator/l10n/it.json +35 -0
  237. package/templates/podcast-creator/l10n/ja.json +35 -0
  238. package/templates/podcast-creator/l10n/ko.json +35 -0
  239. package/templates/podcast-creator/l10n/lt.json +35 -0
  240. package/templates/podcast-creator/l10n/nl.json +35 -0
  241. package/templates/podcast-creator/l10n/no.json +35 -0
  242. package/templates/podcast-creator/l10n/pl.json +35 -0
  243. package/templates/podcast-creator/l10n/pt.json +35 -0
  244. package/templates/podcast-creator/l10n/ru.json +35 -0
  245. package/templates/podcast-creator/l10n/sv.json +35 -0
  246. package/templates/podcast-creator/l10n/th.json +35 -0
  247. package/templates/podcast-creator/l10n/tr.json +35 -0
  248. package/templates/podcast-creator/l10n/uk.json +35 -0
  249. package/templates/podcast-creator/l10n/vi.json +35 -0
  250. package/templates/podcast-creator/l10n/zh.json +35 -0
  251. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  252. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
  253. package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +67 -0
  254. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +5 -0
  255. package/templates/portfolio-creative/l10n/ar.json +35 -0
  256. package/templates/portfolio-creative/l10n/cs.json +35 -0
  257. package/templates/portfolio-creative/l10n/da.json +35 -0
  258. package/templates/portfolio-creative/l10n/de.json +35 -0
  259. package/templates/portfolio-creative/l10n/el.json +35 -0
  260. package/templates/portfolio-creative/l10n/en.json +1 -1
  261. package/templates/portfolio-creative/l10n/es.json +35 -0
  262. package/templates/portfolio-creative/l10n/fi.json +35 -0
  263. package/templates/portfolio-creative/l10n/fr.json +35 -0
  264. package/templates/portfolio-creative/l10n/he.json +28 -0
  265. package/templates/portfolio-creative/l10n/hu.json +35 -0
  266. package/templates/portfolio-creative/l10n/id.json +35 -0
  267. package/templates/portfolio-creative/l10n/it.json +35 -0
  268. package/templates/portfolio-creative/l10n/ja.json +35 -0
  269. package/templates/portfolio-creative/l10n/ko.json +35 -0
  270. package/templates/portfolio-creative/l10n/lt.json +35 -0
  271. package/templates/portfolio-creative/l10n/nl.json +35 -0
  272. package/templates/portfolio-creative/l10n/no.json +35 -0
  273. package/templates/portfolio-creative/l10n/pl.json +35 -0
  274. package/templates/portfolio-creative/l10n/pt.json +35 -0
  275. package/templates/portfolio-creative/l10n/ru.json +35 -0
  276. package/templates/portfolio-creative/l10n/sv.json +35 -0
  277. package/templates/portfolio-creative/l10n/th.json +35 -0
  278. package/templates/portfolio-creative/l10n/tr.json +35 -0
  279. package/templates/portfolio-creative/l10n/uk.json +35 -0
  280. package/templates/portfolio-creative/l10n/vi.json +35 -0
  281. package/templates/portfolio-creative/l10n/zh.json +35 -0
  282. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  283. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
  284. package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +67 -0
  285. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +5 -0
  286. package/templates/restaurant/l10n/ar.json +35 -0
  287. package/templates/restaurant/l10n/cs.json +35 -0
  288. package/templates/restaurant/l10n/da.json +35 -0
  289. package/templates/restaurant/l10n/de.json +35 -0
  290. package/templates/restaurant/l10n/el.json +35 -0
  291. package/templates/restaurant/l10n/en.json +1 -1
  292. package/templates/restaurant/l10n/es.json +35 -0
  293. package/templates/restaurant/l10n/fi.json +35 -0
  294. package/templates/restaurant/l10n/fr.json +35 -0
  295. package/templates/restaurant/l10n/he.json +28 -0
  296. package/templates/restaurant/l10n/hu.json +35 -0
  297. package/templates/restaurant/l10n/id.json +35 -0
  298. package/templates/restaurant/l10n/it.json +35 -0
  299. package/templates/restaurant/l10n/ja.json +35 -0
  300. package/templates/restaurant/l10n/ko.json +35 -0
  301. package/templates/restaurant/l10n/lt.json +35 -0
  302. package/templates/restaurant/l10n/nl.json +35 -0
  303. package/templates/restaurant/l10n/no.json +35 -0
  304. package/templates/restaurant/l10n/pl.json +35 -0
  305. package/templates/restaurant/l10n/pt.json +35 -0
  306. package/templates/restaurant/l10n/ru.json +35 -0
  307. package/templates/restaurant/l10n/sv.json +35 -0
  308. package/templates/restaurant/l10n/th.json +35 -0
  309. package/templates/restaurant/l10n/tr.json +35 -0
  310. package/templates/restaurant/l10n/uk.json +35 -0
  311. package/templates/restaurant/l10n/vi.json +35 -0
  312. package/templates/restaurant/l10n/zh.json +35 -0
  313. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  314. package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
  315. package/templates/restaurant/tier5-src/_shared/program-standing.ts +67 -0
  316. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +5 -0
  317. package/templates/retail-store/l10n/ar.json +35 -0
  318. package/templates/retail-store/l10n/cs.json +35 -0
  319. package/templates/retail-store/l10n/da.json +35 -0
  320. package/templates/retail-store/l10n/de.json +35 -0
  321. package/templates/retail-store/l10n/el.json +35 -0
  322. package/templates/retail-store/l10n/en.json +1 -1
  323. package/templates/retail-store/l10n/es.json +35 -0
  324. package/templates/retail-store/l10n/fi.json +35 -0
  325. package/templates/retail-store/l10n/fr.json +35 -0
  326. package/templates/retail-store/l10n/he.json +28 -0
  327. package/templates/retail-store/l10n/hu.json +35 -0
  328. package/templates/retail-store/l10n/id.json +35 -0
  329. package/templates/retail-store/l10n/it.json +35 -0
  330. package/templates/retail-store/l10n/ja.json +35 -0
  331. package/templates/retail-store/l10n/ko.json +35 -0
  332. package/templates/retail-store/l10n/lt.json +35 -0
  333. package/templates/retail-store/l10n/nl.json +35 -0
  334. package/templates/retail-store/l10n/no.json +35 -0
  335. package/templates/retail-store/l10n/pl.json +35 -0
  336. package/templates/retail-store/l10n/pt.json +35 -0
  337. package/templates/retail-store/l10n/ru.json +35 -0
  338. package/templates/retail-store/l10n/sv.json +35 -0
  339. package/templates/retail-store/l10n/th.json +35 -0
  340. package/templates/retail-store/l10n/tr.json +35 -0
  341. package/templates/retail-store/l10n/uk.json +35 -0
  342. package/templates/retail-store/l10n/vi.json +35 -0
  343. package/templates/retail-store/l10n/zh.json +35 -0
  344. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  345. package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
  346. package/templates/retail-store/tier5-src/_shared/program-standing.ts +67 -0
  347. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +5 -0
  348. package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  349. package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +56 -12
  350. package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  351. package/templates/yoga-studio/config.ts +9 -0
  352. package/templates/yoga-studio/dev/index.ts +1134 -133
  353. package/templates/yoga-studio/himalaya.content.json +3 -0
  354. package/templates/yoga-studio/l10n/ar.json +150 -0
  355. package/templates/yoga-studio/l10n/cs.json +150 -0
  356. package/templates/yoga-studio/l10n/da.json +150 -0
  357. package/templates/yoga-studio/l10n/de.json +150 -0
  358. package/templates/yoga-studio/l10n/el.json +150 -0
  359. package/templates/yoga-studio/l10n/en.json +70 -1
  360. package/templates/yoga-studio/l10n/es.json +150 -0
  361. package/templates/yoga-studio/l10n/fi.json +150 -0
  362. package/templates/yoga-studio/l10n/fr.json +150 -0
  363. package/templates/yoga-studio/l10n/he.json +122 -0
  364. package/templates/yoga-studio/l10n/hu.json +150 -0
  365. package/templates/yoga-studio/l10n/id.json +150 -0
  366. package/templates/yoga-studio/l10n/it.json +150 -0
  367. package/templates/yoga-studio/l10n/ja.json +150 -0
  368. package/templates/yoga-studio/l10n/ko.json +150 -0
  369. package/templates/yoga-studio/l10n/lt.json +150 -0
  370. package/templates/yoga-studio/l10n/nl.json +150 -0
  371. package/templates/yoga-studio/l10n/no.json +150 -0
  372. package/templates/yoga-studio/l10n/pl.json +150 -0
  373. package/templates/yoga-studio/l10n/pt.json +150 -0
  374. package/templates/yoga-studio/l10n/ru.json +150 -0
  375. package/templates/yoga-studio/l10n/sv.json +150 -0
  376. package/templates/yoga-studio/l10n/th.json +150 -0
  377. package/templates/yoga-studio/l10n/tr.json +150 -0
  378. package/templates/yoga-studio/l10n/uk.json +150 -0
  379. package/templates/yoga-studio/l10n/vi.json +150 -0
  380. package/templates/yoga-studio/l10n/zh.json +150 -0
  381. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  382. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
  383. package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +21 -0
  384. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +56 -12
  385. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +5 -0
  386. package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  387. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +17 -3
  388. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
  389. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
@@ -7,7 +7,7 @@ import { defineService as registerService, navigate } from "@himalaya/state";
7
7
  // instant range, not a calendar day.
8
8
  import { addDays as addLocalDays, dayKey, dayLabel, timeLabel, toDate } from "@himalaya/time";
9
9
  import { dispatch } from "@himalaya/dispatch";
10
- import { bookSchedule, bookSlot, getService, queryServiceAvailability, registerToWaitlist, type WixBookingSlotFull, type WixSelectedPaymentOption, type WixService } from "@himalaya/wix-bookings";
10
+ import { bookSchedule, bookSlot, cancelBookingAsMember, getService, queryServiceAvailability, registerToWaitlist, type WixBookingSlotFull, type WixSelectedPaymentOption, type WixService } from "@himalaya/wix-bookings";
11
11
  import { createCheckout, createOrder } from "@himalaya/wix-ecom";
12
12
  import { createRedirectSession } from "@himalaya/wix-redirects";
13
13
  import { isPaymentSetupFailure, payCashierOrder } from "@himalaya/checkout";
@@ -19,7 +19,7 @@ import { stashCopy, copyParam, copyPlural, copyTemplate } from "../_shared/himi-
19
19
  import { upsert as dbUpsert, remove as dbRemove, enqueue as dbEnqueue, type DbEntity } from "@himalaya/local-db";
20
20
  import { locationChoice, readSharedLocationResult, writeSharedLocation } from "../_shared/booking-location.js";
21
21
  import { memberScreenOpener } from "../_shared/member-screen.js";
22
- import { isBridgeUnavailable } from "../_shared/owner-load-error.js";
22
+ import { isBridgeUnavailable, writeMayHaveLanded } from "../_shared/owner-load-error.js";
23
23
  import { emitHostEvent, hostEventInstant } from "../_shared/host-events.js";
24
24
  import { availabilityBeyond, courseReadWindows, courseSessionsAvailability, courseWindowOpen, slotIdAt } from "../_shared/himi-bookings.js";
25
25
  import { wixMediaUrl, WIX_DETAIL_IMAGE, WIX_LIST_IMAGE } from "@himalaya/wix-media";
@@ -940,11 +940,17 @@ async function nextWindowWithTimes(serviceId: string, from: Date, now: Date, inc
940
940
  return undefined;
941
941
  }
942
942
 
943
- /** After a booking went through (or its checkout opened, which already holds a booking), the time
944
- * is no longer bookable here: it shows greyed and is no longer selected, so another tap on it cannot
945
- * send a second booking or charge. */
943
+ /** The answer to a free booking whose order may have been placed although its reply was lost. */
944
+ function freeBookingUncertainMessage(): string {
945
+ return copyParam("time.freeBookingUncertain", "We couldn't check if your booking is confirmed. See My Bookings before you book again.");
946
+ }
947
+
948
+ /** After a booking went through (or its checkout opened, or its order may have, either of which
949
+ * already holds a booking), the time is no longer bookable here: it shows greyed and is no longer
950
+ * selected, so another tap on it cannot send a second booking or charge. */
946
951
  function afterBooking(result: S, slotId: string): S {
947
- const booked = !!result.successMessage || result.message === copyParam("time.checkoutOpened", "Complete your payment in the checkout to confirm this booking.");
952
+ const booked = !!result.successMessage || result.message === freeBookingUncertainMessage()
953
+ || result.message === copyParam("time.checkoutOpened", "Complete your payment in the checkout to confirm this booking.");
948
954
  if (!booked || !slotId || result.isCourse) return result;
949
955
  allRows = allRows.map((row) => row.id === slotId ? { ...row, selectable: false, notSelectable: true } : row);
950
956
  slotsById.delete(slotId);
@@ -1668,7 +1674,7 @@ async function bookSelectedIn(s: S): Promise<S> {
1668
1674
  : copyParam("time.checkoutFailed", "Checkout could not start. Pick another time or try again.") });
1669
1675
  }
1670
1676
  }
1671
- // FREE appointment/class — the original member bookSlot rung (offline-safe below).
1677
+ // FREE appointment/class — bookSlot, then a zero-total order that confirms it (offline-safe below).
1672
1678
  // getMyData/signedInEmail carry their own fallbacks (never throw), so the
1673
1679
  // booker identity is resolved up front — needed for both the optimistic
1674
1680
  // cache row and the offline replay params.
@@ -1686,12 +1692,29 @@ async function bookSelectedIn(s: S): Promise<S> {
1686
1692
  });
1687
1693
  if (!offlineWritesEnabled) await cachePut(localRow(localId));
1688
1694
  const pending = derive({ ...s, bookingInFlight: true, message: "", successMessage: "" });
1695
+ // Set once Wix has the booking: from then on a failure is the order's, never a reason to
1696
+ // queue the booking again.
1697
+ let created: Awaited<ReturnType<typeof bookSlot>> | undefined;
1698
+ // Set once the order is sent: a failure from then on may still have confirmed the booking.
1699
+ let ordering = false;
1689
1700
  try {
1690
- const created = await bookSlot(slot!, name.first, name.last, email);
1691
- // Reconcile the optimistic local id with the server-assigned booking id.
1701
+ created = await bookSlot(slot!, name.first, name.last, email);
1692
1702
  const realId = created.booking?.id;
1693
- if (offlineWritesEnabled) await cachePut(localRow(realId || localId));
1694
- else if (realId && realId !== localId) { await cacheDrop(localId); await cachePut(localRow(realId)); }
1703
+ if (!realId) throw new Error("booking not created");
1704
+ // Create Booking leaves a booking CREATED: it holds no place and the business never sees
1705
+ // it. Wix confirms a booking when its eCommerce order is placed, so a free one goes through
1706
+ // the same checkout → order as a paid one; its order totals zero, so nothing is charged.
1707
+ // A site with no payment method refuses even a zero-total order (428
1708
+ // SITE_NOT_ACCEPTING_PAYMENTS), and a visitor or member has no other way to confirm.
1709
+ const checkoutId = (await createCheckout([
1710
+ { quantity: 1, catalogReference: { appId: WIX_BOOKINGS_APP_ID, catalogItemId: realId } },
1711
+ ])).checkout?.id;
1712
+ if (!checkoutId) throw new Error("checkout not created");
1713
+ ordering = true;
1714
+ await createOrder(checkoutId);
1715
+ // Reconcile the optimistic local id with the server-assigned booking id.
1716
+ if (offlineWritesEnabled) await cachePut(localRow(realId));
1717
+ else if (realId !== localId) { await cacheDrop(localId); await cachePut(localRow(realId)); }
1695
1718
  await reportBooked(created.booking);
1696
1719
  return derive({
1697
1720
  ...pending,
@@ -1700,7 +1723,11 @@ async function bookSelectedIn(s: S): Promise<S> {
1700
1723
  message: "",
1701
1724
  });
1702
1725
  } catch (e) {
1703
- if (!offlineWritesEnabled && isBridgeUnavailable(e)) {
1726
+ // Create Booking or the order may have reached Wix although the reply was lost (a gateway
1727
+ // status, a reset). Replaying it could book twice; withdrawing or "failed" could cancel a
1728
+ // real booking or invite a second one. Only a request that never left is queued.
1729
+ const mayHaveLanded = (ordering || !created) && writeMayHaveLanded(e);
1730
+ if (!created && !mayHaveLanded && !offlineWritesEnabled && isBridgeUnavailable(e)) {
1704
1731
  // Offline / no bridge: the optimistic cache row already shows in My
1705
1732
  // Bookings; queue the booking to replay (WriteQueue, idempotent) when
1706
1733
  // connectivity returns.
@@ -1719,6 +1746,23 @@ async function bookSelectedIn(s: S): Promise<S> {
1719
1746
  message: "",
1720
1747
  });
1721
1748
  }
1749
+ if (!offlineWritesEnabled) await cacheDrop(localId);
1750
+ if (mayHaveLanded) {
1751
+ // My Bookings reads the booking's real status from Wix.
1752
+ return derive({ ...s, bookingInFlight: false,
1753
+ message: freeBookingUncertainMessage() });
1754
+ }
1755
+ const booking = created?.booking;
1756
+ if (booking?.id) {
1757
+ // Wix has an unconfirmed booking the business cannot see. Withdraw it, so My Bookings
1758
+ // does not keep a booking that never happened; a failed withdrawal leaves it there,
1759
+ // tagged Not confirmed.
1760
+ if (booking.revision) await cancelBookingAsMember(booking.id, booking.revision, false).catch(() => undefined);
1761
+ if (isPaymentSetupFailure(e)) {
1762
+ return derive({ ...s, bookingInFlight: false,
1763
+ message: copyParam("time.freeBookingUnconfirmed", "The business can't confirm bookings in the app right now. Contact the business to book.") });
1764
+ }
1765
+ }
1722
1766
  return derive({ ...s, bookingInFlight: false, message: s.isCourse
1723
1767
  ? copyParam("time.courseBookFailed", "Course booking failed. Try again.")
1724
1768
  : copyParam("time.bookFailed", "Booking failed. Pick another time or try again.") });
@@ -1,5 +1,7 @@
1
1
  import { descriptionBody } from "../_shared/rich-body.js";
2
2
  import { programDescription } from "../_shared/program-description.js";
3
+ import { inProgram, PARTICIPANT_SCREEN, programScreenFor, standingOf } from "../_shared/program-standing.js";
4
+ import { isProgramEnded } from "../_shared/program-fields.js";
3
5
  import { fetchMemberBookings, type MemberBookingRow } from "../_shared/member-bookings.js";
4
6
  import { hostSiteFromInput, hostedExploreCards, hostedHiddenFlags, type HostedExploreCard } from "../_shared/branded-lite-hosted.js";
5
7
  import { memberAccess, assertMemberAccess } from "../_shared/member-access.js";
@@ -178,6 +180,8 @@ interface MemberProgramCard extends ProgramCard {
178
180
  stateLabel: string;
179
181
  progressFraction: number;
180
182
  hideProgress: boolean;
183
+ /** A program the member is in opens the participant page; a request or invitation opens the program page. */
184
+ detailScreenId: string;
181
185
  }
182
186
 
183
187
  /** A communityPulse latest-activity Carousel card (design §4.5). */
@@ -818,6 +822,7 @@ async function fetchMemberProgramCards(programs: WixProgram[]): Promise<MemberPr
818
822
  stateLabel,
819
823
  progressFraction,
820
824
  hideProgress: !hasProgress || !participant || (participant.enrollmentStatus ?? "").toUpperCase() === "SUSPENDED",
825
+ detailScreenId: programScreenFor(inProgram(standingOf(isProgramEnded(program), participant, undefined), participant), "himi_program", PARTICIPANT_SCREEN),
821
826
  }];
822
827
  });
823
828
  } catch (error) {
@@ -21,7 +21,7 @@ import { getMyMember } from "@himalaya/wix-members";
21
21
  import { iapPriceFields, onlineProgramItem, type IapPollDirective } from "@himalaya/iap";
22
22
  import { createIapCommerce } from "@himalaya/iap-checkout";
23
23
  import { createCollectionQuery, type CollectionPage, type CollectionQueryState } from "../_shared/collection-query.js";
24
- import { standingOf as sharedStandingOf, STATUS, type Standing } from "../_shared/program-standing.js";
24
+ import { inProgram, programScreenFor, standingOf as sharedStandingOf, STATUS, type Standing } from "../_shared/program-standing.js";
25
25
  import { memberAccess, memberAccessChanged, memberAccessDenied, type MemberAccess } from "../_shared/member-access.js";
26
26
  import { cleanTitle, initials } from "../_shared/himi-text.js";
27
27
  import { programImage } from "../_shared/himi-media.js";
@@ -35,6 +35,8 @@ import { iapPriceCopy, resetUnhydratedKeysOnOlderRuntime } from "../_shared/iap-
35
35
  export const SERVICE = "himiBrandedMemberPrograms";
36
36
  const PAGE_SIZE = 20;
37
37
  const DETAIL_SCREEN = "himi_program";
38
+ /** The host's participant page (load arg `participantScreen`); "" keeps every card on the program page. */
39
+ let participantScreen = "";
38
40
 
39
41
  // ── Row model ────────────────────────────────────────────────────────────────
40
42
 
@@ -73,6 +75,8 @@ export interface ProgramContent {
73
75
  actionLabel: string;
74
76
  actionDisabled: boolean;
75
77
  detailScreenId: string;
78
+ /** The member has a participation in the program that opens the participant page. */
79
+ inProgram: boolean;
76
80
  categoryIds: string[];
77
81
  }
78
82
  export interface ProgramRow extends ProgramContent {
@@ -276,6 +280,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
276
280
  // Only a member's CTA is the join action; a guest's "View" stays a navigation.
277
281
  actionLabel, actionDisabled: limitReached && o.member,
278
282
  detailScreenId: DETAIL_SCREEN,
283
+ inProgram: inProgram(standing, o.participant),
279
284
  categoryIds: categoryIdsOf(p),
280
285
  };
281
286
  }
@@ -510,15 +515,23 @@ const INITIAL_STATE: State = {
510
515
  function pricedRows(items: ProgramContent[]): ProgramRow[] {
511
516
  const copy = iapPriceCopy("memberPrograms");
512
517
  return items.map((row) => {
513
- if (!row.pricable) return { ...row, priceLine: "", hasPrice: false, noPrice: true };
518
+ // A member in the program opens the participant page, when the host serves one.
519
+ const detailScreenId = programScreenFor(row.inProgram, DETAIL_SCREEN, participantScreen);
520
+ if (!row.pricable) return { ...row, detailScreenId, priceLine: "", hasPrice: false, noPrice: true };
514
521
  const item = onlineProgramItem({ id: row.id }, row.commercePrice);
515
522
  const view = item ? pricing.view(item.reference) : undefined;
516
523
  const fields = view ? iapPriceFields(view, copy) : undefined;
517
524
  const priceLine = fields?.priceText || (row.free ? copyParam("memberPrograms.free", "Free") : row.commercePrice);
518
- return { ...row, priceLine, hasPrice: !!priceLine, noPrice: !priceLine };
525
+ return { ...row, detailScreenId, priceLine, hasPrice: !!priceLine, noPrice: !priceLine };
519
526
  });
520
527
  }
521
528
 
529
+ /** Reads the host's participant page from a load arg; an arg without one keeps the last. */
530
+ function stashParticipantScreen(arg: unknown): void {
531
+ const value = (arg as { participantScreen?: unknown } | undefined)?.participantScreen;
532
+ if (typeof value === "string") participantScreen = value;
533
+ }
534
+
522
535
  function derive(state: State): State {
523
536
  const current = page;
524
537
  const meta = (current?.metadata ?? {}) as Partial<PageMeta>;
@@ -612,11 +625,12 @@ type Actions = {
612
625
  const actions: Actions = {
613
626
  async load(_state, arg) {
614
627
  stashCopy(arg);
628
+ stashParticipantScreen(arg);
615
629
  // A load of what the screen already shows is the screen coming back: it revalidates behind its rows.
616
630
  await controller.query(criteria(), true, true);
617
631
  return undefined;
618
632
  },
619
- async refresh(_state, arg) { stashCopy(arg); await controller.query(criteria()); return undefined; },
633
+ async refresh(_state, arg) { stashCopy(arg); stashParticipantScreen(arg); await controller.query(criteria()); return undefined; },
620
634
  async loadMore() { await controller.loadMore(); return undefined; },
621
635
  async retry() { await controller.retry(); return undefined; },
622
636
  setStatus(state, arg) {
@@ -635,11 +649,13 @@ const actions: Actions = {
635
649
  categoryId = next;
636
650
  return controller.query(criteria()).then(() => undefined);
637
651
  },
638
- // The card's one action: every standing opens the program, which owns joining, paying and leaving.
652
+ // The card's one action: every standing opens the program, which owns joining, paying and leaving —
653
+ // or, for a member in it, the host's participant page (the row's detailScreenId).
639
654
  open(state, arg) {
640
655
  const id = (arg as { id?: unknown } | undefined)?.id;
641
- if (typeof id !== "string" || !state.rows.some((row) => row.id === id && !row.actionDisabled)) return state;
642
- return navigate(state, { screenId: DETAIL_SCREEN, args: { id } });
656
+ const row = typeof id === "string" ? state.rows.find((candidate) => candidate.id === id && !candidate.actionDisabled) : undefined;
657
+ if (!row) return state;
658
+ return navigate(state, { screenId: row.detailScreenId || DETAIL_SCREEN, args: { id: row.id } });
643
659
  },
644
660
  pageChanged: derive,
645
661
  pricingPublish: derive,
@@ -44,7 +44,7 @@ import {
44
44
  type WixProgram,
45
45
  type WixProgramFull,
46
46
  } from "@himalaya/wix-online-programs";
47
- import { standingOf, STATUS, type Standing } from "../_shared/program-standing.js";
47
+ import { inProgram, standingOf, STATUS, type Standing } from "../_shared/program-standing.js";
48
48
  import { createRedirectSession } from "@himalaya/wix-redirects";
49
49
  import { getMyMember } from "@himalaya/wix-members";
50
50
  import { session as wixPlatformSession, i18n } from "@himalaya/wix-platform";
@@ -102,6 +102,10 @@ interface State {
102
102
  enrollLabel: string;
103
103
  /** The member's standing as one line ("Joined", "Pending request"…); empty for a visitor or a new member. */
104
104
  standingLine: string;
105
+ /** The program id, for the participant page link. */
106
+ programId: string;
107
+ /** A member in the program opens the participant page from here; everyone else has nothing to open. */
108
+ participantHidden: boolean;
105
109
  /** Withdraws a pending join request; shown only while one is pending. */
106
110
  cancelHidden: boolean;
107
111
  cancelDisabled: boolean;
@@ -299,7 +303,7 @@ async function enrollmentMessage(id: string, name: string, guards: CommerceGuard
299
303
  const commerce = createIapCommerce({ adapters: [onlineProgramOrders], onChange: () => { void svc.pricingPublish(); } });
300
304
  const pricing = commerce.pricing;
301
305
  const PRICING_NOT_HYDRATED = [
302
- "priceLine", "priceNote", "hidePriceRetry", "enrollDisabled", "enrollNote", "enrollHidden", "enrollLabel", "standingLine", "cancelHidden", "cancelDisabled", "cancelLabel", "buyHidden", "buyLabel", "buyDisabled", "buyNote",
306
+ "priceLine", "priceNote", "hidePriceRetry", "enrollDisabled", "enrollNote", "enrollHidden", "enrollLabel", "standingLine", "participantHidden", "cancelHidden", "cancelDisabled", "cancelLabel", "buyHidden", "buyLabel", "buyDisabled", "buyNote",
303
307
  ] as const;
304
308
  const CONTENT_KEYS = ["status", "name", "description", "descriptionJson", "meta", "facts", "image", "initial", "emptyText"] as const;
305
309
  type Content = Pick<State, (typeof CONTENT_KEYS)[number]>;
@@ -314,6 +318,8 @@ let enrollmentInFlight = false;
314
318
  // Unknown initial standing stays "none"; known standing survives transient reads only
315
319
  // for its original program and revalidated member. `joinProgram` still guards every enrollment.
316
320
  let standing: Standing = "none";
321
+ /** The standing came from a participation that opens the participant page (not an admitted application alone). */
322
+ let standingInProgram = false;
317
323
  let standingContext: { programId: string; member: MemberAccess } | undefined;
318
324
  let standingProgramId = "";
319
325
  let standingMember: MemberAccess | undefined;
@@ -419,11 +425,12 @@ function loadStanding(id: string): Promise<StandingRead | undefined> {
419
425
  }
420
426
 
421
427
  async function readStanding(id: string, seq: number): Promise<StandingRead | undefined> {
422
- const previous = { standing, id: pendingApplicationId, programId: standingProgramId, member: standingMember };
428
+ const previous = { standing, inProgram: standingInProgram, id: pendingApplicationId, programId: standingProgramId, member: standingMember };
423
429
  const cancelled = cancelledApplication;
424
430
  const failedFeedback = failedCancellationFeedback;
425
431
  let failedFeedbackInvalidated = !!failedFeedback && failedFeedback.programId !== id;
426
432
  let next: Standing = "none";
433
+ let nextInProgram = false;
427
434
  let applicationId = "";
428
435
  let owner: MemberAccess | undefined;
429
436
  let read: StandingRead | undefined;
@@ -481,6 +488,7 @@ async function readStanding(id: string, seq: number): Promise<StandingRead | und
481
488
  sameCancelledStanding = cancelledRow && !participant;
482
489
  feedbackKnown ||= applicationKnown || !!participant;
483
490
  next = standingOf(programEnded, participant ?? scoped[0], application);
491
+ nextInProgram = inProgram(next, participant);
484
492
  if (next !== "none") owner = member;
485
493
  if (failedFeedback && (applicationKnown || participant)) {
486
494
  failedFeedbackInvalidated ||= !!participant || applicationRead?.id !== failedFeedback.id
@@ -498,6 +506,7 @@ async function readStanding(id: string, seq: number): Promise<StandingRead | und
498
506
  try {
499
507
  await assertMemberAccess(previous.member);
500
508
  next = previous.standing;
509
+ nextInProgram = previous.inProgram;
501
510
  applicationId = previous.id;
502
511
  owner = previous.member;
503
512
  } catch { /* never retain another member's standing */ }
@@ -522,6 +531,7 @@ async function readStanding(id: string, seq: number): Promise<StandingRead | und
522
531
  cancellationFeedback = "";
523
532
  }
524
533
  standing = next;
534
+ standingInProgram = nextInProgram;
525
535
  const knownMember = owner ?? readIdentity;
526
536
  standingContext = (visitorKnown || !!read || next !== "none") && knownMember ? { programId: id, member: knownMember } : undefined;
527
537
  standingProgramId = next !== "none" ? id : "";
@@ -757,6 +767,8 @@ function pricedState(state: State): State {
757
767
  // says where they are. Only a new member, or one whose payment is owed, sees the CTA.
758
768
  enrollHidden: purchase.appleRoute || !canEnrol(standing), enrollLabel: enrollLabelFor(standing),
759
769
  standingLine: standing === "none" ? "" : copyParam(STATUS[standing].key, STATUS[standing].fallback),
770
+ programId: inputId(),
771
+ participantHidden: !standingForInput() || !standingInProgram,
760
772
  cancelHidden: standing !== "pending" || !pendingApplicationId, cancelLabel: copyParam("program.cancelRequestCta", "Cancel request"),
761
773
  cancelDisabled: cancelInFlight || enrollmentInFlight,
762
774
  confirmedCancellation: cancelledApplication ?? null,
@@ -795,6 +807,8 @@ const INITIAL_STATE: State = derive({
795
807
  enrollHidden: false,
796
808
  enrollLabel: copyParam("program.enrolCta", "Enrol"),
797
809
  standingLine: "",
810
+ programId: "",
811
+ participantHidden: true,
798
812
  cancelHidden: true,
799
813
  cancelDisabled: false,
800
814
  cancelLabel: copyParam("program.cancelRequestCta", "Cancel request"),