@wix/himalaya-cli 0.1776.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 (358) hide show
  1. package/dist/cli.mjs +456 -69
  2. package/guides/himi-json-output.md +4 -1
  3. package/guides/one-app-section-mappings.md +5 -8
  4. package/guides/one-app-to-himi-app.md +29 -10
  5. package/package.json +2 -2
  6. package/templates/beauty-salon/dev/index.ts +2 -2
  7. package/templates/beauty-salon/l10n/ar.json +5 -0
  8. package/templates/beauty-salon/l10n/cs.json +5 -0
  9. package/templates/beauty-salon/l10n/da.json +5 -0
  10. package/templates/beauty-salon/l10n/de.json +5 -0
  11. package/templates/beauty-salon/l10n/el.json +5 -0
  12. package/templates/beauty-salon/l10n/es.json +5 -0
  13. package/templates/beauty-salon/l10n/fi.json +5 -0
  14. package/templates/beauty-salon/l10n/fr.json +5 -0
  15. package/templates/beauty-salon/l10n/he.json +4 -0
  16. package/templates/beauty-salon/l10n/hu.json +5 -0
  17. package/templates/beauty-salon/l10n/id.json +5 -0
  18. package/templates/beauty-salon/l10n/it.json +5 -0
  19. package/templates/beauty-salon/l10n/ja.json +5 -0
  20. package/templates/beauty-salon/l10n/ko.json +5 -0
  21. package/templates/beauty-salon/l10n/lt.json +5 -0
  22. package/templates/beauty-salon/l10n/nl.json +5 -0
  23. package/templates/beauty-salon/l10n/no.json +5 -0
  24. package/templates/beauty-salon/l10n/pl.json +5 -0
  25. package/templates/beauty-salon/l10n/pt.json +5 -0
  26. package/templates/beauty-salon/l10n/ru.json +5 -0
  27. package/templates/beauty-salon/l10n/sv.json +5 -0
  28. package/templates/beauty-salon/l10n/th.json +5 -0
  29. package/templates/beauty-salon/l10n/tr.json +5 -0
  30. package/templates/beauty-salon/l10n/uk.json +5 -0
  31. package/templates/beauty-salon/l10n/vi.json +5 -0
  32. package/templates/beauty-salon/l10n/zh.json +5 -0
  33. package/templates/beauty-salon/tier5-src/_shared/weekly-goal.ts +7 -3
  34. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +55 -3
  35. package/templates/branded-lite/dev/index.ts +2 -2
  36. package/templates/branded-lite/l10n/ar.json +15 -0
  37. package/templates/branded-lite/l10n/cs.json +15 -0
  38. package/templates/branded-lite/l10n/da.json +15 -0
  39. package/templates/branded-lite/l10n/de.json +15 -0
  40. package/templates/branded-lite/l10n/el.json +15 -0
  41. package/templates/branded-lite/l10n/es.json +15 -0
  42. package/templates/branded-lite/l10n/fi.json +15 -0
  43. package/templates/branded-lite/l10n/fr.json +15 -0
  44. package/templates/branded-lite/l10n/he.json +12 -0
  45. package/templates/branded-lite/l10n/hu.json +15 -0
  46. package/templates/branded-lite/l10n/id.json +15 -0
  47. package/templates/branded-lite/l10n/it.json +15 -0
  48. package/templates/branded-lite/l10n/ja.json +15 -0
  49. package/templates/branded-lite/l10n/ko.json +15 -0
  50. package/templates/branded-lite/l10n/lt.json +15 -0
  51. package/templates/branded-lite/l10n/nl.json +15 -0
  52. package/templates/branded-lite/l10n/no.json +15 -0
  53. package/templates/branded-lite/l10n/pl.json +15 -0
  54. package/templates/branded-lite/l10n/pt.json +15 -0
  55. package/templates/branded-lite/l10n/ru.json +15 -0
  56. package/templates/branded-lite/l10n/sv.json +15 -0
  57. package/templates/branded-lite/l10n/th.json +15 -0
  58. package/templates/branded-lite/l10n/tr.json +15 -0
  59. package/templates/branded-lite/l10n/uk.json +15 -0
  60. package/templates/branded-lite/l10n/vi.json +15 -0
  61. package/templates/branded-lite/l10n/zh.json +15 -0
  62. package/templates/branded-lite/recipes/blog-categories.json +115 -0
  63. package/templates/branded-lite/recipes/event-schedule.json +114 -0
  64. package/templates/branded-lite/recipes/groups-newsfeed.json +245 -0
  65. package/templates/branded-lite/recipes/loyalty-offering.json +241 -0
  66. package/templates/branded-lite/recipes/loyalty-status.json +173 -0
  67. package/templates/branded-lite/recipes/members-carousel.json +144 -0
  68. package/templates/branded-lite/recipes/performance-tracker.json +325 -0
  69. package/templates/branded-lite/recipes/podcasts-widget.json +280 -0
  70. package/templates/branded-lite/recipes/products-search-bar.json +139 -0
  71. package/templates/branded-lite/recipes/wishlist-grid.json +236 -0
  72. package/templates/branded-lite/tier5-src/_shared/blog-categories.ts +62 -0
  73. package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +122 -0
  74. package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +91 -0
  75. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +2 -2
  76. package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +105 -0
  77. package/templates/branded-lite/tier5-src/_shared/loyalty-offering-section.ts +88 -0
  78. package/templates/branded-lite/tier5-src/_shared/loyalty-status-section.ts +88 -0
  79. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +9 -3
  80. package/templates/branded-lite/tier5-src/_shared/performance-tracker-section.ts +120 -0
  81. package/templates/branded-lite/tier5-src/_shared/performance-tracker-weeks.ts +71 -0
  82. package/templates/branded-lite/tier5-src/_shared/podcast-section.ts +131 -0
  83. package/templates/branded-lite/tier5-src/_shared/saved-products-section.ts +64 -0
  84. package/templates/branded-lite/tier5-src/_shared/weekly-goal.ts +7 -3
  85. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +55 -3
  86. package/templates/brandy/tier5-src/himi-store-account/index.ts +55 -3
  87. package/templates/community-club/dev/index.ts +2 -2
  88. package/templates/community-club/l10n/ar.json +5 -0
  89. package/templates/community-club/l10n/cs.json +5 -0
  90. package/templates/community-club/l10n/da.json +5 -0
  91. package/templates/community-club/l10n/de.json +5 -0
  92. package/templates/community-club/l10n/el.json +5 -0
  93. package/templates/community-club/l10n/es.json +5 -0
  94. package/templates/community-club/l10n/fi.json +5 -0
  95. package/templates/community-club/l10n/fr.json +5 -0
  96. package/templates/community-club/l10n/he.json +4 -0
  97. package/templates/community-club/l10n/hu.json +5 -0
  98. package/templates/community-club/l10n/id.json +5 -0
  99. package/templates/community-club/l10n/it.json +5 -0
  100. package/templates/community-club/l10n/ja.json +5 -0
  101. package/templates/community-club/l10n/ko.json +5 -0
  102. package/templates/community-club/l10n/lt.json +5 -0
  103. package/templates/community-club/l10n/nl.json +5 -0
  104. package/templates/community-club/l10n/no.json +5 -0
  105. package/templates/community-club/l10n/pl.json +5 -0
  106. package/templates/community-club/l10n/pt.json +5 -0
  107. package/templates/community-club/l10n/ru.json +5 -0
  108. package/templates/community-club/l10n/sv.json +5 -0
  109. package/templates/community-club/l10n/th.json +5 -0
  110. package/templates/community-club/l10n/tr.json +5 -0
  111. package/templates/community-club/l10n/uk.json +5 -0
  112. package/templates/community-club/l10n/vi.json +5 -0
  113. package/templates/community-club/l10n/zh.json +5 -0
  114. package/templates/community-club/tier5-src/_shared/weekly-goal.ts +7 -3
  115. package/templates/community-club/tier5-src/himi-store-account/index.ts +55 -3
  116. package/templates/conference/tier5-src/himi-store-account/index.ts +55 -3
  117. package/templates/events-meetups/dev/index.ts +2 -2
  118. package/templates/events-meetups/l10n/ar.json +5 -0
  119. package/templates/events-meetups/l10n/cs.json +5 -0
  120. package/templates/events-meetups/l10n/da.json +5 -0
  121. package/templates/events-meetups/l10n/de.json +5 -0
  122. package/templates/events-meetups/l10n/el.json +5 -0
  123. package/templates/events-meetups/l10n/es.json +5 -0
  124. package/templates/events-meetups/l10n/fi.json +5 -0
  125. package/templates/events-meetups/l10n/fr.json +5 -0
  126. package/templates/events-meetups/l10n/he.json +4 -0
  127. package/templates/events-meetups/l10n/hu.json +5 -0
  128. package/templates/events-meetups/l10n/id.json +5 -0
  129. package/templates/events-meetups/l10n/it.json +5 -0
  130. package/templates/events-meetups/l10n/ja.json +5 -0
  131. package/templates/events-meetups/l10n/ko.json +5 -0
  132. package/templates/events-meetups/l10n/lt.json +5 -0
  133. package/templates/events-meetups/l10n/nl.json +5 -0
  134. package/templates/events-meetups/l10n/no.json +5 -0
  135. package/templates/events-meetups/l10n/pl.json +5 -0
  136. package/templates/events-meetups/l10n/pt.json +5 -0
  137. package/templates/events-meetups/l10n/ru.json +5 -0
  138. package/templates/events-meetups/l10n/sv.json +5 -0
  139. package/templates/events-meetups/l10n/th.json +5 -0
  140. package/templates/events-meetups/l10n/tr.json +5 -0
  141. package/templates/events-meetups/l10n/uk.json +5 -0
  142. package/templates/events-meetups/l10n/vi.json +5 -0
  143. package/templates/events-meetups/l10n/zh.json +5 -0
  144. package/templates/events-meetups/tier5-src/_shared/weekly-goal.ts +7 -3
  145. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +55 -3
  146. package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +7 -3
  147. package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +55 -3
  148. package/templates/gym-fitness/dev/index.ts +2 -2
  149. package/templates/gym-fitness/l10n/ar.json +5 -0
  150. package/templates/gym-fitness/l10n/cs.json +5 -0
  151. package/templates/gym-fitness/l10n/da.json +5 -0
  152. package/templates/gym-fitness/l10n/de.json +5 -0
  153. package/templates/gym-fitness/l10n/el.json +5 -0
  154. package/templates/gym-fitness/l10n/es.json +5 -0
  155. package/templates/gym-fitness/l10n/fi.json +5 -0
  156. package/templates/gym-fitness/l10n/fr.json +5 -0
  157. package/templates/gym-fitness/l10n/he.json +4 -0
  158. package/templates/gym-fitness/l10n/hu.json +5 -0
  159. package/templates/gym-fitness/l10n/id.json +5 -0
  160. package/templates/gym-fitness/l10n/it.json +5 -0
  161. package/templates/gym-fitness/l10n/ja.json +5 -0
  162. package/templates/gym-fitness/l10n/ko.json +5 -0
  163. package/templates/gym-fitness/l10n/lt.json +5 -0
  164. package/templates/gym-fitness/l10n/nl.json +5 -0
  165. package/templates/gym-fitness/l10n/no.json +5 -0
  166. package/templates/gym-fitness/l10n/pl.json +5 -0
  167. package/templates/gym-fitness/l10n/pt.json +5 -0
  168. package/templates/gym-fitness/l10n/ru.json +5 -0
  169. package/templates/gym-fitness/l10n/sv.json +5 -0
  170. package/templates/gym-fitness/l10n/th.json +5 -0
  171. package/templates/gym-fitness/l10n/tr.json +5 -0
  172. package/templates/gym-fitness/l10n/uk.json +5 -0
  173. package/templates/gym-fitness/l10n/vi.json +5 -0
  174. package/templates/gym-fitness/l10n/zh.json +5 -0
  175. package/templates/gym-fitness/tier5-src/_shared/weekly-goal.ts +7 -3
  176. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +55 -3
  177. package/templates/medical-services/tier5-src/_shared/weekly-goal.ts +7 -3
  178. package/templates/medical-services/tier5-src/himi-store-account/index.ts +55 -3
  179. package/templates/nonprofit-cause/dev/index.ts +2 -2
  180. package/templates/nonprofit-cause/l10n/ar.json +5 -0
  181. package/templates/nonprofit-cause/l10n/cs.json +5 -0
  182. package/templates/nonprofit-cause/l10n/da.json +5 -0
  183. package/templates/nonprofit-cause/l10n/de.json +5 -0
  184. package/templates/nonprofit-cause/l10n/el.json +5 -0
  185. package/templates/nonprofit-cause/l10n/es.json +5 -0
  186. package/templates/nonprofit-cause/l10n/fi.json +5 -0
  187. package/templates/nonprofit-cause/l10n/fr.json +5 -0
  188. package/templates/nonprofit-cause/l10n/he.json +4 -0
  189. package/templates/nonprofit-cause/l10n/hu.json +5 -0
  190. package/templates/nonprofit-cause/l10n/id.json +5 -0
  191. package/templates/nonprofit-cause/l10n/it.json +5 -0
  192. package/templates/nonprofit-cause/l10n/ja.json +5 -0
  193. package/templates/nonprofit-cause/l10n/ko.json +5 -0
  194. package/templates/nonprofit-cause/l10n/lt.json +5 -0
  195. package/templates/nonprofit-cause/l10n/nl.json +5 -0
  196. package/templates/nonprofit-cause/l10n/no.json +5 -0
  197. package/templates/nonprofit-cause/l10n/pl.json +5 -0
  198. package/templates/nonprofit-cause/l10n/pt.json +5 -0
  199. package/templates/nonprofit-cause/l10n/ru.json +5 -0
  200. package/templates/nonprofit-cause/l10n/sv.json +5 -0
  201. package/templates/nonprofit-cause/l10n/th.json +5 -0
  202. package/templates/nonprofit-cause/l10n/tr.json +5 -0
  203. package/templates/nonprofit-cause/l10n/uk.json +5 -0
  204. package/templates/nonprofit-cause/l10n/vi.json +5 -0
  205. package/templates/nonprofit-cause/l10n/zh.json +5 -0
  206. package/templates/nonprofit-cause/tier5-src/_shared/weekly-goal.ts +7 -3
  207. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +55 -3
  208. package/templates/personal-fitness-trainer/dev/index.ts +2 -2
  209. package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +7 -3
  210. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +55 -3
  211. package/templates/podcast-creator/dev/index.ts +2 -2
  212. package/templates/podcast-creator/l10n/ar.json +5 -0
  213. package/templates/podcast-creator/l10n/cs.json +5 -0
  214. package/templates/podcast-creator/l10n/da.json +5 -0
  215. package/templates/podcast-creator/l10n/de.json +5 -0
  216. package/templates/podcast-creator/l10n/el.json +5 -0
  217. package/templates/podcast-creator/l10n/es.json +5 -0
  218. package/templates/podcast-creator/l10n/fi.json +5 -0
  219. package/templates/podcast-creator/l10n/fr.json +5 -0
  220. package/templates/podcast-creator/l10n/he.json +4 -0
  221. package/templates/podcast-creator/l10n/hu.json +5 -0
  222. package/templates/podcast-creator/l10n/id.json +5 -0
  223. package/templates/podcast-creator/l10n/it.json +5 -0
  224. package/templates/podcast-creator/l10n/ja.json +5 -0
  225. package/templates/podcast-creator/l10n/ko.json +5 -0
  226. package/templates/podcast-creator/l10n/lt.json +5 -0
  227. package/templates/podcast-creator/l10n/nl.json +5 -0
  228. package/templates/podcast-creator/l10n/no.json +5 -0
  229. package/templates/podcast-creator/l10n/pl.json +5 -0
  230. package/templates/podcast-creator/l10n/pt.json +5 -0
  231. package/templates/podcast-creator/l10n/ru.json +5 -0
  232. package/templates/podcast-creator/l10n/sv.json +5 -0
  233. package/templates/podcast-creator/l10n/th.json +5 -0
  234. package/templates/podcast-creator/l10n/tr.json +5 -0
  235. package/templates/podcast-creator/l10n/uk.json +5 -0
  236. package/templates/podcast-creator/l10n/vi.json +5 -0
  237. package/templates/podcast-creator/l10n/zh.json +5 -0
  238. package/templates/podcast-creator/tier5-src/_shared/weekly-goal.ts +7 -3
  239. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +55 -3
  240. package/templates/portfolio-creative/dev/index.ts +2 -2
  241. package/templates/portfolio-creative/l10n/ar.json +5 -0
  242. package/templates/portfolio-creative/l10n/cs.json +5 -0
  243. package/templates/portfolio-creative/l10n/da.json +5 -0
  244. package/templates/portfolio-creative/l10n/de.json +5 -0
  245. package/templates/portfolio-creative/l10n/el.json +5 -0
  246. package/templates/portfolio-creative/l10n/es.json +5 -0
  247. package/templates/portfolio-creative/l10n/fi.json +5 -0
  248. package/templates/portfolio-creative/l10n/fr.json +5 -0
  249. package/templates/portfolio-creative/l10n/he.json +4 -0
  250. package/templates/portfolio-creative/l10n/hu.json +5 -0
  251. package/templates/portfolio-creative/l10n/id.json +5 -0
  252. package/templates/portfolio-creative/l10n/it.json +5 -0
  253. package/templates/portfolio-creative/l10n/ja.json +5 -0
  254. package/templates/portfolio-creative/l10n/ko.json +5 -0
  255. package/templates/portfolio-creative/l10n/lt.json +5 -0
  256. package/templates/portfolio-creative/l10n/nl.json +5 -0
  257. package/templates/portfolio-creative/l10n/no.json +5 -0
  258. package/templates/portfolio-creative/l10n/pl.json +5 -0
  259. package/templates/portfolio-creative/l10n/pt.json +5 -0
  260. package/templates/portfolio-creative/l10n/ru.json +5 -0
  261. package/templates/portfolio-creative/l10n/sv.json +5 -0
  262. package/templates/portfolio-creative/l10n/th.json +5 -0
  263. package/templates/portfolio-creative/l10n/tr.json +5 -0
  264. package/templates/portfolio-creative/l10n/uk.json +5 -0
  265. package/templates/portfolio-creative/l10n/vi.json +5 -0
  266. package/templates/portfolio-creative/l10n/zh.json +5 -0
  267. package/templates/portfolio-creative/tier5-src/_shared/weekly-goal.ts +7 -3
  268. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +55 -3
  269. package/templates/restaurant/dev/index.ts +2 -2
  270. package/templates/restaurant/l10n/ar.json +5 -0
  271. package/templates/restaurant/l10n/cs.json +5 -0
  272. package/templates/restaurant/l10n/da.json +5 -0
  273. package/templates/restaurant/l10n/de.json +5 -0
  274. package/templates/restaurant/l10n/el.json +5 -0
  275. package/templates/restaurant/l10n/es.json +5 -0
  276. package/templates/restaurant/l10n/fi.json +5 -0
  277. package/templates/restaurant/l10n/fr.json +5 -0
  278. package/templates/restaurant/l10n/he.json +4 -0
  279. package/templates/restaurant/l10n/hu.json +5 -0
  280. package/templates/restaurant/l10n/id.json +5 -0
  281. package/templates/restaurant/l10n/it.json +5 -0
  282. package/templates/restaurant/l10n/ja.json +5 -0
  283. package/templates/restaurant/l10n/ko.json +5 -0
  284. package/templates/restaurant/l10n/lt.json +5 -0
  285. package/templates/restaurant/l10n/nl.json +5 -0
  286. package/templates/restaurant/l10n/no.json +5 -0
  287. package/templates/restaurant/l10n/pl.json +5 -0
  288. package/templates/restaurant/l10n/pt.json +5 -0
  289. package/templates/restaurant/l10n/ru.json +5 -0
  290. package/templates/restaurant/l10n/sv.json +5 -0
  291. package/templates/restaurant/l10n/th.json +5 -0
  292. package/templates/restaurant/l10n/tr.json +5 -0
  293. package/templates/restaurant/l10n/uk.json +5 -0
  294. package/templates/restaurant/l10n/vi.json +5 -0
  295. package/templates/restaurant/l10n/zh.json +5 -0
  296. package/templates/restaurant/tier5-src/_shared/weekly-goal.ts +7 -3
  297. package/templates/restaurant/tier5-src/himi-store-account/index.ts +55 -3
  298. package/templates/retail-store/dev/index.ts +2 -2
  299. package/templates/retail-store/l10n/ar.json +5 -0
  300. package/templates/retail-store/l10n/cs.json +5 -0
  301. package/templates/retail-store/l10n/da.json +5 -0
  302. package/templates/retail-store/l10n/de.json +5 -0
  303. package/templates/retail-store/l10n/el.json +5 -0
  304. package/templates/retail-store/l10n/es.json +5 -0
  305. package/templates/retail-store/l10n/fi.json +5 -0
  306. package/templates/retail-store/l10n/fr.json +5 -0
  307. package/templates/retail-store/l10n/he.json +4 -0
  308. package/templates/retail-store/l10n/hu.json +5 -0
  309. package/templates/retail-store/l10n/id.json +5 -0
  310. package/templates/retail-store/l10n/it.json +5 -0
  311. package/templates/retail-store/l10n/ja.json +5 -0
  312. package/templates/retail-store/l10n/ko.json +5 -0
  313. package/templates/retail-store/l10n/lt.json +5 -0
  314. package/templates/retail-store/l10n/nl.json +5 -0
  315. package/templates/retail-store/l10n/no.json +5 -0
  316. package/templates/retail-store/l10n/pl.json +5 -0
  317. package/templates/retail-store/l10n/pt.json +5 -0
  318. package/templates/retail-store/l10n/ru.json +5 -0
  319. package/templates/retail-store/l10n/sv.json +5 -0
  320. package/templates/retail-store/l10n/th.json +5 -0
  321. package/templates/retail-store/l10n/tr.json +5 -0
  322. package/templates/retail-store/l10n/uk.json +5 -0
  323. package/templates/retail-store/l10n/vi.json +5 -0
  324. package/templates/retail-store/l10n/zh.json +5 -0
  325. package/templates/retail-store/tier5-src/_shared/weekly-goal.ts +7 -3
  326. package/templates/retail-store/tier5-src/himi-store-account/index.ts +55 -3
  327. package/templates/salon-spa/tier5-src/_shared/weekly-goal.ts +7 -3
  328. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +55 -3
  329. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +55 -3
  330. package/templates/yoga-studio/dev/index.ts +2 -2
  331. package/templates/yoga-studio/l10n/ar.json +5 -0
  332. package/templates/yoga-studio/l10n/cs.json +5 -0
  333. package/templates/yoga-studio/l10n/da.json +5 -0
  334. package/templates/yoga-studio/l10n/de.json +5 -0
  335. package/templates/yoga-studio/l10n/el.json +5 -0
  336. package/templates/yoga-studio/l10n/es.json +5 -0
  337. package/templates/yoga-studio/l10n/fi.json +5 -0
  338. package/templates/yoga-studio/l10n/fr.json +5 -0
  339. package/templates/yoga-studio/l10n/he.json +4 -0
  340. package/templates/yoga-studio/l10n/hu.json +5 -0
  341. package/templates/yoga-studio/l10n/id.json +5 -0
  342. package/templates/yoga-studio/l10n/it.json +5 -0
  343. package/templates/yoga-studio/l10n/ja.json +5 -0
  344. package/templates/yoga-studio/l10n/ko.json +5 -0
  345. package/templates/yoga-studio/l10n/lt.json +5 -0
  346. package/templates/yoga-studio/l10n/nl.json +5 -0
  347. package/templates/yoga-studio/l10n/no.json +5 -0
  348. package/templates/yoga-studio/l10n/pl.json +5 -0
  349. package/templates/yoga-studio/l10n/pt.json +5 -0
  350. package/templates/yoga-studio/l10n/ru.json +5 -0
  351. package/templates/yoga-studio/l10n/sv.json +5 -0
  352. package/templates/yoga-studio/l10n/th.json +5 -0
  353. package/templates/yoga-studio/l10n/tr.json +5 -0
  354. package/templates/yoga-studio/l10n/uk.json +5 -0
  355. package/templates/yoga-studio/l10n/vi.json +5 -0
  356. package/templates/yoga-studio/l10n/zh.json +5 -0
  357. package/templates/yoga-studio/tier5-src/_shared/weekly-goal.ts +7 -3
  358. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +55 -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
  });
