@wix/himalaya-cli 0.1767.0 → 0.1768.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin → 7977d7340513225ef7609b9983b621e2b48c10deb7427e059e595d2fc66f7983.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +209 -83
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/capabilities.md +6 -4
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/himi-json-output.md +16 -4
- package/guides/one-app-to-himi-app.md +19 -9
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/ar.json +45 -0
- package/templates/beauty-salon/l10n/cs.json +45 -0
- package/templates/beauty-salon/l10n/da.json +45 -0
- package/templates/beauty-salon/l10n/de.json +45 -0
- package/templates/beauty-salon/l10n/el.json +45 -0
- package/templates/beauty-salon/l10n/en.json +1 -1
- package/templates/beauty-salon/l10n/es.json +45 -0
- package/templates/beauty-salon/l10n/fi.json +45 -0
- package/templates/beauty-salon/l10n/fr.json +45 -0
- package/templates/beauty-salon/l10n/he.json +36 -0
- package/templates/beauty-salon/l10n/hu.json +45 -0
- package/templates/beauty-salon/l10n/id.json +45 -0
- package/templates/beauty-salon/l10n/it.json +45 -0
- package/templates/beauty-salon/l10n/ja.json +45 -0
- package/templates/beauty-salon/l10n/ko.json +45 -0
- package/templates/beauty-salon/l10n/lt.json +45 -0
- package/templates/beauty-salon/l10n/nl.json +45 -0
- package/templates/beauty-salon/l10n/no.json +45 -0
- package/templates/beauty-salon/l10n/pl.json +45 -0
- package/templates/beauty-salon/l10n/pt.json +45 -0
- package/templates/beauty-salon/l10n/ru.json +45 -0
- package/templates/beauty-salon/l10n/sv.json +45 -0
- package/templates/beauty-salon/l10n/th.json +45 -0
- package/templates/beauty-salon/l10n/tr.json +45 -0
- package/templates/beauty-salon/l10n/uk.json +45 -0
- package/templates/beauty-salon/l10n/vi.json +45 -0
- package/templates/beauty-salon/l10n/zh.json +45 -0
- package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/branded-lite/config.ts +9 -0
- package/templates/branded-lite/dev/index.ts +1086 -85
- package/templates/branded-lite/himalaya.content.json +3 -0
- package/templates/branded-lite/l10n/ar.json +139 -0
- package/templates/branded-lite/l10n/cs.json +139 -0
- package/templates/branded-lite/l10n/da.json +139 -0
- package/templates/branded-lite/l10n/de.json +139 -0
- package/templates/branded-lite/l10n/el.json +139 -0
- package/templates/branded-lite/l10n/en.json +65 -2
- package/templates/branded-lite/l10n/es.json +139 -0
- package/templates/branded-lite/l10n/fi.json +139 -0
- package/templates/branded-lite/l10n/fr.json +139 -0
- package/templates/branded-lite/l10n/he.json +113 -0
- package/templates/branded-lite/l10n/hu.json +139 -0
- package/templates/branded-lite/l10n/id.json +139 -0
- package/templates/branded-lite/l10n/it.json +139 -0
- package/templates/branded-lite/l10n/ja.json +139 -0
- package/templates/branded-lite/l10n/ko.json +139 -0
- package/templates/branded-lite/l10n/lt.json +139 -0
- package/templates/branded-lite/l10n/nl.json +139 -0
- package/templates/branded-lite/l10n/no.json +139 -0
- package/templates/branded-lite/l10n/pl.json +139 -0
- package/templates/branded-lite/l10n/pt.json +139 -0
- package/templates/branded-lite/l10n/ru.json +139 -0
- package/templates/branded-lite/l10n/sv.json +139 -0
- package/templates/branded-lite/l10n/th.json +139 -0
- package/templates/branded-lite/l10n/tr.json +139 -0
- package/templates/branded-lite/l10n/uk.json +139 -0
- package/templates/branded-lite/l10n/vi.json +139 -0
- package/templates/branded-lite/l10n/zh.json +139 -0
- package/templates/branded-lite/recipes/programs-card.json +2 -2
- package/templates/branded-lite/recipes/programs-carousel.json +2 -2
- package/templates/branded-lite/recipes/programs-participant-carousel.json +2 -2
- package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/branded-lite/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +8 -4
- package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
- package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +17 -3
- package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
- package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/community-club/l10n/ar.json +30 -0
- package/templates/community-club/l10n/cs.json +30 -0
- package/templates/community-club/l10n/da.json +30 -0
- package/templates/community-club/l10n/de.json +30 -0
- package/templates/community-club/l10n/el.json +30 -0
- package/templates/community-club/l10n/en.json +2 -2
- package/templates/community-club/l10n/es.json +30 -0
- package/templates/community-club/l10n/fi.json +30 -0
- package/templates/community-club/l10n/fr.json +30 -0
- package/templates/community-club/l10n/he.json +24 -0
- package/templates/community-club/l10n/hu.json +30 -0
- package/templates/community-club/l10n/id.json +30 -0
- package/templates/community-club/l10n/it.json +30 -0
- package/templates/community-club/l10n/ja.json +30 -0
- package/templates/community-club/l10n/ko.json +30 -0
- package/templates/community-club/l10n/lt.json +30 -0
- package/templates/community-club/l10n/nl.json +30 -0
- package/templates/community-club/l10n/no.json +30 -0
- package/templates/community-club/l10n/pl.json +30 -0
- package/templates/community-club/l10n/pt.json +30 -0
- package/templates/community-club/l10n/ru.json +30 -0
- package/templates/community-club/l10n/sv.json +30 -0
- package/templates/community-club/l10n/th.json +30 -0
- package/templates/community-club/l10n/tr.json +30 -0
- package/templates/community-club/l10n/uk.json +30 -0
- package/templates/community-club/l10n/vi.json +30 -0
- package/templates/community-club/l10n/zh.json +30 -0
- package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/community-club/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/events-meetups/l10n/ar.json +30 -0
- package/templates/events-meetups/l10n/cs.json +30 -0
- package/templates/events-meetups/l10n/da.json +30 -0
- package/templates/events-meetups/l10n/de.json +30 -0
- package/templates/events-meetups/l10n/el.json +30 -0
- package/templates/events-meetups/l10n/en.json +1 -1
- package/templates/events-meetups/l10n/es.json +30 -0
- package/templates/events-meetups/l10n/fi.json +30 -0
- package/templates/events-meetups/l10n/fr.json +30 -0
- package/templates/events-meetups/l10n/he.json +24 -0
- package/templates/events-meetups/l10n/hu.json +30 -0
- package/templates/events-meetups/l10n/id.json +30 -0
- package/templates/events-meetups/l10n/it.json +30 -0
- package/templates/events-meetups/l10n/ja.json +30 -0
- package/templates/events-meetups/l10n/ko.json +30 -0
- package/templates/events-meetups/l10n/lt.json +30 -0
- package/templates/events-meetups/l10n/nl.json +30 -0
- package/templates/events-meetups/l10n/no.json +30 -0
- package/templates/events-meetups/l10n/pl.json +30 -0
- package/templates/events-meetups/l10n/pt.json +30 -0
- package/templates/events-meetups/l10n/ru.json +30 -0
- package/templates/events-meetups/l10n/sv.json +30 -0
- package/templates/events-meetups/l10n/th.json +30 -0
- package/templates/events-meetups/l10n/tr.json +30 -0
- package/templates/events-meetups/l10n/uk.json +30 -0
- package/templates/events-meetups/l10n/vi.json +30 -0
- package/templates/events-meetups/l10n/zh.json +30 -0
- package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/events-meetups/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +17 -3
- package/templates/gym-fitness/l10n/ar.json +45 -0
- package/templates/gym-fitness/l10n/cs.json +45 -0
- package/templates/gym-fitness/l10n/da.json +45 -0
- package/templates/gym-fitness/l10n/de.json +45 -0
- package/templates/gym-fitness/l10n/el.json +45 -0
- package/templates/gym-fitness/l10n/en.json +1 -1
- package/templates/gym-fitness/l10n/es.json +45 -0
- package/templates/gym-fitness/l10n/fi.json +45 -0
- package/templates/gym-fitness/l10n/fr.json +45 -0
- package/templates/gym-fitness/l10n/he.json +36 -0
- package/templates/gym-fitness/l10n/hu.json +45 -0
- package/templates/gym-fitness/l10n/id.json +45 -0
- package/templates/gym-fitness/l10n/it.json +45 -0
- package/templates/gym-fitness/l10n/ja.json +45 -0
- package/templates/gym-fitness/l10n/ko.json +45 -0
- package/templates/gym-fitness/l10n/lt.json +45 -0
- package/templates/gym-fitness/l10n/nl.json +45 -0
- package/templates/gym-fitness/l10n/no.json +45 -0
- package/templates/gym-fitness/l10n/pl.json +45 -0
- package/templates/gym-fitness/l10n/pt.json +45 -0
- package/templates/gym-fitness/l10n/ru.json +45 -0
- package/templates/gym-fitness/l10n/sv.json +45 -0
- package/templates/gym-fitness/l10n/th.json +45 -0
- package/templates/gym-fitness/l10n/tr.json +45 -0
- package/templates/gym-fitness/l10n/uk.json +45 -0
- package/templates/gym-fitness/l10n/vi.json +45 -0
- package/templates/gym-fitness/l10n/zh.json +45 -0
- package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/medical-services/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/nonprofit-cause/l10n/ar.json +30 -0
- package/templates/nonprofit-cause/l10n/cs.json +30 -0
- package/templates/nonprofit-cause/l10n/da.json +30 -0
- package/templates/nonprofit-cause/l10n/de.json +30 -0
- package/templates/nonprofit-cause/l10n/el.json +30 -0
- package/templates/nonprofit-cause/l10n/en.json +1 -1
- package/templates/nonprofit-cause/l10n/es.json +30 -0
- package/templates/nonprofit-cause/l10n/fi.json +30 -0
- package/templates/nonprofit-cause/l10n/fr.json +30 -0
- package/templates/nonprofit-cause/l10n/he.json +24 -0
- package/templates/nonprofit-cause/l10n/hu.json +30 -0
- package/templates/nonprofit-cause/l10n/id.json +30 -0
- package/templates/nonprofit-cause/l10n/it.json +30 -0
- package/templates/nonprofit-cause/l10n/ja.json +30 -0
- package/templates/nonprofit-cause/l10n/ko.json +30 -0
- package/templates/nonprofit-cause/l10n/lt.json +30 -0
- package/templates/nonprofit-cause/l10n/nl.json +30 -0
- package/templates/nonprofit-cause/l10n/no.json +30 -0
- package/templates/nonprofit-cause/l10n/pl.json +30 -0
- package/templates/nonprofit-cause/l10n/pt.json +30 -0
- package/templates/nonprofit-cause/l10n/ru.json +30 -0
- package/templates/nonprofit-cause/l10n/sv.json +30 -0
- package/templates/nonprofit-cause/l10n/th.json +30 -0
- package/templates/nonprofit-cause/l10n/tr.json +30 -0
- package/templates/nonprofit-cause/l10n/uk.json +30 -0
- package/templates/nonprofit-cause/l10n/vi.json +30 -0
- package/templates/nonprofit-cause/l10n/zh.json +30 -0
- package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/podcast-creator/l10n/ar.json +35 -0
- package/templates/podcast-creator/l10n/cs.json +35 -0
- package/templates/podcast-creator/l10n/da.json +35 -0
- package/templates/podcast-creator/l10n/de.json +35 -0
- package/templates/podcast-creator/l10n/el.json +35 -0
- package/templates/podcast-creator/l10n/en.json +1 -1
- package/templates/podcast-creator/l10n/es.json +35 -0
- package/templates/podcast-creator/l10n/fi.json +35 -0
- package/templates/podcast-creator/l10n/fr.json +35 -0
- package/templates/podcast-creator/l10n/he.json +28 -0
- package/templates/podcast-creator/l10n/hu.json +35 -0
- package/templates/podcast-creator/l10n/id.json +35 -0
- package/templates/podcast-creator/l10n/it.json +35 -0
- package/templates/podcast-creator/l10n/ja.json +35 -0
- package/templates/podcast-creator/l10n/ko.json +35 -0
- package/templates/podcast-creator/l10n/lt.json +35 -0
- package/templates/podcast-creator/l10n/nl.json +35 -0
- package/templates/podcast-creator/l10n/no.json +35 -0
- package/templates/podcast-creator/l10n/pl.json +35 -0
- package/templates/podcast-creator/l10n/pt.json +35 -0
- package/templates/podcast-creator/l10n/ru.json +35 -0
- package/templates/podcast-creator/l10n/sv.json +35 -0
- package/templates/podcast-creator/l10n/th.json +35 -0
- package/templates/podcast-creator/l10n/tr.json +35 -0
- package/templates/podcast-creator/l10n/uk.json +35 -0
- package/templates/podcast-creator/l10n/vi.json +35 -0
- package/templates/podcast-creator/l10n/zh.json +35 -0
- package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/portfolio-creative/l10n/ar.json +35 -0
- package/templates/portfolio-creative/l10n/cs.json +35 -0
- package/templates/portfolio-creative/l10n/da.json +35 -0
- package/templates/portfolio-creative/l10n/de.json +35 -0
- package/templates/portfolio-creative/l10n/el.json +35 -0
- package/templates/portfolio-creative/l10n/en.json +1 -1
- package/templates/portfolio-creative/l10n/es.json +35 -0
- package/templates/portfolio-creative/l10n/fi.json +35 -0
- package/templates/portfolio-creative/l10n/fr.json +35 -0
- package/templates/portfolio-creative/l10n/he.json +28 -0
- package/templates/portfolio-creative/l10n/hu.json +35 -0
- package/templates/portfolio-creative/l10n/id.json +35 -0
- package/templates/portfolio-creative/l10n/it.json +35 -0
- package/templates/portfolio-creative/l10n/ja.json +35 -0
- package/templates/portfolio-creative/l10n/ko.json +35 -0
- package/templates/portfolio-creative/l10n/lt.json +35 -0
- package/templates/portfolio-creative/l10n/nl.json +35 -0
- package/templates/portfolio-creative/l10n/no.json +35 -0
- package/templates/portfolio-creative/l10n/pl.json +35 -0
- package/templates/portfolio-creative/l10n/pt.json +35 -0
- package/templates/portfolio-creative/l10n/ru.json +35 -0
- package/templates/portfolio-creative/l10n/sv.json +35 -0
- package/templates/portfolio-creative/l10n/th.json +35 -0
- package/templates/portfolio-creative/l10n/tr.json +35 -0
- package/templates/portfolio-creative/l10n/uk.json +35 -0
- package/templates/portfolio-creative/l10n/vi.json +35 -0
- package/templates/portfolio-creative/l10n/zh.json +35 -0
- package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/restaurant/l10n/ar.json +35 -0
- package/templates/restaurant/l10n/cs.json +35 -0
- package/templates/restaurant/l10n/da.json +35 -0
- package/templates/restaurant/l10n/de.json +35 -0
- package/templates/restaurant/l10n/el.json +35 -0
- package/templates/restaurant/l10n/en.json +1 -1
- package/templates/restaurant/l10n/es.json +35 -0
- package/templates/restaurant/l10n/fi.json +35 -0
- package/templates/restaurant/l10n/fr.json +35 -0
- package/templates/restaurant/l10n/he.json +28 -0
- package/templates/restaurant/l10n/hu.json +35 -0
- package/templates/restaurant/l10n/id.json +35 -0
- package/templates/restaurant/l10n/it.json +35 -0
- package/templates/restaurant/l10n/ja.json +35 -0
- package/templates/restaurant/l10n/ko.json +35 -0
- package/templates/restaurant/l10n/lt.json +35 -0
- package/templates/restaurant/l10n/nl.json +35 -0
- package/templates/restaurant/l10n/no.json +35 -0
- package/templates/restaurant/l10n/pl.json +35 -0
- package/templates/restaurant/l10n/pt.json +35 -0
- package/templates/restaurant/l10n/ru.json +35 -0
- package/templates/restaurant/l10n/sv.json +35 -0
- package/templates/restaurant/l10n/th.json +35 -0
- package/templates/restaurant/l10n/tr.json +35 -0
- package/templates/restaurant/l10n/uk.json +35 -0
- package/templates/restaurant/l10n/vi.json +35 -0
- package/templates/restaurant/l10n/zh.json +35 -0
- package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/restaurant/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/retail-store/l10n/ar.json +35 -0
- package/templates/retail-store/l10n/cs.json +35 -0
- package/templates/retail-store/l10n/da.json +35 -0
- package/templates/retail-store/l10n/de.json +35 -0
- package/templates/retail-store/l10n/el.json +35 -0
- package/templates/retail-store/l10n/en.json +1 -1
- package/templates/retail-store/l10n/es.json +35 -0
- package/templates/retail-store/l10n/fi.json +35 -0
- package/templates/retail-store/l10n/fr.json +35 -0
- package/templates/retail-store/l10n/he.json +28 -0
- package/templates/retail-store/l10n/hu.json +35 -0
- package/templates/retail-store/l10n/id.json +35 -0
- package/templates/retail-store/l10n/it.json +35 -0
- package/templates/retail-store/l10n/ja.json +35 -0
- package/templates/retail-store/l10n/ko.json +35 -0
- package/templates/retail-store/l10n/lt.json +35 -0
- package/templates/retail-store/l10n/nl.json +35 -0
- package/templates/retail-store/l10n/no.json +35 -0
- package/templates/retail-store/l10n/pl.json +35 -0
- package/templates/retail-store/l10n/pt.json +35 -0
- package/templates/retail-store/l10n/ru.json +35 -0
- package/templates/retail-store/l10n/sv.json +35 -0
- package/templates/retail-store/l10n/th.json +35 -0
- package/templates/retail-store/l10n/tr.json +35 -0
- package/templates/retail-store/l10n/uk.json +35 -0
- package/templates/retail-store/l10n/vi.json +35 -0
- package/templates/retail-store/l10n/zh.json +35 -0
- package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/retail-store/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/yoga-studio/config.ts +9 -0
- package/templates/yoga-studio/dev/index.ts +1134 -133
- package/templates/yoga-studio/himalaya.content.json +3 -0
- package/templates/yoga-studio/l10n/ar.json +150 -0
- package/templates/yoga-studio/l10n/cs.json +150 -0
- package/templates/yoga-studio/l10n/da.json +150 -0
- package/templates/yoga-studio/l10n/de.json +150 -0
- package/templates/yoga-studio/l10n/el.json +150 -0
- package/templates/yoga-studio/l10n/en.json +70 -1
- package/templates/yoga-studio/l10n/es.json +150 -0
- package/templates/yoga-studio/l10n/fi.json +150 -0
- package/templates/yoga-studio/l10n/fr.json +150 -0
- package/templates/yoga-studio/l10n/he.json +122 -0
- package/templates/yoga-studio/l10n/hu.json +150 -0
- package/templates/yoga-studio/l10n/id.json +150 -0
- package/templates/yoga-studio/l10n/it.json +150 -0
- package/templates/yoga-studio/l10n/ja.json +150 -0
- package/templates/yoga-studio/l10n/ko.json +150 -0
- package/templates/yoga-studio/l10n/lt.json +150 -0
- package/templates/yoga-studio/l10n/nl.json +150 -0
- package/templates/yoga-studio/l10n/no.json +150 -0
- package/templates/yoga-studio/l10n/pl.json +150 -0
- package/templates/yoga-studio/l10n/pt.json +150 -0
- package/templates/yoga-studio/l10n/ru.json +150 -0
- package/templates/yoga-studio/l10n/sv.json +150 -0
- package/templates/yoga-studio/l10n/th.json +150 -0
- package/templates/yoga-studio/l10n/tr.json +150 -0
- package/templates/yoga-studio/l10n/uk.json +150 -0
- package/templates/yoga-studio/l10n/vi.json +150 -0
- package/templates/yoga-studio/l10n/zh.json +150 -0
- package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +17 -3
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Program",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Prośba zatwierdzona",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Program ukończony",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Program zakończony",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Zaproszono",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Dołączono",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Oczekująca prośba",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Udział zawieszony",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "Informacje i zasady",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Programa",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Solicitação aprovada",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Programa concluído",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Programa encerrado",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Convidado",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Participando",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Solicitação pendente",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Participação suspensa",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "Sobre e regras",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Программа",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Запрос одобрен",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Программа завершена",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Программа окончена",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Приглашены",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Присоединились",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Запрос в ожидании",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Участие приостановлено",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "О группе и правила",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Program",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Begäran godkänd",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Programmet är slutfört",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Programmet har avslutats",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Inbjuden",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Har gått med",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Väntande",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Deltagandet är avstängt",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "Om och regler",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "โปรแกรม",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "อนุมัติคำขอแล้ว",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "โปรแกรมเสร็จสมบูรณ์",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "โปรแกรมสิ้นสุดแล้ว",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "ได้รับเชิญ",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "เข้าร่วมแล้ว",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "คำขออยู่ระหว่างดำเนินการ",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "ระงับการเข้าร่วม",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "เกี่ยวกับและกฎ",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Program",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Talep onaylandı",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Program tamamlandı",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Program sona erdi",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Davet edildi",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Katıldı",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Bekleyen talep",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Katılım askıya alındı",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "Hakkında ve kurallar",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Програма",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Запит схвалено",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Програму завершено",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Програму закінчено",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Запрошено",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Приєднано",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Запит в очікуванні",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Участь призупинено",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "Про групу та правила",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "Chương trình",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "Yêu cầu đã được phê duyệt",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "Chương trình đã hoàn thành",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "Chương trình đã kết thúc",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "Đã được mời",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "Đã tham gia",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "Yêu cầu đang chờ xử lý",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "Đã đình chỉ tham gia",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "Giới thiệu và nội quy",
|
|
@@ -2156,11 +2156,41 @@
|
|
|
2156
2156
|
"translation": "計劃",
|
|
2157
2157
|
"origin": "machine"
|
|
2158
2158
|
},
|
|
2159
|
+
"h_d1e51f92e970": {
|
|
2160
|
+
"source": "Request approved",
|
|
2161
|
+
"translation": "請求已核准",
|
|
2162
|
+
"origin": "machine"
|
|
2163
|
+
},
|
|
2164
|
+
"h_e887512cff1a": {
|
|
2165
|
+
"source": "Program complete",
|
|
2166
|
+
"translation": "計劃已完成",
|
|
2167
|
+
"origin": "machine"
|
|
2168
|
+
},
|
|
2169
|
+
"h_ba5bf80d6b73": {
|
|
2170
|
+
"source": "Program ended",
|
|
2171
|
+
"translation": "計劃已結束",
|
|
2172
|
+
"origin": "machine"
|
|
2173
|
+
},
|
|
2174
|
+
"h_53469df1c48f": {
|
|
2175
|
+
"source": "Invited",
|
|
2176
|
+
"translation": "已受邀",
|
|
2177
|
+
"origin": "machine"
|
|
2178
|
+
},
|
|
2179
|
+
"h_43a1c6266f88": {
|
|
2180
|
+
"source": "Joined",
|
|
2181
|
+
"translation": "已加入",
|
|
2182
|
+
"origin": "machine"
|
|
2183
|
+
},
|
|
2159
2184
|
"h_1c5c8843fc67": {
|
|
2160
2185
|
"source": "Pending request",
|
|
2161
2186
|
"translation": "請求待處理",
|
|
2162
2187
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2163
2188
|
},
|
|
2189
|
+
"h_dbf11c902c73": {
|
|
2190
|
+
"source": "Participation suspended",
|
|
2191
|
+
"translation": "參與已暫停",
|
|
2192
|
+
"origin": "machine"
|
|
2193
|
+
},
|
|
2164
2194
|
"h_8b6d1209a35d": {
|
|
2165
2195
|
"source": "About & rules",
|
|
2166
2196
|
"translation": "關於與規則",
|
|
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
|
|
|
123
123
|
himi_portfolio_project: ["portfolio"],
|
|
124
124
|
himi_programs: ["programs"],
|
|
125
125
|
himi_member_programs: ["programs"],
|
|
126
|
+
himi_program_participant: ["programs"],
|
|
126
127
|
himi_reservations: ["reservations"],
|
|
127
128
|
himi_reserve: ["restaurants"],
|
|
128
129
|
himi_review: ["reviews"],
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// How a worker reads an Online Program's lifecycle and name. Wix returns them in more than one
|
|
2
|
+
// shape (v3 `status` or `state`; `description.title`, `settings.title`, a flat `title` or
|
|
3
|
+
// `details.title`), so every screen that lists programs reads them here, the same way.
|
|
4
|
+
import type { WixProgram } from "@himalaya/wix-online-programs";
|
|
5
|
+
import { cleanTitle } from "./himi-text.js";
|
|
6
|
+
|
|
7
|
+
export function programStatus(p: WixProgram): string {
|
|
8
|
+
return (p.status ?? p.state ?? "").toUpperCase();
|
|
9
|
+
}
|
|
10
|
+
export const isProgramEnded = (p: WixProgram): boolean => programStatus(p) === "ENDED" || programStatus(p) === "FINISHED";
|
|
11
|
+
export const isProgramDraft = (p: WixProgram): boolean => programStatus(p) === "DRAFT";
|
|
12
|
+
|
|
13
|
+
/** The program's own name, cleaned; "" when it has none (the caller picks its own fallback word). */
|
|
14
|
+
export function programName(p: WixProgram): string {
|
|
15
|
+
return cleanTitle(p.description?.title ?? p.settings?.title ?? p.title ?? p.details?.title);
|
|
16
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// The member's standing on one Online Program — the One App participant/application states, folded.
|
|
2
|
+
// Shared by the programs list cards and the program detail screen so both read a member the same way.
|
|
3
|
+
import type { WixJoinApplication, WixParticipant } from "@himalaya/wix-online-programs";
|
|
4
|
+
|
|
5
|
+
export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "invited";
|
|
6
|
+
|
|
7
|
+
export function standingOf(ended: boolean, participant: WixParticipant | undefined, application: WixJoinApplication | undefined): Standing {
|
|
8
|
+
// A withdrawn participant is history even if its old progress says completed.
|
|
9
|
+
// Only its matching admitted application is history too; newer requests remain visible.
|
|
10
|
+
if (["LEFT", "REMOVED", "AUTO_REMOVED"].includes((participant?.enrollmentStatus ?? "").toUpperCase())) {
|
|
11
|
+
if (participant?.id && application?.participantId === participant.id && application.status?.toUpperCase() === "APPROVED") application = undefined;
|
|
12
|
+
participant = undefined;
|
|
13
|
+
}
|
|
14
|
+
if (participant) {
|
|
15
|
+
const progress = (participant.progressStatus ?? "").toUpperCase();
|
|
16
|
+
const enrollment = (participant.enrollmentStatus ?? "").toUpperCase();
|
|
17
|
+
if (progress === "COMPLETED") return "completed";
|
|
18
|
+
if (progress === "FAILED" || ended) return "finished";
|
|
19
|
+
if (enrollment === "SUSPENDED") return "suspended";
|
|
20
|
+
return "joined";
|
|
21
|
+
}
|
|
22
|
+
const status = (application?.status ?? "").toUpperCase();
|
|
23
|
+
const payment = (application?.paymentStatus ?? "").toUpperCase();
|
|
24
|
+
if (status === "APPROVAL_PENDING") return "pending";
|
|
25
|
+
if (status === "SUSPENDED") return "suspended";
|
|
26
|
+
if (status === "APPROVED") {
|
|
27
|
+
// The same reading as joinProgram: a free or settled approval is enrolling, and an offline payment
|
|
28
|
+
// waits on the owner. Only an approval that still owes money asks the member to pay.
|
|
29
|
+
if (payment === "NO_PAYMENT_REQUIRED" || payment === "PAYMENT_SUCCESSFUL") return application?.participantId ? "joined" : "pending";
|
|
30
|
+
if (payment === "PENDING_OWNER_APPROVAL") return "pending";
|
|
31
|
+
return "approved";
|
|
32
|
+
}
|
|
33
|
+
if (status === "PAYMENT_PENDING") return "approved";
|
|
34
|
+
if (status === "INVITED") return "invited";
|
|
35
|
+
return "none";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback: string; icon: string; color: string }> = {
|
|
39
|
+
joined: { key: "memberPrograms.status.joined", fallback: "Joined", icon: "checkmark", color: "accentPrimary" },
|
|
40
|
+
completed: { key: "memberPrograms.status.completed", fallback: "Program complete", icon: "trophy", color: "success" },
|
|
41
|
+
finished: { key: "memberPrograms.status.ended", fallback: "Program ended", icon: "flag", color: "textSecondary" },
|
|
42
|
+
suspended: { key: "memberPrograms.status.suspended", fallback: "Participation suspended", icon: "close", color: "warning" },
|
|
43
|
+
pending: { key: "memberPrograms.status.pending", fallback: "Pending request", icon: "clock", color: "warning" },
|
|
44
|
+
approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
|
|
45
|
+
invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** The participant page (`himi_program_participant`): what a member in the program opens instead of the sales page. */
|
|
49
|
+
export const PARTICIPANT_SCREEN = "himi_program_participant";
|
|
50
|
+
|
|
51
|
+
/** Standings that open the participant page: the member is in the program, or stayed in it to its end.
|
|
52
|
+
* A paused (suspended) member and everyone else open the program page, which owns joining and paying. */
|
|
53
|
+
export const PARTICIPANT_STANDINGS: ReadonlySet<Standing> = new Set<Standing>(["joined", "completed", "finished"]);
|
|
54
|
+
|
|
55
|
+
/** Whether the member is in the program: an actual participation (an admitted application alone is
|
|
56
|
+
* not one: the participant page reads the participation), not paused, with a standing that opens the
|
|
57
|
+
* participant page. Pass the participation the standing was read from. */
|
|
58
|
+
export function inProgram(standing: Standing, participant: WixParticipant | undefined): boolean {
|
|
59
|
+
return !!participant && PARTICIPANT_STANDINGS.has(standing)
|
|
60
|
+
&& String(participant.enrollmentStatus ?? "").toUpperCase() !== "SUSPENDED";
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** The screen a program row opens. `participantScreen` is the host's participant page; "" (a host
|
|
64
|
+
* without one) keeps every row on `programScreen`. */
|
|
65
|
+
export function programScreenFor(memberInProgram: boolean, programScreen: string, participantScreen: string): string {
|
|
66
|
+
return participantScreen && memberInProgram ? participantScreen : programScreen;
|
|
67
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { descriptionBody } from "../_shared/rich-body.js";
|
|
2
2
|
import { programDescription } from "../_shared/program-description.js";
|
|
3
|
+
import { inProgram, PARTICIPANT_SCREEN, programScreenFor, standingOf } from "../_shared/program-standing.js";
|
|
4
|
+
import { isProgramEnded } from "../_shared/program-fields.js";
|
|
3
5
|
import { fetchMemberBookings, type MemberBookingRow } from "../_shared/member-bookings.js";
|
|
4
6
|
import { hostSiteFromInput, hostedExploreCards, hostedHiddenFlags, type HostedExploreCard } from "../_shared/branded-lite-hosted.js";
|
|
5
7
|
import { memberAccess, assertMemberAccess } from "../_shared/member-access.js";
|
|
@@ -178,6 +180,8 @@ interface MemberProgramCard extends ProgramCard {
|
|
|
178
180
|
stateLabel: string;
|
|
179
181
|
progressFraction: number;
|
|
180
182
|
hideProgress: boolean;
|
|
183
|
+
/** A program the member is in opens the participant page; a request or invitation opens the program page. */
|
|
184
|
+
detailScreenId: string;
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
/** A communityPulse latest-activity Carousel card (design §4.5). */
|
|
@@ -818,6 +822,7 @@ async function fetchMemberProgramCards(programs: WixProgram[]): Promise<MemberPr
|
|
|
818
822
|
stateLabel,
|
|
819
823
|
progressFraction,
|
|
820
824
|
hideProgress: !hasProgress || !participant || (participant.enrollmentStatus ?? "").toUpperCase() === "SUSPENDED",
|
|
825
|
+
detailScreenId: programScreenFor(inProgram(standingOf(isProgramEnded(program), participant, undefined), participant), "himi_program", PARTICIPANT_SCREEN),
|
|
821
826
|
}];
|
|
822
827
|
});
|
|
823
828
|
} catch (error) {
|
|
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
|
|
|
123
123
|
himi_portfolio_project: ["portfolio"],
|
|
124
124
|
himi_programs: ["programs"],
|
|
125
125
|
himi_member_programs: ["programs"],
|
|
126
|
+
himi_program_participant: ["programs"],
|
|
126
127
|
himi_reservations: ["reservations"],
|
|
127
128
|
himi_reserve: ["restaurants"],
|
|
128
129
|
himi_review: ["reviews"],
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "البرنامج",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "تمت الموافقة على الطلب",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "اكتمل البرنامج",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "انتهى البرنامج",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "تمت الدعوة",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "تم الانضمام",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "الطلبات المعلقة",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "المشاركة معلّقة",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "نبذة وقواعد",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Program",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Žádost schválena",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Program dokončen",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Program skončil",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Pozváni",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Připojeno",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Nevyřízená žádost",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Účast pozastavena",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "O skupině a pravidla",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Program",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Anmodning godkendt",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Program gennemført",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Programmet er slut",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Inviteret",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Tilmeldt",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Afventende anmodninger",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Deltagelse suspenderet",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "Om og regler",
|