@wix/himalaya-cli 0.1777.0 → 0.1778.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 (327) hide show
  1. package/dist/cli.mjs +394 -61
  2. package/guides/one-app-section-mappings.md +5 -8
  3. package/guides/one-app-to-himi-app.md +21 -7
  4. package/package.json +2 -2
  5. package/templates/beauty-salon/l10n/ar.json +5 -0
  6. package/templates/beauty-salon/l10n/cs.json +5 -0
  7. package/templates/beauty-salon/l10n/da.json +5 -0
  8. package/templates/beauty-salon/l10n/de.json +5 -0
  9. package/templates/beauty-salon/l10n/el.json +5 -0
  10. package/templates/beauty-salon/l10n/es.json +5 -0
  11. package/templates/beauty-salon/l10n/fi.json +5 -0
  12. package/templates/beauty-salon/l10n/fr.json +5 -0
  13. package/templates/beauty-salon/l10n/he.json +4 -0
  14. package/templates/beauty-salon/l10n/hu.json +5 -0
  15. package/templates/beauty-salon/l10n/id.json +5 -0
  16. package/templates/beauty-salon/l10n/it.json +5 -0
  17. package/templates/beauty-salon/l10n/ja.json +5 -0
  18. package/templates/beauty-salon/l10n/ko.json +5 -0
  19. package/templates/beauty-salon/l10n/lt.json +5 -0
  20. package/templates/beauty-salon/l10n/nl.json +5 -0
  21. package/templates/beauty-salon/l10n/no.json +5 -0
  22. package/templates/beauty-salon/l10n/pl.json +5 -0
  23. package/templates/beauty-salon/l10n/pt.json +5 -0
  24. package/templates/beauty-salon/l10n/ru.json +5 -0
  25. package/templates/beauty-salon/l10n/sv.json +5 -0
  26. package/templates/beauty-salon/l10n/th.json +5 -0
  27. package/templates/beauty-salon/l10n/tr.json +5 -0
  28. package/templates/beauty-salon/l10n/uk.json +5 -0
  29. package/templates/beauty-salon/l10n/vi.json +5 -0
  30. package/templates/beauty-salon/l10n/zh.json +5 -0
  31. package/templates/beauty-salon/tier5-src/_shared/weekly-goal.ts +7 -3
  32. package/templates/branded-lite/l10n/ar.json +15 -0
  33. package/templates/branded-lite/l10n/cs.json +15 -0
  34. package/templates/branded-lite/l10n/da.json +15 -0
  35. package/templates/branded-lite/l10n/de.json +15 -0
  36. package/templates/branded-lite/l10n/el.json +15 -0
  37. package/templates/branded-lite/l10n/es.json +15 -0
  38. package/templates/branded-lite/l10n/fi.json +15 -0
  39. package/templates/branded-lite/l10n/fr.json +15 -0
  40. package/templates/branded-lite/l10n/he.json +12 -0
  41. package/templates/branded-lite/l10n/hu.json +15 -0
  42. package/templates/branded-lite/l10n/id.json +15 -0
  43. package/templates/branded-lite/l10n/it.json +15 -0
  44. package/templates/branded-lite/l10n/ja.json +15 -0
  45. package/templates/branded-lite/l10n/ko.json +15 -0
  46. package/templates/branded-lite/l10n/lt.json +15 -0
  47. package/templates/branded-lite/l10n/nl.json +15 -0
  48. package/templates/branded-lite/l10n/no.json +15 -0
  49. package/templates/branded-lite/l10n/pl.json +15 -0
  50. package/templates/branded-lite/l10n/pt.json +15 -0
  51. package/templates/branded-lite/l10n/ru.json +15 -0
  52. package/templates/branded-lite/l10n/sv.json +15 -0
  53. package/templates/branded-lite/l10n/th.json +15 -0
  54. package/templates/branded-lite/l10n/tr.json +15 -0
  55. package/templates/branded-lite/l10n/uk.json +15 -0
  56. package/templates/branded-lite/l10n/vi.json +15 -0
  57. package/templates/branded-lite/l10n/zh.json +15 -0
  58. package/templates/branded-lite/recipes/blog-categories.json +115 -0
  59. package/templates/branded-lite/recipes/event-schedule.json +114 -0
  60. package/templates/branded-lite/recipes/groups-newsfeed.json +245 -0
  61. package/templates/branded-lite/recipes/loyalty-offering.json +241 -0
  62. package/templates/branded-lite/recipes/loyalty-status.json +173 -0
  63. package/templates/branded-lite/recipes/members-carousel.json +144 -0
  64. package/templates/branded-lite/recipes/performance-tracker.json +325 -0
  65. package/templates/branded-lite/recipes/podcasts-widget.json +280 -0
  66. package/templates/branded-lite/recipes/products-search-bar.json +139 -0
  67. package/templates/branded-lite/recipes/wishlist-grid.json +236 -0
  68. package/templates/branded-lite/tier5-src/_shared/blog-categories.ts +62 -0
  69. package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +122 -0
  70. package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +91 -0
  71. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +2 -2
  72. package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +105 -0
  73. package/templates/branded-lite/tier5-src/_shared/loyalty-offering-section.ts +88 -0
  74. package/templates/branded-lite/tier5-src/_shared/loyalty-status-section.ts +88 -0
  75. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +9 -3
  76. package/templates/branded-lite/tier5-src/_shared/performance-tracker-section.ts +120 -0
  77. package/templates/branded-lite/tier5-src/_shared/performance-tracker-weeks.ts +71 -0
  78. package/templates/branded-lite/tier5-src/_shared/podcast-section.ts +131 -0
  79. package/templates/branded-lite/tier5-src/_shared/saved-products-section.ts +64 -0
  80. package/templates/branded-lite/tier5-src/_shared/weekly-goal.ts +7 -3
  81. package/templates/community-club/l10n/ar.json +5 -0
  82. package/templates/community-club/l10n/cs.json +5 -0
  83. package/templates/community-club/l10n/da.json +5 -0
  84. package/templates/community-club/l10n/de.json +5 -0
  85. package/templates/community-club/l10n/el.json +5 -0
  86. package/templates/community-club/l10n/es.json +5 -0
  87. package/templates/community-club/l10n/fi.json +5 -0
  88. package/templates/community-club/l10n/fr.json +5 -0
  89. package/templates/community-club/l10n/he.json +4 -0
  90. package/templates/community-club/l10n/hu.json +5 -0
  91. package/templates/community-club/l10n/id.json +5 -0
  92. package/templates/community-club/l10n/it.json +5 -0
  93. package/templates/community-club/l10n/ja.json +5 -0
  94. package/templates/community-club/l10n/ko.json +5 -0
  95. package/templates/community-club/l10n/lt.json +5 -0
  96. package/templates/community-club/l10n/nl.json +5 -0
  97. package/templates/community-club/l10n/no.json +5 -0
  98. package/templates/community-club/l10n/pl.json +5 -0
  99. package/templates/community-club/l10n/pt.json +5 -0
  100. package/templates/community-club/l10n/ru.json +5 -0
  101. package/templates/community-club/l10n/sv.json +5 -0
  102. package/templates/community-club/l10n/th.json +5 -0
  103. package/templates/community-club/l10n/tr.json +5 -0
  104. package/templates/community-club/l10n/uk.json +5 -0
  105. package/templates/community-club/l10n/vi.json +5 -0
  106. package/templates/community-club/l10n/zh.json +5 -0
  107. package/templates/community-club/tier5-src/_shared/weekly-goal.ts +7 -3
  108. package/templates/events-meetups/l10n/ar.json +5 -0
  109. package/templates/events-meetups/l10n/cs.json +5 -0
  110. package/templates/events-meetups/l10n/da.json +5 -0
  111. package/templates/events-meetups/l10n/de.json +5 -0
  112. package/templates/events-meetups/l10n/el.json +5 -0
  113. package/templates/events-meetups/l10n/es.json +5 -0
  114. package/templates/events-meetups/l10n/fi.json +5 -0
  115. package/templates/events-meetups/l10n/fr.json +5 -0
  116. package/templates/events-meetups/l10n/he.json +4 -0
  117. package/templates/events-meetups/l10n/hu.json +5 -0
  118. package/templates/events-meetups/l10n/id.json +5 -0
  119. package/templates/events-meetups/l10n/it.json +5 -0
  120. package/templates/events-meetups/l10n/ja.json +5 -0
  121. package/templates/events-meetups/l10n/ko.json +5 -0
  122. package/templates/events-meetups/l10n/lt.json +5 -0
  123. package/templates/events-meetups/l10n/nl.json +5 -0
  124. package/templates/events-meetups/l10n/no.json +5 -0
  125. package/templates/events-meetups/l10n/pl.json +5 -0
  126. package/templates/events-meetups/l10n/pt.json +5 -0
  127. package/templates/events-meetups/l10n/ru.json +5 -0
  128. package/templates/events-meetups/l10n/sv.json +5 -0
  129. package/templates/events-meetups/l10n/th.json +5 -0
  130. package/templates/events-meetups/l10n/tr.json +5 -0
  131. package/templates/events-meetups/l10n/uk.json +5 -0
  132. package/templates/events-meetups/l10n/vi.json +5 -0
  133. package/templates/events-meetups/l10n/zh.json +5 -0
  134. package/templates/events-meetups/tier5-src/_shared/weekly-goal.ts +7 -3
  135. package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +7 -3
  136. package/templates/gym-fitness/l10n/ar.json +5 -0
  137. package/templates/gym-fitness/l10n/cs.json +5 -0
  138. package/templates/gym-fitness/l10n/da.json +5 -0
  139. package/templates/gym-fitness/l10n/de.json +5 -0
  140. package/templates/gym-fitness/l10n/el.json +5 -0
  141. package/templates/gym-fitness/l10n/es.json +5 -0
  142. package/templates/gym-fitness/l10n/fi.json +5 -0
  143. package/templates/gym-fitness/l10n/fr.json +5 -0
  144. package/templates/gym-fitness/l10n/he.json +4 -0
  145. package/templates/gym-fitness/l10n/hu.json +5 -0
  146. package/templates/gym-fitness/l10n/id.json +5 -0
  147. package/templates/gym-fitness/l10n/it.json +5 -0
  148. package/templates/gym-fitness/l10n/ja.json +5 -0
  149. package/templates/gym-fitness/l10n/ko.json +5 -0
  150. package/templates/gym-fitness/l10n/lt.json +5 -0
  151. package/templates/gym-fitness/l10n/nl.json +5 -0
  152. package/templates/gym-fitness/l10n/no.json +5 -0
  153. package/templates/gym-fitness/l10n/pl.json +5 -0
  154. package/templates/gym-fitness/l10n/pt.json +5 -0
  155. package/templates/gym-fitness/l10n/ru.json +5 -0
  156. package/templates/gym-fitness/l10n/sv.json +5 -0
  157. package/templates/gym-fitness/l10n/th.json +5 -0
  158. package/templates/gym-fitness/l10n/tr.json +5 -0
  159. package/templates/gym-fitness/l10n/uk.json +5 -0
  160. package/templates/gym-fitness/l10n/vi.json +5 -0
  161. package/templates/gym-fitness/l10n/zh.json +5 -0
  162. package/templates/gym-fitness/tier5-src/_shared/weekly-goal.ts +7 -3
  163. package/templates/medical-services/tier5-src/_shared/weekly-goal.ts +7 -3
  164. package/templates/nonprofit-cause/l10n/ar.json +5 -0
  165. package/templates/nonprofit-cause/l10n/cs.json +5 -0
  166. package/templates/nonprofit-cause/l10n/da.json +5 -0
  167. package/templates/nonprofit-cause/l10n/de.json +5 -0
  168. package/templates/nonprofit-cause/l10n/el.json +5 -0
  169. package/templates/nonprofit-cause/l10n/es.json +5 -0
  170. package/templates/nonprofit-cause/l10n/fi.json +5 -0
  171. package/templates/nonprofit-cause/l10n/fr.json +5 -0
  172. package/templates/nonprofit-cause/l10n/he.json +4 -0
  173. package/templates/nonprofit-cause/l10n/hu.json +5 -0
  174. package/templates/nonprofit-cause/l10n/id.json +5 -0
  175. package/templates/nonprofit-cause/l10n/it.json +5 -0
  176. package/templates/nonprofit-cause/l10n/ja.json +5 -0
  177. package/templates/nonprofit-cause/l10n/ko.json +5 -0
  178. package/templates/nonprofit-cause/l10n/lt.json +5 -0
  179. package/templates/nonprofit-cause/l10n/nl.json +5 -0
  180. package/templates/nonprofit-cause/l10n/no.json +5 -0
  181. package/templates/nonprofit-cause/l10n/pl.json +5 -0
  182. package/templates/nonprofit-cause/l10n/pt.json +5 -0
  183. package/templates/nonprofit-cause/l10n/ru.json +5 -0
  184. package/templates/nonprofit-cause/l10n/sv.json +5 -0
  185. package/templates/nonprofit-cause/l10n/th.json +5 -0
  186. package/templates/nonprofit-cause/l10n/tr.json +5 -0
  187. package/templates/nonprofit-cause/l10n/uk.json +5 -0
  188. package/templates/nonprofit-cause/l10n/vi.json +5 -0
  189. package/templates/nonprofit-cause/l10n/zh.json +5 -0
  190. package/templates/nonprofit-cause/tier5-src/_shared/weekly-goal.ts +7 -3
  191. package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +7 -3
  192. package/templates/podcast-creator/l10n/ar.json +5 -0
  193. package/templates/podcast-creator/l10n/cs.json +5 -0
  194. package/templates/podcast-creator/l10n/da.json +5 -0
  195. package/templates/podcast-creator/l10n/de.json +5 -0
  196. package/templates/podcast-creator/l10n/el.json +5 -0
  197. package/templates/podcast-creator/l10n/es.json +5 -0
  198. package/templates/podcast-creator/l10n/fi.json +5 -0
  199. package/templates/podcast-creator/l10n/fr.json +5 -0
  200. package/templates/podcast-creator/l10n/he.json +4 -0
  201. package/templates/podcast-creator/l10n/hu.json +5 -0
  202. package/templates/podcast-creator/l10n/id.json +5 -0
  203. package/templates/podcast-creator/l10n/it.json +5 -0
  204. package/templates/podcast-creator/l10n/ja.json +5 -0
  205. package/templates/podcast-creator/l10n/ko.json +5 -0
  206. package/templates/podcast-creator/l10n/lt.json +5 -0
  207. package/templates/podcast-creator/l10n/nl.json +5 -0
  208. package/templates/podcast-creator/l10n/no.json +5 -0
  209. package/templates/podcast-creator/l10n/pl.json +5 -0
  210. package/templates/podcast-creator/l10n/pt.json +5 -0
  211. package/templates/podcast-creator/l10n/ru.json +5 -0
  212. package/templates/podcast-creator/l10n/sv.json +5 -0
  213. package/templates/podcast-creator/l10n/th.json +5 -0
  214. package/templates/podcast-creator/l10n/tr.json +5 -0
  215. package/templates/podcast-creator/l10n/uk.json +5 -0
  216. package/templates/podcast-creator/l10n/vi.json +5 -0
  217. package/templates/podcast-creator/l10n/zh.json +5 -0
  218. package/templates/podcast-creator/tier5-src/_shared/weekly-goal.ts +7 -3
  219. package/templates/portfolio-creative/l10n/ar.json +5 -0
  220. package/templates/portfolio-creative/l10n/cs.json +5 -0
  221. package/templates/portfolio-creative/l10n/da.json +5 -0
  222. package/templates/portfolio-creative/l10n/de.json +5 -0
  223. package/templates/portfolio-creative/l10n/el.json +5 -0
  224. package/templates/portfolio-creative/l10n/es.json +5 -0
  225. package/templates/portfolio-creative/l10n/fi.json +5 -0
  226. package/templates/portfolio-creative/l10n/fr.json +5 -0
  227. package/templates/portfolio-creative/l10n/he.json +4 -0
  228. package/templates/portfolio-creative/l10n/hu.json +5 -0
  229. package/templates/portfolio-creative/l10n/id.json +5 -0
  230. package/templates/portfolio-creative/l10n/it.json +5 -0
  231. package/templates/portfolio-creative/l10n/ja.json +5 -0
  232. package/templates/portfolio-creative/l10n/ko.json +5 -0
  233. package/templates/portfolio-creative/l10n/lt.json +5 -0
  234. package/templates/portfolio-creative/l10n/nl.json +5 -0
  235. package/templates/portfolio-creative/l10n/no.json +5 -0
  236. package/templates/portfolio-creative/l10n/pl.json +5 -0
  237. package/templates/portfolio-creative/l10n/pt.json +5 -0
  238. package/templates/portfolio-creative/l10n/ru.json +5 -0
  239. package/templates/portfolio-creative/l10n/sv.json +5 -0
  240. package/templates/portfolio-creative/l10n/th.json +5 -0
  241. package/templates/portfolio-creative/l10n/tr.json +5 -0
  242. package/templates/portfolio-creative/l10n/uk.json +5 -0
  243. package/templates/portfolio-creative/l10n/vi.json +5 -0
  244. package/templates/portfolio-creative/l10n/zh.json +5 -0
  245. package/templates/portfolio-creative/tier5-src/_shared/weekly-goal.ts +7 -3
  246. package/templates/restaurant/l10n/ar.json +5 -0
  247. package/templates/restaurant/l10n/cs.json +5 -0
  248. package/templates/restaurant/l10n/da.json +5 -0
  249. package/templates/restaurant/l10n/de.json +5 -0
  250. package/templates/restaurant/l10n/el.json +5 -0
  251. package/templates/restaurant/l10n/es.json +5 -0
  252. package/templates/restaurant/l10n/fi.json +5 -0
  253. package/templates/restaurant/l10n/fr.json +5 -0
  254. package/templates/restaurant/l10n/he.json +4 -0
  255. package/templates/restaurant/l10n/hu.json +5 -0
  256. package/templates/restaurant/l10n/id.json +5 -0
  257. package/templates/restaurant/l10n/it.json +5 -0
  258. package/templates/restaurant/l10n/ja.json +5 -0
  259. package/templates/restaurant/l10n/ko.json +5 -0
  260. package/templates/restaurant/l10n/lt.json +5 -0
  261. package/templates/restaurant/l10n/nl.json +5 -0
  262. package/templates/restaurant/l10n/no.json +5 -0
  263. package/templates/restaurant/l10n/pl.json +5 -0
  264. package/templates/restaurant/l10n/pt.json +5 -0
  265. package/templates/restaurant/l10n/ru.json +5 -0
  266. package/templates/restaurant/l10n/sv.json +5 -0
  267. package/templates/restaurant/l10n/th.json +5 -0
  268. package/templates/restaurant/l10n/tr.json +5 -0
  269. package/templates/restaurant/l10n/uk.json +5 -0
  270. package/templates/restaurant/l10n/vi.json +5 -0
  271. package/templates/restaurant/l10n/zh.json +5 -0
  272. package/templates/restaurant/tier5-src/_shared/weekly-goal.ts +7 -3
  273. package/templates/retail-store/l10n/ar.json +5 -0
  274. package/templates/retail-store/l10n/cs.json +5 -0
  275. package/templates/retail-store/l10n/da.json +5 -0
  276. package/templates/retail-store/l10n/de.json +5 -0
  277. package/templates/retail-store/l10n/el.json +5 -0
  278. package/templates/retail-store/l10n/es.json +5 -0
  279. package/templates/retail-store/l10n/fi.json +5 -0
  280. package/templates/retail-store/l10n/fr.json +5 -0
  281. package/templates/retail-store/l10n/he.json +4 -0
  282. package/templates/retail-store/l10n/hu.json +5 -0
  283. package/templates/retail-store/l10n/id.json +5 -0
  284. package/templates/retail-store/l10n/it.json +5 -0
  285. package/templates/retail-store/l10n/ja.json +5 -0
  286. package/templates/retail-store/l10n/ko.json +5 -0
  287. package/templates/retail-store/l10n/lt.json +5 -0
  288. package/templates/retail-store/l10n/nl.json +5 -0
  289. package/templates/retail-store/l10n/no.json +5 -0
  290. package/templates/retail-store/l10n/pl.json +5 -0
  291. package/templates/retail-store/l10n/pt.json +5 -0
  292. package/templates/retail-store/l10n/ru.json +5 -0
  293. package/templates/retail-store/l10n/sv.json +5 -0
  294. package/templates/retail-store/l10n/th.json +5 -0
  295. package/templates/retail-store/l10n/tr.json +5 -0
  296. package/templates/retail-store/l10n/uk.json +5 -0
  297. package/templates/retail-store/l10n/vi.json +5 -0
  298. package/templates/retail-store/l10n/zh.json +5 -0
  299. package/templates/retail-store/tier5-src/_shared/weekly-goal.ts +7 -3
  300. package/templates/salon-spa/tier5-src/_shared/weekly-goal.ts +7 -3
  301. package/templates/yoga-studio/l10n/ar.json +5 -0
  302. package/templates/yoga-studio/l10n/cs.json +5 -0
  303. package/templates/yoga-studio/l10n/da.json +5 -0
  304. package/templates/yoga-studio/l10n/de.json +5 -0
  305. package/templates/yoga-studio/l10n/el.json +5 -0
  306. package/templates/yoga-studio/l10n/es.json +5 -0
  307. package/templates/yoga-studio/l10n/fi.json +5 -0
  308. package/templates/yoga-studio/l10n/fr.json +5 -0
  309. package/templates/yoga-studio/l10n/he.json +4 -0
  310. package/templates/yoga-studio/l10n/hu.json +5 -0
  311. package/templates/yoga-studio/l10n/id.json +5 -0
  312. package/templates/yoga-studio/l10n/it.json +5 -0
  313. package/templates/yoga-studio/l10n/ja.json +5 -0
  314. package/templates/yoga-studio/l10n/ko.json +5 -0
  315. package/templates/yoga-studio/l10n/lt.json +5 -0
  316. package/templates/yoga-studio/l10n/nl.json +5 -0
  317. package/templates/yoga-studio/l10n/no.json +5 -0
  318. package/templates/yoga-studio/l10n/pl.json +5 -0
  319. package/templates/yoga-studio/l10n/pt.json +5 -0
  320. package/templates/yoga-studio/l10n/ru.json +5 -0
  321. package/templates/yoga-studio/l10n/sv.json +5 -0
  322. package/templates/yoga-studio/l10n/th.json +5 -0
  323. package/templates/yoga-studio/l10n/tr.json +5 -0
  324. package/templates/yoga-studio/l10n/uk.json +5 -0
  325. package/templates/yoga-studio/l10n/vi.json +5 -0
  326. package/templates/yoga-studio/l10n/zh.json +5 -0
  327. package/templates/yoga-studio/tier5-src/_shared/weekly-goal.ts +7 -3
