@wix/himalaya-cli 0.1767.0 → 0.1769.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 (467) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +7 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +9 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin → 7977d7340513225ef7609b9983b621e2b48c10deb7427e059e595d2fc66f7983.bin} +1 -1
  8. package/dist/browser-plane/sw.js +8 -8
  9. package/dist/cli.mjs +234 -89
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/capabilities.md +6 -4
  12. package/guides/component-reference.json +1 -1
  13. package/guides/component-reference.md +4 -0
  14. package/guides/himi-json-output.md +19 -7
  15. package/guides/one-app-to-himi-app.md +19 -9
  16. package/guides/qa-builds.md +73 -84
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/l10n/ar.json +45 -0
  19. package/templates/beauty-salon/l10n/cs.json +45 -0
  20. package/templates/beauty-salon/l10n/da.json +45 -0
  21. package/templates/beauty-salon/l10n/de.json +45 -0
  22. package/templates/beauty-salon/l10n/el.json +45 -0
  23. package/templates/beauty-salon/l10n/en.json +1 -1
  24. package/templates/beauty-salon/l10n/es.json +45 -0
  25. package/templates/beauty-salon/l10n/fi.json +45 -0
  26. package/templates/beauty-salon/l10n/fr.json +45 -0
  27. package/templates/beauty-salon/l10n/he.json +36 -0
  28. package/templates/beauty-salon/l10n/hu.json +45 -0
  29. package/templates/beauty-salon/l10n/id.json +45 -0
  30. package/templates/beauty-salon/l10n/it.json +45 -0
  31. package/templates/beauty-salon/l10n/ja.json +45 -0
  32. package/templates/beauty-salon/l10n/ko.json +45 -0
  33. package/templates/beauty-salon/l10n/lt.json +45 -0
  34. package/templates/beauty-salon/l10n/nl.json +45 -0
  35. package/templates/beauty-salon/l10n/no.json +45 -0
  36. package/templates/beauty-salon/l10n/pl.json +45 -0
  37. package/templates/beauty-salon/l10n/pt.json +45 -0
  38. package/templates/beauty-salon/l10n/ru.json +45 -0
  39. package/templates/beauty-salon/l10n/sv.json +45 -0
  40. package/templates/beauty-salon/l10n/th.json +45 -0
  41. package/templates/beauty-salon/l10n/tr.json +45 -0
  42. package/templates/beauty-salon/l10n/uk.json +45 -0
  43. package/templates/beauty-salon/l10n/vi.json +45 -0
  44. package/templates/beauty-salon/l10n/zh.json +45 -0
  45. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  46. package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +20 -4
  47. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +6 -0
  48. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
  49. package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +67 -0
  50. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +56 -12
  51. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +5 -0
  52. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +6 -0
  53. package/templates/branded-lite/config.ts +11 -1
  54. package/templates/branded-lite/dev/index.ts +1088 -86
  55. package/templates/branded-lite/himalaya.content.json +3 -0
  56. package/templates/branded-lite/l10n/ar.json +259 -0
  57. package/templates/branded-lite/l10n/cs.json +259 -0
  58. package/templates/branded-lite/l10n/da.json +259 -0
  59. package/templates/branded-lite/l10n/de.json +259 -0
  60. package/templates/branded-lite/l10n/el.json +259 -0
  61. package/templates/branded-lite/l10n/en.json +65 -2
  62. package/templates/branded-lite/l10n/es.json +259 -0
  63. package/templates/branded-lite/l10n/fi.json +259 -0
  64. package/templates/branded-lite/l10n/fr.json +259 -0
  65. package/templates/branded-lite/l10n/he.json +209 -0
  66. package/templates/branded-lite/l10n/hu.json +259 -0
  67. package/templates/branded-lite/l10n/id.json +259 -0
  68. package/templates/branded-lite/l10n/it.json +259 -0
  69. package/templates/branded-lite/l10n/ja.json +259 -0
  70. package/templates/branded-lite/l10n/ko.json +259 -0
  71. package/templates/branded-lite/l10n/lt.json +259 -0
  72. package/templates/branded-lite/l10n/nl.json +259 -0
  73. package/templates/branded-lite/l10n/no.json +259 -0
  74. package/templates/branded-lite/l10n/pl.json +259 -0
  75. package/templates/branded-lite/l10n/pt.json +259 -0
  76. package/templates/branded-lite/l10n/ru.json +259 -0
  77. package/templates/branded-lite/l10n/sv.json +259 -0
  78. package/templates/branded-lite/l10n/th.json +259 -0
  79. package/templates/branded-lite/l10n/tr.json +259 -0
  80. package/templates/branded-lite/l10n/uk.json +259 -0
  81. package/templates/branded-lite/l10n/vi.json +259 -0
  82. package/templates/branded-lite/l10n/zh.json +259 -0
  83. package/templates/branded-lite/recipes/programs-card.json +2 -2
  84. package/templates/branded-lite/recipes/programs-carousel.json +2 -2
  85. package/templates/branded-lite/recipes/programs-participant-carousel.json +2 -2
  86. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  87. package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +20 -4
  88. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +6 -0
  89. package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +101 -11
  90. package/templates/branded-lite/tier5-src/_shared/inbox-search.ts +119 -0
  91. package/templates/branded-lite/tier5-src/_shared/member-inbox-transport.ts +64 -0
  92. package/templates/branded-lite/tier5-src/_shared/member-thread-rows.ts +233 -0
  93. package/templates/branded-lite/tier5-src/_shared/program-standing.ts +21 -0
  94. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +8 -4
  95. package/templates/branded-lite/tier5-src/business-chat/index.ts +73 -22
  96. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +56 -12
  97. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +5 -0
  98. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
  99. package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  100. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +17 -3
  101. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
  102. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
  103. package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
  104. package/templates/branded-lite/tier5-src/wix-spaces-new-message/index.ts +4 -2
  105. package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  106. package/templates/brandy/tier5-src/_shared/business-chat-message-model.ts +177 -0
  107. package/templates/brandy/tier5-src/_shared/business-chat-transport.ts +164 -0
  108. package/templates/brandy/tier5-src/_shared/engine-intl.ts +6 -0
  109. package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +101 -11
  110. package/templates/brandy/tier5-src/_shared/inbox-search.ts +119 -0
  111. package/templates/brandy/tier5-src/_shared/member-inbox-transport.ts +64 -0
  112. package/templates/brandy/tier5-src/_shared/member-thread-rows.ts +233 -0
  113. package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
  114. package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
  115. package/templates/community-club/l10n/ar.json +30 -0
  116. package/templates/community-club/l10n/cs.json +30 -0
  117. package/templates/community-club/l10n/da.json +30 -0
  118. package/templates/community-club/l10n/de.json +30 -0
  119. package/templates/community-club/l10n/el.json +30 -0
  120. package/templates/community-club/l10n/en.json +2 -2
  121. package/templates/community-club/l10n/es.json +30 -0
  122. package/templates/community-club/l10n/fi.json +30 -0
  123. package/templates/community-club/l10n/fr.json +30 -0
  124. package/templates/community-club/l10n/he.json +24 -0
  125. package/templates/community-club/l10n/hu.json +30 -0
  126. package/templates/community-club/l10n/id.json +30 -0
  127. package/templates/community-club/l10n/it.json +30 -0
  128. package/templates/community-club/l10n/ja.json +30 -0
  129. package/templates/community-club/l10n/ko.json +30 -0
  130. package/templates/community-club/l10n/lt.json +30 -0
  131. package/templates/community-club/l10n/nl.json +30 -0
  132. package/templates/community-club/l10n/no.json +30 -0
  133. package/templates/community-club/l10n/pl.json +30 -0
  134. package/templates/community-club/l10n/pt.json +30 -0
  135. package/templates/community-club/l10n/ru.json +30 -0
  136. package/templates/community-club/l10n/sv.json +30 -0
  137. package/templates/community-club/l10n/th.json +30 -0
  138. package/templates/community-club/l10n/tr.json +30 -0
  139. package/templates/community-club/l10n/uk.json +30 -0
  140. package/templates/community-club/l10n/vi.json +30 -0
  141. package/templates/community-club/l10n/zh.json +30 -0
  142. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  143. package/templates/community-club/tier5-src/_shared/engine-intl.ts +6 -0
  144. package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
  145. package/templates/community-club/tier5-src/_shared/program-standing.ts +67 -0
  146. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +5 -0
  147. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +6 -0
  148. package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  149. package/templates/conference/tier5-src/_shared/business-chat-transport.ts +20 -4
  150. package/templates/conference/tier5-src/_shared/chat-live.ts +242 -0
  151. package/templates/conference/tier5-src/_shared/engine-intl.ts +6 -0
  152. package/templates/conference/tier5-src/_shared/inbox-rooms.ts +101 -11
  153. package/templates/conference/tier5-src/business-chat/index.ts +73 -22
  154. package/templates/events-meetups/l10n/ar.json +30 -0
  155. package/templates/events-meetups/l10n/cs.json +30 -0
  156. package/templates/events-meetups/l10n/da.json +30 -0
  157. package/templates/events-meetups/l10n/de.json +30 -0
  158. package/templates/events-meetups/l10n/el.json +30 -0
  159. package/templates/events-meetups/l10n/en.json +1 -1
  160. package/templates/events-meetups/l10n/es.json +30 -0
  161. package/templates/events-meetups/l10n/fi.json +30 -0
  162. package/templates/events-meetups/l10n/fr.json +30 -0
  163. package/templates/events-meetups/l10n/he.json +24 -0
  164. package/templates/events-meetups/l10n/hu.json +30 -0
  165. package/templates/events-meetups/l10n/id.json +30 -0
  166. package/templates/events-meetups/l10n/it.json +30 -0
  167. package/templates/events-meetups/l10n/ja.json +30 -0
  168. package/templates/events-meetups/l10n/ko.json +30 -0
  169. package/templates/events-meetups/l10n/lt.json +30 -0
  170. package/templates/events-meetups/l10n/nl.json +30 -0
  171. package/templates/events-meetups/l10n/no.json +30 -0
  172. package/templates/events-meetups/l10n/pl.json +30 -0
  173. package/templates/events-meetups/l10n/pt.json +30 -0
  174. package/templates/events-meetups/l10n/ru.json +30 -0
  175. package/templates/events-meetups/l10n/sv.json +30 -0
  176. package/templates/events-meetups/l10n/th.json +30 -0
  177. package/templates/events-meetups/l10n/tr.json +30 -0
  178. package/templates/events-meetups/l10n/uk.json +30 -0
  179. package/templates/events-meetups/l10n/vi.json +30 -0
  180. package/templates/events-meetups/l10n/zh.json +30 -0
  181. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  182. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +6 -0
  183. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
  184. package/templates/events-meetups/tier5-src/_shared/program-standing.ts +67 -0
  185. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +5 -0
  186. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +6 -0
  187. package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  188. package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +20 -4
  189. package/templates/fitness-gym/tier5-src/_shared/chat-live.ts +242 -0
  190. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +6 -0
  191. package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +101 -11
  192. package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +21 -0
  193. package/templates/fitness-gym/tier5-src/business-chat/index.ts +73 -22
  194. package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +56 -12
  195. package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  196. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +17 -3
  197. package/templates/gym-fitness/l10n/ar.json +45 -0
  198. package/templates/gym-fitness/l10n/cs.json +45 -0
  199. package/templates/gym-fitness/l10n/da.json +45 -0
  200. package/templates/gym-fitness/l10n/de.json +45 -0
  201. package/templates/gym-fitness/l10n/el.json +45 -0
  202. package/templates/gym-fitness/l10n/en.json +1 -1
  203. package/templates/gym-fitness/l10n/es.json +45 -0
  204. package/templates/gym-fitness/l10n/fi.json +45 -0
  205. package/templates/gym-fitness/l10n/fr.json +45 -0
  206. package/templates/gym-fitness/l10n/he.json +36 -0
  207. package/templates/gym-fitness/l10n/hu.json +45 -0
  208. package/templates/gym-fitness/l10n/id.json +45 -0
  209. package/templates/gym-fitness/l10n/it.json +45 -0
  210. package/templates/gym-fitness/l10n/ja.json +45 -0
  211. package/templates/gym-fitness/l10n/ko.json +45 -0
  212. package/templates/gym-fitness/l10n/lt.json +45 -0
  213. package/templates/gym-fitness/l10n/nl.json +45 -0
  214. package/templates/gym-fitness/l10n/no.json +45 -0
  215. package/templates/gym-fitness/l10n/pl.json +45 -0
  216. package/templates/gym-fitness/l10n/pt.json +45 -0
  217. package/templates/gym-fitness/l10n/ru.json +45 -0
  218. package/templates/gym-fitness/l10n/sv.json +45 -0
  219. package/templates/gym-fitness/l10n/th.json +45 -0
  220. package/templates/gym-fitness/l10n/tr.json +45 -0
  221. package/templates/gym-fitness/l10n/uk.json +45 -0
  222. package/templates/gym-fitness/l10n/vi.json +45 -0
  223. package/templates/gym-fitness/l10n/zh.json +45 -0
  224. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  225. package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +20 -4
  226. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +6 -0
  227. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
  228. package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +67 -0
  229. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +56 -12
  230. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +5 -0
  231. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +6 -0
  232. package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  233. package/templates/medical-services/tier5-src/_shared/business-chat-transport.ts +20 -4
  234. package/templates/medical-services/tier5-src/_shared/chat-live.ts +242 -0
  235. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +6 -0
  236. package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +101 -11
  237. package/templates/medical-services/tier5-src/business-chat/index.ts +73 -22
  238. package/templates/medical-services/tier5-src/himi-booking-time/index.ts +56 -12
  239. package/templates/nonprofit-cause/l10n/ar.json +30 -0
  240. package/templates/nonprofit-cause/l10n/cs.json +30 -0
  241. package/templates/nonprofit-cause/l10n/da.json +30 -0
  242. package/templates/nonprofit-cause/l10n/de.json +30 -0
  243. package/templates/nonprofit-cause/l10n/el.json +30 -0
  244. package/templates/nonprofit-cause/l10n/en.json +1 -1
  245. package/templates/nonprofit-cause/l10n/es.json +30 -0
  246. package/templates/nonprofit-cause/l10n/fi.json +30 -0
  247. package/templates/nonprofit-cause/l10n/fr.json +30 -0
  248. package/templates/nonprofit-cause/l10n/he.json +24 -0
  249. package/templates/nonprofit-cause/l10n/hu.json +30 -0
  250. package/templates/nonprofit-cause/l10n/id.json +30 -0
  251. package/templates/nonprofit-cause/l10n/it.json +30 -0
  252. package/templates/nonprofit-cause/l10n/ja.json +30 -0
  253. package/templates/nonprofit-cause/l10n/ko.json +30 -0
  254. package/templates/nonprofit-cause/l10n/lt.json +30 -0
  255. package/templates/nonprofit-cause/l10n/nl.json +30 -0
  256. package/templates/nonprofit-cause/l10n/no.json +30 -0
  257. package/templates/nonprofit-cause/l10n/pl.json +30 -0
  258. package/templates/nonprofit-cause/l10n/pt.json +30 -0
  259. package/templates/nonprofit-cause/l10n/ru.json +30 -0
  260. package/templates/nonprofit-cause/l10n/sv.json +30 -0
  261. package/templates/nonprofit-cause/l10n/th.json +30 -0
  262. package/templates/nonprofit-cause/l10n/tr.json +30 -0
  263. package/templates/nonprofit-cause/l10n/uk.json +30 -0
  264. package/templates/nonprofit-cause/l10n/vi.json +30 -0
  265. package/templates/nonprofit-cause/l10n/zh.json +30 -0
  266. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  267. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +6 -0
  268. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
  269. package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +67 -0
  270. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +5 -0
  271. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +6 -0
  272. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +6 -0
  273. package/templates/personal-fitness-trainer/dev/index.ts +2 -1
  274. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  275. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +20 -4
  276. package/templates/personal-fitness-trainer/tier5-src/_shared/chat-live.ts +242 -0
  277. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +6 -0
  278. package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +101 -11
  279. package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +73 -22
  280. package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +56 -12
  281. package/templates/podcast-creator/l10n/ar.json +35 -0
  282. package/templates/podcast-creator/l10n/cs.json +35 -0
  283. package/templates/podcast-creator/l10n/da.json +35 -0
  284. package/templates/podcast-creator/l10n/de.json +35 -0
  285. package/templates/podcast-creator/l10n/el.json +35 -0
  286. package/templates/podcast-creator/l10n/en.json +1 -1
  287. package/templates/podcast-creator/l10n/es.json +35 -0
  288. package/templates/podcast-creator/l10n/fi.json +35 -0
  289. package/templates/podcast-creator/l10n/fr.json +35 -0
  290. package/templates/podcast-creator/l10n/he.json +28 -0
  291. package/templates/podcast-creator/l10n/hu.json +35 -0
  292. package/templates/podcast-creator/l10n/id.json +35 -0
  293. package/templates/podcast-creator/l10n/it.json +35 -0
  294. package/templates/podcast-creator/l10n/ja.json +35 -0
  295. package/templates/podcast-creator/l10n/ko.json +35 -0
  296. package/templates/podcast-creator/l10n/lt.json +35 -0
  297. package/templates/podcast-creator/l10n/nl.json +35 -0
  298. package/templates/podcast-creator/l10n/no.json +35 -0
  299. package/templates/podcast-creator/l10n/pl.json +35 -0
  300. package/templates/podcast-creator/l10n/pt.json +35 -0
  301. package/templates/podcast-creator/l10n/ru.json +35 -0
  302. package/templates/podcast-creator/l10n/sv.json +35 -0
  303. package/templates/podcast-creator/l10n/th.json +35 -0
  304. package/templates/podcast-creator/l10n/tr.json +35 -0
  305. package/templates/podcast-creator/l10n/uk.json +35 -0
  306. package/templates/podcast-creator/l10n/vi.json +35 -0
  307. package/templates/podcast-creator/l10n/zh.json +35 -0
  308. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  309. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +6 -0
  310. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
  311. package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +67 -0
  312. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +5 -0
  313. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +6 -0
  314. package/templates/portfolio-creative/l10n/ar.json +35 -0
  315. package/templates/portfolio-creative/l10n/cs.json +35 -0
  316. package/templates/portfolio-creative/l10n/da.json +35 -0
  317. package/templates/portfolio-creative/l10n/de.json +35 -0
  318. package/templates/portfolio-creative/l10n/el.json +35 -0
  319. package/templates/portfolio-creative/l10n/en.json +1 -1
  320. package/templates/portfolio-creative/l10n/es.json +35 -0
  321. package/templates/portfolio-creative/l10n/fi.json +35 -0
  322. package/templates/portfolio-creative/l10n/fr.json +35 -0
  323. package/templates/portfolio-creative/l10n/he.json +28 -0
  324. package/templates/portfolio-creative/l10n/hu.json +35 -0
  325. package/templates/portfolio-creative/l10n/id.json +35 -0
  326. package/templates/portfolio-creative/l10n/it.json +35 -0
  327. package/templates/portfolio-creative/l10n/ja.json +35 -0
  328. package/templates/portfolio-creative/l10n/ko.json +35 -0
  329. package/templates/portfolio-creative/l10n/lt.json +35 -0
  330. package/templates/portfolio-creative/l10n/nl.json +35 -0
  331. package/templates/portfolio-creative/l10n/no.json +35 -0
  332. package/templates/portfolio-creative/l10n/pl.json +35 -0
  333. package/templates/portfolio-creative/l10n/pt.json +35 -0
  334. package/templates/portfolio-creative/l10n/ru.json +35 -0
  335. package/templates/portfolio-creative/l10n/sv.json +35 -0
  336. package/templates/portfolio-creative/l10n/th.json +35 -0
  337. package/templates/portfolio-creative/l10n/tr.json +35 -0
  338. package/templates/portfolio-creative/l10n/uk.json +35 -0
  339. package/templates/portfolio-creative/l10n/vi.json +35 -0
  340. package/templates/portfolio-creative/l10n/zh.json +35 -0
  341. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  342. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +6 -0
  343. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
  344. package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +67 -0
  345. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +5 -0
  346. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +6 -0
  347. package/templates/restaurant/l10n/ar.json +35 -0
  348. package/templates/restaurant/l10n/cs.json +35 -0
  349. package/templates/restaurant/l10n/da.json +35 -0
  350. package/templates/restaurant/l10n/de.json +35 -0
  351. package/templates/restaurant/l10n/el.json +35 -0
  352. package/templates/restaurant/l10n/en.json +1 -1
  353. package/templates/restaurant/l10n/es.json +35 -0
  354. package/templates/restaurant/l10n/fi.json +35 -0
  355. package/templates/restaurant/l10n/fr.json +35 -0
  356. package/templates/restaurant/l10n/he.json +28 -0
  357. package/templates/restaurant/l10n/hu.json +35 -0
  358. package/templates/restaurant/l10n/id.json +35 -0
  359. package/templates/restaurant/l10n/it.json +35 -0
  360. package/templates/restaurant/l10n/ja.json +35 -0
  361. package/templates/restaurant/l10n/ko.json +35 -0
  362. package/templates/restaurant/l10n/lt.json +35 -0
  363. package/templates/restaurant/l10n/nl.json +35 -0
  364. package/templates/restaurant/l10n/no.json +35 -0
  365. package/templates/restaurant/l10n/pl.json +35 -0
  366. package/templates/restaurant/l10n/pt.json +35 -0
  367. package/templates/restaurant/l10n/ru.json +35 -0
  368. package/templates/restaurant/l10n/sv.json +35 -0
  369. package/templates/restaurant/l10n/th.json +35 -0
  370. package/templates/restaurant/l10n/tr.json +35 -0
  371. package/templates/restaurant/l10n/uk.json +35 -0
  372. package/templates/restaurant/l10n/vi.json +35 -0
  373. package/templates/restaurant/l10n/zh.json +35 -0
  374. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  375. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +6 -0
  376. package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
  377. package/templates/restaurant/tier5-src/_shared/program-standing.ts +67 -0
  378. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +5 -0
  379. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +6 -0
  380. package/templates/retail-store/l10n/ar.json +35 -0
  381. package/templates/retail-store/l10n/cs.json +35 -0
  382. package/templates/retail-store/l10n/da.json +35 -0
  383. package/templates/retail-store/l10n/de.json +35 -0
  384. package/templates/retail-store/l10n/el.json +35 -0
  385. package/templates/retail-store/l10n/en.json +1 -1
  386. package/templates/retail-store/l10n/es.json +35 -0
  387. package/templates/retail-store/l10n/fi.json +35 -0
  388. package/templates/retail-store/l10n/fr.json +35 -0
  389. package/templates/retail-store/l10n/he.json +28 -0
  390. package/templates/retail-store/l10n/hu.json +35 -0
  391. package/templates/retail-store/l10n/id.json +35 -0
  392. package/templates/retail-store/l10n/it.json +35 -0
  393. package/templates/retail-store/l10n/ja.json +35 -0
  394. package/templates/retail-store/l10n/ko.json +35 -0
  395. package/templates/retail-store/l10n/lt.json +35 -0
  396. package/templates/retail-store/l10n/nl.json +35 -0
  397. package/templates/retail-store/l10n/no.json +35 -0
  398. package/templates/retail-store/l10n/pl.json +35 -0
  399. package/templates/retail-store/l10n/pt.json +35 -0
  400. package/templates/retail-store/l10n/ru.json +35 -0
  401. package/templates/retail-store/l10n/sv.json +35 -0
  402. package/templates/retail-store/l10n/th.json +35 -0
  403. package/templates/retail-store/l10n/tr.json +35 -0
  404. package/templates/retail-store/l10n/uk.json +35 -0
  405. package/templates/retail-store/l10n/vi.json +35 -0
  406. package/templates/retail-store/l10n/zh.json +35 -0
  407. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  408. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +6 -0
  409. package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
  410. package/templates/retail-store/tier5-src/_shared/program-standing.ts +67 -0
  411. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +5 -0
  412. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +6 -0
  413. package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  414. package/templates/salon-spa/tier5-src/_shared/business-chat-transport.ts +20 -4
  415. package/templates/salon-spa/tier5-src/_shared/chat-live.ts +242 -0
  416. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +6 -0
  417. package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +101 -11
  418. package/templates/salon-spa/tier5-src/business-chat/index.ts +73 -22
  419. package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +56 -12
  420. package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  421. package/templates/wholesale-store/tier5-src/_shared/business-chat-transport.ts +20 -4
  422. package/templates/wholesale-store/tier5-src/_shared/chat-live.ts +242 -0
  423. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +6 -0
  424. package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +101 -11
  425. package/templates/wholesale-store/tier5-src/business-chat/index.ts +73 -22
  426. package/templates/yoga-studio/config.ts +9 -0
  427. package/templates/yoga-studio/dev/index.ts +1134 -133
  428. package/templates/yoga-studio/himalaya.content.json +3 -0
  429. package/templates/yoga-studio/l10n/ar.json +150 -0
  430. package/templates/yoga-studio/l10n/cs.json +150 -0
  431. package/templates/yoga-studio/l10n/da.json +150 -0
  432. package/templates/yoga-studio/l10n/de.json +150 -0
  433. package/templates/yoga-studio/l10n/el.json +150 -0
  434. package/templates/yoga-studio/l10n/en.json +70 -1
  435. package/templates/yoga-studio/l10n/es.json +150 -0
  436. package/templates/yoga-studio/l10n/fi.json +150 -0
  437. package/templates/yoga-studio/l10n/fr.json +150 -0
  438. package/templates/yoga-studio/l10n/he.json +122 -0
  439. package/templates/yoga-studio/l10n/hu.json +150 -0
  440. package/templates/yoga-studio/l10n/id.json +150 -0
  441. package/templates/yoga-studio/l10n/it.json +150 -0
  442. package/templates/yoga-studio/l10n/ja.json +150 -0
  443. package/templates/yoga-studio/l10n/ko.json +150 -0
  444. package/templates/yoga-studio/l10n/lt.json +150 -0
  445. package/templates/yoga-studio/l10n/nl.json +150 -0
  446. package/templates/yoga-studio/l10n/no.json +150 -0
  447. package/templates/yoga-studio/l10n/pl.json +150 -0
  448. package/templates/yoga-studio/l10n/pt.json +150 -0
  449. package/templates/yoga-studio/l10n/ru.json +150 -0
  450. package/templates/yoga-studio/l10n/sv.json +150 -0
  451. package/templates/yoga-studio/l10n/th.json +150 -0
  452. package/templates/yoga-studio/l10n/tr.json +150 -0
  453. package/templates/yoga-studio/l10n/uk.json +150 -0
  454. package/templates/yoga-studio/l10n/vi.json +150 -0
  455. package/templates/yoga-studio/l10n/zh.json +150 -0
  456. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  457. package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +20 -4
  458. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +6 -0
  459. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
  460. package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +21 -0
  461. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +56 -12
  462. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +5 -0
  463. package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  464. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +17 -3
  465. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
  466. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
  467. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +6 -0
