@wix/himalaya-cli 0.1767.0 → 0.1769.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/app-config.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +7 -0
- 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/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -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 +234 -89
- 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 +19 -7
- package/guides/one-app-to-himi-app.md +19 -9
- package/guides/qa-builds.md +73 -84
- 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/business-chat-transport.ts +20 -4
- package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +6 -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/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/branded-lite/config.ts +11 -1
- package/templates/branded-lite/dev/index.ts +1088 -86
- package/templates/branded-lite/himalaya.content.json +3 -0
- package/templates/branded-lite/l10n/ar.json +259 -0
- package/templates/branded-lite/l10n/cs.json +259 -0
- package/templates/branded-lite/l10n/da.json +259 -0
- package/templates/branded-lite/l10n/de.json +259 -0
- package/templates/branded-lite/l10n/el.json +259 -0
- package/templates/branded-lite/l10n/en.json +65 -2
- package/templates/branded-lite/l10n/es.json +259 -0
- package/templates/branded-lite/l10n/fi.json +259 -0
- package/templates/branded-lite/l10n/fr.json +259 -0
- package/templates/branded-lite/l10n/he.json +209 -0
- package/templates/branded-lite/l10n/hu.json +259 -0
- package/templates/branded-lite/l10n/id.json +259 -0
- package/templates/branded-lite/l10n/it.json +259 -0
- package/templates/branded-lite/l10n/ja.json +259 -0
- package/templates/branded-lite/l10n/ko.json +259 -0
- package/templates/branded-lite/l10n/lt.json +259 -0
- package/templates/branded-lite/l10n/nl.json +259 -0
- package/templates/branded-lite/l10n/no.json +259 -0
- package/templates/branded-lite/l10n/pl.json +259 -0
- package/templates/branded-lite/l10n/pt.json +259 -0
- package/templates/branded-lite/l10n/ru.json +259 -0
- package/templates/branded-lite/l10n/sv.json +259 -0
- package/templates/branded-lite/l10n/th.json +259 -0
- package/templates/branded-lite/l10n/tr.json +259 -0
- package/templates/branded-lite/l10n/uk.json +259 -0
- package/templates/branded-lite/l10n/vi.json +259 -0
- package/templates/branded-lite/l10n/zh.json +259 -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/business-chat-transport.ts +20 -4
- package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/branded-lite/tier5-src/_shared/inbox-search.ts +119 -0
- package/templates/branded-lite/tier5-src/_shared/member-inbox-transport.ts +64 -0
- package/templates/branded-lite/tier5-src/_shared/member-thread-rows.ts +233 -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/business-chat/index.ts +73 -22
- 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-inbox/index.ts +777 -54
- 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/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
- package/templates/branded-lite/tier5-src/wix-spaces-new-message/index.ts +4 -2
- package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/brandy/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/brandy/tier5-src/_shared/business-chat-transport.ts +164 -0
- package/templates/brandy/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/brandy/tier5-src/_shared/inbox-search.ts +119 -0
- package/templates/brandy/tier5-src/_shared/member-inbox-transport.ts +64 -0
- package/templates/brandy/tier5-src/_shared/member-thread-rows.ts +233 -0
- package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
- package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
- 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/engine-intl.ts +6 -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/community-club-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/conference/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/conference/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/conference/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/conference/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/conference/tier5-src/business-chat/index.ts +73 -22
- 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/engine-intl.ts +6 -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/events-meetups-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/fitness-gym/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/fitness-gym/tier5-src/business-chat/index.ts +73 -22
- 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/business-chat-transport.ts +20 -4
- package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +6 -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/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/medical-services/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/medical-services/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/medical-services/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/medical-services/tier5-src/business-chat/index.ts +73 -22
- 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/engine-intl.ts +6 -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/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/personal-fitness-trainer/dev/index.ts +2 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/personal-fitness-trainer/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +73 -22
- 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/engine-intl.ts +6 -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/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +6 -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/engine-intl.ts +6 -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/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +6 -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/engine-intl.ts +6 -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/restaurant-owner/tier5-src/_shared/engine-intl.ts +6 -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/engine-intl.ts +6 -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/retail-store-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/salon-spa/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/salon-spa/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/salon-spa/tier5-src/business-chat/index.ts +73 -22
- 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/wholesale-store/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/wholesale-store/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/wholesale-store/tier5-src/business-chat/index.ts +73 -22
- 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/business-chat-transport.ts +20 -4
- package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +6 -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
- package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +6 -0
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "Este site não está aceitando pagamentos online. Volte ou entre em contato com a empresa para saber sobre outras formas de pagamento.",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "A empresa não pode confirmar reservas no app agora. Entre em contato com a empresa para reservar.",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "Não foi possível verificar se sua reserva foi confirmada. Veja Minhas reservas antes de reservar novamente.",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "Alterar horário",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "Programa",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "Solicitação aprovada",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "Programa concluído",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "Programa encerrado",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "Convidado",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "Participando",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "Solicitação pendente",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "Participação suspensa",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "Todos os locais",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "Этот сайт не принимает онлайн-платежи. Вернитесь назад или свяжитесь с бизнесом, чтобы узнать о других способах оплаты.",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "Сейчас компания не может подтверждать бронирования в приложении. Чтобы забронировать, свяжитесь с компанией.",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "Не удалось проверить, подтверждено ли ваше бронирование. Прежде чем бронировать снова, откройте раздел «Мои бронирования».",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "Изменить время",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "Программа",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "Запрос одобрен",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "Программа завершена",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "Программа окончена",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "Приглашены",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "Присоединились",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "Запрос в ожидании",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "Участие приостановлено",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "Все места",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "Den här webbplatsen tar inte emot onlinebetalningar. Gå tillbaka eller kontakta företaget för andra betalningssätt.",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "Företaget kan inte bekräfta bokningar i appen just nu. Kontakta företaget för att boka.",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "Vi kunde inte kontrollera om din bokning är bekräftad. Se Mina bokningar innan du bokar igen.",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "Ändra tid",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "Program",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "Begäran godkänd",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "Programmet är slutfört",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "Programmet har avslutats",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "Inbjuden",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "Har gått med",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "Väntande",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "Deltagandet är avstängt",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "Alla platser",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "เว็บไซต์นี้ไม่รับชำระเงินออนไลน์ กรุณากลับไปหรือติดต่อธุรกิจเพื่อสอบถามช่องทางชำระเงินอื่น",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "ขณะนี้ธุรกิจไม่สามารถยืนยันการจองในแอปได้ โปรดติดต่อธุรกิจเพื่อจอง",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "เราไม่สามารถตรวจสอบได้ว่าการจองของคุณได้รับการยืนยันหรือไม่ โปรดดูที่การจองของฉันก่อนจองอีกครั้ง",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "เปลี่ยนเวลา",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "โปรแกรม",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "อนุมัติคำขอแล้ว",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "โปรแกรมเสร็จสมบูรณ์",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "โปรแกรมสิ้นสุดแล้ว",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "ได้รับเชิญ",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "เข้าร่วมแล้ว",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "คำขออยู่ระหว่างดำเนินการ",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "ระงับการเข้าร่วม",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "ทุกสถานที่",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "Bu site online ödeme kabul etmiyor. Geri dönün veya diğer ödeme seçenekleri için işletmeyle iletişime geçin.",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "İşletme şu anda uygulamada randevuları onaylayamıyor. Randevu almak için işletmeyle iletişime geçin.",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "Randevunuzun onaylanıp onaylanmadığını kontrol edemedik. Tekrar randevu almadan önce Randevularım bölümüne bakın.",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "Saati Değiştir",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "Program",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "Talep onaylandı",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "Program tamamlandı",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "Program sona erdi",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "Davet edildi",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "Katıldı",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "Bekleyen talep",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "Katılım askıya alındı",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "Tüm konumlar",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "Цей сайт не приймає онлайн-платежі. Поверніться назад або зв'яжіться з бізнесом щодо інших способів оплати.",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "Зараз компанія не може підтверджувати бронювання в застосунку. Щоб забронювати, зв'яжіться з компанією.",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "Не вдалося перевірити, чи підтверджено ваше бронювання. Перш ніж бронювати знову, перегляньте розділ «Мої бронювання».",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "Змінити час",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "Програма",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "Запит схвалено",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "Програму завершено",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "Програму закінчено",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "Запрошено",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "Приєднано",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "Запит в очікуванні",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "Участь призупинено",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "Усі локації",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "Trang web này không chấp nhận thanh toán trực tuyến. Hãy quay lại hoặc liên hệ doanh nghiệp để biết các cách thanh toán khác.",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "Doanh nghiệp hiện không thể xác nhận lịch đặt trong ứng dụng. Hãy liên hệ doanh nghiệp để đặt lịch.",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "Chúng tôi không thể kiểm tra lịch đặt của bạn đã được xác nhận hay chưa. Hãy xem Lịch đặt của tôi trước khi đặt lại.",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "Đổi giờ",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "Chương trình",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "Yêu cầu đã được phê duyệt",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "Chương trình đã hoàn thành",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "Chương trình đã kết thúc",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "Đã được mời",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "Đã tham gia",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "Yêu cầu đang chờ xử lý",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "Đã đình chỉ tham gia",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"translation": "Tất cả địa điểm",
|
|
@@ -3554,6 +3554,16 @@
|
|
|
3554
3554
|
"translation": "此網站不接受線上付款。請返回,或聯絡商家了解其他付款方式。",
|
|
3555
3555
|
"origin": "machine"
|
|
3556
3556
|
},
|
|
3557
|
+
"h_da50069f13cc": {
|
|
3558
|
+
"source": "The business can't confirm bookings in the app right now. Contact the business to book.",
|
|
3559
|
+
"translation": "商家目前無法在應用程式中確認預訂。請聯絡商家進行預訂。",
|
|
3560
|
+
"origin": "machine"
|
|
3561
|
+
},
|
|
3562
|
+
"h_7e5f2ad0967c": {
|
|
3563
|
+
"source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
|
|
3564
|
+
"translation": "我們無法確認你的預訂是否已確認。再次預訂前,請先查看我的預訂。",
|
|
3565
|
+
"origin": "machine"
|
|
3566
|
+
},
|
|
3557
3567
|
"h_1b8bca7c2765": {
|
|
3558
3568
|
"source": "Change Time",
|
|
3559
3569
|
"translation": "變更時間",
|
|
@@ -3584,6 +3594,41 @@
|
|
|
3584
3594
|
"translation": "計劃",
|
|
3585
3595
|
"origin": "machine"
|
|
3586
3596
|
},
|
|
3597
|
+
"h_d1e51f92e970": {
|
|
3598
|
+
"source": "Request approved",
|
|
3599
|
+
"translation": "請求已核准",
|
|
3600
|
+
"origin": "machine"
|
|
3601
|
+
},
|
|
3602
|
+
"h_e887512cff1a": {
|
|
3603
|
+
"source": "Program complete",
|
|
3604
|
+
"translation": "計劃已完成",
|
|
3605
|
+
"origin": "machine"
|
|
3606
|
+
},
|
|
3607
|
+
"h_ba5bf80d6b73": {
|
|
3608
|
+
"source": "Program ended",
|
|
3609
|
+
"translation": "計劃已結束",
|
|
3610
|
+
"origin": "machine"
|
|
3611
|
+
},
|
|
3612
|
+
"h_53469df1c48f": {
|
|
3613
|
+
"source": "Invited",
|
|
3614
|
+
"translation": "已受邀",
|
|
3615
|
+
"origin": "machine"
|
|
3616
|
+
},
|
|
3617
|
+
"h_43a1c6266f88": {
|
|
3618
|
+
"source": "Joined",
|
|
3619
|
+
"translation": "已加入",
|
|
3620
|
+
"origin": "machine"
|
|
3621
|
+
},
|
|
3622
|
+
"h_1c5c8843fc67": {
|
|
3623
|
+
"source": "Pending request",
|
|
3624
|
+
"translation": "請求待處理",
|
|
3625
|
+
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
3626
|
+
},
|
|
3627
|
+
"h_dbf11c902c73": {
|
|
3628
|
+
"source": "Participation suspended",
|
|
3629
|
+
"translation": "參與已暫停",
|
|
3630
|
+
"origin": "machine"
|
|
3631
|
+
},
|
|
3587
3632
|
"h_797a4917230e": {
|
|
3588
3633
|
"source": "All locations",
|
|
3589
3634
|
"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"],
|
|
@@ -29,6 +29,19 @@ async function fenced<T>(identity: ChatIdentity, run: () => Promise<T>): Promise
|
|
|
29
29
|
/** Any other member-scoped call (the AI chat's) goes through the same fence. */
|
|
30
30
|
export const fence = fenced;
|
|
31
31
|
|
|
32
|
+
/** A signed-out visitor's Smart Chat calls are fenced the other way: still signed out before the request goes
|
|
33
|
+
* out and again before its response is used, so signing in mid-request never mixes the visitor's chat into
|
|
34
|
+
* the member's. Fails as `MemberAccessChanged`, like the member fence, so callers handle both alike. */
|
|
35
|
+
async function assertStillVisitor(): Promise<void> {
|
|
36
|
+
if ((await memberAccess()).email) throw Object.assign(new Error("visitor_signed_in"), { name: "MemberAccessChanged" });
|
|
37
|
+
}
|
|
38
|
+
export async function visitorFence<T>(run: () => Promise<T>): Promise<T> {
|
|
39
|
+
await assertStillVisitor();
|
|
40
|
+
const result = await run();
|
|
41
|
+
await assertStillVisitor();
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
// Minting a chat token is a network round trip, and every chat call used to mint its own. One token
|
|
33
46
|
// per member is reused until the member changes or a request using it is refused.
|
|
34
47
|
let cachedToken: { key: string; token: string } | null = null;
|
|
@@ -44,7 +57,7 @@ async function chatTokenFor(identity: ChatIdentity): Promise<string> {
|
|
|
44
57
|
return chatToken;
|
|
45
58
|
}
|
|
46
59
|
/** Runs `run` with the member's cached token; a refused request mints a fresh token and tries once more. */
|
|
47
|
-
async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
|
|
60
|
+
export async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
|
|
48
61
|
const reused = cachedToken?.key === tokenKey(identity);
|
|
49
62
|
try {
|
|
50
63
|
return await run(await chatTokenFor(identity));
|
|
@@ -80,7 +93,7 @@ export const unreadRoomCount = (identity: ChatIdentity): Promise<number> => fenc
|
|
|
80
93
|
export const messagesPage = (identity: ChatIdentity, roomId: string): Promise<Raw[]> => fenced(identity, async () =>
|
|
81
94
|
(await withToken(identity, (chatToken) => getMessagesPage(roomId, { ...MEMBER, chatToken, pageSize: 50, ordering: "Desc" }))).items as unknown as Raw[]);
|
|
82
95
|
|
|
83
|
-
function bridge(): Bridge {
|
|
96
|
+
export function bridge(): Bridge {
|
|
84
97
|
const api = (globalThis as unknown as { himalaya?: { wixApi?: Bridge } }).himalaya?.wixApi;
|
|
85
98
|
if (!api) throw new Error("wix_api_bridge_unavailable");
|
|
86
99
|
return api;
|
|
@@ -89,7 +102,10 @@ function bridge(): Bridge {
|
|
|
89
102
|
* Wix Smart Chat and the AI can answer it; a message posted straight into the room has no channel, so the AI never
|
|
90
103
|
* saw it and the owner's reply went out by email. Smart Chat chooses the conversation and stored message id.
|
|
91
104
|
* The bridge resolves once the AI has finished answering, not when the message is stored. */
|
|
92
|
-
export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity,
|
|
105
|
+
export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, () => postQuestion(text));
|
|
106
|
+
/** The same Smart Chat send for a signed-out visitor: Smart Chat accepts the anonymous visitor token. */
|
|
107
|
+
export const sendVisitorMessage = (text: string): Promise<string | undefined> => visitorFence(() => postQuestion(text));
|
|
108
|
+
async function postQuestion(text: string): Promise<string | undefined> {
|
|
93
109
|
const response = await bridge().call("POST", "/wix-assistant-widget/v1/messages/stream", {
|
|
94
110
|
message: { sender: "SITE_VISITOR", messageType: "QUESTION", body: { mainText: text } },
|
|
95
111
|
});
|
|
@@ -123,7 +139,7 @@ export const sendMessage = (identity: ChatIdentity, text: string): Promise<strin
|
|
|
123
139
|
if (input?.sender === "SITE_VISITOR" && input.messageType === "QUESTION" && typeof input.id === "string" && input.id) return `smart-chat:${input.id}`;
|
|
124
140
|
}
|
|
125
141
|
return undefined;
|
|
126
|
-
}
|
|
142
|
+
}
|
|
127
143
|
/** A tapped button is a silent, ephemeral message carrying the button's chat action. */
|
|
128
144
|
export const sendButton = (identity: ChatIdentity, roomId: string, input: { id: string; text: string; appId: string; interactionId: string }): Promise<void> => fenced(identity, async () => {
|
|
129
145
|
await withToken(identity, (chatToken) => bridge().call("POST", `${MANAGE}/_api/chat-web/v2/chatrooms/${encodeURIComponent(roomId)}/messages`, {
|
|
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
|
|
|
119
119
|
|
|
120
120
|
const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
|
|
121
121
|
|
|
122
|
+
/** `{ weekday: "short" }` — "Mon". */
|
|
123
|
+
export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
|
|
124
|
+
if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
|
|
125
|
+
return WEEKDAYS_SHORT[date.getDay()]!;
|
|
126
|
+
}
|
|
127
|
+
|
|
122
128
|
/** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
|
|
123
129
|
export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
|
|
124
130
|
if (hasIntl()) {
|
|
@@ -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
|
+
}
|