@wix/himalaya-cli 0.1749.0 → 0.1751.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 (324) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/himi-package.d.ts +478 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/host-compatibility.d.ts +56 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +156 -8
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +3 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/podcast-service.d.ts +105 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/podcast.d.ts +116 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +326 -13
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +730 -81
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +155 -0
  14. package/dist/browser-plane/assets.json +5 -5
  15. package/dist/browser-plane/preview-deferred/{b40ea5d0d6251898ff5617139fde8be008dd11e99a70b14c1052093685401700.bin → 21f35a12bd94f4ab97a9a75453c4adcadc438daf024a4b1950d5c356c123bd01.bin} +1 -1
  16. package/dist/browser-plane/sw.js +7 -7
  17. package/dist/cli.mjs +44618 -35753
  18. package/dist/preview-assets.generated.bin +0 -0
  19. package/guides/component-reference.json +1 -1
  20. package/guides/component-reference.md +4 -0
  21. package/guides/designing-himi-screens.md +7 -0
  22. package/guides/getting-started.md +5 -1
  23. package/guides/headless-loop.md +1 -1
  24. package/guides/himi-json-output.md +54 -1
  25. package/guides/himi-skill.md +5 -1
  26. package/guides/index.json +6 -0
  27. package/guides/one-app-to-himi-app.md +31 -8
  28. package/guides/qa-builds.md +12 -1
  29. package/guides/recipe-podcast.md +149 -0
  30. package/guides/skill.md +3 -1
  31. package/guides/store-submission.md +149 -34
  32. package/guides/tier-5-add-a-screen.md +16 -2
  33. package/guides/wix-business-context.md +43 -0
  34. package/guides/wix-platform-usage.md +7 -2
  35. package/package.json +10 -10
  36. package/template-icons/fitness-gym.png +0 -0
  37. package/template-icons/personal-fitness-trainer.png +0 -0
  38. package/templates/beauty-salon/config.ts +12 -0
  39. package/templates/beauty-salon/dev/index.ts +1 -1
  40. package/templates/beauty-salon/l10n/en.json +1 -1
  41. package/templates/beauty-salon/tier5-src/_shared/booking-session.ts +3 -1
  42. package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +148 -0
  43. package/templates/beauty-salon/tier5-src/_shared/header-badges.ts +113 -0
  44. package/templates/beauty-salon/tier5-src/_shared/location-pin.ts +97 -0
  45. package/templates/beauty-salon/tier5-src/_shared/member-access.ts +17 -6
  46. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
  47. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +5 -8
  48. package/templates/beauty-salon/tier5-src/_shared/source-badges.ts +72 -0
  49. package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
  50. package/templates/beauty-salon/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  51. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +13 -4
  52. package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  53. package/templates/branded-lite/config.ts +12 -0
  54. package/templates/branded-lite/dev/index.ts +101 -1
  55. package/templates/branded-lite/l10n/en.json +22 -1
  56. package/templates/branded-lite/l10n/es.json +22 -0
  57. package/templates/branded-lite/l10n/fr.json +23 -0
  58. package/templates/branded-lite/l10n/he.json +19 -0
  59. package/templates/branded-lite/tier5-src/_shared/booking-session.ts +3 -1
  60. package/templates/branded-lite/tier5-src/_shared/location-pin.ts +97 -0
  61. package/templates/branded-lite/tier5-src/_shared/member-access.ts +17 -6
  62. package/templates/branded-lite/tier5-src/_shared/program-fields.ts +16 -0
  63. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +5 -8
  64. package/templates/branded-lite/tier5-src/himi-branded-lite-access-nav/index.ts +10 -5
  65. package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
  66. package/templates/branded-lite/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  67. package/templates/branded-lite/tier5-src/himi-branded-lite-podcasts/index.ts +14 -234
  68. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +12 -1
  69. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +13 -4
  70. package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  71. package/templates/brandy/README.md +33 -0
  72. package/templates/brandy/config.ts +51 -7
  73. package/templates/brandy/dev/index.ts +23 -9
  74. package/templates/community-club/l10n/en.json +1 -1
  75. package/templates/community-club/tier5-src/_shared/member-access.ts +17 -6
  76. package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
  77. package/templates/community-club/tier5-src/_shared/programs-section.ts +5 -8
  78. package/templates/community-club/tier5-src/himi-store-account/index.ts +13 -4
  79. package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  80. package/templates/conference/tier5-src/_shared/member-access.ts +17 -6
  81. package/templates/conference/tier5-src/himi-store-account/index.ts +13 -4
  82. package/templates/events-meetups/l10n/en.json +1 -1
  83. package/templates/events-meetups/tier5-src/_shared/member-access.ts +17 -6
  84. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
  85. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +5 -8
  86. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +13 -4
  87. package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  88. package/templates/fitness-gym/README.md +53 -0
  89. package/templates/fitness-gym/config.ts +560 -0
  90. package/templates/fitness-gym/dev/index.ts +25787 -0
  91. package/templates/fitness-gym/himalaya.content.json +64 -0
  92. package/templates/fitness-gym/himalaya.template.json +15 -0
  93. package/templates/fitness-gym/icon.png +0 -0
  94. package/templates/fitness-gym/platforms.json +1 -0
  95. package/templates/fitness-gym/tier5-src/_shared/app-locale.ts +61 -0
  96. package/templates/fitness-gym/tier5-src/_shared/booking-location.ts +147 -0
  97. package/templates/fitness-gym/tier5-src/_shared/booking-session.ts +224 -0
  98. package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +280 -0
  99. package/templates/fitness-gym/tier5-src/_shared/branded-load-state.ts +109 -0
  100. package/templates/fitness-gym/tier5-src/_shared/business-chat-copy.ts +40 -0
  101. package/templates/fitness-gym/tier5-src/_shared/business-chat-history.ts +51 -0
  102. package/templates/fitness-gym/tier5-src/_shared/business-chat-message-model.ts +177 -0
  103. package/templates/fitness-gym/tier5-src/_shared/business-chat-model.ts +56 -0
  104. package/templates/fitness-gym/tier5-src/_shared/business-chat-presenter.ts +576 -0
  105. package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +148 -0
  106. package/templates/fitness-gym/tier5-src/_shared/collection-contract.ts +228 -0
  107. package/templates/fitness-gym/tier5-src/_shared/collection-query.ts +193 -0
  108. package/templates/fitness-gym/tier5-src/_shared/collection-service.ts +400 -0
  109. package/templates/fitness-gym/tier5-src/_shared/detail-presence.ts +51 -0
  110. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +523 -0
  111. package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +194 -0
  112. package/templates/fitness-gym/tier5-src/_shared/himi-booking-saved.ts +88 -0
  113. package/templates/fitness-gym/tier5-src/_shared/himi-bookings.ts +318 -0
  114. package/templates/fitness-gym/tier5-src/_shared/himi-copy.ts +116 -0
  115. package/templates/fitness-gym/tier5-src/_shared/himi-media.ts +29 -0
  116. package/templates/fitness-gym/tier5-src/_shared/himi-store.ts +7 -0
  117. package/templates/fitness-gym/tier5-src/_shared/himi-text.ts +24 -0
  118. package/templates/fitness-gym/tier5-src/_shared/host-events.ts +66 -0
  119. package/templates/fitness-gym/tier5-src/_shared/hosted-checkout.ts +70 -0
  120. package/templates/fitness-gym/tier5-src/_shared/iap-attendance-form.ts +106 -0
  121. package/templates/fitness-gym/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
  122. package/templates/fitness-gym/tier5-src/_shared/iap-attendance.ts +38 -0
  123. package/templates/fitness-gym/tier5-src/_shared/iap-worker.ts +127 -0
  124. package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +68 -0
  125. package/templates/fitness-gym/tier5-src/_shared/local-preferences.ts +38 -0
  126. package/templates/fitness-gym/tier5-src/_shared/member-access.ts +63 -0
  127. package/templates/fitness-gym/tier5-src/_shared/member-account-routes.ts +52 -0
  128. package/templates/fitness-gym/tier5-src/_shared/member-bookings.ts +107 -0
  129. package/templates/fitness-gym/tier5-src/_shared/member-screen.ts +99 -0
  130. package/templates/fitness-gym/tier5-src/_shared/notification-target.ts +141 -0
  131. package/templates/fitness-gym/tier5-src/_shared/offset-page.ts +10 -0
  132. package/templates/fitness-gym/tier5-src/_shared/online-actions.ts +76 -0
  133. package/templates/fitness-gym/tier5-src/_shared/owner-load-error.ts +348 -0
  134. package/templates/fitness-gym/tier5-src/_shared/payment-setup.ts +6 -0
  135. package/templates/fitness-gym/tier5-src/_shared/pricing-plan-display.ts +64 -0
  136. package/templates/fitness-gym/tier5-src/_shared/program-description.ts +11 -0
  137. package/templates/fitness-gym/tier5-src/_shared/program-fields.ts +16 -0
  138. package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +46 -0
  139. package/templates/fitness-gym/tier5-src/_shared/rich-body.ts +78 -0
  140. package/templates/fitness-gym/tier5-src/_shared/rich-content-link.ts +34 -0
  141. package/templates/fitness-gym/tier5-src/_shared/sign-in-sheet.ts +18 -0
  142. package/templates/fitness-gym/tier5-src/_shared/staff-name.ts +18 -0
  143. package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +107 -0
  144. package/templates/fitness-gym/tier5-src/_shared/wix-bi.ts +85 -0
  145. package/templates/fitness-gym/tier5-src/_shared/wix-member-links.ts +114 -0
  146. package/templates/fitness-gym/tier5-src/_shared/wix-service-price.ts +146 -0
  147. package/templates/fitness-gym/tier5-src/business-chat/index.ts +732 -0
  148. package/templates/fitness-gym/tier5-src/business-contact/index.ts +6 -0
  149. package/templates/fitness-gym/tier5-src/himi-booking-account/index.ts +267 -0
  150. package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +468 -0
  151. package/templates/fitness-gym/tier5-src/himi-booking-service/index.ts +1190 -0
  152. package/templates/fitness-gym/tier5-src/himi-booking-services/index.ts +791 -0
  153. package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +1729 -0
  154. package/templates/fitness-gym/tier5-src/himi-branded-lite-agenda/index.ts +988 -0
  155. package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +656 -0
  156. package/templates/fitness-gym/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
  157. package/templates/fitness-gym/tier5-src/himi-branded-lite-plans/index.ts +495 -0
  158. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/facts.ts +52 -0
  159. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +845 -0
  160. package/templates/fitness-gym/tier5-src/himi-fitcoach-goal/index.ts +191 -0
  161. package/templates/fitness-gym/tier5-src/himi-fitcoach-home/index.ts +619 -0
  162. package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +1007 -0
  163. package/templates/fitness-gym/tier5-src/wix-spaces-my-subscriptions/index.ts +84 -0
  164. package/templates/fitness-gym/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
  165. package/templates/fitness-gym/tokens.json +414 -0
  166. package/templates/gym-fitness/config.ts +12 -0
  167. package/templates/gym-fitness/dev/index.ts +1 -1
  168. package/templates/gym-fitness/l10n/en.json +1 -1
  169. package/templates/gym-fitness/tier5-src/_shared/booking-session.ts +3 -1
  170. package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +148 -0
  171. package/templates/gym-fitness/tier5-src/_shared/header-badges.ts +113 -0
  172. package/templates/gym-fitness/tier5-src/_shared/location-pin.ts +97 -0
  173. package/templates/gym-fitness/tier5-src/_shared/member-access.ts +17 -6
  174. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
  175. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +5 -8
  176. package/templates/gym-fitness/tier5-src/_shared/source-badges.ts +72 -0
  177. package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
  178. package/templates/gym-fitness/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  179. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +13 -4
  180. package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  181. package/templates/medical-services/dev/index.ts +2 -1
  182. package/templates/medical-services/tier5-src/_shared/booking-session.ts +3 -1
  183. package/templates/medical-services/tier5-src/_shared/member-access.ts +17 -6
  184. package/templates/medical-services/tier5-src/himi-booking-account/index.ts +16 -1
  185. package/templates/medical-services/tier5-src/himi-store-account/index.ts +13 -4
  186. package/templates/nonprofit-cause/l10n/en.json +1 -1
  187. package/templates/nonprofit-cause/tier5-src/_shared/member-access.ts +17 -6
  188. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
  189. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +5 -8
  190. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +13 -4
  191. package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  192. package/templates/personal-fitness-trainer/README.md +51 -0
  193. package/templates/personal-fitness-trainer/config.ts +343 -0
  194. package/templates/personal-fitness-trainer/dev/index.ts +24813 -0
  195. package/templates/personal-fitness-trainer/himalaya.content.json +79 -0
  196. package/templates/personal-fitness-trainer/himalaya.template.json +14 -0
  197. package/templates/personal-fitness-trainer/icon.png +0 -0
  198. package/templates/personal-fitness-trainer/platforms.json +3 -0
  199. package/templates/personal-fitness-trainer/splash.json +3 -0
  200. package/templates/personal-fitness-trainer/tier5-src/_shared/app-locale.ts +61 -0
  201. package/templates/personal-fitness-trainer/tier5-src/_shared/booking-location.ts +147 -0
  202. package/templates/personal-fitness-trainer/tier5-src/_shared/booking-session.ts +224 -0
  203. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +280 -0
  204. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-load-state.ts +109 -0
  205. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-copy.ts +40 -0
  206. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-history.ts +51 -0
  207. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-message-model.ts +177 -0
  208. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-model.ts +56 -0
  209. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-presenter.ts +576 -0
  210. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +148 -0
  211. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-contract.ts +228 -0
  212. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-query.ts +193 -0
  213. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-service.ts +400 -0
  214. package/templates/personal-fitness-trainer/tier5-src/_shared/detail-presence.ts +51 -0
  215. package/templates/personal-fitness-trainer/tier5-src/_shared/empty-flags.ts +33 -0
  216. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +523 -0
  217. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +194 -0
  218. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-booking-saved.ts +88 -0
  219. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-bookings.ts +318 -0
  220. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-copy.ts +116 -0
  221. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-layouts.ts +142 -0
  222. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-store.ts +7 -0
  223. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-text.ts +24 -0
  224. package/templates/personal-fitness-trainer/tier5-src/_shared/host-events.ts +66 -0
  225. package/templates/personal-fitness-trainer/tier5-src/_shared/hosted-checkout.ts +70 -0
  226. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-form.ts +106 -0
  227. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
  228. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance.ts +38 -0
  229. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-worker.ts +127 -0
  230. package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +68 -0
  231. package/templates/personal-fitness-trainer/tier5-src/_shared/local-preferences.ts +38 -0
  232. package/templates/personal-fitness-trainer/tier5-src/_shared/member-access.ts +63 -0
  233. package/templates/personal-fitness-trainer/tier5-src/_shared/member-account-routes.ts +52 -0
  234. package/templates/personal-fitness-trainer/tier5-src/_shared/member-bookings.ts +107 -0
  235. package/templates/personal-fitness-trainer/tier5-src/_shared/member-screen.ts +99 -0
  236. package/templates/personal-fitness-trainer/tier5-src/_shared/offset-page.ts +10 -0
  237. package/templates/personal-fitness-trainer/tier5-src/_shared/online-actions.ts +76 -0
  238. package/templates/personal-fitness-trainer/tier5-src/_shared/owner-load-error.ts +348 -0
  239. package/templates/personal-fitness-trainer/tier5-src/_shared/payment-setup.ts +6 -0
  240. package/templates/personal-fitness-trainer/tier5-src/_shared/pricing-plan-display.ts +64 -0
  241. package/templates/personal-fitness-trainer/tier5-src/_shared/rich-body.ts +78 -0
  242. package/templates/personal-fitness-trainer/tier5-src/_shared/rich-content-link.ts +34 -0
  243. package/templates/personal-fitness-trainer/tier5-src/_shared/sign-in-sheet.ts +18 -0
  244. package/templates/personal-fitness-trainer/tier5-src/_shared/staff-name.ts +18 -0
  245. package/templates/personal-fitness-trainer/tier5-src/_shared/video-caption.ts +21 -0
  246. package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +107 -0
  247. package/templates/personal-fitness-trainer/tier5-src/_shared/wix-bi.ts +85 -0
  248. package/templates/personal-fitness-trainer/tier5-src/_shared/wix-service-price.ts +146 -0
  249. package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +732 -0
  250. package/templates/personal-fitness-trainer/tier5-src/business-contact/index.ts +6 -0
  251. package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +468 -0
  252. package/templates/personal-fitness-trainer/tier5-src/himi-booking-service/index.ts +1190 -0
  253. package/templates/personal-fitness-trainer/tier5-src/himi-booking-services/index.ts +791 -0
  254. package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +1729 -0
  255. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  256. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/index.ts +1094 -0
  257. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-agenda/index.ts +988 -0
  258. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-appearance/index.ts +94 -0
  259. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  260. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-plans/index.ts +495 -0
  261. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-splash/index.ts +35 -0
  262. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +226 -0
  263. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-videos/index.ts +145 -0
  264. package/templates/personal-fitness-trainer/tier5-src/himi-fitness-trainer-home/index.ts +70 -0
  265. package/templates/personal-fitness-trainer/tier5-src/himi-fitness-trainer-profile/index.ts +53 -0
  266. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +1007 -0
  267. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-app-language/index.ts +73 -0
  268. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-delete-account/index.ts +59 -0
  269. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-my-subscriptions/index.ts +84 -0
  270. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
  271. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-view-profile/index.ts +119 -0
  272. package/templates/personal-fitness-trainer/tokens.json +381 -0
  273. package/templates/podcast-creator/dev/index.ts +100 -0
  274. package/templates/podcast-creator/l10n/en.json +22 -1
  275. package/templates/podcast-creator/l10n/es.json +22 -0
  276. package/templates/podcast-creator/l10n/fr.json +18 -0
  277. package/templates/podcast-creator/l10n/he.json +15 -0
  278. package/templates/podcast-creator/tier5-src/_shared/member-access.ts +17 -6
  279. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
  280. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +5 -8
  281. package/templates/podcast-creator/tier5-src/himi-branded-lite-podcasts/index.ts +14 -234
  282. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +13 -4
  283. package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  284. package/templates/portfolio-creative/l10n/en.json +1 -1
  285. package/templates/portfolio-creative/tier5-src/_shared/member-access.ts +17 -6
  286. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
  287. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +5 -8
  288. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +13 -4
  289. package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  290. package/templates/restaurant/l10n/en.json +1 -1
  291. package/templates/restaurant/tier5-src/_shared/member-access.ts +17 -6
  292. package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
  293. package/templates/restaurant/tier5-src/_shared/programs-section.ts +5 -8
  294. package/templates/restaurant/tier5-src/himi-store-account/index.ts +13 -4
  295. package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  296. package/templates/retail-store/l10n/en.json +1 -1
  297. package/templates/retail-store/tier5-src/_shared/member-access.ts +17 -6
  298. package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
  299. package/templates/retail-store/tier5-src/_shared/programs-section.ts +5 -8
  300. package/templates/retail-store/tier5-src/himi-store-account/index.ts +13 -4
  301. package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  302. package/templates/salon-spa/dev/index.ts +1 -1
  303. package/templates/salon-spa/tier5-src/_shared/booking-session.ts +3 -1
  304. package/templates/salon-spa/tier5-src/_shared/member-access.ts +17 -6
  305. package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +16 -1
  306. package/templates/salon-spa/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
  307. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +13 -4
  308. package/templates/wholesale-store/tier5-src/_shared/member-access.ts +17 -6
  309. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +13 -4
  310. package/templates/yoga-studio/config.ts +12 -0
  311. package/templates/yoga-studio/dev/index.ts +1 -1
  312. package/templates/yoga-studio/l10n/en.json +1 -1
  313. package/templates/yoga-studio/tier5-src/_shared/booking-session.ts +3 -1
  314. package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +148 -0
  315. package/templates/yoga-studio/tier5-src/_shared/header-badges.ts +113 -0
  316. package/templates/yoga-studio/tier5-src/_shared/location-pin.ts +97 -0
  317. package/templates/yoga-studio/tier5-src/_shared/member-access.ts +17 -6
  318. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
  319. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +5 -8
  320. package/templates/yoga-studio/tier5-src/_shared/source-badges.ts +72 -0
  321. package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
  322. package/templates/yoga-studio/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  323. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +13 -4
  324. package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +68 -55