@@ -2409,6 +2409,41 @@
2409
2409
  "translation": "Program",
2410
2410
  "origin": "machine"
2411
2411
  },
2412
+ "h_d1e51f92e970": {
2413
+ "source": "Request approved",
2414
+ "translation": "Begäran godkänd",
2415
+ "origin": "machine"
2416
+ },
2417
+ "h_e887512cff1a": {
2418
+ "source": "Program complete",
2419
+ "translation": "Programmet är slutfört",
2420
+ "origin": "machine"
2421
+ },
2422
+ "h_ba5bf80d6b73": {
2423
+ "source": "Program ended",
2424
+ "translation": "Programmet har avslutats",
2425
+ "origin": "machine"
2426
+ },
2427
+ "h_53469df1c48f": {
2428
+ "source": "Invited",
2429
+ "translation": "Inbjuden",
2430
+ "origin": "machine"
2431
+ },
2432
+ "h_43a1c6266f88": {
2433
+ "source": "Joined",
2434
+ "translation": "Har gått med",
2435
+ "origin": "machine"
2436
+ },
2437
+ "h_1c5c8843fc67": {
2438
+ "source": "Pending request",
2439
+ "translation": "Väntande",
2440
+ "origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
2441
+ },
2442
+ "h_dbf11c902c73": {
2443
+ "source": "Participation suspended",
2444
+ "translation": "Deltagandet är avstängt",
2445
+ "origin": "machine"
2446
+ },
2412
2447
  "h_27a09196ad70": {
2413
2448
  "source": "Select a {option}",
2414
2449
  "translation": "Välj {option}",
@@ -2409,6 +2409,41 @@
2409
2409
  "translation": "โปรแกรม",
2410
2410
  "origin": "machine"
2411
2411
  },
