@wix/himalaya-cli 0.1762.0 → 0.1763.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 (681) hide show
  1. package/dist/cli.mjs +73210 -72009
  2. package/guides/base44-app-to-himi-app.md +56 -0
  3. package/guides/himi-json-output.md +35 -0
  4. package/guides/one-app-section-mappings.md +6 -6
  5. package/guides/one-app-to-himi-app.md +27 -4
  6. package/guides/push-cli-onboarding.md +25 -14
  7. package/package.json +2 -2
  8. package/templates/beauty-salon/l10n/ar.json +9 -420
  9. package/templates/beauty-salon/l10n/cs.json +9 -420
  10. package/templates/beauty-salon/l10n/da.json +9 -420
  11. package/templates/beauty-salon/l10n/de.json +9 -420
  12. package/templates/beauty-salon/l10n/el.json +9 -420
  13. package/templates/beauty-salon/l10n/en.json +8 -61
  14. package/templates/beauty-salon/l10n/es.json +9 -420
  15. package/templates/beauty-salon/l10n/fi.json +9 -420
  16. package/templates/beauty-salon/l10n/fr.json +9 -420
  17. package/templates/beauty-salon/l10n/he.json +9 -338
  18. package/templates/beauty-salon/l10n/hu.json +9 -420
  19. package/templates/beauty-salon/l10n/id.json +9 -420
  20. package/templates/beauty-salon/l10n/it.json +9 -420
  21. package/templates/beauty-salon/l10n/ja.json +9 -420
  22. package/templates/beauty-salon/l10n/ko.json +9 -420
  23. package/templates/beauty-salon/l10n/lt.json +9 -420
  24. package/templates/beauty-salon/l10n/nl.json +9 -420
  25. package/templates/beauty-salon/l10n/no.json +9 -420
  26. package/templates/beauty-salon/l10n/pl.json +9 -420
  27. package/templates/beauty-salon/l10n/pt.json +9 -420
  28. package/templates/beauty-salon/l10n/ru.json +9 -420
  29. package/templates/beauty-salon/l10n/sv.json +9 -420
  30. package/templates/beauty-salon/l10n/th.json +9 -420
  31. package/templates/beauty-salon/l10n/tr.json +9 -420
  32. package/templates/beauty-salon/l10n/uk.json +9 -420
  33. package/templates/beauty-salon/l10n/vi.json +9 -420
  34. package/templates/beauty-salon/l10n/zh.json +9 -420
  35. package/templates/branded-lite/l10n/ar.json +31 -5
  36. package/templates/branded-lite/l10n/cs.json +31 -5
  37. package/templates/branded-lite/l10n/da.json +31 -5
  38. package/templates/branded-lite/l10n/de.json +31 -5
  39. package/templates/branded-lite/l10n/el.json +31 -5
  40. package/templates/branded-lite/l10n/en.json +8 -6
  41. package/templates/branded-lite/l10n/es.json +31 -5
  42. package/templates/branded-lite/l10n/fi.json +31 -5
  43. package/templates/branded-lite/l10n/fr.json +31 -5
  44. package/templates/branded-lite/l10n/he.json +27 -4
  45. package/templates/branded-lite/l10n/hu.json +31 -5
  46. package/templates/branded-lite/l10n/id.json +31 -5
  47. package/templates/branded-lite/l10n/it.json +31 -5
  48. package/templates/branded-lite/l10n/ja.json +31 -5
  49. package/templates/branded-lite/l10n/ko.json +31 -5
  50. package/templates/branded-lite/l10n/lt.json +31 -5
  51. package/templates/branded-lite/l10n/nl.json +31 -5
  52. package/templates/branded-lite/l10n/no.json +31 -5
  53. package/templates/branded-lite/l10n/pl.json +31 -5
  54. package/templates/branded-lite/l10n/pt.json +31 -5
  55. package/templates/branded-lite/l10n/ru.json +31 -5
  56. package/templates/branded-lite/l10n/sv.json +31 -5
  57. package/templates/branded-lite/l10n/th.json +31 -5
  58. package/templates/branded-lite/l10n/tr.json +31 -5
  59. package/templates/branded-lite/l10n/uk.json +31 -5
  60. package/templates/branded-lite/l10n/vi.json +31 -5
  61. package/templates/branded-lite/l10n/zh.json +31 -5
  62. package/templates/branded-lite/recipes/blog-search.json +45 -0
  63. package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
  64. package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
  65. package/templates/{beauty-salon/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
  66. package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
  67. package/templates/{events-meetups/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
  68. package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
  69. package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
  70. package/templates/branded-lite/recipes/videos-carousel.json +248 -0
  71. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
  72. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
  73. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
  74. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
  75. package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
  76. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
  77. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
  78. package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
  79. package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
  80. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
  81. package/templates/community-club/l10n/ar.json +0 -412
  82. package/templates/community-club/l10n/cs.json +0 -412
  83. package/templates/community-club/l10n/da.json +0 -412
  84. package/templates/community-club/l10n/de.json +0 -412
  85. package/templates/community-club/l10n/el.json +0 -412
  86. package/templates/community-club/l10n/en.json +1 -46
  87. package/templates/community-club/l10n/es.json +0 -412
  88. package/templates/community-club/l10n/fi.json +0 -412
  89. package/templates/community-club/l10n/fr.json +0 -412
  90. package/templates/community-club/l10n/he.json +0 -331
  91. package/templates/community-club/l10n/hu.json +0 -412
  92. package/templates/community-club/l10n/id.json +0 -412
  93. package/templates/community-club/l10n/it.json +0 -412
  94. package/templates/community-club/l10n/ja.json +0 -412
  95. package/templates/community-club/l10n/ko.json +0 -412
  96. package/templates/community-club/l10n/lt.json +0 -412
  97. package/templates/community-club/l10n/nl.json +0 -412
  98. package/templates/community-club/l10n/no.json +0 -412
  99. package/templates/community-club/l10n/pl.json +0 -412
  100. package/templates/community-club/l10n/pt.json +0 -412
  101. package/templates/community-club/l10n/ru.json +0 -412
  102. package/templates/community-club/l10n/sv.json +0 -412
  103. package/templates/community-club/l10n/th.json +0 -412
  104. package/templates/community-club/l10n/tr.json +0 -412
  105. package/templates/community-club/l10n/uk.json +0 -412
  106. package/templates/community-club/l10n/vi.json +0 -412
  107. package/templates/community-club/l10n/zh.json +0 -412
  108. package/templates/events-meetups/l10n/ar.json +0 -412
  109. package/templates/events-meetups/l10n/cs.json +0 -412
  110. package/templates/events-meetups/l10n/da.json +0 -412
  111. package/templates/events-meetups/l10n/de.json +0 -412
  112. package/templates/events-meetups/l10n/el.json +0 -412
  113. package/templates/events-meetups/l10n/en.json +1 -46
  114. package/templates/events-meetups/l10n/es.json +0 -412
  115. package/templates/events-meetups/l10n/fi.json +0 -412
  116. package/templates/events-meetups/l10n/fr.json +0 -412
  117. package/templates/events-meetups/l10n/he.json +0 -331
  118. package/templates/events-meetups/l10n/hu.json +0 -412
  119. package/templates/events-meetups/l10n/id.json +0 -412
  120. package/templates/events-meetups/l10n/it.json +0 -412
  121. package/templates/events-meetups/l10n/ja.json +0 -412
  122. package/templates/events-meetups/l10n/ko.json +0 -412
  123. package/templates/events-meetups/l10n/lt.json +0 -412
  124. package/templates/events-meetups/l10n/nl.json +0 -412
  125. package/templates/events-meetups/l10n/no.json +0 -412
  126. package/templates/events-meetups/l10n/pl.json +0 -412
  127. package/templates/events-meetups/l10n/pt.json +0 -412
  128. package/templates/events-meetups/l10n/ru.json +0 -412
  129. package/templates/events-meetups/l10n/sv.json +0 -412
  130. package/templates/events-meetups/l10n/th.json +0 -412
  131. package/templates/events-meetups/l10n/tr.json +0 -412
  132. package/templates/events-meetups/l10n/uk.json +0 -412
  133. package/templates/events-meetups/l10n/vi.json +0 -412
  134. package/templates/events-meetups/l10n/zh.json +0 -412
  135. package/templates/gym-fitness/l10n/ar.json +9 -405
  136. package/templates/gym-fitness/l10n/cs.json +9 -405
  137. package/templates/gym-fitness/l10n/da.json +9 -405
  138. package/templates/gym-fitness/l10n/de.json +9 -405
  139. package/templates/gym-fitness/l10n/el.json +9 -405
  140. package/templates/gym-fitness/l10n/en.json +8 -51
  141. package/templates/gym-fitness/l10n/es.json +9 -405
  142. package/templates/gym-fitness/l10n/fi.json +9 -405
  143. package/templates/gym-fitness/l10n/fr.json +9 -405
  144. package/templates/gym-fitness/l10n/he.json +9 -326
  145. package/templates/gym-fitness/l10n/hu.json +9 -405
  146. package/templates/gym-fitness/l10n/id.json +9 -405
  147. package/templates/gym-fitness/l10n/it.json +9 -405
  148. package/templates/gym-fitness/l10n/ja.json +9 -405
  149. package/templates/gym-fitness/l10n/ko.json +9 -405
  150. package/templates/gym-fitness/l10n/lt.json +9 -405
  151. package/templates/gym-fitness/l10n/nl.json +9 -405
  152. package/templates/gym-fitness/l10n/no.json +9 -405
  153. package/templates/gym-fitness/l10n/pl.json +9 -405
  154. package/templates/gym-fitness/l10n/pt.json +9 -405
  155. package/templates/gym-fitness/l10n/ru.json +9 -405
  156. package/templates/gym-fitness/l10n/sv.json +9 -405
  157. package/templates/gym-fitness/l10n/th.json +9 -405
  158. package/templates/gym-fitness/l10n/tr.json +9 -405
  159. package/templates/gym-fitness/l10n/uk.json +9 -405
  160. package/templates/gym-fitness/l10n/vi.json +9 -405
  161. package/templates/gym-fitness/l10n/zh.json +9 -405
  162. package/templates/nonprofit-cause/l10n/ar.json +0 -387
  163. package/templates/nonprofit-cause/l10n/cs.json +0 -387
  164. package/templates/nonprofit-cause/l10n/da.json +0 -387
  165. package/templates/nonprofit-cause/l10n/de.json +0 -387
  166. package/templates/nonprofit-cause/l10n/el.json +0 -387
  167. package/templates/nonprofit-cause/l10n/en.json +1 -46
  168. package/templates/nonprofit-cause/l10n/es.json +0 -387
  169. package/templates/nonprofit-cause/l10n/fi.json +0 -387
  170. package/templates/nonprofit-cause/l10n/fr.json +0 -387
  171. package/templates/nonprofit-cause/l10n/he.json +0 -311
  172. package/templates/nonprofit-cause/l10n/hu.json +0 -387
  173. package/templates/nonprofit-cause/l10n/id.json +0 -387
  174. package/templates/nonprofit-cause/l10n/it.json +0 -387
  175. package/templates/nonprofit-cause/l10n/ja.json +0 -387
  176. package/templates/nonprofit-cause/l10n/ko.json +0 -387
  177. package/templates/nonprofit-cause/l10n/lt.json +0 -387
  178. package/templates/nonprofit-cause/l10n/nl.json +0 -387
  179. package/templates/nonprofit-cause/l10n/no.json +0 -387
  180. package/templates/nonprofit-cause/l10n/pl.json +0 -387
  181. package/templates/nonprofit-cause/l10n/pt.json +0 -387
  182. package/templates/nonprofit-cause/l10n/ru.json +0 -387
  183. package/templates/nonprofit-cause/l10n/sv.json +0 -387
  184. package/templates/nonprofit-cause/l10n/th.json +0 -387
  185. package/templates/nonprofit-cause/l10n/tr.json +0 -387
  186. package/templates/nonprofit-cause/l10n/uk.json +0 -387
  187. package/templates/nonprofit-cause/l10n/vi.json +0 -387
  188. package/templates/nonprofit-cause/l10n/zh.json +0 -387
  189. package/templates/podcast-creator/l10n/ar.json +0 -417
  190. package/templates/podcast-creator/l10n/cs.json +0 -417
  191. package/templates/podcast-creator/l10n/da.json +0 -417
  192. package/templates/podcast-creator/l10n/de.json +0 -417
  193. package/templates/podcast-creator/l10n/el.json +0 -417
  194. package/templates/podcast-creator/l10n/en.json +1 -46
  195. package/templates/podcast-creator/l10n/es.json +0 -417
  196. package/templates/podcast-creator/l10n/fi.json +0 -417
  197. package/templates/podcast-creator/l10n/fr.json +0 -417
  198. package/templates/podcast-creator/l10n/he.json +0 -335
  199. package/templates/podcast-creator/l10n/hu.json +0 -417
  200. package/templates/podcast-creator/l10n/id.json +0 -417
  201. package/templates/podcast-creator/l10n/it.json +0 -417
  202. package/templates/podcast-creator/l10n/ja.json +0 -417
  203. package/templates/podcast-creator/l10n/ko.json +0 -417
  204. package/templates/podcast-creator/l10n/lt.json +0 -417
  205. package/templates/podcast-creator/l10n/nl.json +0 -417
  206. package/templates/podcast-creator/l10n/no.json +0 -417
  207. package/templates/podcast-creator/l10n/pl.json +0 -417
  208. package/templates/podcast-creator/l10n/pt.json +0 -417
  209. package/templates/podcast-creator/l10n/ru.json +0 -417
  210. package/templates/podcast-creator/l10n/sv.json +0 -417
  211. package/templates/podcast-creator/l10n/th.json +0 -417
  212. package/templates/podcast-creator/l10n/tr.json +0 -417
  213. package/templates/podcast-creator/l10n/uk.json +0 -417
  214. package/templates/podcast-creator/l10n/vi.json +0 -417
  215. package/templates/podcast-creator/l10n/zh.json +0 -417
  216. package/templates/portfolio-creative/l10n/ar.json +0 -437
  217. package/templates/portfolio-creative/l10n/cs.json +0 -437
  218. package/templates/portfolio-creative/l10n/da.json +0 -437
  219. package/templates/portfolio-creative/l10n/de.json +0 -437
  220. package/templates/portfolio-creative/l10n/el.json +0 -437
  221. package/templates/portfolio-creative/l10n/en.json +1 -46
  222. package/templates/portfolio-creative/l10n/es.json +0 -437
  223. package/templates/portfolio-creative/l10n/fi.json +0 -437
  224. package/templates/portfolio-creative/l10n/fr.json +0 -437
  225. package/templates/portfolio-creative/l10n/he.json +0 -351
  226. package/templates/portfolio-creative/l10n/hu.json +0 -437
  227. package/templates/portfolio-creative/l10n/id.json +0 -437
  228. package/templates/portfolio-creative/l10n/it.json +0 -437
  229. package/templates/portfolio-creative/l10n/ja.json +0 -437
  230. package/templates/portfolio-creative/l10n/ko.json +0 -437
  231. package/templates/portfolio-creative/l10n/lt.json +0 -437
  232. package/templates/portfolio-creative/l10n/nl.json +0 -437
  233. package/templates/portfolio-creative/l10n/no.json +0 -437
  234. package/templates/portfolio-creative/l10n/pl.json +0 -437
  235. package/templates/portfolio-creative/l10n/pt.json +0 -437
  236. package/templates/portfolio-creative/l10n/ru.json +0 -437
  237. package/templates/portfolio-creative/l10n/sv.json +0 -437
  238. package/templates/portfolio-creative/l10n/th.json +0 -437
  239. package/templates/portfolio-creative/l10n/tr.json +0 -437
  240. package/templates/portfolio-creative/l10n/uk.json +0 -437
  241. package/templates/portfolio-creative/l10n/vi.json +0 -437
  242. package/templates/portfolio-creative/l10n/zh.json +0 -437
  243. package/templates/restaurant/l10n/ar.json +0 -447
  244. package/templates/restaurant/l10n/cs.json +0 -447
  245. package/templates/restaurant/l10n/da.json +0 -447
  246. package/templates/restaurant/l10n/de.json +0 -447
  247. package/templates/restaurant/l10n/el.json +0 -447
  248. package/templates/restaurant/l10n/en.json +1 -46
  249. package/templates/restaurant/l10n/es.json +0 -447
  250. package/templates/restaurant/l10n/fi.json +0 -447
  251. package/templates/restaurant/l10n/fr.json +0 -447
  252. package/templates/restaurant/l10n/he.json +0 -359
  253. package/templates/restaurant/l10n/hu.json +0 -447
  254. package/templates/restaurant/l10n/id.json +0 -447
  255. package/templates/restaurant/l10n/it.json +0 -447
  256. package/templates/restaurant/l10n/ja.json +0 -447
  257. package/templates/restaurant/l10n/ko.json +0 -447
  258. package/templates/restaurant/l10n/lt.json +0 -447
  259. package/templates/restaurant/l10n/nl.json +0 -447
  260. package/templates/restaurant/l10n/no.json +0 -447
  261. package/templates/restaurant/l10n/pl.json +0 -447
  262. package/templates/restaurant/l10n/pt.json +0 -447
  263. package/templates/restaurant/l10n/ru.json +0 -447
  264. package/templates/restaurant/l10n/sv.json +0 -447
  265. package/templates/restaurant/l10n/th.json +0 -447
  266. package/templates/restaurant/l10n/tr.json +0 -447
  267. package/templates/restaurant/l10n/uk.json +0 -447
  268. package/templates/restaurant/l10n/vi.json +0 -447
  269. package/templates/restaurant/l10n/zh.json +0 -447
  270. package/templates/retail-store/l10n/ar.json +0 -462
  271. package/templates/retail-store/l10n/cs.json +0 -462
  272. package/templates/retail-store/l10n/da.json +0 -462
  273. package/templates/retail-store/l10n/de.json +0 -462
  274. package/templates/retail-store/l10n/el.json +0 -462
  275. package/templates/retail-store/l10n/en.json +1 -61
  276. package/templates/retail-store/l10n/es.json +0 -462
  277. package/templates/retail-store/l10n/fi.json +0 -462
  278. package/templates/retail-store/l10n/fr.json +0 -462
  279. package/templates/retail-store/l10n/he.json +0 -371
  280. package/templates/retail-store/l10n/hu.json +0 -462
  281. package/templates/retail-store/l10n/id.json +0 -462
  282. package/templates/retail-store/l10n/it.json +0 -462
  283. package/templates/retail-store/l10n/ja.json +0 -462
  284. package/templates/retail-store/l10n/ko.json +0 -462
  285. package/templates/retail-store/l10n/lt.json +0 -462
  286. package/templates/retail-store/l10n/nl.json +0 -462
  287. package/templates/retail-store/l10n/no.json +0 -462
  288. package/templates/retail-store/l10n/pl.json +0 -462
  289. package/templates/retail-store/l10n/pt.json +0 -462
  290. package/templates/retail-store/l10n/ru.json +0 -462
  291. package/templates/retail-store/l10n/sv.json +0 -462
  292. package/templates/retail-store/l10n/th.json +0 -462
  293. package/templates/retail-store/l10n/tr.json +0 -462
  294. package/templates/retail-store/l10n/uk.json +0 -462
  295. package/templates/retail-store/l10n/vi.json +0 -462
  296. package/templates/retail-store/l10n/zh.json +0 -462
  297. package/templates/yoga-studio/l10n/ar.json +9 -197
  298. package/templates/yoga-studio/l10n/cs.json +9 -197
  299. package/templates/yoga-studio/l10n/da.json +9 -197
  300. package/templates/yoga-studio/l10n/de.json +9 -197
  301. package/templates/yoga-studio/l10n/el.json +9 -197
  302. package/templates/yoga-studio/l10n/en.json +8 -30
  303. package/templates/yoga-studio/l10n/es.json +9 -197
  304. package/templates/yoga-studio/l10n/fi.json +9 -197
  305. package/templates/yoga-studio/l10n/fr.json +9 -197
  306. package/templates/yoga-studio/l10n/he.json +9 -159
  307. package/templates/yoga-studio/l10n/hu.json +9 -197
  308. package/templates/yoga-studio/l10n/id.json +9 -197
  309. package/templates/yoga-studio/l10n/it.json +9 -197
  310. package/templates/yoga-studio/l10n/ja.json +9 -197
  311. package/templates/yoga-studio/l10n/ko.json +9 -197
  312. package/templates/yoga-studio/l10n/lt.json +9 -197
  313. package/templates/yoga-studio/l10n/nl.json +9 -197
  314. package/templates/yoga-studio/l10n/no.json +9 -197
  315. package/templates/yoga-studio/l10n/pl.json +9 -197
  316. package/templates/yoga-studio/l10n/pt.json +9 -197
  317. package/templates/yoga-studio/l10n/ru.json +9 -197
  318. package/templates/yoga-studio/l10n/sv.json +9 -197
  319. package/templates/yoga-studio/l10n/th.json +9 -197
  320. package/templates/yoga-studio/l10n/tr.json +9 -197
  321. package/templates/yoga-studio/l10n/uk.json +9 -197
  322. package/templates/yoga-studio/l10n/vi.json +9 -197
  323. package/templates/yoga-studio/l10n/zh.json +9 -197
  324. package/templates/beauty-salon/recipes/announcement-card.json +0 -72
  325. package/templates/beauty-salon/recipes/blog-hero.json +0 -95
  326. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
  327. package/templates/beauty-salon/recipes/blog-list.json +0 -394
  328. package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
  329. package/templates/beauty-salon/recipes/events-inline.json +0 -309
  330. package/templates/beauty-salon/recipes/faq-list.json +0 -503
  331. package/templates/beauty-salon/recipes/groups-list.json +0 -196
  332. package/templates/beauty-salon/recipes/members-list.json +0 -445
  333. package/templates/beauty-salon/recipes/plans-card.json +0 -811
  334. package/templates/beauty-salon/recipes/products-carousel.json +0 -141
  335. package/templates/beauty-salon/recipes/products-grid.json +0 -143
  336. package/templates/beauty-salon/recipes/programs-card.json +0 -254
  337. package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
  338. package/templates/beauty-salon/recipes/programs-filters.json +0 -94
  339. package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
  340. package/templates/beauty-salon/recipes/section-error.json +0 -58
  341. package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
  342. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
  343. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
  344. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
  345. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
  346. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
  347. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
  348. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
  349. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
  350. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
  351. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
  352. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
  353. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
  354. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
  355. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
  356. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
  357. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
  358. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
  359. package/templates/community-club/recipes/announcement-card.json +0 -72
  360. package/templates/community-club/recipes/blog-hero.json +0 -95
  361. package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
  362. package/templates/community-club/recipes/blog-list.json +0 -394
  363. package/templates/community-club/recipes/blog-see-all.json +0 -50
  364. package/templates/community-club/recipes/events-inline-list.json +0 -228
  365. package/templates/community-club/recipes/events-inline.json +0 -309
  366. package/templates/community-club/recipes/faq-list.json +0 -503
  367. package/templates/community-club/recipes/members-list.json +0 -445
  368. package/templates/community-club/recipes/plans-card.json +0 -811
  369. package/templates/community-club/recipes/products-carousel.json +0 -141
  370. package/templates/community-club/recipes/products-grid.json +0 -143
  371. package/templates/community-club/recipes/programs-card.json +0 -254
  372. package/templates/community-club/recipes/programs-carousel.json +0 -234
  373. package/templates/community-club/recipes/programs-filters.json +0 -94
  374. package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
  375. package/templates/community-club/recipes/programs-see-all.json +0 -43
  376. package/templates/community-club/recipes/section-error.json +0 -58
  377. package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
  378. package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
  379. package/templates/community-club/tier5-src/_shared/detail-presence.ts +0 -51
  380. package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
  381. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
  382. package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
  383. package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
  384. package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
  385. package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
  386. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
  387. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
  388. package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
  389. package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
  390. package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
  391. package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
  392. package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
  393. package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
  394. package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
  395. package/templates/events-meetups/recipes/announcement-card.json +0 -72
  396. package/templates/events-meetups/recipes/blog-hero.json +0 -95
  397. package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
  398. package/templates/events-meetups/recipes/blog-list.json +0 -394
  399. package/templates/events-meetups/recipes/blog-see-all.json +0 -50
  400. package/templates/events-meetups/recipes/events-inline-list.json +0 -228
  401. package/templates/events-meetups/recipes/events-inline.json +0 -309
  402. package/templates/events-meetups/recipes/faq-list.json +0 -503
  403. package/templates/events-meetups/recipes/members-list.json +0 -445
  404. package/templates/events-meetups/recipes/plans-card.json +0 -811
  405. package/templates/events-meetups/recipes/products-carousel.json +0 -141
  406. package/templates/events-meetups/recipes/products-grid.json +0 -143
  407. package/templates/events-meetups/recipes/programs-card.json +0 -254
  408. package/templates/events-meetups/recipes/programs-carousel.json +0 -234
  409. package/templates/events-meetups/recipes/programs-filters.json +0 -94
  410. package/templates/events-meetups/recipes/programs-see-all.json +0 -43
  411. package/templates/events-meetups/recipes/section-error.json +0 -58
  412. package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
  413. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
  414. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
  415. package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
  416. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
  417. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
  418. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
  419. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
  420. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
  421. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
  422. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
  423. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
  424. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
  425. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
  426. package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
  427. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
  428. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
  429. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
  430. package/templates/gym-fitness/recipes/announcement-card.json +0 -72
  431. package/templates/gym-fitness/recipes/blog-hero.json +0 -95
  432. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
  433. package/templates/gym-fitness/recipes/blog-list.json +0 -394
  434. package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
  435. package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
  436. package/templates/gym-fitness/recipes/events-inline.json +0 -309
  437. package/templates/gym-fitness/recipes/faq-list.json +0 -503
  438. package/templates/gym-fitness/recipes/groups-list.json +0 -196
  439. package/templates/gym-fitness/recipes/members-list.json +0 -445
  440. package/templates/gym-fitness/recipes/plans-card.json +0 -811
  441. package/templates/gym-fitness/recipes/products-carousel.json +0 -141
  442. package/templates/gym-fitness/recipes/products-grid.json +0 -143
  443. package/templates/gym-fitness/recipes/programs-card.json +0 -254
  444. package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
  445. package/templates/gym-fitness/recipes/programs-filters.json +0 -94
  446. package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
  447. package/templates/gym-fitness/recipes/section-error.json +0 -58
  448. package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
  449. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
  450. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
  451. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
  452. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
  453. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
  454. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
  455. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
  456. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
  457. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
  458. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
  459. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
  460. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
  461. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
  462. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
  463. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
  464. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
  465. package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
  466. package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
  467. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
  468. package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
  469. package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
  470. package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
  471. package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
  472. package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
  473. package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
  474. package/templates/nonprofit-cause/recipes/members-list.json +0 -445
  475. package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
  476. package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
  477. package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
  478. package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
  479. package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
  480. package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
  481. package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
  482. package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
  483. package/templates/nonprofit-cause/recipes/section-error.json +0 -58
  484. package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
  485. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
  486. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
  487. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
  488. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
  489. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
  490. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
  491. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
  492. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
  493. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
  494. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
  495. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
  496. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
  497. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
  498. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
  499. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
  500. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
  501. package/templates/podcast-creator/recipes/announcement-card.json +0 -72
  502. package/templates/podcast-creator/recipes/blog-hero.json +0 -95
  503. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
  504. package/templates/podcast-creator/recipes/blog-list.json +0 -394
  505. package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
  506. package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
  507. package/templates/podcast-creator/recipes/events-inline.json +0 -309
  508. package/templates/podcast-creator/recipes/faq-list.json +0 -503
  509. package/templates/podcast-creator/recipes/groups-list.json +0 -196
  510. package/templates/podcast-creator/recipes/members-list.json +0 -445
  511. package/templates/podcast-creator/recipes/plans-card.json +0 -811
  512. package/templates/podcast-creator/recipes/products-carousel.json +0 -141
  513. package/templates/podcast-creator/recipes/products-grid.json +0 -143
  514. package/templates/podcast-creator/recipes/programs-card.json +0 -254
  515. package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
  516. package/templates/podcast-creator/recipes/programs-filters.json +0 -94
  517. package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
  518. package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
  519. package/templates/podcast-creator/recipes/section-error.json +0 -58
  520. package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
  521. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
  522. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
  523. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
  524. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
  525. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
  526. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
  527. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
  528. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
  529. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
  530. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
  531. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
  532. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
  533. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
  534. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
  535. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
  536. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
  537. package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
  538. package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
  539. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
  540. package/templates/portfolio-creative/recipes/blog-list.json +0 -394
  541. package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
  542. package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
  543. package/templates/portfolio-creative/recipes/events-inline.json +0 -309
  544. package/templates/portfolio-creative/recipes/faq-list.json +0 -503
  545. package/templates/portfolio-creative/recipes/groups-list.json +0 -196
  546. package/templates/portfolio-creative/recipes/members-list.json +0 -445
  547. package/templates/portfolio-creative/recipes/plans-card.json +0 -811
  548. package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
  549. package/templates/portfolio-creative/recipes/products-grid.json +0 -143
  550. package/templates/portfolio-creative/recipes/programs-card.json +0 -254
  551. package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
  552. package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
  553. package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
  554. package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
  555. package/templates/portfolio-creative/recipes/section-error.json +0 -58
  556. package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
  557. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
  558. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
  559. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
  560. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
  561. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
  562. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
  563. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
  564. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
  565. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
  566. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
  567. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
  568. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
  569. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
  570. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
  571. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
  572. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
  573. package/templates/restaurant/recipes/announcement-card.json +0 -72
  574. package/templates/restaurant/recipes/blog-hero.json +0 -95
  575. package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
  576. package/templates/restaurant/recipes/blog-list.json +0 -394
  577. package/templates/restaurant/recipes/blog-see-all.json +0 -50
  578. package/templates/restaurant/recipes/events-inline-list.json +0 -228
  579. package/templates/restaurant/recipes/events-inline.json +0 -309
  580. package/templates/restaurant/recipes/faq-list.json +0 -503
  581. package/templates/restaurant/recipes/groups-list.json +0 -196
  582. package/templates/restaurant/recipes/members-list.json +0 -445
  583. package/templates/restaurant/recipes/plans-card.json +0 -811
  584. package/templates/restaurant/recipes/products-carousel.json +0 -141
  585. package/templates/restaurant/recipes/products-grid.json +0 -143
  586. package/templates/restaurant/recipes/programs-card.json +0 -254
  587. package/templates/restaurant/recipes/programs-carousel.json +0 -234
  588. package/templates/restaurant/recipes/programs-filters.json +0 -94
  589. package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
  590. package/templates/restaurant/recipes/programs-see-all.json +0 -43
  591. package/templates/restaurant/recipes/section-error.json +0 -58
  592. package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
  593. package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
  594. package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
  595. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
  596. package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
  597. package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
  598. package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
  599. package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
  600. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
  601. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
  602. package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
  603. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
  604. package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
  605. package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
  606. package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
  607. package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
  608. package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
  609. package/templates/retail-store/recipes/announcement-card.json +0 -72
  610. package/templates/retail-store/recipes/blog-hero.json +0 -95
  611. package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
  612. package/templates/retail-store/recipes/blog-list.json +0 -394
  613. package/templates/retail-store/recipes/blog-see-all.json +0 -50
  614. package/templates/retail-store/recipes/events-inline-list.json +0 -228
  615. package/templates/retail-store/recipes/events-inline.json +0 -309
  616. package/templates/retail-store/recipes/faq-list.json +0 -503
  617. package/templates/retail-store/recipes/groups-list.json +0 -196
  618. package/templates/retail-store/recipes/members-list.json +0 -445
  619. package/templates/retail-store/recipes/plans-card.json +0 -811
  620. package/templates/retail-store/recipes/products-carousel.json +0 -141
  621. package/templates/retail-store/recipes/products-grid.json +0 -143
  622. package/templates/retail-store/recipes/programs-card.json +0 -254
  623. package/templates/retail-store/recipes/programs-carousel.json +0 -234
  624. package/templates/retail-store/recipes/programs-filters.json +0 -94
  625. package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
  626. package/templates/retail-store/recipes/programs-see-all.json +0 -43
  627. package/templates/retail-store/recipes/section-error.json +0 -58
  628. package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
  629. package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
  630. package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
  631. package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
  632. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
  633. package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
  634. package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
  635. package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
  636. package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
  637. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
  638. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
  639. package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
  640. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
  641. package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
  642. package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
  643. package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
  644. package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
  645. package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
  646. package/templates/yoga-studio/recipes/announcement-card.json +0 -72
  647. package/templates/yoga-studio/recipes/blog-hero.json +0 -95
  648. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
  649. package/templates/yoga-studio/recipes/blog-list.json +0 -394
  650. package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
  651. package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
  652. package/templates/yoga-studio/recipes/events-inline.json +0 -309
  653. package/templates/yoga-studio/recipes/faq-list.json +0 -503
  654. package/templates/yoga-studio/recipes/groups-list.json +0 -196
  655. package/templates/yoga-studio/recipes/members-list.json +0 -445
  656. package/templates/yoga-studio/recipes/plans-card.json +0 -811
  657. package/templates/yoga-studio/recipes/products-carousel.json +0 -141
  658. package/templates/yoga-studio/recipes/products-grid.json +0 -143
  659. package/templates/yoga-studio/recipes/programs-card.json +0 -254
  660. package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
  661. package/templates/yoga-studio/recipes/programs-filters.json +0 -94
  662. package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
  663. package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
  664. package/templates/yoga-studio/recipes/section-error.json +0 -58
  665. package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
  666. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
  667. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
  668. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
  669. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
  670. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
  671. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
  672. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
  673. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
  674. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
  675. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
  676. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
  677. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
  678. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
  679. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
  680. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
  681. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
@@ -1,175 +0,0 @@
1
- // What a members-directory row shows beyond name and photo: the role line, the member's badges and the
2
- // Follow control. One call per page for each source, and none of it may fail the directory: a refused or
3
- // failed read leaves that row element out (no chip, a plain Follow), never an error in place of the list.
4
- import { query as queryBadges, queryBadgeAssignments, type WixBadge } from "@himalaya/wix-badges";
5
- import { getMyMember, listFollowedMembers, queryMemberActivity } from "@himalaya/wix-members";
6
- import { compareIso } from "./engine-intl.js";
7
- import { copyParam } from "./himi-copy.js";
8
- import { activityText } from "./member-activity.js";
9
- import type { ReadAccess } from "./member-read.js";
10
-
11
- /** The One App row draws ONE badge chip and a "+N" chip for the rest. */
12
- const MAX_BADGE_CHIPS = 1;
13
- const PAGE_LIMIT = 100;
14
- const CATALOG_PAGES = 5;
15
- const ASSIGNMENT_PAGES = 10;
16
- /** The chip's text is white (`textOnAccent`); this is the least contrast it may have against the badge colour. */
17
- const MIN_CONTRAST = 3;
18
-
19
- export interface MemberRowExtras {
20
- /** Role line, then the last-active line when there is one. The role line reads "Member" for everyone: the activity route
21
- * also answers a role (an admin's is "ADMIN"), but the One App's wording for the other roles is not recorded here,
22
- * so none is guessed. */
23
- subtitle: string;
24
- badgeTitle: string; badgeColor: string; noBadge: boolean;
25
- badgeMore: string; noBadgeMore: boolean;
26
- followLabel: string; isFollowing: boolean;
27
- /** Hidden for a Visitor (who gets the sign-in variant) and on the signed-in member's own row. */
28
- hideFollow: boolean;
29
- /** Only a Visitor sees this one: Follow needs a member, so the tap opens sign-in. */
30
- hideSignInFollow: boolean;
31
- }
32
-
33
- export function followLabel(isFollowing: boolean): string {
34
- return copyParam(isFollowing ? "members.followingCta" : "members.followCta", isFollowing ? "Following" : "Follow");
35
- }
36
-
37
- interface BadgeInfo { title: string; color: string; rank: number }
38
-
39
- function hexRgb(value: string | undefined): [number, number, number] | undefined {
40
- const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((value ?? "").trim());
41
- if (!m) return undefined;
42
- const h = m[1].length === 3 ? m[1].split("").map(c => c + c).join("") : m[1];
43
- return [0, 2, 4].map(i => parseInt(h.slice(i, i + 2), 16)) as [number, number, number];
44
- }
45
- function luminance([r, g, b]: [number, number, number]): number {
46
- const lin = (v: number) => { const c = v / 255; return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4); };
47
- return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
48
- }
49
- /** The badge colour as `#rrggbb`, darkened until white text on it reads (a pastel chip would otherwise
50
- * lose its label in one of the two themes). "" when the badge carries no usable colour, so the row's
51
- * token background shows instead. */
52
- export function chipColor(value: string | undefined): string {
53
- let rgb = hexRgb(value);
54
- if (!rgb) return "";
55
- while ((1.05 / (luminance(rgb) + 0.05)) < MIN_CONTRAST && (rgb[0] || rgb[1] || rgb[2])) {
56
- rgb = rgb.map(c => Math.floor(c * 0.9)) as [number, number, number];
57
- }
58
- return "#" + rgb.map(c => c.toString(16).padStart(2, "0")).join("");
59
- }
60
-
61
- let catalogTenant = "";
62
- let catalog: Map<string, BadgeInfo> | undefined;
63
-
64
- /** The site's badges, newest first: that is the order the One App picks a member's first chip in. */
65
- async function badgeCatalog(tenant: string): Promise<Map<string, BadgeInfo>> {
66
- if (catalog && catalogTenant === tenant) return catalog;
67
- const badges: WixBadge[] = [];
68
- let cursor: string | undefined;
69
- for (let page = 0; page < CATALOG_PAGES; page++) {
70
- const res = await queryBadges({ query: { cursorPaging: cursor ? { cursor } : { limit: PAGE_LIMIT } } });
71
- badges.push(...(res.badges ?? []));
72
- cursor = res.pagingMetadata?.hasNext ? res.pagingMetadata.cursors?.next : undefined;
73
- if (!cursor) break;
74
- }
75
- if (cursor) throw new Error("Badge catalog is longer than the pages read");
76
- const newestFirst = badges.filter(b => b.id && b.title?.trim())
77
- .sort((a, b) => compareIso(String(b.createdDate ?? ""), String(a.createdDate ?? "")));
78
- catalogTenant = tenant;
79
- return catalog = new Map(newestFirst.map((b, rank) => [b.id as string, { title: (b.title as string).trim(), color: chipColor(b.backgroundColor), rank }]));
80
- }
81
-
82
- /** memberId → badge ids, for the page's members. A cursor request carries the cursor alone: the service
83
- * refuses (400) a follow-up page that repeats the filter or the limit. A page the pages cap cuts short is refused whole: a
84
- * partial list would show the wrong first chip and a wrong "+N". */
85
- export async function badgesByMember(ids: string[]): Promise<Map<string, string[]>> {
86
- const byMember = new Map<string, string[]>();
87
- let cursor: string | undefined;
88
- for (let page = 0; page < ASSIGNMENT_PAGES; page++) {
89
- const res = await queryBadgeAssignments({ query: cursor ? { cursorPaging: { cursor } } : { filter: { memberId: { $in: ids } }, cursorPaging: { limit: PAGE_LIMIT } } });
90
- for (const a of res.badgeAssignments ?? []) {
91
- if (!a.memberId || !a.badgeId) continue;
92
- const held = byMember.get(a.memberId) ?? [];
93
- held.push(a.badgeId); byMember.set(a.memberId, held);
94
- }
95
- cursor = res.pagingMetadata?.hasNext ? res.pagingMetadata.cursors?.next : undefined;
96
- if (!cursor) return byMember;
97
- }
98
- throw new Error("Badge assignments are longer than the pages read");
99
- }
100
-
101
- async function readBadges(ids: string[], tenant: string): Promise<Map<string, BadgeInfo[]>> {
102
- const [known, held] = await Promise.all([badgeCatalog(tenant), badgesByMember(ids)]);
103
- const result = new Map<string, BadgeInfo[]>();
104
- for (const [memberId, badgeIds] of held) {
105
- const badges = badgeIds.map(id => known.get(id)).filter((b): b is BadgeInfo => !!b).sort((a, b) => a.rank - b.rank);
106
- if (badges.length) result.set(memberId, badges);
107
- }
108
- return result;
109
- }
110
-
111
- /** memberId → "Active 11h ago" etc., for the members the One App service knows and has something to say about.
112
- * An older native build refuses the route; that leaves the activity line out and nothing else. */
113
- export async function readActivity(ids: string[]): Promise<Map<string, string>> {
114
- return (await readMemberActivity(ids)).texts;
115
- }
116
-
117
- /** The same read, plus the members the service answered for: one it answered for with nothing to say (never opened the app) is
118
- * known and shows no line, which is different from one it did not answer for at all. */
119
- export async function readMemberActivity(ids: string[]): Promise<{ texts: Map<string, string>; known: Set<string> }> {
120
- const texts = new Map<string, string>();
121
- const known = new Set<string>();
122
- for (const activity of await queryMemberActivity(ids)) {
123
- known.add(activity.id);
124
- const text = activityText(activity);
125
- if (text) texts.set(activity.id, text);
126
- }
127
- return { texts, known };
128
- }
129
-
130
- async function readFollowed(ids: string[], access: ReadAccess): Promise<Set<string>> {
131
- // Follow state is the signed-in member's own; a Visitor has none to read.
132
- return access.member.email ? new Set(await listFollowedMembers(ids)) : new Set();
133
- }
134
-
135
- let selfScope = "";
136
- let selfId = "";
137
- async function ownMemberId(access: ReadAccess): Promise<string> {
138
- if (!access.member.email) return "";
139
- const scope = JSON.stringify([access.tenant, access.member.email]);
140
- if (selfScope !== scope) {
141
- const id = (await getMyMember({ fieldsets: ["PUBLIC"] })).member?.id ?? "";
142
- // An answer without a member is not a lookup to remember: the next page asks again, so the member's own row
143
- // does not keep a Follow button for the rest of the session.
144
- if (!id) return "";
145
- selfId = id;
146
- selfScope = scope;
147
- }
148
- return selfId;
149
- }
150
-
151
- const attempt = async <T>(read: Promise<T>, fallback: T): Promise<T> => { try { return await read; } catch { return fallback; } };
152
-
153
- /** The per-row extras for one page of members. Each source fails on its own. */
154
- export async function memberRowExtras(ids: string[], access: ReadAccess): Promise<(id: string) => MemberRowExtras> {
155
- const [badges, activity, followed, self] = await Promise.all([
156
- attempt(readBadges(ids, access.tenant), new Map<string, BadgeInfo[]>()),
157
- attempt(readActivity(ids), new Map<string, string>()),
158
- attempt(readFollowed(ids, access), new Set<string>()),
159
- attempt(ownMemberId(access), ""),
160
- ]);
161
- const visitor = !access.member.email;
162
- const role = copyParam("members.roleMember", "Member");
163
- return (id) => {
164
- const held = badges.get(id) ?? [];
165
- const more = held.length - MAX_BADGE_CHIPS;
166
- const isFollowing = followed.has(id);
167
- return {
168
- subtitle: [role, activity.get(id)].filter(Boolean).join(" · "),
169
- badgeTitle: held[0]?.title ?? "", badgeColor: held[0]?.color ?? "", noBadge: !held.length,
170
- badgeMore: more > 0 ? `+${more}` : "", noBadgeMore: more <= 0,
171
- followLabel: followLabel(isFollowing), isFollowing,
172
- hideFollow: visitor || id === self, hideSignInFollow: !visitor,
173
- };
174
- };
175
- }
@@ -1,39 +0,0 @@
1
- // The pure pieces of a members directory row: the activity line and a badge's theme color. No SDK imports, so they run
2
- // (and are tested) outside a worker bundle.
3
- import { copyParam, copyTemplate } from "./himi-copy.js";
4
- import { formatDateMedium } from "./engine-intl.js";
5
-
6
- const MINUTE = 60_000;
7
- const HOUR = 60 * MINUTE;
8
- const DAY = 24 * HOUR;
9
-
10
- /** Theme colors a badge's own color is matched to: the descriptor takes a token name, never a hex. */
11
- const TOKEN_COLORS: Array<[token: string, rgb: [number, number, number]]> = [
12
- ["accentPrimary", [47, 125, 225]], ["success", [46, 157, 87]], ["warning", [224, 161, 0]],
13
- ["danger", [214, 69, 69]], ["textSecondary", [107, 114, 128]],
14
- ];
15
- /** The theme color closest to a badge's hex background; a color that is not a hex is the neutral one. */
16
- export function badgeToken(hex: string | undefined): string {
17
- const match = /^#?([0-9a-f]{6})$/i.exec((hex ?? "").trim());
18
- if (!match) return "textSecondary";
19
- const value = parseInt(match[1]!, 16);
20
- const rgb = [(value >> 16) & 255, (value >> 8) & 255, value & 255];
21
- let best = TOKEN_COLORS[0]!;
22
- let bestDistance = Infinity;
23
- for (const entry of TOKEN_COLORS) {
24
- const distance = entry[1].reduce((sum, channel, i) => sum + (channel - rgb[i]!) ** 2, 0);
25
- if (distance < bestDistance) { best = entry; bestDistance = distance; }
26
- }
27
- return best[0];
28
- }
29
-
30
- /** "Active 11h ago" within a day, "Last seen <date>" after; "" with no login date (or one in the future). */
31
- export function activityLine(lastLogin: string | undefined, now: number): string {
32
- const at = lastLogin ? Date.parse(lastLogin) : NaN;
33
- if (!Number.isFinite(at) || at > now) return "";
34
- const age = now - at;
35
- if (age < MINUTE) return copyParam("members.activeNow", "Active now");
36
- if (age < HOUR) return copyTemplate("members.activeMinutes", "Active {n}m ago", { n: Math.floor(age / MINUTE) });
37
- if (age < DAY) return copyTemplate("members.activeHours", "Active {n}h ago", { n: Math.floor(age / HOUR) });
38
- return copyTemplate("members.lastSeen", "Last seen {date}", { date: formatDateMedium(new Date(at)) });
39
- }
@@ -1,271 +0,0 @@
1
- // Public site-member directory as a registrable service. Search, sorting, totals and offset paging match OneApp's
2
- // Members v1 query; no owner roster or build-time count is substituted. The One App row's extras are opt-in and each
3
- // is read defensively: the role line ("Member · Active 11h ago" / "Last seen Nov 6, 2025"), the member's badges as
4
- // colored chips with a "+N" overflow, and a Follow control. A fact the site does not return is hidden, never invented.
5
- import { defineService } from "@himalaya/state";
6
- import { queryMembers, getMyFollowing, followMember, unfollowMember, type WixMember } from "@himalaya/wix-members";
7
- import { query as queryBadges, type WixBadge } from "@himalaya/wix-badges";
8
- import { wixMediaUrl, type WixImageSize } from "@himalaya/wix-media";
9
- import { createCollectionQuery } from "./collection-query.js";
10
- import { readAccess, assertReadAccess, readAccessDenied, type ReadAccess } from "./member-read.js";
11
- import { memberAccessChanged } from "./member-access.js";
12
- // The paged badge-assignments read (POST /badges/v4/assignments/query; the generated listMembersBadgeIds route answers 404 live).
13
- import { badgesByMember, readMemberActivity } from "./member-row-extras.js";
14
- import { withEmptyFlags } from "./empty-flags.js";
15
- import { stashCopy, copyParam, copyTemplate, copyPlural } from "./himi-copy.js";
16
- import { activityLine, badgeToken } from "./members-directory-view.js";
17
-
18
- export interface MembersDirectoryOptions {
19
- /** "Member" under the name. */
20
- showRole?: boolean;
21
- /** "Active 11h ago" / "Last seen <date>", from the member's last login. */
22
- showActivity?: boolean;
23
- /** The member's badges as colored chips (the first three and a "+N"). */
24
- showBadges?: boolean;
25
- /** A Follow control on each row. */
26
- showFollow?: boolean;
27
- /** A letter heading above each initial's group. Default on. */
28
- letterBands?: boolean;
29
- }
30
-
31
- /** A 40pt row avatar, at 3x: a Wix media reference becomes a fetchable, avatar-sized URL. */
32
- const AVATAR_IMAGE: WixImageSize = { width: 120, height: 120, quality: 85 };
33
- /** One chip and a "+N" for the rest, as the original shows: three chips in the name column collapsed the third into a tall thin bar on a device. */
34
- const BADGE_SLOTS = 1;
35
- const BADGE_PAGE = 100;
36
- /** How many catalog pages are read before the catalog is refused as too long. */
37
- const BADGE_PAGES = 5;
38
- interface Chip { id: string; label: string; token: string }
39
- interface Row {
40
- id: string; name: string; subtitle: string; initial: string; photo: string; sectionTitle: string;
41
- role: string; hasRole: boolean; activity: string; hasActivity: boolean; roleLine: string; hasRoleLine: boolean; noRoleLine: boolean;
42
- badges: Chip[]; hasBadges: boolean; noBadges: boolean; badgeOverflow: string; hasOverflow: boolean; noOverflow: boolean;
43
- badge1Label: string; badge1Token: string; hasBadge1: boolean; noBadge1: boolean;
44
- canFollow: boolean; noFollow: boolean; isFollowing: boolean; followLabel: string;
45
- }
46
- interface S {
47
- status: "loading" | "ready" | "error";
48
- members: Row[]; emptyText: string;
49
- query: string; total: number | null; searchLabel: string; searchPlaceholder: string;
50
- nextCursor: string; noMore: boolean; noPageError: boolean;
51
- error: string; notErrored: boolean; notLoading: boolean; hideSearch: boolean;
52
- actionMessage: string;
53
- }
54
- const PAGE_SIZE = 50;
55
- const SEARCH_FIELDS = ["contact.firstName", "contact.lastName", "profile.nickname"];
56
-
57
- function name(m: WixMember): string {
58
- const nick = m.profile?.nickname?.trim();
59
- if (nick) return nick;
60
- const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
61
- return full || "Member";
62
- }
63
-
64
- /** What the page's extra reads found: unknown stays absent. */
65
- interface Extras { badges: Map<string, Chip[]>; following: Set<string> | undefined; /** "Active 4h ago" / "Last seen …" per member from the One App members service, and the members it answered for. */ activity: { texts: Map<string, string>; known: Set<string> } | undefined }
66
-
67
- export function registerMembersDirectory(serviceName: string, options: MembersDirectoryOptions = {}) {
68
- const letterBands = options.letterBands !== false;
69
- let directoryAccess: ReadAccess | undefined;
70
- // Set once the reader has typed a search: from then on the field stays mounted, even while a cleared search
71
- // reloads the full directory (no rows, no query yet), so it never unmounts and loses focus mid-edit.
72
- let searched = false;
73
- let badgeCatalog: Map<string, Chip> | undefined;
74
- // Follow state the reader has changed here, by member id.
75
- const followed = new Map<string, boolean>();
76
- let notice = "";
77
- let signedIn = false;
78
-
79
- async function badgeDefinitions(): Promise<Map<string, Chip>> {
80
- if (badgeCatalog) return badgeCatalog;
81
- // A cursor request carries the cursor alone (the service refuses one that repeats the limit). A catalog longer than the pages read is
82
- // refused whole: a partial one would drop chips from members who hold the badges past it, with no sign.
83
- const badges: WixBadge[] = [];
84
- let cursor: string | undefined;
85
- for (let page = 0; page < BADGE_PAGES; page++) {
86
- const response = await queryBadges({ query: { cursorPaging: cursor ? { cursor } : { limit: BADGE_PAGE } } });
87
- badges.push(...(response.badges ?? []));
88
- // hasNext with no next cursor is an incomplete answer, not the end: refuse it rather than accept a partial catalog.
89
- if (response.pagingMetadata?.hasNext && !response.pagingMetadata.cursors?.next) throw new Error("Badge catalog page is incomplete (hasNext without a cursor)");
90
- cursor = response.pagingMetadata?.hasNext ? response.pagingMetadata.cursors?.next : undefined;
91
- if (!cursor) break;
92
- }
93
- if (cursor) throw new Error("Badge catalog is longer than the pages read");
94
- badgeCatalog = new Map(badges.filter((b: WixBadge) => b.id && b.title).map((b: WixBadge) => [b.id as string, { id: b.id as string, label: b.title as string, token: badgeToken(b.backgroundColor) }]));
95
- return badgeCatalog;
96
- }
97
-
98
- async function extrasFor(members: WixMember[], member: boolean): Promise<Extras> {
99
- const ids = members.map((m) => m.id);
100
- const badges = new Map<string, Chip[]>();
101
- const [badgeRead, followRead, activityRead] = await Promise.allSettled([
102
- options.showBadges ? Promise.all([badgeDefinitions(), badgesByMember(ids)]) : Promise.resolve(undefined),
103
- options.showFollow && member ? getMyFollowing(ids) : Promise.resolve(undefined),
104
- options.showActivity ? readMemberActivity(ids) : Promise.resolve(undefined),
105
- ]);
106
- // A badge or follow read that fails leaves its chips off the rows; the list itself still loads.
107
- if (badgeRead.status === "rejected") console.warn("members_directory: the badges could not be read", badgeRead.reason);
108
- if (followRead.status === "rejected") console.warn("members_directory: the follow state could not be read", followRead.reason);
109
- if (activityRead.status === "rejected") console.warn("members_directory: the activity could not be read", activityRead.reason);
110
- if (badgeRead.status === "fulfilled" && badgeRead.value) {
111
- const [catalog, held] = badgeRead.value;
112
- for (const [memberId, badgeIds] of held) {
113
- const chips = badgeIds.flatMap((id) => catalog.get(id) ?? []);
114
- if (chips.length) badges.set(memberId, chips);
115
- }
116
- }
117
- return { badges, following: followRead.status === "fulfilled" ? followRead.value : undefined, activity: activityRead.status === "fulfilled" ? activityRead.value : undefined };
118
- }
119
-
120
- function row(m: WixMember, extras: Extras, now: number): Row {
121
- const n = name(m);
122
- const role = options.showRole ? copyParam("members.roleMember", "Member") : "";
123
- // The One App members service answers "Active 4h ago" / "Last seen …" for the page. A member it answered for with nothing to say shows no line;
124
- // the login date is only for a member it did not answer for (an older native build refuses the route).
125
- const activity = !options.showActivity ? "" : extras.activity?.known.has(m.id) ? extras.activity.texts.get(m.id) ?? "" : activityLine(m.lastLoginDate, now);
126
- const roleLine = [role, activity].filter(Boolean).join(" · ");
127
- const chips = extras.badges.get(m.id) ?? [];
128
- const shown = chips.slice(0, BADGE_SLOTS);
129
- const overflow = chips.length > BADGE_SLOTS ? `+${chips.length - BADGE_SLOTS}` : "";
130
- const slot = (i: number) => ({ label: shown[i]?.label ?? "", token: shown[i]?.token ?? "textSecondary", has: !!shown[i] });
131
- const b1 = slot(0);
132
- const isFollowing = followed.get(m.id) ?? extras.following?.has(m.id) ?? false;
133
- // Login emails are not directory subtitles. Only public profile content is presented.
134
- return {
135
- id: m.id, name: n, subtitle: "", initial: (n[0] || "#").toUpperCase(), photo: wixMediaUrl(m.profile?.photo?.url, AVATAR_IMAGE) || wixMediaUrl(m.profile?.photo?.id, AVATAR_IMAGE) || "", sectionTitle: "",
136
- role, hasRole: !!role, activity, hasActivity: !!activity, roleLine, hasRoleLine: !!roleLine, noRoleLine: !roleLine,
137
- badges: chips, hasBadges: chips.length > 0, noBadges: chips.length === 0, badgeOverflow: overflow, hasOverflow: !!overflow, noOverflow: !overflow,
138
- badge1Label: b1.label, badge1Token: b1.token, hasBadge1: b1.has, noBadge1: !b1.has,
139
- canFollow: !!options.showFollow, noFollow: !options.showFollow, isFollowing,
140
- followLabel: options.showFollow ? isFollowing ? copyParam("members.following", "Following") : copyParam("members.follow", "Follow") : "",
141
- };
142
- }
143
-
144
- /** A row with the reader's own follow change applied: it wins over a page read that raced the write. */
145
- const withFollow = (item: Row): Row => {
146
- const isFollowing = followed.get(item.id);
147
- if (isFollowing === undefined || !item.canFollow) return item;
148
- return { ...item, isFollowing, followLabel: isFollowing ? copyParam("members.following", "Following") : copyParam("members.follow", "Follow") };
149
- };
150
-
151
- function sections(rows: Row[]): Row[] {
152
- if (!letterBands) return rows;
153
- const groups = new Map<string, Row[]>();
154
- for (const item of rows) {
155
- const group = groups.get(item.initial) ?? [];
156
- group.push(item); groups.set(item.initial, group);
157
- }
158
- return [...groups.keys()].sort().flatMap(letter => groups.get(letter)!.map((item, index) => ({ ...item, sectionTitle: index ? "" : letter })));
159
- }
160
-
161
- const directory = createCollectionQuery<Row>({
162
- id: item => item.id,
163
- clearOnError: readAccessDenied,
164
- errorMessage: (error) => {
165
- console.warn("members_directory: the members could not be read", error);
166
- return copyParam("members.loadError", "Members couldn't be loaded.");
167
- },
168
- async fetch(criteria, cursor) {
169
- const offset = cursor ? Number(cursor) : 0;
170
- if (!Number.isSafeInteger(offset) || offset < 0) throw new Error("Invalid member page offset");
171
- const access = cursor ? directoryAccess : await readAccess();
172
- if (!access) throw memberAccessChanged();
173
- // A first-page read replaces the reader's own follow taps with what the server says: they must not outlive the session or the reader.
174
- if (!cursor) { directoryAccess = access; followed.clear(); }
175
- await assertReadAccess(access);
176
- const response = await queryMembers({ query: {
177
- filter: { status: "APPROVED", privacyStatus: "PUBLIC" },
178
- sorting: [{ fieldName: "profile.nickname", order: "ASC" }],
179
- paging: { limit: PAGE_SIZE, offset },
180
- }, ...(criteria.query ? { search: { expression: criteria.query, fields: SEARCH_FIELDS } } : {}) });
181
- await assertReadAccess(access);
182
- if (access !== directoryAccess) throw memberAccessChanged();
183
- if (!Array.isArray(response.members) || response.members.some(member => !member?.id)) throw new Error("Invalid member page");
184
- const metadata = response.metadata;
185
- if (metadata?.offset !== undefined && metadata.offset !== offset) throw new Error("Mismatched member page offset");
186
- const total = !metadata?.tooManyToCount && typeof metadata?.total === "number" && Number.isSafeInteger(metadata.total) && metadata.total >= 0
187
- ? metadata.total : undefined;
188
- const next = offset + response.members.length;
189
- if (!response.members.length && total !== undefined && total > next) throw new Error("Incomplete member page");
190
- signedIn = !!access.member.email;
191
- const extras = await extrasFor(response.members, signedIn);
192
- const now = Date.now();
193
- return {
194
- items: response.members.map(member => row(member, extras, now)), total,
195
- nextCursor: response.members.length && (total === undefined ? response.members.length === PAGE_SIZE : next < total) ? String(next) : "",
196
- };
197
- },
198
- }, () => { void svc.changed(); });
199
-
200
- function project(): S {
201
- const page = directory.getState();
202
- const loading = page.status === "idle" || page.status === "loading";
203
- const total = page.total ?? null;
204
- const failed = page.status === "error";
205
- return {
206
- status: failed ? "error" : loading ? "loading" : "ready",
207
- members: sections(page.items.map(withFollow)), query: page.criteria.query, total,
208
- searchLabel: total === null ? "" : copyPlural("members.countLabel", "{n, plural, one {# member} other {# members}}", total),
209
- searchPlaceholder: total === null ? "" : copyTemplate("members.searchWithCount", "Search {count} members", { count: total }),
210
- emptyText: page.status === "ready" && !page.items.length ? page.criteria.query ? copyParam("members.emptyNoResults", "No results") : copyParam("members.emptyTitle", "No members yet") : "",
211
- nextCursor: loading || page.loadingMore || page.pageError ? "" : page.nextCursor,
212
- noMore: !page.nextCursor || loading || page.loadingMore || page.pageError,
213
- noPageError: !page.pageError,
214
- error: page.error, notErrored: !failed,
215
- // The skeleton stands in for rows that are not there yet; a typed search keeps the previous rows on screen
216
- // while its response is in flight, so it must not paint skeletons above them.
217
- notLoading: !(loading && !page.items.length),
218
- // A successful empty SEARCH keeps its field reachable (to clear the query); a directory that is
219
- // loading or truly empty (no query, no rows) has nothing to search.
220
- hideSearch: failed || (!page.items.length && !page.criteria.query && !searched),
221
- actionMessage: notice,
222
- };
223
- }
224
-
225
- const pendingFollows = new Set<string>();
226
- const svc = defineService<S, {
227
- load: (s: S, arg?: unknown) => Promise<undefined>;
228
- filter: (s: S, arg?: unknown) => Promise<undefined>;
229
- loadMore: (s: S) => Promise<undefined>;
230
- retry: (s: S) => Promise<undefined>;
231
- follow: (s: S, arg?: unknown) => Promise<S>;
232
- changed: (s: S) => S;
233
- }>(serviceName, withEmptyFlags({
234
- state: { status: "loading", members: [], emptyText: "", query: "", total: null, searchLabel: "", searchPlaceholder: "", nextCursor: "", noMore: true, noPageError: true,
235
- error: "", notErrored: true, notLoading: false, hideSearch: true, actionMessage: "" },
236
- // A restored worker must re-read the current reader/site before showing a roster.
237
- notHydrated: ["status", "members", "emptyText", "query", "total", "searchLabel", "searchPlaceholder", "nextCursor", "noMore", "noPageError", "error", "notErrored", "notLoading", "hideSearch", "actionMessage"],
238
- actions: {
239
- // The screen's onAppear fires on every re-appear (back from a profile): a directory that already loaded keeps its pages and scroll
240
- // position. Only an empty or failed one reads; retry always does.
241
- load: async (_s, arg) => { stashCopy(arg); const loaded = directory.getState(); if (loaded.status !== "ready" || !loaded.items.length) await directory.query(loaded.criteria); return undefined; },
242
- filter: async (_s, arg) => {
243
- const value = typeof arg === "string" ? arg : (arg as { value?: unknown })?.value;
244
- if (typeof value === "string" && value.trim()) searched = true;
245
- await directory.query({ query: typeof value === "string" ? value : "" }); return undefined;
246
- },
247
- loadMore: async () => { await directory.loadMore(); return undefined; },
248
- retry: async () => { await directory.retry(); return undefined; },
249
- // The row's Follow / Following toggle. A visitor is asked to sign in; the write is confirmed before the label flips.
250
- follow: async (_s, arg) => {
251
- const id = (arg as { id?: unknown } | undefined)?.id;
252
- if (typeof id !== "string" || !id || !options.showFollow || pendingFollows.has(id)) return project();
253
- if (!signedIn) { notice = copyParam("members.followSignIn", "Sign in to follow members."); return project(); }
254
- const current = directory.getState().items.find((item) => item.id === id);
255
- const following = followed.get(id) ?? current?.isFollowing ?? false;
256
- pendingFollows.add(id);
257
- try {
258
- if (following) await unfollowMember(id); else await followMember(id);
259
- followed.set(id, !following);
260
- notice = "";
261
- } catch {
262
- notice = copyParam("members.followFailed", "Couldn't update. Try again.");
263
- } finally { pendingFollows.delete(id); }
264
- return project();
265
- },
266
- changed: () => project(),
267
- },
268
- }, { members: "noMembers" }));
269
- // No load at registration: the page's onAppear loads (with the copy pack), so a page-hosted service reads only when its section appears.
270
- return svc;
271
- }
@@ -1,87 +0,0 @@
1
- // What a pricing plan says about itself, in the viewer's language: the price cadence / validity line and the
2
- // plan-detail facts (terms, cancellation, purchase limit, start date). Shared by every worker that shows a plan
3
- // (the plans list and detail, the inline plans section) so one plan reads the same everywhere.
4
- //
5
- // Each duration phrase is ONE plural key per unit, so a translation fits the whole phrase ("por 10 años") instead of
6
- // gluing translated words around English ones. Its English fallback is the wording the workers always had.
7
- import type { WixPlan } from "@himalaya/wix-pricing-plans";
8
- import { copyParam, copyPlural, copyTemplate } from "./himi-copy.js";
9
-
10
- type PlanUnit = "day" | "week" | "month" | "year";
11
- const UNITS: readonly PlanUnit[] = ["day", "week", "month", "year"];
12
- const unitKey = (unit: PlanUnit) => unit[0]!.toUpperCase() + unit.slice(1);
13
-
14
- // The English wording per unit, as LITERALS: a pinned-language build finds a worker's translatable text by looking for the
15
- // catalog's English source as a string literal in the bundle, which a pattern assembled from the unit would never be.
16
- const VALID_FOR: Record<PlanUnit, string> = {
17
- day: "{n, plural, one {for # day} other {for # days}}",
18
- week: "{n, plural, one {for # week} other {for # weeks}}",
19
- month: "{n, plural, one {for # month} other {for # months}}",
20
- year: "{n, plural, one {for # year} other {for # years}}",
21
- };
22
- const EVERY: Record<PlanUnit, string> = {
23
- day: "{n, plural, one {per day} other {every # days}}",
24
- week: "{n, plural, one {per week} other {every # weeks}}",
25
- month: "{n, plural, one {per month} other {every # months}}",
26
- year: "{n, plural, one {per year} other {every # years}}",
27
- };
28
-
29
- /** Wix durations name their unit "DAY" / "WEEKS" …: the singular lower-case noun. */
30
- function singularUnit(unit?: string): string {
31
- return (unit || "").toLowerCase().replace(/s$/, "");
32
- }
33
-
34
- /** "for 10 years" — a one-time plan valid for a fixed duration. */
35
- function validFor(count: number, unit: string): string {
36
- const known = UNITS.find((candidate) => candidate === unit);
37
- if (!known) return `for ${count} ${unit}${count === 1 ? "" : "s"}`;
38
- return copyPlural(`plans.validFor${unitKey(known)}`, VALID_FOR[known], count);
39
- }
40
-
41
- /** "per month" / "every 3 months" — a subscription's billing cycle. */
42
- export function every(count: number, unit: string): string {
43
- const known = UNITS.find((candidate) => candidate === unit);
44
- if (!known) return count === 1 ? `per ${unit}` : `every ${count} ${unit}s`;
45
- return copyPlural(`plans.every${unitKey(known)}`, EVERY[known], count);
46
- }
47
-
48
- /** The cadence or validity line under a price; "" when the plan names none. */
49
- export function planPeriodLine(plan: WixPlan): string {
50
- const pricing = plan.pricing;
51
- if (pricing?.subscription?.cycleDuration) {
52
- const count = pricing.subscription.cycleDuration.count ?? 0;
53
- const unit = singularUnit(pricing.subscription.cycleDuration.unit);
54
- return count && unit ? every(count, unit) : copyParam("plans.periodRecurring", "recurring");
55
- }
56
- if (pricing?.singlePaymentForDuration) {
57
- const count = pricing.singlePaymentForDuration.count ?? 0;
58
- const unit = singularUnit(pricing.singlePaymentForDuration.unit);
59
- return count && unit ? validFor(count, unit) : copyParam("plans.oneTimeFact", "one-time");
60
- }
61
- if (pricing?.singlePaymentUnlimited) return copyParam("plans.oneTimeFact", "one-time");
62
- return "";
63
- }
64
-
65
- export interface PlanFacts {
66
- /** The owner's terms and conditions; collapses when the plan has none. */
67
- terms: string; noTerms: boolean;
68
- cancelLine: string; noCancelLine: boolean;
69
- limitLine: string; noLimitLine: boolean;
70
- startLine: string; noStartLine: boolean;
71
- }
72
-
73
- /** The plan-detail facts beyond name, price, pitch and benefits; every line is "" (and its `no…` flag true) when the plan
74
- * does not state it. */
75
- export function planFacts(plan: WixPlan): PlanFacts {
76
- const terms = (plan.termsAndConditions ?? "").trim();
77
- const cancelLine = plan.buyerCanCancel === true ? copyParam("plans.buyerCanCancel", "You can cancel this plan yourself.") : "";
78
- const limit = plan.maxPurchasesPerBuyer ?? 0;
79
- const limitLine = limit > 0 ? copyTemplate("plans.limitPerBuyer", "Limit: {n} per member.", { n: limit }) : "";
80
- const startLine = plan.allowFutureStartDate === true ? copyParam("plans.futureStartDate", "You can choose a later start date.") : "";
81
- return {
82
- terms, noTerms: !terms,
83
- cancelLine, noCancelLine: !cancelLine,
84
- limitLine, noLimitLine: !limitLine,
85
- startLine, noStartLine: !startLine,
86
- };
87
- }