@@ -0,0 +1,84 @@
1
+ import { defineService } from "@himalaya/state";
2
+ import { listMyPlanOrders, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
3
+ import { hostSessionFromGlobal } from "@himalaya/iap";
4
+ import { memberAccess, assertMemberAccess, memberAccessDenied, memberChanged } from "../_shared/member-access.js";
5
+ import { orderDate, orderPrice, orderStatus } from "../_shared/pricing-plan-display.js";
6
+ import { descriptionBody } from "../_shared/rich-body.js";
7
+ import { copyParam, stashCopy } from "../_shared/himi-copy.js";
8
+
9
+ interface Row { id: string; name: string; subtitle: string; description: string; price: string; endDate: string; noEndDate: boolean; expired: boolean; dateLabel: string }
10
+ interface S {
11
+ status: string; orders: Row[]; rows: Row[]; allOrders: Row[]; selectedTab: string; nextCursor: string;
12
+ emptyText: string; hideAccountCta: boolean; noOrders: boolean;
13
+ isLoading: boolean; notLoading: boolean; hideError: boolean; denied: boolean;
14
+ hideEmpty: boolean; hideEmptyLoadMore: boolean; hideDeniedError: boolean; hideRetryError: boolean; pageError: boolean; loadingPage: boolean;
15
+ }
16
+ const initial = (): S => ({ status: "loading", orders: [], rows: [], allOrders: [], selectedTab: "active", nextCursor: "", emptyText: "", hideAccountCta: true, noOrders: true, isLoading: true, notLoading: false, hideError: true, denied: false, hideEmpty: true, hideEmptyLoadMore: true, hideDeniedError: true, hideRetryError: true, pageError: false, loadingPage: false });
17
+ let sequence = 0;
18
+ let scope = "";
19
+ let offset = 0;
20
+ let pending = false;
21
+ const session = hostSessionFromGlobal();
22
+
23
+ function project(state: S): S {
24
+ // Keep the unfiltered `orders` contract for older descriptors without tabs.
25
+ const orders = state.allOrders;
26
+ const rows = orders.filter(row => row.expired === (state.selectedTab === "expired"));
27
+ return { ...state, orders, rows, noOrders: rows.length === 0, hideEmpty: state.status !== "ready" || rows.length > 0 || Boolean(state.nextCursor),
28
+ hideEmptyLoadMore: state.status !== "ready" || rows.length > 0 || !state.nextCursor,
29
+ emptyText: orders.length ? "" : state.selectedTab === "expired" ? copyParam("mySubscriptions.expiredEmpty", "No expired subscriptions") : copyParam("mySubscriptions.activeEmpty", "No active subscriptions") };
30
+ }
31
+ function norm(order: WixPlanOrder): Row {
32
+ const periodEnd = !order.earliestEndDate && !order.endDate && order.status === "ACTIVE" && (order.pricing?.subscription ?? order.priceDetails?.subscription) ? orderDate(order.currentCycle?.endedDate) : "";
33
+ const endDate = orderDate(order.earliestEndDate ?? order.endDate) || periodEnd;
34
+ return { id: order.id, name: order.planName || copyParam("plans.planFallbackName", "Plan"), subtitle: orderStatus(order),
35
+ description: descriptionBody(order.planDescription).bodyText, price: orderPrice(order), endDate, noEndDate: !endDate, dateLabel: periodEnd ? copyParam("subscriptionDetail.periodEnd", "Current period ends") : order.status === "CANCELED" ? copyParam("subscriptionDetail.endDate", "End date") : order.status === "ENDED" ? copyParam("mySubscriptions.expiredOn", "Expired on") : copyParam("mySubscriptions.validUntil", "Valid until"),
36
+ expired: ["ENDED", "CANCELED"].includes(order.status ?? "") };
37
+ }
38
+ async function readPage(state: S, reset: boolean): Promise<S | undefined> {
39
+ if (!reset && pending) return undefined;
40
+ const seq = reset ? ++sequence : sequence;
41
+ pending = true;
42
+ if (!reset) void svc.beginPage();
43
+ const member = await memberAccess();
44
+ const key = JSON.stringify([member.email, member.scope]);
45
+ if (seq !== sequence) return undefined;
46
+ if (key !== scope) { scope = key; offset = 0; state = initial(); void svc.clear(); }
47
+ if (!member.email) { pending = false; return { ...initial(), status: "guest", emptyText: copyParam("mySubscriptions.guestBody", "Sign in to see your subscriptions."), isLoading: false, notLoading: true, hideAccountCta: false }; }
48
+ try {
49
+ const start = reset ? 0 : offset;
50
+ const result = await listMyPlanOrders({ statuses: ["ACTIVE", "PENDING", "PAUSED", "CANCELED", "ENDED"], limit: 50, offset: start });
51
+ await assertMemberAccess(member);
52
+ if (seq !== sequence) return undefined;
53
+ const raw = result.orders ?? [];
54
+ offset = start + raw.length;
55
+ const rows = raw.filter(order => order.id && order.status !== "DRAFT").map(norm);
56
+ const allOrders = [...new Map([...(reset ? [] : state.allOrders), ...rows].map(row => [row.id, row])).values()];
57
+ return project({ ...state, status: "ready", allOrders, isLoading: false, notLoading: true, hideError: true, denied: false, hideAccountCta: true,
58
+ selectedTab: svc.getState().selectedTab, hideDeniedError: true, hideRetryError: true, nextCursor: raw.length === 50 ? String(offset) : "", pageError: false, loadingPage: false });
59
+ } catch (error) {
60
+ if (seq !== sequence) return undefined;
61
+ if (await memberChanged(member, error)) { scope = ""; void svc.clear(); void svc.load(); return undefined; }
62
+ state = project({ ...state, selectedTab: svc.getState().selectedTab });
63
+ const denied = memberAccessDenied(error);
64
+ if (denied) return { ...initial(), selectedTab: state.selectedTab, status: "error", emptyText: copyParam("mySubscriptions.accessDenied", "Subscriptions are unavailable for this account."), isLoading: false, notLoading: true, hideError: false, denied: true, hideDeniedError: false, hideRetryError: true };
65
+ return { ...state, status: "error", emptyText: copyParam("mySubscriptions.loadError", "Subscriptions could not be loaded."), isLoading: false, notLoading: true, hideError: false, denied: false, hideDeniedError: true, hideRetryError: false, hideEmpty: true, hideEmptyLoadMore: true, pageError: !reset && state.allOrders.length > 0, loadingPage: false };
66
+ } finally { if (seq === sequence) pending = false; }
67
+ }
68
+ const svc = defineService<S, {
69
+ clear: (s: S) => S; beginPage: (s: S) => S; load: (s: S, arg?: unknown) => Promise<S | undefined>;
70
+ retry: (s: S) => Promise<S | undefined>; nextPage: (s: S) => Promise<S | undefined>; selectTab: (s: S, arg?: unknown) => S;
71
+ }>("spacesMySubscriptions", {
72
+ state: initial(), notHydrated: Object.keys(initial()) as Array<keyof S>,
73
+ actions: {
74
+ clear: () => initial(),
75
+ beginPage: state => ({ ...state, loadingPage: true }),
76
+ load: (state, arg) => { stashCopy(arg); return readPage(state, true); },
77
+ retry: state => readPage(state, !state.pageError),
78
+ nextPage: state => state.nextCursor ? readPage(state, false) : Promise.resolve(undefined),
79
+ selectTab: (state, arg) => { const raw = typeof arg === "string" ? arg : (arg as { selectedId?: string; id?: string; value?: string })?.selectedId ?? (arg as { id?: string })?.id ?? (arg as { value?: string })?.value; return project({ ...state, selectedTab: raw === "expired" ? "expired" : "active" }); },
80
+ },
81
+ });
82
+ session.subscribe(() => { ++sequence; scope = ""; pending = false; void svc.clear(); void svc.load(); });
83
+ svc.load();
84
+ export { svc };
@@ -0,0 +1,139 @@
1
+ import { defineService } from "@himalaya/state";
2
+ import { getMyPlanOrder, requestCancellation, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
3
+ import { hostSessionFromGlobal } from "@himalaya/iap";
4
+ import { memberAccess, assertMemberAccess, memberAccessDenied, memberChanged, type MemberAccess } from "../_shared/member-access.js";
5
+ import { orderDate, orderPrice, orderStatus, orderFacts } from "../_shared/pricing-plan-display.js";
6
+ import { presence, presenceAfterError, detailInputId, type PresenceFlags } from "../_shared/detail-presence.js";
7
+ import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
8
+
9
+ interface S extends PresenceFlags {
10
+ denied: boolean; hideDeniedError: boolean; notActive: boolean; isActive: boolean;
11
+ status: string; name: string; subtitle: string; price: string; validity: string;
12
+ facts: ReturnType<typeof orderFacts>; hideAccountCta: boolean;
13
+ hideCancel: boolean; hideConfirmation: boolean; showConfirmation: boolean; busy: boolean; noScheduledOption: boolean;
14
+ effectiveAt: string; confirmation: string; actionMessage: string; actionError: string; hasActionError: boolean; noActionError: boolean;
15
+ }
16
+ const initial = (): S => ({ denied: false, hideDeniedError: true, notActive: true, isActive: false, status: "loading", name: "", subtitle: "", price: "", validity: "", facts: [], hideAccountCta: true,
17
+ hideCancel: true, hideConfirmation: true, showConfirmation: false, busy: false, noScheduledOption: true, effectiveAt: "IMMEDIATELY", confirmation: "", actionMessage: "", actionError: "none", hasActionError: false, noActionError: true, ...presence("loading") });
18
+ let order: WixPlanOrder | null = null;
19
+ let sequence = 0;
20
+ let cancelInFlight = false;
21
+ const cancellationsSent = new Set<string>();
22
+ let orderMemberKey = "";
23
+ const memberKey = (member: MemberAccess): string => JSON.stringify([member.scope, member.email]);
24
+ const cancellationKey = (id: string, owner = orderMemberKey): string => JSON.stringify([owner, id]);
25
+ const session = hostSessionFromGlobal();
26
+ function canCancel(o: WixPlanOrder): boolean {
27
+ // The member API enforces the PURCHASED policy. Current public plan settings are not the
28
+ // historical policy, and an archived plan must not prevent canceling an existing order.
29
+ return Boolean(o.id) && ["ACTIVE", "PENDING", "PAUSED"].includes(o.status ?? "") && o.type !== "EXTERNAL"
30
+ && !o.autoRenewCanceled && o.cancellation?.effectiveAt !== "NEXT_PAYMENT_DATE";
31
+ }
32
+ function project(o: WixPlanOrder, message = ""): S {
33
+ const end = orderDate(o.earliestEndDate ?? o.endDate ?? o.currentCycle?.endedDate);
34
+ const scheduled = Boolean((o.pricing?.subscription ?? o.priceDetails?.subscription) && o.currentCycle?.endedDate && Date.parse(o.currentCycle.endedDate) > Date.now());
35
+ const renews = o.status === "ACTIVE" && scheduled ? orderDate(o.currentCycle?.endedDate) : "";
36
+ return { ...initial(), ...presence("found"), status: "ready", notActive: o.status !== "ACTIVE", isActive: o.status === "ACTIVE", name: o.planName || copyParam("subscriptionDetail.fallbackName", "Subscription"), subtitle: orderStatus(o), price: orderPrice(o),
37
+ validity: (o.earliestEndDate || o.autoRenewCanceled || o.cancellation?.effectiveAt === "NEXT_PAYMENT_DATE") && end ? copyTemplate("subscriptionDetail.scheduledEndMessage", "Your subscription ends on {date}.", { date: end }) : renews ? copyTemplate("placeSummary.planRenews", "Renews {date}", { date: renews }) : "",
38
+ facts: orderFacts(o), hideCancel: !canCancel(o) || cancellationsSent.has(cancellationKey(o.id)), noScheduledOption: !scheduled,
39
+ effectiveAt: scheduled ? "NEXT_PAYMENT_DATE" : "IMMEDIATELY", actionMessage: message };
40
+ }
41
+ function confirmation(effectiveAt: string): string {
42
+ const end = orderDate(order?.currentCycle?.endedDate);
43
+ return effectiveAt === "NEXT_PAYMENT_DATE" && end
44
+ ? copyTemplate("subscriptionDetail.cancelAtPeriodEndBody", "Request cancellation at the next payment date, {date}?", { date: end })
45
+ : copyParam("subscriptionDetail.cancelImmediatelyBody", "Request cancellation now? Your access can end immediately.");
46
+ }
47
+ async function load(_state: S, arg?: unknown): Promise<S | undefined> {
48
+ stashCopy(arg);
49
+ const seq = ++sequence;
50
+ if (order && order.id !== detailInputId()) { order = null; void svc.clear(); }
51
+ const member = await memberAccess();
52
+ if (seq !== sequence) return undefined;
53
+ if (!member.email) { order = null; return { ...initial(), status: "guest", subtitle: copyParam("mySubscriptions.guestBody", "Sign in to see your subscriptions."), hideAccountCta: false, ...presence("missing"), hideNotFound: true }; }
54
+ const id = detailInputId();
55
+ if (!id) return { ...initial(), status: "ready", subtitle: copyParam("subscriptionDetail.missingId", "Open a subscription from My Subscriptions."), ...presence("missing") };
56
+ try {
57
+ const result = await getMyPlanOrder(id);
58
+ await assertMemberAccess(member);
59
+ if (seq !== sequence) return undefined;
60
+ orderMemberKey = memberKey(member);
61
+ order = result.order;
62
+ if (!order?.id || order.status === "DRAFT") { order = null; return { ...initial(), status: "ready", ...presence("missing") }; }
63
+ return project(order, cancellationsSent.has(cancellationKey(order.id)) && canCancel(order) ? copyParam("subscriptionDetail.cancelPending", "Cancellation requested. Refresh to see the latest status.") : "");
64
+ } catch (error) {
65
+ if (seq !== sequence) return undefined;
66
+ order = null;
67
+ if (await memberChanged(member, error)) { void svc.clear(); void svc.load(); return undefined; }
68
+ const denied = memberAccessDenied(error);
69
+ const flags = presenceAfterError(error);
70
+ return { ...initial(), status: "ready", subtitle: copyParam("subscriptionDetail.loadError", "This subscription could not be loaded."), ...flags, denied, hideLoadError: denied || flags.hideLoadError, hideDeniedError: !denied };
71
+ }
72
+ }
73
+ type SubscriptionActions = {
74
+ beginCancel: (s: S) => S; clear: (s: S) => S; load: typeof load; requestCancel: (s: S) => S;
75
+ dismissCancel: (s: S) => S; chooseEffectiveAt: (s: S, arg?: unknown) => S;
76
+ confirmCancel: (s: S) => Promise<S | undefined>;
77
+ };
78
+ const svc: ReturnType<typeof defineService<S, SubscriptionActions>> = defineService<S, SubscriptionActions>("spacesSubscriptionDetail", {
79
+ state: initial(), notHydrated: Object.keys(initial()) as Array<keyof S>,
80
+ actions: {
81
+ beginCancel: state => ({ ...state, busy: true }),
82
+ clear: () => initial(), load,
83
+ requestCancel: state => !order || order.id !== detailInputId() || state.hideCancel || cancelInFlight ? state : { ...state, hideConfirmation: false, showConfirmation: true, actionMessage: "", actionError: "none", hasActionError: false, noActionError: true, confirmation: confirmation(state.effectiveAt) },
84
+ dismissCancel: state => cancelInFlight ? state : { ...state, hideConfirmation: true, showConfirmation: false },
85
+ chooseEffectiveAt: (state, arg) => {
86
+ if (cancelInFlight || state.hideConfirmation) return state;
87
+ const value = typeof arg === "string" ? arg : (arg as { value?: string; selectedId?: string })?.value ?? (arg as { selectedId?: string })?.selectedId;
88
+ const effectiveAt = value === "NEXT_PAYMENT_DATE" && !state.noScheduledOption ? value : "IMMEDIATELY";
89
+ return { ...state, effectiveAt, confirmation: confirmation(effectiveAt) };
90
+ },
91
+ confirmCancel: async (state): Promise<S | undefined> => {
92
+ if (state.hideConfirmation || state.hideCancel || !order || order.id !== detailInputId() || !canCancel(order) || cancelInFlight || cancellationsSent.has(cancellationKey(order.id))) return undefined;
93
+ cancelInFlight = true;
94
+ void svc.beginCancel();
95
+ const seq = sequence;
96
+ const id = order.id;
97
+ const isCurrent = (): boolean => seq === sequence && detailInputId() === id;
98
+ const member = await memberAccess();
99
+ const requestKey = cancellationKey(id, memberKey(member));
100
+ try {
101
+ if (!isCurrent()) return seq === sequence ? load(svc.getState()) : undefined;
102
+ await assertMemberAccess(member);
103
+ if (!isCurrent()) return seq === sequence ? load(svc.getState()) : undefined;
104
+ // Refresh policy/lifecycle facts before writing; never cancel a stale/other member order.
105
+ const latest = (await getMyPlanOrder(id)).order;
106
+ await assertMemberAccess(member);
107
+ if (!isCurrent()) return seq === sequence ? load(svc.getState()) : undefined;
108
+ if (!latest || !canCancel(latest)) { order = latest; return latest ? project(latest) : { ...initial(), ...presence("missing") }; }
109
+ if (state.effectiveAt === "NEXT_PAYMENT_DATE" && (!latest.currentCycle?.endedDate || Date.parse(latest.currentCycle.endedDate) <= Date.now())) {
110
+ order = latest; return { ...project(latest), actionMessage: copyParam("subscriptionDetail.changedBeforeCancel", "Your subscription changed. Review the details before canceling.") };
111
+ }
112
+ await requestCancellation(id, state.effectiveAt === "NEXT_PAYMENT_DATE" ? "NEXT_PAYMENT_DATE" : "IMMEDIATELY");
113
+ // An accepted write remains fenced for its original member even when a session
114
+ // change overtakes its response. Check ownership before publishing, not before
115
+ // remembering the acknowledgement; reads can still report ACTIVE afterward.
116
+ cancellationsSent.add(requestKey);
117
+ if (!isCurrent()) return load(svc.getState());
118
+ await assertMemberAccess(member);
119
+ if (!isCurrent()) return load(svc.getState());
120
+ const refreshed = (await getMyPlanOrder(id)).order;
121
+ await assertMemberAccess(member);
122
+ if (!isCurrent()) return load(svc.getState());
123
+ order = refreshed;
124
+ return project(refreshed, canCancel(refreshed) ? copyParam("subscriptionDetail.cancelPending", "Cancellation requested. Refresh to see the latest status.") : "");
125
+ } catch (error) {
126
+ if (!isCurrent()) return seq === sequence ? load(svc.getState()) : undefined;
127
+ if (await memberChanged(member, error)) { order = null; orderMemberKey = ""; void svc.clear(); void svc.load(); return undefined; }
128
+ if (!isCurrent()) return seq === sequence ? load(svc.getState()) : undefined;
129
+ return { ...state, busy: false, hideConfirmation: true, showConfirmation: false, actionError: cancellationsSent.has(requestKey) ? "cancelRefreshFailed" : memberAccessDenied(error) ? "cancelDenied" : "cancelFailed", hasActionError: true, noActionError: false, hideCancel: cancellationsSent.has(requestKey) || memberAccessDenied(error) || state.hideCancel,
130
+ actionMessage: cancellationsSent.has(requestKey) ? copyParam("subscriptionDetail.cancelRefreshFailed", "Cancellation requested, but the latest status could not be loaded. Refresh the details.")
131
+ : memberAccessDenied(error) ? copyParam("subscriptionDetail.cancelDenied", "This subscription cannot be canceled from this account. Contact the business for help.")
132
+ : copyParam("subscriptionDetail.cancelFailed", "Cancellation failed. Try again.") };
133
+ } finally { cancelInFlight = false; }
134
+ },
135
+ },
136
+ });
137
+ session.subscribe(() => { ++sequence; order = null; orderMemberKey = ""; void svc.clear(); void svc.load(); });
138
+ svc.load();
139
+ export { svc };
@@ -0,0 +1,414 @@
1
+ {
2
+ "colors": {
3
+ "surfacePrimary": {
4
+ "light": "#0C0C0C",
5
+ "dark": "#0C0C0C",
6
+ "highContrast": "#000000"
7
+ },
8
+ "surfaceSubtle": {
9
+ "light": "#121212",
10
+ "dark": "#121212",
11
+ "highContrast": "#0A0A0A"
12
+ },
13
+ "surfaceSecondary": {
14
+ "light": "#151515",
15
+ "dark": "#151515",
16
+ "highContrast": "#0F0F0F"
17
+ },
18
+ "surfaceElevated": {
19
+ "light": "#1D1D1D",
20
+ "dark": "#1D1D1D",
21
+ "highContrast": "#161616"
22
+ },
23
+ "surfaceTertiary": {
24
+ "light": "#2A2A2A",
25
+ "dark": "#2A2A2A",
26
+ "highContrast": "#262626"
27
+ },
28
+ "textPrimary": {
29
+ "light": "#FFFFFF",
30
+ "dark": "#FFFFFF",
31
+ "highContrast": "#FFFFFF"
32
+ },
33
+ "textSecondary": {
34
+ "light": "#A6A6A6",
35
+ "dark": "#A6A6A6",
36
+ "highContrast": "#D9D9D9"
37
+ },
38
+ "textTertiary": {
39
+ "light": "#808080",
40
+ "dark": "#808080",
41
+ "highContrast": "#BFBFBF"
42
+ },
43
+ "textOnAccent": {
44
+ "light": "#0C0C0C",
45
+ "dark": "#0C0C0C",
46
+ "highContrast": "#000000"
47
+ },
48
+ "accentPrimary": {
49
+ "light": "#CBE332",
50
+ "dark": "#CBE332",
51
+ "highContrast": "#DDF25A"
52
+ },
53
+ "accentText": {
54
+ "light": "#CBE332",
55
+ "dark": "#CBE332",
56
+ "highContrast": "#DDF25A"
57
+ },
58
+ "accentSecondary": {
59
+ "light": "#FFFFFF",
60
+ "dark": "#FFFFFF",
61
+ "highContrast": "#FFFFFF"
62
+ },
63
+ "accentSurface": {
64
+ "light": "#252C0A",
65
+ "dark": "#252C0A",
66
+ "highContrast": "#2E3608"
67
+ },
68
+ "success": {
69
+ "light": "#5BD98A",
70
+ "dark": "#5BD98A",
71
+ "highContrast": "#6FE79A"
72
+ },
73
+ "successSurface": {
74
+ "light": "#11291A",
75
+ "dark": "#11291A",
76
+ "highContrast": "#12331B"
77
+ },
78
+ "warning": {
79
+ "light": "#F5B83D",
80
+ "dark": "#F5B83D",
81
+ "highContrast": "#FFC857"
82
+ },
83
+ "warningSurface": {
84
+ "light": "#33270A",
85
+ "dark": "#33270A",
86
+ "highContrast": "#3A2C0A"
87
+ },
88
+ "danger": {
89
+ "light": "#FF6B5E",
90
+ "dark": "#FF6B5E",
91
+ "highContrast": "#FF8A80"
92
+ },
93
+ "dangerSurface": {
94
+ "light": "#3A1512",
95
+ "dark": "#3A1512",
96
+ "highContrast": "#3A1513"
97
+ },
98
+ "border": {
99
+ "light": "#2E2E2E",
100
+ "dark": "#2E2E2E",
101
+ "highContrast": "#8C8C8C"
102
+ },
103
+ "scrimClear": {
104
+ "light": "#0C0C0C00",
105
+ "dark": "#0C0C0C00",
106
+ "highContrast": "#00000000"
107
+ },
108
+ "scrimMid": {
109
+ "light": "#0C0C0CBF",
110
+ "dark": "#0C0C0CBF",
111
+ "highContrast": "#000000CC"
112
+ },
113
+ "onPhoto": {
114
+ "light": "#FFFFFF",
115
+ "dark": "#FFFFFF",
116
+ "highContrast": "#FFFFFF"
117
+ }
118
+ },
119
+ "spacing": {
120
+ "xs": 4,
121
+ "sm": 8,
122
+ "md": 12,
123
+ "lg": 16,
124
+ "screenMargin": 20,
125
+ "pricingScreenMargin": 20,
126
+ "xl": 24,
127
+ "xxl": 32
128
+ },
129
+ "typography": {
130
+ "displayHero": {
131
+ "family": "Wix Madefor Display",
132
+ "size": 40,
133
+ "weight": 800,
134
+ "line": 1.0,
135
+ "letterSpacing": -0.5
136
+ },
137
+ "display": {
138
+ "family": "Wix Madefor Display",
139
+ "size": 32,
140
+ "weight": 800,
141
+ "line": 1.05,
142
+ "letterSpacing": -0.3
143
+ },
144
+ "screenTitle": {
145
+ "family": "Wix Madefor Display",
146
+ "size": 28,
147
+ "weight": 800,
148
+ "line": 1.1,
149
+ "letterSpacing": 0
150
+ },
151
+ "pageTitle": {
152
+ "family": "Wix Madefor Display",
153
+ "size": 28,
154
+ "weight": 800,
155
+ "line": 1.1,
156
+ "letterSpacing": 0
157
+ },
158
+ "pricingTitle": {
159
+ "family": "Wix Madefor Display",
160
+ "size": 28,
161
+ "weight": 800,
162
+ "line": 1.1,
163
+ "letterSpacing": 0
164
+ },
165
+ "statValue": {
166
+ "family": "Wix Madefor Display",
167
+ "size": 28,
168
+ "weight": 800,
169
+ "line": 1.0,
170
+ "letterSpacing": 0
171
+ },
172
+ "title1": {
173
+ "family": "Wix Madefor Display",
174
+ "size": 24,
175
+ "weight": 800,
176
+ "line": 1.15,
177
+ "letterSpacing": 0
178
+ },
179
+ "title2": {
180
+ "family": "Wix Madefor Text",
181
+ "size": 20,
182
+ "weight": 700,
183
+ "line": 1.25,
184
+ "letterSpacing": 0
185
+ },
186
+ "title3": {
187
+ "family": "Wix Madefor Text",
188
+ "size": 17,
189
+ "weight": 700,
190
+ "line": 1.3,
191
+ "letterSpacing": 0
192
+ },
193
+ "headline": {
194
+ "family": "Wix Madefor Text",
195
+ "size": 17,
196
+ "weight": 700,
197
+ "line": 1.3,
198
+ "letterSpacing": 0
199
+ },
200
+ "body": {
201
+ "family": "Wix Madefor Text",
202
+ "size": 16,
203
+ "weight": 400,
204
+ "line": 1.5,
205
+ "letterSpacing": 0
206
+ },
207
+ "bodyEmphasis": {
208
+ "family": "Wix Madefor Text",
209
+ "size": 16,
210
+ "weight": 700,
211
+ "line": 1.35,
212
+ "letterSpacing": 0
213
+ },
214
+ "callout": {
215
+ "family": "Wix Madefor Text",
216
+ "size": 16,
217
+ "weight": 700,
218
+ "line": 1.35,
219
+ "letterSpacing": 0
220
+ },
221
+ "footnote": {
222
+ "family": "Wix Madefor Text",
223
+ "size": 14,
224
+ "weight": 600,
225
+ "line": 1.35,
226
+ "letterSpacing": 0
227
+ },
228
+ "footnoteRegular": {
229
+ "family": "Wix Madefor Text",
230
+ "size": 14,
231
+ "weight": 400,
232
+ "line": 1.45,
233
+ "letterSpacing": 0
234
+ },
235
+ "label": {
236
+ "family": "Wix Madefor Text",
237
+ "size": 14,
238
+ "weight": 600,
239
+ "line": 1.35,
240
+ "letterSpacing": 0
241
+ },
242
+ "caption": {
243
+ "family": "Wix Madefor Text",
244
+ "size": 12,
245
+ "weight": 500,
246
+ "line": 1.35,
247
+ "letterSpacing": 0.2
248
+ },
249
+ "overline": {
250
+ "family": "Wix Madefor Text",
251
+ "size": 12,
252
+ "weight": 700,
253
+ "line": 1.3,
254
+ "letterSpacing": 1
255
+ },
256
+ "pricingSection": {
257
+ "family": "Wix Madefor Text",
258
+ "size": 12,
259
+ "weight": 700,
260
+ "line": 1.3,
261
+ "letterSpacing": 1
262
+ }
263
+ },
264
+ "radius": {
265
+ "sm": 8,
266
+ "md": 14,
267
+ "lg": 20,
268
+ "xl": 28,
269
+ "pill": 999
270
+ },
271
+ "kit": {
272
+ "colorScheme": "dark",
273
+ "material": "flat",
274
+ "variant": "default",
275
+ "density": "spacious",
276
+ "motion": "smooth",
277
+ "motionDefaults": "subtle"
278
+ },
279
+ "shadows": {
280
+ "sm": {
281
+ "color": "#000000",
282
+ "opacity": 0,
283
+ "radius": 0,
284
+ "x": 0,
285
+ "y": 0
286
+ },
287
+ "md": {
288
+ "color": "#000000",
289
+ "opacity": 0,
290
+ "radius": 0,
291
+ "x": 0,
292
+ "y": 0
293
+ },
294
+ "lg": {
295
+ "color": "#000000",
296
+ "opacity": 0,
297
+ "radius": 0,
298
+ "x": 0,
299
+ "y": 0
300
+ }
301
+ },
302
+ "gradients": {
303
+ "brand": {
304
+ "colors": [
305
+ "accentPrimary",
306
+ "accentText"
307
+ ],
308
+ "angle": 135
309
+ },
310
+ "subtle": {
311
+ "colors": [
312
+ "surfaceSecondary",
313
+ "surfacePrimary"
314
+ ],
315
+ "angle": 180
316
+ },
317
+ "hero": {
318
+ "colors": [
319
+ "scrimClear",
320
+ "scrimMid",
321
+ "surfacePrimary"
322
+ ],
323
+ "angle": 180
324
+ }
325
+ },
326
+ "materials": {
327
+ "flat": {
328
+ "style": "flat",
329
+ "tint": "surfaceSecondary",
330
+ "opacity": 1
331
+ }
332
+ },
333
+ "motions": {
334
+ "smooth": {
335
+ "duration": 260,
336
+ "easing": "easeInOut"
337
+ },
338
+ "quick": {
339
+ "duration": 140,
340
+ "easing": "easeOut"
341
+ },
342
+ "ring": {
343
+ "duration": 600,
344
+ "easing": "easeInOut"
345
+ }
346
+ },
347
+ "controls": {
348
+ "button": {
349
+ "sm": {
350
+ "height": 36,
351
+ "paddingH": 16,
352
+ "paddingV": 8,
353
+ "text": "footnote",
354
+ "icon": 16,
355
+ "radius": 999
356
+ },
357
+ "md": {
358
+ "height": 52,
359
+ "paddingH": 24,
360
+ "paddingV": 14,
361
+ "text": "bodyEmphasis",
362
+ "icon": 20,
363
+ "radius": 999
364
+ },
365
+ "lg": {
366
+ "height": 64,
367
+ "paddingH": 24,
368
+ "paddingV": 16,
369
+ "text": "bodyEmphasis",
370
+ "icon": 22,
371
+ "radius": 999
372
+ },
373
+ "variants": {
374
+ "primary": {
375
+ "fill": "accentPrimary",
376
+ "label": "textOnAccent",
377
+ "borderWidth": 0
378
+ },
379
+ "secondary": {
380
+ "label": "textPrimary",
381
+ "border": "accentSecondary",
382
+ "borderWidth": 1.5
383
+ },
384
+ "tertiary": {
385
+ "label": "accentText",
386
+ "borderWidth": 0
387
+ },
388
+ "destructive": {
389
+ "label": "danger",
390
+ "border": "danger",
391
+ "borderWidth": 1.5
392
+ }
393
+ }
394
+ }
395
+ },
396
+ "tabBar": {
397
+ "background": {
398
+ "color": "surfaceSecondary"
399
+ },
400
+ "activeTint": "accentPrimary",
401
+ "inactiveTint": "textSecondary",
402
+ "labels": {
403
+ "show": true,
404
+ "typography": "caption"
405
+ },
406
+ "iconSize": 22,
407
+ "motion": "smooth"
408
+ },
409
+ "contentMaxWidth": {
410
+ "base": 480,
411
+ "medium": 600,
412
+ "expanded": 760
413
+ }
414
+ }
@@ -63,6 +63,18 @@ export default defineApp({
63
63
  "maxHoldMs": 5000
64
64
  },
65
65
  navigation: {
66
+ "navLogicBundle": {
67
+ "url": "/v1/bundles/himi-branded-lite-nav",
68
+ "integrity": "",
69
+ "contentType": "application/javascript+ts-bundle",
70
+ "declaredCapabilities": [
71
+ "push",
72
+ "theme",
73
+ "wix_api"
74
+ ],
75
+ "minBinaryVersion": "0.1.0",
76
+ "bundleVersion": "0.0.1"
77
+ },
66
78
  "navKind": "responsive",
67
79
  "scheme": "himalaya-__HIMI_APP_SLUG__",
68
80
  "deepLinkPatterns": [],
@@ -25413,7 +25413,7 @@ const SCREENS = runtimeSetting({
25413
25413
  }
25414
25414
  },
25415
25415
  "modifiers": {
25416
- "width": 64
25416
+ "width": 80
25417
25417
  }
25418
25418
  },
25419
25419
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-15T09:24:42.792Z",
3
+ "$generated": "2026-11-17T08:26:59.985Z",
4
4
  "messages": {
5
5
  "h_0028d743eb44": {
6
6
  "source": "Sale",