2412
+ "h_d1e51f92e970": {
2413
+ "source": "Request approved",
2414
+ "translation": "อนุมัติคำขอแล้ว",
2415
+ "origin": "machine"
2416
+ },
2417
+ "h_e887512cff1a": {
2418
+ "source": "Program complete",
2419
+ "translation": "โปรแกรมเสร็จสมบูรณ์",
2420
+ "origin": "machine"
2421
+ },
2422
+ "h_ba5bf80d6b73": {
2423
+ "source": "Program ended",
2424
+ "translation": "โปรแกรมสิ้นสุดแล้ว",
2425
+ "origin": "machine"
2426
+ },
2427
+ "h_53469df1c48f": {
2428
+ "source": "Invited",
2429
+ "translation": "ได้รับเชิญ",
2430
+ "origin": "machine"
2431
+ },
2432
+ "h_43a1c6266f88": {
2433
+ "source": "Joined",
2434
+ "translation": "เข้าร่วมแล้ว",
2435
+ "origin": "machine"
2436
+ },
2437
+ "h_1c5c8843fc67": {
2438
+ "source": "Pending request",
2439
+ "translation": "คำขออยู่ระหว่างดำเนินการ",
2440
+ "origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
2441
+ },
2442
+ "h_dbf11c902c73": {
2443
+ "source": "Participation suspended",
2444
+ "translation": "ระงับการเข้าร่วม",
2445
+ "origin": "machine"
2446
+ },
2412
2447
  "h_27a09196ad70": {
2413
2448
  "source": "Select a {option}",
2414
2449
  "translation": "เลือก{option}",
@@ -2409,6 +2409,41 @@
2409
2409
  "translation": "Program",
2410
2410
  "origin": "machine"
2411
2411
  },