@@ -40188,6 +40189,7 @@ function resolveIdiom(tokens2, ctx = {}) {
40188
40189
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
40189
40190
  var init_idiom = __esm({
40190
40191
  "../../core/ts/src/idiom.ts"() {
40192
+ "use strict";
40191
40193
  init_define_HHP_CATALOG();
40192
40194
  IDIOM_CONTEXTS = {
40193
40195
  ios: { native: ["ios"] },
@@ -41923,6 +41925,7 @@ function shouldRevealError(args) {
41923
41925
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
41924
41926
  var init_validation = __esm({
41925
41927
  "../../core/ts/src/validation.ts"() {
41928
+ "use strict";
41926
41929
  init_define_HHP_CATALOG();
41927
41930
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
41928
41931
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -269585,6 +269588,45 @@ var init_recipes = __esm({
269585
269588
  }
269586
269589
  });
269587
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
+
269588
269630
  // src/one-app/tab-ids.ts
269589
269631
  function tabIdFor(tab, taken2) {
269590
269632
  const base2 = (tab.screenId.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "tab").slice(0, 32);
@@ -269600,6 +269642,20 @@ var init_tab_ids = __esm({
269600
269642
  });
269601
269643
 
269602
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
+ }
269603
269659
  function webUrl(value2) {
269604
269660
  try {
269605
269661
  const url = new URL(value2.trim());
@@ -269616,6 +269672,18 @@ function withoutNode(node3, id) {
269616
269672
  };
269617
269673
  return walk5(node3);
269618
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
+ }
269619
269687
  function plansSection(id, s5, index, ctx, options2) {
269620
269688
  if (!ctx.hasScreen("himi_plan")) throw new RecipeError("this scaffold has no himi_plan screen for a plan card to open");
269621
269689
  const svc = ctx.uses("plans", `plans${index}`, { ...options2 });
@@ -269628,6 +269696,10 @@ function plansSection(id, s5, index, ctx, options2) {
269628
269696
  function textAlign(alignment) {
269629
269697
  return alignment === "center" ? "center" : alignment === "right" || alignment === "end" ? "trailing" : "leading";
269630
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
+ }
269631
269703
  function loadOnAppear(nodes2, svc) {
269632
269704
  const at2 = nodes2.findIndex((n2) => !obj11(n2.modifiers).hiddenPath);
269633
269705
  if (at2 < 0) return false;
@@ -269651,6 +269723,16 @@ function programsLimit(section3, settings) {
269651
269723
  if (authored2 === void 0 || authored2 === null) return PROGRAMS_DEFAULT_LIMIT;
269652
269724
  return void 0;
269653
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
+ }
269654
269736
  function groupsSection(recipe, type2) {
269655
269737
  return (id, s5, st2, index, ctx, sectionId) => {
269656
269738
  if (!ctx.hasScreen("himi_group")) return ctx.unsupported(sectionId, type2, "this scaffold has no himi_group screen for a row to open");
@@ -269707,6 +269789,33 @@ function productsSection(kind) {
269707
269789
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
269708
269790
  };
269709
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
+ }
269710
269819
  function blogOptions(st2) {
269711
269820
  const content = obj11(st2.contentSettings);
269712
269821
  const display = obj11(st2.displayOptions);
@@ -269758,6 +269867,21 @@ function blogSection(id, s5, st2, index, ctx, sectionId, type2) {
269758
269867
  }
269759
269868
  return out2;
269760
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
+ }
269761
269885
  function eventsInline(id, s5, index, ctx) {
269762
269886
  const svc = ctx.uses("events", `events${index}`, {});
269763
269887
  const card2 = withoutNode(ctx.recipe("events-inline", { svc, id, shareLabel: "Share", seeAllLabel: "", seeAllScreen: "himi_events" }), `${id}.see_all`);
@@ -269773,6 +269897,33 @@ function formIdOf(settings) {
269773
269897
  const legacy = typeof settings.shortId === "number" ? String(settings.shortId) : str16(settings.shortId).trim();
269774
269898
  return /^\d+$/.test(legacy) ? legacy : "";
269775
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
+ }
269776
269927
  function screenIdFor(label4, taken2) {
269777
269928
  let base2 = label4.normalize("NFKD").replace(/[^\x00-\x7f]/g, "").replace(/['\u2019]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
269778
269929
  if (!base2 || !/^[a-z]/.test(base2)) base2 = `page_${base2}`.replace(/_$/, "");
@@ -269848,6 +269999,7 @@ function generateScreens(input) {
269848
269999
  tabs: [],
269849
270000
  pages: [],
269850
270001
  routeRows: [],
270002
+ screenParams: [],
269851
270003
  evidence: { ...str16(raw.revision) ? { revision: str16(raw.revision) } : {}, ...str16(raw.publishedDate) ? { publishedDate: str16(raw.publishedDate) } : {} }
269852
270004
  };
269853
270005
  const assemble = (screenId, title, children2, uses) => {
@@ -269894,7 +270046,11 @@ function generateScreens(input) {
269894
270046
  out2.routes.push({ layoutItemId, label: label4, kind: "empty" });
269895
270047
  continue;
269896
270048
  }
269897
- 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));
269898
270054
  const distinctLinks = elements2.length > 1 && elements2.every((e2) => FALLBACK_TARGETS[str16(obj11(sections2[str16(e2.elementId)]).sectionDefinitionId)]?.params) && new Set(elements2.map((e2) => {
269899
270055
  const section3 = obj11(sections2[str16(e2.elementId)]);
269900
270056
  return JSON.stringify(TEMPLATE_PARAMS[str16(section3.sectionDefinitionId)]?.(section3, obj11(section3.settings)) ?? {});
@@ -269907,9 +270063,6 @@ function generateScreens(input) {
269907
270063
  const extraId = str16(extra.elementId);
269908
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" });
269909
270065
  }
269910
- if (type2 === "groups_feed_section" && arr(obj11(first.settings).groupsToShow).length) {
269911
- 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" });
269912
- }
269913
270066
  let screenId2 = [...verticals][0];
269914
270067
  const present = input.takenScreenIds;
269915
270068
  const fallback = TEMPLATE_FALLBACKS[screenId2];
@@ -269976,6 +270129,14 @@ function generateScreens(input) {
269976
270129
  },
269977
270130
  extraScreen: (id, title, children3, extraUses) => {
269978
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;
269979
270140
  }
269980
270141
  };
269981
270142
  const children2 = [];
@@ -270282,18 +270443,20 @@ function addNavigation(out2, plan, taken2, pageIconOf) {
270282
270443
  out2.routes.push({ layoutItemId: "(more)", label: "More", screenId, kind: "generated" });
270283
270444
  out2.tabs.push({ layoutItemId: "(more)", label: "More", screenId });
270284
270445
  }
270285
- 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;
270286
270447
  var init_generate2 = __esm({
270287
270448
  "src/one-app/generate.ts"() {
270288
270449
  init_define_HHP_CATALOG();
270289
270450
  init_recipes();
270290
270451
  init_recipes();
270452
+ init_podcast();
270291
270453
  init_tab_ids();
270292
270454
  TEMPLATE_HOME_SCREEN = "himi_branded_home";
270293
270455
  TEMPLATE_SCREEN_PARAM_KEYS = {
270294
270456
  himi_shop: ["categoryId"],
270295
270457
  himi_groups_feed: ["title", "groupListLabel", "pageSize"],
270296
- himi_groups: ["title", "groupListLabel", "pageSize"]
270458
+ himi_groups: ["title", "groupListLabel", "pageSize"],
270459
+ himi_podcasts: ["feedUrl"]
270297
270460
  };
270298
270461
  SYSTEM_ALL_PRODUCTS_ID = "00000000-000000-000000-000000000001";
270299
270462
  collectionParams = (st2) => {
@@ -270340,13 +270503,13 @@ var init_generate2 = __esm({
270340
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"] : []
270341
270504
  ];
270342
270505
  },
270343
- newBlog_postlist_carousel_full_section: (st2) => {
270344
- 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;
270345
270510
  return [
270346
- ...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`] : [],
270347
- ...content.featuredOnly === true ? ["the source shows only featured posts; himi_blog shows every post"] : [],
270348
- "the source shows its posts as a carousel; himi_blog is the full post list",
270349
- ...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"
270350
270513
  ];
270351
270514
  }
270352
270515
  };
@@ -270362,16 +270525,24 @@ var init_generate2 = __esm({
270362
270525
  vod_carousel_section: { screen: "himi_videos", needsScreen: true },
270363
270526
  memberships_plan_cards_carousel: { screen: "himi_plans", needsScreen: true },
270364
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 },
270365
270532
  achievements_participant_carousel_section: { screen: "himi_member_programs", needsScreen: true },
270366
270533
  groups_cards_section: { screen: "himi_groups", needsScreen: true },
270367
270534
  newBlog_search_section: { screen: "himi_blog", needsScreen: true },
270368
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.
270369
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 },
270370
270539
  memberships_packages_section: { screen: "himi_my_subscriptions", needsScreen: true },
270371
270540
  platform_paid_plans_section: { screen: "himi_plans", needsScreen: true },
270372
270541
  groups_list_section: { screen: "himi_groups", needsScreen: true },
270373
270542
  faq_list_section: { screen: "himi_faq", needsScreen: true },
270374
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 },
270375
270546
  stores_products_grid_section: { screen: "himi_shop", needsScreen: true, params: collectionParams },
270376
270547
  stores_products_carousel_section: { screen: "himi_shop", needsScreen: true, params: collectionParams },
270377
270548
  // Sections the census found on the most apps with no rule at all: each opens the template screen that shows its data.
@@ -270381,10 +270552,18 @@ var init_generate2 = __esm({
270381
270552
  loyalty_status_section: { screen: "himi_loyalty", needsScreen: true },
270382
270553
  loyalty_offering_section: { screen: "himi_loyalty", needsScreen: true },
270383
270554
  platform_general_members_section: { screen: "himi_members", needsScreen: true },
270555
+ member_horizontal_list_section: { screen: "himi_members", needsScreen: true },
270384
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.
270385
270557
  groups_feed_section: { screen: "himi_groups_feed", needsScreen: true },
270386
270558
  // Link only when the scaffold has the events screen: without it the link would open nothing, so the section is reported instead.
270387
- 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 }
270388
270567
  };
270389
270568
  NO_INLINE_SECTION = "its data has no inline section yet";
270390
270569
  ROUTE_PLACEHOLDER = "@route:";
@@ -270403,9 +270582,15 @@ var init_generate2 = __esm({
270403
270582
  groups_list_section: "himi_groups",
270404
270583
  faq_list_section: "himi_faq",
270405
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",
270406
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).
270407
270590
  vod_list_section: "himi_videos",
270408
- 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"
270409
270594
  };
270410
270595
  PAGE_TYPE_ICONS = {
270411
270596
  forum: "appEditor.outline.forum",
@@ -270464,6 +270649,7 @@ var init_generate2 = __esm({
270464
270649
  programs: { file: "programs-section", register: "registerProgramsSection", capabilities: ["wix_api", "iap", "app_info"] },
270465
270650
  members: { file: "members-directory", register: "registerMembersDirectory", capabilities: ["wix_api"] },
270466
270651
  blog: { file: "blog-list", register: "registerBlogList", capabilities: ["wix_api"] },
270652
+ blogCategories: { file: "blog-categories", register: "registerBlogCategories", capabilities: ["wix_api"] },
270467
270653
  plans: { file: "plans-section", register: "registerPlansSection", capabilities: ["wix_api"] },
270468
270654
  // A link tapped in the rich body opens through `capability.open_url`, which the page's screen must declare too.
270469
270655
  announcements: { file: "announcement-section", register: "registerAnnouncementSection", capabilities: ["wix_api", "open_url"] },
@@ -270473,13 +270659,24 @@ var init_generate2 = __esm({
270473
270659
  faq: { file: "faq-list", register: "registerFaqList", capabilities: ["wix_api", "open_url"] },
270474
270660
  groups: { file: "groups-section", register: "registerGroupsSection", capabilities: ["wix_api"] },
270475
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"] },
270476
270666
  products: { file: "products-section", register: "registerProductsSection", capabilities: ["wix_api"] },
270477
270667
  galleries: { file: "galleries-section", register: "registerGalleriesSection", capabilities: ["wix_api"] },
270668
+ eventSchedule: { file: "event-schedule-section", register: "registerEventScheduleSection", capabilities: ["wix_api"] },
270478
270669
  subscriptions: { file: "my-subscriptions-section", register: "registerSubscriptionsSection", capabilities: ["wix_api"] },
270479
270670
  services: { file: "services-section", register: "registerServicesSection", capabilities: ["wix_api"] },
270480
270671
  // The member's own bookings: the read goes through the same member identity as My Bookings.
270481
270672
  upcomingBookings: { file: "upcoming-bookings-section", register: "registerUpcomingBookingsSection", capabilities: ["wix_api"] },
270482
- 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: [] }
270483
270680
  };
270484
270681
  obj11 = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : {};
270485
270682
  arr = (v2) => Array.isArray(v2) ? v2 : [];
@@ -270516,18 +270713,25 @@ var init_generate2 = __esm({
270516
270713
  };
270517
270714
  SUBSCRIPTIONS_MAX = 5;
270518
270715
  selectedPlanIds = (st2) => arr(st2.selectedPlanIds).filter((v2) => typeof v2 === "string" && !!v2);
270716
+ MEMBERS_RAIL = 10;
270519
270717
  PROGRAMS_DEFAULT_LIMIT = 2;
270520
270718
  PROGRAMS_INLINE_MAX = 20;
270719
+ PODCAST_INLINE = 3;
270521
270720
  GALLERIES_INLINE_MAX = 30;
270721
+ GALLERIES_LIST_INLINE = 10;
270522
270722
  BLOG_HERO_MAX = 10;
270523
270723
  BLOG_SEARCH_POSTS = 100;
270724
+ EVENT_SCHEDULE_INLINE = 10;
270524
270725
  SHOP_ALL = "all";
270525
270726
  SERVICES_INLINE = 6;
270526
270727
  UPCOMING_INLINE = 3;
270527
270728
  PRODUCTS_INLINE = { carousel: 8, grid: 6 };
270528
270729
  GROUP_FEED_POSTS_MAX = 20;
270730
+ NEWSFEED_GROUPS_MAX = 5;
270731
+ LOYALTY_TIERS_INLINE = 3;
270529
270732
  VIDEOS_INLINE_DEFAULT = 8;
270530
270733
  VIDEOS_INLINE_MAX = 20;
270734
+ WISHLIST_INLINE = 6;
270531
270735
  SOCIAL_NETWORKS = {
270532
270736
  instagram: "Instagram",
270533
270737
  facebook: "Facebook",
@@ -270722,6 +270926,35 @@ var init_generate2 = __esm({
270722
270926
  children2.push(...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270723
270927
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270724
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
+ },
270725
270958
  // The selected plans as cards: name, pitch, price, validity, a details button and the benefits list (unless the source hides it).
270726
270959
  // A scaffold without the plans recipe keeps the title and a link to the template's plans screen, as every data section does.
270727
270960
  memberships_plan_cards_carousel: (id, s5, st2, index, ctx) => plansSection(id, s5, index, ctx, { planIds: selectedPlanIds(st2), showBenefits: st2.shouldDisplayBenefitsList !== false }),
@@ -270738,17 +270971,16 @@ var init_generate2 = __esm({
270738
270971
  // the source's `maxGalleries`. A card opens the template's gallery screen and View All its galleries screen: a scaffold without either
270739
270972
  // keeps the title and a link, as every data section does.
270740
270973
  progallery_carousel_section: (id, s5, st2, index, ctx, sectionId) => {
270741
- 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.");
270742
270974
  const asked = typeof st2.maxGalleries === "number" && st2.maxGalleries >= 1 ? Math.floor(st2.maxGalleries) : void 0;
270743
270975
  const limit = asked !== void 0 ? Math.min(asked, GALLERIES_INLINE_MAX) : void 0;
270744
270976
  if (asked !== void 0 && limit !== asked) ctx.gap(sectionId, "progallery_carousel_section", `the source shows ${asked} galleries; the section shows the first ${limit}`);
270745
- const svc = ctx.uses("galleries", `galleries${index}`, { ...limit !== void 0 ? { limit } : {}, showName: st2.isShowName !== false });
270746
- const children2 = [];
270747
- const title = str16(s5.title).trim();
270748
- 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;
270749
- if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270750
- children2.push(ctx.recipe(st2.isCarousel === false ? "galleries-list" : "galleries-carousel", { svc, id }), ...viewAll ? [viewAll] : [], ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270751
- 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 });
270752
270984
  },
270753
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
270754
270986
  // prompt (never an error). The source's package balances and session credits have no equivalent here, so they are reported.
@@ -270794,17 +271026,32 @@ var init_generate2 = __esm({
270794
271026
  },
270795
271027
  // The latest posts as a snapping carousel. A carousel is a handful of posts, so an unlimited source is capped; the source's
270796
271028
  // title-over-image look is the one thing the recipe lays out differently, and both adaptations are reported.
270797
- newBlog_postlist_carousel_full_section: (id, s5, st2, index, ctx, sectionId) => {
270798
- const { base: base2, limit } = blogOptions(st2);
270799
- const shown3 = Math.min(limit ?? BLOG_HERO_MAX, BLOG_HERO_MAX);
270800
- 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}`);
270801
- ctx.gap(sectionId, "newBlog_postlist_carousel_full_section", "the source lays each post's title over its image; the title sits under the image");
270802
- 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 });
270803
271050
  const children2 = [];
270804
271051
  const title = str16(s5.title).trim();
270805
271052
  if (s5.showTitle === true && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270806
- 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` }));
270807
- 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" }));
270808
271055
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270809
271056
  },
270810
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.
@@ -270833,32 +271080,60 @@ var init_generate2 = __esm({
270833
271080
  groups_cards_section: groupsSection("groups-cards", "groups_cards_section"),
270834
271081
  stores_products_carousel_section: productsSection("carousel"),
270835
271082
  stores_products_grid_section: productsSection("grid"),
271083
+ stores_products_search_section: productsSearchSection,
271084
+ stores_wishlist_section: wishlistSection,
270836
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
270837
271086
  // group screen shows a non-member, never its posts. A scaffold without the feed module keeps the title and the button.
270838
- single_group_feed_section: (id, s5, st2, index, ctx, elementId) => {
270839
- const groupId = str16(st2.groupId);
270840
- if (!groupId) return ctx.unsupported(elementId, "single_group_feed_section", "the section names no group");
270841
- 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");
270842
- 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 = [];
270843
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}`, {});
270844
271130
  const children2 = [];
270845
- if (s5.showTitle !== false && title) children2.push(text28(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
270846
- let onAppear, svc = "";
270847
- try {
270848
- const limit = countOf2(st2.postNumber);
270849
- svc = ctx.uses("groupFeed", `groupFeed${index}`, { groupId, ...limit !== void 0 ? { limit } : {} });
270850
- children2.push(ctx.recipe("group-feed", { svc, id, detailScreen: "himi_group", groupId, openLabel }), ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270851
- onAppear = { actionId: `tier5.${svc}.load`, params: {} };
270852
- 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}`);
270853
- 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`);
270854
- 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");
270855
- } catch (error) {
270856
- if (!(error instanceof RecipeError)) throw error;
270857
- if (svc) ctx.release(svc);
270858
- 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");
270859
- children2.push(node(`${id}.open`, "Button", { title: openLabel, style: "secondary", size: "md", fullWidth: true, action: { actionId: "himi.open", params: { screenId: "himi_group", id: groupId } } }));
270860
- }
270861
- 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: {} } });
270862
271137
  },
270863
271138
  pages_section: (id, _s2, _st, index, ctx, elementId) => {
270864
271139
  const placement = ctx.placements.get(`${ctx.page.layoutItemId}:${elementId}:${index}`);
@@ -270904,6 +271179,27 @@ var init_generate2 = __esm({
270904
271179
  children2.push(list5, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
270905
271180
  return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
270906
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
+ },
270907
271203
  // The programs carousel: the shared programs module in carousel layout, configured from the section's own settings.
270908
271204
  achievements_carousel_section: (id, s5, st2, index, ctx) => {
270909
271205
  const sorting = obj11(st2.sortingSettings);
@@ -270963,9 +271259,27 @@ var init_generate2 = __esm({
270963
271259
  // layout, with the source's own empty text. A visitor is asked to sign in, as on the template's member programs screen.
270964
271260
  // The members directory: search with the member count, flat rows, letter bands, role, activity, badges and Follow. The
270965
271261
  // section has no settings of its own, so the native defaults are the contract: every extra is on.
270966
- member_list_section: (id, s5, _st, index, ctx) => {
270967
- const svc = ctx.uses("members", `members${index}`, { showRole: true, showActivity: true, showBadges: true, showFollow: true, letterBands: true });
270968
- 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: {} } });
270969
271283
  },
270970
271284
  // A blog list: the shared blog-list module configured from the section's own settings; unlimited follows the cursor,
270971
271285
  // a limited list shows N posts and offers "See All Posts" for the full list in the same category.
@@ -270978,6 +271292,24 @@ var init_generate2 = __esm({
270978
271292
  }
270979
271293
  return eventsInline(id, s5, index, ctx);
270980
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
+ },
270981
271313
  // The business contact section: its own title and description, and only the rows the source switches on.
270982
271314
  platform_general_contact_section: (id, s5, st2, _i2, ctx) => {
270983
271315
  const profile = obj11(ctx.raw.businessProfile);
@@ -271003,10 +271335,12 @@ var init_generate2 = __esm({
271003
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.
271004
271336
  vod_list_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "vod_list_section", NO_INLINE_SECTION),
271005
271337
  bookings_agenda_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "bookings_agenda_section", NO_INLINE_SECTION),
271006
- loyalty_status_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "loyalty_status_section", NO_INLINE_SECTION),
271007
- loyalty_offering_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "loyalty_offering_section", NO_INLINE_SECTION),
271008
- platform_general_members_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "platform_general_members_section", NO_INLINE_SECTION),
271009
- 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"),
271010
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
271011
271345
  // carousels collected from the top apps). The shared events section has no event or category filter, so a chosen selection is reported and
271012
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.
@@ -272522,7 +272856,8 @@ async function runOneAppGenerate(args, io2) {
272522
272856
  if (cleared === "set") templateParams.push({ screenId: route.screenId, params: {}, status: cleared });
272523
272857
  }
272524
272858
  }
272525
- 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)]);
272526
272861
  for (const [screenId, keys2] of Object.entries(TEMPLATE_SCREEN_PARAM_KEYS)) {
272527
272862
  if (targeted.has(screenId)) continue;
272528
272863
  let cleared = "absent";
@@ -272966,6 +273301,47 @@ ${indent}` });
272966
273301
  const text32 = applyEdits(configText, edits);
272967
273302
  return { status: text32 === configText ? "unchanged" : "written", text: text32, bound: bound2, unlisted, home: home2 };
272968
273303
  }
273304
+ function loginWallGateScreen(configText, gateScreenId) {
273305
+ const file2 = parse10("config.ts", configText);
273306
+ const app2 = file2 && appObject(file2);
273307
+ const authProperty = app2 && findProperty(app2, "auth");
273308
+ const init = authProperty?.initializer;
273309
+ const wrapped = init && ts30.isCallExpression(init) && ts30.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
273310
+ if (!file2 || !wrapped) return void 0;
273311
+ let own6;
273312
+ const visit = (node3) => {
273313
+ if (own6 !== void 0) return;
273314
+ if (ts30.isPropertyAssignment(node3) && propName6(node3.name) === "gateScreenId") {
273315
+ own6 = ts30.isStringLiteralLike(node3.initializer) ? node3.initializer.text : "author";
273316
+ return;
273317
+ }
273318
+ if (ts30.isShorthandPropertyAssignment(node3) && node3.name.text === "gateScreenId") {
273319
+ own6 = "author";
273320
+ return;
273321
+ }
273322
+ if (ts30.isSpreadAssignment(node3)) {
273323
+ own6 = "author";
273324
+ return;
273325
+ }
273326
+ const opaque2 = (expr) => ts30.isIdentifier(expr) || ts30.isPropertyAccessExpression(expr) || ts30.isElementAccessExpression(expr);
273327
+ if (ts30.isCallExpression(node3) && node3.arguments.some(opaque2)) {
273328
+ own6 = "author";
273329
+ return;
273330
+ }
273331
+ if (ts30.isPropertyAssignment(node3) && propName6(node3.name) === "config" && opaque2(node3.initializer)) {
273332
+ own6 = "author";
273333
+ return;
273334
+ }
273335
+ ts30.forEachChild(node3, visit);
273336
+ };
273337
+ visit(init);
273338
+ if (own6 !== void 0) return own6;
273339
+ const helper = file2.statements.find((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
273340
+ const text32 = helper?.getText(file2);
273341
+ if (text32 !== void 0 && gateScreenId && sameStatement(text32, loginHelperSource(gateScreenId))) return gateScreenId;
273342
+ if (text32 !== void 0 && sameStatement(text32, loginHelperSource())) return "stock";
273343
+ return "author";
273344
+ }
272969
273345
  function applyLoginWall(configText, wall, options2 = {}) {
272970
273346
  const refuse10 = (reason) => ({ status: "manual", text: configText, reason });
272971
273347
  const file2 = parse10("config.ts", configText);
@@ -272979,20 +273355,23 @@ function applyLoginWall(configText, wall, options2 = {}) {
272979
273355
  if (wrapped && options2.keepExisting) return { status: "unchanged", text: configText, kept: true };
272980
273356
  return wrapped ? refuse10("the app requires login (`requireLogin` in config.ts) but the source no longer does: remove it by hand, a login requirement is not taken out automatically") : { status: "unchanged", text: configText };
272981
273357
  }
272982
- if (wrapped) return { status: "unchanged", text: configText };
272983
- const declared = file2.statements.some((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
272984
- const edits = [{ start: init.getStart(), end: init.getEnd(), replacement: `${LOGIN_HELPER}(${init.getText(file2)})` }];
272985
- if (!declared) {
273358
+ const helper = file2.statements.find((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
273359
+ const edits = [];
273360
+ if (!wrapped) edits.push({ start: init.getStart(), end: init.getEnd(), replacement: `${LOGIN_HELPER}(${init.getText(file2)})` });
273361
+ if (!helper && wrapped) return { status: "unchanged", text: configText };
273362
+ if (!helper) {
272986
273363
  const imports = file2.statements.filter(ts30.isImportDeclaration);
272987
273364
  const at2 = imports.length ? imports[imports.length - 1].getEnd() : 0;
272988
273365
  edits.push({ start: at2, end: at2, replacement: `
272989
273366
 
272990
273367
  // The source asks for a login before any content (visitorModeEnabled = false), written by \`himi one-app access\`:
272991
273368
  // the runtime's login wall shows first, and a Visitor session does not pass it.
272992
- const ${LOGIN_HELPER} = <T extends { config?: Record<string, unknown> }>(auth: T): T => ({ ...auth, config: { ...auth.config, required: true } });
273369
+ ${loginHelperSource(options2.gateScreenId)}
272993
273370
  ` });
273371
+ } else if (options2.gateScreenId && sameStatement(helper.getText(file2), loginHelperSource())) {
273372
+ edits.push({ start: helper.getStart(file2), end: helper.getEnd(), replacement: loginHelperSource(options2.gateScreenId) });
272994
273373
  }
272995
- return { status: "written", text: applyEdits(configText, edits) };
273374
+ return edits.length ? { status: "written", text: applyEdits(configText, edits) } : { status: "unchanged", text: configText };
272996
273375
  }
272997
273376
  function tableGates(tableText) {
272998
273377
  const file2 = parse10("access-gates-table.ts", tableText);
@@ -273029,7 +273408,7 @@ function renderGateTable(gates) {
273029
273408
  ""
273030
273409
  ].join("\n");
273031
273410
  }
273032
- var obj14, text29, strings2, mayHide, STOCK_COPY, node2, SIGN_IN_SCREEN, CHAT_SCREEN, PLANS_SCREEN, slotPrefix, accessStatePath, accessRowHiddenPath, accessHiddenPath, slice, stringValue3, objectValue, PAYLOAD_KEYS, indented, LOGIN_HELPER, NEW_APP_REASON;
273411
+ var obj14, text29, strings2, mayHide, STOCK_COPY, node2, SIGN_IN_SCREEN, CHAT_SCREEN, PLANS_SCREEN, slotPrefix, accessStatePath, accessRowHiddenPath, accessHiddenPath, slice, stringValue3, objectValue, PAYLOAD_KEYS, indented, LOGIN_HELPER, LOGIN_GATE_SCREEN, sameStatement, loginHelperSource, NEW_APP_REASON;
273033
273412
  var init_access = __esm({
273034
273413
  "src/one-app/access.ts"() {
273035
273414
  init_define_HHP_CATALOG();
@@ -273065,6 +273444,9 @@ var init_access = __esm({
273065
273444
  indented = (value2, indent) => JSON.stringify(value2, null, 2).replaceAll("\n", `
273066
273445
  ${indent}`);
273067
273446
  LOGIN_HELPER = "requireLogin";
273447
+ LOGIN_GATE_SCREEN = "himi_sign_in";
273448
+ sameStatement = (a3, b3) => a3.replace(/\s+/g, " ").trim() === b3.replace(/\s+/g, " ").trim();
273449
+ loginHelperSource = (gateScreenId) => `const ${LOGIN_HELPER} = <T extends { config?: Record<string, unknown> }>(auth: T): T => ({ ...auth, config: { ${gateScreenId ? `gateScreenId: ${JSON.stringify(gateScreenId)}, ` : ""}...auth.config, required: true } });`;
273068
273450
  NEW_APP_REASON = "Page locks read app-level state through app services (`$app:`), which an app may use only when it has never shipped a binary older than the first one with app services (1.9.0). If this migrated app is new, pass --new-app and it declares `app: { newApp: true }`. If it has already shipped, locks must wait for the enforced runtime floor.";
273069
273451
  }
273070
273452
  });
@@ -273317,7 +273699,8 @@ async function runOneAppAccess(args, io2) {
273317
273699
  configEdit = applyConfig(configText, plan.gates, { newApp: options2.newApp, screensText });
273318
273700
  nextConfig = configEdit.text;
273319
273701
  }
273320
- const wallEdit = decision.wall ? applyLoginWall(nextConfig, decision.wall, { keepExisting: decision.basis === "evidence" }) : void 0;
273702
+ const gateScreenId = declaredScreens(screensText)?.has(LOGIN_GATE_SCREEN) ? LOGIN_GATE_SCREEN : void 0;
273703
+ const wallEdit = decision.wall ? applyLoginWall(nextConfig, decision.wall, { keepExisting: decision.basis === "evidence", ...gateScreenId ? { gateScreenId } : {} }) : void 0;
273321
273704
  const manual = [screensEdit, configEdit, wallEdit].find((edit) => edit?.status === "manual");
273322
273705
  if (manual) {
273323
273706
  const code2 = manual === configEdit && configEdit?.needsNewApp ? "app_services_unavailable" : "needs_manual_merge";
@@ -273331,6 +273714,10 @@ async function runOneAppAccess(args, io2) {
273331
273714
  // Not a guess: the web host gates only account-mode wix-native apps (core/web-host account-gate), so a web preview of a
273332
273715
  // consumer app opens as a Visitor. iOS and Android shells both enforce it (AuthGateRoot).
273333
273716
  ...decision.wall === "required" ? { enforcedOn: ["ios", "android"], notEnforcedOn: ["web"] } : {},
273717
+ // `gateScreen`: what the runtime shows first, read from the config the app now holds. `himi_sign_in` is the app's own
273718
+ // email and password screen; `stock` is the runtime's login, whose Sign In starts the hosted OAuth flow that a One App
273719
+ // binding with no client cannot run (the app then has no way in); `author` is a wall helper this command did not write.
273720
+ ...decision.wall === "required" ? { gateScreen: loginWallGateScreen(nextConfig, gateScreenId) ?? "stock" } : {},
273334
273721
  ...wallEdit?.kept ? { kept: true, keptNote: "The source does not require login, but the app already has a login wall (maybe chosen with --login-wall): it stays. Remove requireLogin by hand to drop it." } : {}
273335
273722
  };
273336
273723
  if (!hasGates && !loginWall.written) {