@wix/himalaya-cli 0.1856.0 → 0.1858.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 (345) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +20 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +9 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/index.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +21 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +53 -16
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +94 -29
  7. package/dist/browser-plane/assets.json +5 -5
  8. package/dist/browser-plane/preview-deferred/{c1f008be31a41521c6de7c1afad419a1f4dad53cbc2701a14738d5b22f291463.bin → b2b76cc19f21f7c6d8b1a3cd6aa1ac0f194b052fa183761d08bd4f43fd46f844.bin} +1 -1
  9. package/dist/browser-plane/sw.js +9 -9
  10. package/dist/cli.mjs +1796 -1524
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/one-app-section-mappings.md +2 -2
  13. package/guides/one-app-to-himi-app.md +11 -2
  14. package/guides/recipe-auth.md +18 -1
  15. package/guides/sdk-reference.json +4 -4
  16. package/package.json +2 -2
  17. package/templates/beauty-salon/l10n/ar.json +5 -0
  18. package/templates/beauty-salon/l10n/cs.json +5 -0
  19. package/templates/beauty-salon/l10n/da.json +5 -0
  20. package/templates/beauty-salon/l10n/de.json +5 -0
  21. package/templates/beauty-salon/l10n/el.json +5 -0
  22. package/templates/beauty-salon/l10n/es.json +5 -0
  23. package/templates/beauty-salon/l10n/fi.json +5 -0
  24. package/templates/beauty-salon/l10n/fr.json +5 -0
  25. package/templates/beauty-salon/l10n/he.json +4 -0
  26. package/templates/beauty-salon/l10n/hu.json +5 -0
  27. package/templates/beauty-salon/l10n/id.json +5 -0
  28. package/templates/beauty-salon/l10n/it.json +5 -0
  29. package/templates/beauty-salon/l10n/ja.json +5 -0
  30. package/templates/beauty-salon/l10n/ko.json +5 -0
  31. package/templates/beauty-salon/l10n/lt.json +5 -0
  32. package/templates/beauty-salon/l10n/nl.json +5 -0
  33. package/templates/beauty-salon/l10n/no.json +5 -0
  34. package/templates/beauty-salon/l10n/pl.json +5 -0
  35. package/templates/beauty-salon/l10n/pt.json +5 -0
  36. package/templates/beauty-salon/l10n/ru.json +5 -0
  37. package/templates/beauty-salon/l10n/sv.json +5 -0
  38. package/templates/beauty-salon/l10n/th.json +5 -0
  39. package/templates/beauty-salon/l10n/tr.json +5 -0
  40. package/templates/beauty-salon/l10n/uk.json +5 -0
  41. package/templates/beauty-salon/l10n/vi.json +5 -0
  42. package/templates/beauty-salon/l10n/zh.json +5 -0
  43. package/templates/beauty-salon/tier5-src/_shared/himi-media.ts +6 -2
  44. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +18 -0
  45. package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +24 -4
  46. package/templates/branded-lite/l10n/ar.json +10 -0
  47. package/templates/branded-lite/l10n/cs.json +10 -0
  48. package/templates/branded-lite/l10n/da.json +10 -0
  49. package/templates/branded-lite/l10n/de.json +10 -0
  50. package/templates/branded-lite/l10n/el.json +10 -0
  51. package/templates/branded-lite/l10n/es.json +10 -0
  52. package/templates/branded-lite/l10n/fi.json +10 -0
  53. package/templates/branded-lite/l10n/fr.json +10 -0
  54. package/templates/branded-lite/l10n/he.json +8 -0
  55. package/templates/branded-lite/l10n/hu.json +10 -0
  56. package/templates/branded-lite/l10n/id.json +10 -0
  57. package/templates/branded-lite/l10n/it.json +10 -0
  58. package/templates/branded-lite/l10n/ja.json +10 -0
  59. package/templates/branded-lite/l10n/ko.json +10 -0
  60. package/templates/branded-lite/l10n/lt.json +10 -0
  61. package/templates/branded-lite/l10n/nl.json +10 -0
  62. package/templates/branded-lite/l10n/no.json +10 -0
  63. package/templates/branded-lite/l10n/pl.json +10 -0
  64. package/templates/branded-lite/l10n/pt.json +10 -0
  65. package/templates/branded-lite/l10n/ru.json +10 -0
  66. package/templates/branded-lite/l10n/sv.json +10 -0
  67. package/templates/branded-lite/l10n/th.json +10 -0
  68. package/templates/branded-lite/l10n/tr.json +10 -0
  69. package/templates/branded-lite/l10n/uk.json +10 -0
  70. package/templates/branded-lite/l10n/vi.json +10 -0
  71. package/templates/branded-lite/l10n/zh.json +10 -0
  72. package/templates/branded-lite/tier5-src/_shared/himi-media.ts +6 -2
  73. package/templates/branded-lite/tier5-src/_shared/program-fields.ts +18 -0
  74. package/templates/branded-lite/tier5-src/_shared/program-standing.ts +24 -4
  75. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +53 -20
  76. package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +3 -2
  77. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +48 -26
  78. package/templates/community-club/l10n/ar.json +5 -0
  79. package/templates/community-club/l10n/cs.json +5 -0
  80. package/templates/community-club/l10n/da.json +5 -0
  81. package/templates/community-club/l10n/de.json +5 -0
  82. package/templates/community-club/l10n/el.json +5 -0
  83. package/templates/community-club/l10n/es.json +5 -0
  84. package/templates/community-club/l10n/fi.json +5 -0
  85. package/templates/community-club/l10n/fr.json +5 -0
  86. package/templates/community-club/l10n/he.json +4 -0
  87. package/templates/community-club/l10n/hu.json +5 -0
  88. package/templates/community-club/l10n/id.json +5 -0
  89. package/templates/community-club/l10n/it.json +5 -0
  90. package/templates/community-club/l10n/ja.json +5 -0
  91. package/templates/community-club/l10n/ko.json +5 -0
  92. package/templates/community-club/l10n/lt.json +5 -0
  93. package/templates/community-club/l10n/nl.json +5 -0
  94. package/templates/community-club/l10n/no.json +5 -0
  95. package/templates/community-club/l10n/pl.json +5 -0
  96. package/templates/community-club/l10n/pt.json +5 -0
  97. package/templates/community-club/l10n/ru.json +5 -0
  98. package/templates/community-club/l10n/sv.json +5 -0
  99. package/templates/community-club/l10n/th.json +5 -0
  100. package/templates/community-club/l10n/tr.json +5 -0
  101. package/templates/community-club/l10n/uk.json +5 -0
  102. package/templates/community-club/l10n/vi.json +5 -0
  103. package/templates/community-club/l10n/zh.json +5 -0
  104. package/templates/community-club/tier5-src/_shared/himi-media.ts +6 -2
  105. package/templates/community-club/tier5-src/_shared/program-fields.ts +18 -0
  106. package/templates/community-club/tier5-src/_shared/program-standing.ts +24 -4
  107. package/templates/events-meetups/l10n/ar.json +5 -0
  108. package/templates/events-meetups/l10n/cs.json +5 -0
  109. package/templates/events-meetups/l10n/da.json +5 -0
  110. package/templates/events-meetups/l10n/de.json +5 -0
  111. package/templates/events-meetups/l10n/el.json +5 -0
  112. package/templates/events-meetups/l10n/es.json +5 -0
  113. package/templates/events-meetups/l10n/fi.json +5 -0
  114. package/templates/events-meetups/l10n/fr.json +5 -0
  115. package/templates/events-meetups/l10n/he.json +4 -0
  116. package/templates/events-meetups/l10n/hu.json +5 -0
  117. package/templates/events-meetups/l10n/id.json +5 -0
  118. package/templates/events-meetups/l10n/it.json +5 -0
  119. package/templates/events-meetups/l10n/ja.json +5 -0
  120. package/templates/events-meetups/l10n/ko.json +5 -0
  121. package/templates/events-meetups/l10n/lt.json +5 -0
  122. package/templates/events-meetups/l10n/nl.json +5 -0
  123. package/templates/events-meetups/l10n/no.json +5 -0
  124. package/templates/events-meetups/l10n/pl.json +5 -0
  125. package/templates/events-meetups/l10n/pt.json +5 -0
  126. package/templates/events-meetups/l10n/ru.json +5 -0
  127. package/templates/events-meetups/l10n/sv.json +5 -0
  128. package/templates/events-meetups/l10n/th.json +5 -0
  129. package/templates/events-meetups/l10n/tr.json +5 -0
  130. package/templates/events-meetups/l10n/uk.json +5 -0
  131. package/templates/events-meetups/l10n/vi.json +5 -0
  132. package/templates/events-meetups/l10n/zh.json +5 -0
  133. package/templates/events-meetups/tier5-src/_shared/himi-media.ts +6 -2
  134. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +18 -0
  135. package/templates/events-meetups/tier5-src/_shared/program-standing.ts +24 -4
  136. package/templates/fitness-gym/tier5-src/_shared/himi-media.ts +6 -2
  137. package/templates/fitness-gym/tier5-src/_shared/program-fields.ts +18 -0
  138. package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +24 -4
  139. package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +3 -2
  140. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +48 -26
  141. package/templates/gym-fitness/l10n/ar.json +5 -0
  142. package/templates/gym-fitness/l10n/cs.json +5 -0
  143. package/templates/gym-fitness/l10n/da.json +5 -0
  144. package/templates/gym-fitness/l10n/de.json +5 -0
  145. package/templates/gym-fitness/l10n/el.json +5 -0
  146. package/templates/gym-fitness/l10n/es.json +5 -0
  147. package/templates/gym-fitness/l10n/fi.json +5 -0
  148. package/templates/gym-fitness/l10n/fr.json +5 -0
  149. package/templates/gym-fitness/l10n/he.json +4 -0
  150. package/templates/gym-fitness/l10n/hu.json +5 -0
  151. package/templates/gym-fitness/l10n/id.json +5 -0
  152. package/templates/gym-fitness/l10n/it.json +5 -0
  153. package/templates/gym-fitness/l10n/ja.json +5 -0
  154. package/templates/gym-fitness/l10n/ko.json +5 -0
  155. package/templates/gym-fitness/l10n/lt.json +5 -0
  156. package/templates/gym-fitness/l10n/nl.json +5 -0
  157. package/templates/gym-fitness/l10n/no.json +5 -0
  158. package/templates/gym-fitness/l10n/pl.json +5 -0
  159. package/templates/gym-fitness/l10n/pt.json +5 -0
  160. package/templates/gym-fitness/l10n/ru.json +5 -0
  161. package/templates/gym-fitness/l10n/sv.json +5 -0
  162. package/templates/gym-fitness/l10n/th.json +5 -0
  163. package/templates/gym-fitness/l10n/tr.json +5 -0
  164. package/templates/gym-fitness/l10n/uk.json +5 -0
  165. package/templates/gym-fitness/l10n/vi.json +5 -0
  166. package/templates/gym-fitness/l10n/zh.json +5 -0
  167. package/templates/gym-fitness/tier5-src/_shared/himi-media.ts +6 -2
  168. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +18 -0
  169. package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +24 -4
  170. package/templates/nonprofit-cause/l10n/ar.json +5 -0
  171. package/templates/nonprofit-cause/l10n/cs.json +5 -0
  172. package/templates/nonprofit-cause/l10n/da.json +5 -0
  173. package/templates/nonprofit-cause/l10n/de.json +5 -0
  174. package/templates/nonprofit-cause/l10n/el.json +5 -0
  175. package/templates/nonprofit-cause/l10n/es.json +5 -0
  176. package/templates/nonprofit-cause/l10n/fi.json +5 -0
  177. package/templates/nonprofit-cause/l10n/fr.json +5 -0
  178. package/templates/nonprofit-cause/l10n/he.json +4 -0
  179. package/templates/nonprofit-cause/l10n/hu.json +5 -0
  180. package/templates/nonprofit-cause/l10n/id.json +5 -0
  181. package/templates/nonprofit-cause/l10n/it.json +5 -0
  182. package/templates/nonprofit-cause/l10n/ja.json +5 -0
  183. package/templates/nonprofit-cause/l10n/ko.json +5 -0
  184. package/templates/nonprofit-cause/l10n/lt.json +5 -0
  185. package/templates/nonprofit-cause/l10n/nl.json +5 -0
  186. package/templates/nonprofit-cause/l10n/no.json +5 -0
  187. package/templates/nonprofit-cause/l10n/pl.json +5 -0
  188. package/templates/nonprofit-cause/l10n/pt.json +5 -0
  189. package/templates/nonprofit-cause/l10n/ru.json +5 -0
  190. package/templates/nonprofit-cause/l10n/sv.json +5 -0
  191. package/templates/nonprofit-cause/l10n/th.json +5 -0
  192. package/templates/nonprofit-cause/l10n/tr.json +5 -0
  193. package/templates/nonprofit-cause/l10n/uk.json +5 -0
  194. package/templates/nonprofit-cause/l10n/vi.json +5 -0
  195. package/templates/nonprofit-cause/l10n/zh.json +5 -0
  196. package/templates/nonprofit-cause/tier5-src/_shared/himi-media.ts +6 -2
  197. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +18 -0
  198. package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +24 -4
  199. package/templates/podcast-creator/l10n/ar.json +5 -0
  200. package/templates/podcast-creator/l10n/cs.json +5 -0
  201. package/templates/podcast-creator/l10n/da.json +5 -0
  202. package/templates/podcast-creator/l10n/de.json +5 -0
  203. package/templates/podcast-creator/l10n/el.json +5 -0
  204. package/templates/podcast-creator/l10n/es.json +5 -0
  205. package/templates/podcast-creator/l10n/fi.json +5 -0
  206. package/templates/podcast-creator/l10n/fr.json +5 -0
  207. package/templates/podcast-creator/l10n/he.json +4 -0
  208. package/templates/podcast-creator/l10n/hu.json +5 -0
  209. package/templates/podcast-creator/l10n/id.json +5 -0
  210. package/templates/podcast-creator/l10n/it.json +5 -0
  211. package/templates/podcast-creator/l10n/ja.json +5 -0
  212. package/templates/podcast-creator/l10n/ko.json +5 -0
  213. package/templates/podcast-creator/l10n/lt.json +5 -0
  214. package/templates/podcast-creator/l10n/nl.json +5 -0
  215. package/templates/podcast-creator/l10n/no.json +5 -0
  216. package/templates/podcast-creator/l10n/pl.json +5 -0
  217. package/templates/podcast-creator/l10n/pt.json +5 -0
  218. package/templates/podcast-creator/l10n/ru.json +5 -0
  219. package/templates/podcast-creator/l10n/sv.json +5 -0
  220. package/templates/podcast-creator/l10n/th.json +5 -0
  221. package/templates/podcast-creator/l10n/tr.json +5 -0
  222. package/templates/podcast-creator/l10n/uk.json +5 -0
  223. package/templates/podcast-creator/l10n/vi.json +5 -0
  224. package/templates/podcast-creator/l10n/zh.json +5 -0
  225. package/templates/podcast-creator/tier5-src/_shared/himi-media.ts +6 -2
  226. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +18 -0
  227. package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +24 -4
  228. package/templates/portfolio-creative/l10n/ar.json +5 -0
  229. package/templates/portfolio-creative/l10n/cs.json +5 -0
  230. package/templates/portfolio-creative/l10n/da.json +5 -0
  231. package/templates/portfolio-creative/l10n/de.json +5 -0
  232. package/templates/portfolio-creative/l10n/el.json +5 -0
  233. package/templates/portfolio-creative/l10n/es.json +5 -0
  234. package/templates/portfolio-creative/l10n/fi.json +5 -0
  235. package/templates/portfolio-creative/l10n/fr.json +5 -0
  236. package/templates/portfolio-creative/l10n/he.json +4 -0
  237. package/templates/portfolio-creative/l10n/hu.json +5 -0
  238. package/templates/portfolio-creative/l10n/id.json +5 -0
  239. package/templates/portfolio-creative/l10n/it.json +5 -0
  240. package/templates/portfolio-creative/l10n/ja.json +5 -0
  241. package/templates/portfolio-creative/l10n/ko.json +5 -0
  242. package/templates/portfolio-creative/l10n/lt.json +5 -0
  243. package/templates/portfolio-creative/l10n/nl.json +5 -0
  244. package/templates/portfolio-creative/l10n/no.json +5 -0
  245. package/templates/portfolio-creative/l10n/pl.json +5 -0
  246. package/templates/portfolio-creative/l10n/pt.json +5 -0
  247. package/templates/portfolio-creative/l10n/ru.json +5 -0
  248. package/templates/portfolio-creative/l10n/sv.json +5 -0
  249. package/templates/portfolio-creative/l10n/th.json +5 -0
  250. package/templates/portfolio-creative/l10n/tr.json +5 -0
  251. package/templates/portfolio-creative/l10n/uk.json +5 -0
  252. package/templates/portfolio-creative/l10n/vi.json +5 -0
  253. package/templates/portfolio-creative/l10n/zh.json +5 -0
  254. package/templates/portfolio-creative/tier5-src/_shared/himi-media.ts +6 -2
  255. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +18 -0
  256. package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +24 -4
  257. package/templates/restaurant/l10n/ar.json +5 -0
  258. package/templates/restaurant/l10n/cs.json +5 -0
  259. package/templates/restaurant/l10n/da.json +5 -0
  260. package/templates/restaurant/l10n/de.json +5 -0
  261. package/templates/restaurant/l10n/el.json +5 -0
  262. package/templates/restaurant/l10n/es.json +5 -0
  263. package/templates/restaurant/l10n/fi.json +5 -0
  264. package/templates/restaurant/l10n/fr.json +5 -0
  265. package/templates/restaurant/l10n/he.json +4 -0
  266. package/templates/restaurant/l10n/hu.json +5 -0
  267. package/templates/restaurant/l10n/id.json +5 -0
  268. package/templates/restaurant/l10n/it.json +5 -0
  269. package/templates/restaurant/l10n/ja.json +5 -0
  270. package/templates/restaurant/l10n/ko.json +5 -0
  271. package/templates/restaurant/l10n/lt.json +5 -0
  272. package/templates/restaurant/l10n/nl.json +5 -0
  273. package/templates/restaurant/l10n/no.json +5 -0
  274. package/templates/restaurant/l10n/pl.json +5 -0
  275. package/templates/restaurant/l10n/pt.json +5 -0
  276. package/templates/restaurant/l10n/ru.json +5 -0
  277. package/templates/restaurant/l10n/sv.json +5 -0
  278. package/templates/restaurant/l10n/th.json +5 -0
  279. package/templates/restaurant/l10n/tr.json +5 -0
  280. package/templates/restaurant/l10n/uk.json +5 -0
  281. package/templates/restaurant/l10n/vi.json +5 -0
  282. package/templates/restaurant/l10n/zh.json +5 -0
  283. package/templates/restaurant/tier5-src/_shared/himi-media.ts +6 -2
  284. package/templates/restaurant/tier5-src/_shared/program-fields.ts +18 -0
  285. package/templates/restaurant/tier5-src/_shared/program-standing.ts +24 -4
  286. package/templates/retail-store/l10n/ar.json +5 -0
  287. package/templates/retail-store/l10n/cs.json +5 -0
  288. package/templates/retail-store/l10n/da.json +5 -0
  289. package/templates/retail-store/l10n/de.json +5 -0
  290. package/templates/retail-store/l10n/el.json +5 -0
  291. package/templates/retail-store/l10n/es.json +5 -0
  292. package/templates/retail-store/l10n/fi.json +5 -0
  293. package/templates/retail-store/l10n/fr.json +5 -0
  294. package/templates/retail-store/l10n/he.json +4 -0
  295. package/templates/retail-store/l10n/hu.json +5 -0
  296. package/templates/retail-store/l10n/id.json +5 -0
  297. package/templates/retail-store/l10n/it.json +5 -0
  298. package/templates/retail-store/l10n/ja.json +5 -0
  299. package/templates/retail-store/l10n/ko.json +5 -0
  300. package/templates/retail-store/l10n/lt.json +5 -0
  301. package/templates/retail-store/l10n/nl.json +5 -0
  302. package/templates/retail-store/l10n/no.json +5 -0
  303. package/templates/retail-store/l10n/pl.json +5 -0
  304. package/templates/retail-store/l10n/pt.json +5 -0
  305. package/templates/retail-store/l10n/ru.json +5 -0
  306. package/templates/retail-store/l10n/sv.json +5 -0
  307. package/templates/retail-store/l10n/th.json +5 -0
  308. package/templates/retail-store/l10n/tr.json +5 -0
  309. package/templates/retail-store/l10n/uk.json +5 -0
  310. package/templates/retail-store/l10n/vi.json +5 -0
  311. package/templates/retail-store/l10n/zh.json +5 -0
  312. package/templates/retail-store/tier5-src/_shared/himi-media.ts +6 -2
  313. package/templates/retail-store/tier5-src/_shared/program-fields.ts +18 -0
  314. package/templates/retail-store/tier5-src/_shared/program-standing.ts +24 -4
  315. package/templates/yoga-studio/l10n/ar.json +10 -0
  316. package/templates/yoga-studio/l10n/cs.json +10 -0
  317. package/templates/yoga-studio/l10n/da.json +10 -0
  318. package/templates/yoga-studio/l10n/de.json +10 -0
  319. package/templates/yoga-studio/l10n/el.json +10 -0
  320. package/templates/yoga-studio/l10n/es.json +10 -0
  321. package/templates/yoga-studio/l10n/fi.json +10 -0
  322. package/templates/yoga-studio/l10n/fr.json +10 -0
  323. package/templates/yoga-studio/l10n/he.json +8 -0
  324. package/templates/yoga-studio/l10n/hu.json +10 -0
  325. package/templates/yoga-studio/l10n/id.json +10 -0
  326. package/templates/yoga-studio/l10n/it.json +10 -0
  327. package/templates/yoga-studio/l10n/ja.json +10 -0
  328. package/templates/yoga-studio/l10n/ko.json +10 -0
  329. package/templates/yoga-studio/l10n/lt.json +10 -0
  330. package/templates/yoga-studio/l10n/nl.json +10 -0
  331. package/templates/yoga-studio/l10n/no.json +10 -0
  332. package/templates/yoga-studio/l10n/pl.json +10 -0
  333. package/templates/yoga-studio/l10n/pt.json +10 -0
  334. package/templates/yoga-studio/l10n/ru.json +10 -0
  335. package/templates/yoga-studio/l10n/sv.json +10 -0
  336. package/templates/yoga-studio/l10n/th.json +10 -0
  337. package/templates/yoga-studio/l10n/tr.json +10 -0
  338. package/templates/yoga-studio/l10n/uk.json +10 -0
  339. package/templates/yoga-studio/l10n/vi.json +10 -0
  340. package/templates/yoga-studio/l10n/zh.json +10 -0
  341. package/templates/yoga-studio/tier5-src/_shared/himi-media.ts +6 -2
  342. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +18 -0
  343. package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +24 -4
  344. package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +3 -2
  345. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +48 -26