2412
+ "h_d1e51f92e970": {
2413
+ "source": "Request approved",
2414
+ "translation": "Talep onaylandı",
2415
+ "origin": "machine"
2416
+ },
2417
+ "h_e887512cff1a": {
2418
+ "source": "Program complete",
2419
+ "translation": "Program tamamlandı",
2420
+ "origin": "machine"
2421
+ },
2422
+ "h_ba5bf80d6b73": {
2423
+ "source": "Program ended",
2424
+ "translation": "Program sona erdi",
2425
+ "origin": "machine"
2426
+ },
2427
+ "h_53469df1c48f": {
2428
+ "source": "Invited",
2429
+ "translation": "Davet edildi",
2430
+ "origin": "machine"
2431
+ },
2432
+ "h_43a1c6266f88": {
2433
+ "source": "Joined",
2434
+ "translation": "Katıldı",
2435
+ "origin": "machine"
2436
+ },
2437
+ "h_1c5c8843fc67": {
2438
+ "source": "Pending request",
2439
+ "translation": "Bekleyen talep",
2440
+ "origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
2441
+ },
2442
+ "h_dbf11c902c73": {
2443
+ "source": "Participation suspended",
2444
+ "translation": "Katılım askıya alındı",
2445
+ "origin": "machine"
2446
+ },
2412
2447
  "h_27a09196ad70": {
2413
2448
  "source": "Select a {option}",
2414
2449
  "translation": "{option} seçin",
@@ -2409,6 +2409,41 @@
2409
2409
  "translation": "Програма",
2410
2410
  "origin": "machine"
2411
2411
  },