package/dist/cli.mjs CHANGED
@@ -7077,6 +7077,7 @@ function webViewOriginAllowed(url, origins) {
7077
7077
  }
7078
7078
  var init_webview_origin = __esm({
7079
7079
  "../../core/ts/src/webview-origin.ts"() {
7080
+ "use strict";
7080
7081
  init_define_HHP_CATALOG();
7081
7082
  }
7082
7083
  });
@@ -269587,6 +269588,45 @@ var init_recipes = __esm({
269587
269588
  }
269588
269589
  });
269589
269590
 
269591
+ // ../../stdlib/flows/screens/src/podcast.ts
269592
+ function publicHttpHost(raw) {
269593
+ if (!raw || raw.length > MAX_URL_LENGTH || CONTROL.test(raw)) return "";
269594
+ const match = /^https?:\/\/([^/?#]*)/i.exec(raw);
269595
+ const authority = match?.[1] ?? "";
269596
+ if (!authority || authority.includes("@")) return "";
269597
+ const parts = /^([a-z0-9.-]+)(?::([0-9]+))?$/i.exec(authority);
269598
+ if (!parts || parts[2] && (Number(parts[2]) < 1 || Number(parts[2]) > 65535)) return "";
269599
+ const host = parts[1].toLowerCase();
269600
+ if (host.split(".").some((label4) => !/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/.test(label4))) return "";
269601
+ if (/\d$/.test(host)) {
269602
+ const octets = host.split(".");
269603
+ if (octets.length !== 4 || octets.some((part5) => !/^(?:0|[1-9][0-9]{0,2})$/.test(part5) || Number(part5) > 255)) return "";
269604
+ }
269605
+ return host;
269606
+ }
269607
+ function isPrivateHost(host) {
269608
+ if (host.startsWith("[")) return true;
269609
+ if (host === "localhost" || /\.(?:localhost|local|internal|lan|home|arpa)$/.test(host) || !host.includes(".")) return true;
269610
+ const ip = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.exec(host);
269611
+ if (!ip) return false;
269612
+ const [a3, b3] = [Number(ip[1]), Number(ip[2])];
269613
+ return a3 === 0 || a3 === 10 || a3 === 127 || a3 === 100 && b3 >= 64 && b3 <= 127 || a3 === 169 && b3 === 254 || a3 === 172 && b3 >= 16 && b3 <= 31 || a3 === 192 && b3 === 168 || a3 >= 224;
269614
+ }
269615
+ function podcastFeedUrl(raw) {
269616
+ const url = typeof raw === "string" ? raw.trim() : "";
269617
+ if (!url) return { ok: false, code: "feed_not_configured" };
269618
+ const host = publicHttpHost(url);
269619
+ return host && !isPrivateHost(host) ? { ok: true, url } : { ok: false, code: "invalid_feed_url" };
269620
+ }
269621
+ var MAX_URL_LENGTH, CONTROL;
269622
+ var init_podcast = __esm({
269623
+ "../../stdlib/flows/screens/src/podcast.ts"() {
269624
+ init_define_HHP_CATALOG();
269625
+ MAX_URL_LENGTH = 2048;
269626
+ CONTROL = /[\u0000- \u007f]/;
269627
+ }
269628
+ });
269629
+
269590
269630
  // src/one-app/tab-ids.ts
269591
269631
  function tabIdFor(tab, taken2) {
269592
269632
  const base2 = (tab.screenId.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "tab").slice(0, 32);
@@ -269602,6 +269642,20 @@ var init_tab_ids = __esm({
269602
269642
  });
269603
269643
 
269604
269644
  // src/one-app/generate.ts
269645
+ function blogCarouselScreenGaps(st2) {
269646
+ const content = obj11(st2.contentSettings), limit = countOf2(content.postsPerCategory), category = str16(content.categoryId).trim();
269647
+ return [
269648
+ ...category && category !== "all" ? [`the source shows only the posts of category ${category}; himi_blog does not open on a given category and shows every post`] : [],
269649
+ ...content.featuredOnly === true ? ["the source shows only featured posts; himi_blog shows every post"] : [],
269650
+ "the source shows its posts as a carousel; himi_blog is the full post list",
269651
+ ...limit !== void 0 ? [`the source shows only ${limit} post(s); himi_blog lists every post`] : []
269652
+ ];
269653
+ }
269654
+ function chosenBlogCategories(st2) {
269655
+ const content = obj11(st2.categoryContentSettings);
269656
+ if (content.showAllCategories === true) return [];
269657
+ return arr(content.categories).flatMap((entry) => obj11(entry).selected === true && str16(obj11(entry)._id) ? [str16(obj11(entry)._id)] : []);
269658
+ }
269605
269659
  function webUrl(value2) {
269606
269660
  try {
269607
269661
  const url = new URL(value2.trim());
@@ -269618,6 +269672,18 @@ function withoutNode(node3, id) {
269618
269672
  };
269619
269673
  return walk5(node3);
269620
269674
  }
269675
+ function withoutTap(node3, id) {
269676
+ const walk5 = (value2) => {
269677
+ if (Array.isArray(value2)) return value2.map(walk5);
269678
+ if (!value2 || typeof value2 !== "object") return value2;
269679
+ const entry = value2;
269680
+ const next = Object.fromEntries(Object.entries(entry).map(([k3, v2]) => [k3, walk5(v2)]));
269681
+ if (entry.id !== id) return next;
269682
+ const { onTap: _onTap, pressFeedback: _pressFeedback, ...modifiers } = obj11(next.modifiers);
269683
+ return { ...next, modifiers };
269684
+ };
269685
+ return walk5(node3);
269686
+ }
269621
269687
  function plansSection(id, s5, index, ctx, options2) {
269622
269688
  if (!ctx.hasScreen("himi_plan")) throw new RecipeError("this scaffold has no himi_plan screen for a plan card to open");
269623
269689
  const svc = ctx.uses("plans", `plans${index}`, { ...options2 });
@@ -269630,6 +269696,10 @@ function plansSection(id, s5, index, ctx, options2) {
269630
269696
  function textAlign(alignment) {
269631
269697
  return alignment === "center" ? "center" : alignment === "right" || alignment === "end" ? "trailing" : "leading";
269632
269698
  }
269699
+ function membersDirectory(id, s5, index, ctx) {
269700
+ const svc = ctx.uses("members", `members${index}`, { showRole: true, showActivity: true, showBadges: true, showFollow: true, letterBands: true });
269701
+ return composed2(id, s5, svc, ctx.recipeNodes("members-list", { svc, id, detailScreen: "himi_member" }));
269702
+ }
269633
269703
  function loadOnAppear(nodes2, svc) {
269634
269704
  const at2 = nodes2.findIndex((n2) => !obj11(n2.modifiers).hiddenPath);
269635
269705
  if (at2 < 0) return false;
@@ -269653,6 +269723,16 @@ function programsLimit(section3, settings) {
269653
269723
  if (authored2 === void 0 || authored2 === null) return PROGRAMS_DEFAULT_LIMIT;
269654
269724
  return void 0;
269655
269725
  }
269726
+ function galleryCards(id, s5, index, ctx, options2) {
269727
+ if (!ctx.hasScreen("himi_gallery")) throw new RecipeError("this scaffold has no himi_gallery screen for a gallery card to open, so the section keeps its title and a See All link.");
269728
+ const svc = ctx.uses("galleries", `galleries${index}`, { ...options2.limit !== void 0 ? { limit: options2.limit } : {}, showName: options2.showName });
269729
+ const children2 = [];
269730
+ const title = str16(s5.title).trim();
269731
+ const viewAll = ctx.hasScreen("himi_galleries") ? node(`${id}.all`, "Button", { title: "View All", style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_galleries" } } }, { hiddenPath: `$service:${svc}.noMore` }) : void 0;
269732
+ if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
269733
+ children2.push(ctx.recipe(options2.layout, { svc, id }), ...viewAll ? [viewAll] : [], ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
269734
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
269735
+ }
269656
269736
  function groupsSection(recipe, type2) {
269657
269737
  return (id, s5, st2, index, ctx, sectionId) => {
269658
269738
  if (!ctx.hasScreen("himi_group")) return ctx.unsupported(sectionId, type2, "this scaffold has no himi_group screen for a row to open");
@@ -269709,6 +269789,33 @@ function productsSection(kind) {
269709
269789
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
269710
269790
  };
269711
269791
  }
269792
+ function productsSearchSection(id, s5, st2, _index, ctx, sectionId) {
269793
+ const type2 = "stores_products_search_section";
269794
+ if (!ctx.hasScreen("himi_shop")) return ctx.unsupported(sectionId, type2, "this scaffold has no himi_shop screen for the search bar to open");
269795
+ const filters = st2.isFilterVisible === true || st2.isSortVisible === true;
269796
+ const bar = ctx.recipe("products-search-bar", { id, placeholder: str16(st2.placeholder).trim() || "Search products", shopScreen: "himi_shop", shopAll: SHOP_ALL });
269797
+ ctx.linksTemplate("himi_shop");
269798
+ ctx.gap(sectionId, type2, `the source opens its own search screen from the bar${filters ? " and its sort and filter button" : ""}; ${filters ? "both open" : "the bar opens"} the shop on all products, where the search field, filters and sort are the shop's own`);
269799
+ const title = str16(s5.title).trim();
269800
+ return vstack(`${id}.box`, [...s5.showTitle === true && title ? [text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0))] : [], filters ? bar : withoutNode(bar, `${id}.filter`)], 12, inset(16, 16));
269801
+ }
269802
+ function wishlistSection(id, s5, st2, index, ctx, sectionId) {
269803
+ const type2 = "stores_wishlist_section";
269804
+ const hasSaved = ctx.hasScreen("himi_saved_products"), hasShop = ctx.hasScreen("himi_shop");
269805
+ const svc = ctx.uses("savedProducts", `wishlist${index}`, hasSaved ? { limit: WISHLIST_INLINE } : {});
269806
+ const imageMode = st2.imageResizeMode === "contain" ? "fit" : "fill";
269807
+ const button = st2.showEmptyStateButton === true && hasShop;
269808
+ let list5 = ctx.recipe("wishlist-grid", { svc, id, imageMode, emptyButton: str16(st2.buttonText).trim() || "Shop now", shopScreen: "himi_shop", shopAll: SHOP_ALL, seeAllLabel: "See All", seeAllScreen: "himi_saved_products" });
269809
+ if (!hasSaved) list5 = withoutNode(list5, `${id}.more`);
269810
+ if (button) ctx.linksTemplate("himi_shop");
269811
+ else list5 = withoutNode(list5, `${id}.empty.shop`);
269812
+ ctx.gap(sectionId, type2, `the source shows the member's account wishlist, kept on their Wix account and sign-in gated; the section shows the products saved on this device (the shop's heart keeps them), so products saved in the One App are not here${hasSaved ? `, and it shows the first ${WISHLIST_INLINE} with a See All button to the saved-products screen` : ""}`);
269813
+ const children2 = [];
269814
+ const title = str16(s5.title).trim();
269815
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
269816
+ children2.push(list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
269817
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
269818
+ }
269712
269819
  function blogOptions(st2) {
269713
269820
  const content = obj11(st2.contentSettings);
269714
269821
  const display = obj11(st2.displayOptions);
@@ -269760,6 +269867,21 @@ function blogSection(id, s5, st2, index, ctx, sectionId, type2) {
269760
269867
  }
269761
269868
  return out2;
269762
269869
  }
269870
+ function blogCarousel(type2, layoutGaps) {
269871
+ return (id, s5, st2, index, ctx, sectionId) => {
269872
+ const { base: base2, limit } = blogOptions(st2);
269873
+ const shown3 = Math.min(limit ?? BLOG_HERO_MAX, BLOG_HERO_MAX);
269874
+ if (limit === void 0 || limit > BLOG_HERO_MAX) ctx.gap(sectionId, type2, `the source carousel is not limited to ${BLOG_HERO_MAX} posts; the app shows the latest ${shown3}`);
269875
+ for (const reason of layoutGaps(st2)) ctx.gap(sectionId, type2, reason);
269876
+ const svc = ctx.uses("blog", `blog${index}`, { ...base2, limit: shown3 });
269877
+ const children2 = [];
269878
+ const title = str16(s5.title).trim();
269879
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
269880
+ children2.push(node(`${id}.loading`, "Skeleton", { height: 200, count: 1, cornerRadius: 12 }, { padding: { leading: 0, trailing: 0, top: 0, bottom: 0 }, hiddenPath: `$service:${svc}.notLoading` }));
269881
+ children2.push(ctx.recipe("blog-hero", { svc, id, detailScreen: "himi_blog_post" }), ...ctx.optionalRecipe("section-error", { svc, id, action: "retry" }));
269882
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
269883
+ };
269884
+ }
269763
269885
  function eventsInline(id, s5, index, ctx) {
269764
269886
  const svc = ctx.uses("events", `events${index}`, {});
269765
269887
  const card2 = withoutNode(ctx.recipe("events-inline", { svc, id, shareLabel: "Share", seeAllLabel: "", seeAllScreen: "himi_events" }), `${id}.see_all`);
@@ -269775,6 +269897,33 @@ function formIdOf(settings) {
269775
269897
  const legacy = typeof settings.shortId === "number" ? String(settings.shortId) : str16(settings.shortId).trim();
269776
269898
  return /^\d+$/.test(legacy) ? legacy : "";
269777
269899
  }
269900
+ function groupFeedSection(type2) {
269901
+ return (id, s5, st2, index, ctx, elementId) => {
269902
+ const groupId = str16(st2.groupId);
269903
+ if (!groupId) return ctx.unsupported(elementId, type2, "the section names no group");
269904
+ if (!ctx.hasScreen("himi_group")) return ctx.unsupported(elementId, type2, "this scaffold has no himi_group screen to open the group in");
269905
+ const openLabel = str16(st2.seeAllButtonText).trim() || "Open group";
269906
+ const title = str16(s5.title).trim();
269907
+ const children2 = [];
269908
+ if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
269909
+ let onAppear, svc = "";
269910
+ try {
269911
+ const limit = countOf2(st2.postNumber);
269912
+ svc = ctx.uses("groupFeed", `groupFeed${index}`, { groupId, ...limit !== void 0 ? { limit } : {} });
269913
+ children2.push(ctx.recipe("group-feed", { svc, id, detailScreen: "himi_group", groupId, openLabel }), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
269914
+ onAppear = { actionId: `tier5.${svc}.load`, params: {} };
269915
+ if (limit !== void 0 && limit > GROUP_FEED_POSTS_MAX) ctx.gap(elementId, type2, `the source shows ${limit} posts; the section shows the latest ${GROUP_FEED_POSTS_MAX}`);
269916
+ if (str16(st2.topicsLayout).trim()) ctx.gap(elementId, type2, `the source filters the posts by topic (${str16(st2.topicsLayout).toLowerCase()} layout); the section shows the group's latest posts without the topic filter`);
269917
+ ctx.gap(elementId, type2, "the source's posts have reactions, comments and a composer; the section shows the posts read-only, and the group opens from its button");
269918
+ } catch (error) {
269919
+ if (!(error instanceof RecipeError)) throw error;
269920
+ if (svc) ctx.release(svc);
269921
+ ctx.gap(elementId, type2, "the group's posts are not shown inline: this scaffold does not ship the group feed recipe or module; the section opens the group");
269922
+ children2.push(node(`${id}.open`, "Button", { title: openLabel, style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_group", id: groupId } } }));
269923
+ }
269924
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), ...onAppear ? { onAppear } : {} });
269925
+ };
269926
+ }
269778
269927
  function screenIdFor(label4, taken2) {
269779
269928
  let base2 = label4.normalize("NFKD").replace(/[^\x00-\x7f]/g, "").replace(/['\u2019]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
269780
269929
  if (!base2 || !/^[a-z]/.test(base2)) base2 = `page_${base2}`.replace(/_$/, "");
@@ -269850,6 +269999,7 @@ function generateScreens(input) {
269850
269999
  tabs: [],
269851
270000
  pages: [],
269852
270001
  routeRows: [],
270002
+ screenParams: [],
269853
270003
  evidence: { ...str16(raw.revision) ? { revision: str16(raw.revision) } : {}, ...str16(raw.publishedDate) ? { publishedDate: str16(raw.publishedDate) } : {} }
269854
270004
  };
269855
270005
  const assemble = (screenId, title, children2, uses) => {
@@ -269896,7 +270046,11 @@ function generateScreens(input) {
269896
270046
  out2.routes.push({ layoutItemId, label: label4, kind: "empty" });
269897
270047
  continue;
269898
270048
  }
269899
- const verticals = new Set(elements2.map((e2) => TEMPLATE_VERTICALS[str16(obj11(sections2[str16(e2.elementId)]).sectionDefinitionId)]));
270049
+ const verticalOf = (e2) => {
270050
+ const section3 = obj11(sections2[str16(e2.elementId)]), type2 = str16(section3.sectionDefinitionId);
270051
+ return type2 === "groups_feed_section" && arr(obj11(section3.settings).groupsToShow).length ? void 0 : TEMPLATE_VERTICALS[type2];
270052
+ };
270053
+ const verticals = new Set(elements2.map(verticalOf));
269900
270054
  const distinctLinks = elements2.length > 1 && elements2.every((e2) => FALLBACK_TARGETS[str16(obj11(sections2[str16(e2.elementId)]).sectionDefinitionId)]?.params) && new Set(elements2.map((e2) => {
269901
270055
  const section3 = obj11(sections2[str16(e2.elementId)]);
269902
270056
  return JSON.stringify(TEMPLATE_PARAMS[str16(section3.sectionDefinitionId)]?.(section3, obj11(section3.settings)) ?? {});
@@ -269909,9 +270063,6 @@ function generateScreens(input) {
269909
270063
  const extraId = str16(extra.elementId);
269910
270064
  out2.gaps.push({ page: label4, sectionId: extraId, sectionDefinitionId: str16(obj11(sections2[extraId]).sectionDefinitionId), reason: "this page has several sections of the same template screen; it opens that screen once, so this section is not shown on its own" });
269911
270065
  }
269912
- if (type2 === "groups_feed_section" && arr(obj11(first.settings).groupsToShow).length) {
269913
- out2.unmapped.push({ page: label4, sectionId: str16(elements2[0].elementId), sectionDefinitionId: type2, reason: "a groups feed limited to chosen groups is not supported by the template feed" });
269914
- }
269915
270066
  let screenId2 = [...verticals][0];
269916
270067
  const present = input.takenScreenIds;
269917
270068
  const fallback = TEMPLATE_FALLBACKS[screenId2];
@@ -269978,6 +270129,14 @@ function generateScreens(input) {
269978
270129
  },
269979
270130
  extraScreen: (id, title, children3, extraUses) => {
269980
270131
  extras.push({ screenId: id, title, children: children3, uses: extraUses });
270132
+ },
270133
+ claimScreenParam: (screenId2, key4, value2) => {
270134
+ const claimed = out2.screenParams.find((entry) => entry.screenId === screenId2);
270135
+ if (!claimed) {
270136
+ out2.screenParams.push({ screenId: screenId2, params: { [key4]: value2 } });
270137
+ return true;
270138
+ }
270139
+ return claimed.params[key4] === value2;
269981
270140
  }
269982
270141
  };
269983
270142
  const children2 = [];
@@ -270284,18 +270443,20 @@ function addNavigation(out2, plan, taken2, pageIconOf) {
270284
270443
  out2.routes.push({ layoutItemId: "(more)", label: "More", screenId, kind: "generated" });
270285
270444
  out2.tabs.push({ layoutItemId: "(more)", label: "More", screenId });
270286
270445
  }
270287
- var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, NO_INLINE_SECTION, ROUTE_PLACEHOLDER, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj11, arr, str16, node, text28, vstack, hstack, inset, openUrl2, youtubeIdOf, DIRECT_VIDEO_FILE, dialUrl, mailUrl, BUSINESS_CHAT_SCREEN, sourceTap, SUBSCRIPTIONS_MAX, selectedPlanIds, PROGRAMS_DEFAULT_LIMIT, PROGRAMS_INLINE_MAX, GALLERIES_INLINE_MAX, BLOG_HERO_MAX, BLOG_SEARCH_POSTS, SHOP_ALL, SERVICES_INLINE, UPCOMING_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, SOCIAL_NETWORKS, HANDLERS, MERGED_PAGES_BUNDLE, chevron;
270446
+ var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, NO_INLINE_SECTION, ROUTE_PLACEHOLDER, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj11, arr, str16, node, text28, vstack, hstack, inset, openUrl2, youtubeIdOf, DIRECT_VIDEO_FILE, dialUrl, mailUrl, BUSINESS_CHAT_SCREEN, sourceTap, SUBSCRIPTIONS_MAX, selectedPlanIds, MEMBERS_RAIL, PROGRAMS_DEFAULT_LIMIT, PROGRAMS_INLINE_MAX, PODCAST_INLINE, GALLERIES_INLINE_MAX, GALLERIES_LIST_INLINE, BLOG_HERO_MAX, BLOG_SEARCH_POSTS, EVENT_SCHEDULE_INLINE, SHOP_ALL, SERVICES_INLINE, UPCOMING_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, SOCIAL_NETWORKS, HANDLERS, MERGED_PAGES_BUNDLE, chevron;
270288
270447
  var init_generate2 = __esm({
270289
270448
  "src/one-app/generate.ts"() {
270290
270449
  init_define_HHP_CATALOG();
270291
270450
  init_recipes();
270292
270451
  init_recipes();
270452
+ init_podcast();
270293
270453
  init_tab_ids();
270294
270454
  TEMPLATE_HOME_SCREEN = "himi_branded_home";
270295
270455
  TEMPLATE_SCREEN_PARAM_KEYS = {
270296
270456
  himi_shop: ["categoryId"],
270297
270457
  himi_groups_feed: ["title", "groupListLabel", "pageSize"],
270298
- himi_groups: ["title", "groupListLabel", "pageSize"]
270458
+ himi_groups: ["title", "groupListLabel", "pageSize"],
270459
+ himi_podcasts: ["feedUrl"]
270299
270460
  };
270300
270461
  SYSTEM_ALL_PRODUCTS_ID = "00000000-000000-000000-000000000001";
270301
270462
  collectionParams = (st2) => {
@@ -270342,13 +270503,13 @@ var init_generate2 = __esm({
270342
270503
  ...Object.keys(obj11(st2.categories)).length ? ["the source limits its questions to chosen categories; himi_faq takes no category selection and lists every category"] : []
270343
270504
  ];
270344
270505
  },
270345
- newBlog_postlist_carousel_full_section: (st2) => {
270346
- const content = obj11(st2.contentSettings), limit = countOf2(content.postsPerCategory), category = str16(content.categoryId).trim();
270506
+ newBlog_postlist_carousel_full_section: (st2) => blogCarouselScreenGaps(st2),
270507
+ newBlog_postlist_carousel_section: (st2) => blogCarouselScreenGaps(st2),
270508
+ newBlog_category_list_vertical_section: (st2) => {
270509
+ const chosen = chosenBlogCategories(st2).length;
270347
270510
  return [
270348
- ...category && category !== "all" ? [`the source shows only the posts of category ${category}; himi_blog does not open on a given category and shows every post`] : [],
270349
- ...content.featuredOnly === true ? ["the source shows only featured posts; himi_blog shows every post"] : [],
270350
- "the source shows its posts as a carousel; himi_blog is the full post list",
270351
- ...limit !== void 0 ? [`the source shows only ${limit} post(s); himi_blog lists every post`] : []
270511
+ ...chosen ? [`the source lists only its ${chosen} chosen categor${chosen === 1 ? "y" : "ies"}; himi_blog has a chip for every category that has posts`] : [],
270512
+ "the source lists the categories and opens one category's posts; himi_blog shows the categories as chips above every post"
270352
270513
  ];
270353
270514
  }
270354
270515
  };
@@ -270364,16 +270525,24 @@ var init_generate2 = __esm({
270364
270525
  vod_carousel_section: { screen: "himi_videos", needsScreen: true },
270365
270526
  memberships_plan_cards_carousel: { screen: "himi_plans", needsScreen: true },
270366
270527
  progallery_carousel_section: { screen: "himi_galleries", needsScreen: true },
270528
+ // A Pro Gallery list inline needs `himi_gallery` for a card to open; without it the section keeps its title and a link to the galleries screen.
270529
+ proGallery_gallery_list_section: { screen: "himi_galleries", needsScreen: true },
270530
+ // Galleries shared with members: not the site's Pro Gallery, so the page keeps the source's title and a link to the template's galleries screen.
270531
+ shared_gallery_list_section: { screen: "himi_galleries", needsScreen: true },
270367
270532
  achievements_participant_carousel_section: { screen: "himi_member_programs", needsScreen: true },
270368
270533
  groups_cards_section: { screen: "himi_groups", needsScreen: true },
270369
270534
  newBlog_search_section: { screen: "himi_blog", needsScreen: true },
270370
270535
  // Sections that ARE a template screen (`TEMPLATE_VERTICALS`): on a page of other sections they keep their place as a title and a link.
270371
270536
  upcoming_bookings_section: { screen: "himi_bookings", needsScreen: true },
270537
+ // Its numbers are the member's bookings: a scaffold without the recipe keeps the title and a link to My Bookings.
270538
+ performance_tracker_section: { screen: "himi_bookings", needsScreen: true },
270372
270539
  memberships_packages_section: { screen: "himi_my_subscriptions", needsScreen: true },
270373
270540
  platform_paid_plans_section: { screen: "himi_plans", needsScreen: true },
270374
270541
  groups_list_section: { screen: "himi_groups", needsScreen: true },
270375
270542
  faq_list_section: { screen: "himi_faq", needsScreen: true },
270376
270543
  newBlog_postlist_carousel_full_section: { screen: "himi_blog", needsScreen: true },
270544
+ newBlog_postlist_carousel_section: { screen: "himi_blog", needsScreen: true },
270545
+ newBlog_category_list_vertical_section: { screen: "himi_blog", needsScreen: true },
270377
270546
  stores_products_grid_section: { screen: "himi_shop", needsScreen: true, params: collectionParams },
270378
270547
  stores_products_carousel_section: { screen: "himi_shop", needsScreen: true, params: collectionParams },
270379
270548
  // Sections the census found on the most apps with no rule at all: each opens the template screen that shows its data.
@@ -270383,10 +270552,18 @@ var init_generate2 = __esm({
270383
270552
  loyalty_status_section: { screen: "himi_loyalty", needsScreen: true },
270384
270553
  loyalty_offering_section: { screen: "himi_loyalty", needsScreen: true },
270385
270554
  platform_general_members_section: { screen: "himi_members", needsScreen: true },
270555
+ member_horizontal_list_section: { screen: "himi_members", needsScreen: true },
270386
270556
  // `himi_groups_feed` is a newer template screen: a scaffold without it links `himi_groups` (`TEMPLATE_FALLBACKS`), as a page of only this section opens it.
270387
270557
  groups_feed_section: { screen: "himi_groups_feed", needsScreen: true },
270388
270558
  // Link only when the scaffold has the events screen: without it the link would open nothing, so the section is reported instead.
270389
- events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true }
270559
+ events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true },
270560
+ // Upcoming sessions of the business (the Bookings widget): the template's agenda screen lists the site's upcoming class and course sessions.
270561
+ platform_general_upcoming_section: { screen: "himi_agenda", needsScreen: true },
270562
+ // One event's schedule inline needs `himi_event` for View All to open; without it (or with no event chosen) the section keeps its title and a link to the events screen.
270563
+ events_schedule_section: { screen: "himi_events", needsScreen: true },
270564
+ // The store search bar opens the shop; the wishlist's device-local list is the saved-products screen.
270565
+ stores_products_search_section: { screen: "himi_shop", needsScreen: true },
270566
+ stores_wishlist_section: { screen: "himi_saved_products", needsScreen: true }
270390
270567
  };
270391
270568
  NO_INLINE_SECTION = "its data has no inline section yet";
270392
270569
  ROUTE_PLACEHOLDER = "@route:";
@@ -270405,9 +270582,15 @@ var init_generate2 = __esm({
270405
270582
  groups_list_section: "himi_groups",
270406
270583
  faq_list_section: "himi_faq",
270407
270584
  newBlog_postlist_carousel_full_section: "himi_blog",
270585
+ // The source section is the Pro Gallery galleries screen itself (`progallery.screen.Galleries`).
270586
+ proGallery_gallery_list_section: "himi_galleries",
270587
+ newBlog_postlist_carousel_section: "himi_blog",
270588
+ newBlog_category_list_vertical_section: "himi_blog",
270408
270589
  // The channel list IS the template's videos screen, and the bookings agenda IS its agenda screen (a calendar of the site's sessions).
270409
270590
  vod_list_section: "himi_videos",
270410
- bookings_agenda_section: "himi_agenda"
270591
+ bookings_agenda_section: "himi_agenda",
270592
+ // The source's upcoming strip is the Bookings member widget (its `about` origin is fed by Bookings alone): the site's next sessions, which is what the agenda screen lists.
270593
+ platform_general_upcoming_section: "himi_agenda"
270411
270594
  };
270412
270595
  PAGE_TYPE_ICONS = {
270413
270596
  forum: "appEditor.outline.forum",
@@ -270466,6 +270649,7 @@ var init_generate2 = __esm({
270466
270649
  programs: { file: "programs-section", register: "registerProgramsSection", capabilities: ["wix_api", "iap", "app_info"] },
270467
270650
  members: { file: "members-directory", register: "registerMembersDirectory", capabilities: ["wix_api"] },
270468
270651
  blog: { file: "blog-list", register: "registerBlogList", capabilities: ["wix_api"] },
270652
+ blogCategories: { file: "blog-categories", register: "registerBlogCategories", capabilities: ["wix_api"] },
270469
270653
  plans: { file: "plans-section", register: "registerPlansSection", capabilities: ["wix_api"] },
270470
270654
  // A link tapped in the rich body opens through `capability.open_url`, which the page's screen must declare too.
270471
270655
  announcements: { file: "announcement-section", register: "registerAnnouncementSection", capabilities: ["wix_api", "open_url"] },
@@ -270475,13 +270659,24 @@ var init_generate2 = __esm({
270475
270659
  faq: { file: "faq-list", register: "registerFaqList", capabilities: ["wix_api", "open_url"] },
270476
270660
  groups: { file: "groups-section", register: "registerGroupsSection", capabilities: ["wix_api"] },
270477
270661
  groupFeed: { file: "group-feed-section", register: "registerGroupFeedSection", capabilities: ["wix_api"] },
270662
+ groupsNewsfeed: { file: "groups-newsfeed-section", register: "registerGroupsNewsfeedSection", capabilities: ["wix_api"] },
270663
+ // The public rewards program, and the member's own points (read only for a member the host proves to Wix).
270664
+ loyaltyOffering: { file: "loyalty-offering-section", register: "registerLoyaltyOfferingSection", capabilities: ["wix_api"] },
270665
+ loyaltyStatus: { file: "loyalty-status-section", register: "registerLoyaltyStatusSection", capabilities: ["wix_api"] },
270478
270666
  products: { file: "products-section", register: "registerProductsSection", capabilities: ["wix_api"] },
270479
270667
  galleries: { file: "galleries-section", register: "registerGalleriesSection", capabilities: ["wix_api"] },
270668
+ eventSchedule: { file: "event-schedule-section", register: "registerEventScheduleSection", capabilities: ["wix_api"] },
270480
270669
  subscriptions: { file: "my-subscriptions-section", register: "registerSubscriptionsSection", capabilities: ["wix_api"] },
270481
270670
  services: { file: "services-section", register: "registerServicesSection", capabilities: ["wix_api"] },
270482
270671
  // The member's own bookings: the read goes through the same member identity as My Bookings.
270483
270672
  upcomingBookings: { file: "upcoming-bookings-section", register: "registerUpcomingBookingsSection", capabilities: ["wix_api"] },
270484
- videos: { file: "videos-section", register: "registerVideosSection", capabilities: ["wix_api"] }
270673
+ // The member's weekly goal, streak and all-time sessions, counted from the same member-scoped bookings (and the same rule) as My Bookings.
270674
+ performanceTracker: { file: "performance-tracker-section", register: "registerPerformanceTrackerSection", capabilities: ["wix_api"] },
270675
+ videos: { file: "videos-section", register: "registerVideosSection", capabilities: ["wix_api"] },
270676
+ // The feed is read through the public Wix Podcasts gateway, a first-party target of the wix_api bridge (no playback: the template screen plays).
270677
+ podcast: { file: "podcast-section", register: "registerPodcastSection", capabilities: ["wix_api"] },
270678
+ // The products saved on this device: the module reads the app's own storage, never the Wix API.
270679
+ savedProducts: { file: "saved-products-section", register: "registerSavedProductsSection", capabilities: [] }
270485
270680
  };
270486
270681
  obj11 = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : {};
270487
270682
  arr = (v2) => Array.isArray(v2) ? v2 : [];
@@ -270518,18 +270713,25 @@ var init_generate2 = __esm({
270518
270713
  };
270519
270714
  SUBSCRIPTIONS_MAX = 5;
270520
270715
  selectedPlanIds = (st2) => arr(st2.selectedPlanIds).filter((v2) => typeof v2 === "string" && !!v2);
270716
+ MEMBERS_RAIL = 10;
270521
270717
  PROGRAMS_DEFAULT_LIMIT = 2;
270522
270718
  PROGRAMS_INLINE_MAX = 20;
270719
+ PODCAST_INLINE = 3;
270523
270720
  GALLERIES_INLINE_MAX = 30;
270721
+ GALLERIES_LIST_INLINE = 10;
270524
270722
  BLOG_HERO_MAX = 10;
270525
270723
  BLOG_SEARCH_POSTS = 100;
270724
+ EVENT_SCHEDULE_INLINE = 10;
270526
270725
  SHOP_ALL = "all";
270527
270726
  SERVICES_INLINE = 6;
270528
270727
  UPCOMING_INLINE = 3;
270529
270728
  PRODUCTS_INLINE = { carousel: 8, grid: 6 };
270530
270729
  GROUP_FEED_POSTS_MAX = 20;
270730
+ NEWSFEED_GROUPS_MAX = 5;
270731
+ LOYALTY_TIERS_INLINE = 3;
270531
270732
  VIDEOS_INLINE_DEFAULT = 8;
270532
270733
  VIDEOS_INLINE_MAX = 20;
270734
+ WISHLIST_INLINE = 6;
270533
270735
  SOCIAL_NETWORKS = {
270534
270736
  instagram: "Instagram",
270535
270737
  facebook: "Facebook",
@@ -270724,6 +270926,35 @@ var init_generate2 = __esm({
270724
270926
  children2.push(...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270725
270927
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270726
270928
  },
270929
+ // A podcast: the show's header and its latest episodes from the source's own RSS feed, as the One App's widget shows them (its three newest,
270930
+ // and "View all episodes" when the feed has more). A row and that link open the template Podcasts screen, which lists and PLAYS the feed.
270931
+ // That screen reads one feed per app, so only the sections that show the app's first feed link to it; the rest list their episodes only.
270932
+ podcasts_widget_section: (id, s5, st2, index, ctx, sectionId) => {
270933
+ const type2 = "podcasts_widget_section";
270934
+ const feedUrl = str16(st2.feedUrl).trim() || str16(st2.originalFeedUrl).trim();
270935
+ if (!/^https?:\/\//i.test(feedUrl)) {
270936
+ ctx.gap(sectionId, type2, "the source section has no podcast feed link, so it shows no podcast; the section is left out");
270937
+ return null;
270938
+ }
270939
+ if (!podcastFeedUrl(feedUrl).ok) {
270940
+ ctx.gap(sectionId, type2, "the source section's podcast link is not a public web address (a private or local host, or one that carries a user name), which the template Podcasts screen refuses too; the section is left out");
270941
+ return null;
270942
+ }
270943
+ const svc = ctx.uses("podcast", `podcast${index}`, { feedUrl, limit: PODCAST_INLINE });
270944
+ let list5 = ctx.recipe("podcasts-widget", { svc, id, episodesScreen: "himi_podcasts" });
270945
+ const hasScreen2 = ctx.hasScreen("himi_podcasts");
270946
+ if (!(hasScreen2 && ctx.claimScreenParam("himi_podcasts", "feedUrl", feedUrl))) {
270947
+ list5 = withoutTap(withoutNode(list5, `${id}.more`), `${id}.row`);
270948
+ ctx.gap(sectionId, type2, hasScreen2 ? "the source opens an episode's page from this podcast; the template Podcasts screen plays one feed per app, and it shows another podcast's feed, so these episodes and the View all episodes link do not open it" : "the source opens an episode's page from this podcast; this scaffold has no himi_podcasts screen to play it, so the episodes are listed without a tap and without View all episodes");
270949
+ } else {
270950
+ ctx.gap(sectionId, type2, "the source opens an episode's own page from the list; the section opens the template Podcasts screen (every episode, with its player) instead");
270951
+ }
270952
+ const title = str16(s5.title).trim();
270953
+ const children2 = [];
270954
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270955
+ children2.push(list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270956
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270957
+ },
270727
270958
  // The selected plans as cards: name, pitch, price, validity, a details button and the benefits list (unless the source hides it).
270728
270959
  // A scaffold without the plans recipe keeps the title and a link to the template's plans screen, as every data section does.
270729
270960
  memberships_plan_cards_carousel: (id, s5, st2, index, ctx) => plansSection(id, s5, index, ctx, { planIds: selectedPlanIds(st2), showBenefits: st2.shouldDisplayBenefitsList !== false }),
@@ -270740,17 +270971,16 @@ var init_generate2 = __esm({
270740
270971
  // the source's `maxGalleries`. A card opens the template's gallery screen and View All its galleries screen: a scaffold without either
270741
270972
  // keeps the title and a link, as every data section does.
270742
270973
  progallery_carousel_section: (id, s5, st2, index, ctx, sectionId) => {
270743
- if (!ctx.hasScreen("himi_gallery")) throw new RecipeError("this scaffold has no himi_gallery screen for a gallery card to open, so the section keeps its title and a See All link.");
270744
270974
  const asked = typeof st2.maxGalleries === "number" && st2.maxGalleries >= 1 ? Math.floor(st2.maxGalleries) : void 0;
270745
270975
  const limit = asked !== void 0 ? Math.min(asked, GALLERIES_INLINE_MAX) : void 0;
270746
270976
  if (asked !== void 0 && limit !== asked) ctx.gap(sectionId, "progallery_carousel_section", `the source shows ${asked} galleries; the section shows the first ${limit}`);
270747
- const svc = ctx.uses("galleries", `galleries${index}`, { ...limit !== void 0 ? { limit } : {}, showName: st2.isShowName !== false });
270748
- const children2 = [];
270749
- const title = str16(s5.title).trim();
270750
- const viewAll = ctx.hasScreen("himi_galleries") ? node(`${id}.all`, "Button", { title: "View All", style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_galleries" } } }, { hiddenPath: `$service:${svc}.noMore` }) : void 0;
270751
- if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270752
- children2.push(ctx.recipe(st2.isCarousel === false ? "galleries-list" : "galleries-carousel", { svc, id }), ...viewAll ? [viewAll] : [], ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270753
- return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270977
+ return galleryCards(id, s5, index, ctx, { layout: st2.isCarousel === false ? "galleries-list" : "galleries-carousel", showName: st2.isShowName !== false, ...limit !== void 0 ? { limit } : {} });
270978
+ },
270979
+ // The Pro Gallery list section is the source's whole galleries screen and has no settings of its own (no count, layout or names switch),
270980
+ // so it shows the site's first galleries as full-width cards with every name, and View All opens the galleries screen for the rest.
270981
+ proGallery_gallery_list_section: (id, s5, _st, index, ctx, sectionId) => {
270982
+ ctx.gap(sectionId, "proGallery_gallery_list_section", `the source lists every gallery; the section shows the first ${GALLERIES_LIST_INLINE} and View All opens the galleries screen`);
270983
+ return galleryCards(id, s5, index, ctx, { layout: "galleries-list", showName: true, limit: GALLERIES_LIST_INLINE });
270754
270984
  },
270755
270985
  // The signed-in member's active plan orders as cards that open the subscription, with the section's See All. A guest sees a sign-in
270756
270986
  // prompt (never an error). The source's package balances and session credits have no equivalent here, so they are reported.
@@ -270796,17 +271026,32 @@ var init_generate2 = __esm({
270796
271026
  },
270797
271027
  // The latest posts as a snapping carousel. A carousel is a handful of posts, so an unlimited source is capped; the source's
270798
271028
  // title-over-image look is the one thing the recipe lays out differently, and both adaptations are reported.
270799
- newBlog_postlist_carousel_full_section: (id, s5, st2, index, ctx, sectionId) => {
270800
- const { base: base2, limit } = blogOptions(st2);
270801
- const shown3 = Math.min(limit ?? BLOG_HERO_MAX, BLOG_HERO_MAX);
270802
- if (limit === void 0 || limit > BLOG_HERO_MAX) ctx.gap(sectionId, "newBlog_postlist_carousel_full_section", `the source carousel is not limited to ${BLOG_HERO_MAX} posts; the app shows the latest ${shown3}`);
270803
- ctx.gap(sectionId, "newBlog_postlist_carousel_full_section", "the source lays each post's title over its image; the title sits under the image");
270804
- const svc = ctx.uses("blog", `blog${index}`, { ...base2, limit: shown3 });
271029
+ newBlog_postlist_carousel_full_section: blogCarousel("newBlog_postlist_carousel_full_section", () => ["the source lays each post's title over its image; the title sits under the image"]),
271030
+ // The "classic" carousel (cards: cover, then title, excerpt and counts) and the "full" one (title over the image) are the same snapping
271031
+ // carousel here; what the cards show beyond cover, title and time is reported.
271032
+ newBlog_postlist_carousel_section: blogCarousel("newBlog_postlist_carousel_section", (st2) => {
271033
+ if (st2.carouselLayout === "full") return ["the source lays each post's title over its image; the title sits under the image"];
271034
+ const display = obj11(st2.displayOptions);
271035
+ const extras = [display.excerpt === true && "the excerpt", display.author === true && "the author", display.likes === true && "the likes", display.times_viewed === true && "the views", display.comments === true && "the comments"].filter(Boolean);
271036
+ return extras.length ? [`the source's cards also show ${extras.join(", ")}; the carousel shows the cover, the title and the time`] : [];
271037
+ }),
271038
+ // The blog's categories as an inline vertical list. Each row opens himi_blog, whose chips are the same categories: the template screen
271039
+ // does not open on a given category, so that difference is reported. The source's image and description have no row field here.
271040
+ newBlog_category_list_vertical_section: (id, s5, st2, index, ctx, sectionId) => {
271041
+ const type2 = "newBlog_category_list_vertical_section";
271042
+ if (!ctx.hasScreen("himi_blog")) return ctx.unsupported(sectionId, type2, "this scaffold has no himi_blog screen for a category row to open");
271043
+ const content = obj11(st2.categoryContentSettings), display = obj11(st2.categoryListDisplayOptions);
271044
+ const chosen = chosenBlogCategories(st2);
271045
+ if (content.showAllCategories !== true && arr(content.categories).length && !chosen.length) ctx.gap(sectionId, type2, "the source selects no category; the section lists every category that has posts");
271046
+ ctx.gap(sectionId, type2, "a category row opens the blog, which lists every post with a chip per category; the source opens that category's posts");
271047
+ const dropped = [display.image === true && "image", display.description === true && "description"].filter(Boolean);
271048
+ if (dropped.length) ctx.gap(sectionId, type2, `the source shows each category's ${dropped.join(" and ")}; the section shows its name${display.postsCount === true ? " and post count" : ""}`);
271049
+ const svc = ctx.uses("blogCategories", `blogCategories${index}`, { ...chosen.length ? { categoryIds: chosen } : {}, showCount: display.postsCount === true });
270805
271050
  const children2 = [];
270806
271051
  const title = str16(s5.title).trim();
270807
271052
  if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270808
- children2.push(node(`${id}.loading`, "Skeleton", { height: 200, count: 1, cornerRadius: 12 }, { padding: { leading: 0, trailing: 0, top: 0, bottom: 0 }, hiddenPath: `$service:${svc}.notLoading` }));
270809
- children2.push(ctx.recipe("blog-hero", { svc, id, detailScreen: "himi_blog_post" }), ...ctx.optionalRecipe("section-error", { svc, id, action: "retry" }));
271053
+ children2.push(node(`${id}.loading`, "Skeleton", { height: 44, count: 3, cornerRadius: 12 }, { padding: { leading: 0, trailing: 0, top: 0, bottom: 0 }, hiddenPath: `$service:${svc}.notLoading` }));
271054
+ children2.push(ctx.recipe("blog-categories", { svc, id, blogScreen: "himi_blog" }), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270810
271055
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270811
271056
  },
270812
271057
  // The FAQ: questions grouped by category as disclosure rows, with the source's own settings. What the recipe has no control for is reported.
@@ -270835,32 +271080,60 @@ var init_generate2 = __esm({
270835
271080
  groups_cards_section: groupsSection("groups-cards", "groups_cards_section"),
270836
271081
  stores_products_carousel_section: productsSection("carousel"),
270837
271082
  stores_products_grid_section: productsSection("grid"),
271083
+ stores_products_search_section: productsSearchSection,
271084
+ stores_wishlist_section: wishlistSection,
270838
271085
  // One chosen group's latest posts, and the source's own button that opens the group. A group that is not public shows the state the
270839
271086
  // group screen shows a non-member, never its posts. A scaffold without the feed module keeps the title and the button.
270840
- single_group_feed_section: (id, s5, st2, index, ctx, elementId) => {
270841
- const groupId = str16(st2.groupId);
270842
- if (!groupId) return ctx.unsupported(elementId, "single_group_feed_section", "the section names no group");
270843
- if (!ctx.hasScreen("himi_group")) return ctx.unsupported(elementId, "single_group_feed_section", "this scaffold has no himi_group screen to open the group in");
270844
- const openLabel = str16(st2.seeAllButtonText).trim() || "Open group";
271087
+ single_group_feed_section: groupFeedSection("single_group_feed_section"),
271088
+ // The groups newsfeed: the latest posts across the site's public groups (every group when the source chose none). One chosen group is the
271089
+ // single-group feed above, with the source's own See All text on its button; several or all go through the groups newsfeed module.
271090
+ groups_feed_section: (id, s5, st2, index, ctx, elementId) => {
271091
+ const type2 = "groups_feed_section";
271092
+ const chosen = arr(st2.groupsToShow).filter((v2) => typeof v2 === "string" && !!v2);
271093
+ const heading = str16(st2.sectionTitle).trim();
271094
+ const titled = heading ? { ...s5, title: heading, showTitle: true } : s5;
271095
+ if (chosen.length === 1) return groupFeedSection(type2)(id, titled, { ...st2, groupId: chosen[0] }, index, ctx, elementId);
271096
+ if (!ctx.hasScreen("himi_group")) return ctx.unsupported(elementId, type2, "this scaffold has no himi_group screen to open a post's group in");
271097
+ const limit = countOf2(st2.postNumber);
271098
+ const listLabel = str16(st2.openGroupListButtonText).trim() || "Group list";
271099
+ const svc = ctx.uses("groupsNewsfeed", `groupsNewsfeed${index}`, { ...chosen.length ? { groupIds: chosen } : {}, ...limit !== void 0 ? { limit } : {} });
271100
+ const children2 = [];
271101
+ const title = str16(titled.title).trim();
271102
+ if (titled.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
271103
+ const feed = ctx.recipe("groups-newsfeed", { svc, id, detailScreen: "himi_group", groupListLabel: listLabel, groupListScreen: "himi_groups" });
271104
+ children2.push(ctx.hasScreen("himi_groups") ? feed : withoutNode(feed, `${id}.groups`), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
271105
+ if (limit !== void 0 && limit > GROUP_FEED_POSTS_MAX) ctx.gap(elementId, type2, `the source shows ${limit} posts; the section shows the latest ${GROUP_FEED_POSTS_MAX}`);
271106
+ ctx.gap(elementId, type2, `the section reads the latest posts of the first ${NEWSFEED_GROUPS_MAX} public groups${chosen.length ? " it was set to show" : ""} and merges them by time; a group that is not public is never read`);
271107
+ ctx.gap(elementId, type2, `the source's posts have reactions, comments, a composer and a "${str16(st2.seeAllButtonText).trim() || "See All"}" button; the section shows the posts read-only, a post opens its group, and the "${listLabel}" button opens the groups list`);
271108
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
271109
+ },
271110
+ // The rewards program's offering: tiers (when the program has them), the ways to earn points and the rewards, read from the public program,
271111
+ // and a button to the Rewards screen. The section has no settings of its own (title only).
271112
+ loyalty_offering_section: (id, s5, _st, index, ctx, sectionId) => {
271113
+ const type2 = "loyalty_offering_section";
271114
+ const currency = str16(obj11(ctx.business).paymentCurrency);
271115
+ const svc = ctx.uses("loyaltyOffering", `loyaltyOffering${index}`, /^[A-Z]{3}$/.test(currency) ? { currency } : {});
271116
+ const children2 = [];
270845
271117
  const title = str16(s5.title).trim();
271118
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
271119
+ const offering = ctx.recipe("loyalty-offering", { svc, id, loyaltyScreen: "himi_loyalty" });
271120
+ const hasScreen2 = ctx.hasScreen("himi_loyalty");
271121
+ children2.push(hasScreen2 ? offering : withoutNode(offering, `${id}.view`), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
271122
+ ctx.gap(sectionId, type2, `the section shows the first ${LOYALTY_TIERS_INLINE} tiers of the program${hasScreen2 ? ", and a button opens the Rewards screen (every tier, redeeming)" : ""}`);
271123
+ if (!/^[A-Z]{3}$/.test(currency)) ctx.gap(sectionId, type2, `the business's currency is not in the collected evidence, so a rule or reward priced in money reads "Points details unavailable"`);
271124
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
271125
+ },
271126
+ // The signed-in member's points and tier, or a sign-in card for a visitor.
271127
+ loyalty_status_section: (id, s5, _st, index, ctx, sectionId) => {
271128
+ const type2 = "loyalty_status_section";
271129
+ const svc = ctx.uses("loyaltyStatus", `loyaltyStatus${index}`, {});
270846
271130
  const children2 = [];
270847
- if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270848
- let onAppear, svc = "";
270849
- try {
270850
- const limit = countOf2(st2.postNumber);
270851
- svc = ctx.uses("groupFeed", `groupFeed${index}`, { groupId, ...limit !== void 0 ? { limit } : {} });
270852
- children2.push(ctx.recipe("group-feed", { svc, id, detailScreen: "himi_group", groupId, openLabel }), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270853
- onAppear = { actionId: `tier5.${svc}.load`, params: {} };
270854
- if (limit !== void 0 && limit > GROUP_FEED_POSTS_MAX) ctx.gap(elementId, "single_group_feed_section", `the source shows ${limit} posts; the section shows the latest ${GROUP_FEED_POSTS_MAX}`);
270855
- if (str16(st2.topicsLayout).trim()) ctx.gap(elementId, "single_group_feed_section", `the source filters the posts by topic (${str16(st2.topicsLayout).toLowerCase()} layout); the section shows the group's latest posts without the topic filter`);
270856
- ctx.gap(elementId, "single_group_feed_section", "the source's posts have reactions, comments and a composer; the section shows the posts read-only, and the group opens from its button");
270857
- } catch (error) {
270858
- if (!(error instanceof RecipeError)) throw error;
270859
- if (svc) ctx.release(svc);
270860
- ctx.gap(elementId, "single_group_feed_section", "the group's posts are not shown inline: this scaffold does not ship the group feed recipe or module; the section opens the group");
270861
- children2.push(node(`${id}.open`, "Button", { title: openLabel, style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_group", id: groupId } } }));
270862
- }
270863
- return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), ...onAppear ? { onAppear } : {} });
271131
+ const title = str16(s5.title).trim();
271132
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
271133
+ const status2 = ctx.recipe("loyalty-status", { svc, id, signInScreen: "himi_sign_in" });
271134
+ children2.push(ctx.hasScreen("himi_sign_in") ? status2 : withoutNode(status2, `${id}.signin`), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
271135
+ ctx.gap(sectionId, type2, `the section shows the member's points and tier; the points' expiry and the "Rewards available (N)" line are not shown (the Rewards screen shows them)`);
271136
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270864
271137
  },
270865
271138
  pages_section: (id, _s2, _st, index, ctx, elementId) => {
270866
271139
  const placement = ctx.placements.get(`${ctx.page.layoutItemId}:${elementId}:${index}`);
@@ -270906,6 +271179,27 @@ var init_generate2 = __esm({
270906
271179
  children2.push(list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270907
271180
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270908
271181
  },
271182
+ // The member's weekly goal, streak and all-time sessions. The source reads a private fitness service: the section counts the same
271183
+ // member-scoped bookings as My Bookings, and every number that differs from the source's is reported.
271184
+ performance_tracker_section: (id, s5, st2, index, ctx, sectionId) => {
271185
+ const type2 = "performance_tracker_section";
271186
+ if (!ctx.hasScreen("himi_bookings")) return ctx.unsupported(sectionId, type2, "this scaffold has no himi_bookings screen for the section to open");
271187
+ const display = obj11(st2.displaySettings);
271188
+ const goal = countOf2(obj11(display.defaultWeeklyGoal).value);
271189
+ const showTotal = obj11(display.totalNumberOfSessions).show !== false;
271190
+ const mode = str16(obj11(st2.progressCalculation).calculationMode).trim();
271191
+ ctx.gap(sectionId, type2, `the section counts the member's confirmed bookings that already took place (the rule of My Bookings' "This week"), not the source's tracker service; a weekly goal of ${goal ?? "2"} is used for everyone (the source lets a member set their own), and a See All button opens My Bookings`);
271192
+ ctx.gap(sectionId, type2, mode === "all" ? "the source counts every scheduled session in the week, including those still to come; the section counts only those that took place" : "the source counts only sessions marked attended; a visitor cannot read attendance, so the section counts every confirmed session that took place");
271193
+ if (obj11(st2.dailyActivity).enabled === true) ctx.gap(sectionId, type2, "the source shows the member's daily activity from Apple Health; the section has no health data");
271194
+ const svc = ctx.uses("performanceTracker", `performanceTracker${index}`, { ...goal !== void 0 ? { goal } : {}, showTotal });
271195
+ const children2 = [];
271196
+ const title = str16(s5.title).trim();
271197
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
271198
+ let card2 = ctx.recipe("performance-tracker", { svc, id, signInScreen: "himi_sign_in", seeAllLabel: "See All", seeAllScreen: "himi_bookings" });
271199
+ if (!ctx.hasScreen("himi_sign_in")) card2 = withoutNode(card2, `${id}.signin.button`);
271200
+ children2.push(card2, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
271201
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
271202
+ },
270909
271203
  // The programs carousel: the shared programs module in carousel layout, configured from the section's own settings.
270910
271204
  achievements_carousel_section: (id, s5, st2, index, ctx) => {
270911
271205
  const sorting = obj11(st2.sortingSettings);
@@ -270965,9 +271259,27 @@ var init_generate2 = __esm({
270965
271259
  // layout, with the source's own empty text. A visitor is asked to sign in, as on the template's member programs screen.
270966
271260
  // The members directory: search with the member count, flat rows, letter bands, role, activity, badges and Follow. The
270967
271261
  // section has no settings of its own, so the native defaults are the contract: every extra is on.
270968
- member_list_section: (id, s5, _st, index, ctx) => {
270969
- const svc = ctx.uses("members", `members${index}`, { showRole: true, showActivity: true, showBadges: true, showFollow: true, letterBands: true });
270970
- return composed2(id, s5, svc, ctx.recipeNodes("members-list", { svc, id, detailScreen: "himi_member" }));
271262
+ member_list_section: (id, s5, _st, index, ctx) => membersDirectory(id, s5, index, ctx),
271263
+ // The same directory on a page of other sections. Its one setting, `showMembers`, has only ever been "all" in the sites collected:
271264
+ // any other value is a filter this generator does not know, so it is reported instead of guessed.
271265
+ platform_general_members_section: (id, s5, st2, index, ctx, sectionId) => {
271266
+ const show2 = str16(st2.showMembers).trim();
271267
+ if (show2 && show2 !== "all") return ctx.unsupported(sectionId, "platform_general_members_section", `its members filter ${JSON.stringify(show2)} is not one this generator knows`);
271268
+ return membersDirectory(id, s5, index, ctx);
271269
+ },
271270
+ // The members rail: avatar cards from the members directory module in rail mode. `display` picks the members: everyone (also when the
271271
+ // source set none), or only those who hold a badge. Followers and admins have no read the directory makes, so those two are reported.
271272
+ member_horizontal_list_section: (id, s5, st2, index, ctx, sectionId) => {
271273
+ const type2 = "member_horizontal_list_section", display = str16(st2.display).trim() || "all-members";
271274
+ if (display !== "all-members" && display !== "members-with-badges") return ctx.unsupported(sectionId, type2, `its "${display}" list needs a read the members directory does not make (followers, admins)`);
271275
+ const onlyWithBadges = display === "members-with-badges";
271276
+ const svc = ctx.uses("members", `membersRail${index}`, { showBadges: onlyWithBadges, rail: { limit: MEMBERS_RAIL, ...onlyWithBadges ? { onlyWithBadges } : {} } });
271277
+ const children2 = [];
271278
+ const title = str16(s5.title).trim();
271279
+ if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
271280
+ children2.push(ctx.recipe("members-carousel", { svc, id, detailScreen: "himi_member" }), ...ctx.optionalRecipe("section-error", { svc, id, action: "retry" }));
271281
+ ctx.gap(sectionId, type2, `the source lists its members in a horizontal list; the section shows the first ${MEMBERS_RAIL} as a rail${onlyWithBadges ? ", picked from the first page of members (those who hold a badge)" : ""}`);
271282
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270971
271283
  },
270972
271284
  // A blog list: the shared blog-list module configured from the section's own settings; unlimited follows the cursor,
270973
271285
  // a limited list shows N posts and offers "See All Posts" for the full list in the same category.
@@ -270980,6 +271292,24 @@ var init_generate2 = __esm({
270980
271292
  }
270981
271293
  return eventsInline(id, s5, index, ctx);
270982
271294
  },
271295
+ // One event's schedule (the source's `eventId`): its first sessions as rows (day and time in the event's zone, name, stage), and View All
271296
+ // opens the event, whose full schedule lists every session. The whole section hides when the event has no schedule. A section with no
271297
+ // event chosen, or in a scaffold without the event screen or recipe, keeps its title and a link to the events screen.
271298
+ events_schedule_section: (id, s5, st2, index, ctx, sectionId) => {
271299
+ const eventId = str16(st2.eventId).trim();
271300
+ if (!eventId) return ctx.unsupported(sectionId, "events_schedule_section", "the source section has no event chosen, so there is no schedule to show");
271301
+ if (!ctx.hasScreen("himi_event")) throw new RecipeError("this scaffold has no himi_event screen for View All to open, so the section keeps its title and a See All link.");
271302
+ const svc = ctx.uses("eventSchedule", `eventSchedule${index}`, { eventId });
271303
+ ctx.gap(sectionId, "events_schedule_section", `the section lists the event's first ${EVENT_SCHEDULE_INLINE} sessions and View All opens the event; the source's My Agenda bookmarks are not shown`);
271304
+ ctx.gap(sectionId, "events_schedule_section", "the source shows a message when the event has no schedule; the section hides itself instead");
271305
+ const children2 = [];
271306
+ const title = str16(s5.title).trim();
271307
+ if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
271308
+ const viewAll = node(`${id}.all`, "Button", { title: "View All", style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_event", id: eventId } } }, { hiddenPath: `$service:${svc}.noMore` });
271309
+ children2.push(ctx.recipe("event-schedule", { svc, id }), viewAll, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
271310
+ const box = vstack(`${id}.box`, children2, 12, { ...inset(16, 16), hiddenPath: `$service:${svc}.hideSection` });
271311
+ return vstack(`${id}.loader`, [box], 0, { onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
271312
+ },
270983
271313
  // The business contact section: its own title and description, and only the rows the source switches on.
270984
271314
  platform_general_contact_section: (id, s5, st2, _i2, ctx) => {
270985
271315
  const profile = obj11(ctx.raw.businessProfile);
@@ -271005,10 +271335,12 @@ var init_generate2 = __esm({
271005
271335
  // The data of these is a template screen of its own (`TEMPLATE_VERTICALS`): beside other sections the page keeps the source's title and a link to it.
271006
271336
  vod_list_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "vod_list_section", NO_INLINE_SECTION),
271007
271337
  bookings_agenda_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "bookings_agenda_section", NO_INLINE_SECTION),
271008
- loyalty_status_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "loyalty_status_section", NO_INLINE_SECTION),
271009
- loyalty_offering_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "loyalty_offering_section", NO_INLINE_SECTION),
271010
- platform_general_members_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "platform_general_members_section", NO_INLINE_SECTION),
271011
- groups_feed_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "groups_feed_section", NO_INLINE_SECTION),
271338
+ // The source strip is the Bookings member widget: the business's next 3 bookable sessions with the member's booked status, whatever its
271339
+ // `interval` setting says (the Bookings provider reads only the business). The agenda screen lists the site's upcoming sessions.
271340
+ platform_general_upcoming_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "platform_general_upcoming_section", "the source strip shows the business's next 3 bookable sessions with the member's booked status; the agenda screen lists the site's upcoming sessions, so the section is not shown inline"),
271341
+ // Shared galleries are the members' Shared Gallery, a different data source from the Pro Gallery list the shared loader reads (the
271342
+ // migration guide says not to substitute it), so the section is not shown inline: it keeps its title and links to the galleries screen.
271343
+ shared_gallery_list_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "shared_gallery_list_section", "the source's shared galleries are the members' Shared Gallery, a different data source from the site's Pro Gallery, so they are not shown inline; the link opens the site's galleries, not the members' shared ones"),
271012
271344
  // The events carousel. `filter` is the source's choice of events: 0 every event, 1 by category, "manual" chosen events (read off the 45
271013
271345
  // carousels collected from the top apps). The shared events section has no event or category filter, so a chosen selection is reported and
271014
271346
  // keeps its place as a link; an unfiltered carousel shows the next events as cards, which is the one thing it cannot lay out as a rail.
@@ -272524,7 +272856,8 @@ async function runOneAppGenerate(args, io2) {
272524
272856
  if (cleared === "set") templateParams.push({ screenId: route.screenId, params: {}, status: cleared });
272525
272857
  }
272526
272858
  }
272527
- const targeted = new Set(result.routes.flatMap((route) => route.kind === "template" && route.screenId ? [route.screenId] : []));
272859
+ for (const { screenId, params } of result.screenParams) templateParams.push({ screenId, params, status: applyScreenParams(options2.contentDir, screenId, params, false, TEMPLATE_SCREEN_PARAM_KEYS[screenId] ?? []) });
272860
+ const targeted = /* @__PURE__ */ new Set([...result.routes.flatMap((route) => route.kind === "template" && route.screenId ? [route.screenId] : []), ...result.screenParams.map((entry) => entry.screenId)]);
272528
272861
  for (const [screenId, keys2] of Object.entries(TEMPLATE_SCREEN_PARAM_KEYS)) {
272529
272862
  if (targeted.has(screenId)) continue;
272530
272863
  let cleared = "absent";