@@ -24,7 +24,7 @@ import { createCollectionQuery, type CollectionPage, type CollectionQueryState }
24
24
  import { memberAccess, memberAccessChanged, memberAccessDenied, type MemberAccess } from "./member-access.js";
25
25
  import { initials } from "./himi-text.js";
26
26
  import { isProgramDraft, isProgramEnded, programName } from "./program-fields.js";
27
- import { inProgram, PARTICIPANT_SCREEN, programScreenFor } from "./program-standing.js";
27
+ import { inProgram, owedStanding, PARTICIPANT_SCREEN, programScreenFor } from "./program-standing.js";
28
28
  import { programImage } from "./himi-media.js";
29
29
  import { descriptionBody } from "./rich-body.js";
30
30
  import { programDescription } from "./program-description.js";
@@ -39,7 +39,7 @@ const DETAIL_SCREEN = "himi_program";
39
39
  // ── Row model ────────────────────────────────────────────────────────────────
40
40
 
41
41
  /** The member's standing on one program — the One App participant/application states, folded. */
42
- export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "invited";
42
+ export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "unpaid" | "invited";
43
43
 
44
44
  /** A card as loaded, before pricing. */
45
45
  export interface ProgramContent {
@@ -189,9 +189,9 @@ function standingOf(p: WixProgram, participant: WixParticipant | undefined, appl
189
189
  // waits on the owner. Only an approval that still owes money asks the member to pay.
190
190
  if (payment === "NO_PAYMENT_REQUIRED" || payment === "PAYMENT_SUCCESSFUL") return application?.participantId ? "joined" : "pending";
191
191
  if (payment === "PENDING_OWNER_APPROVAL") return "pending";
192
- return "approved";
192
+ return owedStanding(payment, accessType(p));
193
193
  }
194
- if (status === "PAYMENT_PENDING") return "approved";
194
+ if (status === "PAYMENT_PENDING") return owedStanding("PAYMENT_PENDING", accessType(p));
195
195
  if (status === "INVITED") return "invited";
196
196
  return "none";
197
197
  }