2412
+ "h_d1e51f92e970": {
2413
+ "source": "Request approved",
2414
+ "translation": "Запит схвалено",
2415
+ "origin": "machine"
2416
+ },
2417
+ "h_e887512cff1a": {
2418
+ "source": "Program complete",
2419
+ "translation": "Програму завершено",
2420
+ "origin": "machine"
2421
+ },
2422
+ "h_ba5bf80d6b73": {
2423
+ "source": "Program ended",
2424
+ "translation": "Програму закінчено",
2425
+ "origin": "machine"
2426
+ },
2427
+ "h_53469df1c48f": {
2428
+ "source": "Invited",
2429
+ "translation": "Запрошено",
2430
+ "origin": "machine"
2431
+ },
2432
+ "h_43a1c6266f88": {
2433
+ "source": "Joined",
2434
+ "translation": "Приєднано",
2435
+ "origin": "machine"
2436
+ },
2437
+ "h_1c5c8843fc67": {
2438
+ "source": "Pending request",
2439
+ "translation": "Запит в очікуванні",
2440
+ "origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
2441
+ },
2442
+ "h_dbf11c902c73": {
2443
+ "source": "Participation suspended",
2444
+ "translation": "Участь призупинено",
2445
+ "origin": "machine"
2446
+ },
2412
2447
  "h_27a09196ad70": {
2413
2448
  "source": "Select a {option}",
2414
2449
  "translation": "Виберіть: {option}",
@@ -2409,6 +2409,41 @@
2409
2409
  "translation": "Chương trình",
2410
2410
  "origin": "machine"
2411
2411
  },
2412
+ "h_d1e51f92e970": {
2413
+ "source": "Request approved",
2414
+ "translation": "Yêu cầu đã được phê duyệt",
2415
+ "origin": "machine"
2416
+ },
2417
+ "h_e887512cff1a": {
2418
+ "source": "Program complete",
2419
+ "translation": "Chương trình đã hoàn thành",
2420
+ "origin": "machine"
2421
+ },
2422
+ "h_ba5bf80d6b73": {
2423
+ "source": "Program ended",
2424
+ "translation": "Chương trình đã kết thúc",
2425
+ "origin": "machine"
2426
+ },
2427
+ "h_53469df1c48f": {
2428
+ "source": "Invited",
2429
+ "translation": "Đã được mời",
2430
+ "origin": "machine"
2431
+ },
2432
+ "h_43a1c6266f88": {
2433
+ "source": "Joined",
2434
+ "translation": "Đã tham gia",
2435
+ "origin": "machine"
2436
+ },
2437
+ "h_1c5c8843fc67": {
2438
+ "source": "Pending request",
2439
+ "translation": "Yêu cầu đang chờ xử lý",
2440
+ "origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
2441
+ },
2442
+ "h_dbf11c902c73": {
2443
+ "source": "Participation suspended",
2444
+ "translation": "Đã đình chỉ tham gia",
2445
+ "origin": "machine"
2446
+ },
2412
2447
  "h_27a09196ad70": {
2413
2448
  "source": "Select a {option}",
2414
2449
  "translation": "Chọn {option}",
@@ -2409,6 +2409,41 @@
2409
2409
  "translation": "計劃",
2410
2410
  "origin": "machine"
2411
2411
  },