@@ -203,6 +203,7 @@ const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback: string;
203
203
  suspended: { key: "memberPrograms.status.suspended", fallback: "Participation suspended", icon: "close", color: "warning" },
204
204
  pending: { key: "memberPrograms.status.pending", fallback: "Pending request", icon: "clock", color: "warning" },
205
205
  approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
206
+ unpaid: { key: "memberPrograms.status.unpaid", fallback: "Payment not completed", icon: "clock", color: "warning" },
206
207
  invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
207
208
  };
208
209
 
@@ -300,6 +301,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
300
301
  : standing === "finished" ? copyTemplate("memberPrograms.line.finished", "Finished with {pct}% progress", { pct: Math.round(progressOf(p, o.participant) * 100) })
301
302
  : standing === "pending" ? copyParam("memberPrograms.line.pending", "Join request sent")
302
303
  : standing === "approved" ? copyParam("memberPrograms.line.approved", "Request approved · complete your payment")
304
+ : standing === "unpaid" ? copyParam("memberPrograms.line.unpaid", "Payment not completed · complete your payment")
303
305
  : standing === "invited" ? copyParam("memberPrograms.line.invited", "You're invited to join")
304
306
  : standing === "suspended" ? copyParam("memberPrograms.line.suspended", "Your participation is paused")