2412
+ "h_d1e51f92e970": {
2413
+ "source": "Request approved",
2414
+ "translation": "請求已核准",
2415
+ "origin": "machine"
2416
+ },
2417
+ "h_e887512cff1a": {
2418
+ "source": "Program complete",
2419
+ "translation": "計劃已完成",
2420
+ "origin": "machine"
2421
+ },
2422
+ "h_ba5bf80d6b73": {
2423
+ "source": "Program ended",
2424
+ "translation": "計劃已結束",
2425
+ "origin": "machine"
2426
+ },
2427
+ "h_53469df1c48f": {
2428
+ "source": "Invited",
2429
+ "translation": "已受邀",
2430
+ "origin": "machine"
2431
+ },
2432
+ "h_43a1c6266f88": {
2433
+ "source": "Joined",
2434
+ "translation": "已加入",
2435
+ "origin": "machine"
2436
+ },
2437
+ "h_1c5c8843fc67": {
2438
+ "source": "Pending request",
2439
+ "translation": "請求待處理",
2440
+ "origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
2441
+ },
2442
+ "h_dbf11c902c73": {
2443
+ "source": "Participation suspended",
2444
+ "translation": "參與已暫停",
2445
+ "origin": "machine"
2446
+ },
2412
2447
  "h_27a09196ad70": {
2413
2448
  "source": "Select a {option}",
2414
2449
  "translation": "選擇 {option}",
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
123
123
  himi_portfolio_project: ["portfolio"],
124
124
  himi_programs: ["programs"],
125
125
  himi_member_programs: ["programs"],
126
+ himi_program_participant: ["programs"],
126
127
  himi_reservations: ["reservations"],
127
128
  himi_reserve: ["restaurants"],
128
129
  himi_review: ["reviews"],
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
119
119
 
120
120
  const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
121
121
 
122
+ /** `{ weekday: "short" }` — "Mon". */
123
+ export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
124
+ if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
125
+ return WEEKDAYS_SHORT[date.getDay()]!;
126
+ }
127
+
122
128
  /** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
123
129
  export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
124
130
  if (hasIntl()) {
@@ -0,0 +1,16 @@
1
+ // How a worker reads an Online Program's lifecycle and name. Wix returns them in more than one
2
+ // shape (v3 `status` or `state`; `description.title`, `settings.title`, a flat `title` or
3
+ // `details.title`), so every screen that lists programs reads them here, the same way.
4
+ import type { WixProgram } from "@himalaya/wix-online-programs";
5
+ import { cleanTitle } from "./himi-text.js";
6
+
7
+ export function programStatus(p: WixProgram): string {
8
+ return (p.status ?? p.state ?? "").toUpperCase();
9
+ }
10
+ export const isProgramEnded = (p: WixProgram): boolean => programStatus(p) === "ENDED" || programStatus(p) === "FINISHED";
11
+ export const isProgramDraft = (p: WixProgram): boolean => programStatus(p) === "DRAFT";
12
+
13
+ /** The program's own name, cleaned; "" when it has none (the caller picks its own fallback word). */
14
+ export function programName(p: WixProgram): string {
15
+ return cleanTitle(p.description?.title ?? p.settings?.title ?? p.title ?? p.details?.title);
16
+ }
@@ -0,0 +1,67 @@
1
+ // The member's standing on one Online Program — the One App participant/application states, folded.
2
+ // Shared by the programs list cards and the program detail screen so both read a member the same way.
3
+ import type { WixJoinApplication, WixParticipant } from "@himalaya/wix-online-programs";
4
+
5
+ export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "invited";
6
+
7
+ export function standingOf(ended: boolean, participant: WixParticipant | undefined, application: WixJoinApplication | undefined): Standing {
8
+ // A withdrawn participant is history even if its old progress says completed.
9
+ // Only its matching admitted application is history too; newer requests remain visible.
10
+ if (["LEFT", "REMOVED", "AUTO_REMOVED"].includes((participant?.enrollmentStatus ?? "").toUpperCase())) {
11
+ if (participant?.id && application?.participantId === participant.id && application.status?.toUpperCase() === "APPROVED") application = undefined;
12
+ participant = undefined;
13
+ }
14
+ if (participant) {
15
+ const progress = (participant.progressStatus ?? "").toUpperCase();
16
+ const enrollment = (participant.enrollmentStatus ?? "").toUpperCase();
17
+ if (progress === "COMPLETED") return "completed";
18
+ if (progress === "FAILED" || ended) return "finished";
19
+ if (enrollment === "SUSPENDED") return "suspended";
20
+ return "joined";
21
+ }
22
+ const status = (application?.status ?? "").toUpperCase();
23
+ const payment = (application?.paymentStatus ?? "").toUpperCase();
24
+ if (status === "APPROVAL_PENDING") return "pending";
25
+ if (status === "SUSPENDED") return "suspended";
26
+ if (status === "APPROVED") {
27
+ // The same reading as joinProgram: a free or settled approval is enrolling, and an offline payment
28
+ // waits on the owner. Only an approval that still owes money asks the member to pay.
29
+ if (payment === "NO_PAYMENT_REQUIRED" || payment === "PAYMENT_SUCCESSFUL") return application?.participantId ? "joined" : "pending";
30
+ if (payment === "PENDING_OWNER_APPROVAL") return "pending";
31
+ return "approved";
32
+ }
33
+ if (status === "PAYMENT_PENDING") return "approved";
34
+ if (status === "INVITED") return "invited";
35
+ return "none";
36
+ }
37
+
38
+ export const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback: string; icon: string; color: string }> = {
39
+ joined: { key: "memberPrograms.status.joined", fallback: "Joined", icon: "checkmark", color: "accentPrimary" },
40
+ completed: { key: "memberPrograms.status.completed", fallback: "Program complete", icon: "trophy", color: "success" },
41
+ finished: { key: "memberPrograms.status.ended", fallback: "Program ended", icon: "flag", color: "textSecondary" },
42
+ suspended: { key: "memberPrograms.status.suspended", fallback: "Participation suspended", icon: "close", color: "warning" },
43
+ pending: { key: "memberPrograms.status.pending", fallback: "Pending request", icon: "clock", color: "warning" },
44
+ approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
45
+ invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
46
+ };
47
+
48
+ /** The participant page (`himi_program_participant`): what a member in the program opens instead of the sales page. */
49
+ export const PARTICIPANT_SCREEN = "himi_program_participant";
50
+
51
+ /** Standings that open the participant page: the member is in the program, or stayed in it to its end.
52
+ * A paused (suspended) member and everyone else open the program page, which owns joining and paying. */
53
+ export const PARTICIPANT_STANDINGS: ReadonlySet<Standing> = new Set<Standing>(["joined", "completed", "finished"]);
54
+
55
+ /** Whether the member is in the program: an actual participation (an admitted application alone is
56
+ * not one: the participant page reads the participation), not paused, with a standing that opens the
57
+ * participant page. Pass the participation the standing was read from. */
58
+ export function inProgram(standing: Standing, participant: WixParticipant | undefined): boolean {
59
+ return !!participant && PARTICIPANT_STANDINGS.has(standing)
60
+ && String(participant.enrollmentStatus ?? "").toUpperCase() !== "SUSPENDED";
61
+ }
62
+
63
+ /** The screen a program row opens. `participantScreen` is the host's participant page; "" (a host
64
+ * without one) keeps every row on `programScreen`. */
65
+ export function programScreenFor(memberInProgram: boolean, programScreen: string, participantScreen: string): string {
66
+ return participantScreen && memberInProgram ? participantScreen : programScreen;
67
+ }
@@ -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) {
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
119
119
 
120
120
  const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
121
121
 
122
+ /** `{ weekday: "short" }` — "Mon". */
123
+ export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
124
+ if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
125
+ return WEEKDAYS_SHORT[date.getDay()]!;
126
+ }
127
+
122
128
  /** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
123
129
  export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
124
130
  if (hasIntl()) {
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
123
123
  himi_portfolio_project: ["portfolio"],
124
124
  himi_programs: ["programs"],
125
125
  himi_member_programs: ["programs"],
126
+ himi_program_participant: ["programs"],
126
127
  himi_reservations: ["reservations"],
127
128
  himi_reserve: ["restaurants"],
128
129
  himi_review: ["reviews"],
@@ -29,6 +29,19 @@ async function fenced<T>(identity: ChatIdentity, run: () => Promise<T>): Promise
29
29
  /** Any other member-scoped call (the AI chat's) goes through the same fence. */
30
30
  export const fence = fenced;
31
31
 
32
+ /** A signed-out visitor's Smart Chat calls are fenced the other way: still signed out before the request goes
33
+ * out and again before its response is used, so signing in mid-request never mixes the visitor's chat into
34
+ * the member's. Fails as `MemberAccessChanged`, like the member fence, so callers handle both alike. */
35
+ async function assertStillVisitor(): Promise<void> {
36
+ if ((await memberAccess()).email) throw Object.assign(new Error("visitor_signed_in"), { name: "MemberAccessChanged" });
37
+ }
38
+ export async function visitorFence<T>(run: () => Promise<T>): Promise<T> {
39
+ await assertStillVisitor();
40
+ const result = await run();
41
+ await assertStillVisitor();
42
+ return result;
43
+ }
44
+
32
45
  // Minting a chat token is a network round trip, and every chat call used to mint its own. One token
33
46
  // per member is reused until the member changes or a request using it is refused.
34
47
  let cachedToken: { key: string; token: string } | null = null;
@@ -44,7 +57,7 @@ async function chatTokenFor(identity: ChatIdentity): Promise<string> {
44
57
  return chatToken;
45
58
  }
46
59
  /** Runs `run` with the member's cached token; a refused request mints a fresh token and tries once more. */
47
- async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
60
+ export async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
48
61
  const reused = cachedToken?.key === tokenKey(identity);
49
62
  try {
50
63
  return await run(await chatTokenFor(identity));
@@ -80,7 +93,7 @@ export const unreadRoomCount = (identity: ChatIdentity): Promise<number> => fenc
80
93
  export const messagesPage = (identity: ChatIdentity, roomId: string): Promise<Raw[]> => fenced(identity, async () =>
81
94
  (await withToken(identity, (chatToken) => getMessagesPage(roomId, { ...MEMBER, chatToken, pageSize: 50, ordering: "Desc" }))).items as unknown as Raw[]);
82
95
 
83
- function bridge(): Bridge {
96
+ export function bridge(): Bridge {
84
97
  const api = (globalThis as unknown as { himalaya?: { wixApi?: Bridge } }).himalaya?.wixApi;
85
98
  if (!api) throw new Error("wix_api_bridge_unavailable");
86
99
  return api;
@@ -89,7 +102,10 @@ function bridge(): Bridge {
89
102
  * Wix Smart Chat and the AI can answer it; a message posted straight into the room has no channel, so the AI never
90
103
  * saw it and the owner's reply went out by email. Smart Chat chooses the conversation and stored message id.
91
104
  * The bridge resolves once the AI has finished answering, not when the message is stored. */
92
- export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, async () => {
105
+ export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, () => postQuestion(text));
106
+ /** The same Smart Chat send for a signed-out visitor: Smart Chat accepts the anonymous visitor token. */
107
+ export const sendVisitorMessage = (text: string): Promise<string | undefined> => visitorFence(() => postQuestion(text));
108
+ async function postQuestion(text: string): Promise<string | undefined> {
93
109
  const response = await bridge().call("POST", "/wix-assistant-widget/v1/messages/stream", {
94
110
  message: { sender: "SITE_VISITOR", messageType: "QUESTION", body: { mainText: text } },
95
111
  });
@@ -123,7 +139,7 @@ export const sendMessage = (identity: ChatIdentity, text: string): Promise<strin
123
139
  if (input?.sender === "SITE_VISITOR" && input.messageType === "QUESTION" && typeof input.id === "string" && input.id) return `smart-chat:${input.id}`;
124
140
  }
125
141
  return undefined;
126
- });
142
+ }
127
143
  /** A tapped button is a silent, ephemeral message carrying the button's chat action. */
128
144
  export const sendButton = (identity: ChatIdentity, roomId: string, input: { id: string; text: string; appId: string; interactionId: string }): Promise<void> => fenced(identity, async () => {
129
145
  await withToken(identity, (chatToken) => bridge().call("POST", `${MANAGE}/_api/chat-web/v2/chatrooms/${encodeURIComponent(roomId)}/messages`, {