305
307
  : "";
@@ -310,7 +312,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
310
312
  : display.card && joined ? copyParam("memberPrograms.action.continue", "Continue")
311
313
  : limitReached ? copyParam("memberPrograms.action.full", "Program is full")
312
314
  : joined || over || closed || standing === "pending" || standing === "invited" || standingUnknown ? copyParam("memberPrograms.action.view", "View")
313
- : standing === "approved" ? copyParam("memberPrograms.action.pay", "Complete payment")
315
+ : standing === "approved" || standing === "unpaid" ? copyParam("memberPrograms.action.pay", "Complete payment")
314
316
  : accessType(p) === "PRIVATE" ? copyParam("memberPrograms.action.request", "Request to join")
315
317
  // Invite-only: with no invitation there is nothing to join from here.
316
318
  : accessType(p) === "SECRET" ? copyParam("memberPrograms.action.view", "View")
@@ -456,8 +458,10 @@ export interface ProgramsSectionOptions {
456
458
  showDuration?: boolean;
457
459
  showParticipants?: boolean;
458
460
  showPrice?: boolean;
459
- /** Program ids promoted to the front, in this order (source `sortingSettings.ordering === "MANUAL"`). */
461
+ /** Program ids promoted to the front, in this order (source `sortingSettings.ordering === "MANUAL"`). Within the section's categories, when it has any. */
460
462
  order?: string[];
463
+ /** The categories the source section is scoped to (`categorySettings`): only their programs are listed, and the category filter offers only them. Absent: every program. */
464
+ categoryIds?: string[];
461
465
  /** carousel: the member's own participations only (the One App participant carousel). Signed out, empty or failed reads show nothing. */
462
466
  participating?: boolean;
463
467
  /** list: hide a filter the source section turns off. */
@@ -467,6 +471,22 @@ export interface ProgramsSectionOptions {
467
471
  inlineLimit?: number;
468
472
  }
469
473
 
474
+ /** A page cursor of this section: the API's own cursor plus the programs the manual order promoted to the first page. The promoted set belongs to
475
+ * the read that produced the cursor, so it travels with it (never in state shared by overlapping reads of the same criteria). The encoding carries
476
+ * its own prefix: an opaque API cursor is never taken for it, whatever its shape. */
477
+ const CURSOR_TAG = "himi-programs-cursor:";
478
+ function wrapCursor(apiCursor: string, promoted: ReadonlySet<string>): string {
479
+ return apiCursor && promoted.size ? CURSOR_TAG + JSON.stringify({ c: apiCursor, p: [...promoted] }) : apiCursor;
480
+ }
481
+ function unwrapCursor(cursor: string): { api: string; promoted: string[] } {
482
+ if (!cursor.startsWith(CURSOR_TAG)) return { api: cursor, promoted: [] };
483
+ try {
484
+ const wrapped = JSON.parse(cursor.slice(CURSOR_TAG.length)) as { c?: unknown; p?: unknown };
485
+ if (typeof wrapped.c === "string") return { api: wrapped.c, promoted: Array.isArray(wrapped.p) ? wrapped.p.filter((id): id is string => typeof id === "string") : [] };
486
+ } catch { /* not ours after all */ }
487
+ return { api: cursor, promoted: [] };
488
+ }
489
+
470
490
  const CAROUSEL_LIMIT = 5;
471
491
  const ORDER_LIMIT = 100;
472
492
 
@@ -480,12 +500,14 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
480
500
  const inlineLimit = !carousel && options.inlineLimit !== undefined && options.inlineLimit > 0 ? Math.min(PAGE_SIZE, Math.floor(options.inlineLimit)) : 0;
481
501
  // A promoted program is read by id, so it would bypass the member's participations: the participant carousel has no manual order.
482
502
  const order = (options.participating ? [] : options.order ?? []).filter((id) => typeof id === "string" && id).slice(0, ORDER_LIMIT);
483
- /** The promoted programs, in their configured order. A failed read promotes nothing: the default order stands. */
484
- async function promotedPrograms(): Promise<WixProgram[]> {
485
- if (!order.length) return [];
503
+ /** The section's own categories: its programs are the only ones listed, and the category filter offers only these. */
504
+ const sectionCategories = (options.categoryIds ?? []).filter((id) => typeof id === "string" && id);
505
+ /** The promoted programs, in their configured order, among those the section lists (`scope`: its status, category and, for the joined view, participation filter). A failed read promotes nothing: the default order stands. */
506
+ async function promotedPrograms(scope: Record<string, unknown>, ids: string[]): Promise<WixProgram[]> {
507
+ if (!ids.length) return [];
486
508
  try {
487
- const response = await queryPrograms({ filter: { id: { $in: order }, status: { $in: ["PUBLISHED", "ENDED"] } }, cursorPaging: { limit: order.length } });
488
- const rank = new Map(order.map((id, index) => [id, index]));
509
+ const response = await queryPrograms({ filter: { ...scope, id: { $in: ids } }, cursorPaging: { limit: ids.length } });
510
+ const rank = new Map(ids.map((id, index) => [id, index]));
489
511
  return (response.programs ?? []).filter((p) => rank.has(p.id)).sort((a, b) => (rank.get(a.id) ?? 0) - (rank.get(b.id) ?? 0));
490
512
  } catch { return []; }
491
513
  }
@@ -494,7 +516,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
494
516
  async function loadCategories(): Promise<void> {
495
517
  try {
496
518
  const response = await listProgramCategories();
497
- categories = (response.categories ?? []).filter((c) => c.id && c.label);
519
+ categories = (response.categories ?? []).filter((c) => c.id && c.label && (!sectionCategories.length || sectionCategories.includes(c.id)));
498
520
  categoriesFailed = false;
499
521
  // A picked category the site no longer has would keep the query filtered behind a hidden control.
500
522
  if (categoryId && !categories.some((c) => c.id === categoryId)) categoryId = "";
@@ -513,7 +535,6 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
513
535
  let statusFilter: "all" | "joined" = options.participating ? "joined" : "all";
514
536
  let categoryId = "";
515
537
  let pageScope: Scope | undefined;
516
-
517
538
  async function fetchPage(filter: string, cursor: string): Promise<CollectionPage<ProgramContent>> {
518
539
  const scope = await resolveScope();
519
540
  if (cursor && (!pageScope || !sameScope(pageScope, scope))) throw memberAccessChanged();
@@ -525,15 +546,27 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
525
546
  const category = picked && categories && !categories.some((c) => c.id === picked) ? "" : picked;
526
547
  const { map: participations, complete: participationsKnown } = await participationsFor(scope, !cursor, status === "joined");
527
548
  const programFilter: Record<string, unknown> = { status: { $in: ["PUBLISHED", "ENDED"] } };
528
- if (category) programFilter.categoryIds = { $hasSome: [category] };
549
+ // A picked chip is one of the section's own categories (the chips offer no others), so it narrows the section's scope.
550
+ const scopedCategories = category ? [category] : sectionCategories;
551
+ if (scopedCategories.length) programFilter.categoryIds = { $hasSome: scopedCategories };
529
552
  if (status === "joined") {
530
553
  if (!participations.size) return { items: [], nextCursor: "", metadata };
531
554
  programFilter.id = { $in: [...participations.keys()] };
532
555
  }
533
556
  // A page whose every program is dropped (ended and never joined) would leave the list hidden with
534
557
  // nothing on screen to call loadMore, so read on until a page has rows or the catalog ends.
535
- let pageCursor = cursor;
536
- const promoted = carousel && !cursor ? await promotedPrograms() : [];
558
+ // The API cursor, and the programs the manual order promoted to the first page: the cursor carries them (`wrapCursor`), so the pages after
559
+ // the first skip exactly what the read that produced them promoted, whatever other reads of the same criteria are still in flight.
560
+ const carried = unwrapCursor(cursor);
561
+ let pageCursor = carried.api;
562
+ let promotedFirst: WixProgram[] = [];
563
+ const promotedIds = new Set<string>(carried.promoted);
564
+ // The first page leads with the manual order (a carousel or an inline list shows nothing but that page). The joined view promotes the ordered
565
+ // programs the member joined: the participant query already holds only those.
566
+ if (!cursor) {
567
+ promotedFirst = await promotedPrograms(programFilter, status === "joined" ? order.filter((id) => participations.has(id)) : order);
568
+ for (const p of promotedFirst) promotedIds.add(p.id);
569
+ }
537
570
  for (let read = 0; ; read++) {
538
571
  // A cursor page carries only the cursor — it already encodes the filter and sort — as the
539
572
  // participants query of the same service does.
@@ -542,8 +575,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
542
575
  : { filter: programFilter, sort: [{ fieldName: "createdDate", order: "DESC" }], cursorPaging: { limit: PAGE_SIZE } });
543
576
  const after = await resolveScope();
544
577
  if (!sameScope(scope, after)) throw memberAccessChanged();
545
- const promotedIds = new Set(promoted.map((p) => p.id));
546
- const visible = [...promoted, ...(response.programs ?? []).filter((p) => !promotedIds.has(p.id))].filter((p) => p.id && !isDraft(p))
578
+ const visible = [...promotedFirst, ...(response.programs ?? []).filter((p) => !promotedIds.has(p.id))].filter((p) => p.id && !isDraft(p))
547
579
  // An ended program the member never joined is not theirs to see (the One App's visibility rule) —
548
580
  // applied only when the member's participations are known, so a degraded read hides nothing they joined.
549
581
  .filter((p) => !isEnded(p) || participations.has(p.id) || !participationsKnown);
@@ -569,7 +601,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
569
601
  // A revalidating load publishes nothing until it settles, so page 1 records the scope its later pages
570
602
  // are read under here, not only from the published snapshot.
571
603
  if (!cursor) pageScope = scope;
572
- return { items, nextCursor, metadata };
604
+ return { items, nextCursor: wrapCursor(nextCursor, promotedIds), metadata };
573
605
  }
574
606
  }
575
607
  /** How many all-dropped pages one fetch reads, in all, before it ends the list. */
@@ -647,7 +679,8 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
647
679
  // filter switch or a refresh reloads, so the control never flickers away under the finger.
648
680
  hideStatusFilter: options.filters?.status === false || (!member && statusFilter !== "joined"),
649
681
  categoryId, categoryChips,
650
- hideCategoryFilter: options.filters?.category === false || categoriesFailed || !categories || categories.length === 0,
682
+ // One category chosen in the section is the whole list: choosing among one is not a filter.
683
+ hideCategoryFilter: options.filters?.category === false || categoriesFailed || !categories || categories.length === 0 || sectionCategories.length === 1,
651
684
  // See all only for an inline (limited) list that has programs past the cards it shows.
652
685
  noSeeAll: !(inlineLimit && status === "ready" && meta.more === true),
653
686
  hidePriceRetry: status !== "ready" || !views.some((view) => view && view.route !== "disabled" && (scopeIncomplete || view.retryable)),
@@ -175,7 +175,7 @@ function daysBetween(fromIso: string, now: number): number {
175
175
  // ── Member standing ──────────────────────────────────────────────────────────
176
176
 
177
177
  const standingOf = (p: WixProgram, participant: WixParticipant | undefined, application: WixJoinApplication | undefined): Standing =>
178
- sharedStandingOf(isEnded(p), participant, application);
178
+ sharedStandingOf(isEnded(p), participant, application, accessType(p));
179
179
 
180
180
  function timelineLine(p: WixProgram, participant: WixParticipant | undefined, standing: Standing, now: number): string {
181
181
  const timeline = full(p).timeline;
@@ -256,6 +256,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
256
256
  : standing === "finished" ? copyTemplate("memberPrograms.line.finished", "Finished with {pct}% progress", { pct: Math.round(progressOf(p, o.participant) * 100) })
257
257
  : standing === "pending" ? copyParam("memberPrograms.line.pending", "Join request sent")
258
258
  : standing === "approved" ? copyParam("memberPrograms.line.approved", "Request approved · complete your payment")
259
+ : standing === "unpaid" ? copyParam("memberPrograms.line.unpaid", "Payment not completed · complete your payment")
259
260
  : standing === "invited" ? copyParam("memberPrograms.line.invited", "You're invited to join")
260
261
  : standing === "suspended" ? copyParam("memberPrograms.line.suspended", "Your participation is paused")
261
262
  : "";
@@ -263,7 +264,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
263
264
  const actionLabel = !o.member ? copyParam("memberPrograms.action.view", "View")
264
265
  : limitReached ? copyParam("memberPrograms.action.full", "Program is full")
265
266
  : joined || over || closed || standing === "pending" || standing === "invited" || standingUnknown ? copyParam("memberPrograms.action.view", "View")
266
- : standing === "approved" ? copyParam("memberPrograms.action.pay", "Complete payment")
267
+ : standing === "approved" || standing === "unpaid" ? copyParam("memberPrograms.action.pay", "Complete payment")
267
268
  : accessType(p) === "PRIVATE" ? copyParam("memberPrograms.action.request", "Request to join")
268
269
  // Invite-only: with no invitation there is nothing to join from here.
269
270
  : accessType(p) === "SECRET" ? copyParam("memberPrograms.action.view", "View")
@@ -32,6 +32,7 @@ import { programDescription } from "../_shared/program-description.js";
32
32
  import { openRichLink } from "../_shared/rich-content-link.js";
33
33
  import {
34
34
  cancelJoinApplication,
35
+ getCurrentJoinApplication,
35
36
  getProgram,
36
37
  joinProgram,
37
38
  payableIdOf,
@@ -45,7 +46,8 @@ import {
45
46
  type WixProgramFull,
46
47
  } from "@himalaya/wix-online-programs";
47
48
  import { inProgram, standingOf, STATUS, type Standing } from "../_shared/program-standing.js";
48
- import { createRedirectSession } from "@himalaya/wix-redirects";
49
+ import { programSitePage } from "../_shared/program-fields.js";
50
+ import { open as openUrl } from "@himalaya/open-url";
49
51
  import { getMyMember } from "@himalaya/wix-members";
50
52
  import { session as wixPlatformSession, i18n } from "@himalaya/wix-platform";
51
53
  import { programFacts, type ProgramFact } from "./facts.js";
@@ -219,12 +221,15 @@ async function fetchProgram(id: string): Promise<WixProgram | undefined> {
219
221
  * payment): a price refresh can move the program onto a route this flow must not charge. */
220
222
  interface CommerceGuards {
221
223
  withdrawnParticipantId?: string;
224
+ /** The screen reads this program as unpaid: an application the join refuses as not approved is still
225
+ * the member's to pay for on the site. */
226
+ unpaid?: boolean;
222
227
  assertMember(): Promise<void>;
223
228
  mayStart(): boolean;
224
229
  mayContinue(): boolean;
225
230
  }
226
231
 
227
- async function enrollmentMessage(id: string, name: string, guards: CommerceGuards): Promise<string> {
232
+ async function enrollmentMessage(id: string, name: string, sitePage: string, guards: CommerceGuards): Promise<string> {
228
233
  const blocked = () => iapPriceCopy("program").purchaseUnavailable;
229
234
  if (!guards.mayStart()) return blocked();
230
235
  let preparationWithdrawn = false;
@@ -261,36 +266,44 @@ async function enrollmentMessage(id: string, name: string, guards: CommerceGuard
261
266
  snapshotId: payable,
262
267
  msid,
263
268
  mayCharge: stillAllowed,
264
- // Wallet-less apps need a rail too. Without this thunk a paid program was
265
- // unpayable on any app with no provisioned wallet — `payCashierOrder`
266
- // returned `failed` and the CTA fell through to the site-directing message,
267
- // which is precisely the dead-end the two-rail design exists to prevent
268
- // (and which the cart/plans/events flows each guard with a test).
269
- //
270
- // Join Applications returns a Wix Payments order id; the payment-request
271
- // redirect uses that same order handle on the hosted rail.
269
+ // The hosted rail for a wallet-less app is the program's own page on the site. Join Applications
270
+ // prepares a Wix Payments (cashier) order, and no hosted Wix page takes that order: it is not an
271
+ // eCom order, so the Redirects API's `ecomOrderPaymentRequest` answers "Pay link not found" for it,
272
+ // and the Redirects API has no Online Programs checkout. The site's program page joins and pays
273
+ // the way the site takes the order. No page named → no rail, and the site-directing message below.
272
274
  cashierUrl: async () => {
273
275
  await guards.assertMember();
274
276
  if (!stillAllowed()) return undefined;
275
- const redirect = await createRedirectSession({
276
- ecomOrderPaymentRequest: { paymentRequestId: payable },
277
- callbacks: { postFlowUrl: "himalaya-himi-branded-lite://screen/himi_programs" },
278
- });
279
- return redirect.redirectSession?.fullUrl;
277
+ return sitePage || undefined;
280
278
  },
281
279
  });
282
280
  if (withdrawn) return blocked();
283
281
  if (pay.kind === "paid") return pay.pending
284
282
  ? copyParam("program.paymentPendingMessage", "Payment is processing — enrollment will be confirmed after payment.")
285
283
  : copyTemplate("program.joinedMessage", "You're enrolled in {name}.", { name });
286
- if (pay.kind === "handoff") return "";
284
+ // The site's page opened: the member finishes joining and pays there.
285
+ if (pay.kind === "handoff") return copyTemplate("program.continueOnSiteMessage", "Finish joining {name} on the site.", { name });
287
286
  if (pay.kind === "cancelled") return copyParam("program.joinCancelledMessage", "Payment cancelled — you haven't enrolled.");
288
287
  if (isPaymentSetupFailure(pay)) return paymentSetupMessage("program");
289
288
  } catch (error) {
290
289
  if (!connectivity().online) return offlineWriteMessage;
291
290
  if (preparationWithdrawn) return blocked();
292
291
  if (isPaymentSetupFailure(error)) return paymentSetupMessage("program");
293
- // fall through to the site-directing message
292
+ // An unpaid application the join cannot pay for in the app (its status is PAYMENT_PENDING, not
293
+ // APPROVED) is still the member's to finish on the site: open the program's own page there. The
294
+ // join refuses a declined or suspended application with the same code, so the current application
295
+ // is read again first: only one still PAYMENT_PENDING hands off.
296
+ const code = (error as { code?: unknown } | null)?.code;
297
+ if (code === "join_application_not_approved" && guards.unpaid && sitePage) {
298
+ try {
299
+ await guards.assertMember();
300
+ const current = (await getCurrentJoinApplication(id)).joinApplication;
301
+ const stillUnpaid = current?.programId === id && (current.status ?? "").toUpperCase() === "PAYMENT_PENDING";
302
+ if (stillUnpaid && guards.mayContinue() && (await openUrl(sitePage, "in_app_browser")).opened) {
303
+ return copyTemplate("program.continueOnSiteMessage", "Finish joining {name} on the site.", { name });
304
+ }
305
+ } catch { /* the site-directing message below */ }
306
+ }
294
307
  }
295
308
  return copyTemplate("program.joinOnSiteMessage", "Enrolment happens on the website — visit the site to join {name}.", { name });
296
309
  }
@@ -338,8 +351,15 @@ let cancellationReconciliation: (CancelledApplication & { afterSeq: number; conf
338
351
  let standingSeq = 0;
339
352
  let latestStandingRead: { programId: string; seq: number; promise: Promise<StandingRead | undefined> } | undefined;
340
353
  let programEnded = false;
341
- let programPrivate = false;
342
- let programSecret = false;
354
+ /** `restrictions.accessType` of the program [id] (absent = PUBLIC, as Wix reads it): it gates enrolment
355
+ * and tells an unpaid public join from an approved request. Keyed, so a failed reload of another program
356
+ * never lends it this one's access. */
357
+ let programAccess = { id: "", access: "" };
358
+ const accessOf = (id: string): string => programAccess.id === id ? programAccess.access : "";
359
+ const programPrivate = (): boolean => accessOf(inputId()) === "PRIVATE";
360
+ const programSecret = (): boolean => accessOf(inputId()) === "SECRET";
361
+ /** The loaded program's own page on the site, the rail a wallet-less app pays on ("" when Wix names none). */
362
+ let programSite = { id: "", url: "" };
343
363
  let cancelInFlight = false;
344
364
  // Presentation dedupe only. The host remains the sole authority to resume a join.
345
365
  let openedAuthToken = "";
@@ -383,8 +403,8 @@ async function load(state: State, arg?: unknown): Promise<undefined> {
383
403
  if (seq !== loadSeq || inputId() !== id) return undefined;
384
404
  content = found ? contentOf(ready(state, found.program, locale)) : { ...content, status: "error" };
385
405
  programEnded = found?.program ? programIsEnded(found.program) : false;
386
- programPrivate = ((found?.program as WixProgramFull | undefined)?.restrictions?.accessType ?? "").toUpperCase() === "PRIVATE";
387
- programSecret = ((found?.program as WixProgramFull | undefined)?.restrictions?.accessType ?? "").toUpperCase() === "SECRET";
406
+ if (found?.program) programAccess = { id, access: ((found.program as WixProgramFull).restrictions?.accessType || "PUBLIC").toUpperCase() };
407
+ programSite = { id, url: found?.program ? programSitePage(found.program) : "" };
388
408
  // A first load can paint content before standing; a warm refresh keeps its owned view.
389
409
  // Initial pricing remains guarded until the standing read below settles.
390
410
  if (state.status !== "ready") void svc.pricingPublish();
@@ -489,7 +509,8 @@ async function readStanding(id: string, seq: number): Promise<StandingRead | und
489
509
  }
490
510
  sameCancelledStanding = cancelledRow && !participant;
491
511
  feedbackKnown ||= applicationKnown || !!participant;
492
- next = standingOf(programEnded, participant ?? scoped[0], application);
512
+ // An unknown access type (no program read for this id) keeps the old reading: "approved".
513
+ next = standingOf(programEnded, participant ?? scoped[0], application, accessOf(id) || "UNKNOWN");
493
514
  nextInProgram = inProgram(next, participant);
494
515
  if (next !== "none") owner = member;
495
516
  if (failedFeedback && (applicationKnown || participant)) {
@@ -709,8 +730,9 @@ async function enroll(afterAuthAccount = "", targetId = inputId()): Promise<unde
709
730
  }
710
731
  // joinProgram refreshes the current Join Application before creating anything. Its
711
732
  // existing-participant/private/paid and pending-payment guards remain authoritative.
712
- const message = await enrollmentMessage(id, content.name, {
733
+ const message = await enrollmentMessage(id, content.name, programSite.id === id ? programSite.url : "", {
713
734
  withdrawnParticipantId: rejoinParticipantId || undefined,
735
+ unpaid: standingForInput() && standing === "unpaid",
714
736
  assertMember: async () => {
715
737
  await assertMemberAccess(member);
716
738
  if (id !== inputId()) throw new Error("Program changed");
@@ -745,11 +767,11 @@ async function buy(): Promise<undefined> {
745
767
  return undefined;
746
768
  }
747
769
 
748
- const canEnrol = (value: Standing): boolean => !programEnded && ((value === "none" && !programSecret) || value === "approved");
770
+ const canEnrol = (value: Standing): boolean => !programEnded && ((value === "none" && !programSecret()) || value === "approved" || value === "unpaid");
749
771
 
750
772
  function enrollLabelFor(value: Standing): string {
751
- return value === "approved" ? copyParam("memberPrograms.action.pay", "Complete payment")
752
- : programPrivate ? copyParam("memberPrograms.action.request", "Request to join")
773
+ return value === "approved" || value === "unpaid" ? copyParam("memberPrograms.action.pay", "Complete payment")
774
+ : programPrivate() ? copyParam("memberPrograms.action.request", "Request to join")
753
775
  : copyParam("program.enrolCta", "Enrol");
754
776
  }
755
777
 
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "تم تسجيل الدخول باسم {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "لم تكتمل عملية الدفع",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "مكتمل",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Přihlášeni jako {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Platba nebyla dokončena",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Dokončeno",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Logget ind som {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Betalingen er ikke gennemført",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Gennemført",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Angemeldet als {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Zahlung nicht abgeschlossen",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Abgeschlossen",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Σύνδεση ως {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Η πληρωμή δεν ολοκληρώθηκε",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Ολοκληρώθηκε",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Sesión iniciada como {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Pago no completado",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Completado",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Kirjautunut sähköpostilla {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Maksua ei suoritettu loppuun",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Valmis",
@@ -2216,6 +2216,11 @@
2216
2216
  "translation": "Connecté(e) en tant que {email}",
2217
2217
  "origin": "machine"
2218
2218
  },
2219
+ "h_21fd7cb6e40c": {
2220
+ "source": "Payment not completed",
2221
+ "translation": "Paiement non finalisé",
2222
+ "origin": "machine"
2223
+ },
2219
2224
  "h_1798b3ba42ee": {
2220
2225
  "source": "Completed",
2221
2226
  "translation": "Terminé",
@@ -1834,6 +1834,10 @@
1834
1834
  "source": "Signed in as {email}",
1835
1835
  "translation": "מחובר/ת בתור {email}"
1836
1836
  },
1837
+ "h_21fd7cb6e40c": {
1838
+ "source": "Payment not completed",
1839
+ "translation": "התשלום לא הושלם"
1840
+ },
1837
1841
  "h_1798b3ba42ee": {
1838
1842
  "source": "Completed",
1839
1843
  "translation": "הושלמה"
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Bejelentkezve mint {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "A fizetés nem fejeződött be",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Befejezve",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Login sebagai {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Pembayaran belum selesai",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Lengkap",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Accesso effettuato come {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Pagamento non completato",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Completato",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "{email}でログイン中",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "支払いが完了していません",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "完了",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "{email}(으)로 로그인됨",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "결제가 완료되지 않았습니다",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "완료",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Prisijungta kaip {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Mokėjimas neužbaigtas",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Baigta",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Ingelogd als {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Betaling niet voltooid",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Voltooid",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Logget inn som {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Betalingen er ikke fullført",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Fullført",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Zalogowano jako {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Płatność nie została ukończona",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Ukończone",
@@ -2236,6 +2236,11 @@
2236
2236
  "translation": "Conectado como {email}",
2237
2237
  "origin": "machine"
2238
2238
  },
2239
+ "h_21fd7cb6e40c": {
2240
+ "source": "Payment not completed",
2241
+ "translation": "Pagamento não concluído",
2242
+ "origin": "machine"
2243
+ },
2239
2244
  "h_1798b3ba42ee": {
2240
2245
  "source": "Completed",
2241
2246
  "translation": "Concluído",